/*
 * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
 * This devtool is neither made for production nor for readable output files.
 * It uses "eval()" calls to create a separate source file in the browser devtools.
 * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
 * or disable the default devtool with "devtool: false".
 * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
 */
(self["webpackChunkkd_login"] = self["webpackChunkkd_login"] || []).push([[496],{

/***/ "./src/page/web/Demo.less":
/*!********************************!*\
  !*** ./src/page/web/Demo.less ***!
  \********************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"formContainer\":\"Demo_formContainer_2x3J\",\"title\":\"Demo_title_oEXa\",\"content\":\"Demo_content_35Bg\",\"dropdownList\":\"Demo_dropdownList_3fNo\",\"roleSelect\":\"Demo_roleSelect_35-o\",\"text\":\"Demo_text_1YGH\",\"off\":\"Demo_off_n4Ux\",\"on\":\"Demo_on_1YdO\",\"panel\":\"Demo_panel_2eVB\",\"item\":\"Demo_item_38nW\",\"selected\":\"Demo_selected_fuCP\",\"hidden\":\"Demo_hidden_2LWf\",\"backLogin\":\"Demo_backLogin_lFWH\",\"hyperlink\":\"Demo_hyperlink_2GQX\",\"publicQrcode\":\"Demo_publicQrcode_1DT1\",\"msg\":\"Demo_msg_ElUQ\"});\n\n//# sourceURL=webpack://kd-login/./src/page/web/Demo.less?");

/***/ }),

/***/ "./src/page/web/Demo.jsx":
/*!*******************************!*\
  !*** ./src/page/web/Demo.jsx ***!
  \*******************************/
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */   Form: function() { return /* binding */ Form; },\n/* harmony export */   PublicQrcode: function() { return /* binding */ PublicQrcode; },\n/* harmony export */   RoleSelect: function() { return /* binding */ RoleSelect; },\n/* harmony export */   \"default\": function() { return /* binding */ Demo; },\n/* harmony export */   getRoleData: function() { return /* binding */ getRoleData; }\n/* harmony export */ });\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ \"../../node_modules/core-js/modules/es.symbol.js\");\n/* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! core-js/modules/es.symbol.description.js */ \"../../node_modules/core-js/modules/es.symbol.description.js\");\n/* harmony import */ var core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_description_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.symbol.iterator.js */ \"../../node_modules/core-js/modules/es.symbol.iterator.js\");\n/* harmony import */ var core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_iterator_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.symbol.to-primitive.js */ \"../../node_modules/core-js/modules/es.symbol.to-primitive.js\");\n/* harmony import */ var core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_to_primitive_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ \"../../node_modules/core-js/modules/es.array.concat.js\");\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.array.find.js */ \"../../node_modules/core-js/modules/es.array.find.js\");\n/* harmony import */ var core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_find_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.from.js */ \"../../node_modules/core-js/modules/es.array.from.js\");\n/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.array.index-of.js */ \"../../node_modules/core-js/modules/es.array.index-of.js\");\n/* harmony import */ var core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_index_of_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.array.is-array.js */ \"../../node_modules/core-js/modules/es.array.is-array.js\");\n/* harmony import */ var core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_is_array_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.array.iterator.js */ \"../../node_modules/core-js/modules/es.array.iterator.js\");\n/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ \"../../node_modules/core-js/modules/es.array.map.js\");\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.array.slice.js */ \"../../node_modules/core-js/modules/es.array.slice.js\");\n/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.array.some.js */ \"../../node_modules/core-js/modules/es.array.some.js\");\n/* harmony import */ var core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_some_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! core-js/modules/es.date.to-primitive.js */ \"../../node_modules/core-js/modules/es.date.to-primitive.js\");\n/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.date.to-string.js */ \"../../node_modules/core-js/modules/es.date.to-string.js\");\n/* harmony import */ var core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_string_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! core-js/modules/es.function.bind.js */ \"../../node_modules/core-js/modules/es.function.bind.js\");\n/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! core-js/modules/es.function.name.js */ \"../../node_modules/core-js/modules/es.function.name.js\");\n/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/es.number.constructor.js */ \"../../node_modules/core-js/modules/es.number.constructor.js\");\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! core-js/modules/es.object.assign.js */ \"../../node_modules/core-js/modules/es.object.assign.js\");\n/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_18__);\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! core-js/modules/es.object.define-property.js */ \"../../node_modules/core-js/modules/es.object.define-property.js\");\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ \"../../node_modules/core-js/modules/es.object.to-string.js\");\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! core-js/modules/es.regexp.exec.js */ \"../../node_modules/core-js/modules/es.regexp.exec.js\");\n/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_21__);\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! core-js/modules/es.regexp.to-string.js */ \"../../node_modules/core-js/modules/es.regexp.to-string.js\");\n/* harmony import */ var core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_to_string_js__WEBPACK_IMPORTED_MODULE_22__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! core-js/modules/es.string.iterator.js */ \"../../node_modules/core-js/modules/es.string.iterator.js\");\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_23__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! core-js/modules/web.dom-collections.iterator.js */ \"../../node_modules/core-js/modules/web.dom-collections.iterator.js\");\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_24__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! react-dom */ \"../../node_modules/react-dom/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_27___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_27__);\n/* harmony import */ var _common_LoginWrapper__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./common/LoginWrapper */ \"./src/page/web/common/LoginWrapper.jsx\");\n/* harmony import */ var _Demo_less__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./Demo.less */ \"./src/page/web/Demo.less\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./base */ \"./src/page/web/base/index.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../../store */ \"./src/store.js\");\n/* harmony import */ var _api_service__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../../api/service */ \"./src/api/service.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../../util */ \"./src/util/index.js\");\n/* harmony import */ var _util_encrypt_js__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! @/util/encrypt.js */ \"./src/util/encrypt.js\");\n/* harmony import */ var _i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../../i18n/intlApi */ \"./src/i18n/intlApi.js\");\n/* harmony import */ var _const__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! @/const.js */ \"./src/const.js\");\n/* harmony import */ var _util_dataUtil__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../../util/dataUtil */ \"./src/util/dataUtil.js\");\n/* harmony import */ var _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../../util/toolUtils */ \"./src/util/toolUtils.js\");\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\nfunction _toPropertyKey(t) { var i = _toPrimitive(t, \"string\"); return \"symbol\" == _typeof(i) ? i : String(i); }\nfunction _toPrimitive(t, r) { if (\"object\" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || \"default\"); if (\"object\" != _typeof(i)) return i; throw new TypeError(\"@@toPrimitive must return a primitive value.\"); } return (\"string\" === r ? String : Number)(t); }\nfunction _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }\nfunction _nonIterableSpread() { throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _iterableToArray(iter) { if (typeof Symbol !== \"undefined\" && iter[Symbol.iterator] != null || iter[\"@@iterator\"] != null) return Array.from(iter); }\nfunction _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\nfunction _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\n\n\n\n\n\n\n\n\n// import eventBus from '../../eventBus'\n\n\n\n\n\n\n\nfunction Demo(props) {\n  (0,react__WEBPACK_IMPORTED_MODULE_25__.useEffect)(function () {\n    // eventBus.pub_focusInput({ name: 'yzjAccount' })\n    props.dataPipeModel && props.dataPipeModel.sendData({\n      type: 'FocusInput',\n      name: 'yzjAccount'\n    });\n  }, []);\n  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(_common_LoginWrapper__WEBPACK_IMPORTED_MODULE_28__[\"default\"], _extends({\n    selectType: \"demo\"\n  }, props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].formContainer\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(_base__WEBPACK_IMPORTED_MODULE_30__.Notification, {\n    dataPipeModel: props.dataPipeModel\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(Form, props)));\n}\nvar getRoleData = function getRoleData() {\n  var num = '1729999999';\n  return [{\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key068'),\n    value: 'administrator'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key069'),\n    value: num + '9'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key070'),\n    value: num + '4'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key071'),\n    value: num + '1'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key072') + '1',\n    value: num + '8'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key072') + '2',\n    value: num + '7'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key072') + '3',\n    value: num + '6'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key073'),\n    value: num + '5'\n  }, {\n    text: (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key074'),\n    value: '172999999' + '86'\n  }];\n};\nfunction Form(props) {\n  var _useState = (0,react__WEBPACK_IMPORTED_MODULE_25__.useState)(false),\n    _useState2 = _slicedToArray(_useState, 2),\n    isLogining = _useState2[0],\n    setLogining = _useState2[1];\n  var _useState3 = (0,react__WEBPACK_IMPORTED_MODULE_25__.useState)([]),\n    _useState4 = _slicedToArray(_useState3, 2),\n    list = _useState4[0],\n    setList = _useState4[1];\n  var _useState5 = (0,react__WEBPACK_IMPORTED_MODULE_25__.useState)('17299999999'),\n    _useState6 = _slicedToArray(_useState5, 2),\n    currentRole = _useState6[0],\n    setCurrentRole = _useState6[1];\n  (0,react__WEBPACK_IMPORTED_MODULE_25__.useEffect)(function () {\n    var handleEnterKeyDown = function handleEnterKeyDown(e) {\n      if (e.keyCode === 13) {\n        loginBtnClcik();\n      }\n    };\n    document.addEventListener('keydown', handleEnterKeyDown);\n    return function () {\n      document.removeEventListener('keydown', handleEnterKeyDown);\n    };\n  }, []);\n  var validateFormData = function validateFormData() {\n    var yzjAccount = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].yzjAccount,\n      yzjPwd = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].yzjPwd;\n    if (_util__WEBPACK_IMPORTED_MODULE_33__.validate.isEmpty(yzjAccount)) {\n      var title = 'yzjAccountError';\n      var data = (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key079');\n      // eventBus.pub('login', title, data)\n      props.dataPipeModel && props.dataPipeModel.sendData({\n        type: title,\n        data: data\n      });\n      return false;\n    } else if (_util__WEBPACK_IMPORTED_MODULE_33__.validate.isEmpty(yzjPwd)) {\n      var _title = 'yzjPwdError';\n      var _data = (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key080');\n      // eventBus.pub('login', title, data)\n      props.dataPipeModel && props.dataPipeModel.sendData({\n        type: _title,\n        data: _data\n      });\n      return false;\n    }\n    return true;\n  };\n  var loginBtnClcik = function loginBtnClcik() {\n    if (isLogining) return false;\n    if (!validateFormData()) return false;\n    setLogining(true);\n    getPublicKey(submit);\n  };\n  var getPublicKey = function getPublicKey(call) {\n    var accessKey = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].yzjAccount + (0,_util__WEBPACK_IMPORTED_MODULE_33__.getUid)(false, 16 - _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].yzjAccount.length);\n    _api_service__WEBPACK_IMPORTED_MODULE_32__.getPublicKey({\n      accessKey: accessKey,\n      language: _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].lang,\n      accountId: _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].accountId\n    }).then(function (data) {\n      if (data.success !== true) {\n        var error = {\n          message: data.errorMessage,\n          level: 1\n        };\n        // eventBus.pub_showNotification(error)\n        props.dataPipeModel && props.dataPipeModel.sendData({\n          type: 'ShowNotification',\n          error: error\n        });\n        return false;\n      }\n      call({\n        publicKey: data.publicKey,\n        accessKey: accessKey\n      });\n    })[\"catch\"](function (err) {\n      console.log(err);\n      setLogining(false);\n    });\n  };\n  var submit = function submit(data) {\n    var yzjAccount = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].yzjAccount,\n      yzjPwd = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].yzjPwd,\n      accountId = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].accountId,\n      lang = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].lang,\n      role = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].role;\n    var accessKey = data.accessKey,\n      publicKey = data.publicKey;\n    var currentItem = _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].dataCenter.find(function (item, i) {\n      if (item.value === accountId) {\n        return true;\n      }\n    });\n    var enPassword;\n    if (currentItem && currentItem.closeEncrypt) {\n      enPassword = yzjPwd;\n    } else {\n      enPassword = (0,_util_encrypt_js__WEBPACK_IMPORTED_MODULE_34__.encrypt)(publicKey, yzjPwd);\n    }\n    _api_service__WEBPACK_IMPORTED_MODULE_32__.demoSubmit({\n      type: 'user',\n      useraccount: yzjAccount,\n      accessKey: accessKey,\n      password: enPassword,\n      accountId: accountId,\n      language: lang,\n      userSourceType: 3,\n      role: role\n    }).then(function (data) {\n      var errorcode = data.errorcode,\n        needChangePwd = data.needChangePwd,\n        needActive = data.needActive,\n        needChangeInitialPwd = data.needChangeInitialPwd,\n        message = data.message,\n        description = data.description;\n      if (needActive) {\n        window.location.hash = '#activeUser';\n        return;\n      }\n      if (needChangePwd === 1 || needChangeInitialPwd === 1) {\n        window.location.hash = '#findPassword';\n        var error = {\n          level: 2,\n          message: message\n        };\n        // eventBus.pub_showNotification ({ level: 2, message: message })\n        props.dataPipeModel && props.dataPipeModel.sendData({\n          type: 'ShowNotification',\n          error: error\n        });\n        // eventBus.pub_focusInput({ name: 'verifyCode' })\n        props.dataPipeModel && props.dataPipeModel.sendData({\n          type: 'FocusInput',\n          name: 'verifyCode'\n        });\n        return false;\n      }\n      if (errorcode !== 0) {\n        var _error = {\n          level: 1,\n          message: description || data.description_cn\n        };\n        // eventBus.pub_showNotification ({ level: 1, message: description || data.description_cn })\n        props.dataPipeModel && props.dataPipeModel.sendData({\n          type: 'ShowNotification',\n          error: _error\n        });\n        setLogining(false);\n        return false;\n      }\n      _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__.mySessionStorage.setItem(_const__WEBPACK_IMPORTED_MODULE_36__.ACCOUNT, yzjAccount);\n      _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__.myLocalStorage.setItem('ierp-login-username', data.username);\n      var userinfo = {\n        username: data.username || '',\n        avatar: data.avatar || ''\n      };\n      var userInfoKey = (0,_util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__.getNameWithCurrentEnvrionment)(_const__WEBPACK_IMPORTED_MODULE_36__.LOGIN_USERINFO);\n      _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__.myLocalStorage.setItem(userInfoKey, JSON.stringify(userinfo));\n      var langParam = \"language=\".concat(lang);\n      var url = data.RedirectURL;\n      if (url.indexOf('?') !== -1) {\n        url += '&' + langParam;\n      } else {\n        url += '?' + langParam;\n      }\n      (0,_util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__.redirectByUrl)(url, '', _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].dataCenter, accountId);\n    })[\"catch\"](function (err) {\n      console.log(err);\n      setLogining(false);\n    });\n  };\n  var showDropdownList = function showDropdownList(_ref) {\n    var data = _ref.data;\n    var isLoad = list.some(function (item) {\n      return item.value === data.value;\n    });\n    if (isLoad) return;\n    setList(function (list) {\n      var newList = [].concat(_toConsumableArray(list), [data]);\n      return newList;\n    });\n  };\n  var _useState7 = (0,react__WEBPACK_IMPORTED_MODULE_25__.useState)(true),\n    _useState8 = _slicedToArray(_useState7, 2),\n    isQRCode = _useState8[0],\n    setIsQRCode = _useState8[1];\n  var handleLoginTypeClick = function handleLoginTypeClick() {\n    setIsQRCode(!isQRCode);\n  };\n  var changeCurrentRole = function changeCurrentRole(Role) {\n    setCurrentRole(Role);\n  };\n  (0,react__WEBPACK_IMPORTED_MODULE_25__.useEffect)(function () {\n    if (!props.dataCenter.length > 0) return;\n    var key = 'demoDataCenterList';\n    var types = [0, 6, 4, 5, 2, 7];\n    var dataPipeModel = props.dataPipeModel,\n      dataCenter = props.dataCenter;\n    dataPipeModel.registerCallback(key, showDropdownList);\n    (0,_util_dataUtil__WEBPACK_IMPORTED_MODULE_37__.filterDataCenter)(key, dataCenter, types, dataPipeModel);\n  }, [props.dataCenter]);\n  var currentAccountId = props.currentAccountId,\n    handleChangeDataCenter = props.handleChangeDataCenter;\n  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].content\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(_base__WEBPACK_IMPORTED_MODULE_30__.DropdownList, {\n    name: \"accountId\",\n    style: _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].dropdownList,\n    list: list,\n    oldDataCenter: props.dataCenter,\n    selectItem: currentAccountId,\n    onItemClick: handleChangeDataCenter,\n    dataPipeModel: props.dataPipeModel\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(PublicQrcode, {\n    currentAccountId: currentAccountId,\n    dataPipeModel: props.dataPipeModel,\n    currentRole: currentRole\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(RoleSelect, {\n    name: \"role\",\n    list: getRoleData(),\n    setCurrentRole: changeCurrentRole,\n    currentRole: currentRole\n  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].msg\n  }, (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_35__.getLangMsg)('login.key235')));\n}\nfunction PublicQrcode(props) {\n  var currentAccountId = props.currentAccountId,\n    dataPipeModel = props.dataPipeModel,\n    currentRole = props.currentRole;\n  var _useState9 = (0,react__WEBPACK_IMPORTED_MODULE_25__.useState)(),\n    _useState10 = _slicedToArray(_useState9, 2),\n    qrCodeUrl = _useState10[0],\n    setQrCodeUrl = _useState10[1];\n  (0,react__WEBPACK_IMPORTED_MODULE_25__.useEffect)(function () {\n    loadYzjQrcode();\n  }, [currentAccountId, currentRole]);\n  var loadYzjQrcode = function loadYzjQrcode() {\n    var token = (0,_util__WEBPACK_IMPORTED_MODULE_33__.getUid)(false, 15);\n    var redirect = (0,_util_toolUtils_js__WEBPACK_IMPORTED_MODULE_38__.getRealRedirect)();\n    var data = {\n      accountId: currentAccountId,\n      token: token,\n      language: _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].lang,\n      scantype: 'demo',\n      QRcodeRedirect: redirect,\n      role: currentRole\n    };\n    _api_service__WEBPACK_IMPORTED_MODULE_32__.getDemoQrcode(data).then(function (data) {\n      if (data && data.errorcode) {\n        var error = {\n          message: data.description || data.description_cn,\n          level: data.level || 1,\n          time: data.time\n        };\n        dataPipeModel.sendData({\n          type: 'ShowNotification',\n          error: error\n        });\n      }\n      setQrCodeUrl(data.redirectUrl);\n    });\n  };\n  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].publicQrcode\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"iframe\", {\n    src: qrCodeUrl,\n    frameBorder: \"0\",\n    scrolling: \"no\"\n  }));\n}\nfunction RoleSelect(props) {\n  var _useState11 = (0,react__WEBPACK_IMPORTED_MODULE_25__.useState)(false),\n    _useState12 = _slicedToArray(_useState11, 2),\n    panelVisible = _useState12[0],\n    setPanelVisible = _useState12[1];\n  var roleSelectEl = (0,react__WEBPACK_IMPORTED_MODULE_25__.useRef)(null);\n  var currentRole = props.currentRole,\n    setCurrentRole = props.setCurrentRole;\n  var handleClickOutside = function handleClickOutside(e) {\n    // if (!panelVisible) return\n    var target = e.target;\n    while (target && target !== document) {\n      if (target === react_dom__WEBPACK_IMPORTED_MODULE_26__.findDOMNode(roleSelectEl.current)) {\n        return;\n      }\n      target = target.parentNode;\n    }\n    if (!target) return;\n    setPanelVisible(false);\n  };\n  (0,react__WEBPACK_IMPORTED_MODULE_25__.useEffect)(function () {\n    _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].setValue('role', '17299999999');\n    document.addEventListener('click', handleClickOutside);\n    return function () {\n      return document.removeEventListener('click', handleClickOutside);\n    };\n  }, []);\n  var list = props.list;\n  var itemClick = function itemClick(e) {\n    var target = e.target;\n    var value = target.getAttribute('value');\n    setPanelVisible(false);\n    _store__WEBPACK_IMPORTED_MODULE_31__[\"default\"].setValue('role', value);\n    setCurrentRole(value);\n  };\n  var alist = list.map(function (item) {\n    var itemClass = classnames__WEBPACK_IMPORTED_MODULE_27___default()(_defineProperty(_defineProperty({}, _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].item, true), _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].selected, item.value === currentRole));\n    return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n      key: item.value,\n      value: item.value,\n      className: itemClass,\n      onClick: itemClick\n    }, item.text);\n  });\n  var textClass = classnames__WEBPACK_IMPORTED_MODULE_27___default()(_defineProperty(_defineProperty(_defineProperty({}, _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].text, true), _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].off, !panelVisible), _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].on, panelVisible));\n  var panelClass = classnames__WEBPACK_IMPORTED_MODULE_27___default()(_defineProperty(_defineProperty({}, _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].panel, true), _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].hidden, !panelVisible));\n  var textClick = function textClick(e) {\n    setPanelVisible(!panelVisible);\n  };\n  var role = list.find(function (item) {\n    return item.value === currentRole;\n  });\n  var text = role && role.text;\n  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: _Demo_less__WEBPACK_IMPORTED_MODULE_29__[\"default\"].roleSelect,\n    ref: roleSelectEl\n  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: textClass,\n    onClick: textClick\n  }, text), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_25__.createElement(\"div\", {\n    className: panelClass\n  }, alist));\n}\n\n//# sourceURL=webpack://kd-login/./src/page/web/Demo.jsx?");

/***/ }),

/***/ "?2e65":
/*!************************!*\
  !*** buffer (ignored) ***!
  \************************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/buffer_(ignored)?");

/***/ }),

/***/ "?0749":
/*!************************!*\
  !*** crypto (ignored) ***!
  \************************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/crypto_(ignored)?");

/***/ }),

/***/ "?ff61":
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/util_(ignored)?");

/***/ }),

/***/ "?ec48":
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/util_(ignored)?");

/***/ }),

/***/ "?d5c0":
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/util_(ignored)?");

/***/ }),

/***/ "?4a48":
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/util_(ignored)?");

/***/ }),

/***/ "?3a9c":
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/util_(ignored)?");

/***/ }),

/***/ "?d4df":
/*!**********************!*\
  !*** util (ignored) ***!
  \**********************/
/***/ (function() {

eval("/* (ignored) */\n\n//# sourceURL=webpack://kd-login/util_(ignored)?");

/***/ })

}]);