@bigbinary/neeto-molecules 1.0.70 → 1.0.72

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/Sidebar.js CHANGED
@@ -1,10 +1,11 @@
1
1
  import React, { useRef, useCallback, useEffect, Children, isValidElement, cloneElement, forwardRef, useState } from 'react';
2
2
  import { toLower, mergeDeepLeft, curry, is, includes, __, not } from 'ramda';
3
3
  import { Link, useLocation, NavLink } from 'react-router-dom';
4
+ import { useFetchNeetoApps } from '@bigbinary/neeto-commons-frontend/react-utils';
4
5
  import { NeetoIcon, Close, Search, AppSwitcher as AppSwitcher$1, ChatEmpty, Book, Gift, Keyboard, User, Settings, LeftArrow, Help } from '@bigbinary/neeto-icons';
5
- import { Typography, Button, Input, Tooltip, Avatar } from '@bigbinary/neetoui';
6
+ import { Typography, Button, Input, Tooltip, Spinner, Avatar } from '@bigbinary/neetoui';
6
7
  import { useTranslation } from 'react-i18next';
7
- import { capitalize, isPresent, truncate, _findBy } from '@bigbinary/neeto-commons-frontend/pure';
8
+ import { capitalize, truncate, isPresent, findBy } from '@bigbinary/neeto-commons-frontend/pure';
8
9
  import * as AppIcons from '@bigbinary/neeto-icons/app-icons';
9
10
  import { t as t$1 } from 'i18next';
10
11
  import { resetAuthTokens } from '@bigbinary/neeto-commons-frontend/utils';
@@ -31583,7 +31584,6 @@ var AppLink = function AppLink(_ref) {
31583
31584
  var AppLink$1 = /*#__PURE__*/React.memo(AppLink);
31584
31585
 
31585
31586
  var Body = function Body(_ref) {
31586
- var _globalProps$neetoApp;
31587
31587
  var onClose = _ref.onClose;
31588
31588
  var _useTranslation = useTranslation(),
31589
31589
  t = _useTranslation.t;
@@ -31591,9 +31591,12 @@ var Body = function Body(_ref) {
31591
31591
  _useState2 = _slicedToArray(_useState, 2),
31592
31592
  searchTerm = _useState2[0],
31593
31593
  setSearchTerm = _useState2[1];
31594
- var filteredApps = (_globalProps$neetoApp = globalProps.neetoApps) === null || _globalProps$neetoApp === void 0 ? void 0 : _globalProps$neetoApp.filter(function (_ref2) {
31594
+ var _useFetchNeetoApps = useFetchNeetoApps(),
31595
+ data = _useFetchNeetoApps.data;
31596
+ var substring = searchTerm.replace(/ /g, "").toLowerCase();
31597
+ var filteredApps = data === null || data === void 0 ? void 0 : data.neetoApps.filter(function (_ref2) {
31595
31598
  var name = _ref2.name;
31596
- return name === null || name === void 0 ? void 0 : name.toLowerCase().includes(searchTerm.replace(/ /g, "").toLowerCase());
31599
+ return name.toLowerCase().includes(substring);
31597
31600
  });
31598
31601
  var handleSearch = function handleSearch(e) {
31599
31602
  return setSearchTerm(e.target.value);
@@ -31714,9 +31717,6 @@ var AppSwitcher = function AppSwitcher(_ref) {
31714
31717
  })))));
31715
31718
  };
31716
31719
 
31717
- 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}";
31718
- n(css,{});
31719
-
31720
31720
  var FeaturedTooltip = function FeaturedTooltip(_ref) {
31721
31721
  var label = _ref.label,
31722
31722
  description = _ref.description;
@@ -31752,19 +31752,34 @@ var NavIconWrapper = function NavIconWrapper(_ref) {
31752
31752
  }, children);
31753
31753
  };
31754
31754
 
