@intellias/menu 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,6 +59,12 @@ Once you have installed the package, in your entry file of the repository (wrapp
59
59
 
60
60
  ```
61
61
  import MainMenu, { MenuOptions, ProjectNameType } from '@intellias/menu';
62
+ // Importing necessary chunks for dynamic modules from menu( will be fixed if moving to webpack ^5.0.0)
63
+ import '@intellias/menu/dist/js/kudosForm.js';
64
+ import '@intellias/menu/dist/js/vendors~kudosForm.js';
65
+ import '@intellias/menu/dist/js/rejectComponent.js';
66
+ import '@intellias/menu/dist/js/vendors~kudosForm~rejectComponent.js';
67
+ import '@intellias/menu/dist/js/vue.js';
62
68
 
63
69
  ```
64
70
 
@@ -75,7 +81,7 @@ const menuOptions: MenuOptions = {
75
81
  It's also necessary to install styles(You can import them to App.vue or main.scss file) as follows:
76
82
 
77
83
  ```
78
- import MainMenu, { MenuOptions, ProjectNameType } from '@intellias/menu/css/main.css' // Menu css import must be here for correct adding to the DOM
84
+ import MainMenu, { MenuOptions, ProjectNameType } from '@intellias/menu/dist/css/main.css' // Menu css import must be here for correct adding to the DOM
79
85
 
80
86
  ```
81
87
 
package/dist/css/main.css CHANGED
@@ -565,6 +565,7 @@
565
565
  padding: 2rem 2rem 1rem 2rem;
566
566
  font-size: 1.25rem;
567
567
  font-weight: bold;
568
+ color: #1a2732 !important;
568
569
  }
569
570
  .modal-header i.icon:before {
570
571
  background-color: #1a2732 !important;
@@ -1580,3 +1581,137 @@ a:hover {
1580
1581
  text-decoration: none;
1581
1582
  color: #008c79;
1582
1583
  }
1584
+ .modal.confirm {
1585
+ box-sizing: border-box;
1586
+ min-width: 280px;
1587
+ min-height: 150px;
1588
+ flex-direction: column;
1589
+ background-color: #ffffff;
1590
+ position: fixed;
1591
+ }
1592
+ .modal.confirm.open {
1593
+ display: flex !important;
1594
+ }
1595
+ .modal.confirm .header {
1596
+ padding-bottom: 10px;
1597
+ }
1598
+ .modal.confirm .header i.modal-close {
1599
+ float: right;
1600
+ height: 24px;
1601
+ line-height: 24px;
1602
+ }
1603
+ .modal.confirm .header h3 {
1604
+ color: #1a2732;
1605
+ }
1606
+ .modal.confirm .header + .modal-footer {
1607
+ padding-top: 30px;
1608
+ }
1609
+ .modal.confirm .modal-content {
1610
+ white-space: normal;
1611
+ color: #1a2732;
1612
+ overflow: initial;
1613
+ font-weight: normal;
1614
+ line-height: normal;
1615
+ margin-right: 0;
1616
+ padding-right: 0;
1617
+ }
1618
+ .give-kudos .user ul {
1619
+ max-height: 200px;
1620
+ }
1621
+ .give-kudos a {
1622
+ font-weight: bold;
1623
+ }
1624
+ .give-kudos .subtitle {
1625
+ padding: 0px 0 30px 0;
1626
+ }
1627
+ .give-kudos .form {
1628
+ display: grid;
1629
+ grid-template-columns: auto 207px;
1630
+ grid-gap: 15px;
1631
+ /* Chrome, Safari, Edge, Opera */
1632
+ /* Firefox */
1633
+ }
1634
+ .give-kudos .form .vs__selected-options {
1635
+ flex-wrap: nowrap;
1636
+ }
1637
+ .give-kudos .form .vs__selected-options span.vs__selected {
1638
+ white-space: nowrap;
1639
+ }
1640
+ .give-kudos .form .kudos-quantity {
1641
+ height: 38px;
1642
+ margin: 0;
1643
+ border: solid 1px #cbd5e1;
1644
+ background-color: #ffffff;
1645
+ padding: 0 15px;
1646
+ width: 175px;
1647
+ }
1648
+ .give-kudos .form .kudos-quantity.theme-reactive {
1649
+ border: solid 1px var(--border);
1650
+ background-color: var(--surface-primary);
1651
+ color: var(--text-primary);
1652
+ }
1653
+ .give-kudos .form .kudos-quantity:focus,
1654
+ .give-kudos .form .kudos-quantity:active,
1655
+ .give-kudos .form .kudos-quantity:focus-visible {
1656
+ border: solid 1px #00a58e !important;
1657
+ box-shadow: none;
1658
+ outline: none !important;
1659
+ }
1660
+ .give-kudos .form input::-webkit-outer-spin-button,
1661
+ .give-kudos .form input::-webkit-inner-spin-button {
1662
+ -webkit-appearance: none;
1663
+ margin: 0;
1664
+ }
1665
+ .give-kudos .form input[type=number] {
1666
+ -moz-appearance: textfield;
1667
+ }
1668
+ .give-kudos .form .user {
1669
+ grid-column: span 2;
1670
+ margin-right: 1px;
1671
+ }
1672
+ .give-kudos .form .block-kudos-quantity {
1673
+ width: 190px;
1674
+ }
1675
+ .give-kudos .form .block-kudos-category {
1676
+ margin-right: 5px;
1677
+ }
1678
+ .give-kudos .form .description {
1679
+ grid-column: span 2;
1680
+ margin-right: 1px;
1681
+ }
1682
+ .give-kudos .form .description textarea {
1683
+ resize: none;
1684
+ min-height: 100px;
1685
+ max-height: 300px;
1686
+ min-width: 100%;
1687
+ max-width: 100%;
1688
+ border-radius: 2px;
1689
+ outline: none;
1690
+ padding: 10px;
1691
+ }
1692
+ .give-kudos .form .description textarea.theme-reactive {
1693
+ border: solid 1px var(--border);
1694
+ background-color: var(--surface-primary);
1695
+ color: var(--text-primary);
1696
+ }
1697
+ .give-kudos .form .description textarea.theme-reactive:focus {
1698
+ border: solid 1px var(--accent-primary);
1699
+ }
1700
+ .give-kudos .form label {
1701
+ display: flex;
1702
+ font-size: 0.94rem;
1703
+ margin-bottom: 10px;
1704
+ color: var(--text-primary);
1705
+ }
1706
+ .give-kudos .form .error {
1707
+ font-size: 0.8rem;
1708
+ }
1709
+ .give-kudos .form .error-field {
1710
+ border: solid 1px var(--error);
1711
+ }
1712
+ .give-kudos button.btn-large[disabled] {
1713
+ background-color: #c2e9e4 !important;
1714
+ }
1715
+ .give-kudos .vs__clear svg {
1716
+ display: none;
1717
+ }
@@ -1,4 +1,4 @@
1
- (window["webpackJsonpMainMenu"] = window["webpackJsonpMainMenu"] || []).push([[1],{
1
+ (window["webpackJsonpMainMenu"] = window["webpackJsonpMainMenu"] || []).push([["kudosForm"],{
2
2
 
3
3
  /***/ "./buses/eventBus.ts":
4
4
  /*!***************************!*\
@@ -44,7 +44,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var coll
44
44
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
45
45
 
46
46
  "use strict";
47
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GiveKudosForm_vue_vue_type_template_id_0d78c966___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GiveKudosForm.vue?vue&type=template&id=0d78c966& */ \"./components/give-kudos-form/GiveKudosForm.vue?vue&type=template&id=0d78c966&\");\n/* harmony import */ var _GiveKudosForm_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GiveKudosForm.vue?vue&type=script&lang=js& */ \"./components/give-kudos-form/GiveKudosForm.vue?vue&type=script&lang=js&\");\n/* empty/unused harmony star reexport *//* harmony import */ var _GiveKudosForm_vue_vue_type_style_index_0_id_0d78c966_lang_scss___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss& */ \"./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss&\");\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 _GiveKudosForm_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _GiveKudosForm_vue_vue_type_template_id_0d78c966___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _GiveKudosForm_vue_vue_type_template_id_0d78c966___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 = \"components/give-kudos-form/GiveKudosForm.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://MainMenu/./components/give-kudos-form/GiveKudosForm.vue?");
47
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _GiveKudosForm_vue_vue_type_template_id_0d78c966___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./GiveKudosForm.vue?vue&type=template&id=0d78c966& */ \"./components/give-kudos-form/GiveKudosForm.vue?vue&type=template&id=0d78c966&\");\n/* harmony import */ var _GiveKudosForm_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./GiveKudosForm.vue?vue&type=script&lang=js& */ \"./components/give-kudos-form/GiveKudosForm.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 _GiveKudosForm_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__[\"default\"],\n _GiveKudosForm_vue_vue_type_template_id_0d78c966___WEBPACK_IMPORTED_MODULE_0__[\"render\"],\n _GiveKudosForm_vue_vue_type_template_id_0d78c966___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 = \"components/give-kudos-form/GiveKudosForm.vue\"\n/* harmony default export */ __webpack_exports__[\"default\"] = (component.exports);\n\n//# sourceURL=webpack://MainMenu/./components/give-kudos-form/GiveKudosForm.vue?");
48
48
 
49
49
  /***/ }),
50
50
 
@@ -60,18 +60,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _nod
60
60
 
61
61
  /***/ }),
62
62
 
63
- /***/ "./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss&":
64
- /*!****************************************************************************************************!*\
65
- !*** ./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss& ***!
66
- \****************************************************************************************************/
67
- /*! no static exports found */
68
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
69
-
70
- "use strict";
71
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_2_2_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_2_3_node_modules_sass_loader_lib_loader_js_ref_2_4_node_modules_vue_loader_lib_index_js_vue_loader_options_GiveKudosForm_vue_vue_type_style_index_0_id_0d78c966_lang_scss___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../node_modules/vue-style-loader!../../node_modules/mini-css-extract-plugin/dist/loader.js!../../node_modules/css-loader/dist/cjs.js??ref--2-2!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src??ref--2-3!../../node_modules/sass-loader/lib/loader.js??ref--2-4!../../node_modules/vue-loader/lib??vue-loader-options!./GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss& */ \"./node_modules/vue-style-loader/index.js!./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss&\");\n/* harmony import */ var _node_modules_vue_style_loader_index_js_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_2_2_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_2_3_node_modules_sass_loader_lib_loader_js_ref_2_4_node_modules_vue_loader_lib_index_js_vue_loader_options_GiveKudosForm_vue_vue_type_style_index_0_id_0d78c966_lang_scss___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_2_2_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_2_3_node_modules_sass_loader_lib_loader_js_ref_2_4_node_modules_vue_loader_lib_index_js_vue_loader_options_GiveKudosForm_vue_vue_type_style_index_0_id_0d78c966_lang_scss___WEBPACK_IMPORTED_MODULE_0__);\n/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_vue_style_loader_index_js_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_2_2_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_2_3_node_modules_sass_loader_lib_loader_js_ref_2_4_node_modules_vue_loader_lib_index_js_vue_loader_options_GiveKudosForm_vue_vue_type_style_index_0_id_0d78c966_lang_scss___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_node_modules_mini_css_extract_plugin_dist_loader_js_node_modules_css_loader_dist_cjs_js_ref_2_2_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_2_3_node_modules_sass_loader_lib_loader_js_ref_2_4_node_modules_vue_loader_lib_index_js_vue_loader_options_GiveKudosForm_vue_vue_type_style_index_0_id_0d78c966_lang_scss___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));\n\n\n//# sourceURL=webpack://MainMenu/./components/give-kudos-form/GiveKudosForm.vue?");
72
-
73
- /***/ }),
74
-
75
63
  /***/ "./components/give-kudos-form/GiveKudosForm.vue?vue&type=template&id=0d78c966&":
