@bigbinary/neeto-molecules 1.0.89 → 1.0.90-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/dist/Columns.cjs.js +34 -6
  2. package/dist/Columns.cjs.js.map +1 -1
  3. package/dist/Columns.js +37 -9
  4. package/dist/Columns.js.map +1 -1
  5. package/dist/Container.cjs.js +1 -1
  6. package/dist/Container.js +1 -1
  7. package/dist/CopyToClipboardButton.cjs.js +2 -1
  8. package/dist/CopyToClipboardButton.cjs.js.map +1 -1
  9. package/dist/CopyToClipboardButton.js +2 -1
  10. package/dist/CopyToClipboardButton.js.map +1 -1
  11. package/dist/CustomDomain.cjs.js +8 -10
  12. package/dist/CustomDomain.cjs.js.map +1 -1
  13. package/dist/CustomDomain.js +10 -13
  14. package/dist/CustomDomain.js.map +1 -1
  15. package/dist/CustomDomainDashboard.cjs.js +38 -38
  16. package/dist/CustomDomainDashboard.cjs.js.map +1 -1
  17. package/dist/CustomDomainDashboard.js +41 -42
  18. package/dist/CustomDomainDashboard.js.map +1 -1
  19. package/dist/EmailForm.cjs.js +1 -1
  20. package/dist/EmailForm.cjs.js.map +1 -1
  21. package/dist/EmailForm.js +1 -1
  22. package/dist/EmailForm.js.map +1 -1
  23. package/dist/Header.cjs.js +22 -24
  24. package/dist/Header.cjs.js.map +1 -1
  25. package/dist/Header.js +25 -27
  26. package/dist/Header.js.map +1 -1
  27. package/dist/IconPicker.cjs.js +1 -0
  28. package/dist/IconPicker.cjs.js.map +1 -1
  29. package/dist/IconPicker.js +1 -0
  30. package/dist/IconPicker.js.map +1 -1
  31. package/dist/IntegrationCard.cjs.js +223 -38
  32. package/dist/IntegrationCard.cjs.js.map +1 -1
  33. package/dist/IntegrationCard.js +227 -42
  34. package/dist/IntegrationCard.js.map +1 -1
  35. package/dist/IntegrationDisconnectAlert.cjs.js +22 -14
  36. package/dist/IntegrationDisconnectAlert.cjs.js.map +1 -1
  37. package/dist/IntegrationDisconnectAlert.js +19 -14
  38. package/dist/IntegrationDisconnectAlert.js.map +1 -1
  39. package/dist/IntegrationWalkthroughModal.cjs.js +17 -9
  40. package/dist/IntegrationWalkthroughModal.cjs.js.map +1 -1
  41. package/dist/IntegrationWalkthroughModal.js +14 -9
  42. package/dist/IntegrationWalkthroughModal.js.map +1 -1
  43. package/dist/IpRestriction.cjs.js +177 -127
  44. package/dist/IpRestriction.cjs.js.map +1 -1
  45. package/dist/IpRestriction.js +178 -128
  46. package/dist/IpRestriction.js.map +1 -1
  47. package/dist/KeyboardShortcuts.cjs.js +2 -0
  48. package/dist/KeyboardShortcuts.cjs.js.map +1 -1
  49. package/dist/KeyboardShortcuts.js +2 -0
  50. package/dist/KeyboardShortcuts.js.map +1 -1
  51. package/dist/MenuBar.cjs.js +1 -1
  52. package/dist/MenuBar.js +1 -1
  53. package/dist/NeetoWidget.cjs.js +5 -20
  54. package/dist/NeetoWidget.cjs.js.map +1 -1
  55. package/dist/NeetoWidget.js +5 -21
  56. package/dist/NeetoWidget.js.map +1 -1
  57. package/dist/Schedule.cjs.js +28 -16
  58. package/dist/Schedule.cjs.js.map +1 -1
  59. package/dist/Schedule.js +30 -18
  60. package/dist/Schedule.js.map +1 -1
  61. package/dist/Scrollable.cjs.js +5 -1
  62. package/dist/Scrollable.cjs.js.map +1 -1
  63. package/dist/Scrollable.js +5 -1
  64. package/dist/Scrollable.js.map +1 -1
  65. package/dist/ShareViaLink.cjs.js +7 -8
  66. package/dist/ShareViaLink.cjs.js.map +1 -1
  67. package/dist/ShareViaLink.js +7 -9
  68. package/dist/ShareViaLink.js.map +1 -1
  69. package/dist/Sidebar.cjs.js +231 -138
  70. package/dist/Sidebar.cjs.js.map +1 -1
  71. package/dist/Sidebar.js +234 -141
  72. package/dist/Sidebar.js.map +1 -1
  73. package/dist/SubHeader.cjs.js +7 -4
  74. package/dist/SubHeader.cjs.js.map +1 -1
  75. package/dist/SubHeader.js +8 -5
  76. package/dist/SubHeader.js.map +1 -1
  77. package/package.json +4 -2
  78. package/src/translations/en.json +23 -4
  79. package/types/Columns.d.ts +8 -7
  80. package/types/Header.d.ts +2 -0
  81. package/types/IntegrationCard.d.ts +14 -5
  82. package/types/Schedule.d.ts +7 -0
  83. package/types/Sidebar.d.ts +1 -1
  84. package/types/SubHeader.d.ts +1 -1
@@ -1,19 +1,19 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var ramda = require('ramda');
5
- var reactRouterDom = require('react-router-dom');
4
+ var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
6
5
  var reactUtils = require('@bigbinary/neeto-commons-frontend/react-utils');
7
- var neetoIcons = require('@bigbinary/neeto-icons');
8
6
  var neetoui = require('@bigbinary/neetoui');
7
+ var ramda = require('ramda');
9
8
  var reactI18next = require('react-i18next');
9
+ var reactRouterDom = require('react-router-dom');
10
+ var neetoIcons = require('@bigbinary/neeto-icons');
10
11
  var pure = require('@bigbinary/neeto-commons-frontend/pure');
11
12
  var AppIcons = require('@bigbinary/neeto-icons/app-icons');
12
13
  var i18next = require('i18next');
13
14
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
14
15
  var KeyboardShortcuts = require('@bigbinary/neeto-molecules/KeyboardShortcuts');
15
- var ProductLogos = require('@bigbinary/neeto-icons/logos');
16
- var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
16
+ var ProductTypefaceLogos = require('@bigbinary/neeto-icons/typeface-logos');
17
17
 
18
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
19
19
 
