@bigbinary/neeto-molecules 4.0.86 → 4.0.88

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.
Files changed (147) hide show
  1. package/README.md +1 -0
  2. package/dist/BoardView.js +4 -4
  3. package/dist/BoardView.js.map +1 -1
  4. package/dist/Breadcrumbs.js +1 -1
  5. package/dist/BrowserPreview.js +1 -1
  6. package/dist/Builder.js +4 -4
  7. package/dist/Builder.js.map +1 -1
  8. package/dist/ButtonGroup.js +1 -1
  9. package/dist/CalendarView.js +2 -2
  10. package/dist/CalendarView.js.map +1 -1
  11. package/dist/CardLayout.js +1 -1
  12. package/dist/CardLayout.js.map +1 -1
  13. package/dist/Chevron-kr6SNbMJ.js +263 -0
  14. package/dist/{Chevron-DXA34GCh.js.map → Chevron-kr6SNbMJ.js.map} +1 -1
  15. package/dist/ConfigurePageSidebar.js +1 -1
  16. package/dist/DndTable.js +176 -0
  17. package/dist/DndTable.js.map +1 -0
  18. package/dist/DocumentEditor.js +3 -3
  19. package/dist/DocumentEditor.js.map +1 -1
  20. package/dist/DynamicVariables.js +1 -1
  21. package/dist/EmailPreview.js +1 -1
  22. package/dist/EmailPreview.js.map +1 -1
  23. package/dist/Engagements.js +4 -4
  24. package/dist/Engagements.js.map +1 -1
  25. package/dist/FileUpload.js +1 -1
  26. package/dist/FinderModal.js +3 -3
  27. package/dist/FinderModal.js.map +1 -1
  28. package/dist/FloatingActionMenu.js +7 -4
  29. package/dist/FloatingActionMenu.js.map +1 -1
  30. package/dist/Header.js +1 -1
  31. package/dist/InlineInput.js +1 -1
  32. package/dist/Insights.js +4 -4
  33. package/dist/Insights.js.map +1 -1
  34. package/dist/IpRestriction.js +3 -3
  35. package/dist/IpRestriction.js.map +1 -1
  36. package/dist/KeyboardShortcuts.js +2 -2
  37. package/dist/KeyboardShortcuts.js.map +1 -1
  38. package/dist/MenuBar.js +1 -1
  39. package/dist/Metadata.js +3 -3
  40. package/dist/Metadata.js.map +1 -1
  41. package/dist/NavigationHeader.js +1 -1
  42. package/dist/NeetoWidget.js +1 -1
  43. package/dist/NeetoWidget.js.map +1 -1
  44. package/dist/Onboarding.js +12 -2
  45. package/dist/Onboarding.js.map +1 -1
  46. package/dist/OptionFields.js +4 -4
  47. package/dist/OptionFields.js.map +1 -1
  48. package/dist/PageLoader.js +1 -1
  49. package/dist/ProductEmbed.js +5 -5
  50. package/dist/ProductEmbed.js.map +1 -1
  51. package/dist/PublishBlock.js +1 -1
  52. package/dist/PublishYourItem.js +1 -1
  53. package/dist/PublishYourItem.js.map +1 -1
  54. package/dist/Rename.js +1 -1
  55. package/dist/ResponsiveDevicePicker.js +1 -1
  56. package/dist/Schedule.js +6 -6
  57. package/dist/Schedule.js.map +1 -1
  58. package/dist/SendToFields.js +2 -2
  59. package/dist/SendToFields.js.map +1 -1
  60. package/dist/SessionEnvironment.js +2 -2
  61. package/dist/SessionEnvironment.js.map +1 -1
  62. package/dist/ShareViaLink.js +3 -3
  63. package/dist/ShareViaLink.js.map +1 -1
  64. package/dist/Sidebar.js +1 -1
  65. package/dist/SubHeader.js +1 -1
  66. package/dist/SuffixedInput.js +2 -2
  67. package/dist/SuffixedInput.js.map +1 -1
  68. package/dist/Taxonomy.js +3 -3
  69. package/dist/Taxonomy.js.map +1 -1
  70. package/dist/VersionHistory.js +2 -2
  71. package/dist/VersionHistory.js.map +1 -1
  72. package/dist/cjs/BoardView.js +4 -4
  73. package/dist/cjs/BoardView.js.map +1 -1
  74. package/dist/cjs/Breadcrumbs.js +1 -1
  75. package/dist/cjs/BrowserPreview.js +1 -1
  76. package/dist/cjs/Builder.js +4 -4
  77. package/dist/cjs/Builder.js.map +1 -1
  78. package/dist/cjs/ButtonGroup.js +1 -1
  79. package/dist/cjs/CalendarView.js +2 -2
  80. package/dist/cjs/CalendarView.js.map +1 -1
  81. package/dist/cjs/CardLayout.js +1 -1
  82. package/dist/cjs/CardLayout.js.map +1 -1
  83. package/dist/cjs/Chevron-7PZUWPKl.js +280 -0
  84. package/dist/cjs/{Chevron-C5y6R4rr.js.map → Chevron-7PZUWPKl.js.map} +1 -1
  85. package/dist/cjs/ConfigurePageSidebar.js +1 -1
  86. package/dist/cjs/DndTable.js +181 -0
  87. package/dist/cjs/DndTable.js.map +1 -0
  88. package/dist/cjs/DocumentEditor.js +3 -3
  89. package/dist/cjs/DocumentEditor.js.map +1 -1
  90. package/dist/cjs/DynamicVariables.js +1 -1
  91. package/dist/cjs/EmailPreview.js +1 -1
  92. package/dist/cjs/EmailPreview.js.map +1 -1
  93. package/dist/cjs/Engagements.js +4 -4
  94. package/dist/cjs/Engagements.js.map +1 -1
  95. package/dist/cjs/FileUpload.js +1 -1
  96. package/dist/cjs/FinderModal.js +3 -3
  97. package/dist/cjs/FinderModal.js.map +1 -1
  98. package/dist/cjs/FloatingActionMenu.js +7 -4
  99. package/dist/cjs/FloatingActionMenu.js.map +1 -1
  100. package/dist/cjs/Header.js +1 -1
  101. package/dist/cjs/InlineInput.js +1 -1
  102. package/dist/cjs/Insights.js +4 -4
  103. package/dist/cjs/Insights.js.map +1 -1
  104. package/dist/cjs/IpRestriction.js +3 -3
  105. package/dist/cjs/IpRestriction.js.map +1 -1
  106. package/dist/cjs/KeyboardShortcuts.js +2 -2
  107. package/dist/cjs/KeyboardShortcuts.js.map +1 -1
  108. package/dist/cjs/MenuBar.js +1 -1
  109. package/dist/cjs/Metadata.js +3 -3
  110. package/dist/cjs/Metadata.js.map +1 -1
  111. package/dist/cjs/NavigationHeader.js +1 -1
  112. package/dist/cjs/NeetoWidget.js +1 -1
  113. package/dist/cjs/NeetoWidget.js.map +1 -1
  114. package/dist/cjs/Onboarding.js +12 -2
  115. package/dist/cjs/Onboarding.js.map +1 -1
  116. package/dist/cjs/OptionFields.js +4 -4
  117. package/dist/cjs/OptionFields.js.map +1 -1
  118. package/dist/cjs/PageLoader.js +1 -1
  119. package/dist/cjs/ProductEmbed.js +5 -5
  120. package/dist/cjs/ProductEmbed.js.map +1 -1
  121. package/dist/cjs/PublishBlock.js +1 -1
  122. package/dist/cjs/PublishYourItem.js +1 -1
  123. package/dist/cjs/PublishYourItem.js.map +1 -1
  124. package/dist/cjs/Rename.js +1 -1
  125. package/dist/cjs/ResponsiveDevicePicker.js +1 -1
  126. package/dist/cjs/Schedule.js +6 -6
  127. package/dist/cjs/Schedule.js.map +1 -1
  128. package/dist/cjs/SendToFields.js +2 -2
  129. package/dist/cjs/SendToFields.js.map +1 -1
  130. package/dist/cjs/SessionEnvironment.js +2 -2
  131. package/dist/cjs/SessionEnvironment.js.map +1 -1
  132. package/dist/cjs/ShareViaLink.js +3 -3
  133. package/dist/cjs/ShareViaLink.js.map +1 -1
  134. package/dist/cjs/Sidebar.js +1 -1
  135. package/dist/cjs/SubHeader.js +1 -1
  136. package/dist/cjs/SuffixedInput.js +2 -2
  137. package/dist/cjs/SuffixedInput.js.map +1 -1
  138. package/dist/cjs/Taxonomy.js +3 -3
  139. package/dist/cjs/Taxonomy.js.map +1 -1
  140. package/dist/cjs/VersionHistory.js +2 -2
  141. package/dist/cjs/VersionHistory.js.map +1 -1
  142. package/dist/styles/page-loader.css +1 -1
  143. package/dist/styles/page-loader.js +1 -1
  144. package/package.json +4 -1
  145. package/types/DndTable.d.ts +168 -0
  146. package/dist/Chevron-DXA34GCh.js +0 -263
  147. package/dist/cjs/Chevron-C5y6R4rr.js +0 -280
