@bigbinary/neeto-molecules 1.0.69-beta → 1.0.70

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Rename.js","sources":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/classnames/index.js","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../src/components/Rename/utils.js","../src/components/Rename/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","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}}export{n as default};\n","export const mergeRefs =\n (...refs) =>\n node =>\n refs.forEach(ref =>\n typeof ref === \"function\" ? ref(node) : (ref.current = node)\n );\n","import React, { useState, useRef, Fragment } from \"react\";\n\nimport classnames from \"classnames\";\nimport { isNotEmpty, noop } from \"neetocommons/pure\";\nimport {\n useOnClickOutside,\n useStateWithDependency,\n useHotKeys,\n} from \"neetocommons/react-utils\";\nimport { MenuHorizontal, Check, Close } from \"neetoicons\";\nimport { Input, Dropdown, Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport \"./rename.scss\";\nimport { mergeRefs } from \"./utils\";\n\nconst { Menu, MenuItem } = Dropdown;\n\nconst Rename = ({\n value,\n onRename = noop,\n isOpen = false,\n isLoading = false,\n placeholder = \"\",\n hideMenu = false,\n disabled = false,\n dropdownItems = [],\n breadcrumbs = [],\n textProps = {},\n inputProps = {},\n className = \"\",\n}) => {\n const { t } = useTranslation();\n const [name, setName] = useStateWithDependency(value ?? \"\");\n const [editMode, setEditMode] = useState(isOpen);\n\n const renameRef = useRef(null);\n\n useOnClickOutside(renameRef, () => editMode && handleClose());\n\n const handleRename = name => {\n onRename(name);\n setEditMode(false);\n };\n\n const handleClose = () => {\n setName(value);\n setEditMode(false);\n };\n\n const closeRef = useHotKeys(\"escape\", handleClose, {\n mode: \"scoped\",\n enabled: editMode,\n });\n\n const submitRef = useHotKeys(\n [\"command+return\", \"return\"],\n () => isNotEmpty(name) && handleRename(name),\n { mode: \"scoped\", enabled: editMode }\n );\n\n return (\n <div\n className={classnames(\"flex flex-row items-center\", className)}\n ref={renameRef}\n >\n {breadcrumbs.map(({ text, link }) => (\n <Fragment key={text}>\n <Link\n className=\"neeto-molecules-rename__text neeto-molecules-rename__breadcrumb-text\"\n data-testid=\"neeto-molecules-value-display\"\n to={link}\n {...textProps}\n >\n {text}\n </Link>\n <Typography\n className=\"neeto-molecules-rename__breadcrumb-text neeto-molecules-breadcrumb__divider\"\n component=\"span\"\n >\n /\n </Typography>\n </Fragment>\n ))}\n {editMode ? (\n <div>\n <Input\n autoFocus\n className=\"neeto-molecules-rename__input\"\n data-cy=\"form-rename-text-field\"\n data-testid=\"neeto-molecules-name-input\"\n placeholder={placeholder}\n ref={mergeRefs(closeRef, submitRef)}\n style={{ width: `${Math.min(Math.max(name.length, 2), 50)}ch` }}\n value={name}\n suffix={\n <div className=\"flex items-center justify-end\">\n <Button\n className=\"neeto-ui-rounded-none\"\n data-cy=\"form-rename-submit-button\"\n data-testid=\"neeto-molecules-rename-button\"\n disabled={isEmpty(name) || isLoading}\n icon={Check}\n loading={isLoading}\n style=\"text\"\n onClick={() => handleRename(name)}\n />\n <Button\n className=\"neeto-ui-rounded-none\"\n data-cy=\"form-rename-close-button\"\n data-testid=\"neeto-molecules-cancel-button\"\n disabled={isLoading}\n icon={Close}\n style=\"text\"\n onClick={handleClose}\n />\n </div>\n }\n onChange={event => setName(event.target.value)}\n {...inputProps}\n />\n </div>\n ) : (\n <>\n <Typography\n component=\"p\"\n data-cy=\"form-title\"\n data-testid=\"neeto-molecules-value-display\"\n style=\"body2\"\n className={classnames(\n \"neeto-molecules-rename__text neeto-molecules-rename__display-text w-full truncate\",\n {\n \"cursor-pointer\": !disabled,\n \"pointer-events-none cursor-text\": disabled,\n }\n )}\n onClick={() => !disabled && setEditMode(!editMode)}\n {...textProps}\n >\n {name}\n </Typography>\n {!hideMenu && (isNotEmpty(dropdownItems) || !disabled) && (\n <Dropdown\n buttonProps={{ \"data-testid\": \"neeto-molecules-menu-button\" }}\n buttonStyle=\"text\"\n icon={MenuHorizontal}\n position=\"bottom-start\"\n >\n <Menu>\n {!disabled && (\n <MenuItem.Button\n data-cy=\"form-rename-button\"\n onClick={() => setEditMode(true)}\n >\n {t(\"neetoMolecules.common.actions.rename\")}\n </MenuItem.Button>\n )}\n {dropdownItems.map(item => (\n <MenuItem.Button\n data-cy=\"form-clone-button\"\n key={item.label}\n {...item}\n >\n {item.label}\n </MenuItem.Button>\n ))}\n </Menu>\n </Dropdown>\n )}\n </>\n )}\n </div>\n );\n};\n\nRename.propTypes = {\n /**\n * To provide additional classes to the component.\n */\n className: PropTypes.string,\n /**\n * To specify the text to be displayed in the component.\n */\n value: PropTypes.string,\n /**\n * To specify the function to be triggered when renamed.\n */\n onRename: PropTypes.func,\n /**\n * To specify whether edit mode is enabled or not.\n */\n isOpen: PropTypes.bool,\n /**\n * To specify whether the edit buttons are in loading state or not.\n */\n isLoading: PropTypes.bool,\n /**\n * To specify the placeholder for the input component in edit mode.\n */\n placeholder: PropTypes.string,\n /**\n * To specify whether the dropdown menu should be hidden or not.\n */\n hideMenu: PropTypes.bool,\n /**\n * To specify whether the rename option in dropdown should be enabled. If it is the only option in dropdown, the menu will be hidden.\n */\n disabled: PropTypes.bool,\n /**\n * To specify additional items for the dropdown menu.\n */\n dropdownItems: PropTypes.array,\n /**\n * To specify the breadcrumbs if used in the title of `Header` component.\n */\n breadcrumbs: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n link: PropTypes.string,\n })\n ),\n /**\n * To override the properties of the Typography component that displays the `value`.\n */\n textProps: PropTypes.object,\n /**\n * To override the properties of the Input component in edit mode.\n */\n inputProps: PropTypes.object,\n};\n\nexport default Rename;\n"],"names":["arrayLikeToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","mergeRefs","_len","arguments","length","refs","Array","_key","node","forEach","ref","current","Menu","Dropdown","MenuItem","Rename","_ref","value","_ref$onRename","onRename","noop","_ref$isOpen","isOpen","_ref$isLoading","isLoading","_ref$placeholder","placeholder","_ref$hideMenu","hideMenu","_ref$disabled","disabled","_ref$dropdownItems","dropdownItems","_ref$breadcrumbs","breadcrumbs","_ref$textProps","textProps","_ref$inputProps","inputProps","_ref$className","className","_useTranslation","useTranslation","t","_useStateWithDependen","useStateWithDependency","_useStateWithDependen2","_slicedToArray","name","setName","_useState","useState","_useState2","editMode","setEditMode","renameRef","useRef","useOnClickOutside","handleClose","handleRename","closeRef","useHotKeys","mode","enabled","submitRef","isNotEmpty","React","createElement","classnames","map","_ref2","text","link","Fragment","key","Link","_extends","to","Typography","component","Input","autoFocus","style","width","concat","Math","min","max","suffix","Button","isEmpty","icon","Check","loading","onClick","Close","onChange","event","target","buttonProps","buttonStyle","MenuHorizontal","position","item","label"],"mappings":";;;;;;;;;AAAe,SAAS,QAAQ,GAAG;AACnC,EAAE,QAAQ,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,GAAG,UAAU,MAAM,EAAE;AACtE,IAAI,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC/C,MAAM,IAAI,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAChC,MAAM,KAAK,IAAI,GAAG,IAAI,MAAM,EAAE;AAC9B,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE;AAC/D,UAAU,MAAM,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AACpC,SAAS;AACT,OAAO;AACP,KAAK;AACL,IAAI,OAAO,MAAM,CAAC;AAClB,GAAG,CAAC;AACJ,EAAE,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AACzC;;ACbe,SAAS,eAAe,CAAC,GAAG,EAAE;AAC7C,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,CAAC;AACrC;;ACFe,SAAS,qBAAqB,CAAC,GAAG,EAAE,CAAC,EAAE;AACtD,EAAE,IAAI,EAAE,GAAG,IAAI,IAAI,GAAG,GAAG,IAAI,GAAG,WAAW,IAAI,OAAO,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,CAAC;AAC1G,EAAE,IAAI,IAAI,IAAI,EAAE,EAAE;AAClB,IAAI,IAAI,EAAE;AACV,MAAM,EAAE;AACR,MAAM,EA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":["../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","../node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","../node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","../node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","../node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","../node_modules/@babel/runtime/helpers/esm/slicedToArray.js","../node_modules/classnames/index.js","../node_modules/rollup-plugin-styles/dist/runtime/inject-css.js","../src/components/Rename/utils.js","../src/components/Rename/index.jsx"],"sourcesContent":["export default function _extends() {\n _extends = Object.assign ? Object.assign.bind() : function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n return target;\n };\n return _extends.apply(this, arguments);\n}","export default function _arrayWithHoles(arr) {\n if (Array.isArray(arr)) return arr;\n}","export default function _iterableToArrayLimit(arr, i) {\n var _i = null == arr ? null : \"undefined\" != typeof Symbol && arr[Symbol.iterator] || arr[\"@@iterator\"];\n if (null != _i) {\n var _s,\n _e,\n _x,\n _r,\n _arr = [],\n _n = !0,\n _d = !1;\n try {\n if (_x = (_i = _i.call(arr)).next, 0 === i) {\n if (Object(_i) !== _i) return;\n _n = !1;\n } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0);\n } catch (err) {\n _d = !0, _e = err;\n } finally {\n try {\n if (!_n && null != _i[\"return\"] && (_r = _i[\"return\"](), Object(_r) !== _r)) return;\n } finally {\n if (_d) throw _e;\n }\n }\n return _arr;\n }\n}","export default function _arrayLikeToArray(arr, len) {\n if (len == null || len > arr.length) len = arr.length;\n for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];\n return arr2;\n}","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nexport default function _unsupportedIterableToArray(o, minLen) {\n if (!o) return;\n if (typeof o === \"string\") return arrayLikeToArray(o, minLen);\n var n = Object.prototype.toString.call(o).slice(8, -1);\n if (n === \"Object\" && o.constructor) n = o.constructor.name;\n if (n === \"Map\" || n === \"Set\") return Array.from(o);\n if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return arrayLikeToArray(o, minLen);\n}","export default function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nexport default function _slicedToArray(arr, i) {\n return arrayWithHoles(arr) || iterableToArrayLimit(arr, i) || unsupportedIterableToArray(arr, i) || nonIterableRest();\n}","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","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}}export{n as default};\n","export const mergeRefs =\n (...refs) =>\n node =>\n refs.forEach(ref =>\n typeof ref === \"function\" ? ref(node) : (ref.current = node)\n );\n","import React, { useState, useRef, Fragment } from \"react\";\n\nimport classnames from \"classnames\";\nimport { isNotEmpty, noop } from \"neetocommons/pure\";\nimport {\n useOnClickOutside,\n useStateWithDependency,\n useHotKeys,\n} from \"neetocommons/react-utils\";\nimport { MenuHorizontal, Check, Close } from \"neetoicons\";\nimport { Input, Dropdown, Button, Typography } from \"neetoui\";\nimport PropTypes from \"prop-types\";\nimport { isEmpty } from \"ramda\";\nimport { useTranslation } from \"react-i18next\";\nimport { Link } from \"react-router-dom\";\n\nimport \"./rename.scss\";\nimport { mergeRefs } from \"./utils\";\n\nconst { Menu, MenuItem } = Dropdown;\n\nconst Rename = ({\n value,\n onRename = noop,\n isOpen = false,\n isLoading = false,\n placeholder = \"\",\n hideMenu = false,\n disabled = false,\n dropdownItems = [],\n breadcrumbs = [],\n textProps = {},\n inputProps = {},\n className = \"\",\n formatText,\n}) => {\n const { t } = useTranslation();\n const [name, setName] = useStateWithDependency(value ?? \"\");\n const [editMode, setEditMode] = useState(isOpen);\n\n const renameRef = useRef(null);\n\n useOnClickOutside(renameRef, () => editMode && handleClose());\n\n const handleRename = name => {\n onRename(name);\n setEditMode(false);\n };\n\n const handleClose = () => {\n setName(value);\n setEditMode(false);\n };\n\n const closeRef = useHotKeys(\"escape\", handleClose, {\n mode: \"scoped\",\n enabled: editMode,\n });\n\n const submitRef = useHotKeys(\n [\"command+return\", \"return\"],\n () => isNotEmpty(name) && handleRename(name),\n { mode: \"scoped\", enabled: editMode }\n );\n\n return (\n <div\n className={classnames(\"flex flex-row items-center\", className)}\n ref={renameRef}\n >\n {breadcrumbs.map(({ text, link }) => (\n <Fragment key={text}>\n <Link\n className=\"neeto-molecules-rename__text neeto-molecules-rename__breadcrumb-text\"\n data-testid=\"neeto-molecules-value-display\"\n to={link}\n {...textProps}\n >\n {text}\n </Link>\n <Typography\n className=\"neeto-molecules-rename__breadcrumb-text neeto-molecules-breadcrumb__divider\"\n component=\"span\"\n >\n /\n </Typography>\n </Fragment>\n ))}\n {editMode ? (\n <div>\n <Input\n autoFocus\n className=\"neeto-molecules-rename__input\"\n data-cy=\"form-rename-text-field\"\n data-testid=\"neeto-molecules-name-input\"\n placeholder={placeholder}\n ref={mergeRefs(closeRef, submitRef)}\n style={{ width: `${Math.min(Math.max(name.length, 2), 50)}ch` }}\n value={name}\n suffix={\n <div className=\"flex items-center justify-end\">\n <Button\n className=\"neeto-ui-rounded-none\"\n data-cy=\"form-rename-submit-button\"\n data-testid=\"neeto-molecules-rename-button\"\n disabled={isEmpty(name) || isLoading}\n icon={Check}\n loading={isLoading}\n style=\"text\"\n onClick={() => handleRename(name)}\n />\n <Button\n className=\"neeto-ui-rounded-none\"\n data-cy=\"form-rename-close-button\"\n data-testid=\"neeto-molecules-cancel-button\"\n disabled={isLoading}\n icon={Close}\n style=\"text\"\n onClick={handleClose}\n />\n </div>\n }\n onChange={event => setName(event.target.value)}\n {...inputProps}\n />\n </div>\n ) : (\n <>\n <Typography\n component=\"p\"\n data-cy=\"form-title\"\n data-testid=\"neeto-molecules-value-display\"\n style=\"body2\"\n className={classnames(\n \"neeto-molecules-rename__text neeto-molecules-rename__display-text w-full truncate\",\n {\n \"cursor-pointer\": !disabled,\n \"pointer-events-none cursor-text\": disabled,\n }\n )}\n onClick={() => !disabled && setEditMode(!editMode)}\n {...textProps}\n >\n {typeof formatText === \"function\" ? formatText(name) : name}\n </Typography>\n {!hideMenu && (isNotEmpty(dropdownItems) || !disabled) && (\n <Dropdown\n buttonProps={{ \"data-testid\": \"neeto-molecules-menu-button\" }}\n buttonStyle=\"text\"\n icon={MenuHorizontal}\n position=\"bottom-start\"\n >\n <Menu>\n {!disabled && (\n <MenuItem.Button\n data-cy=\"form-rename-button\"\n onClick={() => setEditMode(true)}\n >\n {t(\"neetoMolecules.common.actions.rename\")}\n </MenuItem.Button>\n )}\n {dropdownItems.map(item => (\n <MenuItem.Button\n data-cy=\"form-clone-button\"\n key={item.label}\n {...item}\n >\n {item.label}\n </MenuItem.Button>\n ))}\n </Menu>\n </Dropdown>\n )}\n </>\n )}\n </div>\n );\n};\n\nRename.propTypes = {\n /**\n * To provide additional classes to the component.\n */\n className: PropTypes.string,\n /**\n * To specify the text to be displayed in the component.\n */\n value: PropTypes.string,\n /**\n * To specify the function to be triggered when renamed.\n */\n onRename: PropTypes.func,\n /**\n * To specify whether edit mode is enabled or not.\n */\n isOpen: PropTypes.bool,\n /**\n * To specify whether the edit buttons are in loading state or not.\n */\n isLoading: PropTypes.bool,\n /**\n * To specify the placeholder for the input component in edit mode.\n */\n placeholder: PropTypes.string,\n /**\n * To specify whether the dropdown menu should be hidden or not.\n */\n hideMenu: PropTypes.bool,\n /**\n * To specify whether the rename option in dropdown should be enabled. If it is the only option in dropdown, the menu will be hidden.\n */\n disabled: PropTypes.bool,\n /**\n * To specify additional items for the dropdown menu.\n */\n dropdownItems: PropTypes.array,\n /**\n * To specify the breadcrumbs if used in the title of `Header` component.\n */\n breadcrumbs: PropTypes.arrayOf(\n PropTypes.shape({\n text: PropTypes.string,\n link: PropTypes.string,\n })\n ),\n /**\n * To override the properties of the Typography component that displays the `value`.\n */\n textProps: PropTypes.object,\n /**\n * To override the properties of the Input component in edit mode.\n */\n inputProps: PropTypes.object,\n /**\n * To format the value to display when not in edit mode.\n */\n formatText: PropTypes.func,\n};\n\nexport default Rename;\n"],"names":["arrayLikeToArray","arrayWithHoles","iterableToArrayLimit","unsupportedIterableToArray","nonIterableRest","mergeRefs","_len","arguments","length","refs","Array","_key","node","forEach","ref","current","Menu","Dropdown","MenuItem","Rename","_ref","value","_ref$onRename","onRename","noop","_ref$isOpen","isOpen","_ref$isLoading","isLoading","_ref$placeholder","placeholder","_ref$hideMenu","hideMenu","_ref$disabled","disabled","_ref$dropdownItems","dropdownItems","_ref$breadcrumbs","breadcrumbs","_ref$textProps","textProps","_ref$inputProps","inputProps","_ref$className","className","formatText","_useTranslation","useTranslation","t","_useStateWithDependen","useStateWithDependency","_useStateWithDependen2","_slicedToArray","name","setName","_useState","useState","_useState2","editMode","setEditMode","renameRef","useRef","useOnClickOutside","handleClose","handleRename","closeRef","useHotKeys","mode","enabled","submitRef","isNotEmpty","React","createElement","classnames","map","_ref2","text","link","Fragment","key","Link","_extends","to","Typography","component","Input","autoFocus","style","width","concat","Math","min","max","suffix","Button","isEmpty","icon","Check","loading","onClick","Close","onChange","event","target","buttonProps","buttonStyle","M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AA;AAEV;;;;"}
@@ -1,17 +1,17 @@
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
6
  var neetoIcons = require('@bigbinary/neeto-icons');
