@intellias/menu 1.0.10 → 1.0.12

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/dist/css/main.css CHANGED
@@ -1774,500 +1774,3 @@ a:hover {
1774
1774
  .give-kudos .vs__clear svg {
1775
1775
  display: none;
1776
1776
  }
1777
-
1778
- /**
1779
- Support for SASS is deprecated as of v3.18.
1780
-
1781
- The files remain here if your build is dependent on them
1782
- but they will not receive updates in future releases. All
1783
- SASS variables have been translated into CSS variables, so
1784
- migration should be quite simple if you'd like to move over.
1785
-
1786
- In v4, these files will be removed.
1787
- */
1788
- .v-select {
1789
- position: relative;
1790
- font-family: inherit;
1791
- }
1792
- .v-select,
1793
- .v-select * {
1794
- box-sizing: border-box;
1795
- }
1796
-
1797
- /* KeyFrames */
1798
- @keyframes vSelectSpinner {
1799
- 0% {
1800
- transform: rotate(0deg);
1801
- }
1802
- 100% {
1803
- transform: rotate(360deg);
1804
- }
1805
- }
1806
- /* Dropdown Default Transition */
1807
- .vs__fade-enter-active,
1808
- .vs__fade-leave-active {
1809
- pointer-events: none;
1810
- transition: opacity 0.15s cubic-bezier(1, 0.5, 0.8, 1);
1811
- }
1812
- .vs__fade-enter,
1813
- .vs__fade-leave-to {
1814
- opacity: 0;
1815
- }
1816
-
1817
- /** Component States */
1818
- /*
1819
- * Disabled
1820
- *
1821
- * When the component is disabled, all interaction
1822
- * should be prevented. Here we modify the bg color,
1823
- * and change the cursor displayed on the interactive
1824
- * components.
1825
- */
1826
- .vs--disabled .vs__dropdown-toggle,
1827
- .vs--disabled .vs__clear,
1828
- .vs--disabled .vs__search,
1829
- .vs--disabled .vs__selected,
1830
- .vs--disabled .vs__open-indicator {
1831
- cursor: not-allowed;
1832
- background-color: #f8f8f8;
1833
- }
1834
-
1835
- /*
1836
- * RTL - Right to Left Support
1837
- *
1838
- * Because we're using a flexbox layout, the `dir="rtl"`
1839
- * HTML attribute does most of the work for us by
1840
- * rearranging the child elements visually.
1841
- */
1842
- .v-select[dir=rtl] .vs__actions {
1843
- padding: 0 3px 0 6px;
1844
- }
1845
- .v-select[dir=rtl] .vs__clear {
1846
- margin-left: 6px;
1847
- margin-right: 0;
1848
- }
1849
- .v-select[dir=rtl] .vs__deselect {
1850
- margin-left: 0;
1851
- margin-right: 2px;
1852
- }
1853
- .v-select[dir=rtl] .vs__dropdown-menu {
1854
- text-align: right;
1855
- }
1856
-
1857
- /**
1858
- Dropdown Toggle
1859
-
1860
- The dropdown toggle is the primary wrapper of the component. It
1861
- has two direct descendants: .vs__selected-options, and .vs__actions.
1862
-
1863
- .vs__selected-options holds the .vs__selected's as well as the
1864
- main search input.
1865
-
1866
- .vs__actions holds the clear button and dropdown toggle.
1867
- */
1868
- .vs__dropdown-toggle {
1869
- -webkit-appearance: none;
1870
- -moz-appearance: none;
1871
- appearance: none;
1872
- display: flex;
1873
- padding: 0 0 4px 0;
1874
- background: none;
1875
- border: 1px solid rgba(60, 60, 60, 0.26);
1876
- border-radius: 4px;
1877
- white-space: normal;
1878
- }
1879
- .vs__selected-options {
1880
- display: flex;
1881
- flex-basis: 100%;
1882
- flex-grow: 1;
1883
- flex-wrap: wrap;
1884
- padding: 0 2px;
1885
- position: relative;
1886
- }
1887
- .vs__actions {
1888
- display: flex;
1889
- align-items: center;
1890
- padding: 4px 6px 0 3px;
1891
- }
1892
-
1893
- /* Dropdown Toggle States */
1894
- .vs--searchable .vs__dropdown-toggle {
1895
- cursor: text;
1896
- }
1897
- .vs--unsearchable .vs__dropdown-toggle {
1898
- cursor: pointer;
1899
- }
1900
- .vs--open .vs__dropdown-toggle {
1901
- border-bottom-color: transparent;
1902
- border-bottom-left-radius: 0;
1903
- border-bottom-right-radius: 0;
1904
- }
1905
- .vs__open-indicator {
1906
- fill: rgba(60, 60, 60, 0.5);
1907
- transform: scale(1);
1908
- transition: transform 150ms cubic-bezier(1, -0.115, 0.975, 0.855);
1909
- transition-timing-function: cubic-bezier(1, -0.115, 0.975, 0.855);
1910
- }
1911
- .vs--open .vs__open-indicator {
1912
- transform: rotate(180deg) scale(1);
1913
- }
1914
- .vs--loading .vs__open-indicator {
1915
- opacity: 0;
1916
- }
1917
-
1918
- /* Clear Button */
1919
- .vs__clear {
1920
- fill: rgba(60, 60, 60, 0.5);
1921
- padding: 0;
1922
- border: 0;
1923
- background-color: transparent;
1924
- cursor: pointer;
1925
- margin-right: 8px;
1926
- }
1927
-
1928
- /* Dropdown Menu */
1929
- .vs__dropdown-menu {
1930
- display: block;
1931
- box-sizing: border-box;
1932
- position: absolute;
1933
- top: calc(100% - 1px);
1934
- left: 0;
1935
- z-index: 1000;
1936
- padding: 5px 0;
1937
- margin: 0;
1938
- width: 100%;
1939
- max-height: 350px;
1940
- min-width: 160px;
1941
- overflow-y: auto;
1942
- box-shadow: 0px 3px 6px 0px rgba(0, 0, 0, 0.15);
1943
- border: 1px solid rgba(60, 60, 60, 0.26);
1944
- border-top-style: none;
1945
- border-radius: 0 0 4px 4px;
1946
- text-align: left;
1947
- list-style: none;
1948
- background: #fff;
1949
- }
1950
- .vs__no-options {
1951
- text-align: center;
1952
- }
1953
-
1954
- /* List Items */
1955
- .vs__dropdown-option {
1956
- line-height: 1.42857143;
1957
- /* Normalize line height */
1958
- display: block;
1959
- padding: 3px 20px;
1960
- clear: both;
1961
- color: #333;
1962
- /* Overrides most CSS frameworks */
1963
- white-space: nowrap;
1964
- cursor: pointer;
1965
- }
1966
- .vs__dropdown-option--highlight {
1967
- background: var(--accent-primary-disable);
1968
- color: var(--text-primary);
1969
- }
1970
- .vs__dropdown-option--deselect {
1971
- background: #fb5858;
1972
- color: #fff;
1973
- }
1974
- .vs__dropdown-option--disabled {
1975
- background: inherit;
1976
- color: rgba(60, 60, 60, 0.5);
1977
- cursor: inherit;
1978
- }
1979
-
1980
- /* Selected Tags */
1981
- .vs__selected {
1982
- display: flex;
1983
- align-items: center;
1984
- background-color: var(--select);
1985
- border: 1px solid rgba(60, 60, 60, 0.26);
1986
- border-radius: 4px;
1987
- color: #333;
1988
- line-height: normal;
1989
- margin: 4px 2px 0px 2px;
1990
- padding: 0 0.25em;
1991
- z-index: 0;
1992
- }
1993
- .vs__deselect {
1994
- display: inline-flex;
1995
- -webkit-appearance: none;
1996
- -moz-appearance: none;
1997
- appearance: none;
1998
- margin-left: 4px;
1999
- padding: 0;
2000
- border: 0;
2001
- cursor: pointer;
2002
- background: none;
2003
- fill: rgba(60, 60, 60, 0.5);
2004
- text-shadow: 0 1px 0 #fff;
2005
- }
2006
-
2007
- /* States */
2008
- .vs--single .vs__selected {
2009
- background-color: transparent;
2010
- border-color: transparent;
2011
- }
2012
- .vs--single.vs--open .vs__selected, .vs--single.vs--loading .vs__selected {
2013
- position: absolute;
2014
- opacity: 0.4;
2015
- }
2016
- .vs--single.vs--searching .vs__selected {
2017
- display: none;
2018
- }
2019
-
2020
- /* Search Input */
2021
- /**
2022
- * Super weird bug... If this declaration is grouped
2023
- * below, the cancel button will still appear in chrome.
2024
- * If it's up here on it's own, it'll hide it.
2025
- */
2026
- .vs__search::-webkit-search-cancel-button {
2027
- display: none;
2028
- }
2029
- .vs__search::-webkit-search-decoration,
2030
- .vs__search::-webkit-search-results-button,
2031
- .vs__search::-webkit-search-results-decoration,
2032
- .vs__search::-ms-clear {
2033
- display: none;
2034
- }
2035
- .vs__search,
2036
- .vs__search:focus {
2037
- -webkit-appearance: none;
2038
- -moz-appearance: none;
2039
- appearance: none;
2040
- line-height: normal;
2041
- font-size: 1em;
2042
- border: 1px solid transparent;
2043
- border-left: none;
2044
- outline: none;
2045
- margin: 4px 0 0 0;
2046
- padding: 0 7px;
2047
- background: none;
2048
- box-shadow: none;
2049
- width: 0;
2050
- max-width: 100%;
2051
- flex-grow: 1;
2052
- z-index: 1;
2053
- }
2054
- .vs__search::-moz-placeholder {
2055
- color: inherit;
2056
- }
2057
- .vs__search::placeholder {
2058
- color: inherit;
2059
- }
2060
-
2061
- /**
2062
- States
2063
- */
2064
- .vs--unsearchable .vs__search {
2065
- opacity: 1;
2066
- }
2067
- .vs--unsearchable:not(.vs--disabled) .vs__search {
2068
- cursor: pointer;
2069
- }
2070
- .vs--single.vs--searching:not(.vs--open):not(.vs--loading) .vs__search {
2071
- opacity: 0.2;
2072
- }
2073
-
2074
- /* Loading Spinner */
2075
- .vs__spinner {
2076
- align-self: center;
2077
- opacity: 0;
2078
- font-size: 5px;
2079
- text-indent: -9999em;
2080
- overflow: hidden;
2081
- border-top: 0.9em solid rgba(100, 100, 100, 0.1);
2082
- border-right: 0.9em solid rgba(100, 100, 100, 0.1);
2083
- border-bottom: 0.9em solid rgba(100, 100, 100, 0.1);
2084
- border-left: 0.9em solid rgba(60, 60, 60, 0.45);
2085
- transform: translateZ(0);
2086
- animation: vSelectSpinner 1.1s infinite linear;
2087
- transition: opacity 0.1s;
2088
- }
2089
- .vs__spinner,
2090
- .vs__spinner:after {
2091
- border-radius: 50%;
2092
- width: 5em;
2093
- height: 5em;
2094
- }
2095
-
2096
- /* Loading Spinner States */
2097
- .vs--loading .vs__spinner {
2098
- opacity: 1;
2099
- }
2100
- .v-select {
2101
- font-size: var(--font-size-14);
2102
- }
2103
- .v-select .vs__selected {
2104
- color: var(--text-primary);
2105
- }
2106
- .v-select .vs__dropdown-toggle {
2107
- border: solid 1px var(--border);
2108
- border-radius: var(--border-radius-6);
2109
- background-color: var(--surface-primary);
2110
- padding: 0 0 3px 0;
2111
- min-height: 40px;
2112
- }
2113
- .v-select .vs__dropdown-toggle .vs__search {
2114
- color: var(--text-primary);
2115
- margin: 4px 0 0 0;
2116
- padding: 0;
2117
- height: initial;
2118
- max-width: 100%;
2119
- width: 0;
2120
- font-size: var(--font-size-14);
2121
- border-bottom: 0 !important;
2122
- }
2123
- .v-select .vs__dropdown-toggle .vs__search:focus {
2124
- border-bottom: 0 !important;
2125
- box-shadow: none !important;
2126
- }
2127
- .v-select .vs__dropdown-toggle .vs__search:only-child {
2128
- padding: 0 7px 0 13px;
2129
- }
2130
- .v-select .vs__dropdown-toggle .vs__search::-moz-placeholder {
2131
- font-size: var(--font-size-14);
2132
- color: var(--text-disable);
2133
- font-weight: normal;
2134
- }
2135
- .v-select .vs__dropdown-toggle .vs__search::placeholder {
2136
- font-size: var(--font-size-14);
2137
- color: var(--text-disable);
2138
- font-weight: normal;
2139
- }
2140
- .v-select .vs__dropdown-toggle .vs__search::-moz-placeholder {
2141
- font-size: var(--font-size-14);
2142
- color: var(--text-primary);
2143
- font-weight: normal;
2144
- }
2145
- .v-select .vs__dropdown-toggle .vs__selected {
2146
- border: 0;
2147
- padding: 6px 12px 6px 12px;
2148
- border-radius: 15px;
2149
- font-size: var(--font-size-12);
2150
- max-width: 92%;
2151
- }
2152
- .v-select .vs__dropdown-toggle .vs__actions {
2153
- padding: 4px 15px 0 3px;
2154
- }
2155
- .v-select .vs__dropdown-menu .vs__dropdown-option {
2156
- display: flex;
2157
- align-items: center;
2158
- min-height: 45px;
2159
- }
2160
- .v-select.vs--single .vs__selected {
2161
- font-weight: 600;
2162
- font-size: var(--font-size-14);
2163
- }
2164
- .v-select.vs--multiple .vs__selected {
2165
- background-color: var(--surface-tertiary);
2166
- }
2167
- .v-select.vs--open .vs__dropdown-toggle .vs__search {
2168
- padding: 0 7px 0 13px;
2169
- }
2170
- .v-select .arrow-down {
2171
- color: var(--icon-primary);
2172
- background-color: transparent;
2173
- cursor: pointer;
2174
- }
2175
- .v-select .vs__dropdown-menu {
2176
- top: calc(100% + 5px);
2177
- box-shadow: var(--shadow-2);
2178
- border: none;
2179
- border-radius: var(--border-radius-6);
2180
- overflow-x: hidden;
2181
- }
2182
- .v-select .vs__dropdown-menu::-webkit-scrollbar {
2183
- width: 8px;
2184
- }
2185
- .v-select .vs__dropdown-menu::-webkit-scrollbar-track {
2186
- background-color: transparent;
2187
- }
2188
- .v-select .vs__dropdown-menu::-webkit-scrollbar-thumb {
2189
- border-radius: 8px;
2190
- background-color: rgba(131, 149, 167, 0.85);
2191
- }
2192
- .v-select .vs__dropdown-menu .vs__dropdown-option {
2193
- padding: 0 17px;
2194
- word-wrap: break-word;
2195
- white-space: normal;
2196
- }
2197
- .v-select .vs__dropdown-menu .vs__dropdown-option .option-with-image {
2198
- min-height: 40px;
2199
- }
2200
- .v-select .vs__dropdown-menu .vs__dropdown-option .option-with-image .text-block {
2201
- margin-left: 15px;
2202
- text-overflow: ellipsis;
2203
- }
2204
- .v-select .vs__dropdown-menu .vs__dropdown-option .option-with-image .text-block .text-name {
2205
- font-size: var(--font-size-14);
2206
- font-weight: 600;
2207
- }
2208
- .v-select .vs__dropdown-menu .vs__dropdown-option .option-with-image .text-block .text-position {
2209
- font-size: var(--font-size-12);
2210
- color: var(--text-tertiary);
2211
- }
2212
- .v-select .vs__dropdown-menu .vs__dropdown-option--selected {
2213
- background-color: var(--select);
2214
- color: var(--text-primary);
2215
- cursor: default;
2216
- }
2217
- .v-select.vs--disabled.vs--multiple .vs__dropdown-toggle .vs__selected {
2218
- background-color: var(--surface-tertiary);
2219
- }
2220
- .v-select.vs--disabled .vs__dropdown-toggle {
2221
- color: var(--icon-primary);
2222
- background-color: var(--disable);
2223
- }
2224
- .v-select.vs--disabled .vs__dropdown-toggle .vs__selected {
2225
- font-weight: 400;
2226
- }
2227
- .v-select.vs--disabled .vs__dropdown-toggle .vs__search {
2228
- background-color: var(--disable);
2229
- }
2230
- .v-select.vs--open .vs__dropdown-toggle {
2231
- border: solid 1px var(--accent-primary);
2232
- }
2233
- .v-select.vs--open .vs__open-indicator {
2234
- fill: var(--accent-primary);
2235
- }
2236
- .v-select.vs--open .icon-small {
2237
- color: var(--accent-primary);
2238
- transform: rotate(180deg) !important;
2239
- }
2240
- .v-select .deselect-icon {
2241
- width: 6px;
2242
- height: 6px;
2243
- color: var(--icon-primary);
2244
- }
2245
- .v-select.select-with-avatars .vs__selected {
2246
- padding: 0 10px 0 0;
2247
- margin-left: 10px;
2248
- }
2249
- .v-select.select-with-avatars .option-with-image {
2250
- display: flex;
2251
- align-items: center;
2252
- }
2253
- .v-select.select-with-avatars .option-with-image .text-wrapper {
2254
- margin-left: 10px;
2255
- font-size: var(--font-size-12);
2256
- }
2257
- .v-select.select-with-avatars .option-with-image .option-value {
2258
- padding-left: 5px;
2259
- }
2260
- .v-select.select-with-avatars .option-with-image .option-value .label {
2261
- font-size: var(--font-size-12);
2262
- line-height: var(--line-height-16);
2263
- color: var(--text-primary);
2264
- }
2265
- .v-select.select-with-avatars .option-with-image .option-value .position {
2266
- font-size: var(--font-size-10);
2267
- line-height: var(--line-height-16);
2268
- color: var(--text-secondary);
2269
- }
2270
- .v-select.select-with-avatars .deselect-icon {
2271
- margin-top: 3px;
2272
- margin-left: 13px;
2273
- }
package/dist/js/main.js CHANGED
@@ -219,7 +219,7 @@ return /******/ (function(modules) { // webpackBootstrap
219
219
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
220
220
 
221
221
  "use strict";
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 _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n/* harmony import */ var _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/onboarding-sign/OnBoardingSign.vue */ \"./components/onboarding-sign/OnBoardingSign.vue\");\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\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 OnBoardingSign: _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__[\"default\"]\n },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n subMenus: {\n type: Array\n },\n layout: {\n type: _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n required: true\n }\n },\n provide() {\n return {\n layout: this.layout,\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 || this.isManagersPortal\n ? 'intellihub-user-wrapper'\n : 'intellihub-user-wrapper fixed-padding';\n },\n intelliHubNotificationsClassName() {\n if (this.isIntelliHub || this.isManagersPortal) {\n return 'notifications-bell';\n }\n if (this.isLiteDomain) {\n return 'notifications-bell fixed-padding';\n }\n },\n isIntelliHub() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].IntelliHub;\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Lite;\n },\n isManagersPortal() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].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'])), { 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_8__[\"RequestMethod\"].put, action.body);\n });\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 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 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_8__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"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 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 _models_user_NotificationActionModel__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./models/user/NotificationActionModel */ \"./models/user/NotificationActionModel.ts\");\n/* harmony import */ var _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./models/user/NotificationModel */ \"./models/user/NotificationModel.ts\");\n/* harmony import */ var _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./models/MenuLayouts */ \"./models/MenuLayouts.ts\");\n/* harmony import */ var _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./components/onboarding-sign/OnBoardingSign.vue */ \"./components/onboarding-sign/OnBoardingSign.vue\");\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\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 OnBoardingSign: _components_onboarding_sign_OnBoardingSign_vue__WEBPACK_IMPORTED_MODULE_11__[\"default\"]\n },\n props: {\n helperFunctions: {\n type: Array\n },\n storeAdapter: {\n type: Object\n },\n subMenus: {\n type: Array\n },\n layout: {\n type: _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"],\n required: true\n }\n },\n provide() {\n return {\n layout: this.layout,\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 || this.isManagersPortal\n ? 'intellihub-user-wrapper'\n : 'intellihub-user-wrapper fixed-padding';\n },\n intelliHubNotificationsClassName() {\n if (this.isIntelliHub || this.isManagersPortal) {\n return 'notifications-bell';\n }\n if (this.isLiteDomain) {\n return 'notifications-bell fixed-padding';\n }\n },\n isIntelliHub() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].IntelliHub;\n },\n isLiteDomain() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Lite;\n },\n isManagersPortal() {\n return this.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"default\"].Portals && this.$route.meta.layout === _models_MenuLayouts__WEBPACK_IMPORTED_MODULE_10__[\"PortalsAppLayout\"].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'])), { 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_8__[\"RequestMethod\"].put, action.body);\n });\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 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 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_8__[\"ActionType\"].reject).clone();\n if ([\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].vacations,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"NotificationCategory\"].sick_leaves,\n _models_user_NotificationModel__WEBPACK_IMPORTED_MODULE_9__[\"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 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: 'manage-smarts',\n toLite: !this.isLiteDomain,\n toMainDomain: false\n },\n {\n name: 'Manage news',\n menuCheck: 'menu_admin_hr_news',\n link: 'manage-news-list',\n toLite: !this.isLiteDomain,\n toMainDomain: false\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?");
223
223
 
