1import{c as pt,d as mt,m as dt,p as ut}from"./chunk-GH3ZNHSB.js";import{s as lt}from"./chunk-4JCYTRQ6.js";import{ha as ct}from"./chunk-LF3ALSUW.js";import{d as st}from"./chunk-DHLFCAHB.js";import{a as ee,b as te,c as ie}from"./chunk-4TN5LNVR.js";import{Ba as it,Ca as nt,Da as ot,Fa as rt,Na as at,ya as tt}from"./chunk-BQUK3EQE.js";import{Ih as Je,Lb as Ke,Lh as Qe,Ma as je,Mh as Xe,Ue as $e,Ze as Ye,aj as U,bh as X,gh as qe,if as Q,ka as $,mi as et,qe as Ge,x as Re}from"./chunk-6Y6SJRNX.js";import{F as Ve,G as De,I as R,W as Ze}from"./chunk-STDQTB2J.js";import{E as Be,ca as He,j as Ue,u as Le,v as Fe}from"./chunk-HOJB2KOO.js";import{T as Z,e as N,f as j,g as ke}from"./chunk-OLMDJNX5.js";import{c as H}from"./chunk-FDN33MRG.js";import{c as Y,d as D}from"./chunk-GEDR3PBK.js";import{b as q,c as We,g as J}from"./chunk-A26PE6T6.js";import{k as z,n as V,t as Ee}from"./chunk-F45KP72J.js";import{Cc as l,Db as be,Dc as c,Dd as m,Ea as Ce,Ec as p,Ed as u,Fa as Oe,Fb as Pe,Fc as d,Fd as B,Ia as G,Ja as S,Jc as ye,Kc as Ie,Lb as a,Mc as w,Pa as v,Qa as M,Sc as _,V as he,Vc as h,Wc as Ne,Xa as ve,Xb as x,Xc as xe,Y as re,bd as Te,cb as Me,cc as y,cd as we,dc as Se,fd as C,gd as se,hc as b,hd as P,ld as A,md as E,nd as k,r as F,ra as ae,ud as ce,v as _e,vd as I,wc as T,xd as Ae,z as oe}from"./chunk-Z5YOIIAC.js";import{c as ze}from"./chunk-Y5HJX4PP.js";import{l as r,t as L}from"./chunk-ATLPHYUF.js";var me=(()=>{let o=class o{constructor(n,t,e,g){r(this,"store");r(this,"auth");r(this,"layoutService");r(this,"cookieConsentService");r(this,"user");r(this,"auth$");this.store=n,this.auth=t,this.layoutService=e,this.cookieConsentService=g,this.auth$=this.store.select(He)}showAccountSettings(){this.layoutService.showModal(X.ACCOUNT_SETTINGS)}showCookieConsentSettings(){this.cookieConsentService.show()}};r(o,"\u0275fac",function(t){return new(t||o)(x(N),x($),x(U),x(st))}),r(o,"\u0275cmp",y({type:o,selectors:[["hz-my-account"]],inputs:{user:"user"},standalone:!1,decls:12,vars:9,consts:[[1,"ui","grid","middle","aligned"],[1,"six","wide","column"],[3,"title","user","isAccount"],[1,"ten","wide","column"],[1,"ui","center","aligned"],[3,"title"],["translate","",1,"accountSettings",3,"click"]],template:function(t,e){if(t&1&&(c(0,"div",0)(1,"div",1),d(2,"hz-user-icon",2),m(3,"async"),p(),c(4,"div",3)(5,"div",4)(6,"h3",5),m(7,"async"),C(8),p(),c(9,"div")(10,"a",6),_("click",function(){return e.showAccountSettings()}),C(11," ACCOUNT_SETTINGS.TITLE "),p()()()()()),t&2){let g,f;a(2),l("title",(g=u(3,5,e.auth$))==null?null:g.email)("user",e.user)("isAccount",!0),a(4),l("title",(f=u(7,7,e.auth$))==null?null:f.email),a(2),P(" ",e.user==null?null:e.user.displayName," ")}},dependencies:[qe,Y,Ee],styles:["[_nghost-%COMP%]{display:flex;flex-direction:row;justify-content:center;margin-top:15px;padding:0 40px;text-align:center}[_nghost-%COMP%] .user-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;font-size:16px;justify-content:center;margin-left:10px}[_nghost-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:0;margin-top:.5em}"],changeDetection:0}));let i=o;return i})();var gt=(()=>{let o=class o{constructor(n,t,e){r(this,"dataService");r(this,"eventsDataService");r(this,"itemDataService");this.dataService=n,this.eventsDataService=t,this.itemDataService=e}getUnreadCount(n){return this.itemDataService.findUnreadNotifications(n,!0).pipe(oe(t=>t.length))}getAllNotificationsCount(n){return this.itemDataService.observeNotifications(n).pipe(oe(t=>t.length))}updateViewedStatus(n){let t=n.notificationViewedAt,e=this.dataService.batchUpdate(),g=t?null:new Date().getTime();return e.partItemUpdate(n,"notification.viewedAt",g),e.save()}markAllAsViewed(n){return L(this,null,function*(){let t=yield this.getUnread(n),e=this.dataService.batchUpdate();return t.forEach(g=>{e.partItemUpdate(g,"notification.viewedAt",new Date().getTime())}),e.save()})}getUnread(n){try{return _e(this.getUnreadObservable(n).pipe(he(1)))}catch(t){return console.error(t),Promise.resolve([])}}getUnreadObservable(n,t){return this.itemDataService.findUnreadNotifications(n,!0,t)}addManualNotification(n,t,e,g){return L(this,null,function*(){let f=this.dataService.batchUpdate(),O=this.eventsDataService.manualNotificationEvent(n,t,e,g);return f.addEventData(O),f.save()})}removeNotification(n){let t=this.dataService.batchUpdate();return t.remove(n),t.save()}};r(o,"\u0275fac",function(t){return new(t||o)(G(je),G(Ve),G(De))}),r(o,"\u0275prov",Ce({token:o,factory:o.\u0275fac}));let i=o;return i})();var vt="notifications",K=ke(vt),ft=K,ri=j(K,i=>i.unreadCount),_t=j(K,i=>i.countToDisplay),ai=j(K,i=>i.recentNotifications),si=j(K,i=>({message:i.toastMessage,messageType:i.toastMessageType,visible:i.toastVisible,duration:i.toastDuration,action:i.toastAction}));var Mt=i=>({"notification-viewed":i});function bt(i,o){if(i&1&&(c(0,"div",6),d(1,"img",7),m(2,"iconRadius"),m(3,"
1iconRadius"),p()),i&2){let s=h();a(),Te("width",B(2,5,s.item,2),"px")("height",B(3,8,s.item,2),"px"),l("src",s.item.logo?s.item.logo:s.item.profileImageUploaded||s.item.profileImageURL||s.item.socialImageURL,Pe)}}var de=(()=>{let o=class o{constructor(n){r(this,"store");r(this,"item");r(this,"markAsViewed",new ve);r(this,"sidebarItem");this.store=n}ngOnInit(){R(this.item)&&(this.sidebarItem=this.item.clone(),this.sidebarItem.priority=5,this.item.isUser&&!(this.item.profileImageUploaded||this.item.profileImageURL||this.item.socialImageURL)&&(this.sidebarItem.icon="fa-user",this.sidebarItem.color="#58585a"))}markAs(n){this.markAsViewed.emit({viewed:n,item:this.item})}removeNotification(){this.item&&this.store.dispatch(rt(this.item))}};r(o,"\u0275fac",function(t){return new(t||o)(x(N))}),r(o,"\u0275cmp",y({type:o,selectors:[["hz-recent-notifications-item"]],inputs:{item:"item"},outputs:{markAsViewed:"markAsViewed"},standalone:!1,decls:12,vars:16,consts:[[3,"item","isAutoPriority"],[3,"radius","item"],["class","ui image",4,"ngIf"],[1,"ui","blue","empty","circular","label",3,"click","ngClass"],[1,"ui","icon",3,"click"],[1,"grey","large","close","icon"],[1,"ui","image"],[3,"src"]],template:function(t,e){t&1&&(c(0,"a")(1,"hz-item",0)(2,"icon-info"),d(3,"hz-icon-by-state",1),m(4,"iconRadius"),b(5,bt,4,11,"div",2),p(),c(6,"item-accessories")(7,"a",3),m(8,"translate"),_("click",function(f){return e.markAs(!e.item.isNotificationViewed),f.stopPropagation()}),p(),c(9,"a",4),m(10,"translate"),_("click",function(f){return e.removeNotification(),f.stopPropagation()}),d(11,"i",5),p()()()()),t&2&&(a(),l("item",e.item)("isAutoPriority",!0),a(2),l("radius",u(4,8,e.item))("item",e.item),a(2),l("ngIf",e.item.isUser&&(e.item.profileImageUploaded||e.item.profileImageURL||e.item.socialImageURL||e.item.logo)),a(2),l("ngClass",I(14,Mt,e.item.isNotificationViewed)),T("title",u(8,10,e.item.isNotificationViewed?"NOTIFICATIONS.MARK_AS_UNREAD":"NOTIFICATIONS.MARK_AS_READ")),a(2),T("title",u(10,12,"NOTIFICATIONS.REMOVE_NOTIFICATION")))},dependencies:[Ye,z,V,Xe,D,$e],styles:["[_nghost-%COMP%]{padding:0!important}[_nghost-%COMP%] a[_ngcontent-%COMP%]{display:block}.ui.image[_ngcontent-%COMP%], hz-icon-by-state[_ngcontent-%COMP%]{display:block;width:35px}hz-icon-by-state[_ngcontent-%COMP%]{display:flex;justify-content:center}[_nghost-%COMP%] hz-item[_ngcontent-%COMP%]{display:block!important;padding:.5em .5em .5em 0!important}[_nghost-%COMP%] hz-item[_ngcontent-%COMP%]:hover{background:#00000008!important}[_nghost-%COMP%] hz-item[_ngcontent-%COMP%]:hover .notification-viewed[_ngcontent-%COMP%]{visibility:visible}[_nghost-%COMP%] hz-item[_ngcontent-%COMP%] .title{font-size:.7em!important}[_nghost-%COMP%] hz-item[_ngcontent-%COMP%] .item .ui.content{margin-left:.5em}item-accessories[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end}item-accessories[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{border-width:1px;display:flex;align-items:center;justify-content:center;margin-left:4px;cursor:pointer}item-accessories[_ngcontent-%COMP%] a.notification-viewed[_ngcontent-%COMP%]{background-color:#fff!important;visibility:hidden}"],changeDetection:0}));let i=o;return i})();var Nt=i=>({"is-closed":i}),xt=(i,o,s)=>({userName:i,actionDone:o,message:s});function Tt(i,o){if(i&1){let s=w();c(0,"div",15),_("click",function(t){v(s);let e=h();return M(e.markAllAsViewed(t))}),c(1,"a",16),m(2,"translate"),C(3),p()()}if(i&2){let s=o.ngIf;a(),T("title",u(2,2,"NOTIFICATIONS.MARK_ALL_AS_READ")),a(2),se(s)}}function wt(i,o){i&1&&(d(0,"p",17),m(1,"translate")),i&2&&l("innerHTML",u(1,1,"NOTIFICATIONS.NO_NOTIFICATIONS"),be)}function At(i,o){if(i&1){let s=w();c(0,"hz-recent-notifications-item",18),m(1,"translate"),m(2,"translate"),m(3,"htmlToPlaintext"),m(4,"translate"),m(5,"htmlToPlaintext"),_("click",function(t){let e=v(s).$implicit,g=h();return M(g.navigate(t,e))})("markAsViewed",function(t){v(s);let e=h();return M(e.updateViewedStatus(t.item))}),p()}if(i&2){let s=o.$implicit;l("item",s),T("title",u(5,11,B(4,8,"NOTIFICATIONS.SIDEBAR_DESCRIPTION",Ae(13,xt,u(1,2,s.notificationTriggeredBy),u(2,4,s.notificationActionDone),u(3,6,s.notificationMessage)))))}}function Et(i,o){if(i&1){let s=w();c(0,"button",19),_("click",function(){v(s);let t=h();return M(t.loadMoreNotifications())}),C(1," TABS.LOAD_MORE "),p()}}var ue=(()=>{let o=class o{constructor(){r(this,"store",S(N));r(this,"routerService",S(Ge));r(this,"layoutService",S(U));r(this,"notificationsService",S(gt));r(this,"notificationsState",H(this.store.select(ft)));r(this,"user");r(this,"isOpen",!0);r(this,"recentCount",this.store.selectSignal(_t))}navigate(n,t){n.ctrlKey||n.metaKey?window.open(this.routerService.n
1ormalizeUrl(t.notificationOriginalItemType===ze.hazu?"".concat(t.link):"".concat(t.link,"?focusedItem=").concat(t.notificationOriginalItemId))):this.store.dispatch(ot({item:t}))}get notificationPageUrl(){return R(this.user)?"".concat(this.user.link,"/__/n"):""}loadMoreNotifications(){let n=this.recentCount();this.store.dispatch(tt({recentCount:n+10}))}goToNotificationPage(n){n.stopPropagation&&n.stopPropagation(),this.store.dispatch(Re({path:[this.routerService.normalizeUrl(this.notificationPageUrl)]}))}markAllAsViewed(n){n.stopPropagation&&n.stopPropagation(),R(this.user)&&this.store.dispatch(nt({rootNotificationId:this.user.rootNotificationId}))}updateViewedStatus(n){this.store.dispatch(it({item:n}))}removeAllNotification(){return L(this,null,function*(){if(R(this.user)){let n=yield new Promise(t=>{this.notificationsService.getAllNotificationsCount(this.user.rootNotificationId).subscribe(e=>t(e))});this.layoutService.showModal(X.REMOVE_ALL_NOTIFICATIONS,{notificationsCount:n})}})}};r(o,"\u0275fac",function(t){return new(t||o)}),r(o,"\u0275cmp",y({type:o,selectors:[["hz-recent-notifications"]],inputs:{user:"user"},standalone:!1,decls:22,vars:17,consts:[[1,"ui","vertical","stripe","segment"],[3,"isOpenChange","isOpen"],["title",""],[1,"ui","fluid","label","medium","image",3,"ngClass"],[1,"right","icon","fa-chevron-down"],[1,"all-notifications"],["href","javascript:;",3,"click"],["class","ui label blue circular",3,"click",4,"ngIf"],[1,"ui","icon",3,"click"],[1,"grey","large","close","icon"],["content","",1,"active","content","accordion-content"],["class","ui center aligned",3,"innerHTML",4,"ngIf"],[3,"items"],["class","ui circular basic button fluid primary load-more-button","translate","",3,"click",4,"ngIf"],[1,"ui","divided","grid"],[1,"ui","label","blue","circular",3,"click"],["hzTab",""],[1,"ui","center","aligned",3,"innerHTML"],["hzTab","",1,"item",3,"click","markAsViewed","item"],["translate","",1,"ui","circular","basic","button","fluid","primary","load-more-button",3,"click"]],template:function(t,e){var g;if(t&1&&(c(0,"div",0)(1,"fui-accordion-panel",1),k("isOpenChange",function(O){return E(e.isOpen,O)||(e.isOpen=O),O}),c(2,"div",2)(3,"div",3),C(4),m(5,"translate"),d(6,"i",4),p(),c(7,"div",5)(8,"a",6),_("click",function(O){return e.goToNotificationPage(O)}
1),C(9),m(10,"translate"),p(),C(11,"\xA0 "),b(12,Tt,4,4,"div",7),c(13,"a",8),m(14,"translate"),_("click",function(O){return e.removeAllNotification(),O.stopPropagation()}),d(15,"i",9),p()()(),c(16,"div",10),b(17,wt,2,3,"p",11),c(18,"hz-list",12),b(19,At,6,17,"ng-template"),p(),b(20,Et,2,0,"button",13),p()()(),d(21,"div",14)),t&2){let f,O,fe,ne;a(),A("isOpen",e.isOpen),a(2),l("ngClass",I(15,Nt,!e.isOpen)),a(),P(" ",u(5,9,"NOTIFICATIONS.ROOT_NAME")," "),a(5),se(u(10,11,"NOTIFICATIONS.ALL_NOTIFICATIONS")),a(3),l("ngIf",(f=e.notificationsState())==null?null:f.unreadCount),a(),T("title",u(14,13,"NOTIFICATIONS.REMOVE_ALL_NOTIFICATION")),a(4),l("ngIf",((O=e.notificationsState())==null?null:O.recentNotifications.length)===0),a(),l("items",(fe=e.notificationsState())==null?null:fe.recentNotifications.slice(0,e.recentCount())),a(2),l("ngIf",((g=(ne=e.notificationsState())==null||ne.recentNotifications==null?null:ne.recentNotifications.length)!=null?g:0)>=e.recentCount())}},dependencies:[z,V,Y,J,q,Q,Qe,de,D,Ze],styles:['.isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}[_nghost-%COMP%] .ui.list[_ngcontent-%COMP%]{padding:0}[_nghost-%COMP%] .ui.list[_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)}.hide[_ngcontent-%COMP%]{display:none!important} .hz-list-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;cursor:grabbing!important} .hz-list-drag-preview *{cursor:grabbing!important}.cdk-drop-list-dragging[_ngcontent-%COMP%], .cdk-drop-list-dragging[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{cursor:grabbing!important}.shift-drag-target[_ngcontent-%COMP%]{position:relative}.shift-drag-target[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:2px dashed #2185d0;border-radius:4px;background-color:#2185d01a;pointer-events:none;z-index:1}.active-drop-target[_ngcontent-%COMP%]{position:relative}.active-drop-target[_ngcontent-%COMP%]:before{content:"";position:absolute;top:0;left:0;right:0;bottom:0;border:3px solid #2185d0;border-radius:4px;background-color:#2185d040;pointer-events:none;z-index:2;animation:_ngcontent-%COMP%_pulse-border 1s ease-in-out infinite}@keyframes _ngcontent-%COMP%_pulse-border{0%,to{box-shadow:0 0 #2185d0b3}50%{box-shadow:0 0 0 8px #2185d000}}.drag-placeholder[_ngcontent-%COMP%]{opacity:.4;background-color:#c8c8c84d;border:2px dashed rgba(150,150,150,.5);border-radius:4px;pointer-events:none}.hide-placeholder[_ngcontent-%COMP%]{display:none!important;min-height:0!important;height:0!important}.shift-drag-active[_ngcontent-%COMP%]{transition:none!important}.shift-mid-drag[_ngcontent-%COMP%] [cdkDrag][_ngcontent-%COMP%]{transform:none!important;transition:none!important}.shift-mid-drag[_ngcontent-%COMP%] .cdk-drag-placeholder[_ngcontent-%COMP%]{display:none!important}[_nghost-%COMP%] .ui.center.aligned[_ngcontent-%COMP%]{text-align:center}.ui.image.label[_ngcontent-%COMP%]{border-bottom-left-radius:0;border-top-left-radius:0}.all-notifications[_ngcontent-%COMP%]{min-height:2em;position:absolute;right:17px;top:8px;display:flex;align-items:center}.all-notifications[_ngcontent-%COMP%] .ui.label[_ngcontent-%COMP%]{color:#fff;cursor:pointer}.all-notifications[_ngcontent-%COMP%] .ui.label[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{opacity:1}.all-notifications[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-size:1rem;font-weight:700}.ui.vertical.stripe.segment[_ngcontent-%COMP%]{border:none;padding-bottom:2em;padding-top:0}.ui.vertical.stripe.segment[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{margin-bottom:-6px}.ui.vertical.stripe.segment[_ngcontent-%COMP%] .ui.fluid.label.medium.title.image[_ngcontent-%COMP%]{margin-right:0}.ui.vertical.stripe[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1em;margin-bottom:3em}.ui.container.selection.list[_ngcontent-%COMP%]{width:100%}'],changeDetection:0}));let i=o;return i})();var zt=["*"],ge=i=>({"is-closed":i}),Vt=()=>[],Dt=()=>({});function Rt(i,o){if(i&1&&d(0,"hz-my-account",25),i&2){let s=o.ngIf;l("user",s)}}function Ut(i,o){if(i&1&&d(0,"hz-recent-notifications",25),i&2){let s=o.ngIf;l("user",s)}}function Lt(i,o){if(i&1){let s=w();ye(0),c(1,"div")(2,"fui-accordion-panel",26),k("isOpenChange",function(t){v(s);let e=h(2);return E(e.isOpen.myHazus,t)||(e.isOpen.myHazus=t),M(t)}),c(3,"a",13)(4,"div",14),C(5),m(6,"translate"),d(7,"i",15),p()(),c(8,"div",16),d(9,"hz-my-hazus",27),p()()(),Ie()}if(i&2){let s=h(2);a(2),A("isOpen",s.isOpen.myHazus),a(2),l("ngClass",I(6,ge,!s.isOpen.myHazus)),a(),P(" ",u(6,4,"SIDEBAR.MY_HAZUS")," "),a(4),l("items",s.myHazus())}}function Ft(i,o){if(i&1){let s=w();c(0,"div",4)(1,"div",5),m(2,"translate"),_("click",function(){v(s);let t=h();return M(t.hideAccountSidebar())}),c(3,"a",6),d(4,"i",7),p()(),b(5,Rt,1,1,"hz-my-account",8),c(6,"div",9)(7,"fui-accordion",10),b(8,Ut,1,1,"hz-recent-notifications",8)(9,Lt,10,8,"
1ng-container",11),c(10,"div")(11,"fui-accordion-panel",12),k("isOpenChange",function(t){v(s);let e=h();return E(e.isOpen.sharedHazus,t)||(e.isOpen.sharedHazus=t),M(t)}),c(12,"a",13)(13,"div",14),C(14),m(15,"translate"),d(16,"i",15),p()(),c(17,"div",16),d(18,"hz-shared-hazu-list",17),p()()(),c(19,"div")(20,"fui-accordion-panel",12),k("isOpenChange",function(t){v(s);let e=h();return E(e.isOpen.recentEvents,t)||(e.isOpen.recentEvents=t),M(t)}),c(21,"a",13)(22,"div",14),C(23),m(24,"translate"),d(25,"i",15),p()(),c(26,"div",16),d(27,"hz-history",18),p()()()()(),d(28,"div",19),c(29,"div",20)(30,"a",21),d(31,"i",22),C(32),m(33,"translate"),p(),c(34,"a",23),_("click",function(){v(s);let t=h();return M(t.auth.logout())}),d(35,"i",24),C(36),m(37,"translate"),p()()()}if(i&2){let s,n,t,e=h();a(),l("title",u(2,17,"GUIDED_TOUR.CLOSE")),a(4),l("ngIf",e.currentUser()),a(2),l("closeOthers",!1),a(),l("ngIf",e.currentUser()),a(),l("ngIf",e.myHazus().length>0),a(2),A("isOpen",e.isOpen.sharedHazus),a(2),l("ngClass",I(27,ge,!e.isOpen.sharedHazus)),a(),P(" ",u(15,19,"SIDEBAR.SHARED")," "),a(4),l("sharedHazus",e.sharedHazus()),a(2),A("isOpen",e.isOpen.recentEvents),a(2),l("ngClass",I(29,ge,!e.isOpen.recentEvents)),a(),P(" ",u(24,21,"RECENT_EVENTS.TITLE")," "),a(4),l("items",((s=e.recentView())==null?null:s.items)||ce(31,Vt))("notificationsCount",((n=e.recentView())==null?null:n.notificationsByNode)||ce(32,Dt))("loading",((t=e.recentView())==null?null:t.isLoading)||!1),a(5),P(" ",u(33,23,"HELP.HANDBOOK")),a(4),P(" ",u(37,25,"COMMON.ACTION_LOGOUT"))}}var Bt=(()=>{let o=class o{constructor(){r(this,"store",S(N));r(this,"layoutService",S(U));r(this,"auth",S($));r(this,"recentView",this.store.selectSignal(at));r(this,"myHazus",this.store.selectSignal(Le));r(this,"sharedHazus",this.store.selectSignal(Fe));r(this,"currentUser",this.store.selectSignal(Be));r(this,"isVisible",this.store.selectSignal(Z));r(this,"isVisibleOpenDelay",H(this.store.select(Z).pipe(ae(n=>n?F(n):F(n).pipe(re(500)))),{initialValue:!1}));r(this,"isVisibleCloseDelay",H(this.store.select(Z).pipe(ae(n=>n?F(n).pipe(re(100)):F(n))),{initialValue:!1}));r(this,"isOpen",{myHazus:!0,sharedHazus:!0,recentEvents:!1});Me(()=>{this.isVisible()&&this.store.dispatch(Ue())})}hideAccountSidebar(){this.layoutService.setAccountSidebarVisible(!1)}};r(o,"\u0275fac",function(t){return new(t||o)}),r(o,"\u0275cmp",y({type:o,selectors:[["hz-sidebar"]],standalone:!1,ngContentSelectors:zt,decls:5,vars:3,consts:[[1,"sidebar-main"],[1,"sidebar-content"],["class","ui sidebar vertical accordion menu",4,"ngIf"],[1,"main-content",3,"click"],[1,"ui","sidebar","vertical","accordion","menu"],["hzTab","",1,"ui","top","menu","close",3,"click","title"],[1,"item"],[1,"remove","icon"],[3,"user",4,"ngIf"],[1,"sidebar-sections-container"],[3,"closeOthers"],[4,"ngIf"],[3,"isOpenChange","isOpen"],["title",""],["hzTab","",1,"ui","fluid","label","medium","image",3,"ngClass"],[1,"right","icon","fa-chevron-down"],["content","",1,"active","content","accordion-content"],[3,"sharedHazus"],[3,"items","notificationsCount","loading"],[1,"sidebar-spacer"],[1,"sidebar-footer"],["href","https://hazu.swiss/support/handbook/dashboard/navigation",1,"sidebar-option"],[1,"icon","book"],[1,"sidebar-option","logout",3,"click"],[1,"icon","fa-sign-out-alt"],[3,"user"],["e2e-my-hazus","",3,"isOpenChange","isOpen"],[3,"items"]],template:function(t,e){if(t&1&&(Ne(),c(0,"div",0)(1,"div",1),b(2,Ft,38,33,"div",2),p(),c(3,"div",3),_("click",function(){return e.hideAccountSidebar()}),xe(4),p()()),t&2){let g;we("opened",e.isVisibleCloseDelay()),a(2),l("ngIf",e.isVisibleOpenDelay()&&e.currentUser()&&((g=e.currentUser())==null?null:g.displayName))}},dependencies:[z,V,J,We,q,Q,ee,ie,te,me,ue,D],styles:['.isSidebarMode[_ngcontent-%COMP%]{container-name:sidebar;container-type:inline-size}.ui.button[_ngcontent-%COMP%]{display:inline-block;height:2rem;margin:0 0 0 .5rem;padding:0;width:2rem}.sidebar-sections-container[_ngcontent-%COMP%]{overflow-y:auto;flex:1 1 auto}[_nghost-%COMP%] .ui.section.divider[_ngcontent-%COMP%]{margin-bottom:2em;margin-top:2em}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%]{background-color:#fff;height:100%;position:absolute;visibility:visible;width:100%;z-index:500}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] .accordion-content{padding:0 10px}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] div.title{padding:5px 0 0}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] div.title .ui.fluid.label:hover{background-color:#f5f5f5;cursor:pointer;border-radius:0%!important}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] div.title .ui.fluid.label{background-color:#fff}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] .ui.image img{margin:auto}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] .load-more-button{margin:0 auto;width:auto}[_nghost-%COMP%] .sidebar[_ngcontent-%COMP%] .title .image .icon{margin-left:10px;width:10px}[_nghost-%COMP%] .ui.vertical.menu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{align-items:center;color:#000000f2;display:flex;font-size:14px}[_nghost-%COMP%] .ui.vertical.menu[_ngcontent-%COMP%] .menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:hover{background:#00000008}[_nghost-%COMP%] .menu.close[_ngcontent-%COMP%]{border:none;border-radius:0;box-shadow:none;height:55px;position:absolute;z-index:1}[_nghost-%COMP%] .menu.close[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin:0}[_nghost-%COMP%] .menu.close[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:9px}[_nghost-%COMP%] .menu.close[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:before{display:none}[_nghost-%COMP%] .sidebar-content[_ngcontent-%COMP%]{height:100%;max-width:100%;overflow:hidden;position:absolute;transform:translate3d(-360px,0,0);transition:transform .5s ease;width:360px;display:flex;flex-direction:column}[_nghost-%COMP%] .opened[_ngcontent-%COMP%] .sidebar-content[_ngcontent-%COMP%]{transform:translateZ(0)}[_nghost-%COMP%] .main-content[_ngcontent-%COMP%]{backface-visibility:hidden;min-height:100vh;overflow:hidden;-webkit-overflow-scrolling:touch;position:relative;transition:transform .5s ease;z-index:1}[_nghost-%COMP%] .opened[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{transform:translate3d(360px,0,0)}[_nghost-%COMP%] .opened[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]:after{background-color:#0006;content:"";height:100%!important;opacity:1!important;overflow:hidden;position:fixed;right:0;top:0;transition:opacity .5s;width:100%!important;will-change:opacity;z-index:500}@media screen and (-ms-high-contrast:active),(-ms-high-contrast:none){[_nghost-%COMP%] .opened[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]:after{position:absolute}}[_nghost-%COMP%] hz-recent-notifications-item .itemTop{min-width:0}[_nghost-%COMP%] hz-recent-notifications-item .itemTop .ui.content{min-width:0}[_nghost-%COMP%] hz-recent-notifications-item .itemTop a.title{font-weight:400;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:block}[_nghost-%COMP%] .tabular.menu[_ngcontent-%COMP%]{border:none}[_nghost-%COMP%] .tabular.menu[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{border:none;padding:0}[_nghost-%COMP%] .tabular.menu[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{background:#e8e8e8;color:#0009;margin-left:0;margin-right:.5em;padding:.5833em .833em .5833em .5em}[_nghost-%COMP%] .attached.segment[_ngcontent-%COMP%]{border:none;margin-bottom:0}[_nghost-%COMP%] .title .icon.right{float:left;transform:rotate(270deg)}[_nghost-%COMP%] .title.active .icon.right{transform:rotate(0)}.ui.sidebar.vertical.accordion.menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;overflow:hidden}.sidebar-spacer[_ngcontent-%COMP%]{flex-grow:0}.sidebar-footer[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;padding:10px;flex-shrink:0}.sidebar-option[_ngcontent-%COMP%]{display:flex;align-items:center;padding:8px 5px;cursor:pointer;color:#333;gap:8px}.sidebar-option[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{flex-shrink:0}.sidebar-option[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{flex-grow:1}.sidebar-option[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}@media(max-height:600px){.sidebar-sections-container[_ngcontent-%COMP%]{max-height:calc(100vh - 200px)}}@media screen and (max-width:767px){[_nghost-%COMP%] .sidebar-content[_ngcontent-%COMP%]{width:100%}[_nghost-%COMP%] .opened[_ngcontent-%COMP%] .main-content[_ngcontent-%COMP%]{transform:translate3d(100%,0,0)}}'],changeDetection:0}));let i=o;return i})();var ht=[ee,ie,te];var In=(()=>{let o=class o{};r(o,"\u0275fac",function(t){return new(t||o)}),r(o,"\u0275mod",Se({type:o})),r(o,"\u0275inj",Oe({imports:[Je,dt,ut,et,pt,ct,lt,Ke,mt,ht]}));let i=o;return i})();export{gt as a,ft as b,ri as c,ai as d,si as e,Bt as f,In as g};
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.