1import{aJ as m,W as x,a0 as h,a1 as u,r as p,aE as f,j as e,L as s,a as j,l as r,C as b,c as N,B as n,A as g}from"./index-BN0ytPqJ.js";const w=()=>{const[c]=m(),o=c.get("plan")||"your plan";x({title:"Thank You | AI Search Visibility",noindex:!0});const{user:a}=h(),{refetch:d,plan:t}=u();return p.useEffect(()=>{if(!a||t!=="free")return;let l=0;const i=setInterval(async()=>{l++,await f("/api/subscription/refresh",{method:"POST"}),await d(!0),l>=6&&clearInterval(i)},5e3);return()=>clearInterval(i)},[a,t]),e.jsxs("div",{className:"min-h-screen bg-background flex flex-col",children:[e.jsx("header",{className:"border-b border-border bg-card/50 backdrop-blur-sm",children:e.jsx("div",{className:"container mx-auto px-4 py-4",children:e.jsx(s,{to:"/",className:"flex items-center",children:e.jsx(j,{size:"sm"})})})}),e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 py-12",children:e.jsxs("div",{className:"text-center max-w-lg",children:[e.jsx("div",{className:"mb-8 flex justify-center",children:e.jsxs("div",{className:"relative",children:[e.jsx("div",{className:"w-24 h-24 rounded-full bg-primary/10 flex items-center justify-center animate-pulse",children:e.jsx(r,{className:"h-12 w-12 text-primary"})}),e.jsx("div",{className:"absolute -inset-2 rounded-full border-2 border-primary/20 animate-ping"})]})}),e.jsx("h1",{className:"text-3xl font-bold text-foreground mb-3",children:"Thank You for Your Purchase!"}),e.jsx("p",{className:"text-lg text-muted-foreground mb-2",children:"Your payment was successful."}),e.jsxs("p",{className:"text-muted-foreground mb-8",children:["You're now subscribed to ",e.jsx("span",{className:"font-semibold text-primary capitalize",children:o}),". Your $1 trial runs for 24 hours with full access, then the plan renews automatically. You can cancel anytime from Billing."]}),e.jsx(b,{className:"mb-8 border-primary/20 bg-primary/5",children:e.jsxs(N,{className:"pt-6",children:[e.jsx("h3",{className:"font-semibold text-foreground mb-4",children:"What's Next?"}),e.jsxs("ul",{className:"text-left text-sm text-muted-foreground space-y-3",children:[e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(r,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),e.jsx("span",{children:"Add your websites and start tracking AI visibility"})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(r,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),e.jsx("span",{children:"Generate prompts to monitor your brand across AI models"})]}),e.jsxs("li",{className:"flex items-start gap-3",children:[e.jsx(r,{className:"h-5 w-5 text-primary shrink-0 mt-0.5"}),e.jsx("span",{children:"View insights and optimize your AI search presence"})]})]})]})}),e.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx(n,{asChild:!0,size:"lg",children:e.jsxs(s,{to:"/dashboard",children:[e.jsx(g,{className:"mr-2 h-4 w-4"}),"Go to Dashboard"]})}),e.jsx(n,{asChild:!0,variant:"outline",size:"lg",children:e.jsx(s,{to:"/wizard",children:"Add Your First Website"})})]}),e.jsxs("p",{className:"mt-8 text-sm text-muted-foreground",children:["Need help? ",e.jsx(s,{to:"/contact",className:"text-primary hover:underline",children:"Contact our support team"})]})]})}),e.jsx("footer",{className:"border-t border-border py-4",children:e.jsxs("div",{className:"container mx-auto px-4 text-center text-sm text-muted-foreground",children:["© ",new Date().getFullYear()," Search Visibility. All rights reserved."]})})]})};export{w 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.