@@ -38,7 +38,7 @@ function _interopNamespace(e) {
38
38
  var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
39
39
  var AppIcons__namespace = /*#__PURE__*/_interopNamespace(AppIcons);
40
40
  var KeyboardShortcuts__default = /*#__PURE__*/_interopDefaultLegacy(KeyboardShortcuts);
41
- var ProductLogos__namespace = /*#__PURE__*/_interopNamespace(ProductLogos);
41
+ var ProductTypefaceLogos__namespace = /*#__PURE__*/_interopNamespace(ProductTypefaceLogos);
42
42
 
43
43
  function _arrayWithHoles(arr) {
44
44
  if (Array.isArray(arr)) return arr;
@@ -31512,7 +31512,7 @@ SwitchTransition.defaultProps = {
31512
31512
 
31513
31513
  var e=[],t=[];function n(n,r){if(n&&"undefined"!=typeof document){var a,s=!0===r.prepend?"prepend":"append",d=!0===r.singleTag,i="string"==typeof r.container?document.querySelector(r.container):document.getElementsByTagName("head")[0];if(d){var u=e.indexOf(i);-1===u&&(u=e.push(i)-1,t[u]={}),a=t[u]&&t[u][s]?t[u][s]:t[u][s]=c();}else a=c();65279===n.charCodeAt(0)&&(n=n.substring(1)),a.styleSheet?a.styleSheet.cssText+=n:a.appendChild(document.createTextNode(n));}function c(){var e=document.createElement("style");if(e.setAttribute("type","text/css"),r.attributes)for(var t=Object.keys(r.attributes),n=0;n<t.length;n++)e.setAttribute(t[n],r.attributes[t[n]]);var a="prepend"===s?"afterbegin":"beforeend";return i.insertAdjacentElement(a,e),e}}
31514
31514
 
31515
- var css$1 = ".neeto-molecules-app-switcher__backdrop{align-items:center;background-color:rgba(27,31,35,.867);flex-direction:row;left:var(--neeto-ui-sidebar-width);overflow:hidden;position:fixed;top:0;width:100vw;z-index:99996}.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher__wrapper{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;height:100vh;justify-content:flex-start;transition:all .3s}.neeto-molecules-app-switcher__wrapper{align-items:flex-start;animation:nuifadeIn .3s ease-in;background-color:rgb(var(--neeto-ui-white));flex-direction:column;max-width:100%;overflow-y:auto;padding:72px;position:relative;width:calc(100vw - var(--neeto-ui-sidebar-width))}.neeto-molecules-app-switcher__grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}.neeto-molecules-app-switcher__header{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}.neeto-molecules-app-switcher__close-btn{position:absolute;right:24px;top:24px}.neeto-molecules-app-switcher__search-wrapper{width:316px}.neeto-molecules-app-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-app-switcher-link{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:2px;cursor:pointer;display:flex;gap:12px;max-width:100%;padding:12px 16px;text-decoration:none;transition:background-color .3s ease-in-out;width:100%}.neeto-molecules-app-switcher-link:focus,.neeto-molecules-app-switcher-link:focus-visible{outline:none}.neeto-molecules-app-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link:not(.neeto-molecules-app-switcher-link--active):hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link--active{background:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-600))}.neeto-molecules-app-switcher-link__icon-holder{align-items:center;border-radius:var(--neeto-ui-rounded-lg);display:flex;flex-shrink:0;height:42px;justify-content:center;width:42px}.neeto-molecules-app-switcher-link__content{flex-grow:1}.neeto-molecules-app-switcher-link__content span{display:block}.neeto-molecules-app-switcher-enter.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}.neeto-molecules-app-switcher-enter-active.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-enter-done.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-exit.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:1}.neeto-molecules-app-switcher-exit-active.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}";
31515
+ var css$1 = ".neeto-molecules-app-switcher__backdrop{align-items:center;background-color:rgba(27,31,35,.867);flex-direction:row;left:240px;overflow:hidden;position:fixed;top:0;width:100vw;z-index:99996}.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher__wrapper{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;height:100vh;justify-content:flex-start;transition:all .3s}.neeto-molecules-app-switcher__wrapper{align-items:flex-start;animation:nuifadeIn .3s ease-in;background-color:rgb(var(--neeto-ui-white));flex-direction:column;max-width:100%;overflow-y:auto;padding:40px;position:relative;width:calc(100% - 240px)}.neeto-molecules-app-switcher__grid{grid-gap:24px;display:grid;gap:24px;grid-template-columns:repeat(auto-fill,minmax(288px,1fr))}.neeto-molecules-app-switcher__header{align-items:center;display:flex;gap:16px;justify-content:space-between;margin-bottom:32px;position:relative;width:100%}.neeto-molecules-app-switcher__header h1{font-size:40px;line-height:var(--neeto-ui-leading-tight);margin-top:-16px}.neeto-molecules-app-switcher__close-btn{position:absolute;right:12px;top:12px}.neeto-molecules-app-switcher__search-wrapper{width:316px}.neeto-molecules-app-switcher__body{display:flex;flex-direction:column;font-size:var(--neeto-ui-text-sm);gap:12px;margin-bottom:24px;width:100%}.neeto-molecules-app-switcher-link{align-items:center;background-color:rgb(var(--neeto-ui-gray-100));border-color:rgb(var(--neeto-ui-gray-100));border-radius:var(--neeto-ui-rounded-lg);border-style:solid;border-width:2px;cursor:pointer;display:flex;gap:12px;max-width:100%;padding:12px 16px;text-decoration:none;transition:background-color .3s ease-in-out;width:100%}.neeto-molecules-app-switcher-link:focus,.neeto-molecules-app-switcher-link:focus-visible{outline:none}.neeto-molecules-app-switcher-link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link:not(.neeto-molecules-app-switcher-link--active):hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-app-switcher-link--active{background:rgb(var(--neeto-ui-primary-100));border-color:rgb(var(--neeto-ui-primary-600))}.neeto-molecules-app-switcher-link__icon-holder{align-items:center;border-radius:var(--neeto-ui-rounded-lg);display:flex;flex-shrink:0;height:42px;justify-content:center;width:42px}.neeto-molecules-app-switcher-link__content{flex-grow:1}.neeto-molecules-app-switcher-link__content span{display:block}.neeto-molecules-app-switcher-enter.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}.neeto-molecules-app-switcher-enter-active.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-enter-done.neeto-molecules-app-switcher__backdrop,.neeto-molecules-app-switcher-exit.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:1}.neeto-molecules-app-switcher-exit-active.neeto-molecules-app-switcher__backdrop{-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);opacity:0}";
31516
31516
  n(css$1,{});
31517
31517
 
31518
31518
  function _extends() {
@@ -31640,7 +31640,7 @@ var Body = function Body(_ref) {
31640
31640
  className: "neeto-molecules-app-switcher__header",
31641
31641
  "data-cy": "app-switcher-body-wrapper"
31642
31642
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31643
- style: "h2"
31643
+ style: "h1"
31644
31644
  }, t("neetoMolecules.appSwitcher.chooseNeetoProduct")), /*#__PURE__*/React__default["default"].createElement("div", {
31645
31645
  className: "neeto-molecules-app-switcher__search-wrapper"
31646
31646
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Input, {
@@ -31743,42 +31743,20 @@ var AppSwitcher = function AppSwitcher(_ref) {
31743
31743
  })))));
31744
31744
  };
