1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2539],{26296:(e,t,a)=>{"use strict";a.r(t),a.d(t,{default:()=>es});var s=a(54568),o=a(7620),i=a(27541),n=a(72203),r=a(78036),l=a(81699);let c={getFreedomDate:async()=>(await l.uE.get("/freedom-date")).data,getWhatIf:async e=>(await l.uE.post("/freedom-date/what-if",{scenarios:e})).data};var d=a(95730),m=a(99100),h=a(54553),_=a(98425),u=a(44268);function x(e){let{value:t,duration:a=1.2,decimals:i=0,prefix:n="",suffix:r="",className:l,formatter:c}=e,d=(0,o.useRef)(null),m=(0,h.W)(d,{once:!0,margin:"-50px"}),x=(0,_.d)(0),g=(0,u.z)(x,{duration:1e3*a,bounce:0}),[p,y]=(0,o.useState)("0");return(0,o.useEffect)(()=>{m&&x.set(t)},[m,t,x]),(0,o.useEffect)(()=>g.on("change",e=>{c?y(c(e)):y(e.toFixed(i))}),[g,i,c]),(0,s.jsxs)("span",{ref:d,className:l,children:[n,p,r]})}var g=a(32942),p=a.n(g),y=a(54532),j=a(8526),f=a(5763),v=a(6738),b=a(47305),N=a(59880),w=a(50349),S=a(88859),D=a(26095),k=a(5530);function L(){let[e,t]=(0,o.useState)(null),[a,i]=(0,o.useState)(null),[n,l]=(0,o.useState)(!0),[h,_]=(0,o.useState)(!1),[u,g]=(0,o.useState)(!1),[L,C]=(0,o.useState)(!1),[A,T]=(0,o.useState)(""),[W,H]=(0,o.useState)(new Set),{format:F}=(0,r.H)();(0,o.useEffect)(()=>{!async function(){try{let[e,a]=await Promise.all([c.getFreedomDate(),c.getWhatIf([50,100,200,500])]);t(e),i(a)}catch(e){}finally{l(!1)}}()},[]);let I=(0,o.useCallback)(e=>{H(t=>{let a=new Set(t);return a.delete(e),a}),i(t=>t?{...t,scenarios:t.scenarios.filter(t=>t.extraMonthly!==e)}:null)},[]);if(n||!e)return null;if(e.isDebtFree)return(0,s.jsxs)(d.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},className:p().debtFreeCard,children:[(0,s.jsxs)("div",{className:"flex items-center gap-3 mb-3",children:[(0,s.jsx)(y.A,{className:"w-7 h-7 ".concat(p().accentIcon)}),(0,s.jsx)("span",{className:p().debtFreeLabel,children:"DEBT FREE"})]}),(0,s.jsx)("p",{className:p().debtFreeHeading,children:"Your time is yours."}),(0,s.jsx)("p",{className:p().subtleText,children:"No debt. No interest payments. Every dollar you earn is yours to invest, save, or enjoy."})]});let B=e.freedomDate?new Date(e.freedomDate+"T00:00:00"):null,M=B?B.toLocaleDateString("en-US",{month:"long",year:"numeric"}):"Unknown",P=e.monthsUntilFreedom?Math.floor(e.monthsUntilFreedom/12):0,E=e.monthsUntilFreedom?e.monthsUntilFreedom%12:0,V=P>0?"".concat(P," year").concat(P>1?"s":""," ").concat(E>0?"".concat(E," month").concat(E>1?"s":""):""):"".concat(E," month").concat(E>1?"s":"");return(0,s.jsxs)(d.P.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[(0,s.jsx)("div",{className:p().heroCard,children:(0,s.jsxs)("div",{className:p().heroContent,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-6",children:[(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[(0,s.jsx)(j.A,{className:"w-5 h-5 ".concat(p().accentIcon)}),(0,s.jsx)("span",{className:p().headerLabel,children:"Freedom Date"})]}),e.movement&&"unchanged"!==e.movement.direction&&(0,s.jsxs)(d.P.div,{initial:{opacity:0,x:20},animate:{opacity:1,x:0},className:"flex items-center gap-1 px-3 py-1 rounded-full text-xs font-medium ".concat(p().movementBadge),children:["closer"===e.movement.direction?(0,s.jsx)(f.A,{className:"w-3.5 h-3.5"}):(0,s.jsx)(v.A,{className:"w-3.5 h-3.5"}),Math.abs(e.movement.monthsMoved)," mo ",e.movement.direction]})]}),(0,s.jsxs)("div",{className:"mb-4",children:[(0,s.jsx)("h2",{className:"font-bold mb-1 ".concat(p().mainDate),children:M}),(0,s.jsxs)("p",{className:p().dateSubtext,children:[V," from now \xb7 ",(0,s.jsx)(x,{value:e.daysUntilFreedom||0,formatter:e=>Math.round(e).toLocaleString()})," days"]})]}),(0,s.jsxs)("div",{className:p().metricsSection,children:[(0,s.jsxs)("div",{className:p().metricsHeader,children:[(0,s.jsx)("div",{}),(0,s.jsx)("button",{onClick:()=>C(!L),className:p().metricsInfoBtn,"aria-label":"What do these numbers mean?",children:(0,s.jsxs)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("path",{d:"M12 16v-4"}),(0,s.jsx)("path",{d:"M12 8h.01"})]})})]}),L&&(0,s.jsxs)("div",{className:p().metricsInfoBox,children:[(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Total Debt"})," - The combined balance across all your debts right now."]}),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Monthly Payment"})," - Your total monthly payment toward all debts, including minimums and any extra you're putting toward payoff."]}
1),(0,s.jsxs)("p",{children:[(0,s.jsx)("strong",{children:"Total Interest"})," - The total interest you'll pay across all debts from now until they're fully paid off, not monthly, but the lifetime cost of your remaining debt."]})]}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-3",children:[{label:"Total Debt",value:F(e.totalDebt)},{label:"Monthly Payment",value:F(e.totalMonthlyPayment)},{label:"Total Interest",value:F(e.totalInterestCost)}].map(e=>(0,s.jsxs)("div",{className:p().metricCard,children:[(0,s.jsx)("p",{className:p().metricLabel,children:e.label}),(0,s.jsx)("p",{className:p().metricValue,children:e.value})]},e.label))})]}),e.movement&&"unchanged"!==e.movement.direction&&(0,s.jsx)("div",{className:p().movementMessage,children:e.movement.message}),(0,s.jsx)("p",{className:p().disclaimer,children:"Projections are estimates based on your entered data. Not financial advice."}),(0,s.jsxs)("div",{className:"flex gap-3",children:[(0,s.jsxs)("button",{onClick:()=>_(!h),className:"flex items-center gap-1.5 text-sm transition-all ".concat(p().breakdownBtn),children:[h?(0,s.jsx)(b.A,{className:"w-4 h-4"}):(0,s.jsx)(N.A,{className:"w-4 h-4"}),"Debt Breakdown"]}),(0,s.jsxs)("button",{onClick:()=>g(!u),className:"flex items-center gap-1.5 text-sm transition-all ".concat(p().simulatorBtn),children:[(0,s.jsx)(y.A,{className:"w-4 h-4"}),"What-If Simulator"]})]})]})}),(0,s.jsx)(m.N,{children:h&&(0,s.jsx)(d.P.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:(0,s.jsxs)("div",{className:p().panel,children:[(0,s.jsx)("h3",{className:p().sectionHeading,children:"Payoff Timeline"}),(0,s.jsx)("div",{className:"space-y-3",children:e.debtBreakdown.sort((e,t)=>new Date(e.payoffDate).getTime()-new Date(t.payoffDate).getTime()).map((e,t)=>{let a=new Date(e.payoffDate+"T00:00:00");return(0,s.jsx)("div",{className:"flex items-center gap-4",children:(0,s.jsxs)("div",{className:"flex-1",children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-1",children:[(0,s.jsx)("span",{className:p().debtName,children:e.name}),(0,s.jsx)("span",{className:p().debtDate,children:a.toLocaleDateString("en-US",{month:"short",year:"numeric"})})]}),(0,s.jsx)("div",{className:"flex items-center gap-3",children:(0,s.jsx)("div",{className:"flex-1 h-2 rounded-full overflow-hidden ".concat(p().progressTrack),children:(0,s.jsxs)("div",{className:"h-full flex",children:[(0,s.jsx)(d.P.div,{initial:{width:0},animate:{width:"".concat(e.monthlyPayment>0?(e.monthlyPayment-(e.monthlyInterest||0))/e.monthlyPayment*100:100,"%")},transition:{duration:.8,delay:.1*t},className:"h-full",style:{backgroundColor:"var(--success)"}}),(0,s.jsx)(d.P.div,{initial:{width:0},animate:{width:"".concat(e.monthlyPayment>0?(e.monthlyInterest||0)/e.monthlyPayment*100:0,"%")},transition:{duration:.8,delay:.1*t+.1},className:"h-full",style:{backgroundColor:"var(--destructive)"}})]})})}),(0,s.jsxs)("div",{className:"flex justify-between items-center mt-1",children:[(0,s.jsxs)("span",{className:p().debtDetail,children:[F(e.monthlyPayment),"/mo",(e.monthlyInterest||0)>0&&(0,s.jsxs)("span",{style:{color:"var(--destructive)",marginLeft:"0.5rem"},children:[F(e.monthlyInterest)," interest"]})]}),(0,s.jsx)("span",{className:p().debtBalance,children:F(e.currentBalance)})]})]})},e.id)})}),e.milestones.length>0&&(0,s.jsxs)("div",{className:p().milestonesDivider,children:[(0,s.jsx)("h4",{className:p().milestonesHeading,children:"Milestones"}),(0,s.jsx)("div",{className:"space-y-2",children:e.milestones.map((e,t)=>{let a="freedom"===e.type?w.A:"halfway"===e.type?S.A:D.A,o="freedom"===e.type||"halfway"===e.type?"var(--accent)":"var(--text-subtle)";return(0,s.jsxs)("div",{className:"flex items-center gap-3 text-sm",children:[(0,s.jsx)("span",{className:p().milestoneDate,children:new Date(e.date+"T00:00:00").toLocaleDateString("en-US",{month:"short",year:"numeric"})}),(0,s.jsx)(a,{className:"w-4 h-4",style:{color:o,flexShrink:0}}),(0,s.jsx)("span",{className:"freedom"===e.type?p().milestoneLabelFreedom:p().milestoneLabelDefault,children:e.label})]},t)})})]})]})})}),(0,s.jsx)(m.N,{children:u&&a&&(0,s.jsx)(d.P.div,{initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},className:"overflow-hidden",children:(0,s.jsxs)("div",{className:p().panel,children:[(0,s.jsx)("h3",{className:p().simulatorHeading,children:"What If You Paid More?"}),(0,s.jsx)("p",{className:p().simulatorSubtext,children:"See how extra monthly payments change your Freedom Date"}),(0,s.jsx)("div",{className:"space-y-2",children:a.scenarios.map((e,t)=>{let a=W.has(e.extraMonthly);return(0,s.jsxs)(d.P.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},exit:{opacity:0,x:20,height:0},transition:{delay:.1*t},className:"flex items-center justify-between py-3 px-4 rounded-lg transition-colors ".concat(p().scenarioCard),children:[(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("span",{className:p().scenarioExtra,children:["+",F(e.extraMonthly)]}),(0,s.jsx)("span",{className:p().scenarioPerMonth,children:"/mo"})]}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsxs)("div",{className:"text-right",children:[(0,s.jsx)("span",{className:p().scenarioDate,children:new Date(e.newFreedomDate+"T00:00:00").toLocaleDateString("en-US",{month:"short",year:"numeric"})}),e.monthsSaved>0&&(0,s.jsx)("span",{className:p().scenarioSaved,children:e.timeSavedMessage}),(0,s.jsxs)("div",{className:p().scenarioInterest,children:["Save ",F(e.interestSaved)," in interest"]})]}),a&&(0,s.jsx)("button",{onClick:()=>I(e.extraMonthly),className:p().scenarioDeleteBtn,"aria-label":"Remove +".concat(F(e.extraMonthly),"/mo scenario"),children:(0,s.jsx)(k.A,{className:"w-4 h-4"})})]})]},e.extraMonthly)})}),(0,s.jsxs)("div",{className:"mt-4 flex gap-2",children:[(0,s.jsxs)("div",{className:"relative flex-1",children:[(0,s.jsx)("span",{className:"absolute left-3 top-1/2 -translate-y-1/2 ".concat(p().dollarSign),children:"$"}),(0,s.jsx)("input",{type:"number",value:A,onChange:e=>T(e.target.value),placeholder:"Custom amount",className:"w-full pl-7 pr-3 py-2 text-sm focus:outline-none focus:ring-1 ".concat(p().customInput)})]}),(0,s.jsx)("button",{onClick:async()=>{let e=parseFloat(A);if(e>0){let t=await c.getWhatIf([e]);t.scenarios.length>0&&(H(t=>new Set([...t,e])),i(a=>a?{...a,scenarios:[...a.scenarios.filter(t=>t.extraMonthly!==e),...t.scenarios].sort((e,t)=>e.extraMonthly-t.extraMonthly)}:null),T(""))}},className:"px-4 py-2 text-sm font-medium transition-colors ".concat(p().calculateBtn),children:"Calculate"})]})]})})})]})}let C={getScore:async()=>(await l.uE.get("/autonomy-score")).data};var A=a(48367),T=a(41754),W=a(19609),H=a(83687),F=a(88684),I=a(74480),B=a.n(I);function M(e){let{score:t,size:a=120}=e,o=(a-8)/2,i=2*Math.PI*o,n=t/100*i;return(0,s.jsxs)("svg",{width:a,height:a,className:"transform -rotate-90",children:[(0,s.jsx)("circle",{cx:a/2,cy:a/2,r:o,fill:"none",strokeWidth:8,style:{stroke:"var(--border)"}}),(0,s.jsx)(d.P.circle,{cx:a/2,cy:a/2,r:o,fill:"none",strokeWidth:8,strokeLinecap:"round",style:{stroke:"var(--accent)"},strokeDasharray:i,initial:{strokeDashoffset:i},animate:{strokeDashoffset:i-n},transition:{duration:1.5,ease:"easeOut"}})]})}function P(e){let{score:t,maxScore:a}=e;return(0,s.jsx)("div",{className:"h-1.5 rounded-full overflow-hidden ".concat(B().miniBarTrack),children:(0,s.jsx)(d.P.div,{initial:{width:0},animate:{width:"".concat(t/a*100,"%")},transition:{duration:.8,ease:"easeOut"},className:"h-full rounded-full ".concat(B().miniBarFill)})})}function E(e){let{open:t,onClose:a}=e;return t?(0,s.jsxs)("div",{className:B().modalOverlay,onClick:a,children:[(0,s.jsx)("div",{className:B().modalBackdrop}),(0,s.jsxs)(d.P.div,{initial:{opacity:0,scale:.95,y:10},animate:{opacity:1,scale:1,y:0},transition:{duration:.2},onClick:e=>e.stopPropagation(),className:B().modalContent,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)("h3",{className:B().modalTitle,children:"What is the Autonomy Score?"}),(0,s.jsx)("button",{onClick:a,className:B().modalCloseBtn,children:(0,s.jsx)(k.A,{className:"w-5 h-5 ".concat(B().iconSubtle)})})]}),(0,s.jsx)("p",{className:B().modalDescription,children:"Your Autonomy Score is a simple number from 0 to 100 that shows how well you're managing your money. Think of it like a health checkup for your finances. It measures your habits, not your wealth. Someone who tracks their spending and sticks to a budget can score high even if they're still paying off debt."}),(0,s.jsx)("h4",{className:B().modalSectionTitle,children:"The 4 Pillars (25 points each)"}),(0,s.jsx)("div",{className:"space-y-3 ".concat(B().modalPillarList),children:[{name:"Budget Adherence",desc:"Are you staying within your budget categories? The more categories you keep on track, the higher this score. Early in a new month, this blends in your previous month so it doesn't reset to zero on the 1st. This score builds gradually as you log transactions over your first 14 days."}
1,{name:"Logging Consistency",desc:"Are you recording your spending regularly? This looks at the last 30 days, not just the current month, so your consistency always carries forward. Streaks and transaction volume count too."},{name:"Debt Progress",desc:"How does your debt compare to your income, and are you paying it down? Less debt (or no debt) means a higher score."},{name:"Savings & Growth",desc:"Are you saving part of your income and putting money into savings categories? If you chose the aggressive debt-only budget, this pillar will grow as you pay down debt and eventually add a savings category. Your savings rate unlocks as you log spending activity."}].map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("span",{className:B().pillarName,children:e.name}),(0,s.jsx)("p",{className:B().pillarDesc,children:e.desc})]},e.name))}),(0,s.jsx)("h4",{className:B().gradesTitle,children:"What the Grades Mean"}),(0,s.jsx)("div",{className:B().gradesGrid,children:[{grade:"S",range:"90-100",label:"Sovereign"},{grade:"A",range:"80-89",label:"Autonomous"},{grade:"B",range:"70-79",label:"Aware"},{grade:"C",range:"55-69",label:"Developing"},{grade:"D",range:"40-54",label:"Waking Up"},{grade:"F",range:"0-39",label:"Asleep"}].map(e=>(0,s.jsxs)("div",{className:"flex items-center gap-2 ".concat(B().gradeItem),children:[(0,s.jsx)("span",{className:B().gradeLetter,children:e.grade}),(0,s.jsxs)("span",{children:[e.range,": ",e.label]})]},e.grade))}),(0,s.jsx)("h4",{className:B().improveSectionTitle,children:"How to Improve"}),(0,s.jsx)("ul",{className:"space-y-1.5 ".concat(B().improveTipList),children:["Log your spending every day. Consistency is the biggest score booster.","Stay within your budget categories, even if it means small adjustments.","Keep chipping away at debt. Every payment helps.","Create a savings category and contribute to it regularly."].map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-1.5 ".concat(B().improveTip),children:[(0,s.jsx)("span",{className:B().improveBullet,children:"â¢"}),e]},t))}),(0,s.jsx)("p",{className:B().modalFootnote,children:"Your score updates every time you visit this page. It rewards awareness and effort, not a high income. Keep showing up and your score will follow."})]})]}):null}function V(){let[e,t]=(0,o.useState)(null),[a,i]=(0,o.useState)(!0),[n,r]=(0,o.useState)(!1),[l,c]=(0,o.useState)(!1);return((0,o.useEffect)(()=>{!async function(){try{let e=await C.getScore();t(e)}catch(e){}finally{i(!1)}}()},[]),a||!e)?null:(0,s.jsxs)("div",{className:B().widget,children:[(0,s.jsxs)("div",{className:B().widgetInner,children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)("h3",{className:B().headerLabel,children:"Autonomy Score"}),(0,s.jsxs)("div",{className:"flex items-center gap-2",children:[null!==e.change&&0!==e.change&&(0,s.jsxs)("div",{className:"flex items-center gap-1 ".concat(B().changeIndicator),children:["up"===e.changeDirection?(0,s.jsx)(A.A,{className:"w-3 h-3"}):(0,s.jsx)(T.A,{className:"w-3 h-3"}),Math.abs(e.change)," pts"]}),(0,s.jsx)("button",{onClick:()=>c(!0),className:B().infoBtn,"aria-label":"What is the Autonomy Score?",children:(0,s.jsx)(W.A,{className:"w-4 h-4 ".concat(B().iconSubtle)})})]})]}),(0,s.jsxs)("div",{className:"flex flex-col items-center mb-4",children:[(0,s.jsxs)("div",{className:"relative",children:[(0,s.jsx)(M,{score:e.score,size:140}),(0,s.jsxs)("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[(0,s.jsx)(d.P.span,{initial:{opacity:0,scale:.5},animate:{opacity:1,scale:1},transition:{delay:.5,duration:.3},className:B().scoreNumber,children:(0,s.jsx)(x,{value:e.score,duration:1.2})}),(0,s.jsx)("span",{className:B().scoreMax,children:"/ 100"})]})]}),(0,s.jsxs)(d.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.8},className:"mt-3 px-4 py-1.5 rounded-full text-sm font-semibold ".concat(B().gradeBadge),children:["Grade ",e.grade," \xb7 ",e.gradeLabel]}),(0,s.jsx)("p",{className:B().scoreMessage,children:e.message})]}),e.streak.current>0&&(0,s.jsxs)("div",{className:"flex items-center justify-center gap-2 mb-4 ".concat(B().streakSection),children:[(0,s.jsx)(H.A,{className:"w-4 h-4 ".concat(B().iconAccent)}),(0,s.jsxs)("span",{className:B().streakText,children:[e.streak.current,"-day streak"]}),e.streak.longest>e.streak.current&&(0,s.jsxs)("span",{className:B().streakBest,children:["\xb7 Best: ",e.streak.longest]}
1)]}),(0,s.jsx)("div",{className:"space-y-3 mb-4",children:e.breakdown.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"flex justify-between items-center mb-1",children:[(0,s.jsx)("span",{className:B().categoryLabel,children:e.category}),(0,s.jsxs)("span",{className:B().categoryScore,children:[e.score,"/",e.maxScore]})]}),(0,s.jsx)(P,{score:e.score,maxScore:e.maxScore})]},e.category))}),(0,s.jsxs)("button",{onClick:()=>r(!n),className:"w-full flex items-center justify-center gap-1 py-2 transition-colors ".concat(B().toggleBtn),children:[n?(0,s.jsx)(b.A,{className:"w-3.5 h-3.5"}):(0,s.jsx)(N.A,{className:"w-3.5 h-3.5"}),n?"Less detail":"More detail"]})]}),n&&(0,s.jsxs)(d.P.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-4 ".concat(B().detailsSection),children:[e.breakdown.map(e=>(0,s.jsxs)("div",{children:[(0,s.jsx)("h4",{className:B().detailCategoryTitle,children:e.category}),(0,s.jsx)("ul",{className:"space-y-0.5",children:e.details.map((e,t)=>(0,s.jsxs)("li",{className:"flex items-start gap-1.5 ".concat(B().detailItem),children:[(0,s.jsx)("span",{className:B().detailBullet,children:"â¢"}),e]},t))})]},e.category)),e.tips.length>0&&(0,s.jsxs)("div",{className:B().tipsSection,children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[(0,s.jsx)(F.A,{className:"w-3.5 h-3.5 ".concat(B().iconAccent)}),(0,s.jsx)("span",{className:B().tipsLabel,children:"Tips to Improve"})]}),e.tips.map((e,t)=>(0,s.jsx)("p",{className:B().tipText,children:e},t))]})]}),(0,s.jsx)(E,{open:l,onClose:()=>c(!1)})]})}var O=a(15477),R=a(88985),G=a(55744),U=a.n(G);function Z(){let[e,t]=(0,o.useState)(null),[a,i]=(0,o.useState)(!0),[n,l]=(0,o.useState)(!1),[c,m]=(0,o.useState)(!1),{format:h}=(0,r.H)(),_=(0,o.useCallback)(e=>h(e),[h]);if((0,o.useEffect)(()=>{!async function(){try{let e=await O.t.getLifeHour();t(e)}catch(e){}finally{i(!1)}}()},[]),a)return null;if(!(null==e?void 0:e.hasProfile))return(0,s.jsxs)("div",{className:U().emptyCard,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,s.jsx)(R.A,{className:"w-5 h-5 ".concat(U().subtleIcon)}),(0,s.jsx)("h3",{className:U().sectionLabel,children:"The Value of Your Time"})]}),(0,s.jsx)("p",{className:U().emptyText,children:"Add income sources to see what every hour of your life is worth."})]});let u=e.lifeHourValue||0,g=e.lifeDayValue||0,p=e.lifeMinuteValue||0;return(0,s.jsx)("div",{className:U().card,children:(0,s.jsxs)("div",{className:U().cardInner,children:[(0,s.jsxs)("div",{className:"flex items-center gap-2 mb-5",children:[(0,s.jsx)(R.A,{className:"w-5 h-5 ".concat(U().headerIcon)}),(0,s.jsx)("h3",{className:U().sectionLabel,children:"The Value of Your Time"})]}),(0,s.jsxs)("div",{className:"mb-5",children:[(0,s.jsxs)(d.P.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.6},children:[(0,s.jsx)("span",{className:U().heroValue,children:(0,s.jsx)(x,{value:u,decimals:2,formatter:_})}),(0,s.jsx)("span",{className:U().heroUnit,children:"/ hour"})]}),(0,s.jsxs)("p",{className:U().heroDescription,children:["Every hour of your life, working, sleeping, living, is currently producing"," ",(0,s.jsx)("span",{className:U().heroHighlight,children:h(u)}),". Building wealth means making this number grow."]})]}),(0,s.jsx)("div",{className:"grid grid-cols-3 gap-3 mb-5",children:[{label:"Per Minute",numValue:p},{label:"Per Hour",numValue:u},{label:"Per Day",numValue:g}].map(e=>(0,s.jsxs)("div",{className:U().breakdownCard,children:[(0,s.jsx)("p",{className:U().breakdownLabel,children:e.label}),(0,s.jsx)("p",{className:U().breakdownValue,children:(0,s.jsx)(x,{value:e.numValue,decimals:2,formatter:_})})]},e.label))}),(0,s.jsxs)("div",{className:U().contextBox,children:[(0,s.jsxs)("div",{className:"flex justify-between items-center ".concat(U().contextRow),children:[(0,s.jsx)("span",{className:U().contextLabel,children:"Monthly income"}),(0,s.jsx)("span",{className:U().contextValue,children:h(e.netMonthlyIncome||0)})]}),(0,s.jsxs)("div",{className:"flex justify-between items-center ".concat(U().contextRowDivided),children:[(0,s.jsx)("span",{className:U().contextLabel,children:"Hours in this month"}),(0,s.jsx)("span",{className:U().contextValue,children:e.hoursInMonth})]}),(e.totalSpent||0)>0&&(0,s.jsxs)("div",{className:"flex justify-between items-center ".concat(U().contextRowDivided),children:[(0,s.jsx)("span",{className:U().contextLabel,children:"Spent this month"}),(0,s.jsxs)("span",{className:U().contextValue,children:[h(e.totalSpent||0)," = ",e.spentLifeHours,"h of life"]})]})]}
1),e.topSpends&&e.topSpends.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsxs)("button",{onClick:()=>m(!c),className:"w-full flex items-center justify-between mb-2 ".concat(U().toggleButton),children:[(0,s.jsx)("span",{className:U().sectionLabel,children:"The Real Cost"}),c?(0,s.jsx)(b.A,{className:"w-3.5 h-3.5 ".concat(U().subtleIcon)}):(0,s.jsx)(N.A,{className:"w-3.5 h-3.5 ".concat(U().subtleIcon)})]}),c&&(0,s.jsx)(d.P.div,{initial:{opacity:0},animate:{opacity:1},className:"space-y-1",children:e.topSpends.map((e,t)=>(0,s.jsxs)("div",{className:"flex justify-between items-center py-2 px-2 rounded-lg ".concat(U().spendRow),children:[(0,s.jsx)("span",{className:U().spendDescription,children:e.description}),(0,s.jsxs)("span",{className:U().spendAmount,children:[h(e.amount)," ="," ",(0,s.jsx)("span",{className:U().spendLifeHours,children:e.lifeDisplay})]})]},t))})]}),e.targets&&e.targets.length>0&&(0,s.jsxs)("div",{className:U().targetsSection,children:[(0,s.jsxs)("button",{onClick:()=>l(!n),className:"w-full flex items-center justify-between mb-2 ".concat(U().toggleButton),children:[(0,s.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,s.jsx)(v.A,{className:"w-3.5 h-3.5 ".concat(U().accentIcon)}),(0,s.jsx)("span",{className:U().accentLabel,children:"Growth Targets"})]}),n?(0,s.jsx)(b.A,{className:"w-3.5 h-3.5 ".concat(U().subtleIcon)}):(0,s.jsx)(N.A,{className:"w-3.5 h-3.5 ".concat(U().subtleIcon)})]}),n&&(0,s.jsxs)(d.P.div,{initial:{opacity:0}
1,animate:{opacity:1},children:[(0,s.jsx)("p",{className:U().targetsIntro,children:"What would it take to make every hour of your life worth more?"}),(0,s.jsx)("div",{className:"space-y-2",children:e.targets.map(e=>(0,s.jsxs)("div",{className:"flex items-center justify-between py-2.5 px-3 rounded-lg ".concat(U().targetCard),children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("span",{className:U().targetValue,children:[h(e.lifeHourTarget),"/hr"]}),(0,s.jsxs)("span",{className:U().targetMultiplier,children:["(",e.multiplier,"x your current)"]})]}),(0,s.jsxs)("span",{className:U().targetIncome,children:[h(e.monthlyIncomeNeeded),"/mo"]})]},e.lifeHourTarget))})]})]})]})})}var q=a(7571),z=a(33670),Y=a(46139),K=a(43470),J=a(86336),X=a(70509),Q=a(86383),$=a(84397),ee=a(39570),et=a.n(ee);function ea(){return(0,s.jsx)("div",{className:et().loaderContainer,children:(0,s.jsxs)("div",{className:et().loaderPulse,children:[(0,s.jsx)($.S,{size:96,colorScheme:"gradient"}),(0,s.jsxs)("p",{className:et().loaderName,children:["Autonomy ",(0,s.jsx)("span",{className:et().loaderAccent,children:"Ledger"})]})]})})}function es(){let e=(0,i.useRouter)(),{user:t,loading:a}=(0,n.A)(),{format:c}=(0,r.H)(),[d,m]=(0,o.useState)(!1),[h,_]=(0,o.useState)(!1),[u,x]=(0,o.useState)([]),[g,p]=(0,o.useState)(null),[y,j]=(0,o.useState)([]),[f,v]=(0,o.useState)(null),[b,N]=(0,o.useState)([]),[w,S]=(0,o.useState)(!0),[D,k]=(0,o.useState)(null);(0,o.useEffect)(()=>{a||t||e.push("/login")},[t,a,e]);let C=async()=>{k(null);try{var e,t,a;let[s,o]=await Promise.all([l.uE.get("/dashboard/data"),l.uE.get("/income/sources")]),i=s.data;v(i.summary),N((null==(t=i.spending)||null==(e=t.recentTransactions)?void 0:e.slice(0,5))||[]);let n=(null==(a=i.budgets)?void 0:a.active)||[];x(n),n.length>0&&p(n[0]);let r=o.data;j(Array.isArray(r)?r.filter(e=>e.is_active):[])}catch(e){k("Failed to load dashboard data")}finally{S(!1)}};if((0,o.useEffect)(()=>{t&&C()},[t]),a||!t||w)return(0,s.jsx)(ea,{});if(D)return(0,s.jsx)(Q.W5,{message:D,onRetry:C});let A=(()=>{let e=new Date().getHours();return e<12?"Good morning":e<17?"Good afternoon":"Good evening"})();return(0,s.jsxs)("div",{className:et().page,children:[(0,s.jsxs)(X.J,{children:[(0,s.jsx)(X.T,{children:(0,s.jsxs)("div",{className:et().header,children:[(0,s.jsxs)("div",{children:[(0,s.jsxs)("h1",{className:et().greeting,children:[A,", ",t.firstName]}),(0,s.jsx)("p",{className:et().date,children:new Date().toLocaleDateString("en-US",{weekday:"long",month:"long",day:"numeric",year:"numeric"})})]}),(0,s.jsxs)("div",{className:et().actions,children:[(0,s.jsxs)("button",{onClick:()=>m(!0),className:et().btnPrimary,children:[(0,s.jsx)(Y.A,{}),"Log Expense"]}),(0,s.jsxs)("button",{onClick:()=>_(!0),className:et().btnSecondary,children:[(0,s.jsx)(K.A,{}),"Log Income"]})]})]})}),(0,s.jsxs)("div",{className:et().heroGrid,children:[(0,s.jsx)(X.T,{children:(0,s.jsx)(L,{})}),(0,s.jsx)(X.T,{children:(0,s.jsx)(V,{})})]}),(0,s.jsx)(X.T,{children:(0,s.jsx)("div",{className:et().timeCostSection,children:(0,s.jsx)(Z,{})})}),(0,s.jsx)(X.T,{children:b.length>0&&(0,s.jsxs)("div",{className:et().activityCard,children:[(0,s.jsxs)("div",{className:et().activityHeader,children:[(0,s.jsx)("span",{className:et().activityTitle,children:"Recent Activity"}),(0,s.jsxs)("button",{onClick:()=>e.push("/budget"),className:et().activityViewAll,children:["View All",(0,s.jsx)(J.A,{})]})]}),(0,s.jsx)("div",{children:b.map(e=>(0,s.jsxs)("div",{className:et().txRow,children:[(0,s.jsxs)("div",{className:et().txInfo,children:[(0,s.jsx)("p",{className:et().txDesc,children:e.description}),(0,s.jsxs)("p",{className:et().txMeta,children:[e.category||"Uncategorized"," \xb7 ",new Date(e.date).toLocaleDateString("en-US",{month:"short",day:"numeric"})]})]}),(0,s.jsxs)("span",{className:"".concat(et().txAmount," ").concat("income"===e.type?et().txIncome:et().txExpense),children:["income"===e.type?"+":"-",c(Math.abs(e.amount))]})]},e.id))})]})}),(0,s.jsx)(X.T,{children:(0,s.jsx)("div",{className:et().quickNavGrid,children:[{href:"/income",label:"Income",desc:"Track earnings",icon:(0,s.jsx)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:(0,s.jsx)("path",{d:"M12 2v20M17 5H9.5a3.5 3.5 0 000 7h5a3.5 3.5 0 010 7H6"})})},{href:"/budget",label:"Budget",desc:"Track spending",icon:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{d:"M11 3.055A9.001 9.001 0 1020.945 13H11V3.055z"}),(0,s.jsx)("path",{d:"M20.488 9H15V3.512A9.025 9.025 0 0120.488 9z"})]})},{href:"/report",label:"Reports",desc:"Monthly breakdown",icon:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("path",{d:"M14 2H6a2 2 0 00-2 2v16a2 2 0 002 2h12a2 2 0 002-2V8z"}),(0,s.jsx)("path",{d:"M14 2v6h6"}),(0,s.jsx)("path",{d:"M16 13H8M16 17H8M10 9H8"})]})},{href:"/savings-goals",label:"Goals",desc:"Savings targets",icon:(0,s.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[(0,s.jsx)("circle",{cx:"12",cy:"12",r:"10"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"6"}),(0,s.jsx)("circle",{cx:"12",cy:"12",r:"2"})]})}].map(t=>(0,s.jsxs)("button",{onClick:()=>e.push(t.href),className:et().quickNavCard,children:[(0,s.jsx)("div",{className:et().quickNavIcon,children:t.icon}),(0,s.jsx)("p",{className:et().quickNavLabel,children:t.label}),(0,s.jsx)("p",{className:et().quickNavDesc,children:t.desc})]},t.href))})})]}),(0,s.jsx)(q.m,{isOpen:d,onClose:()=>m(!1),budgetId:null==g?void 0:g.id,budgets:u,showBudgetSelector:u.length>1,onSuccess:()=>{C(),m(!1)}}),(0,s.jsx)(z.L,{isOpen:h,onClose:()=>_(!1),sources:y,onSuccess:()=>{C(),_(!1)}})]})}},32942:e=>{e.exports={loadingCard:"FreedomDateHero_loadingCard__lbiTA",skeletonLine:"FreedomDateHero_skeletonLine__EPxoI",skeletonTitle:"FreedomDateHero_skeletonTitle__IO_Fu FreedomDateHero_skeletonLine__EPxoI",skeletonDate:"FreedomDateHero_skeletonDate__oy352 FreedomDateHero_skeletonLine__EPxoI",skeletonSubtext:"FreedomDateHero_skeletonSubtext__HcV23 FreedomDateHero_skeletonLine__EPxoI",debtFreeCard:"FreedomDateHero_debtFreeCard__E_dS8",accentIcon:"FreedomDateHero_accentIcon__8jXqT",debtFreeLabel:"FreedomDateHero_debtFreeLabel__pXYOr",debtFreeHeading:"FreedomDateHero_debtFreeHeading__UQvt4",subtleText:"FreedomDateHero_subtleText__0oIQK",heroCard:"FreedomDateHero_heroCard__JHaJx",heroContent:"FreedomDateHero_heroContent__dB6d5",headerLabel:"FreedomDateHero_headerLabel__V8BpO",movementBadge:"FreedomDateHero_movementBadge__WK7DV",mainDate:"FreedomDateHero_mainDate__Wq3np",dateSubtext:"FreedomDateHero_dateSubtext__ZRxc3",metricsSection:"FreedomDateHero_metricsSection__P5gDG",metricsHeader:"FreedomDateHero_metricsHeader__41FX2",metricsInfoBtn:"FreedomDateHero_metricsInfoBtn__ZbBpv",metricsInfoBox:"FreedomDateHero_metricsInfoBox__Z8KZ7",metricCard:"FreedomDateHero_metricCard__PEBDt",metricLabel:"FreedomDateHero_metricLabel__XCwKP",metricValue:"FreedomDateHero_metricValue__iE7vG",movementMessage:"FreedomDateHero_movementMessage__B0FN_",disclaimer:"FreedomDateHero_disclaimer__zNVWY",breakdownBtn:"FreedomDateHero_breakdownBtn__NTeSb",simulatorBtn:"FreedomDateHero_simulatorBtn__BkaKY",panel:"FreedomDateHero_panel__JHfFw",sectionHeading:"FreedomDateHero_sectionHeading__7RuLF",debtName:"FreedomDateHero_debtName__p4UVC",debtDate:"FreedomDateHero_debtDate__h6_RE",progressTrack:"FreedomDateHero_progressTrack__NgY4W",progressBar:"FreedomDateHero_progressBar__Kxx2K",debtBalance:"FreedomDateHero_debtBalance__Ydbwn",debtDetail:"FreedomDateHero_debtDetail__iXMA5",milestonesDivider:"FreedomDateHero_milestonesDivider__w10LF",milestonesHeading:"FreedomDateHero_milestonesHeading__iBaDo",milestoneDate:"FreedomDateHero_milestoneDate__sOEEv",milestoneLabelFreedom:"FreedomDateHero_milestoneLabelFreedom__q2oMx",milestoneLabelDefault:"FreedomDateHero_milestoneLabelDefault__w73xI",simulatorHeading:"FreedomDateHero_simulatorHeading__Cxzcs",
1simulatorSubtext:"FreedomDateHero_simulatorSubtext__G3kb1",scenarioCard:"FreedomDateHero_scenarioCard__LtRFQ",scenarioExtra:"FreedomDateHero_scenarioExtra__E_WPH",scenarioPerMonth:"FreedomDateHero_scenarioPerMonth__IJt4w",scenarioDate:"FreedomDateHero_scenarioDate__bq6vF",scenarioSaved:"FreedomDateHero_scenarioSaved__zWfjj",scenarioInterest:"FreedomDateHero_scenarioInterest__knOa9",scenarioDeleteBtn:"FreedomDateHero_scenarioDeleteBtn__KA8sg",dollarSign:"FreedomDateHero_dollarSign__q7luS",customInput:"FreedomDateHero_customInput__4VgXE",calculateBtn:"FreedomDateHero_calculateBtn__DlJ1S"}},39570:e=>{e.exports={page:"home_page__VyTed",header:"home_header__7y96W",greeting:"home_greeting__2yoZF",date:"home_date__87T1_",actions:"home_actions__O30ru",btnPrimary:"home_btnPrimary__qMVwg",btnSecondary:"home_btnSecondary__4mBiJ",heroGrid:"home_heroGrid__qo5fj",metricsGrid:"home_metricsGrid__pnP1r",metricCard:"home_metricCard__zD_rG",metricLabel:"home_metricLabel__9jtbi",metricValue:"home_metricValue__tMUUt",metricSub:"home_metricSub__I4p_D",progressTrack:"home_progressTrack__qpv_y",progressFill:"home_progressFill__iaIVh",fillSuccess:"home_fillSuccess__uU_to",fillWarning:"home_fillWarning__lZODz",fillDanger:"home_fillDanger__NWVJO",timeCostSection:"home_timeCostSection__M36Nj",activityCard:"home_activityCard__nY7BN",activityHeader:"home_activityHeader__yeAVp",activityTitle:"home_activityTitle__H8lS9",activityViewAll:"home_activityViewAll__kAlL2",txRow:"home_txRow__ZX2dH",txInfo:"home_txInfo__rPRDD",txDesc:"home_txDesc__NaKP8",txMeta:"home_txMeta__cZUgR",txAmount:"home_txAmount__tLx23",txIncome:"home_txIncome__3uwtZ",txExpense:"home_txExpense__T34iT",quickNavGrid:"home_quickNavGrid__yeaI_",quickNavCard:"home_quickNavCard__1wdaf",quickNavIcon:"home_quickNavIcon__ChEES",quickNavLabel:"home_quickNavLabel__KhO9y",quickNavDesc:"home_quickNavDesc__M3eGN",loaderContainer:"home_loaderContainer__J8fS5",loaderPulse:"home_loaderPulse__dBgbB",breathe:"home_breathe__3kvEK",loaderName:"home_loaderName__dDvV6",loaderAccent:"home_loaderAccent__fK9KO",colorSuccess:"home_colorSuccess__3ze5F",colorWarning:"home_colorWarning__OZjhP",colorDanger:"home_colorDanger__fapZg",colorInfo:"home_colorInfo__UC6be"}},55744:e=>{e.exports={card:"TimeCostWidget_card__4Agr1",cardInner:"TimeCostWidget_cardInner__0Yj82",skeletonWrap:"TimeCostWidget_skeletonWrap__SThSA",skeletonTitle:"TimeCostWidget_skeletonTitle__D02M5",skeletonHero:"TimeCostWidget_skeletonHero__qOb6a",skeletonBar:"TimeCostWidget_skeletonBar__ONV2E",emptyCard:"TimeCostWidget_emptyCard__0I7GC",emptyText:"TimeCostWidget_emptyText__Oofat",headerIcon:"TimeCostWidget_headerIcon__KqKRI",sectionLabel:"TimeCostWidget_sectionLabel__9SFAy",heroValue:"TimeCostWidget_heroValue__BCkUh",heroUnit:"TimeCostWidget_heroUnit__ciXWL",heroDescription:"TimeCostWidget_heroDescription__0zHXY",heroHighlight:"TimeCostWidget_heroHighlight__0u5rp",breakdownCard:"TimeCostWidget_breakdownCard__R3MW_",breakdownLabel:"TimeCostWidget_breakdownLabel__N5AVP",breakdownValue:"TimeCostWidget_breakdownValue__AnVJf",contextBox:"TimeCostWidget_contextBox__29LIg",contextRow:"TimeCostWidget_contextRow__hv4eb",contextRowDivided:"TimeCostWidget_contextRowDivided__XE8Yx",contextLabel:"TimeCostWidget_contextLabel__xkPBa",contextValue:"TimeCostWidget_contextValue___M4gh",toggleButton:"TimeCostWidget_toggleButton__6xtmL",subtleIcon:"TimeCostWidget_subtleIcon__ieLgk",spendRow:"TimeCostWidget_spendRow__dNhtd",spendDescription:"TimeCostWidget_spendDescription__JwOX9",spendAmount:"TimeCostWidget_spendAmount__zh6Wh",spendLifeHours:"TimeCostWidget_spendLifeHours__Gw_Dg",targetsSection:"TimeCostWidget_targetsSection__1s68z",accentIcon:"TimeCostWidget_accentIcon__6IScT",accentLabel:"TimeCostWidget_accentLabel__bPWmh",targetsIntro:"TimeCostWidget_targetsIntro__uok5F",targetCard:"TimeCostWidget_targetCard__Ss2S_",targetValue:"TimeCostWidget_targetValue__5STEz",targetMultiplier:"TimeCostWidget_targetMultiplier__NlN4q",targetIncome:"TimeCostWidget_targetIncome__Z6Neg"}},74480:e=>{e.exports={miniBarTrack:"AutonomyScoreWidget_miniBarTrack__fHmsm",miniBarFill:"AutonomyScoreWidget_miniBarFill__uhwz2",modalOverlay:"AutonomyScoreWidget_modalOverlay__xvz37",modalBackdrop:"AutonomyScoreWidget_modalBackdrop__A5ES_",modalContent:"AutonomyScoreWidget_modalContent__pV6Nm",modalTitle:"AutonomyScoreWidget_modalTitle__hCc
1QO",modalCloseBtn:"AutonomyScoreWidget_modalCloseBtn__6Cwvz",iconSubtle:"AutonomyScoreWidget_iconSubtle__RCdf9",modalDescription:"AutonomyScoreWidget_modalDescription__zr2Yb",modalSectionTitle:"AutonomyScoreWidget_modalSectionTitle__j_L_T",modalPillarList:"AutonomyScoreWidget_modalPillarList__xekH5",pillarName:"AutonomyScoreWidget_pillarName__H2Ntl",pillarDesc:"AutonomyScoreWidget_pillarDesc__v2uim",gradesTitle:"AutonomyScoreWidget_gradesTitle__h2rny",gradesGrid:"AutonomyScoreWidget_gradesGrid__MeSGJ",gradeItem:"AutonomyScoreWidget_gradeItem__WOskw",gradeLetter:"AutonomyScoreWidget_gradeLetter__hkl91",improveSectionTitle:"AutonomyScoreWidget_improveSectionTitle__8HIY7",improveTipList:"AutonomyScoreWidget_improveTipList__r6d_9",improveTip:"AutonomyScoreWidget_improveTip__6ZyPx",improveBullet:"AutonomyScoreWidget_improveBullet__fkaut",modalFootnote:"AutonomyScoreWidget_modalFootnote___KHi4",loadingContainer:"AutonomyScoreWidget_loadingContainer__kTbDI",loadingTitle:"AutonomyScoreWidget_loadingTitle__ti2Vr",loadingCircle:"AutonomyScoreWidget_loadingCircle__3x5gs",widget:"AutonomyScoreWidget_widget__nHFRO",widgetInner:"AutonomyScoreWidget_widgetInner__WEwa7",headerLabel:"AutonomyScoreWidget_headerLabel__bCJ9f",changeIndicator:"AutonomyScoreWidget_changeIndicator__hybUP",infoBtn:"AutonomyScoreWidget_infoBtn__IxVAo",scoreNumber:"AutonomyScoreWidget_scoreNumber__HGDLW",scoreMax:"AutonomyScoreWidget_scoreMax__O9naa",gradeBadge:"AutonomyScoreWidget_gradeBadge__SVfaZ",scoreMessage:"AutonomyScoreWidget_scoreMessage__C99hX",streakSection:"AutonomyScoreWidget_streakSection__QO0Vl",iconAccent:"AutonomyScoreWidget_iconAccent__AbmPl",streakText:"AutonomyScoreWidget_streakText__LmOdU",streakBest:"AutonomyScoreWidget_streakBest__wtm_I",categoryLabel:"AutonomyScoreWidget_categoryLabel__zgf_D",categoryScore:"AutonomyScoreWidget_categoryScore__xJTmG",toggleBtn:"AutonomyScoreWidget_toggleBtn__6njOX",detailsSection:"AutonomyScoreWidget_detailsSection__g7rus",detailCategoryTitle:"AutonomyScoreWidget_detailCategoryTitle__DDbU3",detailItem:"AutonomyScoreWidget_detailItem__AFvzt",detailBullet:"AutonomyScoreWidget_detailBullet__uW4YW",tipsSection:"AutonomyScoreWidget_tipsSection__pmqqE",tipsLabel:"AutonomyScoreWidget_tipsLabel__xREwq",tipText:"AutonomyScoreWidget_tipText__rY9Zp"}},80375:(e,t,a)=>{Promise.resolve().then(a.bind(a,26296))},84397:(e,t,a)=>{"use strict";a.d(t,{S:()=>l,g:()=>c});var s=a(54568),o=a(7620),i=a(24560);let n={sm:"24px",md:"32px",lg:"42px",xl:"56px"},r={sm:24,md:32,lg:42,xl:56};function l(e){let{size:t,colorScheme:a}=e,i=(0,o.useId)(),n="ascent-grad".concat(i);return"white"===a?(0,s.jsxs)("svg",{width:t,height:t,viewBox:"0 0 140 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M70 20L105 55L70 42L35 55L70 20Z",fill:"#fff"}),(0,s.jsx)("path",{d:"M70 50L105 85L70 72L35 85L70 50Z",fill:"#fff",opacity:"0.6"}),(0,s.jsx)("path",{d:"M70 80L105 115L70 102L35 115L70 80Z",fill:"#fff",opacity:"0.3"})]}):"black"===a?(0,s.jsxs)("svg",{width:t,height:t,viewBox:"0 0 140 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M70 20L105 55L70 42L35 55L70 20Z",fill:"#000"}),(0,s.jsx)("path",{d:"M70 50L105 85L70 72L35 85L70 50Z",fill:"#000",opacity:"0.6"}),(0,s.jsx)("path",{d:"M70 80L105 115L70 102L35 115L70 80Z",fill:"#000",opacity:"0.3"})]}):"yellow"===a?(0,s.jsxs)("svg",{width:t,height:t,viewBox:"0 0 140 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M70 20L105 55L70 42L35 55L70 20Z",fill:"#E4FF1A"}),(0,s.jsx)("path",{d:"M70 50L105 85L70 72L35 85L70 50Z",fill:"#E4FF1A",opacity:"0.7"}),(0,s.jsx)("path",{d:"M70 80L105 115L70 102L35 115L70 80Z",fill:"#E4FF1A",opacity:"0.4"})]}):"solid"===a?(0,s.jsxs)("svg",{width:t,height:t,viewBox:"0 0 140 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("path",{d:"M70 20L105 55L70 42L35 55L70 20Z",fill:"#10b981"}),(0,s.jsx)("path",{d:"M70 50L105 85L70 72L35 85L70 50Z",fill:"#10b981",opacity:"0.6"}),(0,s.jsx)("path",{d:"M70 80L105 115L70 102L35 115L70 80Z",fill:"#10b981",opacity:"0.3"})]}):(0,s.jsxs)("svg",{width:t,height:t,viewBox:"0 0 140 140",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,s.jsx)("defs",{children:(0,s.jsxs)("linearGradient",{id:n,x1:"70",y1:"25",x2:"70",y2:"115",gradientUnits:"userSpaceOnUse",children:[(0,s.jsx)("stop",{offset:"0%",stopColor:"#34d399"}),(0,s.jsx)("stop",{offset:"100%",stopColor:"#047857"})]})}),(0,s.jsx)("path",{d:"M70 20L105 55L70 42L35 55L70 20Z",fill:"url(#".concat(n,")")}),(0,s.jsx)("path",{d:"M70 50L105 85L70 72L35 85L70 50Z",fill:"url(#".concat(n,")"),opacity:"0.6"}),(0,s.jsx)("path",{d:"M70 80L105 115L70 102L35 115L70 80Z",fill:"url(#".concat(n,")"),opacity:"0.3"})]})}function c(e){let{variant:t="desktop",size:a="md",className:c="",colorScheme:d="auto"}=e,{resolvedTheme:m}=(0,i.D)(),[h,_]=(0,o.useState)(!1);(0,o.useEffect)(()=>_(!0),[]);let u="onAccent"===d?"#000":"#fff",x="onAccent"===d?"#fff":"autonomy"===d?"#10b981":"luxury"===d?"#C9A962":"light"===d?"#fff":"dark"===d?"#10b981":h&&"dark"!==m?"#059669":"#10b981";return(0,s.jsxs)("div",{className:"flex items-center ".concat(c),style:{gap:"with-icon"===t?"12px":"0",transition:"all 300ms ease"},children:[("icon-only"===t||"icon-mark"===t||"with-icon"===t)&&(0,s.jsx)(l,{size:r[a],colorScheme:"light"===d||"onAccent"===d?"white":"gradient"}),("desktop"===t||"with-icon"===t)&&(0,s.jsxs)("span",{style:{fontFamily:"var(--font-cormorant), serif",fontWeight:600,fontSize:n[a],color:u,lineHeight:1.1,transition:"color 300ms ease"},children:["Autonomy ",(0,s.jsx)("span",{style:{color:x,transition:"color 300ms ease"},children:"Ledger"})]}),"mobile"===t&&(0,s.jsxs)("span",{style:{fontFamily:"var(--font-cormorant), serif",fontWeight:600,fontSize:n[a],color:u,lineHeight:1.1},children:["A",(0,s.jsx)("span",{style:{color:x},children:"L"})]})]})}}},e=>{e.O(0,[9081,7592,1090,3558,5730,6427,5312,2561,4816,2203,5490,7430,9115,7571,3670,587,6531,7358],()=>e(e.s=80375)),_N_E=e.O()}]);
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.