76
64
  /*!*************************************************************************************!*\
77
65
  !*** ./components/give-kudos-form/GiveKudosForm.vue?vue&type=template&id=0d78c966& ***!
@@ -286,28 +274,6 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
286
274
  "use strict";
287
275
  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 render() {\n var _vm = this,\n _c = _vm._self._c;\n return _c(\"i\", {\n staticClass: \"icon icon-small arrow-down\"\n });\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://MainMenu/./components/v-select-intems/open-indicator/OpenIndicator.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options");
288
276
 
289
- /***/ }),
290
-
291
- /***/ "./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss&":
292
- /*!********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
293
- !*** ./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js??ref--2-2!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--2-3!./node_modules/sass-loader/lib/loader.js??ref--2-4!./node_modules/vue-loader/lib??vue-loader-options!./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss& ***!
294
- \********************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
295
- /*! no static exports found */
296
- /***/ (function(module, exports, __webpack_require__) {
297
-
298
- eval("// extracted by mini-css-extract-plugin\n\n//# sourceURL=webpack://MainMenu/./components/give-kudos-form/GiveKudosForm.vue?./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js??ref--2-2!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--2-3!./node_modules/sass-loader/lib/loader.js??ref--2-4!./node_modules/vue-loader/lib??vue-loader-options");
299
-
300
- /***/ }),
301
-
302
- /***/ "./node_modules/vue-style-loader/index.js!./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss&":
303
- /*!****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
304
- !*** ./node_modules/vue-style-loader!./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js??ref--2-2!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--2-3!./node_modules/sass-loader/lib/loader.js??ref--2-4!./node_modules/vue-loader/lib??vue-loader-options!./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss& ***!
305
- \****************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
306
- /*! no static exports found */
307
- /***/ (function(module, exports, __webpack_require__) {
308
-
309
- 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/mini-css-extract-plugin/dist/loader.js!../../node_modules/css-loader/dist/cjs.js??ref--2-2!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src??ref--2-3!../../node_modules/sass-loader/lib/loader.js??ref--2-4!../../node_modules/vue-loader/lib??vue-loader-options!./GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss& */ \"./node_modules/mini-css-extract-plugin/dist/loader.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/sass-loader/lib/loader.js?!./node_modules/vue-loader/lib/index.js?!./components/give-kudos-form/GiveKudosForm.vue?vue&type=style&index=0&id=0d78c966&lang=scss&\");\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(\"67e95091\", content, false, {});\n// Hot Module Replacement\nif(false) {}\n\n//# sourceURL=webpack://MainMenu/./components/give-kudos-form/GiveKudosForm.vue?./node_modules/vue-style-loader!./node_modules/mini-css-extract-plugin/dist/loader.js!./node_modules/css-loader/dist/cjs.js??ref--2-2!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--2-3!./node_modules/sass-loader/lib/loader.js??ref--2-4!./node_modules/vue-loader/lib??vue-loader-options");
310
-
311
277
  /***/ })