31745
31745
 
31746
- var FeaturedTooltip = function FeaturedTooltip(_ref) {
31747
- var label = _ref.label,
31748
- description = _ref.description;
31749
- return /*#__PURE__*/React__default["default"].createElement("div", {
31750
- className: "neeto-ui-flex neeto-ui-flex-col sidebar-featured-tooltip"
31751
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31752
- className: "neeto-ui-text-center sidebar-featured-tooltip__title",
31753
- lineHeight: "tight",
31754
- style: "h5",
31755
- weight: "semibold"
31756
- }, label), description && /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31757
- className: "neeto-ui-text-center neeto-ui-text-gray-400 sidebar-featured-tooltip__description",
31758
- lineHeight: "normal",
31759
- style: "body3"
31760
- }, description));
31761
- };
31762
- var FeaturedTooltip$1 = /*#__PURE__*/React__default["default"].memo(FeaturedTooltip);
31763
-
31764
- var NavIconWrapper = function NavIconWrapper(_ref) {
31765
- var description = _ref.description,
31766
- label = _ref.label,
31767
- children = _ref.children;
31768
- return /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
31769
- className: "sidebar-featured-tooltip__content",
31770
- content: /*#__PURE__*/React__default["default"].createElement(FeaturedTooltip$1, {
31771
- description: description,
31772
- label: label
31773
- }),
31774
- delay: [400, 40],
31775
- distance: "20rem",
31776
- duration: [200, 200],
31777
- position: "right"
31778
- }, children);
31746
+ var Chevron = function Chevron(_ref) {
31747
+ var style = _ref.style;
31748
+ return /*#__PURE__*/React__default["default"].createElement("svg", {
31749
+ height: "16",
31750
+ viewBox: "0 0 16 16",
31751
+ width: "16",
31752
+ style: style
31753
+ }, /*#__PURE__*/React__default["default"].createElement("path", {
31754
+ 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",
31755
+ fill: "currentColor"
31756
+ }));
31779
31757
  };
31780
31758
 
