1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[4579],{10848:function(t,e,n){n.d(e,{Z:function(){return s}});var r=n(54550),a=n(4534),i=n(77382),o={name:"nx-input-textarea",components:{NxIcon:a.Z,ValidationProvider:r.d_},props:{value:{type:String},name:{type:String},id:{type:String},label:{type:String},placeholder:{type:String},rules:{type:[String,Object]},helperText:{type:String},type:{type:String,default:"text"},disabled:{type:Boolean,default:!1},confirmed:{type:String},icon:{type:String},rows:{type:String},cols:{type:String},maxLength:{type:Number,default:1e4}},computed:{...(0,i.Se)(["brickConfig"]),text:{get(){return this.value},set(t){this.$emit("input",t)}},required(){return"string"==typeof this.rules?this.rules.search("required")>=0:this.rules.required}},methods:{clickIcon(){this.$emit("clickIcon")}}},s=(0,n(40810).Z)(o,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("validation-provider",{staticClass:"bbnx-input-textarea__wrapper",attrs:{name:t.name,rules:t.rules,vid:t.confirmed},scopedSlots:t._u([{key:"default",fn:function(n){let{errors:r}=n;return[e("div",{staticClass:"bbnx-input-textarea",class:{"bbnx-input-textarea--disabled":t.disabled}},[e("label",{attrs:{name:t.name,id:t.id}},[e("span",{staticClass:"bbnx-input-textarea__label",class:t.brickConfig.components["input-text"].label},[t._v("\n "+t._s(t.label)+"\n "),t.required?e("span",{staticClass:"color-error500"},[t._v("*")]):t._e()]),t._v(" "),e("div",{staticClass:"bbnx-input-textarea__input-wrapper"},[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.text,expression:"text"}],staticClass:"bbnx-input-textarea__input",class:{"bbnx-input-textarea__input--icon":t.icon,"bbnx-input-textarea__input--error":r.length},attrs:{rows:t.rows,cols:t.cols,type:t.type,for:t.id,disabled:t.disabled,placeholder:t.placeholder,maxlength:t.maxLength},domProps:{value:t.text},on:{input:function(e){e.target.composing||(t.text=e.target.value)}}}),t._v(" "),t.icon?e("button",{staticClass:"bbnx-input-textarea__icon",attrs:{type:"button"},on:{click:t.clickIcon}},[e("nx-icon",{attrs:{icon:t.icon}})],1):t._e()])]),t._v(" "),t.helperText||t.$slots.helper?e("span",{staticClass:"bbnx-input-textarea__helper"},[t._t("helper",(function(){return[t._v(t._s(t.helperText))]}))],2):t._e(),t._v(" "),r.length?e("span",{staticClass:"bbnx-input-textarea__error"},[t._v(t._s(r[0]))]):t._e()])]}}],null,!0)})}),[],!1,null,null,null).exports},74579:function(t,e,n){n.r(e),n.d(e,{default:function(){return g}});var r=n(54550),a=n(69670),i=n(10848),o=n(88676),s=n(1379),l=n(4383),c=n(28962),u=n(14206),p=n.n(u),d={sendMail(t,e,n,r,a,i,o,s,l){return p().create().post("/api/front/module-contact-form/",{name:t,email:e,company:n,phone:r,position:a,description:i,terms:o,recaptcha:s,moduleId:l})}},h=n(62155),m=n(87248),x=n(77382),f={name:"nx-module-form-contact",components:{NxHeadlineAtom:h.Z,ValidationObserver:r._j,VueRecaptcha:m.Z,ValidationProvider:r.d_,NxInputText:a.Z,NxInputTextarea:i.Z,NxInputCheckbox:o.Z,NxButton:s.Z,NxModalWindow:l.Z,NxAlertMessage:c.Z},props:{recaptchaWebKey:{type:String,required:!0},legalConditionsUrl:{type:String,default:""},legalPrivacyUrl:{type:String,default:""},moduleId:{type:String,default:""},sendButtonText:{type:String,default:null}},computed:{...(0,x.Se)(["brickConfig"]),translations(){return{checkbox:this.$t("contact.checkbox-legal",{urlconditions:this.legalConditionsUrl,urlpolitic:this.legalPrivacyUrl})}},textLegalClasses(){return this.brickConfig.board["module-contact-form"]["legal-text"].classes}},data:()=>({waiting:!1,name:null,email:null,company:null,phone:null,position:null,description:null,terms:null,showError:!1,registerErrors:[],showModal:!1,recaptcha:null}),methods:{closeModal(){this.showModal=!1},onCaptchaVerified(t){this.recaptcha=t},onCaptchaExpired(){this.recaptcha=null},clearForm(){this.name=null,this.email=null,this.company=null,this.phone=null,this.position=null,this.description=null,this.terms=null,this.showError=!1,this.registerErrors=[],this.$refs.validator.reset(),this.$refs.recaptcha.reset()},sendMail(){this.waiting=!0,this.$refs.recaptcha.execute(),setTimeout((()=>{d.sendMail(this.name,this.email,this.company,this.phone,this.position,this.description,this.terms,this.recaptcha,this.moduleId).then((t=>{console.debug(t),void 0!==t.errors?(this.showError=!0,t.errors.forEac
1h((t=>{this.registerErrors.push(this.$t(`register.error-server.${t.errorCode}`))}))):(this.clearForm(),this.showModal=!0,this.waiting=!1)})).catch((t=>{console.error(t),this.showError=!0,void 0!==t.apiInfo.data.errors&&t.apiInfo.data.errors.forEach((t=>{this.registerErrors.push(this.$t(`register.error-server.${t.errorCode}`))}))}))}),500)}}},g=(0,n(40810).Z)(f,(function(){var t=this,e=t._self._c;return t._self._setupProxy,e("div",[e("validation-observer",{ref:"validator",scopedSlots:t._u([{key:"default",fn:function(n){let{valid:r}=n;return[e("form",{on:{submit:function(t){t.preventDefault(),t.stopPropagation()}}},[e("nx-input-text",{attrs:{label:t.$t("module.contact.name"),name:t.$t("module.contact.name"),"max-length":50,rules:"required|max:50"},model:{value:t.name,callback:function(e){t.name=e},expression:"name"}}),t._v(" "),e("nx-input-text",{staticClass:"mt-5",attrs:{label:t.$t("module.contact.company"),name:t.$t("module.contact.company"),"max-length":50,rules:"required|max:50"},model:{value:t.company,callback:function(e){t.company=e},expression:"company"}}),t._v(" "),e("div",{staticClass:"module-contact-form--block50 mt-5"},[e("nx-input-text",{attrs:{label:t.$t("module.contact.phone"),name:t.$t("module.contact.phone"),"max-length":50,rules:"phone|max:50"},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}}),t._v(" "),e("nx-input-text",{attrs:{label:t.$t("module.contact.position"),name:t.$t("module.contact.position"),"max-length":50,rules:"required|max:50"},model:{value:t.position,callback:function(e){t.position=e},expression:"position"}})],1),t._v(" "),e("nx-input-text",{staticClass:"mt-5",attrs:{label:t.$t("module.contact.email"),name:t.$t("module.contact.email"),rules:"required|email"},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}}),t._v(" "),e("nx-input-textarea",{staticClass:"mt-5",attrs:{label:t.$t("module.contact.description"),name:t.$t("module.contact.description"),rows:"7",cols:"100%","max-length":1e3,rules:"required|max:1000"},model:{value:t.description,callback:function(e){t.description=e},expression:"description"}}),t._v(" "),e("nx-input-checkbox",{staticClass:"mt-5",class:t.textLegalClasses,attrs:{name:"terms",rules:"required|musttrue",check:""},model:{value:t.terms,callback:function(e){t.terms=e},expression:"terms"}},[e("p",{domProps:{innerHTML:t._s(t.translations.checkbox)}})]),t._v(" "),e("vue-recaptcha",{ref:"recaptcha",attrs:{loadRecaptchaScript:!0,sitekey:t.recaptchaWebKey,size:"invisible"},on:{verify:t.onCaptchaVerified,expired:t.onCaptchaExpired}}),t._v(" "),e("script",{tag:"component",attrs:{src:"https://www.google.com/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit",async:"",defer:""}}),t._v(" "),e("div",{staticClass:"module-contact-form--button"},[e("nx-button",{staticClass:"mt-6",attrs:{text:t.sendButtonText?t.sendButtonText:t.$t("module.contact.button"),loading:t.waiting,type:"submit",medium:"",atomConfig:t.brickConfig.board["module-contact-form"].button,disabled:!r},on:{click:t.sendMail}})],1)],1)]}}])}),t._v(" "),e("nx-modal-window",{attrs:{title:t.$t("module.contact.modal-title"),text:t.$t("module.contact.modal-text")},scopedSlots:t._u([{key:"actions",fn:function(){return[e("nx-button",{staticClass:"form-user-profile__button",attrs:{text:t.$t("module.contact.modal-button"),tabindex:t.showModal?"0":"-1",type:"button",medium:""},on:{click:t.closeModal}})]},proxy:!0}]),model:{value:t.showModal,callback:function(e){t.showModal=e},expression:"showModal"}}),t._v(" "),t.showError?e("nx-alert-message",{staticClass:"user--mt-20",attrs:{alert:"",icon:"error"},scopedSlots:t._u([{key:"content",fn:function(){return[e("p",{domProps:{textContent:t._s(t.$t("contact.error"))}}),t._v(" "),t.registerErrors.length?e("ul",t._l(t.registerErrors,(function(n,r){return e("li",{key:r},[e("p",[t._v(t._s(n))])])})),0):t._e()]},proxy:!0}],null,!1,1832522033)}):t._e()],1)}),[],!1,null,null,null).exports},87248:function(t,e){function n(){return n=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},n.apply(this,arguments)}var r,a,i,o=Object.prototype.hasOwnProperty,s=(r=!1,a=[],i={resolved:function(){return r},resolve:function(t){if(!r){r=!0;for(var e=0,n=a.length;e<n;e++)a[e](t)}},promise:{then:function(t){r?t():a.push(t)}}},{notify:function(){i.resolve()},wait:function(){return i.promise},render:function(t,e,n){this.wait().then((function(){n(window.grecaptcha.render(t,e))}))},reset:function(t){void 0!==t&&(this.assertLoaded(),this.wait().then((function(){return window.grecaptcha.reset(t)})))},execute:function(t){void 0!==t&&(this.assertLoaded(),this.wait().then((function(){return window.grecaptcha.execute(t)})))},checkRecaptchaLoad:function(){o.call(window,"grecaptcha")&&o.call(window.grecaptcha,"render")&&this.notify()},assertLoaded:function(){if(!i.resolved())throw new Error("ReCAPTCHA has not been loaded")}});"undefined"!=typeof window&&(window.vueRecaptchaApiLoaded=s.notify);var l={name:"VueRecaptcha",props:{sitekey:{type:String,required:!0},theme:{type:String},badge:{type:String},type:{type:String},size:{type:String},tabindex:{type:String},loadRecaptchaScript:{type:Boolean,default:!1},recaptchaScriptId:{type:String,default:"__RECAPTCHA_SCRIPT"},recaptchaHost:{type:String,default:"www.google.com"},language:{type:String,default:""}},beforeMount:function(){if(this.loadRecaptchaScript&&!document.getElementById(this.recaptchaScriptId)){var t=document.createElement("script");t.id=this.recaptchaScriptId,t.src="https://"+this.recaptchaHost+"/recaptcha/api.js?onload=vueRecaptchaApiLoaded&render=explicit&hl="+this.language,t.async=!0,t.defer=!0,document.head.appendChild(t)}},mounted:function(){var t=this;s.checkRecaptchaLoad();var e=n({},this.$props,{callback:this.emitVerify,"expired-callback":this.emitExpired,"error-callback":this.emitError}),r=this.$slots.default?this.$el.children[0]:this.$el;s.render(r,e,(function(e){t.$widgetId=e,t.$emit("render",e)}))},methods:{reset:function(){s.reset(this.$widgetId)},execute:function(){s.execute(this.$widgetId)},emitVerify:function(t){this.$emit("verify",t)},emitExpired:function(){this.$emit("expired")},emitError:function(){this.$emit("error")}},render:function(t){return t("div",{},this.$slots.default)}};e.Z=l}}]);
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.