5
7
  var neetoui = require('@bigbinary/neetoui');
6
- var ramda = require('ramda');
7
8
  var reactI18next = require('react-i18next');
8
- var reactRouterDom = require('react-router-dom');
9
9
  var pure = require('@bigbinary/neeto-commons-frontend/pure');
10
10
  var AppIcons = require('@bigbinary/neeto-icons/app-icons');
11
11
  var i18next = require('i18next');
12
12
  var utils = require('@bigbinary/neeto-commons-frontend/utils');
13
13
  var KeyboardShortcuts = require('@bigbinary/neeto-molecules/KeyboardShortcuts');
14
- var ProductLogos = require('@bigbinary/neeto-icons/typeface-logos');
14
+ var ProductLogos = require('@bigbinary/neeto-icons/logos');
15
15
  var initializers = require('@bigbinary/neeto-commons-frontend/initializers');
16
16
 
17
17
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -31511,7 +31511,7 @@ SwitchTransition.defaultProps = {
31511
31511
 
31512
31512
  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}}
31513
31513
 
31514
- 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:72px;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__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}";
31514
+ 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
31515
  n(css$1,{});
31516
31516
 
31517
31517
  function _extends() {
@@ -31740,14 +31740,51 @@ var AppSwitcher = function AppSwitcher(_ref) {
31740
31740
  })))));
