1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75418,e=>{"use strict";var r=e.i(428184),a=e.i(335718);function s({idPrefix:e,label:a,name:t,type:n="text",multiline:l,placeholder:o,required:i,error:c,onInput:d,borderClass:u}){let m=`${e}-${t}-error`;return(0,r.jsxs)("label",{className:"block",children:[(0,r.jsxs)("span",{className:"mono-label text-muted-foreground",children:[a,i?(0,r.jsx)("span",{"aria-hidden":!0,children:" *"}):null]}),(0,r.jsx)(l?"textarea":"input",{name:t,type:l?void 0:n,rows:l?6:void 0,placeholder:o,required:i,onInput:d,"aria-invalid":!!c||void 0,"aria-describedby":c?m:void 0,className:"mt-2 w-full bg-transparent border-b py-2 outline-none placeholder:text-muted-foreground/50 "+(c?"border-accent focus:border-accent":`${u} focus:border-foreground`)}),c?(0,r.jsx)("span",{id:m,role:"alert",className:"mono-label mt-2 block text-accent",children:c}):null]})}e.s(["LeadForm",0,function({labels:e,hiddenFields:t,subject:n,withTurnstile:l=!0,focusOnSuccess:o=!1,onSuccess:i,idPrefix:c="lead",inputBorderClass:d="border-gray-300"}){let[u,m]=(0,a.useState)("idle"),[b,p]=(0,a.useState)(null),[f,h]=(0,a.useState)({}),g=(0,a.useRef)(null),x=(0,a.useRef)(null),v=(0,a.useRef)(void 0);function y(e){h(r=>{if(!(e in r))return r;let a={...r};return delete a[e],a})}async function j(r){if(r.preventDefault(),"submitting"===u)return;let a=r.currentTarget,s={},t=a.elements.namedItem("name").value.trim(),o=a.elements.namedItem("email").value.trim(),c=a.elements.namedItem("message").value.trim();if(t||(s.name=e.errorRequired),o?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(o)||(s.email=e.errorInvalidEmail):s.email=e.errorRequired,c||(s.message=e.errorRequired),h(s),Object.keys(s).length>0){let e=["name","email","message"].find(e=>s[e]);e&&a.elements.namedItem(e).focus();return}m("submitting"),p(null);let d=new FormData(a);d.append("access_key","52982787-98c5-4f74-b4a1-52174ec76e97"),n&&d.append("subject",n);let b=d.get("cf-turnstile-response");if(l&&!b&&await new Promise(e=>{let r=0,a=setInterval(()=>{r++;let s=document.querySelector('input[name="cf-turnstile-response"]');s?.value?(b=s.value,clearInterval(a),e()):r>=20&&(clearInterval(a),e())},500)}),l&&!b){m("error"),p("Security check timed out. Please refresh the page and try again.");return}try{let e=await fetch("https://api.web3forms.com/submit",{method:"POST",body:d,headers:{Accept:"application/json"}}),r=await e.json();r.success?(m("success"),g.current?.reset(),i?.()):(m("error"),p(r.message??null))}catch{m("error"),p(null)}}return((0,a.useEffect)(()=>()=>{v.current&&void 0!==window.turnstile&&(window.turnstile.remove(v.current),v.current=void 0)},[]),(0,a.useEffect)(()=>{"success"===u&&o&&x.current?.focus()},[u,o]),"success"===u)?(0,r.jsxs)("div",{ref:x,tabIndex:-1,role:"status","aria-live":"polite",className:"border border-border bg-muted p-8 md:p-10 space-y-4 outline-none",children:[(0,r.jsx)("p",{className:"mono-label text-foreground",children:e.successTitle}),(0,r.jsx)("p",{className:"text-base text-muted-foreground leading-relaxed",children:e.successMessage}),(0,r.jsx)("button",{type:"button",onClick:()=>m("idle"),className:"mono-label text-muted-foreground hover:text-foreground underline decoration-accent decoration-2 underline-offset-4 transition-colors",children:e.sendAnother})]}):(0,r.jsxs)("form",{ref:g,onSubmit:j,className:"space-y-6",noValidate:!0,children:[(0,r.jsx)("input",{type:"checkbox",name:"botcheck",tabIndex:-1,"aria-hidden":"true",className:"absolute -left-[9999px] h-0 w-0 opacity-0"}),t?Object.entries(t).map(([e,a])=>(0,r.jsx)("input",{type:"hidden",name:e,value:a},e)):null,(0,r.jsx)(s,{idPrefix:c,label:e.name,name:"name",placeholder:e.namePlaceholder,required:!0,error:f.name,onInput:()=>y("name"),borderClass:d}),(0,r.jsx)(s,{idPrefix:c,label:e.email,name:"email",type:"email",placeholder:e.emailPlaceholder,required:!0,error:f.email,onInput:()=>y("email"),borderClass:d}),(0,r.jsx)(s,{idPrefix:c,label:e.company,name:"company",placeholder:e.companyPlaceholder,error:void 0,onInput:void 0,borderClass:d}),(0,r.jsx)(s,{idPrefix:c,label:e.message,name:"message",multiline:!0,placeholder:e.messagePlaceholder,required:!0,error:f.message,onInput:()=>y("message"),borderClass:d}),l?(0,r.jsx)("div",{ref:function(e){l&&e&&!v.current&&function r(){void 0===window.turnstile?setTimeout(r,200):v.current=window.turnstile.render(e,{sitekey:"0x4AAAAAABkT4fc1t_lEGMDP"})}()}}):null,(0,r.jsx)("div",{className:"pt-2",children:(0,r.jsxs)("button",{type:"submit",disabled:"submitting"===u,className:"w-full md:w-auto inline-flex items-center justify-center h-12 px-8 bg-foreground text-background mono-label disabled:opacity-50 disabled:cursor-not-allowed",children:["submitting"===u?e.sending:e.send," â"]})}),"error"===u?(0,r.jsxs)("p",{role:"alert","aria-live":"assertive",className:"mono-label text-accent",children:[e.errorMessage,b?` (${b})`:null]}):null]})}])},841680,e=>{"use strict";var r=e.i(428184),a=e.i(306573),s=e.i(972725),t=e.i(375679),n=e.i(75418);e.s(["ContactForm",0,function(){let e=(0,a.useTranslations)("Contact"),l=(0,s.useLocale)(),o={name:e("name"),email:e("email"),company:e("company"),message:e("message"),namePlaceholder:e("namePlaceholder"),emailPlaceholder:e("emailPlaceholder"),companyPlaceholder:e("companyPlaceholder"),messagePlaceholder:e("messagePlaceholder"),send:e("send"),sending:e("sending"),errorRequired:e("errorRequired"),errorInvalidEmail:e("errorInvalidEmail"),errorMessage:e("errorMessage"),successTitle:e("successTitle"),successMessage:e("successMessage"),sendAnother:e("sendAnother")};return(0,r.jsx)(n.LeadForm,{labels:o,idPrefix:"contact",inputBorderClass:"border-border",focusOnSuccess:!1,onSuccess:()=>
1{(0,t.trackEvent)("contact_form_submit",{locale: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.