31781
- var css = ".neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-white));border-right:1px solid rgb(var(--neeto-ui-gray-200));height:100vh;max-width:300px;padding:40px 0;transition:all .3s;width:300px;z-index:99997}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}@media (min-width:1440px){.neeto-molecules-sidebar{max-width:320px;width:320px}}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed{max-width:var(--neeto-ui-sidebar-width);width:var(--neeto-ui-sidebar-width)}.neeto-molecules-sidebar__header{margin-bottom:40px;padding:0 20px;width:100%}.neeto-molecules-sidebar__logo,.neeto-molecules-sidebar__logo svg{height:40px;width:40px}.neeto-molecules-sidebar__info{padding-left:10px;width:calc(100% - 40px)}.neeto-molecules-sidebar__info .neeto-molecules-typography{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.neeto-molecules-sidebar__links{margin-bottom:20px;padding-left:12px;padding-right:12px;width:100%}.neeto-molecules-sidebar__link{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-600));cursor:pointer;margin:8px 0;padding:8px;position:relative;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__link.mb-0{margin-bottom:0}.neeto-molecules-sidebar__link-icon{flex-shrink:0;width:40px}.neeto-molecules-sidebar__link-label{overflow:hidden;padding-left:10px;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 40px)}.neeto-molecules-sidebar__link-sub-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:calc(100% - 56px)}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800));outline:none;text-decoration:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-primary-100));color:rgb(var(--neeto-ui-primary-600));text-decoration:none}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink{border-radius:var(--neeto-ui-rounded);color:rgb(var(--neeto-ui-gray-600));cursor:pointer;margin:4px 0;padding:8px 8px 8px 58px;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-gray-700));text-decoration:none}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{background-color:rgb(var(--neeto-ui-gray-300));color:rgb(var(--neeto-ui-gray-700));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__footer{margin-top:auto;padding:0 12px;width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-wrapper{outline:none!important}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile{background-color:rgb(var(--neeto-ui-white));border-radius:var(--neeto-ui-rounded);box-shadow:var(--neeto-ui-shadow-sm);cursor:pointer;padding:8px;transition:var(--neeto-ui-transition);width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-content{padding-left:10px;padding-right:30px;position:relative;width:calc(100% - 40px)}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-content .neeto-molecules-typography{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-drop-icon{color:rgb(var(--neeto-ui-gray-500));position:absolute;right:8px;top:50%;transform:translateY(-50%)}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed{padding:24px 0}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__profile{background-color:transparent;box-shadow:none;padding:0}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__header,.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__links{padding-left:16px;padding-right:16px}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__link-icon{width:24px}.neeto-molecules-sidebar.neeto-molecules-sidebar--collapsed .neeto-molecules-sidebar__footer{padding-left:16px;padding-right:16px}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;box-shadow:var(--neeto-ui-shadow-xs)!important}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400));list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-profile-sublist__item-btn{align-items:center;border-radius:0;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);gap:8px;line-height:1.143;min-height:32px;outline-color:transparent;padding:6px 40px 6px 12px;position:relative;text-decoration:none;transition:var(--neeto-ui-transition);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.neeto-molecules-profile-sublist__item-btn.disabled{color:rgb(var(--neeto-ui-gray-500));cursor:not-allowed}.neeto-molecules-profile-sublist__item-btn:focus,.neeto-molecules-profile-sublist__item-btn:hover{background-color:rgb(var(--neeto-ui-gray-200))}.neeto-molecules-profile-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-profile-sublist__item-btn--style-danger{color:rgb(var(--neeto-ui-error-800))}.neeto-molecules-profile-sublist__item-btn-icon{color:rgb(var(--neeto-ui-gray-600))}.neeto-molecules-profile-sublist__item-btn-icon svg{height:20px;width:20px}.neeto-molecules-help-sublist__item-btn{border-radius:0;color:rgb(var(--neeto-ui-gray-800));cursor:pointer;display:flex;font-size:var(--neeto-ui-text-sm);font-weight:var(--neeto-ui-font-normal);gap:8px;justify-content:flex-end;line-height:1.143;min-height:32px;outline-color:transparent;padding:6px 40px 6px 12px;position:relative;text-decoration:none;transition:var(--neeto-ui-transition);-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap;width:100%}.neeto-molecules-help-sublist__item-btn.disabled{color:rgb(var(--neeto-ui-gray-500));cursor:not-allowed}.neeto-molecules-help-sublist__item-btn:focus,.neeto-molecules-help-sublist__item-btn:hover{background-color:rgb(var(--neeto-ui-gray-200));box-shadow:none}.neeto-molecules-help-sublist__item-btn.active{background-color:rgb(var(--neeto-ui-gray-800));color:rgb(var(--neeto-ui-white))}.neeto-molecules-help-sublist__item-btn--style-danger{color:rgb(var(--neeto-ui-error-800))}.neeto-molecules-help-sublist__item-btn-icon{color:rgb(var(--neeto-ui-gray-600))}.neeto-molecules-help-sublist__item-btn-icon svg{height:20px;width:20px}.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;font-size:10px;justify-content:center;min-height:16px;min-width:16px;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:1}.neeto-molecules-help-sublist__item-btn-count{position:absolute;right:10px;top:50%;transform:translateY(-50%)}.neeto-molecules-sidebar__notif-count{position:absolute;right:-2px;top:-2px}";
31759
+ var css = ":root{--neeto-molecules-sidebar-width:240px;--neeto-molecules-sidebar-z-index:99998;--neeto-chat-primary:136,134,255;--neeto-wireframe-primary:106,103,232;--neeto-site-primary:129,118,255;--neeto-desk-primary:253,148,55;--neeto-planner-primary:82,169,198;--neeto-replay-primary:32,199,189;--neeto-course-primary:140,214,114;--neeto-ci-primary:255,133,184;--neeto-invoice-primary:70,160,211;--neeto-quiz-primary:254,99,99;--neeto-runner-primary:75,71,255;--neeto-form-primary:254,128,114;--neeto-crm-primary:96,154,240;--neeto-changelog-primary:255,135,135;--neeto-deploy-primary:20,209,164;--neeto-kb-primary:101,205,161;--neeto-cal-primary:238,77,95;--neeto-invisible-primary:121,157,250;--neeto-testify-primary:255,158,69;--neeto-monitor-primary:70,181,197;--neeto-git-primary:255,78,110}.neeto-molecules-sidebar__wrapper{display:flex;max-width:240px;max-width:var(--neeto-molecules-sidebar-width);position:relative;transition:all .15s;width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar__wrapper--collapsed{max-width:0;width:0}.neeto-molecules-sidebar__wrapper--collapsed .neeto-molecules-sidebar__toggler{right:-36px;transform:scale(-1)}.neeto-molecules-sidebar__wrapper:hover .neeto-molecules-sidebar__toggler{opacity:1}.neeto-molecules-sidebar{background-color:rgb(var(--neeto-ui-gray-100));border-right:1px solid rgb(var(--neeto-ui-gray-100));height:100vh;padding:24px 0;width:100%;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar__no-shrinkable{max-width:240px;max-width:var(--neeto-molecules-sidebar-width);width:240px;width:var(--neeto-molecules-sidebar-width)}.neeto-molecules-sidebar::-webkit-scrollbar{height:0;width:0}.neeto-molecules-sidebar::-webkit-scrollbar-thumb{background:rgb(var(--neeto-ui-gray-300));border-radius:50px}.neeto-molecules-sidebar::-webkit-scrollbar-track{background:\"transparent\"}.neeto-molecules-sidebar__toggler-hover-area{bottom:0;left:100%;position:absolute;top:0;width:40px;z-index:99998;z-index:var(--neeto-molecules-sidebar-z-index)}.neeto-molecules-sidebar__toggler{opacity:0;position:absolute;right:8px;top:8px;transition:opacity .3s ease-in-out;z-index:99999;z-index:calc(var(--neeto-molecules-sidebar-z-index) + 1)}.neeto-molecules-sidebar__toggler:focus{opacity:1}.neeto-molecules-sidebar__header{margin:14px 0 28px;padding:0 24px}.neeto-molecules-sidebar__logo svg{height:20px;max-width:100%;width:auto}.neeto-molecules-sidebar__links{margin-bottom:40px}.neeto-molecules-sidebar__link{color:rgb(var(--neeto-ui-gray-800));gap:10px;padding:8px 24px;position:relative;text-decoration:none!important;transition:var(--neeto-ui-transition);width:100%}.neeto-molecules-sidebar__link:not(:first-child){margin-top:10px}.neeto-molecules-sidebar__link-icon{flex-shrink:0;transition:var(--neeto-ui-transition)}.neeto-molecules-sidebar__link-icon svg path{vector-effect:non-scaling-stroke}.neeto-molecules-sidebar__link-icon--rotate{transform:scale(-1)}.neeto-molecules-sidebar__link-icon--caret{opacity:0;transition:none}.neeto-molecules-sidebar__link-label,.neeto-molecules-sidebar__link-sub-label{flex-grow:1;text-align:left}.neeto-molecules-sidebar__link:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link:focus,.neeto-molecules-sidebar__link:focus-visible,.neeto-molecules-sidebar__link[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none}.neeto-molecules-sidebar__link.active{background-color:rgb(var(--neeto-ui-white));color:rgb(var(--neeto-ui-black))}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-label{font-weight:var(--neeto-ui-font-medium)}.neeto-molecules-sidebar__link.active .neeto-molecules-sidebar__link-icon--caret{opacity:1}.neeto-molecules-sidebar__link--button:focus{background-color:transparent}.neeto-molecules-sidebar__link--button:focus-visible{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-gray-800))}.neeto-molecules-sidebar__link--change-log{outline:none!important}.neeto-molecules-sidebar__sublink-wrapper{background-color:rgb(var(--neeto-ui-white));padding:4px 0}.neeto-molecules-sidebar__sublink{background-color:rgb(var(--neeto-ui-white));color:rgb(var(--neeto-ui-gray-700));cursor:pointer;gap:8px;padding:8px 24px 8px 58px;text-decoration:none;transition:all .3s}.neeto-molecules-sidebar__sublink:not(:last-child){margin-bottom:4px}.neeto-molecules-sidebar__sublink .neeto-molecules-sidebar__link-sub-count{opacity:.75}.neeto-molecules-sidebar__sublink:hover{color:rgb(var(--neeto-ui-gray-800));text-decoration:none}.neeto-molecules-sidebar__sublink:hover .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink:focus,.neeto-molecules-sidebar__sublink:focus-visible{color:rgb(var(--neeto-ui-gray-800));outline:none;text-decoration:none}.neeto-molecules-sidebar__sublink:focus .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:focus-visible .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__sublink.active,.neeto-molecules-sidebar__sublink:active{color:rgb(var(--neeto-ui-black));font-weight:var(--neeto-ui-font-medium);text-decoration:none}.neeto-molecules-sidebar__sublink.active .neeto-molecules-sidebar__link-sub-count,.neeto-molecules-sidebar__sublink:active .neeto-molecules-sidebar__link-sub-count{opacity:1}.neeto-molecules-sidebar__footer{margin-top:auto}.sidebar-featured-tooltip__content{border-radius:8px!important;box-shadow:var(--neeto-ui-shadow-sm)!important}.sidebar-featured-tooltip__content .tippy-content{padding:0}.sidebar-featured-tooltip{padding:12px;width:150px}.sidebar-featured-tooltip__icon-wrap{background-color:rgb(var(--neeto-ui-gray-100));border-radius:8px;height:40px;margin-bottom:8px;margin-left:auto;margin-right:auto;width:40px}.sidebar-featured-tooltip__title{margin-bottom:4px}.neeto-molecules-help-popup-wrapper,.neeto-molecules-profile-popup-wrapper{border:1px solid rgb(var(--neeto-ui-gray-400));border-radius:var(--neeto-ui-rounded)!important;box-shadow:var(--neeto-ui-shadow-xs)!important}.neeto-molecules-help-popup-wrapper .tippy-content,.neeto-molecules-profile-popup-wrapper .tippy-content{padding:0}.neeto-molecules-help-popup-wrapper .tippy-svg-arrow,.neeto-molecules-profile-popup-wrapper .tippy-svg-arrow{display:none!important}.neeto-molecules-profile-sublist{border-top:1px solid rgb(var(--neeto-ui-gray-400))}.neeto-molecules-help-sublist,.neeto-molecules-profile-sublist{list-style:none;margin:0;padding:4px 0}.neeto-molecules-help-sublist__item,.neeto-molecules-profile-sublist__item{width:100%}.neeto-molecules-help-sublist__item-btn,.neeto-molecules-profile-sublist__item-btn{border-radius:0;justify-content:flex-end!important}.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}";
31782
31760
  n(css,{});
