1import{c as v,r as o,s as y,j as e,y as f,S,ab as F,bu as w}from"./index-DocTL6Xp.js";import{u as E}from"./useSubscription-BogwARKQ.js";const t={bg:"#FAF9F5",surface:"#FFFFFF",ink:"#1A1A1A",inkMuted:"#6B6B68",border:"#E8E5DD",borderStrong:"#D8D3C5",accent:"#2563EB"},g="'Inter', system-ui, -apple-system, sans-serif";function O(){const s=v(),[i,d]=o.useState(null),[b,j]=o.useState(!1),[m,u]=o.useState(!1),{subscriptionData:n,createCheckout:k}=E(i);o.useEffect(()=>{document.title="Complete your GX PRO upgrade - GoExpired.com";let r=!0;y.auth.getSession().then(({data:{session:a}})=>{r&&(d((a==null?void 0:a.user)??null),j(!0),a!=null&&a.user||s("/auth?mode=signup&tier=pro",{replace:!0}))});const{data:{subscription:N}}=y.auth.onAuthStateChange((a,c)=>{r&&d((c==null?void 0:c.user)??null)});return()=>{r=!1,N.unsubscribe()}},[s]),o.useEffect(()=>{(n.tier==="pro"||n.tier==="plus")&&(localStorage.removeItem("pendingTier"),localStorage.removeItem("pendingPromoCode"),s("/",{replace:!0}))},[n.tier,s]);const l=(typeof window<"u"?localStorage.getItem("pendingTier"):null)==="pro_yearly",p=l?"$79.99":"$9.99",x=l?"/year":"/month",C=async()=>{u(!0);try{const r=typeof window<"u"?localStorage.getItem("pendingPromoCode")??void 0:void 0;await k(l?"pro_yearly":"pro",r),localStorage.removeItem("pendingPromoCode")}catch(r){console.error(r),u(!1)}},h=()=>{localStorage.removeItem("pendingTier"),localStorage.removeItem("pendingPromoCode"),s("/")};return b?e.jsxs("div",{className:"min-h-screen flex flex-col",style:{backgroundColor:t.bg,color:t.ink,fontFamily:g},children:[e.jsx("header",{className:"px-6 md:px-8 py-5 border-b",style:{borderColor:t.border},children:e.jsxs("div",{className:"max-w-6xl mx-auto flex items-center justify-between",children:[e.jsxs("a",{href:"/",className:"text-lg font-semibold tracking-tight",style:{color:t.ink},children:["GoExpired",e.jsx("span",{style:{color:t.accent},children:".com"})]}),e.jsx("button",{onClick:h,className:"text-sm hover:opacity-70 transition-opacity",style:{color:t.inkMuted},children:"Skip for now â"})]})}),e.jsx("main",{className:"flex-1 flex items-center justify-center px-4 py-12",children:e.jsx("div",{className:"w-full max-w-xl",children:e.jsxs("div",{className:"rounded-3xl p-8 md:p-10",style:{backgroundColor:t.surface,border:`1px solid ${t.border}`,boxShadow:"0 1px 2px rgba(26,26,26,0.04), 0 8px 32px -16px rgba(26,26,26,0.08)"},children:[e.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 rounded-full text-xs mb-6",style:{backgroundColor:`${t.accent}10`,color:t.accent},children:[e.jsx(S,{className:"w-3 h-3"}),e.jsx("span",{children:"One step left"})]}),e.jsx("h1",{className:"text-3xl md:text-4xl tracking-tight mb-3",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:"Complete your GX PRO upgrade"}),e.jsxs("p",{className:"text-sm md:text-base mb-8",style:{color:t.inkMuted},children:["Your account is ready. Continue to secure checkout to activate GX PRO for ",p,x,"."]}),e.jsxs("div",{className:"rounded-2xl p-5 mb-8",style:{backgroundColor:t.bg,border:`1px solid ${t.border}`},children:[e.jsxs("div",{className:"flex items-baseline gap-1 mb-4",children:[e.jsx("span",{className:"text-4xl",style:{fontFamily:"'Cormorant', serif",fontWeight:600},children:p}),e.jsx("span",{className:"text-sm",style:{color:t.inkMuted},children:x})]}),e.jsx("ul",{className:"space-y-2.5",children:["Unlimited domain appraisals","2 newsletter placements per month","Exposure to 1,400+ active investors","Every future GX PRO feature included","Cancel anytime"].map(r=>e.jsxs("li",{className:"flex items-start gap-2 text-sm",style:{color:t.ink},children:[e.jsx(F,{className:"h-4 w-4 mt-0.5 shrink-0",style:{color:t.accent}}),e.jsx("span",{children:r})]},r))})]}),e.jsx("button",{onClick:C,disabled:m||!i,className:"w-full h-12 rounded-full text-sm font-medium transition-all duration-200 hover:-translate-y-[1px] disabled:opacity-60 disabled:hover:translate-y-0 flex items-center justify-center gap-2",style:{backgroundColor:t.accent,color:"#FFFFFF",boxShadow:"0 4px 14px -4px rgba(37, 99, 235, 0.45), inset 0 1px 0 rgba(255,255,255,0.25)"},children:m?e.jsxs(e.Fragment,{children:[e.jsx(f,{className:"h-4 w-4 animate-spin"}),"Opening secure checkoutâ¦"]}):e.jsxs(e.Fragment,{children:["Continue to secure checkout",e.jsx(w,{className:"w-4 h-4"})]})}),e.jsx("p",{className:"text-xs text-center mt-4",style:{color:t.inkMuted},children:"Payment processed by Stripe. You can cancel anytime from your account."}),e.jsx("div",{className:"text-center mt-6",children:e.jsx("button",{onClick:h,className:"text-sm hover:opacity-70 transition-opacity",style:{color:t.inkMuted},children:"Maybe later"})})]})})})]}):e.jsx("div",{className:"min-h-screen flex items-center justify-center",style:{backgroundColor:t.bg,color:t.inkMuted,fontFamily:g},children:e.jsx(f,{className:"h-6 w-6 animate-spin"})})}
1export{O 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.