1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-DnTMSOQQ.js","assets/query-vendor-B2hx9QI6.js","assets/react-vendor-Bwtg4tbA.js","assets/utils-vendor-DMJYZvCT.js","assets/charts-vendor-SnPuH3QO.js","assets/ui-vendor-Cvnz9Sdh.js","assets/index-OFkmL3c5.css"])))=>i.map(i=>d[i]); 2import{u as f,f as h,F as g,_ as y,B as o}from"./index-DnTMSOQQ.js";import{j as e}from"./query-vendor-B2hx9QI6.js";import{h as j,r as c,L as b}from"./react-vendor-Bwtg4tbA.js";import{g as N}from"./planName-BPaz0m7F.js";import{S as m}from"./sparkles-s0R0DyT6.js";import{C as v}from"./circle-check-OtQGh0Nj.js";import{A as _}from"./arrow-right-5oNQ9O2A.js";import{C as w}from"./credit-card-C-EB9ILi.js";import"./utils-vendor-DMJYZvCT.js";import"./charts-vendor-SnPuH3QO.js";import"./ui-vendor-Cvnz9Sdh.js";const B=()=>{const{t:s}=f("billing"),[d]=j(),x=d.get("session_id"),[p,n]=c.useState(!1),{data:a,refetch:i}=h(),r=g();return c.useEffect(()=>{y(async()=>{const{trackEvent:t}=await import("./index-DnTMSOQQ.js").then(u=>u.Q);return{trackEvent:t}},__vite__mapDeps([0,1,2,3,4,5,6])).then(({trackEvent:t})=>{t("purchase",{method:"stripe_checkout"})}),n(!0);const l=setTimeout(()=>n(!1),3e3);return i(),()=>clearTimeout(l)},[i]),e.jsxs("div",{className:"min-h-[60vh] flex items-center justify-center bg-background px-4",children:[p&&e.jsx("div",{className:"fixed inset-0 pointer-events-none overflow-hidden",children:[...Array(50)].map((l,t)=>e.jsx("div",{className:"absolute animate-confetti",style:{left:`${Math.random()*100}%`,top:"-10%",animationDelay:`${Math.random()*2}s`,animationDuration:`${2+Math.random()*2}s`},children:e.jsx(m,{className:"w-4 h-4",style:{color:["#6366f1","#8b5cf6","#22c55e","#eab308","#ec4899"][Math.floor(Math.random()*5)]}})},t))}),e.jsxs("div",{className:"max-w-md w-full text-center space-y-8",children:[e.jsxs("div",{className:"relative mx-auto w-24 h-24",children:[e.jsx("div",{className:"absolute inset-0 bg-ok/20 rounded-full animate-ping"}),e.jsx("div",{className:"relative flex items-center justify-center w-24 h-24 bg-ok/10 rounded-full border-2 border-ok/30",children:e.jsx(v,{className:"w-12 h-12 text-ok animate-scale-in"})})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx("h1",{className:"text-3xl font-bold text-foreground",children:s("success.title")}),e.jsx("p",{className:"text-foreground/60",children:s("success.subtitle")})]}),(a==null?void 0:a.plan)&&e.jsxs("div",{className:"bg-gradient-to-br from-primary/10 to-accent/10 border border-primary/20 rounded-xl p-6 space-y-3",children:[e.jsxs("div",{className:"flex items-center justify-center gap-2",children:[e.jsx(m,{className:"w-5 h-5 text-primary"}),e.jsx("span",{className:"text-lg font-semibold text-foreground",children:s("success.plan",{name:N(s,a.plan.name,a.plan.display_name)})})]}),e.jsx("p",{className:"text-sm text-foreground/60",children:s("success.planActive")}),e.jsxs("div",{className:"flex flex-wrap justify-center gap-2 pt-2",children:[e.jsx("span",{className:"px-2 py-1 text-xs bg-primary/10 text-primary rounded-full",children:s("success.sites",{count:a.plan.limits.max_sites})}),e.jsx("span",{className:"px-2 py-1 text-xs bg-primary/10 text-primary rounded-full",children:s("success.searches",{count:a.plan.limits.max_searches_monthly||a.plan.limits.max_api_calls_monthly||0})}),(a.plan.limits.llm_quota||0)>0&&e.jsx("span",{className:"px-2 py-1 text-xs bg-accent/10 text-accent rounded-full",children:s("success.aiAnalyses",{count:a.plan.limits.llm_quota})}),a.plan.features.ab_testing&&e.jsx("span",{className:"px-2 py-1 text-xs bg-ok/10 text-ok rounded-full",children:s("success.abTesting")})]})]}),e.jsxs("div",{className:"flex flex-col gap-3",children:[e.jsx(b,{to:"/dashboard",children:e.jsxs(o,{className:"w-full bg-gradient-to-r from-primary to-accent hover:opacity-90",children:[s("success.goToDashboard"),e.jsx(_,{className:"w-4 h-4 ml-2"})]})}),e.jsxs(o,{variant:"outline",className:"w-full",disabled:r.isPending,onClick:()=>r.mutate({return_url:`${window.location.origin}/billing`}),children:[e.jsx(w,{className:"w-4 h-4 mr-2"}),r.isPending?s("currentPlan.loading"):s("success.managePayment")]})]}),x&&!1]}),e.jsx("style",{children:` 3 @keyframes confetti { 4 0% { 5 transform: translateY(0) rotate(0deg); 6 opacity: 1; 7 } 8 100% { 9 transform: translateY(100vh) rotate(720deg); 10 opacity: 0; 11 } 12 } 13 .animate-confetti { 14 animation: confetti linear forwards; 15 } 16 @keyframes scale-in { 17 0% { 18 transform: scale(0); 19 opacity: 0; 20 } 21 50% { 22 transform: scale(1.2); 23 } 24 100% { 25 transform: scale(1); 26 opacity: 1; 27 } 28 } 29 .animate-scale-in { 30 animation: scale-in 0.5s ease-out forwards; 31 } 32 `})]})};export{B as BillingSuccessPage,B 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.