text: (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[13],{"1aad":function(s,a,r){"use strict";r.r(a);var t=function(){var s=this,a=s.$createElement,r=s._self._c||a;return r("q-page",{attrs:{padding:""}},[r("q-card",{staticClass:"input-card"},[r("form",{on:{submit:function(a){return a.preventDefault(),s.submitFormEmail(a)}}},[r("div",{staticClass:"row q-mb-md"},[r("q-banner",{staticClass:"bg-grey-3 col",scopedSlots:s._u([{key:"avatar",fn:function(){return[r("q-icon",{attrs:{name:"account_circle",color:"primary"}})]},proxy:!0}])},[s._v("\n          "+s._s(s.$t("user_credentials_group_email_title"))+"\n        ")])],1),r("div",{staticClass:"row q-mb-md"},[r("q-input",{ref:"email",staticClass:"col",attrs:{rules:[function(a){return!!a||s.m("app_error_fieldname_required",{field:"fieldName_user_email"})},function(a){return s.isValidEmailAddress(a)||s.$t("app_log_err_email_invalid")}],"lazy-rules":"",outlined:"",label:s.$t("user_field_email_label"),"stack-label":""},on:{keyup:function(a){return s.onKeyupFormData("email")}},scopedSlots:s._u([{key:"prepend",fn:function(){return[r("q-icon",{attrs:{name:"email"}})]},proxy:!0}]),model:{value:s.formDataEmail.email,callback:function(a){s.$set(s.formDataEmail,"email",a)},expression:"formDataEmail.email"}})],1),r("div",{staticClass:"row q-mb-md row-submit"},[r("q-space"),r("q-card-actions",{attrs:{align:"right"}},[r("q-btn",{attrs:{color:"primary",label:s.$t("user_credentials_group_email_button_save"),type:"submit",disable:s.submitButtonEmailDisabled}})],1)],1),s.getErrorGroup("email").length?r("div",{staticClass:"row"},[r("q-card",{staticClass:"error-card q-mt-md bg-red-1",attrs:{flat:"",bordered:""}},[r("q-toolbar",{staticClass:"bg-red-1"},[r("q-icon",{attrs:{name:"error",size:"32px",color:"red"}}),r("q-toolbar-title",[s._v(s._s(s.$t("backend_error_header")))])],1),r("q-list",{attrs:{bordered:""}},s._l(s.getErrorGroup("email"),(function(a){return r("q-item",{key:a,staticClass:"q-my-xs error-item"},[r("q-item-section",[r("q-item-label",[s._v(" "+s._s(a)+" ")])],1)],1)})),1)],1)],1):s._e()])]),r("q-card",{staticClass:"input-card"},[r("form",{on:{submit:function(a){return a.preventDefault(),s.submitFormPassword(a)}}},[r("div",{staticClass:"row q-mb-md"},[r("q-banner",{staticClass:"bg-grey-3 col",scopedSlots:s._u([{key:"avatar",fn:function(){return[r("q-icon",{attrs:{name:"account_circle",color:"primary"}})]},proxy:!0}])},[s._v("\n          "+s._s(s.$t("user_credentials_group_password_title"))+"\n        ")])],1),r("div",{staticClass:"row q-mb-md"},[r("q-input",{ref:"password",staticClass:"col",attrs:{rules:[function(a){return a.length>=6||s.$t("app_log_err_enter_minNumOfChars",{numOfChars:6})}],"lazy-rules":"",type:s.passwordVisible?"text":"password",outlined:"",label:s.$t("app_log_label_Password"),"stack-label":""},on:{keyup:function(a){return s.onKeyupFormData("password")}},scopedSlots:s._u([{key:"prepend",fn:function(){return[r("q-icon",{attrs:{name:"lock"}})]},proxy:!0},{key:"append",fn:function(){return[r("q-icon",{staticClass:"cursor-pointer",attrs:{name:s.passwordVisible?"visibility":"visibility_off"},on:{click:function(a){s.passwordVisible=!s.passwordVisible}}})]},proxy:!0}]),model:{value:s.formDataPassword.password,callback:function(a){s.$set(s.formDataPassword,"password",a)},expression:"formDataPassword.password"}})],1),r("div",{staticClass:"row q-mb-md"},[r("q-input",{ref:"confirmPassword",staticClass:"col",attrs:{rules:[function(a){return a.length>=6||s.$t("app_log_err_enter_minNumOfChars",{numOfChars:6})},s.isConfirmpasswordEqualPassword],"lazy-rules":"",type:s.passwordVisible?"text":"password",outlined:"",label:s.$t("app_log_label_Confirm_Password"),"stack-label":""},on:{keyup:function(a){return s.onKeyupFormData("confirmPassword")}},scopedSlots:s._u([{key:"prepend",fn:function(){return[r("q-icon",{attrs:{name:"lock"}})]},proxy:!0},{key:"append",fn:function(){return[r("q-icon",{staticClass:"cursor-pointer",attrs:{name:s.passwordVisible?"visibility":"visibility_off"},on:{click:function(a){s.passwordVisible=!s.passwordVisible}}})]},proxy:!0}]),model:{value:s.formDataPassword.confirmPassword,callback:function(a){s.$set(s.formDataPassword,"confirmPassword",a)},expression:"formDataPassword.confirmPassword"}})],1),r("div",{staticClass:"row q-mb-md row-submit"},[r("q-space"),r("q-card-actions",{attrs:{align:"right"}},[r("q-btn",{attrs:{color:"primary",label:s.$t("user_credentials_group_password_button_save"),type:"submit",disable:s.submitButtonPasswordDisabled}})],1)],1),s.getErrorGroup("password").length?r("div",{staticClass:"row"},[r("q-card",{staticClass:"error-card q-mt-md bg-red-1",attrs:{flat:"",bordered:""}},[r("q-toolbar",{staticClass:"bg-red-1"},[r("q-icon",{attrs:{name:"error",size:"32px",color:"red"}}),r("q-toolbar-title",[s._v(s._s(s.$t("backend_error_header")))])],1),r("q-list",{attrs:{bordered:""}},s._l(s.getErrorGroup("password"),(function(a){return r("q-item",{key:a,staticClass:"q-my-xs error-item"},[r("q-item-section",[r("q-item-label",[s._v(" "+s._s(a)+" ")])],1)],1)})),1)],1)],1):s._e()])])],1)},e=[],i=r("ded3"),o=r.n(i),n=r("2f62"),l=r("7429"),d=r("b405"),c=r("82ab"),u={name:"UserEmailPassword",data(){return{formDataEmail:{email:this.$store.state.user.user.email},submitButtonEmailDisabled:!0,formDataPassword:{password:"",confirmPassword:""},passwordVisible:!1,submitButtonPasswordDisabled:!0}},methods:o()(o()(o()({isValidEmailAddress(s){const a=/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;return a.test(String(s).toLowerCase())},isConfirmpasswordEqualPassword(s){const a=!this.formDataPassword.password||s===this.formDataPassword.password;return!!a||this.$t("app_register_err_Passwords_do_not_match")},submitFormEmail(){this.userBackendCallInitialize("email"),this.$refs.email.validate(),this.$refs.email.hasError||this[d["g"]]({fields:{user:this.formDataEmail},token:this.getUserToken,errorGroup:"email",onSuccessNotificationId:"user_credentials_group_email_notification_safe_successful"})},submitFormPassword(){this.userBackendCallInitialize("password"),this.$refs.password.validate(),this.$refs.confirmPassword.validate(),this.$refs.password.hasError||this.$refs.confirmPassword.hasError||this[d["g"]]({fields:{user:this.formDataPassword},token:this.getUserToken,errorGroup:"password",onSuccessNotificationId:"user_credentials_group_password_notification_safe_successful"})}},Object(n["b"])(["userBackendCallInitialize"])),Object(l["b"])([d["g"]])),{},{onKeyupFormData(s){s&&"email"===s&&(this.getErrorGroup("email").length&&this.userBackendCallInitialize("email"),this.submitButtonEmailDisabled=!this.$refs.email.validate()||this.formDataEmail.email===this.getUser.email),!s||"password"!==s&&"confirmPassword"!==s||(this.userBackendCallInitialize("password"),this.$refs.confirmPassword.value&&this.$refs.confirmPassword.validate(),this.submitButtonPasswordDisabled=!(this.$refs.password.validate()&&this.$refs.confirmPassword.validate()))},m:c["a"]}),computed:o()({},Object(n["c"])(["getErrorGroup","getUser","getUserToken"])),created(){this.userBackendCallInitialize()}},m=u,p=(r("641a"),r("2877")),f=r("9989"),b=r("f09f"),_=r("54e1"),w=r("0016"),h=r("27f9"),q=r("2c91"),g=r("4b7e"),y=r("9c40"),v=r("65c6"),C=r("6ac5"),k=r("1c1c"),P=r("66e5"),$=r("4074"),D=r("0170"),E=r("eb85"),x=r("eebe"),Q=r.n(x),B=Object(p["a"])(m,t,e,!1,null,"29c36ace",null);a["default"]=B.exports;Q()(B,"components",{QPage:f["a"],QCard:b["a"],QBanner:_["a"],QIcon:w["a"],QInput:h["a"],QSpace:q["a"],QCardActions:g["a"],QBtn:y["a"],QToolbar:v["a"],QToolbarTitle:C["a"],QList:k["a"],QItem:P["a"],QItemSection:$["a"],QItemLabel:D["a"],QSeparator:E["a"]})},"641a":function(s,a,r){"use strict";var t=r("dc76"),e=r.n(t);e.a},dc76:function(s,a,r){}}]);