(function(e){function t(t){for(var r,o,i=t[0],s=t[1],c=t[2],u=0,m=[];u<i.length;u++)o=i[u],Object.prototype.hasOwnProperty.call(l,o)&&l[o]&&m.push(l[o][0]),l[o]=0;for(r in s)Object.prototype.hasOwnProperty.call(s,r)&&(e[r]=s[r]);d&&d(t);while(m.length)m.shift()();return n.push.apply(n,c||[]),a()}function a(){for(var e,t=0;t<n.length;t++){for(var a=n[t],r=!0,o=1;o<a.length;o++){var s=a[o];0!==l[s]&&(r=!1)}r&&(n.splice(t--,1),e=i(i.s=a[0]))}return e}var r={},l={contact:0},n=[];function o(e){return i.p+"js/"+({}[e]||e)+".js"}function i(t){if(r[t])return r[t].exports;var a=r[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,i),a.l=!0,a.exports}i.e=function(e){var t=[],a=l[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise((function(t,r){a=l[e]=[t,r]}));t.push(a[2]=r);var n,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=o(e);var c=new Error;n=function(t){s.onerror=s.onload=null,clearTimeout(u);var a=l[e];if(0!==a){if(a){var r=t&&("load"===t.type?"missing":t.type),n=t&&t.target&&t.target.src;c.message="Loading chunk "+e+" failed.\n("+r+": "+n+")",c.name="ChunkLoadError",c.type=r,c.request=n,a[1](c)}l[e]=void 0}};var u=setTimeout((function(){n({type:"timeout",target:s})}),12e4);s.onerror=s.onload=n,document.head.appendChild(s)}return Promise.all(t)},i.m=e,i.c=r,i.d=function(e,t,a){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},i.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(i.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(a,r,function(t){return e[t]}.bind(null,r));return a},i.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/resource/1647515293000/eCom_Frontend/",i.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],c=s.push.bind(s);s.push=t,s=s.slice();for(var u=0;u<s.length;u++)t(s[u]);var d=c;n.push([26,"chunk-vendors","chunk-common"]),a()})({26:function(e,t,a){e.exports=a("d885")},"75c6":function(e,t,a){},d885:function(e,t,a){"use strict";a.r(t);a("8205"),a("907d");var r=a("9cf9"),l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.pageLabelsLoaded?a("div",{staticClass:"py-10"},[a("dekra-breadcrumbs",{staticClass:"pt-6 hidden lg:block lg:mb-6",attrs:{"show-bottom-border":!1}}),a("h1",{staticClass:"text-primary text-2xl font-bold mb-10 lg:text-4.25xl"},[e._v(" "+e._s(e.pageLabel("Contact_us"))+" ")]),a("div",{staticClass:"mb-14",domProps:{innerHTML:e._s(e.$sanitize(e.pageLabel("Contact_Dynamic_Content")))}}),a("div",{staticClass:"lg:px-22 lg:mt-20 xl:px-44"},[a("ContactFormRequest")],1)],1):e._e()},n=[],o=a("9f19"),i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("BaseContactForm",{attrs:{"stop-event":"general-consulting-request-stop-sending",disabled:!e.isValid()},on:{click:function(t){return e.sendButton()},"solution-done":e.solutionDone,"widget-destroyed":e.resetWidget},scopedSlots:e._u([{key:"inputs",fn:function(){return[a("div",{staticClass:"space-y-3 md:space-y-0 md:grid md:grid-cols-12 md:gap-x-4 md:gap-y-5"},[a("dekra-textfield",{staticClass:"md:col-span-6",attrs:{required:"",name:"firstname",label:e.pageLabel("PlaceHolder_FirstName"),"error-message":e.pageLabel("FirstName_Invalid"),invalid:{require:e.$v.firstname.$error}},model:{value:e.firstname,callback:function(t){e.firstname="string"===typeof t?t.trim():t},expression:"firstname"}}),a("dekra-textfield",{staticClass:"md:col-span-6",attrs:{required:"",name:"lastname",label:e.pageLabel("PlaceHolder_LastName"),"error-message":e.pageLabel("LastName_Invalid"),invalid:{require:e.$v.lastname.$error}},model:{value:e.lastname,callback:function(t){e.lastname="string"===typeof t?t.trim():t},expression:"lastname"}}),a("dekra-textfield",{staticClass:"md:col-span-12",attrs:{required:"",name:"streetname",label:e.pageLabel("MyAccount_Street_And_No"),"error-message":e.pageLabel("StreetName_Invalid"),invalid:{require:e.$v.streetname.$error}},model:{value:e.streetname,callback:function(t){e.streetname="string"===typeof t?t.trim():t},expression:"streetname"}}),a("dekra-textfield",{staticClass:"md:col-span-4 relative",attrs:{required:"",name:"postalcode",label:e.pageLabel("PlaceHolder_PostalCode"),"error-message":e.pageLabel("PostalCode_Invalid"),invalid:{require:e.$v.postalcode.$error}},model:{value:e.postalcode,callback:function(t){e.postalcode="string"===typeof t?t.trim():t},expression:"postalcode"}}),a("dekra-textfield",{staticClass:"md:col-span-8",attrs:{required:"",name:"city",label:e.pageLabel("PlaceHolder_City"),"error-message":e.pageLabel("PlaceName_Invalid"),invalid:{require:e.$v.city.$error}},model:{value:e.city,callback:function(t){e.city="string"===typeof t?t.trim():t},expression:"city"}}),a("dekra-dropdown",{staticClass:"md:col-span-6",attrs:{tabindex:"0",required:"",name:"country",options:e.countryOptions,"pre-selected":e.preSelectedCountry,label:e.pageLabel("PlaceHolder_Country"),"error-message":e.pageLabel("CountryName_Invalid"),invalid:{require:e.$v.country.$error}},on:{input:e.countryChange}}),a("dekra-textfield",{staticClass:"md:col-span-6",attrs:{name:"phone",label:e.pageLabel("PlaceHolder_PhoneNumber"),"error-message":e.pageLabel("PhoneNumber_Invalid"),invalid:{error:e.$v.phone.$error}},model:{value:e.phone,callback:function(t){e.phone="string"===typeof t?t.trim():t},expression:"phone"}}),e.isGuestUser?a("dekra-textfield",{staticClass:"md:col-span-6",attrs:{required:"",type:"email",name:"email",label:e.pageLabel("PlaceHolder_Email"),invalid:{error:e.$v.email.$error,require:e.$v.email.required.$invalid,email:e.$v.email.emailValidator.$invalid}},model:{value:e.email,callback:function(t){e.email="string"===typeof t?t.trim():t},expression:"email"}}):e._e(),a("dekra-textarea-sized",{staticClass:"md:col-span-12",attrs:{invalid:{require:e.$v.comment.$error},required:"",name:"comment",label:e.pageLabel("ContactForm_Message"),size:500,rows:8,styles:"h-auto'","border-color":"border-black","error-message":e.pageLabel("Validation_Error")},model:{value:e.comment,callback:function(t){e.comment="string"===typeof t?t.trim():t},expression:"comment"}})],1)]},proxy:!0},{key:"legal",fn:function(){return[a("dekra-checkbox",{staticClass:"mb-7",attrs:{required:"",label:e.pageLabel("ContactForm_DataSecurity_Consent"),touched:e.$v.legal.$dirty,invalid:{require:e.$v.legal.$error}},model:{value:e.legal,callback:function(t){e.legal=t},expression:"legal"}})]},proxy:!0}])})},s=[],c=a("44af"),u=a("0855"),d=a("fd08"),m=a("72f2"),p=a("d616"),v=a("d6fc"),b=a("e902"),f=a("81ad"),g=a("ec8f"),y=a("32c6"),h=a("286e"),C=a("6056"),x=a("4d85"),_=a("1150"),O=a("9bc2"),$=a("a066");let k="";var j={name:"ContactFormRequest",components:{BaseContactForm:g["a"],DekraTextfield:p["a"],DekraTextareaSized:v["a"],DekraCheckbox:b["a"],DekraDropdown:f["a"]},props:{sku:{type:String,default:""}},setup(){const{pageLabel:e}=Object(y["a"])(),{countries:t,findPreselectedCountry:a,zipCodeRegexMap:r,mapCountriesToOptions:l,isAllowed:n}=Object(h["a"])(),{sendContactEmailOld:o}=Object(C["a"])(),i=Object(c["computed"])(()=>l(t.value)),s=e=>n(e)?e:"DE",p=Object(c["ref"])(""),v=Object(c["ref"])(""),b=Object(c["ref"])(""),f=Object(c["ref"])(""),g=Object(c["ref"])(""),x=Object(c["ref"])(""),j=Object(c["ref"])(""),L=Object(c["ref"])(""),q=Object(c["ref"])(!1),w=Object(c["ref"])(""),{email:P,firstName:N,lastName:D,postalCode:S,country:F,city:T,street:E,phone:M,isGuestUser:H}=Object(_["a"])(),R=Object(c["ref"])(a()),B=()=>{if(H.value)return p.value="",v.value="",f.value="",x.value=s("DE"),g.value="",b.value="",L.value="",j.value="",q.value=!1,w.value="",void(R.value=a(x.value));p.value=N.value,v.value=D.value,f.value=S.value,x.value=s(F.value),g.value=T.value,b.value=E.value,L.value=P.value,j.value="",q.value=!1,w.value=M.value,R.value=a(x.value)},I=e=>!e||Object(O["a"])(e,"DE"),z=e=>!!e&&Object($["b"])(e,x.value);Object(c["watch"])(()=>[N.value,D.value,S.value,P.value,F.value,T.value,E.value,M.value],()=>{B()}),B();const A=Object($["d"])(m["helpers"]),V=Object($["c"])(m["helpers"]),G=Object(c["computed"])(()=>({legal:{required:d["b"],sameAsTrue:Object(d["c"])(!0)},firstname:{required:d["b"],validateTextField:A},lastname:{required:d["b"],validateTextField:A},streetname:{required:d["b"],validateTextField:A},postalcode:{required:d["b"],mustBePostalCode:z},city:{required:d["b"],validateTextField:A},country:{required:d["b"],validateTextField:A},comment:{required:d["b"],validateTextarea:V},email:{required:d["b"],emailValidator:d["a"]},phone:{mustBePhoneNumber:I}})),U=Object(u["a"])(G,{legal:q,firstname:p,lastname:v,streetname:b,postalcode:f,city:g,country:x,comment:j,email:L,phone:w},{$autoDirty:!0}),W=()=>!U.value.$invalid&&""!=k;return{$v:U,firstname:p,lastname:v,streetname:b,postalcode:f,city:g,country:x,legal:q,comment:j,email:L,phone:w,pageLabel:e,countryOptions:i,preSelectedCountry:R,zipCodeRegexMap:r,sendContactEmailOld:o,resetData:B,isValid:W,isGuestUser:H}},watch:{showModal(e){e&&x["a"].$emit("init-captcha"),this.openModal=e}},methods:{reset(){this.resetData(),x["a"].$emit("general-consulting-request-stop-sending"),this.$v.$reset(),this.resetWidget()},countryChange({value:e}){this.country=e},solutionDone(e){k=e},resetWidget(){x["a"].$emit("widget-reset")},async sendButton(){const{$v:e,firstname:t,lastname:a,streetname:r,postalcode:l,city:n,country:o,comment:i,sku:s,email:c,phone:u}=this;if(e.$touch(),e.$anyError)return void this.$notification(this.pageLabel("Contact_Request_Not_Send"),"error");const d={firstName:t,lastName:a,message:i,email:c,street:r,postalCode:l,city:n,country:o,sku:s,phone:u},m=await this.sendContactEmailOld(d,k);m?(this.$notification(this.pageLabel("Contact_Request_Send"),"success"),this.reset()):this.$notification(this.pageLabel("Contact_Request_Not_Send"),"error")}}},L=j,q=(a("dbdc"),a("5578")),w=Object(q["a"])(L,i,s,!1,null,null,null),P=w.exports,N={components:{DekraBreadcrumbs:o["a"],ContactFormRequest:P},setup(){const{pageLabel:e,pageLabelsLoaded:t}=Object(y["a"])();return{pageLabel:e,pageLabelsLoaded:t}}},D=N,S=Object(q["a"])(D,l,n,!1,null,null,null),F=S.exports,T=a("d035"),E=a("af74"),M=a("591a");new r["default"]({el:"#vue-app",render:e=>e(F)}),T["a"]&&(new r["default"]({el:"#vue-header",render:e=>e(M["a"])}),new r["default"]({el:"#vue-footer",render:e=>e(E["a"])}))},dbdc:function(e,t,a){"use strict";a("75c6")}});