exports.ids = [93];
exports.modules = {

/***/ 270:
/***/ (function(module, exports) {

// Exports
module.exports = {

};


/***/ }),

/***/ 331:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_setNewPassword_vue_vue_type_style_index_0_id_451a1550_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(270);
/* harmony import */ var _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_setNewPassword_vue_vue_type_style_index_0_id_451a1550_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_setNewPassword_vue_vue_type_style_index_0_id_451a1550_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_setNewPassword_vue_vue_type_style_index_0_id_451a1550_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__) if(["default"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_css_loader_dist_cjs_js_ref_7_oneOf_1_0_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_dist_cjs_js_ref_7_oneOf_1_1_node_modules_sass_loader_dist_cjs_js_ref_7_oneOf_1_2_node_modules_nuxt_components_dist_loader_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_setNewPassword_vue_vue_type_style_index_0_id_451a1550_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));


/***/ }),

/***/ 392:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/setNewPassword.vue?vue&type=template&id=451a1550&scoped=true
var render = function render() {
  var _vm = this,
    _c = _vm._self._c;
  return _c('div', {
    staticClass: "com-main com-width-1400 com-margin-auto"
  }, [_vm._ssrNode("<div class=\"resetPassword\" data-v-451a1550>", "</div>", [_vm._ssrNode("<div data-v-451a1550>", "</div>", [_vm._ssrNode("<p class=\"title\" data-v-451a1550>Set New Password</p> <p class=\"tip\" data-v-451a1550>Fill in your new password</p> "), _vm._ssrNode("<div class=\"userInfo\" data-v-451a1550>", "</div>", [_c('el-form', {
    ref: "ruleForm",
    staticClass: "demo-ruleForm",
    attrs: {
      "model": _vm.ruleForm,
      "rules": _vm.rules
    }
  }, [_c('el-form-item', {
    attrs: {
      "prop": "password"
    }
  }, [_c('label', {
    attrs: {
      "for": ""
    }
  }, [_vm._v("Password")]), _vm._v(" "), _c('el-input', {
    attrs: {
      "type": _vm.flag ? 'text' : 'password'
    },
    model: {
      value: _vm.ruleForm.password,
      callback: function ($$v) {
        _vm.$set(_vm.ruleForm, "password", $$v);
      },
      expression: "ruleForm.password"
    }
  }, [!_vm.flag ? _c('i', {
    staticClass: "el-input__icon iconfont",
    staticStyle: {
      "font-size": "22px"
    },
    attrs: {
      "slot": "suffix"
    },
    on: {
      "click": _vm.showPassword
    },
    slot: "suffix"
  }, [_vm._v("")]) : _c('i', {
    staticClass: "el-input__icon iconfont",
    staticStyle: {
      "font-size": "22px"
    },
    attrs: {
      "slot": "suffix"
    },
    on: {
      "click": _vm.showPassword
    },
    slot: "suffix"
  }, [_vm._v("")])])], 1), _vm._v(" "), _c('el-form-item', {
    attrs: {
      "prop": "confirm_password"
    }
  }, [_c('label', {
    attrs: {
      "for": ""
    }
  }, [_vm._v(" Comfirm Password")]), _vm._v(" "), _c('el-input', {
    attrs: {
      "type": _vm.confirm_flag ? 'text' : 'password'
    },
    model: {
      value: _vm.ruleForm.confirm_password,
      callback: function ($$v) {
        _vm.$set(_vm.ruleForm, "confirm_password", $$v);
      },
      expression: "ruleForm.confirm_password"
    }
  }, [!_vm.confirm_flag ? _c('i', {
    staticClass: "el-input__icon iconfont",
    staticStyle: {
      "font-size": "22px"
    },
    attrs: {
      "slot": "suffix"
    },
    on: {
      "click": _vm.showPassword
    },
    slot: "suffix"
  }, [_vm._v("")]) : _c('i', {
    staticClass: "el-input__icon iconfont",
    staticStyle: {
      "font-size": "22px"
    },
    attrs: {
      "slot": "suffix"
    },
    on: {
      "click": _vm.showPassword
    },
    slot: "suffix"
  }, [_vm._v("")])])], 1)], 1)], 1), _vm._ssrNode(" "), _vm._ssrNode("<div class=\"submitBtn\" data-v-451a1550>", "</div>", [_c('el-button', {
    on: {
      "click": function ($event) {
        return _vm.submit('ruleForm');
      }
    }
  }, [_vm._v("SUBMIT")])], 1)], 2)]), _vm._ssrNode(" "), _c('dialog-XX-success', {
    attrs: {
      "visible": _vm.xxContentVisible,
      "content": _vm.xxContent
    },
    on: {
      "update:visible": function ($event) {
        _vm.xxContentVisible = $event;
      },
      "notify-parent": _vm.handleNotification
    }
  })], 2);
};
var staticRenderFns = [];

