1import{i as h,j as p,k as v,P as b}from"./entry.jnbG60om.js";import{M as m,N as c,Z as t,O as d,ag as u,a7 as r,ah as f,ai as w,ac as _}from"./swiper-vue.BH7YP1s8.js";import{_ as y}from"./_plugin-vue_export-helper.DlAUqK2U.js";const k={component:{},props:{document:{default:()=>{},type:Object},isModalOpen:{default:()=>{},type:Boolean}},data(){return{showTooltip:!0,email:null,formSent:!1,formViewEventSent:!1,privacy:!1,communications:!1}},created(){window.addEventListener("scroll",this.viewForm)},methods:{show(){this.showTooltip=!0},hide(){this.showTooltip=!1},closeModal(){this.$emit("close")},formSubmit(){const n="https://api.hsforms.com/submissions/v3/integration/submit/8693514/6832dd52-ab3f-4e03-ab92-c4650b4a51bc",e={fields:[{name:"email",value:this.email},{name:"privacy",value:this.privacy},{name:"communications",value:this.communications}]};h(this.email),this.formRequest(n,e).then(i=>{this.formSent=!0}).catch(i=>{console.error("Contact form could not be send. Please try again.",i)})},async formRequest(n,e){return await $fetch(n,{method:"POST",body:e})},formInput(){p()},viewForm(){this.$refs.leadForm&&this.$refs.leadForm.getBoundingClientRect().bottom<=window.innerHeight&&(this.formViewEventSent||v(),this.formViewEventSent=!0)}}},x={class:"modal__text"},S={ref:"leadForm",class:"lead__form"},V={class:"lead__form-checkbox"},C={for:"checkbox"},E={class:"lead__form-checkbox"},F={for:"checkbox"},M=["disabled"],g=["disabled"],T={key:0,class:"lead__form-success"};function B(n,e,i,I,s,l){const a=b;return i.isModalOpen?(m(),c("div",{key:0,class:"modal__backdrop",onClick:e[6]||(e[6]=(...o)=>l.closeModal&&l.closeModal(...o))},[t("div",{class:"modal__card",onClick:e[5]||(e[5]=u(()=>{},["stop"]))},[t("div",x,[d(a,{field:i.document.data.modal__title},null,8,["field"]),d(a,{field:i.document.data.modal__description},null,8,["field"])]),t("div",S,[t("form",{onSubmit:e[4]||(e[4]=u((...o)=>l.formSubmit&&l.formSubmit(...o),["prevent"]))},[t("div",V,[r(t("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=o=>s.privacy=o),required:""},null,512),[[f,s.privacy]]),t("label",C,[d(a,{field:i.document.data.waitlist__checkbox_privacy},null,8,["field"])])]),t("div",E,[r(t("input",{type:"checkbox","onUpdate:modelValue":e[1]||(e[1]=o=>s.communications=o)},null,512),[[f,s.communications]]),t("label",F,[d(a,{field:i.document.data.modal__checkbox_short},null,8,["field"])])]),t("fieldset",{disabled:s.formSent},[r(t("input",{type:"email","onUpdate:modelValue":e[2]||(e[2]=o=>s.email=o),required:"",placeholder:"Enter your work email",pattern:"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}",onFocus:e[3]||(e[3]=(...o)=>l.formInput&&l.formInput(...o))},null,544),[[w,s.email]]),t("input",{type:"submit",value:"Send email",disabled:!s.privacy},null,8,g)],8,M)],32),s.formSent?(m(),c("div",T,[d(a,{field:i.document.data.modal__success},null,8,["field"])])):_("",!0)],512)])])):_("",!0)}const P=y(k,[["render",B],["__scopeId","data-v-5fd8ecf6"]]);export{P as _};
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.