1import{u,c as h,r as i,j as e,H as m,L as n}from"./edge-BOITG1XR.js";function y(){u();const[c]=h(),r=c.get("order")||"",[t,p]=i.useState(null),[x,o]=i.useState(!0),[a,l]=i.useState("");return i.useEffect(()=>{if(!r){l("Missing order reference."),o(!1);return}fetch(`/api/checkout/orders/${encodeURIComponent(r)}`).then(s=>s.ok?s.json():Promise.reject(s)).then(s=>{p(s.order),o(!1)}).catch(()=>{l("Could not load order."),o(!1)})},[r]),e.jsxs(e.Fragment,{children:[e.jsxs(m,{children:[e.jsx("title",{children:"Order Received | SendUnlimitedEmail"}),e.jsx("meta",{name:"robots",content:"noindex, nofollow"})]}),e.jsx("section",{className:"sue-hero",style:{paddingTop:64,paddingBottom:32},children:e.jsxs("div",{className:"sue-container",style:{maxWidth:720},children:[x&&e.jsx("p",{style:{color:"var(--sue-text-muted)"},children:"Loading orderâ¦"}),a&&e.jsx("p",{style:{color:"#B91C1C"},children:a}),t&&e.jsxs("div",{className:"sue-reveal",style:{textAlign:"center"},children:[e.jsx("div",{style:{width:84,height:84,borderRadius:"50%",background:t.is_paid?"linear-gradient(135deg, var(--sue-blue-600), var(--sue-teal-600))":"linear-gradient(135deg, #F59E0B, #D97706)",display:"inline-grid",placeItems:"center",marginBottom:18,boxShadow:t.is_paid?"0 10px 28px rgba(0,102,204,0.3)":"0 10px 28px rgba(217,119,6,0.28)"},children:t.is_paid?e.jsx("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round",children:e.jsx("polyline",{points:"20 6 9 17 4 12"})}):e.jsxs("svg",{width:"38",height:"38",viewBox:"0 0 24 24",fill:"none",stroke:"white",strokeWidth:"2.2",strokeLinecap:"round",strokeLinejoin:"round",children:[e.jsx("circle",{cx:"12",cy:"12",r:"9"}),e.jsx("path",{d:"M12 7v5l3 2"})]})}),e.jsx("h1",{className:"sue-h1",style:{fontSize:"clamp(28px, 4vw, 40px)",marginBottom:12},children:t.is_paid?"Payment confirmed!":"Order received"}),e.jsx("p",{className:"sue-hero-lead",style:{marginBottom:0},children:t.is_paid?"Your dedicated SMTP server is being provisioned. We'll email your credentials within 1â4 hours.":"We have your order. Once payment is confirmed our team will provision your server and email credentials."})]})]})}),t&&e.jsx("section",{style:{paddingBottom:64},children:e.jsxs("div",{className:"sue-container",style:{maxWidth:720},children:[e.jsxs("div",{className:"sue-reveal",style:{background:"white",border:"1px solid var(--sue-border)",borderRadius:"var(--sue-r-xl)",padding:"28px 28px",boxShadow:"var(--sue-shadow-md)"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",marginBottom:20,paddingBottom:16,borderBottom:"1px solid var(--sue-border)",flexWrap:"wrap",gap:12},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"var(--sue-text-subtle)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:4},children:"Order #"}),e.jsxs("div",{style:{fontSize:18,fontWeight:700,fontFamily:"monospace"},children:["SUE-",String(t.id).padStart(6,"0")]})]}),e.jsxs("div",{children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"var(--sue-text-subtle)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:4},children:"Status"}),e.jsx("span",{style:{fontSize:12.5,fontWeight:700,padding:"4px 10px",borderRadius:999,background:t.is_paid?"#DCFCE7":"#FEF3C7",color:t.is_paid?"#166534":"#92400E"},children:t.is_paid?"PAID":(t.status||"PENDING").toUpperCase().replace(/_/g," ")})]})]}),e.jsxs("div",{style:{marginBottom:14},children:[e.jsx("div",{style:{fontSize:11,fontWeight:700,color:"var(--sue-text-subtle)",letterSpacing:"0.08em",textTransform:"uppercase",marginBottom:8},children:"Item"}),(t.items||[]).map((s,d)=>e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px 0",borderBottom:d<t.items.length-1?"1px solid var(--sue-border)":"none"},children:[e.jsxs("div",{children:[e.jsx("div",{style:{fontWeight:600},children:s.name}),e.jsxs("div",{style:{fontSize:12,color:"var(--sue-text-subtle)"},children:["Qty ",s.quantity||1]})]}),e.jsxs("div",{style:{fontFamily:"monospace",fontWeight:700},children:["$",parseFloat(s.price).toFixed(2)]})]},d))]}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",paddingTop:12,borderTop:"1px solid var(--sue-border)"},children:[e.jsx("span",{style:{fontSize:14,fontWeight:700},children:"Total"}),e.jsxs("span",{style:{fontSize:22,fontWeight:800,color:"var(--sue-blue-600)",fontFamily:"monospace"},children:["$",t.total.toFixed(2)]})]}),e.jsxs("div",{style:{marginTop:22,padding:"14px 16px",background:"var(--sue-bg-muted)",border:"1px solid var(--sue-border)",borderRadius:8,fontSize:13.5,color:"var(--sue-text-muted)",lineHeight:1.6},children:[e.jsx("strong",{style:{color:"var(--sue-text)"},children:"What happens next:"}),e.jsxs("ol",{style:{margin:"8px 0 0 18px",padding:0},children:[e.jsx("li",{children:t.is_paid?"Your payment is confirmed.":"We confirm your payment (auto for cards/crypto, ~24h for manual proof)."}
1),e.jsx("li",{children:"Our infrastructure team provisions your dedicated server with pre-warmed IPs."}),e.jsx("li",{children:"You receive an email with SMTP credentials, control-panel URL, and a quickstart guide."}),e.jsx("li",{children:"Server is ready in 1â4 hours from confirmed payment."})]})]})]}),e.jsxs("div",{style:{marginTop:22,textAlign:"center",display:"flex",gap:10,justifyContent:"center",flexWrap:"wrap"},children:[!t.is_paid&&e.jsx(n,{to:`/checkout/pay?order=${r}&method=${t.payment_method||"btc"}`,className:"sue-btn sue-btn-lg",style:{background:"linear-gradient(135deg, #0066CC, #14C4A2)",color:"#fff",fontWeight:800,boxShadow:"0 8px 22px rgba(0,102,204,0.28)"},children:"Complete your payment â"}),typeof localStorage<"u"&&localStorage.getItem("token")?e.jsx(n,{to:"/dashboard",className:`sue-btn ${t.is_paid?"sue-btn-primary":"sue-btn-outline"}`,children:"â Go to Dashboard"}):e.jsx(n,{to:"/auth/login",className:`sue-btn ${t.is_paid?"sue-btn-primary":"sue-btn-outline"}`,children:"Sign in to Dashboard"}),e.jsx(n,{to:"/contact",className:"sue-btn sue-btn-outline",children:"Contact Support"})]}),!t.is_paid&&e.jsxs("p",{style:{textAlign:"center",marginTop:12,fontSize:12.5,color:"var(--sue-text-subtle)",lineHeight:1.6},children:["Your order is saved â pay now, or return to this link anytime to finish.",e.jsx("br",{}),"Nothing is charged or provisioned until your payment is confirmed."]}),e.jsxs("div",{style:{marginTop:24,paddingTop:18,borderTop:"1px solid var(--sue-border)",display:"flex",flexWrap:"wrap",gap:16,justifyContent:"center",fontSize:12.5,color:"var(--sue-text-muted)"},children:[e.jsx("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:"ð TLS 1.3 encrypted"}),e.jsx("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:"ð³ No card data stored"}),e.jsx("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:"â Cancel anytime"}),e.jsx("span",{style:{display:"inline-flex",alignItems:"center",gap:6},children:"ð¬ 24/7 human support"})]}),e.jsxs("p",{style:{textAlign:"center",marginTop:18,fontSize:12.5,color:"var(--sue-text-subtle)"},children:["Save this URL â your order tracker: ",e.jsx("br",{}),e.jsxs("code",{style:{fontSize:11.5,wordBreak:"break-all"},children:[window.location.origin,"/checkout/success?order=",r]})]})]})})]})}export{y 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.