1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5499],{55499:(s,e,t)=>{t.r(e),t.d(e,{default:()=>o});var i=t(49209),r=t(67910);const a={mixins:[i.Z],props:{action:String,email:String},data:function(){return{emailAddress:"",password:"",buttonLoading:!1,submitSuccess:!1,submitSuccessMessage:!1,submitError:!1}},mounted:function(){this.emailAddress=this.email},methods:{submit:function(){var s=this;if(this.emailAddress!==this.email){this.buttonLoading=!0;for(var e=[],t=0;t<this.$children.length;t++)"function"==typeof this.$children[t].validate&&e.push(this.$children[t].validate());var i=!0;Promise.all(e).then((function(e){if(e.forEach((function(s){s||(i=!1)})),i){var t={action:s.action,email:s.emailAddress,password:s.password};r.Z.submit(t).then((function(e){e?e.error?(s.submitSuccessMessage=!1,s.submitError=e.message):e.success&&(s.submitError=!1,s.submitSuccessMessage=e.message,s.password=""):(s.submitSuccessMessage=!1,s.submitError=s.__("form_server_error")),s.buttonLoading=!1,setTimeout((function(){s.submitSuccess=!1}),1e3)}))}else s.checkErrors=!0,s.buttonLoading=!1}))}}}};const o=(0,t(51900).Z)(a,(function(){var s=this,e=s._self._c;return e("form",{attrs:{action:s.action}},[s.submitError?e("div",{staticClass:"shop-form__submit-error"},[s._v(s._s(s.submitError))]):s._e(),s._v(" "),s.submitSuccessMessage?e("div",{staticClass:"shop-form__text"},[s._v(s._s(s.submitSuccessMessage))]):s._e(),s._v(" "),e("div",{staticClass:"shop-form__row"},[e("div",{staticClass:"shop-form__form-field"},[e("form-field",{staticClass:"form-field form-field--dark",attrs:{"required-message":s.__("form_email_required"),"error-message":s.__("form_email_error"),label:s.__("email"),name:"email_ch",validation:"email|required"},model:{value:s.emailAddress,callback:function(e){s.emailAddress=e},expression:"emailAddress"}})],1)]),s._v(" "),e("div",{staticClass:"shop-form__row"},[e("div",{staticClass:"shop-form__form-field"},[e("form-field",{staticClass:"form-field form-field--dark",attrs:{"required-message":s.__("form_password_required"),label:s.__("password"),name:"password_ch",validation:"required","field-type":"password"},model:{value:s.password,callback:function(e){s.password=e},expression:"password"}})],1)]),s._v(" "),e("div",{staticClass:"shop-form__submit shop-form__submit--right"},[e("button",{staticClass:"button button--filled icon",class:{"button--loading":s.buttonLoading,"button--success":s.submitSuccess},attrs:{type:"submit"},on:{click:function(e){return e.preventDefault(),s.submit.apply(null,arguments)}}},[s._v(s._s(s.__("save")))])])])}),[],!1,null,null,null).exports}}]);
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.