PageSourceSearch

https://www.credittally.io/_next/static/chunks/51cb5024c3763a6f.js

js credittally.io collected 2026-09-24 15:03:45 UTC 41,121 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63937,e=>{"use strict";var t=e.i(43476),s=e.i(71645),a=e.i(22016),i=e.i(18566),r=e.i(26732),l=e.i(46932),o=e.i(88653),n=e.i(68127),d=e.i(39897),c=e.i(53810);let x=()=>(0,t.jsxs)(l.motion.div,{initial:{opacity:0,scale:.95,y:20},animate:{opacity:1,scale:1,y:0},transition:{duration:.6,delay:.4},className:"w-[320px] bg-[#faf9f7] rounded-2xl shadow-2xl shadow-black/10 overflow-hidden border border-[#e7e5e4]",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-3 bg-[#faf9f7] border-b border-[#e7e5e4]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("svg",{viewBox:"0 0 128 128",className:"w-8 h-8",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"regMockupGrad1",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#e7e5e4"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#d6d3d1"})]}),(0,t.jsxs)("linearGradient",{id:"regMockupGrad2",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#a8a29e"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#78716c"})]}),(0,t.jsxs)("linearGradient",{id:"regMockupGrad3",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#44403c"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#292524"})]})]}),(0,t.jsxs)("g",{transform:"translate(56, 66)",children:[(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regMockupGrad1)",transform:"rotate(-7)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regMockupGrad2)",transform:"translate(3, -6) rotate(-1)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regMockupGrad3)",transform:"translate(7, -13) rotate(3)"}),(0,t.jsx)("rect",{x:"-17",y:"-24",width:"10",height:"7",rx:"2",ry:"2",fill:"#e8690a",transform:"rotate(3)"})]})]}),(0,t.jsx)("span",{className:"text-base font-semibold text-[#292524]",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"CreditTally"})]}),(0,t.jsx)("div",{className:"w-7 h-7 rounded-lg bg-[#f5f0eb] flex items-center justify-center",children:(0,t.jsxs)("svg",{className:"w-4 h-4 text-[#78716c]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"3"}),(0,t.jsx)("path",{d:"M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"})]})})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between px-4 py-2.5 bg-[#f5f0eb] border-b border-[#e7e5e4]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 text-[13px] font-medium text-[#44403c]",children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-[#78716c]",viewBox:"0 0 24 24",fill:"currentColor",children:(0,t.jsx)("path",{d:"M7 18c-1.1 0-1.99.9-1.99 2S5.9 22 7 22s2-.9 2-2-.9-2-2-2zM1 2v2h2l3.6 7.59-1.35 2.45c-.16.28-.25.61-.25.96 0 1.1.9 2 2 2h12v-2H7.42c-.14 0-.25-.11-.25-.25l.03-.12.9-1.63h7.45c.75 0 1.41-.41 1.75-1.03l3.58-6.49c.08-.14.12-.31.12-.48 0-.55-.45-1-1-1H5.21l-.94-2H1zm16 16c-1.1 0-1.99.9-1.99 2s.89 2 1.99 2 2-.9 2-2-.9-2-2-2z"})}),(0,t.jsx)("span",{children:"Whole Foods"})]}),(0,t.jsx)("div",{className:"text-[15px] font-bold text-[#292524]",children:"$87.42"})]}),(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 mb-3",children:[(0,t.jsxs)("svg",{className:"w-5 h-5 text-[#292524]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("path",{d:"M5.8 11.3 2 22l10.7-3.79"}),(0,t.jsx)("path",{d:"M4 3h.01"}),(0,t.jsx)("path",{d:"M22 8h.01"}),(0,t.jsx)("path",{d:"M15 2h.01"}),(0,t.jsx)("path",{d:"M22 20h.01"}),(0,t.jsx)("path",{d:"m22 2-2.24.75a2.9 2.9 0 0 0-1.96 3.12v0c.1.86-.57 1.63-1.45 1.63h-.38c-.86 0-1.6.6-1.76 1.44L14 10"}),(0,t.jsx)("path",{d:"m22 13-.82-.33c-.86-.34-1.82.2-1.98 1.11v0c-.11.7-.72 1.22-1.43 1.22H17"}),(0,t.jsx)("path",{d:"m11 2 .33.82c.34.86-.2 1.82-1.11 1.98v0C9.52 4.9 9 5.52 9 6.23V7"}),(0,t.jsx)("path",{d:"M11 13c1.93 1.93 2.83 4.17 2 5-.83.83-3.07-.07-5-2-1.93-1.93-2.83-4.17-2-5 .83-.83 3.07.07 5 2Z"})]}),(0,t.jsx)("span",{className:"text-[12px] font-bold text-[#292524]",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"You have a bonus match!"})]}),(0,t.jsx)("div",{className:"p-[2px] rounded-[14px] bg-gradient-to-r from-[#d97706] via-[#f59e0b] to-[#fbbf24]",children:(0,t.jsxs)("div",{className:"bg-[#faf9f7] rounded-xl p-3 flex gap-3 items-start",children:[(0,t.jsxs)("div",{className:"w-[60px] h-[38px] rounded-md bg-gradient-to-br from-[#1e3a5f] to-[#0f1f33] relative overflow-hidden flex-shrink-0",children:[(0,t.jsx)("div",{className:"absolute top-2 left-2 w-4 h-3 bg-gradient-to-br from-[#e8690a] to-[#f59e0b] rounded-sm"}),(0,t.jsx)("div",{className:"absolute bottom-2 left-2 text-[5px] text-white/80 font-mono",children:"•••• 9012"}),(0,t.jsx)("div",{className:"absolute bottom-1 right-1.5 text-[6px] text-white font-bold",children:"AMEX"})]}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsx)("div",{className:"text-[13px] font-semibold text-[#292524] mb-1.5 truncate",children:"Amex Blue Cash Preferred"}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[(0,t.jsxs)("span",{className:"text-lg font-bold text-[#059669]",children:[(0,t.jsx)("span",{className:"text-[10px] font-medium opacity-70 mr-0.5",children:"*est."}),"$5.24"]}),(0,t.jsx)("span",{className:"text-[9px] px-1.5 py-0.5 font-semibold rounded-full bg-[#d1fae5] text-[#065f46]",children:"cash back"})]}),(0,t.jsxs)("div",{className:"text-[11px] text-[#059669] font-medium",children:[(0,t.jsx)("span",{className:"inline-block w-[5px] h-[5px] bg-[#059669] rounded-full mr-1 align-middle"}),"6% on groceries"]})]})]})})]}),(0,t.jsx)("div",{className:"px-4 py-2 border-t border-[#e7e5e4] text-center",children:(0,t.jsx)("span",{className:"text-[9px] text-[#a8a29e] italic",children:"*estimated amounts, reward totals may vary by card issuer"})})]}),m=()=>(0,t.jsxs)(l.motion.div,{initial:{opacity:0,x:-30}
1,animate:{opacity:1,x:0},transition:{duration:.5,delay:.6},className:"inline-flex items-center gap-3 px-4 py-3 bg-[#faf9f7] rounded-full shadow-xl ring-2 ring-[#f59e0b] ring-offset-2",children:[(0,t.jsxs)("svg",{viewBox:"0 0 128 128",className:"w-8 h-8",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"regPillGrad1",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#e7e5e4"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#d6d3d1"})]}),(0,t.jsxs)("linearGradient",{id:"regPillGrad2",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#a8a29e"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#78716c"})]}),(0,t.jsxs)("linearGradient",{id:"regPillGrad3",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#44403c"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#292524"})]})]}),(0,t.jsxs)("g",{transform:"translate(56, 66)",children:[(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regPillGrad1)",transform:"rotate(-7)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regPillGrad2)",transform:"translate(3, -6) rotate(-1)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regPillGrad3)",transform:"translate(7, -13) rotate(3)"}),(0,t.jsx)("rect",{x:"-17",y:"-24",width:"10",height:"7",rx:"2",ry:"2",fill:"#e8690a",transform:"rotate(3)"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-sm font-semibold text-[#292524]",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"CreditTally"}),(0,t.jsx)("div",{className:"text-xs text-[#e8690a] font-medium",children:"You have a bonus match!"})]}),(0,t.jsx)("div",{className:"w-8 h-8 rounded-lg bg-[#f5f0eb] flex items-center justify-center",children:(0,t.jsx)("svg",{className:"w-4 h-4 text-[#44403c]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("polyline",{points:"6 9 12 15 18 9"})})})]}),h=({currentStep:e,totalSteps:s})=>(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsxs)("span",{className:"text-sm font-medium text-[#78716c]",children:[e,"/",s]}),(0,t.jsx)("div",{className:"flex gap-1.5",children:Array.from({length:s}).map((s,a)=>(0,t.jsx)(l.motion.div,{className:`h-1.5 rounded-full transition-all duration-300 ${a<e?"bg-[#e8690a] w-6":"bg-[#d6d3d1] w-1.5"}`,initial:!1,animate:{width:a<e?24:6}},a))})]}),f=[.22,1,.36,1],u={enter:e=>({y:e>0?50:-50,opacity:0,scale:.98}),center:{y:0,opacity:1,scale:1,transition:{duration:.5,ease:f}},exit:e=>({y:e<0?50:-50,opacity:0,scale:.98,transition:{duration:.4,ease:f}})};function p(){let e=(0,i.useRouter)(),p=(0,i.useSearchParams)(),{status:b}=(0,r.useSession)(),[g,j]=(0,s.useState)(""),[y,v]=(0,s.useState)(""),[w,N]=(0,s.useState)(""),[k,C]=(0,s.useState)(""),[S,M]=(0,s.useState)(""),[T,G]=(0,s.useState)(""),[P,F]=(0,s.useState)(!1),[A,B]=(0,s.use
1State)(!1),[L,z]=(0,s.useState)(""),[O,H]=(0,s.useState)(!1),[W,I]=(0,s.useState)("register"),[R,$]=(0,s.useState)(1),[q,_]=(0,s.useState)(!1),[E,U]=(0,s.useState)(!1),[V,J]=(0,s.useState)(!1),[D,Y]=(0,s.useState)(""),[K,Z]=(0,s.useState)(!1),X=(0,d.useExtensionDetection)();(0,s.useEffect)(()=>{"authenticated"===b&&"1"===p.get("upgraded")&&(window.gtag?.("event","purchase",{value:3.99,currency:"USD"}),I(X.isInstalled?"add-cards":"download-extension"))},[b,p,X.isInstalled]);let Q=async e=>{if(e.preventDefault(),z(""),S.length<8)return void z("Password must be at least 8 characters.");if(S!==T)return void z("Passwords do not match.");H(!0);try{let e=await fetch("/api/auth/register",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:w,password:S,firstName:g,lastName:y,zipcode:k,newsletterSubscribed:A,agreedToTerms:P})}),t=await e.json();if(!e.ok){z(t.error||"Failed to create account. Please try again."),H(!1);return}if(t.verifiedToken){let e=await (0,r.signIn)("credentials",{verifiedToken:t.verifiedToken,redirect:!1});if(e?.error){z("Account created but sign-in failed. Please go to the login page."),H(!1);return}}window.gtag?.("event","sign_up",{method:"email"}),$(1),I("select-plan"),H(!1)}catch{z("An error occurred. Please try again."),H(!1)}},ee=async e=>{e.preventDefault(),z(""),H(!0);try{let e=await fetch("/api/auth/verify-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:w,code:D,rememberDevice:K})}),t=await e.json();if(!e.ok){z(t.error||"Invalid or expired code. Please try again."),H(!1);return}let s=await (0,r.signIn)("credentials",{verifiedToken:t.verifiedToken,redirect:!1});if(s?.error){z("Account verified but sign-in failed. Please go to the login page."),H(!1);return}window.gtag?.("event","sign_up",{method:"email"}),$(1),I("select-plan"),H(!1)}catch{z("An error occurred. Please try again."),H(!1)}},et=async()=>{H(!0),z("");try{let e=await fetch("/api/auth/skip-verification",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:w})}),t=await e.json();if(!e.ok){z(t.error||"Could not skip verification. Please try again."),H(!1);return}let s=await (0,r.signIn)("credentials",{verifiedToken:t.skipToken,redirect:!1});if(s?.error){z("Sign-in failed. Please try again."),H(!1);return}window.gtag?.("event","sign_up",{method:"email"}),$(1),I("select-plan")}catch{z("An error occurred. Please try again.")}finally{H(!1)}},es=async()=>{await fetch("/api/auth/resend-otp",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:w,type:"signup"})})},ea=e=>{window.open(e,"_blank"),J(!0)},ei=async()=>{U(!0);try{let e=await fetch("/api/stripe/checkout",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({billing:q?"annual":"monthly"})}),t=await e.json();t.url?window.location.href=t.url:(z(t.error||"Failed to start checkout. Please try again."),U(!1))}catch{z("Failed to connect to payment service. Please try again."),U(!1)}},er=()=>X.isInstalled?2:3,el=()=>{if(X.isInstalled)switch(W){case"select-plan":return 1;case"add-cards":return 2;default:return 0}switch(W){case"select-plan":return 1;case"download-extension":return 2;case"add-cards":return 3;default:return 0}},eo={hidden:{opacity:0,y:20},visible:{opacity:1,y:0,transition:{duration:.5,ease:f}}};return(0,t.jsxs)("div",{className:"min-h-screen flex",children:[(0,t.jsxs)("div",{className:"w-full lg:w-1/2 flex flex-col bg-[#faf9f7]",children:[(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:-20},animate:{opacity:1,y:0},transition:{duration:.5},className:"flex items-center justify-between p-6",children:[(0,t.jsxs)(a.default,{href:"/",className:"inline-flex items-center gap-2 text-sm font-medium text-[#78716c] hover:text-[#292524] transition-colors group",children:[(0,t.jsx)(l.motion.svg,{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",whileHover:{x:-3},transition:{type:"spring",stiffness:400,damping:17},children:(0,t.jsx)("path",{d:"M19 12H5M12 19l-7-7 7-7"})}),"Back"]}),(0,t.jsxs)(a.default,{href:"/",className:"flex items-center gap-2 group",children:[(0,t.jsx)(l.motion.div,{whileHover:{rotate:-5},whileTap:{scale:.95},transition:{type:"spring",stiffness:400,damping:17},children:(0,t.jsxs)("svg",{viewBox:"0 0 128 128",className:"w-8 h-8",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"regLogoGrad1",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#e7e5e4"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#d6d3d1"})]}),(0,t.jsxs)("linearGradient",{id:"regLogoGrad2",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#a8a29e"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#78716c"})]}),(0,t.jsxs)("linearGradient",{id:"regLogoGrad3",x1:"0%",y1:"0%",x2:"100%",y2:"100%",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#44403c"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#292524"})]})]}),(0,t.jsxs)("g",{transform:"translate(64, 64)",children:[(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regLogoGrad1)",transform:"rotate(-7)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regLogoGrad2)",transform:"translate(3, -6) rotate(-1)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"url(#regLogoGrad3)",transform:"translate(7, -13) rotate(3)"}),(0,t.jsx)("rect",{x:"-17",y:"-24",width:"10",height:"7",rx:"2",ry:"2",fill:"#e8690a",transform:"rotate(3)"})]})]})}),(0,t.jsx)("span",{className:"text-lg font-semibold text-[#292524]",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"CreditTally"})]})]}),(0,t.jsx)("div",{className:"flex-1 flex items-center justify-center px-6 py-12 overflow-hidden",children:(0,t.jsxs)(o.AnimatePresence,{mode:"wait",custom:R,children:["register"===W&&(0,t.jsx)(l.motion.div,{custom:R,variants:u,initial:"enter",animate:"center",exit:"exit",className:"w-full max-w-sm",children:(0,t.jsxs)(l.motion.div,{initial:"hidden",animate:"visible",variants:{hidden:{opacity:0}
1,visible:{opacity:1,transition:{staggerChildren:.1,delayChildren:.2}}},children:[(0,t.jsxs)(l.motion.div,{variants:eo,className:"mb-8",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-[#292524] mb-2",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"Create your account"}),(0,t.jsx)("p",{className:"text-[#78716c]",children:"Start maximizing your credit card rewards today"})]}),(0,t.jsxs)("form",{onSubmit:Q,className:"space-y-5",children:[L&&(0,t.jsx)(l.motion.div,{initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},className:"p-4 bg-red-50 border border-red-100 rounded-xl",children:(0,t.jsx)("p",{className:"text-sm text-red-600",children:L})}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsxs)(l.motion.div,{variants:eo,className:"flex-1",children:[(0,t.jsx)("label",{htmlFor:"firstName",className:"block text-sm font-medium text-[#44403c] mb-2",children:"First name"}),(0,t.jsx)("input",{id:"firstName",name:"firstName",type:"text",autoComplete:"given-name",required:!0,value:g,onChange:e=>j(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"Jane"})]}),(0,t.jsxs)(l.motion.div,{variants:eo,className:"flex-1",children:[(0,t.jsx)("label",{htmlFor:"lastName",className:"block text-sm font-medium text-[#44403c] mb-2",children:"Last name"}),(0,t.jsx)("input",{id:"lastName",name:"lastName",type:"text",autoComplete:"family-name",required:!0,value:y,onChange:e=>v(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"Smith"})]})]}),(0,t.jsxs)(l.motion.div,{variants:eo,children:[(0,t.jsx)("label",{htmlFor:"email",className:"block text-sm font-medium text-[#44403c] mb-2",children:"Email address"}),(0,t.jsx)("input",{id:"email",name:"email",type:"email",autoComplete:"email",required:!0,value:w,onChange:e=>N(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"[email protected]"})]}),(0,t.jsxs)(l.motion.div,{variants:eo,children:[(0,t.jsx)("label",{htmlFor:"zipcode",className:"block text-sm font-medium text-[#44403c] mb-2",children:"Zip code"}),(0,t.jsx)("input",{id:"zipcode",name:"zipcode",type:"text",autoComplete:"postal-code",required:!0,value:k,onChange:e=>C(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"12345"})]}),(0,t.jsxs)(l.motion.div,{variants:eo,children:[(0,t.jsx)("label",{htmlFor:"password",className:"block text-sm font-medium text-[#44403c] mb-2",children:"Password"}),(0,t.jsx)("input",{id:"password",name:"password",type:"password",autoComplete:"new-password",required:!0,minLength:8,value:S,onChange:e=>M(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"At least 8 characters"})]}),(0,t.jsxs)(l.motion.div,{variants:eo,children:[(0,t.jsx)("label",{htmlFor:"confirmPassword",className:"block text-sm font-medium text-[#44403c] mb-2",children:"Confirm password"}),(0,t.jsx)("input",{id:"confirmPassword",name:"confirmPassword",type:"password",autoComplete:"new-password",required:!0,value:T,onChange:e=>G(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"Re-enter your password"})]}),(0,t.jsxs)(l.motion.div,{variants:eo,className:"space-y-3",children:[(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer group",children:[(0,t.jsx)("input",{type:"checkbox",checked:P,onChange:e=>
1F(e.target.checked),required:!0,className:"mt-0.5 w-5 h-5 rounded border-[#d6d3d1] text-[#e8690a] focus:ring-[#e8690a]/20 focus:ring-2 cursor-pointer"}),(0,t.jsxs)("span",{className:"text-sm text-[#78716c] group-hover:text-[#44403c] transition-colors",children:["I agree to the"," ",(0,t.jsx)(a.default,{href:"#",className:"text-[#e8690a] hover:text-[#d15f09] transition-colors",children:"Terms of Service"})," ","and"," ",(0,t.jsx)(a.default,{href:"#",className:"text-[#e8690a] hover:text-[#d15f09] transition-colors",children:"Privacy Policy"})]})]}),(0,t.jsxs)("label",{className:"flex items-start gap-3 cursor-pointer group",children:[(0,t.jsx)("input",{type:"checkbox",checked:A,onChange:e=>B(e.target.checked),className:"mt-0.5 w-5 h-5 rounded border-[#d6d3d1] text-[#e8690a] focus:ring-[#e8690a]/20 focus:ring-2 cursor-pointer"}),(0,t.jsx)("span",{className:"text-sm text-[#78716c] group-hover:text-[#44403c] transition-colors",children:"Sign up for marketing emails and communications"})]})]}),(0,t.jsx)(l.motion.div,{variants:eo,children:(0,t.jsxs)(l.motion.button,{type:"submit",disabled:O,whileHover:{scale:1.01},whileTap:{scale:.99},className:"w-full py-3.5 px-6 bg-gradient-to-r from-[#e8690a] to-[#f59e0b] text-white font-semibold rounded-xl shadow-lg shadow-[#e8690a]/25 hover:shadow-xl hover:shadow-[#e8690a]/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed relative overflow-hidden",children:[(0,t.jsx)(l.motion.div,{className:"absolute inset-0 bg-gradient-to-r from-transparent via-white/20 to-transparent",initial:{x:"-100%"},whileHover:{x:"100%"},transition:{duration:.6,ease:"easeInOut"}}),(0,t.jsx)("span",{className:"relative z-10",children:O?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsxs)("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Creating account..."]}):"Create account"})]})}),(0,t.jsxs)(l.motion.p,{variants:eo,className:"text-center text-sm text-[#78716c]",children:["Already have an account?"," ",(0,t.jsx)(a.default,{href:"/auth/login",className:"font-medium text-[#e8690a] hover:text-[#d15f09] transition-colors",children:"Sign in"})]})]})]})},"register"),"verify-email"===W&&(0,t.jsxs)(l.motion.div,{custom:R,variants:u,initial:"enter",animate:"center",exit:"exit",className:"w-full max-w-sm",children:[(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("div",{className:"w-14 h-14 rounded-2xl bg-[#fff7ed] flex items-center justify-center mx-auto mb-4",children:(0,t.jsxs)("svg",{className:"w-7 h-7 text-[#e8690a]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,t.jsx)("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2"}),(0,t.jsx)("path",{d:"m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7"})]})}),(0,t.jsx)("h2",{className:"text-2xl font-bold text-[#292524] mb-2",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"Check your email"}),(0,t.jsxs)("p",{className:"text-[#78716c] text-sm",children:["We sent a verification code to ",(0,t.jsx)("span",{className:"font-medium text-[#292524]",children:w})]})]}),L&&(0,t.jsx)(l.motion.div,{initial:{opacity:0,y:-10},animate:{opacity:1,y:0},className:"mb-4 p-4 bg-red-50 border border-red-100 rounded-xl",children:(0,t.jsx)("p",{className:"text-sm text-red-600",children:L})}),(0,t.jsxs)("form",{onSubmit:ee,className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"verify-code",className:"block text-sm font-medium text-[#44403c] mb-2",children:"Verification code"}),(0,t.jsx)("input",{id:"verify-code",type:"text",inputMode:"numeric",autoComplete:"one-time-code",required:!0,value:D,onChange:e=>Y(e.target.value),className:"w-full px-4 py-3 bg-white border border-[#e7e5e4] rounded-xl text-[#292524] text-center text-2xl tracking-widest placeholder:text-[#a8a29e] focus:outline-none focus:ring-2 focus:ring-[#e8690a]/20 focus:border-[#e8690a] transition-all",placeholder:"000000",maxLength:6}),(0,t.jsxs)("div",{className:"mt-2 flex items-center justify-between",children:[(0,t.jsx)("button",{type:"button",onClick:es,className:"text-xs text-[#78716c] hover:text-[#e8690a] transition-colors",children:"Didn't get it? Resend code"}),(0,t.jsx)("button",{type:"button",onClick:et,disabled:O,className:"text-xs text-[#a8a29e] hover:text-[#78716c] transition-colors disabled:opacity-50",children:"Skip for now →"})]})]}),(0,t.jsxs)("label",{className:"flex items-center gap-2.5 cursor-pointer select-none",children:[(0,t.jsx)("input",{type:"checkbox",checked:K,onChange:e=>Z(e.target.checked),className:"w-4 h-4 rounded border-[#d6d3d1] accent-[#e8690a]"}),(0,t.jsx)("span",{className:"text-sm text-[#78716c]",children:"Trust this device for 30 days"})]}),(0,t.jsx)(l.motion.button,{type:"submit",disabled:O||D.length<6,whileHover:{scale:1.01},whileTap:{scale:.99},className:"w-full py-3.5 px-6 bg-gradient-to-r from-[#e8690a] to-[#f59e0b] text-white font-semibold rounded-xl shadow-lg shadow-[#e8690a]/25 hover:shadow-xl hover:shadow-[#e8690a]/30 transition-all disabled:opacity-50 disabled:cursor-not-allowed",children:O?(0,t.jsxs)("span",{className:"flex items-center justify-center gap-2",children:[(0,t.jsxs)("svg",{className:"animate-spin w-5 h-5",viewBox:"0 0 24 24",fill:"none",children:[(0,t.jsx)("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),(0,t.jsx)("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Verifying..."]}):"Verify email"})]})]},"verify-email"),"select-plan"===W&&(0,t.jsxs)(l.motion.div,{custom:R,variants:u,initial:"enter",animate:"center",exit:"exit",className:"space-y-6",children:[(0,t.jsxs)("div",{className:"text-center mb-2",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-[#292524] mb-1",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"Choose your plan"}),(0,t.jsx)("p",{className:"text-sm text-[#78716c]",children:"You can upgrade or downgrade anytime."})]}),(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsxs)("div",{className:"inline-flex items-center gap-1 p-1 bg-[#f5f5f4] rounded-full border border-[#e7e5e4]",children:[(0,t.jsx)("button",{onClick:()=>_(!1),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all duration-200 ${!q?"bg-white shadow-sm text-[#292524]":"text-[#78716c]"}`,children:"Monthly"}),(0,t.jsxs)("button",{onClick:()=>_(!0),className:`px-4 py-1.5 rounded-full text-sm font-medium transition-all duration-200 flex items-center gap-2 ${q?"bg-white shadow-sm text-[#292524]":"text-[#78716c]"}`,children:["Annual",(0,t.jsx)("span",{className:"text-[10px] font-semibold bg-[#e8690a] text-white px-2 py-0.5 rounded-full",children:"-25%"})]})]})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsxs)("div",{className:"flex flex-col rounded-2xl border border-[#e7e5e4] bg-white p-6",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-[#78716c] uppercase tracking-wider mb-2",children:"Free"}),(0,t.jsxs)("div",{className:"flex items-end gap-1 mb-1",children:[(0,t.jsx)("span",{className:"text-4xl font-bold text-[#292524]",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"$0"}),(0,t.jsx)("span",{className:"text-[#78716c] mb-1",children:"/mo"})]}),(0,t.jsx)("p",{className:"text-xs text-[#a8a29e] mb-5",children:"No credit card required"}),(0,t.jsxs)("ul",{className:"space-y-2 mb-6 flex-1",children:[["Up to 2 credit cards","Card Recommendations","Browser extension"].map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-xs text-[#44403c]",children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5 text-[#e8690a] shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,t.jsx)("path",{d:"M20 6L9 17l-5-5"})}),e]},e)),(0,t.jsxs)("li",{className:"flex items-center gap-2 text-xs text-[#a8a29e]",children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5 text-[#d6d3d1] shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}),"No Mobile version"]}),(0,t.jsxs)("li",{className:"flex items-center gap-2 text-xs text-[#a8a29e]",children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5 text-[#d6d3d1] shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,t.jsx)("path",{d:"M18 6L6 18M6 6l12 12"})}),"Includes ads"]})]}),(0,t.jsx)("button",{onClick:()=>{$(1),X.isInstalled?I("add-cards"):I("download-extension")},className:"w-full py-2.5 rounded-full border border-[#e7e5e4] text-[#44403c] font-semibold text-sm hover:bg-[#f5f5f4] transition-colors",children:"Continue Free"})]}),(0,t.jsxs)("div",{className:"flex flex-col rounded-2xl border-2 border-[#e8690a] bg-white p-6 relative",children:[(0,t.jsx)("div",{className:"absolute -top-3 left-1/2 -translate-x-1/2",children:(0,t.jsx)("span",{className:"bg-[#e8690a] text-white text-[10px] font-bold px-3 py-1 rounded-full whitespace-nowrap",children:"Most Popular"})}),(0,t.jsx)("p",{className:"text-xs font-semibold text-[#e8690a] uppercase tracking-wider mb-2",children:"Max"}),(0,t.jsxs)("div",{className:"flex items-end gap-1 mb-1",children:[(0,t.jsx)("span",{className:"text-4xl font-bold text-[#292524]",style:{fontFamily:"'Fraunces', Georgia, serif"},children:q?"$2.99":"$3.99"}),(0,t.jsx)("span",{className:"text-[#78716c] mb-1",children:"/mo"})]}),(0,t.jsx)("p",{className:"text-xs text-[#a8a29e] mb-5",children:q?"Billed $35.88/year":"Billed monthly"}),(0,t.jsx)("ul",{className:"space-y-2 mb-6 flex-1",children:["Mobile iOS Extension","Up to 10 credit cards","Card Recommendations","Browser extension","Manual calculator","Ad-free experience"].map(e=>(0,t.jsxs)("li",{className:"flex items-center gap-2 text-xs text-[#44403c]",children:[(0,t.jsx)("svg",{className:"w-3.5 h-3.5 text-[#e8690a] shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,t.jsx)("path",{d:"M20 6L9 17l-5-5"})}),e]},e))}),(0,t.jsx)("button",{onClick:ei,disabled:E,className:"w-full py-3 px-6 rounded-full bg-[#e8690a] text-white font-semibold text-sm hover:bg-[#d65f09] transition-colors disabled:opacity-60",children:E?"Redirecting...":"Start with Max"})]})]})]},"select-plan"),"download-extension"===W&&(0,t.jsxs)(l.motion.div,{custom:R,variants:u,initial:"enter",animate:"center",exit:"exit",className:"w-full max-w-sm",children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(h,{currentStep:el(),totalSteps:er()})}),(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:20}
1,animate:{opacity:1,y:0},transition:{delay:.2},className:"mb-8",children:[(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 px-3 py-1.5 bg-[#d1fae5] rounded-full mb-4",children:[(0,t.jsx)("svg",{className:"w-4 h-4 text-[#059669]",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2.5",children:(0,t.jsx)("polyline",{points:"20 6 9 17 4 12"})}),(0,t.jsx)("span",{className:"text-sm font-medium text-[#065f46]",children:"Account created!"})]}),(0,t.jsx)("h1",{className:"text-3xl font-bold text-[#292524] mb-2",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"Install the extension"}),(0,t.jsx)("p",{className:"text-[#78716c]",children:"Get our browser extension to automatically find the best card for every purchase."})]}),(0,t.jsx)("div",{className:"space-y-3 mb-6",children:[{num:"1",title:"Choose your browser",desc:'Click "Add to Chrome" or "Mac App Store" below — opens the corresponding store. Confirm the install.'},{num:"2",title:"Pin CreditTally to your toolbar",desc:"Click the puzzle-piece (Chrome) or extension icon (Safari) in your browser, then pin CreditTally."},{num:"3",title:"Shop and let it work",desc:"Visit any shopping site — CreditTally auto-detects your cart and suggests the best card."}].map((e,s)=>(0,t.jsxs)(l.motion.div,{initial:{opacity:0,x:-12},animate:{opacity:1,x:0},transition:{delay:.3+.1*s},className:"flex gap-3 bg-white rounded-xl border border-[#e7e5e4] p-4",children:[(0,t.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#fff7ed] border border-[#fed7aa] flex items-center justify-center flex-shrink-0 mt-0.5",children:(0,t.jsx)("span",{className:"text-[11px] font-bold text-[#e8690a]",children:e.num})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[#292524] mb-0.5",children:e.title}),(0,t.jsx)("p",{className:"text-xs text-[#78716c] leading-relaxed",children:e.desc})]})]},e.num))}),(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.6},className:"mb-4 flex flex-col sm:flex-row gap-3",children:[(0,t.jsxs)(l.motion.button,{onClick:()=>ea(c.CHROME_STORE_URL),whileHover:{scale:1.02},whileTap:{scale:.98},className:"flex-1 py-3.5 px-6 bg-gradient-to-r from-[#e8690a] to-[#f59e0b] text-white font-semibold rounded-xl shadow-lg shadow-[#e8690a]/25 hover:shadow-xl hover:shadow-[#e8690a]/30 transition-all flex items-center justify-center gap-2",children:[(0,t.jsx)(n.SiGooglechrome,{className:"w-5 h-5"}),"Add to Chrome"]}),(0,t.jsxs)(l.motion.button,{onClick:()=>ea(c.MAC_APP_STORE_URL),whileHover:{scale:1.02},whileTap:{scale:.98},className:"flex-1 py-3.5 px-6 bg-[#1c1917] text-white font-semibold rounded-xl shadow-lg shadow-black/20 hover:shadow-xl hover:bg-[#292524] transition-all flex items-center justify-center gap-2",children:[(0,t.jsx)(n.SiApple,{className:"w-5 h-5"}),"Mac App Store"]})]}),V&&(0,t.jsx)(l.motion.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{delay:.6},children:(0,t.jsxs)(l.motion.button,{onClick:()=>{$(1),I("add-cards")},whileHover:{scale:1.01},whileTap:{scale:.99},className:"w-full py-3 px-6 bg-[#292524] text-white font-semibold rounded-xl hover:bg-[#44403c] transition-all flex items-center justify-center gap-2",children:["Continue",(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})})]},"download-extension"),"add-cards"===W&&(0,t.jsxs)(l.motion.div,{custom:R,variants:u,initial:"enter",animate:"center",exit:"exit",className:"w-full max-w-sm",children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(h,{currentStep:el(),totalSteps:er()})}),(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.2},className:"mb-6",children:[(0,t.jsx)("h1",{className:"text-3xl font-bold text-[#292524] mb-2",style:{fontFamily:"'Fraunces', Georgia, serif"},children:"Add your cards"}),(0,t.jsx)("p",{className:"text-[#78716c]",children:"Connect your credit cards to get personalized recommendations."})]}),(0,t.jsx)("div",{className:"space-y-3",children:[{num:"1",title:"Go to your Cards page",desc:'From your account, navigate to the Cards page and click "Add Card".'},{num:"2",title:"Search using the exact card name",desc:'Type your card\'s full name (e.g. "Chase Sapphire Preferred"). Use the exact name — our search works best with precise matches.'},{num:"3",title:"Add all the cards you carry",desc:"Add every card in your wallet so CreditTally can always re
1commend the best one."},{num:"4",title:"Shop and earn more",desc:"The extension automatically detects your cart and shows which card maximizes your rewards at checkout."}].map((e,s)=>(0,t.jsxs)(l.motion.div,{initial:{opacity:0,x:-12},animate:{opacity:1,x:0},transition:{delay:.3+.08*s},className:"flex gap-3 bg-white rounded-xl border border-[#e7e5e4] p-4",children:[(0,t.jsx)("div",{className:"w-6 h-6 rounded-full bg-[#fff7ed] border border-[#fed7aa] flex items-center justify-center shrink-0 mt-0.5",children:(0,t.jsx)("span",{className:"text-[11px] font-bold text-[#e8690a]",children:e.num})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-sm font-semibold text-[#292524] mb-0.5",children:e.title}),(0,t.jsx)("p",{className:"text-xs text-[#78716c] leading-relaxed",children:e.desc})]})]},e.num))}),(0,t.jsx)(l.motion.div,{initial:{opacity:0},animate:{opacity:1},transition:{delay:.5},className:"mt-6 space-y-2",children:(0,t.jsxs)(l.motion.button,{onClick:()=>{e.push("/cards"),e.refresh()},whileHover:{scale:1.01},whileTap:{scale:.99},className:"w-full py-3 px-6 bg-[#292524] text-white font-semibold rounded-xl hover:bg-[#44403c] transition-all flex items-center justify-center gap-2",children:["Go to my cards",(0,t.jsx)("svg",{className:"w-4 h-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",children:(0,t.jsx)("path",{d:"M5 12h14M12 5l7 7-7 7"})})]})})]},"add-cards")]})})]}),(0,t.jsxs)("div",{className:"hidden lg:flex w-1/2 bg-[#edebe8] items-center justify-center relative overflow-hidden",children:[(0,t.jsxs)("div",{className:"absolute inset-0",children:[(0,t.jsx)(l.motion.div,{animate:{scale:[1,1.15,1],opacity:[.4,.6,.4]},transition:{duration:10,repeat:1/0,ease:"easeInOut"},className:"absolute top-1/3 left-1/3 w-96 h-96 bg-[#e8690a]/10 rounded-full blur-3xl"}),(0,t.jsx)(l.motion.div,{animate:{scale:[1,1.2,1],opacity:[.3,.5,.3]},transition:{duration:8,repeat:1/0,ease:"easeInOut",delay:2},className:"absolute bottom-1/3 right-1/3 w-96 h-96 bg-[#f59e0b]/10 rounded-full blur-3xl"})]}),(0,t.jsxs)(l.motion.div,{initial:{opacity:0,y:40,scale:.95},animate:{opacity:1,y:0,scale:1},transition:{duration:.8,delay:.2,ease:f},className:"relative z-10 mx-8",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/15 blur-3xl rounded-3xl translate-y-8 scale-95"}),(0,t.jsxs)("div",{className:"relative bg-white rounded-2xl shadow-2xl shadow-black/10 overflow-hidden border border-[#e7e5e4] w-[520px]",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2 px-4 py-3 bg-[#f5f5f4] border-b border-[#e7e5e4]",children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#ff5f57]"}),(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#ffbd2e]"}),(0,t.jsx)("div",{className:"w-3 h-3 rounded-full bg-[#28c840]"})]}),(0,t.jsx)("div",{className:"flex-1 flex justify-center",children:(0,t.jsx)("div",{className:"px-4 py-1.5 bg-white rounded-lg text-sm text-[#78716c] border border-[#e7e5e4]",children:"wholefoodsmarket.com/cart"})}),(0,t.jsx)(l.motion.div,{animate:{scale:[1,1.1,1]},transition:{duration:2,repeat:1/0},className:"w-6 h-6 rounded bg-gradient-to-br from-[#e8690a] to-[#f59e0b] flex items-center justify-center",children:(0,t.jsx)("svg",{viewBox:"0 0 128 128",className:"w-4 h-4",children:(0,t.jsxs)("g",{transform:"translate(64, 64) scale(0.5)",children:[(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"#fff",opacity:"0.6",transform:"rotate(-7)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"#fff",opacity:"0.8",transform:"translate(3, -6) rotate(-1)"}),(0,t.jsx)("rect",{x:"-30",y:"-19",width:"60",height:"38",rx:"6",ry:"6",fill:"#fff",transform:"translate(7, -13) rotate(3)"})]})})})]}),(0,t.jsxs)("div",{className:"relative h-[360px] bg-gradient-to-br from-[#f5f5f4] to-[#edebe8] p-6",children:[(0,t.jsxs)("div",{className:"absolute top-6 left-6 right-6",children:[(0,t.jsxs)("div",{className:"flex items-center gap-4 mb-6",children:[(0,t.jsx)("div",{className:"w-32 h-7 bg-[#00674b] rounded"}),(0,t.jsx)("div",{className:"flex-1 h-9 bg-white rounded-lg border border-[#e7e5e4]"})]}),(0,t.jsx)("div",{className:"text-base font-semibold text-[#292524] mb-4",children:"Your Cart (5 items)"}),(0,t.jsxs)("div",{className:"space-y-3",children:[(0,t.jsxs)(l.motion.div,{initial:{opacity:0,x:-20}
1,animate:{opacity:1,x:0},transition:{delay:.5},className:"flex items-center gap-4 p-4 bg-white rounded-xl border border-[#e7e5e4]",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-[#e8f5e9] rounded-lg"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-36 bg-[#e7e5e4] rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-20 bg-[#f5f5f4] rounded"})]}),(0,t.jsx)("div",{className:"text-lg font-semibold text-[#292524]",children:"$24.99"})]}),(0,t.jsxs)(l.motion.div,{initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:.6},className:"flex items-center gap-4 p-4 bg-white rounded-xl border border-[#e7e5e4]",children:[(0,t.jsx)("div",{className:"w-16 h-16 bg-[#fff3e0] rounded-lg"}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("div",{className:"h-4 w-28 bg-[#e7e5e4] rounded mb-2"}),(0,t.jsx)("div",{className:"h-3 w-16 bg-[#f5f5f4] rounded"})]}),(0,t.jsx)("div",{className:"text-lg font-semibold text-[#292524]",children:"$18.49"})]})]})]}),(0,t.jsx)("div",{className:"absolute top-4 left-4 z-20",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)(l.motion.div,{animate:{opacity:[.4,.7,.4]},transition:{duration:2,repeat:1/0},className:"absolute inset-0 bg-[#e8690a]/30 blur-xl rounded-full scale-150"}),(0,t.jsx)(m,{})]})}),(0,t.jsx)("div",{className:"absolute bottom-4 right-4 z-20",children:(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-black/15 blur-2xl rounded-2xl translate-y-4"}),(0,t.jsx)(x,{})]})})]})]})]})]})]})}function b(){return(0,t.jsx)(s.Suspense,{children:(0,t.jsx)(p,{})})}e.s(["default",()=>b])}]);

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.