PageSourceSearch

https://app.finimpulse.com/chunk-BEARWJW6.js

js finimpulse.com collected 2026-10-04 21:47:52 UTC 127,108 bytes, 236 lines download raw bytes

1import{a as hn,b as Cn,c as bn}from"./chunk-OHAHUPWD.js";import{a as xn,b as In,c as Mn,d as Sn,e as Tn}from"./chunk-3S6X57G4.js";import{a as vn}from"./chunk-7VZPRCLL.js";import"./chunk-TAXM4PAP.js";import{a as fn}from"./chunk-DFEH2QEU.js";import{a as cn}from"./chunk-AABD2VLV.js";import{a as rn}from"./chunk-RDC7NJ6H.js";import{a as an}from"./chunk-E7SZH7ZZ.js";import{a as pn,b as _t,c as gt,d as un}from"./chunk-4KV7BJOC.js";import{a as gn}from"./chunk-LQS66VXD.js";import{a as dn}from"./chunk-VI7YRPHG.js";import{a as _n}from"./chunk-AKWZHQYK.js";import{a as sn}from"./chunk-ONH6DFV2.js";import{a as ln}from"./chunk-ML6W6DYC.js";import"./chunk-6EG7DDZY.js";import"./chunk-BTQ3ZHAS.js";import{k as Ji,m as en,n as tn}from"./chunk-GKSPSK4P.js";import"./chunk-JNQSDDTU.js";import"./chunk-FHQM4MHL.js";import{a as Pe,b as ae}from"./chunk-ZAGWB2MP.js";import{a as Oi}from"./chunk-JR5EHZFX.js";import{a as Vi}from"./chunk-GNYAB7RK.js";import"./chunk-REBXJJBR.js";import"./chunk-KZ6O4UFR.js";import"./chunk-XUYO53AY.js";import"./chunk-Y4Y4T2FQ.js";import"./chunk-A4RVGZDH.js";import"./chunk-ZKHDG5YV.js";import{a as Bi}from"./chunk-XAFI32DX.js";import{a as yn,b as wn}from"./chunk-M6Q3SGLY.js";import{g as on}from"./chunk-LAQZTQF2.js";import"./chunk-HBJDV725.js";import"./chunk-6LKGL5QS.js";import"./chunk-ATAZ4H7C.js";import{b as nn}from"./chunk-BIPOZ6EY.js";import"./chunk-PDKS7CIV.js";import"./chunk-LDTPAQ22.js";import"./chunk-U5FD7KPQ.js";import{a as mn}from"./chunk-5DPFFNMY.js";import"./chunk-KVUI4WAB.js";import"./chunk-HTCZJVOF.js";import{c as Pi}from"./chunk-6ZM2H7CV.js";import{a as we,c as se}from"./chunk-TXM2VSDT.js";import"./chunk-37744Z2U.js";import"./chunk-HIQRTLXM.js";import{b as ye}from"./chunk-UJGCWS6W.js";import{B as Qi,K as Xi,l as $i,m as Te,n as ut,o as Gi,p as qi,q as ji,u as Wi}from"./chunk-G6DIKDAE.js";import"./chunk-VM4DEIJH.js";import{a as Zi}from"./chunk-UQW65RVG.js";import"./chunk-YJ5HFDYJ.js";import"./chunk-LAI4YBR4.js";import"./chunk-EVVOOTIQ.js";import{a as Fi}from"./chunk-5Q5VD6VX.js";import{a as w}from"./chunk-5EMEP2FE.js";import{a as Ri,c as zi,d as Hi,e as dt,f as Ki,h as Yi}from"./chunk-FUQW4URC.js";import"./chunk-BX2XGGIJ.js";import{a as mt,b as qe}from"./chunk-JDKKAUKQ.js";import"./chunk-4ZB57WCE.js";import"./chunk-AFMFXK4D.js";import"./chunk-MIG2UEUK.js";import"./chunk-4HBQP6NS.js";import"./chunk-I4HG3S2M.js";import"./chunk-QQIMN2JX.js";import"./chunk-F6ETDIXC.js";import"./chunk-A7RBIIUZ.js";import{c as ct}from"./chunk-KWOQ4HMT.js";import"./chunk-YJ5DYO5F.js";import"./chunk-RSQPNHZE.js";import"./chunk-XPT67DC2.js";import"./chunk-RDBFOA3X.js";import"./chunk-DOPWH2QC.js";import"./chunk-WBS2ZB34.js";import{a as Ui,b as Di}from"./chunk-DKOULGK6.js";import{a as Ai}from"./chunk-OKFUWLWE.js";import"./chunk-G2RPGXWK.js";import{c as mi,d as kt,g as Lt,i as Nt}from"./chunk-BSMR5HIN.js";import{g as ki,i as Li,j as Ni}from"./chunk-7D5TBQRE.js";import{d as Ei}from"./chunk-MUYF7UN3.js";import{I as At,J as fi,O as vi,Q as lt,T as Ke,U as Ge,V as $,W as Vt,l as di,m as ui,n as ot,o as _i,q as gi,u as $e,v as ge}from"./chunk-O2UZBAYN.js";import{m as Se}from"./chunk-4HGNWMUF.js";import{a as st}from"./chunk-M45BUSZV.js";import{J as Rt,K as Ii,M as Mi,N as Si,P as Ti,ga as yi,ia as wi,ja as Me,z as xi}from"./chunk-OQWTGWQI.js";import{A as Ci,D as at,E as ie,a as rt,d as fe,i as Ut,j as Dt,q as hi}from"./chunk-JRIYDRTX.js";import{a as pt}from"./chunk-FCLK5JCQ.js";import"./chunk-AQGP2UH6.js";import{b as bi,c as D}from"./chunk-5VDETJGG.js";import{$a as V,Ab as yt,Ac as si,Ba as Q,Bb as k,Bc as Fe,Cb as Be,Db as E,Eb as v,Ec as Ot,Fb as I,Fc as li,Ga as Yt,Gb as K,Ha as Ae,Ib as ti,Ic as ci,Ja as S,Ka as Xe,Kb as me,Lb as de,Lc as U,Mb as ue,Mc as ze,Na as Ue,Nb as ii,Oa as De,Ob as wt,Pa as L,Pb as it,Q as qt,Rb as ni,Sb as _e,Ta as Mt,Tb as ee,Ua as O,Ub as be,Va as Qt,Vb as Pt,Wa as Zt,X as Ye,Xa as g,Y as ne,Ya as f,Z as Qe,Za as St,_ as Le,_a as Xt,aa as h,ab as B,ac as b,bb as m,bc as x,cb as l,cc as oi,db as c,eb as p,ed as pi,fa as u,fb as oe,fc as W,ga as _,gb as re,ha as le,hb as Je,hd as X,ia as jt,ib as Re,ic as Et,id as J,jb as Ve,jc as T,j
1d as nt,kb as Tt,kc as H,la as Ze,lb as y,mc as ri,na as P,nb as M,nc as N,nd as He,oc as Y,p as Kt,pa as Ne,pb as s,qa as Wt,qb as Jt,rb as ei,sb as et,sc as te,tb as tt,tc as xe,ub as ce,v as Gt,va as It,vb as pe,wa as Ce,xb as q,yb as Z,yc as Ie,za as a,zb as j,zc as ai}from"./chunk-Q47N5KYY.js";import{a as he,b as ve}from"./chunk-DE4CES4T.js";var ao={id:"user-overview",steps:[{elementId:"tour-impulses-badge",title:"CORE.TOUR.REFERRAL_REWARDS",description:"CORE.TOUR.REFERRAL_REWARDS_DESC",position:"bottom"},{elementId:"tour-user-overview-1",title:"CORE.TOUR.PROFILE",description:"CORE.TOUR.PROFILE_DESC",position:"bottom"},{elementId:"tour-user-overview-2",title:"CORE.TOUR.MODE_SWITCHER",description:"CORE.TOUR.MODE_SWITCHER_DESC",position:"right"},{elementId:"tour-user-overview-3",title:"CORE.TOUR.SEARCH_ASSETS",description:"CORE.TOUR.SEARCH_ASSETS_DESC",position:"right"},{elementId:"tour-user-overview-4",title:"CORE.TOUR.AI_SEARCH",description:"CORE.TOUR.AI_SEARCH_DESC",position:"right"},{elementId:"tour-user-overview-5",title:"CORE.TOUR.MARKET_SCREENERS",description:"CORE.TOUR.MARKET_SCREENERS_DESC",position:"right"}]},so={id:"api-overview",steps:[{elementId:"tour-impulses-badge",title:"CORE.TOUR.REFERRAL_REWARDS",description:"CORE.TOUR.REFERRAL_REWARDS_DESC",position:"bottom"},{elementId:"tour-user-overview-1",title:"CORE.TOUR.PROFILE",description:"CORE.TOUR.PROFILE_DESC",position:"bottom"},{elementId:"tour-user-overview-2",title:"CORE.TOUR.MODE_SWITCHER",description:"CORE.TOUR.MODE_SWITCHER_DESC",position:"right"},{elementId:"tour-api-overview-3",title:"CORE.TOUR.API_SECTION",description:"CORE.TOUR.API_SECTION_DESC",position:"right"},{elementId:"tour-api-overview-4",title:"CORE.TOUR.DOCUMENTATION",description:"CORE.TOUR.DOCUMENTATION_DESC",position:"right"},{elementId:"tour-api-overview-5",title:"CORE.TOUR.PRICING",description:"CORE.TOUR.PRICING_DESC",position:"right"}]},lo={"user-overview":ao,"api-overview":so},Ee=(()=>{class t{router=h(X);translateService=h(bi);_activeTour=P(null);_currentStepIndex=P(0);onCompleteCallback=null;_repositionToken=P(0);_repositionDuration=P(0);repositionToken=T(()=>this._repositionToken());repositionDuration=T(()=>this._repositionDuration());isActive=T(()=>this._activeTour()!==null);totalSteps=T(()=>this._activeTour()?.steps.length??0);currentStepNumber=T(()=>this._currentStepIndex()+1);isLastStep=T(()=>this._currentStepIndex()===this.totalSteps()-1);currentStep=T(()=>{let e=this._activeTour(),i=this._currentStepIndex(),n=e?.steps[i]??null;return n?ve(he({},n),{title:this.translateService.instant(n.title),description:this.translateService.instant(n.description)}):null});startTour(e,i){let n=lo[e];n&&(this.onCompleteCallback=i??null,this._currentStepIndex.set(0),this._activeTour.set(n))}nextStep(){let e=this.currentStep();if(this.isLastStep()){this.endTour("completed");return}e?.routeAfter&&this.router.navigate([e.routeAfter]),this._currentStepIndex.update(i=>i+1)}endTour(e="skipped"){let i=this._activeTour()?.id;i&&this.onCompleteCallback?.(i,e),this.onCompleteCallback=null,this._activeTour.set(null),this._currentStepIndex.set(0)}reposition(e=0){this._repositionDuration.set(e),this._repositionToken.update(i=>i+1)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ne({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var A=(function(t){return t.Dashboard="dashboard",t.SearchAssets="search-assets",t.AiSearch="ai-search",t.MarketScreeners="market-screeners",t.MyScreeners="my-screeners",t.MyWatchlist="my-watchlist",t.Alerts="alerts",t.CongressionalTrades="congressional-trades",t.CreatePortfolio="create-portfolio",t.CreateForecast="create-forecast",t.BuildStrategy="build-strategy",t.Settings="settings",t.Usage="usage",t.Errors="errors",t.Playground="playground",t.Documentation="documentation",t.Pricing="pricing",t.Payments="payments",t})(A||{});function co(t,r){t&1&&p(0,"app-dashboard-icon")}function po(t,r){t&1&&p(0,"app-search-icon")}function mo(t,r){t&1&&p(0,"app-search-ai-icon")}function uo(t,r){t&1&&p(0,"app-sliders-icon")}function _o(t,r){t&1&&p(0,"app-user-select-icon")}function go(t,r){t&1&&p(0,"app-eye-icon")}function fo(t,r){t&1&&p(0,"app-bell-icon")}function ho(t,r){t&1&&p(0,"app-bank-icon")}function vo(t,r){t&1&&p(0,"app-portfolio-icon")}function Co(t,r){t&1&&p(0,"app-trend-up-icon")}function bo(t,r){t&1&&p(0,"app-target-icon")}function xo(t,r){t&1&&p(0,"app-user-settings-icon")}function Io(t,r){t&1&&p(0,"app-usage-icon")}function Mo(t,r){t&1&&p(0,"app-exclamation-triangle-icon")}function So(t,r){t&1&&p(0,"app-api-icon")}function To(t,r){t&1&&p(0,"app-user-manual-icon")}function yo(t,r){t&1&&p(0,"app-pricing-icon")}function wo(t,r){t&1&&p(0,"app-wallet-icon")}var Pn=(()=>{class t{icon=N.required();MENU_LEFT_ICON=A;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-left-menu-icon"]],inputs:{icon:[1,"icon"]},decls:18,vars:1,template:function(i,n){if(i&1&&g(0,co,1,0,"app-dashboard-icon")(1,po,1,0,"app-search-icon")(2,mo,1,0,"app-search-ai-icon")(3,uo,1,0,"app-sliders-icon")(4,_o,1,0,"app-user-select-icon")(5,go,1,0,"app-eye-icon")(6,fo,1,0,"app-bell-icon")(7,ho,1,0,"app-bank-icon")(8,vo,1,0,"app-portfolio-icon")(9,Co,1,0,"app-trend-up-icon")(10,bo,1,0,"app-target-icon")(11,xo,1,0,"app-user-settings-icon")(12,Io,1,0,"app-usage-icon")(13,Mo,1,0,"app-exclamation-triangle-icon")(14,So,1,0,"app-api-icon")(15,To,1,0,"app-user-manual-icon")(16,yo,1,0,"app-pricing-icon")(17,wo,1,0,"app-wallet-icon"),i&2){let o;f((o=n.icon())===n.MENU_LEFT_ICON.Dashboard?0:o===n.MENU_LEFT_ICON.SearchAssets?1:o===n.MENU_LEFT_ICON.AiSearch?2:o===n.MENU_LEFT_ICON.MarketScreeners?3:o===n.MENU_LEFT_ICON.MyScreeners?4:o===n.MENU_LEFT_ICON.MyWatchlist?5:o===n.MENU_LEFT_ICON.Alerts?6:o===n.MENU_LEFT_ICON.CongressionalTrades?7:o===n.MENU_LEFT_ICON.CreatePortfolio?8:o===n.MENU_LEFT_ICON.CreateForecast?9:o===n.MENU_LEFT_ICON.BuildStrategy?10:o===n.MENU_LEFT_ICON.Settings?11:o===n.MENU_LEFT_ICON.Usage?12:o===n.MENU_LEFT_ICON.Errors?13:o===n.MENU_LEFT_ICON.Playground?14:o===n.MENU_LEFT_ICON.Documentation?15:o===n.MENU_LEFT_ICON.Pricing?16:o===n.MENU_LEFT_ICON.Payments?17:-1)}},dependencies:[Wi,vn,Te,qi,Yi,Qi,fn,Tn,xn,Ri,In,Sn,cn,ji,Ki,Mn,ut,Gi],styles:["[_nghost-%COMP%]{display:flex;width:100%;height:100%;align-items:center;justify-content:center}"]})}return t})();var Eo=()=>["active"];function Oo(t,r){t&1&&(l(0,"div",4),p(1,"app-left-menu-icon",9),c()),t&2&&(a(),m("icon",r))}function ko(t,r){t&1&&Tt(0)}
1function Lo(t,r){if(t&1&&(l(0,"div",4),L(1,ko,1,0,"ng-container",10),c()),t&2){let e=s(2);a(),m("ngComponentOutlet",e.iconComponent())}}function No(t,r){t&1&&p(0,"app-external-link-icon",7)}function Ao(t,r){t&1&&(p(0,"app-lock-icon",11),b(1,"translate")),t&2&&m("pTooltip",x(1,1,"TABS.UNAVAILABLE_ON_YOUR_PLAN"))}function Uo(t,r){t&1&&p(0,"app-badge",12)}function Do(t,r){t&1&&(p(0,"app-badge",13),b(1,"translate")),t&2&&m("pTooltip",x(1,1,"LAYOUTS.AI_BETA_TOOLTIP"))}function Ro(t,r){if(t&1&&(l(0,"div",8),g(1,Ao,2,3,"app-lock-icon",11),g(2,Uo,1,0,"app-badge",12),g(3,Do,2,3,"app-badge",13),c()),t&2){let e=s(2);a(),f(e.showLockIcon()?1:-1),a(),f(e.config().showComingSoon?2:-1),a(),f(e.config().isBeta?3:-1)}}function Vo(t,r){if(t&1){let e=y();l(0,"a",2),b(1,"translate"),M("click",function(){u(e);let n=s();return _(n.onMenuItemClick())}),l(2,"div",3),g(3,Oo,2,1,"div",4)(4,Lo,2,1,"div",4),l(5,"div",5)(6,"span",6),v(7),b(8,"translate"),c(),g(9,No,1,0,"app-external-link-icon",7),c()(),g(10,Ro,4,3,"div",8),c()}if(t&2){let e,i=s();k("disabled",i.isDisabled())("logo-collapsed",i.isCollapsed()),m("href",i.config().externalHref,Ce)("pTooltip",i.isCollapsed()?x(1,11,i.config().text):""),O("id",i.config().tourId||null),a(3),f((e=i.config().icon)?3:i.iconComponent()?4:-1,e),a(4),K(" ",x(8,13,i.config().text)," "),a(2),f(i.isCollapsed()?-1:9),a(),f(!i.isCollapsed()&&(i.showLockIcon()||i.config().showComingSoon||i.config().isBeta)?10:-1)}}function Bo(t,r){t&1&&(l(0,"div",4),p(1,"app-left-menu-icon",9),c()),t&2&&(a(),m("icon",r))}function Fo(t,r){t&1&&Tt(0)}function zo(t,r){if(t&1&&(l(0,"div",4),L(1,Fo,1,0,"ng-container",10),c()),t&2){let e=s(2);a(),m("ngComponentOutlet",e.iconComponent())}}function Ho(t,r){t&1&&(p(0,"app-lock-icon",11),b(1,"translate")),t&2&&m("pTooltip",x(1,1,"TABS.UNAVAILABLE_ON_YOUR_PLAN"))}function $o(t,r){t&1&&p(0,"app-badge",12)}function Ko(t,r){t&1&&(p(0,"app-badge",13),b(1,"translate")),t&2&&m("pTooltip",x(1,1,"LAYOUTS.AI_BETA_TOOLTIP"))}function Go(t,r){if(t&1&&(l(0,"div",8),g(1,Ho,2,3,"app-lock-icon",11),g(2,$o,1,0,"app-badge",12),g(3,Ko,2,3,"app-badge",13),c()),t&2){let e=s(2);a(),f(e.showLockIcon()?1:-1),a(),f(e.config().showComingSoon?2:-1),a(),f(e.config().isBeta?3:-1)}}function qo(t,r){if(t&1){let e=y();l(0,"a",14),b(1,"translate"),M("click",function(){u(e);let n=s();return _(n.onMenuItemClick())}),l(2,"div",3),g(3,Bo,2,1,"div",4)(4,zo,2,1,"div",4),l(5,"div",15)(6,"span",6),v(7),b(8,"translate"),c()()(),g(9,Go,4,3,"div",8),c()}if(t&2){let e,i=s();k("disabled",i.isDisabled())("logo-collapsed",i.isCollapsed()),m("pTooltip",i.isCollapsed()?x(1,11,i.config().text):"")("routerLinkActive",ee(15,Eo))("routerLink",i.config().href),O("id",i.config().tourId||null),a(3),f((e=i.config().icon)?3:i.iconComponent()?4:-1,e),a(4),K(" ",x(8,13,i.config().text)," "),a(2),f(!i.isCollapsed()&&(i.showLockIcon()||i.config().showComingSoon||i.config().isBeta)?9:-1)}}var En=(()=>{class t{mainDashboardStore=h(Pi);config=N.required();isCollapsed=N(!1);isLogoCollapsed=N(!1);isDisabled=T(()=>this.config().isDisabled||this.config().showComingSoon);showLockIcon=T(()=>!!this.config().showUpgrade&&this.mainDashboardStore.isFreePlan());iconComponent=T(()=>this.config().iconComponent??null);onMenuItemClick(){(this.config().href||this.config().externalHref)&&!this.isDisabled()&&window.dispatchEvent(new CustomEvent("closeMobileMenu"))}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-menu-item"]],inputs:{config:[1,"config"],isCollapsed:[1,"isCollapsed"],isLogoCollapsed:[1,"isLogoCollapsed"]},decls:2,vars:1,consts:[["rel","noopener noreferrer","target","_blank","tooltipPosition","right",1,"menu-item",3,"disabled","logo-collapsed","href","pTooltip"],["tooltipPosition","right",1,"menu-item",3,"disabled","logo-collapsed","pTooltip","routerLinkActive","routerLink"],["rel","noopener noreferrer","target","_blank","tooltipPosition","right",1,"menu-item",3,"click","href","pTooltip"],[1,"menu-item__content","flex","gap-2","items-center","self-stretch","my-auto","min-w-0"],[1,"icon-container","w-6"],[1,"menu-item__content","flex","items-start","gap-1.5","self-stretch","my-auto","min-w-0"],["ellipsisTooltip","","pTooltip","","tooltipEvent","focus","tooltipPosition","top",1,"menu-item__label","text-ellipsis"],[1,"text-muted","text-xs","flex-shrink-0"],[1,"flex","items-center","gap-2","flex-shrink-0"],[3,"icon"],[4,"ngComponentOutlet"],["tooltipPosition","top",1,"menu-item__lock-icon",3,"pTooltip"],["type","coming"],["type","beta","tooltipPosition","top",3,"pTooltip"],["tooltipPosition","right",1,"menu-item",3,"click","pTooltip","routerLinkActive","routerLink"],[1,"menu-item__content","flex","items-center","self-stretch","my-auto","min-w-0"]],template:function(i,n){i&1&&g(0,Vo,11,15,"a",0)(1,qo,10,16,"a",1),i&2&&f(n.config().externalHref?0:1)},dependencies:[U,ai,Bi,J,nt,Pn,qe,mt,Fi,Zi,ln,D],styles:["[_nghost-%COMP%]{display:contents}.menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-3);width:100%;padding-top:var(--spacing-2a);padding-bottom:var(--spacing-2a);padding-left:var(--spacing-10);padding-right:var(--spacing-4);font-size:var(--text-base);white-space:nowrap;overflow:hidden;cursor:pointer;transition:padding-left .2s ease-in-out,background-color .2s ease-in-out,color .2s ease-in-out}.menu-item.logo-collapsed[_ngcontent-%COMP%]{padding-left:1.813rem}.menu-item.logo-collapsed[_ngcontent-%COMP%]   .menu-item__content[_ngcontent-%COMP%]{gap:var(--spacing-3)}.menu-item__content[_ngcontent-%COMP%]{color:var(--main-text-color);font-weight:var(--font-normal);overflow:hidden;min-width:0;gap:var(--spacing-2);transition:gap .2s,color .2s ease-in-out}.menu-item__label[_ngcontent-%COMP%]{display:block;max-width:100%}.menu-item[_ngcontent-%COMP%]   .icon-container[_ngcontent-%COMP%]{flex-shrink:0}.menu-item__lock-icon[_ngcontent-%COMP%]{--app-icon-size: var(--text-sm);flex-shrink:0;color:var(--muted-text-color)}.menu-item[_ngcontent-%COMP%]:hover{background:var(--p-tabs-tab-active-background)}.menu-item.active[_ngcontent-%COMP%]   .menu-item__content[_ngcontent-%COMP%]{color:var(--menu-item-active-text);font-weight:var(--font-bold)}.menu-item.active[_ngcontent-%COMP%]:hover   .menu-item__content[_ngcontent-%COMP%]{color:var(--main-text-color)}.menu-item.disabled[_ngcontent-%COMP%]{cursor:not-allowed}.menu-item.disabled[_ngcontent-%COMP%]   .menu-item__content[_ngcontent-%COMP%]{color:var(--muted-text-color)}.menu-item.disabled[_ngcontent-%COMP%]:hover{background:transparent}"]})}return t})();var jo=(t,r)=>r.text;function Wo(t,r){if(t&1&&(l(0,"header",2)(1,"h3",3),v(2),b(3,"translate"),c()()),t&2){let e=s();k("collapsed",e.isCollapsed()),a(2),I(x(3,3,e.title()))}}function Yo(t,r){if(t&1&&p(0,"app-menu-item",4),t&2){let e=s().$implicit,i=s();m("config",e)("isCollapsed",i.isCollapsed())("isLogoCollapsed",i.isLogoCollapsed())}}function Qo(t,r){if(t&1&&g(0,Yo,1,3,"app-menu-item",4),t&2){let e=r.$implicit;
1f(e.isHidden?-1:0)}}var On=(()=>{class t{title=N("");menuItems=N([]);isCollapsed=N(!1);isLogoCollapsed=N(!1);static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-navigation-section"]],inputs:{title:[1,"title"],menuItems:[1,"menuItems"],isCollapsed:[1,"isCollapsed"],isLogoCollapsed:[1,"isLogoCollapsed"]},decls:5,vars:3,consts:[[1,"w-full"],[1,"section-header",3,"collapsed"],[1,"section-header"],[1,"section-title"],[3,"config","isCollapsed","isLogoCollapsed"]],template:function(i,n){i&1&&(l(0,"section",0),g(1,Wo,4,5,"header",1),l(2,"nav"),V(3,Qo,1,1,null,null,jo),c()()),i&2&&(a(),f(n.title()?1:-1),a(),k("pb-w",!!n.title()),a(),B(n.menuItems()))},dependencies:[En,D],styles:["[_nghost-%COMP%]{display:contents}[_nghost-%COMP%]   .section-title[_ngcontent-%COMP%]{font-weight:var(--font-bold);font-size:var(--text-sm);color:var(--muted-text-color);overflow:hidden;text-overflow:clip}section[_ngcontent-%COMP%]{margin-bottom:0}.section-header[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);width:100%;padding-top:var(--spacing-3);padding-right:var(--spacing-4);padding-bottom:var(--spacing-2);padding-left:var(--spacing-8);font-size:var(--text-sm);font-weight:var(--font-bold);white-space:nowrap;top:0;z-index:10;overflow:hidden;max-height:3rem;opacity:1;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,padding .3s ease-in-out}.section-header.collapsed[_ngcontent-%COMP%]{max-height:0;opacity:0;padding-top:0;padding-bottom:0}nav[_ngcontent-%COMP%]{overflow:hidden}"]})}return t})();var Bt=[{id:"",title:"",items:[{text:"LAYOUTS.MENU_DASHBOARD",icon:A.Dashboard,href:"/user/overview"}]},{id:"search-tools",title:"MENU.SEARCH_TOOLS",items:[{text:"MENU.SEARCH_ASSETS",icon:A.SearchAssets,href:"user/search-assets",tourId:"tour-user-overview-3"},{text:"MENU.AI_SEARCH",icon:A.AiSearch,href:"user/ai-search",tourId:"tour-user-overview-4"},{text:"MENU.MARKET_SCREENERS",icon:A.MarketScreeners,href:"user/market-screeners",tourId:"tour-user-overview-5"}]},{id:"my-tools",title:"MENU.MY_TOOLS",items:[{text:"MENU.MY_WATCHLIST",icon:A.MyWatchlist,href:"user/my-watchlist"},{text:"MENU.MY_SCREENERS",icon:A.MyScreeners,href:"user/my-screeners",showUpgrade:!0},{text:"MENU.ALERTS",icon:A.Alerts,href:"user/alerts",showUpgrade:!0},{text:"MENU.PORTFOLIO",icon:A.CreatePortfolio,href:"user/portfolios",isHidden:!st.isDemo}]},{id:"political-disclosures",title:"MENU.POLITICAL_DISCLOSURES",items:[{text:"MENU.OFFICIALS_DISCLOSURES",icon:A.CongressionalTrades,href:"user/congressional-trades"}]},{id:"analytical-tools",title:"MENU.ANALYTICAL_TOOLS",items:[{text:"MENU.CREATE_FORECAST",icon:A.CreateForecast,showComingSoon:!0},{text:"MENU.BUILD_STRATEGY",icon:A.BuildStrategy,showComingSoon:!0}]}];var kn=[{id:"",title:"",items:[{text:"LAYOUTS.MENU_DASHBOARD",icon:A.Dashboard,href:"developer/overview"}]},{id:"api",title:"MENU.API",items:[{text:"MENU.API_SETTINGS",icon:A.Settings,href:"developer/settings",tourId:"tour-api-overview-3"},{text:"MENU.USAGE",icon:A.Usage,href:"developer/usage"},{text:"MENU.ERRORS",icon:A.Errors,href:"developer/errors"},{text:"MENU.PLAYGROUND",icon:A.Playground,showComingSoon:!0},{text:"MENU.DOCUMENTATION",icon:A.Documentation,externalHref:"https://developers.finimpulse.com/",tourId:"tour-api-overview-4"}]},{id:"billing",title:"MENU.BILLING",items:[{text:"MENU.PRICING",icon:A.Pricing,href:"developer/pricing",tourId:"tour-api-overview-5"},{text:"MENU.PAYMENTS",icon:A.Payments,href:"developer/profile/billing"}]}];var Zo=()=>["/developer/"],Xo=()=>["/"],Jo=(t,r)=>r.id;function er(t,r){if(t&1&&(l(0,"a",7),p(1,"app-logo"),c()),t&2){let e=s();k("logo-collapsed",e.isLogoCollapsed()),m("routerLink",e.isApiMode()?ee(3,Zo):ee(4,Xo))}}function tr(t,r){if(t&1&&p(0,"app-navigation-section",8),t&2){let e=s().$implicit,i=s();m("isCollapsed",i.isMenuCollapsed())("isLogoCollapsed",i.isLogoCollapsed())("menuItems",e.items)("title",e.title)}}function ir(t,r){if(t&1&&g(0,tr,1,4,"app-navigation-section",8),t&2){let e=r.$implicit;f(e.isHidden?-1:0)}}function nr(t,r){t&1&&p(0,"app-menu-icon")}function or(t,r){t&1&&(p(0,"app-chevron-left-icon"),l(1,"span"),v(2),b(3,"translate"),c()),t&2&&(a(2),I(x(3,1,"MENU.COLLAPSE_MENU")))}var Ln=(()=>{class t{isMobile=N(!1);isLogoCollapsed=P(!1);mainStore=h(Me);isMenuCollapsed=this.mainStore.isMainMenuCollapsed;menuSections=P(Bt);isApiMode=this.mainStore.isApiMode;collapseTimeout=null;constructor(){H(()=>{let e=this.isApiMode();this.menuSections.set(e?kn:Bt)})}ngOnInit(){this.isMenuCollapsed()&&this.isLogoCollapsed.set(!0)}toggleMenu(){let e=!this.isMenuCollapsed();this.mainStore.setIsMainMenuCollapsed(e),this.collapseTimeout&&clearTimeout(this.collapseTimeout),e?this.collapseTimeout=setTimeout(()=>{this.isLogoCollapsed.set(!0)},300):this.isLogoCollapsed.set(!1)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-main-menu"]],inputs:{isMobile:[1,"isMobile"]},decls:14,vars:18,consts:[[1,"logo-section","p-6",3,"logo-collapsed","routerLink"],[1,"pb-2"],[1,"flex","gap-2","items-center","pt-2","pl-8","pr-4","pb-1","w-full","text-sm","font-bold","whitespace-nowrap"],[1,"section-title"],["id","tour-user-overview-2",1,"block","mt-1","ps-10",3,"isToggleView"],[1,"flex-1","overflow-y-auto","menu-sections"],[1,"menu-full-button",3,"click"],[1,"logo-section","p-6",3,"routerLink"],[3,"isCollapsed","isLogoCollapsed","menuItems","title"]],template:function(i,n){i&1&&(l(0,"aside"),g(1,er,2,5,"a",0),l(2,"div",1)(3,"header",2)(4,"h3",3),v(5),b(6,"translate"),c()(),p(7,"app-user-api-mode-choice",4),c(),l(8,"div",5),V(9,ir,1,1,null,null,Jo),c(),l(11,"button",6),M("click",function(){return n.toggleMenu()}),g(12,nr,1,0,"app-menu-icon")(13,or,4,3),c()()),i&2&&(k("collapsed",n.isMenuCollapsed()),a(),f(n.isMobile()?-1:1),a(),k("w-max",!n.isLogoCollapsed()),a(),k("collapsed",n.isMenuCollapsed())("ps-0!",n.isLogoCollapsed()),a(2),I(x(6,
116,"USER_MENU.MODE")),a(2),k("ps-0!",n.isLogoCollapsed()),m("isToggleView",n.isLogoCollapsed()),a(2),B(n.menuSections()),a(2),k("collapsed",n.isMenuCollapsed()),a(),f(n.isMenuCollapsed()?12:13))},dependencies:[On,pt,J,_t,$i,dt,D],styles:["[_nghost-%COMP%]{display:contents}aside[_ngcontent-%COMP%]{background-color:var(--bg-secondary);width:100%;height:100%;display:flex;flex-direction:column;overflow:hidden}aside[_ngcontent-%COMP%]   .logo-section[_ngcontent-%COMP%]{padding:1.5rem;white-space:nowrap;overflow:hidden}aside[_ngcontent-%COMP%]   .logo-section[_ngcontent-%COMP%]   app-logo[_ngcontent-%COMP%]{width:15rem;aspect-ratio:500/96}aside[_ngcontent-%COMP%]   .logo-section.logo-collapsed[_ngcontent-%COMP%]{width:3.8rem}@media(min-width:1024px){aside[_ngcontent-%COMP%]{width:var(--sidebar-width);transition:width .3s ease-in-out}aside.collapsed[_ngcontent-%COMP%]{width:var(--sidebar-collapsed-width)}}.menu-full-button[_ngcontent-%COMP%], .version-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;border-top:1px solid var(--border-light);width:100%;padding:1rem;margin-top:auto;height:3.125rem;overflow:hidden;font-size:var(--text-xs);color:var(--muted-text-color);white-space:nowrap;text-overflow:clip;--app-icon-size: var(--text-xs)}.menu-full-button[_ngcontent-%COMP%]   app-menu-icon[_ngcontent-%COMP%], .menu-full-button[_ngcontent-%COMP%]   app-chevron-left-icon[_ngcontent-%COMP%], .version-wrapper[_ngcontent-%COMP%]   app-menu-icon[_ngcontent-%COMP%], .version-wrapper[_ngcontent-%COMP%]   app-chevron-left-icon[_ngcontent-%COMP%]{margin-right:var(--spacing-1);flex-shrink:0}.menu-full-button.collapsed[_ngcontent-%COMP%], .version-wrapper.collapsed[_ngcontent-%COMP%]{--app-icon-size: var(--text-base)}.menu-full-button.collapsed[_ngcontent-%COMP%]   app-menu-icon[_ngcontent-%COMP%], .menu-full-button.collapsed[_ngcontent-%COMP%]   app-chevron-left-icon[_ngcontent-%COMP%], .version-wrapper.collapsed[_ngcontent-%COMP%]   app-menu-icon[_ngcontent-%COMP%], .version-wrapper.collapsed[_ngcontent-%COMP%]   app-chevron-left-icon[_ngcontent-%COMP%]{margin-right:0}.menu-full-button[_ngcontent-%COMP%]{transition:var(--transition-base)}.menu-full-button[_ngcontent-%COMP%]:hover{background:var(--bg-secondary-hover);color:var(--text-secondary)}.menu-sections[_ngcontent-%COMP%]{flex:1;overflow-y:auto;overflow-x:hidden;white-space:nowrap}.menu-sections[_ngcontent-%COMP%]::-webkit-scrollbar{width:.375rem}.menu-sections[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#1f2937}.menu-sections[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#4b5563;border-radius:3px}.menu-sections[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#6b7280}header[_ngcontent-%COMP%]{overflow:hidden;max-height:3rem;opacity:1;transition:max-height .3s ease-in-out,opacity .3s ease-in-out,padding .3s ease-in-out}header.collapsed[_ngcontent-%COMP%]{max-height:0;opacity:0;padding-top:0;padding-bottom:0}header[_ngcontent-%COMP%]   .section-title[_ngcontent-%COMP%]{font-weight:var(--font-bold);font-size:var(--text-sm);color:var(--muted-text-color);overflow:hidden;text-overflow:clip}app-menu-item[_ngcontent-%COMP%]:hover   .menu-item-container[_ngcontent-%COMP%]{background:#1f2937!important}h2[_ngcontent-%COMP%]{letter-spacing:.05em;font-weight:600}"]})}return t})();var Nn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-history-icon"]],decls:5,vars:0,consts:[["xmlns","http://www.w3.org/2000/svg","viewBox","0 0 16 16","fill","none"],["transform","translate(1.5 1.5)"],["d","M3.33259 10.9836C4.2205 11.6121 5.27482 11.9631 6.36222 11.9923C7.44963 12.0215 8.52128 11.7276 9.44165 11.1478C10.362 10.568 11.0898 9.72821 11.5329 8.73476C11.976 7.74131 12.1146 6.63877 11.9311 5.56656C11.7477 4.49435 11.2503 3.50063 10.5021 2.71106C9.75384 1.92149 8.78826 1.37153 7.72745 1.13073C6.66664 0.889931 5.55824 0.969108 4.54243 1.35825C3.52662 1.74738 2.46422 2.61111 1.8358 3.49902","stroke","currentColor","stroke-width","1.3","stroke-linecap","round"],["d","M0.75 1.5L0.75 4.5L3.75 4.5","stroke","currentColor","stroke-width","1.3","stroke-linecap","round","stroke-linejoin","round"],["d","M6.09557 4.5791V7.5791L8.09557 8.5791","stroke","currentColor","stroke-width","1.1","stroke-linecap","round","stroke-linejoin","round"]],template:function(i,n){i&1&&(le(),oe(0,"svg",0)(1,"g",1),Je(2,"path",2)(3,"path",3)(4,"path",4),re()())},styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;line-height:0;width:var(--app-icon-size, 1.25rem);height:var(--app-icon-size, 1.25rem)}[_nghost-%COMP%]   svg[_ngcontent-%COMP%]{display:block;width:var(--app-icon-size, 1.25rem);height:var(--app-icon-size, 1.25rem);flex-shrink:0}.with-border[_nghost-%COMP%]{width:2.25rem;height:2.25rem;padding:var(--spacing-2);border-radius:var(--border-radius-full);border:1px solid var(--border-light)}"]})}return t})();function rr(t,r){if(t&1&&(l(0,"span",6),v(1),c()),t&2){let e=s().$implicit,i=s();a(),I(i.asTicker(e).short_name)}}function ar(t,r){if(t&1&&(p(0,"app-asset-logo",3),l(1,"div",4)(2,"span",5),v(3),c(),g(4,rr,2,1,"span",6),c(),p(5,"app-asset-type-tag",7)),t&2){let e=r.$implicit,i=s();m("name",i.asTicker(e).ticker)("shortName",i.asTicker(e).short_name)("src",i.asTicker(e).logo??null),a(3),I(i.asTicker(e).ticker),a(),f(i.asTicker(e).short_name?4:-1),a(),m("assetType",i.asTicker(e).type)}}function sr(t,r){if(t&1&&(l(0,"span",6),v(1),c()),t&2){let e=s().$implicit,i=s();a(),I(i.asTicker(e).short_name)}}function lr(t,r){if(t&1&&(p(0,"app-asset-logo",3),l(1,"div",4)(2,"span",5),v(3),c(),g(4,sr,2,1,"span",6),c(),p(5,"app-asset-type-tag",7)(6,"app-history-icon",8)),t&2){let e=r.$implicit,i=s();m("name",i.asTicker(e).ticker)("shortName",i.asTicker(e).short_name)("src",i.asTicker(e).logo??null),a(3),I(i.asTicker(e).ticker),a(),f(i.asTicker(e).short_name?4:-1),a(),m("assetType",i.asTicker(e).type)}}var An=(()=>{class t{assetSearchStore=h(on);currentValue=this.assetSearchStore.searchText;router=h(X);suggestionsToShow=T(()=>{if(!this.currentValue().trim()){let e=this.assetSearchStore.tickerHistory();return e.length>0?e:null}return this.assetSearchStore.tickerSuggestionsVm()});asTicker(e){return e}onSearchChange(e){this.assetSearchStore.setSearchText(e),e.trim().length>0?this.assetSearchStore.searchTickerAutocomplete(e):(this.assetSearchStore.searchTickerAutocomplete(""),this.assetSearchStore.clearTickerSuggestions())}onClearRequested(){this.assetSearchStore.setSearchText(""),this.assetSearchStore.clearTickerSuggestions()}onInputFocused(){let e=this.currentValue().trim(),i=(this.assetSearchStore.tickerSuggestionsVm()?.length??0)>0;e&&!i&&this.assetSearchStore.searchTickerAutocomplete(e)}onSearchRequest(e){let i=e.trim(),n=Mi(i),o=this.assetSearchStore.tickerSuggestionsVm()?.find(d=>d.ticker.toLowerCase()===n.toLowerCase());o&&this.assetSearchStore.saveTickerToHistory(o),this.assetSearchStore.clearTickerSuggestions(),this.setSearchTextAndSearch(i),this.router.navigate(["user/search-assets"])}onSuggestionSelect(e){let i=e;this.assetSearchStore.saveTickerToHistory(i),this.assetSearchStore.clearTickerSuggestions();let n=i.short_name?`${i.ticker} (${i.short_name})`:i.ticker;this.assetSearchStore.setSearchText(n),this.router.navigate(["/user/asset",i.ticker])}setSearchTextAndSearch(e){this.assetSearchStore.setSearchText(e),this.assetSearchStore.setActiveSearchText(e),this.assetSearchStore.setIsForcedSearch(!0),this.assetSearchStore.resetOffset(),this.assetSearchStore.getSearchResults()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-search-bar"]],decls:5,vars:7,consts:[["tickerItemTpl",""],["recentItemTpl",""],[3,"clearRequested","searchRequested","valueChange","suggestionSelect","focused","currentValue","isLoading","isSearching","placeholder","withButton","suggestions","itemTemplate"],[3,"name","shortName","src"],[1,"search-bar-ticker__info"],[1,"search-bar-ticker__symbol"],[1,"search-bar-ticker__name"],[3,"assetType"],[1,"search-bar-recent__icon"]],template:function(i,n){if(i&1){let o=y();l(0,"app-search",2),M("clearRequested",function(){return u(o),_(n.onClearRequested())})("searchRequested",function(C){return u(o),_(n.onSearchRequest(C))})("valueChange",function(C){return u(o),_(n.onSearchChange(C))})("suggestionSelect",function(C){return u(o),_(n.onSuggestionSelect(C))})("focused",function(){return u(o),_(n.onInputFocused())}),c(),L(1,ar,6,6,"ng-template",null,0,W)(3,lr,7,6,"ng-template",null,1,W)}if(i&2){let o=j(2),d=j(4);m("currentValue",n.currentValue())("isLoading",n.assetSearchStore.isLoading())("isSearching",n.assetSearchStore.isTickerAutocompleteSearching())("placeholder","Search assets...")("withButton",!0)("suggestions",n.suggestionsToShow())("itemTemplate",n.currentValue().trim()?o:d)}},dependencies:[U,Vi,an,rn,Nn],styles:["[_nghost-%COMP%]{width:100%}.search-bar-ticker__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;gap:2px}.search-bar-ticker__symbol[_ngcontent-%COMP%]{font-weight:var(--font-semibold);font-size:var(--text-sm);color:var(--main-text-color);line-height:1.2}.search-bar-ticker__name[_ngcontent-%COMP%]{color:var(--secondary-text-color);font-size:var(--text-xs);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.2}app-history-icon.search-bar-recent__icon[_ngcontent-%COMP%]{--app-icon-size: var(--text-xs);color:var(--secondary-text-color);flex-shrink:0}"]})}return t})();var Un=t=>[{label:"LAYOUTS.SUPPORT_CENTER",description:"LAYOUTS.SUPPORT_CENTER_DESC",appIcon:w.Comments,command:()=>{t.openSupport()}},{label:"LAYOUTS.FAQ",description:"LAYOUTS.FAQ_DESC",appIcon:w.QuestionCircle,command:()=>{t.openFAQ()}},{label:"LAYOUTS.USER_MANUALS",description:"LAYOUTS.USER_MANUALS_DESC",appIcon:w.UserManual,command:()=>{t.openUserManuals()}}];var cr=["supportOverlay"],pr=(t,r)=>r.label;function mr(t,r){if(t&1){let e=y();l(0,"div",6),M("click",function(){let n=u(e).$implicit,o=s();return _(o.executeCommand(n.command))})("keyup.enter",function(){let n=u(e).$implicit,o=s();return _(o.executeCommand(n.command))})("keyup.space",function(){let n=u(e).$implicit,o=s();return _(o.executeCommand(n.command))}),p(1,"app-icon",7),l(2,"div",8)(3,"span",9),v(4),b(5,"translate"),c(),l(6,"span",10),v(7),b(8,"translate"),c()()()}if(t&2){let e=r.$implicit;a(),m("name",e.appIcon),a(3),I(x(5,3,e.label)),a(3),I(x(8,5,e.description))}}var Rn=(()=>{class t{supportOverlay=Y("supportOverlay");router=h(X);supportMenuItems=T(()=>Un({openSupport:()=>this.openSupport(),openFAQ:()=>this.openFAQ(),openUserManuals:()=>this.openUserManuals()}));toggleSupportMenu(e){this.supportOverlay()?.toggle(e)}executeCommand(e){e&&(e(),this.supportOverlay()?.hide())}openSupport(){this.router.navigate(["/profile/support"])}openFAQ(){this.router.navigate(["/profile/faq"])}openUserManuals(){window.open("https://finimpulse.com/help/","_blank")}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-support-button"]],viewQuery:function(i,n){i&1&&q(n.supportOverlay,cr,5),i&2&&Z()},decls:9,vars:3,consts:[["supportOverlay",""],[1,"support-button"],["type","button",1,"header-icon-button",3,"click"],[1,"icon"],[1,"support-menu"],["tabindex","0",1,"support-menu-item"],["tabindex","0",1,"support-menu-item",3,"click","keyup.enter","keyup.space"],[1,"support-menu-icon",3,"name"],[1,"support-menu-content"],[1,"support-menu-label"],[1,"support-menu-description"]],template:function(i,n){if(i&1){let o=y();l(0,"div",1)(1,"button",2),b(2,"translate"),M("click",function(C){return u(o),_(n.toggleSupportMenu(C))}),p(3,"app-question-circle-icon",3),c(),l(4,"p-popover",null,0)(6,"div",4),V(7,mr,9,7,"div",5,pr),c()()()}i&2&&(a(),O("aria-label",x(2,1,"LAYOUTS.HELP_SUPPORT")),a(6),B(n.supportMenuItems())
1)},dependencies:[U,ae,Pe,Xi,ye,D],styles:[".support-button[_ngcontent-%COMP%]{position:relative}.support-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-2);background:var(--bg-secondary);border-radius:var(--border-radius-sm)}.support-menu-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-3);padding:var(--spacing-2);border-radius:var(--border-radius-md);cursor:pointer;transition:background-color var(--transition-fast);max-width:19rem}.support-menu-item[_ngcontent-%COMP%]:hover{background-color:var(--bg-hover)}.support-menu-item[_ngcontent-%COMP%]:focus{outline:none;background-color:var(--bg-hover)}.support-menu-icon[_ngcontent-%COMP%]{font-size:1.25rem;color:var(--muted-text-color);flex-shrink:0;width:1.25rem;text-align:center}.support-menu-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:var(--spacing-1)}.support-menu-label[_ngcontent-%COMP%]{font-size:var(--text-sm);font-weight:var(--font-bold);color:var(--main-text-color);line-height:1}.support-menu-description[_ngcontent-%COMP%]{font-size:var(--text-xs);font-weight:var(--font-normal);color:var(--muted-text-color);line-height:1.3}"]})}return t})();function dr(t,r){if(t&1&&(oe(0,"span",1),v(1),re()),t&2){let e=s();E(e.sizeClass()),O("title",e.activeNotificationsCount()),a(),I(e.countLabel())}}var ht=(()=>{class t{notificationsStore=h(we);activeNotificationsCount=this.notificationsStore.activeNotificationsCount;countLabel=T(()=>Si(this.activeNotificationsCount(),1));sizeClass=T(()=>{let e=this.countLabel().length;return e>=3?"large":e===2?"medium":"small"});static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-notification-badge"]],hostVars:2,hostBindings:function(i,n){i&2&&k("large",n.sizeClass()==="large")},decls:1,vars:1,consts:[[1,"badge",3,"class"],[1,"badge"]],template:function(i,n){i&1&&g(0,dr,2,4,"span",0),i&2&&f(n.activeNotificationsCount()?0:-1)},styles:[".badge[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:var(--additional-danger);color:var(--always-white);border-radius:var(--border-radius-full);min-width:1.125rem;height:1.125rem;font-size:var(--text-xs);font-weight:var(--font-medium);padding:0 .25rem}.badge.large[_ngcontent-%COMP%]{min-width:1rem;height:1rem;font-size:.625rem;padding:0 .1875rem}"]})}return t})();var ur=["notificationsOverlay"],_r=(t,r)=>r.id;function gr(t,r){if(t&1){let e=y();l(0,"p-button",14),M("onClick",function(){u(e);let n=s();return _(n.handleReadAll())}),l(1,"span"),v(2),b(3,"translate"),c()()}if(t&2){let e=s();m("text",!0)("disabled",e.isDataLoading()),a(2),I(x(3,3,"LAYOUTS.MARK_ALL_AS_READ"))}}function fr(t,r){t&1&&(l(0,"div",10)(1,"p"),v(2),b(3,"translate"),c()()),t&2&&(a(2),I(x(3,1,"LAYOUTS.LOADING_NOTIFICATIONS")))}function hr(t,r){t&1&&(l(0,"div",11)(1,"p"),v(2),b(3,"translate"),c()()),t&2&&(a(2),I(x(3,1,"LAYOUTS.NO_NOTIFICATIONS")))}function vr(t,r){if(t&1){let e=y();l(0,"app-notification-item",16),Zt("notification-fade-out"),M("itemClick",function(n){u(e);let o=s(2);return _(o.handleItemClick(n))}),c()}if(t&2){let e=r.$implicit;m("withoutBorder",!0)("notification",e)("showDeleteButton",!0)}}function Cr(t,r){if(t&1&&(l(0,"div",12),V(1,vr,1,3,"app-notification-item",15,_r),c()),t&2){let e=s();a(),B(e.unreadNotifications())}}function br(t,r){if(t&1){let e=y();l(0,"div",13)(1,"a",17),M("click",function(){u(e);let n=s();return _(n.handleClosePopup())}),v(2),b(3,"translate"),p(4,"app-arrow-icon",18),c()()}if(t&2){let e=s();a(),m("routerLink","/profile/updates")("fragment",e.UPDATES_TAB.notifications),a(),K(" ",x(3,3,"LAYOUTS.VIEW_ALL_NOTIFICATIONS")," ")}}var Vn=(()=>{class t{notificationsStore=h(we);notificationsOverlay=Y("notificationsOverlay");notifications=this.notificationsStore.notifications;isDataLoading=this.notificationsStore.isNotificationsLoading;activeNotificationsCount=this.notificationsStore.activeNotificationsCount;unreadNotifications=T(()=>this.notifications().filter(e=>!e.is_read));toggleNotifications(e){this.notificationsOverlay()?.toggle(e)}handleClosePopup(){this.notificationsOverlay()?.hide()}handleReadAll(){this.notificationsStore.markAllAsRead()}handleReadMessage(e){this.notificationsStore.markAsRead(e)}
1handleItemClick(e){this.notificationsStore.openNotification(e),this.handleClosePopup()}handleDeleteMessage(e){this.notificationsStore.removeNotification(e)}UPDATES_TAB=un;static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-notifications"]],viewQuery:function(i,n){i&1&&q(n.notificationsOverlay,ur,5),i&2&&Z()},decls:20,vars:13,consts:[["notificationsOverlay",""],[1,"notification-button-wrapper"],["type","button",1,"notification-button",3,"click"],[1,"notification-icon"],[1,"notifications-popover"],[1,"notification-header"],[1,"flex","items-center","gap-2"],[1,"notification-title"],["severity","success",1,"text-action-btn",3,"text","disabled"],[1,"notification-content"],[1,"loading-state"],[1,"empty-state"],[1,"notification-list"],[1,"notification-footer-link"],["severity","success",1,"text-action-btn",3,"onClick","text","disabled"],[3,"withoutBorder","notification","showDeleteButton"],[3,"itemClick","withoutBorder","notification","showDeleteButton"],[1,"view-all-link",3,"click","routerLink","fragment"],["direction","right"]],template:function(i,n){if(i&1){let o=y();l(0,"div",1)(1,"button",2),b(2,"translate"),M("click",function(C){return u(o),_(n.toggleNotifications(C))}),p(3,"app-bell-icon",3)(4,"app-notification-badge"),c(),l(5,"p-popover",null,0)(7,"div",4)(8,"div",5)(9,"div",6),p(10,"app-bell-icon"),l(11,"h3",7),v(12),b(13,"translate"),c()(),g(14,gr,4,5,"p-button",8),c(),l(15,"div",9),g(16,fr,4,3,"div",10)(17,hr,4,3,"div",11)(18,Cr,3,0,"div",12),g(19,br,5,5,"div",13),c()()()()}i&2&&(a(),k("active",n.activeNotificationsCount()),O("aria-label",x(2,9,"LAYOUTS.NOTIFICATIONS")),a(2),k("active",n.activeNotificationsCount()),a(9),I(x(13,11,"LAYOUTS.NOTIFICATIONS")),a(2),f(n.unreadNotifications().length>0?14:-1),a(2),f(n.isDataLoading()?16:n.unreadNotifications().length===0?17:18),a(3),f(n.isDataLoading()?-1:19))},dependencies:[U,J,ae,Pe,Li,Ji,ht,Te,Ai,D],styles:[".notification-button-wrapper[_ngcontent-%COMP%]{position:relative}.notification-button[_ngcontent-%COMP%]{display:flex;position:relative;background:none;border:none;cursor:pointer;padding:.5rem;border-radius:var(--border-radius-sm);transition:background-color .2s ease}.notification-button[_ngcontent-%COMP%]:hover{background-color:var(--bg-secondary-hover)}.notification-button[_ngcontent-%COMP%]:hover   .notification-icon[_ngcontent-%COMP%]:not(.active){color:var(--main-text-color)}.notification-icon[_ngcontent-%COMP%]{--app-icon-size: var(--text-xl);color:var(--muted-text-color);transition:color .2s ease}.notification-icon.active[_ngcontent-%COMP%]{color:var(--basic-primary)}app-notification-badge[_ngcontent-%COMP%]{position:absolute;top:0;right:0}app-notification-badge.large[_ngcontent-%COMP%]{transform:translate(40%,-20%)}.notifications-popover[_ngcontent-%COMP%]{width:16.25rem;max-width:90vw;max-height:80vh;overflow:hidden;position:relative}.notification-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:var(--spacing-2);padding:var(--spacing-3);padding-top:0;border-bottom:1px solid var(--border-main)}.notification-header[_ngcontent-%COMP%]   .text-action-btn[_ngcontent-%COMP%]{flex-shrink:0}.notification-title[_ngcontent-%COMP%]{margin:0;font-size:var(--text-lg);font-weight:var(--font-semibold);color:var(--main-text-color)}.notification-content[_ngcontent-%COMP%]{display:flex;flex-direction:column}.loading-state[_ngcontent-%COMP%], .empty-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:100%;padding:var(--spacing-4);text-align:center;color:var(--muted-text-color)}.notification-list[_ngcontent-%COMP%]{padding:var(--spacing-2) 0;display:flex;flex-direction:column;gap:var(--spacing-2);max-height:25rem;overflow-y:auto}.notification-list[_ngcontent-%COMP%]   app-notification-item[_ngcontent-%COMP%]{width:100%}.notification-footer-link[_ngcontent-%COMP%]{padding:var(--spacing-3) var(--spacing-4);padding-bottom:0;border-top:1px solid var(--border-main);display:flex;justify-content:center}.view-all-link[_ngcontent-%COMP%]{--app-icon-size: var(--text-sm);display:flex;align-items:center;gap:var(--spacing-2);color:var(--muted-text-color);font-size:var(--text-sm);font-weight:var(--font-medium);text-decoration:none;text-align:center;transition:color .2s ease;cursor:pointer}.view-all-link[_ngcontent-%COMP%]:hover{color:var(--main-text-color)}@media(max-width:640px){.notifications-popover[_ngcontent-%COMP%]{width:calc(100vw - 2rem)}}"]})}return t})();var Bn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-notification-button"]],decls:1,vars:0,template:function(i,n){i&1&&p(0,"app-notifications")},dependencies:[U,Vn],encapsulation:2})}return t})();var Fn=`
2    .p-tieredmenu {
3        background: dt('tieredmenu.background');
4        color: dt('tieredmenu.color');
5        border: 1px solid dt('tieredmenu.border.color');
6        border-radius: dt('tieredmenu.border.radius');
7        min-width: 12.5rem;
8    }
9
10    .p-tieredmenu-root-list,
11    .p-tieredmenu-submenu {
12        margin: 0;
13        padding: dt('tieredmenu.list.padding');
14        list-style: none;
15        outline: 0 none;
16        display: flex;
17        flex-direction: column;
18        gap: dt('tieredmenu.list.gap');
19    }
20
21    .p-tieredmenu-submenu {
22        position: absolute;
23        min-width: 100%;
24        z-index: 1;
25        background: dt('tieredmenu.background');
26        color: dt('tieredmenu.color');
27        border: 1px solid dt('tieredmenu.border.color');
28        border-radius: dt('tieredmenu.border.radius');
29        box-shadow: dt('tieredmenu.shadow');
30    }
31
32    .p-tieredmenu-item {
33        position: relative;
34    }
35
36    .p-tieredmenu-item-content {
37        transition:
38            background dt('tieredmenu.transition.duration'),
39            color dt('tieredmenu.transition.duration');
40        border-radius: dt('tieredmenu.item.border.radius');
41        color: dt('tieredmenu.item.color');
42    }
43
44    .p-tieredmenu-item-link {
45        cursor: pointer;
46        display: flex;
47        align-items: center;
48        text-decoration: none;
49        overflow: hidden;
50        position: relative;
51        color: inherit;
52        padding: dt('tieredmenu.item.padding');
53        gap: dt('tieredmenu.item.gap');
54        user-select: none;
55        outline: 0 none;
56    }
57
58    .p-tieredmenu-item-label {
59        line-height: 1;
60    }
61
62    .p-tieredmenu-item-icon {
63        color: dt('tieredmenu.item.icon.color');
64    }
65
66    .p-tieredmenu-submenu-icon {
67        color: dt('tieredmenu.submenu.icon.color');
68        margin-left: auto;
69        font-size: dt('tieredmenu.submenu.icon.size');
70        width: dt('tieredmenu.submenu.icon.size');
71        height: dt('tieredmenu.submenu.icon.size');
72    }
73
74    .p-tieredmenu-submenu-icon:dir(rtl) {
75        margin-left: 0;
76        margin-right: auto;
77    }
78
79    .p-tieredmenu-item.p-focus > .p-tieredmenu-item-content {
80        color: dt('tieredmenu.item.focus.color');
81        background: dt('tieredmenu.item.focus.background');
82    }
83
84    .p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-item-icon {
85        color: dt('tieredmenu.item.icon.focus.color');
86    }
87
88    .p-tieredmenu-item.p-focus > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
89        color: dt('tieredmenu.submenu.icon.focus.color');
90    }
91
92    .p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover {
93        color: dt('tieredmenu.item.focus.color');
94        background: dt('tieredmenu.item.focus.background');
95    }
96
97    .p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-item-icon {
98        color: dt('tieredmenu.item.icon.focus.color');
99    }
100
101    .p-tieredmenu-item:not(.p-disabled) > .p-tieredmenu-item-content:hover .p-tieredmenu-submenu-icon {
102        color: dt('tieredmenu.submenu.icon.focus.color');
103    }
104
105    .p-tieredmenu-item-active > .p-tieredmenu-item-content {
106        color: dt('tieredmenu.item.active.color');
107        background: dt('tieredmenu.item.active.background');
108    }
109
110    .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-item-icon {
111        color: dt('tieredmenu.item.icon.active.color');
112    }
113
114    .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
115        color: dt('tieredmenu.submenu.icon.active.color');
116    }
117
118    .p-tieredmenu-separator {
119        border-block-start: 1px solid dt('tieredmenu.separator.border.color');
120    }
121
122    .p-tieredmenu-overlay {
123        box-shadow: dt('tieredmenu.shadow');
124    }
125
126    .p-tieredmenu-enter-from,
127    .p-tieredmenu-leave-active {
128        opacity: 0;
129    }
130
131    .p-tieredmenu-enter-active {
132        transition: opacity 250ms;
133    }
134
135    .p-tieredmenu-mobile .p-tieredmenu-submenu {
136        position: static;
137        box-shadow: none;
138        border: 0 none;
139        padding-inline-start: dt('tieredmenu.submenu.mobile.indent');
140        padding-inline-end: 0;
141    }
142
143    .p-tieredmenu-mobile .p-tieredmenu-submenu:dir(rtl) {
144        padding-inline-start: 0;
145        padding-inline-end: dt('tieredmenu.submenu.mobile.indent');
146    }
147
148    .p-tieredmenu-mobile .p-tieredmenu-submenu-icon {
149        transition: transform 0.2s;
150        transform: rotate(90deg);
151    }
152
153    .p-tieredmenu-mobile .p-tieredmenu-item-active > .p-tieredmenu-item-content .p-tieredmenu-submenu-icon {
154        transform: rotate(-90deg);
155    }
156`;var Sr=["sublist"],Tr=t=>({processedItem:t}),yr=()=>({exact:!1}),wr=(t,r)=>({$implicit:t,hasSubmenu:r}),Pr=t=>({display:t});function Er(t,r){if(t&1&&p(0,"li",7),t&2){let e=s().$implicit,i=s();Be(i.getItemProp(e,"style")),E(i.cn(i.cx("separator"),i.getItemProp(e,"class"),i.getItemProp(e,"styleClass"))),m("pBind",i._ptm("separator")),O("id",i.getItemId(e))}}function Or(t,r){if(t&1&&p(0,"span",18),t&2){let e=s(4),i=e.$implicit,n=e.index,o=s();E(o.cn(o.cx("itemIcon"),o.getItemProp(i,"icon"),o.getItemProp(i,"iconClass"))),m("ngStyle",o.getItemProp(i,"iconStyle"))("pBind",o.getPTOptions(i,n,"itemIcon")),O("tabindex",-1)}}function kr(t,r){if(t&1&&(l(0,"span",19),v(1),c()),t&2){let e=s(4),i=e.$implicit,n=e.index,o=s();E(o.cx("itemLabel")),m("pBind",o.getPTOptions(i,n,"itemLabel")),a(),K(" ",o.getItemLabel(i)," ")}}function Lr(t,r){if(t&1&&p(0,"span",20),t&2){let e=s(4),i=e.$implicit,n=e.index,o=s();E(o.cx("itemLabel")),m("innerHTML",o.getItemLabel(i),It)("pBind",o.getPTOptions(i,n,"itemLabel"))}}function Nr(t,r){if(t&1&&(l(0,"span"),v(1),c()),t&2){let e=s(4).$implicit,i=s();E(i.cn(i.cx("itemBadge"),i.getItemProp(e,"badgeStyleClass"))),a(),I(i.getItemProp(e,"badge"))}}function Ar(t,r){if(t&1&&(le(),p(0,"svg",23)),t&2){let e=s(5),i=e.$implicit,n=e.index,o=s();E(o.cx("submenuIcon")),m("pBind",o.getPTOptions(i,n,"submenuIcon")),O("aria-hidden",!0)}}function Ur(t,r){}function Dr(t,r){t&1&&L(0,Ur,0,0,"ng-template",24),t&2&&Mt("aria-hidden",!0)}function Rr(t,r){if(t&1&&(Re(0),L(1,Ar,1,4,"svg",21)(2,Dr,1,1,null,22),Ve()),t&2){let e=s(5);a(),m("ngIf",!e.tieredMenu.submenuIconTemplate&&!e.tieredMenu._submenuIconTemplate),a(),m("ngTemplateOutlet",e.tieredMenu.submenuIconTemplate||e.tieredMenu._submenuIconTemplate)}}function Vr(t,r){if(t&1&&(l(0,"a",14),L(1,Or,1,5,"span",15)(2,kr,2,4,"span",16)(3,Lr,1,4,"ng-template",null,2,W)(5,Nr,2,3,"span",17)(6,Rr,3,2,"ng-container",10),c()),t&2){let e=j(4),i=s(3),n=i.$implicit,o=i.index,d=s();E(d.cx("itemLink")),m("target",d.getItemProp(n,"target"))("pBind",d.getPTOptions(n,o,"itemLink")),O("href",d.getItemProp(n,"url"),Ce)("data-automationid",d.getItemProp(n,"automationId"))("title",d.getItemProp(n,"title"))("tabindex",-1),a(),m("ngIf",d.getItemProp(n,"icon")),a(),m("ngIf",d.getItemProp(n,"escape"))("ngIfElse",e),a(3),m("ngIf",d.getItemProp(n,"badge")),a(),m("ngIf",d.isItemGroup(n))}}function Br(t,r){if(t&1&&p(0,"span",18),t&2){let e=s(4),i=e.$implicit,n=e.index,o=s();E(o.cn(o.cx("itemIcon"),o.getItemProp(i,"icon"),o.getItemProp(i,"iconClass"))),m("ngStyle",o.getItemProp(i,"iconStyle"))("pBind",o.getPTOptions(i,n,"itemIcon")),O("aria-hidden",!0)("tabindex",-1)}}function Fr(t,r){if(t&1&&(l(0,"span",19),v(1),c()),t&2){let e=s(4),i=e.$implicit,n=e.index,o=s();E(o.cx("itemLabel")),m("pBind",o.getPTOptions(i,n,"itemLabel")),a(),K(" ",o.getItemLabel(i)," ")}}function zr(t,r){if(t&1&&p(0,"span",20),t&2){let e=s(4),i=e.$implicit,n=e.index,o=s();E(o.cx("itemLabel")),m("innerHTML",o.getItemLabel(i),It)("pBind",o.getPTOptions(i,n,"itemLabel"))}}function Hr(t,r){if(t&1&&(l(0,"span"),v(1),c()),t&2){let e=s(4).$implicit,i=s();E(i.cn(i.cx("itemBadge"),i.getItemProp(e,"badgeStyleClass"))),a(),I(i.getItemProp(e,"badge"))}}function $r(t,r){if(t&1&&(le(),p(0,"svg",23)),t&2){let e=s(5),i=e.$implicit,n=e.index,o=s();E(o.cx("submenuIcon")),m("pBind",o.getPTOptions(i,n,"submenuIcon")),O("aria-hidden",!0)}}function Kr(t,r){}function Gr(t,r){t&1&&L(0,Kr,0,0,"ng-template",24),t&2&&Mt("aria-hidden",!0)}function qr(t,r){if(t&1&&(Re(0),L(1,$r,1,4,"svg",21)(2,Gr,1,1,null,22),Ve()),t&2){let e=s(5);a(),m("ngIf",!e.tieredMenu.submenuIconTemplate&&!e.tieredMenu._submenuIconTemplate),a(),m("ngTemplateOutlet",e.tieredMenu.submenuIconTemplate||e.tieredMenu._submenuIconTemplate)}}function jr(t,r){if(t&1&&(l(0,"a",25),L(1,Br,1,6,"span",15)(2,Fr,2,4,"span",16)(3,zr,1,4,"ng-template",null,2,W)(5,Hr,2,3,"span",17)(6,qr,3,2,"ng-container",10),c()),t&2){let e=j(4),i=s(3),n=i.$implicit,o=i.index,d=s();E(d.cx("itemLink")),m("routerLink",d.getItemProp(n,"routerLink"))("queryParams",d.getItemProp(n,"queryParams"))("routerLinkActive","p-tieredmenu-item-link-active")("routerLinkActiveOptions",d.getItemProp(n,"routerLinkActiveOptions")||ee(22,yr))("target",d.getItemProp(n,"target"))("fragment",d.getItemProp(n,"fragment"))("queryParamsHandling",d.getItemProp(n,"queryParamsHandling"))("preserveFragment",d.getItemProp(n,"preserveFragment"))("skipLocationChange",d.getItemProp(n,"skipLocationChange"))("replaceUrl",d.getItemProp(n,"replaceUrl"))("state",d.getItemProp(n,"state"))("pBind",d.getPTOptions(n,o,"itemLink")),O("data-automationid",d.getItemProp(n,"automationId"))("title",d.getItemProp(n,"title"))("tabindex",-1),a(),m("ngIf",d.getItemProp(n,"icon")),a(),m("ngIf",d.getItemProp(n,"escape"))("ngIfElse",e),a(3),m("ngIf",d.getItemProp(n,"badge")),a(),m("ngIf",d.isItemGroup(n))}}function Wr(t,r){if(t&1&&(Re(0),L(1,Vr,7,13,"a",12)(2,jr,7,23,"a",13),Ve()),t&2){let e=s(2).$implicit,i=s();a(),m("ngIf",!i.getItemProp(e,"routerLink")),a(),m("ngIf",i.getItemProp(e,"routerLink"))}}function Yr(t,r){}function Qr(t,r){t&1&&L(0,Yr,0,0,"ng-template")}function Zr(t,r){if(t&1&&(Re(0),L(1,Qr,1,0,null,26),Ve()),t&2){let e=s(2).$implicit,i=s();a(),m("ngTemplateOutlet",i.itemTemplate)("ngTemplateOutletContext",Pt(2,wr,e.item,i.getItemProp(e,"items")))}}function Xr(t,r){if(t&1){let e=y();l(0,"p-tieredmenusub",27),M("itemClick",function(n){u(e);let o=s(3);return _(o.itemClick.emit(n))})("itemMouseEnter",function(n){u(e);let o=s(3);return _(o.onItemMouseEnter(n))}),c()}if(t&2){let e=s(2).$implicit,i=s();m("items",e.items)("itemTemplate",i.itemTemplate)("autoDisplay",i.autoDisplay)("menuId",i.menuId)("activeItemPath",i.activeItemPath())("focusedItemId",i.focusedItemId)("ariaLabelledBy",i.getItemId(e))("level",i.level+1)("inlineStyles",be(10,Pr,i.isItemActive(e)?"flex":"none"))("pt",i.pt())}}function Jr(t,r){if(t&1){let e=y();l(0,"li",8,1)(2,"div",9),M("click",function(n){u(e);let o=s().$implicit,d=s();return _(d.onItemClick(n,o))})("mouseenter",function(n){u(e);let o=s().$implicit,d=s();return _(d.onItemMouseEnter({$event:n,processedItem:o}))}),L(3,Wr,3,2,"ng-container",10)(4,Zr,2,5,"ng-container",10),c(),L(5,Xr,1,12,"p-tieredmenusub",11),c()}if(t&2){let e=s(),i=e.$implicit,n=e.index,o=s();E(o.cn(o.cx("item",be(21,Tr,i)),o.getItemProp(i,"styleClass"))),m("ngStyle",o.getItemProp(i,"style"))("pBind",o.getPTOptions(i,n,"item"))("tooltipOptions",o.getItemProp(i,"tooltipOptions")),O("id",o.getItemId(i))("data-p-highlight",o.isItemActive(i))("data-p-focused",o.isItemFocused(i))("data-p-disabled",o.isItemDisabled(i))("aria-label",o.getItemLabel(i))("aria-disabled",o.isItemDisabled(i)||void 0)("aria-haspopup",o.isItemGroup(i)&&!o.getItemProp(i,"to")?"menu":void 0)("aria-expanded",o.isItemGroup(i)?o.isItemActive(i):void 0)("aria-setsize",o.getAriaSetSize())("aria-posinset",o.getAriaPosInset(n)),a(2),E(o.cx("itemContent")),m("pBind",o.getPTOptions(i,n,"itemContent")),a(),m("ngIf",!o.itemTemplate),a(),m("ngIf",o.itemTemplate),a(),m("ngIf",o.isItemVisible(i)&&o.isItemGroup(i))}}function ea(t,r){if(t&1&&L(0,Er,1,6,"li",5)(1,Jr,6,23,"li",6),t&2){let e=r.$implicit,i=s();m("ngIf",i.isItemVisible(e)&&i.getItemProp(e,"separator")),a(),m("ngIf",i.isItemVisible(e)&&!i.getItemProp(e,"separator"))}}var ta=["submenuicon"],ia=["item"],na=["rootmenu"],oa=["container"],ra=(t,r)=>({showTransitionParams:t,hideTransitionParams:r}),aa=t=>({value:"visible",params:t});function sa(t,r){if(t&1){let e=y();l(0,"div",3,0),M("click",function(n){u(e);let o=s();return _(o.onOverlayClick(n))})("@overlayAnimation.start",function(n){u(e);let o=s();return _(o.onOverlayAnimationStart(n))})("@overlayAnimation.done",function(n){u(e);let o=s();return _(o.onOverlayAnimationEnd(n))}),l(2,"p-tieredMenuSub",4,1),M("itemClick",function(n){u(e);let o=s();return _(o.onItemClick(n))})("menuFocus",function(n){u(e);let o=s();return _(o.onMenuFocus(n))})("menuBlur",function(n){u(e);let o=s();return _(o.onMenuBlur(n))})("menuKeydown",function(n){u(e);let o=s();return _(o.onKeyDown(n))})("itemMouseEnter",function(n){u(e);let o=s();return _(o.onItemMouseEnter(n))}),c()()}if(t&2){let e=s();E(e.cn(e.cx("root"),e.styleClass)),m("id",e.id)("ngStyle",e.style)("pBind",e.ptm("root"))("@overlayAnimation",be
156(24,aa,Pt(21,ra,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",e.popup!==!0),a(2),m("root",!0)("items",e.processedItems)("itemTemplate",e.itemTemplate||e._itemTemplate)("menuId",e.id)("tabindex",e.disabled?-1:e.tabindex)("ariaLabel",e.ariaLabel)("ariaLabelledBy",e.ariaLabelledBy)("baseZIndex",e.baseZIndex)("autoZIndex",e.autoZIndex)("autoDisplay",e.autoDisplay)("popup",e.popup)("focusedItemId",e.focused?e.focusedItemId:void 0)("activeItemPath",e.activeItemPath())("pt",e.pt())}}var la={submenu:({instance:t,processedItem:r})=>({display:t.isItemActive(r)?"flex":"none"})},ca={root:({instance:t})=>["p-tieredmenu p-component",{"p-tieredmenu-overlay":t.popup,"p-tieredmenu-mobile":t.queryMatches}],start:"p-tieredmenu-start",rootList:"p-tieredmenu-root-list",item:({instance:t,processedItem:r})=>["p-tieredmenu-item",{"p-tieredmenu-item-active":t.isItemActive(r),"p-focus":t.isItemFocused(r),"p-disabled":t.isItemDisabled(r)}],itemContent:"p-tieredmenu-item-content",itemLink:"p-tieredmenu-item-link",itemIcon:"p-tieredmenu-item-icon",itemLabel:"p-tieredmenu-item-label",itemBadge:"p-menuitem-badge",submenuIcon:"p-tieredmenu-submenu-icon",submenu:"p-tieredmenu-submenu",separator:"p-tieredmenu-separator",end:"p-tieredmenu-end"},Ft=(()=>{class t extends lt{name="tieredmenu";style=Fn;classes=ca;inlineStyles=la;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ne(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})();var Hn=new Le("TIEREDMENU_INSTANCE"),zn=new Le("TIEREDMENUSUB_INSTANCE"),pa=(()=>{class t extends Ge{el;renderer;tieredMenu;items;itemTemplate;root=!1;autoDisplay;autoZIndex=!0;baseZIndex=0;popup;menuId;ariaLabel;ariaLabelledBy;level=0;focusedItemId;activeItemPath=N([]);tabindex=0;inlineStyles;itemClick=new Q;itemMouseEnter=new Q;menuFocus=new Q;menuBlur=new Q;menuKeydown=new Q;sublistViewChild;_componentStyle=h(Ft);bindDirectiveInstance=h($,{self:!0});$pcTieredMenu=h(Hn,{optional:!0,skipSelf:!0})??void 0;$pcTieredMenuSub=h(zn,{optional:!0,skipSelf:!0})??void 0;onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}constructor(e,i,n){super(),this.el=e,this.renderer=i,this.tieredMenu=n}positionSubmenu(){if(ze(this.tieredMenu.platformId)){let e=this.sublistViewChild&&this.sublistViewChild.nativeElement;e&&fi(e,this.level)}}getItemProp(e,i,n=null){return e&&e.item?Dt(e.item[i],n):void 0}getItemId(e){return e.item?.id??`${this.menuId}_${e.key}`}getItemKey(e){return this.getItemId(e)}getItemClass(e){return ve(he({},this.getItemProp(e,"class")),{"p-tieredmenu-item":!0,"p-tieredmenu-item-active":this.isItemActive(e),"p-focus":this.isItemFocused(e),"p-disabled":this.isItemDisabled(e)})}getItemLabel(e){return this.getItemProp(e,"label")}getSeparatorItemClass(e){return ve(he({},this.getItemProp(e,"class")),{"p-tieredmenu-separator":!0})}getAriaSetSize(){return this.items.filter(e=>this.isItemVisible(e)&&!this.getItemProp(e,"separator")).length}getAriaPosInset(e){return e-this.items.slice(0,e).filter(i=>{let n=this.isItemVisible(i),o=n&&this.getItemProp(i,"separator");return!n||o}).length+1}isItemVisible(e){return this.getItemProp(e,"visible")!==!1}isItemActive(e){return this.activeItemPath()?(this.positionSubmenu(),this.activeItemPath().some(i=>i.key===e.key)):!1}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemFocused(e){return this.focusedItemId===this.getItemId(e)}isItemGroup(e){return fe(e.items)}_ptm(e,i){return this.$pcTieredMenu?this.$pcTieredMenu.ptm(e,i):this.ptm(e,i)}getPTOptions(e,i,n){return this._ptm(n,{context:{item:e.item,index:i,active:this.isItemActive(e),focused:this.isItemFocused(e),disabled:this.isItemDisabled(e)}})}onItemMouseEnter(e){if(this.autoDisplay){let{event:i,processedItem:n}=e;this.itemMouseEnter.emit({originalEvent:i,processedItem:n})}}onItemClick(e,i){this.getItemProp(i,"command",{originalEvent:e,item:i.item}),this.itemClick.emit({originalEvent:e,processedItem:i,isFocus:!0})}static \u0275fac=function(i){return new(i||t)(Ae(Wt),Ae(Yt),Ae(Ye(()=>vt)))};static \u0275cmp=S({type:t,selectors:[["p-tieredMenuSub"],["p-tieredmenusub"]],viewQuery:function(i,n){if(i&1&&tt(Sr,7),i&2){let o;ce(o=pe())&&(n.sublistViewChild=o.first)}},inputs:{items:"items",itemTemplate:"itemTemplate",root:[2,"root","root",te],autoDisplay:[2,"autoDisplay","autoDisplay",te],autoZIndex:[2,"autoZIndex","autoZIndex",te],baseZIndex:[2,"baseZIndex","baseZIndex",xe],popup:[2,"popup","popup",te],menuId:"menuId",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",level:[2,"level","level",xe],focusedItemId:"focusedItemId",activeItemPath:[1,"activeItemPath"],tabindex:[2,"tabindex","tabindex",xe],inl
156ineStyles:"inlineStyles"},outputs:{itemClick:"itemClick",itemMouseEnter:"itemMouseEnter",menuFocus:"menuFocus",menuBlur:"menuBlur",menuKeydown:"menuKeydown"},features:[_e([{provide:zn,useExisting:Ye(()=>t)},{provide:Ke,useExisting:Ye(()=>t)}]),De([$]),Ue],decls:3,vars:12,consts:[["sublist",""],["listItem",""],["htmlLabel",""],["role","menu",3,"keydown","focus","blur","id","tabindex","pBind"],["ngFor","",3,"ngForOf"],["role","separator",3,"style","class","pBind",4,"ngIf"],["role","menuitem","pTooltip","",3,"ngStyle","class","pBind","tooltipOptions",4,"ngIf"],["role","separator",3,"pBind"],["role","menuitem","pTooltip","",3,"ngStyle","pBind","tooltipOptions"],[3,"click","mouseenter","pBind"],[4,"ngIf"],[3,"items","itemTemplate","autoDisplay","menuId","activeItemPath","focusedItemId","ariaLabelledBy","level","inlineStyles","pt","itemClick","itemMouseEnter",4,"ngIf"],["pRipple","",3,"target","class","pBind",4,"ngIf"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","class","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","pBind",4,"ngIf"],["pRipple","",3,"target","pBind"],[3,"class","ngStyle","pBind",4,"ngIf"],[3,"class","pBind",4,"ngIf","ngIfElse"],[3,"class",4,"ngIf"],[3,"ngStyle","pBind"],[3,"pBind"],[3,"innerHTML","pBind"],["data-p-icon","angle-right",3,"class","pBind",4,"ngIf"],[4,"ngTemplateOutlet"],["data-p-icon","angle-right",3,"pBind"],[3,"aria-hidden"],["pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","pBind"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"itemClick","itemMouseEnter","items","itemTemplate","autoDisplay","menuId","activeItemPath","focusedItemId","ariaLabelledBy","level","inlineStyles","pt"]],template:function(i,n){if(i&1){let o=y();l(0,"ul",3,0),M("keydown",function(C){return u(o),_(n.menuKeydown.emit(C))})("focus",function(C){return u(o),_(n.menuFocus.emit(C))})("blur",function(C){return u(o),_(n.menuBlur.emit(C))}),L(2,ea,2,2,"ng-template",4),c()}i&2&&(Be(n.inlineStyles),E(n.root?n.cx("rootList"):n.cx("submenu")),m("id",n.menuId+"_list")("tabindex",n.tabindex)("pBind",n._ptm(n.root?"rootList":"submenu")),O("aria-label",n.ariaLabel)("aria-labelledBy",n.ariaLabelledBy)("aria-activedescendant",n.focusedItemId)("aria-orientation","vertical"),a(2),m("ngForOf",n.items))},dependencies:[t,U,si,Fe,li,Ot,He,J,nt,ki,qe,mt,$,Oi,ie,Vt],encapsulation:2})}return t})(),vt=(()=>{class t extends Ge{overlayService;set model(e){this._model=e,this._processedItems=this.createProcessedItems(this._model||[])}get model(){return this._model}popup;style;styleClass;breakpoint="960px";autoZIndex=!0;baseZIndex=0;autoDisplay=!0;showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)";hideTransitionOptions=".1s linear";id;ariaLabel;ariaLabelledBy;disabled=!1;tabindex=0;appendTo=N(void 0);onShow=new Q;onHide=new Q;rootmenu;containerViewChild;submenuIconTemplate;itemTemplate;templates;$appendTo=T(()=>this.appendTo()||this.config.overlayAppendTo());container;outsideClickListener;resizeListener;scrollHandler;target;relatedTarget;visible;relativeAlign;dirty=!1;focused=!1;activeItemPath=P([]);number=P(0);focusedItemInfo=P({index:-1,level:0,parentKey:"",item:null});searchValue="";searchTimeout;_processedItems;_model;_componentStyle=h(Ft);bindDirectiveInstance=h($,{self:!0});matchMediaListener;query;queryMatches;_submenuIconTemplate;_itemTemplate;get visibleItems(){let e=this.activeItemPath().find(i=>i.key===this.focusedItemInfo().parentKey);return e?e.items:this.processedItems}get processedItems(){return(!this._processedItems||!this._processedItems.length)&&(this._processedItems=this.createProcessedItems(this.model||[])),this._processedItems}get focusedItemId(){let e=this.focusedItemInfo();return e.item?.id?e.item.id:e.index!==-1?`${this.id}${fe(e.parentKey)?"_"+e.parentKey:""}_${e.index}`:null}constructor(e){super(),this.overlayService=e,H(()=>{let i=this.activeItemPath();fe(i)?(this.bindOutsideClickListener(),this.bindResizeListener()):(this.unbindOutsideClickListener(),this.unbindResizeListener())})}onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}onInit(){this.bindMatchMediaListener(),this.id=this.id||vi("pn_id_")}
156onAfterContentInit(){this.templates?.forEach(e=>{switch(e.getType()){case"submenuicon":this._submenuIconTemplate=e.template;break;case"item":this._itemTemplate=e.template;break;default:this._itemTemplate=e.template;break}})}bindMatchMediaListener(){if(ze(this.platformId)&&!this.matchMediaListener){let e=window.matchMedia(`(max-width: ${this.breakpoint})`);this.query=e,this.queryMatches=e.matches,this.matchMediaListener=()=>{this.queryMatches=e.matches},e.addEventListener("change",this.matchMediaListener)}}unbindMatchMediaListener(){this.matchMediaListener&&(this.query.removeEventListener("change",this.matchMediaListener),this.matchMediaListener=null)}createProcessedItems(e,i=0,n={},o=""){let d=[];return e&&e.forEach((C,F)=>{let z=(o!==""?o+"_":"")+F,G={item:C,index:F,level:i,key:z,parent:n,parentKey:o};G.items=this.createProcessedItems(C.items,i+1,G,z),d.push(G)}),d}getItemProp(e,i){return e?Dt(e[i]):void 0}getProccessedItemLabel(e){return e?this.getItemLabel(e.item):void 0}getItemLabel(e){return this.getItemProp(e,"label")}isProcessedItemGroup(e){return e&&fe(e.items)}isSelected(e){return this.activeItemPath().some(i=>i.key===e.key)}isValidSelectedItem(e){return this.isValidItem(e)&&this.isSelected(e)}isValidItem(e){return!!e&&!this.isItemDisabled(e.item)&&!this.isItemSeparator(e.item)&&this.isItemVisible(e.item)}isItemDisabled(e){return this.getItemProp(e,"disabled")}isItemVisible(e){return this.getItemProp(e,"visible")!==!1}isItemSeparator(e){return this.getItemProp(e,"separator")}isItemMatched(e){return this.isValidItem(e)&&this.getProccessedItemLabel(e).toLocaleLowerCase().startsWith(this.searchValue.toLocaleLowerCase())}isProccessedItemGroup(e){return e&&fe(e.items)}onOverlayClick(e){this.popup&&this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}onItemClick(e){let{originalEvent:i,processedItem:n}=e,o=this.isProcessedItemGroup(n),d=rt(n.parent);if(this.isSelected(n)){let{index:F,key:z,level:G,parentKey:xt,item:We}=n;this.activeItemPath.set(this.activeItemPath().filter(ke=>z!==ke.key&&z.startsWith(ke.key))),this.focusedItemInfo.set({index:F,level:G,parentKey:xt,item:We}),this.dirty=!0,ge(this.rootmenu?.sublistViewChild?.nativeElement)}else if(o)this.onItemChange(e);else{let F=d?n:this.activeItemPath().find(z=>z.parentKey==="");this.hide(i),this.changeFocusedItemIndex(i,F?.index??-1),ge(this.rootmenu?.sublistViewChild?.nativeElement)}}onItemMouseEnter(e){At()?this.onItemChange({event:e,processedItem:e.processedItem,focus:this.autoDisplay},"hover"):this.dirty&&this.onItemChange(e,"hover")}onKeyDown(e){let i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Space":this.onSpaceKey(e);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"PageDown":case"PageUp":case"Backspace":case"ShiftLeft":case"ShiftRight":break;default:!i&&hi(e.key)&&this.searchItems(e,e.key);break}}onArrowDownKey(e){let i=this.focusedItemInfo().index!==-1?this.findNextItemIndex(this.focusedItemInfo().index):this.findFirstFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}onArrowRightKey(e){let i=this.visibleItems[this.focusedItemInfo().index],n=this.isProccessedItemGroup(i),o=i?.item;n&&(this.onItemChange({originalEvent:e,processedItem:i}),this.focusedItemInfo.set({index:-1,parentKey:i.key,item:o}),this.searchValue="",this.onArrowDownKey(e)),e.preventDefault()}onArrowUpKey(e){if(e.altKey){if(this.focusedItemInfo().index!==-1){let i=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(i)&&this.onItemChange({originalEvent:e,processedItem:i})}this.popup&&this.hide(e,!0),e.preventDefault()}else{let i=this.focusedItemInfo().index!==-1?this.findPrevItemIndex(this.focusedItemInfo().index):this.findLastFocusedItemIndex();this.changeFocusedItemIndex(e,i),e.preventDefault()}}onArrowLeftKey(e){let i=this.visibleItems[this.focusedItemInfo().index];if(!i){e.preventDefault();return}let n=this.activeItemPath().find(C=>C.key===i.parentKey);rt(i.parent)||(this.focusedItemInfo.set({index:-1,parentKey:n?n.parentKey:"",item:i.item}),this.searchValue="",this.onArrowDownKey(e));let d=this.activeItemPath().filter(C=>C.parentKey!==this.focusedItemInfo().parentKey);this.activeItemPath.set(d),e.preventDefault()}onHomeKey(e){this.changeFocusedItemIndex(e,this.findFirstItemIndex()),e.preventDefault()}onEndKey(e){this.changeFocusedItemIndex(e,this.findLastItemIndex()),e.preventDefault()}onSpaceKey(e){this.onEnterKey(e)}onEscapeKey(e){this.hide(e,!0),this.focusedItemInfo().index=this.findFirstFocusedItemIndex(),e.preventDefault()}onTabKey(e){if(this.focusedItemInfo().index!==-1){let i=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(i)&&this.onItemChange({originalEvent:e,processedItem:i})}this.hide()}onEnterKey(e){if(this.focusedItemInfo().index!==-1){let i=$e(this.rootmenu?.el?.nativeElement,`li[id="${`${this.focusedItemId}`}
156"]`),n=i&&($e(i,'[data-pc-section="itemlink"]')||$e(i,"a,button"));if(n?n.click():i&&i.click(),!this.popup){let o=this.visibleItems[this.focusedItemInfo().index];!this.isProccessedItemGroup(o)&&(this.focusedItemInfo().index=this.findFirstFocusedItemIndex())}}e.preventDefault()}onItemChange(e,i){let{processedItem:n,isFocus:o}=e;if(rt(n))return;let{index:d,key:C,level:F,parentKey:z,items:G,item:xt}=n,We=fe(G),ke=this.activeItemPath().filter($t=>$t.parentKey!==z&&$t.parentKey!==C);We&&ke.push(n),this.focusedItemInfo.set({index:d,level:F,parentKey:z,item:xt}),We&&(this.dirty=!0),o&&ge(this.rootmenu?.sublistViewChild?.nativeElement),!(i==="hover"&&this.queryMatches)&&this.activeItemPath.set(ke)}onMenuFocus(e){this.focused=!0,this.focusedItemInfo().index===-1&&this.popup}onMenuBlur(e){this.focused=!1,this.focusedItemInfo.set({index:-1,level:0,parentKey:"",item:null}),this.searchValue="",this.dirty=!1}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.popup&&(this.container=e.element,this.moveOnTop(),this.onShow.emit({}),ui(this.containerViewChild?.nativeElement,{position:"absolute",top:0}),this.$attrSelector&&this.container?.setAttribute(this.$attrSelector,""),this.appendOverlay(),this.alignOverlay(),this.bindOutsideClickListener(),this.bindResizeListener(),this.bindScrollListener(),ge(this.rootmenu?.sublistViewChild?.nativeElement),this.scrollInView());break;case"void":this.onOverlayHide(),this.onHide.emit({});break}}alignOverlay(){this.relativeAlign?_i(this.container,this.target):di(this.container,this.target),ot(this.target)>ot(this.container)&&(this.container.style.minWidth=ot(this.target)+"px")}onOverlayAnimationEnd(e){switch(e.toState){case"void":ct.clear(e.element);break}}appendOverlay(){this.$appendTo()&&this.$appendTo()!=="self"&&(this.$appendTo()==="body"?this.renderer.appendChild(this.document.body,this.container):gi(this.$appendTo(),this.container))}restoreOverlayAppend(){this.container&&this.$appendTo()!=="self"&&this.renderer.appendChild(this.el.nativeElement,this.container)}moveOnTop(){this.autoZIndex&&ct.set("menu",this.container,this.baseZIndex+this.config.zIndex.menu)}hide(e,i){this.popup&&(this.onHide.emit({}),this.visible=!1),this.activeItemPath.set([]),this.focusedItemInfo.set({index:-1,level:0,parentKey:""}),i&&ge(this.relatedTarget||this.target||this.rootmenu?.sublistViewChild?.nativeElement),this.dirty=!1}toggle(e){this.visible?this.hide(e,!0):this.show(e)}show(e,i){this.popup&&(this.visible=!0,this.target=this.target||e.currentTarget,this.relatedTarget=e.relatedTarget||null,this.relativeAlign=e?.relativeAlign||null),this.focusedItemInfo.set({index:-1,level:0,parentKey:""}),i&&ge(this.rootmenu?.sublistViewChild?.nativeElement),this.cd.markForCheck()}searchItems(e,i){this.searchValue=(this.searchValue||"")+i;let n=-1,o=!1;return this.focusedItemInfo().index!==-1?(n=this.visibleItems.slice(this.focusedItemInfo().index).findIndex(d=>this.isItemMatched(d)),n=n===-1?this.visibleItems.slice(0,this.focusedItemInfo().index).findIndex(d=>this.isItemMatched(d)):n+this.focusedItemInfo().index):n=this.visibleItems.findIndex(d=>this.isItemMatched(d)),n!==-1&&(o=!0),n===-1&&this.focusedItemInfo().index===-1&&(n=this.findFirstFocusedItemIndex()),n!==-1&&this.changeFocusedItemIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout(()=>{this.searchValue="",this.searchTimeout=null},500),o}findLastFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findLastItemIndex():e}findLastItemIndex(){return Ut(this.visibleItems,e=>this.isValidItem(e))}findPrevItemIndex(e){let i=e>0?Ut(this.visibleItems.slice(0,e),n=>this.isValidItem(n)):-1;return i>-1?i:e}findNextItemIndex(e){let i=e<this.visibleItems.length-1?this.visibleItems.slice(e+1).findIndex(n=>this.isValidItem(n)):-1;return i>-1?i+e+1:e}findFirstFocusedItemIndex(){let e=this.findSelectedItemIndex();return e<0?this.findFirstItemIndex():e}findFirstItemIndex(){return this.visibleItems.findIndex(e=>this.isValidItem(e))}findSelectedItemIndex(){return this.visibleItems.findIndex(e=>this.isValidSelectedItem(e))}changeFocusedItemIndex(e,i){if(this.focusedItemInfo().index!==i){let n=this.focusedItemInfo();this.focusedItemInfo.set(ve(he({},n),{item:this.visibleItems[i].item,index:i})),this.scrollInView()}}scrollInView(e=-1){let i=e!==-1?`${this.id}_${e}`:this.focusedItemId,n=$e(this.rootmenu?.el?.nativeElement,`li[id="${i}"]`);n&&n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"})}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Ei(this.target,e=>{this.visible&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&(this.scrollHandler.unbindScrollListener(),this.scrollHandler=null)}bindResizeListener(){ze(this.platformId)&&(this.resizeListener||(this.resizeListener=this.renderer.listen(this.document.defaultView,"resize",e=>{At()||this.hide(e,!0)})))}bindOutsideClickListener(){ze(this.platformId)&&(this.outsideClickListener||(this.outsideClickListener=this.renderer.listen(this.document,"click",e=>{let i=this.containerViewChild&&!this.containerViewChild.nativeElement.contains(e.target),n=this.popup?!(this.target&&(this.target===e.target||this.target.contains(e.target))):!0;i&&n&&this.hide()})))}unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}unbindResizeListener(){this.resizeListener&&(this.resizeListener(),this.resizeListener=null)}onOverlayHide(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.unbindScrollListener(),this.cd.destroyed||(this.target=null)}onDestroy(){this.popup&&(this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.container&&this.autoZIndex&&ct.clear(this.container),this.restoreOverlayAppend(),this.onOverlayHide()),this.unbindMat
156chMediaListener()}static \u0275fac=function(i){return new(i||t)(Ae(Ci))};static \u0275cmp=S({type:t,selectors:[["p-tieredMenu"],["p-tieredmenu"],["p-tiered-menu"]],contentQueries:function(i,n,o){if(i&1&&(et(o,ta,4),et(o,ia,4),et(o,at,4)),i&2){let d;ce(d=pe())&&(n.submenuIconTemplate=d.first),ce(d=pe())&&(n.itemTemplate=d.first),ce(d=pe())&&(n.templates=d)}},viewQuery:function(i,n){if(i&1&&(tt(na,5),tt(oa,5)),i&2){let o;ce(o=pe())&&(n.rootmenu=o.first),ce(o=pe())&&(n.containerViewChild=o.first)}},inputs:{model:"model",popup:[2,"popup","popup",te],style:"style",styleClass:"styleClass",breakpoint:"breakpoint",autoZIndex:[2,"autoZIndex","autoZIndex",te],baseZIndex:[2,"baseZIndex","baseZIndex",xe],autoDisplay:[2,"autoDisplay","autoDisplay",te],showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",id:"id",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",disabled:[2,"disabled","disabled",te],tabindex:[2,"tabindex","tabindex",xe],appendTo:[1,"appendTo"]},outputs:{onShow:"onShow",onHide:"onHide"},features:[_e([Ft,{provide:Hn,useExisting:t},{provide:Ke,useExisting:t}]),De([$]),Ue],decls:1,vars:1,consts:[["container",""],["rootmenu",""],[3,"id","class","ngStyle","pBind","click",4,"ngIf"],[3,"click","id","ngStyle","pBind"],[3,"itemClick","menuFocus","menuBlur","menuKeydown","itemMouseEnter","root","items","itemTemplate","menuId","tabindex","ariaLabel","ariaLabelledBy","baseZIndex","autoZIndex","autoDisplay","popup","focusedItemId","activeItemPath","pt"]],template:function(i,n){i&1&&L(0,sa,4,26,"div",2),i&2&&m("ngIf",!n.popup||n.visible)},dependencies:[U,Fe,Ot,pa,He,qe,$,ie,Vt],encapsulation:2,data:{animation:[mi("overlayAnimation",[Nt(":enter",[Lt({opacity:0,transform:"scaleY(0.8)"}),kt("{{showTransitionParams}}")]),Nt(":leave",[kt("{{hideTransitionParams}}",Lt({opacity:0}
156))])])]},changeDetection:0})}return t})(),$n=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Xe({type:t});static \u0275inj=Qe({imports:[vt,ie,ie]})}return t})();var da=t=>Rt(t)?.label||t,ua=t=>({light:"LAYOUTS.THEME_LIGHT",dark:"LAYOUTS.THEME_DARK",system:"LAYOUTS.THEME_SYSTEM"})[t]||t,_a=t=>t?t.includes("/")&&t.split("/").pop()||t:"LAYOUTS.THEME_AUTO_DETECT",Kn=(t,r,e,i)=>[{label:"USER_MENU.LANGUAGE",appIcon:w.Globe,currentValue:da(t),currentFlagCountryCode:Rt(t)?.countryCode,items:Ii(t).map(n=>({label:n.label,countryCode:n.countryCode,appIcon:n.isSelected?w.Check:void 0,command:()=>i.changeLanguage(n.value)}))},{label:"USER_MENU.THEME",appIcon:w.Palette,currentValue:ua(r),items:[{label:"USER_MENU.LIGHT",appIcon:r==="light"?w.Check:w.Sun,command:()=>i.changeTheme("light")},{label:"USER_MENU.DARK",appIcon:r==="dark"?w.Check:w.Moon,command:()=>i.changeTheme("dark")},{label:"USER_MENU.SYSTEM",appIcon:r==="system"?w.Check:w.Monitor,command:()=>i.changeTheme("system")}]},{label:"USER_MENU.CHANGE_TIMEZONE",appIcon:w.Clock,currentValue:_a(e),command:()=>i.changeTimezone()}];function ga(t,r){t&1&&p(0,"app-chevron-left-icon",8)}function fa(t,r){t&1&&p(0,"span",9)}function ha(t,r){if(t&1&&p(0,"app-flag",10),t&2){let e=s().$implicit;m("countryCode",e.countryCode)}}function va(t,r){if(t&1&&p(0,"app-icon",11),t&2){let e=s().$implicit;m("name",e.appIcon)}}function Ca(t,r){if(t&1&&p(0,"span"),t&2){let e=s().$implicit;E(e.icon+" menu-item-icon")}}function ba(t,r){if(t&1&&p(0,"app-flag",18),t&2){let e=s(2).$implicit;m("countryCode",e.currentFlagCountryCode)}}function xa(t,r){if(t&1&&(l(0,"span",15),g(1,ba,1,1,"app-flag",18),v(2),b(3,"translate"),c()),t&2){let e=s().$implicit;a(),f(e.currentFlagCountryCode?1:-1),a(),K(" ",x(3,2,e.currentValue)," ")}}function Ia(t,r){if(t&1&&p(0,"app-icon",16),t&2){let e=s().$implicit;m("name",e.appIcon)}}function Ma(t,r){if(t&1&&p(0,"span",17),t&2){let e=s().$implicit;m("ngClass",e.icon)}}function Sa(t,r){if(t&1&&(l(0,"a",7),g(1,ga,1,0,"app-chevron-left-icon",8)(2,fa,1,0,"span",9),g(3,ha,1,1,"app-flag",10)(4,va,1,1,"app-icon",11)(5,Ca,1,2,"span",12),l(6,"div",13)(7,"span",14),v(8),b(9,"translate"),c(),g(10,xa,4,4,"span",15),c(),g(11,Ia,1,1,"app-icon",16)(12,Ma,1,1,"span",17),c()),t&2){let e=r.$implicit;a(),f(e.items&&e.items.length>0?1:2),a(2),f(e.countryCode?3:e.appIcon?4:e.icon?5:-1),a(5),I(x(9,5,e.label)),a(2),f(e.currentValue?10:-1),a(),f(e.countryCode&&e.appIcon?11:e.countryCode&&e.icon?12:-1)}}var Gn=(()=>{class t{currentLanguage=P("en");timezoneModalVisible=P(!1);menuItems=T(()=>this.createMenuItems());authStore=h(Se);currentTimezone=T(()=>this.authStore.user()?.timezone??"UTC");languageService=h(yi);languageSubscription;actionHandlers={changeLanguage:e=>this.changeLanguage(e),changeTheme:e=>this.changeTheme(e),changeTimezone:()=>this.changeTimezone()};constructor(){let e=this.languageService.getCurrentLanguage();this.currentLanguage.set(e),this.languageSubscription=this.languageService.onLanguageChange().subscribe(i=>{this.currentLanguage.set(i)})}ngOnDestroy(){this.languageSubscription?.unsubscribe()}onTimezoneCancel(){this.timezoneModalVisible.set(!1)}onTimezoneConfirm(e){this.authStore.updateUserProfile({timezone:e}),this.timezoneModalVisible.set(!1)}createMenuItems(){return Kn(this.currentLanguage(),this.authStore.currentTheme(),this.currentTimezone(),this.actionHandlers)}changeLanguage(e){this.currentLanguage.set(e),this.languageService.clearPendingLanguage(),this.languageService.changeLanguage(e),this.authStore.updateUserProfile({lang:Ti(e)})}changeTheme(e){this.authStore.setUserTheme(e),this.authStore.updateUserProfile({theme:e})}changeTimezone(){this.timezoneModalVisible.set(!0)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-settings-button"]],decls:9,vars:7,consts:[["menu",""],["item",""],[1,"settings-button-wrapper"],["type","button",1,"header-icon-button","settings-button",3,"click"],[1,"icon"],["appendTo","body",1,"settings-tiered-menu",3,"model","popup"],[3,"visibleChange","cancelDialog","confirmDialog","visible","currentTimezone"],["role","menuitem","tabindex","0",1,"p-ripple","p-tieredmenu-item-link"],[1,"menu-item-arrow"],[1,"menu-item-arrow-placeholder"],[1,"menu-item-flag",3,"countryCode"],[1,"menu-item-icon",3,"name"],[3,"class"],[1,"flex","flex-col","gap-1","flex-1","min-w-0"],[1,"p-tieredmenu-item-label"],[1,"current-value","flex","items-center","gap-2"],[1,"menu-item-check",3,"name"],[1,"menu-item-check",3,"ngClass"],[3,"countryCode"]],template:function(i,n){if(i&1){let o=y();l(0,"div",2)(1,"button",3),b(2,"translate"),M("click",function(C){u(o);let F=j(5);return _(F.toggle(C))}),p(3,"app-user-settings-icon",4),c(),l(4,"p-tieredMenu",5,0),L(6,Sa,13,7,"ng-template",null,1,W),c(),l(8,"app-timezone-selector-dialog",6),ue("visibleChange",function(C){return u(o),de(n.timezoneModalVisible,C)||
156(n.timezoneModalVisible=C),_(C)}),M("cancelDialog",function(){return u(o),_(n.onTimezoneCancel())})("confirmDialog",function(C){return u(o),_(n.onTimezoneConfirm(C))}),c()()}i&2&&(a(),O("aria-label",x(2,5,"LAYOUTS.SETTINGS")),a(3),m("model",n.menuItems())("popup",!0),a(4),me("visible",n.timezoneModalVisible),m("currentTimezone",n.currentTimezone()))},dependencies:[U,Ie,ae,Ni,$n,vt,gt,dn,ye,dt,ut,D],styles:[".settings-button-wrapper[_ngcontent-%COMP%]{position:relative}.settings-button[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:2.5rem;height:2.5rem;border:none;background:transparent;border-radius:.375rem;cursor:pointer;transition:background-color .15s ease-in-out}.settings-button[_ngcontent-%COMP%]:hover{background-color:var(--bg-secondary-hover)}.settings-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid var(--basic-primary);outline-offset:.125rem}.settings-button[_ngcontent-%COMP%]   .icon[_ngcontent-%COMP%]{--app-icon-size: var(--text-lg);font-size:var(--text-lg);transition:transform .2s ease-in-out}.settings-button[_ngcontent-%COMP%]:hover   .icon[_ngcontent-%COMP%]{transform:rotate(45deg)}"]})}return t})();var qn=`
157    .p-avatar {
158        display: inline-flex;
159        align-items: center;
160        justify-content: center;
161        width: dt('avatar.width');
162        height: dt('avatar.height');
163        font-size: dt('avatar.font.size');
164        background: dt('avatar.background');
165        color: dt('avatar.color');
166        border-radius: dt('avatar.border.radius');
167    }
168
169    .p-avatar-image {
170        background: transparent;
171    }
172
173    .p-avatar-circle {
174        border-radius: 50%;
175    }
176
177    .p-avatar-circle img {
178        border-radius: 50%;
179    }
180
181    .p-avatar-icon {
182        font-size: dt('avatar.icon.size');
183        width: dt('avatar.icon.size');
184        height: dt('avatar.icon.size');
185    }
186
187    .p-avatar img {
188        width: 100%;
189        height: 100%;
190    }
191
192    .p-avatar-lg {
193        width: dt('avatar.lg.width');
194        height: dt('avatar.lg.width');
195        font-size: dt('avatar.lg.font.size');
196    }
197
198    .p-avatar-lg .p-avatar-icon {
199        font-size: dt('avatar.lg.icon.size');
200        width: dt('avatar.lg.icon.size');
201        height: dt('avatar.lg.icon.size');
202    }
203
204    .p-avatar-xl {
205        width: dt('avatar.xl.width');
206        height: dt('avatar.xl.width');
207        font-size: dt('avatar.xl.font.size');
208    }
209
210    .p-avatar-xl .p-avatar-icon {
211        font-size: dt('avatar.xl.icon.size');
212        width: dt('avatar.xl.icon.size');
213        height: dt('avatar.xl.icon.size');
214    }
215
216    .p-avatar-group {
217        display: flex;
218        align-items: center;
219    }
220
221    .p-avatar-group .p-avatar + .p-avatar {
222        margin-inline-start: dt('avatar.group.offset');
223    }
224
225    .p-avatar-group .p-avatar {
226        border: 2px solid dt('avatar.group.border.color');
227    }
228
229    .p-avatar-group .p-avatar-lg + .p-avatar-lg {
230        margin-inline-start: dt('avatar.lg.group.offset');
231    }
232
233    .p-avatar-group .p-avatar-xl + .p-avatar-xl {
234        margin-inline-start: dt('avatar.xl.group.offset');
235    }
236`;var Ta=["*"];function ya(t,r){if(t&1&&(l(0,"span",3),v(1),c()),t&2){let e=s();E(e.cx("label")),m("pBind",e.ptm("label")),a(),I(e.label)}}function wa(t,r){if(t&1&&p(0,"span",5),t&2){let e=s(2);E(e.icon),m("pBind",e.ptm("icon"))("ngClass",e.cx("icon"))}}function Pa(t,r){if(t&1&&L(0,wa,1,4,"span",4),t&2){let e=s(),i=j(5);m("ngIf",e.icon)("ngIfElse",i)}}function Ea(t,r){if(t&1){let e=y();l(0,"img",7),M("error",function(n){u(e);let o=s(2);return _(o.imageError(n))}),c()}if(t&2){let e=s(2);m("pBind",e.ptm("image"))("src",e.image,Ce),O("aria-label",e.ariaLabel)}}function Oa(t,r){if(t&1&&L(0,Ea,1,3,"img",6),t&2){let e=s();m("ngIf",e.image)}}var ka={root:({instance:t})=>["p-avatar p-component",{"p-avatar-image":t.image!=null,"p-avatar-circle":t.shape==="circle","p-avatar-lg":t.size==="large","p-avatar-xl":t.size==="xlarge"}],label:"p-avatar-label",icon:"p-avatar-icon"},jn=(()=>{class t extends lt{name="avatar";style=qn;classes=ka;static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ne(t)))(n||t)}})();static \u0275prov=ne({token:t,factory:t.\u0275fac})}return t})();var Wn=new Le("AVATAR_INSTANCE"),zt=(()=>{class t extends Ge{$pcAvatar=h(Wn,{optional:!0,skipSelf:!0})??void 0;bindDirectiveInstance=h($,{self:!0});onAfterViewChecked(){this.bindDirectiveInstance.setAttrs(this.ptms(["host","root"]))}label;icon;image;size="normal";shape="square";styleClass;ariaLabel;ariaLabelledBy;onImageError=new Q;_componentStyle=h(jn);imageError(e){this.onImageError.emit(e)}static \u0275fac=(()=>{let e;return function(n){return(e||(e=Ne(t)))(n||t)}})();static \u0275cmp=S({type:t,selectors:[["p-avatar"]],hostVars:4,hostBindings:function(i,n){i&2&&(O("aria-label",n.ariaLabel)("aria-labelledby",n.ariaLabelledBy),E(n.cn(n.cx("root"),n.styleClass)))},inputs:{label:"label",icon:"icon",image:"image",size:"size",shape:"shape",styleClass:"styleClass",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy"},outputs:{onImageError:"onImageError"},features:[_e([jn,{provide:Wn,useExisting:t},{provide:Ke,useExisting:t}]),De([$]),Ue],ngContentSelectors:Ta,decls:6,vars:2,consts:[["iconTemplate",""],["imageTemplate",""],[3,"pBind","class",4,"ngIf","ngIfElse"],[3,"pBind"],[3,"pBind","class","ngClass",4,"ngIf","ngIfElse"],[3,"pBind","ngClass"],[3,"pBind","src","error",4,"ngIf"],[3,"error","pBind","src"]],template:function(i,n){if(i&1&&(Jt(),ei(0),L(1,ya,2,4,"span",2)(2,Pa,1,2,"ng-template",null,0,W)(4,Oa,1,1,"ng-template",null,1,W)),i&2){let o=j(3);a(),m("ngIf",n.label)("ngIfElse",o)}},dependencies:[U,Ie,Fe,ie,$],encapsulation:2,changeDetection:0})}return t})(),Yn=(()=>{class t{static \u0275fac=function(i){return new(i||t)};static \u0275mod=Xe({type:t});static \u0275inj=Qe({imports:[zt,ie,ie]})}return t})();var Qn=t=>[{id:"profile",label:"USER_MENU.PROFILE",appIcon:w.User,command:()=>{t.navigateToProfile()}},{id:"billing",label:"USER_MENU.BILLING",appIcon:w.Wallet,command:()=>{t.navigateToBilling()}},{id:"referrals",label:"USER_MENU.REFERRALS",appIcon:w.Gift,command:()=>{t.navigateToReferral()}},{id:"preferences",label:"USER_MENU.PREFERENCES",appIcon:w.UserSettings,command:()=>{t.navigateToPreferences()}},{id:"upgrade-plan",label:"USER_MENU.UPGRADE_PLAN",appIcon:w.ArrowUp,command:()=>{t.navigateToUpgradePlan()}},{id:"sign-out",label:"USER_MENU.SIGN_OUT",appIcon:w.SignOut,command:()=>{t.logout()}}],Zn=t=>({label:"USER_MENU.SUPPORT",appIcon:w.QuestionCircle,items:[{label:"USER_MENU.SUPPORT_CENTER",appIcon:w.Comments,command:()=>t.openSupport()},{label:"USER_MENU.FAQ",appIcon:w.QuestionCircle,command:()=>t.openFAQ()},{label:"USER_MENU.USER_MANUALS",appIcon:w.UserManual,command:()=>t.openUserManuals()}]}),Xn=(t,r)=>({label:"USER_MENU.SETTINGS",appIcon:w.UserSettings,items:[{label:"USER_MENU.LIGHT",appIcon:t==="light"?w.Check:w.Sun,command:()=>r.changeTheme("light")},{label:"USER_MENU.DARK",appIcon:t==="dark"?w.Check:w.Moon,command:()=>r.changeTheme("dark")},{label:"USER_MENU.SYSTEM",appIcon:t==="system"?w.Check:w.Monitor,command:()=>r.changeTheme("system")}
236,{label:"USER_MENU.CHANGE_TIMEZONE",appIcon:w.Clock,command:()=>r.changeTimezone()}]});function Na(t,r){t&1&&(l(0,"span",4),v(1),b(2,"translate"),c()),t&2&&(a(),I(x(2,1,"LAYOUTS.IMPULSES")))}function Aa(t,r){if(t&1){let e=y();l(0,"button",1),M("click",function(){u(e);let n=s();return _(n.onNavigate())}),p(1,"app-reward-impulse-icon",2),l(2,"span",3),v(3),b(4,"number"),c(),g(5,Na,3,3,"span",4),c()}if(t&2){let e=s();O("id",e.resolvedTourId()),a(3),I(x(4,3,e.store.balance())),a(2),f(e.showLabel()?5:-1)}}var Ct=(()=>{class t{showLabel=N(!0);variant=N("default");tourId=N(null);store=h(mn);screenSize=h(se);router=h(X);resolvedTourId=T(()=>{let e=this.tourId();if(!e)return null;let i=this.screenSize.isMobile575();return this.variant()==="menu"?i?e:null:i?null:e});onNavigate(){this.router.navigate(["/user/profile/referral"])}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-impulses-badge"]],hostVars:2,hostBindings:function(i,n){i&2&&k("in-menu",n.variant()==="menu")},inputs:{showLabel:[1,"showLabel"],variant:[1,"variant"],tourId:[1,"tourId"]},decls:1,vars:1,consts:[["type","button",1,"impulses-badge"],["type","button",1,"impulses-badge",3,"click"],["size","1.25rem"],[1,"impulses-badge__amount"],[1,"impulses-badge__label","secondary-text","text-sm"]],template:function(i,n){i&1&&g(0,Aa,6,5,"button",0),i&2&&f(n.store.bonusBalanceData()?0:-1)},dependencies:[gn,ci,D],styles:["[_nghost-%COMP%]{display:contents}.impulses-badge[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-1) var(--spacing-3);border:1px solid var(--border-light);border-radius:var(--border-radius-full);background:var(--bg-secondary);cursor:pointer;transition:background .15s ease;white-space:nowrap;height:2rem}.impulses-badge[_ngcontent-%COMP%]:hover{background:var(--bg-hover)}.impulses-badge__amount[_ngcontent-%COMP%]{display:inline-flex;align-items:center;font-size:var(--text-sm);font-weight:var(--font-bold);color:var(--text-secondary)}.impulses-badge__label[_ngcontent-%COMP%]{display:inline-flex;align-items:center}@media(max-width:767px){.impulses-badge__label[_ngcontent-%COMP%]{display:none}}.in-menu[_nghost-%COMP%]   .impulses-badge[_ngcontent-%COMP%]{background:var(--bg-alt)}"]})}return t})();var Ua=["userOverlay"],Da=["avatarButton"],Ra=()=>({width:"2.5rem",height:"2.5rem"}),Va=t=>({name:t}),Ba=(t,r)=>r.label;function Fa(t,r){t&1&&(l(0,"div",4),p(1,"p-progressSpinner",12),c()),t&2&&(a(),Be(ee(2,Ra)))}function za(t,r){if(t&1){let e=y();l(0,"span",13),v(1),c(),l(2,"button",14,1),b(4,"translate"),M("click",function(n){u(e);let o=s();return _(o.toggleUserMenu(n))})("keyup.enter",function(n){u(e);let o=s();return _(o.toggleUserMenu(n))})("keyup.space",function(n){u(e);let o=s();return _(o.toggleUserMenu(n))}),p(5,"app-user-avatar",15),c()}if(t&2){let e=s(),i=it(0),n=it(1);a(),I(i.full_name),a(),k("filled",!n()),m("ngClass",e.authStore.userPricingPlanAvatarView()),O("aria-label",oi(4,8,"LAYOUTS.OPEN_MENU_FOR",be(11,Va,i.name))),a(3),m("userName",i.name)("pricingPlan",e.authStore.userPricingPlanAvatarView())("hasUnread",e.isMobileView()&&e.hasUnreadNotifications())}}function Ha(t,r){if(t&1){let e=y();l(0,"p-avatar",16),M("click",function(n){u(e);let o=s();return _(o.toggleUserMenu(n))}),c()}t&2&&m("label","-")}function $a(t,r){if(t&1&&(l(0,"div",17)(1,"span",18),v(2),c(),p(3,"app-impulses-badge",19),c(),p(4,"div",10)),t&2){s();let e=it(0);a(2),I(e.name),a(),m("showLabel",!1)}}function Ka(t,r){t&1&&p(0,"div",10)}function Ga(t,r){if(t&1&&p(0,"app-icon",22),t&2){let e=s(2).$implicit;m("name",e.appIcon)}}function qa(t,r){if(t&1&&p(0,"i"),t&2){let e=s(2).$implicit;E(e.icon)}}function ja(t,r){if(t&1&&(l(0,"span",24),v(1),c()),t&2){let e=s(2).$implicit;a(),I(e.badge)}}function Wa(t,r){if(t&1){let e=y();l(0,"div",21),M("click",function(){u(e);let n=s().$implicit,o=s();return _(o.executeCommand(n.command))})("keyup.enter",function(){u(e);let n=s().$implicit,o=s();return _(o.executeCommand(n.command))})("keyup.space",function(){u(e);let n=s().$implicit,o=s();return _(o.executeCommand(n.command))}),g(1,Ga,1,1,"app-icon",22)(2,qa,1,2,"i",23),l(3,"span"),v(4),b(5,"translate"),c(),g(6,ja,2,1,"span",24),c()}if(t&2){let e=s().$implicit;O("data-cy",e.id==="sign-out"?"logout-btn":e.id==="profile"?"profile-btn":null),a(),f(e.appIcon?1:e.icon?2:-1),a(3),I(x(5,4,e.label)),a(2),f(e.badge?6:-1)}}function Ya(t,r){if(t&1&&g(0,Ka,1,0,"div",10)(1,Wa,7,6,"div",20),t&2){let e=r.$implicit;f(e.separator?0:1)}}function Qa(t,r){if(t&1){let e=y();p(0,"div",10),l(1,"div",21),M("click",function(){u(e);let n=s();return _(n.navigateToNotifications())})("keyup.enter",function(){u(e);let n=s();return _(n.navigateToNotifications())})("keyup.space",function(){u(e);let n=s();return _(n.navigateToNotifications())}),p(2,"app-bell-icon"),l(3,"span"),v(4),b(5,"translate"),c(),p(6,"app-notification-badge",25),c()}t&2&&(a(4),I(x(5,1,"USER_MENU.NOTIFICATIONS")))}function Za(t,r){if(t&1&&p(0,"app-icon",22),t&2){let e=s().$implicit;m("name",e.appIcon)}}function Xa(t,r){if(t&1&&p(0,"i"),t&2){let e=s().$implicit;E(e.icon)}}function Ja(t,r){t&1&&p(0,"app-chevron-up-icon",27)}function es(t,r){t&1&&p(0,"app-chevron-down-icon",27)}function ts(t,r){if(t&1&&p(0,"app-icon",22),t&2){let e=s().$implicit;m("name",e.appIcon)}}function is(t,r){if(t&1&&p(0,"i"),t&2){let e=s().$implicit;E(e.icon)}}function ns(t,r){if(t&1){let e=y();l(0,"div",29),M("click",function(){let n=u(e).$implicit,o=s(3);return _(o.executeCommand(n.command))})("keyup.enter",function(){let n=u(e).$implicit,o=s(3);return _(o.executeCommand(n.command))})("keyup.space",function(){let n=u(e).$implicit,o=s(3);return _(o.executeCommand(n.command))}),g(1,ts,1,1,"app-icon",22)(2,is,1,2,"i",23),l(3,"span"),v(4),b(5,"translate"),c()()}if(t&2){let e=r.$implicit;a(),f(e.appIcon?1:e.icon?2:-1),a(3),I(x(5,2,e.label))}}function os(t,r){if(t&1&&(l(0,"div"),Qt("menu-section-expand"),V(1,ns,6,4,"div",28,St),c()),t&2){let e=s().$implicit;a(),B(e.items)}}function rs(t,r){if(t&1){let e=y();p(0,"div",10),l(1,"div",26),M("click",function(){let n=u(e).$implicit,o=s();return _(o.toggleSection(n.label))})("keyup.enter",function(){let n=u(e).$implicit,o=s();return _(o.toggleSection(n.label))})("keyup.space",function(){let n=u(e).$implicit,o=s();return _(o.toggleSection(n.label))}),g(2,Za,1,1,"app-icon",22)(3,Xa,1,2,"i",23),l(4,"span"),v(5),b(6,"translate"),c(),g(7,Ja,1,0,"app-chevron-up-icon",27)(8,es,1,0,"app-chevron-down-icon",27),c(),g(9,os,3,0,"div")}if(t&2){let e=r.$implicit,i=s();a(2),f(e.appIcon?2:e.icon?3:-1),a(3),I(x(6,4,e.label)),a(2),f(i.isSectionExpanded(e.label)?7:8),a(2),f(i.isSectionExpanded(e.label)?9:-1)}}function as(t,r){if(t&1){let e=y();
236l(0,"app-timezone-selector-dialog",30),ue("visibleChange",function(n){u(e);let o=s();return de(o.timezoneModalVisible,n)||(o.timezoneModalVisible=n),_(n)}),M("cancelDialog",function(){u(e);let n=s();return _(n.onTimezoneCancel())})("confirmDialog",function(n){u(e);let o=s();return _(o.onTimezoneConfirm(n))}),c()}if(t&2){let e=s();me("visible",e.timezoneModalVisible),m("currentTimezone",e.currentTimezone())}}var Ht=450,Jn=(()=>{class t{authStore=h(Se);notificationsStore=h(we);tourService=h(Ee);screenSize=h(se);timezoneModalVisible=P(!1);currentTimezone=T(()=>this.authStore.user()?.timezone??"UTC");expandedSections=P([]);hasUnreadNotifications=T(()=>this.notificationsStore.activeNotificationsCount()>0);isMobileView=xi(Gt(window,"resize").pipe(Kt(()=>window.innerWidth<Ht),qt(window.innerWidth<Ht)),{initialValue:window.innerWidth<Ht});userMenuItems=T(()=>Qn(this.menuActions));mobileSections=T(()=>this.isMobileView()?[Zn(this.menuActions),Xn(this.authStore.currentTheme(),this.menuActions)]:[]);impulsesTourActive=T(()=>this.tourService.isActive()&&this.tourService.currentStep()?.elementId==="tour-impulses-badge"&&this.screenSize.isMobile575());userOverlay=Y("userOverlay");avatarButton=Y("avatarButton");router=h(X);constructor(){let e=!1;H(()=>{let i=this.userOverlay();if(this.impulsesTourActive()){let n=this.avatarButton()?.nativeElement;if(!i||!n)return;i.show(null,n),e=!0,this.tourService.reposition(400)}else(this.tourService.isActive()||e)&&(e=!1,i?.hide())})}get menuActions(){return{logout:()=>this.logout(),navigateToProfile:()=>this.navigateToProfile(),navigateToBilling:()=>this.navigateToBilling(),navigateToPreferences:()=>this.navigateToPreferences(),navigateToUpgradePlan:()=>this.navigateToUpgradePlan(),navigateToReferral:()=>this.navigateToReferral(),navigateToApiKey:()=>this.navigateToApiKey(),openSupport:()=>this.openSupport(),openFAQ:()=>this.openFAQ(),openUserManuals:()=>this.openUserManuals(),changeTheme:e=>this.changeTheme(e),changeTimezone:()=>this.changeTimezone()}}toggleUserMenu(e){this.userOverlay()?.toggle(e)}toggleSection(e){this.expandedSections.update(i=>i.includes(e)?i.filter(n=>n!==e):[...i,e])}isSectionExpanded(e){return this.expandedSections().includes(e)}executeCommand(e){e&&(e({}),this.userOverlay()?.hide())}navigateToNotifications(){this.router.navigate(["/profile/updates"],{fragment:"notifications"}),this.userOverlay()?.hide()}onTimezoneConfirm(e){this.authStore.updateUserProfile({timezone:e}),this.timezoneModalVisible.set(!1)}onTimezoneCancel(){this.timezoneModalVisible.set(!1)}logout(){this.authStore.logout()}navigateToProfile(){this.router.navigate(["profile"])}navigateToBilling(){this.router.navigate(["profile/billing"])}navigateToPreferences(){this.router.navigate(["profile/preferences"])}navigateToUpgradePlan(){this.router.navigate(["profile/upgrade-plan"])}navigateToReferral(){this.router.navigate(["profile/referral"])}navigateToApiKey(){this.router.navigate(["api-manager"])}openSupport(){this.router.navigate(["/profile/support"])}openFAQ(){this.router.navigate(["/profile/faq"])}openUserManuals(){window.open("https://finimpulse.com/help/","_blank")}changeTheme(e){this.authStore.setUserTheme(e),this.authStore.updateUserProfile({theme:e})}changeTimezone(){this.timezoneModalVisible.set(!0)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-user-menu"]],viewQuery:function(i,n){i&1&&(q(n.userOverlay,Ua,5),q(n.avatarButton,Da,5)),i&2&&Z(2)},decls:23,vars:10,consts:[["userOverlay",""],["avatarButton",""],["data-cy","user-menu",1,"user-menu"],[1,"user-info"],[1,"loading-state"],["shape","circle","size","normal","data-cy","user-dropdown",1,"curs
236or-pointer","hover:bg-gray-100","dark:hover:bg-gray-700","transition-colors","error",3,"label"],[3,"dismissable"],[1,"user-menu"],[1,"mode-container"],[1,"text-xs","text-muted","mb-1"],[1,"user-menu-separator"],[3,"visible","currentTimezone"],["animationDuration",".5s","fill","var(--basic-primary)","strokeWidth","3",1,"custom-spinner"],[1,"user-name"],["id","tour-user-overview-1","type","button","data-cy","user-dropdown",1,"avatar-button",3,"click","keyup.enter","keyup.space","ngClass"],[3,"userName","pricingPlan","hasUnread"],["shape","circle","size","normal","data-cy","user-dropdown",1,"cursor-pointer","hover:bg-gray-100","dark:hover:bg-gray-700","transition-colors","error",3,"click","label"],[1,"user-menu-header","!p-0"],[1,"user-menu-username"],["variant","menu","tourId","tour-impulses-badge",3,"showLabel"],["tabindex","0",1,"user-menu-item"],["tabindex","0",1,"user-menu-item",3,"click","keyup.enter","keyup.space"],[3,"name"],[3,"class"],[1,"user-menu-badge"],[1,"notification-badge-menu"],["tabindex","0",1,"user-menu-section-header",3,"click","keyup.enter","keyup.space"],[1,"section-chevron"],["tabindex","0",1,"user-menu-sub-item"],["tabindex","0",1,"user-menu-sub-item",3,"click","keyup.enter","keyup.space"],[3,"visibleChange","cancelDialog","confirmDialog","visible","currentTimezone"]],template:function(i,n){if(i&1&&(ii(0)(1),l(2,"div",2)(3,"div",3),g(4,Fa,2,3,"div",4)(5,za,6,13)(6,Ha,1,1,"p-avatar",5),c(),l(7,"p-popover",6,0)(9,"div",7),g(10,$a,5,2),l(11,"div",8)(12,"p",9),v(13),b(14,"translate"),c(),p(15,"app-user-api-mode-choice"),c(),p(16,"div",10),V(17,Ya,2,1,null,null,St),g(19,Qa,7,3),V(20,rs,10,6,null,null,Ba),c()()(),g(22,as,1,2,"app-timezone-selector-dialog",11)),i&2){let o=wt(n.authStore.user()),d=n.authStore.isLoading;a(),wt(n.authStore.userAvatarUrl),a(3),f(d()?4:o?5:6),a(3),m("dismissable",!n.impulsesTourActive()),a(3),f(o?10:-1),a(3),I(x(14,8,"USER_MENU.MODE")),a(4),B(n.userMenuItems()),a(2),f(n.mobileSections().length?19:-1),a(),B(n.mobileSections()),a(2),f(n.isMobileView()?22:-1)}},dependencies:[U,Ie,Yn,zt,ae,Pe,Di,Ui,_t,pn,gt,ht,Ct,Te,ye,zi,Hi,D],styles:["@media(min-width:576px){app-impulses-badge[_ngcontent-%COMP%]{display:none}}.user-info[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.75rem}.user-info[_ngcontent-%COMP%]   .user-name[_ngcontent-%COMP%]{font-size:var(--text-base);font-weight:var(--font-medium);color:var(--main-text-color);text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:10rem}@media(max-width:768px){.user-info[_ngcontent-%COMP%]   .user-name[_ngcontent-%COMP%]{display:none}}.user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]{cursor:pointer;transition:all .2s ease-in-out;border-radius:624.9375rem;padding:0;background:transparent;border:2px solid var(--bg-secondary);width:2.5rem;height:2.5rem}.user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:hover, .user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:focus{border-color:var(--bg-secondary-hover)}.user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:hover.basic, .user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:hover.free, .user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:focus.basic, .user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:focus.free{border:2px solid var(--bg-secondary-hover)!important}.user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:hover.unlimited, .user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:focus.unlimited{border:2px solid var(--additional-hover)!important}.user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:hover.premium, .user-info[_ngcontent-%COMP%]   .avatar-button[_ngcontent-%COMP%]:focus.premium{border:2px solid var(--orange-max)!important}.user-info[_ngcontent-%COMP%]   .avatar-button.error[_ngcontent-%COMP%]{border:2px solid var(--additional-danger-dark)!important}.loading-state[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.loading-state[_ngcontent-%COMP%]   .loading-text[_ngcontent-%COMP%]{color:var(--muted-text-color);font-size:var(--text-sm)}.change-password-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem;width:100%;max-width:22.5rem}.change-password-content[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.change-password-content[_ngcontent-%COMP%]   .form-field[_ngcontent-%COMP%]   .form-label[_ngcontent-%COMP%]{font-size:var(--text-sm);font-weight:var(--font-medium);color:var(--main-text-color)}.change-password-content[_ngcontent-%COMP%]   .form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;
236gap:.75rem;margin-top:1rem;padding-top:1rem;border-top:1px solid var(--border-main)}.change-password-content[_ngcontent-%COMP%]   form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.5rem}"]})}return t})();function ss(t,r){t&1&&p(0,"app-search-bar",6)}var eo=(()=>{class t{isApiMode=h(Me).isApiMode;toggleSidebarRequested=ri();screenSizeService=h(se);toggleSidebar(){this.screenSizeService.isMobile1024()&&this.toggleSidebarRequested.emit()}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-header"]],outputs:{toggleSidebarRequested:"toggleSidebarRequested"},decls:14,vars:4,consts:[[1,"header"],[1,"header-content-wrapper"],["type","button","data-cy","mobile-menu-toggle",1,"mobile-menu-toggle","lg:hidden",3,"click"],["fill","none","stroke","currentColor","viewBox","0 0 24 24",1,"w-6","h-6"],["d","M4 6h16M4 12h16M4 18h16","stroke-linecap","round","stroke-linejoin","round","stroke-width","2"],[1,"header-left"],[1,"max-w-[27.813rem]"],[1,"header-right"],["tourId","tour-impulses-badge"]],template:function(i,n){i&1&&(l(0,"div",0)(1,"div",1)(2,"button",2),b(3,"translate"),M("click",function(){return n.toggleSidebar()}),le(),l(4,"svg",3),p(5,"path",4),c()(),jt(),l(6,"div",5),g(7,ss,1,0,"app-search-bar",6),c(),l(8,"div",7),p(9,"app-impulses-badge",8)(10,"app-support-button")(11,"app-notification-button")(12,"app-settings-button")(13,"app-user-menu"),c()()()),i&2&&(a(2),O("aria-label",x(3,2,"LAYOUTS.OPEN_MENU")),a(5),f(n.isApiMode()?-1:7))},dependencies:[U,An,Rn,Bn,Gn,Jn,Ct,D],styles:[".header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;background:var(--bg-secondary);box-shadow:0 2px .25rem #71809633;position:relative;z-index:1}.mobile-menu-toggle[_ngcontent-%COMP%]{padding:.5rem;color:var(--muted-text-color);border:none;background:transparent;border-radius:.375rem;transition:all .2s;cursor:pointer;margin-right:var(--spacing-2)}.mobile-menu-toggle[_ngcontent-%COMP%]:hover{color:#111827;background-color:var(--bg-secondary-hover);transform:scale(1.05)}.header-content-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;height:2.5rem;width:100%;gap:var(--spacing-2)}.header-left[_ngcontent-%COMP%]{display:flex;align-items:center;flex:1}.header-right[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;margin-left:auto}@media(max-width:1023px){.header[_ngcontent-%COMP%]{padding:.5rem .75rem}.mobile-menu-toggle[_ngcontent-%COMP%]{display:block}}@media(min-width:1024px){.mobile-menu-toggle[_ngcontent-%COMP%]{display:none}.header-left[_ngcontent-%COMP%]{display:flex}}@media(max-width:575px){app-impulses-badge[_ngcontent-%COMP%]{display:none}}@media(max-width:450px){app-support-button[_ngcontent-%COMP%], app-settings-button[_ngcontent-%COMP%], app-notification-button[_ngcontent-%COMP%]{display:none}}"]})}return t})();function ls(t,r){if(t&1&&Je(0,"span",5),t&2){let e=r.$implicit,i=s();k("stepper-dot--active",e<=i.currentStep())}}var to=(()=>{class t{totalSteps=N.required();currentStep=N.required();label=N("Get Started");stepsArray=T(()=>Array.from({length:this.totalSteps()},(e,i)=>i+1));static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-tour-guide-stepper"]],inputs:{totalSteps:[1,"totalSteps"],currentStep:[1,"currentStep"],label:[1,"label"]},decls:9,vars:6,consts:[[1,"stepper"],[1,"stepper-label"],[1,"stepper-dots"],[1,"stepper-dot",3,"stepper-dot--active"],[1,"stepper-counter"],[1,"stepper-dot"]],template:function(i,n){i&1&&(oe(0,"div",0)(1,"span",1),v(2),re(),oe(3,"div",2),V(4,ls,1,2,"span",3,Xt),re(),oe(6,"span",4),v(7),b(8,"translate"),re()()),i&2&&(a(2),I(n.label()),a(2),B(n.stepsArray()),a(3),ti("",n.currentStep()," ",x(8,4,"LAYOUTS.OF")," ",n.totalSteps()))},dependencies:[D],styles:["[_nghost-%COMP%]{display:block}.stepper[_ngcontent-%COMP%]{display:flex;align-items:center;gap:var(--spacing-2);padding:var(--spacing-2) var(--spacing-3)}.stepper-label[_ngcontent-%COMP%], .stepper-counter[_ngcontent-%COMP%]{font-size:var(--text-base);color:var(--muted-text-color);white-space:nowrap}.stepper-dots[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.1875rem;flex:1}
236.stepper-dot[_ngcontent-%COMP%]{width:.5rem;height:.5rem;border-radius:50%;background:var(--border-main);transition:background var(--transition-fast)}.stepper-dot--active[_ngcontent-%COMP%]{background:var(--basic-primary)}"]})}return t})();var cs=["tooltipCard"];function ps(t,r){if(t&1){let e=y();p(0,"div",1)(1,"div",2),l(2,"div",null,0)(4,"div",3)(5,"p",4),v(6),c(),l(7,"p",5),v(8),c()(),l(9,"div",6),p(10,"app-tour-guide-stepper",7),c(),l(11,"div",8)(12,"button",9),M("click",function(){u(e);let n=s();return _(n.tourService.endTour())}),v(13),b(14,"translate"),c(),l(15,"button",10),M("click",function(){u(e);let n=s();return _(n.tourService.nextStep())}),v(16),b(17,"translate"),b(18,"translate"),c()()()}if(t&2){let e=r,i=s();a(),yt("top",i.highlight().top,"px")("left",i.highlight().left,"px")("width",i.highlight().width,"px")("height",i.highlight().height,"px"),k("tour-highlight--animated",i.canTransition())("tour-highlight--detached",i.isDetached()),a(),E(ni("tour-tooltip tour-tooltip--",i.arrowDir())),yt("top",i.tooltipTop(),"px")("left",i.tooltipLeft(),"px")("--arrow-x",i.arrowX()+"px")("--arrow-y",i.arrowY()+"px"),k("tour-tooltip--visible",i.isPositioned())("tour-tooltip--detached",i.isDetached())("tour-tooltip--animated",i.canTransition()),a(4),I(e.title),a(2),I(e.description),a(2),m("totalSteps",i.tourService.totalSteps())("currentStep",i.tourService.currentStepNumber()),a(3),I(x(14,35,"LAYOUTS.SKIP_TOUR")),a(3),K(" ",i.tourService.isLastStep()?x(17,37,"LAYOUTS.GOT_IT"):x(18,39,"LAYOUTS.NEXT")," ")}}var io=288,ms=160,Oe=16,je=8,bt=16,no=(()=>{class t{tourService=h(Ee);destroyRef=h(Ze);highlight=P({top:0,left:0,width:0,height:0});tooltipTop=P(0);tooltipLeft=P(0);arrowDir=P("right");arrowX=P(io/2);arrowY=P(80);isPositioned=P(!1);isDetached=P(!1);canTransition=P(!1);tooltipCard=Y("tooltipCard");pendingRafId=null;pendingTimeoutId=null;isFirstStepOfTour=!0;constructor(){H(()=>{let i=this.tourService.currentStep(),n=this.tourService.repositionToken();if(i){this.isFirstStepOfTour&&this.isPositioned.set(!1);let o=n>0?this.tourService.repositionDuration():0;o>0?this.trackPosition(i,o):this.schedulePosition(i)}else this.isFirstStepOfTour=!0,this.isPositioned.set(!1),this.isDetached.set(!1),this.canTransition.set(!1)});let e=()=>{let i=this.tourService.currentStep();i&&this.positionTooltip(i)};window.addEventListener("resize",e),this.destroyRef.onDestroy(()=>{window.removeEventListener("resize",e),this.cancelPending()})}cancelPending(){this.pendingRafId!==null&&(cancelAnimationFrame(this.pendingRafId),this.pendingRafId=null),this.pendingTimeoutId!==null&&(clearTimeout(this.pendingTimeoutId),this.pendingTimeoutId=null)}trackPosition(e,i){this.cancelPending();let n=performance.now(),o=!1,d=()=>{let C=document.getElementById(e.elementId);C&&(o=!0,this.positionTooltip(e,C)),performance.now()-n<i?this.pendingRafId=requestAnimationFrame(d):(this.pendingRafId=null,o||this.schedulePosition(e))};this.pendingRafId=requestAnimationFrame(d)}schedulePosition(e,i=5){this.cancelPending(),this.pendingRafId=requestAnimationFrame(()=>{this.pendingRafId=null;let n=document.getElementById(e.elementId);n?this.positionTooltip(e,n):i>1?this.pendingTimeoutId=setTimeout(()=>{this.pendingTimeoutId=null,this.schedulePosition(e,i-1)},100):this.positionTooltipCentered()})}getTooltipSize(){let e=this.tooltipCard()?.nativeElement;return{width:e?.offsetWidth||io,height:e?.offsetHeight||ms}}resolvePosition(e,i,n){return i==="right"&&e.right+Oe+n>window.innerWidth||i==="left"&&e.left-Oe-n<0?e.top>window.innerHeight/2?"top":"bottom":i}positionTooltip(e,i){let n=i??document.getElementById(e.elementId);if(!n){this.isDetached()&&this.positionTooltipCentered();return}let o=n.getBoundingClientRect(),d=this.getTooltipSize(),C=this.resolvePosition(o,e.position??"right",d.width);this.isDetached.set(!1),this.arrowDir.set(C),this.highlight.set({top:o.top-4,left:o.left-4,width:o.width+8,height:o.height+8});let{top:F,left:z}=this.calcTooltipPos(o,C,d);if(this.tooltipLeft.set(z),this.tooltipTop.set(F),C==="bottom"||C==="top"){let G=o.left+o.width/2;this.arrowX.set(Math.min(d.width-bt,Math.max(bt,G-z)))}
236if(C==="right"||C==="left"){let G=o.top+o.height/2;this.arrowY.set(Math.min(d.height-bt,Math.max(bt,G-F)))}this.markPositioned()}positionTooltipCentered(){let{width:e,height:i}=this.getTooltipSize(),n=window.innerWidth/2,o=window.innerHeight/2;this.isDetached.set(!0),this.highlight.set({top:o,left:n,width:0,height:0}),this.tooltipLeft.set(Math.max(je,n-e/2)),this.tooltipTop.set(Math.max(je,o-i/2)),this.markPositioned()}markPositioned(){this.isPositioned.set(!0),this.isFirstStepOfTour&&(this.isFirstStepOfTour=!1,requestAnimationFrame(()=>this.canTransition.set(!0)))}calcTooltipPos(e,i,n){let o=Math.min(window.innerWidth-n.width-je,Math.max(je,e.left+e.width/2-n.width/2)),d=Math.max(je,e.top+e.height/2-n.height/2);switch(i){case"right":return{top:d,left:e.right+Oe};case"left":return{top:d,left:e.left-n.width-Oe};case"bottom":return{top:e.bottom+Oe,left:o};case"top":return{top:e.top-n.height-Oe,left:o}}}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-tour-guide-tooltip"]],viewQuery:function(i,n){i&1&&q(n.tooltipCard,cs,5),i&2&&Z()},decls:1,vars:1,consts:[["tooltipCard",""],[1,"tour-backdrop"],[1,"tour-highlight"],[1,"tour-tooltip__body"],[1,"tour-tooltip__title"],[1,"tour-tooltip__description"],[1,"tour-tooltip__stepper"],[3,"totalSteps","currentStep"],[1,"tour-tooltip__footer"],[1,"tour-skip-btn",3,"click"],[1,"tour-next-btn",3,"click"]],template:function(i,n){if(i&1&&g(0,ps,19,41),i&2){let o;f((o=n.tourService.isActive()&&n.tourService.currentStep())?0:-1,o)}},dependencies:[to,D],styles:['[_nghost-%COMP%]{display:contents}.tour-backdrop[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:var(--z-tour);background:transparent;pointer-events:auto}.tour-highlight[_ngcontent-%COMP%]{position:fixed;border-radius:var(--border-radius-md);background:transparent;pointer-events:none;z-index:calc(var(--z-tour) + 1);box-shadow:0 0 0 .1875rem var(--basic-primary),0 0 0 624.9375rem #00000059;animation:_ngcontent-%COMP%_tour-spotlight-in .35s ease-out}.tour-highlight--animated[_ngcontent-%COMP%]{transition:top .4s cubic-bezier(.16,1,.3,1),left .4s cubic-bezier(.16,1,.3,1),width .4s cubic-bezier(.16,1,.3,1),height .4s cubic-bezier(.16,1,.3,1)}.tour-highlight--detached[_ngcontent-%COMP%]{box-shadow:0 0 0 624.9375rem #00000059}@keyframes _ngcontent-%COMP%_tour-spotlight-in{0%{opacity:0}}.tour-tooltip[_ngcontent-%COMP%]{position:fixed;z-index:calc(var(--z-tour) + 2);width:18rem;background:var(--bg-secondary);border-radius:var(--border-radius-lg);box-shadow:0 .5rem 2rem #0000002e,0 .125rem .5rem #0000001a;padding:var(--spacing-4);pointer-events:none;opacity:0;transform:scale(.5);will-change:transform,opacity}.tour-tooltip--visible[_ngcontent-%COMP%]{opacity:1;transform:scale(1);pointer-events:auto;transition:opacity .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1)}.tour-tooltip--animated[_ngcontent-%COMP%]{transition:opacity .25s cubic-bezier(.16,1,.3,1),transform .25s cubic-bezier(.16,1,.3,1),top .4s cubic-bezier(.16,1,.3,1),left .4s cubic-bezier(.16,1,.3,1)}.tour-tooltip[_ngcontent-%COMP%]:before{content:"";position:absolute;border:.5rem solid transparent}.tour-tooltip--right[_ngcontent-%COMP%]{transform-origin:0 var(--arrow-y, 50%)}.tour-tooltip--right[_ngcontent-%COMP%]:before{left:-.5rem;top:var(--arrow-y, 50%);transform:translateY(-50%);border-right-color:var(--bg-secondary);border-left-width:0}.tour-tooltip--left[_ngcontent-%COMP%]{transform-origin:100% var(--arrow-y, 50%)}.tour-tooltip--left[_ngcontent-%COMP%]:before{right:-.5rem;top:var(--arrow-y, 50%);transform:translateY(-50%);border-left-color:var(--bg-secondary);border-right-width:0}.tour-tooltip--bottom[_ngcontent-%COMP%]{transform-origin:var(--arrow-x, 50%) 0}.tour-tooltip--bottom[_ngcontent-%COMP%]:before{top:-.5rem;left:var(--arrow-x, 50%);transform:translate(-50%);border-bottom-color:var(--bg-secondary);border-top-width:0}.tour-tooltip--top[_ngcontent-%COMP%]{transform-origin:var(--arrow-x, 50%) 100%}.tour-tooltip--top[_ngcontent-%COMP%]:before{bottom:-.5rem;left:var(--arrow-x, 50%);transform:translate(-50%);border-top-color:var(--bg-secondary);border-bottom-width:0}.tour-tooltip--detached[_ngcontent-%COMP%]{transform-origin:center}.tour-tooltip--detached[_ngcontent-%COMP%]:before{display:none}.tour-tooltip__title[_ngcontent-%COMP%]{font-size:var(--text-base);font-weight:var(--font-semibold);color:var(--main-text-color);margin-bottom:.375rem}.tour-tooltip__description[_ngcontent-%COMP%]{font-size:var(--text-sm);color:var(--muted-text-color);line-height:1.5}.tour-tooltip__stepper[_ngcontent-%COMP%]{margin-top:var(--spacing-3);margin-left:calc(var(--spacing-4) * -1);margin-right:calc(var(--spacing-4) * -1);border-top:1px solid var(--border-light);border-bottom:1px solid var(--border-light)}.tour-tooltip__footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding-top:var(--spacing-3)}.tour-skip-btn[_ngcontent-%COMP%]{background:none;border:none;padding:0;font-size:var(--text-sm);color:var(--muted-text-color);cursor:pointer;transition:color var(--transition-fast)}.tour-skip-btn[_ngcontent-%COMP%]:hover{color:var(--main-text-color)}.tour-next-btn[_ngcontent-%COMP%]{background:var(--basic-primary);border:none;
236color:var(--always-white);font-size:var(--text-sm);font-weight:var(--font-semibold);padding:.375rem var(--spacing-4);border-radius:var(--border-radius-md);cursor:pointer;transition:background var(--transition-fast)}.tour-next-btn[_ngcontent-%COMP%]:hover{background:var(--basic-primary-hover)}']})}return t})();var oo="cookieyes_consent_update",ds=8e3,us=250,ro=(()=>{class t{_isResolved=P(!1);isResolved=this._isResolved.asReadonly();destroyRef=h(Ze);pollTimer;constructor(){if(!st.enableAnalytics){this.resolve();return}let e=()=>this.resolve();document.addEventListener(oo,e),this.destroyRef.onDestroy(()=>{document.removeEventListener(oo,e),this.stopPolling()}),this.waitForBanner()}waitForBanner(){let e=Date.now();this.pollTimer=setInterval(()=>{let i=window.getCkyConsent?.();if(i?.isUserActionCompleted){this.resolve();return}if(i){this.stopPolling();return}(wn()||Date.now()-e>=ds)&&this.resolve()},us)}resolve(){this.stopPolling(),this._isResolved.set(!0)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=void 0)}static \u0275fac=function(i){return new(i||t)};static \u0275prov=ne({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _s=["mainContent"];function gs(t,r){t&1&&p(0,"app-main-menu",2),t&2&&m("isMobile",!1)}function fs(t,r){if(t&1&&(l(0,"a",11),p(1,"app-logo",12),c()),t&2){let e=s();m("routerLink","/"),a(),m("isCompactMode",e.isMainMenuCollapsed())}}function hs(t,r){t&1&&p(0,"app-main-menu",2),t&2&&m("isMobile",!0)}function vs(t,r){if(t&1){let e=y();l(0,"app-unavailable-in-tariff-modal",13),ue("visibleChange",function(n){u(e);let o=s();return de(o.showUnavailableModal,n)||(o.showUnavailableModal=n),_(n)}),c()}if(t&2){let e=s();me("visible",e.showUnavailableModal)}}var Cs=["/user/search-assets","/user/ai-search/chat/","/user/overview"],_d=(()=>{class t{mobileMenuVisible=P(!1);sidebarCollapsed=P(!1);isMobile=h(se).isMobile1024;mainContent=Y("mainContent");unavailableInTariffModalService=h(nn);planLimitErrorService=h(yn);showUnavailableModal=this.unavailableInTariffModalService.showUnavailableModal;mainState=h(Me);isMainMenuCollapsed=this.mainState.isMainMenuCollapsed;scrollService=h(_n);tourService=h(Ee);currentRouteService=h(wi);authStore=h(Se);cookieConsent=h(ro);isWideLayout=T(()=>Cs.some(e=>this.currentRouteService.getCurrentRoute().startsWith(e)));pendingTourId=T(()=>{if(!this.authStore.isOnboardingComplete())return null;let e=this.currentRouteService.getCurrentRoute();return e.startsWith("/developer")?this.authStore.apiModeOverviewTour()?"api-overview":null:e.startsWith("/user")&&this.authStore.userModeOverviewTour()?"user-overview":null});mobileMenuCloseListener;constructor(){H(()=>{let i=this.planLimitErrorService.pending();i&&Et(()=>{this.unavailableInTariffModalService.showModal(i.actionType),this.planLimitErrorService.clear()})}),H(()=>{let i=this.pendingTourId();!i||!this.cookieConsent.isResolved()||Et(()=>{this.tourService.isActive()||this.tourService.startTour(i,n=>{this.authStore.completeWelcomeOverview(n)})})});let e=!1;H(()=>{let i=this.tourService.currentStepNumber(),n=this.tourService.isActive();n&&this.isMobile()?i>=3?(e=!0,this.mobileMenuVisible.set(!0),this.tourService.reposition(400)):this.closeMobileMenu():!n&&e&&(e=!1,this.closeMobileMenu())}),H(()=>{!this.isMobile()&&this.mobileMenuVisible()&&this.closeMobileMenu()})}ngOnInit(){this.mobileMenuCloseListener=()=>{this.closeMobileMenu()},window.addEventListener("closeMobileMenu",this.mobileMenuCloseListener)}ngAfterViewInit(){let e=this.mainContent();e&&this.scrollService.setMainContentElement(e)}ngOnDestroy(){this.mobileMenuCloseListener&&window.removeEventListener("closeMobileMenu",this.mobileMenuCloseListener),this.scrollService.clearMainContentElement()}toggleSidebar(){this.isMobile()&&this.mobileMenuVisible.set(!this.mobileMenuVisible())}toggleSidebarCollapse(){this.sidebarCollapsed.set(!this.sidebarCollapsed())}closeMobileMenu(){this.mobileMenuVisible.set(!1)}onToggleSidebar(){this.toggleSidebar()}onSidebarResize(e){this.mainState.setIsMainMenuHidden(e.width===0)}static \u0275fac=function(i){return new(i||t)};static \u0275cmp=S({type:t,selectors:[["app-main-layout"]],viewQuery:function(i,n){i&1&&q(n.mainContent,_s,5),i&2&&Z()},features:[_e([])],decls:16,vars:10,consts:[["mainContent",""],["appListenResize","",1,"desktop-sidebar",3,"listenResize"],[3,"isMobile"],[1,"flex-1","flex","flex-col","h-full","w-full","overflow-auto"],[3,"toggleSidebarRequested"],[1,"main-content","overflow-y-auto"],[1,"main-content__container"],["position","left",3,"visibleChange","visible","modal","styleClass"],["pTemplate","header"],[1,"h-full","mobile-menu-content"],[3,"visible"],[3,"routerLink"],[3,"isCompactMode"],[3,"visibleChange","visible"]],template:function(i,n){if(i&1){let o=y();l(0,"div",1),M("listenResize",function(C){return u(o),_(n.onSidebarResize(C))}),g(1,gs,1,1,"app-main-menu",2),c(),l(2,"main",3)(3,"app-header",4),M("toggleSidebarRequested",function(){return u(o),_(n.onToggleSidebar())}),c(),l(4,"div",5,0)(6,"div",6),p(7,"router-outlet"),c()()(),l(8,"p-drawer",7),ue("visibleChange",function(C){return u(o),de(n.mobileMenuVisible,C)||
236(n.mobileMenuVisible=C),_(C)}),L(9,fs,2,2,"ng-template",8),l(10,"div",9),g(11,hs,1,1,"app-main-menu",2),c()(),g(12,vs,1,1,"app-unavailable-in-tariff-modal",10),p(13,"app-create-alert-modal")(14,"app-trial-end-warning-modal")(15,"app-tour-guide-tooltip")}i&2&&(a(),f(n.isMobile()?-1:1),a(3),k("collapsed",n.isMainMenuCollapsed()),a(2),k("main-content__container--wide",n.isWideLayout()),a(2),me("visible",n.mobileMenuVisible),m("modal",!0)("styleClass",n.isMainMenuCollapsed()?"mobile-menu-collapsed":"w-80"),a(3),f(n.isMobile()?11:-1),a(),f(n.showUnavailableModal()?12:-1))},dependencies:[U,He,pi,J,tn,en,at,Ln,eo,pt,hn,Cn,bn,no,sn],styles:['[_nghost-%COMP%]{display:flex;flex:1;min-height:100%}@media(max-width:1023px){[_nghost-%COMP%]{padding-bottom:env(safe-area-inset-bottom,3rem)}}[_nghost-%COMP%]   main[_ngcontent-%COMP%]{min-height:0}[_nghost-%COMP%]   .main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1 1 0;padding:var(--spacing-4);align-items:center;width:100%;min-height:0;background:var(--bg-undarmain);z-index:0;transition:width .4s;margin:0 auto;-webkit-overflow-scrolling:touch;overflow-anchor:none}@media(max-width:800px){[_nghost-%COMP%]   .main-content[_ngcontent-%COMP%]{padding:var(--spacing-2);padding-bottom:4.75rem}}[_nghost-%COMP%]   .main-content[_ngcontent-%COMP%]:after{content:"";display:block;height:0;flex-shrink:0}[_nghost-%COMP%]   .main-content__container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;width:100%;max-width:100rem;margin:0 auto}[_nghost-%COMP%]   .main-content__container--wide[_ngcontent-%COMP%]{max-width:180rem}.desktop-sidebar[_ngcontent-%COMP%]{display:none;border-right:1px solid var(--border-main);flex-shrink:0}@media(min-width:1024px){.desktop-sidebar[_ngcontent-%COMP%]{display:block}}.p-drawer[_ngcontent-%COMP%]{z-index:1000}@media(min-width:1024px){.p-drawer[_ngcontent-%COMP%]{display:none!important}}.header[_ngcontent-%COMP%]{min-height:var(--header-height)}@media(max-width:1023px){.mobile-menu-toggle[_ngcontent-%COMP%]{transition:transform .2s ease-in-out}.mobile-menu-toggle[_ngcontent-%COMP%]:hover{transform:scale(1.05)}.mobile-menu-toggle[_ngcontent-%COMP%]:active{transform:scale(.95)}}']})}return t})();export{_d as MainLayoutComponent};

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.