// CONCATENATED MODULE: ./pages/setNewPassword.vue?vue&type=template&id=451a1550&scoped=true

// EXTERNAL MODULE: external "vuex"
var external_vuex_ = __webpack_require__(5);

// EXTERNAL MODULE: ./components/DIalogXXSuccess.vue + 4 modules
var DIalogXXSuccess = __webpack_require__(30);

// EXTERNAL MODULE: ./plugins/AES.js
var AES = __webpack_require__(32);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib??ref--2-0!./node_modules/@nuxt/components/dist/loader.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./pages/setNewPassword.vue?vue&type=script&lang=js



/* harmony default export */ var setNewPasswordvue_type_script_lang_js = ({
  components: {
    'dialog-XX-success': DIalogXXSuccess["default"]
  },
  middleware: "checkTimestamp",
  data() {
    return {
      xxContentVisible: false,
      xxContent: 'success',
      flag: false,
      confirm_flag: false,
      email: '',
      ruleForm: {
        password: '',
        confirm_password: ''
      },
      rules: {
        // email: [{ required: true, message: "请输入", trigger: "blur" }],
        password: [{
          required: true,
          message: 'Please enter your password',
          trigger: 'blur'
        }, {
          min: 6,
          max: 16,
          message: 'Password length only allows 6-16 bits',
          trigger: 'blur'
        }],
        confirm_password: [{
          required: true,
          message: 'Please confirm your password',
          trigger: 'blur'
        }]
      }
    };
  },
  created() {
    const str = AES["a" /* default */].decrypt(this.$route.query.email);
    const parts = str.split("&t=");
    this.email = parts[0];
  },
  methods: {
    handleNotification() {
      this.$router.push('/');
      this.$store.dispatch('logout');
      this.openDialog();
    },
    submit(formName) {
      this.$refs[formName].validate(valid => {
        if (valid) {
          if (this.ruleForm.password !== this.ruleForm.confirm_password) {
            this.$message({
              message: 'The second password is inconsistent',
              type: 'error'
            });
          } else {
            this.$axios.post('/au/reset', {
              // email: this.ruleForm.email,
              email: this.email,
              password: this.ruleForm.password,
              confirm_password: this.ruleForm.confirm_password
            }).then(res => {
              this.xxContentVisible = true;
              this.xxContent = "Password Reset Successful";
            }).catch(() => {
              // this.$message.error(error.response.data.msg)
            });
          }
        } else {
          console.log('error submit!!');
          return false;
        }
      });
    },
    ...Object(external_vuex_["mapMutations"])(['openDialog']),
    showPassword() {
      this.flag = !this.flag;
      this.confirm_flag = !this.confirm_flag;
    }
  }
});
// CONCATENATED MODULE: ./pages/setNewPassword.vue?vue&type=script&lang=js
 /* harmony default export */ var pages_setNewPasswordvue_type_script_lang_js = (setNewPasswordvue_type_script_lang_js); 
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);

// CONCATENATED MODULE: ./pages/setNewPassword.vue



function injectStyles (context) {
  
  var style0 = __webpack_require__(331)
if (style0.__inject__) style0.__inject__(context)

}

/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  pages_setNewPasswordvue_type_script_lang_js,
  render,
  staticRenderFns,
  false,
  injectStyles,
  "451a1550",
  "ed50ad02"
  
)

/* harmony default export */ var setNewPassword = __webpack_exports__["default"] = (component.exports);

/***/ })

};;
//# sourceMappingURL=setNewPassword.js.map