1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="411c11c5-2631-42e7-ba9a-fcb93185a6ae",e._sentryDebugIdIdentifier="sentry-dbid-411c11c5-2631-42e7-ba9a-fcb93185a6ae")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7348],{3803:(e,t,r)=>{r.d(t,{q:()=>g});var n=r(95155),i=r(12115),a=r(20063),s=r(12553),o=r(42619),l=r(47889),c=r(12808),d=r(79730),u=r(14681),m=r(57883),f=r(83729);let p=null,h=null;function g(e){let{children:t,fallback:r=null,redirectTo:g="/auth",requireEmailVerification:b=!1,requireMfa:y=!0}=e,{isAuthenticated:v,isLoading:x,checkSession:w}=(0,c.a)(),{isDemoMode:j}=(0,m._K)(),N=(0,a.useRouter)(),[k,C]=(0,i.useState)(!1),[A,S]=(0,i.useState)(!1),[T,I]=(0,i.useState)(()=>o.auth.currentUser?o.auth.currentUser.emailVerified:p),[E,L]=(0,i.useState)(()=>o.auth.currentUser?(0,l.d)(o.auth.currentUser):h),[P,R]=(0,i.useState)(void 0),M=(0,i.useRef)(!1),q=(0,i.useRef)(!1),D=(0,i.useRef)(!1);(0,i.useEffect)(()=>{S("true"===sessionStorage.getItem("heirloom_demo_mode")||"true"===new URLSearchParams(globalThis.window.location.search).get("demo"))},[]),(0,i.useEffect)(()=>{if(!b&&!y)return;let e=(0,s.hg)(o.auth,e=>{if(b){var t;I(p=null!=(t=null==e?void 0:e.emailVerified)?t:null)}y&&L(h=e?(0,l.d)(e):null)});return()=>e()},[b,y]),(0,i.useEffect)(()=>{let e=(0,s.hg)(o.auth,e=>R(e));return()=>e()},[]),(0,i.useEffect)(()=>{k||v||x||(C(!0),w().catch(()=>{C(!0)}))},[k,v,x,w]),(0,i.useEffect)(()=>{v&&!k&&C(!0)},[v,k]),(0,i.useEffect)(()=>{D.current||!j&&!A&&k&&v&&null===P&&(D.current=!0,d.xY.clearLocalState())},[k,v,P,j,A]);let B=()=>void 0!==globalThis.window&&("true"===sessionStorage.getItem("heirloom_demo_mode")||"true"===new URLSearchParams(globalThis.window.location.search).get("demo"));return((0,i.useEffect)(()=>{if(k&&!x&&!v&&!j&&!B()){let e=setTimeout(()=>{if(B())return;let{pathname:e,search:t}=globalThis.window.location,r=(0,f.km)("".concat(e).concat(t)),n=new URLSearchParams(t);r&&n.set(f.Z5,r);let i=n.toString();N.replace(i?"".concat(g,"?").concat(i):g)},500);return()=>clearTimeout(e)}},[k,v,x,N,g,j]),(0,i.useEffect)(()=>{b&&k&&v&&!1===T&&N.replace("/onboarding/verify-email")},[b,k,v,T,N]),(0,i.useEffect)(()=>{if(q.current||!(y&&k&&v&&!1===E))return;if(M.current)return void N.replace("/onboarding/setup-mfa");let e=!1;return(async()=>{let t=await (0,l.N)(o.auth.currentUser);e||(M.current=!0,t?(q.current=!0,h=!0,L(!0)):N.replace("/onboarding/setup-mfa"))})(),()=>{e=!0}},[y,k,v,E,N]),j||A)?(0,n.jsx)(n.Fragment,{children:t}):x||!k?r||(0,n.jsx)("div",{className:"h-[100dvh] flex items-center justify-center bg-secondary",children:(0,n.jsx)(u.k,{text:"Loading..."})}):k&&!v||b&&!1===T?null:b&&null===T?r||(0,n.jsx)("div",{className:"h-[100dvh] flex items-center justify-center bg-secondary",children:(0,n.jsx)(u.k,{text:"Loading..."})}):y&&!1===E?null:y&&null===E?r||(0,n.jsx)("div",{className:"h-[100dvh] flex items-center justify-center bg-secondary",children:(0,n.jsx)(u.k,{text:"Loading..."})}):(0,n.jsx)(n.Fragment,{children:t})}},7348:(e,t,r)=>{r.d(t,{Ay:()=>eq,vd:()=>$.vd});var n=r(95155),i=r(12115),a=r(67909),s=r(97003),o=r(82180),l=r(53842),c=r(92927),d=r(59384),u=r(65993),m=r(5937),f=r(87066),p=r(91761),h=r(26983),g=r(89715),b=r(17910),y=r(20508),v=r(23361),x=r(50069),w=r(65229),j=r(99708),N=r(37772),k=r(27937),C=r(20063),A=r(52619),S=r.n(A),T=r(15239),I=r(3803),E=r(2479),L=r(14681),P=r(12808),R=r(79730),M=r(54679);function q(e){let{warningThresholdMs:t=9e5}=e,{sessionExpiry:r,isAuthenticated:a,refreshSession:o}=(0,P.a)(),[l,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(!1),m=(0,i.useRef)(!1),f=(0,i.useRef)(null),p=(0,i.useRef)(null);(0,i.useEffect)(()=>{var e;if(p.current&&(clearTimeout(p.current),p.current=null),!a||!r){c(!1),m.current=!1,f.current=null;return}if((null==(e=f.current)?void 0:e.getTime())!==r.getTime()&&(m.current=!1,f.current=r),m.current)return;let n=()=>{let e=Date.now(),n=r.getTime()-e-t;n<=0?h():(c(!1),p.current=setTimeout(()=>{h()},n))},i=()=>{!document.hidden&&r&&n()};
1return n(),document.addEventListener("visibilitychange",i),()=>{p.current&&(clearTimeout(p.current),p.current=null),document.removeEventListener("visibilitychange",i)}},[r,a,t]);let h=()=>{if(!r||m.current)return;let e=Date.now(),n=r.getTime()-e,i=R.xY.getTimeSinceLastActivity();n>0&&n<=t&&i>=R.$B&&c(!0)},g=async()=>{try{u(!0),m.current=!0,await o("timeout-warning-continue-clicked"),c(!1)}catch(e){E.vF.error("Failed to extend session",e),m.current=!1}finally{u(!1)}};return l?(0,n.jsx)(M.lG,{open:l,onOpenChange:e=>{e||(m.current=!0,c(!1))},children:(0,n.jsxs)(M.Cf,{className:"sm:max-w-md bg-white border-0 shadow-xl",children:[(0,n.jsx)(M.L3,{className:"text-lg font-semibold text-foreground text-center",children:"Do you want to continue your session?"}),(0,n.jsxs)(M.rr,{className:"text-sm text-muted-foreground leading-relaxed text-center",children:["For security reasons, your session will time out at"," ",(0,n.jsx)("span",{className:"font-medium",children:r?r.toLocaleTimeString([],{hour:"numeric",minute:"2-digit",hour12:!0}):""})," ","unless you continue."]}),(0,n.jsx)("div",{className:"text-center pt-2",children:(0,n.jsx)(s.$,{onClick:g,disabled:d,className:"items-center space-x-2",children:d?"Continuing...":"Continue Session"})})]})}):null}var D=r(68954),B=r(32392),K=r(1015),_=r(39390),F=r(18720),H=r(1630);let O={database:"public records","missing-money":"unclaimed property",missingMoney:"unclaimed property",naic:"life insurance",email:"email accounts",plaid:"bank accounts"};function U(e){let t=e.results;if(Array.isArray(t))return t.length;let r=e.businessNameResults;return Array.isArray(r)?r.length:0}var z=r(41322);let W={a:"/app/tasks",i:"/app/discover",t:"/app/worklog",o:"/app/documents",r:"/app/profile"};var V=r(88633),G=r(23e3),Y=r(8044),$=r(68709),Q=r(6635),Z=r(99776),X=r(15870),J=r(71360),ee=r(33789),et=r(90235),er=r(7220),en=r(60367),ei=r(36236);function ea(e){let{heirloomId:t,heirloomName:r}=e,a=(0,C.useRouter)(),o=(0,Z.jE)(),[l,c]=(0,i.useState)(!1),[d,u]=(0,i.useState)(""),[m,f]=(0,i.useState)(!1),p=()=>{c(!1),u("")},h=async()=>{f(!0);try{await (0,ei.dD)(t),F.oR.success("Heirloom deleted"),localStorage.removeItem("currentHeirloomId"),o.invalidateQueries({queryKey:["professionalDashboard"]}),o.invalidateQueries({queryKey:["heirlooms"]}),a.push("/app/organization")}catch(e){E.vF.error("Failed to delete heirloom",e),F.oR.error(e instanceof Error?e.message:"Failed to delete heirloom"),f(!1)}};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)(er.rI,{children:[(0,n.jsx)(er.ty,{asChild:!0,children:(0,n.jsx)("button",{type:"button","data-agent-id":"heirloom.settings",className:"relative p-2 rounded-lg text-muted-foreground hover:text-foreground hover:bg-muted transition-colors","aria-label":"Heirloom settings",children:(0,n.jsx)(X.A,{className:"w-5 h-5"})})}),(0,n.jsx)(er.SQ,{align:"end",children:(0,n.jsxs)(er._2,{onClick:()=>c(!0),className:"text-red-600 focus:text-red-600 focus:bg-red-50",children:[(0,n.jsx)(J.A,{className:"w-4 h-4 mr-2"}),"Delete Heirloom"]})})]}),(0,n.jsx)(en.Wj,{open:l,onOpenChange:e=>{e||m||p()},children:(0,n.jsx)(en.v6,{title:"Delete Heirloom",className:"sm:max-w-md",children:(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("p",{className:"text-sm text-muted-foreground",children:["This will permanently delete ",(0,n.jsx)("span",{className:"font-medium text-foreground",children:r})," and all of its documents, results, and notes for everyone on it. This action cannot be undone."]}),(0,n.jsxs)("div",{className:"space-y-2",children:[(0,n.jsx)(et.J,{htmlFor:"heirloom-delete-confirm",className:"text-sm font-medium",children:'Type "confirm" to proceed:'}),(0,n.jsx)(ee.p,{id:"heirloom-delete-confirm",value:d,onChange:e=>u(e.target.value),placeholder:"Type 'confirm' here",disabled:m,className:"focus-visible:!ring-0 !ring-0 focus-visible:!border-ring"})]}),(0,n.jsxs)("div",{className:"flex justify-end gap-2",children:[(0,n.jsx)(s.$,{variant:"outline",onClick:p,disabled:m,children:"Cancel"}),(0,n.jsx)(s.$,{variant:"destructive",onClick:h,disabled:"confirm"!==d.toLowerCase()||m,children:m?"Deleting...":"Delete Heirloom"})]})]})})})]})}var es=r(81222),eo=r(87298);function el(){let e=(0,C.useSearchParams)(),t=(0,C.useRouter)(),r=(0,C.usePathname)(),{refreshHeirlooms:n}=(0,D.vr)(),a=(0,Z.jE)(),s=(0,i.useRef)(!1);return(0,i.useEffect)(()=>{let i=e.get("inviteToken"),o=e.get("heirloomId"),l=e.get("role")||"executor";if(!i||!o){let e=localStorage.getItem("pendingInvite");if(e)try{let t=JSON.parse(e);i=t.inviteToken,o=t.heirloomId,l=t.role||"executor"}catch(e){}}i&&o&&!s.current&&(async()=>{s.current=!0,localStorage.removeItem("pendingInvite");try{let e=await (0,es.vx)(l,i,o);localStorage.setItem("currentHeirloomId",e.heirloomId),await a.invalidateQueries({queryKey:eo.mn}),await a.refetchQueries({queryKey:eo.mn}),await n(e.heirloomId),F.oR.success("You now have ".concat(l," access to ").concat(e.ownerName,"'s estate plan for ").concat(e.heirloomName)),t.replace(r)}catch(e){E.vF.error("Failed to accept invite",e,{role:l}),F.oR.error((null==e?void 0:e.message)||"Failed to accept ".concat(l," invite. Please try again.")),t.replace(r)}})()},[e,n,a,t,r]),null}var ec=r(57883),ed=r(84926),eu=r(52245);function em(){let e=(0,C.useRouter)(),{disableDemoMode:t}=(0,ec._K)();return(0,n.jsx)("div",{className:"flex-shrink-0 border-b border-amber-300 bg-amber-100 text-amber-900",children:(0,n.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-2.5 max-w-screen-xl mx-auto",children:[(0,n.jsxs)("span",{className:"flex items-center gap-2 min-w-0 text-sm font-medium",children:[(0,n.jsx)("span",{className:"h-2 w-2 flex-shrink-0 rounded-full bg-amber-500"}),(0,n.jsx)("span",{className:"truncate",children:"Sandbox mode â you're exploring Heirloom with sample data"})]}),(0,n.jsxs)("button",{type:"button",onClick:()=>{(0,eu.Eh)(),t(),void 0!==globalThis.window&&localStorage.removeItem("currentHeirloomId"),e.push("/sandbox")},className:"flex flex-shrink-0 items-center gap-1.5 rounded-md bg-amber-500 px-3 py-1.5 text-sm font-medium text-white transition-colors hover:bg-amber-600",children:[(0,n.jsx)(ed.A,{size:14}),"Exit sandbox"]})]})})}var ef=r(20860),ep=r(49101),eh=r(7521),eg=r(69490),eb=r(42619),ey=r(39769),ev=r(95205),ex=r
1(99884),ew=r(43045),ej=r(5445),eN=r(99179),ek=r(61998),eC=r(38491);let eA=(0,a.default)(()=>Promise.all([r.e(9996),r.e(9034),r.e(246)]).then(r.bind(r,9035)).then(e=>({default:e.LearnMorePanel})),{loadableGenerated:{webpack:()=>[9035]},ssr:!1}),eS=[{id:"toolkit",label:"Toolkit",icon:l.A,sectionIds:["dashboard","messaging","tasks","worklog"]},{id:"estate",label:"Estate",icon:c.A,sectionIds:["documents","secure-entry"]}],eT=new Set(eS.flatMap(e=>e.sectionIds)),eI=new Set(["profile"]),eE=["documents","secure-entry","profile"],eL=new Set(eS.find(e=>"toolkit"===e.id).sectionIds),eP=[{id:"dashboard",label:"Dashboard",icon:d.A,href:"/app/dashboard",navKey:"d"},{id:"home",label:"Home",icon:u.A,href:"/app/home",navKey:"h",requiresPaid:!0},{id:"messaging",label:"Messaging",icon:m.A,href:"/app/messaging",navKey:"m",requiresPaid:!0},{id:"tasks",label:"Tasks",icon:f.A,href:"/app/tasks",navKey:"a",requiresPaid:!0},{id:"discover",label:"Results",icon:p.A,href:"/app/discover",navKey:"i",requiresPaid:!0},{id:"worklog",label:"Work Log",icon:h.A,href:"/app/worklog",navKey:"t",requiresPaid:!0,requiresFullAccess:!0},{id:"documents",label:"Documents",icon:g.A,href:"/app/documents",navKey:"o",requiresFullAccess:!0},{id:"secure-entry",label:"Info",icon:b.A,href:"/app/secure-entry",navKey:"s"},{id:"profile",label:"Profile",icon:y.A,href:"/app/profile",navKey:"r"}],eR=[{id:"heirlooms",label:"Home",icon:u.A,href:"/app/organization",navKey:"l"},{id:"home",label:"Home",icon:u.A,href:"/app/home",navKey:"h"},{id:"messaging",label:"Messaging",icon:m.A,href:"/app/messaging",navKey:"m"},{id:"tasks",label:"Tasks",icon:f.A,href:"/app/tasks",navKey:"a"},{id:"discover",label:"Results",icon:p.A,href:"/app/discover",navKey:"i"},{id:"worklog",label:"Work Log",icon:h.A,href:"/app/worklog",navKey:"t"},{id:"documents",label:"Documents",icon:g.A,href:"/app/documents",navKey:"o"},{id:"secure-entry",label:"Info",icon:b.A,href:"/app/secure-entry",navKey:"s"},{id:"profile",label:"Profile",icon:y.A,href:"/app/organization/profile",navKey:"r"}];function eM(e){var t,r,a,l,c,d;let{children:u}=e;(0,i.useEffect)(()=>{var e;if(void 0===globalThis.window)return;R.xY.trackActivity();let t=()=>{R.xY.trackActivity()};if(null==(e=globalThis.window.history)?void 0:e.pushState){let e=globalThis.window.history.pushState;globalThis.window.history.pushState=function(){for(var r=arguments.length,n=Array(r),i=0;i<r;i++)n[i]=arguments[i];e.apply(this,n),t()};let r=globalThis.window.history.replaceState;globalThis.window.history.replaceState=function(){for(var e=arguments.length,n=Array(e),i=0;i<e;i++)n[i]=arguments[i];r.apply(this,n),t()}}return globalThis.window.addEventListener("popstate",t),()=>{globalThis.window.removeEventListener("popstate",t)}},[]),(0,P.a)();let{currentHeirloom:f,currentHeirloomId:p,heirlooms:g,isLoading:b}=(0,D.vr)(),y=(0,i.useRef)(new Map),A=(0,i.useRef)(!1);(0,i.useEffect)(()=>{if(!p)return;y.current=new Map,A.current=!1;let e=(0,_.rJ)(H.db,"heirlooms",p,"discover"),t=(0,_.aQ)(e,e=>{if(!A.current){e.docs.forEach(e=>{y.current.set(e.id,U(e.data()))}),A.current=!0;return}let t=0,r=new Set;if(e.docs.forEach(e=>{var n;let i=e.data(),a=U(i),s=null!=(n=y.current.get(e.id))?n:0;if(a>s){t+=a-s;let e="string"==typeof i.type?i.type:"";O[e]&&r.add(O[e])}y.current.set(e.id,a)}),t>0){let e=1===r.size?" from ".concat([...r][0]):"";F.oR.success("".concat(t," new result").concat(1===t?"":"s").concat(e," ").concat(1===t?"is":"are"," available."))}},e=>{E.vF.warn("Discovery result toast listener error",{error:e})});return()=>t()}
1,[p]);let{data:I,isLoading:X}=(0,K.sb)(),{isDemoMode:J}=(0,ec._K)(),ee=(0,C.useRouter)(),et=(0,Z.jE)(),er=(0,ef.Lq)(f),en=e=>!!er&&!!e.requiresFullAccess,[ei,eo]=(0,i.useState)(null),ed=(0,i.useRef)({}),eu=(0,i.useRef)(null),[eM,eq]=(0,i.useState)(null),eD=(0,i.useCallback)(e=>{eu.current&&(clearTimeout(eu.current),eu.current=null);let t=ed.current[e];if(t){let e=t.getBoundingClientRect();eq({bottom:globalThis.window.innerHeight-e.bottom,left:e.right+8})}eo(e)},[]),eB=(0,i.useCallback)(()=>{eu.current&&(clearTimeout(eu.current),eu.current=null)},[]),eK=(0,i.useCallback)(()=>{eu.current&&clearTimeout(eu.current),eu.current=setTimeout(()=>{eo(null),eu.current=null},150)},[]),[e_,eF]=(0,i.useState)(!1),[eH,eO]=(0,i.useState)(!1),eU=!!(null==f?void 0:f.hasProfessional),ez=(0,ey.yU)(null==f?void 0:f.caseType,!!(null==f?void 0:f.isProfessional),(0,ev.Kv)(f)),eW=null==f||null==(t=f.fiduciaries)?void 0:t[0],eV=(null==f||null==(r=f.clientName)?void 0:r.trim())||eW&&"".concat(eW.firstName||""," ").concat(eW.lastName||"").trim()||void 0,[eG,eY]=(0,i.useState)(null),[e$,eQ]=(0,i.useState)(null),[eZ,eX]=(0,i.useState)(!1),[eJ,e0]=(0,i.useState)([]),[e1,e2]=(0,i.useState)(400),[e5,e9]=(0,i.useState)(!1),[e3,e4]=(0,i.useState)(()=>void 0!==globalThis.window&&"true"===sessionStorage.getItem("trialBannerDismissed")),e6=(0,i.useRef)(!1),e8=(0,C.usePathname)(),e7=(()=>
1{if(b||X||!eb.auth.currentUser)return null;if(f&&(0,ef.Bm)(f)&&(0,ef.gZ)(f)&&!f.hasPaidDiscovery)return"/onboarding/upgrade";let e=(0,eg.be)(eb.auth.currentUser,null!=I?I:void 0,g),t=(0,eg.az)(e);return t.startsWith("/app")?null:t})();(0,i.useEffect)(()=>{e7&&(E.vF.debug("[MainLayout] redirecting to onboarding",{onboardingRedirectTarget:e7}),ee.replace(e7))},[e7,ee]);let te=(0,ef.Bm)(f)&&!(0,ef.gZ)(f),tt=(0,ef.ss)(f),tr=(0,i.useCallback)(()=>{e4(!0),sessionStorage.setItem("trialBannerDismissed","true"),(0,eh.sx)("free_trial_banner_dismissed",{days_remaining:tt})},[tt]),tn=te&&!e3&&!(null==f?void 0:f.isProfessional);(0,i.useEffect)(()=>{globalThis.window.scrollTo(0,0),eY(null),eX(!1),eF(!1),eQ(null),eo(null),eu.current&&(clearTimeout(eu.current),eu.current=null)},[e8]),(0,i.useEffect)(()=>{if(!ei)return;let e=e=>{"Escape"===e.key&&eo(null)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[ei]),(0,i.useEffect)(()=>{if(!ei)return void eq(null);let e=()=>{let e=ed.current[ei];if(!e)return;let t=e.getBoundingClientRect();eq({bottom:globalThis.window.innerHeight-t.bottom,left:t.right+8})};return e(),globalThis.window.addEventListener("resize",e),()=>globalThis.window.removeEventListener("resize",e)},[ei]),(0,i.useEffect)(()=>()=>{eu.current&&clearTimeout(eu.current)},[]);let{isNavigationMode:ti}=function(){let e=(0,C.useRouter)(),[t,r]=(0,i.useState)(!1),n=(0,i.useCallback)(()=>{r(!1)},[]),a=(0,i.useCallback)(t=>{e.push(t),n()},[e,n]);return(0,i.useEffect)(()=>{let e=e=>{let i=document.activeElement;if(!(i&&("INPUT"===i.tagName||"TEXTAREA"===i.tagName||"SELECT"===i.tagName||"true"===i.getAttribute("contenteditable")))&&!e.ctrlKey&&!e.metaKey&&!e.altKey){if("g"===e.key&&!t){e.preventDefault(),r(!0);return}if(t){if(e.preventDefault(),"Escape"===e.key)return void n();let t=W[e.key.toLowerCase()];t?a(t):n()}}};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,a,n]),(0,i.useEffect)(()=>()=>{n()},[n]),{isNavigationMode:t}}(),ta=(0,i.useCallback)(()=>{(0,G.YW)()},[]);(0,z.KW)({shortcuts:[{key:"c",handler:ta},{key:"C",handler:ta}],dependencies:[ta]});let ts=(0,i.useCallback)(e=>{eQ(e),void 0!==globalThis.window&&globalThis.window.innerWidth<1024?eF(!0):eX(!0)},[]),to=(0,i.useCallback)(()=>{eX(!1),eF(!1),eQ(null)},[]),tl=(0,i.useCallback)(()=>{eZ&&to(),ee.push("/app/messaging")},[eZ,to,ee]),tc=(0,i.useCallback)(e=>{ee.push(e)},[ee]),td=(0,i.useCallback)((e,t)=>{ee.push("/app/tasks?step=".concat(e))},[ee]),tu=(0,i.useCallback)(async e=>{p&&(await (0,ej.CI)(e,"complete",p),et.invalidateQueries({queryKey:["administration-steps",p]}))},[p,et]),tm=(0,i.useCallback)(e=>{p&&(0,ej.S9)(e,p).then(()=>{et.invalidateQueries({queryKey:["administration-steps",p]})}).catch(()=>{})},[p,et]),tf=(0,i.useCallback)(e=>{if(!e6.current)return;let t=globalThis.window.innerWidth;e2(Math.max(300,Math.min(t-84,t-e.clientX)))},[]),tp=(0,i.useCallback)(()=>{e6.current=!1,document.body.style.cursor="",document.removeEventListener("mousemove",tf),document.removeEventListener("mouseup",tp)},[tf]),th=(0,i.useCallback)(e=>{e6.current=!0,document.body.style.cursor="col-resize",document.addEventListener("mousemove",tf),document.addEventListener("mouseup",tp)},[tf,tp]),tg=(null==f?void 0:f.isProfessional)&&(null==f?void 0:f.permissions)!=null,tb=!(null==f?void 0:f.isBeneficiary)&&!tg,{activeOrganization:ty}=(0,B.Z)(),tv=!!(null==f?void 0:f.isProfessional)&&(null==ty?void 0:ty.role)==="admin"&&(!f.organizationId||f.organizationId===ty.orgId),tx=!(null==f?void 0:f.isBeneficiary),tw=!(null==f?void 0:f.hasProfessional)||(null==f?void 0:f.executorToolkitEnabled)===!0,tj=i.useMemo(()=>{let e;if(null==f?void 0:f.isProfessional)if(tg){let t=f.permissions;e=eR.filter(e=>"heirlooms"===e.id||"home"===e.id||"tasks"===e.id||"profile"===e.id||("secure-entry"===e.id?(0,es._m)(t,"secureEntry"):"discover"===e.id?(0,es._m)(t,"finances"):"documents"===e.id?(0,es._m)(t,"documents"):"worklog"===e.id?(0,es._m)(t,"worklog"):"estate"!==e.id))}else e=eR;else{var t;if(e=eP,null==f?void 0:f.isBeneficiary){let t=f.permissions;e=(e=eP.filter(e=>"dashboard"===e.id||"profile"===e.id||"secure-entry"!==e.id&&("discover"===e.id?(0,es._m)(t,"finances"):"estate"!==e.id&&("documents"===e.id?(0,es._m)(t,"documents"):"worklog"===e.id?(0,es._m)(t,"worklog"):"tasks"===e.id&&(0,es._m)(t,"tasks"))))).map(e=>"dashboard"===e.id?{...e,href:"/app/home"}:e)}else e=e.filter(e=>"dashboard"===e.id?tx:"secure-entry"!==e.id||!!(null==f?void 0:f.hasProfessional));if((null==f?void 0:f.isBeneficiary)&&!(null==f?void 0:f.hasPaidAdministration)&&(e=e.filter(e=>!e.requiresPaid)),!(null==f?void 0:f.isProfessional)&&((null==f?void 0:f.isOwner)||(null==f?void 0:f.isExecutor))&&(null==f||null==(t=f.clientHiddenSections)?void 0:t.length)){let t=new Set(f.clientHiddenSections);e=e.filter(e=>!t.has(e.id))}}{let t=(0,ep.rL)(null==f?void 0:f.homeSearchStep),r=(0,ep.Px)(f);e=t&&!r?e.filter(e=>"home"!==e.id):e.map(e=>"home"===e.id?{...e,label:"Discover",icon:v.A}:e)}if((0,ev.ig)(f)){let t=new Set(["dashboard","tasks","worklog","messaging","estate"]);e=e.filter(e=>!t.has(e.id))}return tx&&!tw&&(e=e.filter(e=>!eL.has(e.id))),e},[f,tg,tx,tw]),tN=i.useMemo(()=>tj.filter(e=>!eI.has(e.id)&&!(tx&&eT.has(e.id))),[tj,tx]),tk=tj.find(e=>"profile"===e.id),tC=i.useMemo(()=>tx?eS.map(e=>({...e,sections:e.sectionIds.map(e=>tj.find(t=>
1t.id===e)).filter(e=>!!e)})).filter(e=>e.sections.length>0):[],[tj,tx]),tA=i.useMemo(()=>{var e,t;return null!=(t=null==(e=tC.find(e=>"toolkit"===e.id))?void 0:e.sections)?t:[]},[tC]),tS=i.useMemo(()=>tj.filter(e=>!eE.includes(e.id)&&!(tx&&eL.has(e.id))),[tj,tx]),tT=i.useMemo(()=>[...tA,...eE.map(e=>tj.find(t=>t.id===e)).filter(e=>!!e)],[tj,tA]),tI=i.useMemo(()=>tT.some(e=>e8.startsWith(e.href)),[tT,e8]),tE=null==(a=tj.slice().sort((e,t)=>t.href.length-e.href.length).find(e=>e8.startsWith(e.href)))?void 0:a.id,tL=tC.find(e=>e.id===ei),tP="profile"===tE,tR=tk&&(0,n.jsx)(S(),{href:tk.href,"data-agent-id":"nav.profile","aria-label":"Profile","aria-current":tP?"page":void 0,className:"p-2 rounded-lg transition-colors ".concat(tP?"text-foreground bg-muted":"text-muted-foreground hover:text-foreground hover:bg-muted"),children:(0,n.jsx)(x.A,{className:"w-5 h-5"})}),tM=!(null==f?void 0:f.isBeneficiary),tq=!b,tD=eU?p:null,tB=(0,eN.dG)(tD),tK=tA.some(e=>"messaging"===e.id)?tB:0,t_=tj.find(e=>"discover"===e.id),tF=!!t_&&!en(t_),{data:tH}=(0,ek.xW)(tF?p:null),tO=i.useMemo(()=>{var e,t,r;let n=null==tH||null==(e=tH.data)?void 0:e.seenAccountIds;if(!n)return!1;let i=new Set(n);return(null!=(r=null==tH||null==(t=tH.data)?void 0:t.financialAccounts)?r:[]).some(e=>(0,eC.Av)(e,i))},[tH]);(0,i.useEffect)(()=>{tD&&eO(tB>0)},[tB,tD]);let tU=eZ?e1:0,tz=i.useMemo(()=>({screenContext:eG,setScreenContext:eY,openLearnMorePanel:ts,closeLearnMorePanel:to,isLearnMorePanelOpen:eZ,setCurrentFAQs:e0,currentFAQs:eJ,openSupport:ta,openSpecialistTab:tl,navigateToPage:tc,openTaskStep:td,markStepComplete:tu,markStepInProgress:tm,hasUnreadSpecialist:eH,setHasUnreadSpecialist:eO,sidePanelWidth:tU}),[ts,to,eZ,eJ,ta,tl,tc,td,tu,tm,eH,tU,eG]);return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(el,{}),(0,n.jsx)(G.Fr,{children:(0,n.jsxs)($.UK.Provider,{value:tz,children:[(0,n.jsx)(o.Bc,{children:(0,n.jsxs)("div",{className:"h-[100dvh] flex bg-background overflow-hidden relative",children:[e5&&(0,n.jsxs)("div",{className:"lg:hidden fixed inset-0 z-[60]",children:[(0,n.jsx)("div",{className:"absolute inset-0 bg-black/50",...(0,V.oP)(()=>e9(!1))}),(0,n.jsxs)("div",{className:"absolute bottom-0 left-0 right-0 bg-sidebar border-t border-sidebar-border rounded-t-2xl p-4 pb-safe animate-in slide-in-from-bottom duration-200",children:[(0,n.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,n.jsx)("span",{className:"text-sm font-medium text-sidebar-foreground",children:"More"}),(0,n.jsx)("button",{onClick:()=>e9(!1),className:"p-1 rounded-full hover:bg-muted",children:(0,n.jsx)(w.A,{className:"w-5 h-5 text-sidebar-foreground"})})]}),(0,n.jsxs)("div",{className:"grid grid-cols-4 gap-2",children:[tT.map(e=>{var t,r,i,a;let s=e.icon,o=tE===e.id,l=en(e),c=e.label,d=o?"text-primary":"text-sidebar-foreground";return(0,n.jsxs)(S(),{href:e.href,onClick:e=>{l&&(e.preventDefault(),ee.push("/onboarding/upgrade")),e9(!1)},"data-agent-id":"nav.".concat(e.id),className:"flex flex-col items-center justify-center gap-1 p-3 rounded-lg transition-all duration-200 ".concat((t=l,r=o,t?"text-muted-foreground opacity-50":r?"text-primary bg-primary/10":"text-sidebar-foreground hover:bg-muted")),children:[l?(0,n.jsx)(j.A,{className:"w-6 h-6 text-muted-foreground"}):(0,n.jsx)(s,{className:"w-6 h-6 ".concat(d)}),(0,n.jsx)("span",{className:"text-xs font-medium text-center leading-tight ".concat((i=l,a=o,i?"text-muted-foreground":a?"text-primary":"text-sidebar-foreground")),children:c})]},e.id)}),(0,n.jsx)(Y.r,{label:"Alerts"}),!(null==f?void 0:f.isProfessional)&&tb&&tw&&(0,n.jsx)(Q.$,{label:"Settings"})]}),(0,n.jsx)("div",{className:"mt-4 flex justify-center",children:(0,n.jsx)(ew._,{})}),(0,n.jsx)(ex.h,{className:"mt-4"})]})]}),(0,n.jsx)("nav",{className:"lg:hidden fixed bottom-0 left-0 right-0 z-50 bg-sidebar border-t border-sidebar-border safe-area-inset-bottom",children:(0,n.jsx)("div",{className:"flex items-center justify-around h-16 px-2",children:b?Array.from({length:5}).map((e,t)=>(0,n.jsxs)("div",{className:"flex flex-col items-center justify-center gap-1 px-3 py-2 min-w-[60px]",children:[(0,n.jsx)("div",{className:"w-5 h-5 bg-neutral-200 rounded animate-pulse"}),(0,n.jsx)("div",{className:"w-10 h-3 bg-neutral-200 rounded animate-pulse"})]},t)):(0,n.jsxs)(n.Fragment,{children:[tS.map(e=>{var t,r,i,a;let s=e.icon,o=tE===e.id,l=en(e),c=e.label,d=o?"text-primary":"text-sidebar-foreground";return(0,n.jsxs)(S(),{href:e.href,onClick:e=>{l&&(e.preventDefault(),ee.push("/onboarding/upgrade"))},"data-agent-id":"nav.".concat(e.id),className:"flex flex-col items-center justify-center gap-1 px-3 py-2 rounded-lg transition-all duration-200 min-w-[60px] ".concat((t=l,r=o,t?"text-muted-foreground opacity-50":r?"text-primary":"text-sidebar-foreground")),children:[l?(0,n.jsx)(j.A,{className:"w-5 h-5 text-muted-foreground"}):(0,n.jsx)(s,{className:"w-5 h-5 ".concat(d)}),(0,n.jsx)("span",{className:"text-xs font-medium whitespace-nowrap ".concat((i=l,a=o,i?"text-muted-foreground":a?"text-primary":"text-sidebar-foreground")),children:c})]},e.id)}),(0,n.jsxs)("button",{"data-agent-id":"nav.more",onClick:()=>e9(!0),className:"flex flex-col items-center justify-center gap-1 px-3 py-2 rounded-lg transition-all duration-200 min-w-[60px] ".concat(tI||e5?"text-primary":"text-sidebar-foreground"),children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(N.A,{className:"w-5 h-5 ".concat(tI||e5?"text-primary":"text-sidebar-foreground")}),!e5&&tB>0&&(0,n.jsx)("span",{className:"absolute -top-1 -right-1.5 w-2.5 h-2.5 bg-red-500 rounded-full border-2 border-sidebar"})]}),(0,n.jsx)("span",{className:"text-xs font-medium ".concat(tI||e5?"text-primary":"text-sidebar-foreground"),children:"More"})]})]})})}),(0,n.jsxs)("nav",{"aria-label":"Main navigation",className:"hidden lg:flex border-r border-neutral-400 bg-sidebar flex-col flex-shrink-0 ".concat("w-40"),children:[(0,n.jsx)("div",{className:"h-20 flex items-center px-4 flex-shrink-0",children:(0,n.jsxs)(S(),{href:"/",className:"flex items-center cursor-pointer",children:[(0,n.jsx)("div",{className:"w-8 h-8 flex-shrink-0",children:(0,n.jsx)(T.default,{src:"/icon.svg",alt:"Heirloom",width:32,height:32,className:"w-8 h-8"})}),(0,n.jsx)("span",{className:"ml-3 text-lg font-medium text-sidebar-foreground whitespace-nowrap",children:"Heirloom"})]})}),(0,n.jsx)("div",{className:"mx-3 mb-3 mt-0 h-px bg-neutral-400"}),(0,n.jsx)("div",{className:"flex-1 px-2 overflow-y-auto",children:b?Array.from({length:6}).map((e,t)=>(0,n.jsx)("div",{className:"w-full flex items-center justify-between rounded-lg p-3",children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("div",{className:"w-5 h-5 bg-neutral-200 rounded animate-pulse flex-shrink-0"}),(0,n.jsx)("div",{className:"w-24 h-4 bg-neutral-200 rounded animate-pulse ml-3"})]})},t)):tN.map(e=>{var t,r;let i=e.icon,a=tE===e.id,s=en(e),o=a?"text-sidebar-accent-foreground":"text-sidebar-foreground";return(0,n.jsx)(S(),{href:e.href,onClick:e=>{s&&(e.preventDefault(),ee.push("/onboarding/upgrade"))},"data-agent-id":"nav.".concat(e.id),className:"w-full flex items-center justify-between rounded-lg transition-all duration-200 p-3 ".concat((t=s,r=a,t?"text-muted-foreground opacity-50 cursor-pointer hover:bg-neutral-200 border border-transparent":r?"bg-neutral-300 text-sidebar-accent-foreground font-semibold border border-neutral-400":"text-sidebar-foreground hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-sm border border-transparent")),tabIndex:0,children:(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)("div",{className:"relative",children:[s?(0,n.jsx)(j.A,{className:"w-5 h-5 flex-shrink-0 text-muted-foreground"}):(0,n.jsx)(i,{className:"w-5 h-5 flex-shrink-0 ".concat(o)}),ti&&!s&&(0,n.jsx)("div",{className:"absolute -top-1 -left-1 px-1 py-0.5 bg-sidebar-foreground text-background text-xs font-semibold rounded flex items-center justify-center shadow-sm min-w-[14px] h-3.5",children:e.navKey.toUpperCase()}),"discover"===e.id&&!s&&!a&&tO&&(0,n.jsx)("output",{"aria-label":"New results",className:"absolute -top-0.5 -right-0.5 h-2.5 w-2.5 rounded-full bg-primary border-2 border-sidebar"})]}),(0,n.jsx)("span",{className:"text-sm font-medium truncate ml-3 whitespace-nowrap",children:e.label})]})},e.id)})}),tq&&tC.length>0&&(0,n.jsx)("div",{className:"px-2 pt-2 pb-2 flex-shrink-0 space-y-1",children:tC.map(e=>{let t=e.icon,r=ei===e.id,i=!!tE&&e.sections.some(e=>e.id===tE),a="toolkit"===e.id?tK:0;return(0,n.jsx)("div",{onMouseEnter:()=>eD(e.id),onMouseLeave:eK,children:(0,n.jsxs)("button",{ref:t=>{ed.current[e.id]=t},type:"button","data-agent-id":"nav.".concat(e.id),onFocus:()=>eD(e.id),onBlur:eK,"aria-expanded":r,"aria-haspopup":"menu",className:"w-full flex items-center justify-between rounded-lg transition-all duration-200 p-3 border ".concat(r||i?"bg-neutral-300 text-sidebar-accent-foreground font-semibold border-neutral-400":"text-sidebar-foreground border-transparent hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-sm"),children:[(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsxs)("div",{className:"relative",children:[(0,n.jsx)(t,{className:"w-5 h-5 flex-shrink-0"}),!r&&a>0&&(0,n.jsx)("div",{className:"absolute -top-1 -right-1 px-1 bg-primary text-white text-[10px] font-semibold rounded-full flex items-center justify-center shadow-sm min-w-[16px] h-4",children:a>9?"9+":a})]}),(0,n.jsx)("span",{className:"text-sm font-medium truncate ml-3 whitespace-nowrap",children:e.label})]}),(0,n.jsx)(k.A,{className:"w-4 h-4 flex-shrink-0"})]})},e.id)})}),(0,n.jsxs)("div",{className:"px-2 pb-3 flex-shrink-0 space-y-2",children:[tq&&tM&&(0,n.jsxs)("button",{type:"button","data-agent-id":"nav.support",onClick:ta,"aria-label":"Contact support",className:"w-full flex items-center rounded-lg transition-all duration-200 p-3 border text-sidebar-foreground border-transparent hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-sm",children:[(0,n.jsx)(m.A,{className:"w-5 h-5 flex-shrink-0"}),(0,n.jsx)("span",{className:"text-sm font-medium truncate ml-3 whitespace-nowrap",children:"Support"})]}),(0,n.jsx)(ew._,{navItem:!0})]})]}),tL&&eM&&(0,n.jsx)("nav",{"aria-label":tL.label,role:"menu",onMouseEnter:eB,onMouseLeave:eK,className:"hidden lg:block fixed z-50 w-52 rounded-2xl border border-neutral-200 bg-background py-2 shadow-[0_4px_24px_rgba(0,0,0,0.12)] before:absolute before:content-[''] before:-left-2 before:top-0 before:bottom-0 before:w-2",style:{left:eM.left,bottom:eM.bottom},children:tL.sections.map(e=>{var t,r;let i=e.icon,a=tE===e.id,s=en(e);return(0,n.jsxs)(S(),{href:s?"/onboarding/upgrade":e.href,role:"menuitem",onClick:()=>eo(null),"data-agent-id":"nav.".concat(e.id),className:"mx-1 flex items-center rounded-xl px-3 py-2.5 transition-colors ".concat((t=s,r=a,t?"text-muted-foreground opacity-50 hover:bg-neutral-100":r?"bg-neutral-100 text-foreground font-semibold":"text-sidebar-foreground hover:bg-neutral-100")),children:[(0,n.jsxs)("div",{className:"relative",children:[s?(0,n.jsx)(j.A,{className:"w-4 h-4 flex-shrink-0 text-muted-foreground"}):(0,n.jsx)(i,{className:"w-4 h-4 flex-shrink-0"}),"messaging"===e.id&&!s&&tB>0&&(0,n.jsx)("div",{className:"absolute -top-1 -right-1 px-1 bg-primary text-white text-[10px] font-semibold rounded-full flex items-center justify-center shadow-sm min-w-[16px] h-4",children:tB>9?"9+":tB})]}),(0,n.jsx)("span",{className:"text-sm truncate ml-3 whitespace-nowrap",children:e.label})]},e.id)})}),(0,n.jsxs)("div",{className:"flex-1 flex flex-col min-h-0 min-w-0 relative",children:[J&&(0,n.jsx)(em,{}),(null==f?void 0:f.isProfessional)&&!b&&(0,n.jsxs)("div",{className:"flex-shrink-0 flex items-center justify-between h-10 px-4 bg-muted/50 border-b border-neutral-200 text-sm",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[!(0,ev.ig)(f)&&eV&&(0,n.jsxs)("span",{className:"text-foreground truncate",children:[(0,n.jsx)("span",{className:"text-muted-foreground",children:"Fiduciary:"})," ",(0,n.jsx)("span",{className:"font-medium",children:eV})]}),!(0,ev.ig)(f)&&eV&&(0,ev.Kv)(f)&&(0,n.jsx)("span",{className:"text-neutral-300 flex-shrink-0",children:"|"}),(0,ev.Kv)(f)&&(0,n.jsxs)("span",{className:"text-foreground truncate",children:[(0,n.jsxs)("span",{className:"text-muted-foreground",children:[ez.label,":"]}
1)," ",(0,n.jsx)("span",{className:"font-medium",children:(0,ev.Kv)(f)})]})]}),(0,n.jsxs)("div",{className:"flex-shrink-0 hidden lg:flex items-center gap-1",children:[tv&&p&&(0,n.jsx)(ea,{heirloomId:p,heirloomName:(l=(0,ev.Kv)(f),c=(0,ev.ig)(f),d=null==f?void 0:f.name,l?c?l:"Estate of ".concat(l):d||"this Heirloom")}),(0,n.jsx)(Y.r,{}),tR]})]}),b&&!f||X&&!I||e7?(0,n.jsx)("div",{className:"flex items-center justify-center h-full",children:(0,n.jsx)(L.k,{text:"Loading..."})}):(0,n.jsxs)(n.Fragment,{children:[tn&&(0,n.jsx)("div",{className:"flex-shrink-0 bg-blue-50 text-foreground",children:(0,n.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 max-w-screen-xl mx-auto",children:[(0,n.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,n.jsx)(h.A,{className:"w-4 h-4 flex-shrink-0"}),(0,n.jsx)("p",{className:"text-sm font-medium truncate",children:1===tt?"Your free trial expires tomorrow":"".concat(tt," days left in your free trial")})]}),(0,n.jsxs)("div",{className:"flex items-center gap-2 flex-shrink-0 ml-4",children:[(0,n.jsx)(s.$,{size:"sm",asChild:!0,children:(0,n.jsx)(S(),{href:"/onboarding/upgrade",onClick:()=>(0,eh.sx)("free_trial_banner_upgrade_clicked",{days_remaining:tt}),children:"Upgrade"})}),(0,n.jsx)("button",{onClick:tr,className:"p-1 rounded-md hover:bg-blue-500 transition-colors","aria-label":"Dismiss trial banner",children:(0,n.jsx)(w.A,{className:"w-4 h-4"})})]})]})}),!(null==f?void 0:f.isProfessional)&&tq&&(0,n.jsxs)("div",{className:"flex-shrink-0 hidden lg:flex items-center justify-end h-10 px-4 gap-1",children:[tb&&tw&&(0,n.jsx)(Q.$,{}),(0,n.jsx)(Y.r,{}),tR]}),(0,n.jsx)("div",{className:"flex-1 min-h-0 overflow-y-auto pb-16 lg:pb-0",children:u})]})]}),eZ&&(0,n.jsxs)("div",{className:"hidden lg:flex flex-shrink-0 border-l border-sidebar-border bg-background h-full relative",style:{width:e1},children:[(0,n.jsx)("button",{className:"absolute left-0 top-0 h-full w-2 cursor-col-resize z-50 bg-transparent hover:bg-muted transition border-0 p-0",onMouseDown:th,style:{userSelect:"none"},"aria-label":"Resize resources panel",onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),to())}}),(0,n.jsx)(eA,{isOpen:eZ,onClose:to,data:e$,width:e1,hasExternalContainer:!0})]}),(0,n.jsx)(M.lG,{open:e_,onOpenChange:eF,children:(0,n.jsxs)(M.Cf,{className:"max-w-full w-full h-[90vh] max-h-[90vh] p-0 gap-0 flex flex-col lg:hidden overflow-hidden",children:[(0,n.jsxs)(M.L3,{className:"sr-only",children:["Learn More - ",null==e$?void 0:e$.stepTitle]}),(0,n.jsx)(eA,{isOpen:e_,onClose:()=>eF(!1),data:e$,width:400,isModal:!0})]})}),tM&&(0,n.jsx)("button",{"data-agent-id":"nav.support",onClick:ta,className:"lg:hidden fixed right-4 z-[45] w-12 h-12 rounded-full bg-primary text-primary-foreground shadow-lg flex items-center justify-center transition-transform hover:scale-105 active:scale-95 ".concat(e8.startsWith("/app/tasks")?"bottom-32":"bottom-20"),"aria-label":"Contact support",children:(0,n.jsx)(m.A,{className:"w-5 h-5"})})]})}),(0,n.jsx)(q,{})]})})]})}function eq(e){let{children:t}=e;return(0,n.jsx)(I.q,{requireMfa:!1,children:(0,n.jsx)(i.Suspense,{fallback:(0,n.jsx)("div",{className:"h-[100dvh] flex items-center justify-center bg-secondary",children:(0,n.jsx)(L.k,{text:"Loading..."})}),children:(0,n.jsx)(D.vT,{children:(0,n.jsx)(B.T,{children:(0,n.jsx)(eM,{children:t})})})})})}},32521:(e,t,r)=>{r.d(t,{Mx:()=>s,nM:()=>l,pq:()=>o,qz:()=>a,xb:()=>i});var n=r(66076);let i=["real-estate","business","mineral-royalty","cooperative","checking","investment","retirement","life-insurance","annuity","crypto","digital-wallet","unclaimed-property","credit-card","debt","property-loan","personal-loan","medical-debt","vehicle","storage","personal-property","membership","intellectual-property","litigation","other-asset","other-liability","employment-income","self-employment-income","rental-income","government-benefits","real-estate-proceeds","other-income"],a="unclaimed-property";function s(e){if(e===a)return"Unclaimed Property";let t=n.GH.find(t=>t.id===e);return(null==t?void 0:t.name)||e.charAt(0).toUpperCase()+e.slice(1).replaceAll("-"," ")}function o(e,t){if("missing-money"===t)return a;
1if("naic"===t)return"life-insurance";let r=n.GH.find(t=>t.id===e.type);if(r)return r.id;let i=n.XE[e.type];return i||("property"===e.type?"real-estate":"business"===e.type?"business":"debt"===e.type||e.isLiability?"debt":"plaid"===t||"disclosure"===t?"checking":e.isLiability?"other-liability":"other-asset")}function l(e){return"pending"===e||"processing"===e||"in_progress"===e}},38491:(e,t,r)=>{r.d(t,{Rs:()=>u,Av:()=>l});var n=r(66076),i=r(32521);let a={database:85,"missing-money":60,disclosure:99,report:99,"intellectual-property":55,email:50,plaid:50},s=new Set(["email","plaid"]);function o(e){if("number"==typeof e&&Number.isFinite(e))return Math.min(100,Math.max(0,Math.round(e)))}function l(e,t){let r=!!(e.sourceDiscoveryId&&e.sourceResultId);return!!t&&r&&!e.archivedAt&&!t.has(e.id)}function c(e){return{id:e.id,kind:"property",raw:e,name:e.name,typeLabel:e.tppType?(0,n.vj)(e.tppType):"Tangible Physical Property",categoryId:e.tppType||"personal-property",value:e.estimatedValue,description:e.description,notes:e.notes,isLiability:!1,isIncome:!1,isClosed:!1,isDiscovered:!1,isArchived:!!e.archivedAt,isNew:!1,isInactive:!1}}function d(e,t){let r=new Map;for(let t of e){let e=r.get(t.categoryId);e?e.push(t):r.set(t.categoryId,[t])}return[...r.keys()].sort((e,t)=>{let r=i.xb.indexOf(e),n=i.xb.indexOf(t);return(-1===r?Number.MAX_SAFE_INTEGER:r)-(-1===n?Number.MAX_SAFE_INTEGER:n)}).map(e=>({categoryId:e,items:r.get(e).sort(t)}))}function u(e,t,r,u,m,f){var p;let h=function(e){let t=new Map;for(let a of e){var r,n,i;for(let e of null!=(r=a.businessNameResults)?r:[])for(let r of null!=(n=e.results)?n:[])t.set("".concat(a.id,":").concat(r.id),{result:r,discovery:a,businessName:e.businessName});for(let e of null!=(i=a.results)?i:[])t.set("".concat(a.id,":").concat(e.id),{result:e,discovery:a})}return t}(r),g=new Map(r.map(e=>[e.id,e.type])),b=[...e.filter(e=>!e.mergedIntoId).map(e=>(function(e,t,r,c,d){var u,m,f,p,h,g,b;let y=!!(e.sourceDiscoveryId&&e.sourceResultId),v=y?t.get("".concat(e.sourceDiscoveryId,":").concat(e.sourceResultId)):void 0,x=(0,i.pq)({id:e.id,name:e.institutionName,type:e.accountTypeId,isLiability:e.isLiability},null!=(u=null==v?void 0:v.discovery.type)?u:""),w=!!e.archivedAt,j=y?null!=(m=e.reviewStatus)?m:"unreviewed":void 0,N=(h=e,g=y,"boolean"==typeof h.isClosed?h.isClosed:g&&!!(b=h.notes)&&/\b(closed|closure)\b/i.test(b)),k=null!=(f=e.isCurrentOwner)?f:null==v?void 0:v.result.isCurrentOwner,C=null!=(p=e.ownershipNote)?p:null==v?void 0:v.result.ownershipNote,A=!1===k,S=function(e){if("intellectual-property"===e.accountTypeId)return{ipType:e.ipType,filingDate:e.filingDate,status:e.ipStatus,sourceUrl:e.sourceUrl}}(e),T=(null==S?void 0:S.status)==="expired",I=null==v?void 0:v.result.currentOwnerBusinessName,E=null!=I?I:null==v?void 0:v.businessName;return{id:e.id,kind:"account",raw:e,name:e.institutionName,typeLabel:(0,n.vj)(e.accountTypeId),categoryId:x,value:e.estimatedValue||e.balance,valuation:e.valuation,source:e.source,confidence:y?function(e){let{stored:t,resultConfidence:r,discoveryType:n,source:i}=e,l=o(t);if(void 0!==l)return l;let c=o(r);return void 0!==c?s.has(null!=n?n:"")?Math.min(c,99):c:n?("report"===n||"disclosure"===n)&&"Uploaded document"===i?90:a[n]:void 0}({stored:e.confidence,resultConfidence:null==v?void 0:v.result.confidence,discoveryType:r.get(e.sourceDiscoveryId),source:e.source}):void 0,identifierLabel:function(e){var t,r;let i=null==(t=e.lastFourDigits)?void 0:t.trim();if(i&&i.toLowerCase()!==(null==(r=e.institutionName)?void 0:r.trim().toLowerCase()))return(0,n.$r)(e.accountTypeId,i)}(e),notes:e.notes,isLiability:!!e.isLiability,isIncome:(0,n.S1)(e.accountTypeId),isClosed:N,isDiscovered:y,isArchived:w,isNew:l(e,c),reviewStatus:j,firstSeenAt:e.firstSeenAt,discoveryId:e.sourceDiscoveryId,resultId:e.sourceResultId,emails:null==v?void 0:v.result.emails,transactions:null==v?void 0:v.result.transactions,hasReport:!!(null==v?void 0:v.discovery.hasReport),sources:d,sourceEmail:null==v?void 0:v.discovery.email,owner:function(e,t,r){if(e)return t?{kind:"business",label:t,isOwnerOfRecord:r}:{kind:"individual",label:"Individual"}}(y,E,!!I),isInactive:N||A||T,inactiveReason:N?"closed":A?"former-
1owner":T?"expired":void 0,ownershipNote:A||I?C:void 0,ip:S}})(e,h,g,m,null==f?void 0:f[e.id])),...t.map(c)];for(let e of b)e.isNew&&(null==u||u.add(e.id));let y=(p=u?e=>u.has(e.id):e=>e.isNew,(e,t)=>{let r=p(e);if(r!==p(t))return r?-1:1;let n=e.firstSeenAt?Date.parse(e.firstSeenAt):0,i=t.firstSeenAt?Date.parse(t.firstSeenAt):0;return n!==i?i-n:e.name.localeCompare(t.name)}),v=b.filter(e=>!e.isArchived),x=b.filter(e=>e.isArchived).sort(y),w=v.filter(e=>e.isIncome),j=v.filter(e=>!e.isLiability&&!e.isIncome),N=v.filter(e=>e.isLiability&&!e.isIncome);return{assets:d(j,y),liabilities:d(N,y),income:d(w,y),archived:x,newCount:v.filter(e=>e.isNew).length,assetCount:j.length,liabilityCount:N.length,incomeCount:w.length,archivedCount:x.length}}},39769:(e,t,r)=>{function n(e,t){let r=e?"Decedent":"Loved One",n=e?"Decedent's":"Loved One's",i=(null==t?void 0:t.trim())||null;return e?{subject:"the decedent",possessive:"the decedent's",label:r,labelPossessive:n,name:i}:{subject:"your loved one",possessive:"your loved one's",label:r,labelPossessive:n,name:i}}function i(e,t,r){if("living"===e){let e=(null==r?void 0:r.trim())||null;return t?{subject:e||"the client",possessive:e?"".concat(e,"'s"):"the client's",label:"Client",labelPossessive:"Client's",name:e}:{subject:"you",possessive:"your",label:"You",labelPossessive:"Your",name:e}}return n(t,r)}function a(e,t,r){return"living"===e?{contact:"Contact Information",subject:t?"Client Information":"Your Information"}:{contact:"Fiduciary Information",subject:"".concat(n(t,r).label," Information")}}function s(e,t){return t?e.replace(/\byour loved one's\b/gi,"the decedent's").replace(/\byour loved one\b/gi,"the decedent"):e}r.d(t,{Ut:()=>a,YP:()=>n,cI:()=>s,yU:()=>i})},41322:(e,t,r)=>{r.d(t,{KW:()=>i});var n=r(12115);function i(e){let{shortcuts:t,dependencies:r=[],enabled:i=!0}=e;(0,n.useEffect)(()=>{if(!i)return;let e=e=>{let r=document.activeElement;if(r&&("INPUT"===r.tagName||"TEXTAREA"===r.tagName||"SELECT"===r.tagName||"true"===r.getAttribute("contenteditable"))||e.ctrlKey||e.metaKey||e.altKey)return;let n=t.find(t=>t.key===e.key);n&&(!1!==n.preventDefault&&e.preventDefault(),n.handler())};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)}},[t,i,...r])}},47889:(e,t,r)=>{r.d(t,{N:()=>s,d:()=>a});var n=r(12553),i=r(2479);function a(e){if(!e)return!1;try{return(0,n.VO)(e).enrolledFactors.length>0}catch(e){return i.vF.error("[hasMfa] Error checking MFA:",e),!1}}async function s(e){if(!e)return!1;try{await e.reload()}catch(e){i.vF.error("[reloadAndHasMfa] Error reloading user:",e)}return a(e)}},66076:(e,t,r)=>{r.d(t,{$r:()=>x,Dd:()=>n,GH:()=>o,KW:()=>l,L3:()=>s,S1:()=>f,U8:()=>d,XE:()=>c,YX:()=>a,m0:()=>m,qF:()=>i,vj:()=>u});let n=[{id:"checking",name:"Checking & Savings",description:"Bank accounts, credit unions, etc",category:"asset",requiresBeneficiary:!0,icon:"\uD83C\uDFE6"},{id:"investment",name:"Investment Account",description:"Brokerage, mutual funds, stocks, bonds, treasury assets",category:"asset",requiresBeneficiary:!0,icon:"\uD83D\uDCC8"},{id:"retirement",name:"Retirement Account",description:"401k, IRA, HSA, pension plans, 403b",category:"asset",requiresBeneficiary:!0,icon:"\uD83C\uDFD6ï¸"},{id:"crypto",name:"Cryptocurrency",description:"Bitcoin, Ethereum, crypto exchanges, wallets",category:"asset",requiresBeneficiary:!1,icon:"â¿"},{id:"business",name:"Business Ownership",description:"LLC, partnership, corporation, sole proprietorship interests",category:"asset",requiresBeneficiary:!1,icon:"\uD83C\uDFE2"},{id:"intellectual-property",name:"Intellectual Property",description:"Patents, trademarks, copyrights, royalties",category:"asset",requiresBeneficiary:!1,icon:"\uD83D\uDCA1"},{id:"mineral-royalty",name:"Mineral & Royalty Interests",description:"Oil, gas & mineral rights and royalty interests (energy, timber, patents)",category:"asset",requiresBeneficiary:!1,icon:"\uD83D\uDEE2ï¸"},{id:"cooperative",name:"Cooperative Interest",description:"Farm/agricultural cooperative equity, patronage dividends, and retained patronage",category:"asset",requiresBeneficiary:!1,icon:"\uD83C\uDF3E"},{id:"life-insurance",name:"Life Insurance",description:"Term life, whole life, universal life policies",category:"asset",requiresBeneficiary:!0,icon:"\uD83D\uDEE1ï¸"},{id:"annuity",name:"Annuity",description:"Fixed, variable, and indexed annuity contracts",category:"asset",requiresBeneficiary:!0,icon:"\uD83D\uDCCA"},{id:"digital-wallet",name:"Digital Wallet",description:"PayPal, Venmo, Cash App, digital payment accounts",category:"asset",requiresBeneficiary:!1,icon:"\uD83D\uDCB3"},{id:"membership",name:"Membership",description:"Country club memberships, timeshares, other valuable memberships",category:"asset",requiresBeneficiary:!1,icon:"\uD83C\uDFAB"},{id:"unclaimed-property",name:"Unclaimed Property",description:"Unclaimed property held by the state or an institution",category:"asset",requiresBeneficiary:!1,icon:"\uD83D\uDD0D"},{id:"other-asset",name:"Other",description:"Any other asset not listed above",category:"asset",requiresBeneficiary:!1,icon:"\uD83D\uDCC1"}],i=[{id:"credit-card",name:"Credit Card",description:"Credit card accounts and balances",category:"liability",requiresBeneficiary:!1,icon:"\uD83D\uDCB3"},{id:"property-loan",name:"Property Loan",description:"Mortgages, HELOC, home equity loans",category:"liability",requiresBeneficiary:!1,icon:"\uD83C\uDFE0"},{id:"personal-loan",name:"Personal Loan",description:"Personal loans, auto loans, student loans",category:"liability",requiresBeneficiary:!1,icon:"\uD83D\uDCB0"},{id:"medical-debt",name:"Medical Debt",description:"Medical bills, hospital debt, healthcare expenses",category:"liability",requiresBeneficiary:!1,icon:"âï¸"},{id:"litigation",name:"Litigation",description:"Ongoing lawsuits, legal judgments, court-ordered payments",category:"liability",requiresBeneficiary:!1,icon:"âï¸"},{id:"debt",name:"Debt",description:"Judgments, liens, and other debt records",category:"liability",requiresBeneficiary:!1,icon:"\uD83D\uDCCB"},{id:"other-liability",name:"Other",description:"Any other liability not listed above",category:"liability",requiresBeneficiary:!1,icon:"\uD83D\uDCC1"}],a=[{id:"employment-income",name:"Employment Income (W-2)",description:"Wages reported on a W-2 â points to a final paycheck, PTO, and employer benefits",category:"income",requiresBeneficiary:!1,icon:"\uD83D\uDCBC"},{id:"self-employment-income",name:"Self-Employment Income",description:"Contractor / 1099-NEC / 1099-K income â points to a business or receivables",category:"income",requiresBeneficiary:!1,icon:"\uD83E\uDDFE"},{id:"rental-income",name:"Rental Income",description:"Rents reported on a 1099-MISC â points to rented land or property",category:"income",requiresBeneficiary:!1,icon:"\uD83D\uDD11"},{id:"government-benefits",name:"Government Benefits & Payments",description:"Social Security, Railroad Retirement, and government payments/subsidies (SSA-1099, RRB-1099, 1099-G)",category:"income",requiresBeneficiary:!1,icon:"\uD83C\uDFDBï¸"},{id:"real-estate-proceeds",name:"Real Estate Proceeds",description:"One-time proceeds from a real estate transaction (1099-S) â a sale, or a right-of-way easement / land purchase that may signal land the estate still owns",category:"income",requiresBeneficiary:!1,icon:"\uD83C\uDFDEï¸"},{id:"other-income",name:"Other Income",description:"Other reported income â 1099-MISC other income, crop insurance, gambling winnings",category:"income",requiresBeneficiary:!1,icon:"\uD83D\uDCB5"}],s=[{id:"real-estate",name:"Real Estate",description:"Houses, condos, land, rental properties",category:"tpp",icon:"\uD83C\uDFE0"},{id:"vehicle",name:"Vehicle",description:"Cars, trucks, motorcycles, boats, RVs",category:"tpp",icon:"\uD83D\uDE97"},{id:"storage",name:"Storage Unit",description:"Storage facilities, safe deposit boxes",category:"tpp",icon:"\uD83D\uDCE6"},{id:"personal-property",name:"Tangible Physical Property",description:"Valuables, collectibles, jewelry, art, furniture",category:"tpp",icon:"\uD83D\uDC8E"}],o=[...n,...i,...a,...s];[...n,...i];let l=[{label:"Asset",types:[...n,...s.filter(e=>"personal-property"!==e.id)]},{label:"Miscellaneous income",types:a},{label:"Liability",types:i}],c={"Checking Account":"checking","Savings Account":"checking","Brokerage Account":"investment","Investment Account":"investment","Treasury Asset":"investment","Stock Options":"investment","Retirement Account":"retirement","Crypto Account":"crypto","Business Interest":"business","Life Insurance":"life-insurance","Funeral Insurance":"life-insurance",Annuity:"annuity","Digital Wallet":"digital-wallet","Country Club Membership":"membership","Credit Card":"credit-card","Personal Loan":"personal-loan","Property Loan":"property-loan","Medical Debt":"medical-debt","Auto Loan":"personal-loan","Student Loan":"personal-loan",Vehicle:"vehicle","Real Estate":"real-estate","Storage Unit":"storage"};function d(e){return o.find(t=>
1t.id===e)}function u(e){let t=d(e);return(null==t?void 0:t.name)||e.charAt(0).toUpperCase()+e.slice(1)}function m(e){return i.some(t=>t.id===e)}function f(e){return a.some(t=>t.id===e)}let p="â¢â¢",h=new Set(["business","intellectual-property","life-insurance","annuity","digital-wallet","membership","mineral-royalty","cooperative","employment-income","self-employment-income","rental-income","government-benefits","other-income","real-estate-proceeds"]),g=/^(?:policy|account|card|loan|contract|membership|member|business\s+type|ip\s+type|username|payer|transaction\s+reference)\b[\s#:.-]*/i,b=/\bending\b[\s.]*(?:in\b[\s.]*)?([\w-]+)$/i,y=/^[*x#â¢.\s_-]+/i,v=/[^\dA-Za-z]/g;function x(e,t){let r=t.trim();if(!r)return r;let n=b.exec(r);if(n)return"".concat(p).concat(n[1]);let i=r.replace(g,"").trim()||r;if(h.has(e)||/\s/.test(i))return i;let a=i.replace(y,""),s=a.replaceAll(v,"");return s?"".concat(p).concat(s.length>4?s.slice(-4):a):""}},69490:(e,t,r)=>{r.d(t,{AS:()=>f,Lw:()=>g,az:()=>m,be:()=>u,hV:()=>d,it:()=>p,qu:()=>h});var n=r(95205),i=r(47889),a=r(20860),s=r(20551),o=r(36236),l=r(1015),c=r(87298);function d(e){if(!e)return!1;if("professional"===e.ownerModel||e.createdByProfessionalId||e.hasProfessional)return!0;let t=!!((0,n.Kv)(e)&&(0,n.ad)(e)&&(0,n.gr)(e));return(0,n.ig)(e)?t:!!(t&&e.relationship&&e.isVeteran)}function u(e,t,r){var n,s;let o,l=r||[],c=void 0===globalThis.window?null:localStorage.getItem("currentHeirloomId");c&&(o=l.find(e=>e.id===c)),null!=o||(o=1===l.length?l[0]:void 0);let u=!!((0,a.Bm)(o)&&!(null==o?void 0:o.trialPaymentMethodId)&&!(null==t?void 0:t.hasUsedFreeTrial));return{hasHeirloom:l.length>0,hasSelectedHeirloom:!!o,heirloomCount:l.length,isProfileComplete:!!t&&!!(t.firstName&&t.lastName),isHeirloomComplete:d(o),isEmailVerified:null!=(n=null==e?void 0:e.emailVerified)&&n,hasMfa:!!e&&(0,i.d)(e),hasUsedFreeTrial:null!=(s=null==t?void 0:t.hasUsedFreeTrial)&&s,hasPromoCode:!!(null==t?void 0:t.promoCode),isProfessionalAccount:(null==t?void 0:t.accountType)==="professional",professionalOnboardingComplete:!!(null==t?void 0:t.professionalOnboardingComplete),needsPasswordSetup:!!(null==t?void 0:t.needsPasswordSetup),needsCreditCardTrial:u}}function m(e){let t=e.isProfessionalAccount?"/app/organization":"/app/home";return e.isProfessionalAccount?e.needsPasswordSetup?"/onboarding/employee":e.hasMfa?t:"/onboarding/setup-mfa":e.needsPasswordSetup?"/onboarding/set-password":e.isEmailVerified?e.hasMfa?!e.hasSelectedHeirloom&&e.heirloomCount>1?"/onboarding/select-heirloom":e.isProfileComplete&&e.isHeirloomComplete?e.hasHeirloom?e.needsCreditCardTrial?"/onboarding/start-trial":t:"/onboarding/pricing":"/onboarding/about-you":"/onboarding/setup-mfa":"/onboarding/verify-email"}function f(e){return(null==e?void 0:e.accountType)==="professional"?"/app/organization":"/app/home"}function p(e,t,r){return m(u(e,t,r))}function h(e){return e.ensureQueryData({queryKey:[l.VN],queryFn:s.VM,staleTime:3e4})}function g(e){return e.ensureQueryData({queryKey:c.mn,queryFn:async()=>(await (0,o.dj)()).heirlooms||[],staleTime:3e4})}},81222:(e,t,r)=>{r.d(t,{H2:()=>s,OH:()=>o,_m:()=>i,cB:()=>c,oN:()=>l,tE:()=>a,vx:()=>d});var n=r(99929);function i(e,t){return!!e&&!!e[t]}async function a(e,t){return(0,n.A)({path:"/plan/people/save",method:"POST",params:{person:e,heirloomId:t}})}async function s(e,t){return(0,n.A)({path:"/plan/people/".concat(e),method:"DELETE",params:{heirloomId:t}})}async function o(e,t,r,i){return(0,n.A)({path:"/plan/people/grant-access",method:"POST",params:{heirloomId:t,personId:r,role:e,permissions:i}})}async function l(e,t,r){return(0,n.A)({path:"/plan/people/revoke-access",method:"POST",params:{heirloomId:t,personId:r,role:e}})}async function c(e){return(0,n.A)({path:"/plan/people",method:"GET",params:{heirloomId:e}})}async function d(e,t,r){return(0,n.A)({path:"/plan/people/accept-invite",method:"POST",params:{inviteToken:t,heirloomId:r,role:e}})}},82180:(e,t,r)=>{r.d(t,{Bc:()=>s,ZI:()=>c,k$:()=>l,m_:()=>o});var n=r(95155);r(12115);var i=r(26852),a=r(64936);function s(e){let{delayDuration:t=0,...r}=e;return(0,n.jsx)(i.Kq,{"data-slot":"tooltip-provider",delayDuration:t,...r})}function o(e){let{...t}=e;return(0,n.jsx)(s,{children:(0,n.jsx)(i.bL,{"data-slot":"tooltip",...t})})}function l(e){let{...t}=e;return(0,n.jsx)(i.l9,{"data-slot":"tooltip-trigger",...t})}function c(e){let{className:t,sideOffset:r=0,children:s,...o}=e;return(0,n.jsx)(i.ZL,{children:(0,n.jsx)(i.UC,{"data-slot":"tooltip-content",sideOffset:r,className:(0,a.cn)("bg-primary text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
1de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t),...o,children:s})})}},83729:(e,t,r)=>{r.d(t,{BD:()=>c,OV:()=>l,Z5:()=>n,km:()=>s,zx:()=>o});let n="returnTo",i="postLoginReturnTo";function a(e){let t;if(!e)return null;try{t=decodeURIComponent(e)}catch(e){return null}return!t.startsWith("/app/")||t.startsWith("//")||t.includes("\\")?null:t}function s(e){let t=a(e);if(!t||void 0===globalThis.window)return t;try{sessionStorage.setItem(i,t)}catch(e){}return t}function o(e){var t;return null!=(t=a(e))?t:a(function(){if(void 0===globalThis.window)return null;try{return sessionStorage.getItem(i)}catch(e){return null}}())}function l(e){let t=o(e);if(void 0!==globalThis.window)try{sessionStorage.removeItem(i)}catch(e){}return t}function c(e,t){var r;return"/app/home"!==e&&"/app/organization"!==e?e:null!=(r=l(t))?r:e}},95205:(e,t,r)=>{function n(e){return(null==e?void 0:e.caseType)==="living"}function i(e){var t;return null!=(t=null==e?void 0:e.subjectName)?t:null==e?void 0:e.decedentName}function a(e){var t;return null!=(t=null==e?void 0:e.subjectState)?t:null==e?void 0:e.decedentState}function s(e){var t;return null!=(t=null==e?void 0:e.subjectZip)?t:null==e?void 0:e.decedentZip}r.d(t,{Kv:()=>i,ad:()=>a,gr:()=>s,ig:()=>n})},99884:(e,t,r)=>{r.d(t,{h:()=>i});var n=r(95155);function i(e){let{className:t=""}=e;return(0,n.jsx)("div",{className:"w-full ".concat(t),children:(0,n.jsxs)("p",{className:"text-xs text-muted-foreground text-center",children:["Heirloom is not a lawyer and can only provide self-help services at your specific direction."," ",(0,n.jsx)("a",{href:"/terms-of-service",target:"_blank",rel:"noopener noreferrer",className:"underline text-muted-foreground hover:text-foreground",children:"Terms of Service"}),"."]})})}r(12115)}}]);
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.