PageSourceSearch

https://weneed.ch/_nuxt/cMzlTG5L.js

js weneed.ch collected 2026-10-02 00:05:50 UTC 6,527 bytes, 10 lines download raw bytes

1import{Q as U,R as q,u as H,t as a,p as S,C as D,_ as T,n as l,x as i,z as s,q as d,U as E,y as e,J as p,V as k,W as w,X as h,G as A,N as I,I as L,r as m,e as R}from"./CG0zx5Uh.js";const j=()=>U().$mail,z={key:0,class:"BlockForm__text"},G={class:"BlockForm__legend"},J={class:"BlockForm__columns"},Q={class:"BlockForm__fieldWrapper"},X={for:"concern",class:"isVisuallyHidden"},K={value:"",disabled:"",selected:""},O={value:"concernFeedback"},P={value:"concernApp"},Y={key:0,class:"BlockForm__error"},Z={key:0,class:"BlockForm__fieldWrapper"},x={for:"confirmDeletion",class:"isVisuallyHidden"},oo=["placeholder"],eo={key:0,class:"BlockForm__error"},so={class:"BlockForm__fieldWrapper"},lo={for:"message",class:"isVisuallyHidden"},to=["placeholder"],no={class:"BlockForm__legend"},co={class:"BlockForm__columns"},ao={class:"BlockForm__fieldWrapper"},ro={for:"salutation",class:"isVisuallyHidden"},io={value:"",disabled:"",selected:""},mo={value:"mr"},uo={value:"mrs"},_o={value:"diverse"},po={key:0,class:"BlockForm__error"},ko={class:"BlockForm__fieldWrapper"},Bo={for:"firstname",class:"isVisuallyHidden"},Fo=["placeholder"],fo={key:0,class:"BlockForm__error"},vo={class:"BlockForm__fieldWrapper"},$o={for:"lastname",class:"isVisuallyHidden"},ho=["placeholder"],yo={key:0,class:"BlockForm__error"},bo={class:"BlockForm__fieldWrapper"},go={for:"email",class:"isVisuallyHidden"},Vo=["placeholder"],Do={key:0,class:"BlockForm__error"},wo={key:0,class:"BlockForm__errorMessage"},Mo={key:2,class:"BlockForm__success"},Wo={__name:"BlockForm",setup(Co){const{t:r}=H(),M=R(),c=m(""),y=m(""),B=m(""),F=m(""),f=m(""),u=m(""),v=m(""),b=m(!1),g=m(!1),_=m(!1),W=j();async function C(){if(_.value=!0,!c.value||!B.value||!F.value||!f.value||!u.value||c.value==="concernDeletion"&&!v.value)return;const o=`WeNeed: ${r(`components.BlockForm.${c.value}`)}`,t=`
2        ${r("components.BlockForm.mailTitle")}:
3        ${r("components.BlockForm.salutation")}: ${B.value}
4        ${r("components.BlockForm.firstname")}: ${F.value}
5        ${r("components.BlockForm.lastname")}: ${f.value}
6        ${r("components.BlockForm.email")}: ${u.value}
7        ${r("components.BlockForm.concern")}: ${r(`components.BlockForm.${c.value}`)}
8        ${r("components.BlockForm.message")}: ${y.value}
9        ${c.value==="concernDeletion"?`${r("components.BlockForm.confirmDeletion")}: ${v.value}`:""}
10    `;let $;M.public.isLocalhost==="true"?$="valencia":($="customerService",c.value==="concernDeletion"&&($="feedback"));try{await W.send({config:$,subject:o,text:t.trim(),replyTo:u.value}),b.value=!0,g.value=!1,N()}catch(V){console.error("Error sending email:",V),g.value=!0}}function N(){if(window.utag){const o={event_attributes_eventName:"form_submit",event_category:"Conversions & Leads",event_action:"Contact",event_label:r(`components.BlockForm.${c.value}`),platform:"weneed-web"};window.utag.link(o)}}return(o,t)=>{const $=I,V=T;return a(),S(V,{class:"BlockForm siteWidthMedium"},{default:D(()=>[l(b)?d("",!0):(a(),i("p",z,s(o.$t("components.BlockForm.text")),1)),l(b)?(a(),i("p",Mo,s(o.$t("components.BlockForm.successMessage")),1)):(a(),i("form",{key:1,id:"BlockForm__form",class:"BlockForm__form",onSubmit:E(C,["prevent"])},[e("fieldset",null,[e("legend",G,s(o.$t("components.BlockForm.concernTitle")),1),e("fieldset",J,[e("div",Q,[e("label",X,s(o.$t("components.BlockForm.concern")),1),p(e("select",{id:"concern","onUpdate:modelValue":t[0]||(t[0]=n=>k(c)?c.value=n:null),name:"concern",class:"BlockForm__field"},[e("option",K,s(o.$t("components.BlockForm.concern"))+"* ",1),e("option",O,s(o.$t("components.BlockForm.concernFeedback")),1),e("option",P,s(o.$t("components.BlockForm.concernApp")),1)],512),[[w,l(c)]]),!l(c)&&l(_)?(a(),i("p",Y,s(o.$t("components.BlockForm.required")),1)):d("",!0)])]),l(c)==="concernDeletion"?(a(),i("div",Z,[e("label",x,s(o.$t("components.BlockForm.confirmDeletion")),1),p(e("input",{id:"confirmDeletion","onUpdate:modelValue":t[1]||(t[1]=n=>k(v)?v.value=n:null),type:"email",name:"confirmDeletion",class:"BlockForm__field",placeholder:`${o.$t("components.BlockForm.confirmDeletion")}*`},null,8,oo),[[h,l(v)]]),!l(v)&&l(_)?(a(),i("p",eo,s(o.$t("components.BlockForm.required")),1)):d("",!0)])):d("",!0),e("div",so,[e("label",lo,s(o.$t("components.BlockForm.message")),1),p(e("textarea",{id:"message","onUpdate:modelValue":t[2]||(t[2]=n=>k(y)?y.value=n:null),name:"message",class:"BlockForm__field",placeholder:`${o.$t("components.BlockForm.message")}`},null,8,to),[[h,l(y)]])])]),e("fieldset",null,[e("legend",no,s(o.$t("components.BlockForm.contactTitle")),1),e("fieldset",co,[e("div",ao,[e("label",ro,s(o.$t("components.BlockForm.salutation")),1),p(e("select",{id:"salutation","onUpdate:modelValue":t[3]||(t[3]=n=>k(B)?B.value=n:null),name:"salutation",class:"BlockForm__field"},[e("option",io,s(o.$t("components.BlockForm.salutation"))+"* ",1),e("option",mo,s(o.$t("components.BlockForm.salutationMr")),1),e("option",uo,s(o.$t("components.BlockForm.salutationMrs")),1),e("option",_o,s(o.$t("components.BlockForm.salutationDiverse")),1)],512),[[w,l(B)]]),!l(B)&&l(_)?(a(),i("p",po,s(o.$t("components.BlockForm.required")),1)):d("",!0)]),e("div",ko,[e("label",Bo,s(o.$t("components.BlockForm.firstname")),1),p(e("input",{id:"firstname","onUpdate:modelValue":t[4]||(t[4]=n=>k(F)?F.value=n:null),type:"text",name:"firstname",class:"BlockForm__field",placeholder:`${o.$t("components.BlockForm.firstname")}*`},null,8,Fo),[[h,l(F)]]),!l(F)&&l(_)?(a(),i("p",fo,s(o.$t("components.BlockForm.required")),1)):d("",!0)]),e("div",vo,[e("label",$o,s(o.$t("components.BlockForm.lastname")),1),p(e("input",{id:"lastname","onUpdate:modelValue":t[5]||(t[5]=n=>k(f)?f.value=n:null),type:"text",name:"lastname",class:"BlockForm__field",placeholder:`${o.$t("components.BlockForm.lastname")}*`},null,8,ho),[[h,l(f)]]),!l(f)&&l(_)?(a(),i("p",yo,s(o.$t("components.BlockForm.required")),1)):d("",!0)]),e("div",bo,[e("label",go,s(o.$t("components.BlockForm.email")),1),p(e("input",{id:"email","onUpdate:modelValue":t[6]||(t[6]=n=>k(u)?u.value=n:null),type:"email",name:"email",class:"BlockForm__field",placeholder:`${o.$t("components.BlockForm.email")}*`},null,8,Vo),[[h,l(u)]]),!l(u)&&l(_)?(a(),i("p",Do,s(o.$t("components.BlockForm.required")),1)):d("",!0)])])]),l(g)?(a(),i("p",wo,s(o.$t("components.BlockForm.errorMessage")),1)):d("",!0),A($,{class:"BlockForm__submit",type:"submit"},{default:D(()=>[L(s(o.$t("components.BlockForm.submit")),1)]),_:1})],32))]),_:1})}}},Uo=q(Wo,[["__scopeId","data-v-ccec6388"]]);export{Uo 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.