31755
+ 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}";
31756
+ n(css,{});
31757
+
31755
31758
  var AppSwitcherButton = function AppSwitcherButton(_ref) {
31756
31759
  var onAppSwitcherToggle = _ref.onAppSwitcherToggle;
31757
31760
  var _useTranslation = useTranslation(),
31758
31761
  t = _useTranslation.t;
31762
+ var _useState = useState(false),
31763
+ _useState2 = _slicedToArray(_useState, 2),
31764
+ hasHovered = _useState2[0],
31765
+ setHasHovered = _useState2[1];
31766
+ var _useFetchNeetoApps = useFetchNeetoApps(),
31767
+ isFreshLoading = _useFetchNeetoApps.isFreshLoading;
31768
+ var handleAppSwitcherToggle = function handleAppSwitcherToggle(event) {
31769
+ if (isFreshLoading) event.stopPropagation();else onAppSwitcherToggle();
31770
+ };
31759
31771
  return /*#__PURE__*/React.createElement(NavIconWrapper, {
31760
31772
  label: t("neetoMolecules.sidebar.productSwitcher")
31761
31773
  }, /*#__PURE__*/React.createElement("button", {
31762
31774
  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",
31763
31775
  "data-cy": "app-switcher-button",
31764
- onClick: onAppSwitcherToggle
31776
+ onClick: handleAppSwitcherToggle,
31777
+ onMouseEnter: function onMouseEnter() {
31778
+ return setHasHovered(true);
31779
+ }
31765
31780
  }, /*#__PURE__*/React.createElement("span", {
31766
- className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
31767
- }, /*#__PURE__*/React.createElement(AppSwitcher$1, {
31781
+ className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center h-6 w-6"
31782
+ }, hasHovered && isFreshLoading ? /*#__PURE__*/React.createElement(Spinner, null) : /*#__PURE__*/React.createElement(AppSwitcher$1, {
31768
31783
  size: 24
31769
31784
  }))));
31770
31785
  };
@@ -31803,7 +31818,7 @@ var DEFAULT_HELP_LINK_PROPS = {
31803
31818
  }
31804
31819
  };
31805
31820
 
31806
- var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
31821
+ var getProfileInfo = function getProfileInfo(isOwner, profileInfoOverrides) {
31807
31822
  var _globalProps$user, _globalProps$user2, _globalProps$user3, _globalProps$user4, _globalProps$user5;
31808
31823
  return mergeDeepLeft(profileInfoOverrides, {
31809
31824
  name: "".concat((_globalProps$user = globalProps.user) === null || _globalProps$user === void 0 ? void 0 : _globalProps$user.firstName, " ").concat((_globalProps$user2 = globalProps.user) === null || _globalProps$user2 === void 0 ? void 0 : _globalProps$user2.lastName),
@@ -31816,7 +31831,7 @@ var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
31816
31831
  return window.open(MY_PROFILE_URL, "_blank");
31817
31832
  },
31818
31833
  "data-cy": "my-profile-button"
31819
- }, globalProps.isOwner && {
31834
+ }, isOwner && {
31820
31835
  label: t$1("neetoMolecules.sidebar.myOrganization"),
31821
31836
  icon: Settings,
31822
31837
  onClick: function onClick() {
@@ -31836,121 +31851,32 @@ var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
31836
31851
  });
31837
31852
  };
31838
31853
 