31741
31741
  };
31742
31742
 
31743
- var css = ":root{--neeto-molecules-sidebar-width:240px;--neeto-molecules-sidebar-z-index:99998}.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{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{left:calc(100% + 4px);position:absolute;top:32px;z-index:99996;z-index:calc(var(--neeto-molecules-sidebar-z-index) - 2)}.neeto-molecules-sidebar__header{margin-bottom:40px;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-label,.neeto-molecules-sidebar__link-sub-label{flex-grow:1;min-width:0;overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.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--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;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}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile-name{flex-grow:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile:hover{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));text-decoration:none}.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile:focus,.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile:focus-visible,.neeto-molecules-sidebar__footer .neeto-molecules-sidebar__profile[aria-expanded=true]{background-color:rgb(var(--neeto-ui-gray-200));color:rgb(var(--neeto-ui-black));outline:none;text-decoration:none}.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}";
31743
+ 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}";
31744
31744
  n(css,{});
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);
31779
+ };
31780
+
31746
31781
  var AppSwitcherButton = function AppSwitcherButton(_ref) {
31747
31782
  var onAppSwitcherToggle = _ref.onAppSwitcherToggle;
31748
31783
  var _useTranslation = reactI18next.useTranslation(),
31749
31784
  t = _useTranslation.t;
31750
- return /*#__PURE__*/React__default["default"].createElement("button", {
31785
+ return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
31786
+ label: t("neetoMolecules.sidebar.productSwitcher")
31787
+ }, /*#__PURE__*/React__default["default"].createElement("button", {
31751
31788
  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",
31752
31789
  "data-cy": "app-switcher-button",
31753
31790
  onClick: onAppSwitcherToggle
@@ -31755,12 +31792,7 @@ var AppSwitcherButton = function AppSwitcherButton(_ref) {
31755
31792
  className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
31756
31793
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.AppSwitcher, {
31757
31794
  size: 24
31758
- })), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31759
- className: "neeto-molecules-sidebar__link-label",
31760
- component: "span",
31761
- style: "body2",
31762
- weight: "normal"
31763
- }, t("neetoMolecules.sidebar.productSwitcher")));
31795
+ }))));
31764
31796
  };
