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

/***/ "./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/ApiKeys.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/ApiKeys.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 _utils_http__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/http */ \"./src/utils/http.js\");\n/* harmony import */ var _utils_date__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/date */ \"./src/utils/date.js\");\n/* harmony import */ var _utils_document__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/document */ \"./src/utils/document.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//\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    Modal: () => __webpack_require__.e(/*! import() */ 2).then(__webpack_require__.bind(null, /*! @/components/main/Modal.vue */ \"./src/components/main/Modal.vue\")),\n    Confirm: () => __webpack_require__.e(/*! import() */ 10).then(__webpack_require__.bind(null, /*! @/components/main/Confirm.vue */ \"./src/components/main/Confirm.vue\")),\n    EditSingleField: () => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(1), __webpack_require__.e(7)]).then(__webpack_require__.bind(null, /*! @/components/singles/EditSingleField/component.vue */ \"./src/components/singles/EditSingleField/component.vue\"))\n  },\n  data() {\n    return {\n      apiKeys: [],\n      isLoading: false,\n      keyToShow: null,\n      keyToDelete: null,\n      keyToEdit: null\n    };\n  },\n  created() {\n    this.getApiKeys();\n  },\n  methods: {\n    getUrl() {\n      return `${location.protocol}//${this.$store.state.settings.server.baseApi}`;\n    },\n    async saveKeyName(apiKey, newName) {\n      await Object(_utils_http__WEBPACK_IMPORTED_MODULE_0__[\"postApi\"])(\"set/userApiKeyName\", {\n        uid: apiKey.uid,\n        name: newName\n      });\n      apiKey.name = newName;\n      this.keyToEdit = null;\n    },\n    async addKey() {\n      this.isLoading = true;\n      await Object(_utils_http__WEBPACK_IMPORTED_MODULE_0__[\"postApi\"])(\"create/userApiKey\");\n      await this.getApiKeys();\n      this.isLoading = false;\n    },\n    copyToClipboard(elementId) {\n      Object(_utils_document__WEBPACK_IMPORTED_MODULE_2__[\"copyToClipboard\"])(elementId);\n      this.$helpers.notify(\"Copied\", \"Copied API key to clipboard.\", \"info\", 6000);\n    },\n    getDate(date) {\n      return Object(_utils_date__WEBPACK_IMPORTED_MODULE_1__[\"toReadable\"])(date);\n    },\n    async getApiKeys() {\n      try {\n        this.isLoading = true;\n        const data = await Object(_utils_http__WEBPACK_IMPORTED_MODULE_0__[\"postApi\"])(\"get/userApiKeys\", {});\n        this.apiKeys = data;\n        this.isLoading = false;\n      } catch (e) {\n        this.$helpers.notify(\"Error\", \"Could not get API keys.\", \"danger\");\n      }\n    },\n    async deleteKey(apiKey) {\n      await Object(_utils_http__WEBPACK_IMPORTED_MODULE_0__[\"postApi\"])(\"delete/userApiKey\", {\n        uid: apiKey.uid\n      });\n      await this.getApiKeys();\n      this.keyToDelete = null;\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.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/ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true&":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true& ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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(\n    \"div\",\n    [\n      _vm.keyToShow\n        ? _c(\n            \"Modal\",\n            {\n              attrs: {\n                value: _vm.keyToShow !== null,\n                title: \"API example (\" + _vm.keyToShow.name + \")\"\n              },\n              on: {\n                hide: function($event) {\n                  _vm.keyToShow = null\n                }\n              }\n            },\n            [\n              _c(\"template\", { staticClass: \"content\", slot: \"body\" }, [\n                _c(\"p\", [\n                  _vm._v(\n                    \" Here is an example of how to get all domains in PowerShell and parsing the result into PS objects. \"\n                  )\n                ]),\n                _c(\"pre\", { staticClass: \"is-primary is-size-7\" }, [\n                  _vm._v(\"$data = (Invoke-WebRequest -uri \"),\n                  _c(\"b\", { staticClass: \"has-text-info\" }, [\n                    _vm._v(\n                      _vm._s(_vm.getUrl(_vm.keyToShow)) + \"/secure/domains\"\n                    )\n                  ]),\n                  _vm._v(\" -headers @{ '\"),\n                  _c(\"b\", { staticClass: \"has-text-primary\" }, [\n                    _vm._v(\"x-api-key\")\n                  ]),\n                  _vm._v(\"'='\"),\n                  _c(\"b\", { staticClass: \"has-text-primary\" }, [\n                    _vm._v(_vm._s(_vm.keyToShow.value))\n                  ]),\n                  _vm._v(\"';}).content | convertfrom-json\")\n                ]),\n                _c(\"p\", { staticClass: \"mt-5\" }, [\n                  _vm._v(\" Print the result with: \")\n                ]),\n                _c(\"pre\", [_vm._v(\"echo $data\")]),\n                _c(\"p\", { staticClass: \"mt-5\" }, [\n                  _vm._v(\n                    \" We can also iterate through these objects and print only domain UIDs if we want to. \"\n                  )\n                ]),\n                _c(\"pre\", { staticClass: \"is-primary is-size-7\" }, [\n                  _vm._v(\"$data | foreach{$_.uid}\")\n                ])\n              ])\n            ],\n            2\n          )\n        : _vm._e(),\n      _vm.keyToDelete !== null\n        ? _c(\n            \"Confirm\",\n            {\n              attrs: { value: !!_vm.keyToDelete },\n              on: {\n                hide: function($event) {\n                  _vm.keyToDelete = null\n                },\n                confirmed: function($event) {\n                  return _vm.deleteKey(_vm.keyToDelete)\n                }\n              }\n            },\n            [\n              _vm._v(\n                \" You are about to delete an API key (\" +\n                  _vm._s(_vm.keyToDelete.name) +\n                  \"). No requests with this key can be made when it's deleted. \"\n              )\n            ]\n          )\n        : _vm._e(),\n      _c(\"div\", { staticClass: \"table-container\" }, [\n        _vm.isLoading\n          ? _c(\"div\", { staticClass: \"center\" }, [\n              _c(\"span\", { staticClass: \"spinner\" })\n            ])\n          : !_vm.apiKeys || _vm.apiKeys.length === 0\n          ? _c(\"i\", [_vm._v(\"No API keys.\")])\n          : _c(\"table\", { staticClass: \"table is-fullwidth is-narrow\" }, [\n              _vm._m(0),\n              _c(\n                \"tbody\",\n                _vm._l(_vm.apiKeys, function(apiKey) {\n                  return _c(\"tr\", { key: apiKey.uid }, [\n                    _c(\n                      \"td\",\n                      { staticClass: \"is-clickable\" },\n                      [\n                        !_vm.keyToEdit || apiKey.uid !== _vm.keyToEdit.uid\n                          ? _c(\n                              \"span\",\n                              {\n                                on: {\n                                  click: function($event) {\n                                    $event.stopPropagation()\n                                    _vm.keyToEdit = apiKey\n                                  }\n                                }\n                              },\n                              [_vm._v(_vm._s(apiKey.name))]\n                            )\n                          : _c(\"EditSingleField\", {\n                              attrs: {\n                                text: _vm.keyToEdit.name,\n                                validation: \"required\",\n                                type: \"text\",\n                                name: \"name\"\n                              },\n                              on: {\n                                save: function($event) {\n                                  return _vm.saveKeyName(_vm.keyToEdit, $event)\n                                },\n                                cancel: function($event) {\n                                  _vm.keyToEdit = null\n                                }\n                              }\n                            })\n                      ],\n                      1\n                    ),\n                    _c(\"td\", [\n                      _c(\n                        \"button\",\n                        {\n                          staticClass: \"button is-small smaller is-info mr-2\",\n                          on: {\n                            click: function($event) {\n                              return _vm.copyToClipboard(apiKey.uid)\n                            }\n                          }\n                        },\n                        [_vm._v(\" Copy to clipboard \")]\n                      ),\n                      _c(\n                        \"button\",\n                        {\n                          staticClass: \"button is-small smaller\",\n                          on: {\n                            click: function($event) {\n                              _vm.keyToShow = apiKey\n                            }\n                          }\n                        },\n                        [_vm._v(\" Show example \")]\n                      ),\n                      _c(\n                        \"span\",\n                        {\n                          staticStyle: { \"font-size\": \"0px\" },\n                          attrs: { id: apiKey.uid }\n                        },\n                        [_vm._v(_vm._s(apiKey.value))]\n                      )\n                    ]),\n                    _c(\"td\", [_vm._v(_vm._s(_vm.getDate(apiKey.createdAt)))]),\n                    _c(\"td\", [\n                      !apiKey.accessedAt\n                        ? _c(\"span\", [_c(\"i\", [_vm._v(\"Never been used\")])])\n                        : _c(\"span\", [\n                            _vm._v(\n                              \" \" + _vm._s(_vm.getDate(apiKey.accessedAt)) + \" \"\n                            )\n                          ])\n                    ]),\n                    _c(\"td\", [\n                      _c(\n                        \"button\",\n                        {\n                          staticClass: \"button is-small smaller is-danger\",\n                          on: {\n                            click: function($event) {\n                              _vm.keyToDelete = apiKey\n                            }\n                          }\n                        },\n                        [_vm._v(\" Delete \")]\n                      )\n                    ])\n                  ])\n                }),\n                0\n              )\n            ])\n      ]),\n      _c(\n        \"button\",\n        {\n          staticClass: \"button is-primary is-small\",\n          on: {\n            click: function($event) {\n              return _vm.addKey()\n            }\n          }\n        },\n        [_vm._v(\" Add key \")]\n      )\n    ],\n    1\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(\"thead\", [\n      _c(\"tr\", { staticClass: \"is-unselectable\" }, [\n        _c(\"th\", [_vm._v(\"Name\")]),\n        _c(\"th\", [_vm._v(\"Key\")]),\n        _c(\"th\", [_vm._v(\"Created at\")]),\n        _c(\"th\", [_vm._v(\"Last usage\")]),\n        _c(\"th\", [_vm._v(\"Action\")])\n      ])\n    ])\n  }\n]\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.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");

