PageSourceSearch

https://mafi.com/_nuxt/ContactSlideArea.30RKZkYe.js

js mafi.com collected 2026-10-06 13:40:50 UTC 5,463 bytes, 1 lines download raw bytes

1import{_ as B,r as _,u as F,I as d,A as D,D as h,x as r,h as c,m as l,F as k,l as i,j as z,E as w,L as N,p as V,G as C,B as S,K as q,M,P}from"./entry.rIozx1WT.js";import j from"./send.client.C7YKaq0Q.js";import{_ as A}from"./nuxt-link.2A7gRxzg.js";import L from"./TitleBlock.u2cBYyTp.js";import O from"./FormControl.Y2vxzKZ5.js";import E from"./Select.8J18eE8Q.js";import W from"./Wysiwyg.DnkQZ2zd.js";import H from"./Form.1EZXopJt.js";import R from"./Textarea.Ghm8T7fU.js";import{a as G}from"./index.jR1_vC-u.js";import{g as K}from"./api.f-WnAf6E.js";import{t as I}from"./helper.Cyb9nIof.js";import"./FormLabel.1HW0GAoH.js";import"./FormErrors._A8FkE1p.js";import"./index.jsqYqjza.js";import"./GlobalStore.CIADVtIY.js";import"./_commonjsHelpers.4gQjN7DL.js";import"./axios.4WwoOJEa.js";const J=P(j),Q={name:"ContactSlideArea",props:{className:{default:"content-block",type:String},data:{title:String,text:String,image:String,cta:Object,className:String,formUrl:String,possibleCountries:Object,variant:{default:"v1",type:String}}},components:{TitleBlock:L,FormControl:O,Select:E,Wysiwyg:W,Form:H,Textarea:R},setup(a){const e={v2:{mail:!0,plz:!0,country:!0,phone:!1,name:!1},v3:{mail:!0,plz:!0,country:!0,phone:!0,name:!1},v4:{mail:!0,plz:!0,country:!0,phone:!0,name:!0}},n=_(a.data.actionUrl),t=_(!1),s=_({}),m=_({email:"",zip:"",country:"",phone:"",name:"",text:"",variant:a.data.variant}),v=F();return{variants:e,formInstance:s,formData:m,formSuccess:t,handleSubmit:y=>{y.preventDefault();let g=!0;if(m.value.honeypot&&m.value.honeypot.length>0){console.log("you are a fucking bot");return}let f=new URLSearchParams;f.append("url",window.location.origin+n.value),s.value&&g&&s.value.validate().then(b=>{if(b==="Valid"){if(I(s.value.form,!0),n.value===void 0){console.error("Missing prop actionUrl!");return}G({method:"POST",url:K("routing"),headers:{"Content-Type":"application/json"},params:f,data:{...m.value,actionUrl:v.path}}).then(({data:p})=>{p.success&&(t.value=!0,M({gtm:{datalayer:{event:"contact",areaType:p.variant,country:m.value.country}}})),I(s.value.form,!1)})}})}}}},X={class:"row gx-0"},Y={class:"col-md-6"},Z=["innerHTML"],$={class:"col-md-6"},tt={class:"contact-slide__content bg-secondary h-100"},et={class:"row"},at={class:"col-12"},ot={class:"col-3"},nt={class:"col-9"},lt={key:0,class:"col"},it={key:1,class:"col"},rt={class:"col-12"},st={class:"col-auto"},mt={key:1,class:"wysiwyg"};function dt(a,e,n,t,s,m){const v=d("TitleBlock"),u=d("FormControl"),y=d("Select"),g=d("Textarea"),f=J,b=d("Form"),p=d("Wysiwyg"),x=A,T=D("lazyload"),U=D("fade");return h((r(),c("aside",{class:q(["contact-slide",n.className])},[l("div",X,[l("div",Y,[h(l("div",{class:"contact-slide__img img-cover",innerHTML:n.data.image},null,8,Z),[[T]])]),l("div",$,[l("div",tt,[n.data.variant!=="v1"?(r(),c(k,{key:0},[i(v,{title:n.data.title},null,8,["title"]),t.formSuccess?(r(),c("div",mt,S(a.$t("contact-form.success-message")),1)):(r(),z(b,{key:0,onFormValidationInit:e[8]||(e[8]=o=>t.formInstance=o)},{default:w(()=>[h(l("input",{type:"text",class:"visually-hidden",name:"floorId","onUpdate:modelValue":e[0]||(e[0]=o=>t.formData.honeypot=o),"aria-label":"floorid"},null,512),[[N,t.formData.honeypot]]),l("div",et,[l("div",at,[i(u,{size:"lg",label:a.$t("contact-area.email"),type:"email",id:"emailInput"+a.id,name:"email",required:!0,modelValue:t.formData.email,"onUpdate:modelValue":e[1]||(e[1]=o=>t.formData.email=o)},null,8,["label","id","modelValue"])]),l("div",ot,[i(u,{size:"lg",label:a.$t("contact-area.zip"),id:"zipInput"+a.id,name:"zip",required:!0,modelValue:t.formData.zip,"onUpdate:modelValue":e[2]||(e[2]=o=>t.formData.zip=o)},null,8,["label","id","modelValue"])]),l("div",nt,[i(y,{size:"lg",label:a.$t("contact-area.country"),id:"countryInput"+a.id,name:"country",options:n.data.possibleCountries,required:!0,modelValue:t.formData.country,"onUpdate:modelValue":e[3]||(e[3]=o=>t.formData.country=o)},null,8,["label","id","options","modelValue"])]),t.variants[n.data.variant].phone?(r(),c("div",lt,[i(u,{size:"lg",label:a.$t("contact-area.phone"),id:"phoneInput"+a.id,name:"phone",required:!0,modelValue:t.formData.phone,"onUpdate:modelValue":e[4]||(e[4]=o=>t.formData.phone=o)},null,8,["label","id","modelValue"])])):V("",!0),t.variants[n.data.variant].name?(r(),c("div",it,[i(u,{size:"lg",label:a.$t("contact-area.name"),id:"nameInput"+a.id,name:"name",required:!0,modelValue:t.formData.name,"onUpdate:modelValue":e[5]||(e[5]=o=>t.formData.name=o)},null,8,["label","id","modelValue"])])):V("",!0),l("div",rt,[i(g,{rows:"3",size:"lg",label:a.$t("form.message"),id:"messageInput"+a.id,name:"text",modelValue:t.formData.text,"onUpdate:modelValue":e[6]||(e[6]=o=>t.formData.text=o)},null,8,["label","id","modelValue"])]),l("div",st,[l("button",{type:"submit",class:"btn btn-lg btn-primary contact-btn w-100 d-flex align-items-center",onClick:e[7]||(e[7]=(...o)=>t.handleSubmit&&t.handleSubmit(...o))},[l("span",null,[i(f,{class:"btn__icon contact-btn__icon"})]),C(" "+S(a.$t("contact-area.submit")),1)])])])]),_:1}))],64)):(r(),c(k,{key:1},[i(p,{title:n.data.title,decorBorder:"",text:n.data.text},null,8,["title","text"]),n.data.cta?(r(),z(x,{key:0,to:n.data.cta.url,class:"btn btn-primary btn-lg mt-4 btn-offset",target:n.data.cta.target},{default:w(()=>[i(f,{class:"btn__icon"}),C(" "+S(n.data.cta.text),1)]),_:1},8,["to","target"])):V("",!0)],64))])])])],2)),[[U]])}const xt=B(Q,[["render",dt],["__scopeId","data-v-01929dd6"]]);export{xt 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.