31765
31797
 
31766
31798
  var MY_PROFILE_URL = "/auth/profile/edit";
@@ -31778,7 +31810,7 @@ var DEFAULT_HELP_LINK_PROPS = {
31778
31810
  }
31779
31811
  },
31780
31812
  helpCenterProps: {
31781
- label: i18next.t("neetoMolecules.sidebar.helpLinks.helpArticles"),
31813
+ label: i18next.t("neetoMolecules.sidebar.helpLinks.helpCenter"),
31782
31814
  icon: neetoIcons.Book,
31783
31815
  "data-cy": "help-link-help-center-button",
31784
31816
  href: "https://help.".concat(ramda.toLower(globalProps.appName), ".com/"),
@@ -31831,26 +31863,24 @@ var getProfileInfo = function getProfileInfo(profileInfoOverrides) {
31831
31863
  };
31832
31864
 
31833
31865
  var HelpSection = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
31834
- _ref.changesCount;
31835
- var _useTranslation = reactI18next.useTranslation(),
31836
- t = _useTranslation.t;
31837
- var showChangesCount = false;
31866
+ var changesCount = _ref.changesCount;
31838
31867
  return /*#__PURE__*/React__default["default"].createElement("button", {
31839
- 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",
31868
+ className: "neeto-molecules-sidebar__link neeto-molecules-sidebar__link--button neeto-ui-shadow-none",
31840
31869
  "data-cy": "help-button",
31841
31870
  ref: ref
31842
31871
  }, /*#__PURE__*/React__default["default"].createElement("span", {
31843
31872
  className: "neeto-molecules-sidebar__link-icon neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center"
31844
31873
  }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Help, {
31845
31874
  size: 24
31846
- }), showChangesCount ), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31847
- className: "neeto-molecules-sidebar__link-label",
31848
- component: "span",
31849
- style: "body2",
31850
- weight: "normal"
31851
- }, t("neetoMolecules.sidebar.helpLinks.helpCenter")));
31875
+ }), pure.isPresent(changesCount) && /*#__PURE__*/React__default["default"].createElement("span", {
31876
+ className: "neeto-molecules-sidebar__notif-count",
31877
+ "data-testid": "help-icon-changes-count"
31878
+ }, changesCount)));
31852
31879
  });
