(function webpackUniversalModuleDefinition(root, factory) {
	if(typeof exports === 'object' && typeof module === 'object')
		module.exports = factory();
	else if(typeof define === 'function' && define.amd)
		define([], factory);
	else if(typeof exports === 'object')
		exports["firefly-reset-password"] = factory();
	else
		root["firefly-reset-password"] = factory();
})(window, function() {
return /******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, { enumerable: true, get: getter });
/******/ 		}
/******/ 	};
/******/
/******/ 	// define __esModule on exports
/******/ 	__webpack_require__.r = function(exports) {
/******/ 		if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 			Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 		}
/******/ 		Object.defineProperty(exports, '__esModule', { value: true });
/******/ 	};
/******/
/******/ 	// create a fake namespace object
/******/ 	// mode & 1: value is a module id, require it
/******/ 	// mode & 2: merge all properties of value into the ns
/******/ 	// mode & 4: return value when already ns object
/******/ 	// mode & 8|1: behave like require
/******/ 	__webpack_require__.t = function(value, mode) {
/******/ 		if(mode & 1) value = __webpack_require__(value);
/******/ 		if(mode & 8) return value;
/******/ 		if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
/******/ 		var ns = Object.create(null);
/******/ 		__webpack_require__.r(ns);
/******/ 		Object.defineProperty(ns, 'default', { enumerable: true, value: value });
/******/ 		if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
/******/ 		return ns;
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 431);
/******/ })
/************************************************************************/
/******/ ({

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
/* globals __VUE_SSR_CONTEXT__ */

// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
// This module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle.

function normalizeComponent(
  scriptExports,
  render,
  staticRenderFns,
  functionalTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */,
  shadowMode /* vue-cli only */
) {
  // Vue.extend constructor export interop
  var options =
    typeof scriptExports === 'function' ? scriptExports.options : scriptExports

  // render functions
  if (render) {
    options.render = render
    options.staticRenderFns = staticRenderFns
    options._compiled = true
  }

  // functional template
  if (functionalTemplate) {
    options.functional = true
  }

  // scopedId
  if (scopeId) {
    options._scopeId = 'data-v-' + scopeId
  }

  var hook
  if (moduleIdentifier) {
    // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = shadowMode
      ? function () {
          injectStyles.call(
            this,
            (options.functional ? this.parent : this).$root.$options.shadowRoot
          )
        }
      : injectStyles
  }

  if (hook) {
    if (options.functional) {
      // for template-only hot-reload because in that case the render fn doesn't
      // go through the normalizer
      options._injectStyles = hook
      // register for functional component in vue file
      var originalRender = options.render
      options.render = function renderWithStyleInjection(h, context) {
        hook.call(context)
        return originalRender(h, context)
      }
    } else {
      // inject component registration as beforeCreate hook
      var existing = options.beforeCreate
      options.beforeCreate = existing ? [].concat(existing, hook) : [hook]
    }
  }

  return {
    exports: scriptExports,
    options: options
  }
}


/***/ }),

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

"use strict";

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/loginFooter.vue?vue&type=template&id=053389e3&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c("div", { staticClass: "login-footer" }, [_vm._v(_vm._s(_vm.text))])
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/loginFooter.vue?vue&type=template&id=053389e3&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/loginFooter.vue?vue&type=script&lang=js&

/* harmony default export */ var loginFootervue_type_script_lang_js_ = ({
  name: 'LoginFooter',
  props: {
    text: {
      type: String,
      require: true,
      default: 'Copyright © 2020 - 2023 恩斯迈电子(深圳)有限公司'
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/loginFooter.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_loginFootervue_type_script_lang_js_ = (loginFootervue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/loginFooter.vue?vue&type=style&index=0&id=053389e3&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/loginFooter.vue?vue&type=style&index=0&id=053389e3&prod&lang=scss&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/loginFooter.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_loginFootervue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "053389e3",
  null
  
)

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

/***/ }),

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

"use strict";

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/leftImage.vue?vue&type=template&id=7387646e&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c("div", { staticClass: "login-left" }, [
    _c("img", { attrs: { src: _vm.leftImg } }),
  ])
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/leftImage.vue?vue&type=template&id=7387646e&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/leftImage.vue?vue&type=script&lang=js&

/* harmony default export */ var leftImagevue_type_script_lang_js_ = ({
  name: 'LeftImage',
  props: ['leftImg']
});

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/leftImage.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_leftImagevue_type_script_lang_js_ = (leftImagevue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/leftImage.vue?vue&type=style&index=0&id=7387646e&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/leftImage.vue?vue&type=style&index=0&id=7387646e&prod&lang=scss&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/leftImage.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_leftImagevue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "7387646e",
  null
  
)

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

/***/ }),

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

"use strict";

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/emailIndexBar.vue?vue&type=template&id=64a1d06a&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    {
      directives: [
        {
          name: "show",
          rawName: "v-show",
          value: _vm.show,
          expression: "show",
        },
      ],
      staticClass: "email-list-warp",
    },
    [
      _vm.mailboxSuffix.length < 0
        ? _vm._l(_vm.mailboxSuffix, function (item, index) {
            return _c(
              "div",
              {
                key: index,
                staticClass: "email-list-item",
                on: {
                  click: function ($event) {
                    return _vm.chooseItem(item)
                  },
                },
              },
              [_vm._v("\n    " + _vm._s(item.emailName) + "\n  ")]
            )
          })
        : _vm._e(),
      _vm._v(" "),
      [_c("div", { staticClass: "email-list-item" }, [_vm._v("暂无数据")])],
    ],
    2
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/emailIndexBar.vue?vue&type=template&id=64a1d06a&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/emailIndexBar.vue?vue&type=script&lang=js&