/***/ }),

/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css&":
/*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css& ***!
  \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// Imports\nvar ___CSS_LOADER_API_IMPORT___ = __webpack_require__(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */ \"./node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.i, \"\\n.center[data-v-c3ff5500] {\\r\\n  display: -webkit-box;\\r\\n  display: -ms-flexbox;\\r\\n  display: flex;\\r\\n  -webkit-box-pack: center;\\r\\n      -ms-flex-pack: center;\\r\\n          justify-content: center;\\n}\\r\\n\", \"\"]);\n// Exports\nmodule.exports = exports;\n\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.vue?./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

/***/ "./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css&":
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./node_modules/vue-style-loader??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css& ***!
  \**********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! no static exports found */
/***/ (function(module, exports, __webpack_require__) {

eval("// style-loader: Adds some css to the DOM by adding a <style> tag\n\n// load the styles\nvar content = __webpack_require__(/*! !../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css& */ \"./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css&\");\nif(content.__esModule) content = content.default;\nif(typeof content === 'string') content = [[module.i, content, '']];\nif(content.locals) module.exports = content.locals;\n// add the styles to the DOM\nvar add = __webpack_require__(/*! ../../../../node_modules/vue-style-loader/lib/addStylesClient.js */ \"./node_modules/vue-style-loader/lib/addStylesClient.js\").default\nvar update = add(\"cb7905b0\", content, false, {\"sourceMap\":false,\"shadowMode\":false});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.vue?./node_modules/vue-style-loader??ref--6-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--6-oneOf-1-2!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _ApiKeys_vue_vue_type_template_id_c3ff5500_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true& */ \"./src/components/main/user/ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true&\");\n/* harmony import */ var _ApiKeys_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ApiKeys.vue?vue&type=script&lang=js& */ \"./src/components/main/user/ApiKeys.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _ApiKeys_vue_vue_type_style_index_0_id_c3ff5500_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css& */ \"./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ \"./node_modules/vue-loader/lib/runtime/componentNormalizer.js\");\n\n\n\n\n\n\n/* normalize component */\n\nvar component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__[\"default\"])(\n  _ApiKeys_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _ApiKeys_vue_vue_type_template_id_c3ff5500_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _ApiKeys_vue_vue_type_template_id_c3ff5500_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"],\n  false,\n  null,\n  \"c3ff5500\",\n  null\n  \n)\n\n/* hot reload */\nif (false) { var api; }\ncomponent.options.__file = \"src/components/main/user/ApiKeys.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.vue?");

/***/ }),

