(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[730],{363:(e,r,t)=>{Promise.resolve().then(t.bind(t,5713))},5713:(e,r,t)=>{"use strict";t.d(r,{default:()=>a});var s=t(5155),i=t(2115);function a(){let e=(0,i.useRef)(null),r=(0,i.useRef)(null);return(0,i.useEffect)(()=>{let t=e.current,s=r.current;if(!t||!s)return;let i=async e=>{e.preventDefault();let r=e.target,t=r.querySelector('button[type="submit"]');if(!t)return;let i=t.textContent;t.textContent="Sending...",t.disabled=!0;try{let e=new FormData(r),t=await fetch("https://homestory.world/api/marketing/offers",{method:"POST",body:e}),i=await t.json();i.ok?(s.innerHTML='
Thanks! We\'ll get back within 2 business days.
',r.reset()):s.innerHTML='
Error: '+(i.error||"Please try again")+"
"}catch(e){s.innerHTML='
Network error. Please try again.
'}t.textContent=i,t.disabled=!1};return t.addEventListener("submit",i),()=>t.removeEventListener("submit",i)},[]),(0,s.jsxs)("section",{id:"lead",style:{background:"#f7f7f7",border:"1px solid #E8E8E8",borderRadius:12,padding:"1.5rem"},children:[(0,s.jsx)("h2",{style:{fontSize:"1.3rem"},children:"Get in contact"}),(0,s.jsx)("p",{style:{marginBottom:"1.2rem",color:"#666"},children:"Tell us what kind of historic research or material you are looking for. We offer support and a custom solution."}),(0,s.jsx)("div",{ref:r,id:"form-message",style:{marginBottom:"1rem"}}),(0,s.jsxs)("form",{ref:e,id:"restaurants-form",style:{display:"grid",gap:"1rem",maxWidth:520},children:[(0,s.jsx)("input",{type:"hidden",name:"source",value:"restaurants_bars_landing_en"}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("a",{href:"https://api.whatsapp.com/message/PRCQ3LNGXOUAO1",target:"_blank",rel:"noopener",className:"btn-outline",style:{padding:"10px 16px",display:"inline-flex",alignItems:"center",gap:8},children:[(0,s.jsx)("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",children:(0,s.jsx)("path",{d:"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.488"})}),(0,s.jsx)("span",{children:"WhatsApp"})]}),(0,s.jsx)("div",{style:{marginTop:8,color:"#666"},children:"OR: leave a message"})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{style:{fontWeight:600,marginBottom:6},children:"Your question"}),(0,s.jsx)("textarea",{name:"message",rows:5,className:"card",style:{width:"100%",padding:"0.75rem",border:"1px solid #ddd",borderRadius:8,color:"#777"},defaultValue:"We want the history of our location used for menu, interior and socials. What are the options?"})]}),(0,s.jsxs)("label",{children:[(0,s.jsx)("div",{style:{fontWeight:600,marginBottom:6},children:"Leave your email"}),(0,s.jsx)("input",{name:"email",type:"email",required:!0,className:"card",style:{width:"100%",padding:"0.75rem",border:"1px solid #ddd",borderRadius:8}})]}),(0,s.jsx)("div",{children:(0,s.jsx)("button",{type:"submit",className:"btn",style:{padding:"12px 20px"},children:"Get in contact"})})]})]})}}},e=>{e.O(0,[441,255,358],()=>e(e.s=363)),_N_E=e.O()}]);