PageSourceSearch

https://stagesenior.com/assets/contact-success-CKHETQnN.js

js stagesenior.com collected 2026-10-05 22:34:21 UTC 9,851 bytes, 1 lines download raw bytes

1import{br as $,b5 as q,aW as N,aN as w,bu as H,d0 as M,d1 as R,cX as W,cY as A,aO as e,aY as E,aZ as n,b6 as c,b7 as o,a_ as d,bn as _,aR as k,aS as C,aT as F,aU as f,aQ as T,bw as z}from"./index-Boj5kuTf.js";import{S as u}from"./skeleton-BfHTAPtG.js";import{u as I}from"./useResolveImageUrl-CupIodLR.js";import{M as D}from"./map-pin-Fd0PpH56.js";import{M as L}from"./mail-Bs2inDyM.js";import{H as O}from"./house-Bxui65-o.js";function Y({image:m,index:i}){const l=I(m.imageUrl);return l===null?e.jsx("div",{className:"aspect-square rounded-lg overflow-hidden","data-testid":`image-gallery-${i}`,children:e.jsx(u,{className:"w-full h-full"})}):l?e.jsx("div",{className:"aspect-square rounded-lg overflow-hidden shadow-[var(--shadow-soft)] hover:shadow-[var(--shadow-lift)] transition-shadow duration-300","data-testid":`image-gallery-${i}`,children:e.jsx("img",{src:l,alt:m.alt||`Gallery image ${i+1}`,className:"w-full h-full object-cover",loading:"lazy"})}):null}function X(){const m=$(),[,i]=q(),[l,S]=N.useState(!1),x=new URLSearchParams(m),h=x.get("txn")||x.get("transactionId"),r=x.get("community"),p=x.get("name"),{data:a,isLoading:g}=w({queryKey:[`/api/communities/${r}`],enabled:!!r}),{data:P=[]}=w({queryKey:[`/api/galleries?communityId=${a==null?void 0:a.id}&active=true`],enabled:!!(a!=null&&a.id)}),j=I(a==null?void 0:a.heroImageUrl),v=H({mutationFn:async s=>z("POST","/api/conversions",s),onSuccess:()=>{console.log("[Contact Success] Server-side conversion sent successfully")},onError:s=>{console.error("[Contact Success] Failed to send server-side conversion:",s)}});N.useEffect(()=>{if(!l){if(r&&g)return;const s=M(),t=R(),b=h||W(),U={transactionId:b,leadType:"lead_submit",value:25,currency:"USD",communityId:a==null?void 0:a.id,communityName:(a==null?void 0:a.name)||r||void 0,gclid:t.gclid,gbraid:t.gbraid,wbraid:t.wbraid,fbclid:t.fbclid,fbp:s.fbp,fbc:s.fbc,clientUserAgent:navigator.userAgent,eventSourceUrl:window.location.href};v.mutate(U),A({event_id:b,email:void 0,phone:void 0,care_level:void 0,metro:void 0,community_name:(a==null?void 0:a.name)||r||void 0,landing_page:window.location.pathname}),S(!0)}},[a,r,g,l,v,h]);const y=P.flatMap(s=>s.images||[]).slice(0,6);return e.jsxs("div",{className:"min-h-screen bg-[var(--aspen-cream)] dark:bg-[var(--midnight-slate)]",children:[e.jsx("div",{className:"relative h-[400px] md:h-[500px] bg-cover bg-center",style:{backgroundImage:j?`linear-gradient(to bottom, rgba(162, 180, 166, 0.85), rgba(45, 45, 47, 0.75)), url(${j})`:"linear-gradient(135deg, var(--foothill-sage), var(--deep-blue))"},children:e.jsx("div",{className:"absolute inset-0 flex items-center justify-center text-center px-4",children:e.jsxs("div",{className:"max-w-3xl",children:[e.jsx("div",{className:"mx-auto w-20 h-20 md:w-24 md:h-24 bg-white dark:bg-white/90 rounded-full flex items-center justify-center mb-6 shadow-[var(--shadow-lift)]",children:e.jsx(E,{className:"w-12 h-12 md:w-16 md:h-16 text-[var(--foothill-sage)]","data-testid":"icon-success"})}),g&&r?e.jsx(u,{className:"h-12 md:h-16 w-3/4 mx-auto mb-4 bg-white/20"}):e.jsxs("h1",{className:"text-3xl md:text-5xl font-bold text-white mb-4 leading-tight","data-testid":"text-hero-title",children:["Thank You",a!=null&&a.name?` for Your Interest in ${a.name}`:"","!"]}),p&&e.jsxs("p",{className:"text-xl md:text-2xl text-white/95 font-light","data-testid":"text-hero-greeting",children:["We appreciate you reaching out, ",p,"!"]})]})})}),e.jsx("div",{className:"max-w-6xl mx-auto px-4 py-12 md:py-16",children:e.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-8",children:[e.jsxs("div",{className:"lg:col-span-2 space-y-8",children:[e.jsxs(n,{children:[e.jsx(c,{children:e.jsx(o,{className:"text-2xl md:text-3xl","data-testid":"text-welcome-title",children:"We're Here to Help"})}),e.jsx(d,{children:e.jsxs("p",{className:"text-lg text-gray-700 dark:text-gray-300 leading-relaxed","data-testid":"text-welcome-message",children:["Thank you for reaching out to us",a!=null&&a.name?` about ${a.name}`:"",". We understand that finding the right senior living community is an important decision, and we're here to help answer your questions. A member of our caring team will be in touch with you shortly."]})})]}),e.jsxs(n,{children:[e.jsx(c,{children:e.jsx(o,{className:"text-2xl","data-testid":"text-next-steps-title",children:"What Happens Next"})}),e.jsx(d,{children:e.jsxs("div",{className:"space-y-6",children:[e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-[var(--foothill-sage)] text-white flex items-center justify-center text-xl font-bold",children:"1"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Personal Response"}),e.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"Within one business day, a knowledgeable team member will reach out to answer your questions and discuss your specific needs."})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-[var(--foothill-sage)] text-white flex items-center justify-center text-xl font-bold",children:"2"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Customized Information"}),e.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"We'll provide you with detailed information tailored to your situation, including care options, amenities, and pricing."})]})]}),e.jsxs("div",{className:"flex items-start gap-4",children:[e.jsx("div",{className:"flex-shrink-0 w-12 h-12 rounded-full bg-[var(--stage-copper)] text-white flex items-center justify-center text-xl font-bold",children:"3"}),e.jsxs("div",{children:[e.jsx("h3",{className:"text-xl font-semibold text-gray-900 dark:text-gray-100 mb-2",children:"Schedule a Visit"}),e.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"When you're ready, we'll invite you to tour our community and experience our warm, welcoming environment firsthand."})]})]})]})})]}),g&&r?e.jsxs(n,{children:[e.jsx(c,{children:e.jsx(o,{className:"text-2xl","data-testid":"text-gallery-title",children:e.jsx(u,{className:"h-8 w-64"})})}),e.jsx(d,{children:e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:[...Array(6)].map((s,t)=>e.jsx("div",{className:"aspect-square rounded-lg overflow-hidden","data-testid":`image-gallery-${t}`,children:e.jsx(u,{className:"w-full h-full"})},t))})})]}):y.length>0?e.jsxs(n,{children:[e.jsx(c,{children:e.jsxs(o,{className:"text-2xl","data-testid":"text-gallery-title",children:["Discover ",(a==null?void 0:a.name)||"Our Community"]})}),e.jsx(d,{children:e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 gap-4",children:y.map((s,t)=>e.jsx(Y,{image:s,index:t},s.id||t))})})]}):null]}),e.jsx("div",{className:"lg:col-span-1",children:e.jsxs("div",{className:"sticky top-24 space-y-6",children:[a&&e.jsxs(n,{className:"border-2 border-[var(--foothill-sage)]",children:[e.jsx(c,{children:e.jsx(o,{className:"text-xl","data-testid":"text-contact-title",children:"Contact Information"})}),e.jsxs(d,{className:"space-y-4",children:[e.jsx("div",{children:e.jsx("h3",{className:"font-semibold text-lg text-gray-900 dark:text-gray-100 mb-1","data-testid":"text-community-name",children:a.name})}),e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(D,{className:"w-5 h-5 text-[var(--stage-copper)] mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:"Address"}),e.jsxs("p",{className:"text-gray-900 dark:text-gray-100","data-testid":"text-community-address",children:[a.street&&e.jsxs(e.Fragment,{children:[a.street,e.jsx("br",{})]}),_(a)]})]})]}
1),a.phoneDisplay&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(k,{className:"w-5 h-5 text-[var(--stage-copper)] mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:"Phone"}),e.jsx("a",{href:C(a),className:"text-[var(--deep-blue)] hover:text-[var(--bright-blue)] hover:underline font-medium","data-testid":"link-community-phone",children:F(a)})]})]}),a.email&&e.jsxs("div",{className:"flex items-start gap-3",children:[e.jsx(L,{className:"w-5 h-5 text-[var(--stage-copper)] mt-0.5 flex-shrink-0"}),e.jsxs("div",{children:[e.jsx("p",{className:"text-sm font-medium text-gray-600 dark:text-gray-400 mb-1",children:"Email"}),e.jsx("a",{href:`mailto:${a.email}`,className:"text-[var(--deep-blue)] hover:text-[var(--bright-blue)] hover:underline font-medium break-all","data-testid":"link-community-email",children:a.email})]})]}),a.phoneDisplay&&e.jsx("div",{className:"pt-4",children:e.jsx(f,{asChild:!0,className:"w-full",size:"lg","data-testid":"button-call-now",children:e.jsxs("a",{href:C(a),children:[e.jsx(k,{className:"w-4 h-4 mr-2"}),"Call Us Anytime"]})})})]})]}),h&&e.jsx(n,{className:"bg-[var(--mist-white)] dark:bg-[var(--pine-shadow)]",children:e.jsxs(d,{className:"pt-6",children:[e.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-400 text-center mb-1",children:"Reference Number"}),e.jsx("p",{className:"font-mono font-semibold text-center text-gray-900 dark:text-gray-100","data-testid":"text-transaction-id",children:h})]})}),e.jsxs("div",{className:"space-y-3",children:[a&&e.jsxs(f,{onClick:()=>i(`/communities/${a.slug}`),className:"w-full gap-2",size:"lg",variant:"copper","data-testid":"button-view-community",children:["Explore Our Community",e.jsx(T,{className:"w-4 h-4"})]}),e.jsxs(f,{onClick:()=>i("/"),variant:"outline",className:"w-full gap-2",size:"lg","data-testid":"button-back-home",children:[e.jsx(O,{className:"w-4 h-4"}),"Back to Home"]})]})]})})]})})]})}export{X 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.