1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[977],{7456:(e,t,a)=>{Promise.resolve().then(a.bind(a,9464)),Promise.resolve().then(a.t.bind(a,2619,23))},9464:(e,t,a)=>{"use strict";a.d(t,{default:()=>i});var n=a(5155),s=a(2115);let o="https://api.theo.site/public/forms/58411eb4-db8b-4ba7-a4a6-93b3d4ae2338/submit",l="https://api.theo.site/public/forms/58411eb4-db8b-4ba7-a4a6-93b3d4ae2338/load";function i(){let e=(0,s.useRef)(null),[t,a]=(0,s.useState)(""),[i,r]=(0,s.useState)(!1),d=async()=>{try{var t;let a=await fetch(l,{method:"POST"}),n=await a.json(),s=null==(t=e.current)?void 0:t.querySelector("input[name='_theo_token']");(null==n?void 0:n.token)&&s&&(s.value=n.token)}catch(e){}};(0,s.useEffect)(()=>{d()},[]);let u=async e=>{e.preventDefault();let t=e.currentTarget,n=new FormData(t);r(!0),a("Sending...");try{if(!n.get("_theo_token")){var s;await d();let e=null==(s=t.querySelector("input[name='_theo_token']"))?void 0:s.value;e&&n.set("_theo_token",e)}let e=await fetch(o,{method:"POST",body:n}),l=await e.json().catch(()=>({}));if(!e.ok||!l.ok)throw Error(l.detail||"Something went wrong. Please try again.");a(l.success_message||"Thanks. We received your message."),t.reset(),await d()}catch(e){a("Your message could not be sent right now. Your answers are still here, please try again in a moment.")}finally{r(!1)}};return(0,n.jsxs)("form",{ref:e,className:"contact-form",method:"POST",action:o,"data-theo-contact-form":!0,"data-theo-load-url":l,onSubmit:u,children:[(0,n.jsx)("input",{type:"hidden",name:"_theo_honeypot",defaultValue:"",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),(0,n.jsx)("input",{type:"hidden",name:"_theo_token",defaultValue:""}),(0,n.jsx)("label",{htmlFor:"name",children:"Name"}),(0,n.jsx)("input",{id:"name",name:"name",type:"text",required:!0,maxLength:200}),(0,n.jsx)("label",{htmlFor:"email",children:"Email"}),(0,n.jsx)("input",{id:"email",name:"email",type:"email",required:!0,maxLength:320}),(0,n.jsx)("label",{htmlFor:"message",children:"How can we help?"}),(0,n.jsx)("textarea",{id:"message",name:"message",required:!0,maxLength:5e3,rows:6}),(0,n.jsx)("p",{"aria-live":"polite",hidden:!t,className:"form-status",children:t}),(0,n.jsxs)("button",{className:"button button-gold",type:"submit",disabled:i,children:[i?"Sending...":"Send message"," ",(0,n.jsx)("b",{children:"â"})]})]})}}},e=>{e.O(0,[619,441,255,358],()=>e(e.s=7456)),_N_E=e.O()}]);
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.