(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[81],{

/***/ "./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/Login.vue?vue&type=script&lang=js&":
/*!************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/main/user/Login.vue?vue&type=script&lang=js& ***!
  \************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js */ \"./node_modules/@babel/runtime/helpers/esm/objectSpread2.js\");\n/* harmony import */ var C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __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_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.string.trim.js */ \"./node_modules/core-js/modules/es.string.trim.js\");\n/* harmony import */ var core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_trim_js__WEBPACK_IMPORTED_MODULE_4__);\n/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__ = __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_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _components_singles_BForm_component_vue__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @/components/singles/BForm/component.vue */ \"./src/components/singles/BForm/component.vue\");\n/* harmony import */ var _utils_auth__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @/utils/auth */ \"./src/utils/auth.js\");\n/* harmony import */ var _utils_app__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! @/utils/app */ \"./src/utils/app.js\");\n/* harmony import */ var _utils_fingerprint__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @/utils/fingerprint */ \"./src/utils/fingerprint.js\");\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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  components: {\n    BForm: _components_singles_BForm_component_vue__WEBPACK_IMPORTED_MODULE_6__[\"default\"]\n  },\n  props: {\n    value: Boolean,\n    email: String\n  },\n  data: function data() {\n    return {\n      isLoading: false,\n      fingerprint: null,\n      form: {\n        valid: false,\n        inputs: [{\n          focus: true,\n          icon: \"mdi-email\",\n          name: \"username\",\n          placeholder: \"Email\",\n          type: \"email\",\n          validation: \"\",\n          value: this.email || \"\"\n        }, {\n          icon: \"mdi-lock\",\n          name: \"password\",\n          placeholder: \"Password\",\n          type: \"password\",\n          validation: \"\",\n          value: \"\"\n        }]\n      }\n    };\n  },\n  computed: {\n    hasEmailAndPassword: function hasEmailAndPassword() {\n      return this.form.inputs.every(function (x) {\n        return x.value;\n      });\n    },\n    ready: function ready() {\n      return this.$store.state.settings.server && this.fingerprint;\n    }\n  },\n  mounted: function mounted() {\n    var _this = this;\n    return Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {\n      return regeneratorRuntime.wrap(function _callee2$(_context2) {\n        while (1) switch (_context2.prev = _context2.next) {\n          case 0:\n            _this.isLoading = true;\n            _this.$nextTick( /*#__PURE__*/Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n              return regeneratorRuntime.wrap(function _callee$(_context) {\n                while (1) switch (_context.prev = _context.next) {\n                  case 0:\n                    _context.next = 2;\n                    return _utils_fingerprint__WEBPACK_IMPORTED_MODULE_9__[\"default\"].get(true);\n                  case 2:\n                    _this.fingerprint = _context.sent;\n                  case 3:\n                  case \"end\":\n                    return _context.stop();\n                }\n              }, _callee);\n            })));\n            if (_this.$store.state.auth.success) {\n              Object(_utils_auth__WEBPACK_IMPORTED_MODULE_7__[\"reroute\"])();\n            }\n            _this.isLoading = false;\n          case 4:\n          case \"end\":\n            return _context2.stop();\n        }\n      }, _callee2);\n    }))();\n  },\n  methods: {\n    login: function login() {\n      var _this2 = this;\n      return Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {\n        var res;\n        return regeneratorRuntime.wrap(function _callee3$(_context3) {\n          while (1) switch (_context3.prev = _context3.next) {\n            case 0:\n              if (!(!_this2.form.valid || !_this2.hasEmailAndPassword)) {\n                _context3.next = 2;\n                break;\n              }\n              return _context3.abrupt(\"return\");\n            case 2:\n              _this2.isLoading = true;\n              _context3.prev = 3;\n              _context3.next = 6;\n              return _this2.$helpers.postApi(\"login\", {\n                username: _this2.form.inputs[0].value.toLowerCase().trim(),\n                password: _this2.form.inputs[1].value,\n                fp: _this2.fingerprint\n              }, {\n                skipDataObject: true,\n                skipAuth: true,\n                fullDataObject: true\n              });\n            case 6:\n              res = _context3.sent;\n              if (res.status === 201) {\n                _this2.$emit(\"complete\", Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])(Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, res.data), {}, {\n                  fingerprint: _this2.fingerprint,\n                  mail: _this2.form.inputs[0].value.toLowerCase()\n                }));\n                _this2.$emit(\"action\", \"twoFa\");\n              } else _this2.loginSuccessful(res.data);\n              _context3.next = 13;\n              break;\n            case 10:\n              _context3.prev = 10;\n              _context3.t0 = _context3[\"catch\"](3);\n              _this2.loginError(_context3.t0);\n            case 13:\n            case \"end\":\n              return _context3.stop();\n          }\n        }, _callee3, null, [[3, 10]]);\n      }))();\n    },\n    loginSuccessful: function loginSuccessful(user) {\n      var _this3 = this;\n      return Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {\n        return regeneratorRuntime.wrap(function _callee4$(_context4) {\n          while (1) switch (_context4.prev = _context4.next) {\n            case 0:\n              _context4.prev = 0;\n              Object(_utils_auth__WEBPACK_IMPORTED_MODULE_7__[\"setAuth\"])(user);\n              _this3.$helpers.notify(\"<span>Welcome!</span>\", \"\", \"success\");\n              _context4.next = 5;\n              return Object(_utils_app__WEBPACK_IMPORTED_MODULE_8__[\"loadSettings\"])();\n            case 5:\n              Object(_utils_auth__WEBPACK_IMPORTED_MODULE_7__[\"reroute\"])();\n              _this3.isLoading = false;\n              _context4.next = 12;\n              break;\n            case 9:\n              _context4.prev = 9;\n              _context4.t0 = _context4[\"catch\"](0);\n              console.error(_context4.t0);\n            case 12:\n            case \"end\":\n              return _context4.stop();\n          }\n        }, _callee4, null, [[0, 9]]);\n      }))();\n    },\n    loginError: function loginError(err) {\n      if (err.response && err.response.data) {\n        var data = err.response.data;\n        this.isLoading = false;\n        this.form.inputs[1].value = \"\";\n        this.form.inputs[1].valid = false;\n        if (data.countLeft) {\n          this.$helpers.notify(\"Incorrect email or password\", \"\".concat(data.countLeft, \" more \").concat(data.countLeft > 1 ? \"tries\" : \"try\", \"  until locked out.\"), \"warning\");\n        } else {\n          this.$helpers.notify(\"Locked out\", \"You have to reset your password to be able to sign in again.\", \"danger\", -1);\n        }\n      }\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/user/Login.vue?./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"7d40fa80-vue-loader-template\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/Login.vue?vue&type=template&id=49d2d28a&":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7d40fa80-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/main/user/Login.vue?vue&type=template&id=49d2d28a& ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return render; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return staticRenderFns; });\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\n  return _c(\"div\", { staticClass: \"card\" }, [\n    _vm._m(0),\n    _c(\"div\", { staticClass: \"card-content\" }, [\n      _c(\n        \"form\",\n        {\n          on: {\n            submit: function($event) {\n              $event.stopPropagation()\n              $event.preventDefault()\n              return _vm.login()\n            }\n          }\n        },\n        [\n          _c(\"BForm\", {\n            attrs: { elements: _vm.form, mode: \"lazy\" },\n            on: {\n              valid: function($event) {\n                _vm.form.valid = $event\n              },\n              submit: function($event) {\n                return _vm.login()\n              }\n            }\n          }),\n          _c(\"section\", { staticClass: \"footer-container\" }, [\n            _c(\n              \"button\",\n              {\n                staticClass: \"button is-primary\",\n                class: { \"is-loading\": _vm.isLoading || !_vm.ready },\n                attrs: {\n                  disabled:\n                    _vm.isLoading ||\n                    !_vm.hasEmailAndPassword ||\n                    !_vm.form.valid ||\n                    !_vm.ready,\n                  type: \"submit\"\n                }\n              },\n              [_vm._v(\" Sign in \")]\n            )\n          ])\n        ],\n        1\n      ),\n      _vm.ready\n        ? _c(\"section\", { staticClass: \"buttons-section\" }, [\n            _vm.$store.state.settings.server &&\n            _vm.$store.state.settings.server.resetPasswordEnabled\n              ? _c(\n                  \"button\",\n                  {\n                    staticClass: \"simple-button\",\n                    attrs: { type: \"button\" },\n                    on: {\n                      click: function($event) {\n                        return _vm.$emit(\"action\", \"reset\")\n                      }\n                    }\n                  },\n                  [_vm._v(\" Reset password \")]\n                )\n              : _vm._e(),\n            _vm.$store.state.settings.server &&\n            _vm.$store.state.settings.server.publicSignupEnabled\n              ? _c(\n                  \"button\",\n                  {\n                    staticClass: \"simple-button is-fullwidth\",\n                    attrs: { type: \"button\" },\n                    on: {\n                      click: function($event) {\n                        return _vm.$emit(\"action\", \"signup\")\n                      }\n                    }\n                  },\n                  [_vm._v(\" Sign up \")]\n                )\n              : _vm._e()\n          ])\n        : _vm._e()\n    ])\n  ])\n}\nvar staticRenderFns = [\n  function() {\n    var _vm = this\n    var _h = _vm.$createElement\n    var _c = _vm._self._c || _h\n    return _c(\"div\", { staticClass: \"card-header\" }, [\n      _c(\"span\", { staticClass: \"card-header-title\" }, [_vm._v(\"Sign in\")])\n    ])\n  }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/user/Login.vue?./node_modules/cache-loader/dist/cjs.js?%7B%22cacheDirectory%22:%22node_modules/.cache/vue-loader%22,%22cacheIdentifier%22:%227d40fa80-vue-loader-template%22%7D!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./src/components/main/user/Login.vue":
/*!********************************************!*\
  !*** ./src/components/main/user/Login.vue ***!
  \********************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Login_vue_vue_type_template_id_49d2d28a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Login.vue?vue&type=template&id=49d2d28a& */ \"./src/components/main/user/Login.vue?vue&type=template&id=49d2d28a&\");\n/* harmony import */ var _Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Login.vue?vue&type=script&lang=js& */ \"./src/components/main/user/Login.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__[\"default\"])(\n  _Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _Login_vue_vue_type_template_id_49d2d28a___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _Login_vue_vue_type_template_id_49d2d28a___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n  false,\n  null,\n  null,\n  null\n  \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/components/main/user/Login.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/main/user/Login.vue?");

/***/ }),

