1import{r as s,j as e}from"./vendor-trpc-D6ZkT7iM.js";import{u as i,a as o,S as d}from"./index-D7bKc13a.js";import{c as n}from"./tracking-BYeoztZw.js";import"./vendor-react-C6WdkbZm.js";import"./vendor-react-dom-CbT1Y-B1.js";import"./vendor-radix-BoZQToVs.js";import"./vendor-icons-CpBmPy1A.js";function k(){const[,c]=i(),a=s.useMemo(()=>new URLSearchParams(window.location.search),[]),l=a.get("reason")||"payment_failed";s.useEffect(()=>{o({title:"Payment Failed â Alpha Trader Firm",description:"Your payment could not be processed. Please try again or contact support for assistance.",canonical:"https://alphafunded.com/checkout/failed",schemaId:"checkout-failed-schema"});const t=a.get("order");n(t&&t!=="PENDING"?t:void 0)},[]);const r=()=>{switch(l){case"cancelled":return"You cancelled the payment. No charges were made.";case"declined":return"Your payment was declined. Please try a different card or payment method.";case"expired":return"Your payment session expired. Please try again.";default:return"Something went wrong with your payment. No charges were made."}};return e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:39",className:"min-h-screen bg-[#0a0a0a] flex flex-col",children:[e.jsx("header",{"data-loc":"client/src/pages/CheckoutFailed.tsx:41",className:"border-b border-white/5 bg-[#0a0a0a]/80 backdrop-blur-sm",children:e.jsx("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:42",className:"max-w-5xl mx-auto px-4 py-4 flex items-center",children:e.jsx(d,{"data-loc":"client/src/pages/CheckoutFailed.tsx:43",variant:"light",size:30})})}),e.jsx("main",{"data-loc":"client/src/pages/CheckoutFailed.tsx:48",className:"flex-1 flex items-center justify-center px-4 py-12",children:e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:49",className:"max-w-lg w-full text-center",children:[e.jsx("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:51",className:"w-20 h-20 rounded-full bg-red-500/10 border-2 border-red-500/30 flex items-center justify-center mx-auto mb-6",children:e.jsx("svg",{"data-loc":"client/src/pages/CheckoutFailed.tsx:52",className:"w-10 h-10 text-red-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.5,children:e.jsx("path",{"data-loc":"client/src/pages/CheckoutFailed.tsx:53",strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})}),e.jsx("h1",{"data-loc":"client/src/pages/CheckoutFailed.tsx:57",className:"text-white text-3xl font-black mb-3",children:"Payment Unsuccessful"}),e.jsx("p",{"data-loc":"client/src/pages/CheckoutFailed.tsx:58",className:"text-white/60 text-base mb-8",children:r()}),e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:61",className:"bg-[#111111] border border-white/10 rounded-2xl p-6 text-left mb-8",children:[e.jsx("h2",{"data-loc":"client/src/pages/CheckoutFailed.tsx:62",className:"text-white font-bold text-lg mb-3",children:"Need Help?"}),e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:63",className:"space-y-3",children:[e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:64",className:"flex items-start gap-3",children:[e.jsx("span",{"data-loc":"client/src/pages/CheckoutFailed.tsx:65",className:"text-white/40 text-sm",children:"â¢"}),e.jsx("p",{"data-loc":"client/src/pages/CheckoutFailed.tsx:66",className:"text-white/60 text-sm",children:"Make sure your card details are correct and
1your bank allows international transactions."})]}),e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:68",className:"flex items-start gap-3",children:[e.jsx("span",{"data-loc":"client/src/pages/CheckoutFailed.tsx:69",className:"text-white/40 text-sm",children:"â¢"}),e.jsx("p",{"data-loc":"client/src/pages/CheckoutFailed.tsx:70",className:"text-white/60 text-sm",children:"Try a different payment method or contact your bank if the issue persists."})]}),e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:72",className:"flex items-start gap-3",children:[e.jsx("span",{"data-loc":"client/src/pages/CheckoutFailed.tsx:73",className:"text-white/40 text-sm",children:"â¢"}),e.jsxs("p",{"data-loc":"client/src/pages/CheckoutFailed.tsx:74",className:"text-white/60 text-sm",children:["Contact our support team at ",e.jsx("a",{"data-loc":"client/src/pages/CheckoutFailed.tsx:74",href:"mailto:[email protected]",className:"text-[#0b6fd9] hover:underline",children:"[email protected]"})," for assistance."]})]})]})]}),e.jsxs("div",{"data-loc":"client/src/pages/CheckoutFailed.tsx:80",className:"flex flex-col sm:flex-row gap-3 justify-center",children:[e.jsx("button",{"data-loc":"client/src/pages/CheckoutFailed.tsx:81",onClick:()=>window.history.back(),className:"px-6 py-3 bg-[#0b6fd9] text-white font-semibold rounded-xl hover:bg-[#0960b8] transition-colors",children:"Try Again"}),e.jsx("button",{"data-loc":"client/src/pages/CheckoutFailed.tsx:87",onClick:()=>c("/"),className:"px-6 py-3 border border-white/10 text-white/70 font-semibold rounded-xl hover:bg-white/5 transition-colors",children:"Back to Homepage"})]})]})})]})}export{k 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.