PageSourceSearch

https://www.ascendtradingconcepts.com/assets/Billing-jwMtCfP2.js

js ascendtradingconcepts.com collected 2026-10-05 23:19:45 UTC 5,457 bytes, 1 lines download raw bytes

1import{b as g,t as m,j as e,A as p,N as h,n as a,h as b,L as u,T as j}from"./index-D495-HzB.js";import{F as B}from"./Footer-Oj04hllU.js";import{u as w}from"./useCheckout-BUeL0enm.js";import{C as n}from"./credit-card-EYLU1YZC.js";function P(){const{isAuthenticated:s,loading:c}=g(),{data:i,isLoading:r,error:o}=m.billing.getStatus.useQuery(void 0,{enabled:s,retry:!1}),{openPortal:d,isPending:l}=w(),t=i?.subscription,x=(i?.tier??1)===2;return e.jsxs("div",{"data-loc":"client/src/pages/Billing.tsx:29",className:"min-h-screen bg-[#04060d] text-foreground",children:[e.jsx(p,{"data-loc":"client/src/pages/Billing.tsx:30"}),e.jsx(h,{"data-loc":"client/src/pages/Billing.tsx:31"}),e.jsxs("main",{"data-loc":"client/src/pages/Billing.tsx:32",className:"relative max-w-2xl mx-auto px-4 pt-36 pb-24",children:[e.jsx("h1",{"data-loc":"client/src/pages/Billing.tsx:33",className:"text-3xl font-bold mb-8 font-[var(--font-heading)]",children:"Billing"}),c||r?e.jsxs("div",{"data-loc":"client/src/pages/Billing.tsx:38",className:"flex items-center gap-3 text-white/60",children:[e.jsx(a,{"data-loc":"client/src/pages/Billing.tsx:39",className:"w-5 h-5 animate-spin"})," Loading…"]}):s?o?e.jsx("div",{"data-loc":"client/src/pages/Billing.tsx:52",className:"p-6 sm:p-8 rounded-xl bg-red-400/5 border border-red-400/20 text-center",children:e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:53",className:"text-white/70",children:"Couldn't load billing info. Please try again."})}):t?e.jsxs("div",{"data-loc":"client/src/pages/Billing.tsx:70",className:"p-6 sm:p-8 rounded-xl bg-white/[0.03] border border-white/[0.07]",children:[e.jsx("div",{"data-loc":"client/src/pages/Billing.tsx:71",className:"flex items-center justify-between mb-6",children:e.jsxs("div",{"data-loc":"client/src/pages/Billing.tsx:72",children:[e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:73",className:"text-xs uppercase tracking-widest text-white/40 mb-1",children:"Current plan"}),e.jsxs("p",{"data-loc":"client/src/pages/Billing.tsx:76",className:"text-2xl font-bold text-white",children:["Premium"," ",e.jsx("span",{"data-loc":"client/src/pages/Billing.tsx:78",className:`text-sm font-semibold px-2 py-0.5 rounded-full ml-2 ${t.status==="active"||t.status==="trialing"?"bg-[rgba(0,229,200,0.10)] text-[#00e5c8]":"bg-[rgba(200,168,78,0.12)] text-[#c8a84e]"}`,children:t.status.replace("_"," ")})]})]})}),t.currentPeriodEnd&&e.jsxs("p",{"data-loc":"client/src/pages/Billing.tsx:92",className:"text-sm text-white/55 mb-2",children:[t.cancelAtPeriodEnd?"Access ends":"Renews"," on"," ",new Date(t.currentPeriodEnd).toLocaleDateString("en-US",{year:"numeric",month:"long",day:"numeric"})]}),t.cancelAtPeriodEnd&&e.jsxs("p",{"data-loc":"client/src/pages/Billing.tsx:102",className:"flex items-center gap-2 text-sm text-[#c8a84e] mb-2",children:[e.jsx(j,{"data-loc":"client/src/pages/Billing.tsx:103",className:"w-4 h-4"}),"Your subscription won't renew. You'll keep Premium until the end date above."]}),!x&&e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:109",className:"text-sm text-white/55 mb-2",children:"Premium access is currently inactive on your account."}),e.jsxs("button",{"data-loc":"client/src/pages/Billing.tsx:114",onClick:()=>d(),disabled:l,className:"mt-6 inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-white/[0.04] border border-white/10 text-white/80 font-semibold hover:bg-white/[0.07] transition-colors disabled:opacity-50",children:[l?e.jsx(a,{"data-loc":"client/src/pages/Billing.tsx:120",className:"w-4 h-4 animate-spin"}):e.jsx(n,{"data-loc":"client/src/pages/Billing.tsx:122",className:"w-4 h-4"}),"Manage Subscription"]}),e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:126",className:"text-xs text-white/35 mt-3",children:"Update your card, change plans, or cancel — handled securely by Stripe."})]}):e.jsxs("div",{"data-loc":"client/src/pages/Billing.tsx:56",className:"p-6 sm:p-8 rounded-xl bg-white/[0.03] border border-white/[0.07] text-center",children:[e.jsx(n,{"data-loc":"client/src/pages/Billing.tsx:57",className:"w-10 h-10 mx-auto mb-4 text-white/30"}),e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:58",className:"text-white/70 mb-2 font-semibold",children:"No subscription yet"}),e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:59",className:"text-white/50 text-sm mb-6",children:"You're on the Free plan. Premium is coming soon — join the waitlist for the full indicator library, all 31 education modules, and the scanner."}),e.jsx(u,{"data-loc":"client/src/pages/Billing.tsx:63",href:"/get-started",children:e.jsx("span",{"data-loc":"client/src/pages/Billing.tsx:64",className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-[rgba(200,168,78,0.15)] border border-[rgba(200,168,78,0.40)] text-[#c8a84e] font-semibold cursor-pointer",children:"View Premium Plans"})})]}):e.jsxs("div",{"data-loc":"client/src/pages/Billing.tsx:42",className:"p-6 sm:p-8 rounded-xl bg-white/[0.03] border border-white/[0.07] text-center",children:[e.jsx("p",{"data-loc":"client/src/pages/Billing.tsx:43",className:"text-white/70 mb-6",children:"Sign in to manage your subscription."}),e.jsx("a",{"data-loc":"client/src/pages/Billing.tsx:44",href:b(),className:"inline-flex items-center gap-2 px-6 py-3 rounded-xl bg-[rgba(0,229,200,0.12)] border border-[rgba(0,229,200,0.35)] text-[#00e5c8] font-semibold no-underline",children:"Sign In"})]})]}),e.jsx(B,{"data-loc":"client/src/pages/Billing.tsx:133"})]})}
vendor: 22 bytes, line 1
1export{P 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.