31783
31761
 
31784
31762
  var AppSwitcherButton = function AppSwitcherButton(_ref) {
@@ -31794,9 +31772,7 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
31794
31772
  var handleAppSwitcherToggle = function handleAppSwitcherToggle(event) {
31795
31773
  if (isFreshLoading) event.stopPropagation();else onAppSwitcherToggle();
31796
31774
  };
31797
- return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
31798
- label: t("neetoMolecules.sidebar.productSwitcher")
31799
- }, /*#__PURE__*/React__default["default"].createElement("button", {
31775
+ return /*#__PURE__*/React__default["default"].createElement("button", {
31800
31776
  className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--app-switcher neeto-molecules-sidebar__link--button neeto-ui-flex neeto-ui-w-full neeto-ui-select-none neeto-ui-items-center neeto-ui-justify-start neeto-ui-shadow-none",
31801
31777
  "data-cy": "app-switcher-button",
31802
31778
  onClick: handleAppSwitcherToggle,
@@ -31807,7 +31783,12 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
31807
31783
  className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center h-6 w-6"
31808
31784
  }, hasHovered && isFreshLoading ? /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null) : /*#__PURE__*/React__default["default"].createElement(neetoIcons.AppSwitcher, {
31809
31785
  size: 24
31810
- }))));
31786
+ })), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31787
+ className: "neeto-molecules-sidebar__link-label",
31788
+ component: "span",
31789
+ style: "body2",
31790
+ weight: "normal"
31791
+ }, t("neetoMolecules.sidebar.productSwitcher")));
31811
31792
  };
31812
31793
 
31813
31794
  var MY_PROFILE_URL = "/auth/profile/edit";
@@ -31825,7 +31806,7 @@ var DEFAULT_HELP_LINK_PROPS = {
31825
31806
  }
31826
31807
  },
31827
31808
  helpCenterProps: {
31828
- label: i18next.t("neetoMolecules.sidebar.helpLinks.helpCenter"),
31809
+ label: i18next.t("neetoMolecules.sidebar.helpLinks.helpArticles"),
31829
31810
  icon: neetoIcons.Book,
31830
31811
  "data-cy": "help-link-help-center-button",
31831
31812
  href: "https://help.".concat(ramda.toLower(globalProps.appName), ".com/"),
@@ -31844,6 +31825,24 @@ var DEFAULT_HELP_LINK_PROPS = {
31844
31825
  }
31845
31826
  };
31846
31827
 
31828
+ var isSubRouteActive = function isSubRouteActive(subRoute, location) {
31829
+ var currentBrowserUrl = new URL(location.pathname + location.search, window.location.origin);
31830
+ var targetUrl = new URL(subRoute, window.location.origin);
31831
+ if (!currentBrowserUrl.pathname.startsWith(targetUrl.pathname)) {
31832
+ return false;
31833
+ }
31834
+ var targetSearchParams = targetUrl.searchParams;
31835
+ var targetSearchKeys = Array.from(targetSearchParams.keys());
31836
+ return ramda.all(function (key) {
31837
+ return currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key);
31838
+ }, targetSearchKeys);
31839
+ };
31840
+ var getSidebarStateLocalStorageKey = function getSidebarStateLocalStorageKey() {
31841
+ var _globalProps$user, _globalProps$user2;
31842
+ var user = ((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.email) || ((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.phoneNumber);
31843
+ return "sidebarState-".concat(user);
31844
+ };
31845
+
31847
31846
  var getProfileInfo = function getProfileInfo(isOwner, profileInfoOverrides) {
31848
31847
  var _globalProps$user, _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$user5;
31849
31848
  return ramda.mergeDeepLeft(profileInfoOverrides, {
@@ -31870,6 +31869,7 @@ var getProfileInfo = function getProfileInfo(isOwner, profileInfoOverrides) {
31870
31869
  label: i18next.t("neetoMolecules.sidebar.logout"),
31871
31870
  onClick: function onClick() {
31872
31871
  utils.resetAuthTokens();
31872
+ localStorage.removeItem(getSidebarStateLocalStorageKey());
31873
31873
  window.location.href = "/logout";
31874
31874
  },
31875
31875
  "data-cy": "profile-logout-button"
@@ -31886,21 +31886,24 @@ var ProfileSection = function ProfileSection(_ref, ref) {
31886
31886
  var _useFetchNeetoApps = reactUtils.useFetchNeetoApps(),
31887
31887
  isFreshLoading = _useFetchNeetoApps.isFreshLoading;
31888
31888
  return /*#__PURE__*/React__default["default"].createElement("button", {
31889
- className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-left",
31889
+ className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none",
31890
31890
  "data-cy": "profile-section",
31891
31891
  ref: ref,
31892
31892
  onMouseEnter: function onMouseEnter() {
31893
31893
  return setHasHovered(true);
31894
31894
  }
31895
- }, /*#__PURE__*/React__default["default"].createElement("span", {
31896
- className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-w-full neeto-ui-flex-shrink-0 neeto-ui-items-center"
31897
31895
  }, isFreshLoading && hasHovered ? /*#__PURE__*/React__default["default"].createElement("span", {
31898
31896
  className: "flex h-11 w-10 items-center justify-center"
31899
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null)) : /*#__PURE__*/React__default["default"].createElement(neetoui.Avatar, {
31900
- className: "neeto-ui-flex-shrink-0",
31901
- size: "large",
31897
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Spinner, null)) : /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement(neetoui.Avatar, {
31898
+ className: "neeto-ui-flex-shrink-0 neeto-molecules-sidebar__profile-avatar",
31899
+ size: "small",
31902
31900
  user: profileInfo
31903
- })));
31901
+ }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31902
+ className: "neeto-molecules-sidebar__link-label",
31903
+ component: "span",
31904
+ style: "body2",
31905
+ weight: "normal"
31906
+ }, pure.truncate(profileInfo.name, 18))));
31904
31907
  };
31905
31908
  var ProfileSection$1 = /*#__PURE__*/React.forwardRef(ProfileSection);
31906
31909
 
@@ -31920,7 +31923,50 @@ function _toConsumableArray(arr) {
31920
31923
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
31921
31924
  }
31922
31925
 
31926
+ function _typeof(obj) {
31927
+ "@babel/helpers - typeof";
31928
+
31929
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
31930
+ return typeof obj;
31931
+ } : function (obj) {
31932
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
31933
+ }, _typeof(obj);
31934
+ }
31935
+
31936
+ function _toPrimitive(input, hint) {
31937
+ if (_typeof(input) !== "object" || input === null) return input;
31938
+ var prim = input[Symbol.toPrimitive];
31939
+ if (prim !== undefined) {
31940
+ var res = prim.call(input, hint || "default");
31941
+ if (_typeof(res) !== "object") return res;
31942
+ throw new TypeError("@@toPrimitive must return a primitive value.");
31943
+ }
31944
+ return (hint === "string" ? String : Number)(input);
31945
+ }
31946
+
31947
+ function _toPropertyKey(arg) {
31948
+ var key = _toPrimitive(arg, "string");
31949
+ return _typeof(key) === "symbol" ? key : String(key);
31950
+ }
31951
+
31952
+ function _defineProperty(obj, key, value) {
31953
+ key = _toPropertyKey(key);
31954
+ if (key in obj) {
31955
+ Object.defineProperty(obj, key, {
31956
+ value: value,
31957
+ enumerable: true,
31958
+ configurable: true,
31959
+ writable: true
31960
+ });
31961
+ } else {
31962
+ obj[key] = value;
31963
+ }
31964
+ return obj;
31965
+ }
31966
+
31923
31967
  var _excluded$2 = ["onClick", "label", "icon"];
