1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,70773,e=>{"use strict";var t=e.i(338778),a=e.i(130527);e.s(["CopyableEmail",0,function({email:e,color:s,accent:l,className:n}){let[r,i]=(0,a.useState)("idle"),o=(0,a.useRef)(null),c=(0,a.useCallback)(async()=>{try{if(!navigator?.clipboard?.writeText)throw Error("no clipboard api");await navigator.clipboard.writeText(e),i("copied")}catch{let e=o.current;if(e&&1){let t=document.createRange();t.selectNodeContents(e);let a=window.getSelection();a?.removeAllRanges(),a?.addRange(t)}i("select")}window.setTimeout(()=>i("idle"),2500)},[e]);return(0,t.jsxs)("span",{className:n,style:{display:"inline-flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,t.jsx)("span",{ref:o,className:"font-semibold",style:{color:s},children:e}),(0,t.jsx)("button",{type:"button",onClick:c,"aria-label":`Copy email address ${e}`,className:"re-foc rounded-md border px-2 py-0.5 text-xs font-medium transition-colors",style:{borderColor:l,color:l,background:"transparent"},children:"copied"===r?"Copied":"select"===r?"Selected â press Ctrl+C":"Copy"}),(0,t.jsx)("a",{href:`mailto:${e}`,className:"re-foc text-xs underline",style:{color:l},children:"open in mail app"})]})}])},360632,e=>{"use strict";var t=e.i(338778),a=e.i(130527),s=e.i(70773);function l({config:e}){let n=e.theme,[r,i]=(0,a.useState)(""),[o,c]=(0,a.useState)("idle"),[d,m]=(0,a.useState)(""),[u]=(0,a.useState)(()=>Date.now()),p=(0,a.useCallback)(async t=>{if(t.preventDefault(),r.includes("@")){c("sending");try{let t=await fetch("/api/real-estate/newsletter",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({slug:e.slug,email:r.trim(),company:d,renderedAt:u})});c(t.ok?"done":"error")}catch{c("error")}}},[e.slug,r,d,u]);return(0,t.jsxs)("div",{className:"w-full max-w-sm",children:[(0,t.jsx)("p",{className:"font-serif text-base font-bold text-white",children:"Market updates, no spam"}),(0,t.jsxs)("p",{className:"mt-1 text-sm text-white/60",children:["New listings and the occasional ",e.region," market note. Unsubscribe anytime."]}),"done"===o?(0,t.jsx)("p",{className:"mt-3 text-sm font-medium text-white",children:"â You're on the list â thank you."}):(0,t.jsxs)("form",{onSubmit:p,className:"mt-3 flex gap-2",children:[(0,t.jsxs)("div",{className:"absolute -left-[9999px]","aria-hidden":"true",children:[(0,t.jsx)("label",{htmlFor:"footer-newsletter-company",children:"Company"}),(0,t.jsx)("input",{id:"footer-newsletter-company",name:"company",type:"text",tabIndex:-1,autoComplete:"off",value:d,onChange:e=>m(e.target.value)})]}),(0,t.jsx)("input",{type:"email",required:!0,value:r,onChange:e=>i(e.target.value),placeholder:"Your email","aria-label":"Email address",className:"min-w-0 flex-1 rounded-lg border-0 px-3 py-2.5 text-sm outline-none focus:ring-2",style:{background:"#fff",color:n.ink}}),(0,t.jsx)("button",{type:"submit",disabled:"sending"===o,className:"shrink-0 rounded-lg px-4 py-2.5 text-sm font-bold text-white transition disabled:opacity-60",style:{background:`linear-gradient(135deg, ${n.accent}, ${n.accentDark})`},children:"sending"===o?"â¦":"Subscribe"})]}),"error"===o&&(0,t.jsxs)("div",{className:"mt-2 text-xs text-white",children:[(0,t.jsx)("p",{children:"Something went wrong â please try again, or email us directly:"}),(0,t.jsx)(s.CopyableEmail,{className:"mt-1",email:e.email,color:"#fff",accent:"rgba(255,255,255,0.75)"})]})]})}e.s(["FooterNewsletterForm",0,l,"default",0,l])}]);
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.