31839
- var HelpSection = /*#__PURE__*/forwardRef(function (_ref, ref) {
31840
- var changesCount = _ref.changesCount;
31841
- return /*#__PURE__*/React.createElement("button", {
31842
- className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
31843
- "data-cy": "help-button",
31844
- ref: ref
31845
- }, /*#__PURE__*/React.createElement("span", {
31846
- className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
31847
- }, /*#__PURE__*/React.createElement(Help, {
31848
- size: 24
31849
- }), isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
31850
- className: "neeto-molecules-sidebar__notif-count",
31851
- "data-testid": "help-icon-changes-count"
31852
- }, changesCount)));
31853
- });
31854
- HelpSection.displayName = "HelpSection";
31855
- HelpSection.propTypes = {
31856
- changesCount: propTypes.exports.number
31857
- };
31858
-
31859
- function _typeof(obj) {
31860
- "@babel/helpers - typeof";
31861
-
31862
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
31863
- return typeof obj;
31864
- } : function (obj) {
31865
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
31866
- }, _typeof(obj);
31867
- }
31868
-
31869
- function _toPrimitive(input, hint) {
31870
- if (_typeof(input) !== "object" || input === null) return input;
31871
- var prim = input[Symbol.toPrimitive];
31872
- if (prim !== undefined) {
31873
- var res = prim.call(input, hint || "default");
31874
- if (_typeof(res) !== "object") return res;
31875
- throw new TypeError("@@toPrimitive must return a primitive value.");
31876
- }
31877
- return (hint === "string" ? String : Number)(input);
31878
- }
31879
-
31880
- function _toPropertyKey(arg) {
31881
- var key = _toPrimitive(arg, "string");
31882
- return _typeof(key) === "symbol" ? key : String(key);
31883
- }
31884
-
31885
- function _defineProperty(obj, key, value) {
31886
- key = _toPropertyKey(key);
31887
- if (key in obj) {
31888
- Object.defineProperty(obj, key, {
31889
- value: value,
31890
- enumerable: true,
31891
- configurable: true,
31892
- writable: true
31893
- });
31894
- } else {
31895
- obj[key] = value;
31896
- }
31897
- return obj;
31898
- }
31899
-
31900
- var _excluded$2 = ["label"];
31901
- 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; }
31902
- 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; }
31903
- var HelpSectionMenu = function HelpSectionMenu(_ref) {
31904
- var helpLinkOverrides = _ref.helpLinkOverrides,
31905
- changesCount = _ref.changesCount;
31906
- var _KeyboardShortcuts$us = KeyboardShortcuts.usePaneState(),
31907
- _KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
31908
- setIsOpen = _KeyboardShortcuts$us2[1];
31909
- var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
31910
- return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
31911
- onClick: function onClick() {
31912
- return setIsOpen(true);
31913
- }
31914
- }), key === "changelogProps" && changesCount && {
31915
- changesCount: changesCount
31916
- });
31917
- }).filter(function (_ref2) {
31918
- var hide = _ref2.hide;
31919
- return !hide;
31920
- });
31921
- return /*#__PURE__*/React.createElement("ul", null, helpLinks.map(function (_ref3, idx) {
31922
- var label = _ref3.label,
31923
- buttonProps = _objectWithoutProperties(_ref3, _excluded$2);
31924
- return /*#__PURE__*/React.createElement("li", {
31925
- className: "neeto-molecules-help-sublist__item",
31926
- key: idx
31927
- }, /*#__PURE__*/React.createElement(Button, _extends({
31928
- className: "neeto-molecules-help-sublist__item-btn",
31929
- iconPosition: "left",
31930
- iconSize: 18,
31931
- style: "text"
31932
- }, buttonProps), label, isPresent(buttonProps.changesCount) && /*#__PURE__*/React.createElement("span", {
31933
- className: "neeto-molecules-help-sublist__item-btn-count",
31934
- "data-testid": "help-section-menu-changes-count"
31935
- }, buttonProps.changesCount)));
31936
- }));
31937
- };
31938
-
31939
- var ProfileSection = /*#__PURE__*/forwardRef(function (_ref, ref) {
31854
+ var ProfileSection = function ProfileSection(_ref, ref) {
31940
31855
  var profileInfo = _ref.profileInfo;
31856
+ var _useState = useState(false),
31857
+ _useState2 = _slicedToArray(_useState, 2),
31858
+ hasHovered = _useState2[0],
31859
+ setHasHovered = _useState2[1];
31860
+ var _useFetchNeetoApps = useFetchNeetoApps(),
31861
+ isFreshLoading = _useFetchNeetoApps.isFreshLoading;
31941
31862
  return /*#__PURE__*/React.createElement("button", {
31942
31863
  className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-left",
31943
31864
  "data-cy": "profile-section",
31944
- ref: ref
31865
+ ref: ref,
31866
+ onMouseEnter: function onMouseEnter() {
31867
+ return setHasHovered(true);
31868
+ }
31945
31869
  }, /*#__PURE__*/React.createElement("span", {
31946
31870
  className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-w-full neeto-ui-flex-shrink-0 neeto-ui-items-center"
31947
- }, /*#__PURE__*/React.createElement(Avatar, {
31871
+ }, isFreshLoading && hasHovered ? /*#__PURE__*/React.createElement("span", {
31872
+ className: "flex h-11 w-10 items-center justify-center"
31873
+ }, /*#__PURE__*/React.createElement(Spinner, null)) : /*#__PURE__*/React.createElement(Avatar, {
31948
31874
  className: "neeto-ui-flex-shrink-0",
31949
31875
  size: "large",
31950
31876
  user: profileInfo
31951
31877
  })));
31952
- });
31953
- ProfileSection.displayName = "ProfileSection";
31878
+ };
31879
+ var ProfileSection$1 = /*#__PURE__*/forwardRef(ProfileSection);
31954
31880
 
31955
31881
  function _arrayWithoutHoles(arr) {
31956
31882
  if (Array.isArray(arr)) return _arrayLikeToArray(arr);
@@ -31968,7 +31894,7 @@ function _toConsumableArray(arr) {
31968
31894
  return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
31969
31895
  }
31970
31896
 
31971
- var _excluded$1 = ["onClick", "label", "icon"];
31897
+ var _excluded$2 = ["onClick", "label", "icon"];
31972
31898
  var LinkSection = function LinkSection(_ref) {
31973
31899
  var links = _ref.links;
31974
31900
  return /*#__PURE__*/React.createElement("ul", {
@@ -31978,7 +31904,7 @@ var LinkSection = function LinkSection(_ref) {
31978
31904
  label = _ref2.label,
31979
31905
  _ref2$icon = _ref2.icon,
31980
31906
  icon = _ref2$icon === void 0 ? null : _ref2$icon,
31981
- otherProps = _objectWithoutProperties(_ref2, _excluded$1);
31907
+ otherProps = _objectWithoutProperties(_ref2, _excluded$2);
31982
31908
  var IconSVG = icon;
31983
31909
  return /*#__PURE__*/React.createElement("li", {
31984
31910
  className: "neeto-molecules-profile-sublist__item",
@@ -32037,6 +31963,127 @@ var ProfileMenu = function ProfileMenu(_ref) {
32037
31963
  }));
32038
31964
  };
32039
31965
 
31966
+ var ProfileButton = function ProfileButton(_ref) {
31967
+ var extraTopLinks = _ref.extraTopLinks,
31968
+ profileInfoOverrides = _ref.profileInfoOverrides;
31969
+ var _useFetchNeetoApps = useFetchNeetoApps(),
31970
+ data = _useFetchNeetoApps.data,
31971
+ isFreshLoading = _useFetchNeetoApps.isFreshLoading;
31972
+ var profileInfo = getProfileInfo(data === null || data === void 0 ? void 0 : data.isOwner, profileInfoOverrides);
31973
+ var profileInfoComponent = /*#__PURE__*/React.createElement(ProfileSection$1, {
31974
+ profileInfo: profileInfo
31975
+ });
31976
+ if (isFreshLoading) return profileInfoComponent;
31977
+ return /*#__PURE__*/React.createElement(Tooltip, {
31978
+ interactive: true,
31979
+ className: "neeto-molecules-profile-popup-wrapper",
31980
+ content: /*#__PURE__*/React.createElement(ProfileMenu, {
31981
+ extraTopLinks: extraTopLinks,
31982
+ profileInfo: profileInfo
31983
+ }),
31984
+ hideOnClick: false,
31985
+ position: "right",
31986
+ theme: "light"
31987
+ }, profileInfoComponent);
31988
+ };
31989
+
31990
+ var HelpSection = function HelpSection(_ref, ref) {
31991
+ var changesCount = _ref.changesCount;
31992
+ return /*#__PURE__*/React.createElement("button", {
31993
+ className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
31994
+ "data-cy": "help-button",
31995
+ ref: ref
31996
+ }, /*#__PURE__*/React.createElement("span", {
31997
+ className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
31998
+ }, /*#__PURE__*/React.createElement(Help, {
31999
+ size: 24
32000
+ }), isPresent(changesCount) && /*#__PURE__*/React.createElement("span", {
32001
+ className: "neeto-molecules-sidebar__notif-count",
32002
+ "data-testid": "help-icon-changes-count"
32003
+ }, changesCount)));
32004
+ };
32005
+ var HelpSection$1 = /*#__PURE__*/forwardRef(HelpSection);
32006
+
32007
+ function _typeof(obj) {
32008
+ "@babel/helpers - typeof";
32009
+
32010
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
32011
+ return typeof obj;
32012
+ } : function (obj) {
32013
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
32014
+ }, _typeof(obj);
32015
+ }
32016
+
32017
+ function _toPrimitive(input, hint) {
32018
+ if (_typeof(input) !== "object" || input === null) return input;
32019
+ var prim = input[Symbol.toPrimitive];
32020
+ if (prim !== undefined) {
32021
+ var res = prim.call(input, hint || "default");
32022
+ if (_typeof(res) !== "object") return res;
32023
+ throw new TypeError("@@toPrimitive must return a primitive value.");
32024
+ }
32025
+ return (hint === "string" ? String : Number)(input);
32026
+ }
32027
+
32028
+ function _toPropertyKey(arg) {
32029
+ var key = _toPrimitive(arg, "string");
32030
+ return _typeof(key) === "symbol" ? key : String(key);
32031
+ }
32032
+
32033
+ function _defineProperty(obj, key, value) {
32034
+ key = _toPropertyKey(key);
32035
+ if (key in obj) {
32036
+ Object.defineProperty(obj, key, {
32037
+ value: value,
32038
+ enumerable: true,
32039
+ configurable: true,
32040
+ writable: true
32041
+ });
32042
+ } else {
32043
+ obj[key] = value;
32044
+ }
32045
+ return obj;
32046
+ }
32047
+
32048
+ var _excluded$1 = ["label"];
32049
+ 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; }
32050
+ 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; }
32051
+ var HelpSectionMenu = function HelpSectionMenu(_ref) {
32052
+ var helpLinkOverrides = _ref.helpLinkOverrides,
32053
+ changesCount = _ref.changesCount;
32054
+ var _KeyboardShortcuts$us = KeyboardShortcuts.usePaneState(),
32055
+ _KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
32056
+ setIsOpen = _KeyboardShortcuts$us2[1];
32057
+ var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
32058
+ return _objectSpread$1(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
32059
+ onClick: function onClick() {
32060
+ return setIsOpen(true);
32061
+ }
32062
+ }), key === "changelogProps" && changesCount && {
32063
+ changesCount: changesCount
32064
+ });
32065
+ }).filter(function (_ref2) {
32066
+ var hide = _ref2.hide;
32067
+ return !hide;
32068
+ });
32069
+ return /*#__PURE__*/React.createElement("ul", null, helpLinks.map(function (_ref3, idx) {
32070
+ var label = _ref3.label,
32071
+ buttonProps = _objectWithoutProperties(_ref3, _excluded$1);
32072
+ return /*#__PURE__*/React.createElement("li", {
32073
+ className: "neeto-molecules-help-sublist__item",
32074
+ key: idx
32075
+ }, /*#__PURE__*/React.createElement(Button, _extends({
32076
+ className: "neeto-molecules-help-sublist__item-btn",
32077
+ iconPosition: "left",
32078
+ iconSize: 18,
32079
+ style: "text"
32080
+ }, buttonProps), label, isPresent(buttonProps.changesCount) && /*#__PURE__*/React.createElement("span", {
32081
+ className: "neeto-molecules-help-sublist__item-btn-count",
32082
+ "data-testid": "help-section-menu-changes-count"
32083
+ }, buttonProps.changesCount)));
32084
+ }));
32085
+ };
32086
+
32040
32087
  var Footer = function Footer(_ref) {
32041
32088
  var extraTopLinks = _ref.extraTopLinks,
32042
32089
  helpLinkOverrides = _ref.helpLinkOverrides,
@@ -32044,7 +32091,6 @@ var Footer = function Footer(_ref) {
32044
32091
  _ref$showAppSwitcher = _ref.showAppSwitcher,
32045
32092
  showAppSwitcher = _ref$showAppSwitcher === void 0 ? false : _ref$showAppSwitcher,
32046
32093
  onAppSwitcherToggle = _ref.onAppSwitcherToggle;
32047
- var profileInfo = getProfileInfo(profileInfoOverrides);
32048
32094
  var _useState = useState(null),
32049
32095
  _useState2 = _slicedToArray(_useState, 2),
32050
32096
  changesCount = _useState2[0],
@@ -32074,44 +32120,45 @@ var Footer = function Footer(_ref) {
32074
32120
  hideOnClick: false,
32075
32121
  position: "right",
32076
32122
  theme: "light"
32077
- }, /*#__PURE__*/React.createElement(HelpSection, {
32123
+ }, /*#__PURE__*/React.createElement(HelpSection$1, {
32078
32124
  changesCount: changesCount
32079
32125
  })), showAppSwitcher && /*#__PURE__*/React.createElement(AppSwitcherButton, {
32080
32126
  onAppSwitcherToggle: onAppSwitcherToggle
32081
- }), /*#__PURE__*/React.createElement(Tooltip, {
32082
- interactive: true,
32083
- className: "neeto-molecules-profile-popup-wrapper",
32084
- hideOnClick: false,
32085
- position: "right",
32086
- theme: "light",
32087
- content: /*#__PURE__*/React.createElement(ProfileMenu, {
32088
- extraTopLinks: extraTopLinks,
32089
- profileInfo: profileInfo
32090
- })
32091
- }, /*#__PURE__*/React.createElement(ProfileSection, {
32092
- profileInfo: profileInfo
32093
- })));
32127
+ }), /*#__PURE__*/React.createElement(ProfileButton, {
32128
+ extraTopLinks: extraTopLinks,
32129
+ profileInfoOverrides: profileInfoOverrides
32130
+ }));
32094
32131
  };
