1import{j as e}from"./c-kIrgbF5a.js";import{r as C}from"./c-CxWec-l3.js";import{I as re}from"./app-M4uDje7W.js";import"./c-DSjpaNRf.js";const ae={prime:{rate:0,name:"Prime Rate",stale:!0},sofr:{rate:0,name:"SOFR (30-Day)",stale:!0},treasury:{rate:0,name:"1-Yr Treasury",stale:!0}},n=i=>{const c=parseFloat(String(i).replace(/[^0-9.-]+/g,""));return isNaN(c)?"$0":new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(c)},M=i=>parseFloat(String(i).replace(/[^0-9.-]+/g,""))||0,J=(i,c)=>i*(c/100)/12,Y=(i,c,s)=>{const x=c/100/12;return x===0?i/s:i*(x*Math.pow(1+x,s))/(Math.pow(1+x,s)-1)},d={Home:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"}),e.jsx("polyline",{points:"9 22 9 12 15 12 15 22"})]}),DollarSign:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"12",y1:"1",x2:"12",y2:"23"}),e.jsx("path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"})]}),TrendingUp:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"23 6 13.5 15.5 8.5 10.5 1 18"}),e.jsx("polyline",{points:"17 6 23 6 23 12"})]}),Percent:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"19",y1:"5",x2:"5",y2:"19"}),e.jsx("circle",{cx:"6.5",cy:"6.5",r:"2.5"}),e.jsx("circle",{cx:"17.5",cy:"17.5",r:"2.5"})]}),Calendar:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2",ry:"2"}),e.jsx("line",{x1:"16",y1:"2",x2:"16",y2:"6"}),e.jsx("line",{x1:"8",y1:"2",x2:"8",y2:"6"}),e.jsx("line",{x1:"3",y1:"10",x2:"21",y2:"10"})]}),CreditCard:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"1",y:"4",width:"22",height:"16",rx:"2"}),e.jsx("line",{x1:"1",y1:"10",x2:"23",y2:"10"})]}),Layers:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polygon",{points:"12 2 2 7 12 12 22 7 12 2"}),e.jsx("polyline",{points:"2 17 12 22 22 17"}),e.jsx("polyline",{points:"2 12 12 17 22 12"})]}),ArrowRight:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("line",{x1:"5",y1:"12",x2:"19",y2:"12"}),e.jsx("polyline",{points:"12 5 19 12 12 19"})]}),Check:()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}),AlertTriangle:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("path",{d:"M10.29 3.86L1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0z"}),e.jsx("line",{x1:"12",y1:"9",x2:"12",y2:"13"}),e.jsx("line",{x1:"12",y1:"17",x2:"12.01",y2:"17"})]}),Info:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"10"}),e.jsx("line",{x1:"12",y1:"16",x2:"12",y2:"12"}),e.jsx("line",{x1:"12",y1:"8",x2:"12.01",y2:"8"})]}),RefreshCw:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("polyline",{points:"23 4 23 10 17 10"}),e.jsx("polyline",{points:"1 20 1 14 7 14"}),e.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]}),Shield:()=>e.jsx("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("path",{d:"M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"})}),Calculator:()=>e.jsxs("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("rect",{x:"4",y:"2",width:"16",height:"20",rx:"2"}),e.jsx("line",{x1:"8",y1:"6",x2:"16",y2:"6"}),e.jsx("line",{x1:"8",y1:"10",x2:"8",y2:"10.01"}),e.jsx("line",{x1:"12",y1:"10",x2:"12",y2:"10.01"}),e.jsx("line",{x1:"16",y1:"10",x2:"16",y2:"10.01"}),e.jsx("line",{x1:"8",y1:"14",x2:"8",y2:"14.01"}),e.jsx("line",{x1:"12",y1:"14",x2:"12",y2:"14.01"}),e.jsx("line",{x1:"16",y1:"14",x2:"16",y2:"14.01"}),e.jsx("line",{x1:"8",y1:"18",x2:"8",y2:"18.01"}),e.jsx("line",{x1:"12",y1:"18",x2:"12",y2:"18.01"}),e.jsx("line",{x1:"16",y1:"18",x2:"16",y2:"18.01"})]})},H=({active:i,onClick:c,children:s,icon:x})=>e.jsxs("button",{onClick:c,style:{...t.tabButton,...i?t.tabButtonActive:{}},children:[e.jsx("span",{style:t.tabIcon,children:x}),s]}),g=({label:i,type:c="text",value:s,onChange:x,placeholder:m,required:D,mono:v,options:z,suffix:a,prefix:f,disabled:o,...F})=>e.jsxs("div",{style:t.formGroup,children:[e.jsx("label",{style:t.formLabel,children:i}),e.jsxs("div",{style:t.inputWrapper,children:[f&&e.jsx("span",{style:t.inputPrefix,children:f}),z?e.jsx("select",{style:{...t.formInput,...t.formSelect,...o?t.inputDisabled:{}},value:s,onChange:j=>x(j.target.value),required:D,disabled:o,children:z.map(j=>e.jsx("option",{value:j.value,children:j.label},j.value))}):e.jsx("input",{type:c,style:{...t.formInput,...v?t.mono:{},...f?t.inputWithPrefix:{},...a?t.inputWithSuffix:{},...o?t.inputDisabled:{}},value:s,onChange:j=>x(j.target.value),placeholder:m,required:D,disabled:o,...F}),a&&e.jsx("span",{style:t.inputSuffix,children:a})]})]}),O=({label:i,value:c,sublabel:s,color:x,icon:m,small:D})=>e.jsxs("div",{style:{...t.statCard,...D?t.statCardSmall:{}},children:[e.jsxs("div",{style:t.statCardHeader,children:[e.jsx("span",{style:t.statCardLabel,children:i}),m&&e.jsx("span",{style:{...t.statCardIcon,color:x},children:m})]}),e.jsx("div",{style:{...t.statCardValue,color:x},children:c}),s&&e.jsx("div",{style:t.statCardSublabel,children:s})]}),K=({value:i,max:c,label:s,color:x="#00d26a"})=>{const m=Math.min(i/c*100,100);return e.jsxs("div",{style:t.progressContainer,children:[e.jsxs("div",{style:t.progressHeader,children:[e.jsx("span",{style:t.progressLabel,children:s}),e.jsxs("span",{style:t.progressValue,children:[m.toFixed(1),"%"]})]}),e.jsx("div",{style:t.progressTrack,children:e.jsx("div",{style:{...t.progressFill,width:`${m}%`,background:x}})})]})},Q=({title:i,items:c,isRecommended:s})=>e.jsxs("div",{style:{...t.comparisonCard,...s?t.comparisonCardRecommended:{}},children:[s&&e.jsx("div",{style:t.recommendedBadge,children:"RECOMMENDED"}),e.jsx("h4",{style:t.comparisonTitle,children:i}),e.jsx("div",{style:t.comparisonItems,children:c.map((x,m)=>e.jsxs("div",{style:t.comparisonItem,children:[e.jsx("span",{style:t.comparisonItemLabel,children:x.label}),e.jsx("span",{style:{...t.comparisonItemValue,...x.highlight?{color:"#00d26a",fontWeight:600}:{}},children:x.value})]},m))})]});function de(){var _,N,U;const[i,c]=C.useState("calculator"),[s,x]=C.useState(ae);C.useEffect(()=>{let r=!1;async function b(){var h,S,P,T,k,B,w,I,W;try{const l=await re("/api/los/heloc/rates"),p=(l==null?void 0:l.rates)||l;if(!r&&(p!=null&&p.prime||p!=null&&p.sofr||p!=null&&p.treasury)){const V=(l==null?void 0:l.live)===!0&&(l==null?void 0:l.stale)!==!0;x({prime:{rate:((h=p.prime)==null?void 0:h.rate)||0,name:"Prime Rate",stale:!V||((S=p.prime)==null?void 0:S.stale)===!0,asOf:((P=p.prime)==null?void 0:P.asOf)||(l==null?void 0:l.asOf)},sofr:{rate:((T=p.sofr)==null?void 0:T.rate)||0,name:"SOFR (30-Day)",stale:!V||((k=p.sofr)==null?void 0:k.stale)===!0,asOf:((B=p.sofr)==null?void 0:B.asOf)||(l==null?void 0:l.asOf)},treasury:{rate:((w=p.treasury)==null?void 0:w.rate)||0,name:"1-Yr Treasury",stale:!V||((I=p.treasury)==null?void 0:I.stale)===!0,asOf:((W=p.treasury)==null?void 0:W.asOf)||(l==null?void 0:l.asOf)}})}}catch(l){console.warn("[HELOCWorkflow] Index rates API unavailable:",l.message)}}return b(),()=>{r=!0}},[]);const[m,D]=C.useState({value:6e5,address:"",city:"",state:"FL",zip:""}),[v,z]=C.useState({balance:35e4,rate:6.5,payment:2212}),[a,f]=C.useState({productType:"heloc",purpose:"home_improvement",requestedLine:1e5,indexType:"prime",margin:.5,drawPeriodYears:10,repaymentPeriodYears:20,introRate:null,introMonths:0,floor:3.99,ceiling:18}),[o,F]=C.useState({purchasePrice:5e5,structure:"80/10/10",firstRate:7,helocRate:9}),[j,ee]=C.useState([{id:1,date:"2024-12-01",amount:25e3,purpose:"Home Improvement",status:"completed"},{id:2,date:"2024-12-15",amount:15e3,purpose:"Debt Consolidation",status:"completed"}]),[L,E]=C.useState({amount:"",purpose:"home_improvement"}),A=((_=s[a.indexType])==null?void 0:_.rate)||8.5,R=C.useMemo(()=>{let r=A+a.margin;return r=Math.max(r,a.floor),r=Math.min(r,a.ceiling),r},[A,a.margin,a.floor,a.ceiling]),u=C.useMemo(()=>{const r=m.value-v.balance,b=r/m.value*100,h=v.balance/m.value*100,S=90,P=m.value*(S/100)-v.balance,T=Math.max(0,P),k=Math.min(a.requestedLine,T),B=(v.balance+k)/m.value*100;return{equity:r,equityPercent:b,currentLTV:h,maxCLTV:S,maxCreditLine:T,requestedLine:k,projectedCLTV:B,availableCredit:k-j.reduce((w,I)=>w+I.amount,0),currentBalance:j.reduce((w,I)=>w+I.amount,0)}},[m.value,v.balance,a.requestedLine,j]),$=C.useMemo(()=>{const r=u.currentBalance||a.requestedLine*.5,b=J(r,R),h=Y(r,R,a.repaymentPeriodYears*12),S=Math.max(b,r*.01,50);return{interestOnlyPayment:b,fullyAmortizedPayment:h,minimumPayment:S,monthlyInterest:r*(R/100)/12}},[u.currentBalance,a.requestedLine,R,a.repaymentPeriodYears]),y=C.useMemo(()=>{const r=o.purchasePrice,[b,h,S]=o.structure.split("/").map(Number),P=r*(b/100),T=r*(h/100),k=r*(S/100),B=Y(P,o.firstRate,360),w=J(T,o.helocRate),I=B+w,W=r*.9,l=r*.1,p=Y(W,o.firstRate,360),q=W*(.5/100)/12,X=p+q,G=X-I;
1return{firstMortgageAmount:P,helocAmount:T,downPayment:k,firstPayment:B,helocPayment:w,totalPayment:I,conventionalLoan:W,conventionalDown:l,conventionalPayment:p,monthlyPMI:q,conventionalTotal:X,monthlySavings:G,pmiAvoidance:q,breakEvenMonths:G>0?0:Math.ceil((k-l)/Math.abs(G))}},[o]),te=()=>{const r=M(L.amount);if(r<=0||r>u.availableCredit)return;const b={id:Date.now(),date:new Date().toISOString().split("T")[0],amount:r,purpose:L.purpose,status:"pending"};ee([...j,b]),E({amount:"",purpose:"home_improvement"})};return e.jsxs("div",{style:t.container,children:[e.jsxs("div",{style:t.header,children:[e.jsxs("div",{style:t.headerLeft,children:[e.jsxs("div",{style:t.logo,children:[e.jsx("div",{style:t.logoIcon,children:"H"}),e.jsxs("div",{style:t.logoText,children:["Home",e.jsx("span",{style:t.logoAccent,children:"Equal"})]})]}),e.jsx("div",{style:t.headerDivider}),e.jsxs("div",{style:t.pageTitle,children:[e.jsx("h1",{style:t.pageTitleText,children:"HELOC Workflow"}),e.jsx("span",{style:t.badge,children:"ARIVE Doesn't Have This"})]})]}),e.jsx("div",{style:t.headerRight,children:e.jsxs("div",{style:t.rateDisplay,children:[e.jsx("span",{style:t.rateLabel,children:"Current Prime"}),e.jsxs("span",{style:t.rateValue,children:[s.prime.rate,"%"]})]})})]}),e.jsx("div",{style:t.tabsContainer,children:e.jsxs("div",{style:t.tabs,children:[e.jsx(H,{active:i==="calculator",onClick:()=>c("calculator"),icon:e.jsx(d.Calculator,{}),children:"Credit Line Calculator"}),e.jsx(H,{active:i==="piggyback",onClick:()=>c("piggyback"),icon:e.jsx(d.Layers,{}),children:"Piggyback Scenarios"}),e.jsx(H,{active:i==="draws",onClick:()=>c("draws"),icon:e.jsx(d.CreditCard,{}),children:"Draw Management"}),e.jsx(H,{active:i==="rates",onClick:()=>c("rates"),icon:e.jsx(d.TrendingUp,{}),children:"Rate Structure"})]})}),e.jsxs("div",{style:t.mainContent,children:[i==="calculator"&&e.jsxs("div",{style:t.calculatorLayout,children:[e.jsxs("div",{style:t.inputColumn,children:[e.jsxs("div",{style:t.card,children:[e.jsx("div",{style:t.cardHeader,children:e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.Home,{})}),"Property Information"]})}),e.jsxs("div",{style:t.formGrid2,children:[e.jsx(g,{label:"Property Value",value:n(m.value),onChange:r=>D({...m,value:M(r)}),placeholder:"$600,000",mono:!0}),e.jsx(g,{label:"First Mortgage Balance",value:n(v.balance),onChange:r=>z({...v,balance:M(r)}),placeholder:"$350,000",mono:!0})]}),e.jsxs("div",{style:{...t.formGrid2,marginTop:16},children:[e.jsx(g,{label:"First Mortgage Rate",value:v.rate,onChange:r=>z({...v,rate:parseFloat(r)||0}),suffix:"%",mono:!0}),e.jsx(g,{label:"First Mortgage Payment",value:n(v.payment),onChange:r=>z({...v,payment:M(r)}),mono:!0})]})]}),e.jsxs("div",{style:t.card,children:[e.jsx("div",{style:t.cardHeader,children:e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.CreditCard,{})}),"HELOC Configuration"]})}),e.jsxs("div",{style:t.formGrid2,children:[e.jsx(g,{label:"Product Type",value:a.productType,onChange:r=>f({...a,productType:r}),options:[{value:"heloc",label:"HELOC (Variable Rate)"},{value:"home_equity_loan",label:"Home Equity Loan (Fixed)"},{value:"piggyback",label:"Piggyback (Purchase)"}]}),e.jsx(g,{label:"Purpose",value:a.purpose,onChange:r=>f({...a,purpose:r}),options:[{value:"home_improvement",label:"Home Improvement"},{value:"debt_consolidation",label:"Debt Consolidation"},{value:"major_purchase",label:"Major Purchase"},{value:"education",label:"Education"},{value:"other",label:"Other"}]})]}),e.jsxs("div",{style:{...t.formGrid2,marginTop:16},children:[e.jsx(g,{label:"Requested Credit Line",value:n(a.requestedLine),onChange:r=>f({...a,requestedLine:M(r)}),mono:!0}),e.jsx(g,{label:"Index Type",value:a.indexType,onChange:r=>f({...a,indexType:r}),options:[{value:"prime",label:`Prime Rate (${s.prime.rate}%${s.prime.stale?" estimate":""})`},{value:"sofr",label:`SOFR 30-Day (${s.sofr.rate}%${s.sofr.stale?" estimate":""})`},{value:"treasury",label:`1-Yr Treasury (${s.treasury.rate}%${s.treasury.stale?" estimate":""})`}]})]}),e.jsxs("div",{style:{...t.formGrid3,marginTop:16},children:[e.jsx(g,{label:"Margin",value:a.margin,onChange:r=>f({...a,margin:parseFloat(r)||0}),suffix:"%",mono:!0}),e.jsx(g,{label:"Draw Period",value:a.drawPeriodYears,onChange:r=>f({...a,drawPeriodYears:parseInt(r)||10}),suffix:"years"}),e.jsx(g,{label:"Repayment Period",value:a.repaymentPeriodYears,onChange:r=>f({...a,repaymentPeriodYears:parseInt(r)||20}),suffix:"years"})]}),e.jsxs("div",{style:{...t.formGrid2,marginTop:16},children:[e.jsx(g,{label:"Floor Rate",value:a.floor,onChange:r=>f({...a,floor:parseFloat(r)||0}),suffix:"%",mono:!0}),e.jsx(g,{label:"Ceiling Rate",value:a.ceiling,onChange:r=>f({...a,ceiling:parseFloat(r)||18}),suffix:"%",mono:!0})]})]})]}),e.jsxs("div",{style:t.resultsColumn,children:[e.jsxs("div",{style:t.resultsCard,children:[e.jsx("h3",{style:t.resultsTitle,children:"Equity Analysis"}),e.jsxs("div",{style:t.statsGrid,children:[e.jsx(O,{label:"Available Equity",value:n(u.equity),sublabel:`${u.equityPercent.toFixed(1)}% of home value`,color:"#00d26a",icon:e.jsx(d.Home,{})}),e.jsx(O,{label:"Max Credit Line",value:n(u.maxCreditLine),sublabel:`Based on ${u.maxCLTV}% max CLTV`,color:"#4facfe",icon:e.jsx(d.CreditCard,{})})]}),e.jsxs("div",{style:t.progressSection,children:[e.jsx(K,{value:u.currentLTV,max:100,label:"Current LTV (First Mortgage)",color:"#55c1ff"}),e.jsx(K,{value:u.projectedCLTV,max:100,label:"Projected CLTV (With HELOC)",color:u.projectedCLTV>90?"#ff4757":"#00d26a"})]})]}),e.jsxs("div",{style:t.resultsCard,children:[e.jsx("h3",{style:t.resultsTitle,children:"Rate & Payment"}),e.jsxs("div",{style:t.rateBreakdown,children:[e.jsxs("div",{style:t.rateItem,children:[e.jsx("span",{style:t.rateItemLabel,children:(N=s[a.indexType])==null?void 0:N.name}),e.jsxs("span",{style:t.rateItemValue,children:[A,"%"]})]}),e.jsx("div",{style:t.rateOperator,children:"+"}),e.jsxs("div",{style:t.rateItem,children:[e.jsx("span",{style:t.rateItemLabel,children:"Margin"}),e.jsxs("span",{style:t.rateItemValue,children:[a.margin,"%"]})]}),e.jsx("div",{style:t.rateOperator,children:"="}),e.jsxs("div",{style:t.rateItemTotal,children:[e.jsx("span",{style:t.rateItemLabel,children:"Your Rate"}),e.jsxs("span",{style:t.rateItemValueLarge,children:[R.toFixed(3),"%"]})]})]}),e.jsxs("div",{style:t.paymentGrid,children:[e.jsx(O,{label:"Interest-Only Payment",value:n($.interestOnlyPayment),sublabel:"Draw period minimum",small:!0}),e.jsx(O,{label:"Fully Amortized",value:n($.fullyAmortizedPayment),sublabel:"Repayment period",small:!0})]})]}),e.jsxs("div",{style:t.resultsCard,children:[e.jsx("h3",{style:t.resultsTitle,children:"HELOC Timeline"}),e.jsxs("div",{style:t.timeline,children:[e.jsxs("div",{style:t.timelineItem,children:[e.jsx("div",{style:t.timelineDot}),e.jsxs("div",{style:t.timelineContent,children:[e.jsx("div",{style:t.timelineTitle,children:"Draw Period"}),e.jsxs("div",{style:t.timelineDesc,children:[a.drawPeriodYears," years ⢠Interest-only payments ⢠Access funds anytime"]})]}),e.jsxs("div",{style:t.timelineValue,children:[a.drawPeriodYears," yrs"]})]}),e.jsxs("div",{style:t.timelineItem,children:[e.jsx("div",{style:{...t.timelineDot,background:"#8d68ff"}}),e.jsxs("div",{style:t.timelineContent,children:[e.jsx("div",{style:t.timelineTitle,children:"Repayment Period"}),e.jsxs("div",{style:t.timelineDesc,children:[a.repaymentPeriodYears," years ⢠Principal + Interest ⢠No new draws"]})]}),e.jsxs("div",{style:t.timelineValue,children:[a.repaymentPeriodYears," yrs"]})]}),e.jsxs("div",{style:t.timelineItem,children:[e.jsx("div",{style:{...t.timelineDot,background:"#00d26a"}}),e.jsxs("div",{style:t.timelineContent,children:[e.jsx("div",{style:t.timelineTitle,children:"Maturity"}),e.jsx("div",{style:t.timelineDesc,children:"Balance paid in full"})]}),e.jsxs("div",{style:t.timelineValue,children:[a.drawPeriodYears+a.repaymentPeriodYears," yrs total"]})]})]})]})]})]}),i==="piggyback"&&e.jsxs("div",{style:t.piggybackLayout,children:[e.jsx("div",{style:t.piggybackInputs,children:e.jsxs("div",{style:t.card,children:[e.jsxs("div",{style:t.cardHeader,children:[e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.Layers,{})}),"Piggyback Loan Scenario"]}),e.jsx("span",{style:t.badgeSuccess,children:"Avoid PMI"})]}),e.jsxs("div",{style:t.infoBox,children:[e.jsx(d.Info,{}),e.jsx("span",{children:"A piggyback loan combines a first mortgage with a HELOC to avoid PMI on purchases with less than 20% down."})]}),e.jsxs("div",{style:{...t.formGrid2,marginTop:20},children:[e.jsx(g,{label:"Purchase Price",value:n(o.purchasePrice),onChange:r=>F({...o,purchasePrice:M(r)}),mono:!0}),e.jsx(g,{label:"Structure",value:o.structure,onChange:r=>F({...o,structure:r}),options:[{value:"80/10/10",label:"80/10/10 (10% down)"},{value:"80/15/5",label:"80/15/5 (5% down)"},{value:"80/5/15",label:"80/5/15 (15% down)"}]})]}),e.jsxs("div",{style:{...t.formGrid2,marginTop:16},children:[e.jsx(g,{label:"First Mortgage Rate",value:o.firstRate,onChange:r=>F({...o,firstRate:parseFloat(r)||0}),suffix:"%",mono:!0}),e.jsx(g,{label:"HELOC Rate",value:o.helocRate,onChange:r=>F({...o,helocRate:parseFloat(r)||0}),suffix:"%",mono:!0})]}),e.jsx("div",{style:t.structureVisual,children:e.jsxs("div",{style:t.structureBar,children:[e.jsxs("div",{style:{...t.structureSegment,width:"80%",background:"linear-gradient(135deg, #4facfe, #00f2fe)"},children:[e.jsx("span",{children:"First Mortgage"}),e.jsx("span",{children:"80%"})]}),e.jsxs("div",{style:{...t.structureSegment,width:`${o.structure.split("/")[1]}%`,background:"linear-gradient(135deg, #566fff, #8d68ff)"},children:[e.jsx("span",{children:"HELOC"}),e.jsxs("span",{children:[o.structure.split("/")[1],"%"]})]}),e.jsxs("div",{style:{...t.structureSegment,width:`${o.structure.split("/")[2]}%`,background:"linear-gradient(135deg, #00d26a, #00e676)"},children:[e.jsx("span",{children:"Down"}),e.jsxs("span",{children:[o.structure.split("/")[2],"%"]})]})]})})]})}),e.jsxs("div",{style:t.piggybackResults,children:[e.jsxs("div",{style:t.comparisonGrid,children:[e.jsx(Q,{title:"Piggyback Structure",isRecommended:y.monthlySavings>
10,items:[{label:"First Mortgage",value:n(y.firstMortgageAmount)},{label:"HELOC",value:n(y.helocAmount)},{label:"Down Payment",value:n(y.downPayment)},{label:"First Mortgage P&I",value:n(y.firstPayment)},{label:"HELOC Payment",value:n(y.helocPayment)},{label:"Total Payment",value:n(y.totalPayment),highlight:!0},{label:"PMI",value:"$0",highlight:!0}]}),e.jsx(Q,{title:"Conventional + PMI",items:[{label:"Loan Amount",value:n(y.conventionalLoan)},{label:"Down Payment",value:n(y.conventionalDown)},{label:"Monthly P&I",value:n(y.conventionalPayment)},{label:"Monthly PMI",value:n(y.monthlyPMI)},{label:"Total Payment",value:n(y.conventionalTotal)}]})]}),e.jsxs("div",{style:t.savingsBox,children:[e.jsxs("div",{style:t.savingsHeader,children:[e.jsx(d.Shield,{}),e.jsx("span",{children:"PMI Avoidance Savings"})]}),e.jsxs("div",{style:t.savingsGrid,children:[e.jsxs("div",{style:t.savingsItem,children:[e.jsx("span",{style:t.savingsLabel,children:"Monthly Savings"}),e.jsxs("span",{style:{...t.savingsValue,color:y.monthlySavings>0?"#00d26a":"#ff4757"},children:[y.monthlySavings>0?"+":"",n(y.monthlySavings)]})]}),e.jsxs("div",{style:t.savingsItem,children:[e.jsx("span",{style:t.savingsLabel,children:"PMI Avoided"}),e.jsxs("span",{style:t.savingsValue,children:[n(y.pmiAvoidance),"/mo"]})]}),e.jsxs("div",{style:t.savingsItem,children:[e.jsx("span",{style:t.savingsLabel,children:"Annual PMI Savings"}),e.jsx("span",{style:t.savingsValue,children:n(y.pmiAvoidance*12)})]})]})]})]})]}),i==="draws"&&e.jsxs("div",{style:t.drawsLayout,children:[e.jsxs("div",{style:t.drawsLeft,children:[e.jsxs("div",{style:t.accountSummary,children:[e.jsxs("div",{style:t.accountHeader,children:[e.jsxs("div",{children:[e.jsx("div",{style:t.accountLabel,children:"Available Credit"}),e.jsx("div",{style:t.accountValue,children:n(u.availableCredit)})]}),e.jsxs("div",{style:t.accountCircle,children:[e.jsxs("svg",{viewBox:"0 0 36 36",style:t.accountCircleSvg,children:[e.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"rgba(255,255,255,0.1)",strokeWidth:"3"}),e.jsx("path",{d:"M18 2.0845 a 15.9155 15.9155 0 0 1 0 31.831 a 15.9155 15.9155 0 0 1 0 -31.831",fill:"none",stroke:"#00d26a",strokeWidth:"3",strokeDasharray:`${u.availableCredit/u.requestedLine*100}, 100`,style:{transition:"stroke-dasharray 0.5s ease"}})]}),e.jsxs("div",{style:t.accountCircleText,children:[(u.availableCredit/u.requestedLine*100).toFixed(0),"%"]})]})]}),e.jsxs("div",{style:t.accountStats,children:[e.jsxs("div",{style:t.accountStat,children:[e.jsx("span",{style:t.accountStatLabel,children:"Credit Line"}),e.jsx("span",{style:t.accountStatValue,children:n(u.requestedLine)})]}),e.jsxs("div",{style:t.accountStat,children:[e.jsx("span",{style:t.accountStatLabel,children:"Current Balance"}),e.jsx("span",{style:t.accountStatValue,children:n(u.currentBalance)})]}),e.jsxs("div",{style:t.accountStat,children:[e.jsx("span",{style:t.accountStatLabel,children:"Current Rate"}),e.jsxs("span",{style:t.accountStatValue,children:[R.toFixed(3),"%"]})]})]})]}),e.jsxs("div",{style:t.card,children:[e.jsx("div",{style:t.cardHeader,children:e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.DollarSign,{})}),"Request Draw"]})}),e.jsxs("div",{style:t.formGrid2,children:[e.jsx(g,{label:"Draw Amount",value:L.amount,onChange:r=>E({...L,amount:r}),placeholder:"$10,000",mono:!0}),e.jsx(g,{label:"Purpose",value:L.purpose,onChange:r=>E({...L,purpose:r}),options:[{value:"home_improvement",label:"Home Improvement"},{value:"debt_consolidation",label:"Debt Consolidation"},{value:"major_purchase",label:"Major Purchase"},{value:"emergency",label:"Emergency"},{value:"other",label:"Other"}]})]}),e.jsxs("button",{style:t.drawButton,onClick:te,disabled:!L.amount||M(L.amount)>u.availableCredit,children:[e.jsx(d.ArrowRight,{}),"Request Draw"]})]})]}),e.jsx("div",{style:t.drawsRight,children:e.jsxs("div",{style:t.card,children:[e.jsx("div",{style:t.cardHeader,children:e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.Calendar,{})}),"Draw History"]})}),e.jsx("div",{style:t.drawsList,children:j.length===0?e.jsxs("div",{style:t.emptyState,children:[e.jsx(d.CreditCard,{}),e.jsx("span",{children:"No draws yet"})]}):j.map(r=>e.jsxs("div",{style:t.drawItem,children:[e.jsxs("div",{style:t.drawItemLeft,children:[e.jsx("div",{style:t.drawItemDate,children:r.date}),e.jsx("div",{style:t.drawItemPurpose,children:r.purpose.replace(/_/g," ")})]}),e.jsxs("div",{style:t.drawItemRight,children:[e.jsx("div",{style:t.drawItemAmount,children:n(r.amount)}),e.jsx("div",{style:{...t.drawItemStatus,color:r.status==="completed"?"#00d26a":"#ffb800"},children:r.status})]})]},r.id))})]})})]}),i==="rates"&&e.jsxs("div",{style:t.ratesLayout,children:[e.jsxs("div",{style:t.card,children:[e.jsxs("div",{style:t.cardHeader,children:[e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.TrendingUp,{})}),"Index Rates (Current Market)"]}),e.jsx("span",{style:t.badgeInfo,children:"Updated Daily"})]}),e.jsx("div",{style:t.ratesGrid,children:Object.entries(s).map(([r,b])=>e.jsxs("div",{style:{...t.rateCard,...a.indexType===r?t.rateCardActive:{}},onClick:()=>f({...a,indexType:r}),children:[e.jsx("div",{style:t.rateCardName,children:b.name}),e.jsxs("div",{style:t.rateCardValue,children:[b.rate,"%"]}),a.indexType===r&&e.jsx("div",{style:t.rateCardCheck,children:e.jsx(d.Check,{})})]},r))})]}),e.jsxs("div",{style:t.card,children:[e.jsx("div",{style:t.cardHeader,children:e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.Percent,{})}),"Your Rate Calculation"]})}),e.jsxs("div",{style:t.rateFormula,children:[e.jsxs("div",{style:t.formulaBox,children:[e.jsx("div",{style:t.formulaLabel,children:"Index"}),e.jsxs("div",{style:t.formulaValue,children:[A,"%"]}),e.jsx("div",{style:t.formulaSublabel,children:(U=s[a.indexType])==null?void 0:U.name})]}),e.jsx("div",{style:t.formulaOperator,children:"+"}),e.jsxs("div",{style:t.formulaBox,children:[e.jsx("div",{style:t.formulaLabel,children:"Margin"}),e.jsxs("div",{style:t.formulaValue,children:[a.margin,"%"]}),e.jsx("div",{style:t.formulaSublabel,children:"Fixed for life of loan"})]}),e.jsx("div",{style:t.formulaOperator,children:"="}),e.jsxs("div",{style:{...t.formulaBox,...t.formulaBoxResult},children:[e.jsx("div",{style:t.formulaLabel,children:"Your Rate"}),e.jsxs("div",{style:t.formulaValueLarge,children:[R.toFixed(3),"%"]}),e.jsx("div",{style:t.formulaSublabel,children:"APR (Variable)"})]})]}),e.jsxs("div",{style:t.rateConstraints,children:[e.jsxs("div",{style:t.constraintItem,children:[e.jsx(d.AlertTriangle,{}),e.jsxs("span",{children:["Floor Rate: ",a.floor,"% (Rate cannot go below this)"]})]}),e.jsxs("div",{style:t.constraintItem,children:[e.jsx(d.AlertTriangle,{}),e.jsxs("span",{children:["Ceiling Rate: ",a.ceiling,"% (Rate cannot exceed this)"]})]}),e.jsxs("div",{style:t.constraintItem,children:[e.jsx(d.RefreshCw,{}),e.jsx("span",{children:"Rate adjusts monthly based on index changes"})]})]})]}),e.jsxs("div",{style:t.card,children:[e.jsx("div",{style:t.cardHeader,children:e.jsxs("div",{style:t.cardTitle,children:[e.jsx("span",{style:t.cardIcon,children:e.jsx(d.Calendar,{})}),"Rate Adjustment Schedule"]})}),e.jsxs("div",{style:t.scheduleTable,children:[e.jsxs("div",{style:t.scheduleHeader,children:[e.jsx("span",{children:"If Index Changes"}),e.jsx("span",{children:"Your New Rate"}),e.jsx("span",{children:"Monthly Payment"})]}),[-1,-.5,0,.5,1,1.5].map(r=>{let h=A+r+a.margin;h=Math.max(h,a.floor),h=Math.min(h,a.ceiling);const S=J(u.currentBalance||5e4,h);return e.jsxs("div",{style:{...t.scheduleRow,...r===0?t.scheduleRowCurrent:{}},children:[e.jsxs("span",{style:{color:r<0?"#00d26a":r>0?"#ff4757":"#ffffff"},children:[r>=0?"+":"",r,"%"]}),e.jsxs("span",{children:[h.toFixed(3),"%"]}),e.jsx("span",{children:n(S)})]},r)})]})]})]})]})]})}const t={container:{minHeight:"100vh",background:"linear-gradient(180deg, #0f0f0f 0%, #0a0e27 100%)",color:"#ffffff",fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif"},header:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px 32px",borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(18, 18, 26, 0.8)",backdropFilter:"blur(10px)",position:"sticky",top:0,zIndex:100},headerLeft:{display:"flex",alignItems:"center",gap:"24px"},headerRight:{display:"flex",alignItems:"center",gap:"16px"},logo:{display:"flex",alignItems:"center",gap:"10px"},logoIcon:{width:"36px",height:"36px",background:"linear-gradient(135deg, #566fff, #8d68ff)",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700,fontSize:"18px"},logoText:{fontWeight:700,fontSize:"20px",letterSpacing:"-0.5px"},logoAccent:{color:"#55c1ff"},headerDivider:{width:"1px",height:"32px",background:"rgba(255,255,255,0.1)"},pageTitle:{display:"flex",alignItems:"center",gap:"12px"},pageTitleText:{fontSize:"18px",fontWeight:600,margin:0},badge:{background:"linear-gradient(135deg, #1a365d, #2a4a7f)",padding:"4px 12px",borderRadius:"6px",fontSize:"11px",fontWeight:600,letterSpacing:"0.5px",border:"1px solid rgba(74, 144, 226, 0.3)"},badgeSuccess:{background:"rgba(0, 210, 106, 0.15)",color:"#00d26a",padding:"4px 12px",borderRadius:"6px",fontSize:"11px",fontWeight:600,border:"1px solid rgba(0, 210, 106, 0.3)"},badgeInfo:{background:"rgba(79, 172, 254, 0.15)",color:"#4facfe",padding:"4px 12px",borderRadius:"6px",fontSize:"11px",fontWeight:600,border:"1px solid rgba(79, 172, 254, 0.3)"},rateDisplay:{display:"flex",flexDirection:"column",alignItems:"flex-end"},rateLabel:{fontSize:"11px",color:"#606070",textTransform:"uppercase",letterSpacing:"0.5px"},rateValue:{fontSize:"18px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace",color:"#55c1ff"},tabsContainer:{borderBottom:"1px solid rgba(255,255,255,0.06)",background:"rgba(18, 18, 26, 0.5)",padding:"0 32px"},tabs:{display:"flex",gap:"4px"},tabButton:{display:"flex",alignItems:"center",gap:"8px",padding:"16px 20px",background:"transparent",border:"none",borderBottom:"2px s
1olid transparent",color:"#606070",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"all 0.15s ease",fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif"},tabButtonActive:{color:"#ffffff",borderBottomColor:"#55c1ff"},tabIcon:{width:"18px",height:"18px",display:"flex"},mainContent:{padding:"32px",maxWidth:"1600px",margin:"0 auto"},calculatorLayout:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"24px"},inputColumn:{display:"flex",flexDirection:"column",gap:"24px"},resultsColumn:{display:"flex",flexDirection:"column",gap:"24px"},card:{background:"rgba(22, 22, 31, 0.8)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"16px",padding:"24px"},cardHeader:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"24px"},cardTitle:{fontSize:"15px",fontWeight:600,display:"flex",alignItems:"center",gap:"10px"},cardIcon:{width:"20px",height:"20px",color:"#55c1ff"},formGrid2:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px"},formGrid3:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"16px"},formGroup:{display:"flex",flexDirection:"column",gap:"6px"},formLabel:{fontSize:"11px",fontWeight:600,color:"#a0a0b0",textTransform:"uppercase",letterSpacing:"0.5px"},inputWrapper:{position:"relative",display:"flex",alignItems:"center"},formInput:{width:"100%",background:"rgba(26, 26, 36, 0.8)",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"10px",padding:"12px 14px",fontSize:"14px",color:"#ffffff",outline:"none",transition:"all 0.15s ease",fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif"},formSelect:{cursor:"pointer",appearance:"none",backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23606070' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E")`,backgroundRepeat:"no-repeat",backgroundPosition:"right 12px center",paddingRight:"40px"},mono:{fontFamily:"'JetBrains Mono', monospace",letterSpacing:"0.5px"},inputSuffix:{position:"absolute",right:"14px",color:"#606070",fontSize:"14px",pointerEvents:"none"},inputWithSuffix:{paddingRight:"50px"},inputDisabled:{opacity:.5,cursor:"not-allowed"},resultsCard:{background:"rgba(22, 22, 31, 0.8)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"16px",padding:"24px"},resultsTitle:{fontSize:"14px",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",color:"#a0a0b0",marginBottom:"20px"},statsGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px"},statCard:{background:"rgba(255,255,255,0.02)",borderRadius:"12px",padding:"16px",border:"1px solid rgba(255,255,255,0.04)"},statCardSmall:{padding:"12px"},statCardHeader:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:"8px"},statCardLabel:{fontSize:"11px",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.5px",color:"#606070"},statCardIcon:{width:"20px",height:"20px"},statCardValue:{fontSize:"24px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace",letterSpacing:"-1px"},statCardSublabel:{fontSize:"12px",color:"#606070",marginTop:"4px"},progressSection:{marginTop:"20px",display:"flex",flexDirection:"column",gap:"16px"},progressContainer:{},progressHeader:{display:"flex",justifyContent:"space-between",marginBottom:"8px"},progressLabel:{fontSize:"12px",color:"#a0a0b0"},progressValue:{fontSize:"12px",fontFamily:"'JetBrains Mono', monospace",color:"#ffffff"},progressTrack:{height:"8px",background:"rgba(255,255,255,0.05)",borderRadius:"4px",overflow:"hidden"},progressFill:{height:"100%",borderRadius:"4px",transition:"width 0.5s ease"},rateBreakdown:{display:"flex",alignItems:"center",justifyContent:"center",gap:"12px",padding:"20px 0",marginBottom:"20px"},rateItem:{textAlign:"center",padding:"12px 16px",background:"rgba(255,255,255,0.02)",borderRadius:"8px"},rateItemLabel:{fontSize:"11px",color:"#606070",textTransform:"uppercase",letterSpacing:"0.5px",display:"block",marginBottom:"4px"},rateItemValue:{fontSize:"18px",fontWeight:600,fontFamily:"'JetBrains Mono', monospace"},rateItemTotal:{textAlign:"center",padding:"16px 24px",background:"linear-gradient(135deg, rgba(86, 111, 255, 0.15), rgba(141, 104, 255, 0.15))",borderRadius:"12px",border:"1px solid rgba(86, 111, 255, 0.3)"},rateItemValueLarge:{fontSize:"28px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace",color:"#55c1ff"},rateOperator:{fontSize:"24px",color:"#606070",fontWeight:300},paymentGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"12px"},timeline:{display:"flex",flexDirection:"column",gap:"16px"}
1,timelineItem:{display:"flex",alignItems:"flex-start",gap:"16px"},timelineDot:{width:"12px",height:"12px",borderRadius:"50%",background:"#4facfe",marginTop:"4px",flexShrink:0},timelineContent:{flex:1},timelineTitle:{fontSize:"14px",fontWeight:600,marginBottom:"4px"},timelineDesc:{fontSize:"12px",color:"#606070"},timelineValue:{fontSize:"14px",fontFamily:"'JetBrains Mono', monospace",color:"#a0a0b0"},piggybackLayout:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:"24px"},piggybackInputs:{},piggybackResults:{display:"flex",flexDirection:"column",gap:"24px"},infoBox:{display:"flex",alignItems:"flex-start",gap:"12px",padding:"16px",background:"rgba(79, 172, 254, 0.1)",borderRadius:"10px",border:"1px solid rgba(79, 172, 254, 0.2)",fontSize:"13px",color:"#a0a0b0"},structureVisual:{marginTop:"24px"},structureBar:{display:"flex",height:"48px",borderRadius:"8px",overflow:"hidden"},structureSegment:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",fontSize:"11px",fontWeight:600,color:"white",textTransform:"uppercase",letterSpacing:"0.5px"},comparisonGrid:{display:"grid",gridTemplateColumns:"repeat(2, 1fr)",gap:"16px"},comparisonCard:{background:"rgba(22, 22, 31, 0.8)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"16px",padding:"24px",position:"relative"},comparisonCardRecommended:{border:"1px solid rgba(0, 210, 106, 0.3)",background:"rgba(0, 210, 106, 0.05)"},recommendedBadge:{position:"absolute",top:"-10px",left:"20px",background:"#00d26a",color:"#000",padding:"4px 12px",borderRadius:"4px",fontSize:"10px",fontWeight:700,letterSpacing:"0.5px"},comparisonTitle:{fontSize:"16px",fontWeight:600,marginBottom:"20px",paddingBottom:"12px",borderBottom:"1px solid rgba(255,255,255,0.06)"},comparisonItems:{display:"flex",flexDirection:"column",gap:"12px"},comparisonItem:{display:"flex",justifyContent:"space-between",fontSize:"13px"},comparisonItemLabel:{color:"#a0a0b0"},comparisonItemValue:{fontFamily:"'JetBrains Mono', monospace"},savingsBox:{background:"rgba(22, 22, 31, 0.8)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"16px",padding:"24px"},savingsHeader:{display:"flex",alignItems:"center",gap:"10px",fontSize:"14px",fontWeight:600,marginBottom:"20px",color:"#00d26a"},savingsGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"16px"},savingsItem:{textAlign:"center"},savingsLabel:{display:"block",fontSize:"11px",color:"#606070",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px"},savingsValue:{fontSize:"20px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace"},drawsLayout:{display:"grid",gridTemplateColumns:"400px 1fr",gap:"24px"},drawsLeft:{display:"flex",flexDirection:"column",gap:"24px"},drawsRight:{},accountSummary:{background:"linear-gradient(135deg, rgba(0, 210, 106, 0.1), rgba(0, 230, 118, 0.05))",border:"1px solid rgba(0, 210, 106, 0.2)",borderRadius:"16px",padding:"24px"},accountHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"24px"},accountLabel:{fontSize:"12px",color:"#a0a0b0",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"4px"},accountValue:{fontSize:"32px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace",color:"#00d26a"},accountCircle:{position:"relative",width:"80px",height:"80px"},accountCircleSvg:{transform:"rotate(-90deg)",width:"100%",height:"100%"},accountCircleText:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"16px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace"},accountStats:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"16px"},accountStat:{textAlign:"center"},accountStatLabel:{display:"block",fontSize:"10px",color:"#606070",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"4px"},accountStatValue:{fontSize:"14px",fontFamily:"'JetBrains Mono', monospace"},drawButton:{width:"100%",marginTop:"20px",padding:"14px",background:"linear-gradient(135deg, #00d26a, #00e676)",border:"none",borderRadius:"10px",color:"#000",fontSize:"14px",fontWeight:600,cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",gap:"8px",fontFamily:"'Plus Jakarta Sans', system-ui, sans-serif",transition:"all 0.15s ease"},drawsList:{display:"flex",flexDirection:"column",gap:"12px"},emptyState:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",padding:"48px",color:"#606070",gap:"12px"},drawItem:{display:"flex",justifyContent:"space-between",alignItems:"center",padding:"16px",background:"rgba(255,255,255,0.02)",borderRadius:"10px",border:"1px solid rgba(255,255,255,0.04)"},drawItemLeft:{},drawItemDate:{fontSize:"14px",fontWeight:500,marginBottom:"4px"},drawItemPurpose:{fontSize:"12px",color:"#606070",textTransform:"capitalize"},drawItemRight:{textAlign:"right"},drawItemAmount:{fontSize:"16px",fontWeight:600,fontFamily:"'JetBrains Mono', monospace",marginBottom:"4px"},drawItemStatus:{fontSize:"11px",textTransform:"uppercase",letterSpacing:"0.5px",fontWeight:600},ratesLayout:{display:"flex",flexDirection:"column",gap:"24px",maxWidth:"900px",margin:"0 auto"},ratesGrid:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:"16px"},rateCard:{background:"rgba(255,255,255,0.02)",border:"1px solid rgba(255,255,255,0.06)",borderRadius:"12px",padding:"20px",cursor:"pointer",transition:"all 0.15s ease",position:"relative"},rateCardActive:{border:"1px solid rgba(86, 111, 255, 0.5)",background:"rgba(86, 111, 255, 0.1)"},rateCardName:{fontSize:"13px",color:"#a0a0b0",marginBottom:"8px"},rateCardValue:{fontSize:"28px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace"},rateCardCheck:{position:"absolute",top:"12px",right:"12px",width:"20px",height:"20px",color:"#55c1ff"},rateFormula:{display:"flex",alignItems:"center",justifyContent:"center",gap:"16px",padding:"32px 0"},formulaBox:{textAlign:"center",padding:"20px 24px",background:"rgba(255,255,255,0.02)",borderRadius:"12px"},formulaBoxResult:{background:"linear-gradient(135deg, rgba(86, 111, 255, 0.15), rgba(141, 104, 255, 0.1))",border:"1px solid rgba(86, 111, 255, 0.3)"},formulaLabel:{fontSize:"11px",color:"#606070",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"8px"},formulaValue:{fontSize:"24px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace"},formulaValueLarge:{fontSize:"32px",fontWeight:700,fontFamily:"'JetBrains Mono', monospace",color:"#55c1ff"},formulaSublabel:{fontSize:"11px",color:"#606070",marginTop:"8px"},formulaOperator:{fontSize:"32px",color:"#606070",fontWeight:300},rateConstraints:{display:"flex",flexDirection:"column",gap:"12px",padding:"20px",background:"rgba(255,255,255,0.02)",borderRadius:"12px"},constraintItem:{display:"flex",alignItems:"center",gap:"12px",fontSize:"13px",color:"#a0a0b0"},scheduleTable:{marginTop:"16px"},scheduleHeader:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",padding:"12px 16px",fontSize:"11px",color:"#606070",textTransform:"uppercase",letterSpacing:"0.5px",borderBottom:"1px solid rgba(255,255,255,0.06)"},scheduleRow:{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",padding:"14px 16px",fontSize:"14px",fontFamily:"'JetBrains Mono', monospace",borderBottom:"1px solid rgba(255,255,255,0.04)"},scheduleRowCurrent:{background:"rgba(86, 111, 255, 0.1)",borderRadius:"8px"}},Z=document.createElement("style");Z.textContent=` 2 @import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap'); 3 4 * { box-sizing: border-box; margin: 0; padding: 0; } 5 6 input:focus, select:focus { 7 border-color: #55c1ff !important; 8 box-shadow: 0 0 0 3px rgba(86, 111, 255, 0.15) !important; 9 } 10 11 input::placeholder { 12 color: #606070; 13 } 14 15 select option { 16 background: #1a1a24; 17 color: #ffffff; 18 } 19 20 button:hover:not(:disabled) { 21 transform: translateY(-2px); 22 box-shadow: 0 4px 20px rgba(0, 210, 106, 0.3); 23 } 24 25 button:disabled { 26 opacity: 0.5;
27 cursor: not-allowed; 28 } 29 30 ::-webkit-scrollbar { 31 width: 6px; 32 height: 6px; 33 } 34 35 ::-webkit-scrollbar-track { 36 background: rgba(255,255,255,0.02); 37 } 38 39 ::-webkit-scrollbar-thumb { 40 background: rgba(255,255,255,0.1); 41 border-radius: 3px; 42 } 43 44 ::-webkit-scrollbar-thumb:hover { 45 background: rgba(255,255,255,0.2); 46 } 47`;document.head.appendChild(Z);export{de as default};
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.