1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,595468,e=>{"use strict";e.s(["CheckCircle2",()=>a],595468);let a=(0,e.i(475254).default)("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]])},624687,e=>{"use strict";e.s(["Textarea",()=>t]);var a=e.i(843476),s=e.i(271645),r=e.i(975157);let t=s.forwardRef((e,s)=>{let{className:t,...l}=e;return(0,a.jsx)("textarea",{className:(0,r.cn)("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),ref:s,...l})});t.displayName="Textarea"},965254,e=>{"use strict";e.s(["ContactForm",()=>d]);var a=e.i(843476),s=e.i(271645),r=e.i(618566),t=e.i(519455),l=e.i(793479),i=e.i(110204),n=e.i(624687),o=e.i(531278),c=e.i(595468);let m={nl:{name:"Naam",namePlaceholder:"Je naam",email:"E-mailadres",emailPlaceholder:"[email protected]",subject:"Onderwerp",subjectPlaceholder:"Waar gaat je vraag over?",message:"Bericht",messagePlaceholder:"Je bericht...",submit:"Verzenden",submitting:"Verzenden...",sentTitle:"Bericht verzonden!",sentDesc:"Bedankt voor je bericht. We nemen zo snel mogelijk contact met je op.",sendAnother:"Nog een bericht sturen",requiredError:"Vul alle verplichte velden in.",sendError:"Er ging iets mis bij het verzenden. Probeer het opnieuw of mail naar [email protected].",failError:"Verzenden mislukt"},en:{name:"Name",namePlaceholder:"Your name",email:"Email address",emailPlaceholder:"[email protected]",subject:"Subject",subjectPlaceholder:"What is your question about?",message:"Message",messagePlaceholder:"Your message...",submit:"Send",submitting:"Sending...",sentTitle:"Message sent!",sentDesc:"Thank you for your message. We will get back to you as soon as possible.",sendAnother:"Send another message",requiredError:"Please fill in all required fields.",sendError:"Something went wrong. Please try again or email [email protected].",failError:"Failed to send"}};function d(e){let{locale:d="nl"}=e,u=m[d],h=(0,r.useRouter)(),[g,b]=(0,s.useState)({name:"",email:"",subject:"",message:""}),[p,j]=(0,s.useState)(!1),[x,f]=(0,s.useState)(!1),[v,y]=(0,s.useState)(null),N=async e=>
1{if(e.preventDefault(),y(null),!g.name.trim()||!g.email.trim()||!g.subject.trim())return void y(u.requiredError);j(!0);try{if(!(await fetch("/api/contact",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(g)})).ok)throw Error(u.failError);let e=new URLSearchParams;g.subject&&e.set("onderwerp",g.subject),h.push("/bedankt-contact?".concat(e.toString()))}catch(e){y(u.sendError)}finally{j(!1)}};return x?(0,a.jsxs)("div",{className:"text-center py-8 space-y-3",children:[(0,a.jsx)(c.CheckCircle2,{className:"w-12 h-12 text-emerald-500 mx-auto"}),(0,a.jsx)("h3",{className:"text-lg font-semibold text-foreground",children:u.sentTitle}),(0,a.jsx)("p",{className:"text-sm text-foreground/70",children:u.sentDesc}),(0,a.jsx)(t.Button,{variant:"outline",onClick:()=>f(!1),className:"mt-4",children:u.sendAnother})]}):(0,a.jsxs)("form",{onSubmit:N,className:"space-y-4",children:[(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)(i.Label,{htmlFor:"name",children:[u.name," *"]}),(0,a.jsx)(l.Input,{id:"name",value:g.name,onChange:e=>b({...g,name:e.target.value}),placeholder:u.namePlaceholder,required:!0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)(i.Label,{htmlFor:"email",children:[u.email," *"]}),(0,a.jsx)(l.Input,{id:"email",type:"email",value:g.email,onChange:e=>b({...g,email:e.target.value}),placeholder:u.emailPlaceholder,required:!0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsxs)(i.Label,{htmlFor:"subject",children:[u.subject," *"]}),(0,a.jsx)(l.Input,{id:"subject",value:g.subject,onChange:e=>b({...g,subject:e.target.value}),placeholder:u.subjectPlaceholder,required:!0})]}),(0,a.jsxs)("div",{className:"space-y-2",children:[(0,a.jsx)(i.Label,{htmlFor:"message",children:u.message}),(0,a.jsx)(n.Textarea,{id:"message",value:g.message,onChange:e=>b({...g,message:e.target.value}),placeholder:u.messagePlaceholder,rows:5})]}),v&&(0,a.jsx)("p",{className:"text-sm text-destructive",children:v}),(0,a.jsx)(t.Button,{type:"submit",className:"w-full",disabled:p,children:p?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(o.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}),u.submitting]}):u.submit})]})}}]);
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.