32095
32132
 
32096
32133
  var Header = function Header() {
32097
- var _findBy$url, _findBy2;
32098
- var logoName = "Neeto".concat(capitalize(globalProps.appName.substr(5).toLowerCase()));
32099
- var ProductLogo = ProductLogos[logoName];
32100
- var homeUrl = new URL((_findBy$url = (_findBy2 = _findBy({
32101
- name: globalProps.appName.split("neeto")[1]
32102
- }, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url) !== null && _findBy$url !== void 0 ? _findBy$url : window.location.origin);
32134
+ var _ProductLogos$logoNam;
32135
+ var productName = globalProps.appName.substr(5);
32136
+ var logoName = "Neeto".concat(capitalize(productName.toLowerCase()));
32137
+ var ProductLogo = (_ProductLogos$logoNam = ProductLogos[logoName]) !== null && _ProductLogos$logoNam !== void 0 ? _ProductLogos$logoNam : Neeto;
32138
+ var _useFetchNeetoApps = useFetchNeetoApps(),
32139
+ data = _useFetchNeetoApps.data;
32140
+ var homePath = "/";
32141
+ if (data !== null && data !== void 0 && data.neetoApps) {
32142
+ var _findBy = findBy({
32143
+ name: productName
32144
+ }, data.neetoApps),
32145
+ url = _findBy.url;
32146
+ homePath = new URL(url).pathname;
32147
+ }
32103
32148
  return /*#__PURE__*/React.createElement("div", {
32104
32149
  className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
32105
32150
  "data-cy": "sidebar-info"
32106
32151
  }, /*#__PURE__*/React.createElement("div", {
32107
32152
  className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
32108
32153
  }, /*#__PURE__*/React.createElement(Link, {
32109
- to: homeUrl.pathname
32110
- }, ProductLogo ? /*#__PURE__*/React.createElement(ProductLogo, null) : /*#__PURE__*/React.createElement(Neeto, null))));
32154
+ to: homePath
32155
+ }, /*#__PURE__*/React.createElement(ProductLogo, null))));
32111
32156
  };
