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

/***/ "./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/computer/View2.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/computer/View2.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_computer__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @/utils/computer */ \"./src/utils/computer.js\");\n/* harmony import */ var _utils_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/utils/string */ \"./src/utils/string.js\");\n/* harmony import */ var _utils_date__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/utils/date */ \"./src/utils/date.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//\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  props: {\n    items: Array\n  },\n  components: {\n    TableEffect: () => __webpack_require__.e(/*! import() */ 13).then(__webpack_require__.bind(null, /*! @/components/singles/TableEffect.vue */ \"./src/components/singles/TableEffect.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  computed: {\n    licenseEnabled() {\n      var _this$$store$state$se;\n      return (_this$$store$state$se = this.$store.state.settings) !== null && _this$$store$state$se !== void 0 && (_this$$store$state$se = _this$$store$state$se.server) !== null && _this$$store$state$se !== void 0 && _this$$store$state$se.licenseEnabled ? true : false;\n    },\n    parseAndRound() {\n      return str => {\n        return Object(_utils_string__WEBPACK_IMPORTED_MODULE_1__[\"parseAndRound\"])(str);\n      };\n    },\n    name() {\n      return computer => {\n        return _utils_computer__WEBPACK_IMPORTED_MODULE_0__[\"default\"].getName(computer);\n      };\n    },\n    fromNow() {\n      return date => {\n        return Object(_utils_date__WEBPACK_IMPORTED_MODULE_2__[\"fromNow\"])(date);\n      };\n    }\n  }\n});\n\n//# sourceURL=webpack:///./src/components/main/computer/View2.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/computer/View2.vue?vue&type=template&id=3f55efcf&":
/*!************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
  !*** ./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/computer/View2.vue?vue&type=template&id=3f55efcf& ***!
  \************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
/*! 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: \"table-container\" }, [\n    _c(\n      \"table\",\n      { staticClass: \"table is-fullwidth is-narrow is-hoverable\" },\n      [\n        _c(\"thead\", [\n          _c(\"tr\", { staticClass: \"is-unselectable\" }, [\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", [\"friendlyName\", \"name\"])\n                  }\n                }\n              },\n              [_vm._v(\" Name \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"online\")\n                  }\n                }\n              },\n              [_vm._v(\"Online\")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"onlineChanged\")\n                  }\n                }\n              },\n              [_vm._v(\" Online Changed \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"inventorying\")\n                  }\n                }\n              },\n              [_vm._v(\" Inventorying \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"clientVersion\")\n                  }\n                }\n              },\n              [_vm._v(\" Agent Version \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"systemInfo.systemDiskType\")\n                  }\n                }\n              },\n              [_vm._v(\" Disk Type \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"systemInfo.freeSystemDiskSpace\")\n                  }\n                }\n              },\n              [_vm._v(\" Free Space \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"systemInfo.ramTotal\")\n                  }\n                }\n              },\n              [_vm._v(\"RAM\")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"systemInfo.osVersion\")\n                  }\n                }\n              },\n              [_vm._v(\" OS Version \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"systemInfo.localIp\")\n                  }\n                }\n              },\n              [_vm._v(\" Local IP \")]\n            ),\n            _c(\n              \"th\",\n              {\n                on: {\n                  click: function($event) {\n                    return _vm.$emit(\"order\", \"name\")\n                  }\n                }\n              },\n              [_vm._v(\"Real Name\")]\n            ),\n            _vm.licenseEnabled\n              ? _c(\n                  \"th\",\n                  {\n                    on: {\n                      click: function($event) {\n                        return _vm.$emit(\"order\", \"computer.license\")\n                      }\n                    }\n                  },\n                  [_vm._v(\" Licensed \")]\n                )\n              : _vm._e()\n          ])\n        ]),\n        _c(\n          \"TableEffect\",\n          _vm._l(_vm.items, function(computer) {\n            return _c(\"tr\", { key: computer.uid }, [\n              _c(\"td\", [\n                _c(\n                  \"div\",\n                  {\n                    on: {\n                      contextmenu: function($event) {\n                        $event.preventDefault()\n                        return _vm.$emit(\"menu\", {\n                          e: $event,\n                          computer: computer\n                        })\n                      }\n                    }\n                  },\n                  [\n                    !computer.edit\n                      ? _c(\n                          \"router-link\",\n                          {\n                            attrs: {\n                              to:\n                                \"/domains/\" +\n                                _vm.$route.params.domainUID +\n                                \"/computers/\" +\n                                computer.uid +\n                                \"/packages\"\n                            }\n                          },\n                          [\n                            _c(\n                              \"span\",\n                              {\n                                class: {\n                                  \"has-text-danger\":\n                                    _vm.licenseEnabled && !computer.license,\n                                  \"has-text-warning\":\n                                    _vm.licenseEnabled &&\n                                    computer.license &&\n                                    !computer.license.active\n                                },\n                                attrs: {\n                                  \"data-tooltip\": _vm.licenseEnabled\n                                    ? computer.license &&\n                                      !computer.license.active\n                                      ? \"License is deactivated\"\n                                      : !computer.license\n                                      ? \"No license\"\n                                      : undefined\n                                    : false\n                                }\n                              },\n                              [\n                                _c(\"span\", { staticClass: \"icon\" }, [\n                                  _c(\"i\", { staticClass: \"mdi mdi-laptop\" })\n                                ]),\n                                _c(\"span\", [_vm._v(_vm._s(_vm.name(computer)))])\n                              ]\n                            )\n                          ]\n                        )\n                      : _vm._e(),\n                    computer.edit\n                      ? _c(\"EditSingleField\", {\n                          attrs: {\n                            text: _vm.name(computer),\n                            validation: \"required\",\n                            type: \"text\",\n                            name: \"name\",\n                            isLoading: computer.saving\n                          },\n                          on: {\n                            save: function($event) {\n                              return _vm.$emit(\"save\", {\n                                computer: computer,\n                                text: $event\n                              })\n                            },\n                            cancel: function($event) {\n                              return _vm.$emit(\"cancel\", computer)\n                            }\n                          }\n                        })\n                      : _vm._e()\n                  ],\n                  1\n                )\n              ]),\n              _c(\"td\", { class: { \"has-text-success\": computer.online } }, [\n                _vm._v(\" \" + _vm._s(computer.online ? \"Yes\" : \"No\") + \" \")\n              ]),\n              _c(\"td\", [\n                computer.onlineChanged\n                  ? _c(\"span\", [\n                      _vm._v(_vm._s(_vm.fromNow(computer.onlineChanged)))\n                    ])\n                  : _vm._e()\n              ]),\n              _c(\"td\", { class: { \"has-text-info\": computer.inventorying } }, [\n                _vm._v(\" \" + _vm._s(computer.inventorying ? \"Yes\" : \"No\") + \" \")\n              ]),\n              _c(\"td\", [_vm._v(_vm._s(computer.clientVersion))]),\n              _c(\"td\", [\n                computer.systemInfo\n                  ? _c(\"span\", [\n                      _vm._v(\n                        \" \" +\n                          _vm._s(\n                            computer.systemInfo.systemDiskType == \"SSD\"\n                              ? \"SSD\"\n                              : \"HDD\"\n                          ) +\n                          \" \"\n                      )\n                    ])\n                  : _vm._e()\n              ]),\n              _c(\"td\", [\n                computer.systemInfo\n                  ? _c(\n                      \"span\",\n                      {\n                        class:\n                          ({\n                            \"has-text-danger\":\n                              computer.systemInfo.freeSystemDiskSpace < 0.5\n                          },\n                          {\n                            \"has-text-warning\":\n                              computer.systemInfo.freeSystemDiskSpace < 7\n                          })\n                      },\n                      [\n                        _vm._v(\n                          _vm._s(computer.systemInfo.freeSystemDiskSpace) +\n                            \" GB\"\n                        )\n                      ]\n                    )\n                  : _vm._e()\n              ]),\n              _c(\"td\", [\n                computer.systemInfo && computer.systemInfo.ramTotal\n                  ? _c(\"span\", [\n                      _vm._v(\n                        _vm._s(\n                          _vm.parseAndRound(computer.systemInfo.ramTotal)\n                        ) + \" GB\"\n                      )\n                    ])\n                  : _vm._e()\n              ]),\n              _c(\"td\", [\n                computer.systemInfo\n                  ? _c(\"span\", [_vm._v(_vm._s(computer.systemInfo.osVersion))])\n                  : _vm._e()\n              ]),\n              _c(\"td\", [\n                computer.systemInfo\n                  ? _c(\"span\", [_vm._v(_vm._s(computer.systemInfo.localIp))])\n                  : _vm._e()\n              ]),\n              _c(\"td\", [_vm._v(_vm._s(computer.name))]),\n              _vm.licenseEnabled && computer.license === null\n                ? _c(\"td\", [_vm._v(\" No \")])\n                : _vm._e(),\n              _vm.licenseEnabled && computer.license !== null\n                ? _c(\"td\", [\n                    computer.license\n                      ? _c(\"span\", [\n                          _vm._v(\n                            _vm._s(\n                              computer.license.active ? \"Yes\" : \"Not active\"\n                            )\n                          )\n                        ])\n                      : _vm._e()\n                  ])\n                : _vm._e()\n            ])\n          }),\n          0\n        )\n      ],\n      1\n    )\n  ])\n}\nvar staticRenderFns = []\nrender._withStripped = true\n\n\n\n//# sourceURL=webpack:///./src/components/main/computer/View2.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/computer/View2.vue":
/*!************************************************!*\
  !*** ./src/components/main/computer/View2.vue ***!
  \************************************************/