/***/ "./src/components/main/user/ApiKeys.vue?vue&type=script&lang=js&":
/*!***********************************************************************!*\
  !*** ./src/components/main/user/ApiKeys.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_ApiKeys_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!./ApiKeys.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/ApiKeys.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_ApiKeys_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__[\"default\"]); \n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.vue?");

/***/ }),

/***/ "./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css&":
/*!*******************************************************************************************************!*\
  !*** ./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css& ***!
  \*******************************************************************************************************/
/*! no static exports found */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApiKeys_vue_vue_type_style_index_0_id_c3ff5500_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-style-loader??ref--6-oneOf-1-0!../../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src??ref--6-oneOf-1-2!../../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css& */ \"./node_modules/vue-style-loader/index.js?!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./src/components/main/user/ApiKeys.vue?vue&type=style&index=0&id=c3ff5500&scoped=true&lang=css&\");\n/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApiKeys_vue_vue_type_style_index_0_id_c3ff5500_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApiKeys_vue_vue_type_style_index_0_id_c3ff5500_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApiKeys_vue_vue_type_style_index_0_id_c3ff5500_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__) if([\"default\"].indexOf(__WEBPACK_IMPORT_KEY__) < 0) (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_vue_style_loader_index_js_ref_6_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_6_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_6_oneOf_1_2_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ApiKeys_vue_vue_type_style_index_0_id_c3ff5500_scoped_true_lang_css___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.vue?");

