@bigbinary/neeto-molecules 3.16.17 → 3.16.19

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.
@@ -0,0 +1,276 @@
1
+ 'use strict';
2
+
3
+ var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
+ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
+ var classnames = require('classnames');
6
+ var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
7
+ var general = require('@bigbinary/neeto-commons-frontend/utils/general');
8
+ var Home = require('@bigbinary/neeto-icons/Home');
9
+ var Typography = require('@bigbinary/neetoui/Typography');
10
+ var Button = require('@bigbinary/neetoui/Button');
11
+ var ramda = require('ramda');
12
+ var reactRouterDom = require('react-router-dom');
13
+ var React = require('react');
14
+ var neetoCist = require('@bigbinary/neeto-cist');
15
+ var Segments = require('@bigbinary/neeto-filters-frontend/Segments');
16
+ var useRegisterNavigationCheckpoint = require('@bigbinary/neeto-commons-frontend/react-utils/useRegisterNavigationCheckpoint');
17
+ var jsxRuntime = require('react/jsx-runtime');
18
+ var _slicedToArray = require('@babel/runtime/helpers/slicedToArray');
19
+ var injectCss = require('./inject-css-vQvjPR2x.js');
20
+
21
+ var _excluded$1 = ["checkpointKey", "to", "href", "children"];
22
+ 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; }
23
+ 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; }
24
+ var CheckPointNavLinks = function CheckPointNavLinks(_ref) {
25
+ var checkpointKey = _ref.checkpointKey,
26
+ to = _ref.to,
27
+ href = _ref.href,
28
+ children = _ref.children,
29
+ others = _objectWithoutProperties(_ref, _excluded$1);
30
+ var _useNavigationCheckpo = useRegisterNavigationCheckpoint.useNavigationCheckpoints(checkpointKey),
31
+ checkpoint = _useNavigationCheckpo[checkpointKey];
32
+ var LinkElement = href ? "a" : reactRouterDom.NavLink;
33
+ var linkProps = href ? _objectSpread$2({
34
+ href: href,
35
+ key: href
36
+ }, others) : _objectSpread$2({
37
+ to: checkpoint || to,
38
+ key: to
39
+ }, others);
40
+ return /*#__PURE__*/jsxRuntime.jsx(LinkElement, _objectSpread$2(_objectSpread$2({}, linkProps), {}, {
41
+ children: children
42
+ }));
43
+ };
44
+
45
+ var SUB_LINK_TYPES = {
46
+ SYSTEM_VIEW: "system_view",
47
+ SEGMENTS: "segments"
48
+ };
49
+ var SELECTED_NAV_LINK_ROUTE_STORAGE_KEY = "selectedNavLinkRoute";
50
+ var DEFAULT_HOME_PATH = "/";
51
+ var SIDEBAR_WIDTH_KEY = "neeto-molecules-sidebar-width";
52
+ var MIN_SIDEBAR_WIDTH = 12.5 * 16;
53
+ var MAX_SIDEBAR_WIDTH = 20 * 16;
54
+ var DEFAULT_SIDEBAR_WIDTH = 15 * 16;
55
+
56
+ var isSubRouteActive = function isSubRouteActive(subRoute, location) {
57
+ var currentBrowserUrl = new URL(location.pathname + location.search + location.hash, window.location.origin);
58
+ var targetUrl = new URL(subRoute, window.location.origin);
59
+ var targetSearchParams = targetUrl.searchParams;
60
+ var targetSearchKeys = Array.from(targetSearchParams.keys());
61
+ return ramda.all(function (key) {
62
+ return currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key);
63
+ }, targetSearchKeys) && ramda.equals(currentBrowserUrl.pathname, targetUrl.pathname);
64
+ };
65
+ var getSidebarStateLocalStorageKey = function getSidebarStateLocalStorageKey() {
66
+ var _globalProps$user, _globalProps$user2;
67
+ 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);
68
+ return "sidebarState-".concat(user);
69
+ };
70
+ var filterByPermissions = ramda.curry(function (_ref) {
71
+ var permissions = _ref.permissions;
72
+ if (permissions && neetoCist.isNotEmpty(permissions)) {
73
+ return ramda.is(Array, permissions) ? permissions.some(ramda.includes(ramda.__, globalProps.permissions)) : globalProps.permissions.includes(permissions);
74
+ }
75
+ return true;
76
+ });
77
+ var getActiveConfigurePageLink = function getActiveConfigurePageLink(_ref2) {
78
+ var navLinks = _ref2.navLinks,
79
+ location = _ref2.location;
80
+ return navLinks.find(function (link) {
81
+ var _link$to;
82
+ var _ref3 = ((_link$to = link.to) === null || _link$to === void 0 ? void 0 : _link$to.split("?")) || [],
83
+ _ref4 = _slicedToArray(_ref3, 1),
84
+ linkPathname = _ref4[0];
85
+ return neetoCist.isPresent(link.isConfigureNavLink) && link.isConfigureNavLink && location.pathname.startsWith(linkPathname);
86
+ });
87
+ };
88
+ var enableDraggingStyles = function enableDraggingStyles() {
89
+ document.body.classList.add("dragging-sidebar");
90
+ document.body.style.cursor = "col-resize";
91
+ document.body.style.userSelect = "none";
92
+ };
93
+ var disableDraggingStyles = function disableDraggingStyles() {
94
+ document.body.classList.remove("dragging-sidebar");
95
+ document.body.style.cursor = "";
96
+ document.body.style.userSelect = "";
97
+ };
98
+
99
+ var SubLink = function SubLink(_ref) {
100
+ var to = _ref.to,
101
+ href = _ref.href,
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__*/jsxRuntime.jsx(Segments, {
117
+ baseUrl: baseUrl,
118
+ columns: columns,
119
+ entity: entity,
120
+ isIndependent: false
121
+ });
122
+ }
123
+ var dataCyPrefix = dataCy || neetoCist.hyphenate(label);
124
+ var renderCount = function renderCount(count) {
125
+ return count > 999 ? "999+" : count;
126
+ };
127
+ var isSubLinkActive = function isSubLinkActive() {
128
+ return !isSectionHeader && (ramda.is(Function, isActive) ? isActive() : isSubRouteActive(to, location));
129
+ };
130
+ return /*#__PURE__*/jsxRuntime.jsxs(CheckPointNavLinks, {
131
+ href: href,
132
+ to: to,
133
+ activeClassName: "active",
134
+ className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
135
+ "data-cy": "".concat(dataCyPrefix, "-sub-link"),
136
+ isActive: isSubLinkActive,
137
+ children: [/*#__PURE__*/jsxRuntime.jsx(Typography, {
138
+ className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
139
+ component: "span",
140
+ "data-cy": "".concat(dataCyPrefix, "-sub-link-label"),
141
+ style: "body2",
142
+ children: label
143
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
144
+ className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
145
+ component: "span",
146
+ "data-cy": "".concat(dataCyPrefix, "-sub-link-count"),
147
+ style: "body2",
148
+ children: isCountsLoading ? /*#__PURE__*/jsxRuntime.jsx("div", {
149
+ className: "neeto-ui-rounded neeto-ui-bg-gray-200 h-4 w-4 animate-pulse"
150
+ }) : renderCount(count)
151
+ })]
152
+ });
153
+ };
154
+
155
+ 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; }
156
+ 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), !0).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; }
157
+ var _Items = function Items(_ref) {
158
+ var items = _ref.items,
159
+ _ref$isSettingsItems = _ref.isSettingsItems,
160
+ isSettingsItems = _ref$isSettingsItems === void 0 ? false : _ref$isSettingsItems,
161
+ isCountsLoading = _ref.isCountsLoading;
162
+ return /*#__PURE__*/jsxRuntime.jsx("div", {
163
+ className: "neeto-molecules-sidebar__sublink-wrapper",
164
+ "data-cy": "sidebar-sub-link-wrapper",
165
+ children: items.filter(filterByPermissions).map(function (subItem, subIndex) {
166
+ var _subItem$to;
167
+ return /*#__PURE__*/jsxRuntime.jsxs(React.Fragment, {
168
+ children: [/*#__PURE__*/jsxRuntime.jsx(SubLink, _objectSpread$1(_objectSpread$1({}, _objectSpread$1(_objectSpread$1({}, subItem), {}, {
169
+ isCountsLoading: isCountsLoading
170
+ })), {}, {
171
+ href: subItem.href,
172
+ isActive: subItem.isActive,
173
+ isSectionHeader: neetoCist.isPresent(subItem.item),
174
+ to: (_subItem$to = subItem.to) !== null && _subItem$to !== void 0 ? _subItem$to : subItem.path
175
+ })), isSettingsItems && neetoCist.isPresent(subItem.items) && /*#__PURE__*/jsxRuntime.jsxs(jsxRuntime.Fragment, {
176
+ children: [/*#__PURE__*/jsxRuntime.jsx(_Items, {
177
+ isSettingsItems: isSettingsItems,
178
+ items: subItem.items
179
+ }), items.length - 1 !== subIndex && /*#__PURE__*/jsxRuntime.jsx("hr", {
180
+ className: "neeto-molecules-sidebar__separator neeto-ui-border-gray-200"
181
+ })]
182
+ })]
183
+ }, subIndex);
184
+ })
185
+ });
186
+ };
187
+
188
+ var _excluded = ["label", "items", "isConfigureNavLink"];
189
+ 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; }
190
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).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; }
191
+ var SelectedLink = function SelectedLink(_ref) {
192
+ var _ref$navLink = _ref.navLink,
193
+ navLink = _ref$navLink === void 0 ? {
194
+ label: "",
195
+ items: [],
196
+ isConfigureNavLink: false
197
+ } : _ref$navLink,
198
+ handleGoBack = _ref.handleGoBack,
199
+ isConfigureSidebar = _ref.isConfigureSidebar,
200
+ homePath = _ref.homePath;
201
+ var history = reactRouterDom.useHistory();
202
+ var label = navLink.label,
203
+ items = navLink.items,
204
+ isConfigureNavLink = navLink.isConfigureNavLink,
205
+ otherProps = _objectWithoutProperties(navLink, _excluded);
206
+ var handleHomeButtonClick = function handleHomeButtonClick(e) {
207
+ e.stopPropagation();
208
+ reactUtils.handleMetaClick(history, homePath, e);
209
+ };
210
+ return /*#__PURE__*/jsxRuntime.jsxs("div", {
211
+ className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__links--focus-mode neeto-molecules-sidebar__no-shrinkable",
212
+ "data-cy": "configure-nav-container",
213
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", _objectSpread(_objectSpread({
214
+ 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",
215
+ onClick: handleGoBack
216
+ }, _objectSpread({}, ramda.omit(["icon"], otherProps))), {}, {
217
+ children: [isConfigureNavLink && /*#__PURE__*/jsxRuntime.jsxs("span", {
218
+ className: "neeto-molecules-sidebar__link-icon flex items-center pl-3",
219
+ children: [/*#__PURE__*/jsxRuntime.jsx(Button, {
220
+ "data-cy": "".concat(general.hyphenize(label), "-go-back-button"),
221
+ "data-testid": "".concat(label, "-go-home-button"),
222
+ icon: Home,
223
+ style: "text",
224
+ onClick: handleHomeButtonClick
225
+ }), /*#__PURE__*/jsxRuntime.jsx("span", {
226
+ className: "px-1 text-xs",
227
+ children: "/"
228
+ })]
229
+ }), /*#__PURE__*/jsxRuntime.jsx(Typography, {
230
+ component: "span",
231
+ style: "body1",
232
+ className: classnames("neeto-molecules-sidebar__link-label", _defineProperty({
233
+ "neeto-molecules-sidebar__configure-page-header": isConfigureNavLink
234
+ }, "pl-4", isConfigureSidebar)),
235
+ children: label
236
+ })]
237
+ })), items && /*#__PURE__*/jsxRuntime.jsx(_Items, {
238
+ items: items,
239
+ isSettingsItems: true
240
+ })]
241
+ });
242
+ };
243
+
244
+ 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}.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;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;overflow-y:auto}.neeto-molecules-sidebar:not(.neeto-molecules-sidebar__configure-page) .neeto-molecules-sidebar__links:not(.neeto-molecules-sidebar__links--focus-mode)::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar:not(.neeto-molecules-sidebar__configure-page) .neeto-molecules-sidebar__links:not(.neeto-molecules-sidebar__links--focus-mode)::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:3.125rem}.neeto-molecules-sidebar:not(.neeto-molecules-sidebar__configure-page) .neeto-molecules-sidebar__links:not(.neeto-molecules-sidebar__links--focus-mode)::-webkit-scrollbar-track{background:\"transparent\"}.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::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:3.125rem}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}.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}@media screen and (max-width:768px){.neeto-molecules-sidebar__configure-page .neeto-molecules-sidebar__links{height:calc(100vh - 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--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{--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]{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-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: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-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);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);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-300));bottom:0;content:\"\";left:0;position:absolute;top:0;transition:background-color .15s ease-in-out,width .15s ease-in-out;width:1px}.neeto-molecules-sidebar__resize-handle:hover:before{background-color:rgb(var(--neeto-ui-gray-500));width:3px}.neeto-molecules-sidebar__resize-handle:active:before{background-color:rgb(var(--neeto-ui-primary-500));width:3px}.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}";
245
+ injectCss.n(css,{});
246
+
247
+ var Chevron = function Chevron(_ref) {
248
+ var style = _ref.style;
249
+ return /*#__PURE__*/jsxRuntime.jsx("svg", {
250
+ style: style,
251
+ height: "16",
252
+ viewBox: "0 0 16 16",
253
+ width: "16",
254
+ children: /*#__PURE__*/jsxRuntime.jsx("path", {
255
+ 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",
256
+ fill: "currentColor"
257
+ })
258
+ });
259
+ };
260
+
261
+ exports.CheckPointNavLinks = CheckPointNavLinks;
262
+ exports.Chevron = Chevron;
263
+ exports.DEFAULT_HOME_PATH = DEFAULT_HOME_PATH;
264
+ exports.DEFAULT_SIDEBAR_WIDTH = DEFAULT_SIDEBAR_WIDTH;
265
+ exports.MAX_SIDEBAR_WIDTH = MAX_SIDEBAR_WIDTH;
266
+ exports.MIN_SIDEBAR_WIDTH = MIN_SIDEBAR_WIDTH;
267
+ exports.SELECTED_NAV_LINK_ROUTE_STORAGE_KEY = SELECTED_NAV_LINK_ROUTE_STORAGE_KEY;
268
+ exports.SIDEBAR_WIDTH_KEY = SIDEBAR_WIDTH_KEY;
269
+ exports.SelectedLink = SelectedLink;
270
+ exports._Items = _Items;
271
+ exports.disableDraggingStyles = disableDraggingStyles;
272
+ exports.enableDraggingStyles = enableDraggingStyles;
273
+ exports.filterByPermissions = filterByPermissions;
274
+ exports.getActiveConfigurePageLink = getActiveConfigurePageLink;
275
+ exports.getSidebarStateLocalStorageKey = getSidebarStateLocalStorageKey;
276
+ //# sourceMappingURL=Chevron-D-gKazxD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Chevron-D-gKazxD.js","sources":["../../src/components/Sidebar/Components/Links/CheckPointNavLink.jsx","../../src/components/Sidebar/constants.js","../../src/components/Sidebar/utils.js","../../src/components/Sidebar/Components/Links/SubLink.jsx","../../src/components/Sidebar/Components/Links/Items.jsx","../../src/components/Sidebar/Components/Links/SelectedLink.jsx","../../src/components/Sidebar/Components/Chevron.jsx"],"sourcesContent":["import { useNavigationCheckpoints } from \"neetocommons/react-utils/useRegisterNavigationCheckpoint\";\nimport { NavLink } from \"react-router-dom\";\n\nconst CheckPointNavLinks = ({\n checkpointKey,\n to,\n href,\n children,\n ...others\n}) => {\n const { [checkpointKey]: checkpoint } =\n useNavigationCheckpoints(checkpointKey);\n\n const LinkElement = href ? \"a\" : NavLink;\n const linkProps = href\n ? { href, key: href, ...others }\n : { to: checkpoint || to, key: to, ...others };\n\n return <LinkElement {...linkProps}>{children}</LinkElement>;\n};\n\nexport default CheckPointNavLinks;\n","export const SUB_LINK_TYPES = {\n SYSTEM_VIEW: \"system_view\",\n SEGMENTS: \"segments\",\n};\n\nexport const SELECTED_NAV_LINK_ROUTE_STORAGE_KEY = \"selectedNavLinkRoute\";\n\nexport const DEFAULT_HOME_PATH = \"/\";\n\nexport const SIDEBAR_WIDTH_KEY = \"neeto-molecules-sidebar-width\";\nexport const MIN_SIDEBAR_WIDTH = 12.5 * 16;\nexport const MAX_SIDEBAR_WIDTH = 20 * 16;\nexport const DEFAULT_SIDEBAR_WIDTH = 15 * 16;\n","import { isPresent, isNotEmpty } from \"neetocist\";\nimport { __, all, curry, equals, includes, is } from \"ramda\";\n\nexport const isSubRouteActive = (subRoute, location) => {\n const currentBrowserUrl = new URL(\n location.pathname + location.search + location.hash,\n window.location.origin\n );\n const targetUrl = new URL(subRoute, window.location.origin);\n\n const targetSearchParams = targetUrl.searchParams;\n const targetSearchKeys = Array.from(targetSearchParams.keys());\n\n return (\n all(\n key =>\n currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key),\n targetSearchKeys\n ) && equals(currentBrowserUrl.pathname, targetUrl.pathname)\n );\n};\n\nexport const getSidebarStateLocalStorageKey = () => {\n const user = globalProps.user?.email || globalProps.user?.phoneNumber;\n\n return `sidebarState-${user}`;\n};\n\nexport const filterByPermissions = curry(({ permissions }) => {\n if (permissions && isNotEmpty(permissions)) {\n return is(Array, permissions)\n ? permissions.some(includes(__, globalProps.permissions))\n : globalProps.permissions.includes(permissions);\n }\n\n return true;\n});\n\nexport const getActiveConfigurePageLink = ({ navLinks, location }) =>\n navLinks.find(link => {\n const [linkPathname] = link.to?.split(\"?\") || [];\n\n return (\n isPresent(link.isConfigureNavLink) &&\n link.isConfigureNavLink &&\n location.pathname.startsWith(linkPathname)\n );\n });\n\nexport const enableDraggingStyles = () => {\n document.body.classList.add(\"dragging-sidebar\");\n document.body.style.cursor = \"col-resize\";\n document.body.style.userSelect = \"none\";\n};\n\nexport const disableDraggingStyles = () => {\n document.body.classList.remove(\"dragging-sidebar\");\n document.body.style.cursor = \"\";\n document.body.style.userSelect = \"\";\n};\n","import { hyphenate } from \"neetocist\";\nimport { Segments } from \"neetofilters\";\nimport { Typography } from \"neetoui\";\nimport { is } from \"ramda\";\n\nimport CheckPointNavLinks from \"./CheckPointNavLink\";\n\nimport { SUB_LINK_TYPES } from \"../../constants\";\nimport { isSubRouteActive } from \"../../utils\";\n\nconst SubLink = ({\n to,\n href,\n label,\n type = SUB_LINK_TYPES.SYSTEM_VIEW,\n count,\n isSectionHeader,\n isCountsLoading,\n \"data-cy\": dataCy,\n entity = \"\",\n columns = [],\n baseUrl,\n isActive,\n}) => {\n if (type === SUB_LINK_TYPES.SEGMENTS) {\n return <Segments {...{ baseUrl, columns, entity }} isIndependent={false} />;\n }\n\n const dataCyPrefix = dataCy || hyphenate(label);\n\n const renderCount = count => (count > 999 ? \"999+\" : count);\n\n const isSubLinkActive = () =>\n !isSectionHeader &&\n (is(Function, isActive) ? isActive() : isSubRouteActive(to, location));\n\n return (\n <CheckPointNavLinks\n {...{ href, to }}\n activeClassName=\"active\"\n className=\"neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none\"\n data-cy={`${dataCyPrefix}-sub-link`}\n isActive={isSubLinkActive}\n >\n <Typography\n className=\"neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow\"\n component=\"span\"\n data-cy={`${dataCyPrefix}-sub-link-label`}\n style=\"body2\"\n >\n {label}\n </Typography>\n <Typography\n className=\"neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0\"\n component=\"span\"\n data-cy={`${dataCyPrefix}-sub-link-count`}\n style=\"body2\"\n >\n {isCountsLoading ? (\n <div className=\"neeto-ui-rounded neeto-ui-bg-gray-200 h-4 w-4 animate-pulse\" />\n ) : (\n renderCount(count)\n )}\n </Typography>\n </CheckPointNavLinks>\n );\n};\n\nexport default SubLink;\n","import { Fragment } from \"react\";\n\nimport { isPresent } from \"neetocist\";\n\nimport SubLink from \"./SubLink\";\n\nimport { filterByPermissions } from \"../../utils\";\n\nconst Items = ({ items, isSettingsItems = false, isCountsLoading }) => (\n <div\n className=\"neeto-molecules-sidebar__sublink-wrapper\"\n data-cy=\"sidebar-sub-link-wrapper\"\n >\n {items.filter(filterByPermissions).map((subItem, subIndex) => (\n <Fragment key={subIndex}>\n <SubLink\n {...{ ...subItem, isCountsLoading }}\n href={subItem.href}\n isActive={subItem.isActive}\n isSectionHeader={isPresent(subItem.item)}\n to={subItem.to ?? subItem.path}\n />\n {isSettingsItems && isPresent(subItem.items) && (\n <>\n <Items {...{ isSettingsItems }} items={subItem.items} />\n {items.length - 1 !== subIndex && (\n <hr className=\"neeto-molecules-sidebar__separator neeto-ui-border-gray-200\" />\n )}\n </>\n )}\n </Fragment>\n ))}\n </div>\n);\n\nexport default Items;\n","import classNames from \"classnames\";\nimport { handleMetaClick } from \"neetocommons/react-utils\";\nimport { hyphenize } from \"neetocommons/utils/general\";\nimport { Home } from \"neetoicons\";\nimport { Typography, Button } from \"neetoui\";\nimport { omit } from \"ramda\";\nimport { useHistory } from \"react-router-dom\";\n\nimport Items from \"./Items\";\n\nconst SelectedLink = ({\n navLink = { label: \"\", items: [], isConfigureNavLink: false },\n handleGoBack,\n isConfigureSidebar,\n homePath,\n}) => {\n const history = useHistory();\n const { label, items, isConfigureNavLink, ...otherProps } = navLink;\n\n const handleHomeButtonClick = e => {\n e.stopPropagation();\n handleMetaClick(history, homePath, e);\n };\n\n return (\n <div\n className=\"neeto-molecules-sidebar__links neeto-molecules-sidebar__links--focus-mode neeto-molecules-sidebar__no-shrinkable\"\n data-cy=\"configure-nav-container\"\n >\n <div\n 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\"\n onClick={handleGoBack}\n {...{ ...omit([\"icon\"], otherProps) }}\n >\n {isConfigureNavLink && (\n <span className=\"neeto-molecules-sidebar__link-icon flex items-center pl-3\">\n <Button\n data-cy={`${hyphenize(label)}-go-back-button`}\n data-testid={`${label}-go-home-button`}\n icon={Home}\n style=\"text\"\n onClick={handleHomeButtonClick}\n />\n <span className=\"px-1 text-xs\">/</span>\n </span>\n )}\n <Typography\n component=\"span\"\n style=\"body1\"\n className={classNames(\"neeto-molecules-sidebar__link-label\", {\n \"neeto-molecules-sidebar__configure-page-header\":\n isConfigureNavLink,\n [\"pl-4\"]: isConfigureSidebar,\n })}\n >\n {label}\n </Typography>\n </div>\n {items && <Items {...{ items }} isSettingsItems />}\n </div>\n );\n};\n\nexport default SelectedLink;\n","const Chevron = ({ style }) => (\n <svg {...{ style }} height=\"16\" viewBox=\"0 0 16 16\" width=\"16\">\n <path\n 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\"\n fill=\"currentColor\"\n />\n </svg>\n);\n\nexport default Chevron;\n"],"names":["CheckPointNavLinks","_ref","checkpointKey","to","href","children","others","_objectWithoutProperties","_excluded","_useNavigationCheckpo","useNavigationCheckpoints","checkpoint","LinkElement","NavLink","linkProps","_objectSpread","key","_jsx","SUB_LINK_TYPES","SYSTEM_VIEW","SEGMENTS","SELECTED_NAV_LINK_ROUTE_STORAGE_KEY","DEFAULT_HOME_PATH","SIDEBAR_WIDTH_KEY","MIN_SIDEBAR_WIDTH","MAX_SIDEBAR_WIDTH","DEFAULT_SIDEBAR_WIDTH","isSubRouteActive","subRoute","location","currentBrowserUrl","URL","pathname","search","hash","window","origin","targetUrl","targetSearchParams","searchParams","targetSearchKeys","Array","from","keys","all","get","equals","getSidebarStateLocalStorageKey","_globalProps$user","_globalProps$user2","user","globalProps","email","phoneNumber","concat","filterByPermissions","curry","permissions","isNotEmpty","is","some","includes","__","getActiveConfigurePageLink","_ref2","navLinks","find","link","_link$to","_ref3","split","_ref4","_slicedToArray","linkPathname","isPresent","isConfigureNavLink","startsWith","enableDraggingStyles","document","body","classList","add","style","cursor","userSelect","disableDraggingStyles","remove","SubLink","label","_ref$type","type","count","isSectionHeader","isCountsLoading","dataCy","_ref$entity","entity","_ref$columns","columns","baseUrl","isActive","Segments","isIndependent","dataCyPrefix","hyphenate","renderCount","isSubLinkActive","Function","_jsxs","activeClassName","className","Typography","component","Items","items","_ref$isSettingsItems","isSettingsItems","filter","map","subItem","subIndex","_subItem$to","Fragment","item","path","_Fragment","_Items","length","SelectedLink","_ref$navLink","navLink","handleGoBack","isConfigureSidebar","homePath","history","useHistory","otherProps","handleHomeButtonClick","e","stopPropagation","handleMetaClick","onClick","omit","Button","hyphenize","icon","Home","classNames","_defineProperty","Chevron","height","viewBox","width","d","fill"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAGA,IAAMA,kBAAkB,GAAG,SAArBA,kBAAkBA,CAAAC,IAAA,EAMlB;AAAA,EAAA,IALJC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,EAAE,GAAAF,IAAA,CAAFE,EAAE;IACFC,IAAI,GAAAH,IAAA,CAAJG,IAAI;IACJC,QAAQ,GAAAJ,IAAA,CAARI,QAAQ;AACLC,IAAAA,MAAM,GAAAC,wBAAA,CAAAN,IAAA,EAAAO,WAAA,CAAA,CAAA;AAET,EAAA,IAAAC,qBAAA,GACEC,wDAAwB,CAACR,aAAa,CAAC;IADhBS,UAAU,GAAAF,qBAAA,CAA1BP,aAAa,CAAA,CAAA;AAGtB,EAAA,IAAMU,WAAW,GAAGR,IAAI,GAAG,GAAG,GAAGS,sBAAO,CAAA;AACxC,EAAA,IAAMC,SAAS,GAAGV,IAAI,GAAAW,eAAA,CAAA;AAChBX,IAAAA,IAAI,EAAJA,IAAI;AAAEY,IAAAA,GAAG,EAAEZ,IAAAA;GAASE,EAAAA,MAAM,IAAAS,eAAA,CAAA;IAC1BZ,EAAE,EAAEQ,UAAU,IAAIR,EAAE;AAAEa,IAAAA,GAAG,EAAEb,EAAAA;AAAE,GAAA,EAAKG,MAAM,CAAE,CAAA;EAEhD,oBAAOW,cAAA,CAACL,WAAW,EAAAG,eAAA,CAAAA,eAAA,KAAKD,SAAS,CAAA,EAAA,EAAA,EAAA;AAAAT,IAAAA,QAAA,EAAGA,QAAAA;AAAQ,GAAA,CAAc,CAAC,CAAA;AAC7D;;ACnBO,IAAMa,cAAc,GAAG;AAC5BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,QAAQ,EAAE,UAAA;AACZ,CAAC,CAAA;AAEM,IAAMC,mCAAmC,GAAG,uBAAsB;AAElE,IAAMC,iBA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AAAA,GAC/C,CAAC,CAAA;AAEV;;;;;AC7DA,IAAMiC,OAAO,GAAG,SAAVA,OAAOA,CAAApJ,IAAA,EAAA;AAAA,EAAA,IAAMiF,KAAK,GAAAjF,IAAA,CAALiF,KAAK,CAAA;AAAA,EAAA,oBACtBjE,cAAA,CAAA,KAAA,EAAA;AAAWiE,IAAAA,KAAK,EAALA,KAAK;AAAIoE,IAAAA,MAAM,EAAC,IAAI;AAACC,IAAAA,OAAO,EAAC,WAAW;AAACC,IAAAA,KAAK,EAAC,IAAI;AAAAnJ,IAAAA,QAAA,eAC5DY,cAAA,CAAA,MAAA,EAAA;AACEwI,MAAAA,CAAC,EAAC,y5BAAy5B;AAC35BC,MAAAA,IAAI,EAAC,cAAA;KACN,CAAA;AAAC,GACC,CAAC,CAAA;AAAA;;;;;;;;;;;;;;;;;;"}
@@ -7,7 +7,7 @@ var Button = require('@bigbinary/neetoui/Button');
7
7
  var ramda = require('ramda');
8
8
  var reactI18next = require('react-i18next');
9
9
  var reactRouterDom = require('react-router-dom');
10
- var Chevron = require('./Chevron-DJbXy_CD.js');
10
+ var Chevron = require('./Chevron-D-gKazxD.js');
11
11
  var jsxRuntime = require('react/jsx-runtime');
12
12
  require('@babel/runtime/helpers/defineProperty');
13
13
  require('@babel/runtime/helpers/objectWithoutProperties');
@@ -22,6 +22,7 @@ var _toConsumableArray = require('@babel/runtime/helpers/toConsumableArray');
22
22
  var Delete = require('@bigbinary/neeto-icons/Delete');
23
23
  var Plus = require('@bigbinary/neeto-icons/Plus');
24
24
  var Label = require('@bigbinary/neetoui/Label');
25
+ var HelpPopover = require('./HelpPopover.js');
25
26
  var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
26
27
  var jsxRuntime = require('react/jsx-runtime');
27
28
  var Checkbox = require('@bigbinary/neetoui/Checkbox');
@@ -35,9 +36,6 @@ require('./index-JY2zVpnv.js');
35
36
  require('./_commonjsHelpers-BJu3ubxk.js');
36
37
  require('./Breadcrumbs.js');
37
38
  require('@bigbinary/neeto-commons-frontend/utils/general');
38
- require('./HelpPopover.js');
39
- require('@bigbinary/neeto-icons/Help');
40
- require('@bigbinary/neetoui/Popover');
41
39
  require('./MoreDropdown.js');
42
40
  require('@bigbinary/neeto-icons/MenuHorizontal');
43
41
  require('@bigbinary/neeto-icons/MenuVertical');
@@ -49,6 +47,8 @@ require('@bigbinary/neeto-commons-frontend/react-utils/useQueryParams');
49
47
  require('@bigbinary/neeto-commons-frontend/react-utils/useUpdateEffect');
50
48
  require('@bigbinary/neeto-icons/Search');
51
49
  require('@bigbinary/neeto-commons-frontend/utils');
50
+ require('@bigbinary/neeto-icons/Help');
51
+ require('@bigbinary/neetoui/Popover');
52
52
  require('react-syntax-highlighter/dist/esm/prism-light.js');
53
53
  require('react-syntax-highlighter/dist/esm/styles/prism');
54
54
  require('./CopyToClipboardButton.js');
@@ -239,7 +239,8 @@ var toCamelCasedString = function toCamelCasedString(string) {
239
239
  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; }
240
240
  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; }
