"use strict";
/*
 * 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([[280],{

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

eval("__webpack_require__.r(__webpack_exports__);\n// extracted by mini-css-extract-plugin\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\"faceContainer\":\"Face_faceContainer_plaI\",\"videoContainer\":\"Face_videoContainer_32JH\",\"video\":\"Face_video_17p-\",\"videoBox\":\"Face_videoBox_13rW\",\"scanningLine\":\"Face_scanningLine_g9t-\",\"ani-scanning\":\"Face_ani-scanning_3zbg\",\"failure\":\"Face_failure_3JAR\",\"show\":\"Face_show_2fhT\",\"scanningContainer\":\"Face_scanningContainer_3z-i\",\"scanning\":\"Face_scanning_zjy5\",\"reScanning\":\"Face_reScanning_-Dyl\",\"btn\":\"Face_btn_2VTE\",\"pulse\":\"Face_pulse_1-cB\",\"warn\":\"Face_warn_3ci0\",\"pulse1\":\"Face_pulse1_1EW9\",\"pulse2\":\"Face_pulse2_17nZ\",\"btnTime\":\"Face_btnTime_2ehB\"});\n\n//# sourceURL=webpack://kd-login/./src/page/web/Face.less?");

/***/ }),

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

eval("__webpack_require__.r(__webpack_exports__);\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 webcamjs__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! webcamjs */ \"../../node_modules/webcamjs/webcam.js\");\n/* harmony import */ var webcamjs__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(webcamjs__WEBPACK_IMPORTED_MODULE_20__);\n/* harmony import */ var _Face_less__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./Face.less */ \"./src/page/web/Face.less\");\n/* harmony import */ var _common_AiLoginWrapper__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./common/AiLoginWrapper */ \"./src/page/web/common/AiLoginWrapper.jsx\");\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 _const__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! @/const.js */ \"./src/const.js\");\n/* harmony import */ var _i18n_intlApi__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../../i18n/intlApi */ \"./src/i18n/intlApi.js\");\n/* harmony import */ var _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! @/util/toolUtils.js */ \"./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 _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); }\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; }\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\nvar Face = /*#__PURE__*/function (_Component) {\n  _inherits(Face, _Component);\n  function Face(props) {\n    var _this;\n    _classCallCheck(this, Face);\n    _this = _callSuper(this, Face, [props]);\n    _this.state = {\n      resetTime: 60,\n      loginStatus: ''\n    };\n    _this.videoId = '#myCamera';\n    _this.token = (0,_util__WEBPACK_IMPORTED_MODULE_24__.getUid)(false, 32);\n    _this.onAnalysis = _this.onAnalysis.bind(_assertThisInitialized(_this));\n    _this.onAnalysisFailed = _this.onAnalysisFailed.bind(_assertThisInitialized(_this));\n    _this.checkLoginState = _this.checkLoginState.bind(_assertThisInitialized(_this));\n    _this.showSuccess = _this.showSuccess.bind(_assertThisInitialized(_this));\n    _this.handleClick = _this.handleClick.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n  _createClass(Face, [{\n    key: \"componentDidMount\",\n    value: function componentDidMount() {\n      var _this2 = this;\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().attach(this.videoId);\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().on('live', function () {\n        _this2.setState({\n          loginStatus: _const__WEBPACK_IMPORTED_MODULE_25__.LOGINING\n        });\n        _this2.onAnalysis();\n      });\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().on('error', function (error) {\n        // 监听error，否则默认会有弹框\n        console.log(error);\n      });\n    }\n  }, {\n    key: \"componentWillUnmount\",\n    value: function componentWillUnmount() {\n      clearTimeout(this.faceAnalyseTimer);\n      clearTimeout(this.loginStateTimer);\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().reset();\n    }\n  }, {\n    key: \"onAnalysis\",\n    value: function onAnalysis() {\n      var resetTime = this.state.resetTime - 1;\n      if (resetTime <= 0) {\n        this.onAnalysisFailed();\n      } else {\n        this.setState({\n          resetTime: resetTime\n        });\n        this.faceDetection();\n        this.faceAnalyseTimer = setTimeout(this.onAnalysis, 1000);\n      }\n    }\n  }, {\n    key: \"onAnalysisFailed\",\n    value: function onAnalysisFailed() {\n      clearTimeout(this.faceAnalyseTimer);\n      clearTimeout(this.loginStateTimer);\n      this.setState({\n        loginStatus: _const__WEBPACK_IMPORTED_MODULE_25__.FAILURE\n      });\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().reset();\n    }\n  }, {\n    key: \"faceDetection\",\n    value: function faceDetection() {\n      var _this3 = this;\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().snap(function (dataUri) {\n        // snap方法获取快照\n        _api_service__WEBPACK_IMPORTED_MODULE_23__.faceDetection({\n          token: _this3.token,\n          img: dataUri\n        }).then(function (data) {\n          if (data.success) {\n            _this3.checkLoginState();\n          }\n        });\n      });\n    }\n  }, {\n    key: \"checkLoginState\",\n    value: function checkLoginState() {\n      var _this4 = this;\n      var resetTime = this.state.resetTime;\n      _api_service__WEBPACK_IMPORTED_MODULE_23__.checkLoginState({\n        token: this.token,\n        pollType: 'face'\n      }).then(function (data) {\n        if (data.status === 1) {\n          webcamjs__WEBPACK_IMPORTED_MODULE_20___default().reset();\n          _this4.showSuccess(data);\n        } else {\n          if (resetTime > 0) {\n            _this4.loginStateTimer = setTimeout(_this4.checkLoginState, 1000);\n          }\n        }\n      })[\"catch\"](function (e) {\n        _this4.loginStateTimer = setTimeout(_this4.checkLoginState, 1000);\n      });\n    }\n  }, {\n    key: \"showSuccess\",\n    value: function showSuccess(data) {\n      clearTimeout(this.faceAnalyseTimer);\n      clearTimeout(this.loginStateTimer);\n      this.setState({\n        loginStatus: _const__WEBPACK_IMPORTED_MODULE_25__.SUCCESS\n      });\n      _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_27__.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_27__.getNameWithCurrentEnvrionment)(_const__WEBPACK_IMPORTED_MODULE_25__.LOGIN_USERINFO);\n      _util_toolUtils_js__WEBPACK_IMPORTED_MODULE_27__.myLocalStorage.setItem(userInfoKey, JSON.stringify(userinfo));\n      setTimeout(function () {\n        window.location.href = data.URL;\n        // alert('刷脸登录成功！')\n      }, 1500);\n    }\n  }, {\n    key: \"handleClick\",\n    value: function handleClick() {\n      this.setState({\n        resetTime: 60,\n        loginStatus: ''\n      });\n      webcamjs__WEBPACK_IMPORTED_MODULE_20___default().attach(this.videoId);\n    }\n  }, {\n    key: \"render\",\n    value: function render() {\n      var _this$state = this.state,\n        resetTime = _this$state.resetTime,\n        loginStatus = _this$state.loginStatus;\n      var scanningLineClass = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty(_defineProperty({}, _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].scanningLine, true), _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].show, Number(loginStatus) === _const__WEBPACK_IMPORTED_MODULE_25__.LOGINING));\n      var failureClass = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty(_defineProperty({}, _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].failure, true), _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].show, Number(loginStatus) === _const__WEBPACK_IMPORTED_MODULE_25__.FAILURE));\n      var scanningClass = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty(_defineProperty({}, _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].scanning, true), _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].show, Number(loginStatus) === _const__WEBPACK_IMPORTED_MODULE_25__.LOGINING));\n      var reScanningClass = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty(_defineProperty({}, _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].reScanning, true), _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].show, Number(loginStatus) === _const__WEBPACK_IMPORTED_MODULE_25__.FAILURE));\n      var pulse1Class = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty(_defineProperty({}, _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].pulse, true), _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].pulse1, true));\n      var pulse2Class = classnames__WEBPACK_IMPORTED_MODULE_19___default()(_defineProperty(_defineProperty({}, _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].pulse, true), _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].pulse2, true));\n      return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(_common_AiLoginWrapper__WEBPACK_IMPORTED_MODULE_22__[\"default\"], _extends({\n        selectType: \"face\",\n        loginStatus: loginStatus\n      }, this.props), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].faceContainer\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].videoContainer\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].video,\n        id: \"myCamera\"\n      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].videoBox\n      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: scanningLineClass\n      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: failureClass\n      }, (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_26__.getLangMsg)('login.key017'))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].scanningContainer\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: scanningClass\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].btn\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].btnTime\n      }, resetTime), \"s\"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].pulse\n      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: pulse1Class\n      }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: pulse2Class\n      })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: reScanningClass\n      }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_18__.createElement(\"div\", {\n        className: _Face_less__WEBPACK_IMPORTED_MODULE_21__[\"default\"].btn,\n        onClick: this.handleClick\n      }, (0,_i18n_intlApi__WEBPACK_IMPORTED_MODULE_26__.getLangMsg)('login.key019'))))));\n    }\n  }]);\n  return Face;\n}(react__WEBPACK_IMPORTED_MODULE_18__.Component);\n/* harmony default export */ __webpack_exports__[\"default\"] = (Face);\n\n//# sourceURL=webpack://kd-login/./src/page/web/Face.jsx?");

/***/ })

}]);