31968
+ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
31969
+ function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$2(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
31924
31970
  var LinkSection = function LinkSection(_ref) {
31925
31971
  var links = _ref.links;
31926
31972
  return /*#__PURE__*/React__default["default"].createElement("ul", {
@@ -31931,22 +31977,20 @@ var LinkSection = function LinkSection(_ref) {
31931
31977
  _ref2$icon = _ref2.icon,
31932
31978
  icon = _ref2$icon === void 0 ? null : _ref2$icon,
31933
31979
  otherProps = _objectWithoutProperties(_ref2, _excluded$2);
31934
- var IconSVG = icon;
31935
31980
  return /*#__PURE__*/React__default["default"].createElement("li", {
31936
31981
  className: "neeto-molecules-profile-sublist__item",
31937
31982
  key: idx
31938
- }, /*#__PURE__*/React__default["default"].createElement("button", _extends({
31983
+ }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
31984
+ fullWidth: true,
31985
+ className: "neeto-molecules-profile-sublist__item-btn",
31986
+ iconPosition: "left",
31987
+ iconSize: 18,
31988
+ style: "text"
31989
+ }, _objectSpread$2({
31990
+ icon: icon,
31991
+ label: label,
31939
31992
  onClick: onClick
31940
- }, otherProps, {
31941
- className: "neeto-molecules-profile-sublist__item-btn"
31942
- }), icon && /*#__PURE__*/React__default["default"].createElement("span", {
31943
- className: "neeto-molecules-profile-sublist__item-btn-icon"
31944
- }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31945
- className: "neeto-molecules-profile-sublist__item-btn-label",
31946
- component: "span",
31947
- style: "body2",
31948
- weight: "normal"
31949
- }, label)));
31993
+ }, otherProps))));
31950
31994
  }));
31951
31995
  };
31952
31996
 
@@ -32015,63 +32059,27 @@ var ProfileButton = function ProfileButton(_ref) {
32015
32059
  };
32016
32060
 
32017
32061
  var HelpSection = function HelpSection(_ref, ref) {
32018
- var changesCount = _ref.changesCount;
32062
+ _ref.changesCount;
32063
+ var _useTranslation = reactI18next.useTranslation(),
32064
+ t = _useTranslation.t;
32065
+ var showChangesCount = false;
32019
32066
  return /*#__PURE__*/React__default["default"].createElement("button", {
32020
- className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
32067
+ className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none",
32021
32068
  "data-cy": "help-button",
32022
32069
  ref: ref
32023
32070
  }, /*#__PURE__*/React__default["default"].createElement("span", {
32024
32071
  className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
32025
32072
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
32026
32073
  size: 24
32027
- }), pure.isPresent(changesCount) && /*#__PURE__*/React__default["default"].createElement("span", {
32028
- className: "neeto-molecules-sidebar__notif-count",
32029
- "data-testid": "help-icon-changes-count"
32030
- }, changesCount)));
32074
+ }), showChangesCount ), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32075
+ className: "neeto-molecules-sidebar__link-label",
32076
+ component: "span",
32077
+ style: "body2",
32078
+ weight: "normal"
32079
+ }, t("neetoMolecules.sidebar.helpLinks.helpCenter")));
32031
32080
  };
32032
32081
  var HelpSection$1 = /*#__PURE__*/React.forwardRef(HelpSection);
32033
32082
 
32034
- function _typeof(obj) {
32035
- "@babel/helpers - typeof";
32036
-
32037
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
32038
- return typeof obj;
32039
- } : function (obj) {
32040
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32041
- }, _typeof(obj);
32042
- }
32043
-
32044
- function _toPrimitive(input, hint) {
32045
- if (_typeof(input) !== "object" || input === null) return input;
32046
- var prim = input[Symbol.toPrimitive];
32047
- if (prim !== undefined) {
32048
- var res = prim.call(input, hint || "default");
32049
- if (_typeof(res) !== "object") return res;
32050
- throw new TypeError("@@toPrimitive must return a primitive value.");
32051
- }
32052
- return (hint === "string" ? String : Number)(input);
32053
- }
32054
-
32055
- function _toPropertyKey(arg) {
32056
- var key = _toPrimitive(arg, "string");
32057
- return _typeof(key) === "symbol" ? key : String(key);
32058
- }
32059
-
32060
- function _defineProperty(obj, key, value) {
32061
- key = _toPropertyKey(key);
32062
- if (key in obj) {
32063
- Object.defineProperty(obj, key, {
32064
- value: value,
32065
- enumerable: true,
32066
- configurable: true,
32067
- writable: true
32068
- });
32069
- } else {
32070
- obj[key] = value;
32071
- }
32072
- return obj;
32073
- }
32074
-
32075
32083
  var _excluded$1 = ["label"];
