PageSourceSearch

https://plan.reachfi.ai/_next/static/chunks/5565.3368dbcbf3916094.js

js reachfi.ai collected 2026-10-05 15:48:59 UTC 12,686 bytes, 1 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="11a7eec5-cf37-483a-b841-a8ae00d60eb2",e._sentryDebugIdIdentifier="sentry-dbid-11a7eec5-cf37-483a-b841-a8ae00d60eb2")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5565],{15565:function(e,t,a){a.r(t),a.d(t,{default:function(){return x}});var n=a(57437),i=a(2265),l=a(31691);a(23919);var r=a(29193),o=a(57274),s=a(68575);a(2648);var d=a(10012),c=a(99376),u=a(5064),p=a(38502);a(79667),a(90193),a(36021),a(8350),a(907),a(47835),a(84604);var x=e=>{var t,a,x,m,h,g,f,y,v;let{moduleName:j}=e;(0,l.Z)();let{simulationLoading:b,limitErrorMessage:w,simulationErrorMessage:C,alignment:Z,todaysDollar:S,simulationRuns:k,simulationSummary:_}=(0,r.C)(e=>e.singleSimulation),{simulationRuns:R}=(0,r.C)(e=>e.summary),{selectedJourney:N}=(0,r.C)(e=>e.journey);(0,c.useRouter)();let{fullInfo:z}=(0,r.C)(e=>e.user),[D]=(0,u.Ad)(),{darkMode:I,theme:T}=D,{contributionData:A}=(0,r.C)(e=>e.contr),{investmentData:O}=(0,r.C)(e=>e.invest),{realEstateData:q}=(0,r.C)(e=>e.realestate),{queries:E}=(0,r.C)(e=>e.incomeApi),{queries:W}=(0,r.C)(e=>e.expenseApi),{queries:F}=(0,r.C)(e=>e.debtApi),{queries:M}=(0,r.C)(e=>e.realestateTransactionApi),{queries:$}=(0,r.C)(e=>e.investmentApi),{queries:B}=(0,r.C)(e=>e.contributionApi),{queries:P}=(0,r.C)(e=>e.scenarioPlanningApi),{queries:J}=(0,r.C)(e=>e.assumptionsApi),{queries:V}=(0,r.C)(e=>e.goalsApi);null==J||null===(t=J["getFinalAssumptions(".concat(JSON.stringify({journey_id:N.id}),")")])||void 0===t||t.data,null==J||null===(a=J["getTaxBrackets(".concat(JSON.stringify({journey_id:N.id}),")")])||void 0===a||a.data,null==J||null===(x=J["getStateTaxBrackets(".concat(JSON.stringify({journey_id:N.id,state:null}),")")])||void 0===x||x.data,null==J||null===(m=J["getWithdrawalOrder(".concat(JSON.stringify({journey_id:N.id}),")")])||void 0===m||m.data,null==P||null===(h=P["getRelocationScenario(".concat(JSON.stringify({journey_id:N.id}),")")])||void 0===h||h.data,null==M||null===(g=M["getRealEstateTransactionData(".concat(JSON.stringify({journey_id:N.id}),")")])||void 0===g||g.data;let G=null==V?void 0:null===(f=V["householdSubGoals({})"])||void 0===f?void 0:f.data;null==G||G.map(e=>e.householdGoals);let[Y,H]=(0,i.useState)(null);return(0,s.I0)(),(0,i.useEffect)(()=>{_&&_.summaryRecord&&(console.log("[ExpenseSimulation] \uD83D\uDD04 Simulation summary updated from external source, refreshing display"),console.log("[ExpenseSimulation] Summary ID:",_.summaryRecord.summary_id),console.log("[ExpenseSimulation] Run Date:",_.summaryRecord.runDate))},[null==_?void 0:null===(y=_.summaryRecord)||void 0===y?void 0:y.summary_id,null==_?void 0:null===(v=_.summaryRecord)||void 0===v?void 0:v.runDate]),(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("div",{className:"w-full px-3 py-2 rounded-xl border bg-white text-gray-900 shadow-md shadow-gray-300 \n        dark:bg-customBlack-light dark:text-white dark:border-neutral-800 dark:shadow-gray-800\n        transition-all ",children:[" ",b&&(0,n.jsx)(o.Z,{type:"summary",height:"60%"}),!b&&(0,n.jsxs)("div",{children:[" ","summary"===Z&&(0,n.jsx)(d.Z,{journeyId:N.id})," "]}),(0,n.jsx)(p.c,{containerId:"Simulation"})]})})}},10012:function(e,t,a){a.d(t,{Z:function(){return z}});var n=a(57437),i=a(29193),l=a(13898),r=a(2265),o=a(84151),s=a(99376),d=a(34864),c=a(74173),u=a(13476),p=a(95054),x=a(37123),m=a(52894),h=a(26228),g=a(31691),f=a(8350),y=a(79667),v=a(19630),j=a(90193),b=a(30912),w=a(53931),C=a(5064),Z=a(91640),S=a(31827),k=a(84604),_=e=>{let{options:t,onDropDownChange:a,addContent:i,showAvatar:l,selectedValue:o}=e,s=(0,g.Z)(),[d]=(0,C.Ad)(),{darkMode:c}=d,[u,p]=(0,r.useState)(o||null),x=()=>(null==t?void 0:t.length)>0?null==t?void 0:t.findIndex(e=>e.name===(null==u?void 0:u.name)):0;return(0,n.jsxs)(h.h_,{children:[(0,n.jsx)(h.$F,{asChild:!0,children:(0,n.jsxs)(y.Z,{sx:{borderRadius:"5px",border:c?"1px solid ".concat(s.palette.black.main," !important"):"1px solid ".concat(v.TX," !important"),padding:"5px 20px 5px 7px",fontSize:"small",color:v.TX,minWidth:"150px",display:"flex",justifyContent:"space-between"},children:[(0,n.jsxs)(y.Z,{display:"flex",children:[l&&(0,n.jsx)(b.Z,{size:"lg",variant:"rounded",sx:{height:"25px",width:"25px",backgroundColor:(0,k.C)(x()),boxSh
1adow:"0px 2px 6px ".concat(s.palette.coloredShadows.avatarCard)},children:(0,n.jsx)(w.V,{index:x()})}),(0,n.jsxs)(j.Z,{variant:"h6",sx:{fontSize:"15px",fontWeight:"light",paddingLeft:"10px"},children:[" ",null==u?void 0:u.name]})]}),(0,n.jsx)(Z.Z,{sx:{fontSize:"23px !important"},style:{padding:"0px",margin:"0px -15px 0px -2px"}})]})}),(0,n.jsx)(h.AW,{className:"w-56",style:{backgroundColor:s.palette.ddl.main,padding:"5px 0px",borderRadius:"10px",boxShadow:c?"".concat(s.boxShadows.around," !important"):"".concat(v.TX," 0px 0px 5px 0px"),zIndex:1200,minWidth:"150px"},children:(0,n.jsxs)(h._x,{value:u?u.id.toString():"",onValueChange:e=>{let n=t.find(t=>t.id===Number(e));p(n),a(n)},style:{maxHeight:"400px",overflow:"auto"},children:[null==t?void 0:t.map((e,t)=>(0,n.jsx)(h.qB,{selected:(null==u?void 0:u.id)===e.id,value:e.id.toString(),children:(0,n.jsxs)(j.Z,{sx:{fontSize:"small",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[l&&(0,n.jsx)(b.Z,{size:"lg",variant:"rounded",sx:{height:"25px",width:"25px",backgroundColor:(0,k.C)(t),boxShadow:"0px 2px 6px ".concat(s.palette.coloredShadows.avatarCard)},children:(0,n.jsx)(w.V,{index:t})}),(0,n.jsxs)(j.Z,{variant:"h6",sx:{fontSize:"16px",fontWeight:"light",paddingLeft:"10px"},children:[" ",e.name]})]})},e.id)),i&&i.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(f.Z,{style:{margin:"5px 0px",background:v.o2}}),(0,n.jsx)(h.qB,{value:i,onClick:()=>{},children:(0,n.jsxs)(j.Z,{sx:{fontSize:"small",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsx)(S.Z,{sx:{marginRight:"5px",background:(0,k.C)(0),borderRadius:"3px",padding:"4px",height:"25px",width:"25px",color:"white !important"}}),(0,n.jsx)(j.Z,{sx:{fontSize:"16px"},children:i})]})},i)]})]})})]})},R=a(81741),N=a(9297),z=e=>{var t;let{journeyId:a}=e,{projectionData:h,percentAlignment:g,todaysDollar:f,simulationRuns:y,compareProjection:v,simulationSummary:j}=(0,i.C)(e=>e.singleSimulation),{selectedJourney:b}=(0,i.C)(e=>e.journey),{setAssumptionsData:{inflation_rate:w}}=(0,i.C)(e=>e.financialAssumptions),C=(0,i.T)(),Z=(0,s.usePathname)()===d.yA,[S,k]=(0,r.useState)({name:"In 5 Years",id:5}),[z,D]=(0,r.useState)("overview"),I=null==v?void 0:v.find(e=>e.journey_id===a),T=Z?a:b.id,A=((null==j?void 0:j.goalprogress)||[]).filter(e=>(null==e?void 0:e.journey_id)===T),{summaryMappedData:O}=(0,l.R)(Z?I:h),q=Z?null==I?void 0:I.simulationReturnSummary:null===(t=y[0])||void 0===t?void 0:t.simulationReturnSummary,E=new Date().getFullYear(),W=(e,t)=>f?(0,c.i)(e,E+("In 5 Years"===t?5:10),Number(w||0)):e,F=(e,t)=>"3per"===t?.03*e:"3.5per"===t?.035*e:.04*e,M=(e,t,n)=>{let i=W(e,n);if(g[t]){let e=F(i,g[Z?"".concat(t,"+").concat(a):t]);return"".concat(e<0?"-$":"$").concat((0,u.b)(Math.abs(e)))}return"".concat(e<0?"-$":"$").concat((0,u.b)(Math.abs(i)))};return(0,r.useEffect)(()=>{Z&&C((0,x.ax)({...g,["withdrawal1+".concat(a)]:"4per",["withdrawal2+".concat(a)]:"4per"}))},[a]),(0,n.jsxs)("div",{children:[(0,n.jsx)(o.Z,{data:q,showMainSummaryOnly:!0,showPenaltyWithdrawalReturn:!1}),(0,n.jsx)("div",{className:"flex flex-wrap justify-center md:justify-end gap-2 mb-6 mt-4 text-gray-500 dark:text-gray-500",children:["overview","goals","retirement"].map(e=>(0,n.jsx)("button",{onClick:()=>D(e),className:"px-4 py-1.5 text-sm font-medium rounded-full transition ".concat(z===e?"bg-gray-200 text-black dark:bg-neutral-700 dark:text-white":"text-gray-500 hover:text-black dark:text-white dark:hover:text-white"),children:e.charAt(0).toUpperCase()+e.slice(1)},e))}),"retirement"===z&&(0,n.jsx)(o.Z,{data:q,showMainSummaryOnly:!1,showPenaltyWithdrawalReturn:!0}),"goals"===z&&(null==A?void 0:A.length)>0&&(0,n.jsxs)("div",{className:"mt-6",children:[(0,n.jsx)("h2",{className:"text-base font-semibold text-gray-700 dark:text-gray-200 mb-2",children:"Goals"}),(0,n.jsx)(R.i,{}),(0,n.jsx)("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 gap-6",children:A.map(e=>(0,n.jsx)(N.k,{title:e.subgoal_name,value:"$".concat((0,u.b)(Number(e.goal_amount))),change:e.actual_goal_date.includes("Not")?e.actual_goal_date:"".concat((0,p.Z)(e.actual_goal_date).years,"Yrs ").concat((0,p.Z)(e.actual_goal_date).months,"Mths")},e.goal_id))})]}),"overview"===z&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsxs)("div",{className:"mt-8 flex items-center justify-between pl-4",children:[(0,n.jsx)("h2",{className:"text-lg font-semibold text-gray-700 dark:text-gray-200",children:"Overview"}),(0,n.jsx)(_,{options:m.sG,selectedValue:S,onDropDownChange:e=>k(e)})]}),(0,n.jsx)("div",{className:"mt-4 grid grid-cols-1 sm:grid-cols-2 gap-3 pl-4",children:null==O?void 0:O.flatMap(e=>{var t,a;return null==e?void 0:null===(a=e.categories)||void 0===a?void 0:null===(t=a.filter(e=>e.yearTitle===S.name))||void 0===t?void 0:t.map((t,a)=>(0,n.jsx)(N.k,{title:e.title,value:M(t.value,e.title,t.yearTitle),change:"".concat(t.difference<0?"-$":"+$").concat((0,u.b)(Math.abs(W(t.difference,t.yearTitle)))," since last change")},"".concat(e.title,"-").concat(a)))})})]})]})}},36021:function(e,t,a){var n=a(57437),i=a(79667),l=a(5064),r=a(907),o=a(31691),s=a(27819),d=a(71969),c=a(59832),u=a(38398),p=a(10637),x=a(2265),m=a(67776),h=a(23910),g=a(90193);t.Z=e=>{let{fieldName:t,margintop:a,topPlacement:f,placement:y="bottom",right:v=.5,position:j="absolute",icon:b,tooltipColor:w}=e,C=(0,o.Z)(),[Z]=(0,l.Ad)(),{barColor:S,darkMode:k}=Z,_=C.palette[S].main,R=(0,s.Z)(C.breakpoints.down("lg")),[N,z]=(0,x.useState)(null),D=()=>z(null);return R?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(c.Z,{size:"small",onClick:e=>z(e.currentTarget),disableFocusRipple:!0,disableTouchRipple:!0,sx:{position:j,right:v,top:a||26,zIndex:1},children:(0,n.jsx)(m.ttH,{size:18,style:{color:C.palette.darkVariant.main,marginTop:null!=f?f:0}})}
1),N&&(0,n.jsx)(u.ZP,{open:!!N,anchorEl:N,onClose:D,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:(0,n.jsxs)(i.Z,{sx:{background:_,display:"flex",flexDirection:"column",color:(0,r.r)(k,S)},children:[(0,n.jsx)(i.Z,{display:"flex",justifyContent:"flex-end",component:"span",children:(0,n.jsx)(c.Z,{onClick:D,children:(0,n.jsx)(h.Z,{sx:{color:C.palette.barColor.main}})})}),"string"==typeof t?(0,n.jsx)(i.Z,{px:2,pb:1,maxWidth:250,children:(0,n.jsx)(g.Z,{sx:{fontSize:"14px",color:C.palette.barColor.main},children:t})}):t]})})]}):(0,n.jsx)(d.Z,{title:t,enterTouchDelay:R?20:700,sx:{position:j,right:v,top:a||26,zIndex:1},componentsProps:{tooltip:{sx:{bgcolor:_,"& .MuiTooltip-arrow":{color:_},color:C.palette.barColor.main,maxWidth:250}}},slotProps:{popper:{sx:{["&.".concat(p.Z.popper,'[data-popper-placement*="bottom"] .').concat(p.Z.tooltip)]:{marginTop:"0px"},["&.".concat(p.Z.popper,'[data-popper-placement*="top"] .').concat(p.Z.tooltip)]:{marginBottom:"0px"},["&.".concat(p.Z.popper,'[data-popper-placement*="right"] .').concat(p.Z.tooltip)]:{marginLeft:"0px"},["&.".concat(p.Z.popper,'[data-popper-placement*="left"] .').concat(p.Z.tooltip)]:{marginRight:"0px"}}}},placement:y,children:(0,n.jsx)(c.Z,{size:"small",disableFocusRipple:!0,disableTouchRipple:!0,children:(0,n.jsx)(m.ttH,{size:18,style:{color:w||C.palette.darkVariant.main,marginTop:null!=f?f:0}})})})}},38502:function(e,t,a){a.d(t,{c:function(){return p}});var n=a(57437),i=a(7261),l=a(31691),r=a(59832),o=a(32489),s=e=>{let{closeToast:t,type:a}=e,i=(0,l.Z)();return(0,n.jsx)(r.Z,{sx:"error"===a?{pr:0,mr:1.5}:{pr:0,mr:1},type:"button","aria-label":"close",onClick:t,children:(0,n.jsx)(o.Z,{size:16,color:(()=>{switch(a){case"warning":return i.palette.white.main;case"default":return i.palette.grey[400];default:return i.palette.black.main}})()})})},d=a(92934),c=a(79667),u=e=>{let{type:t}=e,{palette:a}=(0,l.Z)();switch(t){case"success":return(0,n.jsx)(d.Z,{});case"error":return(0,n.jsx)(c.Z,{sx:{backgroundColor:"red",borderRadius:"40px",overflow:"hidden",width:20,height:20},display:"flex",alignItems:"center",justifyContent:"center",children:(0,n.jsx)(o.Z,{width:15,height:15,color:a.notify.error.main})});default:return!1}};let p=e=>{let{...t}=e,a={autoClose:2e3,position:"top-center",icon:u,closeButton:s,...t};return(0,n.jsx)(i.Ix,{...a})}},84604:function(e,t,a){a.d(t,{C:function(){return i}});var n=a(82253);let i=e=>{let t=n.C.length;return n.C[Math.floor(e%t)]}}}]);

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.