/* harmony default export */ var emailIndexBarvue_type_script_lang_js_ = ({
  name: 'EmailIndexBar',
  props: {
    show: {
      type: Boolean,
      default: false
    },
    mailboxSuffix: {
      type: Array,
      default: () => []
    }
  },
  methods: {
    chooseItem(val) {
      this.$emit('chooseItem', val);
      this.$emit('update:show', false);
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/emailIndexBar.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_emailIndexBarvue_type_script_lang_js_ = (emailIndexBarvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/emailIndexBar.vue?vue&type=style&index=0&id=64a1d06a&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/emailIndexBar.vue?vue&type=style&index=0&id=64a1d06a&prod&lang=scss&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/emailIndexBar.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_emailIndexBarvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "64a1d06a",
  null
  
)

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

/***/ }),

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

module.exports = "data:image/png;base64, "

/***/ }),

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

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return validPwd; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return validPhone; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return foreignPhone; });
/**
 * 密码 6~128位并且大小写字母、数字、特殊字符三项中有两项
 */
function validPwd(no) {
    const rgx = /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_!@#$%^&*`~()-+=]+$)(?![a-z0-9]+$)(?![a-z\W_!@#$%^&*`~()-+=]+$)(?![0-9\W_!@#$%^&*`~()-+=]+$)[a-zA-Z0-9\W_!@#$%^&*`~()-+=]{6,128}$/;
    return rgx.test(no);
}
/**
 * 国内手机校验
 */
function validPhone(no) {
    const rgx = /^(?:(?:\+|00)86)?1(?:(?:3[\d])|(?:4[5-79])|(?:5[0-35-9])|(?:6[5-7])|(?:7[0-8])|(?:8[\d])|(?:9[1589]))\d{8}$/
    return rgx.test(no);
}

/**
 * 手机号-国外手机号
 */
function foreignPhone(no) {
    const rgx = /^[0-9]*$/;
    return rgx.test(no);
}

/***/ }),

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

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

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/main.vue?vue&type=template&id=ab7cb782&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    {
      staticClass: "login-warp",
      class: !_vm.needFootInform ? "login-main-no-footer" : "",
    },
    [
      _c(
        "div",
        { staticClass: "login-main" },
        [
          _c("LeftImage", { attrs: { leftImg: _vm.leftImg } }),
          _vm._v(" "),
          _c("div", { staticClass: "login-right" }, [
            _c("div", { staticClass: "login-right-warp" }, [
              _c(
                "div",
                { staticClass: "right-content" },
                [
                  _c("div", { staticClass: "reset-password-title" }, [
                    _vm._v("重置密码"),
                  ]),
                  _vm._v(" "),
                  _vm.resetModelNum > 1
                    ? _c("CheckModeReset", {
                        attrs: { componentName: _vm.componentName },
                        on: {
                          "update:componentName": function ($event) {
                            _vm.componentName = $event
                          },
                          "update:component-name": function ($event) {
                            _vm.componentName = $event
                          },
                        },
                      })
                    : _vm._e(),
                  _vm._v(" "),
                  _c(_vm.componentName, {
                    key: _vm.componentName,
                    tag: "component",
                    attrs: {
                      loading: _vm.loading,
                      hidenAgreement: _vm.hidenAgreement,
                      areaCodeData: _vm.areaCodeData,
                      mailboxSuffix: _vm.mailboxSuffix,
                    },
                    on: {
                      "update:loading": function ($event) {
                        _vm.loading = $event
                      },
                      getCode: _vm.getCode,
                      reset: _vm.reset,
                      gobackLogin: _vm.gobackLogin,
                    },
                  }),
                ],
                1
              ),
            ]),
          ]),
        ],
        1
      ),
      _vm._v(" "),
      !_vm.needFootInform ? _c("LoginFooter") : _vm._e(),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/main.vue?vue&type=template&id=ab7cb782&scoped=true&

// EXTERNAL MODULE: ./components/lib/fireflyLogin/src/components/leftImage.vue + 6 modules
var leftImage = __webpack_require__(120);

// EXTERNAL MODULE: ./components/lib/fireflyLogin/src/components/loginFooter.vue + 6 modules
var loginFooter = __webpack_require__(119);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue?vue&type=template&id=22041f5c&scoped=true&
var resetPasswordPhonevue_type_template_id_22041f5c_scoped_true_render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    {
      directives: [
        {
          name: "loading",
          rawName: "v-loading",
          value: _vm.loading,
          expression: "loading",
        },
      ],
    },
    [
      _c(
        "el-form",
        {
          ref: "resetForm",
          staticClass: "login-form",
          attrs: { model: _vm.resetForm, rules: _vm.loginFormRules },
        },
        [
          _c(
            "el-form-item",
            { staticClass: "area-code-warp", attrs: { prop: "loginId" } },
            [
              _c(
                "el-input",
                {
                  staticClass: "phone-code",
                  attrs: { size: "large", placeholder: "请输入手机号" },
                  model: {
                    value: _vm.resetForm.loginId,
                    callback: function ($$v) {
                      _vm.$set(_vm.resetForm, "loginId", $$v)
                    },
                    expression: "resetForm.loginId",
                  },
                },
                [
                  _c("template", { slot: "prepend" }, [
                    _c(
                      "div",
                      {
                        staticClass: "area-code-container",
                        on: {
                          click: function ($event) {
                            _vm.showArea = !_vm.showArea
                          },
                        },
                      },
                      [
                        _c("div", { staticClass: "area-code-number" }, [
                          _vm._v(_vm._s(_vm.resetForm.mobileAreaCode)),
                        ]),
                        _vm._v(" "),
                        _c("i", {
                          class: [
                            "el-icon-caret-bottom",
                            { reg180: _vm.showArea },
                          ],
                        }),
                      ]
                    ),
                  ]),
                ],
                2
              ),
              _vm._v(" "),
              _c("EreaIndexBar", {
                staticClass: "choose-area-content",
                attrs: {
                  indexData: _vm.areaCodeData,
                  show: _vm.showArea,
                  currentAreaCode: _vm.resetForm.areaName,
                },
                on: { chooseItem: _vm.chooseAreaItem },
              }),
            ],
            1
          ),
          _vm._v(" "),
          _c("el-form-item", { attrs: { prop: "code" } }, [
            _c(
              "div",
              { staticClass: "verify-code-warp" },
              [
                _c("el-input", {
                  staticClass: "verify-left",
                  attrs: {
                    size: "large",
                    "prefix-icon": "el-icon-key",
                    placeholder: "请输入验证码",
                  },
                  model: {
                    value: _vm.resetForm.code,
                    callback: function ($$v) {
                      _vm.$set(_vm.resetForm, "code", $$v)
                    },
                    expression: "resetForm.code",
                  },
                }),
                _vm._v(" "),
                _c(
                  "div",
                  { staticClass: "verify-code" },
                  [
                    _c(
                      "el-button",
                      {
                        attrs: {
                          type: "primary",
                          size: "large",
                          disabled: !_vm.canGetCode || _vm.isGettingCode,
                        },
                        on: {
                          click: function ($event) {
                            return _vm.getCode("resetForm")
                          },
                        },
                      },
                      [
                        _vm._v(
                          "\n            " +
                            _vm._s(
                              _vm.isGettingCode
                                ? _vm.seconds + " s"
                                : "获取验证码"
                            ) +
                            "\n          "
                        ),
                      ]
                    ),
                  ],
                  1
                ),
              ],
              1
            ),
          ]),
          _vm._v(" "),
          _c(
            "el-form-item",
            { attrs: { prop: "loginPwdOriginal" } },
            [
              _c("el-input", {
                attrs: {
                  size: "large",
                  "prefix-icon": "el-icon-lock",
                  placeholder: "请输入密码",
                  "show-password": "",
                },
                model: {
                  value: _vm.resetForm.loginPwdOriginal,
                  callback: function ($$v) {
                    _vm.$set(_vm.resetForm, "loginPwdOriginal", $$v)
                  },
                  expression: "resetForm.loginPwdOriginal",
                },
              }),
            ],
            1
          ),
        ],
        1
      ),
      _vm._v(" "),
      _c(
        "el-button",
        {
          staticClass: "login-button",
          attrs: { type: "primary", size: "large" },
          on: {
            click: function ($event) {
              return _vm.resetPassword("resetForm")
            },
          },
        },
        [_vm._v("确定修改")]
      ),
      _vm._v(" "),
      !_vm.hidenAgreement
        ? _c("CheckAgreement", {
            ref: "CheckAgreement",
            attrs: { consentCheck: _vm.consentCheck },
            on: { changeOpinion: _vm.changeOpinion },
          })
        : _vm._e(),
      _vm._v(" "),
      _c("GoBackLogin", { on: { gobackLogin: _vm.gobackLogin } }),
    ],
    1
  )
}
var resetPasswordPhonevue_type_template_id_22041f5c_scoped_true_staticRenderFns = []
resetPasswordPhonevue_type_template_id_22041f5c_scoped_true_render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue?vue&type=template&id=22041f5c&scoped=true&

