(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-227f5876"],{"1e5e":function(e,t,o){},"7a10":function(e,t,o){"use strict";o("1e5e")},d37b:function(e,t,o){"use strict";o.r(t);var c=o("f2bf");const r={class:"container mx-auto p-6 flex flex-col md:flex-row"},a={class:"flex-1 mb-6 md:mb-0 md:pr-6 md:mr-2 w-full text-left bg-white p-6 rounded shadow-md"},n={class:"text-2xl font-semibold text-gray-900 mb-6"},l={class:"text-lg mb-4 text-gray-600"},s={class:"list-disc pl-5 mb-4 text-lg text-gray-600"},i={class:"mb-2"},m={class:"mb-2"},d={class:"mb-2"},b={class:"mb-2"},p={class:"text-lg mb-4 text-gray-600"},u={class:"text-sm text-gray-600 mb-4"},j=["onInput"],O={class:"flex items-center"},$={class:"relative"},h={key:0,class:"w-12 h-12 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor"},x=Object(c["createElementVNode"])("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 13l4 4L19 7"},null,-1),v=[x],F={class:"text-xs text-left"},g={key:0,class:"text-xs text-red-500 mt-1"},f={class:"flex flex-col items-center space-y-3"},w=["disabled"];function V(e,t,o,x,V,E){const N=Object(c["resolveComponent"])("FieldWrapper");return Object(c["openBlock"])(),Object(c["createElementBlock"])("div",r,[Object(c["createElementVNode"])("div",a,[Object(c["createElementVNode"])("h2",n,Object(c["toDisplayString"])(e.$t("contact-page.header")),1),Object(c["createElementVNode"])("p",l,Object(c["toDisplayString"])(e.$t("contact-page.text1")),1),Object(c["createElementVNode"])("ul",s,[Object(c["createElementVNode"])("li",i,Object(c["toDisplayString"])(e.$t("contact-page.text2")),1),Object(c["createElementVNode"])("li",m,Object(c["toDisplayString"])(e.$t("contact-page.text3")),1),Object(c["createElementVNode"])("li",d,Object(c["toDisplayString"])(e.$t("contact-page.text4")),1),Object(c["createElementVNode"])("li",b,Object(c["toDisplayString"])(e.$t("contact-page.text5")),1)]),Object(c["createElementVNode"])("p",p,Object(c["toDisplayString"])(e.$t("contact-page.text6")),1),Object(c["createElementVNode"])("p",u,Object(c["toDisplayString"])(e.$t("contact-page.text7")),1)]),Object(c["createElementVNode"])("form",{onSubmit:t[9]||(t[9]=Object(c["withModifiers"])((...t)=>e.submitForm&&e.submitForm(...t),["prevent"])),class:"flex-1 mt-6 md:mt-0 md:pl-6 bg-white p-6 rounded shadow-md"},[Object(c["createVNode"])(N,{label:"contact-page.email_address",name:"email",errors:e.v$.contactForm.email.$errors},{default:Object(c["withCtx"])(()=>[Object(c["withDirectives"])(Object(c["createElementVNode"])("input",{type:"email",name:"email","onUpdate:modelValue":t[0]||(t[0]=t=>e.contactForm.email=t),class:Object(c["normalizeClass"])({error:e.v$.contactForm.email.$error,"focus:shadow":!e.v$.contactForm.email.$error}),onBlur:t[1]||(t[1]=(...t)=>e.v$.contactForm.email.$touch&&e.v$.contactForm.email.$touch(...t))},null,34),[[c["vModelText"],e.contactForm.email]])]),_:1},8,["errors"]),Object(c["createVNode"])(N,{label:"contact-page.phone_number",name:"phone",errors:e.v$.contactForm.phone.$errors},{default:Object(c["withCtx"])(()=>[Object(c["withDirectives"])(Object(c["createElementVNode"])("input",{type:"tel",name:"phone","onUpdate:modelValue":t[2]||(t[2]=t=>e.contactForm.phone=t),class:Object(c["normalizeClass"])({error:e.v$.contactForm.phone.$error,"focus:shadow":!e.v$.contactForm.phone.$error}),onBlur:t[3]||(t[3]=(...t)=>e.v$.contactForm.phone.$touch&&e.v$.contactForm.phone.$touch(...t))},null,34),[[c["vModelText"],e.contactForm.phone]])]),_:1},8,["errors"]),Object(c["createVNode"])(N,{class:"grow-wrap",label:"contact-page.conversation_topic",name:"topic",errors:e.v$.contactForm.topic.$errors},{default:Object(c["withCtx"])(()=>[Object(c["withDirectives"])(Object(c["createElementVNode"])("textarea",{name:"topic","onUpdate:modelValue":t[4]||(t[4]=t=>e.contactForm.topic=t),class:Object(c["normalizeClass"])({error:e.v$.contactForm.topic.$error}),rows:"4",onBlur:t[5]||(t[5]=(...t)=>e.v$.contactForm.topic.$touch&&e.v$.contactForm.topic.$touch(...t)),ref:"messageArea",onInput:e.textAreaExtend},null,42,j),[[c["vModelText"],e.contactForm.topic]])]),_:1},8,["errors"]),Object(c["createVNode"])(N,{name:"consent",errors:e.v$.contactForm.consent.$errors,class:"flex flex-col"},{default:Object(c["withCtx"])(()=>[Object(c["createElementVNode"])("div",O,[Object(c["createElementVNode"])("div",$,[Object(c["withDirectives"])(Object(c["createElementVNode"])("input",{type:"checkbox",class:"hidden",name:"consent","onUpdate:modelValue":t[6]||(t[6]=t=>e.contactForm.consent=t),onBlur:t[7]||(t[7]=(...t)=>e.v$.contactForm.consent.$touch&&e.v$.contactForm.consent.$touch(...t))},null,544),[[c["vModelCheckbox"],e.contactForm.consent]]),Object(c["createElementVNode"])("div",{onClick:t[8]||(t[8]=t=>e.contactForm.consent=!e.contactForm.consent),class:Object(c["normalizeClass"])(["w-5 h-5 border border-gray-300 rounded cursor-pointer flex items-center justify-center mr-2",{"border-textError":e.v$.contactForm.consent.$error,"bg-green-400":e.contactForm.consent}])},[e.contactForm.consent?(Object(c["openBlock"])(),Object(c["createElementBlock"])("svg",h,v)):Object(c["createCommentVNode"])("",!0)],2)]),Object(c["createElementVNode"])("span",F,Object(c["toDisplayString"])(e.$t("contact-page.tickbox_label")),1)]),e.v$.contactForm.consent.$touched&&e.v$.contactForm.consent.$error?(Object(c["openBlock"])(),Object(c["createElementBlock"])("span",g,Object(c["toDisplayString"])(e.$t("validation.required")),1)):Object(c["createCommentVNode"])("",!0)]),_:1},8,["errors"]),Object(c["createElementVNode"])("div",f,[Object(c["createElementVNode"])("button",{type:"submit",class:"primary w-full h-11",disabled:e.v$.contactForm.invalid},Object(c["toDisplayString"])(e.$t("contact-page.submit_button")),9,w)])],32)])}var E=o("25a0"),N=o("28dc"),y=o("633c"),k=o("5502"),C=Object(c["defineComponent"])({setup:()=>{const e=Object(k["b"])();return e.commit("setVuelidateExternalResults",{registerForm:{}}),{v$:Object(E["b"])({$externalResults:Object(c["reactive"])(e.state.vuelidateExternalResults),$autoDirty:!0})}},data:function(){return{contactForm:{email:"",phone:"",topic:"",consent:!1}}},validations:function(){return{contactForm:{email:{required:y["f"],email:y["a"]},phone:{required:y["f"],phone:y["e"]},topic:{required:y["f"]},consent:{mustBeTrue:y["c"]}}}},methods:{textAreaExtend(){const e=this.$refs.messageArea;e&&(e.parentNode.dataset.replicatedValue=e.value)},async submitForm(){this.v$.contactForm.$validate(),!this.v$.contactForm.$pending&&this.v$.contactForm.$error||await this.$store.dispatch("sendContactForm",{form:this.contactForm})}},components:{FieldWrapper:N["a"]}}),D=(o("7a10"),o("d959")),B=o.n(D);const S=B()(C,[["render",V]]);t["default"]=S}}]); //# sourceMappingURL=chunk-227f5876.6c192f84.js.map