31853
31880
  HelpSection.displayName = "HelpSection";
31881
+ HelpSection.propTypes = {
31882
+ changesCount: propTypes.exports.number
31883
+ };
31854
31884
 
31855
31885
  function _typeof(obj) {
31856
31886
  "@babel/helpers - typeof";
@@ -31902,7 +31932,6 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
31902
31932
  var _KeyboardShortcuts$us = KeyboardShortcuts__default["default"].usePaneState(),
31903
31933
  _KeyboardShortcuts$us2 = _slicedToArray(_KeyboardShortcuts$us, 2),
31904
31934
  setIsOpen = _KeyboardShortcuts$us2[1];
31905
- var showChangesCount = false;
31906
31935
  var helpLinks = Object.keys(DEFAULT_HELP_LINK_PROPS).map(function (key) {
31907
31936
  return _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, DEFAULT_HELP_LINK_PROPS[key]), helpLinkOverrides[key]), key === "keyboardShortcutProps" && {
31908
31937
  onClick: function onClick() {
@@ -31915,40 +31944,37 @@ var HelpSectionMenu = function HelpSectionMenu(_ref) {
31915
31944
  var hide = _ref2.hide;
31916
31945
  return !hide;
31917
31946
  });
31918
- return /*#__PURE__*/React__default["default"].createElement("ul", {
31919
- className: "neeto-molecules-help-sublist"
31920
- }, helpLinks.map(function (_ref3, idx) {
31947
+ return /*#__PURE__*/React__default["default"].createElement("ul", null, helpLinks.map(function (_ref3, idx) {
31921
31948
  var label = _ref3.label,
31922
31949
  buttonProps = _objectWithoutProperties(_ref3, _excluded$2);
31923
31950
  return /*#__PURE__*/React__default["default"].createElement("li", {
31924
31951
  className: "neeto-molecules-help-sublist__item",
31925
31952
  key: idx
31926
31953
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
31927
- fullWidth: true,
31928
31954
  className: "neeto-molecules-help-sublist__item-btn",
31929
31955
  iconPosition: "left",
31930
31956
  iconSize: 18,
31931
31957
  style: "text"
31932
- }, buttonProps), label, showChangesCount ));
31958
+ }, buttonProps), label, pure.isPresent(buttonProps.changesCount) && /*#__PURE__*/React__default["default"].createElement("span", {
31959
+ className: "neeto-molecules-help-sublist__item-btn-count",
31960
+ "data-testid": "help-section-menu-changes-count"
31961
+ }, buttonProps.changesCount)));
31933
31962
  }));