/*! exports provided: default */
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _View2_vue_vue_type_template_id_3f55efcf___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./View2.vue?vue&type=template&id=3f55efcf& */ \"./src/components/main/computer/View2.vue?vue&type=template&id=3f55efcf&\");\n/* harmony import */ var _View2_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./View2.vue?vue&type=script&lang=js& */ \"./src/components/main/computer/View2.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  _View2_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n  _View2_vue_vue_type_template_id_3f55efcf___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n  _View2_vue_vue_type_template_id_3f55efcf___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/computer/View2.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack:///./src/components/main/computer/View2.vue?");

/***/ }),

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

/***/ }),

/***/ "./src/components/main/computer/View2.vue?vue&type=template&id=3f55efcf&":
/*!*******************************************************************************!*\
  !*** ./src/components/main/computer/View2.vue?vue&type=template&id=3f55efcf& ***!
  \*******************************************************************************/
/*! 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_View2_vue_vue_type_template_id_3f55efcf___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!./View2.vue?vue&type=template&id=3f55efcf& */ \"./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/computer/View2.vue?vue&type=template&id=3f55efcf&\");\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_View2_vue_vue_type_template_id_3f55efcf___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_View2_vue_vue_type_template_id_3f55efcf___WEBPACK_IMPORTED_MODULE_0__[\"staticRenderFns\"]; });\n\n\n\n//# sourceURL=webpack:///./src/components/main/computer/View2.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?");

/***/ }),

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

"use strict";
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"parseAndRound\", function() { return parseAndRound; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"firstCapital\", function() { return firstCapital; });\nfunction parseAndRound(str, decimals) {\n  if (typeof str !== String) str = str.toString();\n  if (!decimals) decimals = 0;\n  const value = parseFloat(str.replace(/,/g, \".\"));\n  if (str) return Number(Math.round(value + \"e\" + decimals) + \"e-\" + decimals);\n}\nfunction firstCapital(str) {\n  if (str) return str.charAt(0).toUpperCase() + str.slice(1);\n  return str;\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n  parseAndRound,\n  firstCapital\n});\n\n//# sourceURL=webpack:///./src/utils/string.js?");

/***/ })

}]);