@@ -0,0 +1,168 @@
1
+ interface DndTableProps<RowData = any> {
2
+ /**
3
+ * The data for the rows of the table.
4
+ */
5
+ rowData: RowData[];
6
+ /**
7
+ * The data for the columns of the table.
8
+ */
9
+ columnData: any[];
10
+ /**
11
+ * The index of the column to display the overlay for.
12
+ */
13
+ overlayColumnIndex?: number;
14
+ /**
15
+ * A function that determines if a row is droppable based on checks on the data.
16
+ */
17
+ isRowDroppable?: (data: RowData) => boolean;
18
+ /**
19
+ * A function that is called when a row is dropped.
20
+ */
21
+ onDrop: (active: RowData, over: RowData) => void;
22
+ [key: string]: any;
23
+ }
24
+ interface UseDndTableProps<RowData = any> {
25
+ rowData: RowData[];
26
+ onUpdate: (active: RowData, over: RowData) => void;
27
+ }
28
+ declare const useDndTable: (props: UseDndTableProps<RowData>) => {
29
+ rowData: RowData[];
30
+ onDrop: (active: RowData, over: RowData) => void;
31
+ };
32
+ /**
33
+ *
34
+ * The DndTable component is a drag-and-drop enabled table that allows users to
35
+ *
36
+ * reorder rows by dragging and dropping them. It provides visual feedback during
37
+ *
38
+ * drag operations and supports custom overlay rendering.
39
+ *
40
+ * The main table component with drag-and-drop functionality built on top of the
41
+ *
42
+ * neetoui Table component.
43
+ *
44
+ * A custom hook that provides state management and error handling for
45
+ *
46
+ * drag-and-drop operations. It automatically handles optimistic updates and
47
+ *
48
+ * rollback on errors.
49
+ *
50
+ * @example
51
+ *
52
+ * import DndTable, { useDndTable } from "@bigbinary/neeto-molecules/DndTable";
53
+ *
54
+ * const MyComponent = () => {
55
+ * const [data, setData] = useState([
56
+ * { id: 1, name: "John Doe", email: "john.doe@example.com" },
57
+ * { id: 2, name: "Jane Doe", email: "jane.doe@example.com" },
58
+ * { id: 3, name: "Alice Smith", email: "alice.smith@example.com" },
59
+ * { id: 4, name: "Bob Johnson", email: "bob.johnson@example.com" },
60
+ * { id: 5, name: "Carol Williams", email: "carol.williams@example.com" },
61
+ * { id: 6, name: "David Brown", email: "david.brown@example.com" },
62
+ * { id: 7, name: "Emma Davis", email: "emma.davis@example.com" },
63
+ * { id: 8, name: "Frank Miller", email: "frank.miller@example.com" },
64
+ * { id: 9, name: "Grace Wilson", email: "grace.wilson@example.com" },
65
+ * { id: 10, name: "Henry Moore", email: "henry.moore@example.com" },
66
+ * { id: 11, name: "Ivy Taylor", email: "ivy.taylor@example.com" },
67
+ * { id: 12, name: "Jack Anderson", email: "jack.anderson@example.com" },
68
+ * { id: 13, name: "Kate Thomas", email: "kate.thomas@example.com" },
69
+ * { id: 14, name: "Liam Jackson", email: "liam.jackson@example.com" },
70
+ * { id: 15, name: "Maya White", email: "maya.white@example.com" },
71
+ * { id: 16, name: "Noah Harris", email: "noah.harris@example.com" },
72
+ * { id: 17, name: "Olivia Martin", email: "olivia.martin@example.com" },
73
+ * { id: 18, name: "Paul Thompson", email: "paul.thompson@example.com" },
74
+ * { id: 19, name: "Quinn Garcia", email: "quinn.garcia@example.com" },
75
+ * { id: 20, name: "Rachel Martinez", email: "rachel.martinez@example.com" },
76
+ * { id: 21, name: "Sam Robinson", email: "sam.robinson@example.com" },
77
+ * { id: 22, name: "Tina Clark", email: "tina.clark@example.com" },
78
+ * { id: 23, name: "Uma Rodriguez", email: "uma.rodriguez@example.com" },
79
+ * { id: 24, name: "Victor Lewis", email: "victor.lewis@example.com" },
80
+ * { id: 25, name: "Wendy Lee", email: "wendy.lee@example.com" },
81
+ * { id: 26, name: "Xavier Walker", email: "xavier.walker@example.com" },
82
+ * { id: 27, name: "Yara Hall", email: "yara.hall@example.com" },
83
+ * { id: 28, name: "Zoe Allen", email: "zoe.allen@example.com" },
84
+ * { id: 29, name: "Aaron Young", email: "aaron.young@example.com" },
85
+ * { id: 30, name: "Bella King", email: "bella.king@example.com" },
86
+ * ]);
87
+ *
88
+ * const { rowData, onDrop } = useDndTable({
89
+ * rowData: data,
90
+ * onUpdate: async (active, over) => {
91
+ * // Make API call to update order, the item is automatically removed from the local state by the hook.
92
+ * await updateRowOrder(active.id, over.id);
93
+ * },
94
+ * });
95
+ *
96
+ * const columnData = [
97
+ * { key: "name", dataIndex: "name", title: "Name" },
98
+ * { key: "email", dataIndex: "email", title: "Email" },
99
+ * ];
100
+ *
101
+ * return (
102
+ * <DndTable
103
+ * rowData={rowData}
104
+ * columnData={columnData}
105
+ * onDrop={onDrop}
106
+ * isRowDroppable={row => row.status !== "archived"}
107
+ * />
108
+ * );
109
+ * };
110
+ * @endexample
111
+ * You can customize the drag overlay by providing a render function in your
112
+ *
113
+ * column configuration:
114
+ *
115
+ * @example
116
+ *
117
+ * const columnData = [
118
+ * {
119
+ * key: "name",
120
+ * dataIndex: "name",
121
+ * title: "Name",
122
+ * render: (value, record) => (
123
+ * <div className="flex items-center">
124
+ * <Avatar name={record.name} />
125
+ * <span className="ml-2">{value}</span>
126
+ * </div>
127
+ * ),
128
+ * },
129
+ * { key: "email", dataIndex: "email", title: "Email" },
130
+ * ];
131
+ *
132
+ * <DndTable
133
+ * rowData={rowData}
134
+ * columnData={columnData}
135
+ * overlayColumnIndex={0} // Use the first column for overlay
136
+ * onDrop={onDrop}
137
+ * />;
138
+ * @endexample
139
+ * You can make certain rows non-droppable based on their data:
140
+ *
141
+ * @example
142
+ *
143
+ * <DndTable
144
+ * rowData={rowData}
145
+ * columnData={columnData}
146
+ * onDrop={onDrop}
147
+ * isRowDroppable={row => {
148
+ * // Only allow dropping if row is not locked
149
+ * return !row.isLocked;
150
+ * }}
151
+ * />
152
+ * @endexample
153
+ * The useDndTable hook automatically handles errors and shows toast
154
+ *
155
+ * notifications:
156
+ *
157
+ * @example
158
+ *
159
+ * const { rowData, onDrop } = useDndTable({
160
+ * rowData: data,
161
+ * onUpdate: (active, over) => api.updateOrder(active.id, over.id);
162
+ * // Note: Changes to local state are automatically rolled back by the hook on error.
163
+ * });
164
+ * @endexample
165
+ */
166
+ declare const DndTable: <RowData = any>(props: DndTableProps<RowData>) => JSX.Element | null;
167
+
168
+ export { DndTable as default, useDndTable };
@@ -1,263 +0,0 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import classnames from 'classnames';
4
- import { handleMetaClick } from '@bigbinary/neeto-commons-frontend/react-utils';
5
- import { hyphenize } from '@bigbinary/neeto-commons-frontend/utils/general';
6
- import Home from '@bigbinary/neeto-icons/Home';
7
- import Typography from '@bigbinary/neetoui/Typography';
8
- import Button from '@bigbinary/neetoui/Button';
9
- import { curry, is, includes, __, all, equals, omit } from 'ramda';
10
- import { NavLink, useHistory } from 'react-router-dom';
11
- import { Fragment } from 'react';
12
- import { isNotEmpty, isPresent, hyphenate } from '@bigbinary/neeto-cist';
13
- import Segments from '@bigbinary/neeto-filters-frontend/Segments';
14
- import { useNavigationCheckpoints } from '@bigbinary/neeto-commons-frontend/react-utils/useRegisterNavigationCheckpoint';
15
- import { jsx, jsxs, Fragment as Fragment$1 } from 'react/jsx-runtime';
16
- import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
17
- import { n } from './inject-css-C2dztUxs.js';
18
-
19
- var SUB_LINK_TYPES = {
20
- SYSTEM_VIEW: "system_view",
21
- SEGMENTS: "segments"
22
- };
23
- var SELECTED_NAV_LINK_ROUTE_STORAGE_KEY = "selectedNavLinkRoute";
24
- var DEFAULT_HOME_PATH = "/admin";
25
- var SIDEBAR_WIDTH_KEY = "neeto-molecules-sidebar-width";
26
- var MIN_SIDEBAR_WIDTH = 12.5 * 16;
27
- var MAX_SIDEBAR_WIDTH = 20 * 16;
28
- var DEFAULT_SIDEBAR_WIDTH = 15 * 16;
29
- var PINNED_MORE_NAV_LINKS_KEY = "pinnedMoreNavLinks";
30
-
31
- var _excluded$1 = ["checkpointKey", "to", "href", "children"];
32
- 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; }
33
- 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), true).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; }
34
- var CheckPointNavLinks = function CheckPointNavLinks(_ref) {
35
- var checkpointKey = _ref.checkpointKey,
36
- to = _ref.to,
37
- href = _ref.href,
38
- children = _ref.children,
39
- others = _objectWithoutProperties(_ref, _excluded$1);
40
- var _useNavigationCheckpo = useNavigationCheckpoints(checkpointKey),
41
- checkpoint = _useNavigationCheckpo[checkpointKey];
42
- var LinkElement = href ? "a" : NavLink;
43
- var linkProps = href ? _objectSpread$2({
44
- href: href,
45
- key: href
46
- }, others) : _objectSpread$2({
47
- to: checkpoint || to,
48
- key: to
49
- }, others);
50
- return /*#__PURE__*/jsx(LinkElement, _objectSpread$2(_objectSpread$2({}, linkProps), {}, {
51
- children: children
52
- }));
53
- };
54
-
55
- var isSubRouteActive = function isSubRouteActive(subRoute, location) {
56
- var currentBrowserUrl = new URL(location.pathname + location.search + location.hash, window.location.origin);
57
- var targetUrl = new URL(subRoute, window.location.origin);
58
- var targetSearchParams = targetUrl.searchParams;
59
- var targetSearchKeys = Array.from(targetSearchParams.keys());
60
- return all(function (key) {
61
- return currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key);
62
- }, targetSearchKeys) && equals(currentBrowserUrl.pathname, targetUrl.pathname);
63
- };
64
- var getSidebarStateLocalStorageKey = function getSidebarStateLocalStorageKey() {
65
- var _globalProps$user, _globalProps$user2;
66
- var user = ((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.email) || ((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.phoneNumber);
67
- return "sidebarState-".concat(user);
68
- };
69
- var filterByPermissions = curry(function (_ref) {
70
- var permissions = _ref.permissions;
71
- if (permissions && isNotEmpty(permissions)) {
72
- return is(Array, permissions) ? permissions.some(includes(__, globalProps.permissions)) : globalProps.permissions.includes(permissions);
73
- }
74
- return true;
75
- });
76
- var getActiveConfigurePageLink = function getActiveConfigurePageLink(_ref2) {
77
- var navLinks = _ref2.navLinks,
78
- location = _ref2.location;
79
- return navLinks.find(function (link) {
80
- var _link$to;
81
- var _ref3 = ((_link$to = link.to) === null || _link$to === void 0 ? void 0 : _link$to.split("?")) || [],
82
- _ref4 = _slicedToArray(_ref3, 1),
83
- linkPathname = _ref4[0];
84
- return isPresent(link.isConfigureNavLink) && link.isConfigureNavLink && location.pathname.startsWith(linkPathname);
85
- });
86
- };
87
- var enableDraggingStyles = function enableDraggingStyles() {
88
- document.body.classList.add("dragging-sidebar");
89
- document.body.style.cursor = "col-resize";
90
- document.body.style.userSelect = "none";
91
- };
92
- var disableDraggingStyles = function disableDraggingStyles() {
93
- document.body.classList.remove("dragging-sidebar");
94
- document.body.style.cursor = "";
95
- document.body.style.userSelect = "";
96
- };
97
-
98
- var SubLink = function SubLink(_ref) {
99
- var to = _ref.to,
100
- href = _ref.href,
101
- onClick = _ref.onClick,
102
- label = _ref.label,
103
- _ref$type = _ref.type,
104
- type = _ref$type === void 0 ? SUB_LINK_TYPES.SYSTEM_VIEW : _ref$type,
105
- count = _ref.count,
106
- isSectionHeader = _ref.isSectionHeader,
107
- isCountsLoading = _ref.isCountsLoading,
108
- dataCy = _ref["data-cy"],
109
- _ref$entity = _ref.entity,
110
- entity = _ref$entity === void 0 ? "" : _ref$entity,
111
- _ref$columns = _ref.columns,
112
- columns = _ref$columns === void 0 ? [] : _ref$columns,
113
- baseUrl = _ref.baseUrl,
114
- isActive = _ref.isActive;
115
- if (type === SUB_LINK_TYPES.SEGMENTS) {
116
- return /*#__PURE__*/jsx(Segments, {
117
- baseUrl: baseUrl,
118
- columns: columns,
119
- entity: entity,
120
- isIndependent: false
121
- });
122
- }
123
- var dataCyPrefix = dataCy || hyphenate(label);
124
- var renderCount = function renderCount(count) {
125
- return count > 999 ? "999+" : count;
126
- };
127
- var isSubLinkActive = function isSubLinkActive() {
128
- return !isSectionHeader && (is(Function, isActive) ? isActive() : isSubRouteActive(to, location));
129
- };
130
- return /*#__PURE__*/jsxs(CheckPointNavLinks, {
131
- href: href,
132
- onClick: onClick,
133
- to: to,
134
- activeClassName: "active",
135
- className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
136
- "data-cy": "".concat(dataCyPrefix, "-sub-link"),
137
- isActive: isSubLinkActive,
138
- children: [/*#__PURE__*/jsx(Typography, {
139
- className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
140
- component: "span",
141
- "data-cy": "".concat(dataCyPrefix, "-sub-link-label"),
142
- style: "body2",
143
- children: label
144
- }), /*#__PURE__*/jsx(Typography, {
145
- className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
146
- component: "span",
147
- "data-cy": "".concat(dataCyPrefix, "-sub-link-count"),
148
- style: "body2",
149
- children: isCountsLoading ? /*#__PURE__*/jsx("div", {
150
- className: "neeto-ui-rounded neeto-ui-bg-gray-200 h-4 w-4 animate-pulse"
151
- }) : renderCount(count)
152
- })]
153
- });
154
- };
155
-
156
- 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; }
157
- function _objectSpread$1(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys$1(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
158
- var _Items = function Items(_ref) {
159
- var items = _ref.items,
160
- _ref$isSettingsItems = _ref.isSettingsItems,
161
- isSettingsItems = _ref$isSettingsItems === void 0 ? false : _ref$isSettingsItems,
162
- isCountsLoading = _ref.isCountsLoading;
163
- return /*#__PURE__*/jsx("div", {
164
- className: "neeto-molecules-sidebar__sublink-wrapper",
165
- "data-cy": "sidebar-sub-link-wrapper",
166
- children: items.filter(filterByPermissions).map(function (subItem, subIndex) {
167
- var _subItem$to;
168
- return /*#__PURE__*/jsxs(Fragment, {
169
- children: [/*#__PURE__*/jsx(SubLink, _objectSpread$1(_objectSpread$1({}, _objectSpread$1(_objectSpread$1({}, subItem), {}, {
170
- isCountsLoading: isCountsLoading
171
- })), {}, {
172
- href: subItem.href,
173
- isActive: subItem.isActive,
174
- isSectionHeader: isPresent(subItem.item),
175
- to: (_subItem$to = subItem.to) !== null && _subItem$to !== void 0 ? _subItem$to : subItem.path,
176
- onClick: subItem.onClick
177
- })), isSettingsItems && isPresent(subItem.items) && /*#__PURE__*/jsxs(Fragment$1, {
178
- children: [/*#__PURE__*/jsx(_Items, {
179
- isSettingsItems: isSettingsItems,
180
- items: subItem.items
181
- }), items.length - 1 !== subIndex && /*#__PURE__*/jsx("hr", {
182
- className: "neeto-molecules-sidebar__separator neeto-ui-border-gray-200"
183
- })]
184
- })]
185
- }, subIndex);
186
- })
187
- });
188
- };
189
-
190
- var _excluded = ["label", "items", "isConfigureNavLink"];
191
- function ownKeys(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; }
192
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), true).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
193
- var SelectedLink = function SelectedLink(_ref) {
194
- var _ref$navLink = _ref.navLink,
195
- navLink = _ref$navLink === void 0 ? {
196
- label: "",
197
- items: [],
198
- isConfigureNavLink: false
199
- } : _ref$navLink,
200
- handleGoBack = _ref.handleGoBack,
201
- isConfigureSidebar = _ref.isConfigureSidebar;
202
- var history = useHistory();
203
- var label = navLink.label,
204
- items = navLink.items,
205
- isConfigureNavLink = navLink.isConfigureNavLink,
206
- otherProps = _objectWithoutProperties(navLink, _excluded);
207
- var handleHomeButtonClick = function handleHomeButtonClick(e) {
208
- e.stopPropagation();
209
- handleMetaClick(history, DEFAULT_HOME_PATH, e);
210
- };
211
- return /*#__PURE__*/jsxs("div", {
212
- className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__links--focus-mode neeto-molecules-sidebar__no-shrinkable",
213
- "data-cy": "configure-nav-container",
214
- children: [/*#__PURE__*/jsxs("div", _objectSpread(_objectSpread({
215
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-molecules-sidebar__link neeto-ui-border-b neeto-ui-border-gray-200",
216
- onClick: handleGoBack
217
- }, _objectSpread({}, omit(["icon"], otherProps))), {}, {
218
- children: [isConfigureNavLink && /*#__PURE__*/jsxs("span", {
219
- className: "neeto-molecules-sidebar__link-icon flex items-center pl-3",
220
- children: [/*#__PURE__*/jsx(Button, {
221
- "data-cy": "".concat(hyphenize(label), "-go-back-button"),
222
- "data-testid": "".concat(label, "-go-home-button"),
223
- icon: Home,
224
- style: "text",
225
- onClick: handleHomeButtonClick
226
- }), /*#__PURE__*/jsx("span", {
227
- className: "px-1 text-xs",
228
- children: "/"
229
- })]
230
- }), /*#__PURE__*/jsx(Typography, {
231
- component: "span",
232
- style: "body1",
233
- className: classnames("neeto-molecules-sidebar__link-label", _defineProperty({
234
- "neeto-molecules-sidebar__configure-page-header": isConfigureNavLink
235
- }, "pl-4", isConfigureSidebar)),
236
- children: label
237
- })]
238
- })), items && /*#__PURE__*/jsx(_Items, {
239
- items: items,
240
- isSettingsItems: true
241
- })]
242
- });
243
- };
244
-
245
- var css = ":root{--neeto-molecules-sidebar-width:15rem;--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-engage-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:15rem}}.neeto-molecules-sidebar__wrapper{display:flex;max-width:15rem;max-width:var(--neeto-molecules-sidebar-width);position:relative;width:15rem;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:15rem;max-width:var(--neeto-molecules-sidebar-width);position:fixed;top:0;transition:none;width:15rem;width:var(--neeto-molecules-sidebar-width)}}.neeto-molecules-sidebar__wrapper__configure-page .neeto-molecules-sidebar__toggler{right:1.25rem;top:.5rem}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper__configure-page .neeto-molecules-sidebar__toggler{right:auto;top:.5rem}}.neeto-molecules-sidebar__wrapper--collapsed{max-width:0;width:0}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{right:-2.25rem;transform:scale(-1)}@media screen and (max-width:768px){.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{left:.5rem;right:auto;top:.5rem}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar{left:-15rem;left:calc(var(--neeto-molecules-sidebar-width)*-1)}.neeto-molecules-sidebar__wrapper__configure-page.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{top:6.8125rem}}.neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-white));border-right:1px solid rgb(var(--neeto-ui-gray-200));height:100vh;height:100dvh;padding:1.5rem 0;width:100%;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar:not(.neeto-molecules-sidebar__configure-page) .neeto-molecules-sidebar__links:not(.neeto-molecules-sidebar__links--focus-mode){height:calc(100vh - 7.75rem)!important;height:calc(100dvh - 7.75rem)!important;overflow-y:auto;padding-bottom:4rem}.neeto-molecules-sidebar__no-shrinkable{max-width:15rem;max-width:var(--neeto-molecules-sidebar-width);width:15rem;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar__separator{margin:.375rem auto;width:100%}.neeto-molecules-sidebar__toggler{color:rgb(var(--neeto-ui-primary-500))!important;position:absolute!important;right:.5rem;top:2.125rem;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}@media screen and (max-width:768px){.neeto-molecules-sidebar__toggler{left:12.625rem;left:calc(var(--neeto-molecules-sidebar-width) - 2.375rem);right:auto;transition:none}}.neeto-molecules-sidebar__configure-page{border-right:1px solid rgb(var(--neeto-ui-gray-200));height:auto}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page{height:100%}}.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 8.5rem)!important;height:calc(100dvh - 8.5rem)!important}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 5rem)!important;height:calc(100dvh - 5rem)!important}}.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__toggler{display:none}.neeto-molecules-sidebar__header{margin:.5rem 0 2rem;padding:0 1.5rem}.neeto-molecules-sidebar__logo svg{height:2.25rem;max-width:100%;width:auto}.neeto-molecules-sidebar__link{color:rgb(var(--neeto-ui-black));gap:.625rem;line-height:1.2;padding:.75rem 1.5rem;position:relative;text-decoration:none!important;transition:color .3s,background-color .3s;width:100%}.neeto-molecules-sidebar__link-icon{flex-shrink:0}.neeto-molecules-sidebar__link-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-sidebar__link-icon--caret{opacity:0;transition:opacity .3s ease-in-out}.neeto-molecules-sidebar__link-icon--rotate{opacity:1;transform:rotate(90deg)}.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:0.9375rem;flex-grow:1;text-align:left}@media screen and (min-width:1536px){.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:1rem}}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible,.neeto-molecules-sidebar__link[aria-expanded=true]{color:rgb(var(--neeto-ui-black));outline:none}.neeto-molecules-sidebar__link--hover-active{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-accent-100));color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-semibold)}.neeto-molecules-sidebar__link.active .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-black))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink-wrapper{padding:.25rem 0}.neeto-molecules-sidebar__sublink{color:rgb(var(--neeto-ui-gray-700));cursor:pointer;gap:.5rem;margin-bottom:0;padding:.5rem 1.5rem .5rem 3.625rem;text-decoration:none;transition:color .3s,background-color .3s}.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{--neeto-ui-text-body2:0.9375rem;opacity:.75}@media screen and (min-width:1536px){.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{--neeto-ui-text-body2:1rem}}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-black));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-black));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-accent-800));font-weight:500;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:.5rem!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:.75rem;width:9.375rem}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:.5rem;height:2.5rem;margin-bottom:.5rem;margin-left:auto;margin-right:auto;width:2.5rem}.sidebar-featured-tooltip__title{margin-bottom:.25rem}.neeto-molecules-help-popup-wrapper,.neeto-molecules-product-switcher-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;min-width:15rem}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-product-switcher-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-product-switcher-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:.25rem 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:2.5rem;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:.5rem}.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:.9375rem;justify-content:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:.9375rem}.neeto-molecules-product-switcher-popup-wrapper{height:calc(100vh - 1rem);height:calc(100dvh - 1rem);margin-bottom:.5rem;min-width:calc(100vw - 11rem);overflow-y:auto}@media screen and (max-width:768px){.neeto-molecules-product-switcher-popup-wrapper{width:calc(100vw - 11.5625rem)!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:3.625rem}.neeto-molecules-sidebar-segment{margin-bottom:0!important;padding:.25rem 1.5rem .25rem 3.625rem}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode{padding-top:0}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode .neeto-molecules-sidebar__header{padding-top:1.5rem}.neeto-molecules-sidebar.neeto-molecules-sidebar--focus-mode .neeto-molecules-sidebar__links{display:flex;flex-direction:column;height:calc(100vh - 10rem);height:calc(100dvh - 10rem);margin-bottom:0}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper{flex-grow:1;margin:0 0 .625rem!important;min-height:0;overflow-y:auto;padding:0 0 .625rem!important}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink-wrapper{padding:0!important}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink{border-radius:0}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link{--neeto-ui-text-body1:1.125rem;background-color:rgb(var(--neeto-ui-gray-100));color:rgb(var(--neeto-ui-black));cursor:pointer;font-weight:var(--neeto-ui-font-semibold);gap:.25rem;padding:.75rem .25rem;position:sticky;top:0;z-index:1}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__link-sub-label{--neeto-ui-text-body2:0.9375rem}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);margin-bottom:0;padding-bottom:.625rem;padding-top:.625rem}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink.active{font-weight:var(--neeto-ui-font-semibold)}.neeto-molecules-sidebar__links--focus-mode>.neeto-molecules-sidebar__sublink-wrapper>.neeto-molecules-sidebar__sublink-wrapper .neeto-molecules-sidebar__sublink{border-radius:0;padding-left:2rem}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink{cursor:pointer;line-height:1.2;padding:.5rem .75rem .5rem 1.5rem;position:relative}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink:hover{background-color:rgb(var(--neeto-ui-gray-100))}.neeto-molecules-sidebar__links--focus-mode .neeto-molecules-sidebar__sublink.active{background-color:rgb(var(--neeto-ui-accent-100))!important;color:rgb(var(--neeto-ui-black))!important;font-weight:var(--neeto-ui-font-medium)}.neeto-molecules-sidebar__link-unread-count{align-items:center;background-color:rgb(var(--neeto-ui-accent-500));border-radius:var(--neeto-ui-rounded-full);color:rgb(var(--neeto-ui-white));display:flex;flex-shrink:0;font-size:var(--neeto-ui-text-xxs);height:1rem;justify-content:center;min-width:1rem;padding-left:.25rem;padding-right:.25rem;position:absolute;right:-4px;top:-4px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.neeto-ui-theme--dark .neeto-molecules-sidebar__logo [data-dark-mode-color=true]{fill:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__workspace-info{margin-bottom:1.5rem;padding:.5rem 1.5rem}.neeto-molecules-sidebar__resize-handle{bottom:0;cursor:col-resize;position:absolute;right:0;top:0;width:3px;z-index:99999;z-index:calc(var(--neeto-molecules-sidebar-z-index) + 1)}.neeto-molecules-sidebar__resize-handle:before{background-color:rgb(var(--neeto-ui-gray-200));bottom:0;content:\"\";left:0;position:absolute;top:0;transition:background-color .15s ease-in-out,width .15s ease-in-out;width:0}.neeto-molecules-sidebar__resize-handle:hover:before{background-color:rgb(var(--neeto-ui-gray-400));width:2px}.neeto-molecules-sidebar__resize-handle:active:before{background-color:rgb(var(--neeto-ui-primary-500));width:2px}.neeto-molecules-sidebar__wrapper:not(.neeto-molecules-sidebar__wrapper--collapsed)+.neeto-molecules-sidebar__resize-handle{display:block}.neeto-molecules-sidebar__wrapper+.neeto-molecules-sidebar__resize-handle{display:none;left:15rem;left:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar__wrapper--collapsed+.neeto-molecules-sidebar__resize-handle{display:none}body.dragging-sidebar,body.dragging-sidebar *{cursor:col-resize!important}body.dragging-sidebar *{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}";
246
- n(css,{});
247
-
248
- var Chevron = function Chevron(_ref) {
249
- var style = _ref.style;
250
- return /*#__PURE__*/jsx("svg", {
251
- style: style,
252
- height: "16",
253
- viewBox: "0 0 16 16",
254
- width: "16",
255
- children: /*#__PURE__*/jsx("path", {
256
- 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",
257
- fill: "currentColor"
258
- })
259
- });
260
- };
261
-
262
- export { Chevron as C, DEFAULT_HOME_PATH as D, MIN_SIDEBAR_WIDTH as M, PINNED_MORE_NAV_LINKS_KEY as P, SelectedLink as S, _Items as _, CheckPointNavLinks as a, SELECTED_NAV_LINK_ROUTE_STORAGE_KEY as b, SIDEBAR_WIDTH_KEY as c, DEFAULT_SIDEBAR_WIDTH as d, enableDraggingStyles as e, filterByPermissions as f, getSidebarStateLocalStorageKey as g, disableDraggingStyles as h, getActiveConfigurePageLink as i, MAX_SIDEBAR_WIDTH as j };
263
- //# sourceMappingURL=Chevron-DXA34GCh.js.map