312
278
 
313
279
  }]);
package/dist/js/main.js CHANGED
@@ -42,11 +42,6 @@ return /******/ (function(modules) { // webpackBootstrap
42
42
  /******/ // The module cache
43
43
  /******/ var installedModules = {};
44
44
  /******/
45
- /******/ // object to store loaded CSS chunks
46
- /******/ var installedCssChunks = {
47
- /******/ "main": 0
48
- /******/ }
49
- /******/
50
45
  /******/ // object to store loaded and loading chunks
51
46
  /******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
52
47
  /******/ // Promise = chunk loading, 0 = chunk loaded
@@ -58,7 +53,7 @@ return /******/ (function(modules) { // webpackBootstrap
58
53
  /******/
59
54
  /******/ // script path function
60
55
  /******/ function jsonpScriptSrc(chunkId) {
61
- /******/ return __webpack_require__.p + "js/" + ({"vue":"vue"}[chunkId]||chunkId) + ".js"
56
+ /******/ return __webpack_require__.p + "js/" + ({"vendors~kudosForm~rejectComponent":"vendors~kudosForm~rejectComponent","rejectComponent":"rejectComponent","vue":"vue","vendors~kudosForm":"vendors~kudosForm","kudosForm":"kudosForm"}[chunkId]||chunkId) + ".js"
62
57
  /******/ }
63
58
  /******/
64
59
  /******/ // The require function
@@ -91,47 +86,6 @@ return /******/ (function(modules) { // webpackBootstrap
91
86
  /******/ var promises = [];
92
87
  /******/
93
88
  /******/
94
- /******/ // mini-css-extract-plugin CSS loading
95
- /******/ var cssChunks = {"1":1,"2":1,"3":1,"4":1,"5":1};
96
- /******/ if(installedCssChunks[chunkId]) promises.push(installedCssChunks[chunkId]);
97
- /******/ else if(installedCssChunks[chunkId] !== 0 && cssChunks[chunkId]) {
98
- /******/ promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {
99
- /******/ var href = "css/" + chunkId + ".css";
100
- /******/ var fullhref = __webpack_require__.p + href;
101
- /******/ var existingLinkTags = document.getElementsByTagName("link");
102
- /******/ for(var i = 0; i < existingLinkTags.length; i++) {
103
- /******/ var tag = existingLinkTags[i];
104
- /******/ var dataHref = tag.getAttribute("data-href") || tag.getAttribute("href");
105
- /******/ if(tag.rel === "stylesheet" && (dataHref === href || dataHref === fullhref)) return resolve();
106
- /******/ }
107
- /******/ var existingStyleTags = document.getElementsByTagName("style");
108
- /******/ for(var i = 0; i < existingStyleTags.length; i++) {
109
- /******/ var tag = existingStyleTags[i];
110
- /******/ var dataHref = tag.getAttribute("data-href");
111
- /******/ if(dataHref === href || dataHref === fullhref) return resolve();
112
- /******/ }
113
- /******/ var linkTag = document.createElement("link");
114
- /******/ linkTag.rel = "stylesheet";
115
- /******/ linkTag.type = "text/css";
116
- /******/ linkTag.onload = resolve;
117
- /******/ linkTag.onerror = function(event) {
118
- /******/ var request = event && event.target && event.target.src || fullhref;
119
- /******/ var err = new Error("Loading CSS chunk " + chunkId + " failed.\n(" + request + ")");
120
- /******/ err.code = "CSS_CHUNK_LOAD_FAILED";
121
- /******/ err.request = request;
122
- /******/ delete installedCssChunks[chunkId]
123
- /******/ linkTag.parentNode.removeChild(linkTag)
124
- /******/ reject(err);
125
- /******/ };
126
- /******/ linkTag.href = fullhref;
127
- /******/
128
- /******/ var head = document.getElementsByTagName("head")[0];
129
- /******/ head.appendChild(linkTag);
130
- /******/ }).then(function() {
131
- /******/ installedCssChunks[chunkId] = 0;
132
- /******/ }));
133
- /******/ }
134
- /******/
135
89
  /******/ // JSONP chunk loading for javascript
136
90
  /******/
137
91
  /******/ var installedChunkData = installedChunks[chunkId];
@@ -265,7 +219,7 @@ return /******/ (function(modules) { // webpackBootstrap
265
219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
266
220
 
267
221
  "use strict";
268
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! mobile-device-detect */ \"./node_modules/mobile-device-detect/dist/index.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/notifications-sidebar/NotificationsSidebar.vue */ \"./components/notifications-sidebar/NotificationsSidebar.vue\");\n/* harmony import */ var _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/play-pause/PlayPause.vue */ \"./components/play-pause/PlayPause.vue\");\n/* harmony import */ var _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/sub-menu/SubMenu.vue */ \"./components/sub-menu/SubMenu.vue\");\n/* harmony import */ var _repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./repositories/BaseUrl */ \"./repositories/BaseUrl.ts\");\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/user-picture/UserPicture.vue */ \"./components/user-picture/UserPicture.vue\");\n/* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./main */ \"./main.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'MainMenu',\n components: {\n UserPicture: _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n NotificationsSidebar: _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n playPause: _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n SubMenu: _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n subMenus: {\n type: Array\n },\n projectName: {\n type: _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"]\n }\n },\n provide() {\n return {\n projectName: this.projectName,\n storeAdapter: this.storeAdapter,\n subMenus: this.isLiteDomain ? this.subMenus : null,\n helperFunctions: this.helperFunctions\n };\n },\n mounted() {\n this.initializeItems();\n this.initializeAdminItems();\n this.initializeHereBoardItems();\n this.attachOverflowItems();\n this.$echo\n .private(`employee.${this.getUser.employee_id}`)\n .listen('SmartBalanceChanged', () => this.storeAdapter.User.actions.getData())\n .listen('LiqPayDonationProcessed', payload => {\n if (payload.status === 'finished') {\n this.storeAdapter.Toasts.mutations.addMessage(`${payload.quantity} UAH was successfully donated.`);\n }\n else {\n this.storeAdapter.Toasts.mutations.addWarning(`Donation ${payload.quantity} UAH was failed.`);\n }\n this.storeAdapter.Toasts.mutations.showAll();\n });\n },\n updated() {\n this.findOverflowedIndex();\n if (this.overflowedItems.items.length) {\n this.attachOverflowedMenus();\n }\n },\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser', 'isSidebarFixed', 'isSidebarOpenOnMobile'])), { intemsConfig() {\n return this.storeAdapter.Config.state.data;\n },\n userInfo() {\n return this.storeAdapter.User.state.data;\n },\n uncheckedCounter() {\n var _a;\n if ((_a = this.storeAdapter.HomePage_OnBoardingPlan.getters) === null || _a === void 0 ? void 0 : _a.notCheckedTasksLength) {\n return this.storeAdapter.HomePage_OnBoardingPlan.getters.notCheckedTasksLength;\n }\n return this.userInfo.welcomeProgram.unchecked_welcome_program_questions;\n },\n canSeeGitBranch() {\n return this.$can('read', 'feature_show_git_branch');\n },\n intelliHubIconsClassName() {\n return this.isIntelliHub ? 'icons hide-on-med-and-down' : 'icons fixed-padding hide-on-med-and-down';\n },\n intelliHubAvatarClassName() {\n return this.isIntelliHub ? 'intellihub-user-wrapper' : 'intellihub-user-wrapper fixed-padding';\n },\n intelliHubNotificationsClassName() {\n return this.isIntelliHub ? 'notifications-bell' : 'notifications-bell fixed-padding';\n },\n isIntelliHub() {\n return this.projectName === _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"].IntelliHub;\n },\n isLiteDomain() {\n return this.projectName === _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"].Lite;\n },\n isManagersPortal() {\n return this.projectName === _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"].ManagersPortal;\n },\n allowedToGiveKudos() {\n return this.userInfo.kudos_balance > 0;\n },\n vacationBalance() {\n return this.userInfo.vacation_balance;\n },\n overflowMenuItemHeight() {\n return this.overflowedMenus[0].querySelector('li').getBoundingClientRect().height;\n },\n overflowMenuMaxItemCount() {\n const itemCountPerMenu = [];\n this.overflowedMenus.forEach(menu => {\n itemCountPerMenu.push(menu.querySelectorAll(':scope > li').length);\n });\n return Math.max(...itemCountPerMenu);\n },\n isMobileOnly() {\n return mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__[\"isMobileOnly\"];\n } }),\n watch: {\n // kostyl to close dropdown after back button press\n $route() {\n if (this.mobileMenu) {\n this.mobileMenu.close();\n }\n },\n 'overflowedItems.startIndex': {\n handler(index) {\n this.overflowedItems.items = this.items.slice(index);\n }\n }\n },\n methods: Object.assign(Object.assign(Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['markAsRead'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['toggleSidebarFixation', 'toggleSidebarOnMobile'])), { handleSidebarTogglerClick() {\n if (!this.isMobileOnly) {\n this.toggleSidebarFixation();\n }\n else {\n this.toggleSidebarOnMobile();\n }\n },\n goTo(routeName) {\n this.helperFunctions.router.push({ name: routeName });\n },\n modifyOpenedAdminItems(indexItem) {\n const collapsibleWrapper = document.getElementById('admin_collapsible');\n const collaplsedAdminItem = collapsibleWrapper.children[indexItem].children[1];\n const animationSmoothness = 0.4;\n const transitionDuration = `${collaplsedAdminItem.children.length * animationSmoothness}s`;\n collaplsedAdminItem.style.transitionDuration = transitionDuration;\n this.adminItems = this.adminItems.map((item, index) => item.children && index === indexItem ? Object.assign(Object.assign({}, item), { opened: !item.opened }) : item);\n },\n toggleSideNavVisibility() {\n this.sideNavOpened = !this.sideNavOpened;\n },\n attachOverflowItems() {\n this.markOverflowedItems();\n window.addEventListener('resize', this.markOverflowedItems);\n },\n attachOverflowedMenus() {\n this.overflowedMenus = this.$refs.overflowedMenu.querySelectorAll('ul');\n },\n findOverflowedIndex() {\n const items = [...this.$refs['menu-items'].childNodes];\n const { length } = items;\n for (let i = 0; i < length; i++) {\n if (items[i].offsetTop > items[i].clientTop) {\n this.overflowedItems.startIndex = i;\n break;\n }\n }\n },\n markOverflowedItems() {\n this.findOverflowedIndex();\n this.overflowedItems.items =\n this.overflowedItems.startIndex > -1 ? this.items.slice(this.overflowedItems.startIndex) : [];\n },\n logOut() {\n return __awaiter(this, void 0, void 0, function* () {\n const repository = new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](_repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__[\"BaseUrl\"].LogOut);\n const data = yield repository.post();\n if (data.data !== undefined) {\n window.location.href = data.data.redirect_url;\n }\n });\n },\n openModalGiveKudos() {\n if (this.allowedToGiveKudos) {\n this.giveKudosComponent = this.giveKudosModalComponent();\n }\n },\n closeModalGiveKudos() {\n this.giveKudosComponent = undefined;\n }, giveKudosModalComponent() {\n return () => Promise.all(/*! import() */[__webpack_require__.e(\"vue\"), __webpack_require__.e(0), __webpack_require__.e(6), __webpack_require__.e(1)]).then(__webpack_require__.bind(null, /*! ./components/give-kudos-form/GiveKudosForm.vue */ \"./components/give-kudos-form/GiveKudosForm.vue\"));\n }, setOverflowedMenuHeight() {\n this.overflowedMenus.forEach(menu => {\n menu.style.height = `${this.overflowMenuMaxItemCount * this.overflowMenuItemHeight}px`;\n });\n },\n moveOverflowedMenu() {\n this.isOveflowedMenuMoved = true;\n this.setOverflowedMenuHeight();\n },\n resetOverflowedMenu() {\n this.isOveflowedMenuMoved = false;\n this.overflowedMenus.forEach(menu => {\n menu.style.height = 'auto';\n });\n },\n initializeRejectionComponent(rejectionData) {\n this.rejectConfirm = rejectionData.rejectionComponent;\n this.rejectedNotification = rejectionData.notification;\n },\n confirmedReject(payload) {\n const action = this.rejectedNotification.actions.first(item => item.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].unpaid_leave\n ].includes(this.rejectedNotification.category)) {\n action.body.rejection_reason = payload.comment;\n }\n else {\n action.body.reject_reason = payload;\n }\n this.requestNotification(action);\n this.unsetRejection();\n },\n unsetRejection() {\n this.rejectConfirm = null;\n },\n requestNotification(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.markAsRead(this.rejectedNotification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__[\"RequestMethod\"].put, action.body);\n });\n },\n initializeItems() {\n this.items = [\n {\n name: 'Time',\n link: 'Time',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_time'\n },\n {\n name: 'Leaves and Absences',\n link: this.isLiteDomain ? 'Leaves and Absences' : 'leaves-and-absences/balance',\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_leaves_and_absences'\n },\n {\n name: 'Stats',\n link: 'stats',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_stats'\n },\n {\n name: 'IntelliShare',\n link: this.isLiteDomain ? 'Donation Portal' : 'donations',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_donation_campaigns'\n },\n {\n name: 'Welcome Program',\n link: this.isLiteDomain ? 'On boarding page check list' : 'admin/welcome-program',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_welcome_program'\n },\n {\n name: 'Operations',\n link: this.isLiteDomain ? 'Reporting Branches' : 'projects',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_projects'\n },\n {\n name: 'Reports',\n link: 'report/generate-excel',\n toMainDomain: true,\n menuCheck: 'reports_tab'\n },\n {\n name: 'Team',\n link: 'view-employees',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_team'\n },\n {\n name: 'News',\n link: 'news',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_news'\n },\n {\n name: 'Career Hub',\n link: this.config().careerSiteUrl,\n isDirectLink: true,\n menuCheck: 'menu_career_hub'\n },\n {\n name: 'Service desk',\n link: 'https://jira.intellias.com/servicedesk/customer/portals',\n toMainDomain: true,\n menuCheck: 'menu_service_desk',\n blank: true\n },\n {\n name: 'Knowledge base',\n link: 'https://confluence.intellias.com/pages/viewpage.action?pageId=110035843',\n toMainDomain: true,\n menuCheck: 'menu_knowledge_base',\n blank: true\n },\n {\n name: 'IntelliVacancies',\n link: this.isLiteDomain ? 'IntelliVacancies' : 'intelli-vacancies',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_rotation_portal'\n },\n {\n name: 'Book a desk',\n link: 'https://intellias.officespacesoftware.com/visual-directory',\n toMainDomain: true,\n menuCheck: 'menu_office_space',\n blank: true\n },\n {\n name: 'Company EA Model',\n link: this.isLiteDomain ? 'Company EA Model' : 'ea',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_ea_model'\n },\n {\n name: 'Admin',\n menuCheck: 'menu_admin',\n adminMenu: true\n },\n {\n name: 'Time Imports',\n menuCheck: 'menu_here_board_page',\n hereBoardMenu: true\n }\n ];\n },\n initializeAdminItems() {\n this.adminItems = [\n {\n name: 'IT support',\n menuCheck: 'menu_admin_it_support',\n opened: false,\n children: [\n {\n name: 'Access roles',\n menuCheck: 'setup_roles',\n link: this.isLiteDomain ? 'Access Roles' : 'access-roles',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Work areas',\n menuCheck: 'menu_work_areas',\n link: 'work-areas',\n toMainDomain: true\n },\n {\n name: 'Technical work',\n menuCheck: 'menu_admin_it_support_technical_work',\n link: 'technical-work',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Access cards',\n menuCheck: 'menu_admin_it_support_access_cards',\n link: 'access-cards',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Client IPs',\n menuCheck: 'menu_admin_it_support_client_ips',\n link: 'clients/index.php',\n toMainDomain: true\n },\n {\n name: 'View logs',\n menuCheck: 'menu_admin_it_support_view_logs',\n link: this.isLiteDomain ? 'view_logs' : 'view-logs',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Service page',\n menuCheck: 'menu_service_page',\n link: this.isLiteDomain ? 'Service' : 'service-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ]\n },\n {\n name: 'HR',\n menuCheck: 'menu_admin_hr',\n opened: false,\n children: [\n {\n name: 'Manage IntelliStore',\n menuCheck: 'menu_intelli_store_manage',\n link: this.isLiteDomain\n ? 'catalog-admin-products-list'\n : \"total-rewards-portal/smart-catalog/admin'\",\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Trainings (OLD)',\n menuCheck: 'menu_admin_hr_trainings',\n link: 'eval/index.php',\n toMainDomain: true\n },\n {\n name: 'Trainings (OLD)',\n menuCheck: 'menu_admin_employee_trainings',\n link: 'employees-trainings',\n toMainDomain: true\n },\n {\n name: 'Events',\n menuCheck: 'event_and_training',\n link: this.isLiteDomain ? 'Manage trainings' : 'trainings',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Calendars',\n menuCheck: 'menu_admin_holiday_calendar',\n link: 'calendars',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage smarts',\n menuCheck: 'menu_admin_hr_manage_smarts',\n link: 'virtual-money/index.php',\n toMainDomain: true\n },\n {\n name: 'Manage news',\n menuCheck: 'menu_admin_hr_news',\n link: 'admin/news',\n toMainDomain: true\n },\n {\n name: 'Compensation packages',\n menuCheck: 'menu_admin_non_comp_list',\n link: this.isLiteDomain ? 'compensation-package' : 'admin/compensation-package',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Banners',\n menuCheck: 'menu_admin_banners',\n link: this.isLiteDomain ? 'Banners List' : 'banners',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage Welcome Program',\n link: this.isLiteDomain ? 'Manage Welcome Program' : 'admin/welcome-program',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_manage_welcome_program'\n },\n {\n name: 'Jira Satisfaction Survey',\n menuCheck: 'menu_enps_survey_admin',\n link: this.isLiteDomain ? 'Jira Satisfaction Survey List' : 'jira-satisfaction-survey',\n toMainDomain: false,\n toLite: !this.isLiteDomain\n }\n ]\n },\n {\n name: 'Accountancy',\n menuCheck: 'menu_admin_accountancy',\n link: 'accountancy/detailedReporting',\n toMainDomain: true\n },\n {\n name: 'Countries',\n menuCheck: 'menu_admin_dictionary',\n link: this.isLiteDomain ? 'dictionary' : 'countries',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n },\n initializeHereBoardItems() {\n this.hereBoardItems = [\n {\n name: 'Employee Dashboard',\n menuCheck: 'menu_here_board_page_user',\n link: this.isLiteDomain ? 'Here Board Page' : 'here-board-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manager Dashboard',\n menuCheck: 'menu_here_board_page_manager',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Admin Dashboard',\n menuCheck: 'menu_here_board_page_owner',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n } }),\n data() {\n return {\n flagShowSignOutLinks: false,\n sideNavOpened: false,\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](),\n rejectConfirm: undefined,\n rejectedNotification: undefined,\n giveKudosComponent: undefined,\n items: [],\n adminItems: [],\n hereBoardItems: [],\n overflowedItems: {\n items: [],\n startIndex: -1\n },\n mobileMenu: null,\n overflowedMenus: undefined,\n isOveflowedMenuMoved: false\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./Menu.ts?");
222
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! mobile-device-detect */ \"./node_modules/mobile-device-detect/dist/index.js\");\n/* harmony import */ var mobile_device_detect__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/notifications-sidebar/NotificationsSidebar.vue */ \"./components/notifications-sidebar/NotificationsSidebar.vue\");\n/* harmony import */ var _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/play-pause/PlayPause.vue */ \"./components/play-pause/PlayPause.vue\");\n/* harmony import */ var _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/sub-menu/SubMenu.vue */ \"./components/sub-menu/SubMenu.vue\");\n/* harmony import */ var _repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./repositories/BaseUrl */ \"./repositories/BaseUrl.ts\");\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./components/user-picture/UserPicture.vue */ \"./components/user-picture/UserPicture.vue\");\n/* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./main */ \"./main.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\n\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n name: 'MainMenu',\n components: {\n UserPicture: _components_user_picture_UserPicture_vue__WEBPACK_IMPORTED_MODULE_7__[\"default\"],\n NotificationsSidebar: _components_notifications_sidebar_NotificationsSidebar_vue__WEBPACK_IMPORTED_MODULE_2__[\"default\"],\n playPause: _components_play_pause_PlayPause_vue__WEBPACK_IMPORTED_MODULE_3__[\"default\"],\n SubMenu: _components_sub_menu_SubMenu_vue__WEBPACK_IMPORTED_MODULE_4__[\"default\"]\n },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n subMenus: {\n type: Array\n },\n projectName: {\n type: _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"]\n }\n },\n provide() {\n return {\n projectName: this.projectName,\n storeAdapter: this.storeAdapter,\n subMenus: this.isLiteDomain ? this.subMenus : null,\n helperFunctions: this.helperFunctions\n };\n },\n mounted() {\n this.initializeItems();\n this.initializeAdminItems();\n this.initializeHereBoardItems();\n this.attachOverflowItems();\n this.$echo\n .private(`employee.${this.getUser.employee_id}`)\n .listen('SmartBalanceChanged', () => this.storeAdapter.User.actions.getData())\n .listen('LiqPayDonationProcessed', payload => {\n if (payload.status === 'finished') {\n this.storeAdapter.Toasts.mutations.addMessage(`${payload.quantity} UAH was successfully donated.`);\n }\n else {\n this.storeAdapter.Toasts.mutations.addWarning(`Donation ${payload.quantity} UAH was failed.`);\n }\n this.storeAdapter.Toasts.mutations.showAll();\n });\n },\n updated() {\n this.findOverflowedIndex();\n if (this.overflowedItems.items.length) {\n this.attachOverflowedMenus();\n }\n },\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser', 'isSidebarFixed', 'isSidebarOpenOnMobile'])), { intemsConfig() {\n return this.storeAdapter.Config.state.data;\n },\n userInfo() {\n return this.storeAdapter.User.state.data;\n },\n uncheckedCounter() {\n var _a;\n if ((_a = this.storeAdapter.HomePage_OnBoardingPlan.getters) === null || _a === void 0 ? void 0 : _a.notCheckedTasksLength) {\n return this.storeAdapter.HomePage_OnBoardingPlan.getters.notCheckedTasksLength;\n }\n return this.userInfo.welcomeProgram.unchecked_welcome_program_questions;\n },\n canSeeGitBranch() {\n return this.$can('read', 'feature_show_git_branch');\n },\n intelliHubIconsClassName() {\n return this.isIntelliHub ? 'icons hide-on-med-and-down' : 'icons fixed-padding hide-on-med-and-down';\n },\n intelliHubAvatarClassName() {\n return this.isIntelliHub ? 'intellihub-user-wrapper' : 'intellihub-user-wrapper fixed-padding';\n },\n intelliHubNotificationsClassName() {\n return this.isIntelliHub ? 'notifications-bell' : 'notifications-bell fixed-padding';\n },\n isIntelliHub() {\n return this.projectName === _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"].IntelliHub;\n },\n isLiteDomain() {\n return this.projectName === _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"].Lite;\n },\n isManagersPortal() {\n return this.projectName === _main__WEBPACK_IMPORTED_MODULE_8__[\"ProjectName\"].ManagersPortal;\n },\n allowedToGiveKudos() {\n return this.userInfo.kudos_balance > 0;\n },\n vacationBalance() {\n return this.userInfo.vacation_balance;\n },\n overflowMenuItemHeight() {\n return this.overflowedMenus[0].querySelector('li').getBoundingClientRect().height;\n },\n overflowMenuMaxItemCount() {\n const itemCountPerMenu = [];\n this.overflowedMenus.forEach(menu => {\n itemCountPerMenu.push(menu.querySelectorAll(':scope > li').length);\n });\n return Math.max(...itemCountPerMenu);\n },\n isMobileOnly() {\n return mobile_device_detect__WEBPACK_IMPORTED_MODULE_1__[\"isMobileOnly\"];\n } }),\n watch: {\n // kostyl to close dropdown after back button press\n $route() {\n if (this.mobileMenu) {\n this.mobileMenu.close();\n }\n },\n 'overflowedItems.startIndex': {\n handler(index) {\n this.overflowedItems.items = this.items.slice(index);\n }\n }\n },\n methods: Object.assign(Object.assign(Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['markAsRead'])), Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['toggleSidebarFixation', 'toggleSidebarOnMobile'])), { handleSidebarTogglerClick() {\n if (!this.isMobileOnly) {\n this.toggleSidebarFixation();\n }\n else {\n this.toggleSidebarOnMobile();\n }\n },\n goTo(routeName) {\n this.helperFunctions.router.push({ name: routeName });\n },\n modifyOpenedAdminItems(indexItem) {\n const collapsibleWrapper = document.getElementById('admin_collapsible');\n const collaplsedAdminItem = collapsibleWrapper.children[indexItem].children[1];\n const animationSmoothness = 0.4;\n const transitionDuration = `${collaplsedAdminItem.children.length * animationSmoothness}s`;\n collaplsedAdminItem.style.transitionDuration = transitionDuration;\n this.adminItems = this.adminItems.map((item, index) => item.children && index === indexItem ? Object.assign(Object.assign({}, item), { opened: !item.opened }) : item);\n },\n toggleSideNavVisibility() {\n this.sideNavOpened = !this.sideNavOpened;\n },\n attachOverflowItems() {\n this.markOverflowedItems();\n window.addEventListener('resize', this.markOverflowedItems);\n },\n attachOverflowedMenus() {\n this.overflowedMenus = this.$refs.overflowedMenu.querySelectorAll('ul');\n },\n findOverflowedIndex() {\n const items = [...this.$refs['menu-items'].childNodes];\n const { length } = items;\n for (let i = 0; i < length; i++) {\n if (items[i].offsetTop > items[i].clientTop) {\n this.overflowedItems.startIndex = i;\n break;\n }\n }\n },\n markOverflowedItems() {\n this.findOverflowedIndex();\n this.overflowedItems.items =\n this.overflowedItems.startIndex > -1 ? this.items.slice(this.overflowedItems.startIndex) : [];\n },\n logOut() {\n return __awaiter(this, void 0, void 0, function* () {\n const repository = new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](_repositories_BaseUrl__WEBPACK_IMPORTED_MODULE_5__[\"BaseUrl\"].LogOut);\n const data = yield repository.post();\n if (data.data !== undefined) {\n window.location.href = data.data.redirect_url;\n }\n });\n },\n openModalGiveKudos() {\n if (this.allowedToGiveKudos) {\n this.giveKudosComponent = this.giveKudosModalComponent();\n }\n },\n closeModalGiveKudos() {\n this.giveKudosComponent = undefined;\n }, giveKudosModalComponent() {\n return () => Promise.all(/*! import() | kudosForm */[__webpack_require__.e(\"vue\"), __webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"vendors~kudosForm\"), __webpack_require__.e(\"kudosForm\")]).then(__webpack_require__.bind(null, /*! ./components/give-kudos-form/GiveKudosForm.vue */ \"./components/give-kudos-form/GiveKudosForm.vue\"));\n }, setOverflowedMenuHeight() {\n this.overflowedMenus.forEach(menu => {\n menu.style.height = `${this.overflowMenuMaxItemCount * this.overflowMenuItemHeight}px`;\n });\n },\n moveOverflowedMenu() {\n this.isOveflowedMenuMoved = true;\n this.setOverflowedMenuHeight();\n },\n resetOverflowedMenu() {\n this.isOveflowedMenuMoved = false;\n this.overflowedMenus.forEach(menu => {\n menu.style.height = 'auto';\n });\n },\n initializeRejectionComponent(rejectionData) {\n this.rejectConfirm = rejectionData.rejectionComponent;\n this.rejectedNotification = rejectionData.notification;\n },\n confirmedReject(payload) {\n const action = this.rejectedNotification.actions.first(item => item.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_10__[\"NotificationCategory\"].unpaid_leave\n ].includes(this.rejectedNotification.category)) {\n action.body.rejection_reason = payload.comment;\n }\n else {\n action.body.reject_reason = payload;\n }\n this.requestNotification(action);\n this.unsetRejection();\n },\n unsetRejection() {\n this.rejectConfirm = null;\n },\n requestNotification(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.markAsRead(this.rejectedNotification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_9__[\"RequestMethod\"].put, action.body);\n });\n },\n initializeItems() {\n this.items = [\n {\n name: 'Time',\n link: 'Time',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_time'\n },\n {\n name: 'Leaves and Absences',\n link: this.isLiteDomain ? 'Leaves and Absences' : 'leaves-and-absences/balance',\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_leaves_and_absences'\n },\n {\n name: 'Stats',\n link: 'stats',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_stats'\n },\n {\n name: 'IntelliShare',\n link: this.isLiteDomain ? 'Donation Portal' : 'donations',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_donation_campaigns'\n },\n {\n name: 'Welcome Program',\n link: this.isLiteDomain ? 'On boarding page check list' : 'admin/welcome-program',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_welcome_program'\n },\n {\n name: 'Operations',\n link: this.isLiteDomain ? 'Reporting Branches' : 'projects',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_projects'\n },\n {\n name: 'Reports',\n link: 'report/generate-excel',\n toMainDomain: true,\n menuCheck: 'reports_tab'\n },\n {\n name: 'Team',\n link: 'view-employees',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_team'\n },\n {\n name: 'News',\n link: 'news',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_news'\n },\n {\n name: 'Career Hub',\n link: this.config().careerSiteUrl,\n isDirectLink: true,\n menuCheck: 'menu_career_hub'\n },\n {\n name: 'Service desk',\n link: 'https://jira.intellias.com/servicedesk/customer/portals',\n toMainDomain: true,\n menuCheck: 'menu_service_desk',\n blank: true\n },\n {\n name: 'Knowledge base',\n link: 'https://confluence.intellias.com/pages/viewpage.action?pageId=110035843',\n toMainDomain: true,\n menuCheck: 'menu_knowledge_base',\n blank: true\n },\n {\n name: 'IntelliVacancies',\n link: this.isLiteDomain ? 'IntelliVacancies' : 'intelli-vacancies',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_rotation_portal'\n },\n {\n name: 'Book a desk',\n link: 'https://intellias.officespacesoftware.com/visual-directory',\n toMainDomain: true,\n menuCheck: 'menu_office_space',\n blank: true\n },\n {\n name: 'Company EA Model',\n link: this.isLiteDomain ? 'Company EA Model' : 'ea',\n toLite: !this.isLiteDomain,\n toMainDomain: false,\n menuCheck: 'menu_ea_model'\n },\n {\n name: 'Admin',\n menuCheck: 'menu_admin',\n adminMenu: true\n },\n {\n name: 'Time Imports',\n menuCheck: 'menu_here_board_page',\n hereBoardMenu: true\n }\n ];\n },\n initializeAdminItems() {\n this.adminItems = [\n {\n name: 'IT support',\n menuCheck: 'menu_admin_it_support',\n opened: false,\n children: [\n {\n name: 'Access roles',\n menuCheck: 'setup_roles',\n link: this.isLiteDomain ? 'Access Roles' : 'access-roles',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Work areas',\n menuCheck: 'menu_work_areas',\n link: 'work-areas',\n toMainDomain: true\n },\n {\n name: 'Technical work',\n menuCheck: 'menu_admin_it_support_technical_work',\n link: 'technical-work',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Access cards',\n menuCheck: 'menu_admin_it_support_access_cards',\n link: 'access-cards',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Client IPs',\n menuCheck: 'menu_admin_it_support_client_ips',\n link: 'clients/index.php',\n toMainDomain: true\n },\n {\n name: 'View logs',\n menuCheck: 'menu_admin_it_support_view_logs',\n link: this.isLiteDomain ? 'view_logs' : 'view-logs',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Service page',\n menuCheck: 'menu_service_page',\n link: this.isLiteDomain ? 'Service' : 'service-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ]\n },\n {\n name: 'HR',\n menuCheck: 'menu_admin_hr',\n opened: false,\n children: [\n {\n name: 'Manage IntelliStore',\n menuCheck: 'menu_intelli_store_manage',\n link: this.isLiteDomain\n ? 'catalog-admin-products-list'\n : \"total-rewards-portal/smart-catalog/admin'\",\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Trainings (OLD)',\n menuCheck: 'menu_admin_hr_trainings',\n link: 'eval/index.php',\n toMainDomain: true\n },\n {\n name: 'Trainings (OLD)',\n menuCheck: 'menu_admin_employee_trainings',\n link: 'employees-trainings',\n toMainDomain: true\n },\n {\n name: 'Events',\n menuCheck: 'event_and_training',\n link: this.isLiteDomain ? 'Manage trainings' : 'trainings',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Calendars',\n menuCheck: 'menu_admin_holiday_calendar',\n link: 'calendars',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage smarts',\n menuCheck: 'menu_admin_hr_manage_smarts',\n link: 'virtual-money/index.php',\n toMainDomain: true\n },\n {\n name: 'Manage news',\n menuCheck: 'menu_admin_hr_news',\n link: 'admin/news',\n toMainDomain: true\n },\n {\n name: 'Compensation packages',\n menuCheck: 'menu_admin_non_comp_list',\n link: this.isLiteDomain ? 'compensation-package' : 'admin/compensation-package',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Banners',\n menuCheck: 'menu_admin_banners',\n link: this.isLiteDomain ? 'Banners List' : 'banners',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage Welcome Program',\n link: this.isLiteDomain ? 'Manage Welcome Program' : 'admin/welcome-program',\n toMainDomain: false,\n toLite: !this.isLiteDomain,\n menuCheck: 'menu_manage_welcome_program'\n },\n {\n name: 'Jira Satisfaction Survey',\n menuCheck: 'menu_enps_survey_admin',\n link: this.isLiteDomain ? 'Jira Satisfaction Survey List' : 'jira-satisfaction-survey',\n toMainDomain: false,\n toLite: !this.isLiteDomain\n }\n ]\n },\n {\n name: 'Accountancy',\n menuCheck: 'menu_admin_accountancy',\n link: 'accountancy/detailedReporting',\n toMainDomain: true\n },\n {\n name: 'Countries',\n menuCheck: 'menu_admin_dictionary',\n link: this.isLiteDomain ? 'dictionary' : 'countries',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n },\n initializeHereBoardItems() {\n this.hereBoardItems = [\n {\n name: 'Employee Dashboard',\n menuCheck: 'menu_here_board_page_user',\n link: this.isLiteDomain ? 'Here Board Page' : 'here-board-page',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manager Dashboard',\n menuCheck: 'menu_here_board_page_manager',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Admin Dashboard',\n menuCheck: 'menu_here_board_page_owner',\n link: this.isLiteDomain ? 'Here Board Page Admin' : 'here-board-page-admin',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n }\n ];\n } }),\n data() {\n return {\n flagShowSignOutLinks: false,\n sideNavOpened: false,\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_6__[\"default\"](),\n rejectConfirm: undefined,\n rejectedNotification: undefined,\n giveKudosComponent: undefined,\n items: [],\n adminItems: [],\n hereBoardItems: [],\n overflowedItems: {\n items: [],\n startIndex: -1\n },\n mobileMenu: null,\n overflowedMenus: undefined,\n isOveflowedMenuMoved: false\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./Menu.ts?");
269
223
 
270
224
  /***/ }),
