import{_ as e,d as t,f as n,g as r,m as i,v as a}from"./index-DOJOKqWn.js";var o=a(e(),1),s=t();function c(){return(0,s.jsx)(`div`,{className:`flex items-center justify-center mb-8`,children:(0,s.jsxs)(`svg`,{width:`100`,height:`100`,viewBox:`0 0 100 100`,fill:`none`,children:[(0,s.jsx)(`circle`,{cx:`50`,cy:`50`,r:`46`,fill:`rgba(196,155,58,0.06)`,stroke:`var(--gold)`,strokeWidth:`2`,className:`success-circle`}),(0,s.jsx)(`path`,{d:`M30 50l15 15 25-25`,stroke:`var(--gold)`,strokeWidth:`4`,strokeLinecap:`round`,strokeLinejoin:`round`,className:`success-check`})]})})}function l(){let e=i(),[t]=r(),a=t.get(`orderId`)||`ALF0000000`,[l,u]=(0,o.useState)(``);(0,o.useEffect)(()=>{u(localStorage.getItem(`alfaras-last-wa-msg`)||``)},[]);let d=`https://wa.me/918015038981?text=${encodeURIComponent(l)}`;return(0,s.jsxs)(`main`,{className:`section-pad flex flex-col items-center justify-center text-center`,style:{minHeight:`90vh`,background:`var(--bg-primary)`,position:`relative`,overflow:`hidden`},children:[(0,s.jsx)(`div`,{className:`container max-w-lg mb-4`,style:{textAlign:`left`,position:`relative`,zIndex:2},children:(0,s.jsx)(`button`,{onClick:()=>e(-1),className:`btn-seal btn-seal-ghost`,style:{padding:`8px 20px`,fontSize:`9px`,letterSpacing:`0.2em`},children:`← Back`})}),(0,s.jsxs)(`div`,{className:`container max-w-lg`,style:{position:`relative`,zIndex:2},children:[(0,s.jsx)(c,{}),(0,s.jsx)(`p`,{className:`text-xs tracking-widest uppercase mb-3`,style:{color:`var(--gold)`,letterSpacing:`0.3em`},children:`Order Requested`}),(0,s.jsx)(`h1`,{className:`font-display font-semibold mb-4`,style:{fontSize:`clamp(32px, 5vw, 52px)`,color:`var(--text-primary)`,letterSpacing:`0.04em`},children:`Securing Artifacts`}),(0,s.jsx)(`p`,{className:`text-base mb-8`,style:{color:`var(--text-muted)`,lineHeight:1.8},children:`Your order request has been registered in the royal archives. We have redirected you to WhatsApp to complete your acquisition.`}),(0,s.jsx)(`div`,{className:`rounded-2xl p-6 mb-8 text-left`,style:{background:`var(--bg-card)`,border:`1px solid var(--border)`},children:(0,s.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,s.jsxs)(`div`,{className:`flex items-center justify-between`,children:[(0,s.jsxs)(`div`,{children:[(0,s.jsx)(`p`,{className:`text-xs`,style:{color:`var(--text-muted)`},children:`Order ID`}),(0,s.jsxs)(`p`,{className:`font-mono font-semibold mt-0.5`,style:{color:`var(--text-primary)`,letterSpacing:`0.1em`},children:[`#`,a]})]}),(0,s.jsx)(`div`,{className:`px-3 py-1.5 rounded-full text-xs font-semibold`,style:{background:`rgba(196,155,58,0.1)`,color:`var(--gold)`,border:`1px solid rgba(196,155,58,0.2)`},children:`⏳ WhatsApp Pending`})]}),(0,s.jsxs)(`div`,{style:{borderTop:`1px solid var(--border)`,paddingTop:`16px`},children:[(0,s.jsx)(`p`,{className:`text-xs`,style:{color:`var(--text-muted)`},children:`Payment & Delivery Coordination`}),(0,s.jsx)(`p`,{className:`font-medium text-sm mt-0.5`,style:{color:`var(--text-primary)`},children:`📱 Directly on WhatsApp (+91 80150 38981)`})]})]})}),l&&(0,s.jsxs)(`div`,{style:{marginBottom:32,padding:`16px 20px`,background:`rgba(196,155,58,0.03)`,border:`1px dashed var(--border)`,borderRadius:12},children:[(0,s.jsx)(`p`,{className:`text-xs mb-3`,style:{color:`var(--text-muted)`},children:`If the WhatsApp redirect did not open automatically, click below to send your order:`}),(0,s.jsx)(`a`,{href:d,target:`_blank`,rel:`noopener noreferrer`,className:`btn-seal btn-seal-dark`,style:{display:`inline-block`,width:`100%`,padding:`12px`,boxSizing:`border-box`},children:`💬 Send Order on WhatsApp`})]}),(0,s.jsxs)(`div`,{className:`flex flex-col sm:flex-row gap-3`,children:[(0,s.jsx)(n,{to:`/profile`,className:`btn-seal btn-seal-ghost flex-1 text-center`,style:{padding:`14px`},children:`View Order Logs`}),(0,s.jsx)(n,{to:`/`,className:`btn-seal btn-seal-dark flex-1 text-center`,style:{padding:`14px`},children:`Return to Palace`})]})]})]})}export{l as default};