31934
31963
  };
31935
31964
 
31936
31965
  var ProfileSection = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
31937
31966
  var profileInfo = _ref.profileInfo;
31938
31967
  return /*#__PURE__*/React__default["default"].createElement("button", {
31939
- className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
31968
+ className: "neeto-molecules-sidebar__profile-wrapper neeto-ui-w-full neeto-ui-text-left",
31940
31969
  "data-cy": "profile-section",
31941
31970
  ref: ref
31971
+ }, /*#__PURE__*/React__default["default"].createElement("span", {
31972
+ className: "neeto-molecules-sidebar__profile neeto-ui-flex neeto-ui-w-full neeto-ui-flex-shrink-0 neeto-ui-items-center"
31942
31973
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Avatar, {
31943
- className: "neeto-ui-flex-shrink-0 neeto-molecules-sidebar__profile-avatar",
31944
- size: "small",
31974
+ className: "neeto-ui-flex-shrink-0",
31975
+ size: "large",
31945
31976
  user: profileInfo
31946
- }), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
31947
- className: "neeto-molecules-sidebar__link-label",
31948
- component: "span",
31949
- style: "body2",
31950
- weight: "normal"
31951
- }, pure.truncate(profileInfo.name, 18)));
31977
+ })));
31952
31978
  });
31953
31979
  ProfileSection.displayName = "ProfileSection";
31954
31980
 
@@ -31979,19 +32005,22 @@ var LinkSection = function LinkSection(_ref) {
31979
32005
  _ref2$icon = _ref2.icon,
31980
32006
  icon = _ref2$icon === void 0 ? null : _ref2$icon,
31981
32007
  otherProps = _objectWithoutProperties(_ref2, _excluded$1);
32008
+ var IconSVG = icon;
31982
32009
  return /*#__PURE__*/React__default["default"].createElement("li", {
31983
32010
  className: "neeto-molecules-profile-sublist__item",
31984
32011
  key: idx
31985
- }, /*#__PURE__*/React__default["default"].createElement(neetoui.Button, _extends({
31986
- fullWidth: true,
31987
- className: "neeto-molecules-profile-sublist__item-btn",
31988
- icon: icon,
31989
- iconPosition: "left",
31990
- iconSize: 18,
31991
- label: label,
31992
- style: "text",
32012
+ }, /*#__PURE__*/React__default["default"].createElement("button", _extends({
31993
32013
  onClick: onClick
31994
- }, otherProps)));
32014
+ }, otherProps, {
32015
+ className: "neeto-molecules-profile-sublist__item-btn"
32016
+ }), icon && /*#__PURE__*/React__default["default"].createElement("span", {
32017
+ className: "neeto-molecules-profile-sublist__item-btn-icon"
32018
+ }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32019
+ className: "neeto-molecules-profile-sublist__item-btn-label",
32020
+ component: "span",
32021
+ style: "body2",
32022
+ weight: "normal"
32023
+ }, label)));
31995
32024
  }));
31996
32025
  };
31997
32026
 
@@ -32060,7 +32089,7 @@ var Footer = function Footer(_ref) {
32060
32089
  window.Nv = window.Nv ? Object.assign(window.Nv, Nv) : Nv;
32061
32090
  }, []);
