@bigbinary/neeto-molecules 1.11.4 → 1.11.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/dist/Breadcrumbs.js +7 -8
- package/dist/Breadcrumbs.js.map +1 -1
- package/dist/BrowserSupport.js +41 -138
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/Builder.js +65 -319
- package/dist/Builder.js.map +1 -1
- package/dist/CalendarView.js +38 -321
- package/dist/CalendarView.js.map +1 -1
- package/dist/Codeblock.js +14 -207
- package/dist/Codeblock.js.map +1 -1
- package/dist/Columns-702d539a.js +206 -0
- package/dist/Columns-702d539a.js.map +1 -0
- package/dist/Columns.js +16 -342
- package/dist/Columns.js.map +1 -1
- package/dist/ConfirmationModal.js +10 -10
- package/dist/ConfirmationModal.js.map +1 -1
- package/dist/Container.js +4 -1186
- package/dist/Container.js.map +1 -1
- package/dist/CopyToClipboardButton.js +7 -144
- package/dist/CopyToClipboardButton.js.map +1 -1
- package/dist/Currency.js +4 -46
- package/dist/Currency.js.map +1 -1
- package/dist/CustomDomain.js +30 -635
- package/dist/CustomDomain.js.map +1 -1
- package/dist/CustomDomainDashboard.js +41 -2198
- package/dist/CustomDomainDashboard.js.map +1 -1
- package/dist/DateFormat.js +4 -18
- package/dist/DateFormat.js.map +1 -1
- package/dist/DateRangeFilter.js +7 -61
- package/dist/DateRangeFilter.js.map +1 -1
- package/dist/DocumentEditor.js +12 -121
- package/dist/DocumentEditor.js.map +1 -1
- package/dist/DownloadMobileAppCallout.js +4 -4
- package/dist/DownloadMobileAppCallout.js.map +1 -1
- package/dist/DynamicVariables.js +11 -94
- package/dist/DynamicVariables.js.map +1 -1
- package/dist/EmailForm.js +46 -1711
- package/dist/EmailForm.js.map +1 -1
- package/dist/EmailPreview.js +28 -1209
- package/dist/EmailPreview.js.map +1 -1
- package/dist/EmojiPicker.js +5 -73
- package/dist/EmojiPicker.js.map +1 -1
- package/dist/EmojiReactions.js +13 -67
- package/dist/EmojiReactions.js.map +1 -1
- package/dist/ErrorPage.js +1 -15
- package/dist/ErrorPage.js.map +1 -1
- package/dist/FloatingActionMenu.js +72 -1399
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/Header.js +26 -72
- package/dist/Header.js.map +1 -1
- package/dist/HelpPopover.js +14 -96
- package/dist/HelpPopover.js.map +1 -1
- package/dist/IconPicker.js +26 -123
- package/dist/IconPicker.js.map +1 -1
- package/dist/ImageWithFallback.js +8 -144
- package/dist/ImageWithFallback.js.map +1 -1
- package/dist/InlineInput.js +16 -522
- package/dist/InlineInput.js.map +1 -1
- package/dist/IntegrationCard.js +30 -229
- package/dist/IntegrationCard.js.map +1 -1
- package/dist/IntegrationDisconnectAlert.js +4 -46
- package/dist/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/IntegrationWalkthroughModal.js +7 -7
- package/dist/IntegrationWalkthroughModal.js.map +1 -1
- package/dist/IpRestriction.js +16 -196
- package/dist/IpRestriction.js.map +1 -1
- package/dist/KeyboardShortcuts.js +24 -119
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/LoginPage.js +22 -445
- package/dist/LoginPage.js.map +1 -1
- package/dist/MenuBar.js +29 -1293
- package/dist/MenuBar.js.map +1 -1
- package/dist/Metadata.js +27 -82
- package/dist/Metadata.js.map +1 -1
- package/dist/MoreDropdown.js +15 -97
- package/dist/MoreDropdown.js.map +1 -1
- package/dist/NavigationHeader.js +39 -709
- package/dist/NavigationHeader.js.map +1 -1
- package/dist/NeetoWidget.js +15 -234
- package/dist/NeetoWidget.js.map +1 -1
- package/dist/Onboarding.js +16 -1212
- package/dist/Onboarding.js.map +1 -1
- package/dist/PageLoader.js +5 -48
- package/dist/PageLoader.js.map +1 -1
- package/dist/PhoneNumber.js +22 -156
- package/dist/PhoneNumber.js.map +1 -1
- package/dist/ProductEmbed.js +83 -172
- package/dist/ProductEmbed.js.map +1 -1
- package/dist/PublishBlock.js +15 -58
- package/dist/PublishBlock.js.map +1 -1
- package/dist/PublishYourItem.js +9 -1190
- package/dist/PublishYourItem.js.map +1 -1
- package/dist/Rename.js +30 -330
- package/dist/Rename.js.map +1 -1
- package/dist/ResponsiveDevicePicker.js +7 -143
- package/dist/ResponsiveDevicePicker.js.map +1 -1
- package/dist/Schedule.js +62 -331
- package/dist/Schedule.js.map +1 -1
- package/dist/Scrollable.js +6 -89
- package/dist/Scrollable.js.map +1 -1
- package/dist/Search.js +7 -143
- package/dist/Search.js.map +1 -1
- package/dist/Security.js +37 -1573
- package/dist/Security.js.map +1 -1
- package/dist/SendToFields.js +41 -124
- package/dist/SendToFields.js.map +1 -1
- package/dist/Settings.js +32 -488
- package/dist/Settings.js.map +1 -1
- package/dist/ShareViaEmail.js +51 -1746
- package/dist/ShareViaEmail.js.map +1 -1
- package/dist/ShareViaLink.js +60 -314
- package/dist/ShareViaLink.js.map +1 -1
- package/dist/Sidebar.js +143 -406
- package/dist/Sidebar.js.map +1 -1
- package/dist/SubHeader.js +27 -105
- package/dist/SubHeader.js.map +1 -1
- package/dist/SuffixedInput.js +15 -120
- package/dist/SuffixedInput.js.map +1 -1
- package/dist/TableWrapper.js +7 -8
- package/dist/TableWrapper.js.map +1 -1
- package/dist/Taxonomy.js +74 -1780
- package/dist/Taxonomy.js.map +1 -1
- package/dist/ThemeSidebar.js +144 -767
- package/dist/ThemeSidebar.js.map +1 -1
- package/dist/TimeFormat.js +8 -44
- package/dist/TimeFormat.js.map +1 -1
- package/dist/TimezoneMismatchModal.js +11 -65
- package/dist/TimezoneMismatchModal.js.map +1 -1
- package/dist/ToggleFeatureCard.js +20 -157
- package/dist/ToggleFeatureCard.js.map +1 -1
- package/dist/cjs/Breadcrumbs.js +2 -3
- package/dist/cjs/Breadcrumbs.js.map +1 -1
- package/dist/cjs/BrowserSupport.js +8 -105
- package/dist/cjs/BrowserSupport.js.map +1 -1
- package/dist/cjs/Builder.js +16 -270
- package/dist/cjs/Builder.js.map +1 -1
- package/dist/cjs/CalendarView.js +23 -308
- package/dist/cjs/CalendarView.js.map +1 -1
- package/dist/cjs/Codeblock.js +12 -206
- package/dist/cjs/Codeblock.js.map +1 -1
- package/dist/cjs/Columns-069368e2.js +216 -0
- package/dist/cjs/Columns-069368e2.js.map +1 -0
- package/dist/cjs/Columns.js +23 -350
- package/dist/cjs/Columns.js.map +1 -1
- package/dist/cjs/Container.js +4 -1186
- package/dist/cjs/Container.js.map +1 -1
- package/dist/cjs/CopyToClipboardButton.js +10 -147
- package/dist/cjs/CopyToClipboardButton.js.map +1 -1
- package/dist/cjs/Currency.js +4 -46
- package/dist/cjs/Currency.js.map +1 -1
- package/dist/cjs/CustomDomain.js +23 -651
- package/dist/cjs/CustomDomain.js.map +1 -1
- package/dist/cjs/CustomDomainDashboard.js +44 -2227
- package/dist/cjs/CustomDomainDashboard.js.map +1 -1
- package/dist/cjs/DateFormat.js +3 -17
- package/dist/cjs/DateFormat.js.map +1 -1
- package/dist/cjs/DateRangeFilter.js +2 -56
- package/dist/cjs/DateRangeFilter.js.map +1 -1
- package/dist/cjs/DocumentEditor.js +14 -123
- package/dist/cjs/DocumentEditor.js.map +1 -1
- package/dist/cjs/DynamicVariables.js +8 -91
- package/dist/cjs/DynamicVariables.js.map +1 -1
- package/dist/cjs/EmailForm.js +23 -1689
- package/dist/cjs/EmailForm.js.map +1 -1
- package/dist/cjs/EmailPreview.js +8 -1189
- package/dist/cjs/EmailPreview.js.map +1 -1
- package/dist/cjs/EmojiPicker.js +4 -72
- package/dist/cjs/EmojiPicker.js.map +1 -1
- package/dist/cjs/EmojiReactions.js +5 -59
- package/dist/cjs/EmojiReactions.js.map +1 -1
- package/dist/cjs/ErrorPage.js +2 -16
- package/dist/cjs/ErrorPage.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +48 -1376
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/Header.js +19 -67
- package/dist/cjs/Header.js.map +1 -1
- package/dist/cjs/HelpPopover.js +11 -93
- package/dist/cjs/HelpPopover.js.map +1 -1
- package/dist/cjs/IconPicker.js +10 -107
- package/dist/cjs/IconPicker.js.map +1 -1
- package/dist/cjs/ImageWithFallback.js +11 -147
- package/dist/cjs/ImageWithFallback.js.map +1 -1
- package/dist/cjs/InlineInput.js +20 -526
- package/dist/cjs/InlineInput.js.map +1 -1
- package/dist/cjs/IntegrationCard.js +8 -207
- package/dist/cjs/IntegrationCard.js.map +1 -1
- package/dist/cjs/IntegrationDisconnectAlert.js +4 -46
- package/dist/cjs/IntegrationDisconnectAlert.js.map +1 -1
- package/dist/cjs/IpRestriction.js +7 -187
- package/dist/cjs/IpRestriction.js.map +1 -1
- package/dist/cjs/KeyboardShortcuts.js +9 -104
- package/dist/cjs/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/LoginPage.js +12 -435
- package/dist/cjs/LoginPage.js.map +1 -1
- package/dist/cjs/MenuBar.js +24 -1288
- package/dist/cjs/MenuBar.js.map +1 -1
- package/dist/cjs/Metadata.js +6 -61
- package/dist/cjs/Metadata.js.map +1 -1
- package/dist/cjs/MoreDropdown.js +14 -96
- package/dist/cjs/MoreDropdown.js.map +1 -1
- package/dist/cjs/NavigationHeader.js +21 -695
- package/dist/cjs/NavigationHeader.js.map +1 -1
- package/dist/cjs/NeetoWidget.js +18 -238
- package/dist/cjs/NeetoWidget.js.map +1 -1
- package/dist/cjs/Onboarding.js +15 -1211
- package/dist/cjs/Onboarding.js.map +1 -1
- package/dist/cjs/PageLoader.js +8 -51
- package/dist/cjs/PageLoader.js.map +1 -1
- package/dist/cjs/PhoneNumber.js +22 -156
- package/dist/cjs/PhoneNumber.js.map +1 -1
- package/dist/cjs/ProductEmbed.js +28 -118
- package/dist/cjs/ProductEmbed.js.map +1 -1
- package/dist/cjs/PublishBlock.js +13 -56
- package/dist/cjs/PublishBlock.js.map +1 -1
- package/dist/cjs/PublishYourItem.js +3 -1184
- package/dist/cjs/PublishYourItem.js.map +1 -1
- package/dist/cjs/Rename.js +23 -323
- package/dist/cjs/Rename.js.map +1 -1
- package/dist/cjs/ResponsiveDevicePicker.js +8 -144
- package/dist/cjs/ResponsiveDevicePicker.js.map +1 -1
- package/dist/cjs/Schedule.js +18 -287
- package/dist/cjs/Schedule.js.map +1 -1
- package/dist/cjs/Scrollable.js +8 -91
- package/dist/cjs/Scrollable.js.map +1 -1
- package/dist/cjs/Search.js +8 -144
- package/dist/cjs/Search.js.map +1 -1
- package/dist/cjs/Security.js +27 -1565
- package/dist/cjs/Security.js.map +1 -1
- package/dist/cjs/SendToFields.js +12 -95
- package/dist/cjs/SendToFields.js.map +1 -1
- package/dist/cjs/Settings.js +18 -476
- package/dist/cjs/Settings.js.map +1 -1
- package/dist/cjs/ShareViaEmail.js +20 -1716
- package/dist/cjs/ShareViaEmail.js.map +1 -1
- package/dist/cjs/ShareViaLink.js +13 -268
- package/dist/cjs/ShareViaLink.js.map +1 -1
- package/dist/cjs/Sidebar.js +52 -316
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/SubHeader.js +18 -97
- package/dist/cjs/SubHeader.js.map +1 -1
- package/dist/cjs/SuffixedInput.js +14 -120
- package/dist/cjs/SuffixedInput.js.map +1 -1
- package/dist/cjs/TableWrapper.js +6 -7
- package/dist/cjs/TableWrapper.js.map +1 -1
- package/dist/cjs/Taxonomy.js +36 -1746
- package/dist/cjs/Taxonomy.js.map +1 -1
- package/dist/cjs/ThemeSidebar.js +34 -657
- package/dist/cjs/ThemeSidebar.js.map +1 -1
- package/dist/cjs/TimeFormat.js +8 -49
- package/dist/cjs/TimeFormat.js.map +1 -1
- package/dist/cjs/TimezoneMismatchModal.js +2 -56
- package/dist/cjs/TimezoneMismatchModal.js.map +1 -1
- package/dist/cjs/ToggleFeatureCard.js +15 -152
- package/dist/cjs/ToggleFeatureCard.js.map +1 -1
- package/dist/cjs/defineProperty-886ed289.js +47 -0
- package/dist/cjs/defineProperty-886ed289.js.map +1 -0
- package/dist/cjs/extends-1b35a664.js +19 -0
- package/dist/cjs/extends-1b35a664.js.map +1 -0
- package/dist/cjs/index-248c4f4c.js +1186 -0
- package/dist/cjs/index-248c4f4c.js.map +1 -0
- package/dist/cjs/index-73f9c602.js +454 -0
- package/dist/cjs/index-73f9c602.js.map +1 -0
- package/dist/cjs/index-c55ad2bc.js +375 -0
- package/dist/cjs/index-c55ad2bc.js.map +1 -0
- package/dist/cjs/inject-css-80a5faa3.js +6 -0
- package/dist/cjs/inject-css-80a5faa3.js.map +1 -0
- package/dist/cjs/objectWithoutProperties-2fed2d7d.js +33 -0
- package/dist/cjs/objectWithoutProperties-2fed2d7d.js.map +1 -0
- package/dist/cjs/slicedToArray-f320d9e7.js +61 -0
- package/dist/cjs/slicedToArray-f320d9e7.js.map +1 -0
- package/dist/cjs/toConsumableArray-9abb3858.js +22 -0
- package/dist/cjs/toConsumableArray-9abb3858.js.map +1 -0
- package/dist/defineProperty-549061a7.js +43 -0
- package/dist/defineProperty-549061a7.js.map +1 -0
- package/dist/extends-093996c9.js +17 -0
- package/dist/extends-093996c9.js.map +1 -0
- package/dist/index-372a8b29.js +422 -0
- package/dist/index-372a8b29.js.map +1 -0
- package/dist/index-9720867c.js +372 -0
- package/dist/index-9720867c.js.map +1 -0
- package/dist/index-e5588516.js +1184 -0
- package/dist/index-e5588516.js.map +1 -0
- package/dist/inject-css-c86de496.js +4 -0
- package/dist/inject-css-c86de496.js.map +1 -0
- package/dist/objectWithoutProperties-a0edb288.js +31 -0
- package/dist/objectWithoutProperties-a0edb288.js.map +1 -0
- package/dist/slicedToArray-b4278ecd.js +57 -0
- package/dist/slicedToArray-b4278ecd.js.map +1 -0
- package/dist/toConsumableArray-1cc38429.js +20 -0
- package/dist/toConsumableArray-1cc38429.js.map +1 -0
- package/package.json +1 -3
package/dist/Sidebar.js
CHANGED
|
@@ -1,124 +1,65 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-b4278ecd.js';
|
|
2
|
+
import React__default, { useState, forwardRef, useEffect, useRef } from 'react';
|
|
2
3
|
import classnames from 'classnames';
|
|
3
4
|
import { globalProps as globalProps$1 } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
4
5
|
import useLocalStorage from '@bigbinary/neeto-commons-frontend/react-utils/useLocalStorage';
|
|
5
|
-
import { Typography, Input, Tooltip, Spinner, Avatar, Button,
|
|
6
|
-
import { toLower, all, mergeDeepLeft,
|
|
6
|
+
import { Typography, Input, Tooltip, Spinner, Avatar, Button, Alert, Pane, Toastr } from '@bigbinary/neetoui';
|
|
7
|
+
import { toLower, all, mergeDeepLeft, curry, is, includes, __, not } from 'ramda';
|
|
7
8
|
import { useTranslation, Trans } from 'react-i18next';
|
|
8
9
|
import { Link, NavLink, useHistory, useLocation } from 'react-router-dom';
|
|
9
10
|
import useFetchNeetoApps from '@bigbinary/neeto-commons-frontend/react-utils/useFetchNeetoApps';
|
|
10
|
-
import { NeetoIcon, Search, AppSwitcher as AppSwitcher$1, ChatEmpty, Book, Gift, Keyboard, User, Settings, LeftArrow, Help,
|
|
11
|
+
import { NeetoIcon, Search, AppSwitcher as AppSwitcher$1, ChatEmpty, Book, Gift, Keyboard, User, Settings, LeftArrow, Help, Down } from '@bigbinary/neeto-icons';
|
|
12
|
+
import { n } from './inject-css-c86de496.js';
|
|
13
|
+
import { _ as _extends } from './extends-093996c9.js';
|
|
11
14
|
import { capitalize, isPresent, truncate, findBy, hyphenate, _findIndexBy, isNotPresent } from '@bigbinary/neeto-cist';
|
|
12
15
|
import * as AppIcons from '@bigbinary/neeto-icons/app-icons';
|
|
13
|
-
import { t
|
|
16
|
+
import { t } from 'i18next';
|
|
14
17
|
import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils/axios';
|
|
15
18
|
import { removeFromLocalStorage, getQueryParams } from '@bigbinary/neeto-commons-frontend/utils/general';
|
|
16
|
-
import
|
|
19
|
+
import { _ as _toConsumableArray } from './toConsumableArray-1cc38429.js';
|
|
20
|
+
import { _ as _defineProperty } from './defineProperty-549061a7.js';
|
|
21
|
+
import { _ as _objectWithoutProperties } from './objectWithoutProperties-a0edb288.js';
|
|
22
|
+
import KeyboardShortcuts from './KeyboardShortcuts.js';
|
|
17
23
|
import * as ProductTypefaceLogos from '@bigbinary/neeto-icons/typeface-logos';
|
|
18
24
|
import { Neeto } from '@bigbinary/neeto-icons/typeface-logos';
|
|
19
25
|
import { SINGULAR, PLURAL } from '@bigbinary/neeto-commons-frontend/constants';
|
|
20
26
|
import { useNavigationCheckpoints } from '@bigbinary/neeto-commons-frontend/react-utils/useRegisterNavigationCheckpoint';
|
|
21
27
|
import { useDestroySegment, buildUrlFromFilters, useUpdateSegment, buildUrlFromSegment } from '@bigbinary/neeto-filters-frontend';
|
|
22
28
|
import { useHistory as useHistory$1 } from 'react-router-dom/cjs/react-router-dom.min';
|
|
29
|
+
import MoreDropdown from './MoreDropdown.js';
|
|
23
30
|
import { showThumbsUpToastr } from '@bigbinary/neeto-commons-frontend/utils';
|
|
24
31
|
import { Form, Input as Input$1, ActionBlock } from '@bigbinary/neetoui/formik';
|
|
25
32
|
import * as yup from 'yup';
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
33
|
-
if (null != t) {
|
|
34
|
-
var e,
|
|
35
|
-
n,
|
|
36
|
-
i,
|
|
37
|
-
u,
|
|
38
|
-
a = [],
|
|
39
|
-
f = !0,
|
|
40
|
-
o = !1;
|
|
41
|
-
try {
|
|
42
|
-
if (i = (t = t.call(r)).next, 0 === l) {
|
|
43
|
-
if (Object(t) !== t) return;
|
|
44
|
-
f = !1;
|
|
45
|
-
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
46
|
-
} catch (r) {
|
|
47
|
-
o = !0, n = r;
|
|
48
|
-
} finally {
|
|
49
|
-
try {
|
|
50
|
-
if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
|
|
51
|
-
} finally {
|
|
52
|
-
if (o) throw n;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
return a;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
function _arrayLikeToArray(arr, len) {
|
|
60
|
-
if (len == null || len > arr.length) len = arr.length;
|
|
61
|
-
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
62
|
-
return arr2;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
function _unsupportedIterableToArray(o, minLen) {
|
|
66
|
-
if (!o) return;
|
|
67
|
-
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
68
|
-
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
69
|
-
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
70
|
-
if (n === "Map" || n === "Set") return Array.from(o);
|
|
71
|
-
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
function _nonIterableRest() {
|
|
75
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
function _slicedToArray(arr, i) {
|
|
79
|
-
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
|
80
|
-
}
|
|
33
|
+
import '@bigbinary/neeto-commons-frontend/react-utils/withImmutableActions';
|
|
34
|
+
import 'zustand';
|
|
35
|
+
import 'zustand/shallow';
|
|
36
|
+
import '@bigbinary/neetoui/managers';
|
|
37
|
+
import '@bigbinary/neeto-hotkeys';
|
|
38
|
+
import 'platform';
|
|
81
39
|
|
|
82
40
|
var Chevron = function Chevron(_ref) {
|
|
83
41
|
var style = _ref.style;
|
|
84
|
-
return /*#__PURE__*/
|
|
42
|
+
return /*#__PURE__*/React__default.createElement("svg", {
|
|
85
43
|
height: "16",
|
|
86
44
|
viewBox: "0 0 16 16",
|
|
87
45
|
width: "16",
|
|
88
46
|
style: style
|
|
89
|
-
}, /*#__PURE__*/
|
|
47
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
90
48
|
d: "M7.07031 13.8887C7.2207 14.0391 7.40527 14.1211 7.62402 14.1211C8.06836 14.1211 8.41699 13.7725 8.41699 13.3281C8.41699 13.1094 8.32812 12.9043 8.17773 12.7539L3.37207 8.05762L8.17773 3.375C8.32812 3.21777 8.41699 3.0127 8.41699 2.80078C8.41699 2.35645 8.06836 2.00781 7.62402 2.00781C7.40527 2.00781 7.2207 2.08984 7.07031 2.24023L1.73828 7.44922C1.56055 7.62012 1.46484 7.8252 1.46484 8.06445C1.46484 8.29688 1.55371 8.49512 1.73828 8.67969L7.07031 13.8887ZM13.1748 13.8887C13.3252 14.0391 13.5098 14.1211 13.7354 14.1211C14.1797 14.1211 14.5283 13.7725 14.5283 13.3281C14.5283 13.1094 14.4395 12.9043 14.2891 12.7539L9.4834 8.05762L14.2891 3.375C14.4395 3.21777 14.5283 3.0127 14.5283 2.80078C14.5283 2.35645 14.1797 2.00781 13.7354 2.00781C13.5098 2.00781 13.3252 2.08984 13.1748 2.24023L7.84961 7.44922C7.66504 7.62012 7.57617 7.8252 7.56934 8.06445C7.56934 8.29688 7.66504 8.49512 7.84961 8.67969L13.1748 13.8887Z",
|
|
91
49
|
fill: "currentColor"
|
|
92
50
|
}));
|
|
93
51
|
};
|
|
94
52
|
|
|
95
|
-
var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
|
|
96
|
-
|
|
97
53
|
var css$1 = ".neeto-molecules-app-switcher__wrapper{align-items:flex-start;background-color:rgb(var(--neeto-ui-white));display:flex;flex-direction:column;justify-content:flex-start;max-width:100%;overflow-y:auto;padding:40px;position:relative;transition:all .3s;width:100%}@media only screen and (max-width:992px){.neeto-molecules-app-switcher__wrapper{padding:32px}}@media screen and (max-width:768px){.neeto-molecules-app-switcher__wrapper{padding:16px}}.neeto-molecules-app-switcher__grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}@media only screen and (max-width:992px){.neeto-molecules-app-switcher__grid{grid-template-columns:repeat(auto-fill,minmax(248px,1fr))}}@media only screen and (max-width:640px){.neeto-molecules-app-switcher__grid{grid-template-columns:repeat(auto-fill,minmax(100%,1fr))}}.neeto-molecules-app-switcher__header{align-items:center;display:flex;gap:32px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}@media only screen and (max-width:768px){.neeto-molecules-app-switcher__header{align-items:flex-start;flex-direction:column-reverse;gap:24px}}@media only screen and (max-width:640px){.neeto-molecules-app-switcher__header h1{font-size:24px}}.neeto-molecules-app-switcher__close-btn{position:absolute;right:12px;top:12px}.neeto-molecules-app-switcher__search-wrapper{flex-grow:1}@media only screen and (min-width:992px){.neeto-molecules-app-switcher__search-wrapper{flex-grow:0;width:296px}}.neeto-molecules-app-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-app-switcher-link{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:2px;cursor:pointer;display:flex;gap:12px;max-width:100%;padding:12px 16px;text-decoration:none;transition:background-color .3s ease-in-out;width:100%}.neeto-molecules-app-switcher-link:focus,.neeto-molecules-app-switcher-link:focus-visible{outline:none}.neeto-molecules-app-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link:not(.neeto-molecules-app-switcher-link--active):hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link--active{background:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-600))}.neeto-molecules-app-switcher-link__icon-holder{align-items:center;border-radius:var(--neeto-ui-rounded-lg);display:flex;flex-shrink:0;height:42px;justify-content:center;width:42px}.neeto-molecules-app-switcher-link__content{flex-grow:1}.neeto-molecules-app-switcher-link__content span{display:block}";
|
|
98
54
|
n(css$1,{});
|
|
99
55
|
|
|
100
|
-
function _extends() {
|
|
101
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
102
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
103
|
-
var source = arguments[i];
|
|
104
|
-
for (var key in source) {
|
|
105
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
106
|
-
target[key] = source[key];
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
return target;
|
|
111
|
-
};
|
|
112
|
-
return _extends.apply(this, arguments);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
56
|
var AppLink = function AppLink(_ref) {
|
|
116
57
|
var name = _ref.name,
|
|
117
58
|
description = _ref.description,
|
|
118
59
|
url = _ref.url;
|
|
119
60
|
var appName = "Neeto".concat(name.charAt(0)).concat(name.slice(1).toLowerCase());
|
|
120
61
|
var AppIcon = AppIcons[appName];
|
|
121
|
-
return /*#__PURE__*/
|
|
62
|
+
return /*#__PURE__*/React__default.createElement("a", {
|
|
122
63
|
"data-cy": "".concat(name, "-app-link"),
|
|
123
64
|
"data-test-id": "neetoapp-link-".concat(name),
|
|
124
65
|
href: url,
|
|
@@ -127,29 +68,29 @@ var AppLink = function AppLink(_ref) {
|
|
|
127
68
|
className: classnames("neeto-molecules-app-switcher-link", {
|
|
128
69
|
"neeto-molecules-app-switcher-link--active": capitalize(globalProps.appName) === appName
|
|
129
70
|
})
|
|
130
|
-
}, /*#__PURE__*/
|
|
71
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
131
72
|
className: classnames("neeto-molecules-app-switcher-link__icon-holder", {
|
|
132
73
|
"neeto-ui-bg-primary-500": !AppIcon
|
|
133
74
|
})
|
|
134
|
-
}, AppIcon ? /*#__PURE__*/
|
|
75
|
+
}, AppIcon ? /*#__PURE__*/React__default.createElement(AppIcon, {
|
|
135
76
|
size: 42
|
|
136
|
-
}) : /*#__PURE__*/
|
|
77
|
+
}) : /*#__PURE__*/React__default.createElement(NeetoIcon, {
|
|
137
78
|
color: "white",
|
|
138
79
|
size: 42
|
|
139
|
-
})), /*#__PURE__*/
|
|
80
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
140
81
|
className: "neeto-molecules-app-switcher-link__content"
|
|
141
|
-
}, /*#__PURE__*/
|
|
82
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
142
83
|
component: "span",
|
|
143
84
|
lineHeight: "relaxed",
|
|
144
85
|
style: "h4",
|
|
145
86
|
weight: "medium"
|
|
146
|
-
}, name), /*#__PURE__*/
|
|
87
|
+
}, name), /*#__PURE__*/React__default.createElement(Typography, {
|
|
147
88
|
component: "span",
|
|
148
89
|
style: "body3",
|
|
149
90
|
weight: "normal"
|
|
150
91
|
}, description)));
|
|
151
92
|
};
|
|
152
|
-
var AppLink$1 = /*#__PURE__*/
|
|
93
|
+
var AppLink$1 = /*#__PURE__*/React__default.memo(AppLink);
|
|
153
94
|
|
|
154
95
|
var Body = function Body() {
|
|
155
96
|
var _useTranslation = useTranslation(),
|
|
@@ -168,42 +109,42 @@ var Body = function Body() {
|
|
|
168
109
|
var handleSearch = function handleSearch(e) {
|
|
169
110
|
return setSearchTerm(e.target.value);
|
|
170
111
|
};
|
|
171
|
-
return /*#__PURE__*/
|
|
112
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
172
113
|
className: "neeto-molecules-app-switcher__header",
|
|
173
114
|
"data-cy": "app-switcher-body-wrapper"
|
|
174
|
-
}, /*#__PURE__*/
|
|
115
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
175
116
|
style: "h1"
|
|
176
|
-
}, t("neetoMolecules.appSwitcher.chooseNeetoProduct")), /*#__PURE__*/
|
|
117
|
+
}, t("neetoMolecules.appSwitcher.chooseNeetoProduct")), /*#__PURE__*/React__default.createElement("div", {
|
|
177
118
|
className: "neeto-molecules-app-switcher__search-wrapper"
|
|
178
|
-
}, /*#__PURE__*/
|
|
119
|
+
}, /*#__PURE__*/React__default.createElement(Input, {
|
|
179
120
|
autoFocus: true,
|
|
180
121
|
"data-cy": "app-switcher-search-input",
|
|
181
122
|
placeholder: t("neetoMolecules.appSwitcher.searchProducts"),
|
|
182
|
-
prefix: /*#__PURE__*/
|
|
123
|
+
prefix: /*#__PURE__*/React__default.createElement(Search, null),
|
|
183
124
|
type: "search",
|
|
184
125
|
value: searchTerm,
|
|
185
126
|
onChange: handleSearch
|
|
186
|
-
}))), /*#__PURE__*/
|
|
127
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
187
128
|
className: "neeto-molecules-app-switcher__body"
|
|
188
|
-
}, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/
|
|
129
|
+
}, (filteredApps === null || filteredApps === void 0 ? void 0 : filteredApps.length) > 0 ? /*#__PURE__*/React__default.createElement("div", {
|
|
189
130
|
className: "neeto-molecules-app-switcher__grid"
|
|
190
131
|
}, filteredApps.map(function (app) {
|
|
191
|
-
return /*#__PURE__*/
|
|
132
|
+
return /*#__PURE__*/React__default.createElement(AppLink$1, _extends({
|
|
192
133
|
key: app.name
|
|
193
134
|
}, app));
|
|
194
|
-
})) : /*#__PURE__*/
|
|
135
|
+
})) : /*#__PURE__*/React__default.createElement(Typography, {
|
|
195
136
|
className: "neeto-ui-text-center",
|
|
196
137
|
style: "body1"
|
|
197
138
|
}, t("neetoMolecules.appSwitcher.noApps"))));
|
|
198
139
|
};
|
|
199
140
|
|
|
200
141
|
var AppSwitcher = function AppSwitcher() {
|
|
201
|
-
return /*#__PURE__*/
|
|
142
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
202
143
|
className: "neeto-molecules-app-switcher__wrapper",
|
|
203
144
|
"data-cy": "switcher-wrapper",
|
|
204
145
|
"data-testid": "switcher-wrapper",
|
|
205
146
|
key: "switcher-wrapper"
|
|
206
|
-
}, /*#__PURE__*/
|
|
147
|
+
}, /*#__PURE__*/React__default.createElement(Body, null));
|
|
207
148
|
};
|
|
208
149
|
|
|
209
150
|
var css = ":root{--neeto-molecules-sidebar-width:240px;--neeto-molecules-sidebar-wrapper-z-index:99997;--neeto-molecules-sidebar-z-index:99998;--neeto-chat-primary:136,134,255;--neeto-wireframe-primary:106,103,232;--neeto-site-primary:129,118,255;--neeto-desk-primary:253,148,55;--neeto-planner-primary:82,169,198;--neeto-replay-primary:32,199,189;--neeto-course-primary:140,214,114;--neeto-ci-primary:255,133,184;--neeto-invoice-primary:70,160,211;--neeto-quiz-primary:254,99,99;--neeto-runner-primary:75,71,255;--neeto-form-primary:254,128,114;--neeto-crm-primary:96,154,240;--neeto-changelog-primary:255,135,135;--neeto-deploy-primary:20,209,164;--neeto-kb-primary:101,205,161;--neeto-cal-primary:238,77,95;--neeto-invisible-primary:121,157,250;--neeto-testify-primary:255,158,69;--neeto-monitor-primary:70,181,197;--neeto-git-primary:255,78,110}@media screen and (min-width:1024px){:root{--neeto-molecules-sidebar-width:240px}}.neeto-molecules-sidebar__wrapper{display:flex;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:relative;transition:all .15s;width:240px;width:var(--neeto-molecules-sidebar-width)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper{height:100%;left:0;max-width:100%;position:fixed;top:0;transition:none;width:100%;z-index:99997;z-index:var(--neeto-molecules-sidebar-wrapper-z-index)}.neeto-molecules-sidebar__wrapper .neeto-molecules-sidebar{left:0;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:fixed;top:0;transition:none;width:240px;width:var(--neeto-molecules-sidebar-width)}}.neeto-molecules-sidebar__wrapper--collapsed{max-width:0;width:0}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{right:-36px;transform:scale(-1)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{left:8px;right:auto}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar{left:-240px;left:calc(var(--neeto-molecules-sidebar-width)*-1)}}.neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-gray-100));border-right:1px solid rgb(var(--neeto-ui-gray-100));height:100vh;padding:24px 0;width:100%;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar__no-shrinkable{max-width:240px;max-width:var(--neeto-molecules-sidebar-width);width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}.neeto-molecules-sidebar__toggler{position:absolute;right:8px;top:8px;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}@media screen and (max-width:768px){.neeto-molecules-sidebar__toggler{left:202px;left:calc(var(--neeto-molecules-sidebar-width) - 38px);right:auto;transition:none}}.neeto-molecules-sidebar__header{margin:14px 0 28px;padding:0 24px}.neeto-molecules-sidebar__logo svg{height:20px;max-width:100%;width:auto}.neeto-molecules-sidebar__links{margin-bottom:40px}.neeto-molecules-sidebar__link{color:rgb(var(--neeto-ui-gray-800));gap:10px;padding:12px 24px;position:relative;text-decoration:none!important;transition:var(--neeto-ui-transition);width:100%}.neeto-molecules-sidebar__link-icon{flex-shrink:0;transition:var(--neeto-ui-transition)}.neeto-molecules-sidebar__link-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-sidebar__link-icon--rotate{transform:scale(-1)}.neeto-molecules-sidebar__link-icon--caret{opacity:0;transition:opacity .3s ease-in-out}.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{flex-grow:1;text-align:left}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible,.neeto-molecules-sidebar__link[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-white));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-label{font-weight:var(--neeto-ui-font-medium)}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:focus .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:focus-visible .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link:hover .neeto-molecules-sidebar__link-icon--caret,.neeto-molecules-sidebar__link[aria-expanded=true] .neeto-molecules-sidebar__link-icon--caret{opacity:1}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink-wrapper{background-color:rgb(var(--neeto-ui-white));padding:4px 0}.neeto-molecules-sidebar__sublink{background-color:rgb(var(--neeto-ui-white));color:rgb(var(--neeto-ui-gray-700));cursor:pointer;gap:8px;padding:8px 24px 8px 58px;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__sublink:not(:last-child){margin-bottom:4px}.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{opacity:.75}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__sublink:hover .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{color:rgb(var(--neeto-ui-gray-800));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink:focus .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:focus-visible .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);text-decoration:none}.neeto-molecules-sidebar__sublink.active .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:active .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__footer{margin-top:auto}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-app-switcher-popup-wrapper,.neeto-molecules-help-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;box-shadow:0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12),0 5px 5px -3px rgba(0,0,0,.2)!important;min-width:240px}.neeto-molecules-app-switcher-popup-wrapper .tippy-content,.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-app-switcher-popup-wrapper .tippy-svg-arrow,.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-popup__top-section{border-top-left-radius:var(--neeto-ui-rounded);border-top-right-radius:var(--neeto-ui-rounded)}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400))}.neeto-molecules-help-sublist,.neeto-molecules-profile-sublist{list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-help-sublist__item-btn,.neeto-molecules-profile-sublist__item-btn{border-radius:0;justify-content:flex-end!important;min-height:40px;text-align:left}.neeto-molecules-help-sublist__item-btn.active,.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn-icon svg path,.neeto-molecules-profile-sublist__item-btn-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-help-sublist__item-btn span,.neeto-molecules-profile-sublist__item-btn span{align-items:center;display:flex;gap:8px}.neeto-molecules-sidebar__link-icon{position:relative}.neeto-molecules-sidebar__notif-count{position:absolute;right:-6px;top:-6px;z-index:1}.neeto-molecules-help-sublist__item-btn-count,.neeto-molecules-sidebar__notif-count{align-items:center;background-color:rgb(var(--neeto-ui-primary-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:inline-flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);height:15px;justify-content:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:15px}.neeto-molecules-app-switcher-popup-wrapper{height:calc(100vh - 16px);margin-bottom:8px;min-width:calc(100vw - 176px);overflow-y:auto}@media screen and (max-width:768px){.neeto-molecules-app-switcher-popup-wrapper{width:calc(100vw - 185px)!important}}.neeto-molecules-sidebar__backdrop{background-color:rgba(var(--neeto-ui-black),.4);height:100%;left:0;position:absolute;top:0;width:100%}@media screen and (min-width:769px){.neeto-molecules-sidebar__backdrop{display:none;visibility:hidden}}.neeto-molecules-sidebar-segments-header{padding-left:58px}";
|
|
@@ -220,13 +161,13 @@ var AppSwitcherButton = function AppSwitcherButton() {
|
|
|
220
161
|
data = _useFetchNeetoApps.data,
|
|
221
162
|
refetchNeetoApps = _useFetchNeetoApps.refetch,
|
|
222
163
|
isStale = _useFetchNeetoApps.isStale;
|
|
223
|
-
return /*#__PURE__*/
|
|
164
|
+
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
224
165
|
interactive: true,
|
|
225
166
|
appendTo: function appendTo() {
|
|
226
167
|
return document.body;
|
|
227
168
|
},
|
|
228
169
|
className: "neeto-molecules-app-switcher-popup-wrapper",
|
|
229
|
-
content: /*#__PURE__*/
|
|
170
|
+
content: /*#__PURE__*/React__default.createElement(AppSwitcher, null),
|
|
230
171
|
delay: [300, null],
|
|
231
172
|
disabled: !data,
|
|
232
173
|
hideOnClick: false,
|
|
@@ -234,7 +175,7 @@ var AppSwitcherButton = function AppSwitcherButton() {
|
|
|
234
175
|
position: "right",
|
|
235
176
|
strategy: "fixed",
|
|
236
177
|
theme: "light"
|
|
237
|
-
}, /*#__PURE__*/
|
|
178
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
238
179
|
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--app-switcher neeto-molecules-sidebar__link--button neeto-ui-flex neeto-ui-w-full neeto-ui-select-none neeto-ui-items-center neeto-ui-justify-start neeto-ui-shadow-none",
|
|
239
180
|
"data-cy": "app-switcher-button",
|
|
240
181
|
"data-testid": "app-switcher-button",
|
|
@@ -243,13 +184,13 @@ var AppSwitcherButton = function AppSwitcherButton() {
|
|
|
243
184
|
refetchNeetoApps();
|
|
244
185
|
setHasHovered(true);
|
|
245
186
|
}
|
|
246
|
-
}, /*#__PURE__*/
|
|
187
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
247
188
|
className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center h-6 w-6"
|
|
248
|
-
}, !data && hasHovered ? /*#__PURE__*/
|
|
189
|
+
}, !data && hasHovered ? /*#__PURE__*/React__default.createElement("span", {
|
|
249
190
|
"data-testid": "app-switcher-button-loader"
|
|
250
|
-
}, /*#__PURE__*/
|
|
191
|
+
}, /*#__PURE__*/React__default.createElement(Spinner, null)) : /*#__PURE__*/React__default.createElement(AppSwitcher$1, {
|
|
251
192
|
size: 24
|
|
252
|
-
})), /*#__PURE__*/
|
|
193
|
+
})), /*#__PURE__*/React__default.createElement(Typography, {
|
|
253
194
|
className: "neeto-molecules-sidebar__link-label",
|
|
254
195
|
component: "span",
|
|
255
196
|
style: "body2",
|
|
@@ -271,7 +212,7 @@ var SUB_LINK_TYPES = {
|
|
|
271
212
|
};
|
|
272
213
|
var DEFAULT_HELP_LINK_PROPS = {
|
|
273
214
|
liveChatProps: {
|
|
274
|
-
label: t
|
|
215
|
+
label: t("neetoMolecules.sidebar.helpLinks.liveChat"),
|
|
275
216
|
icon: ChatEmpty,
|
|
276
217
|
"data-cy": "help-link-live-chat-button",
|
|
277
218
|
onClick: function onClick() {
|
|
@@ -281,7 +222,7 @@ var DEFAULT_HELP_LINK_PROPS = {
|
|
|
281
222
|
}
|
|
282
223
|
},
|
|
283
224
|
helpCenterProps: {
|
|
284
|
-
label: t
|
|
225
|
+
label: t("neetoMolecules.sidebar.helpLinks.helpArticles"),
|
|
285
226
|
icon: Book,
|
|
286
227
|
"data-cy": "help-link-help-center-button",
|
|
287
228
|
href: "https://help.".concat(toLower(globalProps.appName), ".com/"),
|
|
@@ -289,13 +230,13 @@ var DEFAULT_HELP_LINK_PROPS = {
|
|
|
289
230
|
},
|
|
290
231
|
changelogProps: {
|
|
291
232
|
id: CHANGELOG_WIDGET_TRIGGER_ID,
|
|
292
|
-
label: t
|
|
233
|
+
label: t("neetoMolecules.sidebar.helpLinks.whatsNew"),
|
|
293
234
|
icon: Gift,
|
|
294
235
|
"data-cy": "help-link-changelog-button",
|
|
295
236
|
isVisible: shouldShowWhatsNew
|
|
296
237
|
},
|
|
297
238
|
keyboardShortcutProps: {
|
|
298
|
-
label: t
|
|
239
|
+
label: t("neetoMolecules.sidebar.helpLinks.keyboardShortcuts"),
|
|
299
240
|
icon: Keyboard,
|
|
300
241
|
"data-cy": "help-link-keyboard-shortcut-button"
|
|
301
242
|
}
|
|
@@ -329,14 +270,14 @@ var getProfileInfo = function getProfileInfo(isOwner, profileInfoOverrides) {
|
|
|
329
270
|
imageUrl: (_globalProps$user3 = globalProps.user) === null || _globalProps$user3 === void 0 ? void 0 : _globalProps$user3.profileImageUrl,
|
|
330
271
|
email: ((_globalProps$user4 = globalProps.user) === null || _globalProps$user4 === void 0 ? void 0 : _globalProps$user4.email) || ((_globalProps$user5 = globalProps.user) === null || _globalProps$user5 === void 0 ? void 0 : _globalProps$user5.phoneNumber),
|
|
331
272
|
topLinks: [{
|
|
332
|
-
label: t
|
|
273
|
+
label: t("neetoMolecules.sidebar.myProfile"),
|
|
333
274
|
icon: User,
|
|
334
275
|
onClick: function onClick() {
|
|
335
276
|
return window.open(MY_PROFILE_URL, "_blank");
|
|
336
277
|
},
|
|
337
278
|
"data-cy": "my-profile-button"
|
|
338
279
|
}, isOwner && {
|
|
339
|
-
label: t
|
|
280
|
+
label: t("neetoMolecules.sidebar.myOrganization"),
|
|
340
281
|
icon: Settings,
|
|
341
282
|
onClick: function onClick() {
|
|
342
283
|
return window.open(MY_ORGANIZATION_URL, "_blank");
|
|
@@ -345,7 +286,7 @@ var getProfileInfo = function getProfileInfo(isOwner, profileInfoOverrides) {
|
|
|
345
286
|
}].filter(Boolean),
|
|
346
287
|
bottomLinks: [{
|
|
347
288
|
icon: LeftArrow,
|
|
348
|
-
label: t
|
|
289
|
+
label: t("neetoMolecules.sidebar.logout"),
|
|
349
290
|
onClick: function onClick() {
|
|
350
291
|
resetAuthTokens();
|
|
351
292
|
removeFromLocalStorage(getSidebarStateLocalStorageKey());
|
|
@@ -368,7 +309,7 @@ var ProfileSection = function ProfileSection(_ref, ref) {
|
|
|
368
309
|
data = _useFetchNeetoApps.data,
|
|
369
310
|
refetchNeetoApps = _useFetchNeetoApps.refetch,
|
|
370
311
|
isStale = _useFetchNeetoApps.isStale;
|
|
371
|
-
return /*#__PURE__*/
|
|
312
|
+
return /*#__PURE__*/React__default.createElement("button", {
|
|
372
313
|
ref: ref,
|
|
373
314
|
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none",
|
|
374
315
|
"data-cy": "profile-section",
|
|
@@ -378,14 +319,14 @@ var ProfileSection = function ProfileSection(_ref, ref) {
|
|
|
378
319
|
refetchNeetoApps();
|
|
379
320
|
setHasHovered(true);
|
|
380
321
|
}
|
|
381
|
-
}, !data && hasHovered ? /*#__PURE__*/
|
|
322
|
+
}, !data && hasHovered ? /*#__PURE__*/React__default.createElement("span", {
|
|
382
323
|
"data-testid": "profile-avatar-loader"
|
|
383
|
-
}, /*#__PURE__*/
|
|
324
|
+
}, /*#__PURE__*/React__default.createElement(Spinner, null)) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
384
325
|
className: "neeto-ui-flex-shrink-0 neeto-molecules-sidebar__profile-avatar",
|
|
385
326
|
"data-testid": "profile-avatar",
|
|
386
327
|
size: "small",
|
|
387
328
|
user: profileInfo
|
|
388
|
-
}), /*#__PURE__*/
|
|
329
|
+
}), /*#__PURE__*/React__default.createElement(Typography, {
|
|
389
330
|
className: "neeto-molecules-sidebar__link-label",
|
|
390
331
|
component: "span",
|
|
391
332
|
style: "body2",
|
|
@@ -394,115 +335,29 @@ var ProfileSection = function ProfileSection(_ref, ref) {
|
|
|
394
335
|
};
|
|
395
336
|
var ProfileSection$1 = /*#__PURE__*/forwardRef(ProfileSection);
|
|
396
337
|
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
function _iterableToArray(iter) {
|
|
402
|
-
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
403
|
-
}
|
|
404
|
-
|
|
405
|
-
function _nonIterableSpread() {
|
|
406
|
-
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
407
|
-
}
|
|
408
|
-
|
|
409
|
-
function _toConsumableArray(arr) {
|
|
410
|
-
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
411
|
-
}
|
|
412
|
-
|
|
413
|
-
function _typeof(o) {
|
|
414
|
-
"@babel/helpers - typeof";
|
|
415
|
-
|
|
416
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
417
|
-
return typeof o;
|
|
418
|
-
} : function (o) {
|
|
419
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
420
|
-
}, _typeof(o);
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
function _toPrimitive(input, hint) {
|
|
424
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
|
425
|
-
var prim = input[Symbol.toPrimitive];
|
|
426
|
-
if (prim !== undefined) {
|
|
427
|
-
var res = prim.call(input, hint || "default");
|
|
428
|
-
if (_typeof(res) !== "object") return res;
|
|
429
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
430
|
-
}
|
|
431
|
-
return (hint === "string" ? String : Number)(input);
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
function _toPropertyKey(arg) {
|
|
435
|
-
var key = _toPrimitive(arg, "string");
|
|
436
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
function _defineProperty(obj, key, value) {
|
|
440
|
-
key = _toPropertyKey(key);
|
|
441
|
-
if (key in obj) {
|
|
442
|
-
Object.defineProperty(obj, key, {
|
|
443
|
-
value: value,
|
|
444
|
-
enumerable: true,
|
|
445
|
-
configurable: true,
|
|
446
|
-
writable: true
|
|
447
|
-
});
|
|
448
|
-
} else {
|
|
449
|
-
obj[key] = value;
|
|
450
|
-
}
|
|
451
|
-
return obj;
|
|
452
|
-
}
|
|
453
|
-
|
|
454
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
455
|
-
if (source == null) return {};
|
|
456
|
-
var target = {};
|
|
457
|
-
var sourceKeys = Object.keys(source);
|
|
458
|
-
var key, i;
|
|
459
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
460
|
-
key = sourceKeys[i];
|
|
461
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
462
|
-
target[key] = source[key];
|
|
463
|
-
}
|
|
464
|
-
return target;
|
|
465
|
-
}
|
|
466
|
-
|
|
467
|
-
function _objectWithoutProperties(source, excluded) {
|
|
468
|
-
if (source == null) return {};
|
|
469
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
470
|
-
var key, i;
|
|
471
|
-
if (Object.getOwnPropertySymbols) {
|
|
472
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
473
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
474
|
-
key = sourceSymbolKeys[i];
|
|
475
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
476
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
477
|
-
target[key] = source[key];
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
return target;
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
var _excluded$7 = ["onClick", "label", "icon"];
|
|
484
|
-
function ownKeys$5(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
485
|
-
function _objectSpread$5(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$5(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$5(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
338
|
+
var _excluded$4 = ["onClick", "label", "icon"];
|
|
339
|
+
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
340
|
+
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
486
341
|
var LinkSection = function LinkSection(_ref) {
|
|
487
342
|
var links = _ref.links;
|
|
488
|
-
return /*#__PURE__*/
|
|
343
|
+
return /*#__PURE__*/React__default.createElement("ul", {
|
|
489
344
|
className: "neeto-molecules-profile-sublist"
|
|
490
345
|
}, links.map(function (_ref2, idx) {
|
|
491
346
|
var onClick = _ref2.onClick,
|
|
492
347
|
label = _ref2.label,
|
|
493
348
|
_ref2$icon = _ref2.icon,
|
|
494
349
|
icon = _ref2$icon === void 0 ? null : _ref2$icon,
|
|
495
|
-
otherProps = _objectWithoutProperties(_ref2, _excluded$
|
|
496
|
-
return /*#__PURE__*/
|
|
350
|
+
otherProps = _objectWithoutProperties(_ref2, _excluded$4);
|
|
351
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
497
352
|
className: "neeto-molecules-profile-sublist__item",
|
|
498
353
|
key: idx
|
|
499
|
-
}, /*#__PURE__*/
|
|
354
|
+
}, /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
500
355
|
fullWidth: true,
|
|
501
356
|
className: "neeto-molecules-profile-sublist__item-btn",
|
|
502
357
|
iconPosition: "left",
|
|
503
358
|
iconSize: 18,
|
|
504
359
|
style: "text"
|
|
505
|
-
}, _objectSpread$
|
|
360
|
+
}, _objectSpread$3({
|
|
506
361
|
icon: icon,
|
|
507
362
|
label: label,
|
|
508
363
|
onClick: onClick
|
|
@@ -518,35 +373,35 @@ var ProfileMenu = function ProfileMenu(_ref) {
|
|
|
518
373
|
topLinks = profileInfo.topLinks,
|
|
519
374
|
bottomLinks = profileInfo.bottomLinks,
|
|
520
375
|
customContent = profileInfo.customContent;
|
|
521
|
-
return /*#__PURE__*/
|
|
376
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
522
377
|
className: "neeto-ui-flex neeto-ui-flex-col neeto-molecules-profile-popup",
|
|
523
378
|
"data-cy": "profile-popup",
|
|
524
379
|
"data-testid": "profile-popup"
|
|
525
|
-
}, /*#__PURE__*/
|
|
380
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
526
381
|
className: classnames("neeto-ui-relative neeto-ui-flex neeto-ui-items-center neeto-ui-p-3 neeto-ui-bg-primary-100 neeto-molecules-profile-popup__top-section")
|
|
527
|
-
}, /*#__PURE__*/
|
|
382
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
528
383
|
className: "top-0 left-0"
|
|
529
|
-
}, /*#__PURE__*/
|
|
384
|
+
}, /*#__PURE__*/React__default.createElement(Avatar, {
|
|
530
385
|
size: "large",
|
|
531
386
|
user: profileInfo
|
|
532
|
-
})), /*#__PURE__*/
|
|
387
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
533
388
|
className: "neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-grow neeto-ui-min-w-0 neeto-ui-pl-3"
|
|
534
|
-
}, /*#__PURE__*/
|
|
389
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
535
390
|
className: "neeto-ui-m-0",
|
|
536
391
|
component: "h2",
|
|
537
392
|
lineHeight: "tight",
|
|
538
393
|
style: "h5",
|
|
539
394
|
title: name,
|
|
540
395
|
weight: "semibold"
|
|
541
|
-
}, truncate(name, 18)), email && /*#__PURE__*/
|
|
396
|
+
}, truncate(name, 18)), email && /*#__PURE__*/React__default.createElement(Typography, {
|
|
542
397
|
className: "neeto-ui-w-full neeto-ui-truncate neeto-ui-text-gray-700",
|
|
543
398
|
lineHeight: "tight",
|
|
544
399
|
style: "body3"
|
|
545
|
-
}, email))), /*#__PURE__*/
|
|
400
|
+
}, email))), /*#__PURE__*/React__default.createElement("div", {
|
|
546
401
|
className: "neeto-molecules-sidebar__profile-wrapper-custom-content"
|
|
547
|
-
}, customContent), topLinks && /*#__PURE__*/
|
|
402
|
+
}, customContent), topLinks && /*#__PURE__*/React__default.createElement(LinkSection, {
|
|
548
403
|
links: [].concat(_toConsumableArray(extraTopLinks), _toConsumableArray(topLinks))
|
|
549
|
-
}), bottomLinks && /*#__PURE__*/
|
|
404
|
+
}), bottomLinks && /*#__PURE__*/React__default.createElement(LinkSection, {
|
|
550
405
|
links: bottomLinks
|
|
551
406
|
}));
|
|
552
407
|
};
|
|
@@ -557,13 +412,13 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
557
412
|
var _useFetchNeetoApps = useFetchNeetoApps(),
|
|
558
413
|
data = _useFetchNeetoApps.data;
|
|
559
414
|
var profileInfo = getProfileInfo(data === null || data === void 0 ? void 0 : data.isOwner, profileInfoOverrides);
|
|
560
|
-
return /*#__PURE__*/
|
|
415
|
+
return /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
561
416
|
interactive: true,
|
|
562
417
|
appendTo: function appendTo() {
|
|
563
418
|
return document.body;
|
|
564
419
|
},
|
|
565
420
|
className: "neeto-molecules-profile-popup-wrapper",
|
|
566
|
-
content: /*#__PURE__*/
|
|
421
|
+
content: /*#__PURE__*/React__default.createElement(ProfileMenu, {
|
|
567
422
|
extraTopLinks: extraTopLinks,
|
|
568
423
|
profileInfo: profileInfo
|
|
569
424
|
}),
|
|
@@ -574,7 +429,7 @@ var ProfileButton = function ProfileButton(_ref) {
|
|
|
574
429
|
position: "right",
|
|
575
430
|
strategy: "fixed",
|
|
576
431
|
theme: "light"
|
|
577
|
-
}, /*#__PURE__*/
|
|
432
|
+
}, /*#__PURE__*/React__default.createElement(ProfileSection$1, {
|
|
578
433
|
profileInfo: profileInfo
|
|
579
434
|
}));
|
|
580
435
|
};
|
|
@@ -585,18 +440,18 @@ var HelpSection = function HelpSection(_ref, ref) {
|
|
|
585
440
|
var changesCount = _ref.changesCount;
|
|
586
441
|
var _useTranslation = useTranslation(),
|
|
587
442
|
t = _useTranslation.t;
|
|
588
|
-
return /*#__PURE__*/
|
|
443
|
+
return /*#__PURE__*/React__default.createElement("button", {
|
|
589
444
|
ref: ref,
|
|
590
445
|
className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none",
|
|
591
446
|
"data-cy": "help-button"
|
|
592
|
-
}, /*#__PURE__*/
|
|
447
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
593
448
|
className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
|
|
594
|
-
}, /*#__PURE__*/
|
|
449
|
+
}, /*#__PURE__*/React__default.createElement(Help, {
|
|
595
450
|
size: 24
|
|
596
|
-
}), isPresent(changesCount) && /*#__PURE__*/
|
|
451
|
+
}), isPresent(changesCount) && /*#__PURE__*/React__default.createElement("span", {
|
|
597
452
|
className: "neeto-molecules-sidebar__notif-count",
|
|
598
453
|
"data-testid": "help-icon-changes-count"
|
|
599
|
-
}, changesCount)), /*#__PURE__*/
|
|
454
|
+
}, changesCount)), /*#__PURE__*/React__default.createElement(Typography, {
|
|
600
455
|
className: "neeto-molecules-sidebar__link-label",
|
|
601
456
|
component: "span",
|
|
602
457
|
style: "body2",
|
|
@@ -605,9 +460,9 @@ var HelpSection = function HelpSection(_ref, ref) {
|
|
|
605
460
|
};
|
|
606
461
|
var HelpSection$1 = /*#__PURE__*/forwardRef(HelpSection);
|
|
607
462
|
|
|
608
|
-
var _excluded$
|
|
609
|
-
function ownKeys$
|
|
610
|
-
function _objectSpread$
|
|
463
|
+
var _excluded$3 = ["label"];
|
|
464
|
+
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
465
|
+
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
611
466
|
var HelpSectionMenu = function HelpSectionMenu(_ref) {
|
|
612
467
|
var helpLinkOverrides = _ref.helpLinkOverrides,
|
|
613
468
|
changesCount = _ref.changesCount;
|
|
@@ -618,7 +473,7 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
|
|
|
618
473
|
var _DEFAULT_HELP_LINK_PR, _DEFAULT_HELP_LINK_PR2, _DEFAULT_HELP_LINK_PR3;
|
|
619
474
|
return (_DEFAULT_HELP_LINK_PR = (_DEFAULT_HELP_LINK_PR2 = (_DEFAULT_HELP_LINK_PR3 = DEFAULT_HELP_LINK_PROPS[key]).isVisible) === null || _DEFAULT_HELP_LINK_PR2 === void 0 ? void 0 : _DEFAULT_HELP_LINK_PR2.call(_DEFAULT_HELP_LINK_PR3)) !== null && _DEFAULT_HELP_LINK_PR !== void 0 ? _DEFAULT_HELP_LINK_PR : true;
|
|
620
475
|
}).map(function (key) {
|
|
621
|
-
return _objectSpread$
|
|
476
|
+
return _objectSpread$2(_objectSpread$2(_objectSpread$2(_objectSpread$2({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
|
|
622
477
|
onClick: function onClick() {
|
|
623
478
|
return setIsOpen(true);
|
|
624
479
|
}
|
|
@@ -629,21 +484,21 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
|
|
|
629
484
|
var hide = _ref2.hide;
|
|
630
485
|
return !hide;
|
|
631
486
|
});
|
|
632
|
-
return /*#__PURE__*/
|
|
487
|
+
return /*#__PURE__*/React__default.createElement("ul", {
|
|
633
488
|
className: "neeto-molecules-help-sublist"
|
|
634
489
|
}, helpLinks.map(function (_ref3, idx) {
|
|
635
490
|
var label = _ref3.label,
|
|
636
|
-
buttonProps = _objectWithoutProperties(_ref3, _excluded$
|
|
637
|
-
return /*#__PURE__*/
|
|
491
|
+
buttonProps = _objectWithoutProperties(_ref3, _excluded$3);
|
|
492
|
+
return /*#__PURE__*/React__default.createElement("li", {
|
|
638
493
|
className: "neeto-molecules-help-sublist__item",
|
|
639
494
|
key: idx
|
|
640
|
-
}, /*#__PURE__*/
|
|
495
|
+
}, /*#__PURE__*/React__default.createElement(Button, _extends({
|
|
641
496
|
fullWidth: true,
|
|
642
497
|
className: "neeto-molecules-help-sublist__item-btn",
|
|
643
498
|
iconPosition: "left",
|
|
644
499
|
iconSize: 18,
|
|
645
500
|
style: "text"
|
|
646
|
-
}, buttonProps), label, isPresent(buttonProps.changesCount) && /*#__PURE__*/
|
|
501
|
+
}, buttonProps), label, isPresent(buttonProps.changesCount) && /*#__PURE__*/React__default.createElement("span", {
|
|
647
502
|
className: "neeto-molecules-help-sublist__item-btn-count",
|
|
648
503
|
"data-testid": "help-section-menu-changes-count"
|
|
649
504
|
}, buttonProps.changesCount)));
|
|
@@ -672,15 +527,15 @@ var Footer = function Footer(_ref) {
|
|
|
672
527
|
};
|
|
673
528
|
window.Nv = window.Nv ? Object.assign(window.Nv, Nv) : Nv;
|
|
674
529
|
}, []);
|
|
675
|
-
return /*#__PURE__*/
|
|
530
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
676
531
|
className: "neeto-molecules-sidebar__footer neeto-molecules-sidebar__no-shrinkable"
|
|
677
|
-
}, /*#__PURE__*/
|
|
532
|
+
}, /*#__PURE__*/React__default.createElement(Tooltip, {
|
|
678
533
|
interactive: true,
|
|
679
534
|
appendTo: function appendTo() {
|
|
680
535
|
return document.body;
|
|
681
536
|
},
|
|
682
537
|
className: "neeto-molecules-help-popup-wrapper",
|
|
683
|
-
content: /*#__PURE__*/
|
|
538
|
+
content: /*#__PURE__*/React__default.createElement(HelpSectionMenu, {
|
|
684
539
|
changesCount: changesCount,
|
|
685
540
|
helpLinkOverrides: helpLinkOverrides
|
|
686
541
|
}),
|
|
@@ -689,9 +544,9 @@ var Footer = function Footer(_ref) {
|
|
|
689
544
|
offset: [0, -70],
|
|
690
545
|
position: "right",
|
|
691
546
|
theme: "light"
|
|
692
|
-
}, /*#__PURE__*/
|
|
547
|
+
}, /*#__PURE__*/React__default.createElement(HelpSection$1, {
|
|
693
548
|
changesCount: changesCount
|
|
694
|
-
})), showAppSwitcher && /*#__PURE__*/
|
|
549
|
+
})), showAppSwitcher && /*#__PURE__*/React__default.createElement(AppSwitcherButton, null), /*#__PURE__*/React__default.createElement(ProfileButton, {
|
|
695
550
|
extraTopLinks: extraTopLinks,
|
|
696
551
|
profileInfoOverrides: profileInfoOverrides
|
|
697
552
|
}));
|
|
@@ -715,147 +570,29 @@ var Header = function Header(_ref) {
|
|
|
715
570
|
homePath = new URL(thisApp === null || thisApp === void 0 ? void 0 : thisApp.url).pathname;
|
|
716
571
|
}
|
|
717
572
|
}
|
|
718
|
-
return /*#__PURE__*/
|
|
573
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
719
574
|
className: "neeto-molecules-sidebar__header neeto-molecules-sidebar__no-shrinkable",
|
|
720
575
|
"data-cy": "sidebar-info"
|
|
721
|
-
}, /*#__PURE__*/
|
|
576
|
+
}, /*#__PURE__*/React__default.createElement(Link, {
|
|
722
577
|
className: "neeto-molecules-sidebar__logo neeto-ui-w-full",
|
|
723
578
|
to: homePath
|
|
724
|
-
}, /*#__PURE__*/
|
|
579
|
+
}, /*#__PURE__*/React__default.createElement(LogoComponent, null)));
|
|
725
580
|
};
|
|
726
|
-
var Header$1 = /*#__PURE__*/
|
|
581
|
+
var Header$1 = /*#__PURE__*/React__default.memo(Header);
|
|
727
582
|
|
|
728
|
-
var _excluded$
|
|
583
|
+
var _excluded$2 = ["checkpointKey", "to", "children"];
|
|
729
584
|
var CheckPointNavLinks = function CheckPointNavLinks(_ref) {
|
|
730
585
|
var checkpointKey = _ref.checkpointKey,
|
|
731
586
|
to = _ref.to,
|
|
732
587
|
children = _ref.children,
|
|
733
|
-
others = _objectWithoutProperties(_ref, _excluded$
|
|
588
|
+
others = _objectWithoutProperties(_ref, _excluded$2);
|
|
734
589
|
var _useNavigationCheckpo = useNavigationCheckpoints(checkpointKey),
|
|
735
590
|
checkpoint = _useNavigationCheckpo[checkpointKey];
|
|
736
|
-
return /*#__PURE__*/
|
|
591
|
+
return /*#__PURE__*/React__default.createElement(NavLink, _extends({
|
|
737
592
|
to: checkpoint || to
|
|
738
593
|
}, others), children);
|
|
739
594
|
};
|
|
740
595
|
|
|
741
|
-
var MENU_ITEM_TYPES = {
|
|
742
|
-
menuItem: "menuItem",
|
|
743
|
-
divider: "divider"
|
|
744
|
-
};
|
|
745
|
-
var DEFAULT_TOOLTIP_PROPS = {
|
|
746
|
-
disabled: true,
|
|
747
|
-
position: "bottom"
|
|
748
|
-
};
|
|
749
|
-
|
|
750
|
-
var _excluded$4 = ["label", "key"],
|
|
751
|
-
_excluded2 = ["isVisible", "key"];
|
|
752
|
-
var MenuItem$1 = Dropdown.MenuItem,
|
|
753
|
-
Menu$1 = Dropdown.Menu;
|
|
754
|
-
var Submenu = function Submenu(_ref) {
|
|
755
|
-
var label = _ref.label,
|
|
756
|
-
key = _ref.key,
|
|
757
|
-
menuItemProps = _objectWithoutProperties(_ref, _excluded$4);
|
|
758
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
759
|
-
customTarget: /*#__PURE__*/React.createElement(MenuItem$1.Button, null, label),
|
|
760
|
-
key: key,
|
|
761
|
-
position: "left",
|
|
762
|
-
trigger: "hover"
|
|
763
|
-
}, menuItemProps.dropdownProps), /*#__PURE__*/React.createElement(Menu$1, null, menuItemProps.menuItems.map(function (_ref2) {
|
|
764
|
-
var _ref2$isVisible = _ref2.isVisible,
|
|
765
|
-
isVisible = _ref2$isVisible === void 0 ? true : _ref2$isVisible,
|
|
766
|
-
key = _ref2.key,
|
|
767
|
-
menuItemProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
768
|
-
if (!isVisible) return null;
|
|
769
|
-
return /*#__PURE__*/React.createElement(MoreDropdownMenuItem, _extends({
|
|
770
|
-
key: key
|
|
771
|
-
}, menuItemProps));
|
|
772
|
-
})));
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
var _excluded$3 = ["onClick", "label", "type", "hasSubItems"];
|
|
776
|
-
function ownKeys$3(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
777
|
-
function _objectSpread$3(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$3(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$3(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
778
|
-
var MenuItem = Dropdown.MenuItem,
|
|
779
|
-
Divider = Dropdown.Divider;
|
|
780
|
-
var MoreDropdownMenuItem = function MoreDropdownMenuItem(_ref) {
|
|
781
|
-
var onClick = _ref.onClick,
|
|
782
|
-
label = _ref.label,
|
|
783
|
-
_ref$type = _ref.type,
|
|
784
|
-
type = _ref$type === void 0 ? MENU_ITEM_TYPES.menuItem : _ref$type,
|
|
785
|
-
_ref$hasSubItems = _ref.hasSubItems,
|
|
786
|
-
hasSubItems = _ref$hasSubItems === void 0 ? false : _ref$hasSubItems,
|
|
787
|
-
menuItemProps = _objectWithoutProperties(_ref, _excluded$3);
|
|
788
|
-
if (type === MENU_ITEM_TYPES.divider) {
|
|
789
|
-
return /*#__PURE__*/React.createElement(Divider, null);
|
|
790
|
-
}
|
|
791
|
-
if (hasSubItems) {
|
|
792
|
-
return /*#__PURE__*/React.createElement(Submenu, _objectSpread$3({
|
|
793
|
-
label: label
|
|
794
|
-
}, menuItemProps));
|
|
795
|
-
}
|
|
796
|
-
return /*#__PURE__*/React.createElement(MenuItem.Button, _objectSpread$3({
|
|
797
|
-
onClick: onClick
|
|
798
|
-
}, menuItemProps), label);
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
var _excluded$2 = ["isVisible", "key"];
|
|
802
|
-
function ownKeys$2(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
803
|
-
function _objectSpread$2(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$2(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
804
|
-
var Menu = Dropdown.Menu;
|
|
805
|
-
var MoreDropdown = function MoreDropdown(_ref) {
|
|
806
|
-
var _ref$dropdownButtonPr = _ref.dropdownButtonProps,
|
|
807
|
-
dropdownButtonProps = _ref$dropdownButtonPr === void 0 ? {} : _ref$dropdownButtonPr,
|
|
808
|
-
_ref$isVertical = _ref.isVertical,
|
|
809
|
-
isVertical = _ref$isVertical === void 0 ? false : _ref$isVertical,
|
|
810
|
-
_ref$isDisabled = _ref.isDisabled,
|
|
811
|
-
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
812
|
-
_ref$dropdownProps = _ref.dropdownProps,
|
|
813
|
-
dropdownProps = _ref$dropdownProps === void 0 ? {} : _ref$dropdownProps,
|
|
814
|
-
menuTopChildren = _ref.menuTopChildren,
|
|
815
|
-
menuBottomChildren = _ref.menuBottomChildren,
|
|
816
|
-
_ref$menuItems = _ref.menuItems,
|
|
817
|
-
menuItems = _ref$menuItems === void 0 ? [] : _ref$menuItems;
|
|
818
|
-
var _useTranslation = useTranslation(),
|
|
819
|
-
t = _useTranslation.t;
|
|
820
|
-
var tooltipProps = mergeRight(DEFAULT_TOOLTIP_PROPS, dropdownButtonProps.tooltipProps);
|
|
821
|
-
var targetIcon = isVertical ? MenuVertical : MenuHorizontal;
|
|
822
|
-
var isDropdownDisabled = isDisabled || dropdownProps.disabled;
|
|
823
|
-
if (isDropdownDisabled && !tooltipProps.disabled) {
|
|
824
|
-
return /*#__PURE__*/React.createElement(Tooltip, tooltipProps, /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(Button, _extends({
|
|
825
|
-
disabled: true,
|
|
826
|
-
"data-cy": "more-dropdown-button",
|
|
827
|
-
"data-testid": "nui-dropdown-button",
|
|
828
|
-
icon: targetIcon,
|
|
829
|
-
iconPosition: "right",
|
|
830
|
-
size: "medium",
|
|
831
|
-
style: "text"
|
|
832
|
-
}, dropdownButtonProps))));
|
|
833
|
-
}
|
|
834
|
-
return /*#__PURE__*/React.createElement(Dropdown, _extends({
|
|
835
|
-
autoWidth: true,
|
|
836
|
-
className: "flex",
|
|
837
|
-
disabled: isDisabled,
|
|
838
|
-
icon: targetIcon,
|
|
839
|
-
buttonProps: _objectSpread$2({
|
|
840
|
-
className: "min-h-0 flex-shrink-0",
|
|
841
|
-
style: "text",
|
|
842
|
-
tooltipProps: {
|
|
843
|
-
content: t("neetoMolecules.moreDropdown.tooltip"),
|
|
844
|
-
position: "top"
|
|
845
|
-
}
|
|
846
|
-
}, dropdownButtonProps)
|
|
847
|
-
}, dropdownProps), /*#__PURE__*/React.createElement(Menu, null, menuTopChildren, menuItems.map(function (_ref2) {
|
|
848
|
-
var _ref2$isVisible = _ref2.isVisible,
|
|
849
|
-
isVisible = _ref2$isVisible === void 0 ? true : _ref2$isVisible,
|
|
850
|
-
key = _ref2.key,
|
|
851
|
-
menuItemProps = _objectWithoutProperties(_ref2, _excluded$2);
|
|
852
|
-
if (!isVisible) return null;
|
|
853
|
-
return /*#__PURE__*/React.createElement(MoreDropdownMenuItem, _extends({
|
|
854
|
-
key: key
|
|
855
|
-
}, menuItemProps));
|
|
856
|
-
}), menuBottomChildren));
|
|
857
|
-
};
|
|
858
|
-
|
|
859
596
|
var DeleteAlert = function DeleteAlert(_ref) {
|
|
860
597
|
var isOpen = _ref.isOpen,
|
|
861
598
|
onClose = _ref.onClose,
|
|
@@ -885,12 +622,12 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
885
622
|
onSuccess: onClose
|
|
886
623
|
});
|
|
887
624
|
};
|
|
888
|
-
return /*#__PURE__*/
|
|
625
|
+
return /*#__PURE__*/React__default.createElement(Alert, {
|
|
889
626
|
isOpen: isOpen,
|
|
890
627
|
onClose: onClose,
|
|
891
628
|
isSubmitting: isDeleting,
|
|
892
629
|
submitButtonLabel: t("neetoMolecules.common.actions.delete"),
|
|
893
|
-
message: /*#__PURE__*/
|
|
630
|
+
message: /*#__PURE__*/React__default.createElement(Trans, {
|
|
894
631
|
i18nKey: "neetoMolecules.sidebar.segments.deleteAlertMessage",
|
|
895
632
|
values: {
|
|
896
633
|
entity: segment.name
|
|
@@ -904,7 +641,7 @@ var DeleteAlert = function DeleteAlert(_ref) {
|
|
|
904
641
|
};
|
|
905
642
|
|
|
906
643
|
var RENAME_SEGMENT_FORM_VALIDATION = yup.object().shape({
|
|
907
|
-
name: yup.string().trim().required(t
|
|
644
|
+
name: yup.string().trim().required(t("neetoMolecules.sidebar.segments.validations.nameIsRequired"))
|
|
908
645
|
});
|
|
909
646
|
|
|
910
647
|
function ownKeys$1(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -946,16 +683,16 @@ var Rename = function Rename(_ref) {
|
|
|
946
683
|
}
|
|
947
684
|
});
|
|
948
685
|
};
|
|
949
|
-
return /*#__PURE__*/
|
|
686
|
+
return /*#__PURE__*/React__default.createElement(Pane, {
|
|
950
687
|
isOpen: isOpen,
|
|
951
688
|
initialFocusRef: inputRef,
|
|
952
689
|
onClose: function onClose() {
|
|
953
690
|
return setIsOpen(false);
|
|
954
691
|
}
|
|
955
|
-
}, /*#__PURE__*/
|
|
692
|
+
}, /*#__PURE__*/React__default.createElement(Pane.Header, null, /*#__PURE__*/React__default.createElement(Typography, {
|
|
956
693
|
"data-cy": "edit-pane-header",
|
|
957
694
|
style: "h2"
|
|
958
|
-
}, t("neetoMolecules.sidebar.segments.renameTitle"))), /*#__PURE__*/
|
|
695
|
+
}, t("neetoMolecules.sidebar.segments.renameTitle"))), /*#__PURE__*/React__default.createElement(Form, {
|
|
959
696
|
className: "w-full",
|
|
960
697
|
formikProps: {
|
|
961
698
|
initialValues: {
|
|
@@ -966,16 +703,16 @@ var Rename = function Rename(_ref) {
|
|
|
966
703
|
validationSchema: RENAME_SEGMENT_FORM_VALIDATION,
|
|
967
704
|
onSubmit: handleSubmit
|
|
968
705
|
}
|
|
969
|
-
}, /*#__PURE__*/
|
|
706
|
+
}, /*#__PURE__*/React__default.createElement(Pane.Body, null, /*#__PURE__*/React__default.createElement(Input$1, {
|
|
970
707
|
required: true,
|
|
971
708
|
className: "w-full",
|
|
972
709
|
"data-testid": "segment-name-input-field",
|
|
973
710
|
label: t("neetoMolecules.sidebar.segments.renameFieldLabel"),
|
|
974
711
|
name: "name",
|
|
975
712
|
ref: inputRef
|
|
976
|
-
})), /*#__PURE__*/
|
|
713
|
+
})), /*#__PURE__*/React__default.createElement(Pane.Footer, {
|
|
977
714
|
className: "flex items-center space-x-2"
|
|
978
|
-
}, /*#__PURE__*/
|
|
715
|
+
}, /*#__PURE__*/React__default.createElement(ActionBlock, {
|
|
979
716
|
cancelButtonProps: {
|
|
980
717
|
onClick: function onClick() {
|
|
981
718
|
return setIsOpen(false);
|
|
@@ -1015,18 +752,18 @@ var Segment = function Segment(_ref) {
|
|
|
1015
752
|
});
|
|
1016
753
|
};
|
|
1017
754
|
var dataCyPrefix = dataCy || hyphenate(label);
|
|
1018
|
-
return /*#__PURE__*/
|
|
755
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("button", {
|
|
1019
756
|
"data-cy": "".concat(dataCyPrefix, "-segment-link"),
|
|
1020
757
|
className: classnames("neeto-molecules-sidebar-segment neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none mb-0 w-full py-1", {
|
|
1021
758
|
active: segmentId === segment.id
|
|
1022
759
|
}),
|
|
1023
760
|
onClick: handleSelectSegment
|
|
1024
|
-
}, /*#__PURE__*/
|
|
761
|
+
}, /*#__PURE__*/React__default.createElement(Typography, {
|
|
1025
762
|
className: "neeto-molecules-sidebar__link-sub-label neeto-molecules-sidebar-segment__label neeto-ui-flex-grow min-w-0",
|
|
1026
763
|
component: "span",
|
|
1027
764
|
"data-cy": "".concat(dataCyPrefix, "-sub-link-label"),
|
|
1028
765
|
style: "body2"
|
|
1029
|
-
}, label), /*#__PURE__*/
|
|
766
|
+
}, label), /*#__PURE__*/React__default.createElement(MoreDropdown, {
|
|
1030
767
|
dropdownButtonProps: {
|
|
1031
768
|
"data-testid": "segment-more-menu-".concat(dataCyPrefix),
|
|
1032
769
|
className: "flex-shrink-0",
|
|
@@ -1056,14 +793,14 @@ var Segment = function Segment(_ref) {
|
|
|
1056
793
|
},
|
|
1057
794
|
key: "delete-custom-segment-button"
|
|
1058
795
|
}]
|
|
1059
|
-
})), /*#__PURE__*/
|
|
796
|
+
})), /*#__PURE__*/React__default.createElement(DeleteAlert, {
|
|
1060
797
|
columns: columns,
|
|
1061
798
|
segment: segment,
|
|
1062
799
|
isOpen: isDeleteAlertOpen,
|
|
1063
800
|
onClose: function onClose() {
|
|
1064
801
|
return setIsDeleteAlertOpen(false);
|
|
1065
802
|
}
|
|
1066
|
-
}), /*#__PURE__*/
|
|
803
|
+
}), /*#__PURE__*/React__default.createElement(Rename, {
|
|
1067
804
|
segment: segment,
|
|
1068
805
|
isOpen: isRenamePaneOpen,
|
|
1069
806
|
setIsOpen: setIsRenamePaneOpen
|
|
@@ -1089,7 +826,7 @@ var SubLink = function SubLink(_ref) {
|
|
|
1089
826
|
filters: filters
|
|
1090
827
|
};
|
|
1091
828
|
if (type === SUB_LINK_TYPES.SEGMENT) {
|
|
1092
|
-
return /*#__PURE__*/
|
|
829
|
+
return /*#__PURE__*/React__default.createElement(Segment, {
|
|
1093
830
|
columns: columns,
|
|
1094
831
|
dataCy: dataCy,
|
|
1095
832
|
label: label,
|
|
@@ -1100,7 +837,7 @@ var SubLink = function SubLink(_ref) {
|
|
|
1100
837
|
var renderCount = function renderCount(count) {
|
|
1101
838
|
return count > 999 ? "999+" : count;
|
|
1102
839
|
};
|
|
1103
|
-
return /*#__PURE__*/
|
|
840
|
+
return /*#__PURE__*/React__default.createElement(CheckPointNavLinks, _extends({
|
|
1104
841
|
to: to,
|
|
1105
842
|
activeClassName: "active",
|
|
1106
843
|
className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
|
|
@@ -1108,17 +845,17 @@ var SubLink = function SubLink(_ref) {
|
|
|
1108
845
|
isActive: function isActive() {
|
|
1109
846
|
return isSubRouteActive(to, location);
|
|
1110
847
|
}
|
|
1111
|
-
}, otherProps), /*#__PURE__*/
|
|
848
|
+
}, otherProps), /*#__PURE__*/React__default.createElement(Typography, {
|
|
1112
849
|
className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
|
|
1113
850
|
component: "span",
|
|
1114
851
|
"data-cy": "".concat(dataCyPrefix, "-sub-link-label"),
|
|
1115
852
|
style: "body2"
|
|
1116
|
-
}, label), /*#__PURE__*/
|
|
853
|
+
}, label), /*#__PURE__*/React__default.createElement(Typography, {
|
|
1117
854
|
className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
|
|
1118
855
|
component: "span",
|
|
1119
856
|
"data-cy": "".concat(dataCyPrefix, "-sub-link-count"),
|
|
1120
857
|
style: "body2"
|
|
1121
|
-
}, isCountsLoading ? /*#__PURE__*/
|
|
858
|
+
}, isCountsLoading ? /*#__PURE__*/React__default.createElement("div", {
|
|
1122
859
|
className: "neeto-ui-rounded neeto-ui-bg-gray-200 h-4 w-4 animate-pulse"
|
|
1123
860
|
}) : renderCount(count)));
|
|
1124
861
|
};
|
|
@@ -1152,7 +889,7 @@ var Links = function Links(_ref) {
|
|
|
1152
889
|
}
|
|
1153
890
|
setIsActiveLinkExpanded(true);
|
|
1154
891
|
};
|
|
1155
|
-
return /*#__PURE__*/
|
|
892
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1156
893
|
className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__no-shrinkable"
|
|
1157
894
|
}, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
|
|
1158
895
|
var label = _ref3.label,
|
|
@@ -1171,9 +908,9 @@ var Links = function Links(_ref) {
|
|
|
1171
908
|
var firstSegmentIndex = _findIndexBy({
|
|
1172
909
|
type: SUB_LINK_TYPES.SEGMENT
|
|
1173
910
|
}, items);
|
|
1174
|
-
return /*#__PURE__*/
|
|
911
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
1175
912
|
key: mainIndex
|
|
1176
|
-
}, /*#__PURE__*/
|
|
913
|
+
}, /*#__PURE__*/React__default.createElement(CheckPointNavLinks, _extends({
|
|
1177
914
|
activeClassName: "active",
|
|
1178
915
|
className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
|
|
1179
916
|
"data-testid": "navlink-".concat(hyphenate(label)),
|
|
@@ -1183,31 +920,31 @@ var Links = function Links(_ref) {
|
|
|
1183
920
|
}, _objectSpread({
|
|
1184
921
|
isActive: isActive,
|
|
1185
922
|
to: to
|
|
1186
|
-
}, otherProps)), icon && /*#__PURE__*/
|
|
923
|
+
}, otherProps)), icon && /*#__PURE__*/React__default.createElement("span", {
|
|
1187
924
|
className: "neeto-molecules-sidebar__link-icon",
|
|
1188
925
|
"data-testid": label
|
|
1189
|
-
}, /*#__PURE__*/
|
|
926
|
+
}, /*#__PURE__*/React__default.createElement(IconSVG, null)), /*#__PURE__*/React__default.createElement(Typography, {
|
|
1190
927
|
className: "neeto-molecules-sidebar__link-label",
|
|
1191
928
|
component: "span",
|
|
1192
929
|
style: "body2",
|
|
1193
930
|
weight: "normal"
|
|
1194
|
-
}, label), items && /*#__PURE__*/
|
|
931
|
+
}, label), items && /*#__PURE__*/React__default.createElement("span", {
|
|
1195
932
|
className: classnames("neeto-molecules-sidebar__link-icon neeto-molecules-sidebar__link-icon--caret", {
|
|
1196
933
|
"neeto-molecules-sidebar__link-icon--rotate": isMenuExpanded
|
|
1197
934
|
})
|
|
1198
|
-
}, /*#__PURE__*/
|
|
935
|
+
}, /*#__PURE__*/React__default.createElement(Down, {
|
|
1199
936
|
size: 16
|
|
1200
|
-
}))), items && isMenuExpanded && /*#__PURE__*/
|
|
937
|
+
}))), items && isMenuExpanded && /*#__PURE__*/React__default.createElement("div", {
|
|
1201
938
|
className: "neeto-molecules-sidebar__sublink-wrapper",
|
|
1202
939
|
"data-cy": "sidebar-sub-link-wrapper"
|
|
1203
940
|
}, items.filter(filterByPermissions).map(function (subItem, subIndex) {
|
|
1204
|
-
return /*#__PURE__*/
|
|
941
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
1205
942
|
key: subIndex
|
|
1206
|
-
}, subIndex === firstSegmentIndex && /*#__PURE__*/
|
|
943
|
+
}, subIndex === firstSegmentIndex && /*#__PURE__*/React__default.createElement(Typography, {
|
|
1207
944
|
className: "neeto-molecules-sidebar-segments-header neeto-ui-text-transform-capitalize neeto-ui-text-gray-600 py-2 uppercase",
|
|
1208
945
|
style: "body3",
|
|
1209
946
|
weight: "semibold"
|
|
1210
|
-
}, t("neetoMolecules.sidebar.segments.segment", PLURAL)), /*#__PURE__*/
|
|
947
|
+
}, t("neetoMolecules.sidebar.segments.segment", PLURAL)), /*#__PURE__*/React__default.createElement(SubLink, _extends({}, _objectSpread(_objectSpread({}, subItem), {}, {
|
|
1211
948
|
isCountsLoading: isCountsLoading
|
|
1212
949
|
}), {
|
|
1213
950
|
columns: otherProps.columns
|
|
@@ -1266,37 +1003,37 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
1266
1003
|
};
|
|
1267
1004
|
}, []);
|
|
1268
1005
|
var productName = globalProps$1.appName.substr(5).toLowerCase();
|
|
1269
|
-
return /*#__PURE__*/
|
|
1006
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
1270
1007
|
"data-testid": "sidebar-container",
|
|
1271
1008
|
className: classnames("neeto-molecules-sidebar__wrapper", {
|
|
1272
1009
|
"neeto-molecules-sidebar__wrapper--collapsed": isLargerScreen() ? isSidebarCollapsed : not(isSidebarPaneOpen)
|
|
1273
1010
|
})
|
|
1274
|
-
}, /*#__PURE__*/
|
|
1011
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
1275
1012
|
className: "neeto-molecules-sidebar__backdrop",
|
|
1276
1013
|
onClick: function onClick() {
|
|
1277
1014
|
setIsSidebarPaneOpen(false);
|
|
1278
1015
|
}
|
|
1279
|
-
}), /*#__PURE__*/
|
|
1016
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
1280
1017
|
className: "neeto-molecules-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden",
|
|
1281
1018
|
"data-cy": "sidebar-wrapper",
|
|
1282
1019
|
"data-testid": "sidebar"
|
|
1283
|
-
}, /*#__PURE__*/
|
|
1020
|
+
}, /*#__PURE__*/React__default.createElement(Header$1, {
|
|
1284
1021
|
customLogo: customLogo
|
|
1285
|
-
}), /*#__PURE__*/
|
|
1022
|
+
}), /*#__PURE__*/React__default.createElement(Links, {
|
|
1286
1023
|
isCountsLoading: isCountsLoading,
|
|
1287
1024
|
navLinks: navLinks
|
|
1288
|
-
}), showFooter && /*#__PURE__*/
|
|
1025
|
+
}), showFooter && /*#__PURE__*/React__default.createElement(Footer, {
|
|
1289
1026
|
extraTopLinks: extraTopLinks,
|
|
1290
1027
|
helpLinkOverrides: helpLinkOverrides,
|
|
1291
1028
|
profileInfoOverrides: profileInfoOverrides,
|
|
1292
1029
|
showAppSwitcher: showAppSwitcher
|
|
1293
|
-
})), /*#__PURE__*/
|
|
1030
|
+
})), /*#__PURE__*/React__default.createElement(Button, {
|
|
1294
1031
|
className: "neeto-molecules-sidebar__toggler",
|
|
1295
1032
|
"data-cy": "neeto-molecules-sidebar-toggler",
|
|
1296
1033
|
"data-testid": "sidebar-toggleButton",
|
|
1297
1034
|
style: isLargerScreen() ? "text" : "secondary",
|
|
1298
1035
|
icon: function icon() {
|
|
1299
|
-
return /*#__PURE__*/
|
|
1036
|
+
return /*#__PURE__*/React__default.createElement(Chevron, {
|
|
1300
1037
|
style: {
|
|
1301
1038
|
color: "rgb(var(--neeto-".concat(productName, "-primary))")
|
|
1302
1039
|
}
|