exports.ids = [28,29];
exports.modules = {
/***/ 283:
/***/ (function(module, exports) {
// Exports
module.exports = {
};
/***/ }),
/***/ 295:
/***/ (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!./components/ResetPasswordMail.vue?vue&type=template&id=5f1ed0ce&scoped=true
var render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c('div', [_vm._ssrNode("
\n Have more questions? contact us!\n
Phone: 203 916 5098
\n Email:\n \n Info@promocollection.uk\n
")]);
};
var staticRenderFns = [];
// CONCATENATED MODULE: ./components/ResetPasswordMail.vue?vue&type=template&id=5f1ed0ce&scoped=true
// 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!./components/ResetPasswordMail.vue?vue&type=script&lang=js
/* harmony default export */ var ResetPasswordMailvue_type_script_lang_js = ({
props: {
mailData: {}
}
});
// CONCATENATED MODULE: ./components/ResetPasswordMail.vue?vue&type=script&lang=js
/* harmony default export */ var components_ResetPasswordMailvue_type_script_lang_js = (ResetPasswordMailvue_type_script_lang_js);
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);
// CONCATENATED MODULE: ./components/ResetPasswordMail.vue
function injectStyles (context) {
}
/* normalize component */
var component = Object(componentNormalizer["a" /* default */])(
components_ResetPasswordMailvue_type_script_lang_js,
render,
staticRenderFns,
false,
injectStyles,
"5f1ed0ce",
"ab9bffba"
)
/* harmony default export */ var ResetPasswordMail = __webpack_exports__["default"] = (component.exports);
/***/ }),
/***/ 339:
/***/ (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_resetPasswordDialog_vue_vue_type_style_index_0_id_6548d9c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(283);
/* 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_resetPasswordDialog_vue_vue_type_style_index_0_id_6548d9c2_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_resetPasswordDialog_vue_vue_type_style_index_0_id_6548d9c2_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_resetPasswordDialog_vue_vue_type_style_index_0_id_6548d9c2_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_resetPasswordDialog_vue_vue_type_style_index_0_id_6548d9c2_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
/***/ }),
/***/ 374:
/***/ (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!./components/resetPasswordDialog.vue?vue&type=template&id=6548d9c2&scoped=true
var render = function render() {
var _vm = this,
_c = _vm._self._c;
return _c('el-dialog', {
attrs: {
"lock-scroll": false,
"visible": _vm.resetDialogVisible,
"width": "700px"
},
on: {
"update:visible": function ($event) {
_vm.resetDialogVisible = $event;
}
}
}, [_c('el-page-header', {
on: {
"back": _vm.goBack
}
}), _vm._v(" "), _c('div', {
staticClass: "dialog-content"
}, [_c('p', [_vm._v("Reset Password")]), _vm._v(" "), _c('p', [_vm._v("\n Enter your email address and we'll send a link to reset your password.\n ")]), _vm._v(" "), _c('el-input', {
attrs: {
"placeholder": "Email"
},
model: {
value: _vm.email,
callback: function ($$v) {
_vm.email = $$v;
},
expression: "email"
}
}), _vm._v(" "), _c('el-button', {
staticClass: "reset-btn",
attrs: {
"plain": "",
"disabled": _vm.disabledFlag
},
on: {
"click": _vm.debounceSendEmail
}
}, [_vm._v("\n " + _vm._s(_vm.butonContent) + "\n ")])], 1), _vm._v(" "), _c('reset-password-mail', {
directives: [{
name: "show",
rawName: "v-show",
value: false,
expression: "false"
}],
ref: "resetPasswordMail",
attrs: {
"mailData": _vm.mailData
}
})], 1);
};
var staticRenderFns = [];
// CONCATENATED MODULE: ./components/resetPasswordDialog.vue?vue&type=template&id=6548d9c2&scoped=true
// EXTERNAL MODULE: ./plugins/AES.js
var AES = __webpack_require__(32);
// EXTERNAL MODULE: external "lodash"
var external_lodash_ = __webpack_require__(141);
var external_lodash_default = /*#__PURE__*/__webpack_require__.n(external_lodash_);
// 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!./components/resetPasswordDialog.vue?vue&type=script&lang=js
/* harmony default export */ var resetPasswordDialogvue_type_script_lang_js = ({
name: 'resetPasswordDialog',
data() {
return {
disabledFlag: false,
resetDialogVisible: false,
email: '',
butonContent: 'SEND RESET EMAIL',
time: 60,
timer: null,
mailData: {
Url: '',
name: '',
email: ''
}
};
},
watch: {
email: {
handler(newValue, oldValue) {
if (newValue) {
let reg = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
if (reg.test(this.email)) {
this.disabledFlag = false;
} else {
this.disabledFlag = true;
}
this.getmailData();
}
},
immediate: true
}
},
mounted() {
this.getmailData();
},
methods: {
goBack() {
this.resetDialogVisible = false;
this.$emit('openLoginDialog');
},
getmailData() {
this.mailData.Url = location.origin + '/setNewPassword';
this.mailData.name = this.email;
this.mailData.email = AES["a" /* default */].encrypt(this.email + '&t=' + Date.now());
},
debounceSendEmail: external_lodash_default.a.debounce(function () {
this.sendEmail();
}, 200),
sendEmail() {
if (this.email) {
this.disabledFlag = true;
this.getmailData();
this.timer = setInterval(() => {
if (this.time == 0) {
this.resetData();
} else {
this.butonContent = 'Resend Passwords in ' + this.time + ' s';
this.time--;
}
}, 1000);
this.$axios.post('/uk-api/uk/resetemail', {
email: this.email,
content: this.$refs.resetPasswordMail.$el.innerHTML
}).then(res => {
if (res.code == 1) {
this.resetData();
this.time = 60;
this.$notify({
title: 'success',
message: 'Sending an email successfully',
type: 'success',
duration: 3000
});
}
}).catch(() => {
this.resetData();
this.time = 60;
// this.$message.error(error.response.data.msg);
});
}
},
resetData(boolean = false) {
clearInterval(this.timer);
this.disabledFlag = boolean;
this.butonContent = 'SEND RESET EMAIL';
}
},
beforeDestroy() {
clearInterval(this.timer);
}
});
// CONCATENATED MODULE: ./components/resetPasswordDialog.vue?vue&type=script&lang=js
/* harmony default export */ var components_resetPasswordDialogvue_type_script_lang_js = (resetPasswordDialogvue_type_script_lang_js);
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(2);
// CONCATENATED MODULE: ./components/resetPasswordDialog.vue
function injectStyles (context) {
var style0 = __webpack_require__(339)
if (style0.__inject__) style0.__inject__(context)
}
/* normalize component */
var component = Object(componentNormalizer["a" /* default */])(
components_resetPasswordDialogvue_type_script_lang_js,
render,
staticRenderFns,
false,
injectStyles,
"6548d9c2",
"66626a54"
)
/* harmony default export */ var resetPasswordDialog = __webpack_exports__["default"] = (component.exports);
/* nuxt-component-imports */
installComponents(component, {ResetPasswordMail: __webpack_require__(295).default})
/***/ })
};;
//# sourceMappingURL=reset-password-dialog.js.map