32076
32084
  function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32077
32085
  function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys$1(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
@@ -32081,6 +32089,7 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
32081
32089
  var _KeyboardShortcuts$us = KeyboardShortcuts__default["default"].usePaneState(),
32082
32090
  _KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
32083
32091
  setIsOpen = _KeyboardShortcuts$us2[1];
32092
+ var showChangesCount = false;
32084
32093
  var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
32085
32094
  return _objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
32086
32095
  onClick: function onClick() {
@@ -32093,21 +32102,21 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
32093
32102
  var hide = _ref2.hide;
32094
32103
  return !hide;
32095
32104
  });
32096
- return /*#__PURE__*/React__default["default"].createElement("ul", null, helpLinks.map(function (_ref3, idx) {
32105
+ return /*#__PURE__*/React__default["default"].createElement("ul", {
32106
+ className: "neeto-molecules-help-sublist"
32107
+ }, helpLinks.map(function (_ref3, idx) {
32097
32108
  var label = _ref3.label,
32098
32109
  buttonProps = _objectWithoutProperties(_ref3, _excluded$1);
32099
32110
  return /*#__PURE__*/React__default["default"].createElement("li", {
32100
32111
  className: "neeto-molecules-help-sublist__item",
32101
32112
  key: idx
32102
32113
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
32114
+ fullWidth: true,
32103
32115
  className: "neeto-molecules-help-sublist__item-btn",
32104
32116
  iconPosition: "left",
32105
32117
  iconSize: 18,
32106
32118
  style: "text"
32107
- }, buttonProps), label, pure.isPresent(buttonProps.changesCount) && /*#__PURE__*/React__default["default"].createElement("span", {
32108
- className: "neeto-molecules-help-sublist__item-btn-count",
32109
- "data-testid": "help-section-menu-changes-count"
32110
- }, buttonProps.changesCount)));
32119
+ }, buttonProps), label, showChangesCount ));
32111
32120
  }));
32112
32121
  };
32113
32122
 
@@ -32136,7 +32145,7 @@ var Footer = function Footer(_ref) {
32136
32145
  window.Nv = window.Nv ? Object.assign(window.Nv, Nv) : Nv;
32137
32146
  }, []);
32138
32147
  return /*#__PURE__*/React__default["default"].createElement("div", {
32139
- className: "neeto-molecules-sidebar__footer"
32148
+ className: "neeto-molecules-sidebar__footer neeto-molecules-sidebar__no-shrinkable"
32140
32149
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
32141
32150
  interactive: true,
32142
32151
  className: "neeto-molecules-help-popup-wrapper",
@@ -32145,6 +32154,8 @@ var Footer = function Footer(_ref) {
32145
32154
  helpLinkOverrides: helpLinkOverrides
32146
32155
  }),
32147
32156
  hideOnClick: false,
32157
+ interactiveDebounce: 30,
32158
+ offset: 0,
32148
32159
  position: "right",
32149
32160
  theme: "light"
32150
32161
  }, /*#__PURE__*/React__default["default"].createElement(HelpSection$1, {
@@ -32158,10 +32169,10 @@ var Footer = function Footer(_ref) {
32158
32169
  };
32159
32170
 
32160
32171
  var Header = function Header() {
32161
- var _ProductLogos$logoNam;
32172
+ var _ProductTypefaceLogos;
32162
32173
  var productName = globalProps.appName.substr(5);
32163
32174
  var logoName = "Neeto".concat(pure.capitalize(productName.toLowerCase()));
32164
- var ProductLogo = (_ProductLogos$logoNam = ProductLogos__namespace[logoName]) !== null && _ProductLogos$logoNam !== void 0 ? _ProductLogos$logoNam : ProductLogos.Neeto;
32175
+ var ProductTypefaceLogo = (_ProductTypefaceLogos = ProductTypefaceLogos__namespace[logoName]) !== null && _ProductTypefaceLogos !== void 0 ? _ProductTypefaceLogos : ProductTypefaceLogos.Neeto;
32165
32176
  var _useFetchNeetoApps = reactUtils.useFetchNeetoApps(),
32166
32177
  data = _useFetchNeetoApps.data;
32167
32178
  var homePath = "/";
@@ -32174,22 +32185,26 @@ var Header = function Header() {
32174
32185
  }
32175
32186
  }
32176
32187
  return /*#__PURE__*/React__default["default"].createElement("div", {
32177
- className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
32188
+ className: "neeto-molecules-sidebar__header neeto-molecules-sidebar__no-shrinkable",
32178
32189
  "data-cy": "sidebar-info"
32179
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32180
- className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
32181
32190
  }, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Link, {
32191
+ className: "neeto-molecules-sidebar__logo neeto-ui-w-full",
32182
32192
  to: homePath
32183
- }, /*#__PURE__*/React__default["default"].createElement(ProductLogo, null))));
32193
+ }, /*#__PURE__*/React__default["default"].createElement(ProductTypefaceLogo, null)));
32184
32194
  };
32185
32195
  var Header$1 = /*#__PURE__*/React__default["default"].memo(Header);
32186
32196
 