/***/ "./src/components/main/user/Login.vue?vue&type=script&lang=js&":
/*!*********************************************************************!*\
  !*** ./src/components/main/user/Login.vue?vue&type=script&lang=js& ***!
  \*********************************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../../node_modules/babel-loader/lib!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Login.vue?vue&type=script&lang=js& */ \"./node_modules/cache-loader/dist/cjs.js?!./node_modules/babel-loader/lib/index.js!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/Login.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__[\"default\"] = (_node_modules_cache_loader_dist_cjs_js_ref_12_0_node_modules_babel_loader_lib_index_js_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/components/main/user/Login.vue?");

/***/ }),

/***/ "./src/components/main/user/Login.vue?vue&type=template&id=49d2d28a&":
/*!***************************************************************************!*\
  !*** ./src/components/main/user/Login.vue?vue&type=template&id=49d2d28a& ***!
  \***************************************************************************/
/*! exports provided: render, staticRenderFns */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_7d40fa80_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_template_id_49d2d28a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/cache-loader/dist/cjs.js?{\"cacheDirectory\":\"node_modules/.cache/vue-loader\",\"cacheIdentifier\":\"7d40fa80-vue-loader-template\"}!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Login.vue?vue&type=template&id=49d2d28a& */ \"./node_modules/cache-loader/dist/cjs.js?{\\\"cacheDirectory\\\":\\\"node_modules/.cache/vue-loader\\\",\\\"cacheIdentifier\\\":\\\"7d40fa80-vue-loader-template\\\"}!./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/Login.vue?vue&type=template&id=49d2d28a&\");\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"render\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_7d40fa80_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_template_id_49d2d28a___WEBPACK_IMPORTED_MODULE_0__[\"render\"]; });\n\n/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, \"staticRenderFns\", function() { return _node_modules_cache_loader_dist_cjs_js_cacheDirectory_node_modules_cache_vue_loader_cacheIdentifier_7d40fa80_vue_loader_template_node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_template_id_49d2d28a___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/user/Login.vue?");

/***/ }),