/***/ }),

/***/ "./src/components/main/user/ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true&":
/*!*****************************************************************************************!*\
  !*** ./src/components/main/user/ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true& ***!
  \*****************************************************************************************/
/*! 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_ApiKeys_vue_vue_type_template_id_c3ff5500_scoped_true___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!./ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true& */ \"./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/ApiKeys.vue?vue&type=template&id=c3ff5500&scoped=true&\");\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_ApiKeys_vue_vue_type_template_id_c3ff5500_scoped_true___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_ApiKeys_vue_vue_type_template_id_c3ff5500_scoped_true___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/user/ApiKeys.vue?");

/***/ }),

/***/ "./src/utils/date.js":
/*!***************************!*\
  !*** ./src/utils/date.js ***!
  \***************************/
/*! exports provided: fromNow, normalize, fromJson, toReadable, toReadableDate, convert, duration */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromNow\", function() { return fromNow; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"normalize\", function() { return normalize; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fromJson\", function() { return fromJson; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toReadable\", function() { return toReadable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"toReadableDate\", function() { return toReadableDate; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"convert\", function() { return convert; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"duration\", function() { return duration; });\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_0__);\n\nfunction fromNow(date) {\n  if (date) return moment__WEBPACK_IMPORTED_MODULE_0___default()(normalize(date)).fromNow();else return \"\";\n}\nfunction normalize(date) {\n  if (date && typeof date === \"string\" && !date.includes(\":\")) return parseInt(date);else return date;\n}\nfunction fromJson(jsonDate) {\n  var offset = new Date().getTimezoneOffset();\n  var parts = /\\/Date\\((-?\\d+)([+-]\\d{2})?(\\d{2})?.*/.exec(jsonDate);\n  if (parts[2] == undefined) parts[2] = 0;\n  if (parts[3] == undefined) parts[3] = 0;\n  return new Date(+parts[1] + offset + parts[2] * 3600000 + parts[3] * 60000);\n}\nfunction toReadable(date) {\n  if (date) {\n    date = convert(normalize(date));\n    return date.toLocaleDateString([], {\n      //weekday: \"narrow\",\n      year: \"numeric\",\n      month: \"numeric\",\n      day: \"numeric\",\n      hour: \"numeric\",\n      minute: \"numeric\",\n      hour12: false\n    });\n  }\n  return \"\";\n}\nfunction toReadableDate(date) {\n  if (date && date != \"\") {\n    date = convert(normalize(date));\n    return date.toLocaleDateString();\n  }\n  return \"\";\n}\nfunction convert(dateStr) {\n  if (dateStr) {\n    const dateObj = new Date(dateStr);\n    return dateObj;\n  }\n  return null;\n}\nfunction duration(date1, date2) {\n  const start = moment__WEBPACK_IMPORTED_MODULE_0___default()(date1);\n  const end = moment__WEBPACK_IMPORTED_MODULE_0___default()(date2);\n  const duration = end.diff(start, \"minutes\", true);\n  return +(Math.round(duration + \"e+2\") + \"e-2\");\n}\n\n//# sourceURL=webpack:///./src/utils/date.js?");

/***/ })

}]);