224
224
  /***/ }),
225
225
 
@@ -1961,7 +1961,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
1961
1961
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1962
1962
 
1963
1963
  "use strict";
1964
- 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 _vm.isShowingSign ? _c(\"div\", {\n staticClass: \"on-boarding-sign on-boarding-sign--bottom\"\n }, [_c(\"div\", {\n staticClass: \"on-boarding-sign__arrow\"\n }), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"on-boarding-sign__title\"\n }, [_vm._v(\"\\n \" + _vm._s(_vm.currentTitle) + \"\\n \")]), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"on-boarding-sign__description\"\n }, [_vm._v(\"\\n \" + _vm._s(_vm.currentDescription) + \"\\n \")]), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"on-boarding-sign-buttons\"\n }, [_c(\"button\", {\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.skipIntelliHubOnBoarding.apply(null, arguments);\n }\n }\n }, [_vm._v(\"Close\")]), _vm._v(\" \"), _vm.currentSign === _vm.activeSignIndex.Welcome ? _c(\"button\", {\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.nextOnboardingStep.apply(null, arguments);\n }\n }\n }, [_vm._v(\"Next\")]) : _vm._e(), _vm._v(\" \"), _vm.currentSign === _vm.activeSignIndex.NavigateToHub ? _c(\"button\", {\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.navigateToIntelliHub.apply(null, arguments);\n }\n }\n }, [_vm._v(\"\\n Go to IntelliHub\\n \")]) : _vm._e()])]) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://MainMenu/./components/onboarding-sign/OnBoardingSign.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options");
1964
+ 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 _vm.isShowingSign ? _c(\"div\", {\n staticClass: \"on-boarding-sign\"\n }, [_c(\"div\", {\n staticClass: \"on-boarding-sign__arrow\"\n }), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"on-boarding-sign__title\"\n }, [_vm._v(_vm._s(_vm.currentTitle))]), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"on-boarding-sign__description\"\n }, [_vm._v(_vm._s(_vm.currentDescription))]), _vm._v(\" \"), _c(\"div\", {\n staticClass: \"on-boarding-sign-buttons\"\n }, [_c(\"button\", {\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.skipIntelliHubOnBoarding.apply(null, arguments);\n }\n }\n }, [_vm._v(\"Close\")]), _vm._v(\" \"), _vm.currentSign === _vm.activeSignIndex.Welcome ? _c(\"button\", {\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.nextOnboardingStep.apply(null, arguments);\n }\n }\n }, [_vm._v(\"Next\")]) : _vm._e(), _vm._v(\" \"), _vm.currentSign === _vm.activeSignIndex.NavigateToHub ? _c(\"button\", {\n on: {\n click: function ($event) {\n $event.preventDefault();\n return _vm.navigateToIntelliHub.apply(null, arguments);\n }\n }\n }, [_vm._v(\"\\n Go to IntelliHub\\n \")]) : _vm._e()])]) : _vm._e();\n};\nvar staticRenderFns = [];\nrender._withStripped = true;\n\n\n//# sourceURL=webpack://MainMenu/./components/onboarding-sign/OnBoardingSign.vue?./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--6!./node_modules/vue-loader/lib??vue-loader-options");
1965
1965
 