32187
- var _excluded = ["label", "to", "icon", "description"];
32197
+ var _excluded = ["label", "to", "icon", "items"],
32198
+ _excluded2 = ["label", "to", "count"];
32188
32199
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
32189
32200
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
32190
32201
  var Links = function Links(_ref) {
32191
32202
  var navLinks = _ref.navLinks;
32192
32203
  var location = reactRouterDom.useLocation();
32204
+ var _useState = React.useState(true),
32205
+ _useState2 = _slicedToArray(_useState, 2),
32206
+ isActiveLinkExpanded = _useState2[0],
32207
+ setIsActiveLinkExpanded = _useState2[1];
32193
32208
  var filterByPermissions = ramda.curry(function (_ref2) {
32194
32209
  var permissions = _ref2.permissions;
32195
32210
  if (permissions) {
@@ -32197,33 +32212,79 @@ var Links = function Links(_ref) {
32197
32212
  }
32198
32213
  return true;
32199
32214
  });
32215
+ var handleNavLinkClick = function handleNavLinkClick(event, isActive, items) {
32216
+ if (pure.isNotPresent(items)) return;
32217
+ if (isActive()) {
32218
+ setIsActiveLinkExpanded(ramda.not);
32219
+ event.preventDefault();
32220
+ return;
32221
+ }
32222
+ setIsActiveLinkExpanded(true);
32223
+ };
32200
32224
  return /*#__PURE__*/React__default["default"].createElement("div", {
32201
- className: "neeto-molecules-sidebar__links"
32225
+ className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__no-shrinkable"
32202
32226
  }, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
32203
32227
  var label = _ref3.label,
32204
32228
  to = _ref3.to,
32205
32229
  icon = _ref3.icon,
32206
- description = _ref3.description,
32230
+ items = _ref3.items,
32207
32231
  otherProps = _objectWithoutProperties(_ref3, _excluded);
32208
32232
  var IconSVG = icon;
32209
32233
  var url = new URL(to, window.location.href);
32210
32234
  var isActive = function isActive() {
32211
- return location.pathname.startsWith(url.pathname);
32235
+ return ramda.is(Function, otherProps.isActive) ? otherProps.isActive() : location.pathname.startsWith(url.pathname);
32212
32236
  };
32213
- return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
32214
- description: description,
32215
- label: label,
32237
+ var isMenuExpanded = isActive() && isActiveLinkExpanded;
32238
+ return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
32216
32239
  key: mainIndex
32217
32240
  }, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.NavLink, _extends({
32218
32241
  activeClassName: "active",
32219
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link"
32242
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
32243
+ onClick: function onClick(event) {
32244
+ return handleNavLinkClick(event, isActive, items);
32245
+ }
32220
32246
  }, _objectSpread({
32221
32247
  isActive: isActive,
32222
32248
  to: to
32223
- }, otherProps)), icon && /*#__PURE__*/React__default["default"].createElement("div", {
32224
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-molecules-sidebar__link-icon",
32249
+ }, otherProps)), icon && /*#__PURE__*/React__default["default"].createElement("span", {
32250
+ className: "neeto-molecules-sidebar__link-icon",
32225
32251
  "data-testid": label
32226
- }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))));
32252
+ }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32253
+ className: "neeto-molecules-sidebar__link-label",
32254
+ component: "span",
32255
+ style: "body2",
32256
+ weight: "normal"
32257
+ }, label), items && /*#__PURE__*/React__default["default"].createElement("span", {
32258
+ className: classnames("neeto-molecules-sidebar__link-icon neeto-molecules-sidebar__link-icon--caret", {
32259
+ "neeto-molecules-sidebar__link-icon--rotate": isMenuExpanded
32260
+ })
32261
+ }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Down, {
32262
+ size: 16
32263
+ }))), items && isMenuExpanded && /*#__PURE__*/React__default["default"].createElement("div", {
32264
+ className: "neeto-molecules-sidebar__sublink-wrapper"
32265
+ }, items.filter(filterByPermissions).map(function (_ref4, subIndex) {
32266
+ var subLabel = _ref4.label,
32267
+ subRoute = _ref4.to,
32268
+ count = _ref4.count,
32269
+ otherProps = _objectWithoutProperties(_ref4, _excluded2);
32270
+ return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.NavLink, _extends({
32271
+ activeClassName: "active",
32272
+ className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
32273
+ isActive: function isActive() {
32274
+ return isSubRouteActive(subRoute, location);
32275
+ },
32276
+ key: subIndex,
32277
+ to: subRoute
32278
+ }, otherProps), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32279
+ className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
32280
+ component: "span",
32281
+ style: "body2"
32282
+ }, subLabel), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32283
+ className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
32284
+ component: "span",
32285
+ style: "body2"
32286
+ }, count > 999 ? "999+" : count));
32287
+ })));
32227
32288
  }));
32228
32289
  };
32229
32290
 
@@ -32241,15 +32302,27 @@ var Sidebar = function Sidebar(_ref) {
32241
32302
  _useState2 = _slicedToArray(_useState, 2),
32242
32303
  isAppSwitcherOpen = _useState2[0],
32243
32304
  setIsAppSwitcherOpen = _useState2[1];
32305
+ var _useLocalStorage = reactUtils.useLocalStorage(getSidebarStateLocalStorageKey(), false),
32306
+ _useLocalStorage2 = _slicedToArray(_useLocalStorage, 2),
32307
+ isSidebarCollapsed = _useLocalStorage2[0],
32308
+ setIsSidebarCollapsed = _useLocalStorage2[1];
32244
32309
  var location = reactRouterDom.useLocation();
32310
+ var _useTranslation = reactI18next.useTranslation(),
32311
+ t = _useTranslation.t;
32245
32312
  React.useEffect(function () {
32246
32313
  isAppSwitcherOpen && setIsAppSwitcherOpen(false);
32247
32314
  // eslint-disable-next-line react-hooks/exhaustive-deps
32248
32315
  }, [location]);
32316
+ var productName = initializers.globalProps.appName.substr(5).toLowerCase();
32249
32317
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
32318
+ "data-testid": "sidebar-container",
32319
+ className: classnames("neeto-molecules-sidebar__wrapper", {
32320
+ "neeto-molecules-sidebar__wrapper--collapsed": isSidebarCollapsed
32321
+ })
32322
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32323
+ className: "neeto-molecules-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden",
32250
32324
  "data-cy": "sidebar-wrapper",
32251
- "data-testid": "sidebar",
32252
- className: classnames("neeto-molecules-sidebar neeto-ui-flex neeto-ui-flex-col neeto-ui-flex-shrink-0 neeto-ui-overflow-y-auto neeto-ui-overflow-x-hidden", "neeto-molecules-sidebar--collapsed")
32325
+ "data-testid": "sidebar"
32253
32326
  }, /*#__PURE__*/React__default["default"].createElement(Header$1, null), /*#__PURE__*/React__default["default"].createElement(Links, {
32254
32327
  navLinks: navLinks
32255
32328
  }), /*#__PURE__*/React__default["default"].createElement(Footer, {
@@ -32260,6 +32333,26 @@ var Sidebar = function Sidebar(_ref) {
32260
32333
  onAppSwitcherToggle: function onAppSwitcherToggle() {
32261
32334
  return setIsAppSwitcherOpen(ramda.not);
32262
32335
  }
32336
+ })), isSidebarCollapsed && /*#__PURE__*/React__default["default"].createElement("div", {
32337
+ className: "neeto-molecules-sidebar__toggler-hover-area"
32338
+ }), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
32339
+ className: "neeto-molecules-sidebar__toggler",
32340
+ "data-testid": "sidebar-toggleButton",
32341
+ style: "text",
32342
+ icon: function icon() {
32343
+ return /*#__PURE__*/React__default["default"].createElement(Chevron, {
32344
+ style: {
32345
+ color: "rgb(var(--neeto-".concat(productName, "-primary))")
32346
+ }
32347
+ });
32348
+ },
32349
+ tooltipProps: {
32350
+ content: isSidebarCollapsed ? t("neetoMolecules.sidebar.showMenu") : t("neetoMolecules.sidebar.hideMenu"),
32351
+ position: "bottom"
32352
+ },
32353
+ onClick: function onClick() {
32354
+ setIsSidebarCollapsed(!isSidebarCollapsed);
32355
+ }
32263
32356
  })), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(AppSwitcher, {
32264
32357
  isOpen: isAppSwitcherOpen,
32265
32358
  onClose: function onClose() {