1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92290],{17466:(e,t,n)=>{n.d(t,{A1:()=>x,GT:()=>i,IE:()=>r,NT:()=>c,Qs:()=>g,bO:()=>s,gN:()=>d,gv:()=>m,mn:()=>l,rx:()=>u});let a=["credit_card","revolving","heloc"];function r(e){let t=["th","st","nd","rd"],n=e%100;return e+(t[(n-20)%10]||t[n]||t[0])}function l(e){let t=e.reportedAt?new Date(e.reportedAt):null;if(!t||isNaN(t.getTime()))return null;let n=t.getDate();return n<=5?25+n:n-5}function s(e){let t=e.dateOpened?new Date(e.dateOpened):null;if(t&&!isNaN(t.getTime()))return t.getDate();let n=e.reportedAt?new Date(e.reportedAt):null;return n&&!isNaN(n.getTime())?n.getDate():null}function o(e){return a.includes(e)}function i(e){return o(e.category)?l(e):s(e)}function c(e){return o(e.category)?"Pay before":"Payment due"}let d={1:"Week 1 (1st â 7th)",2:"Week 2 (8th â 14th)",3:"Week 3 (15th â 21st)",4:"Week 4 (22nd â 31st)",0:"Date unknown"};function u(e){return null==e||e<1?0:e<=7?1:e<=14?2:e<=21?3:4}function m(e){return!(e.balance<=0||e.isCollection||e.isChargeOff||e.dateClosed||/closed|paid|transferred/i.test(e.status||""))}function h(e){return String(e).padStart(2,"0")}function f(e){return e.replace(/\\/g,"\\\\").replace(/;/g,"\\;").replace(/,/g,"\\,").replace(/\n/g,"\\n")}function p(e){return"".concat(e.getUTCFullYear()).concat(h(e.getUTCMonth()+1)).concat(h(e.getUTCDate()),"T").concat(h(e.getUTCHours())).concat(h(e.getUTCMinutes())).concat(h(e.getUTCSeconds()),"Z")}function g(e){let t=p(new Date),n=["BEGIN:VCALENDAR","VERSION:2.0","PRODID:-//850 Credit//Payment Calendar//EN","CALSCALE:GREGORIAN","METHOD:PUBLISH"];for(let a of e){let e=Math.min(Math.max(a.dayOfMonth,1),28),r=new Date;r.setUTCDate(e),r.setUTCHours(9,0,0,0),r.getTime()<Date.now()&&r.setUTCMonth(r.getUTCMonth()+1),n.push("BEGIN:VEVENT","UID:".concat(a.uid),"DTSTAMP:".concat(t),"DTSTART:".concat(p(r)),"RRULE:FREQ=MONTHLY;BYMONTHDAY=".concat(e),"SUMMARY:".concat(f(a.title)),"BEGIN:VALARM","TRIGGER:-P1D","ACTION:DISPLAY","DESCRIPTION:".concat(f(a.title)),"END:VALARM","END:VEVENT")}return n.push("END:VCALENDAR"),n.join("\r\n")}function x(e,t){let n=new Blob([t],{type:"text/calendar;charset=utf-8"}),a=URL.createObjectURL(n),r=document.createElement("a");r.href=a,r.download=e,document.body.appendChild(r),r.click(),document.body.removeChild(r),URL.revokeObjectURL(a)}},27971:(e,t,n)=>{n.d(t,{KZ:()=>c,Qw:()=>s,S3:()=>i,dt:()=>o,jx:()=>d,zf:()=>l});var a=n(37700);function r(e){return e.toISOString().split("T")[0]}function l(e){var t,n;let{startingBalance:a,interestRate:l,committedPayment:s,paymentDayOfMonth:o}=e,i=l/12,c=[],d=a,u=0,m=0,h=0,f=new Date;for(f.setDate(1);d>.01&&u<600;){let e=function(e,t){let n=new Date(e),a=new Date(n.getFullYear(),n.getMonth()+1,0).getDate();return n.setDate(Math.min(t,a)),n}(function(e,t){let n=new Date(e);return n.setMonth(n.getMonth()+t),n}(f,++u),o),t=d*i,n=Math.min(s,d+t),a=n-t;if(a<=0)break;d=Math.max(0,d-a),m+=t,h+=a,c.push({month:u,dueDate:r(e),dueDateLabel:e.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),payment:Math.round(100*n)/100,principal:Math.round(100*a)/100,interest:Math.round(100*t)/100,remainingBalance:Math.round(100*d)/100,cumulativeInterest:Math.round(100*m)/100,cumulativePrincipal:Math.round(100*h)/100})}let p=c[c.length-1],g=null!=(t=null==p?void 0:p.dueDate)?t:r(new Date),x=null!=(n=null==p?void 0:p.dueDateLabel)?n:"N/A";return{accountId:e.accountId,creditorName:e.creditorName,category:e.category,startingBalance:a,interestRate:l,committedPayment:s,payoffDate:g,payoffDateLabel:x,totalMonths:u,totalInterest:Math.round(m),totalPaid:Math.round(a+m),payments:c}}function s(e,t,n,a){let r,l=function(e){if(!e)return 1;let t=new Date(e);return isNaN(t.getTime())?1:t.getDate()}(a),s=((r=l-5)<1&&(r+=30),Math.min(r,28));return{accountId:e.id,creditorName:e.creditorName,category:e.category,startingBalance:e.balance,interestRate:c(e),committedPayment:n,targetMonths:t,reportDayOfMonth:l,paymentDayOfMonth:s,piPayment:e.piPayment,escrowPayment:e.escrowPayment,createdAt:new Date().toISOString()}}function o(e){var t,n;let a=e.map(e=>l(e)),r=e.reduce((e,t)=>
1e+t.committedPayment,0),s=e.reduce((e,t)=>e+t.startingBalance,0),o=a.reduce((e,t)=>e+t.totalInterest,0),i=a.map(e=>e.payoffDate).sort(),c=null!=(t=i[0])?t:"",d=null!=(n=i[i.length-1])?n:"",u=new Map;for(let e of a)for(let t of e.payments){let n=t.dueDate.substring(0,7);u.has(n)||u.set(n,[]),u.get(n).push({accountId:e.accountId,creditorName:e.creditorName,dueDate:t.dueDate,amount:t.payment,remainingAfter:t.remainingBalance})}return{commitments:e,schedules:a,totalMonthlyCommitment:Math.round(r),totalDebt:Math.round(s),totalInterestCost:Math.round(o),earliestPayoff:c,latestPayoff:d,monthlyCalendar:Array.from(u.entries()).sort((e,t)=>{let[n]=e,[a]=t;return n.localeCompare(a)}).map(e=>{let[t,n]=e;return{month:t,monthLabel:new Date(t+"-15").toLocaleDateString("en-US",{month:"long",year:"numeric"}),payments:n.sort((e,t)=>e.dueDate.localeCompare(t.dueDate)),totalDue:Math.round(100*n.reduce((e,t)=>e+t.amount,0))/100}})}}function i(e){var t;let n="credit_card"===e.category||"heloc"===e.category||"revolving"===e.category,r=e.escrowPayment>0,l=e.interestRate>0?e.interestRate:.29*!!n,s=n?(0,a.Kp)(e.balance,l):0,o=null!=(t=e.estimatedMinPayment)?t:0,i=r?e.piPayment:e.monthlyPayment;return n?Math.max(e.monthlyPayment,s,o):i>0?i:o>0?o:0}function c(e){return e.interestRate>0?e.interestRate:"credit_card"===e.category||"heloc"===e.category||"revolving"===e.category?.29:"student_loan"===e.category?.065:"auto_loan"===e.category?.07:.12*("personal_loan"===e.category)}function d(e){if(e.isChargeOff||e.isCollection)return 36;if(e.termMonths>0)return e.termMonths;if(e.remainingMonths>0)return e.remainingMonths;switch(e.category){case"auto_loan":return 36;case"mortgage":return 360;case"student_loan":return 120;default:return 60}}},37700:(e,t,n)=>{function a(e){if(!e)return!1;let t=e.trim().toLowerCase();return"authorizeduser"===t||"authorized user"===t||"authorized"===t||"a"===t}function r(e){if(e.categoryOverride)return e.categoryOverride;let t=(e.creditorName||"").toLowerCase(),n=(e.accountType||"").toLowerCase(),a=(e.accountSubType||"").toLowerCase(),r=(e.creditLoanType||e.loanType||"").toLowerCase();return t.includes("visa")||t.includes("mastercard")||t.includes("amex")||t.includes("american express")||t.includes("discovercard")||t.includes("discover card")||t.includes("capital one")||t.includes("citi")||t.includes("chase")||t.includes("bankcard")||t.includes("card serv")||t.includes("card svc")||n.includes("credit card")||n.includes("revolving")&&!t.includes("loan")&&!t.includes("heloc")||t.includes("card")&&!t.includes("lending")&&!t.includes("loan")?"credit_card":n.includes("heloc")||t.includes("heloc")||t.includes("home equity line")?"heloc":t.includes("mortgage")||t.includes("home loan")||t.includes("real estate")||t.includes("home lending")||t.includes(" hl")||t.endsWith(" hl")||t.includes("wfbna hl")||t.includes("wells fargo home")||n.includes("mortgage")||n.includes("real estate")||n.includes("home")||r.includes("mortgage")?"mortgage":t.includes("auto")||t.includes("car ")||t.includes("vehicle")||t.includes("honda")||t.includes("toyota")||t.includes("ford")||t.includes("ally")||t.includes("santander")||t.includes("carmax")||n.includes("auto")||n.includes("automobile")||a.includes("automobile")||r.includes("auto")?"auto_loan":t.includes("student")||t.includes("education")||t.includes("navient")||t.includes("nelnet")||t.includes("sallie mae")||t.includes("dept of ed")||t.includes("great lakes")||t.includes("fedloan")||r.includes("student")||r.includes("education")?"student_loan":t.includes("personal loan")||t.includes("unsecured")||n.includes("personal loan")||n.includes("unsecured")||r.includes("personal")?"personal_loan":n.includes("revolving")&&!t.includes("card")?"revolving":"other"}function l(e,t,n,a,r,l){let s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,{loanType:o,defaultRate:i,defaultTerm:c}=function(e,t){let n=e.toLowerCase(),a=t.toLowerCase();return n.includes("mortgage")||n.includes("home")||n.includes(" hl")||n.endsWith(" hl")||n.includes("wfbna hl")||n.includes("lending")||a.includes("mortgage")||a.includes("real estate")?{loanType:"Mortgage",defaultRate:.065,defaultTerm:360}:n.includes("auto")||n.includes("car")||n.includes("vehicle")||n.includes("ally")||n.includes("santander")||n.includes("carmax")||a.includes("auto")||a.includes("automobile")?{loanType:"Auto Loan",defaultRate:.075,defaultTerm:72}:n.includes("student")||n.includes("education")||n.includes("navient")||n.includes("nelnet")||n.includes("dept of ed")||n.includes("fedloan")||n.includes("great lakes")?{loanType:"Student Loan",defaultRate:.055,defaultTerm:120}:n.includes("credit union")||n.includes("cu ")||n.includes(" cu")||n.includes("fcu")||n.includes("federal credit")?{loanType:"Credit Union Loan",defaultRate:.08,defaultTerm:60}:{loanType:"Personal Loan",defaultRate:.12,defaultTerm:48}}(l,r),d=a>0?a:c,u=t>0?t:0;if(u<=0&&e>0&&n>0){let t=i/12;t>0?(u=n*(1-Math.pow(1+t,-d))/t)<e&&(u=1.05*e):u=n*d,u=Math.round(u)}else u<=0&&e>0&&(u=e);let m=null,h="estimated";e>0&&u>0&&n>0&&d>0&&s>0&&e<u&&null!==(m=function(e,t,n,a,r){if(e<=0||t<=0||n<=0||a<=0||r<=0||t>=e)return null;let l=t=>{let l=t/12,s=l>0?e*l/(1-Math.pow(1+l,-a)):e/a;if(s>1.01*n)return -1;let o=e;for(let e=0;e<r&&o>0;e++){let e=s-o*l;if(e<=0)return -1;o-=e}return o},s=.001,o=.15;for(let e=0;e<120;e++){let e=(s+o)/2,n=l(e);if(n<0){o=e;continue}let a=n-t;if(50>
1Math.abs(a))return e;if(a>0?o=e:s=e,o-s<1e-7)break}let i=(s+o)/2,c=l(i);return c>=0&&Math.abs(c-t)<.01*t?i:null}(u,e,n,d,s))&&(h="calculated"),null===m&&n>0&&u>0&&d>0&&null!==(m=function(e,t,n){if(e<=0||t<=0||n<=0||t<e/n*.5)return null;let a=t*n;if(Math.abs(a-e)<.01*e)return 0;let r=.005;for(let a=0;a<100;a++){let a=1+r,l=1-Math.pow(a,-n);if(1e-15>Math.abs(l))break;let s=t-e*r/l,o=-(e*l-e*r*(n*Math.pow(a,-n-1)))/(l*l);if(1e-15>Math.abs(o))break;let i=r-s/o;if(i<0?r/=2:r=i>.05?.05:i,1e-10>Math.abs(s)){let e=12*r;if(e>=0&&e<=.5)return e;break}}let l=a-e;if(l>0){let t=l/e/(n/12);if(t>=0&&t<=.5)return t}return null}(u,n,d))&&(h="calculated");let f=null!=m?m:i,p=f/12,g=u>0&&d>0&&p>0?u*p/(1-Math.pow(1+p,-d)):u>0&&d>0?u/d:n,x="Mortgage"===o&&n>g?Math.round(n-g):0,y=function(e,t,n,a,r){if(e<=0)return 0;if(e>=t)return n;if(a>0&&r>0){let t=r/12,n=1-e*t/a;if(n>0){let e=-Math.log(n)/Math.log(1+t);if(e>0&&e<=360)return Math.ceil(e)}}return Math.max(6,Math.round(n*(1-Math.pow(1-e/t,.7))))}(e,u,d,g,f),w=n;return n<=0&&e>0&&y>0&&(w=Math.round(w=p>0?e*p/(1-Math.pow(1+p,-y)):e/y)),{payment:w,piPayment:Math.round(g),escrowPayment:x,rate:f,remainingMonths:y,loanType:o,rateSource:h}}function s(e,t,n){if(e<=0||n<=0)return{months:0,totalInterest:0};let a=t/12,r=e,l=0,s=0;for(;r>.01&&l<600;){let e=r*a;s+=e;let t=Math.min(n-e,r);if(t<=0)return{months:-1,totalInterest:-1};r-=t,l++}return{months:l,totalInterest:Math.round(s)}}function o(e,t){return e<=0?0:Math.max(.01*e+t/12*e,35)}function i(e,t,n){if(e<=0)return{estimated:0,source:n>0?"reported":"estimated"};if("credit_card"===t||"heloc"===t||"revolving"===t){let t=Math.round(Math.max(.05*e,10));return n<=0?{estimated:t,source:"estimated"}:1>=Math.abs(n-t)?{estimated:t,source:"reported"}:{estimated:t,source:"blended"}}return"mortgage"===t?{estimated:n,source:n>0?"reported":"estimated"}:n>0?{estimated:n,source:"reported"}:{estimated:Math.round(Math.max(.01*e,10)),source:"estimated"}}n.d(t,{Kp:()=>o,Sz:()=>s,_p:()=>a,cb:()=>i,cr:()=>l,ge:()=>r}),n(16733)},92290:(e,t,n)=>{n.d(t,{A:()=>N});var a=n(95155),r=n(12115),l=n(19708),s=n(25563),o=n(65229),i=n(12108),c=n(24033),d=n(919),u=n(16485),m=n(36100),h=n(5917),f=n(93726),p=n(27971),g=n(17466),x=n(18720);let y={credit_card:"Credit Card",auto_loan:"Auto Loan",mortgage:"Mortgage",student_loan:"Student Loan",personal_loan:"Personal Loan",heloc:"HELOC",revolving:"Revolving",other:"Other"},w=e=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:0,maximumFractionDigits:0}).format(e),b=[1,2,3,4,0];function N(e){let{accounts:t,userId:n,onClose:N,defaultExpanded:M=!0}=e,[v,j]=(0,r.useState)(M),[D,C]=(0,r.useState)({}),[T,k]=(0,r.useState)(!0),[A,R]=(0,r.useState)(null),L=(0,r.useRef)(null);(0,r.useEffect)(()=>{if(!M||!L.current)return;let e=window.setTimeout(()=>{var e;null==(e=L.current)||e.scrollIntoView({behavior:"smooth",block:"start"})},300);return()=>window.clearTimeout(e)},[M]),(0,r.useEffect)(()=>{if(!n)return void k(!1);let e=!1;return(async()=>{try{var t;let a=await (0,l.getDoc)((0,l.doc)(f.db,"users",n));if(e)return;let r=null==(t=a.data())?void 0:t.autopayStatus;C(r&&"object"==typeof r?r:{})}catch(t){e||x.oR.error("Could not load autopay status")}finally{e||k(!1)}})(),()=>{e=!0}},[n]);let P=(0,r.useMemo)(()=>t.filter(g.gv).map(e=>{let t=(0,g.GT)(e);return{account:e,dueDay:t,weekBucket:(0,g.rx)(t),minPayment:(0,p.S3)(e)}}).sort((e,t)=>{var n,a;let r=null!=(n=e.dueDay)?n:99,l=null!=(a=t.dueDay)?a:99;return r!==l?r-l:e.account.creditorName.localeCompare(t.account.creditorName)}),[t]),S=(0,r.useMemo)(()=>P.reduce((e,t)=>e+t.minPayment,0),[P]),I=(0,r.useMemo)(()=>P.filter(e=>{var t;return null==(t=D[e.account.id])?void 0:t.enabled}).length,[P,D]),E=P.length>0?Math.round(I/P.length*100):0,O=(0,r.useMemo)(()=>{let e=new Map;for(let t of b)e.set(t,[]);for(let n of P){var t;let a=null!=(t=e.get(n.weekBucket))?t:[];a.push(n),e.set(n.weekBucket,a)}return e},[P]),U=(0,r.useCallback)(async(e,t)=>{let a={enabled:t,markedAt:new Date().toISOString()},r={...D,[e]:a};R(e),C(r);try{await (0,l.updateDoc)((0,l.doc)(f.db,"users",n),{autopayStatus:r}),x.oR.success(t?"Marked as on autopay":"Autopay mark removed")}catch(e){C(D),x.oR.error("Failed to save autopay status")}finally{R(null)}},[D,n]),_=(0,r.useCallback)(e=>{if(!e.dueDay)return void x.oR.error("Due date unknown for this account");let t=(0,g.Qs)([{uid:"".concat(e.account.id,"@850credit"),title:"Pay ".concat(e.account.creditorName," - Min ").concat(w(e.minPayment)),dayOfMonth:e.dueDay,amount:e.minPayment}]),n=e.account.creditorName.replace(/[^a-z0-9]+/gi,"-").toLowerCase();(0,g.A1)("".concat(n||"payment","-reminder.ics"),t),x.oR.success("Calendar file downloaded")},[]),B=(0,r.useCallback)(()=>{let e=P.filter(e=>null!=e.dueDay).map(e=>({uid:"".concat(e.account.id,"@850credit"),title:"Pay ".concat(e.account.creditorName," - Min ").concat(w(e.minPayment)),dayOfMonth:e.dueDay,amount:e.minPayment}));if(0===e.length)return void x.oR.error("No accounts with known due dates");(0,g.A1)("payment-reminders.ics",(0,g.Qs)(e)),x.oR.success("Downloaded ".concat(e.length," payment reminder").concat(1!==e.length?"s":""))},[P]);return(0,a.jsxs)("div",{id:"payment-calendar",ref:L,className:"rounded-xl border border-emerald-500/20 bg-gradient-to-br from-emerald-500/5 to-teal-500/5 overflow-hidden",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>j(e=>!e),className:"w-full flex items-start gap-3 p-3.5 text-left hover:bg-emerald-500/5 transition-colors",children:[(0,a.jsx)(s.A,{className:"w-5 h-5 text-emerald-400 shrink-0 mt-0.5"}),(0,a.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,a.jsx)("p",{className:"text-sm font-semibold text-white",children:"Payment Calendar"}),P.length>0&&(0,a.jsxs)("span",{className:"text-[10px] font-medium text-emerald-300 whitespace-nowrap",children:[I,"/",P.length," on auto
1pay"]})]}),(0,a.jsx)("p",{className:"text-xs text-zinc-400 mt-0.5",children:"See what's due, when, and set reminders so you never miss a payment."}),P.length>0&&(0,a.jsxs)("p",{className:"text-[11px] text-emerald-200/80 mt-1",children:["Total monthly minimum: ",(0,a.jsxs)("span",{className:"font-semibold text-emerald-300",children:[w(S),"/mo"]})]})]}),(0,a.jsxs)("div",{className:"flex items-center gap-1 shrink-0",children:[N&&(0,a.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),N()},className:"p-1 rounded-md hover:bg-white/10 transition-colors","aria-label":"Close payment calendar",children:(0,a.jsx)(o.A,{className:"w-4 h-4 text-white/50"})}),v?(0,a.jsx)(i.A,{className:"w-4 h-4 text-white/40"}):(0,a.jsx)(c.A,{className:"w-4 h-4 text-white/40"})]})]}),v&&(0,a.jsx)("div",{className:"border-t border-emerald-500/15 p-3.5 space-y-3",children:T?(0,a.jsxs)("div",{className:"flex items-center justify-center py-6 gap-2 text-sm text-zinc-400",children:[(0,a.jsx)(d.A,{className:"w-4 h-4 animate-spin"}),"Loading payment schedule..."]}):0===P.length?(0,a.jsx)("p",{className:"text-sm text-zinc-400 text-center py-4",children:"No open accounts with balances found. Import your credit report to see your payment calendar."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"rounded-lg border border-white/10 bg-black/20 p-3 space-y-2",children:[(0,a.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,a.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,a.jsx)(u.A,{className:"w-4 h-4 text-emerald-400 shrink-0"}),(0,a.jsxs)("p",{className:"text-xs text-white/70",children:[I," of ",P.length," accounts on autopay"]})]}),(0,a.jsxs)("span",{className:"text-xs font-semibold text-emerald-300",children:[E,"%"]})]}),(0,a.jsx)("div",{className:"h-2 rounded-full bg-white/10 overflow-hidden",children:(0,a.jsx)("div",{className:"h-full rounded-full bg-emerald-500 transition-all duration-300",style:{width:"".concat(E,"%")}})}),(0,a.jsxs)("div",{className:"flex items-center justify-between gap-2 pt-1",children:[(0,a.jsx)("p",{className:"text-[11px] text-white/50",children:"Payment history is 35% of your score â autopay protects your streak."}),(0,a.jsxs)("button",{type:"button",onClick:B,className:"shrink-0 inline-flex items-center gap-1.5 px-2.5 py-1.5 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-[10px] font-semibold text-emerald-200 transition-colors",children:[(0,a.jsx)(m.A,{className:"w-3.5 h-3.5"}),"All reminders"]})]})]}),b.map(e=>{var t;let n=null!=(t=O.get(e))?t:[];return 0===n.length?null:(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)("p",{className:"text-[10px] font-semibold uppercase tracking-wider text-white/40 px-0.5",children:g.gN[e]}),n.map(e=>{var t;let{account:n,dueDay:r,minPayment:l}=e,s=!!(null==(t=D[n.id])?void 0:t.enabled),o=A===n.id;return(0,a.jsxs)("div",{className:"rounded-lg border p-3 space-y-2 transition-colors ".concat(s?"border-emerald-500/25 bg-emerald-500/[0.06]":"border-white/10 bg-white/[0.03]"),children:[(0,a.jsxs)("div",{className:"flex items-start justify-between gap-2",children:[(0,a.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,a.jsx)("p",{className:"text-sm font-medium text-white truncate",children:n.creditorName}),(0,a.jsxs)("p",{className:"text-[10px] text-white/45 mt-0.5",children:[y[n.category],null!=r&&(0,a.jsxs)(a.Fragment,{children:[" \xb7 ",(0,g.NT)(n)," ",(0,g.IE)(r)]})]})]}),s&&(0,a.jsxs)("span",{className:"inline-flex items-center gap-1 text-[10px] font-semibold text-emerald-300 shrink-0",children:[(0,a.jsx)(h.A,{className:"w-3 h-3"}),"Autopay"]})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between text-[11px]",children:[(0,a.jsx)("span",{className:"text-white/45",children:"Balance"}),(0,a.jsx)("span",{className:"text-white/80 font-medium",children:w(n.balance)})]}),(0,a.jsxs)("div",{className:"flex items-center justify-between text-[11px]",children:[(0,a.jsx)("span",{className:"text-white/45",children:"Min payment"}),(0,a.jsxs)("span",{className:"text-emerald-300 font-semibold",children:[w(l),"/mo"]})]}),(0,a.jsxs)("div",{className:"flex gap-2 pt-1",children:[(0,a.jsxs)("button",{type:"button",onClick:()=>_(e),disabled:null==r,className:"flex-1 inline-flex items-center justify-center gap-1.5 px-2.5 py-2 rounded-lg bg-white/5 hover:bg-white/10 border border-white/10 text-[11px] font-semibold text-white/80 disabled:opacity-40 disabled:cursor-not-allowed transition-colors",children:[(0,a.jsx)(m.A,{className:"w-3.5 h-3.5"}),"Add to Cal"]}),(0,a.jsx)("button",{type:"button",onClick:()=>U(n.id,!s),disabled:o,className:"flex-1 inline-flex items-center justify-center gap-1.5 px-2.5 py-2 rounded-lg text-[11px] font-semibold transition-colors disabled:opacity-60 ".concat(s?"bg-white/5 hover:bg-white/10 border border-white/10 text-white/70":"bg-emerald-500/15 hover:bg-emerald-500/25 border border-emerald-500/25 text-emerald-200"),children:o?(0,a.jsx)(d.A,{className:"w-3.5 h-3.5 animate-spin"}):s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(h.A,{className:"w-3.5 h-3.5"}),"Undo"]}):"Mark Autopay"})]})]},n.id)})]},e)})]})})]})}}}]);
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.