import{g as Yl}from"./chunk-652T7WSO.js";import{e as uo,n as Kl}from"./chunk-SO5JJ567.js";import{e as ql,h as Ql}from"./chunk-QEQX7GKO.js";import{$ as co,A as Qs,B as nn,D as Zs,F as dl,H as ml,M as gl,N as ul,P as fl,Q as Cl,R as _l,S as no,T as xl,U as bl,V as on,W as vl,X as ro,Y as ao,aa as Jl,e as ja,ha as Xl,j as tn,ja as Zl,k as Ya,l as Ka,m as Ja,v as wn,x as Fi,y as as,z as ss}from"./chunk-PW3T5IDO.js";import{b as so,c as yl,d as wl}from"./chunk-S55XYLAP.js";import{a as po}from"./chunk-QWCCKYGE.js";import{a as Js,b as hl,d as Pl,e as io,g as oo}from"./chunk-UWVHKNAS.js";import{a as In}from"./chunk-N3AKQ67K.js";import{b as Ks,e as Rl,f as Vl,g as Dl,h as Bl}from"./chunk-BA6W43EG.js";import{$ as Ul,A as il,H as ol,I as al,N as sl,T as ll,Y as Ml,_ as Un,a as za,b as Wa,c as ki,d as yn,e as Ha,f as os,g as rs,h as Mt,i as Fs,k as Us,l as Ys,m as eo,n as Xs,o as kn,p as $n,u as el,v as tl,x as nl}from"./chunk-3BGUV6QY.js";import{a as X,d as Fn}from"./chunk-GQJKQKB7.js";import{b as Ki}from"./chunk-6AEXDXZQ.js";import{b as pl}from"./chunk-YP2GROLY.js";import{c as to}from"./chunk-NSVFMFPM.js";import{a as $l}from"./chunk-TGA765LU.js";import{c as Al,d as mo,e as Ll,f as go,g as Nl,k as jl,m as zl,n as Wl,o as Hl,p as Gl}from"./chunk-VZLFFLKW.js";import{A as Qo,D as ts,E as ns,G as is,H as Ct,I as zt,K as Wt,L as Ji,M as Vs,Ma as rl,N as Yo,O as Ds,Pa as Ol,Sa as lo,Ta as Sl,Ua as El,Va as Tl,Xa as kl,Y as Ws,b as Br,ba as Hs,bb as Fl,c as jr,d as di,fb as Il,gb as Ht,hb as Ko,i as Ga,k as Xe,m as Xa,n as he,o as On,oa as Zi,p as be,pa as Gs,q as je,r as Sn,s as En,t as Za,u as es,v as de,w as ht,wa as $s,x as $o,xa as qs,y as Ii}from"./chunk-W67PHGDM.js";import{b as zs}from"./chunk-ROFK2AE5.js";import{d as Ei}from"./chunk-SODQ45DH.js";import{b as Qa,c as Ui,d as qo,f as Rs,g as Xi,h as As,i as Ls,m as Ns,q as cl}from"./chunk-7V5EWS2Z.js";import{a as Bs,c as js}from"./chunk-PECDS4N4.js";import{a as Is}from"./chunk-DE6VX6GP.js";import{A as ws,D as Os,E as Ss,F as Es,N as Ie,c as $a,f as qa,i as ls,j as ds,k as Di,l as us,m as fs,n as hs,o as ji,p as xs,v as qi,w as ys}from"./chunk-5ILJLSOF.js";import{a as Cs,b as _s,c as zi}from"./chunk-FP3VADJG.js";import{c as _e,g as Go,h as Na,j as en,l as Va}from"./chunk-G4H36FDT.js";import{b as Li}from"./chunk-URLSZUYB.js";import{d as Ps,e as Ms,h as Tn}from"./chunk-FQV3MDX4.js";import{aa as Qi,ea as Yi,ka as Ts,l as Ar}from"./chunk-35M55SNI.js";import{a as Ti,p as Ba,r as oe}from"./chunk-L2F4RGNR.js";import{F as Ia,G as Ua,I as Ra,P as ke,Q as Aa,R as Si,X as La,b as ba,c as va,e as Pa,f as Ma,h as ya,j as wa,k as Oa,l as Sa,n as Ea,q as Ho,s as _n,t as Pt,u as L}from"./chunk-NZOYSRAE.js";import{a as Fe}from"./chunk-NC62FWFX.js";import{a as Fa,b as ut}from"./chunk-LBXUE4ZG.js";import{a as yi,c as xn}from"./chunk-BSOQDXQW.js";import{g as $i}from"./chunk-4KPWG42N.js";import{f as jt}from"./chunk-K6JEZMDK.js";import{b as Bt}from"./chunk-RXWPG6MU.js";import{a as we,b as Ri,d as Ai}from"./chunk-CYVK5CKZ.js";import{d as ks}from"./chunk-6WS7KK5I.js";import{j as Dt}from"./chunk-5FF7PXVF.js";import{r as vs}from"./chunk-LW53YBHL.js";import{I as Da,M as vn,N as Pn,Q as Gi}from"./chunk-AGGBUGW4.js";import{b as bs}from"./chunk-7YOGEXFU.js";import{b as Bi}from"./chunk-262AN4BO.js";import{e as Mn}from"./chunk-LGDUQN24.js";import{a as Hp}from"./chunk-RPWFNKUD.js";import{a as ft,b as Ne}from"./chunk-HLLFNSQC.js";import{b as gt,c as Je}from"./chunk-4RA7ZWBB.js";import{h as ps,j as Hi}from"./chunk-WAQ25P64.js";import{i as Ta,l as wi,n as Oi,o as ka,p as mt}from"./chunk-OVU454MH.js";import{a as Wi}from"./chunk-BHLN4B6O.js";import{c as Ni,d as ms,i as gs,j as Vi}from"./chunk-N25F22EQ.js";import{a as bn}from"./chunk-RRBG7CJ4.js";import{$b as vi,A as Rt,B as Zt,Bb as Nt,C as R,Ca as Zr,Cb as bi,Da as ie,Db as Wn,Ea as ea,Eb as Vt,F as Qe,Fa as Ke,H as Gr,Ha as ta,Hb as ra,Ib as aa,Jb as fe,Kb as Hn,L as lt,Lb as sa,N as $r,Nb as la,O as ui,Ob as ca,Pa as H,Pb as vt,Q as qr,Qb as pa,Rb as da,T as Qr,Tb as ma,Ub as ga,V as Yr,Vb as ua,W as Kr,Y as Jr,Zb as rt,_b as Be,bb as Te,c as Ir,cb as zn,d as Ur,db as Ci,e as un,eb as x,ec as fa,f as Rr,fa as K,gb as na,gc as ha,hb as ia,ic as Pi,ka as Xr,kc as Ca,la as hn,lc as _a,n as zr,o as mi,ob as oa,oc as xa,pb as Cn,q as ot,r as gi,ra as fi,rb as pt,s as qe,sc as Mi,u as fn,ub as dt,v as Wo,vb as _i,w as Hr,xa as Ye,ya as Q,yb as xi,z as Ut,zb as Lt}from"./chunk-XOHBU3FK.js";import{a as Wr,b as Se,d as At}from"./chunk-HVLNYNMR.js";import{a as hi,b as ct}from"./chunk-4PC42GMK.js";import{B as $e,C as It,b as Lr,c as Nr,h as Vr,o as Dr}from"./chunk-6PPQ2IDR.js";import{f as Gn,g as cs}from"./chunk-4EEEWFOH.js";import{a as Y,b as Le,c as Ee,d as ue}from"./chunk-UI2U3JNG.js";import{$ as B,$d as kt,Ac as te,Bc as Yt,Ca as ni,Cc as W,E as $,Fc as E,G as ye,Ga as z,Gb as Pr,H as Re,Ha as T,Hc as m,Ib as pn,Ic as oi,Jc as ri,Kc as Et,La as u,Lb as dn,Ma as Ge,Mb as Mr,N as _r,Nc as ai,Ob as g,Oc as Tt,Pb as c,Pc as tt,Qc as nt,R as ti,Rb as yr,Rc as it,Sc as G,Ta as D,Tc as De,Ua as k,Uc as Z,Ud as Tr,Vb as wr,W as Ot,Wa as st,Xc as Kt,Yc as Jt,Z as St,Zc as Xt,Zd as Oe,a as ei,ac as Or,ae as ne,bd as Er,be as ci,cb as Ae,cd as ae,ce as pi,d as xt,db as v,dd as si,eb as P,ed as li,ee as mn,fc as M,fe as gn,g as U,ga as xr,ge as Ft,i as wt,ie as kr,j as hr,kc as d,kd as N,ke as Fr,lb as ge,lc as jn,ld as V,mb as ii,mc as le,nb as q,o as Cr,pc as Sr,pe as F,qd as ce,rc as bt,sa as br,wc as f,xa as Qt,xc as _,y as Bn,ya as vr,yc as A,z as xe,zc as ee}from"./chunk-TK6RQ5CC.js";import{a as w,b as I,i as qt,k as b}from"./chunk-3XKVWRTV.js";var ec=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var rn=qt(bn());var nc=(()=>{let i=class i extends ki{constructor(e,t,n,r,s,l,p,h,C,O){super(),this.environment=e,this.sessionService=t,this.commentService=n,this.filterService=r,this.entityConfigHelperService=s,this.userService=l,this.permissionService=p,this.translate=h,this.userHistoryService=C,this.store=O,this.userImageCache={},this.entityTypesMap={},this.lastFilterQuery=new rn.CompoundFilter(rn.IqlQueryOperator.OR).setIdentifier("fallback"),this.fetching=!1,this.totalFetchPageSize=50,this.destroyRef=Ge(ge),this.renderMentionableItem=(S,J)=>S.user?`<div class="dropdown-container ${S.user.status==="DEACTIVATE"?"deactivated":""}">
      <div class="details">
        <p class="name">${S.value}</p>
        <p class="email">${S.user.email}</p>
      </div>
      ${S.user.status==="DEACTIVATE"?`<div class="status">
              <span>${this.translate.instant("explorer-ng.entity.deactivated")}</span>
            </div>`:""}
    </div>
    `:`<div class="dropdown-container">
          <div class="details">
            <p class="type">${S.blotAlternativeIconHtml||S.denotationChar} ${S.elementType||""}</p>
            <p class="title">${S.value}</p>
          </div>
        </div>
    `,this.store.select(Q.selectCurrentSpaceUri).pipe(ni(this.store.select(Ye.selectCurrentTenant))).pipe(R()).subscribe(([S,J])=>{this.currentSpaceUri=S,this.currentTenantUri=J?.tenantUri})}init(e){this.onInitCompleted=new Promise(t=>{this.self=null,this.users=null,this.things=null,this.userImageCache={},console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),console.assert(!!this.currentTenantUri,"currentTenantUri should not be null"),this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri).then(n=>{this.entityTypesMap=n.reduce((r,s)=>(r[s.uri]=s,r),{})}),this.userHistoryService.getLastVisitedSpace(this.currentTenantUri).then(n=>this.lastVisitedSpace=n),setTimeout(()=>{this.commentService.init({tenant:this.currentTenantUri,space:this.currentSpaceUri,user:this.sessionService.getUser().sub,restUrl:this.environment.getRestUrl(this.commentService.endpoint)});let n=[this.permissionService.userHasElementTypePermission(x.VIEW_ALL_COMMENTS,e),this.permissionService.userHasElementTypePermission(x.CREATE_COMMENT,e),this.permissionService.userHasElementTypePermission(x.MANAGE_ALL_COMMENTS,e)];Promise.all([this.userService.getAllSpaceUsers(this.currentSpaceUri),Re(n).pipe(B(1),ye(([r,s,l])=>({uri:this.sessionService.getUser().sub,permissions:{ViewComment:r,CreateComment:s,EditAllComment:l,DeleteAllComment:l}}))).toPromise()]).then(r=>{this.users=r[0].reduce((s,l)=>I(w({},s),{[l.userUri]:{id:l.userUri,value:`${l.firstName} ${l.lastName}`,user:l,denotationChar:"@"}}),{}),this.userImageCache=r[0].reduce((s,l)=>I(w({},s),{[l.userUri]:l.avatar&&this.environment.getFilesUrl(`files-v2/users/${l.userUri}/${l.avatar}/download`)}),{}),this.self=r[1],t()})},100)})}get allPeople(){return this.users}get allThings(){return this.things?this.things:this.things=this.filterService.getFilteredEntities(this.lastFilterQuery,this.totalFetchPageSize*4,this.lastVisitedSpace).pipe(B(1),ye(e=>this.elementToThingMapper(e))).toPromise()}fetchMore(){return this.things?this.fetching?(this.lastPostponedFetchCommand={command:"more",value:""},this.allThings):(this.fetching=!0,this.things=new Promise((e,t)=>{Promise.all([this.things,this.filterService.fetchMoreFiltered(this.lastFilterQuery)]).then(n=>{this.fetching=!1,e(w(w({},n[0]),this.elementToThingMapper(n[1]))),this.checkPendingFetchCommand()},n=>{this.fetching=!1,t(n),this.checkPendingFetchCommand()})})):this.allThings}fetchSpecificElements(e){if(!this.things)return this.allThings;if(this.fetching)return this.lastPostponedFetchCommand={command:"uris",value:JSON.stringify(e)},this.allThings;this.fetching=!0;let t=new rn.LeafFilter("uri");return t.setValues(e),this.things=new Promise((n,r)=>{Promise.all([this.things,this.filterService.getFilteredEntities(t,e.length,this.lastVisitedSpace).pipe(B(1),ye(s=>this.elementToThingMapper(s))).toPromise()]).then(s=>{this.fetching=!1,n(w(w({},s[0]),s[1])),this.checkPendingFetchCommand()},s=>{this.fetching=!1,r(s),this.checkPendingFetchCommand()})})}fetchSearched(e){if(!this.things)return this.allThings;if(this.fetching)return this.lastPostponedFetchCommand={command:"search",value:e},this.allThings;this.fetching=!0;let t=this.lastFilterQuery.findQuery(n=>n.getIdentifier()==="searchTerm");if(e.length){if(t&&t.getSearch()===e)return;let n=t||new rn.LeafFilter(Ga.LABEL);n.setIdentifier("searchTerm"),n.setSearch(e),t&&this.lastFilterQuery.removeFilter(t),this.lastFilterQuery.addFilter(n)}else return t&&this.lastFilterQuery.removeFilter(t),this.allThings;return this.things=new Promise((n,r)=>{Promise.all([this.things,this.filterService.getFilteredEntities(this.lastFilterQuery,this.totalFetchPageSize,this.lastVisitedSpace).pipe(B(1),ye(s=>this.elementToThingMapper(s))).toPromise()]).then(s=>{this.fetching=!1,n(w(w({},s[0]),s[1])),this.checkPendingFetchCommand()},s=>{this.fetching=!1,r(s),this.checkPendingFetchCommand()})})}elementToThingMapper(e){return e.reduce((t,n)=>I(w({},t),{[n.uri]:{id:n.uri,denotationChar:"#",blotAlternativeIconHtml:`<span class="mention-icon icon-${this.entityTypesMap[n.elementTypeUri].icon}" style="background: ${this.entityTypesMap[n.elementTypeUri].color};" title="${this.entityTypesMap[n.elementTypeUri].name}"> </span>`,blotTooltip:this.translate.instant("explorer-ng.entity.openInStack"),blotClickable:!0,value:n.label,elementType:`<span style="color: ${this.entityTypesMap[n.elementTypeUri].color};" title="${this.entityTypesMap[n.elementTypeUri].name}"> ${this.entityTypesMap[n.elementTypeUri].name.toLocaleUpperCase()} </span>`}}),{})}get myPermissions(){return this.self}get userAvatarCache(){return this.userImageCache}checkPendingFetchCommand(){!this.fetching&&this.lastPostponedFetchCommand&&setTimeout(()=>{if(this.lastPostponedFetchCommand){switch(this.lastPostponedFetchCommand.command){case"more":this.fetchMore();break;case"uris":this.fetchSpecificElements(JSON.parse(this.lastPostponedFetchCommand.value));break;case"search":this.fetchSearched(this.lastPostponedFetchCommand.value)}this.lastPostponedFetchCommand=null}},100)}};i.\u0275fac=function(t){return new(t||i)(u(lt),u(Qe),u(yn),u(Xe),u(oe),u(pa),u(Te),u(Y),u(Kr),u(K))},i.\u0275prov=z({token:i,factory:i.\u0275fac});let o=i;return o})();var ic=[{id:"quick_filters",detailPosition:we.CENTERBOTTOM,text:"Filter elements by their type, creator or update time. For more complex filtering, use the filtering side panel.",customClass:"hotspot-align-center"},{id:"filter_side_panel",detailPosition:we.CENTERBOTTOM,text:"Find exactly the content you&#39;re looking for by first choosing what type of element you want to see and then what properties to filter by.",customClass:"hotspot-align-center"},{id:"applied_filter_panel",detailPosition:we.CENTERBOTTOM,text:"Look at this panel if you want to know exactly how your content is filtered down.",customClass:"hotspot-align-center"},{id:"navigation_icons",text:"Navigate between different views of the elements in the current Workspace. This can include data views such as the list view and visualizations like the ITONICS Radar.",detailPosition:we.LEFTBOTTOM,customClass:"hotspot-align-twothird"},{id:"create_btn",detailPosition:we.CENTERBOTTOM,text:"Create new elements like Technologies, Trends or Inspirations.",customClass:"hotspot-align-center"},{id:"card_view",detailPosition:we.CENTERBOTTOM,text:"Browse all elements in your Workspace. You can build your &#39;stack of interest&#39; by clicking on element after element.",customClass:"hotspot-align-center",position:{top:"10%"}},{id:"list_view",detailPosition:we.CENTERBOTTOM,text:"Click on the headings to sort the list of elements.",customClass:"hotspot-align-center",position:{top:"50px"}}];var Vu={"explorerElements.initiateCreate.grid":{eventCategory:"Element",eventAction:"Initiate Create",eventLabel:"Content View"},"explorerElements.initiateCreate.radar":{eventCategory:"Element",eventAction:"Initiate Create",eventLabel:"Radar View"},"explorerElements.initiateCreate.portfolio":{eventCategory:"Element",eventAction:"Initiate Create",eventLabel:"Portfolio View"},"explorerElements.initiateCreate.network-graph":{eventCategory:"Element",eventAction:"Initiate Create",eventLabel:"Network Graph View"},"explorerElements.initiateCreate.network":{eventCategory:"Element",eventAction:"Initiate Create",eventLabel:"Network Graph View"},"explorerElements.initiateCreateAnother":{eventCategory:"Element",eventAction:"Initiate Create",eventLabel:"Modal"},"explorerElements.createDraft":{eventCategory:"Element",eventAction:"Draft Create",eventLabel:"Modal"},"explorerElements.publish":{eventCategory:"Element",eventAction:"Publish Create",eventLabel:"Modal"},"explorer.ideation.campaign.workflow.select":{eventCategory:"Campaign Creation",eventAction:"Workflow Selection",eventLabel:"Campaign"},"explorer.ideation.campaign.startCampaign":{eventCategory:"Campaign Creation",eventAction:"Initiate Start Campaign",eventLabel:"Campaign"},"explorer.ideation.campaign.addHighlightedRelation":{eventCategory:"Campain Modification",eventAction:"Add Highlighted Relation",eventLabel:"Campaign Features"},"explorer.ideation.campaign.removeHighlightedRelation":{eventCategory:"Campain Modification",eventAction:"Remove Highlighted Relation",eventLabel:"Campaign Features"},"explorer.ideation.campaign.changeToDoList":{eventCategory:"Campaign Management",eventAction:"Change To Do",eventLabel:"Campaign Features"},"explorerTopBar.grid":{eventCategory:"Content View",eventAction:"Open",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.radar":{eventCategory:"Radar View",eventAction:"Open",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.portfolio":{eventCategory:"Portfolio View",eventAction:"Open",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.networkGraph":{eventCategory:"Network Graph View",eventAction:"Open",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.board":{eventCategory:"Board View",eventAction:"Open",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.search":{eventCategory:"Element Search",eventAction:"Search",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.elementTypeSelected":{eventCategory:"Element Type Selector",eventAction:"Select",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.toggleFilterSidebar":{eventCategory:"Advanced Filter Bar",eventAction:"Toggle",eventLabel:"Explorer Top Bar UI"},"explorerTopBar.toggleQuickFilterBar":{eventCategory:"Quick Filter Bar",eventAction:"Toggle",eventLabel:"Explorer Top Bar UI"},"explorerQuickFilter.elementStatusSelected":{eventCategory:"Element Status Selector",eventAction:"Select",eventLabel:"Quick Filter"},"explorerQuickFilter.createdBySelected":{eventCategory:"Element created by Selector",eventAction:"Select",eventLabel:"Quick Filter"},"explorerQuickFilter.selectOptions.search":{eventCategory:"Quick Filter Bar",eventAction:"Search",eventLabel:"Search quick filter options list"},"explorerQuickFilter.selectOptions.open":{eventCategory:"Quick Filter Bar",eventAction:"Toggle",eventLabel:"Search quick filter select open"},"explorerTopBar.shareUrl":{eventCategory:"Share url",eventAction:"copy url to clipboard",eventLabel:"Share url"},"explorerContentView.listView":{eventCategory:"List View",eventAction:"Open",eventLabel:"Content View"},"explorerContentView.gridView":{eventCategory:"Grid View",eventAction:"Open",eventLabel:"Content View"},"explorerContentView.listViewNextPage":{eventCategory:"List View",eventAction:"Paginate",eventLabel:""},"explorerContentView.gridViewNextPage":{eventCategory:"Grid View",eventAction:"Paginate",eventLabel:""},"explorerAdvancedFilter.selectSavedFilter":{eventCategory:"Saved Filter Selector",eventAction:"Select",eventLabel:"Advanced Filter"},"explorerAdvancedFilter.elementTypeSelected":{eventCategory:"Element Type Selector",eventAction:"Select",eventLabel:"Advanced Filter"},"explorerAdvancedFilter.elementPropertySelected":{eventCategory:"Property Selector",eventAction:"Select",eventLabel:"Advanced Filter"},"explorerAdvancedFilter.saveFilterInitiate":{eventCategory:"Saved Filter",eventAction:"Initiate Create",eventLabel:"Advanced Filter"},"explorerAdvancedFilter.saveFilterConfirm":{eventCategory:"Saved Filter",eventAction:"Create",eventLabel:"Modal"},"explorerTagVis.openFromGrid":{eventCategory:"Tag Visualization",eventAction:"Open",eventLabel:"Grid View"},"explorerTagVis.openFromList":{eventCategory:"Tag Visualization",eventAction:"Open",eventLabel:"List View"},"explorerTagVis.openFromListElement":{eventCategory:"Tag Visualization",eventAction:"Open",eventLabel:"List View Element"},"explorerTagVis.openFromGridElement":{eventCategory:"Tag Visualization",eventAction:"Open",eventLabel:"Grid View Element"},"explorerTagVis.openFromDetail":{eventCategory:"Tag Visualization",eventAction:"Open",eventLabel:"Element Detail View"},"explorerTagVis.openFromStack":{eventCategory:"Tag Visualization",eventAction:"Open",eventLabel:"Stacked Card"},"explorerTagVis.closeFromGrid":{eventCategory:"Tag Visualization",eventAction:"Close",eventLabel:"Grid View"},"explorerTagVis.closeFromList":{eventCategory:"Tag Visualization",eventAction:"Close",eventLabel:"List View"},"explorerTagVis.selectFurtherTags":{eventCategory:"Further Tags Selector",eventAction:"Select",eventLabel:"Tag Visualization"},"explorerTagVis.searchFurtherTags":{eventCategory:"Further Tags Selector",eventAction:"Search",eventLabel:"Tag Visualization"},"explorerTagVis.selectRelatedTags":{eventCategory:"Related Tags Selector",eventAction:"Select",eventLabel:"Tag Visualization"},"explorerTagVis.clearAll":{eventCategory:"Tags Selector",eventAction:"Deselect All",eventLabel:"Tag Visualization"},"explorerTagVis.removeTag":{eventCategory:"Tags Selector",eventAction:"Deselect",eventLabel:"Tag Visualization"},"explorerStack.openFromGrid":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Grid Element"},"explorerStack.openFromList":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"List Element"},"explorerStack.openFromRadar":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Radar Element"},"explorerStack.openFromRadarLabel":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Radar Element Label"},"explorerStack.openFromPortfolio":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Portfolio Element"},"explorerStack.openFromNetworkGraph":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Network Graph Element"},"explorerStack.openFromRelevant":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Relevant Content"},"explorerStack.openFromRelated":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Related Entities"},"explorerStack.openFromDetail":{eventCategory:"Stacked Card",eventAction:"Open",eventLabel:"Detail View"},"explorerStack.openBulkGrid":{eventCategory:"Stacked Card",eventAction:"Bulk Open",eventLabel:"Grid View"},"explorerStack.openBulkList":{eventCategory:"Stacked Card",eventAction:"Bulk Open",eventLabel:"List View"},"explorerStack.options.pageSelected":{eventCategory:"Stacked Card",eventAction:"Open Options",eventLabel:"Grid Element"},"stack.close":{eventCategory:"Stacked Card",eventAction:"Close",eventLabel:""},"stack.closeAll":{eventCategory:"Stack",eventAction:"Close",eventLabel:""},"stack.minimize":{eventCategory:"Stack",eventAction:"Minimize",eventLabel:""},"stack.maximize":{eventCategory:"Stack",eventAction:"Maximize",eventLabel:""},"stack.expand":{eventCategory:"Stack",eventAction:"Expand",eventLabel:""},"stack.collapse":{eventCategory:"Stack",eventAction:"Collapse",eventLabel:""},"explorerPortfolio.toggleConfigPanel":{eventCategory:"Portfolio Configuration Panel",eventAction:"Toggle",eventLabel:"Portfolio Toolbar"},"explorerPortfolio.toggleLables":{eventCategory:"Portfolio Labels",eventAction:"Toggle",eventLabel:"Portfolio Toolbar"},"explorerPortfolio.toggleZoneEditor":{eventCategory:"Zone Editor",eventAction:"Toggle",eventLabel:"Portfolio Toolbar"},"explorerPortfolio.toggleZoneVis":{eventCategory:"Zone Mode",eventAction:"Toggle",eventLabel:"Portfolio Toolbar"},"explorerPortfolio.selectColorDimension":{eventCategory:"Color Dimension Selector",eventAction:"Select",eventLabel:"Portfolio Configuration Panel"},"explorerPortfolio.deselectColorDimension":{eventCategory:"Color Dimension Selector",eventAction:"Deselect",eventLabel:"Portfolio Configuration Panel"},"explorerPortfolio.selectHaloDimension":{eventCategory:"Size Dimension Selector",eventAction:"Select",eventLabel:"Portfolio Configuration Panel"},"explorerPortfolio.deselectHaloDimension":{eventCategory:"Size Dimension Selector",eventAction:"Deselect",eventLabel:"Portfolio Configuration Panel"},"explorerPortfolio.setXAxis":{eventCategory:"Horizontal Axis Selector",eventAction:"Select",eventLabel:"Portfolio Visualization"},"explorerPortfolio.setYAxis":{eventCategory:"Vertical Axis Selector",eventAction:"Select",eventLabel:"Portfolio Visualization"},"explorerPortfolio.selectSavedFromHeader":{eventCategory:"Saved Portfolio Selector",eventAction:"Select",eventLabel:"Portfolio Heading"},"explorerPortfolio.selectSavedFromPanel":{eventCategory:"Saved Portfolio Selector",eventAction:"Select",eventLabel:"Portfolio Configuration Panel"},"explorerPortfolio.createSaved":{eventCategory:"Saved Portfolio",eventAction:"Create",eventLabel:"Modal"},"explorerPortfolio.editSaved":{eventCategory:"Saved Portfolio",eventAction:"Edit",eventLabel:"Modal"},"explorerPortfolio.deleteSaved":{eventCategory:"Saved Portfolio",eventAction:"Delete",eventLabel:"Modal"},"watchElements.grid.start-watching":{eventCategory:"Watch Elements",eventAction:"Start Watching",eventLabel:"Modal"},"watchElements.grid.stop-watching":{eventCategory:"Watch Elements",eventAction:"Stop Watching",eventLabel:"Modal"},"watchElements.stack.start-watching":{eventCategory:"Watch Elements",eventAction:"Start Watching",eventLabel:"Modal"},"watchElements.stack.stop-watching":{eventCategory:"Watch Elements",eventAction:"Stop Watching",eventLabel:"Modal"},"watchElements.detail-page.start-watching":{eventCategory:"Watch Elements",eventAction:"Start Watching",eventLabel:"Modal"},"watchElements.detail-page.stop-watching":{eventCategory:"Watch Elements",eventAction:"Stop Watching",eventLabel:"Modal"},"networkGraph.toggleConfigPanel":{eventCategory:"Network Graph Configuration Panel",eventAction:"Toggle",eventLabel:"Network Graph Toolbar"},"networkGraph.selectLinkProperty":{eventCategory:"Links Selector",eventAction:"Select",eventLabel:"Network Graph Configuration Panel"},"networkGraph.deselectLinkProperty":{eventCategory:"Links Selector",eventAction:"Deselect",eventLabel:"Network Graph Configuration Panel"},"networkGraph.selectColorProperty":{eventCategory:"Color Dimension Selector",eventAction:"Select",eventLabel:"Network Graph Configuration Panel"},"networkGraph.deselectColorProperty":{eventCategory:"Color Dimension Selector",eventAction:"Deselect",eventLabel:"Network Graph Configuration Panel"},"networkGraph.selectHaloProperty":{eventCategory:"Size Dimension Selector",eventAction:"Select",eventLabel:"Network Graph Configuration Panel"},"networkGraph.deselectHaloProperty":{eventCategory:"Size Dimension Selector",eventAction:"Deselect",eventLabel:"Network Graph Configuration Panel"},"networkGraph.selectSavedFromHeader":{eventCategory:"Saved Network Graph Selector",eventAction:"Select",eventLabel:"Network Graph Heading"},"networkGraph.selectSavedFromPanel":{eventCategory:"Saved Network Graph Selector",eventAction:"Select",eventLabel:"Network Graph Configuration Panel"},"networkGraph.createSaved":{eventCategory:"Saved Network Graph",eventAction:"Create",eventLabel:"Modal"},"networkGraph.editSaved":{eventCategory:"Saved Network Graph",eventAction:"Edit",eventLabel:"Modal"},"networkGraph.deleteSaved":{eventCategory:"Saved Network Graph",eventAction:"Delete",eventLabel:"Modal"},"explorer.importData.openImport":{eventCategory:"Excel Import",eventAction:"Open Import",eventLabel:"Explorer Toolbar"},"explorer.importData.selectElementType":{eventCategory:"Excel Import",eventAction:"Select Element Type",eventLabel:"Explorer Toolbar"},"explorer.importData.download":{eventCategory:"Excel Import",eventAction:"Download",eventLabel:"Explorer Toolbar"},"explorer.importData.upload":{eventCategory:"Excel Import",eventAction:"Upload",eventLabel:"Explorer Toolbar"},"explorer.importData.cancelImport":{eventCategory:"Excel Import",eventAction:"Cancel Import",eventLabel:"Explorer Toolbar"},"explorer.importData.checkFile":{eventCategory:"Excel Import",eventAction:"Check File",eventLabel:"Explorer Toolbar"},"explorer.importData.closeImportModal":{eventCategory:"Excel Import",eventAction:"Close Import",eventLabel:"Explorer Toolbar"},"explorer.radarEmbed.openEmbed":{eventCategory:"Embed",eventAction:"Open Embed",eventLabel:"Radar Toolbar"},"element.signalsFeed.resetFilter":{eventCategory:"Signals Filter",eventAction:"Reset Filter",eventLabel:"Signals"},"element.signalsFeed.saveFilterInitiate":{eventCategory:"Signals Filter",eventAction:"Initiate Save Signal Feed",eventLabel:"Signals"},"element.signalsFeed.createNewFilter":{eventCategory:"Signals Filter",eventAction:"Create new Filter",eventLabel:"Signals"},"element.signalsFeed.saveNewPreset":{eventCategory:"Signals Filter",eventAction:"Save New Preset",eventLabel:"Signals"},"element.signalsFeed.updateFilterName":{eventCategory:"Signals Filter",eventAction:"Update Filter Name",eventLabel:"Signals"},"element.signalsFeed.deleteSavedFilter":{eventCategory:"Signals Filter",eventAction:"Delete Saved Filter",eventLabel:"Signals"},"element.signalsFeed.editSavedFilter":{eventCategory:"Signals Filter",eventAction:"Edit Saved Filter",eventLabel:"Signals"},"element.signalsFeed.toggleKeyEvent":{eventCategory:"Signal Features",eventAction:"Toggle Key Events",eventLabel:"Signals"},"element.signalsFeed.unToggleKeyEvent":{eventCategory:"Signal Features",eventAction:"Un-Toggle Key Events",eventLabel:"Signals"},"element.signalsFeed.selectTopStories":{eventCategory:"Signal Features",eventAction:"Select Top Stories",eventLabel:"Signals"},"element.signalsFeed.createElementFromTopStories":{eventCategory:"Signal Features",eventAction:"Create Element from Top Stories",eventLabel:"Signals"},"element.signalsFeed.publishElementFromTopStories":{eventCategory:"Signal Features",eventAction:"Publish Element from Top Stories",eventLabel:"Signals"},"element.signalsFeed.selectSignalType":{eventCategory:"Signal Features",eventAction:"Select Signal Type",eventLabel:"Signals"},"element.signalsFeed.changeElementStatus":{eventCategory:"Signal Features",eventAction:"Change Status",eventLabel:"Signals"},"element.signalsFeed.selectDateRange":{eventCategory:"Signal Features",eventAction:"Select Date",eventLabel:"Signals"},"element.signalsFeed.shareElement":{eventCategory:"Signal Features",eventAction:"Share Element",eventLabel:"Signals"}},fo=function(o){return o.CREATE_MODAL_FROM_SIGNAL="explorer.signalsStack.createModalFromSignal",o.PREFIX_SIGNALS_STACK="explorer.signalsStack",o}(fo||{});var ho=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,fe]});let o=i;return o})();var Gp=function(o){return o.IGNORE="IGNORE",o.HONOUR_TARGET_UPDATES="HONOUR_TARGET_UPDATES",o.FORCE_DELETE="FORCE_DELETE",o}(Gp||{});var He=qt(bn());function Qp(o,i){o&1&&(ee(0),G(1),N(2,"translate"),te()),o&2&&(g(),Z(" ",V(2,1,"explorer-ng.nonProfessionalNote.customElementType")," "))}function Yp(o,i){o&1&&(ee(0),G(1),N(2,"translate"),te()),o&2&&(g(),Z(" ",V(2,1,"explorer-ng.nonProfessionalNote.vanillaElementTypeCustomProperties")," "))}function Kp(o,i){if(o&1){let a=W();f(0,"ui2-button",9),E("click",function(t){v(a);let n=m(2);return P(n.onUpgradeCtaClicked(t))}),G(1),N(2,"translate"),_()}o&2&&(g(),Z("",V(2,1,"explorer-ng.nonProfessionalNote.upgradeCTA")," "))}function Jp(o,i){if(o&1&&(f(0,"div",1)(1,"div",2),ee(2,3),M(3,Qp,3,3,"ng-container",4)(4,Yp,3,3,"ng-container",4),te(),_(),f(5,"div",5),M(6,Kp,3,3,"ui2-button",6),f(7,"span",7),N(8,"translate"),A(9,"ui2-label",8),N(10,"translate"),_()()()),o&2){let a=m();g(2),d("ngSwitch",a.case),g(),d("ngSwitchCase",a.elementTypeCase.CUSTOM_ELEMENT_TYPE),g(),d("ngSwitchCase",a.elementTypeCase.VANILLA_ELEMENT_TYPE_CUSTOM_PROPERTIES),g(2),d("ngIf",a.userHasBillingPermission),g(),d("ui2Tooltip",a.userHasBillingPermission?null:V(8,7,"explorer-ng.nonProfessionalNote.tooltipNoAdmin")),g(2),d("text",V(10,9,"explorer-ng.nonProfessionalNote.proTag"))("hasHover",!1)}}var Co=function(o){return o.CUSTOM_ELEMENT_TYPE="customElementType",o.VANILLA_ELEMENT_TYPE_CUSTOM_PROPERTIES="vanillaElementTypeCustomProperties",o}(Co||{}),Jo="showing-non-professional-plan-note",oc=(()=>{let i=class i{constructor(e,t,n,r){this.elementPermissionService=e,this.environmentService=t,this.renderer2=n,this.permissionService=r,this.elementTypeCase=Co,this.onDestroy=new U}ngOnInit(){this.initNote()}ngOnDestroy(){this.renderer2.removeClass(document.body,Jo),this.onDestroy.next(null),this.onDestroy.complete()}initNote(){return b(this,null,function*(){(yield this.elementPermissionService.getElementConfigurationSubscription())||Re([this.permissionService.userHasElementTypePermission(x.EDIT_ALL_ELEMENTS,this.elementTypeUri),this.permissionService.userHasAnyPermission([Ci.EDIT_SUBSCRIPTION_PLAN,x.MANAGE_SUBSCRIPTION_PLAN])]).pipe(B(1)).subscribe(r=>b(this,[r],function*([t,n]){if(this.userHasBillingPermission=n,!t)return;if(!(yield this.elementPermissionService.isVanillaElementType(this.elementTypeUri))){this.showNote=!0,this.renderer2.addClass(document.body,Jo),this.case=Co.CUSTOM_ELEMENT_TYPE;return}this.showNote=yield this.elementPermissionService.elementTypeHasCustomProperties(this.elementTypeUri),this.showNote&&(this.renderer2.addClass(document.body,Jo),this.case=Co.VANILLA_ELEMENT_TYPE_CUSTOM_PROPERTIES)}))})}onUpgradeCtaClicked(e){e.stopPropagation(),this.goToSettingsBillingPage()}goToSettingsBillingPage(){return b(this,null,function*(){let e=this.environmentService.getUrl(zn.SETTINGS);window.open(`${e}/organization/manage-subscriptions`,"_blank")})}};i.\u0275fac=function(t){return new(t||i)(c(to),c(lt),c(wr),c(Te))},i.\u0275cmp=D({type:i,selectors:[["explorer-non-professional-plan-note"]],inputs:{elementTypeUri:"elementTypeUri"},decls:1,vars:1,consts:[["class","note",4,"ngIf"],[1,"note"],[1,"note-custom-text","label-xs-single"],[3,"ngSwitch"],[4,"ngSwitchCase"],[1,"note-upgrade-cta"],["class","button-text",3,"click",4,"ngIf"],[1,"tooltip-wrap",3,"ui2Tooltip"],["labelType","outline",1,"ui-label--main-gray-darker","pro-tag",3,"text","hasHover"],[1,"button-text",3,"click"]],template:function(t,n){t&1&&M(0,Jp,11,11,"div",0),t&2&&d("ngIf",n.showNote)},dependencies:[ne,ci,pi,hi,Fa,gt,Le],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}.note[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;left:0;width:100%;background-color:#fff;padding:0 24px;height:24px;z-index:12;border-bottom:1px solid #eff2f4}.note-custom-text[_ngcontent-%COMP%]{color:#627588}.note-upgrade-cta[_ngcontent-%COMP%]{flex:0 0 auto;display:flex;align-items:center}.button-text[_ngcontent-%COMP%]{margin-right:4px}.tooltip-wrap[_ngcontent-%COMP%]{display:flex}  .actions-right,   .actions-left{transition:top .1s ease}  .showing-non-professional-plan-note .actions-right,   .showing-non-professional-plan-note .actions-left{top:60px!important}  .showing-non-professional-plan-note navigation-main.detail-full-page #content{overflow:initial}  .showing-non-professional-plan-note navigation-main.detail-full-page .workspace-trigger{transform:translateY(24px)}
/*# sourceMappingURL=non-professional-plan-note.component-MGBDIKCH.css.map */`]});let o=i;return o})();var nd=["headerRef"],id=["containerRef"],od=o=>({$implicit:o,isExpandedView:!0}),rd=o=>({$implicit:o});function ad(o,i){if(o&1&&(f(0,"div"),A(1,"core-error-view",10),_()),o&2){let a=m();g(),d("data",a.errorData)}}function sd(o,i){if(o&1&&A(0,"explorer-non-professional-plan-note",11),o&2){let a=m();d("elementTypeUri",a.entity.elementTypeUri)}}function ld(o,i){if(o&1){let a=W();f(0,"explorer-header",18),E("moreTagsClicked",function(t){v(a);let n=m(2);return P(n.onMoreTagsClicked(t))})("workflowStatusPearChainClicked",function(t){v(a);let n=m(2);return P(n.navigateToPageBasedOnChildControl(t))})("submitGptImageData",function(t){v(a);let n=m(2);return P(n.submitGptImageData(t))}),_()}if(o&2){let a=m(2);d("header",a.header)("entityUri",a.entityUri)("isWatchingElement",a.isWatchingElement)("allowTagInteraction",!a.disableTagInteraction)("disableWatchElement",a.disableWatchElement)("workflowInstances",a.workflowInstances)("hideShareButton",a.hideShareButton)}}function cd(o,i){if(o&1){let a=W();f(0,"explorer-header-ideation",19),E("moreTagsClicked",function(t){v(a);let n=m(2);return P(n.onMoreTagsClicked(t))})("submitGptImageData",function(t){v(a);let n=m(2);return P(n.submitGptImageData(t))}),_()}if(o&2){let a=m(2);d("header",a.headerB)("entityUri",a.entityUri)("isWatchingElement",a.isWatchingElement)("allowTagInteraction",!a.disableTagInteraction)("disableWatchElement",a.disableWatchElement)}}function pd(o,i){o&1&&Yt(0)}function dd(o,i){if(o&1&&(ee(0),M(1,pd,1,0,"ng-container",22),te()),o&2){let a=m().$implicit;m(3);let e=it(6);g(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",ae(2,od,a))}}function md(o,i){if(o&1&&M(0,dd,2,4,"ng-container",7),o&2){let a=i.$implicit;d("ngIf",a==null?null:a.name)}}function gd(o,i){o&1&&Yt(0)}function ud(o,i){if(o&1&&(ee(0),M(1,gd,1,0,"ng-container",22),te()),o&2){let a=m().$implicit;m(3);let e=it(6);g(),d("ngTemplateOutlet",e)("ngTemplateOutletContext",ae(2,rd,a))}}function fd(o,i){if(o&1&&M(0,ud,2,4,"ng-container",7),o&2){let a=i.$implicit;d("ngIf",a==null?null:a.name)}}function hd(o,i){if(o&1){let a=W();ee(0,20),E("filteredControls",function(t){v(a);let n=m(2);return P(n.filteredControls(t))}),f(1,"ui2-tab",21),E("select",function(t){v(a);let n=m(2);return P(n.selectedPage(t))}),M(2,md,1,1,"ng-template",null,3,ce)(4,fd,1,1,"ng-template",null,4,ce),_(),te()}if(o&2){let a=m(2);d("controls",a.pageControls),g(),d("active",a.activeTab)("items",a.tabPageControls)("numItemsToShow",a.tabsNumToShow)("tabNotificationObs",a.tabNotificationObs)}}function Cd(o,i){if(o&1){let a=W();f(0,"explorer-page",23),E("onAddRelation",function(t){v(a);let n=m(2);return P(n.onAddRelation(t))})("onAddSelectedRelation",function(t){v(a);let n=m(2);return P(n.onAddSelectedRelation(t))})("onRemoveSelectedRelation",function(t){v(a);let n=m(2);return P(n.onRemoveSelectedRelation(t))})("onEntityFieldUpdate",function(t){v(a);let n=m(2);return P(n.fieldUpdate(t))})("onRteContentUpdate",function(t){v(a);let n=m(2);return P(n.rteFieldUpdate(t))})("onRatingChange",function(t){v(a);let n=m(2);return P(n.onRatingChange(t))})("onAutoFillTags",function(t){v(a);let n=m(2);return P(n.openAutofillTagsModal(t))})("instanceUpdated",function(t){v(a);let n=m(2);return P(n.onInstanceUpdated(t))}),_()}if(o&2){let a=m(2);d("permissionsMap",a.permissionsMap)("featureFlagsMap",a.featureFlagsMap)("page",a.activePage)("relations",a.relations)("updatingData",a.updatingStatus)("loadingMap",a.loadingMap)("disableCommenting",!a.showComments)("allowTagInteraction",!a.disableTagInteraction)("scrollToEndObs",a.scrollToEndObs)("scrollableParentElement",a.scrollableParentElement)("entity",a.entity)("workflowInstances",a.workflowInstances)}}function _d(o,i){if(o&1&&(f(0,"div",12)(1,"div",null,1),M(3,ld,1,7,"explorer-header",13)(4,cd,1,5,"explorer-header-ideation",14),_(),f(5,"div",15,2),M(7,hd,6,5,"ng-container",16)(8,Cd,1,12,"explorer-page",17),_()()),o&2){let a=m();g(3),d("ngIf",a.header),g(),d("ngIf",a.headerB),g(3),d("ngIf",a.pageControls.length),g(),d("ngIf",a.showPage)}}function xd(o,i){o&1&&A(0,"ui-loader",26)}function bd(o,i){if(o&1&&(f(0,"span",27),G(1),_()),o&2){let a=m(3);g(),Z(" (",a.totalComments,") ")}}function vd(o,i){if(o&1&&(ee(0),M(1,xd,1,0,"ui-loader",25)(2,bd,2,1,"ng-template",null,5,ce),te()),o&2){let a=it(3),e=m(2);g(),d("ngIf",e.commentTabLoader)("ngIfElse",a)}}function Pd(o,i){if(o&1&&(f(0,"div",24)(1,"span"),G(2),_(),M(3,vd,4,2,"ng-container",7),_()),o&2){let a=i.$implicit,e=i.isExpandedView,t=m();le("label-sm-semibold",e),g(),le("mr-1",t.commentTabLoader),g(),Z(" ",a.name," "),g(),d("ngIf",a.name.toLowerCase()===t.commentTabControl)}}var Md=300,yd=1e3,wd="100vh",Od=500,Sd=150,rc=5e3,Ed="Detail Page Component",xo=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h,C,O,S,J,me,pe,j,re,Ce,Pe,Me,Ve,yt,Dn,Ao,Lo,No,Vo,Do,Bo,jo,zo){this.entityConfigHelperService=e,this.entityService=t,this.route=n,this.permissionService=r,this.featureFlagService=s,this.detailPageService=l,this.searchFieldService=p,this.trackingService=h,this.controlsOverrideService=C,this.stackedViewsService=O,this.workflowService=S,this.commentService=J,this.environmentService=me,this.sessionService=pe,this.bulkActionsService=j,this.createElementAutofillService=re,this.modalService=Ce,this.router=Pe,this.goToService=Me,this.elementRef=Ve,this.logService=yt,this.store=Dn,this.toastNotificationService=Ao,this.filterService=Lo,this.relatedContentService=No,this.translateService=Vo,this.gptAutofillService=Do,this.renderersHelperService=Bo,this.activatedRoute=jo,this.workflowInstanceService=zo,this.destroyRef=Ge(ge),this.errorData={routeName:"errorView",errorMessageStartPhrase:"explorer-ng.notFound.errorMessageStartPhrase",errorMessage:"explorer-ng.notFound.errorMessage",errorCode:"404",errorReason:"explorer-ng.notFound.errorReason",errorCodeLabel:"explorer-ng.notFound.errorCodeLabel",redirectButtonText:"",redirectLink:""},this.disableTagInteraction=!1,this.disableCommenting=!1,this.disableWatchElement=!1,this.hideShareButton=!1,this.showComments=!1,this.pageControls=[],this.tabPageControls=[],this.onTabChangeDestroy=new U,this.loading=new wt(!0),this.showPage=!0,this.tabNotificationSub=new hr(1),this.isWatchingElement=!1,this.commentTabControl=Mt.COMMENTS,this.commentTabLoader=!0,this.tenantUri="",this.lastScrollTop=0,this.scrollToEndSub=new U,this.scrollToEndObs=this.scrollToEndSub.asObservable(),this.relations={},this.updatingStatus=!1,this.currentSpaceUri="",this.permissionsMap=new Map,this.featureFlagsMap=null,this.loadingMap=new wt(new Map),this.isFullDetailPage=!1,this.tabNotificationObs=this.tabNotificationSub.asObservable(),this.subscribeToScrollEvent()}ngAfterViewInit(){this.scrollableParentElement=this.elementRef}ngOnInit(){return b(this,null,function*(){this.entityUri||this.route.data.pipe(R(this.destroyRef)).subscribe(e=>{this.entityUri!==e.entityUri&&(this.entityUri=e.entityUri,this.getEntityDetailAndInitializePage())}),this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R(this.destroyRef)).subscribe(e=>{this.currentSpaceUri=e,this.prepareEntityTypeMapsAndUpdate()}),this.disableCommenting||this.preloadComments(),this.listenCommentStateChanges(),Object.keys(this.bulkActionsService.entityTypesMap||{}).length||this.prepareEntityTypeMapsAndUpdate(),this.tenantUri=yield $(this.store.select(Ye.selectCurrentTenantUri).pipe(H())),this.renderersHelperService.getPermissionsMap([x.PIN_SIGNAL,x.CREATE_INSIGHTS_PRESET,x.EDIT_INSIGHTS_PRESET,x.DELETE_INSIGHTS_PRESET,x.RELATE_ALL_ELEMENTS,x.RELATE_OWN_ELEMENT]).then(e=>{this.permissionsMap=new Map([...this.permissionsMap,...e])}),this.featureFlagsMap=this.renderersHelperService.getFeatureFlagsMap([is.MATCH_INDICATOR,Ea,Sa,Oa,vs,wa,Pt.INSIGHTS,Pt.INSIGHTS_ENABLED,Pt.MANAGE_RATINGS_FEATURE_FLAG,Pt.RATING_NOTES_FEATURE_FLAG,Pt.EXACT_RATING,Pt.WORKSPACE_LEVEL_ELEMENT_CONFIG,ya,Pa,Ma,ba,va,Pt.RATING_NOTES_FEATURE_FLAG])})}ngOnChanges(e){e?.entity&&this.getRelatedData(this.entity),e.entityUri&&e.entityUri.currentValue&&this.getEntityDetailAndInitializePage()}ngOnDestroy(){this.onTabChangeDestroy.next()}canDeactivate(){return this.trackingService.trackEventById("explorer.elementUpdate.triggerWarningAlert"),!this.entityService.pendingUpdate()}getEntityDetailAndInitializePage(){this.loading.next(!0),this.entitySubscription&&this.entitySubscription.unsubscribe(),this.entitySubscription=this.entityService.getEntityDetail(this.entityUri).pipe(R(this.destroyRef)).subscribe(e=>b(this,null,function*(){e?(this.loadingMap?.next(new Map),this.entity=e,this.renderersHelperService.getElementTypePermissionsMap([x.EDIT_ALL_ELEMENTS,x.CREATE_ATTACHMENT,x.DELETE_ATTACHMENT],e.elementTypeUri,this.currentSpaceUri).then(t=>{this.permissionsMap=new Map([...this.permissionsMap,...t])}),this.controlsOverrideService.getOverriddenControls(this.entity.uri).pipe(B(1)).subscribe(t=>{this.initDetailPageStructure(t)}),this.createElementAutofillService.shouldAutofill(this.entityUri)&&(yield this.fetchFullDetailPageFlag(),this.isFullDetailPage&&this.autofillElement()),(!this.renderedEntityUri||e?.uri!==this.renderedEntityUri)&&(this.renderedEntityUri=e?.uri,this.loadingMap=new wt(new Map),this.activeTab=this.tabPageControls[0],this.selectedPage(this.activeTab)),this.isWatchingElement=e?.watchStatus):(this.entity=void 0,this.loading.next(!1)),this.getRelatedData(this.entity)})),this.route.snapshot.data.isFullDetailPageRoute?(this.stackedClass=!1,this.errorData.redirectButtonText="explorer-ng.notFound.redirectButtonText",this.height=wd):(this.stackedClass=!0,this.stackedViewsService.onDimensionChange.pipe(R(this.destroyRef)).subscribe(()=>{this.stackedViewsService.isCollapsed?this.tabsNumToShow=2:this.tabsNumToShow=void 0})),this.listenCommentStateChanges()}initDetailPageStructure(e){!this.loading.getValue()||!this.entity||(console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),Promise.all([this.entityConfigHelperService.getPageControlsByElementType(this.entity?.elementTypeUri,this.currentSpaceUri),this.featureFlagService.isFeatureEnabled("explorer.app.newsfeed"),this.featureFlagService.isFeatureEnabled("explorer.app.ideation"),$(this.permissionService.userHasElementTypePermission(x.VIEW_ALL_COMMENTS,this.entity.elementTypeUri)),this.getCurrentEntityInstances(this.currentSpaceUri,this.entity?.uri)]).then(([t,n,r,s,l])=>{let p=!0,h=!0,C=!0,O=!0,S=!0;this.workflowInstances=l,this.showComments=!this.disableCommenting&&s,e&&(p=e[Mt.SIGNALS]??!0,h=e[Mt.COMMENTS]??!0,C=e[Mt.SUBMISSION]??!0,O=e[Mt.IDEATION_WORKFLOW]??!0,S=e[Mt.ENTITY_WORKFLOW]??!0);let J=[nn.PAGE];n&&p&&J.push(nn.NEWSFEED),this.showComments&&h&&s&&J.push(nn.COMMENTS),r&&C&&J.push(nn.BOARD),r&&O&&J.push(nn.WORKFLOW),l?.length&&S&&J.push(nn.PROCESS),this.pageControls=t.filter(me=>J.indexOf(me.controlTypeUri)>-1),this.tabPageControls=this.pageControls.map(me=>({id:me.uri,name:me.name,label:me.name})),this.activeTab=this.tabPageControls[0],this.extractHeader(t),this.extractHeaderB(t),this.loading.next(!1),this.selectedPage(this.activeTab),this.maybePrefetchLinkedSearchField(),this.initTabNotification(this.pageControls),this.stackedClass||this.tabSwitchFromUrl(),this.subscribeToGoToTab()}))}tabSwitchFromUrl(){this.route.queryParamMap.pipe(R(this.destroyRef)).subscribe(e=>{this.currentParamsMap=e;let t=e.get("page");if(t){t.replace(/-/g," ");let n=this.tabPageControls.find(r=>r.name.toLowerCase()===t.toLowerCase()||r.id===t);n&&this.selectedPage(n)}})}preloadComments(){return b(this,null,function*(){if(!this.entityUri)return;let e=this.entityUri;console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let t=yield $(this.store.select(Ye.selectCurrentTenant).pipe(H()));console.assert(!!t,"tenant should not be null"),console.assert(!!this.entityUri,"entityUri should not be null"),this.commentService.init({restUrl:this.environmentService.getRestUrl()+"/comments",tenant:t?.tenantUri,space:this.currentSpaceUri,user:this.sessionService.getUser().sub}),this.commentService.get({type:Wa.ENTITY,uri:this.entityUri}).subscribe({next:n=>{let r=this.commentService.commentSubject.getValue().filter(s=>s.elementUri!==this.entityUri);r.push({elementUri:this.entityUri,part:n.part,total:n.total}),this.commentService.commentSubject.next(r),this.commentService.commentTreeSubject.next({[e]:{commentTree:this.commentService.getCommentsTree(n.part)}}),this.commentTabLoader=!1},error:()=>{this.commentTabLoader=!1}})})}filteredControls(e){e.length&&this.pageControls.length&&(this.tabPageControls=e.map(t=>({id:t.uri,name:t.name,label:t.name})),(!this.activeTab||!this.tabPageControls.find(t=>t.id===this.activeTab?.id))&&(this.activeTab=this.tabPageControls[0]))}extractHeader(e){this.header=e.find(t=>t.controlTypeUri==="header")}extractHeaderB(e){this.headerB=e.find(t=>t.controlTypeUri==="headerB")}listenCommentStateChanges(){this.commentService.commentSubject.pipe(R(this.destroyRef)).subscribe({next:e=>{if(e?.length){let t=e.find(n=>n?.elementUri===this.entityUri);this.totalComments=t?.total||0,this.commentTabLoader=!1}}})}selectedPage(e){this.activePage=this.pageControls.find(t=>t.uri===e?.id),this.activeTab=e,this.stackedClass||e?.name.toLowerCase()===Mt.COMMENTS&&this.addCommentsInParam(),e&&this.trackingService.trackEventById("explorerStack.options.pageSelected",{dimension5:e.name}),this.onTabChangeDestroy.next(),this.activePage&&this.controlsOverrideService.getOverriddenControls(this.activePage.uri).pipe(vr(this.onTabChangeDestroy)).subscribe(t=>{this.showPage=t?.featureEnabled??!0})}addCommentsInParam(){this.router.navigate([],{relativeTo:this.route,queryParams:I(w({},this.currentParamsMap?.params),{page:Mt.COMMENTS})})}getPageUri(e){return this.pageControls?.find(t=>t.descendants.find(n=>n.uri===e.uri))?.uri}onMoreTagsClicked(e){this.navigateToPageBasedOnChildControl(e),this.detailPageService.scrollToTag.next(e.uri)}maybePrefetchLinkedSearchField(){this.entity&&this.pageControls.find(e=>e.controlTypeUri===Ra.NEWSFEED)&&this.searchFieldService.getSearchFields({elementUri:this.entity.uri}).toPromise()}navigateToPageBasedOnChildControl(e){let t=this.getPageUri(e),n=this.tabPageControls.find(r=>t===r.id);n&&this.selectedPage(n)}initTabNotification(e){e.forEach(t=>{let n=t.propertyValues.find(r=>r.controlTypePropertyUri.endsWith(Wt.TAB_NOTIFICATION_ENUM))?.value;if(n)switch(n){case Ji.WORKFLOW_NOTIFIER:this.permissionService.userHasAnyPermission([Ci.EDIT_ENTITY,x.EDIT_ALL_ELEMENTS]).pipe(B(1)).subscribe({next:r=>{r&&this.initWorkflowNotification(t)}});break;case Ji.COMMENTS_NOTIFIER:break;case Ji.SIGNALS_NOTIFIER:break}})}initWorkflowNotification(e){this.workflowService.getWorkflowChangeEmitter().pipe(R(this.destroyRef)).subscribe(()=>{this.updateWorkflowNotification(e)}),this.updateWorkflowNotification(e)}updateWorkflowNotification(e){this.entity&&(console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),console.assert(!!this.entity,"eentity should not be null"),this.workflowService.getWorkflowStatus(this.entity?.uri,this.currentSpaceUri).pipe(B(1)).subscribe({next:t=>{if(!t||!t?.phases)return;let n=t.phases[t.currentPhase];if(t.locked&&[ke.PARKED,ke.REJECTED,ke.COMPLETED].includes(t.locked)){this.tabNotificationSub.next({tabId:e.uri,notify:!1});return}let r=n?.taskStatus?!!Object.values(n?.taskStatus).find(s=>!s?.value):!1;this.tabNotificationSub.next({tabId:e.uri,notify:r})}}))}prepareEntityTypeMapsAndUpdate(){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri).then(e=>{let t=e.reduce((n,r)=>(n[r.uri]=I(w({},r),{label:r.name}),n),{});this.bulkActionsService.entityTypesMap=t})}subscribeToGoToTab(){this.goToService.onGoToDetailPageTabObs.pipe(R(this.destroyRef)).subscribe(e=>{if(!this.entity||e.elementUri!==this.entity.uri||e.complete)return;e.complete=!0;let t=this.pageControls.find(r=>e.controlName?e?.controlName===r.name&&r.controlTypeUri===e?.controlTypeUri:r.controlTypeUri===e?.controlTypeUri);if(!t)return;let n=this.tabPageControls.find(r=>r.id===t?.uri);n&&this.selectedPage(n),setTimeout(()=>{this.detailPageService.scrollToElement(e?.scrollTo===os.CONTAINER?this.containerRef:this.headerRef)},yd)})}autofillElement(){let e=this.entity;if(!e)return;let t;this.entityConfigHelperService.getElementType(e.elementTypeUri).then(n=>{t=n}),this.entityConfigHelperService.getFieldsForElementType(e.elementTypeUri).then(n=>{let r=n.filter(C=>C.fieldTypeUri===L.TAG)[0],s=n.filter(C=>C.fieldTypeUri===L.RICH)[0],l=n.filter(C=>C.fieldTypeUri===L.HEADER_IMAGE)[0],p=this.translateService.instant("renderers-ng.autofill.modalTitleSuffix"),h=this.modalService.openModal(qs,{closeable:!0,customClass:"small-modal",dismissable:!0,escapable:!0,innerPadding:!0,closeConfirmChecker:()=>b(this,null,function*(){return!1})}).instance;h.entity=e,h.elementType=t,h.tenantUri=this.tenantUri,h.modalTitle=p,h.featureFlagsMap=this.featureFlagsMap,h.tagField=r,h.headerImageField=l,h.descriptionField=s,h.isComplete.pipe(R(this.destroyRef)).subscribe(()=>{this.modalService.closeModal()}),h.updateEntityOnAutofill.subscribe(C=>{let O=this.entityService.prepareEntityFieldsForUpdate(C.model,C.field,C.entity);this.entityService.updateEntity(O)}),h.hasImageUploadData.pipe(R(this.destroyRef)).subscribe(C=>{let O={uri:e.uri,spaceUri:this.currentSpaceUri,version:(e.version||0)+1,primaryImage:C};this.entityService.updateEntity(O).subscribe(()=>{this.gptAutofillService.handleImageToasts(!0,C)},()=>{this.gptAutofillService.handleImageToasts(!1,C)})}),h.acknowledgeAutofill.pipe(R(this.destroyRef)).subscribe(C=>{this.createElementAutofillService.acknowledgeAutofill(C)})})}openAutofillTagsModal(e){return b(this,null,function*(){this.trackingService.trackEventById("smartIdeation.smartIdeation.clickAutofillTags");let t=yield $(this.store.select(Ye.selectCurrentTenantUri).pipe(H())),n=yield this.entityConfigHelperService.getAllElementTypes(yield $(this.store.select(Q.selectCurrentSpaceUri).pipe(H()))).then(s=>s.find(l=>l.uri===this.entity?.elementTypeUri)),r=this.modalService.openModal($s,{closeable:!0,customClass:"small-modal",dismissable:!0,escapable:!0,closeConfirmChecker:()=>b(this,null,function*(){return!1})}).instance;r.entity=this.entity,r.field=e,r.elementType=n,r.tenantUri=t,this.modalService.setTitle(this.translateService.instant("renderers-ng.autofill.modalTitle",e)),r.insertGptTags.pipe(B(1)).subscribe(s=>{let l=this.entity[e.uri];this.fieldUpdate({field:e,fieldValue:[...l??[],...s]}),this.modalService.closeModal()})})}subscribeToScrollEvent(){_r(this.elementRef?.nativeElement,"scroll",{passive:!0}).pipe(St(Od)).subscribe(e=>{let t=this.lastScrollTop,n=e?.target?.scrollTop;if(this.lastScrollTop=n,t>=n)return;let r=e?.target?.offsetHeight,s=e?.target?.scrollHeight,l=n+r;Sd>=s-l&&this.scrollToEndSub.next()})}onAddRelation(e){let{element:t,relationTypeUri:n}=e;!t||!this.entityUri||!this.currentSpaceUri||!n||(t.alreadyRelated=!0,this.entityService.addRelations(this.currentSpaceUri,this.entityUri,n,[t.uri]).subscribe({next:r=>{if(!r?.data?.setRelations?.hasViolations){this.entity&&this.showSuccessToastWithRelation(t);return}t.alreadyRelated=!1,this.handleAddRelationsError(r,t.uri,n)},error:r=>{t.alreadyRelated=!1,this.handleAddRelationsError(r,t.uri,n)}}))}showSuccessToastWithRelation(e){this.entity&&this.toastNotificationService.showToast({content:this.translateService.instant("renderers-ng.recommendedRelations.relationAdded",{targetElementTitle:e.label,parentElementTitle:this.entity?.label}),duration:rc,type:ie.SUCCESS})}handleAddRelationsError(e,t,n){this.toastNotificationService.showToast({content:this.translateService.instant("renderers-ng.recommendedRelations.failedToAddRelation"),duration:rc,type:ie.ERROR}),this.logService.warn("Failed to relate element from recommended relation",{error:e,fromEntityUri:this.entityUri,payload:{spaceUri:this.currentSpaceUri,fromEntityUri:this.entityUri,relationsTypeUri:n,toEntityUris:[t]}})}onAddSelectedRelation(e){if(!this.entity||!this.entityUri)return;let{element:t,relationUri:n}=e;if(this.relations[n]?.some(r=>r.uri===t.uri)){this.updatingStatus=!1;return}this.updatingStatus=!0,this.relatedContentService.addRelations(this.entity.spaceUri,this.entityUri,n,[t.uri]).pipe(R(this.destroyRef)).subscribe(()=>{this.updatingStatus=!1})}onRemoveSelectedRelation(e){if(!this.entity||!this.entityUri)return;let{relationTypeUri:t,entityUri:n}=e;this.updatingStatus=!0,this.relatedContentService.removeRelations(this.entity.spaceUri,this.entityUri,t,[n]).subscribe(()=>{this.loading.next(!1),this.updatingStatus=!1,this.relations[t]=this.relations[t]?.filter(r=>r.uri!==n),this.relations=w({},this.relations),this.trackingService.trackEventById("explorerRelateWidgetRelatedEntitiesList.removeRelation")})}getRelatedData(e,t){if(!e?.relations?.length){this.relations=Object.keys(this.relations).length?{}:this.relations;return}let n=e.relations?.reduce((s,l)=>s.concat(l.acceptorElementUris),[]).filter((s,l,p)=>p.indexOf(s)===l)||[],r=this.getAllRelatedFilter(n);this.getFilteredEntities(r).then(s=>{this.relations=e.relations?.reduce((l,p)=>{l[p.relationTypeUri]=l[p.relationTypeUri]||[];let h=s.filter(C=>p.acceptorElementUris.includes(C.uri));return l[p.relationTypeUri].push(...h),l},{})||{}})}getAllRelatedFilter(e){let t=new He.CompoundFilter(He.IqlQueryOperator.AND).setIdentifier("rel-"+this.entity?.uri);return t.addFilter(new He.LeafFilter("uri").setValues(e).setIdentifier("uri"),He.compareById),t}getFilteredEntities(e){if(!this.entity)return Promise.resolve([]);let t=this.entity.uri;return new Promise(n=>{let r=this.getExcludeEntitiesFilter([t],e),s=this.filterService.getFilteredEntities(r,Md,"","network-only").subscribe(l=>{s.unsubscribe(),l.find(p=>p.uri===t)&&this.logService.error("FILTER DID NOT FILTER OUT CURRENT ELEMENT"),n(l)})})}getExcludeEntitiesFilter(e,t){let n=new He.CompoundFilter(He.IqlQueryOperator.AND).setIdentifier("excl-"+t.getIdentifier());return n.addFilter(new He.LeafFilter("uri").setValues(e).setExclude(!0).setIdentifier("uri"),He.compareById),n.addFilter(t,He.compareById),n}submitGptImageData(e){if(e&&this.entity){let t={uri:this.entity?.uri,spaceUri:this.currentSpaceUri,version:this.entity.version+1,primaryImage:e};this.entityService.updateEntity(t).subscribe(()=>{this.gptAutofillService.handleImageToasts(!0,e)},()=>{this.gptAutofillService.handleImageToasts(!1,e)})}}fieldUpdate(e){let{field:t,fieldValue:n}=e;if(n===void 0)return;let r={fieldUri:e.field?.uri,value:n};if(this.loadingMap?.next(this.loadingMap.value.set(t.uri,r)),this.entity){let s=this.entityService.prepareEntityFieldsForUpdate(n,t,this.entity);this.entityService.updateEntity(s).pipe(B(1)).subscribe(l=>{l?.data?.updateEntity?.fieldValues?.find(p=>p.fieldUri===t.uri)?.value===r.value&&this.loadingMap?.next(this.loadingMap.value.set(t.uri,null)),Ys.includes(t.uri)&&JSON.stringify(l?.data?.updateEntity?.tags)===JSON.stringify(r.value)&&this.loadingMap?.next(this.loadingMap.value.set(t.uri,null))},l=>{this.logService.warn("There was an error updating the element field",{err:l}),this.loadingMap?.next(this.loadingMap.value.set(t.uri,null))})}else setTimeout(()=>{this.loadingMap?.next(this.loadingMap.value.set(t.uri,null))},4e3)}rteFieldUpdate(e){if(!e||!this.entity)return;let t=this.entityService.prepareEntityFieldsForUpdate(e.fieldValue.contentJSON,e.field,this.entity);if(e.fieldValue.newImageUris&&e?.fieldValue?.newImageUris?.size){let n=this.entity?.fieldValues.find(l=>l.fieldUri===Ho),r=Array.from(e.fieldValue.newImageUris);n&&n.value.length&&(r=r.concat(n.value));let s=this.entityService.prepareEntityFieldsForUpdate(r,{uri:Ho},this.entity,t);this.entityService.updateEntity(s).subscribe(l=>{l.data?.updateEntity?.uri&&e?.callback&&e.callback()});return}this.entityService.updateEntity(t).subscribe(n=>{n.data?.updateEntity?.uri&&e?.callback&&e.callback()},n=>{this.logService.warn("There was an error updating this element field",{err:n})})}onRatingChange(e){let t=this.entity;t&&Object.keys(e).forEach(n=>{if(e?.[n])this.entityService.rateEntity(t.uri,e).pipe(B(1)).subscribe(()=>{this.loadingMap.next(this.loadingMap.value.set(n,!1))});else{this.entityService.deleteRating(t.uri,n).pipe(B(1)).subscribe(()=>{this.loadingMap.next(this.loadingMap?.value?.set(n,!1))});return}})}fetchFullDetailPageFlag(){return b(this,null,function*(){this.isFullDetailPage=yield this.detailPageService.isFullDetailPage(this.activatedRoute)})}getCurrentEntityInstances(e,t){return b(this,null,function*(){return(yield this.featureFlagService.isFeatureEnabled(Pt.ELEMENTS_WORKFLOW))?$(this.workflowInstanceService.getElementInstances(e,t).pipe(Ot(r=>(this.toastNotificationService.showToast({type:ie.ERROR,content:this.translateService.instant("renderers-ng.errors.fetchWorkflowError")}),this.logService.error(`DetailPageNewComponent - getCurrentFlowInstance: Unable to fetch the workflow in ${Ed}`,{error:r,entityUri:t,spaceUri:e}),xe([]))))):[]})}onInstanceUpdated(e){let t=this.workflowInstances.map(n=>n?.flow?.uri===e?.flow?.uri?e:n);this.workflowInstances=t}};i.\u0275fac=function(t){return new(t||i)(c(oe),c(Ie),c(ot),c(Te),c(pt),c(eo),c(Wi),c(dt),c(Fs),c(ft),c(Us),c(yn),c(lt),c(Qe),c(Ns),c(Ks),c(Lt),c(qe),c(rs),c(ii),c(Se),c(K),c(Ke),c(Xe),c(Ki),c(Y),c(Gs),c(_a),c(ot),c(Qs))},i.\u0275cmp=D({type:i,selectors:[["explorer-detail-page"]],viewQuery:function(t,n){if(t&1&&(Tt(nd,5),Tt(id,5)),t&2){let r;tt(r=nt())&&(n.headerRef=r.first),tt(r=nt())&&(n.containerRef=r.first)}},hostVars:4,hostBindings:function(t,n){t&1&&E("beforeunload",function(){return n.canDeactivate()},!1,dn),t&2&&(jn("height",n.height),le("stacked",n.stackedClass))},inputs:{entityUri:"entityUri",disableTagInteraction:"disableTagInteraction",disableCommenting:"disableCommenting",disableWatchElement:"disableWatchElement",hideShareButton:"hideShareButton"},features:[Ae],decls:7,vars:5,consts:[["tabTemplate",""],["headerRef",""],["containerRef",""],["optionalTemplate",""],["dropdownListTemplate",""],["commentCount",""],[1,"explorer-detail-page-container"],[4,"ngIf"],[3,"elementTypeUri",4,"ngIf"],["id","detail-page-wrap","class","wrap detail-wrap",4,"ngIf"],[3,"data"],[3,"elementTypeUri"],["id","detail-page-wrap",1,"wrap","detail-wrap"],[3,"header","entityUri","isWatchingElement","allowTagInteraction","disableWatchElement","workflowInstances","hideShareButton","moreTagsClicked","workflowStatusPearChainClicked","submitGptImageData",4,"ngIf"],[3,"header","entityUri","isWatchingElement","allowTagInteraction","disableWatchElement","moreTagsClicked","submitGptImageData",4,"ngIf"],[1,"container"],["explorerControlAvailability","",3,"controls","filteredControls",4,"ngIf"],["explorerControlAvailability","",3,"permissionsMap","featureFlagsMap","page","relations","updatingData","loadingMap","disableCommenting","allowTagInteraction","scrollToEndObs","scrollableParentElement","entity","workflowInstances","onAddRelation","onAddSelectedRelation","onRemoveSelectedRelation","onEntityFieldUpdate","onRteContentUpdate","onRatingChange","onAutoFillTags","instanceUpdated",4,"ngIf"],[3,"moreTagsClicked","workflowStatusPearChainClicked","submitGptImageData","header","entityUri","isWatchingElement","allowTagInteraction","disableWatchElement","workflowInstances","hideShareButton"],[3,"moreTagsClicked","submitGptImageData","header","entityUri","isWatchingElement","allowTagInteraction","disableWatchElement"],["explorerControlAvailability","",3,"filteredControls","controls"],[1,"page-switch","standard","dark",3,"select","active","items","numItemsToShow","tabNotificationObs"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["explorerControlAvailability","",3,"onAddRelation","onAddSelectedRelation","onRemoveSelectedRelation","onEntityFieldUpdate","onRteContentUpdate","onRatingChange","onAutoFillTags","instanceUpdated","permissionsMap","featureFlagsMap","page","relations","updatingData","loadingMap","disableCommenting","allowTagInteraction","scrollToEndObs","scrollableParentElement","entity","workflowInstances"],[1,"tab__name"],["class","loader-ng-select show-when-loading comment-loader",4,"ngIf","ngIfElse"],[1,"loader-ng-select","show-when-loading","comment-loader"],[1,"comments-count"]],template:function(t,n){t&1&&(f(0,"div",6),M(1,ad,2,1,"div",7),N(2,"async"),M(3,sd,1,1,"explorer-non-professional-plan-note",8)(4,_d,9,4,"div",9),_(),M(5,Pd,4,6,"ng-template",null,0,ce)),t&2&&(g(),d("ngIf",!n.entity&&V(2,3,n.loading)===!1),g(2),d("ngIf",n.entity),g(),d("ngIf",n.entity))},dependencies:[ne,gn,Wn,Js,dl,ml,el,ul,bi,oc,Ft],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}[_nghost-%COMP%]{display:block;height:100%;overflow:hidden auto}[_nghost-%COMP%]   .explorer-detail-page-container[_ngcontent-%COMP%]{line-height:1.5;background:#eff2f4;display:block;padding-bottom:40px;min-height:100vh}[_nghost-%COMP%]   .tab__name[_ngcontent-%COMP%]   .comment-loader[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin:auto}[_nghost-%COMP%]     .not-found-container{background:#fff}.page-switch[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;max-width:1400px;width:90%;margin:0 auto}.page-switch[_ngcontent-%COMP%]     .tab{flex-wrap:wrap}.stacked:not(.expand-stack)[_nghost-%COMP%]     .header-columns, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .header-columns{margin:-60px auto 0;padding:20px}.stacked:not(.expand-stack)[_nghost-%COMP%]     .header-columns .main-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .header-columns .main-column{max-width:100%;flex:0 0 100%;padding:0 0 20px}.stacked:not(.expand-stack)[_nghost-%COMP%]     .header-columns .main-column.lonely-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .header-columns .main-column.lonely-column{padding:0 0 20px}.stacked:not(.expand-stack)[_nghost-%COMP%]     .header-columns .sidebar-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .header-columns .sidebar-column{max-width:100%;flex:0 0 100%;margin:0}.stacked:not(.expand-stack)[_nghost-%COMP%]     .header-columns .thumbnail, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .header-columns .thumbnail{display:none}.stacked:not(.expand-stack)[_nghost-%COMP%]     .header-columns .thumbnail+.wrap-text-header-inner, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .header-columns .thumbnail+.wrap-text-header-inner{padding-left:0}.stacked:not(.expand-stack)[_nghost-%COMP%]     .page-switch, .stacked:not(.expand-stack)   [_nghost-%COMP%]     .page-switch{padding:30px 0 0}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page{padding:20px}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page .main-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page .main-column{max-width:100%;flex:0 0 100%;padding:0 0 20px}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page .main-column.lonely-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page .main-column.lonely-column{padding:0 0 20px}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page .sidebar-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page .sidebar-column{max-width:100%;flex:0 0 100%;margin:0}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page .sidebar-column, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page .sidebar-column{padding:0;border:none}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page .main-column:not(.lonely-column) .control-section:first-child, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page .main-column:not(.lonely-column) .control-section:first-child{padding:20px 0;border-top:1px solid #eaedef}.stacked:not(.expand-stack)[_nghost-%COMP%]     explorer-page:before, .stacked:not(.expand-stack)   [_nghost-%COMP%]     explorer-page:before{display:none}@media only screen and (min-width: 0){[_nghost-%COMP%]{margin-top:60px}[_nghost-%COMP%]:after{content:"";width:100%;height:60px;background-color:#eff2f4;border-bottom:1px solid #bdc8d4;position:fixed;left:0;top:0;z-index:5}.page-switch[_ngcontent-%COMP%]{padding:30px 0 0}explorer-page[_ngcontent-%COMP%]{padding:20px}.expand-stack[_nghost-%COMP%]   .page-switch[_ngcontent-%COMP%], .expand-stack   [_nghost-%COMP%]   .page-switch[_ngcontent-%COMP%]{padding:30px 0 0}.expand-stack[_nghost-%COMP%]   explorer-page[_ngcontent-%COMP%]:before, .expand-stack   [_nghost-%COMP%]   explorer-page[_ngcontent-%COMP%]:before{display:none}}@media only screen and (min-width: 640px){[_nghost-%COMP%]{margin-top:0}[_nghost-%COMP%]:after{display:none}}@media only screen and (min-width: 1024px){.page-switch[_ngcontent-%COMP%]{padding:30px 0 0}.expand-stack[_nghost-%COMP%]   .page-switch[_ngcontent-%COMP%], .expand-stack   [_nghost-%COMP%]   .page-switch[_ngcontent-%COMP%]{padding:30px 0 0}}@media only screen and (min-width: 1280px){explorer-page[_ngcontent-%COMP%]{padding:30px 40px}}
/*# sourceMappingURL=detail-page.component-GXZ2ZKI6.css.map */`]});let o=i;return o})();var sc={"detail-page-new-ng":{}};var Zo={"detail-page-new-ng":{autofill:{autofill:"Autofill",createContent:"Create Content"},aggregatedFormulaTooltipText:"This formula adds up ratings based on their weights. If a rating is missing, we skip it and adjust the result. Here are the criteria:",weight:"Weight",workflow:{general:{nextValidationLabel:"Next Validation"},noWorkflow:"You don't have an active workflow.",completeToContinue:"Complete to Continue",workflowForm:{submit:"Submit",error:{formSaveError:"Unable to save the form. Please contact ITONICS support."}},node:{complete:"Complete",error:{failedToComplete:"Unable to complete the step. Please contact ITONICS support."}}}}};var er=(()=>{let i=class i{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:Zo,de:sc}[t]||Zo))}};i.\u0275fac=function(t){return new(t||i)(u(Ee))},i.\u0275mod=k({type:i}),i.\u0275inj=T({providers:[Zs],imports:[F,fe,Mn,ue,_l,co,$e,It,Nt,Ne,Dt,Vt,mt,xn,Zi,Ds]});let o=i;return o})();var tr=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,fe]});let o=i;return o})();var bo=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,fe]});let o=i;return o})();var aC=(()=>{let i=class i{transform(e,t){if(e.originUri!==t)return`| ${e.origin}`}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=st({name:"appendOriginSpace",type:i,pure:!0});let o=i;return o})();var Rn=qt(bn());var kd="factsRelatedElements",lc=(()=>{let i=class i{constructor(e,t,n){this.filterQueryService=e,this.entityConfigHelperService=t,this.store=n,this.entityTypes=[],this.onDestroy=new U,this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R()).subscribe(r=>{this.currentSpaceUri=r})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}getRelatedElements(e){return this.filterQueryService.getFilteredEntities(new Rn.CompoundFilter(Rn.IqlQueryOperator.AND).setIdentifier(kd).addFilter(new Rn.LeafFilter("entitySource").setSearch(e)))}getAllElementTypes(){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri)}};i.\u0275fac=function(t){return new(t||i)(u(Xe),u(oe),u(K))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var cc={"entity-create-ng":{}};var nr={"entity-create-ng":{entity:{publishLabel:"Publish",createDraftLabel:"Create Draft",createAnother:"Create Another",selectDynamicField:"Select",enterTitle:"Enter Title",enterSummary:"Enter Summary",selectEntity:"Select Element Type",delete:"Delete",openInNewTab:"Open in New Tab",toSubmitAndCreateAnother:"to publish the {{entityType}} and create another element.",openInStack:"Open in Stack",created:"Created:",updated:"Updated:",updatedAgoBy:"{{ago}} by {{name}}",type:"Element Type",typeAlias:"What is it you want to create?",typeHereToSearch:"Type here to search",uploadImage:"Upload Image",youCanAlsoHit:"You can also hit",createAsDraft:"Save as Draft",cancel:"Cancel",attachFiles:"Attach Files",noResults:"No Results",createEnitityForm:{label:{label:"What do you want to call the {{ entityType }}?",placeholder:"Enter a title\u2026"},summary:{label:"Summarise what the {{ entityType }} is about!",placeholder:"Write a concise summary. Your input has a direct impact on the quality of the AI generated content, including recommendations, and signals."},errors:{required:{label:"Please enter a title for the {{ entityType }}.",summary:"Please enter a summary for the {{ entityType }}.",default:"The field {{ field }} is required."}},createElement:"Create Content",footnoteFromFact:"We will add available meta information such as tags and links to the Element you are about to create."},similarElements:{similarityCheck:"Check for similarities",noSimilarity:{title:"No similarities found",description:"0 similar Elements found"},similarElementsFound:{title:"Similarities found",description:"{{ similarityCount }} similar Elements found. Check to avoid duplicates",singleDescription:"1 similar Element found. Check to avoid duplicates"},openElement:"Open in New Tab"},noCreateElementPermission:"You don't have permission to perform this action"},nonProfessionalNote:{customElementType:"Custom Element Types are read-only.",vanillaElementTypeCustomProperties:"Custom properties are read-only.",upgradeCTA:"Upgrade to",proTag:"PRO",tooltipNoAdmin:"Ask an administrator to upgrade."},fileUploader:{dragFile:"Drag file(s) here or ",selectFile:"select file",suffix:" to upload.",info:"The maximum allowed size for attachments is 20 MB. For accepted file formats, click to open our knowledge base!",expanded:{suffix:".",pastePrefix:"You can also ",code:"[CTRL+V]",pasteSuffix:" paste from your clipboard."},fileActions:{openInNewTab:"Open in New Tab",delete:"Delete File"},tableColumns:{col0:"",col1:"File Name",col2:"Uploaded By",col3:"Date",col4:"Size"},pasteInstruction:{message:"Ctrl+V - paste from your Clipboard.",fileSupportLabel:"Supported File",supportedFiles:".xlsx"},uploadError:{maximumFileSize:"The file you are trying to upload exceeds the size limit of {{maximumFileSize}}MB. Please upload a smaller file."}},elementTypeDisabled:{staticNotification:{beforeLink:"The {{entityType}} element type is currently not enabled. In order to use this feature, please activate the {{entityType}} element type in your",linkPhrase:"workspace element configuration.",afterLink:"If you are not authorized to do this, please contact your administrator."}},landingPage:{createModal:{createElement:"Create Content",footnoteFromSignal:"We will add meta information such as tags and the Signal's source to the Element you are about to create."}},errors:{genericError:"Something went wrong please try again.",validationError:"Please fix the errors below",required:"The field {{label}} is required."},panels:{type:{noName:"Untitled"}},addHyperlink:"Add a Hyperlink",renderers:{textField:{placeholder:"Add Text",required:"This field is required"},textArea:{placeholder:"Add Text",required:"This field is required"},numberInput:{placeholder:"Add a Number"},userSelect:{placeholder:"Add a User"},select:{placeholder:{default:"Select an Option",noActiveElements:"No active Elements to connect to."}},rte:{placeholderNoMention:"Add content here.",placeholder:"Add content here. Type # to reference Elements.",required:"This field is required"},tag:{placeholder:"Add Tag",selectHeader:"Showing most relevant tags. Start Typing to see more suggestions.",addTag:"Add new tag",tagNotFound:"No existing tags",existingTagLabel:"Existing tags"},datePicker:{placeholder:"Choose a Date"},belongsTo:{controlName:"Campaign",connectEntity:{titleModal:"Connect {{entityType}}",message:"Are you sure you want to connect this {{entityType}} to the {{targetedEntityType}} '{{targetedEntity}}'?",highlightedMessage:"This connection is irrevocable.",cancel:"Cancel",connect:"Connect"},tooltip:{text:"Make sure there is an active Element that collects {{entityTypeName}}"}}},autofill:{toggleDescription:"Pro tip: Provide a 3-4 sentence summary that describes the problems to be solved, needs to be addressed, or any other goal of the campaign. This summary will be used to auto-generate ideas and other content later on.",autofillCampaign:"Autofill Campaign"}}};var pc=(()=>{let i=class i{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:nr,de:cc}[t]||nr))}};i.\u0275fac=function(t){return new(t||i)(u(Ee))},i.\u0275mod=k({type:i}),i.\u0275inj=T({providers:[{provide:ds,useClass:lc},wi,Oi],imports:[F,Ti,fe,jt,ue,ut,Je,ao,In,Bs,Tn,co,zt,mt,Nt,Ne,ls,$e,Vt,Dt,ct,js,oa,Ts,Bt,La,Li]});let o=i;return o})();var fc=qt(bn());var dc="slMUy5jRFXAJG1D",Fd="vMdt4O8brcI4DlZ",mc="vawEYSsqh7mODmY",gc=cs,et={HYPERLINK:"hyperLink",RTE:"richText"},ve={SOURCE:"sourceField",RTE:"richField",SIGNAL:"signalsSource",ENTITY_SOURCE:"entitySource",CLUSTER_SOURCE:"clusterSource"},uc=10,vo=/@.*$/,cn={MAX_LENGTH:600,MAX_CUTOFF:450,MIN_CUTOFF:350,PUNCTUATION_REGEX:/[.?!] /},Id="entitySource",Ud="explorer.app.ideation",Rd="relations",Ad="fieldValues",Po=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h,C,O,S,J,me,pe){this.modalService=e,this.entityConfigService=t,this.feedWidgetApiService=n,this.entityService=r,this.factsService=s,this.translate=l,this.titleCasePipe=p,this.sentenceCasePipe=h,this.logger=C,this.featureFlagService=O,this.ideationWizardService=S,this.trackingService=J,this.createEntityService=me,this.store=pe,this.isIdeationEnabled=!1,this.onDestroy=new U,this.featureFlagService.isFeatureEnabled(Ud).then(j=>{this.isIdeationEnabled=j}),this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R()).subscribe(j=>{this.currentSpaceUri=j})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}openIdeationWizard(){return b(this,arguments,function*(e={}){if(this.isIdeationEnabled){let t=e.containerElementType?yield this.entityConfigService.getElementType(e.containerElementType):null;this.openCreateEntityModal({type:t?I(w({},t),{label:t.name}):null,title:this.translate.instant("entity-create-ng.landingPage.createModal.createElement")}),this.ideationWizardService.onOpenWizardWithOptions(e)}})}createElementFromFact(n){return b(this,arguments,function*({factUri:e,modalTitle:t}){this.factsService.fetchFactByUri(e).then(r=>b(this,null,function*(){if(!r){this.logger.warn("Error when trying to create element from fact, could not find fact",{factUri:e});return}let s=r.description||"";console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let l=yield this.entityConfigService.getElementTypesBasedOnAnyPermission([x.CREATE_ELEMENT,x.CREATE_DRAFT_ELEMENT],this.currentSpaceUri),p=null;(r.types??[]).find(j=>j===gc.Technology)?p=l.find(j=>j.uri.replace(vo,"")===Fd):(r.types??[]).find(j=>j===gc.Product)&&(p=l.find(j=>j.uri.replace(vo,"")===dc));let h={label:this.titleCasePipe.transform(r.label,ps,"skip"),elementTypeUri:p?.uri,fieldValues:[{fieldUri:Id,value:r.uri,fieldValueType:ve.ENTITY_SOURCE}]},{briefSummary:C,wasTruncated:O}=this.parseSummary(this.sentenceCasePipe.transform(s));this.summaryForOverflow=O?s:null,s&&(h.summary=C);let S=p?I(w({},p),{label:p.name}):null;if(p){let j=yield this.findFirstFieldOnType(p.uri,et.HYPERLINK),re=O&&(yield this.findFirstFieldOnType(p.uri,et.RTE));j&&h.fieldValues.push({fieldUri:j,value:r.url?r.url:r.sourceUrl,fieldValueType:ve.SOURCE}),re&&h.fieldValues.push({fieldUri:re,value:s,fieldValueType:ve.RTE})}r.relations?.size&&(h.tags=Array.from(r.relations.values()).map(j=>j.label));let J=t||this.translate.instant("entity-create-ng.entity.createEnitityForm.createElement"),me=this.translate.instant("entity-create-ng.entity.createEnitityForm.footnoteFromFact"),pe=this.openCreateEntityModal({title:J,type:S,defaults:h,footnote:me,hideCreateAnother:!0,preventToHideElementTypeList:!0});pe.instance.onTypeSelected.subscribe(j=>b(this,null,function*(){if(!j)return;let re=yield this.findFirstFieldOnType(j.uri,et.HYPERLINK),Ce=this.summaryForOverflow?yield this.findFirstFieldOnType(j.uri,et.RTE):null,Pe=w({},h);Pe.fieldValues=(Pe.fieldValues||[])?.map(({fieldUri:Me,fieldValueType:Ve,value:yt})=>({fieldUri:Me,value:Ve in ve?"":yt,fieldValueType:Ve})).filter(({fieldUri:Me})=>Me!==re&&Me!==Ce),re&&Pe.fieldValues.push({fieldUri:re,value:r.url?r.url:r.sourceUrl,fieldValueType:ve.SOURCE}),Ce&&Pe.fieldValues.push({fieldUri:Ce,value:this.summaryForOverflow,fieldValueType:ve.RTE}),pe.instance.defaults=Pe}))}))})}createElementFromSignal(l){return b(this,arguments,function*({title:e,signal:t,relatedElementUri:n,footnote:r,analyticsTags:s}){if(!t)return;let p=yield this.entityConfigService.getElementTypesBasedOnAnyPermission([x.CREATE_ELEMENT,x.CREATE_DRAFT_ELEMENT],this.currentSpaceUri),C=this.getElementTypeFromUri(dc,p)||this.getElementTypeFromUri(p[0]?.uri,p),O={label:t.label,tags:t.topics?.map(re=>re.label).slice(0,uc),elementTypeUri:C?.uri,fieldValues:[{fieldUri:Vi,value:t.uri,fieldValueType:ve.SIGNAL}]},{briefSummary:S,wasTruncated:J}=this.parseSummary(t.summary);this.summaryForOverflow=J?t.summary:null,t.summary&&(O.summary=S);let me=C?I(w({},C),{label:C?.name}):void 0;if(C){let re=yield this.findFirstFieldOnType(C.uri,et.HYPERLINK),Ce=J&&(yield this.findFirstFieldOnType(C.uri,et.RTE));re&&O?.fieldValues?.push({fieldUri:re,value:this.feedWidgetApiService.computeFeedUrl(t),fieldValueType:ve.SOURCE}),Ce&&O?.fieldValues?.push({fieldUri:Ce,value:t.summary,fieldValueType:ve.RTE})}n&&(O.relations=[{relationTypeUri:mc,acceptorElementUris:[n]}]);let pe=this.openCreateEntityModal({title:e,type:me,defaults:O,analyticsTags:s,footnote:r,hideCreateAnother:!0,preventToHideElementTypeList:!0});pe.instance.onTypeSelected.subscribe(re=>b(this,null,function*(){if(!re)return;let Ce=yield this.findFirstFieldOnType(re.uri,et.HYPERLINK),Pe=this.summaryForOverflow?yield this.findFirstFieldOnType(re.uri,et.RTE):null,Me=w({},O);Me.fieldValues=(Me.fieldValues||[])?.map(({fieldUri:Ve,fieldValueType:yt,value:Dn})=>({fieldUri:Ve,value:yt in ve?"":Dn,fieldValueType:yt})).filter(({fieldUri:Ve})=>Ve!==Ce&&Ve!==Pe),Ce&&Me.fieldValues.push({fieldUri:Ce,value:this.feedWidgetApiService.computeFeedUrl(t),fieldValueType:ve.SOURCE}),Pe&&Me.fieldValues.push({fieldUri:Pe,value:this.summaryForOverflow,fieldValueType:ve.RTE}),pe.instance.defaults=Me}));let j=this.entityService.onEntityAdded(re=>{this.createDefaultSearchFieldForEntity(re,t)});this.modalService.onModalClosed.pipe(B(1)).subscribe(()=>j?.unsubscribe())})}createElementFromCluster(e,t,n,r,s){return b(this,null,function*(){let l={label:e.title,tags:e.keywords?.map(pe=>pe.keyword).slice(0,uc),elementTypeUri:t?.uri,fieldValues:[{fieldUri:Yi,value:e.clusterId,fieldValueType:ve.CLUSTER_SOURCE}]},{briefSummary:p,wasTruncated:h}=this.parseSummary(e.abstract);this.summaryForOverflow=h?e.abstract:null,e.abstract&&(l.summary=p);let C=I(w({},t),{label:t.name}),O=yield this.findFirstFieldOnType(t.uri,et.HYPERLINK),S=h&&(yield this.findFirstFieldOnType(t.uri,et.RTE));if(O&&e?.topSources?.length&&l.fieldValues?.push({fieldUri:O,value:e.topSources,fieldValueType:ve.SOURCE}),S&&l.fieldValues?.push({fieldUri:S,value:e.abstract,fieldValueType:ve.RTE}),e.elementUri&&(l.relations=[{relationTypeUri:mc,acceptorElementUris:[e.elementUri]}]),!n){let pe=this.getNewElementPostData(r,l,s),j=yield $(this.createEntityService.addEntity(pe,C.uri));return this.trackingService.trackEventById($n.NEWSFEED_PUBLISH_ELEMENT_FROM_TOP_STORIES),j}let J=this.openCreateEntityModal({title:this.translate.instant("explorer-ng.landingPage.createModal.createElement"),footnote:this.translate.instant("explorer-ng.landingPage.createModal.footnoteFromCluster"),type:C,defaults:l,hideCreateAnother:!0,preventToHideElementTypeList:!0,analyticsTags:{"explorerElements.publish":"explorer.clusterStack"}});J.instance.onTypeSelected.subscribe(pe=>b(this,null,function*(){if(!pe)return;let j=yield this.findFirstFieldOnType(pe.uri,et.HYPERLINK),re=this.summaryForOverflow?yield this.findFirstFieldOnType(pe.uri,et.RTE):null,Ce=w({},l);Ce.fieldValues=(Ce.fieldValues||[])?.map(({fieldUri:Pe,fieldValueType:Me,value:Ve})=>({fieldUri:Pe,value:Me in ve?"":Ve,fieldValueType:Me})).filter(({fieldUri:Pe})=>Pe!==re),j&&e?.topSources?.length&&l.fieldValues?.push({fieldUri:j,value:e.topSources,fieldValueType:ve.SOURCE}),re&&Ce.fieldValues.push({fieldUri:re,value:this.summaryForOverflow,fieldValueType:ve.RTE}),J.instance.defaults=Ce}));let me=this.entityService.onEntityAdded(()=>{this.trackingService.trackEventById($n.NEWSFEED_PUBLISH_ELEMENT_FROM_TOP_STORIES)});this.modalService.onModalClosed.pipe(B(1)).subscribe(()=>me?.unsubscribe())})}getNewElementPostData(e,t,n){let r=[];return t.status=Is.PUBLISHED,Object.keys(t).reduce((s,l)=>{if(l===Ad)t[l].forEach(p=>{let h=e.find(C=>C.uri===p.fieldUri);h&&r.push({field:h,value:p.value})});else{s[l]=t[l];let p=n.find(h=>h.uri===l);if(p)r.push({field:p,value:t[l]});else if(l!==Rd){let h=e.find(C=>C.uri===l);h&&r.push({field:h,value:t[l]})}}return s},{}),r}parseSummary(e){if((e?.length||0)<cn.MAX_LENGTH)return{briefSummary:e,wasTruncated:!1};let t=e.slice(cn.MIN_CUTOFF,cn.MAX_CUTOFF),n=t.search(cn.PUNCTUATION_REGEX);if(n!==-1){let p=cn.MIN_CUTOFF+n;return{briefSummary:e.slice(0,p)+" \u2026",wasTruncated:!0}}let r=t.search(",");if(r!==-1){let p=cn.MIN_CUTOFF+r;return{briefSummary:e.slice(0,p)+" \u2026",wasTruncated:!0}}let s=t.search(" ");if(s!==-1){let p=cn.MIN_CUTOFF+s;return{briefSummary:e.slice(0,p)+" \u2026",wasTruncated:!0}}let l=t.length/2;return{briefSummary:e.slice(0,l)+"\u2026",wasTruncated:!0}}openCreateEntityModal({title:e,type:t,defaults:n,analyticsTags:r,footnote:s,hideCreateAnother:l,preserveDefaultsForCreateAnother:p,customClass:h,preventToHideElementTypeList:C=!1}){let O={closeable:!0,escapable:!0,dismissable:!0,customClass:h||"medium-fixed-modal",innerPadding:!0,closeConfirmChecker:()=>b(this,null,function*(){return!S.instance.isDirty})},S=this.modalService.openModal(Rl,O);return this.modalService.setTitle(e),S.instance.entityType=t,S.instance.preventToHideElementTypeList=C,S.instance.defaults=n,S.instance.analyticsTags=r,S.instance.preserveDefaultsForCreateAnother=p,S.instance.footnote=s,S.instance.allowCreateAnother=!l,S.instance.onIdeationStepChange.subscribe(J=>{J===il.CREATE_FORM&&this.modalService.updateModalOption(I(w({},O),{customClass:""}))}),S}findFirstFieldOnType(e,t){return b(this,null,function*(){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let r=(yield this.entityConfigService.getFieldsForElementType(e,!0,!1,this.currentSpaceUri)).reduce((C,O)=>(C[O.uri]=!0,C),{});console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let l=(yield this.entityConfigService.getLeafControlsForElementType(e,this.currentSpaceUri)).filter(C=>C.controlTypeUri.replace(vo,"")===t&&C.field).map(C=>C.field);return[...l.filter(C=>{let O=C.propertyValues.find(S=>S.fieldTypePropertyUri.endsWith(Wt.MIN_CARDINALITY))?.value;return O&&Number.parseFloat(O)>0}),...l].find(C=>!!r[C?.uri])?.uri||l?.[0]?.uri})}createDefaultSearchFieldForEntity(e,t){let n=`i:${Ni.SEARCH_FIELD}:(i:${Ni.CASUAL}:(i:${Ni.ELEMENT}:(uri:${e.uri}:("explorer","${e.elementTypeUri}","${e.spaceUri}","${e.uri}"))))`,r=fc.FilterFactory.fromQueryString(n);this.feedWidgetApiService.createImplicitSearchField(e,r.toJson(),ms.REFINED,[t.uri]).toPromise()}getElementTypeFromUri(e,t){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),t.find(n=>n.uri.replace(vo,"")===e)}};i.\u0275fac=function(t){return new(t||i)(u(Lt),u(oe),u(Wi),u(Ie),u(Di),u(Y),u(Oi),u(wi),u(Se),u(pt),u(Ml),u(dt),u(tl),u(K))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var J_=(()=>{let i=class i{constructor(e){this.entityService=e,this.destroyRef=Ge(ge)}transform(e){return this.entityService.getEntityDetail(e).pipe(H(),R(this.destroyRef),ye(t=>t.label))}};i.\u0275fac=function(t){return new(t||i)(c(Ie,16))},i.\u0275pipe=st({name:"EntityName",type:i,pure:!0,standalone:!0});let o=i;return o})();var lx=(()=>{let i=class i{constructor(e,t,n){this.store=e,this.elementConfigStateService=t,this.entityService=n,this.destroyRef=Ge(ge),this.entityTypes=[],this.store.select(Q.selectCurrentSpaceUri).pipe(ni(this.store.select(Ye.selectCurrentTenant))).pipe(H(),R(this.destroyRef)).subscribe({next:([r,s])=>{this.elementConfigStateService.getAllElementTypes(s.tenantUri,r).pipe(R(this.destroyRef)).subscribe(l=>{this.entityTypes=l})}})}transform(e){return this.entityService.getEntityDetail(e).pipe(ye(t=>{let n=this.entityTypes.find(r=>r.uri===t.elementTypeUri);return{typeName:n?.name,color:n?.color}}))}};i.\u0275fac=function(t){return new(t||i)(c(K,16),c(Ba,16),c(Ie,16))},i.\u0275pipe=st({name:"EntityType",type:i,pure:!0,standalone:!0});let o=i;return o})();var Gt={configuration:Fe`
    fragment configuration on Configuration {
      uri
      spaceUri
      version
      label
      configurationType
      value
      status
      createdByUri
      createdOn
      updatedByUri
      updatedOn
    }
  `};var gx={radar:Fe`
    fragment radarView on RadarView {
      uri
      spaceUri
      version
      label
      value
      status
      createdByUri
      createdOn
      updatedByUri
      updatedOn
    }
  `};var fx={__schema:{types:[{kind:"UNION",name:"FieldSavingResult",possibleTypes:[{name:"Field"},{name:"ValidationResult"}]},{kind:"UNION",name:"ControlSavingResult",possibleTypes:[{name:"SavedControl"},{name:"ValidationResult"}]},{kind:"UNION",name:"ElementTypeSavingResult",possibleTypes:[{name:"ElementType"},{name:"ValidationResult"}]},{kind:"UNION",name:"RelationTypeSavingResult",possibleTypes:[{name:"ReferencedRelationType"},{name:"ValidationResult"}]},{kind:"UNION",name:"ElementSavingResult",possibleTypes:[{name:"Element"},{name:"ValidationResult"}]}]}};var xx=Fe`
  mutation addConfiguration($input: configurationCreateInput) {
    addConfiguration(input: $input) {
      __typename
      ...configuration
    }
  }
  ${Gt.configuration}
`;var Px=Fe`
  mutation deleteConfiguration($uri: String!) {
    deleteConfiguration(uri: $uri) {
      __typename
    }
  }
`;var Ox=Fe`
  mutation editConfiguration($input: configurationUpdateInput) {
    editConfiguration(input: $input) {
      __typename
      ...configuration
    }
  }
  ${Gt.configuration}
`;var Fx=Fe`
  query getBasicEntitiesBySpaceWithRelation($spaceUri: String!, $pageSize: Int, $orderBy: EntityOrderBy, $order: EntityOrder) {
    entitiesBySpace(spaceUri: $spaceUri, pageSize: $pageSize, orderBy: $orderBy, order: $order) {
      __typename
      ...basics
      ...relationValues
    }
  }
  ${$a.basics}
  ${qa.relationValues}
`;var Ax=Fe`
  query getConfiguration($uri: String!) {
    getConfiguration(uri: $uri) {
      __typename
      ...configuration
    }
  }
  ${Gt.configuration}
`;var Dx=Fe`
  query configurationBySpace($spaceUri: String!, $configurationType: ConfigurationTypeEnum!) {
    configurationBySpace(spaceUri: $spaceUri, configurationType: $configurationType) {
      __typename
      ...configuration
    }
  }
  ${Gt.configuration}
`;var ir=(()=>{let i=class i{constructor(e,t){this.uiStateService=e,this.trackingService=t}canDeactivate(e){return e.canDeactivate()?!0:new xt(t=>{this.trackingService.trackEventById("explorer.elementUpdate.triggerWarningModal"),this.uiStateService.showPageLeaveConfirm().subscribe(n=>{t.next(n),t.complete()})})}};i.\u0275fac=function(t){return new(t||i)(u(kn),u(dt))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var Qx=(o,i,a)=>{let e=o.find(s=>s.uri===i);if(!e)return;if(e.fieldTypeUri==="numerical_rating")return{uri:a,label:`${a}`};Array.isArray(a)&&(a=a[0]);let t=e.propertyValues.find(s=>s.fieldTypePropertyUri.endsWith(Wt.OPTIONS));return(JSON.parse(t.value)||[]).find(s=>s.uri===a||s.value===a&&!!s.value)||void 0};var _c=qt(bn());var Mo=(o,i)=>(o?.swimlane===i?.swimlane||!o?.swimlane&&!i?.swimlane)&&(o?.column===i?.column||!o?.column&&!i?.column)&&(o?.color===i?.color||!o?.color&&!i?.color)&&!!o?.unassigned==!!i?.unassigned&&!!o?.emptySwimlanes==!!i?.emptySwimlanes&&po(o?.labels,i.labels)&&o?.filter.equals(i?.filter);var yo=class{constructor(i){let a=i.visualizationConfig;this.swimlane=a.swimlane,this.column=a.column,this.color=a.color,this.unassigned=a.unassigned,this.emptySwimlanes=a.emptySwimlanes,this.labels=a?.labels?.length?[...a.labels]:Ii,this.filter=_c.FilterFactory.fromJson(i.filter)}areBoardsEqual(i){let a=this.getConfigViewAsObject();return Mo(a,i)}getConfigViewAsObject(){return{swimlane:this.swimlane,column:this.column,color:this.color,unassigned:this.unassigned,emptySwimlanes:this.emptySwimlanes,labels:this.labels,filter:this.filter.clone()}}getBoardPresetPayloadValue(){return{filter:this.filter.toJson(),visualizationConfig:{swimlane:this.swimlane,column:this.column,color:this.color,unassigned:this.unassigned,emptySwimlanes:this.emptySwimlanes,labels:this.labels||[]}}}};var xc=o=>o.filter(a=>a.fieldTypeUri===L.USER&&a.propertyValues.find(e=>e.fieldTypePropertyUri.endsWith(_n.MAX_CARDINALITY))||a.fieldTypeUri===L.OPTIONS&&a.propertyValues.find(e=>e.fieldTypePropertyUri.endsWith(_n.MAX_CARDINALITY))||a.fieldTypeUri===L.WORKFLOW_STATUS||a.fieldTypeUri===L.WORKFLOW_DEFINITION||a.uri===wn.STATUS||a.uri===tn),bc=o=>o.filter(a=>Za.includes(a.fieldTypeUri)&&a.uri!==Ka.uri&&a.uri!==Ya.uri),vc=o=>o.filter(a=>es.includes(a.fieldTypeUri)),Xn=(o,i,a)=>{if(i.find(n=>n.uri===o))return o;let t=he.ELEMENT_TYPE;switch(a){case de.SWIMLANE:case de.COLOR:t=he.ELEMENT_TYPE;break;case de.COLUMN:t=he.STATUS;break;case de.LABEL:t="";break}return t},Pc=(o,i)=>o.map(e=>I(w({},e),{settingUri:Xn(e.settingUri,i,de.LABEL)})),Mc=(o,i)=>{let a=i.reduce((e,t)=>{if(!o[t])return e;let n=o[t]?.fields||[];n=n.filter(s=>{if(s.fieldTypeUri===L.WORKFLOW_STATUS)return n.find(l=>l.fieldTypeUri===L.WORKFLOW_DEFINITION);if(s.fieldTypeUri===L.WORKFLOW_DEFINITION){let l=n.find(p=>p.fieldTypeUri===L.WORKFLOW_DEFINITION);return l&&(l.name=Xa),n.find(p=>p.fieldTypeUri===L.WORKFLOW_STATUS)}return!0});let r=n.filter(s=>!e.find(l=>l.uri===s.uri));return e.concat(r)},[]);return a.push(Ja),a},An=o=>{let i=o?.propertyValues.find(e=>e.fieldTypePropertyUri.endsWith(_n.OPTIONS))?.value;return JSON.parse(i)},yc=(o,i)=>{let e=i.fieldValues?.find(t=>t.fieldUri===o?.uri)?.value;return e?.length?e:[]},Ld=(o,i)=>{if(Array.isArray(o)&&o.length)return Number(o[0]).toLocaleString(i)},Nd=(o,i)=>{let a=[],e=An(o);return i?.length>0&&i.forEach(t=>{a.push(e?.find(n=>n.uri===t)?.label)}),a},Vd=(o,i)=>{let a=An(o);if(a&&a?.length){let e=a.find(t=>t.uri===i[0]);if(e&&e.label)return[e.label];{let t=[];return a.forEach(n=>{let r=n?.options?.find(s=>s.uri===i[0]);r&&r?.label&&t.push(r?.label)}),t}}return[]},wc=(o,i,a)=>{let e=[];switch(i.fieldTypeUri){case L.HIERARCHICAL_OPTIONS:{e=Vd(i,o);break}case L.OPTIONS:{e=Nd(i,o);break}case L.NUMERICAL:{let t=Ld(o,a);t&&e.push(t);break}}return e};var Oc=(()=>{let i=class i{constructor(e,t,n){this.explorerEcService=e,this.entityConfigHelperService=t,this.store=n,this.boardViewChanges=new U,this.onBoardViewChanges=this.boardViewChanges.asObservable()}setBoardView(e){this.actualBoardViewConfiguration=new yo(e),this.selectedBoardViewConfiguration=this.actualBoardViewConfiguration.getConfigViewAsObject(),this.setFilter(this.selectedBoardViewConfiguration.filter,!0)}setFilter(e,t){return b(this,null,function*(){let n=this.rootFilter,r=qo(e.toJson());if(t||!n){this.rootFilter=e.clone(),this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{filter:e}),yield this.refetchFieldsAndUpdateConfigurations(r),this.triggerBoardViewChanges(de.FILTER);return}if(n.equals(e))return;let s=qo(n.toJson());po(s,r)||(yield this.refetchFieldsAndUpdateConfigurations(r)),this.rootFilter=e.clone(),this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{filter:e}),this.triggerBoardViewChanges(de.FILTER)})}setSwimlane(e,t){let n=e;this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{swimlane:Xn(n,this.allowedBoardConfigFields,de.SWIMLANE)}),t||this.triggerBoardViewChanges(de.SWIMLANE)}setColumn(e,t){this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{column:Xn(e,this.allowedBoardConfigFields,de.COLUMN)}),t||this.triggerBoardViewChanges(de.COLUMN)}setColor(e,t){this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{color:Xn(e,this.allowedBoardConfigFields,de.COLOR)}),t||this.triggerBoardViewChanges(de.COLOR)}setUnassignedFlag(e){this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{unassigned:e}),this.triggerBoardViewChanges(de.UNASSIGNED)}setEmptySwimlanesFlag(e){this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{emptySwimlanes:e}),this.triggerBoardViewChanges(de.EMPTY_SWIMLANE)}setCardLabels(e,t){this.selectedBoardViewConfiguration=I(w({},this.selectedBoardViewConfiguration),{labels:Pc([...e],this.allowedCardConfigFields)}),t||this.triggerBoardViewChanges(de.LABEL)}discardChanges(){this.selectedBoardViewConfiguration=this.actualBoardViewConfiguration.getConfigViewAsObject(),this.setFilter(this.selectedBoardViewConfiguration.filter,!0)}getFields(e){return b(this,null,function*(){let t=yield $(this.store.select(Q.selectCurrentSpaceUri).pipe(H()));e?.length||(e=(yield this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(t)).map(s=>s.uri));let n=yield this.explorerEcService.getElementTypesECMap(t);this.allFields=Mc(n,e),this.allowedBoardConfigFields=xc(this.allFields),this.allowedCardConfigFields=bc(this.allFields),this.allowedColorConfigFields=vc(this.allowedBoardConfigFields)})}refetchFieldsAndUpdateConfigurations(e){return b(this,null,function*(){yield this.getFields(e),this.setSwimlane(this.selectedBoardViewConfiguration.swimlane,!0),this.setColumn(this.selectedBoardViewConfiguration.column,!0),this.setColor(this.selectedBoardViewConfiguration.color||"",!0),this.setCardLabels(this.selectedBoardViewConfiguration.labels||[],!0)})}triggerBoardViewChanges(e){let t=!this.actualBoardViewConfiguration.areBoardsEqual(this.selectedBoardViewConfiguration);this.boardViewChanges.next({isViewDirty:t,configTypeChanges:e})}};i.\u0275fac=function(t){return new(t||i)(c(Fi),c(oe),c(K))},i.\u0275cmp=D({type:i,selectors:[["explorer-board-view-state"]],decls:0,vars:0,template:function(t,n){},encapsulation:2});let o=i;return o})();function or(o){return{filter:o.filter.toJson(),visualizationConfig:{swimlane:o.swimlane,column:o.column,color:o.color,unassigned:o.unassigned,emptySwimlanes:o.emptySwimlanes,labels:o.labels||[]}}}function Sc(o,i,a){return{label:i.label,presetType:rt.boardConfig,visibility:i.isPrivate?Be.private:Be.workspace,spaceUri:a.uri,origin:a.label,value:o.value}}function Ec(o,i,a){let{label:e,visibility:t}=o,n=or(i);return{label:e,presetType:rt.boardConfig,visibility:t,spaceUri:a.uri,origin:a.label,value:n}}var Tc=[{featureFlag:null,preset:{uri:"defaultViewUri",label:"Element Overview Board",value:{filter:Qo("").toJson(),visualizationConfig:{labels:Ii,swimlane:he.ELEMENT_TYPE,column:he.STATUS,color:"elementTypeUri",unassigned:!1,emptySwimlanes:!1}},editable:!1,deletable:!1,visibility:Be.workspace,isDefault:!0,createdByUri:"",createdOn:0,presetType:rt.boardConfig,spaceUri:"",origin:"",locked:!1}},{featureFlag:"elementTypes.blueprints.innovation-project",preset:{uri:"defaultInnoProjBoard",label:"Project Board",value:{filter:Qo("GsKPMtfgoEDBO0f").toJson(),visualizationConfig:{labels:[{key:"label1",settingUri:"47ZqWaJqSd8o4IG",showFieldName:!1},{key:"label2",settingUri:"lpQKkraaB5kgfLi",showFieldName:!1},{key:"label3",settingUri:"Sie8g7PaIB6v30J",showFieldName:!1},{key:"label4",settingUri:"",showFieldName:!1}],swimlane:"WsAOHEZHP2QE0w1",column:"9pP6xizpevDFcJi",color:"gmVNwqOQxF6ZMmQ",unassigned:!1,emptySwimlanes:!1}},editable:!1,deletable:!1,visibility:Be.workspace,isDefault:!0,createdByUri:"",createdOn:0,presetType:rt.boardConfig,spaceUri:"",origin:"",locked:!1}}];var wo=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h){this.entityConfigService=e,this.presetService=t,this.permissionService=n,this.sessionService=r,this.translateService=s,this.featureService=l,this.store=p,this.destroyRef=h,this.permissionMap=new Map,this.permissionMapSubject=new U,this.PRESET_PRIVATE_GROUP_LABEL="board-ng.labels.myBoardsGroupLabel",this.permissionMap$=this.permissionMapSubject.asObservable(),this.defaultPresets=[],this.checkFeatureFlagToSetDefaultPresets()}createBoardPreset(e){let t=I(w({},e),{presetType:rt.boardConfig});return this.presetService.createPreset(t)}fetchPresets(e){return this.presetService.getAllPresetsForSpace(e,{presetType:rt.boardConfig}).pipe(Ot(()=>xe([])))}fetchPresetByUri(e){return this.presetService.getPreset(e)}deletePreset(e){return this.presetService.deletePreset(e)}updateBoardPreset(e,t){return this.presetService.updatePreset(e,t)}fetchElementTypes(e){return this.entityConfigService.getAllElementTypesBasedOnViewPermission(e)}fetchAllPresets(e){return this.fetchPresets(e).pipe(Qt(t=>this.getFilteredPresets(t)))}checkPresetPermissions(e){return new Promise(t=>{this.permissionMap.size&&!e&&t(this.permissionMap),Re([this.permissionService.userHasPermission(x.CREATE_SPACE_PRESET),this.permissionService.userHasPermission(x.EDIT_ALL_SPACE_PRESETS),this.permissionService.userHasPermission(x.DELETE_ALL_SPACE_PRESETS)]).pipe(B(1)).subscribe(([n,r,s])=>{this.permissionMap.set(x.CREATE_SPACE_PRESET,n),this.permissionMap.set(x.EDIT_ALL_SPACE_PRESETS,r),this.permissionMap.set(x.DELETE_ALL_SPACE_PRESETS,s),this.permissionMapSubject.next(this.permissionMap),t(this.permissionMap)})})}modifyPresetWithPermissions(e){if(!e||!Object.keys(e).length)return null;let t=e.createdByUri===this.sessionService.getUser()?.sub,n=I(w({},e),{value:e.value,isDefault:!1});return e.visibility===Be.workspace?(n.deletable=this.permissionMap.get(x.DELETE_ALL_SPACE_PRESETS),n.editable=this.permissionMap.get(x.EDIT_ALL_SPACE_PRESETS),n.locked=!n.deletable&&!n.editable):(n.group=this.translateService.instant(this.PRESET_PRIVATE_GROUP_LABEL),n.deletable=t,n.editable=t,n.othersPrivate=!t,n.locked=!t),n}getFilteredPresets(e){return b(this,null,function*(){let t=yield $(this.store.select(Q.selectCurrentSpaceUri).pipe(H())),n=yield this.fetchElementTypes(t);return[...this.defaultPresets,...e.map(l=>this.modifyPresetWithPermissions(l))].filter(l=>cl(l.value.filter,n))})}checkFeatureFlagToSetDefaultPresets(){this.store.select(Ye.selectCurrentTenant).pipe(H(),R(this.destroyRef)).subscribe(()=>{Tc.forEach(e=>{e.featureFlag?this.featureService.isFeatureEnabled(e.featureFlag).then(t=>{t&&this.defaultPresets.push(e.preset)}):this.defaultPresets.push(e.preset)})})}};i.\u0275fac=function(t){return new(t||i)(u(oe),u(Ei),u(Te),u(Qe),u(Y),u(pt),u(K),u(ge))},i.\u0275prov=z({token:i,factory:i.\u0275fac});let o=i;return o})();function Wd(o,i){if(o&1&&(A(0,"ui2-presets-trigger",2),N(1,"translate")),o&2){let a=i.active,e=i.disabled,t=m();le("others-private",t.selectedBoardPreset==null?null:t.selectedBoardPreset.othersPrivate),d("label",V(1,7,"board-settings-ng.configuration.newBoard"))("disabled",e)("value",t.selectedBoardPreset==null?null:t.selectedBoardPreset.label)("isActive",a)("icon",t.selectedBoardPreset!=null&&t.selectedBoardPreset.othersPrivate?"icon2-x16-lock":"icon2-x16-bookmark")}}var Hd=5e3,rr="ExplorerBoardPresetPickerComponent",Gd=1e3,kc=(()=>{let i=class i{set saveNewPresetSubs(e){e.pipe(R(this.destroyRef)).subscribe({next:t=>{t&&this.openSavePresetModal()}})}set updatePresetSubs(e){e.pipe(R(this.destroyRef)).subscribe({next:t=>{if(t){let n=this.selectedBoardPreset;this.editBoardPreset(n.uri,Ec(n,this.selectedBoardView,this.selectedSpace))}}})}constructor(e,t,n,r,s,l,p,h,C,O,S,J){this.boardPresetService=e,this.boardHelperService=t,this.translate=n,this.modalService=r,this.toastNotificationsService=s,this.activatedRoute=l,this.logger=p,this.confirmService=h,this.presetService=C,this.router=O,this.sessionService=S,this.store=J,this.onPresetSelected=new q,this.onSavePreset=new q,this.onEditPreset=new q,this.onPresetFetching=new q,this.onPresetUpdating=new q,this.presets=[],this.permissionMap=new Map,this.footerButtons=[],this.templateButtons=[],this.defaultPresets=[],this.group="group",this.searchSubject=new U,this.destroyRef=Ge(ge),this.deletable="deletable",this.editable="editable",this.locked="locked",this.isDefault="isDefault"}ngOnInit(){this.saveLabel=this.translate.instant("board-ng.presets.save"),this.deleteTooltip=this.translate.instant("board-ng.presets.delete"),this.lockTooltip=this.translate.instant("board-ng.presets.lockTooltip"),this.editTooltip=this.translate.instant("board-ng.presets.edit"),this.defaultLockTooltip=this.translate.instant("board-ng.presets.defaultLockTooltip"),this.initFooterButton(),this.initTemplateButtons(),this.searchSubject.pipe(St(Gd)).subscribe(()=>{this.boardHelperService.trackEvent("board.preset.search")}),this.boardPresetService.permissionMap$.pipe(B(1)).subscribe(e=>{this.hasCreatePresetPermission=!!e.get(x.CREATE_SPACE_PRESET),this.filterSaveButtonBasedOnPermission()}),this.initBoardPreset()}onChangePreset(e){this.selectedBoardPreset=e,this.selectedPresetUri=e.uri,this.onPresetSelected.emit(e),this.updateParam()}initBoardPreset(){this.store.select(Q.selectCurrentSpace).pipe(H(),R(this.destroyRef)).subscribe(e=>b(this,null,function*(){this.selectedSpace=e,this.permissionMap=yield this.boardPresetService.checkPresetPermissions(!0),this.hasCreatePresetPermission=!!this.permissionMap.get(x.CREATE_SPACE_PRESET),this.filterSaveButtonBasedOnPermission(),yield this.fetchPresets(),this.listenToQueryParamsChange()}))}getPresetSelectedFromUri(e){return b(this,null,function*(){let t=this.presets.find(r=>r.uri===e);if(t)return t;let n=yield $(this.boardPresetService.fetchPresetByUri(e));return this.boardPresetService.modifyPresetWithPermissions(n)})}listenPresetOpen(){this.boardHelperService.trackEvent("board.preset.open")}listenPresetSearch(){this.searchSubject.next()}openSavePresetModal(){let e=this.translate.instant("explorer-ng.explorer-board.preset.saveBoardPresetModalTitle"),t=this.translate.instant("explorer-ng.explorer-board.preset.saveAsNewNameInputLabel"),n=this.modalService.openModal(Ko);this.modalService.setTitle(e),n.instance.labelTitle=t;let r=this.permissionMap.get(x.CREATE_SPACE_PRESET);n.instance.disabledPrivatePresetCheckbox=!r,n.instance.disabledPrivatePresetCheckboxTooltip=r?"explorer-ng.explorer-board.preset.onlyPublicPresetPermission":"explorer-ng.explorer-board.preset.onlyPrivatePresetPermission",n.instance.isPublicPreset=!1,n.instance.onSubmit.subscribe(s=>{this.saveBoardPreset(s)}),n.instance.closeForm.subscribe(()=>{this.modalService.closeModal()})}saveBoardPreset(e){let t=or(this.selectedBoardView),n={label:e.label,presetType:rt.boardConfig,visibility:e.isPrivate?Be.private:Be.workspace,spaceUri:this.selectedSpace.uri,origin:this.selectedSpace.label,value:t};this.boardPresetService.createBoardPreset(n).pipe(Ot(r=>{throw new Error(r)})).subscribe({next:r=>{this.selectedPresetUri=r.uri,this.updateParam(),this.fetchPresets(),this.modalService.closeModal(),this.boardHelperService.trackEvent("board.preset.save")},error:r=>{this.modalService.closeModal(),this.logger.warn(`${rr}: saveBoardPreset - Error saving board preset`,{error:r,presetData:e}),this.showToast("explorer-ng.explorer-board.preset.createFailed",ie.ALERT)}})}openEditPresetModal(e){let t=this.translate.instant("explorer-ng.explorer-board.preset.editBoardPresetModalTitle"),n=this.translate.instant("explorer-ng.explorer-board.preset.saveAsNewNameInputLabel"),r=this.modalService.openModal(Ko),s=e.createdByUri===this.sessionService.getUser()?.sub;this.boardHelperService.trackEvent("board.preset.initiate.edit"),this.modalService.setTitle(t),r.instance.labelTitle=n,r.instance.label=e.label;let l=this.permissionMap.get(x.CREATE_SPACE_PRESET),h=e.visibility===Be.private?!l:!s||!l;r.instance.disabledPrivatePresetCheckbox=h,s?r.instance.disabledPrivatePresetCheckboxTooltip=l?"board-ng.modal.onlyPublicPresetPermission":"board-ng.modal.onlyPrivatePresetPermission":r.instance.disabledPrivatePresetCheckboxTooltip="board-ng.modal.permissionToChangeVisibility",r.instance.isPublicPreset=l?e?.visibility===Be.workspace:!1,r.instance.onCheckBoxChange.subscribe(C=>{this.boardHelperService.trackEvent(`board.preset.edit.private.${C?"toggle":"unToggle"}`)}),r.instance.onSubmit.subscribe(C=>{let O=Sc(e,C,this.selectedSpace);this.editBoardPreset(e.uri,O,!0)}),r.instance.closeForm.subscribe(()=>{this.modalService.closeModal(),this.boardHelperService.trackEvent("board.preset.edit.cancel")})}editBoardPreset(e,t,n){this.onPresetUpdating.emit(!0),this.boardPresetService.updateBoardPreset(e,t).pipe(B(1)).subscribe({next:r=>{let s=this.boardPresetService.modifyPresetWithPermissions(r),l=this.presets.map(p=>p.uri===s?.uri?s:p);this.presets=l,n||this.onChangePreset(s),s?.uri===this.selectedBoardPreset?.uri&&(this.selectedBoardPreset=s),this.showToast("explorer-ng.explorer-board.preset.updateSuccess",ie.SUCCESS),this.modalService.closeModal(),this.onPresetUpdating.emit(!1)},error:r=>{let s=r.status===Ir.Forbidden?"explorer-ng.explorer-board.preset.noPermission":"explorer-ng.explorer-board.preset.updateFailed";this.modalService.closeModal(),this.logger.warn(`${rr}: editBoardPreset - Error updating board preset`,{error:r,presetUri:e}),this.showToast(s,ie.ERROR),this.onPresetUpdating.emit(!1)}})}deleteBoardPreset(e){this.openDeleteModal(e).pipe(B(1)).subscribe({next:t=>{t===Sn.CANCELLED||t===Sn.ERROR||this.boardPresetService.fetchAllPresets(this.selectedSpace.uri).pipe(Ot(()=>xe([])),B(1)).subscribe({next:n=>{this.presets=n,this.selectedBoardPreset=n[0],this.selectedPresetUri=this.selectedBoardPreset.uri,this.activatedRoute?.snapshot?.queryParams?.boardUri===e.uri&&this.updateParam()}})}})}openDeleteModal(e){let t="board-ng.modal.deleteSuccessMessage",n="board-ng.modal.deleteFailedMessage",r=this.translate.instant("board-ng.modal.delete"),s=this.translate.instant("board-ng.modal.deleteMessage"),l=this.translate.instant("board-ng.modal.deleteConfirmOkBtnText"),p=this.translate.instant("board-ng.modal.deleteConfirmCancelBtnText");return this.confirmService.setShowLoader(!0),this.confirmService.confirm(r,s,l,p).pipe(Qt(h=>h?this.presetService.deletePreset(e.uri).pipe(Ot(C=>(this.confirmService.closeModal(),this.logger.warn(`${rr}: openDeleteModal - Error deleting board preset`,{err:C,boardPreset:e}),this.showToast(n,ie.ERROR),xe(Sn.ERROR))),ye(()=>(this.confirmService.closeModal(),this.showToast(t,ie.SUCCESS),Sn.SUCCESS))):xe(Sn.CANCELLED)))}showToast(e,t){let n={type:t,content:this.translate.instant(e)};t===ie.SUCCESS?this.toastNotificationsService.showToast(I(w({},n),{duration:Hd})):this.toastNotificationsService.showToast(n)}initTemplateButtons(){this.templateButtons=[{id:On.LOCKED,label:this.lockTooltip,icon:En.LOCKED,hideController:{property:this.locked,value:!0},isDisabled:!0,showOnHover:!0,tooltip:this.lockTooltip},{id:On.DEFAULT,label:this.defaultLockTooltip,icon:En.LOCKED,hideController:{property:this.isDefault,value:!0},isDisabled:!0,showOnHover:!0,tooltip:this.defaultLockTooltip},{id:On.DELETE,label:this.deleteTooltip,icon:En.DELETE,closeOnSelect:!0,isDisabled:!1,hideController:{property:this.deletable,value:!0},tooltip:this.deleteTooltip,callback:(e,t)=>this.deleteBoardPreset(t),showOnHover:!0},{id:On.EDIT,label:this.editTooltip,icon:En.EDIT,closeOnSelect:!0,isDisabled:!1,hideController:{property:this.editable,value:!0},tooltip:this.editTooltip,callback:(e,t)=>this.openEditPresetModal(t),showOnHover:!0}]}initFooterButton(){this.footerSaveButton={id:On.SAVE_AS,label:this.saveLabel,icon:En.SAVE_AS,closeOnSelect:!0,callback:()=>this.openSavePresetModal()}}fetchPresets(){return b(this,null,function*(){this.onPresetFetching.emit(!0);try{this.presets=yield $(this.boardPresetService.fetchAllPresets(this.selectedSpace.uri)),this.onPresetFetching.emit(!1),this.applySelectedPreset()}catch{this.onPresetFetching.emit(!1)}})}getUriOfSelectedPreset(){this.activatedRoute.snapshot.queryParams?.boardUri?this.selectedPresetUri=decodeURIComponent(this.activatedRoute.snapshot.queryParams.boardUri):this.selectedPresetUri=""}applySelectedPreset(){return b(this,null,function*(){this.getUriOfSelectedPreset(),this.selectedPresetUri?this.selectedBoardPreset=yield this.getPresetSelectedFromUri(this.selectedPresetUri):(this.selectedBoardPreset=this.presets[0],this.selectedPresetUri=this.selectedBoardPreset.uri),this.onPresetSelected.emit(this.selectedBoardPreset),this.updateParam()})}updateParam(){let e={boardUri:this.selectedPresetUri};this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:e,queryParamsHandling:"merge"})}listenToQueryParamsChange(){this.activatedRoute.queryParams.subscribe(e=>{e?.boardUri&&e?.boardUri!==this.selectedPresetUri&&(this.selectedPresetUri=e.boardUri,this.applySelectedPreset())})}filterSaveButtonBasedOnPermission(){Ui(this.selectedSpace)?this.footerButtons=[]:this.footerButtons=[this.footerSaveButton]}};i.\u0275fac=function(t){return new(t||i)(c(wo),c(gl),c(Y),c(Lt),c(Ke),c(ot),c(Se),c(yi),c(Ei),c(qe),c(Qe),c(K))},i.\u0275cmp=D({type:i,selectors:[["explorer-board-preset-picker"]],inputs:{saveNewPresetSubs:"saveNewPresetSubs",updatePresetSubs:"updatePresetSubs",selectedBoardView:"selectedBoardView",isViewDirty:"isViewDirty"},outputs:{onPresetSelected:"onPresetSelected",onSavePreset:"onSavePreset",onEditPreset:"onEditPreset",onPresetFetching:"onPresetFetching",onPresetUpdating:"onPresetUpdating"},decls:4,vars:13,consts:[["selectTrigger",""],[3,"selectedModelChange","onChange","onSearch","onDropdownOpen","clearable","templateButtons","footerButtons","items","showActionBar","showTitleBar","selfGroupOrdering","groupBy","isDirty","placeholder","selectedModel"],[1,"borderless",3,"label","disabled","value","isActive","icon"]],template:function(t,n){if(t&1){let r=W();f(0,"ui2-presets-picker",1),N(1,"translate"),Xt("selectedModelChange",function(l){return v(r),Jt(n.selectedBoardPreset,l)||(n.selectedBoardPreset=l),P(l)}),E("onChange",function(l){return v(r),P(n.onChangePreset(l))})("onSearch",function(){return v(r),P(n.listenPresetSearch())})("onDropdownOpen",function(){return v(r),P(n.listenPresetOpen())}),M(2,Wd,2,9,"ng-template",null,0,ce),_()}t&2&&(d("clearable",!1)("templateButtons",n.templateButtons)("footerButtons",n.footerButtons)("items",n.presets)("showActionBar",!1)("showTitleBar",!1)("selfGroupOrdering",!1)("groupBy",n.group)("isDirty",n.isViewDirty)("placeholder",V(1,11,"board-settings-ng.configuration.boardListSearchPlaceholder")),Kt("selectedModel",n.selectedBoardPreset))},dependencies:[_s,Cs,Le],styles:[`.text-xs[_ngcontent-%COMP%], .label-xs-semibold-single[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], .label-xs-single[_ngcontent-%COMP%], .label-xs[_ngcontent-%COMP%]{font-size:.75rem}.text-sm[_ngcontent-%COMP%], .label-sm-semibold-single[_ngcontent-%COMP%], .label-sm-semibold[_ngcontent-%COMP%], .label-sm-single[_ngcontent-%COMP%], .label-sm[_ngcontent-%COMP%], .body-text-sm[_ngcontent-%COMP%], .title-sm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:.875rem}.text-base[_ngcontent-%COMP%], .label-base-single[_ngcontent-%COMP%], .label-base[_ngcontent-%COMP%], .body-text-base[_ngcontent-%COMP%], .title-base[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{font-size:1rem}.text-lg[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], [_nghost-%COMP%]     ui2-presets-trigger .trigger .trigger-label.label-sm, h2[_ngcontent-%COMP%]{font-size:1.125rem}.text-xl[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%]{font-size:1.5rem}.text-xxl[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%]{font-size:1.875rem}.font-normal[_ngcontent-%COMP%], .label-sm-single[_ngcontent-%COMP%], .label-sm[_ngcontent-%COMP%], .label-xs-single[_ngcontent-%COMP%], .label-xs[_ngcontent-%COMP%], .body-text-base[_ngcontent-%COMP%], .body-text-sm[_ngcontent-%COMP%]{font-weight:400}.font-semibold[_ngcontent-%COMP%], .label-base-single[_ngcontent-%COMP%], .label-base[_ngcontent-%COMP%], .label-sm-semibold-single[_ngcontent-%COMP%], .label-sm-semibold[_ngcontent-%COMP%], .label-xs-semibold-single[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], [_nghost-%COMP%]     ui2-presets-trigger .trigger .trigger-label.label-sm, h2[_ngcontent-%COMP%], .title-base[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], .title-sm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:600}.font-bold[_ngcontent-%COMP%]{font-weight:700}.leading-3[_ngcontent-%COMP%], .label-base-single[_ngcontent-%COMP%], .label-sm-semibold-single[_ngcontent-%COMP%], .label-sm-single[_ngcontent-%COMP%], .label-xs-semibold-single[_ngcontent-%COMP%], .label-xs-single[_ngcontent-%COMP%]{line-height:1}.leading-4[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%]{line-height:1.2}.leading-5[_ngcontent-%COMP%], .label-base[_ngcontent-%COMP%], .label-sm-semibold[_ngcontent-%COMP%], .label-sm[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], .label-xs[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], [_nghost-%COMP%]     ui2-presets-trigger .trigger .trigger-label.label-sm, h2[_ngcontent-%COMP%], .title-base[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], .title-sm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{line-height:1.35}.leading-6[_ngcontent-%COMP%], .body-text-base[_ngcontent-%COMP%], .body-text-sm[_ngcontent-%COMP%]{line-height:1.5}.tracking-neutral[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%]{letter-spacing:0}.tracking-tight[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], [_nghost-%COMP%]     ui2-presets-trigger .trigger .trigger-label.label-sm, h2[_ngcontent-%COMP%]{letter-spacing:-.1px}.tracking-tighter[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%]{letter-spacing:-.35px}.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}[_nghost-%COMP%]     ui2-presets-trigger{width:auto}[_nghost-%COMP%]     ui2-presets-trigger .trigger .trigger-label.label-sm{color:#8a9bab;text-wrap:wrap}[_nghost-%COMP%]     ui2-presets-trigger .trigger .trigger-label.label-sm.value{color:#627588}[_nghost-%COMP%]     ui2-presets-trigger.others-private .trigger>span{color:#8a9bab}[_nghost-%COMP%]     ui2-presets-trigger.others-private .trigger>span.trigger-label.label-sm.value{color:#8a9bab}[_nghost-%COMP%]     ui2-presets-picker{min-height:25px;display:flex;align-items:center}
/*# sourceMappingURL=explorer-board-preset-picker.component-XQAXVKHT.css.map */`]});let o=i;return o})();var Oo=o=>({uri:o?.uri,label:o?.name,type:o?.fieldTypeUri});var Fc=o=>({key:o?.uri,settingUri:o?.optionSelected?.uri,showFieldName:o?.showFieldName||!1}),Ic=o=>{let i=o.map(a=>({label:a?.label,color:a?.color}));return i=i.reduce((a,e)=>(a.some(t=>t?.label===e?.label&&t?.color===e?.color)||a.push(e),a),[]),i},Uc=o=>o.reduce((a,e)=>{let n=(e?.uri.split("@"))[0]||e.uri;return a.some(r=>r?.label===e?.name&&r?.uri===n)||a.push({color:e?.color,uri:n,label:e?.name}),a},[]),Rc=o=>o.reduce((a,e)=>(a[e.uri]||(a[e.uri]=e.color),a),{});var Qd=o=>({display:o}),Yd=o=>({active:o});function Kd(o,i){if(o&1){let a=W();f(0,"ui2-button",6),E("click",function(){v(a);let t=m(2);return P(t.setIconActiveStatus(!0))}),A(1,"span",7),_()}if(o&2){let a=m(2),e=it(3);d("matMenuTriggerFor",e)("ngClass",ae(2,Yd,a.isIconActive))}}function Jd(o,i){o&1&&(f(0,"div",8),N(1,"translate"),A(2,"i",9),_(),A(3,"div",10)),o&2&&d("ui2Tooltip",V(1,1,"board-ng.invalidColorOptionTooltip"))}function Xd(o,i){if(o&1&&M(0,Kd,2,4,"ui2-button",5)(1,Jd,4,3),o&2){let a=m();bt(0,a.isColorFieldSelectedValid?0:1)}}var Zd=200,Ac="board-ng.labels.general",Lc="board-ng.labels.fieldsAndRatings",Vc=(()=>{let i=class i{constructor(e,t,n,r,s){this.translate=e,this.entityConfigHelperService=t,this.destroyRef=n,this.themeService=r,this.store=s,this.onBoardConfigChange=new q,this.onCardConfigChange=new q,this.onColorLegendChange=new q,this.onShowLegendChange=new q,this.onOptionColorMapChange=new q,this.ExplorerConfigFieldEnum=be,this.cardSettings=[],this.selectedColorListFromMap=[],this.showResetButton=!1,this.elementTypes=[],this.boardConfigOptions=[],this.colorConfigOptions=[],this.cardConfigOptions=[],this.selectedBoardViewChange=new U,this.boardConfigFieldChange=new U,this.colorConfigFieldChange=new U,this.cardConfigFieldChange=new U,this.fieldToPropertyValueMap={}}ngOnInit(){this.boardConfig={settings:new Map},this.listenInputChanges()}ngOnChanges(e){e?.selectedBoardViewConfiguration?.currentValue&&!Mo(e?.selectedBoardViewConfiguration?.previousValue,e?.selectedBoardViewConfiguration?.currentValue)&&this.selectedBoardViewChange.next(e?.selectedBoardViewConfiguration?.currentValue),e?.boardConfigFields?.currentValue&&(this.boardConfigOptions=this.boardConfigFields.map(t=>Oo(t)),this.boardConfigFieldChange.next(e?.boardConfigFields?.currentValue)),e?.colorConfigFields?.currentValue&&(this.fieldToPropertyValueMap={},this.colorConfigOptions=this.colorConfigFields.map(t=>(this.setFieldToPropertyMap(t),Oo(t))),this.colorConfigFieldChange.next(e.colorConfigFields.currentValue)),e?.cardConfigFields?.currentValue&&(this.cardConfigOptions=this.cardConfigFields.map(t=>Oo(t)),this.cardConfigFieldChange.next(e?.cardConfigFields?.currentValue))}boardConfigChange(e){this.onBoardConfigChange.emit(e),e?.uri===je.COLOR&&this.setColorOption(e?.optionSelected.uri)}cardOptionSelectionChange(e){let t=this.cardSettings.map(n=>(e.optionSelected||n.uri===e.setting.uri&&(n.showFieldName=!1),Fc(n)));this.onCardConfigChange.emit(t)}showLegend(e){this.onShowLegendChange.emit(e)}closeColorSelectorDropdown(e){e.closed.next()}setIconActiveStatus(e){this.isIconActive=e}onSelectColor(e){let t=this.selectedColorListFromMap.find(n=>n?.uri===e?.selectedOption?.uri);t&&(t.color=e.selectedOption.color,mo(this.selectedBoardViewConfiguration?.color,t.uri,t.color),this.emitOptionColorMap(),this.updateColorLegend()),this.setResetColorFlag()}groupSettingOption(e){let t=e.filter(s=>s?.uri===he.ELEMENT_TYPE||s?.uri===he.STATUS),n=e.filter(s=>s?.uri!==he.ELEMENT_TYPE&&s?.uri!==he.STATUS),r=[];return t?.length&&r.push({label:this.translate.instant(Ac),uri:this.translate.instant(Ac),fields:e.filter(s=>s?.uri===he.ELEMENT_TYPE||s?.uri===he.STATUS)}),n?.length&&r.push({label:this.translate.instant(Lc),uri:this.translate.instant(Lc),fields:e.filter(s=>s?.uri!==he.ELEMENT_TYPE&&s?.uri!==he.STATUS)}),r}setResetColorFlag(){let e=this.fieldToPropertyValueMap[this.selectedBoardViewConfiguration.color||""];if(e&&this.selectedColorListFromMap.length){let t=this.selectedColorListFromMap.every(n=>e.some(r=>n.color===r.color&&n.uri===r.uri));this.showResetButton=!t}}setFieldToPropertyMap(e){return b(this,null,function*(){if(!this.fieldToPropertyValueMap[e?.uri]){e?.fieldTypeUri===he.ELEMENT_TYPE?(yield this.getElementTypes(),this.fieldToPropertyValueMap[e?.uri]=Uc(this.elementTypes)):this.fieldToPropertyValueMap[e?.uri]=An(e);let t=this.themeService.getGeneratedPalette(e?.uri,this.fieldToPropertyValueMap[e?.uri]?.length);this.fieldToPropertyValueMap[e?.uri].forEach((n,r)=>{n.color=n?.color||t[r]})}})}onResetClicked(){go(this.selectedBoardViewConfiguration.color||"");let e=this.colorConfigFields.find(t=>t.uri===this.selectedBoardViewConfiguration.color);this.setFieldToPropertyMap(e),this.selectedColorListFromMap=JSON.parse(JSON.stringify(this.fieldToPropertyValueMap[this.selectedBoardViewConfiguration.color||""])),this.emitOptionColorMap(),this.setResetColorFlag(),this.updateColorLegend()}buildBoardConfig(){this.checkColorFieldValidity(),this.setColumnConfig(),this.setSwimlaneConfig(),this.setColorConfig(),this.setUnassignedConfig(),this.setEmptySwimlaneConfig()}buildCardConfig(){this.cardSettings=[];for(let e=1;e<=4;e++){let t=this.selectedBoardViewConfiguration?.labels?.find(n=>n.key===`${be.LABEL}${e}`)||null;this.cardSettings.push({label:this.translate.instant("board-ng.labels.label",{labelNumber:e}),uri:`${be.LABEL}${e}`,placeholder:this.translate.instant("explorer-ng.renderers.select.placeholder.default"),optionSelected:t&&this.cardConfigOptions.find(n=>n.uri===t?.settingUri),options:this.cardConfigOptions,type:on.DROPDOWN,field:`${be.LABEL}${e}`,showFieldName:t?.showFieldName||!1})}}getElementTypes(){return b(this,null,function*(){let e=yield $(this.store.select(Q.selectCurrentSpaceUri).pipe(H()));this.elementTypes=yield this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(e)})}setColumnConfig(){this.boardConfig.settings.set(be.COLUMN,{label:this.translate.instant("board-ng.labels.columns"),placeholder:this.translate.instant("board-ng.placeholders.columns"),uri:je.COLUMNS,options:this.groupSettingOption(this.boardConfigOptions),optionSelected:this.boardConfigOptions.find(e=>e?.uri===this.selectedBoardViewConfiguration.column)||null,type:on.DROPDOWN_MULTIPLE_GROUPS,field:be.COLUMN})}setSwimlaneConfig(){this.boardConfig.settings.set(be.SWIMLANE,{label:this.translate.instant("board-ng.labels.swimlanes"),placeholder:this.translate.instant("board-ng.placeholders.swimlanes"),uri:je.SWIMLANES,options:this.groupSettingOption(this.boardConfigOptions),optionSelected:this.boardConfigOptions.find(e=>e?.uri===this.selectedBoardViewConfiguration.swimlane)||null,type:on.DROPDOWN_MULTIPLE_GROUPS,field:be.SWIMLANE})}setColorConfig(){let e=this.selectedBoardViewConfiguration?.color||"",t=this.boardConfigOptions.find(r=>r?.uri===e),n=!this.isColorFieldSelectedValid;this.boardConfig.settings.set(be.COLOR,{label:this.translate.instant("board-ng.labels.cardColor"),placeholder:this.translate.instant("board-ng.placeholders.color"),uri:je.COLOR,options:this.groupSettingOption(this.colorConfigOptions),optionSelected:t?I(w({},t),{deprecated:n}):null,type:on.DROPDOWN_MULTIPLE_GROUPS,field:be.COLOR}),this.setColorOption(e),this.emitOptionColorMap(),this.updateColorLegend()}setUnassignedConfig(){let e=this.selectedBoardViewConfiguration?.unassigned??!1;this.boardConfig.settings.set(be.UNASSIGNED,{label:this.translate.instant("board-ng.labels.showUnassigned"),selected:e,uri:je.SHOW_UNASSIGNED,type:on.BOOLEAN_SELECTOR,field:be.UNASSIGNED})}setEmptySwimlaneConfig(){let e=this.selectedBoardViewConfiguration?.emptySwimlanes??!1;this.boardConfig.settings.set(be.EMPTY_SWIMLANE,{label:this.translate.instant("board-ng.labels.showEmptySwimlanes"),selected:e,uri:je.SHOW_EMPTY_SWIMLANES,type:on.BOOLEAN_SELECTOR,field:be.EMPTY_SWIMLANE})}setColorOption(e){this.fieldToPropertyValueMap&&this.fieldToPropertyValueMap[e]&&(this.selectedColorListFromMap=JSON.parse(JSON.stringify(this.fieldToPropertyValueMap[e])),this.selectedColorListFromMap.forEach((t,n)=>{let r=Ll(e,t?.uri);t.color=r||t?.color}),this.emitOptionColorMap(),this.setResetColorFlag())}checkColorFieldValidity(){this.isColorFieldSelectedValid=!!this.colorConfigFields.find(e=>e?.uri===this.selectedBoardViewConfiguration?.color)}listenInputChanges(){Re([this.selectedBoardViewChange,this.boardConfigFieldChange,this.colorConfigFieldChange,this.cardConfigFieldChange]).pipe(R(this.destroyRef),St(Zd)).subscribe({next:()=>{this.buildBoardConfig(),this.buildCardConfig()}})}updateColorLegend(){let e=Ic(this.selectedColorListFromMap);this.colorLegend={title:this.boardConfig.settings.get(be.COLOR)?.optionSelected?.label,legends:e},this.onColorLegendChange.emit(this.colorLegend)}emitOptionColorMap(){let e=Rc(this.selectedColorListFromMap);this.onOptionColorMapChange.emit(e)}};i.\u0275fac=function(t){return new(t||i)(c(Y),c(oe),c(ge),c(vn),c(K))},i.\u0275cmp=D({type:i,selectors:[["explorer-board-setting"]],inputs:{selectedBoardViewConfiguration:"selectedBoardViewConfiguration",boardConfigFields:"boardConfigFields",cardConfigFields:"cardConfigFields",colorConfigFields:"colorConfigFields",showLegendInput:"showLegendInput"},outputs:{onBoardConfigChange:"onBoardConfigChange",onCardConfigChange:"onCardConfigChange",onColorLegendChange:"onColorLegendChange",onShowLegendChange:"onShowLegendChange",onOptionColorMapChange:"onOptionColorMapChange"},features:[Ae],decls:5,vars:11,consts:[["colorPickerMenu","matMenu"],[1,"flex","items-center","mr-6",3,"boardConfigChange","cardOptionSelectionChange","showLegend","menuClosed","boardConfig","cardSettings","clearable","colorLegend","showLegendInput"],[3,"settingUri"],[1,"board-color-picker-menu",3,"closed"],[1,"panel",3,"click","onSelectColor","onResetClicked","ngStyle","options","isResetVisible"],[1,"button-icon",3,"matMenuTriggerFor","ngClass"],[1,"button-icon",3,"click","matMenuTriggerFor","ngClass"],[1,"icon","icon2-x16-filters"],[1,"ml-3",3,"ui2Tooltip"],[1,"icon2-x24-support"],[1,"empty-action"]],template:function(t,n){if(t&1){let r=W();f(0,"board-settings",1),E("boardConfigChange",function(l){return v(r),P(n.boardConfigChange(l))})("cardOptionSelectionChange",function(l){return v(r),P(n.cardOptionSelectionChange(l))})("showLegend",function(l){return v(r),P(n.showLegend(l))})("menuClosed",function(){v(r);let l=it(3);return P(n.closeColorSelectorDropdown(l))}),M(1,Xd,2,1,"ng-template",2),_(),f(2,"mat-menu",3,0),E("closed",function(){return v(r),P(n.setIconActiveStatus(!1))}),f(4,"ui2-color-picker-panel",4),E("click",function(l){return v(r),P(l.stopPropagation())})("onSelectColor",function(l){return v(r),P(n.onSelectColor(l))})("onResetClicked",function(){return v(r),P(n.onResetClicked())}),_()()}t&2&&(d("boardConfig",n.boardConfig)("cardSettings",n.cardSettings)("clearable",!1)("colorLegend",n.colorLegend)("showLegendInput",n.showLegendInput),g(),d("settingUri",n.ExplorerConfigFieldEnum.COLOR),g(3),d("ngStyle",ae(9,Qd,"block"))("options",n.selectedColorListFromMap)("isResetVisible",n.showResetButton))},dependencies:[Oe,mn,Br,jr,Pl,vl,bl,hi,gt,Le],styles:[`.empty-action[_ngcontent-%COMP%]{height:24px;width:24px}  .board-color-picker-menu .mat-mdc-menu-content{overflow-y:unset}
/*# sourceMappingURL=explorer-board-setting.component-UX7ADKOS.css.map */`]});let o=i;return o})();function tm(o,i){o&1&&(f(0,"div",11),N(1,"translate"),f(2,"div",12)(3,"span"),G(4),N(5,"translate"),_()()()),o&2&&(d("ui2Tooltip",V(1,2,"board-ng.privateBoardTooltip")),g(4),Z(" (",V(5,4,"board-ng.sharedPrivateBoard"),")"))}function nm(o,i){o&1&&(f(0,"div",13),G(1),N(2,"translate"),_()),o&2&&(g(),De(V(2,1,"explorer-ng.explorer-board.header.saveAsPreset")))}var Dc=(()=>{let i=class i{constructor(){this.showLegend=!1,this.totalElement=0,this.onPresetSelected=new q,this.presetLoading=new q,this.onDiscard=new q,this.onSelectedChanged=new q,this.currentActiveIcon=new q,this.boardConfigChange=new q,this.cardOptionSelectionChange=new q,this.showLegendChange=new q(!1),this.colorLegendChange=new q,this.optionColorMapChange=new q,this.ExplorerConfigFieldEnum=be,this.ItonicsTools=_e,this.updatePresetSub=new U,this.saveNewPresetSub=new U,this.isPresetLoading=!1,this.isPresetUpdating=!1}onUpdatePreset(){this.updatePresetSub.next(!0)}onSavePreset(){this.saveNewPresetSub.next(!0)}listenPresetSelected(e){this.onPresetSelected.emit(e),this.selectedBoardPreset=e}onPresetFetching(e){this.presetLoading.emit(e)}onPresetUpdating(e){this.isPresetUpdating=e}onDiscardChanges(){this.onDiscard.emit()}onBoardConfigChange(e){this.boardConfigChange.emit(e)}onCardConfigChange(e){this.cardOptionSelectionChange.emit(e)}onColorLegendChange(e){this.colorLegendChange.emit(e)}onShowLegendChange(e){this.showLegendChange.emit(e)}onOptionColorMapChange(e){this.optionColorMapChange.emit(e)}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["explorer-board-header"]],inputs:{isDirty:"isDirty",selectedBoardView:"selectedBoardView",boardConfigFields:"boardConfigFields",cardConfigFields:"cardConfigFields",colorConfigFields:"colorConfigFields",showLegend:"showLegend",showLegendInput:"showLegendInput",totalElement:"totalElement"},outputs:{onPresetSelected:"onPresetSelected",presetLoading:"presetLoading",onDiscard:"onDiscard",onSelectedChanged:"onSelectedChanged",currentActiveIcon:"currentActiveIcon",boardConfigChange:"boardConfigChange",cardOptionSelectionChange:"cardOptionSelectionChange",showLegendChange:"showLegendChange",colorLegendChange:"colorLegendChange",optionColorMapChange:"optionColorMapChange"},decls:14,vars:21,consts:[["noPreset",""],[1,"explorer-board-header"],[1,"breadcrumb"],[1,"view-option-holder"],[3,"onPresetSelected","onPresetFetching","isViewDirty","updatePresetSubs","selectedBoardView","saveNewPresetSubs"],[1,"label-sm-semibold","main-gray","ml-1"],[3,"ui2Tooltip",4,"ngIf"],[1,"flex"],[1,"flex",3,"onBoardConfigChange","onCardConfigChange","onColorLegendChange","onShowLegendChange","onOptionColorMapChange","selectedBoardViewConfiguration","boardConfigFields","cardConfigFields","colorConfigFields","showLegendInput"],[1,"quick-access-container","items-center"],[3,"onUpdatePreset","onSaveAsNewPreset","onDiscardChanges","viewName","isViewDirty","isDefaultPreset","isPresetUpdating","currentTool","preset"],[3,"ui2Tooltip"],[1,"m-2","label-sm-semibold-single","color-alert"],[1,"title-lg","no-preset-label"]],template:function(t,n){if(t&1){let r=W();f(0,"div",1)(1,"div",2)(2,"div",3)(3,"explorer-board-preset-picker",4),E("onPresetSelected",function(l){return v(r),P(n.listenPresetSelected(l))})("onPresetFetching",function(l){return v(r),P(n.onPresetFetching(l))}),_(),f(4,"span",5),G(5),_()(),M(6,tm,6,6,"div",6)(7,nm,3,3,"ng-template",null,0,ce),_(),f(9,"div",7)(10,"explorer-board-setting",8),E("onBoardConfigChange",function(l){return v(r),P(n.onBoardConfigChange(l))})("onCardConfigChange",function(l){return v(r),P(n.onCardConfigChange(l))})("onColorLegendChange",function(l){return v(r),P(n.onColorLegendChange(l))})("onShowLegendChange",function(l){return v(r),P(n.onShowLegendChange(l))})("onOptionColorMapChange",function(l){return v(r),P(n.onOptionColorMapChange(l))}),_(),f(11,"div",9)(12,"explorer-preset-quick-access",10),N(13,"translate"),E("onUpdatePreset",function(){return v(r),P(n.onUpdatePreset())})("onSaveAsNewPreset",function(){return v(r),P(n.onSavePreset())})("onDiscardChanges",function(){return v(r),P(n.onDiscardChanges())}),_()()()()}t&2&&(g(2),le("others-private",n.selectedBoardPreset==null?null:n.selectedBoardPreset.othersPrivate),g(),d("isViewDirty",n.isDirty)("updatePresetSubs",n.updatePresetSub)("selectedBoardView",n.selectedBoardView)("saveNewPresetSubs",n.saveNewPresetSub),g(2),Z("(",n.totalElement,")"),g(),d("ngIf",n.selectedBoardPreset==null?null:n.selectedBoardPreset.othersPrivate),g(4),d("selectedBoardViewConfiguration",n.selectedBoardView)("boardConfigFields",n.boardConfigFields)("cardConfigFields",n.cardConfigFields)("colorConfigFields",n.colorConfigFields)("showLegendInput",n.showLegend),g(2),d("viewName",V(13,19,"board-ng.labels.viewName"))("isViewDirty",n.isDirty)("isDefaultPreset",n.selectedBoardPreset==null?null:n.selectedBoardPreset.isDefault)("isPresetUpdating",n.isPresetUpdating)("currentTool",n.ItonicsTools.BOARD)("preset",n.selectedBoardPreset))},dependencies:[ne,ns,gt,kc,Vc,Le],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}.breadcrumb[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center}.row-3[_ngcontent-%COMP%]{display:flex;flex-direction:row!important;align-items:center;margin-top:8px;height:14px!important}.property[_ngcontent-%COMP%]{text-transform:uppercase;color:#bdc8d4;transition:color .2s ease;margin-bottom:10px;max-width:200px;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.view-option-holder[_ngcontent-%COMP%]{align-items:center;display:flex;color:#3e4d63}.preset-label[_ngcontent-%COMP%]{margin-left:6px}.no-preset-label[_ngcontent-%COMP%]{color:#098dcd}.no-preset-label[_ngcontent-%COMP%]:hover{color:#00689a}.bookmark-icon[_ngcontent-%COMP%]{color:#627588}.element-count[_ngcontent-%COMP%]{margin-right:16px;color:#627588}.discard[_ngcontent-%COMP%]{color:#f1245c}.explorer-board-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px}  .mat-mdc-menu-panel.board-color-picker-menu{max-width:450px!important;overflow:visible!important;margin-left:60px;margin-top:-45px;box-shadow:0 2px 6px #3e4d6347!important;border-radius:6px!important}[_nghost-%COMP%]   .others-private[_ngcontent-%COMP%]{color:#8a9bab}
/*# sourceMappingURL=explorer-board-header.component-MGJJRXG7.css.map */`]});let o=i;return o})();var Bc=(o,i,a,e)=>{let t;switch(o?.fieldTypeUri){case L.OPTIONS:t=om(o,i,a);break;case L.USER:t=rm(o,i,a);break;case L.WORKFLOW_STATUS:{let n=e.find(r=>r.fieldTypeUri===L.WORKFLOW_DEFINITION)?.uri||"";t=am(o,i,a,n);break}case L.WORKFLOW_DEFINITION:{let n=e.find(r=>r.fieldTypeUri===L.WORKFLOW_STATUS)?.uri||"";t=sm(o,i,a,n);break}}return t},om=(o,i,a)=>{let e={uri:i.uri,spaceUri:i.spaceUri,version:i.version+1};return o.uri===wn.STATUS?e.status=a:e.fieldValues=[{fieldUri:o.uri,fieldVersion:o.version,value:[a]}],e},rm=(o,i,a)=>({uri:i.uri,spaceUri:i.spaceUri,version:i.version+1,fieldValues:[{fieldUri:o.uri,fieldVersion:o.version,value:[a]}]}),am=(o,i,a,e)=>{let t=i.fieldValues?.find(C=>C.fieldUri===o.uri);if(!t)return;let n=JSON.parse(t.value[0]),r=n?.locked;if(r===ke.COMPLETED||r===ke.REJECTED&&a!==ke.RUNNING)return;let l=zc(e,i).find(C=>C.uri===n.currentPhase);if(!l||a===ke.COMPLETED&&!!!(l?.nextPhases?.length===0&&jc(i,o.uri)))return;let p=a===ke.RUNNING?void 0:a,h;if(n.auditDelta)h={intent:Si.LOCKED_UPDATE,previousValue:I(w({},n.auditDelta.currentValue),{locked:n?.auditDelta?.currentValue?.locked||void 0}),currentValue:I(w({},n.auditDelta.currentValue),{locked:p})};else{let C=l.taskList.reduce((O,S)=>(O[S.uri]={taskTitle:S.label,value:n.phases?n.phases[l.uri].taskStatus[S.uri].value:!1},O),{});h={intent:Si.LOCKED_UPDATE,previousValue:{currentPhaseTitle:l.label,locked:n?.locked||void 0,taskStatus:C},currentValue:{currentPhaseTitle:l.label,locked:p,taskStatus:C}}}return{uri:i.uri,spaceUri:i.spaceUri,version:i.version+1,fieldValues:[{fieldUri:o.uri,fieldVersion:o.version,value:[I(w({},n),{auditDelta:h,locked:p})]}]}},sm=(o,i,a,e)=>{let t=i.fieldValues?.find(C=>C.fieldUri===e);if(!t)return;let n=JSON.parse(t.value[0]),r=n?.locked;if(r===ke.PARKED||r===ke.REJECTED)return;let s=zc(o.uri,i),l=s.find(C=>C.uri===n.currentPhase);if(!l||!(l?.nextPhases.includes(a)&&jc(i,e)))return;let h=s.find(C=>C.uri===a);if(h){n.currentPhase=h.uri,n.currentPhaseMatchString=Aa(h.uri);let C=h.taskList.reduce((O,S)=>(O[S.uri]={taskTitle:S.label,value:!1},O),{});n.auditDelta={intent:Si.PHASE_CHANGE,previousValue:n.auditDelta?JSON.parse(JSON.stringify(n.auditDelta.currentValue)):null,currentValue:{locked:n?.locked||void 0,currentPhaseTitle:h.label,taskStatus:C}}}return{uri:i.uri,spaceUri:i.spaceUri,version:i.version+1,fieldValues:[{fieldUri:e,fieldVersion:o.version,value:[n]}]}},jc=(o,i)=>{let a=o.fieldValues.find(e=>e.fieldUri===i);if(a){let e=JSON.parse(a.value[0]),t=e.phases[e.currentPhase];return!e.phases||!t?!1:!Object.keys(t.taskStatus).some(r=>!t.taskStatus[r].value)}else return!1},zc=(o,i)=>{let a=i.fieldValues.find(e=>e.fieldUri===o);return a?JSON.parse(a.value[0]).phases:[]};var ar=(o,i)=>i===wn.STATUS?o.status:o.fieldValues?.find(e=>e.fieldUri===i)?.value[0]||ht;var Wc=(o,i,a)=>{let e=a.find(r=>r.fieldTypeUri===L.WORKFLOW_DEFINITION)?.uri||"",t=o.fieldValues?.find(r=>r.fieldUri===e),n=o.fieldValues?.find(r=>r.fieldUri===i);return n&&t?JSON.parse(n.value[0])?.locked||ke.RUNNING:ht},Hc=(o,i)=>{let a=i.find(r=>r.fieldTypeUri===L.WORKFLOW_DEFINITION)?.uri||"",e=o.fieldValues?.find(r=>r.fieldUri===a),t=i.find(r=>r.fieldTypeUri===L.WORKFLOW_STATUS)?.uri||"",n=o.fieldValues?.find(r=>r.fieldUri===t);return n&&e?JSON.parse(n.value[0])?.currentPhase:ht};var $c=(o,i,a,e)=>{let t=Gc(o,i,e),n=Gc(o,a,e);return`${t}_${n}`},Gc=(o,i,a)=>{let e=ht;switch(i?.fieldTypeUri){case L.OPTIONS:e=ar(o,i.uri);break;case L.USER:e=ar(o,i.uri);break;case L.WORKFLOW_STATUS:e=Wc(o,i.uri,a);break;case L.WORKFLOW_DEFINITION:e=Hc(o,a);break;case tn:e=o.elementTypeUri}return e};var qc=(o,i)=>{let a=i.find(s=>s.fieldTypeUri===L.WORKFLOW_DEFINITION)?.uri||"",e=i.find(s=>s.fieldTypeUri===L.WORKFLOW_STATUS)?.uri||"",t=[],n;return o.find(s=>{let l=s.fieldValues,p=l.find(h=>h.fieldUri===e);return n=l.find(h=>h.fieldUri===a),!!n&&!!p})&&n&&(t=JSON.parse(n.value[0]).phases.map(l=>({uri:l.uri,label:l.label,color:l.color}))),t};var Qc=()=>{let o=[];return Object.entries(ke).forEach(([i,a])=>{o.push({uri:a,label:i})}),o};function lm(o,i){if(o&1&&(f(0,"div"),A(1,"div",4),_()),o&2){let a=m();g(),d("innerHTML",a.textContent,Pr)}}function cm(o,i){if(o&1&&Yt(0,5),o&2){let a=m();d("ngTemplateOutlet",a.labelText)}}var So=(()=>{let i=class i{constructor(){this.fieldName="",this.fieldValue=[],this.showTooltip=!0,this.tooltipString="",this.fieldValueString=""}ngOnInit(){this.setTooltipText()}ngOnChanges(e){(e.fieldName||e.fieldValue)&&this.setTooltipText()}setTooltipText(){this.fieldValueString=this.fieldValue?this.fieldValue.join(", "):null,this.fieldValueString&&this.fieldName?this.tooltipString=`${this.fieldName}: ${this.fieldValueString}`:this.fieldName?this.tooltipString=this.fieldName:this.tooltipString=this.fieldValueString}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["ui2-label-renderer"]],contentQueries:function(t,n,r){if(t&1&&ai(r,yr,5),t&2){let s;tt(s=nt())&&(n.labelText=s.first)}},inputs:{textContent:"textContent",fieldName:"fieldName",fieldValue:"fieldValue",showTooltip:"showTooltip"},features:[Ae],decls:5,vars:3,consts:[["templateOutlet",""],[3,"ui2Tooltip"],[1,"label-renderer-wrapper"],[4,"ngIf","ngIfElse"],[1,"label","label-sm",3,"innerHTML"],[3,"ngTemplateOutlet"]],template:function(t,n){if(t&1&&(f(0,"span",1)(1,"div",2),M(2,lm,2,1,"div",3)(3,cm,1,1,"ng-template",null,0,ce),_()()),t&2){let r=it(4);d("ui2Tooltip",n.tooltipString&&n.showTooltip?n.tooltipString:null),g(2),d("ngIf",n.textContent)("ngIfElse",r)}},dependencies:[ne,gn,gt],styles:[`.label-renderer-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-radius:4px;height:24px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background-color:#f7f8f9;color:#627588;padding:4px;align-items:center}.label[_ngcontent-%COMP%]{width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/*# sourceMappingURL=label-renderer.component-HCSHGQAZ.css.map */`]});let o=i;return o})();var Kc=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["ui-ellipsis-loader"]],decls:1,vars:0,consts:[[1,"loading"]],template:function(t,n){t&1&&A(0,"span",0)},styles:[`[_nghost-%COMP%]   .loading[_ngcontent-%COMP%]:after{display:inline-block;animation:_ngcontent-%COMP%_dotty steps(1,end) 1s infinite;width:16px;content:""}@keyframes _ngcontent-%COMP%_dotty{0%{content:""}25%{content:"."}50%{content:".."}75%{content:"..."}to{content:""}}
/*# sourceMappingURL=ui-ellipsis-loader.component-MXRARKWU.css.map */`]});let o=i;return o})();var dm=o=>({multi:o});function mm(o,i){if(o&1&&(f(0,"span",3),G(1),_()),o&2){let a=m(2);g(),Z(" ",a.label==null?null:a.label.title,": ")}}function gm(o,i){o&1&&A(0,"ui-ellipsis-loader")}function um(o,i){if(o&1&&(f(0,"span",4),G(1),_()),o&2){let a=m(2);d("ngClass",ae(2,dm,!(a.label!=null&&a.label.singleValue))),g(),Z(" ",a.label!=null&&a.label.singleValue?a.users:a.users[0]+" +"+((a.users==null?null:a.users.length)-1)," ")}}function fm(o,i){if(o&1&&M(0,mm,2,1,"span",2)(1,gm,1,0,"ui-ellipsis-loader")(2,um,2,4),o&2){let a=m();d("ngIf",a.label==null?null:a.label.showTitle),g(),bt(1,a.isLoading?1:2)}}var Jc=(()=>{let i=class i{constructor(e,t){this.userLookupService=e,this.translate=t,this.users=[],this.isLoading=!0}ngOnChanges(e){e.label.currentValue&&this.label?.value?.length&&this.getUser()}getUser(){return b(this,null,function*(){try{let e=this.label?.value,t=yield this.userLookupService.getUsers({filterParams:{userUri:e}},{level:vi.Workspace});this.users=e?.reduce((n,r)=>{let s=t.find(p=>p.userUri===r),l=this.translate.instant("board-ng.unknownUser");return n.concat(s?`${s?.firstName} ${s?.lastName}`:l)},[])||[],this.isLoading=!1}catch{this.isLoading=!1}})}};i.\u0275fac=function(t){return new(t||i)(c(Mi),c(Y))},i.\u0275cmp=D({type:i,selectors:[["explorer-board-user-card"]],inputs:{label:"label"},features:[Ae],decls:3,vars:2,consts:[["labelText",""],[1,"label",3,"fieldName","fieldValue"],["class","label-xs main-gray-light mr-1",4,"ngIf"],[1,"label-xs","main-gray-light","mr-1"],[1,"label-xs-semibold-single",3,"ngClass"]],template:function(t,n){t&1&&(f(0,"ui2-label-renderer",1),M(1,fm,3,2,"ng-template",null,0,ce),_()),t&2&&d("fieldName",n.label==null?null:n.label.title)("fieldValue",n.users)},dependencies:[Oe,ne,So,Kc],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}[_nghost-%COMP%]   .label[_ngcontent-%COMP%]{display:flex;width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:4px;margin-top:4px}
/*# sourceMappingURL=explorer-board-user-card.component-6FJ5VQ3M.css.map */`]});let o=i;return o})();var Cm=o=>({multi:o});function _m(o,i){if(o&1&&(ee(0),A(1,"explorer-board-user-card",14),te()),o&2){let a=m(2).$implicit;g(),d("label",a)}}function xm(o,i){if(o&1&&(f(0,"span",18),G(1),_()),o&2){let a=m(4).$implicit;g(),Z("",a==null?null:a.title,": ")}}function bm(o,i){if(o&1&&(f(0,"span",17),G(1),_()),o&2){let a=m(4).$implicit;g(),Z(" ",a==null?null:a.value," ")}}function vm(o,i){if(o&1&&(f(0,"span",19),G(1),_()),o&2){let a=m(4).$implicit;g(),Z(" ",a==null?null:a.value[(a==null||a.value==null?null:a.value.length)-1]," ")}}function Pm(o,i){if(o&1&&(f(0,"span",20),G(1),_()),o&2){let a=m(4).$implicit;d("ngClass",ae(2,Cm,!(a!=null&&a.singleValue))),g(),Z(" ",a!=null&&a.singleValue?a==null?null:a.value:(a==null?null:a.value[0])+" +"+((a==null||a.value==null?null:a.value.length)-1)," ")}}function Mm(o,i){if(o&1&&M(0,xm,2,1,"span",16)(1,bm,2,1,"span",17)(2,vm,2,1)(3,Pm,2,4),o&2){let a=m(3).$implicit,e=m(2);d("ngIf",a==null?null:a.showTitle),g(),bt(1,(a==null?null:a.type)===e.entityConfigFieldTypeUri.NUMERICAL?1:(a==null?null:a.type)===e.entityConfigFieldTypeUri.HIERARCHICAL_OPTIONS?2:a.type===e.entityConfigFieldTypeUri.OPTIONS||a.type===e.entityConfigFieldTypeUri.DATE?3:-1)}}function ym(o,i){if(o&1&&(f(0,"ui2-label-renderer",15),M(1,Mm,4,2,"ng-template",null,1,ce),_()),o&2){let a=m(2).$implicit;d("fieldName",a==null?null:a.title)("fieldValue",a==null?null:a.value)}}function wm(o,i){if(o&1&&(ee(0),M(1,_m,2,1,"ng-container",13)(2,ym,3,2,"ng-template",null,0,ce),te()),o&2){let a=it(3),e=m().$implicit,t=m(2);g(),d("ngIf",(e==null?null:e.type)===t.entityConfigFieldTypeUri.USER)("ngIfElse",a)}}function Om(o,i){if(o&1&&(ee(0),M(1,wm,4,2,"ng-container",12),te()),o&2){let a=i.$implicit;g(),d("ngIf",a==null||a.value==null?null:a.value.length)}}function Sm(o,i){if(o&1&&(f(0,"div",4),A(1,"div",5),f(2,"div",6)(3,"div",7)(4,"span",8),G(5),_()(),f(6,"div",9),G(7),_(),f(8,"div",10),M(9,Om,2,1,"ng-container",11),_()()()),o&2){let a=m();g(),jn("background",a.cardColor),g(3),jn("color",a.cardColor),g(),Z("",a.elementType==null?null:a.elementType.name," "),g(2),De(a.entity==null?null:a.entity.label),g(2),d("ngForOf",a.cardLabels)}}var Em=200,Tm="d MMM, yyyy",Xc=(()=>{let i=class i{constructor(e,t,n,r,s,l){this.destroyRef=e,this.entityConfigHelperService=t,this.themeService=n,this.datePipe=r,this.store=s,this.generateUrlService=l,this.cardLabels=[],this.entityConfigFieldTypeUri=L,this.entityChanges=new U,this.explorerBoardViewChange=new U,this.colorOptionMapChange=new U,this.fieldsChange=new U,this.settingToLabelMap={},this.currentSpaceUri="",this.elementDetailUrl="",this.locale=navigator.language,this.listenInputChanges(),this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R(this.destroyRef)).subscribe(p=>{this.currentSpaceUri=p})}ngOnInit(){this.getElementDetailUrl()}ngOnChanges(e){e?.entity?.currentValue&&(this.setElementType(),this.entityChanges.next(e?.entity?.currentValue)),e?.explorerBoardViewChanges?.currentValue&&(this.explorerBoardView=this.explorerBoardViewChanges?.view,this.explorerBoardViewChange.next(e?.explorerBoardViewChanges?.currentValue)),e?.colorOptionMap?.currentValue&&(this.setColor(),this.colorOptionMapChange.next(e?.colorOptionMap?.currentValue)),e?.fields?.currentValue&&this.fieldsChange.next(e?.fields?.currentValue)}listenInputChanges(){Re([this.entityChanges,this.explorerBoardViewChange,this.colorOptionMapChange,this.fieldsChange]).pipe(R(this.destroyRef),St(Em)).subscribe({next:()=>{this.setLabels()}})}setElementType(){return b(this,null,function*(){this.entity&&(this.elementType=yield this.entityConfigHelperService.getElementType(this.entity?.elementTypeUri))})}setColor(){if(!this.fields||!this.entity||!this.colorOptionMap)return;let e=Al(this.fields)(this.entity,this.explorerBoardView?.color||"");this.cardColor=this.colorOptionMap[e]||this.themeService.getFallbackColor()}setLabels(){let e=[];this.explorerBoardView?.labels?.forEach(t=>{if(!t?.settingUri)return;let n=this.settingToLabelMap[t.settingUri];if(n)e.push(I(w({},n),{key:t.key,showTitle:t.showFieldName}));else{let r=this.getLabelValue(t);r&&(this.settingToLabelMap[t.settingUri]=JSON.parse(JSON.stringify(r)),e.push(r))}}),this.cardLabels=e.sort((t,n)=>t.key.localeCompare(n.key))}getLabelValue(e){let t=this.fields?.find(r=>r.uri===e?.settingUri);if(!t)return;let n={key:e.key,value:[],title:t?.name,type:t?.fieldTypeUri,showTitle:e.showFieldName,singleValue:!0};switch(t?.fieldTypeUri){case L.DATE:{n.value=this.parseDateField(t);break}case L.USER:{this.entity&&(n.value=yc(t,this.entity));break}default:{n.value=this.getFieldData(t);break}}return n.singleValue=n?.value?.length===1||n?.value?.length<1,n}parseDateField(e){let t=this.entity?.fieldValues?.find(l=>l.fieldUri===e.uri)?.value,n=null;t?.[0]&&(n=Number(t[0]));let s=n&&!isNaN(n)?this.datePipe.transform(n,Tm):"";return s?[s]:[]}getFieldData(e){let t=[];if(this.entity&&e)switch(e.uri){case he.STATUS:{t=[this.entity.status];break}case he.ELEMENT_TYPE:{t=[this.elementType?.name];break}default:{let n=this.entity.fieldValues?.find(r=>r.fieldUri===e?.uri)?.value;n&&(t=wc(n,e,this.locale));break}}return t}getElementDetailUrl(){this.elementDetailUrl=this.generateUrlService.getElementDetailUrl(this.entity?.uri,this.currentSpaceUri)}};i.\u0275fac=function(t){return new(t||i)(c(ge),c(oe),c(vn),c(Fr),c(K),c(Va))},i.\u0275cmp=D({type:i,selectors:[["explorer-card"]],inputs:{entity:"entity",explorerBoardViewChanges:"explorerBoardViewChanges",colorOptionMap:"colorOptionMap",fields:"fields"},features:[Ae],decls:2,vars:2,consts:[["elseTemplate",""],["labelText",""],["target","_blank",1,"open-in-new-tab",3,"click","href"],["class","card-wrapper",4,"ngIf"],[1,"card-wrapper"],[1,"card-color-strip"],[1,"card"],[1,"card-header"],[1,"title","label-xs-semibold-single"],[1,"card-content","title-sm"],[1,"card-footer"],[4,"ngFor","ngForOf"],[4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"label"],[1,"label",3,"fieldName","fieldValue"],["class","label-xs main-gray-light capitalize mr-1",4,"ngIf"],[1,"label-xs-semibold-single","number","capitalize"],[1,"label-xs","main-gray-light","capitalize","mr-1"],[1,"label-xs-semibold-single","h-option","capitalize"],[1,"label-xs-semibold-single","capitalize",3,"ngClass"]],template:function(t,n){t&1&&(f(0,"a",2),E("click",function(s){return s.preventDefault()}),M(1,Sm,10,7,"div",3),_()),t&2&&(d("href",n.elementDetailUrl,pn),g(),d("ngIf",n.elementType&&n.entity&&n.cardColor))},dependencies:[Oe,kt,ne,So,Jc],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}[_nghost-%COMP%]{width:100%;height:100%}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]{width:100%;height:100%;cursor:pointer;display:flex}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-start;padding:8px;gap:8px;width:calc(100% - 6px);max-height:235px;background:#fff;border:1px solid #e1e7ee;border-left:0;border-radius:0 6px 6px 0}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-color-strip[_ngcontent-%COMP%]{float:left;width:6px;border-radius:6px 0 0 6px}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{height:12px}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%], [_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;height:auto;width:100%;flex-wrap:wrap}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-header[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], [_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-footer[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{overflow:hidden;max-width:100%;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;word-break:break-all;width:100%;flex-basis:100%}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{text-transform:uppercase}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]   .card-content[_ngcontent-%COMP%]{gap:8px;color:#3e4d63;min-height:22px;word-break:break-word;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}[_nghost-%COMP%]   .card-wrapper[_ngcontent-%COMP%]:hover   .card[_ngcontent-%COMP%]{background-color:#e6f6fe}.label[_ngcontent-%COMP%]{display:flex;width:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:4px;margin-top:4px}.capitalize[_ngcontent-%COMP%]{text-transform:capitalize}
/*# sourceMappingURL=explorer-card.component-BBIX4KPZ.css.map */`]});let o=i;return o})();function Fm(o,i){if(o&1){let a=W();f(0,"explorer-card",4),E("click",function(){v(a);let t=m().card,n=m(3);return P(n.openEntityDetails(t))}),_()}if(o&2){let a=m().card,e=m(3);d("entity",a)("explorerBoardViewChanges",e.explorerBoardViewChanges)("colorOptionMap",e.colorOptionMap)("fields",e.fields)}}function Im(o,i){if(o&1&&M(0,Fm,1,4,"explorer-card",3),o&2){let a=i.card,e=i.collapsed;d("ngIf",a&&!e)}}function Um(o,i){if(o&1){let a=W();f(0,"board-table",2),E("onItemDropped",function(t){v(a);let n=m(2);return P(n.elementDragAndDropped(t))}),M(1,Im,1,1,"ng-template",null,0,ce),_()}if(o&2){let a=m(2);d("boardData",a.boardData)}}function Rm(o,i){if(o&1){let a=W();f(0,"explorer-no-search-results",5),E("onResetFilter",function(){v(a);let t=m(2);return P(t.resetFilter())}),_()}}function Am(o,i){if(o&1&&M(0,Um,3,1,"board-table",1)(1,Rm,1,0),o&2){let a=m();bt(0,a.boardData&&a.visibleEntityInBoardCount>0?0:1)}}function Lm(o,i){o&1&&A(0,"ui-loader")}var sr=200,Zn=5e3,Zc=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h,C,O,S){this.filterService=e,this.userLookupService=t,this.entityConfigHelperService=n,this.logger=r,this.stackedViewService=s,this.destroyRef=l,this.toastNotificationsService=p,this.translate=h,this.entityService=C,this.permissionService=O,this.store=S,this.elementCount=new q,this.discardChanges=new q,this.visibleEntityInBoardCount=0,this.fieldOptionsMapper={},this.isLoading=!0,this.boardItemsMapper={},this.subscriptions=new ei,this.isInShowroomSpace=!1,this.elementTypePermissionMapper={}}ngOnChanges(e){if(e.explorerBoardViewChanges?.currentValue){if(this.explorerBoardView=this.explorerBoardViewChanges?.view,this.explorerBoardViewChanges?.configTypeChanges===de.LABEL||this.explorerBoardViewChanges?.configTypeChanges===de.COLOR)return;this.prepareDataAndBuildBoard()}}ngOnInit(){this.listenToSpaceChange(),this.listenToEntityDelete(),this.listenToEntityUpdate()}ngOnDestroy(){this.subscriptions.unsubscribe(),this.tooManyElementsToastId&&(this.toastNotificationsService.closeToast(this.tooManyElementsToastId),this.tooManyElementsToastId=null)}elementDragAndDropped(e){return b(this,null,function*(){if(e?.sourceColumnUri===ht||e?.targetColumnUri===ht){this.restoreOriginalBoard(),this.toastNotificationsService.showToast({content:this.translate.instant("board-ng.errors.actionNotAllowed"),type:ie.ALERT,duration:Zn});return}let t=this.entities.find(l=>l.uri===e.itemUri);if(!t)return;let n=yield this.userHasPermissionToEditForElementType(t.elementTypeUri);if(this.isInShowroomSpace||!n){this.restoreOriginalBoard(),this.toastNotificationsService.showToast({content:this.translate.instant("board-ng.errors.invalidPermissionDrop"),type:ie.ALERT,duration:Zn});return}if(!this.fields)return;let r=this.fields?.find(l=>l.uri===this.explorerBoardView?.column);if(!r)return;if(r?.fieldTypeUri===tn){this.restoreOriginalBoard(),this.toastNotificationsService.showToast({content:this.translate.instant("board-ng.errors.actionNotAllowed"),type:ie.ALERT,duration:Zn});return}let s=Bc(r,t,e.targetColumnUri,this.fields);if(!s){this.restoreOriginalBoard(),this.toastNotificationsService.showToast({content:this.translate.instant("board-ng.errors.actionNotAllowed"),type:ie.ALERT,duration:Zn});return}this.updateElement(s)})}prepareDataAndBuildBoard(){return b(this,null,function*(){this.boardData=void 0,this.isLoading=!0;try{yield this.fetchEntities(),yield this.buildBoard()}catch{this.isLoading=!1}this.addEntitiesToSpecificBoardCell(),this.showHideEmptySwimlanes(),this.isLoading=!1})}fetchEntities(e){return b(this,null,function*(){return new Promise(t=>{if(!this.explorerBoardView){t();return}let n=this.explorerBoardView.filter;$(this.store.select(Q.selectCurrentSpaceUri).pipe(H())).then(r=>{this.filterService.getFilteredEntities(n,sr,r,"network-only",!0).pipe(R(this.destroyRef)).subscribe({next:s=>b(this,null,function*(){this.entities=s,e||this.checkIfResultHasBeenLimited(this.entities),t()}),error:s=>{this.entities=[],this.elementCount.emit(0),this.logger.warn("ExplorerBoardTableComponent:fetchEntities - Unable to fetch the entities",{error:s}),t()}})})})})}buildBoard(){return b(this,null,function*(){this.boardItemsMapper={};let e=yield this.getSwimlaneOptions(),t=yield this.getColumnOptions();this.explorerBoardView?.unassigned&&(e=[...e,$o],t=[...t,$o]),this.boardData=this.buildBoardSkeleton(e,t,this.boardItemsMapper)})}buildBoardSkeleton(e,t,n){let r={boardUri:"board",swimlanes:[]};for(let s of e){let l={swimlaneUri:s.uri,swimlaneTitle:s.label,columns:[]};for(let p of t){let h=s.uri+"_"+p.uri;n[h]=[];let C={columnUri:p.uri,columnTitle:p.label,boardItems:n[h]};l.columns.push(C)}r.swimlanes.push(l)}return r}getSwimlaneOptions(){return b(this,null,function*(){return this.provideOptionsFromFields(this.explorerBoardView?.swimlane||"")})}getColumnOptions(){return b(this,null,function*(){return this.provideOptionsFromFields(this.explorerBoardView?.column||"")})}provideOptionsFromFields(e){return b(this,null,function*(){if(this.fieldOptionsMapper[e])return this.fieldOptionsMapper[e];let t=this.fields?.find(r=>r.uri===e),n=[];switch(t?.fieldTypeUri){case L.OPTIONS:n=An(t);break;case L.USER:n=yield this.getUserOptions(this.entities,t.uri);break;case L.WORKFLOW_STATUS:n=Qc();break;case tn:n=yield this.getElementTypeOptions();break;case L.WORKFLOW_DEFINITION:n=qc(this.entities,this.fields||[]);break}return this.fieldOptionsMapper[e]=n,n})}getUserOptions(e,t){return b(this,null,function*(){let n=e.map(s=>s.fieldValues.find(h=>h.fieldUri===t)?.value[0]||"");return n=n.filter(s=>!!s),n=Array.from(new Set(n)),(yield this.userLookupService.getUsers({filterParams:{userUri:n}},{level:vi.Workspace})).map(s=>({uri:s.userUri,label:`${s.firstName} ${s.lastName}`}))})}getElementTypeOptions(){return b(this,null,function*(){let e=yield $(this.store.select(Q.selectCurrentSpaceUri).pipe(H()));return(yield this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(e)).filter(n=>n.uri.indexOf("@")===-1).map(n=>({uri:n.uri,label:n.name}))})}addEntitiesToSpecificBoardCell(){let e=0,t=this.fields?.find(r=>r.uri===this.explorerBoardView?.swimlane),n=this.fields?.find(r=>r.uri===this.explorerBoardView?.column);this.entities.forEach(r=>{let s=$c(r,t,n,this.fields||[]);this.boardItemsMapper[s]&&(this.boardItemsMapper[s].push(r),e=e+1)}),this.visibleEntityInBoardCount=e,this.elementCount.emit(e)}listenToSpaceChange(){this.store.select(Q.selectCurrentSpace).pipe(H(),R(this.destroyRef)).subscribe(e=>{this.fieldOptionsMapper={},this.elementTypePermissionMapper={},this.isLoading=!0,this.checkIfUserIsInShowroomSpace(e)})}showHideEmptySwimlanes(){let e=this.explorerBoardView?.emptySwimlanes||!1;if(!this.boardData||e)return;let t=this.boardData.swimlanes;t?.length&&(t=t.filter(n=>n.columns.reduce((s,l)=>s.concat(...l.boardItems),[]).length)),this.boardData=I(w({},this.boardData),{swimlanes:t}),this.originalBoardData=JSON.parse(JSON.stringify(this.boardData))}openEntityDetails(e){e&&this.stackedViewService.openView({uri:e.uri,type:Ct.ENTITY})}resetFilter(){this.discardChanges.emit()}checkIfResultHasBeenLimited(e){if(this.tooManyElementsToastId&&(this.toastNotificationsService.closeToast(this.tooManyElementsToastId),this.tooManyElementsToastId=null),e.length===sr){let t="explorer-ng.filteredElementsAreMoreThanDisplayed";this.tooManyElementsToastId=this.toastNotificationsService.showToast({content:this.translate.instant(`${t}.message`,{maximum:sr,type:this.translate.instant(`${t}.elements`)}),type:ie.ALERT})}}listenToEntityDelete(){this.subscriptions.add(this.entityService.onEntityDeleted(e=>b(this,null,function*(){this.entities=this.entities.filter(t=>t.uri!==e.entityUri),this.fieldOptionsMapper={},yield this.buildBoard(),this.addEntitiesToSpecificBoardCell(),this.showHideEmptySwimlanes()})))}listenToEntityUpdate(){this.subscriptions.add(this.entityService.onEntityUpdated(e=>b(this,null,function*(){yield this.fetchEntities(!0),this.fieldOptionsMapper={},yield this.buildBoard(),this.addEntitiesToSpecificBoardCell(),this.showHideEmptySwimlanes(),!!this.entities.find(n=>n.uri===e.uri)||this.toastNotificationsService.showToast({content:this.translate.instant("board-ng.errors.elementHidden"),type:ie.ALERT,duration:Zn})})))}checkIfUserIsInShowroomSpace(e){return b(this,null,function*(){this.isInShowroomSpace=Ui(e)})}restoreOriginalBoard(){this.boardData=JSON.parse(JSON.stringify(this.originalBoardData))}updateElement(e){this.entityService.updateEntity(e).subscribe({next:t=>{if(t?.data?.updateEntity?.hasViolations){this.restoreOriginalBoard();return}},error:()=>{this.restoreOriginalBoard()}})}userHasPermissionToEditForElementType(e){return b(this,null,function*(){if(Object.prototype.hasOwnProperty.call(this.elementTypePermissionMapper,e))return this.elementTypePermissionMapper[e];let t=yield $(this.permissionService.userHasElementTypePermission(x.EDIT_ALL_ELEMENTS,e));return this.elementTypePermissionMapper[e]=t,t})}};i.\u0275fac=function(t){return new(t||i)(c(Ol),c(Mi),c(oe),c(Se),c(ft),c(ge),c(Ke),c(Y),c(Ie),c(Te),c(K))},i.\u0275cmp=D({type:i,selectors:[["explorer-board-table"]],inputs:{explorerBoardViewChanges:"explorerBoardViewChanges",fields:"fields",colorOptionMap:"colorOptionMap"},outputs:{elementCount:"elementCount",discardChanges:"discardChanges"},features:[Ae],decls:2,vars:1,consts:[["cardComponent",""],[3,"boardData"],[3,"onItemDropped","boardData"],[3,"entity","explorerBoardViewChanges","colorOptionMap","fields","click",4,"ngIf"],[3,"click","entity","explorerBoardViewChanges","colorOptionMap","fields"],[3,"onResetFilter"]],template:function(t,n){t&1&&M(0,Am,2,1)(1,Lm,1,0),t&2&&bt(0,n.isLoading?1:0)},dependencies:[ne,xl,bi,Vl,Xc],styles:[`[_nghost-%COMP%]     explorer-no-search-results{display:flex;align-items:center;width:100%;height:100%}[_nghost-%COMP%]     explorer-no-search-results ui-empty-content{margin-top:0}
/*# sourceMappingURL=explorer-board-table.component-6QA26TIZ.css.map */`]});let o=i;return o})();var Vm=o=>({background:o});function Dm(o,i){if(o&1&&(A(0,"div",11),f(1,"span",12),G(2),_()),o&2){let a=i.$implicit;d("ngStyle",ae(2,Vm,a==null?null:a.color)),g(2),De(a==null?null:a.label)}}function Bm(o,i){if(o&1){let a=W();f(0,"ui-options-box",10),E("onToggle",function(){v(a);let t=m();return P(t.changeShowLegendStatus(!1))}),M(1,Dm,3,4,"ng-template",null,0,ce),_()}if(o&2){let a=m();d("title",a.colorLegend==null?null:a.colorLegend.title)("data",a.colorLegend==null?null:a.colorLegend.legends)("canClose",!0)("horizontal",!0)("draggable",!0)}}var ep=(()=>{let i=class i extends Oc{constructor(e,t,n,r){super(e,t,r),this.explorerEcService=e,this.entityConfigService=t,this.presetQuickAccessHelper=n,this.store=r,this.activePage=_e.BOARD,this.hasUnsavedChanges=!1,this.showLegend=!1,this.totalElement=0,this.isPresetLoading=!1}ngOnInit(){this.listenToBoardViewChanges()}onFilterSidebarStateChanges(e){this.filterSidebarState=e}onFilterChanged(e){return b(this,null,function*(){this.selectedFilter&&this.setFilter(e)})}onSelectedPresetChanged(e){this.presetQuickAccessHelper.updateIsToolIsEditable(e.editable,_e.BOARD),super.setBoardView(e.value)}listenToBoardViewChanges(){this.onBoardViewChanges.subscribe({next:e=>{this.selectedFilter=this.selectedBoardViewConfiguration.filter,this.listenToFilterChanges(),this.hasUnsavedChanges=e.isViewDirty,this.selectedBoardView=this.selectedBoardViewConfiguration,this.explorerBoardViewChanges={view:this.selectedBoardView,configTypeChanges:e.configTypeChanges}}})}onPresetLoading(e){this.isPresetLoading=e}onDiscardChanges(){this.discardChanges()}onBoardConfigChange(e){switch(e?.uri){case je.COLUMNS:{this.setColumn(e?.optionSelected?.uri);break}case je.SWIMLANES:{this.setSwimlane(e?.optionSelected?.uri);break}case je.COLOR:{this.setColor(e?.optionSelected?.uri);break}case je.SHOW_EMPTY_SWIMLANES:{this.setEmptySwimlanesFlag(e?.selected||!1);break}case je.SHOW_UNASSIGNED:{this.setUnassignedFlag(e?.selected||!1);break}}}onCardConfigChange(e){e?.length&&this.setCardLabels(e)}onColorLegendChange(e){this.colorLegend=e}changeShowLegendStatus(e){this.showLegend=e}listenToFilterChanges(){this.filterSubscription&&this.filterSubscription.unsubscribe(),this.filterSubscription=this.selectedFilter.onChanged(()=>{this.setFilter(this.selectedFilter)})}onOptionColorMapChange(e){this.colorOptionMap=e}getTotalElement(e){this.totalElement=e}};i.\u0275fac=function(t){return new(t||i)(c(Fi),c(oe),c(ts),c(K))},i.\u0275cmp=D({type:i,selectors:[["explorer-board-wrapper"]],features:[Or],decls:9,vars:15,consts:[["optionsList",""],[1,"board-wrapper"],[3,"filterChanges","filterSidebarStateChanges","filter","activePage"],[1,"board-view-container"],[1,"board-header-wrapper","flex","p-3","mx-4"],[1,"w-full",3,"onPresetSelected","presetLoading","onDiscard","boardConfigChange","cardOptionSelectionChange","colorLegendChange","showLegendChange","optionColorMapChange","isDirty","selectedBoardView","boardConfigFields","cardConfigFields","colorConfigFields","showLegend","totalElement"],[1,"explorer-board"],[1,"board-container"],[3,"discardChanges","elementCount","fields","colorOptionMap","explorerBoardViewChanges"],["class","color-legends-popup",3,"title","data","canClose","horizontal","draggable","onToggle",4,"ngIf"],[1,"color-legends-popup",3,"onToggle","title","data","canClose","horizontal","draggable"],[1,"circle-color",3,"ngStyle"],[1,"color-legend-label","label-xs-single"]],template:function(t,n){t&1&&(f(0,"div",1)(1,"explorer-base-filter",2),E("filterChanges",function(s){return n.onFilterChanged(s)})("filterSidebarStateChanges",function(s){return n.onFilterSidebarStateChanges(s)}),f(2,"div",3)(3,"div",4)(4,"explorer-board-header",5),E("onPresetSelected",function(s){return n.onSelectedPresetChanged(s)})("presetLoading",function(s){return n.onPresetLoading(s)})("onDiscard",function(){return n.onDiscardChanges()})("boardConfigChange",function(s){return n.onBoardConfigChange(s)})("cardOptionSelectionChange",function(s){return n.onCardConfigChange(s)})("colorLegendChange",function(s){return n.onColorLegendChange(s)})("showLegendChange",function(s){return n.changeShowLegendStatus(s)})("optionColorMapChange",function(s){return n.onOptionColorMapChange(s)}),_()(),f(5,"div",6)(6,"div",7)(7,"explorer-board-table",8),E("discardChanges",function(){return n.onDiscardChanges()})("elementCount",function(s){return n.getTotalElement(s)}),_()(),M(8,Bm,3,5,"ui-options-box",9),_()()()()),t&2&&(le("filter-open",n.filterSidebarState),g(),d("filter",n.selectedFilter)("activePage",n.activePage),g(3),d("isDirty",n.hasUnsavedChanges)("selectedBoardView",n.selectedBoardViewConfiguration)("boardConfigFields",n.allowedBoardConfigFields)("cardConfigFields",n.allowedCardConfigFields)("colorConfigFields",n.allowedColorConfigFields)("showLegend",n.showLegend)("totalElement",n.totalElement),g(3),d("fields",n.allFields)("colorOptionMap",n.colorOptionMap)("explorerBoardViewChanges",n.explorerBoardViewChanges),g(),d("ngIf",n.showLegend))},dependencies:[ne,mn,Il,yl,Dc,Zc],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}.text-xs[_ngcontent-%COMP%], .label-xs-semibold-single[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], [_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal .options-box-title-horizontal, .label-xs-single[_ngcontent-%COMP%], .label-xs[_ngcontent-%COMP%]{font-size:.75rem}.text-sm[_ngcontent-%COMP%], .label-sm-semibold-single[_ngcontent-%COMP%], .label-sm-semibold[_ngcontent-%COMP%], .label-sm-single[_ngcontent-%COMP%], .label-sm[_ngcontent-%COMP%], .body-text-sm[_ngcontent-%COMP%], .title-sm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-size:.875rem}.text-base[_ngcontent-%COMP%], .label-base-single[_ngcontent-%COMP%], .label-base[_ngcontent-%COMP%], .body-text-base[_ngcontent-%COMP%], .title-base[_ngcontent-%COMP%], h3[_ngcontent-%COMP%]{font-size:1rem}.text-lg[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{font-size:1.125rem}.text-xl[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%]{font-size:1.5rem}.text-xxl[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%]{font-size:1.875rem}.font-normal[_ngcontent-%COMP%], .label-sm-single[_ngcontent-%COMP%], .label-sm[_ngcontent-%COMP%], .label-xs-single[_ngcontent-%COMP%], .label-xs[_ngcontent-%COMP%], .body-text-base[_ngcontent-%COMP%], .body-text-sm[_ngcontent-%COMP%]{font-weight:400}.font-semibold[_ngcontent-%COMP%], .label-base-single[_ngcontent-%COMP%], .label-base[_ngcontent-%COMP%], .label-sm-semibold-single[_ngcontent-%COMP%], .label-sm-semibold[_ngcontent-%COMP%], .label-xs-semibold-single[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], [_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal .options-box-title-horizontal, .title-xxl[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], .title-base[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], .title-sm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:600}.font-bold[_ngcontent-%COMP%]{font-weight:700}.leading-3[_ngcontent-%COMP%], .label-base-single[_ngcontent-%COMP%], .label-sm-semibold-single[_ngcontent-%COMP%], .label-sm-single[_ngcontent-%COMP%], .label-xs-semibold-single[_ngcontent-%COMP%], .label-xs-single[_ngcontent-%COMP%]{line-height:1}.leading-4[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%]{line-height:1.2}.leading-5[_ngcontent-%COMP%], .label-base[_ngcontent-%COMP%], .label-sm-semibold[_ngcontent-%COMP%], .label-sm[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], [_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal .options-box-title-horizontal, .label-xs[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], .title-base[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], .title-sm[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{line-height:1.35}.leading-6[_ngcontent-%COMP%], .body-text-base[_ngcontent-%COMP%], .body-text-sm[_ngcontent-%COMP%]{line-height:1.5}.tracking-neutral[_ngcontent-%COMP%], .title-xxl[_ngcontent-%COMP%]{letter-spacing:0}.tracking-tight[_ngcontent-%COMP%], .title-lg[_ngcontent-%COMP%], h2[_ngcontent-%COMP%]{letter-spacing:-.1px}.tracking-tighter[_ngcontent-%COMP%], .title-xl[_ngcontent-%COMP%], h1[_ngcontent-%COMP%]{letter-spacing:-.35px}[_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal{bottom:8px;left:8px;padding:12px;flex-direction:column;display:inline-block!important}[_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal .options-box-title-horizontal{align-self:start;margin-bottom:12px}[_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal .icon-close{padding:4px}[_nghost-%COMP%]     ui-options-box.color-legends-popup .options-box-container-horizontal .options-box-detail-horizontal{display:flex;flex-direction:row;max-width:unset}[_nghost-%COMP%]   .board-view-container[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column}[_nghost-%COMP%]   .filter-open[_ngcontent-%COMP%]{width:calc(100% - 400px)}[_nghost-%COMP%]   .explorer-board[_ngcontent-%COMP%]{width:calc(100% - 48px);transition:all .25s;overflow:hidden;margin:0 auto;padding:0 8px 0 24px;display:flex;position:relative;max-width:none}[_nghost-%COMP%]   .board-header-wrapper[_ngcontent-%COMP%]{padding:24px}[_nghost-%COMP%]   .color-legends-popup[_ngcontent-%COMP%]{position:absolute;bottom:20px;left:24px;z-index:3}[_nghost-%COMP%]   .circle-color[_ngcontent-%COMP%]{margin-right:8px!important;width:12px;height:12px;border-radius:100%;margin:0 auto 5px}[_nghost-%COMP%]   .color-legend-label[_ngcontent-%COMP%]{margin-top:2px}[_nghost-%COMP%]   .legend-label[_ngcontent-%COMP%]{margin-top:3px}.board-container[_ngcontent-%COMP%]{margin-right:0;margin-bottom:8px;width:100%}
/*# sourceMappingURL=explorer-board-wrapper.component-7ZKV3AZN.css.map */`]});let o=i;return o})();var tp=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["explorer-board"]],decls:1,vars:0,template:function(t,n){t&1&&A(0,"explorer-board-wrapper")},dependencies:[ep]});let o=i;return o})();var np=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var Ln=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var op={};var lr={widgets:{dateFormater:{dateLabels:{today:"Today",daysAgo:"days ago",dayAgo:"day ago",daysLeft:"days left",dayLeft:"day left"}}}};var rp=(()=>{let i=class i{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:lr,de:op}[t]||lr))}};i.\u0275fac=function(t){return new(t||i)(u(Ee))},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,Je,Ln,ue]});let o=i;return o})();var ap={"board-ng":{}};var cr={"board-ng":{labels:{elementType:"Element Type",entityType:"Entity Type",columns:"Columns",swimlanes:"Swimlanes",boardDropdownLabel:"Board",showUnassigned:"Show Unassigned",showEmptySwimlanes:"Show Empty Swimlanes",topRight:"Top-right",bottomRight:"Bottom-right",bottomLeft:"Bottom-left",cardSettings:"Card Settings",cardColor:"Card Color",cards:"Cards",workflowPhase:"Workflow Phase",fieldsAndRatings:"FIELDS & RATINGS",general:"GENERAL",myBoardsGroupLabel:"Private Boards",label:"Label {{ labelNumber }}",viewName:"Board"},placeholders:{elementType:"All",columns:"Publish Status",swimlanes:"Element Type"},defaultSettingsOptions:{elementType:"Element Type",status:"Status"},errors:{actionNotAllowed:"The element does not meet the conditions to move to that column.",timeout:"The server is taking long to respond. Try refreshing the page.",elementHidden:"Element is no longer visible on board because of applied filters.",invalidDropDefault:"Invalid Drop. Something went wrong.",invalidDrop:"Placement in this column is not allowed. Complete all tasks to move card to next phase.",invalidPermissionDrop:"You don\u2019t have permission to perform this action."},cardPlaceholders:{dateLabels:{today:"Today",daysAgo:"days ago",dayAgo:"day ago",daysLeft:"days left",dayLeft:"day left"}},sharedPrivateBoard:"Shared private Board",privateBoardTooltip:"Only accessible via link. Save as new to add it to your Board.",invalidColorOptionTooltip:"The selected option is not supported for Card Color",unknownUser:"Anonymous User",presets:{save:"Save as New",delete:"Delete",edit:"Edit",lockTooltip:"No edit permission to update this view. Save as new to make changes.",defaultLockTooltip:"Default view cannot be changed. Save as new to make changes.",placeholder:"Find Boards",publicList:"Public Boards",privateList:"Private Boards"},modal:{save:"Save Board",edit:"Edit Board",name:"Board Name",deleteMessage:"Do you really want to delete this Board?",delete:"Delete Board",deleteConfirmOkBtnText:"Delete",deleteConfirmCancelBtnText:"Cancel",deleteSuccessMessage:"Board deleted.",deleteFailedMessage:"Failed to delete Board. Please try again or contact support.",noPermissionError:"You don't have permission to edit some parts of this Board",onlyPrivatePresetPermission:"You do not have the permission to create a Board for everyone. Contact your admin about your roles and permissions.",onlyPublicPresetPermission:"You do not have the permission to create a private Board. Contact your admin about your roles and permissions.",permissionToChangeVisibility:"You cannot set the public Board to private because you didn't create it."}}};var Oy=(()=>{let i=class i{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:cr,de:ap}[t]||cr))}};i.\u0275fac=function(t){return new(t||i)(u(Ee))},i.\u0275mod=k({type:i}),i.\u0275inj=T({providers:[{provide:un,useClass:hn,multi:!0},Y,wo],imports:[F,ue,di,io,ro,oo,zt,Ht,Nt,Ne,mt,zi,Pn,Dt,$e,ut,rp,Ln,ct,Vt,It,wl,Zi,Je,Bl,np]});let o=i;return o})();var Wm=["*"],sp=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["ui-instant-search"]],ngContentSelectors:Wm,decls:2,vars:0,consts:[[1,"table-input-wrapper"]],template:function(t,n){t&1&&(oi(),f(0,"div",0),ri(1),_())},styles:[`[_nghost-%COMP%]{display:inline-block}.table-input-wrapper[_ngcontent-%COMP%]{position:relative;margin-bottom:20px}.table-input-wrapper[_ngcontent-%COMP%]:after{content:"\\e81d";font-family:global-icons-font;display:block;font-size:26px;color:#627588;left:15px;margin-top:2px;opacity:.8;position:absolute;bottom:auto;top:50%;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translateY(-50%)}  .table-input,   .search-input{border:1px solid #d5dbe1;height:40px;border-radius:40px;padding:10px 15px 10px 40px;color:#3e4d63;width:100%;text-align:left}  .table-input:focus,   .search-input:focus{outline:none;transition:box-shadow .5s,border-color .25s ease-in-out;border-color:#098dcd;box-shadow:none}  .input-small{transform:scale(.85)}
/*# sourceMappingURL=instant-search.component-B4EB4ITZ.css.map */`]});let o=i;return o})();var $m=o=>({selected:o});function qm(o,i){if(o&1&&(f(0,"div",13),G(1),_()),o&2){let a=m().index,e=m(2);g(),Z(" ",e.groupLabels[a]," ")}}function Qm(o,i){if(o&1){let a=W();f(0,"div",14)(1,"ui-checkbox",15)(2,"input",16),Xt("ngModelChange",function(t){let n=v(a).$implicit,r=m(3);return Jt(r.checkboxesFilter[n.uri],t)||(r.checkboxesFilter[n.uri]=t),P(t)}),E("ngModelChange",function(){v(a);let t=m(3);return P(t.onChangeEmitter("type"))}),_()(),f(3,"span",17),G(4),_()()}if(o&2){let a=i.$implicit,e=m(3);g(2),Kt("ngModel",e.checkboxesFilter[a.uri]),g(2),Z(" ",a.label," ")}}function Ym(o,i){if(o&1&&(ee(0),f(1,"div",10),M(2,qm,2,1,"div",11)(3,Qm,5,2,"div",12),_(),te()),o&2){let a=i.$implicit,e=i.index,t=m(2);g(2),d("ngIf",t.groupLabels[e]),g(),d("ngForOf",a)}}function Km(o,i){if(o&1){let a=W();f(0,"div",6)(1,"div",7),E("click",function(){v(a);let t=m();return P(t.showFilters())}),A(2,"span",8),_(),M(3,Ym,4,2,"ng-container",9),_()}if(o&2){let a=m();g(3),d("ngForOf",a.groupCheckboxes)}}var Ry=(()=>{let i=class i{constructor(){this.onChange=new q}onChangeEmitter(e){this.onChange.emit(e)}showFilters(){this.toggleFilters=!this.toggleFilters}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["explorer-related-content-filter"]],inputs:{filter:"filter",groupCheckboxes:"groupCheckboxes",groupLabels:"groupLabels",checkboxesFilter:"checkboxesFilter"},outputs:{onChange:"onChange"},decls:7,vars:8,consts:[[1,"filter-btn-wrapper"],["coreEvent","Lbu7l4tvFHQSs8T",1,"filter-btn",3,"click"],[1,"icon-filters",3,"ngClass","title"],[1,"search-wrap"],["type","text","placeholder","Search",1,"search-input",3,"ngModelChange","ngModel"],["class","filters-wrapper",4,"ngIf"],[1,"filters-wrapper"],["coreEvent","IVRzstj9ztRxwAc",1,"close-btn",3,"click"],[1,"icon-close"],[4,"ngFor","ngForOf"],[1,"entity-type-filters","checkboxes-wrap"],["class","filter-label",4,"ngIf"],["class","entity-type-filter checkbox-wrap",4,"ngFor","ngForOf"],[1,"filter-label"],[1,"entity-type-filter","checkbox-wrap"],[1,"checkbox","line"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"label-checkbox"]],template:function(t,n){t&1&&(f(0,"div",0)(1,"div",1),E("click",function(){return n.showFilters()}),A(2,"span",2),N(3,"translate"),_(),f(4,"ui-instant-search",3)(5,"input",4),Xt("ngModelChange",function(s){return Jt(n.filter.label,s)||(n.filter.label=s),s}),E("ngModelChange",function(){return n.onChangeEmitter("label")}),_()()(),M(6,Km,4,1,"div",5)),t&2&&(g(2),Et("title",V(3,4,"explorer-ng.relationWidget.filters")),d("ngClass",ae(6,$m,n.toggleFilters)),g(3),Kt("ngModel",n.filter.label),g(),d("ngIf",n.toggleFilters))},dependencies:[Oe,kt,ne,_i,Nr,Lr,Vr,Dr,sp,Sl,Le],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}[_nghost-%COMP%]{display:block;margin-top:25px;position:absolute;top:0;left:0;width:100%}.filters-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:10px;justify-content:space-between;flex-wrap:wrap;background:#fff;box-shadow:0 2px 6px #bdc8d4cc;border-radius:6px;position:absolute;width:calc(100% - 20px);height:auto;padding:15px 15px 7px;top:50px;right:auto;left:50%;-webkit-transform:translate(-50%,0);-ms-transform:translate(-50%,0);transform:translate(-50%);z-index:3}.checkboxes-wrap[_ngcontent-%COMP%]{display:block;margin-bottom:15px}.checkboxes-wrap[_ngcontent-%COMP%]:first-child{margin-right:10px}.checkbox-wrap[_ngcontent-%COMP%]{display:inline-block;color:#627588;font-size:15px;margin:5px}.search-wrap[_ngcontent-%COMP%]{display:inline-block;padding-left:15px;width:calc(100% - 70px)}.search-input[_ngcontent-%COMP%]{width:100%}.filter-label[_ngcontent-%COMP%]{color:#627588;font-weight:600;margin-bottom:10px;font-size:14px}.label-checkbox[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;margin-left:7px}.filter-btn[_ngcontent-%COMP%]{color:#627588;display:inline-block;font-size:24px;width:30px;height:30px;top:7px;text-align:center;position:relative;cursor:pointer}.filter-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .filter-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:static;min-width:20px}.filter-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before, .filter-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.filter-btn[_ngcontent-%COMP%]:before{content:"";display:block;width:38px;height:38px;border-radius:100%;background:#098dcd1a;position:absolute;left:50%;top:50%;opacity:0;transform:translate(-50%,-50%) scale(0);transform-origin:center;transition:all .2s ease-in-out}.filter-btn[_ngcontent-%COMP%]:hover:before{opacity:1;transform:translate(-50%,-50%) scale(1)}.filter-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);line-height:30px}.filter-btn[_ngcontent-%COMP%]   span.selected[_ngcontent-%COMP%]{color:#098dcd}.filter-btn[_ngcontent-%COMP%]:last-child{margin-left:6px}.icon-filters[_ngcontent-%COMP%]{font-size:22px}.close-btn[_ngcontent-%COMP%]{color:#627588;width:30px;height:30px;text-align:center;position:relative;position:absolute;top:7px;right:10px;font-size:14px;cursor:pointer}.close-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .close-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:static;min-width:20px}.close-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before, .close-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]:before{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.close-btn[_ngcontent-%COMP%]:before{content:"";display:block;width:38px;height:38px;border-radius:100%;background:#098dcd1a;position:absolute;left:50%;top:50%;opacity:0;transform:translate(-50%,-50%) scale(0);transform-origin:center;transition:all .2s ease-in-out}.close-btn[_ngcontent-%COMP%]:hover:before{opacity:1;transform:translate(-50%,-50%) scale(1)}
/*# sourceMappingURL=related-content-filter.component-3DJZ2AFX.css.map */`]});let o=i;return o})();var lp=(()=>{let i=class i{constructor(e,t,n){this.fileService=e,this.toastNotificationsService=t,this.translate=n}uploadFile(e,t){return new Promise((n,r)=>b(this,null,function*(){let s={},l=new fa(s),p=new U,h=p.asObservable();t.subscribe(S=>{S.event==="cancel"&&(p.next({type:"cancelAll"}),r("Cancelled file upload"))});let C=this.fileService.generateRandomFileUri(),O=l.serviceEvents.subscribe(S=>{switch(S.type){case"addedToQueue":this.handleFileUpload(C,S.file,p);break;case"done":p.complete(),O.unsubscribe(),this.fileService.pollForFileStatus(C).subscribe(J=>{J.status==="COMPLETED"&&(window.RTE_imageMap=typeof RTE_imageMap<"u"?RTE_imageMap:{},RTE_imageMap[C]=this.getImageUrl(C),n(C))});break;case"rejected":p.complete(),O.unsubscribe(),this.toastNotificationsService.showToast({content:this.translate.instant("explorer-ng.imageUploader.error.genericError"),type:ie.ERROR,duration:5e3})}});l.initInputEvents(h),l.handleFiles([e])}))}getImageUrl(e){return this.fileService.getCompleteFileUrl(e)}handleFileUpload(e,t,n){this.fileService.getS3BucketUrl(t.name,e,ha.SPACE).subscribe(r=>{let s=this.fileService.getUploadInputData(r.url,t);n.next(s)})}};i.\u0275fac=function(t){return new(t||i)(u(Pi),u(Ke),u(Y))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var Eo=(()=>{let i=class i{static forRoot(){return{ngModule:i,providers:[{provide:ia,useClass:lp}]}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,fe,Cn]});let o=i;return o})();var To=(()=>{let i=class i{static forRoot(){return{ngModule:i,providers:[rl]}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var ko=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,xn]});let o=i;return o})();var Fo=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var Io=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var cp={"explorer-ng":{}};var Nn={"explorer-ng":{nothingToShow:"No Elements to Show",noDataToShow:"No Data to Show",noAttachments:"No Attachments to Show",noResultsFound:"No Items Found",nothingToShowYet:"There\u2019s Nothing to Show Yet",showRelations:"Show Relations",relateContent:"Relate Content",addHyperlink:"Add a Hyperlink",addItem:"Add Item",getInspired:"Latest Highlights",getStartedPrefix:"There\u2019s nothing to show yet.",getStartedClickable:"Start adding relations",getStartedSuffix:"now to show highlighted elements here!",relevantElementsTooltip:"The 10 latest related elements of the following kind will automatically be shown here: {{types}}.",commentsWidget:{title:"Comments",totalComments:{one:"1 Comment",many:"{{count}} Comments"},commentPlaceholders:{default:"Add a comment. Type # to reference Explorer elements or @ for users.",userMentionDisabled:"Add a comment. Type # to reference Explorer elements."}},filteredElementsAreMoreThanDisplayed:{message:"Sorry, we can only show the first {{maximum}} {{type}} that match your filter. Please narrow down the results by applying more filters.",tags:"tags",elements:"Elements"},entity:{publishLabel:"Publish",createDraftLabel:"Create Draft",createLabel:"Create",createAnother:"Create Another",selectDynamicField:"Select",enterTitle:"Enter Title",enterSummary:"Enter Summary",selectEntity:"Select Element Type",delete:"Delete",openInNewTab:"Open in New Tab",toSubmitAndCreateAnother:"to publish the {{entityType}} and create another element.",openInStack:"Open in Stack",created:"Created:",updated:"Updated:",updatedAgoBy:"{{ago}} by {{name}}",type:"Element Type",typeAlias:"What is it you want to create?",typeHereToSearch:"Type here to search",uploadImage:"Upload Image",youCanAlsoHit:"You can also hit",createAsDraft:"Save as Draft",cancel:"Cancel",attachFiles:"Attach Files",deactivated:"Deactivated",createEnitityForm:{label:{label:"What do you want to call the {{ entityType }}?",placeholder:"Enter a title\u2026"},summary:{label:"Summarise what the {{ entityType }} is about!",placeholder:"Add a summary\u2026"},errors:{required:{label:"Please enter a title for the {{ entityType }}.",summary:"Please enter a summary for the {{ entityType }}.",default:"The field {{ field }} is required."}},createElement:"Create Content",footnoteFromFact:"We will add available meta information such as tags and links to the Element you are about to create."},similarElements:{similarityCheck:"Check for similarities",noSimilarity:{title:"No similarities found",description:"0 similar Elements found"},similarElementsFound:{title:"Similarities found",description:"{{ similarityCount }} similar Elements found. Check to avoid duplicates",singleDescription:"1 similar Element found. Check to avoid duplicates"},openElement:"Open in New Tab"},noCreateElementPermission:"You don't have permission to perform this action"},networkGraph:{showSecondLevel:"Show Second Level of Relations",resetView:"Reset View",distanceLevel1:"Distance Level 1",distanceLevel2:"Distance Level 2",sizeNodeLevel1:"Size Node Level 1",sizeNodeLevel2:"Size Node Level 2",invalidConfig:"Parts of the saved Network Graph view were invalid for this Workspace and were removed. You can edit and then save the view to resolve this issue."},relatedContent:{title:"Relations",noEntitiesRelated:"No Elements Related",showMore:"Show More",this:"This {{entityType}}",typeOfEntities:"Type of Elements",typeOfEntitiesToRelate:"Type of Elements to Relate",typeOfRelation:"Type of Relation",placeholderEntitySelector:"Relate an Element",placeholderTypeSelector:"Type of Relation",loadingMore:"Loading...",updatingData:"Updating Data...",loadingData:"Loading Data...",allTypesOption:"All",removeRelation:"Remove Relation",addRelation:"Add Relation",closeEntitySelector:"Close Selector",legend:"Legend",linkedElement:"Linked Element",selectElement:"Select an Element",highlightedRelations:"Highlighted Relations",addMore:"Add More",highlightedRelationLimit:"You can only add up to three Highlighted Relations",errorFetchingRelation:"Error occurred while fetching related entities."},highlightedWidget:{thereAreElements:"There are {{number}} highlighted elements related to this {{entityType}}",thereIsElement:"There is {{number}} highlighted element related to this {{entityType}}"},errors:{validationError:"Please fix the errors below",minCardinality:"{{label}} is required && must contain at least {{cardinalityValue}} value",maxCardinality:"Maximum {{cardinalityValue}} values are allowed for {{label}}",required:"The field {{label}} is required.",hyperlink:"Please input a valid {{label}}.",noInternetConnection:"It seems like you are not connected to the internet. You can still interact with some parts of the tool but changes cannot be saved. Please reconnect.",number:"Please make sure your input is greater than, or equal to {{minValue}} and smaller than or equal to {{maxValue}}.",numberMin:"Please make sure your input is greater than, or equal to {{minValue}}.",numberMax:"Please make sure your input is smaller than, or equal to {{maxValue}}.",numberRequired:"Please make sure you set a Value."},relationWidget:{configureVisualization:"Configure Visualization",filters:"Filters"},landingPage:{create:"Create {{ type }}",createDisabled:"To create content, switch to your own Workspace.",createModal:{createElement:"Create Content",footnoteFromSignal:"We will add meta information such as tags and the Signal's source to the Element you are about to create.",footnoteFromCluster:"We will add meta information such as tags and the Cluster's source to the Element you are about to create."},noEntities:{heading:"This Workspace is still empty",text:'<a class="link" href="https://go.itonics.io/add-shr" target="_blank">Import your first content from our collection of over 170 emerging technologies and trends</a>, or import your own content.',buttonLabelCreate:"Create Content",buttonLabelImport:"Import Content"},noSearchResults:{heading:"Sorry, we couldn't find any elements that match your filter.",text:"Maybe your search field was too narrow - please try searching for different terms or try removing some of the applied filters.",buttonLabelResetFilters:"Reset Filters"},importContent:{modalTitle:"Import Content",selectSpaceLabel:"From which Workspace do you want to import the content?",selectElementTypesLabel:"What element types do you want to import?",importButtonLabel:"Import Content ({{count}})",importButtonDisabledTooltip:"Choose Valid Import Options",selectElementTypesPlaceholder:"Select Workspace to import from.",optionGroupSelectable:"Selectable Workspaces",optionGroupIncompatable:"Incompatible Workspaces",noElementsTooltip:"There are no elements of type {{type}}.",compatableElementTypes:"{{count}} Compatible Element Types",incompatibleElementTypes:"{{count}} Incompatible Types",emptyWorkspaceTooltip:"This Workspace doesn\u2019t contain any compatible content.",typeWarning:"Not all element types can be imported based on your current settings.",typeError:"Element types cannot be imported based on your current settings.",editSettings:"Change Settings",all:"all",itemsCount:" ({{count}})",emptyTypeInSourceWorkspace:"The workspace you selected appears empty. Please select a workspace with content to start your copy operation.",noPermissionMessage:"In order to import {{type}} elements you need the permission to create {{type}} elements in {{targetWorkspace}}."},stats:{entities:"Elements",totalNumber:"Total",filtered:"Filtered"},deleteEntity:{titleModal:"Delete Element",message:"Do you really want to delete this element? Doing so will remove all relations to other elements as well as links to activities on roadmaps.",success:"Element deleted",confirm:"Delete",cancel:"Cancel"},bulkDeleteEntity:{titleModal:"Delete Elements",message:"Do you really want to delete these elements? Doing so will remove all relations to other elements as well as links to activities on roadmaps.",success:"These elements were successfully deleted.",confirm:"Delete",cancel:"Cancel"},bulkActionsPending:{inProgress:"Your bulk action is in progress and will be completed shortly!",timeout:"Timeout!",contactSupport:"Please contact ITONICS support.",fatalError:"There was an issue with copying the selected Element. Please contact ITONICS support.",deletingInProgress:"The {{amount}} elements you selected are currently being deleted!",deletingInProgressAll:"All elements you selected are currently being deleted!",deletingInProgressOne:"The element you selected is currently being deleted!",copying:"Copying...",deleting:"Deleting..."},cloneEntity:{titleModal:"Copy Elements",titleSingleCopyModal:"Copy Element",message:"Are you sure you want to copy the selected Elements to Workspace <em>{{toSpace}}</em>?",messageSingle:"Are you sure you want to copy the selected Element to Workspace <em>{{toSpace}}</em>?",messageSingleIncompatible:"Unable to copy element: The following element type is not compatible in the selected workspace based on the current settings.",messageBulkIncompatible:"Unable to copy elements: The following element types are not compatible in the selected workspace based on the current settings.",messageEditSettings:"You can make adjustments: ",changeSpaceSettings:"Change {{toSpace}} Settings",messageContactAdmin:"The workspace admin of {{toSpace}} can make necessary adjustments in settings.",messageIncompatible:"Not all elements you selected can be copied to Workspace <em>{{toSpace}}</em>.",messageNoCompatible:"Element Types not activated in {{targetSpace}}.",messageNoCompatibleCopy:"None of the elements you selected can be copied to Workspace <em>{{toSpace}}</em>.",messageNotAvailable:"Element Types not available in {{spaceName}}",messageNotAvailableCopy:"One or several Elements cannot be copied as they were shared with this Workspace.",changeSettings:"The following types must first be enabled in the Workspace:",contactAdmin:"Contact the Workspace administrator to enable the following types:",success:"The elements were successfully copied.",confirm:"Copy",copyCompatible:"Copy Eligible",cancel:"Cancel",selectSpace:"Please Select a Workspace to Copy to",selectSpacePlaceholder:"Select a Workspace",toast:"Elements successfully copied to",enableAndCopy:"Enable and Copy All",enableAndCopySingle:"Enable and Copy",copyOptions:"Copy Options",forceUpdate:"Overwrite Changes on Copy",forceUpdateToolTip:"Changes to Elements that have been previously copied from this Workspace will be lost. Ratings and comments will be kept.",forceUpdateWarning:"Copying will overwrite changes to Elements that have been previously copied from this Workspace to {{targetSpace}}. You cannot undo this action.",back:"Back",permissionMessage:"Unable to copy elements: You don't have permission to create the following element types in {{targetSpace}}. Please contact your space administrator.",permissionMessageSingle:"Unable to copy elements: You don't have permission to create the following element type in {{targetSpace}}. Please contact your space administrator.",incompatibleTooltip:"The selected element type is not compatible in the selected workspace.",noPermissionToCopy:"You don't have permission to copy the selected element type in the selected workspace."},warningMessage:{mayLooseChanges:{title:"Confirm",message:"Are you sure you want to leave this page? There might be unsaved changes.",cancel:"Cancel",confirm:"Confirm"},unsavedStackViewLeave:{title:"Confirm",message:"There are unsaved changes that are about to be lost. Do you wish to proceed?",cancel:"Cancel",confirm:"Confirm"}},radar:{save:{titleModal:"Save View",message:"Save Radar View",name:"Name",save:"Save",success:"Radar view saved successfully"},delete:{titleModal:"Delete View",message:"You are about to delete this saved view. Note that this might be a view another user has created. This action cannot be undone.",success:"Radar view was successfully deleted.",confirm:"Delete",cancel:"Cancel"},errors:{exportError:"There was an issue while exporting this Radar, please try again. If the problem persists, please contact us."},invalidConfig:"Parts of the saved Radar view were invalid for this Workspace and were removed. You can edit and then save the view to resolve this issue."}},fieldUpdateConfirmation:{status:{titleModal:"Update Status",draft:{message:" Are you sure you want to make this element a draft?",confirm:"Set as Draft"},published:{message:"Are you sure you want to publish this element?",confirm:"Publish"},archived:{message:"Are you sure you want to archive this element?",confirm:"Archive"},cancel:"Cancel"},default:{titleModal:"Update Element",message:"Are you sure you want to update this element?",confirm:"Update",cancel:"Cancel"}},fieldUpdateToastMessages:{status:{draft:{success:"Element status successfully changed to draft.",error:"The element couldn't be changed to draft. Please try again."},published:{success:"The element was successfully published.",error:"The element couldn't be published. Please try again."},archived:{success:"The element was successfully archived.",error:"The element couldn't be archived. Please try again."}},label:{success:"The element title was successfully updated.",error:"The element title couldn't be updated. Please try again."},default:{success:"The element was updated successfully.",error:"The element couldn't be updated. Please try again."}},imageUploader:{title:"Update Header Image",dragFile:"Drag file here or ",dragFiles:"Drag files here or ",selectFile:"select image",selectFiles:"select images",cancelFileTitle:"Are you sure you want to cancel the file upload?",error:{fileType:"Invalid file type. Please choose a file with one of the following extensions: {{extensions}}.",single_file:"a single file",fileLimit:"File limit exceeded. Please choose {{amount}} to upload",genericError:"Something went wrong with the file upload. Please check your internet connection and try again."},imageRemove:{toasts:{success:"The image was successfully removed."}}},fileUploader:{dragFile:"Drag file(s) here or ",selectFile:"select file",suffix:" to upload.",info:"The maximum allowed size for attachments is 20 MB. For accepted file formats, click to open our knowledge base!",expanded:{suffix:".",pastePrefix:"You can also ",code:"[CTRL+V]",pasteSuffix:" paste from your clipboard."},fileActions:{openInNewTab:"Open in New Tab",delete:"Delete File"},tableColumns:{col0:"",col1:"File Name",col2:"Uploaded By",col3:"Date",col4:"Size"},confirmations:{delete:{title:"Delete file",content:"Are you sure you want to delete the selected file?",confirm:"Confirm",cancel:"Cancel"},cancelAll:{title:"Confirm Close",content:"Do you want to confirm close? This will cancel all unfinished file uploads.",confirm:"Yes",cancel:"No"}},attachmentBox:{uploadCanceled:"Upload Canceled",addFiles:"Add Files",progressHalo:{tooltips:{uploading:"Cancel",canceled:"Canceled",retry:"Retry",completed:"Open in New Tab",error:"Error Occurred",rejected:"Rejected",default:"Cancel"}},boxTitle:{completed:"{{completed}} Upload Complete",canceled:"{{canceled}} Upload Canceled",uploading:"File Uploading\u2026 ({{completed}}/{{total}})",plural:{completed:"{{completed}} Uploads Complete",canceled:"{{canceled}} Uploads Canceled",uploading:"Files Uploading\u2026 ({{completed}}/{{total}})"}},reasons:{FileTypeNotAccepted:"The file you tried to upload ({{filename}}) is of type {{extra}} which we do not support.",EmptyFile:"Oh no - the file you attempted to upload (<em>{{filename}}</em>) was completely empty. Try uploading an attachment with some content instead!",MaxSizeExceeded:"The file you tried to upload ({{filename}}) has a size of {{extra}} and exceeds the size limit of 20 MB.",FileRejected:"Sorry, we couldn\u2019t upload the file {{filename}}. Please try again later. Should the problem persist, contact our support.",unknown:"Sorry, we couldn\u2019t upload the file {{filename}}. Please try again later. Should the problem persist, contact our support."}},uploadError:{maximumFileSize:"The image you are trying to upload exceeds the size limit of {{maximumFileSize}}MB! Please upload a smaller image."}},renderers:{textField:{placeholder:"Add Text",required:"This field is required"},textArea:{placeholder:"Add Text",required:"This field is required"},numberInput:{placeholder:"Add a Number"},userSelect:{placeholder:"Add a User"},userSelectMoreFilters:{placeholder:"Select User"},spaceUsersSelect:{selectedOptionLabel:"already selected"},select:{placeholder:{default:"Select an Option",noActiveElements:"No active Elements to connect to."}},rte:{placeholderNoMention:"Add content here.",placeholder:"Add content here. Type # to reference Elements.",required:"This field is required"},tag:{placeholder:"Add Tag",selectHeader:"Showing most relevant tags. Start Typing to see more suggestions.",addTag:"Add new tag",tagNotFound:"No existing tags",existingTagLabel:"Existing tags"},datePicker:{placeholder:"Choose a Date"},belongsTo:{controlName:"Campaign",connectEntity:{titleModal:"Connect {{entityType}}",message:"Are you sure you want to connect this {{entityType}} to the {{targetedEntityType}} '{{targetedEntity}}'?",highlightedMessage:"This connection is irrevocable.",cancel:"Cancel",connect:"Connect"},tooltip:{text:"Make sure there is an active Element that collects {{entityTypeName}}"}}},filterModule:{selectSavedFilterTitle:"Saved filters",advancedFiltering:"Filters",filter:"Filter",done:"Done",closeFilters:"Collapse Filters",filterType:"{{name}} Filter",selectSavedFilterPlaceholder:"Select Saved Filter",generalFilters:"General",search:"Search",tags:"Tags",tag:"Tag",tagExclude:"Exclude tag",emptyTag:"No tags",statusFilter:"Status",createdByFilter:"Created By",updatedByFilter:"Updated By",updatedOnFilter:"Updated",add:"Add General Filter",selectAnOption:"Select an Option",selectTypes:"Element Types",selectFilters:"Add Element Type Filter",addElementType:"Add Type",addElementField:"Add {{name}} Filter",entityType:"Element Type",createdBy:"Created By",updatedBy:"Updated By",entityStatus:"Status",chooseFilter:"Choose Properties",createdDate:"Created Date",updatedDate:"Updated Date",watchedElementsOnly:"Watched Elements only",watchedElements:"Watched Elements",setValue:"Set a Value",AND:"ALL",OR:"ANY",editSavedFilter:"Edit Filter",deleteSavedFilter:"Delete Filter",resetAll:"Discard Changes",setAfilterValue:"Please Set a Value",myElements:"Me",clear:"Clear",selectOption:"Select Option",lockedText:"No edit permissions.",editText:"Edit",editFilterName:"Edit Filter Name",deleteText:"Delete",globalFilters:"Global Filters",watchedBy:"Watched by",toolTips:{and:"Only show results that contain ALL selected items.",or:"Only show results that contain ANY selected items.",allGlobalFiltersAdded:"All global filters have been added",allElementTypesAdded:"All element types have been added",typeSelectorInfo:"Choose types to activate tabs, allowing detailed filtering within each category."},created:"Created",saveFilter:{saveFilterButton:"Save Filter",saveAsFilterButton:"Save Filter",updateFilterButton:"Update Filter",discardFilterChangesButton:"Discard Changes",saveFilterModalTitle:"Save Filter",saveFilterFormLabel:"Name",saveFilterFormSubmit:"Save",saveFilterModalFieldEmpty:"This field cannot be empty.",editFilterModalTitle:"Edit Filter",updateFilterSuccess:"Your filter was updated successfully!",deleteFilterSuccess:"Your filter was deleted successfully!",privatePresets:"Private Filters",permissionDenied:"Permission Denied!",filterNameLabel:"Filter Name",deleteLabel:"Delete Filter",deleteConfirmTitle:"Delete Filter",deleteConfirmMessage:"Do you really want to delete this Filter?",permissionToChangeVisibility:"You cannot set the public filter to private because you didn\u2019t create it",onlyPrivatePresetPermission:"You do not have the permission to create a Filter for everyone. Contact your admin about your roles and permissions.",onlyPublicPresetPermission:"You do not have the permission to create a private Filter. Contact your admin about your roles and permissions."},deleteFilter:{confirmTitle:"Delete Filter",deleteConfirmContent:"Do you really want to delete this filter?",deleteButton:"Delete",cancelButton:"Cancel"},presetsFilter:{title:"Saved filters",notFoundText:"No saved filters found",searchPlaceholer:"Find saved filters"},relationsFilter:{title:"Related to",loadingText:"Loading",typeToSearchText:"Type to search",notFoundText:"Not found",placeholder:"Find Elements",fieldLabel:"Relation"},filterCondition:{is:"{{fieldLabel}} is",isNot:"{{fieldLabel}} is not",emptyOr:"{{fieldLabel}} is empty, or"},templateFilterIDs:{watchers:"Watched Elements",status:"Status",createdByUri:"Created By",updatedByUri:"Updated By",updatedOn:"Updated Date",tagSearch:"Tags",relations:"Related To",createdOn:"Created Date"}},ratingsWidget:{savingRatings:"Saving Ratings...",rating:"Rating",rate:"Rate",save:"Save",allRatings:"All Ratings",myRating:"My Rating",averageRatings:"Average Ratings",previousExternalRatings:"Initial copied ratings",cancel:"Cancel",noRatingCriteria:"No rating criteria to show "},stackNotFound:{errorMessageStartPhrase:"We are sorry,",errorMessage:"the page you requested cannot be found.",errorReason:"The URL may be misspelled or the page you are looking for is no longer available.",errorCodeLabel:"Error Code",redirectButtonText:"Back to Safety"},sortList:{title:"Title",modifiedDate:"Updated Date",postedDate:"Created Date",ascending:"Ascending",descending:"Descending"},switchViews:{listView:"List View",cardsView:"Cards View",networkGraph:"Network Graph",filter:"Filter"},tagsCloud:{error500:"We seem to be experiencing technical issues trying to load tags. Please try to reload the page. If the problem persists, contact our support.",title:"Tag Filter",frequencyRange:"Filter by Frequency",clearAll:"Clear All",otherTagsHeader:"Further Tags",relatedTagsLabel:"Tags Related with the Selection",conditionals:{and:"AND",or:"OR"},tagElement:{counterTooltip:"Number of Elements with this Tag",parentRelated:"This tag is related with"},noTags:"Either there are no tags, or none could be found that match the filter currently applied.",tryResetFilters:" Try resetting all filters.",helpText:"The tags in this section are related to the selected tags by the elements they have in common. The colorful dots show exactly which tags are connected while the number on each tag represents the importance of that tag within the selection of elements.",resetFilter:"The filters you have set prevent the tag from being shown. Click on this message to reset those filters and try again."},newsfeed:{errors:{pinnedSignalsUpdate:"Unable to pin the Signal. Try again or contact our support."},flags:{add:"Pin Signal to this feed",readonly:"Pinned to this feed",remove:"Unpin Signal",filter:"Pinned",title:"Pin"},tips:{addMoreInfo:"Add more information to the element\u2019s title and summary to give us more to work with!",refineTheSearch:"Refine the search in the Insights application!"},lastRefined:"Last refined {{ relativeDate }}",oneSignal:"1 Signal",xSignals:"{{ count }} Signals"},excelExport:{success:"We are currently preparing your export and will send it via email once ready. Check your inbox within the next few minutes.",fail:"Export failed. Try again or contact our support.",feature_flag_not_enabled:"The feature for Excel export is not enabled.",permission_not_enabled:"Permission for Excel export is not enabled.",element_type_threshold_exceed:"Export is not allowed because the following element types have more than {{element_limit}} elements: {{elementTypes}}",selected_elements_threshold_exceed:"Selected elements limit exceeded. Please select fewer items to enable the export. Maximum selection limit: {{element_limit}}.",no_elements:"No elements matching the selected criteria were found. Please adjust your filters or try again later."},bulkActions:{successDelete:"The selected elements were successfully deleted.",successCopy:"Success! We copied all the elements you selected into Workspace <i>{{toSpace}}</i>. Click on this message to go to the Workspace!",success:"Your Bulk Action was completed successfully.",bulkDeleteTitle:"Delete",bulkDeleteTooltip:"You do not have delete permission for some elements in your selection.",bulkSmartCopyTitle:"Smart Copy to Another Workspace",bulkSmartCopyTitleTooManyElements:"Use filters to reduce your selection down to 4000 Elements.",bulkSmartCopyDisabledTitle:"Smart Copy Disabled: No Workspaces Available",bulkOpeninStackTitle:"Open in Stack (up to 10 Elements)",bulkOpeninStackTitleDisabled:"Open in Stack Disabled: Too Many Elements",selectAll:"Select All",failed:"The elements you selected could not be copied, please contact ITONICS support.",errorDelete:"There was an issue deleting the Elements. Please contact support.",element:"Element",elements:"Elements",openInStack:"Open in Stack",copy:{inProgress:"The elements you selected are currently being copied between Workspaces!<br><br> <b>{{fromSpace}} \u27F6 {{toSpace}}</b>",success:"Success! We copied the elements you selected between Workspaces.<br> <b>{{fromSpace}} \u27F6 {{toSpace}}</b>",timeout:"Copying all the selected elements seems to take a bit longer than usual and will complete in the background. Please contact ITONICS support if you are unable to import your data!",status:{INITIALIZING:"Initializing...",SCHEDULED:"Preparing...",STARTED:"Started copying...",IN_PROGRESS:"Copying in progress... {{percent}}%",FILE_UPLOAD_STARTED:"Uploading files...",FILE_UPLOAD_PROCESSING:"Processing file uploads...",COMPLETED:"Copying completed!",FAILED:"Copying failed!",ERROR:"Copying failed!"}}},networkGraphExplorerView:{elementType:"Element Type",saveSuccess:"Network Graph saved successfully.",deleteSuccess:"Network Graph deleted successfully."},headerActions:{uploaderAction:{upload:"Upload Image"},deleteAction:{delete:"Delete Element"},copyAction:{copy:"Copy to Another Workspace",copyDisabled:"Shared Elements cannot be copied."},deleteModal:{modalTitle:"Delete Element",description:{start:"Deleting this Element will",highlight:"permanently remove",end:"all Relations to other Elements and links to Activities on roadmaps."},archiveElement:"Archive Instead",cancel:"Cancel",delete:"Delete"}},explorerHeader:{shareElement:"Share",unknownSpace:"Unknown Workspace",unknownUser:"Anonymous User"},contentPropagation:{contentSharing:"Content Sharing",manage:"Manage"},contentManagement:{title:"Share Element",update:"Update",cancel:"Cancel",searchPlaceholder:"Search for Workspaces",shareElement:{success:"Sharing options for the element have been successfully updated!",error:"The element couldn't be shared. Please try again later. Should the problem persist, contact our support."},status:{active:{SHARED_BY_WORKSPACE:"This Element is being shared!",SHARED_WITH_WORKSPACE:"This Element is from another Workspace!"},inactive:{SHARED_BY_WORKSPACE:"Updates on this Element are currently not being shared!",SHARED_WITH_WORKSPACE:"This Element is from another Workspace, but updates are currently not being shared!"}}},entityModule:{elementUpdateError:"Sorry, there was an issue updating the element. Please try again later. Should the problem persist, contact our support."},nonProfessionalNote:{customElementType:"Custom Element Types are read-only.",vanillaElementTypeCustomProperties:"Custom properties are read-only.",upgradeCTA:"Upgrade to",proTag:"PRO",tooltipNoAdmin:"Ask an administrator to upgrade."},embedPreset:{failToUpdate:"Embed could not be updated.",failToCreate:"Embed could not be created"},embed:{modal:{title:"Embed the Current View"}},ideation:{createdBy:"Created By",collects:"Collects",includedPhases:"Included Phases",useTemplate:"Use Template",back:"back",ideas:"Ideas",chooseAWorkflow:"Choose a Workflow",failToFetchIdeationTemplates:"Failed to fetch ideation templates",failToFetchTemplates:"Failed to fetch templates",noWorkflowTemplate:"No compatible workflow available.",learnAboutWorkflow:"Learn more about workflows.",todosTooltipLabel:"To-Do's"},elementTypeDisabled:{staticNotification:{beforeLink:"The {{entityType}} element type is currently not enabled. In order to use this feature, please activate the {{entityType}} element type in your",linkPhrase:"workspace element configuration.",afterLink:"If you are not authorized to do this, please contact your administrator."}},recommendedRelations:{title:"Recommended Relations",allRelationsAlreadyAdded:"All relations already added",nothingToShow:"There's nothing to show yet. <strong>Start adding information</strong> to show recommended relations here",tooltipText:"Easily find similar content within the same workspace",relationAdded:"Related {{targetElementTitle}} with {{parentElementTitle}}",failedToAddRelation:"Failed to relate recommended relation"},error:{genericError:"Something went wrong please try again."},notFound:{errorMessageStartPhrase:"We are sorry,",errorMessage:"the page you requested cannot be found.",errorReason:"The URL may be misspelled or the page you're looking for  is no longer available.",errorCodeLabel:"Error Code",redirectButtonText:"Back to Safety"},unauthorizedWorkspace:{errorMessageStartPhrase:"We are sorry,",errorMessage:"your account settings do not grant you access to this feature.",errorReason:"Please contact the administrator of your organization to check your roles & permissions.",errorCodeLabel:"Error Code"},quickFilters:{today:"Today",yesterday:"Yesterday",last7Days:"Last 7 Days",last30Days:"Last 30 Days",last12Months:"Last 12 Months"},permission:{toasts:{denied:"You don\u2019t have permission to perform this action."}},filterPanel:{filterSettings:"More Filters",toggleFurtherQuickFilters:"Toggle Further Quick Filters",toggleSearch:"Toggle Search",presetsBookmark:"Saved filters",resetFilters:"Reset",excelExport:"Export to Excel",emptyWorkspace:"No elements to export. Add data to the workspace to enable export.",exceedSelectedElement:"Selected elements limit exceeded. Please select fewer items to enable the button. Maximum selection limit: {{numberOfElements}}."},viewOption:{radar:"Radar",grid:"Grid",list:"List",portfolio:"Matrix",network:"Network Graph",board:"Board"},tagCloud:{filtering:"Filtering by:",tagVisualization:"Tag Visualization"},"network-graph-explorer":{featureStatus:{label:"BETA",tooltip:{body:"The Network Graph visualizes the connections between the Elements of a Workspace.<br><br> To connect Elements, add relations or tags to them.",actionLabel:"Share your feedback",actionLabelAfter:"to help us make it better."}},linkDimension:{relation:{label:"Relates to"},tags:{label:"Shared Tags"}}},"instant-search":{placeholder:"Find Elements"},headerMeatballOptions:{default:"More Actions",share:"Share URL",copy:"Copy from another Workspace",error:"URL could not be copied. Please try again",success:"URL Copied",importFromDatasheet:"Import from a Datasheet"},"explorer-board":{preset:{saveFilterButton:"Save Filter",saveAsFilterButton:"Save as new",updateFilterButton:"Update Filter",discardFilterChangesButton:"Discard Changes",lockedText:"Locked",editText:"Edit",editBoardPresetModalTitle:"Edit Board",saveBoardPresetModalTitle:"Save Board",createSuccess:"Board created.",saveFailed:"Failed to create new Board. Please try again later",updateSuccess:"Board updated successfully.",updateFailed:"Failed to update Board. Please try again or contact support.",deleteSuccess:"Board deleted.",deleteFailed:"Failed to delete Board. Please try again or contact support.",invalidField:"Selected Board has an invalid swimlane or column. It has been reset to default.",saveAsNewNameInputLabel:"Board Name",deleteButtonLabel:"Delete Board",deleteModalTitle:"Delete Board",deleteModalDescription:"Do you really want to delete this Board?",onlyPrivatePresetPermission:"You do not have the permission to create a Board for everyone. Contact your admin about your roles and permissions.",onlyPublicPresetPermission:"You do not have the permission to create a private Board. Contact your admin about your roles and permissions.",noPermission:"You don't have permission to edit some parts of this Board"},header:{property:"Board",presetLabel:"Project Board",elements:"Elements",element:"Element",saveAsPreset:"Save Board",update:"Update",discard:"Discard Changes",save:"Save as new",loading:"Board loading...",noOptions:"No options available",loadingButton:"Loading...",viewName:"Board"}},quickAccess:{unsavedChanges:"Unsaved changes",saveAsNew:"Save as new",update:"Update",save:"Save",noPermissionTooltipText:"No edit permission to update this view. Save as new to make changes.",defaultTooltipText:"Default view cannot be changed. Save as new to make changes.",noUnsavedChanges:"No unsaved changes",sharedPrivateList:"Shared private {{viewName}}",privateListTooltip:"Only accessible via link. Save as new to add it to your {{viewName}}.",share:"Share",saveBeforeShare:"Please save your changes"}}};var Jm=["*"],Xm=o=>({minimized:o});function Zm(o,i){if(o&1){let a=W();f(0,"button",7),E("click",function(t){v(a);let n=m(2);return P(n.onMinimize(t))}),_()}}function eg(o,i){if(o&1){let a=W();f(0,"button",8),E("click",function(t){v(a);let n=m(2);return P(n.onMaximize(t))}),_()}}function tg(o,i){if(o&1){let a=W();f(0,"div",1)(1,"header")(2,"section",2),G(3),_(),f(4,"aside")(5,"button",3),E("click",function(t){v(a);let n=m();return P(n.onClose(t))}),_(),M(6,Zm,1,0,"button",4)(7,eg,1,0,"button",5),_()(),f(8,"main",6),ri(9),_()()}if(o&2){let a=m();g(2),d("title",a.title),g(),De(a.title),g(3),d("ngIf",!a.minimized),g(),d("ngIf",a.minimized),g(),d("ngClass",ae(5,Xm,a.minimized))}}var _t=function(o){return o[o.MINIMIZE=0]="MINIMIZE",o[o.MAXIMIZE=1]="MAXIMIZE",o[o.CLOSE=2]="CLOSE",o}(_t||{}),pp=(()=>{let i=class i{constructor(){this.closed=!1,this.beforeStateChange=new q,this.onClosed=new q,this.closedChange=new q,this.minimized=!1,this.cancelImmediateStateChange=!1}ngOnChanges(e){e.closed&&!e.closed.firstChange&&e.closed.currentValue&&this.onClosed.emit()}onMinimize(e){this.triggerEvent(e,_t.MINIMIZE)}onMaximize(e){this.triggerEvent(e,_t.MAXIMIZE)}onClose(e){this.triggerEvent(e,_t.CLOSE)}triggerEvent(e,t){this.beforeStateChange.emit({state:t,clickEvent:e,preventDefault:this.cancelStateChange.bind(this)}),setTimeout(()=>{this.cancelImmediateStateChange?this.cancelImmediateStateChange=!1:t===_t.CLOSE?(this.closed=!0,this.closedChange.emit(this.closed)):this.minimized=t!==_t.MAXIMIZE},100)}cancelStateChange(){this.cancelImmediateStateChange=!0}};i.\u0275fac=function(t){return new(t||i)},i.\u0275cmp=D({type:i,selectors:[["ui-minimizable-box"]],inputs:{title:"title",closed:"closed"},outputs:{beforeStateChange:"beforeStateChange",onClosed:"onClosed",closedChange:"closedChange"},features:[Ae],ngContentSelectors:Jm,decls:1,vars:1,consts:[["class","minimizable-box fixed-at-bottom-right",4,"ngIf"],[1,"minimizable-box","fixed-at-bottom-right"],[3,"title"],["aria-label","Close","title","Close",1,"icon","icon-close",3,"click"],["aria-label","Minimize","title","Minimize","class","icon icon-minimize-tab",3,"click",4,"ngIf"],["aria-label","Maximize","title","Maximize","class","icon icon-maximize-tab",3,"click",4,"ngIf"],[3,"ngClass"],["aria-label","Minimize","title","Minimize",1,"icon","icon-minimize-tab",3,"click"],["aria-label","Maximize","title","Maximize",1,"icon","icon-maximize-tab",3,"click"]],template:function(t,n){t&1&&(oi(),M(0,tg,10,7,"div",0)),t&2&&d("ngIf",!n.closed)},dependencies:[Oe,ne],styles:[`.minimizable-box[_ngcontent-%COMP%]{border-radius:8px;overflow:hidden;box-shadow:1px 2px 4px #3e4d6333;border:solid 1px #eff2f4}.minimizable-box.fixed-at-bottom-right[_ngcontent-%COMP%]{position:fixed;bottom:0;right:50px;width:350px;border-bottom-right-radius:0;border-bottom-left-radius:0;z-index:1}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]{background-color:#eff2f4;height:50px;padding:12px 24px;font-weight:600;font-size:16px;color:#627588;border:solid 1px #eff2f4}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   section[_ngcontent-%COMP%]{float:left;max-width:80%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;padding:6px 0}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]{float:right;max-width:20%}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{opacity:1;font-size:14px;padding:6px;background:#e6f6fe00;transition:background .2s ease-in-out;border-radius:100%;border:none;color:#627588;float:right;cursor:pointer}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:focus{outline:none}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:not(:last-child){margin-left:3px}.minimizable-box[_ngcontent-%COMP%]   header[_ngcontent-%COMP%]   aside[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]:hover{background:#e6f6fe}.minimizable-box[_ngcontent-%COMP%]   main[_ngcontent-%COMP%]{display:block;min-height:50px;padding:16px 24px;background:#fff;transition:all .2s ease-in-out;max-height:80vh;overflow-y:auto}.minimizable-box[_ngcontent-%COMP%]   main.minimized[_ngcontent-%COMP%]{overflow-y:hidden;min-height:0;max-height:0;opacity:0;padding:0 24px}
/*# sourceMappingURL=minimizable-box.component-X7ZE5K4V.css.map */`]});let o=i;return o})();var dp=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var mp=(()=>{let i=class i{transform(e){switch(e.status){case X.ADDED_TO_QUEUE:case X.UPLOADING:return"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.uploading";case X.CANCELED:return e.retryable?"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.retry":"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.canceled";case X.COMPLETED:return"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.completed";case X.ERROR_OCCURED:return"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.error";case X.REJECTED:return"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.rejected";default:return"explorer-ng.fileUploader.attachmentBox.progressHalo.tooltips.default"}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275pipe=st({name:"haloTitle",type:i,pure:!0});let o=i;return o})();var up=(()=>{let i=class i{constructor(e){this.uploader=e}transform(e){return this.uploader.getIconFromMime(e.mimeType)}};i.\u0275fac=function(t){return new(t||i)(c(Fn,16))},i.\u0275pipe=st({name:"haloFileIconUrl",type:i,pure:!0});let o=i;return o})();var rg=o=>({"has-info":o});function ag(o,i){if(o&1){let a=W();f(0,"div",4)(1,"div",5),A(2,"img",6),N(3,"haloFileIconUrl"),f(4,"span",7),G(5),_(),f(6,"span",8),G(7),N(8,"translate"),_(),f(9,"span",9),N(10,"haloTitle"),N(11,"translate"),f(12,"ui-progress-halo",10),E("clicked",function(t){let n=v(a).$implicit,r=m();return P(r.onHaloClicked(t,n))}),_()()()()}if(o&2){let a=i.$implicit,e=m();g(),d("ngClass",ae(19,rg,a.status===3)),g(),d("src",V(3,11,a),pn),g(3),De(a.name),g(2),De(V(8,13,"explorer-ng.fileUploader.attachmentBox.uploadCanceled")),g(2),d("title",V(11,17,V(10,15,a))),g(3),d("percent",a.progress.data.percentage)("size",e.haloSize)("noEmptyRing",!0)("error",a.status>3)("completed",a.status===1)("retryable",a.retryable===!0)}}function sg(o,i){if(o&1&&(f(0,"div",11)(1,"label",12),N(2,"async"),A(3,"span",13),G(4),N(5,"translate"),_()()),o&2){let a=m();g(),d("for",V(2,2,a.attachmentComponentId)),g(3),Z(" ",V(5,4,"explorer-ng.fileUploader.attachmentBox.addFiles")," ")}}var fp=(()=>{let i=class i{unloadNotification(e){this.allfileUploads.find(t=>[X.UPLOADING,X.ADDED_TO_QUEUE].indexOf(t.status)>-1)&&(e.returnValue="Are you sure you want to leave this page? Some files are still being uploaded or about to upload.")}constructor(e,t,n,r,s,l,p){this.uploader=e,this.toaster=t,this.confirmService=n,this.translate=r,this.humanizedBytesPipe=s,this.filenameTrimPipe=l,this.fileService=p,this.haloSize=Rs.S,this.allfileUploads=[],this.uploadBoxClosed=!0,this.boxTitle=this.getBoxTitle(),this.KnownErrorReasons=["FileTypeNotAccepted","EmptyFile","MaxSizeExceeded","FileRejected"]}ngOnInit(){this.subscribeToUploaderActivities()}identifyFileByUri(e,t){return t.uri}onHaloClicked(e,t){switch(e){case Xi.CANCELED:if(t.status===X.CANCELED&&t.retryable){this.uploader.track("qzThf9WKjfLbpbw"),this.uploader.reUploadFile({id:t.fileId,attachmentComponentId:t.attachmentFieldUri}),t.status=X.ADDED_TO_QUEUE,t.progress.data.percentage=0,t.retryable=!0;break}else if(!t.retryable){this.uploader.track("r4TxsQeTwcOdYC1"),this.allfileUploads=this.allfileUploads.filter(n=>n.uri!==t.uri);break}this.uploader.track("xfhglLjQP1oJ3GG"),this.uploader.cancelFiles([{id:t.fileId,attachmentComponentId:t.attachmentFieldUri}]),t.status=X.CANCELED;break;case Xi.ERROR:this.uploader.track("FCA2DMvnDZSU6xz"),t.status=X.ERROR_OCCURED,this.allfileUploads=this.allfileUploads.filter(n=>n.uri!==t.uri),t.retryable=!1;break;case Xi.COMPLETED:this.uploader.track("NoLa5wRQAM3KV17"),t.status=X.COMPLETED,this.fileService.getCompleteFileUrl(t.uri).then(n=>{window.open(n,"blank")}),t.retryable=!1;break}this.boxTitle=this.getBoxTitle()}beforeStateChange(e){switch(e.state){case _t.CLOSE:this.uploader.track("mmbX10IxLNxMAqY");let t=this.allfileUploads.filter(n=>[X.UPLOADING,X.ADDED_TO_QUEUE].indexOf(n.status)>-1);t.length?(e.preventDefault(),this.confirmService.confirm(this.translate.instant("explorer-ng.fileUploader.confirmations.cancelAll.title"),this.translate.instant("explorer-ng.fileUploader.confirmations.cancelAll.content"),this.translate.instant("explorer-ng.fileUploader.confirmations.cancelAll.confirm"),this.translate.instant("explorer-ng.fileUploader.confirmations.cancelAll.cancel")).subscribe(n=>{n&&(this.uploader.track("jwBO2mmJu8jTnrl"),this.cancelAllUnfinished(t),this.allfileUploads=[],this.uploadBoxClosed=!0)})):this.allfileUploads=[];break;case _t.MINIMIZE:this.uploader.track("3jcUkcHVgIkhqLs");break;case _t.MAXIMIZE:this.uploader.track("E2xX9YsfbRsvgck")}}cancelAllUnfinished(e){e.length&&this.uploader.cancelFiles(e.map(t=>({id:t.fileId,attachmentComponentId:t.attachmentFieldUri})))}getUploadCounts(){return{total:this.allfileUploads.length,completed:this.allfileUploads.filter(e=>e.status===X.COMPLETED).length,canceled:this.allfileUploads.filter(e=>e.status===X.CANCELED).length,failedOrRejected:this.allfileUploads.filter(e=>e.status>3).length}}getBoxTitle(){let e=this.getUploadCounts(),t=e.failedOrRejected+e.canceled,n=e.total-t;return n===e.completed?this.translate.instant(`explorer-ng.fileUploader.attachmentBox.boxTitle.${e.completed>1?"plural.":""}completed`,{completed:e.completed}):n===t?this.translate.instant(`explorer-ng.fileUploader.attachmentBox.boxTitle.${t>1?"plural.":""}canceled`,{canceled:t}):this.translate.instant(`explorer-ng.fileUploader.attachmentBox.boxTitle.${n>1?"plural.":""}uploading`,{completed:e.completed,total:n})}subscribeToUploaderActivities(){this.uploader.subscribeActivities().subscribe(e=>{switch(e.what){case X.ADDED_TO_QUEUE:e.file.status=X.ADDED_TO_QUEUE,e.file.retryable=!0,this.allfileUploads.unshift(e.file),this.uploadBoxClosed=!1,this.attachmentComponentId=Promise.resolve(e.file.attachmentFieldUri);break;case X.UPLOADING:let t=this.allfileUploads.find(l=>l.uri===e.file.uri);t&&(t.status=X.UPLOADING,t.progress=e.file.progress);break;case X.COMPLETED:let n=this.allfileUploads.find(l=>l.uri===e.file.uri);n&&(n.status=X.COMPLETED,n.progress=e.file.progress);break;case X.REJECTED:case X.ERROR_OCCURED:let r=this.allfileUploads.find(l=>l.uri===e.file.uri);r||(this.allfileUploads.unshift(e.file),r=e.file,this.uploadBoxClosed=!1,this.attachmentComponentId=Promise.resolve(e.file.attachmentFieldUri)),r.status=e.what,r.progress=e.file.progress,r.retryable=e.what===X.ERROR_OCCURED;let s=typeof e.why=="string"?e.why:e.why?.errorMessage;this.toaster.showToast({type:e.what===X.ERROR_OCCURED?ie.ERROR:ie.ALERT,content:this.translate.instant(`explorer-ng.fileUploader.attachmentBox.reasons.${this.KnownErrorReasons.indexOf(s)>-1?s:"unknown"}`,{filename:this.filenameTrimPipe.transform(e.file.name),extra:s==="MaxSizeExceeded"?this.humanizedBytesPipe.transform(e.file.size):this.uploader.getExtensionFromFilename(e.file.name)||"unknown"}),contentType:ea.CUSTOM_CONTENT})}this.boxTitle=this.getBoxTitle()})}};i.\u0275fac=function(t){return new(t||i)(c(Fn),c(Ke),c(yi),c(Y),c(Ua),c(Ia),c(Pi))},i.\u0275cmp=D({type:i,selectors:[["explorer-attachment-box"]],hostBindings:function(t,n){t&1&&E("beforeunload",function(s){return n.unloadNotification(s)},!1,dn)},inputs:{attachmentComponentId:"attachmentComponentId",customClass:"customClass"},decls:5,vars:8,consts:[[3,"closedChange","beforeStateChange","title","closed","ngClass"],[1,"file-list"],["class","list-item",4,"ngFor","ngForOf","ngForTrackBy"],["class","add-attachment",4,"ngIf"],[1,"list-item"],[1,"list-items-contatiner",3,"ngClass"],["alt","File Icon",1,"file-icon",3,"src"],[1,"file-name"],[1,"info"],[1,"progress-halo",3,"title"],[3,"clicked","percent","size","noEmptyRing","error","completed","retryable"],[1,"add-attachment"],["coreEvent","Ef0b4NtlFW4Zyer",3,"for"],[1,"icon","icon-plus"]],template:function(t,n){t&1&&(f(0,"ui-minimizable-box",0),Xt("closedChange",function(s){return Jt(n.uploadBoxClosed,s)||(n.uploadBoxClosed=s),s}),E("beforeStateChange",function(s){return n.beforeStateChange(s)}),f(1,"div",1),M(2,ag,13,21,"div",2),_(),M(3,sg,6,6,"div",3),N(4,"async"),_()),t&2&&(d("title",n.boxTitle),Kt("closed",n.uploadBoxClosed),d("ngClass",n.customClass),g(2),d("ngForOf",n.allfileUploads)("ngForTrackBy",n.identifyFileByUri),g(),d("ngIf",V(4,6,n.attachmentComponentId)))},dependencies:[Oe,kt,ne,_i,pp,As,Ft,Le,mp,up],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}[_nghost-%COMP%]     ui-minimizable-box.no-stack .minimizable-box.fixed-at-bottom-right{right:200px;z-index:32}[_nghost-%COMP%]     ui-minimizable-box.stack-opened .minimizable-box.fixed-at-bottom-right{z-index:30}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main{padding:0}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list{overflow-y:auto;max-height:336px}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item{height:48px;overflow:hidden;border-bottom:solid 1px #eff2f4}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .file-icon, [_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .file-name{float:left}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item:hover{background-color:#8a9bab1f}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner{padding:0 24px}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner .file-name{height:48px;padding:14px 8px 15px;width:calc(100% - 74px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#627588}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner .info{display:none;width:120px;color:#098dcd;font-size:13px;padding:15px 0;text-align:right}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner .progress-halo{height:48px;padding:11px 0;width:26px;float:right}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner.has-info .file-name{width:calc(100% - 201px)}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner.has-info .info{display:inline-block}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .file-list .list-item .list-items-contatiner.has-info .progress .icon.canceled-icon{background:#f1245c}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .add-attachment{height:48px;font-size:14px;font-weight:600;color:#627588;padding:16px 41px}[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right main .add-attachment label{cursor:pointer}[_nghost-%COMP%]     ui-minimizable-box .icon.completed-icon:hover:before{content:"\\e88d"}@media only screen and (min-width: 0){.stack-minimized-attachment[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right{right:100px}}@media only screen and (min-width: 900px){.stack-minimized-attachment[_nghost-%COMP%]     ui-minimizable-box .minimizable-box.fixed-at-bottom-right{right:400px}}
/*# sourceMappingURL=attachment-box.component-7RVPQSNR.css.map */`]});let o=i;return o})();var hp=[{id:"explorer_relate_general",detailPosition:we.LEFTBOTTOM,text:"Relating elements in different ways with each other is a key functionality of the ITONICS software. The network visualization will help you discover new connections.",customClass:"hotspot-align-right",position:{top:"20px",left:"30px"}},{id:"explorer_relate_view",detailPosition:we.RIGHTBOTTOM,text:"Play around with the look of the network graph and disable the second level of relations in order to reduce complexity.",customClass:"hotspot-align-right",position:{top:"0",right:"0"}},{id:"explorer_expand_view",detailPosition:we.RIGHTBOTTOM,text:"Expand the widget to better explore the network graph.",customClass:"hotspot-align-right",position:{top:"20px",right:"30px"}},{id:"explorer_header",detailPosition:we.CENTERBOTTOM,text:"See all the important information about an element in its header, including who created it and when. Change the image to give it a nice look and feel.",customClass:"hotspot-align-center"},{id:"explorer_rating_button",text:"Evaluate elements collaboratively in the context of your organization and use these ratings to build a radar. Click on the question marks to see more information about the criteria themselves and what they mean.",detailPosition:we.CENTERBOTTOM,customClass:"hotspot-align-center"},{id:"explorer_inspiration_widget",text:"This widget shows inspiring content connected to the current element. Create your own Inspirations and start relating them!",detailPosition:we.CENTERBOTTOM,customClass:"hotspot-align-center"},{id:"tag_cloud",text:"The tag panel helps you understand the relevance of different tags in your system and their relation to each other. It also enables you to powerfully filter your content using those tags.",detailPosition:we.LEFTBOTTOM,customClass:"hotspot-align-left"},{id:"smart_copy",text:"Select a number of elements and then delete them, open them all in a stack or copy them to another Workspace. Elements that have previously been copied to the target Workspace will not be copied again.",detailPosition:we.LEFTBOTTOM,customClass:"hotspot-align-center"}];var Cp=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var pg={en:Nn,de:cp},_p=(()=>{let i=class i{static forRoot(){return{ngModule:i,providers:[{provide:Gr,useClass:Yr},{provide:na,useClass:aa},Ta]}}constructor(e,t){this.translateRegistry=e,this.hotspotRegistry=t,this.translateRegistry.registerLoader(n=>Promise.resolve(pg[n]||Nn)),this.hotspotRegistry.registerHotspots(hp)}};i.\u0275fac=function(t){return new(t||i)(u(Ee),u(Ri))},i.\u0275mod=k({type:i}),i.\u0275inj=T({providers:[ka],imports:[F,fe,Rr,fn,Mn,hl,Ws,ct,Hi,Ht,pl,ue,no,Cn,In,$e,It,qi,Ha,so,Eo,To,ko,Fo,Io,ho,bo,xi,jt,Bt,$i,tr,Hs,ut,Je,Jl,uo,ji,sl,ao,ro,Cl,Qi,Un,ll,kl,fl,ws,zt,di,mt,Ai,dp,xn,Ls,Cp,El,Dl,At,Gi,Bi,tr]});let o=i;return o})();var xp=(()=>{let i=class i{constructor(e){this.router=e}resolve(e){return e?.params?.uri?xe(e?.params?.uri):(this.router.navigateByUrl("/404",{skipLocationChange:!0}),Cr)}};i.\u0275fac=function(t){return new(t||i)(u(qe))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var dg=["viewOptions"],mg=["header"],gg=60,bp=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h,C,O,S,J,me,pe){this.permissionService=e,this.entityService=t,this.entityConfigService=n,this.router=r,this.stackedViewService=s,this.translate=l,this.statsService=p,this.filterQueryService=h,this.trackingService=C,this.createEntityModalService=O,this.activatedRoute=S,this.featureFlagService=J,this.entityImportService=me,this.store=pe,this.showActiveFilterBar=new q,this.entityTypes=[],this.contributors=[],this.entityStatuses=[],this.filterSidebarState=!1,this.selectedFilterIsOpen=!1,this.showFilteredElements=!0,this.barFilterOpenClass=!1,this.headerSubOpenClass=!0,this.subs=new ei,this.currentView="radar",this.quickFilterBarStateKey="quickFilterBarState",this.viewChangerDropdownToggled=!1,this.showOldFilterHeader=!1,this.isShowroomSpace=!1,this.explorerBulkCopyModule="explorer.app.bulk-copy",this.importModalQuerryParam="importModal",this.viewPermissions={radar:x.VIEW_RADAR_MODULE,matrix:x.VIEW_PORTFOLIO_MODULE,networkGraph:x.VIEW_NETWORK_GRAPH,board:x.VIEW_BOARD_MODULE,grid:x.VIEW_EXPLORER_MODULE},this.onDestroy=new U,this.store.select(Q.selectCurrentSpace).pipe(H(),R()).subscribe({next:j=>{j&&(this.currentWorkspace=j,this.checkShowroomSpace(j),this.checkPermissions(),this.getEntityTypes(),this.getEntityStatuses(),this.getAllCreators(),this.getEntityStatistics())}}),this.subs.add(this.stackedViewService.onCloseStack.subscribe(()=>{this.stackedViewsWidth=null})),this.subs.add(this.stackedViewService.onDimensionChange.subscribe(j=>{this.stackedViewsWidth=j.width+gg})),this.subs.add(this.entityService.onEntityAdded(j=>{this.getAllCreators(),this.getEntityStatistics()})),this.subs.add(this.entityService.onDeletedEntity.subscribe(()=>{this.getAllCreators(),this.getEntityStatistics()})),this.subs.add(this.entityService.onBulkActionComplete.subscribe(()=>{this.getAllCreators(),this.getEntityStatistics()})),this.subs.add(this.filterQueryService.onNewEntitiesFetched.subscribe(()=>{this.getAllCreators(),this.getEntityStatistics()})),this.setCurrentView(),this.checkForCurrentRouteAndDecideOldFilterToShow()}canDeactivate(){return!this.entityService.pendingUpdate()}clickout(e){this.viewOptionsDropdown&&!this.viewOptionsDropdown.nativeElement.contains(e.target)&&(this.viewChangerDropdownToggled=!1)}openCopyFromWorkspaceModal(){this.entityImportService.openCopyFromWorkspaceModal()}updateImportModalQueryParam(){this.router.navigate([],{relativeTo:this.activatedRoute,queryParams:{importModal:"null"},queryParamsHandling:"merge"})}ngOnDestroy(){this.checkPermissionCreateEntitySubs.unsubscribe(),this.getCreatorsSubs.unsubscribe(),this.subs.unsubscribe(),this.onDestroy.next(),this.onDestroy.complete()}ngOnInit(){return b(this,null,function*(){let e=yield this.featureFlagService.isFeatureEnabled(this.explorerBulkCopyModule);this.showImportModal=this.activatedRoute.snapshot.queryParamMap.get(this.importModalQuerryParam)==="show",this.permissionService.userHasAnyPermission([x.CREATE_ELEMENT,x.CREATE_DRAFT_ELEMENT]).subscribe(t=>{this.showImportModal&&t&&e&&(this.openCopyFromWorkspaceModal(),this.updateImportModalQueryParam(),this.showImportModal=!1)}),console.assert(!!this.currentWorkspace,"currentSpaceUri should not be null"),this.entityConfigService.getAllElementTypesBasedOnViewPermission(this.currentWorkspace?.uri).then(()=>{this.getEntityStatuses(),this.getEntityTypes(),this.getAllCreators(),this.getEntityStatistics()})})}setCurrentView(){let e=this.router.url.split("/"),t=e[e.length-1];this.currentView=t.split("?")[0]}getEntityTypes(){return console.assert(!!this.currentWorkspace,"currentSpaceUri should not be null"),this.entityConfigService.getAllElementTypesBasedOnViewPermission(this.currentWorkspace?.uri).then(e=>{this.entityTypes=e.map(t=>I(w({},t),{label:t.name}))})}getEntityStatuses(){return console.assert(!!this.currentWorkspace,"currentSpaceUri should not be null"),this.entityConfigService.getAllFields(this.currentWorkspace?.uri).then(e=>{let n=e.find(r=>r.uri==="status").propertyValues.find(r=>r.fieldTypePropertyUri.endsWith(Wt.OPTIONS));this.entityStatuses=n?JSON.parse(n.value):[]})}getEntityStatistics(){return b(this,null,function*(){yield this.getEntityTypes()})}getElementType(e){return(this.entityTypes||[]).find(t=>t.uri===e)}getAllCreators(){this.getCreatorsSubs&&this.getCreatorsSubs.unsubscribe(),this.getCreatorsSubs=this.entityService.getCreatorsBySpace().subscribe(e=>{this.contributors=e})}createEntity(e){this.selectedEntityType=e,this.createEntityModalService.openCreateEntityModal({type:e,title:this.translate.instant("explorer-ng.landingPage.createModal.createElement")}),this.trackingService.trackEventById(`explorerElements.initiateCreate.${this.currentView}`)}toggleSideBar(e){this.filterSidebarState=e,e||this.trackingService.trackEventById("explorerTopBar.toggleFilterSidebar",{dimension8:"close"}),setTimeout(()=>{window.dispatchEvent(new Event("resize"))},0)}selectedFilterBarOpened(e){this.selectedFilterIsOpen=e,this.showActiveFilterBar.emit(e),this.barFilterOpenClass=this.selectedFilterIsOpen}checkPermissions(){this.checkPermissionCreateEntitySubs&&this.checkPermissionCreateEntitySubs.unsubscribe(),this.checkPermissionCreateEntitySubs=this.permissionService.userHasAnyPermission([x.CREATE_ELEMENT,x.CREATE_DRAFT_ELEMENT]).subscribe(e=>{this.hasPermissionCreateEntity=e})}searchToggled(e){this.searchToggleState=e,this.headerSubOpenClass=this.searchToggleState}selectView(e){this.currentView=e}checkShowroomSpace(e){this.isShowroomSpace=e.isDefault&&e.isShared&&!e.isMember}openImportDatasheetModal(){this.entityImportService.openImportDatasheetModal()}checkForCurrentRouteAndDecideOldFilterToShow(){this.subs.add(this.router.events.subscribe(e=>{if(e instanceof mi){let t=this.router.url.split("/"),r=t[t.length-1].split("?")[0];this.showOldFilterHeader=!(r===_e.MATRIX||r===_e.BOARD||r===_e.RADAR||r===_e.LIST||r===_e.NETWORK_GRAPH_ROUTE),this.filterSidebarState=this.showOldFilterHeader?this.filterSidebarState:!1}}))}};i.\u0275fac=function(t){return new(t||i)(c(Te),c(Ie),c(oe),c(qe),c(ft),c(Y),c(Qa),c(Xe),c(dt),c(Po),c(ot),c(pt),c(Fl),c(K))},i.\u0275cmp=D({type:i,selectors:[["explorer-landing"]],viewQuery:function(t,n){if(t&1&&(Tt(dg,7,ii),Tt(mg,7)),t&2){let r;tt(r=nt())&&(n.viewOptionsDropdown=r.first),tt(r=nt())&&(n.headerElement=r.first)}},hostVars:4,hostBindings:function(t,n){t&1&&E("click",function(s){return n.clickout(s)},!1,Mr),t&2&&le("bar-filter-open",n.barFilterOpenClass)("header-filter-sub-open",n.headerSubOpenClass)},outputs:{showActiveFilterBar:"showActiveFilterBar"},decls:2,vars:2,consts:[[1,"router-container"]],template:function(t,n){t&1&&(f(0,"div",0),A(1,"router-outlet"),_()),t&2&&le("filter-open",n.filterSidebarState)},dependencies:[gi],styles:[`.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}.no-header[_ngcontent-%COMP%]{display:none}.router-container[_ngcontent-%COMP%]{height:100vh}.router-container.filter-open[_ngcontent-%COMP%]{width:calc(100% - 400px)}.header[_ngcontent-%COMP%]{background:#eff2f480;height:40px;padding:10px 0 0;border-bottom:1px solid #eff2f4;position:relative;transition:min-height .3s ease-out}.header[_ngcontent-%COMP%]   .title-h1[_ngcontent-%COMP%]{margin-top:0;font-size:22px;margin-right:30px}.header.filter-open[_ngcontent-%COMP%]{width:calc(100% - 400px)}.inner-container[_ngcontent-%COMP%]{width:calc(100% - 48px);margin:0 auto}.inner[_ngcontent-%COMP%]{height:100%;display:flex;flex-wrap:wrap;align-items:flex-start;flex:0 0 auto;width:100%;max-width:calc(100% - 60px);padding-bottom:10px}.small-stats[_ngcontent-%COMP%]{pointer-events:auto;display:block;max-width:100%;flex:0 0 auto;border-right:1px solid #8a9bab}.filters[_ngcontent-%COMP%]{flex:1 1 0;display:flex;flex-wrap:nowrap}.filters[_ngcontent-%COMP%] >*{margin-right:24px}.filters[_ngcontent-%COMP%] >*:last-child{margin-right:0}.filters[_ngcontent-%COMP%]  .ng-select-single .ng-placeholder{width:calc(100% - 35px)}.filters[_ngcontent-%COMP%]  .ng-select-single .ng-input{padding-right:30px}.filters[_ngcontent-%COMP%]  .ng-select-single .ng-dropdown-panel{min-width:115px}.filters[_ngcontent-%COMP%]  div[uihotspot=filter_side_panel]{margin-right:0}.view-options[_ngcontent-%COMP%]{position:relative}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:none;color:#627588;font-size:20px;line-height:37px;cursor:pointer}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]   .select-view-icon[_ngcontent-%COMP%]{width:28px;text-align:center}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]   .icon-dropdown[_ngcontent-%COMP%]{font-size:7px;vertical-align:middle;margin-left:12px}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]:hover{color:#098dcd}.view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0;display:flex;flex-wrap:nowrap}.view-options[_ngcontent-%COMP%]     ui-button button>span{display:none;font-size:14px;font-weight:400;color:#627588;display:block;line-height:1.5}.fab-button-container[_ngcontent-%COMP%]{position:fixed!important;bottom:60px;right:40px;z-index:9}.switch-button-icon[_ngcontent-%COMP%]{color:#627588;cursor:pointer;position:relative;height:40px;width:40px;margin-left:5px}.switch-button-icon[_ngcontent-%COMP%]:first-child{margin-left:0}.switch-button-icon[_ngcontent-%COMP%]     button{display:block;position:absolute;top:0;left:0;width:100%!important;height:100%!important}.switch-button-icon[_ngcontent-%COMP%]:before{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);margin-left:0;margin-right:0;z-index:1}.switch-button-icon[_ngcontent-%COMP%]:after{content:"";display:block;width:40px;height:40px;border-radius:100%;background:#e6f6fe;position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;transition:opacity .2s ease-in-out}.switch-button-icon.selected-view[_ngcontent-%COMP%]:after{opacity:1}.icon2-x24-explorer-radar[_ngcontent-%COMP%]:before{font-size:24px}.icon-list-view-1[_ngcontent-%COMP%]:before{font-size:19px}.icon2-x24-explorer-grid[_ngcontent-%COMP%]:before{font-size:24px}.icon2-x24-explorer-portfolio[_ngcontent-%COMP%]:before{font-size:24px}.icon2-x24-network[_ngcontent-%COMP%]:before{font-size:24px;margin-left:-1px}.icon2-x24-view-kanban-board[_ngcontent-%COMP%]:before{font-size:24px}[_nghost-%COMP%]     ui-stats-box.no-hover{pointer-events:none}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats{padding-left:0}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats{padding:0 0 0 20px;flex-direction:column}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-number{width:auto;line-height:26px}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-number:before{display:none}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-number.highlighted{padding:0;min-width:25px}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-label{padding-left:0;width:auto}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-label .stats-normal-label{display:none}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats:first-child{padding-left:0}[_nghost-%COMP%]     ui-stats-box .stats-dropdown{z-index:6}.moveFabLeft[_ngcontent-%COMP%]{position:fixed;right:96px}.fab-transition[_ngcontent-%COMP%]{transition:all .2s ease-in-out;z-index:8}.fab-explorer-view[_ngcontent-%COMP%]{right:inherit;min-width:160px}.hide-create-entity-tooltip[_ngcontent-%COMP%]     .tooltip{display:none!important}@media only screen and (min-width: 0){[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{display:block;background:#fff;border:1px solid #bdc8d4;border-radius:4px;position:absolute;left:0;top:-99999px;visibility:hidden;opacity:0;transition:opacity .3s ease-in-out;z-index:4}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:0 15px;min-width:173px;margin-right:0}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom:none}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button{padding-left:33px;display:block;width:auto}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:after{visibility:hidden}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:before{left:0;transform:translateY(-50%)}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button button{position:relative;text-align:left;width:auto!important}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button button>span{display:block}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button.selected-view, [_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:hover{color:#098dcd}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button.selected-view button span, [_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:hover button span{color:#098dcd}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button.selected-view button span{font-weight:600}[_nghost-%COMP%]   .view-options.active[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{top:100%;visibility:visible;opacity:1}}@media only screen and (min-width: 990px){[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{visibility:visible;opacity:1;top:0;left:0;position:static;border:none;background:transparent;display:flex;flex-wrap:nowrap}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border:none;padding:0;min-width:auto;margin-right:12px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-right:0}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button{width:40px}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button button>span{display:none}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button:before{left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]:not(.filter-open)   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button:after{visibility:visible}}@media only screen and (min-width: 1440px){[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{visibility:visible;opacity:1;top:0;left:0;position:static;border:none;background:transparent;display:flex;flex-wrap:nowrap}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border:none;padding:0;min-width:auto;margin-right:12px}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-right:0}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button{width:40px}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button button>span{display:none}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button:before{left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]   .header.filter-open[_ngcontent-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button:after{visibility:visible}}
/*# sourceMappingURL=explorer-landing.component-BMBUAFT4.css.map */`]});let o=i;return o})();var at=class{};var Vn=(()=>{let i=class i{constructor(e,t){this.sessionService=e,this.redirectService=t}redirectToMaintenanceModePage(){return b(this,null,function*(){!this.isMaintenancePage()&&!this.sessionService.isTokenExpired()&&this.redirectService.generateAppUrlAndRedirect("id","/maintenance")})}isMaintenancePage(){return window.location.href.indexOf("maintenance")>-1}};i.\u0275fac=function(t){return new(t||i)(u(Qe),u($r))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var vp=(()=>{let i=class i{constructor(e,t,n,r){this.maintenanceModeService=e,this.maintenanceRedirectService=t,this.logger=n,this.initializationService=r}canActivate(e){this.initializationService.initialize();let t=this.logger.debug("MaintenanceModeGuard - checking",{routeUrl:e.url});return this.maintenanceModeService.getMaintenanceModeStatus().pipe(ye(n=>(this.logger.debug("MaintenanceModeGuard - completed",{routeUrl:e.url,belongsToLogId:t,currentMaintenanceStatus:n}),n&&this.maintenanceRedirectService.redirectToMaintenanceModePage(),!n)))}};i.\u0275fac=function(t){return new(t||i)(u(at),u(Vn),u(Se),u(da))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var xE=(()=>{let i=class i{constructor(e,t,n,r){this.maintenanceModeService=e,this.loggerService=t,this.maintenanceRedirectService=n,this.sessionService=r,this.maintenanceCheckInProgress=!1,this.maintenanceCheckSource=new wt(null),this.maintenanceChecked=this.maintenanceCheckSource.asObservable()}intercept(e,t){return this.requestCanBeForwarded(e)?t.handle(e):this.maintenanceCheckInProgress?this.maintenanceChecked.pipe(ti(n=>n!==null),B(1),Qt(n=>t.handle(e))):(this.maintenanceCheckInProgress=!0,this.maintenanceCheckSource.next(null),this.maintenanceModeService.getMaintenanceModeStatus().pipe(Qt(n=>this.handleMaintenanceModeSuccess(n,e,t)),xr(()=>{this.maintenanceCheckInProgress=!1})))}handleMaintenanceModeSuccess(e,t,n){if(!e)return this.maintenanceCheckSource.next("done"),n.handle(t);this.maintenanceRedirectService.redirectToMaintenanceModePage()}requestCanBeForwarded(e){return this.sessionService.isTokenExpired()||e.url.indexOf("/maintenance-window/maintenance/status")>-1||e.url.indexOf("/auth-sign-up/authenticate/refresh")>-1||this.maintenanceRedirectService.isMaintenancePage()}};i.\u0275fac=function(t){return new(t||i)(u(at),u(Se),u(Vn),u(Qe))},i.\u0275prov=z({token:i,factory:i.\u0275fac});let o=i;return o})();var Pp={maintenanceMode:{startPhrase:"The application is currently undergoing maintenance!",midPhrase:"We are sorry for the inconvenience.",endPhrase:"If you have any questions or concerns, contact us at",gotoButtonText:"Go to our website!"}};var ug=2e4,fg=1,Mp=(()=>{let i=class i{constructor(e,t){this.httpClient=e,this.environmentService=t,this.restUrl=this.environmentService.getRestUrl()}getMaintenanceModeStatus(e){return(!this.hasValidCachedValue()||e)&&(this.cacheExpiryTime=Date.now()+ug,this.maintenanceModeStatusCache=this.httpClient.get(`${this.restUrl}/maintenance-window/maintenance/status`).pipe(br(fg))),this.maintenanceModeStatusCache}getMaintenanceModeDateTime(){return this.maintenanceModeDateTime=this.httpClient.get(`${this.restUrl}/maintenance-window/maintenance`),this.maintenanceModeDateTime}hasValidCachedValue(){return this.maintenanceModeStatusCache?this.cacheExpiryTime<Date.now()?(this.maintenanceModeStatusCache=null,!1):!0:!1}};i.\u0275fac=function(t){return new(t||i)(u(Ur),u(lt))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var yp=(()=>{let i=class i{constructor(e){e.registerLoader(t=>Promise.resolve(Pp))}};i.\u0275fac=function(t){return new(t||i)(u(Ee))},i.\u0275mod=k({type:i}),i.\u0275inj=T({providers:[{provide:at,useClass:Mp}],imports:[F,ue,qr,Wr,At]});let o=i;return o})();var XE=(()=>{let i=class i{constructor(e,t){this.maintenanceModeService=e,this.maintenanceRedirectService=t,this.maintenanceModeCheckInProgress=!1,this.maintenanceModeCheckSource=new wt(null),this.maintenanceModeChecked=this.maintenanceModeCheckSource.asObservable()}getMaintenanceAuthLink(){return new Hr((e,t)=>this.handleMaintenanceModeAndForward(t,e))}handleMaintenanceModeAndForward(e,t){return this.maintenanceModeCheckInProgress?this.postMaintenaceCheckSteps(e,t):(this.maintenanceModeCheckInProgress=!0,this.maintenanceModeCheckSource.next(null),this.checkMaintenanceModeStatus(e,t))}checkMaintenanceModeStatus(e,t){return new Wo(n=>{let r=null;return $(this.maintenanceModeService.getMaintenanceModeStatus()).then(s=>{if(this.maintenanceModeCheckInProgress=!1,this.maintenanceModeCheckSource.next(s),!s){r=e(t).subscribe(n);return}this.maintenanceRedirectService.redirectToMaintenanceModePage()}).catch(s=>{this.maintenanceModeCheckInProgress=!1}),()=>r?r.unsubscribe():null})}postMaintenaceCheckSteps(e,t){return new Wo(n=>{let r=null;return this.maintenanceModeChecked.pipe(ti(s=>s!==null),B(1)).subscribe(s=>{r=e(t).subscribe(n)}),()=>r?r.unsubscribe():null})}};i.\u0275fac=function(t){return new(t||i)(u(at),u(Vn))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var Ro=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F]});let o=i;return o})();var Up=qt(Hp());var hg=["viewTemplate"],Cg=["wrapper"],wp=(o,i,a)=>({collapsed:o,"stack-minimized":i,mobile:a}),_g=(o,i,a)=>({left:o,width:i,height:a}),Sp=o=>({background:o}),xg=o=>({$implicit:o});function bg(o,i){if(o&1){let a=W();f(0,"span",22),N(1,"translate"),E("click",function(){v(a);let t=m(4);return P(t.closeStack())}),G(2,"Close All"),_()}o&2&&Et("title",V(1,1,"stacked-views.closeAllStacks"))}function vg(o,i){if(o&1){let a=W();f(0,"div",23),E("click",function(){v(a);let t=m(4);return P(t.toggleExpand())}),_()}if(o&2){let a=m(4);Et("title",a.title),d("ngClass",a.stackedViewsService.isCollapsed?"icon-maximize":"icon-minimize")}}function Pg(o,i){if(o&1&&(A(0,"a",24),N(1,"translate"),N(2,"async")),o&2){let a=m(2).$implicit;Et("title",V(1,2,"stacked-views.openInNewTab")),d("href",V(2,4,a.headerInfo.url),pn)}}function Mg(o,i){if(o&1){let a=W();ee(0),f(1,"div",15)(2,"div",16),M(3,bg,3,3,"span",17),f(4,"span",18),N(5,"translate"),E("click",function(){v(a);let t=m().$implicit,n=m(2);return P(n.closeView(t))}),_()()(),f(6,"div",19),N(7,"async"),M(8,vg,1,2,"div",20)(9,Pg,3,6,"a",21),N(10,"async"),_(),te()}if(o&2){let a=m(),e=a.$implicit,t=a.index,n=m(2);g(3),d("ngIf",n.stackedViewsService.views.length!==1),g(),Et("title",V(5,6,"stacked-views.closeStack")),g(2),le("has-multiple-links",V(7,8,e.headerInfo.url)&&t===n.stackedViewsService.views.length-1&&n.expandable),g(2),d("ngIf",n.expandable),g(),d("ngIf",V(10,10,e.headerInfo.url)&&t===n.stackedViewsService.views.length-1)}}function yg(o,i){if(o&1&&(f(0,"span",25),G(1),_()),o&2){let a=m().$implicit;g(),De(a.headerInfo.label)}}function wg(o,i){if(o&1&&(f(0,"span",26),G(1),_()),o&2){let a=m(3);g(),Z(" (+",a.stackedViewsService.views.length-1,") ")}}function Og(o,i){if(o&1&&(A(0,"span",27),N(1,"async")),o&2){let a=m().$implicit;d("ngStyle",ae(3,Sp,a.headerInfo.color?V(1,1,a.headerInfo.color):null))}}function Sg(o,i){o&1&&Yt(0)}function Eg(o,i){if(o&1&&(f(0,"div",28),M(1,Sg,1,0,"ng-container",29),_()),o&2){let a=m().$implicit,e=m(2);g(),d("ngTemplateOutlet",e.viewTemplate)("ngTemplateOutletContext",ae(2,xg,a))}}function Tg(o,i){if(o&1){let a=W();ee(0),f(1,"div",5),M(2,Mg,11,12,"ng-container",1),f(3,"div",6),N(4,"async"),E("click",function(){let t=v(a).$implicit,n=m(2);return P(n.titleBarClicked(t))}),f(5,"span",7),A(6,"i"),M(7,yg,2,1,"span",8),_(),f(8,"span",9),G(9),N(10,"async"),_(),M(11,wg,2,1,"span",10),f(12,"div",11),M(13,Og,2,5,"span",12),f(14,"span",13),N(15,"translate"),E("click",function(t){v(a);let n=m(2);return t.stopPropagation(),t.preventDefault(),P(n.toggleMinimize())}),_()()(),M(16,Eg,2,4,"div",14),_(),te()}if(o&2){let a=i.$implicit,e=i.index,t=m(2);g(),d("ngStyle",li(30,_g,t.stackedViewsService.isCollapsed||t.stackedViewsService.isMinimized?0:t.viewMargin*e+"px",t.stackedViewsService.isCollapsed||t.stackedViewsService.isMinimized?"100%":"calc(100% - "+t.viewMargin*e+"px)",t.stackedViewsService.isCollapsed?"calc(100% - "+t.viewMargin*e+"px)":"100%")),g(),d("ngIf",t.stackedViewsService.views.length-1===e),g(),le("active",e===t.stackedViewsService.views.length-1)("no-bar-color",!a.headerInfo.color)("maximized",!t.stackedViewsService.isMinimized),d("ngStyle",ae(34,Sp,e===t.stackedViewsService.views.length-1&&a.headerInfo.color?V(4,24,a.headerInfo.color):null)),g(3),Sr("f-icon title-icon ",a.headerInfo.icon||"",""),g(),d("ngIf",a.headerInfo.label),g(),le("label-sm-semibold",t.isMobile)("multiple-stack",t.stackedViewsService.views.length>1),g(),Z(" ",V(10,26,a.headerInfo.title)," "),g(2),d("ngIf",t.stackedViewsService.isMinimized&&t.stackedViewsService.views.length>1),g(2),d("ngIf",a.headerInfo.color&&e!==t.stackedViewsService.views.length-1),g(),le("maximized",!t.stackedViewsService.isMinimized),Et("title",V(15,28,t.stackedViewsService.isMinimized?"stacked-views.maximizeStack":"stacked-views.minimizeStack")),g(2),d("ngIf",t.stackedViewsService.views.length-1===e)}}function kg(o,i){if(o&1&&(ee(0),A(1,"div",2),f(2,"div",3,0),M(4,Tg,17,36,"ng-container",4),_(),te()),o&2){let a=m();g(),d("ngClass",li(3,wp,a.stackedViewsService.isCollapsed,a.stackedViewsService.isMinimized,a.isMobile)),g(),d("ngClass",li(7,wp,a.stackedViewsService.isCollapsed,a.stackedViewsService.isMinimized,a.isMobile)),g(2),d("ngForOf",a.stackedViewsService.views)}}var Fg="(max-width: 768px)",Ig=40,Op=26,Ep=(()=>{let i=class i{resized(){this.triggerDimensionChangeEvents()}constructor(e,t,n){this.stackedViewsService=e,this.translate=t,this.breakpointObserver=n,this.isMobile=!1,this.viewMargin=Op,this.expandable=!0,this.subscriptions=[],this.subscriptions.push(this.breakpointObserver.observe(Fg).subscribe(r=>{this.isMobile=r.matches,r.matches?this.viewMargin=Ig:this.viewMargin=Op}))}ngOnInit(){this.stackedViewsService.setExpandable(this.expandable),this.subscriptions.push(this.stackedViewsService.onOpenStack.subscribe(()=>{this.stackedViewsService.isCollapsed?this.title=this.translate.instant("stacked-views.expandStack"):this.title=this.translate.instant("stacked-views.collapseStack"),setTimeout(()=>{this.triggerDimensionChangeEvents()})}),this.stackedViewsService.onExpandStack.subscribe(()=>{setTimeout(()=>{this.triggerDimensionChangeEvents()})}))}ngAfterViewInit(){setTimeout(()=>{this.stackedViewsService.containerReady()},0)}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe())}toggleExpand(){this.stackedViewsService.setExpanded(this.stackedViewsService.isCollapsed),this.stackedViewsService.isCollapsed?this.title=this.translate.instant("stacked-views.expandStack"):this.title=this.translate.instant("stacked-views.collapseStack"),this.stackedViewsService.trackEvent(`stack.${this.stackedViewsService.isCollapsed?"collapse":"expand"}`)}closeView(e){this.stackedViewsService.closeView(e),this.stackedViewsService.trackEvent("stack.close")}closeStack(){this.stackedViewsService.closeStack(),this.stackedViewsService.trackEvent("stack.closeAll")}toggleMinimize(){this.stackedViewsService.setMinimize(!this.stackedViewsService.isMinimized),this.stackedViewsService.trackEvent(`stack.${this.stackedViewsService.isMinimized?"minimize":"maximize"}`)}titleBarClicked(e){this.stackedViewsService.views[this.stackedViewsService.views.length-1].uri===e.uri?this.toggleMinimize():this.stackedViewsService.openView(e)}triggerDimensionChangeEvents(){if(!this.wrapper)return;let e={width:this.wrapper.nativeElement.offsetWidth,height:this.wrapper.nativeElement.offsetHeight};this.stackedViewsService.triggerDimensionChangeEvents(e)}};i.\u0275fac=function(t){return new(t||i)(c(ft),c(Y),c(Ar))},i.\u0275cmp=D({type:i,selectors:[["ui2-stacked-views"]],contentQueries:function(t,n,r){if(t&1&&ai(r,hg,5),t&2){let s;tt(s=nt())&&(n.viewTemplate=s.first)}},viewQuery:function(t,n){if(t&1&&Tt(Cg,5),t&2){let r;tt(r=nt())&&(n.wrapper=r.first)}},hostVars:2,hostBindings:function(t,n){t&1&&E("resize",function(){return n.resized()},!1,dn),t&2&&le("mobile",n.isMobile)},inputs:{expandable:"expandable"},decls:1,vars:1,consts:[["wrapper",""],[4,"ngIf"],[1,"overlay",3,"ngClass"],[1,"wrapper",3,"ngClass"],[4,"ngFor","ngForOf"],[1,"box",3,"ngStyle"],["data-tour","tour-detail-stack",1,"title",3,"click","ngStyle"],[1,"title-left"],["class","title-icon-label",4,"ngIf"],[1,"title-text"],["class","stack-counter",4,"ngIf"],[1,"min-bar"],["class","entity-barcolor",3,"ngStyle",4,"ngIf"],[1,"stack-position","f-icon","icon-maximize-tab",3,"click","title"],["class","template-wrapper",4,"ngIf"],[1,"actions-right"],[1,"icon-close-wrap","ui-icon"],["class","ui-icon f-icon close-all",3,"title","click",4,"ngIf"],[1,"ui-icon","f-icon","icon-close",3,"click","title"],[1,"actions-left"],["class","ui-icon f-icon",3,"ngClass","title","click",4,"ngIf"],["class","ui-icon f-icon icon-diagonal-arrow","target","_blank",3,"href","title",4,"ngIf"],[1,"ui-icon","f-icon","close-all",3,"click","title"],[1,"ui-icon","f-icon",3,"click","ngClass","title"],["target","_blank",1,"ui-icon","f-icon","icon-diagonal-arrow",3,"href","title"],[1,"title-icon-label"],[1,"stack-counter"],[1,"entity-barcolor",3,"ngStyle"],[1,"template-wrapper"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(t,n){t&1&&M(0,kg,5,11,"ng-container",1),t&2&&d("ngIf",n.stackedViewsService.views.length>=1)},dependencies:[Oe,kt,ne,gn,mn,Ft,Le],styles:[`[_nghost-%COMP%]{display:block;position:fixed;z-index:30}.overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:72px;width:calc(100vw - 72px);height:100vh;z-index:29;background:#51617099;opacity:.5}.box[_ngcontent-%COMP%]{background:transparent;padding:30px;border-radius:12px;box-shadow:1px 0 10px #3e4d63;border-top:none;width:100%;height:100%;position:absolute;overflow:hidden;z-index:0;bottom:0}.box[_ngcontent-%COMP%]:last-child   .title[_ngcontent-%COMP%]{max-height:28px}.box[_ngcontent-%COMP%]:last-child   .title[_ngcontent-%COMP%]   .entity-barcolor[_ngcontent-%COMP%]{display:none}.ui-icon[_ngcontent-%COMP%]{color:#fff;cursor:pointer;display:block;width:36px;height:36px;position:relative;text-decoration:none;text-shadow:0px 0px 3px rgba(62,77,99,.6);background:#51617080;border-radius:36px;margin-left:10px;transition:background .2s ease-in-out}.ui-icon[_ngcontent-%COMP%]:before{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.ui-icon[_ngcontent-%COMP%]:hover{background:#516170e6}.ui-icon.close-all[_ngcontent-%COMP%]{width:auto;border-radius:36px;display:flex;align-items:center;font-weight:400;font-size:16px;padding:0 10px}.actions-right[_ngcontent-%COMP%]{position:absolute;right:26px;top:18px;display:flex;z-index:1}.actions-left[_ngcontent-%COMP%]{position:absolute;left:54px;top:18px;display:flex;z-index:1}.actions-left[_ngcontent-%COMP%]   .ui-icon[_ngcontent-%COMP%]{margin-right:0;margin-left:0;font-size:22px;width:40px;border-radius:40px}.actions-left[_ngcontent-%COMP%]   .ui-icon[_ngcontent-%COMP%]:only-child{width:36px}.actions-left[_ngcontent-%COMP%]   .icon-diagonal-arrow[_ngcontent-%COMP%]{font-size:16px}.actions-left.has-multiple-links[_ngcontent-%COMP%]   .ui-icon[_ngcontent-%COMP%]:first-child{border-top-right-radius:0;border-bottom-right-radius:0;border-right:1px solid #fff}.actions-left.has-multiple-links[_ngcontent-%COMP%]   .ui-icon[_ngcontent-%COMP%]:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.icon-close-wrap[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:flex-start;align-items:stretch;align-content:stretch;margin-left:10px;width:36px;border-radius:18px}.icon-close-wrap[_ngcontent-%COMP%]   .ui-icon[_ngcontent-%COMP%]{margin-left:0;background:transparent;transition:width .5s ease-in-out}.icon-close-wrap[_ngcontent-%COMP%]   .close-all[_ngcontent-%COMP%]{padding:0 5px 0 20px;opacity:0;visibility:hidden;position:absolute;top:-9999999px}.icon-close-wrap[_ngcontent-%COMP%]   .close-all[_ngcontent-%COMP%]:hover{text-decoration:underline}.icon-close-wrap[_ngcontent-%COMP%]:hover{width:auto}.icon-close-wrap[_ngcontent-%COMP%]:hover   .close-all[_ngcontent-%COMP%]{opacity:1;visibility:visible;position:static}.icon-close-wrap[_ngcontent-%COMP%]:hover   .icon-close[_ngcontent-%COMP%]{width:36px}.icon-dropdown[_ngcontent-%COMP%]{transform:rotate(90deg);display:block;font-size:12px}.icon-dropdown[_ngcontent-%COMP%]:before{margin-top:2px}.icon-expand[_ngcontent-%COMP%]{font-size:16.5px}.title[_ngcontent-%COMP%]{cursor:pointer;position:absolute;z-index:1;left:0;top:0;transform:rotate(-90deg) translate(-100%);transform-origin:top left;padding:0 27px 0 23px;width:100vh;height:56px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:12px 12px 0 0;text-align:right;color:#fff;font-weight:600;font-size:13px;line-height:28px;background:#3e4d63;transition:"background" .3s ease-in-out}.title[_ngcontent-%COMP%]:hover{background:#526582}.title[_ngcontent-%COMP%]   .min-bar[_ngcontent-%COMP%]{display:contents}.title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{max-width:60%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:inline-block}.title[_ngcontent-%COMP%]   .entity-barcolor[_ngcontent-%COMP%]{width:5px;height:12px;background-color:#fff;position:absolute;top:7px;right:16px}.title[_ngcontent-%COMP%]   .title-left[_ngcontent-%COMP%]{position:absolute;left:65px}.title[_ngcontent-%COMP%]   .title-icon-label[_ngcontent-%COMP%]{font-size:12px;font-weight:500;margin-left:10px;color:#8a9bab}.title[_ngcontent-%COMP%]   .title-icon[_ngcontent-%COMP%]{color:#8a9bab}.title[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]{vertical-align:top;margin-left:12px;font-size:18px;display:inline-block;color:#fff;display:none;transform:scale(1);float:right}.title[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]:before{position:relative;top:0}.title[_ngcontent-%COMP%]   .stack-position.maximized[_ngcontent-%COMP%]:before{top:-2px;content:"\\e8ab";font-size:13px}.title.active[_ngcontent-%COMP%]{background:#bdc8d4;padding-right:15px}.title.active[_ngcontent-%COMP%]   .title-icon[_ngcontent-%COMP%], .title.active[_ngcontent-%COMP%]   .title-icon-label[_ngcontent-%COMP%]{color:#fff}.title.no-bar-color[_ngcontent-%COMP%]{padding-right:15px}.title.no-bar-color.active[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{color:#3e4d63}.title.no-bar-color.active[_ngcontent-%COMP%]   .title-icon[_ngcontent-%COMP%], .title.no-bar-color.active[_ngcontent-%COMP%]   .title-icon-label[_ngcontent-%COMP%]{color:#627588}.template-wrapper[_ngcontent-%COMP%]{position:absolute;top:0;width:calc(100% - 28px);left:28px;z-index:0;overflow:hidden auto;height:100%;background-color:#fff}.wrapper[_ngcontent-%COMP%]:not(.collapsed)   .title-left[_ngcontent-%COMP%]{margin-left:22px}.collapsed.overlay[_ngcontent-%COMP%]{display:none}.collapsed[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{width:100%;transform:none}.collapsed[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-left[_ngcontent-%COMP%]{left:20px}.collapsed[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{max-width:70%}.collapsed[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-icon[_ngcontent-%COMP%], .collapsed[_ngcontent-%COMP%]   .title.active[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]{display:inline-block}.collapsed[_ngcontent-%COMP%]   .template-wrapper[_ngcontent-%COMP%]{width:100%;height:calc(100% - 28px);left:0;top:28px}.collapsed[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%], .collapsed[_ngcontent-%COMP%]   .actions-left[_ngcontent-%COMP%]{top:38px}.collapsed[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]:last-child   .actions-right[_ngcontent-%COMP%], .collapsed[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]:last-child   .actions-left[_ngcontent-%COMP%]{top:46px}.collapsed[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%]{right:20px}.collapsed[_ngcontent-%COMP%]   .actions-left[_ngcontent-%COMP%]{left:20px}.stack-minimized.overlay[_ngcontent-%COMP%]{display:none}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{display:none;padding:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%], .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .actions-right[_ngcontent-%COMP%], .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .actions-left[_ngcontent-%COMP%], .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .template-wrapper[_ngcontent-%COMP%], .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .icon-diagonal-arrow[_ngcontent-%COMP%], .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title-left[_ngcontent-%COMP%]{display:none}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{max-height:50px;line-height:50px;text-align:left;background:#3e4d63!important;transform:none;width:100%}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{max-width:100%;display:inline-block;font-size:15px;color:#fff!important}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%] > .stack-counter[_ngcontent-%COMP%]{position:absolute;top:0;right:0}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-text.multiple-stack[_ngcontent-%COMP%]{position:relative}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]{display:inline-block}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title.active[_ngcontent-%COMP%]{display:flex}.stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]:last-child{display:block;height:100%!important}@media only screen and (max-width: 640px){.wrapper[_ngcontent-%COMP%]   .actions-left[_ngcontent-%COMP%]   .icon-minimize[_ngcontent-%COMP%], .wrapper[_ngcontent-%COMP%]   .actions-left[_ngcontent-%COMP%]   .icon-maximize[_ngcontent-%COMP%]{display:none}.wrapper[_ngcontent-%COMP%]   .actions-left.has-multiple-links[_ngcontent-%COMP%]   .ui-icon[_ngcontent-%COMP%]{border-radius:100%}.overlay[_ngcontent-%COMP%]{width:100vw;left:0}}.wrapper[_ngcontent-%COMP%]{box-shadow:0 0 2px #555c6fcc;overflow:hidden;border-radius:12px;width:calc(100% - 120px);height:calc(100% - 72px);position:fixed;z-index:30;inset:36px 24px auto auto}.wrapper.collapsed[_ngcontent-%COMP%]{max-width:450px;min-width:350px;margin-top:14px}.wrapper.stack-minimized[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-bottom-right-radius:0;box-shadow:1px 2px 4px #3e4d6333;height:50px;max-width:350px;top:auto;bottom:0}@media only screen and (max-width: 640px){.wrapper.collapsed[_ngcontent-%COMP%]{min-width:auto}}.mobile[_nghost-%COMP%]     explorer-detail-page .detail-page-wrap .header-columns{width:88%}.mobile[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]:not(.main-white){width:100%!important}.mobile[_nghost-%COMP%]   .wrapper[_ngcontent-%COMP%]{box-shadow:0 0 2px #3e4d63cc;overflow:hidden;border-radius:12px;height:calc(100% - 85px);position:fixed;z-index:50}.mobile[_nghost-%COMP%]   .wrapper.collapsed[_ngcontent-%COMP%]{max-width:unset;min-width:unset;margin-top:56px!important}.mobile[_nghost-%COMP%]   .wrapper.stack-minimized[_ngcontent-%COMP%]{border-radius:6px 6px 0 0;box-shadow:none;height:71px;max-width:100%;top:auto;bottom:0}.mobile[_nghost-%COMP%]   .actions-right[_ngcontent-%COMP%]{right:16px;top:52px!important}.mobile[_nghost-%COMP%]   .actions-left[_ngcontent-%COMP%]{left:16px;top:52px!important}.mobile[_nghost-%COMP%]   .actions-left[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{width:36px;border-radius:40px!important}.mobile[_nghost-%COMP%]   .template-wrapper[_ngcontent-%COMP%]::-webkit-scrollbar{display:none}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]:only-child{background-color:transparent}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximised[_ngcontent-%COMP%]{margin-top:-10px}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximised[_ngcontent-%COMP%]:last-child{margin:0}.mobile[_nghost-%COMP%]   .stack-minimized.overlay[_ngcontent-%COMP%]{display:none}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]{display:none}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{display:flex;height:71px;max-height:unset;align-items:center;justify-content:end;padding:0 16px}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{display:inline-block;font-size:14px;line-height:14px;font-weight:unset;padding-right:4px}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]   .stack-counter[_ngcontent-%COMP%]{position:relative;text-overflow:unset}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]{display:inline-block;margin-left:4px}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]:before{font-size:14px;margin:5px}.mobile[_nghost-%COMP%]   .stack-minimized[_ngcontent-%COMP%]   .box[_ngcontent-%COMP%]:last-child{display:block;position:relative;height:71px!important;box-shadow:none}.mobile[_nghost-%COMP%]   .icon-close-wrap[_ngcontent-%COMP%]{width:auto}.mobile[_nghost-%COMP%]   .icon-close-wrap[_ngcontent-%COMP%]   .close-all[_ngcontent-%COMP%]{opacity:1;visibility:visible;position:static}.mobile[_nghost-%COMP%]   .icon-close-wrap[_ngcontent-%COMP%]   .icon-close[_ngcontent-%COMP%]{width:36px}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]{background:#3e4d63}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximized[_ngcontent-%COMP%]{height:41px;display:flex;align-items:center;justify-content:end;padding:0 16px 0 0}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximized[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{padding-top:3px}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximized[_ngcontent-%COMP%]   .min-bar[_ngcontent-%COMP%]{width:12px;display:flex;align-items:center;justify-content:end}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximized[_ngcontent-%COMP%]   .min-bar[_ngcontent-%COMP%]   .entity-barcolor[_ngcontent-%COMP%]{width:4px;height:14px;background-color:#fff;margin-top:6px;position:relative;top:0;right:0}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title.maximized[_ngcontent-%COMP%]   .min-bar[_ngcontent-%COMP%]   .stack-position[_ngcontent-%COMP%]{top:unset;margin:0}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{padding-bottom:3px;align-items:center}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]:last-child   .title[_ngcontent-%COMP%]{max-height:40px;padding-bottom:0}.mobile[_nghost-%COMP%]   .box[_ngcontent-%COMP%]:last-child   .title[_ngcontent-%COMP%]   .title-text[_ngcontent-%COMP%]{padding-right:10px}
/*# sourceMappingURL=stacked-views.component-OJX6PLVN.css.map */`]});let o=i;return o})();var dr="ex_",Rg="f",gT=(()=>{let i=class i{constructor(e,t){this.router=e,this.route=t,this.views=[],this.urlParams={stack:[],expanded:!1},this.isExpandable=!0,this.isCollapsed=!0,this.isMinimized=!1,this.viewConfig={},this.openViewEvents=new U,this.closeViewEvents=new U,this.openStackEvents=new U,this.closeStackEvents=new U,this.expandEvents=new U,this.dimensionChangeEvents=new U,this.stackMinimizedEvents=new U,this.trackedEvents=new U,this.onDimensionChange=new xt,this.onOpenView=this.openViewEvents.asObservable(),this.onCloseView=this.closeViewEvents.asObservable(),this.onOpenStack=this.openStackEvents.asObservable(),this.onCloseStack=this.closeStackEvents.asObservable(),this.onExpandStack=this.expandEvents.asObservable(),this.onDimensionChange=this.dimensionChangeEvents.asObservable(),this.onMinimizeStack=this.stackMinimizedEvents.asObservable(),this.onTrackedEvents=this.trackedEvents.asObservable()}containerReady(){this.route.queryParams.subscribe(e=>{this.originalParams=w({},e),delete this.originalParams.stack;let t=this.parseUrl(e.stack);!this.views.length&&t.length&&this.openStackEvents.next(),this.views.length&&!t.length&&this.closeStackEvents.next(),(this.views.length!==t.length?!0:t.some((r,s)=>{let l=this.views.findIndex(p=>p.uri===r.uri);return l===-1||s!==l}))&&(this.views=t.map(r=>I(w({},r),{headerInfo:{title:(this.viewConfig[r.type].title||this.fallbackTitle)(r.uri),url:this.viewConfig[r.type].url?this.viewConfig[r.type].url(r.uri):void 0,color:this.viewConfig[r.type].color?this.viewConfig[r.type].color(r.uri):void 0,icon:this.viewConfig[r.type].icon?this.viewConfig[r.type].icon(r.uri):void 0,label:this.viewConfig[r.type].label?this.viewConfig[r.type].label(r.uri):void 0}})))})}getViews(){return this.views}registerTemplate(e,t){this.viewConfig[e]={title:t.title,url:t.url,color:t.color,icon:t.icon,label:t.label}}setExpandable(e){this.isExpandable=e}fallbackTitle(e){return Promise.resolve(e)}parseUrl(e){let t=(e||"").startsWith(dr);t&&(e=e.substring(dr.length));let n=e?e.split(",").map(r=>{let s=r.split(":"),l=s[0];return{uri:l===Rg?s.slice(1).join(":"):s[1],type:l}}):[];return this.urlParams.stack=n,this.urlParams.expanded=t&&this.isExpandable,this.expandEvents.next(this.urlParams.expanded),this.isCollapsed=!this.urlParams.expanded,n}openStack(e){(this.openViewAwait$||xe(!0)).subscribe(n=>{this.setMinimize(!1),n&&(this.urlParams.stack=e,this.openViewEvents.next(e[e.length-1]),this.updateQueryString())})}openView(e,t=!0){(this.openViewAwait$||xe(!0)).subscribe(r=>{if(t&&this.setMinimize(!1),r){let s=this.urlParams.stack.findIndex(l=>l.uri===e.uri&&l.type===e.type);if(s>-1){let l=this.urlParams.stack.splice(s,1)[0];this.urlParams.stack.push(l),this.openViewEvents.next(l)}else this.urlParams.stack.push(e),this.openViewEvents.next(e);this.updateQueryString()}})}closeView(e,t=!0){(this.closeViewAwait$||xe(!0)).subscribe(r=>{if(r){if(!e)this.views.pop();else{let s=this.urlParams.stack.findIndex(l=>l.uri===e.uri&&l.type===e.type);s>-1&&(this.urlParams.stack.splice(s,1),this.closeViewEvents.next(e),t&&this.isMinimized&&this.setMinimize(!1))}this.updateQueryString()}})}closeStack(){return new Promise((e,t)=>{(this.closeViewAwait$||xe(!0)).subscribe(r=>b(this,null,function*(){if(r){this.urlParams.stack.forEach(l=>{this.closeViewEvents.next(l)});let s=yield this.cleanQueryString();this.isMinimized&&this.setMinimize(!1),e(s)}else t(!1)}),r=>{t(r)})})}setExpanded(e){let t=this.urlParams.expanded;e&&!this.isExpandable||e&&t||!e&&!t||(this.urlParams.expanded=e,this.isCollapsed=!this.urlParams.expanded,this.expandEvents.next(e),this.updateQueryString())}setMinimize(e){this.isMinimized=e,this.stackMinimizedEvents.next(this.isMinimized)}updateQueryString(){if(this.urlParams.stack.length===0){this.cleanQueryString();return}let e=this.urlParams.stack.map(n=>`${n.type}:${n.uri}`).join(","),t={stack:`${this.urlParams.expanded?dr:""}${e}`};this.router.navigate([],{queryParams:t,queryParamsHandling:"merge",replaceUrl:!0})}cleanQueryString(){return b(this,null,function*(){return yield this.router.navigate([],{queryParams:this.originalParams,replaceUrl:!0})})}triggerDimensionChangeEvents(e){this.dimensionChangeEvents.next(e)}trackEvent(e){this.trackedEvents.next(e)}};i.\u0275fac=function(t){return new(t||i)(u(qe),u(ot))},i.\u0275prov=z({token:i,factory:i.\u0275fac});let o=i;return o})();var Tp={"stacked-views":{expandStack:"",collapseStack:"",closeStack:"",closeAllStacks:"",minimizeStack:"",maximizeStack:""}};var mr={"stacked-views":{expandStack:"Expand Stack",collapseStack:"Collapse Stack",closeStack:"Close Card",closeAllStacks:"Close all Cards",minimizeStack:"Minimize Stack",maximizeStack:"Maximize Stack",openInNewTab:"Open in New Tab"}};var kp=(()=>{let i=class i{static forRoot(){return{ngModule:i}}constructor(e,t){this.translateRegistry=e,this.translate=t,this.translateRegistry.registerLoader(n=>Promise.resolve({en:mr,de:Tp}[n]||mr)),this.translate.setDefaultLang("en"),this.translate.use("en")}};i.\u0275fac=function(t){return new(t||i)(u(Ee),u(Y))},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,ue,Ne]});let o=i;return o})();var ur=qt(bn());var Ag=(o,i)=>({"condensed-stack-open":o,"stack-minimized":i}),Lg=(o,i)=>({"expand-stack":o,"condensed-stack":i}),Ng=()=>[],Vg=(o,i)=>({evaluationBasis:o,uri:i}),Dg=o=>({"stack-minimized-attachment":o});function Bg(o,i){if(o&1&&(ee(0),A(1,"explorer-detail-page",6),te()),o&2){let a=m().$implicit,e=m();g(),d("entityUri",a.uri)("ngClass",si(2,Lg,e.stackExpanded&&e.stackOpen,!e.stackExpanded&&e.stackOpen))}}function jg(o,i){if(o&1){let a=W();f(0,"signals-feed-detail-v2",8),N(1,"async"),E("trackEventViaAncestor",function(t){v(a);let n=m(3);return P(n.trackSignalsEvent(t))})("createElement",function(t){v(a);let n=m(3);return P(n.createElementFromSignal(t))})("factActionClicked",function(t){v(a);let n=m(3);return P(n.factActionClicked(t))})("feedPartClicked",function(t){v(a);let n=m(3);return P(n.feedPartClicked(t))}),_()}if(o&2){let a=m(2).$implicit,e=m();d("tenantUri",e.tenantUri)("ngClass",e.stackExpanded?"":"condensed")("documentUri",a.uri)("actions",Er(11,Ng))("enableEvaluation",e.showSignalRatings)("evaluationBasis",si(12,Vg,e.evaluationBasis.ENTITY,a.uri))("showCreateElementCTA",V(1,9,e.showCreateElementButton))("relatedElementUri",e.signalRelatedElementUri)("includeDuplicateSignals",e.includeDuplicateSignals)}}function zg(o,i){if(o&1&&(ee(0),M(1,jg,2,15,"signals-feed-detail-v2",7),te()),o&2){let a=m().$implicit;g(),d("ngIf",a.uri)}}function Wg(o,i){if(o&1){let a=W();ee(0),f(1,"signals-fact-detail",9),E("factActionClicked",function(t){v(a);let n=m(2);return P(n.factActionClicked(t))}),_(),te()}if(o&2){let a=m().$implicit,e=m();g(),d("factUri",a.uri)("allowAddToFilterAction",!0)("ngClass",e.stackExpanded?"":"condensed")}}function Hg(o,i){if(o&1&&(ee(0),A(1,"explorer-widget-detail-page",10),te()),o&2){let a=m().$implicit;g(),d("stackView",a)}}function Gg(o,i){if(o&1){let a=W();f(0,"signals-cluster-detail",12),N(1,"async"),E("createElementClicked",function(t){v(a);let n=m(3);return P(n.createElementFromCluster(t))})("viewElementClicked",function(t){v(a);let n=m(3);return P(n.viewElementFromCluster(t))})("tagClicked",function(t){v(a);let n=m(3);return P(n.onClusterTagClicked(t))})("copyLinkClicked",function(t){v(a);let n=m(3);return P(n.onCopyLinkClicked(t))})("editIconClicked",function(t){v(a);let n=m(3);return P(n.onEditIconClicked(t))}),_()}if(o&2){let a=m(2).$implicit,e=m();le("condensed",!e.stackExpanded),d("clusterId",a.uri)("elementTypes",e.elementTypes)("elementTypeRequiredFieldsMap",e.elementTypeRequiredFieldsMap)("relatedElementUri",e.clusterRelatedElementUri)("copyLinkToolTipText",e.clusterCopyLinkTooltipText)("isElementCreating",e.isClusterElementCreating)("resetCreateElementSelect",e.isClusterCreateElementSelectReset)("isCreateElementButtonVisible",V(1,10,e.showCreateElementButton))}}function $g(o,i){if(o&1&&(ee(0),M(1,Gg,2,12,"signals-cluster-detail",11),te()),o&2){let a=m().$implicit;g(),d("ngIf",a.uri)}}function qg(o,i){if(o&1&&(ee(0,4),M(1,Bg,2,5,"ng-container",5)(2,zg,2,1,"ng-container",5)(3,Wg,2,3,"ng-container",5)(4,Hg,2,1,"ng-container",5)(5,$g,2,1,"ng-container",5),te()),o&2){let a=i.$implicit,e=m();d("ngSwitch",a.type),g(),d("ngSwitchCase",e.entityStackTemplateUri),g(),d("ngSwitchCase",e.documentTemplateUri),g(),d("ngSwitchCase",e.factTemplateUri),g(),d("ngSwitchCase",e.widgetTemplateUri),g(),d("ngSwitchCase",e.clusterDetailUri)}}function Qg(o,i){if(o&1&&A(0,"explorer-attachment-box",13),o&2){let a=m();d("attachmentComponentId",a.attachmentComponentId)("customClass",a.stackExpanded||a.stackOpen?"stack-opened":"no-stack")("ngClass",ae(3,Dg,a.stackMinimized))}}var Yg="signals",Fp="strong-signals.copyURLToClipboard",Kg="strong-signals.copied",Jg="strong-signals.elementCreationError",Xg=2e3,Zg=1,gr="[App Component]",eu="@",tu="workflowActionsSubmission",Ip="workflowDefinition",nu=5e3,iu="vawEYSsqh7mODmY",fr=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h,C,O,S,J,me,pe,j,re,Ce,Pe,Me,Ve,yt,Dn,Ao,Lo,No,Vo,Do,Bo,jo,zo,Lp,Np,Vp,Dp,Bp,jp,zp,Wp){this.radarService=e,this.stackedViewService=t,this.relatedContentService=n,this.environmentService=r,this.entityService=s,this.entityConfigHelperService=l,this.internetconnectionService=p,this.toastNotificationsService=h,this.translate=C,this.portfolioViewService=O,this.uiStateService=S,this.router=J,this.uploader=me,this.explorerRadarFullscreenService=pe,this.networkGraphExplorerViewService=j,this.trackingService=re,this.featureFlagService=Ce,this.permissionService=Pe,this.createEntityModalService=Me,this.titleService=Ve,this.draftService=yt,this.filterQueryService=Dn,this.logger=Ao,this.commentService=Lo,this.factDetailService=No,this.factActionsService=Vo,this.factsService=Do,this.feedRedirectionService=Bo,this.detailPageService=jo,this.tagVisualizationService=zo,this.activatedRoute=Lp,this.clipBoard=Np,this.elementPermissionService=Vp,this.modalService=Dp,this.store=Bp,this.baseHref=jp,this.filtersService=zp,this.feedFilterService=Wp,this.destroyRef=Ge(ge),this.stackExpanded=!1,this.stackMinimized=!1,this.stackOpen=!1,this.toastId="",this.subscriptions=[],this.entityStackTemplateUri=Ct.ENTITY,this.documentTemplateUri=Ct.DOCUMENT,this.factTemplateUri=Ct.FACT,this.widgetTemplateUri=Ct.WIDGET,this.clusterDetailUri=Ct.CLUSTER,this.hideHeader=!1,this.detailPage=!1,this.loadingObservables=[],this.routingLoading=new U,this.tenantUri="",this.showSignalRatings=!1,this.signalRelatedElementUri="",this.clusterRelatedElementUri="",this.clusterCopyLinkTooltipText=this.translate.instant(Fp),this.evaluationBasis=gs,this.radarFullScreen=!1,this.networkFullScreen=!1,this.condensedStackOpen=!1,this.isClusterElementCreating=!1,this.elementTypes=[],this.entityTypeCachedRequiredControls=new Map,this.availableRenderersControlTypeUri=Object.values(nl),this.isClusterCreateElementSelectReset=!1,this.elementTypeRequiredFieldsMap=new Map,this.onDestroy=new U,this.includeDuplicateSignals=!0,this.checkInternetConnection(),this.subscribeToRouterEvent()}ngOnInit(){return b(this,null,function*(){let e;this.configStackedViews(),this.stackedViewService.onOpenStack.subscribe(()=>{this.stackOpen=!0,this.condensedStackOpen=!this.stackExpanded&&this.stackOpen,setTimeout(()=>{let t=this.stackedViewService.views.length?this.stackedViewService.views[this.stackedViewService.views.length-1]:null;e=t?.uri||"",this.maybeUpdateSignalRelatedElement(t),this.fetchClusterRelatedElement(t),this.radarService.resizeSvg.next()})}),this.tenantUri=(yield $(this.store.select(Ye.selectCurrentTenant).pipe(H())))?.tenantUri,console.assert(!!this.tenantUri,"tenant should not be null"),this.setupTabTitle(),this.stackedViewService.onCloseStack.subscribe(()=>{this.stackOpen=!1,this.condensedStackOpen=!this.stackExpanded&&this.stackOpen,setTimeout(()=>{this.radarService.onClickEntity.next(null),this.relatedContentService.onSelectNode.next("")}),this.portfolioViewService.clickedEntity(null)}),this.stackedViewService.onOpenView.subscribe(t=>{this.commentService.editCommentDirty=!1,this.commentService.editComment=null,this.commentService.addCommentInputDirty=!1,e&&this.uiStateService.resetDirtyStates(e,!0),e=t.uri,setTimeout(()=>{this.attachmentComponentId=this.uploader.getComponentIdByEntityUri(e)},0),this.maybeUpdateSignalRelatedElement(t),this.fetchClusterRelatedElement(t)}),this.stackedViewService.onCloseView.subscribe(t=>{this.uiStateService.resetDirtyStates(t.uri);let n=this.stackedViewService.getViews();this.relatedContentService.onSelectNode.next(n[n.length-1].uri),this.attachmentComponentId=n.length>1?this.uploader.getComponentIdByEntityUri(n[n.length-2].uri):Promise.resolve(null);let r=n.length>1?n[n.length-2]:null;this.maybeUpdateSignalRelatedElement(r),this.fetchClusterRelatedElement(r)}),this.stackedViewService.onExpandStack.subscribe(t=>{this.stackExpanded=t,this.condensedStackOpen=!this.stackExpanded&&this.stackOpen}),this.stackedViewService.onMinimizeStack.subscribe(t=>{setTimeout(()=>{this.stackMinimized=t},0)}),this.uiStateService.onUnsavedStatusChange.subscribe(t=>{let n=this.stackedViewService.views.length&&t&&t.isDirty&&e&&e===t.entityUri?new xt(r=>{this.uiStateService.showStackViewLeaveConfirm().subscribe(s=>{s&&(this.draftService.purgeAllDrafts(t.entityUri),this.uiStateService.resetDirtyStates(t.entityUri)),r.next(s),r.complete()})}):xe(!0);this.stackedViewService.closeViewAwait$=n,this.stackedViewService.openViewAwait$=n}),this.entityService.onEntityDeleted(()=>{this.uiStateService.resetDirtyStates()}),this.entityService.onPendingUpdate.subscribe(t=>{let n=this.stackedViewService.views.length&&t?new xt(r=>{this.trackingService.trackEventById("explorer.elementUpdate.triggerWarningModal"),this.uiStateService.showStackViewLeaveConfirm().subscribe(s=>{r.next(s),r.complete()})}):xe(!0);this.stackedViewService.closeViewAwait$=n,this.stackedViewService.openViewAwait$=n}),this.explorerRadarFullscreenService.onRadarFullScreenToggle(t=>{this.radarFullScreen=t,this.hideHeader=t}),this.networkGraphExplorerViewService.onNetworkGraphFullScreenToggle(t=>{this.networkFullScreen=t,this.hideHeader=t}),this.subscriptions.push(this.stackedViewService.onTrackedEvents.subscribe(t=>{this.trackingService.trackEventById(t)})),this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R(this.destroyRef)).subscribe(t=>b(this,null,function*(){this.currentSpaceUri=t,this.stackedViewService.getViews().length&&(yield this.stackedViewService.closeStack()),this.checkInsightsAndPermissions(),this.fetchElementTypes()})),this.subscriptions.push(this.factActionsService.onTagClicked().subscribe(t=>b(this,null,function*(){let n=yield this.factsService.buildInsightsUrlForFact({uri:t.factUri,label:t.factLabel});this.feedRedirectionService.redirectToInsights({url:n})}))),this.featureFlagService.isFeatureEnabled("insights.app.signal-ratings").then(t=>{this.showSignalRatings=t}),this.detailPageService.onEntitySubmissionClickedObs.subscribe(t=>{this.onEntitySubmissionClicked(t)}),stopContainerPreload(),this.listenToClusterCreateEntityModalOpenAndClose(),this.initializeAttachmentComponentId()})}checkInsightsAndPermissions(){this.isInsightsEnabled=Re([Bn(this.featureFlagService.isFeatureEnabled("insights.app")).pipe(B(1)),Bn(this.featureFlagService.isFeatureEnabled("insights.app.enabled")).pipe(B(1))]).pipe(ye(([n,r])=>n&&r));let e=Re([Bn(this.featureFlagService.isFeatureEnabled("signals.lib.createElement")).pipe(B(1)),this.isInsightsEnabled]).pipe(ye(([n,r])=>n||r)),t=Bn(this.entityConfigHelperService.checkCreatePermissionForAllElementTypes()).pipe(B(1));this.showCreateElementButton=Re([t,e]).pipe(ye(([n,r])=>n&&r))}setupTabTitle(){let e={appTitle:"ITONICS Explorer",showTenantName:!1};this.titleService.setTitleItem(e),this.subscriptions.push(this.titleService.generateTabTitle().subscribe(()=>{this.titleService.generateAppTitle()}))}configStackedViews(){this.stackedViewService.registerTemplate(this.entityStackTemplateUri,{title:e=>this.entityService.getEntityTitle(e),url:e=>b(this,null,function*(){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let t=this.currentSpaceUri;return`${this.environmentService.getUrl(zn.EXPLORER)}/${t}/detail/${e}`}),color:e=>$(this.entityService.getEntityDetail(e).pipe(B(1))).then(t=>(this.activeElementInStack=t,console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigHelperService.getElementType(t.elementTypeUri,this.currentSpaceUri).then(n=>n.color)))})}checkInternetConnection(){let e=this.internetconnectionService.checkConnection().subscribe(t=>{t?this.toastNotificationsService.closeToast(this.toastId):this.toastId=this.toastNotificationsService.showToast({content:this.translate.instant("explorer-ng.errors.noInternetConnection"),type:ie.ALERT,closeable:!1})});this.subscriptions.push(e)}subscribeToRouterEvent(){this.loadingObservables.push(this.routingLoading.asObservable()),this.router.events.subscribe(e=>{e instanceof zr&&this.routingLoading.next(!0),e instanceof mi&&(this.routingLoading.next(!1),this.initializeAttachmentComponentId())})}initializeAttachmentComponentId(){let e=this.findConfig(this.router.routerState.snapshot.root);this.hideHeader=this.radarFullScreen||this.isErrorPage(e),this.detailPage=this.isDetailPage(e),this.detailPage&&(this.attachmentComponentId=this.uploader.getComponentIdByEntityUri(e.params.uri))}isErrorPage(e){return e.data&&e.data.routeName&&e.data.routeName==="errorView"}isDetailPage(e){return e.data&&e.data.entityDetail}findConfig(e){return e.firstChild?this.findConfig(e.firstChild):e}ngOnDestroy(){this.subscriptions.forEach(e=>e.unsubscribe()),this.onDestroy.next(),this.onDestroy.complete()}trackSignalsEvent([e,t]){this.trackingService.trackEventById(`${fo.PREFIX_SIGNALS_STACK}.${e}`,t)}createElementFromSignal(e){let t=this.findConfig(this.router.routerState.snapshot.root)?.data?.entityUri;this.createEntityModalService.createElementFromSignal({signal:e,title:this.translate.instant("explorer-ng.landingPage.createModal.createElement"),relatedElementUri:t,footnote:this.translate.instant("explorer-ng.landingPage.createModal.footnoteFromSignal"),analyticsTags:{"explorerElements.publish":"explorer.signalsStack"}}),this.trackingService.trackEventById(fo.CREATE_MODAL_FROM_SIGNAL)}createElementFromCluster(e,t=!1){return b(this,null,function*(){let n=yield this.getFieldsForElementType(e.type),r=n.filter(l=>l.tenantUri==="mandatory").filter(l=>this.isMandatoryField(l));this.isClusterElementCreating=!0;let s={type:ie.ERROR,content:this.translate.instant(Jg),duration:nu};try{t=!(yield $(this.permissionService.userHasElementTypePermission(x.CREATE_ELEMENT,e?.type?.uri).pipe(B(1))))||this.elementTypeRequiredFieldsMap.get(e.type.uri)||t;let p=yield this.createEntityModalService.createElementFromCluster(e.cluster,e.type,t,n,r);if(console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),p&&!t)try{(yield $(this.permissionService.userHasElementTypePermission(x.EDIT_ALL_ELEMENTS,e?.type?.uri).pipe(B(1))))&&(yield $(this.entityService.addRelations(e.cluster.spaceUri,e.cluster.elementUri,iu,[p.uri]))),this.baseHref!=="/explorer/"?this.router.navigate(["/","explorer",this.currentSpaceUri,"detail",p.uri],{queryParams:{page:null},queryParamsHandling:"merge"}):this.router.navigateByUrl(`'${this.currentSpaceUri}/detail/${p.uri}`)}catch(h){this.logger.warn(`${h} ${gr} Create add relation to the newly created element.`)}}catch(l){this.toastNotificationsService.showToast(s),this.logger.warn(`${l} ${gr} Create element from cluster.`)}this.isClusterElementCreating=!1,this.trackingService.trackEventById($n.NEWSFEED_CREATE_ELEMENT_FROM_TOP_STORIES)})}viewElementFromCluster(e){this.stackedViewService.openView({type:Ct.ENTITY,uri:e})}onClusterTagClicked(e){if(this.tagVisualizationService.clickOnTagFromOutside(e.keyword),this.stackedViewService.setExpanded(!1),this.trackingService.trackEventById("explorerTagVis.openFrom"+(/\/detail/.test(this.router.url)?"Detail":"Stack")),!this.detailPageService.isGridView(this.router.url)){let n=s=>s.firstChild?n(s.firstChild):s,{params:r}=n(this.activatedRoute.snapshot);console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.baseHref!==`/${_e.EXPLORER}/`?this.router.navigate([_e.EXPLORER,r.space||this.currentSpaceUri,_e.GRID],{queryParamsHandling:"merge"}):this.router.navigate([r.space,_e.GRID],{queryParamsHandling:"merge"})}}onCopyLinkClicked(e){if(!navigator.clipboard||!e)return;console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let t=this.router.createUrlTree([zn.EXPLORER,this.currentSpaceUri,"detail",e.elementUri],{queryParams:{page:Yg,stack:`${Ct.CLUSTER}:${e.clusterId}`}}).toString(),n=`${window.location.origin}${t}`;this.clipBoard.copy(n),this.clusterCopyLinkTooltipText=this.translate.instant(Kg),setTimeout(()=>{this.clusterCopyLinkTooltipText=this.translate.instant(Fp)},Xg)}onEditIconClicked(e){this.createElementFromCluster(e,!0)}getElementTypeControls(e){return b(this,null,function*(){let t=this.entityTypeCachedRequiredControls.get(e?.uri);if(t)return t;console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let n=yield this.entityConfigHelperService.getLeafControlsForElementType(e.uri,this.currentSpaceUri);return this.entityTypeCachedRequiredControls.set(e.uri,n),n})}getRequiredFields(e){return e.filter(n=>this.isRendererAvailable(n)&&this.isMandatoryField(n.field))}getFieldsForElementType(e){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigHelperService.getFieldsForElementType(e.uri,!0,!1,this.currentSpaceUri)}listenToClusterCreateEntityModalOpenAndClose(){this.subscriptions.push(this.modalService.onModalOpened.subscribe(()=>{this.isClusterCreateElementSelectReset=!1})),this.subscriptions.push(this.modalService.onModalClosed.subscribe(()=>{this.isClusterCreateElementSelectReset=!0}))}fetchClusterRelatedElement(e){if(this.clusterRelatedElementUri="",!e||!e?.uri||e?.type!==this.clusterDetailUri)return;let t=new ur.LeafFilter(Yi).setSearch(e.uri).setIdentifier("cluster-related-element");this.filterQueryService.getFilteredEntities(t,Zg,"","network-only").pipe(B(1)).subscribe({next:n=>this.clusterRelatedElementUri=n[0]?.uri,error:n=>this.logger.warn(`Error fetching related Element for clusterUri in ${gr}: ${e.uri}`,{error:n})})}isMandatoryField(e){let t=e.propertyValues.find(n=>n.fieldTypePropertyUri.endsWith(_n.MIN_CARDINALITY));return t?parseInt(t.value,10)>0:!1}isRendererAvailable(e){return this.availableRenderersControlTypeUri.indexOf(e.controlTypeUri)!==-1}maybeUpdateSignalRelatedElement(e){if(this.signalRelatedElementUri="",!e||e?.type!==this.documentTemplateUri||!e?.uri)return;let t=new ur.LeafFilter(Vi).setSearch(e.uri).setIdentifier("signal-related-element");this.filterQueryService.getFilteredEntities(t,1,"","network-only").pipe(B(1)).subscribe(n=>{this.signalRelatedElementUri=n[0]?.uri},n=>{this.logger.warn(`Error fetching related Element for signalUri: ${e.uri}`,{error:n})})}factActionClicked(e){switch(e.actionType){case Gn.OpenInStack:this.factDetailService.openFactDetail(e.factUri,!1,!1);break;case Gn.SeeSignals:this.factDetailService.openFactDetail(e.factUri,!1,!0);break;case Gn.CreateElement:this.createEntityModalService.createElementFromFact({factUri:e.factUri});break;case Gn.AddToFilter:this.factActionsService.handleTagClicked(e);break}}onEntitySubmissionClicked(e){this.createEntityModalService.openCreateEntityModal({title:this.translate.instant("explorer-ng.entity.createEnitityForm.createElement"),type:e.type,defaults:e.defaults,customClass:"small-modal",preserveDefaultsForCreateAnother:!0})}fetchElementTypes(){return b(this,null,function*(){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let e=yield this.entityConfigHelperService.getElementTypesBasedOnAnyPermission([x.CREATE_ELEMENT,x.CREATE_DRAFT_ELEMENT],this.currentSpaceUri),t=yield this.getElementTypePermissionsMap(e);this.elementTypes=e.map(n=>I(w({},n),{disabled:!t[n.uri]})).filter(n=>n.uri.indexOf(eu)===-1).sort((n,r)=>n.name.localeCompare(r.name)),this.storesEntityTypeRequiredFilesInMap(this.elementTypes)})}storesEntityTypeRequiredFilesInMap(e){let t=new Map;e.forEach(n=>b(this,null,function*(){let r=yield this.getElementTypeControls(n),s=this.getRequiredFields(r),l=yield this.featureFlagService.getFeatureFlags();console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let p=yield this.entityConfigHelperService.getAllControls(this.currentSpaceUri),C=r.filter(O=>O.controlTypeUri===tu||O.controlTypeUri===Ip).filter(O=>this.entityConfigHelperService.isControlAvailableForElementType(O,n,p,l)).map(O=>O.controlTypeUri).includes(Ip);t.set(n.uri,!!s?.length||C)})),this.elementTypeRequiredFieldsMap=t}getElementTypePermissionsMap(e){return new Promise(t=>{Promise.all(e.map(n=>this.elementPermissionService.isAllowedToCreateElementOfType(n.uri))).then(n=>{let r=n.reduce((s,l,p)=>(s[e[p].uri]=l,s),{});t(r)})})}feedPartClicked(e){let t=this.filtersService.buildGlobalFilter();this.feedFilterService.applyFeedPartActionToSelectionFilter(e,t.getQuery(bs.SELECTION)),this.navigateToInsightsWithFilter(t)}navigateToInsightsWithFilter(e){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null");let t=`${this.environmentService.getUrl("insights")}/${this.currentSpaceUri}?filter=${e.toQueryString()}`;window.open(t)}};i.\u0275fac=function(t){return new(t||i)(c(ql),c(ft),c(Ki),c(lt),c(Ie),c(oe),c(Ca),c(Ke),c(Y),c(Yl),c(kn),c(qe),c(Fn),c(Kl),c($l),c(dt),c(pt),c(Te),c(Po),c(xa),c(Xs),c(Xe),c(Se),c(yn),c(us),c(hs),c(Di),c(Ms),c(eo),c(al),c(ot),c(Zr),c(to),c(Lt),c(K),c(Tr,8),c(Os),c(Ps))},i.\u0275cmp=D({type:i,selectors:[["innovation-os-ng-root"]],hostVars:6,hostBindings:function(t,n){t&2&&le("radar-full-screen",n.radarFullScreen)("network-full-screen",n.networkFullScreen)("condensed-stack-is-open",n.condensedStackOpen)},decls:6,vars:5,consts:[["viewTemplate",""],[1,"explorer-landing-wrapper",3,"ngClass"],[1,"stack-views"],[3,"attachmentComponentId","customClass","ngClass",4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"entityUri","ngClass"],[3,"tenantUri","ngClass","documentUri","actions","enableEvaluation","evaluationBasis","showCreateElementCTA","relatedElementUri","includeDuplicateSignals","trackEventViaAncestor","createElement","factActionClicked","feedPartClicked",4,"ngIf"],[3,"trackEventViaAncestor","createElement","factActionClicked","feedPartClicked","tenantUri","ngClass","documentUri","actions","enableEvaluation","evaluationBasis","showCreateElementCTA","relatedElementUri","includeDuplicateSignals"],[3,"factActionClicked","factUri","allowAddToFilterAction","ngClass"],[3,"stackView"],[3,"condensed","clusterId","elementTypes","elementTypeRequiredFieldsMap","relatedElementUri","copyLinkToolTipText","isElementCreating","resetCreateElementSelect","isCreateElementButtonVisible","createElementClicked","viewElementClicked","tagClicked","copyLinkClicked","editIconClicked",4,"ngIf"],[3,"createElementClicked","viewElementClicked","tagClicked","copyLinkClicked","editIconClicked","clusterId","elementTypes","elementTypeRequiredFieldsMap","relatedElementUri","copyLinkToolTipText","isElementCreating","resetCreateElementSelect","isCreateElementButtonVisible"],[3,"attachmentComponentId","customClass","ngClass"]],template:function(t,n){t&1&&(f(0,"div",1),A(1,"router-outlet"),_(),f(2,"ui2-stacked-views",2),M(3,qg,6,6,"ng-template",null,0,ce),_(),M(5,Qg,1,5,"explorer-attachment-box",3)),t&2&&(d("ngClass",si(2,Ag,!n.stackExpanded&&n.stackOpen,n.stackMinimized)),g(5),d("ngIf",n.attachmentComponentId))},dependencies:[fp,Oe,ne,ci,pi,xo,xs,fs,Ep,gi,Xl,Ss,Ft],styles:[`.ui-label[_ngcontent-%COMP%]{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;color:#627588;font-size:14px;font-weight:600;cursor:pointer}.ui-label[_ngcontent-%COMP%]:hover{color:#098dcd}.ui-dropdown[_ngcontent-%COMP%]{font-size:7px;vertical-align:middle;position:relative;top:-1px;margin-left:7px;display:inline-block}.normalized-container[_ngcontent-%COMP%]{align-items:stretch;border:0 solid black;box-sizing:border-box;display:flex;flex-basis:auto;flex-direction:column;flex-shrink:0;margin:0;min-height:0px;min-width:0px;padding:0;position:relative;z-index:0}.flex[_ngcontent-%COMP%]{display:flex}.flex-initial[_ngcontent-%COMP%]{flex:0 1 auto}.flex-1[_ngcontent-%COMP%]{flex:1 1 0%}.flex-auto[_ngcontent-%COMP%]{flex:1 1 auto}.flex-none[_ngcontent-%COMP%]{flex:none}.flex-row[_ngcontent-%COMP%]{flex-direction:row}.flex-row-reverse[_ngcontent-%COMP%]{flex-direction:row-reverse}.flex-col[_ngcontent-%COMP%]{flex-direction:column}.flex-col-reverse[_ngcontent-%COMP%]{flex-direction:column-reverse}.flex-no-wrap[_ngcontent-%COMP%]{flex-wrap:nowrap}.flex-wrap[_ngcontent-%COMP%]{flex-wrap:wrap}.flex-wrap-reverse[_ngcontent-%COMP%]{flex-wrap:wrap-reverse}.items-stretch[_ngcontent-%COMP%]{align-items:stretch}.items-start[_ngcontent-%COMP%]{align-items:flex-start}.items-center[_ngcontent-%COMP%]{align-items:center}.items-end[_ngcontent-%COMP%]{align-items:flex-end}.items-baseline[_ngcontent-%COMP%]{align-items:baseline}.content-start[_ngcontent-%COMP%]{align-content:flex-start}.content-center[_ngcontent-%COMP%]{align-content:center}.content-end[_ngcontent-%COMP%]{align-content:flex-end}.content-between[_ngcontent-%COMP%]{align-content:space-between}.content-around[_ngcontent-%COMP%]{align-content:space-around}.self-auto[_ngcontent-%COMP%]{align-self:auto}.self-start[_ngcontent-%COMP%]{align-self:flex-start}.self-center[_ngcontent-%COMP%]{align-self:center}.self-end[_ngcontent-%COMP%]{align-self:flex-end}.self-stretch[_ngcontent-%COMP%]{align-self:stretch}.justify-start[_ngcontent-%COMP%]{justify-content:flex-start}.justify-center[_ngcontent-%COMP%]{justify-content:center}.justify-end[_ngcontent-%COMP%]{justify-content:flex-end}.justify-between[_ngcontent-%COMP%]{justify-content:space-between}.justify-around[_ngcontent-%COMP%]{justify-content:space-around}.flex-grow[_ngcontent-%COMP%]{flex-grow:1}.flex-grow-0[_ngcontent-%COMP%]{flex-grow:0}.flex-shrink[_ngcontent-%COMP%]{flex-shrink:1}.flex-shrink-0[_ngcontent-%COMP%]{flex-shrink:0}.order-first[_ngcontent-%COMP%]{order:-9999}.order-last[_ngcontent-%COMP%]{order:9999}.order-none[_ngcontent-%COMP%]{order:0}.order-1[_ngcontent-%COMP%]{order:1}.order-2[_ngcontent-%COMP%]{order:2}.order-3[_ngcontent-%COMP%]{order:3}.order-4[_ngcontent-%COMP%]{order:4}.order-5[_ngcontent-%COMP%]{order:5}.order-6[_ngcontent-%COMP%]{order:6}.order-7[_ngcontent-%COMP%]{order:7}.order-8[_ngcontent-%COMP%]{order:8}.order-9[_ngcontent-%COMP%]{order:9}.order-10[_ngcontent-%COMP%]{order:10}.order-11[_ngcontent-%COMP%]{order:11}.order-12[_ngcontent-%COMP%]{order:12}.w-full[_ngcontent-%COMP%]{width:100%}.clickable[_ngcontent-%COMP%]{cursor:pointer}.open-in-new-tab[_ngcontent-%COMP%]{text-decoration:none;color:unset}.condensed-stack-open[_ngcontent-%COMP%]     explorer-landing explorer-board>.board-wrapper.filter-open, .condensed-stack-open[_ngcontent-%COMP%]     explorer-landing explorer-portfolio>.view-wrapper, .condensed-stack-open[_ngcontent-%COMP%]     explorer-landing explorer-smart-table-view>.view-wrapper.filter-open, .condensed-stack-open[_ngcontent-%COMP%]     explorer-landing explorer-network-graph-explorer-view>.network-graph-container.filter-open{width:100%}.condensed-stack-open[_ngcontent-%COMP%]     explorer-board>.board-wrapper.filter-open, .condensed-stack-open[_ngcontent-%COMP%]     explorer-portfolio>.view-wrapper, .condensed-stack-open[_ngcontent-%COMP%]     explorer-radar .radar-wrapper.filter-open, .condensed-stack-open[_ngcontent-%COMP%]     explorer-radar .radar-wrapper.filter-open .radar-header{width:100%}[_nghost-%COMP%]     explorer-detail-page ui-expand-view.expand-view:not(.full-screen) .reset-zoom{top:60px}[_nghost-%COMP%]     explorer-detail-page ui-expand-view.expand-view:not(.full-screen) .settings-btn{top:140px}.stack-views[_ngcontent-%COMP%]     .wrapper:not(.collapsed) .reset-zoom{top:60px}.stack-views[_ngcontent-%COMP%]     .wrapper:not(.collapsed) .settings-btn{top:100px}.stack-views[_ngcontent-%COMP%]     .wrapper.collapsed .settings-btn{top:60px}  .itonics-banner-1 explorer-root:not([class*=full-screen]) ui-stacked-views .wrapper:not(.stack-minimized){top:0;margin-top:96px;height:calc(100vh - 109px)}  .itonics-banner-2 explorer-root:not([class*=full-screen]) ui-stacked-views .wrapper:not(.stack-minimized){top:0;margin-top:124px;height:calc(100vh - 137px)}  .itonics-banner-3 explorer-root:not([class*=full-screen]) ui-stacked-views .wrapper:not(.stack-minimized){top:0;margin-top:152px;height:calc(100vh - 165px)}  ui-confirm ngx-smart-modal .overlay{z-index:1045!important}[_nghost-%COMP%]     ui-toast-notification .toast-container{z-index:1101;margin-right:15px}[_nghost-%COMP%]     ui-inline-text-editor .edit-mode.wrap textarea{line-height:1.5}.radar-full-screen[_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%], .radar-full-screen   [_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]{z-index:36}.radar-full-screen[_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .overlay, .radar-full-screen   [_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .overlay{width:100vw;left:0}.radar-full-screen[_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .wrapper, .radar-full-screen   [_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .wrapper{right:90px;margin-left:0;margin-top:0}@media only screen and (min-width: 0){[_nghost-%COMP%]     navigation-main #content{position:static}[_nghost-%COMP%]     .container-wrapper{height:calc(100vh - 120px)}[_nghost-%COMP%]     .header{min-height:60px}[_nghost-%COMP%]     .header ui-stats-box{display:none}[_nghost-%COMP%]     .header .filters{padding-top:60px;max-width:100%}[_nghost-%COMP%]     .header .filters .selectors{max-width:100%}[_nghost-%COMP%]     .header.header-sub-open .filters .header-sub-container{visibility:visible;opacity:1;top:60px}[_nghost-%COMP%]     .header.bar-open .filters .filter-selected-filter-bar{visibility:visible;opacity:1;top:60px}[_nghost-%COMP%]     .header:after{content:" ";background:#bdc8d4;width:100%;height:1px;position:absolute;left:0;top:60px}[_nghost-%COMP%]     .header .view-options{position:absolute;top:10px;left:105px}[_nghost-%COMP%]     explorer-landing .router-container.filter-open{width:100vw}[_nghost-%COMP%]     explorer-landing .header.filter-open{width:calc(100% - 286px)}[_nghost-%COMP%]     ui-sidebar .sidebar-container{width:100%;max-width:400px}[_nghost-%COMP%]     ui-sidebar .sidebar-body .filter-group{width:100%}[_nghost-%COMP%]     ui-stacked-views .wrapper .actions-left>.ui-icon{max-width:36px}[_nghost-%COMP%]     ui-stacked-views .wrapper explorer-detail-page{margin-top:0}[_nghost-%COMP%]     ui-stacked-views .wrapper explorer-detail-page:after{display:none}[_nghost-%COMP%]     ui-stacked-views .wrapper.collapsed{width:calc(100% - 48px);max-width:100%}[_nghost-%COMP%]     ui-stacked-views .wrapper.collapsed .banner-created, [_nghost-%COMP%]     ui-stacked-views .wrapper.collapsed .banner-date{margin-left:0;margin-bottom:5px}[_nghost-%COMP%]     .stack-minimized+ui-stacked-views .wrapper.stack-minimized{max-width:350px}[_nghost-%COMP%]     .trial-banner-is-open .container-wrapper{height:calc(100vh - 156px)}[_nghost-%COMP%]     .trial-banner-is-open .bar-filter-open .container-wrapper, [_nghost-%COMP%]     .trial-banner-is-open .header-filter-sub-open .container-wrapper{height:calc(100vh - 216px)}[_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open .container-wrapper{height:calc(100vh - 192px)}[_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open .bar-filter-open .container-wrapper, [_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open .header-filter-sub-open .container-wrapper{height:calc(100vh - 252px)}[_nghost-%COMP%]     .trial-banner-is-open+ui-stacked-views .wrapper{height:calc(100vh - 106px);margin-top:36px}[_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open+ui-stacked-views .wrapper{height:calc(100vh - 142px);margin-top:52px}[_nghost-%COMP%]     .trial-banner-is-open.stack-minimized+ui-stacked-views .wrapper{height:45px}[_nghost-%COMP%]     .create-element-button{position:absolute;left:184px}}@media only screen and (min-width: 0){[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{display:block;background:#fff;border:1px solid #bdc8d4;border-radius:4px;position:absolute;left:0;top:-99999px;visibility:hidden;opacity:0;transition:opacity .3s ease-in-out;z-index:4}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{padding:0 15px;min-width:173px;margin-right:0}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{border-bottom:none}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button{padding-left:33px;display:block;width:auto}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:after{visibility:hidden}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:before{left:0;transform:translateY(-50%)}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button button{position:relative;text-align:left;width:auto!important}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button button>span{display:block}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button.selected-view, [_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:hover{color:#098dcd}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button.selected-view button span, [_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button:hover button span{color:#098dcd}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]     ui-button.selected-view button span{font-weight:600}[_nghost-%COMP%]   .view-options.active[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{top:100%;visibility:visible;opacity:1}}@media only screen and (min-width: 0) and (max-width: 640px){[_nghost-%COMP%]     ui-stacked-views .wrapper{width:calc(100% - 48px)}}@media only screen and (min-width: 640px){[_nghost-%COMP%]     explorer-detail-page ui-expand-view.expand-view:not(.full-screen) .expand-btn{top:60px!important}[_nghost-%COMP%]     explorer-detail-page ui-expand-view.expand-view:not(.full-screen) .reset-zoom{top:100px}[_nghost-%COMP%]     explorer-detail-page ui-expand-view.expand-view:not(.full-screen) .settings-btn{top:140px}[_nghost-%COMP%]     explorer-detail-page ui-expand-view.expand-view.full-screen .view-toggler-and-status-filter{display:none}[_nghost-%COMP%]     navigation-main #content{position:static;margin-left:72px}[_nghost-%COMP%]     .condensed-stack-open.stack-minimized .header .inner-container, [_nghost-%COMP%]     .condensed-stack-open.stack-minimized .header .inside-filter{margin-left:auto}[_nghost-%COMP%]     .container-wrapper{height:calc(100vh - 60px)}[_nghost-%COMP%]     ui-sidebar .sidebar-container{width:400px}[_nghost-%COMP%]     ui-stacked-views .wrapper{width:calc(100% - 120px);margin-left:36px}[_nghost-%COMP%]     ui-stacked-views .wrapper.collapsed{max-width:350px;margin-top:33px}[_nghost-%COMP%]     ui-stacked-views .wrapper.collapsed:not(.stack-minimized){height:calc(100vh - 89px)}[_nghost-%COMP%]     .trial-banner-is-open .container-wrapper{height:calc(100vh - 96px)}[_nghost-%COMP%]     .trial-banner-is-open .bar-filter-open .container-wrapper, [_nghost-%COMP%]     .trial-banner-is-open .header-filter-sub-open .container-wrapper{height:calc(100vh - 156px)}[_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open .container-wrapper{height:calc(100vh - 132px)}[_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open .bar-filter-open .container-wrapper, [_nghost-%COMP%]     .trial-banner-is-open.maintenacne-banner-open .header-filter-sub-open .container-wrapper{height:calc(100vh - 192px)}[_nghost-%COMP%]     .header .view-options{left:24px}[_nghost-%COMP%]     .create-element-button{position:absolute;left:115px}}@media only screen and (min-width: 739px){[_nghost-%COMP%]     .header{min-height:60px}[_nghost-%COMP%]     .header .inner:not(.tag-cloud)>*{margin-right:24px}[_nghost-%COMP%]     .header .inner:not(.tag-cloud)>*:last-child{margin-right:0;padding-right:0}[_nghost-%COMP%]     .header .view-options{position:relative;left:0;top:0}[_nghost-%COMP%]     .header .filters{padding-top:0}[_nghost-%COMP%]     .header.header-sub-open .filters .header-sub-container{visibility:visible;opacity:1;top:60px}[_nghost-%COMP%]     .header.bar-open .filters .filter-selected-filter-bar{visibility:visible;opacity:1;top:60px}[_nghost-%COMP%]     .header:after{display:none}[_nghost-%COMP%]     .create-element-button{position:relative;left:0}}@media only screen and (min-width: 900px){[_nghost-%COMP%]     .header ui-stats-box{display:block}[_nghost-%COMP%]     .condensed-stack-open .header ui-stats-box{display:none}[_nghost-%COMP%]     .condensed-stack-open.stack-minimized .header ui-stats-box{display:block}}@media only screen and (min-width: 990px){[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{visibility:visible;opacity:1;top:0;left:0;position:static;border:none;background:transparent;display:flex;flex-wrap:nowrap}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]{border:none;padding:0;min-width:auto;margin-right:12px}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]   li[_ngcontent-%COMP%]:last-child{margin-right:0}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button{width:40px}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button button>span{display:none}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button:before{left:50%;transform:translate(-50%,-50%)}[_nghost-%COMP%]   .view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]     ui-button:after{visibility:visible}}@media only screen and (min-width: 1024px){[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing{width:100%}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing{width:calc(100% - 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header{width:calc(100% + 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header.filter-open{width:100%}[_nghost-%COMP%]     .condensed-stack-open explorer-landing.filter-open{width:calc(100% + 374px)}[_nghost-%COMP%]     .condensed-stack-open .header ui-stats-box{display:none}[_nghost-%COMP%]     .stack-minimized explorer-landing{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .stack-minimized explorer-landing .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .stack-minimized ui-stats-box{display:flex}}@media only screen and (min-width: 1280px){[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing{width:100%}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing{width:calc(100% - 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header{width:calc(100% + 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header.filter-open{width:100%}[_nghost-%COMP%]     .condensed-stack-open explorer-landing.filter-open{width:calc(100% + 374px)}[_nghost-%COMP%]     .stack-minimized explorer-landing{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .stack-minimized explorer-landing .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .header .filters .selectors{min-width:165px}[_nghost-%COMP%]     .header.header-search-open{height:60px}}@media only screen and (min-width: 1440px){[_nghost-%COMP%]     .header .filters .selectors{min-width:230px}[_nghost-%COMP%]     ui-stacked-views .wrapper.collapsed{max-width:450px}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing, [_nghost-%COMP%]    :not(.condensed-stack-open) explorer-detail-page{width:100%}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .header.filter-open, [_nghost-%COMP%]    :not(.condensed-stack-open) explorer-detail-page .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .router-container.filter-open, [_nghost-%COMP%]    :not(.condensed-stack-open) explorer-detail-page .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing{width:calc(100% - 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header{width:calc(100% + 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header.filter-open{width:100%}[_nghost-%COMP%]     .condensed-stack-open explorer-landing.filter-open{width:calc(100% + 374px)}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab{width:calc(100% - 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-header .header-columns{flex-direction:column}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-header .header-columns>div{max-width:100%}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page{padding:20px}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .main-column{max-width:100%;flex:0 0 100%;padding:0 0 20px}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .main-column.lonely-column{padding:0 0 20px}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .sidebar-column{max-width:100%;flex:0 0 100%;margin:0}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .main-column, [_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .sidebar-column{padding:0}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page explorer-column .control-section{padding:30px 0}[_nghost-%COMP%]     .condensed-stack-open .header ui-stats-box{display:block}[_nghost-%COMP%]     .condensed-stack-open .header .filters .selectors{min-width:165px}[_nghost-%COMP%]     .stack-minimized explorer-landing{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .stack-minimized explorer-landing .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-header .header-columns{flex-direction:row}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page{padding:30px 40px}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page .main-column{max-width:66.6666666667%;flex:1 1 66.6666666667%;padding:0 60px 0 0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page .sidebar-column{min-width:320px;max-width:33.3333333333%;flex:1 1 33.3333333333%;margin:auto 0 0;min-width:auto}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page explorer-column .control-section:first-child{padding-top:0;border-top:0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page explorer-column .control-section:last-child{padding-bottom:0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page explorer-column.sidebar-column{margin:0}}@media only screen and (min-width: 1498px){[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab{width:calc(100% - 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-header .header-columns{flex-direction:row}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page{padding:30px 40px}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .main-column{max-width:66.6666666667%;flex:1 1 66.6666666667%;padding:0 60px 0 0}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page .sidebar-column{min-width:320px;max-width:33.3333333333%;flex:1 1 33.3333333333%;margin:auto 0 0;min-width:auto}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page explorer-column .control-section:first-child{padding-top:0;border-top:0}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page explorer-column .control-section:last-child{padding-bottom:0}[_nghost-%COMP%]     .condensed-stack-open explorer-detail-page.signals-tab explorer-page explorer-column.sidebar-column{margin:0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-header .header-columns{flex-direction:row}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page{padding:30px 40px}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page .main-column{max-width:66.6666666667%;flex:1 1 66.6666666667%;padding:0 60px 0 0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page .sidebar-column{min-width:320px;max-width:33.3333333333%;flex:1 1 33.3333333333%;margin:auto 0 0;min-width:auto}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page explorer-column .control-section:first-child{padding-top:0;border-top:0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page explorer-column .control-section:last-child{padding-bottom:0}[_nghost-%COMP%]     .stack-minimized explorer-detail-page.signals-tab explorer-page explorer-column.sidebar-column{margin:0}}@media only screen and (min-width: 2028px){[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing{width:100%}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]    :not(.condensed-stack-open) explorer-landing .router-container.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing{width:calc(100% - 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header{width:calc(100% + 474px)}[_nghost-%COMP%]     .condensed-stack-open explorer-landing .header.filter-open{width:100%}[_nghost-%COMP%]     .condensed-stack-open explorer-landing.filter-open{width:calc(100% + 374px)}[_nghost-%COMP%]     .stack-minimized explorer-landing{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header{width:100%}[_nghost-%COMP%]     .stack-minimized explorer-landing .header .inner-container{margin-left:auto;transform:none}[_nghost-%COMP%]     .stack-minimized explorer-landing .header .header-sub-container>.inside-filter{margin-left:auto}[_nghost-%COMP%]     .stack-minimized explorer-landing .header.filter-open{width:calc(100% - 400px)}[_nghost-%COMP%]     .stack-minimized explorer-landing .router-container.filter-open{width:calc(100% - 400px)}}.network-full-screen[_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%], .network-full-screen   [_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]{z-index:36}.network-full-screen[_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .overlay, .network-full-screen   [_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .overlay{width:100vw;left:0}.network-full-screen[_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .wrapper, .network-full-screen   [_nghost-%COMP%]   .stack-views[_ngcontent-%COMP%]     .wrapper{right:30px;margin-left:0;margin-top:0}.network-full-screen[_nghost-%COMP%]   .condensed-stack-open[_ngcontent-%COMP%]   settings-navigation-header[_ngcontent-%COMP%], .network-full-screen   [_nghost-%COMP%]   .condensed-stack-open[_ngcontent-%COMP%]   settings-navigation-header[_ngcontent-%COMP%]{display:none}  explorer-landing .create-element-button{display:none}  explorer-landing .instant-search{max-width:570px}  .nav-opened ui2-stacked-views>.wrapper:not(.main-white){width:calc(100% - 319px)!important}  .nav-opened ui-expand-view.full-screen .expand-box{width:calc(90vw - 271px)!important;left:55%!important}  .view-options{display:none!important}  radar-controls .ui-icon:first-child{display:none}  network-graph-zoom-controls .expand-button{display:none!important}  network-graph-view .dark-mode-switch{display:none!important}.condensed-stack-open[_ngcontent-%COMP%]     explorer-landing{display:block}.condensed-stack-open[_ngcontent-%COMP%]     explorer-landing .router-container{width:100%}.condensed-stack-open[_ngcontent-%COMP%]     explorer-landing .header{position:relative;width:100%}.condensed-stack-open[_ngcontent-%COMP%]     explorer-landing .header .view-options{z-index:31}.condensed-stack-open[_ngcontent-%COMP%]     explorer-landing .header:after{content:"";width:100vw;position:absolute;top:0;left:100%;display:block;background:#eff2f480;height:60px;border-bottom:1px solid #e1e7ee}.condensed-stack-open[_ngcontent-%COMP%]   settings-navigation-header[_ngcontent-%COMP%]{z-index:40}.header[_ngcontent-%COMP%]{background:#eff2f480;height:60px;padding:10px 0 0;border-bottom:1px solid #eff2f4;position:relative;transition:min-height .3s ease-out}.header[_ngcontent-%COMP%]   .title-h1[_ngcontent-%COMP%]{margin-top:0;font-size:22px;margin-right:30px}.inner-container[_ngcontent-%COMP%]{width:calc(100% - 48px);margin:0 auto}.inner[_ngcontent-%COMP%]{height:100%;display:flex;flex-wrap:wrap;align-items:flex-start;flex:0 0 auto;width:100%;max-width:calc(100% - 60px);padding-bottom:10px}.small-stats[_ngcontent-%COMP%]{pointer-events:auto;display:block;max-width:100%;flex:0 0 auto;border-right:1px solid #8a9bab}.filters[_ngcontent-%COMP%]{flex:1 1 0;display:flex;flex-wrap:nowrap}.filters[_ngcontent-%COMP%] >*{margin-right:24px}.filters[_ngcontent-%COMP%] >*:last-child{margin-right:0}.filters[_ngcontent-%COMP%]  .ng-select-single .ng-placeholder{width:calc(100% - 35px)}.filters[_ngcontent-%COMP%]  .ng-select-single .ng-input{padding-right:30px}.filters[_ngcontent-%COMP%]  .ng-select-single .ng-dropdown-panel{min-width:115px}.filters[_ngcontent-%COMP%]  div[uihotspot=filter_side_panel]{margin-right:0}.view-options[_ngcontent-%COMP%]{position:relative}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]{display:none;color:#627588;font-size:20px;line-height:37px;cursor:pointer}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]   .select-view-icon[_ngcontent-%COMP%]{width:28px;text-align:center}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]   .icon-dropdown[_ngcontent-%COMP%]{font-size:7px;vertical-align:middle;margin-left:12px}.view-options[_ngcontent-%COMP%]   .selected-view-button[_ngcontent-%COMP%]:hover{color:#098dcd}.view-options[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%]{list-style-type:none;padding:0;margin:0;display:flex;flex-wrap:nowrap}.view-options[_ngcontent-%COMP%]     ui-button button>span{display:none;font-size:14px;font-weight:400;color:#627588;display:block;line-height:1.5}.switch-button-icon[_ngcontent-%COMP%]{color:#627588;cursor:pointer;position:relative;height:40px;width:40px;margin-left:5px}.switch-button-icon[_ngcontent-%COMP%]:first-child{margin-left:0}.switch-button-icon[_ngcontent-%COMP%]     button{display:block;position:absolute;top:0;left:0;width:100%!important;height:100%!important}.switch-button-icon[_ngcontent-%COMP%]:before{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);margin-left:0;margin-right:0;z-index:1}.switch-button-icon[_ngcontent-%COMP%]:after{content:"";display:block;width:40px;height:40px;border-radius:100%;background:#e6f6fe;position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);opacity:0;transition:opacity .2s ease-in-out}.switch-button-icon.selected-view[_ngcontent-%COMP%]:after{opacity:1}.icon2-x24-explorer-radar[_ngcontent-%COMP%]:before{font-size:24px}.icon-list-view-1[_ngcontent-%COMP%]:before{font-size:19px}.icon2-x24-explorer-grid[_ngcontent-%COMP%]:before{font-size:24px}.icon2-x24-explorer-portfolio[_ngcontent-%COMP%]:before{font-size:24px}.icon2-x24-network[_ngcontent-%COMP%]:before{font-size:24px;margin-left:-1px}.icon2-x24-view-kanban-board[_ngcontent-%COMP%]:before{font-size:24px}[_nghost-%COMP%]     ui-stats-box.no-hover{pointer-events:none}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats{padding-left:0}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats{padding:0 0 0 20px;flex-direction:column}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-number{width:auto;line-height:26px}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-number:before{display:none}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-number.highlighted{padding:0;min-width:25px}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-label{padding-left:0;width:auto}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats .stats-label .stats-normal-label{display:none}[_nghost-%COMP%]     ui-stats-box.small-stats .group-stats.small-stats .stats:first-child{padding-left:0}[_nghost-%COMP%]     ui-stats-box .stats-dropdown{z-index:6}.moveFabLeft[_ngcontent-%COMP%]{position:fixed;right:96px}.fab-transition[_ngcontent-%COMP%]{transition:all .2s ease-in-out;z-index:8}.fab-explorer-view[_ngcontent-%COMP%]{right:inherit;min-width:160px}.hide-create-entity-tooltip[_ngcontent-%COMP%]     .tooltip{display:none!important}
/*# sourceMappingURL=app.component-SBCCNXRK.css.map */`]});let o=i;return o})();var $t=(()=>{let i=class i{canDeactivate(){return!0}};i.\u0275fac=function(t){return new(t||i)},i.\u0275prov=z({token:i,factory:i.\u0275fac});let o=i;return o})();var ou={en:Nn},ru={routeName:"errorView",errorMessageStartPhrase:"explorer-ng.notFound.errorMessageStartPhrase",errorMessage:"explorer-ng.notFound.errorMessage",errorCode:"404",errorReason:"explorer-ng.notFound.errorReason",errorCodeLabel:"explorer-ng.notFound.errorCodeLabel",redirectButtonText:"explorer-ng.notFound.redirectButtonText",redirectLink:""},au={errorMessageStartPhrase:"explorer-ng.unauthorizedWorkspace.errorMessageStartPhrase",errorMessage:"explorer-ng.unauthorizedWorkspace.errorMessage",errorCode:"401",errorReason:"explorer-ng.unauthorizedWorkspace.errorReason",errorCodeLabel:"explorer-ng.unauthorizedWorkspace.errorCodeLabel"},su=[{path:"",component:fr,canActivate:[Xr,ma,vp,ga,ca,la,ua,sa],data:{},children:[{path:"404",component:Wn,data:ru},{path:"401",component:Wn,data:au},{path:":space",canActivate:[Na,vt],data:{correctRouterPathFormat:"/explorer/:spaceUri",permissions:new Ut([x.VIEW_EXPLORER_MODULE]),permissionDeniedRedirect:o=>{let i=o.getUrl("explorer","401");location.replace(i)}},children:[{path:"detail/:uri",component:xo,canActivate:[vt],canDeactivate:[ir],data:{permissions:new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT]),isFullDetailPageRoute:!0},resolve:{entityUri:xp}},{path:"",component:bp,runGuardsAndResolvers:"always",canDeactivate:[ir],children:[{path:"radar",loadChildren:()=>import("./chunk-DSHZENFS.js").then(o=>o.ExplorerRadarModule),canActivate:[vt,Go],canDeactivate:[$t],data:{appId:_e.RADAR,hideFilters:!0,permissions:new Zt({operator:0,lists:[new Ut([x.VIEW_RADAR_MODULE]),new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT])]})}},{path:"grid",loadChildren:()=>import("./chunk-JLU5AGFE.js").then(o=>o.ExplorerGridModule),canActivate:[vt],canDeactivate:[$t],data:{permissions:new Zt({operator:0,lists:[new Ut([x.VIEW_EXPLORER_MODULE]),new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT])]}),isGridView:!0}},{path:"ideation",loadChildren:()=>import("./chunk-JLU5AGFE.js").then(o=>o.ExplorerGridModule),canActivate:[vt],canDeactivate:[$t],data:{permissions:new Zt({operator:0,lists:[new Ut([x.VIEW_EXPLORER_MODULE]),new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT])]}),isGridView:!0}},{path:"portfolio",loadChildren:()=>import("./chunk-LIO72AMH.js").then(o=>o.ExplorerPortfolioModule),canDeactivate:[$t],canActivate:[Hn,vt],data:{permissions:new Zt({operator:0,lists:[new Ut([x.VIEW_PORTFOLIO_MODULE]),new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT])]}),featureFlag:"explorer.app.portfolio"}},{path:"network-graph",loadChildren:()=>import("./chunk-SED57SOL.js").then(o=>o.ExplorerNetworkGraphModule),canDeactivate:[$t],canActivate:[Hn,vt],data:{permissions:new Zt({operator:0,lists:[new Ut([x.VIEW_NETWORK_GRAPH]),new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT])]}),featureFlag:"explorer.app.network"}},{path:"board",component:tp,canActivate:[Hn,vt],data:{permissions:new Zt({operator:0,lists:[new Ut([x.VIEW_BOARD_MODULE]),new Rt([x.VIEW_ALL_WORKSPACES,x.VIEW_ELEMENT,x.VIEW_DRAFT_ELEMENT,x.VIEW_ARCHIVED_ELEMENT])]}),featureFlag:"explorer.app.board"}},{path:"list",loadChildren:()=>import("./chunk-PBL77GIG.js").then(o=>o.SmartTableModule),canDeactivate:[$t],canActivate:[Go],data:{appId:_e.LIST}},{path:"**",redirectTo:"grid"}]}]},{path:"**",redirectTo:"z"}]},{path:"**",redirectTo:"z"}],jF=(()=>{let i=class i{constructor(e,t,n,r,s,l,p,h){this.translate=e,this.translateRegistry=t,this.hotspotRegistry=n,this.entityService=r,this.filterService=s,this.contentSharingService=l,this.contentSharingUpdateService=p,this.aggregationService=h,this.setupGraphQl(),this.setupTranslations(),this.registerRendererTranslations(),this.hotspotRegistry.registerHotspots(ic)}setupTranslations(){this.translateRegistry.registerLoader(e=>Promise.resolve(ou[e]||Nn)),this.translate.setDefaultLang("en"),this.translate.use("en"),Up.updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",ss:"seconds",s:"seconds",m:"a minute",mm:"%d min.",h:"one hour",hh:"%d hours",d:"one day",dd:"%d days",M:"one month",MM:"%d months",y:"one year",yy:"%d years"}})}setupGraphQl(){this.entityService.setGqlServiceId(en.ENTITY,en.OLD_ENTITY),this.filterService.setGqlServiceId(en.ENTITY),this.contentSharingService.setGqlServiceId(en.ENTITY),this.contentSharingUpdateService.setGqlServiceId(en.ENTITY),this.aggregationService.setGqlServiceId(en.ENTITY)}registerRendererTranslations(){this.translateRegistry.registerLoader(e=>Promise.resolve({en_Renderers:Yo,de_Renderers:Vs}[e]||Yo)),this.translate.setDefaultLang("en"),this.translate.use("en")}};i.\u0275fac=function(t){return new(t||i)(u(Y),u(Ee),u(Ri),u(Ie),u(Xe),u(ss),u(as),u(ja))},i.\u0275mod=k({type:i,bootstrap:[fr]}),i.\u0275inj=T({providers:[$t,Hn,kr,{provide:un,useClass:hn,multi:!0},{provide:ki,useClass:nc},{provide:Te,useClass:ra}],imports:[_p.forRoot(),F,Mn,er,Cn,fe,Jr,In,ta,$e,It,Qr.forRoot(),ue,xi.forRoot(),Ht,no,mt,qi,so,Eo.forRoot(),ec,Ro.forRoot(),To.forRoot(),ko.forRoot(),Fo.forRoot(),Io.forRoot(),ho.forRoot(),bo.forRoot(),yp,za.forRoot(),Ti,pc,Tn,jt,Bt,Je,$i,ys,ji,ut,oo,Gi,Ln,Un,Ul,kp.forRoot(),Ql,er,fn.forChild(su),Zl,Es,Ne,Ai,Pn]});let o=i;return o})();var CI=(()=>{let i=class i{static forRoot(){return{ngModule:i}}};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[$e,Tn,jt,F,ue,Ro,fe,uo,zi,Hi,ut,Qi,Un,Je,zt,Nt,Ne,lo,Bi,ct,Dt,zs,At,Li,ks,Tl,Vt,Bt]});let o=i;return o})();var Rp=o=>o?o.getQueries().map(i=>i.getIdentifier()):null;var MI=(()=>{let i=class i{constructor(e){this.uiStateService=e}canDeactivate(e){return e.isViewDirty?new xt(t=>{this.uiStateService.showPageLeaveConfirm().subscribe(n=>{t.next(n),t.complete()})}):!0}};i.\u0275fac=function(t){return new(t||i)(u(kn))},i.\u0275prov=z({token:i,factory:i.\u0275fac});let o=i;return o})();var lu=(o,i)=>o?.propertyValues?.find(e=>e.controlTypePropertyUri.endsWith(i)),wI=(o,i)=>lu(o,i)?.value==="true";var BI=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({providers:[{provide:un,useClass:hn,multi:!0}],imports:[F,ue,Ht,fn,fe,Ne,At,ct,lo]});let o=i;return o})();var nU=(()=>{let i=class i{constructor(e,t,n){this.visualizationHelpersService=e,this.themeService=t,this.store=n,this.colorFieldsPromiseCache={},this.sizeFieldsPromiseCache={},this.distanceFieldsPromiseCache={},this.onDestroy=new U,this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R()).subscribe({next:()=>{this.colorFieldsPromiseCache={},this.sizeFieldsPromiseCache={},this.distanceFieldsPromiseCache={}}})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}getColorFields(e){return this.colorFieldsPromiseCache[e]||(this.colorFieldsPromiseCache[e]=new Promise(t=>b(this,null,function*(){let n=yield this.visualizationHelpersService.getElementTypes();this.visualizationHelpersService.getFields(e).then(r=>{let s=zl[e].reduce((l,p)=>{let h=p(r,n);return l.concat(h)},[]);t(s.sort(fi(["name"],["asc"])))})}))),this.colorFieldsPromiseCache[e]}getColor(e,t,n){return new Promise(r=>{if(!n){r({color:this.themeService.getFallbackColor(),defaultColor:!0});return}this.getColorFields(e).then(s=>{r(Nl(s,this.themeService).bind(this)(t,n))})})}getSizeFields(e){return this.sizeFieldsPromiseCache[e]||(this.sizeFieldsPromiseCache[e]=new Promise(t=>b(this,null,function*(){let n=yield this.visualizationHelpersService.getElementTypes();this.visualizationHelpersService.getFields(e).then(r=>{let s=Hl[e].reduce((l,p)=>{let h=p(r,n);return l.concat(h)},[]);t(s.sort(fi(["name"],["asc"])))})}))),this.sizeFieldsPromiseCache[e]}getSize(e,t,n,r){return new Promise(s=>{if(!n){s(null);return}this.getSizeFields(e).then(l=>{s(Gl(l,r)(t,n))})})}getDistanceFields(e){return this.distanceFieldsPromiseCache[e]||(this.distanceFieldsPromiseCache[e]=new Promise(t=>b(this,null,function*(){let n=yield this.visualizationHelpersService.getElementTypes();this.visualizationHelpersService.getFields(e).then(r=>{let s=Wl[e].reduce((l,p)=>{let h=p(r,n);return l.concat(h)},[]);t(s.sort(fi(["name"],["asc"])))})}))),this.distanceFieldsPromiseCache[e]}buildColors(e){let t=[];if(!e)return[];let n=this.themeService.paletteGenerator(Da.Palette_01,e?.length);return e.forEach((r,s)=>{r.label&&t.push({backgroundColor:n[s],uri:r.uri,label:`${r.label[0].toUpperCase()}${r.label.slice(1).toLowerCase()}`})}),t}buildColorPicker(e,t){return{field:{uri:t},optionSelected:{uri:e.selectedOption.uri,label:e.selectedOption.label},color:e.selectedColor}}};i.\u0275fac=function(t){return new(t||i)(u(jl),u(vn),u(K))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var cu=[],uU=(()=>{let i=class i{constructor(e,t,n){this.explorerFilterQueryService=e,this.entityConfigHelperService=t,this.store=n,this.fieldsPromiseCache={},this.onDestroy=new U,this.store.select(Q.selectCurrentSpaceUri).pipe(H(),R()).subscribe({next:r=>{this.currentSpaceUri=r,this.elementTypeFromServicePromiseCache=null,this.elementTypeFromFilterPromiseCache=null,this.fieldsPromiseCache={}}})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}getFields(e){return this.fieldsPromiseCache[e]||(this.fieldsPromiseCache[e]=new Promise(t=>b(this,null,function*(){let n=(yield this.getElementTypes()).map(r=>r.uri);!n||!n.length||(console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),Promise.all(n.map(r=>this.entityConfigHelperService.getFieldsForElementType(r,!0,!1,this.currentSpaceUri))).then(r=>{let s;if(cu.indexOf(e)!==-1)s=this.findOverlappedProperties(r);else{let p=[];s=r.reduce((h,C)=>h.concat(C),[]).forEach(h=>{p.findIndex(C=>C.uri===h.uri)===-1&&p.push(I(w({},h),{uri:h.uri.split("@",2).shift()}))}),s=p}let l=s.filter((p,h)=>s.findIndex(C=>C.uri===p.uri)===h);t(l)}))}))),this.fieldsPromiseCache[e]}getElementTypesFromService(){return this.elementTypeFromServicePromiseCache||(console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.elementTypeFromServicePromiseCache=this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri)),this.elementTypeFromServicePromiseCache}getFilterElementTypes(){return new Promise(e=>b(this,null,function*(){let t=yield this.getElementTypesFromService(),r=Rp(this.explorerFilterQueryService.getSidebarFilter())?.reduce((s,l)=>{let p=t.filter(h=>h.uri.startsWith(l)).map(h=>h.uri);return s.push(...p),s},[]);if(r&&r.length){let s=t.filter(l=>r.indexOf(l.uri)!==-1);e(s);return}e(t)}))}findOverlappedProperties(e){let t=n=>e.filter(r=>r.find(s=>s.uri===n)).length===e.length;return e[0].filter(n=>t(n.uri))}getRelations(){return new Promise(e=>b(this,null,function*(){let t=(yield this.getElementTypes()).map(n=>n.uri);console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigHelperService.getAllRelationTypes(this.currentSpaceUri).then(n=>{let r=n.filter(l=>!/ by$/i.test(l.label)).filter(l=>l.relationTypeRanges.find(p=>t.indexOf(p.ownerElementTypeUri)!==-1||t.indexOf(p.acceptorElementTypeUri)!==-1)),s=[];r.forEach(l=>{s.findIndex(p=>l.uri.startsWith(p.uri))===-1&&s.push(I(w({},l),{uri:l.uri.split("@",2).shift()}))}),e(s)})}))}getElementTypes(){return this.elementTypeFromFilterPromiseCache||(this.elementTypeFromFilterPromiseCache=this.getFilterElementTypes()),this.elementTypeFromFilterPromiseCache}};i.\u0275fac=function(t){return new(t||i)(u(ol),u(oe),u(K))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var Ap=(()=>{let i=class i{constructor(e){this.remoteStorage=e,this.queuePostData=[],this.isRequestOnPending=!1}recursivelySetOnRemoteStorage(e,t,n,r){this.isRequestOnPending=!0,$(this.remoteStorage.set(e,t,n,r)).then(()=>{if(this.queuePostData.length){let s=this.queuePostData.shift();this.recursivelySetOnRemoteStorage(s.key,s.value,s.tenantUri,s.spaceUri)}else this.isRequestOnPending=!1})}set(e,t,n,r){if(this.isRequestOnPending){let s={key:e,value:t,tenantUri:n,spaceUri:r};this.queuePostData.push(s)}else this.recursivelySetOnRemoteStorage(e,t,n,r)}};i.\u0275fac=function(t){return new(t||i)(u(ui))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var EU=(()=>{let i=class i{constructor(e,t,n){this.logger=e,this.remoteStorage=t,this.queueRemoteStorageRequest=n}setColorInPalette(e){let t=e.field.uri,n=e.optionSelected.uri,r=e.color;mo(t,n,r)}setRelationColor(e,t){let n=e.optionSelected.uri;try{let r=window.localStorage.getItem(t),s=r?JSON.parse(r):{};s[n]=e.color,window.localStorage.setItem(t,JSON.stringify(s))}catch(r){this.logger.error("There was an error",{error:r})}}resetColorPalette(e){go(e)}resetRelationColors(e){try{window.localStorage.removeItem(e)}catch(t){this.logger.error("There was an error",{error:t})}}saveConfigViewState(e,t,n,r=!1,s){r&&n.isRemoteStorageEnabled?this.getConfigViewState(t,n).then(l=>{let p={savedViewUri:e.savedViewUri||l.savedViewUri||null,otherStates:e.otherStates||l.otherStates?w(w({},l.otherStates||{}),e.otherStates||{}):{}},h=s?s===l.savedViewUri:!0,C=p?.savedViewUri!==l.savedViewUri||JSON.stringify(p.otherStates)!==JSON.stringify(l.otherStates);h&&C&&this.queueRemoteStorageRequest.set(`ActiveConfigView@${t}`,p,n.tenantUri,n.spaceUri),this.updateConfigViewStateQueryParams(p,t)},l=>{this.queueRemoteStorageRequest.set(`ActiveConfigView@${t}`,e,n.tenantUri,n.spaceUri),this.updateConfigViewStateQueryParams(e,t)}):n.isRemoteStorageEnabled?(this.queueRemoteStorageRequest.set(`ActiveConfigView@${t}`,e,n.tenantUri,n.spaceUri),this.updateConfigViewStateQueryParams(e,t)):this.updateConfigViewStateQueryParams({savedViewUri:e.savedViewUri},t)}getConfigViewState(e,t){return new Promise(n=>{$(this.remoteStorage.get(t.tenantUri,t.spaceUri)).then(r=>{n(r?.[`ActiveConfigView@${e}`]??{})},r=>n({}))})}updateConfigViewStateQueryParams(e,t){let n={};if(e.savedViewUri&&(n[`${t}Uri`]=e.savedViewUri),e.otherStates){let r={};Object.keys(e.otherStates).forEach(s=>{r[s]=e.otherStates[s]});try{n[`${t}State`]=btoa(JSON.stringify(r)).replace(/=+/,"")}catch(s){this.logger.error("QueryParams was not properly set for otherStates because:",{error:s})}}}};i.\u0275fac=function(t){return new(t||i)(u(Se),u(ui),u(Ap))},i.\u0275prov=z({token:i,factory:i.\u0275fac,providedIn:"root"});let o=i;return o})();var RU=(()=>{let i=class i{};i.\u0275fac=function(t){return new(t||i)},i.\u0275mod=k({type:i}),i.\u0275inj=T({imports:[F,Pn,io]});let o=i;return o})();export{ec as a,nc as b,ic as c,Vu as d,fo as e,ho as f,Gp as g,xo as h,er as i,tr as j,bo as k,aC as l,lc as m,pc as n,Po as o,J_ as p,lx as q,Gt as r,gx as s,fx as t,xx as u,Px as v,Ox as w,Ax as x,Dx as y,ir as z,Qx as A,wo as B,tp as C,Ln as D,rp as E,Oy as F,sp as G,Ry as H,lp as I,Eo as J,To as K,ko as L,Fo as M,Io as N,cp as O,Nn as P,fp as Q,Cp as R,_p as S,bp as T,at as U,vp as V,xE as W,yp as X,XE as Y,Ro as Z,Ep as _,gT as $,kp as aa,$t as ba,ou as ca,jF as da,CI as ea,Rp as fa,MI as ga,lu as ha,wI as ia,BI as ja,nU as ka,uU as la,EU as ma,RU as na};
//# sourceMappingURL=chunk-RAS5YQ7B.js.map
