1"use strict";(self.webpackChunkknowit_seed_project=self.webpackChunkknowit_seed_project||[]).push([[6834,6709],{21049:(e,o,t)=>{t.d(o,{I:()=>r});var r=function(e){return window.__litium.translation[e]||e}},76501:(e,o,t)=>{t.d(o,{Z:()=>n});var r=function(){var e=this,o=e.$createElement,t=e._self._c||o;return t("div",{staticClass:"card text-white bg-success mb-3"},[t("div",{staticClass:"card-header"},[t("span",{staticClass:"fa fa-check mr-2"}),e._v(e._s(e.title)+"\n ")]),e._v(" "),t("div",{staticClass:"card-body",domProps:{innerHTML:e._s(e.body)}})])};r._withStripped=!0;const s=t(70538).default.extend({name:"sign-up-form-success",props:["title","body"]});var a=(0,t(51900).Z)(s,r,[],!1,null,null,null);a.options.__file="app/vue-js/components/sign-up-form/sign-up-form-success.vue";const n=a.exports},37681:(e,o,t)=>{t.r(o),t.d(o,{default:()=>c});var r=function(){var e=this,o=e.$createElement,t=e._self._c||o;return e.mailSent?t("sign-up-form-success",{attrs:{title:e.formTitle,body:e.formBody}}):t("form",{staticClass:"c-eventform",on:{submit:function(o){return o.preventDefault(),e.submitForm.apply(null,arguments)}}},[t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"organization-nr"}},[e._v(e._s(e.translate("new-customer-form.organization-nr"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.organizationNumber,expression:"form.organizationNumber"}],staticClass:"form-control",attrs:{type:"text",id:"organization-nr",required:""},domProps:{value:e.form.organizationNumber},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"organizationNumber",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"business-name"}},[e._v(e._s(e.translate("new-customer-form.business-name"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.businessName,expression:"form.businessName"}],staticClass:"form-control",attrs:{type:"text",id:"business-name",required:""},domProps:{value:e.form.businessName},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"businessName",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"postal-address"}},[e._v(e._s(e.translate("new-customer-form.postal-address"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.postalAddress,expression:"form.postalAddress"}],staticClass:"form-control",attrs:{type:"text",id:"postal-address",required:""},domProps:{value:e.form.postalAddress},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"postalAddress",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"delivery-address"}},[e._v(e._s(e.translate("new-customer-form.delivery-address"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.deliveryAddress,expression:"form.deliveryAddress"}],staticClass:"form-control",attrs:{type:"text",id:"delivery-address",required:""},domProps:{value:e.form.deliveryAddress},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"deliveryAddress",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"invoice-address"}},[e._v(e._s(e.translate("new-customer-form.invoice-address"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.invoiceAddress,expression:"form.invoiceAddress"}],staticClass:"form-control",attrs:{type:"text",id:"invoice-address",required:""},domProps:{value:e.form.invoiceAddress},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"invoiceAddress",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"phone"}},[e._v(e._s(e.translate("new-customer-form.phone"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.phoneNumber,expression:"form.phoneNumber"}],staticClass:"form-control",attrs:{type:"text",id:"phone",required:""},domProps:{value:e.form.phoneNumber}
1,on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"phoneNumber",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"reference"}},[e._v(e._s(e.translate("new-customer-form.reference"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.referencePerson,expression:"form.referencePerson"}],staticClass:"form-control",attrs:{type:"text",id:"reference",required:""},domProps:{value:e.form.referencePerson},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"referencePerson",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"email-confirmation"}},[e._v(e._s(e.translate("new-customer-form.email-confirmation"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.emailOrderConfirmation,expression:"form.emailOrderConfirmation"}],staticClass:"form-control",attrs:{type:"email",id:"email-confirmation",required:""},domProps:{value:e.form.emailOrderConfirmation},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"emailOrderConfirmation",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"email-invoice"}},[e._v(e._s(e.translate("new-customer-form.email-invoice"))+" * ")]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.emailInvoice,expression:"form.emailInvoice"}],staticClass:"form-control",attrs:{type:"email",id:"email-invoice",required:""},domProps:{value:e.form.emailInvoice},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"emailInvoice",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"delivery-company"}},[e._v(e._s(e.translate("new-customer-form.delivery-company")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.deliveryCompany,expression:"form.deliveryCompany"}],staticClass:"form-control",attrs:{type:"text",id:"delivery-company"},domProps:{value:e.form.deliveryCompany},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"deliveryCompany",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"customer-nr-delivery-company"}},[e._v(e._s(e.translate("new-customer-form.customer-nr-delivery-company")))]),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.customerNumberDeliveryCompany,expression:"form.customerNumberDeliveryCompany"}],staticClass:"form-control",attrs:{type:"text",id:"customer-nr-delivery-company"},domProps:{value:e.form.customerNumberDeliveryCompany},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"customerNumberDeliveryCompany",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"form-row"},[t("div",{staticClass:"form-group col-lg-6"},[t("label",{attrs:{for:"additional-info"}},[e._v(e._s(e.translate("new-customer-form.additional-info"))+" *")]),e._v(" "),t("textarea",{directives:[{name:"model",rawName:"v-model",value:e.form.additionalInfo,expression:"form.additionalInfo"}],staticClass:"form-control",attrs:{id:"additional-info",required:""},domProps:{value:e.form.additionalInfo},on:{focus:e.onFocus,input:function(o){o.target.composing||e.$set(e.form,"additionalInfo",o.target.value)}}})])]),e._v(" "),t("div",{staticClass:"custom-control custom-checkbox mb-3"},[t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.honeyPot,expression:"form.honeyPot"}],staticClass:"form-control",attrs:{type:"text",name:"honeypot",id:"honeypot","aria-label":"Default","aria-describedby":"inputGroup-sizing-default"},domProps:{value:e.form.honeyPot},on:{input:function(o){o.target.composing||e.$set(e.form,"honeyPot",o.target.value)}}}),e._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:e.form.consent,expression:"form.consent"}],staticClass:"custom-control-input",attrs:{type:"checkbox",id:"signupConsent",value:"yes",required:""},domProps:{checked:Array.isArray(e.form.consent)?e._i(e.form.consent,"yes")>-1:e.form.consent},on:{focus:e.onFocus,change:function(o){var t=e.form.consent,r=o.target,s=!!r.checked;if(Array.isArray(t)){var a=e._i(t,"yes");r.checked?a<0&&e.$set(e.form,"consent",t.concat(["yes"])):a>-1&&e.$set(e.form,"consent",t.slice(0,a).concat(t.slice(a+1)))}else e.$set(e.form,"consent",s)}}}),e._v(" "),t("label",{staticClass:"custom-control-label",attrs:{for:"signupConsent"}},[e._v("\n "+e._s(e.translate("signup-form.consent"))+"\n ")])]),e._v(" "),t("button",{staticClass:"btn btn-primary",attrs:{type:"submit"}},[e._v("\n "+e._s(e.translate("signup-form.newcustsend"))+"\n ")])])};r._withStripped=!0;var s=t(70538),a=t(21049),n=t(52861),i=t(76501);const m=s.default.extend({name:"new-customer-form",components:{"sign-up-form-success":i.Z},props:["formTitle","formBody"],data:()=>({form:{organizationNumber:"",businessName:"",postalAddress:"",deliveryAddress:"",invoiceAddress:"",phoneNumber:"",referencePerson:"",emailOrderConfirmation:"",emailInvoice:"",deliveryCompany:"",customerNumberDeliveryCompany:"",additionalInfo:"",honeyPot:"",consent:!1},mailSent:!1}),methods:{translate:function(e){return(0,a.I)(e)},onFocus(){window.dataLayer=window.dataLayer||[],0===window.dataLayer.filter((e=>"formInteraction"===e.event)).length&&window.dataLayer.push({event:"formInteraction"})}
1,submitForm(){n.Z.post("/api/email/newcustomersignup",this.form).then((()=>{this.mailSent=!this.mailSent})).catch((()=>{})).finally((()=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"submitForm"})}))}}});var l=(0,t(51900).Z)(m,r,[],!1,null,null,null);l.options.__file="app/vue-js/feature/new-customer-form/new-customer-form.vue";const c=l.exports},51900:(e,o,t)=>{function r(e,o,t,r,s,a,n,i){var m,l="function"==typeof e?e.options:e;if(o&&(l.render=o,l.staticRenderFns=t,l._compiled=!0),r&&(l.functional=!0),a&&(l._scopeId="data-v-"+a),n?(m=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(n)},l._ssrRegister=m):s&&(m=i?function(){s.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:s),m)if(l.functional){l._injectStyles=m;var c=l.render;l.render=function(e,o){return m.call(o),c(e,o)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,m):[m]}return{exports:e,options:l}}t.d(o,{Z:()=>r})}}]);
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.