/*
 * 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([[904],{

/***/ "./src/page/web/CloudHub.jsx":
/*!***********************************!*\
  !*** ./src/page/web/CloudHub.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 */   PrivateQrcode: function() { return /* binding */ PrivateQrcode; },\n/* harmony export */   PublicQrcode: function() { return /* binding */ PublicQrcode; }\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_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_date_to_primitive_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_6__ = __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_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_bind_js__WEBPACK_IMPORTED_MODULE_6__);\n/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7__ = __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_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__ = __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_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_assign_js__WEBPACK_IMPORTED_MODULE_8__);\n/* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/es.object.create.js */ \"../../node_modules/core-js/modules/es.object.create.js\");\n/* harmony import */ var core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_create_js__WEBPACK_IMPORTED_MODULE_9__);\n/* harmony import */ var core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_10__ = __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_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_define_property_js__WEBPACK_IMPORTED_MODULE_10__);\n/* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! core-js/modules/es.object.get-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.get-prototype-of.js\");\n/* harmony import */ var core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_prototype_of_js__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! core-js/modules/es.object.set-prototype-of.js */ \"../../node_modules/core-js/modules/es.object.set-prototype-of.js\");\n/* harmony import */ var core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_set_prototype_of_js__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_13__ = __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_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_13__);\n/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! core-js/modules/es.reflect.construct.js */ \"../../node_modules/core-js/modules/es.reflect.construct.js\");\n/* harmony import */ var core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_reflect_construct_js__WEBPACK_IMPORTED_MODULE_14__);\n/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __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_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16__ = __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_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_16__);\n/* harmony import */ var core_js_modules_web_timers_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! core-js/modules/web.timers.js */ \"../../node_modules/core-js/modules/web.timers.js\");\n/* harmony import */ var core_js_modules_web_timers_js__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_timers_js__WEBPACK_IMPORTED_MODULE_17__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! classnames */ \"../../node_modules/classnames/index.js\");\n/* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_19__);\n/* harmony import */ var _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./CloudHub.less */ \"./src/page/web/CloudHub.less\");\n/* harmony import */ var _common_LoginWrapper__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./common/LoginWrapper */ \"./src/page/web/common/LoginWrapper.jsx\");\n/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./base */ \"./src/page/web/base/index.js\");\n/* harmony import */ var _api_service__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../../api/service */ \"./src/api/service.js\");\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../../util */ \"./src/util/index.js\");\n/* harmony import */ var _i18n_intlApi__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../../i18n/intlApi */ \"./src/i18n/intlApi.js\");\n/* harmony import */ var _util_dataUtil__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../util/dataUtil */ \"./src/util/dataUtil.js\");\n/* harmony import */ var _store__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../../store */ \"./src/store.js\");\n/* harmony import */ var _base_Notification__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./base/Notification */ \"./src/page/web/base/Notification.jsx\");\n/* harmony import */ var _util_toolUtils__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! @/util/toolUtils.js */ \"./src/util/toolUtils.js\");\n/* harmony import */ var _const__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../../const */ \"./src/const.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 _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\n\n\n\n\n\n\n\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, \"prototype\", { writable: false }); return Constructor; }\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 _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } else if (call !== void 0) { throw new TypeError(\"Derived constructors may only return object or undefined\"); } return _assertThisInitialized(self); }\nfunction _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, \"prototype\", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar CloudHub = /*#__PURE__*/function (_Component) {\n  _inherits(CloudHub, _Component);\n  function CloudHub(props) {\n    var _this;\n    _classCallCheck(this, CloudHub);\n    _this = _callSuper(this, CloudHub, [props]);\n    _this.state = {\n      list: []\n    };\n    _this.handleChangeDataCenter = _this.handleChangeDataCenter.bind(_assertThisInitialized(_this));\n    _this.showDropdownList = _this.showDropdownList.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(CloudHub, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var dataCenter = this.props.dataCenter;\n      if (dataCenter.length !== 0) {\n        this.ListenerFilterDataCenter(dataCenter);\n      }\n    }\n  }, {\n    key: \"componentWillMount\",\n    value: function componentWillMount() {\n      var accountId = this.props.currentAccountId;\n      this.props.handleChangeDataCenter(accountId);\n    }\n  }, {\n    key: \"shouldComponentUpdate\",\n    value: function shouldComponentUpdate(nextProps, nextState) {\n      if (nextProps.dataCenter.length !== 0 && this.props.dataCenter.length === 0) {\n        this.ListenerFilterDataCenter(nextProps.dataCenter);\n      }\n      return true;\n    }\n  }, {\n    key: \"ListenerFilterDataCenter\",\n    value: function ListenerFilterDataCenter(dataCenter) {\n      var key = 'cloudHubDataCenterList';\n      var types = [0, 1];\n      var dataPipeModel = this.props.dataPipeModel;\n      dataPipeModel && dataPipeModel.registerCallback(key, this.showDropdownList);\n      (0,_util_dataUtil__WEBPACK_IMPORTED_MODULE_26__.filterDataCenter)(key, dataCenter, types, dataPipeModel);\n    }\n  }, {\n    key: \"showDropdownList\",\n    value: function showDropdownList(_ref) {\n      var data = _ref.data;\n      var list = this.state.list;\n      list.push(data);\n      this.setState({\n        list: list\n      });\n    }\n  }, {\n    key: \"handleChangeDataCenter\",\n    value: function handleChangeDataCenter(key) {\n      _store__WEBPACK_IMPORTED_MODULE_27__[\"default\"].setValue('toggleDataCenter', true);\n      this.props.handleChangeDataCenter(key);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$props = this.props,\n        currentAccountId = _this$props.currentAccountId,\n        dataPipeModel = _this$props.dataPipeModel;\n      var loginType = _util_toolUtils__WEBPACK_IMPORTED_MODULE_29__.myLocalStorage.getItem((0,_util_toolUtils__WEBPACK_IMPORTED_MODULE_29__.getNameWithCurrentEnvrionment)(_const__WEBPACK_IMPORTED_MODULE_30__.LOGIN_TYPE));\n      var text = loginType === _const__WEBPACK_IMPORTED_MODULE_30__.TEL ? \"<\".concat((0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_25__.getLangMsg)('login.key218')) : \"<\".concat((0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_25__.getLangMsg)('login.key217'));\n      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(_common_LoginWrapper__WEBPACK_IMPORTED_MODULE_21__[\"default\"], _extends({\n        selectType: \"cloudHub\"\n      }, this.props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].formContainer\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].content\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(_base_Notification__WEBPACK_IMPORTED_MODULE_28__[\"default\"], {\n        dataPipeModel: dataPipeModel\n      }), this.state.list && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(_base__WEBPACK_IMPORTED_MODULE_22__.DropdownList, {\n        name: \"accountId\",\n        list: this.state.list,\n        dataPipeModel: dataPipeModel,\n        selectItem: currentAccountId,\n        style: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].dropdownList,\n        onItemClick: this.handleChangeDataCenter\n      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(PublicQrcode, {\n        currentAccountId: currentAccountId,\n        dataPipeModel: dataPipeModel\n      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].backLogin\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"a\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].hyperlink,\n        href: \"#kingdeeCloud\"\n      }, text, \" \"))));\n    }\n  }]);\n  return CloudHub;\n}(react__WEBPACK_IMPORTED_MODULE_18__.Component);\nvar PublicQrcode = /*#__PURE__*/function (_Component2) {\n  _inherits(PublicQrcode, _Component2);\n  function PublicQrcode(props) {\n    var _this2;\n    _classCallCheck(this, PublicQrcode);\n    _this2 = _callSuper(this, PublicQrcode, [props]);\n    _this2.state = {\n      qrCodeUrl: ''\n    };\n    return _this2;\n  }\n  _createClass(PublicQrcode, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.loadYzjQrcode();\n    }\n  }, {\n    key: \"componentWillUpdate\",\n    value: function componentWillUpdate(nextProps) {\n      var props = this.props;\n      if (props.currentAccountId !== nextProps.currentAccountId) {\n        this.loadYzjQrcode(nextProps.currentAccountId);\n      }\n    }\n  }, {\n    key: \"loadYzjQrcode\",\n    value: function loadYzjQrcode(currentAccountId) {\n      var _this3 = this;\n      var token = (0,_util__WEBPACK_IMPORTED_MODULE_24__.getUid)(false, 15);\n      var redirect = (0,_util_toolUtils__WEBPACK_IMPORTED_MODULE_29__.getRealRedirect)();\n      var data = {\n        accountId: currentAccountId || this.props.currentAccountId,\n        token: token,\n        language: _store__WEBPACK_IMPORTED_MODULE_27__[\"default\"].lang,\n        scantype: 'cloudHub',\n        QRcodeRedirect: redirect\n      };\n      _api_service__WEBPACK_IMPORTED_MODULE_23__.getYzjQrcode(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          _this3.props.dataPipeModel && _this3.props.dataPipeModel.sendData({\n            type: 'ShowNotification',\n            error: error\n          });\n        }\n        _this3.setState({\n          qrCodeUrl: data.redirectUrl\n        });\n      });\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].publicQrcode\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"iframe\", {\n        src: this.state.qrCodeUrl,\n        frameBorder: \"0\",\n        scrolling: \"no\"\n      }));\n    }\n  }]);\n  return PublicQrcode;\n}(react__WEBPACK_IMPORTED_MODULE_18__.Component);\nvar PrivateQrcode = /*#__PURE__*/function (_Component3) {\n  _inherits(PrivateQrcode, _Component3);\n  function PrivateQrcode(props) {\n    var _this4;\n    _classCallCheck(this, PrivateQrcode);\n    _this4 = _callSuper(this, PrivateQrcode, [props]);\n    _this4.state = {\n      qrCodeUrl: '',\n      overTime: false\n    };\n    _this4.loadYzjQrcode = _this4.loadYzjQrcode.bind(_assertThisInitialized(_this4));\n    _this4.handleReloadClick = _this4.handleReloadClick.bind(_assertThisInitialized(_this4));\n    return _this4;\n  }\n  _createClass(PrivateQrcode, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      this.loadYzjQrcode();\n    }\n  }, {\n    key: \"componentWillUpdate\",\n    value: function componentWillUpdate(nextProps) {\n      var props = this.props;\n      if (props.currentAccountId !== nextProps.currentAccountId) {\n        this.loadYzjQrcode();\n      }\n    }\n  }, {\n    key: \"loadYzjQrcode\",\n    value: function loadYzjQrcode() {\n      var _this5 = this;\n      _api_service__WEBPACK_IMPORTED_MODULE_23__.getYzjQrcodePrivate({\n        language: _store__WEBPACK_IMPORTED_MODULE_27__[\"default\"].lang\n      }).then(function (data) {\n        if (!data.success) return false;\n        var _data$data = data.data,\n          interval = _data$data.interval,\n          url = _data$data.url;\n        _this5.setState({\n          qrCodeUrl: url,\n          overTime: false\n        });\n        _this5.overTimer = setTimeout(function () {\n          _this5.setState({\n            overTime: true\n          });\n        }, interval * 1000);\n      });\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      clearTimeout(this.overTimer);\n    }\n  }, {\n    key: \"handleReloadClick\",\n    value: function handleReloadClick() {\n      this.loadYzjQrcode();\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$state = this.state,\n        qrCodeUrl = _this$state.qrCodeUrl,\n        overTime = _this$state.overTime;\n      var imgBoxClass = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty({}, _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].imgBox, qrCodeUrl !== ''));\n      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].privateQrcode\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: imgBoxClass\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"img\", {\n        src: qrCodeUrl\n      })), overTime && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _CloudHub_less__WEBPACK_IMPORTED_MODULE_20__[\"default\"].reload,\n        onClick: this.handleReloadClick\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", null, (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_25__.getLangMsg)('login.key015')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", null, (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_25__.getLangMsg)('login.key016'))));\n    }\n  }]);\n  return PrivateQrcode;\n}(react__WEBPACK_IMPORTED_MODULE_18__.Component);\n/* harmony default export */ __webpack_exports__[\"default\"] = (CloudHub);\n\n//# sourceURL=webpack://kd-login/./src/page/web/CloudHub.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)?");

/***/ })

}]);