// EXTERNAL MODULE: ./components/lib/fireflyLogin/src/utils/rule.js
var utils_rule = __webpack_require__(43);

// EXTERNAL MODULE: ./components/lib/fireflyLogin/src/components/checkAgreement.vue + 6 modules
var checkAgreement = __webpack_require__(49);

// EXTERNAL MODULE: ./components/lib/fireflyLogin/src/components/ereaIndexBars.vue + 6 modules
var ereaIndexBars = __webpack_require__(57);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue?vue&type=template&id=5382310c&scoped=true&
var goBackLoginButtonvue_type_template_id_5382310c_scoped_true_render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    { staticClass: "go-back-login-warp" },
    [
      _c("span", [_vm._v("又想起来了，")]),
      _c(
        "el-link",
        { attrs: { type: "primary" }, on: { click: _vm.gobackLogin } },
        [_vm._v("返回登录")]
      ),
    ],
    1
  )
}
var goBackLoginButtonvue_type_template_id_5382310c_scoped_true_staticRenderFns = []
goBackLoginButtonvue_type_template_id_5382310c_scoped_true_render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue?vue&type=template&id=5382310c&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue?vue&type=script&lang=js&

/* harmony default export */ var goBackLoginButtonvue_type_script_lang_js_ = ({
  name: 'GoBackLogin',
  methods: {
    gobackLogin() {
      this.$emit('gobackLogin');
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_goBackLoginButtonvue_type_script_lang_js_ = (goBackLoginButtonvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue?vue&type=style&index=0&id=5382310c&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue?vue&type=style&index=0&id=5382310c&prod&lang=scss&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/goBackLoginButton.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_goBackLoginButtonvue_type_script_lang_js_,
  goBackLoginButtonvue_type_template_id_5382310c_scoped_true_render,
  goBackLoginButtonvue_type_template_id_5382310c_scoped_true_staticRenderFns,
  false,
  null,
  "5382310c",
  null
  
)

/* harmony default export */ var goBackLoginButton = (component.exports);
// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue?vue&type=script&lang=js&

 //校验规则 使用登录模块同组件
 //服务协议以及隐私协议 使用登录模块同组件
 //下拉手机区号 使用登录模块同组件
 //返回登录
/* harmony default export */ var resetPasswordPhonevue_type_script_lang_js_ = ({
  name: 'ResetPasswordPhone',
  components: {
    CheckAgreement: checkAgreement["a" /* default */], //隐私模块
    EreaIndexBar: ereaIndexBars["a" /* default */], //选择区号模块
    GoBackLogin: goBackLoginButton //返回登录
  },
  props: {
    //登录loading
    loading: {
      type: Boolean,
      default: false
    },
    //同意协议
    consent: {
      type: Boolean,
      default: false
    },
    //是否隐藏协议
    hidenAgreement: {
      type: Boolean,
      default: false
    },
    //区号下拉框
    areaCodeData: {
      type: Object,
      default: () => {}
    }
  },
  computed: {
    // 获取验证码按钮禁止点击
    canGetCode() {
      let flag = false;
      // if (this.resetForm.loginId ?? "" !== "") {
      //   flag = true;
      // }
      if (this.resetForm.loginId != null && this.resetForm.loginId != '') {
        flag = true;
      }
      return flag;
    }
  },
  data() {
    return {
      consentCheck: this.consent, //是否同意协议
      timer: null, //定时器
      isGettingCode: false, //是否正在等待获取发送的验证码
      seconds: 60, //验证码等待倒计时
      showArea: false, // 是否打开选择地区区号
      // 登录模块
      resetForm: {
        loginPwdOriginal: null, //重置密码
        loginDeviceId: null, //登录设备ID
        requestId: null, //验证码请求ID
        loginId: null, //手机号
        areaName: '中国大陆', //区域名
        mobileAreaCode: '+86', //区号
        code: null, //短信验证码
        fireflyType: 'ResetPasswordPhone' //重置方式
      },
      //校验规则
      loginFormRules: {
        loginId: [
          {
            required: true,
            message: '请输入手机号码'
          },
          {
            validator: (rule, value, callback) => {
              if (this.resetForm.mobileAreaCode == '+86') {
                if (!Object(utils_rule["b" /* validPhone */])(value)) {
                  callback(new Error('国内手机号格式不正确'));
                } else {
                  callback();
                }
              } else {
                if (!Object(utils_rule["a" /* foreignPhone */])(value)) {
                  callback(new Error('手机号格式不正确'));
                } else {
                  callback();
                }
              }
            },
            trigger: 'blur'
          }
        ],
        code: [
          {
            required: true,
            message: '请输入验证码',
            trigger: 'change'
          }
        ],
        loginPwdOriginal: [
          {
            required: true,
            message: '请输入密码'
          },
          {
            validator: (rule, value, callback) => {
              if (!Object(utils_rule["c" /* validPwd */])(value)) {
                callback(new Error('密码格式不正确'));
              } else {
                callback();
              }
            },
            trigger: 'blur'
          }
        ]
      }
    };
  },
  methods: {
    //返回登录模块
    gobackLogin() {
      this.$emit('gobackLogin');
    },
    // 点击下拉的选项的时候
    chooseAreaItem(val) {
      console.log('click item: ', val);
      this.resetForm.mobileAreaCode = val.areaCode;
      this.resetForm.areaName = val.name;
      this.showArea = false;
    },
    //接受子组件的参数
    changeOpinion(value) {
      this.consentCheck = value;
    },
    //获取验证码
    getCode(formName) {
      let _this = this;
      _this.$refs[formName].validateField('loginId', data => {
        if (data == '' || data.length == 1) {
          _this.countDown();
          _this.$emit('getCode', _this.resetForm);
        }
      });
    },
    //开始倒计时
    countDown() {
      let _this = this;
      _this.clearTimer();
      // 发送验证码倒计时
      _this.isGettingCode = true;
      _this.timer = setInterval(() => {
        if (_this.seconds > 1) {
          _this.seconds--;
        } else {
          _this.isGettingCode = false;
          _this.seconds = 60;
          _this.clearTimer();
        }
      }, 1000);
    },
    // 清除定时器
    clearTimer() {
      this.isGettingCode = false;
      this.seconds = 60;
      this.timer && clearInterval(this.timer);
      this.$emit('clearTimer');
    },
    //登录校验
    resetPassword(formName) {
      let _this = this;
      _this.$refs[formName].validate(valid => {
        if (valid) {
          if (!_this.hidenAgreement) {
            _this.$refs.CheckAgreement.verify();
            console.log(_this.consentCheck, '_this.consentCheck');
            if (_this.consentCheck) {
              _this.$emit('reset', _this.resetForm);
            }
          } else {
            _this.$emit('reset', _this.resetForm);
          }
        }
      });
    }
  },
  beforeDestroy() {
    console.log('定时器清除');
    this.clearTimer();
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_resetPasswordPhonevue_type_script_lang_js_ = (resetPasswordPhonevue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue?vue&type=style&index=0&id=22041f5c&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue?vue&type=style&index=0&id=22041f5c&prod&lang=scss&scoped=true&

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordPhone.vue






/* normalize component */

var resetPasswordPhone_component = Object(componentNormalizer["a" /* default */])(
  components_resetPasswordPhonevue_type_script_lang_js_,
  resetPasswordPhonevue_type_template_id_22041f5c_scoped_true_render,
  resetPasswordPhonevue_type_template_id_22041f5c_scoped_true_staticRenderFns,
  false,
  null,
  "22041f5c",
  null
  
)

/* harmony default export */ var resetPasswordPhone = (resetPasswordPhone_component.exports);
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue?vue&type=template&id=7f44a73e&scoped=true&
var resetPasswordEmailvue_type_template_id_7f44a73e_scoped_true_render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    {
      directives: [
        {
          name: "loading",
          rawName: "v-loading",
          value: _vm.loading,
          expression: "loading",
        },
      ],
    },
    [
      _c(
        "el-form",
        {
          ref: "resetForm",
          staticClass: "login-form",
          attrs: { model: _vm.resetForm, rules: _vm.loginFormRules },
        },
        [
          _c(
            "el-form-item",
            { staticClass: "area-code-warp", attrs: { prop: "loginId" } },
            [
              _c(
                "el-input",
                {
                  staticClass: "email-code",
                  attrs: {
                    "prefix-icon": "el-icon-message",
                    size: "large",
                    placeholder: "请输入邮箱",
                  },
                  model: {
                    value: _vm.resetForm.loginId,
                    callback: function ($$v) {
                      _vm.$set(_vm.resetForm, "loginId", $$v)
                    },
                    expression: "resetForm.loginId",
                  },
                },
                [
                  _c("template", { slot: "append" }, [
                    _c(
                      "div",
                      {
                        staticClass: "area-code-container",
                        on: {
                          click: function ($event) {
                            _vm.showArea = !_vm.showArea
                          },
                        },
                      },
                      [
                        _c("div", { staticClass: "area-code-number" }, [
                          _vm._v(
                            "\n              " +
                              _vm._s(_vm.resetForm.emailSuffix) +
                              "\n            "
                          ),
                        ]),
                        _vm._v(" "),
                        _c("i", {
                          class: [
                            "el-icon-caret-bottom",
                            { reg180: _vm.showArea },
                          ],
                        }),
                      ]
                    ),
                  ]),
                ],
                2
              ),
              _vm._v(" "),
              _c("EmailIndexBar", {
                staticClass: "choose-area-content",
                attrs: { show: _vm.showArea, mailboxSuffix: _vm.mailboxSuffix },
                on: {
                  "update:show": function ($event) {
                    _vm.showArea = $event
                  },
                  chooseItem: _vm.chooseItem,
                },
              }),
            ],
            1
          ),
          _vm._v(" "),
          _c("el-form-item", { attrs: { prop: "code" } }, [
            _c(
              "div",
              { staticClass: "verify-code-warp" },
              [
                _c("el-input", {
                  staticClass: "verify-left",
                  attrs: {
                    size: "large",
                    "prefix-icon": "el-icon-key",
                    placeholder: "请输入验证码",
                  },
                  model: {
                    value: _vm.resetForm.code,
                    callback: function ($$v) {
                      _vm.$set(_vm.resetForm, "code", $$v)
                    },
                    expression: "resetForm.code",
                  },
                }),
                _vm._v(" "),
                _c(
                  "div",
                  { staticClass: "verify-code" },
                  [
                    _c(
                      "el-button",
                      {
                        attrs: {
                          type: "primary",
                          size: "large",
                          disabled: !_vm.canGetCode || _vm.isGettingCode,
                        },
                        on: {
                          click: function ($event) {
                            return _vm.getCode("resetForm")
                          },
                        },
                      },
                      [
                        _vm._v(
                          "\n            " +
                            _vm._s(
                              _vm.isGettingCode
                                ? _vm.seconds + " s"
                                : "获取验证码"
                            ) +
                            "\n          "
                        ),
                      ]
                    ),
                  ],
                  1
                ),
              ],
              1
            ),
          ]),
          _vm._v(" "),
          _c(
            "el-form-item",
            { attrs: { prop: "loginPwdOriginal" } },
            [
              _c("el-input", {
                attrs: {
                  size: "large",
                  "prefix-icon": "el-icon-lock",
                  placeholder: "请输入密码",
                  "show-password": "",
                },
                model: {
                  value: _vm.resetForm.loginPwdOriginal,
                  callback: function ($$v) {
                    _vm.$set(_vm.resetForm, "loginPwdOriginal", $$v)
                  },
                  expression: "resetForm.loginPwdOriginal",
                },
              }),
            ],
            1
          ),
        ],
        1
      ),
      _vm._v(" "),
      _c(
        "el-button",
        {
          staticClass: "login-button",
          attrs: { type: "primary", size: "large" },
          on: {
            click: function ($event) {
              return _vm.resetPassword("resetForm")
            },
          },
        },
        [_vm._v("确定修改")]
      ),
      _vm._v(" "),
      !_vm.hidenAgreement
        ? _c("CheckAgreement", {
            ref: "CheckAgreement",
            attrs: { consentCheck: _vm.consentCheck },
            on: { changeOpinion: _vm.changeOpinion },
          })
        : _vm._e(),
      _vm._v(" "),
      _c("GoBackLogin", { on: { gobackLogin: _vm.gobackLogin } }),
    ],
    1
  )
}
var resetPasswordEmailvue_type_template_id_7f44a73e_scoped_true_staticRenderFns = []
resetPasswordEmailvue_type_template_id_7f44a73e_scoped_true_render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue?vue&type=template&id=7f44a73e&scoped=true&

// EXTERNAL MODULE: ./components/lib/fireflyLogin/src/components/emailIndexBar.vue + 6 modules
var emailIndexBar = __webpack_require__(121);

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue?vue&type=script&lang=js&

 //校验规则 使用登录模块同组件



 //返回登录
/* harmony default export */ var resetPasswordEmailvue_type_script_lang_js_ = ({
  name: 'ResetPasswordEmail',
  components: {
    CheckAgreement: checkAgreement["a" /* default */], //隐私模块
    EreaIndexBar: ereaIndexBars["a" /* default */], //选择区号模块
    EmailIndexBar: emailIndexBar["a" /* default */], //邮箱下拉框
    GoBackLogin: goBackLoginButton //返回登录
  },
  props: {
    //登录loading
    loading: {
      type: Boolean,
      default: false
    },
    //同意协议
    consent: {
      type: Boolean,
      default: false
    },
    //是否隐藏协议
    hidenAgreement: {
      type: Boolean,
      default: false
    },
    //邮箱后缀
    mailboxSuffix: {
      type: Array,
      default: () => []
    }
  },
  computed: {
    // 获取验证码按钮禁止点击
    canGetCode() {
      let flag = false;
      // if (this.resetForm.loginId ?? "" !== "") {
      //   flag = true;
      // }
      if (this.resetForm.loginId != null && this.resetForm.loginId != '') {
        flag = true;
      }
      return flag;
    }
  },
  data() {
    return {
      consentCheck: this.consent, //是否同意协议
      timer: null, //定时器
      isGettingCode: false, //是否正在等待获取发送的验证码
      seconds: 60, //验证码等待倒计时
      showArea: false, // 是否打开选择邮箱后缀
      // 登录模块
      resetForm: {
        loginPwdOriginal: null, //重置密码
        loginDeviceId: null, //登录设备ID
        requestId: null, //验证码请求ID
        loginId: null, //邮箱
        emailSuffix: '@msi.com', //邮箱后缀
        code: null, //短信验证码
        fireflyType: 'ResetPasswordEmail' //登录方式
      },
      //校验规则
      loginFormRules: {
        loginId: [
          {
            required: true,
            message: '请输入验证码',
            trigger: 'change'
          }
        ],
        code: [
          {
            required: true,
            message: '请输入验证码',
            trigger: 'change'
          }
        ],
        loginPwdOriginal: [
          {
            required: true,
            message: '请输入密码'
          },
          {
            validator: (rule, value, callback) => {
              if (!Object(utils_rule["c" /* validPwd */])(value)) {
                callback(new Error('密码格式不正确'));
              } else {
                callback();
              }
            },
            trigger: 'blur'
          }
        ]
      }
    };
  },
  methods: {
    //返回登录模块
    gobackLogin() {
      this.$emit('gobackLogin');
    },
    // 点击下拉的选项的时候
    chooseItem(val) {
      console.log('click item: ', val);
      this.resetForm.emailSuffix = val.emailName;
    },
    //接受子组件的参数
    changeOpinion(value) {
      this.consentCheck = value;
    },
    //获取邮箱验证码
    getCode(formName) {
      let _this = this;
      _this.$refs[formName].validateField('loginId', data => {
        if (data == '' || data.length == 1) {
          _this.countDown();
          _this.$emit('getCode', _this.resetForm);
        }
      });
    },
    //开始倒计时
    countDown() {
      let _this = this;
      _this.clearTimer();
      // 发送验证码倒计时
      _this.isGettingCode = true;
      _this.timer = setInterval(() => {
        if (_this.seconds > 1) {
          _this.seconds--;
        } else {
          _this.isGettingCode = false;
          _this.seconds = 60;
          _this.clearTimer();
        }
      }, 1000);
    },
    // 清除定时器
    clearTimer() {
      this.isGettingCode = false;
      this.seconds = 60;
      this.timer && clearInterval(this.timer);
      this.$emit('clearTimer');
    },
    //登录校验
    resetPassword(formName) {
      let _this = this;
      _this.$refs[formName].validate(valid => {
        if (valid) {
          if (!_this.hidenAgreement) {
            _this.$refs.CheckAgreement.verify();
            console.log(_this.consentCheck, '_this.consentCheck');
            if (_this.consentCheck) {
              _this.$emit('login', _this.resetForm);
            }
          } else {
            _this.$emit('login', _this.resetForm);
          }
        }
      });
    }
  },
  beforeDestroy() {
    console.log('定时器清除');
    this.clearTimer();
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_resetPasswordEmailvue_type_script_lang_js_ = (resetPasswordEmailvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue?vue&type=style&index=0&id=7f44a73e&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue?vue&type=style&index=0&id=7f44a73e&prod&lang=scss&scoped=true&

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/resetPasswordEmail.vue






/* normalize component */

var resetPasswordEmail_component = Object(componentNormalizer["a" /* default */])(
  components_resetPasswordEmailvue_type_script_lang_js_,
  resetPasswordEmailvue_type_template_id_7f44a73e_scoped_true_render,
  resetPasswordEmailvue_type_template_id_7f44a73e_scoped_true_staticRenderFns,
  false,
  null,
  "7f44a73e",
  null
  
)

/* harmony default export */ var resetPasswordEmail = (resetPasswordEmail_component.exports);
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/checkModeReset.vue?vue&type=template&id=881e01d8&scoped=true&
var checkModeResetvue_type_template_id_881e01d8_scoped_true_render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c("div", { staticClass: "reset-password-check" }, [
    _c(
      "div",
      {
        staticClass: "reset-btn",
        class: [_vm.componentName == "ResetPasswordPhone" ? "check" : ""],
        on: {
          click: function ($event) {
            return _vm.checkComponent("ResetPasswordPhone")
          },
        },
      },
      [_vm._v("手机号")]
    ),
    _vm._v(" "),
    _c(
      "div",
      {
        staticClass: "reset-btn",
        class: [_vm.componentName == "ResetPasswordEmail" ? "check" : ""],
        on: {
          click: function ($event) {
            return _vm.checkComponent("ResetPasswordEmail")
          },
        },
      },
      [_vm._v("邮箱")]
    ),
  ])
}
var checkModeResetvue_type_template_id_881e01d8_scoped_true_staticRenderFns = []
checkModeResetvue_type_template_id_881e01d8_scoped_true_render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/checkModeReset.vue?vue&type=template&id=881e01d8&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/checkModeReset.vue?vue&type=script&lang=js&

/* harmony default export */ var checkModeResetvue_type_script_lang_js_ = ({
  name: 'CheckModeReset',
  props: ['componentName'],
  methods: {
    //修改父组件的模块参数
    checkComponent(component) {
      this.$emit('update:componentName', component);
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/checkModeReset.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_checkModeResetvue_type_script_lang_js_ = (checkModeResetvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/components/checkModeReset.vue?vue&type=style&index=0&id=881e01d8&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/checkModeReset.vue?vue&type=style&index=0&id=881e01d8&prod&lang=scss&scoped=true&

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/components/checkModeReset.vue






/* normalize component */

var checkModeReset_component = Object(componentNormalizer["a" /* default */])(
  components_checkModeResetvue_type_script_lang_js_,
  checkModeResetvue_type_template_id_881e01d8_scoped_true_render,
  checkModeResetvue_type_template_id_881e01d8_scoped_true_staticRenderFns,
  false,
  null,
  "881e01d8",
  null
  
)

/* harmony default export */ var checkModeReset = (checkModeReset_component.exports);
// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/main.vue?vue&type=script&lang=js&






/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'fireflyResetPassword',
  components: {
    LeftImage: leftImage["a" /* default */], //登录左侧图片
    LoginFooter: loginFooter["a" /* default */], //底部备案信息
    ResetPasswordPhone: resetPasswordPhone, //通过手机验证码重置
    ResetPasswordEmail: resetPasswordEmail, //通过邮箱验证码重置
    CheckModeReset: checkModeReset //通过邮箱验证码重置
  },
  props: {
    //重置方式多少种
    resetModelNum: {
      type: Number,
      default: 1
    },
    //左侧主图
    leftImg: {
      type: String,
      default: () => __webpack_require__(220)
    },
    //初始模块显示
    initialModule: {
      type: String,
      default: 'ResetPasswordPhone'
    },
    //登录loadgin
    loading: {
      type: Boolean,
      default: false
    },
    //是否隐藏协议
    hidenAgreement: {
      type: Boolean,
      default: false
    },
    //是否需要底部信息
    needFootInform: {
      type: Boolean,
      default: false
    },
    //区号下拉框
    areaCodeData: {
      type: Object,
      default: () => {}
    },
    //邮箱后缀
    mailboxSuffix: {
      type: Array,
      default: () => []
    }
  },
  watch: {
    lolginModelNum: {
      handler(newVal) {
        const lolginModelNum = ['OneModeLogin', 'TwoModeLogin', 'ThreeModeLogin'];
        this.loginNumName = lolginModelNum[newVal - 1];
      },
      immediate: true,
      deep: true
    }
  },
  data() {
    return {
      componentName: this.initialModule, //动态模块
      loginNumName: 'oneModeLogin'
    };
  },
  methods: {
    //切换重置方式
    checkComponentName(name) {
      this.componentName = name;
    },
    //统一返回登录操作
    gobackLogin() {
      this.$emit('gobackLogin');
    },
    //统一登录方法
    reset(data) {
      this.$emit('reset', data);
    },
    //统一获取手机邮箱验证码
    getCode(data) {
      this.$emit('getCode', data);
    },
    //统一清除邮箱手机定时器
    clearTimer() {
      this.$emit('clearTimer');
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/main.vue?vue&type=script&lang=js&
 /* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyResetPassword/src/main.vue?vue&type=style&index=0&id=ab7cb782&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/main.vue?vue&type=style&index=0&id=ab7cb782&prod&lang=scss&scoped=true&

// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/src/main.vue






/* normalize component */

var main_component = Object(componentNormalizer["a" /* default */])(
  src_mainvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "ab7cb782",
  null
  
)

/* harmony default export */ var main = (main_component.exports);
// CONCATENATED MODULE: ./components/lib/fireflyResetPassword/index.js


// eslint-disable-next-line func-names
main.install = function (Vue) {
    Vue.component(main.name, main)
}

/* harmony default export */ var fireflyResetPassword = __webpack_exports__["default"] = (main);

/***/ }),

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

"use strict";

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/checkAgreement.vue?vue&type=template&id=090ff4d7&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "el-form",
    {
      ref: "ruleForm",
      staticClass: "check-form-warp",
      attrs: { model: _vm.ruleForm, rules: _vm.rules },
    },
    [
      _c("el-form-item", { attrs: { prop: "checkValue" } }, [
        _c(
          "div",
          { staticClass: "check-warp" },
          [
            _c(
              "el-checkbox",
              {
                staticClass: "checkbox-agreement",
                on: { change: _vm.change },
                model: {
                  value: _vm.ruleForm.checkValue,
                  callback: function ($$v) {
                    _vm.$set(_vm.ruleForm, "checkValue", $$v)
                  },
                  expression: "ruleForm.checkValue",
                },
              },
              [_vm._v("我已阅读并同意")]
            ),
            _vm._v(" "),
            _c(
              "div",
              { staticClass: "text-warp" },
              [
                _c(
                  "el-link",
                  {
                    staticClass: "line",
                    attrs: { type: "primary" },
                    on: {
                      click: function ($event) {
                        $event.stopPropagation()
                        return _vm.open.apply(null, arguments)
                      },
                    },
                  },
                  [_vm._v("服务协议")]
                ),
                _vm._v("\n        和\n        "),
                _c(
                  "el-link",
                  { staticClass: "line", attrs: { type: "primary" } },
                  [_vm._v("隐私政策")]
                ),
              ],
              1
            ),
          ],
          1
        ),
      ]),
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/checkAgreement.vue?vue&type=template&id=090ff4d7&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/checkAgreement.vue?vue&type=script&lang=js&

/* harmony default export */ var checkAgreementvue_type_script_lang_js_ = ({
  name: 'CheckAgreement',
  props: {
    //是否同意协议
    consentCheck: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
      ruleForm: {
        checkValue: this.consentCheck
      },
      rules: {
        checkValue: [
          {
            required: true,
            message: '请阅读并同意以下条款'
          },
          {
            validator: (rule, value, callback) => {
              if (!value) {
                callback(new Error('请阅读并同意以上条款'));
              } else {
                callback();
              }
            },
            trigger: ['blur']
          }
        ]
      }
    };
  },
  methods: {
    open() {
      console.log('打开协议');
    },
    //更新参数传递给父组件
    change() {
      this.$emit('changeOpinion', this.ruleForm.checkValue);
    },
    //校验规则
    verify() {
      this.$refs.ruleForm.validate(valid => {
        if (valid) {
          return true;
        } else {
          return false;
        }
      });
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/checkAgreement.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_checkAgreementvue_type_script_lang_js_ = (checkAgreementvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/checkAgreement.vue?vue&type=style&index=0&id=090ff4d7&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/checkAgreement.vue?vue&type=style&index=0&id=090ff4d7&prod&lang=scss&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/checkAgreement.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_checkAgreementvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "090ff4d7",
  null
  
)

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

/***/ }),

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

"use strict";

// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/ereaIndexBars.vue?vue&type=template&id=bd41dcf6&scoped=true&
var render = function render() {
  var _vm = this,
    _c = _vm._self._c
  return _c(
    "div",
    {
      directives: [
        {
          name: "show",
          rawName: "v-show",
          value: _vm.show,
          expression: "show",
        },
      ],
      staticClass: "index-bar-container",
      on: {
        click: function ($event) {
          $event.stopPropagation()
        },
      },
    },
    [
      _c(
        "div",
        { staticClass: "index-bar-content" },
        [
          _c(
            "el-scrollbar",
            { ref: "scrollbar", staticStyle: { height: "100%" } },
            _vm._l(_vm.indexData, function (area, key) {
              return _c(
                "div",
                {
                  key: key,
                  ref: "listGroup",
                  refInFor: true,
                  staticClass: "main-list",
                  attrs: { id: key },
                },
                [
                  _c("div", { staticClass: "title-key" }, [
                    _vm._v(_vm._s(key == "#" ? "选择国家或地区" : key)),
                  ]),
                  _vm._v(" "),
                  _c(
                    "div",
                    { staticClass: "content-container" },
                    _vm._l(area, function (val, index) {
                      return _c(
                        "div",
                        {
                          key: index,
                          class: [
                            "content-item",
                            { "active-item": val.name == _vm.currentAreaCode },
                          ],
                          on: {
                            click: function ($event) {
                              return _vm.chooseAreaItem(val)
                            },
                          },
                        },
                        [
                          _c("div", { staticClass: "text-content" }, [
                            _vm._v(_vm._s(val.areaCode)),
                          ]),
                          _vm._v(" "),
                          _c("span", { staticClass: "area-content" }, [
                            _vm._v(_vm._s(val[_vm.name])),
                          ]),
                        ]
                      )
                    }),
                    0
                  ),
                ]
              )
            }),
            0
          ),
          _vm._v(" "),
          _c(
            "ul",
            { staticClass: "char-list" },
            [
              _vm.totalPage > 1
                ? _c("li", { on: { click: _vm.handlePreviousPage } }, [
                    _c("i", { staticClass: "iconfont iconshang" }),
                  ])
                : _vm._e(),
              _vm._v(" "),
              _vm._l(_vm.indexList, function (item) {
                return _c(
                  "li",
                  {
                    key: item.id,
                    class: { active: _vm.currentIndex === item.id },
                    on: {
                      click: function ($event) {
                        return _vm.scrollToLetter(item)
                      },
                    },
                  },
                  [_vm._v("\n        " + _vm._s(item.key) + "\n      ")]
                )
              }),
              _vm._v(" "),
              _vm.totalPage > 1
                ? _c("li", { on: { click: _vm.handleNextPage } }, [
                    _c("i", { staticClass: "iconfont iconxia" }),
                  ])
                : _vm._e(),
            ],
            2
          ),
          _vm._v(" "),
          _vm.charList.length <= 0
            ? _c("div", { staticClass: "no-data" }, [_vm._v("暂无数据")])
            : _vm._e(),
        ],
        1
      ),
    ]
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/ereaIndexBars.vue?vue&type=template&id=bd41dcf6&scoped=true&

// CONCATENATED MODULE: ./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/ereaIndexBars.vue?vue&type=script&lang=js&

/* harmony default export */ var ereaIndexBarsvue_type_script_lang_js_ = ({
  name: 'EreaIndexBar',
  props: {
    show: {
      type: Boolean,
      default: false
    },
    currentAreaCode: {
      type: [Number, String],
      default: ''
    },
    name: {
      type: String,
      default: 'name'
    },
    indexData: {
      type: Object,
      default: () => {
        return {};
      }
    }
  },
  data() {
    return {
      charList: [],
      listHeight: [],
      currentIndex: 0,
      indexPage: 1,
      indexLimit: 26
    };
  },

  watch: {
    show(newV, oldV) {
      const keys = Object.keys(this.indexData);
      this.charList = keys.map((key, index) => {
        return {
          id: index,
          key
        };
      });
      if (newV) {
        this.$nextTick(() => {
          this._calculateHeight();
          this.handleScroll();
        });
      }
    }
  },

  computed: {
    totalPage() {
      return Math.ceil(this.charList.length / this.indexLimit);
    },
    indexList() {
      return this.charList.slice((this.indexPage - 1) * this.indexLimit, this.indexPage * this.indexLimit);
    }
  },

  methods: {
    _calculateHeight() {
      this.listHeight = [];
      this.$nextTick(() => {
        const list = this.$refs.listGroup;
        let height = 0;
        this.listHeight.push(height);
        if (list) {
          for (let i = 0; i < list.length; i++) {
            let item = list[i];
            height += item.clientHeight;
            this.listHeight.push(height);
          }
        }
      });
    },
    scrollToLetter(item) {
      let scrollEle = this.$refs.scrollbar.wrap;
      scrollEle.scrollTop = this.listHeight[item.id];
      // let element = document.querySelector(`#${item.key}`)
      // console.log(element, "element")
      // element.scrollIntoView({
      //   behavior: "smooth"
      // })
    },
    handleScroll() {
      let scrollEle = this.$refs.scrollbar.wrap;
      scrollEle.onscroll = () => {
        let newY = scrollEle.scrollTop;
        const listHeight = this.listHeight;
        // 在中间部分滚动
        for (let i = 0; i < listHeight.length - 1; i++) {
          let height1 = listHeight[i];
          let height2 = listHeight[i + 1];
          if (height1 <= newY && newY < height2) {
            this.currentIndex = i;
            // console.log(this.currentIndex, "currentIndex")
            let currentPage = Math.floor(i / this.indexLimit) + 1;
            this.indexPage = currentPage;
            return;
          }
        }
      };
    },
    handleNextPage() {
      if (this.indexPage < this.totalPage) {
        this.indexPage++;
      }
    },
    handlePreviousPage() {
      if (this.indexPage > 1) {
        this.indexPage--;
      }
    },

    chooseAreaItem(val) {
      this.$emit('chooseItem', val);
    }
  }
});

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/ereaIndexBars.vue?vue&type=script&lang=js&
 /* harmony default export */ var components_ereaIndexBarsvue_type_script_lang_js_ = (ereaIndexBarsvue_type_script_lang_js_); 
// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/lib??vue-loader-options!./components/lib/fireflyLogin/src/components/ereaIndexBars.vue?vue&type=style&index=0&id=bd41dcf6&prod&lang=scss&scoped=true&
// extracted by mini-css-extract-plugin

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/ereaIndexBars.vue?vue&type=style&index=0&id=bd41dcf6&prod&lang=scss&scoped=true&

// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
var componentNormalizer = __webpack_require__(0);

// CONCATENATED MODULE: ./components/lib/fireflyLogin/src/components/ereaIndexBars.vue






/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  components_ereaIndexBarsvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  "bd41dcf6",
  null
  
)

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

/***/ })

/******/ })["default"];
});