271
225
 
@@ -1212,7 +1166,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony default export */
1212
1166
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1213
1167
 
1214
1168
  "use strict";
1215
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../main */ \"./main.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\n\nconst titlesMap = new Map([\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject, 'Reject'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].confirm, 'Confirm'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].view, 'View']\n]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mounted() {\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Rejected, this.handleError, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n },\n computed: Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])),\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['read', 'markAsRead', 'process', 'markAsProcessed'])), { submitAction(action) {\n if (action.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject && _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"confirmRejections\"].includes(this.notification.category)) {\n this.actionProcessing = true;\n const rejectionComponent = this.rejectionComponent();\n this.$emit('rejection-component', {\n rejectionComponent,\n notification: this.notification\n });\n return;\n }\n this.request(action);\n },\n request(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.actionProcessing = true;\n this.markAsRead(this.notification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"RequestMethod\"].put, action.body);\n });\n },\n // eslint-disable-next-line complexity\n proceedToView(view) {\n return __awaiter(this, void 0, void 0, function* () {\n if (this.notification.isNew) {\n yield this.read(this.notification);\n }\n const action = view.action ? view.action : view.url;\n if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].remote) {\n window.open(action, '_blank');\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].career) {\n window.location.href = `${this.config.careerSiteUrl}${action}`;\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].old) {\n window.location.href = `${this.config.oldSiteUrl}${action}`;\n }\n else if (this.$router.currentRoute.path !== action) {\n yield this.$router.push(action.replace('api/', ''));\n }\n });\n },\n handleSuccess() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addMessage('The request has been processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n this.markAsProcessed(this.notification);\n this.actionProcessing = false;\n });\n },\n handleError() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addWarning('Action failed. The request had been already processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n yield this.process(this.notification);\n if (typeof this.errorAction === 'function') {\n this.errorAction();\n }\n this.actionProcessing = false;\n });\n }, rejectionComponent() {\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].vacations) {\n return () => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(5)]).then(__webpack_require__.bind(null, /*! ./confirms/VacationRejectionConfirm.vue */ \"./mixins/notifications/confirms/VacationRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].unpaid_leave) {\n return () => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(4)]).then(__webpack_require__.bind(null, /*! ./confirms/UnpaidLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].profile_update) {\n return () => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(2)]).then(__webpack_require__.bind(null, /*! ./confirms/AssetRejectionConfirm.vue */ \"./mixins/notifications/confirms/AssetRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].sick_leaves) {\n return () => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3)]).then(__webpack_require__.bind(null, /*! ./confirms/SickLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/SickLeaveRejectionConfirm.vue\"));\n }\n return null;\n }, isExpired(action) {\n return action.expired_at && action.expired_at.isBefore(moment__WEBPACK_IMPORTED_MODULE_1___default()());\n },\n title(action) {\n return action.title ? action.title : titlesMap.get(action.type);\n } }),\n data() {\n return {\n actionProcessing: false,\n userRepository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__[\"default\"](),\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__[\"default\"]()\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./mixins/notifications/ActionProcessing.ts?");
1169
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ \"./node_modules/vuex/dist/vuex.esm.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! moment */ \"./node_modules/moment/moment.js\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../repositories/BaseRepository */ \"./repositories/BaseRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _main__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../main */ \"./main.ts\");\nvar __awaiter = (undefined && undefined.__awaiter) || function (thisArg, _arguments, P, generator) {\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\n return new (P || (P = Promise))(function (resolve, reject) {\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\n step((generator = generator.apply(thisArg, _arguments || [])).next());\n });\n};\n\n\n\n\n\n\n\n\n\nconst titlesMap = new Map([\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject, 'Reject'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].confirm, 'Confirm'],\n [_models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].view, 'View']\n]);\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n mounted() {\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n this.baseRepository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_3__[\"ResponseState\"].Rejected, this.handleError, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_4__[\"DefaultContext\"]);\n },\n computed: Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('Config', ['config'])),\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapActions\"])('User/Notifications', ['read', 'markAsRead', 'process', 'markAsProcessed'])), { submitAction(action) {\n if (action.type === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ActionType\"].reject && _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"confirmRejections\"].includes(this.notification.category)) {\n this.actionProcessing = true;\n const rejectionComponent = this.rejectionComponent();\n this.$emit('rejection-component', {\n rejectionComponent,\n notification: this.notification\n });\n return;\n }\n this.request(action);\n },\n request(action) {\n return __awaiter(this, void 0, void 0, function* () {\n this.actionProcessing = true;\n this.markAsRead(this.notification);\n yield this.baseRepository.request(action.action, action.method ? action.method : _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"RequestMethod\"].put, action.body);\n });\n },\n // eslint-disable-next-line complexity\n proceedToView(view) {\n return __awaiter(this, void 0, void 0, function* () {\n if (this.notification.isNew) {\n yield this.read(this.notification);\n }\n const action = view.action ? view.action : view.url;\n if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].remote) {\n window.open(action, '_blank');\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].career) {\n window.location.href = `${this.config.careerSiteUrl}${action}`;\n }\n else if (view.proceedTo === _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_5__[\"ProceedTo\"].old) {\n window.location.href = `${this.config.oldSiteUrl}${action}`;\n }\n else if (this.$router.currentRoute.path !== action) {\n yield this.$router.push(action.replace('api/', ''));\n }\n });\n },\n handleSuccess() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addMessage('The request has been processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n this.markAsProcessed(this.notification);\n this.actionProcessing = false;\n });\n },\n handleError() {\n return __awaiter(this, void 0, void 0, function* () {\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.addWarning('Action failed. The request had been already processed.');\n _main__WEBPACK_IMPORTED_MODULE_8__[\"myOptions\"].storeAdapter.Toasts.mutations.showAll();\n yield this.process(this.notification);\n if (typeof this.errorAction === 'function') {\n this.errorAction();\n }\n this.actionProcessing = false;\n });\n }, rejectionComponent() {\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].vacations) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/VacationRejectionConfirm.vue */ \"./mixins/notifications/confirms/VacationRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].unpaid_leave) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/UnpaidLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/UnpaidLeaveRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].profile_update) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/AssetRejectionConfirm.vue */ \"./mixins/notifications/confirms/AssetRejectionConfirm.vue\"));\n }\n if (this.notification.category === _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_6__[\"NotificationCategory\"].sick_leaves) {\n return () => Promise.all(/*! import() | rejectComponent */[__webpack_require__.e(\"vendors~kudosForm~rejectComponent\"), __webpack_require__.e(\"rejectComponent\")]).then(__webpack_require__.bind(null, /*! ./confirms/SickLeaveRejectionConfirm.vue */ \"./mixins/notifications/confirms/SickLeaveRejectionConfirm.vue\"));\n }\n return null;\n }, isExpired(action) {\n return action.expired_at && action.expired_at.isBefore(moment__WEBPACK_IMPORTED_MODULE_1___default()());\n },\n title(action) {\n return action.title ? action.title : titlesMap.get(action.type);\n } }),\n data() {\n return {\n actionProcessing: false,\n userRepository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_7__[\"default\"](),\n baseRepository: new _repositories_BaseRepository__WEBPACK_IMPORTED_MODULE_2__[\"default\"]()\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./mixins/notifications/ActionProcessing.ts?");
1216
1170
 
1217
1171
  /***/ }),
1218
1172