32062
32091
  return /*#__PURE__*/React__default["default"].createElement("div", {
32063
- className: "neeto-molecules-sidebar__footer neeto-molecules-sidebar__no-shrinkable"
32092
+ className: "neeto-molecules-sidebar__footer"
32064
32093
  }, /*#__PURE__*/React__default["default"].createElement(neetoui.Tooltip, {
32065
32094
  interactive: true,
32066
32095
  className: "neeto-molecules-help-popup-wrapper",
@@ -32069,8 +32098,6 @@ var Footer = function Footer(_ref) {
32069
32098
  helpLinkOverrides: helpLinkOverrides
32070
32099
  }),
32071
32100
  hideOnClick: false,
32072
- interactiveDebounce: 30,
32073
- offset: 0,
32074
32101
  position: "right",
32075
32102
  theme: "light"
32076
32103
  }, /*#__PURE__*/React__default["default"].createElement(HelpSection, {
@@ -32081,8 +32108,6 @@ var Footer = function Footer(_ref) {
32081
32108
  interactive: true,
32082
32109
  className: "neeto-molecules-profile-popup-wrapper",
32083
32110
  hideOnClick: false,
32084
- interactiveDebounce: 30,
32085
- offset: 0,
32086
32111
  position: "right",
32087
32112
  theme: "light",
32088
32113
  content: /*#__PURE__*/React__default["default"].createElement(ProfileMenu, {
@@ -32102,30 +32127,17 @@ var Header = function Header() {
32102
32127
  name: globalProps.appName.split("neeto")[1]
32103
32128
  }, globalProps.neetoApps)) === null || _findBy2 === void 0 ? void 0 : _findBy2.url) !== null && _findBy$url !== void 0 ? _findBy$url : window.location.origin);
32104
32129
  return /*#__PURE__*/React__default["default"].createElement("div", {
32105
- className: "neeto-molecules-sidebar__header neeto-molecules-sidebar__no-shrinkable",
32130
+ className: "neeto-ui-flex neeto-ui-items-center neeto-molecules-sidebar__header",
32106
32131
  "data-cy": "sidebar-info"
32132
+ }, /*#__PURE__*/React__default["default"].createElement("div", {
32133
+ className: "neeto-molecules-sidebar__logo flex flex-shrink-0 items-center justify-center"
32107
32134
  }, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.Link, {
32108
- className: "neeto-molecules-sidebar__logo neeto-ui-w-full",
32109
32135
  to: homeUrl.pathname
32110
- }, ProductLogo ? /*#__PURE__*/React__default["default"].createElement(ProductLogo, null) : /*#__PURE__*/React__default["default"].createElement(ProductLogos.Neeto, null)));
32136
+ }, ProductLogo ? /*#__PURE__*/React__default["default"].createElement(ProductLogo, null) : /*#__PURE__*/React__default["default"].createElement(ProductLogos.Neeto, null))));
32111
32137
  };
32112
32138
  var Header$1 = /*#__PURE__*/React__default["default"].memo(Header);
32113
32139
 
32114
- var isSubRouteActive = function isSubRouteActive(subRoute, location) {
32115
- var currentBrowserUrl = new URL(location.pathname + location.search, window.location.origin);
32116
- var targetUrl = new URL(subRoute, window.location.origin);
32117
- if (!currentBrowserUrl.pathname.startsWith(targetUrl.pathname)) {
32118
- return false;
32119
- }
32120
- var targetSearchParams = targetUrl.searchParams;
32121
- var targetSearchKeys = Array.from(targetSearchParams.keys());
32122
- return ramda.all(function (key) {
32123
- return currentBrowserUrl.searchParams.get(key) === targetSearchParams.get(key);
32124
- }, targetSearchKeys);
32125
- };
32126
-
32127
- var _excluded = ["label", "to", "icon", "items"],
32128
- _excluded2 = ["label", "to", "count"];
32140
+ var _excluded = ["label", "to", "icon", "description"];
32129
32141
  var Links = function Links(_ref) {
32130
32142
  var navLinks = _ref.navLinks;
32131
32143
  var location = reactRouterDom.useLocation();
@@ -32137,64 +32149,31 @@ var Links = function Links(_ref) {
32137
32149
  return true;
32138
32150
  });
