(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4939ae82"],{"3f5e":function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n(t.transitionComponent,{tag:"component"},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"show"}],staticStyle:{margin:"15px 0"}},[n("el-alert",{attrs:{closable:!1,type:t.options.type}},[t._v(" "+t._s(t.options.text)+" ")])],1)])},a=[],r=n("5530"),s=(n("4795"),{name:"VAlert",props:{transitionType:{type:String,default:"collapse"}},data:function(){return{show:!1,options:{type:"info",timeout:0,text:""}}},methods:{showAlert:function(t){this.options=Object(r["a"])(Object(r["a"])({},this.options),t),this.show=!0,this.options.timeout&&setTimeout(this.hideAlert,this.options.timeout)},hideAlert:function(){this.show=!1}},computed:{transitionComponent:function(){return"el-".concat(this.transitionType,"-transition")}}}),i=s,c=n("2877"),u=Object(c["a"])(i,o,a,!1,null,null,null);e["a"]=u.exports},4795:function(t,e,n){var o=n("23e7"),a=n("da84"),r=n("2ba4"),s=n("1626"),i=n("342f"),c=n("f36a"),u=/MSIE .\./.test(i),l=a.Function,d=function(t){return function(e,n){var o=arguments.length>2,a=o?c(arguments,2):void 0;return t(o?function(){r(s(e)?e:l(e),this,a)}:e,n)}};o({global:!0,bind:!0,forced:u},{setTimeout:d(a.setTimeout),setInterval:d(a.setInterval)})},"5e1d":function(t,e,n){"use strict";var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"d-flex justify-between align-center"},[n("h2",{staticClass:"heading page-heading"},[t._v(" "+t._s(t.heading)+" ")]),n("v-button",{staticClass:"button-round",attrs:{circle:"",icon:"close"},on:{click:t.goToMainPage}})],1)},a=[],r=n("4af1"),s=n("24f5"),i={name:"AuthCardHeader",components:{VButton:r["a"]},props:{heading:{type:String,required:!0}},methods:{goToMainPage:function(){this.$router.push({name:s["l"]})}}},c=i,u=(n("91cb"),n("2877")),l=Object(u["a"])(c,o,a,!1,null,"b96e9d0a",null);e["a"]=l.exports},"91cb":function(t,e,n){"use strict";n("d600")},b618:function(t,e,n){t.exports=n.p+"img/bg-reset.bf9cef95.jpg"},d600:function(t,e,n){},d76b:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("ac1f"),n("00b4");var o=n("102a"),a=8,r=function(t,e,n){/(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])/.test(e)||n(new Error("\n    ".concat(o["a"].t("validators.password.symbols"),"\n    "))),n()},s=function(t){return function(e,n,a){n.length<t&&a(new Error("\n        ".concat(o["a"].t("validators.password.min_length",{count:t}),"\n        "))),a()}},i=[{validator:r,trigger:"change"},{validator:s(a),trigger:"change"}]},fd92:function(t,e,n){"use strict";n.r(e);var o=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("el-card",{directives:[{name:"loading",rawName:"v-loading.body",value:t.isLoading,expression:"isLoading",modifiers:{body:!0}}],attrs:{shadow:"never"},scopedSlots:t._u([{key:"header",fn:function(){return[n("auth-card-header",{attrs:{heading:t.$t("page_set_password.form_title")}})]},proxy:!0}])},[n("el-form",{ref:"form",attrs:{rules:t.formRules,size:"medium","status-icon":"",model:t.form}},[n("el-form-item",{attrs:{prop:"password"}},[n("el-input",{attrs:{placeholder:t.$t("forms.password"),type:"password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}})],1),n("v-alert",{ref:"alert"}),n("el-form-item",[n("v-wide-button",{attrs:{size:"large",type:"primary"},nativeOn:{click:function(e){return e.preventDefault(),t.handleSetPassword.apply(null,arguments)}}},[t._v(" "+t._s(t.$t("page_set_password.btn_submit"))+" ")])],1),n("v-alert",{ref:"alert"})],1)],1)},a=[],r=n("5530"),s=(n("4795"),n("b618")),i=n("477e"),c=n("3f5e"),u=n("ea06"),l=n("d76b"),d=n("2f62"),f=n("5e1d"),p={name:"AuthSetNewPassword",components:{AuthCardHeader:f["a"],VWideButton:i["a"],VAlert:c["a"]},inject:["changeLayoutImage"],created:function(){this.changeLayoutImage(s)},data:function(){return{formRules:{password:l["a"]},form:{password:""}}},computed:Object(r["a"])({},Object(d["e"])("loadingState",{isLoading:function(t){return t.isLoading}})),methods:{handleSetPassword:function(){var t=this,e=this.form,n=this.$route,o=this.$refs,a=3e3;o.form.validate((function(s){if(s){var i=Object(r["a"])(Object(r["a"])({},e),{},{token:n.params.token});Object(u["f"])(i).then((function(){o.alert.showAlert({type:"success",timeout:a,text:t.$t("alerts.new_password_set")}),setTimeout((function(){t.$router.push({name:"login"})}),a)}))["catch"]((function(e){o.alert.showAlert({type:"error",timeout:a,text:t.$t("alerts.invalid_token")})}))}}))}}},h=p,m=n("2877"),g=Object(m["a"])(h,o,a,!1,null,null,null);e["default"]=g.exports}}]);
//# sourceMappingURL=chunk-4939ae82.19fe39b8.js.map