/***/ "./src/utils/fingerprint.js":
/*!**********************************!*\
  !*** ./src/utils/fingerprint.js ***!
  \**********************************/
/*! exports provided: get, default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"get\", function() { return get; });\n/* harmony import */ var C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js */ \"./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! regenerator-runtime/runtime.js */ \"./node_modules/regenerator-runtime/runtime.js\");\n/* harmony import */ var regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(regenerator_runtime_runtime_js__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __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_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.join.js */ \"./node_modules/core-js/modules/es.array.join.js\");\n/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_3__);\n/* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__ = __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_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_4__);\n\n\n\n\n\nfunction init() {\n  return new Promise(function (resolve, reject) {\n    try {\n      var script = document.getElementById(\"fp\");\n      if (!script) {\n        script = document.createElement(\"script\");\n        script.setAttribute(\"src\", \"/fp.js\");\n        script.setAttribute(\"id\", \"fp\");\n        document.head.appendChild(script);\n        script.onload = /*#__PURE__*/Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n          return regeneratorRuntime.wrap(function _callee$(_context) {\n            while (1) switch (_context.prev = _context.next) {\n              case 0:\n                resolve();\n              case 1:\n              case \"end\":\n                return _context.stop();\n            }\n          }, _callee);\n        }));\n      } else resolve();\n    } catch (err) {\n      reject(err);\n    }\n  });\n}\nfunction waitForIdle() {\n  return new Promise(function (resolve) {\n    if (window.requestIdleCallback) {\n      requestIdleCallback(function () {\n        resolve();\n      });\n    } else {\n      setTimeout(function () {\n        resolve();\n      }, 500);\n    }\n  });\n}\nfunction get(_x) {\n  return _get.apply(this, arguments);\n}\nfunction _get() {\n  _get = Object(C_code_deployify_mdc_site_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_0__[\"default\"])( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(waitForReady) {\n    var components;\n    return regeneratorRuntime.wrap(function _callee2$(_context2) {\n      while (1) switch (_context2.prev = _context2.next) {\n        case 0:\n          _context2.prev = 0;\n          _context2.next = 3;\n          return init();\n        case 3:\n          if (!waitForReady) {\n            _context2.next = 6;\n            break;\n          }\n          _context2.next = 6;\n          return waitForIdle();\n        case 6:\n          _context2.next = 8;\n          return FP.getPromise({\n            excludes: {\n              adBlock: true,\n              webgl: false,\n              enumerateDevices: true\n            }\n          });\n        case 8:\n          components = _context2.sent;\n          return _context2.abrupt(\"return\", FP.x64hash128(components.map(function (component) {\n            return component.value;\n          }).join(\"\")));\n        case 12:\n          _context2.prev = 12;\n          _context2.t0 = _context2[\"catch\"](0);\n          console.log(_context2.t0);\n          throw _context2.t0;\n        case 16:\n        case \"end\":\n          return _context2.stop();\n      }\n    }, _callee2, null, [[0, 12]]);\n  }));\n  return _get.apply(this, arguments);\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  get: get\n});\n\n//# sourceURL=webpack:///./src/utils/fingerprint.js?");

/***/ })

}]);