32139
32151
  return /*#__PURE__*/React__default["default"].createElement("div", {
32140
- className: "neeto-molecules-sidebar__links neeto-molecules-sidebar__no-shrinkable"
32152
+ className: "neeto-molecules-sidebar__links"
32141
32153
  }, navLinks.filter(filterByPermissions).map(function (_ref3, mainIndex) {
32142
32154
  var label = _ref3.label,
32143
32155
  to = _ref3.to,
32144
32156
  icon = _ref3.icon,
32145
- items = _ref3.items,
32157
+ description = _ref3.description,
32146
32158
  otherProps = _objectWithoutProperties(_ref3, _excluded);
32147
32159
  var IconSVG = icon;
32148
32160
  var url = new URL(to, window.location.href);
32149
32161
  var isActive = function isActive() {
32150
32162
  return location.pathname.startsWith(url.pathname);
32151
32163
  };
32152
- return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, {
32153
- key: mainIndex
32164
+ return /*#__PURE__*/React__default["default"].createElement(NavIconWrapper, {
32165
+ description: description,
32166
+ key: mainIndex,
32167
+ label: label
32154
32168
  }, /*#__PURE__*/React__default["default"].createElement(reactRouterDom.NavLink, _extends({
32155
32169
  activeClassName: "active",
32156
32170
  className: "neeto-ui-flex neeto-ui-items-center neeto-ui-no-underline neeto-ui-select-none neeto-molecules-sidebar__link",
32157
32171
  isActive: isActive,
32158
32172
  to: to
32159
- }, otherProps), icon && /*#__PURE__*/React__default["default"].createElement("span", {
32160
- className: "neeto-molecules-sidebar__link-icon",
32173
+ }, otherProps), icon && /*#__PURE__*/React__default["default"].createElement("div", {
32174
+ className: "neeto-ui-flex neeto-ui-items-center neeto-ui-justify-center neeto-molecules-sidebar__link-icon",
32161
32175
  "data-testid": label
32162
- }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null)), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32163
- className: "neeto-molecules-sidebar__link-label",
32164
- component: "span",
32165
- style: "body2",
32166
- weight: "normal"
32167
- }, label), items && /*#__PURE__*/React__default["default"].createElement("span", {
32168
- className: classnames("neeto-molecules-sidebar__link-icon", {
32169
- "neeto-molecules-sidebar__link-icon--rotate": isActive()
32170
- })
32171
- }, /*#__PURE__*/React__default["default"].createElement(neetoIcons.Down, {
32172
- size: 16
32173
- }))), items && isActive() && /*#__PURE__*/React__default["default"].createElement("div", {
32174
- className: "neeto-molecules-sidebar__sublink-wrapper"
32175
- }, items.map(function (_ref4, subIndex) {
32176
- var subLabel = _ref4.label,
32177
- subRoute = _ref4.to,
32178
- count = _ref4.count,
32179
- otherProps = _objectWithoutProperties(_ref4, _excluded2);
32180
- return /*#__PURE__*/React__default["default"].createElement(reactRouterDom.NavLink, _extends({
32181
- activeClassName: "active",
32182
- className: "neeto-molecules-sidebar__sublink neeto-ui-flex neeto-ui-items-center neeto-ui-select-none",
32183
- isActive: function isActive() {
32184
- return isSubRouteActive(subRoute, location);
32185
- },
32186
- key: subIndex,
32187
- to: subRoute
32188
- }, otherProps), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32189
- className: "neeto-molecules-sidebar__link-sub-label neeto-ui-flex-grow",
32190
- component: "span",
32191
- style: "body2"
32192
- }, subLabel), /*#__PURE__*/React__default["default"].createElement(neetoui.Typography, {
32193
- className: "neeto-molecules-sidebar__link-sub-count neeto-ui-flex-shrink-0",
32194
- component: "span",
32195
- style: "body2"
32196
- }, count));
32197
- })));
32176
+ }, /*#__PURE__*/React__default["default"].createElement(IconSVG, null))));
32198
32177
  }));
32199
32178
  };
32200
32179
 
@@ -32212,25 +32191,15 @@ var Sidebar = function Sidebar(_ref) {
32212
32191
  _useState2 = _slicedToArray(_useState, 2),
32213
32192
  isAppSwitcherOpen = _useState2[0],
32214
32193
  setIsAppSwitcherOpen = _useState2[1];
32215
- var _useState3 = React.useState(false),
32216
- _useState4 = _slicedToArray(_useState3, 2),
32217
- isSidebarCollapsed = _useState4[0],
32218
- setIsSidebarCollapsed = _useState4[1];
32219
32194
  var location = reactRouterDom.useLocation();
32220
- var _useTranslation = reactI18next.useTranslation(),
32221
- t = _useTranslation.t;
32222
32195
  React.useEffect(function () {
32223
32196
  isAppSwitcherOpen && setIsAppSwitcherOpen(false);
32224
32197
  // eslint-disable-next-line react-hooks/exhaustive-deps
32225
32198
  }, [location]);
32226
32199
  return /*#__PURE__*/React__default["default"].createElement(React__default["default"].Fragment, null, /*#__PURE__*/React__default["default"].createElement("div", {
32227
- className: classnames("neeto-molecules-sidebar__wrapper", {
32228
- "neeto-molecules-sidebar__wrapper--collapsed": isSidebarCollapsed
32229
- })
32230
- }, /*#__PURE__*/React__default["default"].createElement("div", {
32231
- 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",
32232
32200
  "data-cy": "sidebar-wrapper",
32233
- "data-testid": "sidebar"
32201
+ "data-testid": "sidebar",
32202
+ 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")
32234
32203
  }, /*#__PURE__*/React__default["default"].createElement(Header$1, null), /*#__PURE__*/React__default["default"].createElement(Links, {
32235
32204
  navLinks: navLinks
32236
32205
  }), /*#__PURE__*/React__default["default"].createElement(Footer, {
@@ -32241,17 +32210,6 @@ var Sidebar = function Sidebar(_ref) {
32241
32210
  onAppSwitcherToggle: function onAppSwitcherToggle() {
32242
32211
  return setIsAppSwitcherOpen(ramda.not);
32243
32212
  }
32244
- })), /*#__PURE__*/React__default["default"].createElement(neetoui.Button, {
32245
- className: "neeto-molecules-sidebar__toggler",
32246
- icon: isSidebarCollapsed ? neetoIcons.SidebarOpen : neetoIcons.SidebarClose,
32247
- style: "text",
32248
- tooltipProps: {
32249
- content: isSidebarCollapsed ? t("neetoMolecules.sidebar.showMenu") : t("neetoMolecules.sidebar.hideMenu"),
32250
- position: "bottom"
32251
- },
32252
- onClick: function onClick() {
32253
- return setIsSidebarCollapsed(!isSidebarCollapsed);
32254
- }
32255
32213
  })), showAppSwitcher && /*#__PURE__*/React__default["default"].createElement(AppSwitcher, {
32256
32214
  isOpen: isAppSwitcherOpen,
32257
32215
  onClose: function onClose() {