1import{r as e,j as t}from"./react-vendor-hAxFZxNQ.js";import{c as s,L as a,e as r,r as i,aL as l,aM as n,a as o,u as d,D as c}from"./main-C-ofR5-x.js";import{A as m,T as x}from"./TrulookFooter-Djwe21BL.js";import{T as h}from"./Checkout-BNQg60Aa.js";import{T as u}from"./Pricing-BCk8xUDA.js";import"./ui-DlHKYJvh.js";import"./AuditResults-B293QLHc.js";import"./chart-7aOwGZiB.js";import"./CartesianChart-DWvyS4YD.js";import"./card-DrHTqHqj.js";import"./pdfGenerator-In_lXAX2.js";import"./jspdf.es.min-WaCWwNmK.js";import"./business-autocomplete-D9qFndlt.js";import"./index-BGik27p8.js";import"./index-CZV6H2So.js";import"./Pricing-D6pAvcl0.js";function p(){const[r,i]=e.useState({});e.useEffect(()=>{const e=localStorage.getItem("audit_lead_info");if(e)try{const t=JSON.parse(e);i({email:t.email,phone:t.phone,firstName:t.firstName,lastName:t.lastName})}catch(t){}},[]);const l=[r.firstName,r.lastName].filter(Boolean).join(" ")||"";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-[800px] mx-auto",children:t.jsxs("div",{className:"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(s,{name:"mdi:check-circle",className:"text-6xl text-green-500 shrink-0 mt-1 w-14 h-14"}),t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsx("h1",{className:"text-3xl md:text-5xl font-extrabold tracking-tight text-slate-900 dark:text-white leading-tight",children:l?`Thank you, ${r.firstName}!`:"Thank you!"}),t.jsx("p",{className:"text-lg text-slate-500 dark:text-gray-400",children:"We've received your request"})]})]}),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:"We'll be in touch soon!"}),t.jsxs("p",{className:"text-slate-600 dark:text-slate-300 leading-relaxed",children:["Our team will c
1ontact you within ",t.jsx("span",{className:"font-semibold text-primary",children:"24 hours"})," to discuss your audit results and how we can help optimize your online presence.",r.email&&t.jsxs(t.Fragment,{children:[t.jsx("br",{}),t.jsx("br",{}),"We'll reach out to you at"," ",t.jsx("span",{className:"font-semibold text-slate-900 dark:text-white",children:r.email}),"."]})]})]})]}),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.jsxs("h2",{className:"text-xl font-bold text-slate-900 dark:text-white mb-6 flex items-center gap-2",children:[t.jsx(s,{name:"mdi:clock-outline",className:"w-6 h-6 text-primary"}),"What happens next?"]}),t.jsxs("div",{className:"space-y-4",children:[t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"shrink-0 w-8 h-8 bg-primary/10 text-primary rounded-full flex items-center justify-center font-bold",children:"1"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-slate-900 dark:text-white",children:"We review your audit"}),t.jsx("p",{className:"text-slate-600 dark:text-slate-400 text-sm",children:"Our team analyzes your website's performance and identifies opportunities."})]})]}),t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"shrink-0 w-8 h-8 bg-primary/10 text-primary rounded-full flex items-center justify-center font-bold",children:"2"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-slate-900 dark:text-white",children:"We reach out to you"}),t.jsx("p",{className:"text-slate-600 dark:text-slate-400 text-sm",children:"A team member will call or email you within 24 hours."})]})]}),t.jsxs("div",{className:"flex items-start gap-4",children:[t.jsx("div",{className:"shrink-0 w-8 h-8 bg-primary/10 text-primary rounded-full flex items-center justify-center font-bold",children:"3"}),t.jsxs("div",{children:[t.jsx("p",{className:"font-semibold text-slate-900 dark:text-white",children:"We create a plan together"}),t.jsx("p",{className:"text-slate-600 dark:text-slate-400 text-sm",children:"We'll discuss solutions tailored to your business needs."})]})]})]})]}),t.jsxs("div",{className:"flex flex-col sm:flex-row gap-4 items-center pt-4",children:[t.jsx(a,{to:"/trulook",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:"Run Another Audit"}),t.jsxs("a",{href:"mailto:[email protected]",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:[t.jsx(s,{name:"mdi:email-outline",className:"w-4 h-4"}),"Contact Us"]})]}),t.jsxs("div",{className:"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(s,{name:"mdi:email-outline",className:"w-5 h-5"})}),t.jsxs("div",{children:[t.jsx("p",{className:"text-sm font-bold text-slate-900 dark:text-white",children:"Questions?"}),t.jsxs("p",{className:"text-xs text-slate-500 dark:text-gray-400 mt-0.5",children:["Contact us at"," ",t.jsx("a",{href:"mailto:[email protected]",className:"text-primary hover:underline",children:"[email protected]"})]})]})]})]})})})]})}function f(){const s=e.useRef(!1);return e.useEffect(()=>{if(s.current)return;s.current=!0;let e=null;try{const t=localStorage.getItem("audit_lead_info");if(t){const s=JSON.parse(t);e=s.auditId||null,window.gtag&&window.gtag("set","user_data",{email:s.email||"",phone_number:s.phone||"",address:{first_name:s.firstName||"",last_name:s.lastName||""}})}}catch(t){}e&&fetch(r(`/api/v1/trulook/audits/${e}/notify-conversion/`),{method:"POST",headers:{"Content-Type":"application/json"}}).catch(e=>{}),window.location.href=i("/trulook/thank-you")},[]),t.jsx("div",{className:"min-h-screen flex items-center justify-center bg-background",children:t.jsxs("div",{className:"flex flex-col items-center gap-4",children:[t.jsx(l,{className:"w-8 h-8 animate-spin text-primary"}),t.jsx("p",{className:"text-muted-foreground text-sm",children:"Redirecting..."})]})})}const j=["checkout","pricing","billing","payment","confirmation","thank-you","optimize"];function g(){const{id:s}=n.useParams(),a=o(),{isAuthenticated:r,isLoading:l}=d(),g=j.includes(s);if(e.useEffect(()=>{document.title="SocialNex TruLook - Audit Results"},[]),e.useEffect(()=>{g||window.scrollTo(0,0)},[s,g]),g)return"checkout"===s?t.jsx(h,{}):"pricing"===s?t.jsx(u,{}):"thank-you"===s?t.jsx(p,{}):"optimize"===s?t.jsx(f,{}):null;const b=t.jsx(m,{auditId:s,onBack:()=>a({to:"/trulook"}),checkoutPath:i("/local/checkout")});return"undefined"==typeof window||l?b:r?t.jsx(c,{children:b}):t.jsxs(t.Fragment,{children:[b,t.jsx(x,{})]})}
1export{g 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.