@gravity-ui/navigation 4.0.17 → 4.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (124) hide show
  1. package/build/cjs/components/AsideHeader/AsideHeader.js +2 -2
  2. package/build/cjs/components/AsideHeader/AsideHeader.js.map +1 -1
  3. package/build/cjs/components/AsideHeader/components/CompositeBar/HighlightedItem/HighlightedItem.js +2 -2
  4. package/build/cjs/components/AsideHeader/components/CompositeBar/HighlightedItem/HighlightedItem.js.map +1 -1
  5. package/build/cjs/components/AsideHeader/components/Panels.js +2 -2
  6. package/build/cjs/components/AsideHeader/components/Panels.js.map +1 -1
  7. package/build/cjs/components/Footer/MenuItem/MenuItem.js +2 -2
  8. package/build/cjs/components/Footer/MenuItem/MenuItem.js.map +1 -1
  9. package/build/cjs/components/HotkeysPanel/HotkeysPanel.js +2 -2
  10. package/build/cjs/components/HotkeysPanel/HotkeysPanel.js.map +1 -1
  11. package/build/cjs/components/Logo/Logo.js +2 -2
  12. package/build/cjs/components/Logo/Logo.js.map +1 -1
  13. package/build/cjs/components/MobileHeader/MobileHeader.js +2 -2
  14. package/build/cjs/components/MobileHeader/MobileHeader.js.map +1 -1
  15. package/build/cjs/components/Settings/Settings.js +4 -4
  16. package/build/cjs/components/Settings/Settings.js.map +1 -1
  17. package/build/cjs/components/Settings/SettingsSearch/AllResultsPage.js +2 -2
  18. package/build/cjs/components/Settings/SettingsSearch/AllResultsPage.js.map +1 -1
  19. package/build/cjs/components/Settings/SettingsSearch/SettingsSearch.js +3 -3
  20. package/build/cjs/components/Settings/SettingsSearch/SettingsSearch.js.map +1 -1
  21. package/build/cjs/components/Settings/SettingsSection.js +2 -2
  22. package/build/cjs/components/Settings/SettingsSection.js.map +1 -1
  23. package/build/cjs/components/TopAlert/useTopAlertHeight.js +2 -2
  24. package/build/cjs/components/TopAlert/useTopAlertHeight.js.map +1 -1
  25. package/build/cjs/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.js +2 -2
  26. package/build/cjs/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.js.map +1 -1
  27. package/build/esm/components/AsideHeader/AsideHeader.js +1 -1
  28. package/build/esm/components/AsideHeader/components/CompositeBar/HighlightedItem/HighlightedItem.js +1 -1
  29. package/build/esm/components/AsideHeader/components/Panels.js +1 -1
  30. package/build/esm/components/Footer/MenuItem/MenuItem.js +1 -1
  31. package/build/esm/components/HotkeysPanel/HotkeysPanel.js +1 -1
  32. package/build/esm/components/Logo/Logo.js +1 -1
  33. package/build/esm/components/MobileHeader/MobileHeader.js +1 -1
  34. package/build/esm/components/Settings/Settings.js +2 -2
  35. package/build/esm/components/Settings/SettingsSearch/AllResultsPage.js +1 -1
  36. package/build/esm/components/Settings/SettingsSearch/SettingsSearch.js +1 -1
  37. package/build/esm/components/Settings/SettingsSection.js +1 -1
  38. package/build/esm/components/TopAlert/useTopAlertHeight.js +1 -1
  39. package/build/esm/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.js +1 -1
  40. package/package.json +4 -2
  41. package/build/cjs/_virtual/_commonjsHelpers.js +0 -11
  42. package/build/cjs/_virtual/_commonjsHelpers.js.map +0 -1
  43. package/build/cjs/_virtual/debounce.js +0 -12
  44. package/build/cjs/_virtual/debounce.js.map +0 -1
  45. package/build/cjs/_virtual/identity.js +0 -12
  46. package/build/cjs/_virtual/identity.js.map +0 -1
  47. package/build/cjs/_virtual/last.js +0 -12
  48. package/build/cjs/_virtual/last.js.map +0 -1
  49. package/build/cjs/node_modules/lodash/_Symbol.js +0 -21
  50. package/build/cjs/node_modules/lodash/_Symbol.js.map +0 -1
  51. package/build/cjs/node_modules/lodash/_baseGetTag.js +0 -45
  52. package/build/cjs/node_modules/lodash/_baseGetTag.js.map +0 -1
  53. package/build/cjs/node_modules/lodash/_baseTrim.js +0 -34
  54. package/build/cjs/node_modules/lodash/_baseTrim.js.map +0 -1
  55. package/build/cjs/node_modules/lodash/_freeGlobal.js +0 -20
  56. package/build/cjs/node_modules/lodash/_freeGlobal.js.map +0 -1
  57. package/build/cjs/node_modules/lodash/_getRawTag.js +0 -61
  58. package/build/cjs/node_modules/lodash/_getRawTag.js.map +0 -1
  59. package/build/cjs/node_modules/lodash/_objectToString.js +0 -36
  60. package/build/cjs/node_modules/lodash/_objectToString.js.map +0 -1
  61. package/build/cjs/node_modules/lodash/_root.js +0 -24
  62. package/build/cjs/node_modules/lodash/_root.js.map +0 -1
  63. package/build/cjs/node_modules/lodash/_trimmedEndIndex.js +0 -33
  64. package/build/cjs/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  65. package/build/cjs/node_modules/lodash/debounce.js +0 -208
  66. package/build/cjs/node_modules/lodash/debounce.js.map +0 -1
  67. package/build/cjs/node_modules/lodash/identity.js +0 -35
  68. package/build/cjs/node_modules/lodash/identity.js.map +0 -1
  69. package/build/cjs/node_modules/lodash/isObject.js +0 -45
  70. package/build/cjs/node_modules/lodash/isObject.js.map +0 -1
  71. package/build/cjs/node_modules/lodash/isObjectLike.js +0 -43
  72. package/build/cjs/node_modules/lodash/isObjectLike.js.map +0 -1
  73. package/build/cjs/node_modules/lodash/isSymbol.js +0 -45
  74. package/build/cjs/node_modules/lodash/isSymbol.js.map +0 -1
  75. package/build/cjs/node_modules/lodash/last.js +0 -34
  76. package/build/cjs/node_modules/lodash/last.js.map +0 -1
  77. package/build/cjs/node_modules/lodash/now.js +0 -38
  78. package/build/cjs/node_modules/lodash/now.js.map +0 -1
  79. package/build/cjs/node_modules/lodash/toNumber.js +0 -81
  80. package/build/cjs/node_modules/lodash/toNumber.js.map +0 -1
  81. package/build/cjs/node_modules/tslib/tslib.es6.js +0 -38
  82. package/build/cjs/node_modules/tslib/tslib.es6.js.map +0 -1
  83. package/build/esm/_virtual/_commonjsHelpers.js +0 -8
  84. package/build/esm/_virtual/_commonjsHelpers.js.map +0 -1
  85. package/build/esm/_virtual/debounce.js +0 -8
  86. package/build/esm/_virtual/debounce.js.map +0 -1
  87. package/build/esm/_virtual/identity.js +0 -8
  88. package/build/esm/_virtual/identity.js.map +0 -1
  89. package/build/esm/_virtual/last.js +0 -8
  90. package/build/esm/_virtual/last.js.map +0 -1
  91. package/build/esm/node_modules/lodash/_Symbol.js +0 -19
  92. package/build/esm/node_modules/lodash/_Symbol.js.map +0 -1
  93. package/build/esm/node_modules/lodash/_baseGetTag.js +0 -43
  94. package/build/esm/node_modules/lodash/_baseGetTag.js.map +0 -1
  95. package/build/esm/node_modules/lodash/_baseTrim.js +0 -32
  96. package/build/esm/node_modules/lodash/_baseTrim.js.map +0 -1
  97. package/build/esm/node_modules/lodash/_freeGlobal.js +0 -18
  98. package/build/esm/node_modules/lodash/_freeGlobal.js.map +0 -1
  99. package/build/esm/node_modules/lodash/_getRawTag.js +0 -59
  100. package/build/esm/node_modules/lodash/_getRawTag.js.map +0 -1
  101. package/build/esm/node_modules/lodash/_objectToString.js +0 -34
  102. package/build/esm/node_modules/lodash/_objectToString.js.map +0 -1
  103. package/build/esm/node_modules/lodash/_root.js +0 -22
  104. package/build/esm/node_modules/lodash/_root.js.map +0 -1
  105. package/build/esm/node_modules/lodash/_trimmedEndIndex.js +0 -31
  106. package/build/esm/node_modules/lodash/_trimmedEndIndex.js.map +0 -1
  107. package/build/esm/node_modules/lodash/debounce.js +0 -206
  108. package/build/esm/node_modules/lodash/debounce.js.map +0 -1
  109. package/build/esm/node_modules/lodash/identity.js +0 -33
  110. package/build/esm/node_modules/lodash/identity.js.map +0 -1
  111. package/build/esm/node_modules/lodash/isObject.js +0 -43
  112. package/build/esm/node_modules/lodash/isObject.js.map +0 -1
  113. package/build/esm/node_modules/lodash/isObjectLike.js +0 -41
  114. package/build/esm/node_modules/lodash/isObjectLike.js.map +0 -1
  115. package/build/esm/node_modules/lodash/isSymbol.js +0 -43
  116. package/build/esm/node_modules/lodash/isSymbol.js.map +0 -1
  117. package/build/esm/node_modules/lodash/last.js +0 -32
  118. package/build/esm/node_modules/lodash/last.js.map +0 -1
  119. package/build/esm/node_modules/lodash/now.js +0 -36
  120. package/build/esm/node_modules/lodash/now.js.map +0 -1
  121. package/build/esm/node_modules/lodash/toNumber.js +0 -79
  122. package/build/esm/node_modules/lodash/toNumber.js.map +0 -1
  123. package/build/esm/node_modules/tslib/tslib.es6.js +0 -36
  124. package/build/esm/node_modules/tslib/tslib.es6.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var tslib_es6 = require('../../node_modules/tslib/tslib.es6.js');
