1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,728279,e=>{"use strict";var t=e.i(338778),s=e.i(130527),a=e.i(103528);let r={idle:"",connecting:"Connectingâ¦",active:"AI is on the line","director-dialing":"Director is being dialedâ¦",bridged:"Bridged",ended:"Call ended",error:"Could not connect"},l=/^\+[1-9]\d{7,14}$/;e.s(["default",0,function({slug:n,churchName:o}){let[i,c]=(0,s.useState)(""),[d,m]=(0,s.useState)(""),[x,h]=(0,s.useState)("idle"),[u,p]=(0,s.useState)(""),f=(0,s.useRef)(null),g=(0,s.useRef)(void 0);(0,s.useEffect)(()=>{g.current=new URLSearchParams(window.location.search).get("email_variant")??void 0},[]);let b=(0,s.useCallback)(async()=>{let t,s=(e=>{let t=e.trim();if(!t)return"Phone number is required.";let s=t.replace(/[\s\-().]/g,""),a=s.startsWith("+")?s:`+${s}`;return l.test(a)?"":"Enter a valid phone number (e.g. +14165551234 or 4165551234)."})(i);if(s)return void m(s);let r=(t=i.trim().replace(/[\s\-().]/g,"")).startsWith("+")?t:`+${t}`;h("connecting"),p(""),(0,a.fireDemoEvent)("demo_voice_call_started",{outreach_slug:n,...o?{church_name:o}:{},...g.current?{email_variant:g.current}:{}});try{let t=null;try{t=await navigator.mediaDevices.getUserMedia({audio:!0})}catch(t){let e=t instanceof Error?t.name:"";h("error"),p("NotAllowedError"===e||"PermissionDeniedError"===e?"Microphone permission was blocked. Click the lock icon in the address bar â Microphone â Allow, then retry.":"NotFoundError"===e||"DevicesNotFoundError"===e?"No microphone found. Plug one in (or close another app using it) and retry.":"Unable to access your microphone. Try a different browser or check your audio settings.");return}finally{t?.getTracks().forEach(e=>e.stop())}let s=await fetch("/api/livekit/token",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({prospectSlug:n,demoOverrides:{directorPhone:r}})});if(!s.ok){let e=(await s.json().catch(()=>({}))).error||`Server error ${s.status}`;if(429===s.status)throw Error("Demo limit reached (3 per day). Please call the demo number directly or book a live walkthrough.");throw Error(e)}let{token:l,wsUrl:i}=await s.json(),{Room:c,RoomEvent:d,Track:m}=await e.A(556707),x=new c({audioCaptureDefaults:{echoCancellation:!0,noiseSuppression:!0,autoGainControl:!0,channelCount:1}});f.current=x,x.on(d.Connected,()=>{h("active")}),x.on(d.Disconnected,()=>{h("ended"),f.current=null,(0,a.fireDemoEvent)("demo_voice_call_completed",{outreach_slug:n,...o?{church_name:o}:{},...g.current?{email_variant:g.current}:{}})}),x.on(d.TrackSubscribed,e=>{if(e.kind===m.Kind.Audio){let t=e.attach();t.style.display="none",t.autoplay=!0,document.body.appendChild(t)}}),x.on(d.TrackUnsubscribed,e=>{e.kind===m.Kind.Audio&&e.detach().forEach(e=>e.remove())}),x.on(d.RoomMetadataChanged,e=>{try{let t=JSON.parse(e);"dialing"===t.transfer_stage&&h("director-dialing"),"bridged"===t.transfer_stage&&h("bridged")}catch{}}),await x.connect(i,l),await x.localParticipant.setMicrophoneEnabled(!0),h("active")}catch(t){let e=t instanceof Error?t.message:"Unknown error. Please try again.";h("error"),p(e)}},[i,n,o]),y=(0,s.useCallback)(async()=>{f.current&&(await f.current.disconnect(),f.current=null),h("ended")},[]),j=(0,s.useCallback)(()=>{h("idle"),c(""),m(""),p("")},[]),v="active"===x||"director-dialing"===x||"bridged"===x,w="connecting"===x;return(0,t.jsxs)("section",{"aria-label":"Live director transfer demo",className:"mt-8 rounded-xl border border-stone-200 bg-white p-6 shadow-sm",children:[(0,t.jsx)("h3",{className:"mb-1 text-base font-semibold text-stone-900",children:"Experience the live director transfer"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-stone-500",children:"Enter your phone number below. Our AI will answer in your browser, then bridge to your phone â exactly as your families would experience it when a director is on call."}),"idle"===x||"error"===x?(0,t.jsxs)("form",{onSubmit:e=>{e.preventDefault(),b()},className:"flex flex-col gap-3 sm:flex-row sm:items-end",noValidate:!0,children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)("label",{htmlFor:"demo-phone",className:"mb-1 block text-xs font-medium text-stone-600",children:"Your phone number (E.164 format or 10 digits)"}),(0,t.jsx)("input",{id:"demo-phone",type:"tel",autoComplete:"tel",placeholder:"+1 416 555 0100",value:i,onChange:e=>{c(e.target.value),d&&m("")},disabled:w,className:`w-full rounded-lg border px-3 py-2 text-sm outline-none transition 2 focus:ring-2 focus:ring-stone-400 3 ${d?"border-red-400":"border-stone-300"} 4 disabled:opacity-50`}),d&&(0,t.jsx)("p",{role:"alert",className:"mt-1 text-xs text-red-600",children:d})]}),(0,t.jsx)("button",{type:"submit",disabled:w,className:"flex items-center gap-2 rounded-lg bg-stone-900 px-4 py-2 text-sm\n font-medium text-white transition hover:bg-stone-800\n disabled:opacity-50 sm:mb-0",children:w?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"inline-block h-3.5 w-3.5 animate-spin rounded-full\n border-2 border-white border-t-transparent","aria-hidden":"true"}),"Connectingâ¦"]}):"Try the live director transfer with your own phone number"})]}):null,"idle"!==x&&(0,t.jsxs)("div",{className:"mt-4 flex items-center gap-3",children:[("connecting"===x||v)&&(0,t.jsx)("span",{className:"inline-block h-2.5 w-2.5 animate-pulse rounded-full bg-green-500","aria-hidden":"true"}),("ended"===x||"error"===x)&&(0,t.jsx)("span",{className:"inline-block h-2.5 w-2.5 rounded-full bg-stone-400","aria-hidden":"true"}),(0,t.jsx)("span",{role:"status","aria-live":"polite",className:`text-sm font-medium ${"error"===x?"text-red-600":"bridged"===x?"text-green-700":"text-stone-700"}`,children:r[x]}),"error"===x&&u&&(0,t.jsx)("span",{className:"text-sm text-stone-500",children:u})]}),v&&(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)("button",{onClick:y,className:"rounded-lg border border-red-300 bg-red-50 px-3 py-1.5 text-xs\n font-medium text-red-700 transition hover:bg-red-100",children:"End call"})}),("ended"===x||"error"===x)&&(0,t.jsx)("button",{onClick:j,className:"mt-3 text-xs text-stone-500 underline hover:text-stone-700",children:"Try again"}),(0,t.jsx)("p",{className:"mt-4 text-xs text-stone-400",children:"By entering your number you agree to re
4ceive a single demo call. Max 3 demos per day per IP. Call is automatically ended after 10 minutes."})]})}])},449246,e=>{"use strict";var t=e.i(338778),s=e.i(130527),a=e.i(655613),r=e.i(735021),l=e.i(289065),n=e.i(771008),o=e.i(937881);function i({sentinelRef:e,onTalk:a,onAsk:r,engaged:l}){let[n,o]=(0,s.useState)(!1),c=(0,s.useRef)(null);return((0,s.useEffect)(()=>{let t=e.current;if(!t||"u"<typeof IntersectionObserver){let e=()=>{window.scrollY>400&&o(!0)};return window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)}let s=new IntersectionObserver(([e])=>{o(!e.isIntersecting)},{rootMargin:"0px",threshold:0});return s.observe(t),c.current=s,()=>s.disconnect()},[e]),n)?(0,t.jsx)("div",{role:"region","aria-label":"Try this church's AI",className:"pointer-events-none fixed inset-x-0 bottom-0 z-[99990] flex justify-center px-4",style:{paddingBottom:"max(1rem, env(safe-area-inset-bottom))"},children:(0,t.jsxs)("div",{className:["pointer-events-auto flex items-center gap-1 rounded-full border border-white/10 bg-[#1B365D] p-1 shadow-2xl motion-safe:transition-all motion-safe:duration-300",l?"opacity-80":"opacity-100"].join(" "),children:[(0,t.jsx)("button",{type:"button",onClick:a,className:"rounded-full px-4 py-2.5 text-sm font-semibold text-white motion-safe:transition-colors hover:bg-white/10 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#D4AF37]",children:"ð Talk to AI"}),(0,t.jsx)("span",{"aria-hidden":"true",className:"text-white/30",children:"·"}),(0,t.jsx)("button",{type:"button",onClick:r,className:"rounded-full px-4 py-2.5 text-sm font-semibold text-[#D4AF37] motion-safe:transition-colors hover:bg-white/10 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#D4AF37]",children:"ð¬ Ask it"})]})}):null}var c=e.i(154626);function d(){return(0,t.jsx)("section",{"aria-label":"How this AI assistant stays safe",className:"mx-auto max-w-3xl px-6 pb-10",children:(0,t.jsxs)("div",{className:"rounded-2xl border border-stone-200 bg-[#FEFCF8] p-5 text-sm leading-relaxed text-[#1B365D] sm:p-6",children:[(0,t.jsxs)("p",{className:"mb-2",children:["This assistant never plays pastor â for anything pastoral or urgent it hands the person to ",(0,t.jsx)("strong",{children:"you"}),", with their name and number. You stay in the loop."]}),(0,t.jsxs)("p",{className:"text-stone-600",children:["Built by an engineer (15 years) and pastor (15 years)."," ",(0,t.jsx)("a",{href:`${c.brand.siteUrl}/ai-safety`,className:"underline underline-offset-2 hover:opacity-70",children:"How our AI stays safe"})," ","·"," ",(0,t.jsx)("a",{href:`${c.brand.siteUrl}/hear`,className:"underline underline-offset-2 hover:opacity-70",children:"HEAR protocol"})]})]})})}var m=e.i(103528);let x={"--brand-primary":"#1B365D","--brand-primary-dark":"#0f2240","--brand-accent":"#D4AF37","--brand-accent-dark":"#b8960f","--brand-foreground":"#1c1917","--brand-on-primary":"#ffffff","--brand-surface":"#FEFCF8","--brand-surface-alt":"#f5f0e8"};function h({churchId:e,churchSlug:c,churchName:u,demoSegment:p,premium:f,church:g,sampleCallAudioUrl:b,hideFreeOffer:y=!0}){let j,v,w,N,k,C=f?.plan==="cwa_demo_prospect"&&f?.status==="preview"&&f?.hide_free_offer!=="true"&&f?.hide_free_offer!==!0,S=(0,s.useRef)(null),[$,I]=(0,s.use
4State)(!1),[A,_]=(0,s.useState)(!1),[L,E]=(0,s.useState)(!1),[D,T]=(0,s.useState)(!1),[F,P]=(0,s.useState)("idle"),[M,B]=(0,s.useState)(""),[R,H]=(0,s.useState)(null),W=(v=(f.custom_name||g.name||"your church").trim(),w=function(e,t){let s=e.custom_hours||t.working_hours;if(!s)return null;let a=s.Sunday;if(Array.isArray(a)&&a.length&&a[0])return String(a[0]);let r=Object.entries(s).find(([,e])=>Array.isArray(e)&&e.length);if(r){let[e,t]=r,s=Array.isArray(t)?t[0]:t;return s?`${e} ${s}`:null}return null}(f,g),N=(g.address||g.street||"").trim()||null,(j=w&&N?`We worship ${w} at ${N}.`:w?`We worship ${w}.`:N?`You can find us at ${N}.`:null)?`Hi, I'm ${v}'s AI assistant. Someone recently asked about your services â here's what I told them: "${j}" Ask me anything else about ${v}.`:`Hi, I'm ${v}'s AI assistant. I already know about ${v} from your public info â ask me anything a first-time visitor might want to know.`),O=(k=(u||"us").trim(),[`Directions to ${k}`,"Submit a prayer request","Email me your service times","Tell me about your beliefs"]),z=`cwa-demo-banner-dismissed:${c}`;s.default.useEffect(()=>{try{"1"===window.sessionStorage.getItem(z)&&T(!0)}catch{}},[z]);let q=(0,s.useCallback)(()=>{T(!0);try{window.sessionStorage.setItem(z,"1")}catch{}},[z]),U=(0,s.useCallback)(()=>{E(!0),(0,m.fireDemoEvent)("demo_chat_message",{outreach_slug:c,church_name:u})},[c,u]),G=(0,s.useCallback)(()=>{(0,m.fireDemoEvent)("demo_voice_call_started",{outreach_slug:c,church_name:u})},[c,u]),Y=(0,s.useCallback)(()=>{(0,m.fireDemoEvent)("demo_voice_call_completed",{outreach_slug:c,church_name:u})},[c,u]),V=(0,s.useCallback)(()=>{I(!0),_(!1),E(!0)},[]),K=(0,s.useCallback)(()=>{if(E(!0),"u"<typeof document)return;let e=document.querySelector('button[aria-label^="Open "]');e&&(e.click(),e.scrollIntoView({block:"nearest"}))},[]),J=(0,s.useCallback)(()=>{P("form"),H(null),(0,m.fireDemoEvent)("demo_claim_clicked",{outreach_slug:c,church_name:u,properties:{segment:p}})},[c,u,p]),Q=(0,s.useCallback)(()=>{(0,m.fireDemoEvent)("demo_book_call_clicked",{outreach_slug:c,church_name:u,properties:{segment:p}}),(0,m.fireDemoEvent)("demo_upgrade_clicked",{outreach_slug:c,church_name:u,properties:{segment:p,cta_target:"book_call"}})},[c,u,p]),Z=(0,s.useCallback)(async e=>{e.preventDefault();let t=M.trim();if(!t||!t.includes("@"))return void H("Please enter a valid email.");P("submitting"),H(null),(0,m.fireDemoEvent)("demo_checkout_started",{outreach_slug:c,church_name:u,properties:{segment:p}});try{let e=await fetch("/api/demo/claim",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({demo_slug:c,email:t})});if(!e.ok){P("error"),H(429===e.status?"Too many attempts â please wait a minute and try again.":"Something went wrong. Please try again, or email [email protected].");return}P("done")}catch{P("error"),H("Network error. Please try again.")}},[M,c,u,p]);return s.default.useEffect(()=>{let e=e=>{e.target?.closest('a[href="#demo-try"]')&&(e.preventDefault(),V())};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)},[V]),(0,t.jsxs)("div",{style:x,children:[!D&&(0,t.jsxs)("div",{className:"sticky top-0 z-40 flex items-center justify-center gap-3 bg-[#D4AF37] px-4 py-2 text-center text-sm font-medium text-[#1B365D]",children:[(0,t.jsxs)("span",{children:["You're viewing a live demo of ",u," â the AI already knows your church."]}),(0,t.jsx)("button",{type:"button",onClick:q,"aria-label":"Dismiss demo banner",className:"rounded-full px-2 py-0.5 text-[#1B365D]/70 hover:bg-black/5 hover:text-[#1B365D] focus-visible:outline-2 focus-visible:outline-offset-1",children:"â"})]}),(0,t.jsx)("div",{ref:S,"aria-hidden":"true",className:"h-px w-full"}),(0,t.jsx)(d,{}),(0,t.jsx)(o.CallClipSet,{surfaceContext:"demo_page",churchSlug:c,churchName:u}),C&&(0,t.jsxs)("section",{className:"mx-auto max-w-md px-6 pb-16 text-center",children:[!y&&"idle"===F&&(0,t.jsx)("button",{type:"button",onClick:J,className:"mb-5 inline-flex items-center gap-2 rounded-full bg-[#1B365D] px-7 py-3.5 text-base font-semibold text-white shadow-lg motion-safe:transition-transform hover:scale-[1.02] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#D4AF37]",children:"Claim 3 months free"}),"idle"===F&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("a",{href:"https://api.leadconnectorhq.com/widget/booking/kNtY2HRzgmd36gCMD5rZ",target:"_blank",rel:"noopener noreferrer",onClick:Q,className:y?"inline-flex items-center gap-2 rounded-full bg-[#1B365
4D] px-7 py-3.5 text-base font-semibold text-white shadow-lg motion-safe:transition-transform hover:scale-[1.02] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#D4AF37]":"mt-1.5 inline-flex items-center gap-1.5 text-sm font-semibold text-[#1B365D] underline decoration-[#D4AF37] decoration-2 underline-offset-4 hover:text-[#0f2240] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#D4AF37]",children:["Talk to the founder",(0,t.jsx)("span",{"aria-hidden":"true",children:"â"})]}),(0,t.jsx)("p",{className:"mt-3 text-sm text-stone-600",children:"John, the founder, is glad to walk the pastor, admin, or board through it â a relaxed 30-minute call, no pressure."})]}),("form"===F||"submitting"===F||"error"===F)&&(0,t.jsxs)("form",{onSubmit:Z,className:"mx-auto flex max-w-sm flex-col gap-3",children:[(0,t.jsx)("p",{className:"text-sm font-medium text-stone-700",children:"Where should we send your link? 3 months free, no card."}),(0,t.jsx)("input",{type:"email",required:!0,autoFocus:!0,value:M,onChange:e=>B(e.target.value),placeholder:"[email protected]","aria-label":"Your email",disabled:"submitting"===F,className:"w-full rounded-xl border border-stone-300 px-4 py-3 text-base text-stone-900 focus-visible:border-[#1B365D] focus-visible:outline-2 focus-visible:outline-offset-1 focus-visible:outline-[#D4AF37] disabled:opacity-60"}),(0,t.jsx)("button",{type:"submit",disabled:"submitting"===F,className:"inline-flex items-center justify-center gap-2 rounded-full bg-[#1B365D] px-7 py-3.5 text-base font-semibold text-white shadow-lg motion-safe:transition-transform hover:scale-[1.02] focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-[#D4AF37] disabled:cursor-not-allowed disabled:opacity-70",children:"submitting"===F?"Setting it upâ¦":"Claim 3 months free"}),R&&(0,t.jsx)("p",{className:"text-sm text-red-600",role:"alert",children:R})]}),"done"===F&&(0,t.jsxs)("div",{role:"status",className:"mx-auto max-w-sm rounded-2xl border border-stone-200 bg-white p-6 shadow-sm",children:[(0,t.jsx)("p",{className:"text-lg font-semibold text-[#1B365D]",children:"Check your email"}),(0,t.jsxs)("p",{className:"mt-2 text-sm text-stone-600",children:["Your AI is being set up for ",u,". We sent a link to open your dashboard and go live â 3 months free, no card needed."]})]})]}),(0,t.jsx)(i,{sentinelRef:S,onTalk:V,onAsk:K,engaged:L}),(0,t.jsx)(r.BrandSalesChatbot,{brand:"playground-church",prospectChurchId:e,title:`${u} AI Assistant`,initialGreeting:W,suggestedPrompts:O,position:"bottom-right",defaultOpen:!0,inline:!1,onFirstMessage:U}),$&&(0,t.jsxs)(a.Modal,{onClose:()=>I(!1),titleId:"demo-voice-modal-title",disableBackdropClose:!0,size:"md",children:[(0,t.jsxs)("h2",{id:"demo-voice-modal-title",className:"mb-2 text-lg font-bold text-[#1B365D]",children:["Hear ",u,"'s AI answer the phone"]}),b?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"mb-4 text-sm text-stone-600",children:["Here's ",u,"'s AI answering a real caller â it already knows your church. Tap play."]}),(0,t.jsx)(n.SampleCallPlayer,{audioUrl:b,churchName:u,churchSlug:c,onTalkLive:()=>_(!0)}),A&&(0,t.jsxs)("div",{className:"mt-5 border-t border-stone-100 pt-5",children:[(0,t.jsx)("p",{className:"mb-3 text-sm font-medium text-[#1B365D]",children:"Talk to it live from your browser"}),(0,t.jsx)("p",{className:"mb-4 text-sm text-stone-600",children:"Calls are capped at 3 minutes."}),(0,t.jsx)(l.WebRTCDemoButton,{prospectSlug:c,businessName:u,onConnected:G,onDisconnected:Y})]})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"mb-5 text-sm text-stone-600",children:["Talk to ",u,"'s AI right from your browser â it already knows your church. Calls are capped at 3 minutes."]}),(0,t.jsx)(l.WebRTCDemoButton,{prospectSlug:c,businessName:u,onConnected:G,onDisconnected:Y})]}),(0,t.jsx)("button",{type:"button",onClick:()=>I(!1),className:"mt-3 w-full rounded-xl border border-stone-200 px-5 py-2.5 text-sm font-medium text-stone-600 hover:bg-stone-50",children:"Close"})]})]})}e.s(["DemoExperience",0,h,"default",0,h],449246)},427071,e=>{"use strict";var t=e.i(338778),s=e.i(130527),a=e.i(82570),r=e.i(624979),l=e.i(511727),n=e.i(837338),o=e.i(929811),i=e.i(764932),c=e.i(684301),d=e.i(408328),m=e.i(672400);function x({config:e,navLinks:s,scrolled:a,menuOpen:r,setMenuOpen:l,scrollTo:h}){let u=e.theme,p=(0,n.getAiLanguageCtas)(e);return(0,t.jsx)("nav",{className:`fixed inset-x-0 z-50 transition-shadow ${a?"shadow-md":"shadow-sm"}
4`,style:{top:"var(--re-callbar-h, 0px)"},children:(0,t.jsxs)("div",{className:"re-glass border-b",style:{borderColor:u.sand},children:[(0,t.jsxs)("div",{className:"mx-auto flex max-w-7xl items-center justify-between gap-x-5 px-4 py-3 sm:px-6 xl:max-w-[84rem]",children:[(0,t.jsxs)("button",{onClick:()=>h("top"),className:"re-foc flex shrink-0 items-center gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-xl",style:{background:`linear-gradient(135deg, ${u.accent}, ${u.accentDark})`},children:(0,t.jsx)(d.Icon,{k:"home",className:"h-4 w-4 text-white"})}),(0,t.jsx)("span",{className:"font-serif text-lg font-bold tracking-tight",style:{color:u.ink},children:e.brandName})]}),(0,t.jsx)("div",{className:"hidden items-center gap-5 whitespace-nowrap text-sm font-medium xl:flex",style:{color:u.slate},children:s.map(e=>e.menu?(0,t.jsx)(m.NavDropdown,{label:e.label,items:e.menu,theme:u,variant:"home",onScrollTo:h},e.label):e.href?(0,t.jsx)(i.HashAwareNavLink,{href:e.href,className:"re-navlink re-foc transition-colors hover:text-[var(--re-accent)]",children:e.label},e.label):(0,t.jsx)("button",{onClick:()=>h(e.id),className:"re-navlink re-foc transition-colors hover:text-[var(--re-accent)]",children:e.label},e.label))}),(0,t.jsxs)("div",{className:"flex shrink-0 items-center gap-2 whitespace-nowrap",children:[(0,t.jsxs)("a",{href:`tel:${e.phoneDirect}`,className:"re-foc hidden items-center gap-1.5 text-sm font-semibold sm:inline-flex",style:{color:u.ink},children:[(0,t.jsx)(d.Icon,{k:"phone",className:"h-4 w-4",style:{color:u.accent}}),e.phoneDirect]}),(0,t.jsxs)(o.default,{href:(0,n.reSiteHref)(e,"/my-homes"),className:"re-foc hidden items-center gap-1.5 text-sm font-semibold xl:inline-flex",style:{color:u.ink},"aria-label":"Saved homes â sign in to see your favourites and searches",children:[(0,t.jsx)(d.Icon,{k:"heart",className:"h-4 w-4",style:{color:u.accent}}),"Saved homes"]}),(0,t.jsx)("button",{onClick:()=>h("home-value"),className:"re-btn-primary re-foc hidden rounded-xl px-4 py-2.5 text-sm font-semibold sm:inline-flex",children:"What's my Home worth"}),(0,t.jsx)("button",{onClick:()=>l(e=>!e),className:"re-foc xl:hidden","aria-label":"Menu",style:{color:u.ink},children:(0,t.jsx)(d.Icon,{k:r?"close":"menu",className:"h-6 w-6"})})]})]}),r&&(0,t.jsx)("div",{className:"max-h-[calc(100dvh-60px-var(--re-callbar-h,0px))] overflow-y-auto overscroll-contain border-t px-4 py-3 xl:hidden",style:{borderColor:u.sand,background:u.cream},children:(0,t.jsxs)("div",{className:"flex flex-col gap-1",children:[s.map(e=>e.menu?(0,t.jsxs)("div",{className:"py-1",children:[(0,t.jsx)("p",{className:"px-3 pb-1 pt-1 text-[11px] font-semibold uppercase tracking-[0.14em]",style:{color:u.slate},children:e.label}),(0,t.jsx)("div",{className:"flex flex-col gap-0.5",children:e.menu.map(e=>e.href?(0,t.jsx)(i.HashAwareNavLink,{href:e.href,className:"re-foc rounded-lg py-2.5 pl-6 pr-3 text-left text-sm font-medium",style:{color:u.ink},children:e.label},e.label):(0,t.jsx)("button",{onClick:()=>h(e.id),className:"re-foc rounded-lg py-2.5 pl-6 pr-3 text-left text-sm font-medium",style:{color:u.ink},children:e.label},e.label))})]},e.label):e.href?(0,t.jsx)(o.default,{href:e.href,className:"re-foc rounded-lg px-3 py-2.5 text-left text-sm font-medium",style:{color:u.ink},children:e.label},e.label):(0,t.jsx)("button",{onClick:()=>h(e.id),className:"re-foc rounded-lg px-3 py-2.5 text-left text-sm font-medium",style:{color:u.ink},children:e.label},e.label)),(0,t.jsxs)(o.default,{href:(0,n.reSiteHref)(e,"/my-homes"),className:"re-foc flex items-center gap-2 rounded-lg px-3 py-2.5 text-left text-sm font-semibold",style:{color:u.ink},children:[(0,t.jsx)(d.Icon,{k:"heart",className:"h-4 w-4",style:{color:u.accent}}),"Saved homes"]}),p.map(s=>e.voiceBrowserCall?(0,t.jsx)(c.AiCallCta,{config:e,cta:s,className:"px-3 py-1.5"},s.lang):(0,t.jsxs)("a",{href:s.href,className:"re-foc rounded-lg px-3 py-2.5 text-left text-sm font-medium",style:{color:u.accent},"aria-label":`${s.label} â call ${s.phone}`,children:[s.label," ",(0,t.jsx)("span",{className:"font-bold tabular-nums",children:s.phone})]},s.lang))]})})]})})}let h=[{id:"listings",label:"Listings"},{id:"resources",label:"Guides"},{id:"reviews",label:"Reviews"},{id:"contact",label:"Contact"}];function u({config:e,scrollTo:a}
4){let r=e.theme,[l,n]=(0,s.useState)(!1),[o,i]=(0,s.useState)(null);return(0,s.useEffect)(()=>{let e=document.getElementById("top");if(!e||!("IntersectionObserver"in window)){let e=requestAnimationFrame(()=>n(!0));return()=>cancelAnimationFrame(e)}let t=new IntersectionObserver(([e])=>n(!e.isIntersecting),{rootMargin:"-72px 0px 0px 0px",threshold:0});return t.observe(e),()=>t.disconnect()},[]),(0,s.useEffect)(()=>{if(!("IntersectionObserver"in window))return;let e=h.map(e=>document.getElementById(e.id)).filter(e=>!!e);if(0===e.length)return;let t=new IntersectionObserver(e=>{let t=e.filter(e=>e.isIntersecting).sort((e,t)=>t.intersectionRatio-e.intersectionRatio)[0];t&&i(t.target.id)},{rootMargin:"-140px 0px -55% 0px",threshold:[0,.25,.5,.75,1]});return e.forEach(e=>t.observe(e)),()=>t.disconnect()},[]),(0,t.jsx)("nav",{"aria-label":"Jump to a section","data-testid":"re-home-mini-nav",className:`fixed inset-x-0 top-[60px] z-30 transition-all duration-300 motion-reduce:transition-none ${l?"translate-y-0 opacity-100":"pointer-events-none -translate-y-2 opacity-0"}`,"aria-hidden":!l,children:(0,t.jsx)("div",{className:"re-glass border-b",style:{borderColor:r.sand},children:(0,t.jsx)("div",{className:"mx-auto flex max-w-7xl items-center gap-1 overflow-x-auto px-3 py-2 sm:px-6",children:h.map(e=>{let s=o===e.id;return(0,t.jsx)("button",{type:"button",onClick:()=>a(e.id),"aria-current":s?"true":void 0,tabIndex:l?void 0:-1,className:"re-foc shrink-0 whitespace-nowrap rounded-lg px-3 py-1.5 text-sm font-semibold transition-colors",style:{color:s?r.accent:r.slate,background:s?`${r.accent}14`:"transparent"},children:e.label},e.id)})})})})}var p=e.i(186070);function f({config:e,heroSlides:s,heroIndex:a,setHeroIndex:r,setHeroPaused:l,heroSearch:n,setHeroSearch:o,submitHeroSearch:i}){let c=e.theme;return(0,t.jsxs)("header",{id:"top",className:"relative overflow-hidden",onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onFocusCapture:()=>l(!0),onBlurCapture:()=>l(!1),children:[(0,t.jsxs)("div",{className:"absolute inset-0",children:[s.map((e,s)=>(0,t.jsx)(p.default,{src:e,alt:"",fill:!0,sizes:"100vw",priority:0===s,fetchPriority:0===s?"high":void 0,"aria-hidden":s!==a||void 0,className:`re-hero-img object-cover transition-opacity duration-1000 ${s===a?"opacity-100":"opacity-0"}`},e)),(0,t.jsx)("div",{className:"absolute inset-0 hidden lg:block",style:{background:"linear-gradient(90deg, rgba(22,15,13,.86) 0%, rgba(22,15,13,.55) 32%, rgba(22,15,13,.14) 60%, rgba(22,15,13,0) 82%),linear-gradient(180deg, rgba(22,15,13,0) 62%, rgba(22,15,13,.32) 100%),linear-gradient(120deg, rgba(150,12,30,.16), rgba(150,12,30,0) 55%)"}}),(0,t.jsx)("div",{className:"absolute inset-0 lg:hidden",style:{background:"linear-gradient(180deg, rgba(22,15,13,.62) 0%, rgba(22,15,13,.5) 42%, rgba(22,15,13,.66) 100%),linear-gradient(120deg, rgba(150,12,30,.13), rgba(150,12,30,0) 60%)"}})]}),(0,t.jsx)("div",{className:"relative mx-auto max-w-7xl px-4 py-10 sm:px-6 sm:py-14 lg:py-16",children:(0,t.jsxs)("div",{className:"max-w-2xl",children:[(0,t.jsxs)("p",{className:"mb-4 inline-flex items-center gap-2 rounded-full px-4 py-1.5 text-xs font-semibold uppercase tracking-[0.18em] text-white re-glass-dark",children:[(0,t.jsx)("span",{className:"h-1.5 w-1.5 rounded-full",style:{background:c.brass}}),e.region]}),(0,t.jsx)("h1",{className:"font-serif text-4xl font-bold leading-[1.08] tracking-tight text-white sm:text-5xl lg:text-6xl",children:e.heroHeadline}),(0,t.jsx)("p",{className:"mt-5 max-w-xl text-lg leading-relaxed text-white/85",children:e.heroSubhead}),(0,t.jsx)("div",{className:"re-glass mt-6 rounded-2xl border p-3 shadow-xl sm:p-4",style:{borderColor:"rgba(255,255,255,.4)"},children:(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,t.jsxs)("div",{className:"flex flex-1 items-center gap-2 rounded-xl bg-white px-4 py-3",style:{border:`1px solid ${c.sand}`},children:[(0,t.jsx)(d.Icon,{k:"search",className:"h-5 w-5 shrink-0",style:{color:c.accent}}),(0,t.jsx)("input",{className:"re-input w-full bg-transparent text-sm outline-none",placeholder:"Search Woodstock, Tillsonburg, Ingersollâ¦","aria-label":"Search listings",style:{color:c.ink},value:n,onChange:e=>o(e.target.value),onKeyDown:e=>{"Enter"===e.key&&(e.preventDefault(),i())}})]}),(0,t.jsx)("button",{onClick:i,className:"re-btn-primary re-foc rounded-xl px-6 py-3 text-sm font-bold",children:"Search homes"})]})}),(0,t.jsx)("div",{className:"re-safe-bottom mt-7 flex flex-wrap gap-x-8 gap-y-3 text-white/85",children:[e.socialProof.yearsExperience,e.socialProof.reviewCount,e.socialProof.topAgent].map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-2 text-sm",children:[(0,t.jsx)(d.Icon,{k:"star",className:"h-4 w-4",style:{color:c.brass}}),e]},e))})]})}),s.length>1&&(0,t.jsx)("div",{className:"absolute bottom-5 left-1/2 z-10 flex -translate-x-1/2 gap-2",children:s.map((e,s)=>(0,t.jsx)("button",{type:"button",onClick:()=>r(s),"aria-label":`Hero image ${s+1}`,"aria-current":s===a?"true":void 0,className:"re-foc flex h-6 w-6 items-center justify-center",children:(0,t.jsx)("span",{"aria-hidden":"true",className:"block h-2 rounded-full transition-all",style:{width:s===a?22:8,background:s===a?"#fff":"rgba(255,255,255,.5)"}})}
4,s))})]})}var g=e.i(613137);function b({items:e,theme:a}){let r=(0,s.useRef)(null),[l,n]=(0,s.useState)(()=>e.map(()=>0)),o=(0,s.useRef)(!1);return(0,s.useEffect)(()=>{let t=r.current;if(!t)return;if(window.matchMedia&&window.matchMedia("(prefers-reduced-motion: reduce)").matches||"u"<typeof IntersectionObserver)return void n(e.map(e=>e.value));let s=new IntersectionObserver(t=>{if(o.current||!t.some(e=>e.isIntersecting))return;o.current=!0,s.disconnect();let a=performance.now(),r=t=>{let s=Math.min(1,(t-a)/1300),l=1-Math.pow(1-s,3);n(e.map(e=>Math.round(e.value*l))),s<1&&requestAnimationFrame(r)};requestAnimationFrame(r)},{threshold:.35});return s.observe(t),()=>s.disconnect()},[e]),(0,t.jsx)("div",{ref:r,className:"mx-auto grid max-w-7xl grid-cols-2 gap-6 px-4 py-10 sm:px-6 md:grid-cols-4",children:e.map((e,s)=>(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsxs)("p",{className:"font-serif text-3xl font-bold tabular-nums sm:text-4xl",style:{color:a.accent},children:[e.prefix??"",l[s]??0,e.suffix??""]}),(0,t.jsx)("p",{className:"mt-1 text-xs font-medium uppercase tracking-wide",style:{color:a.slate},children:e.label})]},e.label))})}function y({config:e}){let s=e.theme;return(0,t.jsx)("section",{className:"border-b",style:{background:"#fff",borderColor:s.sand},children:(0,t.jsx)(b,{theme:s,items:e.homeStats??[{value:25,suffix:"+",label:"Years serving Oxford County"},{value:60,suffix:"+",label:"Five-star reviews"},{value:e.areasServed.length,label:"Communities served"},{value:2,suffix:"-yr",label:"Top-ranked streak (Rate-My-Agent)"}]})})}function j({config:e}){let s=e.theme;return e.badges&&0!==e.badges.length?(0,t.jsx)("section",{className:"px-4 py-8 sm:px-6",style:{background:"#fff",borderBottom:`1px solid ${s.sand}`},children:(0,t.jsx)("div",{className:"mx-auto flex max-w-7xl flex-wrap items-center justify-center gap-x-10 gap-y-6",children:e.badges.map(e=>{let s=(0,t.jsx)(p.default,{src:e.image,alt:e.label,title:e.label,width:240,height:64,loading:"lazy",sizes:"160px",className:"h-12 w-auto object-contain sm:h-16"});return e.url?(0,t.jsx)("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",className:"re-foc",children:s},e.label):(0,t.jsx)("span",{children:s},e.label)})})}):null}var v=e.i(988620);function w({config:e}){let s=e.theme;return(0,t.jsx)("section",{className:"px-4 py-20 sm:px-6",style:{background:s.cream},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"How can we help?",title:"Wherever you are in your move",theme:s,intro:"Selling, buying, downsizing, or investing â we meet you where you are, with calm, honest guidance."}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-4",children:e.specialties.map(a=>(0,t.jsxs)("a",{href:(0,n.reAdaptLegacyHref)(e,a.href)??"#contact",className:"re-card group flex flex-col p-6",children:[(0,t.jsx)("span",{className:"re-icon-chip mb-4 flex h-12 w-12 items-center justify-center rounded-xl text-white transition-transform duration-300 group-hover:scale-[1.06]",style:{background:`linear-gradient(135deg, ${s.accent}, ${s.accentDark})`,boxShadow:`0 8px 18px -8px ${s.accent}80, inset 0 0 0 1px ${s.accent}33`},children:(0,t.jsx)(d.Icon,{k:(0,d.iconKeyFor)(a.icon),className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"font-serif text-lg font-semibold",style:{color:s.ink},children:a.label}),(0,t.jsx)("p",{className:"mt-2 flex-1 text-sm leading-relaxed",style:{color:s.slate},children:a.blurb}),(0,t.jsxs)("span",{className:"mt-4 inline-flex items-center gap-1.5 text-sm font-semibold",style:{color:s.accent},children:["Learn more",(0,t.jsx)(d.Icon,{k:"arrowRight",className:"h-4 w-4 transition-transform group-hover:translate-x-1"})]})]},a.label))})]})})}var N=e.i(364652),k=e.i(831236),C=e.i(572852),S=e.i(79708),$=e.i(474979);let I={results:[],total:0,page:1,pageSize:S.SEARCH_DEFAULT_PAGE_SIZE,totalPages:0};function A({config:e,filters:a,setFilters:r,cityOptions:o,typeOptions:i,filteredListings:c,listingView:d,setListingView:m}){let x=e.theme,h=(0,l.isFilterActive)(a),[u,p]=(0,s.useState)(1),[f,g]=(0,s.use
4State)(I),[b,y]=(0,s.useState)("idle"),j=function(e){let[t,a]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{let t=!1;return fetch(`/api/real-estate/my-homes/session?slug=${encodeURIComponent(e)}`,{credentials:"include",cache:"no-store"}).then(e=>e.ok?e.json():null).then(e=>{!t&&e?.authed&&a(!0)}).catch(()=>{}),()=>{t=!0}},[e]),t}(e.slug),w=(0,s.useRef)(null),[_,L]=(0,s.useState)(0),E=JSON.stringify(a);(0,s.useEffect)(()=>{p(1)},[E]);let D=(0,s.useMemo)(()=>(0,S.buildBoardSearchQuery)(a,{page:u,sort:"newest",pageSize:S.SEARCH_DEFAULT_PAGE_SIZE}),[a,u]),T=(0,s.useMemo)(()=>(0,S.listingSearchQueryToParams)(D).toString(),[D]);(0,s.useEffect)(()=>{if(!h){g(I),y("idle");return}let t=new AbortController,s=setTimeout(async()=>{y("loading");try{let s=await fetch(`/api/real-estate/listings/search?slug=${encodeURIComponent(e.slug)}&${T}`,{signal:t.signal});if(!s.ok)throw Error(`search ${s.status}`);let a=await s.json();g(a),y("idle")}catch(e){"AbortError"!==e.name&&y("error")}},250);return()=>{t.abort(),clearTimeout(s)}},[h,T,e.slug,_]);let F=e=>{p(e);let t=window.matchMedia("(prefers-reduced-motion: reduce)").matches;w.current?.scrollIntoView({behavior:t?"auto":"smooth",block:"start"})},P=(0,s.useMemo)(()=>(0,S.buildPageWindow)(f.page,f.totalPages),[f.page,f.totalPages]),M=h?f.total:c.length;(0,C.useSearchTracking)(e.slug,a,M);let B=(0,S.listingSearchQueryToParams)({...S.EMPTY_SEARCH_QUERY,...a}).toString(),R=`${(0,n.reSiteHref)(e,"/search")}${B?`?${B}`:""}`,H="loading"===b;return(0,t.jsx)("section",{id:"listings",className:"px-4 py-20 sm:px-6",style:{background:"#fff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",ref:w,style:{scrollMarginTop:"96px"},children:[(0,t.jsx)(v.Heading,{eyebrow:"Featured properties",title:"Homes on the market now",theme:x,intro:`A look at homes across ${e.region}. Ask our AI about any of them â price, features, or booking a showing.`}),e.listingsAreSample?(0,t.jsx)("p",{className:"mx-auto mb-6 -mt-6 max-w-xl rounded-xl px-4 py-2.5 text-center text-xs",style:{background:x.linen,color:x.slate},children:"Sample listings shown for website preview. Live MLS® listings connect when the site goes live."}):(0,t.jsx)("p",{className:"mx-auto mb-6 -mt-6 max-w-xl px-4 text-center text-xs",style:{color:x.slate},children:"Use the filters below to search every listing on the market in our area."}),(0,t.jsx)(l.ListingFilters,{theme:x,value:a,onChange:r,cities:o,types:i,count:M}),h&&(0,t.jsx)("div",{className:"mb-6 max-w-md",children:(0,t.jsx)(k.SaveSearchPanel,{config:e,query:D,signedIn:j})}),(0,t.jsx)("div",{className:"mb-8 flex justify-center",children:(0,t.jsx)("div",{className:"inline-flex rounded-xl border p-1",style:{borderColor:x.sand,background:"#fff"},children:["grid","map"].map(e=>(0,t.jsx)("button",{onClick:()=>m(e),className:"re-foc rounded-lg px-5 py-2 text-sm font-semibold capitalize transition",style:d===e?{background:x.accent,color:"#fff"}:{color:x.slate},"aria-pressed":d===e,children:"grid"===e?"Grid":"Map"},e))})}),h?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"mb-4 text-sm","aria-live":"polite",style:{color:x.slate},children:[(0,t.jsx)("span",{className:"font-bold",style:{color:x.ink},children:f.total.toLocaleString("en-CA")})," ",1===f.total?"home":"homes"," across our full MLS® area feed",H?" â updatingâ¦":""]}),"error"===b?(0,t.jsxs)("div",{className:"rounded-2xl px-6 py-12 text-center",style:{background:"#fff",border:`1px solid ${x.sand}`},children:[(0,t.jsx)("p",{className:"font-serif text-lg font-semibold",style:{color:x.ink},children:"We couldn't load listings just now"}),(0,t.jsx)("p",{className:"mt-2 text-sm",style:{color:x.slate},children:"Please try again in a moment."}),(0,t.jsx)("button",{onClick:()=>L(e=>e+1),className:"re-foc mt-5 rounded-xl px-5 py-2.5 text-sm font-semibold text-white",style:{background:x.accent},children:"Try again"})]}):"map"===d?(0,t.jsxs)("div",{"aria-busy":H,children:[(0,t.jsx)(N.MapSearch,{config:e,listings:f.results}),f.totalPages>1&&(0,t.jsx)("p",{className:"mt-3 text-center text-xs",style:{color:x.slate},children:"Map shows this page of results â use the pagination below to see more."})]}):f.results.length>0?(0,t.jsx)("div",{"aria-busy":H,className:"re-stagger grid grid-cols-1 gap-6 transition-opacity sm:grid-cols-2 lg:grid-cols-3",style:H?{opacity:.55}:void 0,children:f.results.map((s,a)=>(0,t.jsx)($.ListingCard,{listing:s,slug:e.slug,basePath:e.basePath,theme:x,eager:a<3,brandName:e.brandName,conditionalAsForSale:e.conditionalShowsAsForSale},s.id))}):(0,t.jsxs)("div",{className:"rounded-xl px-4 py-10 text-center text-sm",style:{background:x.linen,color:x.slate},"aria-busy":H,children:[(0,t.jsx)("p",{style:{color:x.ink},children:H?"Searching our full MLS® area feedâ¦":"Nothing across our full MLS® area feed matches these filters."}),!H&&(0,t.jsx)("button",{onClick:()=>r(l.EMPTY_LISTING_FILTER),className:"re-foc mt-2 font-semibold underline",style:{color:x.accent},children:"Clear the filters"})]}),f.totalPages>1&&"grid"===d&&"error"!==b&&(0,t.jsxs)("nav",{className:"mt-10 flex flex-wrap items-center justify-center gap-2","aria-label":"Search results pages",children:[(0,t.jsx)("button",{onClick:()=>F(f.page-1),disabled:f.page<=1||H,className:"re-foc rounded-xl border px-4 py-2 text-sm font-semibold disabled:opacity-40",style:{borderColor:x.sand,color:x.ink,background:"#fff"},children:"â Prev"}),P.map((e,s)=>"â¦"===e?(0,t.jsx)("span",{className:"px-1 text-sm",style:{color:x.slate},children:"â¦"},`gap-${s}`):(0,t.jsx)("button",{onClick:()=>F(e),disabled:H,"aria-current":e===f.page?"page":void 0,className:"re-foc rounded-xl px-3.5 py-2 text-sm font-semibold",style:e===f.page?{background:x.accent,color:"#fff"}:{background:"#fff",border:`1px solid ${x.sand}`,color:x.ink},children:e},e)),(0,t.jsx)("button",{onClick:()=>F(f.page+1),disabled:f.page>=f.totalPages||H,className:"re-foc rounded-xl border px-4 py-2 text-sm font-semibold disabled:opacity-40",style:{borderColor:x.sand,color:x.ink,background:"#fff"},children:"Next â"})]})]}):"grid"===d?c.length>0?(0,t.jsx)("div",{className:"re-stagger grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:c.map((s,a)=>(0,t.jsx)($.ListingCard,{listing:s,slug:e.slug,basePath:e.basePath,theme:x,eager:a<3,brandName:e.brandName,conditionalAsForSale:e.conditionalShowsAsForSale},s.id))}):(0,t.jsxs)("p",{className:"rounded-xl px-4 py-10 text-center text-sm",style:{background:x.linen,color:x.slate},children:["No homes here match these filters â"," ",(0,t.jsx)("a",{href:R,className:"re-foc font-semibold underline",style:{color:x.accent},children:"search all MLS® listings in our area feed"}),", or"," ",(0,t.jsx)("button",{onClick:()=>r(l.EMPTY_LISTING_FILTER),className:"re-foc font-semibold underline",style:{color:x.accent},children:"clear the filters"}),"."]}):(0,t.jsx)(N.MapSearch,{config:e,listings:c})]})})}var _=e.i(553446),L=e.i(163717);function E({config:e}
4){let a=e.theme,r=e.videos,l=(0,s.useRef)(null),[n,o]=(0,s.useState)(null),i=(r?.items??[]).map(e=>{let t=(0,_.parseVideoUrl)(e.url);return t?{item:e,parsed:t}:null}).filter(e=>null!==e);if(!r||!r.showOnHomepage||0===i.length)return null;let c=r.heading||"Watch our videos",m="scroll"===r.layout,x=e=>{let t=l.current;if(!t)return;let s=window.matchMedia("(prefers-reduced-motion: reduce)").matches;t.scrollBy({left:e*Math.round(.85*t.clientWidth),behavior:s?"auto":"smooth"})};return(0,t.jsx)("section",{id:"videos","data-testid":"re-video-section",className:"px-4 py-20 sm:px-6",style:{background:a.linen},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"On video",title:c,theme:a}),m?(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{ref:l,"data-testid":"re-video-scroller",className:"flex snap-x snap-mandatory gap-5 overflow-x-auto pb-3",tabIndex:0,role:"group","aria-label":`${c} â horizontally scrollable video list`,children:i.map((e,s)=>(0,t.jsx)("div",{className:"w-[300px] shrink-0 snap-start sm:w-[380px]",children:(0,t.jsx)(L.VideoCard,{parsed:e.parsed,title:e.item.title,description:e.item.description,active:n===s,onPlay:()=>o(s),theme:a})},`${e.parsed.provider}-${e.parsed.id}-${s}`))}),i.length>1&&(0,t.jsxs)("div",{className:"mt-4 flex justify-center gap-2 sm:justify-end",children:[(0,t.jsx)("button",{type:"button",onClick:()=>x(-1),"aria-label":"Scroll videos left",className:"re-foc flex h-11 w-11 items-center justify-center rounded-full border bg-white",style:{borderColor:a.sand,color:a.ink},children:(0,t.jsx)(d.Icon,{k:"chevronLeft",className:"h-5 w-5"})}),(0,t.jsx)("button",{type:"button",onClick:()=>x(1),"aria-label":"Scroll videos right",className:"re-foc flex h-11 w-11 items-center justify-center rounded-full border bg-white",style:{borderColor:a.sand,color:a.ink},children:(0,t.jsx)(d.Icon,{k:"chevronRight",className:"h-5 w-5"})})]})]}):(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3","data-testid":"re-video-grid",children:i.map((e,s)=>(0,t.jsx)(L.VideoCard,{parsed:e.parsed,title:e.item.title,description:e.item.description,active:n===s,onPlay:()=>o(s),theme:a},`${e.parsed.provider}-${e.parsed.id}-${s}`))})]})})}function D({config:e}){let s=e.theme;return(0,t.jsx)("section",{id:"communities",className:"px-4 py-20 sm:px-6",style:{background:s.cream},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"Where we work",title:"Communities we call home",theme:s,intro:"From established Woodstock neighbourhoods to country properties across Oxford County â we know these streets, and we work in other areas for client-specific needs."}),(0,t.jsx)("div",{className:"re-stagger grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:e.communities.map(e=>(0,t.jsxs)("article",{className:"re-card group overflow-hidden",children:[(0,t.jsxs)("div",{className:"relative aspect-[16/10] overflow-hidden",children:[(0,t.jsx)(p.default,{src:e.photo,alt:e.name,fill:!0,sizes:"(max-width: 767px) 100vw, (max-width: 1023px) 50vw, 380px",loading:"lazy",className:"object-cover transition-transform duration-500 group-hover:scale-105"}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/55 to-transparent"}),(0,t.jsx)("h3",{className:"absolute bottom-3 left-4 right-4 font-serif text-lg font-bold leading-tight text-white sm:text-xl",children:e.name})]}),(0,t.jsx)("p",{className:"p-5 text-sm leading-relaxed",style:{color:s.slate},children:e.blurb})]},e.name))}),(0,t.jsx)("div",{className:"mt-10 flex flex-wrap justify-center gap-2.5",children:e.areasServed.map(e=>(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5 rounded-full bg-white px-4 py-2 text-sm font-medium shadow-sm",style:{color:s.slate,border:`1px solid ${s.sand}`},children:[(0,t.jsx)(d.Icon,{k:"pin",className:"h-4 w-4",style:{color:s.accent}}),e]},e))})]})})}function T({config:e}){let s=e.theme;return(0,t.jsx)("section",{className:"px-4 py-20 sm:px-6",style:{background:"#fff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"Simple from day one",title:"What working with us looks like",theme:s}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:[{n:"01",title:"A real conversation",body:"Tell us your goals â by phone, in person, or through our AI assistant any time of day. No pressure, no script."},{n:"02",title:"A clear plan",body:"We bring honest pricing, local market insight, and a step-by-step plan tailored to your move."},{n:"03",title:"Sold, settled, supported",body:"We handle the details and stay in your corner through closing â and long after."}].map(e=>(0,t.jsxs)("div",{className:"re-card p-6",children:[(0,t.jsx)("span",{className:"font-serif text-3xl font-bold",style:{color:`${s.accent}b0`},children:e.n}),(0,t.jsx)("h3",{className:"mt-2 font-serif text-lg font-semibold",style:{color:s.ink},children:e.title}),(0,t.jsx)("p",{className:"mt-2 text-sm leading-relaxed",style:{color:s.slate},children:e.body})]},e.n))})]})})}let F={ABR:{name:"Accredited Buyer's Representative",blurb:"Advanced training in representing buyers â protecting your interests from search to closing."}
4,SRES:{name:"Seniors Real Estate Specialist®",blurb:"An accredited NAR designation â training specific to the needs of later-in-life transitions, including downsizing and right-sizing the family home."},SRS:{name:"Seller Representative Specialist",blurb:"An accredited designation for representing sellers, to best serve the needs of all sellers â pricing, marketing, and negotiating for the best result."},MVA:{name:"Market Value Appraiser (residential)",blurb:"A qualified residential appraiserâs eye for value, construction, and what a home is really worth."},DLG:{name:"Digital Lead Generation Professional",blurb:"Certified in finding and looking after buyers and sellers online â so an enquiry made at midnight is still answered properly."}};function P({config:e}){let s=e.theme,a={1:"sm:grid-cols-1 lg:grid-cols-1 lg:max-w-sm",2:"sm:grid-cols-2 lg:grid-cols-2 lg:max-w-3xl",3:"sm:grid-cols-2 lg:grid-cols-3 lg:max-w-5xl",4:"sm:grid-cols-2 lg:grid-cols-4"},r=a[Math.min(e.team.length,4)]??a[4];return(0,t.jsx)("section",{id:"team",className:"px-4 py-20 sm:px-6",style:{background:s.cream},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:`Meet ${e.brandName}`,title:e.teamSectionTitle??"A family team you can trust",theme:s,intro:e.teamSectionIntro??"Two generations, decades of local experience, and a genuine care for getting families home."}),(0,t.jsx)("div",{className:`re-stagger mx-auto grid grid-cols-1 gap-6 ${r}`,children:e.team.map(e=>(0,t.jsxs)("article",{className:"re-card flex flex-col p-6",children:[e.photo?(0,t.jsx)(p.default,{src:e.photo,alt:e.name,width:80,height:80,loading:"lazy",sizes:"80px",className:"h-20 w-20 rounded-2xl object-cover",style:{boxShadow:`0 0 0 3px ${s.accent}22`}}):(0,t.jsx)("span",{className:"flex h-20 w-20 items-center justify-center rounded-2xl text-xl font-bold text-white",style:{background:`linear-gradient(135deg, ${s.accentDark}, ${s.accentDeep})`},children:e.name.split(" ").map(e=>e[0]).slice(0,2).join("")}),(0,t.jsx)("h3",{className:"mt-4 font-serif text-lg font-semibold",style:{color:s.ink},children:e.name}),(0,t.jsx)("p",{className:"text-xs uppercase tracking-wide",style:{color:s.accent},children:e.title}),e.credentials.length>0&&(0,t.jsx)("div",{className:"mt-2 flex flex-wrap gap-1.5",children:e.credentials.map(e=>{let a,r=(a=F[e.trim().toUpperCase()]??null)?`${a.name} â ${a.blurb}`:null;return(0,t.jsx)("span",{title:r??void 0,"aria-label":r?`${e}: ${r}`:void 0,tabIndex:r?0:void 0,className:`rounded-full px-2 py-0.5 text-[10px] font-semibold${r?" cursor-help underline decoration-dotted decoration-1 underline-offset-2":""}`,style:{background:s.linen,color:s.slate},children:e},e)})}),(0,t.jsx)("p",{className:"mt-3 flex-1 text-sm leading-relaxed",style:{color:s.slate},children:e.bio})]},e.name))})]})})}function M({quote:e,accentColor:s,limit:a=250}){let{truncated:r,preview:l,paragraphs:n,remainderParagraphs:o}=function(e,t=250){let s,a=(s=e.split("\n\n").map(e=>e.trim()).filter(Boolean)).length>0?s:[e.trim()],r=a.join(" ");if(r.length<=t)return{truncated:!1,preview:r,paragraphs:a,remainderParagraphs:[]};let l=r.slice(0,t).lastIndexOf(" "),n=l>0?l:t,o=`${r.slice(0,n).trimEnd()}â¦`,i=0,c=a.length-1,d=a[a.length-1]?.length??0;for(let e=0;e<a.length;e++){let t=i+a[e].length;if(n<=t){c=e,d=Math.max(0,n-i);break}i=t+1}let m=[],x=a[c]?.slice(d).trim();x&&m.push(x);for(let e=c+1;e<a.length;e++)m.push(a[e]);return{truncated:!0,preview:o,paragraphs:a,remainderParagraphs:m}}(e,a);return r?(0,t.jsxs)("details",{className:"re-testimonial",children:[(0,t.jsxs)("summary",{className:"cursor-pointer",children:[l," ",(0,t.jsxs)("span",{className:"font-semibold underline underline-offset-2",style:{color:s},children:[(0,t.jsx)("span",{className:"re-tq-more",children:"Read more"}),(0,t.jsx)("span",{className:"re-tq-less",children:"Read less"})]})]}),(0,t.jsx)("div",{className:"mt-2",children:o.map((e,s)=>(0,t.jsx)("p",{className:s>0?"mt-2":void 0,children:e},s))})]}):n.length<=1?(0,t.jsx)(t.Fragment,{children:l}):(0,t.jsx)(t.Fragment,{children:n.map((e,s)=>(0,t.jsx)("p",{className:s>0?"mt-2":void 0,children:e},s))})}let B=["Knowledgeable","Professional","Responsive","Honest","Stress-free","Above & beyond","Made it easy"];function R({theme:e,brandName:s,clientNoun:a}){return(0,t.jsxs)("div",{"data-testid":"re-reviews-summary",className:"mx-auto mb-12 max-w-3xl rounded-2xl px-6 py-7 text-center",style:{background:e.cream,border:`1px solid ${e.sand}`},children:[(0,t.jsxs)("p",{className:"text-base leading-relaxed sm:text-lg",style:{color:e.ink},children:["The same words come up again and again in ",s,"'s reviews â"," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"knowledgeable"}),","," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"professional"}),","," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"responsive"}),", and"," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"honest"}),". Clients tell us ",a??s," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"made it easy"}),", kept it"," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"stress-free"}),", were"," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"quick to respond"}),", and"," ",(0,t.jsx)("strong",{style:{color:e.accent},children:"went above and beyond"}),". If those are what matter to you, ",s," is the team for you."]}),(0,t.jsx)("div",{className:"mt-5 flex flex-wrap justify-center gap-2",children:B.map(s=>(0,t.jsx)("span",{className:"rounded-full px-3 py-1 text-xs font-semibold",style:{background:`${e.accent}12`,color:e.accent},children:s},s))})]})}function H({config:e}){let s=e.theme;return(0,t.jsx)("section",{id:"reviews",className:"px-4 py-20 sm:px-6",style:{background:"#fff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"In their words",title:"What our clients say",theme:s,intro:`From ${e.socialProof.reviewCount} â honest, responsive, and genuinely in your corner.`}),(0,t.jsx)(R,{theme:s,brandName:e.brandName,clientNoun:e.reviewsClientNoun}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:e.testimonials.slice(0,6).map((e,a)=>(0,t.jsxs)("figure",{className:"re-card flex flex-col p-6",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)(d.Icon,{k:"quote",className:"h-8 w-8",style:{color:`${s.accent}33`}}),e.rating?(0,t.jsx)("div",{className:"flex items-center gap-0.5","aria-label":`${e.rating} out of 5 stars`,children:[1,2,3,4,5].map(a=>(0,t.jsx)(d.Icon,{k:"star",className:"h-4 w-4",style:{color:a<=(e.rating??0)?s.brass:s.sand}},a))}):null]}),(0,t.jsxs)("blockquote",{className:"mt-3 flex-1 text-sm leading-relaxed",style:{color:s.ink},children:["â",(0,t.jsx)(M,{quote:e.quote,accentColor:s.accent}),"â"]}
4),(0,t.jsxs)("figcaption",{className:"mt-4 flex items-center gap-3",children:[e.photo?(0,t.jsx)(p.default,{src:e.photo,alt:"",width:36,height:36,loading:"lazy",sizes:"36px",className:"h-9 w-9 shrink-0 rounded-full object-cover"}):null,(0,t.jsxs)("span",{className:"text-xs font-semibold uppercase tracking-wide",style:{color:s.slate},children:[e.attribution,e.context?` \xb7 ${e.context}`:""]})]})]},a))}),(0,t.jsxs)("div",{className:"mt-10 flex flex-wrap items-center justify-center gap-3",children:[(0,t.jsx)(o.default,{href:(0,n.reSiteHref)(e,"/reviews"),className:"re-btn-primary re-foc inline-flex items-center gap-2 rounded-xl px-6 py-3.5 text-sm font-bold",children:"Read Reviews â"}),e.googleReviewUrl&&(0,t.jsxs)("a",{href:e.googleReviewUrl,target:"_blank",rel:"noopener noreferrer",className:"re-foc inline-flex items-center gap-2 rounded-xl border px-6 py-3 text-sm font-semibold",style:{borderColor:s.sand,color:s.ink},children:[(0,t.jsx)(d.Icon,{k:"star",className:"h-4 w-4",style:{color:s.brass}}),"See us on Google"]})]})]})})}function W({config:e,soldListings:s}){let a=e.theme;return(0,t.jsx)("section",{id:"sold",className:"px-4 py-16 sm:px-6 sm:py-20",style:{background:a.cream},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"Recent results",title:"Sold stories",theme:a,intro:"What honest pricing, real marketing, and steady negotiation deliver â in our clients' own words."}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-3",children:[{icon:"calendar",stat:"Sold in days, not months",caption:"Clients describe homes selling in just over 24 hours â and others within a week."},{icon:"trending",stat:"Priced to net you more",caption:"Strategy and negotiation focused on your final number, not just a rate."},{icon:"star",stat:e.socialProof.reviewCount,caption:"Honest, responsive, and genuinely in your corner â every time."}].map(e=>(0,t.jsxs)("div",{className:"re-card p-6 text-center",children:[(0,t.jsx)("span",{className:"re-icon-chip mx-auto mb-3 flex h-12 w-12 items-center justify-center rounded-xl text-white",style:{background:`linear-gradient(135deg, ${a.accent}, ${a.accentDark})`,boxShadow:`0 8px 18px -8px ${a.accent}80, inset 0 0 0 1px ${a.accent}33`},children:(0,t.jsx)(d.Icon,{k:e.icon,className:"h-6 w-6"})}),(0,t.jsx)("p",{className:"font-serif text-lg font-bold",style:{color:a.ink},children:e.stat}),(0,t.jsx)("p",{className:"mt-1.5 text-sm leading-relaxed",style:{color:a.slate},children:e.caption})]},e.stat))}),s.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-8 grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:s.slice(0,6).map(s=>(0,t.jsx)($.ListingCard,{listing:s,slug:e.slug,basePath:e.basePath,theme:a,conditionalAsForSale:e.conditionalShowsAsForSale},s.id))}),(0,t.jsx)("div",{className:"mt-8 text-center",children:(0,t.jsx)(o.default,{href:(0,n.reSiteHref)(e,"/sold"),className:"inline-flex items-center gap-1.5 rounded-xl px-5 py-2.5 text-sm font-semibold",style:{background:"#fff",color:a.accent,border:`1px solid ${a.accent}`},children:"See all our sold homes"})})]})]})})}var O=e.i(718630);function z({config:e,comingSoonListings:s}){if(0===s.length)return null;let a=e.theme;return(0,t.jsx)("section",{id:"coming-soon",className:"px-4 py-16 sm:px-6 sm:py-20",style:{background:"#fff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"Pre-market",title:"Coming soon",theme:a,intro:"Exclusive homes we're preparing to bring to market â not yet on MLS®. Ask us for a private preview, or be first to know the moment one lists."}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:s.slice(0,6).map(s=>(0,t.jsx)($.ListingCard,{listing:s,slug:e.slug,basePath:e.basePath,theme:a,conditionalAsForSale:e.conditionalShowsAsForSale},s.id))}),(0,t.jsxs)("div",{className:"mt-8 flex flex-col items-center gap-4",children:[(0,t.jsx)(O.ComingSoonNotify,{config:e,compact:!0}),(0,t.jsx)(o.default,{href:(0,n.reSiteHref)(e,"/coming-soon"),className:"text-sm font-semibold",style:{color:a.accent}
4,children:"See all coming-soon homes â"})]})]})})}function q({config:e,guides:s=[]}){let a=e.theme,r=new Set(e.resources.map(e=>e.href.match(/\/guides\/([^/?#]+)\/?$/)?.[1]).filter(e=>!!e)),l=s.filter(e=>!r.has(e.slug));return(0,t.jsx)("section",{id:"resources",className:"px-4 py-20 sm:px-6",style:{background:a.cream},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"Helpful & local",title:"Guides, tools & answers",theme:a,intro:"Real answers to the questions Woodstock buyers and sellers actually ask â written for our market, not a generic one."}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-5 sm:grid-cols-2",children:e.resources.map(s=>(0,t.jsxs)("a",{href:(0,n.reAdaptLegacyHref)(e,s.href)??s.href,className:"re-card group flex items-start gap-4 p-6",children:[(0,t.jsx)("span",{className:"re-icon-chip flex h-11 w-11 shrink-0 items-center justify-center rounded-xl text-white transition-transform duration-300 group-hover:scale-[1.06]",style:{background:`linear-gradient(135deg, ${a.accent}, ${a.accentDark})`,boxShadow:`0 8px 18px -8px ${a.accent}80, inset 0 0 0 1px ${a.accent}33`},children:(0,t.jsx)(d.Icon,{k:(0,d.iconKeyFor)(s.icon),className:"h-5 w-5"})}),(0,t.jsxs)("div",{className:"flex-1",children:[s.tag&&(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:a.accent},children:s.tag}),(0,t.jsx)("h3",{className:"font-serif text-lg font-semibold leading-snug",style:{color:a.ink},children:s.title}),(0,t.jsx)("p",{className:"mt-1 text-sm leading-relaxed",style:{color:a.slate},children:s.blurb})]})]},s.title))}),l.length>0&&(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsx)("h3",{className:"font-serif text-lg font-semibold",style:{color:a.ink},children:"More guides"}),(0,t.jsx)("div",{className:"mt-4 grid grid-cols-1 gap-3 sm:grid-cols-2 lg:grid-cols-3",children:l.map(s=>(0,t.jsxs)(o.default,{href:(0,n.reSiteHref)(e,`/guides/${s.slug}`),lang:s.lang,className:"flex flex-col rounded-xl border bg-white p-4 transition hover:-translate-y-0.5",style:{borderColor:a.sand},children:[(0,t.jsx)("span",{lang:s.lang,className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:a.accent},children:s.tag}),(0,t.jsx)("span",{lang:s.lang,className:"mt-1 font-serif text-sm font-semibold leading-snug",style:{color:a.ink},children:s.title}),(0,t.jsx)("span",{lang:s.lang,className:"mt-1 text-xs leading-snug",style:{color:a.slate},children:s.metaDescription})]},s.slug))})]}),(0,t.jsx)("div",{className:"mt-8 text-center",children:(0,t.jsx)(o.default,{href:(0,n.reSiteHref)(e,"/guides"),className:"re-btn-primary re-foc inline-flex items-center gap-2 rounded-xl px-6 py-3.5 text-sm font-bold",children:"Browse all guides & resources â"})})]})})}function U({config:e,theme:s}){let a=[...e.blog].filter(e=>e.published).sort((e,t)=>t.datePublished.localeCompare(e.datePublished)).slice(0,3);return 0===a.length?null:(0,t.jsx)("section",{id:"blog",className:"px-4 py-20 sm:px-6",style:{background:"#fff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"From our desk",title:"Latest from the blog",theme:s,intro:`Market notes, neighbourhood guides, and honest answers â written for ${e.region}.`}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3","data-testid":"re-blog-teaser",children:a.map(a=>{var r;let l;return(0,t.jsxs)(o.default,{href:(0,n.reSiteHref)(e,`/blog/${a.slug}`),className:"re-card group flex flex-col overflow-hidden",children:[a.heroImage&&(0,t.jsx)("div",{className:"relative aspect-[16/10] overflow-hidden",children:(0,t.jsx)(p.default,{src:a.heroImage,alt:"",fill:!0,sizes:"(max-width: 639px) 100vw, (max-width: 1023px) 50vw, 380px",loading:"lazy",className:"object-cover transition-transform duration-500 group-hover:scale-105"})}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-5",children:[(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wide",style:{color:s.slate},children:(r=a.datePublished,Number.isNaN((l=new Date(`${r}T00:00:00Z`)).getTime())?r:l.toLocaleDateString("en-CA",{year:"numeric",month:"long",day:"numeric",timeZone:"UTC"}))}),(0,t.jsx)("h3",{className:"mt-1 font-serif text-lg font-semibold leading-snug",style:{color:s.ink},children:a.title}),(0,t.jsx)("p",{className:"mt-2 line-clamp-3 flex-1 text-sm leading-relaxed",style:{color:s.slate},children:a.excerpt}),(0,t.jsx)("span",{className:"mt-3 text-sm font-semibold",style:{color:s.accent},children:"Read more â"})]})]},a.slug)})}),(0,t.jsx)("div",{className:"mt-8 text-center",children:(0,t.jsx)(o.default,{href:(0,n.reSiteHref)(e,"/blog"),className:"re-btn-primary re-foc inline-flex items-center gap-2 rounded-xl px-6 py-3.5 text-sm font-bold",children:"Read the blog â"})})]})})}function G({config:e}
4){let a=e.theme,[r,l]=(0,s.useState)("idle"),[n,o]=(0,s.useState)({name:"",email:"",phone:"",address:""}),[i,c]=(0,s.useState)([]),[m,x]=(0,s.useState)(null),[h,u]=(0,s.useState)(!1),p=(0,s.useRef)(null),[f,g]=(0,s.useState)(""),[b]=(0,s.useState)(()=>Date.now()),y=(0,s.useId)(),j=`${y}-seller-photos`,v=`${y}-seller-photos-help`,w=(0,s.useCallback)(e=>{if(!e||0===e.length)return;let t=Array.from(e),s=t.filter(e=>e.size>5242880),a=t.filter(e=>e.size<=5242880),r=[...i];for(let e of a)r.some(t=>t.name===e.name&&t.size===e.size)||r.push(e);let l=[],n=0,o=0;for(let e of r)n+e.size<=4194304?(l.push(e),n+=e.size):o+=1;let d=l.length>6;c(d?l.slice(0,6):l);let m=[];if(s.length>0){let e=1===s.length?`â${s[0].name}â is`:`${s.length} of those photos are`;m.push(`${e} larger than 5 MB, so ${1===s.length?"it was":"they were"} not added.`)}o>0&&m.push(`Those photos add up to more than 4 MB in total, so ${1===o?"the last one was":`${o} were`} left out. Smaller photos, or fewer of them, will go through fine.`),d&&m.push("That's more than 6 photos â we kept the first 6."),x(m.length>0?m.join(" "):null),p.current&&(p.current.value="")},[i]),N=(0,s.useCallback)(e=>{x(null),c(t=>t.filter((t,s)=>s!==e))},[]),k=(0,s.useCallback)(async t=>{t.preventDefault(),l("sending");try{let t;if(i.length>0){let s=new FormData;s.append("slug",e.slug),s.append("name",n.name),s.append("email",n.email),s.append("phone",n.phone),s.append("address",n.address),s.append("company",f),s.append("renderedAt",String(b)),i.forEach(e=>s.append("photos",e)),t=await fetch("/api/real-estate/home-value",{method:"POST",body:s})}else t=await fetch("/api/real-estate/home-value",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:e.slug,...n,company:f,renderedAt:b})});l(t.ok?"done":"error")}catch{l("error")}},[e.slug,n,i,f,b]);if("done"===r)return(0,t.jsxs)("div",{className:"re-card p-8 text-center sm:p-10",children:[(0,t.jsx)("span",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-full",style:{background:a.forest},children:(0,t.jsx)(d.Icon,{k:"check",className:"h-7 w-7 text-white"})}),(0,t.jsx)("h3",{className:"font-serif text-2xl font-bold",style:{color:a.ink},children:"Thank you â we'll be in touch"}),(0,t.jsxs)("p",{className:"mx-auto mt-3 max-w-md text-sm leading-relaxed",style:{color:a.slate},children:["A member of ",e.brandName," will prepare a personal market evaluation for your home and reach out shortly. No obligation, ever."]})]});let C="w-full rounded-xl border bg-white px-4 py-3 text-sm outline-none transition focus:ring-2";return(0,t.jsxs)("form",{onSubmit:k,className:"re-card p-6 sm:p-8",children:[(0,t.jsxs)("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:`${y}-company`,children:"Company"}),(0,t.jsx)("input",{id:`${y}-company`,name:"company",type:"text",tabIndex:-1,autoComplete:"off",value:f,onChange:e=>g(e.target.value)})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,placeholder:"Your name","aria-label":"Your name",className:C,style:{borderColor:a.sand,color:a.ink},value:n.name,onChange:e=>o({...n,name:e.target.value})}),(0,t.jsx)("input",{required:!0,type:"email",placeholder:"Email","aria-label":"Email",className:C,style:{borderColor:a.sand,color:a.ink},value:n.email,onChange:e=>o({...n,email:e.target.value})}),(0,t.jsx)("input",{placeholder:"Phone (optional)","aria-label":"Phone",className:C,style:{borderColor:a.sand,color:a.ink},value:n.phone,onChange:e=>o({...n,phone:e.target.value})}),(0,t.jsx)("input",{required:!0,placeholder:"Property address","aria-label":"Property address",className:C,style:{borderColor:a.sand,color:a.ink},value:n.address,onChange:e=>o({...n,address:e.target.value})})]}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("span",{className:"block text-xs font-semibold",style:{color:a.ink},children:"Add a few photos of your home (optional)"}),(0,t.jsxs)("p",{id:v,className:"mt-0.5 text-[11px]",style:{color:a.slate},children:["Kitchen, living room, back yard â whatever shows it best. Up to ",6," photos, 5 MB each (JPEG, PNG, or WebP)."]}),(0,t.jsxs)("div",{onDragOver:e=>{e.preventDefault(),u(!0)},onDragLeave:()=>u(!1),onDrop:e=>{e.preventDefault(),u(!1),w(e.dataTransfer.files)},className:"mt-2 rounded-xl border border-dashed px-4 py-5 text-center transition",style:{borderColor:h?a.accent:a.sand,background:h?`${a.accent}14`:"#fff"},children:[(0,t.jsx)("input",{ref:p,id:j,type:"file",accept:"image/jpeg,image/png,image/webp",multiple:!0,"aria-describedby":v,onCh
4ange:e=>w(e.target.files),className:"peer sr-only"}),(0,t.jsx)("label",{htmlFor:j,className:"inline-flex cursor-pointer items-center gap-2 rounded-xl px-4 py-2.5 text-sm font-semibold text-white transition peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2",style:{background:`linear-gradient(135deg, ${a.accent}, ${a.accentDark})`},children:i.length>0?"Add more photos":"Choose photos"}),(0,t.jsx)("p",{className:"mt-2 text-[11px]",style:{color:a.slate},children:i.length>0?`${i.length} of 6 chosen`:"or drag them here â no photos needed, they just help"})]}),i.length>0&&(0,t.jsx)("ul",{className:"mt-2 space-y-1",children:i.map((e,s)=>{var r;return(0,t.jsxs)("li",{className:"flex items-center gap-2 rounded-lg px-2.5 py-1.5 text-[11px]",style:{background:"#F7F6F3",color:a.slate},children:[(0,t.jsx)(d.Icon,{k:"check",className:"h-3.5 w-3.5 shrink-0",style:{color:a.forest}}),(0,t.jsx)("span",{className:"min-w-0 flex-1 truncate",children:e.name}),(0,t.jsx)("span",{className:"shrink-0 tabular-nums",children:(r=e.size)<1024?`${r} B`:r<1048576?`${Math.round(r/1024)} KB`:`${(r/1048576).toFixed(1)} MB`}),(0,t.jsx)("button",{type:"button",onClick:()=>N(s),"aria-label":`Remove ${e.name}`,className:"re-foc shrink-0 rounded px-1.5 py-0.5 font-semibold underline",style:{color:a.accentDark},children:"Remove"})]},`${e.name}-${e.size}-${s}`)})}),m&&(0,t.jsx)("p",{role:"status",className:"mt-1.5 text-[11px] font-medium",style:{color:a.accentDark},children:m})]}),(0,t.jsx)("button",{type:"submit",disabled:"sending"===r,className:"re-btn-primary mt-4 w-full rounded-xl px-6 py-3.5 text-sm font-bold disabled:opacity-60",children:"sending"===r?"Sendingâ¦":"Request my free evaluation"}),(0,t.jsxs)("p",{className:"mt-2 text-center text-[11px] leading-relaxed",style:{color:a.slate},children:[e.brandName," prepares it by hand â you'll hear from a real person, not an instant estimate."]}),"error"===r&&(0,t.jsxs)("p",{className:"mt-3 text-center text-sm",style:{color:a.accentDark},children:["Something went wrong â please call ",e.phoneDirect," and we'll help right away."]}),(0,t.jsx)("p",{className:"mt-3 text-center text-[11px] leading-relaxed",style:{color:a.slate},children:"No obligation. We'll only use your details to prepare your evaluation and follow up â never shared. Reply STOP any time."})]})}function Y({config:e}){let a=e.theme,[r,l]=(0,s.useState)(!1);return(0,s.useEffect)(()=>{if(!r)return;let e=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e)},[r]),(0,t.jsxs)("section",{id:"home-value",className:"px-4 py-20 sm:px-6",style:{background:"#fff"},children:[(0,t.jsxs)("div",{className:"mx-auto max-w-2xl text-center",children:[(0,t.jsx)("p",{className:"mb-3 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:a.accent},children:"Free, no obligation"}),(0,t.jsx)("h2",{className:"font-serif text-3xl font-bold tracking-tight sm:text-4xl",style:{color:a.ink},children:"What's your home worth in today's market?"}),(0,t.jsx)("p",{className:"mt-4 text-base leading-relaxed",style:{color:a.slate},children:"Get a personal market evaluation from agents who actually know your street â not an algorithm. We'll prepare it by hand and walk you through what it means for your move."}),(0,t.jsx)("ul",{className:"mx-auto mt-6 flex max-w-lg flex-col gap-2.5 text-left text-sm sm:flex-row sm:flex-wrap sm:justify-center sm:gap-x-6 sm:gap-y-2",style:{color:a.ink},children:["Local, hand-prepared â not an automated estimate","No obligation and no pressure","Clear next steps, whenever youâre ready"].map(e=>(0,t.jsxs)("li",{className:"flex items-start gap-2.5 sm:items-center",children:[(0,t.jsx)(d.Icon,{k:"check",className:"mt-0.5 h-5 w-5 shrink-0 sm:mt-0",style:{color:a.forest}}),e]},e))}),(0,t.jsx)("button",{type:"button",onClick:()=>l(!0),className:"re-btn-primary re-foc mt-8 inline-flex items-center gap-2 rounded-xl px-8 py-4 text-sm font-bold","data-testid":"re-home-value-cta",children:"Start my free home evaluation"})]}),r&&(0,t.jsx)("div",{role:"dialog","aria-modal":"true","aria-label":"What's your home worth","data-testid":"re-home-value-modal",className:"fixed inset-0 z-[70] flex items-end justify-center bg-black/50 p-0 sm:items-center sm:p-4",onClick:()=>l(!1),children:(0,t.jsxs)("div",{className:"relative max-h-[92dvh] w-full max-w-lg overflow-y-auto rounded-t-2xl bg-white p-5 shadow-2xl sm:rounded-2xl sm:p-6",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("button",{type:"button",onClick:()=>l(!1),"aria-label":"Close",className:"re-foc absolute right-4 top-4 text-xl leading-none",style:{color:a.slate},children:"Ã"}),(0,t.jsx)("h3",{className:"pr-8 font-serif text-xl font-bold",style:{color:a.ink},children:"What's your home worth?"}),(0,t.jsx)("div",{className:"mt-4",children:(0,t.jsx)(G,{config:e})})]})})]})}var V=e.i(553389),K=e.i(608835);function J({config:e}){let s=e.theme,a=(0,n.getAiLanguageCtas)(e).map(e=>e.label.replace(/^Speak to (our )?/i,"").replace(/\s*(AI )?Assistant$/i," AI").trim()).filter(
4Boolean);return(0,t.jsx)("section",{id:"talk-to-aria",className:"relative scroll-mt-24 overflow-hidden px-4 py-20 sm:px-6",style:{background:`linear-gradient(135deg, ${s.charcoal} 0%, ${s.accentDeep} 120%)`},children:(0,t.jsxs)("div",{className:"relative mx-auto max-w-3xl text-center",children:[(0,t.jsx)("span",{className:"mx-auto mb-5 flex h-16 w-16 items-center justify-center rounded-2xl re-glass-dark",children:(0,t.jsx)(d.Icon,{k:"message",className:"h-7 w-7 text-white"})}),(0,t.jsx)(v.Heading,{eyebrow:"Always here to help",title:"Ask our AI assistant â any time",theme:s,light:!0,intro:"Ask about a listing, a neighbourhood, or booking a showing, day or night. Our AI answers instantly and hands you to a real member of the team for anything that matters."}),(0,t.jsx)("div",{className:"mx-auto max-w-md text-left",children:(0,t.jsx)(V.Disclosure,{theme:s,summary:(0,t.jsxs)("span",{children:["Choose how to talk to us",a.length>0&&(0,t.jsxs)("span",{className:"font-normal",style:{color:s.slate},children:[" ","â ",a.join(", "),", or call the office directly"]})]}),children:(0,t.jsx)(K.TalkChoices,{config:e})})}),(0,t.jsxs)("p",{className:"mt-5 inline-flex items-center gap-2 text-xs text-white/60",children:[(0,t.jsx)(d.Icon,{k:"shield",className:"h-3.5 w-3.5"}),"A bridge to our team â never a replacement. Every important moment goes to a real agent."]})]})})}var Q=e.i(239976),Z=e.i(423390);let X=["Buying a home","Selling a home","Home valuation","General question"];function ee({config:e}){let a=e.theme,[r,l]=(0,s.useState)("idle"),[n,o]=(0,s.useState)(""),[i]=(0,s.useState)(()=>Date.now()),[c,m]=(0,s.useState)({name:"",email:"",phone:"",category:X[0],message:""}),x=(0,s.useCallback)(async t=>{t.preventDefault(),l("sending");try{let t=await fetch("/api/real-estate/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:e.slug,formType:"contact",company:n,renderedAt:i,...c})});l(t.ok?"done":"error")}catch{l("error")}},[e.slug,c,n,i]);if("done"===r)return(0,t.jsxs)("div",{role:"status","aria-live":"polite",className:"re-card p-8 text-center sm:p-10",children:[(0,t.jsx)("span",{className:"mx-auto mb-4 flex h-14 w-14 items-center justify-center rounded-full",style:{background:a.forest},children:(0,t.jsx)(d.Icon,{k:"check",className:"h-7 w-7 text-white"})}),(0,t.jsx)("h3",{className:"font-serif text-2xl font-bold",style:{color:a.ink},children:"Message sent â thank you"}),(0,t.jsxs)("p",{className:"mx-auto mt-3 max-w-md text-sm leading-relaxed",style:{color:a.slate},children:["A member of ",e.brandName," will get back to you shortly. For anything urgent, call ",e.phoneDirect,"."]})]});let h="re-input w-full rounded-xl border bg-white px-4 py-3 text-sm outline-none transition focus:ring-2",u={borderColor:a.sand,color:a.ink};return(0,t.jsxs)("form",{onSubmit:x,className:"re-card p-6 sm:p-8",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2",children:[(0,t.jsx)("input",{required:!0,placeholder:"Your name","aria-label":"Your name",className:h,style:u,value:c.name,onChange:e=>m({...c,name:e.target.value})}),(0,t.jsx)("input",{required:!0,type:"email",placeholder:"Email","aria-label":"Email",className:h,style:u,value:c.email,onChange:e=>m({...c,email:e.target.value})}),(0,t.jsx)("input",{placeholder:"Phone (optional)","aria-label":"Phone",className:h,style:u,value:c.phone,onChange:e=>m({...c,phone:e.target.value})}),(0,t.jsx)("select",{"aria-label":"How can we help?",className:h,style:u,value:c.category,onChange:e=>m({...c,category:e.target.value}),children:X.map(e=>(0,t.jsx)("option",{value:e,children:e},e))})]}),(0,t.jsx)("textarea",{placeholder:"How can we help?","aria-label":"Message",rows:4,className:`${h} mt-3`,style:u,value:c.message,onChange:e=>m({...c,message:e.target.value})}),(0,t.jsx)(Z.HoneypotField,{value:n,onChange:o}),(0,t.jsx)("button",{type:"submit",disabled:"sending"===r,className:"re-btn-primary mt-4 w-full rounded-xl px-6 py-3.5 text-sm font-bold disabled:opacity-60",children:"sending"===r?"Sendingâ¦":"Send message"}),"error"===r&&(0,t.jsxs)("p",{role:"alert",className:"mt-3 text-center text-sm",style:{color:a.accentDark},children:["Something went wrong â please call ",e.phoneDirect," and we'll help right away."]}),(0,t.jsx)("p",{className:"mt-3 text-center text-[11px] leading-relaxed",style:{color:a.slate},children:"We'll only use your details to respond to your message â never shared."})]})}var et=e.i(70773);let es=(0,Q.default)(()=>e.A(258642),{loadableGenerated:{modules:[390225]},ssr:!1,loading:()=>(0,t.jsx)("div",{className:"h-full w-full animate-pulse",style:{background:"#e9eef0"}})});function ea({config:e}){let s=e.theme,a=`https://www.google.com/maps?q=${encodeURIComponent(e.mapQuery)}&output=embed`;return(0,t.jsx)("section",{id:"contact",className:"px-4 py-20 sm:px-6",style:{background:"#fff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-6xl",children:[(0,t.jsx)(v.Heading,{eyebrow:"Come say hello",title:"Visit, call, or send us a message",theme:s}),(0,t.jsxs)("div",{className:"mt-8 grid items-start gap-8 lg:grid-cols-2",children:[(0,t.jsx)(ee,{config:e}),(0,t.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,t.jsxs)("div",{className:"space-y-3 text-sm",style:{color:s.ink},children:[(0,t.jsxs)("p",{className:"flex items-center gap-3",children:[(0,t.jsx)(d.Icon,{k:"pin",className:"h-5 w-5",style:{color:s.accent}}),e.address.street,", ",e.address.city,", ",e.address.province," ",e.address.postal]}),(0,t.jsxs)("p",{className:"flex items-center gap-3",children:[(0,t.jsx)(d.Icon,{k:"phone",className:"h-5 w-5",style:{color:s.accent}}),(0,t.jsx)("a",{href:`tel:${e.phoneDirect}`,className:"re-foc font-semibold hover:underline",children:e.phoneDirect}),e.phoneOffice?(0,t.jsxs)("span",{style:{color:s.slate},children:["· office ",e.phoneOffice]}):null]}),(0,t.jsxs)("p",{className:"flex items-center gap-3",children:[(0,t.jsx)(d.Icon,{k:"mail",className:"h-5 w-5",style:{color:s.accent}}),(0,t.jsx)(et.CopyableEmail,{email:e.email,color:s.ink,accent:s.accent})]})]}),(0,t.jsxs)("p",{className:"text-xs leading-relaxed",style:{color:s.slate},children:[e.brokerage,e.brokerageNote?` \xb7 ${e.brokerageNote}
4`:"",". Not intended to solicit buyers or sellers currently under contract with a brokerage."]}),(0,t.jsx)("div",{className:"h-[280px] overflow-hidden rounded-2xl border md:h-[320px]",style:{borderColor:s.sand},children:"number"==typeof e.officeLat&&"number"==typeof e.officeLng?(0,t.jsx)(es,{lat:e.officeLat,lng:e.officeLng,label:`${e.brandName} \xb7 ${e.address.street}, ${e.address.city}`,accent:s.accent,accentDeep:s.accentDeep}):(0,t.jsx)("iframe",{title:"Office location",src:a,className:"h-full w-full",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade"})})]})]})]})})}var er=e.i(360632),el=e.i(140766),en=e.i(196376);function eo({config:e}){let s=e.theme,a=(0,el.footerNavLinks)(e),r=(0,el.footerLegalLinks)(e),l=!0===e.creaLicensed;return(0,t.jsx)("footer",{className:"px-4 py-12 sm:px-6",style:{background:s.charcoal},children:(0,t.jsxs)("div",{className:"mx-auto max-w-7xl",children:[(0,t.jsxs)("div",{className:"flex flex-col items-center justify-between gap-6 sm:flex-row",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,t.jsx)("span",{className:"flex h-9 w-9 items-center justify-center rounded-xl",style:{background:`linear-gradient(135deg, ${s.accent}, ${s.accentDark})`},children:(0,t.jsx)(d.Icon,{k:"home",className:"h-4 w-4 text-white"})}),(0,t.jsx)("span",{className:"font-serif text-lg font-bold text-white",children:e.brandName})]}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-2 text-sm text-white/70",children:[(0,t.jsxs)("a",{href:`tel:${e.phoneDirect}`,className:"re-foc inline-flex items-center gap-1.5 hover:text-white",children:[(0,t.jsx)(d.Icon,{k:"phone",className:"h-3.5 w-3.5"})," ",e.phoneDirect]}),(0,t.jsxs)("span",{className:"inline-flex items-center gap-1.5",children:[(0,t.jsx)(d.Icon,{k:"mail",className:"h-3.5 w-3.5 shrink-0"}),(0,t.jsx)(et.CopyableEmail,{email:e.email,color:"rgba(255,255,255,0.92)",accent:"rgba(255,255,255,0.7)"})]}),(0,t.jsx)("span",{children:e.region})]})]}),(0,t.jsx)("nav",{"aria-label":"Footer",className:"mt-8 flex flex-wrap justify-center gap-x-6 gap-y-2 text-sm text-white/70 sm:justify-start",children:a.map(e=>(0,t.jsx)(o.default,{href:e.href,className:"re-foc hover:text-white",children:e.label},e.label))}),(0,t.jsx)(g.NativeLanguageGuidesStrip,{config:e,tone:"dark"}),(0,t.jsx)("div",{className:"mt-8 flex justify-center sm:justify-start",children:(0,t.jsx)(er.FooterNewsletterForm,{config:e})}),(0,t.jsxs)("div",{className:"mt-8 border-t border-white/10 pt-6 text-center text-xs leading-relaxed text-white/45",children:[e.footerAgents&&e.footerAgents.length>0&&(0,t.jsx)("p",{className:"mb-2 text-white/55",children:e.footerAgents.map(e=>`${e.name} â ${e.designations}`).join(" · ")}),(0,t.jsxs)("p",{children:[e.brokerage,e.brokerageNote?` â ${e.brokerageNote}`:"",".",l?(0,t.jsxs)(t.Fragment,{children:[" ",en.CREA_TRADEMARK_STATEMENT]}):""]}),(0,t.jsx)("nav",{"aria-label":"Legal",className:"mt-3 flex flex-wrap items-center justify-center gap-x-4 gap-y-1",children:r.map(e=>(0,t.jsx)(o.default,{href:e.href,className:"re-foc text-white/55 underline-offset-2 hover:text-white hover:underline",children:e.label},e.label))}),(0,t.jsxs)("p",{className:"mt-2 text-white/50",children:["© ",new Date().getFullYear()," ",e.brandName]}),e.photoCredit&&(0,t.jsx)("p",{className:"mt-2 text-[11px] text-white/50",children:e.photoCredit})]})]})})}function ei({config:e,scrollTo:s}){let a=e.theme;return(0,t.jsx)("div",{className:"re-glass fixed inset-x-0 bottom-0 z-40 border-t lg:hidden",style:{borderColor:a.sand},children:(0,t.jsxs)("div",{className:"mx-auto grid max-w-md grid-cols-3 gap-2 px-3 py-2.5",children:[(0,t.jsxs)("a",{href:`tel:${e.phoneDirect}`,className:"re-foc flex flex-col items-center gap-0.5 rounded-lg py-1.5 text-[11px] font-semibold",style:{color:a.ink},children:[(0,t.jsx)(d.Icon,{k:"phone",className:"h-5 w-5",style:{color:a.accent}}),"Call"]}),(0,t.jsxs)("button",{onClick:()=>s("listings"),className:"re-foc flex flex-col items-center gap-0.5 rounded-lg py-1.5 text-[11px] font-semibold",style:{color:a.ink},children:[(0,t.jsx)(d.Icon,{k:"search",className:"h-5 w-5",style:{color:a.accent}}),"Search"]}),(0,t.jsxs)("button",{onClick:()=>s("home-value"),className:"re-foc flex flex-col items-center gap-0.5 rounded-lg py-1.5 text-[11px] font-semibold",style:{color:a.ink},children:[(0,t.jsx)(d.Icon,{k:"trending",className:"h-5 w-5",style:{color:a.accent}}),"Home value"]})]})})}var ec=e.i(611845),ed=e.i(392148);function em({config:e,boardCities:o,guides:i}){let c=e.theme,d=e.listings,m=d.filter(e=>"sold"===e.status),h=d.filter(e=>"coming_soon"===e.status),p=d.filter(e=>
4"sold"!==e.status&&"coming_soon"!==e.status),[b,v]=(0,s.useState)(l.EMPTY_LISTING_FILTER),N=Array.from(new Set(p.map(e=>e.city).filter(Boolean))),k=o?.length?o:N,C=Array.from(new Set(p.map(e=>e.propertyType).filter(Boolean))),$=p.filter(e=>{if(b.city&&e.city!==b.city||b.priceMin&&e.price<b.priceMin||b.priceMax&&e.price>b.priceMax||b.bedsMin&&e.beds<b.bedsMin||b.bathsMin&&e.baths<b.bathsMin||b.type&&e.propertyType!==b.type)return!1;if(b.keyword){let t=b.keyword.toLowerCase();if(![e.address,e.neighbourhood,e.city,e.propertyType].filter(Boolean).join(" ").toLowerCase().includes(t))return!1}return!0}),[I,_]=(0,s.useState)(!1),[L,F]=(0,s.useState)(!1),[M,B]=(0,s.useState)("grid"),[R,O]=(0,s.useState)(0),[G,K]=(0,s.useState)(!1),Q=(0,a.useRouter)(),[Z,X]=(0,s.useState)(""),ee=(0,s.useRef)(null),et=e.heroImages?.length?e.heroImages:[e.heroImage];(0,s.useEffect)(()=>{let e=()=>_(window.scrollY>24);return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]),(0,s.useEffect)(()=>{let e=ee.current;if(!e)return;let t=Array.from(e.querySelectorAll("section > div:first-child"));if(!("IntersectionObserver"in window))return void t.forEach(e=>e.classList.add("re-reveal","re-in"));let s=new IntersectionObserver(e=>{for(let t of e)t.isIntersecting&&(t.target.classList.add("re-in"),s.unobserve(t.target))},{threshold:.1,rootMargin:"0px 0px -6% 0px"});return t.forEach(e=>{e.classList.add("re-reveal"),e.getBoundingClientRect().top<.92*window.innerHeight?e.classList.add("re-in"):s.observe(e)}),()=>s.disconnect()},[]),(0,s.useEffect)(()=>{if(et.length<=1||G)return;let e=setInterval(()=>O(e=>(e+1)%et.length),6e3);return()=>clearInterval(e)},[et.length,G]);let es=e=>{F(!1),document.getElementById(e)?.scrollIntoView({behavior:"smooth"})},er=[{label:"Buy",menu:[{label:"Home search",href:(0,n.reSiteHref)(e,"/search")},{label:"My saved homes",href:(0,n.reSiteHref)(e,"/my-homes")},{label:"Listings",id:"listings"},{label:"Buying guides",href:(0,n.reSiteHref)(e,"/guides#buy")}]},{label:"Sell",menu:[{label:"What's my home worth?",id:"home-value"},{label:"Selling guides",href:(0,n.reSiteHref)(e,"/guides#sell")}]},{label:"Communities",id:"communities"},{label:"About",href:(0,n.reSiteHref)(e,"/about")},{label:"Resources",href:(0,n.reSiteHref)(e,"/guides")},...e.blog.some(e=>e.published)?[{label:"Blog",href:(0,n.reSiteHref)(e,"/blog")}]:[],{label:"Reviews",id:"reviews"},{label:"Contact",id:"contact"}],el={"--re-accent":c.accent,"--re-accent-dark":c.accentDark,"--re-accent-deep":c.accentDeep,"--re-ink":c.ink,"--re-cream":c.cream,"--re-linen":c.linen,"--re-sand":c.sand};return(0,t.jsxs)("div",{ref:ee,"data-re-shell":"re-home",className:"re-site-root re-safe-bottom min-h-screen font-sans",style:{...el,background:c.cream,color:c.ink},children:[(0,t.jsx)("style",{children:` 5 /* Lift the shared chat FAB above the sticky mobile CTA bar so they don't 6 collide (~375px). The CTA bar is lg:hidden, so the offset is zeroed at 7 lg+ where the FAB sits at its default bottom. */ 8 .re-site-root{--cwa-fab-offset:78px} 9 @media (min-width:1024px){.re-site-root{--cwa-fab-offset:0px}} 10 .re-card{background:#fff;border:1px solid var(--re-sand);border-radius:1rem;box-shadow:0 1px 2px rgba(33,26,24,.04),0 14px 30px -18px rgba(200,16,46,.18);transition:transform .25s ease,box-shadow .25s ease} 11 .re-card:hover{transform:translateY(-4px);box-shadow:0 2px 6px rgba(33,26,24,.06),0 26px 52px -20px rgba(200,16,46,.30)} 12 .re-glass{background:rgba(251,248,244,.82);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%)} 13 .re-glass-dark{background:rgba(31,20,17,.5);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)} 14 .re-btn-primary{background:linear-gradient(135deg,var(--re-accent),var(--re-accent-dark));color:#fff;box-shadow:0 10px 22px -10px rgba(200,16,46,.55);transition:transform .2s ease,box-shadow .2s ease} 15 .re-btn-primary:hover{transform:translateY(-2px);box-shadow:0 16px 30px -10px rgba(200,16,46,.65)} 16 .re-btn-primary:active{transform:translateY(0)} 17 @media (prefers-reduced-motion: reduce){.re-card,.re-btn-primary,.re-card *{transition:none !important}} 18 .re-input:focus{box-shadow:0 0 0 3px rgba(200,16,46,.18);border-color:var(--re-accent)} 19 .re-foc:focus-visible{outline:2px solid var(--re-accent);outline-offset:2px;border-radius:8px} 20 [id]{scroll-margin-top:72px} 21 .re-reveal{opacity:0;transform:translateY(20px);transition:opacity .7s cubic-bezier(.16,1,.3,1),transform .7s cubic-bezier(.16,1,.3,1)} 22 .re-reveal.re-in{opacity:1;transform:none} 23 /* Staggered card cascade: children of a .re-stagger grid animate in one 24 after another as their section reveals (premium Linear/Stripe feel). */ 25 .re-reveal .re-stagger>*{opacity:0;transform:translateY(16px);transition:opacity .55s cubic-bezier(.16,1,.3,1),transform .55s cubic-bezier(.16,1,.3,1)} 26 .re-reveal.re-in .re-stagger>*{opacity:1;transform:none} 27 .re-reveal.re-in .re-stagger>
27*:nth-child(2){transition-delay:.06s} 28 .re-reveal.re-in .re-stagger>*:nth-child(3){transition-delay:.12s} 29 .re-reveal.re-in .re-stagger>*:nth-child(4){transition-delay:.18s} 30 .re-reveal.re-in .re-stagger>*:nth-child(5){transition-delay:.24s} 31 .re-reveal.re-in .re-stagger>*:nth-child(n+6){transition-delay:.3s} 32 /* Animated underline for text nav links. */ 33 .re-navlink{position:relative} 34 .re-navlink::after{content:'';position:absolute;left:0;right:0;bottom:-6px;height:2px;border-radius:2px;background:var(--re-accent);transform:scaleX(0);transform-origin:left;transition:transform .22s cubic-bezier(.16,1,.3,1)} 35 .re-navlink:hover::after,.re-navlink:focus-visible::after{transform:scaleX(1)} 36 @media (prefers-reduced-motion: reduce){.re-reveal .re-stagger>*{opacity:1 !important;transform:none !important;transition:none}.re-navlink::after{transition:none}} 37 .re-hero-img{animation:re-kb 17s ease-in-out infinite alternate;will-change:transform} 38 @keyframes re-kb{from{transform:scale(1.16) translate(-1.2%,0)}to{transform:scale(1.02) translate(1.2%,-3%)}} 39 /* Hero ken-burns intentionally keeps running under reduced-motion (founder choice 2026-06-25); only the scroll-reveal respects the setting. */ 40 @media (prefers-reduced-motion: reduce){.re-reveal{opacity:1 !important;transform:none !important;transition:none}} 41 `}),(0,t.jsx)("a",{href:"#main-content",className:"fixed left-2 top-2 z-[100] -translate-y-16 rounded-lg px-4 py-2.5 text-sm font-semibold text-white transition-transform focus:translate-y-0",style:{background:c.accent},children:"Skip to main content"}),(0,t.jsx)(x,{config:e,navLinks:er,scrolled:I,menuOpen:L,setMenuOpen:F,scrollTo:es}),(0,t.jsx)("div",{"aria-hidden":"true",style:{height:"calc(60px + var(--re-callbar-h, 0px))"}}),(0,t.jsx)(g.NativeLanguageGuidesStrip,{config:e,tone:"light"}),(0,t.jsx)(u,{config:e,scrollTo:es}),(0,t.jsxs)("main",{id:"main-content",className:"contents",children:[(0,t.jsx)(f,{config:e,heroSlides:et,heroIndex:R,setHeroIndex:O,setHeroPaused:K,heroSearch:Z,setHeroSearch:X,submitHeroSearch:()=>{let t=Z.trim(),s=(0,S.resolveQuickSearchCity)(t,k),a=(0,S.listingSearchQueryToParams)({...S.EMPTY_SEARCH_QUERY,...s?{city:s}:t?{keyword:t}:{}}).toString();Q.push(`${(0,n.reSiteHref)(e,"/search")}${a?`?${a}`:""}`)}}),(0,t.jsx)(y,{config:e}),(0,t.jsx)(j,{config:e}),(0,t.jsx)(P,{config:e}),(0,t.jsx)(w,{config:e}),(0,t.jsx)(z,{config:e,comingSoonListings:h}),(0,t.jsx)(A,{config:e,filters:b,setFilters:v,cityOptions:k,typeOptions:C,filteredListings:$,listingView:M,set
41ListingView:B}),(0,t.jsx)(E,{config:e}),(0,t.jsx)(D,{config:e}),(0,t.jsx)(T,{config:e}),(0,t.jsx)(H,{config:e}),(0,t.jsx)(W,{config:e,soldListings:m}),(0,t.jsx)(q,{config:e,guides:i}),(0,t.jsx)(U,{config:e,theme:c}),(0,t.jsx)(Y,{config:e}),(0,t.jsx)(J,{config:e}),(0,t.jsx)(V.FaqSection,{config:e}),(0,t.jsx)(ea,{config:e})]}),(0,t.jsx)(eo,{config:e}),(0,t.jsx)(ei,{config:e,scrollTo:es}),(0,t.jsx)(r.default,{businessId:e.chatBusinessId,vertical:e.chatVertical,churchName:e.brandName,minRows:3,persistKey:e.chatBusinessId,proSiteSlug:e.slug}),(0,t.jsx)(ed.TalkLauncher,{config:e,hidden:L}),(0,t.jsx)(ec.BackToTop,{accent:c.accent,accentDark:c.accentDark})]})}e.s(["RealEstateSiteTemplate",0,em,"default",0,em],427071)},171205,e=>{"use strict";var t=e.i(338778),s=e.i(130527),a=e.i(186070),r=e.i(624979),l=e.i(735021);let n={"--brand-primary":"#1B365D","--brand-primary-dark":"#0f2240","--brand-accent":"#D4AF37","--brand-accent-dark":"#b8960f","--brand-foreground":"#1c1917","--brand-on-primary":"#ffffff","--brand-surface":"#FEFCF8","--brand-surface-alt":"#f5f0e8"};function o({prospectChurchId:e,churchName:s}){let a=`Hi! I'm a demo of what ${s}'s AI assistant could look like on your website. Try asking me about service times, beliefs, how to get involved, or anything a first-time visitor might want to know.`;return(0,t.jsx)("div",{style:n,"aria-label":"ChurchWiseAI floating demo widget",children:(0,t.jsx)(l.BrandSalesChatbot,{brand:"playground-church",prospectChurchId:e,title:`${s} AI Assistant`,initialGreeting:a,suggestedPrompts:[`Directions to ${s}`,"Submit a prayer request","Email me your service times","Tell me about your beliefs"],position:"bottom-right",defaultOpen:!1,inline:!1})})}var i=e.i(655613),c=e.i(289065),d=e.i(193426),m=e.i(908399),x=e.i(154626),h=e.i(103528),u=e.i(618391),p=e.i(36474),f=e.i(99515);let g="plumbing",b=["plumbing","roofing","salon","hvac","landscaping","cleaning","vet","funeral","dental","electrical","garage_doors","pest_control","auto_repair","computer_repair"],y={veterinary:"vet",vet_clinic:"vet",funeral_home:"funeral",mortuary:"funeral",landscape:"landscaping",lawn_care:"landscaping",hair_salon:"salon",beauty:"salon",hvac_heating_cooling:"hvac",dentist:"dental",dental_office:"dental",dental_clinic:"dental",electrician:"electrical",electric:"electrical",garagedoors:"garage_doors",garage:"garage_doors",garage_door:"garage_doors",overhead_door:"garage_doors",pestcontrol:"pest_control",pest:"pest_control",exterminator:"pest_control",autorepair:"auto_repair",auto:"auto_repair",mechanic:"auto_repair",auto_body:"auto_repair",automotive:"auto_repair",mechanical:"auto_repair",computerrepair:"computer_repair",computer:"computer_repair",pc_repair:"computer_repair",it_support:"computer_repair",it_services:"computer_repair",it_repair:"computer_repair",computer_services:"computer_repair"},j=e=>`/templates/${e}`,v=[`${j("plumbing")}/hero.jpg`,`${j("plumbing")}/hero-poster.jpg`,`${j("plumbing")}/slide-spanner.jpg`,`${j("plumbing")}/slide-pipework.jpg`,`${j("plumbing")}/slide-radiator-install.jpg`,`${j("plumbing")}/slide-waterpump.jpg`,`${j("plumbing")}/slide-hands-wrench.jpg`,`${j("plumbing")}/slide-bathroom.jpg`,`${j("plumbing")}/slide-shower.jpg`],w=e=>[`${j(e)}/hero.jpg`],N={plumbing:{heroPoster:`${j("plumbing")}/hero.jpg`,separator:`${j("plumbing")}/separator.jpg`,slideshow:v},roofing:{heroPoster:`${j("roofing")}/hero.jpg`,separator:`${j("roofing")}/separator.jpg`,slideshow:w("roofing")},salon:{heroPoster:`${j("salon")}/hero.jpg`,separator:`${j("salon")}/separator.jpg`,slideshow:w("salon")},hvac:{heroPoster:`${j("hvac")}/hero.jpg`,separator:`${j("hvac")}/separator.jpg`,slideshow:w("hvac")},landscaping:{heroPoster:`${j("landscaping")}/hero.jpg`,separator:`${j("landscaping")}/separator.jpg`,slideshow:w("landscaping")},cleaning:{heroPoster:`${j("cleaning")}/hero.jpg`,separator:`${j("cleaning")}/separator.jpg`,slideshow:w("cleaning")},vet:{heroPoster:`${j("vet")}/hero.jpg`,separator:`${j("vet")}/separator.jpg`,slideshow:w("vet")},funeral:{heroPoster:`${j("funeral")}/hero.jpg`,separator:`${j("funeral")}/separator.jpg`,slideshow:w("funeral")},dental:{heroPoster:`${j("dental")}/hero.jpg`,separator:`${j("dental")}/separator.jpg`,slideshow:w("dental")},electrical:{heroPoster:`${j("electrical")}/hero.jpg`,separator:`${j("electrical")}/separator.jpg`,slideshow:w("electrical")},garage_doors:{heroPoster:`${j("garage_doors")}/hero.jpg`,separator:`${j("garage_doors")}/separator.jpg`,slideshow:w("garage_doors")},pest_control:{heroPoster:`${j("pest_control")}/hero.jpg`,separator:`${j("pest_control")}/separator.jpg`,slideshow:w("pest_control")},auto_repair:{heroPoster:`${j("auto_repair")}/hero.jpg`,separator:`${j("auto_repair")}/separator.jpg`,slideshow:w("auto_repair")}
41,computer_repair:{heroPoster:`${j("computer_repair")}/hero.jpg`,separator:`${j("computer_repair")}/separator.jpg`,slideshow:w("computer_repair")}};function k(e){if(!e)return g;let t=String(e).trim().toLowerCase();return b.includes(t)?t:t in y?y[t]:g}f.TRANSITION_VIDEOS;var C=e.i(311774),S=e.i(658166),$=e.i(443675);function I({businessName:e,accent:a,accentDark:r,accentTint:l,messagePlaceholder:n}){let[o,i]=(0,s.useState)(!1),[c,d]=(0,s.useState)(""),[m,x]=(0,s.useState)(""),[h,u]=(0,s.useState)(""),p=c.trim().length>0&&m.trim().length>0,f=`linear-gradient(135deg, ${a}, ${r})`;if(o)return(0,t.jsxs)("div",{className:"rounded-2xl border border-slate-200 bg-white p-10 text-center shadow-sm",children:[(0,t.jsx)("div",{className:"mx-auto mb-5 inline-flex h-14 w-14 items-center justify-center rounded-full",style:{background:l,color:r},children:(0,t.jsx)("svg",{className:"h-7 w-7",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2.2,"aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),(0,t.jsxs)("h3",{className:"mb-2 text-xl font-bold text-slate-900",children:["Thanks",c?`, ${c.split(" ")[0]}`:"","!"]}),(0,t.jsxs)("p",{className:"mx-auto max-w-md text-sm leading-relaxed text-slate-600",children:["In a real deployment, this request goes straight to ",e,"'s inbox â and the AI front desk can reply, quote, and book the job 24/7."]}),(0,t.jsx)("p",{className:"mt-4 text-xs text-slate-400",children:"This is a personalized demo â no message was actually sent."}),(0,t.jsx)("button",{type:"button",onClick:()=>{i(!1),d(""),x(""),u("")},className:"mt-6 text-sm font-semibold hover:underline",style:{color:r},children:"Send another â"})]});let g="w-full rounded-xl border border-slate-300 bg-white px-4 py-3 text-sm text-slate-900 placeholder:text-slate-400 outline-none transition-shadow focus:border-transparent focus:ring-2",b={"--tw-ring-color":a};return(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault(),p&&i(!0)},className:"rounded-2xl border border-slate-200 bg-white p-7 shadow-sm sm:p-8",children:[(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"bq-name",className:"mb-1.5 block text-sm font-semibold text-slate-700",children:"Your name"}),(0,t.jsx)("input",{id:"bq-name",type:"text",value:c,onChange:e=>d(e.target.value),placeholder:"Jane Smith",required:!0,className:g,style:b})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"bq-contact",className:"mb-1.5 block text-sm font-semibold text-slate-700",children:"Phone or email"}),(0,t.jsx)("input",{id:"bq-contact",type:"text",value:m,onChange:e=>x(e.target.value),placeholder:"(519) 555-0142 or [email protected]",required:!0,className:g,style:b})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:"bq-message",className:"mb-1.5 block text-sm font-semibold text-slate-700",children:"What do you need?"}),(0,t.jsx)("textarea",{id:"bq-message",value:h,onChange:e=>u(e.target.value),placeholder:n||"Tell us what you need and the best time to reach you.",rows:4,className:`${g} resize-y`,style:b})]})]}),(0,t.jsx)("button",{type:"submit",disabled:!p,className:"mt-6 w-full rounded-xl px-6 py-3.5 text-sm font-bold text-white shadow-lg transition-all hover:scale-[1.02] active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100",style:{background:f},children:"Request a Free Quote â"}),(0,t.jsx)("p",{className:"mt-3 text-center text-xs text-slate-400",children:"Demo form â your message isn't sent anywhere yet."})]})}let A=["Morning (8amâ12pm)","Afternoon (12pmâ5pm)","Evening (5pmâ8pm)","As soon as possible"];function _({open:e,onClose:a,config:r,businessId:l,businessName:n,services:o,serviceArea:i,city:c,postalCode:d,accent:m,accentDark:x,accentTint:h}){let u=(0,s.useId)(),f=(0,s.useRef)(null),g=(0,s.useRef)(null),b=(0,s.useMemo)(()=>{let e=["service","location","urgency"];return r.showPhotoStep&&e.push("photo"),e.push("schedule","contact","result"),e},[r.showPhotoStep]),[y,j]=(0,s.useState)(0),v=b[y],[w,N]=(0,s.use
41State)(null),[k,C]=(0,s.useState)(""),[S,$]=(0,s.useState)(null),[I,L]=(0,s.useState)(""),[E,D]=(0,s.useState)(null),[T,F]=(0,s.useState)(null),[P,M]=(0,s.useState)(""),[B,R]=(0,s.useState)(""),[H,W]=(0,s.useState)(""),[O,z]=(0,s.useState)(""),[q,U]=(0,s.useState)(!1),[G,Y]=(0,s.useState)(""),[V,K]=(0,s.useState)(()=>Date.now());(0,s.useEffect)(()=>{e&&(j(0),K(Date.now()))},[e]),(0,s.useEffect)(()=>()=>{T&&URL.revokeObjectURL(T)},[T]),(0,s.useEffect)(()=>{if(!e)return;let t=document.body.style.overflow;document.body.style.overflow="hidden";let s=e=>{if("Escape"===e.key&&a(),"Tab"===e.key){let t=f.current?.querySelectorAll('button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])');if(!t||0===t.length)return;let s=Array.from(t),a=s[0],r=s[s.length-1];e.shiftKey&&document.activeElement===a?(e.preventDefault(),r.focus()):e.shiftKey||document.activeElement!==r||(e.preventDefault(),a.focus())}};document.addEventListener("keydown",s);let r=setTimeout(()=>g.current?.focus(),50);return()=>{document.body.style.overflow=t,document.removeEventListener("keydown",s),clearTimeout(r)}},[e,a]);let J=(0,s.useCallback)(e=>{let t=e.target.files?.[0];t&&(D(t.name),T&&URL.revokeObjectURL(T),F(URL.createObjectURL(t)))},[T]),Q=(0,s.useCallback)(()=>{$(function(e,t,s){let a=e.trim().toUpperCase().replace(/\s+/g,""),r=s||"your area";if(!a)return{served:!1,message:""};if(!t)return{served:!0,message:`Great â we serve ${r} and the surrounding region.`};let l=t.trim().toUpperCase().replace(/\s+/g,"");return a.slice(0,3)===l.slice(0,3)||a[0]===l[0]&&a[1]===l[1]?{served:!0,message:`Yes â we serve your area. Youâre right in ${r}.`}:a[0]===l[0]?{served:!0,message:`Youâre close to ${r} â we can likely help. Weâll confirm when we reach out.`}:{served:!1,message:`You may be slightly outside our usual ${r} area â but we still may be able to help. Send your request and weâll let you know.`}}(k,d,i||c||""))},[k,d,i,c]),Z=(0,s.useMemo)(()=>{if(!r.showEstimate)return null;let e=(0,p.parsePriceBase)(w?.price),t=r.urgencyOptions.find(e=>e.value===I),s=t?.estimateFactor??1;return(0,p.computeInstantEstimate)(e,s)},[r.showEstimate,r.urgencyOptions,w,I]),X=(0,s.useMemo)(()=>{switch(v){case"service":return!!w;case"location":return k.trim().length>=3;case"urgency":return!!I;case"photo":return!0;case"schedule":return!!P;case"contact":return B.trim().length>0&&(H.trim().length>0||O.trim().length>0)&&q;default:return!1}},[v,w,k,I,P,B,H,O,q]),ee=(0,s.useCallback)(()=>{"location"!==v||S||Q(),j(e=>Math.min(e+1,b.length-1))},[v,S,Q,b.length]),et=(0,s.useCallback)(()=>j(e=>Math.max(e-1,0)),[]),es=(0,s.useCallback)(()=>{if(l)try{fetch("/api/local-business/demo-lead",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({businessId:l,submissionId:"u">typeof crypto&&"randomUUID"in crypto?`demo-wizard-${crypto.randomUUID()}`:`demo-wizard-${Date.now()}-${Math.random().toString(36).slice(2)}`,service:w?.name??null,zip:k||null,urgency:I||null,preferredTime:P||null,name:B,phone:H||null,email:O||null,photoAttached:!!E,company:G,renderedAt:V})}).catch(()=>{})}catch{}j(b.indexOf("result"))},[b,l,w,k,I,P,B,H,O,E,G,V]),ea=(0,s.useCallback)(()=>{j(0),N(null),C(""),$(null),L(""),T&&URL.revokeObjectURL(T),D(null),F(null),M(""),R(""),W(""),z(""),U(!1)},[T]);if(!e)return null;let er=`linear-gradient(135deg, ${m}, ${x})`,el="w-full rounded-xl border border-slate-300 bg-white px-4 py-3 text-sm text-slate-900 placeholder:text-slate-400 outline-none transition-shadow focus:border-transparent focus:ring-2",en={"--tw-ring-color":m},eo=b.filter(e=>"result"!==e),ei="result"===v?eo.length:eo.indexOf(v),ec=Math.round(ei/eo.length*100),ed=B.trim().split(" ")[0]||"";return(0,t.jsx)("div",{className:"fixed inset-0 z-[100000] flex items-end justify-center bg-slate-900/60 p-0 backdrop-blur-sm sm:items-center sm:p-6",role:"presentation",onMouseDown:e=>{e.target===e.currentTarget&&a()},children:(0,t.jsxs)("div",{ref:f,role:"dialog","aria-modal":"true","aria-labelledby":`${u}-title`,className:"flex max-h-[92vh] w-full max-w-xl flex-col overflow-hidden rounded-t-2xl bg-white shadow-2xl sm:rounded-2xl",children:[(0,t.jsxs)("div",{className:"flex shrink-0 items-start justify-between gap-4 border-b border-slate-100 px-6 pb-4 pt-5",children:[(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("h2",{id:`${u}-title`,className:"text-lg font-bold text-slate-900",children:"result"===v?`${n}`:r.wizardTitle}),"result"!==v&&(0,t.jsx)("p",{className:"mt-0.5 truncate text-xs text-slate-500",children:r.wizardSubtitle})]}),(0,t.jsx)("button",{type:"button",onClick:a,"aria-label":"Close",className:"-mr-1.5 -mt-1 shrink-0 rounded-lg p-1.5 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 focus-visible:outline-2 focus-visible:outline-offset-2",style:{outlineColor:m},children:(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),"result"!==v&&(0,t.jsxs)("div",{className:"shrink-0 px-6 pt-4",children:[(0,t.jsxs)("div",{className:"mb-1.5 flex items-center justify-between text-xs font-medium text-slate-500",children:[(0,t.jsxs)("span",{children:["Step ",ei+1," of ",eo.length]}),(0,t.jsxs)("span",{children:[ec,"%"]})]}),(0,t.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded-full bg-slate-100","aria-hidden":"true",children:(0,t.jsx)("div",{className:"h-full rounded-full transition-all duration-300",style:{width:`${Math.max(ec,8)}%`,background:er}})})]}),(0,t.jsx)("p",{className:"sr-only","aria-live":"polite",children:"result"===v?"Request received.":`Step ${ei+1} of ${eo.length}.`}),(0,t.jsxs)("div",{className:"flex-1 overflow-y-auto px-6 py-6",children:["service"===v&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{className:"mb-1 text-base font-semibold text-slate-900",children:r.serviceStepLabel}),(0,t.jsx)("p",{className:"mb-4 text-sm text-slate-500",children:r.serviceStepHelp}),(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:o.length>0?o.map((e,s)=>{let a=w?.name===e.name;return(0,t.jsx)("button",{ref:0===s?g:void 0,type:"button",onClick:()=>N(e),"aria-pressed":a,className:"rounded-full border px-4 py-2 text-sm font-medium transition-all focus-visible:outline-2 focus-visible:outline-offset-2",style:a?{background:m,borderColor:m,color:"#fff",outlineColor:x}:{background:"#fff",borderColor:"#CBD5E1",color:"#334155",outlineColor:m},children:e.name},`${e.name}-${s}`)}):(0,t.jsxs)("p",{className:"text-sm text-slate-500",children:["In a live deployment these are ",n,"'s real services."]})})]}),"location"===v&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${u}-zip`,className:"mb-1 block text-base font-semibold text-slate-900",children:r.locationStepLabel}),(0,t.jsx)("p",{className:"mb-4 text-sm text-slate-500",children:r.locationStepHelp}),(0,t.jsxs)("div",{className:"flex flex-col gap-2 sm:flex-row",children:[(0,t.jsx)("input",{id:`${u}-zip`,ref:g,type:"text",inputMode:"text",autoComplete:"postal-code",value:k,onChange:e=>{C(e.target.value),$(null)},onBlur:Q,placeholder:"e.g. N5C 1G2",className:el,style:en}),(0,t.jsx)("button",{type:"button",onClick:Q,className:"shrink-0 rounded-xl px-5 py-3 text-sm font-semibold text-white shadow-sm transition-transform hover:scale-[1.02] active:scale-[0.99]",style:{background:er},children:"Check"})]}),S?.message&&(0,t.jsxs)("div",{className:"mt-4 flex items-start gap-2.5 rounded-xl border p-3.5 text-sm",style:{borderColor:S.served?m:"#FCD34D",background:S.served?h:"#FFFBEB",color:"#334155"},role:"status",children:[(0,t.jsx)("span",{"aria-hidden":"true",className:"mt-0.5 shrink-0",style:{color:S.served?x:"#B45309"},children:S.served?(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}):(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v4m0 4h.01M10.29 3.86L1.82 18a2 2 0 001.71 3h16.94a2 2 0 001.71-3L13.71 3.86a2 2 0 00-3.42 0z"})})}),(0,t.jsx)("span",{children:S.message})]})]}),"urgency"===v&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{className:"mb-1 text-base font-semibold text-slate-900",children:r.urgencyStepLabel}),(0,t.jsx)("p",{className:"mb-4 text-sm text-slate-500",children:r.urgencyStepHelp}),(0,t.jsx)("div",{className:"flex flex-col gap-2.5",children:r.urgencyOptions.map((e,s)=>{let a=I===e.value;return(0,t.jsxs)("button",{ref:0===s?g:void 0,type:"button",onClick:()=>L(e.value),"aria-pressed":a,className:"flex items-center gap-3 rounded-xl border px-4 py-3.5 text-left text-sm font-medium transition-all focus-visible:outline-2 focus-visible:outline-offset-2",style:a?{borderColor:m,background:h,color:"#0f172a",outlineColor:x}:{borderColor:"#E2E8F0",background:"#fff",color:"#334155",outlineColor:m},children:[(0,t.jsx)("span",{className:"flex h-5 w-5 shrink-0 items-center justify-center rounded-full border-2",style:{borderColor:a?m:"#CBD5E1",background:a?m:"#fff"},"aria-hidden":"true",children:a&&(0,t.jsx)("svg",{className:"h-3 w-3 text-white",f
41ill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:3,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),e.label]},e.value)})})]}),"photo"===v&&(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${u}-photo`,className:"mb-1 block text-base font-semibold text-slate-900",children:r.photoStepLabel}),(0,t.jsx)("p",{className:"mb-4 text-sm text-slate-500",children:r.photoStepHelp}),(0,t.jsxs)("label",{htmlFor:`${u}-photo`,className:"flex cursor-pointer flex-col items-center justify-center gap-2 rounded-2xl border-2 border-dashed px-6 py-8 text-center transition-colors hover:bg-slate-50",style:{borderColor:"#CBD5E1"},children:[T?(0,t.jsx)("img",{src:T,alt:`Preview of ${E??"your upload"}`,className:"max-h-44 w-auto rounded-lg object-contain shadow-sm"}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"inline-flex h-12 w-12 items-center justify-center rounded-full",style:{background:h,color:x},"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 16.5V18a2 2 0 002 2h14a2 2 0 002-2v-1.5M7 9l5-5m0 0l5 5m-5-5v12"})})}),(0,t.jsx)("span",{className:"text-sm font-semibold text-slate-700",children:"Tap to add a photo"}),(0,t.jsx)("span",{className:"text-xs text-slate-400",children:"JPG or PNG â optional"})]}),(0,t.jsx)("input",{id:`${u}-photo`,ref:g,type:"file",accept:"image/*",className:"sr-only",onChange:J})]}),E&&(0,t.jsxs)("p",{className:"mt-3 flex items-center gap-2 text-sm text-slate-600",children:[(0,t.jsx)("span",{className:"truncate font-medium",children:E}),(0,t.jsx)("button",{type:"button",onClick:()=>{T&&URL.revokeObjectURL(T),D(null),F(null)},className:"shrink-0 text-xs font-semibold underline",style:{color:x},children:"Remove"})]}),(0,t.jsx)("p",{className:"mt-3 text-xs text-slate-400",children:"Demo only â your photo stays in your browser and isn't uploaded anywhere."})]}),"schedule"===v&&(0,t.jsxs)("fieldset",{children:[(0,t.jsx)("legend",{className:"mb-1 text-base font-semibold text-slate-900",children:r.scheduleStepLabel}),(0,t.jsx)("p",{className:"mb-4 text-sm text-slate-500",children:r.scheduleStepHelp}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-2.5 sm:grid-cols-2",children:A.map((e,s)=>{let a=P===e;return(0,t.jsx)("button",{ref:0===s?g:void 0,type:"button",onClick:()=>M(e),"aria-pressed":a,className:"rounded-xl border px-4 py-3 text-sm font-medium transition-all focus-visible:outline-2 focus-visible:outline-offset-2",style:a?{borderColor:m,background:h,color:"#0f172a",outlineColor:x}:{borderColor:"#E2E8F0",background:"#fff",color:"#334155",outlineColor:m},children:e},e)})}),(0,t.jsx)("p",{className:"mt-3 text-xs text-slate-400",children:"This is a request, not a confirmed booking â we'll confirm the exact time with you."})]}),"contact"===v&&(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("p",{className:"text-base font-semibold text-slate-900",children:r.contactStepLabel}),(0,t.jsxs)("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:`${u}-company`,children:"Company"}),(0,t.jsx)("input",{id:`${u}-company`,name:"company",type:"text",tabIndex:-1,autoComplete:"off",value:G,onChange:e=>Y(e.target.value)})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${u}-name`,className:"mb-1.5 block text-sm font-semibold text-slate-700",children:"Your name"}),(0,t.jsx)("input",{id:`${u}-name`,ref:g,type:"text",autoComplete:"name",value:B,onChange:e=>R(e.target.value),placeholder:"Jane Smith",className:el,style:en})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${u}-phone`,className:"mb-1.5 block text-sm font-semibold text-slate-700",children:"Phone"}),(0,t.jsx)("input",{id:`${u}-phone`,type:"tel",autoComplete:"tel",value:H,onChange:e=>W(e.target.value),placeholder:"(519) 555-0142",className:el,style:en})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("label",{htmlFor:`${u}-email`,className:"mb-1.5 block text-sm font-semibold text-slate-700",children:"Email"}),(0,t.jsx)("input",{id:`${u}-email`,type:"email",autoComplete:"email",value:O,onChange:e=>z(e.target.value),placeholder:"[email protected]",className:el,style:en})]}),(0,t.jsxs)("label",{htmlFor:`${u}-consent`,className:"flex cursor-pointer items-start gap-3 text-sm text-slate-600",children:[(0,t.jsx)("input",{id:`${u}
41-consent`,type:"checkbox",checked:q,onChange:e=>U(e.target.checked),className:"mt-0.5 h-4 w-4 shrink-0 rounded border-slate-300",style:{accentColor:m}}),(0,t.jsx)("span",{children:r.consentLabel})]}),(0,t.jsx)("p",{className:"text-xs text-slate-400",children:"Provide a phone or email so we can reach you."})]}),"result"===v&&(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-6 text-center",children:[(0,t.jsx)("div",{className:"mx-auto mb-4 inline-flex h-14 w-14 items-center justify-center rounded-full",style:{background:h,color:x},"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-7 w-7",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})})}),(0,t.jsx)("h3",{className:"mb-2 text-xl font-bold text-slate-900",children:r.successHeadline.replace("{name}",ed).replace(/,\s*!/,"!")}),(0,t.jsx)("p",{className:"mx-auto max-w-md text-sm leading-relaxed text-slate-600",children:r.successBody})]}),(0,t.jsxs)("div",{className:"mx-auto mb-6 max-w-sm rounded-2xl bg-slate-50 p-4",children:[(0,t.jsx)("p",{className:"mb-2 text-center text-[11px] font-semibold uppercase tracking-wide text-slate-400",children:"Text message"}),(0,t.jsxs)("div",{className:"ml-auto max-w-[85%] rounded-2xl rounded-br-md px-4 py-2.5 text-sm text-white",style:{background:m},children:[ed?`Hi ${ed}! `:"Hi! ","This is ",n,". We got your","guidance"===r.primaryCtaKind?" request":"book"===r.primaryCtaKind?" appointment request":" quote request",w?` for ${w.name}`:"",". We'll be in touch shortly. Reply STOP to opt out."]})]}),r.showEstimate&&Z&&w&&(0,t.jsxs)("div",{className:"mb-6 rounded-2xl border p-5",style:{borderColor:m,background:h},children:[(0,t.jsx)("p",{className:"mb-1 text-xs font-semibold uppercase tracking-wide",style:{color:x},children:"Instant estimate"}),(0,t.jsxs)("p",{className:"text-sm text-slate-700",children:[r.estimateLeadIn," similar ",w.name.toLowerCase()," jobs often start around"," ",(0,t.jsxs)("strong",{className:"whitespace-nowrap text-slate-900",children:[(0,p.formatEstimateDollars)(Z.low),"â",(0,p.formatEstimateDollars)(Z.high)]}),"."]}),(0,t.jsx)("p",{className:"mt-2 text-xs text-slate-500",children:r.estimateDisclaimer})]}),!r.showEstimate&&r.softResultNote&&(0,t.jsx)("div",{className:"mb-6 rounded-2xl border p-4 text-sm text-slate-600",style:{borderColor:"#E2E8F0",background:"#F8FAFC"},children:r.softResultNote}),(0,t.jsxs)("div",{className:"mb-2",children:[(0,t.jsx)("p",{className:"mb-3 text-sm font-semibold text-slate-900",children:"What happens next"}),(0,t.jsx)("ol",{className:"space-y-3",children:r.timelineSteps.map((e,s)=>(0,t.jsxs)("li",{className:"flex items-start gap-3",children:[(0,t.jsx)("span",{className:"mt-0.5 flex h-6 w-6 shrink-0 items-center justify-center rounded-full text-xs font-bold text-white",style:{background:0===s?m:x,opacity:0===s?1:.55},"aria-hidden":"true",children:s+1}),(0,t.jsx)("span",{className:"pt-0.5 text-sm text-slate-600",children:e})]},s))})]}),(0,t.jsx)("p",{className:"mt-6 text-center text-xs text-slate-400",children:"This is a personalized demo â no request, text, or charge was actually sent."}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-2 sm:flex-row sm:justify-center",children:[(0,t.jsx)("button",{type:"button",onClick:ea,className:"rounded-xl border border-slate-300 px-5 py-2.5 text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-50",children:"Start over"}),(0,t.jsx)("button",{type:"button",onClick:a,className:"rounded-xl px-5 py-2.5 text-sm font-bold text-white shadow-sm transition-transform hover:scale-[1.02]",style:{background:er},children:"Done"})]})]})]}),"result"!==v&&(0,t.jsxs)("div",{className:"flex shrink-0 items-center justify-between gap-3 border-t border-slate-100 px-6 py-4",children:[(0,t.jsx)("button",{type:"button",onClick:et,disabled:0===y,className:"rounded-xl px-4 py-2.5 text-sm font-semibold text-slate-500 transition-colors hover:bg-slate-100 disabled:cursor-not-allowed disabled:opacity-40 focus-visible:outline-2 focus-visible:outline-offset-2",style:{outlineColor:m},children:"Back"}),"contact"===v?(0,t.jsx)("button",{type:"button",onClick:es,disabled:!X,className:"rounded-xl px-7 py-3 text-sm font-bold text-white shadow-lg transition-transform hover:scale-[1.02] active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 focus-visible:outline-2 focus-visible:outline-offset-2",style:{background:er,outlineColor:x},children:r.submitLabel}):(0,t.jsx)("button",{type:"button",onClick:ee,disabled:!X,className:"rounded-xl px-7 py-3 text-sm font-bold text-white shadow-lg transition-transform hover:scale-[1.02] active:scale-[0.99] disabled:cursor-not-allowed disabled:opacity-50 disabled:hover:scale-100 focus-visible:outline-2 focus-visible:outline-offset-2",style:{background:er,outlineColor:x},children:"photo"!==v||E?"Next":"Skip"})]})]})})}var L=e.i(711095),E=e.i(93847);function D({businessName:e,logoUrl:r,links:l,phone:n,ctaHref:o,ctaLabel:i,onCtaClick:c,accent:d,accentDark:m}
41){let[x,h]=(0,s.useState)(!1),[u,p]=(0,s.useState)(!1),[f,g]=(0,s.useState)(!1);function b(e,t){if(!t.startsWith("#"))return;let s=document.querySelector(t);s&&(e.preventDefault(),s.scrollIntoView({behavior:"smooth",block:"start"}),p(!1))}function y(e,t){if(c){e.preventDefault(),c(),p(!1);return}b(e,t)}(0,s.useEffect)(()=>{function e(){h(window.scrollY>24)}return e(),window.addEventListener("scroll",e,{passive:!0}),()=>window.removeEventListener("scroll",e)},[]);let j=n?`tel:${n.replace(/\s/g,"")}`:null,v=`linear-gradient(135deg, ${d}, ${m})`,w=x?"text-slate-600 hover:text-slate-900":"text-white/80 hover:text-white",N=x?void 0:{textShadow:"0 1px 4px rgba(0,0,0,0.55)"};return(0,t.jsxs)("header",{className:`fixed inset-x-0 top-0 z-50 transition-all duration-300 ${x?"bg-white/95 shadow-sm backdrop-blur-md":"bg-transparent"}`,style:x?{borderBottom:`1px solid ${d}22`}:void 0,children:[(0,t.jsx)("div",{"aria-hidden":"true",className:`pointer-events-none absolute inset-x-0 top-0 h-28 bg-gradient-to-b from-black/55 via-black/25 to-transparent transition-opacity duration-300 ${x?"opacity-0":"opacity-100"}`}),(0,t.jsxs)("div",{className:"relative mx-auto flex h-16 max-w-6xl items-center justify-between px-4 sm:px-6",children:[(0,t.jsxs)("a",{href:"#top",onClick:e=>b(e,"#top"),className:"flex min-w-0 shrink-0 items-center gap-2.5",children:[r&&!f&&(0,t.jsx)(a.default,{src:r,alt:e,width:32,height:32,onError:()=>g(!0),className:"h-8 w-8 shrink-0 rounded-lg bg-white object-contain"}),(0,t.jsx)("span",{className:`truncate text-sm font-bold sm:text-base ${x?"text-slate-900":"text-white"}`,style:N,children:e})]}),(0,t.jsxs)("nav",{className:"hidden items-center gap-1 lg:flex",children:[l.map(e=>(0,t.jsx)("a",{href:e.href,onClick:t=>b(t,e.href),className:`rounded-md px-3 py-1.5 text-[13px] font-medium transition-colors ${w}`,style:N,children:e.label},e.href)),j&&(0,t.jsxs)("a",{href:j,className:`ml-1 inline-flex items-center gap-1.5 rounded-md px-3 py-1.5 text-[13px] font-semibold transition-colors ${w}`,style:N,children:[(0,t.jsx)(E.Phone,{className:"h-4 w-4 shrink-0"}),n]}),(0,t.jsx)("a",{href:o,onClick:e=>y(e,o),className:"ml-2 rounded-lg px-4 py-2 text-[13px] font-bold text-white shadow-sm transition-all hover:scale-[1.03]",style:{background:v},children:i})]}),(0,t.jsxs)("div",{className:"flex items-center gap-1.5 lg:hidden",children:[j&&(0,t.jsx)("a",{href:j,"aria-label":`Call ${e}`,className:"inline-flex h-9 w-9 items-center justify-center rounded-lg text-white shadow-sm",style:{background:v},children:(0,t.jsx)(E.Phone,{className:"h-4 w-4"})}),(0,t.jsx)("button",{type:"button",onClick:()=>p(e=>!e),"aria-label":"Menu","aria-expanded":u,className:`inline-flex h-9 w-9 items-center justify-center rounded-lg transition-colors ${x?"text-slate-700 hover:bg-slate-100":"text-white hover:bg-white/10"}`,children:u?(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})}):(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 6h16M4 12h16M4 18h16"})})})]})]}),u&&(0,t.jsxs)("div",{className:"border-t border-slate-100 bg-white px-4 py-3 lg:hidden",children:[(0,t.jsxs)("div",{className:"space-y-0.5",children:[l.map(e=>(0,t.jsx)("a",{href:e.href,onClick:t=>b(t,e.href),className:"block rounded-lg px-3 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50",children:e.label},e.href)),j&&(0,t.jsxs)("a",{href:j,onClick:()=>p(!1),className:"flex items-center gap-2 rounded-lg px-3 py-2.5 text-sm font-medium text-slate-700 transition-colors hover:bg-slate-50",children:[(0,t.jsx)(E.Phone,{className:"h-4 w-4 shrink-0 text-slate-400"}),`Call ${n}`]})]}),(0,t.jsx)("a",{href:o,onClick:e=>y(e,o),className:"mt-2 block rounded-lg px-3 py-2.5 text-center text-sm font-bold text-white",style:{background:v},children:i})]})]})}var T=e.i(771008);function F({videoSrc:e,posterSrc:a,accent:r,accentDark:l,dark:n}
41){let[o,i]=(0,s.useState)(!1),c=(0,s.useRef)(null),d=(0,s.useCallback)(()=>{i(!0),requestAnimationFrame(()=>{let e=c.current;e&&e.play().catch(()=>{})})},[]),m=`linear-gradient(135deg, ${r}, ${l})`;return(0,t.jsx)("section",{"aria-label":"Watch a 90-second intro from WiseAI Agency",className:"px-6 py-14",style:{background:n},children:(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:r},children:"WiseAI Agency"}),(0,t.jsx)("h2",{className:"mb-2 text-3xl font-bold text-white",children:"See how the AI front desk works"}),(0,t.jsx)("p",{className:"mx-auto mb-7 max-w-xl text-sm leading-relaxed text-white/70",children:"A quick intro from John at WiseAI Agency â how an AI front desk answers every call and message for your clinic, books appointments, and routes the urgent ones, 24/7. Press play (sound on)."}),(0,t.jsx)("div",{className:"relative mx-auto aspect-video w-full overflow-hidden rounded-2xl border shadow-2xl",style:{borderColor:"rgba(255,255,255,0.10)"},children:o?(0,t.jsx)("video",{ref:c,src:e,poster:a,controls:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 h-full w-full bg-black object-contain"}):(0,t.jsxs)("button",{type:"button",onClick:d,"aria-label":"Play the WiseAI Agency intro video (sound on)",className:"group absolute inset-0 h-full w-full focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white",children:[(0,t.jsx)("img",{src:a,alt:"John from WiseAI Agency, ready to explain the AI front desk for vet clinics",className:"absolute inset-0 h-full w-full object-cover",loading:"lazy"}),(0,t.jsx)("span",{className:"absolute inset-0 bg-black/25 transition-colors group-hover:bg-black/15"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"inline-flex h-16 w-16 items-center justify-center rounded-full shadow-2xl ring-4 ring-white/30 transition-transform group-hover:scale-110",style:{background:m},children:(0,t.jsx)("svg",{className:"ml-1 h-7 w-7 text-white",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M8 5v14l11-7z"})})})}),(0,t.jsx)("span",{className:"absolute bottom-3 right-3 rounded-full bg-black/60 px-2.5 py-1 text-xs font-medium text-white/90",children:"Watch · ~1:20"})]})})]})})}let P={url:"https://wrwkszmobuhvcfjipasi.supabase.co/storage/v1/object/public/church-hero-videos/demo-welcome/wa-vet-intro-front-desk.mp4",title:"A quick word from John"}.url??"https://wrwkszmobuhvcfjipasi.supabase.co/storage/v1/object/public/church-hero-videos/demo-welcome/wa-vet-intro-front-desk.mp4";function M({className:e}){return(0,t.jsx)("svg",{className:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,"aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M11.5 3.5l2.3 2.3a2 2 0 010 2.83l-.7.7 2.8 2.8.7-.7a2 2 0 012.83 0l2.3 2.3-3.5 3.5a6 6 0 01-8.49 0l-3.34-3.34a6 6 0 010-8.49L11.5 3.5z"})})}function B({className:e}){return(0,t.jsx)("span",{className:e,"aria-hidden":"true",children:"â
â
â
â
â
"})}let R={plumbing:"plumbing",roofing:"roofing",hvac:"heating & cooling",salon:"salon services",landscaping:"landscaping",cleaning:"cleaning services",vet:"veterinary care",funeral:"funeral care"},H={plumbing:"plumbers",roofing:"roofers",hvac:"HVAC pros",salon:"salons",landscaping:"landscapers",cleaning:"cleaning companies",vet:"clinics",funeral:"funeral homes"},W={plumbing:"e.g. Kitchen sink is backed up and won't drain â how soon can someone come out?",roofing:"e.g. A few shingles came off in the last storm â can someone take a look?",hvac:"e.g. The AC stopped cooling â how soon can a technician come out?",salon:"e.g. I'd love a balayage and trim before a wedding on the 20th â any openings?",landscaping:"e.g. Looking for weekly lawn care plus a spring cleanup â what are your rates?",cleaning:"e.g. Need a deep clean for a 3-bedroom home before move-out â when are you available?",vet:"e.g. My dog has been limping since yesterday â could we get an appointment?",funeral:"e.g. We'd like to talk with someone about planning options â when could we speak?"};function O({children:e,className:a,delay:r=0,as:l="div",...n}
41){let o=(0,s.useRef)(null),[i,c]=(0,s.useState)(!1),[d,m]=(0,s.useState)(!1);(0,s.useEffect)(()=>{let e=window.matchMedia("(prefers-reduced-motion: reduce)");m(e.matches);let t=()=>m(e.matches);return e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]),(0,s.useEffect)(()=>{if(d)return void c(!0);let e=o.current;if(!e)return;let t=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(c(!0),t.disconnect())})},{threshold:.12,rootMargin:"0px 0px -8% 0px"});return t.observe(e),()=>t.disconnect()},[d]);let x=d?{}:{opacity:+!!i,transform:i?"none":"translateY(24px)",transition:`opacity 0.7s ease-out ${r}ms, transform 0.7s ease-out ${r}ms`,willChange:"opacity, transform"};return(0,t.jsx)(l,{ref:o,className:a,style:x,...n,children:e})}function z({group:e,accent:s,accentDark:a,accentTint:r}){let l=(e.items||[]).filter(e=>e&&e.name);return(0,t.jsxs)("div",{className:"flex flex-col overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-sm transition-shadow hover:shadow-lg",children:[e.image_url&&(0,t.jsx)("img",{src:e.image_url,alt:e.name,loading:"lazy",className:"h-40 w-full object-cover"}),(0,t.jsxs)("div",{className:"flex flex-1 flex-col p-6",children:[!e.image_url&&(0,t.jsx)("div",{className:"mb-4 inline-flex h-11 w-11 items-center justify-center rounded-xl",style:{background:r,color:a},children:(0,t.jsx)(M,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"mb-1.5 text-lg font-bold text-slate-900",children:e.name}),e.description&&(0,t.jsx)("p",{className:"mb-4 text-sm leading-relaxed text-slate-600",children:e.description}),l.length>0&&(0,t.jsx)("ul",{className:"mt-auto space-y-3 border-t border-slate-100 pt-4",children:l.map((e,l)=>(0,t.jsxs)("li",{className:"flex flex-col gap-0.5",children:[(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-x-2",children:[(0,t.jsx)("span",{className:"inline-block h-1.5 w-1.5 shrink-0 rounded-full",style:{background:s},"aria-hidden":"true"}),(0,t.jsx)("span",{className:"text-sm font-semibold text-slate-800",children:e.name}),e.href&&(0,t.jsx)("a",{href:e.href,className:"ml-auto inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors",style:{background:r,color:a},children:"Learn more â"})]}),e.description&&(0,t.jsx)("p",{className:"pl-3.5 text-xs leading-relaxed text-slate-500",children:e.description})]},`${e.name}-${l}`))})]})]})}let q=["Licensed & Insured","24/7 Emergency Service","Satisfaction Guaranteed","Serving {area}"],U=[{quote:"Called first thing in the morning and they had someone out the same day. Professional, tidy, and the price was exactly what they quoted. Highly recommend.",name:"Karen M."},{quote:"Our {trade} emergency got handled fast â no runaround, no surprise fees. You can tell they actually care about doing the job right.",name:"David R."},{quote:"Friendly, on time, and explained everything clearly before starting. Easily the best {trade} experience we have had in {city}.",name:"Priya S."}];function G({premium:e,church:a,trade:r="plumbing",services:n,faqs:o,serviceGroups:i=[],staffContacts:d=[],bookingUrl:m,businessId:x,sampleCallAudioUrl:h,isShowcase:u=!1}){let f,g,b=(0,p.getBusinessDemoConfig)("home_services"),{accent:y,accentDark:j,accentLight:v,accentTint:w,dark:A,darkAlt:E}=b.brand,Y=(0,p.getBusinessTrustItems)(r),V=(0,p.getBusinessWizardConfig)(r),[K,J]=(0,s.useState)(!1),Q=s.default.useCallback(()=>J(!0),[]),Z=e.custom_name||a.name||"Your Business",[X,ee]=(0,s.useState)(!0);(0,s.useEffect)(()=>{try{ee("1"===window.localStorage.getItem("lb-offer-banner-dismissed"))}catch{ee(!1)}},[]);let et=s.default.useCallback(()=>{ee(!0);try{window.localStorage.setItem("lb-offer-banner-dismissed","1")}catch{}},[]),es=e.logo_url||a.logo_url||null,ea=a.city??null,er=a.state??a.region??null,el=[ea,er].filter(Boolean).join(", "),en=a.street??null,eo=a.zip_code??a.postal_code??null,ei=[en,ea,er,eo].filter(e=>e&&String(e).trim().length>0).join(", "),ec=encodeURIComponent(ei||Z),ed=`https://www.google.com/maps/search/?api=1&query=${ec}`,em=`https://www.google.com/maps?q=${ec}&output=embed`,ex=a.phone??null,eh=a.rating,eu=a.reviews_count,ep="number"==typeof eh&&eh>0&&eh<=5?eh:null,ef="number"==typeof eu&&eu>0?Math.round(eu):null,eg=null!==ep,eb=a.slug||void 0,ey=ex||void 0,ej=(r||"").trim().toLowerCase(),ev=(i||[]).filter(e=>e&&e.name),ew=ev.length>0,eN=(d||[]).filter(e=>e&&e.name).map(e=>({name:e.name,title:e.role||(e.is_escalation_contact?"Owner":"Team Member"),email:e.email||void 0,phone:e.phone||void 0,photo_url:e.photo_url||void 0,bio:e.bio||void 0})),ek=[{label:"Services",href:"#services"},...eN.length>0?[{label:"Team",href:"#team"}]:[],...ei?[{label:"Service Area",href:"#area"}]:[],{label:"Contact",href:"#contact"}],eC=Array.isArray(e.custom_slideshow_urls)?e.custom_slideshow_urls.filter(e=>"string"==typeof e&&e.length>0):[],eS={posterSrc:N[k(r)].heroPoster},e$=eC.length>0?eC:(g=N[f=k(r)].slideshow).length>
410?g:[N[f].heroPoster],eI=eC[0]||eS.posterSrc,eA={posterSrc:N[k(r)].separator},e_=x||e.church_id||e.id||null,eL="vet"===ej,eE=eL?["Are you taking new patients?","My dog's due for his shots â what's available this week?","How much is a spay for a cat?","Can I refill heartworm prevention?","Are you open Saturday?","My dog just ate chocolate â what should I do?"]:["What services do you offer?","Do you handle emergencies?",el?`Do you serve ${el}?`:"What areas do you serve?","Can I get a free quote?"],eD="care"===V.tone?[{label:V.stickyCtaLabel,icon:"ð
",action:Q},{label:"Upload a photo",icon:"ð·",action:Q},{label:"Ask about services",icon:"ð¬",prompt:"What services do you offer?"},{label:"Service areas",icon:"ð",prompt:el?`Do you serve ${el}?`:"What areas do you serve?"}]:[{label:"Get a quote",icon:"ð²",action:Q},{label:"Upload a photo",icon:"ð·",action:Q},{label:"Ask about pricing",icon:"ð§¾",prompt:"How much does a typical job cost?"},{label:"Emergency help",icon:"ð¨",prompt:"I have an emergency â can you help right now?"},{label:"Service areas",icon:"ð",prompt:el?`Do you serve ${el}?`:"What areas do you serve?"}],eT=`Hi! I'm ${Z}'s AI front desk. I can tell you about our services and service area, or help you book a quote. What do you need?`,eF=R[(r||"").trim().toLowerCase()]||"expert local service",eP=ea?`Trusted ${eF} in ${ea}`:`Trusted ${eF} you can count on`,eM=el?`Fast, reliable ${eF} in ${el}. Licensed & insured.`:`Fast, reliable ${eF}. Licensed & insured.`,eB=el||ea||"your area",eR=[...eg?[`${ep.toFixed(1)} â
on Google${ef?` (${ef} reviews)`:""}`]:[],...q.map(e=>e.replace("{area}",`${eB} & area`))],eH=U.map(e=>({...e,quote:e.quote.replace(/\{trade\}/g,eF).replace(/\{city\}/g,ea||"town"),location:ea?`${ea}, ${er||""}`.replace(/,\s*$/,""):el||"local customer"})),eW=ea||el||"your area",eO=H[(r||"").trim().toLowerCase()]||"local businesses",ez=e=>e.replace(/\{business\}/g,Z).replace(/\{trade\}/g,eO).replace(/\{city\}/g,eW),eq=(0,p.getBusinessOfferCopy)(r),eU=m||p.BUSINESS_DEMO_BOOKING_URL,eG=e=>{if(!e)return"";let t=e.replace(/\D/g,"");if(11===t.length&&t.startsWith("1")){let e=t.slice(1);return`(${e.slice(0,3)}) ${e.slice(3,6)}-${e.slice(6)}`}return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:e},eY=`linear-gradient(135deg, ${A} 0%, ${E} 100%)`,eV=`linear-gradient(135deg, ${y}, ${j})`;return(0,t.jsxs)("div",{id:"top",className:"min-h-screen scroll-smooth bg-white font-sans text-slate-900",children:[(0,t.jsxs)("div",{className:"flex h-[100svh] min-h-[600px] flex-col",children:[u&&(0,t.jsx)("div",{className:"shrink-0 bg-slate-900 px-4 py-1.5 text-center text-[11px] font-medium tracking-wide text-white/90 sm:text-xs",children:"Example demo â a fictional business, shown to illustrate what WiseAI Agency builds. Not a real company."}),!X&&(0,t.jsxs)("div",{className:"relative z-[95] shrink-0 px-4 py-2.5 text-center text-xs font-medium text-white sm:text-sm",style:{background:eV},role:"region","aria-label":"WiseAI Agency offer",children:[(0,t.jsxs)("p",{className:"mx-auto max-w-4xl pr-8 leading-snug",children:[ez(eq.bannerLead)," ",(0,t.jsx)("a",{href:eU,target:"_blank",rel:"noopener noreferrer",className:"font-bold underline underline-offset-2 hover:text-white/90",children:eq.primaryCtaLabel})]}),(0,t.jsx)("button",{type:"button",onClick:et,"aria-label":"Dismiss offer banner",className:"absolute right-2 top-1/2 inline-flex h-7 w-7 -translate-y-1/2 items-center justify-center rounded-full text-white/80 transition-colors hover:bg-white/15 hover:text-white",children:(0,t.jsx)("svg",{className:"h-4 w-4",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2.4,"aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsx)(D,{businessName:Z,logoUrl:es,links:ek,phone:ex,ctaHref:"#contact",ctaLabel:V.primaryCtaLabel,onCtaClick:Q,accent:y,accentDark:j}),(0,t.jsx)(C.VideoHero,{videoSrc:eS.videoSrc,posterSrc:eI,slideshowImages:e$,churchName:Z,logoUrl:es,serviceTimeSummary:eP,streetAddress:en,city:ea,stateCode:er,primaryCtaHref:"#contact",primaryCtaLabel:`${V.primaryCtaLabel}
41 â`,onPrimaryCtaClick:Q,cardSize:"large",cardOpacity:50,gradientFallback:"from-slate-800 to-slate-900",exploreHref:"#services",fillParent:!0})]}),(0,t.jsx)("section",{"aria-label":"Trust signals",className:"border-b border-slate-100 bg-white px-6 py-4",children:(0,t.jsx)("ul",{className:"mx-auto flex max-w-5xl flex-wrap items-center justify-center gap-x-7 gap-y-2.5 text-center",children:eR.map(e=>(0,t.jsxs)("li",{className:"inline-flex items-center gap-2 text-sm font-semibold text-slate-700",children:[(0,t.jsx)("svg",{className:"h-4 w-4 shrink-0",viewBox:"0 0 24 24",fill:"none",stroke:y,strokeWidth:2.4,"aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 13l4 4L19 7"})}),e]},e))})}),(0,t.jsxs)("section",{className:"px-6 py-8 text-center",style:{background:eY},children:[(0,t.jsxs)("div",{className:"inline-flex flex-wrap items-center justify-center gap-2 rounded-full px-5 py-2 text-sm font-semibold",style:{background:"rgba(255,255,255,0.10)",color:"#ffffff"},children:[(0,t.jsx)("span",{style:{color:v},children:"Live demo"}),(0,t.jsxs)("span",{style:{color:"rgba(255,255,255,0.78)"},children:["built for ",el?`businesses in ${el}`:"your business"]})]}),(0,t.jsx)("p",{className:"mx-auto mt-5 max-w-xl text-base font-medium text-white/90",children:eM}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsxs)("button",{type:"button",onClick:Q,className:"rounded-xl px-8 py-3.5 text-sm font-bold text-white shadow-lg transition-transform hover:scale-105 active:scale-95",style:{background:eV},children:[V.primaryCtaLabel," â"]}),ex&&(0,t.jsxs)("a",{href:`tel:${ex.replace(/\s/g,"")}`,className:"rounded-xl border border-white/25 px-8 py-3.5 text-sm font-semibold text-white/85 transition-colors hover:bg-white/10",children:["Call ",eG(ex)]})]}),(0,t.jsx)("p",{className:"mt-5 text-xs",style:{color:"rgba(255,255,255,0.5)"},children:"This is a personalized demo â not a live customer site"})]}),eL&&(0,t.jsx)(F,{videoSrc:P,posterSrc:"https://wrwkszmobuhvcfjipasi.supabase.co/storage/v1/object/public/church-sample-audio/vertical/vet/vet-intro-poster.jpg",accent:y,accentDark:j,dark:A}),h&&(0,t.jsx)("section",{"aria-label":"Hear the AI answer a call",className:"px-6 py-14",style:{background:w},children:(0,t.jsxs)("div",{className:"mx-auto max-w-3xl text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"Hear it for yourself"}),(0,t.jsx)("h2",{className:"mb-2 text-3xl font-bold text-slate-900",children:"Hear the AI answer a call"}),(0,t.jsxs)("p",{className:"mx-auto mb-7 max-w-xl text-slate-500",children:["This is ",Z,"'s AI front desk picking up a typical call â answering and booking the job, 24/7."]}),(0,t.jsx)(T.SampleCallPlayer,{audioUrl:h,churchName:Z,churchSlug:a.slug||Z,accent:j,accentSecondary:y,subtitle:`~25s \xb7 ${Z}'s AI front desk`}),eb&&(0,t.jsxs)("div",{className:"mx-auto mt-6 max-w-sm",children:[(0,t.jsxs)("p",{className:"mb-2 text-sm font-medium text-slate-500",children:["Or ","vet"===ej||"funeral"===ej?"talk to":"try"," it live â right from your browser"]}),(0,t.jsx)(c.WebRTCDemoButton,{prospectSlug:eb,businessName:Z,fallbackPhone:ey||void 0}),(0,t.jsxs)("p",{className:"mt-2 text-xs text-slate-400",children:["Live AI demo · up to 3 minutes · answers from"," ",Z,"'s public info"]})]})]})}),(0,t.jsxs)("section",{id:"services",className:"mx-auto max-w-5xl scroll-mt-16 px-6 py-20",children:[(0,t.jsxs)(O,{className:"mb-12 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"What we do"}),(0,t.jsx)("h2",{className:"mb-3 text-3xl font-bold text-slate-900",children:b.servicesHeading}),el&&(0,t.jsxs)("p",{className:"text-slate-500",children:[b.serviceAreaHeading,": ",(0,t.jsx)("strong",{className:"text-slate-700",children:el})]})]}),ew?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3",children:ev.map((e,s)=>(0,t.jsx)(z,{group:e,accent:y,accentDark:j,accentTint:w},`${e.name}-${s}`))}):n.length>0?(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:n.map((e,s)=>(0,t.jsxs)("div",{className:"group rounded-2xl border border-slate-200 bg-white p-6 shadow-sm transition-all hover:-translate-y-1 hover:shadow-lg",children:[(0,t.jsx)("div",{className:"mb-4 inline-flex h-11 w-11 items-center justify-center rounded-xl transition-colors",style:{background:w,color:j},children:(0,t.jsx)(M,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"mb-1.5 text-base font-bold text-slate-900",children:e.name}),e.description&&(0,t.jsx)("p",{className:"mb-3 text-sm leading-relaxed text-slate-600",children:e.description}),e.price&&(0,t.jsx)("p",{className:"text-sm font-semibold",style:{color:j},children:e.price})]},`${e.name}-${s}`))}):(0,t.jsx)("div",{className:"rounded-2xl border border-dashed border-slate-300 bg-slate-50 p-12 text-center",children:(0,t.jsxs)("p",{className:"mx-auto max-w-md text-sm text-slate-500",children:["In a live deployment, this section lists ",Z,"'s real services, pricing, and availability â pulled straight into the AI front desk so it can answer and book jobs 24/7."]})}),!ew&&n.some(e=>e&&e.price)&&(0,t.jsx)("p",{"data-testid":"sample-pricing-caption",className:"mt-6 text-center text-xs text-slate-400",children:"Sample services & pricing for illustration â configured with your real rates at setup."})]}),(0,t.jsx)(S.VideoTransition,{posterSrc:eA.posterSrc,height:"h-40 md:h-56",overlayClass:"bg-slate-900/15"}),(0,t.jsx)("section",{className:"px-6 py-20",children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsxs)(O,{className:"mb-12 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"Reviews"}),(0,t.jsx)("h2",{className:"mb-3 text-3xl font-bold text-slate-900",children:"What local customers say"}),eg?(0,t.jsxs)("p",{"data-testid":"google-rating-badge",className:"inline-flex flex-wrap items-center justify-center gap-2 rounded-full border border-slate-200 bg-white px-5 py-2 shadow-sm",children:[(0,t.jsx)("span",{className:"text-base font-bold text-slate-900",children:ep.toFixed(1)}),(0,t.jsx)("span",{className:"text-lg leading-none text-amber-400","aria-hidden":"true",children:"â
"}),(0,t.jsxs)("span",{className:"text-sm text-slate-600",children:["·"," ",ef?`${ef} Google reviews`:"rated on Google"]})]}):(0,t.jsxs)("p",{className:"inline-flex flex-wrap items-center justify-center gap-2 text-slate-600",children:[(0,t.jsx)("span",{className:"text-base font-bold text-slate-900",children:"4.9"}),(0,t.jsx)(B,{className:"text-lg tracking-tight"}),(0,t.jsx)("span",{className:"text-sm",children:"· Rated by local customers"})]})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:eH.map((e,s)=>(0,t.jsxs)(O,{delay:90*s,className:"flex flex-col rounded-2xl border border-slate-200 bg-white p-7 shadow-sm",children:[(0,t.jsx)(B,{className:"mb-4 text-sm tracking-tight"}),(0,t.jsxs)("p",{className:"mb-5 flex-1 text-sm leading-relaxed text-slate-700",children:["â",e.quote,"â"]}),(0,t.jsxs)("div",{className:"flex items-center gap-3 border-t border-slate-100 pt-4",children:[(0,t.jsx)("div",{className:"inline-flex h-9 w-9 shrink-0 items-center justify-center rounded-full text-sm font-bold text-white",style:{background:y},"aria-hidden":"true",children:e.name.charAt(0)}),(0,t.jsxs)("div",{className:"min-w-0",children:[(0,t.jsx)("p",{className:"truncate text-sm font-semibold text-slate-900",children:e.name}),(0,t.jsx)("p",{className:"truncate text-xs text-slate-500",children:e.location})]})]})]},e.name))}),(0,t.jsx)("p",{"data-testid":"sample-reviews-caption",className:"mt-8 text-center text-xs text-slate-400",children:eg?`Sample review cards for illustration â the Google rating above is ${Z}'s real rating. Your actual Google reviews appear on the live site.`:`Illustrative sample reviews â replaced with ${Z}'s real Google reviews on a live site.`})]})}),eN.length>0&&(0,t.jsxs)("section",{id:"team",className:"mx-auto max-w-5xl scroll-mt-16 px-6 py-20",children:[(0,t.jsxs)("div",{className:"mb-12 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"Meet the Team"}),(0,t.jsxs)("h2",{className:"mb-3 text-3xl font-bold text-slate-900",children:["The people behind ",Z]}),(0,t.jsx)("p",{className:"mx-auto max-w-xl text-slate-500",children:"Licensed, local, and ready to help â the AI front desk routes your job to the right person on the team."}),(0,t.jsx)("p",{"data-testid":"sample-team-caption",className:"mt-3 text-xs text-slate-400",children:"Sample team for illustration â your real staff and roles go here at setup."})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3",children:eN.map((e,s)=>(0,t.jsx)($.StaffCard,{member:e,accentColor:j,staffTitleClass:"",staffBgClass:"from-[#1D4ED8] to-[#1E3A8A]"},`${e.name}-${s}`))})]}),ei&&(0,t.jsx)("section",{id:"area",className:"scroll-mt-16 px-6 py-20",style:{background:w},children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-10 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"Find Us"}),(0,t.jsx)("h2",{className:"text-3xl font-bold text-slate-900",children:"Directions"})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 md:grid-cols-2",children:[(0,t.jsx)("div",{className:"h-[320px] overflow-hidden rounded-2xl border border-white shadow-lg md:h-full md:min-h-[320px]",children:(0,t.jsx)("iframe",{src:em,className:"h-full w-full border-0",loading:"lazy",referrerPolicy:"no-referrer-when-downgrade",title:`Map showing ${Z}`})}),(0,t.jsxs)("div",{className:"flex flex-col justify-center rounded-2xl border border-white bg-white p-8 shadow-sm",children:[(0,t.jsx)("h3",{className:"mb-1 text-sm font-semibold uppercase tracking-wide text-slate-500",children:"Address"}),(0,t.jsx)("p",{className:"mb-6 text-lg font-medium text-slate-800",children:ei}),ex&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("h3",{className:"mb-1 text-sm font-semibold uppercase tracking-wide text-slate-500",children:"Phone"}),(0,t.jsx)("a",{href:`tel:${ex.replace(/\s/g,"")}`,className:"mb-6 text-lg font-medium hover:underline",style:{color:j},children:eG(ex)})]}),(0,t.jsxs)("a",{href:ed,target:"_blank",rel:"noopener noreferrer",className:"mt-auto inline-flex items-center justify-center gap-2 rounded-xl px-6 py-3.5 text-sm font-bold text-white shadow-lg transition-transform hover:scale-[1.02] active:scale-[0.99]",style:{background:eV},children:[(0,t.jsxs)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 11a3 3 0 11-6 0 3 3 0 016 0z"})]}),"Get Directions"]})]})]})]})}),(0,t.jsx)("section",{className:"px-6 py-20",style:{background:w},children:(0,t.jsxs)("div",{className:"mx-auto max-w-5xl",children:[(0,t.jsxs)(O,{className:"mb-12 text-center",children:[(0,t.jsxs)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:["Why ",Z]}),(0,t.jsx)("h2",{className:"text-3xl font-bold text-slate-900",children:"An AI front desk that never misses a job"})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:Y.map(e=>(0,t.jsxs)("div",{className:"rounded-2xl border border-white bg-white p-7 shadow-sm",children:[(0,t.jsx)("div",{className:"mb-4 inline-flex h-11 w-11 items-center justify-center rounded-xl",style:{background:y,color:"#ffffff"},children:(0,t.jsx)(M,{className:"h-6 w-6"})}),(0,t.jsx)("h3",{className:"mb-2 text-lg font-bold text-slate-900",children:e.title}),(0,t.jsx)("p",{className:"text-sm leading-relaxed text-slate-600",children:e.body})]},e.title))})]})}),(0,t.jsx)(S.VideoTransition,{posterSrc:eA.posterSrc,height:"h-40 md:h-56",overlayClass:"bg-slate-900/15"}),(0,t.jsxs)("section",{id:"chatbot-section",className:"mx-auto max-w-3xl px-6 py-20",children:[(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"Try it now"}),(0,t.jsxs)("h2",{className:"mb-3 text-3xl font-bold text-slate-900",children:["Ask ",Z," anything"]}),(0,t.jsxs)("p",{className:"mx-auto max-w-xl text-slate-500",children:["This AI is trained on ",Z,"'s real services, hours, and FAQs â ask it a question and watch it answer, then book a quote.",o.length>0?` (Trained on ${o.length} FAQs and ${n.length} services.)`:""]})]}),e_?(0,t.jsx)("div",{className:"overflow-hidden rounded-2xl border border-slate-200 bg-white shadow-lg",style:{"--brand-primary":y,"--brand-primary-dark":j,"
41--brand-accent":y,"--brand-accent-dark":j,"--brand-foreground":A,"--brand-on-primary":"#ffffff","--brand-surface":"#F8FAFC","--brand-surface-alt":w},children:(0,t.jsx)(l.BrandSalesChatbot,{brand:"playground-business",businessId:e_,businessVertical:eL?"vet":"home_services",title:`${Z} AI Front Desk`,initialGreeting:eT,suggestedPrompts:eE,taskButtons:eD,prospectSlug:a.slug||void 0,inline:!0})}):(0,t.jsx)("div",{className:"overflow-hidden rounded-2xl border border-slate-200 bg-slate-50 p-10 text-center shadow-sm",children:(0,t.jsx)("p",{className:"mx-auto max-w-md text-sm text-slate-500",children:"Live chat activates once this business is set up."})}),(0,t.jsxs)("p",{className:"mt-4 text-center text-xs text-slate-400",children:["This is a personalized demo â the AI answers from ",Z,"'s public info and does not book real jobs yet."]})]}),(0,t.jsxs)("section",{id:"wiseai-offer","aria-label":"What WiseAI Agency would set up for you",className:"relative overflow-hidden px-6 py-20",style:{background:eY},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-24 -top-24 h-72 w-72 rounded-full opacity-20 blur-3xl",style:{background:y}}),(0,t.jsxs)("div",{className:"relative mx-auto max-w-5xl",children:[(0,t.jsxs)("div",{className:"mb-12 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:v},children:eq.bandEyebrow}),(0,t.jsx)("h2",{className:"mb-3 text-3xl font-bold text-white sm:text-4xl",children:ez(eq.bandHeading)}),(0,t.jsx)("p",{className:"mx-auto max-w-2xl text-base",style:{color:"rgba(255,255,255,0.72)"},children:eq.bandIntro})]}),(0,t.jsx)("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:eq.products.map((e,s)=>(0,t.jsxs)("div",{className:"flex flex-col rounded-2xl border border-white/15 bg-white/[0.07] p-7 backdrop-blur-sm",children:[(0,t.jsx)("span",{className:"mb-4 inline-flex h-11 w-11 items-center justify-center rounded-xl text-sm font-bold text-white",style:{background:eV},"aria-hidden":"true",children:s+1}),(0,t.jsx)("h3",{className:"mb-2 text-lg font-bold text-white",children:e.name}),(0,t.jsx)("p",{className:"text-sm leading-relaxed",style:{color:"rgba(255,255,255,0.78)"},children:e.body})]},e.name))}),(0,t.jsxs)("div",{className:"mt-10 text-center",children:[(0,t.jsx)("p",{className:"mx-auto max-w-2xl text-sm",style:{color:"rgba(255,255,255,0.82)"},children:eq.mixLine}),(0,t.jsx)("p",{className:"mx-auto mt-4 inline-flex flex-wrap items-center justify-center gap-2 rounded-full px-5 py-2 text-sm font-semibold",style:{background:"rgba(255,255,255,0.10)"},children:(0,t.jsx)("span",{style:{color:v},children:ez(eq.setupOfferLine)})}),(0,t.jsxs)("div",{className:"mt-7 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsxs)("a",{href:eU,target:"_blank",rel:"noopener noreferrer",className:"rounded-xl px-9 py-3.5 text-sm font-bold text-white shadow-lg transition-transform hover:scale-105 active:scale-95",style:{background:eV},children:[eq.primaryCtaLabel," â"]}),(0,t.jsx)("span",{className:"text-sm",style:{color:"rgba(255,255,255,0.6)"},children:eq.secondaryCtaLabel})]})]})]})]}),(0,t.jsx)("section",{id:"roi",className:"scroll-mt-16 px-6 py-16",style:{background:"#fff"},children:(0,t.jsx)(L.RoiPaybackCalculator,{variant:"demo",trade:r,city:ea,businessName:Z,demoSlug:e.vanity_slug??null,accent:y,accentDark:j})}),(0,t.jsxs)("section",{id:"contact",className:"scroll-mt-16 px-6 py-20",style:{background:w},children:[(0,t.jsx)("span",{id:"quote",className:"block -translate-y-16","aria-hidden":"true"}),(0,t.jsxs)("div",{className:"mx-auto max-w-2xl",children:[(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:j},children:"Get in touch"}),(0,t.jsx)("h2",{className:"mb-3 text-3xl font-bold text-slate-900",children:V.wizardTitle}),(0,t.jsx)("p",{className:"mx-auto max-w-lg text-slate-500",children:V.wizardSubtitle})]}),(0,t.jsxs)("div",{className:"mb-6 flex flex-col items-center gap-4 roun
41ded-2xl border bg-white p-7 text-center shadow-sm sm:p-8",style:{borderColor:`${y}33`},children:[(0,t.jsx)("span",{className:"inline-flex h-12 w-12 items-center justify-center rounded-xl",style:{background:w,color:j},"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-6 w-6",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:1.8,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-6 9l2 2 4-4"})})}),(0,t.jsx)("p",{className:"max-w-md text-sm leading-relaxed text-slate-600",children:"care"===V.tone?"Answer a few gentle questions and weâll reach out â at your pace.":"Answer a few quick questions, add a photo, and get an instant ballpark estimate in under a minute."}),(0,t.jsxs)("button",{type:"button",onClick:Q,className:"rounded-xl px-8 py-3.5 text-sm font-bold text-white shadow-lg transition-transform hover:scale-105 active:scale-95",style:{background:eV},children:[V.primaryCtaLabel," â"]})]}),(0,t.jsx)("p",{className:"mb-4 text-center text-xs font-medium uppercase tracking-wide text-slate-400",children:"Or send a quick message"}),(0,t.jsx)(I,{businessName:Z,accent:y,accentDark:j,accentTint:w,messagePlaceholder:W[(r||"").trim().toLowerCase()]||"Tell us what you need and the best time to reach you."})]})]}),(0,t.jsxs)("section",{className:"relative overflow-hidden px-6 py-24 text-center",style:{background:eY},children:[(0,t.jsx)("div",{className:"pointer-events-none absolute -right-24 -top-24 h-72 w-72 rounded-full opacity-20 blur-3xl",style:{background:y}}),(0,t.jsx)("div",{className:"pointer-events-none absolute -bottom-24 -left-24 h-72 w-72 rounded-full opacity-20 blur-3xl",style:{background:j}}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("p",{className:"mb-4 text-xs font-semibold uppercase tracking-[0.18em]",style:{color:v},children:eq.bandEyebrow}),(0,t.jsx)("h2",{className:"mb-4 text-3xl font-bold text-white sm:text-4xl",children:ez(eq.finalHeading)}),(0,t.jsx)("p",{className:"mx-auto mb-4 flex max-w-2xl flex-wrap items-center justify-center gap-x-2 gap-y-1 text-sm font-semibold",children:eq.products.map((e,a)=>(0,t.jsxs)(s.default.Fragment,{children:[a>0&&(0,t.jsx)("span",{"aria-hidden":"true",style:{color:"rgba(255,255,255,0.35)"},children:"·"}),(0,t.jsx)("span",{style:{color:v},children:e.name})]},e.name))}),(0,t.jsx)("p",{className:"mx-auto mb-3 max-w-lg text-base",style:{color:"rgba(255,255,255,0.7)"},children:ez(eq.finalSub)}),(0,t.jsxs)("div",{className:"mt-6 flex flex-col items-center justify-center gap-3 sm:flex-row",children:[(0,t.jsxs)("a",{href:eU,target:"_blank",rel:"noopener noreferrer",className:"inline-block rounded-xl px-10 py-4 text-base font-bold text-white shadow-xl transition-transform hover:scale-105",style:{background:eV},children:[eq.primaryCtaLabel," â"]}),(0,t.jsx)("span",{className:"text-sm",style:{color:"rgba(255,255,255,0.6)"},children:eq.secondaryCtaLabel})]})]})]}),(0,t.jsx)("footer",{className:"border-t border-slate-100 px-6 pb-28 pt-10 text-center lg:pb-10",children:(0,t.jsxs)("p",{className:"text-xs text-slate-300",children:["© ",new Date().getFullYear()," ChurchWiseAI LTD · 125 Concession St, Ingersoll, ON N5C 1G2"]})}),(0,t.jsx)("div",{className:"fixed inset-x-0 bottom-0 z-[90] border-t border-slate-200 bg-white/95 px-3 py-2.5 shadow-[0_-4px_16px_rgba(0,0,0,0.08)] backdrop-blur-md lg:hidden",style:{paddingBottom:"max(0.625rem, env(safe-area-inset-bottom, 0px))"},role:"region","aria-label":"Quick actions",children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-md items-center gap-2.5",children:[ex&&(0,t.jsxs)("a",{href:`tel:${ex.replace(/\s/g,"")}`,className:"inline-flex h-12 min-w-[3rem] flex-1 items-center justify-center gap-2 rounded-xl border-2 text-sm font-bold transition-colors",style:{borderColor:y,color:j},"aria-label":`Call ${Z}`,children:[(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,"aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 5a2 2 0 012-2h3.28a1 1 0 01.948.684l1.498 4.493a1 1 0 01-.502 1.21l-2.257 1.13a11.042
4111.042 0 005.516 5.516l1.13-2.257a1 1 0 011.21-.502l4.493 1.498a1 1 0 01.684.949V19a2 2 0 01-2 2h-1C9.716 21 3 14.284 3 6V5z"})}),"Call"]}),(0,t.jsx)("button",{type:"button",onClick:Q,className:"inline-flex h-12 flex-[1.4] items-center justify-center rounded-xl px-4 text-sm font-bold text-white shadow-md transition-transform active:scale-95",style:{background:eV},children:V.stickyCtaLabel})]})}),(0,t.jsx)(_,{open:K,onClose:()=>J(!1),config:V,businessId:e_,businessName:Z,services:n,serviceArea:el,city:ea,postalCode:eo,accent:y,accentDark:j,accentTint:w})]})}function Y({premium:e,church:n,demoNumber:p,demoCode:f,bookingUrl:g=u.FUNERALWISEAI_DEMO_BOOKING_URL,demoVideos:b,vertical:y,trade:j,services:v,faqs:w,serviceGroups:N,staffContacts:k,sampleCallAudioUrl:C,isShowcase:S}){let $,[I,A]=(0,s.useState)(!1),[_,L]=(0,s.useState)(!1),[E,D]=(0,s.useState)(!1),[T,F]=(0,s.useState)(!1),P=(e.vanity_slug||n.slug||"").toLowerCase(),M="funeral"===y||"Funeral Home"===n.category,B="church"===y||"cwa_demo_prospect"===e.plan&&!M,R=(0,s.useRef)(void 0);function H(e,t){if(!P)return;let s=JSON.stringify({event:"demo_upgrade_clicked",outreach_slug:P,...R.current?{email_variant:R.current}:{},properties:{cta_target:t}});try{if("u">typeof navigator&&navigator.sendBeacon){let e=new Blob([s],{type:"application/json"});navigator.sendBeacon("/api/analytics/demo-event",e)}else(0,h.fireDemoEvent)("demo_upgrade_clicked",{outreach_slug:P,...R.current?{email_variant:R.current}:{},properties:{cta_target:t}})}catch{}}(0,s.useEffect)(()=>{R.current=new URLSearchParams(window.location.search).get("email_variant")??void 0},[]);let W=B&&g===u.FUNERALWISEAI_DEMO_BOOKING_URL?u.CHURCHWISEAI_DEMO_BOOKING_URL:g,O=e.custom_name||n.name||"Your Business",z=e.custom_description||n.description||"Trained on your services. Answers with empathy, 24/7.",q=e.logo_url||n.logo_url||n.photo_url||null,U=p?(e=>{if(!e)return"";let t=e.replace(/\D/g,"");if(11===t.length&&t.startsWith("1")){let e=t.slice(1);return`(${e.slice(0,3)}) ${e.slice(3,6)}-${e.slice(6)}`}return 10===t.length?`(${t.slice(0,3)}) ${t.slice(3,6)}-${t.slice(6)}`:e})(p):null,V=async()=>{if(f)try{await navigator.clipboard.writeText(f),L(!0),setTimeout(()=>L(!1),2e3)}catch{}},K=()=>{A(!0),document.getElementById("voice-demo-block")?.scrollIntoView({behavior:"smooth"})};return"home_services"===y?(0,t.jsx)(G,{premium:e,church:n,trade:j??"plumbing",services:v??[],faqs:w??[],serviceGroups:N??[],staffContacts:k??[],bookingUrl:g,businessId:e.church_id,sampleCallAudioUrl:C??null,isShowcase:S??!1}):(0,t.jsxs)("div",{className:"min-h-screen bg-white font-sans text-stone-900",children:[(0,t.jsxs)("section",{className:"relative flex flex-col items-center justify-center px-6 py-20 text-center",style:{minHeight:"80vh",background:"linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)"},children:[q&&!E&&(0,t.jsx)("div",{className:"mb-6 flex justify-center",children:(0,t.jsx)("div",{className:"inline-flex items-center justify-center rounded-2xl bg-white shadow-md",style:{padding:"12px 18px",minHeight:84},children:(0,t.jsx)(a.default,{src:q,alt:`${O} logo`,width:140,height:60,onError:()=>D(!0),className:"object-contain",style:{maxHeight:60,width:"auto"},unoptimized:!0})})}),(0,t.jsx)("p",{className:"mb-3 text-xs font-semibold uppercase tracking-widest",style:{color:"rgba(255,255,255,0.5)"},children:B?"ChurchWiseAI Demo":"WiseAI Agency Demo"}),(0,t.jsxs)("h1",{className:"mb-4 text-3xl font-bold leading-tight text-white sm:text-4xl md:text-5xl",children:["Meet ",O,"'s",(0,t.jsx)("br",{className:"hidden sm:block"}),B?" AI assistant.":" AI receptionist."]}),(0,t.jsx)("p",{className:"mx-auto mb-10 max-w-xl text-base leading-relaxed",style:{color:"rgba(255,255,255,0.72)"},children:z}),(0,t.jsxs)("div",{className:"flex flex-col items-center gap-4 sm:flex-row sm:justify-center",children:[B?(0,t.jsx)("a",{href:W,target:"_blank",rel:"noopener noreferrer",className:"rounded-xl px-8 py-4 text-sm font-bold text-white transition-transform hover:scale-105 active:scale-95",style:{background:"linear-gradient(135deg, #6366f1, #8b5cf6)"},onClick:e=>H(e,"calcom_booking"),children:"Book a call to hear it live â"}):M&&P?(0,t.jsx)("button",{onClick:()=>F(!0),className:"rounded-xl px-8 py-4 text-sm font-bold text-white transition-transform hover:scale-105 active:scale-95",style:{background:"linear-gradient(135deg, #6366f1, #8b5cf6)"},children:"Call from your browser"}):p?(0,t.jsx)("button",{onClick:K,className:"rounded-xl px-8 py-4 text-sm font-bold text-white transition-transform hover:scale-105 active:scale-95",style:{background:"linear-gradient(135deg, #6366f1, #8b5cf6)"},children:"Call to hear your AI"}):(0,t.jsx)("span",{className:"rounded-xl px-8 py-4 text-sm font-bold",style:{background:"rgba(255,255,255,0.15)",color:"rgba(255,255,255,0.5)",cursor:"not-allowed"},children:"Voice demo launching soon"}),(0,t.jsx)("button",{onClick:()=>{document.getElementById("chatbot-section")?.scrollIntoView({behavior:"smooth"})},className:"rounded-xl border border-white/20 px-8 py-4 text-sm font-semibold text-white/80 transition-colors hover:bg-white/10",children:"Or try the chat below"})]}),M&&P&&p&&f&&(0,t.jsx)("button",{type:"button",onClick:K,className:"mt-3 text-xs underline underline-offset-4",style:{color:"rgba(255,255,255,0.6)"},children:"Or try voice via phone"}),(0,t.jsx)("div",{className:"mt-8",children:(0,t.jsx)("span",{className:"inline-block rounded-full px-4 py-1 text-xs font-medium",style:{background:"rgba(255,255,255,0.1)",color:"rgba(255,255,255,0.5)"},children:"This is a personalized demo â not a live customer site"})})]}),B&&P?(0,t.jsxs)("section",{id:"chatbot-section",className:"mx-auto max-w-3xl px-6 py-16",children:[(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("h2",{className:"mb-2 text-2xl font-bold text-stone-900",children:"Ask anything"}),(0,t.jsxs)("p",{className:"text-stone-500",children:["This AI demo was built using ",O,"'s public information. Try one of the prompts below."]})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-2xl border border-stone-200 shadow-lg",style:{"--brand-primary":"#1B365
41D","--brand-primary-dark":"#0f2240","--brand-accent":"#D4AF37","--brand-accent-dark":"#b8960f","--brand-foreground":"#1c1917","--brand-on-primary":"#ffffff","--brand-surface":"#FEFCF8","--brand-surface-alt":"#f5f0e8"},children:(0,t.jsx)(l.BrandSalesChatbot,{brand:"playground-church",prospectSlug:P,prospectChurchId:e.church_id,title:O,suggestedPrompts:[`Directions to ${O}`,"Submit a prayer request","Email me your service times","Tell me about your beliefs"],inline:!0})}),($=n?.country==="Canada"?m.PHONE_REGISTRY.demoCA:m.PHONE_REGISTRY.demoUS,(0,t.jsxs)("div",{className:"mt-6 border-t border-stone-100 pt-6 text-sm text-[#1B365D]",children:[(0,t.jsxs)("p",{className:"mb-1",children:[(0,t.jsx)("strong",{children:"Worried about AI safety?"})," ","See how our HEAR protocol and AI Bridge Principle keep callers safe â"," ",(0,t.jsx)("a",{href:`${x.brand.siteUrl}/ai-safety`,className:"underline underline-offset-2 hover:opacity-70",children:"How our AI stays safe"})," ","|"," ",(0,t.jsx)("a",{href:`${x.brand.siteUrl}/hear`,className:"underline underline-offset-2 hover:opacity-70",children:"HEAR protocol"})]}),(0,t.jsxs)("p",{children:[(0,t.jsx)("strong",{children:"Want to hear the voice agent?"})," ","Call our live Grace Community demo line:"," ",(0,t.jsx)("a",{href:`tel:${$.number}`,className:"font-semibold underline underline-offset-2 hover:opacity-70",children:$.display})," ","(rings straight to a trained demo agent â no menu) or"," ",(0,t.jsx)("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"underline underline-offset-2 hover:opacity-70",children:"book a 15-min walkthrough"})]})]}))]}):M&&P?(0,t.jsxs)("section",{id:"chatbot-section",className:"mx-auto max-w-3xl px-6 py-16",children:[(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("h2",{className:"mb-2 text-2xl font-bold text-stone-900",children:"Ask anything"}),(0,t.jsxs)("p",{className:"text-stone-500",children:["Trained on ",O,"'s public information. Try one of the prompts below."]})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-2xl border border-stone-200 shadow-lg",style:{"--brand-primary":"#1a1a2e","--brand-primary-dark":"#0f0f1f","--brand-accent":"#8b5cf6","--brand-accent-dark":"#6d3fe0","--brand-foreground":"#1c1917","--brand-on-primary":"#ffffff","--brand-surface":"#fafaf9","--brand-surface-alt":"#f5f5f4"},children:(0,t.jsx)(l.BrandSalesChatbot,{brand:"playground-funeral",prospectSlug:P,title:O,suggestedPrompts:["What cremation services do you offer?","What does cremation typically cost?","How do I start arrangements?","What are your hours?"],inline:!0})})]}):e.chatbot_enabled?(0,t.jsxs)("section",{id:"chatbot-section",className:"mx-auto max-w-3xl px-6 py-16",children:[(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("h2",{className:"mb-2 text-2xl font-bold text-stone-900",children:"Ask anything"}),(0,t.jsxs)("p",{className:"text-stone-500",children:["This chatbot is trained on ",O,"'s public information. Try: âWhat services do you offer?â or âWhat are your hours?â "]})]}),(0,t.jsx)("div",{className:"overflow-hidden rounded-2xl border border-stone-200 shadow-lg",children:(0,t.jsx)(r.default,{churchId:n.id,churchName:O})})]}):(0,t.jsxs)("section",{id:"chatbot-section",className:"mx-auto max-w-3xl px-6 py-16",children:[(0,t.jsxs)("div",{className:"mb-8 text-center",children:[(0,t.jsx)("h2",{className:"mb-2 text-2xl font-bold text-stone-900",children:"The chatbot, trained on your business"}),(0,t.jsxs)("p",{className:"mx-auto max-w-xl text-stone-500",children:["In a live deployment, this section is a chatbot trained on"," ",O,"'s real services, hours, pricing, and FAQs. Visitors ask anything, get an empathetic answer, and convert into bookings or callbacks â 24/7."]})]}),(0,t.jsxs)("div",{className:"overflow-hidden rounded-2xl border border-stone-200 shadow-lg",children:[(0,t.jsxs)("div",{className:"space-y-4 bg-stone-50 px-6 py-10 sm:px-10",children:[(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("div",{className:"max-w-[80%] rounded-2xl rounded-tr-sm bg-indigo-600 px-4 py-2.5 text-sm text-white shadow-sm",children:"What services do you offer?"})}),(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)("div",{className:"max-w-[80%] rounded-2xl rounded-tl-sm bg-white px-4 py-2.5 text-sm text-stone-700 shadow-sm ring-1 ring-stone-200",children:"We offer traditional and cremation services, pre-planning consultations, grief support resources, and chapel hosting. Would you like me to walk you through any of these in more detail, or share availability for a planning conversation?"})}),(0,t.jsx)("div",{className:"flex justify-end",children:(0,t.jsx)("div",{className:"max-w-[80%] rounded-2xl rounded-tr-sm bg-indigo-600 px-4 py-2.5 text-sm text-white shadow-sm",children:"Can someone help me right now? My mother just passed."})}),(0,t.jsx)("div",{className:"flex justify-start",children:(0,t.jsx)("div",{className:"max-w-[80%] rounded-2xl rounded-tl-sm bg-white px-4 py-2.5 text-sm text-stone-700 shadow-sm ring-1 ring-stone-200",children:"I'm so sorry for your loss. Yes â we're here for you. I'll connect you with our director on call right now. May I have your name and a phone number where they can reach you?"})})]}),(0,t.jsxs)("div",{className:"border-t border-stone-200 bg-white px-6 py-6 text-center sm:px-10",children:[(0,t.jsxs)("p",{className:"mb-4 text-sm text-stone-500",children:["Want one of these for ",O,"?"]}),(0,t.jsx)("a",{href:g,target:"_blank",rel:"noopener noreferrer",className:"inline-block rounded-xl px-6 py-3 text-sm font-bold text-white transition-transform hover:scale-105 active:scale-95",style:{background:"linear-gradient(135deg, #6366f1, #8b5cf6)"},children:"Book a 30-min walkthrough â"})]})]})]}),p&&f&&(0,t.jsx)("section",{id:"voice-demo-block",className:"px-6 py-16",style:{background:"#f8f9ff"},children:(0,t.jsxs)("div",{className:"mx-auto max-w-xl text-center",children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)("span",{className:"text-4xl",children:"ð"})}),(0,t.jsx)("h2",{className:"mb-3 text-2xl font-bold text-stone-900",children:"Hear the voice version"}),(0,t.jsx)("p",{className:"mb-8 text-stone-500",children:"This is the same AI, but answering phone calls like your real receptionist would. Call the demo line, enter your co
41de, and have a conversation."}),I?(0,t.jsxs)("div",{className:"rounded-2xl bg-white p-8 shadow-sm border border-stone-200",children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("p",{className:"mb-1 text-xs font-semibold uppercase tracking-widest text-stone-400",children:"Demo Number"}),(0,t.jsx)("a",{href:`tel:${p}`,className:"text-2xl font-bold text-indigo-600 hover:text-indigo-700",children:U})]}),(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)("p",{className:"mb-1 text-xs font-semibold uppercase tracking-widest text-stone-400",children:"Your Code"}),(0,t.jsxs)("button",{onClick:V,className:"inline-flex items-center gap-2 rounded-xl border border-stone-200 bg-stone-50 px-6 py-3 text-2xl font-mono font-bold text-stone-900 transition-colors hover:bg-stone-100",children:[f,(0,t.jsx)("span",{className:"text-sm font-sans font-normal text-stone-400",children:_?"â copied":"tap to copy"})]})]}),(0,t.jsxs)("ol",{className:"space-y-2 text-left text-sm text-stone-600",children:[(0,t.jsxs)("li",{children:["1. Dial ",(0,t.jsx)("strong",{children:U})]}),(0,t.jsxs)("li",{children:["2. When prompted, say or enter code ",(0,t.jsx)("strong",{children:f})]}),(0,t.jsx)("li",{children:"3. Hear your AI receptionist handle a real conversation"})]})]}):(0,t.jsx)("button",{onClick:K,className:"rounded-xl px-10 py-4 text-base font-bold text-white transition-transform hover:scale-105",style:{background:"linear-gradient(135deg, #6366f1, #8b5cf6)"},children:"Show me the number"})]})}),M&&b&&b.length>0&&(0,t.jsx)("section",{className:"bg-stone-50 px-6 py-16",children:(0,t.jsxs)("div",{className:"mx-auto max-w-4xl",children:[(0,t.jsx)("p",{className:"mb-2 text-center text-xs font-semibold uppercase tracking-widest text-stone-400",children:"See It In Action"}),(0,t.jsx)("h2",{className:"mb-10 text-center text-2xl font-bold text-stone-900 sm:text-3xl",children:"Watch the AI handle real calls"}),(0,t.jsx)("div",{className:`grid gap-8 ${1===b.length?"grid-cols-1 max-w-2xl mx-auto":2===b.length?"grid-cols-1 sm:grid-cols-2":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3"}`,children:b.map(e=>{let s=e.url.replace("https://youtu.be/","").split("?")[0];return(0,t.jsxs)("div",{className:"overflow-hidden rounded-xl border border-stone-200 bg-white shadow-sm",children:[(0,t.jsx)("div",{className:"relative",style:{paddingTop:"56.25%"},children:(0,t.jsx)("iframe",{className:"absolute inset-0 h-full w-full",src:`https://www.youtube.com/embed/${s}`,title:e.title,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),(0,t.jsx)("div",{className:"px-4 py-3",children:(0,t.jsx)("p",{className:"text-sm font-semibold text-stone-800",children:e.title})})]},s)})})]})}),(0,t.jsxs)("section",{className:"px-6 py-16 text-center",style:{background:"linear-gradient(135deg, #1a1a2e 0%, #16213e 100%)"},children:[(0,t.jsx)("p",{className:"mb-4 text-xs font-semibold uppercase tracking-widest",style:{color:"rgba(255,255,255,0.5)"},children:"Interested?"}),(0,t.jsxs)("h2",{className:"mb-6 text-2xl font-bold text-white sm:text-3xl",children:["This could be live for ",O,(0,t.jsx)("br",{className:"hidden sm:block"}),"in under two weeks."]}),(0,t.jsxs)("p",{className:"mx-auto mb-8 max-w-lg text-base",style:{color:"rgba(255,255,255,0.65)"},children:["30-minute call. No commitment. I'll show you exactly what it looks like for ",O,"."]}),(0,t.jsx)("a",{href:W,target:"_blank",rel:"noopener noreferrer",className:"inline-block rounded-xl px-10 py-4 text-base font-bold text-white transition-transform hover:scale-105",style:{background:"linear-gradient(135deg, #6366f1, #8b5cf6)"},onClick:e=>H(e,"calcom_booking"),children:"Book a 30-min consultation with John â"})]}),T&&M&&P&&(0,t.jsxs)(i.Modal,{onClose:()=>F(!1),titleId:"browser-call-title",size:"md",disableBackdropClose:!0,children:[(0,t.jsxs)("div",{className:"flex items-start justify-between gap-4",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("h3",{id:"browser-call-title",className:"text-lg font-bold text-stone-900",children:["Call ",O," from your browser"]}),(0,t.jsx)("p",{className:"mt-1 text-sm text-stone-500",children:"We'll ask permission to use your microphone, then connect you with the AI receptionist."})]}),(0,t.jsx)("button",{type:"button",onClick:()=>F(!1),className:"-mr-2 -mt-2 rounded-lg p-2 text-stone-400 transition-colors hover:bg-stone-100 hover:text-stone-700","aria-label":"Close",children:(0,t.jsx)("svg",{className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),(0,t.jsx)("div",{className:"mt-5",style:{"--brand-primary":"#1a1a2e","--brand-accent":"#8b5cf6","--brand-foreground":"#1c1917"},children:(0,t.jsx)(c.WebRTCDemoButton,{prospectSlug:P,businessName:O,fallbackPhone:p})}),(0,t.jsx)("p",{className:"mt-4 text-xs text-stone-400",children:"Calls are limited to 3 minutes. This is a personalized demo â not a live customer line."})]}),B?(0,t.jsx)(d.TemplateFooter,{churchName:O,className:"border-t border-stone-100"}):(0,t.jsx)("footer",{className:"border-t border-stone-100 px-6 py-10 text-center",children:(0,t.jsxs)("p",{className:"text-xs text-stone-300",children:["© ",new Date().getFullYear()," ChurchWiseAI LTD · 125 Concession St, Ingersoll, ON N5C 1G2"]})}),B&&e.church_id&&(0,t.jsx)(o,{prospectChurchId:e.church_id,churchName:O})]})}e.s(["ServiceBusinessTemplate",0,Y,"default",0,Y],171205)},848041,e=>{"use strict";var t=e.i(338778),s=e.i(130527),a=e.i(643220);e.s(["HeroVideo",0,function({src:e,poster:r}
41){let[l,n]=(0,s.useState)(!1),o=(0,s.useRef)(null);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("video",{ref:o,src:e,poster:r??void 0,playsInline:!0,preload:"none",controls:l,"aria-label":"Video"}),!l&&(0,t.jsx)("button",{type:"button",className:"pbtn","aria-label":"Play video",onClick:()=>{n(!0),o.current?.play().catch(()=>void 0)},children:(0,t.jsx)(a.PlayIcon,{})})]})}])}]);
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.