1import{_ as H}from"./CXJwfy63.js";import{_ as I}from"./DzWhZ8SL.js";import{d as O,a as B,b as z,C as Q,Y as T,n as Y,c as G,f as _,g as e,h as R,w as U,i as a,t as o,H as j,j as d,L as r,M as p,Q as J,m as K,O as y,k as W,R as X,q as v,l as Z,r as m,_ as x,e as f}from"./C-ixyGM-.js";import{u as ee}from"./Bq2tZVzE.js";import{_ as te}from"./DlAUqK2U.js";const se={class:"contact-page"},oe={class:"container py-5"},ae={class:"contact-layout"},ne={class:"contact-left"},le={class:"contact-breadcrumb mb-4"},ie={class:"bc-current"},ce={class:"contact-title"},re={class:"contact-description"},de={class:"contact-channels"},pe={class:"channel-item"},ue={class:"channel-label"},me={class:"channel-sub"},fe={class:"channel-item"},he={class:"channel-label"},_e={class:"channel-sub"},ve={class:"contact-reviews"},ge={class:"review-text ms-2"},be={class:"contact-info-grid"},ke={class:"info-block"},we={class:"info-heading"},$e={class:"info-line"},ye={class:"info-line"},Ne={class:"info-line"},Ce={class:"info-block"},Se={class:"info-heading"},Ve={class:"info-line"},qe={class:"info-line"},Be={class:"info-line"},Te={class:"contact-right"},Re={class:"form-title"},Ue={class:"contact-form-card"},je={class:"form-row"},Ae={class:"cf-field"},Fe={class:"cf-label"},Le=["placeholder","disabled"],Me={class:"cf-field"},Pe={class:"cf-label"},De=["placeholder","disabled"],Ee={class:"cf-field"},He={class:"cf-label"},Ie=["placeholder","disabled"],Oe={class:"cf-field"},ze={class:"cf-label"},Qe=["placeholder","disabled"],Ye={class:"cf-field"},Ge={class:"cf-label"},Je=["placeholder","disabled"],Ke={class:"cf-field"},We={class:"cf-label"},Xe=["placeholder","disabled"],Ze={class:"cf-terms"},xe=["disabled"],et={for:"agree-terms",class:"cf-terms-label"},tt={href:"#",class:"cf-terms-link"},st={key:0,class:"cf-error"},ot=["disabled"],at={key:0,width:"18",height:"18",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},nt={class:"popup-card"},lt={class:"popup-title"},it={class:"popup-desc"},ct=O({__name:"contact",setup(rt){const{t:c}=B(),N=z(),{locale:A}=B(),{currentLocaleSettings:F}=Q(),g=ee(),b=v(()=>g.shopReviews.average_rating),k=v(()=>g.shopReviews.reviews.total),C=T("review_average",{default:()=>""}),S=T("review_total",{default:()=>0}),w=m(!1);Y(()=>g.status,t=>{t==="success"&&(w.value=!0,C.value=b.value.toFixed(1),S.value=k.value)});const V=v(()=>w.value?b.value:parseFloat(C.value)||b.value),L=v(()=>w.value?k.value:S.value||k.value);G({title:()=>c("contact.meta_title")});const n=Z({firstName:"",lastName:"",companyName:"",email:"",phone:"",message:""}),h=m(!1),i=m(!1),$=m(!1),u=m("");function M(){return n.firstName.trim()?n.lastName.trim()?n.email.trim()?n.phone.trim()?h.value?null:c("contact.form.agree_terms"):c("contact.form.phone")+" "+c("contact.form.required_field"):c("contact.form.email")+" "+c("contact.form.required_field"):c("contact.form.last_name")+" "+c("contact.form.required_field"):c("contact.form.first_name")+" "+c("contact.form.required_field")}async function P(){u.value="";const t=M();if(t){u.value=t;return}i.value=!0;try{await $fetch(`${F.value.apiBaseUrl}/freshdesk/ticket?locale=${A.value}`,{method:"POST",body:{first_name:n.firstName,last_name:n.lastName,company_name:n.companyName,email:n.email,phone:n.phone,message:n.message}}),$.value=!0}catch{u.value=c("contact.form.required_field")}finally{i.value=!1}}function q(){$.value=!1,x(N("index"))}return(t,s)=>{const D=H,E=I;return f(),_("main",se,[e("div",oe,[e("div",ae,[e("div",ne,[e("nav",le,[R(D,{to:a(N)("index"),class:"bc-link"},{default:U(()=>[d(o(t.$t("contact.page.homepage")),1)]),_:1},8,["to"]),s[7]||(s[7]=e("span",{class:"bc-sep"},"/",-1)),e("span",ie,o(t.$t("contact.page.contact")),1)]),e("h1",ce,o(t.$t("contact.page.title")),1),e("p",re,o(t.$t("contact.page.description")),1),e("div",de,[e("div",pe,[s[8]||(s[8]=e("div",{class:"channel-icon"},[e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07A19.5 19.5 0 0 1 4.69 12a19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 3.6 1.18h3a2 2 0 0 1 2 1.72c.127.96.361 1.903.7 2.81a2 2 0 0 1-.45 2.11L7.91 8.91a16 16 0 0 0 6 6l.95-.95a2 2 0 0 1 2.11-.45c.907.339 1.85.573 2.81.7a2 2 0 0 1 1.72 2.02z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("span",ue,o(t.$t("contact.page.call_us")),1),e("span",me,o(t.$t("contact.page.opening_hours")),1)]),s[10]||(s[10]=e("div",{class:"channel-divider"},null,-1)),e("div",fe,[s[9]||(s[9]=e("div",{class:"channel-icon"},[e("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e("rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e("polyline",{points:"2,4 12,13 22,4",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("span",he,o(t.$t("contact.page.email_us")),1),e("span",_e,o(t.$t("contact.page.response_time")),1)])]),e("div",ve,[R(E,{rating:a(V)},{default:U(()=>[e("span",ge,o(t.$t("footer.reviews",{count:a(L)}))+" "+o(t.$t("contact.page.reviews_average"))+" "+o(a(V).toFixed(1)),1)]),_:1},8,["rating"])]),e("div",be,[e("div",ke,[e("h3",we,o(t.$t("contact.page.contact")),1),e("p",$e,o(t.$t("contact.page.address")),1),e("p",ye,o(t.$t("contact.page.postal_code")),1),s[11]||(s[11]=e("p",{class:"info-line"},"[email protected]",-1)),e("p",Ne,o(t.$t("contact.page.phone")),1)]),e("div",Ce,[e("h3",Se,o(t.$t("contact.page.company_details")),1),e("p",Ve,o(t.$t("contact.page.iban_nl")),1),e("p",qe,o(t.$t("contact.page.tax_number_nl")),1),e("p",Be,o(t.$t("contact.page.chamber_of_commerce_nl")),1)])])]),e("div",Te,[e("h2",Re,o(t.$t("contact.page.formAction")),1),e("div",Ue,[e("form",{novalidate:"",onSubmit:j(P,["prevent"])},[e("div",je,[e("div",Ae,[e("label",Fe,[d(o(t.$t("contact.form.first_name")),1),s[12]||(s[12]=e("span",{class:"cf-req"},"*",-1))]),r(e("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>a(n).firstName=l),type:"text",class:"cf-input",placeholder:t.$t("contact.form.first_name"),disabled:a(i)},null,8,Le),[[p,a(n).firstName]])]),e("div",Me,[e("label",Pe,[d(o(t.$t("contact.form.last_name")),1),s[13]||(s[13]=e("span",{class:"cf-req"},"*",-1))]),r(e("input",{"onUpdate:modelValue":s[1]||(s[1]=l=>a(n).lastName=l),type:"text",class:"cf-input",placeholder:t.$t("contact.form.last_name"),disabled:a(i)},null,8,De),[[p,a(n).lastName]])])]),e("div",Ee,[e("label",He,o(t.$t("contact.form.company_name")),1),r(e("input",{"onUpdate:modelValue":s[2]||(s[2]=l=>a(n).companyName=l),type:"text",class:"cf-input",placeholder:t.$t("contact.form.company_name"),disabled:a(i)},null,8,Ie),[[p,a(n).companyName]])]),e("div",Oe,[e("label",ze,[d(o(t.$t("contact.form.email")),1),s[14]||(s[14]=e("span",{class:"cf-req"},"*",-1))]),r(e("input",{"onUpdate:modelValue":s[3]||(s[3]=l=>a(n).email=l),type:"email",class:"cf-input",placeholder:t.$t("contact.form.email"),disabled:a(i)},null,8,Qe),[[p,a(n).email]])]),e("div",Ye,[e("label",Ge,[d(o(t.$t("contact.form.phone")),1),s[15]||(s[15]=e("span",{class:"cf-req"},"*",-1))]),r(e("input",{"onUpdate:modelValue":s[4]||(s[4]=l=>a(n).phone=l),type:"tel",class:"cf-input",placeholder:t.$t("contact.form.phone_placeholder"),disabled:a(i)},null,8,Je),[[p,a(n).phone]])]),e("div",Ke,[e("label",We,o(t.$t("contact.form.your_message")),1),r(e("textarea",{"onUpdate:modelValue":s[5]||(s[5]=l=>a(n).message=l),class:"cf-textarea",placeholder:t.$t("contact.form.message_placeholder"),rows:"5",disabled:a(i)},null,8,Xe),[[p,a(n).message]])]),e("div",Ze,[r(e("input",{id:"agree-terms","onUpdate:modelValue":s[6]||(s[6]=l=>K(h)?h.value=l:null),type:"checkbox",class:"cf-checkbox",disabled:a(i)},null,8,xe),[[J,a(h)]]),e("label",et,[e("a",tt,o(t.$t("contact.form.agree_terms")),1)])]),a(u)?(f(),_("p",st,o(a(u)),1)):y("",!0),e("button",{type:"submit",class:"cf-submit btn btn-secondary",disabled:a(i)},[d(o(a(i)?"â¦":t.$t("contact.form.submit_button"))+" ",1),a(i)?y("",!0):(f(),_("svg",at,[...s[16]||(s[16]=[e("polyline",{points:"9,18 15,12 9,6",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))],8,ot)],32)])])])]),(f(),W(X,{to:"body"},[a($)?(f(),_("div",{key:0,class:"popup-overlay",onClick:j(q,["self"])},[e("div",nt,[s[17]||(s[17]=e("div",{class:"popup-icon"},[e("svg",{width:"40",height:"40",viewBox:"0 0 24 24",fill:"none","aria-hidden":"true"},[e("circle",{cx:"12",cy:"12",r:"10",fill:"#51a23a"}),e("polyline",{points:"7,12 10,15 17,9",stroke:"#fff","stroke-width":"2.2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),e("h2",lt,o(t.$t("contact.popup.title")),1),e("p",it,o(t.$t("contact.popup.description")),1),e("button",{class:"popup-action",onClick:q},o(t.$t("contact.popup.action")),1)])])):y("",!0)]))])}}}
1),ht=te(ct,[["__scopeId","data-v-3924d314"]]);export{ht as default};
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.