3
+ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var uikit = require('@gravity-ui/uikit');
6
6
  var useSettingsContext = require('./SettingsContext/useSettingsContext.js');
@@ -8,7 +8,7 @@ var SettingsRow = require('./SettingsRow/SettingsRow.js');
8
8
  var b = require('./b.js');
9
9
 
10
10
  const SettingsSection = React.forwardRef((_a, ref) => {
11
- var { search, isMobile, isSelected } = _a, section = tslib_es6.__rest(_a, ["search", "isMobile", "isSelected"]);
11
+ var { search, isMobile, isSelected } = _a, section = tslib.__rest(_a, ["search", "isMobile", "isSelected"]);
12
12
  const { renderSectionRightAdornment, showRightAdornmentOnHover } = useSettingsContext.useSettingsContext();
13
13
  return (React.createElement("div", { className: b.b('section', { selected: isSelected }), ref: isSelected ? ref : undefined },
14
14
  section.title && !section.hideTitle && (React.createElement("h3", { className: b.b('section-heading') }, renderSectionRightAdornment ? (React.createElement(uikit.Flex, { gap: 2, alignItems: 'center' },
@@ -1 +1 @@
1
- {"version":3,"file":"SettingsSection.js","sources":["../../../../../src/components/Settings/SettingsSection.tsx"],"sourcesContent":["import React from 'react';\n\nimport {Flex} from '@gravity-ui/uikit';\n\nimport {useSettingsContext} from './SettingsContext/useSettingsContext';\nimport {SettingRow} from './SettingsRow/SettingsRow';\nimport {b} from './b';\nimport type {SettingsPageSection} from './collect-settings';\n\nexport const SettingsSection = React.forwardRef<\n HTMLDivElement,\n SettingsPageSection & {\n search: string;\n isMobile: boolean;\n isSelected: boolean;\n }\n>(({search, isMobile, isSelected, ...section}, ref) => {\n const {renderSectionRightAdornment, showRightAdornmentOnHover} = useSettingsContext();\n\n return (\n <div className={b('section', {selected: isSelected})} ref={isSelected ? ref : undefined}>\n {section.title && !section.hideTitle && (\n <h3 className={b('section-heading')}>\n {renderSectionRightAdornment ? (\n <Flex gap={2} alignItems={'center'}>\n {section.title}\n <div\n className={b('section-right-adornment', {\n hidden: showRightAdornmentOnHover,\n })}\n >\n {renderSectionRightAdornment(section)}\n </div>\n </Flex>\n ) : (\n section.title\n )}\n </h3>\n )}\n\n {section.header &&\n (isMobile ? (\n <div className={b('section-subheader')}>{section.header}</div>\n ) : (\n section.header\n ))}\n\n {section.items.map((setting) =>\n setting.hidden ? null : (\n <SettingRow {...setting} key={setting.title} search={search} />\n ),\n )}\n </div>\n );\n});\n\nSettingsSection.displayName = 'SettingsSection';\n"],"names":["__rest","useSettingsContext","b","Flex","SettingRow"],"mappings":";;;;;;;;;AASO,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAO7C,CAAC,EAA0C,EAAE,GAAG,KAAI;QAAnD,EAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,OAAa,EAAR,OAAO,GAAzCA,gBAAA,CAAA,EAAA,EAAA,CAAA,QAAA,EAAA,UAAA,EAAA,YAAA,CAA0C,CAAD;IACxC,MAAM,EAAC,2BAA2B,EAAE,yBAAyB,EAAC,GAAGC,qCAAkB,EAAE;IAErF,QACI,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEC,GAAC,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAC,CAAC,EAAE,GAAG,EAAE,UAAU,GAAG,GAAG,GAAG,SAAS,EAAA;AAClF,QAAA,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,KAChC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAEA,GAAC,CAAC,iBAAiB,CAAC,EAAA,EAC9B,2BAA2B,IACxB,KAAC,CAAA,aAAA,CAAAC,UAAI,EAAC,EAAA,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAA;AAC7B,YAAA,OAAO,CAAC,KAAK;AACd,YAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAED,GAAC,CAAC,yBAAyB,EAAE;AACpC,oBAAA,MAAM,EAAE,yBAAyB;AACpC,iBAAA,CAAC,IAED,2BAA2B,CAAC,OAAO,CAAC,CACnC,CACH,KAEP,OAAO,CAAC,KAAK,CAChB,CACA,CACR;AAEA,QAAA,OAAO,CAAC,MAAM;aACV,QAAQ,IACL,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEA,GAAC,CAAC,mBAAmB,CAAC,EAAA,EAAG,OAAO,CAAC,MAAM,CAAO,KAE9D,OAAO,CAAC,MAAM,CACjB,CAAC;AAEL,QAAA,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,KACvB,OAAO,CAAC,MAAM,GAAG,IAAI,IACjB,KAAA,CAAA,aAAA,CAACE,sBAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,OAAO,IAAE,GAAG,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAA,CAAA,CAAI,CAClE,CACJ,CACC;AAEd,CAAC;AAED,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
1
+ {"version":3,"file":"SettingsSection.js","sources":["../../../../../src/components/Settings/SettingsSection.tsx"],"sourcesContent":["import React from 'react';\n\nimport {Flex} from '@gravity-ui/uikit';\n\nimport {useSettingsContext} from './SettingsContext/useSettingsContext';\nimport {SettingRow} from './SettingsRow/SettingsRow';\nimport {b} from './b';\nimport type {SettingsPageSection} from './collect-settings';\n\nexport const SettingsSection = React.forwardRef<\n HTMLDivElement,\n SettingsPageSection & {\n search: string;\n isMobile: boolean;\n isSelected: boolean;\n }\n>(({search, isMobile, isSelected, ...section}, ref) => {\n const {renderSectionRightAdornment, showRightAdornmentOnHover} = useSettingsContext();\n\n return (\n <div className={b('section', {selected: isSelected})} ref={isSelected ? ref : undefined}>\n {section.title && !section.hideTitle && (\n <h3 className={b('section-heading')}>\n {renderSectionRightAdornment ? (\n <Flex gap={2} alignItems={'center'}>\n {section.title}\n <div\n className={b('section-right-adornment', {\n hidden: showRightAdornmentOnHover,\n })}\n >\n {renderSectionRightAdornment(section)}\n </div>\n </Flex>\n ) : (\n section.title\n )}\n </h3>\n )}\n\n {section.header &&\n (isMobile ? (\n <div className={b('section-subheader')}>{section.header}</div>\n ) : (\n section.header\n ))}\n\n {section.items.map((setting) =>\n setting.hidden ? null : (\n <SettingRow {...setting} key={setting.title} search={search} />\n ),\n )}\n </div>\n );\n});\n\nSettingsSection.displayName = 'SettingsSection';\n"],"names":["__rest","useSettingsContext","b","Flex","SettingRow"],"mappings":";;;;;;;;;AASO,MAAM,eAAe,GAAG,KAAK,CAAC,UAAU,CAO7C,CAAC,EAA0C,EAAE,GAAG,KAAI;QAAnD,EAAC,MAAM,EAAE,QAAQ,EAAE,UAAU,OAAa,EAAR,OAAO,GAAzCA,YAAA,CAAA,EAAA,EAAA,CAAA,QAAA,EAAA,UAAA,EAAA,YAAA,CAA0C,CAAD;IACxC,MAAM,EAAC,2BAA2B,EAAE,yBAAyB,EAAC,GAAGC,qCAAkB,EAAE;IAErF,QACI,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEC,GAAC,CAAC,SAAS,EAAE,EAAC,QAAQ,EAAE,UAAU,EAAC,CAAC,EAAE,GAAG,EAAE,UAAU,GAAG,GAAG,GAAG,SAAS,EAAA;AAClF,QAAA,OAAO,CAAC,KAAK,IAAI,CAAC,OAAO,CAAC,SAAS,KAChC,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAEA,GAAC,CAAC,iBAAiB,CAAC,EAAA,EAC9B,2BAA2B,IACxB,KAAC,CAAA,aAAA,CAAAC,UAAI,EAAC,EAAA,GAAG,EAAE,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAA;AAC7B,YAAA,OAAO,CAAC,KAAK;AACd,YAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACI,SAAS,EAAED,GAAC,CAAC,yBAAyB,EAAE;AACpC,oBAAA,MAAM,EAAE,yBAAyB;AACpC,iBAAA,CAAC,IAED,2BAA2B,CAAC,OAAO,CAAC,CACnC,CACH,KAEP,OAAO,CAAC,KAAK,CAChB,CACA,CACR;AAEA,QAAA,OAAO,CAAC,MAAM;aACV,QAAQ,IACL,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAEA,GAAC,CAAC,mBAAmB,CAAC,EAAA,EAAG,OAAO,CAAC,MAAM,CAAO,KAE9D,OAAO,CAAC,MAAM,CACjB,CAAC;AAEL,QAAA,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,OAAO,KACvB,OAAO,CAAC,MAAM,GAAG,IAAI,IACjB,KAAA,CAAA,aAAA,CAACE,sBAAU,EAAK,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,OAAO,IAAE,GAAG,EAAE,OAAO,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAA,CAAA,CAAI,CAClE,CACJ,CACC;AAEd,CAAC;AAED,eAAe,CAAC,WAAW,GAAG,iBAAiB;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var debounce = require('../../_virtual/debounce.js');
4
+ var debounceFn = require('lodash/debounce');
5
5
 
6
6
  const G_ROOT_CLASS_NAME = 'g-root';
7
7
  const useTopAlertHeight = ({ alert }) => {
@@ -18,7 +18,7 @@ const useTopAlertHeight = ({ alert }) => {
18
18
  setAsideTopPanelHeight(height);
19
19
  }, [setAsideTopPanelHeight]);
20
20
  React.useLayoutEffect(() => {
21
- const updateTopSizeDebounce = debounce.default(updateTopSize, 200, { leading: true });
21
+ const updateTopSizeDebounce = debounceFn(updateTopSize, 200, { leading: true });
22
22
  if (alert) {
23
23
  window.addEventListener('resize', updateTopSizeDebounce);
24
24
  updateTopSizeDebounce();
@@ -1 +1 @@
1
- {"version":3,"file":"useTopAlertHeight.js","sources":["../../../../../src/components/TopAlert/useTopAlertHeight.ts"],"sourcesContent":["import React from 'react';\n\nimport debounceFn from 'lodash/debounce';\n\nimport {TopAlertProps} from '../types';\n\ntype TopAlertHeightControls = {\n alertRef: React.RefObject<HTMLDivElement>;\n updateTopSize: () => void;\n};\n\nconst G_ROOT_CLASS_NAME = 'g-root';\n\nexport const useTopAlertHeight = ({alert}: {alert?: TopAlertProps}): TopAlertHeightControls => {\n const alertRef = React.useRef<HTMLDivElement>(null);\n\n const setAsideTopPanelHeight = React.useCallback((clientHeight: number) => {\n const gRootElement = document\n .getElementsByClassName(G_ROOT_CLASS_NAME)\n .item(0) as HTMLElement | null;\n gRootElement?.style.setProperty('--gn-top-alert-height', clientHeight + 'px');\n }, []);\n\n const updateTopSize = React.useCallback(() => {\n const height = alertRef.current?.clientHeight ?? 0;\n setAsideTopPanelHeight(height);\n }, [setAsideTopPanelHeight]);\n\n React.useLayoutEffect(() => {\n const updateTopSizeDebounce = debounceFn(updateTopSize, 200, {leading: true});\n\n if (alert) {\n window.addEventListener('resize', updateTopSizeDebounce);\n updateTopSizeDebounce();\n }\n return () => {\n window.removeEventListener('resize', updateTopSizeDebounce);\n setAsideTopPanelHeight(0);\n };\n }, [alert, alertRef, updateTopSize, setAsideTopPanelHeight]);\n\n return {\n alertRef,\n updateTopSize,\n };\n};\n"],"names":["debounceFn"],"mappings":";;;;;AAWA,MAAM,iBAAiB,GAAG,QAAQ;MAErB,iBAAiB,GAAG,CAAC,EAAC,KAAK,EAA0B,KAA4B;IAC1F,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC;IAEnD,MAAM,sBAAsB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,YAAoB,KAAI;QACtE,MAAM,YAAY,GAAG;aAChB,sBAAsB,CAAC,iBAAiB;aACxC,IAAI,CAAC,CAAC,CAAuB;AAClC,QAAA,YAAY,KAAZ,IAAA,IAAA,YAAY,KAAZ,SAAA,GAAA,SAAA,GAAA,YAAY,CAAE,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE,YAAY,GAAG,IAAI,CAAC;KAChF,EAAE,EAAE,CAAC;AAEN,IAAA,MAAM,aAAa,GAAG,KAAK,CAAC,WAAW,CAAC,MAAK;;QACzC,MAAM,MAAM,GAAG,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAA,YAAY,MAAI,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,EAAA,GAAA,CAAC;QAClD,sBAAsB,CAAC,MAAM,CAAC;AAClC,KAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC;AAE5B,IAAA,KAAK,CAAC,eAAe,CAAC,MAAK;AACvB,QAAA,MAAM,qBAAqB,GAAGA,gBAAU,CAAC,aAAa,EAAE,GAAG,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;QAE7E,IAAI,KAAK,EAAE;AACP,YAAA,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,CAAC;AACxD,YAAA,qBAAqB,EAAE;;AAE3B,QAAA,OAAO,MAAK;AACR,YAAA,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,CAAC;YAC3D,sBAAsB,CAAC,CAAC,CAAC;AAC7B,SAAC;KACJ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAE5D,OAAO;QACH,QAAQ;QACR,aAAa;KAChB;AACL;;;;"}
1
+ {"version":3,"file":"useTopAlertHeight.js","sources":["../../../../../src/components/TopAlert/useTopAlertHeight.ts"],"sourcesContent":["import React from 'react';\n\nimport debounceFn from 'lodash/debounce';\n\nimport {TopAlertProps} from '../types';\n\ntype TopAlertHeightControls = {\n alertRef: React.RefObject<HTMLDivElement>;\n updateTopSize: () => void;\n};\n\nconst G_ROOT_CLASS_NAME = 'g-root';\n\nexport const useTopAlertHeight = ({alert}: {alert?: TopAlertProps}): TopAlertHeightControls => {\n const alertRef = React.useRef<HTMLDivElement>(null);\n\n const setAsideTopPanelHeight = React.useCallback((clientHeight: number) => {\n const gRootElement = document\n .getElementsByClassName(G_ROOT_CLASS_NAME)\n .item(0) as HTMLElement | null;\n gRootElement?.style.setProperty('--gn-top-alert-height', clientHeight + 'px');\n }, []);\n\n const updateTopSize = React.useCallback(() => {\n const height = alertRef.current?.clientHeight ?? 0;\n setAsideTopPanelHeight(height);\n }, [setAsideTopPanelHeight]);\n\n React.useLayoutEffect(() => {\n const updateTopSizeDebounce = debounceFn(updateTopSize, 200, {leading: true});\n\n if (alert) {\n window.addEventListener('resize', updateTopSizeDebounce);\n updateTopSizeDebounce();\n }\n return () => {\n window.removeEventListener('resize', updateTopSizeDebounce);\n setAsideTopPanelHeight(0);\n };\n }, [alert, alertRef, updateTopSize, setAsideTopPanelHeight]);\n\n return {\n alertRef,\n updateTopSize,\n };\n};\n"],"names":[],"mappings":";;;;;AAWA,MAAM,iBAAiB,GAAG,QAAQ;MAErB,iBAAiB,GAAG,CAAC,EAAC,KAAK,EAA0B,KAA4B;IAC1F,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAM,CAAiB,IAAI,CAAC;IAEnD,MAAM,sBAAsB,GAAG,KAAK,CAAC,WAAW,CAAC,CAAC,YAAoB,KAAI;QACtE,MAAM,YAAY,GAAG;aAChB,sBAAsB,CAAC,iBAAiB;aACxC,IAAI,CAAC,CAAC,CAAuB;AAClC,QAAA,YAAY,KAAZ,IAAA,IAAA,YAAY,KAAZ,SAAA,GAAA,SAAA,GAAA,YAAY,CAAE,KAAK,CAAC,WAAW,CAAC,uBAAuB,EAAE,YAAY,GAAG,IAAI,CAAC;KAChF,EAAE,EAAE,CAAC;AAEN,IAAA,MAAM,aAAa,GAAG,KAAK,CAAC,WAAW,CAAC,MAAK;;QACzC,MAAM,MAAM,GAAG,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA,QAAQ,CAAC,OAAO,MAAE,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,SAAA,GAAA,EAAA,CAAA,YAAY,MAAI,IAAA,IAAA,EAAA,KAAA,SAAA,GAAA,EAAA,GAAA,CAAC;QAClD,sBAAsB,CAAC,MAAM,CAAC;AAClC,KAAC,EAAE,CAAC,sBAAsB,CAAC,CAAC;AAE5B,IAAA,KAAK,CAAC,eAAe,CAAC,MAAK;AACvB,QAAA,MAAM,qBAAqB,GAAG,UAAU,CAAC,aAAa,EAAE,GAAG,EAAE,EAAC,OAAO,EAAE,IAAI,EAAC,CAAC;QAE7E,IAAI,KAAK,EAAE;AACP,YAAA,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,qBAAqB,CAAC;AACxD,YAAA,qBAAqB,EAAE;;AAE3B,QAAA,OAAO,MAAK;AACR,YAAA,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,qBAAqB,CAAC;YAC3D,sBAAsB,CAAC,CAAC,CAAC;AAC7B,SAAC;KACJ,EAAE,CAAC,KAAK,EAAE,QAAQ,EAAE,aAAa,EAAE,sBAAsB,CAAC,CAAC;IAE5D,OAAO;QACH,QAAQ;QACR,aAAa;KAChB;AACL;;;;"}
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var React = require('react');
4
- var debounce = require('../../_virtual/debounce.js');
4
+ var debounceFn = require('lodash/debounce');
5
5
 
6
6
  function useOverflowingHorizontalListItems({ containerRef, items, itemSelector, moreButtonWidth = 0, }) {
7
7
  const [containerWidth, setContainerWidth] = React.useState(0);
@@ -24,7 +24,7 @@ function useOverflowingHorizontalListItems({ containerRef, items, itemSelector,
24
24
  setContainerWidth(entries[0].contentRect.width);
25
25
  }
26
26
  };
27
- const updateContainerSizeDebounced = debounce.default(updateContainerSize, 100);
27
+ const updateContainerSizeDebounced = debounceFn(updateContainerSize, 100);
28
28
  const footerMenuResizeObserver = new ResizeObserver(updateContainerSizeDebounced);
29
29
  if (footerMenu) {
30
30
  footerMenuResizeObserver.observe(footerMenu);
@@ -1 +1 @@
1
- {"version":3,"file":"useOverflowingHorizontalListItems.js","sources":["../../../../../src/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.ts"],"sourcesContent":["import {useLayoutEffect, useMemo, useState} from 'react';\nimport type {RefObject} from 'react';\n\nimport debounceFn from 'lodash/debounce';\n\ntype UseOverflowingContainerListItemsProps<ItemType extends unknown> = {\n containerRef: RefObject<HTMLElement>;\n items?: ItemType[];\n itemSelector: string;\n moreButtonWidth?: number;\n};\n\nexport function useOverflowingHorizontalListItems<ItemType>({\n containerRef,\n items,\n itemSelector,\n moreButtonWidth = 0,\n}: UseOverflowingContainerListItemsProps<ItemType>) {\n const [containerWidth, setContainerWidth] = useState<number>(0);\n const [itemWidths, setItemWidths] = useState<number[]>([]);\n\n useLayoutEffect(() => {\n if (!containerRef.current) {\n return;\n }\n\n const measureItemSizes = () => {\n const itemElements = Array.from(\n containerRef.current?.querySelectorAll(itemSelector) ?? [],\n );\n setItemWidths(itemElements.map((item) => item.clientWidth));\n };\n\n measureItemSizes();\n }, [containerRef, itemSelector]);\n\n useLayoutEffect(() => {\n const footerMenu = containerRef.current;\n\n const updateContainerSize = (entries: ResizeObserverEntry[]) => {\n if (entries.length > 0 && footerMenu) {\n setContainerWidth(entries[0].contentRect.width);\n }\n };\n\n const updateContainerSizeDebounced = debounceFn(updateContainerSize, 100);\n const footerMenuResizeObserver = new ResizeObserver(updateContainerSizeDebounced);\n\n if (footerMenu) {\n footerMenuResizeObserver.observe(footerMenu);\n }\n\n return () => {\n updateContainerSizeDebounced.cancel();\n footerMenuResizeObserver.disconnect();\n };\n }, [containerRef]);\n\n const isMeasured = containerWidth > 0;\n\n const {visibleItems, hiddenItems} = useMemo(() => {\n if (!isMeasured) {\n return {\n visibleItems: items ?? [],\n hiddenItems: [],\n };\n }\n\n const itemsCount = itemWidths.length;\n let visibleItemsCount = 0;\n let remainingContainerWidth = containerWidth;\n for (const width of itemWidths) {\n remainingContainerWidth -= width;\n if (remainingContainerWidth < moreButtonWidth) {\n const isMoreThanOneItemLeft = itemsCount !== visibleItemsCount + 1;\n const hasNoSpaceForTheLastItem = remainingContainerWidth < 0;\n if (isMoreThanOneItemLeft || hasNoSpaceForTheLastItem) {\n break;\n }\n }\n\n visibleItemsCount++;\n }\n\n return {\n visibleItems: items?.slice(0, visibleItemsCount) ?? [],\n hiddenItems: items?.slice(visibleItemsCount) ?? [],\n };\n }, [containerWidth, isMeasured, itemWidths, items, moreButtonWidth]);\n\n return {visibleItems, hiddenItems, measured: isMeasured};\n}\n"],"names":["useState","useLayoutEffect","debounceFn","useMemo"],"mappings":"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"}
1
+ {"version":3,"file":"useOverflowingHorizontalListItems.js","sources":["../../../../../src/hooks/useOverflowingHorizontalListItems/useOverflowingHorizontalListItems.ts"],"sourcesContent":["import {useLayoutEffect, useMemo, useState} from 'react';\nimport type {RefObject} from 'react';\n\nimport debounceFn from 'lodash/debounce';\n\ntype UseOverflowingContainerListItemsProps<ItemType extends unknown> = {\n containerRef: RefObject<HTMLElement>;\n items?: ItemType[];\n itemSelector: string;\n moreButtonWidth?: number;\n};\n\nexport function useOverflowingHorizontalListItems<ItemType>({\n containerRef,\n items,\n itemSelector,\n moreButtonWidth = 0,\n}: UseOverflowingContainerListItemsProps<ItemType>) {\n const [containerWidth, setContainerWidth] = useState<number>(0);\n const [itemWidths, setItemWidths] = useState<number[]>([]);\n\n useLayoutEffect(() => {\n if (!containerRef.current) {\n return;\n }\n\n const measureItemSizes = () => {\n const itemElements = Array.from(\n containerRef.current?.querySelectorAll(itemSelector) ?? [],\n );\n setItemWidths(itemElements.map((item) => item.clientWidth));\n };\n\n measureItemSizes();\n }, [containerRef, itemSelector]);\n\n useLayoutEffect(() => {\n const footerMenu = containerRef.current;\n\n const updateContainerSize = (entries: ResizeObserverEntry[]) => {\n if (entries.length > 0 && footerMenu) {\n setContainerWidth(entries[0].contentRect.width);\n }\n };\n\n const updateContainerSizeDebounced = debounceFn(updateContainerSize, 100);\n const footerMenuResizeObserver = new ResizeObserver(updateContainerSizeDebounced);\n\n if (footerMenu) {\n footerMenuResizeObserver.observe(footerMenu);\n }\n\n return () => {\n updateContainerSizeDebounced.cancel();\n footerMenuResizeObserver.disconnect();\n };\n }, [containerRef]);\n\n const isMeasured = containerWidth > 0;\n\n const {visibleItems, hiddenItems} = useMemo(() => {\n if (!isMeasured) {\n return {\n visibleItems: items ?? [],\n hiddenItems: [],\n };\n }\n\n const itemsCount = itemWidths.length;\n let visibleItemsCount = 0;\n let remainingContainerWidth = containerWidth;\n for (const width of itemWidths) {\n remainingContainerWidth -= width;\n if (remainingContainerWidth < moreButtonWidth) {\n const isMoreThanOneItemLeft = itemsCount !== visibleItemsCount + 1;\n const hasNoSpaceForTheLastItem = remainingContainerWidth < 0;\n if (isMoreThanOneItemLeft || hasNoSpaceForTheLastItem) {\n break;\n }\n }\n\n visibleItemsCount++;\n }\n\n return {\n visibleItems: items?.slice(0, visibleItemsCount) ?? [],\n hiddenItems: items?.slice(visibleItemsCount) ?? [],\n };\n }, [containerWidth, isMeasured, itemWidths, items, moreButtonWidth]);\n\n return {visibleItems, hiddenItems, measured: isMeasured};\n}\n"],"names":["useState","useLayoutEffect","useMemo"],"mappings":"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"}
@@ -1,5 +1,5 @@
1
1
  import './AsideHeader.css';
2
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { __rest } from 'tslib';
3
3
  import React__default from 'react';
4
4
  import { PageLayout } from './components/PageLayout/PageLayout.js';
5
5
  import { PageLayoutAside } from './components/PageLayout/PageLayoutAside.js';
@@ -1,7 +1,7 @@
1
1
  import './HighlightedItem.css';
2
2
  import React__default, { useState, useMemo, useCallback, useEffect } from 'react';
3
3
  import { Portal } from '@gravity-ui/uikit';
4
- import debounceFn from '../../../../../_virtual/debounce.js';
4
+ import debounceFn from 'lodash/debounce';
5
5
  import { createBlock, block } from '../../../../utils/cn.js';
6
6
  import { useAsideHeaderInnerContext } from '../../../AsideHeaderContext.js';
7
7
  import styles from './HighlightedItem.module.scss.js';
@@ -1,4 +1,4 @@
1
- import { __rest } from '../../../node_modules/tslib/tslib.es6.js';
1
+ import { __rest } from 'tslib';
2
2
  import React__default from 'react';
3
3
  import { Drawer } from '@gravity-ui/uikit';
4
4
  import { useAsideHeaderInnerContext } from '../AsideHeaderContext.js';
@@ -1,5 +1,5 @@
1
1
  import './MenuItem.css';
2
- import { __rest } from '../../../node_modules/tslib/tslib.es6.js';
2
+ import { __rest } from 'tslib';
3
3
  import React__default from 'react';
4
4
  import { Menu } from '@gravity-ui/uikit';
5
5
  import { createBlock } from '../../utils/cn.js';
@@ -1,5 +1,5 @@
1
1
  import './HotkeysPanel.css';
2
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { __rest } from 'tslib';
3
3
  import React__default, { useRef, useState, useMemo, useCallback } from 'react';
4
4
  import { Text, HelpMark, Hotkey, TextInput, List, Drawer } from '@gravity-ui/uikit';
5
5
  import { useSafeAsideHeaderContext } from '../AsideHeader/AsideHeaderContext.js';
@@ -1,5 +1,5 @@
1
1
  import './Logo.css';
2
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { __rest } from 'tslib';
3
3
  import React__default from 'react';
4
4
  import { Icon } from '@gravity-ui/uikit';
5
5
  import { createBlock } from '../utils/cn.js';
@@ -1,5 +1,5 @@
1
1
  import './MobileHeader.css';
2
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { __rest } from 'tslib';
3
3
  import React__default, { useState, useCallback, useMemo, useEffect, Suspense } from 'react';
4
4
  import { Drawer } from '@gravity-ui/uikit';
5
5
  import { useForwardRef } from '../../hooks/useForwardRef.js';
@@ -1,8 +1,8 @@
1
1
  import './Settings.css';
2
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
2
+ import { __rest } from 'tslib';
3
3
  import React__default from 'react';
4
4
  import { Loader, Flex } from '@gravity-ui/uikit';
5
- import identity from '../../_virtual/identity.js';
5
+ import identity from 'lodash/identity';
6
6
  import { Title } from '../Title/Title.js';
7
7
  import { useSettingsSelectionProviderValue, SettingsSelectionContextProvider, useSettingsSelectionContext } from './Selection/context.js';
8
8
  import { SettingsContext } from './SettingsContext/SettingsContext.js';
@@ -1,6 +1,6 @@
1
1
  import React__default from 'react';
2
2
  import { ListUl } from '@gravity-ui/icons';
3
- import last from '../../../_virtual/last.js';
3
+ import last from 'lodash/last';
4
4
  import i18n from '../i18n/index.js';
5
5
 
6
6
  const allSearchResultsId = 'allSearchResults';
@@ -1,6 +1,6 @@
1
1
  import React__default, { useEffect } from 'react';
2
2
  import { TextInput } from '@gravity-ui/uikit';
3
- import debounceFn from '../../../_virtual/debounce.js';
3
+ import debounceFn from 'lodash/debounce';
4
4
  import { cn } from '../../utils/cn.js';
5
5
  import { useStableCallback } from '../helpers.js';
6
6
  import i18n from '../i18n/index.js';
@@ -1,4 +1,4 @@
1
- import { __rest } from '../../node_modules/tslib/tslib.es6.js';
1
+ import { __rest } from 'tslib';
2
2
  import React__default from 'react';
3
3
  import { Flex } from '@gravity-ui/uikit';
4
4
  import { useSettingsContext } from './SettingsContext/useSettingsContext.js';
@@ -1,5 +1,5 @@
1
1
  import React__default from 'react';
2
- import debounceFn from '../../_virtual/debounce.js';
2
+ import debounceFn from 'lodash/debounce';
3
3
 
4
4
  const G_ROOT_CLASS_NAME = 'g-root';
5
5
  const useTopAlertHeight = ({ alert }) => {
@@ -1,5 +1,5 @@
1
1
  import { useState, useLayoutEffect, useMemo } from 'react';
2
- import debounceFn from '../../_virtual/debounce.js';
2
+ import debounceFn from 'lodash/debounce';
3
3
 
4
4
  function useOverflowingHorizontalListItems({ containerRef, items, itemSelector, moreButtonWidth = 0, }) {
5
5
  const [containerWidth, setContainerWidth] = useState(0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gravity-ui/navigation",
3
- "version": "4.0.17",
3
+ "version": "4.0.18",
4
4
  "description": "Gravity UI Navigation components",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -52,7 +52,9 @@
52
52
  "dependencies": {
53
53
  "commander": "^11.0.0",
54
54
  "jscodeshift": "^0.15.0",
55
- "tslib": "^2.8.1"
55
+ "tslib": "^2.8.1",
56
+ "lodash": "^4.17.21",
57
+ "react-virtualized-auto-sizer": "^1.0.20"
56
58
  },
57
59
  "devDependencies": {
58
60
  "@babel/core": "^7.26.0",
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
-
5
- function getDefaultExportFromCjs (x) {
6
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
7
- }
8
-
9
- exports.commonjsGlobal = commonjsGlobal;
10
- exports.getDefaultExportFromCjs = getDefaultExportFromCjs;
11
- //# sourceMappingURL=_commonjsHelpers.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_commonjsHelpers.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _commonjsHelpers = require('./_commonjsHelpers.js');
6
- var debounce = require('../node_modules/lodash/debounce.js');
7
-
8
- var debounceExports = debounce.__require();
9
- var debounceFn = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(debounceExports);
10
-
11
- exports.default = debounceFn;
12
- //# sourceMappingURL=debounce.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"debounce.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _commonjsHelpers = require('./_commonjsHelpers.js');
6
- var identity$1 = require('../node_modules/lodash/identity.js');
7
-
8
- var identityExports = identity$1.__require();
9
- var identity = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(identityExports);
10
-
11
- exports.default = identity;
12
- //# sourceMappingURL=identity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"identity.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- var _commonjsHelpers = require('./_commonjsHelpers.js');
6
- var last$1 = require('../node_modules/lodash/last.js');
7
-
8
- var lastExports = last$1.__require();
9
- var last = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(lastExports);
10
-
11
- exports.default = last;
12
- //# sourceMappingURL=last.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"last.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
@@ -1,21 +0,0 @@
1
- 'use strict';
2
-
3
- var _root = require('./_root.js');
4
-
5
- var _Symbol;
6
- var hasRequired_Symbol;
7
-
8
- function require_Symbol () {
9
- if (hasRequired_Symbol) return _Symbol;
10
- hasRequired_Symbol = 1;
11
- var root = _root.__require();
12
-
13
- /** Built-in value references. */
14
- var Symbol = root.Symbol;
15
-
16
- _Symbol = Symbol;
17
- return _Symbol;
18
- }
19
-
20
- exports.__require = require_Symbol;
21
- //# sourceMappingURL=_Symbol.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_Symbol.js","sources":["../../../../node_modules/lodash/_Symbol.js"],"sourcesContent":["var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n"],"names":["require$$0"],"mappings":";;;;;;;;;;CAAA,IAAI,IAAI,GAAGA,eAAkB,EAAA;;AAE7B;AACA,CAAA,IAAI,MAAM,GAAG,IAAI,CAAC,MAAM;;AAExB,CAAA,OAAc,GAAG,MAAM;;;;;;","x_google_ignoreList":[0]}
@@ -1,45 +0,0 @@
1
- 'use strict';
2
-
3
- var _Symbol = require('./_Symbol.js');
4
- var _getRawTag = require('./_getRawTag.js');
5
- var _objectToString = require('./_objectToString.js');
6
-
7
- var _baseGetTag;
8
- var hasRequired_baseGetTag;
9
-
10
- function require_baseGetTag () {
11
- if (hasRequired_baseGetTag) return _baseGetTag;
12
- hasRequired_baseGetTag = 1;
13
- var Symbol = _Symbol.__require(),
14
- getRawTag = _getRawTag.__require(),
15
- objectToString = _objectToString.__require();
16
-
17
- /** `Object#toString` result references. */
18
- var nullTag = '[object Null]',
19
- undefinedTag = '[object Undefined]';
20
-
21
- /** Built-in value references. */
22
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
23
-
24
- /**
25
- * The base implementation of `getTag` without fallbacks for buggy environments.
26
- *
27
- * @private
28
- * @param {*} value The value to query.
29
- * @returns {string} Returns the `toStringTag`.
30
- */
31
- function baseGetTag(value) {
32
- if (value == null) {
33
- return value === undefined ? undefinedTag : nullTag;
34
- }
35
- return (symToStringTag && symToStringTag in Object(value))
36
- ? getRawTag(value)
37
- : objectToString(value);
38
- }
39
-
40
- _baseGetTag = baseGetTag;
41
- return _baseGetTag;
42
- }
43
-
44
- exports.__require = require_baseGetTag;
45
- //# sourceMappingURL=_baseGetTag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_baseGetTag.js","sources":["../../../../node_modules/lodash/_baseGetTag.js"],"sourcesContent":["var Symbol = require('./_Symbol'),\n getRawTag = require('./_getRawTag'),\n objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n"],"names":["require$$0","require$$1","require$$2"],"mappings":";;;;;;;;;;;;CAAA,IAAI,MAAM,GAAGA,iBAAoB,EAAA;KAC7B,SAAS,GAAGC,oBAAuB,EAAA;KACnC,cAAc,GAAGC,yBAA4B,EAAA;;AAEjD;CACA,IAAI,OAAO,GAAG,eAAe;KACzB,YAAY,GAAG,oBAAoB;;AAEvC;CACA,IAAI,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC,WAAW,GAAG,SAAS;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,UAAU,CAAC,KAAK,EAAE;AAC3B,GAAE,IAAI,KAAK,IAAI,IAAI,EAAE;AACrB,KAAI,OAAO,KAAK,KAAK,SAAS,GAAG,YAAY,GAAG,OAAO;AACvD;GACE,OAAO,CAAC,cAAc,IAAI,cAAc,IAAI,MAAM,CAAC,KAAK,CAAC;OACrD,SAAS,CAAC,KAAK;OACf,cAAc,CAAC,KAAK,CAAC;AAC3B;;AAEA,CAAA,WAAc,GAAG,UAAU;;;;;;","x_google_ignoreList":[0]}
@@ -1,34 +0,0 @@
1
- 'use strict';
2
-
3
- var _trimmedEndIndex = require('./_trimmedEndIndex.js');
4
-
5
- var _baseTrim;
6
- var hasRequired_baseTrim;
7
-
8
- function require_baseTrim () {
9
- if (hasRequired_baseTrim) return _baseTrim;
10
- hasRequired_baseTrim = 1;
11
- var trimmedEndIndex = _trimmedEndIndex.__require();
12
-
13
- /** Used to match leading whitespace. */
14
- var reTrimStart = /^\s+/;
15
-
16
- /**
17
- * The base implementation of `_.trim`.
18
- *
19
- * @private
20
- * @param {string} string The string to trim.
21
- * @returns {string} Returns the trimmed string.
22
- */
23
- function baseTrim(string) {
24
- return string
25
- ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')
26
- : string;
27
- }
28
-
29
- _baseTrim = baseTrim;
30
- return _baseTrim;
31
- }
32
-
33
- exports.__require = require_baseTrim;
34
- //# sourceMappingURL=_baseTrim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_baseTrim.js","sources":["../../../../node_modules/lodash/_baseTrim.js"],"sourcesContent":["var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n"],"names":["require$$0"],"mappings":";;;;;;;;;;CAAA,IAAI,eAAe,GAAGA,0BAA6B,EAAA;;AAEnD;CACA,IAAI,WAAW,GAAG,MAAM;;AAExB;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,QAAQ,CAAC,MAAM,EAAE;AAC1B,GAAE,OAAO;AACT,OAAM,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,CAAC,WAAW,EAAE,EAAE;AAC1E,OAAM,MAAM;AACZ;;AAEA,CAAA,SAAc,GAAG,QAAQ;;;;;;","x_google_ignoreList":[0]}
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- var _commonjsHelpers = require('../../_virtual/_commonjsHelpers.js');
4
-
5
- /** Detect free variable `global` from Node.js. */
6
-
7
- var _freeGlobal;
8
- var hasRequired_freeGlobal;
9
-
10
- function require_freeGlobal () {
11
- if (hasRequired_freeGlobal) return _freeGlobal;
12
- hasRequired_freeGlobal = 1;
13
- var freeGlobal = typeof _commonjsHelpers.commonjsGlobal == 'object' && _commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal.Object === Object && _commonjsHelpers.commonjsGlobal;
14
-
15
- _freeGlobal = freeGlobal;
16
- return _freeGlobal;
17
- }
18
-
19
- exports.__require = require_freeGlobal;
20
- //# sourceMappingURL=_freeGlobal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_freeGlobal.js","sources":["../../../../node_modules/lodash/_freeGlobal.js"],"sourcesContent":["/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n"],"names":["global"],"mappings":";;;;;;;;;;;;AACA,CAAA,IAAI,UAAU,GAAG,OAAOA,+BAAM,IAAI,QAAQ,IAAIA,+BAAM,IAAIA,+BAAM,CAAC,MAAM,KAAK,MAAM,IAAIA,+BAAM;;AAE1F,CAAA,WAAc,GAAG,UAAU;;;;;;","x_google_ignoreList":[0]}
@@ -1,61 +0,0 @@
1
- 'use strict';
2
-
3
- var _Symbol = require('./_Symbol.js');
4
-
5
- var _getRawTag;
6
- var hasRequired_getRawTag;
7
-
8
- function require_getRawTag () {
9
- if (hasRequired_getRawTag) return _getRawTag;
10
- hasRequired_getRawTag = 1;
11
- var Symbol = _Symbol.__require();
12
-
13
- /** Used for built-in method references. */
14
- var objectProto = Object.prototype;
15
-
16
- /** Used to check objects for own properties. */
17
- var hasOwnProperty = objectProto.hasOwnProperty;
18
-
19
- /**
20
- * Used to resolve the
21
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
22
- * of values.
23
- */
24
- var nativeObjectToString = objectProto.toString;
25
-
26
- /** Built-in value references. */
27
- var symToStringTag = Symbol ? Symbol.toStringTag : undefined;
28
-
29
- /**
30
- * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.
31
- *
32
- * @private
33
- * @param {*} value The value to query.
34
- * @returns {string} Returns the raw `toStringTag`.
35
- */
36
- function getRawTag(value) {
37
- var isOwn = hasOwnProperty.call(value, symToStringTag),
38
- tag = value[symToStringTag];
39
-
40
- try {
41
- value[symToStringTag] = undefined;
42
- var unmasked = true;
43
- } catch (e) {}
44
-
45
- var result = nativeObjectToString.call(value);
46
- if (unmasked) {
47
- if (isOwn) {
48
- value[symToStringTag] = tag;
49
- } else {
50
- delete value[symToStringTag];
51
- }
52
- }
53
- return result;
54
- }
55
-
56
- _getRawTag = getRawTag;
57
- return _getRawTag;
58
- }
59
-
60
- exports.__require = require_getRawTag;
61
- //# sourceMappingURL=_getRawTag.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_getRawTag.js","sources":["../../../../node_modules/lodash/_getRawTag.js"],"sourcesContent":["var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n"],"names":["require$$0"],"mappings":";;;;;;;;;;CAAA,IAAI,MAAM,GAAGA,iBAAoB,EAAA;;AAEjC;AACA,CAAA,IAAI,WAAW,GAAG,MAAM,CAAC,SAAS;;AAElC;AACA,CAAA,IAAI,cAAc,GAAG,WAAW,CAAC,cAAc;;AAE/C;AACA;AACA;AACA;AACA;AACA,CAAA,IAAI,oBAAoB,GAAG,WAAW,CAAC,QAAQ;;AAE/C;CACA,IAAI,cAAc,GAAG,MAAM,GAAG,MAAM,CAAC,WAAW,GAAG,SAAS;;AAE5D;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,SAAS,CAAC,KAAK,EAAE;GACxB,IAAI,KAAK,GAAG,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,cAAc,CAAC;AACxD,OAAM,GAAG,GAAG,KAAK,CAAC,cAAc,CAAC;;AAEjC,GAAE,IAAI;AACN,KAAI,KAAK,CAAC,cAAc,CAAC,GAAG,SAAS;KACjC,IAAI,QAAQ,GAAG,IAAI;IACpB,CAAC,OAAO,CAAC,EAAE;;GAEZ,IAAI,MAAM,GAAG,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC;GAC7C,IAAI,QAAQ,EAAE;KACZ,IAAI,KAAK,EAAE;AACf,OAAM,KAAK,CAAC,cAAc,CAAC,GAAG,GAAG;AACjC,MAAK,MAAM;AACX,OAAM,OAAO,KAAK,CAAC,cAAc,CAAC;AAClC;AACA;AACA,GAAE,OAAO,MAAM;AACf;;AAEA,CAAA,UAAc,GAAG,SAAS;;;;;;","x_google_ignoreList":[0]}
@@ -1,36 +0,0 @@
1
- 'use strict';
2
-
3
- /** Used for built-in method references. */
4
-
5
- var _objectToString;
6
- var hasRequired_objectToString;
7
-
8
- function require_objectToString () {
9
- if (hasRequired_objectToString) return _objectToString;
10
- hasRequired_objectToString = 1;
11
- var objectProto = Object.prototype;
12
-
13
- /**
14
- * Used to resolve the
15
- * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)
16
- * of values.
17
- */
18
- var nativeObjectToString = objectProto.toString;
19
-
20
- /**
21
- * Converts `value` to a string using `Object.prototype.toString`.
22
- *
23
- * @private
24
- * @param {*} value The value to convert.
25
- * @returns {string} Returns the converted string.
26
- */
27
- function objectToString(value) {
28
- return nativeObjectToString.call(value);
29
- }
30
-
31
- _objectToString = objectToString;
32
- return _objectToString;
33
- }
34
-
35
- exports.__require = require_objectToString;
36
- //# sourceMappingURL=_objectToString.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_objectToString.js","sources":["../../../../node_modules/lodash/_objectToString.js"],"sourcesContent":["/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n"],"names":[],"mappings":";;;;;;;;;;AACA,CAAA,IAAI,WAAW,GAAG,MAAM,CAAC,SAAS;;AAElC;AACA;AACA;AACA;AACA;AACA,CAAA,IAAI,oBAAoB,GAAG,WAAW,CAAC,QAAQ;;AAE/C;AACA;AACA;AACA;AACA;AACA;AACA;CACA,SAAS,cAAc,CAAC,KAAK,EAAE;AAC/B,GAAE,OAAO,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC;AACzC;;AAEA,CAAA,eAAc,GAAG,cAAc;;;;;;","x_google_ignoreList":[0]}
@@ -1,24 +0,0 @@
1
- 'use strict';
2
-
3
- var _freeGlobal = require('./_freeGlobal.js');
4
-
5
- var _root;
6
- var hasRequired_root;
7
-
8
- function require_root () {
9
- if (hasRequired_root) return _root;
10
- hasRequired_root = 1;
11
- var freeGlobal = _freeGlobal.__require();
12
-
13
- /** Detect free variable `self`. */
14
- var freeSelf = typeof self == 'object' && self && self.Object === Object && self;
15
-
16
- /** Used as a reference to the global object. */
17
- var root = freeGlobal || freeSelf || Function('return this')();
18
-
19
- _root = root;
20
- return _root;
21
- }
22
-
23
- exports.__require = require_root;
24
- //# sourceMappingURL=_root.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"_root.js","sources":["../../../../node_modules/lodash/_root.js"],"sourcesContent":["var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n"],"names":["require$$0"],"mappings":";;;;;;;;;;CAAA,IAAI,UAAU,GAAGA,qBAAwB,EAAA;;AAEzC;AACA,CAAA,IAAI,QAAQ,GAAG,OAAO,IAAI,IAAI,QAAQ,IAAI,IAAI,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,IAAI,IAAI;;AAEhF;CACA,IAAI,IAAI,GAAG,UAAU,IAAI,QAAQ,IAAI,QAAQ,CAAC,aAAa,CAAC,EAAE;;AAE9D,CAAA,KAAc,GAAG,IAAI;;;;;;","x_google_ignoreList":[0]}