@bigbinary/neeto-molecules 4.0.47 → 4.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/BrowserSupport.js +53 -22
- package/dist/BrowserSupport.js.map +1 -1
- package/dist/{Chevron-DbcAxB4V.js → Chevron-DX-gOKBh.js} +2 -2
- package/dist/{Chevron-DbcAxB4V.js.map → Chevron-DX-gOKBh.js.map} +1 -1
- package/dist/ConfigurePageSidebar.js +1 -1
- package/dist/DownloadMobileAppCallout.js +5 -4
- package/dist/DownloadMobileAppCallout.js.map +1 -1
- package/dist/FloatingActionMenu.js +1 -2
- package/dist/FloatingActionMenu.js.map +1 -1
- package/dist/KeyboardShortcuts.js +5 -5
- package/dist/KeyboardShortcuts.js.map +1 -1
- package/dist/Sidebar.js +23 -9
- package/dist/Sidebar.js.map +1 -1
- package/dist/cjs/BrowserSupport.js +53 -22
- package/dist/cjs/BrowserSupport.js.map +1 -1
- package/dist/cjs/{Chevron-D0wHw6Zg.js → Chevron-BF749Dye.js} +2 -2
- package/dist/cjs/{Chevron-D0wHw6Zg.js.map → Chevron-BF749Dye.js.map} +1 -1
- package/dist/cjs/ConfigurePageSidebar.js +1 -1
- package/dist/cjs/DownloadMobileAppCallout.js +5 -4
- package/dist/cjs/DownloadMobileAppCallout.js.map +1 -1
- package/dist/cjs/FloatingActionMenu.js +1 -2
- package/dist/cjs/FloatingActionMenu.js.map +1 -1
- package/dist/cjs/KeyboardShortcuts.js +5 -5
- package/dist/cjs/KeyboardShortcuts.js.map +1 -1
- package/dist/cjs/Sidebar.js +22 -8
- package/dist/cjs/Sidebar.js.map +1 -1
- package/dist/cjs/ua-parser-E0eEtHJZ.js +1477 -0
- package/dist/cjs/ua-parser-E0eEtHJZ.js.map +1 -0
- package/dist/ua-parser-rRwDJPFB.js +1475 -0
- package/dist/ua-parser-rRwDJPFB.js.map +1 -0
- package/package.json +2 -2
- package/types/BrowserSupport.d.ts +3 -3
- package/dist/cjs/platform-BUcCb8Jx.js +0 -1254
- package/dist/cjs/platform-BUcCb8Jx.js.map +0 -1
- package/dist/platform-F44zJ4Xh.js +0 -1252
- package/dist/platform-F44zJ4Xh.js.map +0 -1
package/dist/BrowserSupport.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { t } from 'i18next';
|
|
2
|
-
import { p as platform } from './platform-F44zJ4Xh.js';
|
|
3
|
-
import { mergeDeepLeft, uniq, concat } from 'ramda';
|
|
4
1
|
import { n } from './inject-css-C2dztUxs.js';
|
|
5
2
|
import _defineProperty from '@babel/runtime/helpers/defineProperty';
|
|
6
3
|
import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -9,7 +6,9 @@ import { memo } from 'react';
|
|
|
9
6
|
import { Trans } from 'react-i18next';
|
|
10
7
|
import classnames from 'classnames';
|
|
11
8
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
12
|
-
import '
|
|
9
|
+
import { t } from 'i18next';
|
|
10
|
+
import { mergeDeepLeft, uniq, concat } from 'ramda';
|
|
11
|
+
import { U as UAParser } from './ua-parser-rRwDJPFB.js';
|
|
13
12
|
|
|
14
13
|
var css = ":root{--neeto-molecules-browser-support-callout-bg:#feecf0;--neeto-molecules-browser-support-border-color:#d7373f;--neeto-molecules-browser-support-text-color:#121212;--neeto-molecules-browser-support-link-color:#2d36d4}.neeto-molecules-browser-support-callout{background-color:#feecf0;background-color:var(--neeto-molecules-browser-support-callout-bg);display:flex;justify-content:center;line-height:1.5;padding:.3125rem .625rem}.neeto-molecules-browser-support-callout__message{color:#121212;color:var(--neeto-molecules-browser-support-text-color);font-size:.875rem}.neeto-molecules-browser-support-page{align-items:center;background-color:#fff;display:flex;flex-direction:column;height:100vh;height:100dvh;justify-content:center;overflow-y:auto}.neeto-molecules-browser-support-page__content{align-items:center;display:flex;flex-direction:column;justify-content:center;max-width:100%;padding-left:.9375rem;padding-right:.9375rem;width:45rem}.neeto-molecules-browser-support-page__header{color:#121212;color:var(--neeto-molecules-browser-support-text-color);font-size:1.5rem;margin:0 0 .5rem}.neeto-molecules-browser-support-page__desc{color:#121212;color:var(--neeto-molecules-browser-support-text-color);font-size:1rem;line-height:1.5;margin:0 0 1rem}.neeto-molecules-browser-support-callout__message,.neeto-molecules-browser-support-page__desc{text-align:center}.neeto-molecules-browser-support-callout__message a,.neeto-molecules-browser-support-page__desc a{color:#2d36d4;color:var(--neeto-molecules-browser-support-link-color)}.neeto-molecules-browser-support-callout__message a:hover,.neeto-molecules-browser-support-page__desc a:hover{text-decoration:underline}.neeto-molecules-browser-support__link-button{color:#2d36d4;color:var(--neeto-molecules-browser-support-link-color)}.neeto-molecules-browser-support__link-button:hover{text-decoration:underline}";
|
|
15
14
|
n(css,{});
|
|
@@ -19,7 +18,7 @@ var DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS = {
|
|
|
19
18
|
softLimit: 108,
|
|
20
19
|
hardLimit: 70
|
|
21
20
|
},
|
|
22
|
-
|
|
21
|
+
Edge: {
|
|
23
22
|
softLimit: 108,
|
|
24
23
|
hardLimit: 106
|
|
25
24
|
},
|
|
@@ -39,11 +38,11 @@ var DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS = {
|
|
|
39
38
|
softLimit: 11,
|
|
40
39
|
hardLimit: 10
|
|
41
40
|
},
|
|
42
|
-
|
|
41
|
+
MobileChrome: {
|
|
43
42
|
softLimit: 109,
|
|
44
43
|
hardLimit: 105
|
|
45
44
|
},
|
|
46
|
-
|
|
45
|
+
MobileFirefox: {
|
|
47
46
|
softLimit: 109,
|
|
48
47
|
hardLimit: 105
|
|
49
48
|
},
|
|
@@ -67,16 +66,17 @@ var DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS = {
|
|
|
67
66
|
var UNSUPPORTED_BROWSERS = ["OperaMini"];
|
|
68
67
|
var BROWSER_UPGRADE_PAGE_LINKS = {
|
|
69
68
|
Chrome: "https://www.google.com/chrome/update",
|
|
70
|
-
|
|
69
|
+
Edge: "https://support.microsoft.com/en-us/topic/microsoft-edge-update-settings-af8aaca2-1b69-4870-94fe-18822dbb7ef1#:~:text=Update%20once,Download%20and%20install%20to%20proceed",
|
|
71
70
|
Firefox: "https://support.mozilla.org/en-US/kb/update-firefox-latest-release",
|
|
72
71
|
IE: "https://support.microsoft.com/en-us/topic/microsoft-edge-update-settings-af8aaca2-1b69-4870-94fe-18822dbb7ef1#:~:text=Update%20once,Download%20and%20install%20to%20proceed",
|
|
73
72
|
Opera: "https://help.opera.com/en/latest/crashes-and-issues/#updateBrowser",
|
|
74
73
|
Safari: "https://support.apple.com/en-in/HT204416",
|
|
75
|
-
|
|
76
|
-
|
|
74
|
+
MobileChrome: "https://play.google.com/store/apps/details?id=com.android.chrome&hl=en_IN&gl=US",
|
|
75
|
+
MobileFirefox: "https://play.google.com/store/apps/details?id=org.mozilla.firefox&hl=en_IN&gl=US",
|
|
77
76
|
UCBrowser: "https://play.google.com/store/apps/details?id=com.UCMobile.intl&hl=en_IN&gl=US",
|
|
78
77
|
SamsungInternet: "https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser&hl=en_IN&gl=US"
|
|
79
78
|
};
|
|
79
|
+
var INAPP_TYPE = "inapp";
|
|
80
80
|
|
|
81
81
|
var _excluded = ["children"];
|
|
82
82
|
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; }
|
|
@@ -292,6 +292,36 @@ var isBrowserUnsupported = function isBrowserUnsupported(browserName, unsupporte
|
|
|
292
292
|
var isBrowserSupported = function isBrowserSupported(browserName, supportedBrowserVersionsMap) {
|
|
293
293
|
return !!supportedBrowserVersionsMap[convertToPlatformBrowserName(browserName)];
|
|
294
294
|
};
|
|
295
|
+
var getBrowserStatus = function getBrowserStatus(overrides, additionalUnsupported) {
|
|
296
|
+
var _UAParser$getResult = new UAParser(navigator.userAgent).getResult(),
|
|
297
|
+
browser = _UAParser$getResult.browser;
|
|
298
|
+
var browserName = browser.name || t("neetoMolecules.browserSupport.unknownBrowserMsg");
|
|
299
|
+
var browserVersion = convertSemverToFloat(browser.version || "");
|
|
300
|
+
var type = browser.type;
|
|
301
|
+
var supportedBrowserVersionsMap = mergeDeepLeft(overrides, DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS);
|
|
302
|
+
var unsupportedBrowsersList = uniq(concat(UNSUPPORTED_BROWSERS, additionalUnsupported));
|
|
303
|
+
var isUnsupportedBrowser = isBrowserUnsupported(browserName, unsupportedBrowsersList);
|
|
304
|
+
var isKnownBrowser = isBrowserSupported(browserName, supportedBrowserVersionsMap);
|
|
305
|
+
var requiredMinBrowserVersion = isKnownBrowser ? getRequiredMinBrowserVersion(browserName, supportedBrowserVersionsMap) : null;
|
|
306
|
+
var _ref = isKnownBrowser ? isVersionSupported(browserVersion, requiredMinBrowserVersion) : {
|
|
307
|
+
isBrowserFullySupported: false,
|
|
308
|
+
isBrowserPartiallySupported: false
|
|
309
|
+
},
|
|
310
|
+
isBrowserFullySupported = _ref.isBrowserFullySupported,
|
|
311
|
+
isBrowserPartiallySupported = _ref.isBrowserPartiallySupported;
|
|
312
|
+
var downloadPageLink = isKnownBrowser ? buildDownloadPageLink(browserName) : null;
|
|
313
|
+
return {
|
|
314
|
+
browserName: browserName,
|
|
315
|
+
browserVersion: browserVersion,
|
|
316
|
+
type: type,
|
|
317
|
+
isUnsupportedBrowser: isUnsupportedBrowser,
|
|
318
|
+
isKnownBrowser: isKnownBrowser,
|
|
319
|
+
requiredMinBrowserVersion: requiredMinBrowserVersion,
|
|
320
|
+
isBrowserFullySupported: isBrowserFullySupported,
|
|
321
|
+
isBrowserPartiallySupported: isBrowserPartiallySupported,
|
|
322
|
+
downloadPageLink: downloadPageLink
|
|
323
|
+
};
|
|
324
|
+
};
|
|
295
325
|
|
|
296
326
|
var BrowserSupport = function BrowserSupport(_ref) {
|
|
297
327
|
var _ref$overrides = _ref.overrides,
|
|
@@ -299,20 +329,25 @@ var BrowserSupport = function BrowserSupport(_ref) {
|
|
|
299
329
|
_ref$unsupportedBrows = _ref.unsupportedBrowsers,
|
|
300
330
|
unsupportedBrowsers = _ref$unsupportedBrows === void 0 ? [] : _ref$unsupportedBrows,
|
|
301
331
|
children = _ref.children;
|
|
302
|
-
var
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
332
|
+
var _getBrowserStatus = getBrowserStatus(overrides, unsupportedBrowsers),
|
|
333
|
+
browserName = _getBrowserStatus.browserName,
|
|
334
|
+
browserVersion = _getBrowserStatus.browserVersion,
|
|
335
|
+
type = _getBrowserStatus.type,
|
|
336
|
+
isUnsupportedBrowser = _getBrowserStatus.isUnsupportedBrowser,
|
|
337
|
+
isKnownBrowser = _getBrowserStatus.isKnownBrowser,
|
|
338
|
+
isBrowserFullySupported = _getBrowserStatus.isBrowserFullySupported,
|
|
339
|
+
isBrowserPartiallySupported = _getBrowserStatus.isBrowserPartiallySupported,
|
|
340
|
+
requiredMinBrowserVersion = _getBrowserStatus.requiredMinBrowserVersion,
|
|
341
|
+
downloadPageLink = _getBrowserStatus.downloadPageLink;
|
|
342
|
+
if (type === INAPP_TYPE) return /*#__PURE__*/jsx(Fragment, {
|
|
343
|
+
children: children
|
|
344
|
+
});
|
|
309
345
|
if (isUnsupportedBrowser) {
|
|
310
346
|
return /*#__PURE__*/jsx(UnsupportedBrowser$1, {
|
|
311
347
|
browserName: browserName,
|
|
312
348
|
browserVersion: browserVersion
|
|
313
349
|
});
|
|
314
350
|
}
|
|
315
|
-
var isKnownBrowser = isBrowserSupported(browserName, supportedBrowserVersionsMap);
|
|
316
351
|
if (!isKnownBrowser) {
|
|
317
352
|
return /*#__PURE__*/jsx(UnknownBrowser, {
|
|
318
353
|
browserName: browserName,
|
|
@@ -320,10 +355,6 @@ var BrowserSupport = function BrowserSupport(_ref) {
|
|
|
320
355
|
children: children
|
|
321
356
|
});
|
|
322
357
|
}
|
|
323
|
-
var _isVersionSupported = isVersionSupported(browserVersion, requiredMinBrowserVersion),
|
|
324
|
-
isBrowserFullySupported = _isVersionSupported.isBrowserFullySupported,
|
|
325
|
-
isBrowserPartiallySupported = _isVersionSupported.isBrowserPartiallySupported;
|
|
326
|
-
var downloadPageLink = buildDownloadPageLink(browserName);
|
|
327
358
|
if (isBrowserFullySupported) return /*#__PURE__*/jsx(Fragment, {
|
|
328
359
|
children: children
|
|
329
360
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BrowserSupport.js","sources":["../src/components/BrowserSupport/constants.js","../src/components/BrowserSupport/Callout.jsx","../src/components/BrowserSupport/ContactUs.jsx","../src/components/BrowserSupport/DownloadLink.jsx","../src/components/BrowserSupport/UnsupportedVersionMessage.jsx","../src/components/BrowserSupport/PartialSupportedBrowserVersion.jsx","../src/components/BrowserSupport/UnsupportedBrowserMessage.jsx","../src/components/BrowserSupport/UnknownBrowser.jsx","../src/components/BrowserSupport/UnsupportedBrowser.jsx","../src/components/BrowserSupport/UnsupportedBrowserVersion.jsx","../src/components/BrowserSupport/utils.js","../src/components/BrowserSupport/index.jsx"],"sourcesContent":["export const DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS = {\n Chrome: { softLimit: 108, hardLimit: 70 },\n MicrosoftEdge: { softLimit: 108, hardLimit: 106 },\n Firefox: { softLimit: 102, hardLimit: 90 },\n IE: { softLimit: 11, hardLimit: 11 },\n Opera: { softLimit: 93, hardLimit: 89 },\n Safari: { softLimit: 11, hardLimit: 10 },\n ChromeMobile: { softLimit: 109, hardLimit: 105 },\n FirefoxMobile: { softLimit: 109, hardLimit: 105 },\n UCBrowser: { softLimit: 13.4, hardLimit: 13.0 },\n SamsungInternet: { softLimit: 18, hardLimit: 4 },\n AndroidBrowser: { softLimit: 4, hardLimit: 3 },\n Electron: { softLimit: 17, hardLimit: 16 },\n};\n\nexport const UNSUPPORTED_BROWSERS = [\"OperaMini\"];\n\nexport const BROWSER_UPGRADE_PAGE_LINKS = {\n Chrome: \"https://www.google.com/chrome/update\",\n MicrosoftEdge:\n \"https://support.microsoft.com/en-us/topic/microsoft-edge-update-settings-af8aaca2-1b69-4870-94fe-18822dbb7ef1#:~:text=Update%20once,Download%20and%20install%20to%20proceed\",\n Firefox: \"https://support.mozilla.org/en-US/kb/update-firefox-latest-release\",\n IE: \"https://support.microsoft.com/en-us/topic/microsoft-edge-update-settings-af8aaca2-1b69-4870-94fe-18822dbb7ef1#:~:text=Update%20once,Download%20and%20install%20to%20proceed\",\n Opera: \"https://help.opera.com/en/latest/crashes-and-issues/#updateBrowser\",\n Safari: \"https://support.apple.com/en-in/HT204416\",\n\n ChromeMobile:\n \"https://play.google.com/store/apps/details?id=com.android.chrome&hl=en_IN&gl=US\",\n FirefoxMobile:\n \"https://play.google.com/store/apps/details?id=org.mozilla.firefox&hl=en_IN&gl=US\",\n UCBrowser:\n \"https://play.google.com/store/apps/details?id=com.UCMobile.intl&hl=en_IN&gl=US\",\n SamsungInternet:\n \"https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser&hl=en_IN&gl=US\",\n};\n","const Callout = ({ children, ...props }) => (\n <div\n className=\"neeto-molecules-browser-support-callout\"\n data-testid=\"browser-support-callout\"\n {...props}\n >\n <p className=\"neeto-molecules-browser-support-callout__message\">\n {children}\n </p>\n </div>\n);\n\nexport default Callout;\n","import classnames from \"classnames\";\nimport { Trans } from \"react-i18next\";\n\nconst ContactUs = ({ className = \"\" }) => (\n <Trans\n i18nKey=\"neetoMolecules.browserSupport.contactUs.main\"\n components={{\n button: (\n <button\n className={classnames(\n \"neeto-molecules-browser-support__link-button\",\n className\n )}\n onClick={() => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n }}\n />\n ),\n }}\n />\n);\n\nexport default ContactUs;\n","import { Trans } from \"react-i18next\";\n\nconst DownloadLink = ({ className = \"\", link }) => (\n <Trans\n components={{ button: <a {...{ className }} href={link} /> }}\n i18nKey=\"neetoMolecules.browserSupport.downloadLink.main\"\n />\n);\n\nexport default DownloadLink;\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport ContactUs from \"./ContactUs\";\nimport DownloadLink from \"./DownloadLink\";\n\nconst UnsupportedVersionMessage = ({\n browserName,\n browserVersion,\n className = \"\",\n downloadPageLink,\n requiredMinBrowserVersion,\n}) => (\n <Trans\n i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowserVersion.description\"\n components={{\n downloadLink: <DownloadLink {...{ className }} link={downloadPageLink} />,\n contactUs: <ContactUs {...{ className }} />,\n }}\n values={{\n browserName,\n browserVersion,\n requiredMinBrowserVersion: requiredMinBrowserVersion?.softLimit,\n }}\n />\n);\n\nexport default memo(UnsupportedVersionMessage);\n","import Callout from \"./Callout\";\nimport UnsupportedVersionMessage from \"./UnsupportedVersionMessage\";\n\nexport const PartialSupportedBrowserVersion = ({\n browserName,\n browserVersion,\n requiredMinBrowserVersion,\n downloadPageLink,\n children,\n}) => (\n <>\n <Callout>\n <UnsupportedVersionMessage\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n />\n </Callout>\n {children}\n </>\n);\n\nexport default PartialSupportedBrowserVersion;\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport ContactUs from \"./ContactUs\";\n\nconst UnsupportedBrowserMessage = ({\n browserName,\n browserVersion,\n className = \"\",\n}) => (\n <Trans\n components={{ contactUs: <ContactUs {...{ className }} /> }}\n i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowser.description\"\n values={{ browserName, browserVersion }}\n />\n);\n\nexport default memo(UnsupportedBrowserMessage);\n","import Callout from \"./Callout\";\nimport UnsupportedBrowserMessage from \"./UnsupportedBrowserMessage\";\n\nconst UnknownBrowser = ({ browserName, browserVersion, children }) => (\n <>\n <Callout>\n <UnsupportedBrowserMessage {...{ browserName, browserVersion }} />\n </Callout>\n {children}\n </>\n);\n\nexport default UnknownBrowser;\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport UnsupportedBrowserMessage from \"./UnsupportedBrowserMessage\";\n\nconst UnsupportedBrowser = ({ browserName, browserVersion }) => (\n <div\n className=\"neeto-molecules-browser-support-page\"\n data-testid=\"browser-support-page\"\n >\n <div className=\"neeto-molecules-browser-support-page__content\">\n <h1 className=\"neeto-molecules-browser-support-page__header\">\n <Trans i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowser.title\" />\n </h1>\n <p className=\"neeto-molecules-browser-support-page__desc\">\n <UnsupportedBrowserMessage\n {...{ browserName, browserVersion }}\n className=\"neeto-ui-text-body1\"\n />\n </p>\n </div>\n </div>\n);\n\nexport default memo(UnsupportedBrowser);\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport UnsupportedVersionMessage from \"./UnsupportedVersionMessage\";\n\nconst UnsupportedBrowserVersion = ({\n browserName,\n browserVersion,\n requiredMinBrowserVersion,\n downloadPageLink,\n}) => (\n <div\n className=\"neeto-molecules-browser-support-page\"\n data-testid=\"browser-support-page\"\n >\n <div className=\"neeto-molecules-browser-support-page__content\">\n <h1 className=\"neeto-molecules-browser-support-page__header\">\n <Trans i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowserVersion.title\" />\n </h1>\n <p className=\"neeto-molecules-browser-support-page__desc\">\n <UnsupportedVersionMessage\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n />\n </p>\n </div>\n </div>\n);\n\nexport default memo(UnsupportedBrowserVersion);\n","import { BROWSER_UPGRADE_PAGE_LINKS } from \"./constants\";\n\nexport const convertToPlatformBrowserName = browserName =>\n browserName.replace(/\\s/g, \"\");\n\nexport const getRequiredMinBrowserVersion = (\n browserName,\n supportedBrowserVersionsMap\n) => supportedBrowserVersionsMap[convertToPlatformBrowserName(browserName)];\n\nexport const convertSemverToFloat = browserVersion => {\n const [majorVersion, minorVersion] = browserVersion.split(\".\");\n\n return parseFloat(`${majorVersion}.${minorVersion}`) || \"\";\n};\n\nexport const isVersionSupported = (\n browserVersion,\n requiredMinBrowserVersion\n) => {\n const isBrowserFullySupported =\n browserVersion >= requiredMinBrowserVersion?.softLimit;\n\n const isBrowserPartiallySupported =\n browserVersion >= requiredMinBrowserVersion?.hardLimit;\n\n return { isBrowserFullySupported, isBrowserPartiallySupported };\n};\n\nexport const buildDownloadPageLink = browserName =>\n BROWSER_UPGRADE_PAGE_LINKS[convertToPlatformBrowserName(browserName)];\n\nexport const isBrowserUnsupported = (browserName, unsupportedBrowsersList) =>\n unsupportedBrowsersList.includes(convertToPlatformBrowserName(browserName));\n\nexport const isBrowserSupported = (browserName, supportedBrowserVersionsMap) =>\n !!supportedBrowserVersionsMap[convertToPlatformBrowserName(browserName)];\n","import { t } from \"i18next\";\nimport platform from \"platform\";\nimport PropTypes from \"prop-types\";\nimport { concat, mergeDeepLeft, uniq } from \"ramda\";\n\nimport \"./browsersupport.scss\";\nimport {\n DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS,\n UNSUPPORTED_BROWSERS,\n} from \"./constants\";\nimport PartialSupportedBrowserVersion from \"./PartialSupportedBrowserVersion\";\nimport UnknownBrowser from \"./UnknownBrowser\";\nimport UnsupportedBrowser from \"./UnsupportedBrowser\";\nimport UnsupportedBrowserVersion from \"./UnsupportedBrowserVersion\";\nimport {\n buildDownloadPageLink,\n getRequiredMinBrowserVersion,\n isBrowserSupported,\n isVersionSupported,\n isBrowserUnsupported,\n convertSemverToFloat,\n} from \"./utils\";\n\nconst BrowserSupport = ({\n overrides = {},\n unsupportedBrowsers = [],\n children,\n}) => {\n const platformInfo = platform.parse(navigator.userAgent);\n const browserName =\n platformInfo.name || t(\"neetoMolecules.browserSupport.unknownBrowserMsg\");\n const browserVersion = convertSemverToFloat(platformInfo.version || \"\");\n\n const supportedBrowserVersionsMap = mergeDeepLeft(\n overrides,\n DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS\n );\n\n const unsupportedBrowsersList = uniq(\n concat(UNSUPPORTED_BROWSERS, unsupportedBrowsers)\n );\n\n const requiredMinBrowserVersion = getRequiredMinBrowserVersion(\n browserName,\n supportedBrowserVersionsMap\n );\n\n const isUnsupportedBrowser = isBrowserUnsupported(\n browserName,\n unsupportedBrowsersList\n );\n\n if (isUnsupportedBrowser) {\n return <UnsupportedBrowser {...{ browserName, browserVersion }} />;\n }\n\n const isKnownBrowser = isBrowserSupported(\n browserName,\n supportedBrowserVersionsMap\n );\n\n if (!isKnownBrowser) {\n return (\n <UnknownBrowser {...{ browserName, browserVersion }}>\n {children}\n </UnknownBrowser>\n );\n }\n\n const { isBrowserFullySupported, isBrowserPartiallySupported } =\n isVersionSupported(browserVersion, requiredMinBrowserVersion);\n const downloadPageLink = buildDownloadPageLink(browserName);\n\n if (isBrowserFullySupported) return <>{children}</>;\n\n if (isBrowserPartiallySupported) {\n return (\n <PartialSupportedBrowserVersion\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n >\n {children}\n </PartialSupportedBrowserVersion>\n );\n }\n\n return (\n <UnsupportedBrowserVersion\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n />\n );\n};\n\nBrowserSupport.propTypes = {\n /**\n * To override the default minimum supported versions of the browsers.\n */\n overrides: PropTypes.shape({\n Chrome: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Firefox: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n IE: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Opera: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Safari: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n AndroidBrowser: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n OperaMini: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n ChromeMobile: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n FirefoxMobile: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n UCBrowser: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n SamsungInternet: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n }),\n /**\n * To add more browsers to the list of unsupported browsers\n */\n unsupportedBrowsers: PropTypes.arrayOf(PropTypes.string),\n};\n\nexport default BrowserSupport;\n"],"names":["DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS","Chrome","softLimit","hardLimit","MicrosoftEdge","Firefox","IE","Opera","Safari","ChromeMobile","FirefoxMobile","UCBrowser","SamsungInternet","AndroidBrowser","Electron","UNSUPPORTED_BROWSERS","BROWSER_UPGRADE_PAGE_LINKS","Callout","_ref","children","props","_objectWithoutProperties","_excluded","_jsx","_objectSpread","className","ContactUs","_ref$className","Trans","i18nKey","components","button","classnames","onClick","_window$NeetoChat","_window$NeetoChat2","window","NeetoChat","contextualHelp","maximizeWidget","openWidget","DownloadLink","link","href","UnsupportedVersionMessage","browserName","browserVersion","downloadPageLink","requiredMinBrowserVersion","downloadLink","contactUs","values","memo","PartialSupportedBrowserVersion","_jsxs","_Fragment","UnsupportedBrowserMessage","UnknownBrowser","UnsupportedBrowser","UnsupportedBrowserVersion","convertToPlatformBrowserName","replace","getRequiredMinBrowserVersion","supportedBrowserVersionsMap","convertSemverToFloat","_browserVersion$split","split","_browserVersion$split2","_slicedToArray","majorVersion","minorVersion","parseFloat","concat","isVersionSupported","isBrowserFullySupported","isBrowserPartiallySupported","buildDownloadPageLink","isBrowserUnsupported","unsupportedBrowsersList","includes","isBrowserSupported","BrowserSupport","_ref$overrides","overrides","_ref$unsupportedBrows","unsupportedBrowsers","platformInfo","platform","parse","navigator","userAgent","name","t","version","mergeDeepLeft","uniq","isUnsupportedBrowser","isKnownBrowser","_isVersionSupported"],"mappings":";;;;;;;;;;;;;;;;AAAO,IAAMA,0CAA0C,GAAG;AACxDC,EAAAA,MAAM,EAAE;AAAEC,IAAAA,SAAS,EAAE,GAAG;AAAEC,IAAAA,SAAS,EAAE;GAAI;AACzCC,EAAAA,aAAa,EAAE;AAAEF,IAAAA,SAAS,EAAE,GAAG;AAAEC,IAAAA,SAAS,EAAE;GAAK;AACjDE,EAAAA,OAAO,EAAE;AAAEH,IAAAA,SAAS,EAAE,GAAG;AAAEC,IAAAA,SAAS,EAAE;GAAI;AAC1CG,EAAAA,EAAE,EAAE;AAAEJ,IAAAA,SAAS,EAAE,EAAE;AAAEC,IAAAA,SAAS,EAAE;GAAI;AACpCI,EAAAA,KAAK,EAAE;AAAEL,IAAAA,SAAS,EAAE,EAAE;AAAEC,IAAAA,SAAS,EAAE;GAAI;AACvCK,EAAAA,MAAM,EAAE;AAAEN,IAAAA,SAAS,EAAE,EAAE;AAAEC,IAAAA,SAAS,EAAE;GAAI;AACxCM,EAAAA,YAAY,EAAE;AAAEP,IAAAA,SAAS,EAAE,GAAG;AAAEC,IAAAA,SAAS,EAAE;GAAK;AAChDO,EAAAA,aAAa,EAAE;AAAER,IAAAA,SAAS,EAAE,GAAG;AAAEC,IAAAA,SAAS,EAAE;GAAK;AACjDQ,EAAAA,SAAS,EAAE;AAAET,IAAAA,SAAS,EAAE,IAAI;AAAEC,IAAAA,SAAS,EAAE;GAAM;AAC/CS,EAAAA,eAAe,EAAE;AAAEV,IAAAA,SAAS,EAAE,EAAE;AAAEC,IAAAA,SAAS,EAAE;GAAG;AAChDU,EAAAA,cAAc,EAAE;AAAEX,IAAAA,SAAS,EAAE,CAAC;AAAEC,IAAAA,SAAS,EAAE;GAAG;AAC9CW,EAAAA,QAAQ,EA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AA,CAACkC,cAAc,EAAA;AAAOZ,MAAAA,WAAW,EAAXA,WAAW;AAAEC,MAAAA,cAAc,EAAdA,cAAc;AAAA3B,MAAAA,QAAA,EAC9CA;AAAQ,KACK,CAAC;AAErB,EAAA;AAEA,EAAA,IAAA+E,mBAAA,GACEzB,kBAAkB,CAAC3B,cAAc,EAAEE,yBAAyB,CAAC;IADvD0B,uBAAuB,GAAAwB,mBAAA,CAAvBxB,uBAAuB;IAAEC,2BAA2B,GAAAuB,mBAAA,CAA3BvB,2BAA2B;AAE5D,EAAA,IAAM5B,gBAAgB,GAAG6B,qBAAqB,CAAC/B,WAAW,CAAC;AAE3D,EAAA,IAAI6B,uBAAuB,EAAE,oBAAOnD,GAAA,CAAAgC,QAAA,EAAA;AAAApC,IAAAA,QAAA,EAAGA;AAAQ,GAAG,CAAC;AAEnD,EAAA,IAAIwD,2BAA2B,EAAE;IAC/B,oBACEpD,GAAA,CAAC8B,8BAA8B,EAAA;AAE3BR,MAAAA,WAAW,EAAXA,WAAW;AACXC,MAAAA,cAAc,EAAdA,cAAc;AACdC,MAAAA,gBAAgB,EAAhBA,gBAAgB;AAChBC,MAAAA,yBAAyB,EAAzBA,yBAAyB;AAAA7B,MAAAA,QAAA,EAG1BA;AAAQ,KACqB,CAAC;AAErC,EAAA;EAEA,oBACEI,GAAA,CAACoC,2BAAyB,EAAA;AAEtBd,IAAAA,WAAW,EAAXA,WAAW;AACXC,IAAAA,cAAc,EAAdA,cAAc;AACdC,IAAAA,gBAAgB,EAAhBA,gBAAgB;AAChBC,IAAAA,yBAAyB,EAAzBA;AAAyB,GAE5B,CAAC;AAEN;;;;"}
|
|
1
|
+
{"version":3,"file":"BrowserSupport.js","sources":["../src/components/BrowserSupport/constants.js","../src/components/BrowserSupport/Callout.jsx","../src/components/BrowserSupport/ContactUs.jsx","../src/components/BrowserSupport/DownloadLink.jsx","../src/components/BrowserSupport/UnsupportedVersionMessage.jsx","../src/components/BrowserSupport/PartialSupportedBrowserVersion.jsx","../src/components/BrowserSupport/UnsupportedBrowserMessage.jsx","../src/components/BrowserSupport/UnknownBrowser.jsx","../src/components/BrowserSupport/UnsupportedBrowser.jsx","../src/components/BrowserSupport/UnsupportedBrowserVersion.jsx","../src/components/BrowserSupport/utils.js","../src/components/BrowserSupport/index.jsx"],"sourcesContent":["export const DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS = {\n Chrome: { softLimit: 108, hardLimit: 70 },\n Edge: { softLimit: 108, hardLimit: 106 },\n Firefox: { softLimit: 102, hardLimit: 90 },\n IE: { softLimit: 11, hardLimit: 11 },\n Opera: { softLimit: 93, hardLimit: 89 },\n Safari: { softLimit: 11, hardLimit: 10 },\n MobileChrome: { softLimit: 109, hardLimit: 105 },\n MobileFirefox: { softLimit: 109, hardLimit: 105 },\n UCBrowser: { softLimit: 13.4, hardLimit: 13.0 },\n SamsungInternet: { softLimit: 18, hardLimit: 4 },\n AndroidBrowser: { softLimit: 4, hardLimit: 3 },\n Electron: { softLimit: 17, hardLimit: 16 },\n};\n\nexport const UNSUPPORTED_BROWSERS = [\"OperaMini\"];\n\nexport const BROWSER_UPGRADE_PAGE_LINKS = {\n Chrome: \"https://www.google.com/chrome/update\",\n Edge: \"https://support.microsoft.com/en-us/topic/microsoft-edge-update-settings-af8aaca2-1b69-4870-94fe-18822dbb7ef1#:~:text=Update%20once,Download%20and%20install%20to%20proceed\",\n Firefox: \"https://support.mozilla.org/en-US/kb/update-firefox-latest-release\",\n IE: \"https://support.microsoft.com/en-us/topic/microsoft-edge-update-settings-af8aaca2-1b69-4870-94fe-18822dbb7ef1#:~:text=Update%20once,Download%20and%20install%20to%20proceed\",\n Opera: \"https://help.opera.com/en/latest/crashes-and-issues/#updateBrowser\",\n Safari: \"https://support.apple.com/en-in/HT204416\",\n MobileChrome:\n \"https://play.google.com/store/apps/details?id=com.android.chrome&hl=en_IN&gl=US\",\n MobileFirefox:\n \"https://play.google.com/store/apps/details?id=org.mozilla.firefox&hl=en_IN&gl=US\",\n UCBrowser:\n \"https://play.google.com/store/apps/details?id=com.UCMobile.intl&hl=en_IN&gl=US\",\n SamsungInternet:\n \"https://play.google.com/store/apps/details?id=com.sec.android.app.sbrowser&hl=en_IN&gl=US\",\n};\n\nexport const INAPP_TYPE = \"inapp\";\n","const Callout = ({ children, ...props }) => (\n <div\n className=\"neeto-molecules-browser-support-callout\"\n data-testid=\"browser-support-callout\"\n {...props}\n >\n <p className=\"neeto-molecules-browser-support-callout__message\">\n {children}\n </p>\n </div>\n);\n\nexport default Callout;\n","import classnames from \"classnames\";\nimport { Trans } from \"react-i18next\";\n\nconst ContactUs = ({ className = \"\" }) => (\n <Trans\n i18nKey=\"neetoMolecules.browserSupport.contactUs.main\"\n components={{\n button: (\n <button\n className={classnames(\n \"neeto-molecules-browser-support__link-button\",\n className\n )}\n onClick={() => {\n window.NeetoChat?.contextualHelp?.maximizeWidget();\n window.NeetoChat?.contextualHelp?.openWidget();\n }}\n />\n ),\n }}\n />\n);\n\nexport default ContactUs;\n","import { Trans } from \"react-i18next\";\n\nconst DownloadLink = ({ className = \"\", link }) => (\n <Trans\n components={{ button: <a {...{ className }} href={link} /> }}\n i18nKey=\"neetoMolecules.browserSupport.downloadLink.main\"\n />\n);\n\nexport default DownloadLink;\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport ContactUs from \"./ContactUs\";\nimport DownloadLink from \"./DownloadLink\";\n\nconst UnsupportedVersionMessage = ({\n browserName,\n browserVersion,\n className = \"\",\n downloadPageLink,\n requiredMinBrowserVersion,\n}) => (\n <Trans\n i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowserVersion.description\"\n components={{\n downloadLink: <DownloadLink {...{ className }} link={downloadPageLink} />,\n contactUs: <ContactUs {...{ className }} />,\n }}\n values={{\n browserName,\n browserVersion,\n requiredMinBrowserVersion: requiredMinBrowserVersion?.softLimit,\n }}\n />\n);\n\nexport default memo(UnsupportedVersionMessage);\n","import Callout from \"./Callout\";\nimport UnsupportedVersionMessage from \"./UnsupportedVersionMessage\";\n\nexport const PartialSupportedBrowserVersion = ({\n browserName,\n browserVersion,\n requiredMinBrowserVersion,\n downloadPageLink,\n children,\n}) => (\n <>\n <Callout>\n <UnsupportedVersionMessage\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n />\n </Callout>\n {children}\n </>\n);\n\nexport default PartialSupportedBrowserVersion;\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport ContactUs from \"./ContactUs\";\n\nconst UnsupportedBrowserMessage = ({\n browserName,\n browserVersion,\n className = \"\",\n}) => (\n <Trans\n components={{ contactUs: <ContactUs {...{ className }} /> }}\n i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowser.description\"\n values={{ browserName, browserVersion }}\n />\n);\n\nexport default memo(UnsupportedBrowserMessage);\n","import Callout from \"./Callout\";\nimport UnsupportedBrowserMessage from \"./UnsupportedBrowserMessage\";\n\nconst UnknownBrowser = ({ browserName, browserVersion, children }) => (\n <>\n <Callout>\n <UnsupportedBrowserMessage {...{ browserName, browserVersion }} />\n </Callout>\n {children}\n </>\n);\n\nexport default UnknownBrowser;\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport UnsupportedBrowserMessage from \"./UnsupportedBrowserMessage\";\n\nconst UnsupportedBrowser = ({ browserName, browserVersion }) => (\n <div\n className=\"neeto-molecules-browser-support-page\"\n data-testid=\"browser-support-page\"\n >\n <div className=\"neeto-molecules-browser-support-page__content\">\n <h1 className=\"neeto-molecules-browser-support-page__header\">\n <Trans i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowser.title\" />\n </h1>\n <p className=\"neeto-molecules-browser-support-page__desc\">\n <UnsupportedBrowserMessage\n {...{ browserName, browserVersion }}\n className=\"neeto-ui-text-body1\"\n />\n </p>\n </div>\n </div>\n);\n\nexport default memo(UnsupportedBrowser);\n","import { memo } from \"react\";\n\nimport { Trans } from \"react-i18next\";\n\nimport UnsupportedVersionMessage from \"./UnsupportedVersionMessage\";\n\nconst UnsupportedBrowserVersion = ({\n browserName,\n browserVersion,\n requiredMinBrowserVersion,\n downloadPageLink,\n}) => (\n <div\n className=\"neeto-molecules-browser-support-page\"\n data-testid=\"browser-support-page\"\n >\n <div className=\"neeto-molecules-browser-support-page__content\">\n <h1 className=\"neeto-molecules-browser-support-page__header\">\n <Trans i18nKey=\"neetoMolecules.browserSupport.unsupportedBrowserVersion.title\" />\n </h1>\n <p className=\"neeto-molecules-browser-support-page__desc\">\n <UnsupportedVersionMessage\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n />\n </p>\n </div>\n </div>\n);\n\nexport default memo(UnsupportedBrowserVersion);\n","import { t } from \"i18next\";\nimport { concat, mergeDeepLeft, uniq } from \"ramda\";\nimport { UAParser } from \"ua-parser-js\";\n\nimport {\n BROWSER_UPGRADE_PAGE_LINKS,\n DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS,\n UNSUPPORTED_BROWSERS,\n} from \"./constants\";\n\nconst convertToPlatformBrowserName = browserName =>\n browserName.replace(/\\s/g, \"\");\n\nconst getRequiredMinBrowserVersion = (\n browserName,\n supportedBrowserVersionsMap\n) => supportedBrowserVersionsMap[convertToPlatformBrowserName(browserName)];\n\nconst convertSemverToFloat = browserVersion => {\n const [majorVersion, minorVersion] = browserVersion.split(\".\");\n\n return parseFloat(`${majorVersion}.${minorVersion}`) || \"\";\n};\n\nconst isVersionSupported = (browserVersion, requiredMinBrowserVersion) => {\n const isBrowserFullySupported =\n browserVersion >= requiredMinBrowserVersion?.softLimit;\n\n const isBrowserPartiallySupported =\n browserVersion >= requiredMinBrowserVersion?.hardLimit;\n\n return { isBrowserFullySupported, isBrowserPartiallySupported };\n};\n\nconst buildDownloadPageLink = browserName =>\n BROWSER_UPGRADE_PAGE_LINKS[convertToPlatformBrowserName(browserName)];\n\nconst isBrowserUnsupported = (browserName, unsupportedBrowsersList) =>\n unsupportedBrowsersList.includes(convertToPlatformBrowserName(browserName));\n\nconst isBrowserSupported = (browserName, supportedBrowserVersionsMap) =>\n !!supportedBrowserVersionsMap[convertToPlatformBrowserName(browserName)];\n\nexport const getBrowserStatus = (overrides, additionalUnsupported) => {\n const { browser } = new UAParser(navigator.userAgent).getResult();\n\n const browserName =\n browser.name || t(\"neetoMolecules.browserSupport.unknownBrowserMsg\");\n const browserVersion = convertSemverToFloat(browser.version || \"\");\n const type = browser.type;\n\n const supportedBrowserVersionsMap = mergeDeepLeft(\n overrides,\n DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS\n );\n\n const unsupportedBrowsersList = uniq(\n concat(UNSUPPORTED_BROWSERS, additionalUnsupported)\n );\n\n const isUnsupportedBrowser = isBrowserUnsupported(\n browserName,\n unsupportedBrowsersList\n );\n\n const isKnownBrowser = isBrowserSupported(\n browserName,\n supportedBrowserVersionsMap\n );\n\n const requiredMinBrowserVersion = isKnownBrowser\n ? getRequiredMinBrowserVersion(browserName, supportedBrowserVersionsMap)\n : null;\n\n const { isBrowserFullySupported, isBrowserPartiallySupported } =\n isKnownBrowser\n ? isVersionSupported(browserVersion, requiredMinBrowserVersion)\n : { isBrowserFullySupported: false, isBrowserPartiallySupported: false };\n\n const downloadPageLink = isKnownBrowser\n ? buildDownloadPageLink(browserName)\n : null;\n\n return {\n browserName,\n browserVersion,\n type,\n isUnsupportedBrowser,\n isKnownBrowser,\n requiredMinBrowserVersion,\n isBrowserFullySupported,\n isBrowserPartiallySupported,\n downloadPageLink,\n };\n};\n","import PropTypes from \"prop-types\";\n\nimport \"./browsersupport.scss\";\nimport { INAPP_TYPE } from \"./constants\";\nimport PartialSupportedBrowserVersion from \"./PartialSupportedBrowserVersion\";\nimport UnknownBrowser from \"./UnknownBrowser\";\nimport UnsupportedBrowser from \"./UnsupportedBrowser\";\nimport UnsupportedBrowserVersion from \"./UnsupportedBrowserVersion\";\nimport { getBrowserStatus } from \"./utils\";\n\nconst BrowserSupport = ({\n overrides = {},\n unsupportedBrowsers = [],\n children,\n}) => {\n const {\n browserName,\n browserVersion,\n type,\n isUnsupportedBrowser,\n isKnownBrowser,\n isBrowserFullySupported,\n isBrowserPartiallySupported,\n requiredMinBrowserVersion,\n downloadPageLink,\n } = getBrowserStatus(overrides, unsupportedBrowsers);\n\n if (type === INAPP_TYPE) return <>{children}</>;\n\n if (isUnsupportedBrowser) {\n return <UnsupportedBrowser {...{ browserName, browserVersion }} />;\n }\n\n if (!isKnownBrowser) {\n return (\n <UnknownBrowser {...{ browserName, browserVersion }}>\n {children}\n </UnknownBrowser>\n );\n }\n\n if (isBrowserFullySupported) return <>{children}</>;\n\n if (isBrowserPartiallySupported) {\n return (\n <PartialSupportedBrowserVersion\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n >\n {children}\n </PartialSupportedBrowserVersion>\n );\n }\n\n return (\n <UnsupportedBrowserVersion\n {...{\n browserName,\n browserVersion,\n downloadPageLink,\n requiredMinBrowserVersion,\n }}\n />\n );\n};\n\nBrowserSupport.propTypes = {\n /**\n * To override the default minimum supported versions of the browsers.\n */\n overrides: PropTypes.shape({\n Chrome: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Edge: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Firefox: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n IE: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Opera: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n Safari: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n AndroidBrowser: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n OperaMini: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n MobileChrome: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n MobileFirefox: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n UCBrowser: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n SamsungInternet: PropTypes.shape({\n hardLimit: PropTypes.number,\n softLimit: PropTypes.number,\n }),\n }),\n /**\n * To add more browsers to the list of unsupported browsers\n */\n unsupportedBrowsers: PropTypes.arrayOf(PropTypes.string),\n};\n\nexport default BrowserSupport;\n"],"names":["DEFAULT_MINIMUM_SUPPORTED_BROWSER_VERSIONS","Chrome","softLimit","hardLimit","Edge","Firefox","IE","Opera","Safari","MobileChrome","MobileFirefox","UCBrowser","SamsungInternet","AndroidBrowser","Electron","UNSUPPORTED_BROWSERS","BROWSER_UPGRADE_PAGE_LINKS","INAPP_TYPE","Callout","_ref","children","props","_objectWithoutProperties","_excluded","_jsx","_objectSpread","className","ContactUs","_ref$className","Trans","i18nKey","components","button","classnames","onClick","_window$NeetoChat","_window$NeetoChat2","window","NeetoChat","contextualHelp","maximizeWidget","openWidget","DownloadLink","link","href","UnsupportedVersionMessage","browserName","browserVersion","downloadPageLink","requiredMinBrowserVersion","downloadLink","contactUs","values","memo","PartialSupportedBrowserVersion","_jsxs","_Fragment","UnsupportedBrowserMessage","UnknownBrowser","UnsupportedBrowser","UnsupportedBrowserVersion","convertToPlatformBrowserName","replace","getRequiredMinBrowserVersion","supportedBrowserVersionsMap","convertSemverToFloat","_browserVersion$split","split","_browserVersion$split2","_slicedToArray","majorVersion","minorVersion","parseFloat","concat","isVersionSupported","isBrowserFullySupported","isBrowserPartiallySupported","buildDownloadPageLink","isBrowserUnsupported","unsupportedBrowsersList","includes","isBrowserSupported","getBrowserStatus","overrides","additionalUnsupported","_UAParser$getResult","UAParser","navigator","userAgent","getResult","browser","name","t","version","type","mergeDeepLeft","uniq","isUnsupportedBrowser","isKnownBrowser","BrowserSupport","_ref$overrides","_ref$unsupportedBrows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AAC;AAE/C,EAAA,IAAI6E,oBAAoB,EAAE;IACxB,oBAAOzE,GAAA,CAACmC,oBAAkB,EAAA;AAAOb,MAAAA,WAAW,EAAXA,WAAW;AAAEC,MAAAA,cAAc,EAAdA;AAAc,KAAK,CAAC;AACpE,EAAA;EAEA,IAAI,CAACmD,cAAc,EAAE;IACnB,oBACE1E,GAAA,CAACkC,cAAc,EAAA;AAAOZ,MAAAA,WAAW,EAAXA,WAAW;AAAEC,MAAAA,cAAc,EAAdA,cAAc;AAAA3B,MAAAA,QAAA,EAC9CA;AAAQ,KACK,CAAC;AAErB,EAAA;AAEA,EAAA,IAAIuD,uBAAuB,EAAE,oBAAOnD,GAAA,CAAAgC,QAAA,EAAA;AAAApC,IAAAA,QAAA,EAAGA;AAAQ,GAAG,CAAC;AAEnD,EAAA,IAAIwD,2BAA2B,EAAE;IAC/B,oBACEpD,GAAA,CAAC8B,8BAA8B,EAAA;AAE3BR,MAAAA,WAAW,EAAXA,WAAW;AACXC,MAAAA,cAAc,EAAdA,cAAc;AACdC,MAAAA,gBAAgB,EAAhBA,gBAAgB;AAChBC,MAAAA,yBAAyB,EAAzBA,yBAAyB;AAAA7B,MAAAA,QAAA,EAG1BA;AAAQ,KACqB,CAAC;AAErC,EAAA;EAEA,oBACEI,GAAA,CAACoC,2BAAyB,EAAA;AAEtBd,IAAAA,WAAW,EAAXA,WAAW;AACXC,IAAAA,cAAc,EAAdA,cAAc;AACdC,IAAAA,gBAAgB,EAAhBA,gBAAgB;AAChBC,IAAAA,yBAAyB,EAAzBA;AAAyB,GAE5B,CAAC;AAEN;;;;"}
|
|
@@ -242,7 +242,7 @@ var SelectedLink = function SelectedLink(_ref) {
|
|
|
242
242
|
});
|
|
243
243
|
};
|
|
244
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}.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--rotate{transform:rotate(90deg)}.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--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: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);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}";
|
|
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}.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
246
|
n(css,{});
|
|
247
247
|
|
|
248
248
|
var Chevron = function Chevron(_ref) {
|
|
@@ -260,4 +260,4 @@ var Chevron = function Chevron(_ref) {
|
|
|
260
260
|
};
|
|
261
261
|
|
|
262
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-
|
|
263
|
+
//# sourceMappingURL=Chevron-DX-gOKBh.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chevron-DbcAxB4V.js","sources":["../src/components/Sidebar/constants.js","../src/components/Sidebar/Components/Links/CheckPointNavLink.jsx","../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":["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 = \"/admin\";\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\nexport const PINNED_MORE_NAV_LINKS_KEY = \"pinnedMoreNavLinks\";\n","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","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 onClick,\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, onClick, 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 onClick={subItem.onClick}\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 { DEFAULT_HOME_PATH } from \"components/Sidebar/constants\";\n\nimport Items from \"./Items\";\n\nconst SelectedLink = ({\n navLink = { label: \"\", items: [], isConfigureNavLink: false },\n handleGoBack,\n isConfigureSidebar,\n}) => {\n const history = useHistory();\n const { label, items, isConfigureNavLink, ...otherProps } = navLink;\n\n const handleHomeButtonClick = e => {\n e.stopPropagation();\n handleMetaClick(history, DEFAULT_HOME_PATH, 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":["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","PINNED_MORE_NAV_LINKS_KEY","CheckPointNavLinks","_ref","checkpointKey","to","href","children","others","_objectWithoutProperties","_excluded","_useNavigationCheckpo","useNavigationCheckpoints","checkpoint","LinkElement","NavLink","linkProps","_objectSpread","key","_jsx","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","onClick","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","history","useHistory","otherProps","handleHomeButtonClick","e","stopPropagation","handleMetaClick","omit","Button","hyphenize","icon","Home","classNames","_defineProperty","Chevron","height","viewBox","width","d","fill"],"mappings":";;;;;;;;;;;;;;;;;;AAAO,IAAMA,cAAc,GAAG;AAC5BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAEM,IAAMC,mCAAmC,GAAG;AAE5C,IAAMC,iBAAiB,GAAG;AAE1B,IAAMC,iBAAiB,GAAG;AAC1B,IAAMC,iBAAiB,GAAG,IAAI,GAAG;AACjC,IAAMC,iBAAiB,GAAG,EAAE,GAAG;AAC/B,IAAMC,qBAAqB,GAAG,EAAE,GAAG;AAE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C,EAAAC,eAAA,CAAA;AACzD,UAAA,gDAAgD,EAC9CxE;AAAkB,SAAA,EACnB,MAAM,EAAG0D,kBAAkB,CAC7B,CAAE;AAAAvH,QAAAA,QAAA,EAEF2E;AAAK,OACI,CAAC;AAAA,KAAA,CACV,CAAC,EACL0B,KAAK,iBAAIzF,GAAA,CAACwF,MAAK,EAAA;AAAOC,MAAAA,KAAK,EAALA,KAAK;MAAIE,eAAe,EAAA;AAAA,KAAE,CAAC;AAAA,GAC/C,CAAC;AAEV;;;;;AC9DA,IAAM+B,OAAO,GAAG,SAAVA,OAAOA,CAAA1I,IAAA,EAAA;AAAA,EAAA,IAAMwE,KAAK,GAAAxE,IAAA,CAALwE,KAAK;AAAA,EAAA,oBACtBxD,GAAA,CAAA,KAAA,EAAA;AAAWwD,IAAAA,KAAK,EAALA,KAAK;AAAImE,IAAAA,MAAM,EAAC,IAAI;AAACC,IAAAA,OAAO,EAAC,WAAW;AAACC,IAAAA,KAAK,EAAC,IAAI;AAAAzI,IAAAA,QAAA,eAC5DY,GAAA,CAAA,MAAA,EAAA;AACE8H,MAAAA,CAAC,EAAC,y5BAAy5B;AAC35BC,MAAAA,IAAI,EAAC;KACN;AAAC,GACC,CAAC;AAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"Chevron-DX-gOKBh.js","sources":["../src/components/Sidebar/constants.js","../src/components/Sidebar/Components/Links/CheckPointNavLink.jsx","../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":["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 = \"/admin\";\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\nexport const PINNED_MORE_NAV_LINKS_KEY = \"pinnedMoreNavLinks\";\n","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","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 onClick,\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, onClick, 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 onClick={subItem.onClick}\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 { DEFAULT_HOME_PATH } from \"components/Sidebar/constants\";\n\nimport Items from \"./Items\";\n\nconst SelectedLink = ({\n navLink = { label: \"\", items: [], isConfigureNavLink: false },\n handleGoBack,\n isConfigureSidebar,\n}) => {\n const history = useHistory();\n const { label, items, isConfigureNavLink, ...otherProps } = navLink;\n\n const handleHomeButtonClick = e => {\n e.stopPropagation();\n handleMetaClick(history, DEFAULT_HOME_PATH, 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":["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","PINNED_MORE_NAV_LINKS_KEY","CheckPointNavLinks","_ref","checkpointKey","to","href","children","others","_objectWithoutProperties","_excluded","_useNavigationCheckpo","useNavigationCheckpoints","checkpoint","LinkElement","NavLink","linkProps","_objectSpread","key","_jsx","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","onClick","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","history","useHistory","otherProps","handleHomeButtonClick","e","stopPropagation","handleMetaClick","omit","Button","hyphenize","icon","Home","classNames","_defineProperty","Chevron","height","viewBox","width","d","fill"],"mappings":";;;;;;;;;;;;;;;;;;AAAO,IAAMA,cAAc,GAAG;AAC5BC,EAAAA,WAAW,EAAE,aAAa;AAC1BC,EAAAA,QAAQ,EAAE;AACZ,CAAC;AAEM,IAAMC,mCAAmC,GAAG;AAE5C,IAAMC,iBAAiB,GAAG;AAE1B,IAAMC,iBAAiB,GAAG;AAC1B,IAAMC,iBAAiB,GAAG,IAAI,GAAG;AACjC,IAAMC,iBAAiB,GAAG,EAAE,GAAG;AAC/B,IAAMC,qBAAqB,GAAG,EAAE,GAAG;AAEnC,IAAMC,yBAAyB,GAAG;;;;;ACXzC,IAAMC,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;AAET,EAAA,IAAAC,qBAAA,GACEC,wBAAwB,CAACR,aAAa,CAAC;IADhBS,UAAU,GAAAF,qBAAA,CAA1BP,aAAa,CAAA;AAGtB,EAAA,IAAMU,WAAW,GAAGR,IAAI,GAAG,GAAG,GAAGS,OAAO;AACxC,EAAA,IAAMC,SAAS,GAAGV,IAAI,GAAAW,eAAA,CAAA;AAChBX,IAAAA,IAAI,EAAJA,IAAI;AAAEY,IAAAA,GAAG,EAAEZ;GAAI,EAAKE,MAAM,IAAAS,eAAA,CAAA;IAC1BZ,EAAE,EAAEQ,UAAU,IAAIR,EAAE;AAAEa,IAAAA,GAAG,EAAEb;AAAE,GAAA,EAAKG,MAAM,CAAE;EAEhD,oBAAOW,GAAA,CAACL,WAAW,EAAAG,eAAA,CA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ui/Button';
|
|
|
5
5
|
import { not } from 'ramda';
|
|
6
6
|
import { useTranslation } from 'react-i18next';
|
|
7
7
|
import { useHistory } from 'react-router-dom';
|
|
8
|
-
import { S as SelectedLink, C as Chevron } from './Chevron-
|
|
8
|
+
import { S as SelectedLink, C as Chevron } from './Chevron-DX-gOKBh.js';
|
|
9
9
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
10
10
|
import '@babel/runtime/helpers/defineProperty';
|
|
11
11
|
import '@babel/runtime/helpers/objectWithoutProperties';
|
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
import { globalProps } from '@bigbinary/neeto-commons-frontend/initializers';
|
|
2
2
|
import Callout from '@bigbinary/neetoui/Callout';
|
|
3
|
-
import { p as platform } from './platform-F44zJ4Xh.js';
|
|
4
3
|
import { Trans } from 'react-i18next';
|
|
5
4
|
import { useLocation } from 'react-router-dom';
|
|
5
|
+
import { U as UAParser } from './ua-parser-rRwDJPFB.js';
|
|
6
6
|
import { jsx } from 'react/jsx-runtime';
|
|
7
|
-
import './_commonjsHelpers-BFTU3MAI.js';
|
|
8
7
|
|
|
9
8
|
var MOBILE_PLATFORMS = ["Android", "iOS", "Windows Phone"];
|
|
10
9
|
|
|
11
10
|
var DownloadMobileAppCallout = function DownloadMobileAppCallout(_ref) {
|
|
12
|
-
var
|
|
11
|
+
var _globalProps$appName;
|
|
13
12
|
var excludePathRegex = _ref.excludePathRegex;
|
|
14
13
|
var _useLocation = useLocation(),
|
|
15
14
|
pathname = _useLocation.pathname;
|
|
16
|
-
var
|
|
15
|
+
var parser = new UAParser(navigator.userAgent);
|
|
16
|
+
var result = parser.getResult();
|
|
17
|
+
var isMobilePlatform = MOBILE_PLATFORMS.includes(result.os.name);
|
|
17
18
|
if (!isMobilePlatform) return null;
|
|
18
19
|
var shouldExcludePath = excludePathRegex && excludePathRegex.test(pathname);
|
|
19
20
|
if (shouldExcludePath) return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DownloadMobileAppCallout.js","sources":["../src/components/DownloadMobileAppCallout/constants.js","../src/components/DownloadMobileAppCallout/index.jsx"],"sourcesContent":["export const MOBILE_PLATFORMS = [\"Android\", \"iOS\", \"Windows Phone\"];\n","import { globalProps } from \"neetocommons/initializers\";\nimport { Callout } from \"neetoui\";\nimport
|
|
1
|
+
{"version":3,"file":"DownloadMobileAppCallout.js","sources":["../src/components/DownloadMobileAppCallout/constants.js","../src/components/DownloadMobileAppCallout/index.jsx"],"sourcesContent":["export const MOBILE_PLATFORMS = [\"Android\", \"iOS\", \"Windows Phone\"];\n","import { globalProps } from \"neetocommons/initializers\";\nimport { Callout } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { Trans } from \"react-i18next\";\nimport { useLocation } from \"react-router-dom\";\nimport { UAParser } from \"ua-parser-js\";\n\nimport { MOBILE_PLATFORMS } from \"./constants\";\n\nconst DownloadMobileAppCallout = ({ excludePathRegex }) => {\n const { pathname } = useLocation();\n\n const parser = new UAParser(navigator.userAgent);\n const result = parser.getResult();\n const isMobilePlatform = MOBILE_PLATFORMS.includes(result.os.name);\n if (!isMobilePlatform) return null;\n\n const shouldExcludePath = excludePathRegex && excludePathRegex.test(pathname);\n if (shouldExcludePath) return null;\n\n const appName = globalProps.appName?.toLowerCase();\n const mobileAppDownloadUrl = `https://www.neeto.com/${appName}/mobile`;\n\n return (\n <Callout className=\"m-4 block\" style=\"warning\">\n <Trans\n i18nKey=\"neetoMolecules.downloadMobileAppCallout.message\"\n components={{\n a: (\n <a\n className=\"neeto-ui-btn--style-link\"\n href={mobileAppDownloadUrl}\n rel=\"noreferrer\"\n target=\"_blank\"\n />\n ),\n }}\n />\n </Callout>\n );\n};\n\nDownloadMobileAppCallout.propTypes = {\n /**\n * To exclude specific paths where download mobile app callout should be hidden.\n */\n excludePathRegex: PropTypes.instanceOf(RegExp),\n};\n\nexport default DownloadMobileAppCallout;\n"],"names":["MOBILE_PLATFORMS","DownloadMobileAppCallout","_ref","_globalProps$appName","excludePathRegex","_useLocation","useLocation","pathname","parser","UAParser","navigator","userAgent","result","getResult","isMobilePlatform","includes","os","name","shouldExcludePath","test","appName","globalProps","toLowerCase","mobileAppDownloadUrl","concat","_jsx","Callout","className","style","children","Trans","i18nKey","components","a","href","rel","target"],"mappings":";;;;;;;AAAO,IAAMA,gBAAgB,GAAG,CAAC,SAAS,EAAE,KAAK,EAAE,eAAe,CAAC;;ACSnE,IAAMC,wBAAwB,GAAG,SAA3BA,wBAAwBA,CAAAC,IAAA,EAA6B;AAAA,EAAA,IAAAC,oBAAA;AAAA,EAAA,IAAvBC,gBAAgB,GAAAF,IAAA,CAAhBE,gBAAgB;AAClD,EAAA,IAAAC,YAAA,GAAqBC,WAAW,EAAE;IAA1BC,QAAQ,GAAAF,YAAA,CAARE,QAAQ;EAEhB,IAAMC,MAAM,GAAG,IAAIC,QAAQ,CAACC,SAAS,CAACC,SAAS,CAAC;AAChD,EAAA,IAAMC,MAAM,GAAGJ,MAAM,CAACK,SAAS,EAAE;EACjC,IAAMC,gBAAgB,GAAGd,gBAAgB,CAACe,QAAQ,CAACH,MAAM,CAACI,EAAE,CAACC,IAAI,CAAC;AAClE,EAAA,IAAI,CAACH,gBAAgB,EAAE,OAAO,IAAI;EAElC,IAAMI,iBAAiB,GAAGd,gBAAgB,IAAIA,gBAAgB,CAACe,IAAI,CAACZ,QAAQ,CAAC;EAC7E,IAAIW,iBAAiB,EAAE,OAAO,IAAI;AAElC,EAAA,IAAME,OAAO,GAAA,CAAAjB,oBAAA,GAAGkB,WAAW,CAACD,OAAO,MAAA,IAAA,IAAAjB,oBAAA,KAAA,MAAA,GAAA,MAAA,GAAnBA,oBAAA,CAAqBmB,WAAW,EAAE;AAClD,EAAA,IAAMC,oBAAoB,GAAA,wBAAA,CAAAC,MAAA,CAA4BJ,OAAO,EAAA,SAAA,CAAS;EAEtE,oBACEK,GAAA,CAACC,OAAO,EAAA;AAACC,IAAAA,SAAS,EAAC,WAAW;AAACC,IAAAA,KAAK,EAAC,SAAS;IAAAC,QAAA,eAC5CJ,GAAA,CAACK,KAAK,EAAA;AACJC,MAAAA,OAAO,EAAC,iDAAiD;AACzDC,MAAAA,UAAU,EAAE;AACVC,QAAAA,CAAC,eACCR,GAAA,CAAA,GAAA,EAAA;AACEE,UAAAA,SAAS,EAAC,0BAA0B;AACpCO,UAAAA,IAAI,EAAEX,oBAAqB;AAC3BY,UAAAA,GAAG,EAAC,YAAY;AAChBC,UAAAA,MAAM,EAAC;SACR;AAEL;KACD;AAAC,GACK,CAAC;AAEd;;;;"}
|
|
@@ -47,8 +47,7 @@ import '@bigbinary/neeto-icons/Close';
|
|
|
47
47
|
import '@bigbinary/neetoui/Button';
|
|
48
48
|
import '@bigbinary/neetoui/managers';
|
|
49
49
|
import '@bigbinary/neetoui/Kbd';
|
|
50
|
-
import './
|
|
51
|
-
import './_commonjsHelpers-BFTU3MAI.js';
|
|
50
|
+
import './ua-parser-rRwDJPFB.js';
|
|
52
51
|
|
|
53
52
|
var fetch$1 = function fetch() {
|
|
54
53
|
return axios.get("/api/v1/neeto_apps");
|