241
241
  var DynamicQueryParams = function DynamicQueryParams(_ref) {
242
- var updateCustomization = _ref.updateCustomization;
242
+ var updateCustomization = _ref.updateCustomization,
243
+ queryParamsProps = _ref.queryParamsProps;
243
244
  var _useTranslation = reactI18next.useTranslation(),
244
245
  t = _useTranslation.t;
245
246
  var _useState = React.useState([INITIAL_QUERY_PARAM]),
@@ -267,10 +268,15 @@ var DynamicQueryParams = function DynamicQueryParams(_ref) {
267
268
  });
268
269
  }, [queryParams]);
269
270
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
270
- children: [/*#__PURE__*/jsxRuntime.jsx(Label, {
271
- className: "mb-2",
272
- "data-cy": "dynamic-query-params-label",
273
- children: t("neetoMolecules.productEmbed.queryParam.label")
271
+ children: [/*#__PURE__*/jsxRuntime.jsxs("div", {
272
+ className: "mb-2 flex",
273
+ children: [/*#__PURE__*/jsxRuntime.jsx(Label, {
274
+ "data-cy": "dynamic-query-params-label",
275
+ "data-testid": "dynamic-query-params-label",
276
+ children: queryParamsProps.label || t("neetoMolecules.productEmbed.queryParam.label")
277
+ }), neetoCist.isPresent(queryParamsProps.helpPopoverProps) && /*#__PURE__*/jsxRuntime.jsx(HelpPopover, _objectSpread$3({
278
+ className: "ml-1"
279
+ }, queryParamsProps.helpPopoverProps))]
274
280
  }), queryParams.map(function (param, index) {
275
281
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
276
282
  className: "mb-2 flex gap-1",
@@ -317,6 +323,7 @@ var ElementPopup$1 = function ElementPopup(_ref) {
317
323
  var customization = _ref.customization,
318
324
  updateCustomization = _ref.updateCustomization,
319
325
  isQueryParamsEnabled = _ref.isQueryParamsEnabled,
326
+ queryParamsProps = _ref.queryParamsProps,
320
327
  otherCustomizations = _ref.otherCustomizations;
321
328
  var elementSelector = customization.elementSelector;
322
329
  var _useTranslation = reactI18next.useTranslation(),
@@ -344,6 +351,7 @@ var ElementPopup$1 = function ElementPopup(_ref) {
344
351
  });
345
352
  }
346
353
  }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsxRuntime.jsx(DynamicQueryParams, {
354
+ queryParamsProps: queryParamsProps,
347
355
  updateCustomization: updateCustomization
348
356
  })]
349
357
  });
@@ -353,6 +361,7 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
353
361
  var customization = _ref.customization,
354
362
  updateCustomization = _ref.updateCustomization,
355
363
  isQueryParamsEnabled = _ref.isQueryParamsEnabled,
364
+ queryParamsProps = _ref.queryParamsProps,
356
365
  otherCustomizations = _ref.otherCustomizations;
357
366
  var _useTranslation = reactI18next.useTranslation(),
358
367
  t = _useTranslation.t;
@@ -439,6 +448,7 @@ var FloatingPopup$1 = function FloatingPopup(_ref) {
439
448
  });
