import{a as qn,b as Fn}from"./chunk-QVJRXN5L.js";import{d as qa,f as wr,g as Sr}from"./chunk-YMQFMWVM.js";import{a as D,b as Mr,c as Or,d as $a,m as Ci,o as sn}from"./chunk-6MZYNDRO.js";import{b as il,c as vr}from"./chunk-I76MHZZY.js";import{a as Rn}from"./chunk-Z63GLBJF.js";import{N as hi,a as xr,g as Qa}from"./chunk-AC3PNZI6.js";import{a as ri,c as Bi}from"./chunk-3RYTX7CP.js";import{b as Xa}from"./chunk-O4AGZFPV.js";import{g as br,h as Ka}from"./chunk-ZBQO5ZNW.js";import{$ as _i,A as sa,N as ca,P as pa,S as da,T as ji,U as ga,_ as fi,aa as yr,b as ta,e as na,m as ia,p as ra,q as oa,r as Kr,s as aa,v as Zr,z as la}from"./chunk-OMZMV24L.js";import{c as tn,d as dt,f as ze,g as _n,h as eo,i as gt,j as ma,k as ua}from"./chunk-TVWENLSI.js";import{o as Ha,r as He}from"./chunk-WTFGW5AE.js";import{C as Ua,E as La,F as fr,G as _r,I as Aa,Y as mi,Z as Ga,e as Ta,f as Ea,h as Ia,s as Re,t as mr,u as si}from"./chunk-EB5QYMEC.js";import{a as Ot}from"./chunk-LPHLD4GX.js";import{a as pi,b as za}from"./chunk-JD2ATGCO.js";import{a as ka}from"./chunk-ZI36IVAA.js";import{a as Mt,b as Na,c as hr,d as Pt,e as bt,f as gi,g as ja,h as Ba}from"./chunk-GF7IIRPD.js";import{a as di,b as Cr}from"./chunk-ALOZAETQ.js";import{d as Ya}from"./chunk-LMGSI5KD.js";import{a as Za,b as el,c as tl,d as nl}from"./chunk-GAGJN4OH.js";import{a as ke,b as ur,c as Ne,d as lt,h as Va,i as _e,j as xt}from"./chunk-UGTOLBCY.js";import{a as zt,b as Pr}from"./chunk-FMSA2UMQ.js";import{a as In,b as Wa}from"./chunk-WZLQQPOL.js";import{a as ci,b as De,c as Bt}from"./chunk-7YAQEZXO.js";import{h as Ja,i as kn,j as ui}from"./chunk-XSAYUACO.js";import{m as Fa,n as Ra,p as Da}from"./chunk-25L7LVSN.js";import{a as he}from"./chunk-UPBUW3C5.js";import{Ab as on,Ba as ar,Bb as Ie,C as L,Ca as Ye,Da as lr,Db as ye,Ea as ht,F as _t,Ga as sr,Ib as gr,L as or,Oa as oe,P as oi,Rb as va,Yb as to,Zb as an,_b as Tn,ab as wn,bb as ya,d as Zo,db as tt,dc as wa,fa as le,fc as Sa,hc as En,ic as ln,j as ea,kb as rt,l as Oa,lb as cr,nb as Je,ob as pr,q as Pa,qb as Nt,rb as dr,rc as jt,s as ii,tb as pe,u as ba,wa as ai,xa as se,yb as Ct}from"./chunk-MPPDZ2VB.js";import{b as Ae,c as li,d as Sn}from"./chunk-LL4IZAR4.js";import{a as Ee,b as Xe}from"./chunk-DRHHBH5M.js";import{B as fe,C as rn,c as nn,h as J,i as ni,k as fa,l as ir,n as _a,o as te,p as rr,q as ha,u as Ca,w as xa,x as Ma}from"./chunk-DV7HM4SB.js";import{a as K,b as I,c as qe,d as H}from"./chunk-NJPXBAJ4.js";import{$ as $e,$c as W,$d as Oe,A as Jn,Ac as X,Bc as Ge,Ca as Bo,Cc as P,E as Qe,Ed as fn,Fc as _,G as Zt,Ga as be,Gb as Ki,H as Ht,Ha as ge,Hc as c,I as Do,Ib as Lt,Ic as ot,Ja as Li,Jc as it,Jd as Ni,Kc as At,La as U,Lc as Qo,Ma as Q,N as Vo,Nc as Zn,O as Qr,Ob as s,Oc as Le,Pb as x,Pc as we,Q as Yi,Qc as Se,R as zn,Rb as Ai,Rc as j,Rd as Xo,Sa as kt,Sc as O,Ta as v,Tc as R,Ua as me,Uc as S,V as Uo,Va as Xi,Vb as Ho,Vc as ei,W as et,Wb as Xr,X as Lo,Xc as ne,Y as $r,Yb as Wo,Yc as ie,Z as Ue,Zc as re,Zd as de,_c as ti,a as Mn,ac as Zi,ae as A,bc as Jr,bd as Gn,be as en,ca as On,cb as k,cd as q,ce as Qt,d as Ut,db as u,dd as Te,de as Jo,ea as Ao,eb as f,ed as nr,ee as bn,fb as zo,fc as h,fd as $o,fe as yn,g as F,gc as er,ge as vn,hb as Go,hc as tr,i as ft,ia as No,j as $i,jc as Wt,jd as Yo,k as Wr,kc as l,kd as C,lb as ee,ld as M,mb as Ji,mc as z,md as xe,nb as y,oa as Yr,ob as qo,oc as un,pc as Kn,pe as E,qd as V,rc as Ce,sa as jo,ve as Ko,wa as Pn,wc as p,xa as mn,xc as d,y as Kt,ya as It,yc as b,z as nt,zc as Y}from"./chunk-DL5LSFDY.js";import{a as ce,b as Pe,e as Ro,i as ue,k as Z}from"./chunk-HQBHK7TL.js";var mt=ue(he());var OC={SCORE:"_score"},rl={LABEL:"label",ELEMENT_TYPE_URI:"elementTypeUri",URI:"uri"};function PC(n=[]){let r=new mt.LeafFilter("status").setValues(["published"]).setIdentifier(D.STATUS),o=new mt.CompoundFilter(mt.IqlQueryOperator.OR).setIdentifier(D.SIDEBAR);n.forEach(i=>{o.addFilter(new mt.CompoundFilter(mt.IqlQueryOperator.AND).setIdentifier(i).addFilter(new mt.LeafFilter(D.ELEMENT_TYPE_URI).setIdentifier(D.ELEMENT_TYPE_URI).setValues([i])))});let e=new mt.CompoundFilter(mt.IqlQueryOperator.AND).setIdentifier(D.QUICK).addFilter(r);return new mt.CompoundFilter(mt.IqlQueryOperator.AND).setIdentifier(D.GLOBAL_FILTERS).addFilter(e).addFilter(o).setSort([{by:D.UPDATED_ON,direction:mt.IqlSortOperator.DESC}])}var yt=ue(he());var Tr=(()=>{let r=class r{constructor(e,t,i,a,g,m){this.gqlService=e,this.logger=t,this.statsService=i,this.entityConfigService=a,this.featureFlagService=g,this.store=m,this.filteredEntities$=new F,this.cachedObservableQuery={},this.cachedQuerySubs={},this.busy=new F,this.newEntitiesFetchedSub=new F,this.onBusy=this.busy.asObservable(),this.onNewEntitiesFetched=this.newEntitiesFetchedSub.asObservable(),this.onDestroy=new F,this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L()).subscribe(w=>{this.currentSpaceUri=w})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}setGqlServiceId(e){this.serviceID=e}getFilteredEntities(e,t=24,i,a="cache-and-network",g=!1){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),i=i||this.currentSpaceUri,this.busy.next(!0),e.toJson(!0)&&(!e.getSort()||e.getSort().length===0)?this.logger.warn("Asking for elements with a filter without sort order is not suggested as it will prevent pagination from working!"):e.toJson(!0)||this.logger.warn("Using a fallback filter");let m=e.getSort();m.length===1&&m[0].by==="_score"&&(m.push({by:"_id",direction:yt.IqlSortOperator.ASC}),e.setSort(m));let w=e.toJson(!0)||new yt.CompoundFilter(yt.IqlQueryOperator.OR).setIdentifier(e.getIdentifier()).setSort(m??[{by:"updatedOn",direction:yt.IqlSortOperator.DESC}]).toJson(!1);return new Ut(N=>{this.cachedObservableQuery[e.getIdentifier()]=this.gqlService.defaultWatchQuery({query:Qa,variables:{request:{spaceUri:i,filter:w,pageSize:t}},fetchPolicy:a},this.serviceID),this.cachedQuerySubs[e.getIdentifier()]&&this.cachedQuerySubs[e.getIdentifier()].unsubscribe(),this.cachedQuerySubs[e.getIdentifier()]=this.cachedObservableQuery[e.getIdentifier()].subscribe(({data:G})=>{if(!G){this.logger.warn("no result");return}this.busy.next(!1),g&&(this.statsService.filterStatistics=G.elements.statistics),N.next(G.elements.elements),this.filteredEntities$.next(G.elements.elements),this.newEntitiesFetchedSub.next(null)},G=>{this.busy.next(!1),N.error(G.message)})})}fetchMoreFiltered(e){return this.busy.next(!0),this.cachedObservableQuery[e.getIdentifier()]?this.cachedObservableQuery[e.getIdentifier()].getLastResult().data.elements.cursor?this.cachedObservableQuery[e.getIdentifier()].fetchMore({variables:{cursor:this.cachedObservableQuery[e.getIdentifier()].getLastResult().data.elements.cursor},updateQuery:(t,g)=>{var m=g,{fetchMoreResult:i}=m,a=Ro(m,["fetchMoreResult"]);return i?Pe(ce({},i),{elements:Pe(ce({},i.elements),{elements:[...t.elements.elements,...i.elements.elements]})}):t}}).then(({data:t})=>(this.busy.next(!1),t.elements.elements)):Promise.resolve([]):Promise.reject("Undefined filter ObservableQuery!!")}remove(e){e&&this.cachedQuerySubs[e.getIdentifier()]&&this.cachedQuerySubs[e.getIdentifier()].unsubscribe()}getQuickSearchQuery(e,t){let i=new yt.CompoundFilter(yt.IqlQueryOperator.OR).setIdentifier("quick-text");return new Promise((a,g)=>{console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),Promise.all(t.map(m=>this.entityConfigService.getFieldsForElementType(m,!0,!1,this.currentSpaceUri))).then(m=>{let w=m.reduce((N,G)=>N.concat(G),[]);w=w.filter((N,G)=>w.findIndex(Me=>Me.uri===N.uri)===G),w=w.filter(N=>N.fieldTypeUri==="text"||N.fieldTypeUri==="rich"||N.fieldTypeUri==="tag"),w.forEach(N=>{let G=new yt.LeafFilter(N.uri).setSearch(e);i.addFilter(G,yt.compareLeafByOn)}),a(i)}).catch(m=>{this.logger.warn("getQuickSearchQuery in filter.service.ts failed",{search:e,typesUris:t,reason:m});let w=new yt.LeafFilter(rl.LABEL);w.setIdentifier("searchTerm"),w.setSearch(e),i.addFilter(w),a(i)})})}};r.\u0275fac=function(t){return new(t||r)(U(ln),U(Ae),U(Mr),U(He),U(Nt),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var NC=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["explorer-gpt-token-limit-warning"]],decls:4,vars:3,consts:[[1,"warning-wrapper"],[1,"color-error","icon2-x16-warning"],[1,"label-sm",3,"innerHTML"]],template:function(t,i){t&1&&(p(0,"div",0),b(1,"span",1)(2,"span",2),C(3,"translate"),d()),t&2&&(s(2),l("innerHTML",M(3,1,"common-ng.gptLimitWarning"),Ki))},dependencies:[I],styles:[".warning-wrapper[_ngcontent-%COMP%]{display:flex;border-radius:6px;background:#f0b11126;padding:12px;align-items:center;gap:8px}"]});let n=r;return n})();var ol=(()=>{let r=class r{constructor(e,t,i,a,g){this.logger=e,this.ecHelperService=t,this.toastService=i,this.translation=a,this.store=g,this.elementTypesCache={},this.onDestroy=new F,this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L()).subscribe({next:m=>{this.currentSpaceUri=m}})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}isConfigViewValid(e){return Z(this,null,function*(){let t=yield this.getElementTypes(),i=!e.types?.some(a=>!t.find(g=>g.uri===a));return i?new Promise((a,g)=>{console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),Promise.all((e?.types||[]).map(m=>this.ecHelperService.getFieldsForElementType(m,!0,!1,this.currentSpaceUri))).then(m=>{let w=new Set;e?.properties&&Object.keys(e.properties).forEach(G=>{w.add(e.properties[G])}),e?.segments&&e?.segments?.length&&e.segments.forEach(w.add,w),e?.properties?.color&&w.add(e.properties.color),e?.properties?.halo&&w.add(e.properties.halo),e?.properties?.donut&&w.add(e.properties.donut),e?.properties?.distance&&w.add(e.properties.distance),e?.axisX&&w.add(e.axisX),e?.axisY&&w.add(e.axisY),w.delete(null),w.delete("elementTypeUri"),w.delete("typeUri"),w.delete("relation");let N=new Set([].concat.apply([],m).map(G=>G.uri));e?.types.length&&Array.from(w).every(G=>N.has(G)?!0:(a(!1),!1)),a(!0)}).catch(m=>{this.logger.error("VisualizationConfigViewHelperService.isConfigViewValid() faced some problem with ecHelperService.getFieldsForElementType() while validating the view.",{reason:m,view:e}),a(!1)})}):Promise.resolve(i)})}getElementTypes(){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.elementTypesCache[this.currentSpaceUri]?this.elementTypesCache[this.currentSpaceUri]:(this.elementTypesCache[this.currentSpaceUri]=this.ecHelperService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri),this.elementTypesCache[this.currentSpaceUri])}triggerInvalidConfigToast(e){this.toastService.showToast({content:this.translation.instant(e),type:Ye.INFO,closeable:!0})}};r.\u0275fac=function(t){return new(t||r)(U(Ae),U(He),U(ht),U(K),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var ut=ue(he()),al="elementTypeUri",Wc="global-filters",zi=n=>{let r=new ut.LeafFilter("status").setValues(["published"]).setIdentifier("status"),o=new ut.CompoundFilter(ut.IqlQueryOperator.AND).setIdentifier("quick").addFilter(r),e=new ut.CompoundFilter(ut.IqlQueryOperator.OR).setIdentifier("sidebar");if(n){let i=new ut.CompoundFilter(ut.IqlQueryOperator.AND).setIdentifier(n);i.addFilter(new ut.LeafFilter(al).setIdentifier(al).setValues([n])),e.addFilter(i)}return new ut.CompoundFilter(ut.IqlQueryOperator.AND).setIdentifier(Wc).addFilter(o).addFilter(e).setSort([{by:"updatedOn",direction:ut.IqlSortOperator.DESC}])};var ll=ue(he());var no=[{uri:"networkGraphTrends",editable:!1,label:"Network of Trends",types:["RTLapL0ecryOhvw"],properties:{color:"e2jywUWGzxLsyZ5",size:"DBIqOqM9jdRAbQZ",link:"relation"},visibility:an.workspace,deletable:!1,filter:zi("RTLapL0ecryOhvw"),isDefault:!0,locked:!1},{uri:"networkGraphTechnologies",editable:!1,label:"Network of Technologies",types:["vMdt4O8brcI4DlZ"],properties:{color:"DBIqOqM9jdRAbQZ",size:"e2jywUWGzxLsyZ5",link:"tags"},visibility:an.workspace,deletable:!1,filter:zi("vMdt4O8brcI4DlZ"),isDefault:!0,locked:!1},{uri:"networkGraphRisk",label:"Network of Risks",editable:!1,types:["feQ1mCAafT132AI"],properties:{color:"e2jywUWGzxLsyZ5",size:"e2jywUWGzxLsyZ5",link:"relation"},visibility:an.workspace,deletable:!1,filter:zi("feQ1mCAafT132AI"),isDefault:!0,locked:!1}],io={uri:"DefaultNGConfigView",editable:!1,label:"Default",types:[],properties:{color:"elementTypeUri",link:"relation"},visibility:an.workspace,deletable:!1,filter:zi(""),isDefault:!0,locked:!1};var sl=(()=>{let r=class r{constructor(e,t,i,a,g,m,w,N){this.logger=e,this.presetService=t,this.entityConfigHelperService=i,this.sessionService=a,this.permissionService=g,this.translate=m,this.vizConfigViewHelperService=w,this.store=N,this.permissionMap=new Map,this.permissionMapSubject=new $i(1),this.onDestroy=new F,this.store.select(se.selectCurrentSpace).pipe(oe(),L()).subscribe(G=>{this.selectedSpace=G,this.initializePresetsPermissions()})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}getNetworkGraphConfigViewsBySpace(){return console.assert(!!this.selectedSpace,"selectedSpace should not be null"),this.presetService.getAllPresetsForSpace(this.selectedSpace.uri,{presetType:to.networkGraphView}).pipe(et(()=>nt([])),mn(e=>Kt(this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(this.selectedSpace.uri)).pipe(Zt(t=>{let i=t.map(m=>m.uri),g=no.map(m=>Pe(ce({},m),{group:this.provideGroupLabel(m.visibility)})).concat(e.map(m=>this.getNetworkGraphConfigViewFromPayload(m))).filter(m=>m.types.every(w=>i.includes(w)));return g.length?g:[Pe(ce({},io),{types:i})]}))))}addNetworkGraphView(e){let t=e?.filter.toJson();return console.assert(!!this.selectedSpace,"selectedSpace should not be null"),Qe(this.presetService.createPreset(this.getPayloadFromNetworkGraphConfigView(e,t,this.selectedSpace))).then(i=>this.getNetworkGraphConfigViewFromPayload(i))}updateNetworkGraphView(e){console.assert(!!this.selectedSpace,"selectedSpace should not be null");let t=e?.filter.toJson();return Qe(this.presetService.updatePreset(e.uri,this.getPayloadFromNetworkGraphConfigView(e,t,this.selectedSpace))).then(i=>this.getNetworkGraphConfigViewFromPayload(i))}deleteNetworkGraphView(e){return Qe(this.presetService.deletePreset(e))}getPayloadFromNetworkGraphConfigView(e,t,i){let a={filter:t,visualizationConfig:{properties:e.properties}};return{label:e.label,value:a,presetType:to.networkGraphView,visibility:e.visibility,spaceUri:i.uri,origin:i.label}}getNetworkGraphConfigViewFromPayload(e){let t=e.createdByUri===this.sessionService.getUser()?.sub,i=e.value;return{uri:e.uri,label:e.label,isOwnPreset:t,properties:i.visualizationConfig.properties,types:$a(i.filter,this.logger),visibility:e.visibility,group:this.provideGroupLabel(e.visibility),othersPrivate:e.visibility!==an.workspace&&!t,filter:ll.FilterFactory.fromJson(i?.filter),isDefault:!1,editable:this.getEditPermission(e,t),deletable:this.getDeletePermission(e,t),locked:!this.getDeletePermission(e,t)&&!this.getEditPermission(e,t)}}getDeletePermission(e,t){return e.visibility===an.workspace?this.permissionMap.get(tt.DELETE_ALL_SPACE_PRESETS):t}getEditPermission(e,t){return e.visibility===an.workspace?this.permissionMap.get(tt.EDIT_ALL_SPACE_PRESETS):t}provideGroupLabel(e){return e===an.workspace?this.translate.instant("explorer-network-graph.preset.publicPresetLabel"):this.translate.instant("explorer-network-graph.preset.privatePresetLabel")}initializePresetsPermissions(){Ht([this.permissionService.userHasPermission(tt.CREATE_SPACE_PRESET),this.permissionService.userHasPermission(tt.EDIT_ALL_SPACE_PRESETS),this.permissionService.userHasPermission(tt.DELETE_ALL_SPACE_PRESETS)]).pipe($e(1)).subscribe({next:([e,t,i])=>{this.permissionMap.set(tt.CREATE_SPACE_PRESET,e),this.permissionMap.set(tt.EDIT_ALL_SPACE_PRESETS,t),this.permissionMap.set(tt.DELETE_ALL_SPACE_PRESETS,i),this.permissionMapSubject.next(this.permissionMap)}})}getPresetsPermissions(){return this.permissionMapSubject.asObservable()}getPreset(e){return Z(this,null,function*(){let i=(yield this.getDefaultExplorerNetworkGraphViews()).find(g=>g.uri===e);if(i)return i;let a=yield this.fetchPreset(e);return a?this.getNetworkGraphConfigViewFromPayload(a):null})}fetchPreset(e){return Qe(this.presetService.getPreset(e).pipe(et(()=>nt(null))))}getDefaultExplorerNetworkGraphViews(){return Z(this,null,function*(){console.assert(!!this.selectedSpace,"selectedSpace should not be null");let e=yield this.entityConfigHelperService.getAllElementTypesBasedOnViewPermission(this.selectedSpace?.uri),t=no.filter(g=>g.types.every(m=>e.find(w=>w.uri===m))),i=yield Promise.all(t.map(g=>{let m=Pe(ce({},g),{types:g.types});return this.vizConfigViewHelperService.isConfigViewValid(m)})),a=t.filter((g,m)=>i[m]);return a.length?a:[io]})}};r.\u0275fac=function(t){return new(t||r)(U(Ae),U(qa),U(He),U(_t),U(wn),U(K),U(ol),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var Mx="Workflow Phase",$c=function(n){return n.ELEMENT_TYPE="elementTypeUri",n.STATUS="status",n.COLOR="color",n}($c||{}),Yc=function(n){return n.EDIT="edit",n.SAVE_AS="save_as",n.LOCKED="locked",n.DELETE="delete",n.DEFAULT="default",n}(Yc||{}),hn=function(n){return n.SAVE_AS_NEW="save as new",n.UPDATE="update",n.DISCARD="discard",n}(hn||{}),Xc=function(n){return n.PRESET="preset",n.ELEMENT_TYPE="elementType",n.SWIMLANE="swimlane",n.COLUMN="column",n.COLOR="color",n.UNASSIGNED="unassigned",n.EMPTY_SWIMLANE="emptySwimlanes",n.LABEL="label",n.LABELS="labels",n.TOP_RIGHT_WIDGET="topRightWidget",n.BOTTOM_LEFT_WIDGET="bottomLeftWidget",n.BOTTOM_RIGHT_WIDGET="bottomRightWidget",n}(Xc||{}),Jc=function(n){return n.ELEMENT_TYPE="elementType",n.COLUMNS="columns",n.SWIMLANES="swimlanes",n.SHOW_UNASSIGNED="show_unassigned",n.SHOW_EMPTY_SWIMLANES="show_empty_swimlanes",n.COLOR="color",n}(Jc||{}),Kc=function(n){return n.SUCCESS="SUCCESS",n.ERROR="ERROR",n.REJECTED="REJECTED",n.CANCELLED="CANCELLED",n}(Kc||{}),Zc=function(n){return n.DELETE="icon2-x16-delete",n.SAVE_AS="icon2-x16-plus-m",n.LOCKED="icon2-x16-lock",n.EDIT="icon2-x16-edit",n}(Zc||{}),Ox=["options","hierarchicalOptions","date","user","numerical"],Px=["options","elementTypeUri"],ep=function(n){return n.SWIMLANE="swimlane",n.COLUMN="column",n.COLOR="color",n.LABEL="label",n.FILTER="filter",n.UNASSIGNED="unassigned",n.EMPTY_SWIMLANE="emptySwimlane",n}(ep||{}),tp="null",bx={uri:tp,label:"Unassigned"},yx=[{key:"label1",settingUri:"",showFieldName:!1},{key:"label2",settingUri:"",showFieldName:!1},{key:"label3",settingUri:"",showFieldName:!1},{key:"label4",settingUri:"",showFieldName:!1}];var cl=(()=>{let r=class r{constructor(e){this.networkGraphService=e,this.isToolEditable=new $i(1)}getCreatePermissions(e,t){return Z(this,null,function*(){return e===Bi.BOARD?!Or(t):(e===Bi.MATRIX||e===Bi.RADAR||e===Bi.NETWORK_GRAPH&&(yield Qe(this.networkGraphService.getPresetsPermissions())),!0)})}updateIsToolIsEditable(e,t){this.isToolEditable.next({isEditable:e,tool:t})}getIsToolEditable(){return this.isToolEditable}};r.\u0275fac=function(t){return new(t||r)(U(sl))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var sp=["mat-menu-item",""],cp=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],pp=["mat-icon, [matMenuItemIcon]","*"];function dp(n,r){n&1&&(zo(),p(0,"svg",2),b(1,"polygon",3),d())}var gp=["*"];function mp(n,r){if(n&1){let o=P();p(0,"div",0),_("keydown",function(t){u(o);let i=c();return f(i._handleKeydown(t))})("click",function(){u(o);let t=c();return f(t.closed.emit("click"))})("@transformMenu.start",function(t){u(o);let i=c();return f(i._onAnimationStart(t))})("@transformMenu.done",function(t){u(o);let i=c();return f(i._onAnimationDone(t))}),p(1,"div",1),it(2),d()()}if(n&2){let o=c();l("id",o.panelId)("ngClass",o._classList)("@transformMenu",o._panelAnimationState),Wt("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null)("aria-describedby",o.ariaDescribedby||null)}}var oo=new Li("MAT_MENU_PANEL"),ro=(()=>{let r=class r{constructor(e,t,i,a,g){this._elementRef=e,this._document=t,this._focusMonitor=i,this._parentMenu=a,this._changeDetectorRef=g,this.role="menuitem",this.disabled=!1,this.disableRipple=!1,this._hovered=new F,this._focused=new F,this._highlighted=!1,this._triggersSubmenu=!1,a?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let i=0;i<t.length;i++)t[i].remove();return e.textContent?.trim()||""}_setHighlighted(e){this._highlighted=e,this._changeDetectorRef?.markForCheck()}_setTriggersSubmenu(e){this._triggersSubmenu=e,this._changeDetectorRef?.markForCheck()}_hasFocus(){return this._document&&this._document.activeElement===this._getHostElement()}};r.\u0275fac=function(t){return new(t||r)(x(Ji),x(Xo),x(Kr),x(oo,8),x(fn))},r.\u0275cmp=v({type:r,selectors:[["","mat-menu-item",""]],hostAttrs:[1,"mat-mdc-menu-item","mat-mdc-focus-indicator"],hostVars:8,hostBindings:function(t,i){t&1&&_("click",function(g){return i._checkDisabled(g)})("mouseenter",function(){return i._handleMouseEnter()}),t&2&&(Wt("role",i.role)("tabindex",i._getTabIndex())("aria-disabled",i.disabled)("disabled",i.disabled||null),z("mat-mdc-menu-item-highlighted",i._highlighted)("mat-mdc-menu-item-submenu-trigger",i._triggersSubmenu))},inputs:{role:"role",disabled:[kt.HasDecoratorInputTransform,"disabled","disabled",Ni],disableRipple:[kt.HasDecoratorInputTransform,"disableRipple","disableRipple",Ni]},exportAs:["matMenuItem"],standalone:!0,features:[Jr,W],attrs:sp,ngContentSelectors:pp,decls:5,vars:3,consts:[[1,"mat-mdc-menu-item-text"],["matRipple","",1,"mat-mdc-menu-ripple",3,"matRippleDisabled","matRippleTrigger"],["viewBox","0 0 5 10","focusable","false","aria-hidden","true",1,"mat-mdc-menu-submenu-icon"],["points","0,0 5,5 0,10"]],template:function(t,i){t&1&&(ot(cp),it(0),p(1,"span",0),it(2,1),d(),b(3,"div",1),h(4,dp,2,0,":svg:svg",2)),t&2&&(s(3),l("matRippleDisabled",i.disableRipple||i.disabled)("matRippleTrigger",i._getHostElement()),s(),Ce(4,i._triggersSubmenu?4:-1))},dependencies:[la],encapsulation:2,changeDetection:0});let n=r;return n})();var up=new Li("MatMenuContent");var Er={transformMenu:tn("transformMenu",[_n("void",ze({opacity:0,transform:"scale(0.8)"})),gt("void => enter",dt("120ms cubic-bezier(0, 0, 0.2, 1)",ze({opacity:1,transform:"scale(1)"}))),gt("* => void",dt("100ms 25ms linear",ze({opacity:0})))]),fadeInItems:tn("fadeInItems",[_n("showing",ze({opacity:1})),gt("void => *",[ze({opacity:0}),dt("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},gM=Er.fadeInItems,mM=Er.transformMenu,fp=0,_p=new Li("mat-menu-default-options",{providedIn:"root",factory:hp});function hp(){return{overlapTrigger:!1,xPosition:"after",yPosition:"below",backdropClass:"cdk-overlay-transparent-backdrop"}}var Oi=(()=>{let r=class r{get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}set panelClass(e){let t=this._previousPanelClass;t&&t.length&&t.split(" ").forEach(i=>{this._classList[i]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(i=>{this._classList[i]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(e){this.panelClass=e}constructor(e,t,i,a){this._elementRef=e,this._ngZone=t,this._changeDetectorRef=a,this._elevationPrefix="mat-elevation-z",this._baseElevation=8,this._directDescendantItems=new qo,this._classList={},this._panelAnimationState="void",this._animationDone=new F,this.closed=new y,this.close=this.closed,this.panelId=`mat-menu-panel-${fp++}`,this.overlayPanelClass=i.overlayPanelClass||"",this._xPosition=i.xPosition,this._yPosition=i.yPosition,this.backdropClass=i.backdropClass,this.overlapTrigger=i.overlapTrigger,this.hasBackdrop=i.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new ia(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(Pn(this._directDescendantItems),mn(e=>Yi(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let i=e.toArray(),a=Math.max(0,Math.min(i.length-1,t.activeItemIndex||0));i[a]&&!i[a].disabled?t.setActiveItem(a):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusSubscription?.unsubscribe()}_hovered(){return this._directDescendantItems.changes.pipe(Pn(this._directDescendantItems),mn(t=>Yi(...t.map(i=>i._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,i=this._keyManager;switch(t){case 27:na(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&i.setFocusOrigin("keyboard"),i.onKeydown(e);return}e.stopPropagation()}focusFirstItem(e="program"){this._firstItemFocusSubscription?.unsubscribe(),this._firstItemFocusSubscription=this._ngZone.onStable.pipe($e(1)).subscribe(()=>{let t=null;if(this._directDescendantItems.length&&(t=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!t||!t.contains(document.activeElement)){let i=this._keyManager;i.setFocusOrigin(e).setFirstItemActive(),!i.activeItem&&t&&t.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){let t=Math.min(this._baseElevation+e,24),i=`${this._elevationPrefix}${t}`,a=Object.keys(this._classList).find(g=>g.startsWith(this._elevationPrefix));(!a||a===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[i]=!0,this._previousElevation=i)}setPositionClasses(e=this.xPosition,t=this.yPosition){let i=this._classList;i["mat-menu-before"]=e==="before",i["mat-menu-after"]=e==="after",i["mat-menu-above"]=t==="above",i["mat-menu-below"]=t==="below",this._changeDetectorRef?.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(e){this._animationDone.next(e),this._isAnimating=!1}_onAnimationStart(e){this._isAnimating=!0,e.toState==="enter"&&this._keyManager.activeItemIndex===0&&(e.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe(Pn(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}};r.\u0275fac=function(t){return new(t||r)(x(Ji),x(Xr),x(_p),x(fn))},r.\u0275cmp=v({type:r,selectors:[["mat-menu"]],contentQueries:function(t,i,a){if(t&1&&(Zn(a,up,5),Zn(a,ro,5),Zn(a,ro,4)),t&2){let g;we(g=Se())&&(i.lazyContent=g.first),we(g=Se())&&(i._allItems=g),we(g=Se())&&(i.items=g)}},viewQuery:function(t,i){if(t&1&&Le(Ai,5),t&2){let a;we(a=Se())&&(i.templateRef=a.first)}},hostVars:3,hostBindings:function(t,i){t&2&&Wt("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[kt.None,"aria-label","ariaLabel"],ariaLabelledby:[kt.None,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[kt.None,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[kt.HasDecoratorInputTransform,"overlapTrigger","overlapTrigger",Ni],hasBackdrop:[kt.HasDecoratorInputTransform,"hasBackdrop","hasBackdrop",e=>e==null?null:Ni(e)],panelClass:[kt.None,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],standalone:!0,features:[ti([{provide:oo,useExisting:r}]),Jr,W],ngContentSelectors:gp,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel","mat-mdc-elevation-specific",3,"keydown","click","id","ngClass"],[1,"mat-mdc-menu-content"]],template:function(t,i){t&1&&(ot(),h(0,mp,3,6,"ng-template"))},dependencies:[de],styles:['mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;list-style-type:none}.mat-mdc-menu-content:focus{outline:none}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font);line-height:var(--mat-menu-item-label-text-line-height);font-size:var(--mat-menu-item-label-text-size);letter-spacing:var(--mat-menu-item-label-text-tracking);font-weight:var(--mat-menu-item-label-text-weight)}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;box-sizing:border-box;outline:0;border-radius:var(--mat-menu-container-shape);background-color:var(--mat-menu-container-color);will-change:transform,opacity}.mat-mdc-menu-panel.ng-animating{pointer-events:none}.cdk-high-contrast-active .mat-mdc-menu-panel{outline:solid 1px}.mat-divider{color:var(--mat-menu-divider-color);margin-bottom:var(--mat-menu-divider-bottom-spacing);margin-top:var(--mat-menu-divider-top-spacing)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;padding-left:var(--mat-menu-item-leading-spacing);padding-right:var(--mat-menu-item-trailing-spacing);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0);cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;align-items:center;min-height:48px}.mat-mdc-menu-item:focus{outline:none}[dir=rtl] .mat-mdc-menu-item,.mat-mdc-menu-item[dir=rtl]{padding-left:var(--mat-menu-item-trailing-spacing);padding-right:var(--mat-menu-item-leading-spacing)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing);padding-right:var(--mat-menu-item-with-icon-trailing-spacing)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]),.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon])[dir=rtl]{padding-left:var(--mat-menu-item-with-icon-trailing-spacing);padding-right:var(--mat-menu-item-with-icon-leading-spacing)}.mat-mdc-menu-item::-moz-focus-inner{border:0}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color)}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color)}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing);height:var(--mat-menu-item-icon-size);width:var(--mat-menu-item-icon-size)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color)}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color)}.cdk-high-contrast-active .mat-mdc-menu-item{margin-top:1px}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1)}.cdk-high-contrast-active .mat-mdc-menu-submenu-icon{fill:CanvasText}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}'],encapsulation:2,data:{animation:[Er.transformMenu,Er.fadeInItems]},changeDetection:0});let n=r;return n})(),ml=new Li("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let n=Q(ji);return()=>n.scrollStrategies.reposition()}});function Cp(n){return()=>n.scrollStrategies.reposition()}var xp={provide:ml,deps:[ji],useFactory:Cp},pl=ta({passive:!0});var ul=(()=>{let r=class r{get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}constructor(e,t,i,a,g,m,w,N,G){this._overlay=e,this._element=t,this._viewContainerRef=i,this._menuItemInstance=m,this._dir=w,this._focusMonitor=N,this._ngZone=G,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=Mn.EMPTY,this._hoverSubscription=Mn.EMPTY,this._menuCloseSubscription=Mn.EMPTY,this._changeDetectorRef=Q(fn),this._handleTouchStart=Me=>{oa(Me)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new y,this.onMenuOpen=this.menuOpened,this.menuClosed=new y,this.onMenuClose=this.menuClosed,this._scrollStrategy=a,this._parentMaterialMenu=g instanceof Oi?g:void 0,t.nativeElement.addEventListener("touchstart",this._handleTouchStart,pl)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,pl),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;let t=this._createOverlay(e),i=t.getConfig(),a=i.positionStrategy;this._setPosition(e,a),i.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,t.attach(this._getPortal(e)),e.lazyContent&&e.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(e),e instanceof Oi&&(e._startAnimation(),e._directDescendantItems.changes.pipe(It(e.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){if(!this._overlayRef||!this.menuOpen)return;let t=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,t instanceof Oi?(t._resetAnimation(),t.lazyContent?t._animationDone.pipe(zn(i=>i.toState==="void"),$e(1),It(t.lazyContent._attached)).subscribe({next:()=>t.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),t?.lazyContent?.detach())}_initMenu(e){e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,this._setMenuElevation(e),e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0)}_setMenuElevation(e){if(e.setElevation){let t=0,i=e.parentMenu;for(;i;)t++,i=i.parentMenu;e.setElevation(t)}}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(e){return new da({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(i=>{let a=i.connectionPair.overlayX==="start"?"after":"before",g=i.connectionPair.overlayY==="top"?"below":"above";this._ngZone?this._ngZone.run(()=>e.setPositionClasses(a,g)):e.setPositionClasses(a,g)})}_setPosition(e,t){let[i,a]=e.xPosition==="before"?["end","start"]:["start","end"],[g,m]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[w,N]=[g,m],[G,Me]=[i,a],at=0;if(this.triggersSubmenu()){if(Me=i=e.xPosition==="before"?"start":"end",a=G=i==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let Qi=this._parentMaterialMenu.items.first;this._parentInnerPadding=Qi?Qi._getHostElement().offsetTop:0}at=g==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(w=g==="top"?"bottom":"top",N=m==="top"?"bottom":"top");t.withPositions([{originX:i,originY:w,overlayX:G,overlayY:g,offsetY:at},{originX:a,originY:w,overlayX:Me,overlayY:g,offsetY:at},{originX:i,originY:N,overlayX:G,overlayY:m,offsetY:-at},{originX:a,originY:N,overlayX:Me,overlayY:m,offsetY:-at}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),i=this._parentMaterialMenu?this._parentMaterialMenu.closed:nt(),a=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(zn(g=>g!==this._menuItemInstance),zn(()=>this._menuOpen)):nt();return Yi(e,i,a,t)}_handleMousedown(e){ra(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe(zn(e=>e===this._menuItemInstance&&!e.disabled),On(0,Wr)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Oi&&this.menu._isAnimating?this.menu._animationDone.pipe($e(1),On(0,Wr),It(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new pa(e.templateRef,this._viewContainerRef)),this._portal}};r.\u0275fac=function(t){return new(t||r)(x(ji),x(Ji),x(Wo),x(ml),x(oo,8),x(ro,10),x(aa,8),x(Kr),x(Xr))},r.\u0275dir=Xi({type:r,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,i){t&1&&_("click",function(g){return i._handleClick(g)})("mousedown",function(g){return i._handleMousedown(g)})("keydown",function(g){return i._handleKeydown(g)}),t&2&&Wt("aria-haspopup",i.menu?"menu":null)("aria-expanded",i.menuOpen)("aria-controls",i.menuOpen?i.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[kt.None,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[kt.None,"matMenuTriggerFor","menu"],menuData:[kt.None,"matMenuTriggerData","menuData"],restoreFocus:[kt.None,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],standalone:!0});let n=r;return n})(),fl=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({providers:[xp],imports:[E,sa,Zr,ga,ca,Zr]});let n=r;return n})();function Op(n,r){if(n&1&&(p(0,"div"),O(1),d()),n&2){let o=c();s(),R(o.selectedOption==null?null:o.selectedOption.title)}}function Pp(n,r){n&1&&b(0,"ui-loader",11)}function bp(n,r){if(n&1){let o=P();p(0,"div")(1,"div",12),_("click",function(t){let i=u(o).$implicit,a=c();return f(i.disabled?t==null?null:t.stopPropagation():a.onActionClicked(i.actionType))}),p(2,"div",13)(3,"span"),O(4),d()()()()}if(n&2){let o=r.$implicit;s(),l("ui2Tooltip",o.disabled?o.tooltipText:null),s(),z("action-item-disabled",o.disabled),s(2),S(" ",o.title," ")}}var _l=(()=>{let r=class r{constructor(){this.allItemsDisabled=!1,this.actionClicked=new y,this.actionMenuOpen=!1,this.headerActions=hn}onActionClicked(e){this.actionClicked.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["innovation-os-ng-dropdown-button"]],inputs:{actionItems:"actionItems",allItemsDisabled:"allItemsDisabled",selectedOption:"selectedOption",isPresetUpdating:"isPresetUpdating",tooltipText:"tooltipText"},outputs:{actionClicked:"actionClicked"},decls:13,vars:15,consts:[["loader",""],["actionItemsMenu","matMenu"],["menuPlaceholder","matMenu"],[1,"flex","dropdown-button-wrapper"],[3,"ui2Tooltip"],[1,"menu-button","label-sm-semibold",3,"click","disabled"],[4,"ngIf","ngIfElse"],[1,"icon2-x16-micro-chevron-m","dropdown-arrow",3,"menuOpened","menuClosed","matMenuTriggerFor"],[1,"dropdown-button-wrapper"],[4,"ngFor","ngForOf"],[1,"menu-placeholder"],[1,"loading-spinner"],[1,"tooltip",3,"click","ui2Tooltip"],[1,"action-menu-item","label-sm-single"]],template:function(t,i){if(t&1){let a=P();p(0,"div",3)(1,"span",4)(2,"button",5),_("click",function(){return u(a),f(i.onActionClicked(i.headerActions.UPDATE))}),h(3,Op,2,1,"div",6)(4,Pp,1,0,"ng-template",null,0,V),d()(),p(6,"span",4)(7,"span",7),_("menuOpened",function(m){return u(a),f(i.allItemsDisabled?m==null?null:m.stopPropagation():i.actionMenuOpen=!i.actionMenuOpen)})("menuClosed",function(m){return u(a),f(i.allItemsDisabled?m==null?null:m.stopPropagation():i.actionMenuOpen=!i.actionMenuOpen)}),d()()(),p(8,"mat-menu",8,1),h(10,bp,5,4,"div",9),d(),b(11,"mat-menu",10,2)}if(t&2){let a=j(5),g=j(9),m=j(12);s(),l("ui2Tooltip",i.allItemsDisabled?i.tooltipText:i.selectedOption!=null&&i.selectedOption.disabled?i.selectedOption==null?null:i.selectedOption.tooltipText:null),s(),z("menu-button-disabled",i.allItemsDisabled||(i.selectedOption==null?null:i.selectedOption.disabled)||i.isPresetUpdating),l("disabled",i.selectedOption==null?null:i.selectedOption.disabled),s(),l("ngIf",!i.isPresetUpdating)("ngIfElse",a),s(3),l("ui2Tooltip",i.allItemsDisabled?i.tooltipText:null),s(),z("isActive",i.actionMenuOpen)("rotate-icon",i.actionMenuOpen)("dropdown-button-disabled",i.allItemsDisabled),l("matMenuTriggerFor",i.allItemsDisabled?m:g),s(3),l("ngForOf",i.actionItems)}},dependencies:[Oe,A,De,Ie,Oi,ul],styles:["[_nghost-%COMP%]     .loading-spinner{width:20px!important;height:20px!important}[_nghost-%COMP%]     .loading-spinner .loader{width:20px!important;height:20px!important}  .mat-mdc-menu-panel.dropdown-button-wrapper{margin-top:8px!important;max-width:fit-content!important;box-shadow:0 2px 6px #3e4d6347!important}  .mat-mdc-menu-panel.dropdown-button-wrapper .mat-mdc-menu-content:not(:empty){padding:0!important}  .tooltip .trigger-wrapper{width:100%}  .tooltip .trigger-wrapper:has(.action-item-disabled){cursor:not-allowed}  .trigger-wrapper:has(.dropdown-button-disabled){cursor:not-allowed}  .menu-placeholder{display:none}.dropdown-button-wrapper[_ngcontent-%COMP%]:hover:has(.dropdown-button-disabled){cursor:not-allowed}.dropdown-button-wrapper[_ngcontent-%COMP%]:hover{cursor:pointer}.rotate-icon[_ngcontent-%COMP%]{transform:rotateX(180deg)}.action-menu-item[_ngcontent-%COMP%]{height:40px;padding:12px}.dropdown-arrow[_ngcontent-%COMP%]{background-color:#098dcd;color:#fff;border-radius:0 20px 20px 0;display:flex;height:40px;padding:6px 12px;justify-content:center;align-items:center;font-size:16px;line-height:1}.menu-button[_ngcontent-%COMP%]{display:flex;height:40px;padding:4px 12px 4px 24px;justify-content:center;align-items:center;border-radius:20px 0 0 20px;border:1px solid #098dcd;background:#098dcd;color:#fff;border-right:1px solid #00689a}.menu-button[_ngcontent-%COMP%]:hover:not(.menu-button-disabled){cursor:pointer}.dropdown-arrow[_ngcontent-%COMP%]:hover:not(.dropdown-button-disabled), .isActive[_ngcontent-%COMP%], .menu-button[_ngcontent-%COMP%]:hover:not(.menu-button-disabled){background-color:#00689a}.menu-button-disabled[_ngcontent-%COMP%], .dropdown-button-disabled[_ngcontent-%COMP%]{color:#bdc8d4;border:1px solid #eff2f4;background-color:#eff2f4;cursor:not-allowed}.menu-button-disabled[_ngcontent-%COMP%]{border-right:1px solid #bdc8d4}.action-item-disabled[_ngcontent-%COMP%]{color:#bdc8d4}"]});let n=r;return n})();function wp(n,r){if(n&1){let o=P();Y(0),p(1,"span",5),C(2,"translate"),p(3,"ui2-button",6),_("nameSubmitted",function(t){u(o);let i=c();return f(i.onSavePresetForShare(t))})("modalClosed",function(t){u(o);let i=c();return f(i.onShareModalClosed(t))}),b(4,"span",7),p(5,"span",8),O(6),C(7,"translate"),d()()(),X()}if(n&2){let o=c();s(),l("ui2Tooltip",o.isViewDirty?M(2,6,"explorer-ng.quickAccess.saveBeforeShare"):""),s(2),l("viewName",o.viewName)("name",o.preset==null?null:o.preset.label)("shareablePreset",o.preset)("disabled",o.isViewDirty),s(3),S(" ",M(7,8,"explorer-ng.quickAccess.share")," ")}}function Sp(n,r){n&1&&(p(0,"span",9),O(1),C(2,"translate"),d()),n&2&&(s(),S(" (",M(2,1,"explorer-ng.quickAccess.unsavedChanges"),") "))}function Tp(n,r){if(n&1){let o=P();p(0,"ui2-button",10),_("clicked",function(){u(o);let t=c();return f(t.discardChanges())}),b(1,"span",11),d()}}var FM=(()=>{let r=class r{set isViewDirty(e){this.isViewDirtyValue=e,this.setActionItems()}get isViewDirty(){return this.isViewDirtyValue}set isDefaultPreset(e){e!==this.isDefaultPresetValue&&(this.isDefaultPresetValue=e,this.setActionItems())}constructor(e,t,i){this.translateService=e,this.presetQuickAccessHelper=t,this.store=i,this.isViewDirtyValue=!1,this.hasPermissionToEdit=!1,this.hasPermissionToSaveAsNew=!1,this.isPresetUpdating=!1,this.spaceUri="",this.tenantUri="",this.othersPrivate=!1,this.viewName="",this.onUpdatePreset=new y,this.onSaveAsNewPreset=new y,this.onDiscardChanges=new y,this.buttonTooltipText="",this.actionItems=[],this.canEdit=!1,this.allItemsDisabled=!0,this.isDefaultPresetValue=!1,this.onDestroy=new F,this.inputChanged=new F,this.destroyRef=Q(ee)}ngOnInit(){this.updateEditableState(),this.setButtonTooltipText()}ngOnChanges(e){this.setButtonTooltipText(),(e?.currentTool?.currentValue||e?.isViewDirty?.currentValue)&&(this.inputChanged.next(),this.updateEditableState(),this.setActionItems()),e.othersPrivate&&this.setActionItems()}ngOnDestroy(){this.onDestroy.next()}discardChanges(){this.onDiscardChanges.emit()}executeAction(e,t){switch(e){case hn.SAVE_AS_NEW:this.onSaveAsNewPreset.emit(t);return;case hn.UPDATE:this.onUpdatePreset.emit();return}}savePreset(e){this.executeAction(hn.SAVE_AS_NEW,e)}updateEditableState(){this.store.select(se.selectCurrentSpace).pipe(oe(),L(this.destroyRef)).subscribe(e=>{if(e&&this.currentTool)this.permissionSubs&&this.permissionSubs.unsubscribe(),this.permissionSubs=Ht([this.presetQuickAccessHelper.getCreatePermissions(this.currentTool,e),this.presetQuickAccessHelper.getIsToolEditable()]).pipe(It(this.inputChanged)).subscribe(([t,i])=>{this.hasPermissionToEdit=i.tool===this.currentTool?i.isEditable:!1,this.hasPermissionToSaveAsNew=t,this.canEdit=i.isEditable,this.setActionItems()});else throw Error("Preset quick access failed to retrieve app tool")})}setActionItems(){this.actionItems=[{title:this.translateService.instant("explorer-ng.quickAccess.saveAsNew"),actionType:hn.SAVE_AS_NEW,disabled:!this.hasPermissionToSaveAsNew,tooltipText:this.hasPermissionToSaveAsNew?null:this.translateService.instant("explorer-ng.quickAccess.noPermissionTooltipText")},{title:this.translateService.instant("explorer-ng.quickAccess.save"),actionType:hn.UPDATE,disabled:!this.isViewDirty||this.othersPrivate||!(this.canEdit||this.hasPermissionToEdit),tooltipText:this.canEdit&&!this.othersPrivate&&this.hasPermissionToEdit?this.isViewDirty?null:this.translateService.instant("explorer-ng.quickAccess.noUnsavedChanges"):this.isDefaultPresetValue?this.translateService.instant("explorer-ng.quickAccess.defaultTooltipText"):this.translateService.instant("explorer-ng.quickAccess.noPermissionTooltipText"),selectOptionOnLoad:!0}],this.allItemsDisabled=this.actionItems?.every(e=>e.disabled===!0),this.selectedOption=this.actionItems?.filter(e=>e.selectOptionOnLoad===!0)[0]}setButtonTooltipText(){this.buttonTooltipText=this.isPresetUpdating?this.translateService.instant("explorer-ng.explorer-board.header.loadingButton"):this.translateService.instant("explorer-ng.explorer-board.header.noOptions")}};r.\u0275fac=function(t){return new(t||r)(x(K),x(cl),x(le))},r.\u0275cmp=v({type:r,selectors:[["explorer-preset-quick-access"]],inputs:{isViewDirty:"isViewDirty",hasPermissionToEdit:"hasPermissionToEdit",hasPermissionToSaveAsNew:"hasPermissionToSaveAsNew",isPresetUpdating:"isPresetUpdating",currentTool:"currentTool",preset:"preset",spaceUri:"spaceUri",tenantUri:"tenantUri",othersPrivate:"othersPrivate",viewName:"viewName",isDefaultPreset:"isDefaultPreset"},outputs:{onUpdatePreset:"onUpdatePreset",onSaveAsNewPreset:"onSaveAsNewPreset",onDiscardChanges:"onDiscardChanges"},features:[k],decls:5,vars:8,consts:[[1,"quick-access-wrapper"],[4,"ifFeature"],["class","label-xs-semibold color-error",4,"ngIf"],["class","reset-icon button-with-icon",3,"clicked",4,"ngIf"],[3,"actionClicked","actionItems","allItemsDisabled","selectedOption","isPresetUpdating","tooltipText"],[3,"ui2Tooltip"],["coreShare","",1,"reset-icon","button-with-icon",3,"nameSubmitted","modalClosed","viewName","name","shareablePreset","disabled"],[1,"icon","icon2-x16-share-link"],[1,"label-sm-semibold-single","ml-2"],[1,"label-xs-semibold","color-error"],[1,"reset-icon","button-with-icon",3,"clicked"],[1,"icon","icon2-x16-reset"]],template:function(t,i){t&1&&(p(0,"div",0),h(1,wp,8,10,"ng-container",1)(2,Sp,3,3,"span",2)(3,Tp,2,0,"ui2-button",3),p(4,"innovation-os-ng-dropdown-button",4),_("actionClicked",function(g){return i.executeAction(g)}),d()()),t&2&&(s(),l("ifFeature","common.app.link-sharing"),s(),l("ngIf",i.isViewDirty&&!i.othersPrivate),s(),l("ngIf",i.isViewDirty),s(),l("actionItems",i.actionItems)("allItemsDisabled",i.allItemsDisabled)("selectedOption",i.selectedOption)("isPresetUpdating",i.isPresetUpdating)("tooltipText",i.buttonTooltipText))},dependencies:[A,De,Ee,dr,La,_l,I],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}.quick-access-wrapper[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.reset-icon.button-with-icon[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-right:0}.others-private-icon[_ngcontent-%COMP%]{font-size:16px}"]});let n=r;return n})();function Ep(n,r){if(n&1){let o=P();Y(0),p(1,"span",1)(2,"ui2-button",2),_("click",function(){let t=u(o).$implicit,i=c();return f(i.onClick(t))}),b(3,"span"),d()(),X()}if(n&2){let o=r.$implicit,e=c();s(),l("ui2Tooltip",o.label),s(),z("active",e.model&&e.model.uri===o.uri),s(),Kn("icon ",o.icon,"")}}var AM=(()=>{let r=class r{constructor(){this.onChange=new y}ngOnInit(){!this.model&&this.views&&this.views.length>0&&(this.model=this.views[0])}onClick(e){this.model=e,this.onChange.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["explorer-toggle-view"]],inputs:{model:"model",views:"views"},outputs:{onChange:"onChange"},decls:1,vars:1,consts:[[4,"ngFor","ngForOf"],[3,"ui2Tooltip"],[1,"view-switch","button-icon","mr-1",3,"click"]],template:function(t,i){t&1&&h(0,Ep,4,6,"ng-container",0),t&2&&l("ngForOf",i.views)},dependencies:[Oe,De,Ee],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}.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}.view-switch[_ngcontent-%COMP%]:last-child{margin-right:0}"]});let n=r;return n})();var vt="explorer.app",hl={SIMILAR_ELEMENTS:`${vt}.similar-elements`,RELATIONS_NETWORK_GRAPH:`${vt}.relations-network-graph`,SAVED_FILTERS:`${vt}.saved-filters`,SAVE_FILTER:`${vt}.save-filter`,DELETE_ELEMENT:`${vt}.delete-element`,NEWSFEED:`${vt}.newsfeed`,PORTFOLIO:`${vt}.portfolio`,NETWORK:`${vt}.network`,BOARD:`${vt}.board`,CREATE_ELEMENT:`${vt}.create-element`,BULK_ACTIONS:`${vt}.bulk-actions`,BULK_COPY:`${vt}.bulk-copy`,BOOKMARK:`${vt}.bookmark`,MATCH_INDICATOR:`${vt}.recommendation-match-indicator`};var Gi=function(n){return n.ENTITY="e",n.DOCUMENT="d",n.FACT="f",n.WIDGET="w",n.CLUSTER="c",n}(Gi||{});var Cl={};var ao={"user-search":{readOnlyNoInput:"None",deactivated:"Deactivated"}};var xl=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:ao,de:Cl}[t]||ao))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,xt,xr,H,fe]});let n=r;return n})();var Ml={"common-ng":{}};var lo={"common-ng":{gptLimitWarning:"This feature is temporarily unavailable as <b>you've hit your monthly request limit.</b> Your administrator has been informed"}};var Ol=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:lo,de:Ml}[t]||lo))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H,mi,Bt,xl,Ya,fe,ye,Xe,fl,gr,Ga]});let n=r;return n})();var Ir=(()=>{let r=class r{constructor(){this.onHeaderHeightChange=new ft(0),this.onHeaderHeightChangeObservable=this.onHeaderHeightChange.asObservable()}notifyHeaderHeightChange(e){this.onHeaderHeightChange.next(e)}getCurrentView(e){let t=e.url.split("/");return t[t.length-1].split("?")[0]??""}getCurrentViewPrefix(e){let t=this.getCurrentView(e);return t?`${t}.`:""}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var Xt=function(n){return n.FEATURE_FLAG="_feature_flag",n.TAB_NOTIFICATION_ENUM="_tab_notification_enum",n.MIN_CARDINALITY="_minCardinality",n.MAX_CARDINALITY="_maxCardinality",n.MIN="_min",n.MAX="_max",n.OPTIONS="_options",n.LABELS="_labels",n.FILTERABLE="_filterable",n.CRUNCHBASE="_crunchbase_map",n}(Xt||{}),Fp=function(n){return n.WORKFLOW_NOTIFIER="WORKFLOW_NOTIFIER",n.COMMENTS_NOTIFIER="COMMENTS_NOTIFIER",n.SIGNALS_NOTIFIER="SIGNALS_NOTIFIER",n}(Fp||{});var Rp=["sliderRef"],Dp=(n,r,o,e,t,i,a,g,m)=>[n,r,o,e,t,i,a,g,m],Vp=n=>({width:n});function Up(n,r){if(n&1){let o=P();p(0,"div",8)(1,"span",9),_("click",function(){u(o);let t=c();return f(t.deleteClicked.emit())}),d()()}}function Lp(n,r){if(n&1&&(p(0,"span",13),O(1),d()),n&2){let o=c(2);s(),R(o.averageValueFormatted)}}function Ap(n,r){if(n&1&&(p(0,"div",10)(1,"div",11),h(2,Lp,2,1,"span",12),d()()),n&2){let o=c();s(),l("ngStyle",q(2,Vp,o.averageValueWidth)),s(),l("ngIf",!o.isDiscrete||o.type==="numerical")}}var Hn=function(n){return n.Numerical="numerical",n.Ordered="ordered",n}(Hn||{}),Pi=function(n){return n.LeftEnd="slider--handle-position-min",n.RightEnd="slider--handle-position-max",n.Average="slider--handle-position-average",n.None="",n}(Pi||{}),Cn=function(n){return n.LeftEnd="slider--average-position-min",n.RightEnd="slider--average-position-max",n.LeftThreshold="slider--average-position-min-thres",n.RightThreshold="slider--average-position-max-thres",n.None="",n}(Cn||{}),so=function(n){return n.Numeric="slider--numeric-type",n.Ordered="slider--ordered-type",n}(so||{}),co=(()=>{let r=class r{constructor(){this.leftValue=void 0,this.rightValue=void 0,this.tickConfig=[],this.sliderStep=1,this.type=Hn.Ordered,this.isAverageGrey=!1,this.averageValue=void 0,this.averageValueFormatted="",this.userValue=void 0,this.isSharedType=!1,this.isRated=!1,this.isRatable=!0,this.isDiscrete=!0,this.isDeletable=!1,this.toolTipInput="",this.userValueChange=new y,this.userChangeStart=new y,this.userChangeEnd=new y,this.valueChange=new y,this.sliderStateUpdate=new y,this.deleteClicked=new y,this.hasAverageValue=!1,this.handleActive=!1,this.userValuePosition=Pi.None,this.averageValuePosition=Cn.None,this.sliderTypeClass=so.Ordered,this.locale="",this.loading=!1,this.sliderRef=void 0,this.locale=navigator.language,this.options={animate:!1,showTicks:!0,hideLimitLabels:!0,showTicksValues:!0,readOnly:!this.isRatable}}ngOnInit(){this.configureSlider()}ngOnChanges(e){e?.isRatable&&(this.options=Pe(ce({},this.options),{readOnly:!this.isRatable})),(e?.averageValue||e?.userValue)&&this.configureSlider()}ngAfterViewInit(){Array.from(this.sliderRef?.elementRef?.nativeElement?.children).filter(e=>e instanceof HTMLSpanElement&&e.classList.contains("ngx-slider-span")&&e.classList.contains("ngx-slider-bubble")).forEach(e=>{e.style.transform=""})}configureSlider(){this.averageValueWidth&&(this.hasAverageValue=!this.isSharedType),this.type===Hn.Numerical?(this.generateNumericSliderOption(),this.averageValue||this.averageValue===0?this.averageValueFormatted=this.averageValue.toLocaleString(this.locale):this.averageValueFormatted="",this.sliderTypeClass=so.Numeric):this.generateSliderLabels(),this.identifyPositionOfAverageValue(),this.identifyPositionOfUserValue()}updateIsRated(e){this.isRated=e,this.sliderStateUpdate.emit(this.isRated)}generateNumericSliderOption(){let e={floor:this.leftValue,ceil:this.rightValue,showTicks:this.isDiscrete,showTicksValues:this.isDiscrete,hideLimitLabels:this.isDiscrete,translate:t=>t.toLocaleString(this.locale)};this.isDiscrete&&(e.step=this.sliderStep,e.getLegend=t=>t===this.leftValue||t===this.rightValue||t===this.averageValue?""+t.toLocaleString(this.locale):""),this.options=Object.assign({},this.options,e)}generateSliderLabels(){let e=this.tickConfig.length,t=this.tickConfig.map((a,g)=>({legend:g===0||g===e-1||a.value===this.averageValue?a.legend:null,value:a.value})),i=a=>{let g=this.tickConfig.find(m=>m.value===a);return g?g.legend:null};this.options=Object.assign({},this.options,{stepsArray:t,translate:i})}identifyPositionOfAverageValue(){if(!(this.leftValue===void 0||this.rightValue===void 0))switch(this.averageValue){case this.leftValue:this.averageValuePosition=Cn.LeftEnd;break;case this.leftValue-1:this.averageValuePosition=Cn.LeftThreshold;break;case this.leftValue+1:this.averageValuePosition=Cn.LeftThreshold;break;case this.rightValue-1:this.averageValuePosition=Cn.RightThreshold;break;case this.rightValue+1:this.averageValuePosition=Cn.RightThreshold;break;case this.rightValue:this.averageValuePosition=Cn.RightEnd;break;default:this.averageValuePosition=Cn.None;break}}identifyPositionOfUserValue(){switch(this.userValue){case this.leftValue:this.userValuePosition=Pi.LeftEnd;break;case this.rightValue:this.userValuePosition=Pi.RightEnd;break;default:this.userValuePosition=Pi.None;break}this.userValue===this.averageValue&&(this.userValuePosition+=` ${Pi.Average}`)}onSliderStateUpdate(){this.userValue=0,this.updateIsRated(!this.isRated)}onValueChange(e){let t=this.isRated?e:null;this.identifyPositionOfUserValue(),this.valueChange.emit(t)}onUserChange(e){this.userValueChange.emit(e)}onUserChangeStart(e){this.handleActive=!0,this.isRated||this.updateIsRated(!0),this.userChangeStart.emit(e)}onUserChangeEnd(e){this.handleActive=!1,this.userChangeEnd.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui2-slider"]],viewQuery:function(t,i){if(t&1&&Le(Rp,5),t&2){let a;we(a=Se())&&(i.sliderRef=a.first)}},hostVars:2,hostBindings:function(t,i){t&2&&z("loading",i.loading)},inputs:{leftValue:"leftValue",rightValue:"rightValue",tickConfig:"tickConfig",sliderStep:"sliderStep",type:"type",isAverageGrey:"isAverageGrey",averageValue:"averageValue",averageValueFormatted:"averageValueFormatted",userValue:"userValue",isSharedType:"isSharedType",isRated:"isRated",averageValueWidth:"averageValueWidth",isRatable:"isRatable",isDiscrete:"isDiscrete",isDeletable:"isDeletable",toolTipInput:"toolTipInput",loading:"loading"},outputs:{userValueChange:"userValueChange",userChangeStart:"userChangeStart",userChangeEnd:"userChangeEnd",valueChange:"valueChange",sliderStateUpdate:"sliderStateUpdate",deleteClicked:"deleteClicked"},features:[k],decls:8,vars:16,consts:[["sliderRef",""],[1,"ui-slider"],["class","slider--add-button",4,"ngIf"],[1,"slider--wrapper",3,"ngClass"],[1,"average-wrapper"],["class","average-track",4,"ngIf"],[3,"ui2Tooltip"],[3,"valueChange","userChange","userChangeStart","userChangeEnd","value","options"],[1,"slider--add-button"],[1,"icon2-x16-close-m",3,"click"],[1,"average-track"],[1,"average-bar",3,"ngStyle"],["class","average--value",4,"ngIf"],[1,"average--value"]],template:function(t,i){if(t&1){let a=P();p(0,"div",1),h(1,Up,2,0,"div",2),p(2,"div",3)(3,"div",4),h(4,Ap,3,4,"div",5),d(),p(5,"span",6)(6,"ngx-slider",7,0),re("valueChange",function(m){return u(a),ie(i.userValue,m)||(i.userValue=m),f(m)}),_("userChange",function(m){return u(a),f(i.onUserChange(m))})("userChangeStart",function(m){return u(a),f(i.onUserChangeStart(m))})("userChangeEnd",function(m){return u(a),f(i.onUserChangeEnd(m))})("valueChange",function(m){return u(a),f(i.onValueChange(m))}),d()()()()}t&2&&(s(),l("ngIf",i.isRated&&i.isDeletable),s(),l("ngClass",Yo(6,Dp,[i.userValuePosition,i.averageValuePosition,i.sliderTypeClass,i.isRated&&i.isRatable?"slider--show-handle":"",i.isSharedType?"slider--shared-ui":"",i.handleActive?"slider--handle-active":"",i.isRatable?"":"slider--read-only",i.isDiscrete?"":"slider--no-ticks",i.isAverageGrey?"grey-average":""])),s(2),l("ngIf",i.hasAverageValue),s(),l("ui2Tooltip",i.toolTipInput),s(),ne("value",i.userValue),l("options",i.options))},dependencies:[de,A,bn,Za,De],styles:['.highlight-label[_ngcontent-%COMP%],   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-legend,   .ui-slider .slider--wrapper .average-wrapper .average-bar .average--value{color:#098dcd}.pseudo-content[_ngcontent-%COMP%],   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:after,   .ui-slider .slider--wrapper.slider--show-handle .ngx-slider .ngx-slider-bubble.ngx-slider-model-value:after,   .ui-slider .slider--wrapper:after{content:"";position:absolute;display:block}.label-box[_ngcontent-%COMP%],   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bubble,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value .ngx-slider-inner-tooltip{padding:2px 4px;border-radius:3px;font-size:12px;line-height:12px;color:#fff}.ui-slider[_ngcontent-%COMP%]{position:relative}.ui-slider[_ngcontent-%COMP%]:hover   .slider--add-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#627588}.ui-slider[_ngcontent-%COMP%]   .slider--add-button[_ngcontent-%COMP%]{position:absolute;top:50%;left:-8px;transform:translate(-100%,-50%) rotate(0)}.ui-slider[_ngcontent-%COMP%]   .slider--add-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{color:#bdc8d4;cursor:pointer;line-height:10px;height:10px;display:inline-block}.ui-slider[_ngcontent-%COMP%]   .slider--add-button[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:hover{color:#098dcd}  .ui-slider .slider--wrapper{position:relative}  .ui-slider .slider--wrapper:after{top:34px;background:#e1e7ee;width:100%;height:.5rem;border-radius:6px;z-index:0}  .ui-slider .slider--wrapper.slider--read-only .ngx-slider .ngx-slider-bar-wrapper .ngx-slider-bar{cursor:initial}  .ui-slider .slider--wrapper.slider--read-only .ngx-slider .ngx-slider-ticks .ngx-slider-tick{cursor:initial}  .ui-slider .slider--wrapper.slider--read-only .ngx-slider .ngx-slider-ticks .ngx-slider-tick .ngx-slider-tick-value:after,   .ui-slider .slider--wrapper.slider--read-only .ngx-slider .ngx-slider-ticks .ngx-slider-tick .ngx-slider-tick-value:before{content:none}  .ui-slider .slider--wrapper.slider--read-only .ngx-slider .ngx-slider-ticks .ngx-slider-tick .ngx-slider-tick-value .ngx-slider-inner-tooltip{left:0;padding:0;top:-20px;font-weight:600;background-color:transparent;color:#098dcd}  .ui-slider .slider--wrapper.slider--read-only .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-value .ngx-slider-inner-tooltip{left:7px}  .ui-slider .slider--wrapper.slider--numeric-type .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-value .ngx-slider-inner-tooltip{left:initial}  .ui-slider .slider--wrapper.slider--numeric-type .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend,   .ui-slider .slider--wrapper.slider--numeric-type .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{opacity:1;visibility:visible}  .ui-slider .slider--wrapper.slider--numeric-type .ngx-slider .ngx-slider-ticks .ngx-slider-tick .ngx-slider-tick-legend{opacity:0;visibility:hidden}  .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks .ngx-slider .ngx-slider-bubble.ngx-slider-limit{transform:translate(0) rotate(0);top:12px;background-color:transparent;height:12px}  .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks .ngx-slider .ngx-slider-ticks .ngx-slider-tick{background:transparent}  .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks .ngx-slider .ngx-slider-ticks .ngx-slider-tick .ngx-slider-span.ngx-slider-tick-legend{opacity:0;visibility:hidden}  .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child,   .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child{opacity:1;visibility:visible}  .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks .ngx-slider .ngx-slider-ticks .ngx-slider-tick ngx-slider-tooltip-wrapper:not(.ngx-slider-tick-value) .ngx-slider-inner-tooltip{width:auto;height:100%}  .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks.slider--show-handle .ngx-slider .ngx-slider-bubble.ngx-slider-model-value,   .ui-slider .slider--wrapper.slider--numeric-type.slider--no-ticks.slider--show-handle.slider--handle-position-max .ngx-slider .ngx-slider-bubble.ngx-slider-limit{transform:translate(0) rotate(0)}  .ui-slider .slider--wrapper.slider--numeric-type.slider--average-position-min .average-wrapper .average-bar .average--value,   .ui-slider .slider--wrapper.slider--numeric-type.slider--average-position-max .average-wrapper .average-bar .average--value{opacity:0;visibility:hidden}  .ui-slider .slider--wrapper.slider--average-position-min-thres .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend{opacity:0}  .ui-slider .slider--wrapper.slider--average-position-min:not(.grey-average) .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child{pointer-events:none}  .ui-slider .slider--wrapper.slider--average-position-min:not(.grey-average) .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend{color:#098dcd}  .ui-slider .slider--wrapper.slider--average-position-min.grey-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child{pointer-events:none}  .ui-slider .slider--wrapper.slider--average-position-min.grey-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend{color:#8a9bab}  .ui-slider .slider--wrapper.slider--average-position-max-thres .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{opacity:0}  .ui-slider .slider--wrapper.slider--average-position-max:not(.grey-average) .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child{pointer-events:none}  .ui-slider .slider--wrapper.slider--average-position-max:not(.grey-average) .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{color:#098dcd}  .ui-slider .slider--wrapper.slider--average-position-max.grey-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child{pointer-events:none}  .ui-slider .slider--wrapper.slider--average-position-max.grey-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{color:#8a9bab}  .ui-slider .slider--wrapper.slider--average-position-max .average-wrapper .average-bar{border-radius:.5rem}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-min .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend{opacity:0!important}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-min .ngx-slider .ngx-slider-bar-wrapper .ngx-slider-selection{background-color:transparent}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-min .ngx-slider .ngx-slider-pointer:before{transform:translate(-2px) rotate(0)}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-min .ngx-slider .ngx-slider-pointer:after{left:6px}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-min .ngx-slider .ngx-slider-bubble{transform:translate(0) rotate(0)}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-max .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child{pointer-events:none}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-max .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{opacity:0!important}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-max .ngx-slider .ngx-slider-pointer:before{transform:translate(-23px)}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-max .ngx-slider .ngx-slider-pointer:after{left:-15px}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-max .ngx-slider .ngx-slider-bubble{transform:translate(-100%) rotate(0)}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-average .average-wrapper .average-bar .average--value{opacity:0}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick .ngx-slider-tick-legend{opacity:0;visibility:hidden;pointer-events:none}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend,   .ui-slider .slider--wrapper.slider--show-handle.slider--handle-position-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{opacity:1;visibility:visible}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-active .ngx-slider .ngx-slider-pointer:after{width:12px;height:12px;top:calc(50% - 6px);left:calc(50% - 6px)}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-active.slider--handle-position-min .ngx-slider .ngx-slider-pointer:after{left:5px}  .ui-slider .slider--wrapper.slider--show-handle.slider--handle-active.slider--handle-position-max .ngx-slider .ngx-slider-pointer:after{left:-17px}  .ui-slider .slider--wrapper.slider--show-handle .ngx-slider .ngx-slider-bubble.ngx-slider-model-value{visibility:visible!important}  .ui-slider .slider--wrapper.slider--show-handle .ngx-slider .ngx-slider-bubble.ngx-slider-model-value:after{width:45px;height:45px;left:50%;transform:translate(-50%) rotate(0)}  .ui-slider .slider--wrapper.slider--show-handle .ngx-slider .ngx-slider-pointer{visibility:visible!important}  .ui-slider .slider--wrapper.slider--show-handle .ngx-slider .ngx-slider-bar-wrapper .ngx-slider-selection{background-color:transparent}  .ui-slider .slider--wrapper.slider--shared-ui:after{height:.25rem}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider{height:.25rem}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-bar-wrapper{height:20px}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-bar-wrapper .ngx-slider-bar{height:.25rem}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-ticks .ngx-slider-tick,   .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-ticks .ngx-slider-selected{height:4px}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:before{top:calc(-50% + 1px)}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:after{top:calc(-50% + 4px)}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value .ngx-slider-inner-tooltip{top:-32px}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-pointer{top:-10px}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-pointer.ngx-slider-active:after,   .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-pointer:after,   .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-pointer:hover:after{background-color:#098dcd}  .ui-slider .slider--wrapper.slider--shared-ui .ngx-slider .ngx-slider-bubble{background-color:#098dcd}  .ui-slider .slider--wrapper.grey-average .highlight-label,   .ui-slider .slider--wrapper.grey-average .ngx-slider .ngx-slider-ticks .ngx-slider-tick-legend,   .ui-slider .slider--wrapper.grey-average .average-wrapper .average-bar .average--value{color:#8a9bab}  .ui-slider .slider--wrapper.grey-average .average-wrapper .average-bar{background:#8a9bab}  .ui-slider .slider--wrapper.grey-average .average-wrapper .average-bar .average--value{color:#8a9bab}  .ui-slider .slider--wrapper .average-wrapper{top:34px;position:absolute;width:100%;pointer-events:none;z-index:1}  .ui-slider .slider--wrapper .average-wrapper .average-track{position:absolute;background:transparent;height:.5rem;width:100%}  .ui-slider .slider--wrapper .average-wrapper .average-bar{height:100%;width:0;max-width:100%;background:#098dcd;border-radius:.5rem 0 0 .5rem;position:relative}  .ui-slider .slider--wrapper .average-wrapper .average-bar .average--value{top:12px;left:100%;text-align:center;overflow:hidden;max-width:120px;text-overflow:ellipsis;white-space:nowrap;padding:0 4px;position:absolute;font-weight:600;font-size:12px;line-height:1;transform:translate(-50%) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider{height:.5rem;margin:34px 0}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bar-wrapper{height:24px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bar-wrapper .ngx-slider-bar{background:transparent;height:.5rem;border-radius:6px;cursor:pointer}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bar-wrapper .ngx-slider-selection{z-index:2;background:transparent;border-radius:6px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks{top:0}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-selected{background:#fff;border-radius:0;width:3px;height:8px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick{margin-left:0;z-index:2}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:hover .ngx-slider-tick-value{opacity:1}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:hover .ngx-slider-tick-value:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:hover .ngx-slider-tick-value:after{transform:translate(-50%) scale(1) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child{background:none;z-index:1}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child:after,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child:after,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child:before{content:initial}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-value,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-value{left:9px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-value .ngx-slider-inner-tooltip,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-value .ngx-slider-inner-tooltip{left:10px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child ngx-slider-tooltip-wrapper:first-child .ngx-slider-inner-tooltip,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child ngx-slider-tooltip-wrapper:first-child .ngx-slider-inner-tooltip{transform:translateY(-14px) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-legend,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{left:0;padding:0;text-align:left;color:#bdc8d4;transform:translate(0) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-value:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:first-child .ngx-slider-tick-value:after{left:calc(50% - 2px)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-value{left:-8px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-value:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-value:after{left:calc(50% + 1px)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-value .ngx-slider-inner-tooltip{left:calc(-50% + 10px)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child ngx-slider-tooltip-wrapper:first-child .ngx-slider-inner-tooltip{transform:translate(-100%,-14px) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick:last-child .ngx-slider-tick-legend{text-align:right;transform:translate(-100%) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks ngx-slider-tooltip-wrapper:not(.ngx-slider-tick-value) .ngx-slider-inner-tooltip{width:36px;height:36px;transform:translate(-16px,-14px) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-legend{top:8px;left:50%;text-align:center;overflow:hidden;max-width:120px;text-overflow:ellipsis;white-space:nowrap;padding:0 4px;font-weight:600;font-size:12px;transform:translate(-50%) rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value{top:0;opacity:0;position:absolute;pointer-events:none;z-index:1}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:before,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:after{transform:translate(-50%) scale(0) rotate(0);background-color:#098dcd;width:12px;height:12px;border-radius:50%;top:calc(-50% + 6px);left:50%;transition:all ease .2s}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value:before{background-color:#fff;width:18px;height:18px;top:calc(-50% + 3px)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-ticks .ngx-slider-tick-value .ngx-slider-inner-tooltip{background-color:#098dcd;position:relative;top:-28px}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bubble{transition:none;margin-bottom:4px;background:#00d1ff;transform:translate(-50%) rotate(0);z-index:1}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bubble.ngx-slider-floor,   .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bubble.ngx-slider-ceil{padding:2px 0;margin-bottom:0;bottom:-28px;color:#bdc8d4;font-size:12px;background-color:#fff}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-bubble.ngx-slider-model-value{visibility:hidden!important}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer{width:2px;height:24px;top:-8px;background-color:transparent;visibility:hidden!important;transition:none;transform:rotate(0)}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer:before{top:0;left:50%;transform:translate(-50%) rotate(0);width:24px;height:24px;box-shadow:0 3px 7px #8a9bab99,0 1px 2px #8a9bab99;background-color:#fff;border-radius:50%}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer:after{top:calc(50% - 5px);left:calc(50% - 5px);background-color:#00d1ff;width:10px;height:10px;border-radius:50%}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer.ngx-slider-active:after{background-color:#00d1ff}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer:hover:before{background-color:#e6f6fe}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer:hover:after{background-color:#00d1ff}  .ui-slider .slider--wrapper .ngx-slider .ngx-slider-pointer:focus{outline:none}.loading[_nghost-%COMP%]   .average-wrapper[_ngcontent-%COMP%], .loading   [_nghost-%COMP%]   .average-wrapper[_ngcontent-%COMP%]{overflow:hidden;height:.5rem}.loading[_nghost-%COMP%]   .average-wrapper[_ngcontent-%COMP%]:after, .loading   [_nghost-%COMP%]   .average-wrapper[_ngcontent-%COMP%]:after{pointer-events:none;content:"";display:block;position:absolute;inset:0 0 0 -10px;z-index:1;background:-webkit-repeating-linear-gradient(145deg,rgba(255,255,255,.3) 0px,rgba(255,255,255,.3) 4px,rgba(255,255,255,0) 4px,rgba(255,255,255,0) 8px);background:repeating-linear-gradient(-55deg,#ffffff4d 0px 4px,#fff0 4px 8px);animation-name:_ngcontent-%COMP%_stripAnimation;animation-duration:.6s;animation-timing-function:linear;animation-iteration-count:infinite}@-webkit-keyframes _ngcontent-%COMP%_stripAnimation{0%{transform:translate(0)}to{transform:translate(10px)}}@keyframes _ngcontent-%COMP%_stripAnimation{0%{transform:translate(0)}to{transform:translate(10px)}}[_nghost-%COMP%]     .trigger-wrapper{width:100%;display:inline!important;padding-bottom:8px}']});let n=r;return n})();var bl=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,el,Bt]});let n=r;return n})();var yl=function(n){return n[n.ERROR=0]="ERROR",n[n.SUCCESS=1]="SUCCESS",n[n.INFO=2]="INFO",n[n.ALERT=3]="ALERT",n}(yl||{}),Wn=function(n){return n[n.CUSTOM_CONTENT=0]="CUSTOM_CONTENT",n[n.DEFAULT=1]="DEFAULT",n}(Wn||{}),jp=(()=>{let r=class r{constructor(e){this.domSanitizer=e,this.addToastSub=new F,this.addToast=this.addToastSub.asObservable(),this.removeToastSub=new F,this.removeToast=this.removeToastSub.asObservable()}showToast(e){return e.toastId=this.randomIdGenerator(),e.type=this.isEmpty(e.type)?yl.INFO:e.type,e.contentType=this.isEmpty(e.contentType)?Wn.DEFAULT:e.contentType,e.closeable=this.isEmpty(e.closeable)?!0:e.closeable,e.contentType===Wn.CUSTOM_CONTENT&&(e.content=this.sanitizeCustomContent(e.content)),this.addToastSub.next(e),e.toastId}closeToast(e){this.removeToastSub.next(e)}isEmpty(e){return e==null}sanitizeCustomContent(e){return this.domSanitizer.bypassSecurityTrustHtml(e)}randomIdGenerator(){let e="",t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";for(let i=0;i<5;i++)e+=t.charAt(Math.floor(Math.random()*t.length));return e}};r.\u0275fac=function(t){return new(t||r)(U(ea))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var vl={};var po={"ui-toast":{closeMessage:"Close"}};var g1=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:po,de:vl}[t]||po))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H]});let n=r;return n})();function zp(n,r){if(n&1&&b(0,"div",1),n&2){let o=c();z("sticky",o.stickyEnabled)}}var Dn=(()=>{let r=class r{ngAfterViewInit(){this.ownScrollEvent&&window.addEventListener("scroll",this.scroll.bind(this),!0),this.init()}ngOnChanges(e){!this.ownScrollEvent&&this.stickyTop&&(e.scrollTop||e.stickyTop)&&this.scroll(),this.loading&&this.loading.length&&e.loading&&this.init()}ngOnDestroy(){this.ownScrollEvent&&window.removeEventListener("scroll",this.scroll.bind(this),!0),this.loadingSubs&&this.loadingSubs.unsubscribe()}init(){this.loadingSubs&&this.loadingSubs.unsubscribe(),this.loading&&this.loading.length?(setTimeout(()=>{this.isVisible=!1},0),this.loadingSubs=Ht([...this.loading]).pipe(Zt(e=>e.some(t=>t))).subscribe(e=>{setTimeout(()=>{this.isVisible=e},0)})):setTimeout(()=>{this.isVisible=!0},0)}scroll(e){if(this.stickyTop){let t=e&&e.target.scrollTop?e.target.scrollTop:this.scrollTop;this.stickyEnabled=t>this.stickyTop}}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui-bar-loader"]],inputs:{ownScrollEvent:"ownScrollEvent",scrollTop:"scrollTop",stickyTop:"stickyTop",loading:"loading"},features:[k],decls:1,vars:1,consts:[["class","bar-loader",3,"sticky",4,"ngIf"],[1,"bar-loader"]],template:function(t,i){t&1&&h(0,zp,1,2,"div",0),t&2&&l("ngIf",i.isVisible)},dependencies:[A],styles:['.bar-loader[_ngcontent-%COMP%]{position:absolute;width:100%;top:0}.bar-loader[_ngcontent-%COMP%]:before, .bar-loader[_ngcontent-%COMP%]:after{position:absolute;top:0;content:"";display:block;height:4px;width:100%;background:#e6f6fe;animation:_ngcontent-%COMP%_bar1Anim 2s ease-in-out infinite;transform:scaleX(0)}.bar-loader[_ngcontent-%COMP%]:after{background:#098dcd;animation:_ngcontent-%COMP%_bar2Anim 2s ease-in-out infinite}.bar-loader.sticky[_ngcontent-%COMP%]{position:fixed;top:0;left:0;right:0;z-index:12}@keyframes _ngcontent-%COMP%_bar1Anim{0%{transform:scaleX(0)}40%{transform:scaleX(1)}to{transform:scaleX(1)}}@keyframes _ngcontent-%COMP%_bar2Anim{0%{transform:scaleX(0)}50%{transform:scaleX(0)}90%{transform:scaleX(1)}to{transform:scaleX(1)}}@-webkit-keyframes _ngcontent-%COMP%_bar1Anim{0%{transform:scaleX(0)}40%{transform:scaleX(1)}to{transform:scaleX(1)}}@-webkit-keyframes _ngcontent-%COMP%_bar2Anim{0%{transform:scaleX(0)}50%{transform:scaleX(0)}90%{transform:scaleX(1)}to{transform:scaleX(1)}}']});let n=r;return n})();var Vn=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E]});let n=r;return n})();var S1={active:"watch-elements.buttonLabels.active",inActive:"watch-elements.buttonLabels.inActive"},T1={active:"watch-elements.tooltipLabels.active",inActive:"watch-elements.tooltipLabels.inActive"},E1={inActive:"watch-elements.tooltipLabels.watchers.inActive",active:"watch-elements.tooltipLabels.watchers.active"},Gp=function(n){return n.Grid="grid",n.Stack="stack",n.DetailPage="detail-page",n}(Gp||{}),I1="watchElements",k1={START_WATCHING:"start-watching",STOP_WATCHING:"stop-watching"},wl="explorer.app.watch-elements";var Sl=Ot`
  mutation elementsWatch($elementsWatch: ElementsWatchInput!) {
    elementsWatch(elementsWatch: $elementsWatch) {
      ... on ElementsBulkWatchResponse {
        message
        status
      }
      __typename
    }
  }
`;var Tl=Ot`
  mutation elementWatch($elementWatch: ElementWatchInput!) {
    elementWatch(elementWatch: $elementWatch) {
      elementUri
      tenantUri
      spaceUri
      watch
    }
  }
`;var Fr=(()=>{let r=class r{constructor(e,t,i){this.graphqlService=e,this.featureFlagService=t,this.store=i,this.destroyRef=Q(ee),this.onWatchStatusChanged$=new F,this.onWatchFeatureChange$=new ft(!1),this.onDestroy=new F,this.isWatchFeatureEnabled()}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}setGqlServiceId(e){this.serviceId=e}updateWatchElementStatus(e){return Qe(this.graphqlService.mutate({mutation:Tl,variables:{elementWatch:e},update:(t,{data:{elementWatch:i}})=>{this.emitWatchStatusChange(i)}},this.serviceId))}updateWatchElementsStatus(e){return Qe(this.graphqlService.mutate({mutation:Sl,variables:{elementsWatch:e},update:(t,{data:{elementsWatch:i}})=>{i.status&&e.elementUris.forEach(a=>{let g={elementUri:a,tenantUri:e.tenantUri,spaceUri:e.spaceUri,watch:e.watch,userUri:e.userUri};this.emitWatchStatusChange(g)})}},this.serviceId))}get onWatchStatusChange(){return this.onWatchStatusChanged$.asObservable()}get onWatchFeatureToggle(){return this.onWatchFeatureChange$.asObservable()}isWatchFeatureEnabled(){this.featureFlagService.isFeatureEnabled(wl).then(e=>{e&&this.listenSpaceChange()})}listenSpaceChange(){this.store.select(se.selectCurrentSpace).pipe(oe(),L(this.destroyRef)).subscribe(e=>{console.assert(!!e,"space should not be null");let t=Or(e);this.emitWatchFeatureChange(!t)})}emitWatchStatusChange(e){this.onWatchStatusChanged$.next(e)}emitWatchFeatureChange(e){this.onWatchFeatureChange$.next(e)}};r.\u0275fac=function(t){return new(t||r)(U(ln),U(Nt),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var Un=ue(he());var Il=Ot`
  query getSpaceTagsByFilter($request: FilterQuery!) {
    tagStatistics(request: $request) {
      tag
      usageCount
    }
  }
`;var kl=Ot`
  query getTagByName($request: FilterQuery!) {
    tagStatistics(request: $request) {
      tag
      usageCount
    }
  }
`;var Fl=Ot`
  query tagSuggestions($typedString: String, $spaceUri: String!, $maxSuggestions: Int) {
    tagSuggestions(typedString: $typedString, spaceUri: $spaceUri, maxSuggestions: $maxSuggestions) {
      tag
      usageCount
    }
  }
`;var Rl=Ot`
  query elementUrisByTag($spaceUri: String!, $tag: String!) {
    elementUrisByTag(spaceUri: $spaceUri, tag: $tag) {
      tag
      spaceUri
      elementUris
    }
  }
`;var Dl=200,Rr=(()=>{let r=class r{constructor(e,t){this.graphqlService=e,this.store=t,this.serviceId="entity",this.onDestroy=new F,this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L()).subscribe({next:i=>{this.currentSpaceUri=i}})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}setGqlServiceId(e){this.serviceId=e}getTagsBySpace(e){return this.getSpaceTagsByFilter(e,new Un.CompoundFilter(Un.IqlQueryOperator.OR))}getSpaceTagsByFilter(e,t){let i=t.toJson(!0)||new Un.CompoundFilter(Un.IqlQueryOperator.OR).setIdentifier(t.getIdentifier()).toJson(!1);return new Ut(a=>{console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.graphqlService.watchQuery({query:Il,variables:{request:{spaceUri:e||this.currentSpaceUri,filter:i,pageSize:Dl}},fetchPolicy:"network-only"},this.serviceId).subscribe(g=>a.next(g),g=>a.error(g),()=>a.complete())}).pipe(Zt(({data:a})=>a.tagStatistics.map(g=>({label:g.tag,count:g.usageCount}))))}getTagByName(e,t){return new Promise((i,a)=>{this.graphqlService.watchQuery({query:kl,variables:{request:{spaceUri:e,filter:new Un.LeafFilter("tags").setValues([t]).toJson(!1),pageSize:Dl}},fetchPolicy:"network-only"},this.serviceId).subscribe(g=>{let w=(g.data.tagStatistics||[]).find(N=>N.tag===t)||{tag:t,usageCount:1};i({label:w.tag,count:w.usageCount})})})}getTagSuggestions(e,t,i){return new Promise((a,g)=>{this.graphqlService.watchQuery({query:Fl,variables:{typedString:t,spaceUri:e,maxSuggestions:i||200},fetchPolicy:"network-only"},this.serviceId).subscribe(m=>{a(m.data.tagSuggestions)})})}getElementUrisByTag(e,t){return new Promise((i,a)=>{this.graphqlService.watchQuery({query:Rl,variables:{spaceUri:e,tag:t},fetchPolicy:"network-only"},this.serviceId).subscribe(g=>{i(g.data.elementUrisByTag)})})}};r.\u0275fac=function(t){return new(t||r)(U(ln),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var go=n=>r=>new Ut(o=>r.pipe(Uo(r.pipe(Ue(n)))).subscribe(e=>o.next(e),e=>o.error(e),()=>o.complete()));var bi=(()=>{let r=class r extends Tr{constructor(e,t,i,a,g,m){super(e,t,i,a,g,m),this.gqlService=e,this.logger=t,this.statsService=i,this.entityConfigService=a,this.featureFlagService=g,this.store=m}};r.\u0275fac=function(t){return new(t||r)(U(ln),U(Ae),U(Mr),U(He),U(Nt),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var jP=ue(he());function qp(n,r){if(n&1){let o=P();p(0,"span",1)(1,"ui2-button",2),_("click",function(){u(o);let t=c();return f(t.onExcelExport())}),b(2,"span",3),d()()}if(n&2){let o=c();l("ui2Tooltip",o.exportButtonTooltipLabel),s(),l("disabled",o.disabledExport)}}var Ul=100,Dr=(()=>{let r=class r{constructor(e,t,i,a,g,m,w){this.permissionService=e,this.translationService=t,this.bulkActionsService=i,this.entityService=a,this.filterQueryService=g,this.featureFlagService=m,this.store=w,this.destroyRef=Q(ee),this.disabledExport=!1,this.hasExportFeatureEnabled=!1,this.emptyWorkspace$=new F,this.checkExportDisableState()}ngOnInit(){this.exportButtonTooltipLabel=this.translationService.instant("explorer-ng.filterPanel.excelExport"),this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>{this.spaceUri=e,this.checkEmptyState(),this.checkPermissions(),this.checkFeatureFlag()})}onExcelExport(){this.disabledExport||this.bulkActionsService.excelExport(this.rootFilter,this.activePage),this.bulkActionsService.onExcelExportInProgress.pipe(L(this.destroyRef)).subscribe(e=>{this.disabledExport=e}),this.bulkActionsService.onExcelExportInProgress.next(!0)}checkExportDisableState(){Ht([this.bulkActionsService.onSelectAllChanged.pipe(Pn(null)),this.bulkActionsService.onSelectedChanged.pipe(Pn(null)),this.emptyWorkspace$,this.filterQueryService.filteredEntities$.pipe(Pn(null))]).pipe(L(this.destroyRef)).subscribe(([e,t,i,a])=>{i||a?.length===0?(this.disabledExport=!0,this.exportButtonTooltipLabel=this.translationService.instant("explorer-ng.filterPanel.emptyWorkspace")):!e&&t?.length>Ul?(this.disabledExport=!0,this.exportButtonTooltipLabel=this.translationService.instant("explorer-ng.filterPanel.exceedSelectedElement",{numberOfElements:Ul})):(this.disabledExport=!1,this.exportButtonTooltipLabel=this.translationService.instant("explorer-ng.filterPanel.excelExport"))})}checkPermissions(){this.permissionService.userHasAnyPermission([tt.EXCEL_EXPORT],this.spaceUri).pipe($e(1)).subscribe(e=>{this.hasPermissionExcelExport=e})}checkFeatureFlag(){this.featureFlagService.isFeatureEnabled(mr.EXPORT_FEATURE_FLAG).then(e=>{this.hasExportFeatureEnabled=e})}checkEmptyState(){console.assert(!!this.spaceUri,"spaceUri should not be null"),this.entityService.getEntityTypeStats([this.spaceUri]).pipe(L(this.destroyRef)).subscribe(e=>{let t=0;e.length===1&&(t=e[0].elementTypeStats.reduce((i,a)=>i+a.count,0)),this.emptyWorkspace$.next(!t)})}};r.\u0275fac=function(t){return new(t||r)(x(wn),x(K),x(Ci),x(hi),x(Tr),x(Nt),x(le))},r.\u0275cmp=v({type:r,selectors:[["explorer-excel-export"]],inputs:{rootFilter:"rootFilter",activePage:"activePage"},standalone:!0,features:[W],decls:1,vars:1,consts:[[3,"ui2Tooltip",4,"ngIf"],[3,"ui2Tooltip"],[1,"button-icon","icon-24",3,"click","disabled"],[1,"icon","icon2-x24-icon-external-share"]],template:function(t,i){t&1&&h(0,qp,3,2,"span",0),t&2&&l("ngIf",i.hasPermissionExcelExport&&i.hasExportFeatureEnabled)},dependencies:[E,A,Bt,De,Xe,Ee]});let n=r;return n})();var Nl={importExport:{import:{}}};var uo={importExport:{import:{modal:{title:{optionSelection:"Import Content into your Workspace",copyFromWorkspace:"Import Content",importFromDataSheet:"Import from a Datasheet"}},pages:{copyFromWorkspace:{title:"Copy from Another Workspace",description:"Copy elements from another Workspace"},importFromDataSheet:{title:"Import From a Datasheet",description:"Import Data from a .xlsx template into an existing element type",selectTemplateLabel:"Select an element type. Download the template, if needed.",fillYourDataLabel:"Fill in your data in the template.",checkFile:"Check file",download:"Download",adjust:"Adjust",cancel:"Cancel",missElementType:"Are there any element types or columns missing in the template?",back:"Back",selectOption:"Select option",uploadFile:"Upload File",importError:"Failed to download the template.",tooltipNoWorkflowElement:"Import for workflow elements currently not possible.",importRowsLimit:"Note: The import is designed for a maximum of {{rowsLimit}} rows."},optionSelection:{title:"How would you like to add content?",learnMoreAboutImport:"Learn more about importing content"},validationProgress:{progressLabel:"We are checking your files. Almost there!",serverIssueMessage:"The server is taking too long to respond. Please try again in a few minutes."},validationError:{label:"Import not possible",description:"please adjust your file and try again",titleMismatch:"Header titles do not match the template. Please download our template and compare the headers with your file.",fieldMissing:"Required fields missing:",emptyExcelFile:"No data found in uploaded file",invalidExcelFile:"Sheets are missing data or don't match template",invalidValue:"Invalid value:",uploadAgain:"Upload Again",sheetLabel:"Sheet",importRowsLimit:"Limit of {{rowsLimit}} elements per import reached.",passwordProtectedOrCorruptedFile:"Make sure the file is not corrupted and any password protection has been removed."},validationSuccess:{elementTypeLabel:"Element Type",readyForImport:"ready for import",totalElements:"{{count}} Element(s)",newElements:"{{count}} new element(s)",updateElements:"{{count}} element(s) ready to update",totalRatings:"{{count}} Rating(s)",newRatings:"{{count}} new rating(s)",updateRatings:"{{count}} rating(s) ready to update",totalComments:"{{count}} Comment(s)",newComments:"{{count}} new comment(s)",updateComments:"{{count}} comment(s) ready to update",updateCommentsWarning:"0 out of {{ count }} comment(s) ready to update",importOptionsLabel:"Import Options",skipDuplicateLabel:"Skip identified duplicates in import",plaintextRTE:"Check to import RTE fields as plaintext. Unchecked preserves content and format, skipping import.",importElement:"Import",triggerElementErrorMessage:"Something went wrong while trying to trigger the import. Please try again or contact support.",duplicateElements:{label:"{{totalDuplicateElements}} Duplicates",description:"of existing Elements found in your Workspace"},elementConfigurationErrorMessage:"Import unexpectedly failed.<br>Element Configuration has changed while setting up the import."}},fileUploader:{pasteInstruction:{message:"Ctrl+V - paste from your Clipboard.",fileSupportLabel:"Supported File",supportedFiles:".xlsx"},dragFile:"Drag file here or ",selectFile:"select",uploadError:{maximumFileSize:"The file you are trying to upload exceeds the size limit of {{maximumFileSize}}MB. Please upload a smaller file."}},importProgress:{progressMessage:"Importing Elements to your Workspace<br><b>{{percentage}}% complete<b>",importSuccessMessage:"{{successCountText}} imported to your Workspace",importPartiallySucceedMessage:"{{successCountText}} imported to your Workspace.<br>{{failCountText}} unexpectedly failed.",importErrorMessage:"Something went wrong during the import. Please try again or contact support.",hide:"Hide",show:"Show",element:"element",elements:"elements",comment:"comment",comments:"comments",rating:"rating",ratings:"ratings",was:"was",were:"were"}},global:{labelRow:"Row",labelOthers:"others",labelAnd:"and",unsavedConfirmationText:"You are about to import files. If you close it now without saving, the process is canceled and needs to be started again.",labelWarning:"Warning",labelOk:"OK",labelGoBack:"Go back"}}};var jl=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:uo,de:Nl}[t]||uo))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[Dr]});let n=r;return n})();var Jt=ue(he());var yi=(n="250ms")=>tn("collapsePanel",[_n("collapsed",ze({height:"0",overflow:"hidden"})),_n("expanded",ze({height:"*",overflow:"visible"})),gt("expanded => collapsed",[ze({overflow:"hidden"}),dt(n,ze({height:"0"}))]),gt("collapsed => expanded",[dt(n,ze({height:"*",overflow:"visible"}))])]),vi=(n="250ms")=>tn("itemAnimation",[gt(":enter",[ze({opacity:0,transform:"translateY(-50%)"}),dt(n,ze({opacity:1,transform:"translateY(0)"})),gt(":leave",[dt(n,ze({opacity:0,transform:"translateY(-50%)"})),ua(":self",ma(),{optional:!0})])])]);var Wp=(n,r)=>({"collapsed-chevron":n,"expanded-chevron":r});function Qp(n,r){if(n&1&&(p(0,"span",10),C(1,"translate"),b(2,"span",11),p(3,"span",12),O(4),C(5,"translate"),d()()),n&2){let o=c();l("ui2Tooltip",o.dropdownOptions.length===0?M(1,7,"explorer-ng.filterModule.toolTips.allElementTypesAdded"):null),s(2),z("add-disabled",o.dropdownOptions.length===0),s(),z("title-active",o.selectionOpen),s(),ei("",M(5,9,"explorer-ng.filterModule.addElementType")," (",o.selectedEntityModel==null?null:o.selectedEntityModel.length,")")}}function $p(n,r){if(n&1&&O(0),n&2){let o=r.$implicit;S(" ",o.label," ")}}function Yp(n,r){if(n&1&&(Y(0),p(1,"div",22),b(2,"span",23),p(3,"div",24),O(4),d()(),X()),n&2){let o=c().$implicit,e=c(2);s(4),R(e.subFieldCounts[o.uri])}}function Xp(n,r){if(n&1){let o=P();p(0,"div",16),_("click",function(){let t=u(o).$implicit,i=c(2);return f(i.focusElementTypeGroup(t))}),p(1,"div",17),b(2,"ui2-label",18),C(3,"shortCode"),p(4,"div",19),O(5),d(),h(6,Yp,5,1,"ng-container",20),p(7,"span",21),_("click",function(){let t=u(o).$implicit,i=c(2);return f(i.removeElementType(t))}),d()()()}if(n&2){let o=r.$implicit,e=c(2);z("selected",o.uri===e.focusedElementTypeUri),l("@itemAnimation",void 0),s(2),l("text",xe(3,8,o.name,3))("labelType","solid")("bgColor",o.color),s(3),R(o.name),s(),l("ngIf",e.subFieldCounts[o.uri])}}function Jp(n,r){if(n&1&&(p(0,"div",13),C(1,"async"),p(2,"div",14),h(3,Xp,8,11,"div",15),d()()),n&2){let o=c();l("@collapsePanel",M(1,2,o.elementTypesExpanded)?"expanded":"collapsed"),s(3),l("ngForOf",o.selectedEntityModel)}}var zl=(()=>{let r=class r{set focusedElementType(e){this.focusedElementTypeUri=e?.uri}constructor(e,t,i,a,g,m,w){this.entityConfigService=e,this.translate=t,this.modalService=i,this.toastService=a,this.trackingService=g,this.watchElementsService=m,this.store=w,this.destroyRef=Q(ee),this.focusElementType=new y,this.selectionOpen=!1,this.elementTypesExpanded=new ft(!1),this.dropdownOptions=[],this.selectedEntityModel=[],this.subFieldCounts={},this.entityTypes=[],this.tooltipMode=ci.INLINE,this.tooltipMaxWidth=220,this.getEntityConfig().subscribe(N=>{this.entityTypes=N,this.updateDropdownModelAndOptions()})}ngOnChanges(e){e.typeGroupsFilter?.currentValue&&(this.updateDropdownModelAndOptions(),this.rootSub?.unsubscribe(),this.rootSub=this.typeGroupsFilter.onChanged(t=>{t.getIdentifier()===D.SIDEBAR&&this.updateDropdownModelAndOptions(),this.loadCounts()}))}updateDropdownModelAndOptions(){if(!this.entityTypes)return;let e=this.typeGroupsFilter?.getQueries().map(t=>t.findQuery(i=>i instanceof Jt.LeafFilter&&i.getOn()===D.ELEMENT_TYPE_URI).getValues()[0])??[];this.selectedEntityModel=this.entityTypes.filter(t=>e.includes(t.uri)),this.elementTypesExpanded.next(this.selectedEntityModel.length>0),this.dropdownOptions=this.entityTypes.map(t=>({value:t,label:t.name})).filter(t=>!e.includes(t.value.uri)),this.selectedEntityModel.length===0?this.elementTypesExpanded.next(!1):this.elementTypesExpanded.next(!0),this.focusElementTypeGroup()}onAddFilterGroup(e){let t=e.value.uri,i=new Jt.CompoundFilter(Jt.IqlQueryOperator.AND).setIdentifier(t);i.addFilter(new Jt.LeafFilter(D.ELEMENT_TYPE_URI).setIdentifier(D.ELEMENT_TYPE_URI).setValues([t])),this.typeGroupsFilter.addFilter(i,Jt.compareById),this.updateDropdownModelAndOptions(),this.focusElementTypeGroup(this.entityTypes.find(a=>a.uri===t))}togglePanel(){this.elementTypesExpanded.next(!this.elementTypesExpanded.value)}loadCounts(){this.subFieldCounts={},this.typeGroupsFilter.getQueries().forEach(e=>{this.subFieldCounts[e.getIdentifier()]=e.getQueries().filter(t=>t.getIdentifier()!==D.ELEMENT_TYPE_URI).length})}focusElementTypeGroup(e){e=e||this.entityTypes.find(t=>this.selectedEntityModel.includes(t)),e||this.elementTypesExpanded.next(!1),this.focusedElementTypeUri=e?.uri,this.focusElementType.next(e),this.loadCounts()}removeElementType(e){this.typeGroupsFilter.removeFilters((0,Jt.findById)(e.uri)),this.updateDropdownModelAndOptions(),this.focusElementTypeGroup()}getEntityConfig(){return this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).pipe(mn(e=>Kt(this.entityConfigService.getAllElementTypesBasedOnViewPermission(e)))).pipe(Zt(e=>[...e].sort((t,i)=>t.name.localeCompare(i.name))),jo(),L(this.destroyRef))}};r.\u0275fac=function(t){return new(t||r)(x(He),x(K),x(Ct),x(ht),x(pe),x(Fr),x(le))},r.\u0275cmp=v({type:r,selectors:[["filter-panel-element-type-selector"]],inputs:{typeGroupsFilter:"typeGroupsFilter",focusedElementType:"focusedElementType"},outputs:{focusElementType:"focusElementType"},features:[k],decls:17,vars:25,consts:[["dropdownButton",""],["dropdownList",""],[1,"element-type-selector"],[1,"header-section","flex","items-center","clickable"],["eventType","click","dropPosition","bottom",1,"dropdown-trigger","mr-1",3,"select","open","data"],[3,"ui2Tooltip","mode","maxWidth"],[1,"type-info","icon2-x16-info","mr-1","main-gray"],[1,"select-area",3,"click"],[1,"icon2-x16-chevron-l","panel-chevron","ml-auto",3,"click","ngClass"],["class","pills-section",4,"ngIf"],[3,"ui2Tooltip"],[1,"icon-plus","color-primary"],[1,"label-sm-semibold-single","panel-title","ml-1"],[1,"pills-section"],[1,"pills-box"],["class","pill-group",3,"selected","click",4,"ngFor","ngForOf"],[1,"pill-group",3,"click"],[1,"pill"],[3,"text","labelType","bgColor"],[1,"element-name","label-sm-semibold","ml-1"],[4,"ngIf"],[1,"icon","close","icon2-x16-close-s","ml-3",3,"click"],[1,"filter-count"],[1,"icon","filter","icon2-x16-filter","ml-1"],[1,"number-label","label-sm-semibold"]],template:function(t,i){if(t&1){let a=P();p(0,"div",2),C(1,"async"),C(2,"async"),p(3,"div",3)(4,"ui-dropdown-list",4),_("select",function(m){return u(a),f(i.onAddFilterGroup(m))})("open",function(m){return u(a),f(i.selectionOpen=m)}),h(5,Qp,6,11,"ng-template",null,0,V)(7,$p,1,1,"ng-template",null,1,V),d(),p(9,"span",5),C(10,"translate"),b(11,"span",6),d(),p(12,"span",7),_("click",function(){return u(a),f(i.selectedEntityModel!=null&&i.selectedEntityModel.length?i.togglePanel():null)}),d(),p(13,"span",8),C(14,"async"),C(15,"async"),_("click",function(){return u(a),f(i.selectedEntityModel!=null&&i.selectedEntityModel.length?i.togglePanel():null)}),d()(),h(16,Jp,4,4,"div",9),d()}t&2&&(z("expanded",M(1,12,i.elementTypesExpanded))("pb-4",M(2,14,i.elementTypesExpanded)),s(4),l("data",i.dropdownOptions),s(5),l("ui2Tooltip",M(10,16,"explorer-ng.filterModule.toolTips.typeSelectorInfo"))("mode",i.tooltipMode)("maxWidth",i.tooltipMaxWidth),s(4),z("disable-chevron",(i.selectedEntityModel==null?null:i.selectedEntityModel.length)<1),l("ngClass",Te(22,Wp,M(14,18,i.elementTypesExpanded)===!1,M(15,20,i.elementTypesExpanded))),s(3),l("ngIf",i.selectedEntityModel==null?null:i.selectedEntityModel.length))},dependencies:[de,Oe,A,De,pi,zt,vn,I,Fa],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%]     .itonics-popper.ngxp__container{margin-left:16px!important}[_nghost-%COMP%]     .itonics-popper.ngxp__container .dropdown-menu-list{width:358px}[_nghost-%COMP%]     .itonics-popper.ngxp__container .menu-item-wrap{height:fit-content;max-height:unset}[_nghost-%COMP%]   .type-info.icon2-x16-info[_ngcontent-%COMP%]{margin-top:3px}.element-type-selector[_ngcontent-%COMP%]{display:flex;flex-direction:column}.element-type-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .select-area[_ngcontent-%COMP%]{height:50px;flex-grow:1}.element-type-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]{margin-top:3px}.element-type-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .panel-title.title-active[_ngcontent-%COMP%], .element-type-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]:hover{color:#098dcd}.element-type-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]:hover   .panel-chevron[_ngcontent-%COMP%]:not(.disable-chevron){color:#098dcd}.element-type-selector[_ngcontent-%COMP%]   .panel-chevron[_ngcontent-%COMP%]{transform:rotate(360deg);color:#627588}.element-type-selector[_ngcontent-%COMP%]   .panel-chevron[_ngcontent-%COMP%]:hover{color:#098dcd;cursor:pointer}.element-type-selector[_ngcontent-%COMP%]   .panel-chevron.disable-chevron[_ngcontent-%COMP%]{color:#bdc8d4}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pills-box[_ngcontent-%COMP%]{margin-top:12px;display:flex;flex-wrap:wrap;gap:8px;overflow:hidden}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]{display:grid}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group.selected[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]{background-color:#e6f6fe;color:#098dcd;border:1px solid #e6f6fe}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group.selected[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .icon.filter[_ngcontent-%COMP%], .element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group.selected[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .filter-count[_ngcontent-%COMP%]   .number-label[_ngcontent-%COMP%]{color:#098dcd}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:hover{border:1px solid #098dcd;color:#098dcd}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:hover   .icon.filter[_ngcontent-%COMP%], .element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]:hover   .filter-count[_ngcontent-%COMP%]   .number-label[_ngcontent-%COMP%]{color:#098dcd}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]{display:flex;padding:8px;align-items:center;line-height:1;border-radius:6px;border:1px solid #f7f8f9;background-color:#f7f8f9;color:#3e4d63;cursor:pointer}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .icon.filter[_ngcontent-%COMP%], .element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .filter-count[_ngcontent-%COMP%]   .number-label[_ngcontent-%COMP%]{color:#627588}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:16px;line-height:1}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .icon.close[_ngcontent-%COMP%]{color:#098dcd}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .icon.filter[_ngcontent-%COMP%]{font-size:16px}.element-type-selector[_ngcontent-%COMP%]   .pills-section[_ngcontent-%COMP%]   .pill-group[_ngcontent-%COMP%]   .pill[_ngcontent-%COMP%]   .filter-count[_ngcontent-%COMP%]{display:flex;align-items:center;gap:2px}.expanded-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(180deg)}.collapsed-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(360deg)}.element-name[_ngcontent-%COMP%]{max-width:238px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],data:{animation:[yi("100ms"),vi("100ms")]}});let n=r;return n})();var $n=ue(he());var Jv=ue(he());var wt=ue(he());var Gl=n=>({fieldLabel:n});function Zp(n,r){if(n&1&&(p(0,"div")(1,"span"),O(2),C(3,"translate"),d()()),n&2){let o=r.item,e=c();s(2),R(xe(3,1,o.label,q(4,Gl,e.field)))}}function ed(n,r){if(n&1&&(p(0,"div",3)(1,"span"),O(2),C(3,"translate"),d()()),n&2){let o=r.item,e=c();s(2),R(xe(3,1,o.label,q(4,Gl,e.field)))}}var $=function(n){return n.DEFAULT_CONDITION_URI="is",n.EXCLUDE_CONDITION_URI="isNot",n.EMPTY_OR_CONDITION_URI="emptyOr",n}($||{}),st=(()=>{let r=class r{constructor(){this.conditionSelected=new y,this.isInlineDropdown=!0,this.filterConditions=[{uri:$.DEFAULT_CONDITION_URI,label:"explorer-ng.filterModule.filterCondition.is"},{uri:$.EXCLUDE_CONDITION_URI,label:"explorer-ng.filterModule.filterCondition.isNot"},{uri:$.EMPTY_OR_CONDITION_URI,label:"explorer-ng.filterModule.filterCondition.emptyOr"}]}ngAfterViewInit(){this.selectedCondition=this.selectedCondition||this.filterConditions[0].uri}onConditionChange(e){this.conditionSelected.emit(e),this.selectedCondition=e.uri}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["filter-condition-selector"]],inputs:{field:"field",selectedCondition:"selectedCondition"},outputs:{conditionSelected:"conditionSelected"},decls:4,vars:5,consts:[["dropdownPosition","bottom","bindValue","uri","bindLabel","label",1,"ui2-dropdown",3,"ngModelChange","change","clearable","ngModel","items"],["ng-label-tmp",""],["ng-option-tmp",""],[1,"option"]],template:function(t,i){t&1&&(p(0,"div")(1,"ng-select",0),re("ngModelChange",function(g){return ie(i.selectedCondition,g)||(i.selectedCondition=g),g}),_("change",function(g){return i.onConditionChange(g)}),h(2,Zp,4,6,"ng-template",1)(3,ed,4,6,"ng-template",2),d()()),t&2&&(s(),z("inline-dropdown",i.isInlineDropdown),l("clearable",!1),ne("ngModel",i.selectedCondition),l("items",i.filterConditions))},dependencies:[J,te,_e,ke,Ne,I],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%], [_nghost-%COMP%]     .ui2-dropdown.ng-select-single .ng-select-container .ng-value, .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%], [_nghost-%COMP%]     .ui2-dropdown.ng-select-single .ng-select-container .ng-value, .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%], 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%], [_nghost-%COMP%]     .ui2-dropdown.ng-select-single .ng-select-container .ng-value, .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%], 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}.m-auto[_ngcontent-%COMP%]{margin:auto}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-auto[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.mt-auto[_ngcontent-%COMP%]{margin-top:auto}.mb-auto[_ngcontent-%COMP%]{margin-bottom:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.m-half[_ngcontent-%COMP%]{margin:2px}.mx-half[_ngcontent-%COMP%]{margin-left:2px;margin-right:2px}.my-half[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:2px}.mb-half[_ngcontent-%COMP%]{margin-bottom:2px}.mt-half[_ngcontent-%COMP%]{margin-top:2px}.ml-half[_ngcontent-%COMP%]{margin-left:2px}.mr-half[_ngcontent-%COMP%]{margin-right:2px}.m-1[_ngcontent-%COMP%]{margin:4px}.m-2[_ngcontent-%COMP%]{margin:8px}.m-3[_ngcontent-%COMP%]{margin:12px}.m-4[_ngcontent-%COMP%]{margin:16px}.m-5[_ngcontent-%COMP%]{margin:20px}.m-6[_ngcontent-%COMP%]{margin:24px}.m-7[_ngcontent-%COMP%]{margin:28px}.m-8[_ngcontent-%COMP%]{margin:32px}.m-9[_ngcontent-%COMP%]{margin:36px}.m-10[_ngcontent-%COMP%]{margin:40px}.m-11[_ngcontent-%COMP%]{margin:44px}.m-12[_ngcontent-%COMP%]{margin:48px}.m-13[_ngcontent-%COMP%]{margin:52px}.m-14[_ngcontent-%COMP%]{margin:56px}.m-15[_ngcontent-%COMP%]{margin:60px}.m-16[_ngcontent-%COMP%]{margin:64px}.m-17[_ngcontent-%COMP%]{margin:68px}.m-18[_ngcontent-%COMP%]{margin:72px}.m-19[_ngcontent-%COMP%]{margin:76px}.m-20[_ngcontent-%COMP%]{margin:80px}.-m-1[_ngcontent-%COMP%]{margin:-4px}.-m-2[_ngcontent-%COMP%]{margin:-8px}.-m-3[_ngcontent-%COMP%]{margin:-12px}.-m-4[_ngcontent-%COMP%]{margin:-16px}.-m-5[_ngcontent-%COMP%]{margin:-20px}.-m-6[_ngcontent-%COMP%]{margin:-24px}.-m-7[_ngcontent-%COMP%]{margin:-28px}.-m-8[_ngcontent-%COMP%]{margin:-32px}.-m-9[_ngcontent-%COMP%]{margin:-36px}.-m-10[_ngcontent-%COMP%]{margin:-40px}.-m-11[_ngcontent-%COMP%]{margin:-44px}.-m-12[_ngcontent-%COMP%]{margin:-48px}.-m-13[_ngcontent-%COMP%]{margin:-52px}.-m-14[_ngcontent-%COMP%]{margin:-56px}.-m-15[_ngcontent-%COMP%]{margin:-60px}.-m-16[_ngcontent-%COMP%]{margin:-64px}.-m-17[_ngcontent-%COMP%]{margin:-68px}.-m-18[_ngcontent-%COMP%]{margin:-72px}.-m-19[_ngcontent-%COMP%]{margin:-76px}.-m-20[_ngcontent-%COMP%]{margin:-80px}.mx-1[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px}.mx-2[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px}.mx-3[_ngcontent-%COMP%]{margin-left:12px;margin-right:12px}.mx-4[_ngcontent-%COMP%]{margin-left:16px;margin-right:16px}.mx-5[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.mx-6[_ngcontent-%COMP%]{margin-left:24px;margin-right:24px}.mx-7[_ngcontent-%COMP%]{margin-left:28px;margin-right:28px}.mx-8[_ngcontent-%COMP%]{margin-left:32px;margin-right:32px}.mx-9[_ngcontent-%COMP%]{margin-left:36px;margin-right:36px}.mx-10[_ngcontent-%COMP%]{margin-left:40px;margin-right:40px}.mx-11[_ngcontent-%COMP%]{margin-left:44px;margin-right:44px}.mx-12[_ngcontent-%COMP%]{margin-left:48px;margin-right:48px}.mx-13[_ngcontent-%COMP%]{margin-left:52px;margin-right:52px}.mx-14[_ngcontent-%COMP%]{margin-left:56px;margin-right:56px}.mx-15[_ngcontent-%COMP%]{margin-left:60px;margin-right:60px}.mx-16[_ngcontent-%COMP%]{margin-left:64px;margin-right:64px}.mx-17[_ngcontent-%COMP%]{margin-left:68px;margin-right:68px}.mx-18[_ngcontent-%COMP%]{margin-left:72px;margin-right:72px}.mx-19[_ngcontent-%COMP%]{margin-left:76px;margin-right:76px}.mx-20[_ngcontent-%COMP%]{margin-left:80px;margin-right:80px}.-mx-1[_ngcontent-%COMP%]{margin-left:-4px;margin-right:-4px}.-mx-2[_ngcontent-%COMP%]{margin-left:-8px;margin-right:-8px}.-mx-3[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.-mx-4[_ngcontent-%COMP%]{margin-left:-16px;margin-right:-16px}.-mx-5[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}.-mx-6[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}.-mx-7[_ngcontent-%COMP%]{margin-left:-28px;margin-right:-28px}.-mx-8[_ngcontent-%COMP%]{margin-left:-32px;margin-right:-32px}.-mx-9[_ngcontent-%COMP%]{margin-left:-36px;margin-right:-36px}.-mx-10[_ngcontent-%COMP%]{margin-left:-40px;margin-right:-40px}.-mx-11[_ngcontent-%COMP%]{margin-left:-44px;margin-right:-44px}.-mx-12[_ngcontent-%COMP%]{margin-left:-48px;margin-right:-48px}.-mx-13[_ngcontent-%COMP%]{margin-left:-52px;margin-right:-52px}.-mx-14[_ngcontent-%COMP%]{margin-left:-56px;margin-right:-56px}.-mx-15[_ngcontent-%COMP%]{margin-left:-60px;margin-right:-60px}.-mx-16[_ngcontent-%COMP%]{margin-left:-64px;margin-right:-64px}.-mx-17[_ngcontent-%COMP%]{margin-left:-68px;margin-right:-68px}.-mx-18[_ngcontent-%COMP%]{margin-left:-72px;margin-right:-72px}.-mx-19[_ngcontent-%COMP%]{margin-left:-76px;margin-right:-76px}.-mx-20[_ngcontent-%COMP%]{margin-left:-80px;margin-right:-80px}.my-1[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:4px}.my-2[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}.my-3[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:12px}.my-4[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}.my-5[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.my-6[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.my-7[_ngcontent-%COMP%]{margin-top:28px;margin-bottom:28px}.my-8[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px}.my-9[_ngcontent-%COMP%]{margin-top:36px;margin-bottom:36px}.my-10[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px}.my-11[_ngcontent-%COMP%]{margin-top:44px;margin-bottom:44px}.my-12[_ngcontent-%COMP%]{margin-top:48px;margin-bottom:48px}.my-13[_ngcontent-%COMP%]{margin-top:52px;margin-bottom:52px}.my-14[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:56px}.my-15[_ngcontent-%COMP%]{margin-top:60px;margin-bottom:60px}.my-16[_ngcontent-%COMP%]{margin-top:64px;margin-bottom:64px}.my-17[_ngcontent-%COMP%]{margin-top:68px;margin-bottom:68px}.my-18[_ngcontent-%COMP%]{margin-top:72px;margin-bottom:72px}.my-19[_ngcontent-%COMP%]{margin-top:76px;margin-bottom:76px}.my-20[_ngcontent-%COMP%]{margin-top:80px;margin-bottom:80px}.-my-1[_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-4px}.-my-2[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:-8px}.-my-3[_ngcontent-%COMP%]{margin-top:-12px;margin-bottom:-12px}.-my-4[_ngcontent-%COMP%]{margin-top:-16px;margin-bottom:-16px}.-my-5[_ngcontent-%COMP%]{margin-top:-20px;margin-bottom:-20px}.-my-6[_ngcontent-%COMP%]{margin-top:-24px;margin-bottom:-24px}.-my-7[_ngcontent-%COMP%]{margin-top:-28px;margin-bottom:-28px}.-my-8[_ngcontent-%COMP%]{margin-top:-32px;margin-bottom:-32px}.-my-9[_ngcontent-%COMP%]{margin-top:-36px;margin-bottom:-36px}.-my-10[_ngcontent-%COMP%]{margin-top:-40px;margin-bottom:-40px}.-my-11[_ngcontent-%COMP%]{margin-top:-44px;margin-bottom:-44px}.-my-12[_ngcontent-%COMP%]{margin-top:-48px;margin-bottom:-48px}.-my-13[_ngcontent-%COMP%]{margin-top:-52px;margin-bottom:-52px}.-my-14[_ngcontent-%COMP%]{margin-top:-56px;margin-bottom:-56px}.-my-15[_ngcontent-%COMP%]{margin-top:-60px;margin-bottom:-60px}.-my-16[_ngcontent-%COMP%]{margin-top:-64px;margin-bottom:-64px}.-my-17[_ngcontent-%COMP%]{margin-top:-68px;margin-bottom:-68px}.-my-18[_ngcontent-%COMP%]{margin-top:-72px;margin-bottom:-72px}.-my-19[_ngcontent-%COMP%]{margin-top:-76px;margin-bottom:-76px}.-my-20[_ngcontent-%COMP%]{margin-top:-80px;margin-bottom:-80px}.mt-1[_ngcontent-%COMP%]{margin-top:4px}.mt-2[_ngcontent-%COMP%]{margin-top:8px}.mt-3[_ngcontent-%COMP%]{margin-top:12px}.mt-4[_ngcontent-%COMP%]{margin-top:16px}.mt-5[_ngcontent-%COMP%]{margin-top:20px}.mt-6[_ngcontent-%COMP%]{margin-top:24px}.mt-7[_ngcontent-%COMP%]{margin-top:28px}.mt-8[_ngcontent-%COMP%]{margin-top:32px}.mt-9[_ngcontent-%COMP%]{margin-top:36px}.mt-10[_ngcontent-%COMP%]{margin-top:40px}.mt-11[_ngcontent-%COMP%]{margin-top:44px}.mt-12[_ngcontent-%COMP%]{margin-top:48px}.mt-13[_ngcontent-%COMP%]{margin-top:52px}.mt-14[_ngcontent-%COMP%]{margin-top:56px}.mt-15[_ngcontent-%COMP%]{margin-top:60px}.mt-16[_ngcontent-%COMP%]{margin-top:64px}.mt-17[_ngcontent-%COMP%]{margin-top:68px}.mt-18[_ngcontent-%COMP%]{margin-top:72px}.mt-19[_ngcontent-%COMP%]{margin-top:76px}.mt-20[_ngcontent-%COMP%]{margin-top:80px}.-mt-1[_ngcontent-%COMP%]{margin-top:-4px}.-mt-2[_ngcontent-%COMP%]{margin-top:-8px}.-mt-3[_ngcontent-%COMP%]{margin-top:-12px}.-mt-4[_ngcontent-%COMP%]{margin-top:-16px}.-mt-5[_ngcontent-%COMP%]{margin-top:-20px}.-mt-6[_ngcontent-%COMP%]{margin-top:-24px}.-mt-7[_ngcontent-%COMP%]{margin-top:-28px}.-mt-8[_ngcontent-%COMP%]{margin-top:-32px}.-mt-9[_ngcontent-%COMP%]{margin-top:-36px}.-mt-10[_ngcontent-%COMP%]{margin-top:-40px}.-mt-11[_ngcontent-%COMP%]{margin-top:-44px}.-mt-12[_ngcontent-%COMP%]{margin-top:-48px}.-mt-13[_ngcontent-%COMP%]{margin-top:-52px}.-mt-14[_ngcontent-%COMP%]{margin-top:-56px}.-mt-15[_ngcontent-%COMP%]{margin-top:-60px}.-mt-16[_ngcontent-%COMP%]{margin-top:-64px}.-mt-17[_ngcontent-%COMP%]{margin-top:-68px}.-mt-18[_ngcontent-%COMP%]{margin-top:-72px}.-mt-19[_ngcontent-%COMP%]{margin-top:-76px}.-mt-20[_ngcontent-%COMP%]{margin-top:-80px}.mb-1[_ngcontent-%COMP%]{margin-bottom:4px}.mb-2[_ngcontent-%COMP%]{margin-bottom:8px}.mb-3[_ngcontent-%COMP%]{margin-bottom:12px}.mb-4[_ngcontent-%COMP%]{margin-bottom:16px}.mb-5[_ngcontent-%COMP%]{margin-bottom:20px}.mb-6[_ngcontent-%COMP%]{margin-bottom:24px}.mb-7[_ngcontent-%COMP%]{margin-bottom:28px}.mb-8[_ngcontent-%COMP%]{margin-bottom:32px}.mb-9[_ngcontent-%COMP%]{margin-bottom:36px}.mb-10[_ngcontent-%COMP%]{margin-bottom:40px}.mb-11[_ngcontent-%COMP%]{margin-bottom:44px}.mb-12[_ngcontent-%COMP%]{margin-bottom:48px}.mb-13[_ngcontent-%COMP%]{margin-bottom:52px}.mb-14[_ngcontent-%COMP%]{margin-bottom:56px}.mb-15[_ngcontent-%COMP%]{margin-bottom:60px}.mb-16[_ngcontent-%COMP%]{margin-bottom:64px}.mb-17[_ngcontent-%COMP%]{margin-bottom:68px}.mb-18[_ngcontent-%COMP%]{margin-bottom:72px}.mb-19[_ngcontent-%COMP%]{margin-bottom:76px}.mb-20[_ngcontent-%COMP%]{margin-bottom:80px}.-mb-1[_ngcontent-%COMP%]{margin-bottom:-4px}.-mb-2[_ngcontent-%COMP%]{margin-bottom:-8px}.-mb-3[_ngcontent-%COMP%]{margin-bottom:-12px}.-mb-4[_ngcontent-%COMP%]{margin-bottom:-16px}.-mb-5[_ngcontent-%COMP%]{margin-bottom:-20px}.-mb-6[_ngcontent-%COMP%]{margin-bottom:-24px}.-mb-7[_ngcontent-%COMP%]{margin-bottom:-28px}.-mb-8[_ngcontent-%COMP%]{margin-bottom:-32px}.-mb-9[_ngcontent-%COMP%]{margin-bottom:-36px}.-mb-10[_ngcontent-%COMP%]{margin-bottom:-40px}.-mb-11[_ngcontent-%COMP%]{margin-bottom:-44px}.-mb-12[_ngcontent-%COMP%]{margin-bottom:-48px}.-mb-13[_ngcontent-%COMP%]{margin-bottom:-52px}.-mb-14[_ngcontent-%COMP%]{margin-bottom:-56px}.-mb-15[_ngcontent-%COMP%]{margin-bottom:-60px}.-mb-16[_ngcontent-%COMP%]{margin-bottom:-64px}.-mb-17[_ngcontent-%COMP%]{margin-bottom:-68px}.-mb-18[_ngcontent-%COMP%]{margin-bottom:-72px}.-mb-19[_ngcontent-%COMP%]{margin-bottom:-76px}.-mb-20[_ngcontent-%COMP%]{margin-bottom:-80px}.mr-1[_ngcontent-%COMP%]{margin-right:4px}.mr-2[_ngcontent-%COMP%]{margin-right:8px}.mr-3[_ngcontent-%COMP%]{margin-right:12px}.mr-4[_ngcontent-%COMP%]{margin-right:16px}.mr-5[_ngcontent-%COMP%]{margin-right:20px}.mr-6[_ngcontent-%COMP%]{margin-right:24px}.mr-7[_ngcontent-%COMP%]{margin-right:28px}.mr-8[_ngcontent-%COMP%]{margin-right:32px}.mr-9[_ngcontent-%COMP%]{margin-right:36px}.mr-10[_ngcontent-%COMP%]{margin-right:40px}.mr-11[_ngcontent-%COMP%]{margin-right:44px}.mr-12[_ngcontent-%COMP%]{margin-right:48px}.mr-13[_ngcontent-%COMP%]{margin-right:52px}.mr-14[_ngcontent-%COMP%]{margin-right:56px}.mr-15[_ngcontent-%COMP%]{margin-right:60px}.mr-16[_ngcontent-%COMP%]{margin-right:64px}.mr-17[_ngcontent-%COMP%]{margin-right:68px}.mr-18[_ngcontent-%COMP%]{margin-right:72px}.mr-19[_ngcontent-%COMP%]{margin-right:76px}.mr-20[_ngcontent-%COMP%]{margin-right:80px}.-mr-1[_ngcontent-%COMP%]{margin-right:-4px}.-mr-2[_ngcontent-%COMP%]{margin-right:-8px}.-mr-3[_ngcontent-%COMP%]{margin-right:-12px}.-mr-4[_ngcontent-%COMP%]{margin-right:-16px}.-mr-5[_ngcontent-%COMP%]{margin-right:-20px}.-mr-6[_ngcontent-%COMP%]{margin-right:-24px}.-mr-7[_ngcontent-%COMP%]{margin-right:-28px}.-mr-8[_ngcontent-%COMP%]{margin-right:-32px}.-mr-9[_ngcontent-%COMP%]{margin-right:-36px}.-mr-10[_ngcontent-%COMP%]{margin-right:-40px}.-mr-11[_ngcontent-%COMP%]{margin-right:-44px}.-mr-12[_ngcontent-%COMP%]{margin-right:-48px}.-mr-13[_ngcontent-%COMP%]{margin-right:-52px}.-mr-14[_ngcontent-%COMP%]{margin-right:-56px}.-mr-15[_ngcontent-%COMP%]{margin-right:-60px}.-mr-16[_ngcontent-%COMP%]{margin-right:-64px}.-mr-17[_ngcontent-%COMP%]{margin-right:-68px}.-mr-18[_ngcontent-%COMP%]{margin-right:-72px}.-mr-19[_ngcontent-%COMP%]{margin-right:-76px}.-mr-20[_ngcontent-%COMP%]{margin-right:-80px}.ml-1[_ngcontent-%COMP%]{margin-left:4px}.ml-2[_ngcontent-%COMP%]{margin-left:8px}.ml-3[_ngcontent-%COMP%]{margin-left:12px}.ml-4[_ngcontent-%COMP%]{margin-left:16px}.ml-5[_ngcontent-%COMP%]{margin-left:20px}.ml-6[_ngcontent-%COMP%]{margin-left:24px}.ml-7[_ngcontent-%COMP%]{margin-left:28px}.ml-8[_ngcontent-%COMP%]{margin-left:32px}.ml-9[_ngcontent-%COMP%]{margin-left:36px}.ml-10[_ngcontent-%COMP%]{margin-left:40px}.ml-11[_ngcontent-%COMP%]{margin-left:44px}.ml-12[_ngcontent-%COMP%]{margin-left:48px}.ml-13[_ngcontent-%COMP%]{margin-left:52px}.ml-14[_ngcontent-%COMP%]{margin-left:56px}.ml-15[_ngcontent-%COMP%]{margin-left:60px}.ml-16[_ngcontent-%COMP%]{margin-left:64px}.ml-17[_ngcontent-%COMP%]{margin-left:68px}.ml-18[_ngcontent-%COMP%]{margin-left:72px}.ml-19[_ngcontent-%COMP%]{margin-left:76px}.ml-20[_ngcontent-%COMP%]{margin-left:80px}.-ml-1[_ngcontent-%COMP%]{margin-left:-4px}.-ml-2[_ngcontent-%COMP%]{margin-left:-8px}.-ml-3[_ngcontent-%COMP%]{margin-left:-12px}.-ml-4[_ngcontent-%COMP%]{margin-left:-16px}.-ml-5[_ngcontent-%COMP%]{margin-left:-20px}.-ml-6[_ngcontent-%COMP%]{margin-left:-24px}.-ml-7[_ngcontent-%COMP%]{margin-left:-28px}.-ml-8[_ngcontent-%COMP%]{margin-left:-32px}.-ml-9[_ngcontent-%COMP%]{margin-left:-36px}.-ml-10[_ngcontent-%COMP%]{margin-left:-40px}.-ml-11[_ngcontent-%COMP%]{margin-left:-44px}.-ml-12[_ngcontent-%COMP%]{margin-left:-48px}.-ml-13[_ngcontent-%COMP%]{margin-left:-52px}.-ml-14[_ngcontent-%COMP%]{margin-left:-56px}.-ml-15[_ngcontent-%COMP%]{margin-left:-60px}.-ml-16[_ngcontent-%COMP%]{margin-left:-64px}.-ml-17[_ngcontent-%COMP%]{margin-left:-68px}.-ml-18[_ngcontent-%COMP%]{margin-left:-72px}.-ml-19[_ngcontent-%COMP%]{margin-left:-76px}.-ml-20[_ngcontent-%COMP%]{margin-left:-80px}.p-1[_ngcontent-%COMP%]{padding:4px}.p-2[_ngcontent-%COMP%]{padding:8px}.p-3[_ngcontent-%COMP%]{padding:12px}.p-4[_ngcontent-%COMP%]{padding:16px}.p-5[_ngcontent-%COMP%]{padding:20px}.p-6[_ngcontent-%COMP%]{padding:24px}.p-7[_ngcontent-%COMP%]{padding:28px}.p-8[_ngcontent-%COMP%]{padding:32px}.p-9[_ngcontent-%COMP%]{padding:36px}.p-10[_ngcontent-%COMP%]{padding:40px}.p-11[_ngcontent-%COMP%]{padding:44px}.p-12[_ngcontent-%COMP%]{padding:48px}.p-13[_ngcontent-%COMP%]{padding:52px}.p-14[_ngcontent-%COMP%]{padding:56px}.p-15[_ngcontent-%COMP%]{padding:60px}.p-16[_ngcontent-%COMP%]{padding:64px}.p-17[_ngcontent-%COMP%]{padding:68px}.p-18[_ngcontent-%COMP%]{padding:72px}.p-19[_ngcontent-%COMP%]{padding:76px}.p-20[_ngcontent-%COMP%]{padding:80px}.p-21[_ngcontent-%COMP%]{padding:84px}.p-22[_ngcontent-%COMP%]{padding:88px}.p-23[_ngcontent-%COMP%]{padding:92px}.p-24[_ngcontent-%COMP%]{padding:96px}.p-25[_ngcontent-%COMP%]{padding:100px}.p-26[_ngcontent-%COMP%]{padding:104px}.p-27[_ngcontent-%COMP%]{padding:108px}.p-28[_ngcontent-%COMP%]{padding:112px}.p-29[_ngcontent-%COMP%]{padding:116px}.p-30[_ngcontent-%COMP%]{padding:120px}.px-1[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.px-2[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}.px-3[_ngcontent-%COMP%]{padding-left:12px;padding-right:12px}.px-4[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.px-5[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}.px-6[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.px-7[_ngcontent-%COMP%]{padding-left:28px;padding-right:28px}.px-8[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.px-9[_ngcontent-%COMP%]{padding-left:36px;padding-right:36px}.px-10[_ngcontent-%COMP%]{padding-left:40px;padding-right:40px}.px-11[_ngcontent-%COMP%]{padding-left:44px;padding-right:44px}.px-12[_ngcontent-%COMP%]{padding-left:48px;padding-right:48px}.px-13[_ngcontent-%COMP%]{padding-left:52px;padding-right:52px}.px-14[_ngcontent-%COMP%]{padding-left:56px;padding-right:56px}.px-15[_ngcontent-%COMP%]{padding-left:60px;padding-right:60px}.px-16[_ngcontent-%COMP%]{padding-left:64px;padding-right:64px}.px-17[_ngcontent-%COMP%]{padding-left:68px;padding-right:68px}.px-18[_ngcontent-%COMP%]{padding-left:72px;padding-right:72px}.px-19[_ngcontent-%COMP%]{padding-left:76px;padding-right:76px}.px-20[_ngcontent-%COMP%]{padding-left:80px;padding-right:80px}.px-21[_ngcontent-%COMP%]{padding-left:84px;padding-right:84px}.px-22[_ngcontent-%COMP%]{padding-left:88px;padding-right:88px}.px-23[_ngcontent-%COMP%]{padding-left:92px;padding-right:92px}.px-24[_ngcontent-%COMP%]{padding-left:96px;padding-right:96px}.px-25[_ngcontent-%COMP%]{padding-left:100px;padding-right:100px}.px-26[_ngcontent-%COMP%]{padding-left:104px;padding-right:104px}.px-27[_ngcontent-%COMP%]{padding-left:108px;padding-right:108px}.px-28[_ngcontent-%COMP%]{padding-left:112px;padding-right:112px}.px-29[_ngcontent-%COMP%]{padding-left:116px;padding-right:116px}.px-30[_ngcontent-%COMP%]{padding-left:120px;padding-right:120px}.py-1[_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px}.py-2[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.py-3[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.py-4[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.py-5[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px}.py-6[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:24px}.py-7[_ngcontent-%COMP%]{padding-top:28px;padding-bottom:28px}.py-8[_ngcontent-%COMP%]{padding-top:32px;padding-bottom:32px}.py-9[_ngcontent-%COMP%]{padding-top:36px;padding-bottom:36px}.py-10[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.py-11[_ngcontent-%COMP%]{padding-top:44px;padding-bottom:44px}.py-12[_ngcontent-%COMP%]{padding-top:48px;padding-bottom:48px}.py-13[_ngcontent-%COMP%]{padding-top:52px;padding-bottom:52px}.py-14[_ngcontent-%COMP%]{padding-top:56px;padding-bottom:56px}.py-15[_ngcontent-%COMP%]{padding-top:60px;padding-bottom:60px}.py-16[_ngcontent-%COMP%]{padding-top:64px;padding-bottom:64px}.py-17[_ngcontent-%COMP%]{padding-top:68px;padding-bottom:68px}.py-18[_ngcontent-%COMP%]{padding-top:72px;padding-bottom:72px}.py-19[_ngcontent-%COMP%]{padding-top:76px;padding-bottom:76px}.py-20[_ngcontent-%COMP%]{padding-top:80px;padding-bottom:80px}.py-21[_ngcontent-%COMP%]{padding-top:84px;padding-bottom:84px}.py-22[_ngcontent-%COMP%]{padding-top:88px;padding-bottom:88px}.py-23[_ngcontent-%COMP%]{padding-top:92px;padding-bottom:92px}.py-24[_ngcontent-%COMP%]{padding-top:96px;padding-bottom:96px}.py-25[_ngcontent-%COMP%]{padding-top:100px;padding-bottom:100px}.py-26[_ngcontent-%COMP%]{padding-top:104px;padding-bottom:104px}.py-27[_ngcontent-%COMP%]{padding-top:108px;padding-bottom:108px}.py-28[_ngcontent-%COMP%]{padding-top:112px;padding-bottom:112px}.py-29[_ngcontent-%COMP%]{padding-top:116px;padding-bottom:116px}.py-30[_ngcontent-%COMP%]{padding-top:120px;padding-bottom:120px}.pt-1[_ngcontent-%COMP%]{padding-top:4px}.pt-2[_ngcontent-%COMP%]{padding-top:8px}.pt-3[_ngcontent-%COMP%]{padding-top:12px}.pt-4[_ngcontent-%COMP%]{padding-top:16px}.pt-5[_ngcontent-%COMP%]{padding-top:20px}.pt-6[_ngcontent-%COMP%]{padding-top:24px}.pt-7[_ngcontent-%COMP%]{padding-top:28px}.pt-8[_ngcontent-%COMP%]{padding-top:32px}.pt-9[_ngcontent-%COMP%]{padding-top:36px}.pt-10[_ngcontent-%COMP%]{padding-top:40px}.pt-11[_ngcontent-%COMP%]{padding-top:44px}.pt-12[_ngcontent-%COMP%]{padding-top:48px}.pt-13[_ngcontent-%COMP%]{padding-top:52px}.pt-14[_ngcontent-%COMP%]{padding-top:56px}.pt-15[_ngcontent-%COMP%]{padding-top:60px}.pt-16[_ngcontent-%COMP%]{padding-top:64px}.pt-17[_ngcontent-%COMP%]{padding-top:68px}.pt-18[_ngcontent-%COMP%]{padding-top:72px}.pt-19[_ngcontent-%COMP%]{padding-top:76px}.pt-20[_ngcontent-%COMP%]{padding-top:80px}.pt-21[_ngcontent-%COMP%]{padding-top:84px}.pt-22[_ngcontent-%COMP%]{padding-top:88px}.pt-23[_ngcontent-%COMP%]{padding-top:92px}.pt-24[_ngcontent-%COMP%]{padding-top:96px}.pt-25[_ngcontent-%COMP%]{padding-top:100px}.pt-26[_ngcontent-%COMP%]{padding-top:104px}.pt-27[_ngcontent-%COMP%]{padding-top:108px}.pt-28[_ngcontent-%COMP%]{padding-top:112px}.pt-29[_ngcontent-%COMP%]{padding-top:116px}.pt-30[_ngcontent-%COMP%]{padding-top:120px}.pb-1[_ngcontent-%COMP%]{padding-bottom:4px}.pb-2[_ngcontent-%COMP%]{padding-bottom:8px}.pb-3[_ngcontent-%COMP%]{padding-bottom:12px}.pb-4[_ngcontent-%COMP%]{padding-bottom:16px}.pb-5[_ngcontent-%COMP%]{padding-bottom:20px}.pb-6[_ngcontent-%COMP%]{padding-bottom:24px}.pb-7[_ngcontent-%COMP%]{padding-bottom:28px}.pb-8[_ngcontent-%COMP%]{padding-bottom:32px}.pb-9[_ngcontent-%COMP%]{padding-bottom:36px}.pb-10[_ngcontent-%COMP%]{padding-bottom:40px}.pb-11[_ngcontent-%COMP%]{padding-bottom:44px}.pb-12[_ngcontent-%COMP%]{padding-bottom:48px}.pb-13[_ngcontent-%COMP%]{padding-bottom:52px}.pb-14[_ngcontent-%COMP%]{padding-bottom:56px}.pb-15[_ngcontent-%COMP%]{padding-bottom:60px}.pb-16[_ngcontent-%COMP%]{padding-bottom:64px}.pb-17[_ngcontent-%COMP%]{padding-bottom:68px}.pb-18[_ngcontent-%COMP%]{padding-bottom:72px}.pb-19[_ngcontent-%COMP%]{padding-bottom:76px}.pb-20[_ngcontent-%COMP%]{padding-bottom:80px}.pb-21[_ngcontent-%COMP%]{padding-bottom:84px}.pb-22[_ngcontent-%COMP%]{padding-bottom:88px}.pb-23[_ngcontent-%COMP%]{padding-bottom:92px}.pb-24[_ngcontent-%COMP%]{padding-bottom:96px}.pb-25[_ngcontent-%COMP%]{padding-bottom:100px}.pb-26[_ngcontent-%COMP%]{padding-bottom:104px}.pb-27[_ngcontent-%COMP%]{padding-bottom:108px}.pb-28[_ngcontent-%COMP%]{padding-bottom:112px}.pb-29[_ngcontent-%COMP%]{padding-bottom:116px}.pb-30[_ngcontent-%COMP%]{padding-bottom:120px}.pr-1[_ngcontent-%COMP%]{padding-right:4px}.pr-2[_ngcontent-%COMP%]{padding-right:8px}.pr-3[_ngcontent-%COMP%]{padding-right:12px}.pr-4[_ngcontent-%COMP%]{padding-right:16px}.pr-5[_ngcontent-%COMP%]{padding-right:20px}.pr-6[_ngcontent-%COMP%]{padding-right:24px}.pr-7[_ngcontent-%COMP%]{padding-right:28px}.pr-8[_ngcontent-%COMP%]{padding-right:32px}.pr-9[_ngcontent-%COMP%]{padding-right:36px}.pr-10[_ngcontent-%COMP%]{padding-right:40px}.pr-11[_ngcontent-%COMP%]{padding-right:44px}.pr-12[_ngcontent-%COMP%]{padding-right:48px}.pr-13[_ngcontent-%COMP%]{padding-right:52px}.pr-14[_ngcontent-%COMP%]{padding-right:56px}.pr-15[_ngcontent-%COMP%]{padding-right:60px}.pr-16[_ngcontent-%COMP%]{padding-right:64px}.pr-17[_ngcontent-%COMP%]{padding-right:68px}.pr-18[_ngcontent-%COMP%]{padding-right:72px}.pr-19[_ngcontent-%COMP%]{padding-right:76px}.pr-20[_ngcontent-%COMP%]{padding-right:80px}.pr-21[_ngcontent-%COMP%]{padding-right:84px}.pr-22[_ngcontent-%COMP%]{padding-right:88px}.pr-23[_ngcontent-%COMP%]{padding-right:92px}.pr-24[_ngcontent-%COMP%]{padding-right:96px}.pr-25[_ngcontent-%COMP%]{padding-right:100px}.pr-26[_ngcontent-%COMP%]{padding-right:104px}.pr-27[_ngcontent-%COMP%]{padding-right:108px}.pr-28[_ngcontent-%COMP%]{padding-right:112px}.pr-29[_ngcontent-%COMP%]{padding-right:116px}.pr-30[_ngcontent-%COMP%]{padding-right:120px}.pl-1[_ngcontent-%COMP%]{padding-left:4px}.pl-2[_ngcontent-%COMP%]{padding-left:8px}.pl-3[_ngcontent-%COMP%]{padding-left:12px}.pl-4[_ngcontent-%COMP%]{padding-left:16px}.pl-5[_ngcontent-%COMP%]{padding-left:20px}.pl-6[_ngcontent-%COMP%]{padding-left:24px}.pl-7[_ngcontent-%COMP%]{padding-left:28px}.pl-8[_ngcontent-%COMP%]{padding-left:32px}.pl-9[_ngcontent-%COMP%]{padding-left:36px}.pl-10[_ngcontent-%COMP%]{padding-left:40px}.pl-11[_ngcontent-%COMP%]{padding-left:44px}.pl-12[_ngcontent-%COMP%]{padding-left:48px}.pl-13[_ngcontent-%COMP%]{padding-left:52px}.pl-14[_ngcontent-%COMP%]{padding-left:56px}.pl-15[_ngcontent-%COMP%]{padding-left:60px}.pl-16[_ngcontent-%COMP%]{padding-left:64px}.pl-17[_ngcontent-%COMP%]{padding-left:68px}.pl-18[_ngcontent-%COMP%]{padding-left:72px}.pl-19[_ngcontent-%COMP%]{padding-left:76px}.pl-20[_ngcontent-%COMP%]{padding-left:80px}.pl-21[_ngcontent-%COMP%]{padding-left:84px}.pl-22[_ngcontent-%COMP%]{padding-left:88px}.pl-23[_ngcontent-%COMP%]{padding-left:92px}.pl-24[_ngcontent-%COMP%]{padding-left:96px}.pl-25[_ngcontent-%COMP%]{padding-left:100px}.pl-26[_ngcontent-%COMP%]{padding-left:104px}.pl-27[_ngcontent-%COMP%]{padding-left:108px}.pl-28[_ngcontent-%COMP%]{padding-left:112px}.pl-29[_ngcontent-%COMP%]{padding-left:116px}.pl-30[_ngcontent-%COMP%]{padding-left:120px}[_nghost-%COMP%]{height:22px;display:flex;align-items:center}[_nghost-%COMP%]   .option[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;width:100%;word-break:break-word}[_nghost-%COMP%]     .ui2-dropdown.inline-dropdown .ng-dropdown-panel{width:max-content;min-width:unset!important}"]});let n=r;return n})();function td(n,r){if(n&1){let o=P();b(0,"ui2-dropdown-search-bar",8),p(1,"ui2-dropdown-bulk-functions-bar",9),_("onSelectAll",function(){u(o);let t=c();return f(t.selectAll())})("onDeselectAll",function(){u(o);let t=c();return f(t.clearAll())})("onDeselectFound",function(t){u(o);let i=c();return f(i.onDeselectFound(t))})("onSelectFound",function(t){u(o);let i=c();return f(i.onSelectFound(t))}),d()}if(n&2){c();let o=j(4);l("select",o),s(),l("select",o)}}function nd(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",10),n&2){let o=c();l("model",o.selectedItems)("useOrConjunction",!0)}}function id(n,r){if(n&1){let o=P();p(0,"ui2-dropdown-option-multi-select",11),_("onSelectOnly",function(t){u(o);let i=c();return f(i.onSelectOnly(t))}),d()}if(n&2){let o=r.item,e=c();l("item",o)("model",e.selectedItems)("showMixedCheckbox",!0)("selectOnly",!0)}}var ql=(()=>{let r=class r{constructor(e){this.logger=e,this.selectedItems=[]}ngOnInit(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Xt.OPTIONS));if(e&&e.value){let t=[];try{t=JSON.parse(e.value)}catch(i){this.logger.warn("Explorer: Hierarchical Options Filter failed to parse the options from options.value",{err:i,value:e.value})}this.options=ja(t,"options")}this.applyFilter()}ngOnChanges(e){e.parentQuery?.currentValue&&this.listenToFilterChanges()}onFilterChange(){let e=this.selectedItems.map(g=>g.uri),t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=new wt.LeafFilter(this.field.uri).setIdentifier(this.field.uri).setValues(e);if(t){let g=new wt.CompoundFilter(wt.IqlQueryOperator.OR).setIdentifier(this.field.uri),m=new wt.LeafFilter(this.field.uri).setIdentifier(`${this.field.uri}_empty`).setHasValue(!1);this.selectedItems.length&&g.addFilter(a),g.addFilter(m),this.parentQuery.addFilter(g,wt.compareById)}else a.setExclude(i),this.parentQuery.addFilter(a,wt.compareById)}applyFilter(){this.selectedItems=[];let e=t=>{t&&(this.selectedItems=this.options?.filter(i=>t.getValues().indexOf(i.uri)>-1))};if(this.filterLeaf instanceof wt.LeafFilter)this.selectedCondition=this.filterLeaf.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI,e(this.filterLeaf);else if(this.filterLeaf instanceof wt.CompoundFilter){this.selectedCondition=$.EMPTY_OR_CONDITION_URI;let t=this.filterLeaf.findQuery((0,wt.findById)(this.field.uri));e(t)}}onConditionChange(e){this.selectedCondition=e.uri,this.onFilterChange()}selectAll(){this.selection=this.options}clearAll(){this.selection=[]}onSelectFound(e){this.selection=e}onDeselectFound(e){let t=e.map(i=>i.uri);this.selection=this.selectedItems.filter(i=>t.indexOf(i.uri)===-1)}onSelectOnly(e){this.selection=[e]}onSelectionChanged(e){this.selection=Ba(this.options,"uri",this.selectedItems,e,!1)}set selection(e){this.selectedItems=e,this.onFilterChange()}listenToFilterChanges(){this.applyFilter(),this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.parentQuery.onChanged(e=>{e.getIdentifier().startsWith(this.field.uri)&&this.applyFilter()})}};r.\u0275fac=function(t){return new(t||r)(x(Ae))},r.\u0275cmp=v({type:r,selectors:[["filter-hierarchical-options-filter"]],inputs:{filterLeaf:"filterLeaf",parentQuery:"parentQuery",field:"field"},features:[k],decls:10,vars:12,consts:[["selectMultipleHierarchical",""],[1,"widget"],[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],["bindLabel","",1,"ui2-dropdown",3,"clear","change","placeholder","notFoundText","items","multiple","closeOnSelect","ngModel"],["ng-header-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],[3,"select"],[3,"onSelectAll","onDeselectAll","onDeselectFound","onSelectFound","select"],["bindLabel","label",3,"model","useOrConjunction"],["bindLabel","label","bindValue","uri",3,"onSelectOnly","item","model","showMixedCheckbox","selectOnly"]],template:function(t,i){if(t&1){let a=P();p(0,"div",1)(1,"div",2)(2,"filter-condition-selector",3),_("conditionSelected",function(m){return u(a),f(i.onConditionChange(m))}),d()(),p(3,"ng-select",4,0),C(5,"translate"),C(6,"translate"),_("clear",function(){return u(a),f(i.clearAll())})("change",function(m){return u(a),f(i.onSelectionChanged(m))}),h(7,td,2,2,"ng-template",5)(8,nd,1,2,"ng-template",6)(9,id,1,4,"ng-template",7),d()()}t&2&&(s(2),l("field",i.field.name)("selectedCondition",i.selectedCondition),s(),l("placeholder",M(5,8,"explorer-ng.filterModule.setValue"))("notFoundText",M(6,10,"explorer-ng.noResultsFound"))("items",i.options)("multiple",!0)("closeOnSelect",!1)("ngModel",i.selectedItems))},dependencies:[J,te,Mt,Na,bt,Pt,_e,ke,Ne,lt,st,I],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}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}"]});let n=r;return n})();var ct=ue(he());function od(n,r){if(n&1&&b(0,"ui2-dropdown-search-bar",8),n&2){c();let o=j(4);l("select",o)}}function ad(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",9),n&2){let o=c();l("model",o.selectedItems)("useOrConjunction",!0)}}function ld(n,r){if(n&1&&b(0,"ui2-dropdown-option-multi-select",10),n&2){let o=r.item,e=c();l("item",o)("model",e.selectedItems)}}var Hl=(()=>{let r=class r{constructor(){this.queryOperators=Object.keys(ct.IqlQueryOperator),this.selectedQueryOperator=ct.IqlQueryOperator.OR,this.selectedItems=[]}ngOnInit(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Xt.OPTIONS));e&&(this.options=JSON.parse(e.value)),this.applyFilter()}ngOnChanges(e){e.parentQuery?.currentValue&&this.listenToFilterChanges()}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe()}onFilterChange(e){this.selectedItems=e,this.updateFilter()}updateFilter(){let e=this.selectedItems.map(g=>g.uri),t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=new ct.LeafFilter(this.field.uri).setIdentifier(this.field.uri).setValues(e);if(t){let g=new ct.CompoundFilter(ct.IqlQueryOperator.OR).setIdentifier(this.field.uri),m=new ct.LeafFilter(this.field.uri).setIdentifier(`${this.field.uri}_empty`).setHasValue(!1);this.selectedItems.length&&g.addFilter(a),g.addFilter(m),this.parentQuery.addFilter(g,ct.compareById)}else a.setExclude(i),this.parentQuery.addFilter(a,ct.compareById)}applyFilter(){this.selectedItems=[];let e=t=>{t&&(this.selectedItems=this.options?.filter(i=>t.getValues().indexOf(i.uri)>-1))};if(this.filterLeaf instanceof ct.LeafFilter)this.selectedCondition=this.filterLeaf.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI,e(this.filterLeaf);else if(this.filterLeaf instanceof ct.CompoundFilter){this.selectedCondition=$.EMPTY_OR_CONDITION_URI;let t=this.filterLeaf.findQuery((0,ct.findById)(this.field.uri));e(t)}}onConditionChange(e){this.selectedCondition=e.uri,this.updateFilter()}listenToFilterChanges(){this.applyFilter(),this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.parentQuery.onChanged(e=>{e.getIdentifier().startsWith(this.field.uri)&&this.applyFilter()})}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["filter-options-filter"]],inputs:{filterLeaf:"filterLeaf",availableFilterConditions:"availableFilterConditions",parentQuery:"parentQuery",field:"field"},features:[k],decls:9,vars:9,consts:[["selectMultiple",""],[1,"widget"],[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],["bindLabel","label",1,"ui2-dropdown",3,"ngModelChange","change","items","ngModel","multiple","closeOnSelect","placeholder"],["ng-header-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],[3,"select"],["bindLabel","label",3,"model","useOrConjunction"],["bindLabel","label","bindValue","uri",3,"item","model"]],template:function(t,i){if(t&1){let a=P();p(0,"div",1)(1,"div",2)(2,"filter-condition-selector",3),_("conditionSelected",function(m){return u(a),f(i.onConditionChange(m))}),d()(),p(3,"ng-select",4,0),C(5,"translate"),re("ngModelChange",function(m){return u(a),ie(i.selectedItems,m)||(i.selectedItems=m),f(m)}),_("change",function(m){return u(a),f(i.onFilterChange(m))}),h(6,od,1,1,"ng-template",5)(7,ad,1,2,"ng-template",6)(8,ld,1,2,"ng-template",7),d()()}t&2&&(s(2),l("field",i.field.name)("selectedCondition",i.selectedCondition),s(),l("items",i.options),ne("ngModel",i.selectedItems),l("multiple",!0)("closeOnSelect",!1)("placeholder",M(5,7,"explorer-ng.filterModule.setValue")))},dependencies:[J,te,Mt,bt,Pt,_e,ke,Ne,lt,st,I],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}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}.query-operator-toggle[_ngcontent-%COMP%]{float:right;position:relative;background:#fff;border-radius:4px;border:1px solid #bdc8d4;margin:-5px 15px 0 0;z-index:20}.query-operator-toggle[_ngcontent-%COMP%]:before{display:block;content:"";position:absolute;z-index:0;width:50%;height:100%;left:0;transition:.15s left ease-in-out;background:#098dcd;border-top-left-radius:4px;border-bottom-left-radius:4px}.query-operator-toggle.OR[_ngcontent-%COMP%]:before{left:50%;border-radius:0 4px 4px 0}.query-operator-toggle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{cursor:pointer;float:left;width:50px;text-align:center;position:relative;z-index:1;font-size:13px;padding:3px 0}.query-operator-toggle[_ngcontent-%COMP%] > div.selected[_ngcontent-%COMP%]{color:#fff}.query-operator-toggle[_ngcontent-%COMP%]     .tooltip-bottom .tooltip{margin:15px 0 0!important;font-weight:400;min-width:140px}']});let n=r;return n})();var $b=ue(he());var Wl=(()=>{let r=class r{constructor(){this.onComponentRemoved=new y}};r.\u0275fac=function(t){return new(t||r)},r.\u0275dir=Xi({type:r,inputs:{field:"field",elementTypeUri:"elementTypeUri",rootFilter:"rootFilter"},outputs:{onComponentRemoved:"onComponentRemoved"}});let n=r;return n})();var Ql=(()=>{let r=class r extends Wl{};r.\u0275fac=(()=>{let e;return function(i){return(e||(e=Go(r)))(i||r)}})(),r.\u0275cmp=v({type:r,selectors:[["filter-placeholder-filter"]],features:[Zi],decls:3,vars:1,template:function(t,i){t&1&&(p(0,"h4"),O(1),d(),O(2,`
Coming Soon...
`)),t&2&&(s(),R(i.field.name))}});let n=r;return n})();var St=ue(he());var $l=(()=>{let r=class r{constructor(){this.destroyRef=Q(ee),this.customClass="",this.debounce=new F,this.rangePickerLegend={rangeStart:Number.MAX_VALUE,rangeEnd:Number.MIN_VALUE,options:{step:5,showSelectionBar:!1,floor:0,ceil:10,showTicks:!0,showTicksValue:!1,stepsArray:[],translate:e=>{if(this.options){let t=this.options.find(i=>i.value===e);return t&&t.label||""}return""}}}}ngOnInit(){this.debounce.pipe(Ue(300),L(this.destroyRef)).subscribe(m=>{this.applyFilterChange(m)});let e=this.field.propertyValues.find(m=>m.fieldTypePropertyUri.endsWith(Xt.OPTIONS)),t=!1,i=this.field.propertyValues.find(m=>m.fieldTypePropertyUri.endsWith(Xt.MIN)),a=this.field.propertyValues.find(m=>m.fieldTypePropertyUri.endsWith(Xt.MAX)),g=[];if(i&&a){let m=parseInt(i.value,10),w=parseInt(a.value,10),N=Math.abs(w-m)+1;g=Array(N).fill(1).map((G,Me)=>({value:m+Me,label:`${m+Me}`}))}this.options=e?JSON.parse(e.value):g,this.rangePickerLegend.options.stepsArray=this.getStepsArray(this.options,t),this.rangePickerLegend.options.step=this.rangePickerLegend.rangeEnd,this.applyFilter()}ngOnChanges(e){e.parentQuery?.currentValue&&this.listenToFilterChanges()}getStepsArray(e,t){return e.sort((i,a)=>t?a.value-i.value:i.value-a.value),e.length&&(this.rangePickerLegend.rangeStart=e[0].value,this.rangePickerLegend.rangeEnd=e[e.length-1].value),e.map(i=>({value:i.value,legend:""}))}onFilterChange(e){this.debounce.next(e)}applyFilterChange(e){this.rangePickerLegend.rangeStart=e?.min!==void 0?e.min:this.rangePickerLegend.rangeStart,this.rangePickerLegend.rangeEnd=e?.max!==void 0?e.max:this.rangePickerLegend.rangeEnd;let t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=new St.LeafFilter(this.field.uri).setIdentifier(this.field.uri).setRange({gt:{value:this.rangePickerLegend.rangeStart,includeValue:!0},lt:{value:this.rangePickerLegend.rangeEnd,includeValue:!0}});if(t){let g=new St.CompoundFilter(St.IqlQueryOperator.OR).setIdentifier(this.field.uri),m=new St.LeafFilter(this.field.uri).setIdentifier(`${this.field.uri}_empty`).setHasValue(!1);this.rangePickerLegend.rangeStart&&this.rangePickerLegend.rangeEnd&&g.addFilter(a),g.addFilter(m),this.parentQuery.addFilter(g,St.compareById)}else a.setExclude(i),this.parentQuery.addFilter(a,St.compareById)}applyFilter(){let e=t=>{if(!t)return;let i=t.getRange()||{};this.rangePickerLegend.rangeStart=i?.gt?.value||this.rangePickerLegend?.options?.floor,this.rangePickerLegend.rangeEnd=i?.lt?.value||this.rangePickerLegend?.options?.ceil};if(this.filterLeaf instanceof St.LeafFilter)this.selectedCondition=this.filterLeaf.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI,e(this.filterLeaf);else if(this.filterLeaf instanceof St.CompoundFilter){this.selectedCondition=$.EMPTY_OR_CONDITION_URI;let t=this.filterLeaf.findQuery((0,St.findById)(this.field.uri));e(t)}}onConditionChange(e){this.selectedCondition=e.uri,this.onFilterChange()}listenToFilterChanges(){this.applyFilter(),this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.parentQuery.onChanged(e=>{e.getIdentifier().startsWith(this.field.uri)&&this.applyFilter()})}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["filter-rating-filter"]],inputs:{customClass:"customClass",field:"field",parentQuery:"parentQuery",filterLeaf:"filterLeaf"},features:[k],decls:5,vars:7,consts:[[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],[1,"widget"],[1,"no-floorCeil-label",3,"onChange","value","maxValue","options"]],template:function(t,i){t&1&&(p(0,"div")(1,"div",0)(2,"filter-condition-selector",1),_("conditionSelected",function(g){return i.onConditionChange(g)}),d()(),p(3,"div",2)(4,"ui-range-picker",3),_("onChange",function(g){return i.onFilterChange(g)}),d()()()),t&2&&(un(i.customClass),s(2),l("field",i.field.name)("selectedCondition",i.selectedCondition),s(2),l("value",i.rangePickerLegend.rangeStart)("maxValue",i.rangePickerLegend.rangeEnd)("options",i.rangePickerLegend.options))},dependencies:[tl,st],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}.widget[_ngcontent-%COMP%]{margin:10px 0 25px;background:#fff;border:1px solid #098dcd;border-radius:6px}.widget[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{padding:10px}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}[_nghost-%COMP%]     .ng5-slider .ng5-slider-limit{bottom:-25px!important;opacity:1!important;visibility:visible!important}.panel[_ngcontent-%COMP%]   .label-sm-semibold-single[_ngcontent-%COMP%]{display:none}.panel[_ngcontent-%COMP%]   .widget[_ngcontent-%COMP%]{padding-top:8px;width:100%;margin:0;border:0;border-radius:0;background:none}"]});let n=r;return n})();var Tt=ue(he());function dd(n,r){if(n&1&&b(0,"ui2-dropdown-search-bar",10),n&2){let o=c(),e=j(6);un(o.customClass),l("select",e)}}function gd(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",11),n&2){let o=c();l("model",o.selectedItems)("useOrConjunction",!0)}}function md(n,r){if(n&1&&b(0,"ui2-dropdown-option-multi-select",12),n&2){let o=r.item,e=c();l("item",o)("model",e.selectedItems)}}var ud=200,Yl=(()=>{let r=class r{constructor(e,t){this.tagService=e,this.store=t,this.destroyRef=Q(ee),this.customClass="",this.tagsInputSubject=new F,this.selectedItems=[],this.presentTags=[],this.maxNoOfSuggestions=20,this.onDestroy=new F}ngOnChanges(e){e.parentQuery?.currentValue&&this.listenToFilterChanges()}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>{this.currentSpaceUri=e}),this.fieldLabel=this.field.name.slice(0,-1),this.getTags(),this.applyFilter(),this.tagsInputSubject.pipe(L(this.destroyRef)).pipe(Ue(ud)).subscribe(e=>{this.loaderSuggestions=!0,e&&e.length>0?this.getTags(e):this.getTags()})}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe(),this.onDestroy.next(),this.onDestroy.complete()}applyFilter(){this.selectedItems=[];let e=t=>{t&&(this.selectedItems=t.getValues().map(i=>({uri:i,label:i})))};if(this.filterLeaf instanceof Tt.LeafFilter)this.selectedCondition=this.filterLeaf.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI,e(this.filterLeaf);else if(this.filterLeaf instanceof Tt.CompoundFilter){this.selectedCondition=$.EMPTY_OR_CONDITION_URI;let t=this.filterLeaf.findQuery((0,Tt.findById)(this.field.uri));e(t)}}getTags(e){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.tagService.getTagSuggestions(this.currentSpaceUri,e||"",this.maxNoOfSuggestions).then(t=>{this.options=t.filter(i=>this.presentTags.indexOf(i.tag)===-1).map(i=>({uri:i.tag,label:i.tag})),this.loaderSuggestions=!1})}updateFilter(){let e=this.selectedItems.map(g=>g.uri),t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=new Tt.LeafFilter(this.field.uri).setIdentifier(this.field.uri).setValues(e);if(t){let g=new Tt.CompoundFilter(Tt.IqlQueryOperator.OR).setIdentifier(this.field.uri),m=new Tt.LeafFilter(this.field.uri).setIdentifier(`${this.field.uri}_empty`).setHasValue(!1);g.addFilter(m),this.selectedItems.length&&g.addFilter(a),this.parentQuery.addFilter(g,Tt.compareById)}else a.setExclude(i),this.parentQuery.addFilter(a,Tt.compareById)}onConditionChange(e){this.selectedCondition=e.uri,this.updateFilter()}listenToFilterChanges(){this.getTags(),this.applyFilter(),this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.parentQuery.onChanged(e=>{e.getIdentifier().startsWith(this.field.uri)&&(this.getTags(),this.applyFilter())})}onFilterChange(e){e&&(this.selectedItems=e,this.updateFilter())}};r.\u0275fac=function(t){return new(t||r)(x(Rr),x(le))},r.\u0275cmp=v({type:r,selectors:[["explorer-tags-filter"]],inputs:{customClass:"customClass",filterLeaf:"filterLeaf",field:"field",parentQuery:"parentQuery"},features:[k],decls:11,vars:15,consts:[["selectMultiple",""],[1,"widget"],[1,"tags-render-wrapper"],[1,"add-tag-block"],[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],["bindLabel","label",1,"ui2-dropdown",3,"ngModelChange","change","typeahead","loading","items","ngModel","multiple","placeholder","closeOnSelect"],["ng-header-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],[3,"select"],["bindLabel","label",3,"model","useOrConjunction"],["bindLabel","label","bindValue","uri",3,"item","model"]],template:function(t,i){if(t&1){let a=P();p(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"filter-condition-selector",5),_("conditionSelected",function(m){return u(a),f(i.onConditionChange(m))}),d()(),p(5,"ng-select",6,0),C(7,"translate"),re("ngModelChange",function(m){return u(a),ie(i.selectedItems,m)||(i.selectedItems=m),f(m)}),_("change",function(){return u(a),f(i.onFilterChange(i.selectedItems))}),h(8,dd,1,3,"ng-template",7)(9,gd,1,2,"ng-template",8)(10,md,1,2,"ng-template",9),d()()()()}t&2&&(un(i.customClass),s(4),l("field",i.fieldLabel)("selectedCondition",i.selectedCondition),s(),un(i.customClass),l("typeahead",i.tagsInputSubject)("loading",i.loaderSuggestions)("items",i.options),ne("ngModel",i.selectedItems),l("multiple",!0)("placeholder",M(7,13,"explorer-ng.renderers.tag.placeholder"))("closeOnSelect",!1))},dependencies:[J,te,Mt,bt,Pt,_e,ke,Ne,lt,st,I],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}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}.query-operator-toggle[_ngcontent-%COMP%]{float:right;position:relative;background:#fff;border-radius:4px;border:1px solid #bdc8d4;margin:-5px 15px 0 0;z-index:20}.query-operator-toggle[_ngcontent-%COMP%]:before{display:block;content:"";position:absolute;z-index:0;width:50%;height:100%;left:0;transition:.15s left ease-in-out;background:#098dcd;border-top-left-radius:4px;border-bottom-left-radius:4px}.query-operator-toggle.OR[_ngcontent-%COMP%]:before{left:50%;border-radius:0 4px 4px 0}.query-operator-toggle[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{cursor:pointer;float:left;width:50px;text-align:center;position:relative;z-index:1;font-size:13px;padding:3px 0}.query-operator-toggle[_ngcontent-%COMP%] > div.selected[_ngcontent-%COMP%]{color:#fff}.query-operator-toggle[_ngcontent-%COMP%]     .tooltip-bottom .tooltip{margin:15px 0 0!important;font-weight:400;min-width:140px}[_nghost-%COMP%]     ui2-dropdown-search-bar.panel .icon-search{font-size:16px;width:16px;height:24px;line-height:1;margin-left:4px}[_nghost-%COMP%]     ui2-dropdown-search-bar.panel .input{padding:4px 4px 4px 24px;border-radius:4px;height:24px}[_nghost-%COMP%]     ui2-dropdown-search-bar.panel .icon2-x16-close-s{margin-right:4px;height:24px}.panel[_ngcontent-%COMP%]{display:flex}.panel[_ngcontent-%COMP%]   .label-sm-semibold-single[_ngcontent-%COMP%]{display:none}']});let n=r;return n})();var Qn=ue(he());var hd=300,Xl=(()=>{let r=class r{constructor(){this.destroyRef=Q(ee),this.customClass="",this.debouncer=new F}ngOnChanges(e){e.filterLeaf?.currentValue&&this.filterLeaf instanceof Qn.LeafFilter&&(this.stringFilter=this.filterLeaf.getSearch()),e.parentQuery?.currentValue&&(this.watchParentChanges?.unsubscribe(),this.watchParentChanges=this.parentQuery.onChanged(t=>{t.getIdentifier()===this.field.uri&&this.filterLeaf instanceof Qn.LeafFilter&&(this.stringFilter=this.filterLeaf.getSearch())}))}ngOnDestroy(){this.watchParentChanges?.unsubscribe()}ngOnInit(){this.debouncer.pipe(Ue(hd),L(this.destroyRef)).subscribe(e=>{this.filterLeaf instanceof Qn.LeafFilter?this.filterLeaf.setSearch(e):this.filterLeaf instanceof Qn.CompoundFilter&&this.filterLeaf.getQueries().forEach(i=>{i.setSearch(e)})}),this.filterLeaf instanceof Qn.LeafFilter&&(window.filter=this.filterLeaf,this.stringFilter=this.filterLeaf.getSearch())}onFilterChange(e){this.debouncer.next(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["filter-text-filter"]],inputs:{customClass:"customClass",filterLeaf:"filterLeaf",parentQuery:"parentQuery",field:"field"},features:[k],decls:4,vars:6,consts:[[1,"label-sm-semibold-single","mb-2","block"],["name","search",1,"table-input",3,"ngModelChange","ngModel"]],template:function(t,i){t&1&&(p(0,"div")(1,"div",0),O(2),d(),p(3,"ui2-search-input",1),re("ngModelChange",function(g){return ie(i.stringFilter,g)||(i.stringFilter=g),g}),_("ngModelChange",function(){return i.onFilterChange(i.stringFilter)}),d()()),t&2&&(un(i.customClass),s(2),S(" ",i.field.name," "),s(),un(i.customClass),ne("ngModel",i.stringFilter))},dependencies:[J,te,br],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%]     ui2-search-input.panel .input-wrapper .icon2-x16-search{font-size:16px;width:16px;height:24px;line-height:1;margin-left:4px}[_nghost-%COMP%]     ui2-search-input.panel .input-wrapper .input{padding:4px 4px 4px 24px;border-radius:4px;height:24px}ui2-search-input[_ngcontent-%COMP%]{width:100%}.panel[_ngcontent-%COMP%]{display:flex}.panel[_ngcontent-%COMP%]   .label-sm-semibold-single[_ngcontent-%COMP%]{display:none}"]});let n=r;return n})();var Et=ue(he());var xd=32,Md=1,Od=700,fo="selected",Jl="AI Assistant",Ii=(()=>{let r=class r{constructor(e,t,i,a,g){this.userLookupService=e,this.fileService=t,this.translate=i,this.log=a,this.store=g,this.isMultiSelect=!0,this.hideSelected=!1,this.disabled=!1,this.disableLoading=!1,this.onChangeSelectedUser=new y,this.onFocusChange=new y,this.usersForSpace=[],this.selectedUsers=[],this.activePage=1,this.isAddingUser=!1,this.isLoadingRoles=!0,this.isUserRolesSelect=!1,this.searchText="",this.USER_PER_PAGE=20,this.NUMBER_OF_VISIBLE_CHIPS=4,this.MAXIMUM_USER_SELECTIONS=50,this.userSearchRequest=new F,this.userFetchRequest=new F,this.spaceUserChange=new F,this.lookupFrom={level:Tn.Workspace},this.destroyRef=Q(ee),this.listenUsersFetchRequest(),this.spaceUserChange.pipe(L()).subscribe(m=>{this.selectedUserUris?.length?(this.getSelectedUsers(),this.updateSpaceUsers()):(this.selectedUsersModel=null,this.updatedSpaceUsers=m),this.updatedSpaceUsers=this.updatedSpaceUsers.filter(w=>w.firstName+" "+w.lastName!==Jl)})}ngOnInit(){return Z(this,null,function*(){this.chipsLabelMap={[fo]:{text:this.translate.instant("renderers.spaceUsersSelect.selectedOptionLabel")}},this.currentTenant=yield Qe(this.store.select(ai.selectCurrentTenant).pipe(oe())),this.store.select(se.selectCurrentSpaceUri).pipe(oe(),$e(1)).subscribe(()=>{this.getSpaceUsers()})})}ngOnChanges(e){e?.selectedUserUris&&(this.selectedUserUris=e.selectedUserUris?.currentValue)}loadMoreSpaceUsers(){this.usersForSpace.length<this.totalUser&&this.getSpaceUsers()}searchUsers(e){this.resetSearchTextAndPaginationInformation(),this.userSearchRequest.next(e)}onUserSearchDropdownOpen(){this.onFocusChange.emit(!0),this.listenToUserSearchEvent()}onUserSearchDropdownClose(){this.onFocusChange.emit(!1),this.destroyUserSearchEventSubscription(),(this.searchText||!this.usersForSpace.length)&&(this.resetSearchTextAndPaginationInformation(),this.getSpaceUsers(!0))}onSelectedUserChange(e){this.updateSpaceUsers(),this.onChangeSelectedUser.emit(e)}getUsers(){return Z(this,null,function*(){let e={paginationParams:{pageCursor:this.activePage,limit:this.USER_PER_PAGE},filterParams:{query:this.searchText}};return this.userLookupService.getUsers(e,this.lookupFrom)})}getSelectedUsers(){return Z(this,null,function*(){if(this.selectedUserUris){let e=yield this.userLookupService.getUsers({filterParams:{userUri:this.selectedUserUris}},this.lookupFrom);this.selectedUsersModel=yield this.getUsersWithAvatarUrl(e),this.selectedUsers=this.selectedUsersModel}this.convertSelectedUserToObject()})}getSpaceUsers(e){this.userFetchRequest.next(e)}listenUsersFetchRequest(){let e=!1;this.userFetchRequest.pipe(L(this.destroyRef),mn(t=>(e=t,this.getUsers()))).subscribe({next:t=>Z(this,null,function*(){if(t?.result?.data){yield this.getSelectedUsers();let i=[...this.usersForSpace,...this.selectedUsers];this.usersForSpace=i.concat(yield this.getUsersWithAvatarUrl(t.result.data)).filter((a,g,m)=>g===m.findIndex(w=>w.userUri===a.userUri)),this.spaceUserChange.next(this.usersForSpace),this.activePage=this.activePage+1,this.totalUser=t.result.count;return}this.handleUserFilterError(e)}),error:t=>{this.handleUserFilterError(e,t)}})}listenToUserSearchEvent(){this.userSearchSubscription=this.userSearchRequest.pipe(Ue(Od),Ao()).subscribe(e=>{this.searchText=e,this.getSpaceUsers(!0)})}handleUserFilterError(e,t){this.log.warn("AddUserToSpaceComponent- Failed to fetch tenant users",Pe(ce({},t),{space:this.currentSpaceUri})),e&&(this.usersForSpace=[])}resetSearchTextAndPaginationInformation(){this.activePage=Md,this.totalUser=0,this.searchText=""}destroyUserSearchEventSubscription(){this.userSearchSubscription?.unsubscribe()}updateSpaceUsers(){this.updatedSpaceUsers=this.usersForSpace.map(e=>{if(Array.isArray(this.selectedUsersModel)){let t=this.selectedUsersModel.find(i=>i.userUri===e.userUri);if(t)return Pe(ce({},t),{disabled:!0,labelKey:fo})}else if(this.selectedUsersModel?.userUri===e?.userUri)return Pe(ce({},this.selectedUsersModel),{disabled:!0,labelKey:fo});return e}),this.updatedSpaceUsers=this.updatedSpaceUsers.filter(e=>e.firstName+" "+e.lastName!==Jl)}convertSelectedUserToObject(){!this.isMultiSelect&&Array.isArray(this.selectedUsersModel)&&(this.selectedUsersModel=this.selectedUsersModel[0])}getUsersWithAvatarUrl(e){return Z(this,null,function*(){let t=[];for(let i=0;i<e?.length;i++){let a=Pe(ce({},e[i]),{avatarUrl:yield this.fileService.getDownloadUrlForUserContext(e[i].avatar,e[i].userUri,xd)});t.push(a)}return t})}};r.\u0275fac=function(t){return new(t||r)(x(jt),x(En),x(K),x(Ae),x(le))},r.\u0275cmp=v({type:r,selectors:[["renderer-space-user"]],inputs:{selectedUserUris:"selectedUserUris",isMultiSelect:"isMultiSelect",hideSelected:"hideSelected",placeholder:"placeholder",disabled:"disabled",minCardinality:"minCardinality",disableLoading:"disableLoading"},outputs:{onChangeSelectedUser:"onChangeSelectedUser",onFocusChange:"onFocusChange"},standalone:!0,features:[k,W],decls:1,vars:11,consts:[[3,"ngModelChange","onSearch","scrollToEnd","onDropdownClose","onDropdownOpen","users","ngModel","minCardinality","maxCardinality","maxVisibleChipsBeforeScroll","hideSelected","placeholder","closeOnSelect","isMultiSelect","disabled","chipsLabelMapper"]],template:function(t,i){t&1&&(p(0,"ui2-user-search",0),re("ngModelChange",function(g){return ie(i.selectedUsersModel,g)||(i.selectedUsersModel=g),g}),_("onSearch",function(g){return i.searchUsers(g)})("scrollToEnd",function(){return i.loadMoreSpaceUsers()})("onDropdownClose",function(){return i.onUserSearchDropdownClose()})("onDropdownOpen",function(){return i.onUserSearchDropdownOpen()})("ngModelChange",function(g){return i.onSelectedUserChange(g)}),d()),t&2&&(l("users",i.updatedSpaceUsers),ne("ngModel",i.selectedUsersModel),l("minCardinality",i.minCardinality)("maxCardinality",i.MAXIMUM_USER_SELECTIONS)("maxVisibleChipsBeforeScroll",i.NUMBER_OF_VISIBLE_CHIPS)("hideSelected",i.hideSelected)("placeholder",i.placeholder)("closeOnSelect",!i.isMultiSelect)("isMultiSelect",i.isMultiSelect)("disabled",i.disabled)("chipsLabelMapper",i.chipsLabelMap))},dependencies:[E,fe,J,te,H,mi,Ua,ye,Je],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}.error[_nghost-%COMP%]   ui2-user-search[_ngcontent-%COMP%]  .ng-select-container, .error   [_nghost-%COMP%]   ui2-user-search[_ngcontent-%COMP%]  .ng-select-container{border:1px solid #f1245c}[_nghost-%COMP%]     .ng-option .ui-label{display:none}[_nghost-%COMP%]     .ng-option ui2-label{margin-top:-10px}[_nghost-%COMP%]     .ng-option .user-name{max-width:200px;display:inline-block;white-space:nowrap;text-overflow:ellipsis;text-decoration:none;overflow:hidden}[_nghost-%COMP%]     .ng-option:hover .ui-label{display:block;padding:0 4px;position:absolute;left:0;transform:translate(100%,14px);line-height:16px}"]});let n=r;return n})();function bd(n,r){n&1&&b(0,"ui-loader")}function yd(n,r){if(n&1){let o=P();p(0,"renderer-space-user",3),C(1,"translate"),_("onChangeSelectedUser",function(t){u(o);let i=c();return f(i.onFilterChange(t))}),d()}if(n&2){let o=c();l("placeholder",M(1,4,"explorer-ng.renderers.userSelectMoreFilters.placeholder"))("isMultiSelect",!0)("selectedUserUris",o.selectedUsersUris)("disableLoading",!0)}}var Kl=(()=>{let r=class r{constructor(e){this.userLookupService=e,this.selectedUsers=[],this.selectedUsersUris=[],this.loading=!0,this.lookupFrom={level:Tn.Workspace},this.destroy=new F}ngOnChanges(e){e.parentQuery?.currentValue&&this.subscribeToFilterChange()}ngOnDestroy(){this.destroy.next(),this.destroy.complete(),this.filterSubscription?.unsubscribe()}onFilterChange(e){this.selectedUsers=e,e&&Array.isArray(this.selectedUsers)&&(this.selectedUsersUris=this.selectedUsers.map(g=>g.userUri));let t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=new Et.LeafFilter(this.field.uri).setIdentifier(this.field.uri).setValues(this.selectedUsers.length?this.selectedUsers.map(g=>g.userUri):[]);if(t){let g=new Et.CompoundFilter(Et.IqlQueryOperator.OR).setIdentifier(this.field.uri),m=new Et.LeafFilter(this.field.uri).setIdentifier(`${this.field.uri}_empty`).setHasValue(!1);this.selectedUsers?.length&&g.addFilter(a),g.addFilter(m),this.parentQuery.addFilter(g,Et.compareById)}else a.setExclude(i),this.parentQuery.addFilter(a,Et.compareById)}onConditionChange(e){this.selectedCondition=e.uri,this.onFilterChange(this.selectedUsers)}getUsersDetail(e){return Z(this,null,function*(){let t={filterParams:{userUri:e}};return this.userLookupService.getUsers(t,this.lookupFrom)})}setSelectedItem(){return Z(this,null,function*(){let e,t=i=>{i&&(e=i.getValues())};if(this.filterLeaf instanceof Et.LeafFilter)this.selectedCondition=this.filterLeaf.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI,t(this.filterLeaf);else if(this.filterLeaf instanceof Et.CompoundFilter){this.selectedCondition=$.EMPTY_OR_CONDITION_URI;let i=this.filterLeaf.findQuery((0,Et.findById)(this.field.uri));t(i)}if(e){let i=yield this.getUsersDetail(e);this.selectedUsers=i,this.selectedUsers&&Array.isArray(this.selectedUsers)&&(this.selectedUsersUris=this.selectedUsers?.map(a=>a.userUri))}this.loading=!1})}subscribeToFilterChange(){this.setSelectedItem(),this.filterSubscription?.unsubscribe(),this.filterSubscription=this.parentQuery.onChanged(e=>{e.getIdentifier().startsWith(this.field.uri)&&this.setSelectedItem()})}};r.\u0275fac=function(t){return new(t||r)(x(jt))},r.\u0275cmp=v({type:r,selectors:[["filter-user-filter"]],inputs:{filterLeaf:"filterLeaf",parentQuery:"parentQuery",field:"field"},features:[k],decls:6,vars:3,consts:[[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],[1,"widget"],[3,"onChangeSelectedUser","placeholder","isMultiSelect","selectedUserUris","disableLoading"]],template:function(t,i){t&1&&(p(0,"div")(1,"div",0)(2,"filter-condition-selector",1),_("conditionSelected",function(g){return i.onConditionChange(g)}),d()(),p(3,"div",2),h(4,bd,1,0,"ui-loader")(5,yd,2,6),d()()),t&2&&(s(2),l("field",i.field.name)("selectedCondition",i.selectedCondition),s(2),Ce(4,i.loading?4:5))},dependencies:[Ie,Ii,st,I],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}.widget[_ngcontent-%COMP%]   h4[_ngcontent-%COMP%]{padding:10px}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}"]});let n=r;return n})();var wd=["*"],Vr=(()=>{let r=class r{constructor(){this.removeFilter=new y}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["innovation-os-ng-filter-box"]],inputs:{label:"label"},outputs:{removeFilter:"removeFilter"},ngContentSelectors:wd,decls:5,vars:1,consts:[[1,"global-filter-box"],[1,"icon-close","ml-auto","clickable",3,"click"],[1,"label-sm-single","mb-2"]],template:function(t,i){t&1&&(ot(),p(0,"div",0)(1,"span",1),_("click",function(){return i.removeFilter.emit()}),d(),p(2,"div",2),O(3),d(),it(4),d()),t&2&&(s(3),R(i.label))},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}.icon-close[_ngcontent-%COMP%]{display:none;font-size:12px;line-height:1;color:#627588}.icon-close[_ngcontent-%COMP%]:hover{color:#098dcd}.global-filter-box[_ngcontent-%COMP%]{height:fit-content;border-radius:4px;padding:8px;margin-top:8px;position:relative}.global-filter-box[_ngcontent-%COMP%]:hover{background-color:#e6f6fe80}.global-filter-box[_ngcontent-%COMP%]:hover   .icon-close[_ngcontent-%COMP%]{display:block;top:8px;right:8px;position:absolute}[_nghost-%COMP%]     ui-range-picker ngx-slider{margin-bottom:12px!important}"]});let n=r;return n})();var ki=(()=>{let r=class r{constructor(){this.openCloseSidebarSub=new F,this.openCloseSidebar$=this.openCloseSidebarSub.asObservable()}openSidebar(e){this.openCloseSidebarSub.next(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var Td=["*"];function Ed(n,r){if(n&1){let o=P();p(0,"div",1)(1,"header",2)(2,"div",3),O(3),d(),p(4,"div",4),_("click",function(){u(o);let t=c();return f(t.close())}),d()(),p(5,"div",5),it(6),d()()}if(n&2){let o=c();z("open-sidebar",o.open)("empty",o.empty),l("@appearSidebar",void 0),s(3),S(" ",o.title," ")}}var _v=(()=>{let r=class r{constructor(e){this.sidebarService=e,this.empty=!1,this.openChange=new y,this.closed=new y}ngOnChanges(e){e.open&&this.toggle(this.open)}toggle(e){this.sidebarService.openSidebar(e)}close(){this.open=!1,this.openChange.emit(!1),this.closed.emit()}};r.\u0275fac=function(t){return new(t||r)(x(ki))},r.\u0275cmp=v({type:r,selectors:[["ui-sidebar"]],inputs:{title:"title",open:"open",empty:"empty"},outputs:{openChange:"openChange",closed:"closed"},features:[k],ngContentSelectors:Td,decls:1,vars:1,consts:[["class","sidebar-container",3,"open-sidebar","empty",4,"ngIf"],[1,"sidebar-container"],[1,"sidebar-header"],[1,"sidebar-title"],[1,"icon-close",3,"click"],[1,"sidebar-body"]],template:function(t,i){t&1&&(ot(),h(0,Ed,7,6,"div",0)),t&2&&l("ngIf",i.open)},dependencies:[A],styles:["[_nghost-%COMP%]{position:fixed;right:0;top:0;height:100vh;z-index:99}.sidebar-container[_ngcontent-%COMP%]{width:400px;background:#fff;box-shadow:-2px 0 10px #3f445233;transition:transform .5s ease-in-out}.sidebar-header[_ngcontent-%COMP%]{height:50px;background:#098dcd;color:#fff;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-end;align-content:stretch;padding:15px 25px;position:relative}.sidebar-title[_ngcontent-%COMP%]{font-weight:600;line-height:1;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.icon-close[_ngcontent-%COMP%]{right:15px;position:absolute;bottom:auto;top:50%;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translateY(-50%);cursor:pointer}.sidebar-body[_ngcontent-%COMP%]{padding:25px;position:relative;height:calc(100vh - 50px);overflow:auto}.empty[_ngcontent-%COMP%]   .sidebar-header[_ngcontent-%COMP%]{height:50px;width:50px;background:none;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:flex-end;align-content:stretch;padding:0;position:absolute;right:0;color:#e4e8eb;z-index:10}.empty[_ngcontent-%COMP%]   .icon-close[_ngcontent-%COMP%]{right:35px;position:absolute;bottom:auto;top:50%;-webkit-transform:translate(0,-50%);-ms-transform:translate(0,-50%);transform:translateY(-50%);cursor:pointer}.empty[_ngcontent-%COMP%]   .sidebar-title[_ngcontent-%COMP%]{display:none}.empty[_ngcontent-%COMP%]   .sidebar-body[_ngcontent-%COMP%]{padding:0;height:100vh}"],data:{animation:[tn("appearSidebar",[gt("void => *",[dt("500ms ease-in-out",eo([ze({transform:"translate(110%, 0)",offset:0}),ze({transform:"translate(0, 0)",offset:1})]))]),gt("* => void",[dt("500ms ease-in-out",eo([ze({transform:"translate(0, 0)",offset:0}),ze({transform:"translate(110%, 0)",offset:1})]))])])]}});let n=r;return n})();var es=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E]});let n=r;return n})();var We=ue(he());var Ur=ue(he());var pt={LABEL:"label",ELEMENT_TYPE_URI:"elementTypeUri",URI:"uri",CREATED_ON:"createdOn"};function Id(n,r){if(n&1&&b(0,"ui2-dropdown-search-bar",9),n&2){c();let o=j(3);l("select",o)}}function kd(n,r){n&1&&(p(0,"span",10),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"explorer-ng.filterModule.relationsFilter.placeholder")," "))}function Fd(n,r){if(n&1&&b(0,"ui2-label",13),n&2){let o=c().item,e=c();l("text",e.entityTypesMap[o.elementTypeUri].acronym)("labelType","solid")("bgColor",e.entityTypesMap[o.elementTypeUri].color)}}function Rd(n,r){if(n&1&&(h(0,Fd,1,3,"ui2-label",11),p(1,"span",12),O(2),d()),n&2){let o=r.item,e=c();l("ngIf",e.entityTypesMap&&e.entityTypesMap[o.elementTypeUri]),s(2),S(" ",o.label," ")}}function Dd(n,r){if(n&1&&b(0,"ui2-label",13),n&2){let o=c(2).$implicit,e=c();l("text",e.entityTypesMap[o.elementTypeUri].acronym)("labelType","solid")("bgColor",e.entityTypesMap[o.elementTypeUri].color)}}function Vd(n,r){if(n&1&&(h(0,Dd,1,3,"ui2-label",11),p(1,"span",15),O(2),d()),n&2){let o=c().$implicit,e=c();l("ngIf",e.entityTypesMap&&e.entityTypesMap[o.elementTypeUri]),s(2),R(o.label)}}function Ud(n,r){if(n&1){let o=P();p(0,"div")(1,"ui2-tag",14),_("onClosed",function(){let t=u(o).$implicit,i=c();return f(i.removeElement(t))})("onClicked",function(){let t=u(o).$implicit,i=c();return f(i.selectElement(t))}),h(2,Vd,3,2,"ng-template",null,1,V),d()()}n&2&&(s(),l("isClickable",!0)("isRemovable",!0))}var Ld=3,ns=20,Ad="element-reference-filter-selected",is="element-reference-filter",Nd="element-reference-search",rs=(()=>{let r=class r{set parentFilter(e){this.parentFilterValue=e,this.updateComponentSelectionFromFilter(),this.listenToFilterChanges()}get parentFilter(){return this.parentFilterValue}set entityTypes(e){this.entityTypesMap=e?.reduce((t,i)=>(t[i.uri]=Pe(ce({},i),{acronym:i.name.slice(0,Ld)}),t),{})}constructor(e,t,i,a){this.filterQueryService=e,this.translate=t,this.stackedViewsService=i,this.sidebarService=a,this.destroyRef=Q(ee),this.fieldName="",this.loading=!1,this.endReached=!1,this.elements=[],this.dropdownSearch="",this.elementsInputSubject=new F,this.selectedElements=[],this.selectedCondition=$.DEFAULT_CONDITION_URI}ngOnInit(){this.elementsInputSubject.pipe(L(this.destroyRef),Ue(200)).subscribe(e=>{this.dropdownSearch=e,this.loadElements(!1)})}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe()}ngOnChanges(e){if(e.field){let t=`explorer-filter-v2.fields.${this.field?.name}`,i=this.translate.instant(t);this.fieldName=i!==t?i:this.field?.name}}updateComponentSelectionFromFilter(){let e=this.field?.uri;if(!e)return;let t=this.parentFilter?.findQuery((0,Ur.findById)(e));if(!t){this.selectedElements=[];return}let i=[];t instanceof We.LeafFilter?(i=t.getValues(),this.selectedCondition=t.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI):t instanceof We.CompoundFilter&&(this.selectedCondition=$.EMPTY_OR_CONDITION_URI,i=t.findQuery((0,Ur.findById)(e)).getValues()),this.loadElementPreviews(i)}loadElementPreviews(e){if(!e?.length){this.selectedElements=[];return}let t=new We.LeafFilter(pt.URI).setIdentifier(is).setValues(e),i=new We.CompoundFilter(We.IqlQueryOperator.OR).setIdentifier(Ad).addFilter(t);this.fetchElementPreviews(i).pipe($e(1)).subscribe(a=>{this.selectedElements=a})}listenToFilterChanges(){this.filterChangesSubscription?.unsubscribe(),this.parentFilter&&(this.filterChangesSubscription=this.parentFilter.onChanged(e=>{this.field&&e instanceof We.CompoundFilter&&e.findQuery((0,Ur.findById)(this.field.uri))&&this.updateComponentSelectionFromFilter()}))}updateFilter(e){return Z(this,null,function*(){if(e instanceof Event||!this.field||!this.parentFilter)return;let t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=new We.LeafFilter(this.field.uri).setIdentifier(this.field.uri).setValues(this.selectedElements?.map(g=>g.uri)).setExclude(i);if(t){let g=new We.LeafFilter(this.field.uri).setIdentifier(`${this.field.uri}_empty`).setHasValue(!1),m=new We.CompoundFilter(We.IqlQueryOperator.OR).setIdentifier(this.field.uri).addFilter(a).addFilter(g);this.parentFilter.addFilter(m,We.compareById)}else this.parentFilter.addFilter(a,We.compareById)})}onConditionChange(e){this.selectedCondition=e.uri,this.updateFilter()}onScrollToEnd(){this.endReached||this.loadElements(!0)}loadElements(e=!1){this.loading=!0,this.fetchElementPreviews(this.prepareFilterToLoadPreviews(),e).subscribe(t=>{e?this.elements=this.elements.concat(t):this.elements=t,this.loading=!1,this.endReached=t.length<ns})}fetchElementPreviews(e,t){return t?Kt(this.filterQueryService.fetchMoreFiltered(e)).pipe(et(()=>nt([]))):this.filterQueryService.getFilteredEntities(e,ns,void 0,"network-only").pipe($e(1),et(()=>nt([])))}prepareFilterToLoadPreviews(){let e=new We.CompoundFilter(We.IqlQueryOperator.AND).setIdentifier(is);this.dropdownSearch&&e.addFilter(new We.LeafFilter(pt.LABEL).setIdentifier(Nd).setSearch(this.dropdownSearch));let t=this.field?.propertyValues.find(i=>i.fieldTypePropertyUri==="uri_elementTypeUriReferences");if(t){let i=JSON.parse(t.value);i.length&&e.addFilter(new We.LeafFilter(pt.ELEMENT_TYPE_URI).setValues(i))}return this.selectedElements.length?e.addFilter(new We.LeafFilter(pt.URI).setIdentifier(pt.URI).setValues(this.selectedElements.map(i=>i.uri)).setExclude(!0)):e.getQueries().length===0?e.addFilter(new We.LeafFilter(pt.CREATED_ON).setRange({gt:{value:0}})):e}removeElement(e){this.selectedElements=this.selectedElements.filter(t=>t.uri!==e.uri),this.updateFilter()}selectElement(e){this.sidebarService.openSidebar(!1),this.stackedViewsService.openStack([{uri:e.uri,type:Gi.ENTITY}])}onClosedDropdown(){this.elements=[],this.endReached=!1,this.dropdownSearch=""}onOpenedDropdown(){this.loadElements(!1)}};r.\u0275fac=function(t){return new(t||r)(x(bi),x(K),x(In),x(ki))},r.\u0275cmp=v({type:r,selectors:[["filter-element-reference"]],inputs:{parentFilter:"parentFilter",filterLeaf:"filterLeaf",entityTypes:"entityTypes",field:"field"},features:[k],decls:12,vars:23,consts:[["elementsSelector",""],["tagContent",""],[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],[1,"ui2-dropdown",3,"ngModelChange","change","scrollToEnd","close","open","virtualScroll","loading","items","loadingText","typeToSearchText","notFoundText","multiple","typeahead","ngModel","placeholder","clearable","closeOnSelect"],["ng-header-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],[4,"ngFor","ngForOf"],[3,"select"],[1,"placeholder"],[3,"text","labelType","bgColor",4,"ngIf"],[1,"tag-label","ml-2"],[3,"text","labelType","bgColor"],[3,"onClosed","onClicked","isClickable","isRemovable"],[1,"tag-label"]],template:function(t,i){if(t&1){let a=P();p(0,"div",2)(1,"filter-condition-selector",3),_("conditionSelected",function(m){return u(a),f(i.onConditionChange(m))}),d()(),p(2,"ng-select",4,0),C(4,"translate"),C(5,"translate"),C(6,"translate"),C(7,"translate"),re("ngModelChange",function(m){return u(a),ie(i.selectedElements,m)||(i.selectedElements=m),f(m)}),_("change",function(m){return u(a),f(i.updateFilter(m))})("scrollToEnd",function(){return u(a),f(i.onScrollToEnd())})("close",function(){return u(a),f(i.onClosedDropdown())})("open",function(){return u(a),f(i.onOpenedDropdown())}),h(8,Id,1,1,"ng-template",5)(9,kd,3,3,"ng-template",6)(10,Rd,3,2,"ng-template",7),d(),h(11,Ud,4,2,"div",8)}t&2&&(s(),l("field",i.fieldName)("selectedCondition",i.selectedCondition),s(),l("virtualScroll",!0)("loading",i.loading)("items",i.elements)("loadingText",M(4,15,"explorer-ng.filterModule.relationsFilter.loadingText"))("typeToSearchText",M(5,17,"explorer-ng.filterModule.relationsFilter.typeToSearchText"))("notFoundText",M(6,19,"explorer-ng.filterModule.relationsFilter.notFoundText"))("multiple",!0)("typeahead",i.elementsInputSubject),ne("ngModel",i.selectedElements),l("placeholder",M(7,21,"explorer-ng.filterModule.relationsFilter.placeholder"))("clearable",!1)("closeOnSelect",!1),s(9),l("ngForOf",i.selectedElements))},dependencies:[Oe,A,J,te,Mt,kn,pi,_e,ke,Ne,lt,st,I],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}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}[_nghost-%COMP%]     ui2-tag .tag .label{background-color:#fff}[_nghost-%COMP%]     ui2-tag .tag-label{max-width:245px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]});let n=r;return n})();function Bd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",3),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-text-filter",4),d()()}if(n&2){let o=c(2);s(),l("label",o.field.name),s(),l("customClass",o.customClass)("field",o.field)("filterLeaf",o.filter)("parentQuery",o.parentFilter)}}function zd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"explorer-tags-filter",4),d()()}if(n&2){let o=c(2);s(2),l("customClass",o.customClass)("field",o.field)("filterLeaf",o.filter)("parentQuery",o.parentFilter)}}function Gd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-options-filter",6),d()()}if(n&2){let o=c(2);s(2),l("field",o.field)("filterLeaf",o.filter)("parentQuery",o.parentFilter)}}function qd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",3),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-text-filter",7),d()()}if(n&2){let o=c(2);s(),l("label",o.field.name),s(),l("customClass",o.customClass)("field",o.field)("elementTypeUri",o.filter.id)("filterLeaf",o.filter)}}function Hd(n,r){if(n&1&&(p(0,"div"),b(1,"filter-placeholder-filter",8),d()),n&2){let o=c(2);s(),l("field",o.field)("elementTypeUri",o.filter.id)}}function Wd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-hierarchical-options-filter",6),d()()}if(n&2){let o=c(2);s(2),l("field",o.field)("filterLeaf",o.filter)("parentQuery",o.parentFilter)}}function Qd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-rating-filter",9),d()()}if(n&2){let o=c(2);s(2),l("customClass",o.customClass)("field",o.field)("parentQuery",o.parentFilter)("filterLeaf",o.filter)}}function $d(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-rating-filter",9),d()()}if(n&2){let o=c(2);s(2),l("customClass",o.customClass)("field",o.field)("parentQuery",o.parentFilter)("filterLeaf",o.filter)}}function Yd(n,r){if(n&1&&(p(0,"div"),b(1,"filter-placeholder-filter",8),d()),n&2){let o=c(2);s(),l("field",o.field)("elementTypeUri",o.filter.id)}}function Xd(n,r){if(n&1&&(p(0,"div"),b(1,"filter-placeholder-filter",8),d()),n&2){let o=c(2);s(),l("field",o.field)("elementTypeUri",o.filter.id)}}function Jd(n,r){if(n&1&&(p(0,"div"),b(1,"filter-placeholder-filter",8),d()),n&2){let o=c(2);s(),l("field",o.field)("elementTypeUri",o.filter.id)}}function Kd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-user-filter",6),d()()}if(n&2){let o=c(2);s(2),l("field",o.field)("filterLeaf",o.filter)("parentQuery",o.parentFilter)}}function Zd(n,r){if(n&1){let o=P();p(0,"div")(1,"innovation-os-ng-filter-box",5),_("removeFilter",function(){u(o);let t=c(2);return f(t.removeFilter(t.filter))}),b(2,"filter-element-reference",10),d()()}if(n&2){let o=c(2);s(2),l("field",o.field)("filterLeaf",o.filter)("parentFilter",o.parentFilter)("entityTypes",o.allElementTypes)}}function eg(n,r){if(n&1&&(Y(0)(1,1),h(2,Bd,3,5,"div",2)(3,zd,3,4,"div",2)(4,Gd,3,3,"div",2)(5,qd,3,5,"div",2)(6,Hd,2,2,"div",2)(7,Wd,3,3,"div",2)(8,Qd,3,4,"div",2)(9,$d,3,4,"div",2)(10,Yd,2,2,"div",2)(11,Xd,2,2,"div",2)(12,Jd,2,2,"div",2)(13,Kd,3,3,"div",2)(14,Zd,3,4,"div",2),X()()),n&2){let o=c();s(),l("ngSwitch",o.field.fieldTypeUri),s(),l("ngSwitchCase","text"),s(),l("ngSwitchCase","tag"),s(),l("ngSwitchCase","options"),s(),l("ngSwitchCase","rich"),s(),l("ngSwitchCase","file"),s(),l("ngSwitchCase","hierarchicalOptions"),s(),l("ngSwitchCase","ordered_rating"),s(),l("ngSwitchCase","numerical_rating"),s(),l("ngSwitchCase","relation"),s(),l("ngSwitchCase","numeric"),s(),l("ngSwitchCase","date"),s(),l("ngSwitchCase","user"),s(),l("ngSwitchCase","uri")}}var Co=(()=>{let r=class r{constructor(){this.customClass="",this.onRemoveFilter=new y}removeFilter(e){this.onRemoveFilter.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["filter-group-item"]],inputs:{customClass:"customClass",filter:"filter",parentFilter:"parentFilter",field:"field",allElementTypes:"allElementTypes"},outputs:{onRemoveFilter:"onRemoveFilter"},decls:1,vars:1,consts:[[4,"ngIf"],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"removeFilter","label"],[3,"customClass","field","filterLeaf","parentQuery"],[3,"removeFilter"],[3,"field","filterLeaf","parentQuery"],[3,"customClass","field","elementTypeUri","filterLeaf"],[3,"field","elementTypeUri"],[3,"customClass","field","parentQuery","filterLeaf"],[3,"field","filterLeaf","parentFilter","entityTypes"]],template:function(t,i){t&1&&h(0,eg,15,14,"ng-container",0),t&2&&l("ngIf",i.filter&&i.parentFilter&&i.field)},dependencies:[A,en,Qt,ql,Hl,Ql,$l,Yl,Xl,Kl,Vr,rs]});let n=r;return n})();var tg=(n,r)=>({"collapsed-chevron":n,"expanded-chevron":r}),ng=n=>({name:n}),ig=()=>[];function rg(n,r){if(n&1&&(p(0,"span",10),C(1,"translate"),b(2,"span",11),p(3,"span",12,2),O(5),C(6,"translate"),d()()),n&2){let o=c(2);l("ui2Tooltip",o.dropdownOptions.length===0?M(1,7,"explorer-ng.filterModule.toolTips.allElementTypesAdded"):null),s(2),z("add-disabled",o.dropdownOptions.length===0),s(),z("title-active",o.selectionOpen),s(2),ei("",xe(6,9,"explorer-ng.filterModule.addElementField",q(12,ng,o.focusedElementType.name))," (",(o.selectedTypeFilter==null||o.selectedTypeFilter.queries==null?null:o.selectedTypeFilter.queries.length)-1,")")}}function og(n,r){if(n&1&&(O(0),C(1,"translate")),n&2){let o=r.$implicit,e=c(2);S(" ",M(1,1,e.translations[o.name]||o.name)," ")}}function ag(n,r){if(n&1){let o=P();p(0,"filter-group-item",16),_("onRemoveFilter",function(t){u(o);let i=c(4);return f(i.removeCondition(t))}),d()}if(n&2){let o=c().$implicit,e=c(3);l("customClass","panel")("filter",e.selectedTypeFilter==null?null:e.selectedTypeFilter.getQuery(o.uri))("parentFilter",e.selectedTypeFilter)("field",o)("allElementTypes",e.allElementTypes)}}function lg(n,r){if(n&1&&(p(0,"div"),h(1,ag,1,5,"filter-group-item",15),d()),n&2){let o=r.$implicit,e=c(3);l("@itemAnimation",void 0),s(),l("ngIf",e.selectedTypeFilter==null?null:e.selectedTypeFilter.getQuery(o.uri))}}function sg(n,r){if(n&1&&(p(0,"div",13),C(1,"async"),h(2,lg,2,2,"div",14),d()),n&2){let o,e=c(2);l("@collapsePanel",M(1,2,e.fieldsTypesExpanded)?"expanded":"collapsed"),s(2),l("ngForOf",(o=e.filteredFields)!==null&&o!==void 0?o:Gn(4,ig))}}function cg(n,r){if(n&1){let o=P();p(0,"div",4),C(1,"async"),C(2,"async"),p(3,"div",5)(4,"ui-dropdown-list",6),_("select",function(t){u(o);let i=c();return f(i.selectionChanged(t))})("open",function(t){u(o);let i=c();return f(i.selectionOpen=t)}),h(5,rg,7,14,"ng-template",null,0,V)(7,og,2,3,"ng-template",null,1,V),d(),p(9,"span",7),_("click",function(){u(o);let t=c();return f((t.selectedTypeFilter==null||t.selectedTypeFilter.queries==null?null:t.selectedTypeFilter.queries.length)>1?t.togglePanel():null)}),d(),p(10,"span",8),C(11,"async"),C(12,"async"),_("click",function(){u(o);let t=c();return f((t.selectedTypeFilter==null||t.selectedTypeFilter.queries==null?null:t.selectedTypeFilter.queries.length)>1?t.togglePanel():null)}),d()(),h(13,sg,3,5,"div",9),d()}if(n&2){let o=c();z("expanded",M(1,9,o.fieldsTypesExpanded))("pb-4",M(2,11,o.fieldsTypesExpanded)),s(4),l("data",o.dropdownOptions),s(6),z("disable-chevron",(o.selectedTypeFilter==null||o.selectedTypeFilter.queries==null?null:o.selectedTypeFilter.queries.length)<2),l("ngClass",Te(17,tg,M(11,13,o.fieldsTypesExpanded)===!1,M(12,15,o.fieldsTypesExpanded))),s(3),l("ngIf",o.selectedTypeFilter==null||o.selectedTypeFilter.queries==null?null:o.selectedTypeFilter.queries.length)}}var pg=["file","headerImage","date","numerical","workflowStatus","workflowDefinition","workflow"],dg=["clusterSource","entitySource","signalsSource"],gg=[...dg],as=(()=>{let r=class r{constructor(e,t,i){this.entityConfigService=e,this.store=t,this.translate=i,this.selectionOpen=!1,this.isExpanded=!1,this.fieldsTypesExpanded=new ft(!1),this.dropdownOptions=[],this.filteredFields=[],this.translations={belongsTo:"explorer-filter-v2.fields.belongsTo"},this.fieldsAvalaibleForType=[],this.onDestroy=new F,this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L()).subscribe(a=>{this.currentSpaceUri=a})}ngOnChanges(e){(e.typeGroupsFilter?.currentValue||e.focusedElementType?.currentValue)&&this.onFocusedElementTypeChanged()}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}onFocusedElementTypeChanged(){return Z(this,null,function*(){!this.typeGroupsFilter||!this.focusedElementType||(this.selectedTypeFilter=this.typeGroupsFilter.findQuery((0,$n.findById)(this.focusedElementType.uri)),this.fieldsAvalaibleForType=yield this.loadFieldsForElementType(this.focusedElementType),this.setDropdownOptions())})}loadFieldsForElementType(e){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getFieldsForElementType(e.uri,!0,!1,this.currentSpaceUri).then(t=>t.filter(i=>!pg.includes(i.fieldTypeUri)).filter(i=>!gg.includes(i.uri)).filter(i=>i.fieldTypeUri!=="uri"||i.propertyValues.find(a=>a.fieldTypePropertyUri==="uri_elementTypeUriReferences")).sort((i,a)=>{let g=this.translations[i.name]?this.translate.instant(this.translations[i.name]):i.name,m=this.translations[a.name]?this.translate.instant(this.translations[a.name]):a.name;return g.localeCompare(m)}))}setDropdownOptions(){let e=this.selectedTypeFilter?.getQueries().filter(t=>t.getIdentifier()!==D.ELEMENT_TYPE_URI).map(t=>t.getIdentifier())||[];this.dropdownOptions=this.fieldsAvalaibleForType.filter(t=>!e.includes(t.uri)),this.filteredFields=this.fieldsAvalaibleForType.filter(t=>e.includes(t.uri)),this.fieldsTypesExpanded.next(this.filteredFields.length>0)}togglePanel(){this.fieldsTypesExpanded.next(!this.fieldsTypesExpanded.value)}selectionChanged(e){let t=new $n.LeafFilter(e.uri).setIdentifier(e.uri);this.selectedTypeFilter.addFilter(t,$n.compareById),this.setDropdownOptions()}removeCondition(e){this.selectedTypeFilter.removeFilters((0,$n.findById)(e.getIdentifier())),this.setDropdownOptions()}};r.\u0275fac=function(t){return new(t||r)(x(He),x(le),x(K))},r.\u0275cmp=v({type:r,selectors:[["filter-panel-type-filters"]],inputs:{rootFilter:"rootFilter",typeGroupsFilter:"typeGroupsFilter",focusedElementType:"focusedElementType",allElementTypes:"allElementTypes"},features:[k],decls:1,vars:1,consts:[["dropdownButton",""],["dropdownList",""],["titleText",""],["class","element-type-field-selector",3,"expanded","pb-4",4,"ngIf"],[1,"element-type-field-selector"],[1,"header-section","flex","items-center","clickable"],["eventType","click","dropPosition","bottom",1,"dropdown-trigger","mr-1",3,"select","open","data"],[1,"select-area","flex-grow-1",3,"click"],[1,"icon2-x16-chevron-l","panel-chevron","ml-auto",3,"click","ngClass"],["class","filter-group-section",4,"ngIf"],[3,"ui2Tooltip"],[1,"icon-plus","color-primary"],[1,"label-sm-semibold-single","panel-title","ml-1"],[1,"filter-group-section"],[4,"ngFor","ngForOf"],[3,"customClass","filter","parentFilter","field","allElementTypes","onRemoveFilter",4,"ngIf"],[3,"onRemoveFilter","customClass","filter","parentFilter","field","allElementTypes"]],template:function(t,i){t&1&&h(0,cg,14,20,"div",3),t&2&&l("ngIf",i.focusedElementType)},dependencies:[de,Oe,A,De,zt,Co,vn,I],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%]    {height:100%;display:block;overflow-y:scroll}[_nghost-%COMP%]     .ui2-dropdown.inline-dropdown.ng-select-multiple .ng-select-container{padding:0 32px 0 0!important;min-height:auto}[_nghost-%COMP%]     .ui2-dropdown.inline-dropdown.ng-select-multiple .ng-select-container .ng-clear-wrapper{left:20px}[_nghost-%COMP%]     filter-condition-selector .ui2-dropdown.inline-dropdown{height:22px}[_nghost-%COMP%]     filter-group-item filter-text-filter .panel, [_nghost-%COMP%]     filter-group-item explorer-tags-filter .panel{display:block}[_nghost-%COMP%]     filter-group-item filter-text-filter ui2-search-input .icon2-x16-search{margin-left:12px!important;margin-top:7px}[_nghost-%COMP%]     filter-group-item filter-text-filter ui2-search-input .input{height:40px!important;padding:7px 12px 7px 30px!important}[_nghost-%COMP%]     filter-condition-selector .ui2-dropdown.ng-select-multiple .ng-select-container, [_nghost-%COMP%]     filter-condition-selector .ui2-dropdown.ng-select-single .ng-select-container{padding:0!important}[_nghost-%COMP%]     .itonics-popper.ngxp__container{margin-left:16px!important}[_nghost-%COMP%]     .itonics-popper.ngxp__container .dropdown-menu-list{width:358px}[_nghost-%COMP%]     .itonics-popper.ngxp__container .menu-item-wrap{height:fit-content;max-height:360px}[_nghost-%COMP%]{display:block;overflow-y:scroll}.element-type-text[_ngcontent-%COMP%]{display:inline-block;margin-left:5px;color:#3e4d63}.element-type-fields-header[_ngcontent-%COMP%]{margin-bottom:16px;display:flex;align-items:flex-start}.ui2-dropdown.inline-dropdown[_ngcontent-%COMP%]{padding-right:0;margin-right:0;border:none;display:inline-block;position:relative;box-sizing:border-box}.element-type-field-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]{height:50px}.element-type-field-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .select-area[_ngcontent-%COMP%]{height:100%;flex-grow:1}.element-type-field-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]{margin-top:2px;max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.element-type-field-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .panel-title.title-active[_ngcontent-%COMP%], .element-type-field-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]   .panel-title[_ngcontent-%COMP%]:hover{color:#098dcd}.element-type-field-selector[_ngcontent-%COMP%]   .header-section[_ngcontent-%COMP%]:hover   .panel-chevron[_ngcontent-%COMP%]:not(.disable-chevron){color:#098dcd}.element-type-field-selector[_ngcontent-%COMP%]   .panel-chevron[_ngcontent-%COMP%]{color:#627588}.element-type-field-selector[_ngcontent-%COMP%]   .panel-chevron[_ngcontent-%COMP%]:hover{color:#098dcd;cursor:pointer}.element-type-field-selector[_ngcontent-%COMP%]   .panel-chevron.disable-chevron[_ngcontent-%COMP%]{color:#bdc8d4}.expanded-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(180deg)}.collapsed-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(360deg)}"],data:{animation:[yi("100ms"),vi("100ms")]}});let n=r;return n})();var ug=()=>[Qt,import("./chunk-ZYAFVWLV.js").then(n=>n.ImportContentModalComponent)],fg=()=>[Qt,import("./chunk-C3F4XAC2.js").then(n=>n.ImportFromDatasheetComponent)],_g=()=>[Jo,import("./chunk-QSEIDON2.js").then(n=>n.ImportContentOptionComponent)];function hg(n,r){if(n&1){let o=P();p(0,"explorer-import-content-modal",2),_("backButtonClicked",function(){u(o);let t=c(2);return f(t.selectPage())}),d()}if(n&2){let o=c(2);l("showBackButton",!o.directSelectPage)}}function Cg(n,r){if(n&1&&h(0,hg,1,1,"explorer-import-content-modal",1),n&2){let o=c();l("ngSwitchCase",o.ContentImportPage.COPY_FROM_WORKSPACE)}}function xg(n,r){if(n&1){let o=P();p(0,"explorer-import-from-datasheet",4),_("backButtonClicked",function(){u(o);let t=c(2);return f(t.selectPage())})("cancelButtonClicked",function(){u(o);let t=c(2);return f(t.closeModal())}),d()}if(n&2){let o=c(2);l("showBackButton",!o.directSelectPage)}}function Mg(n,r){if(n&1&&h(0,xg,1,1,"explorer-import-from-datasheet",3),n&2){let o=c();l("ngSwitchCase",o.ContentImportPage.IMPORT_FROM_DATA_SHEET)}}function Og(n,r){if(n&1){let o=P();p(0,"explorer-import-content-option",6),_("pageSelected",function(t){u(o);let i=c(2);return f(i.selectPage(t))}),d()}}function Pg(n,r){n&1&&h(0,Og,1,0,"explorer-import-content-option",5)}var ls=(()=>{let r=class r{constructor(e){this.entityImportService=e,this.selectedPage=Rn.OPTION_SELECTION,this.directSelectPage=!1,this.ContentImportPage=Rn}selectPage(e){this.selectedPage=e||Rn.OPTION_SELECTION,this.entityImportService.updateTitle(this.selectedPage)}closeModal(){this.entityImportService.closeImportContentModal()}};r.\u0275fac=function(t){return new(t||r)(x(Fi))},r.\u0275cmp=v({type:r,selectors:[["explorer-elements-import-modal"]],inputs:{selectedPage:"selectedPage",directSelectPage:"directSelectPage"},standalone:!0,features:[W],decls:10,vars:1,consts:[[3,"ngSwitch"],[3,"showBackButton","backButtonClicked",4,"ngSwitchCase"],[3,"backButtonClicked","showBackButton"],[3,"showBackButton","backButtonClicked","cancelButtonClicked",4,"ngSwitchCase"],[3,"backButtonClicked","cancelButtonClicked","showBackButton"],[3,"pageSelected",4,"ngSwitchDefault"],[3,"pageSelected"]],template:function(t,i){t&1&&(Y(0,0),h(1,Cg,1,1),er(2,1,ug),tr(),h(4,Mg,1,1),er(5,4,fg),tr(),h(7,Pg,1,0),er(8,7,_g),tr(),X()),t&2&&l("ngSwitch",i.selectedPage)},dependencies:[E,en]});let n=r;return n})();var Fi=(()=>{let r=class r{constructor(e,t,i){this.modalService=e,this.translate=t,this.trackingService=i}openContentImportOptionSelectionModal(){this.openImportContentModal(Rn.OPTION_SELECTION)}openCopyFromWorkspaceModal(){this.openImportContentModal(Rn.COPY_FROM_WORKSPACE,!0)}updateTitle(e){this.modalService.setTitle(this.translate.instant(`importExport.import.modal.title.${e}`))}openImportDatasheetModal(){this.openImportContentModal(Rn.IMPORT_FROM_DATA_SHEET,!0),this.trackingService.trackEventById("explorer.importData.openImport")}closeImportContentModal(){this.modalService.closeModal()}openImportContentModal(e,t=!1){let i={closeable:!0,escapable:!1,dismissable:!1,customClass:"small-modal",closeConfirmChecker:()=>Z(this,null,function*(){return!0}),innerPadding:!0},a=this.modalService.openModal(ls,ce({},i));a.instance.selectedPage=e,a.instance.directSelectPage=t,this.modalService.setTitle(this.translate.instant(`importExport.import.modal.title.${e}`))}};r.\u0275fac=function(t){return new(t||r)(U(Ct),U(K),U(pe))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var Vi=ue(he());var Ze=function(n){return n.SELECTED="selected",n.DE_SELECTED="deSelected",n.CLEAR_ALL="clearAll",n}(Ze||{}),ss="watchers";var cs=["status","createdByUri","updatedByUri","updatedOn","tagSearch","relations","createdOn","watchers"],ps=["explorer-ng.filterModule.templateFilterIDs.watchers","explorer-ng.filterModule.templateFilterIDs.status","explorer-ng.filterModule.templateFilterIDs.createdByUri","explorer-ng.filterModule.templateFilterIDs.updatedByUri","explorer-ng.filterModule.templateFilterIDs.updatedOn","explorer-ng.filterModule.templateFilterIDs.tagSearch","explorer-ng.filterModule.templateFilterIDs.relations","explorer-ng.filterModule.templateFilterIDs.createdOn"];var ds=ue(he());function bg(n,r){if(n&1&&b(0,"ui2-dropdown-search-bar",4),n&2){c(2);let o=j(1);l("select",o)}}function yg(n,r){n&1&&h(0,bg,1,1,"ng-template",3)}function vg(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",6),n&2){let o=c(2);l("model",o.selectedUsers)}}function wg(n,r){n&1&&h(0,vg,1,1,"ng-template",5)}function Sg(n,r){if(n&1&&b(0,"ui2-dropdown-option-multi-select",8),n&2){let o=r.item,e=c(2),t=j(1);l("item",o)("model",e.selectedUsers)("select",t)}}function Tg(n,r){n&1&&h(0,Sg,1,3,"ng-template",7)}var gs=(()=>{let r=class r{constructor(e,t,i,a,g,m,w){this.trackingService=e,this.entityService=t,this.userLookupService=i,this.translate=a,this.sessionService=g,this.logger=m,this.store=w,this.destroyRef=Q(ee),this.cssClasses="ui2-dropdown",this.placeholder="explorer-ng.filterModule.selectOption",this.contributors=[],this.selectedUsers=[],this.thresholdToShowSearch=6,this.onDestroy=new F}ngOnChanges(e){e.globalFilter?.currentValue&&this.subscribeToFilterChange()}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>Z(this,null,function*(){this.currentSpaceUri=e,yield this.getContributors(),this.contributors=[...this.contributors].map(t=>{let i=this.translate.instant("renderers-ng.explorerHeader.unknownUser");return t?.firstName&&(i=t.lastName?`${t.firstName} ${t.lastName}`:t.firstName),Pe(ce({},t),{label:i,uri:t.userUri})}),this.getSelectedItems()}))}ngOnDestroy(){this.filterSubscription?.unsubscribe(),this.onDestroy.next(),this.onDestroy.complete()}getSelectedItems(){if(this.createdByFilter=this.globalFilter.getQueries().find(e=>e.getIdentifier()===D.CREATED_BY_URI),this.createdByFilter&&this.contributors?.length){let t=sn(this.createdByFilter).getValues();this.selectedUsers=this.contributors.filter(i=>t.some(a=>a===i.userUri)),this.selectedUsers=[...this.selectedUsers].map(i=>{let a=this.translate.instant("renderers-ng.explorerHeader.unknownUser");return i?.firstName&&(a=i.lastName?`${i.firstName} ${i.lastName}`:i.firstName),Pe(ce({},i),{label:a,uri:i.userUri})})}else this.selectedUsers=null}getContributors(){return new Promise((e,t)=>{this.getCreatorsSubs&&this.getCreatorsSubs.unsubscribe(),console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.getCreatorsSubs=this.entityService.getCreatorsBySpace(this.currentSpaceUri).subscribe(i=>Z(this,null,function*(){let a,g={filterParams:{userUri:[...i,this.sessionService.getUser().sub]}},m={level:Tn.Workspace};this.userLookupService.getUsers(g,m).then(w=>{this.contributors=w.filter(N=>{let G=N.userUri===this.sessionService.getUser().sub;return G&&(a=Pe(ce({},N),{firstName:this.translate.instant("explorer-ng.filterModule.myElements"),lastName:""})),!G}),a&&this.contributors.unshift(a),e()}).catch(w=>{this.logger.warn("CreatedBySearchComponent: Unable to fetch user detail information by uris",{userLookupOptionsRequest:g,lookupfrom:m,error:w}),t()})}))})}subscribeToFilterChange(){this.getSelectedItems(),this.filterSubscription?.unsubscribe(),this.filterSubscription=this.globalFilter.onChanged(e=>{e.getIdentifier()===D.CREATED_BY_URI&&this.getSelectedItems()})}updateFilter(e){this.createdByFilter instanceof ds.LeafFilter&&this.createdByFilter.setValues(e.map(t=>t.uri)),this.trackingService.trackEventById(`${this.currentView}explorerQuickFilter.createdBy.${e?.length?Ze.SELECTED:Ze.DE_SELECTED}`)}};r.\u0275fac=function(t){return new(t||r)(x(pe),x(hi),x(jt),x(K),x(_t),x(Ae),x(le))},r.\u0275cmp=v({type:r,selectors:[["filter-created-by-search"]],viewQuery:function(t,i){if(t&1&&Le(_e,5),t&2){let a;we(a=Se())&&(i.ngSelect=a.first)}},inputs:{globalFilter:"globalFilter",currentView:"currentView",cssClasses:"cssClasses",placeholder:"placeholder"},features:[k],decls:7,vars:14,consts:[["elementCreatedBy",""],["dropdownPosition","bottom",1,"ui2-dropdown",3,"change","ngModelChange","items","closeOnSelect","hideSelected","multiple","placeholder","ngModel","clearAllText"],[4,"ngIf"],["ng-header-tmp",""],[3,"select"],["ng-label-tmp",""],["bindLabel","label",3,"model"],["ng-option-tmp",""],["bindLabel","label","bindValue","uri",3,"item","model","select"]],template:function(t,i){if(t&1){let a=P();p(0,"ng-select",1,0),C(2,"translate"),C(3,"translate"),_("change",function(m){return u(a),f(i.updateFilter(m))}),re("ngModelChange",function(m){return u(a),ie(i.selectedUsers,m)||(i.selectedUsers=m),f(m)}),h(4,yg,1,0,null,2)(5,wg,1,0,null,2)(6,Tg,1,0,null,2),d()}t&2&&(l("items",i.contributors)("closeOnSelect",!1)("hideSelected",!1)("multiple",!0)("placeholder",M(2,10,i.placeholder)),ne("ngModel",i.selectedUsers),l("clearAllText",M(3,12,"explorer-ng.filterModule.clear")),s(4),l("ngIf",i.contributors.length>i.thresholdToShowSearch),s(),l("ngIf",i.selectedUsers==null?null:i.selectedUsers.length),s(),l("ngIf",i.contributors==null?null:i.contributors.length))},dependencies:[A,J,te,Mt,bt,Pt,_e,ke,Ne,lt,I]});let n=r;return n})();var ms=ue(he());function Ig(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",4),n&2){let o=c();l("model",o.selectedItems)}}function kg(n,r){if(n&1&&b(0,"ui2-dropdown-option-multi-select",5),n&2){let o=r.item,e=c(),t=j(1);l("item",o)("model",e.selectedItems)("select",t)}}var us=(()=>{let r=class r{constructor(e,t,i,a,g,m,w){this.trackingService=e,this.entityService=t,this.userLookupService=i,this.translate=a,this.sessionService=g,this.logger=m,this.store=w,this.destroyRef=Q(ee),this.cssClasses="ui2-dropdown",this.placeholder="explorer-ng.filterModule.selectOption",this.selectedItems=[],this.contributors=[],this.thresholdToShowSearch=6,this.onDestroy=new F}ngOnChanges(e){e.globalFilter?.currentValue&&this.subscribeToFilterChange()}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>{this.currentSpaceUri=e,this.getUpdaters().subscribe({complete:()=>this.getSelectedItems()})})}ngOnDestroy(){this.filterSubscription?.unsubscribe(),this.onDestroy.next(),this.onDestroy.complete()}getSelectedItems(){if(this.updatedByFilter=this.globalFilter.getQueries().find(e=>e.getIdentifier()===D.UPDATED_BY),this.updatedByFilter){let e=sn(this.updatedByFilter);e.getValues()&&(this.selectedItems=this.contributors?.filter(t=>e.getValues().indexOf(t.userUri)>=0).map(t=>(t.fullName=this.translate.instant("renderers-ng.explorerHeader.unknownUser"),t?.firstName&&(t.fullName=`${t?.firstName} ${t?.lastName}`),t)))}else this.selectedItems=[]}getUpdaters(){return new Ut(t=>{this.getUpdatersSubs&&this.getUpdatersSubs.unsubscribe(),console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.getUpdatersSubs=this.entityService.getUpdatersBySpace(this.currentSpaceUri).subscribe(i=>{let a,g={filterParams:{userUri:[...i,this.sessionService.getUser().sub]}},m={level:Tn.Workspace};this.userLookupService.getUsers(g,m).then(w=>{this.contributors=w.filter(N=>{let G=N.userUri===this.sessionService.getUser().sub;return G&&(a=Pe(ce({},N),{fullName:this.translate.instant("explorer-ng.filterModule.myElements"),firstName:this.translate.instant("explorer-ng.filterModule.myElements"),lastName:""})),!G}).map(N=>(N.fullName=this.translate.instant("renderers-ng.explorerHeader.unknownUser"),N?.firstName&&(N.fullName=`${N?.firstName} ${N?.lastName}`),N)),a&&this.contributors.unshift(a),t.next(),t.complete()}).catch(w=>{this.logger.warn("updatedBySearchComponent: Unable to fetch user detail information by uris",{userLookupOptionsRequest:g,lookupfrom:m,error:w}),t.error(w)})})}).pipe(et(t=>(this.logger.warn("updatedBySearchComponent: Unable to fetch user detail information by uris",{error:t}),nt(null))))}subscribeToFilterChange(){this.getSelectedItems(),this.filterSubscription?.unsubscribe(),this.filterSubscription=this.globalFilter.onChanged(e=>{e.getIdentifier()===D.UPDATED_BY&&this.getSelectedItems()})}updateFilter(e){this.updatedByFilter instanceof ms.LeafFilter&&this.updatedByFilter.setValues(e?.length?e.map(t=>t?.userUri):[...e]),this.trackingService.trackEventById(`${this.currentView}explorerQuickFilter.updatedBy.${this.selectedItems?Ze.SELECTED:Ze.DE_SELECTED}`)}};r.\u0275fac=function(t){return new(t||r)(x(pe),x(hi),x(jt),x(K),x(_t),x(Ae),x(le))},r.\u0275cmp=v({type:r,selectors:[["filter-updated-by-search"]],viewQuery:function(t,i){if(t&1&&Le(_e,5),t&2){let a;we(a=Se())&&(i.ngSelect=a.first)}},inputs:{globalFilter:"globalFilter",currentView:"currentView",cssClasses:"cssClasses",placeholder:"placeholder"},features:[k],decls:5,vars:9,consts:[["elementUpdatedBy",""],["dropdownPosition","bottom",1,"ui2-dropdown",3,"change","ngModelChange","items","closeOnSelect","searchable","hideSelected","multiple","placeholder","ngModel"],["ng-label-tmp",""],["ng-option-tmp",""],["bindLabel","fullName",3,"model"],["bindLabel","fullName","bindValue","userUri",3,"item","model","select"]],template:function(t,i){if(t&1){let a=P();p(0,"ng-select",1,0),C(2,"translate"),_("change",function(m){return u(a),f(i.updateFilter(m))}),re("ngModelChange",function(m){return u(a),ie(i.selectedItems,m)||(i.selectedItems=m),f(m)}),h(3,Ig,1,1,"ng-template",2)(4,kg,1,3,"ng-template",3),d()}t&2&&(l("items",i.contributors)("closeOnSelect",!1)("searchable",!1)("hideSelected",!1)("multiple",!0)("placeholder",M(2,7,i.placeholder)),ne("ngModel",i.selectedItems))},dependencies:[J,te,bt,Pt,_e,ke,Ne,I]});let n=r;return n})();var fs=ue(he());function Rg(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",4),n&2){let o=c();l("model",o.selectedItems)}}function Dg(n,r){if(n&1&&b(0,"ui2-dropdown-option-multi-select",5),n&2){let o=r.item,e=c(),t=j(1);l("item",o)("model",e.selectedItems)("select",t)}}var _s=(()=>{let r=class r{constructor(e,t,i){this.entityConfigService=e,this.trackingService=t,this.store=i,this.destroyRef=Q(ee),this.cssClasses="ui2-dropdown",this.placeholder="explorer-ng.filterModule.selectOption",this.onDestroy=new F}ngOnChanges(e){return Z(this,null,function*(){e.globalFilter?.currentValue&&(this.currentSpaceUri=this.currentSpaceUri||(yield Qe(this.store.select(se.selectCurrentSpaceUri).pipe(oe()))),this.listenToFilterChanges())})}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>{this.currentSpaceUri=e,this.getStatusField().pipe($e(1)).subscribe(t=>{this.getSelectedItems(t)})})}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe(),this.onDestroy.next(),this.onDestroy.complete()}getSelectedItems(e){if(this.statusFilter=this.globalFilter?.getQueries().find(t=>t.getIdentifier()===D.STATUS),this.statusFilter&&e?.length){let t=sn(this.statusFilter);this.selectedItems=t.getValues().map(i=>e.find(a=>a.uri===i)).filter(i=>!!i)}else this.selectedItems=null}getStatusField(){return this.entityStatuses?nt(this.entityStatuses):new Ut(e=>{console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getField(D.STATUS,this.currentSpaceUri).then(t=>{let i=t.propertyValues.find(a=>a.fieldTypePropertyUri.endsWith(Xt.OPTIONS));this.entityStatuses=i?JSON.parse(i.value):[],e.next(this.entityStatuses),e.complete()})})}listenToFilterChanges(){this.filterChangesSubscription?.unsubscribe();let e=()=>{this.getStatusField().pipe($e(1)).subscribe(t=>{this.getSelectedItems(t)})};e(),this.filterChangesSubscription=this.globalFilter.onChanged(t=>{t.getIdentifier()===D.STATUS&&e()})}updateFilter(e){if(this.statusFilter instanceof fs.LeafFilter){this.statusFilter.setValues(e.map(a=>a.uri));let t=this.statusFilter.getValues().length,i=e.length===0?Ze.CLEAR_ALL:t<e.length?Ze.SELECTED:Ze.DE_SELECTED;this.trackingService.trackEventById(`${this.currentView}explorerQuickFilter.status.${i}`)}}};r.\u0275fac=function(t){return new(t||r)(x(He),x(pe),x(le))},r.\u0275cmp=v({type:r,selectors:[["filter-status-search"]],viewQuery:function(t,i){if(t&1&&Le(_e,5),t&2){let a;we(a=Se())&&(i.ngSelect=a.first)}},inputs:{globalFilter:"globalFilter",currentView:"currentView",cssClasses:"cssClasses",placeholder:"placeholder"},features:[k],decls:5,vars:9,consts:[["elementEntityStatuses",""],["dropdownPosition","bottom",1,"ui2-dropdown",3,"change","ngModelChange","items","closeOnSelect","searchable","hideSelected","multiple","placeholder","ngModel"],["ng-label-tmp",""],["ng-option-tmp",""],["bindLabel","label",3,"model"],["bindLabel","label","bindValue","uri",3,"item","model","select"]],template:function(t,i){if(t&1){let a=P();p(0,"ng-select",1,0),C(2,"translate"),_("change",function(m){return u(a),f(i.updateFilter(m))}),re("ngModelChange",function(m){return u(a),ie(i.selectedItems,m)||(i.selectedItems=m),f(m)}),h(3,Rg,1,1,"ng-template",2)(4,Dg,1,3,"ng-template",3),d()}t&2&&(l("items",i.entityStatuses)("closeOnSelect",!1)("searchable",!1)("hideSelected",!1)("multiple",!0)("placeholder",M(2,7,i.placeholder)),ne("ngModel",i.selectedItems))},dependencies:[J,te,bt,Pt,_e,ke,Ne,I]});let n=r;return n})();var Cs=ue(he());var Ri=function(n){return n.TODAY="Today",n.SINCE_YESTERDAY="Since Yesterday",n.LAST_SEVEN_DAYS="Last 7 Days",n.LAST_30_DAYS="Last 30 Days",n.LAST_12_MONTHS="Last 12 Months",n}(Ri||{}),cn=36e5,xs=(()=>{let r=class r{constructor(e){this.trackingService=e,this.ui2DatePickerType=fi,this.placeholder="explorer-ng.filterModule.selectOption"}ngOnChanges(e){e.globalFilter?.currentValue&&this.subscribeToFilterChange()}ngOnInit(){this.initDatePicker()}ngAfterViewInit(){setTimeout(()=>{},0)}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe()}initDatePicker(){this.initDatePickerOptions(),this.getSelectedDateRange()}getSelectedDateRange(){if(this.updatedOnFilter=this.globalFilter.getQueries().find(e=>e.getIdentifier()===D.UPDATED_ON),this.updatedOnFilter){let t=sn(this.updatedOnFilter).getRange();if(t&&t.lt&&t.gt){let i={beginJsDate:new Date(t.gt.value),endJsDate:new Date(t.lt.value)};if(!this.datePickerOptions){this.selectedDateRange=null;return}this.selectedDateRange=this.getSelectedQuickSelectionByDate(i)||i}}else this.selectedDateRange=null}updateFilter(e){if(!e){this.updatedOnFilter.setRange({});return}e.beginJsDate.setHours(0,0,0,0);let t=e.beginJsDate.getTime();e.endJsDate.setHours(23,59,59,999);let i=e.endJsDate.getTime();this.updatedOnFilter instanceof Cs.LeafFilter&&this.updatedOnFilter.setRange({gt:{value:t,includeValue:!0},lt:{value:i,includeValue:!0}}),this.trackingService.trackEventById(`${this.currentView}explorerQuickFilter.updatedOn.${e?Ze.SELECTED:Ze.DE_SELECTED}`)}subscribeToFilterChange(){this.initDatePicker(),this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.globalFilter.onChanged(e=>{e.getIdentifier()===D.UPDATED_ON&&this.initDatePicker()})}datePickerChanged(e){if(!e){this.selectedDateRange=null,this.updateFilter&&this.updateFilter(null);return}if(this.selectedDateRange===e)return;let t=this.getDateModel(e);this.updateFilter(t)}getDateModel(e){let t=e;if(t.beginJsDate&&t.beginJsDate)return t;let i=e;return this.datePickerOptions.find(g=>g.label===i?.label).onSelect()}getSelectedQuickSelectionByDate(e){let t=new Date,i=e.beginJsDate,a=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()))/(cn*24));return this.datePickerOptions.find(m=>m.msFromNow===-a*24*cn)}initDatePickerOptions(){let e=t=>{let i=new Date().getTime();return{beginJsDate:new Date(i+t),endJsDate:new Date}};this.datePickerOptions=[{label:Ri.TODAY,msFromNow:0,onSelect:()=>e(0)},{label:Ri.SINCE_YESTERDAY,msFromNow:-24*cn,onSelect:()=>e(-24*cn)},{label:Ri.LAST_SEVEN_DAYS,msFromNow:-7*24*cn,onSelect:()=>e(-7*24*cn)},{label:Ri.LAST_30_DAYS,msFromNow:-30*24*cn,onSelect:()=>e(-30*24*cn)},{label:Ri.LAST_12_MONTHS,msFromNow:-365*24*cn,onSelect:()=>e(-365*24*cn)}]}};r.\u0275fac=function(t){return new(t||r)(x(pe))},r.\u0275cmp=v({type:r,selectors:[["filter-updated-date-search"]],inputs:{globalFilter:"globalFilter",currentView:"currentView",cssClasses:"cssClasses",placeholder:"placeholder"},features:[k],decls:2,vars:7,consts:[[1,"updated-date",3,"ngModelChange","placeholder","datePickerType","quickOptions","clearable","ngModel"]],template:function(t,i){t&1&&(p(0,"ui2-datepicker",0),C(1,"translate"),_("ngModelChange",function(g){return i.datePickerChanged(g)}),d()),t&2&&l("placeholder",M(1,5,i.placeholder))("datePickerType",i.ui2DatePickerType.QuickOptionsPicker)("quickOptions",i.datePickerOptions)("clearable",!0)("ngModel",i.selectedDateRange)},dependencies:[J,te,_i,I],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%], [_nghost-%COMP%]     ui2-datepicker ui2-datepicker-quick-options .datepicker-trigger .label, .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%], [_nghost-%COMP%]     ui2-datepicker ui2-datepicker-quick-options .datepicker-trigger .label, .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%], 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%], [_nghost-%COMP%]     ui2-datepicker ui2-datepicker-quick-options .datepicker-trigger .label, .label-sm[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], .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}"]});let n=r;return n})();var W2=ue(he());var Os=(()=>{let r=class r{set globalFilter(e){let t=i=>{this.watchFilter=i.getQuery(D.WATCHERS),this.isWatchFilterApplied=this.watchFilter.getValues().length>0};t(e),this.subscription?.unsubscribe(),this.subscription=e.onChanged(i=>{i.getIdentifier()===D.WATCHERS&&t(e)})}constructor(e,t){this.sessionService=e,this.trackingService=t,this.removeFilter=new y,this.currentUserUri=this.sessionService.getUser()?.sub}ngOnDestroy(){this.subscription?.unsubscribe()}onFilterChange(e){let t=e?Ze.SELECTED:Ze.DE_SELECTED;this.trackEvent(t),this.watchFilter.setValues(e?[this.currentUserUri]:[]),this.isWatchFilterApplied=e}trackEvent(e){this.trackingService.trackEventById(`${this.currentView}explorerQuickFilter.watch-Filter.${e}`)}};r.\u0275fac=function(t){return new(t||r)(x(_t),x(pe))},r.\u0275cmp=v({type:r,selectors:[["filter-watch-elements-search"]],inputs:{globalFilter:"globalFilter",currentView:"currentView"},outputs:{removeFilter:"removeFilter"},decls:6,vars:5,consts:[[1,"watched-elements-container","flex","items-center"],[1,"mr-1",3,"ngModelChange","ngModel"],[3,"ngClass"],[1,"icon-close","ml-auto","clickable",3,"click"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"ui2-checkbox",1),re("ngModelChange",function(g){return ie(i.isWatchFilterApplied,g)||(i.isWatchFilterApplied=g),g}),_("ngModelChange",function(g){return i.onFilterChange(g)}),d(),p(2,"div",2),O(3),C(4,"translate"),d(),p(5,"span",3),_("click",function(){return i.removeFilter.emit()}),d()()),t&2&&(s(),ne("ngModel",i.isWatchFilterApplied),s(),l("ngClass",i.isWatchFilterApplied?"label-sm-semibold-single":"label-sm-single"),s(),S(" ",M(4,3,"explorer-ng.filterModule.watchedElementsOnly")," "))},dependencies:[de,J,te,di,I],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}.icon-close[_ngcontent-%COMP%]{display:none;font-size:12px;line-height:1;color:#8a9bab}.icon-close[_ngcontent-%COMP%]:hover{color:#098dcd}.watched-elements-container[_ngcontent-%COMP%]{border-radius:4px;padding:8px;margin-top:8px}.watched-elements-container[_ngcontent-%COMP%]:hover{background-color:#e6f6fe80}.watched-elements-container[_ngcontent-%COMP%]:hover   .icon-close[_ngcontent-%COMP%]{display:block}"]});let n=r;return n})();var je=ue(he());function Ag(n,r){if(n&1&&b(0,"ui2-dropdown-search-bar",7),n&2){c();let o=j(3);l("select",o)}}function Ng(n,r){if(n&1&&b(0,"ui2-dropdown-label-multiple",8),n&2){let o=c();l("model",o.selectedItems)("useOrConjunction",!0)}}function jg(n,r){if(n&1&&b(0,"ui2-dropdown-option-multi-select",9),n&2){let o=r.item,e=c();l("item",o)("model",e.selectedItems)}}var Bg=200,Ps="tags",bs=(()=>{let r=class r{constructor(e,t,i,a){this.tagService=e,this.ecService=t,this.cd=i,this.store=a,this.destroyRef=Q(ee),this.queryOperators=Object.keys(je.IqlQueryOperator),this.tagsInputSubject=new F,this.selectedItems=[],this.presentTags=[],this.MAX_NUMBER_SUGGESTIONS=20,this.filterSubscription=new Mn,this.tagsFieldLabel="Tag"}ngOnChanges(e){e.globalFilter?.currentValue&&this.listenToFilterChanges()}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>{this.currentSpaceUri=e}),this.tagsInputSubject.pipe(L(this.destroyRef)).pipe(Ue(Bg)).subscribe(e=>{this.loaderSuggestions=!0,e&&e.length>0?this.getTags(e):this.getTags()}),this.cd.detectChanges()}ngAfterViewInit(){this.getTags(),this.applyFilter(),this.cd.detectChanges()}ngOnDestroy(){this.filterSubscription?.unsubscribe()}applyFilter(){this.selectedItems=[];let e=this.globalFilter.findQuery((0,je.findById)(D.TAG_SEARCH));if(!e||!(e instanceof je.CompoundFilter))return;let t=g=>{g&&(this.selectedItems=g.getValues().map(m=>({uri:m,label:m})),this.selectedCondition=g.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI)},i=e.findQuery((0,je.findById)(D.TAG_SEARCH)),a=e.findQuery((0,je.findById)(D.TAG_SEARCH_EMPTY));if(i)t(i.getQueries()[0]);else{let g=e.findQuery(m=>m instanceof je.LeafFilter);t(g)}a&&(this.selectedCondition=$.EMPTY_OR_CONDITION_URI)}getTags(e){console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.tagService.getTagSuggestions(this.currentSpaceUri,e||"",this.MAX_NUMBER_SUGGESTIONS).then(t=>{this.options=t.filter(i=>this.presentTags.indexOf(i.tag)===-1).map(i=>({uri:i.tag,label:i.tag})),this.loaderSuggestions=!1})}updateFilter(){return Z(this,null,function*(){if(!this.allTagFields){let m=yield Qe(this.store.select(ai.selectCurrentTenant).pipe(oe()));console.assert(!!m,"currentTenant should not be null"),console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.allTagFields=yield Qe(this.ecService.getFields(m.tenantUri,this.currentSpaceUri))}let e=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,t=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,i=new je.CompoundFilter(t?je.IqlQueryOperator.AND:je.IqlQueryOperator.OR).setIdentifier(D.TAG_SEARCH),a=new je.CompoundFilter(je.IqlQueryOperator.AND).setIdentifier(D.TAG_SEARCH_EMPTY),g=this.selectedItems.map(m=>m.uri);if(this.allTagFields.filter(m=>m.uri===Ps||m.uri.startsWith(Ps+"@")).forEach(m=>{let w=new je.LeafFilter(m.uri).setIdentifier(`${D.TAG_SEARCH}_${m.uri}`).setValues(g).setExclude(t),N=new je.LeafFilter(m.uri).setIdentifier(`${D.TAG_SEARCH_EMPTY}_${m.uri}`).setHasValue(!1);i.addFilter(w,je.compareById),a.addFilter(N,je.compareById)}),e){let m=new je.CompoundFilter(je.IqlQueryOperator.OR).setIdentifier(D.TAG_SEARCH).addFilter(i).addFilter(a);this.globalFilter.addFilter(m,je.compareById)}else this.globalFilter.addFilter(i,je.compareById)})}onConditionChange(e){this.selectedCondition=e.uri,this.updateFilter()}listenToFilterChanges(){this.getTags(),this.applyFilter(),this.filterSubscription.add(this.globalFilter.onChanged(e=>{e.getIdentifier().startsWith(D.TAG_SEARCH)&&(this.getTags(),this.applyFilter())}))}onFilterChange(e){e&&(this.selectedItems=e,this.updateFilter())}};r.\u0275fac=function(t){return new(t||r)(x(Rr),x(Ha),x(fn),x(le))},r.\u0275cmp=v({type:r,selectors:[["filter-tags-search"]],inputs:{globalFilter:"globalFilter"},features:[k],decls:8,vars:11,consts:[["selectMultiple",""],[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],["bindLabel","label",1,"ui2-dropdown","tag-search",3,"ngModelChange","change","typeahead","loading","items","ngModel","multiple","placeholder","closeOnSelect"],["ng-header-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],[3,"select"],["bindLabel","label",3,"model","useOrConjunction"],["bindLabel","label","bindValue","uri",3,"item","model"]],template:function(t,i){if(t&1){let a=P();p(0,"div",1)(1,"filter-condition-selector",2),_("conditionSelected",function(m){return u(a),f(i.onConditionChange(m))}),d()(),p(2,"ng-select",3,0),C(4,"translate"),re("ngModelChange",function(m){return u(a),ie(i.selectedItems,m)||(i.selectedItems=m),f(m)}),_("change",function(){return u(a),f(i.onFilterChange(i.selectedItems))}),h(5,Ag,1,1,"ng-template",4)(6,Ng,1,2,"ng-template",5)(7,jg,1,2,"ng-template",6),d()}t&2&&(s(),l("field",i.tagsFieldLabel)("selectedCondition",i.selectedCondition),s(),l("typeahead",i.tagsInputSubject)("loading",i.loaderSuggestions)("items",i.options),ne("ngModel",i.selectedItems),l("multiple",!0)("placeholder",M(4,9,"explorer-ng.renderers.tag.placeholder"))("closeOnSelect",!1))},dependencies:[J,te,Mt,bt,Pt,_e,ke,Ne,lt,st,I],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}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}"]});let n=r;return n})();var Fe=ue(he());var Lr=ue(he());function Gg(n,r){if(n&1&&b(0,"ui2-dropdown-search-bar",9),n&2){c();let o=j(4);l("select",o)}}function qg(n,r){n&1&&(p(0,"span",10),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"explorer-ng.filterModule.relationsFilter.placeholder")," "))}function Hg(n,r){if(n&1&&b(0,"ui2-label",13),n&2){let o=c().item,e=c();l("text",e.entityTypesMap[o.elementTypeUri].acronym)("labelType","solid")("bgColor",e.entityTypesMap[o.elementTypeUri].color)}}function Wg(n,r){if(n&1&&(h(0,Hg,1,3,"ui2-label",11),p(1,"span",12),O(2),d()),n&2){let o=r.item,e=c();l("ngIf",e.entityTypesMap&&e.entityTypesMap[o.elementTypeUri]),s(2),S(" ",o.label," ")}}function Qg(n,r){if(n&1&&(b(0,"ui2-label",13),p(1,"span",16),O(2),d()),n&2){let o=c(2).$implicit,e=c();l("text",e.entityTypesMap[o.elementTypeUri].acronym)("labelType","solid")("bgColor",e.entityTypesMap[o.elementTypeUri].color),s(2),R(o.label)}}function $g(n,r){if(n&1){let o=P();p(0,"ui2-tag",15),_("onClosed",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveRelation(t))})("onClicked",function(){u(o);let t=c().$implicit,i=c();return f(i.onSelectRelation(t))}),h(1,Qg,3,4,"ng-template",null,1,V),d()}n&2&&l("isClickable",!0)("isRemovable",!0)}function Yg(n,r){if(n&1&&(p(0,"div"),h(1,$g,3,2,"ui2-tag",14),d()),n&2){let o=r.$implicit,e=c();s(),l("ngIf",e.entityTypesMap&&e.entityTypesMap[o.elementTypeUri])}}var Xg=3,ys=20,Jg="elements-search",Kg="selected-elements",Zg="elements-text-query",vs=(()=>{let r=class r{set globalFilter(e){this.globalFilterValue=e,this.updateComponentSelectionFromFilter(),this.listenToFilterChanges()}get globalFilter(){return this.globalFilterValue}set entityTypes(e){this.entityTypesMap=e?.reduce((t,i)=>(t[i.uri]=Pe(ce({},i),{acronym:i.name.slice(0,Xg)}),t),{})}constructor(e,t,i,a){this.filterQueryService=e,this.entityConfigService=t,this.stackedViewsService=i,this.sidebarService=a,this.destroyRef=Q(ee),this.endReached=!1,this.elementsInputSubject=new F,this.selectedElements=[]}ngOnInit(){this.elementsInputSubject.pipe(L(this.destroyRef),Ue(200)).subscribe(e=>{this.dropdownSearch=e,this.loadElements(!1)})}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe()}updateComponentSelectionFromFilter(){let e=this.globalFilter.findQuery((0,Lr.findById)(D.RELATIONS));if(!e||!(e instanceof Fe.CompoundFilter)){this.selectedElements=[];return}let t=e.getQueries()[0];if(!t){this.selectedElements=[];return}let i;if(t instanceof Fe.CompoundFilter?i=t.findQuery(G=>G.getValues().length>0):t instanceof Fe.LeafFilter&&(i=t),this.selectedCondition=i.getExclude()?$.EXCLUDE_CONDITION_URI:$.DEFAULT_CONDITION_URI,!i){this.selectedElements=[];return}let a=new Fe.LeafFilter(pt.URI).setIdentifier(Kg).setValues(i.getValues()),g=new Fe.CompoundFilter(Fe.IqlQueryOperator.OR).addFilter(a),m=this.selectedElements.some(G=>!i.getValues().includes(G.uri));(i.getValues().some(G=>!this.selectedElements.find(Me=>Me.uri===G))||m)&&this.fetchElementPreviews(g).pipe($e(1)).subscribe(G=>this.selectedElements=G),e.findQuery((0,Lr.findById)(D.RELATIONS_EMPTY))&&(this.selectedCondition=$.EMPTY_OR_CONDITION_URI)}listenToFilterChanges(){this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.globalFilter.onChanged(e=>{e.findQuery((0,Lr.findById)(D.RELATIONS))&&this.updateComponentSelectionFromFilter()})}updateFilter(e){return Z(this,null,function*(){if(e instanceof Event)return;let t=this.selectedCondition===$.EMPTY_OR_CONDITION_URI,i=this.selectedCondition===$.EXCLUDE_CONDITION_URI||!1,a=this.selectedElements.map(w=>w.uri),g=new Fe.CompoundFilter(i?Fe.IqlQueryOperator.AND:Fe.IqlQueryOperator.OR).setIdentifier(D.RELATIONS),m=new Fe.CompoundFilter(Fe.IqlQueryOperator.AND).setIdentifier(D.RELATIONS_EMPTY);if((yield this.entityConfigService.getAllRelationTypes()).forEach(w=>{let N=new Fe.LeafFilter(w.uri).setIdentifier(`${D.RELATIONS}_${w.uri}`).setValues(a).setExclude(i),G=new Fe.LeafFilter(w.uri).setIdentifier(`${D.RELATIONS_EMPTY}_${w.uri}`).setHasValue(!1);g.addFilter(N,Fe.compareById),m.addFilter(G,Fe.compareById)}),t){let w=new Fe.CompoundFilter(Fe.IqlQueryOperator.OR).setIdentifier(D.RELATIONS).addFilter(g).addFilter(m);this.globalFilter.addFilter(w,Fe.compareById)}else this.globalFilter.addFilter(g,Fe.compareById)})}onConditionChange(e){this.selectedCondition=e.uri,this.updateFilter()}onScrollToEnd(){this.endReached||this.loadElements(!0)}loadElements(e=!1){this.loading=!0,this.fetchElementPreviews(this.prepareFilterToLoadPreviews(),e).subscribe(t=>{e?this.elements=this.elements.concat(t):this.elements=t,this.loading=!1,this.endReached=t.length<ys})}fetchElementPreviews(e,t){return t?Kt(this.filterQueryService.fetchMoreFiltered(e)).pipe(et(()=>nt([]))):this.filterQueryService.getFilteredEntities(e,ys,null,"network-only").pipe($e(1),et(()=>nt([])))}prepareFilterToLoadPreviews(){let e=new Fe.CompoundFilter(Fe.IqlQueryOperator.AND).setIdentifier(Jg);return this.dropdownSearch&&e.addFilter(new Fe.LeafFilter(pt.LABEL).setIdentifier(Zg).setSearch(this.dropdownSearch)),this.selectedElements.length?e.addFilter(new Fe.LeafFilter(pt.URI).setIdentifier(pt.URI).setValues(this.selectedElements.map(t=>t.uri)).setExclude(!0)):e.getQueries().length===0?e.addFilter(new Fe.LeafFilter(pt.CREATED_ON).setRange({gt:{value:0}})):e}onRemoveRelation(e){this.selectedElements=this.selectedElements.filter(t=>t.uri!==e.uri),this.updateFilter()}onSelectRelation(e){this.sidebarService.openSidebar(!1),this.stackedViewsService.openStack([{uri:e.uri,type:Gi.ENTITY}])}onClosedDropdown(){this.elements=[],this.endReached=!1,this.dropdownSearch=""}onOpenedDropdown(){this.loadElements(!1)}};r.\u0275fac=function(t){return new(t||r)(x(bi),x(He),x(In),x(ki))},r.\u0275cmp=v({type:r,selectors:[["filter-relations-search"]],inputs:{globalFilter:"globalFilter",entityTypes:"entityTypes"},decls:13,vars:25,consts:[["elementsSelector",""],["tagContent",""],[1,"filter-condition"],[3,"conditionSelected","field","selectedCondition"],[1,"ui2-dropdown",3,"ngModelChange","change","scrollToEnd","close","open","virtualScroll","loading","items","loadingText","typeToSearchText","notFoundText","multiple","typeahead","ngModel","placeholder","clearable","closeOnSelect"],["ng-header-tmp",""],["ng-label-tmp",""],["ng-option-tmp",""],[4,"ngFor","ngForOf"],[3,"select"],[1,"placeholder"],[3,"text","labelType","bgColor",4,"ngIf"],[1,"tag-label","ml-2"],[3,"text","labelType","bgColor"],[3,"isClickable","isRemovable","onClosed","onClicked",4,"ngIf"],[3,"onClosed","onClicked","isClickable","isRemovable"],[1,"tag-label"]],template:function(t,i){if(t&1){let a=P();p(0,"div",2)(1,"filter-condition-selector",3),C(2,"translate"),_("conditionSelected",function(m){return u(a),f(i.onConditionChange(m))}),d()(),p(3,"ng-select",4,0),C(5,"translate"),C(6,"translate"),C(7,"translate"),C(8,"translate"),re("ngModelChange",function(m){return u(a),ie(i.selectedElements,m)||(i.selectedElements=m),f(m)}),_("change",function(m){return u(a),f(i.updateFilter(m))})("scrollToEnd",function(){return u(a),f(i.onScrollToEnd())})("close",function(){return u(a),f(i.onClosedDropdown())})("open",function(){return u(a),f(i.onOpenedDropdown())}),h(9,Gg,1,1,"ng-template",5)(10,qg,3,3,"ng-template",6)(11,Wg,3,2,"ng-template",7),d(),h(12,Yg,2,1,"div",8)}t&2&&(s(),l("field",M(2,15,"explorer-ng.filterModule.relationsFilter.fieldLabel"))("selectedCondition",i.selectedCondition),s(2),l("virtualScroll",!0)("loading",i.loading)("items",i.elements)("loadingText",M(5,17,"explorer-ng.filterModule.relationsFilter.loadingText"))("typeToSearchText",M(6,19,"explorer-ng.filterModule.relationsFilter.typeToSearchText"))("notFoundText",M(7,21,"explorer-ng.filterModule.relationsFilter.notFoundText"))("multiple",!0)("typeahead",i.elementsInputSubject),ne("ngModel",i.selectedElements),l("placeholder",M(8,23,"explorer-ng.filterModule.relationsFilter.placeholder"))("clearable",!1)("closeOnSelect",!1),s(9),l("ngForOf",i.selectedElements))},dependencies:[Oe,A,J,te,Mt,kn,pi,_e,ke,Ne,lt,st,I],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}.filter-condition[_ngcontent-%COMP%]{width:fit-content;position:relative;top:-12px}[_nghost-%COMP%]     ui2-tag .tag .label{background-color:#fff}[_nghost-%COMP%]     ui2-tag .tag-label{max-width:245px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"]});let n=r;return n})();var ws=ue(he());var Di=function(n){return n.TODAY="Today",n.SINCE_YESTERDAY="Since Yesterday",n.LAST_SEVEN_DAYS="Last 7 Days",n.LAST_30_DAYS="Last 30 Days",n.LAST_12_MONTHS="Last 12 Months",n}(Di||{}),pn=36e5,Ss=(()=>{let r=class r{constructor(e){this.trackingService=e,this.ui2DatePickerType=fi,this.placeholder="explorer-ng.filterModule.selectOption"}ngOnChanges(e){e.globalFilter?.currentValue&&this.subscribeToFilterChange()}ngOnInit(){this.initDatePicker()}ngAfterViewInit(){setTimeout(()=>{},0)}ngOnDestroy(){this.filterChangesSubscription?.unsubscribe()}initDatePicker(){this.initDatePickerOptions(),this.getSelectedDateRange()}getSelectedDateRange(){if(this.createdOnFilter=this.globalFilter.getQueries().find(e=>e.getIdentifier()===D.CREATED_ON),this.createdOnFilter){let t=sn(this.createdOnFilter).getRange();if(t&&t.gt&&t.lt){let i={beginJsDate:new Date(t.gt.value),endJsDate:new Date(t.lt.value)};if(!this.datePickerOptions){this.selectedDateRange=null;return}this.selectedDateRange=this.getSelectedQuickSelectionByDate(i)||i}}else this.selectedDateRange=null}updateFilter(e){if(!e){this.createdOnFilter.setRange({});return}e.beginJsDate.setHours(0,0,0,0);let t=e.beginJsDate.getTime();e.endJsDate.setHours(23,59,59,999);let i=e.endJsDate.getTime();this.createdOnFilter instanceof ws.LeafFilter&&this.createdOnFilter.setRange({gt:{value:t,includeValue:!0},lt:{value:i,includeValue:!0}}),this.trackingService.trackEventById(`${this.currentView}explorerQuickFilter.createdOn.${e?Ze.SELECTED:Ze.DE_SELECTED}`)}subscribeToFilterChange(){this.initDatePicker(),this.filterChangesSubscription?.unsubscribe(),this.filterChangesSubscription=this.globalFilter.onChanged(e=>{e.getIdentifier()===D.CREATED_ON&&this.initDatePicker()})}datePickerChanged(e){if(!e){this.selectedDateRange=null,this.updateFilter&&this.updateFilter(null);return}if(this.selectedDateRange===e)return;let t=this.getDateModel(e);this.updateFilter(t)}getDateModel(e){let t=e;if(t.beginJsDate&&t.beginJsDate)return t;let i=e;return this.datePickerOptions.find(g=>g.label===i?.label).onSelect()}getSelectedQuickSelectionByDate(e){let t=new Date,i=e.beginJsDate,a=Math.floor((Date.UTC(t.getFullYear(),t.getMonth(),t.getDate())-Date.UTC(i.getFullYear(),i.getMonth(),i.getDate()))/(pn*24));return this.datePickerOptions.find(m=>m.msFromNow===-a*24*pn)}initDatePickerOptions(){let e=t=>{let i=new Date().getTime();return{beginJsDate:new Date(i+t),endJsDate:new Date}};this.datePickerOptions=[{label:Di.TODAY,msFromNow:0,onSelect:()=>e(0)},{label:Di.SINCE_YESTERDAY,msFromNow:-24*pn,onSelect:()=>e(-24*pn)},{label:Di.LAST_SEVEN_DAYS,msFromNow:-7*24*pn,onSelect:()=>e(-7*24*pn)},{label:Di.LAST_30_DAYS,msFromNow:-30*24*pn,onSelect:()=>e(-30*24*pn)},{label:Di.LAST_12_MONTHS,msFromNow:-365*24*pn,onSelect:()=>e(-365*24*pn)}]}};r.\u0275fac=function(t){return new(t||r)(x(pe))},r.\u0275cmp=v({type:r,selectors:[["filter-created-date-search"]],inputs:{globalFilter:"globalFilter",currentView:"currentView",cssClasses:"cssClasses",placeholder:"placeholder"},features:[k],decls:2,vars:7,consts:[[3,"ngModelChange","placeholder","datePickerType","quickOptions","ngModel","clearable"]],template:function(t,i){t&1&&(p(0,"ui2-datepicker",0),C(1,"translate"),_("ngModelChange",function(g){return i.datePickerChanged(g)}),d()),t&2&&l("placeholder",M(1,5,i.placeholder))("datePickerType",i.ui2DatePickerType.QuickOptionsPicker)("quickOptions",i.datePickerOptions)("ngModel",i.selectedDateRange)("clearable",!0)},dependencies:[J,te,_i,I],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%], [_nghost-%COMP%]     ui2-datepicker ui2-datepicker-quick-options .datepicker-trigger .label, .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%], [_nghost-%COMP%]     ui2-datepicker ui2-datepicker-quick-options .datepicker-trigger .label, .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%], 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%], [_nghost-%COMP%]     ui2-datepicker ui2-datepicker-quick-options .datepicker-trigger .label, .label-sm[_ngcontent-%COMP%], .label-xs-semibold[_ngcontent-%COMP%], .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}"]});let n=r;return n})();var im=(n,r)=>({"collapsed-chevron":n,"expanded-chevron":r});function rm(n,r){if(n&1){let o=P();p(0,"span",9),C(1,"translate"),_("click",function(t){u(o);let i=c();return f((i.globalFiltersInDropdown==null?null:i.globalFiltersInDropdown.length)===0?t.stopPropagation():null)}),b(2,"span",10),p(3,"span",11),O(4),C(5,"translate"),d()()}if(n&2){let o,e=c();l("ui2Tooltip",e.globalFiltersInDropdown.length===0?M(1,7,"explorer-ng.filterModule.toolTips.allGlobalFiltersAdded"):null),s(2),z("add-disabled",e.globalFiltersInDropdown.length===0),s(),z("title-active",e.isGlobalSelectMenuOpen),s(),ei(" ",M(5,9,"explorer-ng.filterModule.globalFilters")," (",(o=e.globalFilterQueryConditions==null?null:e.globalFilterQueryConditions.length)!==null&&o!==void 0?o:0,") ")}}function om(n,r){if(n&1&&O(0),n&2){let o=r.$implicit;S(" ",o.label," ")}}function am(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",17),C(1,"translate"),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(2,"filter-status-search",18),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0)("label",M(1,4,"explorer-ng.filterModule.statusFilter")),s(2),l("globalFilter",o.globalFilterQuery)("currentView",o.currentView)}}function lm(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",17),C(1,"translate"),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(2,"filter-created-by-search",18),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0)("label",M(1,4,"explorer-ng.filterModule.createdBy")),s(2),l("globalFilter",o.globalFilterQuery)("currentView",o.currentView)}}function sm(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",17),C(1,"translate"),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(2,"filter-updated-by-search",18),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0)("label",M(1,4,"explorer-ng.filterModule.updatedBy")),s(2),l("globalFilter",o.globalFilterQuery)("currentView",o.currentView)}}function cm(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",17),C(1,"translate"),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(2,"filter-updated-date-search",18),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0)("label",M(1,4,"explorer-ng.filterModule.updatedDate")),s(2),l("globalFilter",o.globalFilterQuery)("currentView",o.currentView)}}function pm(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",19),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(1,"filter-tags-search",20),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0),s(),l("globalFilter",o.globalFilterQuery)}}function dm(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",21),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(1,"filter-relations-search",22),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0),s(),l("globalFilter",o.globalFilterQuery)("entityTypes",o.allElementTypes)}}function gm(n,r){if(n&1){let o=P();p(0,"innovation-os-ng-filter-box",17),C(1,"translate"),_("removeFilter",function(){u(o);let t=c().$implicit,i=c();return f(i.onRemoveFilter(t))}),b(2,"filter-created-date-search",18),d()}if(n&2){let o=c(2);l("@itemAnimation",void 0)("label",M(1,4,"explorer-ng.filterModule.createdDate")),s(2),l("globalFilter",o.globalFilterQuery)("currentView",o.currentView)}}function mm(n,r){if(n&1){let o=P();Y(0),p(1,"div",24)(2,"filter-watch-elements-search",25),_("removeFilter",function(){u(o);let t=c(2).$implicit,i=c();return f(i.onRemoveFilter(t))}),d()(),X()}if(n&2){let o=c(3);s(),l("@itemAnimation",void 0),s(),l("globalFilter",o.globalFilterQuery)("currentView",o.currentView)}}function um(n,r){n&1&&(Y(0),h(1,mm,3,3,"ng-container",23),X()),n&2&&(s(),l("ngSwitchCase","watchers"))}function fm(n,r){if(n&1&&(Y(0,12),h(1,am,3,6,"innovation-os-ng-filter-box",13)(2,lm,3,6,"innovation-os-ng-filter-box",13)(3,sm,3,6,"innovation-os-ng-filter-box",13)(4,cm,3,6,"innovation-os-ng-filter-box",13)(5,pm,2,2,"innovation-os-ng-filter-box",14)(6,dm,2,3,"innovation-os-ng-filter-box",15)(7,gm,3,6,"innovation-os-ng-filter-box",13)(8,um,2,1,"ng-container",16),C(9,"async"),X()),n&2){let o=r.$implicit,e=c();l("ngSwitch",o.id),s(),l("ngSwitchCase","status"),s(),l("ngSwitchCase","createdByUri"),s(),l("ngSwitchCase","updatedByUri"),s(),l("ngSwitchCase","updatedOn"),s(),l("ngSwitchCase","tagSearch"),s(),l("ngSwitchCase","relations"),s(),l("ngSwitchCase","createdOn"),s(),l("ngIf",M(9,9,e.isWatchFeatureEnabled$))}}var Es=(()=>{let r=class r{set globalFilter(e){this.globalFilterQuery=e,this.globalFilterQueryConditions=e.getQueries(),this.setGlobalFilters(),this.watchFilterChanges?.unsubscribe(),this.watchFilterChanges=this.globalFilterQuery.onChanged(()=>{this.globalFilterQueryConditions=e.getQueries(),this.setGlobalFilters()})}get globalFilter(){return this.globalFilterQuery}constructor(e,t,i,a,g,m,w,N,G,Me,at,Qi){this.sessionService=e,this.translate=t,this.logger=i,this.trackingService=a,this.explorerLandingService=g,this.featureFlagService=m,this.clipboard=w,this.router=N,this.watchElementsService=G,this.entityImportService=Me,this.bulkActionsService=at,this.stackViewService=Qi,this.destroyRef=Q(ee),this.isWatchFeatureEnabled$=this.watchElementsService.onWatchFeatureToggle,this.globalFiltersExpanded=new ft(!0),this.globalFiltersInDropdown=[]}ngOnDestroy(){this.watchFilterChanges?.unsubscribe()}filterId(e,t){return t.getIdentifier()}expandFilter(){this.globalFilterQuery?.getQueries().length>0?this.globalFiltersExpanded.next(!this.globalFiltersExpanded.getValue()):this.globalFiltersExpanded.next(!1)}onAddFilter(e){this.globalFilterQuery.addFilter(new Vi.LeafFilter(e.filterId).setIdentifier(e.filterId),Vi.compareById),this.setGlobalFilters()}onRemoveFilter(e){e&&(this.globalFilterQuery.removeFilters((0,Vi.findById)(e.getIdentifier())),this.setGlobalFilters())}setGlobalFilters(){this.globalFilterQueryConditions=this.globalFilterQuery?.getQueries()??[],this.globalFiltersInDropdown=cs.map(e=>({filterId:e,label:this.translate.instant(`${ps.find(t=>t.includes(e))}`)})),this.globalFiltersInDropdown=this.globalFiltersInDropdown.filter(e=>!this.globalFilterQueryConditions.some(t=>t.getIdentifier()===e.filterId)),this.isWatchFeatureEnabled$.pipe(L(this.destroyRef)).subscribe(e=>{e||(this.globalFiltersInDropdown=this.globalFiltersInDropdown.filter(t=>t.filterId!==ss))}),this.globalFilterQueryConditions?.length?this.globalFiltersExpanded.next(!0):this.globalFiltersExpanded.next(!1)}handleFilterSelectMenuOpen(e){this.isGlobalSelectMenuOpen=e}};r.\u0275fac=function(t){return new(t||r)(x(_t),x(K),x(Ae),x(pe),x(Ir),x(Nt),x(ar),x(ii),x(Fr),x(Fi),x(Ci),x(In))},r.\u0275cmp=v({type:r,selectors:[["filter-panel-global-filters"]],inputs:{rootFilter:"rootFilter",globalFilter:"globalFilter",allElementTypes:"allElementTypes"},decls:15,vars:20,consts:[["dropdownButton",""],["dropdownList",""],[1,"global-filter-container"],[1,"flex","items-center","clickable","panel-wrapper"],["eventType","click","dropPosition","bottom",1,"dropdown-trigger","mr-1",3,"select","open","data"],[1,"select-area",3,"click"],[1,"icon2-x16-chevron-l","panel-chevron","ml-auto",3,"click","ngClass"],[1,"global-filters"],[3,"ngSwitch",4,"ngFor","ngForOf","ngForTrackBy"],[3,"click","ui2Tooltip"],[1,"icon-plus","color-primary"],[1,"label-sm-semibold-single","panel-title","ml-1"],[3,"ngSwitch"],["class","filter-box",3,"label","removeFilter",4,"ngSwitchCase"],["class","filter-box",3,"removeFilter",4,"ngSwitchCase"],["class","relations-filter",3,"removeFilter",4,"ngSwitchCase"],[4,"ngIf"],[1,"filter-box",3,"removeFilter","label"],[3,"globalFilter","currentView"],[1,"filter-box",3,"removeFilter"],[3,"globalFilter"],[1,"relations-filter",3,"removeFilter"],[3,"globalFilter","entityTypes"],[4,"ngSwitchCase"],[1,"watch-elements-filter"],[1,"filter-box",3,"removeFilter","globalFilter","currentView"]],template:function(t,i){if(t&1){let a=P();p(0,"div",2),C(1,"async"),p(2,"div",3)(3,"ui-dropdown-list",4),_("select",function(m){return u(a),f(i.onAddFilter(m))})("open",function(m){return u(a),f(i.handleFilterSelectMenuOpen(m))}),h(4,rm,6,11,"ng-template",null,0,V)(6,om,1,1,"ng-template",null,1,V),d(),p(8,"div",5),_("click",function(){return u(a),f(i.expandFilter())}),d(),p(9,"div",6),C(10,"async"),C(11,"async"),_("click",function(){return u(a),f(i.expandFilter())}),d()(),p(12,"div",7),C(13,"async"),h(14,fm,10,11,"ng-container",8),d()()}t&2&&(z("pb-4",M(1,9,i.globalFiltersExpanded)),s(3),l("data",i.globalFiltersInDropdown),s(6),z("disable-chevron",!(i.globalFilterQueryConditions!=null&&i.globalFilterQueryConditions.length)),l("ngClass",Te(17,im,M(10,11,i.globalFiltersExpanded)===!1,M(11,13,i.globalFiltersExpanded))),s(3),l("@collapsePanel",M(13,15,i.globalFiltersExpanded)?"expanded":"collapsed"),s(2),l("ngForOf",i.globalFilterQueryConditions)("ngForTrackBy",i.filterId))},dependencies:[de,Oe,A,en,Qt,De,zt,gs,us,_s,xs,Os,bs,vs,Ss,Vr,vn,I],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%]     .datepicker-trigger{background-color:#fff}[_nghost-%COMP%]     .datepicker-trigger .icon-date-picker{display:none}[_nghost-%COMP%]     .datepicker-trigger .label{margin-left:0}[_nghost-%COMP%]     .itonics-popper.ngxp__container{margin-left:16px!important}[_nghost-%COMP%]     .itonics-popper.ngxp__container .dropdown-menu-list{width:358px}[_nghost-%COMP%]     .itonics-popper.ngxp__container .menu-item-wrap{height:fit-content;max-height:unset}[_nghost-%COMP%]     .ui2-dropdown.ng-select-multiple .ng-select-container, [_nghost-%COMP%]     .ui2-dropdown.ng-select-single .ng-select-container{background-color:#fff!important}[_nghost-%COMP%]     filter-condition-selector .ui2-dropdown.inline-dropdown{height:22px}[_nghost-%COMP%]     filter-condition-selector .ui2-dropdown.ng-select-multiple .ng-select-container, [_nghost-%COMP%]     filter-condition-selector .ui2-dropdown.ng-select-single .ng-select-container{background-color:transparent!important;padding:0!important}.icon-plus[_ngcontent-%COMP%]{font-size:16px;line-height:1}.panel-chevron[_ngcontent-%COMP%]{line-height:16px;font-size:16px;flex-basis:0;color:#627588}.panel-wrapper[_ngcontent-%COMP%]:hover   .panel-chevron[_ngcontent-%COMP%]:not(.disable-chevron){color:#098dcd}.panel-wrapper[_ngcontent-%COMP%]{height:50px}.expanded-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(180deg)}.collapsed-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(360deg)}.add-disabled[_ngcontent-%COMP%]{color:#bdc8d4;cursor:not-allowed}.panel-title[_ngcontent-%COMP%]{width:120px;margin-top:2px}.panel-title[_ngcontent-%COMP%]:hover, .title-active[_ngcontent-%COMP%]{color:#098dcd}.disable-chevron[_ngcontent-%COMP%]{color:#bdc8d4}.select-area[_ngcontent-%COMP%]{flex-grow:1;height:100%}.dropdown-trigger[_ngcontent-%COMP%]:hover   .title-active[_ngcontent-%COMP%]{color:#098dcd}"],data:{animation:[yi("100ms"),vi("100ms")]}});let n=r;return n})();var ME=ue(he());var Yn=ue(he());var Ui=(()=>{let r=class r{constructor(){this.relevanceEnabled=new F,this.onRelevanceEnabledChanged=this.relevanceEnabled.asObservable(),this.triggerSaveState=new F,this.selectTypes=new F}allowRelevanceSort(e,t){this.relevanceEnabled.next({enabled:e,quiet:t})}saveState(e){this.triggerSaveState.next(e)}onTriggerSaveState(){return this.triggerSaveState.asObservable()}savePresetState(e){this.triggerSaveState.next({params:{savedFilter:e}})}triggerSelectTypes(e){this.selectTypes.next(e)}onTriggerSelectTypes(){return this.selectTypes.asObservable()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var Is=(()=>{let r=class r{constructor(e,t,i){this.filterService=e,this.trackingService=t,this.filterEventDispatcher=i,this.destroyRef=Q(ee),this.placeholder="",this.trackingId="explorerTopBar.search",this.parsedSearch="",this.searchTyped=new F,this.onFocus=!1}ngOnChanges(e){e.globalFilter?.currentValue&&(this.onFocus=!1,this.listenToQuickFilterChanges(),this.updateParsedSearch())}ngOnInit(){this.setupSearchTypedListener()}ngOnDestroy(){this.quickFilterChangesSubscription?.unsubscribe()}updateParsedSearch(){if(this.onFocus){this.onFocus=!1;return}let t=this.globalFilter.getQueries()?.find(a=>a instanceof Yn.CompoundFilter?a.getIdentifier()===D.TEXT_SEARCH:a.getOn()==="stringFilter"),i=t instanceof Yn.CompoundFilter?t.getQueries():[t];if(!i.length||!i[0]){this.parsedSearch=null;return}this.parsedSearch&&i[0].getSearch()===this.parsedSearch||(this.parsedSearch=i[0].getSearch()||null,this.filterEntitiesByText(this.parsedSearch,!0))}listenToQuickFilterChanges(){this.quickFilterChangesSubscription?.unsubscribe(),this.quickFilterChangesSubscription=this.globalFilter.onChanged(()=>{this.updateParsedSearch()})}filterEntitiesByText(e,t=!1){e=e||"",this.onFocus=!0,this.searchTyped.next({val:e,quiet:t})}setupSearchTypedListener(){this.searchTyped.pipe(Ue(500),L(this.destroyRef)).subscribe(e=>{let t=this.types&&this.types.length?this.types:this.allElememtTypes.map(i=>i.uri);this.filterService.getQuickSearchQuery(e.val,t).then(i=>{this.filterEventDispatcher.allowRelevanceSort(e.val.length>0,e.quiet),e.val?this.globalFilter.addFilter(i,Yn.compareById):this.globalFilter.removeFilters((0,Yn.findById)(i.getIdentifier())),this.trackingService.trackEventById(this.trackingId,{dimension8:e.val?"":"Cleared Search"})})})}};r.\u0275fac=function(t){return new(t||r)(x(bi),x(pe),x(Ui))},r.\u0275cmp=v({type:r,selectors:[["filter-quick-search"]],inputs:{globalFilter:"globalFilter",placeholder:"placeholder",allElememtTypes:"allElememtTypes"},features:[k],decls:1,vars:2,consts:[["name","search",3,"ngModelChange","placeholder","ngModel"]],template:function(t,i){t&1&&(p(0,"ui2-search-input",0),re("ngModelChange",function(g){return ie(i.parsedSearch,g)||(i.parsedSearch=g),g}),_("ngModelChange",function(){return i.filterEntitiesByText(i.parsedSearch)}),d()),t&2&&(l("placeholder",i.placeholder),ne("ngModel",i.parsedSearch))},dependencies:[J,te,br],styles:["ui2-search-input[_ngcontent-%COMP%]    {display:block;width:100%}ui2-search-input[_ngcontent-%COMP%]     .table-input-wrapper{max-width:100%;margin-bottom:0}"]});let n=r;return n})();var xn=ue(he());var Cm=["barContainer"];function xm(n,r){if(n&1&&(p(0,"div",8),O(1),d()),n&2){let o=c().$implicit;s(),S("(",o.nestedFilterCount,")")}}function Mm(n,r){if(n&1){let o=P();Y(0),p(1,"div",4),_("click",function(){let t=u(o).$implicit;return f(t.clickFn())}),p(2,"div",5),O(3),d(),h(4,xm,2,1,"div",6),p(5,"span",7),_("click",function(){let t=u(o).$implicit;return f(t.removeFn())}),d()(),X()}if(n&2){let o=r.$implicit;s(2),l("ui2Tooltip",o.tooltipText||o.displayText),s(),S(" ",o.displayText," "),s(),l("ngIf",o.nestedFilterCount>0)}}function Om(n,r){if(n&1){let o=P();p(0,"div",4),_("click",function(){u(o);let t=c();return f(t.openFilters())}),p(1,"span",9),O(2),d()()}if(n&2){let o=c();s(2),S(" + ",o.allFilterItems.length-o.visibleCount,"")}}var Pm=0,Oo=100,bm=20,ks=(()=>{let r=class r{set rootFilter(e){e&&(this.rootFilterQuery=e,this.loading=!0,this.getEntityFieldsDetails().then(()=>{this.updateItemsMap(),this.loading=!1}))}get loading(){return this.loading$.getValue()}set loading(e){this.loading$.next(e)}constructor(e,t,i,a,g,m,w){this.entityConfigService=e,this.sessionService=t,this.userLookupService=i,this.translate=a,this.changeDetector=g,this.titleCasePipe=m,this.store=w,this.destroyRef=Q(ee),this.focusElementTypeUri=new y,this.openFilterPanel=new y,this.loading$=new ft(!0),this.visibleCount=Pm,this.CommonFilters=D,this.mode=ci.BOTTOM,this.visibleItems=[],this.datePickerOptions=[],this.allFilterItems=[],this.PREVIEW_CHARACTER_LIMIT=bm,this.fieldTypesDetails={},this.onDestroy=new F}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(e=>{this.currentSpaceUri=e})}ngOnDestroy(){this.onDestroy.next(),this.onDestroy.complete()}ngAfterViewInit(){this.resizeObservable(this.barContainer.nativeElement.parentElement).pipe(Ue(500)).subscribe(()=>{this.updateVisibleItems()})}resizeObservable(e){return new Ut(t=>{let i=new ResizeObserver(a=>{t.next(a)});return i.observe(e),()=>{t.complete(),i.unobserve(e)}})}updateVisibleItems(){let e=this.barContainer.nativeElement.parentElement;if(e&&this.barContainer?.nativeElement?.offsetWidth&&e?.offsetWidth&&this.allFilterItems?.length)if(e.offsetWidth-Oo<this.barContainer.nativeElement.offsetWidth)for(;this.visibleCount>0&&this.visibleItems.length>0&&e.offsetWidth-Oo<this.barContainer.nativeElement.offsetWidth;)this.visibleItems=this.allFilterItems.slice(0,--this.visibleCount),this.changeDetector.detectChanges(),On(100);else for(;this.visibleCount<this.allFilterItems.length&&this.visibleItems.length<this.allFilterItems.length&&e.offsetWidth-Oo>this.barContainer.nativeElement.offsetWidth;)this.visibleItems=this.allFilterItems.slice(0,++this.visibleCount),this.changeDetector.detectChanges(),On(100)}selectEntityTypeUri(e){this.focusElementTypeUri.emit(e)}openFilters(){this.openFilterPanel.emit()}updateItemsMap(){this.filterMainSub&&this.filterMainSub.unsubscribe(),this.handleFilterQueryChange(),this.filterMainSub=this.rootFilterQuery.onChanged(()=>{this.handleFilterQueryChange()})}handleFilterQueryChange(){this.allFilterItems=[],this.rootFilterQuery.getQueries().forEach(e=>{switch(e.getIdentifier()){case D.QUICK:{this.handleGlobalFilterPreviews(e);break}case D.SIDEBAR:{this.handleTypeFilterPreviews(e);break}default:break}}),this.setVisibleItems()}handleGlobalFilterPreviews(e){e.getQueries().forEach(t=>Z(this,null,function*(){switch(t.getIdentifier()){case D.CREATED_ON:{let i=t,a=this.getDateLabel(i.getRange());a&&this.allFilterItems.splice(0,0,{displayText:`${this.translate.instant("explorer-ng.filterModule.created")}: ${this.translate.instant(a)}`,removeFn:()=>{e.removeFilter(t)},clickFn:()=>{this.openFilters()}});break}case D.UPDATED_ON:{let i=t,a=this.getDateLabel(i.getRange());a&&this.allFilterItems.splice(0,0,{displayText:`${this.translate.instant("explorer-ng.filterModule.updatedOnFilter")}: ${this.translate.instant(a)}`,removeFn:()=>{e.removeFilter(t)},clickFn:()=>{this.openFilters()}});break}case D.UPDATED_BY:{let i=t;this.getUserNames(i.getValues()).then(a=>{a.forEach(g=>{this.addQuickFilterItem({displayText:`${this.translate.instant("explorer-ng.filterModule.updatedByFilter")}: ${g.name}`,removeFn:()=>{let m=i.getValues().filter(w=>w!==g.uri);m.length?i.setValues(m):e.removeFilter(i)},clickFn:()=>{this.openFilters()}})})});break}case D.CREATED_BY_URI:{let i=t;this.getUserNames(i.getValues()).then(a=>{a.forEach(g=>{this.addQuickFilterItem({displayText:`${this.translate.instant("explorer-ng.filterModule.createdByFilter")}: ${g.name}`,removeFn:()=>{let m=i.getValues().filter(w=>w!==g.uri);m.length?i.setValues(m):e.removeFilter(i)},clickFn:()=>{this.openFilters()}})})});break}case D.RELATIONS:break;case D.TAG_SEARCH:{let i=t,a,g;i instanceof xn.CompoundFilter&&(a=i.findQuery(w=>w.getIdentifier()===D.TAG_SEARCH),g=i.findQuery(w=>w.getIdentifier()===D.TAG_SEARCH_EMPTY));let m=a||i;if(m&&m instanceof xn.CompoundFilter&&m.getQueries().length>0){let w=m.findQuery(N=>N.getIdentifier()!==D.TAG_SEARCH_EMPTY);w&&w.getValues().forEach(N=>{this.allFilterItems.splice(0,0,{displayText:`${this.translate.instant(w.getExclude()?"explorer-ng.filterModule.tagExclude":"explorer-ng.filterModule.tag")}: ${N}`,removeFn:()=>{m.getQueries().forEach(G=>{let Me=G.getValues().filter(at=>at!==N);G.setValues(Me),Me.length===0&&!g&&e.removeFilters((0,xn.findById)(D.TAG_SEARCH)),Me.length===0&&g&&m.removeFilters((0,xn.findById)(D.TAG_SEARCH))})},clickFn:()=>{this.openFilters()}})})}g&&this.allFilterItems.splice(0,0,{displayText:`${this.translate.instant("explorer-ng.filterModule.emptyTag")}`,removeFn:()=>{m.getIdentifier()===D.TAG_SEARCH?e.addFilter(m,xn.compareById):e.removeFilters((0,xn.findById)(D.TAG_SEARCH))},clickFn:()=>{this.openFilters()}});break}case D.STATUS:{let i=t;i.getValues().forEach(a=>{this.allFilterItems.splice(0,0,{displayText:`${this.translate.instant("explorer-ng.filterModule.statusFilter")}: ${this.titleCasePipe.transform(a.toString(),Ja,"skip")}`,removeFn:()=>{let g=i.getValues().filter(m=>m!==a.toString());g.length?i.setValues(g):e.removeFilter(i)},clickFn:()=>{this.openFilters()}})});break}case D.WATCHERS:{let i=t;this.getUserNames(i.getValues()).then(a=>{a.forEach(g=>{let m=`${this.translate.instant("explorer-ng.filterModule.watchedBy")}: ${g.name}`;this.allFilterItems.find(w=>w.displayText===m)||this.addQuickFilterItem({displayText:m,removeFn:()=>{let w=i.getValues().filter(N=>N!==g.uri);w.length?i.setValues(w):e.removeFilter(i)},clickFn:()=>{this.openFilters()}})})});break}default:}}))}handleTypeFilterPreviews(e){e.getQueries().forEach(t=>{let i=this.fieldTypesDetails[t.getIdentifier()]?.entity.name;i&&this.allFilterItems.push({displayText:i,nestedFilterCount:t.getQueries().filter(a=>a.getIdentifier()!==pt.ELEMENT_TYPE_URI).length,tooltipText:t.getQueries().filter(a=>a.getIdentifier()!==pt.ELEMENT_TYPE_URI).map(a=>{let g=this.fieldTypesDetails[t.getIdentifier()].fields[a.getIdentifier()].name;if(g)return g}).filter(a=>!!a).join("<br>"),removeFn:()=>{e.removeFilter(t)},clickFn:()=>{this.selectEntityTypeUri(t.getIdentifier())}})})}setVisibleItems(){let e=(t,i)=>{if(t.type===D.QUICK&&i.type!==D.QUICK)return-1;if(t.type!==D.QUICK&&i.type===D.QUICK)return 1;let a=!!t.fields,g=!!i.fields;if(a&&!g)return-1;if(!a&&g)return 1;if(a&&g){let m=Object.keys(t.fields).length,w=Object.keys(i.fields).length;return m-w}return 0};this.allFilterItems.sort(e),this.visibleItems=this.allFilterItems.slice(0,this.visibleCount),this.updateVisibleItems()}addQuickFilterItem(e){this.allFilterItems.splice(0,0,e),this.setVisibleItems()}getEntityFieldsDetails(){return Z(this,null,function*(){return this.currentSpaceUri=this.currentSpaceUri||(yield Qe(this.store.select(se.selectCurrentSpaceUri).pipe(oe()))),console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri).then(e=>Z(this,null,function*(){yield Promise.all(e.map(t=>Z(this,null,function*(){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getFieldsForElementType(t.uri,!0,!1,this.currentSpaceUri).then(i=>{this.fieldTypesDetails[t.uri]={entity:{uri:t.uri,name:t.name,color:t.color,icon:t.icon},fields:i.reduce((a,g)=>(a[g.uri]={name:g.name,uri:g.uri},a),{})}})})))}))})}getUserNames(e){return Z(this,null,function*(){let t=this.sessionService.getUser().sub,i=e.map(g=>Z(this,null,function*(){let m=yield this.userLookupService.getSpaceUserDetail(g),w=this.translate.instant("renderers-ng.explorerHeader.unknownUser");return t===g?w="Me":m?.firstName&&(w=`${m.firstName} ${m.lastName}`),{uri:g,name:w}}));return yield Promise.all(i)})}getDateLabel(e){if(!e||!e.lt||!e.gt)return;let t={TODAY:"explorer-ng.quickFilters.today",SINCE_YESTERDAY:"explorer-ng.quickFilters.yesterday",LAST_SEVEN_DAYS:"explorer-ng.quickFilters.last7Days",LAST_30_DAYS:"explorer-ng.quickFilters.last30Days",LAST_12_MONTHS:"explorer-ng.quickFilters.last12Months"},i=Date.now(),a=e.gt.value,g=e.lt.value,m=i-a,w=25*60*60*1e3,N=31*w,G=365*w;return new Date(a).toDateString()!==new Date().toDateString()&&new Date(g).toDateString()!==new Date().toDateString()?`${new Date(a).toLocaleDateString("en-UK",{year:"numeric",month:"short",day:"numeric"})} to ${new Date(g).toLocaleDateString("en-UK",{year:"numeric",month:"short",day:"numeric"})}`:m<=w?t.TODAY:m<=2*w?t.SINCE_YESTERDAY:m<=8*w?t.LAST_SEVEN_DAYS:m<=N?t.LAST_30_DAYS:m<=G&&m>=11*N?t.LAST_12_MONTHS:`(${new Date(a).toLocaleDateString("en-UK",{year:"numeric",month:"short",day:"numeric"})} to ${new Date(g).toLocaleDateString("en-UK",{year:"numeric",month:"short",day:"numeric"})})`}};r.\u0275fac=function(t){return new(t||r)(x(He),x(_t),x(jt),x(K),x(fn),x(Ra),x(le))},r.\u0275cmp=v({type:r,selectors:[["explorer-active-filters-bar"]],viewQuery:function(t,i){if(t&1&&Le(Cm,5),t&2){let a;we(a=Se())&&(i.barContainer=a.first)}},inputs:{rootFilter:"rootFilter"},outputs:{focusElementTypeUri:"focusElementTypeUri",openFilterPanel:"openFilterPanel"},decls:4,vars:2,consts:[["barContainer",""],[1,"bar-container"],[4,"ngFor","ngForOf"],["class","active-bar-item label-xs-semibold",3,"click",4,"ngIf"],[1,"active-bar-item","label-xs-semibold",3,"click"],[1,"text","label-xs-semibold",3,"ui2Tooltip"],["class","color-primary type-label",4,"ngIf"],[1,"icon","icon2-x16-close-s",3,"click"],[1,"color-primary","type-label"],[1,"text","label-xs-semibold"]],template:function(t,i){t&1&&(p(0,"div",1,0),h(2,Mm,6,3,"ng-container",2)(3,Om,3,1,"div",3),d()),t&2&&(s(2),l("ngForOf",i.visibleItems),s(),l("ngIf",i.allFilterItems.length>i.visibleCount))},dependencies:[Oe,A,De],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%]{overflow:hidden;display:flex;flex-direction:column;align-items:flex-end}[_nghost-%COMP%]     span.trigger-wrapper{display:inline-block;color:#098dcd;max-width:20ch;overflow-x:hidden;overflow-y:visible;text-overflow:ellipsis;white-space:pre}.bar-container[_ngcontent-%COMP%]{display:flex;gap:8px;width:fit-content}.active-bar-item[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;background-color:#e6f6fe;padding:4px;border-radius:4px;border:1px solid #098dcd;height:24px}.active-bar-item[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{display:inline-block;overflow:visible;height:16px}.active-bar-item[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:0;padding-left:4px;transition:font-size .2s ease-in-out;color:#098dcd}.active-bar-item[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{font-size:.75rem}.type-label[_ngcontent-%COMP%]{margin-left:1px}"]});let n=r;return n})();function vm(n,r){n&1&&(p(0,"span",4),C(1,"translate"),p(2,"ui2-button",5),b(3,"span",6),d()()),n&2&&l("ui2Tooltip",M(1,1,"explorer-ng.headerMeatballOptions.default"))}function wm(n,r){if(n&1&&O(0),n&2){let o=r.$implicit;S(" ",o.label," ")}}function Sm(n,r){if(n&1){let o=P();p(0,"ui-dropdown-list",3),_("select",function(t){u(o);let i=c();return f(i.onSelect(t))}),h(1,vm,4,3,"ng-template",null,0,V)(3,wm,1,1,"ng-template",null,1,V),d()}if(n&2){let o=c();l("data",o.headerMeatballOptions)}}var Xn=function(n){return n.SHARE="share",n.COPY="copy",n.IMPORT="import",n}(Xn||{}),Fs=(()=>{let r=class r{constructor(e,t,i,a,g,m,w,N,G,Me,at){this.translateService=e,this.featureFlagService=t,this.permissionService=i,this.entityImportService=a,this.clipboard=g,this.logService=m,this.explorerLandingService=w,this.router=N,this.trackingService=G,this.store=Me,this.entityConfigHelperService=at,this.destroyRef=Q(ee),this.headerMeatballOptions=[],this.hasBulkCopy=!1,this.hasPermissionCreateEntity=!1,this.hasPermissionEditEntity=!1,this.hasPermissionImport=!1,this.hasImportFeatureEnabled=!1,this.hasShareFeature=!1,this.showCopiedText=!1,this.showCopiedTextErrorMessage=!1,this.showCopiedTextDuration=800,this.SHARE_FEATURE_FLAG="common.app.link-sharing",this.checkPermissions()}ngOnInit(){this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(()=>{this.checkPermissions()})}updateHeaderMeatballOptions(){this.headerMeatballOptions=[],this.hasShareFeature||this.headerMeatballOptions.push({label:this.translateService.instant("explorer-ng.headerMeatballOptions.share"),uri:Xn.SHARE}),this.hasPermissionCreateEntity&&this.hasBulkCopy&&this.headerMeatballOptions.push({label:this.translateService.instant("explorer-ng.headerMeatballOptions.copy"),uri:Xn.COPY}),this.hasPermissionCreateEntity&&this.hasPermissionEditEntity&&this.hasPermissionImport&&this.hasImportFeatureEnabled&&this.headerMeatballOptions.push({label:this.translateService.instant("explorer-ng.headerMeatballOptions.importFromDatasheet"),uri:Xn.IMPORT})}onSelect(e){let{uri:t}=e;switch(t){case Xn.SHARE:this.copyUrlToClipBoard();return;case Xn.COPY:this.entityImportService.openCopyFromWorkspaceModal();return;case Xn.IMPORT:this.entityImportService.openImportDatasheetModal();return}}copyUrlToClipBoard(){let e=window.location.href;this.clipboard.copy(e)?(this.showCopiedText=!0,setTimeout(()=>this.showCopiedText=!1,this.showCopiedTextDuration)):(this.showCopiedTextErrorMessage=!0,this.logService.warn("URL could not be copied",{url:e}),setTimeout(()=>this.showCopiedTextErrorMessage=!1,this.showCopiedTextDuration)),this.trackingService.trackEventById(`${this.getCurrentViewPrefix()}explorerTopBar.shareUrl`)}getCurrentViewPrefix(){return this.explorerLandingService.getCurrentViewPrefix(this.router)}checkPermissions(){Promise.all([this.featureFlagService.isFeatureEnabled(this.SHARE_FEATURE_FLAG),this.featureFlagService.isFeatureEnabled(hl.BULK_COPY),this.featureFlagService.isFeatureEnabled(mr.IMPORT_FEATURE_FLAG),Qe(this.permissionService.userHasAnyPermission([tt.EXCEL_IMPORT])),this.entityConfigHelperService.getElementTypesBasedOnPermission([tt.CREATE_ELEMENT]),this.entityConfigHelperService.getElementTypesBasedOnPermission([tt.EDIT_ALL_ELEMENTS])]).then(([e,t,i,a,g,m])=>{this.hasShareFeature=e,this.hasBulkCopy=t,this.hasImportFeatureEnabled=i,this.hasPermissionCreateEntity=g.length>0,this.hasPermissionEditEntity=m.length>0,this.hasPermissionImport=a,this.updateHeaderMeatballOptions()})}};r.\u0275fac=function(t){return new(t||r)(x(K),x(Nt),x(wn),x(Fi),x(ar),x(Ae),x(Ir),x(ii),x(pe),x(le),x(He))},r.\u0275cmp=v({type:r,selectors:[["explorer-header-meatball-menu"]],decls:1,vars:1,consts:[["dropdownButton",""],["dropdownList",""],["eventType","click","dropPosition","bottom",3,"data","select",4,"ngIf"],["eventType","click","dropPosition","bottom",3,"select","data"],[3,"ui2Tooltip"],[1,"button-icon"],[1,"icon","icon2-x16-options"]],template:function(t,i){t&1&&h(0,Sm,5,1,"ui-dropdown-list",2),t&2&&l("ngIf",i.headerMeatballOptions==null?null:i.headerMeatballOptions.length)},dependencies:[A,Ee,De,zt,I],styles:[".meatball[_ngcontent-%COMP%], .meatball[_ngcontent-%COMP%] > ui-dropdown-list[_ngcontent-%COMP%], .meatball[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{display:inline-block}"]});let n=r;return n})();var Em=[[["","view",""]]],Im=["[view]"],km=(n,r)=>({"collapsed-chevron":n,"expanded-chevron":r}),Fm=(n,r)=>({expanded:n,"stack-minimized":r});function Rm(n,r){if(n&1&&b(0,"explorer-excel-export",14),n&2){let o=c();l("rootFilter",o.rootFilterQuery)("activePage",o.activePage)}}function Dm(n,r){if(n&1){let o=P();p(0,"explorer-active-filters-bar",15),_("focusElementTypeUri",function(t){u(o);let i=c();return f(i.onElementTypeUriPreviewClicked(t))})("openFilterPanel",function(){u(o);let t=c();return f(t.expandContract(!0))}),d()}if(n&2){let o=c();l("rootFilter",o.rootFilterQuery)}}function Vm(n,r){if(n&1){let o=P();p(0,"filter-panel-element-type-selector",29),_("focusElementType",function(t){u(o);let i=c(2);return f(i.focusedElementTypeChange(t))}),d()}if(n&2){let o=c(2);l("rootFilter",o.rootFilterQuery)("typeGroupsFilter",o.typeGroupsFilterQuery)("allElememtTypes",o.allElememtTypes)("focusedElementType",o.focusedElementType)}}function Um(n,r){if(n&1&&b(0,"filter-panel-type-filters",30),n&2){let o=c(2);l("rootFilter",o.rootFilterQuery)("typeGroupsFilter",o.typeGroupsFilterQuery)("focusedElementType",o.focusedElementType)("allElementTypes",o.allElementTypes)}}function Lm(n,r){if(n&1){let o=P();p(0,"div",16),C(1,"async"),p(2,"div",17)(3,"div",18),b(4,"filter-panel-global-filters",19),d(),p(5,"div",20),h(6,Vm,1,4,"filter-panel-element-type-selector",21),d(),p(7,"div",22),h(8,Um,1,4,"filter-panel-type-filters",23),d()(),p(9,"div",24)(10,"div",25)(11,"ui2-button",26),_("click",function(){u(o);let t=c();return f(t.clearFilter())}),b(12,"span",27),p(13,"span",28),O(14),C(15,"translate"),d()()()()()}if(n&2){let o=c();l("ngClass",Te(13,Fm,M(1,9,o.filterPanelExpanded),o.stackMinimized)),s(4),l("rootFilter",o.rootFilterQuery)("globalFilter",o.globalFilterQuery)("allElementTypes",o.allElementTypes),s(2),l("ngIf",o.typeGroupsFilterQuery),s(),z("item-selected",o.focusedElementType!==null),s(),l("ngIf",o.typeGroupsFilterQuery),s(6),S(" ",M(15,11,"explorer-ng.filterModule.resetAll"),"")}}var Rs=(()=>{let r=class r{set rootFilter(e){this.rootFilterQuery=e,this.globalFilterQuery=e.getQuery(D.QUICK),this.typeGroupsFilterQuery=e.getQuery(D.SIDEBAR)}constructor(e){this.stackedViewsService=e,this.destroyRef=Q(ee),this.onResetFilter=new y,this.expandContractChanges=new y,this.focusedElementType=null,this.filterPanelExpanded=new ft(!1),this.stackedViewsService.isCollapsed}ngOnInit(){this.stackedViewsService.onMinimizeStack.pipe(L(this.destroyRef)).subscribe(e=>{this.stackMinimized=e})}expandContract(e){this.expandContractChanges.next(e??!this.filterPanelExpanded.getValue()),this.filterPanelExpanded.next(e??!this.filterPanelExpanded.getValue())}clearFilter(){this.onResetFilter.emit()}onElementTypeUriPreviewClicked(e){setTimeout(()=>{this.focusedElementType=this.allElementTypes.find(t=>t.uri===e),this.expandContract(!!this.focusedElementType)})}focusedElementTypeChange(e){setTimeout(()=>{this.focusedElementType=e})}};r.\u0275fac=function(t){return new(t||r)(x(In))},r.\u0275cmp=v({type:r,selectors:[["filter-panel-v2"]],inputs:{parent:"parent",rootFilter:"rootFilter",allElementTypes:"allElementTypes",allElementStatuses:"allElementStatuses",activePage:"activePage"},outputs:{onResetFilter:"onResetFilter",expandContractChanges:"expandContractChanges"},ngContentSelectors:Im,decls:21,vars:19,consts:[[1,"search-header-wrapper"],[1,"instant-search"],[1,"search-wrapper"],[3,"globalFilter","allElememtTypes","placeholder"],[1,"function-buttons"],[3,"rootFilter","activePage",4,"ifFeature"],[3,"rootFilter","focusElementTypeUri","openFilterPanel",4,"ngIf"],[1,"filter-button","unselectable",3,"click"],[1,"icon","icon2-x16-filter","unselectable"],[1,"filter-button-text","label","label-sm-semibold","unselectable"],[1,"icon","icon2-x16-chevron-l","panel-state-chevron","unselectable",3,"ngClass"],[1,"filter-view-container"],[1,"view-content"],["class","filter-panel",3,"ngClass",4,"ngIf"],[3,"rootFilter","activePage"],[3,"focusElementTypeUri","openFilterPanel","rootFilter"],[1,"filter-panel",3,"ngClass"],[1,"filter-panel-content"],[1,"filter-container","filter-panel-global-filters"],[3,"rootFilter","globalFilter","allElementTypes"],[1,"filter-container","filter-panel-element-type-selector"],[3,"rootFilter","typeGroupsFilter","allElememtTypes","focusedElementType","focusElementType",4,"ngIf"],[1,"filter-container","filter-panel-type-filters"],[3,"rootFilter","typeGroupsFilter","focusedElementType","allElementTypes",4,"ngIf"],[1,"filter-panel-footer"],[1,"footer-buttons"],[1,"reset-button","button-with-icon",3,"click"],[1,"icon","icon2-x16-reset","reset-icon","label-sm-semibold"],[1,"reset-button-text","label-sm-semibold"],[3,"focusElementType","rootFilter","typeGroupsFilter","allElememtTypes","focusedElementType"],[3,"rootFilter","typeGroupsFilter","focusedElementType","allElementTypes"]],template:function(t,i){t&1&&(ot(Em),p(0,"div",0)(1,"div",1)(2,"div",2),b(3,"filter-quick-search",3),C(4,"translate"),d()(),p(5,"div",4),h(6,Rm,1,2,"explorer-excel-export",5),b(7,"explorer-header-meatball-menu"),d(),h(8,Dm,1,1,"explorer-active-filters-bar",6),p(9,"div",7),_("click",function(){return i.expandContract()}),b(10,"span",8),p(11,"span",9),O(12),C(13,"translate"),d(),b(14,"span",10),C(15,"async"),C(16,"async"),d()(),p(17,"div",11)(18,"div",12),it(19),d(),h(20,Lm,16,16,"div",13),d()),t&2&&(s(3),l("globalFilter",i.globalFilterQuery)("allElememtTypes",i.allElementTypes)("placeholder",M(4,8,"explorer-ng.instant-search.placeholder")),s(3),l("ifFeature","common.*.export-excel"),s(2),l("ngIf",i.rootFilterQuery),s(4),S(" ",M(13,10,"explorer-ng.filterModule.filter"),""),s(2),l("ngClass",Te(16,km,M(15,12,i.filterPanelExpanded)===!1,M(16,14,i.filterPanelExpanded))),s(6),l("ngIf",i.rootFilterQuery))},dependencies:[de,A,Ee,dr,Dr,Is,Es,zl,as,ks,Fs,vn,I],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}.view-content[_ngcontent-%COMP%]{transition:all .25s;width:100%;height:100%}*.unselectable[_ngcontent-%COMP%]{-moz-user-select:none;-khtml-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}explorer-active-filters-bar[_ngcontent-%COMP%]{z-index:1;width:90%;margin-left:24px}.instant-search[_ngcontent-%COMP%]{text-align:right;width:100%;max-width:482px;min-width:334px;margin-right:24px}.search-header-wrapper[_ngcontent-%COMP%]{margin:0 8px 8px 24px;padding-top:8px;display:flex}.search-wrapper[_ngcontent-%COMP%]{height:40px}.function-buttons[_ngcontent-%COMP%]{display:flex}.filter-presets-button[_ngcontent-%COMP%], .instant-search[_ngcontent-%COMP%]{display:inline-block}.filter-view-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;height:calc(100vh - 58px);width:100%;background-color:#fff;border-top:1px #e1e7ee solid}.filter-button[_ngcontent-%COMP%]{display:flex;right:0;margin:10px 12px;font-size:16px;color:#3e4d63;z-index:13}.filter-button[_ngcontent-%COMP%]   .button-with-icon[_ngcontent-%COMP%]{margin-right:4px!important}.filter-button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#627588;margin-left:4px}.filter-button[_ngcontent-%COMP%]:hover, .filter-button[_ngcontent-%COMP%]:has(.expanded-chevron){color:#098dcd;cursor:pointer}.filter-button[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%], .filter-button[_ngcontent-%COMP%]:has(.expanded-chevron)   .icon[_ngcontent-%COMP%]{color:#098dcd}.filter-button[_ngcontent-%COMP%]   .expanded-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(-90deg)}.filter-button[_ngcontent-%COMP%]   .collapsed-chevron[_ngcontent-%COMP%]:before{transition:all .25s;transform:rotate(90deg)}.filter-button[_ngcontent-%COMP%]   .filter-button-text[_ngcontent-%COMP%]{margin-left:4px}.filter-button[_ngcontent-%COMP%]   .panel-state-chevron[_ngcontent-%COMP%]:before{line-height:16px;font-size:16px}.filter-panel[_ngcontent-%COMP%]{background-color:#fff;overflow:hidden;display:flex;flex-direction:column;width:0;height:calc(100vh - 58px);box-shadow:-8px 0 24px -8px #3e4d6352;z-index:6;transition:all .25s}.filter-panel[_ngcontent-%COMP%]   .filter-panel-header[_ngcontent-%COMP%]{display:flex;width:390px;position:absolute;justify-content:flex-end;gap:8px;align-items:baseline}.filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;width:390px;height:calc(100vh - 58px);position:relative}.filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-container[_ngcontent-%COMP%]{padding:0 16px;transition:all .25s}.filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-global-filters[_ngcontent-%COMP%], .filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-element-type-selector[_ngcontent-%COMP%], .filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-type-filters.item-selected[_ngcontent-%COMP%]{border-bottom:1px #e1e7ee solid}.filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-global-filters[_ngcontent-%COMP%], .filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-type-filters[_ngcontent-%COMP%], .filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-element-type-selector[_ngcontent-%COMP%]{transition:all .25s;opacity:1}.filter-panel[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]{margin:10px 12px 10px 0;font-size:16px;color:#3e4d63;z-index:13}.filter-panel[_ngcontent-%COMP%]   .filter-button[_ngcontent-%COMP%]   .button-with-icon[_ngcontent-%COMP%]{margin-right:4px!important}.filter-panel.expanded[_ngcontent-%COMP%]{transition:all .25s;width:390px!important;height:calc(100vh - 58px)!important;overflow:visible;padding-top:0}.filter-panel.expanded[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]{width:390px;overflow-y:auto;overflow-x:hidden;transition-delay:all .25s}.filter-panel.expanded[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-global-filters[_ngcontent-%COMP%], .filter-panel.expanded[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-type-filters[_ngcontent-%COMP%], .filter-panel.expanded[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]   .filter-panel-element-type-selector[_ngcontent-%COMP%]{transition:all .25s;opacity:1}.filter-panel.expanded[_ngcontent-%COMP%]   filter-panel-type-filters[_ngcontent-%COMP%]{overflow-y:visible!important}.filter-panel.expanded[_ngcontent-%COMP%]   .filter-panel-footer[_ngcontent-%COMP%]{z-index:15;transition:all .25s;opacity:1}.filter-panel.expanded[_ngcontent-%COMP%]   .filter-panel-footer[_ngcontent-%COMP%]   .footer-buttons[_ngcontent-%COMP%]{align-items:center}.filter-panel-footer[_ngcontent-%COMP%]{display:flex;padding-right:16px;justify-content:right;width:390px;bottom:0;opacity:0;cursor:pointer;margin-bottom:4px}.filter-view-container[_ngcontent-%COMP%]:has(.itonics-portfolio-view)   .filter-panel[_ngcontent-%COMP%]{position:absolute;right:0}[_nghost-%COMP%]  popper-content{position:relative!important}[_nghost-%COMP%]  .active-bar-item{text-wrap:nowrap}[_nghost-%COMP%]  .network-graph-wrapper{height:100%}[_nghost-%COMP%]  .global-filters.expanded{height:fit-content!important;overflow:visible}[_nghost-%COMP%]  .bar-container{height:100%;align-items:center;justify-content:flex-end}[_nghost-%COMP%]  .header-wrapper{transition:all .25s;width:100%}[_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .view-content{transition:all .25s;width:calc(100% - 390px)}[_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .header-wrapper{transition:all .25s;width:calc(100% - 390px)}[_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .itonics-portfolio-view{transition:all .25s;padding-right:390px;padding-left:260px}[_nghost-%COMP%]  .smart-table-wrapper.scrollabl{height:calc(100vh - 176px)!important}[_nghost-%COMP%]  .explorer-board{height:calc(100vh - 152px)!important}.stack-minimized[_ngcontent-%COMP%]{padding-bottom:44px!important}@media only screen and (max-width: 1640px){[_nghost-%COMP%]  .board-view-container{height:100%!important}[_nghost-%COMP%]  .filter-view-container:has(.board-view-container, .itonics-portfolio-view)[_ngcontent-%COMP%]   .filter-panel[_ngcontent-%COMP%]{position:absolute;right:0}[_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .header-wrapper{width:calc(100% - 16px)}[_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .itonics-portfolio-view, [_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .header-wrapper{transition:all .25s;padding-right:390px}[_nghost-%COMP%]  .filter-view-container:has(div.filter-panel.expanded) .itonics-portfolio-view{padding-left:390px}}@media only screen and (max-width: 768px),(max-width: 959.98px) and (orientation: landscape) and (max-height: 430px){explorer-active-filters-bar[_ngcontent-%COMP%]{display:none}.search-header-wrapper[_ngcontent-%COMP%]{margin:0 8px 12px 24px}.instant-search[_ngcontent-%COMP%]{min-width:150px!important}.filter-view-container[_ngcontent-%COMP%]:has(.expanded)   .view-content[_ngcontent-%COMP%]{width:0!important}.filter-view-container[_ngcontent-%COMP%]:has(.expanded)   .filter-panel[_ngcontent-%COMP%]{width:100vw!important}.filter-view-container[_ngcontent-%COMP%]:has(.expanded)   .filter-panel[_ngcontent-%COMP%]   .filter-panel-content[_ngcontent-%COMP%]{width:100vw!important}}"]});let n=r;return n})();var Ds={"explorer-filter-v2":{}};var Po={"explorer-filter-v2":{fields:{belongsTo:"Campaign"}}};var IE=ue(he());var RE={renderers:{}};var VE={renderers:{manageRatingsModalTitle:"Manage Ratings",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}}.",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."},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:{deleteFileError:"Failed to delete file {{filename}}. Please try again later. Should the problem persist, contact our support.",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."}},textField:{placeholder:"Add Text",required:"This field is required"},textArea:{placeholder:"Add Text",required:"This field is required"},numberInput:{placeholder:"Add a Number",disabledFormularField:"This is a calculated field and can't be edited."},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"},datePicker:{placeholder:"Choose a Date"},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"},"rating-notes":{"input-placeholder":"Write your thoughts.","panel-title-add":"Add note","panel-title-view":"View note"},autofill:{modalTitle:"Autofill {{name}}",modalTitleSuffix:"Autofill",image:{modalTitle:"Generate Background Image"},loadTemplates:"Loading AI Assistant",cancel:"Cancel",create:"Create",gptConsent:"By clicking 'Create' you consent to sending information to OpenAI.",learnMore:"Learn more",continue:"Continue",regenerateCta:"Regenerate",error:"Failed to Autofill. Try again or contact support.",openAIOutage:"The AI could not process your request. Please try again.",openAIBusy:"The AI server is currently busy. Please try again later.",gptLimitWarning:"This feature is temporarily unavailable as <b>you've hit your monthly request limit.</b> Your administrator has been informed.",fieldError:"Autofill requires {{name}} to be filled out first.",defaultGroupLabel:"Default",helpDescribe:"Help the AI generate more accurate and relevant content by providing additional context.",moreInfo:"More Info",tagsPreview:{autoCreateCta:"Autofill Tags",suggestedTags:"Suggested Tags",insertCta:"Insert",loadingState:"Crafting your tags, please wait...",addingTags:"Adding your tags...",tags:"Tags"},descriptionPreview:{suggestedDescription:"Suggested Description",continue:"Continue",fillInstruction:"Which template would you like to use?",loadingState:"Crafting your description, please wait...",addingDescription:"Adding your description...",description:"Description"},autoRate:{ratingInProgress:"We're in the process of rating your ideas. We'll let you know once they are ready!",exploreNow:"Explore Now",ratingComplete:"Rating is successfully complete",ratingFailed:"Failed to Autorate Elements",headerButtonText:"Autorate Ideas",autoRating:"Autorate Ideas",autoRatings:"Autoratings",selectCriteria:"Select the rating criteria you want to be rated by AI.",selectPhases:"Choose the phases for which you want to rate the ideas.",autoRatingToggle:"AI Rating"}}}};var Nm=n=>({label:n});function jm(n,r){if(n&1&&(p(0,"div",6),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function Bm(n,r){n&1&&Ge(0)}function zm(n,r){n&1&&Ge(0)}function Gm(n,r){if(n&1&&h(0,zm,1,0,"ng-container",5),n&2){let o=c(),e=j(5),t=j(9);l("ngIf",o.renderedValue&&o.readonly||!o.readonly)("ngIfThen",t)("ngIfElse",e)}}function qm(n,r){n&1&&(p(0,"div",7),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}function Hm(n,r){n&1&&b(0,"ui-loader",8)}function Wm(n,r){if(n&1&&(p(0,"ui-error-popup"),O(1),C(2,"translate"),d()),n&2){let o=c(2);s(),S(" ",xe(2,1,"renderers.errors.required",q(4,Nm,o.control==null?null:o.control.name))," ")}}function Qm(n,r){if(n&1){let o=P();p(0,"ui2-datepicker",9),C(1,"translate"),_("ngModelChange",function(t){u(o);let i=c();return f(i.updateValues(t))})("focusChange",function(t){u(o);let i=c();return f(i.onFocusChange(t))}),d(),h(2,Wm,3,6,"ui-error-popup",10)}if(n&2){let o=c();l("placeholder",M(1,8,"renderers.datePicker.placeholder"))("disabled",o.disabled)("clearable",o.clearable)("readonly",o.readonly)("required",o.hasError)("datePickerType",o.ui2DatePickerType.SinglePicker)("ngModel",o.datePickerModel),s(2),l("ngIf",o.hasError)}}var Vs=(()=>{let r=class r{constructor(){this.loading=!1,this.hasError=!1,this.readonly=!1,this.clearable=!1,this.showLabel=!0,this.onUpdate=new y,this.required=!1,this.ui2DatePickerType=fi,this.isFocused=!1}ngOnChanges(e){e.control&&this.control&&(this.field=this.control.field,this.getCardinality()),e.value&&this.field&&!this.isFocused&&(this.renderedValue=e.value.currentValue,this.renderedValue?.[this.field.uri]?this.datePickerModel=this.renderedValue[this.field.uri]:this.datePickerModel=this.renderedValue)}updateValues(e){e||this.clearDatePicker(),this.required&&(this.hasError=!e);let t;e?.beginJsDate?t=e.beginJsDate.getTime().toString():t=[],this.onUpdate.emit({fieldValue:t,field:this.field})}clearDatePicker(){this.renderedValue=null,this.updateValues(this.renderedValue)}getCardinality(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri==="date_minCardinality");e&&e.value&&(this.required=parseInt(e.value,10)>0),this.required=!0}onFocusChange(e){this.isFocused=e}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-date"]],inputs:{control:"control",value:"value",loading:"loading",hasError:"hasError",readonly:"readonly",clearable:"clearable",showLabel:"showLabel"},outputs:{onUpdate:"onUpdate"},standalone:!0,features:[k,W],decls:10,vars:4,consts:[["rendererTemp",""],["noDataTemp",""],["loadingTemp",""],["inputTemp",""],["class","subtitle-box",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle-box"],[1,"placeholder-no-input-data"],[1,"renderer-loader"],[3,"ngModelChange","focusChange","placeholder","disabled","clearable","readonly","required","datePickerType","ngModel"],[4,"ngIf"]],template:function(t,i){if(t&1&&h(0,jm,2,1,"div",4)(1,Bm,1,0,"ng-container",5)(2,Gm,1,3,"ng-template",null,0,V)(4,qm,3,3,"ng-template",null,1,V)(6,Hm,1,0,"ng-template",null,2,V)(8,Qm,3,10,"ng-template",null,3,V),t&2){let a=j(3),g=j(7);l("ngIf",i.showLabel),s(),l("ngIf",i.loading)("ngIfThen",g)("ngIfElse",a)}},dependencies:[E,A,fe,J,Ma,te,H,I,ye,Ie,Je,rt,yr,_i],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-date-picker .header{min-height:0}[_nghost-%COMP%]     ui-date-picker.error input{border:1px solid #f1245c!important}explorer-create-entity-modal[_nghost-%COMP%]     .mydp>.selector, explorer-create-entity-modal   [_nghost-%COMP%]     .mydp>.selector{position:absolute!important}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var $m=["*"],Ym=(n,r)=>({"icon-expand":n,"icon-contract":r});function Xm(n,r){if(n&1){let o=P();p(0,"div",4),_("click",function(){u(o);let t=c();return f(t.clicked())}),b(1,"i",5),d()}if(n&2){let o=c();At("title",o.title),s(),l("ngClass",Te(2,Ym,!o.expandView,o.expandView))}}var Us=(()=>{let r=class r{constructor(e){this.translate=e,this.expandView=!1,this.onClose=new y,this.onOpen=new y,this.enabled=!0,this.title=""}ngOnInit(){this.expandView?this.title=this.translate.instant("expand-view.collapseBox"):this.title=this.translate.instant("expand-view.expandBox")}clicked(){this.expandView=!this.expandView,this.expandView?(this.onOpen.emit(),this.title=this.translate.instant("expand-view.collapseBox")):(this.onClose.emit(),this.translate.instant("expand-view.expandBox"))}};r.\u0275fac=function(t){return new(t||r)(x(K))},r.\u0275cmp=v({type:r,selectors:[["ui-expand-view"]],hostVars:2,hostBindings:function(t,i){t&2&&z("full-screen",i.expandView)},inputs:{enabled:"enabled"},outputs:{onClose:"onClose",onOpen:"onOpen"},ngContentSelectors:$m,decls:5,vars:1,consts:[[1,"expand-back",3,"click"],[1,"expand-box"],["class","expand-btn",3,"title","click",4,"ngIf"],[1,"expand-content"],[1,"expand-btn",3,"click","title"],[3,"ngClass"]],template:function(t,i){t&1&&(ot(),p(0,"div",0),_("click",function(){return i.clicked()}),d(),p(1,"div",1),h(2,Xm,2,5,"div",2),p(3,"div",3),it(4),d()()),t&2&&(s(2),l("ngIf",i.enabled))},dependencies:[de,A],styles:['[_nghost-%COMP%]{display:block;transition:all .5s ease-in-out;padding:30px 30px 50px;background:#fff;position:relative}.expand-box[_ngcontent-%COMP%]{position:relative}.expand-btn[_ngcontent-%COMP%]{color:#62758873;width:30px;height:30px;text-align:center;position:relative;position:absolute;font-size:16px;cursor:pointer;top:10px;right:10px;z-index:2}.expand-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .expand-btn[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{position:static;min-width:20px}.expand-btn[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]:before, .expand-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%)}.expand-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}.expand-btn[_ngcontent-%COMP%]:hover:before{opacity:1;transform:translate(-50%,-50%) scale(1)}.full-screen[_nghost-%COMP%]{position:fixed;z-index:31}.full-screen[_nghost-%COMP%]   .expand-box[_ngcontent-%COMP%]{position:fixed;width:calc(90vw - 72px);height:90vh;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);z-index:1;background:#fff;box-shadow:7px 7px 20px #3f44524d;margin-left:36px}.full-screen[_nghost-%COMP%]   .expand-content[_ngcontent-%COMP%]{position:absolute;width:100%;height:100%;top:0;left:0;overflow-x:hidden;overflow-y:auto;padding:40px}.full-screen[_nghost-%COMP%]   .expand-back[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:0;background:#51617099;opacity:.5}.full-screen[_nghost-%COMP%]   .expand-btn[_ngcontent-%COMP%]{top:20px;right:20px}']});let n=r;return n})();var Ls={};var bo={"expand-view":{expandBox:"Expand",collapseBox:"Collapse"}};var Ar=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:bo,de:Ls}[t]||bo))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H]});let n=r;return n})();var yo=(()=>{let r=class r{};r.blacklistedAttachmentTypes=[".0xe",".a6p",".action",".app",".applescript",".bat",".cgi",".cod",".com",".dek",".dex",".ebm",".elf",".es",".esh",".ex4",".exe",".exopc",".fpi",".gpe",".gpu",".hms",".hta",".html",".ipa",".isu",".jar",".jsx",".kix",".mau",".mel",".mem",".mrc",".paf",".pex",".pif",".plsc",".prg",".ps1",".pwc",".px",".qit",".rbx",".rox",".rxe",".scar",".scb",".scpt",".sct",".seed",".u3p",".vb",".vbe",".vbs",".vbscript",".vlx",".widget",".workflow",".js",".ws",".xbe",".xex",".xys",".zip",".7z",".rar",".tar",".gz"],r.maxAttachmentSize=20971520;let n=r;return n})();var qt=function(n){return n[n.ADDED_TO_QUEUE=0]="ADDED_TO_QUEUE",n[n.COMPLETED=1]="COMPLETED",n[n.UPLOADING=2]="UPLOADING",n[n.CANCELED=3]="CANCELED",n[n.REJECTED=4]="REJECTED",n[n.ERROR_OCCURED=5]="ERROR_OCCURED",n}(qt||{}),As=[{mime:"application/vnd.android.package-archive",icon:"apk"},{mime:"video/x-msvideo",icon:"avi"},{mime:"application/vnd.openxmlformats-officedocument.wordprocessingml.document",icon:"docx"},{mime:"message/rfc822",icon:"eml"},{mime:"image/gif",icon:"gif"},{mime:"text/html",icon:"html"},{mime:"image/jpeg",icon:"jpg"},{mime:"image/x-citrix-jpeg",icon:"jpg"},{mime:"audio/mpeg",icon:"mp3"},{mime:"video/mp4",icon:"mp4"},{mime:"application/mp4",icon:"mp4"},{mime:"application/pdf",icon:"pdf"},{mime:"image/png",icon:"png"},{mime:"image/x-citrix-png",icon:"png"},{mime:"image/x-png",icon:"png"},{mime:"application/vnd.openxmlformats-officedocument.presentationml.presentation",icon:"pptx"},{mime:"text/plain",icon:"txt"},{mime:"audio/x-wav",icon:"wav"},{mime:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",icon:"xlsx"},{mime:"application/zip",icon:"zip"},{mime:"image/.*",icon:"image"},{mime:".*",icon:"file"}],Nr=(()=>{let r=class r{constructor(e,t,i,a,g){this.fileService=e,this.sessionService=t,this.tenantService=i,this.tracker=a,this.store=g,this.uploadStatusSubject=new F,this.fileIdresourceUriMap=[],this.iconUrl="assets/img/file-icons/",this.trackerCache={},this.userEventSubject=new F,this.fileUploaderService=new wa({}),this.fileUploaderService.initInputEvents(this.userEventSubject.asObservable()),this.serviceEventSubscription=this.fileUploaderService.serviceEvents.subscribe(this.uploadEventHandler.bind(this)),this.store.select(se.selectCurrentSpace).pipe(Bo(this.store.select(ai.selectCurrentTenant))).pipe(oe(),L()).subscribe(([m,w])=>{this.space=m,this.tenant=w})}queueFiles(e){this.fileUploaderService.handleFiles(e)}uploadStatus(){return this.uploadStatusSubject.asObservable()}getAttachmentsDetails(e){return Z(this,null,function*(){return e&&e.length?yield this.fileService.getMultipleFileDetail([...e]).toPromise():Promise.resolve([])})}getIconFromMime(e){let t=As.find(a=>a.mime===e);if(t)return`${this.iconUrl.concat(t.icon)}.svg`;let i=As.filter(a=>a.mime.indexOf("*")>-1).find(a=>new RegExp(a.mime).test(e));return`${this.iconUrl.concat(i.icon)}.svg`}uploadEventHandler(e){let t=e.type!=="addedToQueue"&&e.file?this.fileIdresourceUriMap.find(i=>i.fileId===e.file.id).resourceUri:"";switch(e.type){case"addedToQueue":this.handleFileUpload(e.file);break;case"done":this.fileService.pollForFileStatus(t).subscribe(i=>{i.status==="COMPLETED"?this.uploadStatusSubject.next({status:qt.COMPLETED,file:e.file,fileUri:t}):i.status==="REJECTED"&&this.uploadStatusSubject.next({status:qt.REJECTED,file:e.file,errorMessage:typeof i.error=="string"?i.error:i.error.data})});break;case"uploading":e.file&&this.uploadStatusSubject.next({status:qt.UPLOADING,file:e.file,progress:e.file.progress});break;case"rejected":e.file&&this.uploadStatusSubject.next({status:qt.REJECTED,file:e.file,errorMessage:"Rejected"});break}}handleFileUpload(e){let t=this.fileService.generateRandomFileUri();this.fileIdresourceUriMap.push({fileId:e.id,resourceUri:t}),this.fileService.getS3BucketUrl(e.name,t,Sa.SPACE).subscribe(i=>{let a=this.fileService.getUploadInputData(i.url,e);this.userEventSubject.next(a)},i=>{this.uploadStatusSubject.next({status:qt.ERROR_OCCURED,file:e,errorMessage:i.error.error})})}getExtensionFromFilename(e){e=e.toLowerCase();let t=new RegExp(/\.[a-z0-9]+$/,"i");return t.test(e)?t.exec(e)[0]:""}validateFileType(e,t){return(Array.isArray(e)?e:Array.from(e)).filter(a=>{let g=this.getExtensionFromFilename(a.name);return t.indexOf(g)>-1})}track(e){this.tracker.trackEvent(this.tenant,this.space.uri,this.sessionService.getUser().sub,e)}};r.\u0275fac=function(t){return new(t||r)(U(En),U(_t),U(va),U(pe),U(le))},r.\u0275prov=be({token:r,factory:r.\u0275fac});let n=r;return n})();var Zm=["uploadBox"],eu=()=>({prop:"createdOn",dir:"desc"}),tu=n=>[n],nu=(n,r)=>({expanded:n,dragging:r});function iu(n,r){n&1&&(p(0,"div",11),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noAttachments")," "))}function ru(n,r){if(n&1&&(p(0,"div",14),b(1,"img",15),d()),n&2){let o=r.row,e=c(3);s(),l("src",e.fileIconUrls[o.uri],Lt)}}function ou(n,r){if(n&1&&(p(0,"div",16),O(1),d()),n&2){let o=r.row;Qo("id","table-",o.uri,""),l("title",o.fileName),s(),S(" ",o.fileName," ")}}function au(n,r){if(n&1&&(p(0,"div",17),O(1),d()),n&2){let o=r.row;s(),S(" ",o.createdBy," ")}}function lu(n,r){if(n&1&&(p(0,"div",17),O(1),C(2,"amDateFormat"),d()),n&2){let o=r.row;s(),R(xe(2,1,o.createdOn,"MMMM D, YYYY"))}}function su(n,r){if(n&1&&(p(0,"div",17),O(1),C(2,"humanizedBytes"),d()),n&2){let o=r.row;s(),R(M(2,1,o.size))}}function cu(n,r){if(n&1){let o=P();p(0,"div",22),C(1,"translate"),_("click",function(){u(o);let t=c().row,i=c(3);return f(i.deleteFile(t))}),b(2,"i",23),d()}n&2&&At("title",M(1,1,"renderers.fileUploader.fileActions.delete"))}function pu(n,r){if(n&1&&(p(0,"div",18)(1,"a",19),C(2,"translate"),b(3,"i",20),d()(),h(4,cu,3,3,"div",21)),n&2){let o=r.row,e=c(3);s(),At("title",M(2,3,"renderers.fileUploader.fileActions.openInNewTab")),l("href",e.fileDownloadUrls[o.uri],Lt),s(3),l("ngIf",e.isUploadEnabled&&!e.readonly)}}function du(n,r){if(n&1&&(p(0,"section")(1,"ui-table-overview",13),h(2,ru,2,1,"ng-template",null,0,V)(4,ou,2,4,"ng-template",null,1,V)(6,au,2,1,"ng-template",null,2,V)(8,lu,3,4,"ng-template",null,3,V)(10,su,3,3,"ng-template",null,4,V)(12,pu,5,5,"ng-template",null,5,V),d()()),n&2){let o=c(2);s(),l("hasFilter",!1)("data",o.files)("stickyHeader",!0)("defaultSorting",q(6,tu,Gn(5,eu)))("columns",o.tableColumnOptions)}}function gu(n,r){if(n&1){let o=P();p(0,"div",30),C(1,"translate"),_("click",function(){u(o);let t=c().$implicit,i=c(3);return f(i.deleteFile(t))}),d()}n&2&&At("title",M(1,1,"renderers.fileUploader.fileActions.delete"))}function mu(n,r){if(n&1&&(p(0,"div",26),b(1,"img",15),p(2,"span",27),O(3),d(),h(4,gu,2,3,"div",28),b(5,"a",29),C(6,"translate"),d()),n&2){let o=r.$implicit,e=c(3);l("title",o.fileName),s(),l("src",e.fileIconUrls[o.uri],Lt),s(2),R(o.fileName),s(),l("ngIf",e.isUploadEnabled&&!e.readonly),s(),At("title",M(6,6,"renderers.fileUploader.fileActions.openInNewTab")),l("href",e.fileDownloadUrls[o.uri],Lt)}}function uu(n,r){if(n&1&&(p(0,"section",24)(1,"div"),h(2,mu,7,8,"div",25),d()()),n&2){let o=c(2);s(),z("top-margin",o.expandable),s(),l("ngForOf",o.files)("ngForTrackBy",o.identifyFileByCreatedOn)}}function fu(n,r){if(n&1&&(Y(0),h(1,du,14,8,"section",10)(2,uu,3,4,"section",12),X()),n&2){let o=c();s(),l("ngIf",o.isExpanded),s(),l("ngIf",!o.isExpanded)}}function _u(n,r){n&1&&(p(0,"p",39),O(1),C(2,"translate"),p(3,"code"),O(4),C(5,"translate"),d(),O(6),C(7,"translate"),d()),n&2&&(s(),S(" ",M(2,3,"renderers.fileUploader.expanded.pastePrefix")," "),s(3),R(M(5,5,"renderers.fileUploader.expanded.code")),s(2),S(" ",M(7,7,"renderers.fileUploader.expanded.pasteSuffix")," "))}function hu(n,r){if(n&1){let o=P();p(0,"div",32,7),_("paste",function(t){u(o);let i=c(3);return f(i.onPaste(t))})("drop",function(t){u(o);let i=c(3);return f(i.onFileDrop(t))})("dragover",function(t){u(o);let i=c(3);return f(i.onFileDragOver(t))})("dragleave",function(t){u(o);let i=c(3);return f(i.onFileDragOut(t))}),p(2,"span",33),C(3,"translate"),_("click",function(){u(o);let t=c(3);return f(t.openKnowledgeBase())}),d(),b(4,"img",34),p(5,"p",35)(6,"span"),O(7),C(8,"translate"),d(),p(9,"input",36),_("input",function(t){u(o);let i=c(3);return f(i.onFileSelected(t))}),d(),p(10,"label",37),O(11),C(12,"translate"),d(),p(13,"span"),O(14),C(15,"translate"),d()(),h(16,_u,8,9,"p",38),d()}if(n&2){let o=c(3);l("ngClass",Te(18,nu,o.isExpanded,o.draggingOver)),s(2),l("uiTooltip",M(3,10,"renderers.fileUploader.info")),s(5),R(M(8,12,"renderers.fileUploader.dragFile")),s(2),l("multiple",o.allowMultiple)("id",o.componentId)("hidden",!0),s(),l("for",o.componentId),s(),R(M(12,14,"renderers.fileUploader.selectFile")),s(3),R(M(15,16,o.isExpanded?"renderers.fileUploader.expanded.suffix":"renderers.fileUploader.suffix")),s(2),l("ngIf",o.isExpanded)}}function Cu(n,r){n&1&&b(0,"ui-loader",40)}function xu(n,r){if(n&1&&(p(0,"section"),h(1,hu,17,21,"div",31)(2,Cu,1,0,"ng-template",null,6,V),d()),n&2){let o=j(3),e=c(2);s(),l("ngIf",!e.loading)("ngIfElse",o)}}function Mu(n,r){if(n&1&&(Y(0),h(1,xu,4,2,"section",10),X()),n&2){let o=c();s(),l("ngIf",o.isUploadEnabled)}}var Ns=(()=>{let r=class r{constructor(e,t,i,a,g,m,w,N){this.fileService=e,this.uploader=t,this.userLookupService=i,this.translate=a,this.toaster=g,this.filenameTrimPipe=m,this.humanizedBytesPipe=w,this.logService=N,this.allowMultiple=!0,this.title="",this.expandable=!0,this.isUploadEnabled=!1,this.values=[],this.isPrimary=!1,this.knowledgeBaseLink="https://www.itonics-innovation.com/knowledge",this.blacklistedUploadTypes=[],this.maxFileSize=Number.POSITIVE_INFINITY,this.readonly=!0,this.onFileChanged=new y,this.files=[],this.draggingOver=!1,this.fileIconUrls={},this.fileDownloadUrls={},this.loading=!1,this.viewMode=!1,this.KnownErrorReasons=["FileTypeNotAccepted","EmptyFile","MaxSizeExceeded","FileRejected"],this.destroyRef=Q(ee),this.tableColumnOptions=[{label:this.translate.instant("renderers.fileUploader.tableColumns.col0"),value:"tmpl1",flexgrow:.5},{label:this.translate.instant("renderers.fileUploader.tableColumns.col1"),sortBy:"fileName",value:"tmpl2",flexgrow:3},{label:this.translate.instant("renderers.fileUploader.tableColumns.col2"),sortBy:"createdBy",value:"tmpl3",flexgrow:3},{label:this.translate.instant("renderers.fileUploader.tableColumns.col3"),sortBy:"createdOn",value:"tmpl7",flexgrow:2},{label:this.translate.instant("renderers.fileUploader.tableColumns.col4"),sortBy:"size",value:"tmpl8",flexgrow:1.5}]}onPaste(e){if(!this.isExpanded)return;this.uploader.track("rhBPxDhK0pQOQQp"),e.preventDefault();let t=e.clipboardData,i=[];t.files&&t.files.length&&this.uploader.validateFileType(t.files,this.blacklistedUploadTypes)?i.push(...Array.from(t.files)):t.items&&t.items.length&&i.push(...Array.from(t.items).filter(a=>a.kind==="file").map(a=>a.getAsFile())),i=this.validateFiles(i),i.length&&this.uploader.queueFiles(i)}ngOnInit(){this.uploader.uploadStatus().pipe(L(this.destroyRef)).subscribe(e=>{switch(e.status){case qt.COMPLETED:Array.isArray(this.values)||(this.values=[]),this.values=[...this.values,e.fileUri],this.initializeAttachments(),this.onFileChanged.emit(this.values),this.loading=!1;break;case qt.UPLOADING:this.loading=!0;break;case qt.REJECTED:case qt.ERROR_OCCURED:this.toaster.showToast({type:e.status===qt.ERROR_OCCURED?Ye.ERROR:Ye.ALERT,content:this.translate.instant(`renderers.fileUploader.attachmentBox.reasons.${this.KnownErrorReasons.indexOf(e.errorMessage)>-1?e.errorMessage:"unknown"}`,{filename:this.filenameTrimPipe.transform(e.file.name),extra:e.errorMessage==="MaxSizeExceeded"?this.humanizedBytesPipe.transform(e.file.size):this.uploader.getExtensionFromFilename(e.file.name)||"unknown"}),contentType:lr.CUSTOM_CONTENT}),this.logService.warn("FileUploaderRendererComponent - Error while uploading a file",{error:e.errorMessage}),this.loading=!1;break}})}ngOnChanges(e){e.values&&this.initializeAttachments()}onFileSelected(e){let t=e.currentTarget,i=this.validateFiles(Array.from(t.files));i.length&&(this.uploader.queueFiles(i),this.uploader.track("Gd4AsZFfHX9RuzG")),t.value=null}onFileDrop(e){if(e.preventDefault(),e.stopPropagation(),e.dataTransfer.files){this.uploader.track("TxYrgrfoa3sQepo");let t=this.validateFiles(Array.from(e.dataTransfer.files));t.length&&(this.uploader.queueFiles(t),this.draggingOver=!1)}}onFileDragOver(e){e.preventDefault(),e.stopPropagation(),!this.draggingOver&&e.dataTransfer.types.indexOf("Files")>-1&&(this.draggingOver=!0)}onFileDragOut(e){e.preventDefault(),e.stopPropagation(),this.draggingOver&&(this.draggingOver=!1)}set isExpanded(e){this.viewMode=e,this.uploader.track(e?"h4eLAIByIZNZoav":"a5paVarsd2fTKwE"),e&&this.isUploadEnabled&&setTimeout((()=>{this.uploadBox.nativeElement.contentEditable=!0,this.uploadBox.nativeElement.focus(),this.uploadBox.nativeElement.contentEditable=!1}).bind(this),500)}get isExpanded(){return this.viewMode}identifyFileByCreatedOn(e,t){return t.createdOn}getDownloadUrl(e){return this.fileService.getCompleteFileUrl(e.uri)}getFileIconUrl(e){return this.uploader.getIconFromMime(e.mimeType)}deleteFile(e){this.fileService.deleteFile(e.uri).pipe($e(1),et(t=>(this.logService.error("Error while deleting file from server",{error:t}),nt(null)))).subscribe(t=>{if(t!==null)try{this.values=this.values.filter(i=>i!==e.uri),this.initializeAttachments(),this.onFileChanged.emit(this.values),this.uploader.track("KFqIKgA983BUCB5")}catch(i){this.logService.error("Error while processing file deletion",{error:i}),this.toaster.showToast({type:Ye.ALERT,content:this.translate.instant("renderers.fileUploader.deleteFileError",{filename:this.filenameTrimPipe.transform(e.fileName),extra:this.uploader.getExtensionFromFilename(e.fileName)||"unknown"})})}})}openKnowledgeBase(){window.open(this.knowledgeBaseLink,"_blank")}initializeAttachments(){this.collectAttachments().then(()=>{this.files.forEach(e=>{this.userLookupService.getSpaceUserDetail(e.createdBy).then(t=>e.createdBy=`${t.firstName} ${t.lastName}`)})})}collectAttachments(){return Z(this,null,function*(){return this.files=yield this.uploader.getAttachmentsDetails(this.values),this.files.forEach(e=>{this.fileIconUrls[e.uri]=this.getFileIconUrl(e),this.getDownloadUrl(e).then(t=>{this.fileDownloadUrls[e.uri]=t})}),this.files})}validateFiles(e){let t=this.uploader.validateFileType(e,this.blacklistedUploadTypes);t.length&&(t.forEach(a=>{this.toaster.showToast({type:Ye.ALERT,content:this.translate.instant("renderers.fileUploader.attachmentBox.reasons.FileTypeNotAccepted",{filename:this.filenameTrimPipe.transform(a.name),extra:this.uploader.getExtensionFromFilename(a.name)||"unknown"}),contentType:lr.CUSTOM_CONTENT})}),e=e.filter(a=>t.indexOf(a)===-1));let i=e.filter(a=>a.size>this.maxFileSize);return i.length&&(i.forEach(a=>{this.toaster.showToast({type:Ye.ALERT,content:this.translate.instant("renderers.fileUploader.attachmentBox.reasons.MaxSizeExceeded",{filename:this.filenameTrimPipe.transform(a.name),extra:this.humanizedBytesPipe.transform(a.size)}),contentType:lr.CUSTOM_CONTENT})}),e=e.filter(a=>i.indexOf(a)===-1)),e}};r.\u0275fac=function(t){return new(t||r)(x(En),x(Nr),x(jt),x(K),x(ht),x(fr),x(_r),x(Ae))},r.\u0275cmp=v({type:r,selectors:[["renderer-file-uploader"]],viewQuery:function(t,i){if(t&1&&Le(Zm,5),t&2){let a;we(a=Se())&&(i.uploadBox=a.first)}},inputs:{allowMultiple:"allowMultiple",title:"title",expandable:"expandable",isUploadEnabled:"isUploadEnabled",values:"values",fieldUri:"fieldUri",isPrimary:"isPrimary",knowledgeBaseLink:"knowledgeBaseLink",blacklistedUploadTypes:"blacklistedUploadTypes",maxFileSize:"maxFileSize",readonly:"readonly"},outputs:{onFileChanged:"onFileChanged"},standalone:!0,features:[ti([En]),k,W],decls:5,vars:4,consts:[["tmpl1",""],["tmpl2",""],["tmpl3",""],["tmpl7",""],["tmpl8",""],["actions",""],["loadingTemp",""],["uploadBox",""],[3,"onClose","onOpen","enabled"],["class","placeholder-no-input-data",4,"ngIf"],[4,"ngIf"],[1,"placeholder-no-input-data"],["class","list-view",4,"ngIf"],[3,"hasFilter","data","stickyHeader","defaultSorting","columns"],[1,"table-user"],[1,"file-icon",3,"src"],[1,"table-title","table-title_entity",3,"id","title"],[1,"table-text"],[1,"action-menu-btn"],["target","_blank","coreEvent","LY1EyQBSjar8JZ0",1,"external-link",3,"title","href"],[1,"icon","icon-external-link"],["class","action-menu-btn","coreEvent","EjtQbtyolHPJ2ZA",3,"title","click",4,"ngIf"],["coreEvent","EjtQbtyolHPJ2ZA",1,"action-menu-btn",3,"click","title"],[1,"icon","icon-remove-1"],[1,"list-view"],["class","file-list",3,"title",4,"ngFor","ngForOf","ngForTrackBy"],[1,"file-list",3,"title"],[1,"file-name"],["class","delete-file icon icon-remove-1","coreEvent","c6cQY3b4uf33YNp",3,"title","click",4,"ngIf"],["target","_blank","coreEvent","aLv1F4ZqcgYP6qy",1,"external-link","icon","icon-external-link",3,"title","href"],["coreEvent","c6cQY3b4uf33YNp",1,"delete-file","icon","icon-remove-1",3,"click","title"],["class","drop-area",3,"ngClass","paste","drop","dragover","dragleave",4,"ngIf","ngIfElse"],[1,"drop-area",3,"paste","drop","dragover","dragleave","ngClass"],["coreEvent","GNUa2vomCuqeDqS",1,"help-text","f-icon","icon-help","tooltip-right",3,"click","uiTooltip"],["src","assets/img/upload-cloud.svg","alt",""],[1,"drop-info"],["type","file",3,"input","multiple","id","hidden"],["coreEvent","DjbRQIL1CbvfbbY",1,"imitate-link",3,"for"],["class","paste-info",4,"ngIf"],[1,"paste-info"],[1,"renderer-loader"]],template:function(t,i){t&1&&(p(0,"ui-expand-view",8),_("onClose",function(){return i.isExpanded=!1})("onOpen",function(){return i.isExpanded=!0}),p(1,"main"),h(2,iu,3,3,"div",9)(3,fu,3,2,"ng-container",10)(4,Mu,2,1,"ng-container",10),d()()),t&2&&(l("enabled",i.expandable),s(2),l("ngIf",(!i.files||!i.files.length)&&i.readonly),s(),l("ngIf",i.files.length),s(),l("ngIf",!i.readonly))},dependencies:[E,de,Oe,A,Ar,Us,vr,il,ye,Ie,H,I],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%]     .expand-btn{top:auto}[_nghost-%COMP%]     ui-expand-view{padding:0}.placeholder-no-input-data[_ngcontent-%COMP%]{padding:30px;color:#aebac5;font-size:15px;text-align:center}.file-list[_ngcontent-%COMP%]{height:48px;clear:both}.file-list[_ngcontent-%COMP%]   .file-icon[_ngcontent-%COMP%]{margin-top:3px;float:left}.file-list[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{float:left}.file-list[_ngcontent-%COMP%]   .file-name[_ngcontent-%COMP%]{height:48px;padding:14px 8px 15px;width:calc(100% - 130px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px;color:#627588}.file-list[_ngcontent-%COMP%]:hover{background-color:#8a9bab1f}.file-list[_ngcontent-%COMP%]:hover   .external-link[_ngcontent-%COMP%], .file-list[_ngcontent-%COMP%]:hover   .delete-file[_ngcontent-%COMP%]{display:block;cursor:pointer}.file-list[_ngcontent-%COMP%]   .external-link[_ngcontent-%COMP%], .file-list[_ngcontent-%COMP%]   .delete-file[_ngcontent-%COMP%]{height:48px;padding:14px 8px 15px;width:34px;float:right;display:none}.file-list[_ngcontent-%COMP%]   .delete-file.icon[_ngcontent-%COMP%]{color:#627588}a.external-link[_ngcontent-%COMP%]{text-decoration:none;color:#627588}.drop-area[_ngcontent-%COMP%]{width:100%;height:130px;margin-top:22px;border-radius:6px;border:dashed 1px #bdc8d4;background-color:#fff;position:relative;color:#627588}.drop-area.dragging[_ngcontent-%COMP%]{background:#e6f6fe;cursor:grabbing}.drop-area[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{position:absolute;pointer-events:none}.drop-area[_ngcontent-%COMP%]:not(.expanded)   img[_ngcontent-%COMP%]{filter:grayscale(1);width:91px;height:72px;top:calc(50% - 36px);left:calc(50% - 45.5px)}.drop-area.expanded[_ngcontent-%COMP%]{height:146px;border:dashed 1px #627588}.drop-area.expanded[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:110px;height:89px;top:calc(50% - 44.5px);left:calc(50% - 55px)}.drop-area.expanded[_ngcontent-%COMP%]   .drop-info[_ngcontent-%COMP%]{height:18px;margin-top:43px}.drop-area.expanded[_ngcontent-%COMP%]   .paste-info[_ngcontent-%COMP%]{width:185px;height:36px;font-size:13px;margin:10px auto 0;text-align:center;line-height:normal}.drop-area.expanded[_ngcontent-%COMP%]   .paste-info[_ngcontent-%COMP%]   code[_ngcontent-%COMP%]{font-weight:bolder}.drop-area[_ngcontent-%COMP%]   .imitate-link[_ngcontent-%COMP%]{color:#098dcd;text-decoration:underline;cursor:pointer}.drop-area[_ngcontent-%COMP%]   .drop-info[_ngcontent-%COMP%]{width:180px;height:36px;font-size:13px;margin:51px auto 0;text-align:center;line-height:normal}.drop-area[_ngcontent-%COMP%]   .help-text[_ngcontent-%COMP%]{position:absolute;left:5px;top:5px;color:#bdc8d4;font-size:15px}section.list-view[_ngcontent-%COMP%]{max-height:270px;overflow-y:auto}section.list-view[_ngcontent-%COMP%]   .top-margin[_ngcontent-%COMP%]{margin-top:45px}section.list-view[_ngcontent-%COMP%]   .wrapper[_ngcontent-%COMP%]{height:auto;margin:0}.title-box[_ngcontent-%COMP%]{margin-bottom:21px}"]});let n=r;return n})();function Ou(n,r){if(n&1&&(p(0,"div",0),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function Pu(n,r){if(n&1){let o=P();p(0,"renderer-file-uploader",2),_("onFileChanged",function(t){u(o);let i=c();return f(i.fileChanged(t))}),d()}if(n&2){let o=c();l("allowMultiple",o.allowMultiple)("readonly",o.readonly)("title",o.control==null?null:o.control.name)("expandable",o.isExpandable)("values",o.values)("fieldUri",o.field.uri)("isPrimary",o.isPrimary)("isUploadEnabled",!o.readonly)("blacklistedUploadTypes",o.blacklistedAttachmentTypes)("maxFileSize",o.maxAttachmentSize)}}var js=(()=>{let r=class r{constructor(){this.readonly=!1,this.values=[],this.isExpandable=!1,this.showLabel=!0,this.onFileChanged=new y,this.maxAttachmentSize=yo.maxAttachmentSize,this.blacklistedAttachmentTypes=yo.blacklistedAttachmentTypes,this.i=0,this.allowMultiple=!0}ngOnChanges(e){e.control&&this.control&&(this.field=this.control.field)}fileChanged(e){this.onFileChanged.emit({field:this.field,fieldValue:e})}get isPrimary(){return this.i===0}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-file-upload"]],inputs:{control:"control",readonly:"readonly",values:"values",isExpandable:"isExpandable",showLabel:"showLabel"},outputs:{onFileChanged:"onFileChanged"},standalone:!0,features:[ti([Nr,fr,_r]),k,W],decls:2,vars:2,consts:[[1,"subtitle-box"],[1,"file-uploader",3,"allowMultiple","readonly","title","expandable","values","fieldUri","isPrimary","isUploadEnabled","blacklistedUploadTypes","maxFileSize"],[1,"file-uploader",3,"onFileChanged","allowMultiple","readonly","title","expandable","values","fieldUri","isPrimary","isUploadEnabled","blacklistedUploadTypes","maxFileSize"]],template:function(t,i){t&1&&h(0,Ou,2,1,"div",0)(1,Pu,1,10,"renderer-file-uploader",1),t&2&&(Ce(0,i.showLabel?0:-1),s(),Ce(1,i.field?1:-1))},dependencies:[E,Ar,vr,H,ye,Ns]});let n=r;return n})();var bu=(n,r)=>({"padding-left":n,"font-weight":r}),yu=n=>({label:n});function vu(n,r){if(n&1&&(p(0,"div",8),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function wu(n,r){n&1&&Ge(0)}function Su(n,r){n&1&&Ge(0)}function Tu(n,r){if(n&1&&h(0,Su,1,0,"ng-container",6),n&2){let o=c(),e=j(5),t=j(10);l("ngIf",(o.multiple?!!(o.selection!=null&&o.selection.length):!!o.selection)&&o.readonly||!o.readonly)("ngIfThen",t)("ngIfElse",e)}}function Eu(n,r){n&1&&(p(0,"div",9),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}function Iu(n,r){n&1&&b(0,"ui-loader",10)}function ku(n,r){if(n&1){let o=P();p(0,"i",17),_("click",function(){u(o);let t=c().item,i=c(2);return f(i.removeItem(t.uri))}),d()}}function Fu(n,r){if(n&1&&(p(0,"div",15),O(1),h(2,ku,1,0,"i",16),d()),n&2){let o=r.item,e=c(2);s(),S(" ",o.label," "),s(),l("ngIf",e.multiple&&e.required&&e.selection.length>1||e.multiple&&!e.required)}}function Ru(n,r){if(n&1&&(p(0,"div",18),O(1),d()),n&2){let o=r.item;l("ngStyle",Te(2,bu,o.hierarchy*10+"px",o.hierarchy===0?700:400)),s(),S(" ",o.label," ")}}function Du(n,r){if(n&1&&(p(0,"ui-error-popup"),O(1),C(2,"translate"),d()),n&2){let o=c(2);s(),S(" ",xe(2,1,"renderers.errors.required",q(4,yu,o.control==null?null:o.control.name))," ")}}function Vu(n,r){if(n&1){let o=P();p(0,"ng-select",11,4),C(2,"translate"),re("ngModelChange",function(t){u(o);let i=c();return ie(i.selection,t)||(i.selection=t),f(t)}),_("change",function(){u(o);let t=c();return f(t.updateValues(t.selection))})("focus",function(){u(o);let t=c();return f(t.focused())})("blur",function(){u(o);let t=c();return f(t.blurred())}),h(3,Fu,3,2,"ng-template",12)(4,Ru,2,5,"ng-template",13),d(),h(5,Du,3,6,"ui-error-popup",14)}if(n&2){let o=c();z("readonly",o.readonly)("error",o.hasError),l("items",o.options),ne("ngModel",o.selection),l("searchable",!0)("placeholder",M(2,14,"renderers.select.placeholder.default"))("clearable",!o.required)("dropdownPosition",o.dropdownPosition)("multiple",o.multiple)("closeOnSelect",!o.multiple)("appendTo","#"+o.dropdownId),s(5),l("ngIf",o.hasError)}}var Bs=(()=>{let r=class r{constructor(e){this.uriService=e,this.values=[],this.loading=!1,this.hasError=!1,this.readonly=!1,this.showLabel=!0,this.onSelectionChange=new y,this.required=!1,this.multiple=!1,this.dropdownPosition="auto",this.renderedValues=[],this.isFocused=!1,this.dropdownId=`ng-${this.uriService.generateUri(5)}`}ngOnChanges(e){e?.control&&this.control&&(this.field=this.control.field,this.evaluateRequired(),this.evaluateMaxCardinality(),this.getOptions()),e?.values&&(this.isFocused||(this.renderedValues=this.values,this.getOptions()))}removeItem(e){this.selection=this.selection.filter(t=>t.uri!==e),this.updateValues(this.selection)}updateValues(e){this.multiple?(this.required&&(this.hasError=!e.length),!this.hasError&&e!==null?this.onSelectionChange.emit({field:this.field,fieldValue:e.map(t=>t.uri)}):this.onSelectionChange.emit({field:this.field,fieldValue:null})):(this.required&&(this.hasError=Array.isArray(e)),!this.hasError&&e!==null?this.onSelectionChange.emit({field:this.field,fieldValue:e.uri}):this.onSelectionChange.emit({field:this.field,fieldValue:null}))}getOptions(){if(this.loading=!0,!this.field)return;let e=this.field.propertyValues.find(i=>i.fieldTypePropertyUri==="hierarchicalOptions_options"),t=JSON.parse(e.value);this.options=[],this.prepareOptions(t),this.getSelection()}prepareOptions(e,t=0,i){e.forEach((a,g)=>{this.options.push({uri:a.uri,label:a.label,hierarchy:t,index:g,parent:i});let m=a.options;m&&this.prepareOptions(m,t+1,a.uri)})}getSelection(){this.renderedValues?(this.selection=[],this.multiple?Array.isArray(this.renderedValues)?this.renderedValues.forEach(e=>{this.selection.push(this.options.filter(t=>t.uri===e)[0])}):this.selection.push(this.options.filter(e=>e.uri===this.renderedValues)[0]):Array.isArray(this.renderedValues)?this.renderedValues.forEach(e=>{this.selection=this.options.find(t=>t.uri===e)}):this.selection=this.options.find(e=>e.uri===this.renderedValues),this.loading&&(this.loading=!1)):this.loading=!1}evaluateRequired(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}evaluateMaxCardinality(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MAX_CARDINALITY));e?this.maxCardinality=parseInt(e.value,10):this.multiple=!0}focused(){this.isFocused=!0}blurred(){this.isFocused=!1}};r.\u0275fac=function(t){return new(t||r)(x(oi))},r.\u0275cmp=v({type:r,selectors:[["renderer-hierarchical-search-select"]],inputs:{control:"control",values:"values",loading:"loading",hasError:"hasError",readonly:"readonly",showLabel:"showLabel"},outputs:{onSelectionChange:"onSelectionChange"},standalone:!0,features:[k,W],decls:11,vars:5,consts:[["rendererTemp",""],["noDataTemp",""],["loadingTemp",""],["inputTemp",""],["selector",""],["class","subtitle-box",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"hierarchical-list-wrapper"],[1,"subtitle-box"],[1,"placeholder-no-input-data"],[1,"renderer-loader"],["bindLabel","label",3,"ngModelChange","change","focus","blur","items","ngModel","searchable","placeholder","clearable","dropdownPosition","multiple","closeOnSelect","appendTo"],["ng-label-tmp",""],["ng-option-tmp",""],[4,"ngIf"],[2,"height","auto"],["class","icon icon-close",3,"click",4,"ngIf"],[1,"icon","icon-close",3,"click"],[2,"height","auto",3,"ngStyle"]],template:function(t,i){if(t&1&&(h(0,vu,2,1,"div",5)(1,wu,1,0,"ng-container",6)(2,Tu,1,3,"ng-template",null,0,V)(4,Eu,3,3,"ng-template",null,1,V)(6,Iu,1,0,"ng-template",null,2,V),p(8,"div",7),h(9,Vu,6,16,"ng-template",null,3,V),d()),t&2){let a=j(3),g=j(7);l("ngIf",i.showLabel),s(),l("ngIf",i.loading)("ngIfThen",g)("ngIfElse",a),s(7),Wt("id",i.dropdownId)}},dependencies:[E,A,bn,fe,J,te,H,I,ye,Ie,xt,_e,ke,Ne,Je,rt],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%]     .ng-dropdown-panel{width:100%!important;min-width:100%!important}[_nghost-%COMP%]     .ng-select.error .ng-select-container{border:1px solid #f1245c!important}[_nghost-%COMP%]     .ng-select.ng-select-multiple.error .ng-select-container{border:1px solid #f1245c!important}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-value{padding:7px 14px;border-radius:5px;min-height:auto;margin:5px;display:flex;align-items:center}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-select-container{padding:0;min-height:40px;height:auto}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-placeholder{padding:7px 10px}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-value .ng-value-icon{font-size:20px;position:static;order:1;margin-left:7px}[_nghost-%COMP%]     .ng-select.ng-select-multiple input{height:40px}[_nghost-%COMP%]     .ng-select.ng-select-multiple .icon{font-size:10px;margin-left:5px;bottom:1px;position:relative;cursor:pointer}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}.hierarchical-list-wrapper[_ngcontent-%COMP%]{position:relative}"]});let n=r;return n})();var Uu=["inputfield"],Lu=n=>({"single-input-mode":n}),zs=n=>({focused:n}),Au=n=>({maxCardinality:n}),Nu=(n,r,o)=>({error:n,"edit-mode":r,editable:o}),ju=n=>({"alert-type":n}),Bu=n=>({empty:n});function zu(n,r){if(n&1){let o=P();p(0,"div",6)(1,"label",7),_("click",function(){u(o);let t=c();return f(t.addRow())}),b(2,"span",8),C(3,"translate"),d()()}if(n&2){let o=c();s(),l("ngClass",q(4,zs,o.focused)),s(),l("title",M(3,2,"hyperlink-editor.add"))}}function Gu(n,r){if(n&1){let o=P();p(0,"div",6)(1,"label",7),_("click",function(){u(o);let t=c();return f(t.showDisabledAdd())}),b(2,"span",8),C(3,"translate"),d()()}if(n&2){let o=c();s(),l("ngClass",q(4,zs,o.focused)),s(),l("title",M(3,2,"hyperlink-editor.add"))}}function qu(n,r){if(n&1){let o=P();p(0,"div"),b(1,"input",11),C(2,"translate"),p(3,"div",12,1),_("blur",function(){u(o);let t=c(2);return f(t.focused=!1)}),d()()}if(n&2){let o=c(2);s(),l("title",xe(2,1,"hyperlink-editor.maxCardinality",q(4,Au,o.maxCardinality)))}}function Hu(n,r){if(n&1&&(p(0,"div",21)(1,"ui-error-popup")(2,"span"),O(3),d()()()),n&2){let o=c(2).$implicit;l("ngClass",q(2,ju,o.info.type==="alert")),s(3),R(o.info.message)}}function Wu(n,r){if(n&1){let o=P();p(0,"div",22)(1,"ui-button",23),_("click",function(t){u(o);let i=c(2).index,a=c(2);return f(a.onSubmit(t,i))}),b(2,"span",24),C(3,"translate"),d(),p(4,"ui-button",25),_("click",function(t){u(o);let i=c(2).index,a=c(2);return f(a.onCancel(t,i))}),b(5,"span",26),C(6,"translate"),d()()}n&2&&(s(2),l("title",M(3,2,"hyperlink-editor.submit")),s(3),l("title",M(6,4,"hyperlink-editor.cancel")))}function Qu(n,r){if(n&1){let o=P();p(0,"form")(1,"div",17)(2,"input",18,1),re("ngModelChange",function(t){u(o);let i=c().$implicit;return ie(i.value,t)||(i.value=t),f(t)}),_("keyup",function(){u(o);let t=c().index,i=c(2);return f(i.onKeyup(t))})("keyup.enter",function(t){u(o);let i=c().index,a=c(2);return f(a.onSubmit(t,i))})("keyup.escape",function(t){u(o);let i=c().index,a=c(2);return f(a.onCancel(t,i))})("ngModelChange",function(t){u(o);let i=c().index,a=c(2);return f(a.trimValue(t,i))})("blur",function(t){u(o);let i=c().index,a=c(2);return f(a.onBlur(t,i))}),d()(),h(4,Hu,4,4,"div",19)(5,Wu,7,6,"div",20),d()}if(n&2){let o=c().$implicit,e=c(2);s(2),At("placeholder",e.placeholder),ne("ngModel",o.value),s(2),l("ngIf",o.info.hasMessage),s(),l("ngIf",e.canEdit&&e.inline)}}function $u(n,r){if(n&1){let o=P();p(0,"ui-button",27),_("click",function(t){u(o);let i=c().index,a=c(2);return f(a.editText(t,i))}),b(1,"span",28),C(2,"translate"),d()}if(n&2){let o=c().$implicit;l("ngClass",q(4,Bu,!o.enableDelete||!o.value)),s(),l("title",M(2,2,"hyperlink-editor.edit"))}}function Yu(n,r){if(n&1){let o=P();p(0,"ui-button",29),_("click",function(t){u(o);let i=c().index,a=c(2);return f(a.deleteText(t,i))}),b(1,"span",30),C(2,"translate"),d()}n&2&&(s(),l("title",M(2,1,"hyperlink-editor.delete")))}function Xu(n,r){if(n&1&&(p(0,"span",34)(1,"a",35),b(2,"span",36),p(3,"span"),O(4),d()()()),n&2){let o=c(2).$implicit;s(),At("href",o.value,Lt),s(3),R(o.value)}}function Ju(n,r){if(n&1&&(p(0,"span",37),O(1),C(2,"translate"),d()),n&2){let o=c(4);s(),R(o.canEdit?o.placeholder:M(2,1,"hyperlink-editor.readOnlyNoInput"))}}function Ku(n,r){if(n&1&&(p(0,"div",31),h(1,Xu,5,2,"span",32)(2,Ju,3,3,"span",33),d()),n&2){let o=c().$implicit,e=c(2);s(),l("ngIf",!e.isEmpty(o.value)),s(),l("ngIf",e.isEmpty(o.value))}}function Zu(n,r){if(n&1){let o=P();p(0,"div",13),_("click",function(t){return u(o),f(t.stopPropagation())}),h(1,Qu,6,4,"form",9)(2,$u,3,6,"ui-button",14)(3,Yu,3,3,"ui-button",15)(4,Ku,3,2,"div",16),d()}if(n&2){let o=r.$implicit,e=c(2);l("ngClass",nr(6,Nu,o.info.hasMessage&&o.info.type==="error",o.editMode,e.canEdit))("hidden",o.hidden),s(),l("ngIf",o.editMode),s(),l("ngIf",e.canEdit&&!o.editMode),s(),l("ngIf",!o.editMode&&e.canEdit&&o.enableDelete&&o.value),s(),l("ngIf",!o.editMode)}}function ef(n,r){if(n&1&&(Y(0),h(1,qu,5,6,"div",9)(2,Zu,5,10,"div",10),X()),n&2){let o=c();s(),l("ngIf",!o.showAddButton&&o.maxCardinality>1&&o.focused&&o.hyperLinkViewList[0].value&&!o.hyperLinkViewList[0].isDirty),s(),l("ngForOf",o.hyperLinkViewList)}}function tf(n,r){n&1&&(p(0,"div",39),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"hyperlink-editor.readOnlyNoInput")," "))}function nf(n,r){if(n&1&&h(0,tf,3,3,"div",38),n&2){let o=c();l("ngIf",!o.canEdit)}}var vo=300,Gs=(()=>{let r=class r{constructor(e){this.translate=e,this.placeholder="",this.defaultHttpProtocol="http://",this.canEdit=!1,this.inline=!0,this.onSubmitted=new y,this.onDeleted=new y,this.onDirtyStateChanged=new y,this.focusChanged=new y,this.hasErrorOccurred=new y,this.hyperLinkViewList=[],this.showAddButton=!1,this.isRequired=!1,this.focused=!1,this.isPristine=!0,this.editingItemIndex=null}ngOnInit(){this.items&&this.assignHyperLinkViewList(this.items),!this.hyperLinkViewList.length&&this.inline&&this.addRow(!1),this.evaluateShowAddButton(),this.evaluateShowDeleteButton()}ngOnChanges(e){e.canEdit&&!e.canEdit.firstChange&&this.evaluateShowAddButton(),e.items&&!e.items.firstChange&&(this.assignHyperLinkViewList(e.items.currentValue),this.evaluateShowAddButton(),this.evaluateShowDeleteButton())}assignHyperLinkViewList(e){let t=Array.isArray(e)?e:[e];this.hyperLinkViewList=t.map(i=>({editMode:!this.inline&&i==="",value:i,previousValue:i,info:{message:null,hasMessage:!1,type:null},enableDelete:!0,new:i==="",hidden:!1}))}evaluateShowAddButton(){this.showAddButton=this.canEdit&&(this.isEmpty(this.maxCardinality)||this.maxCardinality>1&&this.hyperLinkViewList.length<this.maxCardinality)}evaluateShowDeleteButton(){let e=this.getNonEmptyView(this.hyperLinkViewList).length;this.hyperLinkViewList=this.hyperLinkViewList.map(t=>(t.enableDelete=!(this.inline&&this.minCardinality&&e<=this.minCardinality),t))}editText(e,t){if(e.stopPropagation(),!this.inline){this.editingItemIndex=t,this.hyperLinkViewList[0].value=this.hyperLinkViewList[t].value,this.hyperLinkViewList[0].editMode=!0,this.hyperLinkViewList[0].info.hasMessage=!1,this.hyperLinkViewList[0].info.message=null,this.hyperLinkViewList[0].info.type=null,this.hasErrorOccurred.emit(!1),this.hyperLinkViewList[t].hidden=!0,this.inputField.nativeElement.focus();return}if(this.hyperLinkViewList.find(i=>i.editMode&&i.isDirty)){this.inputField.nativeElement.focus();let i=this.hyperLinkViewList.find(a=>a.editMode);i.info={message:this.translate.instant("hyperlink-editor.hasDirtyField"),type:"alert",hasMessage:!0}}else{let i=this.hyperLinkViewList.find(a=>a.editMode);i&&(i.editMode=!1,i.new&&this.hyperLinkViewList.length>1&&(this.hyperLinkViewList.shift(),t--),clearTimeout(this.onBlurTimeoutId),this.focused=!1,this.focusChanged.emit(this.focused)),this.prevContent=JSON.parse(JSON.stringify(this.hyperLinkViewList)),this.hyperLinkViewList[t].editMode=!0,setTimeout(()=>this.inputField.nativeElement.focus(),vo)}}prependProtocol(e){this.hyperLinkViewList[e]&&this.hyperLinkViewList[e].value&&this.hyperLinkViewList[e].value.indexOf("http")&&(this.hyperLinkViewList[e].value=this.defaultHttpProtocol+this.hyperLinkViewList[e].value)}onSubmit(e,t){e?.stopPropagation();let i=t;if(clearTimeout(this.onBlurTimeoutId),this.editingItemIndex&&(t=this.editingItemIndex),this.prependProtocol(t),this.hyperLinkViewList=this.setHyperLinkValidations(i,this.hyperLinkViewList),this.hyperLinkViewList[i].info.hasMessage&&this.hyperLinkViewList[i].info.type==="error"){this.hasErrorOccurred.emit(!0);return}let a=!Array.isArray(this.items)&&!this.isMultiValueEnabled()&&this.hyperLinkViewList.length===1;this.editingItemIndex&&(this.hyperLinkViewList[t].value=this.hyperLinkViewList[0].value);let g=this.getNonEmptyView(this.hyperLinkViewList,!this.editingItemIndex).map(m=>m.value);this.onSubmitted.emit({changedIndex:t,items:a?g[0]:g}),this.inline?(this.hyperLinkViewList[t].editMode=!1,this.hyperLinkViewList[t].previousValue=this.hyperLinkViewList[t].value,this.hyperLinkViewList[t].isDirty=!1,delete this.hyperLinkViewList[t].new,this.checkDirtyState(),this.evaluateShowAddButton(),this.evaluateShowDeleteButton(),this.focused=!1,this.focusChanged.emit(this.focused),this.editingItemIndex=null):(this.items=a?g[0]:g,this.assignHyperLinkViewList(["",...this.items]))}onBlur(e,t){this.editingItemIndex&&(t=this.editingItemIndex),clearTimeout(this.onBlurTimeoutId),this.inline||this.editingItemIndex&&this.hyperLinkViewList[t].value===this.hyperLinkViewList[0].value?this.onBlurTimeoutId=window.setTimeout(()=>{this.hyperLinkViewList[t].isDirty||this.onCancel(e,t)},vo):setTimeout(()=>{this.onSubmit(void 0,0)},vo)}onCancel(e,t){if(e.stopPropagation(),clearTimeout(this.onBlurTimeoutId),this.focused=!1,this.focusChanged.emit(this.focused),this.inline||(this.hyperLinkViewList[t].hidden=!1,this.hyperLinkViewList[0].value=null,this.hyperLinkViewList[0].previousValue=null),this.hyperLinkViewList[t].new&&this.hyperLinkViewList.length>1){this.hyperLinkViewList.splice(t,1),this.evaluateShowAddButton(),this.evaluateShowDeleteButton(),this.checkDirtyState(),this.editingItemIndex=null;return}this.hyperLinkViewList[t].info.hasMessage=!1,this.hyperLinkViewList[t].editMode=!1,this.hyperLinkViewList[t].isDirty&&(this.hyperLinkViewList[t].value=this.hyperLinkViewList[t].new?"":this.prevContent[t].value),this.hyperLinkViewList[t].isDirty=!1,this.evaluateShowAddButton(),this.evaluateShowDeleteButton(),this.checkDirtyState(),this.editingItemIndex=null}deleteText(e,t){e.stopPropagation(),this.hyperLinkViewList.splice(t,1),this.prevContent&&this.prevContent.splice(t,1);let i=!Array.isArray(this.items)&&!this.isMultiValueEnabled()&&this.hyperLinkViewList.length===0;this.onDeleted.emit({changedIndex:t,items:i?null:this.hyperLinkViewList.map(a=>a.value).filter(a=>!!a)}),this.hyperLinkViewList.length===0&&this.addRow(!1),this.evaluateShowAddButton(),this.evaluateShowDeleteButton()}showDisabledAdd(){let e=this.hyperLinkViewList.find(t=>t.editMode);if(e&&!e.isDirty)e.editMode=!1,clearTimeout(this.onBlurTimeoutId),this.focused=!1,this.focusChanged.emit(this.focused);else if(e){this.inputField.nativeElement.focus(),e.info={message:this.translate.instant("hyperlink-editor.hasDirtyField"),type:"alert",hasMessage:!0},this.evaluateShowAddButton();return}this.focused=!0,this.focusChanged.emit(this.focused),setTimeout(()=>this.inputField?this.inputField.nativeElement.focus():null,100)}addRow(e=!0){if(!this.inline&&this.hyperLinkViewList[0].value){this.onSubmit(void 0,0);return}if(this.hyperLinkViewList[0]&&this.hyperLinkViewList[0].new){this.prevContent=JSON.parse(JSON.stringify(this.hyperLinkViewList)),this.hyperLinkViewList[0].editMode=!0,setTimeout(()=>{this.inputField.nativeElement.focus(),this.focused=!0,this.focusChanged.emit(this.focused)},100);return}else{let t=this.hyperLinkViewList.find(i=>i.editMode);if(t&&!t.isDirty)t.editMode=!1,clearTimeout(this.onBlurTimeoutId),this.focused=!1,this.focusChanged.emit(this.focused);else if(t){this.inputField.nativeElement.focus(),t.info={message:this.translate.instant("hyperlink-editor.hasDirtyField"),type:"alert",hasMessage:!0},this.evaluateShowAddButton();return}this.prevContent=JSON.parse(JSON.stringify(this.hyperLinkViewList)),this.hyperLinkViewList.unshift({editMode:e,value:null,previousValue:null,info:{message:null,hasMessage:!1,type:null},new:!0,enableDelete:!0}),setTimeout(()=>{this.inputField&&(this.inputField.nativeElement.focus(),this.focused=!0,this.focusChanged.emit(this.focused))},100),this.evaluateShowAddButton()}}trimValue(e,t){this.hyperLinkViewList[t].value=e.trim()}isEmpty(e){return e==null||e===""}get isItemsEmpty(){return Array.isArray(this.items)?this.items.filter(e=>!this.isEmpty(e)&&this.validateHyperLink(e)).length===0:this.isEmpty(this.items)}validateHyperLink(e){let Me="(?:(?:(?:(?:https?|ftp):)?\\/\\/?)|www\\.)(?:\\S+(?::\\S*)?@)?(?:localhost|(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}|(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})\\.?))(?::\\d{2,5})?(?:[/?#]\\S*)?";return new RegExp(`(?:^${Me}$)`,"i").test(e)}setHyperLinkValidations(e,t){return t[e].info.hasMessage=!1,t[e].info.message=null,t[e].info.type=null,this.hasErrorOccurred.emit(!1),this.isRequired=!1,!this.isEmpty(this.minCardinality)&&!(this.getNonEmptyView(t).length>=this.minCardinality)&&(this.isRequired=!0),this.isRequired&&this.isEmpty(t[e].value)?(t[e].info.hasMessage=!0,t[e].info.message=this.validationMessages.required,t[e].info.type="error",this.hasErrorOccurred.emit(!0),t):(!this.isEmpty(t[e].value)&&!this.validateHyperLink(t[e].value)&&(t[e].info.hasMessage=!0,t[e].info.message=this.validationMessages.invalidUrl,t[e].info.type="error",this.hasErrorOccurred.emit(!0)),t)}getNonEmptyView(e,t=!1){return e.filter(i=>(t||!i.new)&&!this.isEmpty(i.value))}isMultiValueEnabled(){return this.isEmpty(this.maxCardinality)||this.maxCardinality>0}onKeyup(e){let t=this.hyperLinkViewList[e];t.value!==t.previousValue&&!t.isDirty&&(t.isDirty=!0,this.checkDirtyState())}checkDirtyState(){let e=!1;this.hyperLinkViewList.some(t=>{if(t.isDirty)return e=!0,!0}),this.isPristine===e&&(this.isPristine=!e,this.onDirtyStateChanged.next(e))}};r.\u0275fac=function(t){return new(t||r)(x(K))},r.\u0275cmp=v({type:r,selectors:[["ui-hyperlink-editor"]],viewQuery:function(t,i){if(t&1&&Le(Uu,5),t&2){let a;we(a=Se())&&(i.inputField=a.first)}},inputs:{items:"items",placeholder:"placeholder",defaultHttpProtocol:"defaultHttpProtocol",canEdit:"canEdit",validationMessages:"validationMessages",maxCardinality:"maxCardinality",minCardinality:"minCardinality",inline:"inline"},outputs:{onSubmitted:"onSubmitted",onDeleted:"onDeleted",onDirtyStateChanged:"onDirtyStateChanged",focusChanged:"focusChanged",hasErrorOccurred:"hasErrorOccurred"},features:[k],decls:7,vars:7,consts:[["noValueReadonly",""],["inputfield",""],[1,"hyperlink-editor-wrapper"],["class","add-link-block",4,"ngIf"],[1,"links-container",3,"ngClass"],[4,"ngIf","ngIfElse"],[1,"add-link-block"],[1,"add-link",3,"click","ngClass"],[1,"icon","icon-add-link",3,"title"],[4,"ngIf"],["class","multiple-inline-input wrap focused inline-submit",3,"ngClass","hidden","click",4,"ngFor","ngForOf"],["type","text","disabled","",1,"form-textarea","disabled",3,"title"],["tabindex","0",3,"blur"],[1,"multiple-inline-input","wrap","focused","inline-submit",3,"click","ngClass","hidden"],["class","button-icon btn-edit",3,"ngClass","click",4,"ngIf"],["class","button-icon btn-delete",3,"click",4,"ngIf"],["class","output wrap-output",4,"ngIf"],[1,"editor-input"],["type","text","name","itemName",1,"form-textarea",3,"ngModelChange","keyup","keyup.enter","keyup.escape","blur","placeholder","ngModel"],[3,"ngClass",4,"ngIf"],["class","btns-group",4,"ngIf"],[3,"ngClass"],[1,"btns-group"],[1,"button-icon","btn-submit","inline-edit-button",3,"click"],[1,"icon","icon-close-edit",3,"title"],[1,"button-icon","btn-cancel","inline-edit-button",3,"click"],[1,"icon","icon-close",3,"title"],[1,"button-icon","btn-edit",3,"click","ngClass"],[1,"icon","icon-edit",3,"title"],[1,"button-icon","btn-delete",3,"click"],[1,"icon","icon-remove",3,"title"],[1,"output","wrap-output"],["class","item-link",4,"ngIf"],["class","ouput-placeholder readonly-text",4,"ngIf"],[1,"item-link"],["target","_blank",3,"href"],[1,"icon","icon-external-link"],[1,"ouput-placeholder","readonly-text"],["class","readonly-text",4,"ngIf"],[1,"readonly-text"]],template:function(t,i){if(t&1&&(p(0,"div",2),h(1,zu,4,6,"div",3)(2,Gu,4,6,"div",3),p(3,"div",4),h(4,ef,3,2,"ng-container",5),d()(),h(5,nf,1,1,"ng-template",null,0,V)),t&2){let a=j(6);s(),l("ngIf",i.showAddButton),s(),l("ngIf",!i.showAddButton&&i.maxCardinality>1&&i.canEdit),s(),l("ngClass",q(5,Lu,i.maxCardinality<=1||!i.canEdit)),s(),l("ngIf",i.hyperLinkViewList&&i.hyperLinkViewList.length)("ngIfElse",a)}},dependencies:[de,Oe,A,rr,nn,J,ni,te,ir,rt,li,I],styles:['[_nghost-%COMP%]{display:block;position:relative}[_nghost-%COMP%]   .button-primary.button-add-link[_ngcontent-%COMP%]     button{width:36px;height:36px;padding:0;background:transparent;color:#098dcd;font-size:20px;font-weight:600}[_nghost-%COMP%]   .button-primary.button-add-link[_ngcontent-%COMP%]     button:hover{background:#098dcd;color:#fff}[_nghost-%COMP%]   .button-primary.button-add-link[_ngcontent-%COMP%]   .error.inline-submit[_ngcontent-%COMP%]   .error-element[_ngcontent-%COMP%]{min-height:auto}[_nghost-%COMP%]   .button-primary.button-add-link[_ngcontent-%COMP%]   .error.inline-submit[_ngcontent-%COMP%]   .error-message.bottom[_ngcontent-%COMP%]{max-width:calc(100% - 80px)}.button-icon[_ngcontent-%COMP%]{position:absolute;right:-1px;top:-1px;border-radius:100%;width:30px;height:30px;padding:2px;background:#627588;z-index:100;box-shadow:1px 1px 4px #3f445233;transition:background .2s ease-in-out}.button-icon[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%]{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:17px;color:#fff}.button-icon[_ngcontent-%COMP%]:hover{background:#4d5c6a}.button-icon.btn-edit[_ngcontent-%COMP%]{right:39px}.button-icon.btn-edit.empty[_ngcontent-%COMP%]{right:0}.wrap[_ngcontent-%COMP%]{min-height:30px;position:relative;margin-bottom:12px}.wrap[_ngcontent-%COMP%]   .button-icon[_ngcontent-%COMP%]{opacity:0}.wrap.editable[_ngcontent-%COMP%]{margin-top:6px}.wrap.editable[_ngcontent-%COMP%]:hover{position:relative}.wrap.editable[_ngcontent-%COMP%]:hover   .output[_ngcontent-%COMP%]{z-index:1;position:relative}.wrap.editable[_ngcontent-%COMP%]:hover:before{content:"";display:block;position:absolute;width:calc(100% + 12px);height:calc(100% + 12px);top:-6px;left:-6px;background:#eff2f4cc;border-radius:6px;padding:0;z-index:0;pointer-events:none}.wrap.editable[_ngcontent-%COMP%]:hover   .button-icon[_ngcontent-%COMP%]{opacity:1}.wrap.editable.edit-mode[_ngcontent-%COMP%]{margin-top:0}.wrap.editable.edit-mode[_ngcontent-%COMP%]:before{background:transparent}.wrap[_ngcontent-%COMP%]   .wrap-output[_ngcontent-%COMP%]{padding:5px 0}.wrap[_ngcontent-%COMP%]   .wrap-output[_ngcontent-%COMP%]   .item-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{color:#098dcd;cursor:pointer;display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.wrap[_ngcontent-%COMP%]   .wrap-output[_ngcontent-%COMP%]   .item-link[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{padding-right:5px}.form-textarea[_ngcontent-%COMP%]{padding:7px 10px;display:block;width:100%;height:100%;min-height:40px}.error[_ngcontent-%COMP%]{z-index:1}.error[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border:1px solid #f1245c}.btns-group[_ngcontent-%COMP%]{text-align:right;margin-top:8px;margin-bottom:8px}.btns-group[_ngcontent-%COMP%]   .button-icon[_ngcontent-%COMP%]{opacity:1}.btn-submit[_ngcontent-%COMP%], .btn-cancel[_ngcontent-%COMP%]{display:inline-block;margin-left:7px;position:relative;box-shadow:1px 1px 4px #3f445233;cursor:pointer}.btn-submit[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%], .btn-cancel[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%]{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition:all .2s ease-in-out}.btn-cancel[_ngcontent-%COMP%]{background:#eff2f4}.btn-cancel[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%]{font-size:14px;color:#627588}.btn-cancel[_ngcontent-%COMP%]:hover{background:#b4bfc9}.btn-cancel[_ngcontent-%COMP%]:hover   span.icon[_ngcontent-%COMP%]{color:#fff}.btn-submit[_ngcontent-%COMP%]{background:#e6f6fe}.btn-submit[_ngcontent-%COMP%]   span.icon[_ngcontent-%COMP%]{font-size:18px;color:#098dcd}.btn-submit[_ngcontent-%COMP%]:hover{background:#098dcd}.btn-submit[_ngcontent-%COMP%]:hover   span.icon[_ngcontent-%COMP%]{color:#fff}.ouput-placeholder[_ngcontent-%COMP%]{color:#627588}.hyperlink-editor-wrapper[_ngcontent-%COMP%]{display:flex}.add-link-block[_ngcontent-%COMP%]{width:42px;margin-right:10px}.add-link-block[_ngcontent-%COMP%]   .add-link[_ngcontent-%COMP%]{font-size:28px;color:#098dcd;font-weight:300;width:42px;padding:3.5px 7px;float:left;cursor:pointer;flex:0 0 auto}.add-link-block[_ngcontent-%COMP%]   .add-link.focused[_ngcontent-%COMP%]{position:relative;text-align:center}.add-link-block[_ngcontent-%COMP%]   .add-link.focused[_ngcontent-%COMP%]:before{content:"";display:block;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);position:absolute;height:42px;width:100%;border-radius:65px;z-index:0;background:#098dcd1a}.single-input-mode[_ngcontent-%COMP%]{width:100%}.links-container[_ngcontent-%COMP%]{flex:0 0 auto;width:calc(100% - 52px)}.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.alert-type[_ngcontent-%COMP%]     ui-error-popup .error-message{background-color:#f0b111}.alert-type[_ngcontent-%COMP%]     ui-error-popup .error-message.bottom:before{border-bottom-color:#f0b111}']});let n=r;return n})();var qs={};var So={"hyperlink-editor":{add:"Add",submit:"Submit",cancel:"Cancel",edit:"Edit",delete:"Delete",readOnlyNoInput:"None",hasDirtyField:"You have unsaved changes.",maxCardinality:"You're only allowed to add up to {{ maxCardinality }} links."}};var Hs=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:So,de:qs}[t]||So))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H,fe,Je,Sn]});let n=r;return n})();var of=()=>[""],Ws=n=>({label:n}),af=()=>({label:"URL"}),lf=(n,r)=>({required:n,invalidUrl:r});function sf(n,r){if(n&1&&(p(0,"div",6),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function cf(n,r){n&1&&Ge(0)}function pf(n,r){n&1&&Ge(0)}function df(n,r){if(n&1&&h(0,pf,1,0,"ng-container",5),n&2){let o=c(),e=j(5),t=j(9);l("ngIf",(o.renderedValue==null?null:o.renderedValue.length)&&o.readonly||!o.readonly)("ngIfThen",t)("ngIfElse",e)}}function gf(n,r){n&1&&(p(0,"div",7),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}function mf(n,r){n&1&&b(0,"ui-loader",8)}function uf(n,r){if(n&1&&(p(0,"ui-error-popup"),O(1),C(2,"translate"),d()),n&2){let o=c(2);s(),S(" ",xe(2,1,"renderers.errors.required",q(4,Ws,o.control==null?null:o.control.name))," ")}}function ff(n,r){if(n&1){let o=P();p(0,"ui-hyperlink-editor",9),C(1,"translate"),C(2,"translate"),C(3,"translate"),_("onSubmitted",function(t){u(o);let i=c();return f(i.onTextUpdate(t.items))})("onDeleted",function(t){u(o);let i=c();return f(i.onTextUpdate(t.items))})("onDirtyStateChanged",function(t){u(o);let i=c();return f(i.dirtyStateChanged(t))})("focusChanged",function(t){u(o);let i=c();return f(i.focusChanged(t))})("hasErrorOccurred",function(t){u(o);let i=c();return f(i.hasErrorChanged(t))}),d(),h(4,uf,3,6,"ui-error-popup",10)}if(n&2){let o=c();l("items",o.renderedValue!=null&&o.renderedValue.length?o.renderedValue:Gn(16,of))("canEdit",!o.readonly)("inline",o.isInline)("validationMessages",Te(20,lf,xe(1,8,"renderers.errors.required",q(17,Ws,o.control==null?null:o.control.name)),xe(2,11,"renderers.errors.hyperlink",Gn(19,af))))("minCardinality",o.minCardinality)("maxCardinality",o.maxCardinality)("placeholder",M(3,14,"renderers.addHyperlink")),s(4),l("ngIf",o.hasError)}}var Qs=(()=>{let r=class r{constructor(){this.value=[],this.loading=!1,this.hasError=!1,this.readonly=!1,this.showLabel=!0,this.isInline=!0,this.onTextSubmit=new y,this.onDirtyStateChanged=new y,this.hasErrorOccurred=new y,this.minCardinality=0,this.maxCardinality=null,this.required=!1,this.focused=!1}ngOnChanges(e){e.field&&e.field.currentValue&&this.evaluateMinMax(),e.value&&!this.focused&&(this.renderedValue=this.value,!this.isInline&&this.renderedValue&&!this.renderedValue?.includes("")&&(this.renderedValue=["",...this.renderedValue]))}onTextUpdate(e){this.required&&(this.hasError=!e.length),this.onTextSubmit.emit({field:this.field,fieldValue:e})}dirtyStateChanged(e){this.onDirtyStateChanged.emit(e)}evaluateMinMax(){let e=this.field?.propertyValues?.find(i=>i.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY)),t=this.field?.propertyValues?.find(i=>i.fieldTypePropertyUri.endsWith(Re.MAX_CARDINALITY));e&&e.value&&(this.minCardinality=parseInt(e.value,10),this.required=parseInt(e.value,10)>0),t&&t.value&&(this.maxCardinality=parseInt(t.value,10))}focusChanged(e){this.focused=e}hasErrorChanged(e){this.field&&this.hasErrorOccurred.emit({hasError:e,field:this.field})}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-hyperlink"]],inputs:{control:"control",value:"value",loading:"loading",hasError:"hasError",readonly:"readonly",showLabel:"showLabel",field:"field",isInline:"isInline"},outputs:{onTextSubmit:"onTextSubmit",onDirtyStateChanged:"onDirtyStateChanged",hasErrorOccurred:"hasErrorOccurred"},standalone:!0,features:[k,W],decls:10,vars:4,consts:[["rendererTemp",""],["noDataTemp",""],["loadingTemp",""],["inputTemp",""],["class","subtitle-box",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle-box"],[1,"placeholder-no-input-data"],[1,"renderer-loader"],[3,"onSubmitted","onDeleted","onDirtyStateChanged","focusChanged","hasErrorOccurred","items","canEdit","inline","validationMessages","minCardinality","maxCardinality","placeholder"],[4,"ngIf"]],template:function(t,i){if(t&1&&h(0,sf,2,1,"div",4)(1,cf,1,0,"ng-container",5)(2,df,1,3,"ng-template",null,0,V)(4,gf,3,3,"ng-template",null,1,V)(6,mf,1,0,"ng-template",null,2,V)(8,ff,5,23,"ng-template",null,3,V),t&2){let a=j(3),g=j(7);l("ngIf",i.showLabel),s(),l("ngIf",i.loading)("ngIfThen",g)("ngIfElse",a)}},dependencies:[E,A,H,I,Hs,Gs,ye,Ie,Je,rt],styles:["[_nghost-%COMP%]     .add-link-block{line-height:1.2}[_nghost-%COMP%]     .wrap.editable .output.wrap-output{padding:3px 0}[_nghost-%COMP%]     .ouput-placeholder.readonly-text{font-size:14px}[_nghost-%COMP%]     ui-loader{margin:0 auto}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var _f=(n,r,o)=>({"has-error":n,"inline-submit":r,focused:o}),hf=n=>({disabled:n}),Cf=n=>({"readonly-title":n}),$s=(n,r)=>({readonly:n,"no-unit":r});function xf(n,r){if(n&1&&(p(0,"div",12),O(1),d()),n&2){let o=c();s(),S(" ",o.label,`
`)}}function Mf(n,r){if(n&1&&(p(0,"div",13)(1,"span",14),O(2),d()()),n&2){let o=c();l("ngClass",q(2,Cf,o.readonly)),s(2),R(o.unitLabel)}}function Of(n,r){if(n&1){let o=P();p(0,"input",15,0),re("ngModelChange",function(t){u(o);let i=c();return ie(i.model,t)||(i.model=t),f(t)}),_("focus",function(){u(o);let t=c();return f(t.onFocusEvent(!0))})("change",function(t){u(o);let i=c();return f(i.onInputChange(t))})("keyup",function(t){u(o);let i=c();return f(i.onKeyupEvent(t))})("keyup.enter",function(t){u(o);let i=c();return f(i.onNumberSubmit(t))})("blur",function(t){u(o);let i=c();return f(i.hasSubmit?"":i.onNumberSubmit(t))}),d()}if(n&2){let o=c();ne("ngModel",o.model),l("disabled",o.disabled)("ngClass",Te(4,$s,o.disabled,!o.unitLabel))("placeholder",o.placeholder)}}function Pf(n,r){if(n&1){let o=P();p(0,"input",16,1),re("ngModelChange",function(t){u(o);let i=c();return ie(i.modelText,t)||(i.modelText=t),f(t)}),_("focus",function(){u(o);let t=c();return f(t.onFocusEvent(!0))}),d()}if(n&2){let o=c();ne("ngModel",o.modelText),l("disabled",o.disabled)("ngClass",Te(4,$s,o.disabled,!o.unitLabel))("placeholder",o.placeholder)}}function bf(n,r){if(n&1&&(p(0,"span",17),O(1),C(2,"translate"),d()),n&2){let o=c();s(),R(o.modelText||M(2,1,"number-input.readOnlyNoInput"))}}function yf(n,r){n&1&&Ge(0)}function vf(n,r){if(n&1&&(p(0,"div",18)(1,"ui-error-popup"),h(2,yf,1,0,"ng-container",19),d()()),n&2){let o=c();s(2),l("ngTemplateOutlet",o.validationError)}}function wf(n,r){if(n&1){let o=P();p(0,"div",20)(1,"ui-button",21),_("click",function(){u(o);let t=c();return f(t.onNumberSubmit(t.model))}),b(2,"i",22),d(),p(3,"ui-button",23),_("click",function(t){u(o);let i=c();return f(i.onCancelEvent(t))}),b(4,"i",24),d()()}}var Ys=(()=>{let r=class r extends qn{constructor(){super(),this.unitLabel="",this.label="",this.disabled=!1,this.readonly=!1,this.modelText="",this.showUi=!0,this.numberInvalid=!0,this.toggleInput=!1,this.locale=navigator.language}ngOnInit(){super.setMinMaxValue(this.min,this.max),this.prevModel=this.model,this.onFocus.pipe(L(this.destroyRef)).subscribe(e=>{e&&!this.readonly&&!this.disabled&&setTimeout(()=>{this.formInput?.nativeElement.focus()},0)})}ngOnChanges(e){e.model&&(e.model.currentValue!==null&&e.model.currentValue!==void 0?(this.prevModel=this.model,this.modelText=Number(this.model).toLocaleString(this.locale)):this.modelText="")}onNumberSubmit(e){this.hasError=!1;try{this.hasMin=this.min!==null&&this.min!==void 0}catch{this.hasMin=!1}try{this.hasMax=this.max!==null&&this.max!==void 0}catch{this.hasMax=!1}if(this.required&&(e==null||e==="")){this.hasError=!0,this.hasErrorOccurred.emit(this.hasError);return}typeof e=="number"&&this.checkMinMax(e),this.formatModel()}onInputChange(e){!this.hasSubmit&&this.submitOnChange&&this.onNumberSubmit(e.target.valueAsNumber),this.isPristine=!1,this.onDirtyStateChanged.emit(!0)}checkMinMax(e){if(this.hasMin&&Number(e)<this.min){this.hasError=!0,this.hasErrorOccurred.emit(this.hasError);return}if(this.hasMax&&Number(e)>this.max){this.hasError=!0,this.hasErrorOccurred.emit(this.hasError);return}}formatModel(){this.hasError||(typeof this.model=="number"?this.modelText=Number(this.model).toLocaleString(this.locale):(this.model=null,this.modelText=""),this.model=this.model===null||this.model===void 0?"":this.model.toString(),this.onSubmit(this.model,!0))}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui-number-input"]],inputs:{unitLabel:"unitLabel",label:"label",disabled:"disabled",readonly:"readonly",max:"max",min:"min",showUi:"showUi"},features:[Zi,k],decls:10,vars:15,consts:[["formInput",""],["formOutput",""],["class","label",4,"ngIf"],["action","","ngNativeValidate","","novalidate","novalidate",1,"form",3,"ngSubmit","ngClass"],[1,"input-wrapper",3,"ngClass"],["class","title",3,"ngClass",4,"ngIf"],[1,"input-error-wrapper"],["class","form-input-text","name","text","type","number","autocomplete","off",3,"ngModel","disabled","ngClass","placeholder","ngModelChange","focus","change","keyup","keyup.enter","blur",4,"ngIf"],["class","form-input-text","name","text","type","text","autocomplete","off",3,"ngModel","disabled","ngClass","placeholder","ngModelChange","focus",4,"ngIf"],["class","form-input-text readonly-text",4,"ngIf"],["class","error",4,"ngIf"],["class","btns-group",4,"ngIf"],[1,"label"],[1,"title",3,"ngClass"],[1,"inner"],["name","text","type","number","autocomplete","off",1,"form-input-text",3,"ngModelChange","focus","change","keyup","keyup.enter","blur","ngModel","disabled","ngClass","placeholder"],["name","text","type","text","autocomplete","off",1,"form-input-text",3,"ngModelChange","focus","ngModel","disabled","ngClass","placeholder"],[1,"form-input-text","readonly-text"],[1,"error"],[4,"ngTemplateOutlet"],[1,"btns-group"],[1,"button-icon","btn-submit","inline-edit-button",3,"click"],[1,"icon-close-edit"],[1,"button-icon","btn-cancel","inline-edit-button",3,"click"],[1,"icon-close"]],template:function(t,i){t&1&&(h(0,xf,2,1,"div",2),p(1,"form",3),_("ngSubmit",function(){return i.onNumberSubmit(i.model)}),p(2,"div",4),h(3,Mf,3,4,"div",5),p(4,"div",6),h(5,Of,2,7,"input",7)(6,Pf,2,7,"input",8)(7,bf,3,3,"span",9)(8,vf,3,1,"div",10),d()(),h(9,wf,5,0,"div",11),d()),t&2&&(l("ngIf",i.label),s(),l("ngClass",nr(9,_f,i.hasError||i.required&&i.model===null&&i.model===void 0&&i.isSubmitted,i.hasSubmit,i.isFocus)),s(),l("ngClass",q(13,hf,i.disabled)),s(),l("ngIf",i.unitLabel),s(2),l("ngIf",!i.readonly&&i.isFocus),s(),l("ngIf",!i.readonly&&!i.isFocus),s(),l("ngIf",i.readonly),s(),l("ngIf",(i.hasError||i.required&&i.model===null&&i.model===void 0&&i.isSubmitted)&&i.validationError),s(),l("ngIf",i.isFocus&&i.hasSubmit&&!i.disabled&&!i.readonly))},dependencies:[de,A,yn,nn,ha,J,ni,te,ir,rt,li,I],styles:['[_nghost-%COMP%]{display:block;min-height:40px}.input-wrapper[_ngcontent-%COMP%]{display:flex}.title[_ngcontent-%COMP%]{width:110px;flex:1 1 auto;background:#e6f6fe;display:flex;align-items:center;padding:10px;font-size:14px;color:#098dcd;font-weight:600;border-top-left-radius:6px;border-bottom-left-radius:6px}.title[_ngcontent-%COMP%]   .inner[_ngcontent-%COMP%]{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.form-input-text[_ngcontent-%COMP%]{border-top-left-radius:0;border-bottom-left-radius:0}.no-unit[_ngcontent-%COMP%]{border-top-left-radius:6px;border-bottom-left-radius:6px}.has-error[_ngcontent-%COMP%]{border:none}.form[_ngcontent-%COMP%]{display:flex}.form[_ngcontent-%COMP%]   .btns-group[_ngcontent-%COMP%]{width:80px;margin-top:0;margin-bottom:0;flex:0 0 auto;display:flex;align-items:center}.input-error-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.error[_ngcontent-%COMP%]{position:absolute;z-index:4}.form-input-text[_ngcontent-%COMP%]{min-width:120px;display:flex;align-items:center}.form-input-text.readonly[_ngcontent-%COMP%]{background:#eff2f4;color:#627588}.label[_ngcontent-%COMP%]{padding:10px 0;font-size:16px;color:#627588;font-weight:600}.readonly-text[_ngcontent-%COMP%]{border:none}.readonly-title[_ngcontent-%COMP%]{background:transparent;padding-right:5px;width:auto;flex:0 0 auto;text-transform:capitalize}.readonly-title[_ngcontent-%COMP%]   .inner[_ngcontent-%COMP%]:after{content:":"}.disabled[_ngcontent-%COMP%]   .title[_ngcontent-%COMP%]{background:#bdc8d4;color:#627588}','.btns-group[_ngcontent-%COMP%]{text-align:right;margin-top:8px;margin-bottom:8px}.readonly-text[_ngcontent-%COMP%]{padding:10px}.error[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .error[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{border:1px solid #f1245c}.btn-submit[_ngcontent-%COMP%], .btn-cancel[_ngcontent-%COMP%]{display:inline-block;margin-left:7px;position:relative;width:30px;height:30px;border-radius:30px;box-shadow:1px 1px 4px #3f445233;transition:all .2s ease-in-out;cursor:pointer}.btn-submit[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], .btn-cancel[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);transition:all .2s ease-in-out}.btn-cancel[_ngcontent-%COMP%]{background:#eff2f4}.btn-cancel[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:14px;color:#627588}.btn-cancel[_ngcontent-%COMP%]:hover{background:#b4bfc9}.btn-cancel[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:#fff}.btn-submit[_ngcontent-%COMP%]{background:#e6f6fe}.btn-submit[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{font-size:18px;color:#098dcd}.btn-submit[_ngcontent-%COMP%]:hover{background:#098dcd}.btn-submit[_ngcontent-%COMP%]:hover   i[_ngcontent-%COMP%]{color:#fff}[_nghost-%COMP%]     .error-element{position:relative;clear:both;min-height:38px}[_nghost-%COMP%]     .error-message{background-color:#f1245c;color:#fff;padding:7px 15px;font-size:15px}[_nghost-%COMP%]     .error-message:before{content:" ";position:absolute;border:7px solid transparent}[_nghost-%COMP%]     .error-message.bottom{position:absolute;left:0;top:7px}[_nghost-%COMP%]     .error-message.bottom:before{border-bottom-color:#f1245c;top:-14px;left:5px}[_nghost-%COMP%]     .inline-submit.focused .error-element{min-height:auto}[_nghost-%COMP%]     [ng-reflect-type-input=textarea] .error-message.bottom{top:5px}']});let n=r;return n})();var Xs={};var To={"number-input":{readOnlyNoInput:"None"}};var Js=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:To,de:Xs}[t]||To))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,Fn,fe,Je,Sn,H]});let n=r;return n})();var Tf=(n,r)=>({minValue:n,maxValue:r}),Ef=n=>({minValue:n}),If=n=>({maxValue:n});function kf(n,r){if(n&1&&(p(0,"div",1),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function Ff(n,r){n&1&&b(0,"ui-loader",2)}function Rf(n,r){if(n&1&&(O(0),C(1,"translate")),n&2){let o=c(4);S(" ",xe(1,1,"renderers.errors.number",Te(4,Tf,o.minValue,o.maxValue))," ")}}function Df(n,r){n&1&&h(0,Rf,2,7,"ng-template",null,0,V)}function Vf(n,r){if(n&1&&(O(0),C(1,"translate")),n&2){let o=c(4);S(" ",xe(1,1,"renderers.errors.numberMin",q(4,Ef,o.minValue))," ")}}function Uf(n,r){n&1&&h(0,Vf,2,6,"ng-template",null,0,V)}function Lf(n,r){if(n&1&&(O(0),C(1,"translate")),n&2){let o=c(4);S(" ",xe(1,1,"renderers.errors.numberMax",q(4,If,o.maxValue))," ")}}function Af(n,r){n&1&&h(0,Lf,2,6,"ng-template",null,0,V)}function Nf(n,r){n&1&&(O(0),C(1,"translate")),n&2&&S(" ",M(1,1,"renderers.errors.numberRequired")," ")}function jf(n,r){n&1&&h(0,Nf,2,3,"ng-template",null,0,V)}function Bf(n,r){if(n&1){let o=P();p(0,"ui-number-input",5),C(1,"translate"),_("onTextSubmit",function(t){u(o);let i=c(2);return f(i.updateValues(t))})("onDirtyStateChanged",function(t){u(o);let i=c(2);return f(i.dirtyStateChanged(t))})("onFocus",function(t){u(o);let i=c(2);return f(i.focusChanged(t))})("hasErrorOccurred",function(t){u(o);let i=c(2);return f(i.hasErrorChanged(t))}),h(2,Df,2,0)(3,Uf,2,0)(4,Af,2,0)(5,jf,2,0),d()}if(n&2){let o=c(2);z("error",o.hasError),l("placeholder",o.disabled?"":M(1,16,"renderers.numberInput.placeholder"))("unitLabel",o.unitLabel)("model",o.renderedValue)("readonly",o.readonly)("disabled",o.disabled)("min",o.minValue)("max",o.maxValue)("required",o.required)("hasError",o.hasError)("hasSubmit",o.inline),s(2),Ce(2,o.hasMin&&o.hasMax?2:-1),s(),Ce(3,o.hasMin&&!o.hasMax?3:-1),s(),Ce(4,!o.hasMin&&o.hasMax?4:-1),s(),Ce(5,!o.hasMin&&!o.hasMax&&o.required?5:-1)}}function zf(n,r){if(n&1&&(p(0,"span",3),h(1,Bf,6,18,"ui-number-input",4),d()),n&2){let o=c();l("ui2Tooltip",o.tooltip),s(),Ce(1,(o.renderedValue||o.renderedValue===0)&&o.readonly||!o.readonly&&o.field?1:-1)}}function Gf(n,r){n&1&&(p(0,"div",6),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}var Ks=(()=>{let r=class r{constructor(e){this.translateService=e,this.loading=!1,this.readonly=!1,this.hasError=!1,this.disabled=!1,this.showLabel=!0,this.inline=!0,this.onTextSubmit=new y,this.onDirtyStateChanged=new y,this.onFocusChanged=new y,this.hasErrorOccurred=new y,this.tooltip="",this.unitLabel="",this.required=!0,this.hasMin=!1,this.hasMax=!1,this.isFocused=!1}ngOnChanges(e){e.control&&this.control&&(this.field=this.control.field,this.getUnitLabel(),this.getMaxValue(),this.getMinValue(),this.evaluateRequired(),this.determineMinMax(),this.getAttachedFormula()),e.value&&!this.isFocused&&(this.renderedValue=this.value,this.field&&(this.getUnitLabel(),this.getMaxValue(),this.getMinValue(),this.evaluateRequired(),this.determineMinMax(),this.getAttachedFormula()))}updateValues(e){if(!this.field)return;this.required&&(this.hasError=e==null);let t=e==null?"":e.toString();this.onTextSubmit.emit({fieldValue:t,field:this.field})}dirtyStateChanged(e){this.onDirtyStateChanged.emit(e)}focusChanged(e){this.isFocused=e,this.onFocusChanged.emit(e)}hasErrorChanged(e){this.field&&this.hasErrorOccurred.emit({hasError:e,field:this.field})}evaluateRequired(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}getUnitLabel(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri==="numerical_unit");this.unitLabel=e?e.value:""}getMaxValue(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri==="numerical_max");e&&e.value&&(this.maxValue=parseInt(e.value,10))}getMinValue(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri==="numerical_min");e&&e.value&&(this.minValue=parseInt(e.value,10))}determineMinMax(){try{this.hasMin=!!this.minValue||this.minValue===0}catch{this.hasMin=!1}try{this.hasMax=!!this.maxValue||this.maxValue===0}catch{this.hasMax=!1}}getAttachedFormula(){this.disabled=!!this.field?.propertyValues.find(e=>e.fieldTypePropertyUri==="numerical_formula"),this.disabled&&(this.tooltip=this.translateService.instant("renderers.numberInput.disabledFormularField"))}};r.\u0275fac=function(t){return new(t||r)(x(K))},r.\u0275cmp=v({type:r,selectors:[["renderer-number"]],inputs:{control:"control",value:"value",loading:"loading",readonly:"readonly",hasError:"hasError",disabled:"disabled",showLabel:"showLabel",inline:"inline"},outputs:{onTextSubmit:"onTextSubmit",onDirtyStateChanged:"onDirtyStateChanged",onFocusChanged:"onFocusChanged",hasErrorOccurred:"hasErrorOccurred"},standalone:!0,features:[k,W],decls:4,vars:2,consts:[["validationError",""],[1,"subtitle-box"],[1,"renderer-loader"],[3,"ui2Tooltip"],[3,"placeholder","unitLabel","model","readonly","disabled","min","max","required","hasError","error","hasSubmit"],[3,"onTextSubmit","onDirtyStateChanged","onFocus","hasErrorOccurred","placeholder","unitLabel","model","readonly","disabled","min","max","required","hasError","hasSubmit"],[1,"placeholder-no-input-data"]],template:function(t,i){t&1&&h(0,kf,2,1,"div",1)(1,Ff,1,0,"ui-loader",2)(2,zf,2,2)(3,Gf,3,3),t&2&&(Ce(0,i.showLabel?0:-1),s(),Ce(1,i.loading?1:(i.renderedValue||i.renderedValue===0)&&i.readonly||!i.readonly?2:3))},dependencies:[E,H,I,Js,Ys,ye,Ie,Bt,De],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%]     .input-wrapper{width:100%}[_nghost-%COMP%]     .trigger-wrapper{display:inline!important}[_nghost-%COMP%]     ui-number-input .title{width:110px!important;flex:1 1 auto!important}[_nghost-%COMP%]     ui-number-input .form-input-text{border:1px solid #bdc8d4!important}[_nghost-%COMP%]     ui-number-input .readonly-text{font-size:16px!important}[_nghost-%COMP%]     ui-number-input.error input{border:1px solid #f1245c!important}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var Zs=n=>{let{propertyValues:r=[]}=n.field;if(!r.length)return[];let o=r.find(e=>e?.fieldTypePropertyUri.endsWith("_rating_options"));if(o?.value){let e=JSON.parse(o.value);return e?.length?e.map(t=>Pe(ce({},t),{legend:t.label})):[]}return[]},ec=n=>{let r=n[0]?.value??null;return parseInt(r,10)},Br=n=>{let r=n.length,o=n[r-1]?.value;return parseInt(o,10)},tc=(n,r)=>{let{propertyValues:o=[]}=n.field,t=o.find(i=>i.fieldTypePropertyUri===r)?.value;return parseInt(t)},nc=n=>tc(n,"numerical_rating_min"),zr=n=>tc(n,"numerical_rating_max"),ic=n=>{let{propertyValues:r=[]}=n.field;return r.find(e=>e.fieldTypePropertyUri.endsWith("_rating_description"))?.value||n.name};var Hf=(n,r)=>({"simplified-ratings":n,"disable-slider-pointer":r}),Wf=n=>({"count--hidden":n});function Qf(n,r){if(n&1&&(p(0,"div",6)(1,"span",7),O(2),d(),b(3,"span",8),d()),n&2){let o=c();s(),l("title",o.label),s(),R(o.label),s(),l("uiTooltip",o.description)}}function $f(n,r){if(n&1){let o=P();Y(0),p(1,"ui2-button",9),_("click",function(){u(o);let t=c();return f(t.handleManageRatings())}),p(2,"div",10),b(3,"span",11),p(4,"div",12)(5,"span",13),_("@blinker.done",function(){u(o);let t=c();return f(t.counterAnimationState=!1)}),O(6," +1 "),d(),p(7,"span",14),O(8),d()()()(),X()}if(n&2){let o=c();s(),l("disabled",o.disableManageRating),s(4),l("@blinker",o.counterAnimationState?"show":"hide"),s(2),l("ngClass",q(4,Wf,o.counterAnimationState)),s(),S(" ",o.totalUserCount||""," ")}}function Yf(n,r){if(n&1&&(p(0,"span",15),b(1,"span",16),d()),n&2){let o=c();l("maxWidth",o.tooltipMaxWidth)("ui2Tooltip",o.sigmaIconTooltipText)("mode",o.tooltipMode)}}var Gr=(()=>{let r=class r{constructor(){this.ratingType=void 0,this.control=void 0,this.showNotes=!1,this.value=void 0,this.noteValue="",this.trackValue=void 0,this.trackValuePercentage=void 0,this.minValue=void 0,this.maxValue=void 0,this.options=[],this.deletable=!1,this.showManageRating=!1,this.showLabel=!0,this.isRatable=!1,this.tooltipText="",this.loading=!1,this.totalUserCount=0,this.counterAnimationState=!1,this.sliderStep=1,this.isDiscrete=!1,this.isAIRating=!1,this.showSigmaIcon=!1,this.sigmaIconTooltipText="",this.disableManageRating=!1,this.isSmartField=!1,this.isBasedOnSharedData=!1,this.disableSliderPointer=!1,this.onChangeStart=new y,this.onChangeEnd=new y,this.onDelete=new y,this.onManageRatings=new y,this.ratingTooltipText="",this.shared=!1,this.label="",this.description="",this.tooltipMaxWidth=260,this.tooltipMode=ci.INLINE}ngOnChanges(e){if(e?.control?.currentValue){let t=e?.control.currentValue;this.label=t?.name,this.description=ic(t)}}handleManageRatings(){!this.disableManageRating&&this.onManageRatings.emit()}handleChangeStart(e){this.onChangeStart.emit(e)}handleChangeEnd(e){this.onChangeEnd.emit(e)}handleDelete(){this.onDelete.emit()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-rating"]],inputs:{ratingType:"ratingType",control:"control",showNotes:"showNotes",value:"value",noteValue:"noteValue",trackValue:"trackValue",trackValuePercentage:"trackValuePercentage",minValue:"minValue",maxValue:"maxValue",options:"options",deletable:"deletable",showManageRating:"showManageRating",showLabel:"showLabel",isRatable:"isRatable",tooltipText:"tooltipText",loading:"loading",totalUserCount:"totalUserCount",counterAnimationState:"counterAnimationState",sliderStep:"sliderStep",isDiscrete:"isDiscrete",isAIRating:"isAIRating",showSigmaIcon:"showSigmaIcon",sigmaIconTooltipText:"sigmaIconTooltipText",disableManageRating:"disableManageRating",isSmartField:"isSmartField",isBasedOnSharedData:"isBasedOnSharedData",disableSliderPointer:"disableSliderPointer"},outputs:{onChangeStart:"onChangeStart",onChangeEnd:"onChangeEnd",onDelete:"onDelete",onManageRatings:"onManageRatings"},standalone:!0,features:[k,W],decls:6,vars:23,consts:[[1,"px-4",3,"ngClass"],[1,"rating-label-wrapper"],["class","rating-label",4,"ngIf"],[4,"ngIf"],[3,"maxWidth","ui2Tooltip","mode",4,"ngIf"],[3,"userChangeStart","userChangeEnd","deleteClicked","type","leftValue","rightValue","userValue","averageValue","averageValueWidth","isAverageGrey","tickConfig","isDeletable","isRated","isSharedType","isRatable","isDiscrete","loading","toolTipInput","sliderStep"],[1,"rating-label"],[1,"rating-label-text",3,"title"],[1,"help-text","icon2-x16-support","tooltip-top",3,"uiTooltip"],["alt","Manage Ratings",1,"button-with-icon",3,"click","disabled"],[1,"rating--count"],[1,"icon2-x16-user"],[1,"rating--count-number","label-sm-semibold"],[1,"counter--animation"],[3,"ngClass"],[3,"maxWidth","ui2Tooltip","mode"],[1,"icon2-x16-sigma","main-gray","ml-2"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"div",1),h(2,Qf,4,3,"div",2)(3,$f,9,6,"ng-container",3)(4,Yf,2,3,"span",4),d(),p(5,"ui2-slider",5),_("userChangeStart",function(g){return i.handleChangeStart(g)})("userChangeEnd",function(g){return i.handleChangeEnd(g)})("deleteClicked",function(){return i.handleDelete()}),d()()),t&2&&(l("ngClass",Te(20,Hf,i.isAIRating,i.disableSliderPointer)),s(2),l("ngIf",i.showLabel),s(),l("ngIf",i.showManageRating),s(),l("ngIf",i.showSigmaIcon),s(),l("type",i.ratingType)("leftValue",i.minValue)("rightValue",i.maxValue)("userValue",i.value)("averageValue",i.trackValue)("averageValueWidth",i.trackValuePercentage?i.trackValuePercentage+"%":"0%")("isAverageGrey",i.isBasedOnSharedData)("tickConfig",i.options)("isDeletable",i.deletable&&!i.isSmartField)("isRated",i.value!==null)("isSharedType",i.shared)("isRatable",i.isRatable&&!i.isSmartField)("isDiscrete",i.isDiscrete)("loading",i.loading)("toolTipInput",i.tooltipText)("sliderStep",i.sliderStep))},dependencies:[E,de,A,Xe,Ee,bl,co,Sr,wr,Bt,De],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%]   .rating-label-wrapper[_ngcontent-%COMP%]{display:flex;font-weight:600;align-items:center;line-height:22px}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating-label[_ngcontent-%COMP%]{display:flex;flex-grow:1;min-width:0}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating-label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{max-width:calc(100% - 50px)}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating-label[_ngcontent-%COMP%] > span.rating-label-text[_ngcontent-%COMP%]{pointer-events:visible;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-right:6px}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating-label[_ngcontent-%COMP%] > span.help-text[_ngcontent-%COMP%]{color:#bdc8d4}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating-label[_ngcontent-%COMP%] > span.help-text[_ngcontent-%COMP%]   .tooltip[_ngcontent-%COMP%]{font-weight:400;min-width:200px}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .button-with-icon[_ngcontent-%COMP%]:hover   .rating--count[_ngcontent-%COMP%]{color:#098dcd}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating--count[_ngcontent-%COMP%]{color:#627588;flex-basis:fit-content;white-space:nowrap}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating--count.hidden[_ngcontent-%COMP%]{visibility:hidden;opacity:0;pointer-events:none}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating--count[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating--count[_ngcontent-%COMP%]   .rating--count-number[_ngcontent-%COMP%]{display:inline-block;position:relative}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating--count[_ngcontent-%COMP%]   .rating--count-number[_ngcontent-%COMP%]   .counter--animation[_ngcontent-%COMP%]{position:absolute;display:inline-block;width:18px;height:14px;font-size:12px;background-color:#00d1ff;color:#fff;border-radius:2px;padding-left:2px;top:50%;right:calc(50% - 10px);transform:translateY(-50%)}[_nghost-%COMP%]   .rating-label-wrapper[_ngcontent-%COMP%]   .rating--count[_ngcontent-%COMP%]   .rating--count-number[_ngcontent-%COMP%]   .count--hidden[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%]   .disable-slider-pointer[_ngcontent-%COMP%]     ngx-slider.ngx-slider.with-legend>span{pointer-events:none}[_nghost-%COMP%]   .disable-slider-pointer[_ngcontent-%COMP%]     ui2-slider .average-wrapper+span{position:relative;z-index:99999}[_nghost-%COMP%]   .rating--count[_ngcontent-%COMP%]{color:#627588;flex-basis:fit-content;white-space:nowrap}[_nghost-%COMP%]   .rating--count.hidden[_ngcontent-%COMP%]{visibility:hidden;opacity:0;pointer-events:none}[_nghost-%COMP%]   .rating--count[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{margin-right:4px}[_nghost-%COMP%]   .rating--count[_ngcontent-%COMP%]   .rating--count-number[_ngcontent-%COMP%]{display:inline-block;position:relative}[_nghost-%COMP%]   .rating--count[_ngcontent-%COMP%]   .rating--count-number[_ngcontent-%COMP%]   .counter--animation[_ngcontent-%COMP%]{position:absolute;display:inline-block;width:18px;height:14px;font-size:12px;background-color:#00d1ff;color:#fff;border-radius:2px;padding-left:2px;top:50%;right:calc(50% - 10px);transform:translateY(-50%)}[_nghost-%COMP%]   .rating--count[_ngcontent-%COMP%]   .rating--count-number[_ngcontent-%COMP%]   .count--hidden[_ngcontent-%COMP%]{opacity:0}[_nghost-%COMP%]     .rating-label>span.help-text{color:#bdc8d4}[_nghost-%COMP%]     .rating-label>span.help-text .tooltip{font-weight:400;min-width:200px}[_nghost-%COMP%]     .simplified-ratings .average-wrapper .average-bar{background-image:linear-gradient(248deg,#f39 39.02%,#bc15a1 82.93%)!important}[_nghost-%COMP%]     .simplified-ratings .ui-slider .slider--wrapper{pointer-events:none}[_nghost-%COMP%]     .simplified-ratings .slider--add-button, [_nghost-%COMP%]     .simplified-ratings .rating--count{display:none}[_nghost-%COMP%]     .simplified-ratings .ngx-slider-pointer:after, [_nghost-%COMP%]     .simplified-ratings .ngx-slider-bubble:not(.ngx-slider-limit){background-image:linear-gradient(248deg,#f39 39.02%,#bc15a1 82.93%)!important}"],data:{animation:[tn("blinker",[_n("show",ze({opacity:1,visibility:"visible"})),_n("hide",ze({opacity:0,visibility:"hidden"})),gt("hide => show",[dt("500ms ease-out")]),gt("show => hide",[dt("200ms ease-out")])])]}});let n=r;return n})();var rc=(()=>{let r=class r{constructor(){this.control=void 0,this.value=void 0,this.trackValue=void 0,this.trackValuePercentage=void 0,this.deletable=!1,this.showManageRating=!1,this.showLabel=!0,this.isRatable=!1,this.tooltipText="",this.loading=!1,this.totalUserCount=0,this.counterAnimationState=!1,this.isAIRating=!1,this.showSigmaIcon=!1,this.disableManageRating=!1,this.isSmartField=!1,this.isBasedOnSharedData=!1,this.isFormBasedInput=!1,this.disableSliderPointer=!1,this.onChangeStart=new y,this.onChangeEnd=new y,this.onDelete=new y,this.onManageRatings=new y,this.ratingType=Hn.Numerical,this.minValue=void 0,this.maxValue=void 0}ngOnChanges(e){if(e?.control?.currentValue){let t=e.control.currentValue;this.minValue=nc(t),this.maxValue=zr(t)}}onRatingChange(e){this.isFormBasedInput&&(this.trackValuePercentage=(e.value-this.minValue)/(this.maxValue-this.minValue)*100),this.onChangeEnd.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-numerical-rating"]],inputs:{control:"control",value:"value",trackValue:"trackValue",trackValuePercentage:"trackValuePercentage",deletable:"deletable",showManageRating:"showManageRating",showLabel:"showLabel",isRatable:"isRatable",tooltipText:"tooltipText",loading:"loading",totalUserCount:"totalUserCount",counterAnimationState:"counterAnimationState",isAIRating:"isAIRating",showSigmaIcon:"showSigmaIcon",disableManageRating:"disableManageRating",isSmartField:"isSmartField",isBasedOnSharedData:"isBasedOnSharedData",isFormBasedInput:"isFormBasedInput",disableSliderPointer:"disableSliderPointer"},outputs:{onChangeStart:"onChangeStart",onChangeEnd:"onChangeEnd",onDelete:"onDelete",onManageRatings:"onManageRatings"},standalone:!0,features:[k,W],decls:1,vars:21,consts:[[3,"onChangeStart","onChangeEnd","onManageRatings","onDelete","minValue","maxValue","ratingType","control","value","trackValue","trackValuePercentage","deletable","showManageRating","disableManageRating","showLabel","isRatable","tooltipText","loading","totalUserCount","counterAnimationState","isAIRating","isSmartField","isBasedOnSharedData","showSigmaIcon","disableSliderPointer"]],template:function(t,i){t&1&&(p(0,"renderer-rating",0),_("onChangeStart",function(g){return i.onChangeStart.emit(g)})("onChangeEnd",function(g){return i.onRatingChange(g)})("onManageRatings",function(){return i.onManageRatings.emit()})("onDelete",function(){return i.onDelete.emit()}),d()),t&2&&l("minValue",i.minValue)("maxValue",i.maxValue)("ratingType",i.ratingType)("control",i.control)("value",i.value)("trackValue",i.trackValue)("trackValuePercentage",i.trackValuePercentage)("deletable",i.deletable)("showManageRating",i.showManageRating)("disableManageRating",i.disableManageRating)("showLabel",i.showLabel)("isRatable",i.isRatable)("tooltipText",i.tooltipText)("loading",i.loading)("totalUserCount",i.totalUserCount)("counterAnimationState",i.counterAnimationState)("isAIRating",i.isAIRating)("isSmartField",i.isSmartField)("isBasedOnSharedData",i.isBasedOnSharedData)("showSigmaIcon",i.showSigmaIcon)("disableSliderPointer",i.disableSliderPointer)},dependencies:[E,Gr]});let n=r;return n})();var oc=(()=>{let r=class r{constructor(){this.control=void 0,this.value=void 0,this.trackValue=void 0,this.trackValuePercentage=void 0,this.deletable=!1,this.showManageRating=!1,this.showLabel=!0,this.isRatable=!1,this.tooltipText="",this.loading=!1,this.totalUserCount=0,this.counterAnimationState=!1,this.isAIRating=!1,this.showSigmaIcon=!1,this.sigmaIconTooltipText="",this.disableManageRating=!1,this.isSmartField=!1,this.isBasedOnSharedData=!1,this.isFormBasedInput=!1,this.disableSliderPointer=!1,this.onChangeStart=new y,this.onChangeEnd=new y,this.onDelete=new y,this.onManageRatings=new y,this.ratingType=Hn.Ordered,this.options=[],this.minValue=void 0,this.maxValue=void 0}ngOnChanges(e){if(e?.control?.currentValue){let t=e.control.currentValue;this.options=Zs(t),this.minValue=ec(this.options),this.maxValue=Br(this.options)}e?.value?.currentValue&&(this.value=Math.round(e.value.currentValue))}onRatingChange(e){this.isFormBasedInput&&(this.trackValuePercentage=(e.value-this.minValue)/(this.maxValue-this.minValue)*100),this.onChangeEnd.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-order-rating"]],inputs:{control:"control",value:"value",trackValue:"trackValue",trackValuePercentage:"trackValuePercentage",deletable:"deletable",showManageRating:"showManageRating",showLabel:"showLabel",isRatable:"isRatable",tooltipText:"tooltipText",loading:"loading",totalUserCount:"totalUserCount",counterAnimationState:"counterAnimationState",isAIRating:"isAIRating",showSigmaIcon:"showSigmaIcon",sigmaIconTooltipText:"sigmaIconTooltipText",disableManageRating:"disableManageRating",isSmartField:"isSmartField",isBasedOnSharedData:"isBasedOnSharedData",isFormBasedInput:"isFormBasedInput",disableSliderPointer:"disableSliderPointer"},outputs:{onChangeStart:"onChangeStart",onChangeEnd:"onChangeEnd",onDelete:"onDelete",onManageRatings:"onManageRatings"},standalone:!0,features:[k,W],decls:1,vars:23,consts:[[3,"onChangeStart","onChangeEnd","onDelete","onManageRatings","minValue","maxValue","options","ratingType","control","value","trackValue","trackValuePercentage","deletable","showManageRating","showLabel","isRatable","tooltipText","loading","totalUserCount","counterAnimationState","isAIRating","disableManageRating","isSmartField","isBasedOnSharedData","showSigmaIcon","disableSliderPointer","sigmaIconTooltipText"]],template:function(t,i){t&1&&(p(0,"renderer-rating",0),_("onChangeStart",function(g){return i.onChangeStart.emit(g)})("onChangeEnd",function(g){return i.onRatingChange(g)})("onDelete",function(){return i.onDelete.emit()})("onManageRatings",function(){return i.onManageRatings.emit()}),d()),t&2&&l("minValue",i.minValue)("maxValue",i.maxValue)("options",i.options)("ratingType",i.ratingType)("control",i.control)("value",i.value)("trackValue",i.trackValue)("trackValuePercentage",i.trackValuePercentage)("deletable",i.deletable)("showManageRating",i.showManageRating)("showLabel",i.showLabel)("isRatable",i.isRatable)("tooltipText",i.tooltipText)("loading",i.loading)("totalUserCount",i.totalUserCount)("counterAnimationState",i.counterAnimationState)("isAIRating",i.isAIRating)("disableManageRating",i.disableManageRating)("isSmartField",i.isSmartField)("isBasedOnSharedData",i.isBasedOnSharedData)("showSigmaIcon",i.showSigmaIcon)("disableSliderPointer",i.disableSliderPointer)("sigmaIconTooltipText",i.sigmaIconTooltipText)},dependencies:[E,Gr]});let n=r;return n})();var ac=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui-unsaved-changes"]],decls:6,vars:3,consts:[[1,"container"],[1,"label-sm-semibold"],[1,"icon","icon2-x16-warning"],[1,"hr"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"p",1),b(2,"span",2),O(3),C(4,"translate"),d(),b(5,"div",3),d()),t&2&&(s(3),S(" ",M(4,1,"unsaved-changes.unsavedChanges")," "))},dependencies:[I],styles:[".container[_ngcontent-%COMP%]{width:100%;height:64px;padding:16px 0;display:flex;align-items:center;justify-content:center;position:relative}.container[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{padding:4px;color:#f0b111}.container[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{background:#fff;color:#3e4d63;z-index:2;padding:0 12px 0 8px}.container[_ngcontent-%COMP%]   .hr[_ngcontent-%COMP%]{height:1px;width:100%;background-color:#e1e7ee;position:absolute;z-index:1;left:0}"]});let n=r;return n})();var lc={"unsaved-changes":{}};var Eo={"unsaved-changes":{unsavedChanges:"Unsaved Changes"}};var sc=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:Eo,de:lc}[t]||Eo))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H]});let n=r;return n})();function Kf(n,r){if(n&1&&(p(0,"div",4),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function Zf(n,r){n&1&&b(0,"ui-unsaved-changes")}function e_(n,r){if(n&1){let o=P();p(0,"ui-rte",5),C(1,"translate"),_("onContentChanged",function(t){u(o);let i=c();return f(i.updateEntity(t))})("onDirtyStateChanged",function(t){u(o);let i=c();return f(i.updateDirtyState(t))})("onDraftAvailable",function(t){u(o);let i=c();return f(i.setDraft(t))})("onCancelEdit",function(){u(o);let t=c();return f(t.deleteDraft())})("onEditModeEnabled",function(t){u(o);let i=c();return f(i.editModeEnabled(t))})("onImagesUploadingCountChange",function(t){u(o);let i=c();return f(i.imagesUploadingCountChange(t))})("onError",function(t){u(o);let i=c();return f(i.displayRTEError(t))}),d()}if(n&2){let o=c();l("placeholder",M(1,11,o.placeholder))("contentJSON",o.value)("disabled",o.disabled)("inline",o.inline)("hideToolbar",!o.inline)("readonly",o.readonly)("required",o.required)("maxContentSize",o.rteHardLimit)("mentionOptions",o.mentionOptions)("isComment",o.isComment)("customToolbarOptions",o.setAutofill&&o.autofillDescriptionFFEnabled?o.customOptions:o.noAutofillAvailable)}}function t_(n,r){n&1&&(p(0,"div",6),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow"),`
`))}var cc='{"ops":[{"insert":"\\n"}]}',pc=(()=>{let r=class r{constructor(){this.value=cc,this.placeholder="renderers.rte.placeholderNoMention",this.loading=!1,this.readonly=!1,this.hasError=!1,this.disabled=!1,this.setAutoFill=!1,this.inline=!0,this.isComment=!1,this.showUnsaved=!0,this.mentionOptions={},this.autofillDescriptionFFEnabled=!1,this.customOptions=[],this.noAutofillAvailable=[],this.showLabel=!0,this.onContentChanged=new y,this.onDraftAvailable=new y,this.onDirtyStateChanged=new y,this.onCancelEdit=new y,this.onEditModeEnabled=new y,this.onError=new y,this.onImagesUploadingCountChange=new y,this.rteHardLimit=32e3,this.editMode=!1,this.required=!1}get isModelEmpty(){return this.value===cc}updateEntity(e){e&&this.onContentChanged.emit(e)}updateDirtyState(e){this.onDirtyStateChanged.emit(e)}setDraft(e){this.onDraftAvailable.emit(e)}deleteDraft(){this.onCancelEdit.emit()}editModeEnabled(e){this.editMode=e,this.onEditModeEnabled.emit(e)}displayRTEError(e){this.onError.emit(e)}imagesUploadingCountChange(e){this.field&&this.onImagesUploadingCountChange.emit({field:this.field,uploadingImageCount:e})}evaluateRequired(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-rich-text"]],inputs:{control:"control",controlChild:"controlChild",value:"value",placeholder:"placeholder",loading:"loading",readonly:"readonly",hasError:"hasError",disabled:"disabled",setAutoFill:"setAutoFill",inline:"inline",isComment:"isComment",showUnsaved:"showUnsaved",draft:"draft",mentionOptions:"mentionOptions",autofillDescriptionFFEnabled:"autofillDescriptionFFEnabled",customOptions:"customOptions",noAutofillAvailable:"noAutofillAvailable",showLabel:"showLabel"},outputs:{onContentChanged:"onContentChanged",onDraftAvailable:"onDraftAvailable",onDirtyStateChanged:"onDirtyStateChanged",onCancelEdit:"onCancelEdit",onEditModeEnabled:"onEditModeEnabled",onError:"onError",onImagesUploadingCountChange:"onImagesUploadingCountChange"},standalone:!0,features:[W],decls:4,vars:4,consts:[["class","subtitle-box",4,"ngIf"],[4,"ngIf"],[3,"placeholder","contentJSON","disabled","inline","hideToolbar","readonly","required","maxContentSize","mentionOptions","isComment","customToolbarOptions","onContentChanged","onDirtyStateChanged","onDraftAvailable","onCancelEdit","onEditModeEnabled","onImagesUploadingCountChange","onError",4,"ngIf"],["class","placeholder-no-input-data",4,"ngIf"],[1,"subtitle-box"],[3,"onContentChanged","onDirtyStateChanged","onDraftAvailable","onCancelEdit","onEditModeEnabled","onImagesUploadingCountChange","onError","placeholder","contentJSON","disabled","inline","hideToolbar","readonly","required","maxContentSize","mentionOptions","isComment","customToolbarOptions"],[1,"placeholder-no-input-data"]],template:function(t,i){t&1&&h(0,Kf,2,1,"div",0)(1,Zf,1,0,"ui-unsaved-changes",1)(2,e_,2,13,"ui-rte",2)(3,t_,3,3,"div",3),t&2&&(l("ngIf",i.showLabel),s(),l("ngIf",i.draft&&i.showUnsaved),s(),l("ngIf",!i.isModelEmpty&&i.readonly||!i.readonly),s(),l("ngIf",i.isModelEmpty&&i.readonly))},dependencies:[E,A,H,I,pr,cr,sc,ac],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-rte .edit-mode.wrap.overflowing{margin-bottom:80px}[_nghost-%COMP%]     ui-rte .btns-group{display:block;position:static;text-align:right;margin:7px 0}[_nghost-%COMP%]     ui-rte .btns-group .btn-submit{display:inline-block;margin-right:7px}[_nghost-%COMP%]     div.ql-mention-list-container .dropdown-container .details p.type>span.v2{display:none}[_nghost-%COMP%]     div.ql-mention-list-container .dropdown-container .details p.type .dropdown-heading{font-size:13px;font-weight:600}[_nghost-%COMP%]     .mention{font-size:.88em}[_nghost-%COMP%]     .mention>span:first-child{margin-left:0;margin-right:0}[_nghost-%COMP%]     .mention .mention-with-blue-text{color:#098dcd}[_nghost-%COMP%]     .mention .mention-wrapper.mention-with-background{padding:0 4px 1px}[_nghost-%COMP%]     .ql-mention-denotation-char{white-space:nowrap}[_nghost-%COMP%]     .ql-mention-denotation-char>.mention-icon{margin-right:4px;font-size:.78em;padding:0 2px;border-radius:2px;background-color:#bdc8d4;color:#fff;display:inline-table;text-align:center;text-transform:uppercase;-webkit-user-select:none;user-select:none;min-width:2.19em;height:1.1em;line-height:1.1em}[_nghost-%COMP%]     .ql-mention-denotation-char>.mention-icon.v2{display:none}[_nghost-%COMP%]     .ql-mention-denotation-char>.mention-icon.v1:before{line-height:0px;vertical-align:middle}[_nghost-%COMP%]     ui-rte .icon2-x16-ai:before{background-image:linear-gradient(180deg,#f39 .22%,#2a057f 99.73%);background-size:100%;background-clip:text;-webkit-text-fill-color:transparent}.draft[_ngcontent-%COMP%]{font-weight:700;color:#098dcd;float:right}"]});let n=r;return n})();var dc=Ot`
  query tagSuggestions($typedString: String, $spaceUri: String!, $maxSuggestions: Int) {
    tagSuggestions(typedString: $typedString, spaceUri: $spaceUri, maxSuggestions: $maxSuggestions) {
      tag
      usageCount
    }
  }
`;var gc=(()=>{let r=class r{constructor(e){this.graphqlService=e}getTagSuggestions(e,t,i){return new Promise((a,g)=>{this.graphqlService.watchQuery({query:dc,variables:{typedString:t,spaceUri:e,maxSuggestions:i||200},fetchPolicy:"network-only"}).subscribe(m=>{a(m.data.tagSuggestions)})})}};r.\u0275fac=function(t){return new(t||r)(U(ln))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var r_=n=>({"tags-container":n});function o_(n,r){if(n&1&&(p(0,"div",7),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function a_(n,r){n&1&&Ge(0)}function l_(n,r){n&1&&Ge(0)}function s_(n,r){if(n&1&&h(0,l_,1,0,"ng-container",6),n&2){let o=c(),e=j(5),t=j(9);l("ngIf",!!(o.values!=null&&o.values.length)&&o.readonly||!o.readonly)("ngIfThen",t)("ngIfElse",e)}}function c_(n,r){n&1&&(p(0,"div",8),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}function p_(n,r){n&1&&b(0,"ui-loader",9)}function d_(n,r){n&1&&(p(0,"div",20),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.tag.selectHeader")," "))}function g_(n,r){if(n&1&&h(0,d_,3,3,"div",19),n&2){let o=c(3);l("ngIf",(o.availableTags==null?null:o.availableTags.length)&&(o.availableTags[0]==null?null:o.availableTags[0].label)&&(o.availableTags[0]==null||o.availableTags[0].fields==null?null:o.availableTags[0].fields.length)===o.MAX_NUMBER_SUGGESTIONS)}}function m_(n,r){if(n&1){let o=P();p(0,"div",26)(1,"ui2-button",27),_("click",function(){u(o);let t=c(5);return f(t.openAutofillTags())}),b(2,"span",28),p(3,"span"),O(4),C(5,"translate"),d()()()}n&2&&(s(4),S(" ",M(5,1,"renderers.autofill.tagsPreview.autoCreateCta"),""))}function u_(n,r){if(n&1&&(Y(0),h(1,m_,6,3,"div",25),X()),n&2){let o=c(4);s(),l("ngIf",o.setAutofill)}}function f_(n,r){if(n&1&&b(0,"ui2-dropdown-category-label-bar",29),n&2){let o=c().item;l("title",o.label)}}function __(n,r){n&1&&(p(0,"div",30),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.tag.tagNotFound")," "))}function h_(n,r){if(n&1&&b(0,"span",31),n&2){let o=r.item;l("innerHTML",o.label,Ki)}}function C_(n,r){if(n&1&&h(0,u_,2,1,"ng-container",21)(1,f_,1,1,"ui2-dropdown-category-label-bar",22)(2,__,3,3,"div",23)(3,h_,1,1,"ng-template",24),n&2){let o=r.item,e=c(3);l("ngIf",e.aiAutoFillTagsEnabled),s(),l("ngIf",o.label),s(),l("ngIf",o.label&&o.fields.length===0)}}function x_(n,r){if(n&1){let o=P();p(0,"div",14)(1,"div",15)(2,"ng-select",16,4),C(4,"translate"),re("ngModelChange",function(t){u(o);let i=c(2);return ie(i.newTags,t)||(i.newTags=t),f(t)}),_("change",function(){u(o);let t=c(2);return f(t.processTagInput(t.newTags))})("focus",function(){u(o);let t=c(2);return f(t.focused=!0)})("blur",function(){u(o);let t=c(2);return f(t.onBlurHandler())}),h(5,g_,1,1,"ng-template",17)(6,C_,4,3,"ng-template",18),d()()()}if(n&2){let o=c(2);s(),Wt("id",o.dropdownId),s(),l("typeahead",o.tagsInputSubject)("loading",o.loaderSuggestions)("items",o.availableTags),ne("ngModel",o.newTags),l("multiple",!0)("placeholder",M(4,10,"renderers.tag.placeholder"))("clearable",!o.required)("disabled",o.readonly)("appendTo","#"+o.dropdownId)}}function M_(n,r){if(n&1){let o=P();p(0,"ui2-tag",32),_("onClosed",function(){let t=u(o).$implicit,i=c(2);return f(i.onRemoveTag(t))})("onClicked",function(){let t=u(o).$implicit,i=c(2);return f(i.clickedTag(t))}),d()}if(n&2){let o=r.$implicit,e=c(2);l("isClickable",!0)("isRemovable",!e.readonly)("label",o)}}function O_(n,r){if(n&1&&(p(0,"div",10),h(1,x_,7,12,"div",11),p(2,"div",12),h(3,M_,1,3,"ui2-tag",13),d()()),n&2){let o=c();s(),l("ngIf",!o.readonly),s(),l("ngClass",q(3,r_,!o.readonly)),s(),l("ngForOf",o.values)}}var P_="renderers.tag.existingTagLabel",mc=(()=>{let r=class r{constructor(e,t,i,a,g){this.uriService=e,this.renderer=t,this.tagService=i,this.translate=a,this.store=g,this.values=[],this.loading=!1,this.readonly=!1,this.loaderSuggestions=!1,this.aiAutoFillTagsEnabled=!0,this.showLabel=!0,this.onAutoFillTags=new y,this.onTagClicked=new y,this.onTagsChange=new y,this.previousControl=null,this.required=!1,this.focused=!1,this.setAutofill=!1,this.MAX_NUMBER_SUGGESTIONS=20,this.newTags=[],this.tagsInputSubject=new F,this.destroyRef=Q(ee),this.dropdownId=`ng-${this.uriService.generateUri(5)}`,this.existingTagsLabel=this.translate.instant(P_),this.store.select(se.selectCurrentSpaceUri).pipe(L(),oe()).subscribe(m=>this.currentSpaceUri=m)}ngOnChanges(e){e.control&&this.control&&!this.loadingMap?.getValue()?.get(this.field?.uri)&&(this.field=this.control.field,this.getTags(),this.evaluateRequired(),this.checkForAutofillProperty())}ngOnInit(){this.tagsInputSubject.pipe(L(this.destroyRef)).pipe(Ue(200)).subscribe(e=>{e&&e.length>0?this.getTags(e):(this.availableTags=this.availableTags.filter(t=>t.label),this.availableTags[0].fields.length===0&&(this.availableTags=[]),this.getTags())})}getTags(e){this.loaderSuggestions=!0,this.tagService.getTagSuggestions(this.currentSpaceUri,e?.toLocaleLowerCase()||"",this.MAX_NUMBER_SUGGESTIONS).then(t=>{this.availableTags=[];let i=t.filter(a=>this.values?this.values.indexOf(a.tag)===-1:!0).map(a=>({label:a.tag,uri:a.tag})).sort((a,g)=>a.uri.localeCompare(g.uri));if(e&&!t.some(a=>a.tag===e.toLocaleLowerCase())){let a=this.renderer.createElement("span"),g=this.renderer.createText(`"${e}"`),m=this.renderer.createElement("span"),w=this.renderer.createText(`${this.translate.instant("renderers.tag.addTag")} `);this.renderer.appendChild(a,g),this.renderer.appendChild(m,w),this.renderer.appendChild(m,a),this.renderer.addClass(m,"add-tag-text"),this.renderer.addClass(a,"label-sm-semibold-single"),this.availableTags.push({label:"",fields:[{label:m.outerHTML,uri:`${e}`}]})}this.availableTags.push({label:this.existingTagsLabel,fields:i}),this.loaderSuggestions=!1})}processTagInput(e){let t=e[0]?.toLocaleLowerCase()?.trim();if(t&&this.values.indexOf(t)===-1){this.values=this.values.concat(t).sort((a,g)=>a.localeCompare(g));let i=this.availableTags.filter(a=>a.label===this.existingTagsLabel)[0];this.availableTags=[{label:this.existingTagsLabel,fields:i.fields.filter(a=>t!==a.uri)}],this.onTagsChange.emit({field:this.field,fieldValue:this.values})}this.clearTagInput()}onBlurHandler(){this.focused=!1,this.clearTagInput()}openAutofillTags(){this.onAutoFillTags.emit(this.field)}onRemoveTag(e){this.required&&this.values.length<2||(this.values=this.values.filter(t=>t!==e),this.onTagsChange.emit({field:this.field,fieldValue:this.values}))}clickedTag(e){this.onTagClicked.emit(e)}clearTagInput(){this.newTags=[]}evaluateRequired(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}checkForAutofillProperty(){this.field.propertyValues.find(e=>e.fieldTypePropertyUri.endsWith("_autoFill"))?this.setAutofill=!0:this.setAutofill=!1}};r.\u0275fac=function(t){return new(t||r)(x(oi),x(Ho),x(gc),x(K),x(le))},r.\u0275cmp=v({type:r,selectors:[["renderer-search-select"]],inputs:{control:"control",values:"values",loading:"loading",readonly:"readonly",loadingMap:"loadingMap",availableTags:"availableTags",loaderSuggestions:"loaderSuggestions",aiAutoFillTagsEnabled:"aiAutoFillTagsEnabled",showLabel:"showLabel"},outputs:{onAutoFillTags:"onAutoFillTags",onTagClicked:"onTagClicked",onTagsChange:"onTagsChange"},standalone:!0,features:[k,W],decls:10,vars:4,consts:[["rendererTemp",""],["noDataTemp",""],["loadingTemp",""],["inputTemp",""],["select",""],["class","subtitle-box",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle-box"],[1,"placeholder-no-input-data"],[1,"renderer-loader"],[1,"tags-render-wrapper"],["class","add-tag-block",4,"ngIf"],[3,"ngClass"],["class","tag-detail-page",3,"isClickable","isRemovable","label","onClosed","onClicked",4,"ngFor","ngForOf"],[1,"add-tag-block"],[1,"search-list-wrapper"],["groupBy","fields","bindValue","uri",1,"ui2-searchable-dropdown","tag-input",3,"ngModelChange","change","focus","blur","typeahead","loading","items","ngModel","multiple","placeholder","clearable","disabled","appendTo"],["ng-header-tmp",""],["ng-optgroup-tmp",""],["class","select-header",4,"ngIf"],[1,"select-header"],[4,"ngIf"],[3,"title",4,"ngIf"],["class","ng-option ng-option-disabled",4,"ngIf"],["ng-option-tmp",""],["class","ng-option",4,"ngIf"],[1,"ng-option"],[1,"button-with-icon",3,"click"],[1,"icon","icon2-x16-ai","autofill"],[3,"title"],[1,"ng-option","ng-option-disabled"],[3,"innerHTML"],[1,"tag-detail-page",3,"onClosed","onClicked","isClickable","isRemovable","label"]],template:function(t,i){if(t&1&&h(0,o_,2,1,"div",5)(1,a_,1,0,"ng-container",6)(2,s_,1,3,"ng-template",null,0,V)(4,c_,3,3,"ng-template",null,1,V)(6,p_,1,0,"ng-template",null,2,V)(8,O_,4,5,"ng-template",null,3,V),t&2){let a=j(3),g=j(7);l("ngIf",i.showLabel),s(),l("ngIf",i.loading)("ngIfThen",g)("ngIfElse",a)}},dependencies:[E,de,Oe,A,H,I,fe,J,te,ye,Ie,xt,_e,ur,ke,lt,Xe,Ee,ui,kn,gi,hr],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}.add-tag-input[_ngcontent-%COMP%]{display:block;margin:10px 5px 5px;max-width:300px}.add-tag-block[_ngcontent-%COMP%]{margin-bottom:15px;width:100%}.add-tag-block[_ngcontent-%COMP%]   .tag-input.ng-select.ng-select-multiple[_ngcontent-%COMP%]     .ng-select-container .ng-value-container{align-items:center}.add-tag-block[_ngcontent-%COMP%]   .tag-input[_ngcontent-%COMP%]     .ng-spinner-loader{top:3px;border-top:2px solid rgba(9,141,205,.2);border-right:2px solid rgba(9,141,205,.2);border-bottom:2px solid rgba(9,141,205,.2);border-left:2px solid #098dcd}.add-tag-block[_ngcontent-%COMP%]   .tag-input[_ngcontent-%COMP%]     .add-tag-text{color:#00689a}.add-tag-block[_ngcontent-%COMP%]   .tag-input[_ngcontent-%COMP%]     .ng-dropdown-panel{z-index:1000}.autofill[_ngcontent-%COMP%]:before{background-image:linear-gradient(180deg,#f39 .22%,#2a057f 99.73%);background-size:100%;background-clip:text;-webkit-text-fill-color:transparent}.select-header[_ngcontent-%COMP%]{padding:5px 10px;font-size:13px;font-weight:600;color:#8a9bab}.tags-container[_ngcontent-%COMP%]{margin:0 -5px}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}.search-list-wrapper[_ngcontent-%COMP%]{position:relative}"]});let n=r;return n})();var b_=n=>({label:n});function y_(n,r){if(n&1&&(p(0,"div",1),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function v_(n,r){n&1&&b(0,"ui-loader",2)}function w_(n,r){if(n&1){let o=P();p(0,"i",10),_("click",function(){u(o);let t=c().item,i=c(3);return f(i.removeItem(t.uri))}),d()}}function S_(n,r){if(n&1&&(p(0,"div",8),O(1),h(2,w_,1,0,"i",9),d()),n&2){let o=r.item,e=c(3);s(),S(" ",o.label," "),s(),l("ngIf",e.multiple&&e.required&&e.selection.length>1||e.multiple&&!e.required)}}function T_(n,r){if(n&1&&(p(0,"div",8),O(1),d()),n&2){let o=r.item;s(),S(" ",o.label," ")}}function E_(n,r){if(n&1&&(p(0,"ui-error-popup"),O(1),C(2,"translate"),d()),n&2){let o=c(3);s(),S(" ",xe(2,1,"renderers.errors.required",q(4,b_,o.control==null?null:o.control.name))," ")}}function I_(n,r){if(n&1){let o=P();p(0,"ng-select",4,0),re("ngModelChange",function(t){u(o);let i=c(2);return ie(i.selection,t)||(i.selection=t),f(t)}),_("change",function(){u(o);let t=c(2);return f(t.selectionChange(t.selection))})("focus",function(t){u(o);let i=c(2);return f(i.focusChange(t))}),h(2,S_,3,2,"ng-template",5)(3,T_,2,1,"ng-template",6),d(),h(4,E_,3,6,"ui-error-popup",7)}if(n&2){let o=c(2);z("readonly",o.readonly)("error",o.hasError),l("items",o.options),ne("ngModel",o.selection),l("searchable",!1)("placeholder",o.placeholder)("clearable",!o.required)("dropdownPosition","auto")("multiple",o.multiple)("closeOnSelect",!o.multiple)("appendTo","#"+o.dropdownId),s(4),l("ngIf",o.hasError)}}function k_(n,r){if(n&1&&h(0,I_,5,14),n&2){let o=c();Ce(0,(o.multiple?o.selection.length:o.selection)&&o.readonly||!o.readonly?0:-1)}}var uc=(()=>{let r=class r{constructor(e,t){this.uriService=e,this.translate=t,this.values=[],this.loading=!1,this.hasError=!1,this.readonly=!1,this.showLabel=!0,this.onSelectionChange=new y,this.multiple=!1,this.required=!1,this.selection=[],this.focused=!1,this.dropdownId=`ng-${this.uriService.generateUri(5)}`}ngOnChanges(e){e.control&&this.control&&(this.field=this.control.field,this.evaluateRequired(),this.evaluateMaxCardinality(),this.getOptions()),e.values&&!this.focused&&(this.renderedValue=this.values,this.field&&this.getOptions()),this.placeholder=this.readonly?this.translate.instant("renderers.noDataToShow"):this.translate.instant("renderers.select.placeholder.default")}removeItem(e){this.selection=this.selection.filter(t=>t.uri!==e),this.selectionChange(this.selection)}selectionChange(e){this.focused=!1,this.multiple?(this.required&&(this.hasError=!e.length),!this.hasError&&e!==null?this.onSelectionChange.emit({field:this.field,fieldValue:e.map(t=>t.uri)}):this.onSelectionChange.emit({field:this.field,fieldValue:null})):(this.required&&(this.hasError=Array.isArray(e)),!this.hasError&&e!==null?this.onSelectionChange.emit({field:this.field,fieldValue:e?.uri}):this.onSelectionChange.emit({field:this.field,fieldValue:null}))}evaluateRequired(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.multiple=parseInt(e.value,10)>1,this.required=parseInt(e.value,10)>0)}evaluateMaxCardinality(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MAX_CARDINALITY));e?this.maxCardinality=parseInt(e.value,10):this.multiple=!0}getOptions(){let e=this.field.propertyValues.find(t=>t.fieldTypePropertyUri==="options_options");this.options=JSON.parse(e.value),this.renderedValue&&this.getSelection()}getSelection(){this.selection=[],!Array.isArray(this.renderedValue)&&typeof this.renderedValue=="string"&&(this.renderedValue=[this.renderedValue]),this.multiple?this.renderedValue.forEach(e=>{this.selection.push(this.options.filter(t=>t.uri===e)[0])}):this.renderedValue.forEach(e=>{this.selection=this.options.find(t=>t.uri===e)})}focusChange(e){this.focused=e}};r.\u0275fac=function(t){return new(t||r)(x(oi),x(K))},r.\u0275cmp=v({type:r,selectors:[["renderer-select"]],inputs:{control:"control",values:"values",loading:"loading",hasError:"hasError",readonly:"readonly",showLabel:"showLabel"},outputs:{onSelectionChange:"onSelectionChange"},standalone:!0,features:[k,W],decls:4,vars:3,consts:[["selector",""],[1,"subtitle-box"],[1,"renderer-loader"],[1,"dropdown-wrapper"],["bindLabel","label",3,"ngModelChange","change","focus","items","ngModel","searchable","placeholder","clearable","dropdownPosition","multiple","closeOnSelect","appendTo"],["ng-label-tmp",""],["ng-option-tmp",""],[4,"ngIf"],[2,"height","auto"],["class","icon icon-close",3,"click",4,"ngIf"],[1,"icon","icon-close",3,"click"]],template:function(t,i){t&1&&(h(0,y_,2,1,"div",1)(1,v_,1,0,"ui-loader",2)(2,k_,1,1),b(3,"div",3)),t&2&&(Ce(0,i.showLabel?0:-1),s(),Ce(1,i.loading?1:2),s(2),Wt("id",i.dropdownId))},dependencies:[E,A,fe,J,te,H,I,ye,Ie,xt,_e,ke,Ne,Je,rt],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%]     .ng-select.error .ng-select-container{border:1px solid #f1245c!important}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-placeholder{margin-top:4px}[_nghost-%COMP%]     .ng-select.ng-select-multiple.error .ng-select-container{border:1px solid #f1245c!important}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-value{padding:7px 14px;border-radius:5px;min-height:auto;margin:5px;display:flex;align-items:center}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-select-container{padding:0;min-height:40px;height:auto}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-placeholder{padding:7px 10px}[_nghost-%COMP%]     .ng-select.ng-select-multiple .ng-value .ng-value-icon{font-size:20px;position:static;order:1;margin-left:7px}[_nghost-%COMP%]     .ng-select.ng-select-multiple .icon{font-size:10px;margin-left:5px;bottom:1px;position:relative;cursor:pointer}[_nghost-%COMP%]     .ng-select.readonly .ng-select-container{font-weight:unset}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}.dropdown-wrapper[_ngcontent-%COMP%]{position:relative}"]});let n=r;return n})();var F_=(n,r,o,e)=>({selected:n,check:r,radio:o,"wizard--is-clickable":e}),R_=n=>({width:n}),D_=n=>({"border-color":n}),V_=n=>({"icon-checked":n}),U_=(n,r)=>({"border-color":n,background:r});function L_(n,r){if(n&1){let o=P();p(0,"div",1),_("click",function(){let t=u(o),i=t.$implicit,a=t.index,g=c();return f(g.clicked(i,a))}),p(1,"div",2),b(2,"div",3),d(),p(3,"div",4),O(4),d()()}if(n&2){let o=r.$implicit,e=r.index,t=c();l("ngClass",$o(6,F_,t.selectedIndex===e,t.selectedIndex>e,t.radio,t.isClickable))("ngStyle",q(11,R_,100/t.data.length+"%")),s(),l("ngStyle",q(13,D_,t.radio&&t.colorPalette?t.colorPalette[e%t.colorPalette.length]:null))("ngClass",q(15,V_,t.selectedIndex>e)),s(),l("ngStyle",Te(17,U_,t.radio&&t.colorPalette?t.colorPalette[e%t.colorPalette.length]:null,t.radio&&t.colorPalette?t.colorPalette[e%t.colorPalette.length]:null)),s(2),S(" ",o.label," ")}}var fc=(()=>{let r=class r{constructor(){this.selectedEmitter=new y,this.isClickable=!0,this.required=!1}ngOnInit(){this.selectedIndex=this.data?.findIndex(e=>e.uri===this.selected)}ngOnChanges(){this.ngOnInit()}clicked(e,t){if(this.isClickable){if(this.required&&this.selected===e.uri)return!1;!this.required&&this.selected===e.uri?(this.selected=void 0,this.selectedIndex=void 0,this.selectedEmitter.emit(this.selected)):(this.selected=e.uri,this.selectedIndex=t,this.selectedEmitter.emit(this.selected))}}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui-wizard-steps"]],inputs:{data:"data",radio:"radio",selected:"selected",isClickable:"isClickable",required:"required",colorPalette:"colorPalette"},outputs:{selectedEmitter:"selectedEmitter"},features:[k],decls:1,vars:1,consts:[["class","wizard-group",3,"ngClass","ngStyle","click",4,"ngFor","ngForOf"],[1,"wizard-group",3,"click","ngClass","ngStyle"],[1,"wizard-circle",3,"ngStyle","ngClass"],[1,"wizard-dot",3,"ngStyle"],[1,"wizard-label"]],template:function(t,i){t&1&&h(0,L_,5,20,"div",0),t&2&&l("ngForOf",i.data)},dependencies:[de,Oe,bn],styles:['[_nghost-%COMP%]{display:block;background:#fff;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:flex-start;align-items:stretch;align-content:stretch;justify-content:space-between;padding:30px 10px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.wizard-group[_ngcontent-%COMP%]{text-align:center;position:relative}.wizard-group[_ngcontent-%COMP%]:after{content:"";display:block;position:absolute;width:calc(100% - 22px);left:calc(50% + 11px);top:11px;height:2px;background:#6275884d}.wizard-group[_ngcontent-%COMP%]:last-child:after{display:none}.wizard--is-clickable[_ngcontent-%COMP%]{cursor:pointer}.wizard-circle[_ngcontent-%COMP%]{width:22px;height:22px;margin:0 auto 5px;border-radius:22px;border:2px solid rgba(98,117,136,.3);position:relative}.wizard-dot[_ngcontent-%COMP%]{display:block;position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);width:10px;height:10px;border-radius:10px;border:2px solid rgba(98,117,136,.3);background:#6275884d}.wizard-label[_ngcontent-%COMP%]{font-weight:600;color:#627588;line-height:1.15;font-size:15px;opacity:.6;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.selected[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]{border-color:#098dcd}.selected[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]   .wizard-dot[_ngcontent-%COMP%]{border-color:#098dcd;background:#098dcd}.selected[_ngcontent-%COMP%]   .wizard-label[_ngcontent-%COMP%]{opacity:1}.check[_ngcontent-%COMP%]:after{background:#098dcd;height:2px}.check[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]{border-color:#098dcd;background:#098dcd}.check[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]   .wizard-dot[_ngcontent-%COMP%]{display:none}.check[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]:before{position:absolute;inset:50% auto auto 50%;-webkit-transform:translate(-50%,-50%);-ms-transform:translate(-50%,-50%);transform:translate(-50%,-50%);font-size:14px;color:#fff}.check[_ngcontent-%COMP%]   .wizard-label[_ngcontent-%COMP%]{opacity:1}.radio[_ngcontent-%COMP%]:after{display:none}.radio[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]{width:18px;height:18px}.radio[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]   .wizard-dot[_ngcontent-%COMP%]{display:none}.radio.check[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]{border-color:#6275884d;background:transparent}.radio.check[_ngcontent-%COMP%]   .wizard-label[_ngcontent-%COMP%]{opacity:.6}.radio.selected[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]{border-color:#098dcd}.radio.selected[_ngcontent-%COMP%]   .wizard-circle[_ngcontent-%COMP%]   .wizard-dot[_ngcontent-%COMP%]{border-color:#098dcd;background:#098dcd;display:block}']});let n=r;return n})();var _c=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E]});let n=r;return n})();var N_=n=>({label:n});function j_(n,r){if(n&1&&(p(0,"div",6),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function B_(n,r){n&1&&Ge(0)}function z_(n,r){n&1&&Ge(0)}function G_(n,r){if(n&1&&h(0,z_,1,0,"ng-container",5),n&2){let o=c(),e=j(5),t=j(9);l("ngIf",o.value&&o.readonly||!o.readonly)("ngIfThen",t)("ngIfElse",e)}}function q_(n,r){n&1&&(p(0,"div",7),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}function H_(n,r){n&1&&b(0,"ui-loader",8)}function W_(n,r){if(n&1&&(p(0,"ui-error-popup"),O(1),C(2,"translate"),d()),n&2){let o=c(2);s(),S(" ",xe(2,1,"renderers.errors.required",q(4,N_,o.control==null?null:o.control.name))," ")}}function Q_(n,r){if(n&1){let o=P();p(0,"ui-wizard-steps",9),_("selectedEmitter",function(t){u(o);let i=c();return f(i.selectedStep(t))}),d(),h(1,W_,3,6,"ui-error-popup",10)}if(n&2){let o=c();l("radio",o.radio)("selected",o.value)("data",o.data)("colorPalette",o.colorForOptions)("required",o.required),s(),l("ngIf",o.hasError)}}var hc=(()=>{let r=class r{constructor(){this.loading=!1,this.hasError=!1,this.readonly=!1,this.radio=!0,this.showLabel=!0,this.onSelected=new y,this.required=!1}get isReadOnly(){return this.readonly}ngOnChanges(e){e.field&&this.field&&(this.evaluateRequired(),this.getOptions())}selectedStep(e){this.required&&(this.hasError=!e),this.onSelected.emit({field:this.field,fieldValue:e||""})}evaluateRequired(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}getOptions(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri==="options_options");e&&(this.data=JSON.parse(e.value),this.colorForOptions=this.data.map(t=>t.color))}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-steps"]],hostVars:2,hostBindings:function(t,i){t&2&&z("readonly",i.isReadOnly)},inputs:{control:"control",field:"field",value:"value",loading:"loading",hasError:"hasError",readonly:"readonly",radio:"radio",showLabel:"showLabel"},outputs:{onSelected:"onSelected"},standalone:!0,features:[k,W],decls:10,vars:4,consts:[["rendererTemp",""],["noDataTemp",""],["loadingTemp",""],["inputTemp",""],["class","subtitle-box",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle-box"],[1,"placeholder-no-input-data"],[1,"renderer-loader"],[1,"ui-wizard-steps",3,"selectedEmitter","radio","selected","data","colorPalette","required"],[4,"ngIf"]],template:function(t,i){if(t&1&&h(0,j_,2,1,"div",4)(1,B_,1,0,"ng-container",5)(2,G_,1,3,"ng-template",null,0,V)(4,q_,3,3,"ng-template",null,1,V)(6,H_,1,0,"ng-template",null,2,V)(8,Q_,2,6,"ng-template",null,3,V),t&2){let a=j(3),g=j(7);l("ngIf",i.showLabel),s(),l("ngIf",i.loading)("ngIfThen",g)("ngIfElse",a)}},dependencies:[E,A,H,I,ye,Ie,Je,rt,_c,fc],styles:[".readonly[_nghost-%COMP%], .readonly   [_nghost-%COMP%]{cursor:not-allowed}.readonly[_nghost-%COMP%]   .ui-wizard-steps[_ngcontent-%COMP%], .readonly   [_nghost-%COMP%]   .ui-wizard-steps[_ngcontent-%COMP%]{pointer-events:none}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var $_=n=>({label:n});function Y_(n,r){if(n&1&&(p(0,"div",1),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function X_(n,r){n&1&&b(0,"ui-loader",2)}function J_(n,r){if(n&1&&(O(0),C(1,"translate")),n&2){let o=c(2);S(" ",xe(1,1,"renderers.errors.required",q(4,$_,o.control==null?null:o.control.name)),"")}}function K_(n,r){if(n&1){let o=P();p(0,"ui-input-text-submit",4),C(1,"translate"),_("onTextSubmit",function(t){u(o);let i=c();return f(i.updateValues(t))})("onFocus",function(t){u(o);let i=c();return f(i.focusChangeEvent(t))}),h(2,J_,2,6,"ng-template",null,0,V),d()}if(n&2){let o=c();l("placeholder",M(1,6,"renderers.textArea.placeholder"))("model",o.renderedValue)("required",o.required)("readonly",o.readonly)("hasSubmit",o.inline)("hasError",o.hasError)}}function Z_(n,r){n&1&&(p(0,"div",5),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}var xc=(()=>{let r=class r{constructor(){this.value="",this.readonly=!1,this.inline=!0,this.loading=!1,this.showLabel=!0,this.hasError=!1,this.onTextSubmit=new y,this.onTextInputFocusChange=new y,this.focused=!1,this.required=!0}ngOnChanges(e){e.control&&this.control&&(this.field=this.control.field,this.evaluateRequired()),e.value&&(!this.renderedValue||!this.focused)&&(this.renderedValue=e.value.currentValue)}updateValues(e){this.field&&this.onTextSubmit.emit({field:this.field,fieldValue:e})}evaluateRequired(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}focusChangeEvent(e){this.focused=e,this.onTextInputFocusChange.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-text-area"]],inputs:{control:"control",value:"value",readonly:"readonly",inline:"inline",loading:"loading",showLabel:"showLabel",hasError:"hasError"},outputs:{onTextSubmit:"onTextSubmit",onTextInputFocusChange:"onTextInputFocusChange"},standalone:!0,features:[k,W],decls:4,vars:3,consts:[["validationError",""],[1,"subtitle-box"],[1,"renderer-loader"],["typeInput","textarea",3,"placeholder","model","required","readonly","hasSubmit","hasError"],["typeInput","textarea",3,"onTextSubmit","onFocus","placeholder","model","required","readonly","hasSubmit","hasError"],[1,"placeholder-no-input-data"]],template:function(t,i){t&1&&h(0,Y_,2,1,"div",1)(1,X_,1,0,"ui-loader",2)(2,K_,4,8,"ui-input-text-submit",3)(3,Z_,3,3),t&2&&(Ce(0,i.showLabel?0:-1),s(),Ce(1,i.loading?1:-1),s(),Ce(2,i.renderedValue&&i.readonly||!i.readonly?2:3))},dependencies:[E,H,I,fe,Fn,qn,ye,Ie],styles:[".renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var eh=n=>({label:n});function th(n,r){if(n&1&&(p(0,"div",1),O(1),d()),n&2){let o=c();s(),R(o.control==null?null:o.control.name)}}function nh(n,r){n&1&&b(0,"ui-loader",2)}function ih(n,r){if(n&1&&(O(0),C(1,"translate")),n&2){let o=c(2);S(" ",xe(1,1,"renderers.errors.required",q(4,eh,o.control==null?null:o.control.name)),"")}}function rh(n,r){if(n&1){let o=P();p(0,"ui-input-text-submit",4),C(1,"translate"),_("onTextSubmit",function(t){u(o);let i=c();return f(i.updateValues(t))})("onFocus",function(t){u(o);let i=c();return f(i.focusChangeEvent(t))}),h(2,ih,2,6,"ng-template",null,0,V),d()}if(n&2){let o=c();l("placeholder",M(1,6,"renderers.textField.placeholder"))("model",o.renderedValue)("required",o.required)("readonly",o.readonly)("hasSubmit",o.inline)("hasError",o.hasError)}}function oh(n,r){n&1&&(p(0,"div",5),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}var Mc=(()=>{let r=class r{constructor(){this.value="",this.readonly=!1,this.inline=!0,this.loading=!1,this.showLabel=!0,this.hasError=!1,this.onTextSubmit=new y,this.onTextInputFocused=new y,this.renderedValue="",this.focused=!1,this.required=!0}ngOnChanges(e){e.control&&this.control&&(this.field=this.control.field,this.evaluateRequired()),e.value&&(!this.renderedValue||!this.focused)&&(this.renderedValue=e.value.currentValue||"")}updateValues(e){this.field&&this.onTextSubmit.emit({field:this.field,fieldValue:e})}evaluateRequired(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));e&&e.value&&(this.required=parseInt(e.value,10)>0)}focusChangeEvent(e){this.focused=e,this.onTextInputFocused.emit(e)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-text"]],inputs:{control:"control",value:"value",readonly:"readonly",inline:"inline",loading:"loading",showLabel:"showLabel",hasError:"hasError"},outputs:{onTextSubmit:"onTextSubmit",onTextInputFocused:"onTextInputFocused"},standalone:!0,features:[k,W],decls:4,vars:3,consts:[["validationError",""],[1,"subtitle-box"],[1,"renderer-loader"],[3,"placeholder","model","required","readonly","hasSubmit","hasError"],[3,"onTextSubmit","onFocus","placeholder","model","required","readonly","hasSubmit","hasError"],[1,"placeholder-no-input-data"]],template:function(t,i){t&1&&h(0,th,2,1,"div",1)(1,nh,1,0,"ui-loader",2)(2,rh,4,8,"ui-input-text-submit",3)(3,oh,3,3),t&2&&(Ce(0,i.showLabel?0:-1),s(),Ce(1,i.loading?1:-1),s(),Ce(2,i.renderedValue&&i.readonly||!i.readonly?2:3))},dependencies:[E,H,I,fe,Fn,qn,ye,Ie],styles:[".renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var ah=n=>({error:n}),lh=n=>({label:n});function sh(n,r){if(n&1&&(p(0,"div",7),O(1),d()),n&2){let o=c(2);s(),R(o.control==null?null:o.control.name)}}function ch(n,r){n&1&&Ge(0)}function ph(n,r){n&1&&Ge(0)}function dh(n,r){if(n&1&&h(0,ph,1,0,"ng-container",6),n&2){c();let o=j(6),e=j(10),t=c();l("ngIf",!!(t.renderedValues!=null&&t.renderedValues.length)&&t.readonly||!t.readonly)("ngIfThen",e)("ngIfElse",o)}}function gh(n,r){n&1&&(p(0,"div",8),O(1),C(2,"translate"),d()),n&2&&(s(),S(" ",M(2,1,"renderers.noDataToShow")," "))}function mh(n,r){n&1&&b(0,"ui-loader",9)}function uh(n,r){if(n&1&&(p(0,"ui-error-popup"),O(1),C(2,"translate"),d()),n&2){let o=c(3);s(),S(" ",xe(2,1,"renderers.errors.required",q(4,lh,o.control==null?null:o.control.name))," ")}}function fh(n,r){if(n&1){let o=P();p(0,"renderer-space-user",10),C(1,"translate"),_("onChangeSelectedUser",function(t){u(o);let i=c(2);return f(i.changeSelectedUser(t))})("onFocusChange",function(t){u(o);let i=c(2);return f(i.onFocusChange(t))}),d(),h(2,uh,3,6,"ui-error-popup",4)}if(n&2){let o=c(2);l("placeholder",M(1,7,"renderers.userSelect.placeholder"))("selectedUserUris",o.renderedValues)("minCardinality",o.minUserSelection)("isMultiSelect",o.multiple)("disabled",o.readonly)("ngClass",q(9,ah,o.hasError)),s(2),l("ngIf",o.hasError)}}function _h(n,r){if(n&1&&(p(0,"div"),h(1,sh,2,1,"div",5)(2,ch,1,0,"ng-container",6)(3,dh,1,3,"ng-template",null,0,V)(5,gh,3,3,"ng-template",null,1,V)(7,mh,1,0,"ng-template",null,2,V)(9,fh,3,11,"ng-template",null,3,V),d()),n&2){let o=j(4),e=j(8),t=c();s(),l("ngIf",t.showLabel),s(),l("ngIf",t.loading)("ngIfThen",e)("ngIfElse",o)}}var Oc=(()=>{let r=class r{constructor(){this.values=[],this.loading=!1,this.disableUserSelect=!1,this.hasError=!1,this.readonly=!1,this.showLabel=!0,this.onChangeSelectedUser=new y,this.required=!1,this.multiple=!1}ngOnChanges(e){(e.control||e.disableUserSelect)&&!this.disableUserSelect&&this.previousControl!==e?.control?.currentValue&&(this.field=this.control.field,this.evaluateRequired(),this.evaluateMaxCardinality(),this.previousControl=e?.control?.currentValue),e.values&&!this.focused&&!this.loadingMap?.getValue()?.get(this.field?.uri)&&(this.renderedValues=e.values.currentValue)}changeSelectedUser(e){if(this.required&&(this.hasError=!e),this.multiple){let t=e?e.map(i=>i.userUri):[];this.onChangeSelectedUser.emit({field:this.field,fieldValue:t}),this.renderedValues=t}else{let t=e?e.userUri:null;this.onChangeSelectedUser.emit({field:this.field,fieldValue:t}),this.renderedValues=[t]}}evaluateRequired(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MIN_CARDINALITY));if(e&&e.value){let t=parseInt(e.value,10);this.required=t>0,this.minUserSelection=this.required?t:0}}evaluateMaxCardinality(){let e=this.field?.propertyValues.find(t=>t.fieldTypePropertyUri.endsWith(Re.MAX_CARDINALITY));e?this.maxCardinality=parseInt(e.value,10):this.multiple=!0}onFocusChange(e){this.focused=e}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-user-select"]],inputs:{control:"control",values:"values",loading:"loading",disableUserSelect:"disableUserSelect",hasError:"hasError",readonly:"readonly",showLabel:"showLabel",loadingMap:"loadingMap"},outputs:{onChangeSelectedUser:"onChangeSelectedUser"},standalone:!0,features:[k,W],decls:1,vars:1,consts:[["rendererTemp",""],["noDataTemp",""],["loadingTemp",""],["inputTemp",""],[4,"ngIf"],["class","subtitle-box",4,"ngIf"],[4,"ngIf","ngIfThen","ngIfElse"],[1,"subtitle-box"],[1,"placeholder-no-input-data"],[1,"renderer-loader"],[1,"user-select",3,"onChangeSelectedUser","onFocusChange","placeholder","selectedUserUris","minCardinality","isMultiSelect","disabled","ngClass"]],template:function(t,i){t&1&&h(0,_h,11,4,"div",4),t&2&&l("ngIf",!i.disableUserSelect)},dependencies:[E,de,A,fe,H,I,mi,ye,Ie,Je,rt,Ii],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-user-search.error .ng-select-container{border:1px solid #f1245c!important}[_nghost-%COMP%]     ui-user-search.error.ng-select-multiple .ng-select-container{border:1px solid #f1245c!important}.renderer-loader[_ngcontent-%COMP%]{margin:0 auto;transform:scale(.8)}"]});let n=r;return n})();var qr=function(n){return n.TAGS="autofill-tags",n.IMAGE="autofill-image",n.DESCRIPTION="autofill-description",n}(qr||{}),Io=function(n){return n.TAGS="tag_autoFill",n.IMAGE="headerImage_autoFill",n.RTE="rich_autoFill",n.AUTOCREATE="auto_inspiration_default",n}(Io||{}),Be=function(n){return n.TOKENS_EXCEEDED="TokensDepletedException",n.TOKENS_DEPLETED="TokensDepleted",n.SUCCESS="success",n.INCOMPLETE="incomplete",n.API_INTERNAL_SERVER_ERROR="ApiInternalServerErrorException",n.API_HIGH_TRAFFIC_EXCEPTION="ApiHighTrafficException",n}(Be||{}),Hi=function(n){return n.AUTOFILL="Autofill",n.AUTOCREATE="Autocreate",n}(Hi||{});var Nn=5e3,Pc=3e3,bc=0,yc=2,vc="COMPLETED",wc="FAILED",hh="renderers-ng.autofill.openAIOutage",Ch="renderers-ng.autofill.gptLimitWarning",xh="renderers-ng.autofill.openAIBusy",Mh="renderers-ng.autofill.error",Sc="renderers-ng.autofill.imagesPreview.saveImageFailed",Oh="renderers-ng.autofill.imagesPreview.imageSaved",Ph="renderers-ng.autofill.autoCreateElements.autoCreateFailed",bh="renderers-ng.autofill.autoRate.ratingFailed",dn=(()=>{let r=class r{constructor(e,t,i,a,g){this.http=e,this.environmentService=t,this.toastNotificationsService=i,this.modalService=a,this.translateService=g,this.autoCreateElementsTasksUpdated$=new F,this.autoCreateElementsTasks=[],this.autoRateElementsTasksUpdated$=new F,this.autoRateElementsTasks=[],this.saveBackgroundImageTasksUpdated$=new F,this.saveBackgroundImageTasks=[],this.allAITasksUpdated$=new F,this.allAITasks=[],this.autoCreateElementsTasksComplete$=new F,this.autoRateElementsTasksComplete$=new F,this.saveBackgroundImageTasksComplete$=new F,this.allAITasksComplete$=new F,this.errorToastID="",this.internalServerErrorTost={type:Ye.ERROR,contentType:Wn.CUSTOM_CONTENT,content:this.translateService.instant(hh),duration:Nn},this.gptTokensDepletedToast={type:Ye.ALERT,contentType:Wn.CUSTOM_CONTENT,content:this.translateService.instant(Ch),duration:Nn},this.openAiBusyToast={type:Ye.ERROR,content:this.translateService.instant(xh),duration:Nn},this.autofillFailedToast={content:this.translateService.instant(Mh),type:Ye.ERROR,closeable:!0},this.saveImageFailedToast={content:this.translateService.instant(Sc),type:Ye.ERROR,duration:Nn},this.autocreateFailedToast={content:this.translateService.instant(Ph),type:Ye.ERROR,duration:Nn},this.FILE_UPLOAD_API_URL=this.environmentService.getFilesUrl("files-v2/spaces"),this.API_URL=this.environmentService.getRestUrl("/ai"),this.API_URL_TASKS=`${this.API_URL}/tasks`,this.autoCreateElementsTasksUpdated$.subscribe(m=>{m.length<=0&&this.autoCreateElementsTasksComplete$.next(null)}),this.autoRateElementsTasksUpdated$.subscribe(m=>{m.length<=0&&this.autoRateElementsTasksComplete$.next(null)}),this.saveBackgroundImageTasksUpdated$.subscribe(m=>{m.length<=0&&this.saveBackgroundImageTasksComplete$.next(null)}),this.allAITasksUpdated$.subscribe(m=>{m.length<=0&&this.allAITasksComplete$.next(null)})}getAllPrompts(e,t){return this.http.get(`${this.API_URL}/${e}/prompts`).pipe(et(i=>(this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),!this.handleOpenAIErrorToasts(i.error.error)&&i.error.error!==Be.TOKENS_EXCEEDED&&(t===Hi.AUTOCREATE?this.errorToastID=this.toastNotificationsService.showToast(this.autocreateFailedToast):this.errorToastID=this.toastNotificationsService.showToast(this.autofillFailedToast),setTimeout(()=>{this.modalService.closeModal()})),Jn(()=>i))))}getPromptsByIDs(e,t){let i=e.includes(Io.AUTOCREATE)?Hi.AUTOCREATE:Hi.AUTOFILL;return this.getAllPrompts(t,i).pipe(Zt(a=>a.filter(g=>e.includes(g.promptID))))}sendElementDetails(e,t){let i=`${this.API_URL}/${e}/auto-fill`;return this.http.post(i,t).pipe(et(a=>(a.error.error!==Be.TOKENS_EXCEEDED&&!this.handleOpenAIErrorToasts(a.error.error)&&(this.modalService.closeModal(),this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),this.errorToastID=this.toastNotificationsService.showToast(this.autofillFailedToast)),Jn(()=>a))))}autoCreateImages(e,t,i){let a=`${this.API_URL}/${e}/images`;return this.http.post(a,t).pipe(et(g=>(this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),g.error.error===Be.TOKENS_EXCEEDED?i(Be.TOKENS_EXCEEDED):(this.modalService.closeModal(),this.handleOpenAIErrorToasts(g.error.error)||(this.errorToastID=this.toastNotificationsService.showToast(this.autofillFailedToast))),Jn(()=>g))))}getBackgroundImageUri(e,t,i){let a=`${this.FILE_UPLOAD_API_URL}/${e}/uploadWithUrl`;return new Promise((g,m)=>{this.http.post(a,t,{}).subscribe({next:w=>{this.saveBackgroundImageTasks.push(w.uri),this.allAITasks.push(w.uri),this.checkFileUploadProgress([w.uri],this.translateService.instant(Sc),e),this.saveBackgroundImageTasksComplete$.subscribe(()=>{this.toastNotificationsService.closeToast(i),g(w)})},error:()=>{this.allAITasks=this.allAITasks.filter(w=>this.saveBackgroundImageTasks.indexOf(w)!==-1),this.allAITasksUpdated$.next(this.allAITasks),this.saveBackgroundImageTasks=[],this.saveBackgroundImageTasksUpdated$.next(this.saveBackgroundImageTasks),this.toastNotificationsService.closeToast(i),this.errorToastID=this.toastNotificationsService.showToast(this.saveImageFailedToast),m()}})})}handleImageToasts(e,t){e?(this.allAITasks=this.allAITasks.filter(i=>i!==t),this.allAITasksUpdated$.next(this.allAITasks),this.toastNotificationsService.showToast({content:this.translateService.instant(Oh),type:Ye.SUCCESS,duration:Nn})):(this.allAITasks=this.allAITasks.filter(i=>this.saveBackgroundImageTasks.indexOf(i)!==-1),this.allAITasksUpdated$.next(this.allAITasks),this.saveBackgroundImageTasks=[],this.saveBackgroundImageTasksUpdated$.next(this.saveBackgroundImageTasks),this.errorToastID=this.toastNotificationsService.showToast(this.saveImageFailedToast))}autoCreateElements(e,t,i,a,g){let m=[],w=`${this.API_URL}/${e}/create-elements/${t}`,N=this.http.post(w,i).pipe(It(this.autoCreateElementsTasksComplete$)).subscribe({next:G=>{G.forEach(Me=>{m.includes(Me.taskID)||m.push(Me.taskID)}),this.autoCreateElementsTasks.push(...m),this.allAITasks.push(...m),this.autoCreateElementsTasksUpdated$.next(this.autoCreateElementsTasks),this.checkTaskProgress(m),this.autoCreateElementsTasksComplete$.subscribe(()=>{N.unsubscribe(),this.toastNotificationsService.closeToast(g),a(Be.SUCCESS)})},error:G=>{this.toastNotificationsService.closeToast(g),this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),this.handleOpenAIErrorToasts(G.error.error)||(G.error.error===Be.TOKENS_EXCEEDED?a(Be.TOKENS_EXCEEDED):(this.modalService.closeModal(),N.unsubscribe(),this.allAITasks=this.allAITasks.filter(Me=>this.autoCreateElementsTasks.indexOf(Me)!==-1),this.allAITasksUpdated$.next(this.allAITasks),this.autoCreateElementsTasks=[],this.autoCreateElementsTasksUpdated$.next(this.autoCreateElementsTasks),this.errorToastID=this.toastNotificationsService.showToast(this.autocreateFailedToast)))}})}autoRateElements(e,t,i,a,g,m){let w={filter:{spaceUri:i,filter:e.toJson()},ratingCriterion:t},N=[],G=this.http.post(`${this.API_URL}/${a}/auto-rate`,w).pipe(It(this.autoRateElementsTasksComplete$)).subscribe({next:Me=>{Me.forEach(at=>{N.includes(at.taskID)||N.push(at.taskID)}),this.autoRateElementsTasks.push(...N),this.allAITasks.push(...N),this.autoRateElementsTasksUpdated$.next(this.autoRateElementsTasks),this.checkTaskProgress(N),this.autoRateElementsTasksComplete$.subscribe(()=>{G.unsubscribe(),this.toastNotificationsService.closeToast(g),m(Be.SUCCESS)})},error:Me=>{this.toastNotificationsService.closeToast(g),this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),this.handleOpenAIErrorToasts(Me.error.error)||(Me.error.error===Be.TOKENS_EXCEEDED?this.errorToastID=this.toastNotificationsService.showToast(JSON.parse(JSON.stringify(this.gptTokensDepletedToast))):(G.unsubscribe(),this.allAITasks=this.allAITasks.filter(at=>this.autoRateElementsTasks.indexOf(at)!==-1),this.allAITasksUpdated$.next(this.allAITasks),this.autoRateElementsTasks=[],this.autoRateElementsTasksUpdated$.next(this.autoRateElementsTasks),this.toastNotificationsService.closeToast(g),this.errorToastID=this.toastNotificationsService.showToast({content:this.translateService.instant(bh),type:Ye.ERROR,duration:Nn})))}})}checkFileUploadProgress(e,t,i){Qr(bc,Pc).pipe($r(()=>this.http.get(`${this.FILE_UPLOAD_API_URL}/${i}/fileStatus/${e}`)),It(this.saveBackgroundImageTasksComplete$),Yr(yc)).subscribe({next:a=>{if(a.status===vc)this.saveBackgroundImageTasks.indexOf(a.uri)!==-1&&(this.saveBackgroundImageTasks=this.saveBackgroundImageTasks.filter(m=>m!==a.uri),this.saveBackgroundImageTasksUpdated$.next(this.saveBackgroundImageTasks));else if(a.status===wc)throw this.toastNotificationsService.showToast({content:t,type:Ye.ERROR,duration:Nn}),this.saveBackgroundImageTasks.indexOf(a.uri)!==-1&&(this.saveBackgroundImageTasks=this.saveBackgroundImageTasks.filter(m=>m!==a.uri),this.saveBackgroundImageTasksUpdated$.next(this.saveBackgroundImageTasks)),new Error},error:()=>{this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),this.saveBackgroundImageTasksComplete$.next(),this.allAITasks=this.allAITasks.filter(a=>this.autoRateElementsTasks.indexOf(a)!==-1),this.allAITasksUpdated$.next(this.allAITasks),this.autoRateElementsTasks=[],this.autoRateElementsTasksUpdated$.next(this.autoRateElementsTasks),this.errorToastID=this.toastNotificationsService.showToast(this.saveImageFailedToast)}})}checkTaskProgress(e){Qr(bc,Pc).pipe($r(()=>this.getTasks(e)),It(this.allAITasksComplete$),Yr(yc)).subscribe(t=>{t.forEach(i=>{if(i.status===vc){let a=this.autoCreateElementsTasks.indexOf(i.taskID),g=this.autoRateElementsTasks.indexOf(i.taskID);a!==-1&&(this.autoCreateElementsTasks=this.autoCreateElementsTasks.filter(m=>m!==i.taskID),this.autoCreateElementsTasksUpdated$.next(this.autoCreateElementsTasks),this.allAITasks=this.allAITasks.filter(m=>m!==i.taskID),this.allAITasksUpdated$.next(this.allAITasks)),g!==-1&&(this.autoRateElementsTasks=this.autoRateElementsTasks.filter(m=>m!==i.taskID),this.autoRateElementsTasksUpdated$.next(this.autoRateElementsTasks),this.allAITasks=this.allAITasks.filter(m=>m!==i.taskID),this.allAITasksUpdated$.next(this.allAITasks))}else if(i.status===wc){this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),i.causeOfError===Be.TOKENS_DEPLETED&&(this.errorToastID=this.toastNotificationsService.showToast(JSON.parse(JSON.stringify(this.gptTokensDepletedToast))),this.allAITasksComplete$.next(null),this.modalService.closeModal());let a=this.autoCreateElementsTasks.indexOf(i.taskID),g=this.autoRateElementsTasks.indexOf(i.taskID);a!==-1&&(this.autoCreateElementsTasks=this.autoCreateElementsTasks.filter(m=>m!==i.taskID),this.autoCreateElementsTasksUpdated$.next(this.autoCreateElementsTasks),this.allAITasks=this.allAITasks.filter(m=>m!==i.taskID),this.allAITasksUpdated$.next(this.allAITasks)),g!==-1&&(this.autoRateElementsTasks=this.autoRateElementsTasks.filter(m=>m!==i.taskID),this.autoRateElementsTasksUpdated$.next(this.autoRateElementsTasks),this.allAITasks=this.allAITasks.filter(m=>m!==i.taskID),this.allAITasksUpdated$.next(this.allAITasks))}})})}getTasks(e){return this.http.post(`${this.API_URL_TASKS}/query`,{taskIDs:e})}handleOpenAIErrorToasts(e){return this.errorToastID&&this.toastNotificationsService.closeToast(this.errorToastID),e===Be.API_HIGH_TRAFFIC_EXCEPTION?(this.errorToastID=this.toastNotificationsService.showToast(JSON.parse(JSON.stringify(this.openAiBusyToast))),this.modalService.closeModal(),!0):e===Be.API_INTERNAL_SERVER_ERROR?(this.errorToastID=this.toastNotificationsService.showToast(JSON.parse(JSON.stringify(this.internalServerErrorTost))),this.modalService.closeModal(),!0):!1}};r.\u0275fac=function(t){return new(t||r)(U(Zo),U(or),U(ht),U(Ct),U(K))},r.\u0275prov=be({token:r,factory:r.\u0275fac,providedIn:"root"});let n=r;return n})();var yh=n=>({hide:n});function vh(n,r){n&1&&(p(0,"div",3)(1,"span",4),O(2),C(3,"translate"),d(),b(4,"ui-bar-loader",5),d()),n&2&&(s(2),R(M(3,2,"renderers-ng.autofill.loadTemplates")),s(2),l("ownScrollEvent",!1))}function wh(n,r){n&1&&(p(0,"div",6),b(1,"explorer-gpt-token-limit-warning"),d())}function Sh(n,r){if(n&1&&(p(0,"span")(1,"a",26),O(2),C(3,"translate"),d()()),n&2){let o=c(2);s(),At("href",o.kbArticle,Lt),s(),S(" ",M(3,2,"renderers-ng.autofill.moreInfo"),"")}}function Th(n,r){if(n&1&&b(0,"ui2-dropdown-category-label-bar",27),n&2){let o=r.item;l("title",o.label)}}function Eh(n,r){if(n&1&&(p(0,"ng-option",28),O(1),d()),n&2){let o=r.item;l("value",o.promptID),s(),R(o.label?o.label:"")}}function Ih(n,r){if(n&1){let o=P();p(0,"div",29)(1,"label",14),O(2),d(),p(3,"input",30),re("ngModelChange",function(t){let i=u(o).$implicit,a=c(2);return ie(a.requestData.params[i.key],t)||(a.requestData.params[i.key]=t),f(t)}),_("keyup",function(){let t=u(o).$implicit,i=c(2);return f(i.getCurrentInputValue(i.requestData.params[t.key]))}),d()()}if(n&2){let o=r.$implicit,e=c(2);s(2),R(o.label),s(),l("placeholder",(o==null?null:o.placeholder)||""),ne("ngModel",e.requestData.params[o.key])}}function kh(n,r){if(n&1){let o=P();p(0,"div",7)(1,"div",8),b(2,"span",9),p(3,"span",10)(4,"span"),O(5),C(6,"translate"),d()(),h(7,Sh,4,4,"span",11),d(),p(8,"div",12)(9,"div",13)(10,"span",14),O(11),C(12,"translate"),d(),p(13,"div",15)(14,"ng-select",16),re("ngModelChange",function(t){u(o);let i=c();return ie(i.selectedPromptID,t)||(i.selectedPromptID=t),f(t)}),_("change",function(t){u(o);let i=c();return f(i.showFieldsBySelectedPrompt(t))}),h(15,Th,1,1,"ng-template",17)(16,Eh,2,2,"ng-template",18),d()()(),p(17,"div",19),h(18,Ih,4,3,"div",20),d()(),p(19,"div",21)(20,"div",22),O(21),C(22,"translate"),p(23,"a",23),O(24),C(25,"translate"),d()(),p(26,"ui2-button",24),_("click",function(){u(o);let t=c();return f(t.closeModal())}),O(27),C(28,"translate"),d(),p(29,"ui2-button",25),_("click",function(){u(o);let t=c();return f(t.create())}),O(30),C(31,"translate"),d()()()}if(n&2){let o=c();s(5),S(" ",M(6,14,"renderers-ng.autofill.helpDescribe")," "),s(2),l("ngIf",o.kbArticle),s(2),l("ngClass",q(26,yh,o.promptDropdownOptions.length<=1)),s(2),R(M(12,16,"renderers-ng.autofill.descriptionPreview.fillInstruction")),s(3),l("clearable",!1)("items",o.promptDropdownOptionsGrouped),ne("ngModel",o.selectedPromptID),s(4),l("ngForOf",o.userInputs),s(3),S(" ",M(22,18,"renderers-ng.autofill.gptConsent")," "),s(2),l("href",o.gptTermsLink,Lt),s(),S(" ",M(25,20,"renderers-ng.autofill.learnMore")," "),s(3),S(" ",M(28,22,"renderers-ng.autofill.cancel")," "),s(2),l("disabled",!(o.currentInputValue!=null&&o.currentInputValue.length)&&(o.userInputs==null?null:o.userInputs.length)>0||!(o.requestData!=null&&o.requestData.promptID)),s(),S(" ",M(31,24,"renderers-ng.autofill.create")," ")}}var jn=(()=>{let r=class r{set field(e){this._field=e,this.checkValuesAndCallGetGptPrompts()}get field(){return this._field}set elementType(e){this._elementType=e,this.checkValuesAndCallGetGptPrompts()}get elementType(){return this._elementType}set tenantUri(e){this._tenantUri=e,this.checkValuesAndCallGetGptPrompts()}get tenantUri(){return this._tenantUri}constructor(e,t,i,a,g,m){this.modalService=e,this.gptService=t,this.logger=i,this.toastService=a,this.environmentService=g,this.translateService=m,this.kbArticle="",this.loading=!0,this.promptSelection=!1,this.loadingTemplates=!0,this.promptDropdownOptions=null,this.promptDropdownOptionsGrouped=null,this.selectedPrompt=null,this.currentInputValue="",this.requestAutofillData=new y,this.autofillDataChange=new y,this.userInputs=[],this.fieldValues=[],this.gptTermsLink=this.environmentService.getUrl(ya.ID,"/terms/open-ai")}checkValuesAndCallGetGptPrompts(){this._elementType&&this._field&&this._tenantUri&&this.getGptPrompts()}getGptPrompts(){this.previewType={rich:qr.DESCRIPTION,tag:qr.TAGS}[this._field?.fieldTypeUri];let e=this._field?.propertyValues.find(a=>a.fieldTypePropertyUri.endsWith("_autoFill"))?.value;if(!e)return;let t=JSON.parse(e),i=[...t[this._elementType.uri]||[],...t.all||[]].filter((a,g,m)=>m.indexOf(a)===g);i.length&&this.gptService.getPromptsByIDs(i,this._tenantUri).pipe(et(a=>{if(a.error.error===Be.TOKENS_EXCEEDED){this.tokensExceeded=!0,this.loadingTemplates=!1;return}return this.modalService.closeModal(),this.loadingTemplates=!1,Jn(()=>a)}),On(300)).subscribe(a=>{this.promptDropdownOptionsGrouped=[],this.promptDropdownOptions=a.map(g=>Pe(ce({},g),{category:g.category||this.translateService.instant("renderers-ng.autofill.defaultGroupLabel"),uri:g.promptID})),Kt(this.promptDropdownOptions).pipe(No(g=>g.category),Do(g=>g.pipe(Lo()))).subscribe(g=>{this.promptDropdownOptionsGrouped.push({uri:g?.[0].category,label:g?.[0].category,prompts:g.sort((m,w)=>m.label.localeCompare(w.label))}),this.promptDropdownOptionsGrouped=this.promptDropdownOptionsGrouped.sort((m,w)=>m.label===this.translateService.instant("renderers-ng.autofill.defaultGroupLabel")?1:w.label===this.translateService.instant("renderers-ng.autofill.defaultGroupLabel")?-1:m.label.localeCompare(w.label)),this.loading=!1,this.checkForSinglePrompt(),this.loadingTemplates=!1})})}checkForSinglePrompt(){return Z(this,null,function*(){if(this.promptDropdownOptions.length>1){this.promptSelection=!0;return}this.selectedPrompt=this.promptDropdownOptions[0],this.requestData={promptID:this.selectedPrompt?.promptID,params:{}};let e=Object.keys(this.selectedPrompt.variables).map(i=>ce({key:i},this.selectedPrompt.variables[i])),t=e.filter(i=>i.type==="USER_INPUT");if(t.length&&(this.promptSelection=!0,this.showFieldsBySelectedPrompt(this.promptDropdownOptions[0])),!t.length){this.promptSelection=!1;let i=e.filter(a=>a.type==="FIELD_VALUE");yield this.getFieldValues(i),this.requestAutofillData.emit(this.requestData)}})}mapFieldsAndInputToRequestData(e){return Z(this,null,function*(){this.requestData={promptID:e.promptID,params:{}};let t=Object.keys(e.variables).map(i=>ce({key:i},e.variables[i]));this.userInputs=t.filter(i=>i.type==="USER_INPUT"),this.fieldValues=t.filter(i=>i.type==="FIELD_VALUE"),yield this.getFieldValues(this.fieldValues)})}showFieldsBySelectedPrompt(e){this.currentInputValue="",this.promptDropdownOptions.length>1&&(this.autofillDataChange.emit(e),this.selectedPrompt=e,this.selectedPrompt&&this.mapFieldsAndInputToRequestData(this.selectedPrompt),this.selectedPrompt||(this.userInputs=[])),this.promptDropdownOptions.length===1&&Object.keys(this.promptDropdownOptions[0].variables).map(i=>ce({key:i},this.promptDropdownOptions[0].variables[i])).filter(i=>i.type==="USER_INPUT")&&this.mapFieldsAndInputToRequestData(this.promptDropdownOptions[0])}getFieldValues(e){return Z(this,null,function*(){return Promise.all([e.map(t=>Z(this,null,function*(){t.uri==="elementTypeUri"?this.requestData.params[t.key]=this._elementType.name:t.uri==="summary"||t.uri==="label"?this.requestData.params[t.key]=this.entity[t.uri]||this.entity.fieldValues.find(i=>i.fieldUri===t.uri)?.value:this.logger.warn("Autofill with selected fields used in templates is not yet supported"),this.requestData.params[t.key]||(this.closeModal(),this.toastService.showToast({content:this.translateService.instant("renderers-ng.autofill.error"),type:Ye.ALERT,closeable:!0}),this.logger.info(`Autofill requires ${t.key} to be filled out first.`))}))])})}create(){if(!(!this.currentInputValue?.length&&this.userInputs?.length>0||!this.requestData?.promptID)){if(!this.isRequestComplete())return;this.loading=!0,this.requestAutofillData.emit(this.requestData)}}isRequestComplete(){return Object.keys(this.selectedPrompt.variables).reduce((e,t)=>e&&!!this.requestData.params[t],!0)}closeModal(){this.modalService.closeModal()}getCurrentInputValue(e){e?.replace(/\s+/g,"").length===0?this.currentInputValue="":this.currentInputValue=e}};r.\u0275fac=function(t){return new(t||r)(x(Ct),x(dn),x(Ae),x(ht),x(or),x(K))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-autofill"]],inputs:{entity:"entity",field:"field",elementType:"elementType",tenantUri:"tenantUri",kbArticle:"kbArticle",tokensExceeded:"tokensExceeded",loading:"loading"},outputs:{requestAutofillData:"requestAutofillData",autofillDataChange:"autofillDataChange"},standalone:!0,features:[W],decls:3,vars:3,consts:[["class","loading-state",4,"ngIf"],["class","gpt-warning",4,"ngIf"],["class","autofill-wrapper",4,"ngIf"],[1,"loading-state"],[1,"loader-label","label-xs-single"],[1,"loader",3,"ownScrollEvent"],[1,"gpt-warning"],[1,"autofill-wrapper"],[1,"info-box"],[1,"icon","icon2-x16-info"],[1,"info-text","label-sm"],[4,"ngIf"],[1,"fields"],[1,"prompt-selection",3,"ngClass"],[1,"label-sm-semibold"],[1,"select-wrapper"],["appendTo",".select-wrapper","placeholder","Select option","groupBy","prompts",1,"ui2-dropdown",3,"ngModelChange","change","clearable","items","ngModel"],["ng-optgroup-tmp",""],["ng-option-tmp",""],[1,"user-fields"],["class","user-input",4,"ngFor","ngForOf"],[1,"ctas"],[1,"label-xs","main-gray-light","self-center"],["target","_blank",1,"gpt-link","label-xs-semibold",3,"href"],[1,"cancel-btn","button-secondary",3,"click"],[1,"create-btn","button-primary",3,"click","disabled"],["target","_blank",1,"label-sm-semibold-single","color-primary",3,"href"],[3,"title"],[3,"value"],[1,"user-input"],["type","text",1,"form__input-text","body-text-sm",3,"ngModelChange","keyup","placeholder","ngModel"]],template:function(t,i){t&1&&h(0,vh,5,4,"div",0)(1,wh,2,0,"div",1)(2,kh,32,28,"div",2),t&2&&(l("ngIf",!i.promptSelection&&i.loadingTemplates),s(),l("ngIf",i.tokensExceeded),s(),l("ngIf",i.promptSelection&&!i.loadingTemplates&&!i.loading&&!i.tokensExceeded))},dependencies:[E,de,Oe,A,H,I,Vn,Dn,xt,_e,Va,ur,ke,gi,hr,Xe,Ee,sr,on,fe,nn,J,te,rn],styles:["[_nghost-%COMP%]     .ng-dropdown-panel{position:absolute!important}.info-box[_ngcontent-%COMP%]{background-color:#e6f6fe80;padding:12px;border-radius:6px;display:flex;margin-bottom:24px;gap:12px;align-items:center}.info-box[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{color:#00d1ff}.info-box[_ngcontent-%COMP%]   .info-text[_ngcontent-%COMP%]{margin-left:8px;max-width:293px}.info-box[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{text-decoration:none}.fields[_ngcontent-%COMP%]{display:grid;gap:24px}.fields[_ngcontent-%COMP%]   ng-select[_ngcontent-%COMP%]{margin-top:-16px}.fields[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{margin-top:8px}.fields[_ngcontent-%COMP%]   .user-fields[_ngcontent-%COMP%]   .user-input[_ngcontent-%COMP%]:not(:last-child){margin-bottom:12px}.fields[_ngcontent-%COMP%]   .user-fields[_ngcontent-%COMP%]   .user-input[_ngcontent-%COMP%]{color:#627588}.ctas[_ngcontent-%COMP%]{margin-top:36px;display:flex;justify-content:flex-end;gap:12px}.gpt-link[_ngcontent-%COMP%]{text-decoration:none;color:#098dcd}.select-wrapper[_ngcontent-%COMP%]{position:relative}.prompt-selection[_ngcontent-%COMP%]{display:contents}.prompt-selection[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{color:#3e4d63}.prompt-selection.hide[_ngcontent-%COMP%]{display:none}.loading-state[_ngcontent-%COMP%]{height:50px}.loading-state[_ngcontent-%COMP%]   .loader-label[_ngcontent-%COMP%]{display:flex;justify-content:center}.loading-state[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{width:323px;position:absolute;display:block;margin-top:24px;left:100px}.gpt-warning[_ngcontent-%COMP%]{margin-bottom:24px}"]});let n=r;return n})();var Fh="auto_inspiration_default",Rh=5,LD=(()=>{let r=class r{constructor(e,t,i,a,g){this.gptService=e,this.toastService=t,this.modalService=i,this.trackingService=a,this.translate=g,this.defaultFieldValuesForCreatedElements=[],this.numberOfElements=Rh,this.onCreateSuccess=new y,this.field={uri:"",name:"",tenantUri:"",fieldTypeUri:si.URI,createdOn:null,createdByUri:"",propertyValues:[{fieldTypePropertyUri:"field_autoFill",value:`{"all":["${Fh}"]}`}]},this.generatingInProgress={content:this.translate.instant("renderers-ng.autofill.autoCreateElements.generatingIdeas"),closeable:!1,toastId:"info"},this.autoCreateElements=null,this.linkToKb=ri.AI_CREATE_ELEMENTS,this.tokensExceeded=!1}getRequestData(e){this.trackingService.trackEventById("smartIdeation.startAutoCreateIdeas");let t=e?.params?.industrySelection;this.trackingService.trackEventById("smartIdeation.addIndustry",{dimension4:t}),this.toastService.showToast(this.generatingInProgress),this.modalService.closeModal(),this.autoCreateElements=e,this.autoCreateElements.numberOfElements=this.numberOfElements,this.autoCreateElements.elementTypeUri=this.elementTypeToCreate.uri,this.autoCreateElements.fieldValues=this.defaultFieldValuesForCreatedElements,this.gptService.autoCreateElements(this.tenantUri,this.entityToReadTemplateParams.spaceUri,this.autoCreateElements,i=>this.handleRequest(i),this.generatingInProgress.toastId)}handleRequest(e){this.onCreateSuccess.next(e),e===Be.TOKENS_EXCEEDED?this.tokensExceeded=!0:this.modalService.closeModal()}};r.\u0275fac=function(t){return new(t||r)(x(dn),x(ht),x(Ct),x(pe),x(K))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-auto-create-elements"]],inputs:{elementTypeToCreate:"elementTypeToCreate",defaultFieldValuesForCreatedElements:"defaultFieldValuesForCreatedElements",entityToReadTemplateParams:"entityToReadTemplateParams",tenantUri:"tenantUri",numberOfElements:"numberOfElements"},outputs:{onCreateSuccess:"onCreateSuccess"},standalone:!0,features:[W],decls:2,vars:7,consts:[[1,"auto-inspiration-wrapper"],[3,"requestAutofillData","entity","field","elementType","loading","tokensExceeded","kbArticle","tenantUri"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"renderer-gpt-autofill",1),_("requestAutofillData",function(g){return i.getRequestData(g)}),d()()),t&2&&(s(),l("entity",i.entityToReadTemplateParams)("field",i.field)("elementType",i.elementTypeToCreate)("loading",i.loading)("tokensExceeded",i.tokensExceeded)("kbArticle",i.linkToKb)("tenantUri",i.tenantUri))},dependencies:[E,jn,sr,on]});let n=r;return n})();function Dh(n,r){if(n&1){let o=P();Y(0),p(1,"ui2-checkbox",12),_("ngModelChange",function(){let t=u(o).$implicit,i=c(2);return f(i.onPhaseChecked(t))}),re("ngModelChange",function(t){let i=u(o).$implicit;return ie(i.checked,t)||(i.checked=t),f(t)}),p(2,"span",13),O(3),d()(),X()}if(n&2){let o=r.$implicit;s(),ne("ngModel",o.checked),s(2),S(" ",o.label," ")}}function Vh(n,r){if(n&1&&(Y(0),h(1,Dh,4,2,"ng-container",11),X()),n&2){let o=c();s(),l("ngForOf",o.workflowPhases)}}function Uh(n,r){if(n&1&&b(0,"span",14),n&2){let o=c().$implicit;l("uiTooltip",o.description)}}function Lh(n,r){n&1&&(b(0,"span",15),C(1,"translate")),n&2&&l("uiTooltip",M(1,1,"renderers-ng.autofill.ratingDescriptionUnavailable"))}function Ah(n,r){if(n&1){let o=P();Y(0),p(1,"ui2-checkbox",12),_("ngModelChange",function(){let t=u(o).$implicit,i=c(2);return f(i.onRatingChecked(t))}),re("ngModelChange",function(t){let i=u(o).$implicit;return ie(i.checked,t)||(i.checked=t),f(t)}),p(2,"span",13),O(3),d(),h(4,Uh,1,1,"span",14)(5,Lh,2,3),d(),X()}if(n&2){let o=r.$implicit;s(),ne("ngModel",o.checked),s(2),S(" ",o.ratingField.name," "),s(),Ce(4,o.description?4:5)}}function Nh(n,r){if(n&1&&(Y(0),h(1,Ah,6,3,"ng-container",11),X()),n&2){let o=c();s(),l("ngForOf",o.ratingDefinitionList)}}var JD=(()=>{let r=class r{set ratingDefinitions(e){this.ratingDefinitionList=JSON.parse(JSON.stringify(e))}constructor(e){this.trackingService=e,this.ratingDefinitionList=[],this.submitCriteria=new y,this.submitPhases=new y,this.cancelAutoRate=new y,this.selectedCriteriaUris=[],this.selectedPhasesUris=[],this.workflowPhases=[],this.currentStep=1}ngOnInit(){this.workflowPhases=this.workflowDefinition.phases,this.workflowPhases.forEach(e=>e.checked=!1)}onRatingChecked(e){e.checked?this.selectedCriteriaUris.splice(this.selectedCriteriaUris.indexOf(e.ratingField.uri),1):this.selectedCriteriaUris.push(e.ratingField.uri)}onPhaseChecked(e){let t=e?.label;this.trackingService.trackEventById("smartIdeation.selectIdeaRatePhase",{dimension4:t}),e.checked?this.selectedPhasesUris.splice(this.selectedPhasesUris.indexOf(e.uri),1):this.selectedPhasesUris.push(e.uri)}continue(){this.currentStep===1&&this.selectedPhasesUris.length?(this.trackingService.trackEventById("smartIdeation.continueAutoRate"),this.submitPhases.emit(this.selectedPhasesUris),this.currentStep++):this.currentStep===2&&this.selectedPhasesUris.length&&(this.trackingService.trackEventById("smartIdeation.createAutoRate"),this.submitCriteria.emit(this.selectedCriteriaUris))}cancel(){this.cancelAutoRate.emit()}};r.\u0275fac=function(t){return new(t||r)(x(pe))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-auto-rate-wizard"]],inputs:{entity:"entity",workflowDefinition:"workflowDefinition",ratingCriteria:"ratingCriteria",ratingDefinitions:"ratingDefinitions",gptTermsLink:"gptTermsLink"},outputs:{submitCriteria:"submitCriteria",submitPhases:"submitPhases",cancelAutoRate:"cancelAutoRate"},standalone:!0,features:[W],decls:23,vars:23,consts:[[1,"container"],[1,"flex","flex-col","checkbox-container",3,"ngSwitch"],[1,"title"],[1,"icon2-x16-info"],[1,"label-sm"],[4,"ngSwitchCase"],[1,"buttons"],[1,"label-xs","main-gray-light","self-center"],["target","_blank",1,"gpt-link","label-xs-semibold",3,"href"],[1,"button-secondary",3,"click"],[1,"button-primary","button-loader",3,"click"],[4,"ngFor","ngForOf"],[1,"checkbox",3,"ngModelChange","ngModel"],[1,"label-sm-single"],[1,"icon2-x16-support","main-gray-light","tooltip-top","info",3,"uiTooltip"],[1,"icon2-x16-warning","tooltip-top","info",3,"uiTooltip"]],template:function(t,i){t&1&&(p(0,"div",0)(1,"div",1)(2,"div",2),b(3,"span",3),p(4,"span",4),O(5),C(6,"translate"),C(7,"translate"),d()(),h(8,Vh,2,1,"ng-container",5)(9,Nh,2,1,"ng-container",5),d(),p(10,"div",6)(11,"div",7),O(12),C(13,"translate"),p(14,"a",8),O(15),C(16,"translate"),d()(),p(17,"ui2-button",9),_("click",function(){return i.cancel()}),O(18),C(19,"translate"),d(),p(20,"ui2-button",10),_("click",function(){return i.continue()}),O(21),C(22,"translate"),d()()()),t&2&&(s(),l("ngSwitch",i.currentStep),s(4),S("",i.currentStep===1?M(6,11,"renderers-ng.autofill.autoRate.selectPhases"):M(7,13,"renderers-ng.autofill.autoRate.selectCriteria")," "),s(3),l("ngSwitchCase",1),s(),l("ngSwitchCase",2),s(3),S(" ",M(13,15,"renderers-ng.autofill.gptConsent")," "),s(2),l("href",i.gptTermsLink,Lt),s(),S(" ",M(16,17,"renderers-ng.autofill.learnMore")," "),s(3),R(M(19,19,"renderers-ng.autofill.cancel")),s(2),z("disabled",i.currentStep>1?!i.selectedCriteriaUris.length:!i.selectedPhasesUris.length),s(),S(" ",M(22,21,"renderers-ng.autofill.continue")," "))},dependencies:[E,Oe,en,Qt,H,I,Cr,di,fe,J,te,rn,Xe,Ee,Sr,wr],styles:[".icon2-x16-info[_ngcontent-%COMP%]{color:#00d1ff}.icon2-x16-warning[_ngcontent-%COMP%]{color:#f0b111}.title[_ngcontent-%COMP%]{border-radius:6px;background:#e6f6fe80;display:flex;padding:12px;gap:8px;margin-bottom:24px}.checkbox[_ngcontent-%COMP%]{margin-bottom:16px}.checkbox-container[_ngcontent-%COMP%]{margin:0 0 24px}.buttons[_ngcontent-%COMP%]{gap:12px;justify-content:flex-end;display:flex}.info[_ngcontent-%COMP%]{margin-left:8px;font-size:16px}.info[_ngcontent-%COMP%]     .tooltip{font-weight:400;min-width:200px!important}.gpt-link[_ngcontent-%COMP%]{text-decoration:none;color:#098dcd;white-space:nowrap}.gpt-warning[_ngcontent-%COMP%]{margin-bottom:24px}"]});let n=r;return n})();function jh(n,r){if(n&1){let o=P();p(0,"renderer-gpt-autofill",3),_("requestAutofillData",function(t){u(o);let i=c();return f(i.getRequestData(t))})("autofillDataChange",function(t){u(o);let i=c();return f(i.autofillDataChange(t))}),d()}if(n&2){let o=c();l("entity",o.entity)("field",o.field)("elementType",o.elementType)("loading",o.loading)("kbArticle",o.linkToKb)("tenantUri",o.tenantUri)("tokensExceeded",o.tokensExceeded)}}function Bh(n,r){if(n&1){let o=P();p(0,"div",4)(1,"span",5),O(2),C(3,"translate"),d(),b(4,"ui-rte",6),p(5,"div",7)(6,"ui2-button",8),_("click",function(){u(o);let t=c();return f(t.regenerate())}),O(7),C(8,"translate"),d(),p(9,"ui2-button",9),_("click",function(){u(o);let t=c();return f(t.continue())}),O(10),C(11,"translate"),d()()()}if(n&2){let o=c();s(2),S(" ",M(3,5,"renderers-ng.autofill.descriptionPreview.suggestedDescription"),""),s(2),l("contentJSON",o.gptPreviewTextForRte)("readonly",!0),s(3),R(M(8,7,"renderers-ng.autofill.regenerateCta")),s(3),S(" ",M(11,9,"renderers-ng.autofill.descriptionPreview.continue")," ")}}function zh(n,r){n&1&&(p(0,"div",10)(1,"span",11),O(2),C(3,"translate"),d(),b(4,"ui-bar-loader",12),d()),n&2&&(s(2),R(M(3,2,"renderers-ng.autofill.descriptionPreview.loadingState")),s(2),l("ownScrollEvent",!1))}var Tc="No Result",Ec=(()=>{let r=class r{constructor(e,t){this.gptService=e,this.trackingService=t,this.submitData=new y,this.loading=!1,this.linkToKb=ri.AI_FILL_RTE,this.gptPreviewTextForRte="",this.gptPreviewText="",this.tokensExceeded=!1}getRequestData(e){this.requestData=e;let t=e.params?.targetAudience;this.trackingService.trackEventById("smartIdeation.createDescription",{dimension4:t}),this.getDescription()}autofillDataChange(e){let t=e.label;this.trackingService.trackEventById("smartIdeation.selectAutofillMethod",{dimension4:t})}getDescription(){this.loading=!0,this.gptService.sendElementDetails(this.tenantUri,this.requestData).subscribe({next:e=>{let t={ops:[{insert:e.hasOwnProperty("description")?e.description:Tc}]};this.gptPreviewTextForRte=JSON.stringify(t),this.gptPreviewText=e.hasOwnProperty("description")?e.description:Tc,this.loading=!1},error:e=>{e.error.error===Be.TOKENS_EXCEEDED&&(this.tokensExceeded=!0,this.loading=!1)}})}continue(){this.trackingService.trackEventById("smartIdeation.continueAutofill"),this.submitData.emit(this.gptPreviewText)}regenerate(){this.trackingService.trackEventById("smartIdeation.adjustInfoFormClick"),this.gptPreviewTextForRte="",this.gptPreviewText=""}};r.\u0275fac=function(t){return new(t||r)(x(dn),x(pe))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-description-preview"]],inputs:{entity:"entity",field:"field",elementType:"elementType",tenantUri:"tenantUri"},outputs:{submitData:"submitData"},standalone:!0,features:[W],decls:3,vars:3,consts:[[3,"entity","field","elementType","loading","kbArticle","tenantUri","tokensExceeded","requestAutofillData","autofillDataChange",4,"ngIf"],["class","description-preview-wrapper",4,"ngIf"],["class","loading-state",4,"ngIf"],[3,"requestAutofillData","autofillDataChange","entity","field","elementType","loading","kbArticle","tenantUri","tokensExceeded"],[1,"description-preview-wrapper"],[1,"label-sm-semibold","heading"],[1,"rte",3,"contentJSON","readonly"],[1,"flex","justify-end"],[1,"button-secondary",3,"click"],[1,"button-primary",3,"click"],[1,"loading-state"],[1,"loader-label","label-xs-single"],[1,"loader",3,"ownScrollEvent"]],template:function(t,i){t&1&&h(0,jh,1,7,"renderer-gpt-autofill",0)(1,Bh,12,11,"div",1)(2,zh,5,4,"div",2),t&2&&(l("ngIf",!i.gptPreviewTextForRte),s(),l("ngIf",i.gptPreviewTextForRte),s(),l("ngIf",i.loading))},dependencies:[E,A,H,I,jn,pr,cr,Xe,Ee,Vn,Dn],styles:[".button-secondary[_ngcontent-%COMP%]{margin-right:12px}.heading[_ngcontent-%COMP%]{margin-left:16px}.rte[_ngcontent-%COMP%]{margin:12px 6px}.description-preview-wrapper[_ngcontent-%COMP%]{padding:6px}.loading-state[_ngcontent-%COMP%]{height:50px}.loading-state[_ngcontent-%COMP%]   .loader-label[_ngcontent-%COMP%]{display:flex;justify-content:center}.loading-state[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{width:323px;position:absolute;display:block;margin-top:24px;left:100px}"]});let n=r;return n})();var Ic=n=>({url:n}),Gh=(n,r)=>({selected:n,"not-selected":r});function qh(n,r){if(n&1){let o=P();p(0,"renderer-gpt-autofill",6),_("requestAutofillData",function(t){u(o);let i=c();return f(i.getRequestData(t))})("generateContent",function(){u(o);let t=c();return f(t.getImages())})("autofillDataChange",function(t){u(o);let i=c();return f(i.autofillDataChange(t))}),d()}if(n&2){let o=c();l("entity",o.entity)("field",o.field)("elementType",o.elementType)("kbArticle",o.linkToKb)("tokensExceeded",o.tokensExceeded)("tenantUri",o.tenantUri)}}function Hh(n,r){n&1&&(p(0,"div",7)(1,"span",8),O(2),C(3,"translate"),d(),b(4,"ui-bar-loader",9),d()),n&2&&(s(2),R(M(3,2,"renderers-ng.autofill.imagesPreview.loadingState")),s(2),l("ownScrollEvent",!1))}function Wh(n,r){n&1&&(p(0,"div",17)(1,"div",18)(2,"span",19),O(3),C(4,"translate"),d()()()),n&2&&(s(3),R(M(4,1,"renderers-ng.autofill.imagesPreview.selectImagePrompt")))}function Qh(n,r){if(n&1){let o=P();p(0,"div",20),b(1,"img",21),p(2,"div",22)(3,"span",23),_("click",function(t){u(o);let i=c(2);return f(i.shrinkImage(t))}),d()()()}if(n&2){let o=c(2);s(),l("ngSrc",o.enlargedImage)}}function $h(n,r){}function Yh(n,r){if(n&1&&h(0,$h,0,0,"ng-template",27),n&2){let o=c().$implicit;c(4);let e=j(4);l("ngTemplateOutlet",e)("ngTemplateOutletContext",q(2,Ic,o))}}function Xh(n,r){}function Jh(n,r){if(n&1&&(p(0,"div"),h(1,Yh,1,4,null,26)(2,Xh,0,0,"ng-template",27,2,V),d()),n&2){let o=r.$implicit,e=j(3),t=c(4),i=j(4);s(),l("ngIf",t.even)("ngIfElse",e),s(),l("ngTemplateOutlet",i)("ngTemplateOutletContext",q(4,Ic,o))}}function Kh(n,r){if(n&1&&(p(0,"div")(1,"div",25),h(2,Jh,4,6,"div",24),d()()),n&2){let o=r.$implicit;s(2),l("ngForOf",o)}}function Zh(n,r){if(n&1&&h(0,Kh,3,1,"div",24),n&2){let o=c(2);l("ngForOf",o.imageUrls)}}function e0(n,r){if(n&1){let o=P();p(0,"div",10),h(1,Wh,5,3,"div",11)(2,Qh,4,1,"div",12)(3,Zh,1,1,"ng-template",null,1,V),p(5,"div",13)(6,"div",14)(7,"ui2-button",15),_("click",function(){u(o);let t=c();return f(t.generateMoreImages())}),O(8),C(9,"translate"),d(),p(10,"ui2-button",16),_("click",function(){u(o);let t=c();return f(t.saveImage())}),O(11),C(12,"translate"),d()()()()}if(n&2){let o=j(4),e=c();s(),l("ngIf",e.enlargedImage===""),s(),l("ngIf",e.enlargedImage!=="")("ngIfElse",o),s(6),S(" ",M(9,7,"renderers-ng.autofill.imagesPreview.regenerate")," "),s(2),z("disabled",e.selectedImage===""),s(),S(" ",M(12,9,"renderers-ng.autofill.imagesPreview.apply")," ")}}function t0(n,r){if(n&1){let o=P();p(0,"div",29),_("click",function(){u(o);let t=c().url,i=c();return f(i.imageSelected(t))}),p(1,"div",30),b(2,"img",21),d(),p(3,"div",31)(4,"div",32),_("click",function(){u(o);let t=c().url,i=c();return f(i.enlargeImage(t))}),b(5,"span",33),d(),p(6,"div",34),O(7),C(8,"translate"),C(9,"translate"),d()()()}if(n&2){let o=c().url,e=c();l("ngClass",Te(7,Gh,e.selectedImage===o,e.selectedImage!==o&&e.selectedImage!=="")),s(2),l("ngSrc",o),s(5),S(" ",e.selectedImage!==o?M(8,3,"renderers-ng.autofill.imagesPreview.clickToSelect"):M(9,5,"renderers-ng.autofill.imagesPreview.clickToDeselect")," ")}}function n0(n,r){if(n&1&&h(0,t0,10,10,"div",28),n&2){let o=c();l("ngIf",o.enlargedImage==="")}}var kc=(()=>{let r=class r{constructor(e,t,i,a,g){this.gptService=e,this.modalService=t,this.trackingService=i,this.toastService=a,this.translateService=g,this.insertGptImage=new y,this.loading=!1,this.selectedImage="",this.enlargedImage="",this.imageUrls=[],this.linkToKb=ri.AI_GEN_IMG,this.tokensExceeded=!1}getRequestData(e){this.requestData=e,setTimeout(()=>{this.getImages()})}getImages(){let e=this.requestData.params.description;this.trackingService.trackEventById("smartIdeation.createImage",{dimension4:e}),this.loading=!0,this.gptService.autoCreateImages(this.tenantUri,this.requestData,t=>this.handleTokensExceeded(t)).subscribe({next:t=>{let i=JSON.parse(JSON.stringify(t));for(;i?.length>0;)this.imageUrls.push(i.splice(0,2));this.loading=!1}})}handleTokensExceeded(e){e===Be.TOKENS_EXCEEDED&&(this.tokensExceeded=!0,this.loading=!1)}generateMoreImages(){this.trackingService.trackEventById("smartIdeation.regenerateImage"),this.imageUrls=[],this.selectedImage="",this.enlargedImage=""}saveImage(){return Z(this,null,function*(){this.trackingService.trackEventById("smartIdeation.applyImage");let e={content:this.translateService.instant("renderers-ng.autofill.imagesPreview.savingImage"),closeable:!1,toastId:"info"};this.modalService.closeModal();let t=this.toastService.showToast(e);this.toastID=t;let i={fileName:this.entity.uri+".png",url:this.selectedImage},a=yield this.gptService.getBackgroundImageUri(this.entity.spaceUri,i,t);this.insertGptImage.emit(a.uri)})}enlargeImage(e){this.enlargedImage=e,this.selectedImage=e}shrinkImage(){this.enlargedImage=""}imageSelected(e){this.trackingService.trackEventById("smartIdeation.selectImage"),this.selectedImage===e?this.selectedImage="":this.selectedImage=e}autofillDataChange(e){let t=e.label;this.trackingService.trackEventById("smartIdeation.selectAutofillStyle",{dimension4:t})}};r.\u0275fac=function(t){return new(t||r)(x(dn),x(Ct),x(pe),x(ht),x(K))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-image-preview"]],inputs:{entity:"entity",field:"field",elementType:"elementType",tenantUri:"tenantUri"},outputs:{insertGptImage:"insertGptImage"},standalone:!0,features:[W],decls:5,vars:3,consts:[["imageTemplate",""],["imageGrid",""],["odd",""],[3,"entity","field","elementType","kbArticle","tokensExceeded","tenantUri","requestAutofillData","generateContent","autofillDataChange",4,"ngIf"],["class","loading-state",4,"ngIf"],["class","image-preview-wrapper",4,"ngIf"],[3,"requestAutofillData","generateContent","autofillDataChange","entity","field","elementType","kbArticle","tokensExceeded","tenantUri"],[1,"loading-state"],[1,"loader-label","label-xs-single"],[1,"loader",3,"ownScrollEvent"],[1,"image-preview-wrapper"],["class","title-row",4,"ngIf"],["class","enlarged-image",4,"ngIf","ngIfElse"],[1,"button-row"],[1,"button-wrapper"],[1,"cancel-btn","button-secondary",3,"click"],[1,"create-btn","button-primary",3,"click"],[1,"title-row"],[1,"title-wrapper"],[1,"body-text-sm"],[1,"enlarged-image"],["fill","",3,"ngSrc"],[1,"collapse-icon"],[1,"icon","icon2-x16-minimize",3,"click"],[4,"ngFor","ngForOf"],[1,"image-row"],[4,"ngIf","ngIfElse"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["class","image-wrapper selected",3,"ngClass","click",4,"ngIf"],[1,"image-wrapper","selected",3,"click","ngClass"],[1,"image-option"],[1,"img-overlay"],[1,"expand-icon",3,"click"],[1,"icon","icon2-x16-fullscreen"],[1,"text","label-xs"]],template:function(t,i){t&1&&h(0,qh,1,6,"renderer-gpt-autofill",3)(1,Hh,5,4,"div",4)(2,e0,13,11,"div",5)(3,n0,1,1,"ng-template",null,0,V),t&2&&(l("ngIf",!i.imageUrls.length),s(),l("ngIf",i.loading&&i.imageUrls.length<1),s(),l("ngIf",!i.loading&&i.imageUrls.length>0))},dependencies:[E,de,Oe,A,yn,H,I,jn,Vn,Dn,Xe,Ee,on,Ko],styles:["[_nghost-%COMP%]{max-width:480px}.enlarged-image[_ngcontent-%COMP%]{position:relative;display:inline-block;width:460px;height:460px}.enlarged-image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:auto;height:auto;object-fit:contain;border-radius:6px}.image-preview-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.image-row[_ngcontent-%COMP%], .button-row[_ngcontent-%COMP%], .title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:24px;flex-direction:row}.image-row[_ngcontent-%COMP%]{gap:12px}.title-row[_ngcontent-%COMP%]{margin-right:auto}.title-wrapper[_ngcontent-%COMP%]{left:0}.button-row[_ngcontent-%COMP%]{margin-left:auto}.button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:12px;margin-left:auto;margin-top:24px}.image-wrapper[_ngcontent-%COMP%]{border-radius:6px;width:224px;height:100px;overflow:hidden;object-fit:fill;border:2px solid transparent;max-width:940px;z-index:100;cursor:pointer}.image-wrapper[_ngcontent-%COMP%]:hover, .image-wrapper.selected[_ngcontent-%COMP%]{border:4px solid #00d1ff;transition:.2s ease}.image-wrapper[_ngcontent-%COMP%]:hover   img[_ngcontent-%COMP%], .image-wrapper.selected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{border-radius:0}.image-wrapper.not-selected[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{filter:grayscale(100%);opacity:.6}.image-wrapper.not-selected[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]{display:none}.image-wrapper[_ngcontent-%COMP%]:hover   .img-overlay[_ngcontent-%COMP%]{opacity:1}.image-wrapper[_ngcontent-%COMP%]:hover   .img-overlay[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{display:flex}.image-wrapper[_ngcontent-%COMP%]:hover   .img-overlay[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{display:block}.image-wrapper[_ngcontent-%COMP%]:hover   .img-overlay[_ngcontent-%COMP%]   .selected-text[_ngcontent-%COMP%]{display:none}.image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover;z-index:1;position:relative;border-radius:6px}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]{width:100%;height:97px;transition:.2s ease;opacity:0;z-index:100;border-radius:6px;background-color:#62758899;position:relative;transform:translateY(-106%);display:flex;margin:3px auto auto;align-items:center;justify-content:center}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{position:absolute;display:flex;margin:auto;align-items:center;justify-content:center;top:8px;right:8px;color:#e6f6fe;border-radius:50%;width:24px;height:24px;font-size:16px;cursor:pointer}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]:hover{background-color:#e6f6fe;color:#627588}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%], .image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]   .selected-text[_ngcontent-%COMP%]{font-size:16px;color:#fff;font-weight:600;cursor:pointer}.collapse-icon[_ngcontent-%COMP%]{background-color:#bdc8d4;color:#627588;width:24px;height:24px;font-size:16px;z-index:102;cursor:pointer;line-height:1;border-radius:50%;position:absolute;margin:16px;top:0;right:0;align-items:center;display:flex;justify-content:center}.collapse-icon[_ngcontent-%COMP%]:hover{background-color:#098dcd;color:#fff}.loading-state[_ngcontent-%COMP%]{height:50px}.loading-state[_ngcontent-%COMP%]   .loader-label[_ngcontent-%COMP%]{display:flex;justify-content:center}.loading-state[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{width:323px;position:absolute;display:block;margin-top:24px;left:100px}.image-option[_ngcontent-%COMP%]{height:97px;width:100%;position:relative}"]});let n=r;return n})();function i0(n,r){n&1&&(p(0,"div",3)(1,"span",4),O(2),C(3,"translate"),d(),b(4,"ui-bar-loader",5),d()),n&2&&(s(2),R(M(3,2,"renderers-ng.autofill.tagsPreview.loadingState")),s(2),l("ownScrollEvent",!1))}function r0(n,r){if(n&1){let o=P();p(0,"ui2-tag",13),_("onClosed",function(){let t=u(o).$implicit,i=c(2);return f(i.onRemoveTag(t))}),d()}if(n&2){let o=r.$implicit,e=c(2);l("isRemovable",!e.readonly)("label",o)}}function o0(n,r){if(n&1){let o=P();p(0,"div",6)(1,"span",7),O(2),C(3,"translate"),d(),p(4,"div",8),h(5,r0,1,2,"ui2-tag",9),d(),p(6,"div",10)(7,"ui2-button",11),_("click",function(){u(o);let t=c();return f(t.generateMoreTags())}),O(8),C(9,"translate"),d(),p(10,"ui2-button",12),_("click",function(){u(o);let t=c();return f(t.insertTags())}),O(11),C(12,"translate"),d()()()}if(n&2){let o=c();s(2),S(" ",M(3,4,"renderers-ng.autofill.tagsPreview.suggestedTags"),""),s(3),l("ngForOf",o.aiGeneratedTags),s(3),S(" ",M(9,6,"renderers-ng.autofill.regenerateCta")," "),s(3),S(" ",M(12,8,"renderers-ng.autofill.tagsPreview.insertCta")," ")}}var Fc=(()=>{let r=class r{constructor(e,t){this.gptService=e,this.trackingService=t,this.insertGptTags=new y,this.loading=!1,this.aiGeneratedTags=null,this.tokensExceeded=!1}getRequestData(e){this.requestData=e,this.getTags()}getTags(){this.loading=!0,this.gptService.sendElementDetails(this.tenantUri,this.requestData).subscribe({next:e=>{let t=JSON.parse(JSON.stringify(e)).tags;this.aiGeneratedTags=t,this.loading=!1},error:e=>{e.error.error===Be.TOKENS_EXCEEDED&&(this.tokensExceeded=!0,this.loading=!1)}})}onRemoveTag(e){this.trackingService.trackEventById("smartIdeation.removeAutofillTag"),this.aiGeneratedTags=this.aiGeneratedTags.filter(t=>t!==e)}generateMoreTags(){this.trackingService.trackEventById("smartIdeation.regenerateAutofillTag"),this.aiGeneratedTags=null,this.loading=!0,this.getTags()}insertTags(){this.trackingService.trackEventById("smartIdeation.insertAutofillTag"),this.insertGptTags.emit(this.aiGeneratedTags)}};r.\u0275fac=function(t){return new(t||r)(x(dn),x(pe))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-tags-preview"]],inputs:{entity:"entity",field:"field",elementType:"elementType",tenantUri:"tenantUri"},outputs:{insertGptTags:"insertGptTags"},standalone:!0,features:[W],decls:3,vars:8,consts:[[3,"requestAutofillData","entity","field","loading","elementType","tenantUri","tokensExceeded"],["class","loading-state",4,"ngIf"],["class","tags-preview-wrapper",4,"ngIf"],[1,"loading-state"],[1,"loader-label","label-xs-single"],[1,"loader",3,"ownScrollEvent"],[1,"tags-preview-wrapper"],[1,"tags-label","label-sm-semibold-single"],[1,"suggested-tags"],["class","tag-detail-page",3,"isRemovable","label","onClosed",4,"ngFor","ngForOf"],[1,"ctas"],[1,"cancel-btn","button-secondary",3,"click"],[1,"create-btn","button-primary",3,"click"],[1,"tag-detail-page",3,"onClosed","isRemovable","label"]],template:function(t,i){t&1&&(p(0,"renderer-gpt-autofill",0),_("requestAutofillData",function(g){return i.getRequestData(g)}),d(),h(1,i0,5,4,"div",1)(2,o0,13,10,"div",2)),t&2&&(l("entity",i.entity)("field",i.field)("loading",i.loading)("elementType",i.elementType)("tenantUri",i.tenantUri)("tokensExceeded",i.tokensExceeded),s(),l("ngIf",i.loading),s(),l("ngIf",!i.loading&&!!i.aiGeneratedTags))},dependencies:[E,Oe,A,H,I,jn,Vn,Dn,ui,kn,Xe,Ee],styles:[".suggested-tags[_ngcontent-%COMP%]{padding:8px 0;margin:12px 0 12px -5px;overflow-y:auto;max-height:calc(100vh - 330px)}.tags-label[_ngcontent-%COMP%]{color:#3e4d63}.ctas[_ngcontent-%COMP%]{display:flex;gap:12px;float:right}.loading-state[_ngcontent-%COMP%]{height:50px}.loading-state[_ngcontent-%COMP%]   .loader-label[_ngcontent-%COMP%]{display:flex;justify-content:center}.loading-state[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{width:323px;position:absolute;display:block;margin-top:24px;left:100px}.gpt-warning[_ngcontent-%COMP%]{margin-bottom:24px}"]});let n=r;return n})();function a0(n,r){if(n&1){let o=P();p(0,"renderer-gpt-description-preview",3),_("submitData",function(t){u(o);let i=c(2);return f(i.submitDescription(t))}),d()}if(n&2){let o=c(2);l("entity",o.entity)("field",o.currentField)("elementType",o.elementType)("tenantUri",o.tenantUri)}}function l0(n,r){if(n&1){let o=P();p(0,"renderer-gpt-tags-preview",4),_("insertGptTags",function(t){u(o);let i=c(2);return f(i.submitTags(t))}),d()}if(n&2){let o=c(2);l("entity",o.entity)("field",o.currentField)("elementType",o.elementType)("tenantUri",o.tenantUri)}}function s0(n,r){if(n&1){let o=P();p(0,"renderer-gpt-image-preview",5),_("insertGptImage",function(t){u(o);let i=c(2);return f(i.submitBackgroundImage(t))}),d()}if(n&2){let o=c(2);l("entity",o.entity)("field",o.currentField)("elementType",o.elementType)("tenantUri",o.tenantUri)}}function c0(n,r){if(n&1&&h(0,a0,1,4,"renderer-gpt-description-preview",0)(1,l0,1,4,"renderer-gpt-tags-preview",1)(2,s0,1,4,"renderer-gpt-image-preview",2),n&2){let o=c();l("ngIf",o.currentField.fieldTypeUri===o.entityConfigFieldTypeUri.RICH),s(),l("ngIf",o.currentField.fieldTypeUri===o.entityConfigFieldTypeUri.TAG),s(),l("ngIf",o.currentField.fieldTypeUri===o.entityConfigFieldTypeUri.HEADER_IMAGE)}}var PU=(()=>{let r=class r{constructor(e,t){this.trackingService=e,this.modalService=t,this.destroyRef=Q(ee),this.updateEntityOnAutofill=new y,this.isComplete=new y,this.hasImageUploadData=new y,this.acknowledgeAutofill=new y,this.currentFieldSubject=new F,this.entityConfigFieldTypeUri=si,this.tagsFFEnabled=!1,this.descriptionFFEnabled=!1,this.imageGenerationFFEnabled=!1,this.currentFieldSubject.pipe(L(this.destroyRef)).subscribe(i=>{i&&setTimeout(()=>{this.modalService.setTitle(`Step ${this.currentStep}/${this.totalSteps}: ${this.modalTitle} ${i.name}`)})})}ngOnInit(){this.acknowledgeAutofill.next(this.entity.uri),this.tagsFFEnabled=this.featureFlagsMap.get(Ia),this.descriptionFFEnabled=this.featureFlagsMap.get(Ta),this.imageGenerationFFEnabled=this.featureFlagsMap.get(Ea);let e=[this.tagsFFEnabled,this.descriptionFFEnabled,this.imageGenerationFFEnabled];this.totalSteps=e.filter(t=>t===!0).length,this.currentStep=1,this.descriptionFFEnabled?this.setCurrentField(this.descriptionField):this.tagsFFEnabled?this.setCurrentField(this.tagField):this.imageGenerationFFEnabled&&this.setCurrentField(this.headerImageField)}setCurrentField(e){this.currentField=e,this.currentFieldSubject.next(e)}submitDescription(e){this.trackingService.trackEventById("smartIdeation.createAutofillClick",{dimension4:"submitDescription"}),this.currentStep=this.totalSteps-1,this.tagsFFEnabled?this.setCurrentField(this.tagField):this.imageGenerationFFEnabled?this.setCurrentField(this.headerImageField):this.isComplete.emit();let i={model:{ops:[{insert:e}]},field:this.descriptionField,entity:this.entity};this.updateEntityOnAutofill.emit(i)}submitTags(e){this.trackingService.trackEventById("smartIdeation.createAutofillClick",{dimension4:"submitTags"}),this.currentStep=this.totalSteps;let t={model:e,field:this.tagField,entity:this.entity};this.imageGenerationFFEnabled?this.setCurrentField(this.headerImageField):this.isComplete.emit(),this.updateEntityOnAutofill.emit(t)}submitBackgroundImage(e){this.trackingService.trackEventById("smartIdeation.createAutofillClick",{dimension4:"submitBackgroundImage"}),this.hasImageUploadData.emit(e)}};r.\u0275fac=function(t){return new(t||r)(x(pe),x(Ct))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-autofill-wizard"]],inputs:{entity:"entity",tagField:"tagField",headerImageField:"headerImageField",descriptionField:"descriptionField",elementType:"elementType",tenantUri:"tenantUri",featureFlagsMap:"featureFlagsMap",modalTitle:"modalTitle"},outputs:{updateEntityOnAutofill:"updateEntityOnAutofill",isComplete:"isComplete",hasImageUploadData:"hasImageUploadData",acknowledgeAutofill:"acknowledgeAutofill"},standalone:!0,features:[W],decls:1,vars:1,consts:[[3,"entity","field","elementType","tenantUri","submitData",4,"ngIf"],[3,"entity","field","elementType","tenantUri","insertGptTags",4,"ngIf"],[3,"entity","field","elementType","tenantUri","insertGptImage",4,"ngIf"],[3,"submitData","entity","field","elementType","tenantUri"],[3,"insertGptTags","entity","field","elementType","tenantUri"],[3,"insertGptImage","entity","field","elementType","tenantUri"]],template:function(t,i){t&1&&h(0,c0,3,3),t&2&&Ce(0,i.currentField?0:-1)},dependencies:[E,A,Ec,Fc,kc,on]});let n=r;return n})();var p0=["*"],Rc=(()=>{let r=class r{constructor(){this.clicked=new y,this.buttonType="",this.disabled=!1}click(){this.disabled||this.clicked.emit()}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui3-button"]],hostVars:2,hostBindings:function(t,i){t&2&&z("disabled",i.disabled)},inputs:{buttonType:"buttonType",disabled:"disabled"},outputs:{clicked:"clicked"},ngContentSelectors:p0,decls:2,vars:1,consts:[[3,"click","type"]],template:function(t,i){t&1&&(ot(),p(0,"button",0),_("click",function(){return i.click()}),it(1),d()),t&2&&l("type",i.buttonType)},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%], [_nghost-%COMP%]   button[_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%], [_nghost-%COMP%]   button[_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%], 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%], [_nghost-%COMP%]   button[_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%], 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}.m-auto[_ngcontent-%COMP%]{margin:auto}.mx-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.my-auto[_ngcontent-%COMP%]{margin-top:auto;margin-bottom:auto}.mt-auto[_ngcontent-%COMP%]{margin-top:auto}.mb-auto[_ngcontent-%COMP%]{margin-bottom:auto}.mr-auto[_ngcontent-%COMP%]{margin-right:auto}.ml-auto[_ngcontent-%COMP%]{margin-left:auto}.m-half[_ngcontent-%COMP%]{margin:2px}.mx-half[_ngcontent-%COMP%]{margin-left:2px;margin-right:2px}.my-half[_ngcontent-%COMP%]{margin-top:2px;margin-bottom:2px}.mb-half[_ngcontent-%COMP%]{margin-bottom:2px}.mt-half[_ngcontent-%COMP%]{margin-top:2px}.ml-half[_ngcontent-%COMP%]{margin-left:2px}.mr-half[_ngcontent-%COMP%]{margin-right:2px}.m-1[_ngcontent-%COMP%]{margin:4px}.m-2[_ngcontent-%COMP%]{margin:8px}.m-3[_ngcontent-%COMP%]{margin:12px}.m-4[_ngcontent-%COMP%]{margin:16px}.m-5[_ngcontent-%COMP%]{margin:20px}.m-6[_ngcontent-%COMP%]{margin:24px}.m-7[_ngcontent-%COMP%]{margin:28px}.m-8[_ngcontent-%COMP%]{margin:32px}.m-9[_ngcontent-%COMP%]{margin:36px}.m-10[_ngcontent-%COMP%]{margin:40px}.m-11[_ngcontent-%COMP%]{margin:44px}.m-12[_ngcontent-%COMP%]{margin:48px}.m-13[_ngcontent-%COMP%]{margin:52px}.m-14[_ngcontent-%COMP%]{margin:56px}.m-15[_ngcontent-%COMP%]{margin:60px}.m-16[_ngcontent-%COMP%]{margin:64px}.m-17[_ngcontent-%COMP%]{margin:68px}.m-18[_ngcontent-%COMP%]{margin:72px}.m-19[_ngcontent-%COMP%]{margin:76px}.m-20[_ngcontent-%COMP%]{margin:80px}.-m-1[_ngcontent-%COMP%]{margin:-4px}.-m-2[_ngcontent-%COMP%]{margin:-8px}.-m-3[_ngcontent-%COMP%]{margin:-12px}.-m-4[_ngcontent-%COMP%]{margin:-16px}.-m-5[_ngcontent-%COMP%]{margin:-20px}.-m-6[_ngcontent-%COMP%]{margin:-24px}.-m-7[_ngcontent-%COMP%]{margin:-28px}.-m-8[_ngcontent-%COMP%]{margin:-32px}.-m-9[_ngcontent-%COMP%]{margin:-36px}.-m-10[_ngcontent-%COMP%]{margin:-40px}.-m-11[_ngcontent-%COMP%]{margin:-44px}.-m-12[_ngcontent-%COMP%]{margin:-48px}.-m-13[_ngcontent-%COMP%]{margin:-52px}.-m-14[_ngcontent-%COMP%]{margin:-56px}.-m-15[_ngcontent-%COMP%]{margin:-60px}.-m-16[_ngcontent-%COMP%]{margin:-64px}.-m-17[_ngcontent-%COMP%]{margin:-68px}.-m-18[_ngcontent-%COMP%]{margin:-72px}.-m-19[_ngcontent-%COMP%]{margin:-76px}.-m-20[_ngcontent-%COMP%]{margin:-80px}.mx-1[_ngcontent-%COMP%]{margin-left:4px;margin-right:4px}.mx-2[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px}.mx-3[_ngcontent-%COMP%]{margin-left:12px;margin-right:12px}.mx-4[_ngcontent-%COMP%]{margin-left:16px;margin-right:16px}.mx-5[_ngcontent-%COMP%]{margin-left:20px;margin-right:20px}.mx-6[_ngcontent-%COMP%]{margin-left:24px;margin-right:24px}.mx-7[_ngcontent-%COMP%]{margin-left:28px;margin-right:28px}.mx-8[_ngcontent-%COMP%]{margin-left:32px;margin-right:32px}.mx-9[_ngcontent-%COMP%]{margin-left:36px;margin-right:36px}.mx-10[_ngcontent-%COMP%]{margin-left:40px;margin-right:40px}.mx-11[_ngcontent-%COMP%]{margin-left:44px;margin-right:44px}.mx-12[_ngcontent-%COMP%]{margin-left:48px;margin-right:48px}.mx-13[_ngcontent-%COMP%]{margin-left:52px;margin-right:52px}.mx-14[_ngcontent-%COMP%]{margin-left:56px;margin-right:56px}.mx-15[_ngcontent-%COMP%]{margin-left:60px;margin-right:60px}.mx-16[_ngcontent-%COMP%]{margin-left:64px;margin-right:64px}.mx-17[_ngcontent-%COMP%]{margin-left:68px;margin-right:68px}.mx-18[_ngcontent-%COMP%]{margin-left:72px;margin-right:72px}.mx-19[_ngcontent-%COMP%]{margin-left:76px;margin-right:76px}.mx-20[_ngcontent-%COMP%]{margin-left:80px;margin-right:80px}.-mx-1[_ngcontent-%COMP%]{margin-left:-4px;margin-right:-4px}.-mx-2[_ngcontent-%COMP%]{margin-left:-8px;margin-right:-8px}.-mx-3[_ngcontent-%COMP%]{margin-left:-12px;margin-right:-12px}.-mx-4[_ngcontent-%COMP%]{margin-left:-16px;margin-right:-16px}.-mx-5[_ngcontent-%COMP%]{margin-left:-20px;margin-right:-20px}.-mx-6[_ngcontent-%COMP%]{margin-left:-24px;margin-right:-24px}.-mx-7[_ngcontent-%COMP%]{margin-left:-28px;margin-right:-28px}.-mx-8[_ngcontent-%COMP%]{margin-left:-32px;margin-right:-32px}.-mx-9[_ngcontent-%COMP%]{margin-left:-36px;margin-right:-36px}.-mx-10[_ngcontent-%COMP%]{margin-left:-40px;margin-right:-40px}.-mx-11[_ngcontent-%COMP%]{margin-left:-44px;margin-right:-44px}.-mx-12[_ngcontent-%COMP%]{margin-left:-48px;margin-right:-48px}.-mx-13[_ngcontent-%COMP%]{margin-left:-52px;margin-right:-52px}.-mx-14[_ngcontent-%COMP%]{margin-left:-56px;margin-right:-56px}.-mx-15[_ngcontent-%COMP%]{margin-left:-60px;margin-right:-60px}.-mx-16[_ngcontent-%COMP%]{margin-left:-64px;margin-right:-64px}.-mx-17[_ngcontent-%COMP%]{margin-left:-68px;margin-right:-68px}.-mx-18[_ngcontent-%COMP%]{margin-left:-72px;margin-right:-72px}.-mx-19[_ngcontent-%COMP%]{margin-left:-76px;margin-right:-76px}.-mx-20[_ngcontent-%COMP%]{margin-left:-80px;margin-right:-80px}.my-1[_ngcontent-%COMP%]{margin-top:4px;margin-bottom:4px}.my-2[_ngcontent-%COMP%]{margin-top:8px;margin-bottom:8px}.my-3[_ngcontent-%COMP%]{margin-top:12px;margin-bottom:12px}.my-4[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:16px}.my-5[_ngcontent-%COMP%]{margin-top:20px;margin-bottom:20px}.my-6[_ngcontent-%COMP%]{margin-top:24px;margin-bottom:24px}.my-7[_ngcontent-%COMP%]{margin-top:28px;margin-bottom:28px}.my-8[_ngcontent-%COMP%]{margin-top:32px;margin-bottom:32px}.my-9[_ngcontent-%COMP%]{margin-top:36px;margin-bottom:36px}.my-10[_ngcontent-%COMP%]{margin-top:40px;margin-bottom:40px}.my-11[_ngcontent-%COMP%]{margin-top:44px;margin-bottom:44px}.my-12[_ngcontent-%COMP%]{margin-top:48px;margin-bottom:48px}.my-13[_ngcontent-%COMP%]{margin-top:52px;margin-bottom:52px}.my-14[_ngcontent-%COMP%]{margin-top:56px;margin-bottom:56px}.my-15[_ngcontent-%COMP%]{margin-top:60px;margin-bottom:60px}.my-16[_ngcontent-%COMP%]{margin-top:64px;margin-bottom:64px}.my-17[_ngcontent-%COMP%]{margin-top:68px;margin-bottom:68px}.my-18[_ngcontent-%COMP%]{margin-top:72px;margin-bottom:72px}.my-19[_ngcontent-%COMP%]{margin-top:76px;margin-bottom:76px}.my-20[_ngcontent-%COMP%]{margin-top:80px;margin-bottom:80px}.-my-1[_ngcontent-%COMP%]{margin-top:-4px;margin-bottom:-4px}.-my-2[_ngcontent-%COMP%]{margin-top:-8px;margin-bottom:-8px}.-my-3[_ngcontent-%COMP%]{margin-top:-12px;margin-bottom:-12px}.-my-4[_ngcontent-%COMP%]{margin-top:-16px;margin-bottom:-16px}.-my-5[_ngcontent-%COMP%]{margin-top:-20px;margin-bottom:-20px}.-my-6[_ngcontent-%COMP%]{margin-top:-24px;margin-bottom:-24px}.-my-7[_ngcontent-%COMP%]{margin-top:-28px;margin-bottom:-28px}.-my-8[_ngcontent-%COMP%]{margin-top:-32px;margin-bottom:-32px}.-my-9[_ngcontent-%COMP%]{margin-top:-36px;margin-bottom:-36px}.-my-10[_ngcontent-%COMP%]{margin-top:-40px;margin-bottom:-40px}.-my-11[_ngcontent-%COMP%]{margin-top:-44px;margin-bottom:-44px}.-my-12[_ngcontent-%COMP%]{margin-top:-48px;margin-bottom:-48px}.-my-13[_ngcontent-%COMP%]{margin-top:-52px;margin-bottom:-52px}.-my-14[_ngcontent-%COMP%]{margin-top:-56px;margin-bottom:-56px}.-my-15[_ngcontent-%COMP%]{margin-top:-60px;margin-bottom:-60px}.-my-16[_ngcontent-%COMP%]{margin-top:-64px;margin-bottom:-64px}.-my-17[_ngcontent-%COMP%]{margin-top:-68px;margin-bottom:-68px}.-my-18[_ngcontent-%COMP%]{margin-top:-72px;margin-bottom:-72px}.-my-19[_ngcontent-%COMP%]{margin-top:-76px;margin-bottom:-76px}.-my-20[_ngcontent-%COMP%]{margin-top:-80px;margin-bottom:-80px}.mt-1[_ngcontent-%COMP%]{margin-top:4px}.mt-2[_ngcontent-%COMP%]{margin-top:8px}.mt-3[_ngcontent-%COMP%]{margin-top:12px}.mt-4[_ngcontent-%COMP%]{margin-top:16px}.mt-5[_ngcontent-%COMP%]{margin-top:20px}.mt-6[_ngcontent-%COMP%]{margin-top:24px}.mt-7[_ngcontent-%COMP%]{margin-top:28px}.mt-8[_ngcontent-%COMP%]{margin-top:32px}.mt-9[_ngcontent-%COMP%]{margin-top:36px}.mt-10[_ngcontent-%COMP%]{margin-top:40px}.mt-11[_ngcontent-%COMP%]{margin-top:44px}.mt-12[_ngcontent-%COMP%]{margin-top:48px}.mt-13[_ngcontent-%COMP%]{margin-top:52px}.mt-14[_ngcontent-%COMP%]{margin-top:56px}.mt-15[_ngcontent-%COMP%]{margin-top:60px}.mt-16[_ngcontent-%COMP%]{margin-top:64px}.mt-17[_ngcontent-%COMP%]{margin-top:68px}.mt-18[_ngcontent-%COMP%]{margin-top:72px}.mt-19[_ngcontent-%COMP%]{margin-top:76px}.mt-20[_ngcontent-%COMP%]{margin-top:80px}.-mt-1[_ngcontent-%COMP%]{margin-top:-4px}.-mt-2[_ngcontent-%COMP%]{margin-top:-8px}.-mt-3[_ngcontent-%COMP%]{margin-top:-12px}.-mt-4[_ngcontent-%COMP%]{margin-top:-16px}.-mt-5[_ngcontent-%COMP%]{margin-top:-20px}.-mt-6[_ngcontent-%COMP%]{margin-top:-24px}.-mt-7[_ngcontent-%COMP%]{margin-top:-28px}.-mt-8[_ngcontent-%COMP%]{margin-top:-32px}.-mt-9[_ngcontent-%COMP%]{margin-top:-36px}.-mt-10[_ngcontent-%COMP%]{margin-top:-40px}.-mt-11[_ngcontent-%COMP%]{margin-top:-44px}.-mt-12[_ngcontent-%COMP%]{margin-top:-48px}.-mt-13[_ngcontent-%COMP%]{margin-top:-52px}.-mt-14[_ngcontent-%COMP%]{margin-top:-56px}.-mt-15[_ngcontent-%COMP%]{margin-top:-60px}.-mt-16[_ngcontent-%COMP%]{margin-top:-64px}.-mt-17[_ngcontent-%COMP%]{margin-top:-68px}.-mt-18[_ngcontent-%COMP%]{margin-top:-72px}.-mt-19[_ngcontent-%COMP%]{margin-top:-76px}.-mt-20[_ngcontent-%COMP%]{margin-top:-80px}.mb-1[_ngcontent-%COMP%]{margin-bottom:4px}.mb-2[_ngcontent-%COMP%]{margin-bottom:8px}.mb-3[_ngcontent-%COMP%]{margin-bottom:12px}.mb-4[_ngcontent-%COMP%]{margin-bottom:16px}.mb-5[_ngcontent-%COMP%]{margin-bottom:20px}.mb-6[_ngcontent-%COMP%]{margin-bottom:24px}.mb-7[_ngcontent-%COMP%]{margin-bottom:28px}.mb-8[_ngcontent-%COMP%]{margin-bottom:32px}.mb-9[_ngcontent-%COMP%]{margin-bottom:36px}.mb-10[_ngcontent-%COMP%]{margin-bottom:40px}.mb-11[_ngcontent-%COMP%]{margin-bottom:44px}.mb-12[_ngcontent-%COMP%]{margin-bottom:48px}.mb-13[_ngcontent-%COMP%]{margin-bottom:52px}.mb-14[_ngcontent-%COMP%]{margin-bottom:56px}.mb-15[_ngcontent-%COMP%]{margin-bottom:60px}.mb-16[_ngcontent-%COMP%]{margin-bottom:64px}.mb-17[_ngcontent-%COMP%]{margin-bottom:68px}.mb-18[_ngcontent-%COMP%]{margin-bottom:72px}.mb-19[_ngcontent-%COMP%]{margin-bottom:76px}.mb-20[_ngcontent-%COMP%]{margin-bottom:80px}.-mb-1[_ngcontent-%COMP%]{margin-bottom:-4px}.-mb-2[_ngcontent-%COMP%]{margin-bottom:-8px}.-mb-3[_ngcontent-%COMP%]{margin-bottom:-12px}.-mb-4[_ngcontent-%COMP%]{margin-bottom:-16px}.-mb-5[_ngcontent-%COMP%]{margin-bottom:-20px}.-mb-6[_ngcontent-%COMP%]{margin-bottom:-24px}.-mb-7[_ngcontent-%COMP%]{margin-bottom:-28px}.-mb-8[_ngcontent-%COMP%]{margin-bottom:-32px}.-mb-9[_ngcontent-%COMP%]{margin-bottom:-36px}.-mb-10[_ngcontent-%COMP%]{margin-bottom:-40px}.-mb-11[_ngcontent-%COMP%]{margin-bottom:-44px}.-mb-12[_ngcontent-%COMP%]{margin-bottom:-48px}.-mb-13[_ngcontent-%COMP%]{margin-bottom:-52px}.-mb-14[_ngcontent-%COMP%]{margin-bottom:-56px}.-mb-15[_ngcontent-%COMP%]{margin-bottom:-60px}.-mb-16[_ngcontent-%COMP%]{margin-bottom:-64px}.-mb-17[_ngcontent-%COMP%]{margin-bottom:-68px}.-mb-18[_ngcontent-%COMP%]{margin-bottom:-72px}.-mb-19[_ngcontent-%COMP%]{margin-bottom:-76px}.-mb-20[_ngcontent-%COMP%]{margin-bottom:-80px}.mr-1[_ngcontent-%COMP%]{margin-right:4px}.mr-2[_ngcontent-%COMP%]{margin-right:8px}.mr-3[_ngcontent-%COMP%]{margin-right:12px}.mr-4[_ngcontent-%COMP%]{margin-right:16px}.mr-5[_ngcontent-%COMP%]{margin-right:20px}.mr-6[_ngcontent-%COMP%]{margin-right:24px}.mr-7[_ngcontent-%COMP%]{margin-right:28px}.mr-8[_ngcontent-%COMP%]{margin-right:32px}.mr-9[_ngcontent-%COMP%]{margin-right:36px}.mr-10[_ngcontent-%COMP%]{margin-right:40px}.mr-11[_ngcontent-%COMP%]{margin-right:44px}.mr-12[_ngcontent-%COMP%]{margin-right:48px}.mr-13[_ngcontent-%COMP%]{margin-right:52px}.mr-14[_ngcontent-%COMP%]{margin-right:56px}.mr-15[_ngcontent-%COMP%]{margin-right:60px}.mr-16[_ngcontent-%COMP%]{margin-right:64px}.mr-17[_ngcontent-%COMP%]{margin-right:68px}.mr-18[_ngcontent-%COMP%]{margin-right:72px}.mr-19[_ngcontent-%COMP%]{margin-right:76px}.mr-20[_ngcontent-%COMP%]{margin-right:80px}.-mr-1[_ngcontent-%COMP%]{margin-right:-4px}.-mr-2[_ngcontent-%COMP%]{margin-right:-8px}.-mr-3[_ngcontent-%COMP%]{margin-right:-12px}.-mr-4[_ngcontent-%COMP%]{margin-right:-16px}.-mr-5[_ngcontent-%COMP%]{margin-right:-20px}.-mr-6[_ngcontent-%COMP%]{margin-right:-24px}.-mr-7[_ngcontent-%COMP%]{margin-right:-28px}.-mr-8[_ngcontent-%COMP%]{margin-right:-32px}.-mr-9[_ngcontent-%COMP%]{margin-right:-36px}.-mr-10[_ngcontent-%COMP%]{margin-right:-40px}.-mr-11[_ngcontent-%COMP%]{margin-right:-44px}.-mr-12[_ngcontent-%COMP%]{margin-right:-48px}.-mr-13[_ngcontent-%COMP%]{margin-right:-52px}.-mr-14[_ngcontent-%COMP%]{margin-right:-56px}.-mr-15[_ngcontent-%COMP%]{margin-right:-60px}.-mr-16[_ngcontent-%COMP%]{margin-right:-64px}.-mr-17[_ngcontent-%COMP%]{margin-right:-68px}.-mr-18[_ngcontent-%COMP%]{margin-right:-72px}.-mr-19[_ngcontent-%COMP%]{margin-right:-76px}.-mr-20[_ngcontent-%COMP%]{margin-right:-80px}.ml-1[_ngcontent-%COMP%]{margin-left:4px}.ml-2[_ngcontent-%COMP%]{margin-left:8px}.ml-3[_ngcontent-%COMP%]{margin-left:12px}.ml-4[_ngcontent-%COMP%]{margin-left:16px}.ml-5[_ngcontent-%COMP%]{margin-left:20px}.ml-6[_ngcontent-%COMP%]{margin-left:24px}.ml-7[_ngcontent-%COMP%]{margin-left:28px}.ml-8[_ngcontent-%COMP%]{margin-left:32px}.ml-9[_ngcontent-%COMP%]{margin-left:36px}.ml-10[_ngcontent-%COMP%]{margin-left:40px}.ml-11[_ngcontent-%COMP%]{margin-left:44px}.ml-12[_ngcontent-%COMP%]{margin-left:48px}.ml-13[_ngcontent-%COMP%]{margin-left:52px}.ml-14[_ngcontent-%COMP%]{margin-left:56px}.ml-15[_ngcontent-%COMP%]{margin-left:60px}.ml-16[_ngcontent-%COMP%]{margin-left:64px}.ml-17[_ngcontent-%COMP%]{margin-left:68px}.ml-18[_ngcontent-%COMP%]{margin-left:72px}.ml-19[_ngcontent-%COMP%]{margin-left:76px}.ml-20[_ngcontent-%COMP%]{margin-left:80px}.-ml-1[_ngcontent-%COMP%]{margin-left:-4px}.-ml-2[_ngcontent-%COMP%]{margin-left:-8px}.-ml-3[_ngcontent-%COMP%]{margin-left:-12px}.-ml-4[_ngcontent-%COMP%]{margin-left:-16px}.-ml-5[_ngcontent-%COMP%]{margin-left:-20px}.-ml-6[_ngcontent-%COMP%]{margin-left:-24px}.-ml-7[_ngcontent-%COMP%]{margin-left:-28px}.-ml-8[_ngcontent-%COMP%]{margin-left:-32px}.-ml-9[_ngcontent-%COMP%]{margin-left:-36px}.-ml-10[_ngcontent-%COMP%]{margin-left:-40px}.-ml-11[_ngcontent-%COMP%]{margin-left:-44px}.-ml-12[_ngcontent-%COMP%]{margin-left:-48px}.-ml-13[_ngcontent-%COMP%]{margin-left:-52px}.-ml-14[_ngcontent-%COMP%]{margin-left:-56px}.-ml-15[_ngcontent-%COMP%]{margin-left:-60px}.-ml-16[_ngcontent-%COMP%]{margin-left:-64px}.-ml-17[_ngcontent-%COMP%]{margin-left:-68px}.-ml-18[_ngcontent-%COMP%]{margin-left:-72px}.-ml-19[_ngcontent-%COMP%]{margin-left:-76px}.-ml-20[_ngcontent-%COMP%]{margin-left:-80px}.p-1[_ngcontent-%COMP%]{padding:4px}.p-2[_ngcontent-%COMP%]{padding:8px}.p-3[_ngcontent-%COMP%]{padding:12px}.p-4[_ngcontent-%COMP%]{padding:16px}.p-5[_ngcontent-%COMP%]{padding:20px}.p-6[_ngcontent-%COMP%]{padding:24px}.p-7[_ngcontent-%COMP%]{padding:28px}.p-8[_ngcontent-%COMP%]{padding:32px}.p-9[_ngcontent-%COMP%]{padding:36px}.p-10[_ngcontent-%COMP%]{padding:40px}.p-11[_ngcontent-%COMP%]{padding:44px}.p-12[_ngcontent-%COMP%]{padding:48px}.p-13[_ngcontent-%COMP%]{padding:52px}.p-14[_ngcontent-%COMP%]{padding:56px}.p-15[_ngcontent-%COMP%]{padding:60px}.p-16[_ngcontent-%COMP%]{padding:64px}.p-17[_ngcontent-%COMP%]{padding:68px}.p-18[_ngcontent-%COMP%]{padding:72px}.p-19[_ngcontent-%COMP%]{padding:76px}.p-20[_ngcontent-%COMP%]{padding:80px}.p-21[_ngcontent-%COMP%]{padding:84px}.p-22[_ngcontent-%COMP%]{padding:88px}.p-23[_ngcontent-%COMP%]{padding:92px}.p-24[_ngcontent-%COMP%]{padding:96px}.p-25[_ngcontent-%COMP%]{padding:100px}.p-26[_ngcontent-%COMP%]{padding:104px}.p-27[_ngcontent-%COMP%]{padding:108px}.p-28[_ngcontent-%COMP%]{padding:112px}.p-29[_ngcontent-%COMP%]{padding:116px}.p-30[_ngcontent-%COMP%]{padding:120px}.px-1[_ngcontent-%COMP%]{padding-left:4px;padding-right:4px}.px-2[_ngcontent-%COMP%]{padding-left:8px;padding-right:8px}.px-3[_ngcontent-%COMP%]{padding-left:12px;padding-right:12px}.px-4[_ngcontent-%COMP%]{padding-left:16px;padding-right:16px}.px-5[_ngcontent-%COMP%]{padding-left:20px;padding-right:20px}.px-6[_ngcontent-%COMP%], [_nghost-%COMP%]   button[_ngcontent-%COMP%]{padding-left:24px;padding-right:24px}.px-7[_ngcontent-%COMP%]{padding-left:28px;padding-right:28px}.px-8[_ngcontent-%COMP%]{padding-left:32px;padding-right:32px}.px-9[_ngcontent-%COMP%]{padding-left:36px;padding-right:36px}.px-10[_ngcontent-%COMP%]{padding-left:40px;padding-right:40px}.px-11[_ngcontent-%COMP%]{padding-left:44px;padding-right:44px}.px-12[_ngcontent-%COMP%]{padding-left:48px;padding-right:48px}.px-13[_ngcontent-%COMP%]{padding-left:52px;padding-right:52px}.px-14[_ngcontent-%COMP%]{padding-left:56px;padding-right:56px}.px-15[_ngcontent-%COMP%]{padding-left:60px;padding-right:60px}.px-16[_ngcontent-%COMP%]{padding-left:64px;padding-right:64px}.px-17[_ngcontent-%COMP%]{padding-left:68px;padding-right:68px}.px-18[_ngcontent-%COMP%]{padding-left:72px;padding-right:72px}.px-19[_ngcontent-%COMP%]{padding-left:76px;padding-right:76px}.px-20[_ngcontent-%COMP%]{padding-left:80px;padding-right:80px}.px-21[_ngcontent-%COMP%]{padding-left:84px;padding-right:84px}.px-22[_ngcontent-%COMP%]{padding-left:88px;padding-right:88px}.px-23[_ngcontent-%COMP%]{padding-left:92px;padding-right:92px}.px-24[_ngcontent-%COMP%]{padding-left:96px;padding-right:96px}.px-25[_ngcontent-%COMP%]{padding-left:100px;padding-right:100px}.px-26[_ngcontent-%COMP%]{padding-left:104px;padding-right:104px}.px-27[_ngcontent-%COMP%]{padding-left:108px;padding-right:108px}.px-28[_ngcontent-%COMP%]{padding-left:112px;padding-right:112px}.px-29[_ngcontent-%COMP%]{padding-left:116px;padding-right:116px}.px-30[_ngcontent-%COMP%]{padding-left:120px;padding-right:120px}.py-1[_ngcontent-%COMP%]{padding-top:4px;padding-bottom:4px}.py-2[_ngcontent-%COMP%]{padding-top:8px;padding-bottom:8px}.py-3[_ngcontent-%COMP%]{padding-top:12px;padding-bottom:12px}.py-4[_ngcontent-%COMP%]{padding-top:16px;padding-bottom:16px}.py-5[_ngcontent-%COMP%]{padding-top:20px;padding-bottom:20px}.py-6[_ngcontent-%COMP%]{padding-top:24px;padding-bottom:24px}.py-7[_ngcontent-%COMP%]{padding-top:28px;padding-bottom:28px}.py-8[_ngcontent-%COMP%]{padding-top:32px;padding-bottom:32px}.py-9[_ngcontent-%COMP%]{padding-top:36px;padding-bottom:36px}.py-10[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.py-11[_ngcontent-%COMP%]{padding-top:44px;padding-bottom:44px}.py-12[_ngcontent-%COMP%]{padding-top:48px;padding-bottom:48px}.py-13[_ngcontent-%COMP%]{padding-top:52px;padding-bottom:52px}.py-14[_ngcontent-%COMP%]{padding-top:56px;padding-bottom:56px}.py-15[_ngcontent-%COMP%]{padding-top:60px;padding-bottom:60px}.py-16[_ngcontent-%COMP%]{padding-top:64px;padding-bottom:64px}.py-17[_ngcontent-%COMP%]{padding-top:68px;padding-bottom:68px}.py-18[_ngcontent-%COMP%]{padding-top:72px;padding-bottom:72px}.py-19[_ngcontent-%COMP%]{padding-top:76px;padding-bottom:76px}.py-20[_ngcontent-%COMP%]{padding-top:80px;padding-bottom:80px}.py-21[_ngcontent-%COMP%]{padding-top:84px;padding-bottom:84px}.py-22[_ngcontent-%COMP%]{padding-top:88px;padding-bottom:88px}.py-23[_ngcontent-%COMP%]{padding-top:92px;padding-bottom:92px}.py-24[_ngcontent-%COMP%]{padding-top:96px;padding-bottom:96px}.py-25[_ngcontent-%COMP%]{padding-top:100px;padding-bottom:100px}.py-26[_ngcontent-%COMP%]{padding-top:104px;padding-bottom:104px}.py-27[_ngcontent-%COMP%]{padding-top:108px;padding-bottom:108px}.py-28[_ngcontent-%COMP%]{padding-top:112px;padding-bottom:112px}.py-29[_ngcontent-%COMP%]{padding-top:116px;padding-bottom:116px}.py-30[_ngcontent-%COMP%]{padding-top:120px;padding-bottom:120px}.pt-1[_ngcontent-%COMP%]{padding-top:4px}.pt-2[_ngcontent-%COMP%]{padding-top:8px}.pt-3[_ngcontent-%COMP%]{padding-top:12px}.pt-4[_ngcontent-%COMP%]{padding-top:16px}.pt-5[_ngcontent-%COMP%]{padding-top:20px}.pt-6[_ngcontent-%COMP%]{padding-top:24px}.pt-7[_ngcontent-%COMP%]{padding-top:28px}.pt-8[_ngcontent-%COMP%]{padding-top:32px}.pt-9[_ngcontent-%COMP%]{padding-top:36px}.pt-10[_ngcontent-%COMP%]{padding-top:40px}.pt-11[_ngcontent-%COMP%]{padding-top:44px}.pt-12[_ngcontent-%COMP%]{padding-top:48px}.pt-13[_ngcontent-%COMP%]{padding-top:52px}.pt-14[_ngcontent-%COMP%]{padding-top:56px}.pt-15[_ngcontent-%COMP%]{padding-top:60px}.pt-16[_ngcontent-%COMP%]{padding-top:64px}.pt-17[_ngcontent-%COMP%]{padding-top:68px}.pt-18[_ngcontent-%COMP%]{padding-top:72px}.pt-19[_ngcontent-%COMP%]{padding-top:76px}.pt-20[_ngcontent-%COMP%]{padding-top:80px}.pt-21[_ngcontent-%COMP%]{padding-top:84px}.pt-22[_ngcontent-%COMP%]{padding-top:88px}.pt-23[_ngcontent-%COMP%]{padding-top:92px}.pt-24[_ngcontent-%COMP%]{padding-top:96px}.pt-25[_ngcontent-%COMP%]{padding-top:100px}.pt-26[_ngcontent-%COMP%]{padding-top:104px}.pt-27[_ngcontent-%COMP%]{padding-top:108px}.pt-28[_ngcontent-%COMP%]{padding-top:112px}.pt-29[_ngcontent-%COMP%]{padding-top:116px}.pt-30[_ngcontent-%COMP%]{padding-top:120px}.pb-1[_ngcontent-%COMP%]{padding-bottom:4px}.pb-2[_ngcontent-%COMP%]{padding-bottom:8px}.pb-3[_ngcontent-%COMP%]{padding-bottom:12px}.pb-4[_ngcontent-%COMP%]{padding-bottom:16px}.pb-5[_ngcontent-%COMP%]{padding-bottom:20px}.pb-6[_ngcontent-%COMP%]{padding-bottom:24px}.pb-7[_ngcontent-%COMP%]{padding-bottom:28px}.pb-8[_ngcontent-%COMP%]{padding-bottom:32px}.pb-9[_ngcontent-%COMP%]{padding-bottom:36px}.pb-10[_ngcontent-%COMP%]{padding-bottom:40px}.pb-11[_ngcontent-%COMP%]{padding-bottom:44px}.pb-12[_ngcontent-%COMP%]{padding-bottom:48px}.pb-13[_ngcontent-%COMP%]{padding-bottom:52px}.pb-14[_ngcontent-%COMP%]{padding-bottom:56px}.pb-15[_ngcontent-%COMP%]{padding-bottom:60px}.pb-16[_ngcontent-%COMP%]{padding-bottom:64px}.pb-17[_ngcontent-%COMP%]{padding-bottom:68px}.pb-18[_ngcontent-%COMP%]{padding-bottom:72px}.pb-19[_ngcontent-%COMP%]{padding-bottom:76px}.pb-20[_ngcontent-%COMP%]{padding-bottom:80px}.pb-21[_ngcontent-%COMP%]{padding-bottom:84px}.pb-22[_ngcontent-%COMP%]{padding-bottom:88px}.pb-23[_ngcontent-%COMP%]{padding-bottom:92px}.pb-24[_ngcontent-%COMP%]{padding-bottom:96px}.pb-25[_ngcontent-%COMP%]{padding-bottom:100px}.pb-26[_ngcontent-%COMP%]{padding-bottom:104px}.pb-27[_ngcontent-%COMP%]{padding-bottom:108px}.pb-28[_ngcontent-%COMP%]{padding-bottom:112px}.pb-29[_ngcontent-%COMP%]{padding-bottom:116px}.pb-30[_ngcontent-%COMP%]{padding-bottom:120px}.pr-1[_ngcontent-%COMP%]{padding-right:4px}.pr-2[_ngcontent-%COMP%]{padding-right:8px}.pr-3[_ngcontent-%COMP%]{padding-right:12px}.pr-4[_ngcontent-%COMP%]{padding-right:16px}.pr-5[_ngcontent-%COMP%]{padding-right:20px}.pr-6[_ngcontent-%COMP%]{padding-right:24px}.pr-7[_ngcontent-%COMP%]{padding-right:28px}.pr-8[_ngcontent-%COMP%]{padding-right:32px}.pr-9[_ngcontent-%COMP%]{padding-right:36px}.pr-10[_ngcontent-%COMP%]{padding-right:40px}.pr-11[_ngcontent-%COMP%]{padding-right:44px}.pr-12[_ngcontent-%COMP%]{padding-right:48px}.pr-13[_ngcontent-%COMP%]{padding-right:52px}.pr-14[_ngcontent-%COMP%]{padding-right:56px}.pr-15[_ngcontent-%COMP%]{padding-right:60px}.pr-16[_ngcontent-%COMP%]{padding-right:64px}.pr-17[_ngcontent-%COMP%]{padding-right:68px}.pr-18[_ngcontent-%COMP%]{padding-right:72px}.pr-19[_ngcontent-%COMP%]{padding-right:76px}.pr-20[_ngcontent-%COMP%]{padding-right:80px}.pr-21[_ngcontent-%COMP%]{padding-right:84px}.pr-22[_ngcontent-%COMP%]{padding-right:88px}.pr-23[_ngcontent-%COMP%]{padding-right:92px}.pr-24[_ngcontent-%COMP%]{padding-right:96px}.pr-25[_ngcontent-%COMP%]{padding-right:100px}.pr-26[_ngcontent-%COMP%]{padding-right:104px}.pr-27[_ngcontent-%COMP%]{padding-right:108px}.pr-28[_ngcontent-%COMP%]{padding-right:112px}.pr-29[_ngcontent-%COMP%]{padding-right:116px}.pr-30[_ngcontent-%COMP%]{padding-right:120px}.pl-1[_ngcontent-%COMP%]{padding-left:4px}.pl-2[_ngcontent-%COMP%]{padding-left:8px}.pl-3[_ngcontent-%COMP%]{padding-left:12px}.pl-4[_ngcontent-%COMP%]{padding-left:16px}.pl-5[_ngcontent-%COMP%]{padding-left:20px}.pl-6[_ngcontent-%COMP%]{padding-left:24px}.pl-7[_ngcontent-%COMP%]{padding-left:28px}.pl-8[_ngcontent-%COMP%]{padding-left:32px}.pl-9[_ngcontent-%COMP%]{padding-left:36px}.pl-10[_ngcontent-%COMP%]{padding-left:40px}.pl-11[_ngcontent-%COMP%]{padding-left:44px}.pl-12[_ngcontent-%COMP%]{padding-left:48px}.pl-13[_ngcontent-%COMP%]{padding-left:52px}.pl-14[_ngcontent-%COMP%]{padding-left:56px}.pl-15[_ngcontent-%COMP%]{padding-left:60px}.pl-16[_ngcontent-%COMP%]{padding-left:64px}.pl-17[_ngcontent-%COMP%]{padding-left:68px}.pl-18[_ngcontent-%COMP%]{padding-left:72px}.pl-19[_ngcontent-%COMP%]{padding-left:76px}.pl-20[_ngcontent-%COMP%]{padding-left:80px}.pl-21[_ngcontent-%COMP%]{padding-left:84px}.pl-22[_ngcontent-%COMP%]{padding-left:88px}.pl-23[_ngcontent-%COMP%]{padding-left:92px}.pl-24[_ngcontent-%COMP%]{padding-left:96px}.pl-25[_ngcontent-%COMP%]{padding-left:100px}.pl-26[_ngcontent-%COMP%]{padding-left:104px}.pl-27[_ngcontent-%COMP%]{padding-left:108px}.pl-28[_ngcontent-%COMP%]{padding-left:112px}.pl-29[_ngcontent-%COMP%]{padding-left:116px}.pl-30[_ngcontent-%COMP%]{padding-left:120px}[_nghost-%COMP%]{display:inline-block}[_nghost-%COMP%]   button[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;min-height:40px;border-radius:4px;outline:0;cursor:pointer;line-height:1;border:none;transition:all .2s ease-in-out;white-space:nowrap}.button-primary[_nghost-%COMP%]   button[_ngcontent-%COMP%], .button-primary   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{background:#f39;color:#fff;border:none}.button-primary[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover, .button-primary   [_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover{background:#fb63b0}.button-primary.button-loader[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover, .button-primary   .button-loader[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover{background:#098dcd}.button-primary[_nghost-%COMP%]     .loader-ng-select, .button-primary   [_nghost-%COMP%]     .loader-ng-select{margin:0}.button-primary[_nghost-%COMP%]     .loader, .button-primary   [_nghost-%COMP%]     .loader{border-color:#eff2f480;border-left-color:#fff}.button-secondary-inverted[_nghost-%COMP%]   button[_ngcontent-%COMP%], .button-secondary-inverted   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{background:#ffffff1a;border:1px solid #fff;color:#fff}.button-secondary-inverted[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover, .button-secondary-inverted   [_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover{background:#ffffff2e;border-color:#fff}.button-secondary-inverted.button-loader[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover, .button-secondary-inverted   .button-loader[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover{background:#ffffff2e;border-color:#fff}.button-show-more[_nghost-%COMP%]   button[_ngcontent-%COMP%], .button-show-more   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{background:#e6f6fe;color:#098dcd;border:1px solid transparent;min-height:34px!important}.button-show-more[_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover, .button-show-more   [_nghost-%COMP%]   button[_ngcontent-%COMP%]:hover{border:1px solid #098dcd}.button-show-more[_nghost-%COMP%]     .loader-ng-select, .button-show-more   [_nghost-%COMP%]     .loader-ng-select{margin:0}.button-show-more[_nghost-%COMP%]     ui-loader, .button-show-more   [_nghost-%COMP%]     ui-loader{width:24px;height:24px;margin:3px auto}.button-show-more[_nghost-%COMP%]     ui-loader .loader, .button-show-more   [_nghost-%COMP%]     ui-loader .loader{border-color:#eff2f480;border-left-color:#098dcd;width:24px;height:24px}.disabled[_nghost-%COMP%]   button[_ngcontent-%COMP%], .disabled   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{background:#ffffff2e;color:#ffffff4d;border:none;pointer-events:none;-webkit-user-select:none;user-select:none}.disabled.button-text[_nghost-%COMP%]   button[_ngcontent-%COMP%], .disabled   .button-text[_nghost-%COMP%]   button[_ngcontent-%COMP%]{background-color:#ffffff2e}.disabled-inverted[_nghost-%COMP%]   button[_ngcontent-%COMP%], .disabled-inverted   [_nghost-%COMP%]   button[_ngcontent-%COMP%]{color:#bdc8d4;background:#eff2f4;border:none;pointer-events:none;-webkit-user-select:none;user-select:none}.disabled-inverted.button-text[_nghost-%COMP%]   button[_ngcontent-%COMP%], .disabled-inverted   .button-text[_nghost-%COMP%]   button[_ngcontent-%COMP%]{background:#eff2f4}"],changeDetection:0});let n=r;return n})();var Dc=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,fe]});let n=r;return n})();function g0(n,r){if(n&1){let o=P();Y(0),p(1,"ui3-button",5),_("click",function(){u(o);let t=c(2);return f(t.smartActionsClicked())}),b(2,"span",6),O(3),C(4,"translate"),d(),X()}n&2&&(s(3),S("\xA0",M(4,1,"renderers-ng.autofill.smartActions.buttonLabel"),""))}function m0(n,r){if(n&1&&h(0,g0,5,3,"ng-container",4),n&2){let o=c(),e=j(6);l("ngIf",o.workflowHeader)("ngIfElse",e)}}function u0(n,r){if(n&1){let o=P();p(0,"div",7),_("click",function(){let t=u(o).$implicit;return f(t.disabled?null:t.callback())}),O(1),d()}if(n&2){let o=r.$implicit;z("disabled",o.disabled),s(),S(" ",o.label," ")}}function f0(n,r){if(n&1&&Ge(0,8),n&2){let o=c();l("ngTemplateOutlet",o.customButton)}}var $U=(()=>{let r=class r{constructor(e){this.trackingService=e}smartActionsClicked(){this.trackingService.trackEventById("smartActionClick")}};r.\u0275fac=function(t){return new(t||r)(x(pe))},r.\u0275cmp=v({type:r,selectors:[["renderer-gpt-smart-actions-button"]],contentQueries:function(t,i,a){if(t&1&&Zn(a,Ai,5),t&2){let g;we(g=Se())&&(i.customButton=g.first)}},inputs:{entity:"entity",elementType:"elementType",smartActions:"smartActions",workflowHeader:"workflowHeader"},standalone:!0,features:[W],decls:7,vars:2,consts:[["dropdownButton",""],["dropdownList",""],["templateOutlet",""],["eventType","click","dropPosition","bottom",1,"smart-dropdown",3,"searchable","data"],[4,"ngIf","ngIfElse"],[1,"button-primary","ai-button","mb-2",3,"click"],[1,"icon","icon2-x16-ai"],[1,"smart-action",3,"click"],[3,"ngTemplateOutlet"]],template:function(t,i){t&1&&(p(0,"ui-dropdown-list",3),h(1,m0,1,2,"ng-template",null,0,V)(3,u0,2,3,"ng-template",null,1,V)(5,f0,1,1,"ng-template",null,2,V),d()),t&2&&l("searchable",!1)("data",i.smartActions)},dependencies:[E,A,yn,H,I,Pr,zt,Dc,Rc],styles:["[_nghost-%COMP%]{max-width:480px}.image-preview-wrapper[_ngcontent-%COMP%]{margin:14px auto 0;display:flex;align-items:center;flex-direction:column;gap:12px}.image-row[_ngcontent-%COMP%], .button-row[_ngcontent-%COMP%], .title-row[_ngcontent-%COMP%]{display:flex;align-items:center;gap:24px;flex-direction:row}.title-row[_ngcontent-%COMP%]{margin-right:auto;margin-left:24px}.title-wrapper[_ngcontent-%COMP%]{left:0}.button-row[_ngcontent-%COMP%]{margin-left:auto;margin-right:24px}.button-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:12px;margin-left:auto;margin-top:36px}.image-wrapper[_ngcontent-%COMP%]{border-radius:8px;width:192px;height:100px;overflow:hidden;object-fit:fill;border:2px solid transparent;max-width:940px;z-index:100}.image-wrapper[_ngcontent-%COMP%]:hover{border:2px solid var(--primary-blue, #098dcd);transition:.2s ease}.image-wrapper[_ngcontent-%COMP%]:hover   .img-overlay[_ngcontent-%COMP%]{opacity:1}.image-wrapper[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:fill;z-index:1;position:relative}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]{width:188px;height:96px;transition:.2s ease;opacity:0;z-index:100;border-radius:6px;background-color:#62758833;position:absolute;transform:translateY(-106%);display:flex;margin:auto;align-items:center;justify-content:center}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]   .expand-icon[_ngcontent-%COMP%]{position:absolute;display:flex;margin:auto;align-items:center;justify-content:center;top:4px;right:4px;background-color:#e6f6fe;color:#627588;border-radius:50%;width:38px;height:38px;font-size:12px;cursor:pointer}.image-wrapper[_ngcontent-%COMP%]   .img-overlay[_ngcontent-%COMP%]   .text[_ngcontent-%COMP%]{font-size:12px;color:#fff;font-weight:600;cursor:pointer}.collapse-icon[_ngcontent-%COMP%]{background-color:#e6f6fe;right:-8px;top:-8px;width:24px;height:24px;font-size:24px;opacity:0;z-index:102;display:block;cursor:pointer;line-height:1;border-radius:50%;position:absolute}.loading-state[_ngcontent-%COMP%]{height:65px}.loading-state[_ngcontent-%COMP%]   .loader[_ngcontent-%COMP%]{width:90%;position:absolute;display:block;margin-top:24px}[_nghost-%COMP%]     .dropdown-menu-list{width:max-content!important;position:absolute!important;left:-68px;box-shadow:0 2px 6px #3e4d6347}[_nghost-%COMP%]     .smart-dropdown .dropdown-menu-item{padding:0}[_nghost-%COMP%]     .smart-dropdown .dropdown-menu-item>*:only-of-type{padding:7px 12px;min-height:40px;align-items:center;display:flex}[_nghost-%COMP%]     .smart-dropdown .dropdown-menu-item:hover{border-radius:6px}.disabled[_ngcontent-%COMP%]{cursor:not-allowed;color:#bdc8d4}  .ai-button button{min-height:24px!important;height:24px!important;border:none!important;padding-left:12px!important;padding-right:12px!important;background:linear-gradient(247.74deg,#f39 39.02%,#bc15a1 82.93%)!important}  .ai-button button .icon{padding:0!important}"]});let n=r;return n})();var _0=["outputTextElm"],h0=["inlineInputElm"],C0=["placeholderElm"],x0=n=>({height:n}),M0=n=>({limit:n}),O0=n=>({"readonly-text":n});function P0(n,r){if(n&1&&(Y(0),p(1,"div",14)(2,"div",15)(3,"span",16),O(4),d(),p(5,"span",17),O(6),d()()(),X()),n&2){let o=c(2);s(3),l("ngClass",q(3,M0,o.characterCount>o.characterLimit)),s(),S(" ",o.characterCount," "),s(2),S(" /",o.characterLimit,"")}}function b0(n,r){n&1&&(p(0,"div",18)(1,"ui-error-popup",19),O(2),C(3,"translate"),d()()),n&2&&(s(2),S(" ",M(3,1,"ui2-inline-text-editor.limitValidator")," "))}function y0(n,r){if(n&1){let o=P();p(0,"div",20)(1,"div",21),_("click",function(t){u(o);let i=c(2);return f(i.onCancel(t))}),d(),p(2,"div",22),_("click",function(t){u(o);let i=c(2);return f(i.onSubmit(t))}),d()()}}function v0(n,r){if(n&1){let o=P();p(0,"form",8)(1,"div",9)(2,"textarea",10,0),_("keyup.control.enter",function(t){u(o);let i=c();return f(i.onSubmit(t))}),d(),h(4,P0,7,5,"ng-container",11),d(),h(5,b0,4,3,"div",12)(6,y0,3,0,"div",13),d()}if(n&2){let o=c();l("formGroup",o.form),s(2),l("ngStyle",q(6,x0,o.heightTextarea?o.heightTextarea+"px":null))("placeholder",o.placeholder),s(2),l("ngIf",o.characterLimit&&o.characterLimit>0),s(),l("ngIf",o.characterLimitReached),s(),l("ngIf",!o.characterLimitReached)}}function w0(n,r){if(n&1){let o=P();p(0,"span",23,1),_("click",function(t){u(o);let i=c();return f(i.editText(t))}),O(2),C(3,"translate"),d()}if(n&2){let o=c();l("ngClass",q(4,O0,o.disabled)),s(2),S(" ",o.disabled?M(3,2,o.disabledAndEmptyStateText):o.placeholder||""," ")}}function S0(n,r){if(n&1&&b(0,"div",24,2),n&2){let o=c();l("innerText",o.text)}}function T0(n,r){if(n&1){let o=P();p(0,"div",28),_("click",function(t){u(o);let i=c(2);return f(i.onDeleteButtonClicked(t))}),d()}if(n&2){let o=c(2);Kn("button-icon ",o.customIcon?"icon2-x16-delete":"icon2-x16-close-m","")}}function E0(n,r){if(n&1&&(p(0,"div",25),b(1,"div",26),h(2,T0,1,3,"div",27),d()),n&2){let o=c();s(2),l("ngIf",o.showDeleteButton)}}var I0=30,Vc=50;var Hr="textAreaContent",k0=12,Uc=(()=>{let r=class r{constructor(){this.destroyRef=Q(ee),this.onSubmitEdition=new y,this.onEditCancelled=new y,this.deleteButtonClicked=new y,this.editionToggled=new y,this.text="",this.placeholder="",this.disabledAndEmptyStateText="ui2-inline-text-editor.readOnlyNoInput",this.customIcon=!1,this.characterLimit=null,this.form=new fa({[Hr]:new _a("")}),this.heightTextarea=0,this.unsubscribeInput=new F,this.characterCount=0,this.characterLimitReached=!1}ngOnInit(){this.setDefaultHeight(),this.form.get(Hr)?.valueChanges.pipe(L(this.destroyRef)).subscribe(e=>{this.characterCount=e?e.length:0,this.characterLimitReached=!!this.characterLimit&&this.characterLimit<this.characterCount}),this.editionToggled.pipe(L(this.destroyRef)).subscribe(e=>{e?setTimeout(()=>{if(this.inlineInputElm){this.setTextareaHeight();let t=this.inlineInputElm.nativeElement;t.focus(),Vo(t,"input").pipe(It(this.unsubscribeInput),zn(()=>this.heightTextarea!==t.scrollHeight)).subscribe(()=>{this.setTextareaHeight()})}},Vc):(this.setDefaultHeight(),this.unsubscribeInput.next())})}ngOnChanges(e){e.text&&this.setInitialValue()}ngOnDestroy(){this.unsubscribeInput.next(),this.unsubscribeInput.complete()}editText(e){e?.stopPropagation(),!(this.disabled||this.editionMode)&&this.toggleEditionMode(!0)}onSubmit(e){e.stopPropagation(),this.text=this.form?.get(Hr)?.value,this.onSubmitEdition.emit(this.text),this.toggleEditionMode(!1),this.cleanTextareaHeight()}onCancel(e){e.stopPropagation(),this.setInitialValue(),this.onEditCancelled.emit(),this.toggleEditionMode(!1),this.cleanTextareaHeight()}onDeleteButtonClicked(e){e.stopPropagation(),this.deleteButtonClicked.emit()}openEditor(){this.editText()}toggleEditionMode(e){this.editionMode=e,this.editionToggled.emit(e)}setTextareaHeight(){this.inlineInputElm.nativeElement.style.height=`${I0}px`;let e=this.inlineInputElm.nativeElement.scrollHeight,t=e+k0;this.characterLimit?(this.heightTextarea=t,this.inlineInputElm.nativeElement.style.height=`${t}px`):(this.heightTextarea=e,this.inlineInputElm.nativeElement.style.height=`${e}px`)}cleanTextareaHeight(){this.heightTextarea=0}setDefaultHeight(){setTimeout(()=>{this.heightTextarea=this.outputTextElm?.nativeElement?.offsetHeight},Vc)}setInitialValue(){let e=this.text||"";this.form.get(Hr)?.setValue(e),this.characterCount=e.length}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui2-inline-text-editor"]],viewQuery:function(t,i){if(t&1&&(Le(_0,5),Le(h0,5),Le(C0,5)),t&2){let a;we(a=Se())&&(i.outputTextElm=a.first),we(a=Se())&&(i.inlineInputElm=a.first),we(a=Se())&&(i.placeholderElm=a.first)}},inputs:{text:"text",editionMode:"editionMode",disabled:"disabled",ellipsis:"ellipsis",placeholder:"placeholder",showDeleteButton:"showDeleteButton",disabledAndEmptyStateText:"disabledAndEmptyStateText",customIcon:"customIcon",characterLimit:"characterLimit"},outputs:{onSubmitEdition:"onSubmitEdition",onEditCancelled:"onEditCancelled",deleteButtonClicked:"deleteButtonClicked",editionToggled:"editionToggled"},features:[k],decls:5,vars:12,consts:[["inlineInputElm",""],["placeholderElm",""],["outputTextElm",""],[1,"wrap",3,"click"],["class","form-inline-text",3,"formGroup",4,"ngIf"],["class","placeholder",3,"ngClass","click",4,"ngIf"],["class","output",3,"innerText",4,"ngIf"],["class","buttons-group show-on-hover absolute-right-top background-gray",4,"ngIf"],[1,"form-inline-text",3,"formGroup"],[1,"editor-input"],["name","textarea","formControlName","textAreaContent",1,"textarea",3,"keyup.control.enter","ngStyle","placeholder"],[4,"ngIf"],["class","error-message",4,"ngIf"],["class","buttons-group",4,"ngIf"],[1,"character-counter-wrapper"],[1,"character-counter"],[1,"character-count",3,"ngClass"],[1,"character-limit"],[1,"error-message"],[1,"error-popup"],[1,"buttons-group"],[1,"button-icon","circle","icon2-x16-close-m",3,"click"],[1,"button-icon","circle","primary","icon2-x16-checkmark",3,"click"],[1,"placeholder",3,"click","ngClass"],[1,"output",3,"innerText"],[1,"buttons-group","show-on-hover","absolute-right-top","background-gray"],[1,"button-icon","icon2-x16-edit"],[3,"class","click",4,"ngIf"],[3,"click"]],template:function(t,i){t&1&&(p(0,"div",3),_("click",function(g){return i.editText(g)}),h(1,v0,7,8,"form",4)(2,w0,4,6,"span",5)(3,S0,2,1,"div",6)(4,E0,3,1,"div",7),d()),t&2&&(z("edit-mode",i.editionMode)("disabled-editor",i.disabled)("ellipsis",i.ellipsis)("delete-button-enabled",i.showDeleteButton),s(),l("ngIf",i.editionMode),s(),l("ngIf",!i.text&&!i.editionMode),s(),l("ngIf",!!i.text&&!i.editionMode),s(),l("ngIf",!i.disabled&&!i.editionMode))},dependencies:[de,A,bn,rr,nn,J,ni,Ca,xa,rt,I],styles:["[_nghost-%COMP%]{width:100%}.editor-input[_ngcontent-%COMP%]{position:relative}.character-counter-wrapper[_ngcontent-%COMP%]{font-size:12px;position:absolute;bottom:4px;width:100%;display:flex;align-items:end;margin-top:4px}.character-counter-wrapper[_ngcontent-%COMP%]   .character-counter[_ngcontent-%COMP%]{display:flex;left:100%;position:sticky;margin-right:8px}.character-counter-wrapper[_ngcontent-%COMP%]   .character-counter[_ngcontent-%COMP%]   .character-count[_ngcontent-%COMP%]{color:#3e4d63}.character-counter-wrapper[_ngcontent-%COMP%]   .character-counter[_ngcontent-%COMP%]   .character-count.limit[_ngcontent-%COMP%]{color:#f1245c}.character-counter-wrapper[_ngcontent-%COMP%]   .character-counter[_ngcontent-%COMP%]   .character-limit[_ngcontent-%COMP%]{color:#8a9bab}.error-message[_ngcontent-%COMP%]{margin:2px;position:relative;z-index:2}.wrap[_ngcontent-%COMP%]{padding:0 4px;cursor:pointer;position:relative;min-height:22px;display:flex;align-items:center;line-height:1.35;font-size:.875rem}.wrap[_ngcontent-%COMP%]:hover{background-color:#f7f8f9;border-radius:3px}.wrap[_ngcontent-%COMP%]:hover   .show-on-hover[_ngcontent-%COMP%]{opacity:1;pointer-events:auto}.wrap[_ngcontent-%COMP%]:hover.delete-button-enabled   .textarea[_ngcontent-%COMP%], .wrap[_ngcontent-%COMP%]:hover.delete-button-enabled   .output[_ngcontent-%COMP%]{padding-right:48px}.wrap.edit-mode[_ngcontent-%COMP%]{padding:0}.wrap.edit-mode[_ngcontent-%COMP%]:hover{background-color:transparent}.wrap.delete-button-enabled[_ngcontent-%COMP%]   .output[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis}.wrap.disabled-editor[_ngcontent-%COMP%]{cursor:auto}.wrap.disabled-editor[_ngcontent-%COMP%]:hover{background-color:transparent}.wrap.disabled-editor[_ngcontent-%COMP%]   .output[_ngcontent-%COMP%]{padding-right:0}.form-inline-text[_ngcontent-%COMP%]{width:100%}.button-icon[_ngcontent-%COMP%]{width:16px;height:16px;line-height:16px;cursor:pointer;display:flex;align-items:center;justify-content:center;color:#627588}.button-icon[_ngcontent-%COMP%]:hover{color:#098dcd}.button-icon.circle[_ngcontent-%COMP%]{width:30px;height:30px;border-radius:100%;margin-top:4px;background-color:#f7f8f9}.button-icon.circle.primary[_ngcontent-%COMP%]{background-color:#e6f6fe}.button-icon.circle[_ngcontent-%COMP%]:hover{color:#fff;background-color:#627588}.button-icon.circle[_ngcontent-%COMP%]:hover.primary{background-color:#098dcd}.background-gray[_ngcontent-%COMP%]{background-color:#f7f8f9;padding:4px}.button-icon[_ngcontent-%COMP%] + .button-icon[_ngcontent-%COMP%]{margin-left:8px}.buttons-group[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}.absolute-right-top[_ngcontent-%COMP%]{position:absolute;height:100%;top:0;right:4px}.show-on-hover[_ngcontent-%COMP%]{opacity:0;pointer-events:none}.textarea[_ngcontent-%COMP%]{border-radius:3px;border:1px solid #bdc8d4;padding:5px 24px 4px 4px;min-height:30px;height:30px;width:100%;resize:none;overflow:hidden;display:block;transition:height .2s ease-in-out;line-height:1.35;font-size:.875rem}.textarea[_ngcontent-%COMP%]::-webkit-input-placeholder{color:#627588}.textarea[_ngcontent-%COMP%]:-moz-placeholder{color:#627588}.textarea[_ngcontent-%COMP%]::-moz-placeholder{color:#627588}.textarea[_ngcontent-%COMP%]:-ms-input-placeholder{color:#627588}.textarea[_ngcontent-%COMP%]:focus{outline:none;transition:box-shadow .5s,border-color .25s ease-in-out;border-color:#098dcd;box-shadow:none}.output[_ngcontent-%COMP%]{line-height:1.35;padding-right:24px}.placeholder[_ngcontent-%COMP%]{color:#8a9bab}.ellipsis[_ngcontent-%COMP%]   .output[_ngcontent-%COMP%]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%}"]});let n=r;return n})();var Lc={"ui2-inline-text-editor":{}};var ko={"ui2-inline-text-editor":{readOnlyNoInput:"None",submit:"",cancel:"",edit:"Edit",limitValidator:"You have reached the character limit. Please shorten your text to proceed."}};var Ac=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:ko,de:Lc}[t]||ko))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H,rn,Je]});let n=r;return n})();var R0=["noteEditor"],D0=300,I6=(()=>{let r=class r{constructor(){this.collapsed=!0,this.isReadonly=!1,this.characterLimit=250,this.noteValueChange=new y,this.userIsEditing=!1}ngOnChanges(e){e.noteValue&&e.noteValue?.currentValue&&!this.userIsEditing&&(this.renderedNoteValue=this.noteValue)}toggleExpand(){this.collapsed=!this.collapsed,!this.collapsed&&(!this.noteValue||this.noteValue.length===0&&!this.isReadonly)&&this.noteEditor?.openEditor()}editNoteSubmitted(e){this.noteValue=e,this.noteValueChange.emit(e)}deleteButtonClicked(){this.collapsed=!0,setTimeout(()=>{this.renderedNoteValue="",this.noteValue="",this.editNoteSubmitted("")},D0)}editNoteCancelled(){this.renderedNoteValue=this.noteValue}editionToggled(e){this.userIsEditing=e}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-rating-note"]],viewQuery:function(t,i){if(t&1&&Le(R0,5),t&2){let a;we(a=Se())&&(i.noteEditor=a.first)}},inputs:{collapsed:"collapsed",noteValue:"noteValue",isReadonly:"isReadonly",characterLimit:"characterLimit"},outputs:{noteValueChange:"noteValueChange"},standalone:!0,features:[k,W],decls:12,vars:15,consts:[["noteEditor",""],[1,"note-wrapper"],[1,"expand-trigger-wrapper",3,"click"],[1,"icon","icon2-x16-sticker-square","notes-icon"],[1,"expand-trigger-label","label-xs-semibold"],[1,"chevron-wrapper"],[1,"icon","icon2-x16-micro-chevron-m"],[1,"note-input"],[3,"onSubmitEdition","onEditCancelled","deleteButtonClicked","editionToggled","text","characterLimit","placeholder","showDeleteButton","customIcon","disabled"]],template:function(t,i){if(t&1){let a=P();p(0,"div",1)(1,"div",2),_("click",function(){return u(a),f(i.toggleExpand())}),b(2,"span",3),p(3,"span",4),O(4),C(5,"translate"),d(),p(6,"div",5),b(7,"span",6),d()(),p(8,"div",7)(9,"ui2-inline-text-editor",8,0),C(11,"translate"),_("onSubmitEdition",function(m){return u(a),f(i.editNoteSubmitted(m))})("onEditCancelled",function(){return u(a),f(i.editNoteCancelled())})("deleteButtonClicked",function(){return u(a),f(i.deleteButtonClicked())})("editionToggled",function(m){return u(a),f(i.editionToggled(m))}),d()()()}t&2&&(s(4),R(M(5,11,i.renderedNoteValue&&i.renderedNoteValue.length>0?"renderers.rating-notes.panel-title-view":"renderers.rating-notes.panel-title-add")),s(2),z("icon-expanded",!i.collapsed),s(2),z("note-collapsed",i.collapsed),s(),l("text",i.renderedNoteValue)("characterLimit",i.characterLimit)("placeholder",M(11,13,"renderers.rating-notes.input-placeholder"))("showDeleteButton",!0)("customIcon",!0)("disabled",i.isReadonly))},dependencies:[E,Ac,Uc,H,I],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-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.icon-expanded[_ngcontent-%COMP%]{transform:scaleY(-1)}.expand-trigger-wrapper[_ngcontent-%COMP%]{position:relative;-webkit-user-select:none;user-select:none;display:flex;flex-direction:row;gap:4px}.expand-trigger-wrapper[_ngcontent-%COMP%]:hover{cursor:pointer}.expand-trigger-wrapper[_ngcontent-%COMP%]:hover   .expand-trigger-label[_ngcontent-%COMP%], .expand-trigger-wrapper[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{color:#098dcd}.expand-trigger-wrapper[_ngcontent-%COMP%]   .expand-trigger-label[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:flex;line-height:18px;color:#3e4d63}.expand-trigger-wrapper[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none;display:flex;line-height:16px;width:16px;height:16px;color:#627588}.note-input[_ngcontent-%COMP%]{margin-top:12px;max-height:200px;transition:all .1s ease-in-out}.note-collapsed[_ngcontent-%COMP%]{margin-top:0;max-height:0;overflow:hidden}[_nghost-%COMP%]     div.wrap{padding:0!important;position:relative;display:block}[_nghost-%COMP%]     div.wrap:hover:before{width:0!important;height:0!important}[_nghost-%COMP%]     div.wrap .editor-input textarea{margin:2px!important}[_nghost-%COMP%]     div.wrap textarea{padding:12px!important}[_nghost-%COMP%]     .btns-group{text-align:right!important}[_nghost-%COMP%]     .btns-group .btn-submit{margin-right:12px!important}[_nghost-%COMP%]     div.wrap:not(.edit-mode){padding:8px!important;background-color:#f7f8f9!important;border-radius:4px}"]});let n=r;return n})();var Nc=n=>({control:n});function V0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-select",3),_("onSelectionChange",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("values",o.value)("showLabel",!1)}}function U0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-hierarchical-search-select",3),_("onSelectionChange",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("values",o.value)("showLabel",!1)}}function L0(n,r){}function A0(n,r){n&1&&h(0,L0,0,0,"ng-template")}function N0(n,r){if(n&1&&(Y(0),h(1,A0,1,0,null,4),X()),n&2){let o=c(),e=j(17);s(),l("ngTemplateOutlet",e)("ngTemplateOutletContext",q(2,Nc,o.control))}}function j0(n,r){}function B0(n,r){n&1&&h(0,j0,0,0,"ng-template")}function z0(n,r){if(n&1&&(Y(0),h(1,B0,1,0,null,4),X()),n&2){let o=c(),e=j(17);s(),l("ngTemplateOutlet",e)("ngTemplateOutletContext",q(2,Nc,o.control))}}function G0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-number",5),_("onTextSubmit",function(t){u(o);let i=c();return f(i.numericalValueChanged(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)("showLabel",!1)}}function q0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-user-select",6),_("onChangeSelectedUser",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("values",o.value)("showLabel",!1)}}function H0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-text",7),_("onTextSubmit",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)}}function W0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-text",7),_("onTextSubmit",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)}}function Q0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-date",8),_("onUpdate",function(t){u(o);let i=c();return f(i.dateValueChanged(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)("showLabel",!1)}}function $0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-hyperlink",5),_("onTextSubmit",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)("showLabel",!1)}}function Y0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-text-area",7),_("onTextSubmit",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)}}function X0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-rich-text",9),_("onContentChanged",function(t){u(o);let i=c();return f(i.rteContentChanged(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)("showLabel",!1)}}function J0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-steps",10),_("onSelected",function(t){u(o);let i=c();return f(i.valueUpdate(t))})("loading",function(t){u(o);let i=c();return f(i.loading.emit(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("value",o.value)("showLabel",!1)("field",o.control==null?null:o.control.field)}}function K0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-search-select",11),_("onTagsChange",function(t){u(o);let i=c();return f(i.tagChanged(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("values",o.value)("showLabel",!1)}}function Z0(n,r){if(n&1){let o=P();Y(0),p(1,"renderer-file-upload",12),_("onFileChanged",function(t){u(o);let i=c();return f(i.valueUpdate(t))}),d(),X()}if(n&2){let o=c();s(),l("control",o.control)("values",o.value)("showLabel",!1)}}function eC(n,r){if(n&1){let o=P();p(0,"renderer-order-rating",13),_("onChangeEnd",function(t){u(o);let i=c(2);return f(i.ratingChanged(t))}),d()}if(n&2){let o=c().control,e=c();l("control",o)("value",e.value==null?null:e.value.ratingValue)("isRatable",!0)("trackValue",e.averageValue)("showLabel",!1)("trackValuePercentage",e.trackValuePercentage)}}function tC(n,r){if(n&1){let o=P();p(0,"renderer-numerical-rating",14),_("onChangeEnd",function(t){u(o);let i=c(2);return f(i.ratingChanged(t))}),d()}if(n&2){let o=c().control,e=c();l("control",o)("value",e.value==null?null:e.value.ratingValue)("showLabel",!1)("isRatable",!0)("trackValue",e.averageValue)("trackValuePercentage",e.trackValuePercentage)}}function nC(n,r){if(n&1&&h(0,eC,1,6)(1,tC,1,6),n&2){let o,e=r.control,t=c();Ce(0,(o=e==null||e.field==null?null:e.field.fieldTypeUri)===t.entityConfigFieldTypeUri.ORDERED_RATING?0:o===t.entityConfigFieldTypeUri.NUMERICAL_RATING?1:-1)}}var iC='{"ops":[{"insert":"\\n"}]}',Z6=(()=>{let r=class r{constructor(){this.onValueChange=new y,this.entityConfigFieldTypeUri=si,this.controlTypeUri=Aa}ngOnChanges(e){if(e.control?.currentValue?.field?.fieldTypeUri===this.entityConfigFieldTypeUri.ORDERED_RATING){let t=Br(e.control.currentValue);this.trackValuePercentage=this.value/t*100}if(e.control?.currentValue?.field?.fieldTypeUri===this.entityConfigFieldTypeUri.NUMERICAL){let t=zr(e.control.currentValue);this.trackValuePercentage=this.value/t*100}}dateValueChanged(e){this.onValueChange.emit(e.fieldValue)}numericalValueChanged(e){this.onValueChange.emit(e.fieldValue)}ratingChanged(e){let i={type:"RatingChange",value:e.value===null||e.value===void 0?null:e.value};this.onValueChange.emit(i)}tagChanged(e){let t={type:"TagChange",value:e};this.onValueChange.emit(t)}rteContentChanged(e){let t;if(e.contentJSON===iC)t={value:null,type:"RTEChange"};else{let a={fieldUri:"rteFiles",value:Array.from(e.newImageUris)};t={value:e.contentJSON,rteFileField:a,type:"RTEChange"}}this.onValueChange.emit(t)}valueUpdate(e){let t=e?.fieldValue===void 0||e?.fieldValue===null,i=Array.isArray(e?.fieldValue)&&e?.fieldValue?.length===0;(t||i)&&(e.fieldValue=null),this.onValueChange.emit(e.fieldValue)}};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["renderer-leaf-wrapper"]],inputs:{control:"control",value:"value",averageValue:"averageValue"},outputs:{onValueChange:"onValueChange"},standalone:!0,features:[k,W],decls:18,vars:18,consts:[["ratingTemplate",""],[3,"ngSwitch"],[4,"ngSwitchCase"],[3,"onSelectionChange","control","values","showLabel"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"onTextSubmit","control","value","showLabel"],[3,"onChangeSelectedUser","control","values","showLabel"],[3,"onTextSubmit","control","value"],[3,"onUpdate","control","value","showLabel"],[3,"onContentChanged","control","value","showLabel"],[3,"onSelected","loading","control","value","showLabel","field"],[3,"onTagsChange","control","values","showLabel"],[3,"onFileChanged","control","values","showLabel"],[3,"onChangeEnd","control","value","isRatable","trackValue","showLabel","trackValuePercentage"],[3,"onChangeEnd","control","value","showLabel","isRatable","trackValue","trackValuePercentage"]],template:function(t,i){t&1&&(p(0,"div",1),h(1,V0,2,3,"ng-container",2)(2,U0,2,3,"ng-container",2)(3,N0,2,4,"ng-container",2)(4,z0,2,4,"ng-container",2)(5,G0,2,3,"ng-container",2)(6,q0,2,3,"ng-container",2)(7,H0,2,2,"ng-container",2)(8,W0,2,2,"ng-container",2)(9,Q0,2,3,"ng-container",2)(10,$0,2,3,"ng-container",2)(11,Y0,2,2,"ng-container",2)(12,X0,2,3,"ng-container",2)(13,J0,2,4,"ng-container",2)(14,K0,2,3,"ng-container",2)(15,Z0,2,3,"ng-container",2),d(),h(16,nC,2,1,"ng-template",null,0,V)),t&2&&(z("hyperlink-wrapper",i.control.controlTypeUri===i.controlTypeUri.HYPERLINK),l("ngSwitch",i.control.controlTypeUri),s(),l("ngSwitchCase",i.controlTypeUri.SELECT),s(),l("ngSwitchCase",i.controlTypeUri.HIERARCHICAL_SEARCH_SELECT),s(),l("ngSwitchCase",i.controlTypeUri.RATING),s(),l("ngSwitchCase",i.controlTypeUri.SLIDER),s(),l("ngSwitchCase",i.controlTypeUri.NUMERIC),s(),l("ngSwitchCase",i.controlTypeUri.USER_SELECT),s(),l("ngSwitchCase",i.controlTypeUri.TEXT),s(),l("ngSwitchCase",i.controlTypeUri.PLAIN),s(),l("ngSwitchCase",i.controlTypeUri.DATE_PICKER),s(),l("ngSwitchCase",i.controlTypeUri.HYPERLINK),s(),l("ngSwitchCase",i.controlTypeUri.TEXTAREA),s(),l("ngSwitchCase",i.controlTypeUri.RICH_TEXT),s(),l("ngSwitchCase",i.controlTypeUri.STEPS),s(),l("ngSwitchCase",i.controlTypeUri.SEARCH_SELECT),s(),l("ngSwitchCase",i.controlTypeUri.FILE_UPLOAD))},dependencies:[E,yn,en,Qt,uc,Ks,Qs,Vs,Mc,xc,Bs,Oc,js,pc,hc,mc,oc,rc],styles:["[_nghost-%COMP%]     .input-wrapper{flex-wrap:unset;margin-top:unset}"]});let n=r;return n})();var rC=["*"],oC=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275cmp=v({type:r,selectors:[["ui-checkbox"]],ngContentSelectors:rC,decls:4,vars:0,consts:[[1,"checkbox-container"],[1,"checkmark"]],template:function(t,i){t&1&&(ot(),p(0,"div",0)(1,"label"),it(2),b(3,"span",1),d()())},styles:['.checkbox-container[_ngcontent-%COMP%]{display:inline-block;vertical-align:middle;width:auto;height:17px}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:block;position:relative;padding-left:26px;line-height:1.2;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{position:absolute;top:0;left:0;height:17px;width:17px;border-radius:3px;background-color:#fff;border:1px solid #098dcd}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{content:"";position:absolute;display:none;box-sizing:content-box}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{left:5px;top:1px;width:4px;height:8px;border:solid white;border-width:0 2px 2px 0;-webkit-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input{position:absolute;opacity:0;cursor:pointer;left:0;top:0}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark{background-color:#098dcd}.checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark:after{display:block}.line[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%], .line   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{border:1px solid #098dcd;background:transparent}.line[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after, .line   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]:after{border-color:#098dcd}.line[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark, .line   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark{background-color:transparent}.line[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark:after, .line   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark:after{display:block}.readonly[_nghost-%COMP%], .readonly   [_nghost-%COMP%]{cursor:not-allowed}.readonly[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%], .readonly   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]{pointer-events:none}.readonly[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%], .readonly   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .checkmark[_ngcontent-%COMP%]{border-color:#bdc8d4!important}.readonly[_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark, .readonly   [_nghost-%COMP%]   .checkbox-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]     input:checked~.checkmark{background:#bdc8d4!important}']});let n=r;return n})();var jc=(()=>{let r=class r{};r.\u0275fac=function(t){return new(t||r)},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E]});let n=r;return n})();var Fo={"multi-select":{selectAll:"Select All",deselectAll:"Deselect All",readOnlyNoInput:"None"}};var Bc=(()=>{let r=class r{constructor(e){e.registerLoader(t=>Promise.resolve({en:Fo}[t]||Fo))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,xt,fe,H,Sn,jc,xr,rn]});let n=r;return n})();var gn=ue(he());var lC=n=>({"show-only-icon":n});function sC(n,r){if(n&1&&(Y(0),p(1,"span",7),O(2),d(),p(3,"ui2-button",8),b(4,"span"),d(),X()),n&2){let o=c(2);s(2),R(o.menuOptionSelected.label),s(2),Kn("icon icon2-x16-",o.ascending?"ascending":"descending","")}}function cC(n,r){if(n&1&&(p(0,"span",4),h(1,sC,5,4,"ng-container",5),b(2,"span",6),d()),n&2){let o=c();l("ngClass",q(2,lC,o.showSmallIcon)),s(),l("ngIf",o.menuOptionSelected)}}function pC(n,r){if(n&1&&O(0),n&2){let o=r.$implicit;S(" ",o.label," ")}}function dC(n,r){if(n&1&&O(0),n&2){let o=r.$implicit;S(" ",o.label," ")}}var Bn=function(n){return n.SUBMENU="submenu",n.MENU="menu",n}(Bn||{}),u5=(()=>{let r=class r{constructor(e,t){this.translate=e,this.filterEventDispatcher=t,this.destroyRef=Q(ee),this.menuOptions=[],this.allMenuOptions=[],this.subMenuOptions=[],this.relevanceEnabled=!1,this.relevanceIgnored=!1,this.onSort=new y}ngOnChanges(e){e.rootFilter?.currentValue&&(this.updateDataBinding(),this.filterChanges?.unsubscribe(),this.filterChanges=this.rootFilter.onChanged(()=>{this.updateDataBinding()}))}updateDataBinding(){this.sort=this.rootFilter.getSort(),this.menuOptionSelected=this.menuOptions.find(e=>this.sort[0].by===e.uri),this.subMenuOptionSelected=this.subMenuOptions.find(e=>this.sort[0].direction===e.uri),this.ascending=this.sort&&this.sort[0]&&this.sort[0].direction===gn.IqlSortOperator.ASC,this.initSortDropdown()}ngOnInit(){this.filterEventDispatcher.onRelevanceEnabledChanged.pipe(L(this.destroyRef)).subscribe(({enabled:e,quiet:t})=>{this.relevanceEnabled=e,this.menuOptions=this.allMenuOptions.filter(i=>i.uri!=="_score"||this.relevanceEnabled),this.menuOptionSelected=this.menuOptions.find(i=>this.sort[0].by===i.uri)||this.menuOptions.find(i=>i.uri==="updatedOn"),this.relevanceEnabled&&!this.relevanceIgnored&&!t&&(this.menuOptionSelected=this.menuOptions.find(i=>i.uri==="_score")||this.menuOptionSelected),this.updateSortFilter()})}ngOnDestroy(){this.filterChanges?.unsubscribe()}selectOption(e){e.type===Bn.SUBMENU?(this.subMenuOptionSelected=e,this.ascending=e.uri===gn.IqlSortOperator.ASC):(this.menuOptionSelected?.uri==="_score"&&e.uri!=="_score"?this.relevanceIgnored=!0:e.uri==="_score"&&(this.relevanceIgnored=!1),this.subMenuOptionSelected=this.subMenuOptions.find(t=>t.uri===e.direction),this.ascending=e.direction===gn.IqlSortOperator.ASC,this.menuOptionSelected=e),this.updateSortFilter()}initSortDropdown(){let e=[this.translate.get("explorer-ng.sortList.title"),this.translate.get("explorer-ng.sortList.modifiedDate"),this.translate.get("explorer-ng.sortList.postedDate")],t=[this.translate.get("explorer-ng.sortList.ascending"),this.translate.get("explorer-ng.sortList.descending")];Ht(e).subscribe(([i,a,g])=>{this.allMenuOptions=[{uri:"label",label:i,type:Bn.MENU,direction:gn.IqlSortOperator.ASC},{uri:"updatedOn",label:a,type:Bn.MENU,direction:gn.IqlSortOperator.DESC},{uri:"createdOn",label:g,type:Bn.MENU,direction:gn.IqlSortOperator.DESC},{uri:"_score",label:"Relevance",type:Bn.MENU,direction:gn.IqlSortOperator.DESC}],this.sort.find(m=>m.by==="_score")&&(this.relevanceEnabled=!0),this.menuOptions=this.allMenuOptions.filter(m=>m.uri!=="_score"||this.relevanceEnabled),this.menuOptionSelected=this.menuOptions.find(m=>this.sort[0].by===m.uri)}),Ht(t).subscribe(([i,a])=>{this.subMenuOptions=[{uri:gn.IqlSortOperator.ASC,label:i,type:Bn.SUBMENU},{uri:gn.IqlSortOperator.DESC,label:a,type:Bn.SUBMENU}],this.subMenuOptionSelected=this.subMenuOptions.find(g=>this.sort[0].direction===g.uri)})}updateSortFilter(){this.sort=[{by:this.menuOptionSelected.uri,direction:this.subMenuOptionSelected.uri}],this.rootFilter.setSort(this.sort),this.rootFilter.triggerUpdate(),this.onSort.emit(!0)}};r.\u0275fac=function(t){return new(t||r)(x(K),x(Ui))},r.\u0275cmp=v({type:r,selectors:[["explorer-sort-list"]],inputs:{showSmallIcon:"showSmallIcon",rootFilter:"rootFilter"},outputs:{onSort:"onSort"},features:[k],decls:7,vars:4,consts:[["dropdownButton",""],["dropdownList",""],["dropdownSubMenuList",""],["eventType","click","dropPosition","bottom-end",1,"sort-list-dropdown",3,"select","data","dataSubMenu","menuModel","subMenuModel"],[3,"ngClass"],[4,"ngIf"],[1,"toggle-icon","icon2-x16-micro-chevron-m"],[1,"toggle-options","label-sm-semibold","mr-1"],[1,"toggle-icon-small","button-icon"]],template:function(t,i){if(t&1){let a=P();p(0,"ui-dropdown-list",3),_("select",function(m){return u(a),f(i.selectOption(m))}),h(1,cC,3,4,"ng-template",null,0,V)(3,pC,1,1,"ng-template",null,1,V)(5,dC,1,1,"ng-template",null,2,V),d()}t&2&&l("data",i.menuOptions)("dataSubMenu",i.subMenuOptions)("menuModel",i.menuOptionSelected)("subMenuModel",i.subMenuOptionSelected)},dependencies:[de,A,Ee,zt],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}.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}[_nghost-%COMP%]{display:block;position:relative}.sort-list-dropdown[_ngcontent-%COMP%]{cursor:pointer}.sort-list-dropdown[_ngcontent-%COMP%]:hover   .toggle-options[_ngcontent-%COMP%], .sort-list-dropdown[_ngcontent-%COMP%]:hover   .toggle-icon[_ngcontent-%COMP%]{color:#098dcd}.toggle-options[_ngcontent-%COMP%]{color:#3e4d63;position:relative;top:-1px;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.toggle-ascending[_ngcontent-%COMP%]:before{position:relative;top:1px}.toggle-icon[_ngcontent-%COMP%]{color:#627588;font-size:16px;vertical-align:middle;position:relative;top:-1px;display:inline-block}.show-full-option[_ngcontent-%COMP%]   .toggle-icon[_ngcontent-%COMP%], .show-full-option[_ngcontent-%COMP%]   .toggle-options[_ngcontent-%COMP%]{display:inline-block}.show-full-option[_ngcontent-%COMP%]   .toggle-icon-small[_ngcontent-%COMP%], .show-only-icon[_ngcontent-%COMP%]   .toggle-icon[_ngcontent-%COMP%], .show-only-icon[_ngcontent-%COMP%]   .toggle-options[_ngcontent-%COMP%]{display:none}.show-only-icon[_ngcontent-%COMP%]   .toggle-icon-small[_ngcontent-%COMP%]{display:block}.sort-list-dropdown[_ngcontent-%COMP%]     .dotted-back>.ng-star-inserted{display:flex;align-items:center}@media only screen and (min-width: 0){.toggle-icon[_ngcontent-%COMP%], .toggle-options[_ngcontent-%COMP%]{display:none}.toggle-icon-small[_ngcontent-%COMP%]{display:block}}@media only screen and (min-width: 900px){.toggle-icon[_ngcontent-%COMP%], .toggle-options[_ngcontent-%COMP%]{display:inline-block}.toggle-icon-small[_ngcontent-%COMP%]{display:none}}"]});let n=r;return n})();var Vt=ue(he());var gC=["header"],mC=["*"],zc=100,uC=500,z5=(()=>{let r=class r{set filter(e){e?this.setFilters(e):this.initDefaultFilter(!0)}constructor(e,t,i,a,g,m,w,N){this.permissionService=e,this.entityConfigService=t,this.activatedRoute=i,this.router=a,this.filterEventDispatcher=g,this.bulkActionsService=m,this.trackingService=w,this.store=N,this.destroyRef=Q(ee),this.filterChanges=new y,this.filterSidebarStateChanges=new y,this.expandContractChanges=new y,this.resetFilters=new y,this.entityTypes=[],this.entityStatuses=[],this.subs=new Mn,this.skippedFilters=new Set(["quick-text","createdByUri","updatedOn","watchers","stringFilter","status","tagCloud"]),this.defaultSortCriteria=[{by:"updatedOn",direction:Vt.IqlSortOperator.DESC}],this.updateParams=new F,this.onUpdateParamsTriggered=this.updateParams.asObservable(),this.triggerFilterChanges=new F,this.parentReference=this,this.store.select(se.selectCurrentSpaceUri).pipe(oe(),L(this.destroyRef)).subscribe(G=>{this.currentSpaceUri=G,this.checkPermissions(),this.getEntityTypes(),this.getEntityStatuses(),this.getEntityStatistics()}),this.triggerFilterChanges.pipe(L(this.destroyRef),Ue(uC)).subscribe(()=>{this.filterChanges.emit(this.rootFilter)})}ngOnInit(){this.currentView=this.getActiveRoutePath(this.activatedRoute),this.initDefaultFilter(!this.rootFilter),this.subscribeToSaveStateTrigger(),this.subscribeToUpdateParamsTrigger(),console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri).then(()=>{this.getEntityStatuses(),this.getEntityTypes(),this.getEntityStatistics()})}resetFilter(){this.resetFilters.emit()}setSort(e){this.sortCriteria=e,this.rootFilter.setSort(this.sortCriteria)}setDefaultSort(){this.setSort(this.defaultSortCriteria)}toggleSideBar(e){this.filterSidebarState=e,this.filterSidebarStateChanges.emit(this.filterSidebarState),e||this.trackingService.trackEventById("explorerTopBar.toggleFilterSidebar",{dimension8:"close"})}onExcelExport(){this.bulkActionsService.excelExport(this.rootFilter,this.activePage)}setFilters(e){this.rootFilter=e,this.quickFilter=e.getQuery("quick"),this.sidebarFilter=e.getQuery("sidebar"),this.checkAdvancedFilters(),this.triggerFilterChanges.next(),this.rootFilterChangeSubscription?.unsubscribe()}initDefaultFilter(e){let t=new Vt.LeafFilter("status").setValues(["published"]).setIdentifier("status");this.defaultSidebarFilter=this.defaultSidebarFilter||new Vt.CompoundFilter(Vt.IqlQueryOperator.OR).setIdentifier("sidebar"),this.defaultQuickFilter=this.defaultQuickFilter||new Vt.CompoundFilter(Vt.IqlQueryOperator.AND).setIdentifier("quick").addFilter(t),this.sortCriteria=this.defaultSortCriteria,e&&(this.setFilters(new Vt.CompoundFilter(Vt.IqlQueryOperator.AND).setIdentifier(D.GLOBAL_FILTERS).addFilter(this.defaultQuickFilter.clone()).addFilter(this.defaultSidebarFilter.clone())),this.setDefaultSort())}checkAdvancedFilters(){let e=!!this.quickFilter.getQueries().find(i=>!this.skippedFilters.has(i.getIdentifier())),t=!!this.sidebarFilter.getQueries().find(i=>i instanceof Vt.CompoundFilter?i.getQueries().length>1:!0);this.isAdvanceFilterApplied=e||t}saveStateToUrl(e={}){let t=this.activatedRoute.snapshot.queryParams;Object.keys(e).forEach(i=>{t[i]===e[i]&&delete e[i]}),Object.keys(e).length&&this.updateParams.next(e)}subscribeToSaveStateTrigger(){this.filterEventDispatcher.onTriggerSaveState().pipe(go(zc),L(this.destroyRef)).subscribe((e=[{}])=>{let t=e.reduce((i,a)=>ce(ce({},i),a?a.params:{}),{});this.saveStateToUrl(t)})}getEntityTypes(){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getAllElementTypesBasedOnViewPermission(this.currentSpaceUri).then(e=>{this.entityTypes=e.map(t=>ce({},t))})}getEntityStatuses(){return console.assert(!!this.currentSpaceUri,"currentSpaceUri should not be null"),this.entityConfigService.getAllFields(this.currentSpaceUri).then(e=>{let i=e.find(a=>a.uri==="status")?.propertyValues.find(a=>a.fieldTypePropertyUri.endsWith(Re.OPTIONS));this.entityStatuses=i?JSON.parse(i.value):[]})}getEntityStatistics(){return Z(this,null,function*(){yield this.getEntityTypes()})}checkPermissions(){this.checkPermissionCreateEntitySubs&&this.checkPermissionCreateEntitySubs.unsubscribe(),this.checkPermissionExcelExportSubs&&this.checkPermissionExcelExportSubs.unsubscribe(),this.checkPermissionCreateEntitySubs=this.permissionService.userHasAnyPermission([tt.CREATE_ELEMENT,tt.CREATE_DRAFT_ELEMENT]).pipe(L(this.destroyRef)).subscribe(e=>{this.hasPermissionCreateEntity=e}),this.checkPermissionExcelExportSubs=this.permissionService.userHasAnyPermission([tt.EXCEL_EXPORT]).pipe(L(this.destroyRef)).subscribe(e=>{this.hasPermissionExcelExport=e})}subscribeToUpdateParamsTrigger(){this.onUpdateParamsTriggered.pipe(go(zc),L(this.destroyRef)).subscribe(e=>{let t=this.router.getCurrentNavigation(),i=t?t.extractedUrl.toString():null,a=[];if(i){let g=new Oa().parse(i);g.queryParams={},a=[g.toString()]}this.router.navigate(a,{queryParams:e.reduce((g,m)=>ce(ce({},g),m),{}),queryParamsHandling:"merge"})})}getActiveRoutePath(e){let t=e.snapshot.routeConfig.path;for(;!t&&e.parent;)e=e.parent,t=e.snapshot.routeConfig.path;return t}};r.\u0275fac=function(t){return new(t||r)(x(wn),x(He),x(Pa),x(ii),x(Ui),x(Ci),x(pe),x(le))},r.\u0275cmp=v({type:r,selectors:[["explorer-base-filter"]],viewQuery:function(t,i){if(t&1&&Le(gC,7),t&2){let a;we(a=Se())&&(i.headerElement=a.first)}},inputs:{filter:"filter",activePage:"activePage"},outputs:{filterChanges:"filterChanges",filterSidebarStateChanges:"filterSidebarStateChanges",expandContractChanges:"expandContractChanges",resetFilters:"resetFilters"},ngContentSelectors:mC,decls:6,vars:5,consts:[["header",""],[1,"header","header-sub-open"],[1,"inner-container"],[1,"inner"],[3,"onResetFilter","expandContractChanges","parent","rootFilter","activePage","allElementTypes","allElementStatuses"]],template:function(t,i){if(t&1){let a=P();ot(),p(0,"div",1,0)(2,"div",2)(3,"div",3)(4,"filter-panel-v2",4),_("onResetFilter",function(){return u(a),f(i.resetFilter())})("expandContractChanges",function(m){return u(a),f(i.expandContractChanges.next(m))}),it(5,0,["view",""]),d()()()()}t&2&&(s(4),l("parent",i.parentReference)("rootFilter",i.rootFilter)("activePage",i.activePage)("allElementTypes",i.entityTypes)("allElementStatuses",i.entityStatuses))},dependencies:[Rs],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}.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}.header[_ngcontent-%COMP%]{background-color:#eff2f480}.header[_ngcontent-%COMP%]:not(:has(.filter-panel)){border-bottom:1px solid #eff2f4;position:relative;transition:min-height .3s ease-out}.header[_ngcontent-%COMP%]:not(:has(.filter-panel))   .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-container[_ngcontent-%COMP%]:has(.filter-panel){display:block;width:100%}.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)}.inner[_ngcontent-%COMP%]:has(.filter-panel){display:block;max-width:100%}.search-wrapper[_ngcontent-%COMP%]{margin:0 0 12px 16px}.filters[_ngcontent-%COMP%]{flex:1 1 0;display:flex;flex-wrap:nowrap;width:100vw;margin-top:10px;padding-bottom:4px}.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}"]});let n=r;return n})();var T8=(()=>{let r=class r{constructor(e){this.translateRegistry=e,this.translateRegistry.registerLoader(t=>Promise.resolve({en:Po,de:Ds}[t]||Po))}};r.\u0275fac=function(t){return new(t||r)(U(qe))},r.\u0275mod=me({type:r}),r.\u0275inj=ge({imports:[E,H,fe,Ka,yr,Cr,Xe,Bt,gi,gr,ui,za,ba,Ol,on,es,Wa,nl,xt,Pr,Fn,Sn,Xa,Bc,ye,rn,jl,Da,Ii]});let n=r;return n})();function fC(n,r){if(n&1&&(p(0,"div",14),O(1),C(2,"translate"),d()),n&2){let o=c();s(),S(" ",M(2,1,o.labelValidationErrorMessage||"explorer-modals-ng.validationError")," ")}}function _C(n,r){if(n&1){let o=P();p(0,"ui2-button",15),_("clicked",function(){u(o);let t=c();return f(t.deletePreset())}),O(1),C(2,"translate"),d()}if(n&2){let o=c();s(),R(M(2,1,o.deleteLabel||"explorer-modals-ng.deletePreset"))}}function hC(n,r){if(n&1){let o=P();p(0,"ui2-button",16),_("clicked",function(){u(o);let t=c();return f(t.close())}),O(1),C(2,"translate"),d()}n&2&&(s(),R(M(2,1,"explorer-modals-ng.cancel")))}function CC(n,r){if(n&1){let o=P();p(0,"ui2-button",17),_("clicked",function(){u(o);let t=c();return f(t.updateConfigView())}),O(1),C(2,"translate"),d()}if(n&2){let o=c();z("disabled",o.isSaveButtonDisabled),s(),S(" ",M(2,3,o.updateRadar?"explorer-modals-ng.update":"explorer-modals-ng.save"),"")}}function xC(n,r){if(n&1&&(p(0,"ui2-button",18),b(1,"ui-loader",19),p(2,"span"),O(3),C(4,"translate"),d()()),n&2){let o=c();s(3),R(M(4,1,o.updateRadar?"explorer-modals-ng.update":"explorer-modals-ng.save"))}}var L8=(()=>{let r=class r{set hasPermissionToCreatePublic(e){e?this.disabledPrivatePresetCheckbox=!1:this.disabledPrivatePresetCheckbox=!0}constructor(e,t){this.confirmService=e,this.translate=t,this.isPublicPreset=!1,this.disabledPrivatePresetCheckbox=!0,this.isSaveButtonDisabled=!1,this.deleteConfirmTitle="explorer-modals-ng.delete.title",this.deleteConfirmMessage="explorer-modals-ng.delete.description",this.onCheckBoxChange=new y,this.onSubmit=new y,this.onDelete=new y,this.closeForm=new y,this.labelChange=new y,this.loading=!1,this.validationFailed=!1,this.updateModal=!1}ngOnInit(){this.updateModal=!!this.label}setModel(e){this.validationFailed=!e,this.label=e}updateConfigView(){if(!this.loading)if(!this.label||this.label==="")this.validationFailed=!0;else{this.validationFailed=!1,this.loading=!0;let e={label:this.label,isPrivate:!this.isPublicPreset};this.onSubmit.emit(e)}}unsavedChangesExist(){return!!this.label}deletePreset(){this.hasDeletePermission&&(this.confirmService.setShowLoader(!0),this.confirmService.confirm(this.translate.instant(this.deleteConfirmTitle),this.translate.instant(this.deleteConfirmMessage),this.translate.instant("explorer-modals-ng.delete.confirm"),this.translate.instant("explorer-modals-ng.delete.cancel")).subscribe(e=>{e&&this.onDelete.emit()}))}listenCheckboxChange(e){this.onCheckBoxChange.emit(e)}closeConfirmModal(){this.confirmService.closeModal()}close(){this.closeForm.emit()}onLabelChange(){this.labelChange.emit(this.label)}};r.\u0275fac=function(t){return new(t||r)(x(ka),x(K))},r.\u0275cmp=v({type:r,selectors:[["explorer-save-preset-modal"]],inputs:{label:"label",labelTitle:"labelTitle",labelPlaceholder:"labelPlaceholder",isPublicPreset:"isPublicPreset",isPublicPresetLabel:"isPublicPresetLabel",publicPresetInfoTooltip:"publicPresetInfoTooltip",disabledPrivatePresetCheckboxTooltip:"disabledPrivatePresetCheckboxTooltip",disabledPrivatePresetCheckbox:"disabledPrivatePresetCheckbox",labelValidationErrorMessage:"labelValidationErrorMessage",isSaveButtonDisabled:"isSaveButtonDisabled",hasDeletePermission:"hasDeletePermission",hasEditPublicPresetPermission:"hasEditPublicPresetPermission",hasPermissionToCreatePublic:"hasPermissionToCreatePublic",deleteLabel:"deleteLabel",deleteConfirmTitle:"deleteConfirmTitle",deleteConfirmMessage:"deleteConfirmMessage"},outputs:{onCheckBoxChange:"onCheckBoxChange",onSubmit:"onSubmit",onDelete:"onDelete",closeForm:"closeForm",labelChange:"labelChange"},decls:23,vars:24,consts:[[1,"form-input"],[1,"form-label","label-sm-semibold-single","required"],["type","text",1,"form__input-text",3,"ngModelChange","ngModel","placeholder"],["class","mx-2 error-message label-xs-semibold px-1",4,"ngIf"],[1,"form-input","pt-1"],[3,"ui2Tooltip"],[3,"ngModelChange","ngModel"],[1,"label-sm-single"],[1,"icon2-x16-support","ml-1"],[1,"button-container","pt-4"],["class","button-semantic button-delete",3,"clicked",4,"ngIf"],["class","button-secondary mr-3",3,"clicked",4,"ngIf"],["class","button-primary",3,"disabled","clicked",4,"ngIf"],["class","button-primary button-loader",4,"ngIf"],[1,"mx-2","error-message","label-xs-semibold","px-1"],[1,"button-semantic","button-delete",3,"clicked"],[1,"button-secondary","mr-3",3,"clicked"],[1,"button-primary",3,"clicked"],[1,"button-primary","button-loader"],[1,"loader-ng-select","show-when-loading"]],template:function(t,i){t&1&&(p(0,"div")(1,"div",0)(2,"div",1),O(3),C(4,"translate"),d(),p(5,"input",2),C(6,"translate"),re("ngModelChange",function(g){return ie(i.label,g)||(i.label=g),g}),_("ngModelChange",function(){return i.onLabelChange()}),d(),h(7,fC,3,3,"div",3),d(),p(8,"div",4)(9,"span",5),C(10,"translate"),p(11,"ui2-checkbox",6),re("ngModelChange",function(g){return ie(i.isPublicPreset,g)||(i.isPublicPreset=g),g}),_("ngModelChange",function(g){return i.listenCheckboxChange(g)}),p(12,"span",7),O(13),C(14,"translate"),d()()(),p(15,"span",5),C(16,"translate"),b(17,"i",8),d()(),p(18,"div",9),h(19,_C,3,3,"ui2-button",10)(20,hC,3,3,"ui2-button",11)(21,CC,3,5,"ui2-button",12)(22,xC,5,3,"ui2-button",13),d()()),t&2&&(s(3),R(M(4,14,i.labelTitle||"explorer-modals-ng.name")),s(2),ne("ngModel",i.label),l("placeholder",M(6,16,i.labelPlaceholder||"explorer-modals-ng.namePlaceholder")),s(2),l("ngIf",i.validationFailed||i.labelValidationErrorMessage),s(2),l("ui2Tooltip",i.disabledPrivatePresetCheckbox?M(10,18,i.disabledPrivatePresetCheckboxTooltip||"explorer-modals-ng.publicPreset.disableMessage"):""),s(2),z("disabled",i.disabledPrivatePresetCheckbox),ne("ngModel",i.isPublicPreset),s(2),R(M(14,20,i.isPublicPresetLabel||"explorer-modals-ng.publicPreset.label")),s(2),l("ui2Tooltip",M(16,22,i.publicPresetInfoTooltip||"explorer-modals-ng.publicPreset.copyTooltip")),s(4),l("ngIf",i.updateModal&&i.hasDeletePermission),s(),l("ngIf",!i.loading),s(),l("ngIf",!i.loading),s(),l("ngIf",i.loading))},dependencies:[A,De,Ee,di,nn,J,te,Ie,I],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%]   .button-container[_ngcontent-%COMP%]{text-align:right}[_nghost-%COMP%]   .button-container[_ngcontent-%COMP%]   .button-delete[_ngcontent-%COMP%]{float:left}[_nghost-%COMP%]   .form-label[_ngcontent-%COMP%]{color:#3e4d63;margin-bottom:8px}[_nghost-%COMP%]   .icon2-x16-support[_ngcontent-%COMP%]{color:#bdc8d4;font-size:16px;cursor:default}"]});let n=r;return n})();export{ro as a,Oi as b,ul as c,fl as d,Rc as e,Dc as f,xl as g,OC as h,rl as i,PC as j,Tr as k,NC as l,Mx as m,$c as n,Yc as o,Xc as p,Jc as q,Kc as r,Zc as s,Ox as t,Px as u,ep as v,tp as w,bx as x,yx as y,ol as z,zi as A,io as B,sl as C,cl as D,FM as E,AM as F,hl as G,Gi as H,Ol as I,Ir as J,Xt as K,Fp as L,RE as M,VE as N,Vs as O,Us as P,Ar as Q,js as R,Bs as S,Hs as T,Qs as U,Js as V,Ks as W,Hn as X,bl as Y,Zs as Z,rc as _,oc as $,ac as aa,sc as ba,pc as ca,mc as da,uc as ea,_c as fa,hc as ga,xc as ha,Mc as ia,Oc as ja,Io as ka,Be as la,yl as ma,jp as na,g1 as oa,dn as pa,Dn as qa,Vn as ra,LD as sa,JD as ta,Ec as ua,kc as va,Fc as wa,PU as xa,$U as ya,Uc as za,Ac as Aa,I6 as Ba,Z6 as Ca,S1 as Da,T1 as Ea,E1 as Fa,Gp as Ga,I1 as Ha,k1 as Ia,wl as Ja,Fr as Ka,Dl as La,Rr as Ma,go as Na,Ui as Oa,bi as Pa,ki as Qa,_v as Ra,es as Sa,oC as Ta,jc as Ua,Bc as Va,Dr as Wa,jl as Xa,zl as Ya,pg as Za,dg as _a,gg as $a,as as ab,Fi as bb,Es as cb,Rs as db,u5 as eb,z5 as fb,T8 as gb,L8 as hb};
