PageSourceSearch

https://icforum.swiss/chunk-LF3ALSUW.js

js icforum.swiss collected 2026-09-28 11:16:07 UTC 567,308 bytes, 1 lines download raw bytes

1import{a as to}from"./chunk-KTPKW4XG.js";import{D as ar,j as Dl,pa as Ll}from"./chunk-I7VEAM4V.js";import{a as Ki,b as ni,c as Fl,d as Ul,e as Gl,f as Hl,g as jl,h as Yl,k as Wl}from"./chunk-XKYGILU4.js";import{e as Pl}from"./chunk-DHLFCAHB.js";import{a as ta}from"./chunk-W2QV3FTD.js";import{c as sr,d as wt}from"./chunk-ZMM4Q62U.js";import{a as Ml,b as zl,e as kl}from"./chunk-ZJVNVFA2.js";import{a as Vl}from"./chunk-2HDCEWSZ.js";import{Ea as Il,Va as Ve,Wa as De}from"./chunk-BQUK3EQE.js";import{a as ia,e as Gt,l as na,n as oa}from"./chunk-IHC2A25W.js";import{$d as Tn,$e as Pa,$f as nr,Ae as Sa,Af as Ga,Ah as ll,Bf as Ln,Bh as Qn,Cf as An,Ch as Kn,Dc as ra,De as wa,Df as qo,Ee as Oa,Ef as Nn,Eh as cl,Ei as bl,Fd as Ht,Fe as ya,Ff as Zo,Fh as qn,Gb as Ti,Gf as Ha,Gg as ol,Gj as Nl,Hb as Ze,Hd as ma,Hf as ja,Hh as $t,Ia as Ys,Ib as Se,If as Ya,Ih as Qt,Ij as Rl,Ja as Wi,Jb as bi,Jd as _a,Je as In,Jf as Wa,Ke as dt,Kf as Rn,Kh as pl,Lb as yn,Lf as Bn,Lh as ul,Li as St,Ma as Ft,Me as Ta,Mf as Fn,Mh as mt,Mj as Bl,Ne as ba,Nf as Un,Nh as zi,Oc as sa,Of as Gn,Oh as hl,Pa as Ws,Pe as Ia,Pf as $a,Qa as fn,Qf as Qa,Ra as $s,Rf as Ka,Se as xa,Sf as qa,Ta as Qs,Tf as Jo,Ua as Ks,Ue as Yt,Uf as Xo,Vf as er,Vi as xl,Wf as tr,Wh as gl,Xe as Ea,Xf as ir,Yf as Za,Zd as ua,Ze as xn,Zf as Hn,_d as Wo,_f as Ja,af as Ei,ag as vt,aj as He,bg as jn,bh as Ae,cf as En,cg as Yn,ci as ue,cj as El,df as Pn,dg as or,ef as Mn,eg as rr,ff as Ma,fg as Xa,fi as fl,gd as aa,ge as Ii,gf as za,gg as el,gi as ki,he as ha,hf as ka,hi as Cl,if as oe,ii as vl,jd as la,je as ga,jf as Va,jg as it,jh as Mi,ji as Jn,ka as gn,kb as Si,ke as jt,kf as zn,ki as Sl,le as bn,lf as kn,li as wl,mb as gt,md as ca,me as Ct,mf as Da,mi as Ol,nb as Zs,nd as pa,ne as fa,nf as La,ng as tl,nh as rl,ni as Qi,ob as ft,oe as Ca,of as Aa,pb as Js,pf as Pi,pg as il,ph as sl,pi as Ge,qb as Ut,qe as pt,qf as Na,rd as da,rf as Ra,ri as yl,sf as $i,sj as Xn,te as $o,tf as Vn,th as Wn,uf as Ba,vf as Qo,vi as Tl,wf as Fa,wh as al,x as ms,xf as Dn,xg as nl,xh as Wt,y as _s,ye as va,yf as Ko,yj as Al,za as jo,zf as Ua,zj as eo}from"./chunk-6Y6SJRNX.js";import{N as is}from"./chunk-OYOXAY44.js";import{G as ds,H as Ci,I as Fe,J as qs,Q as Ue,W as xi,Y as Je,d as ts,r as ci,s as kt}from"./chunk-STDQTB2J.js";import{f as sn,k as Vt}from"./chunk-IO44HIO6.js";import{G as Rs,H as Bs,P as ct,Q as Fs,R as _n,T as qe,U as Us,ba as un,ca as Gs,da as ht,ja as Hs,k as us,l as hs,ma as hn,pa as js,u as mn,wa as Yo,x as As,z as Ns}from"./chunk-HOJB2KOO.js";import{Ac as Ls,D as q,Db as gi,Eb as Is,F as gs,Fb as xs,G as fs,Gb as Es,H as ui,I as Lt,J as At,K as Cs,Tb as Ps,ab as Os,e as V,ea as vs,f as F,g as pi,ga as Nt,ha as hi,ib as ys,ic as Ms,jb as lt,jc as zs,ka as dn,kb as Rt,kc as Bt,la as Ss,m as Dt,ma as ws,mb as Ts,n as Ho,nc as Yi,oc as ks,pb as Be,rb as bs,tc as Vs,uc as Ds,xc as fi}from"./chunk-OLMDJNX5.js";import{a as an,c as te}from"./chunk-FDN33MRG.js";import{a as $n}from"./chunk-WO4VHQRF.js";import{a as Zn,o as dl,q as ml,s as _l}from"./chunk-VMDE2SQU.js";import{b as ze,c as H,d as L,e as vi}from"./chunk-GEDR3PBK.js";import{e as Ie,g as ke}from"./chunk-A26PE6T6.js";import{c as wi,d as Cn,e as Oi,f as vn,g as Sn,h as Xs,i as wn,j as On,m as ea,v as yi}from"./chunk-LNAR5CK6.js";import{k as X,l as es,m as Qe,n as k,r as rn,t as ce,y as li}from"./chunk-F45KP72J.js";import{$a as _e,$c as le,A as ot,Ac as Qr,Bc as Kr,Cc as c,Cd as Xr,Db as rt,Dc as a,Dd as f,Ea as ye,Eb as Ui,Ec as l,Ed as v,Fa as Pt,Fb as et,Fc as S,Fd as j,Gd as Hi,Ha as Fo,I as Ao,Ia as Te,Id as R,Ja as b,Jc as nn,K as Xe,Kb as tn,Kc as on,L as xe,Lb as p,Lc as qr,Ld as re,Mc as O,N as No,Pa as m,Qa as _,Qd as de,S as Nr,Sc as h,Ta as Bi,Ua as Fi,V as ri,Va as en,Vc as d,Wb as jr,Xa as E,Xb as M,Y as Ri,Ya as Ye,Yb as Yr,Zc as ve,_ as Rr,_c as ae,ac as Wr,ad as x,bd as _t,c as Ai,cb as Ce,cc as P,cd as G,d as Do,db as Hr,dc as Mt,e as Vr,ec as Xt,ed as tt,fd as C,ga as Br,gb as be,gc as st,gd as N,hc as y,hd as z,id as si,j as Dr,jb as Jt,jd as Gi,ld as Q,md as K,nd as Z,od as at,pa as Fr,pd as Ee,q as Lo,qa as Ur,r as It,ra as Ro,rd as Zr,s as Lr,sa as Bo,sd as zt,t as Ar,ua as Et,ud as ge,v as xt,vd as T,w as Ni,wa as Gr,wc as J,wd as Ne,xc as ei,xd as ai,yc as ti,z as U,zc as $r,zd as Jr}from"./chunk-Z5YOIIAC.js";import{Q as ss,a as Ke,b as ln,ba as Uo,c as di,d as ns,e as mi,f as ut,fa as we,g as cn,ga as as,h as ii,ha as ls,j as pn,k as os,ka as cs,l as Re,la as ps,na as _i,o as fe,p as rs,pa as Go,r as ji}from"./chunk-Y5HJX4PP.js";import{a as W,b as kr,j as $e,l as r,t as B}from"./chunk-ATLPHYUF.js";var $l=(()=>{let s=class s{constructor(e,t){r(this,"_hotkeyService");r(this,"_hotkeysService");r(this,"hotkeys");r(this,"timeout");this._hotkeyService=e,this._hotkeysService=t}ngOnInit(){for(let e in this.hotkeys){let t=this._hotkeyService.getComboByCommand(e);if(t){let n=new Ml(t.combo,this.hotkeys[e]);this._hotkeysService.add(n)}}}ngOnDestroy(){for(let e in this.hotkeys){let t=this._hotkeyService.getComboByCommand(e),n=this._hotkeysService.hotkeys.find(u=>u.combo===t.combo);n&&this._hotkeysService.remove(n)}this.timeout&&clearTimeout(this.timeout)}};r(s,"\u0275fac",function(t){return new(t||s)(M(kl),M(zl))}),r(s,"\u0275dir",Xt({type:s,selectors:[["","hzHotkeys",""]],inputs:{hotkeys:"hotkeys"},standalone:!1}));let o=s;return o}
1)();var Lp="itemOptions",me=pi(Lp),Ql=F(me,o=>o),Kl=F(me,o=>o.layoutSettings),s1=F(me,o=>o.layoutSettings.showLiveMode),ql=F(me,o=>o.defaultsSettings),Zl=F(me,o=>o.notificationSettings),Jl=F(me,o=>o.rolesSettings),a1=F(me,o=>{let s=o.externalLoginSettings;return s?Object.values(s).some(i=>i):!1}),Xl=F(me,o=>{var s;return(s=o.hazuLoginSettings.enableHazuLogin)!=null?s:!0}),ec=F(me,o=>o.searchSettings),tc=F(me,o=>{var s,i;return(i=(s=o.externalLoginSettings)==null?void 0:s.enableMicrosoft)!=null?i:!1}),ic=F(me,o=>{var s,i;return(i=(s=o.externalLoginSettings)==null?void 0:s.enableEdulog)!=null?i:!1}),Ot=F(me,o=>o.formSettings),l1=F(Ot,o=>o.posthookURL),c1=F(Ot,o=>o.targetHazuId),p1=F(Ot,o=>{var s;return(s=o.textPosition)!=null?s:"below"}),d1=F(Ot,o=>{var s;return(s=o.responseTitleFormat)!=null?s:ut.FirstField}),m1=F(Ot,o=>{var s;return(s=o.isActivated)!=null?s:!1}),_1=F(Ot,o=>{var s;return(s=o.submitterRole)!=null?s:""}),u1=F(Ot,o=>{var s;return(s=o.redirectOption)!=null?s:ii.RedirectToResponse}),nc=F(me,o=>o.tableSettings),oc=F(me,o=>o.boardsSettings),rc=F(me,o=>o.geoViewSettings),sc=F(me,o=>o.videoSettings),ac=F(me,o=>o.calendarSettings),lc=F(me,o=>o.cookieConsentSettings),io=F(me,o=>o.dateSettings),cc=F(me,o=>o.isDirty);var Oo=$e(Ke());var pc=F(ht,Be,qe,(o,s,i)=>{var I,D,Y,ne,se,Oe;if(o)return!0;let e=s==null?void 0:s.snapshot;if(!e)return!1;let t=(D=(I=e.event)==null?void 0:I.rolesSettings)!=null?D:_i;if(!t)return!1;let n=i!=null?i:Re.Everybody,u=(ne=(Y=t.edit)==null?void 0:Y.item)!=null?ne:_i.edit.item,g=(Oe=(se=t.edit)==null?void 0:se.hazu)!=null?Oe:_i.edit.hazu,w=fe[u]<fe[g]?u:g;return fe[w]<=fe[n]});var Fp=["editorComponentRef"],no=o=>({"font-family":o});function Up(o,s){if(o&1&&qr(0,5,1),o&2){let i=d(2);c("ngComponentOutlet",i.editorComponent)("ngComponentOutletInjector",i.editorInjector)}}function Gp(o,s){var i,e;if(o&1&&(a(0,"div",3),y(1,Up,2,2,"ng-container",4),l()),o&2){let t=d();c("ngStyle",t.isTitle?T(2,no,(i=t.customUserContentTitleFontFamily())!=null?i:"inherit"):T(4,no,(e=t.customUserContentFontFamily())!=null?e:"inherit")),p(),c("ngIf",t.editorLoaded&&t.editorComponent)}}function Hp(o,s){var i,e;if(o&1&&(S(0,"div",6),f(1,"filterLanguages"),f(2,"safeHtml")),o&2){let t=d();c("hzWidget",t.item==null?null:t.item.id)("hzSignatureContext",t.item==null?null:t.item.id)("innerHTML",v(2,7,v(1,5,t.localContent)),rt)("item",t.item)("ngStyle",t.isTitle?T(9,no,(i=t.customUserContentTitleFontFamily())!=null?i:"inherit"):T(11,no,(e=t.customUserContentFontFamily())!=null?e:"inherit"))}}var Vi=(()=>{let s=class s{constructor(){r(this,"content","");r(this,"placeholder","");r(this,"isEditMode",!1);r(this,"isReadonly",!1);r(this,"newItemMode",!1);r(this,"toolbarContainerId","editorToolbarId");r(this,"multiLine",!0);r(this,"preventPressButton",!1);r(this,"toolbarButtons",Al);r(this,"item");r(this,"isTitle",!0);r(this,"isBaseItem",!1);r(this,"baseItem");r(this,"contentChanged",new E);r(this,"editTitleOrDescription",new E);r(this,"editorInitialized",new E);r(this,"enterClick",new E);r(this,"escPress",new E);r(this,"tabKeyPressed",new E);r(this,"saveAndKeepOpen",new E);r(this,"linkClick",new E);r(this,"editorComponentRef");r(this,"editorComponent");r(this,"editorComponentInstance");r(this,"injector",b(Bi));r(this,"cdRef",b(de));r(this,"store",b(V));r(this,"el",b(Jt));r(this,"routerService",b(pt));r(this,"editorService",b(wt));r(this,"contentSanitizer",b(Fl));r(this,"mermaidService",b(rl));r(this,"bpmnService",b($n));r(this,"editorInjector");r(this,"shouldShowEditorSignal",te(this.store.select(pc),{initialValue:!1}));r(this,"shouldShowEditor",re(()=>this.newItemMode?!0:this.shouldShowEditorSignal()));r(this,"customUserContentFontFamily",te(this.store.select(xs)));r(this,"customUserContentTitleFontFamily",te(this.store.select(Es)));r(this,"editorServiceSubs",[]);r(this,"editorLoaded",!1);r(this,"localContent","");r(this,"isEditorInitialized",!1);this.editorInjector=Bi.create({providers:[{provide:wt,useClass:wt,deps:[]}],parent:this.injector}),this.editorService.setMermaidService(this.mermaidService),Ce(()=>{let e=this.customUserContentFontFamily();if(!e)return;let t=document.head.querySelector('link[href*="'.concat(e,'"]'));if(ni.some(n=>n.label===e)&&!t){this.lazyLoadFont(e);let n=ni.find(u=>u.label===e);n&&Ki.push({label:n.label,value:n.value,froalaKey:n.froalaKey})}}),Ce(()=>{let e=this.customUserContentTitleFontFamily();if(!e)return;let t=document.head.querySelector('link[href*="'.concat(e,'"]'));ni.some(n=>n.label===e)&&!t&&this.lazyLoadFont(e)}
1)}ngOnChanges(e){return B(this,null,function*(){let t=this.editorInjector.get(wt);if(this.shouldShowEditor()||this.newItemMode){if(!this.editorLoaded){let{["EditorModule"]:n}=yield import("./chunk-LBEMO6GQ.js"),{["EditorComponent"]:u}=yield import("./chunk-7NXXM4UV.js");Wr(n,this.injector),this.editorComponent=u,this.editorLoaded=!0,this.cdRef.markForCheck(),this.editorServiceSubs.push(t.contentChanged.subscribe(g=>{this.contentChanged.emit(g)})),this.editorServiceSubs.push(t.linkClick.subscribe(g=>{this.linkClick.emit(g)})),this.editorServiceSubs.push(t.editTitleOrDescription.subscribe(g=>{this.editTitleOrDescription.emit(g)})),this.editorServiceSubs.push(t.tabKeyPressed.subscribe(g=>{this.tabKeyPressed.emit(g)})),this.editorServiceSubs.push(t.editorInitialized.subscribe(g=>{this.editorInitialized.emit(g),this.isEditorInitialized=g})),this.editorServiceSubs.push(t.enterClick.subscribe(g=>{this.enterClick.emit(g)})),this.editorServiceSubs.push(t.escPress.subscribe(g=>{this.escPress.emit(g)})),this.editorServiceSubs.push(t.saveAndKeepOpen.subscribe(g=>{this.saveAndKeepOpen.emit(g)})),t.setComponentInputs({item:this.item,placeholder:this.placeholder,isEditMode:this.isEditMode,isReadonly:this.isReadonly,toolbarContainerId:this.toolbarContainerId,multiLine:this.multiLine,preventPressButton:this.preventPressButton,toolbarButtons:this.toolbarButtons,isTitle:this.isTitle,baseItem:this.baseItem,isBaseItem:this.isBaseItem,content:this.getSanitizedContent(this.content)})}t.setComponentInputs(Object.assign({},...Object.keys(e).map(n=>({[n]:this[n]})))),e.content&&!this.isEditMode&&e.content.currentValue&&setTimeout(()=>{this.bpmnService.initBpmn(150)},100)}else this.item&&this.routerService.router?(this.localContent=t.convertIframeToAbsolutePath(this.content,this.item,this.routerService.router.urlSegments),this.localContent=yield t.scaleAreaCoordinates(this.localContent,this.el.nativeElement),this.localContent=this.getSanitizedContent(this.localContent),this.cdRef.markForCheck()):this.localContent=this.getSanitizedContent(this.content)})}getSanitizedContent(e){return this.contentSanitizer.sanitize(e)}handleClick(e){var g;if(this.isEditorInitialized)return;let t=this.editorService.getParentElementWithLink(e.target);t&&this.item&&(this.linkClick.emit(t),this.editorService.clickedOnElementWithLink(e,t,this.item));let n=e.target;if((n==null?void 0:n.nodeName)===sr.IMG&&this.editorService.openImageGallery(n,this.content),(n==null?void 0:n.nodeName)===sr.INPUT&&(n.type==="checkbox"||n.type==="radio")){if(n.closest("form")){e.stopPropagation();return}let w=n;if(w.type==="radio"&&w.name){let I=this.el.nativeElement.querySelector(".fr-view");if(I){let D=I.querySelectorAll('input[type="radio"][name="'.concat(w.name,'"]'));Array.from(D).forEach(Y=>{let ne=Y;ne!==w&&(ne.removeAttribute("checked"),ne.checked=!1)})}}if(w.checked?w.setAttribute("checked","true"):w.removeAttribute("checked"),this.item){let I=this.isTitle?this.item.title:this.item.text,D=this.applyCheckboxStateToContent(I,this.el.nativeElement.querySelector(".fr-view"));this.localContent=D,this.content=D;let Y=this.item.clone();this.isTitle?Y.title=D:Y.text=D,this.store.dispatch(ra(Y)),this.cdRef.markForCheck()}e.stopPropagation();return}if((n==null?void 0:n.nodeName)==="MODEL-VIEWER"||n!=null&&n.closest("model-viewer")){e.stopPropagation();return}n!=null&&n.closest("form")&&((n==null?void 0:n.nodeName)==="INPUT"||(n==null?void 0:n.nodeName)==="TEXTAREA"||(n==null?void 0:n.nodeName)==="SELECT")||n!=null&&n.shadowRoot||(g=getSelection())!=null&&g.toString().trim()||va.savePosition(".fr-view",e)}lazyLoadFont(e){let t=ni.find(n=>n.label===e);if(t){let n=document.createElement("link");n.href=t.src,n.rel="stylesheet",document.head.appendChild(n)}}ngOnDestroy(){this.editorServiceSubs.forEach(e=>{e.unsubscribe()})}applyCheckboxStateToContent(e,t){var I;if(!t||!e)return(I=t==null?void 0:t.innerHTML)!=null?I:e;let u=new DOMParser().parseFromString(e,"text/html"),g=u.querySelectorAll('input[type="checkbox"], input[type="radio"]'),w=t.querySelectorAll('input[type="checkbox"], input[type="radio"]');return g.length!==w.length?t.innerHTML:(g.forEach((D,Y)=>{w[Y].checked?D.setAttribute("checked","true"):D.removeAttribute("checked")}),u.body.innerHTML)}focus(){var e;if(this.isEditorInitialized&&this.editorComponent){let t=this.el.nativeElement.querySelector(".fr-element");
1if(t){t.focus({preventScroll:!0});return}if(this.el.nativeElement.focus(),(e=this.editorComponentRef)!=null&&e.editor)try{this.editorComponentRef.editor.focus()}catch(n){console.error("Error calling Froala editor focus:",n)}}}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-container-editor"]],viewQuery:function(t,n){if(t&1&&ve(Fp,5),t&2){let u;ae(u=le())&&(n.editorComponentRef=u.first)}},hostBindings:function(t,n){t&1&&h("click",function(g){return n.handleClick(g)})},inputs:{content:"content",placeholder:"placeholder",isEditMode:"isEditMode",isReadonly:"isReadonly",newItemMode:"newItemMode",toolbarContainerId:"toolbarContainerId",multiLine:"multiLine",preventPressButton:"preventPressButton",toolbarButtons:"toolbarButtons",item:"item",isTitle:"isTitle",isBaseItem:"isBaseItem",baseItem:"baseItem"},outputs:{contentChanged:"contentChanged",editTitleOrDescription:"editTitleOrDescription",editorInitialized:"editorInitialized",enterClick:"enterClick",escPress:"escPress",tabKeyPressed:"tabKeyPressed",saveAndKeepOpen:"saveAndKeepOpen",linkClick:"linkClick"},standalone:!1,features:[be],decls:3,vars:2,consts:[["reader",""],["editorComponentRef",""],[3,"ngStyle",4,"ngIf","ngIfElse"],[3,"ngStyle"],[3,"ngComponentOutlet","ngComponentOutletInjector",4,"ngIf"],[3,"ngComponentOutlet","ngComponentOutletInjector"],["hzEditable","","hzTitle","","hzLegacyLinkCard","","hzEditorDropdown","","hzForm","","hzLinkTracker","","hzMermaid","","hzModelViewer","","hzP5","",1,"fr-view",3,"hzWidget","hzSignatureContext","innerHTML","item","ngStyle"]],template:function(t,n){if(t&1&&y(0,Gp,2,6,"div",2)(1,Hp,3,13,"ng-template",null,0,R),t&2){let u=x(2);c("ngIf",n.shouldShowEditor()||n.newItemMode)("ngIfElse",u)}},dependencies:[es,k,rn,Wn,Qn,Kn,qn,cl,Ul,Gl,Hl,jl,Yl,Wl,ba,Je],styles:['.isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]     .fr-box .second-toolbar{border:none;margin-top:.3rem;position:absolute;right:0}[_nghost-%COMP%]     .fr-box .fr-wrapper{background-color:transparent!important;border:none;min-width:10em}[_nghost-%COMP%]     .fr-box .fr-wrapper .fr-element{background:0 0;font-family:inherit;min-height:0!important;padding:0!important;position:relative;z-index:2}[_nghost-%COMP%]     .fr-box .fr-wrapper .fr-element table td.fr-selected-cell{border:1px double #1e88e5}[_nghost-%COMP%]     .fr-box .fr-wrapper .fr-element:focus{outline:0 
1solid transparent!important}[_nghost-%COMP%]     .fr-box .fr-wrapper .fr-placeholder{font-weight:400;width:max-content}[_nghost-%COMP%]     .fr-second-toolbar{display:none}[_nghost-%COMP%]     iframe.fr-rounded{background-clip:padding-box;border-radius:10px}[_nghost-%COMP%]     iframe.fr-dib{display:block;float:none;margin:5px auto;vertical-align:top}[_nghost-%COMP%]     iframe.fr-bordered{border:solid 5px #ccc}[_nghost-%COMP%]     .fr-view ul, [_nghost-%COMP%]     .fr-view ol{list-style-position:outside}[_nghost-%COMP%]     .fr-view img:not(.hide-in-gallery){cursor:pointer}[_nghost-%COMP%]{-webkit-user-select:auto;user-select:auto}[_nghost-%COMP%]     .dropdown .menu{z-index:300}[_nghost-%COMP%]     .dropdown.opened{z-index:350}[_nghost-%COMP%]   [_ngcontent-%COMP%]:after{clear:both;content:"";display:table;visibility:hidden}[_nghost-%COMP%]     .fr-view{line-height:1.8em;outline:none}[_nghost-%COMP%]     .fr-view .ui.form:not(.submitted) .field input:invalid, [_nghost-%COMP%]     .fr-view .ui.form:not(.submitted) .field textarea:invalid, [_nghost-%COMP%]     .fr-view .ui.form:not(.submitted) .field select:invalid{color:inherit!important;background:#fff!important;border-color:#22242626!important;box-shadow:none!important}@container sidebar (max-width: 767px){[_nghost-%COMP%]     .fr-view .ui.simple.dropdown:hover>.menu{height:0;opacity:0;overflow:hidden;top:-9999px!important;width:0}[_nghost-%COMP%]     .fr-view .ui.simple.opened.dropdown>.menu{height:auto;opacity:1;overflow:visible;top:100%!important;width:auto}}@media only screen and (max-width:767px){[_nghost-%COMP%]     .fr-view .ui.simple.dropdown:hover>.menu{height:0;opacity:0;overflow:hidden;top:-9999px!important;width:0}[_nghost-%COMP%]     .fr-view .ui.simple.opened.dropdown>.menu{height:auto;opacity:1;overflow:visible;top:100%!important;width:auto}}[_nghost-%COMP%]     .fr-view .ui.button{margin-bottom:.5em;-webkit-user-select:auto;user-select:auto}[_nghost-%COMP%]     .fr-view i[class]{line-height:initial}[_nghost-%COMP%]     .fr-wrapper ::selection{background:#ffd8d8}[_nghost-%COMP%]     .isTitle:not(.fr-code-view) .fr-view, [_nghost-%COMP%]     .fr-view.isTitle{display:flex;flex-direction:column;justify-content:center}[_nghost-%COMP%]     .fr-view:not(.canEdit){-webkit-user-select:auto;user-select:auto}[_nghost-%COMP%]:not(.newItemMode)     .fr-view.canEdit:hover{background-color:#eeeeef;cursor:text}[_nghost-%COMP%]     .fr-view img{padding:0}[_nghost-%COMP%]     .fr-view figure{margin:0;width:100%}[_nghost-%COMP%]     .fr-view figure img{margin-left:0;margin-right:0;vertical-align:baseline}[_nghost-%COMP%]     [data-text]:empty:before{color:silver;content:attr(data-text);font-weight:400}@media print{[_nghost-%COMP%]     [data-text]:empty:before{display:none}}[_nghost-%COMP%]     .fr-view table{margin-bottom:10px!important}[_nghost-%COMP%]     .fr-view table.fr-hz-no-borders{border:none}[_nghost-%COMP%]     .fr-view table.fr-hz-no-borders td, [_nghost-%COMP%]     .fr-view table.fr-hz-no-borders th{border-style:hidden}[_nghost-%COMP%]     .fr-view table td.fr-thick, [_nghost-%COMP%]     .fr-view table th.fr-thick{border-width:2px!important}[_nghost-%COMP%]     .fr-view table td.fr-black, [_nghost-%COMP%]     .fr-view table th.fr-black{border:1px double black}[_nghost-%COMP%]     .fr-view table td.fr-highlighted, [_nghost-%COMP%]     .fr-view table th.fr-highlighted{border:1px double red}[_nghost-%COMP%]     .fr-view .fr-selection-handle-hover{outline:none!important}[_nghost-%COMP%]     .fr-selection-handle{display:none!important}[_nghost-%COMP%]     .fr-view table{position:relative;z-index:0}[_nghost-%COMP%]     .fr-view table tbody{position:relative}[_nghost-%COMP%]     .fr-view table td, [_nghost-%COMP%]     .fr-view table th{position:relative;overflow:visible;height:auto!important;min-height:3em}[_nghost-%COMP%]     .fr-view table td:has(img), [_nghost-%COMP%]     .fr-view table th:has(img){height:auto!important;min-height:auto;vertical-align:top}[_nghost-%COMP%]     .fr-view table td a, [_nghost-%COMP%]     .fr-view table th a{position:relative;z-index:100;display:inline-block}[_nghost-%COMP%]     .fr-view table td img.meta-image, [_nghost-%COMP%]     .fr-view table td img, [_nghost-%COMP%]     .fr-view table th img.meta-image, [_nghost-%COMP%]     .fr-view table th img{position:relative;z-index:100;display:block;max-width:100%;height:auto;vertical-align:top;object-fit:contain}[_nghost-%COMP%]     .fr-shadow{box-shadow:0 5px 10px #00000087!important}@media only screen and (max-width:700px){[_nghost-%COMP%]     .fr-view :not(.hz-artifact-body)>iframe{height:200px}}'],changeDetection:0}));let o=s;return o}
1)();var dc=(()=>{let s=class s{constructor(){r(this,"toolbarId")}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-editor-toolbar"]],inputs:{toolbarId:"toolbarId"},standalone:!1,decls:1,vars:2,consts:[[3,"click","id"]],template:function(t,n){t&1&&(a(0,"div",0),h("click",function(g){return g.stopPropagation()}),l()),t&2&&c("id",at(n.toolbarId))},styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{background-color:transparent!important;border:none!important;box-shadow:none!important;height:auto}[_nghost-%COMP%]   div[_ngcontent-%COMP%]{display:flex;max-width:100%}[_nghost-%COMP%]     .fr-toolbar{align-items:normal!important;align-self:center;border:none!important}@container sidebar (max-width: 1200px){[_nghost-%COMP%]     .fr-toolbar .fr-btn-grp{margin:0 7px}}@media only screen and (max-width:1200px){[_nghost-%COMP%]     .fr-toolbar .fr-btn-grp{margin:0 7px}}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar{align-items:center;background-color:transparent!important;box-shadow:none!important;display:flex;flex-wrap:wrap;height:auto;max-width:100%;position:inherit;transition:none}[_nghost-%COMP%]     .fr-toolbar .fr-btn-grp>button{height:33px}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar{align-items:center;background-color:transparent!important;box-shadow:none!important;display:flex;flex-wrap:wrap;height:auto;max-width:100%;position:inherit;transition:none}[_nghost-%COMP%]     .fr-toolbar .fr-btn-grp>button{height:33px}}[_nghost-%COMP%]     .fr-toolbar .fr-command.hidden{display:none}[_nghost-%COMP%]     .fr-toolbar button.fr-disabled{opacity:1!important}[_nghost-%COMP%]     .fr-toolbar button.fr-disabled svg{opacity:.3!important}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar.fr-toolbar-open{padding-bottom:0!important}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar.fr-toolbar-open{padding-bottom:0!important}}[_nghost-%COMP%]     .fr-toolbar .fr-newline{background:#fff}[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn.fr-open{margin-top:4px}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn.fr-open{margin-top:0}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn.fr-open{margin-top:0}}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar{background-color:transparent;transition:none}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar{background-color:transparent;transition:none}}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded{bottom:0;height:40px!important;position:absolute!important;top:57px}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded{bottom:0;height:40px!important;position:absolute!important;top:57px}}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-command.fr-btn{border-radius:0}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-command.fr-btn{height:40px}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-command.fr-btn.fr-dropdown:after{top:20px}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-command.fr-btn{height:40px}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-command.fr-btn.fr-dropdown:after{top:20px}}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-btn-wrap .fr-command.fr-btn{height:39px}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar.fr-expanded .fr-btn-wrap .fr-command.fr-btn{height:39px}}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap{background-color:#fff;border-bottom:1px solid rgba(34,36,38,.15);border-left:1px solid rgba(34,36,38,.15)}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap{background-color:#fff;border-bottom:1px solid rgba(34,36,38,.15);border-left:1px solid rgba(34,36,38,.15)}}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap>button{background-clip:border-box;background-color:#fff;border-radius:0;margin:0!important;padding-left:5px;padding-right:5px;transition:none}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button:last-child, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap>button:last-child{border-right:1px solid rgba(34,36,38,.15)}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button:after, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap>button:after{transition:none!important}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap>button{background-clip:border-box;background-color:#fff;border-radius:0;margin:0!important;padding-left:5px;padding-right:5px;transition:none}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button:last-child, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap>button:last-child{border-right:1px solid rgba(34,36,38,.15)}[_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>button:after, [_nghost-%COMP%]     .fr-toolbar .fr-more-toolbar>.fr-btn-wrap>button:after{transition:none!important}}[_nghost-%COMP%]     .fr-toolbar .fr-colors-buttons{min-width:16em}@container sidebar (min-width: 768px){[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn{height:55px;border-radius:unset;margin-bottom:0;margin-top:0}[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn.fr-dropdown:after{top:27.5px}}@media only screen and (min-width:768px){[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn{height:55px;border-radius:unset;margin-bottom:0;margin-top:0}[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn.fr-dropdown:after{top:27.5px}}[_nghost-%COMP%]     .fr-toolbar .fr-command.fr-btn i{margin-bottom:8px;margin-top:8px}[_nghost-%COMP%]     .fr-toolbar .fr-separator{height:40px}"],changeDetection:0}));let o=s;return o}
1)();var Di=(()=>{let s=class s{constructor(e,t){r(this,"dataService");r(this,"store");this.dataService=e,this.store=t}vote(e,t){this.store.dispatch(Tl(e.key,t,e))}loadVote(e){this.store.dispatch(yl(e))}saveVote(e,t,n){if(e&&e.key){let u=this.dataService.batchUpdate(),g=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],w={formatDate:"".concat(n.date.getDate()," ").concat(g[n.date.getMonth()]," \n        ").concat(("0"+String(n.date.getHours())).slice(-2),":").concat(("0"+String(n.date.getMinutes())).slice(-2),":").concat(("0"+String(n.date.getSeconds())).slice(-2)),comparisonValue:n.date.getTime()},I=n.value==="novote"?0:Number(n.value),D=(t.currentUserVote==="novote"?0:Number(t.currentUserVote))||0;return t.totalScore=t.totalScore||0,u.partItemUpdate(e,"interaction.totalScore",t.totalScore-D+I),u.addVote(e.id,n.userId,n.value,w),u.save()}else return Promise.reject("No valid VoteState was provided.")}prepareVote(e){let t={};return e.forEach(n=>{let u=n.itemId,g={userName:n.userName,vote:n.value,date:n.date};if(t[u]){t[u].votes.push(g);let w=t[u].votes.find(I=>I.userName===n.currentUserName);w&&(t[u].currentUserVote=w.vote)}else{let w=g.userName===n.currentUserName;t[u]={votes:[g],isLoading:!1,currentUserVote:w?g.vote:0,likes:0,dislikes:0,neutrals:0,totalScore:0}}switch(n.value.toString()){case"1":t[u].likes++;break;case"-1":t[u].dislikes++;break;case"novote":t[u].neutrals++;break;default:break}t[u].totalScore=t[u].likes-t[u].dislikes}),t}};r(s,"\u0275fac",function(t){return new(t||s)(Te(Ft),Te(V))}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o})();var Wp=(o,s,i,e,t)=>({grey:o,green:s,red:i,mini:e,button:t}),$p=(o,s,i)=>({grey:o,green:s,red:i}),Qp=o=>({"ui grey button totalScore":o}),cr=o=>({active:o}),Kp=o=>[o],qp=o=>({showVotes:o,showComment:void 0});function Zp(o,s){if(o&1){let i=O();a(0,"button",11),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return _(n.vote(t,1))}),S(2,"i",12),l()}if(o&2){let i=d(2);c("ngClass",T(4,cr,i.currentUserVote()===1))("title",v(1,2,"TABS.LIKES"))}}function Jp(o,s){if(o&1){let i=O();a(0,"button",13),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return _(n.vote(t,"novote"))}),S(2,"i",14),l()}if(o&2){let i=d(2);c("ngClass",T(4,cr,i.currentUserVote()==="novote"))("title",v(1,2,"TABS.NEUTRALS"))}}function Xp(o,s){if(o&1){let i=O();a(0,"button",15),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return _(n.vote(t,-1))}),S(2,"i",16),l()}if(o&2){let i=d(2);c("ngClass",T(4,cr,i.currentUserVote()===-1))("title",v(1,2,"TABS.DISLIKES"))}}function ed(o,s){if(o&1&&(a(0,"div",7),y(1,Zp,3,6,"button",8)(2,Jp,3,6,"button",9)(3,Xp,3,6,"button",10),l()),o&2){let i=d();p(),c("ngIf",i.voteOptions==null?null:i.voteOptions.showLikes),p(),c("ngIf",i.voteOptions==null?null:i.voteOptions.showNeutrals),p(),c("ngIf",i.voteOptions==null?null:i.voteOptions.showDislikes)}}function td(o,s){if(o&1){let i=O();a(0,"button",17),h("click",function(t){return m(i),_(t.stopPropagation())}),C(1," INTERACTION_SETTINGS.SHOW_RESULTS "),l()}if(o&2){let i=d();c("routerLink",T(2,Kp,i.baseUrl()))("queryParams",T(4,qp,i.item==null?null:i.item.id))}}var so=(()=>{let s=class s{constructor(e,t){r(this,"layoutService");r(this,"voteService");r(this,"store",b(V));r(this,"item");r(this,"user");r(this,"isRoot",!1);r(this,"voteOptions");r(this,"isShowResults",!1);r(this,"basic",!1);r(this,"permission",!1);r(this,"votes",this.store.selectSignal(Dt));r(this,"baseUrl",this.store.selectSignal(fi));r(this,"isLoggedIn",this.store.selectSignal(ht));r(this,"currentUserVote",re(()=>{var t;let e=this.votes();return Fe(this.item)&&Fe(e[this.item.id])&&(t=e[this.item.id].currentUserVote)!=null?t:0}));r(this,"totalScoreValue",0);r(this,"isOpened",!1);this.layoutService=e,this.voteService=t}ngOnInit(){var e;(e=this.item)!=null&&e.key&&this.voteService.loadVote(this.item.key)}vote(e,t){this.permission&&this.item?t===this.currentUserVote()?this.voteService.vote(this.item.clone(),0):this.voteService.vote(this.item.clone(),t):this.isLoggedIn()||this.layoutService.showModal(Ae.AUTHENTICATION),e.stopPropagation()}hoverin(){(this.permission||this.isShowResults)&&(this.isOpened=!0)}hoverout(){this.isOpened=!1}getTotalScore(){let e=this.votes();return this.item&&e&&e[this.item.id]?e[this.item.id].totalScore:0}};r(s,"\u0275fac",function(t){return new(t||s)(M(He),M(Di))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-vote-button"]],hostBindings:function(t,n){t&1&&h("mouseenter",function(){return n.hoverin()})("mouseleave",function(){return n.hoverout()})},inputs:{item:"item",user:"user",isRoot:"isRoot",voteOptions:"voteOptions",isShowResults:"isShowResults",basic:"basic",permission:"permission"},standalone:!1,decls:11,vars:22,consts:[["position","pointing left top",3,"isOpenChange","isOpen"],[3,"click"],["hzTab","",1,"ui","icon",3,"click","ngClass","title"],[1,"ui","thumbs","up","icon",3,"ngClass"],[3,"ngClass"],["class","ui small icon buttons",4,"ngIf"],["class","ui primary basic button","queryParamsHandling","merge","translate","",3,"routerLink","queryParams","click",4,"ngIf"],[1,"ui","small","icon","buttons"],["class","ui green basic button",3,"ngClass","title","click",4,"ngIf"],["class","ui grey basic button",3,"ngClass","title","click",4,"ngIf"],["class","ui red basic button",3,"ngClass","title","click",4,"ngIf"],[1,"ui","green","basic","button",3,"click","ngClass","title"],[1,"thumbs","up","icon"],[1,"ui","grey","basic","button",3,"click","ngClass","title"],[1,"times","icon"],[1,"ui","red","basic","button",3,"click","ngClass","title"],[1,"thumbs","down","icon"],["queryParamsHandling","merge","translate","",1,"ui","primary","basic","button",3,"click","routerLink","queryParams"]],template:function(t,n){t&1&&(a(0,"hz-popup",0),Z("isOpenChange",function(g){return K(n.isOpened,g)||(n.isOpened=g),g}),a(1,"hz-header")(2,"span",1),h("click",function(g){return g.stopPropagation()}),a(3,"span",2),f(4,"translate"),h("click",function(g){return n.vote(g,1)}),S(5,"i",3),l(),a(6,"span",4),C(7),l()()(),a(8,"hz-content"),y(9,ed,4,3,"div",5)(10,td,2,6,"button",6),l()()),t&2&&(Q("isOpen",n.isOpened),p(3),c("ngClass",Jr(10,Wp,n.currentUserVote()==="novote",n.currentUserVote()===1,n.currentUserVote()===-1,n.basic,!n.basic))("title",v(4,8,"TABS.LIKES")),p(2),c("ngClass",ai(16,$p,n.basic&&n.currentUserVote()==="novote",n.basic&&n.currentUserVote()===1,n.basic&&n.currentUserVote()===-1)),p(),c("ngClass",T(20,Qp,!n.basic)),p(),z(" ",n.getTotalScore()||0," "),p(2),c("ngIf",n.permission),p(),c("ngIf",n.isShowResults||n.isRoot))},dependencies:[X,k,kt,H,Ze,oe,L],styles:[".ui.buttons[_ngcontent-%COMP%]{display:flex}.ui.basic.primary.button[_ngcontent-%COMP%]{margin-top:.5rem;width:100%}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]   hz-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{justify-content:center;display:flex}[_nghost-%COMP%]   i.icon[_ngcontent-%COMP%], i.icons[_ngcontent-%COMP%]{line-height:unset}[_nghost-%COMP%]{color:#0006!important}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu{margin-top:0!important}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .text{display:flex}[_nghost-%COMP%]   .ui.basic.green.active.button[_ngcontent-%COMP%]    {background-color:#21ba45!important;color:#fff!important}[_nghost-%COMP%]   .ui.basic.grey.active.button[_ngcontent-%COMP%]    {background-color:#767676!important;color:#fff!important}[_nghost-%COMP%]   .ui.basic.red.active.button[_ngcontent-%COMP%]    {background-color:#db2828!important;color:#fff!important}"],changeDetection:0}));let o=s;return o}
1)();var id=(o,s)=>({grey:o,green:s}),nd=(o,s)=>({grey:o,red:s}),od=(o,s)=>({grey:o,black:s}),pr=o=>({active:o}),rd=o=>[o],sd=o=>({showVotes:o,showComment:void 0});function ad(o,s){if(o&1){let i=O();a(0,"div",5),f(1,"translate"),h("click",function(t){m(i);let n=d();return _(n.vote(t,1))}),S(2,"i",6),a(3,"span"),C(4),l()()}if(o&2){let i=d();c("title",v(1,3,"TABS.LIKES")),p(2),c("ngClass",Ne(5,id,i.basic&&(i.currentUserVote()===0||i.currentUserVote()===-1)||i.currentUserVote()==="novote",i.basic&&i.currentUserVote()===1)),p(2),N(i.likes()||0)}}function ld(o,s){if(o&1){let i=O();a(0,"div",5),f(1,"translate"),h("click",function(t){m(i);let n=d();return _(n.vote(t,-1))}),S(2,"i",7),a(3,"span"),C(4),l()()}if(o&2){let i=d();c("title",v(1,3,"TABS.DISLIKES")),p(2),c("ngClass",Ne(5,nd,i.basic&&(i.currentUserVote()===0||i.currentUserVote()===1)||i.currentUserVote()==="novote",i.basic&&i.currentUserVote()===-1)),p(2),N(i.dislikes()||0)}}function cd(o,s){if(o&1){let i=O();a(0,"div",5),f(1,"translate"),h("click",function(t){m(i);let n=d();return _(n.vote(t,"novote"))}),S(2,"i",8),a(3,"span"),C(4),l()()}if(o&2){let i=d();c("title",v(1,3,"TABS.NEUTRALS")),p(2),c("ngClass",Ne(5,od,!(i.basic&&i.currentUserVote()==="novote"),i.basic&&i.currentUserVote()==="novote")),p(2),N(i.neutrals()||0)}}function pd(o,s){if(o&1){let i=O();a(0,"button",13),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return _(n.vote(t,1))}),S(2,"i",14),l()}if(o&2){let i=d(2);c("ngClass",T(4,pr,i.currentUserVote()===1))("title",v(1,2,"TABS.LIKES"))}}function dd(o,s){if(o&1){let i=O();a(0,"button",15),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return _(n.vote(t,"novote"))}),S(2,"i",16),l()}if(o&2){let i=d(2);c("ngClass",T(4,pr,i.currentUserVote()==="novote"))("title",v(1,2,"TABS.NEUTRALS"))}}function md(o,s){if(o&1){let i=O();a(0,"button",17),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return _(n.vote(t,-1))}),S(2,"i",18),l()}if(o&2){let i=d(2);c("ngClass",T(4,pr,i.currentUserVote()===-1))("title",v(1,2,"TABS.DISLIKES"))}}function _d(o,s){if(o&1&&(a(0,"div",9),y(1,pd,3,6,"button",10)(2,dd,3,6,"button",11)(3,md,3,6,"button",12),l()),o&2){let i=d();p(),c("ngIf",i.voteOptions==null?null:i.voteOptions.showLikes),p(),c("ngIf",i.voteOptions==null?null:i.voteOptions.showNeutrals),p(),c("ngIf",i.voteOptions==null?null:i.voteOptions.showDislikes)}}function ud(o,s){if(o&1){let i=O();a(0,"button",19),h("click",function(t){return m(i),_(t.stopPropagation())}),C(1," INTERACTION_SETTINGS.SHOW_RESULTS "),l()}if(o&2){let i=d();c("routerLink",T(2,rd,i.baseUrl()))("queryParams",T(4,sd,i.item==null?null:i.item.id))}}var ao=(()=>{let s=class s{constructor(e,t){r(this,"layoutService");r(this,"voteService");r(this,"store",b(V));r(this,"item");r(this,"voteOptions");r(this,"isRoot",!1);r(this,"isShowResults",!1);r(this,"basic",!1);r(this,"permission",!1);r(this,"votes",this.store.selectSignal(Dt));r(this,"isLoggedIn",this.store.selectSignal(ht));r(this,"baseUrl",this.store.selectSignal(fi));r(this,"currentUserVote",re(()=>{var t;let e=this.votes();return Fe(this.item)&&Fe(e[this.item.id])&&(t=e[this.item.id].currentUserVote)!=null?t:0}));r(this,"likes",re(()=>{let e=this.votes();return Fe(this.item)&&Fe(e[this.item.id])?e[this.item.id].likes:0}));r(this,"dislikes",re(()=>{let e=this.votes();return Fe(this.item)&&Fe(e[this.item.id])?e[this.item.id].dislikes:0}));r(this,"neutrals",re(()=>{let e=this.votes();return Fe(this.item)&&Fe(e[this.item.id])?e[this.item.id].neutrals:0}));r(this,"isOpened",!1);this.layoutService=e,this.voteService=t}ngOnInit(){var e;(e=this.item)!=null&&e.key&&this.voteService.loadVote(this.item.key)}vote(e,t){this.permission?this.item&&(t===this.currentUserVote()?this.voteService.vote(this.item.clone(),0):this.voteService.vote(this.item.clone(),t)):this.isLoggedIn()||this.layoutService.showModal(Ae.AUTHENTICATION),e.stopPropagation()}hoverin(){(this.permission||this.isShowResults)&&(this.isOpened=!0)}hoverout(){this.isOpened=!1}};r(s,"\u0275fac",function(t){return new(t||s)(M(He),M(Di))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-vote-individual"]],hostBindings:function(t,n){t&1&&h("mouseenter",function(){return n.hoverin()})("mouseleave",function(){return n.hoverout()})},inputs:{item:"item",voteOptions:"voteOptions",isRoot:"isRoot",isShowResults:"isShowResults",basic:"basic",permission:"permission"},standalone:!1,decls:9,vars:6,consts:[["position","pointing left top",3,"isOpenChange","isOpen"],[1,"votes-individual"],["class","vote",3,"title","click",4,"ngIf"],["class","ui small icon buttons",4,"ngIf"],["class","ui primary basic button","queryParamsHandling","merge","translate","",3,"routerLink","queryParams","click",4,"ngIf"],[1,"vote",3,"click","title"],[1,"thumbs","up","icon",3,"ngClass"],[1,"thumbs","down","icon",3,"ngClass"],[1,"times","icon",3,"ngClass"],[1,"ui","small","icon","buttons"],["class","ui green basic button",3,"ngClass","title","click",4,"ngIf"],["class","ui grey basic button",3,"ngClass","title","click",4,"ngIf"],["class","ui red basic button",3,"ngClass","title","click",4,"ngIf"],[1,"ui","green","basic","button",3,"click","ngClass","title"],[1,"thumbs","up","icon"],[1,"ui","grey","basic","button",3,"click","ngClass","title"],[1,"times","icon"],[1,"ui","red","basic","button",3,"click","ngClass","title"],[1,"thumbs","down","icon"],["queryParamsHandling","merge","translate","",1,"ui","primary","basic","button",3,"click","routerLink","queryParams"]],template:function(t,n){t&1&&(a(0,"hz-popup",0),Z("isOpenChange",function(g){return K(n.isOpened,g)||(n.isOpened=g),g}),a(1,"hz-header")(2,"div",1),y(3,ad,5,8,"div",2)(4,ld,5,8,"div",2)(5,cd,5,8,"div",2),l()(),a(6,"hz-content"),y(7,_d,4,3,"div",3)(8,ud,2,6,"button",4),l()()),t&2&&(Q("isOpen",n.isOpened),p(3),c("ngIf",n.voteOptions==null?null:n.voteOptions.showLikes),p(),c("ngIf",n.voteOptions==null?null:n.voteOptions.showDislikes),p(),c("ngIf",n.voteOptions==null?null:n.voteOptions.showNeutrals),p(2),c("ngIf",n.permission),p(),c("ngIf",n.isShowResults||n.isRoot))},dependencies:[X,k,kt,H,Ze,L],styles:[".votes-individual[_ngcontent-%COMP%]{display:flex}.votes-individual[_ngcontent-%COMP%]   .vote[_ngcontent-%COMP%]:hover{color:#000000e6}.votes-individual[_ngcontent-%COMP%]   .vote[_ngcontent-%COMP%]{color:#0006;margin-right:.5rem}.votes-individual[_ngcontent-%COMP%]   .vote[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{cursor:pointer}.ui.buttons[_ngcontent-%COMP%]{display:flex}.ui.basic.primary.button[_ngcontent-%COMP%]{margin-top:.5rem;width:100%}[_nghost-%COMP%]{color:#0006!important}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu{margin-top:0!important}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .text{display:flex}[_nghost-%COMP%]   .ui.basic.green.active.button[_ngcontent-%COMP%]    {background-color:#21ba45!important;color:#fff!important}[_nghost-%COMP%]   .ui.basic.grey.active.button[_ngcontent-%COMP%]    {background-color:#767676!important;color:#fff!important}[_nghost-%COMP%]   .ui.basic.red.active.button[_ngcontent-%COMP%]    {background-color:#db2828!important;color:#fff!important}"],changeDetection:0}));let o=s;return o}
1)();var fc=$e(Ke());var gc=$e(Ke());var hd="graph",yt=pi(hd),xv=F(yt,o=>o),Ev=F(yt,o=>o.timecodeTips),dr=F(yt,o=>o.playhead),Pv=F(dr,o=>o.elapsedTime),Mv=F(yt,o=>o.playheadDragging),zv=F(yt,o=>o.playheadHovering),kv=F(yt,o=>o.hoverOnPlaceItem),Vv=F(yt,o=>o.hoveringListItem),oi=F(yt,o=>o.position);var Dv=ks,Lv=F(Yi,oi,(o,s)=>!s||!o?[]:(0,gc.filter)(o,i=>i.isActive(s))),Av=F(yt,o=>o.lastItemPlayed);var fd=["duration"];function Cd(o,s){if(o&1){let i=O();a(0,"a",32),f(1,"translate"),h("click",function(){m(i);let t=d(2);return _(t.roundStartTime())}),C(2),f(3,"translate"),l()}o&2&&(c("title",v(1,2,"DATE.ROUND_START")),p(2),N(v(3,4,"DATE.ROUND")))}function vd(o,s){o&1&&(a(0,"span",33),C(1,"\u2022"),l())}function Sd(o,s){if(o&1){let i=O();a(0,"div",25)(1,"label",8),C(2,"DATE.START "),a(3,"div",26),y(4,Cd,4,6,"a",27)(5,vd,2,0,"span",28),a(6,"a",29),f(7,"translate"),h("click",function(){m(i);let t=d();return _(t.nowStartDate())}),C(8),f(9,"translate"),l()()(),a(10,"div",9)(11,"input",30,0),f(13,"translate"),Z("isOpenChange",function(t){m(i);let n=d();return K(n.isStartOpen,t)||(n.isStartOpen=t),_(t)}),h("nowClicked",function(){m(i);let t=d();return _(t.nowStartDate())})("click",function(){m(i);let t=d();return _(t.toogleStartDatepicker())})("ngChange",function(t){m(i);let n=d();return _(n.onStartDateChanged(t))}),l(),a(14,"i",31),h("click",function(){m(i);let t=d();return _(t.clickOnNoDate())}),l()()()}if(o&2){let i=d();p(4),c("ngIf",!i.isStartTimeRounded()),p(),c("ngIf",!i.isStartTimeRounded()),p(),c("title",v(7,12,"DATE.NOW_START")),p(2),N(v(9,14,"DATE.NOW")),p(3),G("invalidDate",!i.dateSettings.startValid),c("clickToOpen",!1),Q("isOpen",i.isStartOpen),c("inline",!0)("nowButton",!0)("defaultDate",i.dateSettings.start)("placeholder",v(13,16,"DATE.SELECT"))}}function wd(o,s){if(o&1&&(a(0,"span",34),C(1),f(2,"translate"),l()),o&2){let i=d();p(),N(v(2,1,i.dateSettings.error))}}var lo=(()=>{let s=class s{constructor(){r(this,"item");r(this,"isShowSave",!1);r(this,"preventDestroyEmit",!1);r(this,"itemChange",new E);r(this,"hidePopup",new E);r(this,"onSave",new E);r(this,"newItemMode",!1);r(this,"label","");r(this,"isLabelLink",!0);r(this,"dateSettings");r(this,"duration");r(this,"store",b(V));r(this,"baseItem",te(this.store.select(Be)));r(this,"playheadGraph",te(this.store.select(dr)));r(this,"position",te(this.store.select(oi)));r(this,"durationPlaceholder",re(()=>{var n;let e=this.baseItem(),t=this.playheadGraph();return e&&e.id!==((n=this.item)==null?void 0:n.id)?"":t!=null&&t.elapsedTime&&t.elapsedTime>0?$o(t.elapsedTime):""}));r(this,"isStartOpen",!1);r(this,"isEndOpen",!1);r(this,"durationText","");r(this,"durationMask","")}ngAfterViewInit(){}ngOnChanges(e){var t,n,u,g;if((0,fc.get)(e,"dateSettings")){let w=$o(((n=(t=this.dateSettings)==null?void 0:t.duration)!=null?n:0)*1e3);((u=this.duration)==null?void 0:u.nativeElement.value)!==w&&((g=this.dateSettings)!=null&&g.duration?(this.durationMask=w.replace(/[0-9]/g,"0"),this.durationText=w):this.durationText="")}}onStartDateChanged(e){this.store.dispatch(it.dateSettingsSetDateAction(e)),this.setDuration(e)}onInvalidDate(){this.store.dispatch(it.disableSaveDate())}onEndDateChanged(e){this.store.dispatch(it.dateSettingsSetDurationAction(e))}onDurationChanged(e){e.indexOf("_")===-1&&this.store.dispatch(it.dateSettingsSetDurationAction(e))}showEndDate(){var t;if((t=this.dateSettings)!=null&&t.isEndDateDisabled)return;let e=new Date;this.onEndDateChanged(this.newItemMode?void 0:e)}endNowEvent(){this.onEndDateChanged(new Date)}clickOnNoDate(){if(this.store.dispatch(it.dateSettingsNoDateAction()),this.newItemMode){let e=this.item.clone();e.date=0,this.onSave.emit(e)}}removeEndDate(){this.store.dispatch(it.dateSettingsSetDurationAction())}nowEndDate(){this.onEndDateChanged(new Date)}nowStartDate(){this.onStartDateChanged(new Date)}toogleStartDatepicker(){var e,t;if(this.isStartOpen=!this.isStartOpen,this.isStartOpen&&typeof((e=this.dateSettings)==null?void 0:e.start)!="number"){let n=new Date;if((t=this.item)!=null&&t.isHazu)n.setHours(n.getHours()+1),n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0);else{let u=this.position();
1n=u!=null&&u.getTime()?u:new Date}this.store.dispatch(it.dateSettingsSetDateAction(n)),this.setDuration(n)}}toogleEndDatepicker(){this.isEndOpen=!this.isEndOpen,this.isEndOpen&&this.setDuration()}setDuration(e=new Date){var t,n;if(typeof((t=this.dateSettings)==null?void 0:t.end)!="number"){let u=e;u=new Date(u),(n=this.item)!=null&&n.isHazu?u.setHours(u.getHours()+1):u.setSeconds(u.getSeconds()+30),this.store.dispatch(it.dateSettingsSetDurationAction(u))}}setDurationByMinutes(e){var n;let t;typeof((n=this.dateSettings)==null?void 0:n.start)=="number"?(t=new Date(this.dateSettings.start),t.setMinutes(t.getMinutes()+e)):(t=new Date,t.setMinutes(t.getMinutes()+e)),this.store.dispatch(it.dateSettingsSetDurationAction(t))}roundStartTime(){var e;if(((e=this.dateSettings)==null?void 0:e.start)!==void 0){let t=new Date(this.dateSettings.start),n=new Date(t);n.setMinutes(0),n.setSeconds(0),n.setMilliseconds(0),(t.getMinutes()!==0||t.getSeconds()!==0||t.getMilliseconds()!==0)&&n.setHours(n.getHours()),this.store.dispatch(it.dateSettingsSetDateAction(n)),this.setDuration(n)}}isStartTimeRounded(){var e;if(((e=this.dateSettings)==null?void 0:e.start)!==void 0){let t=new Date(this.dateSettings.start);return t.getMinutes()===0&&t.getSeconds()===0&&t.getMilliseconds()===0}return!1}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-date-button-content"]],viewQuery:function(t,n){if(t&1&&ve(fd,7),t&2){let u;ae(u=le())&&(n.duration=u.first)}},inputs:{item:"item",isShowSave:"isShowSave",preventDestroyEmit:"preventDestroyEmit",newItemMode:"newItemMode",label:"label",isLabelLink:"isLabelLink",dateSettings:"dateSettings"},outputs:{itemChange:"itemChange",hidePopup:"hidePopup",onSave:"onSave"},standalone:!1,features:[be],decls:56,vars:32,consts:[["date",""],["duration",""],[1,"ui","basic","segment"],[1,"clearfix"],[1,"six","wide","column"],[1,"ui","fluid","action","input"],["class","e2e-dateTimeStart dateTimePicker",4,"ngIf"],[1,"e2e-dateTimeEnd","dateTimePicker"],["translate",""],[1,"ui","input","fluid","icon"],["hzDateTimePicker","","type","text",1,"e2e-date-end",3,"isOpenChange","click","nowClicked","ngChange","clickToOpen","isOpen","nowButton","inline","placeholder","defaultDate"],[1,"remove","icon","e2e-remove-icon-end",3,"click"],[1,"four","wide","column"],[1,"ui","fluid","input"],[1,"e2e-dateTimeDuration","dateTimePicker"],[1,"ui","input","fluid","e2e-Duration-picker"],["hzMaskedTextbox","","type","text",3,"onInvalidDate","keyup","value","maskTemplate"],["class","error",4,"ngIf"],[1,"twelve","wide","column"],[1,"ui","four","buttons","fluid"],["type","button",1,"ui","button",3,"click"],[1,"duration"],[1,"unit"],["translate","",1,"ui","basic","cancel","button",3,"click"],["translate","",1,"ui","positive","button","saveBtn",3,"click","disabled"],[1,"e2e-dateTimeStart","dateTimePicker"],[1,"startDateButtons"],["class","roundStartTime",3,"title","click",4,"ngIf"],["class","bull",4,"ngIf"],[1,"nowStartTime",3,"click","title"],["hzDateTimePicker","","type","text",1,"e2e-date-start",3,"isOpenChange","nowClicked","click","ngChange","clickToOpen","isOpen","inline","nowButton","defaultDate","placeholder"],[1,"remove","icon","e2e-remove-icon-start",3,"click"],[1,"roundStartTime",3,"click","title"],[1,"bull"],[1,"error"]],template:function(t,n){if(t&1){let u=O();a(0,"div",2),S(1,"div",3),a(2,"div",4)(3,"div",5),y(4,Sd,15,18,"div",6),l()(),S(5,"div",3),a(6,"div",4)(7,"div",5)(8,"div",7)(9,"label",8),C(10,"DATE.END"),l(),a(11,"div",9)(12,"input",10,0),f(14,"translate"),Z("isOpenChange",function(w){return m(u),K(n.isEndOpen,w)||(n.isEndOpen=w),_(w)}),h("click",function(){return m(u),_(n.toogleEndDatepicker())})("nowClicked",function(){return m(u),_(n.nowEndDate())})("ngChange",function(w){return m(u),_(n.onEndDateChanged(w))}),l(),a(15,"i",11),h("click",function(){return m(u),_(n.removeEndDate())}),l()()()()(),a(16,"div",12)(17,"div",13)(18,"div",14)(19,"label"),C(20),f(21,"translate"),l(),a(22,"div",15)(23,"input",16,1),h("onInvalidDate",function(){return m(u),_(n.onInvalidDate())})("keyup",function(){m(u);let w=x(24);return _(n.onDurationChanged(w.value))}),l()()()(),y(25,wd,3,3,"span",17),l(),a(26,"div",18)(27,"div",19)(28,"button",20),h("click",function(){return m(u),_(n.setDurationByMinutes(15))}),a(29,"span",21),C(30,"15"),l(),a(31,"span",22),C(32),f(33,"translate"),l()(),a(34,"button",20),h("click",function(){return m(u),_(n.setDurationByMinutes(30))}),a(35,"span",21),C(36,"30"),l(),a(37,"span",22),C(38),f(39,"translate"),l()(),a(40,"button",20),h("click",function(){return m(u),_(n.setDurationByMinutes(45))}),a(41,"span",21),C(42,"45"),l(),a(43,"span",22),C(44),f(45,"translate"),l()(),a(4
16,"button",20),h("click",function(){return m(u),_(n.setDurationByMinutes(60))}),a(47,"span",21),C(48,"1"),l(),a(49,"span",22),C(50),f(51,"translate"),l()()()(),a(52,"button",23),h("click",function(){return m(u),_(n.hidePopup.emit())}),C(53," COMMON.ACTION_CANCEL "),l(),a(54,"button",24),h("click",function(){return m(u),_(n.onSave.emit())}),C(55," COMMON.ACTION_SAVE "),l()()}t&2&&(p(4),c("ngIf",n.dateSettings.isShowStartDate),p(8),G("invalidDate",!n.dateSettings.durationValid),c("clickToOpen",!1),Q("isOpen",n.isEndOpen),c("nowButton",!0)("inline",!0)("placeholder",v(14,20,"DATE.SELECT"))("defaultDate",n.dateSettings.end),p(8),N(v(21,22,"ITEM_OPTIONS.DURATION")),p(2),G("invalidDuration",!n.dateSettings.durationValid),p(),c("value",n.durationText)("maskTemplate",n.durationMask),p(2),c("ngIf",!n.dateSettings.durationValid),p(7),N(v(33,24,"DATE.MINS")),p(6),N(v(39,26,"DATE.MINS")),p(6),N(v(45,28,"DATE.MINS")),p(6),N(v(51,30,"DATE.HOUR")),p(4),c("disabled",!n.dateSettings.isDirty||!n.dateSettings.durationValid||!n.dateSettings.startValid))},dependencies:[k,H,ll,to,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}.videoStart[_ngcontent-%COMP%]{width:100%}.videoStart[_ngcontent-%COMP%]   .ui.green.button[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0}.videoStart[_ngcontent-%COMP%]   .k-textbox[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;text-indent:0;width:auto}.videoStart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative}.videoStart[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]     .flatpickr-calendar{display:block;left:auto!important;position:relative;top:.2em!important}.dateTimePicker[_ngcontent-%COMP%]{width:100%}.dateTimePicker[_ngcontent-%COMP%]   .ui.green.button[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0}.dateTimePicker[_ngcontent-%COMP%]   .k-textbox[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;text-indent:0;width:auto}.dateTimePicker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{position:relative}.dateTimePicker[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]     .flatpickr-calendar{display:block;left:auto!important;position:relative;top:.2em!important}label[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5em;text-align:left}[_nghost-%COMP%]     .invalidDate{border:.2rem solid #f44336!important;border-radius:.4rem;border-bottom-right-radius:0;border-top-right-radius:0}[_nghost-%COMP%]     .invalidDuration{border:.2rem solid #f44336;border-radius:.4rem}[_nghost-%COMP%]     .invalidUrl{border-color:#f44336!important;border-width:.2rem!important}[_nghost-%COMP%]   a.disabled[_ngcontent-%COMP%]{opacity:.5}[_nghost-%COMP%]   a.ui.right[_ngcontent-%COMP%]{float:right}.clearfix[_ngcontent-%COMP%]{clear:both}[_nghost-%COMP%]   .ui.basic.segment.bottom-btn[_ngcontent-%COMP%]{font-size:1.2em!important;height:2em!important;padding-top:0!important}[_nghost-%COMP%]   .ui.basic.segment[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .saveBtn[_ngcontent-%COMP%]{float:right;margin-bottom:1em}[_nghost-%COMP%]   .startDateButtons[_ngcontent-%COMP%]{float:right}[_nghost-%COMP%]   .bull[_ngcontent-%COMP%]{margin-left:.5em;margin-right:.5em}[_nghost-%COMP%]   .roundStartTime[_ngcontent-%COMP%], [_nghost-%COMP%]   .nowStartTime[_ngcontent-%COMP%]{cursor:pointer;text-decoration:none}[_nghost-%COMP%]   .addEndTime[_ngcontent-%COMP%]{margin-bottom:1em!important}[_nghost-%COMP%]   .two.item.menu[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .two.item.menu[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   .error[_ngcontent-%COMP%]{color:red}.ui.input.fluid[_ngcontent-%COMP%]{display:block;width:100%}.ui.input.fluid[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{width:100%!important}[_nghost-%COMP%]     .flatpickr-calendar:before, [_nghost-%COMP%]     .flatpickr-calendar:after{display:none!important}i.remove.icon[_ngcontent-%COMP%]{cursor:pointer!important;display:block!important;height:2.6em!important;pointer-events:all!important}.ui.icon.input[_ngcontent-%COMP%]     input{padding-right:.8em!important}[_nghost-%COMP%]     .k-widget{-webkit-appearance:none;appearance:none;background-color:#fff;border-color:#dedee0;box-shadow:none;box-sizing:content-box;color:#515967;line-height:normal;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}
1[_nghost-%COMP%]     .k-widget .k-widget.k-tooltip-validation{background-color:#ffe79e;border-color:#ffe79e;color:#6b5100}[_nghost-%COMP%]     .k-widget .k-widget.k-tooltip{background-image:none,linear-gradient(to bottom,#ffffff73 0,#fff0);background-position:50% 50%;box-shadow:0 4px 6px #0000004d}[_nghost-%COMP%]     .k-widget .k-tooltip{background-repeat:repeat-x;border-radius:4px;border-style:solid;min-width:20px;text-align:center}[_nghost-%COMP%]     .k-widget .k-tooltip-validation{z-index:600}[_nghost-%COMP%]     .k-textbox{display:inline-block;font-size:100%;overflow:visible;position:relative;vertical-align:middle}[_nghost-%COMP%]     span.k-tooltip{border-width:1px;display:inline-block;padding:9px 17px;position:static}[_nghost-%COMP%]     span.k-tooltip .k-icon{background-color:transparent;background-image:url(/assets/kendo/Silver/sprite.png);background-repeat:no-repeat;border-color:transparent;display:inline-block;font-size:0;height:16px;line-height:0;opacity:.9;overflow:hidden;text-align:center;vertical-align:middle;width:16px}[_nghost-%COMP%]     span.k-tooltip .k-i-warning{background-position:-160px -240px}.ui.buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{display:flex!important;flex-direction:column;justify-content:center;align-items:center;height:4em;padding:.3em!important;text-align:center}.ui.buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .duration[_ngcontent-%COMP%]{font-size:1.2em;font-weight:700;line-height:1.2}.ui.buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]   .unit[_ngcontent-%COMP%]{font-size:.9em;line-height:1.2}"]}));let o=s;return o})();var vc=o=>({editable:o}),Od=o=>({text:o});function yd(o,s){if(o&1&&S(0,"i"),o&2){let i=d(3);tt(Ee("",i.icon," icon"))}}function Td(o,s){if(o&1&&(a(0,"a",5),y(1,yd,1,3,"i",6),C(2),l()),o&2){let i=d(2);tt(i.class),c("title",i.label),p(),c("ngIf",i.icon),p(),z(" ",i.label)}}function bd(o,s){if(o&1){let i=O();a(0,"span",3),h("click",function(){m(i);let t=d();return _(t.clickOnLabel())}),y(1,Td,3,5,"a",4),l()}if(o&2){let i=d();p(),c("ngIf",i.label)}}function Id(o,s){if(o&1&&S(0,"i",8),o&2){let i=d(2);c("ngClass",T(1,vc,i.canEdit))}}function xd(o,s){if(o&1&&(a(0,"span")(1,"hz-header"),y(2,Id,1,3,"i",7),C(3),l()()),o&2){let i=d();p(2),c("ngIf",!i.label),p(),z(" ",i.label," ")}}function Ed(o,s){if(o&1&&(S(0,"i",13),f(1,"translate")),o&2){let i=d(2);c("ngClass",T(4,vc,i.canEdit))("title",v(1,2,"DATE.SET"))}}function Pd(o,s){if(o&1&&(a(0,"a",14),C(1),l()),o&2){let i=d(2);tt(i.class),c("ngClass",T(4,Od,!i.isLabelLink)),p(),N(i.label)}}function Md(o,s){if(o&1){let i=O();a(0,"hz-popup",9),Z("isOpenChange",function(t){m(i);let n=d();return K(n.isPopupShown,t)||(n.isPopupShown=t),_(t)}),h("show",function(){m(i);let t=d();return _(t.showPopup())})("hide",function(){m(i);let t=d();return _(t.closeItemSettings())}),a(1,"hz-header"),y(2,Ed,2,6,"i",10)(3,Pd,2,6,"a",11),l(),a(4,"hz-content")(5,"hz-date-button-content",12),h("onSave",function(t){m(i);let n=d();return _(n.saveDateChanges(t))})("hidePopup",function(){m(i);let t=d();return _(t.hideCurrentPopup())}),l()()()}if(o&2){let i=d();Q("isOpen",i.isPopupShown),c("position",i.position),p(2),c("ngIf",!i.label),p(),c("ngIf",i.label),p(2),c("label",i.label)("dateSettings",i.itemOptions.dateSettings)("position",i.position)("newItemMode",i.newItemMode)("isLabelLink",i.isLabelLink)("preventDestroyEmit",i.preventDestroyEmit)("isShowSave",i.itemOptions.dateSettings.isDirty)("item",i.item)}}var co=(()=>{let s=class s{constructor(e,t){r(this,"itemsService");r(this,"store");r(this,"item");r(this,"isShowSave",!1);r(this,"preventDestroyEmit",!1);r(this,"itemChange",new E);r(this,"newItemMode",!1);r(this,"canEdit",!1);r(this,"position","pointing left top");r(this,"type","");r(this,"label","");r(this,"class","");r(this,"icon","");r(this,"isLabelLink",!0);r(this,"itemOptions");r(this,"dateSettings$");r(this,"dateSettingsFromStore");r(this,"hideCurrentPopop",new E);r(this,"isPopupShown",!1);this.itemsService=e,this.store=t,this.dateSettingsFromStore=this.store.selectSignal(io)}showPopup(){this.canEdit&&this.item&&(this.isPopupShown=!0,this.store.dispatch(zn(this.item,this.newItemMode)))}hideCurrentPopup(){this.isPopupShown=!1}save(e){var t;!this.isPopupShown&&!e||(this.isPopupShown=!1,(t=this.dateSettingsFromStore())!=null&&t.isDirty&&this.store.dispatch(Pi()))}closeItemSettings(){this.store.dispatch(kn())}saveItem(e){this.canEdit&&(this.newItemMode?this.itemChange.emit(e.clone()):this.itemsService.updateItemInfo(e))}saveDateChanges(e){var n,u;let t=this.dateSettingsFromStore();t!=null&&t.isDirty?(this.newItemMode&&this.item?(e||(e=this.item.clone(),e.date=(n=t.start)!=null?n:0,e.duration=((u=t.duration)!=null?u:0)*1e3,e.placed=!!e.date),this.saveItem(e)):this.store.dispatch(Pi()),this.hideCurrentPopup()):e&&this.saveItem(e)}clickOnLabel(){if(!this.item)return;let e=this.item.clone();switch(this.type){case"noDate":e.date=0,e.start!==0&&(e.duration=0),this.saveItem(e);break;case"startNow":this.store.dispatch(ca(e));break;case"endNow":e.endDate=new Date().getTime(),this.itemsService.closeEvent(e);break;case"reopen":this.store.dispatch(pa(e));break;default:break}}};r(s,"\u0275fac",function(t){return new(t||s)(M(ue),M(V))}
1),r(s,"\u0275cmp",P({type:s,selectors:[["hz-date-button"]],inputs:{item:"item",isShowSave:"isShowSave",preventDestroyEmit:"preventDestroyEmit",newItemMode:"newItemMode",canEdit:"canEdit",position:"position",type:"type",label:"label",class:"class",icon:"icon",isLabelLink:"isLabelLink",itemOptions:"itemOptions"},outputs:{itemChange:"itemChange"},standalone:!1,decls:3,vars:3,consts:[["class","hazu-button-privacy",3,"click",4,"ngIf"],[4,"ngIf"],[3,"isOpen","position","isOpenChange","show","hide",4,"ngIf"],[1,"hazu-button-privacy",3,"click"],["href","javascript:;",3,"class","title",4,"ngIf"],["href","javascript:;",3,"title"],[3,"class",4,"ngIf"],["class","calendar icon grey","title","Event Date",3,"ngClass",4,"ngIf"],["title","Event Date",1,"calendar","icon","grey",3,"ngClass"],[3,"isOpenChange","show","hide","isOpen","position"],["class","calendar icon grey","hzTab","",3,"ngClass","title",4,"ngIf"],["href","javascript:;",3,"class","ngClass",4,"ngIf"],[3,"onSave","hidePopup","label","dateSettings","position","newItemMode","isLabelLink","preventDestroyEmit","isShowSave","item"],["hzTab","",1,"calendar","icon","grey",3,"ngClass","title"],["href","javascript:;",3,"ngClass"]],template:function(t,n){t&1&&y(0,bd,2,1,"span",0)(1,xd,4,2,"span",1)(2,Md,6,12,"hz-popup",2),t&2&&(c("ngIf",n.item&&n.type),p(),c("ngIf",!n.canEdit),p(),c("ngIf",n.item&&!n.type&&n.canEdit))},dependencies:[X,k,Ze,oe,lo,L],styles:["[_nghost-%COMP%]   a.text[_ngcontent-%COMP%]{color:inherit}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu{padding:0}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .menu{border-radius:0!important;box-shadow:none;margin:0!important;position:inherit}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .menu .item{border-bottom:1px solid rgba(34,36,38,.15);border-right:1px solid rgba(34,36,38,.15);font-weight:400;text-align:center}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .menu .item:last-child{border-right:none}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .menu .item.active{background-color:#0000000d}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .ui.basic.segment{margin-top:.3rem}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .ui.basic.segment .column{padding-bottom:1em}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu hz-date-button-content .ui.basic.segment .column:last-child{padding-bottom:0}"],changeDetection:0}));let o=s;return o})();var po=$e(Ke());var wc=o=>({editable:o});function zd(o,s){if(o&1){let i=O();a(0,"a",4),h("click",function(t){let n=m(i).$implicit,u=d();return _(u.setPrivacy(t,n.key))}),S(1,"i"),C(2),f(3,"translate"),l()}if(o&2){let i=s.$implicit;p(),tt(Ee("grey link fa fa-",i.icon)),p(),z(" ",v(3,4,i.name)," ")}}function kd(o,s){if(o&1){let i=O();a(0,"span",5)(1,"em",6),f(2,"translate"),h("click",function(t){m(i);let n=d();return _(n.canEdit&&n.showPopup(t,n.privacyPopup))}),l()()}if(o&2){let i=d();p(),tt(Ee("link fa fa-",i.privacyByKey(i.item.privacy).icon," fa-fw large")),c("ngClass",T(7,wc,i.canEdit))("title",v(2,5,"ITEM_OPTIONS.PRIVACY"))}}function Vd(o,s){if(o&1){let i=O();a(0,"span",7),h("click",function(t){m(i);let n=d();return _(n.canEdit&&n.showPopup(t,n.privacyPopup))}),C(1),f(2,"translate"),l()}if(o&2){let i=d();c("ngClass",T(4,wc,i.canEdit)),p(),z(" ",v(2,2,i.privacyByKey(i.item.privacy).name),"\n")}}var mo=(()=>{let s=class s{constructor(e){r(this,"itemsService");r(this,"baseItem");r(this,"item");r(this,"itemChange",new E);r(this,"showLabel");r(this,"newItemMode",!1);r(this,"canEdit");r(this,"currentPrivacyList");r(this,"isOpened",!1);r(this,"privacyList",[{key:ln.public,name:"ITEM_OPTIONS.PUBLIC",icon:"lock-open"},{key:ln.unlisted,name:"ITEM_OPTIONS.UNLISTED",icon:"unlock-alt"},{key:ln.private,name:"ITEM_OPTIONS.PRIVATE",icon:"lock"}]);this.itemsService=e}setPrivacy(e,t){e.stopPropagation();let n=this.item.clone();n.privacy=t,this.newItemMode?this.itemChange.emit(n):this.itemsService.updateItemInfo(n),this.isOpened=!1}showPopup(e,t){this.currentPrivacyList=(0,po.clone)(this.privacyList),this.item.isUserOrHazu||this.currentPrivacyList.splice(1,1),this.isOpened=!0}trackByItemKey(e,t){return t.key}privacyByKey(e){return(0,po.find)(this.privacyList,t=>t.key===e)||this.privacyList[0]}};r(s,"\u0275fac",function(t){return new(t||s)(M(ue))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-privacy-button"]],inputs:{baseItem:"baseItem",item:"item",showLabel:"showLabel",newItemMode:"newItemMode",canEdit:"canEdit"},outputs:{itemChange:"itemChange"},standalone:!1,decls:5,vars:5,consts:[["position","pointing left top","menuClass","vertical ui",3,"isOpenChange","isOpen"],["class","item","hzTab","",3,"click",4,"ngFor","ngForOf","ngForTrackBy"],["class","hazu-button-privacy",4,"ngIf"],["class","contentInfo link",3,"ngClass","click",4,"ngIf"],["hzTab","",1,"item",3,"click"],[1,"hazu-button-privacy"],["hzTab","",3,"click","ngClass","title"],[1,"contentInfo","link",3,"click","ngClass"]],template:function(t,n){t&1&&(a(0,"hz-popup",0),Z("isOpenChange",function(g){return K(n.isOpened,g)||(n.isOpened=g),g}),a(1,"hz-content"),y(2,zd,4,6,"a",1),l()(),y(3,kd,3,9,"span",2)(4,Vd,3,6,"span",3)),t&2&&(Q("isOpen",n.isOpened),p(2),c("ngForOf",n.currentPrivacyList)("ngForTrackBy",n.trackByItemKey),p(),c("ngIf",n.item),p(),c("ngIf",n.item&&n.showLabel))},dependencies:[X,Qe,k,ke,Ze,oe,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:flex}[_nghost-%COMP%]     .popup{padding:0}[_nghost-%COMP%]     .popup .item{text-align:left}[_nghost-%COMP%]   .link.editable[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .ui.vertical.menu[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%] > i.link[_ngcontent-%COMP%]{float:right;margin:0 0 0 .5em;width:1.18em}[_nghost-%COMP%]   .hazu-button-privacy[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{color:#767676}[_nghost-%COMP%]     .left{left:-10px}[_nghost-%COMP%]     .right{right:-30px}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu{padding:0}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu .item i{float:right}"],changeDetection:0}));let o=s;return o}
1)();function Ld(o,s){if(o&1){let i=O();a(0,"hz-date-button",7),f(1,"localizedDate"),f(2,"localizedDate"),f(3,"localizedDate"),f(4,"localizedDate"),f(5,"localizedDate"),f(6,"localizedDate"),h("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d(3);c("label",at(j(1,8,i.item.date,"E")+" "+j(2,11,i.item.date,"mediumDate")+" "+j(3,14,i.item.date,"shortTime")+(i.item.end?" \u2014 "+(i.isSameDate(i.item.date,i.item.end)?"":j(4,17,i.item.end,"E")+" "+j(5,20,i.item.end,"mediumDate"))+" "+j(6,23,i.item.end,"shortTime"):"")))("canEdit",i.canEdit)("isLabelLink",!1)("itemOptions",i.itemOptionsState)("preventDestroyEmit",!0)("isShowSave",i.itemOptionsState.dateSettings.isDirty)("item",i.item)}}function Ad(o,s){if(o&1&&(a(0,"sm-item")(1,"div",3),f(2,"localizedDate"),S(3,"i",4),a(4,"div",5),y(5,Ld,7,26,"hz-date-button",6),l()()()),o&2){let i=d(2);p(),c("title",Ee("Start Date: ",j(2,3,i.item.date,"fullDate"))),p(4),c("ngIf",i.itemOptionsState)}}function Nd(o,s){if(o&1){let i=O();a(0,"sm-item")(1,"div",3),f(2,"capitalize"),a(3,"hz-privacy-button",8),h("click",function(t){return m(i),_(t.stopPropagation())}),l()()()}if(o&2){let i=d(2);p(),c("title",Ee("Privacy: ",v(2,6,i.item.privacy))),p(2),c("canEdit",i.canEdit)("item",i.item)("baseItem",i.baseItem)("showLabel",!0)}}function Rd(o,s){if(o&1&&(a(0,"sm-item")(1,"div",9),S(2,"i",10),a(3,"div",5)(4,"span"),C(5),l()()()()),o&2){let i=d(2);p(),c("title",Ee("Author: ",i.item.displayName)),p(4),N(i.item.displayName)}}function Bd(o,s){if(o&1){let i=O();a(0,"sm-item")(1,"div",11),h("click",function(t){return m(i),_(t.stopPropagation())}),S(2,"i",12),a(3,"div",5)(4,"hz-inline-edit",13),h("ngChange",function(t){m(i);let n=d(2);return _(n.locationChanged(t))}),l()()()()}if(o&2){let i=d(2);p(),c("title",Ee("Author Location: ",i.item.authorLocation)),p(3),c("value",at(i.item.authorLocation))("canEdit",i.canEdit)}}function Fd(o,s){if(o&1){let i=O();a(0,"sm-item")(1,"div",11),h("click",function(t){return m(i),_(t.stopPropagation())}),S(2,"i",12),a(3,"div",5)(4,"hz-inline-edit",13),h("ngChange",function(t){m(i);let n=d(2);return _(n.userLocationChanged(t))}),l()()()()}if(o&2){let i=d(2);p(),c("title",Ee("Location: ",i.item.userLocation)),p(3),c("value",at(i.item.userLocation))("canEdit",i.canEdit)}}function Ud(o,s){if(o&1&&(a(0,"div",1),y(1,Ad,6,6,"sm-item",2)(2,Nd,4,8,"sm-item",2)(3,Rd,6,3,"sm-item",2)(4,Bd,5,5,"sm-item",2)(5,Fd,5,5,"sm-item",2),l()),o&2){let i=d();p(),c("ngIf",i.item.type!=="user"&&i.item.type!=="question"&&i.item.date),p(),c("ngIf",i.item.privacy!=="public"&&i.fullscreenModal&&i.showPrivacy),p(),c("ngIf",i.item.displayName&&(i.item.isQuestion||i.fullscreenModal)&&i.showAuthorInfo),p(),c("ngIf",i.showAuthorLocation&&i.showAuthorInfo),p(),c("ngIf",i.isBaseItem&&i.item.userLocation||i.fullscreenModal&&i.item.userLocation)}}var uo=(()=>{let s=class s{constructor(e,t){r(this,"itemsService");r(this,"geoService");r(this,"item");r(this,"baseItem");r(this,"canEdit",!1);r(this,"itemOptionsState");r(this,"isBaseItem",!1);r(this,"fullscreenModal",!1);r(this,"showPrivacy",!1);r(this,"showAuthorInfo",!1);this.itemsService=e,this.geoService=t}setDate(){let e=this.item.clone();e.date=new Date().getTime(),this.itemsService.updateItemInfo(e)}getPrivacyIcon(e){return{public:"lock-open",unlisted:"unlock-alt",private:"lock"}[e]}dateChanged(e){let t=this.item.clone();t.date=e?e.getTime():0,this.itemsService.updateItemInfo(t)}durationChanged(e){let t=this.item.clone();t.endDate=e?e.getTime():0,this.itemsService.updateItemInfo(t)}locationChanged(e){return B(this,null,function*(){let t=this.item.clone();t.authorLocation=e;try{let n=yield xt(this.geoService.getGeocodeAddress(e));t.authorGeocodeLocation=n}catch(n){console.error(n)}finally{this.itemsService.updateItemInfo(t)}})}userLocationChanged(e){let t=this.item.clone();t.userLocation=e,this.itemsService.updateItemInfo(t)}isSameDate(e,t){let n=new Date(e),u=new Date(t);return n.getDate()===u.getDate()&&n.getMonth()===u.getMonth()&&n.getFullYear()===u.getFullYear()}get showAuthorLocation(){return!!this.item.authorLocation&&(this.item.isHazu&&this.isBaseItem||this.item.isQuestion)}};r(s,"\u0275fac",function(t){return new(t||s)(M(ue),M(Mi))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-item-info"]],inputs:{item:"item",baseItem:"baseItem",canEdit:"canEdit",itemOptionsState:"itemOptionsState",isBaseItem:"isBaseItem",fullscreenModal:"fullscreenModal",showPrivacy:"showPrivacy",showAuthorInfo:"showAuthorInfo"},standalone:!1,decls:1,vars:1,consts:[["class","ui list horizontal infoList",4,"ngIf"],[1,"ui","list","horizontal","infoList"],[4,"ngIf"],[3,"title"],[1,"icon","middle","middle","calendar","grey"],[1,"contentInfo"],["class","title",3,"canEdit","isLabelLink","itemOptions","preventDestroyEmit","isShowSave","label","item","click",4,"ngIf"],[1,"title",3,"click","canEdit","isLabelLink","itemOptions","preventDestroyEmit","isShowSave","label","item"],[1,"title",3,"click","canEdit","item","baseItem","showLabel"],[1,"title",3,"title"],[1,"middle","gray","user","icon"],[1,"title",3,"click","title"],[1,"middle","gray","marker","icon"],["type","location",3,"ngChange","value","canEdit"]],template:function(t,n){t&1&&y(0,Ud,6,5,"div",0),t&2&&c("ngIf",n.item)},dependencies:[k,wl,co,mo,Oa,dt],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:flex;position:relative}[_nghost-%COMP%]   .infoList[_ngcontent-%COMP%]{color:#0006;display:flex;font-size:1em!important;font-weight:200!important;padding:0!important}[_nghost-%COMP%]   .infoList[_ngcontent-%COMP%]   sm-item[_ngcontent-%COMP%]{padding-right:2em}[_nghost-%COMP%]     .ui.popup{z-index:500}[_nghost-%COMP%]     .infoList .ui.horizontal sm-item{color:#0009;margin-left:0;margin-right:0;padding:.2143em 0;vertical-align:top}[_nghost-%COMP%]     .infoList .ui.horizontal sm-item .title{padding-right:1em}[_nghost-%COMP%]     .contentInfo{display:inline-block}@container sidebar (max-width: 767px){[_nghost-%COMP%]     .infoList{white-space:nowrap;line-height:1}}@media only screen and (max-width:767px){[_nghost-%COMP%]     .infoList{white-space:nowrap;line-height:1}}"],changeDetection:0}));let o=s;return o}
1)();var Li=$e(Ke());var Tc=(()=>{let s=class s{constructor(e){r(this,"layoutService");r(this,"config");r(this,"subscriber");this.layoutService=e}clear(){this.setConfig(null)}show(){this.layoutService.showModal(Ae.ACCOUNT_SETTINGS)}close(){this.layoutService.closeModal(),this.config=null}destroy(){this.config=null,this.subscriber=null}subscribe(e){this.subscriber=e}setConfig(e){this.config=e,this.subscriber.onUserUpdated.call(this.subscriber)}getConfig(){return this.config}};r(s,"\u0275fac",function(t){return new(t||s)(Te(He))}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o})();var Tt=(()=>{let s=class s{constructor(e){r(this,"itemsService");this.itemsService=e}addTag(e,t){return B(this,null,function*(){return e.tags?e.tags.push(t):e.tags=[t],yield this.itemsService.updateItem(new Go(e))})}removeTag(e,t){return B(this,null,function*(){if(e.tags)e.tags=e.tags.filter(n=>n!==t);else return;return yield this.itemsService.updateItem(new Go(e))})}};r(s,"\u0275fac",function(t){return new(t||s)(Te(ue))}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o})();var Hd=["shortUrlInput"],jd=o=>({invalidUrl:o}),Yd=o=>({value:o});function Wd(o,s){if(o&1){let i=O();a(0,"a",14),h("click",function(){m(i);let t=d(2);return _(t.customLink=!t.customLink)}),C(1),l()}if(o&2){let i=d(2);p(),N(i.item.shortUrl||i.item.id)}}function $d(o,s){if(o&1&&(a(0,"div",12)(1,"span"),C(2),l(),y(3,Wd,2,1,"a",13),l()),o&2){let i=d();p(2),N(i.parentUrl),p(),c("ngIf",!i.customLink)}}function Qd(o,s){if(o&1){let i=O();a(0,"div",15)(1,"div",16)(2,"span"),C(3),l()(),a(4,"input",17,0),h("keyup",function(){m(i);let t=x(5),n=d();return _(n.onUrlChange(t.value))})("keyup.enter",function(){m(i);let t=d();return _(t.save())})("keyup.esc",function(){m(i);let t=d();return _(t.cancel())}),l()()}if(o&2){let i=d();p(),c("title",i.parentUrl),p(2),N(i.parentUrl),p(),c("placeholder",i.item.key)("value",i.suggestedShortName)("ngClass",T(5,jd,i.isExist))}}function Kd(o,s){if(o&1&&(a(0,"div",18),S(1,"i",19),C(2),f(3,"translate"),l()),o&2){let i=d();p(2),z(" ",j(3,1,"NAMING.WILL_BE_SAVED_AS",T(4,Yd,i.newUrl))," ")}}function qd(o,s){if(o&1){let i=O();a(0,"div",20)(1,"button",21),h("click",function(){m(i);let t=d();return _(t.cancel())}),C(2),f(3,"translate"),l(),a(4,"button",22),h("click",function(){m(i);let t=d();return _(t.save())}),C(5),f(6,"translate"),l()()}if(o&2){let i=d();p(2),z(" ",v(3,3,"COMMON.ACTION_CANCEL")," "),p(2),c("disabled",i.isExist),p(),z(" ",v(6,5,"COMMON.ACTION_SAVE")," ")}}function Zd(o,s){o&1&&(a(0,"div",23),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"NAMING.ALREADY_IN_USE")," "))}var go=(()=>{let s=class s{constructor(e,t,n,u){r(this,"itemsService");r(this,"windowService");r(this,"router");r(this,"logService");r(this,"item");r(this,"canSave");r(this,"isExist",!1);r(this,"onDone",new E);r(this,"onUrlSave",new E);r(this,"onUrlChanged",new E);r(this,"shortUrlInput");r(this,"isEmpty",!1);r(this,"customLink",!1);r(this,"enableDebug",!1);r(this,"_newUrl","");r(this,"_enteredUrl","");this.itemsService=e,this.windowService=t,this.router=n,this.logService=u}cancel(){this.shortUrlInput&&(this.shortUrlInput.nativeElement.value=this.item.shortUrl,this.onUrlChange(this.shortUrlInput.nativeElement.value)),this.customLink=!1}ngOnInit(){this.onUrlChange(this.suggestedShortName)}save(){if(!this.canSave)return!1;this.logService.printDebugInfo(this.enableDebug,this,"save","","important");let e="/"+this.router.url.split("/")[1];return this._newUrl!==this.item.shortUrl?this.itemsService.updateItemPath(this.item,this._newUrl,e):this.onDone.emit(),!1}onUrlChange(e){this.logService.printDebugInfo(this.enableDebug,this,"onUrlChange","url: ".concat(e)),this._enteredUrl=e.trim(),this._enteredUrl?(this._newUrl=jo(e),this.canSave=!!this._newUrl,this.isEmpty=!1):(this._newUrl=this.item.key,this.canSave=!0,this.isEmpty=!0),this.onUrlChanged.emit(this.canSave)}get enteredUrl(){return this._enteredUrl}get newUrl(){return this._newUrl}get suggestedShortName(){return this.item.shortUrl&&this.item.shortUrl!==this.item.id?this.item.shortUrl:jo(this.item.titleText.toLowerCase())}get parentUrl(){return this.windowService.location.origin+this.item.link.substring(0,this.item.link.length-(this.item.shortUrl||this.item.id).length-1)+"/"}};r(s,"\u0275fac",function(t){return new(t||s)(M(ue),M(Ci),M(ci),M(Ue))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-item-settings"]],viewQuery:function(t,n){if(t&1&&ve(Hd,5),t&2){let u;ae(u=le())&&(n.shortUrlInput=u.first)}},inputs:{item:"item",canSave:"canSave",isExist:"isExist"},outputs:{onDone:"onDone",onUrlSave:"onUrlSave",onUrlChanged:"onUrlChanged"},standalone:!1,decls:13,vars:5,consts:[["shortUrlInput",""],["name","form",1,"ui","form"],[1,"ui","grid"],[1,"row"],[1,"sixteen","wide","column"],[1,"ui","block-left"],[1,"ui"],["class","ui basic label description",4,"ngIf"],["class","ui labeled input",4,"ngIf"],["class","ui label warning-space-link",4,"ngIf"],["class","buttons",4,"ngIf"],["class","ui negative message",4,"ngIf"],[1,"ui","basic","label","description"],["class","short-link",3,"click",4,"ngIf"],[1,"short-link",3,"click"],[1,"ui","labeled","input"],["aria-hidden","true",1,"ui","label","parent-url",3,"title"],["onfocus","this.select()","type","text","name","item.shortUrl","autocomplete","off",1,"full-width","block-right",3,"keyup","keyup.enter","keyup.esc","hzFocus","placeholder","value","ngClass"],[1,"ui","label","warning-space-link"],[1,"fa-exclamation-triangle","icon","orange","inverted"],[1,"buttons"],[1,"ui","right","floated","basic","button","small","editor-cancel-btn",3,"click"],[1,"ui","right","floated","button","small","green","editor-cancel-btn",3,"click","disabled"],[1,"ui","negative","message"]],template:function(t,n){t&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"div",5)(5,"div",6),y(6,$d,4,2,"div",7)(7,Qd,6,7,"div",8),l(),a(8,"div",6),C(9,"\xA0"),l(),y(10,Kd,4,6,"div",9)(11,qd,7,7,"div",10),l(),y(12,Zd,3,3,"div",11),l()()()()),t&2&&(p(6),c("ngIf",!n.customLink),p(),c("ngIf",n.customLink),p(3),c("ngIf",n.newUrl!==n.enteredUrl&&!n.isExist&&!n.isEmpty),p(),c("ngIf",n.customLink),p(),c("ngIf",n.isExist))},dependencies:[X,k,Wt,L],styles:["[_nghost-%COMP%]{display:block;width:100%;position:relative}.videoStart[_ngcontent-%COMP%]{width:100%}.videoStart[_ngcontent-%COMP%]     .k-datetimepicker{width:100%}.videoStart[_ngcontent-%COMP%]     .k-datetimepicker input{box-sizing:border-box;height:38px;text-indent:0}.videoStart[_ngcontent-%COMP%]     .k-datetimepicker .k-picker-wrap{background-image:none;border-bottom-right-radius:0;border-top-right-radius:0}.videoStart[_ngcontent-%COMP%]   .ui.green.button[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0}.videoStart[_ngcontent-%COMP%]   .k-textbox[_ngcontent-%COMP%]{box-sizing:border-box;height:40px;text-indent:0;width:auto}label[_ngcontent-%COMP%]{display:block;font-weight:700;margin-bottom:.5em}
1[_nghost-%COMP%]     .invalidDate{border:.2rem solid #f44336;border-radius:.4rem;border-bottom-right-radius:0;border-top-right-radius:0}[_nghost-%COMP%]     .invalidDuration{border:.2rem solid #f44336;border-radius:.4rem}[_nghost-%COMP%]     .invalidUrl{border-color:#f44336!important;border-width:.2rem!important}.block-left[_ngcontent-%COMP%]{display:block;float:left;font-weight:700}.full-width[_ngcontent-%COMP%]{width:100%}.description[_ngcontent-%COMP%]{line-height:22px}.ui.input-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.ui.labeled.input[_ngcontent-%COMP%]{width:100%;white-space:normal;word-wrap:break-word;word-break:break-all}.ui.label.parent-url[_ngcontent-%COMP%]{background-color:#f0f0f0;width:60%;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;padding-left:14px;padding-right:14px;font-size:14px;font-weight:500;color:#000}.ui.label.warning-space-link[_ngcontent-%COMP%]{text-overflow:ellipsis;word-break:break-all;margin-top:10px}.buttons[_ngcontent-%COMP%]{margin-top:10px;display:flex;flex-direction:row;justify-content:flex-end;gap:10px}.buttons[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{margin-right:0}.short-link[_ngcontent-%COMP%]{color:#005bb5!important;cursor:pointer;font-weight:700}.short-link[_ngcontent-%COMP%]:hover{color:#1678c2;text-decoration:underline}"],changeDetection:0}));let o=s;return o})();var Xd=o=>({"osm-container":o}),em=o=>({"form-container":o}),tm=o=>({tag:o});function im(o,s){if(o&1){let i=O();a(0,"hz-select",58),h("valueChange",function(t){m(i);let n=d(3);return _(n.updateSortOrder(t))}),l()}if(o&2){let i=d(3);c("value",i.layoutSortOrder)("options",i.orderList())}}function nm(o,s){if(o&1&&(a(0,"div",55)(1,"label")(2,"h3",42),C(3,"LAYOUT_SETTINGS.SORTING"),l(),a(4,"span",42),C(5,"LAYOUT_SETTINGS.SWITCH_ITEM_ORDER"),l()(),a(6,"div",56),y(7,im,1,2,"hz-select",57),l()()),o&2){let i=d(2);p(7),c("ngIf",i.layoutSortOrder!==void 0)}}function om(o,s){if(o&1){let i=O();a(0,"hz-select",58),h("valueChange",function(t){m(i);let n=d(3);return _(n.updateTimelinePosition(t))}),l()}if(o&2){let i=d(3);c("value",i.layoutTimelinePosition)("options",i.positionList())}}function rm(o,s){if(o&1&&(a(0,"div",55)(1,"label")(2,"h3",42),C(3,"LAYOUT_SETTINGS.POSITION"),l()(),a(4,"div",56),y(5,om,1,2,"hz-select",57),l()()),o&2){let i=d(2);p(5),c("ngIf",i.layoutTimelinePosition!==void 0)}}function sm(o,s){if(o&1){let i=O();a(0,"div",55)(1,"label")(2,"h3",42),C(3,"LAYOUT_SETTINGS.ITEMS_PER_PAGE"),l()(),a(4,"div",56)(5,"hz-select",59),h("valueChange",function(t){m(i);let n=d(2);return _(n.updateLayoutSettings({itemsPerPage:t}))}),l()()()}if(o&2){let i=d(2);p(5),c("value",i.layoutItemsPerPage)("options",i.itemsPerPage())}}function am(o,s){if(o&1){let i=O();a(0,"div",44)(1,"div",45)(2,"label",60)(3,"h2",42),C(4,"LAYOUT_SETTINGS.WORKSPACE_SETTINGS"),l(),a(5,"div",47),S(6,"i",48),l()()(),a(7,"div",45)(8,"label")(9,"h3",42),C(10,"LAYOUT_SETTINGS.SHOW_EXTENDED_CONTENT"),l()(),a(11,"div",49)(12,"input",50,26),f(14,"translate"),h("change",function(){m(i);let t=x(13),n=d(2);return _(n.updateLayoutSettings({showExtendedContent:t.checked}))}),l(),S(15,"label"),l()()()}if(o&2){let i=d(2),e=x(14);p(5),c("popupTemplate",e)("popupDelay",300),p(7),c("checked",i.layoutSettings.showExtendedContent)("title",v(14,4,"LAYOUT_SETTINGS.SHOW_EXTENDED_CONTENT"))}}function lm(o,s){if(o&1&&S(0,"img",73),o&2){let i=d(3);c("src",i.layoutSettings.logo,et)}}function cm(o,s){if(o&1){let i=O();a(0,"label",74),h("click",function(){m(i);let t=d(3);return _(t.updateLayoutSettings({logo:void 0}))}),S(1,"i",75),l()}}function pm(o,s){if(o&1&&(S(0,"img",76),f(1,"translate")),o&2){let i=d(3);c("alt",v(1,2,"LAYOUT_SETTINGS.FAVICON"))("src",i.layoutSettings==null?null:i.layoutSettings.favicon,et)}}function dm(o,s){if(o&1){let i=O();a(0,"label",74),h("click",function(){m(i);let t=d(3);return _(t.updateLayoutSettings({favicon:null}))}),S(1,"i",75),l()}}function mm(o,s){if(o&1){let i=O();a(0,"div",44)(1,"div",45)(2,"label")(3,"h2",42),C(4,"LAYOUT_SETTINGS.GROUP_BRANDING"),l()()(),a(5,"div",61)(6,"label")(7,"h3",42),C(8,"LAYOUT_SETTINGS.WHITE_LABELING"),l()(),a(9,"hz-select",62),Z("valueChange",function(t){m(i);let n=d(2);return K(n.layoutSettings.whiteLabelling,t)||(n.layoutSettings.whiteLabelling=t),_(t)}),h("valueChange",function(){m(i);let t=d(2);return _(t.updateLayoutSettings({whiteLabelling:t.layoutSettings.whiteLabelling}))}),l()(),a(10,"div",63)(11,"label",46)(12,"h3",42),C(13,"LAYOUT_SETTINGS.LOGO"),l(),a(14,"div",47),S(15,"i",48),l()(),a(16,"span"),y(17,lm,1,1,"img",64)(18,cm,2,0,"label",65),a(19,"input",66),h("change",function(t){m(i);let n=d(2);return _(n.uploadFile(t))}),l(),a(20,"label",67),S(21,"i",68),l()()(),a(22,"div",61)(23,"label",46)(24,"h3",42),C(25,"LAYOUT_SETTINGS.LOGO_LINK"),l(),a(26,"div",47),S(27,"i",48),l()(),a(28,"input",69,27),h("keyup",function(){m(i);let t=x(29),n=d(2);return _(n.updateLogoLink(t.value))}),l()(),a(30,"div",63)(31,"label")(32,"h3",42),C(33,"LAYOUT_SETTINGS.FAVICON"),l()(),a(34,"span"),y(35,pm,2,4,"img",70)(36,dm,2,0,"label",65),a(37,"input",71),h("change",function(t){m(i);let n=d(2);return _(n.uploadFile(t,!0))}),l(),a(38,"label",72),S(39,"i",68),l()()()()}if(o&2){let i=d(2),e=x(4);p(9),Q("value",i.layoutSettings.whiteLabelling),c("options",i.whiteLabelOptions()),p(5),c("popupTemplate",e)("popupDelay",300),p(3),c("ngIf",i.layoutSettings.logo),p(),c("ngIf",i.layoutSettings.logo),p(),c("disabled",i.loading),p(),G("loading",i.loading),p(6),c("popupTemplate",e)("popupDelay",300),p(2),G("errored",!i.isValidLogoLink),c("value",i.layoutSettings.logoLink),p(7),c("ngIf",i.layoutSettings==null?null:i.layoutSettings.favicon),p(),c("ngIf",i.layoutSettings==null?null:i.layoutSettings.favicon),p(),c("disabled",i.loadingFavicon),p(),G("loading",i.loadingFavicon)}}function _m(o,s){if(o&1){let i=O();a(0,"div",45)(1,"label")(2,"h3",42),C(3,"LAYOUT_SETTINGS.OSM"),l()(),a(4,"div",49)(5,"input",80,28),h("change",function(){m(i);let t=x(6),n=d(3);return n.layoutSettings.openStreetMap=t.checked,_(n.updateLayoutSettings())}),l(),S(7,"label"),l()()}if(o&2){let i=d(3);p(5),c("checked",i.layoutSettings.openStreetMap)}}function um(o,s){if(o&1){let i=O();a(0,"div",61)(1,"label")(2,"h3",42),C(3,"LAYOUT_SETTINGS.OSM_API_KEY"),l()(),a(4,"input",69,29),h("keyup",function(){m(i);let t=x(5),n=d(3);return _(n.updateLayoutSettings({osmApiKey:t.value}))}),l()()}if(o&2){let i=d(3);
1p(4),c("value",i.layoutSettings.osmApiKey)}}function hm(o,s){if(o&1){let i=O();a(0,"div",61)(1,"label")(2,"h3",42),C(3,"LAYOUT_SETTINGS.OSM_SERVER"),l()(),a(4,"input",69,30),h("keyup",function(){m(i);let t=x(5),n=d(3);return _(n.updateLayoutSettings({osmServer:t.value}))}),l()()}if(o&2){let i=d(3);p(4),c("value",i.layoutSettings.osmServer)}}function gm(o,s){if(o&1&&(a(0,"div",44)(1,"div",45)(2,"label")(3,"h2",42),C(4,"LAYOUT_SETTINGS.GROUP_MAP_SETTINGS"),l()()(),a(5,"div",77),y(6,_m,8,1,"div",78)(7,um,6,1,"div",79)(8,hm,6,1,"div",79),l()()),o&2){let i=d(2);p(5),c("ngClass",T(4,Xd,i.layoutSettings.openStreetMap)),p(),c("ngIf",i.isRootHazu),p(),c("ngIf",i.isRootHazu&&i.layoutSettings.openStreetMap),p(),c("ngIf",i.isRootHazu&&i.layoutSettings.openStreetMap)}}function fm(o,s){if(o&1){let i=O();a(0,"div",44)(1,"div",45)(2,"label")(3,"h2",42),C(4,"LAYOUT_SETTINGS.GROUP_AUTHENTICATION"),l()()(),a(5,"div",61)(6,"label")(7,"h3",42),C(8,"LAYOUT_SETTINGS.USERNAME_BASED_LOGIN"),l()(),a(9,"input",69,31),f(11,"translate"),h("keyup",function(){m(i);let t=x(10),n=d(2);return _(n.updateGmail(t.value))}),l()()()}if(o&2){let i=d(2);p(9),G("errored",!i.isValidGmail),c("value",i.layoutSettings.gmail),J("placeholder",v(11,4,"LAYOUT_SETTINGS.GMAIL_ADDRESS"))}}function Cm(o,s){var i,e;if(o&1){let t=O();a(0,"div",44)(1,"div",45)(2,"label")(3,"h2",42),C(4,"LAYOUT_SETTINGS.STYLE_OVERWRITES.TITLE"),l()()(),a(5,"div",61)(6,"label",46)(7,"h3",42),C(8," LAYOUT_SETTINGS.STYLE_OVERWRITES.USER_CONTENT_TITLE_FONT_FAMILY "),l(),a(9,"div",47),S(10,"i",48),l()(),a(11,"hz-select",81,32),h("valueChange",function(){m(t);let u=x(12),g=d(2);return _(g.updateLayoutSettings({styleOverwrites:{userContentTitleFontFamily:u.value}}))}),l()(),a(13,"div",61)(14,"label",46)(15,"h3",42),C(16," LAYOUT_SETTINGS.STYLE_OVERWRITES.USER_CONTENT_FONT_FAMILY "),l(),a(17,"div",47),S(18,"i",48),l()(),a(19,"hz-select",82,33),h("valueChange",function(){m(t);let u=x(20),g=d(2);return _(g.updateLayoutSettings({styleOverwrites:{userContentFontFamily:u.value}}))}),l()()()}if(o&2){let t=d(2),n=x(10),u=x(12);p(9),c("popupTemplate",n)("popupDelay",300),p(2),c("value",(i=t.layoutSettings.styleOverwrites==null?null:t.layoutSettings.styleOverwrites.userContentTitleFontFamily)!=null?i:"")("options",t.availableFonts),p(6),c("popupTemplate",u)("popupDelay",300),p(2),c("value",(e=t.layoutSettings.styleOverwrites==null?null:t.layoutSettings.styleOverwrites.userContentFontFamily)!=null?e:"")("options",t.availableFonts)}}function vm(o,s){if(o&1){let i=O();a(0,"div",40)(1,"div",41)(2,"span",42),C(3,"LAYOUT_SETTINGS.DEFAULTS_MOVED_MESSAGE"),l(),C(4,"\xA0 "),a(5,"a",43),h("click",function(){m(i);let t=d();return _(t.openDefaultsPanel())})("keydown.enter",function(){m(i);let t=d();return _(t.openDefaultsPanel())}),C(6," LAYOUT_SETTINGS.DEFAULTS_MOVED_LINK "),l()(),a(7,"div",44)(8,"div",45)(9,"label")(10,"h2",42),C(11,"LAYOUT_SETTINGS.GROUP_UI_ELEMENTS"),l()()(),a(12,"div",45)(13,"label",46)(14,"h3",42),C(15,"LAYOUT_SETTINGS.TOGGLE_HAZU_TITLE"),l(),a(16,"div",47),S(17,"i",48),l()(),a(18,"div",49)(19,"input",50,13),f(21,"translate"),h("change",function(){m(i);let t=x(20),n=d();return _(n.updateLayoutSettings({hideHazuTitle:!t.checked}))}),l(),S(22,"label"),l()(),a(23,"div",45)(24,"label",46)(25,"h3",42),C(26,"LAYOUT_SETTINGS.TOGGLE_SIDEBAR"),l(),a(27,"span",42),C(28,"LAYOUT_SETTINGS.DISPLAY_SIDEBAR"),l(),a(29,"div",47),S(30,"i",48),l()(),a(31,"div",49)(32,"input",50,14),f(34,"translate"),h("change",function(){m(i);let t=x(33),n=d();return _(n.updateLayoutSettings({showSidebar:t.checked}))}),l(),S(35,"label"),l()(),a(36,"div",45)(37,"label",46)(38,"h3",42),C(39,"LAYOUT_SETTINGS.GRAPHICAL_TIMELINE"),l(),a(40,"div",47),S(41,"i",48),l()(),a(42,"div",49)(43,"input",51,15),f(45,"translate"),h("change",function(){m(i);let t=x(44),n=d();return _(n.updateLayoutSettings({showTimeline:t.checked}))}),l(),S(46,"label"),l()()(),a(47,"div",44)(48,"div",45)(49,"label",46)(50,"h2",42),C(51,"LAYOUT_SETTINGS.GROUP_ITEM_INFO"),l(),a(52,"div",47),S(53,"i",48),l()()(),a(54,"div",45)(55,"label")(56,"h3",42),C(57,"LAYOUT_SETTINGS.SHOW_DATE"),l()(),a(58,"div",49)(59,"input",50,16),f(61,"translate"),h("change",function(){m(i);let t=x(60),n=d();return _(n.updateLayoutSettings({showDate:t.checked}))}),l(),S(62,"label"),l()(),a(63,"div",45)(64,"label")(65,"h3",42),C(66,"LAYOUT_SETTINGS.SHOW_AUTHOR"),l()(),a(67,"div",49)(68,"input",50,17),f(70,"translate"),h("change",function(){m(i);let t=x(69),n=d();return _(n.updateLayoutSettings({showAuthor:t.checked}))}),l(),S(71,"label"),l()(),a(72,"div",45)(73,"label")(74,"h3",42),C(75,"LAYOUT_SETTINGS.SHOW_ASSIGNED"),l()(),a(76,"div",49)(77,"input",50,18),f(79,"translate"),h("change",function(){m(i);let t=x(78),n=d();return _(n.updateLayoutSettings({showAssigned:t.checked}))}),l(),S(80,"label"),l()(),a(81,"div",45)(82,"label")(83,"h3",42),C(84,"LAYOUT_SETTINGS.SHOW_LOCATION"),l()(),a(85,"div",49)(86,"input",50,19),f(88,"translate"),h("change",function(){m(i);let t=x(87),n=d();return _(n.updateLayoutSettings({showLocation:t.checked}))}),l(),S(89,"label"),l()(),a(90,"div",45)(91,"label")(92,"h3",42),C(93,"LAYOUT_SETTINGS.SHOW_TAGS"),l()(),a(94,"div",49)(95,"input",50,20),f(97,"translate"),h("change",function(){m(i);let t=x(96),n=d();return _(n.updateLayoutSettings({showTags:t.checked}))}),l(),S(98,"label"),l()()(),a(99,"div",44)(100,"div",45)(101,"label")(102,"h2",42),C(103,"LAYOUT_SETTINGS.GROUP_SORTING_DATE"),l()()(),y(104,nm,8,1,"div",52)(105,rm,6,1,"div",52)(106,sm,6,2,"div",52),l(),y(107,am,16,6,"div",53)(108,mm,40,19,"div",53)(109,gm,9,6,"div",53)(110,fm,12,6,"div",53)(111,Cm,21,8,"div",53),a(112,"div",44)(113,"div",45)(114,"label")(115,"h2",42),C(116,"LAYOUT_SETTINGS.GROUP_ADVANCED"),l()()(),a(117,"div",54)(118,"label",46)(119,"h3",42),C(120,"LAYOUT_SETTINGS.SHARE_BUTTONS"),l(),a(121,"div",47),S(122,"i",48),l()(),a(123,"div",49)(124,"input",50,21),f(126,"translate"),h("change",function(){m(i);let t=x(125),n=d();return _(n.updateLayoutSettings({showShareButtons:t.checked}))}),l(),S(127,"label"),l()(),a(128,"div",45)(129,"label",46)(130,"h3",42),C(131,"LAYOUT_SETTINGS.SHOW_LIVE_MODE"),l(
1),a(132,"div",47),S(133,"i",48),l()(),a(134,"div",49)(135,"input",50,22),f(137,"translate"),h("change",function(){m(i);let t=x(136),n=d();return _(n.updateLayoutSettings({showLiveMode:t.checked}))}),l(),S(138,"label"),l()(),a(139,"div",45)(140,"label",46)(141,"h3",42),C(142,"LAYOUT_SETTINGS.MESSENGER_MODE"),l(),a(143,"div",47),S(144,"i",48),l()(),a(145,"div",49)(146,"input",50,23),f(148,"translate"),h("change",function(){m(i);let t=x(147),n=d();return _(n.updateLayoutSettings({messengerMode:t.checked}))}),l(),S(149,"label"),l()(),a(150,"div",45)(151,"label",46)(152,"h3",42),C(153,"LAYOUT_SETTINGS.HIDE_PAST"),l(),a(154,"div",47),S(155,"i",48),l(),S(156,"span",42),l(),a(157,"div",49)(158,"input",50,24),f(160,"translate"),h("change",function(){m(i);let t=x(159),n=d();return _(n.updateLayoutSettings({hidePast:t.checked}))}),l(),S(161,"label"),l()(),a(162,"div",45)(163,"label",46)(164,"h3",42),C(165,"LAYOUT_SETTINGS.HIDE_LEGEND_ITEMS"),l(),a(166,"div",47),S(167,"i",48),l()(),a(168,"div",49)(169,"input",50,25),f(171,"translate"),h("change",function(){m(i);let t=x(170),n=d();return _(n.updateLayoutSettings({hideLegendItems:t.checked}))}),l(),S(172,"label"),l()()()()}if(o&2){let i=d(),e=x(6),t=x(8),n=x(16),u=x(18),g=x(20),w=x(22),I=x(24),D=x(26),Y=x(28);p(16),c("popupTemplate",D)("popupDelay",300),p(3),c("checked",!i.layoutSettings.hideHazuTitle)("title",v(21,52,"LAYOUT_SETTINGS.TOGGLE_HAZU_TITLE")),p(10),c("popupTemplate",Y)("popupDelay",300),p(3),c("checked",i.layoutSettings.showSidebar)("title",v(34,54,"LAYOUT_SETTINGS.TOGGLE_SIDEBAR")),p(8),c("popupTemplate",n)("popupDelay",300),p(3),c("checked",i.layoutSettings.showTimeline)("title",v(45,56,"LAYOUT_SETTINGS.GRAPHICAL_TIMELINE")),p(9),c("popupTemplate",u)("popupDelay",300),p(7),c("checked",i.layoutSettings.showDate)("title",v(61,58,"LAYOUT_SETTINGS.SHOW_DATE")),p(9),c("checked",i.layoutSettings.showAuthor)("title",v(70,60,"LAYOUT_SETTINGS.SHOW_AUTHOR")),p(9),c("checked",i.layoutSettings.showAssigned)("title",v(79,62,"LAYOUT_SETTINGS.SHOW_ASSIGNED")),p(9),c("checked",i.layoutSettings.showLocation)("title",v(88,64,"LAYOUT_SETTINGS.SHOW_LOCATION")),p(9),c("checked",i.layoutSettings.showTags)("title",v(97,66,"LAYOUT_SETTINGS.SHOW_TAGS")),p(9),c("ngIf",i.orderList().length>0),p(),c("ngIf",i.positionList().length>0),p(),c("ngIf",i.itemsPerPage().length>0),p(),c("ngIf",i.isRootHazu),p(),c("ngIf",i.isRootHazu),p(),c("ngIf",i.isRoot()),p(),c("ngIf",i.isOwner()&&i.showAuthentication),p(),c("ngIf",i.isRootHazu&&i.isOwner()&&i.canOverwriteStyle()),p(10),c("popupTemplate",g)("popupDelay",300),p(3),c("checked",i.layoutSettings.showShareButtons)("title",v(126,68,"LAYOUT_SETTINGS.SHARE_BUTTONS")),p(8),c("popupTemplate",t)("popupDelay",300),p(3),c("checked",i.layoutSettings.showLiveMode)("title",v(137,70,"LAYOUT_SETTINGS.SHOW_LIVE_MODE")),p(8),c("popupTemplate",w)("popupDelay",300),p(3),c("checked",i.layoutSettings.messengerMode)("title",v(148,72,"LAYOUT_SETTINGS.MESSENGER_MODE")),p(8),c("popupTemplate",I)("popupDelay",300),p(4),c("checked",i.layoutSettings.hidePast)("title",v(160,74,"LAYOUT_SETTINGS.HIDE_PAST")),p(8),c("popupTemplate",e)("popupDelay",300),p(3),c("checked",i.layoutSettings.hideLegendItems)("title",v(171,76,"LAYOUT_SETTINGS.HIDE_LEGEND_ITEMS"))}}function Sm(o,s){if(o&1){let i=O();a(0,"div",45)(1,"label")(2,"h3",42),C(3,"TABS.SHOW_QUESTIONS"),l()(),a(4,"div",49)(5,"input",86),f(6,"translate"),h("change",function(){m(i);let t=d(2);return _(t.updateLayoutSettings({showQuestionTab:!t.layoutSettings.showQuestionTab}))}),l(),S(7,"label"),l()()}if(o&2){let i=d(2);p(5),c("checked",i.questionsTabVisible())("title",v(6,2,"TABS.SHOW_QUESTIONS"))}}function wm(o,s){if(o&1){let i=O();a(0,"div",45)(1,"label")(2,"h3",42),C(3,"TABS.SHOW_CHAT"),l()(),a(4,"div",49)(5,"input",87),f(6,"translate"),h("change",function(){m(i);let t=d(2);return _(t.updateLayoutSettings({showChatTab:!t.layoutSettings.showChatTab}))}),l(),S(7,"label"),l()()}if(o&2){let i=d(2);p(5),c("checked",i.chatTabVisible())("title",v(6,2,"TABS.SHOW_CHAT"))}}function Om(o,s){if(o&1){let i=O();a(0,"hz-select",90),h("valueChange",function(t){m(i);let n=d(3);return _(n.changeRole(t))}),l()}if(o&2){let i=d(3);c("value",i.layoutSettings.votesRole)("options",i.rolesOptions())}}function ym(o,s){if(o&1&&(a(0,"div",88)(1,"label")(2,"h3",42),C(3,"INTERACTION_SETTINGS.SHOW_RESULTS"),l()(),a(4,"div",56),y(5,Om,1,2,"hz-select",89),l()()),o&2){let i=d(2);p(5),c("ngIf",i.rolesOptions().length>0)}}function Tm(o,s){if(o&1){let i=O();a(0,"hz-select",90),h("valueChange",function(t){m(i);let n=d(3);return _(n.updateLayoutSettings({votesViewType:t}))}),l()}if(o&2){let i=d(3);c("value",i.layoutSettings.votesViewType)("options",i.voteTypesList())}}function bm(o,s){if(o&1&&(a(0,"div",88)(1,"label")(2,"h3",42),C(3,"INTERACTION_SETTINGS.SHOW_VOTES_AS"),l()(),a(4,"div",56),y(5,Tm,1,2,"hz-select",89),l()()),o&2){let i=d(2);p(5),c("ngIf",i.voteTypesList().length>0)}}function Im(o,s){if(o&1){let i=O();a(0,"div",88)(1,"label")(2,"h3",42),C(3,"INTERACTION_SETTINGS.VOTE_OPTIONS"),l()(),a(4,"div",91)(5,"div",92)(6,"input",93,34),f(8,"translate"),h("change",function(){m(i);let t=x(7),n=x(13),u=x(19),g=d(2);return _(g.updateVotesOptions(t.checked,n.checked,u.checked))}),l(),S(9,"label"),l(),S(10,"i",94),a(11,"div",92)(12,"input",95,35),f(14,"translate"),h("change",function(){m(i);let t=x(7),n=x(13),u=x(19),g=d(2);return _(g.updateVotesOptions(t.checked,n.checked,u.checked))}),l(),S(15,"label"),l(),S(16,"i",96),a(17,"div",92)(18,"input",97,36),f(20,"translate"),h("change",function(){m(i);let t=x(7),n=x(13),u=x(19),g=d(2);return _(g.updateVotesOptions(t.checked,n.checked,u.checked))}),l(),S(21,"label"),l(),S(22,"i",98),l()()}if(o&2){let i=d(2);p(6),c("checked",i.layoutSettings.voteOptions.showLikes)("title",v(8,6,"TABS.LIKES")),p(6),c("checked",i.layoutSettings.voteOptions.showDislikes)("title",v(14,8,"TABS.DISLIKES")),p(6),c("checked",i.layoutSettings.voteOptions.showNeutrals)("title",v(20,10,"TABS.NEUTRALS"))}}function xm(o,s){if(o&1){let i=O();a(0,"div",40),y(1,Sm,8,4,"div",78)(2,wm,8,4,"div",78),a(3,"div",45)(4,"label")(5,"h3",42),C(6,"INTERACTION_SETTINGS.TOGGLE_COMMENTING"),l(),a(7,"span",42),C(8,"INTERACTION_SETTINGS.ENABLE_COMMENTS"),l()(),a(9,"div",49)(10,"input",83),f(11,"translate"),h("change",function(){m(i);let t=d();return _(t.updateLayoutSettings({commentsEnabled:!t.layoutSettings.commentsEnabled}))}),l(),S(12,"label"),l()(),a(13,"div",45)(14,"label")(15,"h3",42),C(16,"INTERACTION_SETTINGS.TOGGLE_VOTING"),l(),a(17,"span",42),C(18,"INTERACTION_SETTINGS.ENABLE_VOTES"),l()(),a(19,"div",49)(20,"input",84),f(21,"translate"),h("change",function(){m(i);let t=d();return _(t.updateLayoutSettings({votesEnabled:!t.layoutSettings.votesEnabled}))}),l(),S(22,"label"),l()(),y(23,ym,6,1,"div",85)(24,bm,6,1,"div",85)(25,Im,23,12,"div",85),l()}if(o&2){let i=d();p(),c("ngIf",!i.isItemAccessory&&!i.isMultipleOptions),p(),c("ngIf",!i.isItemAccessory&&!i.isMultipleOptions),p(8),c("checked",i.layoutSettings.commentsEnabled)("title",v(11,9,"INTERACTION_SETTINGS.TOGGLE_COMMENTING")),p(10),c("checked",i.layoutSettings.votesEnabled)("title",v(21,11,"INTERACTION_SETTINGS.TOGGLE_VOTING")),p(3),c("ngIf",!i.isItemAccessory),p(),c("ngIf",!i.isItemAccessory),p(),c("ngIf",!i.isItemAccessory)}}function Em(o,s){if(o&1&&(a(0,"span",104),S(1,"i"),l(),C(2)),o&2){let i=s.$implicit;p(),tt(Ee("ui icon ",i.icon)),p(),z(" ",i.label," ")}}function Pm(o,s){var i;if(o&1){let e=O();a(0,"div",99)(1,"div",88)(2,"label")(3,"h3",42),C(4,"FORM.SETTINGS.INPUT_TYPE"),l()(),a(5,"div",56)(6,"hz-select",100),h("valueChange",function(n){var g,w;m(e);let u=d();return _(u.updateFormOptions(n,(g=u.layoutSettings.formOptions==null?null:u.layoutSettings.formOptions.required)!=null?g:!1,(w=u.layoutSettings.formOptions==null?null:u.layoutSettings.formOptions.hide)!=null?w:!1))}),l()()(),y(7,Em,3,4,"ng-template",null,37,R),a(9,"div",45)(10,"label")(11,"h3",42),C(12,"FORM.SETTINGS.REQUIRED"),l()(),a(13,"div",101)(14,"input",102),f(15,"translate"),h("change",function(){var u,g;m(e);let n=d();return _(n.updateFormOptions((u=n.layoutSettings.formOptions==null?null:n.layoutSettings.formOptions.inputType)!=null?u:n.defaultInputType,!(n.layoutSettings.formOptions!=null&&n.layoutSettings.formOptions.required),(g=n.layoutSettings.formOptions==null?null:n.layoutSettings.formOptions.hide)!=null?g:!1))}),l(),S(16,"label"),l()(),a(17,"div",45)(18,"label")(19,"h3",42),C(20,"FORM.SETTINGS.HIDE"),l()(),a(21,"div",101)(22,"input",103),f(23,"translate"),h("change",function(){var u,g;m(e);let n=d();return _(n.updateFormOptions((u=n.layoutSettings.formOptions==null?null:n.layoutSettings.formOptions.inputType)!=null?u:n.defaultInputType,(g=n.layoutSettings.formOptions==null?null:n.layoutSettings.formOptions.required)!=null?g:!1,!(n.layoutSettings.formOptions!=null&&n.layoutSettings.formOptions.hide)))}),l(),S(24,"label"),l()()()}if(o&2){let e=x(8),t=d();c("ngClass",T(12,em,t.type==="form")),p(6),c("value",(i=t.layoutSettings.formOptions==null?null:t.layoutSettings.formOptions.inputType)!=null?i:t.defaultInputType)("options",t.inputTypeOptions)("template",e),p(8),c("checked",t.layoutSettings.formOptions==null?null:t.layoutSettings.formOptions.required)("title",v(15,8,"FORM.SETTINGS.REQUIRED")),p(8),c("checked",t.layoutSettings.formOptions==null?null:t.layoutSettings.formOptions.hide)("title",v(23,10,"FORM.SETTINGS.HIDE"))}}function Mm(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.LOGO_WARNING"),l())}function zm(o,s){if(o&1&&(a(0,"div",106),C(1," LAYOUT_SETTINGS.HIDE_LEGEND_ITEMS_TOOLTIP "),l()),o&2){let i=d();c("translateParams",T(1,tm,i.LEGEND_TAG))}}function km(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.SHOW_LIVE_MODE_TOOLTIP"),l())}function Vm(o,s){o&1&&(a(0,"div",105),C(1," LAYOUT_SETTINGS.STYLE_OVERWRITES.USER_CONTENT_TITLE_FONT_FAMILY_HINT "),l())}function Dm(o,s){o&1&&(a(0,"div",105),C(1," LAYOUT_SETTINGS.STYLE_OVERWRITES.USER_CONTENT_FONT_FAMILY_HINT "),l())}function Lm(o,s){o&1&&(a(0,"div",105),C(1," LAYOUT_SETTINGS.WORKSPACE_SETTINGS_TOOLTIP "),l())}function Am(o,s){o&1&&(a(0,"div",105),C(1," LAYOUT_SETTINGS.GRAPHICAL_TIMELINE_TOOLTIP "),l())}function Nm(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.GROUP_ITEM_INFO_TOOLTIP"),l())}function Rm(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.SHARE_BUTTONS_TOOLTIP"),l())}function Bm(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.MESSENGER_MODE_TOOLTIP"),l())}function Fm(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.HIDE_PAST_TOOLTIP"),l())}function Um(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.TOGGLE_HAZU_TITLE_TOOLTIP"),l())}function Gm(o,s){o&1&&(a(0,"div",105),C(1,"LAYOUT_SETTINGS.TOGGLE_SIDEBAR_TOOLTIP"),l())}var bc=(()=>{let s=class s{constructor(){r(this,"layoutSettings");r(this,"type","layout");r(this,"isRootHazu",!1);r(this,"isMultipleOptions",!1);r(this,"isItemAccessory",!1);r(this,"currentUserRole",Re.Everybody);r(this,"baseItem");r(this,"navigateToDefaults",new E);r(this,"translate",b(ze));r(this,"dataService",b(Ft));r(this,"store",b(V));r(this,"ref",b(de));r(this,"LEGEND_TAG",mi.Legend);r(this,"isValidLogoLink",!0);r(this,"isValidGmail",!0);r(this,"loading",!1);r(this,"loadingFavicon",!1);r(this,"isOwnerSignal",this.store.selectSignal(Us));r(this,"isRootSignal",this.store.selectSignal(ct));r(this,"canOverwriteStyleSignal",this.store.selectSignal(Is));r(this,"showExtendedContent");r(this,"rolesOptions",te(xe(...ji.map(e=>
1this.translate.get(e.name))).pipe(U(e=>e.map((t,n)=>({name:t,value:ji[n].value})))),{initialValue:[]}));r(this,"orderList",te(xe(...["LAYOUT_SETTINGS.OLDEST_FIRST","LAYOUT_SETTINGS.NEWEST_FIRST"].map(e=>this.translate.get(e))).pipe(U(e=>e.map((t,n)=>({value:t,index:n.toString()})))),{initialValue:[]}));r(this,"positionList",te(xe(...["LAYOUT_SETTINGS.BELOW","LAYOUT_SETTINGS.ABOVE"].map(e=>this.translate.get(e))).pipe(U(e=>e.map((t,n)=>({value:t,index:n.toString()})))),{initialValue:[]}));r(this,"voteTypesList",te(xe(...["LAYOUT_SETTINGS.VOTES_TOTAL","LAYOUT_SETTINGS.VOTES_INDIVIDUAL"].map(e=>this.translate.get(e))).pipe(U(e=>e.map((t,n)=>({name:t,value:["total","individual"][n]})))),{initialValue:[]}));r(this,"whiteLabelOptions",te(xe(...["LAYOUT_SETTINGS.HAZU_LOGO","LAYOUT_SETTINGS.POWERED_BY","LAYOUT_SETTINGS.WHITE_LABEL"].map(e=>this.translate.get(e))).pipe(U(e=>e.map((t,n)=>({name:t,index:n})))),{initialValue:[]}));r(this,"itemsPerPage",te(xe(this.translate.get("LAYOUT_SETTINGS.ALL")).pipe(U(e=>e.map((t,n)=>({value:t,key:n}))),U(e=>e.concat([{value:"5",key:5},{value:"10",key:10},{value:"20",key:20},{value:"50",key:50},{value:"100",key:100}]))),{initialValue:[]}));r(this,"userFeatures",te(this.store.select(Rs),{initialValue:void 0}));r(this,"showAuthentication",!1);r(this,"availableFonts",[{label:"",value:""},...Ki,...ni.filter(e=>!Ki.some(t=>t.label===e.label))]);r(this,"defaultInputType",we.None);r(this,"itemsPerPageOptions",[{value:"5",key:5},{value:"10",key:10},{value:"20",key:20},{value:"50",key:50},{value:"100",key:100}]);r(this,"idxVoteTypes",["total","individual"]);r(this,"inputTypeOptions",[{value:we.None,label:this.translate.instant("FORM.INPUT_TYPE.None"),icon:""},{value:we.Text,label:this.translate.instant("FORM.INPUT_TYPE.Text"),icon:"edit outline"},{value:we.Textarea,label:this.translate.instant("FORM.INPUT_TYPE.Textarea"),icon:"align left"},{value:we.Table,label:this.translate.instant("FORM.INPUT_TYPE.Table"),icon:"th"},{value:we.Number,label:this.translate.instant("FORM.INPUT_TYPE.Number"),icon:"hashtag"},{value:we.Email,label:this.translate.instant("FORM.INPUT_TYPE.Email"),icon:"envelope"},{value:we.Url,label:this.translate.instant("FORM.INPUT_TYPE.Url"),icon:"linkify"},{value:we.Radio,label:this.translate.instant("FORM.INPUT_TYPE.Radio"),icon:"circle outline"},{value:we.Checkbox,label:this.translate.instant("FORM.INPUT_TYPE.Checkbox"),icon:"check square outline"},{value:we.Dropdown,label:this.translate.instant("FORM.INPUT_TYPE.Dropdown"),icon:"caret square down outline"},{value:we.Date,label:this.translate.instant("FORM.INPUT_TYPE.Date"),icon:"calendar"},{value:we.Time,label:this.translate.instant("FORM.INPUT_TYPE.Time"),icon:"clock"},{value:we.Location,label:this.translate.instant("FORM.INPUT_TYPE.Location"),icon:"map marker alternate"},{value:we.File,label:this.translate.instant("FORM.INPUT_TYPE.File"),icon:"file outline"},{value:we.Files,label:this.translate.instant("FORM.INPUT_TYPE.Files"),icon:"copy outline"},{value:we.Image,label:this.translate.instant("FORM.INPUT_TYPE.Image"),icon:"file image outline"},{value:we.Chapter,label:this.translate.instant("FORM.INPUT_TYPE.Chapter"),icon:"list"}]);this.showExtendedContent=this.store.selectSignal(gi),Ce(()=>{var t;let e=this.userFeatures();this.showAuthentication=(t=e==null?void 0:e.authenticationGmailUsername)!=null?t:!1,this.ref.markForCheck()})}isOwner(){return this.isOwnerSignal()}isRoot(){return this.isRootSignal()}canOverwriteStyle(){return this.canOverwriteStyleSignal()}updateLayoutSettings(e){e.styleOverwrites&&this.layoutSettings.styleOverwrites&&(e.styleOverwrites=W(W({},this.layoutSettings.styleOverwrites),e.styleOverwrites)),this.store.dispatch(vt(W(W({},this.layoutSettings),e)))}get layoutSortOrder(){var e,t;return((t=(e=this.layoutSettings)==null?void 0:e.sortOrder)!=null?t:cs.Newest).toString()}get layoutTimelinePosition(){var e,t;return((t=(e=this.layoutSettings)==null?void 0:e.timelinePosition)!=null?t:ps.Below).toString()}get layoutItemsPerPage(){var e,t;return(t=(e=this.layoutSettings)==null?void 0:e.itemsPerPage)!=null?t:0}questionsTabVisible(){var e,t;return(t=(e=this.baseItem)==null?void 0:e.isOpen)!=null?t:!1}chatTabVisible(){var e,t;return(t=(e=this.baseItem)==null?void 0:e.isChatOpen)!=null?t:!1}imagesUpload(e,t){return B(this,null,function*(){let n=yield this.dataService.uploadFile(e[0]);t?(this.layoutSettings.favicon=n.downloadURL,this.updateLayoutSettings({favicon:n.downloadURL})):this.updateLayoutSettings({logo:n.downloadURL}),this.loading=!1,this.loadingFavicon=!1,this.ref.markForCheck()})}updateSortOrder(e){this.updateLayoutSettings({sortOrder:parseInt(e)})}updateTimelinePosition(e){this.updateLayoutSettings({timelinePosition:parseInt(e)})}updateAutoDate(e){this.updateLayoutSettings({autoDate:e})}updateLogoLink(e){this.isValidLogoLink=!e||Wi(e),this.isValidLogoLink&&this.updateLayoutSettings({logoLink:e})}updateGmail(e){this.isValidGmail=e===""||Sa(e),this.isValidGmail&&this.updateLayoutSettings({gmail:e})}uploadFile(e,t=!1){return B(this,null,function*(){e.target.files.length&&(t?this.loadingFavicon=!0:this.loading=!0,yield this.imagesUpload(e.target.files,t))})}changeRole(e){this.updateLayoutSettings({votesRole:e,showResults:fe[e]<=fe[this.currentUserRole]})}updateVotesOptions(e,t,n){this.updateLayoutSettings({voteOptions:{showLikes:e,showDislikes:t,showNeutrals:n}})}updateFormOptions(e,t,n=!1){this.updateLayoutSettings({formOptions:{inputType:e,required:t,hide:n}})}
1openDefaultsPanel(){this.navigateToDefaults.emit()}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-layout-settings"]],inputs:{layoutSettings:"layoutSettings",type:"type",isRootHazu:"isRootHazu",isMultipleOptions:"isMultipleOptions",isItemAccessory:"isItemAccessory",currentUserRole:"currentUserRole",baseItem:"baseItem"},outputs:{navigateToDefaults:"navigateToDefaults"},standalone:!1,decls:29,vars:3,consts:[["popupTemplate",""],["popupHideLegendItemsTemplate",""],["popupShowLiveModeTemplate",""],["popupTitleFontFamilyTemplate",""],["popupContentFontFamilyTemplate",""],["popupWorkspaceSettingsTemplate",""],["popupGraphicalTimelineTemplate",""],["popupElementInfoTemplate",""],["popupShareButtonsTemplate",""],["popupMessengerModeTemplate",""],["popupHidePastTemplate",""],["popupPageTitleTemplate",""],["popupSidebarTemplate",""],["hideHazuTitle",""],["hideSidebar",""],["hideTimeline",""],["showDate",""],["showAuthor",""],["showAssigned",""],["showLocation",""],["showTags",""],["showShareButtons",""],["showLiveMode",""],["messengerMode",""],["hidePast",""],["hideLegendItems",""],["showExtendedContent",""],["logoLink",""],["openStreetMap",""],["osmApiKey",""],["osmServer",""],["gmail",""],["userContentTitleFontFamily",""],["userContentFontFamily",""],["onLikesShown",""],["onDislikesShown",""],["onNeutralsShown",""],["optionTemplateForm",""],["class","ui form settings-mobile-container",4,"ngIf"],["class","ui form settings-mobile-container",3,"ngClass",4,"ngIf"],[1,"ui","form","settings-mobile-container"],[1,"ui","warning","message","defaults-moved-message"],["translate",""],["href","javascript:;","translate","",3,"click","keydown.enter"],[1,"settings-group"],[1,"inline","field"],[1,"label-with-warning"],["fuiPopup","",1,"ui","icon",3,"popupTemplate","popupDelay"],[1,"ui","link","icon","question","outline","circle","large"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public",3,"change","checked","title"],["type","checkbox","name","timelineToggle",3,"change","checked","title"],["class","inline field","hzTab","",4,"ngIf"],["class","settings-group",4,"ngIf"],[1,"inline","field","e2e-share-buttons"],["hzTab","",1,"inline","field"],[1,"ui","select"],["class","fluid","labelField","value","valueField","index",3,"value","options","valueChange",4,"ngIf"],["labelField","value","valueField","index",1,"fluid",3,"valueChange","value","options"],["labelField","value","valueField","key",3,"valueChange","value","options"],[1,"label-with-warning","workspace-settings-label"],[1,"field"],["id","white-label-selector","labelField","name","valueField","index",1,"fluid",3,"valueChange","value","options"],[1,"inline","field","logo-section"],["height","25",3,"src",4,"ngIf"],["class","ui button",3,"click",4,"ngIf"],["type","file","name","file","id","file","accept","image/*",1,"inputfile",3,"change","disabled"],["for","file",1,"ui","button"],[1,"upload","icon"],["type","text",3,"keyup","value"],["height","25",3,"alt","src",4,"ngIf"],["type","file","name","favicon","id","favicon","accept","image/*",1,"inputfile",3,"change","disabled"],["for","favicon",1,"ui","button"],["height","25",3,"src"],[1,"ui","button",3,"click"],[1,"remove","icon"],["height","25",3,"alt","src"],[3,"ngClass"],["class","inline field",4,"ngIf"],["class","field",4,"ngIf"],["type","checkbox","name","public",3,"change","checked"],["id","user-content-title-font-family-selector","labelField","label","valueField","value",1,"fluid",3,"valueChange","value","options"],["id","user-content-font-family-selector","labelField","label","valueField","value",1,"fluid",3,"valueChange","value","options"],["type","checkbox","name","public","data-hz-test","interactionOptsToggleComments",3,"change","checked","title"],["type","checkbox","name","public","data-hz-test","interactionOptsToggleVotes",3,"change","checked","title"],["class","inline field settings","hzTab","",4,"ngIf"],["type","checkbox","name","public","data-hz-test","interactionOptsToggleQuestions",3,"change","checked","title"],["type","checkbox","name","public","data-hz-test","interactionOptsToggleChat",3,"change","checked","title"],["hzTab","",1,"inline","field","settings"],["labelField","name","valueField","value",3,"value","o
1ptions","valueChange",4,"ngIf"],["labelField","name","valueField","value",3,"valueChange","value","options"],[1,"vote-options"],[1,"ui","checkbox"],["type","checkbox","name","public","id","onLikesShown",3,"change","checked","title"],[1,"ui","thumbs","up","icon","grey"],["type","checkbox","name","public","id","onDislikesShown",3,"change","checked","title"],[1,"ui","thumbs","down","icon","grey"],["type","checkbox","name","public","id","onNeutralsShown",3,"change","checked","title"],[1,"ui","times","icon","grey"],[1,"ui","form","settings-mobile-container",3,"ngClass"],["valueField","value",3,"valueChange","value","options","template"],[1,"ui","toggle","checkbox","form-toggle-checkbox"],["type","checkbox","name","required","data-hz-test","formOptsToggleRequired",3,"change","checked","title"],["type","checkbox","name","required","data-hz-test","formOptsToggleHide",3,"change","checked","title"],[1,"ui","icon"],["translate","",1,"content"],["translate","",1,"content",3,"translateParams"]],template:function(t,n){t&1&&y(0,vm,173,78,"div",38)(1,xm,26,13,"div",38)(2,Pm,25,14,"div",39)(3,Mm,2,0,"ng-template",null,0,R)(5,zm,2,3,"ng-template",null,1,R)(7,km,2,0,"ng-template",null,2,R)(9,Vm,2,0,"ng-template",null,3,R)(11,Dm,2,0,"ng-template",null,4,R)(13,Lm,2,0,"ng-template",null,5,R)(15,Am,2,0,"ng-template",null,6,R)(17,Nm,2,0,"ng-template",null,7,R)(19,Rm,2,0,"ng-template",null,8,R)(21,Bm,2,0,"ng-template",null,9,R)(23,Fm,2,0,"ng-template",null,10,R)(25,Um,2,0,"ng-template",null,11,R)(27,Gm,2,0,"ng-template",null,12,R),t&2&&(c("ngIf",n.type==="layout"),p(),c("ngIf",n.type==="interaction"),p(),c("ngIf",n.type==="form"))},dependencies:[X,k,H,Ie,Se,oe,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:block;max-width:24em}@container sidebar (max-width: $large-breakpoint){[_nghost-%COMP%]{max-width:100vw}}@media only screen and (max-width:992px){[_nghost-%COMP%]{max-width:100vw}}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]{max-width:100vw}}[_nghost-%COMP%]   .ui.message[_ngcontent-%COMP%], [_nghost-%COMP%]   .ui.warning.message[_ngcontent-%COMP%], [_nghost-%COMP%]   .ui.info.message[_ngcontent-%COMP%]{word-wrap:break-word;overflow-wrap:break-word;white-space:normal}[_nghost-%COMP%]   h3[_ngcontent-%COMP%]{text-wrap:auto;word-wrap:break-word;overflow-wrap:break-word}@supports (-moz-appearance: none){.field.inline[_ngcontent-%COMP%]{position:relative}.field.inline[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{position:absolute;right:0;top:0}}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:.9em}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.settings-mobile-container.form-container[_ngcontent-%COMP%]{height:350px}.settings-mobile-container[_ngcontent-%COMP%]   .settings-group[_ngcontent-%COMP%]{margin-bottom:1em;padding-bottom:0}.settings-mobile-container[_ngcontent-%COMP%]   .settings-group[_ngcontent-%COMP%]:last-child{margin-bottom:0}.settings-mobile-container[_ngcontent-%COMP%]   .settings-group[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem;margin-top:.5em}.settings-mobile-container[_ngcontent-%COMP%]   .osm-container[_ngcontent-%COMP%]{border:1px solid rgb(128,128,128);border-radius:5px;margin-bottom:5px;padding:5px}.settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]{display:flex!important;line-height:1em;align-items:center}.settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:3px}.settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning.workspace-sett
1ings-label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{margin-bottom:0}@container sidebar (max-width: 767px){.settings-mobile-container[_ngcontent-%COMP%]{padding-bottom:100px!important}}@media only screen and (max-width:767px){.settings-mobile-container[_ngcontent-%COMP%]{padding-bottom:100px!important}}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .settings[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .settings[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]{align-items:baseline;display:flex;flex-wrap:nowrap;gap:.3rem;max-width:50%}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .settings[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:0}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .settings[_ngcontent-%COMP%]   .vote-options[_ngcontent-%COMP%]   .ui.checkbox[_ngcontent-%COMP%]{flex-shrink:0}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .ui.checkbox[_ngcontent-%COMP%]{padding-top:.2rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:500;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]     hz-select .selection.ui.dropdown, [_nghost-%COMP%]     fui-select .selection.ui.dropdown{min-width:160px}[_nghost-%COMP%]     hz-defaults-settings-editor .field.inline h2{font-size:1rem!important}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-right:.4em}[_nghost-%COMP%]   .ui.toggle.checkbox.form-toggle-checkbox[_ngcontent-%COMP%]{margin-right:-15px}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.ui.secondary.pointing.menu   [_nghost-%COMP%]     .active.item{border:none}.logo-section[_ngcontent-%COMP%], .logo-section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0!important;overflow:hidden;position:absolute;width:.1px!important;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]{margin-left:.3em;margin-right:0;max-width:inherit;padding:.4em}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0!important}.errored[_ngcontent-%COMP%]{border:1px solid red!important}"],changeDetection:0}));let o=s;return o})();var xc=$e(Ke());function Ic(o){return[{label:"TABLE_SETTINGS.COLUMNS_TITLE.ICON_TITLE",settingsField:"showIconTitleColumn",order:o.order.indexOf("showIconTitleColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.CONTENT",settingsField:"showContentColumn",order:o.order.indexOf("showContentColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.AUTHOR",settingsField:"showAuthorColumn",order:o.order.indexOf("showAuthorColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.LOCATION",settingsField:"showLocationColumn",order:o.order.indexOf("showLocationColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.ASSIGNED",settingsField:"showAssignedColumn",order:o.order.indexOf("showAssignedColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.DATE",settingsField:"showDateColumn",order:o.order.indexOf("showDateColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.DURATION",settingsField:"showDurationColumn",order:o.order.indexOf("showDurationColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.DATE_CREATED",settingsField:"showDateCreatedColumn",order:o.order.indexOf("showDateCreatedColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.COMMENTS",settingsField:"showCommentsColumn",order:o.order.indexOf("showCommentsColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.VOTES",settingsField:"showVotesColumn",order:o.order.indexOf("showVotesColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.PRIVACY",settingsField:"showPrivacyColumn",order:o.order.indexOf("showPrivacyColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.SHARING",settingsField:"showSharingColumn",order:o.order.indexOf("showSharingColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.SETTINGS",settingsField:"showSettingsColumn",order:o.order.indexOf("showSettingsColumn")}
1,{label:"TABLE_SETTINGS.COLUMNS_TITLE.SMARTGROUPING",settingsField:"showSmartGrouping",order:o.order.indexOf("showSmartGrouping")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.TIMELINE",settingsField:"showTimelineColumn",order:o.order.indexOf("showTimelineColumn")},{label:"TABLE_SETTINGS.COLUMNS_TITLE.PATH",settingsField:"showPathColumn",order:o.order.indexOf("showPathColumn")}]}function Ym(o,s){if(o&1){let i=O();a(0,"hz-select",12),h("valueChange",function(t){m(i);let n=d(2);return n.tableSettings.sortBy=t,_(n.updateTableSettings())}),l()}if(o&2){let i=s.ngIf,e=d(2);c("value",(e.tableSettings==null?null:e.tableSettings.sortBy)||"")("options",i)}}function Wm(o,s){if(o&1&&(a(0,"div",3)(1,"label")(2,"h3",4),C(3,"TABLE_SETTINGS.ITEM_ORDER"),l()(),a(4,"div",10),y(5,Ym,1,2,"hz-select",11),f(6,"async"),l()()),o&2){let i=d();p(5),c("ngIf",v(6,1,i.sortByList$))}}function $m(o,s){if(o&1){let i=O();a(0,"hz-select",12),h("valueChange",function(t){m(i);let n=d(2);return _(n.changeSmartGroupingBy(t))}),l()}if(o&2){let i=d(2);c("value",(i.tableSettings==null?null:i.tableSettings.smartGroupingBy)||"colorAndIcon")("options",i.smartGroupingByParameters)}}function Qm(o,s){if(o&1&&(a(0,"div",3)(1,"label")(2,"h3",4),C(3,"TABLE_SETTINGS.SMARTGROUPING_BY"),l()(),a(4,"div",10),y(5,$m,1,2,"hz-select",11),l()()),o&2){let i=d();p(5),c("ngIf",i.smartGroupingByParameters)}}function Km(o,s){if(o&1){let i=O();a(0,"hz-select",14),h("valueChange",function(t){m(i);let n=d(2);return n.tableSettings.showSmartGroupingParameter=t,_(n.updateTableSettings())}),l()}if(o&2){let i=d(2);c("value",i.getSmartGroupingParameterKey(i.tableSettings==null?null:i.tableSettings.showSmartGroupingParameter))("isDisabled",!(i.tableSettings!=null&&i.tableSettings.showSmartGrouping))("options",i.showSmartGroupingParameters)}}function qm(o,s){if(o&1&&(a(0,"div",3)(1,"label")(2,"h3",4),C(3,"TABLE_SETTINGS.COLUMNS_TITLE.SHOW"),l()(),a(4,"div",10),y(5,Km,1,3,"hz-select",13),l()()),o&2){let i=d();p(5),c("ngIf",i.showSmartGroupingParameters)}}function Zm(o,s){o&1&&S(0,"div",18)}function Jm(o,s){if(o&1){let i=O();a(0,"div",15),h("cdkDragStarted",function(){m(i);let t=d();return _(t.startDrag())}),y(1,Zm,1,0,"div",16),a(2,"div",17)(3,"label")(4,"h3",4),C(5),f(6,"translate"),l()(),a(7,"div",5)(8,"input",6),h("change",function(){let t=m(i).$implicit,n=d();return n.tableSettings[t.settingsField]=!n.tableSettings[t.settingsField],_(n.updateTableSettings())}),l(),S(9,"label"),l()()()}if(o&2){let i=s.$implicit,e=d();c("cdkDragStartDelay",e.isMobile||e.platform.IOS||e.platform.ANDROID?"300":"0"),p(5),N(v(6,3,i.label)),p(3),c("checked",e.tableSettings[i.settingsField])}}var Ec=(()=>{let s=class s{constructor(e,t,n){r(this,"store");r(this,"platform");r(this,"translate");r(this,"tableSettings");r(this,"isMobile",!1);r(this,"sortByList$");r(this,"idxSortBy",["","titleText","displayName","authorLocation","moderator","dateCreated","totalComments","totalScore","privacy"]);r(this,"showSmartGroupingParameters",[]);r(this,"smartGroupingByParameters",[]);r(this,"_canceledByEsq",!1);r(this,"columns",[]);this.store=e,this.platform=t,this.translate=n;let u=["TABLE_SETTINGS.SELECT_COLUMN","TABLE_SETTINGS.COLUMNS_TITLE.ICON_TITLE","TABLE_SETTINGS.COLUMNS_TITLE.AUTHOR","TABLE_SETTINGS.COLUMNS_TITLE.LOCATION","TABLE_SETTINGS.COLUMNS_TITLE.ASSIGNED","TABLE_SETTINGS.COLUMNS_TITLE.DATE_CREATED","TABLE_SETTINGS.COLUMNS_TITLE.COMMENTS","TABLE_SETTINGS.COLUMNS_TITLE.VOTES","TABLE_SETTINGS.COLUMNS_TITLE.PRIVACY"];this.sortByList$=xe(...u.map(g=>this.translate.get(g))).pipe(U(g=>g.map((w,I)=>({value:w,key:this.idxSortBy[I]})))),this.updateSmartGroupingParameters(),this.smartGroupingByParameters=[{key:"colorAndIcon",value:this.translate.instant("TABLE_SETTINGS.SMARTGROUPING_BY_COLOR_AND_ICON")},{key:"title",value:this.translate.instant("TABLE_SETTINGS.SMARTGROUPING_BY_TITLE")}]}onEscUp(e){this._canceledByEsq=!0,document.dispatchEvent(new Event("mouseup"))}ngOnChanges(e){e.tableSettings&&(this.setColumns(),this.updateSmartGroupingParameters())}updateSmartGroupingParameters(){var e;this.showSmartGroupingParameters=((e=this.tableSettings)==null?void 0:e.smartGroupingBy)==="title"?[{key:"icon",value:this.translate.instant("TABLE_SETTINGS.COLUMNS_TITLE.ICON")},{key:"content",value:this.translate.instant("TABLE_SETTINGS.COLUMNS_TITLE.CONTENT")}]:[{key:"title",value:this.translate.instant("TABLE_SETTINGS.COLUMNS_TITLE.TITLE")},{key:"content",value:this.translate.instant("TABLE_SETTINGS.COLUMNS_TITLE.CONTENT")}]}getSmartGroupingParameterKey(e){var t,n,u,g;return e?(g=(u=(n=this.showSmartGroupingParameters.find(w=>w.key===e))==null?void 0:n.key)!=null?u:this.showSmartGroupingParameters[0].key)!=null?g:"":(t=this.showSmartGroupingParameters[0].key)!=null?t:""}changeSmartGroupingBy(e){var t;this.tableSettings&&(this.tableSettings.smartGroupingBy=e,this.updateSmartGroupingParameters(),this.tableSettings.showSmartGroupingParameter=this.getSmartGroupingParameterKey((t=this.tableSettings)==null?void 0:t.showSmartGroupingParameter)),this.updateTableSettings()}updateTableSettings(){this.tableSettings&&this.store.dispatch(Bn(this.tableSettings))}startDrag(){this._canceledByEsq=!1}endDrag(e){!this._canceledByEsq&&this.tableSettings&&(this.arraymove(this.tableSettings.order,e.previousIndex,e.currentIndex),this.setColumns(),this.updateTableSettings())}setColumns(){this.tableSettings&&(this.columns=Ic(this.tableSettings),this.columns=(0,xc.sortBy)(this.columns,["order"]))}arraymove(e,t,n){let u=e[t];e.splice(t,1),e.splice(n,0,u)}};r(s,"\u0275fac",function(t){return new(t||s)(M(V),M(Zn),M(ze))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-table-settings"]],hostBindings:function(t,n){t&1&&h("keyup.esc",function(g){return n.onEscUp(g)},tn)},inputs:{tableSettings:"tableSettings",isMobile:"isMobile"},standalone:!1,features:[be],decls:31,vars:11,consts:[[1,"ui","form","layout-sett
1ings"],["translate","",1,"ui","info","message"],["class","inline field",4,"ngIf"],[1,"inline","field"],["translate",""],[1,"ui","toggle","checkbox"],["type","checkbox","name","public",3,"change","checked"],["type","checkbox","name","highlightActiveCell",3,"change","checked","disabled"],["cdkDropList","",3,"cdkDropListDropped"],["class","inline field columns","cdkDrag","",3,"cdkDragStartDelay","cdkDragStarted",4,"ngFor","ngForOf"],[1,"ui","select"],["class","fluid","labelField","value","valueField","key",3,"value","options","valueChange",4,"ngIf"],["labelField","value","valueField","key",1,"fluid",3,"valueChange","value","options"],["class","fluid","labelField","value","valueField","key",3,"value","isDisabled","options","valueChange",4,"ngIf"],["labelField","value","valueField","key",1,"fluid",3,"valueChange","value","isDisabled","options"],["cdkDrag","",1,"inline","field","columns",3,"cdkDragStarted","cdkDragStartDelay"],["class","custom-placeholder",4,"cdkDragPlaceholder"],[1,"table-settings-row"],[1,"custom-placeholder"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1),C(2,"TABLE_SETTINGS.DESCRIPTION"),l(),y(3,Wm,7,3,"div",2),f(4,"async"),a(5,"div",3)(6,"label")(7,"h3",4),C(8,"TABLE_SETTINGS.COLUMNS_TITLE.TOTAL"),l()(),a(9,"div",5)(10,"input",6),h("change",function(){return n.tableSettings.showTableTotals=!n.tableSettings.showTableTotals,n.updateTableSettings()}),l(),S(11,"label"),l()(),a(12,"div",3)(13,"label")(14,"h2",4),C(15,"TABLE_SETTINGS.SMARTGROUPING"),l()()(),y(16,Qm,6,1,"div",2)(17,qm,6,1,"div",2),a(18,"div",3)(19,"label")(20,"h3",4),C(21,"TABLE_SETTINGS.HIGHLIGHT_ACTIVE_CELL"),l()(),a(22,"div",5)(23,"input",7),h("change",function(){return n.tableSettings.highlightActiveCell=!n.tableSettings.highlightActiveCell,n.updateTableSettings()}),l(),S(24,"label"),l()(),a(25,"div",3)(26,"label")(27,"h2",4),C(28,"TABLE_SETTINGS.COLUMNS"),l()()(),a(29,"div",8),h("cdkDropListDropped",function(g){return n.endDrag(g)}),y(30,Jm,10,5,"div",9),l()()),t&2&&(p(3),c("ngIf",v(4,9,n.sortByList$)),p(7),c("checked",n.tableSettings.showTableTotals),p(6),c("ngIf",n.smartGroupingByParameters),p(),c("ngIf",n.showSmartGroupingParameters),p(5),G("disabled",!(n.tableSettings!=null&&n.tableSettings.showSmartGrouping)),p(),c("checked",n.tableSettings.highlightActiveCell)("disabled",!(n.tableSettings!=null&&n.tableSettings.showSmartGrouping)),p(7),c("ngForOf",n.columns))},dependencies:[Qe,k,H,Se,ml,dl,_l,ce,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}@supports (-moz-appearance: none){.field.inline[_ngcontent-%COMP%]{position:relative}.field.inline[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{position:absolute;right:0;top:0}}.layout-settings[_ngcontent-%COMP%]{max-height:70vh;overflow:auto}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;line-height:3rem;margin:.9em 0;width:100%}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-right:4.5rem}.layout-settings[_ngcontent-%COMP%]   .custom-placeholder[_ngcontent-%COMP%]{background:#767676;border-radius:.3em;cursor:grabbing;min-height:35px;transition:transform .25s cubic-bezier(0,0,.2,1)}.layout-settings[_ngcontent-%COMP%]   .field.inline.columns[_ngcontent-%COMP%]:hover{background:#00000008;border-radius:.3em;cursor:pointer}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{padding:.5em 1em 1.5em 1.7em;width:27em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:inherit}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:500;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-right:.4em}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.ui.secondary.pointing.menu   [_nghost-%COMP%]     .active.item{border:none}.logo-section[_ngcontent-%COMP%], .logo-section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;justify-content:space-between}
1.inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0!important;overflow:hidden;position:absolute;width:.1px!important;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]{margin-left:.3em;margin-right:0;max-width:inherit;padding:.4em}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0!important}.errored[_ngcontent-%COMP%]{border:1px solid red!important}@container sidebar (max-width: 767px){.layout-settings[_ngcontent-%COMP%]{max-height:calc(100vh - 55px)}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{width:auto}}@media only screen and (max-width:767px){.layout-settings[_ngcontent-%COMP%]{max-height:calc(100vh - 55px)}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{width:auto}}"],changeDetection:0}));let o=s;return o})();function e_(o,s){if(o&1){let i=O();a(0,"div",7)(1,"label")(2,"h3",4),C(3,"BOARDS_SETTINGS.COLUMN_GROUPING"),l()(),a(4,"div",8)(5,"hz-select",9),h("valueChange",function(t){m(i);let n=d();return _(n.updateBoardsSettings({columnGrouping:t}))}),l()()()}if(o&2){let i=s.ngIf,e=d();p(5),c("value",e.boardsSettings.columnGrouping)("options",i)}}var Pc=(()=>{let s=class s{constructor(e,t,n){r(this,"translate");r(this,"itemsService");r(this,"store");r(this,"boardsSettings");r(this,"saveSuccess",new E);r(this,"columnGroupingOptions");this.translate=e,this.itemsService=t,this.store=n,this.columnGroupingOptions=xe(...["BOARDS_SETTINGS.COLUMN_GROUPING_COLOR_AND_ICON","BOARDS_SETTINGS.COLUMN_GROUPING_COLOR","BOARDS_SETTINGS.COLUMN_GROUPING_ICON"].map(u=>this.translate.get(u))).pipe(U(u=>u.map((g,w)=>({value:g,key:Object.values(ns)[w]}))))}save(){this.saveSuccess.emit()}updateBoardsSettings(e){this.store.dispatch(Fn(W(W({},this.boardsSettings),e)))}};r(s,"\u0275fac",function(t){return new(t||s)(M(ze),M(ue),M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-boards-settings"]],inputs:{boardsSettings:"boardsSettings"},outputs:{saveSuccess:"saveSuccess"},standalone:!1,decls:12,vars:4,consts:[[1,"ui","form","boards-settings"],["translate","",1,"ui","info","message"],["class","inline field","hzTab","",4,"ngIf"],[1,"inline","field"],["translate","",1,"default"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public","data-hz-test","boards-wrap-columns-checkbox",3,"change","checked"],["hzTab","",1,"inline","field"],[1,"ui","select"],["labelField","value","valueField","key","data-hz-test","boards-column-grouping-select",3,"valueChange","value","options"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1),C(2,"BOARDS_SETTINGS.DESCRIPTION"),l(),y(3,e_,6,2,"div",2),f(4,"async"),a(5,"div",3)(6,"label")(7,"h3",4),C(8,"BOARDS_SETTINGS.WRAP_COLUMNS"),l()(),a(9,"div",5)(10,"input",6),h("change",function(){return n.boardsSettings.wrapColumns=!n.boardsSettings.wrapColumns,n.updateBoardsSettings({wrapColumns:n.boardsSettings.wrapColumns})}),l(),S(11,"label"),l()()()),t&2&&(p(3),c("ngIf",v(4,2,n.columnGroupingOptions)),p(7),c("checked",n.boardsSettings.wrapColumns))},dependencies:[k,H,Se,oe,ce],styles:[".field.inline[_ngcontent-%COMP%]{line-height:3rem;margin-bottom:0;min-height:3rem}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{padding:.5em 1em 1.5em 1.7em;width:32em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{color:#7f7f7f;font-weight:500}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;padding-top:.7rem}"],changeDetection:0}));let o=s;return o})();function i_(o,s){if(o&1){let i=O();a(0,"div",4)(1,"label")(2,"h3",5),C(3,"GEO_VIEW_SETTINGS.MAP_TYPE"),l()(),a(4,"div",6)(5,"hz-select",7),h("valueChange",function(t){m(i);let n=d();return _(n.updateGeoViewSettings({mapType:t}))}),l()()()}if(o&2){let i=s.ngIf,e=d();p(5),c("value",e.geoViewSettings.mapType)("options",i)}}function n_(o,s){if(o&1){let i=O();a(0,"div",8)(1,"label")(2,"h3",5),C(3,"GEO_VIEW_SETTINGS.SHOW_TERRAIN"),l(
1)(),a(4,"div",9)(5,"input",10),h("change",function(){m(i);let t=d();return _(t.updateGeoViewSettings({showTerrain:!t.geoViewSettings.showTerrain}))}),l(),S(6,"label"),l()()}if(o&2){let i=d();p(5),c("checked",i.geoViewSettings.showTerrain)}}function o_(o,s){if(o&1){let i=O();a(0,"div",8)(1,"label")(2,"h3",5),C(3,"GEO_VIEW_SETTINGS.SHOW_LABELS"),l()(),a(4,"div",9)(5,"input",11),h("change",function(){m(i);let t=d();return _(t.updateGeoViewSettings({showLabels:!t.geoViewSettings.showLabels}))}),l(),S(6,"label"),l()()}if(o&2){let i=d();p(5),c("checked",i.geoViewSettings.showLabels)}}var Mc=(()=>{let s=class s{constructor(e,t){r(this,"translate");r(this,"store");r(this,"geoViewSettings");r(this,"mapTypeOptions");this.translate=e,this.store=t,this.mapTypeOptions=xe(...["GEO_VIEW_SETTINGS.MAP_TYPE_ROADMAP","GEO_VIEW_SETTINGS.MAP_TYPE_SATELLITE"].map(n=>this.translate.get(n))).pipe(U(n=>n.map((u,g)=>({value:u,key:["roadmap","satellite"][g]}))))}updateGeoViewSettings(e){this.store.dispatch(Un(W(W({},this.geoViewSettings),e)))}get showTerrainOption(){return this.geoViewSettings.mapType==="roadmap"}get showLabelsOption(){return this.geoViewSettings.mapType==="satellite"}};r(s,"\u0275fac",function(t){return new(t||s)(M(ze),M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-geo-view-settings"]],inputs:{geoViewSettings:"geoViewSettings"},standalone:!1,decls:7,vars:5,consts:[[1,"ui","form","geo-view-settings"],["translate","",1,"ui","info","message"],["class","inline field","hzTab","",4,"ngIf"],["class","inline field",4,"ngIf"],["hzTab","",1,"inline","field"],["translate","",1,"default"],[1,"ui","select"],["labelField","value","valueField","key","data-hz-test","geo-map-type-select",3,"valueChange","value","options"],[1,"inline","field"],[1,"ui","toggle","checkbox"],["type","checkbox","data-hz-test","geo-show-terrain-checkbox",3,"change","checked"],["type","checkbox","data-hz-test","geo-show-labels-checkbox",3,"change","checked"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1),C(2,"GEO_VIEW_SETTINGS.DESCRIPTION"),l(),y(3,i_,6,2,"div",2),f(4,"async"),y(5,n_,7,1,"div",3)(6,o_,7,1,"div",3),l()),t&2&&(p(3),c("ngIf",v(4,3,n.mapTypeOptions)),p(2),c("ngIf",n.showTerrainOption),p(),c("ngIf",n.showLabelsOption))},dependencies:[k,H,Se,oe,ce],styles:[".field.inline[_ngcontent-%COMP%]{line-height:3rem;margin-bottom:0;min-height:3rem}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{padding:.5em 1em 1.5em 1.7em;width:32em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{color:#7f7f7f;font-weight:500}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;padding-top:.7rem}"],changeDetection:0}));let o=s;return o})();var Kt=o=>({disabled:o}),s_=o=>({isOff:o}),zc=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"settings");this.store=e}updateSettings(e){this.store.dispatch(Hn(Object.assign({},this.settings,e)))}updateOnItemCreated(e){this.updateSettings({onItemCreated:e})}updateOnEventCreated(e){this.updateSettings({onEventCreated:e})}updateOnQuestionCreated(e){this.updateSettings({onQuestionCreated:e})}updateOnCommentCreated(e){this.updateSettings({onCommentCreated:e})}updateOnChatCreated(e){this.updateSettings({onChatCreated:e})}updateManualNotification(e){this.updateSettings({manualNotification:e})}setNotificationsOff(){this.updateSettings(this.updateAllRoles(!1,!1,!1,!1))}setNotifyOwnerAndAdmin(){this.updateSettings(this.updateAllRoles(!0,!0,!1,!1))}setNotifyEveryone(){this.updateSettings(this.updateAllRoles(!0,!0,!0,!0))}setEmailNotificationSetting(e){this.updateSettings({onEmailNotification:e})}updateAllRoles(e,t,n,u){return{notify:{owner:e,admin:t,viewer:n,moderator:u}}}checkAllCreatedEvents(){this.isOff||(this.isAllCreatedChecked?this.updateSettings({onCommentCreated:!1,onChatCreated:!1,onEventCreated:!1,onItemCreated:!1,onQuestionCreated:!1}):this.updateSettings({onCommentCreated:!0,onChatCreated:!0,onEventCreated:!0,onItemCreated:!0,onQuestionCreated:!0}))}get isAllCreatedChecked(){var e,t,n,u,g;return((e=this.settings)==null?void 0:e.onItemCreated)&&((t=this.settings)==null?void 0:t.onEventCreated)&&((n=this.settings)==null?void 0:n.onQuestionCreated)&&((u=this.settings)==null?void 0:u.onCommentCreated)&&((g=this.settings)==null?void 0:g.onChatCreated)}get isOff(){return!this.isForEveryone&&!this.isOnlyForAdminsAndOwners}get isOnlyForAdminsAndOwners(){var e,t,n,u;return((e=this.settings)==null?void 0:e.notify.admin)&&((t=this.settings)==null?void 0:t.notify.owner)&&!((n=this.settings)!=null&&n.notify.moderator)&&!((u=this.settings)!=null&&u.notify.viewer)}get isForEveryone(){var e,t,n,u;return((e=this.settings)==null?void 0:e.notify.admin)&&((t=this.settings)==null?void 0:t.notify.owner)&&((n=this.settings)==null?void 0:n.notify.moderator)&&((u=this.settings)==null?void 0:u.notify.viewer)}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-notification-settings"]],inputs:{settings:"settings"},standalone:!1,decls:127,vars:69,consts:[["notifyModerator",""],["notifyViewer",""],["notifyAdmin",""],["emailNotify",""],["onItemCreated",""],["onEventCreated",""],["onQuestionCreated",""],["onCommentCreated",""],["onChatCreated",""],["manualNotification",""],[1,"ui","form","settings-mobile-container"],["translate","",1,"ui","info","message"],["translate","",1,"form-title"],[1,"inline","field","settings-options"],[1,"ui","radio","checkbox"],["type","radio","name","public","id","Off",3,"click","checked"],["for","Off"],["translate",""],["type","radio","name","public","id","OwnerAndAdmin",3,"click","checked","title"],["for","OwnerAndAdmin"],["type","radio","name","public","id","Everyone",3,"click","checked","title"],["for","Everyone"],[1,"email-notification","inline","field",3,"ngClass"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public",3,"change","checked","title"],[1,"field","inline",3,"ngClass"],[1,"ui","collapsing","very","basic","unstackable","table"],["fuiPopup","",3,"popupText","popupDelay","popupInverted"],[3,"click","ngClass"],[1,"ui","icon","fa-plus"],[3,"ngClass"],["for","OnItemCreated",1,"event-option"],["translate","",1,"settings-options"],[1,"ui","checkbox"],["type","checkbox","name","public","id","OnItemCreated",3,"change","checked","title"],["for","OnHazuCreated",1,"event-option"],["type","checkbox","name","public","id","OnHazuCreated",3,"change","checked","title"],["for","OnQuestionCreated",1,"event-option"],["type","checkbox","name","public","id","OnQuestionCreated",3,"change","checked","title"],["for","OnCommentCreated",1,"event-option"],["type","checkbox","name","public","id","OnCommentCreated",3,"change","checked","title"],["for","onChatCreated",1,"event-option"],["type","checkbox","name","public","id","OnChatCreated",3,"change","checked","title"],[1,"enable-manual-notification","inline","field",3,"ngClass"]],template:function(t,n){if(t&1){let u=O();a(0,"div",10)(1,"div",11),C(2,"NOTIFICATION_SETTINGS.DESCRIPTION"),l(),a(3,"label")(4,"h3",12),C(5,"NOTIFICATION_SETTINGS.NOTIFY"),l()(),a(6,"div",13)(7,"div",14)(8,"input",15,0),h("click",function(){return m(u),_(n.setNotificationsOff())}),l(),S(10,"label"),l(),a(11,"label",16)(12,"h3",17),C(13,"NOTIFICATION_SETTINGS.OFF_LABEL"),l()()(),a(14,"div",13)(15,"div",14)(16,"input",18,1),f(18,"translate"),h("click",function(){return m(u),_(n.setNotifyOwnerAndAdmin())}),l(),S(19,"label"),l(),a(20,"label",19)(21,"h3",17),C(22,"NOTIFICATION_SETTINGS.ADM
1INS_AND_OWNERS_LABEL"),l()()(),a(23,"div",13)(24,"div",14)(25,"input",20,2),f(27,"translate"),h("click",function(){return m(u),_(n.setNotifyEveryone())}),l(),S(28,"label"),l(),a(29,"label",21)(30,"h3",17),C(31,"NOTIFICATION_SETTINGS.EVERYONE_LABEL"),l()()(),a(32,"div",22)(33,"label")(34,"h3",17),C(35,"NOTIFICATION_SETTINGS.EMAIL_NOTIFICATION_LABEL"),l(),a(36,"span",17),C(37,"NOTIFICATION_SETTINGS.EMAIL_NOTIFICATION_DESC"),l()(),a(38,"div",23)(39,"input",24,3),f(41,"translate"),h("change",function(){return m(u),n.settings.onEmailNotification=!n.settings.onEmailNotification,_(n.setEmailNotificationSetting(n.settings.onEmailNotification))}),l(),S(42,"label"),l()(),a(43,"div",25)(44,"label")(45,"h3",12),C(46,"NOTIFICATION_SETTINGS.EVENT_LABEL"),l(),a(47,"span",17),C(48,"NOTIFICATION_SETTINGS.EVENT_DESC"),l()(),a(49,"table",26)(50,"thead")(51,"tr"),S(52,"th"),a(53,"th")(54,"div",27),f(55,"translate"),a(56,"label",28),h("click",function(){return m(u),_(n.checkAllCreatedEvents())}),S(57,"i",29),l()()(),S(58,"th")(59,"th"),l()(),a(60,"tbody")(61,"tr",30)(62,"td")(63,"label",31)(64,"h3",32),C(65," NOTIFICATION_SETTINGS.ITEM_LABEL "),l()()(),a(66,"td")(67,"div",33)(68,"input",34,4),f(70,"translate"),h("change",function(){m(u);let w=x(69);return _(n.updateOnItemCreated(w.checked))}),l(),S(71,"label"),l()()(),a(72,"tr",30)(73,"td")(74,"label",35)(75,"h3",32),C(76," NOTIFICATION_SETTINGS.HAZU_LABEL "),l()()(),a(77,"td")(78,"div",33)(79,"input",36,5),f(81,"translate"),h("change",function(){m(u);let w=x(80);return _(n.updateOnEventCreated(w.checked))}),l(),S(82,"label"),l()()(),a(83,"tr",30)(84,"td")(85,"label",37)(86,"h3",32),C(87," NOTIFICATION_SETTINGS.QUESTION_LABEL "),l()()(),a(88,"td")(89,"div",33)(90,"input",38,6),f(92,"translate"),h("change",function(){m(u);let w=x(91);return _(n.updateOnQuestionCreated(w.checked))}),l(),S(93,"label"),l()()(),a(94,"tr",30)(95,"td")(96,"label",39)(97,"h3",32),C(98," NOTIFICATION_SETTINGS.COMMENT_LABEL "),l()()(),a(99,"td")(100,"div",33)(101,"input",40,7),f(103,"translate"),h("change",function(){m(u);let w=x(102);return _(n.updateOnCommentCreated(w.checked))}),l(),S(104,"label"),l()()(),a(105,"tr",30)(106,"td")(107,"label",41)(108,"h3",32),C(109," NOTIFICATION_SETTINGS.CHAT_LABEL "),l()()(),a(110,"td")(111,"div",33)(112,"input",42,8),f(114,"translate"),h("change",function(){m(u);let w=x(113);return _(n.updateOnChatCreated(w.checked))}),l(),S(115,"label"),l()()()()()(),a(116,"div",43)(117,"label")(118,"h3",17),C(119,"NOTIFICATION_SETTINGS.ENABLE_MANUAL_NOTIFICATIONS_LABEL"),l(),a(120,"span",17),C(121,"NOTIFICATION_SETTINGS.MANUAL_NOTIFICATIONS_DESC"),l()(),a(122,"div",23)(123,"input",24,9),f(125,"translate"),h("change",function(){var w;return m(u),n.settings.manualNotification=!n.settings.manualNotification,_(n.updateManualNotification((w=n.settings==null?null:n.settings.manualNotification)!=null?w:!1))}),l(),S(126,"label"),l()()()}t&2&&(p(8),c("checked",n.isOff),p(8),c("checked",n.isOnlyForAdminsAndOwners)("title",v(18,31,"NOTIFICATION_SETTINGS.ADMINS_AND_OWNERS_LABEL")),p(9),c("checked",n.isForEveryone)("title",v(27,33,"NOTIFICATION_SETTINGS.EVERYONE_LABEL")),p(7),c("ngClass",T(51,Kt,n.isOff)),p(7),c("checked",n.settings.onEmailNotification)("title",v(41,35,"NOTIFICATION_SETTINGS.EMAIL_NOTIFICATION_LABEL")),p(4),c("ngClass",T(53,Kt,n.isOff)),p(11),c("popupText",v(55,37,"NOTIFICATIONS.ON_CREATE"))("popupDelay",300)("popupInverted",!0),p(2),c("ngClass",T(55,s_,n.isOff)),p(5),c("ngClass",T(57,Kt,n.isOff)),p(7),c("checked",n.settings==null?null:n.settings.onItemCreated)("title",v(70,39,"NOTIFICATION_SETTINGS.ITEM_LABEL")),p(4),c("ngClass",T(59,Kt,n.isOff)),p(7),c("checked",n.settings==null?null:n.settings.onEventCreated)("title",v(81,41,"NOTIFICATION_SETTINGS.HAZU_LABEL")),p(4),c("ngClass",T(61,Kt,n.isOff)),p(7),c("checked",n.settings==null?null:n.settings.onQuestionCreated)("title",v(92,43,"NOTIFICATION_SETTINGS.QUESTION_LABEL")),p(4),c("ngClass",T(63,Kt,n.isOff)),p(7),c("checked",n.settings==null?null:n.settings.onCommentCreated)("title",v(103,45,"NOTIFICATION_SETTINGS.COMMENT_LABEL")),p(4),c("ngClass",T(65,Kt,n.isOff)),p(7),c("checked",n.settings==null?null:n.settings.onChatCreated)("title",v(114,47,"NOTIFICATION_SETTINGS.CHAT_LABEL")),p(4),c("ngClass",T(67,Kt,n.isOff)),p(7),c("checked",n.settings==null?null:n.settings.manualNotification)("title",v(125,49,"NOTIFICATION_SETTINGS.ENABLE_MANUAL_NOTIFICATIONS_LABEL")))},dependencies:[X,H,Ie,L],styles:["[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{padding:.5em 1em 1.5em 1.7em;width:27em}.ui.form[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:14px}[_nghost-%COMP%]   .settings-options[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:500;margin-bottom:0}[_nghost-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(span)   h3[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:has(span)   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-top:.4em}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}[_nghost-%COMP%]   .event-option[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:500;margin-bottom:0!important;width:fit-content}[_nghost-%COMP%]   table.ui.table[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%]   .ui.table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   td[_ngcontent-%COMP%]{border-top:0!important}[_nghost-%COMP%]   .ui.table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]{border-bottom:0!important}[_nghost-%COMP%]   .settings-options[_ngcontent-%COMP%]{margin-left:2em}[_nghost-%COMP%]   h3[_ngcontent-%COMP%]:not(.form-title):hover, [_nghost-%COMP%]   thead[_ngcontent-%COMP%]   th[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]:not(.isOff)   i.icon[_ngcontent-%COMP%]:hover{cursor:pointer}.email-notification[_ngcontent-%COMP%], .enable-manual-notification[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.email-notification[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%], .enable-manual-notification[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{margin:0}"]}));let o=s;return o}
1)();var kc=$e(Ke());var ie=o=>({default:o});function l_(o,s){if(o&1&&(a(0,"div",14),C(1),f(2,"translate"),l()),o&2){let i=s.$implicit;G("default",i.isDefault),p(),z(" ",v(2,3,i.name)," ")}}var Vc=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"rolesSettings");r(this,"rolesOptions",{});r(this,"defaultSettings",_i);this.store=e;for(let t in Re)this.rolesOptions[Re[t]]=ji.map(n=>kr(W({},n),{isDefault:n.value===Re[t]}))}updateRolesSettings(){this.rolesSettings&&this.store.dispatch(Vn(this.rolesSettings))}resetRolesSettings(){this.store.dispatch(Fa())}changeRole(e,t){this.rolesSettings&&(0,kc.set)(this.rolesSettings,e,t),this.updateRolesSettings()}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-roles-settings"]],inputs:{rolesSettings:"rolesSettings"},standalone:!1,decls:228,vars:188,consts:[["optionTemplate",""],["creatorEdit",""],["creatorDelete",""],[1,"ui","form","settings-mobile-container"],["translate","",1,"ui","info","message"],["hzTab","",1,"inline","field"],["translate",""],["translate","",3,"ngClass"],[1,"ui","select"],["labelField","name","valueField","value",3,"valueChange","value","options","template"],[1,"inline","field"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public",3,"change","checked","title"],["href","javascript:;","translate","",3,"click","keydown.enter"],[1,"header"]],template:function(t,n){if(t&1){let u=O();a(0,"div",3),y(1,l_,3,5,"ng-template",null,0,R),a(3,"div",4),C(4,"ROLES_SETTINGS.DESCRIPTION"),l(),a(5,"div",5)(6,"label")(7,"h2",6),C(8,"ROLES_SETTINGS.GLOBAL.TITLE"),l()()(),a(9,"div",5)(10,"label")(11,"h3",7),C(12," ROLES_SETTINGS.GLOBAL.CHANGE_SETTINGS "),l()(),a(13,"div",8)(14,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("global.changeSettings",w))}),l()()(),a(15,"div",5)(16,"label")(17,"h3",7),C(18," ROLES_SETTINGS.GLOBAL.SHARING "),l()(),a(19,"div",8)(20,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("global.sharing",w))}),l()()(),a(21,"div",5)(22,"label")(23,"h3",7),C(24," ROLES_SETTINGS.GLOBAL.ICON "),l()(),a(25,"div",8)(26,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("global.editIcon",w))}),l()()(),a(27,"div",5)(28,"label")(29,"h2",6),C(30,"ROLES_SETTINGS.VIEWS.TITLE"),l()()(),a(31,"div",5)(32,"label")(33,"h3",7),C(34," ROLES_SETTINGS.VIEWS.DEFAULT "),l()(),a(35,"div",8)(36,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.default",w))}),l()()(),a(37,"div",5)(38,"label")(39,"h3",7),C(40," ROLES_SETTINGS.VIEWS.PRESENTATION "),l()(),a(41,"div",8)(42,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.presentation",w))}),l()()(),a(43,"div",5)(44,"label")(45,"h3",7),C(46," ROLES_SETTINGS.VIEWS.MAP "),l()(),a(47,"div",8)(48,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.map",w))}),l()()(),a(49,"div",5)(50,"label")(51,"h3",7),C(52," ROLES_SETTINGS.VIEWS.TILES "),l()(),a(53,"div",8)(54,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.tiles",w))}),l()()(),a(55,"div",5)(56,"label")(57,"h3",7),C(58," ROLES_SETTINGS.VIEWS.TABLE "),l()(),a(59,"div",8)(60,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.table",w))}),l()()(),a(61,"div",5)(62,"label")(63,"h3",7),C(64," ROLES_SETTINGS.VIEWS.GEO "),l()(),a(65,"div",8)(66,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.geo",w))}),l()()(),a(67,"div",5)(68,"label")(69,"h3",7),C(70," ROLES_SETTINGS.VIEWS.BOARDS "),l()(),a(71,"div",8)(72,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.boards",w))}),l()()(),a(73,"div",5)(74,"label")(75,"h3",7),C(76," ROLES_SETTINGS.VIEWS.CALENDAR "),l()(),a(77,"div",8)(78,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.calendar",w))}),l()()(),a(79,"div",5)(80,"label")(81,"h3",7),C(82," ROLES_SETTINGS.VIEWS.PRINT "),l()(),a(83,"div",8)(84,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.print",w))}),l()()(),a(85,"div",5)(86,"label")(87,"h3",7),C(88," ROLES_SETTINGS.VIEWS.FORM "),l()(),a(89,"div",8)(90,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("views.form",w))}),l()()(),a(91,"div",5)(92,"label")(93,"h2",6),C(94,"ROLES_SETTINGS.VIEW.TITLE"),l()()(),a(95,"div",5)(96,"label")(97,"h3",7),C(98," ROLES_SETTINGS.VIEW.PRIVATE "),l()(),a(99,"div",8)(100,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("view.viewPrivate",w))}),l()()(),a(101,"div",5)(102,"label")(103,"h2",6),C(104,"ROLES_SETTINGS.CREATE.TITLE"),l()()(),a(105,"div",5)(106,"label")(107,"h3",7),C(108," ROLES_SETTINGS.CREATE.QUESTION "),l()(),a(109,"div",8)(110,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("create.question",w))}),l()()(),a(111,"div",5)(112,"label")(113,"h3",7),C(114," ROLES_SETTINGS.CREATE.COMMENT "),l()(),a(115,"div",8)(116,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("create.comment",w))}),l()()(),a(117,"div",5)(118,"label")(119,"h3",7),C(120," ROLES_SETTINGS.CREATE.ITEM "),l()(),a(121,"div",8)(122,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("create.item",w))}),l()()(),a(123,"div",5)(124,"label")(125,"h3",7),C(126," ROLES_SETTINGS.CREATE.HAZU "),l()(),a(127,"div",8)(128,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("create.hazu",w))}),l()()(),a(129,"div",5)(130,"label")(131,"h3",7),C(132," ROLES_SETTINGS.CREATE.LIKES "),l()(),a(133,"div",8)(134,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("create.vote",w))}),l()()(),a(135,"div",5)(136,"label")(137,"h2",6),C(138,"ROLES_SETTINGS.EDIT.TITLE"),l()()(),a(139,"div",5)(140,"label")(141,"h3",7),C(142," ROLES_SETTINGS.EDIT.QUESTION "),l()(),a(143,"div",8)(144,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("edit.question",w))}),l()()(),a(145,"div",5)(146,"label")(147,"h3",7),C(148," ROLES_SETTINGS.EDIT.COMMENT "),l()(),a(149,"div",8)(150,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("edit.comment",w))}),l()()(),a(151,"div",5)(152,"label")(153,"h3",7),C(154," ROLES_SETTINGS.EDIT.ITEM "),l()(),a(155,"div",8)(156,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("edit.item",w))}),l()()(),a(157,"div",5)(158,"label")(159,"h3",7),C(160," ROLES_SETTINGS.EDIT.HAZU "),l()(),a(161,"div",8)(162,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("edit.hazu",w))}),l()()(),a(163,"div",10)(164,"label")(165,"h3",7),C(166," ROLES_SETTINGS.EDIT.CREATOR_CAN_EDIT "),l()(),a(167,"div",11)(168,"input",12,1),f(170,"translate"),h("change",function(){m(u);let w=x(169);return n.rolesSettings.edit.authorCanEdit=w.checked,_(n.updateRolesSett
1ings())}),l(),S(171,"label"),l()(),a(172,"div",5)(173,"label")(174,"h2",6),C(175,"ROLES_SETTINGS.DELETE.TITLE"),l()()(),a(176,"div",5)(177,"label")(178,"h3",7),C(179," ROLES_SETTINGS.DELETE.QUESTION "),l()(),a(180,"div",8)(181,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("delete.question",w))}),l()()(),a(182,"div",5)(183,"label")(184,"h3",7),C(185," ROLES_SETTINGS.DELETE.COMMENT "),l()(),a(186,"div",8)(187,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("delete.comment",w))}),l()()(),a(188,"div",5)(189,"label")(190,"h3",7),C(191," ROLES_SETTINGS.DELETE.ITEM "),l()(),a(192,"div",8)(193,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("delete.item",w))}),l()()(),a(194,"div",5)(195,"label")(196,"h3",7),C(197," ROLES_SETTINGS.DELETE.HAZU "),l()(),a(198,"div",8)(199,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("delete.hazu",w))}),l()()(),a(200,"div",10)(201,"label")(202,"h3",7),C(203," ROLES_SETTINGS.DELETE.CREATOR_CAN_DELETE "),l()(),a(204,"div",11)(205,"input",12,2),f(207,"translate"),h("change",function(){m(u);let w=x(206);return n.rolesSettings.delete.authorCanDelete=w.checked,_(n.updateRolesSettings())}),l(),S(208,"label"),l()(),a(209,"div",5)(210,"label")(211,"h2",6),C(212,"ROLES_SETTINGS.IMPORT.TITLE"),l()()(),a(213,"div",5)(214,"label")(215,"h3",7),C(216," ROLES_SETTINGS.IMPORT.INTO_THIS_HAZU "),l()(),a(217,"div",8)(218,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("import.intoHazu",w))}),l()()(),a(219,"div",5)(220,"label")(221,"h3",7),C(222," ROLES_SETTINGS.IMPORT.FROM_OTHER_HAZUS "),l()(),a(223,"div",8)(224,"hz-select",9),h("valueChange",function(w){return m(u),_(n.changeRole("import.fromHazu",w))}),l()()(),S(225,"br"),a(226,"a",13),h("click",function(){return m(u),_(n.resetRolesSettings())})("keydown.enter",function(){return m(u),_(n.resetRolesSettings())}),C(227,"ROLES_SETTINGS.RESET_ALL"),l()()}if(t&2){let u=x(2);p(11),c("ngClass",T(126,ie,n.rolesSettings.global.changeSettings===n.defaultSettings.global.changeSettings)),p(3),c("value",n.rolesSettings.global.changeSettings)("options",n.rolesOptions[n.defaultSettings.global.changeSettings])("template",u),p(3),c("ngClass",T(128,ie,n.rolesSettings.global.sharing===n.defaultSettings.global.sharing)),p(3),c("value",n.rolesSettings.global.sharing)("options",n.rolesOptions[n.defaultSettings.global.sharing])("template",u),p(3),c("ngClass",T(130,ie,n.rolesSettings.global.editIcon===n.defaultSettings.global.editIcon)),p(3),c("value",n.rolesSettings.global.editIcon)("options",n.rolesOptions[n.defaultSettings.global.editIcon])("template",u),p(7),c("ngClass",T(132,ie,n.rolesSettings.views.default===n.defaultSettings.views.default)),p(3),c("value",n.rolesSettings.views.default)("options",n.rolesOptions[n.defaultSettings.views.default])("template",u),p(3),c("ngClass",T(134,ie,n.rolesSettings.views.presentation===n.defaultSettings.views.presentation)),p(3),c("value",n.rolesSettings.views.presentation)("options",n.rolesOptions[n.defaultSettings.views.presentation])("template",u),p(3),c("ngClass",T(136,ie,n.rolesSettings.views.map===n.defaultSettings.views.map)),p(3),c("value",n.rolesSettings.views.map)("options",n.rolesOptions[n.defaultSettings.views.map])("template",u),p(3),c("ngClass",T(138,ie,n.rolesSettings.views.tiles===n.defaultSettings.views.tiles)),p(3),c("value",n.rolesSettings.views.tiles)("options",n.rolesOptions[n.defaultSettings.views.tiles])("template",u),p(3),c("ngClass",T(140,ie,n.rolesSettings.views.table===n.defaultSettings.views.table)),p(3),c("value",n.rolesSettings.views.table)("options",n.rolesOptions[n.defaultSettings.views.table])("template",u),p(3),c("ngClass",T(142,ie,n.rolesSettings.views.geo===n.defaultSettings.views.geo)),p(3),c("value",n.rolesSettings.views.geo)("options",n.rolesOptions[n.defaultSettings.views.geo])("template",u),p(3),c("ngClass",T(144,ie,n.rolesSettings.views.boards===n.defaultSettings.views.boards)),p(3),c("value",n.rolesSettings.views.boards)("options",n.rolesOptions[n.defaultSettings.views.boards])("template",u),p(3),c("ngClass",T(146,ie,n.rolesSettings.views.calendar===n.defaultSettings.views.calendar)),p(3),c("value",n.rolesSettings.views.calendar)("options",n.rolesOptions[n.defaultSettings.views.calendar])("template",u),p(3),c("ngClass",T(148,ie,n.rolesSettings.views.print===n.defaultSettings.views.print)),p(3),c("value",n.rolesSettings.views.print)("options",n.rolesOptions[n.defaultSettings.views.print])("template",u),p(3),c("ngClass",T(150,ie,n.rolesSettings.views.form===n.defaultSettings.views.form)),p(3),c("value",n.rolesSettings.views.form)("options",n.rolesOptions[n.defaultSettings.views.form])("template",u),p(7),c("ngClass",T(152,ie,n.rolesSettings.view.viewPrivate===n.defaultSettings.view.viewPrivate)),p(3),c("value",n.rolesSettings.view.viewPrivate)("options",n.rolesOptions[n.defaultSettings.view.viewPrivate])("template",u),p(7),c("ngClass",T(154,ie,n.rolesSettings.create.question===n.defaultSettings.create.question)),p(3),c("value",n.rolesSettings.create.question)("options",n.rolesOptions[n.defaultSettings.create.question])("template",u),p(3),c("ngClass",T(156,ie,n.rolesSettings.create.comment===n.defaultSettings.create.comment)),p(3),c("value",n.rolesSettings.create.comment)("options",n.rolesOptions[n.defaultSettings.create.comment])("template",u),p(3),c("ngClass",T(158,ie,n.rolesSettings.create.item===n.defaultSettings.create.item)),p(3),c("value",n.rolesSettings.create.item)("options",n.rolesOptions[n.defaultSettings.create.item])("template",u),p(3),c("ngClass",T(160,ie,n.rolesSettings.create.hazu===n.defaultSettings.create.hazu)),p(3),c("value",n.rolesSettings.create.hazu)("options",n.rolesOptions[n.defaultSettings.create.hazu])("template",u),p(3),c("ngClass",T(162,ie,n.rolesSettings.create.vote===n.defaultSettings.create.vote)),p(3),c("value",n.rolesSettings.create.vote)("options",n.rolesOptions[n.defaultSettings.create.vote])("template",u),p(7),c("ngClass",T(164,ie,n.rolesSettings.edit.question===n.defaultSettings.edit.question)),p(3),c("value",n.rolesSettings.edit.question)("options",n.rolesOptions[n.defaultSettings.edit.question])("template",u),p(3),c("ngClass",T(166,ie,n.rolesSettings.edit.comment===n.defaultSettings.edit.comment)),p(3),c("value",n.rolesSettings.edit.comment)("options",n.rolesOptions[n.defaultSettings.edit.comment])("template",u),p(3),c("ngClass",T(168,ie,n.rolesSettings.edit.item===n.defaultSettings.edit.item)),p(3),c("value",n.rolesSettings.edit.item)("options",n.rolesOptions[n.defaultSettings.edit.item])("template",u),p(3),c("ngClass",T(170,ie,n.rolesSettings.edit.hazu===n.defaultSettings.edit.hazu)),p(3),c("value",n.rolesSettings.edit.hazu)("options",n.rolesOptions[n.defaultSettings.edit.hazu])("template",u),p(3),c("ngClass",T(172,ie,n.rolesSettings.edit.authorCanEdit===n.defaultSettings.edit.authorCanEdit)),p(3),c("checked",n.rolesSettings.edit.authorCanEdit)("title",v(170,122,"ROLES_SETTINGS.EDIT.CREATOR_CAN_EDIT")),p(10),c("ngClass",T(174,ie,n.rolesSettings.delete.question===n.defaultSettings.delete.question)),p(3),c("value",n.rolesSettings.delete.question)("options",n.rolesOptions[n.defaultSettings.delete.question])("template",u),p(3),c("ngClass",T(176,ie,n.rolesSettings.delete.comment===n.defaultSettings.delete.comment)),p(3),c("value",n.rolesSettings.delete.comment)("options",n.rolesOptions[n.defaultSettings.delete.comment])("template",u),p(3),c("ngClass",T(178,ie,n.rolesSettings.delete.item===n.defaultSettings.delete.item)),p(3),c("value",n.rolesSettings.delete.item)("options",n.rolesOptions[n.defaultSettings.delete.item])("template",u),p(3),c("ngClass",T(180,ie,n.rolesSettings.delete.hazu===n.defaultSettings.delete.hazu)),p(3),c("value",n.rolesSettings.delete.hazu)("options",n.rolesOptions[n.defaultSettings.delete.hazu])("template",u),p(3),c("ngClass",T(182,ie,n.rolesSettings.delete.authorCanDelete===n.defaultSettings.delete.authorCanDelete)),p(3),c("checked",n.rolesSettings.delete.authorCanDelete)("title",v(207,124,"ROLES_SETTINGS.DELETE.CREATOR_CAN_DELETE")),p(10),c("ngClass",T(184,ie,n.rolesSettings.import.intoHazu===n.defaultSettings.import.intoHazu)),p(3),c("value",n.rolesSettings.import.intoHazu)("options",n.rolesOptions[n.defaultSettings.import.intoHazu])("template",u),p(3),c("ngClass",T(186,ie,n.rolesSettings.import.fromHazu===n.defaultSettings.import.fromHazu)),p(3),c("value",n.rolesSettings.import.fromHazu)("options",n.rolesOptions[n.defaultSettings.import.fromHazu])("template",u)}},dependencies:[X,H,Se,oe,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]{line-height:3rem;margin-bottom:0;min-height:3rem}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{overflow:auto;padding:.5em 1.7em 1.5em;padding-bottom:11rem;max-width:100vw}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{color:#7f7f7f;font-weight:500}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]     fui-select-option .header.default{font-style:italic}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-right:4.5rem;margin-top:1rem}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.ui.secondary.pointing.menu   [_nghost-%COMP%]     .active.item{border:none}.logo-section[_ngcontent-%COMP%], .logo-section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;justify-content:space-between}
1.inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0!important;overflow:hidden;position:absolute;width:.1px!important;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]{margin-left:.3em;margin-right:0;max-width:inherit;padding:.4em}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0!important}.errored[_ngcontent-%COMP%]{border:1px solid red!important}@container sidebar (min-width: 768px){.settings-mobile-container[_ngcontent-%COMP%]{width:32em}}@media only screen and (min-width:768px){.settings-mobile-container[_ngcontent-%COMP%]{width:32em}}"],changeDetection:0}));let o=s;return o})();var _r=$e(Ke());var fo=o=>({"color-palette-item-selected":o});function d_(o,s){if(o&1){let i=O();a(0,"button",6),h("click",function(){m(i);let t=d();return _(t.toggleExpanded())}),C(1," \u25B6 "),l()}if(o&2){let i=d();J("aria-expanded",i.isExpanded)("aria-label","Toggle "+i.title)}}function m_(o,s){if(o&1&&(a(0,"div",7),C(1),l()),o&2){let i=d();p(),N(i.description)}}function __(o,s){if(o&1){let i=O();a(0,"td",20),h("click",function(){let t=m(i).$implicit,n=d(2);return _(n.changeDefaults("color",t.key))}),l()}if(o&2){let i=s.$implicit,e=d(2);c("ngClass",T(2,fo,(e.settings==null?null:e.settings.color)===i.key)),J("style",i.value,Ui)}}function u_(o,s){if(o&1){let i=O();a(0,"td",20),h("click",function(){let t=m(i).$implicit,n=d(2);return _(n.changeDefaults("color",t.key))}),l()}if(o&2){let i=s.$implicit,e=d(2);c("ngClass",T(2,fo,(e.settings==null?null:e.settings.color)===i.key)),J("style",i.value,Ui)}}function h_(o,s){if(o&1){let i=O();a(0,"td",20),h("click",function(){let t=m(i).$implicit,n=d(2);return _(n.changeDefaults("color",t.key))}),l()}if(o&2){let i=s.$implicit,e=d(2);c("ngClass",T(2,fo,(e.settings==null?null:e.settings.color)===i.key)),J("style",i.value,Ui)}}function g_(o,s){if(o&1){let i=O();a(0,"td",20),h("click",function(){let t=m(i).$implicit,n=d(3);return _(n.changeDefaults("color",t.key))}),l()}if(o&2){let i=s.$implicit,e=d(3);c("ngClass",T(2,fo,(e.settings==null?null:e.settings.color)===i.key)),J("style",i.value,Ui)}}function f_(o,s){if(o&1&&(a(0,"tr",13),y(1,g_,1,4,"td",14),l()),o&2){let i=s.$implicit;p(),c("ngForOf",i)}}function C_(o,s){if(o&1){let i=O();a(0,"div",8)(1,"hz-select",9),h("valueChange",function(t){m(i);let n=d();return _(n.changeDefaults("privacy",t))}),l(),a(2,"hz-icon-picker",10),h("onIconSelected",function(t){m(i);let n=d();return _(n.changeDefaults("icon",t))})("onOpenList",function(t){m(i);let n=d();return _(n.isIconPickerOpened=t)}),l(),a(3,"div",11),f(4,"translate"),a(5,"table",12)(6,"tbody")(7,"tr",13),y(8,__,1,4,"td",14),l(),a(9,"tr",13),y(10,u_,1,4,"td",14),l(),a(11,"tr",13),y(12,h_,1,4,"td",14),l(),y(13,f_,2,1,"tr",15),l()()(),a(14,"div",16),h("click",function(){m(i);let t=d();return _(t.onOpenColor.emit())}),a(15,"a",17),C(16,"ITEM_ICON_EDIT.MORE_COLORS"),l()(),a(17,"input",18),h("ngChange",function(t){m(i);let n=d();return _(n.changeDefaults("priority",t))}),l(),a(18,"hz-inline-edit-content",19),h("ngChange",function(t){m(i);let n=d();return _(n.changeDefaults("location",t))}),l()()}if(o&2){let i=d();p(),c("value",i.settings==null?null:i.settings.privacy)("options",i.privacy),p(),c("icon",i.settings==null?null:i.settings.icon),p(),c("title",v(4,12,"ITEM_ICON_EDIT.ADD_COLOR")),p(5),c("ngForOf",i.colorList1),p(2),c("ngForOf",i.colorList2),p(2),c("ngForOf",i.colorList3),p(),c("ngForOf",i.chunkedPresetColorList),p(4),c("value",i.settings==null?null:i.settings.priority)("isAutoLabel",!0),p(),c("isFocused",!1)("value",i.settings!=null&&i.settings.location?i.settings.location:"")}}var Dc=(()=>{let s=class s{constructor(){r(this,"title","");r(this,"reset",!0);r(this,"settings");r(this,"description");r(this,"collapsible",!1);r(this,"onOpenColor",new E);r(this,"colorService",b(Ks));r(this,"store",b(V));r(this,"geoService",b(Mi));r(this,"cdr",b(de));r(this,"colorList1");r(this,"colorList2");r(this,"colorList3");r(this,"chunkedPresetColorList",[]);r(this,"presetColors",te(this.store.select(Bs),{initialValue:[]}));r(this,"privacy",[{key:"public",value:"Public"},{key:"private",value:"Private"}]);r(this,"isIconPickerOpened",!1);r(this,"isExpanded",!1);r(this,"presetColorList",[]);let e=this.colorService.getColorList();this.colorList1=e[0],this.colorList2=e[1],this.colorList3=e[2],Ce(()=>{let t=this.presetColors();this.presetColorList=this.colorService.getCustomColorList(t),this.chunkedPresetColorList=this.chunkList(this.presetColorList,10),this.cdr.markForCheck()})}ngOnInit(){this.isHazuSettings()&&this.privacy.push({key:"unlisted",value:"Unlisted"})}chunkList(e,t=10){let n=[];for(let u=0;u<e.length;u+=t)n.push(e.slice(u,u+t));return n}changeDefaults(e,t){return B(this,null,function*(){if(this.settings){if(e==="location")try{let n=yield xt(this.geoService.getGeocodeAddress(t));(0,_r.set)(this.settings,"locationGeoCode",n)}catch(n){console.error(n)}(0,_r.set)(this.settings,e,t),this.updateDefaultsSettings()}})}updateDefaultsSettings(){this.settings&&this.store.dispatch(Rn(this.settings,this.isHazuSettings()))}isHazuSettings(){return this.title.toUpperCase()==="HAZU"}resetDefaultsSettings(){this.store.dispatch(Za(this.isHazuSettings()))}toggleExpanded(){this.collapsible&&(this.isExpanded=!this.isExpanded,this.cdr.markForCheck())}handleTitleClick(e){e.target.closest("a.reset")||this.collapsible&&(e.preventDefault(),e.stopPropagation(),this.toggleExpanded())}
1getBackgroundColor(e){return"background-color: ".concat(e," !important")}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-defaults-settings-editor"]],inputs:{title:"title",reset:"reset",settings:"settings",description:"description",collapsible:"collapsible"},outputs:{onOpenColor:"onOpenColor"},standalone:!1,decls:10,vars:16,consts:[[1,"editor-wrapper"],["class","collapse-caret","type","button",3,"click",4,"ngIf"],[1,"inline","field",3,"click","keydown.enter"],["href","javascript:;",1,"reset",3,"click","keydown.space"],["class","editor-description",4,"ngIf"],["class","editor-content",4,"ngIf"],["type","button",1,"collapse-caret",3,"click"],[1,"editor-description"],[1,"editor-content"],["labelField","value","valueField","key",1,"fluid",3,"valueChange","value","options"],[3,"onIconSelected","onOpenList","icon"],["hzTab","",1,"item","color-palette",3,"title"],[1,"color-palette-table"],[1,"color-palette-table-row"],["class","color-palette-item",3,"ngClass","click",4,"ngFor","ngForOf"],["class","color-palette-table-row",4,"ngFor","ngForOf"],[1,"picker-color",3,"click"],["href","javascript:;","translate",""],["hzSlider","",3,"ngChange","value","isAutoLabel"],["type","location",3,"ngChange","isFocused","value"],[1,"color-palette-item",3,"click","ngClass"]],template:function(t,n){t&1&&(a(0,"div",0),y(1,d_,2,2,"button",1),a(2,"div",2),h("click",function(g){return n.handleTitleClick(g)})("keydown.enter",function(){return n.collapsible&&n.toggleExpanded()}),a(3,"h2"),C(4),l(),a(5,"a",3),h("click",function(g){return g.stopPropagation(),n.resetDefaultsSettings()})("keydown.space",function(g){return g.stopPropagation(),n.resetDefaultsSettings()}),C(6),f(7,"translate"),l()(),y(8,m_,2,1,"div",4)(9,C_,19,14,"div",5),l()),t&2&&(G("collapsible",n.collapsible)("collapsed",n.collapsible&&!n.isExpanded),p(),c("ngIf",n.collapsible),p(),_t("cursor",n.collapsible?"pointer":"default"),G("clickable-title",n.collapsible),J("tabindex",n.collapsible?"0":null),p(2),N(n.title),p(2),N(v(7,14,"DEFAULTS_SETTINGS.RESET")),p(2),c("ngIf",n.description),p(),c("ngIf",!n.collapsible||n.isExpanded))},dependencies:[X,Qe,k,H,ke,Se,za,ka,oe,Jn,L],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%]   .editor-wrapper[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   .editor-wrapper.collapsible[_ngcontent-%COMP%]{padding-top:.4rem;padding-bottom:.4rem;padding-left:1.25rem}[_nghost-%COMP%]   .editor-wrapper.collapsible[_ngcontent-%COMP%]   .collapse-caret[_ngcontent-%COMP%]{position:absolute;top:1.9rem;left:1.25rem;border:none;background:transparent;color:#666;font-size:1.1rem;line-height:1;cursor:pointer;padding:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;z-index:1;transform:translateY(-50%);transition:transform .12s ease-in-out,color .12s ease-in-out}[_nghost-%COMP%]   .editor-wrapper.collapsible[_ngcontent-%COMP%]   .collapse-caret[_ngcontent-%COMP%]:hover{color:#000}[_nghost-%COMP%]   .editor-wrapper.collapsible.collapsed[_ngcontent-%COMP%]   .collapse-caret[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(0)}[_nghost-%COMP%]   .editor-wrapper.collapsible[_ngcontent-%COMP%]:not(.collapsed)   .collapse-caret[_ngcontent-%COMP%]{transform:translateY(-50%) rotate(90deg)}[_nghost-%COMP%]   .editor-wrapper.collapsible[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]{padding-left:1.75rem;margin-left:0;margin-top:0;margin-bottom:0}[_nghost-%COMP%]   .editor-wrapper.collapsible.collapsed[_ngcontent-%COMP%]{padding-bottom:.4rem}[_nghost-%COMP%]   .editor-wrapper.collapsible.collapsed[_ngcontent-%COMP%]   .editor-content[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%]   .editor-wrapper.collapsible.collapsed[_ngcontent-%COMP%]   .editor-description[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%]   hz-icon-picker[_ngcontent-%COMP%], [_nghost-%COMP%]   hz-select[_ngcontent-%COMP%], [_nghost-%COMP%]   hz-inline-edit-content[_ngcontent-%COMP%]{display:block;margin-bottom:.9em}[_nghost-%COMP%]   .field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;line-height:3rem;min-height:3rem}[_nghost-%COMP%]   .field.inline.clickable-title[_ngcontent-%COMP%]{-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .field.inline.clickable-title[_ngcontent-%COMP%]:hover{opacity:.8}[_nghost-%COMP%]   .field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem;pointer-events:none}[_nghost-%COMP%]   .field.inline[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{font-size:1rem;pointer-events:auto}[_nghost-%COMP%]   .editor-description[_ngcontent-%COMP%]{color:#0009;font-size:.95rem;margin:.5rem 0 1rem;word-wrap:break-word;overflow-wrap:break-word;white-space:normal;line-height:normal}[_nghost-%COMP%]   .color-palette[_ngcontent-%COMP%]{border-radius:0!important;margin-bottom:.5em!important;padding:0!important}[_nghost-%COMP%]   .color-palette-item[_ngcontent-%COMP%]{height:1.7rem;width:1.7rem}[_nghost-%COMP%]   .color-palette-table[_ngcontent-%COMP%]{border-collapse:collapse;empty-cells:show;font-size:1rem;margin-bottom:.5em;margin-top:.5em;max-width:100%;width:100%}[_nghost-%COMP%]   .color-palette-item[_ngcontent-%COMP%]:hover{box-shadow:0 1px 3px 1px #00000080,inset 0 0 0 1px #ffffff4d;position:relative}[_nghost-%COMP%]   .color-palette-item-selected[_ngcontent-%COMP%]{box-shadow:0 1px 3px 1px #00000080,inset 0 0 0 1px #ffffff4d;position:relative}[_nghost-%COMP%]   .picker-color[_ngcontent-%COMP%]{display:flex;margin-bottom:1em}[_nghost-%COMP%]   .picker-color[_ngcontent-%COMP%]   .current-color[_ngcontent-%COMP%]{display:inline-flex;height:2rem;width:50%}[_nghost-%COMP%]   .picker-color[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]{display:inline-flex;justify-content:center;line-height:2rem;width:100%}[_nghost-%COMP%]   .kendo-silder[_ngcontent-%COMP%]{margin-left:0;margin-top:1rem;margin-bottom:.9em}[_nghost-%COMP%]     .color-palette-table{margin:0 auto}[_nghost-%COMP%]     .k-slider{background-color:transparent;box-shadow:none;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;user-select:none}[_nghost-%COMP%]     .k-slider .k-slider-wrap{height:100%;width:100%}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-reset{border:0;font-size:100%;list-style:none;margin:0;outline:0;padding:0;text-decoration:none}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-items{display:block;height:100%}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-items .k-tick{background-color:transparent;
1background-image:url(/assets/kendo/Silver/slider-h.gif);background-position:center -92px;background-repeat:no-repeat;cursor:pointer;float:left;height:100%;margin:0;padding:0;position:relative;text-align:center}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-items .k-tick-large{background-position:center -2px}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-items .k-first{background-position:0 -2px}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-items .k-last{background-position:100% -2px}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-track{background-color:#dedee0;background-repeat:repeat-x;border-radius:4px;border-style:solid;border-width:0;cursor:pointer;height:2px;left:0;margin:-1px 0 0;padding:0;position:absolute;top:45%}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-track .k-slider-selection{background-color:#1984c8;background-repeat:repeat-x;border-radius:4px;height:2px;left:0;margin:-1px 0 0;padding:0;position:absolute}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-track .k-draghandle{background-color:#fff;background-repeat:no-repeat;border-color:#ceced2;border-radius:7px;border-style:solid;border-width:2px;box-shadow:none;color:#cbcbcf;cursor:pointer;height:6px;outline:0;overflow:hidden;position:absolute;text-align:center;text-decoration:none;text-indent:-3333px;top:-4px;width:6px}[_nghost-%COMP%]     .k-slider .k-slider-wrap .k-slider-track .k-draghandle.k-state-focused.k-state-selected{background-color:#1984c8;border-color:#1a87cd}[_nghost-%COMP%]     .k-slider .k-label{bottom:-1.2em;font-size:1.22em;left:0;line-height:1;position:absolute;white-space:nowrap;width:100%}[_nghost-%COMP%]     .k-widget{align-self:center;-webkit-appearance:none;appearance:none;border-style:solid;border-width:1px;box-sizing:content-box;color:#515967;line-height:normal;margin-bottom:3em;outline:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}[_nghost-%COMP%]     .k-slider-horizontal{display:inline-block;height:26px;width:200px}[_nghost-%COMP%]     .k-state-default{border-color:transparent}[_nghost-%COMP%]     th, td[_ngcontent-%COMP%]{border:none!important;padding:0!important}  .k-slider .k-slider-wrap .k-slider-track .k-draghandle{box-sizing:content-box}"],changeDetection:0}));let o=s;return o})();var S_=()=>[1,2,3,4,5,6,7,8,9,10];function w_(o,s){if(o&1){let i=O();a(0,"hz-select",19),h("valueChange",function(t){m(i);let n=d(3);return _(n.updateDefaultView(t))}),l()}if(o&2){let i=d().ngIf,e=d(2);c("value",e.layoutDefaultView)("options",i)}}function O_(o,s){if(o&1&&(a(0,"div",11)(1,"label",12)(2,"h3",13),C(3,"LAYOUT_SETTINGS.VIEW"),l(),a(4,"div",14),S(5,"i",15),l()(),a(6,"div",16),y(7,w_,1,2,"hz-select",18),l()()),o&2){let i=d(2),e=x(12);p(4),c("popupTemplate",e)("popupDelay",300),p(3),c("ngIf",i.layoutDefaultView!==void 0)}}function y_(o,s){if(o&1){let i=O();a(0,"hz-select",20),h("valueChange",function(t){m(i);let n=d(2);return _(n.updateDefaultLevel(t))}),l()}if(o&2){let i=d(2);c("value",i.layoutDefaultLevel)("options",ge(2,S_))}}function T_(o,s){if(o&1&&(a(0,"div",9),y(1,O_,8,3,"div",10),f(2,"async"),a(3,"div",11)(4,"label",12)(5,"h3",13),C(6,"LAYOUT_SETTINGS.LEVEL"),l(),a(7,"div",14),S(8,"i",15),l()(),a(9,"div",16),y(10,y_,1,3,"hz-select",17),l()()()),o&2){let i=d(),e=x(14);p(),c("ngIf",v(2,4,i.viewList)),p(6),c("popupTemplate",e)("popupDelay",300),p(3),c("ngIf",i.layoutDefaultLevel!==void 0)}}function b_(o,s){if(o&1){let i=O();a(0,"div",21)(1,"div",22)(2,"label",12)(3,"h3",13),C(4,"LAYOUT_SETTINGS.AUTO_DATE"),l(),a(5,"div",14),S(6,"i",15),l()(),a(7,"div",23)(8,"input",24,3),f(10,"translate"),h("change",function(){m(i);let t=x(9),n=d();return _(n.updateAutoDate(t.checked))}),l(),S(11,"label"),l()()()}if(o&2){let i=d(),e=x(16);p(5),c("popupTemplate",e)("popupDelay",300),p(3),c("checked",i.layoutAutoDate)("title",v(10,4,"LAYOUT_SETTINGS.AUTO_DATE"))}}function I_(o,s){o&1&&(a(0,"div",25),C(1,"LAYOUT_SETTINGS.VIEW_TOOLTIP"),l())}function x_(o,s){o&1&&(a(0,"div",25),C(1,"LAYOUT_SETTINGS.LEVEL_TOOLTIP"),l())}function E_(o,s){o&1&&(a(0,"div",25),C(1,"LAYOUT_SETTINGS.AUTO_DATE_TOOLTIP"),l())}var Lc=(()=>{let s=class s{constructor(e,t){r(this,"translate");r(this,"store");r(this,"defaultsSettings");r(this,"layoutSettings");r(this,"baseItem");r(this,"onAddMoreColor",new E);r(this,"viewList");this.translate=e,this.store=t;let n=[{key:"default",labelKey:"LAYOUT.DEFAULT_VIEW"},{key:"presentation",labelKey:"LAYOUT.PRESENTATION_VIEW"},{key:"map",labelKey:"LAYOUT.HAZU_MAP_VIEW"},{key:"tiles",labelKey:"LAYOUT.TILES_VIEW"},{key:"table",labelKey:"LAYOUT.TABLE_VIEW"},{key:"geo",labelKey:"LAYOUT.GEO_VIEW"},{key:"boards",labelKey:"LAYOUT.BOARDS_VIEW"},{key:"calendar",labelKey:"LAYOUT.CALENDAR_VIEW"},{key:"form",labelKey:"LAYOUT.FORM_VIEW"}
1,{key:"print",labelKey:"LAYOUT.PRINT_VIEW"}];this.viewList=xe(...n.map(u=>this.translate.get(u.labelKey))).pipe(U(u=>u.map((g,w)=>({value:g,key:n[w].key}))))}get layoutDefaultView(){var e,t;return(t=(e=this.layoutSettings)==null?void 0:e.defaultView)!=null?t:"default"}get layoutDefaultLevel(){var e,t;return(t=(e=this.layoutSettings)==null?void 0:e.level)!=null?t:1}get layoutAutoDate(){var e,t;return(t=(e=this.layoutSettings)==null?void 0:e.autoDate)!=null?t:!1}updateLayoutSettings(e){this.layoutSettings&&this.store.dispatch(vt(W(W({},this.layoutSettings),e)))}updateDefaultView(e){this.updateLayoutSettings({defaultView:e})}updateDefaultLevel(e){this.updateLayoutSettings({level:e})}updateAutoDate(e){this.updateLayoutSettings({autoDate:e})}};r(s,"\u0275fac",function(t){return new(t||s)(M(ze),M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-defaults-settings"]],inputs:{defaultsSettings:"defaultsSettings",layoutSettings:"layoutSettings",baseItem:"baseItem"},outputs:{onAddMoreColor:"onAddMoreColor"},standalone:!1,decls:17,vars:18,consts:[["popupViewTemplate",""],["popupLevelTemplate",""],["popupAutoDateTemplate",""],["autoDate",""],[1,"ui","form","settings-mobile-container"],["class","settings-group compact-group",4,"ngIf"],["class","defaults-card padded",4,"ngIf"],[1,"defaults-card"],[3,"onOpenColor","title","settings","description","collapsible"],[1,"settings-group","compact-group"],["class","inline field","hzTab","",4,"ngIf"],["hzTab","",1,"inline","field"],[1,"label-with-warning"],["translate",""],["fuiPopup","",1,"ui","icon",3,"popupTemplate","popupDelay"],[1,"ui","link","icon","question","outline","circle","large"],[1,"ui","select"],[3,"value","options","valueChange",4,"ngIf"],["labelField","value","valueField","key",3,"value","options","valueChange",4,"ngIf"],["labelField","value","valueField","key",3,"valueChange","value","options"],[3,"valueChange","value","options"],[1,"defaults-card","padded"],[1,"inline","field"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public",3,"change","checked","title"],["translate","",1,"content"]],template:function(t,n){if(t&1){let u=O();a(0,"div",4),y(1,T_,11,6,"div",5)(2,b_,12,6,"div",6),a(3,"div",7)(4,"hz-defaults-settings-editor",8),f(5,"translate"),f(6,"translate"),h("onOpenColor",function(){return m(u),_(n.onAddMoreColor.emit("colorPickerItemTab"))}),l()(),a(7,"div",7)(8,"hz-defaults-settings-editor",8),f(9,"translate"),f(10,"translate"),h("onOpenColor",function(){return m(u),_(n.onAddMoreColor.emit("colorPickerHazuTab"))}),l()()(),y(11,I_,2,0,"ng-template",null,0,R)(13,x_,2,0,"ng-template",null,1,R)(15,E_,2,0,"ng-template",null,2,R)}t&2&&(p(),c("ngIf",n.layoutSettings),p(),c("ngIf",n.layoutSettings),p(2),c("title",v(5,10,"DEFAULTS_SETTINGS.ITEM"))("settings",n.defaultsSettings==null?null:n.defaultsSettings.itemDefaults)("description",v(6,12,"DEFAULTS_SETTINGS.ITEM_DESC"))("collapsible",!0),p(4),c("title",v(9,14,"DEFAULTS_SETTINGS.HAZU"))("settings",n.defaultsSettings==null?null:n.defaultsSettings.hazuDefaults)("description",v(10,16,"DEFAULTS_SETTINGS.HAZU_DESC"))("collapsible",!0))},dependencies:[k,H,Ie,Se,oe,Dc,ce,L],styles:["[_nghost-%COMP%]{display:block}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]{padding:.75rem 1rem 1.5rem;display:flex;flex-direction:column;gap:.75rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]{border:1px solid #dededf;border-radius:8px;padding:.75rem 1rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin:0 0 .75rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:1rem;flex:1}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0;font-weight:500;font-size:1rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:.4rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{margin:0;float:none;flex-shrink:0;width:auto;min-width:180px;display:flex;justify-content:flex-end}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .compact-group[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   .ui.select[_ngcontent-%COMP%]{margin:0;float:none;flex-shrink:0}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]{background-color:#fff;border:1px solid #dededf;border-radius:10px;box-shadow:0 2px 4px #0000000a;padding-right:1rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card.padded[_ngcontent-%COMP%]{padding:.75rem 1rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin:0}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{display:flex;align-items:center;margin-right:1rem;flex:1}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0;font-weight:500;font-size:1rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:.4rem}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]   .inline.field[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{margin:0;float:none;flex-shrink:0}[_nghost-%COMP%]   .settings-mobile-container[_ngcontent-%COMP%]   .defaults-card[_ngcontent-%COMP%]   hz-defaults-settings-editor[_ng
1content-%COMP%]{display:block}[_nghost-%COMP%]   .label-with-warning[_ngcontent-%COMP%]{display:flex!important;align-items:center;line-height:1.2}[_nghost-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:.4rem}[_nghost-%COMP%]     hz-select .selection.ui.dropdown, [_nghost-%COMP%]     fui-select .selection.ui.dropdown{min-width:160px}"],changeDetection:0}));let o=s;return o})();var Ac=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"cookieConsentSettings");r(this,"isValidCookieLink",!0);r(this,"isValidDataProtectionLink",!0);this.store=e}updateCookieConsentSettings(e){this.store.dispatch(Dn(W(W({},this.cookieConsentSettings),e)))}updateCustomCookieLink(e){this.isValidCookieLink=!e||Wi(e),this.isValidCookieLink&&this.updateCookieConsentSettings({customCookieLink:e})}updateCustomDataProtectionLink(e){this.isValidDataProtectionLink=!e||Wi(e),this.isValidDataProtectionLink&&this.updateCookieConsentSettings({customDataProtectionLink:e})}resetCookieConsentSettings(){this.store.dispatch(Ga())}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-cookie-consent-settings"]],inputs:{cookieConsentSettings:"cookieConsentSettings"},standalone:!1,decls:26,vars:10,consts:[["customCookieLink",""],["customDataProtectionLink",""],[1,"ui","form"],[1,"field"],[1,"label"],["translate",""],["type","text",3,"keyup","value"],[1,"inline","field"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public","data-hz-test","cookieConsentHideToolbarIcon",3,"change","checked","title"],["href","javascript:;","translate","",3,"click","keydown.enter"]],template:function(t,n){var u,g;
1if(t&1){let w=O();a(0,"div",2)(1,"div",3)(2,"label",4)(3,"h3",5),C(4,"COOKIES.SETTINGS.CUSTOM_COOKIE_LINK"),l()(),a(5,"input",6,0),h("keyup",function(){m(w);let D=x(6);return _(n.updateCustomCookieLink(D.value))}),l()(),a(7,"div",3)(8,"label",4)(9,"h3",5),C(10,"COOKIES.SETTINGS.CUSTOM_DATA_PROTECTION_LINK"),l()(),a(11,"input",6,1),h("keyup",function(){m(w);let D=x(12);return _(n.updateCustomDataProtectionLink(D.value))}),l()(),a(13,"div",7)(14,"label")(15,"h3",5),C(16,"COOKIES.SETTINGS.HIDE_BADGE"),l(),a(17,"span",5),C(18,"COOKIES.SETTINGS.HIDE_BADGE_WARNING"),l()(),a(19,"div",8)(20,"input",9),f(21,"translate"),h("change",function(){return m(w),_(n.updateCookieConsentSettings({hideCookieBatch:!n.cookieConsentSettings.hideCookieBatch}))}),l(),S(22,"label"),l()(),S(23,"br"),a(24,"a",10),h("click",function(){return m(w),_(n.resetCookieConsentSettings())})("keydown.enter",function(){return m(w),_(n.resetCookieConsentSettings())}),C(25,"ROLES_SETTINGS.RESET_ALL"),l()()}t&2&&(p(5),G("errored",!n.isValidCookieLink),c("value",(u=n.cookieConsentSettings==null?null:n.cookieConsentSettings.customCookieLink)!=null?u:""),p(6),G("errored",!n.isValidDataProtectionLink),c("value",(g=n.cookieConsentSettings==null?null:n.cookieConsentSettings.customDataProtectionLink)!=null?g:""),p(9),c("checked",n.cookieConsentSettings.hideCookieBatch)("title",v(21,8,"COOKIES.SETTINGS.HIDE_BADGE")))},dependencies:[H,L],styles:[".field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:.9em}.field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{max-height:70vh;overflow:auto;padding:.5em 1em 1.5em 1.7em;padding-bottom:11rem;width:32em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{color:#7f7f7f;font-weight:500}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]     fui-select-option .header.default{font-style:italic}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-right:.4em}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.ui.secondary.pointing.menu   [_nghost-%COMP%]     .active.item{border:none}.logo-section[_ngcontent-%COMP%], .logo-section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0!important;overflow:hidden;position:absolute;width:.1px!important;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]{margin-left:.3em;margin-right:0;max-width:inherit;padding:.4em}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0!important}.errored[_ngcontent-%COMP%]{border:1px solid red!important}"],changeDetection:0}));let o=s;return o})();var ur=o=>({default:o});function z_(o,s){o&1&&(a(0,"div",10),C(1," LOGIN.SETTINGS.AT_LEAST_ONE_REQUIRED "),l())}var Nc=(()=>{let s=class s{constructor(){r(this,"store",b(V));r(this,"externalLoginSettings");r(this,"enableHazuLogin");r(this,"enableHazuLoginSignal",this.store.selectSignal(Xl));r(this,"enableEdulogLoginSignal",this.store.selectSignal(ic));r(this,"enableMicrosoftLoginSignal",this.store.selectSignal(tc))}
1updateExternalLoginSettings(e){this.store.dispatch(Ln(W(W({},this.externalLoginSettings),e)))}updateHazuLogin(e){this.store.dispatch(An(e))}resetLoginSettings(){this.store.dispatch(Wa())}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-external-login-settings"]],inputs:{externalLoginSettings:"externalLoginSettings",enableHazuLogin:"enableHazuLogin"},standalone:!1,decls:31,vars:22,consts:[[1,"ui","form"],["translate","",1,"ui","info","message"],[1,"inline","field"],["translate","",3,"ngClass"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public","data-hz-test","enableEdulogSetting",3,"change","checked","title"],["type","checkbox","name","public","data-hz-test","enableMicrosoftSetting",3,"change","checked","title"],["type","checkbox","name","public","data-hz-test","enableHazuSetting",3,"change","checked","title"],["href","javascript:;","translate","",3,"click","keydown.enter"],["class","ui error message","translate","",4,"ngIf"],["translate","",1,"ui","error","message"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1),C(2,"LOGIN.SETTINGS.DESCRIPTION"),l(),a(3,"div",2)(4,"label")(5,"h3",3),C(6," LOGIN.EDULOG "),l()(),a(7,"div",4)(8,"input",5),f(9,"translate"),h("change",function(){return n.updateExternalLoginSettings({enableEdulog:!n.externalLoginSettings.enableEdulog})}),l(),S(10,"label"),l()(),a(11,"div",2)(12,"label")(13,"h3",3),C(14," LOGIN.MICROSOFT "),l()(),a(15,"div",4)(16,"input",6),f(17,"translate"),h("change",function(){return n.updateExternalLoginSettings({enableMicrosoft:!n.externalLoginSettings.enableMicrosoft})}),l(),S(18,"label"),l()(),a(19,"div",2)(20,"label")(21,"h3",3),C(22," LOGIN.HAZU "),l()(),a(23,"div",4)(24,"input",7),f(25,"translate"),h("change",function(){return n.updateHazuLogin(!n.enableHazuLogin)}),l(),S(26,"label"),l()(),S(27,"br"),a(28,"a",8),h("click",function(){return n.resetLoginSettings()})("keydown.enter",function(){return n.resetLoginSettings()}),C(29,"ROLES_SETTINGS.RESET_ALL"),l(),y(30,z_,2,0,"div",9),l()),t&2&&(p(5),c("ngClass",T(16,ur,!n.externalLoginSettings.enableEdulog)),p(3),c("checked",n.externalLoginSettings.enableEdulog)("title",v(9,10,"LOGIN.EDULOG")),p(5),c("ngClass",T(18,ur,!n.externalLoginSettings.enableMicrosoft)),p(3),c("checked",n.externalLoginSettings.enableMicrosoft)("title",v(17,12,"LOGIN.MICROSOFT")),p(5),c("ngClass",T(20,ur,!n.enableHazuLogin)),p(3),c("checked",n.enableHazuLogin)("title",v(25,14,"LOGIN.HAZU")),p(6),c("ngIf",n.enableEdulogLoginSignal()===!1&&n.enableMicrosoftLoginSignal()===!1&&n.enableHazuLoginSignal()===!1))},dependencies:[X,k,H,L],styles:[".field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:.9em}.field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{max-height:70vh;overflow:auto;padding:.5em 1em 1.5em 1.7em;padding-bottom:11rem;width:32em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{color:#7f7f7f;font-weight:500}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]     fui-select-option .header.default{font-style:italic}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-right:.4em}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.ui.secondary.pointing.menu   [_nghost-%COMP%]     .active.item{border:none}.logo-section[_ngcontent-%COMP%], .logo-section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;justify-content:space-between}
1.inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0!important;overflow:hidden;position:absolute;width:.1px!important;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]{margin-left:.3em;margin-right:0;max-width:inherit;padding:.4em}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0!important}.errored[_ngcontent-%COMP%]{border:1px solid red!important}"],changeDetection:0}));let o=s;return o})();function V_(o,s){if(o&1&&(a(0,"div",11),C(1),f(2,"translate"),l()),o&2){let i=s.$implicit;G("default",i.isDefault),p(),z(" ",v(2,3,i.value)," ")}}function D_(o,s){if(o&1){let i=O();a(0,"hz-select",12),h("valueChange",function(t){m(i);let n=d();return _(n.updateSearchSettings({defaultScope:t}))}),l()}if(o&2){let i=s.ngIf,e=d(),t=x(2);c("value",e.searchSettings.defaultScope)("options",i)("template",t)}}function L_(o,s){o&1&&(a(0,"div",13),C(1,"SEARCH_SETTINGS.SCOPE_TOOLTIP"),l())}var Rc=(()=>{let s=class s{constructor(e,t){r(this,"store");r(this,"translate");r(this,"searchSettings");r(this,"scopeList$");r(this,"idxScopes",["Hazu","All"]);this.store=e,this.translate=t;let n=["SEARCH_FILTERS.SEARCH_HAZU","SEARCH_FILTERS.SEARCH_EVERYWHERE"];this.scopeList$=xe(...n.map(u=>this.translate.get(u))).pipe(U(u=>u.map((g,w)=>({value:g,key:this.idxScopes[w],isDefault:w===0}))))}updateSearchSettings(e){this.store.dispatch(Nn(W(W({},this.searchSettings),e)))}resetSearchSettings(){this.store.dispatch(ja())}};r(s,"\u0275fac",function(t){return new(t||s)(M(V),M(ze))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-search-settings"]],inputs:{searchSettings:"searchSettings"},standalone:!1,decls:17,vars:5,consts:[["optionTemplate",""],["popupScopeTemplate",""],[1,"ui","form"],["translate","",1,"ui","info","message"],[1,"inline","field"],[1,"label-with-warning"],["translate",""],["fuiPopup","",1,"ui","icon",3,"popupTemplate","popupDelay"],[1,"ui","link","icon","question","outline","circle","large"],["class","fluid","labelField","value","valueField","key",3,"value","options","template","valueChange",4,"ngIf"],["href","javascript:void(0)","translate","",3,"click","keydown.enter"],[1,"header"],["labelField","value","valueField","key",1,"fluid",3,"valueChange","value","options","template"],["translate","",1,"content"]],template:function(t,n){if(t&1){let u=O();a(0,"div",2),y(1,V_,3,5,"ng-template",null,0,R),a(3,"div",3),C(4,"SEARCH_SETTINGS.DESCRIPTION"),l(),a(5,"div",4)(6,"label",5)(7,"h3",6),C(8,"SEARCH_SETTINGS.SCOPE"),l(),a(9,"div",7),S(10,"i",8),l()(),y(11,D_,1,3,"hz-select",9),f(12,"async"),l(),a(13,"a",10),h("click",function(){return m(u),_(n.resetSearchSettings())})("keydown.enter",function(){return m(u),_(n.resetSearchSettings())}),C(14,"SEARCH_SETTINGS.RESET_DEFAULT"),l()(),y(15,L_,2,0,"ng-template",null,1,R)}if(t&2){let u=x(16);p(9),c("popupTemplate",u)("popupDelay",300),p(2),c("ngIf",v(12,3,n.scopeList$))}},dependencies:[k,H,Ie,Se,ce,L],styles:[".field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:.9em}.field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;font-weight:500}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{max-height:70vh;overflow:auto;padding:.5em 1em 1.5em 1.7em;padding-bottom:11rem;width:32em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   .default[_ngcontent-%COMP%]{color:#7f7f7f;font-weight:500}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{float:right;margin-top:0}.label-with-warning[_ngcontent-%COMP%]{display:flex!important;line-height:1em}.label-with-warning[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:3px}.label-with-warning[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:0}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.ui.secondary.pointing.menu   [_nghost-%COMP%]     .active.item{border:none}.logo-section[_ngcontent-%COMP%], .logo-section[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{display:flex;justify-content:space-between}
1.inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0!important;overflow:hidden;position:absolute;width:.1px!important;z-index:-1}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]{pointer-events:none}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   *[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]{margin-left:.3em;margin-right:0;max-width:inherit;padding:.4em}.inputfile[_ngcontent-%COMP%] + label[_ngcontent-%COMP%]   i[_ngcontent-%COMP%], label.ui.button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0!important}.errored[_ngcontent-%COMP%]{border:1px solid red!important}[_nghost-%COMP%]     fui-select-option .header.default{font-style:italic}"],changeDetection:0}));let o=s;return o})();function N_(o,s){o&1&&(a(0,"div",10),C(1," CALENDAR_SETTINGS.IMPORT_TEMPLATE_ELEMENTS_TOOLTIP "),l())}var Bc=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"calendarSettings");this.store=e}onImportTemplateElementsChange(e){let t=e.target;this.store.dispatch(jn({isDirty:!0,importTemplateElements:t.checked}))}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-calendar-settings"]],inputs:{calendarSettings:"calendarSettings"},standalone:!1,decls:14,vars:3,consts:[["popupImportTemplateElementsDescriptionTemplate",""],[1,"ui","form","layout-settings"],["translate","",1,"ui","info","message"],[1,"inline","field"],[1,"ui","grid","label-container"],["translate",""],["fuiPopup","",1,"ui","icon",3,"popupTemplate","popupDelay"],[1,"ui","link","icon","question","outline","circle"],[1,"ui","toggle","checkbox"],["type","checkbox","name","importTemplateElements","data-hz-test","formOptsToggleImportTemplateElements",3,"change","checked"],["translate","",1,"content"]],template:function(t,n){if(t&1){let u=O();a(0,"div",1)(1,"div",2),C(2,"CALENDAR_SETTINGS.DESCRIPTION"),l(),a(3,"div",3)(4,"div",4)(5,"label",5),C(6,"CALENDAR_SETTINGS.IMPORT_TEMPLATE_ELEMENTS"),l(),a(7,"div",6),S(8,"i",7),l()(),a(9,"div",8)(10,"input",9),h("change",function(w){return m(u),_(n.onImportTemplateElementsChange(w))}),l(),S(11,"label"),l()()(),y(12,N_,2,0,"ng-template",null,0,R)}if(t&2){let u=x(13);p(7),c("popupTemplate",u)("popupDelay",300),p(3),c("checked",n.calendarSettings==null?null:n.calendarSettings.importTemplateElements)}},dependencies:[H,Ie],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}@supports (-moz-appearance: none){.field.inline[_ngcontent-%COMP%]{position:relative}.field.inline[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{position:absolute;right:0;top:0}}.layout-settings[_ngcontent-%COMP%]{max-height:70vh;overflow:auto}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;line-height:3rem;margin:.9em 0;width:100%}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.layout-settings[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%], .layout-settings[_ngcontent-%COMP%]   .table-settings-row[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.layout-settings[_ngcontent-%COMP%]   .field.inline.columns[_ngcontent-%COMP%]:hover{background:#00000008;border-radius:.3em;cursor:pointer}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{padding:.5em 1em 1.5em 1.7em;width:27em}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{cursor:inherit}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:500;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right}
1@container sidebar (max-width: 767px){.layout-settings[_ngcontent-%COMP%]{max-height:calc(100vh - 55px)}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{width:auto}}@media only screen and (max-width:767px){.layout-settings[_ngcontent-%COMP%]{max-height:calc(100vh - 55px)}[_nghost-%COMP%]   .ui.form[_ngcontent-%COMP%]{width:auto}}.label-container[_ngcontent-%COMP%]{gap:.5rem}.label-container[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%], .label-container[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{padding-left:0;padding-right:0}"],changeDetection:0}));let o=s;return o})();function B_(o,s){o&1&&(a(0,"div",36),C(1,"FORM.SETTINGS.POSTHOOK_URL_TOOLTIP"),l())}function F_(o,s){o&1&&(S(0,"div",37),f(1,"translate")),o&2&&c("innerHTML",v(1,1,"FORM.SETTINGS.TARGET_HAZU_ID_TOOLTIP_ENHANCED"),rt)}function U_(o,s){o&1&&(a(0,"div",36),C(1,"FORM.SETTINGS.TEXT_POSITION_TOOLTIP"),l())}function G_(o,s){o&1&&(a(0,"div",36),C(1,"FORM.SETTINGS.STEP_MODE_TOOLTIP"),l())}function H_(o,s){o&1&&(a(0,"div",36),C(1," FORM.SETTINGS.RESPONSE_TITLE_FORMAT_TOOLTIP "),l())}function j_(o,s){o&1&&(S(0,"div",37),f(1,"translate")),o&2&&c("innerHTML",v(1,1,"FORM.SETTINGS.SUBMITTER_ROLE_TOOLTIP"),rt)}function Y_(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(120);c("popupTemplate",i)("popupDelay",300)}}function W_(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(112);c("popupTemplate",i)("popupDelay",300)}}function $_(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(114);c("popupTemplate",i)("popupDelay",300)}}function Q_(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(116);c("popupTemplate",i)("popupDelay",300)}}function K_(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(118);c("popupTemplate",i)("popupDelay",300)}}function q_(o,s){if(o&1&&(a(0,"div",38)(1,"span"),C(2),l(),y(3,Y_,1,2,"div",39)(4,W_,1,2,"div",39)(5,$_,1,2,"div",39)(6,Q_,1,2,"div",39)(7,K_,1,2,"div",39),l()),o&2){let i=s.$implicit;p(2),N(i.label),p(),c("ngIf",i.value==="creation-date"),p(),c("ngIf",i.value==="first-field"),p(),c("ngIf",i.value==="second-field"),p(),c("ngIf",i.value==="user-name"),p(),c("ngIf",i.value==="user-email")}}function Z_(o,s){o&1&&(a(0,"div",36),C(1,"FORM.SETTINGS.ACTIVATE_FORM_TOOLTIP"),l())}function J_(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.FIRST_FIELD_TOOLTIP")," "))}function X_(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.SECOND_FIELD_TOOLTIP")," "))}function eu(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),S(3,"br"),a(4,"em"),C(5),f(6,"translate"),l()()),o&2&&(p(),z(" ",v(2,2,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.USER_NAME_TOOLTIP_MAIN")),p(4),N(v(6,4,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.AUTH_WARNING")))}function tu(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),S(3,"br"),a(4,"em"),C(5),f(6,"translate"),l()()),o&2&&(p(),z(" ",v(2,2,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.USER_EMAIL_TOOLTIP_MAIN")),p(4),N(v(6,4,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.AUTH_WARNING")))}function iu(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.CREATION_DATE_TOOLTIP")," "))}function nu(o,s){o&1&&(a(0,"div",36),C(1," FORM.SETTINGS.CUSTOM_RESPONSE_MESSAGE_TOOLTIP "),l())}function ou(o,s){o&1&&(a(0,"div",36),C(1,"FORM.SETTINGS.REDIRECT_OPTION_TOOLTIP"),l())}function ru(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(128);c("popupTemplate",i)("popupDelay",300)}}function su(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(130);c("popupTemplate",i)("popupDelay",300)}}function au(o,s){if(o&1&&S(0,"div",40),o&2){d(2);let i=x(132);c("popupTemplate",i)("popupDelay",300)}}function lu(o,s){if(o&1&&(a(0,"div",38)(1,"span"),C(2),l(),y(3,ru,1,2,"div",39)(4,su,1,2,"div",39)(5,au,1,2,"div",39),l()),o&2){let i=s.$implicit;p(2),N(i.label),p(),c("ngIf",i.value==="redirect-to-response"),p(),c("ngIf",i.value==="redirect-to-posthook-url"),p(),c("ngIf",i.value==="redirect-to-response-with-message")}}function cu(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"FORM.SETTINGS.REDIRECT_OPTIONS.REDIRECT_TO_RESPONSE_TOOLTIP")," "))}function pu(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"FORM.SETTINGS.REDIRECT_OPTIONS.REDIRECT_TO_POSTHOOK_URL_TOOLTIP")," "))}function du(o,s){o&1&&(a(0,"div",41),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"FORM.SETTINGS.REDIRECT_OPTIONS.REDIRECT_TO_RESPONSE_WITH_MESSAGE_TOOLTIP")," "))}function mu(o,s){o&1&&(a(0,"div",36),C(1," FORM.SETTINGS.ANONYMOUS_SUBMISSIONS_TOOLTIP "),l())}var Fc=(()=>{let s=class s{constructor(){r(this,"formSettings");r(this,"targetHazuIdInputValue","");r(this,"targetHazuIdResolved",null);r(this,"targetHazuIdValidationState","idle");r(this,"targetHazuIdError",null);r(this,"targetHazuIdInputSignal",_e(""));r(this,"debounceTimeout",null);r(this,"ResponseTitleFormat",ut);r(this,"FormRedirectOption",ii);r(this,"FormStepMode",cn);r(this,"store",b(V));r(this,"translate",b(ze));r(this,"queryService",b(fn));r(this,"changeDetectorRef",b(de));r(this,"textPositionOptions",[{value:"below",label:this.translate.instant("LAYOUT_SETTINGS.BELOW")},{value:"above",label:this.translate.instant("LAYOUT_SETTINGS.ABOVE")}]);r(this,"submitterRoleOptions",[{value:"",label:this.translate.instant("FORM.SETTINGS.NO_ROLE")},...rs.map(e=>({value:e.key,label:this.translate.instant(e.name)}
1))]);r(this,"stepModeOptions",[{value:cn.Accordion,label:this.translate.instant("FORM.SETTINGS.STEP_MODE_OPTIONS.ACCORDION")},{value:cn.Wizard,label:this.translate.instant("FORM.SETTINGS.STEP_MODE_OPTIONS.WIZARD")}]);r(this,"responseTitleFormatOptions",[{value:ut.CreationDate,label:this.translate.instant("FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.CREATION_DATE")},{value:ut.FirstField,label:this.translate.instant("FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.FIRST_FIELD")},{value:ut.SecondField,label:this.translate.instant("FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.SECOND_FIELD")},{value:ut.UserName,label:this.translate.instant("FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.USER_NAME")},{value:ut.UserEmail,label:this.translate.instant("FORM.SETTINGS.RESPONSE_TITLE_FORMAT_OPTIONS.USER_EMAIL")}]);r(this,"redirectOptions",[{value:ii.RedirectToResponse,label:this.translate.instant("FORM.SETTINGS.REDIRECT_OPTIONS.REDIRECT_TO_RESPONSE")},{value:ii.RedirectToPostHookURL,label:this.translate.instant("FORM.SETTINGS.REDIRECT_OPTIONS.REDIRECT_TO_POSTHOOK_URL")},{value:ii.RedirectToResponseWithMessage,label:this.translate.instant("FORM.SETTINGS.REDIRECT_OPTIONS.REDIRECT_TO_RESPONSE_WITH_MESSAGE")}]);Ce(()=>{let e=this.targetHazuIdInputSignal();this.debounceTimeout&&clearTimeout(this.debounceTimeout),this.debounceTimeout=setTimeout(()=>{e&&this.validateTargetHazuId(e)},500)})}onPosthookURLChange(e){let t=e.target;this.dispatchSettingsUpdate({posthookURL:t.value})}onTargetHazuIdChange(e){let t=e.trim();if(this.targetHazuIdInputValue=t,!t){this.targetHazuIdResolved=null,this.targetHazuIdValidationState="idle",this.targetHazuIdError=null,this.dispatchSettingsUpdate({targetHazuId:""}),this.changeDetectorRef.markForCheck();return}this.targetHazuIdValidationState="validating",this.changeDetectorRef.markForCheck(),this.targetHazuIdInputSignal.set(t)}validateTargetHazuId(e){return B(this,null,function*(){try{let t=e;if(t.startsWith("http://")||t.startsWith("https://"))try{t=new URL(t).pathname}catch(u){}if(!t.includes("/")){this.targetHazuIdResolved=t,this.targetHazuIdValidationState="valid",this.targetHazuIdError=null,this.dispatchSettingsUpdate({targetHazuId:t}),this.changeDetectorRef.markForCheck();return}let n=yield this.queryService.getIdByLinkOrPermalink(t);n?(this.targetHazuIdResolved=n,this.targetHazuIdValidationState="valid",this.targetHazuIdError=null,this.dispatchSettingsUpdate({targetHazuId:n})):(this.targetHazuIdResolved=null,this.targetHazuIdValidationState="invalid",this.targetHazuIdError=this.translate.instant("FORM.SETTINGS.INVALID_TARGET_HAZU"),this.dispatchSettingsUpdate({targetHazuId:""}))}catch(t){console.error("Error validating target Hazu ID:",t),this.targetHazuIdResolved=null,this.targetHazuIdValidationState="invalid",this.targetHazuIdError=this.translate.instant("FORM.SETTINGS.ERROR_RESOLVING_TARGET_HAZU"),this.dispatchSettingsUpdate({targetHazuId:""})}this.changeDetectorRef.markForCheck()})}onTextPositionChange(e){this.dispatchSettingsUpdate({textPosition:e})}onActivationChange(e){let t=e.target;this.dispatchSettingsUpdate({isActivated:t.checked})}onStepModeChange(e){this.dispatchSettingsUpdate({stepMode:e})}onResponseTitleFormatChange(e){this.dispatchSettingsUpdate({responseTitleFormat:e})}onSubmitterRoleChange(e){this.dispatchSettingsUpdate({submitterRole:e})}onCustomResponseMessageChange(e){let t=e.target;this.dispatchSettingsUpdate({customResponseMessage:t.value})}onRedirectOptionChange(e){this.dispatchSettingsUpdate({redirectOption:e})}onAnonymousSubmissionsChange(e){let t=e.target;this.dispatchSettingsUpdate({anonymousSubmissions:t.checked})}dispatchSettingsUpdate(e){var t,n,u,g,w,I,D,Y,ne,se;this.store.dispatch(Yn(W({isDirty:!0,posthookURL:((t=this.formSettings)==null?void 0:t.posthookURL)||"",targetHazuId:((n=this.formSettings)==null?void 0:n.targetHazuId)||"",textPosition:(u=this.formSettings)==null?void 0:u.textPosition,responseTitleFormat:(g=this.formSettings)==null?void 0:g.responseTitleFormat,isActivated:((w=this.formSettings)==null?void 0:w.isActivated)||!1,submitterRole:(I=this.formSettings)==null?void 0:I.submitterRole,customResponseMessage:(D=this.formSettings)==null?void 0:D.customResponseMessage,redirectOption:(Y=this.formSettings)==null?void 0:Y.redirectOption,anonymousSubmissions:(ne=this.formSettings)==null?void 0:ne.anonymousSubmissions,stepMode:(se=this.formSettings)==null?void 0:se.stepMode},e)))}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-form-settings"]],inputs:{formSettings:"formSettings"},standalone:!1,decls:135,vars:53,consts:[["popupPosthookURLDescriptionTemplate",""],["popupTargetHazuIdDescriptionTemplate",""],["popupTextPositionTemplate",""],["popupStepModeTemplate",""],["popupResponseTitleFormatTemplate",""],["popupSubmitterRoleTemplate",""],["responseTitleFormatOptionTemplate",""],["popupActivateFormTemplate",""],["popupFirstFieldTemplate",""],["popupSecondFieldTemplate",""],["popupUserNameTemplate",""],["popupUserEmailTemplate",""],["popupCreationDateTemplate",""],["popupCu
1stomResponseMessageTemplate",""],["popupRedirectOptionTemplate",""],["redirectOptionTemplate",""],["popupRedirectToResponseTemplate",""],["popupRedirectToPosthookUrlTemplate",""],["popupRedirectToResponseWithMessageTemplate",""],["popupAnonymousSubmissionsTemplate",""],[1,"ui","form","settings-mobile-container"],[1,"settings-group"],[1,"inline","field"],[1,"label-with-warning"],["translate",""],["fuiPopup","",1,"ui","icon",3,"popupTemplate","popupDelay"],[1,"ui","link","icon","question","outline","circle","large"],[1,"ui","toggle","checkbox"],["type","checkbox",3,"change","checked"],[1,"inline","field","stacked"],["valueField","value","labelField","label",3,"valueChange","value","options"],["valueField","value","labelField","label",3,"valueChange","value","options","template"],["rows","3","onfocus","this.select()","name","customResponseMessage","autocomplete","off",3,"keyup","ngModel","placeholder","disabled"],[1,"ui","fluid","input"],["type","text","onfocus","this.select()","name","targetHazuId","autocomplete","off",3,"ngModelChange","ngModel","placeholder"],["type","text","onfocus","this.select()","name","posthookURL","autocomplete","off",3,"keyup","ngModel","placeholder"],["translate","",1,"content"],[1,"content",3,"innerHTML"],[1,"header",2,"cursor","pointer","position","relative"],["fuiPopup","","style","\n        position: absolute;\n        top: 0;\n        left: 0;\n        right: 0;\n        bottom: 0;\n        z-index: 10000;\n      ",3,"popupTemplate","popupDelay",4,"ngIf"],["fuiPopup","",2,"position","absolute","top","0","left","0","right","0","bottom","0","z-index","10000",3,"popupTemplate","popupDelay"],[1,"content"]],template:function(t,n){var u,g,w,I,D,Y,ne;if(t&1){let se=O();a(0,"div",20)(1,"div",21)(2,"div",22)(3,"label",23)(4,"h3",24),C(5,"FORM.SETTINGS.ACTIVATE_FORM"),l(),a(6,"div",25),S(7,"i",26),l()(),a(8,"div",27)(9,"input",28),h("change",function(he){return m(se),_(n.onActivationChange(he))}),l(),S(10,"label"),l()(),a(11,"div",22)(12,"label",23)(13,"h3",24),C(14,"FORM.SETTINGS.ANONYMOUS_SUBMISSIONS"),l(),a(15,"div",25),S(16,"i",26),l()(),a(17,"div",27)(18,"input",28),h("change",function(he){return m(se),_(n.onAnonymousSubmissionsChange(he))}),l(),S(19,"label"),l()()(),a(20,"div",21)(21,"div",22)(22,"label")(23,"h2",24),C(24,"FORM.SETTINGS.GROUP_DISPLAY"),l()()(),a(25,"div",29)(26,"label",23)(27,"h3",24),C(28,"FORM.SETTINGS.TEXT_POSITION"),l(),a(29,"div",25),S(30,"i",26),l()(),a(31,"hz-select",30),h("valueChange",function(he){return m(se),_(n.onTextPositionChange(he))}),l()(),a(32,"div",29)(33,"label",23)(34,"h3",24),C(35,"FORM.SETTINGS.STEP_MODE"),l(),a(36,"div",25),S(37,"i",26),l()(),a(38,"hz-select",30),h("valueChange",function(he){return m(se),_(n.onStepModeChange(he))}),l()(),a(39,"div",29)(40,"label",23)(41,"h3",24),C(42,"FORM.SETTINGS.RESPONSE_TITLE_FORMAT"),l(),a(43,"div",25),S(44,"i",26),l()(),a(45,"hz-select",31),h("valueChange",function(he){return m(se),_(n.onResponseTitleFormatChange(he))}),l()()(),a(46,"div",21)(47,"div",22)(48,"label")(49,"h2",24),C(50,"FORM.SETTINGS.GROUP_SUBMISSION"),l()()(),a(51,"div",29)(52,"label",23)(53,"h3",24),C(54,"FORM.SETTINGS.SUBMITTER_ROLE"),l(),a(55,"div",25),S(56,"i",26),l()(),a(57,"hz-select",30),h("valueChange",function(he){return m(se),_(n.onSubmitterRoleChange(he))}),l()(),a(58,"div",29)(59,"label",23)(60,"h3",24),C(61,"FORM.SETTINGS.REDIRECT_OPTION"),l(),a(62,"div",25),S(63,"i",26),l()(),a(64,"hz-select",31),h("valueChange",function(he){return m(se),_(n.onRedirectOptionChange(he))}),l()(),a(65,"div",29)(66,"label",23)(67,"h3",24),C(68,"FORM.SETTINGS.CUSTOM_RESPONSE_MESSAGE"),l(),a(69,"div",25),S(70,"i",26),l()(),a(71,"textarea",32),f(72,"translate"),h("keyup",function(he){return m(se),_(n.onCustomResponseMessageChange(he))}),l()()(),a(73,"div",21)(74,"div",22)(75,"label")(76,"h2",24),C(77,"FORM.SETTINGS.GROUP_INTEGRATION"),l()()(),a(78,"div",29)(79,"label",23)(80,"h3",24),C(81,"FORM.SETTINGS.TARGET_HAZU_ID"),l(),a(82,"div",25),S(83,"i",26),l()(),a(84,"div",33)(85,"input",34),f(86,"translate"),h("ngModelChange",function(he){return m(se),_(n.onTargetHazuIdChange(he))}),l()()(),a(87,"div",29)(88,"label",23)(89,"h3",24),C(90,"FORM.SETTINGS.POSTHOOK_URL"),l(),a(91,"div",25),S(92,"i",26),l()(),a(93,"input",35),f(94,"translate"),h("keyup",function(he){return m(se),_(n.onPosthookURLChange(he))}),l()()()(),y(95,B_,2,0,"ng-template",null,0,R)(97,F_,2,3,"ng-template",null,1,R)(99,U_,2,0,"ng-template",null,2,R)(101,G_,2,0,"ng-template",null,3,R)(103,H_,2,0,"ng-template",null,4,R)(105,j_,2,3,"ng-template",null,5,R)(107,q_,8,6,"ng-template",null,6,R)(109,Z_,2,0,"ng-template",null,7,R)(111,J_,3,3,"ng-template",null,8,R)(113,X_,3,3,"ng-template",null,9,R)(115,eu,7,6,"ng-template",null,10,R)(117,tu,7,6,"ng-template",null,11,R)(119,iu,3,3,"ng-template",null,12,R)(121,nu,2,0,"ng-template",null,13,R)(123,ou,2,0,"ng-template",null,14,R)(125,lu,6,4,"ng-template",null,15,R)(127,cu,3,3,"ng-template",null,16,R)(129,pu,3,3,"ng-template",null,17,R)(131,du,3,3,"ng-template",null,18,R)(133,mu,2,0,"ng-template",null,19,R)}if(t&2){let se=x(96),Oe=x(98),he=x(100),Tp=x(102),bp=x(104),Ip=x(106),xp=x(108),Ep=x(110),Pp=x(122),Mp=x(124),zp=x(126),kp=x(134);p(6),c("popupTemplate",Ep)("popupDelay",300),p(3),c("checked",(u=n.formSettings==null?null:n.formSettings.isActivated)!=null?u:!1),p(6),c("popupTemplate",kp)("popupDelay",300),p(3),c("checked",(g=n.formSettings==null?null:n.formSettings.anonymousSubmissions)!=null?g:!1),p(11),c("popupTemplate",he)("popupDelay",300),p(2),c("value",(w=n.formSettings==null?null:n.formSettings.textPosition)!=null?w:"below")("options",n.textPositionOptions),p(5),c("popupTemplate",Tp)("popupDelay",300),p(2),c("value",(I=n.formSettings==null?null:n.formSettings.stepMode)!=null?I:n.FormStepMode.Accordion)("options",n.stepModeOptions),p(5),c("popupTemplate",bp)("popupDelay",300),p(2),c("value",(D=n.formSettings==null?null:n.formSettings.responseTitleFormat)!=null?D:n.ResponseTitleFormat.CreationDate)("options",n.responseTitleFormatOptions)("template",xp),p(10),c("popupTemplate",Ip)("popupDelay",300),p(2),c("value",(Y=n.formSettings==null?null:n.formSettings.submitterRole)!=null?Y:"")("options",n.submitterRoleOptions),p(5),c("popupTemplate",M
1p)("popupDelay",300),p(2),c("value",(ne=n.formSettings==null?null:n.formSettings.redirectOption)!=null?ne:n.FormRedirectOption.RedirectToResponse)("options",n.redirectOptions)("template",zp),p(5),c("popupTemplate",Pp)("popupDelay",300),p(2),c("ngModel",n.formSettings==null?null:n.formSettings.customResponseMessage)("placeholder",v(72,47,"FORM.SETTINGS.CUSTOM_RESPONSE_MESSAGE_PLACEHOLDER"))("disabled",(n.formSettings==null?null:n.formSettings.redirectOption)===n.FormRedirectOption.RedirectToResponseWithMessage||(n.formSettings==null?null:n.formSettings.redirectOption)===n.FormRedirectOption.RedirectToPostHookURL),p(11),c("popupTemplate",Oe)("popupDelay",300),p(2),G("loading",n.targetHazuIdValidationState==="validating"),p(),G("error",n.targetHazuIdValidationState==="invalid")("success",n.targetHazuIdValidationState==="valid"&&n.targetHazuIdResolved),c("ngModel",n.targetHazuIdInputValue||(n.formSettings==null?null:n.formSettings.targetHazuId))("placeholder",v(86,49,"FORM.SETTINGS.TARGET_HAZU_ID_PLACEHOLDER")),p(6),c("popupTemplate",se)("popupDelay",300),p(2),c("ngModel",n.formSettings==null?null:n.formSettings.posthookURL)("placeholder",v(94,51,"FORM.SETTINGS.POSTHOOK_URL_PLACEHOLDER"))}},dependencies:[k,wi,Oi,wn,H,Ie,Se,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:block;max-width:24em}@container sidebar (max-width: $large-breakpoint){[_nghost-%COMP%]{max-width:100vw}}@media only screen and (max-width:992px){[_nghost-%COMP%]{max-width:100vw}}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]{max-width:100vw}}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;margin-bottom:.9em}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem}.settings-mobile-container[_ngcontent-%COMP%]   .field.inline.stacked[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}.settings-mobile-container[_ngcontent-%COMP%]   .settings-group[_ngcontent-%COMP%]{margin-bottom:1em;padding-bottom:0}.settings-mobile-container[_ngcontent-%COMP%]   .settings-group[_ngcontent-%COMP%]:last-child{margin-bottom:0}.settings-mobile-container[_ngcontent-%COMP%]   .settings-group[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1.3rem;margin-top:.5em}.settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]{display:flex!important;line-height:1em;align-items:center}.settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:3px}.settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%], .settings-mobile-container[_ngcontent-%COMP%]   .label-with-warning[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:0}@supports (-moz-appearance: none){.field.inline[_ngcontent-%COMP%]{position:relative}.field.inline[_ngcontent-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{position:absolute;right:0;top:0}}@container sidebar (max-width: 767px){.settings-mobile-container[_ngcontent-%COMP%]{padding-bottom:100px!important}}@media only screen and (max-width:767px){.settings-mobile-container[_ngcontent-%COMP%]{padding-bottom:100px!important}}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-weight:500;margin-bottom:0}[_nghost-%COMP%]   .inline[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{font-size:.9em;font-weight:400}[_nghost-%COMP%]   .ui.select[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%]   .stacked[_ngcontent-%COMP%]     hz-select .selection.ui.dropdown, [_nghost-%COMP%]   .stacked[_ngcontent-%COMP%]     fui-select .selection.ui.dropdown{min-width:100%}[_nghost-%COMP%]   .ui.toggle.checkbox[_ngcontent-%COMP%]{float:right;margin-right:.4em}[_nghost-%COMP%]   label[_ngcontent-%COMP%]{max-width:70%}[_nghost-%COMP%]   label[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]{white-space:initial}.stacked[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], .stacked[_ngcontent-%COMP%]   input[type=text][_ngcontent-%COMP%], .stacked[_ngcontent-%COMP%]   hz-select[_ngcontent-%COMP%]{width:100%;margin-top:.4em}textarea[_ngcontent-%COMP%]{width:100%;padding:.65em .9em;border-radius:5px;border:1px solid #d4d4d5;font-size:1rem;transition:border-color .2s;background:#fff;resize:vertical}textarea[_ngcontent-%COMP%]:focus{border-color:#2185d0;outline:none}input[type=text][_ngcontent-%COMP%]{width:100%;padding:.65em .9em;border-radius:5px;border:1px solid #d4d4d5;font-size:1rem;transition:border-color .2s;background:#fff}input[type=text][_ngcontent-%COMP%]:focus{border-color:#2185d0;outline:none}.error[_ngcontent-%COMP%]{border-color:#e0b4b4!important;background-color:#fff6f6!important;color:#9f3a38}.success[_ngcontent-%COMP%]{border-color:#a3c293!important;background-color:#fcfff5!important;color:#2c662d}[_nghost-%COMP%]     hz-select .ui.select{overflow:visible}[_nghost-%COMP%]     hz-select fui-select   .menu.transition{max-height:15rem;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch}"],changeDetection:0}));let o=s;return o}
1)();function uu(o,s){if(o&1){let i=O();a(0,"div",7),h("click",function(){m(i);let t=d();return _(t.selectOption(t.newTag.value))})("mousedown",function(t){m(i);let n=d();return _(n.preventClose(t))}),C(1),f(2,"translate"),a(3,"strong"),C(4),l()()}if(o&2){let i=d();G("highlighted",i.highlightedIndex===0),p(),z(" ",v(2,4,"TAGS_SETTINGS.ADD")," "),p(3),N(i.newTag.value)}}function hu(o,s){o&1&&(a(0,"div",5),C(1),f(2,"translate"),l()),o&2&&(p(),z(" ",v(2,1,"TAGS_SETTINGS.ERRORS.INVALID_TAG")," "))}function gu(o,s){if(o&1){let i=O();a(0,"div",7),h("click",function(){let t=m(i).$implicit,n=d();return _(n.selectOption(t))})("mousedown",function(t){m(i);let n=d();return _(n.preventClose(t))}),C(1),l()}if(o&2){let i=s.$implicit,e=s.index,t=d();G("highlighted",t.highlightedIndex===(t.showAddNewTagOption?e+1:e)),p(),z(" ",i," ")}}var gr=(()=>{let s=class s{constructor(){r(this,"options",[]);r(this,"filteredOutByDefaultOptions",[]);r(this,"selectionChanged",new E);r(this,"newTag",new Xs("",[Cn.minLength(1),Cn.maxLength(100),Cn.pattern(new RegExp("^(?! )[a-zA-Z0-9\\u00C0-\\u017F\\-_. @!#$%^&*()+=]*(?<! )$"))]));r(this,"dropdownOpen",!1);r(this,"filteredOptions",[]);r(this,"highlightedIndex",-1);r(this,"showAddNewTagOption",!1)}openDropdown(){this.selectionChanged.emit(""),this.dropdownOpen=!0,this.filterOptions()}closeDropdown(){this.dropdownOpen=!1}onInputChange(){this.showAddNewTagOption=this.newTag.valid&&this.newTag.value.length>0&&!this.filteredOptions.includes(this.newTag.value),this.openDropdown()}filterOptions(){this.filteredOptions=this.options.filter(e=>e.toLowerCase().includes(this.newTag.value.toLowerCase())&&!this.filteredOutByDefaultOptions.includes(e))}onKeyDown(e){let{key:t}=e,n=this.showAddNewTagOption?this.filteredOptions.length+1:this.filteredOptions.length;t==="ArrowDown"?(this.highlightedIndex=(this.highlightedIndex+1)%n,e.preventDefault()):t==="ArrowUp"?(this.highlightedIndex=(this.highlightedIndex-1+n)%n,e.preventDefault()):t==="Enter"&&this.dropdownOpen?(this.selectHighlightedOption(),e.preventDefault(),e.stopPropagation()):t==="Escape"&&(this.closeDropdown(),e.stopPropagation())}selectHighlightedOption(){if(this.highlightedIndex<=0&&this.showAddNewTagOption)this.selectOption(this.newTag.value);else if(this.highlightedIndex>=0){let e=this.showAddNewTagOption?this.highlightedIndex-1:this.highlightedIndex,t=this.filteredOptions[e];this.selectOption(t)}}selectOption(e){this.highlightedIndex=-1,this.newTag.setValue(e),this.selectionChanged.emit(e),this.closeDropdown()}preventClose(e){e.preventDefault(),e.stopPropagation()}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-additions-dropdown"]],inputs:{options:"options",filteredOutByDefaultOptions:"filteredOutByDefaultOptions"},outputs:{selectionChanged:"selectionChanged"},features:[zt([])],decls:9,vars:18,consts:[[1,"ui","fluid","search","selection","dropdown"],["type","text","autocomplete","off",1,"search",3,"input","click","blur","keydown","placeholder","title","formControl","hzFocus"],[1,"dropdown","icon"],[1,"menu"],[1,"item",3,"highlighted"],[1,"item","error"],["class","item",3,"highlighted","click","mousedown",4,"ngFor","ngForOf"],[1,"item",3,"click","mousedown"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"input",1),f(2,"translate"),f(3,"translate"),h("input",function(){return n.onInputChange()})("click",function(){return n.openDropdown()})("blur",function(){return n.closeDropdown()})("keydown",function(g){return n.onKeyDown(g)}),l(),S(4,"i",2),a(5,"div",3),ei(6,uu,5,6,"div",4),ei(7,hu,3,3,"div",5),y(8,gu,2,3,"div",6),l()()),t&2&&(G("error",n.newTag.invalid),p(),c("placeholder",v(2,14,"TAGS_SETTINGS.ADD_TAG"))("title",v(3,16,"TAGS_SETTINGS.ALLOWED_VALUES"))("formControl",n.newTag)("hzFocus",!0),J("aria-expanded",n.dropdownOpen),p(4),G("visible",n.dropdownOpen)("transition",n.dropdownOpen),p(),ti(n.showAddNewTagOption?6:-1),p(),ti(n.newTag.invalid?7:-1),p(),c("ngForOf",n.filteredOptions))},dependencies:[li,Qe,vi,yi,wi,Oi,ea,Qt,ke,Wt,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:block;padding:0;width:100%}[_nghost-%COMP%]   .ui.input[_ngcontent-%COMP%]{width:100%;margin-top:1em}[_nghost-%COMP%]   .search[_ngcontent-%COMP%]{width:100%!important}[_nghost-%COMP%]   .selection.dropdown[_ngcontent-%COMP%]{border-top-right-radius:0;border-bottom-right-radius:0}[_nghost-%COMP%]   .selection.dropdown[_ngcontent-%COMP%]   .menu.transition.visible[_ngcontent-%COMP%]{top:37px!important;left:-1px!important;right:-1px!important;margin:0!important}[_nghost-%COMP%]   .menu[_ngcontent-%COMP%]   .item.highlighted[_ngcontent-%COMP%]{background-color:#0000000d!important}"],changeDetection:0}));let o=s;return o}
1)();var Uc=(()=>{let s=class s{constructor(e,t){r(this,"http");r(this,"afAuth");r(this,"baseUrl","");var n,u,g,w,I,D,Y;this.http=e,this.afAuth=t,this.baseUrl=(n=Vt.useEmulators)!=null&&n.functions?"http://localhost:5001/".concat((g=(u=Vt.FIREBASE_CONFIG)==null?void 0:u.projectId)!=null?g:"hazu-ch-dev","/").concat((I=(w=Vt.emulatorSettings)==null?void 0:w.functions.region)!=null?I:"europe-west6","/"):"https://".concat(Vt.CLOUD_FUNCTIONS_REGION,"-").concat((Y=(D=Vt.FIREBASE_CONFIG)==null?void 0:D.projectId)!=null?Y:"hazu-ch-dev",".cloudfunctions.net/")}getIdToken(){var e,t;return(t=(e=this.afAuth.currentUser)==null?void 0:e.getIdToken())!=null?t:Promise.resolve("")}makeAuthenticatedRequest(e,t={}){return new Ai(n=>{this.getIdToken().then(u=>{this.http.post("".concat(this.baseUrl).concat(e),t,{headers:{Authorization:"Bearer ".concat(u),"Content-Type":"application/json"}}).pipe(No(g=>Lr(()=>new Error("HTTP error: ".concat(g.message))))).subscribe(g=>{n.next(g),n.complete()},g=>n.error(g))}).catch(u=>n.error(new Error("Authentication error: ".concat(u.message))))})}addSharingGroupByTag(e,t){return this.makeAuthenticatedRequest("api-v2-admin/add-sharing-group-by-tag/",{hazuId:e,tag:t}).pipe(U(n=>({hazuId:n.hazuId,sharingGroupIds:n.sharingGroupIds})),No(n=>It({hazuId:"",sharingGroupIds:[]})))}};r(s,"\u0275fac",function(t){return new(t||s)(Te(sn),Te(is))}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o})();var vu=()=>[];function Su(o,s){if(o&1){let i=O();a(0,"div",2),C(1),a(2,"i",8),h("click",function(){let t=m(i).$implicit,n=d();return _(n.removeTag(t))}),l()()}if(o&2){let i=s.$implicit;p(),z(" ",i," ")}}function wu(o,s){if(o&1&&(a(0,"div",7)(1,"p"),C(2),f(3,"translate"),l()()),o&2){let i=d();p(2),N(v(3,1,i.error))}}var Gc=(()=>{let s=class s{constructor(e,t,n,u){r(this,"tagsService");r(this,"store");r(this,"cdr");r(this,"apiV2Services");r(this,"items");r(this,"item");r(this,"isMultiple",!1);r(this,"additionsDropdownComponent");r(this,"options$");r(this,"selectedValue","");r(this,"filteredOptions",[]);r(this,"tags",[]);r(this,"error","");r(this,"shareTag",mi.Share);this.tagsService=e,this.store=t,this.cdr=n,this.apiV2Services=u,this.options$=this.store.select(tl)}ngOnChanges(e){(e.item||e.items)&&this.updateTags()}updateTags(){var e;if(this.isMultiple&&this.items&&this.items!==void 0){let t=((e=this.items[0])==null?void 0:e.tags.filter(n=>this.items.every(u=>u.tags.includes(n))))||[];this.tags=t}else this.tags=this.item.tags;this.cdr.detectChanges()}isShareTag(e,t){return e.startsWith(this.shareTag)&&t===di.hazu}addTag(e){return B(this,null,function*(){var n;this.error="";let t=e||this.additionsDropdownComponent.newTag.value;if(t!=null&&t.trim())if((n=this.items)!=null&&n.length&&this.isMultiple){let u=this.items.filter(w=>{var I;return!((I=w.tags)!=null&&I.includes(t))});if(u.length===0){this.error="TAGS_SETTINGS.ERRORS.TAG_ALREADY_EXISTS";return}let g=yield Promise.all(u.map(w=>B(this,null,function*(){let I=yield this.tagsService.addTag(w.snapshot,t);return{item:w,tagResult:I}})));for(let{item:w,tagResult:I}of g)if(I&&this.isShareTag(t,w.type))try{(yield Ni(this.apiV2Services.addSharingGroupByTag(w.snapshot.key,t))).hazuId||console.warn("Failed to create sharing group for item ".concat(w.snapshot.key," with tag ").concat(t," - API returned empty hazuId"))}catch(D){console.warn("Error creating sharing group for item ".concat(w.snapshot.key,":"),D)}g.some(({tagResult:w})=>!w)?this.error="TAGS_SETTINGS.ERRORS.TAG_NOT_ADDED_MULTIPLE":(this.selectedValue="",this.additionsDropdownComponent.newTag.setValue(""),this.updateTags())}else if(yield this.tagsService.addTag(this.item.snapshot,t)){if(this.selectedValue="",this.additionsDropdownComponent.newTag.setValue(""),this.updateTags(),this.isShareTag(t,this.item.type))try{yield Ni(this.apiV2Services.addSharingGroupByTag(this.item.snapshot.key,t))}catch(g){}}else{this.error="TAGS_SETTINGS.ERRORS.TAG_NOT_ADDED";return}})}removeTag(e){return B(this,null,function*(){this.error="";let t;this.isMultiple&&this.items?t=(yield Promise.all(this.items.map(u=>this.tagsService.removeTag(u.snapshot,e)))).find(u=>u!==null):t=yield this.tagsService.removeTag(this.item.snapshot,e),t?this.updateTags():this.error="TAGS_SETTINGS.ERRORS.TAG_NOT_REMOVED"})}onSelectionChanged(e){this.selectedValue=e}addOnEnter(e){return B(this,null,function*(){e.preventDefault(),e.stopPropagation(),yield this.addTag()})}isAddButtonDisabled(){var e,t;return!this.selectedValue&&!((t=(e=this.additionsDropdownComponent)==null?void 0:e.newTag)!=null&&t.value)}};r(s,"\u0275fac",function(t){return new(t||s)(M(Tt),M(V),M(de),M(Uc))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-tags-settings"]],viewQuery:function(t,n){if(t&1&&ve(gr,5),t&2){let u;ae(u=le())&&(n.additionsDropdownComponent=u.first)}},inputs:{items:"items",item:"item",isMultiple:"isMultiple"},features:[zt([Tt]),be],decls:13,vars:12,consts:[[1,"wrapper"],[1,"existing-tags"],[1,"ui","label"],[1,"field",3,"submit","keydown.enter"],[1,"ui","action","input"],[3,"selectionChanged","options","filteredOutByDefaultOptions"],[1,"ui","button",3,"click","disabled"],[1,"ui","error","message"],[1,"delete","icon",3,"click"]],template:function(t,n){t&1&&(a(0,"div",0)(1,"div",1),Qr(2,Su,3,1,"div",2,$r),l(),a(4,"form",3),h("submit",function(g){return g.preventDefault()})("keydown.enter",function(g){return n.addOnEnter(g)}
1),a(5,"div",4)(6,"hz-additions-dropdown",5),f(7,"async"),f(8,"orderBy"),h("selectionChanged",function(g){return n.onSelectionChanged(g)}),l(),a(9,"button",6),h("click",function(){return n.addTag()}),C(10),f(11,"translate"),l()(),ei(12,wu,4,3,"div",7),l()()),t&2&&(p(2),Kr(n.tags),p(4),c("options",v(8,7,v(7,5,n.options$))||ge(11,vu))("filteredOutByDefaultOptions",n.tags),p(3),c("disabled",n.isAddButtonDisabled()),p(),z(" ",v(11,9,"TAGS_SETTINGS.ADD")," "),p(2),ti(n.error?12:-1))},dependencies:[li,vi,yi,On,vn,Qt,Sn,gr,ce,L,Ta],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:block;padding:1em;max-width:400px;-webkit-user-select:text;user-select:text}[_nghost-%COMP%]   input[_ngcontent-%COMP%]{width:100%}@container sidebar (max-width: $large-breakpoint){[_nghost-%COMP%]{max-width:100vw}}@media only screen and (max-width:992px){[_nghost-%COMP%]{max-width:100vw}}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]{max-width:100vw}}[_nghost-%COMP%]   .ui.input[_ngcontent-%COMP%]{width:100%;margin-top:1em}[_nghost-%COMP%]   .existing-tags[_ngcontent-%COMP%]{white-space:normal}[_nghost-%COMP%]   .ui.label[_ngcontent-%COMP%]{margin:.25em .1em}"],changeDetection:0}));let o=s;return o})();var qt=$e(Ke());function yu(o,s){if(o&1){let i=O();a(0,"div",8),h("click",function(t){m(i);let n=d();return t.stopPropagation(),_(n.select.emit())})("dblclick",function(t){return m(i),_(t.stopPropagation())}),S(1,"input",9)(2,"label"),l()}if(o&2){let i=d();p(),c("checked",i.selected)}}function Tu(o,s){o&1&&S(0,"div",10)}function bu(o,s){if(o&1&&(S(0,"hz-play-and-progress-icon",11),f(1,"iconRadius")),o&2){let i=d();c("item",i.item)("radius",j(1,2,i.item,1.25))}}function Iu(o,s){if(o&1&&(a(0,"div",12),S(1,"img",13),l()),o&2){let i=d();p(),c("src",i.item.profileImageUploaded||i.item.profileImageURL||i.item.socialImageURL,et)}}function xu(o,s){if(o&1){let i=O();a(0,"a",14),h("click",function(t){m(i);let n=d();return t.stopPropagation(),_(n.onOpen.emit())}),S(1,"i",15),l()}}var jc=(()=>{let s=class s{constructor(e){r(this,"filterLanguagesPipe");r(this,"item");r(this,"canSelect",!0);r(this,"userKey");r(this,"multiselect",!1);r(this,"selected",!1);r(this,"onOpen",new E);r(this,"select",new E);r(this,"languageChange",b(Si));r(this,"cdr",b(de));this.filterLanguagesPipe=e,Ce(()=>{this.languageChange.version(),this.cdr.markForCheck()})}getTitle(){let e=new xi().transform(this.filterLanguagesPipe.transform(this.item.title));return this.item.key===this.userKey?"".concat(e," (You)"):e}};r(s,"\u0275fac",function(t){return new(t||s)(M(Je))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-browse-item"]],inputs:{item:"item",canSelect:"canSelect",userKey:"userKey",multiselect:"multiselect",selected:"selected"},outputs:{onOpen:"onOpen",select:"select"},standalone:!1,decls:12,vars:15,consts:[[1,"item",3,"item"],["class","ui checkbox",3,"click","dblclick",4,"ngIf"],["class","ui placeholder",4,"ngIf"],[3,"item","radius",4,"ngIf"],["class","ui image",4,"ngIf"],[1,"large-exclude"],[3,"content","placeholder","isReadonly","multiLine","title","item"],["class","ui basic icon button open-button",3,"click",4,"ngIf"],[1,"ui","checkbox",3,"click","dblclick"],["type","checkbox",3,"checked"],[1,"ui","placeholder"],[3,"item","radius"],[1,"ui","image"],[3,"src"],[1,"ui","basic","icon","button","open-button",3,"click"],[1,"chevron","right","icon"]],template:function(t,n){t&1&&(a(0,"hz-item",0)(1,"icon-info"),y(2,yu,3,1,"div",1)(3,Tu,1,0,"div",2)(4,bu,2,5,"hz-play-and-progress-icon",3)(5,Iu,2,1,"div",4),l(),a(6,"header",5),S(7,"hz-container-editor",6),f(8,"translate"),l(),S(9,"extra-info"),a(10,"item-accessories"),y(11,xu,2,0,"a",7),l()()),t&2&&(c("item",n.item),J("e2e-title",n.item==null?null:n.item.titleText),p(2),c("ngIf",n.multiselect&&n.canSelect),p(),c("ngIf",n.multiselect&&!n.canSelect),p(),c("ngIf",n.item.type!=="user"&&n.item.icon),p(),c("ngIf",n.item.isUser&&(n.item.profileImageUploaded||n.item.profileImageURL||n.item.socialImageURL)),p(2),c("content",n.getTitle())("placeholder",v(8,13,"NAMING.UNTITLED_ITEM"))("isReadonly",!0)("multiLine",!1)("title",n.getTitle())("item",n.item),p(4),c("ngIf",n.item.isHazu||n.item.isUser))},dependencies:[k,ke,mt,zi,Vi,L,Yt],styles:["[_nghost-%COMP%]{padding:0!important;position:relative}[_nghost-%COMP%]   hz-item[_ngcontent-%COMP%]{padding:.2em .5em 0 1em!important;width:100%}[_nghost-%COMP%]   icon-info[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%]   icon-info[_ngcontent-%COMP%]   .ui.checkbox[_ngcontent-%COMP%]{display:flex;justify-content:center;line-height:17px;min-width:1em}[_nghost-%COMP%]   icon-info[_ngcontent-%COMP%]   .ui.checkbox[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{padding-left:2.2em}[_nghost-%COMP%]   icon-info[_ngcontent-%COMP%]   .ui.image[_ngcontent-%COMP%]{max-width:3em}[_nghost-%COMP%]   icon-info[_ngcontent-%COMP%]   .placeholder[_ngcontent-%COMP%]{width:2.2em}[_nghost-%COMP%]   header[_ngcontent-%COMP%]{font-weight:400}[_nghost-%COMP%]   item-accessories[_ngcontent-%COMP%]   .open-button[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%]   item-accessories[_ngcontent-%COMP%]   .open-button[_ngcontent-%COMP%]:hover{background:transparent none!important}
1[_nghost-%COMP%]   hz-container-editor[_ngcontent-%COMP%]     .fr-view{font-size:15.4px!important;overflow:hidden;text-overflow:ellipsis;width:240px}"],changeDetection:0}));let o=s;return o})();var Mu=o=>({noElements:o}),zu=(o,s,i)=>({item:!0,selected:o,disabled:s,hide:i});function ku(o,s){if(o&1){let i=O();a(0,"a",6),h("click",function(){m(i);let t=d(2);return _(t.clickOnBack())}),S(1,"i",18),C(2),f(3,"translate"),l()}o&2&&(p(2),z(" ",v(3,1,"COMMON.ACTION_BACK")," "))}function Vu(o,s){if(o&1){let i=O();a(0,"hz-browse-item",19),h("onOpen",function(){let t=m(i).$implicit,n=d(2);return _(n.loadTree(t.link))})("click",function(){let t=m(i).$implicit,n=d(2);return _(t.canSelect?n.checkItem(t):n.loadTree(t.link))})("select",function(){let t=m(i).$implicit,n=d(2);return _(n.checkItem(t))})("dblclick",function(){let t=m(i).$implicit,n=d(2);return _(n.loadTree(t.link))}),l()}if(o&2){let i=s.$implicit,e=d().ngIf,t=d();c("ngClass",ai(6,zu,e.selectedItems.indexOf(i)!==-1,!t.filter(i),t.isCopy&&!i.isHazu&&i.tags.includes(t.LEGEND_TAG)||!t.isCopy&&!t.isMove&&t.hideLegendItems()&&i.tags.includes(t.LEGEND_TAG)||t.isMove&&!i.isHazu&&!i.isUser))("canSelect",i.canSelect)("item",i)("multiselect",t.multiselect)("userKey",e.userKey)("selected",e.selectedItems.indexOf(i)!==-1)}}function Du(o,s){o&1&&(a(0,"div",20),C(1,"BROWSE.NO_ITEMS"),l())}function Lu(o,s){if(o&1&&(a(0,"div",21),C(1),f(2,"translate"),l()),o&2){let i=d().ngIf;p(),z(" ",v(2,1,i.error)," ")}}function Au(o,s){if(o&1){let i=O();a(0,"a",22),h("mousedown",function(t){return m(i),_(t.preventDefault())})("click",function(t){return m(i),d(2).selectAll(),_(t.stopPropagation())}),C(1," BROWSE.SELECT_ALL "),l()}if(o&2){let i=d().ngIf,e=d();G("disabled",i.loading),c("hidden",!e.isSelectAllVisible(i))}}function Nu(o,s){if(o&1){let i=O();a(0,"a",23),h("mousedown",function(t){return m(i),_(t.preventDefault())})("click",function(t){return m(i),d(2).clearSelected(),_(t.stopPropagation())}),C(1," BROWSE.SELECT_NONE "),l()}}function Ru(o,s){if(o&1){let i=O();a(0,"button",24),f(1,"async"),h("click",function(){m(i);let t=d(2);return _(t.onDone.emit())}),C(2),f(3,"translate"),f(4,"htmlToPlaintext"),l()}if(o&2){let i=d().ngIf,e=d();G("disabled",v(1,4,e.isDisabledButton(i.selectedItems))||i.loading),p(2),si(" ",v(3,6,"BROWSE.MOVE")," ",v(4,8,i.selectedItemsTitle)," ")}}function Bu(o,s){if(o&1){let i=O();a(0,"button",24),f(1,"async"),h("click",function(){m(i);let t=d(2);return _(t.onDone.emit())}),C(2),f(3,"translate"),l()}if(o&2){let i=d().ngIf,e=d();G("disabled",v(1,3,e.isDisabledButton(i.selectedItems))||i.loading),p(2),z(" ",v(3,5,e.label||"COMMON.ACTION_IMPORT")," ")}}function Fu(o,s){if(o&1){let i=O();a(0,"div",1),h("click",function(t){return m(i),_(t.stopPropagation())}),a(1,"div",2)(2,"span",3),y(3,ku,4,3,"a",4),l(),a(4,"span",5)(5,"a",6),h("click",function(){m(i);let t=d();return _(t.clickOnHome())}),S(6,"i",7),l(),a(7,"h2"),C(8),l()(),a(9,"span",8)(10,"i",9),h("click",function(){m(i);let t=d();return _(t.onClose.emit())}),l()()(),a(11,"div",10),y(12,Vu,1,10,"hz-browse-item",11)(13,Du,2,0,"div",12),l(),y(14,Lu,3,3,"div",13),a(15,"div",14),y(16,Au,2,3,"a",15)(17,Nu,2,0,"a",16)(18,Ru,5,10,"button",17)(19,Bu,4,7,"button",17),l()()}if(o&2){let i=s.ngIf,e=d();p(3),c("ngIf",e.showBackButton()),p(5),N(i.rootItemTitle),p(3),c("ngClass",T(11,Mu,e.noElements())),p(),c("ngForOf",i.items)("ngForTrackBy",e.trackByItemKey),p(),c("ngIf",e.noElements()),p(),c("ngIf",i.error),p(2),c("ngIf",e.multiselect),p(),c("ngIf",e.multiselect&&i.selectedItems.length&&i.selectedItems[0]!==i.rootItem),p(),c("ngIf",e.isMove&&(i.selectedItems||e.currentPath()==="")),p(),c("ngIf",e.isCopy&&(i.selectedItems||e.currentPath()===""))}}var vo=(function(o){return o.move="move",o.copy="copy",o})(vo||{}),So=(()=>{let s=class s{constructor(){r(this,"header");r(this,"rootPath");r(this,"filter");r(this,"isDisabled");r(this,"type",vo.move);r(this,"label","");r(this,"selectedIds",[]);r(this,"multiselect",!1);r(this,"acl",os.Target);r(this,"editAfterImport",!1);r(this,"setParamOnImport",{});r(this,"clearLink",!0);r(this,"clearTitle",!1);r(this,"preserveDate",!1);r(this,"update");r(this,"onBack",new E);r(this,"onDone",new E);r(this,"onClose",new E);r(this,"indexTreeService",b(Xn));r(this,"store",b(V));r(this,"myHazusDataService",b(Vl));r(this,"destroyRef",b(en));
1r(this,"indexTree",te(this.store.select(El),{requireSync:!0}));r(this,"ownedHazusByUserExists",te(ot([this.store.select(mn),this.store.select(hn)]).pipe(U(([e,t])=>!e||!t?!1:e.filter(n=>n&&n.parentId==="_").length>0)),{initialValue:!1}));r(this,"userShortUrl",te(this.store.select(Hs),{initialValue:""}));r(this,"hideLegendItems",this.store.selectSignal(ys));r(this,"LEGEND_TAG",mi.Legend);r(this,"parentUrls",_e([]));r(this,"currentPath",_e(""));r(this,"disableCache",{});r(this,"showBackButton",re(()=>{let e=this.ownedHazusByUserExists(),t=this.parentUrls().length;return t>2||t===2&&e}));r(this,"noElements",re(()=>{var t;let e=this.indexTree();return((t=e==null?void 0:e.items)==null?void 0:t.length)===0&&!(e!=null&&e.rootItem)}));r(this,"selectItem",(0,qt.debounce)((e,t)=>this.indexTreeService.selectItem(t,this.multiselect&&(e.ctrlKey||e.metaKey)),200));r(this,"checkItem",(0,qt.debounce)(e=>this.indexTreeService.selectItem(e,this.multiselect),200));this.destroyRef.onDestroy(()=>{this.indexTreeService.close()})}ngAfterViewInit(){this.prepareParentUrls(),this.update&&this.update.pipe(an(this.destroyRef)).subscribe(()=>this.prepareParentUrls())}prepareParentUrls(){let e=Ys(this.rootPath);this.parentUrls.set(e),this.loadTree(this.rootPath)}loadTree(e){this.parentUrls.update(t=>[...t,e]),this.currentPath.set(e),this.indexTreeService.load(e,this.selectedIds,this.acl,void 0,void 0,!1,void 0,this.editAfterImport,this.setParamOnImport,this.clearLink,this.clearTitle,this.preserveDate)}clickOnBack(){if(this.parentUrls().length>1){this.parentUrls.update(u=>{let g=[...u];return g.length-=1,g});let t=this.parentUrls(),n=t[t.length-1];this.currentPath.set(n),this.indexTreeService.load(n,void 0,void 0,void 0,void 0,!1,void 0,this.editAfterImport,this.setParamOnImport,this.clearLink,this.clearTitle,this.preserveDate)}else this.onBack.emit()}clickOnHome(){let e="/"+this.userShortUrl();this.currentPath()!==e&&(this.parentUrls.set(["",e]),this.currentPath.set(e),this.indexTreeService.load(e))}get isMove(){return this.type===vo.move}get isCopy(){return this.type===vo.copy}isDisabledButton(e){if(!(e!=null&&e.length))return It(!0);if(e=e.filter(u=>!!u),!(e!=null&&e.length))return It(!0);let t=e.map(u=>u.id).join(" ");if(t in this.disableCache)return this.disableCache[t];let n=e.map(u=>this.isDisabled(u));return Ar(n[0])?(this.disableCache[t]=ot(n).pipe(U(u=>(0,qt.some)(u)),Ur(!0)),this.disableCache[t]):(this.disableCache[t]=It((0,qt.some)(n)),this.disableCache[t])}selectAll(){this.indexTreeService.selectAllItem()}clearSelected(){this.indexTreeService.clearAllItem()}getTitle(e){let t=e.selectedItems.length&&e.selectedItems[0];return e.rootItem||t?e.selectedItemsTitle:""}isSelectAllVisible(e){return(0,qt.differenceBy)(e.items,e.selectedItems,"key").length}trackByItemKey(e,t){return t.key}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-browse"]],inputs:{header:"header",rootPath:"rootPath",filter:"filter",isDisabled:"isDisabled",type:"type",label:"label",selectedIds:"selectedIds",multiselect:"multiselect",acl:"acl",editAfterImport:"editAfterImport",setParamOnImport:"setParamOnImport",clearLink:"clearLink",clearTitle:"clearTitle",preserveDate:"preserveDate",update:"update"},outputs:{onBack:"onBack",onDone:"onDone",onClose:"onClose"},standalone:!1,decls:1,vars:1,consts:[["class","content dateButton",3,"click",4,"ngIf"],[1,"content","dateButton",3,"click"],[1,"ui","item","header"],[1,"left"],["href","javascript:;",3,"click",4,"ngIf"],[1,"center"],["href","javascript:;",3,"click"],[1,"home","icon"],[1,"right"],[1,"grey","link","close","icon",3,"click"],[1,"listContainer","ui","selection","list",3,"ngClass"],[3,"ngClass","canSelect","item","multiselect","userKey","selected","onOpen","click","select","dblclick",4,"ngFor","ngForOf","ngForTrackBy"],["translate","",4,"ngIf"],["class","ui negative message",4,"ngIf"],[1,"multiSelectManage"],["href","javascript:;","translate","",3,"hidden","disabled","mousedown","click",4,"ngIf"],["href","javascript:;","class","clear","translate","",3,"mousedown","click",4,"ngIf"],["class","ui positive button",3,"disabled","click",4,"ngIf"],[1,"icon","chevron","left"],[3,"onOpen","click","
1select","dblclick","ngClass","canSelect","item","multiselect","userKey","selected"],["translate",""],[1,"ui","negative","message"],["href","javascript:;","translate","",3,"mousedown","click","hidden"],["href","javascript:;","translate","",1,"clear",3,"mousedown","click"],[1,"ui","positive","button",3,"click"]],template:function(t,n){t&1&&y(0,Fu,20,13,"div",0),t&2&&c("ngIf",n.indexTree())},dependencies:[X,Qe,k,H,ke,jc,ce,L,xi],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]   .listContainer[_ngcontent-%COMP%]{height:330px;margin:0;overflow:auto;padding:0 0 5px;width:400px}[_nghost-%COMP%]     .clearfix{clear:both}[_nghost-%COMP%]   hz-browse-item[_ngcontent-%COMP%]{align-items:center;border:1px solid transparent!important;display:flex!important;min-height:3.6em}[_nghost-%COMP%]   hz-browse-item.selected[_ngcontent-%COMP%]{background-color:#00a2e808!important;border:1px solid #00a2e8!important}[_nghost-%COMP%]   hz-browse-item.hide[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%]   hz-browse-item.disabled[_ngcontent-%COMP%]{opacity:.3}[_nghost-%COMP%]   .ui.button[_ngcontent-%COMP%]{display:block;float:right;font-weight:700;margin:2px 10px 10px;padding:10px}[_nghost-%COMP%]   .noElements[_ngcontent-%COMP%]{display:grid;place-items:center}[_nghost-%COMP%]   .multiSelectManage[_ngcontent-%COMP%]{margin:1em}[_nghost-%COMP%]   .multiSelectManage[_ngcontent-%COMP%]   a.clear[_ngcontent-%COMP%]{margin-left:1em}[_nghost-%COMP%]   .multiSelectManage[_ngcontent-%COMP%]   a.disabled[_ngcontent-%COMP%]{cursor:default;pointer-events:none}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]{align-items:center;display:flex!important;font-size:1em;height:3em;justify-content:space-between;margin-bottom:0}[_nghost-%COMP%]   .header[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{flex-basis:0;flex-grow:1}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   h2[_ngcontent-%COMP%]{font-size:1em;margin:0!important;text-align:center}[_nghost-%COMP%]   .header[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{padding:0 .5em}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin-left:.25em;margin-right:.25em}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .center[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{float:left;font-size:1.2em}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1em}[_nghost-%COMP%]   .header[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]   .close[_ngcontent-%COMP%]{cursor:pointer;font-size:150%}@container sidebar (max-width: 767px){[_nghost-%COMP%]   .listContainer[_ngcontent-%COMP%]{height:calc(100vh - 8em);width:inherit}}@media only screen and (max-width:767px){[_nghost-%COMP%]   .listContainer[_ngcontent-%COMP%]{height:calc(100vh - 8em);width:inherit}}"],changeDetection:0}));let o=s;return o})();var wo=$e(Ke());function Uu(o,s){if(o&1){let i=O();a(0,"div",5)(1,"label"),S(2,"i",20),C(3),f(4,"translate"),l(),a(5,"form",21),h("submit",function(){m(i);let t=d();return _(t.save())}),a(6,"input",22,3),Z("isOpenChange",function(t){m(i);let n=d();return K(n.isStarOffsetOpen,t)||(n.isStarOffsetOpen=t),_(t)}),h("click",function(){m(i);let t=d();return _(t.toogleStartOffsetDatepicker())})("ngChange",function(t){m(i);let n=d();return _(n.streamOffsetChanged(t))}),l(),a(8,"button",23),S(9,"i",10),l()(),a(10,"div",24),C(11),f(12,"translate"),f(13,"localizedDate"),f(14,"localizedDate"),l()()}if(o&2){let i=d();p(3),z(" ",v(4,8,"VIDEO_SETTINGS.VIDEO_START")," "),p(3),c("clickToOpen",!1),Q("isOpen",i.isStarOffsetOpen),c("inline",!0)("defaultDate",i.videoStart),p(5),Gi(" ",v(12,10,"VIDEO_SETTINGS.EVENT_START"),": ",j(13,12,i.item.date,"shortDate")," ",j(14,15,i.item.date,"mediumTime")," ")}}function Gu(o,s){o&1&&(a(0,"div",25),C(1,"VIDEO_SETTINGS.SKIP_UNTAGGED_TOOLTIP"),l())}function Hu(o,s){o&1&&(a(0,"div",25),C(1,"VIDEO_SETTINGS.MINIMIZE_VIDEO_TOOLTIP"),l())}var Wc=(()=>{let s=class s{constructor(e,t,n){r(this,"itemsService");r(this,"changeDetector");r(this,"store");r(this,"item");r(this,"videoSettings");r(this,"layoutSettings");r(this,"saveSuccess",new E);
1r(this,"isStarOffsetOpen",!1);r(this,"videoStart",new Date);r(this,"videoId");this.itemsService=e,this.changeDetector=t,this.store=n}ngOnInit(){this.item.start&&(this.videoStart=new Date(this.item.start+this.item.streamOffset*1e3)),this.videoId=this.item.videoId}streamOffsetChanged(e){this.item.streamOffset=Math.floor((e.getTime()-this.item.start)/1e3),console.log("Set streamOffset: ",this.item.streamOffset)}save(){this.item.videoId=this.videoId,this.itemsService.updateItemVideo(this.item),this.saveSuccess.emit()}paste(e){let t=(0,wo.get)(e,"clipboardData.items",[]);if(t!=null&&t.length&&t[0].getAsString){let n=(0,wo.get)(e,"currentTarget.value","");this.videoId="",t[0].getAsString(u=>{this.changeVideo(n+u),this.changeDetector.detectChanges()})}}urlChanged(e){let t=(0,wo.get)(e,"currentTarget.value","");this.changeVideo(t)}changeVideo(e){this.videoId="";let t=function(w){let I=/^.*(youtu.be\/|v\/|e\/|u\/\w+\/|embed\/|v=)([^#\&\?]*).*/,D=w.match(I);return D&&D[2].length===11?"hazu://".concat(D[2],"@youtube"):!1},n=function(w){let I=/vimeo.*\/(\d+)/i.exec(w);return I&&I[1]?"hazu://".concat(I[1],"@vimeo"):!1},u=function(w){let I=[/3qsdn\.com.*\/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/i,/3q\.video.*\/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/i,/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})/i];for(let D of I){let Y=w.match(D);if(Y&&Y[1])return"hazu://".concat(Y[1],"@3q")}return!1},g=function(w){let I=/tube\.switch\.ch\/(?:videos|embed)\/([a-zA-Z0-9]+)/i.exec(w);return I&&I[1]?"hazu://".concat(I[1],"@switchtube"):!1};return this.videoId=e.split(",").map(w=>w.trim()).map(w=>t(w)||n(w)||g(w)||u(w)||w).join(", "),this.videoId}toogleStartOffsetDatepicker(){this.isStarOffsetOpen=!this.isStarOffsetOpen}updateVideoSettings(){this.store.dispatch(Gn(this.videoSettings))}updateLayoutSettings(e){this.store.dispatch(vt(W(W({},this.layoutSettings),e)))}};r(s,"\u0275fac",function(t){return new(t||s)(M(ue),M(de),M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-video-settings"]],inputs:{item:"item",videoSettings:"videoSettings",layoutSettings:"layoutSettings"},outputs:{saveSuccess:"saveSuccess"},standalone:!1,decls:36,vars:17,consts:[["minimizeVideo",""],["popupSkipUntaggedTemplate",""],["popupMinimizeVideoTemplate",""],["date",""],["name","form",1,"ui","form"],[1,"field"],[1,"ui","large","file","video","icon"],[1,"ui","right","labeled","icon","input",3,"submit"],["type","text","onfocus","this.select()","id","textInput","tabindex","1","name","videoId","autocomplete","off",3,"keyup","paste","hzFocus","ngModel","placeholder"],["type","submit",1,"ui","green","icon","label","button"],[1,"ui","check","icon"],["class","field",4,"ngIf"],[1,"inline","field"],[1,"label-with-tooltip"],["translate",""],["fuiPopup","",1,"ui","icon",3,"popupTemplate","popupDelay"],[1,"ui","link","icon","question","outline","circle","large"],[1,"ui","toggle","checkbox"],["type","checkbox","name","public",3,"change","checked"],["type","checkbox","name","public",3,"change","checked","title"],[1,"ui","large","clock","icon"],[1,"ui","right","fluid","labeled","icon","input","videoStart",3,"submit"],["hzDateTimePicker","","type","text",3,"isOpenChange","click","ngChange","clickToOpen","isOpen","inline","defaultDate"],[1,"ui","green","icon","label","button"],[1,"ui","message"],["translate","",1,"content"]],template:function(t,n){if(t&1){let u=O();a(0,"form",4)(1,"div",5)(2,"label"),S(3,"i",6),C(4),f(5,"translate"),l(),a(6,"form",7),h("submit",function(){return m(u),_(n.save())}),a(7,"input",8),f(8,"translate"),h("keyup",function(w){return m(u),_(n.urlChanged(w))})("paste",function(w){return m(u),_(n.paste(w))}),l(),a(9,"button",9),S(10,"i",10),l()()(),y(11,Uu,15,18,"div",11),a(12,"div",12)(13,"label",13)(14,"h3",14),C(15,"TABS.SKIP_UNTAGGED"),l(),a(16,"div",15),S(17,"i",16),l()(),a(18,"div",17)(19,"input",18),h("change",function(){return m(u),n.videoSettings.skipUntagged=!n.videoSettings.skipUntagged,_(n.updateVideoSettings())}),l(),S(20,"label"),l()(),a(21,"div",12)(22,"label",13)(23,"h3",14),C(24,"LAYOUT_SETTINGS.TOGGLE_PLAYER_MINI_DEFAULT"),l(),a(25,"div",15),S(26,"i",16),l()(),a(27,"div",17)(28,"input",19,0),f(30,"translate"),h("change",function(){m(u);let w=x(29);return _(n.updateLayoutSettings({minimizeVideo:w.checked}))}),l(),S(31,"label"),l()()(),y(32,Gu,2,0,"ng-template",null,1,R)(34,Hu,2,0,"ng-template",null,2,R)}
1if(t&2){let u=x(33),g=x(35);p(4),z(" ",v(5,11,"VIDEO_SETTINGS.VIDEO_ID")," "),p(3),c("ngModel",n.videoId)("placeholder",v(8,13,"VIDEO_SETTINGS.VIDEO_PLACEHOLDER")),p(4),c("ngIf",n.item.videoId&&n.item.date),p(5),c("popupTemplate",u)("popupDelay",300),p(3),c("checked",n.videoSettings.skipUntagged),p(6),c("popupTemplate",g)("popupDelay",300),p(3),c("checked",n.layoutSettings==null?null:n.layoutSettings.minimizeVideo)("title",v(30,15,"LAYOUT_SETTINGS.TOGGLE_PLAYER_MINI_DEFAULT"))}},dependencies:[k,On,wi,Oi,vn,wn,Sn,H,Ie,Wt,to,L,dt],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:block;padding:1em;max-width:24em}@container sidebar (max-width: $large-breakpoint){[_nghost-%COMP%]{max-width:100vw}}@media only screen and (max-width:992px){[_nghost-%COMP%]{max-width:100vw}}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]{max-width:100vw}}[_nghost-%COMP%]   .column[_ngcontent-%COMP%]{align-items:center;display:flex!important;padding:0!important}[_nghost-%COMP%]   .field[_ngcontent-%COMP%]   label[_ngcontent-%COMP%]{align-items:center;display:flex}[_nghost-%COMP%]   .field[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]   #textInput[_ngcontent-%COMP%]{padding-left:.5em!important;padding-right:.5em!important}.videoStart[_ngcontent-%COMP%]     .k-datetimepicker{width:100%}.videoStart[_ngcontent-%COMP%]     .k-datetimepicker input{box-sizing:border-box;height:auto;height:38px;text-indent:0}.videoStart[_ngcontent-%COMP%]     .k-datetimepicker .k-picker-wrap{background-image:none;border-bottom-right-radius:0;border-top-right-radius:0}.videoStart[_ngcontent-%COMP%]   .ui.green.button[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0}.ui.input.fluid[_ngcontent-%COMP%]{display:block;width:100%}.ui.input.fluid[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{border-radius:0;border-right:none;height:2.8em;margin-right:-3px;width:calc(100% - 37px)!important}[_nghost-%COMP%]     .flatpickr-calendar:before, [_nghost-%COMP%]     .flatpickr-calendar:after{display:none!important}.field.inline[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:space-between;line-height:3rem;margin-bottom:.9em}.field.inline[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{font-size:1rem;font-weight:400;margin-bottom:0}.field.inline[_ngcontent-%COMP%]   .checkbox[_ngcontent-%COMP%]{margin-right:0}.field.inline[_ngcontent-%COMP%]   .label-with-tooltip[_ngcontent-%COMP%]{display:flex!important;line-height:1em;align-items:center}.field.inline[_ngcontent-%COMP%]   .label-with-tooltip[_ngcontent-%COMP%]   .ui.icon[_ngcontent-%COMP%]{margin-left:3px}.field.inline[_ngcontent-%COMP%]   .label-with-tooltip[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:0;font-weight:400}"],changeDetection:0}));let o=s;return o})();var $u=["menu"],Qu=o=>({"pointing top right":o}),Ku=o=>({"item-options":o}),qu=(o,s,i)=>({lock:o,open:s,"unlock alternate":i}),Zc=o=>[o],Zu=()=>[];function Ju(o,s){if(o&1){let i=O();a(0,"div",4),f(1,"translate"),h("click",function(t){m(i);let n=d(2);return t.stopPropagation(),_(n.showMenu(t))})("hzTrackHoverChange",function(t){m(i);let n=d(2);return _(n.hoverOption.emit(t))}),S(2,"i"),l()}if(o&2){let i=d(2);c("ngClass",T(7,Qu,i.fullscreenModal)),J("title",v(1,5,"ACTIONS.OPEN_SETTINGS")),p(2),tt(Ee("toolbaricon icon ",i.iconClass||"setting"," grey"))}}function Xu(o,s){if(o&1){let i=O();a(0,"div",54),S(1,"hz-item",55),a(2,"i",56),h("click",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),l()()}if(o&2){let i=d(3);p(),c("item",i.item)("isAutoPriority",!0)}}function eh(o,s){o&1&&S(0,"div",57)}function th(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",58),f(1,"translate"),a(2,"a",59),h("click",function(){m(i);let t=d(3);return _(t.resetItemStart())}),C(3," PLAYER_CONTROLS.START "),l(),C(4," \u2022 "),a(5,"a",60),h("click",function(){m(i);let t=d(3);return _(t.resetItemEnd())}),C(6," PLAYER_CONTROLS.END "),l()()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.ACTION_POSITION_AT_CURSOR"))("canEdit",i==null?null:i.edit)}}function ih(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",61),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.showChangePathDialog())})("keydown.space",function(){m(i);let t=d(3);return _(t.showChangePathDialog())}),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,4,"ITEM_OPTIONS.LINK"))("canEdit",i==null?null:i.edit)("showCopyIcon",!0)("copyContent",e.getPermalink())}}function nh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",62),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.showChangePathDialog())})("keydown.space",function(){m(i);let t=d(3);return _(t.showChangePathDialog())}),l()}if(o&2){let i=d(3);c("label",v(1,3,"ITEM_OPTIONS.LINK"))("canEdit",i.updateAccount())("value",i.item.shortUrl)}}function oh(o,s){o&1&&S(0,"i",69)}function rh(o,s){o&1&&(a(0,"span",70),C(1,"ITEM_OPTIONS.PUBLIC"),l())}function sh(o,s){o&1&&(a(0,"span",70),C(1,"ITEM_OPTIONS.PRIVATE"),l())}function ah(o,s){o&1&&(a(0,"span",70),C(1,"ITEM_OPTIONS.UNLISTED"),l())}function lh(o,s){if(o&1){let i=O();a(0,"div",79),h("click",function(){m(i);let t=d(5);return _(t.savePrivacy("unlisted"))}),S(1,"i",83),C(2),f(3,"translate"),l()}o&2&&(p(2),z("",v(3,1,"ITEM_OPTIONS.UNLISTED")," "))}function ch(o,s){if(o&1){let i=O();a(0,"hz-dropdown",71),Z("isOpenChange",function(t){m(i);let n=d(4);return K(n.privacyShow,t)||(n.privacyShow=t),_(t)}),h("isOpenChange",function(t){m(i);let n=d(4);return _(n.privacyChange(t))}),a(1,"div",72)(2,"span",73)(3,"a",74),h("click",function(t){m(i);let n=d(4);return n.privacyShow=!1,_(t.stopPropagation())}
1),S(4,"i",75),C(5),f(6,"translate"),l()(),a(7,"h2"),C(8),f(9,"translate"),l(),a(10,"span",76)(11,"a",77),h("click",function(){m(i);let t=d(4);return _(t.hideCurrentPopup())}),S(12,"i",78),l()()(),a(13,"div",79),h("click",function(){m(i);let t=d(4);return _(t.savePrivacy("public"))}),S(14,"i",80),C(15),f(16,"translate"),l(),y(17,lh,4,3,"div",81),a(18,"div",79),h("click",function(){m(i);let t=d(4);return _(t.savePrivacy("private"))}),S(19,"i",82),C(20),f(21,"translate"),l()()}if(o&2){let i=d(4);Q("isOpen",i.privacyShow),p(5),z(" ",v(6,6,"COMMON.ACTION_BACK")," "),p(3),N(v(9,8,"ITEM_OPTIONS.PRIVACY")),p(7),z("",v(16,10,"ITEM_OPTIONS.PUBLIC")," "),p(2),c("ngIf",i.item.isHazu),p(3),z("",v(21,12,"ITEM_OPTIONS.PRIVATE")," ")}}function ph(o,s){if(o&1){let i=O();a(0,"div",63),h("click",function(){m(i);let t=d(3);return _(t.privacyShow=!t.privacyShow)}),S(1,"i",64),a(2,"span",65),C(3,"ITEM_OPTIONS.PRIVACY"),l(),y(4,oh,1,0,"i",66)(5,rh,2,0,"span",67)(6,sh,2,0,"span",67)(7,ah,2,0,"span",67)(8,ch,22,14,"hz-dropdown",68),l()}if(o&2){let i=d(2).ngIf,e=d();c("hidden",!e.isCurrentPushView("main")),p(),c("ngClass",ai(7,qu,e.item.privacy==="private"||e.item.privacy==="public",e.item.privacy==="public",e.item.privacy==="unlisted")),p(3),c("ngIf",i==null?null:i.edit),p(),c("ngIf",e.item.privacy==="public"),p(),c("ngIf",e.item.privacy==="private"),p(),c("ngIf",e.item.privacy==="unlisted"),p(),c("ngIf",i==null?null:i.edit)}}function dh(o,s){if(o&1&&(a(0,"span"),C(1),f(2,"localizedDate"),f(3,"localizedDate"),f(4,"localizedDate"),l()),o&2){let i=d(4);p(),Gi("",j(2,3,i.item.date,"E")," ",j(3,6,i.item.date,"mediumDate")," ",j(4,9,i.item.date,"shortTime"))}}function mh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",84),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("dateSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("dateSettings"))}),y(2,dh,5,12,"span",0),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,3,"ITEM_OPTIONS.DATE_AND_TIME"))("canEdit",i==null?null:i.edit),p(2),c("ngIf",e.item.date)}}function _h(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",85),f(1,"localizedDate"),f(2,"localizedDate"),f(3,"translate"),f(4,"localizedDate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.isItemDetailModal=!0)})("keydown.space",function(){m(i);let t=d(3);return _(t.isItemDetailModal=!0)}),l()}if(o&2){let i=d(2).ngIf,e=d();c("title",Zr("",j(1,7,e.item.date,"shortTime")," ",e.item.duration?"\u2014":""," ",e.item.duration?j(2,10,e.item.end,"shortTime"):""))("label",v(3,13,"DATE.TITLE"))("canEdit",i==null?null:i.edit)("value",j(4,15,e.item.date,"mediumDate"))}}function uh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",86),f(1,"translate"),f(2,"formatDuration"),h("onEditClick",function(){m(i);let t=d(3);return _(t.isItemDetailModal=!0)}),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,3,"ITEM_OPTIONS.DURATION"))("canEdit",i==null?null:i.edit)("value",j(2,5,e.item.duration*1e3,!0))}}function hh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",87),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("locationSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("locationSettings"))}),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,3,"ITEM_OPTIONS.LOCATION"))("canEdit",i==null?null:i.edit)("value",e.item.authorLocation)}}function gh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",88),f(1,"translate"),f(2,"async"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("assignedSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("assignedSettings"))}),l()}if(o&2){let i,e=d(2).ngIf,t=d();c("label",v(1,3,"ITEM_OPTIONS.ASSIGNED"))("canEdit",e==null?null:e.edit)("value",(i=v(2,5,t.getUserName(t.item.moderator)))==null?null:i.displayName)}}function fh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",89),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("tagsSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("tagsSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.TAGS"))("canEdit",(i==null?null:i.edit)||!1)}}function Ch(o,s){o&1&&S(0,"div",57)}function vh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",90),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("tableSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("tableSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"TABLE_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function Sh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",91),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("calendarSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("calendarSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"CALENDAR_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function wh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",92),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("formSettingsBaseItem"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("formSettingsBaseItem"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"FORM.SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function Oh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",93),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("boardsSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("boardsSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"BOARDS_SETTINGS.TITLE"))("canEdit",i.edit)}}function yh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",94),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("geoViewSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("geoViewSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"GEO_VIEW_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function Th(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",95),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("layoutSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("layoutSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"LAYOUT_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function bh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",96),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"DEFAULTS_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function Ih(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",97),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("videoSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("videoSettings"))}),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,3,"VIDEO_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)("value",e.item.videoId)}}function xh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",98),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("cookieConsent"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("cookieConsent"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COOKIES.SETTINGS.TITLE"))("canEdit",i.edit)}}function Eh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",99),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("externalLogin"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("externalLogin"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"LOGIN.SETTINGS.TITLE"))("canEdit",i.edit)}}function Ph(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",100),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("searchSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("searchSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"SEARCH_SETTINGS.TITLE"))("canEdit",i.edit)}}function Mh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",101),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("notifications"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("notifications"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"NOTIFICATION_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function zh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",102),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("interactionSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("interactionSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"INTERACTION_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function kh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",92),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("formSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("formSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"FORM.SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function Vh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",103),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("rolesSettings"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("rolesSettings"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ROLES_SETTINGS.TITLE"))("canEdit",i==null?null:i.edit)}}function Dh(o,s){o&1&&S(0,"div",57)}function Lh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",104),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.unplaceItem(t.item))})("keydown.space",function(){m(i);let t=d(3);return _(t.unplaceItem(t.item))}),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,2,e.item.isQuestion?"ITEM_OPTIONS.MOVE_BACK_TO_QUESTIONS":"ITEM_OPTIONS.MOVE_BACK_TO_AGENDA"))("canEdit",i==null?null:i.edit)}}function Ah(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",105),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.changeType(t.item))})("keydown.space",function(){m(i);let t=d(3);return _(t.changeType(t.item))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.CONVERT_ITEM_TO_HAZU"))("canEdit",i==null?null:i.edit)}}function Nh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",105),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.showChangeTypeModal(t.item))})("keydown.space",function(){m(i);let t=d(3);return _(t.showChangeTypeModal(t.item))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.CONVERT_HAZU_TO_ITEM"))("canEdit",i.edit)}}function Rh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",106),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.triggerManualNotification())})("keydown.space",function(){m(i);let t=d(3);return _(t.triggerManualNotification())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COMMON.ACTION_TRIGGER_MANUAL_NOTIFICATION"))("canEdit",i==null?null:i.edit)}}function Bh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",107),f(1,"translate"),f(2,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.openInGenius())})("keydown.space",function(){m(i);let t=d(3);return _(t.openInGenius())})("onSidebarClick",function(){m(i);let t=d(3);return _(t.openInGeniusSidebar())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,4,"GENIUS.OPEN_IN_GENIUS"))("canEdit",i==null?null:i.edit)("showSidebarIcon",!0)("sidebarTooltip",v(2,6,"GENIUS.OPEN_IN_SIDEBAR"))}}function Fh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",108),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.addToMyHazus())})("keydown.space",function(){m(i);let t=d(3);return _(t.addToMyHazus())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COMMON.ACTION_ADD_TO_MY_HAZUS"))("canEdit",i==null?null:i.edit)}}function Uh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",109),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.removeFromMyHazus())})("keydown.space",function(){m(i);let t=d(3);return _(t.removeFromMyHazus())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COMMON.ACTION_REMOVE_FROM_MY_HAZUS"))("canEdit",i==null?null:i.edit)}}function Gh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",110),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.setCurrentPushView("moveHazu"))})("keydown.space",function(){m(i);let t=d(3);return _(t.setCurrentPushView("moveHazu"))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COMMON.ACTION_MOVE"))("canEdit",i==null?null:i.edit)}}function Hh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",111),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);
1return _(t.showCopyToStudentsDialog())})("keydown.space",function(){m(i);let t=d(3);return _(t.showCopyToStudentsDialog())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COMMON.ACTION_COPY_TO"))("canEdit",i==null?null:i.edit)}}function jh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",112),f(1,"translate"),h("cbOnSuccess",function(){m(i);let t=d(3);return _(t.showCopiedToClipboardToast())}),l()}if(o&2){let i=d(2).ngIf,e=d();c("label",v(1,3,"COMMON.ACTION_COPY"))("canEdit",(i==null?null:i.edit)||i.importFrom)("cbContent",e.addToClipboardAPI(e.item))}}function Yh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",113),f(1,"translate"),h("onEditClick",function(t){m(i);let n=d(3);return _(n.pasteFromClipboardAPI(t))})("keydown.space",function(t){m(i);let n=d(3);return _(n.pasteFromClipboardAPI(t))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"COMMON.ACTION_PASTE"))("canEdit",i==null?null:i.edit)}}function Wh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",114),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.duplicateItem())})("keydown.space",function(){m(i);let t=d(3);return _(t.duplicateItem())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.DUPLICATE"))("canEdit",i==null?null:i.edit)}}function $h(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",115),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.calibrateAtCursor(t.item))})("keydown.space",function(){m(i);let t=d(3);return _(t.calibrateAtCursor(t.item))}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.ACTION_CALIBRATE"))("canEdit",i==null?null:i.edit)}}function Qh(o,s){if(o&1){let i=O();a(0,"hz-dropdown-item",116),f(1,"translate"),h("onEditClick",function(){m(i);let t=d(3);return _(t.showDeleteConfirm())})("keydown.space",function(){m(i);let t=d(3);return _(t.showDeleteConfirm())}),l()}if(o&2){let i=d(2).ngIf;c("label",v(1,2,"ITEM_OPTIONS.DELETE"))("canEdit",i.delete)}}function Kh(o,s){if(o&1){let i=O();a(0,"hz-push-view",117),f(1,"translate"),h("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())})("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearDateChanges())}),a(2,"hz-date-button-content",118),h("onSave",function(){m(i);let t=d(3);return _(t.saveDateChanges())})("hidePopup",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),l()()}if(o&2){let i=d(3);c("header",v(1,6,"ITEM_OPTIONS.DATE_AND_TIME"))("showCloseBtn",!0),p(2),c("canEdit",!0)("dateSettings",i.itemOptionsState.dateSettings)("isShowSave",i.itemOptionsState.dateSettings.isDirty)("item",i.item)}}function qh(o,s){if(o&1){let i=O();a(0,"hz-push-view",119),f(1,"translate"),h("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())})("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("main"))}),a(2,"hz-assigned-settings",120),h("hidePopup",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),l()()}if(o&2){let i=d(3);c("header",v(1,5,"ITEM_OPTIONS.ASSIGNED"))("isShowClose",!0),p(2),c("items",T(7,Zc,i.item))("aclUsers",i.loadedAcls())("user",i.identity())}}function Zh(o,s){if(o&1){let i=O();a(0,"hz-push-view",119),f(1,"translate"),h("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())})("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("main"))}),a(2,"hz-tags-settings",121),h("hidePopup",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),l()()}if(o&2){let i=d(3);c("header",v(1,3,"ITEM_OPTIONS.TAGS"))("isShowClose",!0),p(2),c("item",i.item)}}function Jh(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearTableChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveTableChanges())}),S(2,"hz-table-settings",123),l()}if(o&2){let i=d(3);c("header",v(1,5,"TABLE_SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.itemOptionsState.tableSettings.isDirty),p(2),c("tableSettings",i.itemOptionsState.tableSettings)("isMobile",i.isMobile)}}function Xh(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearCalendarChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveCalendarChanges())}),S(2,"hz-calendar-settings",124),l()}if(o&2){let i=d(3);c("header",v(1,4,"CALENDAR_SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.itemOptionsState.calendarSettings.isDirty),p(2),c("calendarSettings",i.itemOptionsState.calendarSettings)}}function e0(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearFormChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveFormChanges())}),S(2,"hz-form-settings",125),l()}if(o&2){let i=d(3);c("header",v(1,4,"FORM.SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.itemOptionsState.formSettings.isDirty),p(2),c("formSettings",i.itemOptionsState.formSettings)}}function t0(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearTableChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveBoardsChanges())}),S(2,"hz-boards-settings",126),l()}if(o&2){let i=d(3);c("header",v(1,5,"BOARDS_SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.itemOptionsState.boardsSettings.isDirty),p(2),c("boardsSettings",i.itemOptionsState.boardsSettings)("isMobile",i.isMobile)}}function i0(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearGeoViewChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveGeoViewChanges())}),S(2,"hz-geo-view-settings",127),l()}if(o&2){let i=d(3);c("header",v(1,4,"GEO_VIEW_SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.itemOptionsState.geoViewSettings.isDirty),p(2),c("geoViewSettings",i.itemOptionsState.geoViewSettings)}}function n0(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearVideoChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveVideoSettings())}),a(2,"hz-video-settings",128),h("saveSuccess",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),l()()}if(o&2){let i=d(3);c("header",v(1,6,"VIDEO_SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.itemOptionsState.videoSettings.isDirty&&!i.itemOptionsState.layoutSettings.isDirty),p(2),c("item",i.item)("videoSettings",i.itemOptionsState.videoSettings)("layoutSettings",i.itemOptionsState.layoutSettings)}}function o0(o,s){if(o&1){let i=O();a(0,"hz-push-view",129),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("main"))}),a(2,"hz-location-settings",130),h("hidePopup",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),l()()}if(o&2){let i=d(3);c("header",v(1,2,"ITEM_OPTIONS.LOCATION")),p(2),c("items",T(4,Zc,i.item))}}function r0(o,s){if(o&1){let i=O();a(0,"hz-push-view",131),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearLayoutChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveLayoutChanges())}
1),a(2,"hz-layout-settings",132),h("navigateToDefaults",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))}),l()()}if(o&2){let i=d(3);c("header",v(1,6,"LAYOUT_SETTINGS.TITLE"))("disableSaveBtn",!i.itemOptionsState.layoutSettings.isDirty)("isShowSave",!0),p(2),c("layoutSettings",i.itemOptionsState.layoutSettings)("baseItem",i.baseItem)("isRootHazu",i.item.isUser)}}function s0(o,s){if(o&1){let i=O();a(0,"hz-push-view",131),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearLayoutChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveLayoutChanges())}),a(2,"hz-layout-settings",133),h("navigateToDefaults",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))}),l()()}if(o&2){let i=d(3);c("header",v(1,7,"INTERACTION_SETTINGS.TITLE"))("disableSaveBtn",!i.itemOptionsState.layoutSettings.isDirty)("isShowSave",!0),p(2),c("layoutSettings",i.itemOptionsState.layoutSettings)("currentUserRole",i.currentUserRole())("baseItem",i.baseItem)("isItemAccessory",i.isItemAccessory)}}function a0(o,s){if(o&1){let i=O();a(0,"hz-push-view",131),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearLayoutChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveLayoutChanges())}),a(2,"hz-layout-settings",134),h("navigateToDefaults",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))}),l()()}if(o&2){let i=d(3);c("header",v(1,7,"FORM.SETTINGS.TITLE"))("disableSaveBtn",!i.itemOptionsState.layoutSettings.isDirty)("isShowSave",!0),p(2),c("layoutSettings",i.itemOptionsState.layoutSettings)("currentUserRole",i.currentUserRole())("baseItem",i.baseItem)("isItemAccessory",i.isItemAccessory)}}function l0(o,s){if(o&1){let i=O();a(0,"hz-push-view",135),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearRolesChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveRolesChanges())}),S(2,"hz-roles-settings",136),l()}if(o&2){let i=d(3);c("header",v(1,4,"ROLES_SETTINGS.TITLE"))("isShowSave",!0),p(2),c("item",i.item)("rolesSettings",i.itemOptionsState.rolesSettings)}}function c0(o,s){if(o&1){let i=O();a(0,"hz-push-view",135),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearCookieConsentChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveCookieConsentChanges())}),S(2,"hz-cookie-consent-settings",137),l()}if(o&2){let i=d(3);c("header",v(1,4,"COOKIES.SETTINGS.TITLE"))("isShowSave",!0),p(2),c("item",i.item)("cookieConsentSettings",i.itemOptionsState.cookieConsentSettings)}}function p0(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearLoginChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveLoginChanges())}),S(2,"hz-external-login-settings",138),l()}if(o&2){let i=d(3);c("header",v(1,6,"LOGIN.SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.canSaveLoginSettings()),p(2),c("item",i.item)("externalLoginSettings",i.itemOptionsState.externalLoginSettings)("enableHazuLogin",i.itemOptionsState.hazuLoginSettings.enableHazuLogin)}}function d0(o,s){if(o&1){let i=O();a(0,"hz-push-view",122),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearSearchSettings())})("onSave",function(){m(i);let t=d(3);return _(t.saveSearchSettings())}),S(2,"hz-search-settings",139),l()}if(o&2){let i=d(3);c("header",v(1,5,"SEARCH_SETTINGS.TITLE"))("isShowSave",!0)("disableSaveBtn",!i.canSaveSearchSettings()),p(2),c("item",i.item)("searchSettings",i.itemOptionsState.searchSettings)}}function m0(o,s){if(o&1){let i=O();a(0,"hz-push-view",135),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearDefaultsChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveDefaultsChanges())}),a(2,"hz-defaults-settings",140),h("onAddMoreColor",function(t){m(i);let n=d(3);return _(n.setCurrentPushView(t))}),l()()}if(o&2){let i=d(3);c("header",v(1,5,"DEFAULTS_SETTINGS.TITLE"))("isShowSave",!0),p(2),c("defaultsSettings",i.itemOptionsState.defaultsSettings)("layoutSettings",i.itemOptionsState.layoutSettings)("baseItem",i.baseItem)}}function _0(o,s){if(o&1){let i=O();a(0,"hz-push-view",141),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))})("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),S(2,"hz-more-colors",142),l()}if(o&2){let i=d(3);c("header",v(1,3,"ITEM_ICON_EDIT.COLOR_EDIT_HEADER"))("showCloseBtn",!0),p(2),c("defaultSettings",i.itemOptionsState.defaultsSettings.itemDefaults)}}function u0(o,s){if(o&1){let i=O();a(0,"hz-push-view",141),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("defaultsSettings"))})("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}
1),S(2,"hz-more-colors",143),l()}if(o&2){let i=d(3);c("header",v(1,3,"ITEM_ICON_EDIT.COLOR_EDIT_HEADER"))("showCloseBtn",!0),p(2),c("defaultSettings",i.itemOptionsState.defaultsSettings.hazuDefaults)}}function h0(o,s){if(o&1){let i=O();a(0,"hz-push-view",131),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return t.setCurrentPushView("main"),_(t.clearNotificationChanges())})("onSave",function(){m(i);let t=d(3);return _(t.saveNotificationChanges())}),S(2,"hz-notification-settings",144),l()}if(o&2){let i=d(3);c("header",v(1,4,"NOTIFICATION_SETTINGS.TITLE"))("disableSaveBtn",!i.itemOptionsState.notificationSettings.isDirty)("isShowSave",!0),p(2),c("settings",i.itemOptionsState.notificationSettings)}}function g0(o,s){if(o&1){let i=O();a(0,"div",172),h("click",function(){let t=m(i).$implicit,n=d(6);return _(n.addAllClassMembers(t.id))}),S(1,"span",173)(2,"i",174),C(3),l()}if(o&2){let i=s.$implicit,e=d(6);p(),_t("background-color","rgb("+e.getClassColor(e.getClassIndex(i.id))+")"),p(2),Gi(" ",i.title," (",i.members.length," ",e.getMembersText(i.members.length),") ")}}function f0(o,s){o&1&&(a(0,"div",175),S(1,"i",176),C(2),f(3,"translate"),l()),o&2&&(p(2),z(" ",v(3,1,"COMMON.NO_TARGETS_FOUND")," "))}function C0(o,s){if(o&1){let i=O();a(0,"div",163)(1,"div",164)(2,"div",165)(3,"input",166),f(4,"translate"),h("input",function(t){m(i);let n=d(5);return _(n.classFilter.set(t.target.value))})("keydown.escape",function(){m(i);let t=d(5);return _(t.toggleClassDropdown())}),l(),S(5,"i",167),l()(),S(6,"div",168),a(7,"div",169),y(8,g0,4,5,"div",170)(9,f0,4,3,"div",171),l()()}if(o&2){let i=d(5);p(3),c("placeholder",v(4,5,"COMMON.SEARCH_TARGETS"))("value",i.classFilter())("hzFocus",!0),p(5),c("ngForOf",i.filteredClasses()),p(),c("ngIf",i.filteredClasses().length===0)}}function v0(o,s){if(o&1){let i=O();a(0,"div",156)(1,"div",157)(2,"a",158),h("click",function(){m(i);let t=d(4);return _(t.toggleClassDropdown())}),C(3),f(4,"translate"),l(),a(5,"span",159),C(6,"\u2022"),l(),a(7,"a",160),h("click",function(){m(i);let t=d(4);return _(t.selectedCopyTargets().length>0?t.removeAllTargets():null)}),S(8,"i",161),C(9),f(10,"translate"),l()(),y(11,C0,10,7,"div",162),l()}if(o&2){let i=d(4);G("active",i.classDropdownOpen)("disabled",i.isLoadingCopyTargets()),p(3),z(" ",v(4,15,"COMMON.SELECT_GROUP")," "),p(4),_t("color",i.selectedCopyTargets().length===0?"#999":"#e74c3c")("cursor",i.selectedCopyTargets().length===0?"not-allowed":"pointer"),G("blue",i.selectedCopyTargets().length>0)("disabled",i.selectedCopyTargets().length===0),p(2),z(" ",v(10,17,"COMMON.REMOVE_ALL_TARGETS")," "),p(2),c("ngIf",i.classDropdownOpen)}}function S0(o,s){if(o&1){let i=O();a(0,"span",180),S(1,"i",181),C(2),a(3,"i",182),h("click",function(){let t=m(i).$implicit,n=d(5);return _(n.removeClassMembers(t.id))}),l()()}if(o&2){let i=s.$implicit,e=d(5);_t("background-color","rgb("+e.getClassColor(e.getClassIndex(i.id))+")")("color","white"),p(2),z(" ",i.title," ")}}function w0(o,s){if(o&1&&(a(0,"div",177)(1,"div",178),y(2,S0,4,5,"span",179),l()()),o&2){let i=d(4);p(2),c("ngForOf",i.getFullySelectedClasses())}}function O0(o,s){if(o&1){let i=O();a(0,"hz-push-view",145),f(1,"translate"),h("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("main"))})("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())}),a(2,"div",146)(3,"div",147)(4,"div",148),y(5,v0,12,19,"div",149),l(),a(6,"div",150)(7,"hz-select",151),f(8,"translate"),f(9,"translate"),h("valueChange",function(t){m(i);let n=d(3);return _(n.setSelectedCopyTargets(t))})("keydown",function(t){m(i);let n=d(3);return _(n.onSelectKeydown(t))}),l()(),y(10,w0,3,1,"div",152),a(11,"div",153)(12,"button",154),h("click",function(){m(i);let t=d(3);return _(t.copyToSelectedStudents())}),S(13,"i",155),C(14),f(15,"translate"),l()()()()()}if(o&2){let i=d(3);c("header",v(1,17,"COMMON.ACTION_COPY_TO")),p(5),c("ngIf",i.availableClasses().length>0&&!i.isLoadingCopyTargets()),p(2),G("loading",i.isLoadingCopyTargets()),c("value",i.selectedCopyTargets())("isMulti",!0)("isSearchable",!0)("placeholder",i.isLoadingCopyTargets()?v(8,19,"COMMON.LOADING")+"...":v(9,21,"COMMON.SEARCH_TARGETS"))("options",i.availableTargets()||ge(25,Zu))("disabled",i.isLoadingCopyTargets()),J("data-key",i.selectedCopyTargets().join(",")),p(3),c("ngIf",i.getFullySelectedClasses().length>0),p(2),G("disabled",i.selectedCopyTargets().length===0||i.isLoadingCopyTargets()),c("disabled",i.selectedCopyTargets().length===0||i.isLoadingCopyTargets()),p(2),si(" ",v(15,23,"COMMON.ACTION_COPY_TO")," (",i.selectedCopyTargets().length,") ")}}function y0(o,s){if(o&1){let i=O();a(0,"hz-browse",183),h("onBack",function(){m(i);let t=d(3);return _(t.setCurrentPushView("main"))})("onClose",function(){m(i);let t=d(3);return _(t.hideCurrentPopup())})("onDone",function(){m(i);let t=d(3);return _(t.moveItem(t.item))}),l()}if(o&2){let i=d(3);c("rootPath",(i.baseItem==null?null:i.baseItem.link)||i.item.link)("filter",i.filterBrowseItems())("isDisabled",i.isDisabledBrowseButton())}}function T0(o,s){if(o&1){let i=O();a(0,"hz-dropdown",5),Z("isOpenChange",function(t){m(i);let n=d(2);return K(n.isOpened,t)||(n.isOpened=t),_(t)}),h("isOpenChange",function(t){m(i);let n=d(2);return _(n.dropdownChange(t))})("click",function(t){return m(i),_(t.stopPropagation())}),y(1,Xu,3,2,"div",6)(2,eh,1,0,"div",7)(3,th,7,4,"hz-dropdown-item",8)(4,ih,2,6,"hz-dropdown-item",9)(5,nh,2,5,"hz-dropdown-item",10)(6,ph,9,11,"div",11)(7,mh,3,5,"hz-dropdown-item",12)(8,_h,5,18,"hz-dropdown-item",13)(9,uh,3,8,"hz-dropdown-item",14)(10,hh,2,5,"hz-dropdown-item",15)(11,gh,3,7,"hz-dropdown-item",16)(12,fh,2,4,"hz-dropdown-item",17)(13,Ch,1,0,"div",7)(14,vh,2,4,"hz-dropdown-item",18)(15,Sh,2,4,"hz-dropdown-item",19)(16,wh,2,4,"hz-dropdown-item",20)(17,Oh,2,4,"hz-dropdown-item",21)(18,yh,2,4,"hz-dropdown-item",22)(19,Th,2,4,"hz-dropdown-item",23)(20,bh,2,4,"hz-dropdown-item",24)(21,Ih,2,5,"hz-dropdown-item",25)(22,xh,2,4,"hz-dropdown-item",26)(23,Eh,2,4,"hz-dropdown-item",27)(24,Ph,2,4,"hz-dropdown-item",28)(25,Mh,2,4,"hz-dropdown-item",29)(26,zh,2,4,"hz-dropdown-item",30)(27,kh,2,4,"hz-dropdown-item",20)(28,Vh,2,4,"hz-dropdown-item",31)(29,Dh,1,0,"div",7)(30,Lh,2,4,"hz-dropdown-item",32)(31,Ah,2,4,"hz-dropdown-item",33)(32,Nh,2,4,"hz-dropdown-item",33),f(33,"async"),y(34,Rh,2,4,"hz-dropdown-item",34)(35,Bh,3,8,"hz-dropdown-item",35)(36,Fh,2,4,"hz-dropdown-item",36)(37,Uh,2,4,"hz-dropdown-item",37)(38,Gh,2,4,"hz-dropdown-item",38)(39,Hh,2,4,"hz-dropdown-item",39)(40,jh,2,5,"hz-dropdown-item",40)(41,Yh,2,4,"hz-dropdown-item",41)(42,Wh,2,4,"hz-dropdown-item",42)(43,$h,2,4,"hz-dropdown-item",43)(44,Qh,2,4,"hz-dropdown-item",44)(45,Kh,3,8,"hz-push-view",45)(46,qh,3,9,"hz-push-view",46)(47,Zh,3,5,"hz-push-view",46)(48,Jh,3,7,"hz-push-view",47)(49,Xh,3,6,"hz-push-view",47)(50,e0,3,6,"hz-push-view",47)(51,t0,3,7,"hz-push-view",47)(52,i0,3,6,"hz-push-view",47)(53,n0,3,8,"hz-push-view",47)(54,o0,3,6,"hz-push-view",48)(55,r0,3,8,"hz-push-view",49)(56,s0,3,9,"hz-push-view",49)(57,a0,3,9,"hz-push-view",49)(58,l0,3,6,"hz-push-view",50)(59,c0,3,6,"hz-push-view",50)(60,p0,3,8,"hz-push-view",47)(61,d0,3,7,"hz-push-view",47)(62,m0,3,7,"hz-push-view",50)(63,_0,3,5,"hz-push-view",51)(64,u0,3,5,"hz-push-view",51)(65,h0,3,6,"hz-push-view",49)(66,O0,16,26,"hz-push-view",52)(67,y0,1,3,"hz-browse",53),l()}if(o&2){let i=d().ngIf,e=d();c("position",e.position)("ngClass",T(71,Ku,e.isToolbarPosition)),Q("isOpen",e.isOpened),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.item.isPlaced&&e.canShowItemResetOption&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem||e.item.isQuestion)),p(),c("ngIf",e.isOpened&&e.show("link")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&e.item.isHazu),p(),c("ngIf",e.isOpened&&e.item.type==="user"&&e.isCurrentPushView("main")&&e.updateAccount()),p(),c("ngIf",e.isOpened&&e.show("privacy")&&(i==null?null:i.edit)),p(),c("ngIf",e.isOpened&&e.show("dateSettings")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem||e.item.isQuestion)),p(),c("ngIf",e.isOpened&&e.show("date")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem)),p(),c("ngIf",e.isOpened&&e.show("duration")&&(i==null?null:i.edit)&&e.item.duration&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.show("location")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem)),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("main")&&(i==null?null:i.edit)&&(e.item.isHazu||e.item.isItem)),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("main")&&(i==null?null:i.edit)&&(e.item.isUser||e.item.isHazu||e.item.isItem)),p(),c("ngIf",e.isOpened&&(i==null?null:i.edit)&&(e.show("date")||e.show("duration")||e.show("location"))&&e.isCurrentPushView("main")&&(e.show("permission")||e.show("privacy"))&&(e.item.isHazu||e.item.isItem||e.item.isQuestion)),p(),c("ngIf",e.isOpened&&e.show("table")&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.show("calendar")&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.show("form")&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.show("boards")&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.show("geo")&&e.isCurrentPushView("main")),p(),c("ngIf",e.isOpened&&e.show("layout")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isUser)),p(),c("ngIf",e.isOpened&&e.show("defaults")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isUser)),p(),c("ngIf",e.isOpened&&e.show("video")&&e.isCurrentPushView("main")&&e.item.isHazu),p(),c("ngIf",e.isOpened&&e.show("cookieConsent")&&e.isCurrentPushView("main")&&e.item.isUser),p(),c("ngIf",e.isOpened&&e.show("externalLogin")&&e.isCurrentPushView("main")&&e.item.isUser),p(),c("ngIf",e.isOpened&&e.show("search")&&e.isCurrentPushView("main")&&e.item.isUser),p(),c("ngIf",e.isOpened&&e.show("notifications")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isUser)),p(),c("ngIf",e.isOpened&&e.show("interaction")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem||e.item.isUser)),p(),c("ngIf",e.isOpened&&e.show("form-item")&&e.isCurrentPushView("main")&&e.canShowFormSettings()),p(),c("ngIf",e.isOpened&&e.show("roles")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isUser)),p(),c("ngIf",e.isOpened&&(e.show("interaction")||e.show("layout"))&&e.isCurrentPushView("main")&&(e.show("permission")||e.show("privacy"))&&(e.item.isHazu||e.item.isItem)),p(),c("ngIf",e.isOpened&&(i==null?null:i.edit)&&e.item&&e.shouldShowUnplace()&&e.show("unplace")&&e.isCurrentPushView("main")&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("changeType")&&(i==null?null:i.edit)&&e.item.isItem&&e.isCurrentPushView("main")&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("changeType")&&i.delete&&e.item.isHazu&&e.isCurrentPushView("main")&&v(33,69,e.showConvertHazuToItemModal(e.item))),p(2),c("ngIf",e.isOpened&&e.show("triggerManualNotification")&&e.isCurrentPushView("main")&&e.isManualNotificationOnParentEnabled()&&(e.item.isHazu||e.item.isItem)&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("openInGenius")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem)&&e.isGeniusEnabled()&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("addToMyHazus")&&e.isCurrentPushView("main")&&e.canAddToMyHazus(e.item)&&!e.isItemInMyHazus(e.item)&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("addToMyHazus")&&e.isCurrentPushView("main")&&e.canAddToMyHazus(e.item)&&e.isItemInMyHazus(e.item)&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("moveHazu")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem)&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.canShowCopyToStudents()&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("copyHazu")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem)&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("pasteHazu")&&e.isCurrentPushView("main")&&(e.item.isHazu||e.item.isItem)&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("duplicate")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&!e.item.isQuestion&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.show("calibrate")&&(i==null?null:i.edit)&&e.isCurrentPushView("main")&&e.baseItem&&e.item.key!==e.baseItem.key&&e.item.isPlaced&&(e.baseItem==null?null:e.baseItem.hasVideo)),p(),c("ngIf",e.isOpened&&i.delete&&e.show("delete")&&e.isCurrentPushView("main")&&!e.item.isUser&&e.isLoading()===!1),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("dateSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("assignedSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("tagsSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("tableSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("calendarSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("formSettingsBaseItem")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("boardsSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("geoViewSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("videoSettings")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("locationSettings")),p(),c("ngIf",e.isCurrentPushView("layoutSettings")),p(),c("ngIf",e.isCurrentPushView("interactionSettings")),p(),c("ngIf",e.isCurrentPushView("formSettings")),p(),c("ngIf",e.isCurrentPushView("rolesSettings")),p(),c("ngIf",e.isCurrentPushView("cookieConsent")),p(),c("ngIf",e.isCurrentPushView("externalLogin")),p(),c("ngIf",e.isCurrentPushView("searchSettings")),p(),c("ngIf",e.isCurrentPushView("defaultsSettings")),p(),c("ngIf",e.isCurrentPushView("colorPickerItemTab")),p(),c("ngIf",e.isCurrentPushView("colorPickerHazuTab")),p(),c("ngIf",e.isCurrentPushView("notifications")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("copyToStudents")),p(),c("ngIf",e.isOpened&&e.isCurrentPushView("moveHazu"))}}function b0(o,s){if(o&1&&(nn(0),y(1,Ju,3,9,"div",2)(2,T0,68,73,"hz-dropdown",3),on()),o&2){let i=s.ngIf,e=d();p(),c("ngIf",e.haveAnyPermission(i)),p(),c("ngIf",e.haveAnyPermission(i))}}function I0(o,s){if(o&1){let i=O();a(0,"hz-modal",184),f(1,"translate"),f(2,"translate"),h("onApproved",function(){m(i);let t=d();return _(t.onSaveClick())})("onClose",function(){m(i);let t=d();return _(t.isItemDetailModal=!1)}),a(3,"header")(4,"div",185)(5,"div",186),S(6,"i",187),l(),a(7,"div",188),C(8),f(9,"translate"),l()()(),a(10,"content")(11,"hz-item-settings",189),h("onStartValidChanged",function(t){m(i);let n=d();return _(n.onStartValidChanged(t))})("onEndValidChanged",function(t){m(i);let n=d();return _(n.onEndValidChanged(t))})("onDurationValidChanged",function(t){m(i);let n=d();return _(n.onDurationValidChanged(t))})("onDone",function(){m(i);let t=d();return _(t.hideDateDialog(t.isItemDetailModal=!1))})("onUrlChanged",function(t){m(i);let n=d();return _(n.onUrlChanged(t))})("onUrlSave",function(){m(i);let t=d();return _(t.onSaveClick())}),l()()()}if(o&2){let i=d();c("approveText",v(1,10,"COMMON.ACTION_SAVE"))("denyText",v(2,12,"COMMON.ACTION_CANCEL"))("approveClass",i.canSave?"green":"green canNotSave"),p(8),z(" ",v(9,14,"MODAL.LINK_TO_HAZU")," "),p(3),c("item",i.item)("startValid",i.startValid)("endValid",i.endValid)("durationValid",i.durationValid)("urlValid",
1i.urlValid)("canSave",i.canSave)}}var $c="hz-config-role-default-",Qc="hz-config-userid-",Zt=(()=>{let s=class s{constructor(){r(this,"item");r(this,"baseItem");r(this,"items");r(this,"tooltip",!1);r(this,"isMobile",!1);r(this,"options",[]);r(this,"iconClass");r(this,"direction","left");r(this,"subMenuDirection","right");r(this,"position","left");r(this,"canShowItemResetOption");r(this,"large");r(this,"itemOptionsState");r(this,"fullscreenModal");r(this,"isItemAccessory",!1);r(this,"isToolbarPosition",!1);r(this,"showPopup",new E);r(this,"hoverOption",new E);r(this,"toogleOptionsMenu",new E(!0));r(this,"itemSettings");r(this,"menuElement");r(this,"enableDebug",!1);r(this,"videoStart",new Date);r(this,"currentUserRole");r(this,"permission",_e(void 0));r(this,"baseItemFromStore");r(this,"isLoading");r(this,"loadedAcls");r(this,"identity");r(this,"updateAccount");r(this,"myHazus");r(this,"layoutSettingsFromStore");r(this,"rolesSettingsFromStore");r(this,"notificationSettingsFromStore");r(this,"defaultsSettingsFromStore");r(this,"tableSettingsFromStore");r(this,"boardsSettingsFromStore");r(this,"geoViewSettingsFromStore");r(this,"calendarSettingsFromStore");r(this,"formSettingsFromStore");r(this,"videoSettingsFromStore");r(this,"cookieConsentSettingsFromStore");r(this,"searchSettingsFromStore");r(this,"dateSettingsFromStore");r(this,"itemOptionsIsDirtyFromStore");r(this,"parentItemSignal",_e(void 0));r(this,"loginIdSignal",_e(""));r(this,"displayNameSignal",_e(""));r(this,"startValid",!0);r(this,"endValid",!0);r(this,"durationValid",!0);r(this,"urlValid",!0);r(this,"canSave",!0);r(this,"currentPushView","main");r(this,"isRemoved",!1);r(this,"isOpened",!1);r(this,"isItemDetailModal",!1);r(this,"privacyShow",!1);r(this,"isSaveConfigurationDispatched",!1);r(this,"parentItems");r(this,"isGeniusEnabled");r(this,"showCopyToStudents",!1);r(this,"selectedCopyTargets",_e([]));r(this,"selectedClasses",_e([]));r(this,"availableTargets");r(this,"classDropdownOpen",!1);r(this,"isLoadingCopyTargets",_e(!1));r(this,"actualClassroomsSignal",_e([]));r(this,"previousSettingsState",null);r(this,"availableClasses");r(this,"targetHazuListWithColorIndicators");r(this,"getFullySelectedClasses");r(this,"renderer",b(jr));r(this,"itemsService",b(ue));r(this,"layoutService",b(He));r(this,"authService",b(gn));r(this,"authorizationService",b($s));r(this,"router",b(ci));r(this,"routerService",b(pt));r(this,"window",b(Ci));r(this,"accSettingsAPI",b(Tc));r(this,"logService",b(Ue));r(this,"cdRef",b(de));r(this,"browseService",b(Qs));r(this,"store",b(V));r(this,"queryService",b(fn));r(this,"geniusService",b(sl));r(this,"translateService",b(ze));r(this,"itemDataService",b(ds));r(this,"classManagementService",b(Ll));r(this,"httpsCallableFunctionsService",b(Ws));r(this,"tagsService",b(Tt));r(this,"destroyRef",b(en));r(this,"classFilter",_e(""));r(this,"filteredClasses",re(()=>this.classManagementService.filterClassesByTitle(this.availableClasses(),this.classFilter())));this.currentUserRole=te(this.store.select(qe)),this.baseItemFromStore=te(this.store.select(Be)),this.isLoading=te(this.store.select(dn),{initialValue:!1}),this.identity=te(this.store.select(Gs)),this.loadedAcls=te(this.store.select(Gt)),this.updateAccount=te(this.store.select(_n)),this.loginIdSignal=this.store.selectSignal(hn),this.displayNameSignal=this.store.selectSignal(js),this.myHazus=this.store.selectSignal(mn),this.parentItems=this.store.selectSignal(Ts),this.isGeniusEnabled=_e(!1),this.layoutSettingsFromStore=this.store.selectSignal(Kl),this.rolesSettingsFromStore=this.store.selectSignal(Jl),this.notificationSettingsFromStore=this.store.selectSignal(Zl),this.defaultsSettingsFromStore=this.store.selectSignal(ql),this.tableSettingsFromStore=this.store.selectSignal(nc),this.boardsSettingsFromStore=this.store.selectSignal(oc),this.geoViewSettingsFromStore=this.store.selectSignal(rc),this.calendarSettingsFromStore=this.store.selectSignal(ac),this.formSettingsFromStore=this.store.selectSignal(Ot),this.videoSettingsFromStore=this.store.selectSignal(sc),this.cookieConsentSettingsFromStore=this.store.selectSignal(lc),this.searchSettingsFromStore=this.store.selectSignal(ec),this.dateSettingsFromStore=this.store.selectSignal(io),this.itemOptionsIsDirtyFromStore=this.store.selectSignal(cc),this.availableTargets=this.store.selectSignal(Dl),this.availableClasses=this.classManagementService.createAvailableClasses(this.availableTargets),this.targetHazuListWithColorIndicators=this.classManagementService.createTargetHazuListWithColorIndicators(this.availableTargets),this.getFullySelectedClasses=re(()=>{let e=this.selectedClasses();return this.availableClasses().filter(n=>
1e.includes(n.id))})}ngOnChanges(e){var t;if((0,Li.get)(e,"item")&&this.item){this.parentItemSignal=this.store.selectSignal(Ls(this.item.parentId)),this.logService.printDebugInfo(this.enableDebug,this,"ngOnChanges","item changed, title: ".concat(this.item.title,", originalParentItemId: ").concat(this.item.originalParentItemId));let n=(0,Li.get)(e,"item.previousValue.key"),u=(0,Li.get)(e,"item.currentValue.key");n!==u&&this.store.select(Ei(this.item)).pipe(an(this.destroyRef)).subscribe(g=>{queueMicrotask(()=>this.permission.set(g))})}(0,Li.get)(e,"canShowItemResetOption")&&this.item&&this.logService.printDebugInfo(this.enableDebug,this,"ngOnChanges","canShowItemResetOption changed: ".concat(String(this.canShowItemResetOption))),(0,Li.get)(e,"itemOptionsState")&&this.item&&((t=this.itemOptionsState)!=null&&t.item)&&!this.itemOptionsState.isOpen&&this.itemOptionsState.item.id===this.item.id&&this.hideCurrentPopup()}ngOnInit(){this.item.start&&(this.videoStart=new Date(this.item.start+this.item.streamOffset*1e3)),(this.item.isHazu||this.item.isItem)&&(this.isGeniusEnabled=re(()=>{let e=this.parentItems();return Hr(()=>this.geniusService.shouldGeniusBeEnabled(e,this.item))}))}unplaceItem(e){if(this.logService.printDebugInfo(this.enableDebug,this,"onUnplaceItem","type: ".concat(e.type,", title: ").concat(e.title)),e.isQuestion)return this.store.dispatch(gl(e));this.itemsService.unplaceItem(e)}changeType(e){this.hideCurrentPopup(),this.itemsService.changeTypeToEvent(e,this.baseItem)}removeItem(e){this.logService.printDebugInfo(this.enableDebug,this,"onRemoveItem","type: ".concat(e.type,", title: ").concat(e.title));let t=this.getOriginalShortURL();if(this.isRemoved=!0,this.item.isHazu){this.itemsService.removeEvent(e,this.router.url),this.store.dispatch(ms({path:[this.routerService.normalizeUrl(t)]}));let n=this.translateService.instant("ITEM_OPTIONS.HAZU_DELETED_SUCCESS",{title:e.titleText});this.store.dispatch(St(n,"success",3e3))}else this.itemsService.removeItem(e)}show(e){return this.options.indexOf(e)!==-1}showMenu(e){e&&e.stopPropagation(),this.isOpened?this.hideCurrentPopup():this.showCurrentPopup()}savePrivacy(e){let t=this.item.clone();t.privacy=e,this.itemsService.updateItemInfo(t)}canShowFormSettings(){let e=this.currentUserRole();return e?this.item.isItem&&fe[e.toString()]>=fe[this.baseItem.rolesSettings.edit.item.toString()]:!1}shouldShowUnplace(){return!!(this.item.isPlaced&&(this.item.isItem||this.item.isQuestion&&this.item.isPlaced||this.item.isHazu))}resetItemStart(){this.hideCurrentPopup(),setTimeout(()=>{this.itemsService.resetItemStart(this.item)},100)}resetItemEnd(){this.hideCurrentPopup(),setTimeout(()=>{this.itemsService.resetItemEnd(this.item)},100)}onStartValidChanged(e){this.startValid=e,this.canSave=this.startValid&&this.endValid&&this.durationValid&&this.urlValid,this.logService.printDebugInfo(this.enableDebug,this,"onStartValidChanged","value: ".concat(String(e),", canSave: ").concat(String(this.canSave)))}onEndValidChanged(e){this.endValid=e,this.canSave=this.startValid&&this.endValid&&this.durationValid&&this.urlValid,this.logService.printDebugInfo(this.enableDebug,this,"onEndValidChanged","value: ".concat(String(e),", canSave: ").concat(String(this.canSave)))}onDurationValidChanged(e){this.durationValid=e,this.canSave=this.startValid&&this.endValid&&this.durationValid&&this.urlValid,this.logService.printDebugInfo(this.enableDebug,this,"onDurationValidChanged","value: ".concat(String(e),", canSave: ").concat(String(this.canSave)))}onUrlChanged(e){this.urlValid=e,this.canSave=this.startValid&&this.endValid&&this.durationValid&&this.urlValid,this.logService.printDebugInfo(this.enableDebug,this,"onUrlChanged","value: ".concat(String(e),", canSave: ").concat(String(this.canSave)))}onSaveClick(){this.canSave&&(this.logService.printDebugInfo(this.enableDebug,this,"onSaveClick"),this.itemSettings.save())}saveItem(){this.itemOptionsIsDirtyFromStore()&&this.itemsService.updateItemInfo(this.item)}duplicateItem(){this.itemsService.duplicateItem(this.item)}showCopiedToClipboardToast(){this.store.dispatch(St("MODAL.ITEM_COPIED","success",3e3)),this.hideCurrentPopup()}addToClipboardAPI(e){return this.itemsService.dataToClipboard([e])}getPermalink(){return this.routerService.getPermalink(this.item,!0)}pasteFromClipboardAPI(){var e;
1try{if((e=navigator.clipboard)!=null&&e.readText){let t=document.createElement("button");t.style.display="none",document.body.appendChild(t),t.onclick=()=>B(this,null,function*(){try{let n=yield navigator.clipboard.readText();this.itemsService.pasteItem({clipboardData:{getData:()=>n}})}catch(n){console.error("Clipboard API failed:",n),this.fallbackPaste()}finally{document.body.removeChild(t)}}),t.click()}else this.fallbackPaste();this.hideCurrentPopup()}catch(t){console.error("Paste failed:",t),alert("Paste operation not supported")}}fallbackPaste(){let e=document.createElement("textarea");e.style.position="fixed",e.style.opacity="0",document.body.appendChild(e),e.focus(),document.execCommand("paste"),document.body.removeChild(e)}saveLayoutChanges(){let e=this.layoutSettingsFromStore();if(e!=null&&e.isDirty){let t=this.getOriginalLayoutSettings();this.previousSettingsState={type:"layout",settings:t},this.store.dispatch($i()),this.isSaveConfigurationDispatched=!0,this.hideCurrentPopup(),this.showUndoToast("LAYOUT_SETTINGS.TITLE")}this.items&&!this.isItemAccessory&&this.items.forEach(t=>{var n,u;t.commentsEnabled=(n=e==null?void 0:e.commentsEnabled)!=null?n:this.itemOptionsState.layoutSettings.commentsEnabled,t.votesEnabled=(u=e==null?void 0:e.votesEnabled)!=null?u:this.itemOptionsState.layoutSettings.votesEnabled})}getOriginalLayoutSettings(){return{showSidebar:this.item.showSidebar,showTimeline:this.item.showTimeline,showShareButtons:this.item.showShareButtons,showAssigned:this.item.showAssigned,showLocation:this.item.showLocation,showTags:this.item.showTags,hideHazuTitle:this.item.hideHazuTitle,hideLegendItems:this.item.hideLegendItems,showLiveMode:this.item.showLiveMode,minimizeVideo:this.item.minimizeVideo,commentsEnabled:this.item.commentsEnabled,showQuestionTab:this.item.isOpen,showChatTab:this.item.isChatOpen,votesEnabled:this.item.votesEnabled,votesRole:this.item.votesRole,showResults:this.item.showResults,votesViewType:this.item.votesViewType,voteOptions:W({},this.item.voteOptions),sortOrder:this.item.sortOrder,hidePast:this.item.hidePast,timelinePosition:this.item.timelinePosition,defaultView:this.item.defaultView,itemsPerPage:this.item.itemsPerPage,level:this.item.level,messengerMode:this.item.messengerMode,autoDate:this.item.autoDate,openStreetMap:this.item.openStreetMap,showDate:this.item.showDate,showAuthor:this.item.showAuthor,showExtendedContent:this.item.showExtendedContent}}saveRolesChanges(){var e;(e=this.rolesSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"roles",settings:W({},this.item.rolesSettings)},this.store.dispatch(Qo()),this.isSaveConfigurationDispatched=!0,this.hideCurrentPopup(),this.showUndoToast("ROLES_SETTINGS.TITLE"))}saveCookieConsentChanges(){var e;(e=this.cookieConsentSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"cookieConsent",settings:{customCookieLink:this.item.customCookieLink,customDataProtectionLink:this.item.customDataProtectionLink,hideCookieBatch:this.item.hideCookieBatch}},this.store.dispatch(Ko()),this.isSaveConfigurationDispatched=!0,this.hideCurrentPopup(),this.showUndoToast("COOKIES.SETTINGS.TITLE"))}canSaveLoginSettings(){var u,g;if(!((u=this.itemOptionsState)!=null&&u.externalLoginSettings)||!((g=this.itemOptionsState)!=null&&g.hazuLoginSettings))return!1;let e=this.itemOptionsState.externalLoginSettings,t=this.itemOptionsState.hazuLoginSettings,n=e.enableEdulog||e.enableMicrosoft||t.enableHazuLogin;return(e.isDirty||t.isDirty)&&n}canSaveSearchSettings(){var e,t;return(t=(e=this.searchSettingsFromStore())==null?void 0:e.isDirty)!=null?t:!1}saveLoginChanges(){(this.itemOptionsState.externalLoginSettings.isDirty||this.itemOptionsState.hazuLoginSettings.isDirty)&&(this.previousSettingsState={type:"login",settings:{externalLogin:{enableEdulog:this.item.enableEdulog,enableMicrosoft:this.item.enableMicrosoft},hazuLogin:{enableHazuLogin:this.item.enableHazuLogin}}},this.store.dispatch(qo()),this.isSaveConfigurationDispatched=!0,this.hideCurrentPopup(),this.showUndoToast("LOGIN.SETTINGS.TITLE"))}saveSearchSettings(){var e;(e=this.searchSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"search",settings:W({},this.item.searchSettings)},this.store.dispatch(Zo()),this.isSaveConfigurationDispatched=!0,this.hideCurrentPopup(),this.showUndoToast("SEARCH_SETTINGS.TITLE"))}saveDefaultsChanges(){var u,g,w;let e=(g=(u=this.layoutSettingsFromStore())==null?void 0:u.isDirty)!=null?g:!1;if(!((w=this.defaultsSettingsFromStore())!=null&&w.isDirty)){e&&this.saveLayoutChanges();return}let t=W({},this.item.defaultsSettings),n=e?this.getOriginalLayoutSettings():null;this.previousSettingsState={type:"defaults",settings:t,layoutSettings:n},e&&(this.store.dispatch($i()),this.isSaveConfigurationDispatched=!0),this.store.dispatch(Jo()),this.isSaveConfigurationDispatched=!0,this.hideCurrentPopup(),this.showUndoToast("DEFAULTS_SETTINGS.TITLE")}saveTableChanges(){var e;(e=this.tableSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"table",settings:W({},this.item.tableSettings)},this.store.dispatch(Xo()),this.hideCurrentPopup(),this.showUndoToast("TABLE_SETTINGS.TITLE"))}saveBoardsChanges(){var e;(e=this.boardsSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"boards",settings:W({},this.item.boardsSettings)},this.store.dispatch(er()),this.hideCurrentPopup(),this.showUndoToast("BOARDS_SETTINGS.TITLE"))}saveGeoViewChanges(){var e;(e=this.geoViewSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"geoView",settings:W({},this.item.geoViewSettings)},this.store.dispatch(tr()),this.hideCurrentPopup(),this.showUndoToast("GEO_VIEW_SETTINGS.TITLE"))}saveCalendarChanges(){var e;(e=this.calendarSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"calendar",settings:W({},this.item.calendarSettings)},this.store.dispatch(or()),this.hideCurrentPopup(),this.showUndoToast("CALENDAR_SETTINGS.TITLE"))}saveFormChanges(){var e;(e=this.formSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"form",settings:W({},this.item.formSettings)},this.store.dispatch(rr()),this.hideCurrentPopup(),this.showUndoToast("FORM.SETTINGS.TITLE"))}saveDateChanges(){var e;(e=this.dateSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"date",settings:{date:this.item.date,duration:this.item.duration}},this.store.dispatch(Pi()),this.hideCurrentPopup(),this.showUndoToast("DATE.TITLE"))}saveNotificationChanges(){var e;(e=this.notificationSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"notification",settings:{onItemCreated:this.item.notifyOnItemCreated,onEventCreated:this.item.notifyOnEventCreated,onCommentCreated:this.item.notifyOnCommentCreated,onChatCreated:this.item.notifyOnChatCreated,onQuestionCreated:this.item.notifyOnQuestionCreated,manualNotification:this.item.notifyManually}},this.store.dispatch(nr()),this.hideCurrentPopup(),this.showUndoToast("NOTIFICATION_SETTINGS.TITLE"))}saveVideoSettings(){var e,t;(e=this.videoSettingsFromStore())!=null&&e.isDirty&&(this.previousSettingsState={type:"video",settings:W({},this.item.videoSettings)},this.store.dispatch(ir()),this.hideCurrentPopup(),this.showUndoToast("VIDEO_SETTINGS.TITLE")),(t=this.layoutSettingsFromStore())!=null&&t.isDirty&&this.saveLayoutChanges()}clearLayoutChanges(){this.store.dispatch(Ra())}clearTableChanges(){this.store.dispatch(Qa())}clearGeoViewChanges(){this.store.dispatch(Ka())}clearVideoChanges(){this.store.dispatch(qa())}clearCookieConsentChanges(){this.store.dispatch(Ua())}clearLoginChanges(){this.store.dispatch(Ya())}clearSearchSettings(){this.store.dispatch(Ha())}clearRolesChanges(){this.store.dispatch(Ba())}clearDefaultsChanges(){this.store.dispatch($a())}clearDateChanges(){this.store.dispatch(Na())}clearNotificationChanges(){this.store.dispatch(Ja())}clearCalendarChanges(){this.store.dispatch(Xa())}clearFormChanges(){this.store.dispatch(el())}getOriginalShortURL(){let e=this.router.url.split("/")[1];if(this.item.shortUrl){if("/".concat(this.item.shortUrl)===this.item.link)return"/"+e;{let t=this.item.link.split("/");return t.pop(),t.join("/")}}else return"/"+e}hideDateDialog(e){this.logService.printDebugInfo(this.enableDebug,this,"hideDateDialog"),e.hide()}getUserName(e){return this.store.select(oa(e))}isCurrentPushView(e){return this.currentPushView===e}setCurrentPushView(e){this.currentPushView=e}showChangePathDialog(){this.layoutService.showModal(Ae.SET_LINK_TO_HAZU,{item:this.item})}showDeleteConfirm(){this.layoutService.showModal(Ae.CONFIRM_DELETE,{item:this.item,approved:()=>{this.removeItem(this.item)}})}triggerManualNotification(){this.store.dispatch(Il(this.item.id,this.loginIdSignal(),this.item.parentId,this.item.isHazu)),this.hideCurrentPopup()}isItemInMyHazus(e){return this.myHazus().some(t=>t.id===e.id)}canAddToMyHazus(e){return e.isHazu||e.isUser&&e.isRoot}addToMyHazus(){this.store.dispatch(us(this.item)),this.hideCurrentPopup()}removeFromMyHazus(){this.store.dispatch(hs(this.item)),this.hideCurrentPopup()}filterBrowseItems(){return e=>this.item.isHazu?(e.isHazu||e.isUser)&&e.link.indexOf(this.item.link)!==0:e.isHazu||e.isUser}isDisabledBrowseButton(){return e=>this.browseService.canDoMoveOperation(this.item,this.baseItem||this.item,e).pipe(U(t=>!t))}moveItem(e){this.itemsService.moveItemStarted(e)}hideCurrentPopup(){this.isOpened=!1,this.toogleOptionsMenu.emit(this.isOpened),this.privacyShow=!1}showCurrentPopup(){this.isOpened=!0,this.toogleOptionsMenu.emit(this.isOpened),this.cdRef.detectChanges()}dropdownChange(e){if(this.toogleOptionsMenu.emit(this.isOpened),e)this.store.dispatch(zn(this.item,!1)),this.showPopup.emit(!0);else{if(this.isRemoved)return;this.saveItem(),this.isSaveConfigurationDispatched?this.isSaveConfigurationDispatched=!1:this.store.dispatch(kn()),this.setCurrentPushView("main"),this.showPopup.emit(!1)}}calibrateAtCursor(e){this.store.dispatch(aa(e))}privacyChange(e){this.isMobile||e||this.hideCurrentPopup()}isManualNotificationOnParentEnabled(){var e,t;return(t=(e=this.parentItemSignal())==null?void 0:e.notifyManually)!=null?t:!1}haveAnyPermission(e){return e&&(e.create||e.delete||(e==null?void 0:e.edit)||e.importFrom||e.importInto)}showChangeTypeModal(e){this.hideCurrentPopup(),this.layoutService.showModal(Ae.CHANGE_TYPE_WARNING,{item:e,url:this.router.url,isBaseItem:!this.baseItem})}showConvertHazuToItemModal(e){return this.queryService.getPossibleItems(e.id,this.loginIdSignal()).pipe(U(t=>t.length===0))}openInGenius(){this.store.dispatch(Yo({viewMode:"modal",params:{loadHazu:this.item.id}})),this.hideCurrentPopup()}openInGeniusSidebar(){this.store.dispatch(Yo({viewMode:"sidebar",params:{loadHazu:this.item.id}})),this.hideCurrentPopup()}canShowCopyToStudents(){var t,n;if(!((t=this.item)!=null&&t.isHazu))return!1;let e=this.parentItemSignal();return((n=e==null?void 0:e.tags)==null?void 0:n.includes(Uo))||!1}
1showCopyToStudentsDialog(){this.isLoadingCopyTargets.set(!0);let e=this.baseItem||this.item,t=this.parentItems();this.queryService.getPossibleItems(e.id,this.loginIdSignal()).subscribe({next:n=>{this.store.dispatch(ar({baseItem:e,parentItems:t,children:n})),this.watchForTargetsLoaded()},error:n=>{console.error("Failed to get children for skills initialization:",n),this.store.dispatch(ar({baseItem:e,parentItems:t,children:[]})),this.watchForTargetsLoaded()}}),this.setCurrentPushView("copyToStudents")}watchForTargetsLoaded(){setTimeout(()=>{this.isLoadingCopyTargets.set(!1)},1500)}setSelectedCopyTargets(e){let t=Array.isArray(e)?e:[e];this.selectedCopyTargets.set(t)}getTargetTitleWithColorIndicator(e){return this.classManagementService.getTargetTitleWithColorIndicator(e,this.availableClasses())}isClassTarget(e){return this.classManagementService.isClassTarget(e)}copyToSelectedStudents(){return B(this,null,function*(){let e=this.selectedCopyTargets();if(e.length!==0){this.hideCurrentPopup(),this.store.dispatch(St(this.translateService.instant("COMMON.COPYING_IN_PROGRESS"),"info",2e3));try{let t=e.map(w=>this.copyItemToTarget(w)),n=yield Promise.allSettled(t),u=n.filter(w=>w.status==="fulfilled").length,g=n.length-u;if(u>0){let w=g>0?this.translateService.instant("COMMON.COPY_PARTIAL_SUCCESS_MESSAGE",{success:u,total:e.length}):this.translateService.instant("COMMON.COPY_SUCCESS_MESSAGE",{count:u});this.store.dispatch(St(w,"success",3e3)),this.selectedCopyTargets.set([]),this.selectedClasses.set([])}else this.store.dispatch(St(this.translateService.instant("COMMON.COPY_FAILED_MESSAGE"),"error",3e3))}catch(t){console.error("Error during copy operation:",t),this.store.dispatch(St(this.translateService.instant("COMMON.COPY_FAILED_MESSAGE"),"error",3e3))}}})}copyItemToTarget(e){return B(this,null,function*(){let t=this.parentItemSignal();if(!t)throw console.error("Parent item not found"),new Error("Parent item not found");try{let n=yield new Promise((I,D)=>{this.queryService.getPossibleItems(e,this.loginIdSignal()).subscribe({next:Y=>I(Y),error:Y=>D(Y)})});if(!n)throw new Error("Failed to get target workspace items");let u=n.find(I=>{var D;return((D=I.tags)==null?void 0:D.includes(Uo))||I.title===t.title||I.titleText===t.titleText});if(!u)throw console.warn("No corresponding content area found in target workspace"),new Error("No corresponding content area found in target workspace");let g,w=this.resolveRoleDefaultFromTags(u.tags);if(w){let I=yield this.queryService.loadItemOnce(e),D=this.extractUserEmailFromTags(I==null?void 0:I.tags);if(D){let ne=(yield Ni(this.queryService.getAclUsersList(e).pipe(ri(1)))).find(se=>se.description===D);ne&&(g={loginId:ne.key,role:w})}}yield this.performCopyToLocation(u.id,g)}catch(n){throw console.error("Failed to find target location:",n),n}})}performCopyToLocation(e,t){return B(this,null,function*(){let n=this.loginIdSignal(),u=this.displayNameSignal();if(!n||!u)throw console.error("Missing loginId or displayName for copy operation"),new Error("Missing loginId or displayName for copy operation");let g=yield this.httpsCallableFunctionsService.copyItems(e,[this.item.id],n,u,void 0,!1,!1,!1,!1,"Target",void 0,void 0,!0,!1,t);if(g!=null&&g.isSuccess)console.log('Successfully copied item "'.concat(this.item.title,'" to parent: ').concat(e));else{if(console.warn('Copy operation result unclear for item "'.concat(this.item.title,'"'),g),g&&g.isSuccess===!1)throw new Error('Copy operation failed for item "'.concat(this.item.title,'"'));console.log('Assuming copy succeeded for item "'.concat(this.item.title,'" (no clear result)'))}})}resolveRoleDefaultFromTags(e){var g;if(!e)return null;let t=e.filter(w=>w.startsWith($c));if(t.length===0)return null;let n=null,u=0;for(let w of t){let I=w.substring($c.length);if(Object.values(pn).includes(I.toLowerCase())){let D=(g=fe[I.toLowerCase()])!=null?g:0;D>u&&(u=D,n=I.toLowerCase())}}return n}extractUserEmailFromTags(e){if(!e)return null;let t=e.find(n=>n.startsWith(Qc));return t&&t.substring(Qc.length)||null}toggleClassDropdown(){this.classDropdownOpen=!this.classDropdownOpen,this.classDropdownOpen&&this.classFilter.set(""),this.cdRef.markForCheck()}addAllClassMembers(e){this.classManagementService.handleClassToggle(e,this.availableClasses(),this.selectedClasses(),this.selectedCopyTargets(),t=>this.selectedClasses.set(t),t=>this.selectedCopyTargets.set(t)),this.classDropdownOpen=!1,this.classFilter.set("")}removeClassMembers(e){this.classManagementService.removeClassMembers(e,this.availableClasses(),this.selectedCopyTargets(),n=>this.selectedCopyTargets.set(n));let t=this.selectedClasses().filter(n=>n!==e);this.selectedClasses.set(t)}getClassColor(e){return this.classManagementService.getClassColor(e)}getClassIndex(e){return this.classManagementService.getClassIndex(e,this.availableClasses())}getMembersText(e){return e===1?this.translateService.instant("COMMON.MEMBERS_SINGULAR"):this.translateService.instant("COMMON.MEMBERS_PLURAL")}removeAllTargets(){this.selectedCopyTargets.set([]),this.selectedClasses.set([])}onSelectKeydown(e){if(e.key==="Enter"||e.key==="Escape"){let t=e.target,n=!t.value||t.value.trim().length===0;e.key==="Enter"&&n||e.key,e.stopPropagation()}}showUndoToast(e){let t=this.translateService.instant(e),n=this.translateService.instant("SETTINGS.SAVED_SUCCESSFULLY",{settings:t});this.store.dispatch(St(n,"success",5e3,{label:"COMMON.ACTION_UNDO",callback:()=>{this.undoLastChange()}}))}undoLastChange(){if(!this.previousSettingsState)return;let{type:e,settings:t,layoutSettings:n}=this.previousSettingsState;switch(e){case"layout":this.store.dispatch(vt(t)),this.store.dispatch($i());break;case"roles":this.store.dispatch(Vn(t)),this.store.dispatch(Qo());break;case"cookieConsent":this.store.dispatch(Dn(t)),this.store.dispatch(Ko());break;case"login":this.store.dispatch(Ln(t.externalLogin)),this.store.dispatch(An(t.hazuLogin)),this.store.dispatch(qo());break;case"search":this.store.dispatch(Nn(t)),this.store.dispatch(Zo());break;case"defaults":this.store.dispatch(Rn(t,this.item.isHazu)),this.store.dispatch(Jo()),n&&(this.store.dispatch(vt(n)),this.store.dispatch($i()));break;case"table":this.store.dispatch(Bn(t)),this.store.dispatch(Xo());break;case"boards":this.store.dispatch(Fn(t)),this.store.dispatch(er());break;case"geoView":this.store.dispatch(Un(t)),this.store.dispatch(tr());break;case"calendar":this.store.dispatch(jn(t)),this.store.dispatch(or());break;case"form":this.store.dispatch(Yn(t)),this.store.dispatch(rr());break;case"date":t.isNoDate?this.store.dispatch(Da()):t.isSetDate&&t.date&&(this.store.dispatch(La(t.date)),t.duration&&this.store.dispatch(Aa(t.duration))),this.store.dispatch(Pi());break;case"notification":this.store.dispatch(Hn(t)),this.store.dispatch(nr());break;case"video":this.store.dispatch(Gn(t)),this.store.dispatch(ir());break}this.store.dispatch(St(this.translateService.instant("SETTINGS.CHANGES_UNDONE"),"info",3e3)),this.previousSettingsState=null}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-item-options"]],viewQuery:function(t,n){if(t&1&&ve(go,5)($u,5),t&2){let u;ae(u=le())&&(n.itemSettings=u.first),ae(u=le())&&(n.menuElement=u.first)}},hostBindings:function(t,n){t&1&&h("click",function(g){return n.showMenu(g)})},inputs:{item:"item",baseItem:"baseItem",items:"items",tooltip:"tooltip",isMobile:"isMobile",options:"options",iconClass:"iconClass",direction:"direction",subMenuDirection:"subMenuDirection",position:"position",canShowItemResetOption:"canShowItemResetOption",large:"large",itemOptionsState:"itemOptionsState",fullscreenModal:"fullscreenModal",isItemAccessory:"isItemAccessory",isToolbarPosition:"isToolbarPosition"},outputs:{showPopup:"showPopup",hoverOption:"hoverOption",toogleOptionsMenu:"toogleOptionsMenu"},standalone:!1,features:[zt([Tt]),be],decls:2,vars:2,consts:[[4,"ngIf"],["denyClass","basic cancel",3,"approveText","denyText","approveClass","onApproved","onClose",4,"ngIf"],["hzTrackHover","","class","ui floating labeled icon",3,"ngClass","click","hzTrackHoverChange",4,"ngIf"],["autoClose","disabled","data-hz-test","settings-dropdown",3,"position","ngClass","isOpen","isOpenChange","click",4,"ngIf"],["hzTrackHover","",1,"ui","floating","labeled","icon",3,"click","hzTrackHoverChange","ngClass"],["autoClose","disabled","data-hz-test","settings-dropdown",3,"isOpenChange","click","position","ngClass","isOpen"],["class","item mobile-header",4,"ngIf"],["class","divider",4,"ngIf"],["icon","map pin","isAction","true",3,"label","canEdit",4,"ngIf"],["icon","linkify","hzTab","","data-hz-test","settings-dropdown-link",3,"label","canEdit","showCopyIcon","copyContent","onEditClick","keydown.space",4,"ngIf"],["icon","linkify","hzTab","","data-hz-test","settings-dropdown-user-link",3,"label","canEdit","value","onEditClick","keydown.space",4,"ngIf"],["class","item hazu-wide-item base-privacy","hzTab","","data-hz-test","settings-dropdown-privacy",3,"hidden","click",4,"ngIf"],["icon","calendar","hzTab","","data-hz-test","settings-dropdown-date-time",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","calendar","hzTab","","data-hz-test","settings-dropdown-date",3,"label","t
1itle","canEdit","value","onEditClick","keydown.space",4,"ngIf"],["icon","clock","hzTab","","data-hz-test","settings-dropdown-duration",3,"label","canEdit","value","onEditClick",4,"ngIf"],["icon","marker","hzTab","","data-hz-test","settings-dropdown-location",3,"label","canEdit","value","onEditClick","keydown.space",4,"ngIf"],["icon","user","hzTab","","data-hz-test","settings-dropdown-assigned",3,"label","canEdit","value","onEditClick","keydown.space",4,"ngIf"],["icon","tags","hzTab","","data-hz-test","settings-dropdown-tags",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","table","hzTab","","data-hz-test","settings-dropdown-table",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","calendar","hzTab","","data-hz-test","settings-dropdown-calendar",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","poll horizontal","hzTab","","data-hz-test","settings-dropdown-form",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","columns","hzTab","","data-hz-test","settings-dropdown-boards",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","map","hzTab","","data-hz-test","settings-dropdown-geo",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","bars","hzTab","","data-hz-test","settings-dropdown-layout",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","sliders","hzTab","","data-hz-test","settings-dropdown-defaults",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","file video","hzTab","","data-hz-test","settings-dropdown-video",3,"label","canEdit","value","onEditClick","keydown.space",4,"ngIf"],["icon","cookie","hzTab","","data-hz-test","cookie-consent-dropdown-layout",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","sign in","hzTab","","data-hz-test","external-login-dropdown-layout",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","search","hzTab","","data-hz-test","search-dropdown-layout",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","bell","hzTab","","data-hz-test","settings-dropdown-notification",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","comments","hzTab","","data-hz-test","settings-dropdown-interaction",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","users","hzTab","","data-hz-test","settings-dropdown-roles",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","undo","isAction","true","hzTab","","data-hz-test","settings-dropdown-unplace",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","right arrow","isAction","true","hzTab","","data-hz-test","settings-dropdown-convert",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","bell","isAction","true","hzTab","","data-hz-test","settings-dropdown-trigger-manual-notification",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","robot","isAction","true","hzTab","","data-hz-test","settings-dropdown-open-in-genius",3,"label","canEdit","showSidebarIcon","sidebarTooltip","onEditClick","keydown.space","onSidebarClick",4,"ngIf"],["icon","plus","isAction","true","hzTab","","data-hz-test","settings-dropdown-add-to-my-hazus",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","minus","isAction","true","hzTab","","data-hz-test","settings-dropdown-remove-from-my-hazus",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","move","hzTab","","data-hz-test","settings-dropdown-move",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","copy","hzTab","","data-hz-test","settings-dropdown-copy-students",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","copy","isAction","true","ngxClipboard","","hzTab","","data-hz-test","settings-dropdown-copy",3,"label","canEdit","cbContent","cbOnSuccess",4,"ngIf"],["icon","paste","isAction","true","hzTab","","data-hz-test","settings-dropdown-paste",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","copy","isAction","true","hzTab","","data-hz-test","settings-dropdown-duplicate",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","map signs","isAction","true","hzTab","","data-hz-test","settings-dropdown-calibrate",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],["icon","trash","isAction","true","hzTab","","data-hz-test","settings-dropdown-delete",3,"label","canEdit","onEditClick","keydown.space",4,"ngIf"],[3,"header","showCloseBtn","onClose","onBack",4,"ngIf"],[3,"header","isShowClose","onClose","onBack",4,"ngIf"],[3,"header","isShowSave","disableSaveBtn","onBack","onSave",4,"ngIf"],[3,"header","onBack",4,"ngIf"],[3,"header","disableSaveBtn","isShowSave","onBack","onSave",4,"ngIf"],[3,"header","isShowSave","onBack","onSave",4,"ngIf"],[3,"header","showCloseBtn","onBack","onClose",4,"ngIf"],[3,"header","onBack","onClose",4,"ngIf"],[3,"rootPath","filter","isDisabled","onBack","onClose","onDone",4,"ngIf"],[1,"item","mobile-header"],[1,"item",3,"item","isAutoPriority"],["data-hz-test","mobile-header-close",1,"close","icon",3,"click"],[1,"divi
1der"],["icon","map pin","isAction","true",3,"label","canEdit"],["title","This will position the start of the item at the current cursor position.","translate","",3,"click"],["title","This will position the end of the item at the current cursor position.","translate","",3,"click"],["icon","linkify","hzTab","","data-hz-test","settings-dropdown-link",3,"onEditClick","keydown.space","label","canEdit","showCopyIcon","copyContent"],["icon","linkify","hzTab","","data-hz-test","settings-dropdown-user-link",3,"onEditClick","keydown.space","label","canEdit","value"],["hzTab","","data-hz-test","settings-dropdown-privacy",1,"item","hazu-wide-item","base-privacy",3,"click","hidden"],[1,"left","floated","icon",3,"ngClass"],["translate","",1,"left","floated","text"],["class","dropdown icon",4,"ngIf"],["class","right floated text","translate","",4,"ngIf"],["position","left top","autoClose","outsideClick","class","privacy-dropdown",3,"isOpen","isOpenChange",4,"ngIf"],[1,"dropdown","icon"],["translate","",1,"right","floated","text"],["position","left top","autoClose","outsideClick",1,"privacy-dropdown",3,"isOpenChange","isOpen"],[1,"ui","item","header","mobile-dropdown-header"],[1,"left"],["href","javascript:;",1,"backBtn",3,"click"],[1,"icon","chevron","left"],[1,"right"],["href","javascript:;",1,"closeBtn",3,"click"],[1,"grey","close","icon"],["hzTab","",1,"item",3,"click"],[1,"e2e-privacy-option","middle","aligned","lock","open","icon"],["class","item","hzTab","",3,"click",4,"ngIf"],[1,"e2e-privacy-option","middle","aligned","lock","icon"],[1,"e2e-privacy-option","middle","aligned","unlock","alternate","icon"],["icon","calendar","hzTab","","data-hz-test","settings-dropdown-date-time",3,"onEditClick","keydown.space","label","canEdit"],["icon","calendar","hzTab","","data-hz-test","settings-dropdown-date",3,"onEditClick","keydown.space","label","title","canEdit","value"],["icon","clock","hzTab","","data-hz-test","settings-dropdown-duration",3,"onEditClick","label","canEdit","value"],["icon","marker","hzTab","","data-hz-test","settings-dropdown-location",3,"onEditClick","keydown.space","label","canEdit","value"],["icon","user","hzTab","","data-hz-test","settings-dropdown-assigned",3,"onEditClick","keydown.space","label","canEdit","value"],["icon","tags","hzTab","","data-hz-test","settings-dropdown-tags",3,"onEditClick","keydown.space","label","canEdit"],["icon","table","hzTab","","data-hz-test","settings-dropdown-table",3,"onEditClick","keydown.space","label","canEdit"],["icon","calendar","hzTab","","data-hz-test","settings-dropdown-calendar",3,"onEditClick","keydown.space","label","canEdit"],["icon","poll horizontal","hzTab","","data-hz-test","settings-dropdown-form",3,"onEditClick","keydown.space","label","canEdit"],["icon","columns","hzTab","","data-hz-test","settings-dropdown-boards",3,"onEditClick","keydown.space","label","canEdit"],["icon","map","hzTab","","data-hz-test","settings-dropdown-geo",3,"onEditClick","keydown.space","label","canEdit"],["icon","bars","hzTab","","data-hz-test","settings-dropdown-layout",3,"onEditClick","keydown.space","label","canEdit"],["icon","sliders","hzTab","","data-hz-test","settings-dropdown-defaults",3,"onEditClick","keydown.space","label","canEdit"],["icon","file video","hzTab","","data-hz-test","settings-dropdown-video",3,"onEditClick","keydown.space","label","canEdit","value"],["icon","cookie","hzTab","","data-hz-test","cookie-consent-dropdown-layout",3,"onEditClick","keydown.space","label","canEdit"],["icon","sign in","hzTab","","data-hz-test","external-login-dropdown-layout",3,"onEditClick","keydown.space","label","canEdit"],["icon","search","hzTab","","data-hz-test","search-dropdown-layout",3,"onEditClick","keydown.space","label","canEdit"],["icon","bell","hzTab","","data-hz-test","settings-dropdown-notification",3,"onEditClick","keydown.space","label","canEdit"],["icon","comments","hzTab","","data-hz-test","settings-dropdown-interaction",3,"onEditClick","keydown.space","label","canEdit"],["icon","users","hzTab","","data-hz-test","settings-dropdown-roles",3,"onEditClick","keydown.space","label","canEdit"],["icon","undo","isAction","true","hzTab","","data-hz-test","settings-dropdown-unplace",3,"onEditClick","keydown.space","label","canEdit"],["icon","right arrow","isAction","true","hzTab","","data-hz-test","settings-dropdown-convert",3,"onEditClick","keydown.space","label","canEdit"],["icon","bell","isAction","true","hzTab","","data-hz-test","settings-dropdown-trigger-manual-notification",3,"onEditClick","keydown.space","label","canEdit"],["icon","robot","isAction","true","hzTab","","data-hz-test","settings-dropdown-open-in-genius",3,"onEditClick","keydown.space","onSidebarClick","label","canEdit","showSidebarIcon","sidebarTooltip"],["icon","plus","isAction","true","hzTab","","data-hz-test","settings-dropdown-add-to-my-hazus",3,"onEditClick","keydown.space","label","canEdit"],["icon","minus","isAction","true","hzTab","","data-hz-test","settings-dropdown-remove-from-my-hazus",3,"onEditClick","keydown.space","label","canEdit"],["icon","move","hzTab","","data-hz-test","settings-dropdown-move",3,"onEditClick","keydown.space","label","canEdit"],["icon","copy","hzTab","","data-hz-test","settings-dropdown-copy-students",3,"onEditClick","keydown.space","label","canEdit"],["icon","copy","isAction","true","ngxClipboard","","hzTab","","data-hz-test","settings-dropdown-copy",3,"cbOnSuccess","label","canEdit","cbContent"],["icon","paste","isAction","true","hzTab","","data-hz-test","settings-dropdown-paste",3,"onEditClick","keydown.space","label","canEdit"],["icon","copy","isAction","true","hzTab","","data-hz-test","settings-dropdown-duplicate",3,"onEditClick","keydown.space","label","canEdit"],["icon","map signs","isAction","true","hzTab","","data-hz-test","settings-dropdown-calibrate",3,"onEditClick","keydown.space","label","canEdit"],["icon","trash","isAction","true","hzTab","","data-hz-test","settings-dropdown-delete",3,"onEditClick","keydown.space","label","canEdit"],[3,"onClose","onBack","header","showCloseBtn"],[3,"onSave","hidePopup","canEdit","dateSettings","isShowSave","item"],[3,"onClose","onBack","header","isShowClose"],[3,"hidePopup","items","aclUsers","user"],[3,"hidePopup","item"],[3,"onBack","onSave","header","isShowSave","disableSaveBtn"],[3,"tableSettings","isMobile"],[3,"calendarSettings"],[3,"formSettings"],[3,"boardsSettings","isMobile"],[3,"geoViewSettings"],[3,"saveSuccess","item","videoSettings","layoutSettings"],[3,"onBack","header"],[3,"hidePopup","items"],[3,"onBack","onSave","header","disableSaveBtn","isShowSave"],[3,"navigateToDefaults","layoutSettings","baseItem","isRootHazu"],["type","interaction",3,"navigateToDefaults","layoutSettings","currentUserRole","baseItem","isItemAccessory"],["type","form",3,"navigateToDefaults","layoutSettings","currentUserRole","baseItem","isItemAccessory"],[3,"onBack","onSave","header","isShowSave"],[3,"item","rolesSettings"],[3,"item","cookieConsentSettings"],[3,"item","externalLoginSettings","enableHazuLogin"],[3,"item","searchSettings"],[3,"onAddMoreColor","defaultsSettings","layoutSettings","baseItem"],[3,"onBack","onClose","header","showCloseBtn"],["type","item",3,"defaultSettings"],["type","hazu",3,"defaultSettings"],[3,"settings"],[3,"onBack","onClose","header"],[1,"copyToStudents",2,"padding","1rem","max-width","450px"],[1,"ui","form"],[1,"field"],["id","class-selection-dropdown","class","ui dropdown","style","position: relative; margin-bottom: 0.75rem",3,"active","disabled",4,"ngIf"],[2,"width","100%"],["labelField","title","valueField","id",1,"fluid",2,"width","100%",3,"valueChange","keydown","value","isMulti","isSearchable","placeholder","options","disabled"],["style","margin-top: 10px",4,"ngIf"],[2,"margin-top","1rem","text-align","center"],[1,"ui","primary","large","button",2,"width","100%","font-weight","600",3,"click","disabled"],[1,"copy","icon"],["id","class-selection-dropdown",1,"ui","dropdown",2,"position","relative","margin-bottom","0.75rem"],[1,"control-links"],[1,"ui","blue","link",3,"click"],[1,"separator"],[1,"ui","link",3,"click"],[1,"trash","icon"],["class","menu","style","\n                  display: block !important;\n                  position: absolute;\n                  top: 100%;\n                  left: 0;\n                  z-index: 1000;\n                  min-width: 280px;\n                  max-width: 400px;\n                  background: white;\n                  border: 1px solid #d4d4d5;\n                  border-radius: 0.28571429rem;\n                  box-shadow: 0 2px 3px 0 rgba(34, 36, 38, 0.15);\n                ",4,"ngIf"],[1,"menu",2,"display","block !important","position","absolute","top","100%","left","0","z-index","1000","min-width","280px","max-width","400px","background","white","border","1p
1x solid #d4d4d5","border-radius","0.28571429rem","box-shadow","0 2px 3px 0 rgba(34, 36, 38, 0.15)"],[2,"padding","0.5rem"],[1,"ui","icon","input",2,"width","100%"],["type","text",3,"input","keydown.escape","placeholder","value","hzFocus"],[1,"search","icon"],[1,"divider",2,"margin","0","height","1px","background","rgba(34, 36, 38, 0.1)"],[2,"max-height","280px","overflow-y","auto"],["class","item","style","\n                      padding: 0.75rem 1rem;\n                      cursor: pointer;\n                      border-bottom: 1px solid rgba(34, 36, 38, 0.1);\n                      white-space: nowrap;\n                      overflow: hidden;\n                      text-overflow: ellipsis;\n                    ",3,"click",4,"ngFor","ngForOf"],["class","item","style","padding: 0.75rem 1rem; color: #999",4,"ngIf"],[1,"item",2,"padding","0.75rem 1rem","cursor","pointer","border-bottom","1px solid rgba(34, 36, 38, 0.1)","white-space","nowrap","overflow","hidden","text-overflow","ellipsis",3,"click"],[1,"class-color-indicator",2,"display","inline-block","width","10px","height","10px","border-radius","50%","margin-right","8px"],[1,"users","icon",2,"margin-right","4px"],[1,"item",2,"padding","0.75rem 1rem","color","#999"],[1,"info","icon"],[2,"margin-top","10px"],[2,"display","flex","flex-wrap","wrap","gap","5px"],["class","ui label","style","cursor: pointer",3,"background-color","color",4,"ngFor","ngForOf"],[1,"ui","label",2,"cursor","pointer"],[1,"users","icon"],[1,"delete","icon",2,"margin-left","8px","cursor","pointer",3,"click"],[3,"onBack","onClose","onDone","rootPath","filter","isDisabled"],["denyClass","basic cancel",3,"onApproved","onClose","approveText","denyText","approveClass"],[1,"ui","icon","header"],[1,"image"],[1,"linkify","icon"],[1,"description"],[3,"onStartValidChanged","onEndValidChanged","onDurationValidChanged","onDone","onUrlChanged","onUrlSave","item","startValid","endValid","durationValid","urlValid","canSave"]],template:function(t,n){t&1&&y(0,b0,3,2,"ng-container",0)(1,I0,12,16,"hz-modal",1),t&2&&(c("ngIf",n.permission()),p(),c("ngIf",n.isItemDetailModal))},dependencies:[X,Qe,k,H,ke,Ti,Se,bi,Ea,Va,il,Wt,oe,$t,mt,Cl,Sl,fl,bc,Ec,Pc,Mc,zc,lo,Vc,Lc,Ac,Nc,Rc,Bc,Fc,Gc,go,So,Wc,ce,L,In,dt],styles:['.isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}hz-main-item-list   [_nghost-%COMP%]{z-index:300}[_nghost-%COMP%]   .icon[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   .ui.floating.labeled[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .ui.floating.labeled[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{height:1.2rem}@container sidebar (min-width: $large-breakpoint){@media only screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]   .item-options[_ngcontent-%COMP%]    >div>div.menu.transition.visible{width:24em!important}[_nghost-%COMP%]   .item-options[_ngcontent-%COMP%]     .selection.dropdown .menu.transition.visible{left:-1px!important;right:-1px!important;top:35px!important}[_nghost-%COMP%]   .item-options[_ngcontent-%COMP%]     .dropdown .menu.transition.visible{left:auto!important;right:-55px!important;top:22px!important}}}@media only screen and (min-width:992px)and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]   .item-options[_ngcontent-%COMP%]    >div>div.menu.transition.visible{width:24em!important}[_nghost-%COMP%]   .item-options[_ngcontent-%COMP%]     .selection.dropdown .menu.transition.visible{left:-1px!important;right:-1px!important;top:35px!important}[_nghost-%COMP%]   .item-options[_ngcontent-%COMP%]     .dropdown .menu.transition.visible{left:auto!important;right:-55px!important;top:22px!important}}.ui.menu   [_nghost-%COMP%]   .ui.dropdown[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%] > .item[_ngcontent-%COMP%]{color:#0006!important}[_nghost-%COMP%]     .message{white-space:normal!important}[_nghost-%COMP%]     .ui.toggle.checkbox{margin-right:-10px}modal-content[_ngcontent-%COMP%]{display:flex;flex-direction:row}.image[_ngcontent-%COMP%]{align-self:top;display:block;flex:0 1 auto;width:""}.image[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{font-size:8rem;height:1em;line-height:1;margin:0;opacity:1;width:auto}.description[_ngcontent-%COMP%]{flex:0 1 auto;padding-left:2em;width:auto}.leftFloat[_ngcontent-%COMP%]{float:left!important}.ui.dropdown[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%], .ui.dropdown[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]   .menu[_ngcontent-%COMP%]{z-index:500!important}[_nghost-%COMP%]     .copyToStudents .ui.form .field{margin-bottom:.5rem}[_nghost-%COMP%]     .copyToStudents #class-selection-dropdown .menu{z-index:10001!important;border:1px solid rgba(34,36,38,.15);box-shadow:0 4px 8px #2224261f;border-radius:.375rem;max-height:200px;overflow-y:auto}[_nghost-%COMP%]     .copyToStudents #class-selection-dropdown .menu .item{transition:background-color .15s ease;border-bottom:1px solid rgba(34,36,38,.05)}[_nghost-%COMP%]     .copyToStudents #class-selection-dropdown .menu .item:hover{background-color:#00000008}[_nghost-%COMP%]     .copyToStudents #class-selection-dropdown .menu .item:last-child{border-bottom:none}[_nghost-%COMP%]     .copyToStudents #class-selection-dropdown .menu .item .class-color-indicator{flex-shrink:0}[_nghost-%COMP%]     .copyToStudents .ui.label{margin:.125rem .25rem .125rem 0;padding:.5rem .75rem;font-size:.875rem;border-radius:.375rem;display:inline-flex;align-items:center}[_nghost-%COMP%]     .copyToStudents .ui.label .delete.icon{margin-left:.5rem!important;opacity:.8;transition:opacity .15s ease}[_nghost-%COMP%]     .copyToStudents .ui.label .delete.icon:hover{opacity:1}[_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown{z-index:1000!important;border:2px solid rgba(34,36,38,.15);border-radius:.375rem;transition:border-color .15s ease,box-shadow .15s ease}[_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown:focus, [_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown.active{border-color:#2185d0;box-shadow:0 0 0 3px #2185d01a}[_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown .menu{z-index:1001!important;border-radius:.375rem;border:1px solid rgba(34,36,38,.15);
1box-shadow:0 4px 12px #22242626;max-height:250px}[_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown .menu .item{padding:.75rem 1rem;transition:background-color .15s ease}[_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown .menu .item:hover{background-color:#00000008}[_nghost-%COMP%]     .copyToStudents .fluid   .ui.selection.dropdown .menu .item.selected{background-color:#2185d01a;color:#2185d0}[_nghost-%COMP%]     .copyToStudents .control-links{display:flex;align-items:center;gap:.5rem;font-size:.875rem}[_nghost-%COMP%]     .copyToStudents .control-links .ui.link{text-decoration:none;transition:color .15s ease}[_nghost-%COMP%]     .copyToStudents .control-links .ui.link.blue{color:#2185d0}[_nghost-%COMP%]     .copyToStudents .control-links .ui.link.blue:hover{color:#1678c2}[_nghost-%COMP%]     .copyToStudents .control-links .ui.link.disabled{cursor:not-allowed;opacity:.6}[_nghost-%COMP%]     .copyToStudents .control-links .separator{color:#999;font-weight:700}.menu.list[_ngcontent-%COMP%]{min-width:370px}.hazu-wide-item[_ngcontent-%COMP%]{min-width:250px}.item[_ngcontent-%COMP%]   .edit.icon[_ngcontent-%COMP%]{float:right;margin:0 0 0 1em;width:auto}.leftFloat.icon[_ngcontent-%COMP%], .left-float.icon[_ngcontent-%COMP%]{margin-right:10px;width:15px}.left-float.icon[_ngcontent-%COMP%]{padding-right:0}.right.floated.text[_ngcontent-%COMP%]{max-width:110px;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%]     .dropdown-right{left:auto!important;right:0!important}.canNotSave[_ngcontent-%COMP%]{background-color:#d3d3d3!important;cursor:default!important}[_nghost-%COMP%]     .dateButton hz-date-button-content .ui.two.item.menu{border-left:0;border-radius:0!important;border-right:0;box-shadow:none!important;margin:0!important;position:inherit}[_nghost-%COMP%]     .dateButton hz-date-button-content .ui.two.item.menu a{border-color:inherit!important;text-align:center}[_nghost-%COMP%]     .dateButton hz-date-button-content .ui.two.item.menu a.active{background:#0000000d}[_nghost-%COMP%]     .dateButton hz-date-button-content .ui.basic.segment{margin-top:0}[_nghost-%COMP%]     .dateButton hz-date-button-content .ui.basic.segment .column{margin-bottom:1em}[_nghost-%COMP%]     .dateButton hz-date-button-content .ui.basic.segment .column:last-child{margin-bottom:0}[_nghost-%COMP%]     .ui.dropdown .menu>.item .dropdown.icon{margin:0}[_nghost-%COMP%]     .ui.dropdown .menu>.item .dropdown.icon:before{content:"\\f054"}[_nghost-%COMP%]     .item .dropdown.icon+.text{margin-right:1em!important}[_nghost-%COMP%]     .ui.vertical.menu .item{align-self:flex-start;width:100%}[_nghost-%COMP%]     .base-privacy .menu{max-width:max-content}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]{display:block;margin-top:-1.5em;position:absolute}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]   .base-privacy.item[_ngcontent-%COMP%]{color:#0006;min-height:2.6em}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]   .base-privacy.item[_ngcontent-%COMP%]   .item[_ngcontent-%COMP%]:not(.header){color:#0006!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]   .base-privacy.item[_ngcontent-%COMP%] > span[_ngcontent-%COMP%], [_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]   .base-privacy.item[_ngcontent-%COMP%] > i[_ngcontent-%COMP%]{color:#0006}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     hz-dropdown{display:block;position:absolute;right:-.5em}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header{align-items:center;display:none!important;justify-content:space-between}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header i.close.icon{font-size:1.5em!important}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header{display:flex!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header hz-item   .itemContent .itemTop .ui.header .title{display:block;max-width:70vw;overflow:hidden;text-overflow:ellipsis}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header{display:flex!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header hz-item   .itemContent .itemTop .ui.header .title{display:block;max-width:70vw;overflow:hidden;text-overflow:ellipsis}}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header{display:none!important}}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header{display:flex!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header hz-item   .itemContent .itemTop .ui.header .title{display:block;max-width:70vw;overflow:hidden;text-overflow:ellipsis}}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header>.item{padding:0!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header>.icon:not(.dropdown){color:#0006;margin-right:0!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header+.divider{display:none;margin-top:0}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-header+.divider{display:block}}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header{align-items:center;display:none;font-size:1.2em;height:3em;justify-content:space-between;text-transform:inherit}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header{display:flex!important}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header{display:flex!important}}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header>*{flex-basis:0;flex-grow:1}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header h2{color:#000;font-size:1.2rem;margin:0!important;text-align:center}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header>a{padding:0 .5em}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header .icon{margin-left:.25rem;margin-right:.25rem}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header .right{display:flex;justify-content:flex-end;padding-right:.5rem}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header .saveBtn{color:#00b622;font-size:1.2rem;padding:0 .6rem}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header .backBtn{color:#4183c4;font-size:1.2rem}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header .closeBtn{font-size:1.2rem}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header .closeBtn i.icon{margin:0!important}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header a.disabled{opacity:.5}[_nghost-%COMP%]   hz-dropdown[_ngcontent-%COMP%]     .menu.visible>.item.mobile-dropdown-header hz-item   .itemContent .itemTop .ui.header .title{display:block;max-width:70vw;overflow:hidden;text-overflow:ellipsis}'],changeDetection:0}));let o=s;return o}
1)();var Xc=o=>[o],x0=o=>({showPopup:o}),E0=o=>({large:o}),P0=o=>({username:o}),M0=()=>["location","privacy","removeFromTimeline","unplace","delete","drillDown","dateSettings","openInGenius","changeType"],z0=()=>["location","privacy","delete","drillDown","dateSettings","openInGenius","changeType"],k0=()=>["accountSettings"];function V0(o,s){if(o&1){let i=O();a(0,"hz-item-icon-edit-button",24),h("onShow",function(t){m(i);let n=d(2);return _(n.showEditIconPopup(t))})("itemChange",function(t){m(i);let n=d(2);return _(n.item=t)}),l()}if(o&2){let i=d(2);c("ngClass",T(2,x0,i.showEditPopup))("items",T(4,Xc,i.item))}}function D0(o,s){if(o&1&&(S(0,"hz-play-and-progress-icon",25),f(1,"iconRadius")),o&2){let i=d(2);c("item",i.item)("radius",j(1,2,i.item,i.large?1.85:1.25))}}function L0(o,s){if(o&1&&(a(0,"a",26),f(1,"translate"),S(2,"i",27),C(3),l()),o&2){let i=d(2);c("ngClass",T(6,E0,i.large))("title",j(1,3,"ITEM_OPTIONS.IS_EDITING",T(8,P0,i.item.editorSessionDisplayName))),p(3),z(" ",i.item.editorSessionDisplayName," ")}}function A0(o,s){if(o&1&&(S(0,"hz-item-options",28),f(1,"async")),o&2){let i=d(2);c("item",i.item)("baseItem",i.baseItem)("fullscreenModal",!0)("itemOptionsState",v(1,6,i.itemOptions$))("options",ge(8,M0))("canShowItemResetOption",i.canShowItemResetOption)}}function N0(o,s){if(o&1&&(S(0,"hz-item-options",29),f(1,"async")),o&2){let i=d(2);c("item",i.item)("baseItem",i.baseItem)("fullscreenModal",!0)("itemOptionsState",v(1,5,i.itemOptions$))("options",ge(7,z0))}}function R0(o,s){if(o&1&&(S(0,"hz-item-options",30),f(1,"async")),o&2){let i=d(2);c("item",i.item)("fullscreenModal",!0)("itemOptionsState",v(1,4,i.itemOptions$))("options",ge(6,k0))}}function B0(o,s){if(o&1&&(S(0,"hz-vote-button",31),f(1,"async")),o&2){let i,e=d(2);c("item",e.item)("isShowResults",e.isShowResults)("voteOptions",e.voteOptions())("isRoot",e.isRoot())("permission",(i=v(1,5,e.votePermission$))==null?null:i.create)}}function F0(o,s){if(o&1&&(S(0,"hz-vote-individual",32),f(1,"async")),o&2){let i,e=d(2);c("item",e.item)("voteOptions",e.voteOptions())("isShowResults",e.isShowResults)("isRoot",e.isRoot())("permission",(i=v(1,5,e.votePermission$))==null?null:i.create)}}function U0(o,s){if(o&1){let i=O();a(0,"hz-container-editor",42),f(1,"filterLanguages"),f(2,"async"),h("contentChanged",function(t){m(i);let n=d(4);return _(n.updateDescriptionContent(t))})("editTitleOrDescription",function(t){m(i);let n=d(4);return _(n.startEditDescription(t))})("keydown.esc",function(){m(i);let t=d(4);return _(t.editState!=null&&t.editState.isDirty?!1:t.cancelEdit())})("enterClick",function(t){m(i);let n=d(4);return _(n.editorEnterClick(t))})("keydown",function(t){return m(i),_(t.stopPropagation())})("mousedown",function(t){return m(i),_(t.stopPropagation())})("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d(4);c("isEditMode",i.editState==null?null:i.editState.isEditDescription)("content",j(1,8,i.description,!(i.editState!=null&&i.editState.isEditDescription)))("toolbarButtons",i.descriptionToolbarButtons)("isReadonly",!v(2,11,i.permission$).edit)("isBaseItem",i.large)("baseItem",i.baseItem)("item",i.item)("isTitle",!1)}}function G0(o,s){if(o&1){let i=O();a(0,"a",43),h("click",function(){m(i);let t=d(4);return _(t.startEditDescription())}),C(1,"EDITOR.ADD_DESCRIPTION"),l()}}function H0(o,s){if(o&1&&(a(0,"div",38)(1,"div",39),y(2,U0,3,13,"hz-container-editor",40),f(3,"async"),f(4,"async"),y(5,G0,2,0,"a",41),l()()),o&2){let i=d(3);p(2),c("ngIf",!i.item.isQuestion&&(v(3,2,i.permission$).edit&&(i.description||(i.editState==null?null:i.editState.isEditDescription))||!v(4,4,i.permission$).edit&&i.description)),p(3),c("ngIf",!(i.editState!=null&&i.editState.isEditDescription)&&!i.description)}}function j0(o,s){o&1&&S(0,"div",44)}function Y0(o,s){if(o&1){let i=O();a(0,"hz-container-editor",49),f(1,"filterLanguages"),f(2,"async"),h("contentChanged",function(t){m(i);let n=d(4);return _(n.updateAdditionalDescriptionAction(t))})("editTitleOrDescription",function(t){m(i);let n=d(4);return _(n.startEditDescription(t,!0))})("keydown.esc",function(){m(i);let t=d(4);return _(t.editState!=null&&t.editState.isDirty?!1:t.cancelEdit())})("enterClick",function(t){m(i);let n=d(4);return _(n.editorEnterClick(t))})("keydown",function(t){return m(i),_(t.stopPropagation())})("mousedown",function(t){return m(i),_(t.stopPropagation())})("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d(4);c("hidden",!(i.editState!=null&&i.editState.isEditAdditionalDescription)&&!i.additionalDescription)("isEditMode",i.editState==null?null:i.editState.isEditAdditionalDescription)("content",j(1,9,i.additionalDescription,!(i.editState!=null&&i.editState.isEditAdditionalDescription)))("isReadonly",!v(2,12,i.permission$).edit)("toolbarButtons",i.descriptionToolbarButtons)("isBaseItem",i.large)("baseItem",i.baseItem)("item",i.item)("isTitle",!1)}}function W0(o,s){if(o&1){let i=O();a(0,"a",50),h("click",function(){m(i);let t=d(4);return _(t.startEditAdditionalDescription())}),C(1,"EDITOR.ADD_EXTENDED_DESCRIPTION"),l()}}function $0(o,s){if(o&1&&(a(0,"div")(1,"div",38)(2,"div",45),y(3,Y0,3,14,"hz-container-editor",46),a(4,"div",47),y(5,W0,2,0,"a",48),l()()()()),o&2){let i=d(3);p(3),c("ngIf",!i.item.isQuestion&&(i.additionalDescription||i.isEditMode)),p(2),c("ngIf",!(i.editState!=null&&i.editState.isEditAdditionalDescription)&&!i.additionalDescription)}}function Q0(o,s){if(o&1&&(a(0,"div",33)(1,"div",34),y(2,H0,6,6,"div",35),f(3,"async"),l(),y(4,j0,1,0,"div",36),f(5,"async"),y(6,$0,6,2,"div",37),f(7,"async"),l()),o&2){let i=d(2);p(2),c("ngIf",v(3,3,i.permission$).edit||i.description),p(2),c("ngIf",(v(5,5,i.permission$).edit||i.additionalDescription)&&(i.showExtendedContent()||i.additionalDescription)),p(2),c("ngIf",(v(7,7,i.permission$).edit||i.additionalDescription)&&(i.showExtendedContent()||i.additionalDescription))}}function K0(o,s){if(o&1){let i=O();a(0,"hz-modal",1),h("onClose",function(){m(i);let t=d();return _(t.close())}),a(1,"header")(2,"div",2),S(3,"hz-editor-toolbar",3),l(),a(4,"div",4)(5,"div",5)(6,"div",6),y(7,V0,1,6,"hz-item-icon-edit-button",7),f(8,"async"),y(9,D0,2,5,"hz-play-and-progress-icon",8),l(),a(10,"div",9)(11,"div",10),y(12,L0,4,10,"a",11),f(13,"async"),a(14,"hz-container-editor",12),f(15,"filterLanguages"),f(16,"translate"),f(17,"async"),h("contentChanged",function(t){m(i);let n=d();return _(n.updateTitleContent(t))})("editTitleOrDescription",function(){m(i);let t=d();return _(t.startEditTitle())})("keydown.esc",function(){m(i);let t=d();return _(t.editState!=null&&t.editState.isDirty?!1:t.cancelEdit())})("onEnter",function(t){m(i);let n=d();return _(n.editorEnterClick(t))})("keydown",function(t){return m(i),_(t.stopPropagation())})("mousedown",function(t){return m(i),_(t.stopPropagation())})("click",function(t){return m(i),_(t.stopPropagation())}),l()()(),a(18,"div",13),y(19,A0,2,9,"hz-item-options",14),f(20,"async"),y(21,N0,2,8,"hz-item-options",15),f(22,"async"),y(23,R0,2,7,"hz-item-options",16),f(24,"async"),y(25,B0,2,7,"hz-vote-button",17)(26,F0,2,7,"hz-vote-individual",18),a(27,"div",19)(28,"button",20),h("click",function(t){m(i);let n=d();return t.stopPropagation(),_(n.cancelEdit())}),C(29," COMMON.ACTION_CANCEL "),l(),a(30,"button",21),h("click",function(t){m(i);let n=d();return t.stopPropagation(),_(n.saveItem())}),C(31," COMMON.ACTION_SAVE "),l()()()(),S(32,"hz-item-info",22),f(33,"async"),f(34,"async"),l()(),a(35,"content"),y(36,Q0,8,9,"div",23),f(37,"async"),l()()}if(o&2){let i=d();c("modalClass",Ee("hz-item-modal top aligned fullscreen hazu-editor-more-info-modal-text",i.item.key))("isFullScreen",!0),p(2),_t("display",i.isEditMode?"flex":"none"),p(2),c("ngClass",T(52,Xc,"priority-"+i.item.priority)),p(3),c("ngIf",!i.isEditMode&&v(8,29,i.permission$).edit),p(2),c("ngIf",i.item.icon),p(2),c("id","hz-fullscreen-modal-title-"+i.item.key),p(),c("ngIf",i.item.editorSessionUserId&&v(13,31,i.permission$).edit),p(2),c("isEditMode",i.editState==null?null:i.editState.isEditTitle)("content",j(15,33,i.title,!(i.editState!=null&&i.editState.isEditTitle)))("placeholder",v(16,36,"COMMON.TITLE"))("isReadonly",!v(17,38,i.permission$).edit)("item",i.item),p(5),c("ngIf",!i.isEditMode&&!i.large&&i.item.type!=="user"&&v(20,40,i.permission$).edit&&i.item.isPlaced),p(2),c("ngIf",!i.isEditMode&&!i.large&&i.item.type!=="user"&&v(22,42,i.permission$).edit&&!i.item.isPlaced),p(2),c("ngIf",!i.isEditMode&&v(24,44,i.updateAccount$)&&i.item.type==="user"),p(2),c("ngIf",i.showVote&&i.votesViewType()==="total"),p(),c("ngIf",i.showVote&&i.votesViewType()==="individual"),p(),_t("display",i.isEditMode?"flex":"none"),p(5),c("item",i.item)("itemOptionsState",v(33,46,i.itemOptions$))("fullscreenModal",!0)("isBaseItem",i.large)("baseItem",i.baseItem)("canEdit",v(34,48,i.permission$).edit),p(4),c("ngIf",v(37,50,i.permission$).edit||i.description||i.additionalDescription)}}var ep=(()=>{let s=class s{constructor(){r(this,"item");r(this,"baseItem");r(this,"listName","TimelineView");r(this,"language","en");r(this,"editState");r(this,"large",!1);r(this,"isModalShow",!1);r(this,"isModalShowChange",new E);r(this,"store",b(V));r(this,"editorService",b(wt));r(this,"zone",b(Ye));r(this,"ariaSetupRaf");r(this,"previouslyFocused",null);r(this,"trapTeardown");r(this,"initialFocusRaf");r(this,"itemOptions$",this.store.select(Ql));r(this,"updateAccount$",this.store.select(_n));r(this,"showExtendedContent",this.store.selectSignal(gi));r(this,"userRole",this.store.selectSignal(qe));r(this,"isRoot",this.store.selectSignal(ct));r(this,"voteRole",this.store.selectSignal(At));r(this,"votesViewType",this.store.selectSignal(ui));r(this,"voteOptions",this.store.selectSignal(Lt));r(this,"votePermission$",this.store.select(En(di.vote)));r(this,"showEditPopup",!1)}get descriptionToolbarButtons(){var e;return eo((e=this.item)==null?void 0:e.isHazu,this.userRole()===pn.Owner)}onKeyUp(e){e.stopPropagation()}onEscUp(e){e.stopPropagation()}ngOnChanges(e){e.isModalShow&&(e.isModalShow.currentValue?(typeof document<"u"&&(this.previouslyFocused=document.activeElement),this.applyDialogAria(),this.installFocusManagement()):this.teardownFocusManagement())}ngOnDestroy(){this.ariaSetupRaf!==void 0&&(cancelAnimationFrame(this.ariaSetupRaf),this.ariaSetupRaf=void 0),this.teardownFocusManagement()}applyDialogAria(){typeof document>"u"||this.zone.runOutsideAngular(()=>{this.ariaSetupRaf=requestAnimationFrame(()=>{var n,u,g,w,I;this.ariaSetupRaf=void 0;let e=document.querySelector("fui-modal.hazu-editor-more-info-modal-text".concat((u=(n=this.item)==null?void 0:n.key)!=null?u:""));if(!e)return;e.getAttribute("role")!=="dialog"&&e.setAttribute("role","dialog"),e.getAttribute("aria-modal")!=="true"&&e.setAttribute("aria-modal","true");let t="hz-fullscreen-modal-title-".concat((w=(g=this.item)==null?void 0:g.key)!=null?w:"");(I=this.item)!=null&&I.key&&document.getElementById(t)&&e.getAttribute("aria-labelledby")!==t&&e.setAttribute("aria-labelledby",t)})})}installFocusManagement(){typeof document>"u"||this.zone.runOutsideAngular(()=>{this.initialFocusRaf=requestAnimationFrame(()=>{var u,g,w,I;this.initialFocusRaf=void 0;let e=document.querySelector("fui-modal.hazu-editor-more-info-modal-text".concat((g=(u=this.item)==null?void 0:u.ke
1y)!=null?g:""));if(!e)return;let t=(I=(w=e.querySelector(".close.icon, [data-modal-close]"))!=null?w:e.querySelector("button, [href], [tabindex]:not([tabindex='-1'])"))!=null?I:e;e.hasAttribute("tabindex")||e.setAttribute("tabindex","-1"),t.focus({preventScroll:!0});let n=D=>{if(D.key!=="Tab")return;let Y=q0(e);if(Y.length===0){D.preventDefault(),e.focus();return}let ne=Y[0],se=Y[Y.length-1],Oe=document.activeElement;D.shiftKey?(Oe===ne||!e.contains(Oe))&&(D.preventDefault(),se.focus()):Oe===se&&(D.preventDefault(),ne.focus())};e.addEventListener("keydown",n,!0),this.trapTeardown=()=>{e.removeEventListener("keydown",n,!0)}})})}teardownFocusManagement(){var t;this.initialFocusRaf!==void 0&&(cancelAnimationFrame(this.initialFocusRaf),this.initialFocusRaf=void 0),(t=this.trapTeardown)==null||t.call(this),this.trapTeardown=void 0;let e=this.previouslyFocused;e&&document.body.contains(e)&&e.focus({preventScroll:!0}),this.previouslyFocused=null}showEditIconPopup(e){this.showEditPopup=e}startEditTitle(){return B(this,null,function*(){yield this.editorService.loadEditDependencies(),this.store.dispatch(Ve.editTitle(this.listName,this.item))})}cancelEdit(){this.store.dispatch(Ve.cancelAction(this.listName,this.item))}startEditDescription(e,t=!1){return B(this,null,function*(){if(e!=null&&e.target){if((e.target.nodeName==="IMG"||e.target.nodeName==="A")&&!this.isEditMode){if(e.target.nodeName==="A"){e.target.contentEditable=!1;return}if(e.target.parentElement&&e.target.parentElement.nodeName==="A"){e.target.parentElement.contentEditable=!1;return}}(e.target.nodeName==="IMG"||e.target.nodeName==="A")&&this.isEditMode&&(e.preventDefault(),e.stopPropagation())}t?this.store.dispatch(Ve.editAdditionalDescription(this.listName,this.item)):(yield this.editorService.loadEditDependencies(),this.store.dispatch(Ve.editDescription(this.listName,this.item)))})}startEditAdditionalDescription(){this.store.dispatch(Ve.editAdditionalDescription(this.listName,this.item))}updateTitleContent(e){this.store.dispatch(Ve.updateTitleAction(this.listName,e,this.item))}updateDescriptionContent(e){this.store.dispatch(Ve.updateDescriptionAction(this.listName,e,this.item))}updateAdditionalDescriptionAction(e){this.store.dispatch(Ve.updateAdditionalDescriptionAction(this.listName,e,this.item))}saveItem(){this.store.dispatch(Ve.completeAction(this.listName,this.item))}editorEnterClick(){this.saveItem()}close(){this.isModalShowChange.emit(!1)}get isEditMode(){return!!(this.editState&&(this.editState.isEditTitle||this.editState.isEditDescription||this.editState.isEditAdditionalDescription))}get title(){return(0,Oo.get)(this.editState,"current.title",this.item.title)}get description(){return(0,Oo.get)(this.editState,"current.description",this.item.text)}get additionalDescription(){return(0,Oo.get)(this.editState,"current.additionalDescription",this.item.fulltext)}get permission$(){return this.store.select(Ei(this.item))}get showVote(){return!this.item.isUser&&!this.item.isHazu&&(this.item.isQuestion?this.baseItem.votesEnabled:this.item.votesEnabled)&&!this.isEditMode}get isShowResults(){let e=this.userRole(),t=this.voteRole();return!e&&t===Re.Everybody||t&&e&&fe[t]<=fe[e]}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-fullscreen-modal"]],hostBindings:function(t,n){t&1&&h("keyup",function(g){return n.onKeyUp(g)})("keyup.esc",function(g){return n.onEscUp(g)},tn)},inputs:{item:"item",baseItem:"baseItem",listName:"listName",language:"language",editState:"editState",large:"large",isModalShow:"isModalShow"},outputs:{isModalShowChange:"isModalShowChange"},standalone:!1,features:[be],decls:1,vars:1,consts:[[3,"modalClass","isFullScreen","onClose",4,"ngIf"],[3,"onClose","modalClass","isFullScreen"],[1,"ui","hz-editor-toolbar","modal-toolbar"],["toolbarId","editorModalToolbarId",1,"ui","borderless","menu","toolbar"],[1,"ui","hazu","header","hazu-accessory-container",3,"ngClass"],[1,"top-row"],[1,"left-column"],[3,"ngClass","items","onShow","itemChange",4,"ngIf"],[3,"item","radius",4,"ngIf"],[1,"ui","content","title-segment"],[1,"title-wrap",3,"id"],["class","ui red right ribbon label currentEditing",3,"ngClass","title",4,"ngIf"],["toolbarContainerId","editorModalToolbarId",3,"contentChanged","editTitleOrDescription","keydown.esc","onEnter","keydown","mousedown","click","isEditMode","content","placeholder","isReadonly","item"],[1,"item-options-container"],[3,"item","baseItem","fullscreenModal","itemOptionsState","options","canShowItemResetOption",4,"ngIf"],[3,"item","baseItem","fullscreenModal","itemOptionsState","options",4,"ngIf"],[3,"item","fullscreenModal","itemOptionsState","options",4,"ngIf"],["class","accessory","basic","true",3,"item","isShowResults","voteOptions","isRoot","permission",4,"ngIf"],["class","accessory","basic","true",3,"item","voteOptions","isShowResults","isRoot","permission",4,"ngIf"],[1,"buttons"],["translate","",1,"ui","floated","basic","button","small","editor-cancel-btn",3,"click"],["translate","",1,"ui","floated","button","small","green","editor-save-btn",3,"click"],[3,"item","itemOptionsState","fullscreenModal","isBaseItem","baseItem","canEdit"],["class","content scroll-content",4,"ngIf"],[3,"onShow","itemChange","ngClass","items"],[3,"item","radius"],[1,"ui","red","right","ribbon","label","currentEditing",3,"ngClass","title"],[1,"pencil","icon"],[3,"item","baseItem","fullscreenModal","itemOptionsState","options","canShowItemResetOption"],[3,"item","baseItem","fullscreenModal","itemOptionsState","options"],[3,"item","fullscreenModal","itemOptionsState","options"],["basic","true",1,"accessory",3,"item","isShowResults","voteOptions","isRoot","permission"],["basic","true",1,"accessory",3,"item","voteOptions","isShowResults","isRoot","permission"],[1,"content","scroll-content"],[1,"editor-outline"],["class","ui basic segment description-segment content-item",4,"ngIf"],["class","divider",4,"ngIf"],[4,"ngIf"],[1,"ui","basic","segment","description-segment","content-item"],[1,"ui","content","editor-in"],["toolbarContainerId","editorModalToolbarId",3,"isEditMode","content","toolbarButtons","isReadonly","isBaseItem","baseItem","item","isTitle","contentChanged","editTitleOrDescription","keydown.esc","enterClick","keydown","mousedown","click",4,"ngIf"],["class","ui tiny blue basic","translate","",3,"click",4,"ngIf"],["toolbarContainerId","editorModalToolbarId",3,"contentChanged","editTitleOrDescription","keydown.esc","enterClick","keydown","mousedown","click","isEditMode","content","toolbarButtons","isReadonly","isBaseItem","baseItem","item","isTitle"],["translate","",1,"ui","tiny","blue","basic",3,"click"],[1,"divi
1der"],[1,"ui","content","editor-fullscreen-out"],["toolbarContainerId","editorModalToolbarId",3,"hidden","isEditMode","content","isReadonly","toolbarButtons","isBaseItem","baseItem","item","isTitle","contentChanged","editTitleOrDescription","keydown.esc","enterClick","keydown","mousedown","click",4,"ngIf"],[1,"additional-description-info"],["class","ui tiny blue basic","translate","","hzTab","",3,"click",4,"ngIf"],["toolbarContainerId","editorModalToolbarId",3,"contentChanged","editTitleOrDescription","keydown.esc","enterClick","keydown","mousedown","click","hidden","isEditMode","content","isReadonly","toolbarButtons","isBaseItem","baseItem","item","isTitle"],["translate","","hzTab","",1,"ui","tiny","blue","basic",3,"click"]],template:function(t,n){t&1&&y(0,K0,38,54,"hz-modal",0),t&2&&c("ngIf",n.isModalShow)},dependencies:[X,k,H,bi,oe,zi,ki,Vi,dc,so,ao,uo,Zt,ce,L,Yt,Je],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}.divider[_ngcontent-%COMP%]{border-top:1px solid rgba(34,36,38,.15)}.is-editing[_ngcontent-%COMP%]{background-color:#00a2e808;border:1px solid #00a2e8;border-radius:4px;margin-top:2px}hz-play-and-progress-icon[_ngcontent-%COMP%]{float:left;margin-right:.75rem;padding:0;position:relative;z-index:100}.ui.content.title-segment[_ngcontent-%COMP%]{font-weight:400;margin-left:0;padding-left:0;align-self:center}  .ui.content.fr-btn-grp{margin:0!important}.hazu.header[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-top:0}.hazu.header[_ngcontent-%COMP%]     .menu.transition.visible{margin-top:0!important;margin-right:0!important}@media screen and (max-width:768px){.hazu.header[_ngcontent-%COMP%]     .menu.transition.visible{left:-3.5em}}.ui.header[_ngcontent-%COMP%]{padding:.75rem 1.5rem!important}.modal-toolbar[_ngcontent-%COMP%]{align-items:center;border-bottom:1px solid rgba(34,36,38,.15);display:flex;flex-direction:row;justify-content:space-between}.modal-toolbar[_ngcontent-%COMP%]   hz-editor-toolbar[_ngcontent-%COMP%]{margin:0}  .modal-toolbar .editor-toolbar{margin:0 auto!important;width:95%!important}  .modal-toolbar .fr-btn-grp,   .modal-toolbar .editor-toolbar .fr-btn-grp{margin:0!important}  .modal-toolbar,   .modal-toolbar .editor-toolbar{padding-left:.85rem;padding-right:1.5rem}  .modal-toolbar .editor-toolbar.editor-toolbar-external li>a{padding:15px 14px 14px}  .modal-toolbar .editor-toolbar .editor-save-btn a,   .modal-toolbar .editor-toolbar .editor-cancel-btn a{margin-top:3px}@media screen and (max-width:600px){  fui-modal.fullscreen .ui.modal{max-width:100%!important;max-height:100%!important;width:100%!important;height:100%!important;margin:0!important;padding:0!important;border-radius:0!important;left:0!important;top:0!important}}  fui-modal.fullscreen   .header{padding:0!important}  fui-modal.fullscreen .ui.modal{max-width:850px;display:flex;left:auto}  fui-modal.fullscreen fui-modal-dimmer{overflow-x:hidden}  fui-modal.fullscreen fui-dimmer>div>div{align-items:center;display:flex;height:100vh}  fui-modal.fullscreen .ui.modal{will-change:auto}  fui-modal.fullscreen .ui.modal .hazu-accessory-container.disabled-header{display:none}  fui-modal.fullscreen .ui.modal .content{padding-left:0!important}@media screen and (max-width:768px){  fui-modal.fullscreen .ui.modal .content{padding:0!important}}  fui-modal.fullscreen>.list.horizontal.infoList{display:flex}  fui-modal.fullscreen>.list.infoList>.order-4{order:4}  fui-modal.fullscreen .header.floated{font-weight:400!important;margin-left:0!important;max-width:90%}  fui-modal.fullscreen hz-item-icon-edit-button{background-color:#f1f1f2;border-radius:5px;cursor:pointer;display:none;font-size:1rem;left:.3em;position:absolute;width:2rem;padding-left:.1rem;line-height:1.8em}  fui-modal.fullscreen hz-item-options{cursor:pointer;font-size:.8em;position:relative}  fui-modal.fullscreen .left-column:hover hz-item-icon-edit-button{display:block}  fui-modal.fullscreen hz-item-icon-edit-button .hz-icon-edit{padding:.2em 1.5em .2em .5em;vertical-align:middle}  fui-modal.fullscreen .header .priority-10 .title-wrap   p{font-size:24px;line-height:39px}  fui-modal.fullscreen .header .priority-9 .title-wrap   p,   fui-modal.fullscreen .header .priority-8 .title-wrap   p,   fui-modal.fullscreen .header .priority-7 .title-wrap   p{font-size:23px;line-height:36px}  fui-modal.fullscreen .header .priority-6 .title-wrap   p,   fui-modal.fullscreen .header .priority-5 .title-wrap   p,   fui-modal.fullscreen .header .priority-4 .title-wrap   p{font-size:20px;line-height:32px}  fui-modal.fullscreen .header .priority-3 .title-wrap   p,   fui-modal.fullscreen .header .priority-2 .t
1itle-wrap   p,   fui-modal.fullscreen .header .priority-1 .title-wrap   p{font-size:15px;line-height:24px}  fui-modal.fullscreen .description-editor{float:none;margin:0}  fui-modal.fullscreen .content{padding:0!important}  fui-modal.fullscreen .content-item{padding-left:1.5rem;padding-right:1.5rem}  fui-modal.fullscreen .hazu-accessory-container{width:100%}  fui-modal.fullscreen .menu.list .content{color:#0006;width:100%}  fui-modal.fullscreen .description{line-height:1em;word-wrap:break-word}  fui-modal.fullscreen .title-segment{width:95%}  fui-modal.fullscreen .title-wrap{align-items:center;display:flex;flex-wrap:wrap}  fui-modal.fullscreen .title-wrap .list .item{color:#0006}  fui-modal.fullscreen .check.icon{margin-right:0}  fui-modal.fullscreen .description-segment{margin:0}  fui-modal.fullscreen .description-segment .additional-description-info{gap:.5em;display:flex;flex-direction:row}  fui-modal.fullscreen .icon.priority-0{font-size:.5em}  fui-modal.fullscreen .icon.priority-1{font-size:.6em}  fui-modal.fullscreen .icon.priority-2{font-size:.7em}  fui-modal.fullscreen .icon.priority-3{font-size:.8em}  fui-modal.fullscreen .icon.priority-4{font-size:.9em}  fui-modal.fullscreen .icon.priority-5{font-size:1em}  fui-modal.fullscreen .icon.priority-6{font-size:1.1em}  fui-modal.fullscreen .icon.priority-7{font-size:1.2em}  fui-modal.fullscreen .icon.priority-8{font-size:1.3em}  fui-modal.fullscreen .icon.priority-9{font-size:1.4em}  fui-modal.fullscreen .icon.priority-10{font-size:1.5em}  fui-modal.fullscreen hz-item-info{clear:both;font-size:.7em;padding-left:2.1em}  fui-modal.fullscreen hz-item-info   .icon{text-align:left}@media screen and (max-width:768px){  fui-modal.fullscreen hz-item-info{margin-top:.1em}}  fui-modal.fullscreen .showPopup{display:block!important}  fui-modal.fullscreen .hazu-button-edit-icon{min-height:3.2em}  fui-modal.fullscreen .title-wrap p{word-wrap:break-word}  fui-modal.fullscreen .currentEditing{display:inline-table;margin-left:-1.2em!important;position:absolute!important;top:-1em}@container sidebar (max-width: 767px){  fui-modal.fullscreen .currentEditing{display:none}}@media only screen and (max-width:767px){  fui-modal.fullscreen .currentEditing{display:none}}  fui-modal.fullscreen img{max-width:100%}  fui-modal.fullscreen content{display:block}  .fr-popup{z-index:600!important;margin-top:80px}.item-options-container[_ngcontent-%COMP%]{display:flex;margin-left:auto;font-size:1.5rem;align-self:center;align-items:center;gap:.5em}.item-options-container[_ngcontent-%COMP%]   .accessory[_ngcontent-%COMP%]{margin:0}.item-options-container[_ngcontent-%COMP%]   hz-item-options[_ngcontent-%COMP%]{margin:0}.item-options-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .editor-cancel-btn[_ngcontent-%COMP%]{background-color:#f5f6f7!important}.item-options-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{position:relative;display:flex;flex-direction:row}@media screen and (max-width:768px){.item-options-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]{background-color:#dc241e;bottom:-2em;position:fixed;width:100%;left:0;margin:0 0 2em;clear:both;padding:11.2px;max-height:66.5px;z-index:600;justify-content:space-between;box-shadow:0 1px 2px}.item-options-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .editor-cancel-btn[_ngcontent-%COMP%]{max-height:32px;padding:5.2px 13px;margin-left:5px}.item-options-container[_ngcontent-%COMP%]   .buttons[_ngcontent-%COMP%]   .editor-save-btn[_ngcontent-%COMP%]{max-height:32px;padding:5.2px 13px;margin-right:5px}}.top-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-between}.top-row[_ngcontent-%COMP%]   .left-column[_ngcontent-%COMP%]{align-self:center}"],changeDetection:0}));let o=s;return o})();function q0(o){let s=["a[href]","area[href]","button:not([disabled])","input:not([disabled]):not([type='hidden'])","select:not([disabled])","textarea:not([disabled])","iframe","[tabindex]:not([tabindex='-1'])","[contenteditable='true']"].join(",");return Array.from(o.querySelectorAll(s)).filter(e=>!(e.hasAttribute("disabled")||e.getAttribute("aria-hidden")==="true"||e.offsetParent===null&&e.tagName!=="BODY"))}var nt=class{},Me=(function(o){return o[o.Youtube=0]="Youtube",o[o.Vimeo=1]="Vimeo",o[o.ThreeQ=2]="ThreeQ",o[o.SwitchTube=3]="SwitchTube",o})(Me||{});var yo=(()=>{let s=class s{constructor(e,t){r(this,"store");r(this,"http");this.store=e,this.http=t}start(){this.store.dispatch(De.startAction())}pause(){this.store.dispatch(De.pauseAction())}seekTo(e,t){this.store.dispatch(De.seekToAction(e,t))}tickPosition(e){this.store.dispatch(De.tickPositionAction(e))}resetState(){this.store.dispatch(De.stateChangedAction(q.Stopped))}isYoutubeVideoExist(e){return B(this,null,function*(){let n="https://www.googleapis.com/youtube/v3/videos?id=".concat(e,"&part=snippet&key=").concat("AIzaSyADBb5AK_tOZUi6LTpFEe7ELzjypyKdJD0");try{return!!(yield xt(this.http.get(n).pipe(ri(1)))).pageInfo.totalResults}catch(u){return console.error(u),!1}})}parseVideoId(e){let t={videoId:e,playerType:Me.Youtube},n=new RegExp(/hazu:\/\/(.*)@youtube/),u=new RegExp(/hazu:\/\/(\d{6,})@vimeo/),g=new RegExp(/hazu:\/\/([a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})@3q/i),w=new RegExp(/hazu:\/\/([a-zA-Z0-9]+)@switchtube/);if(u.test(e)){let I=u.exec(e);return Object.assign({},t,{videoId:I==null?void 0:I[1],playerType:Me.Vimeo})}else if(n.test(e)){let I=n.exec(e);return Object.assign({},t,{videoId:I==null?void 0:I[1],playerType:Me.Youtube})}else if(g.test(e)){let I=g.exec(e);return Object.assign({},t,{videoId:I==null?void 0:I[1],playerType:Me.ThreeQ})}else if(w.test(e)){let I=w.exec(e);return Object.assign({},t,{videoId:I==null?void 0:I[1],playerType:Me.SwitchTube})}return t}calibrateDuration(e){return(e-1)*1e3}};r(s,"\u0275fac",function(t){return new(t||s)(Te(V),Te(sn))}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o}
1)();var X0="player",To=pi(X0),bo=F(To,o=>o.currentStatus),jT=F(bo,o=>o===q.Started),WT=F(To,o=>o.duration),$T=F(To,o=>o.currentPosition),Sr=F(Ns,As,bs,(o,s,i)=>{let e=o?s:i;return e?e.split(", "):[]}),tp=F(bo,Sr,(o,s)=>{if(o===q.Error||o===q.NotInitialized)return{state:o,videoCount:s.length}}),ip=o=>{let s=o.select(To);return s.pipe(Gr(s.pipe(Fr(1)))).pipe(Nr(i=>i[1].seekPosition!==null&&i[0].seekPosition!==i[1].seekPosition?Ao(0):Ao(100))).pipe(U(i=>({previous:i[0],current:i[1]})))};var np=(()=>{let s=class s extends nt{constructor(t,n,u){super();r(this,"logger");r(this,"_ngZone");r(this,"playerService");r(this,"genericOptions");r(this,"playerOptions");r(this,"isStarted");r(this,"player");r(this,"timer");r(this,"defaultYoutubeOptions",{showinfo:!1,autohide:!1});this.logger=t,this._ngZone=n,this.playerService=u}init(t,n){return B(this,null,function*(){this.logger.debug("Init Player: "+t.videoId),this.logger.debug("Options: "+JSON.stringify(n)),(this.playerService?yield this.playerService.isYoutubeVideoExist(t.videoId):!0)?this.isYTApiInitialized?this.initPlayer(t,n):this.initYTApi(t,n):this.emitStateChanged(q.Error)})}get currentTime(){return this.player.getCurrentTime()}seekTo(t,n){this.player&&this.player.seekTo(t,n)}play(){this.player?this.player.playVideo():this.genericOptions.autoplay=!0}get duration(){return this.player?this.player.getDuration():null}pause(){this.player?this.player.pauseVideo():this.genericOptions.autoplay=!1}ngOnInit(){this.logger.debug("Player initialized")}ngOnDestroy(){clearInterval(this.timer),this.player&&(this.player.destroy(),this.player=null)}checkPlayerAndEmitEvent(){var t;this.isStarted&&((t=this.player)!=null&&t.getCurrentTime)&&this.player.getDuration&&(this.player.getCurrentTime()>=this.player.getDuration()&&(clearInterval(this.timer),this.emitStateChanged(q.Stopped)),this.emitTimeUpdated(this.player.getCurrentTime()))}get isYTApiInitialized(){return typeof YT<"u"&&typeof YT.Player<"u"}initYTApi(t,n){window.onYouTubeIframeAPIReady=(()=>this.initPlayer(t,n)).bind(this);let u=document.createElement("script");u.onerror=this.onError.bind(this),u.src="https://www.youtube.com/iframe_api";let g=document.getElementsByTagName("script")[0];g.parentNode.insertBefore(u,g)}onPlayerReady(t){this.logger.debug("Player Ready"),this.emitStateChanged(q.Ready),this.emitDurationUpdated(this.player.getDuration())}onPlayerStateChange(t){let n=t.data;switch(this.emitDurationUpdated(this.player.getDuration()),n){case YT.PlayerState.PLAYING:clearInterval(this.timer),this.timer=setInterval(this.checkPlayerAndEmitEvent.bind(this),s.TIME_UPDATE_FREQUENCY),this.isStarted=!0,this.emitStateChanged(q.Started);break;case YT.PlayerState.PAUSED:this.emitStateChanged(q.Paused);break;case YT.PlayerState.ENDED:clearInterval(this.timer),this.isStarted=!1;break}}onError(){this.emitStateChanged(q.Error)}initPlayer(t,n){let u=Object.assign({},this.defaultYoutubeOptions,this.playerOptions),g={height:n.height,width:n.width,videoId:t.videoId,playerVars:{autoplay:n.autoplay?1:0,start:n.startSecond,color:"white",showinfo:u.showinfo?1:0,autohide:u.autohide?1:0,rel:0},events:{onReady:this.onPlayerReady.bind(this),onStateChange:this.onPlayerStateChange.bind(this),onError:this.onError.bind(this)}};this.player&&this.player.destroy(),this._ngZone.run(()=>{this.player=new YT.Player("youTubePlayer",g)})}};r(s,"TIME_UPDATE_FREQUENCY",1e3),r(s,"\u0275fac",function(n){Yr()}),r(s,"\u0275dir",Xt({type:s,features:[st]}));let o=s;return o})();var Io=(()=>{let s=class s extends np{constructor(t,n,u){super(t,n,u);r(this,"videoId");r(this,"genericOptions");r(this,"playerOptions");r(this,"onTimeUpdated",new E);r(this,"onDurationUpdated",new E);r(this,"onStateChanged",new E);r(this,"isStarted",!1)}emitTimeUpdated(t){this.isStarted&&this.currentTime&&this.onTimeUpdated.emit(t)}emitDurationUpdated(t){this.onDurationUpdated.emit(t)}emitStateChanged(t){this.onStateChanged.emit(t)}};r(s,"\u0275fac",function(n){return new(n||s)(M(Ue),M(Ye),M(yo))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-youtube-video-player"]],inputs:{videoId:"videoId",genericOptions:"genericOptions",playerOptions:"playerOptions"},outputs:{onTimeUpdated:"onTimeUpdated",onDurationUpdated:"onDurationUpdated",onStateChanged:"onStateChanged"},standalone:!1,features:[st],decls:2,vars:0,consts:[["id","youTubePlayer"],[1,"ui","active","loader"]],template:function(n,u){n&1&&(a(0,"div",0),S(1,"div",1),l())},encapsulation:2,changeDetection:0}));let o=s;return o}
1)();function tg(o,s){o&1&&S(0,"div",2)}var xo=(()=>{let s=class s extends nt{constructor(t,n){super();r(this,"logger");r(this,"_ngZone");r(this,"videoId");r(this,"genericOptions");r(this,"playerOptions");r(this,"isVimeoVideo",!1);r(this,"onTimeUpdated",new E);r(this,"onDurationUpdated",new E);r(this,"onStateChanged",new E);r(this,"onSeekPosition",new E);r(this,"showLoader",!0);r(this,"isInitialized",!1);r(this,"player");r(this,"defaultVimeoOptions",{});this.logger=t,this._ngZone=n}init(t,n){this.logger.debug("Init Player: "+t.videoId),this.logger.debug("Options: "+JSON.stringify(n)),this.isInitialized?this.updatePlayer(t,n):this.initPlayer(t,n)}seekTo(t,n){return B(this,null,function*(){if(this.player){let u=yield this.player.getDuration();t=t>u?u:t,yield this.player.setCurrentTime(t),this.onStateChanged.emit(q.Started)}})}play(){this.player?this.player.play():this.genericOptions.autoplay=!0}pause(){return B(this,null,function*(){this.player?(yield this.player.getPaused())||this.player.pause():this.genericOptions.autoplay=!1})}ngOnInit(){this.logger.debug("Player initialized")}ngOnDestroy(){this.player&&this.player.unload()}onPlayerReady(){this.logger.debug("Player Ready"),this.showLoader=!1,this.onReady(),this.onDurationChanged()}updatePlayer(t,n){this.player.loadVideo(parseInt(t.videoId))}initPlayer(t,n){let u={id:t.videoId,autoplay:n.autoplay,color:"white"};this._ngZone.run(()=>{this.player=new Vimeo.Player("vimeoPlayer",u),this.player.ready().catch(this.onError.bind(this)),this.isInitialized=!0,this.player.on("loaded",this.onPlayerReady.bind(this)),this.player.on("play",this.onPlay.bind(this)),this.player.on("pause",this.onPause.bind(this)),this.player.on("timeupdate",this.onTimeUpdate.bind(this)),this.player.on("error",this.onError.bind(this))})}onPlay(){this.onStateChanged.emit(q.Started)}onPause(){this.onStateChanged.emit(q.Paused)}onReady(){this.onStateChanged.emit(q.Ready)}onError(){this.onStateChanged.emit(q.Error)}onTimeUpdate(t){this.onTimeUpdated.emit(t.seconds)}onDurationChanged(){return B(this,null,function*(){let t=yield this.player.getDuration();this.onDurationUpdated.emit(t)})}onSeeking(t){this.onSeekPosition.emit(t.seconds)}};r(s,"\u0275fac",function(n){return new(n||s)(M(Ue),M(Ye))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-vimeo-video-player"]],inputs:{videoId:"videoId",genericOptions:"genericOptions",playerOptions:"playerOptions",isVimeoVideo:"isVimeoVideo"},outputs:{onTimeUpdated:"onTimeUpdated",onDurationUpdated:"onDurationUpdated",onStateChanged:"onStateChanged",onSeekPosition:"onSeekPosition"},standalone:!1,features:[st],decls:2,vars:1,consts:[["id","vimeoPlayer"],["class","ui active loader",4,"ngIf"],[1,"ui","active","loader"]],template:function(n,u){n&1&&(a(0,"div",0),y(1,tg,1,0,"div",1),l()),n&2&&(p(),c("ngIf",u.isVimeoVideo&&u.showLoader))},dependencies:[k],styles:["[_nghost-%COMP%], #vimeoPlayer[_ngcontent-%COMP%]{display:block;height:100%}#vimeoPlayer[_ngcontent-%COMP%]     iframe{background-color:#000;height:100%!important;width:100%!important}"],changeDetection:0}));let o=s;return o})();function ng(o,s){o&1&&(a(0,"div",3),S(1,"i",4),l())}var Eo=null,Po=(()=>{let s=class s extends nt{constructor(t,n){super();r(this,"logger");r(this,"_ngZone");r(this,"videoId");r(this,"genericOptions");r(this,"playerOptions");r(this,"is3qVideo",!1);r(this,"onTimeUpdated",new E);r(this,"onDurationUpdated",new E);r(this,"onStateChanged",new E);r(this,"onSeekPosition",new E);r(this,"showLoader",!0);r(this,"isInitialized",!1);r(this,"player");r(this,"timeUpdateInterval");r(this,"isPlayerActive",!1);this.logger=t,this._ngZone=n}init(t,n){this.logger.debug("Init 3Q Player: "+t.videoId),this.logger.debug("Options: "+JSON.stringify(n)),this.isInitialized?this.updatePlayer(t,n):this.loadScriptAndInitPlayer(t,n)}seekTo(t,n){return B(this,null,function*(){if(this.player)try{let u=yield this.player.getDuration();t=t>u?u:t,this.player.seek(t),this.onStateChanged.emit(q.Started)}catch(u){this.logger.error("Error seeking in 3Q player:",u)}})}play(){this.player?this.player.play():this.genericOptions.autoplay=!0}pause(){this.player?this.player.pause():this.genericOptions.autoplay=!1}ngOnInit(){this.logger.debug("3Q Player initialized")}ngOnDestroy(){this.stopTimeUpdates(),this.player&&this.player.destroy()}loadScriptAndInitPlayer(t,n){return B(this,null,function*(){try{yield this.load3QScript(),this.initPlayer(t,n)}catch(u){this.logger.error("Failed to load 3Q player script"),this.onError()}})}load3QScript(){return Eo||(typeof js3q<"u"?Promise.resolve():(Eo=new Promise((t,n)=>{let u=document.createElement("script");u.src="https://player.3qsdn.com/js3q.latest.js",u.async=!0,u.onload=()=>t(),u.onerror=()=>n(new Error("Failed to load 3Q script")),document.head.appendChild(u)}),Eo))}onPlayerReady(){this.logger.debug("3Q Player Ready"),this.showLoader=!1,this.onReady(),this.onDurationChanged(),this.startTimeUpdates()}updatePlayer(t,n){this.player&&this.player.destroy(),this.initPlayer(t,n)}initPlayer(t,n){let u={dataid:t.videoId,container:"threeQPlayer",autoplay:n.autoplay};this._ngZone.run(()=>{try{this.player=new js3q(u),this.isInitialized=!0,this.player.on("media.loadstart",this.onPlayerReady.bind(this)),this.player.on("media.play",this.onPlay.bind(this)),this.player.on("media.pause",this.onPause.bind(this)),this.player.on("media.timeupdate",this.onTimeUpdate.bind(this)),this.player.on("media.error",this.onError.bind(this)),this.player.on("media.seeking",this.onSeeking.bind(this)),setTimeout(()=>{this.onPlayerReady()},100)}catch(g){this.logger.error("Error initializing 3Q player:",g),this.onError()}})}onPlay(){this.onStateChanged.emit(q.Started),this.isPlayerActive=!0,this.timeUpdateInterval||this.startTimeUpdates()}onPause(){this.onStateChanged.emit(q.Paused),this.isPlayerActive=!1,this.stopTimeUpdates()}onReady(){this.onStateChanged.emit(q.Ready)}onError(){this.onStateChanged.emit(q.Error)}onTimeUpdate(t){this.isProduction()||this.logger.debug("3Q timeupdate event data:",JSON.stringify(t));let n=t.currentTime||t.seconds||t.time||t.position;n!==void 0?this.onTimeUpdated.emit(n):this.getCurrentTimeFromPlayer()}startTimeUpdates(){this.timeUpdateInterval||!this.isPlayerActive||(this.timeUpdateInterval=window.setInterval(()=>B(this,null,function*(){try{if(this.isPlayerActive&&this.player&&this.player.getCurrentTime){let t=yield this.player.getCurrentTime();this.onTimeUpdated.emit(t)}}catch(t){}}),250))}stopTimeUpdates(){this.timeUpdateInterval&&(clearInterval(this.timeUpdateInterval),this.timeUpdateInterval=void 0)}isProduction(){return typeof window<"u"&&window.__ENV__==="production"||!this.logger.debug}getCurrentTimeFromPlayer(){return B(this,null,function*(){try{if(this.player&&this.player.getCurrentTime){let t=yield this.player.getCurrentTime();this.onTimeUpdated.emit(t)}}catch(t){}})}onDurationChanged(){return B(this,null,function*(){try{let t=yield this.player.getDuration();this.onDurationUpdated.emit(t)}catch(t){this.logger.error("Error getting duration from 3Q player:",t)}})}onSeeking(t){t.position!==void 0&&this.onSeekPosition.emit(t.position)}};r(s,"\u0275fac",function(n){return new(n||s)(M(Ue),M(Ye))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-3q-video-player"]],inputs:{videoId:"videoId",genericOptions:"genericOptions",playerOptions:"playerOptions",is3qVideo:"is3qVideo"},outputs:{onTimeUpdated:"onTimeUpdated",onDurationUpdated:"onDurationUpdated",onStateChanged:"onStateChanged",onSeekPosition:"onSeekPosition"},standalone:!1,features:[st],decls:3,vars:1,consts:[[1,"video-player-container"],["id","threeQPlayer",1,"video-player"],["class","loader-overlay",4,"ngIf"],[1,"loader-overlay"],[1,"icon","notched","circle","loading"]],template:function(n,u){n&1&&(a(0,"div",0),S(1,"div",1),y(2,ng,2,0,"div",2),l()),n&2&&(p(2),c("ngIf",u.showLoader))},dependencies:[k],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;position:relative}.video-player-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.video-player[_ngcontent-%COMP%]{width:100%;height:100%}#threeQPlayer[_ngcontent-%COMP%]{width:100%!important;height:100%!important;display:block;background-color:#000;position:relative;z-index:1}#threeQPlayer[_ngcontent-%COMP%]     video, #threeQPlayer[_ngcontent-%COMP%]     .js3q-player, #threeQPlayer[_ngcontent-%COMP%]     .js3q-container{width:100%!important;height:100%!important}
1#threeQPlayer[_ngcontent-%COMP%]     .js3q-controls, #threeQPlayer[_ngcontent-%COMP%]     .js3q-overlay{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.loader-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#000000b3;color:#fff;z-index:10}"],changeDetection:0}));let o=s;return o})();var rg=["switchtubeContainer"];function sg(o,s){o&1&&(a(0,"div",4),S(1,"i",5),l())}var ag="https://tube.switch.ch/videos/",Ji=null,Mo=(()=>{let s=class s extends nt{constructor(t,n,u){super();r(this,"logger");r(this,"_ngZone");r(this,"changeDetector");r(this,"videoId");r(this,"genericOptions");r(this,"playerOptions");r(this,"isSwitchtubeVideo",!1);r(this,"onTimeUpdated",new E);r(this,"onDurationUpdated",new E);r(this,"onStateChanged",new E);r(this,"containerRef");r(this,"showLoader",!0);r(this,"isInitialized",!1);r(this,"player");r(this,"timeUpdateInterval");r(this,"loadAbort");r(this,"lastPlayingState");this.logger=t,this._ngZone=n,this.changeDetector=u}ngOnInit(){this.logger.debug("SwitchTube Player initialized")}ngOnDestroy(){this.stopTimeUpdates(),this.teardownPlayer()}init(t,n){this.logger.debug("Init SwitchTube Player: "+t.videoId),this.genericOptions=n,this.isInitialized&&this.teardownPlayer(),this.loadScriptAndInitPlayer(t,n)}seekTo(t,n){return B(this,null,function*(){if(this.player)try{let u=yield this.player.duration(),g=t>u?u:t;this.player.seek(g),this.onStateChanged.emit(q.Started)}catch(u){this.logger.error("Error seeking in SwitchTube player:",u)}})}play(){this.player?this.player.play():this.genericOptions&&(this.genericOptions.autoplay=!0)}pause(){this.player?this.player.pause():this.genericOptions&&(this.genericOptions.autoplay=!1)}loadScriptAndInitPlayer(t,n){return B(this,null,function*(){try{yield this.loadSwitchTubeScript(),this.mountPlayer(t,n)}catch(u){this.logger.error("Failed to load SwitchTube player script"),this.onError()}})}loadSwitchTubeScript(){return Ji||(typeof window.SwitchTubeEmbed<"u"?Promise.resolve():(Ji=new Promise((t,n)=>{let u=document.createElement("script");u.src="https://tube.switch.ch/js/embed.js",u.async=!0,u.onload=()=>t(),u.onerror=()=>{Ji=null,n(new Error("Failed to load SwitchTube script"))},document.head.appendChild(u)}),Ji))}mountPlayer(t,n){var g;let u=(g=this.containerRef)==null?void 0:g.nativeElement;if(!u){this.logger.error("SwitchTube container not found"),this.onError();return}this._ngZone.run(()=>{var w;try{(w=this.loadAbort)==null||w.abort(),this.loadAbort=new AbortController,u.addEventListener("SwitchTubeEmbed:load",I=>{this.player=I.detail,this.onPlayerReady(n)},{once:!0,signal:this.loadAbort.signal}),SwitchTubeEmbed.player(u,ag+t.videoId),this.isInitialized=!0}catch(I){this.logger.error("Error initializing SwitchTube player:",I),this.onError()}})}onPlayerReady(t){return B(this,null,function*(){if(this.logger.debug("SwitchTube Player Ready"),this.showLoader=!1,this.changeDetector.markForCheck(),this.onStateChanged.emit(q.Ready),!!this.player){try{let n=yield this.player.duration();this.onDurationUpdated.emit(n)}catch(n){this.logger.error("Error getting duration from SwitchTube player:",n)}t!=null&&t.startSecond&&this.player.seek(t.startSecond),t!=null&&t.autoplay&&(this.player.play(),this.onStateChanged.emit(q.Started)),this.startTimeUpdates()}})}startTimeUpdates(){this.timeUpdateInterval||(this.timeUpdateInterval=window.setInterval(()=>B(this,null,function*(){try{if(this.player){let[t,n]=yield Promise.all([this.player.currentTime(),this.player.playing()]);this.onTimeUpdated.emit(t),this.lastPlayingState!==n&&(this.lastPlayingState=n,this.onStateChanged.emit(n?q.Started:q.Paused))}}catch(t){}}),250))}stopTimeUpdates(){this.timeUpdateInterval&&(clearInterval(this.timeUpdateInterval),this.timeUpdateInterval=void 0)}teardownPlayer(){var n,u;this.stopTimeUpdates(),(n=this.loadAbort)==null||n.abort(),this.loadAbort=void 0,this.player=void 0,this.lastPlayingState=void 0,this.isInitialized=!1;let t=(u=this.containerRef)==null?void 0:u.nativeElement;t&&(t.innerHTML="")}onError(){this.showLoader=!1,this.changeDetector.markForCheck(),this.onStateChanged.emit(q.Error)}};r(s,"\u0275fac",function(n){return new(n||s)(M(Ue),M(Ye),M(de))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-switchtube-video-player"]],viewQuery:function(n,u){if(n&1&&ve(rg,7),n&2){let g;
1ae(g=le())&&(u.containerRef=g.first)}},inputs:{videoId:"videoId",genericOptions:"genericOptions",playerOptions:"playerOptions",isSwitchtubeVideo:"isSwitchtubeVideo"},outputs:{onTimeUpdated:"onTimeUpdated",onDurationUpdated:"onDurationUpdated",onStateChanged:"onStateChanged"},standalone:!1,features:[st],decls:4,vars:1,consts:[["switchtubeContainer",""],[1,"video-player-container"],[1,"video-player"],["class","loader-overlay",4,"ngIf"],[1,"loader-overlay"],[1,"icon","notched","circle","loading"]],template:function(n,u){n&1&&(a(0,"div",1),S(1,"div",2,0),y(3,sg,2,0,"div",3),l()),n&2&&(p(3),c("ngIf",u.showLoader))},dependencies:[k],styles:["[_nghost-%COMP%]{display:block;height:100%;width:100%;position:relative}.video-player-container[_ngcontent-%COMP%]{position:relative;width:100%;height:100%}.video-player[_ngcontent-%COMP%]{width:100%;height:100%}#switchtubePlayer[_ngcontent-%COMP%]{width:100%!important;height:100%!important;display:block;background-color:#000;position:relative;z-index:1}#switchtubePlayer[_ngcontent-%COMP%]     iframe, #switchtubePlayer[_ngcontent-%COMP%]     video{width:100%!important;height:100%!important;border:0}.loader-overlay[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#000000b3;color:#fff;z-index:10}"],changeDetection:0}));let o=s;return o})();var cg=["youtubePlayer"],pg=["vimeoPlayer"],dg=["threeQPlayer"],mg=["switchtubePlayer"],_g=["playerContainer"],ug=["resizeOverlay"],hg=o=>({"video-player-expand-button-show":o});function gg(o,s){if(o&1){let i=O();a(0,"div",16),h("mousedown",function(t){m(i);let n=d();return _(n.onResizeStart(t))}),S(1,"div",17),l()}}var fg=(()=>{let s=class s{constructor(){r(this,"store",b(V));r(this,"playerService",b(yo));r(this,"options");r(this,"youtubePlayer");r(this,"vimeoPlayer");r(this,"threeQPlayer");r(this,"switchtubePlayer");r(this,"playerContainer");r(this,"resizeOverlay");r(this,"player");r(this,"showExpandButton");r(this,"defaultGenericOptions",{height:"100%",width:"100%",startSecond:0,autoplay:!1});r(this,"videoIds",this.store.selectSignal(Sr));r(this,"layout",this.store.selectSignal(fs));r(this,"videoParams",re(()=>this.videoIds().map(e=>this.playerService.parseVideoId(e))));r(this,"currentVideoIndex",_e(0));r(this,"viewInitialized",_e(!1));r(this,"isResizing",!1);r(this,"initialY");r(this,"initialHeight");r(this,"resizeObserver");r(this,"resizeAnimationFrame",null);r(this,"playerErrorState",te(this.store.select(tp).pipe(Xe(e=>!!e),Et(e=>{(e==null?void 0:e.state)===q.Error&&this.currentVideoIndex.update(t=>t+1)}))));r(this,"previousAndCurrentPlayerState",te(ip(this.store)));r(this,"isYoutubeVideo",re(()=>{let e=this.videoParams(),t=this.currentVideoIndex();return e[t]&&e[t].playerType===Me.Youtube}));r(this,"isVimeoVideo",re(()=>{let e=this.videoParams(),t=this.currentVideoIndex();return e[t]&&e[t].playerType===Me.Vimeo}));r(this,"is3qVideo",re(()=>{let e=this.videoParams(),t=this.currentVideoIndex();return e[t]&&e[t].playerType===Me.ThreeQ}));r(this,"isSwitchtubeVideo",re(()=>{let e=this.videoParams(),t=this.currentVideoIndex();return e[t]&&e[t].playerType===Me.SwitchTube}));r(this,"isVideoError",re(()=>{let e=this.videoParams(),t=this.currentVideoIndex();return!e[t]}));r(this,"onResize",e=>{this.isResizing&&(this.resizeAnimationFrame&&cancelAnimationFrame(this.resizeAnimationFrame),this.resizeAnimationFrame=requestAnimationFrame(()=>{let t=e.clientY-this.initialY,n=Math.max(200,Math.min(800,this.initialHeight+t));this.playerContainer.nativeElement.style.height="".concat(n,"px"),this.resizeInnerPlayers(n)}))});r(this,"onResizeEnd",()=>{this.isResizing=!1,document.removeEventListener("mousemove",this.onResize),document.removeEventListener("mouseup",this.onResizeEnd);let e=this.resizeOverlay.nativeElement;e.style.display="none",e.style.pointerEvents="none",this.resizeAnimationFrame&&(cancelAnimationFrame(this.resizeAnimationFrame),this.resizeAnimationFrame=null)});Ce(()=>{let e=this.previousAndCurrentPlayerState();!e||!this.viewInitialized()||(!e.previous||e.current.seekPosition!==e.previous.seekPosition&&e.current.seekPosition,e.current.seekPosition&&this.innerPlayer.seekTo(e.current.seekPosition,e.current.allowSeekAhead),e.current.currentStatus===q.Paused&&e.current.isSeeking&&this.innerPlayer.pause(),(!e.previous||e.current.currentStatus!==e.previous.currentStatus)&&(e.current.currentStatus===q.Started&&this.innerPlayer.play(),e.current.currentStatus===q.Paused&&this.innerPlayer.pause()))}),Ce(()=>{let e=this.videoParams(),t=this.currentVideoIndex();if(this.playerErrorState(),!!this.viewInitialized()&&e[t]){let n=e[t];this.setPlayerByType(n.playerType),this.innerPlayer.init(n,this.combinedOptions)}}),Ce(()=>{this.videoParams(),this.currentVideoIndex.set(0)})}ngAfterViewInit(){this.viewInitialized.set(!0),this.initResizeObserver()}onExpandClicked(){this.store.dispatch(nl(!1))}changeState(e){this.store.dispatch(De.stateChangedAction(e))}updateDuration(e){this.store.dispatch(De.durationUpdatedAction(e))}updateTimeTickPosition(e){this.store.dispatch(De.tickPositionAction(e))}seekPosition(e){this.store.dispatch(De.seekToAction(e))}onMouseEnter(){this.showExpandButton=!0}onMouseLeave(){this.showExpandButton=!1}get combinedOptions(){return Object.assign({},this.defaultGenericOptions,this.options)}get innerPlayer(){return this.player.nativeElement?this.player.nativeElement:this.player}setPlayerByType(e){switch(e){case Me.Youtube:this.player=this.youtubePlayer;break;case Me.Vimeo:this.player=this.vimeoPlayer;break;case Me.ThreeQ:this.player=this.threeQPlayer;break;case Me.SwitchTube:this.player=this.switchtubePlayer;break}}onResizeStart(e){e.preventDefault(),this.isResizing=!0,this.initialY=e.clientY,this.initialHeight=this.playerContainer.nativeElement.offsetHeight;let t=this.resizeOverlay.nativeElement;t.style.display="block",t.style.pointerEvents="auto",document.addEventListener("mousemove",this.onResize),document.addEventListener("mouseup",this.onResizeEnd)}initResizeObserver(){this.resizeObserver=new ResizeObserver(e=>{for(let t of e){let n=t.contentRect.height;n>=200&&n<=800&&this.resizeInnerPlayers(n)}}),this.resizeObserver.observe(this.playerContainer.nativeElement)}resizeInnerPlayers(e){this.youtubePlayer&&this.youtubePlayer.nativeElement&&(this.youtubePlayer.nativeElement.style.height="".concat(e,"px")),this.vimeoPlayer&&this.vimeoPlayer.nativeElement&&(this.vimeoPlayer.nativeElement.style.height="".concat(e,"px")),this.threeQPlayer&&this.threeQPlayer.nativeElement&&(this.threeQPlayer.nativeElement.style.height="".concat(e,"px")),this.switchtubePlayer&&this.switchtubePlayer.nativeElement&&(this.switchtubePlayer.nativeElement.style.height="".concat(e,"px"))}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-video-player"]],viewQuery:function(t,n){if(t&1&&ve(cg,7)(pg,7)(dg,7)(mg,7)(_g,5)(ug,5),t&2){let u;ae(u=le())&&(n.youtubePlayer=u.first),ae(u=le())&&(n.vimeoPlayer=u.first),ae(u=le())&&(n.threeQPlayer=u.first),ae(u=le())&&(n.switchtubePlayer=u.first),ae(u=le())&&(n.playerContainer=u.first),ae(u=le())&&(n.resizeOverlay=u.first)}},hostBindings:function(t,n){t&1&&h("mouseenter",function(){return n.onMouseEnter()})("mouseleave",function(){return n.onMouseLeave()})},inputs:{options:"options"},standalone:!1,decls:18,vars:22,consts:[["playerContainer",""],["y
1outubePlayer",""],["vimeoPlayer",""],["threeQPlayer",""],["switchtubePlayer",""],["resizeOverlay",""],[1,"video-player-container"],["data-inverted","","data-position","left center",1,"ui","icon","button","inverted","red","video-player-expand-button",3,"click","ngClass"],[1,"ui","expand","icon"],[3,"onStateChanged","onDurationUpdated","onTimeUpdated"],[3,"onStateChanged","onDurationUpdated","onTimeUpdated","onSeekPosition","isVimeoVideo"],[3,"onStateChanged","onDurationUpdated","onTimeUpdated","onSeekPosition","is3qVideo"],[3,"onStateChanged","onDurationUpdated","onTimeUpdated","isSwitchtubeVideo"],["translate","",1,"video-error"],["class","video-player-resize-handle",3,"mousedown",4,"ngIf"],[1,"video-player-resize-overlay"],[1,"video-player-resize-handle",3,"mousedown"],[1,"video-player-resize-handle-inner"]],template:function(t,n){if(t&1){let u=O();a(0,"div",6,0)(2,"div",7),f(3,"translate"),h("click",function(){return m(u),_(n.onExpandClicked())}),S(4,"i",8),l(),a(5,"hz-youtube-video-player",9,1),h("onStateChanged",function(w){return m(u),_(n.changeState(w))})("onDurationUpdated",function(w){return m(u),_(n.updateDuration(w))})("onTimeUpdated",function(w){return m(u),_(n.updateTimeTickPosition(w))}),l(),a(7,"hz-vimeo-video-player",10,2),h("onStateChanged",function(w){return m(u),_(n.changeState(w))})("onDurationUpdated",function(w){return m(u),_(n.updateDuration(w))})("onTimeUpdated",function(w){return m(u),_(n.updateTimeTickPosition(w))})("onSeekPosition",function(w){return m(u),_(n.seekPosition(w))}),l(),a(9,"hz-3q-video-player",11,3),h("onStateChanged",function(w){return m(u),_(n.changeState(w))})("onDurationUpdated",function(w){return m(u),_(n.updateDuration(w))})("onTimeUpdated",function(w){return m(u),_(n.updateTimeTickPosition(w))})("onSeekPosition",function(w){return m(u),_(n.seekPosition(w))}),l(),a(11,"hz-switchtube-video-player",12,4),h("onStateChanged",function(w){return m(u),_(n.changeState(w))})("onDurationUpdated",function(w){return m(u),_(n.updateDuration(w))})("onTimeUpdated",function(w){return m(u),_(n.updateTimeTickPosition(w))}),l(),a(13,"div",13),C(14," VIDEO_SETTINGS.VIDEO_NOT_AVIABLE "),l(),y(15,gg,2,0,"div",14),S(16,"div",15,5),l()}if(t&2){let u,g,w;G("minimized",(u=n.layout())==null?null:u.videoPlayerMinimized),p(2),c("ngClass",T(20,hg,((g=n.layout())==null?null:g.videoPlayerMinimized)&&n.showExpandButton)),J("data-tooltip",v(3,18,"LAYOUT.EXPAND_VIDEO")),p(3),G("hidden",!n.isYoutubeVideo()),p(2),G("hidden",!n.isVimeoVideo()),c("isVimeoVideo",n.isVimeoVideo()),p(2),G("hidden",!n.is3qVideo()),c("is3qVideo",n.is3qVideo()),p(2),G("hidden",!n.isSwitchtubeVideo()),c("isSwitchtubeVideo",n.isSwitchtubeVideo()),p(2),G("hidden",!n.isVideoError()),p(2),c("ngIf",!((w=n.layout())!=null&&w.videoPlayerMinimized))}},dependencies:[X,k,H,Io,xo,Po,Mo,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}.video-player-expand-button[_ngcontent-%COMP%]{display:none;position:absolute;right:1rem;top:1rem;z-index:500!important}.video-player-expand-button-show[_ngcontent-%COMP%]{display:block}.hidden[_ngcontent-%COMP%]{display:none!important}.video-error[_ngcontent-%COMP%]{background-color:#000;color:#fff;display:flex;flex-direction:column;font-size:1.5em;height:100%;justify-content:center}.video-player-container.minimized[_ngcontent-%COMP%]{height:inherit}.video-player-container[_ngcontent-%COMP%]:not(.minimized){position:relative;-webkit-user-select:none;user-select:none;min-height:200px}@media(min-width:768px){.video-player-container[_ngcontent-%COMP%]:not(.minimized){height:400px}}@media(max-width:767px){.video-player-container[_ngcontent-%COMP%]:not(.minimized){height:auto}}.video-player-resize-handle[_ngcontent-%COMP%]{position:absolute;bottom:-6px;left:0;right:0;height:15px;background-color:#0000001a;cursor:ns-resize;transition:background-color .2s ease;z-index:10}.video-player-resize-handle[_ngcontent-%COMP%]:hover, .video-player-resize-handle[_ngcontent-%COMP%]:active{background-color:#0000004d}.video-player-resize-handle-inner[_ngcontent-%COMP%]{width:40px;height:3px;background-color:#fff;margin:3px auto 0;border-radius:2px}.video-player-resize-overlay[_ngcontent-%COMP%]{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1000;cursor:ns-resize;-webkit-user-select:none;user-select:none;display:none;pointer-events:none}"],changeDetection:0}));let o=s;return o}
1)();function mI(o,s){return new Date(o+s*1e3)}function wr(o,s){return(o-s)/1e3}var vI=[hl];var pe=$e(Ke());var zo=(()=>{let s=class s{constructor(e){r(this,"dataService");this.dataService=e}dragItems(e,t,n){let u=0,g=[...e];g.splice(t,0,g.splice(n,1)[0]);let w=this.dataService.batchUpdate(),I=g.map(D=>{let Y=D.clone();return Y.order=u,u+=1,Y});return w.saveItems(I),w.save()}placeItem(e,t,n){let u=e.clone();return u.placed=!0,u.duration=30*1e3,u.date=t.getTime()||n,u}};r(s,"\u0275fac",function(t){return new(t||s)(Te(Ft))}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o})();var Or=[zo];var vg=o=>[o],Sg=o=>({showComment:o,showVotes:void 0}),Xi=(()=>{let s=class s{constructor(e,t){r(this,"store");r(this,"layoutService");r(this,"item");r(this,"baseUrl$");this.store=e,this.layoutService=t,this.baseUrl$=this.store.select(fi)}showCommentModal(){this.layoutService.showModal(Ae.COMMENT_ITEM,{item:this.item})}};r(s,"\u0275fac",function(t){return new(t||s)(M(V),M(He))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-show-comments-button"]],inputs:{item:"item"},standalone:!1,decls:13,vars:16,consts:[["queryParamsHandling","merge","data-hz-test","show-comments-button",3,"click","routerLink","queryParams"],[1,"ui","icon","basic","button"],[1,"grey","icon","comment",3,"title"],[1,"mobile",3,"click"]],template:function(t,n){t&1&&(a(0,"a",0),f(1,"async"),h("click",function(g){return g.stopPropagation()}),a(2,"div",1),S(3,"i",2),f(4,"translate"),a(5,"span"),C(6),l()()(),a(7,"a",3),h("click",function(g){return g.stopPropagation(),n.showCommentModal()}),a(8,"div",1),S(9,"i",2),f(10,"translate"),a(11,"span"),C(12),l()()()),t&2&&(c("routerLink",T(12,vg,v(1,6,n.baseUrl$)))("queryParams",T(14,Sg,n.item==null?null:n.item.id)),p(3),c("title",v(4,8,"ROLES_SETTINGS.EDIT.COMMENT")),p(3),N(n.item==null?null:n.item.totalComments),p(3),c("title",v(10,10,"ROLES_SETTINGS.EDIT.COMMENT")),p(3),N(n.item==null?null:n.item.totalComments))},dependencies:[kt,ce,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}@container sidebar (max-width: 767px){[_nghost-%COMP%]   a[_ngcontent-%COMP%]{display:none}}@media only screen and (max-width:767px){[_nghost-%COMP%]   a[_ngcontent-%COMP%]{display:none}}[_nghost-%COMP%]   a[_ngcontent-%COMP%]   div.ui.basic.button[_ngcontent-%COMP%]{box-shadow:none;display:flex;justify-content:space-between;margin:0;padding:0;width:auto}[_nghost-%COMP%]   a[_ngcontent-%COMP%]   div.ui.basic.button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin:0 .25rem 0 0!important}[_nghost-%COMP%]   a[_ngcontent-%COMP%]   div.ui.basic.button[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{color:#0006}[_nghost-%COMP%]   a.mobile[_ngcontent-%COMP%]{display:none}@container sidebar (max-width: 767px){[_nghost-%COMP%]   a.mobile[_ngcontent-%COMP%]{display:flex}}@media only screen and (max-width:767px){[_nghost-%COMP%]   a.mobile[_ngcontent-%COMP%]{display:flex}}"],changeDetection:0}));let o=s;return o})();var rp=[];var sp=(()=>{let s=class s{static forRoot(){return{ngModule:s,providers:rp}}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275mod",Mt({type:s})),r(s,"\u0275inj",Pt({imports:[Qt,yn]}));let o=s;return o})();var wg=o=>({disabled:o});function Og(o,s){if(o&1){let i=O();a(0,"button",2),f(1,"async"),h("click",function(t){m(i);let n=d();return _(n.execute(t))}),S(2,"i",3),l()}if(o&2){let i=d();c("ngClass",T(3,wg,v(1,1,i.notLiveAndNotStarted$)))}}var Tr=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"item");r(this,"liveMode$");r(this,"nowMode$");r(this,"position$");r(this,"baseItem$");r(this,"notLiveAndNotStarted$");r(this,"notLiveAndStarted$");r(this,"notNowInLiveMode$");r(this,"canEdit$");r(this,"canExecuteRx$");this.store=e,this.liveMode$=this.store.select(lt),this.nowMode$=this.store.select(Rt),this.position$=this.store.select(oi),this.baseItem$=this.store.select(Be),this.notNowInLiveMode$=ot(this.liveMode$,this.nowMode$,(t,n)=>({liveMode:t,nowMode:n})).pipe(U(t=>t.liveMode&&!t.nowMode.value)),this.notLiveAndStarted$=ot(this.nowMode$,this.position$,(t,n)=>({nowMode:t,position:n})).pipe(U(t=>!t.nowMode.value&&t.position.getTime()>0)),this.notLiveAndNotStarted$=ot(this.nowMode$,this.position$,(t,n)=>
1({nowMode:t,position:n})).pipe(U(t=>!t.nowMode.value&&!t.position.getTime()))}ngOnInit(){this.canEdit$=this.store.select(Pn(this.item)),this.canExecuteRx$=ot(this.canEdit$,this.nowMode$,this.notNowInLiveMode$,this.baseItem$,this.liveMode$,(e,t,n,u,g)=>e&&(n||!n&&(!t||!t.value))&&(u&&u.duration!==0||g))}get canExecute(){var e;return!((e=this.item)!=null&&e.isPlaced)}execute(e){this.item&&this.store.dispatch(jt(this.item)),e.stopPropagation()}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-place-unplaced-button"]],inputs:{item:"item"},standalone:!1,decls:6,vars:11,consts:[["fuiPopup","","popupInverted","true","popupPlacement","top right",3,"popupText"],["class","ui mini icon blue button place-item-button",3,"ngClass","click",4,"ngIf"],[1,"ui","mini","icon","blue","button","place-item-button",3,"click","ngClass"],[1,"fa","fa-map-pin","e2e-place-item-button"]],template:function(t,n){t&1&&(a(0,"div",0),f(1,"async"),f(2,"translate"),y(3,Og,3,5,"button",1),f(4,"async"),f(5,"async"),l()),t&2&&(c("popupText",at(v(2,5,v(1,3,n.notLiveAndNotStarted$)?"PLAYER_CONTROLS.PLACE_ITEM_STARTFIRST_TOOLTIP":"PLAYER_CONTROLS.PLACE_ITEM_TOOLTIP"))),p(3),c("ngIf",n.canExecute&&v(4,7,n.canExecuteRx$)&&!v(5,9,n.notLiveAndNotStarted$)))},dependencies:[X,k,Ie,ce,L],styles:[".ui.button[_ngcontent-%COMP%]{display:inline-block;height:2rem;margin:0 0 0 .5rem;padding:0;width:2rem}"],changeDetection:0}));let o=s;return o})();function Tg(o,s){if(o&1){let i=O();a(0,"button",1),f(1,"translate"),h("click",function(t){return m(i),d().execute(t),_(t.stopPropagation())}),S(2,"i",2),l()}o&2&&c("popupText",at(v(1,2,"PLAYER_CONTROLS.ACTIVATE_ITEM_TOOLTIP")))}var br=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"item");r(this,"showLiveMode");r(this,"liveMode$");this.store=e,this.liveMode$=this.store.select(lt)}execute(e){this.item&&this.store.dispatch(Ct(this.item)),e.stopPropagation()}get canExecute(){var e,t;return!((e=this.item)!=null&&e.isPlaced)&&!((t=this.item)!=null&&t.isActivated)}get canEdit$(){return this.store.select(Pn(this.item))}get canExecuteRx$(){return ot(this.canEdit$,this.liveMode$,(e,t)=>e&&t)}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-activate-unplaced-button"]],inputs:{item:"item",showLiveMode:"showLiveMode"},standalone:!1,decls:2,vars:3,consts:[["class","ui icon button mini red","fuiPopup","","popupInverted","true","popupPlacement","top right",3,"popupText","click",4,"ngIf"],["fuiPopup","","popupInverted","true","popupPlacement","top right",1,"ui","icon","button","mini","red",3,"click","popupText"],[1,"ui","play","icon"]],template:function(t,n){t&1&&(y(0,Tg,3,4,"button",0),f(1,"async")),t&2&&c("ngIf",n.canExecute&&v(1,1,n.canExecuteRx$)&&n.showLiveMode)},dependencies:[k,Ie,ce,L],styles:[".ui.button[_ngcontent-%COMP%]{display:inline-block;height:2rem;margin:0 0 0 .5rem;padding:0;width:2rem}"],changeDetection:0}));let o=s;return o})();function xg(o,s){if(o&1&&(a(0,"span",14),C(1),f(2,"amTimeAgo"),l()),o&2){let i=d(2);p(),N(v(2,1,i.item.dateCreated))}}function Eg(o,s){o&1&&(a(0,"span",15),C(1,"LIVE"),l())}function Pg(o,s){if(o&1){let i=O();a(0,"header",10),h("click",function(t){m(i);let n=d();return n.navigate(n.item,t),_(t.stopPropagation())})("auxclick",function(t){m(i);let n=d();return n.navigate(n.item,t),_(t.stopPropagation())}),Z("hzTrackHoverChange",function(t){m(i);let n=d();return K(n.hoverTitle,t)||(n.hoverTitle=t),_(t)}),S(1,"a",11),f(2,"filterLanguages"),f(3,"emptyTitle"),y(4,xg,3,3,"span",12)(5,Eg,2,0,"span",13),l()}if(o&2){let i=d();Q("hzTrackHover",i.hoverTitle),p(),c("innerHTML",v(3,6,v(2,4,i.title)),rt),p(3),c("ngIf",i.showDateCreated),p(),c("ngIf",i.isLiveEvent&&i.showLiveMode)}}function Mg(o,s){if(o&1&&(a(0,"span",14),C(1),f(2,"amTimeAgo"),l()),o&2){let i=d(2);p(),N(v(2,1,i.item.dateCreated))}}function zg(o,s){o&1&&(a(0,"span",15),C(1,"LIVE"),l())}function kg(o,s){if(o&1&&(a(0,"header"),S(1,"a",16),f(2,"filterLanguages"),f(3,"emptyTitle"),y(4,Mg,3,3,"span",12)(5,zg,2,0,"span",13),l()),o&2){let i=d();p(),c("innerHTML",v(3,5,v(2,3,i.title)),rt),p(3),c("ngIf",i.showDateCreated),p(),c("ngIf",i.isLiveEvent&&i.showLiveMode)}}function Vg(o,s){if(o&1&&S(0,"hz-privacy-overview-button",8),o&2){let i=d();c("item",i.item)}}function Dg(o,s){if(o&1){let i=O();a(0,"a",17),f(1,"translate"),h("click",function(t){m(i);let n=d();return n.navigate(n.item,t),_(t.stopPropagation())})("auxclick",function(t){m(i);let n=d();return n.navigate(n.item,t),_(t.stopPropagation())}),Z("hzTrackHoverChange",function(t){m(i);let n=d();return K(n.hoverOpen,t)||(n.hoverOpen=t),_(t)}),S(2,"i",18),l()}if(o&2){let i=d();Q("hzTrackHover",i.hoverOpen),J("title",v(1,2,"ACTIONS.NAVIGATE"))}}function Lg(o,s){if(o&1&&S(0,"hz-show-comments-button",8),o&2){let i=d();c("item",i.item)}}var Ir=(()=>{let s=class s{constructor(e){r(this,"store");r(this,"isHover",!1);r(this,"baseItem");r(this,"item");r(this,"maxScore",0);r(this,"viewState");r(this,"hoverIcon",!1);r(this,"hoverOpen",!1);r(this,"hoverAccessory",!1);r(this,"hoverTitle",!1);r(this,"languageChange",b(Si));r(this,"cdr",b(de));this.store=e,Ce(()=>{this.languageChange.version(),this.cdr.markForCheck()})}get title(){return this.item?this.item.isQuestion?this.item.displayName:this.item.title:""}get showDateCreated(){var e;return(e=this.item)==null?void 0:e.isQuestion}get showCommentsButton(){var e;return((e=this.item)==null?void 0:e.totalComments)&&!this.item.isHazu}get showLiveMode(){var e;return(e=this.baseItem)==null?void 0:e.showLiveMode}get showLiveModeBaseItem(){var e;return(e=this.baseItem)==null?void 0:e.showLiveMode}get isLiveEvent(){var e;return(e=this.item)==null?void 0:e.isLiveEvent}get isQuestion(){var e;return(e=this.item)==null?void 0:e.isQuestion}get actionIcon(){var e;return(e=this.item)!=null&&e.isHazu&&(this.hoverIcon||this.hoverTitle)||this.hoverOpen?Ge.NAVIGATE:this.isHover&&!this.hoverAccessory?Ge.JUMP_TO:Ge.NONE}get iconTitle(){var e;return(e=this.item)!=null&&e.isHazu?"ACTIONS.NAVIGATE":this.isHover?"ACTIONS.JUMP_TO":""}
1handleItemClick(e){if(this.item&&e.button===0){if(this.item.isHazu){let t=e.target;if(t.closest("header")||t.closest("icon-info")||t.closest("item-accessories"))return}this.store.dispatch(Qi.focusItemAction(Ii,this.item.id)),this.store.dispatch(Qi.focusItemAction(Tn,this.item.id))}}handleMouseOver(){this.isHover||(this.isHover=!0,this.item&&this.store.dispatch(Qi.hoverItemAction(Ii,this.item.id)))}handleMouseLeave(){this.isHover&&(this.isHover=!1,this.item&&this.store.dispatch(Qi.clearHoverItemAction(Ii,this.item.id)))}navigate(e,t){e.isHazu&&(t.button===1&&t.preventDefault(),this.store.dispatch(Ht({item:e,mouseEvent:t})))}};r(s,"\u0275fac",function(t){return new(t||s)(M(V))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-unplaced-overview-item"]],hostBindings:function(t,n){t&1&&h("click",function(g){return n.handleItemClick(g)})("auxclick",function(g){return n.handleItemClick(g)})("mouseenter",function(){return n.handleMouseOver()})("mouseleave",function(){return n.handleMouseLeave()})},inputs:{baseItem:"baseItem",item:"item",maxScore:"maxScore",viewState:"viewState"},standalone:!1,decls:14,vars:27,consts:[[3,"item","isQuestion","isHovered","isFocused"],[1,"image"],[3,"hzTrackHoverChange","click","auxclick","item","actionIcon","radius","hzTrackHover"],["style","cursor: pointer",3,"hzTrackHover","click","auxclick","hzTrackHoverChange",4,"ngIf"],[4,"ngIf"],["title","",3,"hzTrackHoverChange","hzTrackHover"],[3,"item",4,"ngIf"],["class","ui basic icon button open-button accessory",3,"hzTrackHover","click","auxclick","hzTrackHoverChange",4,"ngIf"],[3,"item"],[3,"item","showLiveMode"],[2,"cursor","pointer",3,"click","auxclick","hzTrackHoverChange","hzTrackHover"],[1,"title","hazu-title",3,"innerHTML"],["class","time-ago",4,"ngIf"],["class","ui red label mini live-label",4,"ngIf"],[1,"time-ago"],[1,"ui","red","label","mini","live-label"],[1,"title",3,"innerHTML"],[1,"ui","basic","icon","button","open-button","accessory",3,"click","auxclick","hzTrackHoverChange","hzTrackHover"],[1,"chevron","right","icon"]],template:function(t,n){t&1&&(a(0,"hz-item",0),f(1,"translate"),a(2,"icon-info",1)(3,"hz-icon-by-state",2),f(4,"iconRadius"),f(5,"translate"),Z("hzTrackHoverChange",function(g){return K(n.hoverIcon,g)||(n.hoverIcon=g),g}),h("click",function(g){return n.navigate(n.item,g),g.stopPropagation()})("auxclick",function(g){return n.navigate(n.item,g),g.stopPropagation()}),l()(),y(6,Pg,6,8,"header",3)(7,kg,6,7,"header",4),a(8,"item-accessories",5),Z("hzTrackHoverChange",function(g){return K(n.hoverAccessory,g)||(n.hoverAccessory=g),g}),y(9,Vg,1,1,"hz-privacy-overview-button",6)(10,Dg,3,4,"a",7)(11,Lg,1,1,"hz-show-comments-button",6),S(12,"hz-place-unplaced-button",8)(13,"hz-activate-unplaced-button",9),l()()),t&2&&(c("item",n.item)("isQuestion",n.isQuestion)("isHovered",n.isHover)("isFocused",n.viewState==null?null:n.viewState.isFocused),J("title",v(1,19,"ACTIONS.JUMP_TO")),p(3),c("item",n.item)("actionIcon",n.actionIcon)("radius",Hi(4,21,n.item,n.baseItem!=null&&n.baseItem.isUser?1.3:.9,n.maxScore)),Q("hzTrackHover",n.hoverIcon),J("title",v(5,25,n.iconTitle)),p(3),c("ngIf",n.item.isHazu),p(),c("ngIf",!n.item.isHazu),p(),Q("hzTrackHover",n.hoverAccessory),p(),c("ngIf",!n.item.isPublic),p(),c("ngIf",n.item.isHazu),p(),c("ngIf",n.showCommentsButton),p(),c("item",n.item),p(),c("item",n.item)("showLiveMode",n.showLiveModeBaseItem))},dependencies:[xn,k,Pa,$t,mt,Xi,Tr,br,L,ya,Ia,Yt,Je],styles:["[_nghost-%COMP%]     .item{margin-bottom:1px;margin-top:1px;padding:.72em .5em .5em 0!important}[_nghost-%COMP%]     .item .itemTop .ui.content{margin-left:.5em}[_nghost-%COMP%]   a[_ngcontent-%COMP%]{color:#000000de}[_nghost-%COMP%]   .title[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]   .title.hazu-title[_ngcontent-%COMP%]:hover{text-decoration:underline}[_nghost-%COMP%]   icon-info.image[_ngcontent-%COMP%]{display:flex;justify-content:center;text-align:center;width:3.2em}[_nghost-%COMP%]   .time-ago[_ngcontent-%COMP%]{color:#0006;display:inline-block;font-size:.875em!important}[_nghost-%COMP%]   .event-date[_ngcontent-%COMP%]{color:#0006;display:inline-block;font-size:.92rem!important}[_nghost-%COMP%]   .open-button[_ngcontent-%COMP%]{border:none;box-shadow:none;line-height:inherit;margin-left:.5rem;margin-right:0;min-width:1em;padding:0;vertical-align:middle}[_nghost-%COMP%]   .open-button[_ngcontent-%COMP%]:hover{background:transparent!important;box-shadow:none}[_nghost-%COMP%]   .open-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{height:100%}[_nghost-%COMP%]     .done-button{display:inline;font-size:.8rem;font-size:.9rem;height:2rem;margin:0 0 0 .5rem!important;padding:0;width:5rem}[_nghost-%COMP%]   hz-item[_ngcontent-%COMP%]     .ui.header{font-size:14px!important;font-weight:400!important;margin-top:0!important}[_nghost-%COMP%]   item-accessories[_ngcontent-%COMP%]{display:flex;align-items:center}[_nghost-%COMP%]   item-accessories[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{align-items:center;display:flex;padding:0!important}[_nghost-%COMP%]   hz-show-comments-button[_ngcontent-%COMP%]     a{margin-left:.5rem}"],changeDetection:0}));let o=s;return o}
1)();function Ng(o,s){if(o&1&&S(0,"hz-unplaced-overview-item",2),o&2){let i=s.$implicit,e=d().ngIf,t=d();c("baseItem",t.baseItem())("maxScore",t.maxScore())("item",i)("viewState",e[i.key])}}function Rg(o,s){if(o&1){let i=O();nn(0),a(1,"hz-list",1),f(2,"filterSearch"),f(3,"sliceItems"),h("onEndDrag",function(t){m(i);let n=d();return _(n.endDrag(t))})("onDropIntoHazu",function(t){m(i);let n=d();return _(n.dropIntoHazu(t))}),y(4,Ng,1,4,"ng-template"),l(),on()}if(o&2){let i=d();p(),c("isDragAndDrop",i.canDrag())("items",j(3,5,j(2,2,i.items(),i.filterParams()),i.countItemsLoad))}}var Bg=(()=>{let s=class s{constructor(){r(this,"store",b(V));r(this,"countItemsLoad",0);r(this,"playerState",this.store.selectSignal(bo));r(this,"baseItem",this.store.selectSignal(Be));r(this,"unplacedView",this.store.selectSignal(Vs));r(this,"items",this.store.selectSignal(Bt));r(this,"maxScore",this.store.selectSignal(zs));r(this,"filterParams",this.store.selectSignal(ta));r(this,"canDrag",this.store.selectSignal(Ma))}endDrag(e){this.store.dispatch(bn(e.previousIndex,e.currentIndex))}dropIntoHazu(e){this.store.dispatch(sa(e.sourceItem,e.targetHazu))}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-unplaced-overview-section"]],inputs:{countItemsLoad:"countItemsLoad"},standalone:!1,decls:1,vars:1,consts:[[4,"ngIf"],[3,"onEndDrag","onDropIntoHazu","isDragAndDrop","items"],[3,"baseItem","maxScore","item","viewState"]],template:function(t,n){t&1&&y(0,Rg,5,8,"ng-container",0),t&2&&c("ngIf",n.unplacedView())},dependencies:[k,ul,Ir,wa,xa],styles:["hz-list[_ngcontent-%COMP%]{display:block;margin:1em 0}"],changeDetection:0}));let o=s;return o})();var xr=F(gs,o=>o.liveClockTick);var ap=$e(Ke());var lp=(()=>{let s=class s{constructor(){r(this,"actions$",b(Zs));r(this,"store",b(V));r(this,"unplacedService",b(zo));r(this,"itemsService",b(ue));r(this,"startLoadOldUnplaced$",gt(()=>this.actions$.pipe(ft(ma),U(()=>ha()))));r(this,"onFocusItem$",gt(()=>this.actions$.pipe(ft(Wo),Xe(e=>e.name===Ii),Ut(()=>[this.store.select(Be),this.store.select(Cs),this.store.select(Bt),this.store.select(Yi)]),Xe(([e,t,n,u,g])=>!!e.itemId&&!!t&&n==="default"),Xe(([e,t,n,u,g])=>{let w=u.findIndex(D=>D.id===e.itemId),I=g.findIndex(D=>D.id===e.itemId);return!(w===-1&&I===-1)}),Ri(1),Et(([e])=>this.itemsService.scrollToItem(e.itemId)),U(([e])=>_s({focusedItem:e.itemId})))));r(this,"placeItemIntoTimeline$",gt(()=>this.actions$.pipe(ft(jt)).pipe(Ut(()=>[this.store.select(oi),this.store.select(xr)])).pipe(U(([e,t,n])=>this.unplacedService.placeItem(e.item,t,n))).pipe(Ro(e=>Lo(this.itemsService.updateItem(e)).pipe(U(()=>la(e)))))));r(this,"activateItemIntoTimeline$",gt(()=>this.actions$.pipe(ft(Ct)).pipe(Ut(()=>[this.store.select(xr),this.store.select(Yi)])).pipe(Ro(([e,t,n])=>Lo(this.itemsService.activateInTimeline(e.item,{position:t,itemsMissingDuration:this.getItemsMissingDuration((0,ap.filter)(n,u=>e.item.key!==u.key))})).pipe(Br(()=>[fa(),da(!0)]))))));r(this,"activateNextItemIntoTimeline$",gt(()=>this.actions$.pipe(ft(Ca)).pipe(Ut(()=>[this.store.select(Bt)])).pipe(Xe(([e,t])=>!!t.length)).pipe(U(([e,t])=>
1Ct(t[0])))));r(this,"endDrag$",gt(()=>this.actions$.pipe(ft(bn)).pipe(Ut(()=>[this.store.select(Bt)]),Xe(([e,t])=>!!t.length),U(([e,t])=>this.unplacedService.dragItems(t,e.newIndex,e.oldIndex))),{dispatch:!1}));r(this,"loadUnplacedAclRoles$",gt(()=>this.actions$.pipe(ft(_a),Ut(()=>this.store.select(Bt)),U(([e,t])=>{let n=t.map(g=>g.key);return Object.fromEntries(Object.entries(e.roles).filter(([g,w])=>n.includes(g)))}),U(e=>ga(e)))));r(this,"loadUnplacedToFocused$",gt(()=>this.actions$.pipe(ft(Wo),Ri(1),Ut(()=>[this.store.select(Ms),this.store.select(Bt),this.store.select(vs)]),U(([e,t,n,u])=>({focusedItemId:Object.keys(t).find(w=>t[w].isFocused),items:n,itemsCount:u})),Xe(e=>!!e.focusedItemId&&!!e.itemsCount&&e.items.findIndex(t=>t.id===e.focusedItemId)>e.itemsCount),U(e=>{let n=e.items.findIndex(u=>u.id===e.focusedItemId)+1;return ol(n)}))))}getItemsMissingDuration(e){if(qs(e))return[];let t=new Date().getTime();return e.filter(n=>n.duration===0).map(n=>{let u=n.clone();return u.duration=t-u.date,u.placed=!0,u})}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac}));let o=s;return o})();var Fg=(()=>{let s=class s{static forRoot(){return{ngModule:s,providers:Or}}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275mod",Mt({type:s})),r(s,"\u0275inj",Pt({providers:[Or],imports:[Js.forFeature([lp]),Qt,Ol,sp,yn]}));let o=s;return o})();var Er=class{constructor(s,i){r(this,"_document");r(this,"_textarea");this._document=i;let e=this._textarea=this._document.createElement("textarea"),t=e.style;t.position="fixed",t.top=t.opacity="0",t.left="-999em",e.setAttribute("aria-hidden","true"),e.value=s,e.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(e)}copy(){let s=this._textarea,i=!1;try{if(s){let e=this._document.activeElement;s.select(),s.setSelectionRange(0,s.value.length),i=this._document.execCommand("copy"),e&&e.focus()}}catch(e){}return i}destroy(){let s=this._textarea;s&&(s.remove(),this._textarea=void 0)}},pp=(()=>{let s=class s{constructor(){r(this,"_document",b(Fi))}copy(e){let t=this.beginCopy(e),n=t.copy();return t.destroy(),n}beginCopy(e){return new Er(e,this._document)}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275prov",ye({token:s,factory:s.\u0275fac,providedIn:"root"}));let o=s;return o})();var dp=(()=>{let s=class s{};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275mod",Mt({type:s})),r(s,"\u0275inj",Pt({}));let o=s;return o})();var mp=new Fo("shareButtonsConfig");var Vo=(function(o){return o.Anchor="anchor",o.Window="window",o})(Vo||{});function Pr(o){return o&&typeof o=="object"&&!Array.isArray(o)}function Mr(o,...s){if(!s.length)return o;let i=s.shift();if(Pr(o)&&Pr(i))for(let e in i)Pr(i[e])?(o[e]||Object.assign(o,{[e]:{}}),Mr(o[e],i[e])):Object.assign(o,{[e]:i[e]});return Mr(o,...s)}function Gg(o,s){if(o){if(/(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/.test(o))return o;console.warn("[ShareButtons]: Sharing link '".concat(o,"' is invalid!"))}return s}function Hg(){return new Ai(o=>document.defaultView.print())}function jg({params:o,data:s,clipboard:i,updater:e}){return It(null).pipe(Et(()=>{i.copy(o.url),e.next({icon:s.successIcon,text:s.successText,disabled:!0})}),Ri(s.delay),Et(()=>e.next({icon:s.icon,text:s.text,disabled:!1})),ri(1))}var ko={description:o=>o.description?"".concat(o.description,"\r\n").concat(o.url):o.url},Yg={facebook:{type:"facebook",text:"Facebook",ariaLabel:"Share on Facebook",icon:["fab","facebook-f"],color:"#4267B2",share:{desktop:"https://www.facebook.com/sharer/sharer.php?"},params:{url:"u"}},twitter:{type:"twitter",text:"Twitter",ariaLabel:"Share on Twitter",icon:["fab","twitter"],color:"#00acee",share:{desktop:"https://twitter.com/intent/tweet?"},params:{url:"url",description:"text",tags:"hashtags",via:"via"}},linkedin:{type:"linkedin",text:"LinkedIn",ariaLabel:"Share on LinkedIn",icon:["fab","linkedin-in"],color:"#006fa6",share:{desktop:"https://www.linkedin.com/shareArticle?"},params:{url:"url",title:"title",description:"summary"}},pinterest:{type:"pinterest",text:"Pinterest",ariaLabel:"Share on Pinterest",icon:["fab","pinterest-p"],color:"#BD091D",share:{desktop:"https://pinterest.com/pin/create/button/?"},params:{url:"url",description:"description",image:"media"}},reddit:{type:"reddit",text:"Reddit",ariaLabel:"Share on Reddit",icon:["fab","reddit-alien"],color:"#FF4006",share:{desktop:"https://www.reddit.com/submit?"},params:{url:"url",title:"title"}},tumblr:{type:"tumblr",text:"Tumblr",ariaLabel:"Share on Tumblr",icon:["fab","tumblr"],color:"#36465D",share:{desktop:"https://tumblr.com/widgets/share/tool?"},params:{url:"canonicalUrl",description:"caption",tags:"tags"}},mix:{type:"mix",text:"Mix",ariaLabel:"Share on Mix",icon:["fab","mix"],color:"#eb4924",share:{desktop:"https://mix.com/add?"},params:{url:"url"}},viber:{type:"viber",text:"Viber",ariaLabel:"Share on Viber",icon:["fab","viber"],color:"#665ca7",share:{android:"viber:
1//forward?",ios:"viber://forward?"},params:{description:"text"},paramsFunc:ko},vk:{type:"vk",text:"VKontakte",ariaLabel:"Share on VKontakte",icon:["fab","vk"],color:"#4C75A3",share:{desktop:"https://vk.com/share.php?"},params:{url:"url"}},telegram:{type:"telegram",text:"Telegram",ariaLabel:"Share on Telegram",icon:["fab","telegram-plane"],color:"#0088cc",share:{desktop:"https://t.me/share/url?"},params:{url:"url",description:"text"}},messenger:{type:"messenger",text:"Messenger",ariaLabel:"Share on Messenger",icon:["fab","facebook-messenger"],color:"#0080FF",share:{desktop:"https://www.facebook.com/dialog/send?",android:"fb-messenger://share/?",ios:"fb-messenger://share/?"},params:{url:"link",appId:"app_id",redirectUrl:"redirect_uri"}},whatsapp:{type:"whatsapp",text:"WhatsApp",ariaLabel:"Share on WhatsApp",icon:["fab","whatsapp"],color:"#25D366",share:{desktop:"https://api.whatsapp.com/send?",android:"whatsapp://send?",ios:"https://api.whatsapp.com/send?"},params:{url:"link",description:"text"},paramsFunc:ko},xing:{type:"xing",text:"Xing",ariaLabel:"Share on Xing",icon:["fab","xing"],color:"#006567",share:{desktop:"https://www.xing.com/spi/shares/new?"},params:{url:"url"}},line:{type:"line",text:"Line",ariaLabel:"Share on Line",icon:["fab","line"],color:"#00b900",share:{desktop:"https://social-plugins.line.me/lineit/share?"},params:{url:"url"}},sms:{type:"sms",text:"SMS",ariaLabel:"Share link via SMS",icon:["fas","sms"],color:"#20c16c",share:{desktop:"sms:?",ios:"sms:&"},params:{description:"body"},paramsFunc:ko},email:{type:"email",text:"Email",ariaLabel:"Share link via email",icon:["fas","envelope"],color:"#FF961C",share:{desktop:"mailto:?"},params:{title:"subject",description:"body"},paramsFunc:ko},print:{type:"print",text:"Print",ariaLabel:"Print page",icon:["fas","print"],color:"#765AA2",func:Hg},copy:{type:"copy",text:"Copy link",ariaLabel:"Copy link",icon:["fas","link"],color:"#607D8B",data:{text:"Copy link",icon:["fas","link"],successText:"Copied",successIcon:["fas","check"],delay:2e3},func:jg}},Wg=(()=>{let s=class s{constructor(e,t){this._document=t,this.config={sharerMethod:Vo.Anchor,sharerTarget:"_blank",windowObj:this._document.defaultView,windowFuncName:"open",prop:Yg,theme:"default",include:[],exclude:[],autoSetMeta:!0,windowWidth:800,windowHeight:500,moreButtonIcon:"ellipsis-h",lessButtonIcon:"minus",moreButtonAriaLabel:"Show more share buttons",lessButtonAriaLabel:"Show less share buttons"},this.config$=new Vr(this.config),e&&this.setConfig(e)}get prop(){return this.config.prop}get windowSize(){return"width=".concat(this.config.windowWidth,", height=").concat(this.config.windowHeight)}setConfig(e){this.config=Mr(this.config,e),this.config$.next(this.config)}addButton(e,t){this.setConfig({prop:{[e]:t}})}};s.\u0275fac=function(t){return new(t||s)(Te(mp,8),Te(Fi))},s.\u0275prov=ye({token:s,factory:s.\u0275fac,providedIn:"root"});let o=s;return o})(),_p=(()=>{let s=class s{constructor(e,t,n,u,g,w,I){this._meta=t,this._platform=n,this._clipboard=u,this._share=g,this._cd=w,this._document=I,this._destroyed=new Do,this._updater=new Do,this.autoSetMeta=this._share.config.autoSetMeta,this.url=this._share.config.url,this.title=this._share.config.title,this.description=this._share.config.description,this.image=this._share.config.image,this.tags=this._share.config.tags,this.redirectUrl=this._share.config.redirectUrl,this.opened=new E,this.closed=new E,this._el=e.nativeElement}share(){if(this._platform.isBrowser&&this.shareButton){let e=this.autoSetMeta?this.getParamsFromMetaTags():this.getParamsFromInputs();(this.shareButton.share?this.open(e):this.shareButton.func({params:e,data:this.shareButton.data,clipboard:this._clipboard,updater:this._updater})).pipe(Bo(this._destroyed)).subscribe()}else console.warn("".concat(this.text," button is not compatible on this Platform"))}ngOnInit(){this._updater.pipe(Et(e=>{this.icon=e.icon,this.text=e.text,this._el.style.pointerEvents=e.disabled?"none":"auto",this._cd.markForCheck()}),Bo(this._destroyed)).subscribe()}ngOnChanges(e){this._platform.isBrowser&&(this._shareButtonChanged(e.shareButtonName)&&this._createShareButton(),this._urlChanged(e.url)&&(this.url=Gg(this.autoSetMeta?this.url||this._getMetaTagContent("og:url"):this.url,this._document.defaultView.location.href)))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createShareButton(){let e=this._share.config.prop[this.shareButtonName];e?(this.shareButton=e,this._el.classList.remove("sb-".concat(this._buttonClass)),this._el.classList.add("sb-".concat(this.shareButtonName)),this._el.style.setProperty("--button-color",this.shareButton.color),this._buttonClass=this.shareButtonName,this.color=this.shareButton.color,this.text=this.shareButton.text,this.icon=this.shareButton.icon,this._el.setAttribute("aria-label",e.ariaLabel)):console.error("[ShareButtons]: The share button '".concat(this.shareButtonName,"' does not exist!"))}_getMetaTagContent(e){let t=this._meta.getTag('property="'.concat(e,'"'));if(t)return t.getAttribute("content");let n=this._meta.getTag('name="'.concat(e,'"'));if(n)return n.getAttribute("content")}_shareButtonChanged(e){return e&&(e.firstChange||e.previousValue!==e.currentValue)}_urlChanged(e){return!this.url||e&&e.previousValue!==e.currentValue}getParamsFromMetaTags(){return{url:this.url,title:this.title||this._getMetaTagContent("og:title"),description:this.description||this._getMetaTagContent("og:description"),image:this.image||this._getMetaTagContent("og:image"),via:this._share.config.twitterAccount,tags:this.tags,appId:this._share.config.appId||this._getMetaTagContent("fb:app_id"),redirectUrl:this.redirectUrl||this.url}}
1getParamsFromInputs(){return{url:this.url,title:this.title,description:this.description,image:this.image,tags:this.tags,via:this._share.config.twitterAccount,appId:this._share.config.appId,redirectUrl:this.redirectUrl||this.url}}open(e){let t;if(this._platform.IOS&&this.shareButton.share.ios?t=this.shareButton.share.ios:this._platform.ANDROID&&this.shareButton.share.android?t=this.shareButton.share.android:t=this.shareButton.share.desktop,t){this._finalUrl=t+this._serializeParams(e),this._share.config.debug&&console.log("[DEBUG SHARE BUTTON]: ",this._finalUrl);let n=this.shareButton.method||this._share.config.sharerMethod,u=this.shareButton.target||this._share.config.sharerTarget;switch(n){case Vo.Anchor:let g=this._document.createElement("a");g.setAttribute("target",u),g.setAttribute("rel","noopener noreferrer"),g.href=this._finalUrl,g.click(),g.remove();break;case Vo.Window:let w=this._share.config.windowObj[this._share.config.windowFuncName],I=w(this._finalUrl,u,this._share.windowSize);if(this._share.config.windowObj.opener=null,I)return new Ai(D=>{let Y=this._document.defaultView.setInterval(()=>{I.closed&&(this._document.defaultView.clearInterval(Y),this.closed.emit(this.shareButtonName),D.next(),D.complete())},200)});break}this.opened.emit(this.shareButtonName)}return Dr}_serializeParams(e){return Object.entries(this.shareButton.params).map(([t,n])=>{let u=this.shareButton.paramsFunc?this.shareButton.paramsFunc[t]:null;if(e[t]||u){let g=u?u(e):e[t];return"".concat(n,"=").concat(encodeURIComponent(g))}return""}).filter(t=>t!=="").join("&")}};s.\u0275fac=function(t){return new(t||s)(M(Jt),M(ts),M(Zn),M(pp),M(Wg),M(de),M(Fi))},s.\u0275dir=Xt({type:s,selectors:[["","shareButton",""]],hostBindings:function(t,n){t&1&&h("click",function(){return n.share()})},inputs:{shareButtonName:[0,"shareButton","shareButtonName"],autoSetMeta:"autoSetMeta",url:"url",title:"title",description:"description",image:"image",tags:"tags",redirectUrl:"redirectUrl"},outputs:{opened:"opened",closed:"closed"},exportAs:["shareButton"],standalone:!1,features:[be]});let o=s;return o})(),NE=(()=>{let s=class s{static withConfig(e){return{ngModule:s,providers:[{provide:mp,useValue:e}]}}};s.\u0275fac=function(t){return new(t||s)},s.\u0275mod=Mt({type:s}),s.\u0275inj=Pt({imports:[pl,dp]});let o=s;return o})();var up=(()=>{let s=class s{constructor(){r(this,"title");r(this,"description");r(this,"url");r(this,"position","left top");r(this,"isOpened",!1)}showMenu(e){e&&e.stopPropagation(),this.isOpened=!this.isOpened}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-share-options"]],inputs:{title:"title",description:"description",url:"url",position:"position"},standalone:!1,decls:34,vars:53,consts:[["hzTab","",1,"ui","floating","labeled","icon",3,"click","title"],[1,"toolbaricon","icon","share","alternate","down","grey"],["autoClose","outsideClick",3,"isOpenChange","click","position","isOpen"],["shareButton","facebook","hzTab","",1,"ui","label","item",3,"description","url","title"],[1,"facebook","icon"],["shareButton","twitter","hzTab","",1,"ui","label","item",3,"description","url","title"],[1,"twitter","icon"],["shareButton","linkedin","hzTab","",1,"ui","label","item",3,"description","url","title"],[1,"linkedin","icon"],["shareButton","whatsapp",1,"ui","label","item",3,"description","url","title"],[1,"whatsapp","icon"],["shareButton","email","hzTab","",1,"ui","label","item",3,"description","url","title"],[1,"envelope","icon"],["shareButton","copy",1,"ui","label","item",3,"description","url","title"],[1,"copy","icon"]],template:function(t,n){t&1&&(a(0,"div",0),f(1,"translate"),h("click",function(g){return g.stopPropagation(),n.showMenu(g)}),S(2,"i",1),l(),a(3,"hz-dropdown",2),Z("isOpenChange",function(g){return K(n.isOpened,g)||(n.isOpened=g),g}),h("click",function(g){return g.stopPropagation()}),a(4,"div",3),f(5,"translate"),S(6,"i",4),C(7),f(8,"translate"),l(),a(9,"div",5),f(10,"translate"),S(11,"i",6),C(12),f(13,"translate"),l(),a(14,"div",7),f(15,"translate"),S(16,"i",8),C(17),f(18,"translate"),l(),a(19,"div",9),f(20,"translate"),S(21,"i",10),C(22),f(23,"translate"),l(),a(24,"div",11),f(25,"translate"),S(26,"i",12),C(27),f(28,"translate"),l(),a(29,"div",13),f(30,"translate"),S(31,"i",14),C(32),f(33,"translate"),l()()),t&2&&(c("title",v(1,27,"LAYOUT_SETTINGS.SHARE_BUTTONS")),p(3),c("position",n.position),Q("isOpen",n.isOpened),p(),c("description",n.description)("url",n.url)("title",v(5,29,"SHARING.VIA_FACEBOOK")),p(3),z(" ",v(8,31,"SHARING.VIA_FACEBOOK")," "),p(2),c("description",n.description)("url",n.url)("title",v(10,33,"SHARING.VIA_TWITTER")),p(3),z(" ",v(13,35,"SHARING.VIA_TWITTER")," "),p(2),c("description",n.description)("url",n.url)("title",v(15,37,"SHARING.VIA_LINKED_IN")),p(3),z(" ",v(18,39,"SHARING.VIA_LINKED_IN")," "),p(2),c("description",n.description)("url",n.url)("title",v(20,41,"SHARING.VIA_WHATSAPP")),p(3),z(" ",v(23,43,"SHARING.VIA_WHATSAPP")," "),p(2),c("description",n.description)("url",n.url)("title",v(25,45,"SHARING.VIA_EMAIL")),p(3),z(" ",v(28,47,"SHARING.VIA_EMAIL")," "),p(2),c("description",n.description)("url",n.url)("title",v(30,49,"SHARING.VIA_LINK")),p(3),z(" ",v(33,51,"SHARING.VIA_LINK")," "))},dependencies:[ke,Ti,oe,_p,L],styles:["[_nghost-%COMP%]{cursor:pointer;display:flex}hz-dropdown[_ngcontent-%COMP%]   .ui.label.item[_ngcontent-%COMP%]{background-color:transparent;margin:0}hz-dropdown[_ngcontent-%COMP%]   .ui.label.item[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin-right:.3rem;min-width:1.5rem}hz-dropdown[_ngcontent-%COMP%]   .ui.label.item[_ngcontent-%COMP%]:hover{background:#00000008}"],changeDetection:0}));let o=s;return o}
1)();function Kg(o,s){if(o&1&&(a(0,"a",5),C(1),l()),o&2){let i=d();p(),N(i.label)}}function qg(o,s){if(o&1&&(a(0,"div",6),S(1,"i",7),l()),o&2){let i=d();J("data-tooltip",i.item.authorLocation)}}function Zg(o,s){if(o&1){let i=O();a(0,"hz-inline-edit-content",8),h("hide",function(){m(i);let t=d();return _(t.hideCurrentPopup())})("ngChange",function(t){m(i);let n=d();return _(n.onLocationChange(t))}),l()}if(o&2){let i=d();c("isFocused",!i.item.authorLocation)("value",i.item.authorLocation)}}var hp=(()=>{let s=class s{constructor(e){r(this,"geoService");r(this,"item");r(this,"label","");r(this,"itemChange",new E);r(this,"isPopupShown",!1);r(this,"position","pointing left top");this.geoService=e}showPopup(){this.isPopupShown=!0}onLocationChange(e){return B(this,null,function*(){let t=this.item.clone();t.authorLocation=e;try{t.authorGeocodeLocation=yield xt(this.geoService.getGeocodeAddress(e))}catch(n){console.error(n)}this.itemChange.emit(t)})}hideCurrentPopup(){this.isPopupShown=!1}};r(s,"\u0275fac",function(t){return new(t||s)(M(Mi))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-location-button"]],inputs:{item:"item",label:"label"},outputs:{itemChange:"itemChange"},standalone:!1,decls:7,vars:5,consts:[[3,"isOpenChange","show","isOpen","position"],["href","javascript:;",4,"ngIf"],["data-inverted","",4,"ngIf"],[1,"ui","basic","segment"],["type","location",3,"isFocused","value","hide","ngChange",4,"ngIf"],["href","javascript:;"],["data-inverted",""],[1,"marker","icon"],["type","location",3,"hide","ngChange","isFocused","value"]],template:function(t,n){t&1&&(a(0,"hz-popup",0),Z("isOpenChange",function(g){return K(n.isPopupShown,g)||(n.isPopupShown=g),g}),h("show",function(){return n.showPopup()}),a(1,"hz-header"),y(2,Kg,2,1,"a",1)(3,qg,2,1,"div",2),l(),a(4,"hz-content")(5,"div",3),y(6,Zg,1,2,"hz-inline-edit-content",4),l()()()),t&2&&(Q("isOpen",n.isPopupShown),c("position",n.position),p(2),c("ngIf",!n.item.authorLocation),p(),c("ngIf",n.item.authorLocation),p(3),c("ngIf",n.isPopupShown))},dependencies:[k,Ze,Jn],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu{padding:0}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     hz-header a{color:#fff}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     hz-header a{color:#fff}}[_nghost-%COMP%]   i[_ngcontent-%COMP%]{color:#767676}"],changeDetection:0}));let o=s;return o})();function Xg(o,s){o&1&&S(0,"i",4)}function ef(o,s){o&1&&S(0,"i",5)}function tf(o,s){if(o&1){let i=O();a(0,"div",1),h("click",function(t){return m(i),_(t.stopPropagation())}),y(1,Xg,1,0,"i",2)(2,ef,1,0,"i",3),l()}if(o&2){let i=d();J("data-tooltip",i.getCommaSeparatedTags())("data-position","top right"),p(),c("ngIf",i.tags.length>1),p(),c("ngIf",i.tags.length===1)}}var gp=(()=>{let s=class s{constructor(){r(this,"tags",[])}getCommaSeparatedTags(){return this.tags?typeof this.tags=="string"?this.tags:Array.isArray(this.tags)?this.tags.sort().join(", "):"":""}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-tags"]],inputs:{tags:"tags"},features:[zt([Tt])],decls:1,vars:1,consts:[["data-inverted","","class","item-tags accessory","hzTab","",3,"click",4,"ngIf"],["data-inverted","","hzTab","",1,"item-tags","accessory",3,"click"],["class","tags grey icon",4,"ngIf"],["class","tag grey icon",4,"ngIf"],[1,"tags","grey","icon"],[1,"tag","grey","icon"]],template:function(t,n){t&1&&y(0,tf,3,4,"div",0),t&2&&c("ngIf",n.tags.length>0)},dependencies:[li,k,vi,yi],styles:['[data-position="top right"][data-tooltip][_ngcontent-%COMP%]:before{right:.5em}'],changeDetection:0}));let o=s;return o})();function of(o,s){if(o&1&&(a(0,"a",6),f(1,"translate"),S(2,"i",7),l()),o&2){let i=d();c("href",i.getMapsUrl(),et)("title",v(1,2,"ITEM_OPTIONS.OPEN_MAPS"))}}var fp=(()=>{let s=class s{constructor(e){r(this,"cdRef");r(this,"location","");r(this,"geoCode","");r(this,"timeoutId");r(this,"isOpened",!1);this.cdRef=e}getGeoCodeString(){return typeof this.geoCode=="string"?this.geoCode:this.geoCode.lat===0&&this.geoCode.lng===0?"":"".concat(this.geoCode.lat,",").concat(this.geoCode.lng)}getEncodedLocation(){return encodeURIComponent(this.location)}getMapsUrl(){let e=this.getEncodedLocation();return e?this.isIOs()?"maps://www.google.com/maps/search/?api=1&query=".concat(e):"https://www.google.com/maps/search/?api=1&query=".concat(e):""}isIOs(){return navigator.platform.indexOf("iPhone")!==-1||navigator.platform.indexOf("iPad")!==-1||navigator.platform.indexOf("iPod")!==-1||navigator.platform.indexOf("MacIntel")!==-1&&navigator.maxTouchPoints>1}hoverIn(){this.isOpened=!0,this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0)}hoverOut(){this.timeoutId=setTimeout(()=>{this.isOpened=!1,this.cdRef.detectChanges(),this.timeoutId=void 0},200)}};r(s,"\u0275fac",function(t){return new(t||s)(M(de))}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-location-accessory"]],hostBindings:function(t,n){t&1&&h("mouseenter",function(){return n.hoverIn()})("mouseleave",function(){return n.hoverOut()})},inputs:{location:"location",geoCode:"geoCode"},standalone:!1,decls:11,vars:6,consts:[["position","pointing right bottom","menuTransition","slide up","menuClass","inverted",3,"isOpenChange","isOpen"],[3,"click"],["hzTab","",1,"ui","icon",3,"title"],[1,"ui","marker","grey","icon"],[1,"content"],["target","_blank","class","open-maps-link",3,"href","title",4,"ngIf"],["target","_blank",1,"open-maps-link",3,"href","title"],[1,"icon","map","marked","alternate"]],template:function(t,n){t&1&&(a(0,"hz-popup",0),Z("isOpenChange",function(g){return K(n.isOpened,g)||(n.isOpened=g),g}),a(1,"hz-header")(2,"span",1),h("click",function(g){return g.stopPropagation()}),a(3,"span",2),f(4,"translate"),S(5,"i",3),l()()(),a(6,"hz-content")(7,"div",4)(8,"span"),C(9),l(),y(10,of,3,4,"a",5),l()()()),t&2&&(Q("isOpen",n.isOpened),p(3),c("title",v(4,4,"ITEM_OPTIONS.LOCATION")),p(6),N(n.location),p(),c("ngIf",n.getGeoCodeString()))},dependencies:[k,Ze,oe,L],styles:["[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]   hz-header[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{justify-content:center;display:flex}[_nghost-%COMP%]{color:#fff!important}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]{display:flex}[_nghost-%COMP%]   .content[_ngcontent-%COMP%]{text-align:center}[_nghost-%COMP%]   .open-maps-link[_ngcontent-%COMP%]{padding-left:1em;color:#fff}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .menu{margin-bottom:.5em!important;right:-.5em!important}[_nghost-%COMP%]   hz-popup[_ngcontent-%COMP%]     .text{display:flex}"],changeDetection:0}));let o=s;return o}
1)();var sf=o=>({showPopup:o}),af=o=>[o],Cp=(o,s)=>({showPopup:o,"nested-event-btn":s}),lf=()=>["location","link","privacy","removeFromTimeline","unplace","delete","drillDown","dateSettings","moveHazu","copyHazu","duplicate","calibrate","changeType","triggerManualNotification","openInGenius","addToMyHazus"],cf=()=>["location","link","privacy","interaction","form-item","removeFromTimeline","unplace","delete","drillDown","dateSettings","moveHazu","copyHazu","duplicate","calibrate","changeType","triggerManualNotification","openInGenius","addToMyHazus"],pf=()=>["location","link","privacy","delete","drillDown","dateSettings","moveHazu","copyHazu","duplicate","changeType","triggerManualNotification","openInGenius","addToMyHazus"],df=()=>["location","link","privacy","interaction","form-item","delete","drillDown","dateSettings","moveHazu","copyHazu","duplicate","changeType","triggerManualNotification","openInGenius","addToMyHazus"],mf=()=>[],_f=o=>({"visible-settings":o}),uf=o=>({disabled:o});function hf(o,s){if(o&1){let i=O();a(0,"a",23),f(1,"translate"),h("click",function(t){return m(i),d().showMobileAccessory.emit(),_(t.stopPropagation())}),S(2,"i",24),l()}o&2&&J("title",v(1,1,"ACTIONS.NAVIGATE"))}function gf(o,s){if(o&1){let i=O();a(0,"hz-item-icon-edit-button",25),h("click",function(t){return m(i),_(t.stopPropagation())})("onHover",function(t){m(i);let n=d();return _(n.hoverEditIcon=t)}),Z("hzTrackHoverChange",function(t){m(i);let n=d();return K(n.hoverEditIconPopup,t)||(n.hoverEditIconPopup=t),_(t)}),h("itemChange",function(t){m(i);let n=d();return _(n.itemChange.emit(t))}),l()}if(o&2){let i=d();c("newItemMode",i.newItemMode)("ngClass",T(5,sf,i.showEditPopup)),Q("hzTrackHover",i.hoverEditIconPopup),c("items",T(7,af,i.item))("isSidebar",i.isSidebar)}}function ff(o,s){if(o&1){let i=O();a(0,"hz-item-options",26),h("hoverOption",function(t){m(i);let n=d();return _(n.hoverOption.emit(t))})("click",function(t){return m(i),_(t.stopPropagation())})("showPopup",function(t){m(i);let n=d();return _(n.showPopup(t))}),l()}if(o&2){let i=d();c("item",i.item)("itemOptionsState",i.itemOptionsState())("baseItem",i.baseItem)("isItemAccessory",i.isItemAccessory)("ngClass",Ne(7,Cp,i.showOptionsPopup,i.item.isHazu))("options",i.item.isHazu?ge(10,lf):ge(11,cf))("canShowItemResetOption",i.canShowItemResetOption)}}function Cf(o,s){if(o&1){let i=O();a(0,"hz-item-options",27),h("hoverOption",function(t){m(i);let n=d();return _(n.hoverOption.emit(t))})("showPopup",function(t){m(i);let n=d();return _(n.showPopup(t))})("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d();c("item",i.item)("itemOptionsState",i.itemOptionsState())("isItemAccessory",i.isItemAccessory)("ngClass",Ne(6,Cp,i.showOptionsPopup,i.item.isHazu))("baseItem",i.baseItem)("options",i.item.isHazu?ge(9,pf):ge(10,df))}}function vf(o,s){o&1&&(a(0,"div",28),C(1," LIVE\n"),l())}function Sf(o,s){if(o&1&&(a(0,"div")(1,"strong"),C(2),f(3,"localizedDate"),f(4,"localizedDate"),l(),C(5),f(6,"localizedDate"),l()),o&2){let i=d(2);p(2),si("",j(3,3,i.showDate(),"E")," ",j(4,6,i.showDate(),"mediumDate")),p(3),z(" ",j(6,9,i.showDate(),"shortTime")," ")}}function wf(o,s){if(o&1&&(a(0,"div",32),f(1,"localizedDate"),f(2,"localizedDate"),f(3,"localizedDate"),S(4,"i",33),l()),o&2){let i=d(2);J("data-tooltip",j(1,2,i.showDate(),"E")+" "+j(2,5,i.showDate(),"mediumDate")+" "+j(3,8,i.showDate(),"shortTime"))("data-position","top center")}}function Of(o,s){if(o&1&&(a(0,"div",29),y(1,Sf,7,12,"div",30)(2,wf,5,11,"div",31),l()),o&2){let i=d();p(),c("ngIf",!i.isBoardsLayout()),p(),c("ngIf",i.isBoardsLayout())}}function yf(o,s){if(o&1&&(a(0,"strong"),C(1),l()),o&2){let i=d(2);p(),N(i.item.displayName)}}function Tf(o,s){if(o&1&&(a(0,"div",35),f(1,"translate"),S(2,"i",36),l()),o&2){let i=d(2);J("data-tooltip",v(1,2,"LAYOUT_SETTINGS.SHOW_AUTHOR")+": "+i.item.displayName)("data-position","top center")}}function bf(o,s){if(o&1&&(a(0,"div",29),y(1,yf,2,1,"strong",30)(2,Tf,3,4,"div",34),l()),o&2){let i=d();p(),c("ngIf",!i.isBoardsLayout()),p(),c("ngIf",i.isBoardsLayout()&&i.item.displayName)}}function If(o,s){if(o&1&&S(0,"hz-assigned",37),o&2){let i=d();c("item",i.item)("aclUsers",i.aclUsers())("user",i.identity())}}function xf(o,s){if(o&1){let i=O();a(0,"hz-privacy-button",38),h("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d();c("baseItem",i.baseItem)("canEdit",i.permission==null?null:i.permission.edit)("item",i.item)}}function Ef(o,s){if(o&1){let i=O();a(0,"hz-privacy-button",39),h("click",function(t){return m(i),_(t.stopPropagation())})("itemChange",function(t){m(i);let n=d();return _(n.itemChange.emit(t))}),l()}if(o&2){let i=d();c("baseItem",i.baseItem)("canEdit",!0)("newItemMode",!0)("item",i.item)}}function Pf(o,s){if(o&1){let i=O();a(0,"hz-location-accessory",40),h("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d();c("location",i.item.authorLocation)("geoCode",i.item.authorGeocodeLocation)}}function Mf(o,s){var i;if(o&1&&S(0,"hz-tags",41),o&2){let e=d();c("tags",(i=e.item.snapshot.tags)!=null?i:ge(1,mf))}}function zf(o,s){if(o&1&&S(0,"hz-show-comments-button",42),o&2){let i=d();c("item",i.item)}}function kf(o,s){if(o&1){let i=O();a(0,"hz-vote-button",43),h("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i,e=d();c("item",e.item)("isShowResults",e.isShowResults)("voteOptions",e.voteOptions())("isRoot",e.isRoot())("permission",(i=e.votePermission())==null?null:i.create)}}function Vf(o,s){if(o&1&&S(0,"hz-vote-individual",44),o&2){let i,e=d();c("item",e.item)("voteOptions",e.voteOptions())("isShowResults",e.isShowResults)("isRoot",e.isRoot())("permission",(i=e.votePermission())==null?null:i.create)}}function Df(o,s){if(o&1){let i=O();a(0,"hz-date-button",45),f(1,"translate"),f(2,"localizedDate"),h("click",function(t){return m(i),_(t.stopPropagation())})("itemChange",function(t){m(i);let n=d();return n.itemChange.emit(t),_(n.dateChanged.emit())}),l()}if(o&2){let i=d();c("canEdit",!0)("newItemMode",!0)("label",i.getNewModeDatButtonLabel(v(1,5,"DATE.ADD"),j(2,7,i.item.date,"mediumDate")))("itemOptions",i.itemOptionsState())("item",i.item)}}function Lf(o,s){if(o&1){let i=O();a(0,"hz-location-button",46),f(1,"translate"),h("click",function(t){return m(i),_(t.stopPropagation())})("itemChange",function(t){m(i);let n=d();return _(n.itemChange.emit(t))}),l()}if(o&2){let i=d();c("label",v(1,2,"ITEM_OPTIONS.ADD_LOCATION"))("item",i.item)}}function Af(o,s){if(o&1&&(S(0,"hz-share-options",47),f(1,"filterLanguages"),f(2,"htmlToPlaintext"),f(3,"filterLanguages"),f(4,"htmlToPlaintext")),o&2){let i=d();c("title",v(2,5,v(1,3,i.item.title)))("description",v(4,9,v(3,7,i.item.descriptionHTML)))("url",i.itemUrl)}}function Nf(o,s){if(o&1){let i=O();a(0,"a",48),f(1,"translate"),h("hzTrackHoverChange",function(t){m(i);let n=d();return _(n.hoverOpen.emit(t))})("click",function(t){m(i);let n=d();return _(n.navigateToEvent(t))}),S(2,"i",49),l()}if(o&2){let i=d();c("ngClass",T(5,_f,i.permission==null?null:i.permission.edit))("href",i.openEventUrl,et),J("title",v(1,3,"ACTIONS.NAVIGATE"))}}function Rf(o,s){if(o&1){let i=O();a(0,"div",50),f(1,"translate"),a(2,"button",51),f(3,"translate"),h("click",function(t){return m(i),d().dispatchPlaceItem(),_(t.stopPropagation())})("mouseover",function(t){return m(i),d().dispatchHoverOnPlaceItem(!0),_(t.stopPropagation())})("mouseout",function(t){return m(i),d().dispatchHoverOnPlaceItem(!1),_(t.stopPropagation())}
1),S(4,"i",52),l()()}if(o&2){let i=d();J("data-tooltip",v(1,4,i.grahpPositionNotAtInit?"PLAYER_CONTROLS.PLACE_ITEM_TOOLTIP":"PLAYER_CONTROLS.PLACE_ITEM_STARTFIRST_TOOLTIP"))("data-position","top right"),p(2),c("ngClass",T(8,uf,!i.grahpPositionNotAtInit))("title",v(3,6,"PLAYER_CONTROLS.PLACE_ITEM_TOOLTIP"))}}function Bf(o,s){if(o&1){let i=O();a(0,"button",53),f(1,"translate"),h("click",function(t){return m(i),d().dispatchActivateItem(),_(t.stopPropagation())}),S(2,"i",54),l()}o&2&&J("data-tooltip",v(1,2,"PLAYER_CONTROLS.ACTIVATE_ITEM_TOOLTIP"))("data-position","top right")}function Ff(o,s){if(o&1){let i=O();a(0,"a",55),f(1,"translate"),h("click",function(t){return m(i),d().dispatchDoneItem(),_(t.stopPropagation())}),S(2,"i",56),C(3," COMMON.ACTION_DONE\n"),l()}o&2&&J("data-tooltip",v(1,2,"PLAYER_CONTROLS.MARK_END_TOOLTIP"))("data-position","top right")}function Uf(o,s){if(o&1){let i=O();a(0,"button",57),h("click",function(t){m(i);let n=d();return t.stopPropagation(),_(n.cancelClick.emit(n.fullscreenMode,!1))}),C(1," COMMON.ACTION_CANCEL\n"),l()}if(o&2){let i=d();G("disabled",i.isDisabled)}}function Gf(o,s){if(o&1){let i=O();a(0,"button",58),h("click",function(t){m(i);let n=d();return t.stopPropagation(),_(n.saveClick.emit(n.fullscreenMode))}),C(1),l()}if(o&2){let i=d();G("disabled",i.isDisabled),p(),z(" ",i.baseItem!=null&&i.baseItem.messengerMode&&i.newItemMode?"COMMON.ACTION_SEND":"COMMON.ACTION_SAVE","\n")}}var vp=(()=>{let s=class s{constructor(){r(this,"item");r(this,"baseItem");r(this,"isEditMode");r(this,"large");r(this,"isDisabled",!1);r(this,"isSidebar",!1);r(this,"permission");r(this,"showOptionsPopup",!1);r(this,"newItemMode",!1);r(this,"hidePlaceItemButton");r(this,"grahpPositionNotAtInit");r(this,"canShowItemResetOption");r(this,"hideAssignee",!1);r(this,"hideTags",!1);r(this,"hideColorpicker",!1);r(this,"hideLocation",!1);r(this,"hideDate",!1);r(this,"hideHazu",!1);r(this,"showCommentsButton",!1);r(this,"isItemAccessory",!0);r(this,"cancelClick",new E);r(this,"editClick",new E);r(this,"saveClick",new E);r(this,"showOptionsPopupChange",new E);r(this,"itemChange",new E);r(this,"hoverOpen",new E);r(this,"hoverOption",new E);r(this,"showMobileAccessory",new E);r(this,"dateChanged",new E);r(this,"itemOptionsChild");r(this,"store",b(V));r(this,"routerService",b(pt));r(this,"identity",this.store.selectSignal(un));r(this,"aclUsers",this.store.selectSignal(Gt));r(this,"itemOptionsState",this.store.selectSignal(me));r(this,"userRole",this.store.selectSignal(qe));r(this,"isRoot",this.store.selectSignal(ct));r(this,"voteRole",this.store.selectSignal(At));r(this,"votesViewType",this.store.selectSignal(ui));r(this,"voteOptions",this.store.selectSignal(Lt));r(this,"isMobile",this.store.selectSignal(Nt));r(this,"canHover",this.store.selectSignal(hi));r(this,"isBoardsLayout",this.store.selectSignal(Ss));r(this,"liveMode",this.store.selectSignal(lt));r(this,"nowMode",this.store.selectSignal(Rt));r(this,"votePermission",this.store.selectSignal(En(di.vote)));r(this,"itemsService",b(ue));r(this,"injector",b(Bi));r(this,"canEditIcon");r(this,"showColorpickerSignal")}ngOnInit(){this.canEditIcon=te(this.store.select(Mn(this.item)),{initialValue:!1,injector:this.injector}),this.showColorpickerSignal=re(()=>{let e=this.canEditIcon();return this.showColorpickerCondition&&e||this.isNewMessengerItem})}isDate(e){let t=new Date(e);return!isNaN(t.getTime())}showPopup(e){this.showOptionsPopup=e,this.showOptionsPopupChange.emit(e)}navigateToEvent(e){e.stopPropagation(),e.preventDefault(),this.store.dispatch(Ht({item:this.item,mouseEvent:e}))}get isFutureEvent(){var e;return!!((e=this.baseItem)!=null&&e.isFutureEvent)}get isNestedEvent(){return!this.large&&this.item.isHazu}get showLiveMode(){return this.item.showLiveMode}get showLiveModeBaseItem(){var e;return(e=this.baseItem)==null?void 0:e.showLiveMode}get isLiveEvent(){return!this.large&&this.item.isLiveEvent&&!this.isEditMode&&!this.isMobile()}get isShowDate(){var e,t;return!this.large&&(this.item.isHazu||this.item.isItem)&&this.item.date&&this.isDate(this.item.date)&&!this.hideDate&&((e=this.baseItem)==null?void 0:e.showDate)&&!((t=this.baseItem)!=null&&t.messengerMode)&&!this.isEditMode&&!this.isMobile()&&this.item.isPlaced}get showAuthor(){var e,t;return!this.large&&((e=this.baseItem)==null?void 0:e.showAuthor)&&!((t=this.baseItem)!=null&&t.messengerMode)&&!this.isEditMode&&!this.isMobile()}showDate(){var e;return(e=this.item.date)!=null?e:this.item.dateCreated}get showAssigned(){let e=this.item.moderator&&this.aclUsers()&&!this.hideAssignee&&(!this.isEditMode||!this.isMobile());return this.baseItem?this.baseItem.showAssigned&&e:this.item.showAssigned&&e}get showTags(){var n;let e=this.item.snapshot,t=!1;return(ls(e)||as(e))&&(t=((n=e.tags)!=null?n:!1)&&!this.hideTags&&(!this.isEditMode||!this.isMobile())),this.baseItem?this.baseItem.showTags&&t:this.item.showTags&&t}get showLocation(){var e,t;return this.item.authorLocation&&(this.item.isHazu&&!this.large||this.item.isItem)&&!this.isEditMode&&!((e=this.baseItem)!=null&&e.messengerMode)&&!this.hideLocation&&((t=this.baseItem)==null?void 0:t.showLocation)}get showComment(){return!this.large&&this.baseItem&&this.item&&(this.item.isQuestion?this.baseItem.commentsEnabled:this.item.commentsEnabled)&&!this.isEditMode&&!this.isNestedEvent&&(!this.isMobile()||this.item.totalComments)&&!this.showCommentsButton&&!this.item.isComment}get showVote(){var e;return!this.item.isUser&&!this.item.isHazu&&(this.item.isQuestion?(e=this.baseItem)==null?void 0:e.votesEnabled:this.item.votesEnabled)&&!this.isEditMode}get showShare(){var e;return!this.large&&!this.isNestedEvent&&!this.isEditMode&&((e=this.baseItem)==null?void 0:e.showShareButtons)}get showPrivacy(){return!this.large&&this.item.privacy!=="public"&&!this.isEditMode}get showColorpickerCondition(){return this.canHover()&&!this.large&&!this.item.isUser&&!this.isEditMode&&!this.isMobile()&&!this.hideColorpicker}get isNewMessengerItem(){var e;return this.newItemMode&&((e=this.baseItem)==null?void 0:e.messengerMode)}get showPlacedOptions(){return this.canHover()&&!this.large&&!this.item.isUser&&this.item.isPlaced&&!this.isEditMode&&!this.isMobile()}get showUnplacedOptions(){return this.canHover()&&!this.large&&!this.item.isUser&&!this.item.isPlaced&&!this.isEditMode&&!this.isMobile()}get showOpen(){return this.item.isHazu&&!this.large&&!this.isEditMode&&!this.hideHazu}get canShowMobileAccessory(){var e,t,n,u,g;return(!this.canHover()||this.isMobile())&&!this.item.isUser&&!this.isEditMode&&(((e=this.permission)==null?void 0:e.edit)||((t=this.item)==null?void 0:t.votesEnabled)||((n=this.item)==null?void 0:n.commentsEnabled)||((u=this.baseItem)==null?void 0:u.votesEnabled)||((g=this.baseItem)==null?void 0:g.commentsEnabled))}get showPlace(){var e,t;return!this.isMobile()&&this.baseItem&&!this.isEditMode&&((e=this.permission)==null?void 0:e.edit)&&!this.item.isPlaced&&!this.hidePlaceItemButton&&(!this.liveMode()||this.liveMode()&&!((t=this.nowMode())!=null&&t.value))&&(this.baseItem.duration!==0&&this.grahpPositionNotAtInit||this.liveMode())}get showActivate(){var e;return((e=this.permission)==null?void 0:e.edit)&&this.liveMode()&&!this.item.isPlaced&&!this.isEditMode&&!this.isMobile()}get showDone(){var e;return((e=this.permission)==null?void 0:e.edit)&&this.liveMode()&&!this.isFutureEvent&&this.item.isPlaced&&!this.item.isHazu&&!this.item.isUser&&this.item.isLive&&!this.isEditMode&&!this.isMobile()}get itemUrl(){return this.routerService.getPermalink(this.item,!0)}get isShowResults(){return!this.userRole()&&this.voteRole()===Re.Everybody||fe[this.voteRole()]<=fe[this.userRole()]}
1get openEventUrl(){return this.routerService.normalizeUrl(this.item.link)}getNewModeDatButtonLabel(e,t){return t!=null?t:e}dispatchPlaceItem(){this.store.dispatch(jt(this.item))}dispatchActivateItem(){this.store.dispatch(Ct(this.item))}dispatchDoneItem(){this.itemsService.markItemEndTime(this.item)}dispatchHoverOnPlaceItem(e){this.store.dispatch(bl(e))}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-item-accessory"]],viewQuery:function(t,n){if(t&1&&ve(Zt,5),t&2){let u;ae(u=le())&&(n.itemOptionsChild=u.first)}},inputs:{item:"item",baseItem:"baseItem",isEditMode:"isEditMode",large:"large",isDisabled:"isDisabled",isSidebar:"isSidebar",permission:"permission",showOptionsPopup:"showOptionsPopup",newItemMode:"newItemMode",hidePlaceItemButton:"hidePlaceItemButton",grahpPositionNotAtInit:"grahpPositionNotAtInit",canShowItemResetOption:"canShowItemResetOption",hideAssignee:"hideAssignee",hideTags:"hideTags",hideColorpicker:"hideColorpicker",hideLocation:"hideLocation",hideDate:"hideDate",hideHazu:"hideHazu",showCommentsButton:"showCommentsButton"},outputs:{cancelClick:"cancelClick",editClick:"editClick",saveClick:"saveClick",showOptionsPopupChange:"showOptionsPopupChange",itemChange:"itemChange",hoverOpen:"hoverOpen",hoverOption:"hoverOption",showMobileAccessory:"showMobileAccessory",dateChanged:"dateChanged"},standalone:!1,decls:24,vars:24,consts:[["class","ui basic icon button mobile-accessory accessory","data-hz-test","ellipsis-menu",3,"click",4,"ngIf"],["class","accessory","title","",3,"newItemMode","ngClass","hzTrackHover","items","isSidebar","click","onHover","hzTrackHoverChange","itemChange",4,"ngIf"],["class","accessory","subMenuDirection","left","hzTab","",3,"item","itemOptionsState","baseItem","isItemAccessory","ngClass","options","canShowItemResetOption","hoverOption","click","showPopup",4,"ngIf"],["class","accessory","subMenuDirection","left","hzTab","",3,"item","itemOptionsState","isItemAccessory","ngClass","baseItem","options","hoverOption","showPopup","click",4,"ngIf"],["class","ui red label button accessory","hzTab","",4,"ngIf"],["class","accessory",4,"ngIf"],["class","accessory","hzTab","",3,"item","aclUsers","user",4,"ngIf"],["class","accessory",3,"baseItem","canEdit","item","click",4,"ngIf"],["class","accessory",3,"baseItem","canEdit","newItemMode","item","click","itemChange",4,"ngIf"],["class","item-location accessory",3,"location","geoCode","click",4,"ngIf"],["class","tags","hzTab","",3,"tags",4,"ngIf"],["class","accessory",3,"item",4,"ngIf"],["class","accessory","basic","true",3,"item","isShowResults","voteOptions","isRoot","permission","click",4,"ngIf"],["class","accessory","basic","true","hzTab","",3,"item","voteOptions","isShowResults","isRoot","permission",4,"ngIf"],["class","accessory",3,"canEdit","newItemMode","label","itemOptions","item","click","itemChange",4,"ngIf"],["class","accessory",3,"label","item","click","itemChange",4,"ngIf"],["class","accessory",3,"title","description","url",4,"ngIf"],["class","ui basic icon button open-button accessory","hzTrackHover","","hzTab","",3,"ngClass","href","hzTrackHoverChange","click",4,"ngIf"],["data-inverted","",4,"ngIf"],["class","ui mini icon button red accessory","data-inverted","","hzTab","",3,"click",4,"ngIf"],["class","ui mini green icon button accessory done","data-inverted","","translate","","hzTab","",3,"click",4,"ngIf"],["tabindex","1","class","ui right floated basic button small editor-cancel-btn","translate","","hzTab","",3,"disabled","click",4,"ngIf"],["tabindex","1","class","ui right floated button small green editor-save-btn","translate","","hzTab","",3,"disabled","click",4,"ngIf"],["data-hz-test","ellipsis-menu",1,"ui","basic","icon","button","mobile-accessory","accessory",3,"click"],[1,"fas","fa-ellipsis-h"],["title","",1,"accessory",3,"click","onHover","hzTrackHoverChange","itemChange","newItemMode","ngClass","hzTrackHover","items","isSidebar"],["subMenuDirection","left","hzTab","",1,"accessory",3,"hoverOption","click","showPopup","item","itemOptionsState","baseItem","isItemAccessory","ngClass","options","canShowItemResetOption"],["subMenuDirection","left","hzTab","",1,"accessory",3,"hoverOption","showPopup","click","item","itemOptionsState","isItemAccessory","ngClass","baseItem","o
1ptions"],["hzTab","",1,"ui","red","label","button","accessory"],[1,"accessory"],[4,"ngIf"],["class","ui icon","data-inverted","",4,"ngIf"],["data-inverted","",1,"ui","icon"],[1,"grey","icon","clock"],["class","ui icon","data-inverted","","hzTab","",4,"ngIf"],["data-inverted","","hzTab","",1,"ui","icon"],[1,"grey","icon","user"],["hzTab","",1,"accessory",3,"item","aclUsers","user"],[1,"accessory",3,"click","baseItem","canEdit","item"],[1,"accessory",3,"click","itemChange","baseItem","canEdit","newItemMode","item"],[1,"item-location","accessory",3,"click","location","geoCode"],["hzTab","",1,"tags",3,"tags"],[1,"accessory",3,"item"],["basic","true",1,"accessory",3,"click","item","isShowResults","voteOptions","isRoot","permission"],["basic","true","hzTab","",1,"accessory",3,"item","voteOptions","isShowResults","isRoot","permission"],[1,"accessory",3,"click","itemChange","canEdit","newItemMode","label","itemOptions","item"],[1,"accessory",3,"click","itemChange","label","item"],[1,"accessory",3,"title","description","url"],["hzTrackHover","","hzTab","",1,"ui","basic","icon","button","open-button","accessory",3,"hzTrackHoverChange","click","ngClass","href"],[1,"chevron","right","icon"],["data-inverted",""],["hzTab","",1,"ui","mini","icon","button","blue","accessory",3,"click","mouseover","mouseout","ngClass","title"],[1,"fa","fa-map-pin"],["data-inverted","","hzTab","",1,"ui","mini","icon","button","red","accessory",3,"click"],[1,"ui","play","icon"],["data-inverted","","translate","","hzTab","",1,"ui","mini","green","icon","button","accessory","done",3,"click"],[1,"check","icon"],["tabindex","1","translate","","hzTab","",1,"ui","right","floated","basic","button","small","editor-cancel-btn",3,"click"],["tabindex","1","translate","","hzTab","",1,"ui","right","floated","button","small","green","editor-save-btn",3,"click"]],template:function(t,n){t&1&&y(0,hf,3,3,"a",0)(1,gf,1,9,"hz-item-icon-edit-button",1)(2,ff,1,12,"hz-item-options",2)(3,Cf,1,11,"hz-item-options",3)(4,vf,2,0,"div",4)(5,Of,3,2,"div",5)(6,bf,3,2,"div",5)(7,If,1,3,"hz-assigned",6)(8,xf,1,3,"hz-privacy-button",7)(9,Ef,1,4,"hz-privacy-button",8)(10,Pf,1,2,"hz-location-accessory",9)(11,Mf,1,2,"hz-tags",10)(12,zf,1,1,"hz-show-comments-button",11)(13,kf,1,5,"hz-vote-button",12)(14,Vf,1,5,"hz-vote-individual",13)(15,Df,3,10,"hz-date-button",14)(16,Lf,2,4,"hz-location-button",15)(17,Af,5,11,"hz-share-options",16)(18,Nf,3,7,"a",17)(19,Rf,5,10,"div",18)(20,Bf,3,4,"button",19)(21,Ff,4,4,"a",20)(22,Uf,2,2,"button",21)(23,Gf,2,3,"button",22),t&2&&(c("ngIf",n.canShowMobileAccessory),p(),c("ngIf",n.showColorpickerSignal()&&!n.isMobile()),p(),c("ngIf",n.showPlacedOptions),p(),c("ngIf",n.canHover()&&n.showUnplacedOptions),p(),c("ngIf",n.isLiveEvent&&n.showLiveMode),p(),c("ngIf",n.isShowDate),p(),c("ngIf",n.showAuthor),p(),c("ngIf",n.showAssigned),p(),c("ngIf",n.showPrivacy),p(),c("ngIf",n.newItemMode&&!(n.baseItem!=null&&n.baseItem.messengerMode)),p(),c("ngIf",n.showLocation),p(),c("ngIf",n.showTags),p(),c("ngIf",n.showComment),p(),c("ngIf",n.showVote&&n.votesViewType()==="total"),p(),c("ngIf",n.showVote&&n.votesViewType()==="individual"),p(),c("ngIf",n.newItemMode&&!(n.baseItem!=null&&n.baseItem.messengerMode)),p(),c("ngIf",n.newItemMode&&!(n.baseItem!=null&&n.baseItem.messengerMode)),p(),c("ngIf",n.showShare),p(),c("ngIf",n.showOpen),p(),c("ngIf",n.showPlace),p(),c("ngIf",n.showActivate&&n.showLiveModeBaseItem),p(),c("ngIf",n.showDone&&n.showLiveModeBaseItem),p(),c("ngIf",n.isEditMode&&!(n.baseItem!=null&&n.baseItem.messengerMode&&n.newItemMode)),p(),c("ngIf",n.isEditMode))},dependencies:[X,k,H,oe,$t,ki,vl,up,so,ao,Xi,co,hp,gp,Zt,mo,fp,L,dt,xi,Je],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{align-items:center;display:flex;font-size:14px;justify-content:space-between}[_nghost-%COMP%]   .accessory[_ngcontent-%COMP%]{margin:0 .5em}[_nghost-%COMP%]   .accessory.mobile-accessory.button[_ngcontent-%COMP%]{border:none;box-shadow:none;display:none;margin:0;padding:.5em!important}@media not screen and (any-hover:hover)and (any-pointer:fine){[_nghost-%COMP%]   .accessory.mobile-accessory.button[_ngcontent-%COMP%]{display:block}}@container sidebar (max-width: 1024px){[_nghost-%COMP%]   .accessory.mobile-accessory.button[_ngcontent-%COMP%]{display:block}}@media only screen and (max-width:1024px){[_nghost-%COMP%]   .accessory.mobile-accessory.button[_ngcontent-%COMP%]{display:block}}[_nghost-%COMP%]   hz-item-options[_ngcontent-%COMP%]{display:flex;position:relative}[_nghost-%COMP%]   .ui.button.small[_ngcontent-%COMP%]{height:2.5em;margin:0 .4em;padding:.4em 1em}[_nghost-%COMP%]   .ui.button.mini[_ngcontent-%COMP%]{height:2.6em;padding:0;width:2.5em}[_nghost-%COMP%]   .ui.button.mini.done[_ngcontent-%COMP%]{align-items:center;display:flex;padding:0 .6em;width:auto}[_nghost-%COMP%]   .ui.button.mini.done[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin:0 .4em 0 0!important}[_nghost-%COMP%]   .nested-event-btn[_ngcontent-%COMP%]{line-height:inherit;margin-right:.6em}[_nghost-%COMP%]   .item-location[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   .ui.basic.open-button[_ngcontent-%COMP%]{box-shadow:none}[_nghost-%COMP%]   .ui.basic.open-button[_ngcontent-%COMP%]:hover{background:transparent!important}[_nghost-%COMP%]   .ui.basic.icon.open-button.popup-visible[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .ui.basic.icon.open-button[_ngcontent-%COMP%]{display:inherit;line-height:inherit;margin-right:0;min-width:1em;padding:0;vertical-align:middle}[_nghost-%COMP%]   .ui.basic.icon.open-button[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{height:auto}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-date-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .accessory[_ngcontent-%COMP%]{margin:0;padding:0 .5rem;text-align:center}[_nghost-%COMP%]   .accessory.button[_ngcontent-%COMP%]{margin:0 .5rem;padding:.5em}[_nghost-%COMP%]   [_ngcontent-%COMP%]:last-child{border-right:none}[_nghost-%COMP%]   hz-item-options.accessory.nested-event-btn[_ngcontent-%COMP%]{border-right:none}[_nghost-%COMP%]   .ui.basic.icon.open-button[_ngcontent-%COMP%]{margin:0;padding:.5em}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-date-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   .accessory[_ngcontent-%COMP%]{margin:0;padding:0 .5rem;text-align:center}[_nghost-%COMP%]   .accessory.button[_ngcontent-%COMP%]{margin:0 .5rem;padding:.5em}[_nghost-%COMP%]   [_ngcontent-%COMP%]:last-child{border-right:none}[_nghost-%COMP%]   hz-item-options.accessory.nested-event-btn[_ngcontent-%COMP%]{border-right:none}[_nghost-%COMP%]   .ui.basic.icon.open-button[_ngcontent-%COMP%]{margin:0;padding:.5em}}"],changeDetection:0}));let o=s;return o}
1)();var jf=["itemOptions"],Yf=o=>({count:o}),Wf=(o,s)=>({grey:o,green:s}),$f=(o,s)=>({grey:o,red:s}),Qf=o=>[o],Kf=o=>({showVotes:o,showComment:void 0}),Sp=(o,s)=>({showPopup:o,"nested-event-btn":s}),qf=()=>["location","link","privacy","removeFromTimeline","unplace","delete","drillDown","dateSettings","moveHazu","copyHazu","duplicate","calibrate","changeType","addToMyHazus","openInGenius"],Zf=()=>["location","link","privacy","interaction","delete","drillDown","dateSettings","moveHazu","copyHazu","duplicate","changeType","openInGenius","addToMyHazus"];function Jf(o,s){if(o&1){let i=O();a(0,"div",13),h("click",function(){m(i);let t=d(2);return _(t.showIconEditor())}),a(1,"span"),S(2,"i",14),C(3),f(4,"translate"),l(),S(5,"i",15),l()}o&2&&(p(3),z(" ",v(4,1,"MOBILE_ACCESSORY.EDIT_ICON")))}function Xf(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.clickOnComment())}),a(1,"span"),S(2,"i",17),C(3),f(4,"translate"),l(),S(5,"i",15),l()}if(o&2){let i=d(2);p(3),N(j(4,1,"MOBILE_ACCESSORY.COMMENTS",T(4,Yf,i.item.totalComments)))}}function eC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.showQuestions())}),a(1,"span",18),S(2,"i",19),C(3,"TABS.SHOW_QUESTIONS"),l()()}}function tC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.hideQuestions())}),a(1,"span",18),S(2,"i",19),C(3,"TABS.HIDE_QUESTIONS"),l()()}}function iC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.showChat())}),a(1,"span",18),S(2,"i",20),C(3,"TABS.SHOW_CHAT"),l()()}}function nC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.hideChat())}),a(1,"span",18),S(2,"i",20),C(3,"TABS.HIDE_CHAT"),l()()}}function oC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.clickOnPlace())}),a(1,"span",18),S(2,"i",21),C(3,"COMMON.ACTION_DONE"),l()()}}function rC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.clickOnActivate())}),a(1,"span",18),S(2,"i",22),C(3,"MOBILE_ACCESSORY.ACTIVATE"),l()()}}function sC(o,s){if(o&1){let i=O();a(0,"div",16),h("click",function(){m(i);let t=d(2);return _(t.clickOnDone())}),a(1,"span",18),S(2,"i",23),C(3,"COMMON.ACTION_DONE"),l()()}}function aC(o,s){if(o&1){let i=O();a(0,"span")(1,"i",28),f(2,"async"),f(3,"async"),h("click",function(t){m(i);let n=d(3);return _(n.vote(t,1))}),l(),C(4),f(5,"async"),l()}if(o&2){let i=d(3);p(),c("ngClass",Ne(8,Wf,v(2,2,i.votes$)<=0,v(3,4,i.votes$)>0)),p(3),z(" ",v(5,6,i.likes$))}}function lC(o,s){if(o&1){let i=O();a(0,"span")(1,"i",29),f(2,"async"),f(3,"async"),h("click",function(t){m(i);let n=d(3);return _(n.vote(t,-1))}),l(),C(4),f(5,"async"),l()}if(o&2){let i=d(3);p(),c("ngClass",Ne(8,$f,v(2,2,i.votes$)>=0,v(3,4,i.votes$)<0)),p(3),z(" ",v(5,6,i.dislikes$))}}function cC(o,s){if(o&1){let i=O();a(0,"span")(1,"i",30),h("click",function(t){m(i);let n=d(3);return _(n.vote(t,"novote"))}),l(),C(2),f(3,"async"),l()}if(o&2){let i=d(3);p(2),z(" ",v(3,1,i.neutrals$))}}function pC(o,s){if(o&1){let i=O();a(0,"button",31),f(1,"async"),h("click",function(t){m(i);let n=d(3);return _(n.openResults(t))}),C(2," INTERACTION_SETTINGS.SHOW_RESULTS "),l()}if(o&2){let i=d(3);c("routerLink",T(4,Qf,v(1,2,i.baseUrl$)))("queryParams",T(6,Kf,i.item==null?null:i.item.id))}}function dC(o,s){if(o&1&&(a(0,"div",24)(1,"div",25),y(2,aC,6,11,"span",26)(3,lC,6,11,"span",26)(4,cC,4,3,"span",26),l(),y(5,pC,3,8,"button",27),l()),o&2){let i,e,t,n=d(2);p(2),c("ngIf",(i=n.voteOptions())==null?null:i.showLikes),p(),c("ngIf",(e=n.voteOptions())==null?null:e.showDislikes),p(),c("ngIf",(t=n.voteOptions())==null?null:t.showNeutrals),p(),c("ngIf",n.isShowResults||n.isRoot())}}function mC(o,s){if(o&1){let i=O();a(0,"div",32),h("click",function(){m(i);let t=d(2);return _(t.showItemOptions())}),a(1,"span"),S(2,"i",33),C(3),f(4,"translate"),l(),S(5,"i",15),l()}o&2&&(p(3),z(" ",v(4,1,"MOBILE_ACCESSORY.SETTINGS")))}function _C(o,s){if(o&1){let i=O();a(0,"div",34)(1,"span",35),h("click",function(){m(i);let t=d(2);return t.itemOptions.duplicateItem(),_(t.hideMobileModal())}),S(2,"i",36),C(3),f(4,"translate"),l(),a(5,"span",35),h("click",function(){m(i);let t=d(2);return _(t.itemOptions.showDeleteConfirm())}),S(6,"i",37),C(7),f(8,"translate"),l()()}
1o&2&&(p(3),z(" ",v(4,2,"ITEM_OPTIONS.DUPLICATE")," "),p(4),z(" ",v(8,4,"ITEM_OPTIONS.DELETE")," "))}function uC(o,s){if(o&1){let i=O();a(0,"hz-modal",4),h("onClose",function(){m(i);let t=d();return _(t.hideMobileModal())}),a(1,"header")(2,"div",5),S(3,"hz-item",6),l()(),a(4,"content")(5,"div",7),y(6,Jf,6,3,"div",8)(7,Xf,6,6,"div",9)(8,eC,4,0,"div",9)(9,tC,4,0,"div",9)(10,iC,4,0,"div",9)(11,nC,4,0,"div",9)(12,oC,4,0,"div",9)(13,rC,4,0,"div",9)(14,sC,4,0,"div",9)(15,dC,6,4,"div",10)(16,mC,6,3,"div",11)(17,_C,9,6,"div",12),l()()()}if(o&2){let i=d();p(3),c("item",i.item)("isAutoPriority",!0),p(3),c("ngIf",i.canEdit),p(),c("ngIf",i.showComment),p(),c("ngIf",i.isShowQuestions),p(),c("ngIf",i.isHideQuestions),p(),c("ngIf",i.isShowChat),p(),c("ngIf",i.isHideChat),p(),c("ngIf",i.showPlace),p(),c("ngIf",i.showActivate),p(),c("ngIf",i.showDone),p(),c("ngIf",i.showVote),p(),c("ngIf",i.canEdit&&!i.large),p(),c("ngIf",i.canEdit&&!i.large)}}function hC(o,s){if(o&1){let i=O();a(0,"hz-item-options",38,0),h("hoverOption",function(t){m(i);let n=d();return _(n.onHoverOption.emit(t))})("click",function(t){return m(i),_(t.stopPropagation())})("showPopup",function(t){m(i);let n=d();return _(n.showPopup(t))}),l()}if(o&2){let i=d();c("item",i.item)("itemOptionsState",i.itemOptionsState())("baseItem",i.baseItem)("isItemAccessory",i.isItemAccessory)("ngClass",Ne(7,Sp,i.showOptionsPopup,i.item.isHazu))("options",ge(10,qf))("canShowItemResetOption",i.canShowItemResetOption)}}function gC(o,s){if(o&1){let i=O();a(0,"hz-item-options",39,0),h("hoverOption",function(t){m(i);let n=d();return _(n.onHoverOption.emit(t))})("showPopup",function(t){m(i);let n=d();return _(n.showPopup(t))})("click",function(t){return m(i),_(t.stopPropagation())}),l()}if(o&2){let i=d();c("item",i.item)("isMobile",!0)("itemOptionsState",i.itemOptionsState())("isItemAccessory",i.isItemAccessory)("ngClass",Ne(7,Sp,i.showOptionsPopup,i.item.isHazu))("baseItem",i.baseItem)("options",ge(10,Zf))}}var wp=(()=>{let s=class s{constructor(){r(this,"item");r(this,"baseItem");r(this,"isEditMode");r(this,"large");r(this,"isDisabled",!1);r(this,"permission");r(this,"showOptionsPopup",!1);r(this,"newItemMode",!1);r(this,"hidePlaceItemButton");r(this,"grahpPositionNotAtInit");r(this,"canShowItemResetOption");r(this,"hideAssignee",!1);r(this,"isMobileModalShown",!1);r(this,"onModalHideClick",new E);r(this,"onEditTitle",new E);r(this,"onEditDescription",new E);r(this,"onShowIconEditor",new E);r(this,"onCancelClick",new E);r(this,"onEditClick",new E);r(this,"onSaveClick",new E);r(this,"showOptionsPopupChange",new E);r(this,"itemChange",new E);r(this,"onHoverOpen",new E);r(this,"onHoverOption",new E);r(this,"itemOptions");r(this,"store",b(V));r(this,"routerService",b(pt));r(this,"windowService",b(Ci));r(this,"voteService",b(Di));r(this,"layoutService",b(He));r(this,"itemsService",b(ue));r(this,"identity",this.store.selectSignal(ht));r(this,"aclUsers",this.store.selectSignal(Gt));r(this,"itemOptionsState",this.store.selectSignal(me));r(this,"userRole",this.store.selectSignal(qe));r(this,"isRoot",this.store.selectSignal(ct));r(this,"voteRole",this.store.selectSignal(At));r(this,"voteOptions",this.store.selectSignal(Lt));r(this,"isMobile",this.store.selectSignal(Nt));r(this,"liveMode",this.store.selectSignal(lt));r(this,"nowMode",this.store.selectSignal(Rt));r(this,"votes$");r(this,"likes$");r(this,"dislikes$");r(this,"neutrals$");r(this,"isItemAccessory",!0);r(this,"isLoggedIn");r(this,"subscription")}ngOnInit(){this.subscription=this.store.select(ht).subscribe(e=>{this.isLoggedIn=e}),this.likes$=this.store.select(Dt).pipe(U(e=>{var t,n;return(n=(t=e[this.item.id])==null?void 0:t.likes)!=null?n:0})),this.dislikes$=this.store.select(Dt).pipe(U(e=>{var t,n;return(n=(t=e[this.item.id])==null?void 0:t.dislikes)!=null?n:0})),this.neutrals$=this.store.select(Dt).pipe(U(e=>{var t,n;return(n=(t=e[this.item.id])==null?void 0:t.neutrals)!=null?n:0})),this.votes$=this.store.select(Ho(this.item.key)),this.voteService.loadVote(this.item.key)}isDate(e){let t=new Date(e);return!isNaN(t.getTime())}showPopup(e){this.showOptionsPopup=e,this.showOptionsPopupChange.emit(e)}hideMobileModal(){this.onModalHideClick.emit()}showIconEditor(){this.onShowIconEditor.emit(),this.hideMobileModal()}vote(e,t){if(this.isLoggedIn){let n=this.store.selectSignal(Ho(this.item.key))();t===n?this.voteService.vote(this.item.clone(),0):this.voteService.vote(this.item.clone(),t)}else this.hideMobileModal(),this.layoutService.showModal(Ae.AUTHENTICATION);e.stopPropagation()}openResults(e){this.hideMobileModal(),e.stopPropagation()}showItemOptions(){this.showOptionsPopup=!0,this.itemOptions.showCurrentPopup(),this.hideMobileModal()}clickOnComment(){this.layoutService.showModal(Ae.COMMENT_ITEM,{item:this.item}),this.hideMobileModal()}clickOnPlace(){this.store.dispatch(jt(this.item)),this.hideMobileModal()}clickOnActivate(){this.store.dispatch(Ct(this.item)),this.hideMobileModal()}
1clickOnDone(){this.itemsService.markItemEndTime(this.item),this.hideMobileModal()}get baseUrl$(){return this.store.select(Be).pipe(Xe(e=>e!==null)).pipe(U(e=>this.routerService.normalizeUrl(e.link)))}get isFutureEvent(){var e;return!!((e=this.baseItem)!=null&&e.isFutureEvent)}get isNestedEvent(){return!this.large&&this.item.isHazu}get showLive(){return!this.large&&this.item.isLiveEvent&&!this.isEditMode}get showDate(){return!this.large&&this.item.isHazu&&this.isDate(this.item.date)&&!this.isEditMode}get showAssigned(){return!!this.item.moderator&&!!this.aclUsers()&&!this.hideAssignee}get showLocation(){return!!this.item.authorLocation&&(this.item.isHazu&&!this.large||this.item.isItem)&&!this.isEditMode}get showComment(){return this.baseItem&&this.item&&(this.item.commentsEnabled?this.item.commentsEnabled:this.baseItem.commentsEnabled)&&!this.isEditMode&&!this.isNestedEvent}get showVote(){return!this.large&&!this.isNestedEvent&&(this.item.votesEnabled?this.item.votesEnabled:this.baseItem.votesEnabled)&&!this.isEditMode}get showShare(){return!this.large&&!this.isNestedEvent&&!this.isEditMode&&this.baseItem.showShareButtons}get showPrivacy(){return!this.large&&this.item.privacy!=="public"&&!this.isEditMode}get showColorpicker(){var e;return!this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&!this.isEditMode}get showPlacedOptions(){var e;return!this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&this.item.isPlaced&&!this.isEditMode}get showUnplacedOptions(){var e;return!this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&!this.item.isPlaced&&!this.isEditMode}get showOpen(){return this.item.isHazu&&!this.large&&!this.isEditMode}get showEdit(){return this.isMobile()}get isShowQuestions(){var e;return this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&!this.item.isOpen}get isHideQuestions(){var e;return this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&this.item.isOpen}get isShowChat(){var e;return this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&!this.item.isChatOpen}get isHideChat(){var e;return this.large&&!this.item.isUser&&!!((e=this.permission)!=null&&e.edit)&&this.item.isChatOpen}get isShowResults(){return!this.userRole()&&this.voteRole()===Re.Everybody||fe[this.voteRole()]<=fe[this.userRole()]}showQuestions(){this.itemsService.setQuestionTabVisibility(this.item,!0),this.hideMobileModal()}showChat(){this.itemsService.setChatTabVisibility(this.item,!0),this.hideMobileModal()}hideQuestions(){this.itemsService.setQuestionTabVisibility(this.item,!1),this.hideMobileModal()}hideChat(){this.itemsService.setChatTabVisibility(this.item,!1),this.hideMobileModal()}get showPlace(){var e,t;return this.baseItem&&!this.isEditMode&&!!((e=this.permission)!=null&&e.edit)&&!this.item.isPlaced&&!this.hidePlaceItemButton&&(!this.liveMode()||this.liveMode()&&(!this.nowMode()||!((t=this.nowMode())!=null&&t.value)))&&(this.baseItem.duration!==0||this.liveMode())}get showActivate(){var e;return!!((e=this.permission)!=null&&e.edit)&&this.liveMode()&&!this.item.isPlaced&&!this.isEditMode}get canEdit(){var e;return!!((e=this.permission)!=null&&e.edit)}get showDone(){var e;return!!((e=this.permission)!=null&&e.edit)&&this.liveMode()&&!this.isFutureEvent&&this.item.isPlaced&&!this.item.isHazu&&!this.item.isUser&&this.item.isLive&&!this.isEditMode}get itemUrl(){return this.windowService.location.origin+this.routerService.normalizeUrl(this.baseItem.link)+"?focusedItem="+this.item.id}get openCommentUrl(){return this.baseItem?this.routerService.normalizeUrl(this.baseItem.link):""}get openEventUrl(){return this.routerService.normalizeUrl(this.item.link)}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-item-mobile-accessory"]],viewQuery:function(t,n){if(t&1&&ve(jf,5),t&2){let u;ae(u=le())&&(n.itemOptions=u.first)}},inputs:{item:"item",baseItem:"baseItem",isEditMode:"isEditMode",large:"large",isDisabled:"isDisabled",permission:"permission",showOptionsPopup:"showOptionsPopup",newItemMode:"newItemMode",hidePlaceItemButton:"hidePlaceItemButton",grahpPositionNotAtInit:"grahpPositionNotAtInit",canShowItemResetOption:"canShowItemResetOption",hideAssignee:"hideAssignee",isMobileModalShown:"isMobileModalShown"},outputs:{onModalHideClick:"onModalHideClick",onEditTitle:"onEditTitle",onEditDescription:"onEditDescription",onShowIconEditor:"onShowIconEditor",onCancelClick:"onCancelClick",onEditClick:"onEditClick",onSaveClick:"onSaveClick",
1showOptionsPopupChange:"showOptionsPopupChange",itemChange:"itemChange",onHoverOpen:"onHoverOpen",onHoverOption:"onHoverOption"},standalone:!1,decls:3,vars:3,consts:[["itemOptions",""],["modalClass","mobile-menu","data-hz-test","mobile-accessory-modal",3,"onClose",4,"ngIf"],["class","accessory","subMenuDirection","left",3,"item","itemOptionsState","baseItem","isItemAccessory","ngClass","options","canShowItemResetOption","hoverOption","click","showPopup",4,"ngIf"],["class","accessory","subMenuDirection","left",3,"item","isMobile","itemOptionsState","isItemAccessory","ngClass","baseItem","options","hoverOption","showPopup","click",4,"ngIf"],["modalClass","mobile-menu","data-hz-test","mobile-accessory-modal",3,"onClose"],[1,"item","header"],[1,"item",3,"item","isAutoPriority"],[1,"container"],["class","item","data-hz-test","mobile-accessory-icon-edit",3,"click",4,"ngIf"],["class","item",3,"click",4,"ngIf"],["class","item vote",4,"ngIf"],["class","item","data-hz-test","mobile-accessory-settings",3,"click",4,"ngIf"],["class","item",4,"ngIf"],["data-hz-test","mobile-accessory-icon-edit",1,"item",3,"click"],[1,"paint","brush","icon","grey","large"],[1,"chevron","right","icon"],[1,"item",3,"click"],[1,"comment","icon","grey","large"],["translate",""],[1,"circular","inverted","question","icon","grey"],[1,"comments","icon","grey","large"],[1,"map","pin","icon","grey","large"],[1,"play","icon","grey","large"],[1,"check","icon","grey","large"],[1,"item","vote"],[1,"votes"],[4,"ngIf"],["class","ui primary basic button show-results","queryParamsHandling","merge","translate","",3,"routerLink","queryParams","click",4,"ngIf"],[1,"thumbs","up","icon","grey","large",3,"click","ngClass"],[1,"thumbs","down","icon","grey","large",3,"click","ngClass"],[1,"times","icon","grey","large",3,"click"],["queryParamsHandling","merge","translate","",1,"ui","primary","basic","button","show-results",3,"click","routerLink","queryParams"],["data-hz-test","mobile-accessory-settings",1,"item",3,"click"],[1,"setting","icon","grey","large"],[1,"item"],[3,"click"],[1,"copy","icon","grey","large"],[1,"trash","icon","grey","large"],["subMenuDirection","left",1,"accessory",3,"hoverOption","click","showPopup","item","itemOptionsState","baseItem","isItemAccessory","ngClass","options","canShowItemResetOption"],["subMenuDirection","left",1,"accessory",3,"hoverOption","showPopup","click","item","isMobile","itemOptionsState","isItemAccessory","ngClass","baseItem","options"]],template:function(t,n){t&1&&y(0,uC,18,14,"hz-modal",1)(1,hC,2,11,"hz-item-options",2)(2,gC,2,11,"hz-item-options",3),t&2&&(c("ngIf",n.isMobileModalShown),p(),c("ngIf",n.showPlacedOptions),p(),c("ngIf",n.showUnplacedOptions))},dependencies:[X,k,kt,H,ke,bi,mt,Zt,ce,L],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]   hz-item-options[_ngcontent-%COMP%]     .icon.setting{display:none}  .mobile-menu{width:100%}  .mobile-menu .itemTop .ui.header{font-weight:400}  .mobile-menu .ui.modal>.content{padding:0!important;width:100%}  .mobile-menu .ui.modal>.content .container{width:100%}  .mobile-menu .ui.modal>.content .container .item{align-items:center;border-bottom:1px solid rgba(34,36,38,.15);color:#000;display:flex;height:auto;justify-content:space-between;line-height:4rem;padding:0 1rem;-webkit-user-select:none;user-select:none;width:100%}  .mobile-menu .ui.modal>.content .container .item .icon{line-height:initial;margin-right:.5rem;min-width:28px;vertical-align:unset}  .mobile-menu .ui.modal>.content .container .item .icon.right{float:right;margin-right:0}  .mobile-menu .ui.modal>.content .container .item:hover{background:#0000000d!important}  .mobile-menu .ui.modal>.content .container .vote{flex-direction:column}  .mobile-menu .ui.modal>.content .container .vote .votes{display:flex;justify-content:space-around;width:100%}  .mobile-menu .ui.modal>.content .container .vote .button{margin:.5rem}"],changeDetection:0}));let o=s;return o})();var CC=["itemIconEditor"],vC=["titleEditor"],SC=["descriptionEditor"],wC=(o,s,i,e,t,n,u,g,w,I,D,Y,ne,se)=>({large:o,isHazu:s,regular:i,canPlay:e,viewOnly:t,isEditMode:n,isEditModeMessenger
1:u,messengerMode:g,"messengerMode-owner":w,whiteColor:I,isPopupOpened:D,fullWidthEditMode:Y,"has-date":ne,hideTitle:se}),OC=o=>({time:o}),yC=o=>({showPopup:o}),TC=o=>[o],Op=o=>({newItemMode:o}),zr=o=>({large:o}),bC=o=>({username:o}),IC=(o,s)=>({position:"absolute",top:o,left:s}),xC=()=>({});function EC(o,s){if(o&1&&(a(0,"span"),C(1),l()),o&2){let i=d(2);p(),N(i.item.displayName)}}function PC(o,s){if(o&1&&(a(0,"span",20),C(1),f(2,"localizedDate"),l()),o&2){let i=d(2);p(),N(j(2,1,i.item.isPlaced?i.item.date:i.item.dateCreated,"medium"))}}function MC(o,s){if(o&1&&(a(0,"item-info")(1,"div",18),y(2,EC,2,1,"span",5)(3,PC,3,4,"span",19),l()()),o&2){let i=d();p(2),c("ngIf",i.baseItem==null?null:i.baseItem.showAuthor),p(),c("ngIf",(i.baseItem==null?null:i.baseItem.showDate)&&!i.isEditMode)}}function zC(o,s){if(o&1){let i=O();a(0,"hz-item-icon-edit-button",21,1),h("click",function(t){return m(i),_(t.stopPropagation())})("onShow",function(t){m(i);let n=d();return _(n.showEditIconPopup(t))})("onHover",function(t){m(i);let n=d();return _(n.hoverEditIcon=t)}),Z("hzTrackHoverChange",function(t){m(i);let n=d();return K(n.hoverEditIconPopup,t)||(n.hoverEditIconPopup=t),_(t)}),h("itemChange",function(t){m(i);let n=d();return _(n.item=t)}),l()}if(o&2){let i=d();c("newItemMode",i.newItemMode)("isSidebar",i.isSidebar)("ngClass",T(5,yC,i.showEditPopup)),Q("hzTrackHover",i.hoverEditIconPopup),c("items",T(7,TC,i.item))}}function kC(o,s){if(o&1){let i=O();a(0,"hz-play-and-progress-icon",22),f(1,"iconRadius"),h("play",function(){m(i);let t=d();return _(t.handlePlay())})("pause",function(){m(i);let t=d();return _(t.handlePause())})("navigateToHazu",function(t){m(i);let n=d();return _(n.onIconClickInEditMode(t))}),l()}if(o&2){let i=d();c("hidden",!i.isEditMode&&i.actionIcon)("item",i.item)("isActive",i.item.isPlaced&&i.hoverItem&&!i.isEditMode&&!i.hoverEditIconPopup)("isPaused",i.isPlayerPaused)("enablePlayPause",i.baseItem&&i.baseItem.hasVideo)("percentCompleted",i.playingPercent)("isPlaying",i.isActiveItem)("radius",Hi(1,10,i.item,i.isBaseItem?1.85:1.25,i.maxScore))("editState",i.editState())("isEditMode",i.isEditMode)}}function VC(o,s){if(o&1&&(S(0,"hz-icon-by-state",23),f(1,"iconRadius")),o&2){let i=d();c("hidden",i.isEditMode||!i.actionIcon)("item",i.item)("actionIcon",i.actionIcon)("radius",Hi(1,4,i.item,i.isBaseItem?1.85:1.25,i.maxScore))}}function DC(o,s){if(o&1&&(a(0,"div",24),S(1,"img",25),l()),o&2){let i=d();p(),c("src",i.item.profileImageUploaded||i.item.profileImageURL||i.item.socialImageURL,et)}}function LC(o,s){if(o&1&&(a(0,"h1",26),C(1),l()),o&2){let i=s.ngIf;p(),z(" ",i," ")}}function AC(o,s){if(o&1){let i=O();a(0,"hz-container-editor",27,2),f(2,"translate"),f(3,"translate"),f(4,"translate"),f(5,"translate"),h("contentChanged",function(t){m(i);let n=d();return _(n.updateTitleContent(t))})("editTitleOrDescription",function(){m(i);let t=d();return _(t.editTitleOrDescription())})("editorInitialized",function(t){m(i);let n=d();return _(n.onTitleEditorInitialized(t))})("enterClick",function(t){m(i);let n=d();return _(n.saveItem(t))})("keydown.esc",function(){let t;m(i);let n=d();return _((t=n.editState())!=null&&t.isDirty?!1:n.cancelEdit())})("tabKeyPressed",function(t){m(i);let n=d();return _(n.onTitleTabKey(t))}),Z("hzTrackHoverChange",function(t){m(i);let n=d();return K(n.hoverEditTitle,t)||(n.hoverEditTitle=t),_(t)}),h("click",function(t){m(i);let n=d();return _(n.canEdit?t.stopPropagation():!0)})("mouseleave",function(){m(i);let t=d();return _(t.addDragElement())})("mouseenter",function(){m(i);let t=d();return _(t.removeDragElement())}),l()}if(o&2){let i,e=d();c("ngClass",T(21,Op,e.newItemMode))("newItemMode",e.newItemMode)("isEditMode",(i=e.editState())==null?null:i.isEditTitle)("content",v(2,13,e.title))("preventPressButton",e.hasActivityIndicator())("placeholder",e.baseItem!=null&&e.baseItem.messengerMode?v(3,15,"MESSENGER.SUBJECT_PLACEHOLDER"):v(4,17,"COMMON.TITLE"))("isReadonly",e.isReadOnly())("multiLine",!1),Q("hzTrackHover",e.hoverEditTitle),c("item",e.item)("isBaseItem",e.isBaseItem)("baseItem",e.baseItem),J("title",v(5,19,e.permission!=null&&e.permission.edit?"ACTIONS.EDIT_TITLE":""))}}function NC(o,s){if(o&1&&(a(0,"a",28),f(1,"translate"),f(2,"translate"),S(3,"i",29),C(4),f(5,"translate"),l()),o&2){let i=d();c("ngClass",T(10,zr,i.isBaseItem))("title",j(2,5,"ITEM_OPTIONS.IS_EDITING",T(12,bC,v(1,3,i.item.editorSessionDisplayName||"COMMON.ANONYMOUS_USER_PRONOUN")))),p(4),z(" ",v(5,8,i.item.editorSessionDisplayName||"COMMON.ANONYMOUS_USER")," ")}}function RC(o,s){if(o&1&&S(0,"hz-item-info",30),o&2){let i=d();c("item",i.item)("itemOptionsState",i.itemOptions())("isBaseItem",i.isBaseItem)("canEdit",i.permission==null?null:i.permission.edit)}}function BC(o,s){if(o&1){let i=O();a(0,"hz-item-accessory",31),Z("showOptionsPopupChange",function(t){m(i);let n=d();return K(n.showOptionsPopup,t)||(n.showOptionsPopup=t),_(t)}),h("cancelClick",function(){m(i);let t=d();return _(t.cancelEdit())})("mouseenter",function(){m(i);let t=d();return _(t.hoverItem=!1)})("hoverOpen",function(t){m(i);let n=d();return _(n.hoverOpen=t)})("hoverOption",function(t){m(i);let n=d();return _(n.hoverOption=t)})("saveClick",function(){m(i);let t=d();return _(t.saveItem())})("showMobileAccessory",function(){m(i);let t=d();return _(t.showMobileModal())})("itemChange",function(t){m(i);let n=d();return _(n.item=t)})("dateChanged",function(){m(i);let t=d();return _(t.isDateUpdated=!0)})("extendItem",function(t){m(i);let n=d();return _(n.readMoreClick(t))})("editClick",function(){m(i);let t=d();return _(t.editTitleOrDescription())}),l()}if(o&2){let i=d();c("ngClass",T(14,zr,i.isBaseItem))("hideAssignee",i.hideTitle)("item",i.item)("baseItem",i.baseItem)("isEditMode",i.isEditMode)("isDisabled",i.isDisabledButton)("newItemMode",i.newItemMode)("large",i.isBaseItem)("isSidebar",i.isSidebar)("hidePlaceItemButton",i.hidePlaceItemButton)("grahpPositionNotAtInit",i.grahpPositionNotAtInit)("canShowItemResetOption",i.c
1anShowItemResetOption)("permission",i.permission),Q("showOptionsPopup",i.showOptionsPopup)}}function FC(o,s){if(o&1){let i=O();a(0,"hz-container-editor",38,3),f(2,"translate"),f(3,"translate"),f(4,"translate"),h("contentChanged",function(t){m(i);let n=d(2);return _(n.updateDescriptionContent(t))})("editTitleOrDescription",function(t){m(i);let n=d(2);return _(n.editTitleOrDescription(!1,!1,t))})("keydown.esc",function(){let t;m(i);let n=d(2);return _((t=n.editState())!=null&&t.isDirty?!1:n.cancelEdit())})("enterClick",function(t){m(i);let n=d(2);return _(n.saveItem(t))})("saveAndKeepOpen",function(t){m(i);let n=d(2);return _(n.saveItem(t,!0))})("mouseleave",function(){m(i);let t=d(2);return _(t.addDragElement())})("mouseenter",function(){m(i);let t=d(2);return _(t.removeDragElement())})("click",function(t){m(i);let n=d(2);return _(n.clickEditorDescription(t))})("linkClick",function(t){m(i);let n=d(2);return _(n.onEditorLinkClick(t))}),Z("hzTrackHoverChange",function(t){m(i);let n=d(2);return K(n.hoverEditDescription,t)||(n.hoverEditDescription=t),_(t)}),l()}if(o&2){let i,e,t=d(2);c("hidden",!t.isDescription&&!((i=t.editState())!=null&&i.isEditDescription))("ngClass",T(21,Op,t.newItemMode))("newItemMode",t.newItemMode)("isEditMode",(e=t.editState())==null?null:e.isEditDescription)("content",t.description)("preventPressButton",t.hasActivityIndicator())("placeholder",t.baseItem!=null&&t.baseItem.messengerMode?v(3,17,"MESSENGER.MESSAGE_PLACEHOLDER"):v(2,15,"EDITOR.ADD_DESCRIPTION"))("toolbarButtons",t.descriptionToolbarButtons)("isReadonly",t.isReadOnly())("item",t.item),Q("hzTrackHover",t.hoverEditDescription),c("isTitle",!1)("isBaseItem",t.isBaseItem)("baseItem",t.baseItem),J("title",v(4,19,t.permission!=null&&t.permission.edit?"ACTIONS.EDIT_DESCRIPTION":""))}}function UC(o,s){var i,e,t,n,u;if(o&1){let g=O();a(0,"hz-browse",42),h("onBack",function(){m(g);let I=d(3);return _(I.importConfig.importOpened=!1)})("onClose",function(){m(g);let I=d(3);return _(I.importConfig.importOpened=!1)})("onDone",function(){m(g);let I=d(3);return _(I.importDone())}),l()}if(o&2){let g=d(3);c("rootPath",g.importConfig.sourcePath)("filter",g.filterBrowseItems())("update",g.browseUpdate)("label",g.importConfig.browseLabel)("selectedIds",g.importConfig.importIds)("acl",g.importConfig.acl)("editAfterImport",(i=g.importConfig.editAfterImport)!=null?i:!1)("setParamOnImport",(e=g.importConfig.setParamOnImport)!=null?e:ge(13,xC))("clearLink",(t=g.importConfig.clearLink)!=null?t:!0)("clearTitle",(n=g.importConfig.clearTitle)!=null?n:!1)("preserveDate",(u=g.importConfig.preserveDate)!=null?u:!1)("multiselect",!0)("isDisabled",g.browseButtonDisabled())}}function GC(o,s){if(o&1){let i=O();a(0,"hz-dropdown",39),Z("isOpenChange",function(t){m(i);let n=d(2);return K(n.importConfig.importOpened,t)||(n.importConfig.importOpened=t),_(t)}),h("show",function(){m(i);let t=d(2);return _(t.browseUpdate.emit())}),a(1,"div",40),y(2,UC,1,14,"hz-browse",41),l()()}if(o&2){let i=d(2);c("ngStyle",Ne(3,IC,i.importConfig.importPosition==null?null:i.importConfig.importPosition.y,i.importConfig.importPosition==null?null:i.importConfig.importPosition.x)),Q("isOpen",i.importConfig.importOpened),p(2),c("ngIf",i.importConfig.importOpened)}}function HC(o,s){if(o&1){let i=O();a(0,"a",43),h("click",function(t){return m(i),d(2).editTitleOrDescription(!1),_(t.stopPropagation())})("focus",function(){m(i);let t=d(2);return _(t.editTitleOrDescription(!1))}),C(1),f(2,"translate"),l()}if(o&2){let i=d(2);p(),N(v(2,1,i.baseItem!=null&&i.baseItem.messengerMode?"MESSENGER.MESSAGE_PLACEHOLDER":"EDITOR.ADD_DESCRIPTION"))}}function jC(o,s){if(o&1){let i=O();a(0,"a",44),h("click",function(t){m(i);let n=d(2);return _(n.readMoreClick(t))}),C(1,"EDITOR.ADD_MORE_INFO"),l()}}function YC(o,s){if(o&1){let i=O();a(0,"div",45)(1,"button",46),h("click",function(t){m(i);let n=d(2);return _(n.readMoreClick(t))}),C(2),f(3,"translate"),l()()}o&2&&(p(2),z(" ",v(3,1,"COMMON.ACTION_READ_MORE")," "))}function WC(o,s){if(o&1&&(a(0,"section"),y(1,FC,5,23,"hz-container-editor",32)(2,GC,3,6,"hz-dropdown",33),S(3,"div",34),y(4,HC,3,3,"a",35)(5,jC,2,0,"a",36)(6,YC,4,3,"div",37),l()),o&2){let i,e=d();p(),c("ngIf",!e.item.isQuestion&&(e.isDescription||e.isEditMode)),p(),c("ngIf",e.canImportInto()&&!(e.baseItem!=null&&e.baseItem.messengerMode)&&e.waitForLoadAcl()),p(2),c("ngIf",!((i=e.editState())!=null&&i.isEditDescription)&&!e.isDescription),p(),c("ngIf",e.isEditMode&&!e.additionalDescription&&!e.newItemMode&&(e.showExtendedContent()||e.additionalDescription)),p(),c("ngIf",e.additionalDescription&&!e.item.isQuestion)}}function $C(o,s){if(o&1&&S(0,"section",47),o&2){let i=d();c("innerHtml",i.item.descriptionSanitized,rt)("hzWidget",i.item.id)("hzSignatureContext",i.item.id)}}function QC(o,s){if(o&1){let i=O();a(0,"hz-fullscreen-modal",48),Z("isModalShowChange",function(t){m(i);let n=d();return K(n.fullscreenMode,t)||(n.fullscreenMode=t),_(t)}),h("isModalShowChange",function(t){m(i);let n=d();return _(n.showFullscreenModal(t))}),l()}if(o&2){let i=d();c("item",i.item)("editState",i.editState())("baseItem",i.baseItem)("listName",i.listName)("isBaseItem",i.isBaseItem)("title",i.title),Q("isModalShow",i.fullscreenMode)}}function KC(o,s){if(o&1){let i=O();a(0,"hz-item-mobile-accessory",49),Z("itemChange",function(t){m(i);let n=d();return K(n.item,t)||(n.item=t),_(t)})("showOptionsPopupChange",function(t){m(i);let n=d();return K(n.showOptionsPopup,t)||(n.showOptionsPopup=t),_(t)}),h("onCancelClick",function(){m(i);let t=d();return _(t.cancelEdit())})("mouseenter",function(){m(i);let t=d();return _(t.hoverItem=!1)})("onHoverOpen",function(t){m(i);let n=d();return _(n.hoverOpen=t)})("onHoverOption",function(t){m(i);let n=d();return _(n.hoverOption=t)})("onSaveClick",function(){m(i);let t=d();return _(t.saveItem())})("onEditClick",function(){m(i);let t=d();return _(t.editTitleOrDescription())})("onShowIconEditor",function(){m(i);let t=d();return _(t.showIconEditor())})("onEditDescription",function(){m(i);let t=d();return _(t.editTitleOrDescription(!1,!0))})("onEditTitle",function(){m(i);let t=d();return _(t.editTitleOrDescription(!0,!0))})("onModalHideClick",function(){m(i);let t=d();return _(t.isMobileModalShown=!1)}),l()}if(o&2){let i=d();c("ngClass",T(14,zr,i.isBaseItem))("isMobileModalShown",i.isMobileModalShown)("hideAssignee",i.hideTitle),Q("item",i.item),c("baseItem",i.baseItem)("isEditMode",i.isEditMode)("isDisabled",i.isDisabledButton)("newItemMode",i.newItemMode)("large",i.isBaseItem)("hidePlaceItemButton",i.hidePlaceItemButton)("grahpPositionNotAtInit",i.grahpPositionNotAtInit)("canShowItemResetOption",i.c
1anShowItemResetOption)("permission",i.permission),Q("showOptionsPopup",i.showOptionsPopup)}}var yp=(()=>{let s=class s{constructor(){r(this,"baseItem");r(this,"item");r(this,"isSidebar",!1);r(this,"listName","TimelineView");r(this,"isFocused",!1);r(this,"isBaseItem",!1);r(this,"maxScore",0);r(this,"playingPercent");r(this,"isActiveItem",!1);r(this,"videoState");r(this,"hideTitle",!1);r(this,"alwaysShowDescription",!1);r(this,"hidePlaceItemButton",!1);r(this,"graphPositionNotAtInt",!1);r(this,"newItemMode",!1);r(this,"permission");r(this,"isCalendarView",!1);r(this,"canShowItemResetOption",!1);r(this,"playPauseIconClicked",new E);r(this,"itemIconEditor");r(this,"titleEditor");r(this,"descriptionEditor");r(this,"store",b(V));r(this,"itemState",this.store.selectSignal(Os));r(this,"itemOptions",this.store.selectSignal(me));r(this,"userRole",this.store.selectSignal(qe));r(this,"isRoot",this.store.selectSignal(ct));r(this,"voteRole",this.store.selectSignal(At));r(this,"votesViewType",this.store.selectSignal(ui));r(this,"voteOptions",this.store.selectSignal(Lt));r(this,"hasActivityIndicator",this.store.selectSignal(dn));r(this,"waitForLoadAcl",this.store.selectSignal(na));r(this,"acl",this.store.selectSignal(ia));r(this,"loadedAcls",this.store.selectSignal(Gt));r(this,"identity",this.store.selectSignal(un));r(this,"canImportInto",this.store.selectSignal(Fs));r(this,"showExtendedContent",this.store.selectSignal(gi));r(this,"isMobile",this.store.selectSignal(Nt));r(this,"canHover",this.store.selectSignal(hi));r(this,"liveMode",this.store.selectSignal(lt));r(this,"nowMode",this.store.selectSignal(Rt));r(this,"childrenEditStateByKeyMap",this.store.selectSignal(Ds));r(this,"baseItemEditStateByKeyMap",this.store.selectSignal(Ps));r(this,"itemKeySignal",_e(""));r(this,"isBaseItemSignal",_e(!1));r(this,"editState",re(()=>(this.isBaseItemSignal()?this.baseItemEditStateByKeyMap():this.childrenEditStateByKeyMap())[this.itemKeySignal()]));r(this,"itemForIconButton",_e(void 0));r(this,"showIconEditButton",_e(!1));r(this,"isNestedEvent",!1);r(this,"showOptionsPopup",!1);r(this,"fullscreenMode",!1);r(this,"showEditPopup",!1);r(this,"enableDebug",!1);r(this,"canEdit",!1);r(this,"isDateUpdated",!1);r(this,"dragElement");r(this,"tapCounter",0);r(this,"hoverItem",!1);r(this,"hoverEditIcon",!1);r(this,"hoverEditIconPopup",!1);r(this,"hoverEditTitle",!1);r(this,"hoverEditDescription",!1);r(this,"hoverOpen",!1);r(this,"hoverOption",!1);r(this,"hoverImage",!1);r(this,"hoverLink",!1);r(this,"isDisabledButton",!1);r(this,"isMobileModalShown",!1);r(this,"isDescriptionVisible",!1);r(this,"importConfig",{importPosition:{x:0,y:0},importIds:[],sourcePath:"",targetPath:"",browseLabel:"",acl:"",importOpened:!1,clearLink:!0,clearTitle:!1});r(this,"hasFullwidthChild",!1);r(this,"browseUpdate",new E);r(this,"mainService",b(Bl));r(this,"element",b(Jt));r(this,"logService",b(Ue));r(this,"itemsService",b(ue));r(this,"layoutService",b(He));r(this,"auth",b(gn));r(this,"graphService",b(Rl));r(this,"router",b(ci));r(this,"routerService",b(pt));r(this,"dataService",b(Ft));r(this,"notifications",b(Nl));r(this,"indexTreeService",b(Xn));r(this,"editorService",b(wt));r(this,"customFunctionsService",b(Pl));r(this,"elRef",b(Jt));r(this,"zone",b(Ye));r(this,"cdr",b(de));r(this,"filterLanguagesPipe",b(Je));r(this,"bpmnService",b($n));r(this,"languageChange",b(Si));r(this,"isReadOnly",()=>{var e,t,n;return!((e=this.permission)!=null&&e.edit)||!this.canHover()&&this.tapCounter<=1&&!((t=this.editState())!=null&&t.isEditDescription)&&!((n=this.editState())!=null&&n.isEditTitle)});r(this,"currentlyHovered","item");Ce(()=>{this.languageChange.version(),this.cdr.markForCheck()}),Ce(e=>{let t=this.itemForIconButton();if(!t){this.showIconEditButton.set(!1);return}let n=this.store.select(Mn(t)).pipe(U(u=>{var w;let g=u||this.newItemMode;return!(t!=null&&t.isUser)&&!this.hideTitle&&!((w=this.baseItem)!=null&&w.messengerMode)&&(g||this.showEditPopup)}),Rr()).subscribe(u=>this.showIconEditButton.set(u));e(()=>n.unsubscribe())})}get descriptionToolbarButtons(){var e,t;return eo((e=this.item)==null?void 0:e.isHazu,(t=this.permission)==null?void 0:t.isOwner)}ngAfterViewInit(){this.isCalendarView&&this.addDragElement()}ngAfterViewChecked(){this.hasFullwidthChild=this.elRef.nativeElement.innerHTML.includes("hazu-fullwidth-")}ngOnChanges(e){var t,n,u,g,w,I,D,Y;if(this.canEdit=(n=(t=this.permission)==null?void 0:t.edit)!=null?n:!1,this.isNestedEvent=!this.isBaseItem&&!!((u=this.item)!=null&&u.isHazu),e.item&&((g=this.item)!=null&&g.key)&&this.itemKeySignal.set(this.item.key),e.isBaseItem&&this.isBaseItemSignal.set(this.isBaseItem),e.isCalendarView&&this.isCalendarView&&this.addDragElement(),((0,pe.get)(e,"item")||(0,pe.get)(e,"hideTitle"))&&this.item){let ne=(0,pe.get)(e,"item.previousValue"),se=(0,pe.get)(e,"item.currentValue");(!ne||(0,pe.get)(se,"type")!==(0,pe.get)(ne,"type"))&&(this.showOptionsPopup=!1,this.showEditPopup=!1),(!ne||(0,pe.get)(se,"id")!==(0,pe.get)(ne,"id")||(0,pe.get)(e,"hideTitle"))&&this.itemForIconButton.set(this.item),this.fullscreenMode&&this.layoutService.updateModalData({item:this.item})}if((0,pe.get)(e,"hidePlaceItemButton")){let ne=!((w=this.item)!=null&&w.isPlaced)&&!this.hidePlaceItemButton&&this.graphPositionNotAtInt&&this.liveMode()&&!((I=this.nowMode())!=null&&I.value);this.logService.printDebugInfo(this.enableDebug,this,"ngOnChanges","hidePlaceItemButton changed: ".concat(String(this.hidePlaceItemButton),", showPlaceItemButtonCondition: ").concat(String(ne)),"important")}if((0,pe.get)(e,"grahpPositionNotAtInit")){let ne=!((D=this.item)!=null&&D.isPlaced)&&!this.hidePlaceItemButton&&this.graphPositionNotAtInt&&this.liveMode()&&!((Y=this.nowMode())!=null&&Y.value);this.logService.printDebugInfo(this.enableDebug,this,"ngOnChanges","grahpPositionNotAtInit changed: ".concat(String(this.graphPositionNotAtInt),", showPlaceItemButtonCondition: ").concat(String(ne)),"important")}}onItemIconPlayButtonClick(){let e=this.isActiveItem&&this.videoState===q.Started,t={clickedItem:this.item,activeItem
1Changed:!this.isActiveItem,shouldPauseVideo:e};this.logService.printDebugInfo(this.enableDebug,this,"onItemIconPlayButtonClick","eventData.focusItemChanged: ".concat(String(t.activeItemChanged))),this.playPauseIconClicked.emit(t)}handlePlay(){var e,t;this.isActiveItem?this.store.dispatch(De.startAction()):(this.store.dispatch(De.startAction()),this.store.dispatch(ua(Tn,this.item)),this.store.dispatch(De.seekToAction(wr(this.item.start,(t=(e=this.baseItem)==null?void 0:e.startWithStreamOffset)!=null?t:0))))}handlePause(){this.store.dispatch(De.pauseAction())}increaseTapCounter(e){this.canHover()||(e.pointerType==="mouse"&&this.tapCounter++,this.tapCounter++)}resetTapCounter(){this.canHover()||(this.tapCounter=0)}onMouseEnter(){var e;this.hoverItem=!0,this.zone.runOutsideAngular(()=>{this.elRef.nativeElement.addEventListener("mousemove",this.onMouseMove.bind(this))}),(e=this.item)!=null&&e.isPlaced&&this.graphService.hoveringListItem(this.item)}onMouseMove(e){this.hoverLink=!1,this.hoverImage=!1,e.target.closest("a")&&!e.target.closest("hz-item-icon-edit-button")?(this.hoverLink=!0,this.currentlyHovered!=="link"&&(this.currentlyHovered="link",this.cdr.detectChanges())):(0,pe.get)(e,"target.localName")==="img"&&((0,pe.get)(e,"target.className").indexOf("fr-dib")!==-1||(0,pe.get)(e,"target.className").indexOf("fr-dii")!==-1)?(0,pe.get)(e,"target.parentElement.localName")==="a"&&(0,pe.get)(e,"target.parentElement.target")==="_blank"?(this.hoverLink=!0,this.currentlyHovered!=="link"&&(this.currentlyHovered="link",this.cdr.detectChanges())):(this.hoverImage=!0,this.currentlyHovered!=="img"&&(this.currentlyHovered="img",this.cdr.detectChanges())):(0,pe.get)(e,"target.localName")==="hz-item"||(0,pe.get)(e,"target.className")==="itemContent"?(this.hoverItem=!0,this.currentlyHovered!=="item"&&(this.currentlyHovered="item",this.cdr.detectChanges())):this.currentlyHovered!=="item"&&(this.currentlyHovered="item",this.cdr.detectChanges())}onMouseLeave(){var e;this.hoverItem=!1,this.hoverImage=!1,this.hoverLink=!1,(e=this.item)!=null&&e.isPlaced&&this.graphService.clearHoveringListItem(),this.zone.runOutsideAngular(()=>{this.elRef.nativeElement.removeEventListener("mousemove",this.onMouseMove.bind(this))})}onReadMoreClick(e){var n,u,g;this.isEditMode||(n=getSelection())!=null&&n.toString().trim()||!this.canHover()&&this.tapCounter<=1||(this.isBaseItem?(g=this.baseItem)!=null&&g.hasVideo&&this.onItemIconPlayButtonClick():(u=this.item)!=null&&u.isHazu&&(!this.baseItem||!this.baseItem.hasVideo||!this.item.isPlaced)&&this.store.dispatch(Ht({item:this.item,mouseEvent:e})),!((0,pe.get)(e,"target.type")==="submit"||(0,pe.get)(e,"target.parentElement.type")==="submit")&&e.preventDefault())}onIconClickInEditMode(e){var t;this.cancelEdit(),!this.isBaseItem&&((t=this.item)!=null&&t.isHazu)&&this.store.dispatch(Ht({item:this.item,mouseEvent:e}))}handleAuxClick(e){var t;!this.isBaseItem&&((t=this.item)!=null&&t.isHazu)&&(e.button===1||e.ctrlKey||e.metaKey)&&(e.button===1&&e.preventDefault(),this.store.dispatch(Ht({item:this.item,mouseEvent:e})))}clickEditorDescription(e){let t=(0,pe.get)(e,"target.localName")==="img"&&!e.target.hasAttribute("usemap"),n=this.isLink(e.target),u=this.isArea(e.target);(this.canEdit&&(this.canHover()||this.tapCounter>1)||t||n||u)&&e.stopPropagation()}editTitleOrDescription(e=!0,t=!1,n){return B(this,null,function*(){yield this.editorService.startEditContent(this.item,this.listName,this.isEditMode,e,n),t&&this.hideMobileModal()})}cancelEdit(){this.newItemMode&&this.notifications.cancelItemClicked(),this.store.dispatch(Ve.cancelAction(this.listName,this.item)),this.tapCounter=0}updateTitleContent(e){this.store.dispatch(Ve.updateTitleAction(this.listName,e,this.item)),this.tapCounter=0}updateDescriptionContent(e){this.store.dispatch(Ve.updateDescriptionAction(this.listName,e,this.item)),this.tapCounter=0}saveItem(e,t){var u,g,w,I;let n=this.item.clone();e&&(e.altKey&&(n.$action="place"),(e.metaKey||e.ctrlKey)&&this.newItemMode&&(n.$action="createNext")),this.newItemMode&&(this.notifications.saveItemClicked(),n.defaultsSettings=(g=(u=this.baseItem)==null?void 0:u.defaultsSettings)!=null?g:ss),(w=this.baseItem)!=null&&w.messengerMode&&(n.$action="createNext"),(I=this.baseItem)!=null&&I.autoDate&&!this.isDateUpdated&&this.item.isNew&&(n.date=new Date().getTime()),n.dateCreated=new Date().getTime(),t&&this.elRef.nativeElement.animate([{opacity:1},{opacity:.2},{opacity:1}],{duration:100,iterations:3}),this.store.dispatch(Ve.completeAction(this.listName,n,t)),setTimeout(()=>{this.bpmnService.initBpmn(200)},300),this.tapCounter=0}readMoreClicked(){this.showEditModal()}showEditModal(){this.fullscreenMode=!0}showFullscreenModal(e){e?this.showEditModal():this.hideEditModal()}hideEditModal(){this.fullscreenMode=!1}showEditIconPopup(e){this.showEditPopup=e}readMoreClick(e){var t;this.readMoreClicked(),e.preventDefault(),e.stopPropagation(),!this.additionalDescription&&((t=this.baseItem)!=null&&t.showExtendedContent)&&this.store.dispatch(Ve.editAdditionalDescription(this.listName,this.item))}filterBrowseItems(){return()=>!0}browseButtonDisabled(){return e=>{var t,n;return!e||e.isHazu&&((t=this.baseItem)==null?void 0:t.link.indexOf(e.link))===0?!0:e.isUser||!!this.baseItem&&e.id===((n=this.baseItem)==null?void 0:n.id)}}importDone(){this.store.dispatch(xl()),this.importConfig.importOpened=!1}onIntersection(e){this.isDescriptionVisible=this.isDescriptionVisible||(0,pe.some)(e,"isIntersecting")}onEditorLinkClick(e){return B(this,null,function*(){let t=yield this.customFunctionsService.run(e,this.item,this.element.nativeElement,this.isSidebar);t&&(this.importConfig=W(W({},this.importConfig),t))})}get isPlayerPaused(){return this.videoState===q.Paused}get playTime(){var e;return this.baseItem?wr((e=this.item)==null?void 0:e.start,this.baseItem.startWithStreamOffset)*1e3:0}get itemTooltip(){var e,t;return this.baseItem&&((e=this.item)!=null&&e.isPlaced)&&this.baseItem.hasVideo?"ACTIONS.PLAY_AT":this.baseItem&&((t=this.item)!=null&&t.isHazu)&&(!this.item.hasVideo||this.item.hasVideo&&this.item.isPlaced)?"ACTIONS.NAVIGATE":""}get actionIcon(){var u,g,w,I;let e=this.baseItem&&((u=this.item)==null?void 0:u.isHazu),t=e&&!((g=this.item)!=null&&g.isPlaced),n=e&&((w=this.item)==null?void 0:w.isPlaced)&&!((I=this.baseItem)!=null&&I.hasVideo);return this.hoverEditTitle&&this.canEdit?Ge.EDIT:this.hoverImage?Ge.IMAGE:this.hoverLink?Ge.LINK:this.hoverOpen?Ge.NAVIGATE:this.hoverOption?Ge.SETTINGS:this.hoverEditIcon&&this.canEdit?Ge.EDIT_ICON:this.hoverEditDescription&&this.canEdit?Ge.EDIT:this.hoverItem&&(t||n)&&!this.hoverEditIconPopup?Ge.NAVIGATE:Ge.NONE}get isPopupOpened(){return this.showOptionsPopup||this.showEditPopup}get isEditMode(){var t;let e=this.editState();return Fe(e)&&(e.isEditTitle||e.isEditDescription||e.isEditAdditionalDescription)||!!((t=this.baseItem)!=null&&t.messengerMode)&&this.newItemMode}get title(){var t;let e=(0,pe.get)(this.editState(),"current.title",(t=this.item)==null?void 0:t.t
1itle);return this.isEditMode?e:this.filterLanguagesPipe.transform(e)}get description(){var t;let e=(0,pe.get)(this.editState(),"current.description",(t=this.item)==null?void 0:t.text);return this.isEditMode?e:this.filterLanguagesPipe.transform(e)}get isDescription(){return this.description.replace(/\n/g,"")}get additionalDescription(){var e;return(0,pe.get)(this.editState(),"current.additionalDescription",(e=this.item)==null?void 0:e.fulltext)}get canShowMobileAccessory(){var e,t,n;return(!this.canHover()||this.isMobile())&&!this.hideTitle&&(this.canEdit||!!((t=(e=this.baseItem)==null?void 0:e.votesEnabled)!=null&&t||(n=this.baseItem)!=null&&n.commentsEnabled))}isLink(e){return e.closest("a")}isArea(e){return e.closest("area")}isEditButton(e){return e.closest("hz-item-icon-edit-button")}pressEvent(e){}selectNonHoverItem(e){if(!e){this.tapCounter=0;return}++this.tapCounter}pressUp(e){e.preventDefault()}showMobileModal(){this.isMobileModalShown=!0}hideMobileModal(){this.isMobileModalShown=!1}showIconEditor(){this.itemIconEditor&&(this.itemIconEditor.showPopup(),this.hideMobileModal())}addDragElement(){return B(this,null,function*(){var e;if(!this.dragElement&&this.isCalendarView&&((e=this.elRef)!=null&&e.nativeElement)){let t=this.elRef.nativeElement;t.classList.add("fc-event"),t.classList.add("fc-h-event"),t.classList.add("fc-daygrid-event");let n=yield import("./chunk-QSE62YY2.js");this.dragElement=new n.Draggable(t,{longPressDelay:300})}})}removeDragElement(){this.dragElement=null}onTitleTabKey(e){return B(this,null,function*(){var t,n;if(!(!((t=this.editState())!=null&&t.isEditTitle)||e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),this.descriptionEditor&&((n=this.editState())!=null&&n.isEditDescription||(yield this.editTitleOrDescription(!1,!1),this.cdr.detectChanges()),this.descriptionEditor)))try{this.descriptionEditor.focus()}catch(u){console.error("Error calling focus method:",u)}})}onTitleEditorInitialized(e){e&&this.newItemMode&&this.titleEditor&&setTimeout(()=>{var t;(t=this.titleEditor)==null||t.focus()},50)}get showAccesories(){return!!this.item&&!(this.hideTitle&&this.isMobile())}get showIconbyState(){var e;return!((e=this.item)!=null&&e.isUser)&&!this.hideTitle}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-item-detailed"]],viewQuery:function(t,n){if(t&1&&ve(CC,5)(vC,5)(SC,5),t&2){let u;ae(u=le())&&(n.itemIconEditor=u.first),ae(u=le())&&(n.titleEditor=u.first),ae(u=le())&&(n.descriptionEditor=u.first)}},hostBindings:function(t,n){t&1&&h("mouseenter",function(){return n.onMouseEnter()})("mouseleave",function(){return n.onMouseLeave()})("click",function(g){return n.onReadMoreClick(g)})("auxclick",function(g){return n.handleAuxClick(g)})("mousedown",function(g){return n.handleAuxClick(g)})},inputs:{baseItem:"baseItem",item:"item",isSidebar:"isSidebar",listName:"listName",isFocused:"isFocused",isBaseItem:"isBaseItem",maxScore:"maxScore",playingPercent:"playingPercent",isActiveItem:"isActiveItem",videoState:"videoState",hideTitle:"hideTitle",alwaysShowDescription:"alwaysShowDescription",hidePlaceItemButton:"hidePlaceItemButton",graphPositionNotAtInt:"graphPositionNotAtInt",newItemMode:"newItemMode",permission:"permission",isCalendarView:"isCalendarView",canShowItemResetOption:"canShowItemResetOption"},outputs:{playPauseIconClicked:"playPauseIconClicked"},standalone:!1,features:[be],decls:24,vars:43,consts:[["descriptionPlaceholder",""],["itemIconEditor",""],["titleEditor",""],["descriptionEditor",""],[1,"detail-item",3,"press","pressup","pointerdown","mouseleave","item","ngClass"],[4,"ngIf"],["title","",3,"newItemMode","isSidebar","ngClass","hzTrackHover","items","click","onShow","onHover","hzTrackHoverChange","itemChange",4,"ngIf"],[3,"hidden","item","isActive","isPaused","enablePlayPause","percentCompleted","isPlaying","radius","editState","isEditMode","play","pause","navigateToHazu",4,"ngIf"],[3,"hidden","item","actionIcon","radius",4,"ngIf"],["class","ui image",4,"ngIf"],["class","sr-only",4,"ngIf"],["hzTab","","toolbarContainerId","editorToolbarId",3,"ngClass","newItemMode","isEditMode","content","preventPressButton","placeholder","isReadonly","multiLine","hzTrackHover","item","isBaseItem","baseItem","contentChanged","editTitleOrDescription","editorInitialized","enterClick","keydown.esc","tabKeyPressed","hzTrackHoverChange","click","mouseleave","mouseenter",4,"ngIf"],["class","ui red right ribbon label currentEditing",3,"ngClass","title",4,"ngIf"],[3,"item","itemOptionsState","isBaseItem","canEdit",4,"ngIf"],["title","",3,"ngClass","hideAssignee","item","baseItem","isEditMode","isDisabled","newItemMode","large","isSidebar","hidePlaceItemButton","grahpPositionNotAtInit","canShowItemResetOption","permission","showOptionsPopup","showOptionsPopupChange","cancelClick","mouseenter","hoverOpen","hoverOption","saveClick","
1showMobileAccessory","itemChange","dateChanged","extendItem","editClick",4,"ngIf"],[4,"ngIf","ngIfElse"],[3,"item","editState","baseItem","listName","isBaseItem","title","isModalShow","isModalShowChange",4,"ngIf"],["title","",3,"ngClass","isMobileModalShown","hideAssignee","item","baseItem","isEditMode","isDisabled","newItemMode","large","hidePlaceItemButton","grahpPositionNotAtInit","canShowItemResetOption","permission","showOptionsPopup","itemChange","showOptionsPopupChange","onCancelClick","mouseenter","onHoverOpen","onHoverOption","onSaveClick","onEditClick","onShowIconEditor","onEditDescription","onEditTitle","onModalHideClick",4,"ngIf"],[1,"item-info"],["class","date",4,"ngIf"],[1,"date"],["title","",3,"click","onShow","onHover","hzTrackHoverChange","itemChange","newItemMode","isSidebar","ngClass","hzTrackHover","items"],[3,"play","pause","navigateToHazu","hidden","item","isActive","isPaused","enablePlayPause","percentCompleted","isPlaying","radius","editState","isEditMode"],[3,"hidden","item","actionIcon","radius"],[1,"ui","image"],[3,"src"],[1,"sr-only"],["hzTab","","toolbarContainerId","editorToolbarId",3,"contentChanged","editTitleOrDescription","editorInitialized","enterClick","keydown.esc","tabKeyPressed","hzTrackHoverChange","click","mouseleave","mouseenter","ngClass","newItemMode","isEditMode","content","preventPressButton","placeholder","isReadonly","multiLine","hzTrackHover","item","isBaseItem","baseItem"],[1,"ui","red","right","ribbon","label","currentEditing",3,"ngClass","title"],[1,"pencil","icon"],[3,"item","itemOptionsState","isBaseItem","canEdit"],["title","",3,"showOptionsPopupChange","cancelClick","mouseenter","hoverOpen","hoverOption","saveClick","showMobileAccessory","itemChange","dateChanged","extendItem","editClick","ngClass","hideAssignee","item","baseItem","isEditMode","isDisabled","newItemMode","large","isSidebar","hidePlaceItemButton","grahpPositionNotAtInit","canShowItemResetOption","permission","showOptionsPopup"],["toolbarContainerId","editorToolbarId","hzTab","",3,"hidden","ngClass","newItemMode","isEditMode","content","preventPressButton","placeholder","toolbarButtons","isReadonly","item","hzTrackHover","isTitle","isBaseItem","baseItem","contentChanged","editTitleOrDescription","keydown.esc","enterClick","saveAndKeepOpen","mouseleave","mouseenter","click","linkClick","hzTrackHoverChange",4,"ngIf"],["position","left top","autoClose","outsideClick",3,"ngStyle","isOpen","isOpenChange","show",4,"ngIf"],[1,"clearfix"],["class","add-description-button","href","javascript:;","translate","",3,"click","focus",4,"ngIf"],["class","ui tiny blue button basic more-info-button","translate","","hzTab","",3,"click",4,"ngIf"],["class","readMoreBtn",4,"ngIf"],["toolbarContainerId","editorToolbarId","hzTab","",3,"contentChanged","editTitleOrDescription","keydown.esc","enterClick","saveAndKeepOpen","mouseleave","mouseenter","click","linkClick","hzTrackHoverChange","hidden","ngClass","newItemMode","isEditMode","content","preventPressButton","placeholder","toolbarButtons","isReadonly","item","hzTrackHover","isTitle","isBaseItem","baseItem"],["position","left top","autoClose","outsideClick",3,"isOpenChange","show","ngStyle","isOpen"],["hz-item",""],["type","copy",3,"rootPath","filter","update","label","selectedIds","acl","editAfterImport","setParamOnImport","clearLink","clearTitle","preserveDate","multiselect","isDisabled","onBack","onClose","onDone",4,"ngIf"],["type","copy",3,"onBack","onClose","onDone","rootPath","filter","update","label","selectedIds","acl","editAfterImport","setParamOnImport","clearLink","clearTitle","preserveDate","multiselect","isDisabled"],["href","javascript:;","translate","",1,"add-description-button",3,"click","focus"],["translate","","hzTab","",1,"ui","tiny","blue","button","basic","more-info-button",3,"click"],[1,"readMoreBtn"],[1,"ui","button","small","primary","readmore",3,"click"],["hzBpmn","","hzModelViewer","",1,"description-placeholder",3,"innerHtml","hzWidget","hzSignatureContext"],[3,"isModalShowChange","item","editState","baseItem","listName","isBaseItem","title","isModalShow"],["title","",3,"itemChange","showOptionsPopupChange","onCancelClick","mouseenter","onHoverOpen","onHoverOption","onSaveClick","onEditClick","onShowIconEditor","onEditDescription","onEditTitle","onModalHideClick","ngClass","isMobileModalShown","hideAssignee","item","baseItem","isEditMode","isDisabled","newItemMode","large","hidePlaceItemButton","grahpPositionNotAtInit","canShowItemResetOption","permission","showOptionsPopup"]],template:function(t,n){if(t&1){let u=O();a(0,"hz-item",4),f(1,"formatDuration"),f(2,"translate"),h("press",function(w){return m(u),_(n.pressEvent(w))})("pressup",function(w){return m(u),_(n.pressUp(w))})("pointerdown",function(w){return m(u),_(n.increaseTapCounter(w))})("mouseleave",function(){return m(u),_(n.resetTapCounter())}),y(3,MC,4,2,"item-info",5),a(4,"icon-info"),y(5,zC,2,9,"hz-item-icon-edit-button",6)(6,kC,2,14,"hz-play-and-progress-icon",7)(7,VC,2,8,"hz-icon-by-state",8)(8,DC,2,1,"div",9),l(
1),a(9,"header"),y(10,LC,2,1,"h1",10),f(11,"translate"),y(12,AC,6,23,"hz-container-editor",11)(13,NC,6,14,"a",12),l(),a(14,"extra-info"),y(15,RC,1,4,"hz-item-info",13),l(),a(16,"item-accessories"),y(17,BC,1,16,"hz-item-accessory",14),l(),a(18,"footer"),y(19,WC,7,5,"section",15)(20,$C,1,3,"ng-template",null,0,R),l()(),y(22,QC,1,7,"hz-fullscreen-modal",16)(23,KC,1,16,"hz-item-mobile-accessory",17)}if(t&2){let u,g=x(21);c("item",n.item)("ngClass",Xr(26,wC,[n.isBaseItem,n.item==null?null:n.item.isHazu,!n.isBaseItem,(n.item==null?null:n.item.isPlaced)&&n.baseItem&&n.baseItem.hasVideo,!n.canEdit,n.isEditMode,(n.baseItem==null?null:n.baseItem.messengerMode)&&n.isEditMode,(n.baseItem==null?null:n.baseItem.messengerMode)&&n.baseItem!==n.item,(n.baseItem==null?null:n.baseItem.messengerMode)&&((u=n.identity())==null?null:u.displayName)===(n.item==null?null:n.item.displayName),n.isCalendarView,n.isPopupOpened,n.hasFullwidthChild&&n.isEditMode,(n.item==null?null:n.item.date)&&(n.item==null?null:n.item.isPlaced),n.hideTitle])),J("title",j(2,21,n.itemTooltip,T(41,OC,j(1,18,n.playTime,!0))))("e2e-title",n.item==null?null:n.item.titleText.trim()),p(3),c("ngIf",(n.baseItem==null?null:n.baseItem.messengerMode)&&n.item.id!==n.baseItem.id),p(2),c("ngIf",n.showIconEditButton()),p(),c("ngIf",!n.item.isUser&&!!n.item.icon&&!n.hideTitle),p(),c("ngIf",n.showIconbyState),p(),c("ngIf",n.item.isUser&&!n.hideTitle&&(n.item.profileImageUploaded||n.item.profileImageURL||n.item.socialImageURL)),p(2),c("ngIf",n.hideTitle&&n.isBaseItem&&v(11,24,n.title)),p(2),c("ngIf",!n.hideTitle),p(),c("ngIf",n.item.editorSessionUserId&&(n.permission==null?null:n.permission.edit)),p(2),c("ngIf",!n.hideTitle&&(n.isBaseItem||n.item.type==="question")),p(2),c("ngIf",n.showAccesories),p(2),c("ngIf",n.alwaysShowDescription||n.isDescriptionVisible)("ngIfElse",g),p(3),c("ngIf",n.fullscreenMode),p(),c("ngIf",n.item&&(!n.canHover()||n.isMobile()))}},dependencies:[xn,X,k,rn,H,Ti,Wn,al,Kn,qn,oe,$t,mt,zi,ki,Vi,So,ep,vp,wp,uo,L,In,dt,Yt],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{font-size:14px}[_nghost-%COMP%]   hz-item[_ngcontent-%COMP%]{display:block;font-size:.8em;padding:1em;position:relative;-webkit-user-select:auto!important;user-select:auto!important}[_nghost-%COMP%]     hz-item.regular:not(.isEditMode):has([class*=hazu-fullwidth-]) header .fr-view{max-height:1.6em;overflow:hidden}[_nghost-%COMP%]   hz-item-info[_ngcontent-%COMP%]{font-size:1.2em;font-weight:400}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]   hz-item-info[_ngcontent-%COMP%]{font-size:1.1em}[_nghost-%COMP%]   icon-info[_ngcontent-%COMP%]{display:flex;justify-content:center;min-width:3.8em}[_nghost-%COMP%]   .isPopupOpened[_ngcontent-%COMP%]{background:#00000008;color:#000c}[_nghost-%COMP%]:hover   .isPopupOpened[_ngcontent-%COMP%]{background:initial;color:initial}[_nghost-%COMP%]   [_ngcontent-%COMP%]:not(.large)   footer[_ngcontent-%COMP%]{margin-left:4.8em}[_nghost-%COMP%]   .isEditMode[_ngcontent-%COMP%]   [_ngcontent-%COMP%]:not(.large)   footer[_ngcontent-%COMP%]{margin-left:4.8em}[_nghost-%COMP%]   .add-description-button[_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]   hz-play-and-progress-icon[_ngcontent-%COMP%], [_nghost-%COMP%]   hz-icon-by-state[_ngcontent-%COMP%]{position:relative}[_nghost-%COMP%]   [hidden][_ngcontent-%COMP%]{display:none}[_nghost-%COMP%]     .priority-10 header .header, [_nghost-%COMP%]     .priority-10 header .fr-view{font-size:1.7em;line-height:1.7em}[_nghost-%COMP%]     .priority-9 header .header, [_nghost-%COMP%]     .priority-8 header .header, [_nghost-%COMP%]     .priority-7 header .header, [_nghost-%COMP%]     .priority-9 header .fr-view, [_nghost-%COMP%]     .priority-8 header .fr-view, [_nghost-%COMP%]     .priority-7 header .fr-view{font-size:1.6em;line-height:1.7em}[_nghost-%COMP%]     .priority-0 header .header, [_nghost-%COMP%]     .priority-6 header .header, [_nghost-%COMP%]     .priority-5 header .header, [_nghost-%COMP%]     .priority-4 header .header, [_nghost-%COMP%]     .priority-0 header .fr-view, [_nghost-%COMP%]     .priority-6 header .fr-view, [_nghost-%COMP%]     .priority-5 header .fr-view, [_nghost-%COMP%]     .priority-4 header .fr-view{font-size:1.4em;line-height:1.8em}[_nghost-%COMP%]     .priority-3 header .header, [_nghost-%COMP%]     .priority-2 header .header, [_nghost-%COMP%]     .priority-1 header .header, [_nghost-%COMP%]     .priority-3 header .fr-view, [_nghost-%COMP%]     .priority-2 header .fr-view, [_nghost-%COMP%]     .priority-1 header .fr-view{font-size:1.1em;line-height:1.6em}[_nghost-%COMP%]     .icon.priority-0{font-size:.5em}[_nghost-%COMP%]     .icon.priority-1{font-size:.6em}[_nghost-%COMP%]     .icon.priority-2{font-size:.7em}[_nghost-%COMP%]     .icon.priority-3{font-size:.8em}[_nghost-%COMP%]     .icon.priority-4{font-size:.9em}[_nghost-%COMP%]     .icon.priority-5{font-size:1em}[_nghost-%COMP%]     .icon.priority-6{font-size:1.1em}[_nghost-%COMP%]     .icon.priority-7{font-size:1.2em}[_nghost-%COMP%]     .icon.priority-8{font-size:1.3em}[_nghost-%COMP%]     .icon.priority-9{font-size:1.4em}[_nghost-%COMP%]     .icon.priority-10{font-size:1.5em}[_nghost-%COMP%]     header{font-weight:400}[_nghost-%COMP%]     header .fr-view p{font-size:inherit}[_nghost-%COMP%]     .ui.content header .fr-view:not(:has(p)){line-height:1.6em}[_nghost-%COMP%]     .ui.header>.description{font-weight:400}[_nghost-%COMP%]     .ui.header>.description>p{font-size:inherit!important}[_nghost-%COMP%]     hz-container-editor.large .description p{line-height:1.2em!important}[_nghost-%COMP%]   .regular.isEditModeMessenger[_ngcontent-%COMP%]     hz-item-icon-edit-button{display:inline-block}[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]     .hz-icon-edit{padding:.2em 1.5em .2em .5em}[_nghost-%COMP%]   .detail-item.isEditMode[_ngcontent-%COMP%]{border-color:#db2828!important}[_nghost-%COMP%]   .detail-item.isEditModeMessenger[_ngcontent-%COMP%]{border-color:#4183c4!important;margin-bottom:0!important}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]{border-color:#d1d2d2;margin-bottom:2.5rem;width:60%}[_nghost-%COMP%]   .detail-item.messengerMode-owner[_ngcontent-%COMP%]{margin-left:auto}[_nghost-%COMP%]   .detail-item[_ngcontent-%COMP%]{border:1px solid transparent;border-radius:.3em}[_nghost-%COMP%]   .detail-item.isEditMode[_ngcontent-%COMP%]   .add-description-button[_ngcontent-%COMP%]{display:block;font-size:1.2em;line-height:1.8em}[_nghost-%COMP%]   .detail-item.isEditMode[_ngcontent-%COMP%]   .more-info-button[_ngcontent-%COMP%]{margin-top:1em}[_nghost-%COMP%]     .detail-item:not(.hideTitle) .item>.itemContent{min-height:32.5px}[_nghost-%COMP%]   .readMoreBtn[_ngcontent-%COMP%]{margin-top:10px}[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{background-color:#f1f1f2;border-radius:5px;cursor:pointer;display:none;height:2em;left:-15px;padding:0 5px;position:absolute;width:4.2rem}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{background-color:transparent}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{background-color:transparent}}@media only screen and (max-width:1300px){[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{left:-5px;width:2rem}}[_nghost-%COMP%]   .currentEditing[_ngcontent-%COMP%]{margin-left:-1.2em!important;position:absolute;top:-1em;white-space:nowrap}
1[_nghost-%COMP%]   .currentEditing.large[_ngcontent-%COMP%]{margin-left:-1em!important;top:-.5em}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{left:-12px}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]   div.image[_ngcontent-%COMP%]{align-items:center;display:flex;height:5.3em;width:5.3em}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]   div.image[_ngcontent-%COMP%]   img[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]     .header header:not(.large-exclude) .fr-view{font-size:1.9em!important;font-weight:400}[_nghost-%COMP%]   .large[_ngcontent-%COMP%]   footer[_ngcontent-%COMP%]{margin-top:1em}[_nghost-%COMP%]   hz-item[_ngcontent-%COMP%]:not(.large)   hz-container-editor[_ngcontent-%COMP%]     .fr-view{color:#000000b3}[_nghost-%COMP%]   header[_ngcontent-%COMP%]   hz-container-editor[_ngcontent-%COMP%]{display:inline-flex}[_nghost-%COMP%]   hz-container-editor[_ngcontent-%COMP%]{outline:none;width:100%}[_nghost-%COMP%]   .isHazu[_ngcontent-%COMP%], [_nghost-%COMP%]   .canPlay[_ngcontent-%COMP%]{cursor:pointer}[_nghost-%COMP%]   .isPopupOpened.regular[_ngcontent-%COMP%]     hz-item-options{display:flex}[_nghost-%COMP%]   .isPopupOpened[_ngcontent-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{display:inline-block!important}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-item[_ngcontent-%COMP%]{padding:0;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]{margin-bottom:0!important;width:90%}[_nghost-%COMP%]   .detail-item.messengerMode.regular[_ngcontent-%COMP%]:hover{border-color:#8c8d8d!important}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]     .item{padding:5px}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]     .title{margin-top:.3em}footer[_ngcontent-%COMP%]{margin-left:0!important}[_nghost-%COMP%]   .currentEditing[_ngcontent-%COMP%]{top:-2em}[_nghost-%COMP%]   .detail-item.regular[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.regular.isHazu[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.isEditMode[_ngcontent-%COMP%]{border-color:transparent!important}[_nghost-%COMP%]   .detail-item.regular.isEditModeMessenger[_ngcontent-%COMP%]{border-color:#4183c4!important;margin-bottom:0!important}hz-item-agenda   hz-unplaced-agenda-list   [_nghost-%COMP%]{border-top:1px solid transparent;border-bottom:1px solid rgb(218,217,215);border-radius:unset!important;margin:0 -1em!important;padding:.5em 1em!important}[_nghost-%COMP%]:has([class*=hazu-fullwidth-]):not(:has(hz-item.isEditMode)){padding-top:0!important}[_nghost-%COMP%]     .regular hz-item-options.nested-event-btn{height:inherit;margin-top:0}[_nghost-%COMP%]     .event-extra-info{float:left}[_nghost-%COMP%]:has(hz-item.isEditMode){border-top:1px solid #db2828!important;border-bottom:1px solid #db2828!important}hz-new-item   [_nghost-%COMP%]:has(hz-item.isEditMode){border-top:none!important;border-bottom:none!important}hz-new-item   .item[_nghost-%COMP%]:active, hz-new-item   .item[_nghost-%COMP%]:hover{background-color:transparent!important}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-item[_ngcontent-%COMP%]{padding:0;-webkit-touch-callout:none;-webkit-user-select:none;user-select:none}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]{margin-bottom:0!important;width:90%}[_nghost-%COMP%]   .detail-item.messengerMode.regular[_ngcontent-%COMP%]:hover{border-color:#8c8d8d!important}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]     .item{padding:5px}[_nghost-%COMP%]   .detail-item.messengerMode[_ngcontent-%COMP%]     .title{margin-top:.3em}footer[_ngcontent-%COMP%]{margin-left:0!important}[_nghost-%COMP%]   .currentEditing[_ngcontent-%COMP%]{top:-2em}[_nghost-%COMP%]   .detail-item.regular[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.regular.isHazu[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.isEditMode[_ngcontent-%COMP%]{border-color:transparent!important}[_nghost-%COMP%]   .detail-item.regular.isEditModeMessenger[_ngcontent-%COMP%]{border-color:#4183c4!important;margin-bottom:0!important}hz-item-agenda   hz-unplaced-agenda-list   [_nghost-%COMP%]{border-top:1px solid transparent;border-bottom:1px solid rgb(218,217,215);border-radius:unset!important;margin:0 -1em!important;padding:.5em 1em!important}
1[_nghost-%COMP%]:has([class*=hazu-fullwidth-]):not(:has(hz-item.isEditMode)){padding-top:0!important}[_nghost-%COMP%]     .regular hz-item-options.nested-event-btn{height:inherit;margin-top:0}[_nghost-%COMP%]     .event-extra-info{float:left}[_nghost-%COMP%]:has(hz-item.isEditMode){border-top:1px solid #db2828!important;border-bottom:1px solid #db2828!important}hz-new-item   [_nghost-%COMP%]:has(hz-item.isEditMode){border-top:none!important;border-bottom:none!important}hz-new-item   .item[_nghost-%COMP%]:active, hz-new-item   .item[_nghost-%COMP%]:hover{background-color:transparent!important}}.whiteColor[_ngcontent-%COMP%]{background:#fff}@media only screen and (any-hover:hover)and (any-pointer:fine){@container sidebar (max-width: $large-breakpoint){[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{visibility:hidden}[_nghost-%COMP%]:hover   .regular[_ngcontent-%COMP%]     hz-item-icon-edit-button, [_nghost-%COMP%]:active   .regular[_ngcontent-%COMP%]     hz-item-icon-edit-button{display:none}}}@media only screen and (any-hover:hover)and (any-pointer:fine)and (max-width:992px){[_nghost-%COMP%]   hz-item-icon-edit-button[_ngcontent-%COMP%]{visibility:hidden}[_nghost-%COMP%]:hover   .regular[_ngcontent-%COMP%]     hz-item-icon-edit-button, [_nghost-%COMP%]:active   .regular[_ngcontent-%COMP%]     hz-item-icon-edit-button{display:none}}@media only screen and (any-hover:hover)and (any-pointer:fine){.ui.selection.list.list   [_nghost-%COMP%]:hover, .ui.selection.list   [_nghost-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.regular[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.regular.isHazu[_ngcontent-%COMP%]:hover{background:initial;color:initial}[_nghost-%COMP%]   .regular[_ngcontent-%COMP%]     hz-item-icon-edit-button, [_nghost-%COMP%]   .regular[_ngcontent-%COMP%]     hz-item-options{display:none}[_nghost-%COMP%]   .detail-item.regular.viewOnly[_ngcontent-%COMP%]:hover{border-color:transparent}[_nghost-%COMP%]:hover   .regular[_ngcontent-%COMP%]     hz-item-options{display:flex}[_nghost-%COMP%]:hover   hz-item-icon-edit-button[_ngcontent-%COMP%]{display:inline-block}[_nghost-%COMP%]:hover   .detail-item.isEditMode[_ngcontent-%COMP%]{background:transparent!important}.messengerMode[_nghost-%COMP%]:hover   .regular[_ngcontent-%COMP%]     .accessories   hz-item-icon-edit-button{display:inline-block}[_nghost-%COMP%]   .detail-item.regular[_ngcontent-%COMP%]:hover, [_nghost-%COMP%]   .detail-item.regular.isHazu[_ngcontent-%COMP%]:hover{border-color:#d1d2d2}[_nghost-%COMP%]   .detail-item.regular[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   .detail-item.regular.isHazu[_ngcontent-%COMP%]:focus, [_nghost-%COMP%]   .detail-item.regular[_ngcontent-%COMP%]:active, [_nghost-%COMP%]   .detail-item.regular.isHazu[_ngcontent-%COMP%]:active{border-color:#767676}}"],changeDetection:0}));let o=s;return o})();var ZC=o=>({toggleBaseContent:o});function JC(o,s){o&1&&S(0,"i",6)}function XC(o,s){o&1&&S(0,"i",7)}function e1(o,s){if(o&1){let i=O();a(0,"span",3),h("click",function(){m(i);let t=d();return _(t.isVisible=!t.isVisible)}),y(1,JC,1,0,"i",4)(2,XC,1,0,"i",5),l()}if(o&2){let i=d();p(),c("ngIf",!i.isVisible),p(),c("ngIf",i.isVisible)}}function t1(o,s){if(o&1&&(S(0,"hz-item-detailed",2),f(1,"async")),o&2){let i=d();c("hideTitle",i.isSidebar?i.baseItem.hideHazuTitle:!i.isPageTitleVisible())("alwaysShowDescription",!0)("item",i.baseItem)("baseItem",i.baseItem)("isSidebar",i.isSidebar)("permission",v(1,6,i.permission$))}}var AM=(()=>{let s=class s{constructor(){r(this,"store",b(V));r(this,"isSidebar",!1);r(this,"isCollapsible",!1);r(this,"baseItem");r(this,"isPageTitleVisible",this.store.selectSignal(ws));r(this,"isMobile",this.store.selectSignal(Nt));r(this,"canHover",this.store.selectSignal(hi));r(this,"permission$");r(this,"isVisible",!0);r(this,"showNewItemStructure",!1);r(this,"toggleBaseContent",()=>{this.isCollapsible&&(this.isVisible=!this.isVisible)});this.showNewItemStructure=Vt.showNewItemStructure}ngOnChanges(e){if(e.baseItem&&this.baseItem){let t=e.baseItem.previousValue;this.baseItem.key!==(t==null?void 0:t.key)&&(this.permission$=this.store.select(Ei(this.baseItem)))}}};r(s,"\u0275fac",function(t){return new(t||s)}),r(s,"\u0275cmp",P({type:s,selectors:[["hz-base-item"]],inputs:{isSidebar:"isSidebar",isCollapsible:"isCollapsible",baseItem:"baseItem"},standalone:!1,features:[be],decls:3,vars:7,consts:[["hzHotkeys","","hzMermaid","",3,"hotkeys"],["class","showHideButton hide-in-print",3,"click",4,"ngIf"],["isBaseItem","true","listName","BaseItemView",1,"ui","selection","list","hz-base-item",3,"hideTitle","alwaysShowDescription","item","baseItem","isSidebar","permission"],[1,"showHideButton","hide-in-print",3,"click"],["class","chevron down icon",4,"ngIf"],["class","chevron up icon",4,"ngIf"],[1,"chevron","down","icon"],[1,"chevron","up","icon"]],template:function(t,n){t&1&&(a(0,"section",0),y(1,e1,3,2,"span",1),ei(2,t1,2,8,"hz-item-detailed",2),l()),t&2&&(G("collapsed",!n.isVisible),c("hotkeys",T(5,ZC,n.toggleBaseContent)),p(),c("ngIf",n.isCollapsible),p(),ti(n.isVisible&&n.baseItem?2:-1))},dependencies:[k,Qn,$l,yp,ce],styles:[".isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%]{display:flex;position:relative;width:100%}[_nghost-%COMP%] > section[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   hz-item-detailed[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%]   .showHideButton[_ngcontent-%COMP%]{background-color:#fff;border:1px solid rgba(34,36,38,.15);border-bottom-left-radius:2rem;border-bottom-right-radius:2rem;border-top:0;
1box-shadow:0 1px 2px #22242626;color:#666;cursor:pointer;display:flex;height:1.8rem;justify-content:center;left:calc(50% - 1.5rem);margin:0 auto;padding-top:5px;position:fixed;-webkit-user-select:none;user-select:none;width:3rem;z-index:200}[_nghost-%COMP%]   .showHideButton[_ngcontent-%COMP%]:hover{box-shadow:0 1px 2px #2224264d}[_nghost-%COMP%]   .showHideButton[_ngcontent-%COMP%]   i[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%]   .showHideButton[_ngcontent-%COMP%]   i.chevron.up[_ngcontent-%COMP%]{margin-top:-1px}[_nghost-%COMP%]   .collapsed[_ngcontent-%COMP%]{margin-bottom:1rem}.with-shadow[_nghost-%COMP%]{box-shadow:0 1px 2px #2224264d;margin-bottom:2px}.with-shadow[_nghost-%COMP%]   .collapsed[_ngcontent-%COMP%]{margin-bottom:0}.no-padding[_nghost-%COMP%]   .collapsed[_ngcontent-%COMP%]{padding-bottom:0}@container sidebar (max-width: 767px){[_nghost-%COMP%]   hz-item-detailed[_ngcontent-%COMP%]{margin-top:1.3rem!important}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{display:flex;width:100%}}@media only screen and (max-width:767px){[_nghost-%COMP%]   hz-item-detailed[_ngcontent-%COMP%]{margin-top:1.3rem!important}[_nghost-%COMP%]   section[_ngcontent-%COMP%]{display:flex;width:100%}}"],changeDetection:0}));let o=s;return o})();export{Tc as a,$l as b,me as c,Ql as d,Kl as e,ql as f,Zl as g,Jl as h,a1 as i,Xl as j,tc as k,ic as l,l1 as m,c1 as n,p1 as o,d1 as p,_1 as q,u1 as r,rc as s,xv as t,Ev as u,dr as v,Pv as w,Mv as x,zv as y,kv as z,Vv as A,oi as B,Dv as C,Lv as D,Av as E,co as F,mo as G,uo as H,go as I,bc as J,zc as K,Vc as L,Lc as M,Uc as N,Gc as O,Vi as P,So as Q,Zt as R,yo as S,To as T,bo as U,jT as V,WT as W,$T as X,fg as Y,mI as Z,wr as _,vI as $,_p as aa,NE as ba,dc as ca,Di as da,so as ea,ep as fa,Xi as ga,sp as ha,Bg as ia,xr as ja,Fg as ka,up as la,gp as ma,vp as na,yp as oa,AM as pa};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.