440
449
  }
441
450
  }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsxRuntime.jsx(DynamicQueryParams, {
451
+ queryParamsProps: queryParamsProps,
442
452
  updateCustomization: updateCustomization
443
453
  })]
444
454
  });
@@ -448,6 +458,7 @@ var Inline$1 = function Inline(_ref) {
448
458
  var customization = _ref.customization,
449
459
  updateCustomization = _ref.updateCustomization,
450
460
  isQueryParamsEnabled = _ref.isQueryParamsEnabled,
461
+ queryParamsProps = _ref.queryParamsProps,
451
462
  otherCustomizations = _ref.otherCustomizations;
452
463
  var height = customization.height,
453
464
  width = customization.width,
@@ -514,6 +525,7 @@ var Inline$1 = function Inline(_ref) {
514
525
  }
515
526
  })]
516
527
  }), otherCustomizations(), isQueryParamsEnabled && /*#__PURE__*/jsxRuntime.jsx(DynamicQueryParams, {
528
+ queryParamsProps: queryParamsProps,
517
529
  updateCustomization: updateCustomization
518
530
  })]
519
531
  });
@@ -1353,6 +1365,7 @@ var EmbedRenderer = function EmbedRenderer(_ref) {
1353
1365
  customEmbedScriptPath = _ref.customEmbedScriptPath,
1354
1366
  customPreviewIframeUrl = _ref.customPreviewIframeUrl,
1355
1367
  id = _ref.id,
1368
+ queryParamsProps = _ref.queryParamsProps,
1356
1369
  isQueryParamsEnabled = _ref.isQueryParamsEnabled,
1357
1370
  options = _ref.options,
1358
1371
  extraArgs = _ref.extraArgs,
@@ -1433,6 +1446,7 @@ var EmbedRenderer = function EmbedRenderer(_ref) {
1433
1446
  customization: customization,
1434
1447
  isQueryParamsEnabled: isQueryParamsEnabled,
1435
1448
  otherCustomizations: otherCustomizations,
1449
+ queryParamsProps: queryParamsProps,
1436
1450
  updateCustomization: updateCustomization
1437
1451
  })]
