PageSourceSearch

https://portal.commoninterest.com/assets/AppLayout-BDeX8RFl.js

js commoninterest.com collected 2026-09-24 13:27:09 UTC 157,521 bytes, 1 lines download raw bytes

1var Bt=n=>{throw TypeError(n)};var Xe=(n,t,r)=>t.has(n)||Bt("Cannot "+r);var O=(n,t,r)=>(Xe(n,t,"read from private field"),r?r.call(n):t.get(n)),re=(n,t,r)=>t.has(n)?Bt("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(n):t.set(n,r),ee=(n,t,r,s)=>(Xe(n,t,"write to private field"),s?s.call(n,r):t.set(n,r),r),ie=(n,t,r)=>(Xe(n,t,"access private method"),r);import{r as c,u as $,j as e,M as Qe,I as $e,F as R,o as Tt,p as Ft,B as he,n as be,q as f,s as mt,t as Ps,v as ts,w as Ls,x as Rs,y as qs,z as Is,A as Hs,C as Es,D as Bs,E as Ts,G as Fs,H as Ds,J as Os,K as Vs,L as _s,N as ss,S as ae,O as qe,P as Dt,Q as $s,U as as,k as et,V as ns,W as rs,T as _e,X as zs,Y as Qs,Z as Ot,$ as Zs,a0 as Us,a1 as Ks,a2 as Ws,a3 as Gs,m as Ze,a4 as os,a5 as is,a6 as ut,a7 as pt,a8 as ht,a9 as Ys,aa as Js,ab as Xs,ac as ea,ad as ta,ae as sa,af as ft,ag as aa,ah as na,ai as ra,aj as oa,ak as cs,al as ls,am as ds,an as ms,ao as us,ap as ze,aq as ps,ar as gt,as as hs,at as fs,au as gs,av as xt,aw as xs,ax as bs,ay as ys,az as bt,aA as vs,aB as ws,aC as Cs,aD as ia,aE as ca,aF as la,aG as da,aH as ma,aI as ua,aJ as pa}from"./elements-DVh2jUIM.js";import{u as Ue}from"./useRedesign-DVyq07A4.js";import{S as ha,n as at,s as fa,r as ga,Q as js,u as je,a as xa,b as ba,e as ya,c as va,d as wa,f as Ca,g as Vt,h as _t,w as ja,i as Na,j as H,k as Ae,l as Ie,m as Ke,o as ve,M as pe,L as U,p as le,q as Q,t as ka,v as Aa,x as We,y as Ma,z as Sa,A as Pa,H as La,B as $t,C as Ge,D as yt,F as vt,O as wt,E as Ct,G as Ra,I as qa,J as Ia,K as Ns,N as Ha,P as Ea}from"./index-DeQvL4I7.js";import{E as jt}from"./react-error-boundary.esm-DhomiJMX.js";import{u as Ba}from"./useModalActions-raurWri4.js";import{u as nt}from"./useMutation-CfDMVIpo.js";import{u as Ta,C as zt}from"./index.esm-BsOhZrKM.js";import{C as ks,R as As,a as Fa,P as Da}from"./RouteGuard-CINajRLo.js";import{E as Oa}from"./ExternalLink-oCAcXRYh.js";import{u as Nt}from"./useLogo-b3_H3dYq.js";import{u as Ye,i as Qt}from"./useNavigationOptions-BdJd3Qlp.js";import{u as de}from"./useAuthorization-D7B2eQha.js";import{t as Fe}from"./trackEvent-CeNPAPKA.js";import{S as rt}from"./SetupNewPaymentMethodForm-e9vzbtVx.js";import{u as Va}from"./useHomeSettings-BcPcJ3OS.js";import{u as kt,a as At}from"./useUserPreferences-RcRorIPo.js";import{u as _a,a as $a,b as za}from"./board-communications-DsBZ8KLR.js";import{C as Qa}from"./CustomContent-BZeFKqiW.js";import{N as Za,u as Ua}from"./NewRequestModal-hhh56_wV.js";import{u as Ka}from"./useIsNonHomeownerBoardMember-BFprLkBV.js";import"./grids-DXrfAsUA.js";import"./startOfDay-AazlW55I.js";import"./useSelectedProperty-XA-z48Yi.js";import"./CustomContent-qUKl3gpM.js";import"./index-DWdRGcKw.js";import"./portal-requests-TK48q8QE.js";import"./requests-list-utils-CVz2BN7s.js";import"./useHomeOffersEnabled-DT5OMJRM.js";import"./useCommunityFeedEnabled-Fzx8B_Q-.js";import"./CreditCardOnlyNotice-CsSflxM6.js";import"./home-requests-DP3q2Rwc.js";import"./useCustomContent-BqBLnYCa.js";function Zt(n,t){const r=new Set(t);return n.filter(s=>!r.has(s))}function Wa(n,t,r){const s=n.slice(0);return s[t]=r,s}var Me,se,Se,Pe,oe,xe,He,Ee,Be,Te,J,ot,it,ct,lt,dt,es,Ga=(es=class extends ha{constructor(t,r,s){super();re(this,J);re(this,Me);re(this,se);re(this,Se);re(this,Pe);re(this,oe);re(this,xe);re(this,He);re(this,Ee);re(this,Be);re(this,Te,[]);ee(this,Me,t),ee(this,Pe,s),ee(this,Se,[]),ee(this,oe,[]),ee(this,se,[]),this.setQueries(r)}onSubscribe(){this.listeners.size===1&&O(this,oe).forEach(t=>{t.subscribe(r=>{ie(this,J,lt).call(this,t,r)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,O(this,oe).forEach(t=>{t.destroy()})}setQueries(t,r){ee(this,Se,t),ee(this,Pe,r),at.batch(()=>{const s=O(this,oe),a=ie(this,J,ct).call(this,O(this,Se));a.forEach(u=>u.observer.setOptions(u.defaultedQueryOptions));const o=a.map(u=>u.observer),i=o.map(u=>u.getCurrentResult()),l=s.length!==o.length,d=o.some((u,v)=>u!==s[v]),p=l||d,g=p?!0:i.some((u,v)=>{const m=O(this,se)[v];return!m||!fa(u,m)});!p&&!g||(p&&(ee(this,Te,a),ee(this,oe,o)),ee(this,se,i),this.hasListeners()&&(p&&(Zt(s,o).forEac
1h(u=>{u.destroy()}),Zt(o,s).forEach(u=>{u.subscribe(v=>{ie(this,J,lt).call(this,u,v)})})),ie(this,J,dt).call(this)))})}getCurrentResult(){return O(this,se)}getQueries(){return O(this,oe).map(t=>t.getCurrentQuery())}getObservers(){return O(this,oe)}getOptimisticResult(t,r){const s=ie(this,J,ct).call(this,t),a=s.map(i=>i.observer.getOptimisticResult(i.defaultedQueryOptions)),o=s.map(i=>i.defaultedQueryOptions.queryHash);return[a,i=>ie(this,J,it).call(this,i??a,r,o),()=>ie(this,J,ot).call(this,a,s)]}},Me=new WeakMap,se=new WeakMap,Se=new WeakMap,Pe=new WeakMap,oe=new WeakMap,xe=new WeakMap,He=new WeakMap,Ee=new WeakMap,Be=new WeakMap,Te=new WeakMap,J=new WeakSet,ot=function(t,r){return r.map((s,a)=>{const o=t[a];return s.defaultedQueryOptions.notifyOnChangeProps?o:s.observer.trackResult(o,i=>{r.forEach(l=>{l.observer.trackProp(i)})})})},it=function(t,r,s){if(r){const a=O(this,Be),o=s!==void 0&&a!==void 0&&(a.length!==s.length||s.some((i,l)=>i!==a[l]));return(!O(this,xe)||O(this,se)!==O(this,Ee)||o||r!==O(this,He))&&(ee(this,He,r),ee(this,Ee,O(this,se)),s!==void 0&&ee(this,Be,s),ee(this,xe,ga(O(this,xe),r(t)))),O(this,xe)}return t},ct=function(t){const r=new Map;O(this,oe).forEach(a=>{const o=a.options.queryHash;if(!o)return;const i=r.get(o);i?i.push(a):r.set(o,[a])});const s=[];return t.forEach(a=>{var d;const o=O(this,Me).defaultQueryOptions(a),l=((d=r.get(o.queryHash))==null?void 0:d.shift())??new js(O(this,Me),o);s.push({defaultedQueryOptions:o,observer:l})}),s},lt=function(t,r){const s=O(this,oe).indexOf(t);s!==-1&&(ee(this,se,Wa(O(this,se),s,r)),ie(this,J,dt).call(this))},dt=function(){var t;if(this.hasListeners()){const r=O(this,xe),s=ie(this,J,ot).call(this,O(this,se),O(this,Te)),a=ie(this,J,it).call(this,s,(t=O(this,Pe))==null?void 0:t.combine);r!==a&&at.batch(()=>{this.listeners.forEach(o=>{o(O(this,se))})})}},es);function Ya({queries:n,...t},r){const s=je(),a=xa(),o=ba(),i=c.useMemo(()=>n.map(h=>{const b=s.defaultQueryOptions(h);return b._optimisticResults=a?"isRestoring":"optimistic",b}),[n,s,a]);i.forEach(h=>{ya(h);const b=s.getQueryCache().get(h.queryHash);va(h,o,b)}),wa(o);const[l]=c.useState(()=>new Ga(s,i,t)),[d,p,g]=l.getOptimisticResult(i,t.combine),u=!a&&t.subscribed!==!1;c.useSyncExternalStore(c.useCallback(h=>u?l.subscribe(at.batchCalls(h)):Ca,[l,u]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),c.useEffect(()=>{l.setQueries(i,t)},[i,t,l]);const m=d.some((h,b)=>Vt(i[b],h))?d.flatMap((h,b)=>{const w=i[b];if(w){const y=new js(s,w);if(Vt(w,h))return _t(w,y,o);ja(h,a)&&_t(w,y,o)}return[]}):[];if(m.length>0)throw Promise.all(m);const x=d.find((h,b)=>{const w=i[b];return w&&Na({result:h,errorResetBoundary:o,throwOnError:w.throwOnError,query:s.getQueryCache().get(w.queryHash),suspense:w.suspense})});if(x!=null&&x.error)throw x.error;return p(g())}function Mt({email:n}){const{openModal:t,closeModal:r,isModalOpen:s}=Ba();c.useEffect(()=>{t()},[]);const{handleSubmit:a,control:o,formState:{errors:i,isValid:l},watch:d}=Ta(),[p,g]=c.useState(!1),[u,v]=c.useState(!1),{t:m}=$(),x=d("newPassword"),h=d("confirmPassword"),[b,w]=c.useState(!1),y=H(A=>A.setToken);c.useEffect(()=>{w(!!(l&&x===h))},[l,x,h]);const{mutate:C,isPending:q}=nt({mutationFn:A=>Ae.resetPasswordOtp({newPassword:A.newPassword,confirmPassword:A.confirmPassword}),onSuccess:async A=>{await y(A),r(),be({title:"Password updated",message:"Your password has been updated",type:"success"})},onError:A=>{be({title:"Error updating password",message:A.message,type:"error"})}}),j=a(async A=>{C(A)});return e.jsx(Qe,{open:s,onClose:()=>0,hideCloseButton:!0,title:m("auth.login.resetPasswordHeader"),children:e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("p",{className:"ml-4 text-base-fg font-semibold mb-4 text-center",children:m("auth.login.newPasswordDisclaimer")}),e.jsx("div",{className:"px-4",children:e.jsxs("form",{"data-qa":"update-login-form",onSubmit:j,children:[e.jsx(zt,{name:"newPassword",control:o,defaultValue:"",render:({field:A})=>{var E,S;return e.jsx($e,{...A,errorSpacing:!1,type:p?"text":"password",label:m("auth.login.newPassword").toString(),className:"lg:mb-[2vw] mb-7",error:(S=(E=i.newPassword)==null?void 0:E.message)==null?void 0:S.toString(),qaAttribute:"password","data-qa":"update-login-form-new-password-input",endIcon:e.jsx(R,{icon:p?Tt:Ft,className:"text-base-header opacity-70",onClick:()=>g(!p)})})},rules:{required:`${m("auth.login.inputRequired")}`,minLength:{value:3,message:"Password must be at least 3 characters long"}}}),e.jsx(zt,{name:"confirmPassword",control:o,defaultValue:"",render:({field:A})=>{var E,S;return e.jsx($e,{...A,errorSpacing:!1,type:u?"text":"password",label:m("auth.login.confirmNewPassword").toString(),className:"lg:mb-[2vw] mb-7",error:(S=(E=i.confirmNewPassword)==null?void 0:E.message)==null?void 0:S.toString(),qaAttribute:"password","data-qa":"update-login-form-confirm-password-input",endIcon:e.jsx(R,{icon:u?Tt:Ft,className:"text-base-header opacity-70",onClick:()=>v(!u)})})},rules:{required:`${m("auth.login.inputRequired")}`,minLength:{value:3,message:"Password must be at least 3 characters long"}}}),e.jsx(he,{onClick:j,disabled:!b||q,variant:"primary",className:"w-full","data-qa":"update-login-form-submit",children:m("auth.login.savePassword")})]})})]})})}function St({company:n}){const{t}=$();return e.jsxs("footer",{className:"flex justify-between flex-col mt-3 mb-2 font-normal text-sm",children:[e.jsx("span",{className:"sr-only",children:t("main.footer.screenReader")}),e.jsx("nav",{"aria-label":"Footer Navigation",children:e.jsx("ul",{className:"flex space-x-4",children:e.jsx("li",{children:e.jsx(Oa,{to:"https://www.vantaca.com/privacy-policy",children:t("main.footer.links.privacy")})})})}
1),e.jsx("span",{"data-qa":"footer__company-name",children:t("main.footer.content",{company:n,year:new Date().getFullYear()})}),e.jsxs("span",{className:"hidden",children:[t("Version"),": ","d8342b20"]})]})}const ye=(n,t)=>!!t&&t!=="#"&&(n===t||n.startsWith(`${t}/`)),me=(n,t)=>(t==null?void 0:t.some(r=>ye(n,r)))??!1,Ja=n=>{var t,r;try{return((r=(t=window.HOAi)==null?void 0:t.getWidget())==null?void 0:r.isExpanded())??n}catch{return n}};function Xa(){var g;const{t:n}=$(),t=H(u=>u.userSettings),r=H(u=>u.selectedAssociationId),s=Ie(u=>u.isOpen),a=Ie(u=>u.setIsOpen),o=(t==null?void 0:t.hoaiAssistantChatToggleButtonText)||n("main.sideBar.hoaiAssistant.defaultToggleButtonText"),i=(g=t==null?void 0:t.associations)==null?void 0:g.find(u=>u.id===r),l=(i==null?void 0:i.isBoardMember)===!0&&!(i!=null&&i.isHomeowner);return{chatEnabled:!!(t!=null&&t.hoaiAssistantChatEnabled)&&!l,chatToggleButtonText:o,isChatOpen:s,toggleHoaiChat:()=>{if(!window.HOAi){console.warn("cannot toggle HOAi chat (SDK not loaded)");return}Ja(s)?(window.HOAi.close(),a(!1)):(window.HOAi.open(),a(!0))}}}const Ut="data:image/svg+xml,%3csvg%20width='365'%20height='353'%20viewBox='0%200%20365%20353'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M147.781%20283.857C147.781%20269.106%20135.813%20257.138%20121.062%20257.138H67.625C62.7266%20257.138%2058.7188%20253.13%2058.7188%20248.232V87.9194C58.7188%2083.021%2062.7266%2079.0132%2067.625%2079.0132H200.5C218.831%2079.0132%20218.331%2052.2944%20200.5%2052.2944H67.625C47.9756%2052.2944%2032%2068.27%2032%2087.9194V248.232C32%20267.881%2047.9756%20283.857%2067.625%20283.857H121.062V328.388C121.062%20331.784%20122.899%20334.845%20125.961%20336.348C129.022%20337.851%20132.641%20337.517%20135.312%20335.513L144.831%20328.388L147.67%20326.273L147.781%20326.162L204.169%20283.857H281.375C301.024%20283.857%20317%20267.881%20317%20248.232V172.294C317%20154.794%20290.281%20154.794%20290.281%20172.294V248.232C290.281%20253.13%20286.273%20257.138%20281.375%20257.138H204.169C198.38%20257.138%20192.758%20259.031%20188.138%20262.482L147.781%20292.763V283.857Z'%20fill='white'/%3e%3cpath%20d='M289.249%2068.0469C288.19%2068.4469%20287.484%2069.4586%20287.484%2070.588C287.484%2071.7174%20288.19%2072.7292%20289.249%2073.1292L302.543%2078.1174L307.531%2091.4113C307.931%2092.4702%20308.942%2093.176%20310.072%2093.176C311.201%2093.176%20312.213%2092.4702%20312.613%2091.4113L317.601%2078.1174L330.895%2073.1292C331.954%2072.7292%20332.66%2071.7174%20332.66%2070.588C332.66%2069.4586%20331.954%2068.4469%20330.895%2068.0469L317.601%2063.0587L312.613%2049.7647C312.213%2048.7059%20311.201%2048%20310.072%2048C308.942%2048%20307.931%2048.7059%20307.531%2049.7647L302.543%2063.0587L289.249%2068.0469ZM214.379%20104.47C213.037%20105.082%20212.19%20106.423%20212.19%20107.905C212.19%20109.388%20213.037%20110.705%20214.379%20111.317L218.379%20113.176L220.284%20114.046L220.426%20114.117L241.202%20123.717L250.802%20144.47L250.872%20144.611L251.743%20146.517L253.602%20150.54C254.214%20151.881%20255.555%20152.728%20257.014%20152.728C258.472%20152.728%20259.814%20151.881%20260.425%20150.54L262.284%20146.517L263.155%20144.611L263.225%20144.47L272.825%20123.693L293.601%20114.117L293.743%20114.046L295.648%20113.176L299.672%20111.317C301.013%20110.705%20301.86%20109.364%20301.86%20107.905C301.86%20106.446%20301.013%20105.105%20299.672%20104.494L295.648%20102.635L293.743%20101.764L293.601%20101.694L272.825%2092.0937L263.249%2071.3174L263.178%2071.1762L262.308%2069.2469L260.449%2065.2234C259.837%2063.8822%20258.496%2063.0352%20257.037%2063.0352C255.578%2063.0352%20254.237%2063.8822%20253.625%2065.2234L251.767%2069.2469L250.896%2071.1527L250.825%2071.2939L241.225%2092.0702L220.449%20101.67L220.308%20101.741L218.402%20102.611L214.379%20104.47Z'%20fill='white'/%3e%3c/svg%3e",ce=({className:n,condensed:t=!1})=>{const{t:r}=$(),{chatEnabled:s,chatToggleButtonText:a,toggleHoaiChat:o}=Xa(),i=Ue(),l=Ke();return!i||!s?null:t?e.jsx("button",{type:"button",onClick:o,"data-qa":"hoai-chat-toggle-button",className:f("w-full py-1.5 rounded-3xl flex justify-center",l?"bg-primary hover:bg-primary/90":"bg-blue-600 hover:bg-blue-700",n),"aria-label":r("main.sideBar.hoaiAssistant.toggleButtonAriaLabel"),children:e.jsx("img",{src:Ut,className:"w-5 h-5",alt:"image-sparkle"})}):e.jsxs("button",{type:"button",onClick:o,"data-qa":"hoai-chat-toggle-button",className:f("flex items-center justify-center gap-2.5","w-full py-3 rounded-3xl",l?"bg-primary hover:bg-primary/90":"bg-blue-600 hover:bg-blue-700",n),"aria-label":r("main.sideBar.hoaiAssistant.toggleButtonAriaLabel"),children:[e.jsx("span",{className:"text-white",children:a}),e.jsx("img",{src:Ut,className:"w-6 h-6",alt:"image-sparkle"})]})};function en(){return e.jsxs("svg",{width:"146",height:"41",viewBox:"0 0 146 41",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[e.jsxs("g",{clipPath:"url(#clip0_472_42855)",children:[e.jsx("path",{d:"M141.883 36.5117V36.9614H140.597V40.2675H140.078V36.9614H138.799V36.5117H141.883Z",fill:"#01679B"}),e.jsx("path",{d:"M142.356 36.5117H143.089L144.181 39.6989L145.267 36.5117H146V40.2808H145.507V38.059C145.507 37.9797 145.507 37.854 145.507 37.6755C145.507 37.497 145.507 37.3052 145.507 37.1002L144.421 40.2808H143.915L142.829 37.1267V37.2457C142.829 37.3383 142.829 37.4771 142.829 37.6689C142.829 37.8606 142.829 37.9929 142.829 38.0855V40.3072H142.336L142.356 36.5117Z",fill:"#01679B"}),e.jsx("path",{d:"M46.3818 39.7716C46.3818 40.1552 46.1953 40.3469 45.8289 40.3469H43.3376C43.2229 40.3515 43.1084 40.3321 43.0017 40.29C42.895 40.2478 42.7984 40.1839 42.7181 40.1023C42.6386 40.0197 42.5764 39.9222 42.5352 39.8154C42.494 39.7087 42.4747 39.5949 42.4783 39.4807V38.3169C41.7379 39.0393 40.8711 39.6219 39.9204 40.0361C38.9795 40.4642 37.9579 40.6896 36.9229 40.6974C35.7531 40.704 34.5937 40.4792 33.5124 40.0361C32.4407 39.579 31.4664 38.9238 30.6414 38.1053C29.342 36.8085 28.4588 35.1586 28.1031 33.3639C27.7475 31.5693 27.9353 29.7102 28.6431 28.0214C29.1019 26.9427 29.7592 25.9582 30.5815 25.1186C31.4017 24.281 32.3764 23.6076 33.4524 23.1349C34.558 22.6499 35.7542 22.402 36.9629 22.4075C38.0676 22.3881 39.1647 22.5928 40.1869 23.0092C41.163 23.4429 42.0282 24.0893 42.7181 24.9004L42.9713 23.1613C42.9845 23.0043 43.0397 22.8537 43.1311 22.7249C43.1842 22.6732 43.2482 22.6339 43.3185 22.6099C43.3888 22.5859 43.4636 22.5777 43.5375 22.586H45.8689C46.2353 22.586 46.4218 22.7778 46.4218 23.1613L46.3818 39.7716ZM42.0054 29.4166C41.7392 28.7651 41.3529 28.1686 40.8663 27.6577C40.3844 27.1554 39.8101 26.7492 39.1744 26.4609C38.5235 26.1692 37.8169 26.0203 37.1028 26.0245C36.4156 26.026 35.7359 26.1654 35.1044 26.4345C34.4786 26.7058 33.9128 27.0967 33.4391 27.585C32.9541 28.0933 32.57 28.6878 32.3067 29.3373C31.76
15 30.7446 31.765 32.3008 32.3067 33.7081C32.5596 34.3582 32.9374 34.9534 33.4191 35.4604C33.887 35.9574 34.4511 36.3554 35.0778 36.6308C35.7358 36.9184 36.447 37.0669 37.166 37.0669C37.8851 37.0669 38.5963 36.9184 39.2543 36.6308C39.89 36.3487 40.4628 35.9442 40.9396 35.4405C41.4228 34.9334 41.8028 34.3384 42.0587 33.6882C42.3273 33.0103 42.463 32.2876 42.4584 31.5591C42.4501 30.8224 42.2962 30.0945 42.0054 29.4166Z",fill:"#01679B"}),e.jsx("path",{d:"M54.0023 39.7716C54.0046 39.8605 53.9822 39.9482 53.9376 40.0252C53.8929 40.1022 53.8277 40.1655 53.7491 40.208C53.5854 40.3094 53.3959 40.3621 53.2029 40.3601H50.625C50.5441 40.3722 50.4614 40.3654 50.3836 40.3402C50.3058 40.315 50.2349 40.2721 50.1767 40.215C50.1185 40.1579 50.0745 40.088 50.0483 40.0111C50.022 39.9341 50.0142 39.8521 50.0255 39.7716V23.2407C50.0145 23.1608 50.0222 23.0795 50.0481 23.0031C50.074 22.9267 50.1174 22.8573 50.1748 22.8003C50.2322 22.7433 50.3021 22.7003 50.3791 22.6746C50.456 22.6489 50.5379 22.6412 50.6184 22.6522H52.5168C52.712 22.6521 52.9 22.7253 53.043 22.8571C53.1915 22.9921 53.2978 23.1665 53.3495 23.3597L53.5826 25.3434C53.9087 24.8499 54.3034 24.4047 54.755 24.0209C55.1611 23.6729 55.6085 23.3753 56.0872 23.1349C56.5598 22.9076 57.0587 22.7389 57.5727 22.6323C58.0787 22.5273 58.5944 22.4741 59.1114 22.4736C59.9053 22.4789 60.6921 22.6222 61.4362 22.8968C62.2401 23.1845 62.975 23.6348 63.5944 24.2193C64.2884 24.8773 64.8393 25.6694 65.213 26.5469C65.6516 27.6258 65.8624 28.7826 65.8325 29.9456V39.7716C65.8325 40.1551 65.646 40.3469 65.2797 40.3469H62.4686C62.3887 40.3599 62.3068 40.3542 62.2295 40.3303C62.1521 40.3063 62.0815 40.2647 62.0233 40.2088C61.965 40.1529 61.9207 40.0843 61.894 40.0084C61.8672 39.9324 61.8587 39.8514 61.8691 39.7716V30.1043C61.8707 29.6055 61.7734 29.1112 61.5827 28.6496C61.3916 28.1889 61.1161 27.7674 60.77 27.4065C60.419 27.0436 60.0005 26.7517 59.5377 26.5469C59.0403 26.321 58.4992 26.2059 57.9523 26.2096C57.4703 26.213 56.9934 26.3072 56.5468 26.4873C56.0802 26.6731 55.6531 26.9445 55.2879 27.2874C54.8923 27.663 54.5754 28.1124 54.3553 28.6099C54.1032 29.1456 53.9778 29.7314 53.9889 30.3225L54.0023 39.7716Z",fill:"#01679B"}),e.jsx("path",{d:"M73.9394 22.7253H76.011C76.093 22.7166 76.176 22.7265 76.2536 22.7542C76.3312 22.7819 76.4015 22.8267 76.4592 22.8853C76.5169 22.9438 76.5605 23.0145 76.5867 23.0922C76.6129 23.1698 76.621 23.2524 76.6105 23.3336V25.6347C76.614 25.7192 76.5985 25.8034 76.5651 25.8812C76.5317 25.959 76.4812 26.0284 76.4173 26.0843C76.2881 26.1945 76.1212 26.2513 75.951 26.243H73.9527V34.892C73.9536 35.1557 73.9759 35.4188 74.0193 35.6789C74.0558 35.9116 74.1348 36.1357 74.2524 36.3402C74.363 36.5294 74.5215 36.6866 74.7121 36.7964C74.9445 36.9255 75.2052 36.9958 75.4714 37.0014H75.9244C76.0716 37.0031 76.216 37.0418 76.3441 37.1138C76.4305 37.1672 76.5034 37.2396 76.5572 37.3254C76.5969 37.404 76.6217 37.4892 76.6305 37.5767C76.6305 37.656 76.6305 37.7221 76.6305 37.7684V39.7521C76.6381 39.8158 76.6381 39.8802 76.6305 39.9439C76.6156 40.0329 76.571 40.1144 76.5039 40.1753C76.4094 40.2606 76.2983 40.3259 76.1775 40.3671C75.9836 40.4268 75.7809 40.4536 75.578 40.4464C74.8104 40.4548 74.0469 40.3341 73.3199 40.0894C72.6489 39.8894 72.0258 39.5565 71.4881 39.1107C70.9889 38.6623 70.5935 38.1119 70.329 37.4973C70.0424 36.8149 69.9018 36.0809 69.916 35.3417V26.243H68.2973C68.1486 26.2388 68.0055 26.1853 67.891 26.091C67.8218 26.0373 67.7668 25.9677 67.7308 25.8882C67.6948 25.8087 67.6789 25.7217 67.6845 25.6347V23.3733C67.6771 23.2819 67.6914 23.1901 67.7261 23.1051C67.7607 23.0202 67.815 22.9444 67.8844 22.884C67.9998 22.7858 68.1455 22.7299 68.2973 22.7253H69.9427V19.8158C69.9293 19.6639 69.9693 19.512 70.0559 19.386C70.1774 19.2619 70.3365 19.1806 70.5089 19.1546L73.3665 18.328C73.4196 18.3216 73.4733 18.3216 73.5264 18.328C73.5913 18.3243 73.6559 18.3391 73.7126 18.3708C73.7693 18.4024 73.8156 18.4495 73.8461 18.5066C73.917 18.6433 73.9514 18.7959 73.946 18.9496L73.9394 22.7253Z",fill:"#01679B"}),e.jsx("path",{d:"M97.1334 39.7716C97.1334 40.1552 96.9469 40.3469 96.5805 40.3469H94.0892C93.9745 40.3515 93.86 40.3321 93.7533 40.29C93.6466 40.2478 93.55 40.1839 93.4698 40.1023C93.3902 40.0197 93.328 39.9222 93.2868 39.8154C93.2456 39.7087 93.2263 39.5949 93.23 39.4807V38.3169C92.4895 39.0393 91.6227 39.6219 90.6721 40.0361C89.7311 40.4642 88.7095 40.6896 87.6745 40.6974C86.5047 40.704 85.3453 40.4792 84.264 40.0361C83.1913 39.5943 82.2127 38.9549 81.3797 38.1516C80.0803 36.8548 79.1971 35.2049 78.8414 33.4102C78.4857 31.6155 78.6736 29.7565 79.3813 28.0677C79.8191 26.9766 80.4584 25.9764 81.2664 25.1186C82.0867 24.281 83.0613 23.6076 84.1374 23.1349C85.243 22.6499 86.4392 22.402 87.6479 22.4075C88.7526 22.3881 89.8497 22.5928 90.8719 23.0092C91.848 23.4429 92.7132 24.0893 93.4031 24.9004L93.6496 23.1613C93.6681 23.0045 93.7253 22.8545 93.8161 22.7249C93.8692 22.6732 93.9332 22.6339 94.0035 22.6099C94.0738 22.5859 94.1486 22.5777 94.2225 22.586H96.5872C96.9536 22.586 97.1401 22.7778 97.1401 23.1613L97.1334 39.7716ZM92.757 29.4233C92.4908 28.7717 92.1045 28.1753 91.6179 27.6644C91.1366 27.1596 90.5622 26.7511 89.926 26.4609C89.273 26.1684 88.5641 26.0196 87.8477 26.0245C87.1604 26.0243 86.4803 26.1639 85.8494 26.4345C85.2215 26.7056 84.6535 27.0965 84.1774 27.585C83.6922 28.0919 83.31 28.6868 83.0517 29.3373C82.7665 30.0388 82.6239 30.7894 82.632 31.5458C82.6256 32.2852 82.7613 33.0191 83.0317 33.7081C83.2869 34.357 83.6645 34.9517 84.1441 35.4604C84.6119 35.9574 85.1761 36.3554 85.8027 36.6308C86.4499 36.9186 87.1518 37.0651 87.861 37.0606C88.5912 37.
10679 89.3142 36.9167 89.9793 36.6175C90.6149 36.3355 91.1878 35.9309 91.6646 35.4273C92.1477 34.9202 92.5277 34.3252 92.7836 33.675C93.0523 32.997 93.1879 32.2743 93.1833 31.5458C93.1818 30.8154 93.037 30.0922 92.757 29.4166V29.4233Z",fill:"#01679B"}),e.jsx("path",{d:"M113.366 35.4407C113.429 35.4358 113.492 35.448 113.549 35.4759C113.605 35.5039 113.652 35.5466 113.686 35.5994L115.112 37.6823C115.162 37.7402 115.2 37.808 115.222 37.8813C115.244 37.9545 115.251 38.0316 115.242 38.1076C115.232 38.1836 115.207 38.2567 115.167 38.3224C115.128 38.3881 115.075 38.4448 115.012 38.489C114.645 38.7986 114.253 39.0773 113.839 39.3221C113.385 39.5951 112.908 39.8295 112.414 40.0231C111.897 40.2293 111.361 40.3887 110.815 40.4991C110.27 40.6173 109.714 40.6772 109.157 40.6777C107.94 40.6918 106.734 40.4647 105.607 40.0097C104.481 39.5546 103.457 38.8808 102.596 38.0277C101.736 37.1746 101.056 36.1595 100.596 35.0419C100.136 33.9243 99.905 32.7268 99.9175 31.5195C99.9104 30.2946 100.158 29.0814 100.644 27.9555C101.116 26.8776 101.795 25.9008 102.642 25.0791C103.478 24.2594 104.46 23.6023 105.54 23.1416C107.697 22.2584 110.108 22.1995 112.307 22.9763C113.27 23.3562 114.169 23.8802 114.972 24.5302C115.025 24.5683 115.07 24.6166 115.105 24.6722C115.139 24.7279 115.162 24.7897 115.172 24.8542C115.183 24.961 115.158 25.0685 115.098 25.1584L113.673 27.3405C113.635 27.392 113.584 27.4335 113.526 27.4611C113.468 27.4888 113.404 27.5019 113.34 27.4992C113.225 27.5007 113.113 27.4659 113.02 27.4C112.424 26.9209 111.747 26.5493 111.022 26.3024C110.391 26.0995 109.733 25.9947 109.07 25.9916C108.382 25.9897 107.701 26.1316 107.072 26.4082C106.439 26.6777 105.866 27.0687 105.386 27.5587C104.885 28.0607 104.485 28.6532 104.207 29.3044C103.914 30.0109 103.767 30.7687 103.774 31.5328C103.768 32.2863 103.908 33.0339 104.187 33.7347C104.451 34.3838 104.837 34.9765 105.326 35.4803C105.801 35.9731 106.373 36.3646 107.005 36.6309C107.659 36.9107 108.364 37.0525 109.077 37.0475C109.476 37.0486 109.873 37.0042 110.262 36.9152C110.622 36.8335 110.972 36.7161 111.308 36.5648C111.619 36.4314 111.917 36.2721 112.201 36.0887C112.48 35.9168 112.727 35.7448 112.953 35.5729C113.01 35.5244 113.075 35.4876 113.146 35.4649C113.217 35.4422 113.292 35.4339 113.366 35.4407Z",fill:"#01679B"}),e.jsx("path",{d:"M135.442 39.7716C135.442 40.1552 135.255 40.3469 134.889 40.3469H132.398C132.283 40.3515 132.169 40.3321 132.062 40.29C131.955 40.2478 131.859 40.1839 131.778 40.1023C131.699 40.0197 131.637 39.9222 131.595 39.8155C131.554 39.7087 131.535 39.5949 131.539 39.4807V38.3169C130.798 39.0394 129.931 39.6219 128.981 40.0361C128.04 40.4642 127.018 40.6896 125.983 40.6974C124.813 40.704 123.654 40.4792 122.573 40.0361C120.384 39.1392 118.632 37.4317 117.69 35.2752C117.211 34.1333 116.964 32.9085 116.964 31.6715C116.964 30.4344 117.211 29.2096 117.69 28.0677C118.149 26.989 118.806 26.0045 119.628 25.1649C120.449 24.3273 121.423 23.6539 122.499 23.1812C123.605 22.6956 124.801 22.4477 126.01 22.4538C127.114 22.4351 128.211 22.6398 129.234 23.0555C130.209 23.491 131.074 24.1371 131.765 24.9467L132.011 23.2076C132.031 23.0521 132.086 22.9029 132.171 22.7712C132.226 22.7194 132.291 22.68 132.362 22.656C132.434 22.632 132.509 22.624 132.584 22.6323H134.916C135.282 22.6323 135.469 22.8241 135.469 23.2076L135.442 39.7716ZM131.059 29.4233C130.798 28.7708 130.413 28.1739 129.927 27.6644C129.445 27.162 128.87 26.7558 128.235 26.4675C127.582 26.175 126.873 26.0262 126.156 26.0311C125.469 26.0324 124.789 26.1719 124.158 26.4411C123.532 26.7124 122.966 27.1033 122.493 27.5916C122.006 28.0983 121.621 28.6932 121.36 29.3439C120.819 30.7512 120.819 32.3074 121.36 33.7147C121.613 34.3633 121.989 34.958 122.466 35.467C122.938 35.9627 123.504 36.3605 124.131 36.6374C124.779 36.9252 125.48 37.0718 126.19 37.0672C126.92 37.0745 127.643 36.9233 128.308 36.6242C128.944 36.3421 129.516 35.9376 129.993 35.4339C130.474 34.9251 130.854 34.3305 131.112 33.6816C131.381 33.0037 131.516 32.281 131.512 31.5525C131.506 30.8177 131.352 30.0915 131.059 29.4167V29.4233Z",fill:"#01679B"}),e.jsx("path",{d:"M16.7466 40.5122C16.5703 40.573 16.39 40.6216 16.207 40.6577C16.3893 40.6185 16.5694 40.5699 16.7466 40.5122Z",fill:"#35729F"}),e.jsx("path",{d:"M15.0406 40.7374C14.9113 40.7302 14.7824 40.717 14.6543 40.6978C14.7824 40.717 14.9113 40.7302 15.0406 40.7374Z",fill:"#35729F"}),e.jsx("path",{d:"M36.7963 0.0976562H29.3424C28.5912 0.0978457 27.8561 0.313182 27.2251 0.717828C26.5942 1.12247 26.0942 1.69924 25.7853 2.37893L25.5988 2.79551L16.373 23.241L21.3823 34.1977L31.8936 10.9486L36.7963 0.0976562Z",fill:"#63B249"}),e.jsx("path",{d:"M19.5178 34.4819L15.3812 25.4097L11.2379 34.5678C10.9642 35.1876 10.834 35.8605 10.8571 36.5368C10.8802 37.2132 11.0558 37.8757 11.3711 38.4757C11.5796 38.8777 11.8517 39.2438 12.1771 39.5602C12.3445 39.7308 12.5273 39.8857 12.7233 40.023C12.9219 40.1611 13.1288 40.287 13.3428 40.3999L13.6026 40.5256L13.8358 40.6115C13.9557 40.6512 14.0756 40.6975 14.2021 40.7306L14.4353 40.7835L14.8416 40.8496H15.0548C15.2366 40.8628 15.4191 40.8628 15.601 40.8496H15.6809C15.8712 40.8388 16.0604 40.8145 16.2471 40.7768H16.3137C16.4739 40.7451 16.6319 40.7031 16.7867 40.6512C16.8257 40.642 16.8637 40.6287 16.8999 40.6115C17.0398 40.5586 17.1797 40.5124 17.3129 40.4462H17.3595C17.5497 40.3508 17.7343 40.2449 17.9124 40.1288L18.0989 39.9966C18.2322 39.8974 18.3587 39.785 18.4853 39.6726C18.7856 39.3944 19.0457 39.0761 19.258 38.727C19.2913 38.6807 19.3179 38.6212 19.3512 38.5683C19.704 37.9493 19.9031 37.2557 19.9321 36.5451C19.961 35.8344 19.819 35.1272 19.5178 34.4819Z",fill:"#173C4F"}),e.jsx("path",{d:"M11.2374 34.568L15.3807 25.4099L14.4415 23.3534L13.3224 20.9267L12.1434 18.3478L11.1708 16.2054L10.971 15.7624C10.6746 15.1145 10.1967 14.565 9.59432 14.1792C8.99197 13.7935 8.29058 13.5879 7.57378 13.5869H0L2.92426 20.0075L11.2641 38.2908C11.2956 38.3547 11.3312 38.4165 11.3707 38.4759C11.0553 37.8759 10.8797 37.2133 10.8566 36.537C10.8336 35.860
17 10.9637 35.1878 11.2374 34.568Z",fill:"#01679B"})]}),e.jsx("path",{d:"M37.996 17V8.54H41.584C42.488 8.54 43.18 8.76 43.66 9.2C44.148 9.632 44.392 10.232 44.392 11C44.392 11.768 44.148 12.372 43.66 12.812C43.18 13.252 42.488 13.472 41.584 13.472H39.244V17H37.996ZM39.244 12.476H41.452C42.02 12.476 42.448 12.348 42.736 12.092C43.024 11.836 43.168 11.472 43.168 11C43.168 10.536 43.024 10.176 42.736 9.92C42.448 9.664 42.02 9.536 41.452 9.536H39.244V12.476ZM47.0361 12.764C47.0361 11.876 47.1921 11.108 47.5041 10.46C47.8161 9.812 48.2681 9.312 48.8601 8.96C49.4601 8.608 50.1721 8.432 50.9961 8.432C51.8121 8.432 52.5161 8.608 53.1081 8.96C53.7001 9.312 54.1561 9.812 54.4761 10.46C54.8041 11.108 54.9681 11.872 54.9681 12.752C54.9681 13.64 54.8041 14.412 54.4761 15.068C54.1561 15.716 53.6961 16.22 53.0961 16.58C52.5041 16.932 51.8041 17.108 50.9961 17.108C50.1721 17.108 49.4641 16.932 48.8721 16.58C48.2801 16.22 47.8241 15.716 47.5041 15.068C47.1921 14.412 47.0361 13.644 47.0361 12.764ZM48.3441 12.764C48.3441 13.788 48.5681 14.588 49.0161 15.164C49.4641 15.74 50.1241 16.028 50.9961 16.028C51.8441 16.028 52.5001 15.744 52.9641 15.176C53.4281 14.6 53.6601 13.796 53.6601 12.764C53.6601 11.732 53.4281 10.932 52.9641 10.364C52.5081 9.796 51.8521 9.512 50.9961 9.512C50.1241 9.512 49.4641 9.796 49.0161 10.364C48.5681 10.932 48.3441 11.732 48.3441 12.764ZM60.3045 17L57.3405 8.54H58.6365L61.0965 15.848H60.6525L63.2565 8.54H64.2045L66.6525 15.848H66.2445L68.7885 8.54H70.0125L67.0245 17H65.9565L63.5805 10.04H63.8325L61.3605 17H60.3045ZM72.871 17V8.54H78.415V9.536H74.083V12.2H78.139V13.208H74.083V15.992H78.415V17H72.871ZM81.4608 17V8.54H85.0368C85.9408 8.54 86.6408 8.756 87.1368 9.188C87.6328 9.612 87.8808 10.208 87.8808 10.976C87.8808 11.48 87.7688 11.912 87.5448 12.272C87.3208 12.632 87.0048 12.908 86.5968 13.1C86.1888 13.284 85.7088 13.376 85.1568 13.376L85.3488 13.184H85.6728C86.0008 13.184 86.2928 13.268 86.5488 13.436C86.8128 13.604 87.0288 13.872 87.1968 14.24L88.4088 17H87.0408L85.8408 14.228C85.7208 13.9 85.5328 13.688 85.2768 13.592C85.0288 13.496 84.7208 13.448 84.3528 13.448H82.7088V17H81.4608ZM82.7088 12.5H84.8328C85.4328 12.5 85.8848 12.372 86.1888 12.116C86.5008 11.86 86.6568 11.492 86.6568 11.012C86.6568 10.524 86.5008 10.156 86.1888 9.908C85.8848 9.66 85.4328 9.536 84.8328 9.536H82.7088V12.5ZM91.328 17V8.54H96.872V9.536H92.54V12.2H96.596V13.208H92.54V15.992H96.872V17H91.328ZM99.9179 17V8.54H102.846C103.798 8.54 104.602 8.704 105.258 9.032C105.922 9.36 106.422 9.84 106.758 10.472C107.102 11.096 107.274 11.86 107.274 12.764C107.274 13.66 107.102 14.424 106.758 15.056C106.422 15.688 105.922 16.172 105.258 16.508C104.602 16.836 103.798 17 102.846 17H99.9179ZM101.166 15.956H102.774C103.862 15.956 104.67 15.692 105.198 15.164C105.734 14.636 106.002 13.836 106.002 12.764C106.002 11.692 105.734 10.896 105.198 10.376C104.67 9.848 103.862 9.584 102.774 9.584H101.166V15.956ZM115.164 17V8.54H118.692C119.604 8.54 120.304 8.732 120.792 9.116C121.288 9.5 121.536 10.04 121.536 10.736C121.536 11.256 121.38 11.692 121.068 12.044C120.756 12.396 120.328 12.632 119.784 12.752V12.572C120.408 12.652 120.892 12.872 121.236 13.232C121.58 13.592 121.752 14.068 121.752 14.66C121.752 15.412 121.496 15.992 120.984 16.4C120.48 16.8 119.768 17 118.848 17H115.164ZM116.376 16.028H118.716C119.284 16.028 119.728 15.92 120.048 15.704C120.376 15.488 120.54 15.124 120.54 14.612C120.54 14.1 120.376 13.736 120.048 13.52C119.728 13.304 119.284 13.196 118.716 13.196H116.376V16.028ZM116.376 12.236H118.5C119.108 12.236 119.564 12.12 119.868 11.888C120.172 11.656 120.324 11.316 120.324 10.868C120.324 10.42 120.172 10.08 119.868 9.848C119.564 9.616 119.108 9.5 118.5 9.5H116.376V12.236ZM126.791 17V13.028L127.067 13.82L123.503 8.54H124.943L127.595 12.584H127.295L129.947 8.54H131.339L127.787 13.82L128.039 13.028V17H126.791Z",fill:"black"}),e.jsx("defs",{children:e.jsx("clipPath",{id:"clip0_472_42855",children:e.jsx("rect",{width:"146",height:"41",fill:"white"})})})]})}const tn=[Ls,Rs,qs,Is,Hs,Es,Bs,Ts,Fs,Ds,Os,Vs,_s,ss];function sn({className:n,open:t,onClose:r,onViewUpdate:s}){const{t:a}=$(),o=ve(),{width:i}=mt(),l=Nt(),{pageOptions:d}=Ye(),p=H(x=>x.settingsLoading),[g,u]=c.useState([]);c.useEffect(()=>{i<=pe&&t&&s(!0),i>pe&&t&&s(!1)},[i,t,s]);
1const v=x=>{g.includes(x)?u(g.filter(h=>h!==x)):u([...g,x]),t||r(!1)},m=()=>{r(!t),i<=pe&&!t?s(!0):s(!1)};return Ps(x=>{i<=pe&&t&&x.target instanceof Element&&(!x.target.closest("aside")&&!x.target.closest('button[aria-controls="Sidebar"]')||x.target.closest("a"))&&m()}),e.jsx("div",{className:f(!t&&"xl:w-10","w-64 transition-all duration-300 ease-in-out",n),children:e.jsxs("aside",{className:f(!t&&"xl:justify-start xl:w-12 -translate-x-full","justify-start w-64","fixed bg-base-fill border-r border-base-border top-0 left-0 h-full flex flex-col transition-all duration-300 xl:translate-x-0"),id:"Sidebar","aria-label":"Sidebar",children:[e.jsxs("button",{type:"button",className:f(t?"absolute top-2.5 -right-4 inline-flex items-center":"hidden xl:block xl:px-3 xl:py-4","text-sm p-1.5"),onClick:m,children:[e.jsx("div",{className:"w-6 h-6 rounded-full border border-base-border flex justify-center items-center bg-base-fill",children:e.jsx(R,{icon:ts,size:"1x",className:f(!t&&"-rotate-180","transition-all text-base-icon")})}),e.jsx("span",{className:"sr-only",children:a("main.sideBar.screenReader.openSidebar")})]}),p?e.jsx("div",{className:f("w-32 h-24 min-h-[96px] mx-auto my-5",!t&&"hidden")}):l?e.jsx("img",{src:l,width:160,alt:"logo",className:f(!t&&"hidden","mx-auto my-5")}):e.jsx("div",{className:f("w-full h-12",!t&&"hidden")}),e.jsxs("div",{className:"flex h-1 flex-col grow overflow-y-scroll no-scrollbar",children:[e.jsxs("div",{className:f("py-4 px-3",!t&&"xl:px-1.5"),children:[e.jsx(an,{sidebarData:d,isSidebarCollapsed:!t,onToggleChild:v,location:o,selected:g}),e.jsx(ce,{condensed:!t})]}),e.jsx("div",{className:"flex justify-center grow pb-4",children:e.jsx("div",{className:"flex flex-row justify-center items-end",children:e.jsx("div",{className:f(!t&&"xl:hidden","flex-end"),children:e.jsx(en,{})})})})]})]})})}function an({sidebarData:n,isSidebarCollapsed:t,onToggleChild:r,location:s}){return e.jsx("ul",{className:"font-normal space-y-1 text-sm",children:n.map((a,o)=>{const i=tn.find(l=>l.iconName===a.icon);return e.jsx("li",{children:"children"in a?e.jsx(nn,{option:a,sidebarData:n,isSidebarCollapsed:t,onToggleChild:r,icons:i,location:s}):e.jsxs(U,{to:a.path??"#",className:f("border-l-4 border-base-fill hover:border-base-active/10",(ye(s.pathname,a.path)||me(s.pathname,a.childPaths))&&"bg-base-active/10 border-base-active","flex items-center w-full p-2 text-base-header transition-all duration-300 rounded-lg group hover:bg-base-active/10"),children:[i&&e.jsx(R,{className:f("text-base-icon",!(ye(s.pathname,a.path)||me(s.pathname,a.childPaths))&&"opacity-60"),icon:i}),e.jsx("span",{className:f(t&&"opacity-0 h-4 line-clamp-1","ml-3 text-base-header transform-all ease-in-out duration-300"),children:a.title})]})},`${o}-${a.id}`)})})}function nn({option:n,onToggleChild:t,isSidebarCollapsed:r,icons:s,location:a}){var d;const o=ve(),[i,l]=c.useState(me(o.pathname,n.childPaths));return c.useEffect(()=>{me(o.pathname,n.childPaths)&&l(!0)},[o.pathname,n.childPaths]),e.jsxs("div",{className:"w-full",children:[e.jsxs("button",{type:"button",className:f("border-l-4 border-base-fill hover:border-base-active/10",me(a.pathname,n.childPaths)&&"bg-base-active/10 border-base-active","flex items-center w-full p-2 text-base-header transition-all duration-300 rounded-lg group hover:bg-base-active/10"),onClick:()=>{t(n.id),l(!i)},children:[e.jsx(R,{icon:s,className:f("text-base-icon",!me(a.pathname,n.childPaths)&&"opacity-60")}),e.jsxs("div",{className:f(r&&"xl:hidden ","flex w-full"),children:[e.jsx("span",{className:f("flex-1 ml-3 text-left whitespace-nowrap"),children:n.title}),e.jsx("svg",{className:f(i&&"-rotate-180 ","w-6 h-6 flex-end transition-all"),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]}),e.jsx("div",{className:f(r&&"xl:hidden"),children:e.jsx("ul",{id:"dropdown-example",className:f(!i&&"hidden ","py-2 space-y-2"),children:(d=n.children)==null?void 0:d.map(p=>e.jsx("li",{children:e.jsx(U,{to:p.path,className:f("ml-6 flex items-center p-2 text-gray-900 transition-all duration-300 rounded-lg pl-6 group hover:bg-base-active/10",ye(a.pathname,p.path)&&"bg-base-active/10"),children:e.jsx("span",{className:"text-base-header",children:p.title})})},p.id))})})]})}const rn=({isOpen:n,preventClose:t})=>{const{t:r}=$(),{user:s}=de();return e.jsxs("div",{className:"px-[41px] pt-[41px] pb-8 flex flex-col -mb-[5px]",children:[e.jsxs("div",{className:"flex flex-col gap-2 mb-8",children:[e.jsx("h2",{className:"text-base font-semibold text-base-header",children:r("main.onboarding.modal.title",{userName:(s==null?void 0:s.userName)||"User"})}),e.jsx("p",{className:"text-sm text-base-fg",children:r("main.onboarding.modal.subtitle")})]}),e.jsx("div",{className:"flex justify-center items-center flex-1",children:e.jsx(ae,{})})]})},on=()=>{const{t:n}=$();return de(),e.jsx("div",{className:"flex flex-col gap-2 px-3",children:e.jsx("div",{className:"pendo-container"})})},Pt=({currentStep:n,totalSteps:t})=>{const{t:r}=$(),s=n/t*100;return e.jsxs("div",{className:"space-y-2",children:[e.jsxs("div",{className:"flex justify-between items-center",children:[e.jsx("span",{className:"text-sm text-base-fg",children:r("main.onboarding.modal.progress.step",{current:n,total:t})}),e.jsxs("span",{className:"text-sm text-base-fg",children:[s,"%"]})]}),e.jsx("div",{className:"w-full h-2 bg-primary/20 rounded-full overflow-hidden",children:e.jsx("div",{className:"h-full bg-primary transition-all duration-300",style:{width:`${s}%`}})})]})},cn=({isOpen:n,preventClose:t,onClose:r,onSetUpLaterClick:s,onSetStep:a,onSetRecurringPaymentSetup:o,onSetIsCreatingRecurring:i,onSetExpandedSection:l,onAdvanceToRecurringConfirmation:d,recurringEnabled:p,isCreatingRecurring:g,expandedSection:u,onSetSelectedPaymentMethodId:v,paymentOptions:m,onPaymentMethodCreated:x})=>{var _,z;const{t:h}=$(),b=je(),[w,y]=c.useState(),[C,q]=c.useState(),{data:j}=le({queryKey:["paymentMethods"],queryFn:()=>Q.getPaymentMethods(),enabled:n}),A=(_=j==null?void 0:j.paymentMethods)==null?void 0:_.filter(M=>!!M.card),E=(z=j==null?void 0:j.paymentMethods)==null?void 0:z.filter(M=>!!M.bankAccount),S=m==null?void 0:m.find(M=>M.paymentType==="recurringCard"&&M.isRecurring),k=m==null?void 0:m.find(M=>M.paymentType==="recurringECheck"&&M.isRecurring),F=`${S==null?void 0:S.percentageFee}%`,D=`$${k&&(k!=null&&k.flatFee)?(k==null?void 0:k.flatFee)/100:0}`,P=()=>{w&&a(2)},B=async()=>{var V;y(void 0),await b.invalidateQueries({queryKey:["paymentMethods"]});const M=await b.fetchQuery({queryKey:["paymentMethods"],queryFn:()=>Q.getPaymentMethods()});if((V=M==null?void 0:M.paymentMethods)!=null&&V.length){const L=M.paymentMethods[M.paymentMethods.length-1];q(L.id),v(L.id),x(L.id)}Fe("payment:onboarding:method:added",{paymentMethod:w??null})},I=M=>
1{l(u===M?null:M),y(void 0)},Y=async()=>{C?await d():w&&P()};return e.jsxs(e.Fragment,{children:[e.jsx(Pt,{currentStep:1,totalSteps:2}),e.jsx("div",{children:e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx("div",{className:"w-10 h-10 rounded-md bg-base-bg flex items-center justify-center",children:e.jsx(R,{icon:qe,className:"text-lg text-primary"})}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("span",{className:"text-base font-semibold text-base-header",children:h(w?"main.onboarding.modal.addPaymentMethod":"main.onboarding.modal.selectPaymentMethod")}),e.jsx("span",{className:"text-sm text-base-fg",children:h("main.onboarding.modal.choosePreferredPaymentMethod")})]})]})}),e.jsxs("div",{className:"space-y-4",children:[S&&e.jsxs("div",{className:f("rounded-md border transition-all duration-200",u==="creditCard"?"border-primary border-2":"border-base-border"),children:[e.jsxs("button",{onClick:()=>I("creditCard"),className:"w-full flex items-center justify-between py-4 px-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(R,{icon:qe,className:"text-xl text-base-header"}),e.jsx("span",{className:"text-base text-base-header",children:h("main.onboarding.modal.step1.creditCard")})]}),e.jsx("span",{className:"text-xs text-neutral-fg px-2 mobile:px-8",children:h("main.onboarding.modal.processingFee",{processingFee:F})})]}),u==="creditCard"&&e.jsxs("div",{className:"px-4 pb-4 pt-4 mobile:px-8 mobile:pb-8 space-y-4 border-t border-base-border",children:[A&&A.length>0&&e.jsx(e.Fragment,{children:A.map(M=>{var L,K;const V=`${h([`billing.cardType.${(L=M.card)==null?void 0:L.brand}`,"billing.cardType.default"])} **** ${(K=M.card)==null?void 0:K.last4}`;return e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"paymentMethod",checked:C===M.id,onChange:()=>{q(M.id),v(M.id),y(void 0)},className:"w-5 h-5 text-primary focus:ring-primary"}),e.jsx("span",{className:"text-base text-neutral-fg",children:V})]},M.id)})}),e.jsxs("button",{onClick:()=>{y("creditCard"),q(void 0),v(void 0)},className:"flex items-center gap-2 text-primary hover:underline",children:[e.jsx(R,{icon:Dt,className:"text-sm"}),e.jsx("span",{className:"text-sm font-medium",children:h("main.onboarding.modal.addNewCreditCard")})]}),w==="creditCard"&&!C&&e.jsx("div",{className:"mt-4",children:e.jsx(rt,{paymentMethodType:w,onCancel:()=>y(void 0),onSubmit:B})})]})]}),k&&e.jsxs("div",{className:f("rounded-md border transition-all duration-200",u==="eCheck"?"border-primary border-2":"border-base-border"),children:[e.jsxs("button",{onClick:()=>I("eCheck"),className:"w-full flex items-center justify-between py-4 px-5",children:[e.jsxs("div",{className:"flex items-center gap-3",children:[e.jsx(R,{icon:$s,className:"text-xl text-base-header"}),e.jsx("span",{className:"text-base text-base-header",children:h("main.onboarding.modal.step1.bankAccount")})]}),e.jsx("span",{className:"text-xs text-neutral-fg px-2 mobile:px-8",children:h("main.onboarding.modal.processingFee",{processingFee:D})})]}),u==="eCheck"&&e.jsxs("div",{className:"px-4 pb-4 pt-4 mobile:px-8 mobile:pb-8 space-y-4 border-t border-base-border",children:[E&&E.length>0&&e.jsx(e.Fragment,{children:E.map(M=>{var L,K;const V=`${(L=M.bankAccount)==null?void 0:L.bankName} **** ${(K=M.bankAccount)==null?void 0:K.last4}`;return e.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[e.jsx("input",{type:"radio",name:"paymentMethod",checked:C===M.id,onChange:()=>{q(M.id),v(M.id),y(void 0)},className:"w-5 h-5 text-primary focus:ring-primary"}),e.jsx("span",{className:"text-base text-neutral-fg",children:V})]},M.id)})}),e.jsxs("button",{onClick:()=>{y("eCheck"),q(void 0),v(void 0)},className:"flex items-center gap-2 text-primary hover:underline",children:[e.jsx(R,{icon:Dt,className:"text-sm"}),e.jsx("span",{className:"text-sm font-medium",children:h("main.onboarding.modal.addNewBankAccount")})]}),w==="eCheck"&&!C&&e.jsx("div",{className:"mt-4",children:e.jsx(rt,{paymentMethodType:w,onCancel:()=>y(void 0),onSubmit:B})})]})]})]}),!w&&!C&&e.jsx("div",{className:"border-t border-base-border pt-6 pb-6",children:e.jsx("div",{className:"flex flex-col-reverse mobile:flex-row mobile:justify-end gap-3",children:e.jsx("button",{onClick:s,className:"w-full mobile:w-auto px-4 py-3 rounded-md bg-base-bg text-neutral-fg font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.24)] hover:bg-base-hover transition-colors",children:h("main.onboarding.modal.setUpLater")})})}),C&&!w&&e.jsx("div",{className:"border-t border-base-border pt-6 pb-6",children:e.jsxs("div",{className:"flex flex-col-reverse mobile:flex-row mobile:justify-end gap-3",children:[e.jsx("button",{onClick:s,className:"w-full mobile:w-auto px-4 py-3 rounded-md bg-base-bg text-neutral-fg font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.24)] hover:bg-base-hover transition-colors",children:h("main.onboarding.modal.setUpLater")}),e.jsxs("button",{onClick:Y,disabled:g,className:"w-full mobile:w-auto px-4 py-3 rounded-md bg-primary text-white font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.16)] hover:bg-primary/90 transition-colors disabled:opacity-50 flex items-center justify-center gap-2",children:[g&&e.jsx(ae,{className:"w-4 h-4"}),h("main.onboarding.modal.saveAndContinue")]})]})})]})},ln=({isOpen:n,preventClose:t,onClose:r,onCancel:s,onSetRecurringPaymentSetup:a,onSetIsCreatingRecurring:o,onSetStep:i,onAdvanceToRecurringConfirmation:l,selectedPaymentMethodId:d,recurringEnabled:p,onSetSelectedPaymentMethodId:g})=>{const{t:u}=$(),v=je(),{user:m}=de(),[x,h]=c.useState(),b=async()=>{var y;
1h(void 0),await v.invalidateQueries({queryKey:["paymentMethods"]});const w=await v.fetchQuery({queryKey:["paymentMethods"],queryFn:()=>Q.getPaymentMethods()});if((y=w==null?void 0:w.paymentMethods)!=null&&y.length){const C=w.paymentMethods[w.paymentMethods.length-1];g(C.id)}Fe("payment:onboarding:method:added",{paymentMethod:x??null}),i(1)};return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("h2",{className:"text-base font-semibold text-base-header",children:u("main.onboarding.modal.title",{userName:(m==null?void 0:m.userName)||"User"})}),e.jsx("p",{className:"text-sm text-base-fg",children:u("main.onboarding.modal.subtitle")})]}),e.jsx(Pt,{currentStep:1,totalSteps:2}),e.jsx(rt,{paymentMethodType:x,onCancel:s,onSubmit:b})]})},dn=.5,mn=25e3,un=({paymentAmount:n})=>{const t=n&&n>0,r=n>=dn,s=n<=mn;return{isPaymentAmountValid:t,isPaymentAmountGreaterThanLowerLimit:r,isPaymentAmountLessThanUpperLimit:s}},pn=({isOpen:n,preventClose:t,onSetStep:r,onSetModalToShow:s,onSetUpLaterClick:a,selectedPaymentMethodId:o,recurringEnabled:i,onSetRecurringEnabled:l,recurringPaymentSetup:d,onSetRecurringPaymentSetup:p,paymentOptions:g,onRecurringPaymentSetup:u,nextAchChargeDate:v})=>{var ne;const{t:m}=$(),x=je(),[h,b]=c.useState(!1),[w,y]=c.useState(""),[C,q]=c.useState(),[j,A]=c.useState(!1),[E,S]=c.useState(!1),[k,F]=c.useState(null),[D,P]=c.useState(),{isPaymentAmountValid:B,isPaymentAmountGreaterThanLowerLimit:I,isPaymentAmountLessThanUpperLimit:Y}=un({paymentAmount:parseFloat(w||"0")}),{data:_}=le({queryKey:["paymentMethods"],queryFn:()=>Q.getPaymentMethods(),enabled:n}),{onboardingEditPaymentDate:z}=ka(),{data:M}=le({queryKey:["accounts"],queryFn:()=>Q.getSubLedgers({portalEnabled:!0}),enabled:n}),V=Aa(),L=c.useMemo(()=>{var N;return v||((N=M==null?void 0:M[0])==null?void 0:N.nextChargeDate)||as("recurring")},[v,M]),K=c.useMemo(()=>et(L,{naive:!0,format:"numeric"}),[L]),Ne=c.useMemo(()=>{const N=k??L;return N.getFullYear()===L.getFullYear()&&N.getMonth()===L.getMonth()&&N.getDate()===L.getDate()},[k,L]),Le=()=>{const N=et(L,{format:"numeric",month:"2-digit",day:"2-digit",year:"2-digit",naive:!0});return z?e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"flex flex-wrap items-center gap-2",children:[e.jsx("span",{className:"text-sm text-base-header",children:m("main.onboarding.modal.step2.startingOnDate",{date:k?et(k,{format:"numeric",month:"2-digit",day:"2-digit",year:"2-digit",naive:!0}):K})}),Ne&&e.jsx("span",{className:f("inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-medium","bg-success text-white"),children:m("main.onboarding.modal.step2.recommendedDate")})]}),E?e.jsxs("div",{className:"flex flex-col gap-2 mt-2",children:[e.jsxs("div",{className:"flex items-end gap-2",children:[e.jsx(Qs,{id:"payment-start-date",label:m("main.onboarding.modal.step2.paymentStartDateLabel"),value:k??L,minDate:Ot(),useMinDate:!0,highlightDate:Ne?null:L,onChange:G=>{c.startTransition(()=>{F(G||null),P(void 0)})},error:D,className:"flex-1 min-w-0"}),e.jsx("button",{type:"button",onClick:()=>c.startTransition(()=>S(!1)),className:f("flex shrink-0 items-center justify-center w-10 h-10 rounded bg-primary text-white","hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2"),"aria-label":m("main.onboarding.modal.step2.savePaymentDate"),children:e.jsx(R,{icon:Zs,className:"w-5 h-5"})})]}),e.jsx("span",{className:"text-xs text-input-fg",children:m("main.onboarding.modal.step2.paymentStartDateHelper")})]}):e.jsx("button",{type:"button",onClick:()=>{c.startTransition(()=>{if(!k){const G=new Date(L.getTime()-L.getTimezoneOffset()*6e4);F(G)}S(!0)})},className:"text-sm text-primary hover:underline text-left",children:m("main.onboarding.modal.step2.editPaymentDate")})]}):e.jsx("span",{className:"text-sm text-base-header",children:m("main.onboarding.modal.step2.startingOnDate",{date:N})})},ue=g==null?void 0:g.find(N=>N.paymentType==="recurringCard"&&N.isRecurring),X=g==null?void 0:g.find(N=>N.paymentType==="recurringECheck"&&N.isRecurring),we=`${ue==null?void 0:ue.percentageFee}%`,fe=`$${X&&(X!=null&&X.flatFee)?(X==null?void 0:X.flatFee)/100:0}`,ke=async()=>{var N,G;
1if(d){if(j){if(!B){q(m("main.onboarding.modal.step2.amountInvalid"));return}if(!I){q(m("main.onboarding.modal.step2.amountMinimum"));return}if(!Y){q(m("main.onboarding.modal.step2.amountMaximum"));return}}if(E&&k){const te=Ot();if(k<te){P(m("main.onboarding.modal.step2.dateInvalid"));return}}try{if(b(!0),w){const De=Math.round(parseFloat(w)*100);await Q.updateRecurringPayment(d.id,{amount:De})}k&&await Q.updateRecurringPayment(d.id,{nextPaymentDate:k}),"acknowledgementId"in d&&d.acknowledgementId&&await Q.confirmAcknowledgement(d.acknowledgementId);const te=await Q.confirmRecurringPayment(d.id);Fe("payment:onboarding:recurring:enrolled",{amount:w,paymentMethod:((N=d.paymentMethod)==null?void 0:N.paymentMethodType)??null,paymentInterval:d.interval}),V==null||V.track("recurring_enrollment_onboarding_modal",{amount:w,paymentMethod:((G=d.paymentMethod)==null?void 0:G.paymentMethodType)??null,paymentInterval:d.interval}),be({message:m("main.onboarding.modal.step2.successMessage","Recurring payment successfully set up!"),type:"success"}),await u(te.id),s("success"),await x.invalidateQueries({queryKey:["recurringPayments"]})}catch(te){console.error("Error confirming recurring payment:",te)}finally{b(!1)}}},Re=()=>{r(1),p(null),l(!0)},W=(ne=_==null?void 0:_.paymentMethods)==null?void 0:ne.find(N=>N.id===o),T=W!=null&&W.card?`${m([`billing.cardType.${W.card.brand}`,"billing.cardType.default"])} **** ${W.card.last4}`:W!=null&&W.bankAccount?`${W.bankAccount.bankName} **** ${W.bankAccount.last4}`:"",Z=W!=null&&W.card?we:fe;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"space-y-8",children:[e.jsx(Pt,{currentStep:2,totalSteps:2}),e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-12 h-12 rounded-full bg-primary-bg/10 flex items-center justify-center",children:e.jsx(R,{icon:ns,className:"text-xl text-primary"})}),e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("span",{className:"text-base font-semibold text-base-header",children:m("main.onboarding.modal.step2.header")}),e.jsx("span",{className:"text-sm text-base-fg",children:m("main.onboarding.modal.step2.subtitle")})]})]}),e.jsx("div",{className:f("rounded-lg border-2 p-5 transition-all duration-200",i?"border-primary bg-primary-bg/10":"border-base-border bg-white"),children:e.jsxs("div",{className:"flex items-center justify-between",children:[e.jsxs("div",{className:"flex flex-col gap-1",children:[e.jsx("span",{className:"text-base font-semibold text-base-header",children:m("main.onboarding.modal.step2.enableRecurring")}),e.jsx("span",{className:"text-sm text-input-fg",children:m("main.onboarding.modal.step2.enableRecurringSubtitle")})]}),e.jsx(rs,{id:"recurring-enabled",value:i,onChange:l})]})}),!i&&e.jsx("div",{className:"rounded-lg border border-base-border p-5 -mt-6",children:e.jsx("p",{className:"text-base text-input-fg",children:e.jsx(_e,{i18nKey:"main.onboarding.modal.step2.setupLaterMessage",components:{Link:e.jsx(U,{to:"/billing?skipOnboarding=true",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/90"})}})})}),i&&e.jsxs("div",{className:"rounded-lg border border-base-border divide-y divide-base-border",children:[e.jsx("div",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-input-fg",children:m("main.onboarding.modal.step2.paymentMethod")}),e.jsx("span",{className:"text-base text-base-header",children:T})]})}),e.jsx("div",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-input-fg",children:m("main.onboarding.modal.step2.paymentFrequency")}),e.jsx("span",{className:"text-base text-input-fg",children:m("main.onboarding.modal.step2.monthlyOnDueDate")}),Le()]})}),e.jsx("div",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-input-fg",children:m("main.onboarding.modal.step2.paymentAmount")}),e.jsx("span",{className:"text-sm font-semibold text-base-header",children:m("main.onboarding.modal.step2.fullBalanceDue")})]}),e.jsx("span",{className:"text-sm text-input-fg",children:m("main.onboarding.modal.step2.fullBalanceDescription")}),j?e.jsxs("div",{className:"flex flex-col gap-2 mt-2",children:[e.jsx($e,{id:"maximum-amount",label:m("main.onboarding.modal.step2.maximumAmountLabel"),type:"number",placeholder:"$0.00",value:w,onChange:N=>{y(N.target.value),q(void 0)},onWheel:N=>N.currentTarget.blur(),error:C,className:"w-full"}),e.jsx("span",{className:"text-xs text-input-fg",children:m("main.onboarding.modal.step2.maximumAmountHelper")})]}):e.jsx("button",{type:"button",onClick:()=>A(!0),className:"text-sm text-primary hover:underline text-left",children:m("main.onboarding.modal.step2.setMaximumAmount")})]})}),e.jsx("div",{className:"p-5",children:e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("span",{className:"text-sm font-semibold text-input-fg",children:m("main.onboarding.modal.step2.processingFee")}),e.jsx("span",{className:"text-sm font-semibold text-base-header",children:m("main.onboarding.modal.processingFee",{processingFee:Z})}),e.jsx("span",{className:"text-sm text-input-fg",children:m("main.onboarding.modal.processingFeeFrequency")})]})})]}),i&&e.jsxs("div",{className:"space-y-3",children:[e.jsx("p",{className:"text-xs text-input-fg",children:e.jsx(_e,{i18nKey:"main.onboarding.modal.step2.updateNote",components:{Link:e.jsx(U,{to:"/billing/manage-account?skipOnboarding=true",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/90"})}})}),e.jsx("p",{className:"text-xs text-input-fg",children:e.jsx(_e,{i18nKey:"main.onboarding.modal.step2.consent",components:{Link:e.jsx(U,{to:"/billing/payment-consent?skipOnboarding=true",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/90"})}})}),e.jsxs("div",{className:"flex items-center gap-2 text-xs text-input-fg",children:[e.jsx(R,{icon:zs,className:"text-sm"}),e.jsx("span",{children:m("main.onboarding.modal.step2.secureEncrypted")})]})]})]}),e.jsx("div",{className:"border-t border-base-border pt-6 pb-6",children:e.jsxs("div",{className:"flex flex-col-reverse mobile:flex-row mobile:justify-end gap-3",children:[e.jsx("button",{onClick:Re,disabled:h,className:"w-full mobile:w-auto px-4 py-3 rounded-md bg-base-bg text-neutral-fg font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.16)] hover:bg-base-hover transition-colors disabled:opacity-50",children:m("main.onboarding.modal.step2.back")}),e.jsxs("button",{onClick:i?ke:a,disabled:h,className:"w-full mobile:w-auto px-4 py-3 rounded-md bg-primary text-white font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.16)] hover:bg-primary/90 transition-colors disabled:opacity-50 flex items-center justify-center gap-2",children:[h&&e.jsx(ae,{className:"w-4 h-4"}),m(i?"main.onboarding.modal.step2.saveAndConfirm":"main.onboarding.modal.setUpLater")]})]})})]})},hn=({isOpen:n,preventClose:t,onClose:r,confirmedPaymentId:s})=>{const{t:a}=$(),o=We();return e.jsx(Qe,{open:n,onClose:t,className:"!w-[850px] !max-w-none",hideCloseButton:!0,padded:!1,children:e.jsxs("div",{className:"flex flex-col gap-5 p-[41px] -mb-[5px]",children:[e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx("div",{className:"w-14 h-14 roun
1ded-full bg-success/10 flex items-center justify-center",children:e.jsx(R,{icon:Us,className:"text-[27px] text-success"})}),e.jsx("h2",{className:"text-lg font-semibold text-base-header",children:a("main.onboarding.modal.success.title")})]}),e.jsx("div",{className:"bg-base-bg rounded-lg p-4",children:e.jsxs("div",{className:"flex items-center gap-4",children:[e.jsx(R,{icon:Ks,className:"text-base text-base-header"}),e.jsx("p",{className:"text-sm text-neutral-fg leading-[17px]",children:a("main.onboarding.modal.success.confirmationNumber",{number:s})})]})}),e.jsx("p",{className:"text-xs text-input-fg",children:e.jsx(_e,{i18nKey:"main.onboarding.modal.success.manageNote",components:{Link:e.jsx(U,{to:"/billing/manage-account?skipOnboarding=true",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:text-primary/90"})}})}),e.jsx("div",{className:"border-t border-base-border"}),e.jsxs("div",{className:"flex justify-end gap-[22px]",children:[e.jsx("button",{onClick:()=>{r(),o("/billing/account-overview")},className:"px-4 py-3 rounded-md bg-base-bg text-neutral-fg font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.24)] hover:bg-base-hover transition-colors",children:a("main.onboarding.modal.success.viewAccountDetails")}),e.jsx("button",{onClick:r,className:"px-4 py-3 rounded-md bg-primary text-white font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.16)] hover:bg-primary/90 transition-colors",children:a("main.common.close")})]})]})})},fn=({isOpen:n,preventClose:t,onClose:r,onCloseCompletely:s,phoneNumber:a,onSetPhoneNumber:o,onTextRemindersUpdated:i})=>{var D;const{t:l}=$(),d=je(),{user:p}=de(),[g,u]=c.useState(!0),[v,m]=c.useState(!1),x=p==null?void 0:p.relId,h=async()=>{if(!v){m(!0);try{await i(!1),s()}catch(P){console.error("Failed to dismiss onboarding:",P),be({message:"Failed to dismiss. Please try again.",type:"error"})}finally{m(!1)}}},b=H(P=>P.preferences),w=H(P=>P.setPreferences),{data:y}=le({queryKey:["contacts",x],queryFn:()=>Ae.getContacts(x||-1),enabled:n&&!!x}),C=(D=y==null?void 0:y.contacts.slice().reverse().find(P=>P.label==="cell"))==null?void 0:D.phone,{mutateAsync:q}=nt({mutationFn:P=>{if(!x||!b)throw new Error("No homeowner ID or preferences found");const I=b.generalCommunicationPreference==="email"||b.generalCommunicationPreference==="paperAndEmail"||b.billingCommunicationPreference==="email"||b.billingCommunicationPreference==="paperAndEmail"?b.email||(p==null?void 0:p.email)||null:b.email||null;return Ae.updatePreferences(x,{generalCommunicationPreference:b.generalCommunicationPreference,billingCommunicationPreference:b.billingCommunicationPreference,receivePayBillingText:P,hideNameInDirectory:b.hideNameInDirectory,hideEmailInDirectory:b.hideEmailInDirectory,hidePhoneInDirectory:b.hidePhoneInDirectory,hidePropertyInDirectory:b.hidePropertyInDirectory,sendPayConfirmationEmail:b.sendPayConfirmationEmail,email:I,homeownerAddressId:b.mailingAddressId||null,mailRelTypeId:b.mailRelTypeId||"homeownerAddress",electronicSignature:""})},onSuccess:P=>{w(P)},onError:()=>{be({message:"Failed to update text reminder preferences. Please try again.",type:"error"})}}),{mutateAsync:j}=nt({mutationFn:P=>{if(!x)throw new Error("No homeowner ID found");const B={phone:P,label:"cell",isPrimary:!1};return Ae.createContact(x,B)},onSuccess:()=>{d.invalidateQueries({queryKey:["contacts",x]})},onError:()=>{be({message:"Failed to save phone number. Please try again.",type:"error"})}}),A=()=>g?e.jsx("button",{onClick:h,disabled:v,className:"px-4 py-3 rounded-md bg-base-bg text-neutral-fg font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.24)] hover:bg-base-hover transition-colors disabled:opacity-50",children:l("main.onboarding.modal.textReminders.noThanks")}):null,S=a.replace(/\D/g,"").length===10,F=(!g||S)&&!v;return e.jsxs("div",{children:[e.jsx(he,{variant:"text",size:"xs",onClick:h,disabled:v,className:"absolute top-4 right-4 !p-2 text-base-header hover:text-base-fg transition-colors z-10",startIcon:e.jsx(R,{icon:Ws,className:"h-5 w-5"}),"aria-label":l("main.common.close")}),e.jsxs("div",{className:"flex flex-col gap-[25px] mb-5",children:[e.jsxs("div",{className:"flex items-stretch gap-6 w-full",children:[e.jsx("div",{className:"w-14 h-14 roun
1ded-full bg-primary-bg/10 flex items-center justify-center flex-shrink-0",children:e.jsx(R,{icon:ns,className:"text-xl text-primary"})}),e.jsxs("div",{className:"flex flex-col gap-0 flex-1",children:[e.jsx("span",{className:"text-lg font-medium text-base-header",children:l("main.onboarding.modal.textReminders.title")}),e.jsx("span",{className:"text-base text-base-fg",children:l("main.onboarding.modal.textReminders.description")})]})]}),e.jsx("div",{className:f("rounded-[10px] border-[1.5px] p-5 transition-all",g?"bg-primary-bg/10 border-primary":"bg-white border-base-border"),children:e.jsxs("div",{className:"flex items-center justify-between gap-4",children:[e.jsx("span",{className:"text-base font-semibold text-base-header",children:l("main.onboarding.modal.textReminders.enableToggle")}),e.jsx(rs,{id:"text-reminders-toggle",value:g,onChange:u})]})}),g&&e.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsx("label",{className:"text-sm font-medium text-base-header",children:l("main.onboarding.modal.textReminders.phoneLabel")}),e.jsx($e,{type:"tel",value:a,onChange:P=>{const B=P.target.value.replace(/\D/g,"");let I="";B.length<=3?I=B:B.length<=6?I=`(${B.slice(0,3)}) ${B.slice(3)}`:I=`(${B.slice(0,3)}) ${B.slice(3,6)}-${B.slice(6,10)}`,o(I)},placeholder:l("main.onboarding.modal.textReminders.phonePlaceholder"),className:"w-full",maxLength:14}),e.jsx("p",{className:"text-xs text-neutral-fg leading-relaxed",children:l("main.onboarding.modal.textReminders.legalText")})]}),e.jsxs("div",{className:"flex justify-between gap-[22px]",children:[e.jsxs("button",{onClick:r,className:"flex items-center gap-3 px-4 py-3 rounded-md bg-base-bg text-neutral-fg font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.24)] hover:bg-base-hover transition-colors",children:[e.jsx(R,{icon:Gs,className:"text-sm"}),l("main.common.back")]}),e.jsxs("div",{className:"flex gap-[22px]",children:[A(),e.jsx("button",{disabled:!F,onClick:async()=>{if(!v){m(!0);try{const P=[q(g)];if(g&&a){const B=a.replace(/\D/g,""),I=(C==null?void 0:C.replace(/\D/g,""))||"";B!==I&&P.push(j(a))}await Promise.all(P),await i(g),s()}catch(P){console.error("Failed to update onboarding session:",P),be({message:"Failed to save onboarding preferences. Please try again.",type:"error"})}finally{m(!1),Fe("payment:onboarding:text-reminders:updated",{textRemindersEnabled:g})}}},className:f("px-4 py-3 rounded-md font-semibold text-base shadow-[0px_2px_4px_0px_rgba(15,15,35,0.16)] transition-colors",F?"bg-primary text-white hover:bg-primary/90":"bg-base-border text-neutral-fg cursor-not-allowed"),children:v?l("main.common.saving","Saving..."):l("main.onboarding.modal.textReminders.confirm")})]})]})]})]})},Ce=()=>{},Lt=({isOpen:n,onClose:t,sessionId:r,userId:s,paymentOptions:a,nextAccountChargeDate:o})=>{var Z,ne;const{user:i}=de(),l=je(),[d,p]=c.useState(1),[g,u]=c.useState(null),[v,m]=c.useState(),[x,h]=c.useState(),[b,w]=c.useState(),[y,C]=c.useState(null),[q,j]=c.useState(!0),[A,E]=c.useState(!1),[S,k]=c.useState(""),[F,D]=c.useState(void 0),P=c.useRef(!1),B=c.useRef(!1),{data:I,isLoading:Y}=le({queryKey:["paymentMethods"],queryFn:()=>Q.getPaymentMethods(),enabled:n}),_=(Z=I==null?void 0:I.paymentMethods)==null?void 0:Z.filter(N=>!!N.card),z=(ne=I==null?void 0:I.paymentMethods)==null?void 0:ne.filter(N=>!!N.bankAccount),M=i==null?void 0:i.relId,V=H(N=>N.preferences),L=H(N=>N.configuration),K=async N=>(j(!0),w(N),r&&s?await Q.updateOnboardingSession(s,r,{recurringPaymentsEnabled:!0,snooze:!1,snoozeUntil:null,payTextRemindersEnabled:!1}):null),Ne=async N=>{if(r&&s){const G=x||!((L==null?void 0:L.billingTextNotificationsAvailable)??!1)||(V==null?void 0:V.receivePayBillingText)||N;return await Q.updateOnboardingSession(s,r,{recurringPaymentsEnabled:!1,snooze:!0,snoozeUntil:G?new Date(9999,11,28):null,payTextRemindersEnabled:N})}return null},Le=async N=>r&&s?await Q.updateOnboardingSession(s,r,{snoozeUntil:null,snooze:!1,recurringPaymentsEnabled:!1,paymentMethodId:N,payTextRemindersEnabled:!1}):null;async function ue(){if(!(L!=null&&L.billingTextNotificationsAvailable)||V!=null&&V.receivePayBillingText)try{if(r&&s){const N={payTextRemindersEnabled:!1,recurringPaymentsEnabled:!1,snoozeUntil:null,snooze:!0};await Q.updateOnboardingSession(s,r,N)}
1t()}catch(N){console.error("Failed to update onboarding session:",N),be({message:"Failed to save onboarding preferences. Please try again.",type:"error"})}else D("textReminders")}const{data:X}=le({queryKey:["contacts",M],queryFn:()=>Ae.getContacts(M||-1),enabled:n&&!!M}),{data:we}=le({queryKey:["accounts"],queryFn:()=>Q.getSubLedgers({portalEnabled:!0}),enabled:n}),fe=c.useMemo(()=>{var N;return(N=X==null?void 0:X.contacts.slice().reverse().find(G=>G.label==="cell"))==null?void 0:N.phone},[X==null?void 0:X.contacts]);c.useEffect(()=>{if(!n){P.current=!1;return}if(!(P.current||!(I!=null&&I.paymentMethods))){if(_&&_.length>0){const N=_[_.length-1];h(N.id),u("creditCard"),P.current=!0}else if(z&&z.length>0){const N=z[z.length-1];h(N.id),u("eCheck"),P.current=!0}}},[n,I,_,z]),c.useEffect(()=>{fe&&!B.current&&(k(fe),B.current=!0)},[fe]),c.useEffect(()=>{n||(B.current=!1)},[n]);const ke=()=>{m(void 0),h(void 0),u(null),C(null),p(1),D(void 0),w(void 0),k(""),t()},Re=()=>D(void 0),W=async()=>{var Ht,Et;if(!we||we.length===0)return;const N=we[0],G=await l.fetchQuery({queryKey:["paymentMethods"],queryFn:()=>Q.getPaymentMethods()});let te=(Ht=G.paymentMethods)==null?void 0:Ht.find(ge=>ge.id===x);if(!te&&((Et=G.paymentMethods)!=null&&Et.length)&&(te=G.paymentMethods[G.paymentMethods.length-1]),!te){console.error("No payment method found for recurring setup");return}h(te.id);const De=a==null?void 0:a.find(ge=>ge.paymentType===(te.card?"recurringCard":"recurringECheck")&&ge.isRecurring===!0);if(!De){console.error("No recurring payment option found"),t();return}try{E(!0);const ge=await Q.createRecurringPayment({accountNumber:N.accountNumber,ownerId:N.ownerId,subLedgerId:N.subLedgerId,paymentMethodId:te.id,interval:"monthly",anchorDate:o||N.nextChargeDate||as("recurring"),paymentOption:null,amount:0,description:null,notes:"",payFullBalance:!0,paymentType:De.paymentType});C(ge),p(3)}catch(ge){console.error("Error creating recurring payment setup:",ge),t()}finally{E(!1)}},T=()=>Y?e.jsx(rn,{isOpen:n,preventClose:Ce}):F==="success"?e.jsx(hn,{isOpen:n,preventClose:Ce,onClose:t,confirmedPaymentId:b}):F==="textReminders"?e.jsx(fn,{isOpen:n,preventClose:Ce,onClose:Re,onCloseCompletely:t,onSetExpandedSection:u,phoneNumber:S,onSetPhoneNumber:k,onTextRemindersUpdated:Ne}):d===2&&v?e.jsx(ln,{isOpen:n,preventClose:Ce,onClose:t,onCancel:ke,onSetRecurringPaymentSetup:C,onSetIsCreatingRecurring:E,onSetStep:p,onAdvanceToRecurringConfirmation:W,selectedPaymentMethodId:x,recurringEnabled:q,onSetSelectedPaymentMethodId:h}):d===3&&y?e.jsx(pn,{isOpen:n,preventClose:Ce,onSetStep:p,onSetModalToShow:D,onSetUpLaterClick:ue,onRecurringPaymentSetup:K,selectedPaymentMethodId:x,recurringEnabled:q,onSetRecurringEnabled:j,recurringPaymentSetup:y,onSetRecurringPaymentSetup:C,paymentOptions:a,nextAchChargeDate:o}):e.jsx(cn,{isOpen:n,preventClose:Ce,onClose:t,onSetUpLaterClick:ue,onSetStep:p,onSetRecurringPaymentSetup:C,onSetIsCreatingRecurring:E,onSetExpandedSection:u,onAdvanceToRecurringConfirmation:W,expandedSection:g,isCreatingRecurring:A,recurringEnabled:q,onSetSelectedPaymentMethodId:h,paymentOptions:a,onPaymentMethodCreated:Le});return s&&r&&e.jsxs(Qe,{open:n,onClose:Ce,className:f("w-full mobile:!w-[850px] mobile:!max-w-none",d!==3&&"mobile:!max-h-[980px]"),hideCloseButton:!0,padded:!1,children:[e.jsx(on,{}),e.jsx("div",{className:"flex flex-col",children:e.jsx("div",{className:"px-4 pt-4 mobile:px-[41px] mobile:pt-[41px]",children:e.jsx("div",{className:"space-y-8",children:T()})})})]})};function Rt(n){const{isLoggedIn:t}=de(),{updateUserSettings:r}=Va(),{setConfiguration:s}=Ma(),a=H(p=>p.selectedAssociationId),o=n&&t?null:n,i=n||t?void 0:a||void 0,l=le({queryKey:["userSettings",t,o,i],queryFn:()=>Ae.getUserSettings({lastAssociationId:i,lastAssociationCode:o||void 0}),staleTime:1e3*60*5});c.useEffect(()=>{l.data&&r(l.data)},[l.data,r]);const d=le({queryKey:["guestPaymentsConfig",o,a],queryFn:()=>Sa.getConfig(o??void 0,o?void 0:a??void 0),enabled:!t,staleTime:1e3*60*5});return c.useEffect(()=>{d.data&&s(d.data)},[d.data,s]),{userSettings:l.data,isLoading:l.isPending,guestConfig:d.data}}const qt=({isLoading:n=!1}={})=>{var D,P,B,I;const{isLoggedIn:t,user:r,token:s}
1=de(),[a]=Pa(),o=a.get("skipOnboarding")==="true",[i,l]=c.useState(!1),[d,p]=c.useState(!1),[g,u]=c.useState(null),[v,m]=c.useState(!1),x=c.useRef(!1),h=Ze(s).DebugId,b=r==null?void 0:r.userId,w=H(Y=>Y.selectedPropertyId);c.useEffect(()=>{m(w?w>0:!1)},[w]);const y=t&&!d&&!n&&!o&&v,{data:C,isLoading:q}=le({queryKey:["features"],queryFn:()=>Q.getFeatures(),enabled:y&&!h,staleTime:1/0}),{data:j,isError:A,isLoading:E}=le({queryKey:["payUser",b],queryFn:()=>Q.getUser(b||-1,{expand:["Customer.PaymentMethods","PropertyOwners.Ledgers.RecurringPayments"],createCustomerIfMissing:!0},{suppressToast:!0}),enabled:!!(y&&b&&(C!=null&&C.vantacaPay)&&(C!=null&&C.accountSetupModal)),staleTime:1/0,retry:!1}),S=c.useMemo(()=>{var Y,_,z,M;return(M=(z=(_=(Y=j==null?void 0:j.propertyOwners)==null?void 0:Y[0])==null?void 0:_.association)==null?void 0:z.paymentOptions)==null?void 0:M.filter(V=>V.isRecurring===!0&&V.paymentType!=="stripeAutoDraft")},[j==null?void 0:j.propertyOwners]),k=c.useMemo(()=>{var Y;return((Y=j==null?void 0:j.propertyOwners)==null?void 0:Y.filter(_=>_.association.features.vantacaPay===!0))??[]},[j==null?void 0:j.propertyOwners]);return c.useEffect(()=>{(()=>{var V;if(d||x.current||!y||q)return;if(!(C!=null&&C.vantacaPay)||!(C!=null&&C.accountSetupModal)){p(!0);return}if(E)return;if(A||!j||!b){p(!0);return}const _=k.filter(L=>L.association.paymentOptions.some(K=>K.isRecurring&&K.paymentType!=="stripeAutoDraft"))??[];if(_.length!==1){p(!0);return}const z=_[0];if(!z){p(!0);return}if(z.association.features.vantacaPay===!1){p(!0);return}if(z.blockPayments||z.blockLedger){p(!0);return}if((V=z.ledgers)==null?void 0:V.find(L=>{var K;return((K=L.recurringPayments)==null?void 0:K.length)||L.autoDraftStatus==="vantacaPay"||L.autoDraftStatus==="bank"})){p(!0);return}if(j.onboardingSnoozeDate&&new Date(j.onboardingSnoozeDate)>new Date){p(!0);return}x.current=!0,Q.createOnboardingSession(b).then(L=>{u(L.id),l(!0),Fe("payment:onboarding:shown")}).catch(L=>{console.error("[Onboarding] Failed to create onboarding session: ",L)}).finally(()=>{x.current=!1,p(!0)})})()},[C==null?void 0:C.accountSetupModal,C==null?void 0:C.vantacaPay,q,j,A,E,y,b,S,k,d]),{isModalOpen:i,closeModal:()=>{l(!1)},sessionId:g,userId:b,paymentOptions:S,nextAccountChargeDate:(I=(B=(P=(D=j==null?void 0:j.propertyOwners)==null?void 0:D[0])==null?void 0:P.association)==null?void 0:B.autoDraftSettings)==null?void 0:I.nextDraftDate,hasCheckedToShowModal:d}},gn=JSON.parse(`{"Home":{"description":"View your personalized dashboard displaying account balance summary, upcoming payments, recent transactions, quick action widgets for payments and requests, community announcements, and shortcuts to frequently accessed features. The dashboard provides an at-a-glance overview of your HOA account status and community activity.","userAccess":["homeowner","boardMember","public"]},"Dashboard":{"description":"View your personalized dashboard displaying account balance summary, upcoming payments, recent transactions, quick action widgets for payments and requests, community announcements, and shortcuts to frequently accessed features. The dashboard provides an at-a-glance overview of your HOA account status and community activity.","userAccess":["homeowner","boardMember"]},"Payments":{"description":"Comprehensive billing hub to view current account balance, past-due amounts, payment history, upcoming scheduled payments, and enrolled auto-draft settings. Make one-time instant payments via credit/debit card or bank account (ACH/eCheck), set up recurring payment schedules, or enroll in automatic monthly payments. Manage saved payment methods including adding, editing, or removing credit cards and bank accounts. View detailed transaction history with dates, descriptions, amounts, and running balance. Download account statements and payment receipts.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > Payments","subPages":["Account Overview","Account History","Instant Payment","Auto Draft","Manage Account","Payment Consent","Support"]},"Account Overview":{"description":"View detailed breakdown of your current account balance, including principal balance, late fees, interest charges, and any credits or adju
1stments. See recent payment activity across all sub-ledgers, view upcoming payment due dates, check auto-draft enrollment status, and access quick links to make payments or download statements. Displays separate balances for each property if you own multiple units.","userAccess":["homeowner","boardMember"],"navigationPath":"Payments > Account Overview"},"Account History":{"description":"View complete ledger history of all financial transactions on your account including payments received, assessments charged, late fees applied, interest accrued, adjustments, credits, and refunds. Filter by date range (last 30 days, 90 days, 6 months, 1 year, or custom range), search by description, filter by specific account/sub-ledger, sort by date or amount, and download transaction history as PDF or CSV. Each entry shows transaction date, description, amount debited or credited, and running balance.","userAccess":["homeowner","boardMember"],"navigationPath":"Payments > Account History"},"Auto Draft":{"description":"Enroll in or manage automatic monthly payment withdrawals from your bank account or credit/debit card. Select which account/sub-ledger to enroll, choose payment method (saved bank account or card), set payment amount (full balance, fixed amount, or minimum amount), schedule payment date (specific day of month), and review auto-draft terms and conditions. View currently enrolled auto-draft schedules, edit payment details, or unenroll from auto-draft. System automatically processes payments on the scheduled date each month.","userAccess":["homeowner","boardMember"]},"Manage Account":{"description":"Add, edit, or remove saved payment methods including credit cards, debit cards, and bank accounts for ACH/eCheck payments. Set a default payment method, update expiration dates and billing addresses, verify bank account details through micro-deposit verification, and manage payment preferences. Saved payment methods can be used for one-time payments, recurring payment schedules, or auto-draft enrollments.","userAccess":["homeowner","boardMember"]},"Instant Payment":{"description":"Make an immediate one-time payment using a credit card, debit card, or bank account (ACH/eCheck). Select the account to pay, enter payment amount (full balance or partial amount), choose or add a payment method, review payment details and any processing fees, and submit payment for instant processing. Payment is typically reflected in your account within 1-2 business days for card payments or 3-5 business days for bank transfers.","userAccess":["homeowner","boardMember"],"navigationPath":"Payments > Instant Payment"},"Payment Consent":{"description":"Review and accept terms and conditions for electronic payments, auto-draft enrollments, and recurring payment schedules. View payment processing fee schedules, ACH authorization agreement, credit card payment policies, and refund/chargeback procedures. Required before making first payment or enrolling in auto-draft.","userAccess":["homeowner","boardMember"]}
1,"Support":{"description":"Access payment support resources including frequently asked questions about making payments, troubleshooting payment issues, understanding account charges, disputing transactions, and contacting billing support. View payment processing timelines, accepted payment methods, fee schedules, and refund policies.","userAccess":["homeowner","boardMember"]},"Requests":{"description":"View, track, and manage all submitted community requests including general maintenance requests, ARC (Architectural Review Committee) requests, and amenity reservation requests. See request status (pending, in progress, approved, denied, completed), submission date, assigned staff, comments, and attachments. Filter by request type and status. Click on any request to view full details, add comments, upload additional documents, or check status updates.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > Requests"},"Communications":{"description":"View and manage official announcements, newsletters, and communications from your HOA board and management company. Read community updates, policy changes, meeting notices, event announcements, and emergency alerts. Filter by date, category, or importance. Mark messages as read/unread, search message content, and receive email/SMS notifications for urgent communications. Board members can create and send new communications to homeowners via email, SMS, or push notifications, view sent communications, track delivery status, and manage communication templates. Feature must be enabled by management company to appear in navigation.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > Communications"},"New Request":{"description":"Submit new community requests of three types: 1) General Request - report maintenance issues, request repairs, submit complaints, or ask questions (fields: Property, Request Type dropdown, Subject, Detailed Description, Priority, Attachments/Photos). 2) ARC Request - request approval for property modifications like painting, landscaping, fencing, or construction (fields: Property, Work Area/Type of Modification, Subject/Project Title, Detailed Description of Work to be Done, Estimated Start Date, Estimated Completion Date, Contractor Information, Attachments including plans/drawings/photos, Materials/Colors to be Used). 3) Reservation Request - reserve community amenities like clubhouse, pool, tennis courts, or event spaces (fields: Amenity/Facility, Reservation Date, Start Time, End Time, Number of Guests, Purpose/Event Type, Special Requirements, Contact Information). Each request type has specific required and optional fields.","userAccess":["homeowner","boardMember"],"navigationPath":"Requests > New Request"},"Reservations":{"description":"Browse available community amenities and facilities including clubhouses, pools, tennis courts, fitness centers, meeting rooms, and event spaces. View amenity descriptions, photos, available hours, reservation rules, capacity limits, and any associated fees. Check real-time availability calendar showing reserved time slots, select date and time for your reservation, view your upcoming reservations, and cancel or modify existing reservations. See reservation history and any pending approval requests. Each amenity shows specific booking rules like advance notice required, maximum duration, guest policies, and refundable deposits. This feature appears in navigation when using the v3 redesigned layout and when the association has reservable amenities configured.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > Reservations"},"Calendar & Events":{"description":"View community calendar displaying HOA board meetings, community events, social gatherings, amenity reservations, holiday schedules, and facility closures. Filter by event type, view month/week/day views, see event details including location, time, description, and RSVP information. Add events to personal calendar, set reminders, and view past event archives. Public events visible to all visitors; private/detailed events require login. Availability in public navigation depends on management company configuration.","userAccess":["homeowner","boardMember","public"],"navigationPath":"Main Menu > Calendar & Events"},"Directory":{"description":"Access the homeowner directory to find contact information for fellow residents, board members, committee members, and property management staff. Search by name, property address, unit number, or committee role. View homeowner names, property addresses, phone numbers (if shared), and email addresses (if shared). Privacy settings allow homeowners to control what information is visible to other residents. Board members have access to full directory including emergency contacts and detailed owner information.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > Directory"},"Documents":{"description":"Browse, search, download, and upload community documents organized in folder structure. Access governing documents (CC&Rs, Bylaws, Articles of Incorporation), architectural guidelines, meeting minutes, financial reports, budgets, newsletters, forms and applications, vendor contracts, insurance policies, and community maps. Filter by document type, search by filename or content, sort by date or name, and preview documents before downloading. Board members can upload new documents, create folders, set document permissions (public, owners only, board only), and manage document versions. All documents are securely stored and backed up. Public users can only access documents specifically marked as public by the board.","userAccess":["homeowner","boardMember","public"],"navigationPath":"Main Menu > Documents"},"FAQs":{"description":"Browse frequently asked questions organized by category including account management, payments, requests, reservations, ar
1chitectural guidelines, HOA rules and regulations, fees and assessments, meeting schedules, and contact information. Search FAQs by keyword, view detailed answers with links to relevant forms and resources, and submit new questions if answer not found.","userAccess":["homeowner","boardMember","public"],"navigationPath":"Main Menu > FAQs"},"Help":{"description":"Access comprehensive help resources including user guides, video tutorials, troubleshooting articles, system requirements, and contact information for technical support and property management. Get help with login issues, password resets, navigation, making payments, submitting requests, and using portal features. View system announcements about planned maintenance or new features.","userAccess":["homeowner","boardMember","public"],"navigationPath":"Main Menu > Help"},"My Profile":{"description":"Manage your personal profile and account settings across three tabs: 1) Contact Info - update primary phone, mobile phone, alternate phone, email address, mailing address, emergency contacts, and contact preferences. Add or remove phone numbers and email addresses. Verify contact information through confirmation codes. 2) Login Info - change username, update password, enable two-factor authentication, manage security questions, and view login history with dates and IP addresses. 3) Preferences - set notification preferences for emails, SMS texts, and push notifications. Choose which types of alerts to receive (payments, announcements, requests, reminders). Set preferred language, date format, and timezone.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > My Profile","aliases":["Profile Settings"]},"Profile Settings":{"description":"Manage your personal profile and account settings across three tabs: 1) Contact Info - update primary phone, mobile phone, alternate phone, email address, mailing address, emergency contacts, and contact preferences. Add or remove phone numbers and email addresses. Verify contact information through confirmation codes. 2) Login Info - change username, update password, enable two-factor authentication, manage security questions, and view login history with dates and IP addresses. 3) Preferences - set notification preferences for emails, SMS texts, and push notifications. Choose which types of alerts to receive (payments, announcements, requests, reminders). Set preferred language, date format, and timezone.","userAccess":["homeowner","boardMember"]},"Messages":{"description":"View and manage personal messages exchanged with property management, board members, and HOA staff. Send new messages, reply to existing threads, attach documents, mark messages as important, archive old messages, and search message history. Messages are separate from community-wide communications and are private one-on-one or group conversations.","userAccess":["homeowner","boardMember"],"navigationPath":"Main Menu > My > Messages"},"ARCs":{"description":"Board members: Manage Architectural Review Committee (ARC) requests submitted by homeowners seeking approval for property modifications. View pending requests requiring review, see request details including property address, owner information, type of modification, project description, start/end dates, submitted plans and photos, contractor information, and materials/colors. Review submitted documents and drawings, add internal notes and comments, request additional information from homeowner, schedule site inspections, vote to approve or deny requests with conditions, assign requests to specific committee members, track approval workflow through multiple review stages, generate approval letters, and maintain historical archive of all ARC decisions. Filter requests by status (pending review, approved, denied, in progress, completed) and search by property address or owner name. Note: Title may display as association's custom ARC name if configured.","userAccess":["boardMember"],"navigationPath":"Board Actions > ARCs"},"Invoices":{"description":"Board members: Review and process community invoices from vendors, contractors, and service providers. View invoice details including vendor name, invoice number, date, amount, description of services/goods, account codes, payment terms, and attached supp
1orting documents. Approve invoices for payment, flag for review, request additional documentation, split invoices across multiple budget categories, add approval notes, track approval workflow, and export invoice data for accounting system. Filter by status (pending, approved, paid, disputed) and search by vendor or date range.","userAccess":["boardMember"],"navigationPath":"Board Actions > Invoices"},"Work Orders":{"description":"Board members: Track and manage community maintenance work orders including routine maintenance, emergency repairs, vendor services, and capital improvement projects. View work order details including property/location, issue description, priority level (emergency, high, normal, low), assigned vendor/staff, estimated cost, scheduled date, current status, completion date, and attached photos. Create new work orders, assign to vendors or maintenance staff, update status throughout lifecycle (submitted, assigned, in progress, completed, closed), add progress notes and photos, approve completed work, process invoices tied to work orders, and generate work order reports. Filter by status, priority, location, or assigned vendor.","userAccess":["boardMember"],"navigationPath":"Board Actions > Work Orders"},"Collections":{"description":"Board members: Monitor and manage collection activities for past-due homeowner accounts. View delinquent accounts with owner names, property addresses, total amount owed, number of days past due, last payment date, and collection stage (notice sent, attorney referred, lien filed, foreclosure). Track collection correspondence including demand letters, legal notices, and payment arrangements. Record partial payments, apply late fees and interest, set up payment plans, escalate to legal action, place liens on properties, and generate collection reports. View account payment history and notes from collection agency or attorney. Maintain compliance with state collection laws and HOA policies.","userAccess":["boardMember"],"navigationPath":"Board Actions > Collections"},"Inspections":{"description":"Board members: Conduct and manage property inspections for violation detection, routine compliance checks, move-in/move-out inspections, and architectural compliance verification. View scheduled and completed inspections showing property address, inspection date, inspector name, inspection type, findings, photos of violations, and follow-up actions required. Create new inspection schedules, assign inspectors, record inspection results with detailed notes and photos, generate violation notices from inspection findings, track re-inspection dates, and produce inspection reports. Link inspections to violation cases for tracking remediation. Filter by inspection type, date range, or inspector.","userAccess":["boardMember"],"navigationPath":"Board Actions > Inspections"},"Violations":{"description":"Board members: Track and manage property violations and non-compliance issues identified through inspections, complaints, or self-reporting. View violation details including property address, owner information, violation type (landscaping, parking, noise, architectural, pet policy, trash, etc.), description, severity level, date reported, photos, current status (open, warning issued, under review, resolved, escalated), compliance deadline, and history of correspondence. Issue violation notices, set compliance deadlines, track homeowner responses and corrections, schedule re-inspections to verify compliance, escalate to fines or legal action if unresolved, record resolution and closure, and generate violation reports. Maintain violation history for each property. Filter by type, status, or date.","userAccess":["boardMember"],"navigationPath":"Board Actions > Violations"},"More Items":{"description":"Board members: Access additional miscellaneous action items and tasks that don't fit into standard categories including special projects, committee assignments, policy review tasks, vendor evaluations, insurance renewals, document updates, and ad-hoc board requests. View task descriptions, assignees, due dates, priority levels, and completion status. Create new tasks, assign to board or committee members, set deadlines, track progress, and mark complete.","userAccess":["boardMember"],"navigationPath":"Board Actions > More Items"}
1,"Homeowners":{"description":"Board members: View and manage comprehensive homeowner directory with detailed information including owner names, co-owners, property addresses, unit numbers, mailing addresses, phone numbers, email addresses, move-in dates, account status (current, delinquent, closed), ownership type (owner, tenant, corporate), emergency contacts, vehicle information, pet registration, parking passes, architectural approvals, violation history, payment history, and notes. Search by name, address, or account number. Update homeowner information, add notes, view account activity, access linked accounts for multiple properties, and generate homeowner reports. Export directory data for mailings or communications.","userAccess":["boardMember"],"navigationPath":"Board Actions > Homeowners"},"Bank Accounts":{"description":"Board members: Manage HOA bank accounts, view account balances, recent transactions, and reconciliation status. Access operating accounts, reserve accounts, and special assessment accounts. View account statements, set up online banking connections, add or remove signatories, update bank information, and generate financial reports by account. Track transfers between accounts and reconcile monthly statements.","userAccess":["boardMember"],"navigationPath":"Board Actions > Bank Accounts"},"Reports":{"description":"Board members: Generate and view comprehensive financial and operational reports including income statements, balance sheets, budget vs actual comparisons, delinquency reports, aging reports, assessment reports, reserve fund analysis, violation summaries, work order reports, inspection reports, and custom report builder. Select report type, choose date range, apply filters, preview reports, export to PDF/Excel/CSV, schedule automatic report generation, and save report templates. View historical reports and compare periods over time.","userAccess":["boardMember"],"navigationPath":"Board Actions > Reports"},"Board Tasks":{"description":"Board members: View and manage board member assigned tasks and to-do items including meeting preparation, document review, policy approvals, vendor oversight, committee work, homeowner issue resolution, and special projects. See task descriptions, assignments, due dates, priority levels, and completion status. Add new tasks, assign to specific board members, set deadlines and reminders, track progress with status updates, attach related documents, and mark tasks complete with notes.","userAccess":["boardMember"],"navigationPath":"Board Actions > Board Tasks"},"Pay Now":{"description":"Make a guest payment without creating an account or logging in. Enter your account number and property address to look up your balance, then make a one-time payment using credit card, debit card, or bank account. Useful for tenants, property managers, or owners who prefer not to maintain a portal account. Requires account number which can be found on assessment invoices or obtained from property management.","userAccess":["public"],"navigationPath":"Main Menu > Pay Now (public portal)"}}`),xn=JSON.parse(`{"ARCs":{"description":"Architectural Review Committee (ARC) requests submitted by homeowners for approval of property modifications, improvements, or changes including exterior painting, landscaping alterations, fence installation, patio/deck construction, roof replacement, window replacement, solar panel installation, satellite dish placement, structural additions, and other visible property changes. Each request includes detailed project descriptions, planned materials/colors, contractor information, estimated timeline, and supporting documentation such as plans, drawings, and photos.","userAccess":["boardMember"],"navigationPath":"Board Actions > ARCs","accessibleSteps":"Navigate to Board Actions > ARCs to view all submitted ARC requests. Click on a specific request to review homeowner details, property address, modification type, project description, submitted plans and photos, contractor information, and estimated timeline. Review architectural guidelines for compliance, add internal review notes, request additional information from the homeowner, assign to committee members for review, schedule site inspection if needed, vote to approve with or without conditions or deny with explanation, generate approval/denial letter, and track implementation progress through completion.","homeownerGuidance":"Homeowners can submit their own ARC requests by navigating to Requests > New Request and selecting 'ARC Request' type. They can also view the status of their submitted requests at Requests."}
1,"Invoices":{"description":"Vendor and service provider invoices submitted to the HOA for payment approval including recurring services (landscape maintenance, pool service, trash removal), utility bills, repair and maintenance invoices, contractor payments, professional services (legal, accounting, management fees), insurance premiums, supplies and materials, capital improvement project invoices, and miscellaneous expenses. Each invoice requires board review and approval before payment processing.","userAccess":["boardMember"],"navigationPath":"Board Actions > Invoices","accessibleSteps":"Navigate to Board Actions > Invoices to view all pending vendor invoices awaiting approval. Review invoice details including vendor name, invoice number, date, amount, description of goods/services, account codes, supporting documentation, and payment terms. Verify invoice accuracy against purchase orders or contracts, check budget availability in the designated account category, approve for payment processing, flag for additional review, request clarification or additional documentation from vendor, split invoice across multiple budget line items if needed, add approval notes and attach supporting documents, and export approved invoices to accounting system for payment processing."},"Work Orders":{"description":"Maintenance and repair work orders for community common areas, facilities, and infrastructure including emergency repairs (plumbing leaks, electrical issues, security concerns), routine maintenance (HVAC servicing, elevator inspections, landscaping), preventive maintenance schedules, homeowner-reported issues, facility upgrades, vendor-requested service calls, seasonal maintenance tasks, and capital improvement projects. Work orders track the entire lifecycle from submission through completion.","userAccess":["boardMember"],"navigationPath":"Board Actions > Work Orders","accessibleSteps":"Navigate to Board Actions > Work Orders to view and manage all maintenance work orders. Filter by status (new, assigned, in progress, completed, closed), priority level (emergency, high, normal, low), location, or assigned vendor. Create new work orders by specifying location, issue description, priority, and attachments. Assign work orders to vendors or maintenance staff, update status throughout the work lifecycle, add progress notes and photos, set estimated completion dates, track actual costs against estimates, receive notifications of status changes, approve completed work before closure, link work orders to related invoices for payment processing, and generate work order reports showing completion rates, costs, and vendor performance.","homeownerGuidance":"Homeowners can report maintenance issues by navigating to Requests > New Request and selecting 'General Request' type. Work orders created from homeowner requests will appear here for board management."},"Collections":{"description":"Past-due homeowner accounts requiring collection action due to non-payment of assessments, late fees, or special charges. Collection activities include sending payment reminders and demand letters, applying late fees and interest charges, negotiating payment plans, referring accounts to collection agencies, placing liens on properties, initiating foreclosure proceedings, and coordinating with HOA legal counsel. System tracks all collection correspondence, payment arrangements, partial payments, and legal actions.","userAccess":["boardMember"],"navigationPath":"Board Actions > Collections","accessibleSteps":"Navigate to Board Actions > Collections to monitor all delinquent homeowner accounts and collection activities. View accounts sorted by days past due (30, 60, 90+ days), total amount owed, last payment date, and current collection stage. Review account payment history, previous collection notices sent, and correspondence with homeowner. Send automated or custom collection notices via email and postal mail, apply late fees and interest according to HOA policies, document all collection communications and homeowner responses, establish payment plans with automatic payment schedules, escalate to collection agency or HOA attorney when necessary, file liens on properties for severely delinquent accounts, initiate foreclosure proceedings following state laws and HOA bylaws, and generate collection reports for board meetings and financial statements.","homeownerGuidance":"Homeowners can check their account balance and payment history at Payments > Account Overview or make payments at Payments > Instant Payment. For payment arrangements, they should contact property management directly."}
1,"Inspections":{"description":"Scheduled and ad-hoc property inspections conducted to verify compliance with HOA rules, architectural guidelines, and community standards. Inspection types include routine community walk-throughs, move-in/move-out inspections, architectural compliance verification, violation investigation inspections, re-inspections to verify violation corrections, seasonal inspections (pool opening/closing, holiday decoration compliance), and special project inspections. Inspections generate findings with photos and detailed notes.","userAccess":["boardMember"],"navigationPath":"Board Actions > Inspections","accessibleSteps":"Navigate to Board Actions > Inspections to view scheduled inspections and completed inspection reports. Create new inspection schedules by selecting properties or areas, inspection type (routine, complaint-based, compliance, move-in/out), inspector assignment, and scheduled date. Conduct inspections using mobile devices to capture photos and notes on-site. Record detailed findings for each inspection including violation type, description, severity, photos showing non-compliance, and recommended corrective actions. Generate violation notices directly from inspection findings with photos and compliance deadlines. Schedule follow-up re-inspections to verify corrections have been made. Track inspection completion rates, common violation types, and homeowner compliance patterns. Generate inspection reports summarizing community compliance status and trends over time."},"Violations":{"description":"Property violations and non-compliance issues that breach HOA rules, CC&Rs, architectural guidelines, or community standards. Common violations include unapproved exterior modifications, landscaping neglect, parking violations, noise complaints, pet policy violations, trash/recycling violations, rental property issues, commercial activity violations, and maintenance neglect. Each violation case tracks the notice process, homeowner communications, compliance deadlines, re-inspection results, fine assessments, and resolution status.","userAccess":["boardMember"],"navigationPath":"Board Actions > Violations","accessibleSteps":"Navigate to Board Actions > Violations to manage all open and historical violation cases. Filter by violation type (architectural, landscaping, parking, noise, pet, trash, maintenance, rental, etc.), status (open, notice sent, pending correction, resolved, escalated), severity level, and date range. View violation details including property address, owner information, violation description, photos, date reported, correspondence history, compliance deadline, and current status. Issue initial warning notices, send formal violation notices with specific compliance requirements and deadlines, track homeowner responses and correction efforts, schedule re-inspections to verify compliance, assess fines for non-compliance per HOA fine schedule, escalate to legal action if violations persist, record final resolution when corrected, maintain complete violation history for each property, and generate violation statistics reports showing most common violations and repeat offenders.","homeownerGuidance":"Homeowners who receive violation notices will be notified via email and postal mail. They can review HOA rules and architectural guidelines under Documents. To report concerns about other properties, navigate to Requests > New Request."},"More Items":{"description":"Miscellaneous action items and tasks assigned to board members or committees that fall outside standard categories including special committee assignments, policy review and updates, vendor contract renewals, insurance policy reviews, emergency preparedness tasks, community event planning, homeowner dispute mediation, legal consultation follow-ups, audit preparation tasks, annual meeting preparation, election administration, document archival projects, and ad-hoc board initiatives.","userAccess":["boardMember"],"navigationPath":"Board Actions > More Items","accessibleSteps":"Navigate to Board Actions > More Items to access miscellaneous tasks and special assignments. View list of all pending tasks with descriptions, assignees, due dates, and priority levels. Create new tasks by entering task description, assigning to board or committee members, setting due dates and priority, attaching relevant documents, and adding detailed notes. Update task progress with status changes and completion notes. Filter tasks by assignee, due date, priority, or completion status. Link tasks to related board meetings, projects, or initiatives. Set reminders for upcoming deadlines. Archive completed tasks while maintaining searchable history."}
1,"Homeowners":{"description":"Comprehensive homeowner account records and property ownership information including current owners, co-owners, property management companies, tenant occupants, ownership percentages, account standing (current, delinquent, liens, foreclosure), property details (unit number, square footage, parking spaces, storage units), move-in/move-out dates, emergency contact information, authorized occupants, registered vehicles and pets, architectural approval history, violation records, payment history, communication preferences, and account notes.","userAccess":["boardMember"],"navigationPath":"Board Actions > Homeowners","accessibleSteps":"Navigate to Board Actions > Homeowners to access the comprehensive homeowner directory and account management system. Search directory by owner name, property address, unit number, account status, or custom fields. View detailed homeowner profiles showing personal information (names, co-owners, DOB), contact details (phones, emails, mailing address), property information (unit number, ownership percentage, move-in date, property type), account status (current, delinquent, payment plan, lien, foreclosure), emergency contacts, vehicle registrations, pet registrations, authorized occupants, rental status, architectural approval history, violation history, payment history with aging detail, communication logs, and account notes. Update homeowner information, add or modify contact details, record ownership changes, add account notes, flag accounts for special attention, merge duplicate records, export directory data for mass communications, and generate homeowner reports for board meetings or mailings.","homeownerGuidance":"Homeowners can access a limited directory at Directory to find contact information for fellow residents (respecting privacy settings). To update your own contact information, navigate to My Profile > Contact Info."},"Bank Accounts":{"description":"HOA financial accounts and banking relationships including operating accounts for day-to-day expenses, reserve accounts for long-term capital improvements and major repairs, special assessment accounts, petty cash accounts, investment accounts, and money market accounts. Account management includes viewing balances, transaction history, bank statements, online banking credentials, authorized signatories, account reconciliation status, and inter-account transfers.","userAccess":["boardMember"],"navigationPath":"Board Actions > Bank Accounts","accessibleSteps":"Navigate to Board Actions > Bank Accounts to manage all HOA financial accounts and banking relationships. View list of all accounts with current balances, account types (operating, reserve, special assessment, investment), bank names, account numbers (masked), and reconciliation status. Access monthly bank statements, view recent transaction history, monitor account activity for unusual transactions, reconcile accounts against accounting system records, track transfers between accounts, update online banking credentials and access permissions, add or remove authorized signatories following board resolution, set up new accounts or close inactive accounts, link accounts to accounting software, generate account balance reports showing fund allocation across operating/reserve/special accounts, and maintain audit trail of all account changes and authorization updates."},"Reports":{"description":"Comprehensive financial, operational, and administrative reports generated for board review, homeowner transparency, auditor requirements, and regulatory compliance including monthly financial statements (income statement, balance sheet, cash flow), budget vs actual variance reports, aging reports (accounts receivable), delinquency reports, reserve fund analysis, assessment collection reports, vendor spending reports, work order summaries, violation statistics, inspection summaries, meeting attendance records, and custom ad-hoc reports with flexible date ranges and filters.","userAccess":["boardMember"],"navigationPath":"Board Actions > Reports","accessibleSteps":"Navigate to Board Actions > Reports to access the comprehensive reporting system with multiple report categories including Financial Reports (income statement, balance sheet, cash flow, budget vs actual, variance analysis, reserve fund status, assessment collection rates, aged receivables), Operational Reports (work order summary, violation statistics, inspection results, vendor performance, maintenance schedules), Administrative Reports (homeowner directory, board meeting attendance, committee participation, document access logs), and Custom Reports (flexible report builder with date range selection, multiple filter options, custom column selection, and grouping/sorting capabilities). Select report type, choose reporting period (monthly, quarterly, annual, or custom date range), apply filters for specific accounts, properties, or categories, preview report before generating, export to multiple formats (PDF for distribution, Excel for analysis, CSV for import), schedule automated report generation and distribution, save report templates for recurring use, and compare multiple periods side-by-side to identify trends and variances.","homeownerGuidance":"Homeowners can view their personal account statements and payment history at Payments > Account History. Community-wide financial reports may be available under Documents if shared by the board."},"Board Tasks":{"description":"Action items, to-do lists, and assignments for board members including meeting agenda preparation, minutes review and approval, policy document updates, homeowner complaint investigation, vendor performance reviews, budget preparation tasks, annual audit coordination, insurance renewal evaluation, legal document review, community newsletter contributions, ar
1chitectural guideline revisions, emergency response coordination, committee oversight responsibilities, strategic planning initiatives, and board education requirements.","userAccess":["boardMember"],"navigationPath":"Board Actions > Board Tasks","accessibleSteps":"Navigate to Board Actions > Board Tasks to view and manage all action items assigned to board members. See complete task list showing task descriptions, assigned board member, due date, priority (urgent, high, normal, low), related meeting or project, and current status (not started, in progress, completed, deferred). Create new tasks by entering detailed description, assigning to specific board member or committee, setting deadline with reminder notifications, specifying priority level, linking to related board meetings or agenda items, and attaching supporting documents or reference materials. Update tasks throughout lifecycle by changing status, adding progress notes, modifying due dates if needed, attaching completion documentation, and marking complete when finished. Filter tasks by assignee to see individual workload, filter by due date to identify urgent items, filter by meeting to see preparation tasks, and filter by completion status to track overdue items. Generate task reports showing board member workload distribution, completion rates, and overdue tasks for board meeting review."}}`),Je={pageDescriptions:gn,boardActions:xn};function bn(n){const t=[],r=[];return n.forEach(s=>{"children"in s?s.children.forEach(a=>{t.push({name:a.title,purpose:Kt(a.title,a.path),path:a.path,userAccess:Wt(a.title)}),s.title==="Board Actions"&&r.push({id:a.legacyAction||a.path,description:yn(a.title),accessibleSteps:vn(a.title)})}):"path"in s&&t.push({name:s.title,purpose:Kt(s.title,s.path),path:s.path,userAccess:Wt(s.title)})}),{context:"You are assisting users within the Vantaca Home portal, a comprehensive homeowner association (HOA) management platform.",pages:[...t].sort((s,a)=>s.name.localeCompare(a.name)),boardActions:[...r].sort((s,a)=>s.description.localeCompare(a.description))}}function Kt(n,t){var s;return((s=Je.pageDescriptions[n])==null?void 0:s.description)||`Access ${n.toLowerCase()} functionality in the portal`}function Wt(n){var r;return((r=Je.pageDescriptions[n])==null?void 0:r.userAccess)||[]}function yn(n){var r;return((r=Je.boardActions[n])==null?void 0:r.description)||n}function vn(n){var r;return((r=Je.boardActions[n])==null?void 0:r.accessibleSteps)||`Navigate to ${n}`}function wn(n,t,r,s,a,o,i){const l=bn(s);return n?{associationId:(t==null?void 0:t.associationId)||r||null,accountNo:(t==null?void 0:t.accountNumber)||null,homeownerId:(t==null?void 0:t.ownerId)||null,isHomeowner:(i==null?void 0:i.isHomeowner)??null,isBoardMember:(i==null?void 0:i.isBoardMember)??null,instructions:l,userName:a||null,userInitials:o||null}:{associationId:r||null,accountNo:null,homeownerId:null,isHomeowner:null,isBoardMember:null,instructions:l,userName:a||null,userInitials:o||null}}let tt=!1,Oe=null;const Cn=()=>tt?Promise.resolve():(Oe||(Oe=new Promise((n,t)=>{const r=document.querySelector("head"),s=La;if(!r)return t(new Error("Failed to find <head> element"));let a=r.querySelector(`script[src="${s}"]`);if(a){tt=!0,n();return}a=document.createElement("script"),a.src=s,a.defer=!0,r.appendChild(a),a.onerror=()=>{Oe=null,t(new Error("Failed to load HOAi SDK script"))},a.onload=()=>{tt=!0,n()}})),Oe),Ve={isLoggedIn:!1,selectedAssociationId:null,selectedProperty:null};function It({mountEl:n}={}){var w;const t=H(y=>y.user),r=H(y=>y.isLoggedIn),s=H(y=>y.userSettings),a=H(y=>y.selectedPropertyId),o=H(y=>y.selectedAssociationId),i=H(y=>y.properties),l=Ie(y=>y.setIsOpen),{pageOptions:d}=Ye(),[p,g]=c.useState(typeof window<"u"&&!!window.HOAi),u=c.useMemo(()=>t!=null&&t.firstName?`${t.firstName}${t.lastName?" "+t.lastName:""}`:(t==null?void 0:t.userName)||"",[t]),v=c.useMemo(()=>{if(t!=null&&t.firstName)return os(t.firstName,t==null?void 0:t.lastName);if(t!=null&&t.userName)return is(t.userName)},[t]),m=i.find(y=>y.propertyId===a),x=(w=s==null?void 0:s.associations)==null?void 0:w.find(y=>y.id===o),h=(x==null?void 0:x.isBoardMember)===!0&&!(x!=null&&x.isHomeowner),b=!!(s!=null&&s.hoaiAssistantChatEnabled)&&!h;return Ve.isLoggedIn=r,Ve.selectedAssociationId=o,Ve.selectedProperty=m,c.useEffect(()=>{if(b){if(window.HOAi){g(!0);return}Cn().then(()=>g(!0)).catch(y=>console.warn("failed to load HOAi SDK",y))}},[b]),c.useEffect(()=>{var C;return!p||!b||!((C=window.HOAi)!=null&&C.on)?void 0:window.HOAi.on("stateChange",q=>{l(q==="open")})},[p,b,l]),c.useEffect(()=>{if(!p||!b||!window.HOAi||n!==void 0&&!n)return;const C=wn(r,m,o,d,u,v,x),q={userName:u,userInitials:v,...s!=null&&s.hoaiAssistantChatTitleText?{title:s.hoaiAssistantChatTitleText}:{},chatPlaceholder:s==null?void 0:s.hoaiAssistantChatPlaceholderText,sessionContext:C,getSessionToken:function(){const{isLoggedIn:j,selectedProperty:A,selectedAssociationId:E}=Ve;return j&&A?$t.createAuthenticatedChatSession({ownerId:A.ownerId}):$t.createPublicChatSession({associationId:E||null})}};n&&(q.mountTarget=n,q.initialState=Ie.getState().isOpen?"open":"closed",q.hideCollapseControl=!1);try{window.HOAi.init(q)}catch(j){console.error("HOAi SDK init failed",j)}},[p,b,n,u,v,a,d,x]),c.useEffect(()=>()=>{var y,C;try{(C=(y=window.HOAi)==null?void 0:y.destroy)==null||C.call(y)}catch{}},[]),{chatEnabled:b}}const jn=({themeOverride:n,associationCode:t})=>{const r=H(k=>k.token),s=Ze(r),a=Ge(),o=We(),{state:i}=yt(),{isLoggedIn:l}=de(),d=H(k=>k.userSettings===null),p=H(k=>{var F,D,P,B;return((P=(D=(F=k.userSettings)==null?void 0:F.associations)==null?void 0:D.find(I=>I.id===k.selectedAssociationId))==null?void 0:P.companyName)??((B=k.userSettings)==null?void 0:B.companyName)}),g=H(k=>{var F;return(F=k.user)==null?void 0:F.email}),[u,v]=c.useState(!1),[m,x]=c.useState(),[h,b]=c.useState(!1),[w,y]=ut("navOpen",window.innerWidth>pe);c.useEffect(()=>{t&&l&&o(`/logout?c=${t}`)},[t,l,o]),Rt(t),kt(),At(n),It();
1const{isModalOpen:C,closeModal:q,sessionId:j,userId:A,paymentOptions:E,nextAccountChargeDate:S}=qt({isLoading:d});return e.jsxs("div",{"data-full":a.full?"true":"false",className:"group flex text-base-fg",children:[(s==null?void 0:s.DebugId)&&e.jsx(Nn,{}),String((s==null?void 0:s.ShouldResetPassword)??"").toLowerCase()==="true"&&g&&vt&&e.jsx(Mt,{email:g}),A&&e.jsx(Lt,{isOpen:C,onClose:q,sessionId:j,userId:A,paymentOptions:E,nextAccountChargeDate:S??void 0}),e.jsx("div",{className:"top-0 h-screen absolute xl:relative z-10 pointer-events-none",children:e.jsx(sn,{className:"pointer-events-auto",open:w,onClose:y,onViewUpdate:b})}),e.jsx("div",{className:f(h&&"contrast-50 pointer-events-none overflow-hidden max-h-screen","flex flex-col flex-1 bg-base-bg transition-all ease-in-out duration-300 min-h-screen max-w-[100vw]"),children:e.jsxs("div",{className:'flex flex-col h-full group-data-[full="false"]:md:pt-4 group-data-[full="false"]:md:px-horizontal-layout group-data-[full="false"]:px-horizontal-layout-sm',children:[e.jsx(ks,{title:m||(a==null?void 0:a.title),showPropertySelector:u||(a==null?void 0:a.showPropertySelector)||!1,breadCrumbs:a==null?void 0:a.breadCrumbs,propertiesLoading:d,className:'w-full max-w-[1500px] mx-auto group-data-[full="true"]:xl:hidden',onCloseNav:y}),e.jsx("div",{className:"grow flex justify-center items-center self-stretch",children:e.jsx("div",{className:f('bg-base-bg group-data-[full="false"]:mt-4 rounded-xl w-full max-w-[1500px] h-full'),children:e.jsx(jt,{FallbackComponent:kn,children:d?e.jsx("div",{className:"w-full h-full py-16 flex items-center justify-center",children:e.jsx(ae,{})}):e.jsx(c.Suspense,{fallback:e.jsx("div",{className:"w-full h-full py-16 flex items-center justify-center",children:e.jsx(ae,{})}),children:e.jsx(wt,{context:{setDropdown:v,setPageTitle:x}})})})})}),!a.full&&e.jsx("div",{className:"py-4 flex items-end max-w-[1500px] self-center w-full",children:e.jsx(St,{company:p??""})})]})}),e.jsx(pt,{position:"bottom-center"}),i==="loading"&&e.jsx("div",{className:"absolute inset-0 bg-base-bg opacity-50 z-50 flex items-center justify-center",children:e.jsx(ae,{})}),e.jsx(Ct,{})]})},Nn=()=>{const{t:n}=$();return e.jsxs("div",{className:"fixed top-2 left-1/2 transform -translate-x-1/2 z-50 bg-gray-800/80 text-base-bg px-4 py-2 rounded-md shadow-md flex items-center gap-2",children:[e.jsx(R,{icon:ht}),e.jsx("span",{className:"text-sm text-nowrap",children:n("main.pageTop.mimicMode")})]})};function kn({error:n,resetErrorBoundary:t}){return/^Failed to fetch dynamically imported module:/.test(n.message)?e.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"New version available"}),e.jsx("p",{className:"text-base-fg",children:"Please refresh the page to load the latest version"}),e.jsx(he,{variant:"primaryLink",onClick:()=>window.location.reload(),className:"mt-8 w-full",children:"Refresh"})]})}):(console.error(n),e.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Something went wrong"}),e.jsx("p",{className:"text-base-fg",children:"Please try again or contact support"}),e.jsx(he,{variant:"primaryLink",onClick:t,className:"mt-8 w-full",children:"Try again"})]})}))}const An=()=>{const{t:n}=$(),t=je(),r=Ra(),s=(r==null?void 0:r.id)||0,[a,o]=c.useState(-1),{startDate:i,endDate:l}=c.useMemo(()=>{const x=new Date;x.setDate(x.getDate()+7);const h=new Date;return h.setDate(h.getDate()-365),{startDate:h,endDate:x}},[]),{data:d}=_a({associationId:s}),p=!!(qa&&(r!=null&&r.isHomeowner)&&(d!=null&&d.boardCommunicationsEnabled)),{data:g=[],isLoading:u}=$a({associationId:s,startDate:i,endDate:l,enabled:p}),v=c.useMemo(()=>g.filter(({inSiteAnnouncement:x})=>x&&!x.cleared),[g]),m=async x=>{if(s){o(x);try{await Ia.clearMessages({messageIds:[x]}),t.invalidateQueries({queryKey:za.getAll(s,i,l)})}catch(h){console.error(h)}finally{o(-1)}}};return!p||u||v.length===0?null:e.jsx("div",{className:"sticky top-0 z-10",children:e.jsx("div",{className:"max-h-[110px] overflow-y-auto divide-y divide-base-border",children:v.map(({id:x,inSiteAnnouncement:h})=>e.jsx(Ys,{className:"rounded-none py-2",iconSize:"small",children:e.jsxs("div",{className:"flex flex-1 items-center justify-between text-sm",children:[e.jsx("span",{children:h==null?void 0:h.message}),e.jsx("button",{className:"leading-[0]",onClick:()=>m(x),"aria-label":n("board.communications.clearCommunication",{message:h==null?void 0:h.message}),children:a===x?e.jsx(ae,{className:"h-5 w-5"}):e.jsx(R,{icon:Js,className:"h-3 w-3 pr-1.5 text-base-icon"})})]})},x))})})},Mn=-9,Sn=-46,Pn=()=>{const n=Nt(),{t}=$(),{isLoggedIn:r}=de(),s=H(({user:g})=>g),a=H(({userSettings:g})=>g),o=H(({selectedAssociationId:g})=>g),i=c.useMemo(()=>s!=null&&s.firstName?`${s.firstName}${s.lastName?" "+s.lastName:""}`:(s==null?void 0:s.userName)||"",[s]),l=c.useMemo(()=>
1{if(s!=null&&s.firstName)return os(s.firstName,s==null?void 0:s.lastName);if(s!=null&&s.userName)return is(s.userName)},[s]),{isMyProfileLinkEnabled:d,isHelpLinkEnabled:p}=c.useMemo(()=>{var v;const g=(v=a==null?void 0:a.associations)==null?void 0:v.find(m=>m.id===o),u=(g==null?void 0:g.pages)||(a==null?void 0:a.pages)||[];return{isMyProfileLinkEnabled:u.some(({pageId:m})=>m===Mn),isHelpLinkEnabled:u.some(({pageId:m})=>m===Sn)}},[o,a==null?void 0:a.associations,a==null?void 0:a.pages]);return e.jsx("div",{className:"shadow-[0_2px_8px_0_rgba(0,0,0,0.12)] z-20 h-[88px]",children:e.jsxs("div",{className:"flex gap-3 justify-between items-center w-full py-3 px-6",children:[n?e.jsx(U,{to:"/dashboard",children:e.jsx("img",{src:n,className:"max-h-[64px] w-auto",alt:"logo"})}):e.jsx("div",{className:"w-[160px] h-16 max-mobile:hidden"}),r&&e.jsx(Xs,{as:"div",className:"relative",children:({open:g,close:u})=>e.jsxs(e.Fragment,{children:[e.jsx(ea,{"data-qa":"profile-menu-button",children:e.jsxs("div",{className:"flex gap-3 items-center",children:[e.jsx("div",{className:"rounded-full bg-gray-200 w-10 h-10 flex justify-center items-center",children:l?e.jsx("span",{className:"text-lg",children:l}):e.jsx(R,{icon:ta})}),e.jsx("h1",{"data-qa":"profile-name",className:"text-lg font-medium",children:i}),e.jsx("span",{className:"flex items-center",children:e.jsx(R,{icon:sa,className:f(g&&"rotate-180","h-5 w-5 transition-transform")})})]})}),e.jsx(ft,{as:c.Fragment,enter:"transition ease-out duration-100",enterFrom:"transform opacity-0 scale-95",enterTo:"transform opacity-100 scale-100",leave:"transition ease-in duration-75",leaveFrom:"transform opacity-100 scale-100",leaveTo:"transform opacity-0 scale-95",children:e.jsx(aa,{className:"absolute w-[200px] right-0 z-20 rounded-md bg-widget-bg mt-2 text-base border shadow-lg focus:outline-none",children:e.jsxs("div",{className:"flex flex-col gap-2 px-2 py-3",children:[d&&e.jsx(st,{to:"/my/profile-settings",icon:na,onClick:u,dataQa:"my-profile-menu-item",children:t("main.header.links.myProfile")}),p&&e.jsx(st,{to:"/community/help",icon:ra,onClick:u,dataQa:"help-menu-item",children:t("main.header.links.help")}),e.jsx(st,{to:"/logout",icon:ss,onClick:u,dataQa:"logout-menu-item",children:t("main.header.links.logOut")})]})})})]})})]})})},st=({to:n,icon:t,children:r,onClick:s,dataQa:a})=>e.jsx(oa,{children:e.jsxs(U,{to:n,className:"flex items-center gap-4 p-2 transition-all duration-200 rounded-lg group hover:bg-base-hover",onClick:s,"data-qa":a,children:[e.jsx(R,{icon:t,className:"w-5 h-5"}),r]})});function Ms(n){return n.hasFaqs?"after-faqs":n.hasBoardActions?"before-board-actions":n.hasMyProfile?"before-my-profile":n.hasLogout?"before-logout":"end-of-nav"}const Ln=[ms,us,qe,ze,ps,gt,hs,fs,gs,xt,xs,bs,ys,bt],Rn=({className:n,open:t,onClose:r,onViewUpdate:s})=>{const{t:a}=$(),o=ve(),{width:i}=mt(),{pageOptions:l}=Ye(),d=Ms({hasFaqs:l.some(v=>v.title==="FAQs"),hasBoardActions:l.some(v=>v.title==="Board Actions"),hasMyProfile:!1,hasLogout:!1}),p=i<=pe;c.useEffect(()=>{p&&t&&s(!0),!p&&t&&s(!1)},[i,t,s,p]);const g=()=>{r(!t),s(!!(p&&!t))},u=p?g:void 0;return p?e.jsx(ls,{isOpen:t,onClose:g,direction:"left",dataQa:"mobile-sidebar",children:e.jsxs("aside",{className:"bg-base-fill border-r border-base-border h-full flex flex-col","aria-label":"Sidebar",children:[e.jsxs("button",{className:"absolute top-2.5 right-2 inline-flex items-center text-sm p-1.5 w-6 h-6",onClick:g,children:[e.jsx("span",{className:"sr-only",children:a("main.sideBar.screenReader.openSidebar")}),e.jsx(R,{icon:ds})]}),e.jsx("div",{className:"flex h-1 flex-col grow overflow-y-scroll no-scrollbar",children:e.jsx("div",{className:"py-8 px-4",children:e.jsx(Gt,{sidebarData:l,isSidebarCollapsed:!1,location:o,onToggleSidebar:u,hoaiPlacement:d})})})]})}):e.jsx("div",{className:f(!t&&"hidden xl:w-12 xl:block","transition-all duration-300 ease-in-out","xl:relative",n),children:e.jsxs("aside",{className:f(!t&&"xl:justify-start xl:w-12 -translate-x-full","justify-start w-60","bg-base-fill top-0 left-0 h-full flex flex-col transition-all duration-300 xl:translate-x-0"),id:"Sidebar","aria-label":"Sidebar",children:[e.jsxs("button",{type:"button",className:f(t?"absolute top-2.5 -right-4 inline-flex items-center":"hidden xl:block xl:px-3 xl:py-4","text-sm p-1.5"),onClick:g,children:[e.jsx("div",{className:"w-6 h-6 rounded-full border border-base-border flex justify-center items-center bg-base-fill",children:e.jsx(R,{icon:cs,size:"1x",className:f(!t&&"-rotate-180","transition-all text-base-icon")})}),e.jsx("span",{className:"sr-only",children:a("main.sideBar.screenReader.openSidebar")})]}),e.jsx("div",{className:"flex h-1 flex-col grow overflow-y-scroll no-scrollbar",children:e.jsx("div",{className:f("px-4",!t&&"xl:px-1.5 py-4",t&&"py-8"),children:e.jsx(Gt,{sidebarData:l,isSidebarCollapsed:!t,location:o,onToggleSidebar:u,hoaiPlacement:d})})})]})})};function Gt({sidebarData:n,isSidebarCollapsed:t,location:r,onToggleSidebar:s,hoaiPlacement:a}){return e.jsxs("ul",{className:"font-normal space-y-3 text-sm",children:[n.map((o,i)=>{const l=Ln.find(({iconName:d})=>d===o.icon);return e.jsxs(c.Fragment,{children:[a==="before-board-actions"&&o.title==="Board Actions"&&e.jsx(ce,{condensed:t}),o.title==="Board Actions"&&e.jsx("li",{className:"bg-base-border h-[1px]"}),e.jsx("li",{children:"children"in o?e.jsx(qn,{option:o,isSidebarCollapsed:t,icon:l,location:r,onLinkClick:s}):e.jsxs(U,{onClick:s,to:o.path??"#",className:f("border-l-4 border-base-fill hover:border-base-active/10",(ye(r.pathname,o.path)||me(r.pathname,o.childPaths))&&"bg-base-active/10 border-base-active","flex items-center w-full p-2 text-base-header transition-all duration-300 group hover:bg-base-active/10"),children:[l&&e.jsx(R,{className:f("text-base-icon"),icon:l}),e.jsx("span",{className:f(t&&"opacity-0 h-4 line-clamp-1","ml-3 text-base-header transition-all ease-in-out duration-300"),children:o.title})]})}),a==="after-faqs"&&o.title==="FAQs"&&e.jsx(ce,{condensed:t})]},`${i}-${o.id}`)}),a==="end-of-nav"&&e.jsx(ce,{condensed:t})]})}function qn({option:n,isSidebarCollapsed:t,icon:r,location:s,onLinkClick:a}){const o=me(s.pathname,n.childPaths);return e.jsx(vs,{children:({open:i})=>{var l;return e.jsxs("div",{className:"w-full",children:[e.jsxs(ws,{className:f("border-l-4 border-base-fill hover:border-base-active/10",o&&"bg-base-active/10 border-base-active","flex items-center w-full p-2 text-base-header transition-all duration-300 group hover:bg-base-active/10"),children:[r&&e.jsx(R,{icon:r,className:"text-base-icon"}),e.jsxs("div",{className:f(t&&"tablet:hidden ","flex w-full"),children:[e.jsx("span",{className:f("flex-1 ml-3 text-left whitespace-nowrap"),children:n.title}),e.jsx("svg",{className:f(i&&"-rotate-180 ","w-6 h-6 flex-end transition-all"),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]}),e.jsx(ft,{enter:"transition-all duration-300 ease-out",enterFrom:"opacity-0 max-h-0 overflow-hidden",enterTo:"opacity-100 max-h-96 overflow-visible",leave:"transition-all duration-200 ease-in",leaveFrom:"opacity-100 max-h-96 overflow-visible",leaveTo:"opacity-0 max-h-0 overflow-hidden",children:e.jsx(Cs,{className:f(t&&"tablet:hidden"),children:e.jsx("ul",{className:"py-2 space-y-2",children:(l=n.children)==null?void 0:l.map(d=>e.jsx("li",{children:e.jsx(U,{onClick:a,to:d.path,className:f("ml-6 flex items-center p-2 text-gray-900 transition-all duration-300 pl-6 group hover:bg-base-active/10",ye(s.pathname,d.path)&&"bg-base-active/10"),children:e.jsx("span",{className:"text-base-header",children:d.title})})},d.id))})})})]})}})}const In=({themeOverride:n,associationCode:t})=>{const r=H(k=>k.token),s=Ze(r),a=Ge(),o=We(),{state:i}=yt(),{isLoggedIn:l}=de(),d=H(k=>k.userSettings===null),p=H(k=>{var F,D,P,B;return((P=(D=(F=k.userSettings)==null?void 0:F.associations)==null?void 0:D.find(I=>I.id===k.selectedAssociationId))==null?void 0:P.companyName)??((B=k.userSettings)==null?void 0:B.companyName)}),g=H(k=>{var F;return(F=k.user)==null?void 0:F.email}),[u,v]=c.useState(!1),[m,x]=c.useState(),[h,b]=c.useState(!1),[w,y]=ut("navOpen",window.innerWidth>Ns);c.useEffect(()=>{t&&l&&o(`/logout?c=${t}`)},[t,l,o]),Rt(t),kt(),At(n),It();
1const{isModalOpen:C,closeModal:q,sessionId:j,userId:A,paymentOptions:E,nextAccountChargeDate:S}=qt({isLoading:d});return e.jsxs(e.Fragment,{children:[e.jsx(Pn,{}),e.jsxs("div",{"data-full":a!=null&&a.full?"true":"false",className:"group flex text-base-fg w-full max-w-screen",children:[(s==null?void 0:s.DebugId)&&e.jsx(Hn,{}),String((s==null?void 0:s.ShouldResetPassword)??"").toLowerCase()==="true"&&g&&vt&&e.jsx(Mt,{email:g}),A&&e.jsx(Lt,{isOpen:C,onClose:q,sessionId:j,userId:A,paymentOptions:E,nextAccountChargeDate:S??void 0}),e.jsx(Rn,{className:"pointer-events-auto",open:w,onClose:y,onViewUpdate:b}),e.jsxs("div",{className:f(h&&"contrast-50 pointer-events-none","flex flex-col flex-1 bg-base-bg transition-all ease-in-out duration-300 min-h-[calc(100vh-88px)] min-w-0"),children:[e.jsx(An,{}),e.jsxs("div",{className:'flex flex-col h-full min-w-0 group-data-[full="false"]:md:pt-4 group-data-[full="false"]:md:px-horizontal-layout group-data-[full="false"]:px-horizontal-layout-sm',children:[e.jsx(ks,{title:m||(a==null?void 0:a.title),showPropertySelector:u||(a==null?void 0:a.showPropertySelector)||!1,breadCrumbs:a==null?void 0:a.breadCrumbs,propertiesLoading:d,className:'w-full max-w-[1280px] mx-auto group-data-[full="true"]:xl:hidden',onCloseNav:y}),e.jsx("div",{className:"grow flex justify-center items-center self-stretch min-w-0",children:e.jsx("div",{className:f('bg-base-bg group-data-[full="false"]:mt-4 rounded-xl w-full max-w-[1280px] h-full min-w-0 text-base-header'),children:e.jsx(jt,{FallbackComponent:En,children:d?e.jsx("div",{className:"w-full h-full py-16 flex items-center justify-center",children:e.jsx(ae,{})}):e.jsx(c.Suspense,{fallback:e.jsx("div",{className:"w-full h-full py-16 flex items-center justify-center",children:e.jsx(ae,{})}),children:e.jsx(As,{children:e.jsx(wt,{context:{setDropdown:v,setPageTitle:x}})})})})})}),!(a!=null&&a.full)&&e.jsx("div",{className:"py-4 flex items-end max-w-[1280px] self-center w-full",children:e.jsx(St,{company:p??""})})]})]}),e.jsx(pt,{position:"bottom-center"}),i==="loading"&&e.jsx("div",{className:"absolute inset-0 bg-base-bg opacity-50 z-50 flex items-center justify-center",children:e.jsx(ae,{})}),e.jsx(Ct,{})]})]})},Hn=()=>{const{t:n}=$();return e.jsxs("div",{className:"fixed top-2 left-1/2 transform -translate-x-1/2 z-50 bg-gray-800/80 text-base-bg px-4 py-2 rounded-md shadow-md flex items-center gap-2",children:[e.jsx(R,{icon:ht}),e.jsx("span",{className:"text-sm text-nowrap",children:n("main.pageTop.mimicMode")})]})};function En({error:n,resetErrorBoundary:t}){return/^Failed to fetch dynamically imported module:/.test(n.message)?e.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"New version available"}),e.jsx("p",{className:"text-base-fg",children:"Please refresh the page to load the latest version"}),e.jsx(he,{variant:"primaryLink",onClick:()=>window.location.reload(),className:"mt-8 w-full",children:"Refresh"})]})}):(console.error(n),e.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Something went wrong"}),e.jsx("p",{className:"text-base-fg",children:"Please try again or contact support"}),e.jsx(he,{variant:"primaryLink",onClick:t,className:"mt-8 w-full",children:"Try again"})]})}))}function Bn({title:n,showPropertySelector:t=!1,breadCrumbs:r=[],propertiesLoading:s=!1,className:a,onCloseNav:o,forceShowMenuButton:i=!1}){const l=Ue(),{t:d}=$(),{embedded:p}=Ha(),g=ve(),u=H(S=>S.properties),v=Ge(),m=v==null?void 0:v.customContentId,x=H(S=>S.selectedAssociationId),h=H(S=>S.userSettings),b=H(S=>S.user),[w,y]=c.useState(),C=c.useMemo(()=>{const S=g.pathname;return S==="/dashboard"||S==="/embed/dashboard"},[g.pathname]),q=c.useMemo(()=>b!=null&&b.firstName?`${b.firstName}${b.lastName?" "+b.lastName:""}`:(b==null?void 0:b.userName)||"Neighbor",[b]),j=C?"Dashboard":n,A=C?`Welcome to your community, ${q}
1`:v==null?void 0:v.subtitle;c.useEffect(()=>{var k,F;if(!x||!m)return;const S=(k=h==null?void 0:h.associations)==null?void 0:k.find(D=>D.id===x);if(S){const D=S.pages.find(P=>P.legacyAction===m[0]&&P.legacyController===m[1]);y(((F=D==null?void 0:D.content)==null?void 0:F.body)??void 0)}return()=>y(void 0)},[h,x,m]);const E=t;return e.jsxs("div",{className:a,children:[e.jsxs("div",{className:"pt-3 flex gap-2 w-full max-sm:flex-col",children:[!p&&e.jsxs("button",{type:"button",className:f("self-start flex items-center p-2 text-base text-base-icon rounded-lg hover:bg-base-icon/20 focus:outline-none focus:ring-2 focus:ring-base-icon",!i&&"xl:hidden"),onClick:()=>o==null?void 0:o(!0),"aria-controls":"Sidebar",children:[e.jsx("span",{className:"sr-only",children:d("main.sideBar.screenReader.openSidebar")}),e.jsx(R,{icon:ia,className:"w-6 h-6"})]}),e.jsxs("div",{className:"grow",children:[r.length>0&&e.jsx("div",{className:"flex justify-end md:justify-start md:pt-2",children:e.jsxs("p",{className:"flex items-center w-auto mb-2 text-base-link",children:[e.jsx(R,{className:"mr-3",icon:ts}),r.map(S=>e.jsx(U,{to:S.path,children:S.display},S.id))]})}),e.jsxs("div",{className:f("md:flex w-auto justify-between items-start pt-1 xl:items-center","max-lg:[body.hoai-compact_&]:flex max-lg:[body.hoai-compact_&]:flex-col max-lg:[body.hoai-compact_&]:items-stretch max-lg:[body.hoai-compact_&]:gap-3"),children:[j?e.jsxs("div",{className:"flex flex-col",children:[e.jsx("h1",{"data-qa":"content-header__title",className:"sm:ml-10 font-semibold text-[28px] text-base-header text-left md:ml-0 leading-normal",children:j}),A&&e.jsx("p",{"data-qa":"content-header__subtitle",className:"sm:ml-10 font-normal text-base text-base-header opacity-70 text-left md:ml-0 leading-normal",children:A})]}):e.jsx("div",{}),E&&e.jsx("div",{className:"flex justify-end pt-4 md:pt-0 max-lg:[body.hoai-compact_&]:justify-start max-lg:[body.hoai-compact_&]:
1pt-0",children:s?e.jsx(Fa,{}):u&&u.length>0?e.jsx(Da,{}):null})]})]})]}),w&&e.jsx("div",{className:f("bg-base-fill rounded-md shadow-md p-4 my-4",!l&&"bg-transparent shadow-none"),children:e.jsx(Qa,{content:w})})]})}function Tn(){const n=H(o=>o.accounts),t=Array.from(new Set((n??[]).map(o=>o.associationId).filter(o=>typeof o=="number"))),r=Ya({queries:t.map(o=>({queryKey:["paymentProviders",o],queryFn:async()=>{const i=await Q.getPaymentProviders({associationId:o});return Array.isArray(i)?i:[i]}}))}),s=r.some(o=>o.isLoading);return{hasVantacaPay:r.some(o=>(o.data??[]).some(i=>(i==null?void 0:i.type)==="internal")),isLoading:s}}function Ss(n){return!n||n==="#"?"unknown":n.replace(/^\//,"").replace(/\//g,"-")}const Fn=[la,ms,us,qe,ze,ps,da,gt,hs,fs,gs,xt,xs,bs,ys,ma,ua,pa,bt],Dn=({className:n,open:t,onClose:r,onViewUpdate:s,forceOverlay:a=!1})=>{const{t:o}=$(),i=ve(),{width:l}=mt(),{pageOptions:d}=Ye(),p=Nt(),g=H(A=>A.userSettings!==null),u=Ka(),{hasVantacaPay:v,isLoading:m}=Tn(),x=Ms({hasFaqs:d.some(A=>A.title==="FAQs"),hasBoardActions:d.some(A=>A.title==="Board Actions"),hasMyProfile:!u,hasLogout:!0}),h=a||l<=pe,[b,w]=c.useState(!1),[y,C]=c.useState(!1);c.useEffect(()=>{s(h&&t)},[l,t,s,h]);const q=()=>{r(!t),s(!!(h&&!t))},j=h?q:void 0;return h?e.jsx(ls,{isOpen:t,onClose:q,direction:"left",dataQa:"mobile-sidebar",children:e.jsxs("aside",{className:"bg-base-fill h-full flex flex-col",style:{borderRight:"1px solid #D9ECF8"},"aria-label":"Sidebar",children:[e.jsxs("button",{className:"absolute top-2.5 right-2 inline-flex items-center text-sm p-1.5 w-6 h-6",onClick:q,children:[e.jsx("span",{className:"sr-only",children:o("main.sideBar.screenReader.openSidebar")}),e.jsx(R,{icon:ds})]}),p&&e.jsx("div",{className:"px-4 pt-6 pb-4 border-b border-base-border",children:e.jsx(U,{to:"/dashboard",className:"sidebar-link sidebar-link-dashboard",children:e.jsx("img",{src:p,className:"max-h-[64px] w-auto",alt:"logo"})})}),e.jsx("div",{className:"flex h-1 flex-col grow overflow-y-scroll no-scrollbar",children:g?e.jsxs("div",{className:"py-8 px-4",children:[e.jsx(Yt,{sidebarData:d,isSidebarCollapsed:!1,location:i,onToggleSidebar:j,hoaiPlacement:x}),e.jsxs("ul",{className:"font-normal border-t pt-3 border-base-border text-sm list-none pl-0 m-0 space-y-3",children:[x==="before-my-profile"&&e.jsx(ce,{condensed:!1}),!u&&e.jsx("li",{children:e.jsx(Jt,{isSidebarCollapsed:!1,onToggleSidebar:j})}),x==="before-logout"&&e.jsx(ce,{condensed:!1}),e.jsx("li",{children:e.jsx(Xt,{isSidebarCollapsed:!1,onToggleSidebar:j})})]})]}):null})]})}):e.jsx("div",{className:f(!t&&"hidden xl:w-12 xl:block","V3-sidebar transition-all duration-300 ease-in-out","xl:relative",n),children:e.jsxs("aside",{className:f(!t&&"xl:justify-start xl:w-12 -translate-x-full","justify-start items-center w-[285px]","bg-base-fill top-0 left-0 flex flex-col h-screen overflow-y-auto overscroll-contain no-scrollbar transition-all duration-300 xl:translate-x-0"),style:{borderRight:"1px solid #D9ECF8"},id:"Sidebar","aria-label":"Sidebar",children:[e.jsxs("button",{type:"button",className:f(t?"absolute top-2.5 -right-4 inline-flex items-center":"hidden xl:flex xl:justify-center xl:w-full xl:px-2 xl:py-2","text-sm p-1.5"),onClick:q,children:[e.jsx("div",{className:"w-6 h-6 rounded-full border border-base-border flex justify-center items-center bg-base-fill",children:e.jsx(R,{icon:cs,size:"1x",className:f(!t&&"-rotate-180","transition-all text-base-icon")})}),e.jsx("span",{className:"sr-only",children:o("main.sideBar.screenReader.openSidebar")})]}),p&&e.jsx("div",{className:f("px-4 pt-10 pb-10",!t&&"xl:flex xl:justify-center xl:px-2 xl:pt-2 xl:pb-2"),children:e.jsx(U,{to:"/dashboard",className:f("sidebar-link sidebar-link-dashboard",!t&&"xl:flex xl:justify-center"),children:e.jsx("img",{src:p,className:"max-h-[85px] w-auto",alt:"logo"})})}),g&&!u&&e.jsx("div",{className:f("px-4 pb-2",!t&&"xl:px-3"),children:e.jsx(he,{variant:"primaryOutline",size:"sm",startIcon:e.jsx(R,{icon:ca}),"data-feature":"v3-quick-actions-open-button",className:f("sidebar-quick-actions-button","!rounded-lg border-primary text-primary",!t&&"xl:hidden"),onClick:()=>w(!0),children:o("main.sideBar.quickActions")})}),!u&&e.jsxs(e.Fragment,{children:[e.jsx(On,{open:b,onClose:()=>w(!1),onLinkClick:j,onNewRequestClick:()=>{w(!1),C(!0)},showReservationsLink:d.some(A=>"path"in A&&A.path==="/community/reservations"),showMakePaymentLink:!m&&v}),e.jsx(Za,{open:y,onClose:()=>C(!1)})]}),e.jsx("div",{className:"w-full",children:g?e.jsxs("div",{className:f("px-4",!t&&"xl:px-1.5 xl:py-2",t&&"py-8"),children:[e.jsx(Yt,{sidebarData:d,isSidebarCollapsed:!t,location:i,onToggleSidebar:j,hoaiPlacement:x}),e.jsxs("ul",{className:f("border-t pt-3 border-base-border font-normal text-sm list-none pl-0 m-0","space-y-3",!t&&"xl:flex xl:flex-col xl:space-y-0 xl:gap-2"),children:[x==="before-my-profile"&&e.jsx(ce,{condensed:!t}),!u&&e.jsx("li",{children:e.jsx(Jt,{isSidebarCollapsed:!t,onToggleSidebar:j})}),x==="before-logout"&&e.jsx(ce,{condensed:!t}),e.jsx("li",{children:e.jsx(Xt,{isSidebarCollapsed:!t,onToggleSidebar:j})})]})]}):null})]})})};function On({open:n,onClose:t,onLinkClick:r,onNewRequestClick:s,showReservationsLink:a=!0,showMakePaymentLink:o=!0}){const{t:i}=$(),l=Ue(),d=Ke(),{canCreateGeneralRequest:p,canCreateArchitecturalRequest:g}=Ua(),u=p||g,v=()=>{t(),r==null||r()},m=()=>{t(),r==null||r(),s==null||s()},x=l&&d?"/community/requests":"/community/new-request",h=f("flex flex-1 w-full tablet:w-auto tablet:min-w-[140px] tablet:max-w-[200px] flex-col items-center justify-center gap-3","rounded-lg border border-base-border bg-base-fill py-6 px-6","text-base-header font-medium transition-colors hover:bg-base-active/10");return e.jsx(Qe,{open:n,onClose:t,title:i("main.sideBar.quickActions"),textAlign:"left",className:"quick-actions-modal",children:e.jsxs("div",{"data-feature":"v3-quick-actions-modal",className:"quick-actions-modal-links flex flex-col tablet:flex-row flex-wrap items-stretch justify-center gap-4",children:[a&&e.jsxs(U,{to:"/community/reservations",onClick:v,"data-feature":"v3-quick-actions-modal-reservations",className:f("sidebar-link sidebar-link-community-reservations","quick-actions-modal-link quick-actions-modal-link-reservations","flex flex-1 w-full tablet:w-auto tablet:min-w-[140px] tablet:max-w-[200px] flex-col items-center justify-center gap-3","rounded-lg border border-base-border bg-base-fill py-6 px-6","text-base-header font-medium transition-colors hover:bg-base-active/10"),children:[e.jsx(R,{icon:gt,className:"text-xl text-base-icon"}),e.jsx("span",{children:i("main.sideBar.quickActionsModal.amenityReservation")})]}),o&&e.jsxs(U,{to:"/paynow",onClick:v,"data-feature":"v3-quick-actions-modal-paynow",className:f("sidebar-link sidebar-link-community-new-request","quick-actions-modal-link quick-actions-modal-link-new-request","flex flex-1 w-full tablet:w-auto tablet:min-w-[140px] tablet:max-w-[200px] flex-col items-center justify-center gap-3","rounded-lg border border-base-border bg-base-fill py-6 px-6","text-base-header font-medium transition-colors hover:bg-base-active/10"),children:[e.jsx(R,{icon:qe,className:"text-xl text-base-icon"}),e.jsx("span",{children:i("main.sideBar.quickActionsModal.makePayment")})]}),u&&(s?e.jsxs("button",{type:"button",onClick:m,"data-feature":"v3-quick-actions-modal-new-request",className:h,children:[e.jsx(R,{icon:ze,className:"text-xl text-base-icon"}),e.jsx("span",{children:i("main.sideBar.quickActionsModal.newRequest")})]}):e.jsxs(U,{to:x,onClick:v,"data-feature":"v3-quick-actions-modal-new-request",className:h,children:[e.jsx(R,{icon:ze,className:"text-xl text-base-icon"}),e.jsx("span",{children:i("main.sideBar.quickActionsModal.newRequest")})]}))]})})}function Yt({sidebarData:n,isSidebarCollapsed:t,location:r,onToggleSidebar:s,hoaiPlacement:a}){return e.jsxs("ul",{className:"font-normal space-y-3 text-sm",children:[n.map((o,i)=>{const l=Fn.find(({iconName:p})=>p===o.icon),d=Qt(o)&&ye(r.pathname,o.path)||me(r.pathname,o.childPaths);return e.jsxs(c.Fragment,{children:[o.title==="Home"&&Qt(o)&&o.path==="/dashboard"&&e.jsx("li",{className:"bg-base-border h-[1px]"}),a==="before-board-actions"&&o.title==="Board Actions"&&e.jsx(ce,{condensed:t}),o.title==="Board Actions"&&e.jsx("li",{className:"bg-base-border h-[1px]"}),e.jsx("li",{children:"children"in o?e.jsx(Vn,{option:o,isSidebarCollapsed:t,icon:l,location:r,onLinkClick:s}):e.jsxs(U,{onClick:s,to:o.path??"#","data-feature":`sidebar-link-${Ss(o.path??"#")}`,"data-qa":o.dataQa,className:f("rounded-lg font-medium transition-all duration-300","flex items-center w-full py-3 px-4",t&&"xl:justify-center xl:px-2",d?"bg-primary text-primary-fg":"text-base-header hover:bg-base-active/10"),children:[e.jsx("span",{className:"w-5 shrink-0 inline-flex items-center justify-center",children:l&&e.jsx(R,{className:f(d?"text-primary-fg":"text-base-icon"),icon:l})}),e.jsx("span",{className:f(t&&"xl:hidden","ml-3 transition-all ease-in-out duration-300 flex-1 min-w-0"),children:o.title}),!t&&"badgeCount"in o&&o.badgeCount!=null&&o.badgeCount>0&&e.jsx("span",{className:f("flex items-center justify-center rounded-[50px] min-w-[20px] h-5 px-1.5 shrink-0",d?"bg-primary-fg/30 text-primary-fg":"bg-primary text-primary-fg","text-xs font-semibold"),children:o.badgeCount>99?"99+":o.badgeCount})]})}),a==="after-faqs"&&o.title==="FAQs"&&e.jsx(ce,{condensed:t})]},`${i}-${o.id}`)}),a==="end-of-nav"&&e.jsx(ce,{condensed:t})]})}function Vn({option:n,isSidebarCollapsed:t,icon:r,location:s,onLinkClick:a}){const o=me(s.pathname,n.childPaths);return e.jsx(vs,{children:({open:i})=>{var l;return e.jsxs("div",{className:"w-full",children:[e.jsxs(ws,{"data-qa":n.dataQa,className:f("mb-3 rounded-lg border-l-4 border-base-fill hover:border-base-active/10",o&&"bg-base-active/10 border-base-active","flex items-center w-full p-2 text-base-header transition-all duration-300 group hover:bg-base-active/10",t&&"xl:justify-center xl:px-2 xl:py-0 xl:h-8 xl:min-h-8 xl:shrink-0 xl:border-l-0"),children:[e.jsx("span",{className:"w-5 shrink-0 inline-flex items-center justify-center",children:r&&e.jsx(R,{icon:r,className:"text-base-icon"})}),e.jsxs("div",{className:f("flex w-full",t&&"xl:w-0 xl:min-w-0 xl:h-0 xl:overflow-hidden xl:opacity-0 xl:invisible"),children:[e.jsx("span",{className:f("flex-1 ml-3 text-left whitespace-nowrap",t&&"xl:m-0"),children:n.title}),e.jsx("svg",{className:f(i&&"-rotate-180 ","w-6 h-6 flex-end transition-all"),fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:e.jsx("path",{fillRule:"evenodd",d:"M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]}),e.jsx(ft,{enter:"transition-all duration-300 ease-out",enterFrom:"opacity-0 max-h-0 overflow-hidden",enterTo:"opacity-100 max-h-96 overflow-visible",leave:"transition-all duration-200 ease-in",leaveFrom:"opacity-100 max-h-96 overflow-visible",leaveTo:"opacity-0 max-h-0 overflow-hidden",children:e.jsx(Cs,{className:f(t&&"tablet:hidden"),children:e.jsx("ul",{className:"py-2 space-y-2",children:(l=n.children)==null?void 0:l.map(d=>e.jsx("li",{children:e.jsx(U,{onClick:a,to:d.path,"data-feature":`sidebar-link-${Ss(d.path)}`,className:f("sidebar-link","rounded-lg ml-6 flex items-center p-2 text-base-header transition-all duration-300 pl-6 group hover:bg-base-active/10 hover:text-base-header",ye(s.pathname,d.path)&&"bg-base-active text-primary-fg"),children:d.title})},d.id))})})})]})}})}function Jt({isSidebarCollapsed:n,onToggleSidebar:t}){const{t:r}=$(),a=ve().pathname.startsWith("/my/profile-settings");return e.jsxs(U,{onClick:t,to:"/my/profile-settings","data-qa":"my-profile-link",className:f("sidebar-link sidebar-link-my-profile-settings","rounded-lg font-medium transition-all duration-300","flex items-center w-full py-3 px-4",n&&"xl:justify-center xl:px-2",a?"bg-primary text-primary-fg":"text-base-header hover:bg-base-active/10"),children:[e.jsx("span",{className:"w-5 shrink-0 inline-flex items-center justify-center",children:e.jsx(R,{className:f(a?"text-primary-fg":"text-base-icon"),icon:xt})}),e.jsx("span",{className:f(n&&"xl:hidden","ml-3 transition-all ease-in-out duration-300 flex-1 min-w-0"),children:r("main.header.links.myProfile")})]})}function Xt({isSidebarCollapsed:n,onToggleSidebar:t}){const{t:r}=$(),a=ve().pathname==="/logout";return e.jsxs(U,{onClick:t,to:"/logout","data-qa":"logout-link",className:f("sidebar-link sidebar-link-logout","rounded-lg font-medium transition-all duration-300","flex items-center w-full py-3 px-4",n&&"xl:justify-center xl:px-2",a?"bg-primary text-primary-fg":"text-base-header hover:bg-base-active/10"),children:[e.jsx("span",{className:"w-5 shrink-0 inline-flex items-center justify-center",children:e.jsx(R,{className:f(a?"text-primary-fg":"text-base-icon"),icon:bt})}),e.jsx("span",{className:f(n&&"xl:hidden","ml-3 transition-all ease-in-out duration-300 flex-1 min-w-0"),children:r("main.header.links.logOut")})]})}const _n=1200;function $n(n){var r,s,a,o;const t=[n];for(;t.length;){const i=t.shift(),l=((r=i.querySelector)==null?void 0:r.call(i,"textarea"))||((s=i.querySelector)==null?void 0:s.call(i,"input"))||((a=i.querySelector)==null?void 0:a.call(i,'[contenteditable="true"]'));if(l)return l;const d=i.shadowRoot;d&&t.push(d);const p=(o=i.querySelectorAll)==null?void 0:o.call(i,"*");p==null||p.forEach(g=>{const u=g.shadowRoot;u&&t.push(u)})}return null}function zn({drawerOpen:n,chatOpen:t,mountEl:r}){const s=c.useRef(n);c.useEffect(()=>{const a=s.current&&!n;if(s.current=n,!a||!t||!r)return;const o=()=>{const d=$n(r);d&&d!==document.activeElement&&d.focus()},i=d=>{d.composedPath().includes(r)||o()};document.addEventListener("focusin",i,!0);const l=window.setTimeout(()=>{document.removeEventListener("focusin",i,!0),r.contains(document.activeElement)||o()},_n);return()=>{document.removeEventListener("focusin",i,!0),clearTimeout(l)}},[n,t,r])}const Qn=({themeOverride:n,associationCode:t})=>{const r=H(T=>T.token),s=Ze(r),a=Ge(),o=ve(),i=We(),{state:l}=yt(),{isLoggedIn:d}=de(),p=Ke(),g=H(T=>T.userSettings===null),u=H(T=>{var Z,ne,N,G;return((N=(ne=(Z=T.userSettings)==null?void 0:Z.associations)==null?void 0:ne.find(te=>te.id===T.selectedAssociationId))==null?void 0:N.companyName)??((G=T.userSettings)==null?void 0:G.companyName)}),v=H(T=>{var Z;return(Z=T.user)==null?void 0:Z.email}),[m,x]=c.useState(!1),[h,b]=c.useState(),[w,y]=c.useState(!1),[C,q]=ut("navOpen",window.innerWidth>Ns);c.useEffect(()=>(document.body.classList.add("layout-v3"),()=>{document.body.classList.remove("layout-v3")}),[]),c.useEffect(()=>{const T=document.body;if(!p){T.removeAttribute("data-feature");return}const Z=o.pathname.replace(/^\/+|\/+$/g,"").replace(/\d+/g,"id").replace(/[^a-zA-Z0-9/-]/g,"").replace(/\//g,"-")||"home";T.setAttribute("data-feature",`v3-page-${Z.toLowerCase()}`)},[p,o.pathname]),c.useEffect(()=>{t&&d&&i(`/logout?c=${t}`)},[t,d,i]),Rt(t),kt(),At(n);const[j,A]=c.useState(null),E=Ie(T=>T.isOpen),{chatEnabled:S}=It({mountEl:j}),[k,F]=c.useState(()=>typeof window<"u"?window.matchMedia("(max-width: 1589px)").matches:!1);c.useEffect(()=>{const T=window.matchMedia("(max-width: 1589px)"),Z=ne=>F(ne.matches);return T.addEventListener("change",Z),()=>T.removeEventListener("change",Z)},[]);const[D,P]=c.useState(()=>typeof window<"u"?window.matchMedia(`(max-width: ${pe}px)`).matches:!1);c.useEffect(()=>{const T=window.matchMedia(`(max-width: ${pe}px)`),Z=ne=>P(ne.matches);return T.addEventListener("change",Z),()=>T.removeEventListener("change",Z)},[]);const B=S&&E&&k,I=B||D;c.useEffect(()=>(B?document.body.classList.add("hoai-compact"):document.body.classList.remove("hoai-compact"),()=>document.body.classList.remove("hoai-compact")),[B]);const[Y,_]=c.useState(!1);c.useEffect(()=>{I||_(!1)},[I]),c.useEffect(()=>{E&&I&&_(!1)},[E,I]),zn({drawerOpen:Y,chatOpen:E,mountEl:j});const z=T=>{I?_(Z=>typeof T=="function"?T(Z):T):q(T)},M=I?Y:C,V=H(T=>T.selectedPropertyId),L=!!V&&V>0,{isModalOpen:K,closeModal:Ne,sessionId:Le,userId:ue,paymentOptions:X,nextAccountChargeDate:we,hasCheckedToShowModal:fe}=qt({isLoading:g}),ke=c.useRef(!1),[Re,W]=c.useState(!1);return c.useEffect(()=>{(fe||!g&&!L)&&!ke.current&&(ke.current=!0,W(!K))},[fe,K,g,L]),e.jsx(e.Fragment,{children:e.jsxs("div",{"data-full":a!=null&&a.full?"true":"false",className:f("V3-app-lay
1out group flex text-base-fg w-full max-w-screen h-screen overflow-hidden","print:h-auto print:overflow-visible",Re&&"pendo-home-portal-welcome"),children:[(s==null?void 0:s.DebugId)&&e.jsx(Zn,{}),String((s==null?void 0:s.ShouldResetPassword)??"").toLowerCase()==="true"&&v&&vt&&e.jsx(Mt,{email:v}),ue&&e.jsx(Lt,{isOpen:K,onClose:Ne,sessionId:Le,userId:ue,paymentOptions:X,nextAccountChargeDate:we??void 0}),!(a!=null&&a.hideSidebar)&&e.jsx(Dn,{className:"pointer-events-auto print:hidden",open:M,onClose:z,onViewUpdate:y,forceOverlay:B}),e.jsx("div",{className:f(w&&"contrast-50 pointer-events-none","relative flex flex-col flex-1 transition-all ease-in-out duration-300 h-full min-h-0 overflow-y-auto min-w-0","print:h-auto print:min-h-0 print:overflow-visible"),style:{background:"var(--bg-gradient-base, linear-gradient(180deg, #F6FFFA 0%, #DDF2FF 100%))"},children:e.jsxs("div",{className:'flex flex-col gap-[44px] h-full min-w-0 print:h-auto group-data-[full="false"]:md:pt-4 group-data-[full="false"]:md:px-horizontal-layout group-data-[full="false"]:px-horizontal-layout-sm',children:[!(a!=null&&a.hideSidebar)&&e.jsx(Bn,{title:h||(a==null?void 0:a.title),showPropertySelector:m||(a==null?void 0:a.showPropertySelector)||!1,breadCrumbs:a==null?void 0:a.breadCrumbs,propertiesLoading:g,className:'w-full max-w-[1280px] mx-auto group-data-[full="true"]:xl:hidden print:hidden',onCloseNav:z,forceShowMenuButton:B}),e.jsx("div",{className:"grow flex justify-center items-center self-stretch min-w-0 print:block",children:e.jsx("div",{className:f("rounded-xl w-full max-w-[1280px] h-full min-w-0 text-base-header","print:h-auto"),children:e.jsx(jt,{FallbackComponent:Un,children:g?e.jsx("div",{className:"w-full h-full py-16 flex items-center justify-center",children:e.jsx(ae,{})}):e.jsx(c.Suspense,{fallback:e.jsx("div",{className:"w-full h-full py-16 flex items-center justify-center",children:e.jsx(ae,{})}),children:e.jsx(As,{children:e.jsx(wt,{context:{setDropdown:x,setPageTitle:b}})})})})})}),!(a!=null&&a.full)&&e.jsx("div",{className:"py-4 flex items-end max-w-[1280px] self-center w-full print:hidden",children:e.jsx(St,{company:u??""})})]})}),S&&e.jsx("aside",{"aria-hidden":!E,className:f("shrink-0 transition-[width] ease-in-out duration-300 print:hidden",E?"w-0 min-[600px]:w-[440px]":"w-0"),children:e.jsx("div",{className:f("fixed top-0 right-0 h-screen w-screen min-[600px]:w-[440px]","border-l border-base-border bg-base-bg","transition-transform ease-in-out duration-300 z-chat",E?"translate-x-0":"translate-x-full"),children:e.jsx("div",{ref:A,className:"h-full w-full"})})}),e.jsx(pt,{position:"bottom-center"}),l==="loading"&&e.jsx("div",{className:"absolute inset-0 bg-base-bg opacity-50 z-50 flex items-center justify-center print:hidden",children:e.jsx(ae,{})}),e.jsx(Ct,{})]})})},Zn=()=>{const{t:n}=$();return e.jsxs("div",{className:"fixed top-2 left-1/2 transform -translate-x-1/2 z-50 bg-gray-800/80 text-base-bg px-4 py-2 rounded-md shadow-md flex items-center gap-2 print:hidden",children:[e.jsx(R,{icon:ht}),e.jsx("span",{className:"text-sm text-nowrap",children:n("main.pageTop.mimicMode")})]})};function Un({error:n,resetErrorBoundary:t}){return/^Failed to fetch dynamically imported module:/.test(n.message)?e.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"New version available"}),e.jsx("p",{className:"text-base-fg",children:"Please refresh the page to load the latest version"}),e.jsx(he,{variant:"primaryLink",onClick:()=>window.location.reload(),className:"mt-8 w-full",children:"Refresh"})]})}):(console.error(n),e.jsx("div",{className:"w-full py-16 flex items-center justify-center",children:e.jsxs("div",{className:"text-center",children:[e.jsx("h1",{className:"text-2xl font-bold",children:"Something went wrong"}),e.jsx("p",{className:"text-base-fg",children:"Please try again or contact support"}),e.jsx(he,{variant:"primaryLink",onClick:t,className:"mt-8 w-full",children:"Try again"})]})}))}function Mr({request:n}){const t=new URL(n.url),r=t.searchParams.get("__theme"),s=t.searchParams.get("c")??t.searchParams.get("C");return{themeOverride:r,associationCode:s}}function Sr(){const{themeOverride:n,associationCode:t}=Ea(),r=Ue();return Ke()?e.jsx(Qn,{themeOverride:n,associationCode:t}):r?e.jsx(In,{themeOverride:n,associationCode:t}):e.jsx(jn,{themeOverride:n,associationCode:t})}export{Sr as Component,Mr as loader};

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.