1import{l as f,b as h,d as p,j as e}from"./index-BwS8jYOZ.js";import{a as m,bY as g,Y as z,bl as j}from"./lucide-icons-B2YBELY1.js";const w=()=>{const[x]=f(),r=h(),t=x.get("order_id"),[u,b]=m.useState("/pricing");return m.useEffect(()=>{if(!t)return;let a=!0;return p.get(`/orders/${t}`).then(s=>{var i,d,o,l;if(!a)return;const n=(d=(i=s.data)==null?void 0:i.metadata)==null?void 0:d.planSlug,c=(l=(o=s.data)==null?void 0:o.metadata)==null?void 0:l.billingPeriod;n&&b(`/pricing?buy=${encodeURIComponent(n)}${c?`&period=${c}`:""}`)}).catch(()=>{}),()=>{a=!1}},[t]),e.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-br from-zinc-50 to-zinc-100 dark:from-zinc-900 dark:to-zinc-950 p-4",children:e.jsxs("div",{className:"bg-white dark:bg-zinc-900 rounded-2xl w-full max-w-md border border-zinc-200 dark:border-zinc-800 shadow-2xl p-8 text-center",children:[e.jsx("div",{className:"w-16 h-16 bg-amber-100 dark:bg-amber-900/30 rounded-full flex items-center justify-center mx-auto mb-6",children:e.jsx(g,{className:"w-8 h-8 text-amber-600 dark:text-amber-400"})}),e.jsx("h1",{className:"text-2xl font-bold text-zinc-900 dark:text-zinc-100 mb-2",children:"Payment Cancelled"}),e.jsx("p",{className:"text-zinc-500 dark:text-zinc-400 mb-8",children:"Your payment was cancelled. No charges were made to your account."}),e.jsxs("div",{className:"space-y-3",children:[e.jsxs("button",{onClick:()=>r(u),className:"w-full py-3 px-4 bg-zinc-900 dark:bg-zinc-100 text-white dark:text-zinc-900 rounded-xl font-medium hover:opacity-90 transition-opacity flex items-center justify-center gap-2",children:[e.jsx(z,{className:"w-4 h-4"}),"Try Again"]}),e.jsxs("button",{onClick:()=>r("/"),className:"w-full py-3 px-4 bg-zinc-100 dark:bg-zinc-800 text-zinc-900 dark:text-zinc-100 rounded-xl font-medium hover:bg-zinc-200 dark:hover:bg-zinc-700 transition-colors flex items-center justify-center gap-2",children:[e.jsx(j,{className:"w-4 h-4"}),"Back to Home"]})]}),t&&e.jsxs("p",{className:"text-xs text-zinc-400 mt-6",children:["Order ID: ",t]})]})})};export{w as PaymentCancelled,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.