1438
1452
  })
@@ -1533,6 +1547,11 @@ var ProductEmbed = function ProductEmbed(_ref) {
1533
1547
  id = _ref.id,
1534
1548
  _ref$isQueryParamsEna = _ref.isQueryParamsEnabled,
1535
1549
  isQueryParamsEnabled = _ref$isQueryParamsEna === void 0 ? false : _ref$isQueryParamsEna,
1550
+ _ref$queryParamsProps = _ref.queryParamsProps,
1551
+ queryParamsProps = _ref$queryParamsProps === void 0 ? {
1552
+ helpPopoverProps: {},
1553
+ label: ""
1554
+ } : _ref$queryParamsProps,
1536
1555
  _ref$options = _ref.options,
1537
1556
  options = _ref$options === void 0 ? {} : _ref$options,
1538
1557
  _ref$extraArgs = _ref.extraArgs,
@@ -1557,6 +1576,7 @@ var ProductEmbed = function ProductEmbed(_ref) {
1557
1576
  isQueryParamsEnabled: isQueryParamsEnabled,
1558
1577
  options: options,
1559
1578
  otherCustomizations: otherCustomizations,
1579
+ queryParamsProps: queryParamsProps,
1560
1580
  selectedEmbed: selectedEmbed,
1561
1581
  supportedLanguages: supportedLanguages
1562
1582
  }) : /*#__PURE__*/jsxRuntime.jsx(EmbedSelector, {