(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6196dc14"],{a103:function(t,e,s){"use strict";var i=s("d907"),o=s.n(i);o.a},b2e9:function(t,e,s){"use strict";s.r(e);var i=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{attrs:{id:"email-verify"}},[s("v-container",{attrs:{"grid-list-xl":"",fluid:"","fill-height":""}},[s("v-layout",{attrs:{row:""}},[s("v-flex",{staticClass:"mx-auto",staticStyle:{"max-width":"380px"}},["Invitation"!=t.$route.name?s("v-card",[s("v-card-text",{staticClass:"text-xs-center"},[null===t.result?s("h3",{staticClass:"title text-md-center pb-2"},[t._v(t._s(t.$t("page.EmailVerification.verifying")))]):t._e(),"success"===t.result?s("h3",{staticClass:"title text-md-center pb-2"},[t._v(t._s(t.$t("success.EmailVerify.title")))]):t._e(),"failed"===t.result?s("h3",{staticClass:"title text-md-center pb-2"},[t._v(t._s(t.$t("error.EmailVerify.title")))]):t._e(),s("v-btn",{attrs:{color:"primary",block:""},on:{click:t.login}},[t._v(t._s(t.$t("button.backLogin")))])],1)],1):s("v-card",[s("v-card-text",{staticClass:"py-0"},[s("form",{staticClass:"change-password",attrs:{"data-vv-scope":"password"}},[s("v-layout",{attrs:{row:"",wrap:"","justify-center":""}},[s("v-flex",{attrs:{xs12:""}},[s("h3",{staticClass:"title text-md-center pt-2"},[t._v(t._s(t.$t("page.EmailVerification.set_password")))])]),s("v-flex",{attrs:{xs12:""}},[s("v-text-field",{directives:[{name:"validate",rawName:"v-validate",value:{required:!0,min:8},expression:"{required: true, min: 8}"}],ref:"newPassword",class:{"pb-2":!t.login.submitted||void 0==t.errors.collect()["newPassword"]},attrs:{"hide-details":!t.login.submitted||void 0==t.errors.collect()["newPassword"],placeholder:t.$t("input.password.placeholder"),label:t.$t("input.password.label"),"data-vv-as":t.$t("input.password.label"),"data-vv-name":"newPassword","error-messages":t.errors.collect()["newPassword"],"append-icon":t.show2?"visibility":"visibility_off",type:t.show2?"text":"password",autocomplete:"new-password",outline:""},on:{"click:append":function(e){t.show2=!t.show2}},model:{value:t.login.newPassword,callback:function(e){t.$set(t.login,"newPassword",e)},expression:"login.newPassword"}}),s("v-text-field",{directives:[{name:"validate",rawName:"v-validate",value:"required|confirmed:newPassword",expression:"'required|confirmed:newPassword'"}],class:{"pb-2":!t.login.submitted||void 0==t.errors.collect()["confirmPassword"]},attrs:{"hide-details":!t.login.submitted||void 0==t.errors.collect()["confirmPassword"],placeholder:t.$t("input.confirm_password.placeholder"),label:t.$t("input.confirm_password.label"),"data-vv-as":t.$t("input.confirm_password.label"),"data-vv-name":"confirmPassword","error-messages":t.errors.collect()["confirmPassword"],"append-icon":t.show3?"visibility":"visibility_off",type:t.show3?"text":"password",autocomplete:"new-password",outline:""},on:{"click:append":function(e){t.show3=!t.show3}},model:{value:t.login.confirmPassword,callback:function(e){t.$set(t.login,"confirmPassword",e)},expression:"login.confirmPassword"}}),s("v-btn",{attrs:{color:"primary",block:"",loading:t.loading},on:{click:t.acceptInvitation}},[t._v(t._s(t.$t("button.confirm")))])],1)],1)],1)])],1)],1)],1)],1)],1)},o=[],a=(s("7f7f"),s("365c")),n=(s("4260"),{components:{},data:function(){return{show2:!1,show3:!1,result:null,loading:!1,login:{newPassword:"",confirmPassword:"",submitted:!1}}},mounted:function(){"Invitation"!=this.$route.name?this.verify():this.verifyToken()},props:{token:{type:String}},methods:{acceptInvitation:function(){var t=this;this.login.submitted=!0,this.$validator.validateAll("password").then((function(e){e?t.verify(!0):t.showFormNotValid()}))},verifyToken:function(){var t=this;a["a"].verifyToken(this.token).then((function(t){})).catch((function(e){t.result="failed",t.$swal(t.$t("error.Invitation.title"),t.$t("error.Invitation.subtitle"),"error").then((function(){t.goLogin()}))}))},verify:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=this;this.loading=!0,a["a"].verification({token:this.token,password:this.login.newPassword}).then((function(s){e.result="success",t?e.$swal(e.$t("success.Invitation.title"),e.$t("success.Invitation.subtitle"),"success").then((function(){e.goLogin()})):e.$swal(e.$t("success.EmailVerify.title"),"","success").then((function(){e.goLogin()}))})).catch((function(t){e.result="failed",e.$swal(e.$t("error.EmailVerify.title"),"","error").then((function(){e.goLogin()}))})).finally((function(){e.loading=!1}))},goLogin:function(){this.$router.push({name:"Login"})}}}),r=n,l=(s("a103"),s("2877")),c=s("6544"),d=s.n(c),u=s("8336"),f=s("b0af"),v=s("99d9"),w=s("a523"),p=s("0e8f"),m=s("a722"),h=s("2677"),g=Object(l["a"])(r,i,o,!1,null,"439e7ee9",null);e["default"]=g.exports;d()(g,{VBtn:u["a"],VCard:f["a"],VCardText:v["b"],VContainer:w["a"],VFlex:p["a"],VLayout:m["a"],VTextField:h["a"]})},d907:function(t,e,s){}}]);