1import{r as e,j as t}from"./react-vendor-hAxFZxNQ.js";import{T as s}from"./TrulookHeader-B8ulu58v.js";import{ap as a,c as r,L as l,A as i,aq as n}from"./main-C-ofR5-x.js";import{g as d}from"./Pricing-D6pAvcl0.js";import{t as o}from"./googleAdsConversions-DpEOb8Vd.js";import"./ui-DlHKYJvh.js";function c(){const[s,c]=e.useState({}),[x,m]=e.useState(null);e.useEffect(()=>{(async()=>{const e=localStorage.getItem("selected_plan_id");if(e)try{const t=(await i.getPlans()).results.find(t=>t.plan_id===e);t&&m(function(e){return{id:e.plan_id,name:e.name,nameBreak:e.name_break||void 0,icon:e.icon,iconColor:e.icon_color,price:e.price,subtitle:e.subtitle||void 0,headerBg:e.header_bg,features:e.features}}(t))}catch(t){}})();const e=localStorage.getItem("audit_lead_info");if(e)try{const t=JSON.parse(e);c({subscriptionId:t.subscriptionId,stripeSubscriptionId:t.stripeSubscriptionId,email:t.email,phone:t.phone,firstName:t.firstName,lastName:t.lastName,billing:t.billing})}catch(s){}const t=setTimeout(()=>{const e=localStorage.getItem("audit_lead_info");if(e)try{const t=JSON.parse(e);localStorage.setItem("audit_lead_info",JSON.stringify({auditId:t.auditId}))}catch(s){}localStorage.removeItem("selected_plan_id")},1e3);return()=>clearTimeout(t)},[]),e.useEffect(()=>{if("undefined"==typeof window||!x)return;const e=s.stripeSubscriptionId||s.subscriptionId||"",t=`gads_trulook_purchase_fired:${e||"default"}`;sessionStorage.getItem(t)||(o("trulook",{value:d(x).total,currency:"USD",transactionId:e}),sessionStorage.setItem(t,"1"))},[x,s.subscriptionId,s.stripeSubscriptionId]),e.useEffect(()=>{if("undefined"==typeof window||!x)return;const e=s.stripeSubscriptionId||s.subscriptionId||"",t=`meta_trulook_purchase_fired:${e||"default"}`;if(sessionStorage.getItem(t))return;const r=`${x.name} ${x.nameBreak||""}`.trim()||"TruLook Subscription";a("Purchase",{value:d(x).total,currency:"USD",content_type:"product",content_name:r,content_ids:[x.id]},{eventID:n(e)}),sessionStorage.setItem(t,"1")},[x,s.subscriptionId,s.stripeSubscriptionId]);const p=x?d(x):{subtotal:0,total:0},h=s.subscriptionId?`TRL-${s.subscriptionId.slice(0,4).toUpperCase()}`:"TRL-0000",u=[s.firstName,s.lastName].filter(Boolean).join(" ")||"Customer";return t.jsxs("div",{className:"min-h-screen bg-slate-50 dark:bg-slate-900 flex flex-col",children:[t.jsx("div",{className:"fixed inset-0 pointer-events-none",style:{backgroundImage:"\n radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.08) 0px, transparent 50%),\n radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),\n linear-gradient(to right, rgba(37, 99, 235, 0.04) 1px, transparent 1px),\n linear-gradient(to bottom, rgba(37, 99, 235, 0.04) 1px, transparent 1px)\n ",backgroundSize:"100% 100%, 100% 100%, 40px 40px, 40px 40px"}}),t.jsx("main",{className:"flex-grow px-4 py-8 lg:px-20 lg:py-12 relative z-10",children:t.jsx("div",{className:"max-w-[1200px] mx-auto",children:t.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-10 items-start",children:[t.jsxs("div",{className:"lg:col-span-7 xl:col-span-8 flex flex-col gap-8",children:[t.jsxs("div",{className:"flex flex-col gap-6",children:[t.jsxs("div",{className:"flex items-start gap-5",children:[t.jsx(r,{name:"mdi:check-circle",className:"text-6xl text-primary shrink-0 mt-1 w-14 h-14"}),t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("p",{className:"text-sm font-semibold text-slate-500 dark:text-gray-400 uppercase tracking-wider",children:["Order #",h]}),t.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900 dark:text-white leading-tight",children:"Thank you for your order!"})]})]}),t.jsxs("div",{className:"p-6 rounded-xl border border-slate-200 dark:border-slate-700 bg-white/60 dark:bg-slate-800/60 backdrop-blur-sm",children:[t.jsx("h3",{className:"font-bold text-lg text-slate-900 dark:text-white mb-2",children:"Your order is confirmed"}),t.jsxs("p",{className:"text-slate-600 dark:text-slate-300 leading-relaxed",children:["We've accepted your order, and we're getting it ready. You'll receive a confirmation email at"," ",t.jsx("span",{className:"font-semibold text-slate-900 dark:text-white",children:s.email||"
1your email"})," ","with your order number and invoice shortly.",t.jsx("br",{}),t.jsx("br",{}),"Since you purchased a digital subscription, your access to the"," ",t.jsx("strong",{children:x?`${x.name} ${x.nameBreak||""}`.trim():"plan"})," ","has been activated immediately."]})]})]}),t.jsxs("div",{className:"rounded-2xl border border-slate-200 dark:border-slate-700 bg-white dark:bg-slate-800 p-6 md:p-8 shadow-sm shadow-violet-50 dark:shadow-none",children:[t.jsx("h2",{className:"text-xl font-bold text-slate-900 dark:text-white mb-6",children:"Customer Information"}),t.jsxs("div",{className:"grid md:grid-cols-2 gap-8",children:[t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-slate-900 dark:text-white mb-2 text-sm uppercase tracking-wide opacity-80",children:"Contact Information"}),t.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:u}),t.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:s.email||"N/A"})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-slate-900 dark:text-white mb-2 text-sm uppercase tracking-wide opacity-80",children:"Payment Method"}),t.jsxs("div",{className:"flex items-center gap-2 text-slate-600 dark:text-slate-400",children:[t.jsx(r,{name:"mdi:credit-card",className:"w-5 h-5"}),t.jsxs("span",{children:["Card Payment - ",t.jsxs("span",{className:"font-medium text-slate-900 dark:text-white",children:["$",p.total.toFixed(2)]})]})]})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-slate-900 dark:text-white mb-2 text-sm uppercase tracking-wide opacity-80",children:"Billing Address"}),s.billing?t.jsxs("p",{className:"text-slate-600 dark:text-slate-400 leading-relaxed",children:[u,t.jsx("br",{}),s.billing.address,t.jsx("br",{}),s.billing.city,", ",s.billing.state," ",s.billing.zip,t.jsx("br",{}),"US"===s.billing.country?"United States":"CA"===s.billing.country?"Canada":s.billing.country]}):t.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"N/A"})]}),t.jsxs("div",{children:[t.jsx("h3",{className:"font-bold text-slate-900 dark:text-white mb-2 text-sm uppercase tracking-wide opacity-80",children:"Shipping Method"}),t.jsx("p",{className:"text-slate-600 dark:text-slate-400",children:"Digital Delivery (Instant)"})]})]})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center pt-4",children:[t.jsx(l,{to:"/trulook/pricing",className:"w-full sm:w-auto rounded-lg bg-primary py-4 px-8 text-center text-sm font-bold uppercase tracking-widest text-white shadow-lg shadow-violet-200 dark:shadow-none hover:bg-violet-700 transition-all focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2 dark:focus:ring-offset-slate-800",children:"Continue Shopping"}),t.jsxs(l,{to:"/trulook",className:"w-full sm:w-auto flex items-center justify-center gap-2 rounded-lg py-4 px-6 text-sm font-bold text-slate-600 dark:text-slate-300 hover:text-primary dark:hover:text-violet-400 transition-colors",children:["Run Another Audit",t.jsx(r,{name:"mdi:arrow-right",className:"w-4 h-4"})]})]})]}),t.jsxs("div",{className:"lg:col-span-5 xl:col-span-4 lg:sticky lg:top-28",children:[t.jsxs("div",{className:"flex flex-col gap-6 rounded-2xl bg-white/80 dark:bg-slate-800/90 backdrop-blur-md p-6 shadow-sm shadow-violet-100 dark:shadow-none border border-slate-200 dark:border-slate-700",children:[t.jsx("h2",{className:"text-xl font-bold text-slate-900 dark:text-white",children:"Order Summary"}),x?t.jsxs(t.Fragment,{children:[t.jsx("div",{className:"flex flex-col gap-4 border-b border-slate-100 dark:border-slate-700 pb-6",children:t.jsxs("div",{className:"flex gap-4 items-center",children:[t.jsxs("div",{className:"relative shrink-0 overflow-hidden rounded-lg size-16 bg-violet-50 dark:bg-slate-700 flex items-center justify-center border border-violet-100 dark:border-slate-600",children:[t.jsx("span",{className:"absolute -top-2 -right-2 bg-slate-500 text-white text-[10px] font-bold px-1.5 py-0.5 rounded-full z-10",children:"1"}),t.jsx(r,{name:x.icon,className:`w-7 h-7 ${x.iconColor}`})]}),t.jsxs("div",{className:"flex-1 min-w-0",children:[t.jsxs("h3",{className:"font-bold text-slate-900 dark:text-white text-sm truncate",children:[x.name," ",x.nameBreak]}),t.jsx("p",{className:"text-xs text-slate-500 dark:text-gray-400",children:"Monthly Subscription"})]}),t.jsxs("p",{className:"font-medium text-slate-900 dark:text-white text-sm",children:["$",p.subtotal.toFixed(2)]})]})}),t.jsxs("div",{className:"flex flex-col gap-3 border-b border-slate-100 dar
1k:border-slate-700 pb-6",children:[t.jsxs("div",{className:"flex justify-between text-sm",children:[t.jsx("span",{className:"text-slate-500 dark:text-gray-400",children:"Subtotal"}),t.jsxs("span",{className:"font-medium text-slate-900 dark:text-white",children:["$",p.subtotal.toFixed(2)]})]}),t.jsxs("div",{className:"flex justify-between text-sm",children:[t.jsx("span",{className:"text-slate-500 dark:text-gray-400",children:"Shipping"}),t.jsx("span",{className:"text-slate-500 dark:text-gray-400 italic",children:"Free (Digital)"})]})]}),t.jsxs("div",{className:"flex justify-between items-baseline",children:[t.jsx("span",{className:"text-base font-bold text-slate-900 dark:text-white",children:"Total"}),t.jsxs("div",{className:"flex items-baseline gap-2",children:[t.jsx("span",{className:"text-xs text-slate-400 font-normal",children:"USD"}),t.jsxs("span",{className:"text-2xl font-extrabold text-slate-900 dark:text-white",children:["$",p.total.toFixed(2)]})]})]})]}):t.jsx("div",{className:"flex items-center justify-center py-8",children:t.jsx("div",{className:"animate-spin rounded-full h-6 w-6 border-b-2 border-primary"})})]}),t.jsxs("div",{className:"mt-6 rounded-xl border border-slate-200 dark:border-slate-700 p-4 flex gap-4 items-start bg-white/80 dark:bg-slate-800/90 backdrop-blur-md shadow-sm shadow-violet-50 dark:shadow-none",children:[t.jsx("div",{className:"rounded-full bg-violet-50 dark:bg-violet-900/30 p-2 text-primary shrink-0",children:t.jsx(r,{name:"mdi:check-decagram",className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-bold text-slate-900 dark:text-white",children:"Order Confirmed"}),t.jsxs("p",{className:"text-xs text-slate-500 dark:text-gray-400 mt-0.5",children:["Need help? Contact our"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"support team"}),"."]})]})]})]})]})})})]})}function x(){return e.useEffect(()=>{document.title="SocialNex TruLook - Confirmation"},[]),t.jsxs(t.Fragment,{children:[t.jsx(s,{}),t.jsx(c,{})]})}export{x as component};
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.