32112
32157
  var Header$1 = /*#__PURE__*/React.memo(Header);
32113
32158
 
32114
32159
  var _excluded = ["label", "to", "icon", "description"];
32160
+ 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; }
32161
+ 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; }
32115
32162
  var Links = function Links(_ref) {
32116
32163
  var navLinks = _ref.navLinks;
32117
32164
  var location = useLocation();
@@ -32137,14 +32184,15 @@ var Links = function Links(_ref) {
32137
32184
  };
32138
32185
  return /*#__PURE__*/React.createElement(NavIconWrapper, {
32139
32186
  description: description,
32140
- key: mainIndex,
32141
- label: label
32187
+ label: label,
32188
+ key: mainIndex
32142
32189
  }, /*#__PURE__*/React.createElement(NavLink, _extends({
32143
32190
  activeClassName: "active",
32144
- className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
32191
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link"
32192
+ }, _objectSpread({
32145
32193
  isActive: isActive,
32146
32194
  to: to
32147
- }, otherProps), icon && /*#__PURE__*/React.createElement("div", {
32195
+ }, otherProps)), icon && /*#__PURE__*/React.createElement("div", {
32148
32196
  className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-molecules-sidebar__link-icon",
32149
32197
  "data-testid": label
32150
32198
  }, /*#__PURE__*/React.createElement(IconSVG, null))));