1966
1966
  /***/ }),
1967
1967
 
@@ -7066,7 +7066,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _Sec
7066
7066
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
7067
7067
 
7068
7068
  "use strict";
7069
- 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 _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ErrorsToToastHelper */ \"./helpers/response/ErrorsToToastHelper.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\nvar ActiveSignIndex;\n(function (ActiveSignIndex) {\n ActiveSignIndex[ActiveSignIndex[\"Welcome\"] = 0] = \"Welcome\";\n ActiveSignIndex[ActiveSignIndex[\"NavigateToHub\"] = 1] = \"NavigateToHub\";\n})(ActiveSignIndex || (ActiveSignIndex = {}));\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inject: ['storeAdapter'],\n created() {\n return __awaiter(this, void 0, void 0, function* () {\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Rejected, this.handleReject, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n });\n },\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['setData'])), { skipIntelliHubOnBoarding() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.repository.processIntelliHubOnBoardingFlag(true);\n });\n },\n navigateToIntelliHub() {\n window.location.href = `${this.storeAdapter.Config.state.data.liteSiteUrl}intelli-hub`;\n this.signClosed = true;\n },\n handleSuccess() {\n this.storeAdapter.Toasts.mutations.addMessage(`IntelliHub Onboarding skipped.`);\n this.setData(Object.assign(Object.assign({}, this.getUser), { has_seen_intellihub: true }));\n this.signClosed = true;\n },\n handleReject(error) {\n _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showErrors(error);\n },\n showNextSign() {\n this.currentSign = ActiveSignIndex.NavigateToHub;\n },\n nextOnboardingStep() {\n this.showNextSign();\n } }),\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser'])), { isShowingSign() {\n return !this.signClosed && !this.getUser.has_seen_intellihub;\n },\n currentTitle() {\n return this.introSigns[this.currentSign].title;\n },\n currentDescription() {\n return this.introSigns[this.currentSign].description;\n },\n activeSignIndex() {\n return ActiveSignIndex;\n } }),\n data() {\n return {\n repository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n signClosed: false,\n introSigns: [\n {\n title: 'Welcome to IntelliHub!',\n description: 'On this portal, you can explore and request all services that Intellias offers to you, ensuring a convenient, effective, and motivated work experience. '\n },\n {\n title: 'Find every service we offer',\n description: 'The numerous services previously scattered across INTEMS and Office & IT section in Service Desk are now available for your convenience on IntelliHub. '\n }\n ],\n currentSign: ActiveSignIndex.Welcome\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/onboarding-sign/OnBoardingSign.vue?./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options");
7069
+ 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 _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../repositories/UserRepository */ \"./repositories/UserRepository.ts\");\n/* harmony import */ var _helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../helpers/response/ResponseState */ \"./helpers/response/ResponseState.ts\");\n/* harmony import */ var _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../helpers/response/ResponseHelper */ \"./helpers/response/ResponseHelper.ts\");\n/* harmony import */ var _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../helpers/response/ErrorsToToastHelper */ \"./helpers/response/ErrorsToToastHelper.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\nvar ActiveSignIndex;\n(function (ActiveSignIndex) {\n ActiveSignIndex[ActiveSignIndex[\"Welcome\"] = 0] = \"Welcome\";\n ActiveSignIndex[ActiveSignIndex[\"NavigateToHub\"] = 1] = \"NavigateToHub\";\n})(ActiveSignIndex || (ActiveSignIndex = {}));\n/* harmony default export */ __webpack_exports__[\"default\"] = ({\n inject: ['storeAdapter'],\n created() {\n return __awaiter(this, void 0, void 0, function* () {\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Resolved, this.handleSuccess, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n this.repository.getResponseHelper().subscribe(_helpers_response_ResponseState__WEBPACK_IMPORTED_MODULE_2__[\"ResponseState\"].Rejected, this.handleReject, _helpers_response_ResponseHelper__WEBPACK_IMPORTED_MODULE_3__[\"DefaultContext\"]);\n });\n },\n methods: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapMutations\"])('User', ['setData'])), { skipIntelliHubOnBoarding() {\n return __awaiter(this, void 0, void 0, function* () {\n yield this.repository.processIntelliHubOnBoardingFlag(true);\n });\n },\n navigateToIntelliHub() {\n window.location.href = `${this.storeAdapter.Config.state.data.liteSiteUrl}intelli-hub`;\n this.signClosed = true;\n },\n handleSuccess() {\n this.storeAdapter.Toasts.mutations.addMessage(`IntelliHub Onboarding skipped.`);\n this.setData(Object.assign(Object.assign({}, this.getUser), { has_seen_intellihub: true }));\n this.signClosed = true;\n },\n handleReject(error) {\n _helpers_response_ErrorsToToastHelper__WEBPACK_IMPORTED_MODULE_4__[\"default\"].showErrors(error);\n },\n showNextSign() {\n this.currentSign = ActiveSignIndex.NavigateToHub;\n },\n nextOnboardingStep() {\n this.showNextSign();\n } }),\n computed: Object.assign(Object.assign({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__[\"mapGetters\"])('User', ['getUser'])), { isShowingSign() {\n return !this.signClosed && !this.getUser.has_seen_intellihub;\n },\n currentTitle() {\n return this.introSigns[this.currentSign].title;\n },\n currentDescription() {\n return this.introSigns[this.currentSign].description;\n },\n activeSignIndex() {\n return ActiveSignIndex;\n } }),\n data() {\n return {\n repository: new _repositories_UserRepository__WEBPACK_IMPORTED_MODULE_1__[\"default\"](),\n signClosed: false,\n introSigns: [\n {\n title: 'Welcome to IntelliHub!',\n description: 'IntelliHub is your dedicated portal where you can explore and request all the services that Intellias offers. IntelliHub is one of the key enablers of our corporate culture prioritizing support, development, and growth. Enjoy a seamless, efficient, and motivating work experience and share your valuable feedback with us.'\n },\n {\n title: 'All services are within an easy reach',\n description: 'Find all the services previously scattered across INTEMS and Service Desk within easy reach on IntelliHub. IntelliHub is the only search point for all services that used to reside on the Career Hub, IntelliVacancies, Total Rewards, IntelliShare, IntelliStore, My Referrals, My Profile, and Office & IT sections.'\n }\n ],\n currentSign: ActiveSignIndex.Welcome\n };\n }\n});\n\n\n//# sourceURL=webpack://MainMenu/./components/onboarding-sign/OnBoardingSign.vue?./node_modules/ts-loader??ref--0!./node_modules/vue-loader/lib??vue-loader-options");
7070
7070
 
7071
7071
  /***/ }),
7072
7072
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intellias/menu",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Menu for intems project.",
5
5
  "author": "Intems",
6
6
  "scripts": {