@daisforge/ui 1.21.0 → 1.22.0

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 (275) hide show
  1. package/chunks/{FiltersActions-CDZSO0MM.mjs → FiltersActions-BJ5gD6Nx.mjs} +26 -24
  2. package/chunks/FiltersActions-Bg5wvHFG.cjs +1 -0
  3. package/chunks/{ListOfFilters-Bd8CZHDq.mjs → ListOfFilters-CfV2bs_4.mjs} +2 -2
  4. package/chunks/{ListOfFilters-BAPz0OY9.cjs → ListOfFilters-mqTsQbq_.cjs} +1 -1
  5. package/chunks/MassActions-BTrj9l-R.cjs +1 -0
  6. package/chunks/{MassActions-D5UwHcNG.mjs → MassActions-C6LY-g9r.mjs} +214 -213
  7. package/chunks/{Table-DYSssxRS.mjs → Table-tUWuA3Ri.mjs} +1113 -1112
  8. package/chunks/Table-vv1HTrxe.cjs +31 -0
  9. package/chunks/{TableCanvas-DDNRdQjN.mjs → TableCanvas-BX5aciu7.mjs} +2850 -2793
  10. package/chunks/TableCanvas-qnwh4c5g.cjs +30 -0
  11. package/chunks/{TableGlide-DAnTJtye.mjs → TableGlide-BLbbkn4C.mjs} +5669 -5326
  12. package/chunks/TableGlide-CZ2mkokV.cjs +1 -0
  13. package/components/Combobox/index.cjs +1 -1
  14. package/components/Combobox/index.mjs +1 -1
  15. package/components/ListOfFilters/index.cjs +1 -1
  16. package/components/ListOfFilters/index.mjs +1 -1
  17. package/components/MassActions/hooks/index.cjs +1 -1
  18. package/components/MassActions/hooks/index.mjs +1 -1
  19. package/components/MassActions/index.cjs +1 -1
  20. package/components/MassActions/index.mjs +1 -1
  21. package/components/MassActions/types.d.ts +1 -0
  22. package/components/Table/components/TableDropdown/index.cjs +1 -1
  23. package/components/Table/components/TableDropdown/index.mjs +1 -1
  24. package/components/Table/feature-collapse-table/index.cjs +1 -1
  25. package/components/Table/feature-collapse-table/index.mjs +1 -1
  26. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  27. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  28. package/components/Table/feature-column-control/index.cjs +1 -1
  29. package/components/Table/feature-column-control/index.mjs +1 -1
  30. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  31. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  32. package/components/Table/feature-context-menu/index.cjs +1 -1
  33. package/components/Table/feature-context-menu/index.mjs +1 -1
  34. package/components/Table/feature-edit/index.cjs +1 -1
  35. package/components/Table/feature-edit/index.mjs +1 -1
  36. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  37. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  38. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  39. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  40. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  41. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  42. package/components/Table/feature-filtering/index.cjs +1 -1
  43. package/components/Table/feature-filtering/index.mjs +1 -1
  44. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  45. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  46. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  47. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  48. package/components/Table/feature-key-text/index.cjs +1 -1
  49. package/components/Table/feature-key-text/index.mjs +1 -1
  50. package/components/Table/feature-pagination/index.cjs +1 -1
  51. package/components/Table/feature-pagination/index.mjs +1 -1
  52. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  53. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  54. package/components/Table/feature-row-detail/index.cjs +1 -1
  55. package/components/Table/feature-row-detail/index.mjs +1 -1
  56. package/components/Table/feature-row-instruments/index.cjs +1 -1
  57. package/components/Table/feature-row-instruments/index.mjs +1 -1
  58. package/components/Table/feature-row-size/index.cjs +1 -1
  59. package/components/Table/feature-row-size/index.mjs +1 -1
  60. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  61. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  62. package/components/Table/feature-searching/index.cjs +1 -1
  63. package/components/Table/feature-searching/index.mjs +1 -1
  64. package/components/Table/feature-select-row/index.cjs +1 -1
  65. package/components/Table/feature-select-row/index.mjs +1 -1
  66. package/components/Table/feature-sorting/index.cjs +1 -1
  67. package/components/Table/feature-sorting/index.mjs +1 -1
  68. package/components/Table/feature-table-settings/index.cjs +1 -1
  69. package/components/Table/feature-table-settings/index.mjs +1 -1
  70. package/components/Table/feature-tree/index.cjs +1 -1
  71. package/components/Table/feature-tree/index.mjs +1 -1
  72. package/components/Table/index.cjs +1 -1
  73. package/components/Table/index.mjs +1 -1
  74. package/components/Table/renders/formatCell/index.cjs +1 -1
  75. package/components/Table/renders/formatCell/index.mjs +1 -1
  76. package/components/Table/styles/index.cjs +1 -1
  77. package/components/Table/styles/index.mjs +1 -1
  78. package/components/Table/table-hooks/index.cjs +1 -1
  79. package/components/Table/table-hooks/index.mjs +1 -1
  80. package/components/Table/types/index.cjs +1 -1
  81. package/components/Table/types/index.mjs +1 -1
  82. package/components/Table/types/table-config.type.d.ts +1 -0
  83. package/components/Table/utils/index.cjs +1 -1
  84. package/components/Table/utils/index.mjs +1 -1
  85. package/components/Table/widgets/control-block/index.cjs +1 -1
  86. package/components/Table/widgets/control-block/index.mjs +1 -1
  87. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  88. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  89. package/components/Table/widgets/index.cjs +1 -1
  90. package/components/Table/widgets/index.mjs +1 -1
  91. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  92. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  93. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  94. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  95. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  96. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  97. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  98. package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
  99. package/components/TableCanvas/TableGlideInstance/reexports-for-external.d.ts +4 -1
  100. package/components/TableCanvas/TableGlideInstance/type.d.ts +1 -1
  101. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  102. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  103. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  104. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  105. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  106. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  107. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  108. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  109. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  110. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  111. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  112. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  113. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  114. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  115. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  116. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  117. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  118. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  119. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  120. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  121. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  122. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  123. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  124. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  125. package/components/TableCanvas/feature-edit/types.d.ts +1 -1
  126. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  127. package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
  128. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  129. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  130. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  131. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  132. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  133. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  134. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  135. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  136. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  137. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  138. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  139. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  140. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  141. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  142. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  143. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  144. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  145. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  146. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  147. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  148. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  149. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  150. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  151. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  152. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  153. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  154. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  155. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  156. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  157. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  158. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  159. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  160. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  161. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  162. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  163. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  164. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  165. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  166. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  167. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  168. package/components/TableCanvas/feature-select-row/types.d.ts +1 -0
  169. package/components/TableCanvas/feature-select-row/useSelectRow.d.ts +1 -0
  170. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  171. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  172. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  173. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  174. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  175. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  176. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  177. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  178. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  179. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  180. package/components/TableCanvas/index.cjs +1 -1
  181. package/components/TableCanvas/index.mjs +2 -2
  182. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  183. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  184. package/components/TableCanvas/renders/renderEditCell.d.ts +1 -1
  185. package/components/TableCanvas/styles/index.cjs +1 -1
  186. package/components/TableCanvas/styles/index.mjs +1 -1
  187. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  188. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  189. package/components/TableCanvas/types/index.cjs +1 -1
  190. package/components/TableCanvas/types/index.mjs +1 -1
  191. package/components/TableCanvas/types/table-config.type.d.ts +1 -0
  192. package/components/TableCanvas/utils/index.cjs +1 -1
  193. package/components/TableCanvas/utils/index.mjs +1 -1
  194. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  195. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  196. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  197. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  198. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  199. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  200. package/components/TableCanvas/widgets/index.cjs +1 -1
  201. package/components/TableCanvas/widgets/index.mjs +1 -1
  202. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  203. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  204. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  205. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  206. package/components/TableContract/index.cjs +1 -1
  207. package/components/TableContract/index.mjs +1 -1
  208. package/components/TableGlide/cellRenderer.d.ts +2 -1
  209. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  210. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  211. package/components/TableGlide/index.cjs +1 -1
  212. package/components/TableGlide/index.mjs +92 -89
  213. package/components/TableGlide/lib/canvas/cells/CellCanvasRoot.d.ts +2 -1
  214. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  215. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  216. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  217. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  218. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  219. package/components/TableGlide/lib/canvas/cells/index.mjs +19 -19
  220. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  221. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  222. package/components/TableGlide/lib/canvas/cells/renderer/types.d.ts +4 -2
  223. package/components/TableGlide/lib/canvas/cells/types.d.ts +3 -1
  224. package/components/TableGlide/lib/canvas/components/index.d.ts +31 -4
  225. package/components/TableGlide/lib/canvas/core/CanvasImageResources.d.ts +7 -0
  226. package/components/TableGlide/lib/canvas/core/CanvasImageTransitions.d.ts +11 -0
  227. package/components/TableGlide/lib/canvas/core/DrawBatcher.d.ts +5 -0
  228. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  229. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  230. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  231. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  232. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  233. package/components/TableGlide/lib/canvas/hooks/index.mjs +4 -4
  234. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  235. package/components/TableGlide/lib/canvas/index.d.ts +7 -7
  236. package/components/TableGlide/lib/canvas/index.mjs +70 -67
  237. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  238. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  239. package/components/TableGlide/lib/canvas/primitives/CanvasAvatar.d.ts +58 -0
  240. package/components/TableGlide/lib/canvas/primitives/CanvasAvatarGroup.d.ts +45 -0
  241. package/components/TableGlide/lib/canvas/primitives/CanvasImage.d.ts +17 -0
  242. package/components/TableGlide/lib/canvas/primitives/avatar/geometry.d.ts +6 -0
  243. package/components/TableGlide/lib/canvas/primitives/image/image.d.ts +20 -0
  244. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  245. package/components/TableGlide/lib/canvas/primitives/index.d.ts +11 -4
  246. package/components/TableGlide/lib/canvas/primitives/index.mjs +14 -11
  247. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  248. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  249. package/components/TableGlide/theming/index.cjs +1 -1
  250. package/components/TableGlide/theming/index.mjs +1 -1
  251. package/components/TableGlide/tokens.d.ts +3 -0
  252. package/components/TourWidget/TourWidget.palette.d.ts +36 -0
  253. package/components/TourWidget/TourWidget.styled.d.ts +4 -0
  254. package/components/TourWidget/TourWidget.tokens.d.ts +52 -0
  255. package/components/TourWidget/hooks/useIsDarkTheme.d.ts +1 -0
  256. package/components/TourWidget/index.cjs +22 -22
  257. package/components/TourWidget/index.d.ts +1 -0
  258. package/components/TourWidget/index.mjs +269 -179
  259. package/formComponents/FormCombobox/index.cjs +1 -1
  260. package/formComponents/FormCombobox/index.mjs +1 -1
  261. package/formComponents/FormSwitch/index.cjs +1 -1
  262. package/formComponents/FormSwitch/index.mjs +1 -1
  263. package/index.cjs +1 -1
  264. package/index.mjs +1609 -1608
  265. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  266. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  267. package/layouts/FiltersActions/index.cjs +1 -1
  268. package/layouts/FiltersActions/index.mjs +1 -1
  269. package/mcp-data/component-index.json +848 -254
  270. package/package.json +2 -2
  271. package/chunks/FiltersActions-CVtgAJnC.cjs +0 -1
  272. package/chunks/MassActions-C08IgW4a.cjs +0 -1
  273. package/chunks/Table-CdaMPDkg.cjs +0 -31
  274. package/chunks/TableCanvas-DPHSYfH3.cjs +0 -30
  275. package/chunks/TableGlide-am_w97mF.cjs +0 -1
@@ -1,9 +1,9 @@
1
1
  import { IconButton as E, Dropdown as J, Button as K, TabItem as Q, Tabs as Y, BodyM as tt, BodyXS as et, Popover as it, LinkButton as ot, SegmentItem as nt, Switch as st, Tooltip as rt } from "@salutejs/sdds-finai";
2
- import { jsx as o, jsxs as y, Fragment as lt } from "react/jsx-runtime";
2
+ import { jsx as o, jsxs as x, Fragment as lt } from "react/jsx-runtime";
3
3
  import { IconDotsVerticalCenteredOutline as at, IconSettingsFilter as W, IconClose as P, IconResizeCorneredFill as dt } from "@salutejs/plasma-icons";
4
4
  import c, { css as D } from "styled-components";
5
5
  import { Box as A } from "../components/Box/index.mjs";
6
- import { D as ct } from "./Table-DYSssxRS.mjs";
6
+ import { D as ct } from "./Table-tUWuA3Ri.mjs";
7
7
  import { surfaceNegative as pt, textSecondary as ht, surfaceSolidCard as ft, borderRadiusM as ut, shadowDownHardS as mt, textTertiary as gt, surfaceTransparentSecondary as yt, borderRadiusL as xt, inverseTextPrimary as vt, bodyXS as wt } from "@salutejs/sdds-themes/tokens/sdds_finai";
8
8
  import { lazy as bt, useState as M, useCallback as T, forwardRef as Ft, useRef as I, useLayoutEffect as St, useMemo as Bt, useEffect as Tt } from "react";
9
9
  import { IconButtonDots as Ct } from "../components/IconButton/index.mjs";
@@ -46,7 +46,7 @@ const ce = ({
46
46
  size: l ?? "s",
47
47
  type: "button",
48
48
  contentLeft: !e && /* @__PURE__ */ o(W, { size: s ?? "s" }),
49
- children: /* @__PURE__ */ y(lt, { children: [
49
+ children: /* @__PURE__ */ x(lt, { children: [
50
50
  r ?? (!e && (h.text ?? "Ещё фильтры")),
51
51
  e && /* @__PURE__ */ o(W, { size: s ?? "s" }),
52
52
  /* @__PURE__ */ o($, { visible: t })
@@ -54,7 +54,7 @@ const ce = ({
54
54
  ...h
55
55
  })).withConfig({
56
56
  displayName: "FiltersButton__FiltersActionsFiltersButton"
57
- })(["position:relative;white-space:nowrap;"]), It = bt(() => import("./ListOfFilters-Bd8CZHDq.mjs").then((t) => t.a)), Rt = c(It).attrs(({
57
+ })(["position:relative;white-space:nowrap;"]), It = bt(() => import("./ListOfFilters-CfV2bs_4.mjs").then((t) => t.a)), Rt = c(It).attrs(({
58
58
  paddingTop: t,
59
59
  ...e
60
60
  }) => ({
@@ -95,7 +95,9 @@ const ce = ({
95
95
  displayName: "FiltersButtonWithPopover__PopoverHeaderTop"
96
96
  })(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]), Et = c.div.withConfig({
97
97
  displayName: "FiltersButtonWithPopover__HeaderText"
98
- })(["display:flex;flex-direction:column;gap:4px;margin-bottom:8px;"]), Pt = c.div.withConfig({
98
+ })(["display:flex;flex-direction:column;gap:4px;margin-bottom:", ";"], ({
99
+ $searchable: t
100
+ }) => t ? "8px" : "0"), Pt = c.div.withConfig({
99
101
  displayName: "FiltersButtonWithPopover__PopoverMainContent"
100
102
  })(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]), Dt = c.div.withConfig({
101
103
  displayName: "FiltersButtonWithPopover__PopoverFooter"
@@ -108,7 +110,7 @@ const ce = ({
108
110
  width: 360,
109
111
  height: 430
110
112
  },
111
- directions: ["bottom-right", "right", "top-right"],
113
+ directions: ["bottom-right"],
112
114
  icons: {
113
115
  topRight: null,
114
116
  bottomRight: /* @__PURE__ */ o(dt, { color: gt }),
@@ -127,10 +129,10 @@ const ce = ({
127
129
  popoverProps: p = {},
128
130
  buttonProps: i,
129
131
  renderTarget: a,
130
- searchable: v,
132
+ searchable: y,
131
133
  searchValue: w,
132
134
  onSearchChange: g,
133
- searchingProps: x,
135
+ searchingProps: v,
134
136
  emptySearchContent: m
135
137
  }) => {
136
138
  const {
@@ -165,18 +167,18 @@ const ce = ({
165
167
  (O = i == null ? void 0 : i.onClick) == null || O.call(i, u), N();
166
168
  }
167
169
  }
168
- ), placement: "bottom-start", offset: [0, 2], trigger: "click", hasArrow: !1, closeOnOverlayClick: !0, closeOnEsc: !0, isFocusTrapped: !0, usePortal: !0, animated: !0, resizable: _, ...b, children: /* @__PURE__ */ y(Ot, { children: [
169
- /* @__PURE__ */ y(Wt, { children: [
170
- /* @__PURE__ */ y(Lt, { children: [
171
- /* @__PURE__ */ y(Et, { children: [
170
+ ), placement: "bottom-start", offset: [0, 2], trigger: "click", hasArrow: !1, closeOnOverlayClick: !0, closeOnEsc: !0, isFocusTrapped: !0, usePortal: !0, animated: !0, resizable: _, ...b, children: /* @__PURE__ */ x(Ot, { children: [
171
+ /* @__PURE__ */ x(Wt, { children: [
172
+ /* @__PURE__ */ x(Lt, { children: [
173
+ /* @__PURE__ */ x(Et, { $searchable: y, children: [
172
174
  /* @__PURE__ */ o(tt, { bold: !0, children: t }),
173
175
  e && /* @__PURE__ */ o(et, { color: ht, children: e })
174
176
  ] }),
175
177
  /* @__PURE__ */ o(E, { onClick: Z, size: "xs", view: "secondary", pin: "circle-circle", title: "Закрыть", style: {
176
- marginBottom: "8px"
178
+ marginBottom: y ? "8px" : void 0
177
179
  }, children: /* @__PURE__ */ o(P, { size: "xs" }) })
178
180
  ] }),
179
- v && /* @__PURE__ */ o(H, { value: w, onChange: (u) => g == null ? void 0 : g(u.target.value), placeholder: "Поиск", ...x })
181
+ y && /* @__PURE__ */ o(H, { value: w, onChange: (u) => g == null ? void 0 : g(u.target.value), placeholder: "Поиск", ...v })
180
182
  ] }),
181
183
  /* @__PURE__ */ o(Pt, { children: m || l }),
182
184
  h && /* @__PURE__ */ o(Dt, { children: h })
@@ -253,12 +255,12 @@ const ce = ({
253
255
  } = {},
254
256
  onResize: i
255
257
  }) => {
256
- const a = I(null), v = I(null), w = I(null);
258
+ const a = I(null), y = I(null), w = I(null);
257
259
  return St(() => {
258
260
  if (!i)
259
261
  return;
260
- const g = a.current, x = v.current, m = w.current;
261
- if (!g || !x)
262
+ const g = a.current, v = y.current, m = w.current;
263
+ if (!g || !v)
262
264
  return;
263
265
  const d = {
264
266
  containerWidth: 0,
@@ -266,18 +268,18 @@ const ce = ({
266
268
  buttonsBlockWidth: 0,
267
269
  availableMainBlockWidth: 0
268
270
  }, b = () => {
269
- const _ = g.getBoundingClientRect().width, C = x.getBoundingClientRect().width, k = m ? m.getBoundingClientRect().width : 0, F = C;
271
+ const _ = g.getBoundingClientRect().width, C = v.getBoundingClientRect().width, k = m ? m.getBoundingClientRect().width : 0, F = C;
270
272
  d.containerWidth = _, d.mainBlockWidth = C, d.buttonsBlockWidth = k, d.availableMainBlockWidth = F, i({
271
273
  ...d
272
274
  });
273
275
  }, B = _t(() => {
274
276
  b();
275
277
  });
276
- return B.observe(g), B.observe(x), m && B.observe(m), b(), () => {
278
+ return B.observe(g), B.observe(v), m && B.observe(m), b(), () => {
277
279
  B.disconnect();
278
280
  };
279
- }, [i]), /* @__PURE__ */ o(Xt, { ref: a, ...r, children: /* @__PURE__ */ y(G, { children: [
280
- /* @__PURE__ */ y(Zt, { $css: Ut(s, h), ...p, ref: kt(n, v), children: [
281
+ }, [i]), /* @__PURE__ */ o(Xt, { ref: a, ...r, children: /* @__PURE__ */ x(G, { children: [
282
+ /* @__PURE__ */ x(Zt, { $css: Ut(s, h), ...p, ref: kt(n, y), children: [
281
283
  t,
282
284
  l && /* @__PURE__ */ o(Gt, { ref: w, children: l })
283
285
  ] }),
@@ -305,7 +307,7 @@ function L(t, e, l) {
305
307
  hidden: h = [],
306
308
  modifications: n = {},
307
309
  customActions: p = {}
308
- } = l, i = new Set(s), a = new Set(r), v = new Set(h), w = t.filter((d) => i.has(d.id)), g = t.filter((d) => a.has(d.id)), x = t.filter((d) => v.has(d.id)), m = [];
310
+ } = l, i = new Set(s), a = new Set(r), y = new Set(h), w = t.filter((d) => i.has(d.id)), g = t.filter((d) => a.has(d.id)), v = t.filter((d) => y.has(d.id)), m = [];
309
311
  return s.forEach((d) => {
310
312
  m.push({
311
313
  type: "show",
@@ -333,7 +335,7 @@ function L(t, e, l) {
333
335
  }), {
334
336
  visibleItems: w,
335
337
  overlayItems: g,
336
- hiddenItems: x,
338
+ hiddenItems: v,
337
339
  modifications: n,
338
340
  actions: m,
339
341
  activeBreakpoint: e,
@@ -384,7 +386,7 @@ const pe = ({
384
386
  })(["color:", ";", " & > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"], () => vt, () => qt()), Kt = ({
385
387
  groupLabel: t,
386
388
  items: e
387
- }) => /* @__PURE__ */ y(Jt, { children: [
389
+ }) => /* @__PURE__ */ x(Jt, { children: [
388
390
  /* @__PURE__ */ o("span", { children: t }),
389
391
  /* @__PURE__ */ o("ul", { children: e.map((l) => /* @__PURE__ */ o("li", { children: l })) })
390
392
  ] }), he = ({
@@ -0,0 +1 @@
1
+ "use strict";const g=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),C=require("@salutejs/plasma-icons"),d=require("styled-components"),z=require("../components/Box/index.cjs"),K=require("./Table-vv1HTrxe.cjs"),v=require("@salutejs/sdds-themes/tokens/sdds_finai"),p=require("react"),Q=require("../components/IconButton/index.cjs"),E=require("../components/TextField/index.cjs"),M=require("./AnalyticalWidget-YytE3Rlw.cjs"),P=require("./utils-ChDQGRjv.cjs"),Y=({dropdownProps:t,iconSize:i,...l})=>{const n=e.jsx(g.IconButton,{view:"secondary",size:"s",...l,children:e.jsx(C.IconDotsVerticalCenteredOutline,{size:i??"s"})});return t?e.jsx(g.Dropdown,{...t,children:n}):n},q=({visible:t,topLeft:i})=>e.jsx(z.Box,{$css:{position:"absolute",top:i??0,right:i??0,width:"8px",aspectRatio:"1",borderRadius:"50%",transition:K.DEFAULT_TABLE_TRANSITION,backgroundColor:"transparent",transform:"scale(0)",...t&&{backgroundColor:v.surfaceNegative,transform:"scale(1)"}}}),N=d(g.Button).attrs(({redSquare:t,hideLabel:i=!1,size:l,iconSize:n,children:r,...h})=>({view:"secondary",size:l??"s",type:"button",contentLeft:!i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),children:e.jsxs(e.Fragment,{children:[r??(!i&&(h.text??"Ещё фильтры")),i&&e.jsx(C.IconSettingsFilter,{size:n??"s"}),e.jsx(q,{visible:t})]}),...h})).withConfig({displayName:"FiltersButton__FiltersActionsFiltersButton"})(["position:relative;white-space:nowrap;"]),tt=p.lazy(()=>Promise.resolve().then(()=>require("./ListOfFilters-mqTsQbq_.cjs")).then(t=>t.ListOfFilters_lazy)),H=d(tt).attrs(({paddingTop:t,...i})=>({paddingTop:8,...i})).withConfig({displayName:"ListOfFilters__FiltersActionsListOfFilters"})([""]),O=({visible:t,offset:i})=>e.jsx(q,{visible:t,topLeft:i}),$=d(g.Tabs).attrs(t=>({size:"xs",view:"filled",...t})).withConfig({displayName:"Tabs__FiltersActionsTabs"})(["&{margin:-2px;","}"],({$css:t})=>t),V=d(g.TabItem).attrs(t=>({size:"s",view:"default",...t})).withConfig({displayName:"Tabs__FiltersActionsTabItem"})(["&{","}"],({$css:t})=>t),A={borderRadiusM:()=>v.borderRadiusM,shadowDownHardS:()=>v.shadowDownHardS,surfaceSolidCard:()=>v.surfaceSolidCard},et=d(g.Popover).withConfig({displayName:"FiltersButtonWithPopover__StyledPopover"})(["& .popover-root{box-shadow:none;}& .resizable-container{}"]),it=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverContentContainer"})(["background-color:",";border-radius:",";box-shadow:",";min-width:360px;max-width:700px;max-height:80dvh;height:100%;box-sizing:border-box;display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;"],A.surfaceSolidCard,A.borderRadiusM,A.shadowDownHardS),st=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeader"})(["display:flex;flex-direction:column;padding:16px 16px 12px 16px;flex-shrink:0;"]),ot=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverHeaderTop"})(["display:flex;justify-content:space-between;align-items:flex-start;flex-shrink:0;"]),nt=d.div.withConfig({displayName:"FiltersButtonWithPopover__HeaderText"})(["display:flex;flex-direction:column;gap:4px;margin-bottom:",";"],({$searchable:t})=>t?"8px":"0"),rt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverMainContent"})(["overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:16px;min-height:40px;margin:12px 16px 16px 16px;"]),lt=d.div.withConfig({displayName:"FiltersButtonWithPopover__PopoverFooter"})(["box-sizing:border-box;min-height:60px;padding:12px 16px 16px 16px;flex-shrink:0;display:flex;align-items:center;"]),R={minHeight:430,minWidth:360,maxWidth:700,maxHeight:typeof window<"u"?window.innerHeight*.8:600,defaultSize:{width:360,height:430},directions:["bottom-right"],icons:{topRight:null,bottomRight:e.jsx(C.IconResizeCorneredFill,{color:v.textTertiary}),bottomLeft:null,topLeft:null},hiddenIcons:["bottom-left","top-left","top-right"]},U=({title:t,subtitle:i,content:l,state:n,onClose:r,footer:h,redSquare:o=!1,popoverProps:u={},buttonProps:s,renderTarget:a,searchable:b,searchValue:F,onSearchChange:m,searchingProps:w,emptySearchContent:y})=>{const{resizable:c,...B}=u,_=(x=>x===!1?!1:x===!0||x==null?R:typeof x=="object"&&x!==null?{...R,...x}:R)(c),[I,k]=p.useState(!1),[S,T]=n??[I,k],Z=p.useCallback(()=>{T(!1),r==null||r()},[r,T]),J=p.useCallback(x=>{T(x),x||r==null||r()},[r,T]),W=p.useCallback(()=>{T(!S)},[S,T]);return e.jsx(et,{opened:S,onToggle:J,target:a?a({onClick:W,isOpen:S,isRedDotVisible:o,RedDot:O}):e.jsx(N,{redSquare:o,hideLabel:!1,iconSize:"s",...s,onClick:x=>{var L;(L=s==null?void 0:s.onClick)==null||L.call(s,x),W()}}),placement:"bottom-start",offset:[0,2],trigger:"click",hasArrow:!1,closeOnOverlayClick:!0,closeOnEsc:!0,isFocusTrapped:!0,usePortal:!0,animated:!0,resizable:_,...B,children:e.jsxs(it,{children:[e.jsxs(st,{children:[e.jsxs(ot,{children:[e.jsxs(nt,{$searchable:b,children:[e.jsx(g.BodyM,{bold:!0,children:t}),i&&e.jsx(g.BodyXS,{color:v.textSecondary,children:i})]}),e.jsx(g.IconButton,{onClick:Z,size:"xs",view:"secondary",pin:"circle-circle",title:"Закрыть",style:{marginBottom:b?"8px":void 0},children:e.jsx(C.IconClose,{size:"xs"})})]}),b&&e.jsx(E.TextFieldSearch,{value:F,onChange:x=>m==null?void 0:m(x.target.value),placeholder:"Поиск",...w})]}),e.jsx(rt,{children:y||l}),h&&e.jsx(lt,{children:h})]})})},at=d(g.LinkButton).attrs(t=>({view:"default",size:"s",text:"Сбросить фильтры",contentLeft:e.jsx(C.IconClose,{size:"xs",color:"inherit"}),style:{...t.style,visibility:t.isVisible?"visible":"hidden",pointerEvents:t.isVisible?"auto":"none"}})).withConfig({displayName:"ResetAllFiltersButton"})(["",""],({$css:t})=>t),ct=d(g.SegmentItem).attrs(t=>({size:"s",view:"primary",...t})).withConfig({displayName:"Segments__FiltersActionsSegmentItem"})(["&{","}"],({$css:t})=>t),dt=d(g.Switch).withConfig({displayName:"styled__StyledSwitch"})(["background:",";padding:",";border-radius:",";max-height:48px;"],({hasBackground:t})=>t?v.surfaceTransparentSecondary:"none",({hasBackground:t})=>t?"10px 14px":"auto",({hasBackground:t})=>t?"10px":"auto"),X=p.forwardRef(({hasBackground:t,size:i,...l},n)=>e.jsx(dt,{hasBackground:t,ref:n,size:t?"m":i,...l})),ut=({...t})=>e.jsx(X,{size:"m",toggleSize:"s",hasBackground:!0,...t}),ht=(t,i)=>{if(!t&&!i)return;const l=t&&{$css:t.split(" ").map((n,r)=>({[`& > *:nth-child(${r+1})`]:{width:n}})).reduce((n,r)=>({...n,...r}),{})};return d.css(["",";",";"],()=>l&&l.$css,()=>i&&i)},pt=d(z.Box).withConfig({displayName:"styled__StyledContainer"})(["width:100%;display:flex;align-items:flex-start;gap:16px;& > div:first-child{width:100%;}"]),G=d.div.withConfig({displayName:"styled__StyledCard"})(["padding-block:8px;border-radius:",";"],()=>v.borderRadiusL),ft=d(G).withConfig({displayName:"styled__StyledButtonsBlock"})(["display:flex;column-gap:8px;flex-shrink:0;margin-left:auto;padding-left:24px;"]),xt=d(z.Box).withConfig({displayName:"styled__StyledMainBlock"})(["display:flex;gap:8px;align-items:center;max-height:40px;"]),f=({mainBlock:t,listOfFilters:i,activeButtonsBlock:l,mainBlockElementsWidth:n,containerProps:r,mainBlockProps:{$css:h,ref:o,...u}={},onResize:s})=>{const a=p.useRef(null),b=p.useRef(null),F=p.useRef(null);return p.useLayoutEffect(()=>{if(!s)return;const m=a.current,w=b.current,y=F.current;if(!m||!w)return;const c={containerWidth:0,mainBlockWidth:0,buttonsBlockWidth:0,availableMainBlockWidth:0},B=()=>{const _=m.getBoundingClientRect().width,I=w.getBoundingClientRect().width,k=y?y.getBoundingClientRect().width:0,S=I;c.containerWidth=_,c.mainBlockWidth=I,c.buttonsBlockWidth=k,c.availableMainBlockWidth=S,s({...c})},j=P.createSafeResizeObserver(()=>{B()});return j.observe(m),j.observe(w),y&&j.observe(y),B(),()=>{j.disconnect()}},[s]),e.jsx(pt,{ref:a,...r,children:e.jsxs(G,{children:[e.jsxs(xt,{$css:ht(n,h),...u,ref:P.mergeRefs(o,b),children:[t,l&&e.jsx(ft,{ref:F,children:l})]}),i]})})};f.FiltersButton=N;f.DotsIconButton=Q.IconButtonDots;f.ListOfFilters=H;f.TextFieldSearch=E.TextFieldSearch;f.Tabs=$;f.TabItem=V;f.SegmentItem=ct;f.Tooltip=M.TooltipList;f.TooltipList=M.TooltipList;f.FilterPopover=U;f.FiltersButtonWithPopover=U;f.ResetAllFiltersButton=at;f.SwitcherFilter=ut;f.RedDot=O;function D(t,i,l){const{visible:n=[],inOverlay:r=[],hidden:h=[],modifications:o={},customActions:u={}}=l,s=new Set(n),a=new Set(r),b=new Set(h),F=t.filter(c=>s.has(c.id)),m=t.filter(c=>a.has(c.id)),w=t.filter(c=>b.has(c.id)),y=[];return n.forEach(c=>{y.push({type:"show",targetId:c,payload:null})}),r.forEach(c=>{y.push({type:"moveToOverlay",targetId:c,payload:null})}),h.forEach(c=>{y.push({type:"hide",targetId:c,payload:null})}),Object.entries(o).forEach(([c,B])=>{y.push({type:"modify",targetId:c,payload:B})}),{visibleItems:F,overlayItems:m,hiddenItems:w,modifications:o,actions:y,activeBreakpoint:i,hasOverlayItems:m.length>0,hasModifications:Object.keys(o).length>0,customActions:u}}const gt=({items:t,width:i,breakpoints:l})=>{const n=p.useMemo(()=>{const o=Object.entries(l).map(([s,a])=>({breakpoint:Number(s),config:a})).sort((s,a)=>a.breakpoint-s.breakpoint),u=o.find(({breakpoint:s})=>i>=s);if(!u){const s=o[o.length-1];return D(t,(s==null?void 0:s.breakpoint)||0,(s==null?void 0:s.config)||{visible:[],inOverlay:[],hidden:[]})}return D(t,u.breakpoint,u.config)},[t,i,l]),r=p.useCallback((o,u)=>{if(!o)return{};const s={...o.style};return o.width?s.width=o.width:o.widthPercent&&u?s.width=`${u*o.widthPercent/100}px`:o.widthPercent&&(s.width=`${o.widthPercent}%`),s},[]),h=p.useCallback((o,u)=>o.some(s=>{const a=u[s.id];return a===void 0?!1:Array.isArray(a)?a.length>0:typeof a=="boolean"?a===!0:typeof a=="string"?a!=="":typeof a=="number"?a!==0:!!a}),[]);return{...n,getItemStyle:r,hasActiveFilters:h}},yt=()=>d.css(v.bodyXS),mt=d.div.withConfig({displayName:"Tooltip__StyledTooltipContent"})(["color:",";"," & > ul{padding-top:1px;display:flex;flex-direction:column;gap:1px;margin:0;padding:0;list-style:none;}& li{padding-left:12px;position:relative;&::before{content:'•';position:absolute;left:2px;}}"],()=>v.inverseTextPrimary,()=>yt()),vt=({groupLabel:t,items:i})=>e.jsxs(mt,{children:[e.jsx("span",{children:t}),e.jsx("ul",{children:i.map(l=>e.jsx("li",{children:l}))})]}),bt=({groupLabel:t,items:i,children:l,...n})=>{const[r,h]=p.useState(!1),o=i.length>0;return p.useEffect(()=>{if(!o){h(!0);const u=setTimeout(()=>{h(!1)},0);return()=>clearTimeout(u)}},[o]),e.jsx(g.Tooltip,{usePortal:!0,trigger:o?(n==null?void 0:n.trigger)??"hover":"none",text:e.jsx(vt,{groupLabel:t,items:i}),size:"s",...n,children:l},`tooltip-${r}`)};exports.FiltersActions=f;exports.FiltersActionsDotsIconButton=Y;exports.FiltersActionsFiltersButton=N;exports.FiltersActionsListOfFilters=H;exports.FiltersActionsTabItem=V;exports.FiltersActionsTabs=$;exports.FiltersActionsTooltip=bt;exports.RedDot=O;exports.Switch=X;exports.useAdaptiveFilters=gt;
@@ -3,12 +3,12 @@ import { jsxs as E, jsx as g } from "react/jsx-runtime";
3
3
  import { Box as A } from "../components/Box/index.mjs";
4
4
  import { Chip as O, ChipGroup as F, TabItem as G, Button as M, Tabs as H } from "@salutejs/sdds-finai";
5
5
  import { Collapse as P } from "../components/Collapse/index.mjs";
6
- import { o as N, C as q } from "./Table-DYSssxRS.mjs";
6
+ import { o as N, C as q } from "./Table-tUWuA3Ri.mjs";
7
7
  import { IconClose as K } from "@salutejs/plasma-icons";
8
8
  import { c as T, u as U } from "./utils-u1KJ37g3.mjs";
9
9
  import W, { css as Z } from "styled-components";
10
10
  import { borderRadiusS as X, textPrimary as Y, onLightTextSecondary as J, bodyS as Q } from "@salutejs/sdds-themes/tokens/sdds_finai";
11
- import { F as tt } from "./FiltersActions-CDZSO0MM.mjs";
11
+ import { F as tt } from "./FiltersActions-BJ5gD6Nx.mjs";
12
12
  const x = "list-of-filters", h = {
13
13
  chipsGroup: `${x}__chip-group`,
14
14
  chipsGroupLabel: `${x}__chip-group__label`,
@@ -1 +1 @@
1
- "use strict";const y=require("react"),g=require("react/jsx-runtime"),O=require("../components/Box/index.cjs"),w=require("@salutejs/sdds-finai"),T=require("../components/Collapse/index.cjs"),A=require("./Table-CdaMPDkg.cjs"),$=require("@salutejs/plasma-icons"),q=require("./utils-ChDQGRjv.cjs"),B=require("styled-components"),k=require("@salutejs/sdds-themes/tokens/sdds_finai"),I=require("./FiltersActions-CVtgAJnC.cjs"),_="list-of-filters",f={chipsGroup:`${_}__chip-group`,chipsGroupLabel:`${_}__chip-group__label`,chipsGroupCount:`${_}__chip-group__count`,chip:`${_}__chip`,clearButtonBlock:`${_}__clear-button-block`,chipsContainer:`${_}__chips-container`,container:`${_}__container`},N=e=>"groupId"in e,W=()=>B.css(k.bodyS),G=250,M=B(w.ChipGroup).withConfig({displayName:"ChipOrGroup__StyledChipGroup"})(["&{border-radius:",";padding:4px 2px;"," align-items:center;&.","{gap:4px;& .",":first-child,& ."," + .","{margin-left:4px;}& .","{display:inline-block;min-width:0;max-width:","px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& .","{color:",";margin-left:4px;}& ."," svg{color:"," !important;}}}"],()=>k.borderRadiusS,()=>W(),f.chipsGroup,f.chip,f.chipsGroupLabel,f.chip,f.chipsGroupLabel,G,f.chipsGroupCount,()=>k.textPrimary,f.chip,()=>k.onLightTextSecondary),V=({itemOrGroup:e,maxLengthInGroup:i=2,ellipsisLabel:h=!1,chipStyle:n,renderGroupLabel:u,renderChipLabel:r})=>{if(N(e)){const p=e,b=p.items.slice(0,i),d=p.items.length-b.length,l=u?u(p):p.groupLabel;return g.jsxs(M,{className:f.chipsGroup,size:"xs",gap:"wide",view:"default",isCommonChipStyles:!1,children:[h?g.jsx("span",{className:f.chipsGroupLabel,title:l,children:l}):l,b.map(t=>g.jsx(w.Chip,{className:f.chip,title:"Удалить фильтр",view:"default",text:r?r(p,t):t.label.toString(),size:"xs",pilled:!0,onClick:t.onClick,style:{maxWidth:180,...A.overflowDotsStyle,...n&&n(p,t)},appearance:"transparent"},t.id)),d>0&&g.jsx(I.FiltersActionsTooltip,{groupLabel:l,items:p.items.map(t=>r?r(p,t):t.label.toString()),children:g.jsxs("span",{className:f.chipsGroupCount,children:["+",d]})})]})}return g.jsx(w.Chip,{className:f.chip,title:"Удалить фильтр",view:"default",text:r?r(null,e):e.label.toString(),size:"xs",pilled:!0,onClick:e.onClick,style:{maxWidth:150,...A.overflowDotsStyle,...n&&n(e,void 0)},appearance:"transparent"})},H=(e,i)=>{y.useEffect(()=>{var p;if(!i)return;const h=(p=e.current)==null?void 0:p.querySelector(".tabs-clip-scroll"),n=h==null?void 0:h.firstElementChild;if(!h)return;const u=()=>{h.dispatchEvent(new Event("scroll",{bubbles:!0}))},r=q.createSafeResizeObserver(u);return r.observe(h),n&&r.observe(n),()=>{r.disconnect()}},[e,i])},P=(e,i,h)=>{var c,s;const n=y.useRef(null),u=!!n.current,[r,p]=y.useState(0),b=n.current,d=(c=n.current)==null?void 0:c.firstChild,l=(s=n.current)==null?void 0:s.lastChild,t=(b&&d&&l&&b.offsetWidth-d.offsetWidth-l.offsetWidth-i*2-h*2)??void 0;return y.useEffect(()=>{const o=n.current;let m=0;function j(){m=(o==null?void 0:o.offsetWidth)??0,p(m)}j();const S=q.createSafeResizeObserver(j);return e&&o&&S.observe(o),()=>{S.disconnect()}},[e,u]),{refForContainer:n,maxWidthForCenterElement:t}},K={xs:{height:32,paddingInline:0}},D=1,F=`${D}px solid ${()=>A.COLORS.border}`,U=B(w.Tabs).withConfig({displayName:"ListOfFilters__StyledTabs"})({"&":{"& .tabs-clip-scroll":{overflowY:"hidden"},"& button.tab-item-animated":{marginLeft:"8px","&:first-of-type":{marginLeft:"0px"}}}}),Z=({opened:e,items:i,clearAll:h,size:n="xs",paddingTop:u=0,maxLengthInGroup:r=2,ellipsisLabel:p=!1,sizeOnOpen:b,leftSlot:d,paddingInline:l,maxHeight:t,chipStyle:c,renderGroupLabel:s,renderChipLabel:o,showResetAllFiltersButton:m=!0,extraCss:j={}})=>{const S=K[n],z=l??S.paddingInline,C=t??S.height,{refForContainer:L}=P(e,z,D);return q.useDebouncedValue(e,200),H(L,e),g.jsx(T.Collapse,{isOpen:e,sizeOnOpen:b??C+u,unMountOnClose:!0,children:g.jsxs(O.Box,{ref:L,className:f.container,$css:{display:"flex",borderInline:F,borderTop:F,paddingInline:z,maxHeight:C,marginTop:u,flexDirection:"row-reverse",...j},children:[g.jsx(O.Box,{$css:"display: inline;",children:d??null}),g.jsx(U,{className:f.chipsContainer,view:"clear",size:"xs",style:{height:C-D,flex:1,minWidth:0,overflow:"hidden"},children:!!i.length&&i.map((a,x)=>{let v;return"groupId"in a&&(v=a.groupId??x),"id"in a&&(v=a.id??x),g.jsx(w.TabItem,{view:"clear",onClick:E=>E.preventDefault(),children:g.jsx(V,{maxLengthInGroup:r,ellipsisLabel:p,itemOrGroup:a,chipStyle:c,renderGroupLabel:s,renderChipLabel:o})},v)})}),g.jsx(O.Box,{className:f.clearButtonBlock,$css:"display: inline-flex; margin-left: auto;",children:m&&g.jsx(w.Button,{view:"clear",size:"xs",text:"Сбросить все",disabled:!i.length,contentLeft:g.jsx($.IconClose,{size:"xs",color:"inherit"}),onClick:h})})]})})},R=y.memo(Z),X=e=>e==null?"":e instanceof Date?e.toLocaleDateString():Array.isArray(e)?e.map(i=>i instanceof Date?i.toLocaleDateString():String(i??"")).join(", "):String(e),Y=({filters:e,filtersInfo:i,options:h,updateFilters:n,order:u})=>{const{labelFromValueMaps:r}=y.useMemo(()=>{const d={};for(const l of Object.entries(h)){const[t,c]=l;d[t]=new Map(c.map(s=>[String(s.value),s.label]))}return{labelFromValueMaps:d}},[h]),p=y.useCallback(()=>{for(const d of Object.entries(i)){const[l,t]=d;n(l,t.clearedValue)}},[i,n]);return{...y.useMemo(()=>{const d=Object.entries(e).reduce((t,c)=>{var L;const s=c[0],o=c[1],m=Array.isArray(o);if(!(m&&o.length||!m&&o&&o!==!1)||o===i[s].clearedValue)return t;if(typeof o=="boolean"){const a={id:s,label:i[s].label,onClick:()=>{n(s,i[s].clearedValue)}};return t.push(a),t}const C={groupId:s,groupLabel:i[s].label,items:[]};if(m)C.items=o.map(a=>{var x,v;return{id:a,label:((v=(x=r==null?void 0:r[s])==null?void 0:x.get)==null?void 0:v.call(x,a))??a.toString(),onClick:()=>{n(s,o.filter(E=>E!==a))}}});else{const a=r==null?void 0:r[s],x=((L=a==null?void 0:a.get)==null?void 0:L.call(a,o))??X(o);C.items=[{id:o.toString(),label:x,onClick:()=>{n(s,"clearedValue"in i[s]?i[s].clearedValue:"")}}]}return t.push(C),t},[]);let l=d;if(u&&u!=="default"){if(typeof u=="function")l=u(d);else if(Array.isArray(u)){const t=new Map;d.forEach(c=>{const s="groupId"in c?c.groupId:String(c.id);t.set(s,c)}),l=[],u.forEach(c=>{const s=t.get(c);s&&(l.push(s),t.delete(c))}),t.size>0&&Array.from(t.keys()).sort().forEach(s=>{const o=t.get(s);o&&l.push(o)})}}return{filterListOpened:d.length>0,filterList:l}},[e,i,r,n,u]),clearAll:p,labelFromValueMaps:r}},J=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));exports.ListOfFilters=R;exports.ListOfFilters_lazy=J;exports.isGroup=N;exports.listOfFiltersClassNames=f;exports.useFiltersList=Y;
1
+ "use strict";const y=require("react"),g=require("react/jsx-runtime"),O=require("../components/Box/index.cjs"),w=require("@salutejs/sdds-finai"),T=require("../components/Collapse/index.cjs"),A=require("./Table-vv1HTrxe.cjs"),$=require("@salutejs/plasma-icons"),q=require("./utils-ChDQGRjv.cjs"),B=require("styled-components"),k=require("@salutejs/sdds-themes/tokens/sdds_finai"),I=require("./FiltersActions-Bg5wvHFG.cjs"),_="list-of-filters",f={chipsGroup:`${_}__chip-group`,chipsGroupLabel:`${_}__chip-group__label`,chipsGroupCount:`${_}__chip-group__count`,chip:`${_}__chip`,clearButtonBlock:`${_}__clear-button-block`,chipsContainer:`${_}__chips-container`,container:`${_}__container`},N=e=>"groupId"in e,W=()=>B.css(k.bodyS),G=250,M=B(w.ChipGroup).withConfig({displayName:"ChipOrGroup__StyledChipGroup"})(["&{border-radius:",";padding:4px 2px;"," align-items:center;&.","{gap:4px;& .",":first-child,& ."," + .","{margin-left:4px;}& .","{display:inline-block;min-width:0;max-width:","px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}& .","{color:",";margin-left:4px;}& ."," svg{color:"," !important;}}}"],()=>k.borderRadiusS,()=>W(),f.chipsGroup,f.chip,f.chipsGroupLabel,f.chip,f.chipsGroupLabel,G,f.chipsGroupCount,()=>k.textPrimary,f.chip,()=>k.onLightTextSecondary),V=({itemOrGroup:e,maxLengthInGroup:i=2,ellipsisLabel:h=!1,chipStyle:n,renderGroupLabel:u,renderChipLabel:r})=>{if(N(e)){const p=e,b=p.items.slice(0,i),d=p.items.length-b.length,l=u?u(p):p.groupLabel;return g.jsxs(M,{className:f.chipsGroup,size:"xs",gap:"wide",view:"default",isCommonChipStyles:!1,children:[h?g.jsx("span",{className:f.chipsGroupLabel,title:l,children:l}):l,b.map(t=>g.jsx(w.Chip,{className:f.chip,title:"Удалить фильтр",view:"default",text:r?r(p,t):t.label.toString(),size:"xs",pilled:!0,onClick:t.onClick,style:{maxWidth:180,...A.overflowDotsStyle,...n&&n(p,t)},appearance:"transparent"},t.id)),d>0&&g.jsx(I.FiltersActionsTooltip,{groupLabel:l,items:p.items.map(t=>r?r(p,t):t.label.toString()),children:g.jsxs("span",{className:f.chipsGroupCount,children:["+",d]})})]})}return g.jsx(w.Chip,{className:f.chip,title:"Удалить фильтр",view:"default",text:r?r(null,e):e.label.toString(),size:"xs",pilled:!0,onClick:e.onClick,style:{maxWidth:150,...A.overflowDotsStyle,...n&&n(e,void 0)},appearance:"transparent"})},H=(e,i)=>{y.useEffect(()=>{var p;if(!i)return;const h=(p=e.current)==null?void 0:p.querySelector(".tabs-clip-scroll"),n=h==null?void 0:h.firstElementChild;if(!h)return;const u=()=>{h.dispatchEvent(new Event("scroll",{bubbles:!0}))},r=q.createSafeResizeObserver(u);return r.observe(h),n&&r.observe(n),()=>{r.disconnect()}},[e,i])},P=(e,i,h)=>{var c,s;const n=y.useRef(null),u=!!n.current,[r,p]=y.useState(0),b=n.current,d=(c=n.current)==null?void 0:c.firstChild,l=(s=n.current)==null?void 0:s.lastChild,t=(b&&d&&l&&b.offsetWidth-d.offsetWidth-l.offsetWidth-i*2-h*2)??void 0;return y.useEffect(()=>{const o=n.current;let m=0;function j(){m=(o==null?void 0:o.offsetWidth)??0,p(m)}j();const S=q.createSafeResizeObserver(j);return e&&o&&S.observe(o),()=>{S.disconnect()}},[e,u]),{refForContainer:n,maxWidthForCenterElement:t}},K={xs:{height:32,paddingInline:0}},D=1,F=`${D}px solid ${()=>A.COLORS.border}`,U=B(w.Tabs).withConfig({displayName:"ListOfFilters__StyledTabs"})({"&":{"& .tabs-clip-scroll":{overflowY:"hidden"},"& button.tab-item-animated":{marginLeft:"8px","&:first-of-type":{marginLeft:"0px"}}}}),Z=({opened:e,items:i,clearAll:h,size:n="xs",paddingTop:u=0,maxLengthInGroup:r=2,ellipsisLabel:p=!1,sizeOnOpen:b,leftSlot:d,paddingInline:l,maxHeight:t,chipStyle:c,renderGroupLabel:s,renderChipLabel:o,showResetAllFiltersButton:m=!0,extraCss:j={}})=>{const S=K[n],z=l??S.paddingInline,C=t??S.height,{refForContainer:L}=P(e,z,D);return q.useDebouncedValue(e,200),H(L,e),g.jsx(T.Collapse,{isOpen:e,sizeOnOpen:b??C+u,unMountOnClose:!0,children:g.jsxs(O.Box,{ref:L,className:f.container,$css:{display:"flex",borderInline:F,borderTop:F,paddingInline:z,maxHeight:C,marginTop:u,flexDirection:"row-reverse",...j},children:[g.jsx(O.Box,{$css:"display: inline;",children:d??null}),g.jsx(U,{className:f.chipsContainer,view:"clear",size:"xs",style:{height:C-D,flex:1,minWidth:0,overflow:"hidden"},children:!!i.length&&i.map((a,x)=>{let v;return"groupId"in a&&(v=a.groupId??x),"id"in a&&(v=a.id??x),g.jsx(w.TabItem,{view:"clear",onClick:E=>E.preventDefault(),children:g.jsx(V,{maxLengthInGroup:r,ellipsisLabel:p,itemOrGroup:a,chipStyle:c,renderGroupLabel:s,renderChipLabel:o})},v)})}),g.jsx(O.Box,{className:f.clearButtonBlock,$css:"display: inline-flex; margin-left: auto;",children:m&&g.jsx(w.Button,{view:"clear",size:"xs",text:"Сбросить все",disabled:!i.length,contentLeft:g.jsx($.IconClose,{size:"xs",color:"inherit"}),onClick:h})})]})})},R=y.memo(Z),X=e=>e==null?"":e instanceof Date?e.toLocaleDateString():Array.isArray(e)?e.map(i=>i instanceof Date?i.toLocaleDateString():String(i??"")).join(", "):String(e),Y=({filters:e,filtersInfo:i,options:h,updateFilters:n,order:u})=>{const{labelFromValueMaps:r}=y.useMemo(()=>{const d={};for(const l of Object.entries(h)){const[t,c]=l;d[t]=new Map(c.map(s=>[String(s.value),s.label]))}return{labelFromValueMaps:d}},[h]),p=y.useCallback(()=>{for(const d of Object.entries(i)){const[l,t]=d;n(l,t.clearedValue)}},[i,n]);return{...y.useMemo(()=>{const d=Object.entries(e).reduce((t,c)=>{var L;const s=c[0],o=c[1],m=Array.isArray(o);if(!(m&&o.length||!m&&o&&o!==!1)||o===i[s].clearedValue)return t;if(typeof o=="boolean"){const a={id:s,label:i[s].label,onClick:()=>{n(s,i[s].clearedValue)}};return t.push(a),t}const C={groupId:s,groupLabel:i[s].label,items:[]};if(m)C.items=o.map(a=>{var x,v;return{id:a,label:((v=(x=r==null?void 0:r[s])==null?void 0:x.get)==null?void 0:v.call(x,a))??a.toString(),onClick:()=>{n(s,o.filter(E=>E!==a))}}});else{const a=r==null?void 0:r[s],x=((L=a==null?void 0:a.get)==null?void 0:L.call(a,o))??X(o);C.items=[{id:o.toString(),label:x,onClick:()=>{n(s,"clearedValue"in i[s]?i[s].clearedValue:"")}}]}return t.push(C),t},[]);let l=d;if(u&&u!=="default"){if(typeof u=="function")l=u(d);else if(Array.isArray(u)){const t=new Map;d.forEach(c=>{const s="groupId"in c?c.groupId:String(c.id);t.set(s,c)}),l=[],u.forEach(c=>{const s=t.get(c);s&&(l.push(s),t.delete(c))}),t.size>0&&Array.from(t.keys()).sort().forEach(s=>{const o=t.get(s);o&&l.push(o)})}}return{filterListOpened:d.length>0,filterList:l}},[e,i,r,n,u]),clearAll:p,labelFromValueMaps:r}},J=Object.freeze(Object.defineProperty({__proto__:null,default:R},Symbol.toStringTag,{value:"Module"}));exports.ListOfFilters=R;exports.ListOfFilters_lazy=J;exports.isGroup=N;exports.listOfFiltersClassNames=f;exports.useFiltersList=Y;
@@ -0,0 +1 @@
1
+ "use strict";const g=require("react/jsx-runtime"),b=require("@salutejs/sdds-finai"),Rt=require("@salutejs/plasma-icons"),xt=require("./utils-ChDQGRjv.cjs"),p=require("react"),Wt=require("./Table-vv1HTrxe.cjs"),Vt=require("../constants/index.cjs"),Et=require("@salutejs/sdds-themes/tokens/sdds_finai"),M=require("styled-components"),jt=require("../components/Box/index.cjs"),se=require("../components/Collapse/index.cjs"),Pt=require("./AnalyticalWidget-YytE3Rlw.cjs"),ht=24,L=4,wt=44,Nt=40,Ct=24,Q={top:12,right:8,bottom:12,left:24},Bt={top:0,right:10,bottom:0,left:24},ie=Q.left+Q.right,vt=90,qt=110,gt=100,oe=300,Tt=550,Ut=350,Gt=50,Ht=100,Xt=({buttons:t,visibleButtonsCount:i})=>{const{visibleButtons:o,buttonsInDropdown:n}=p.useMemo(()=>{const e=t??[],c=new Set,h=[];e.forEach((f,u)=>{f.view==="accent"?c.add(u):h.push(u)});const l=c.size,a=Math.max(0,i-l),s=new Set(h.slice(0,a)),r=[],x=[];return e.forEach((f,u)=>{c.has(u)||s.has(u)?r.push(f):x.push(f)}),{visibleButtons:r,buttonsInDropdown:x}},[t,i]);return{visibleButtons:o,buttonsInDropdown:n,allButtons:t??[]}},Yt=({isCollapsed:t,setIsCollapsed:i,isSidebarOpen:o,calculatePositionForState:n,calculatePosition:e,setTranslateX:c,shouldApplySidebarOffsetRef:h,wasAutoCollapsedRef:l})=>({handleToggleCollapse:p.useCallback(()=>{const s=!t,r=n(s);r!==void 0&&c(r),o&&(s?h.current=!0:(h.current=!1,l.current=!1)),i(s),setTimeout(()=>{e()},Tt)},[t,o,n,e,c,h,l,i])}),Jt=({isCollapsed:t,containerRef:i,contentRef:o,middleSectionRef:n,buttonRefs:e,moreButtonRef:c,collapseButtonRef:h,leftSectionRef:l,dividerRef:a,buttons:s,isHaveSomeFeatureInSidebar:r,getContainerWidth:x,setVisibleButtonsCount:f,minPadding:u=Ct,leftPadding:E=Q.left,rightPadding:m=Q.right,moreButtonWidthEstimate:I=Nt,enableDebugLogs:A=!1})=>{const N=p.useRef([]),z=p.useCallback(()=>{var dt,X,pt,rt,ut,W;const y=x();if(!y||y===0||!s||s.length===0)return A&&console.debug("❌ calculateInitialCompression: нет tableWidth или buttons"),!1;if(!s.every((w,C)=>e.current[C]!==null&&e.current[C]!==void 0))return A&&console.debug("❌ calculateInitialCompression: ref'ы еще не установлены",{buttonsCount:s.length,refsCount:e.current.filter(Boolean).length,refs:e.current.map((w,C)=>({index:C,hasRef:!!w}))}),!1;const S=y-(r?wt:0),q=((dt=l==null?void 0:l.current)==null?void 0:dt.getBoundingClientRect().width)??0,k=((X=n.current)==null?void 0:X.getBoundingClientRect().width)??0,$=s.length>0,R=$?((pt=a==null?void 0:a.current)==null?void 0:pt.getBoundingClientRect().width)??0:0,U=$?L:0,tt=$&&k>0?L:0,ot=R+tt+U,at=L*2,ct=q+k+ot+(((rt=h.current)==null?void 0:rt.getBoundingClientRect().width)??ht)+(E+m)+at,T=[];let P=!0;for(let w=0;w<s.length;w+=1){const C=e.current[w];if(!C){P=!1;break}const F=C.querySelector("button, a")||C;if(!F||!F.isConnected){P=!1;break}const ft=F.getBoundingClientRect(),lt=ft.width||F.offsetWidth||F.scrollWidth||F.clientWidth;if(lt>0)T.push(lt),N.current[w]=lt;else{console.debug("❌ calculateInitialCompression: кнопка не отрендерилась",{index:w,text:(ut=s[w])==null?void 0:ut.text,width:lt,isConnected:F.isConnected,rect:ft}),P=!1;break}}if(!P||T.length!==s.length)return A&&console.debug("❌ calculateInitialCompression: не все кнопки измерены",{allButtonsMeasured:P,buttonWidthsLength:T.length,buttonsLength:s.length}),!1;const et=((W=c.current)==null?void 0:W.getBoundingClientRect().width)??I,v=S-u*2,O=[],j=[];s.forEach((w,C)=>{if(T[C]===void 0)return;(w==null?void 0:w.view)==="accent"?O.push(C):j.push(C)});let V=0;O.forEach(w=>{const C=T[w];C!==void 0&&(V+=C)});const G=new Set(O);let nt=V,st=0;for(let w=0;w<j.length;w+=1){const C=j[w],D=typeof C<"u"?T[C]:0;if(D===void 0)continue;const ft=w<j.length-1?et+L:0,mt=(G.size+1-1)*L,At=nt+D+mt+ft;if(ct+At<=v)nt+=D,st+=1,typeof C<"u"&&G.add(C);else break}const H=G.size;return f(H),console.debug("✅ calculateInitialCompression: успешно выполнено",{buttonWidths:T,visibleCount:H,accentCount:O.length,regularVisibleCount:st}),!0},[s,x,r,f,e,l,n,c,h,a,A,u,E,m,I]);return{calculateCompression:p.useCallback(()=>{t||!i.current||!o.current||requestAnimationFrame(()=>{setTimeout(()=>{var lt,mt,At,It,Mt,St,Dt;const y=x();if(!y||y===0)return;const _=y-(r?wt:0);A&&(console.group("🔧 MassActions Compression"),console.debug("📏 Размеры контейнера:",JSON.stringify({tableWidth:y,isHaveSomeFeatureInSidebar:r,togglePanelWidth:r?wt:0,availableWidth:_,minPaddingRequired:u*2,maxPanelWidthAllowed:_-u*2},null,2)));const S=((lt=l==null?void 0:l.current)==null?void 0:lt.getBoundingClientRect().width)??0,q=((mt=n.current)==null?void 0:mt.getBoundingClientRect().width)??0,k=((s==null?void 0:s.length)??0)>0,$=k?((At=a==null?void 0:a.current)==null?void 0:At.getBoundingClientRect().width)??0:0,R=k?L:0,U=k&&q>0?L:0,tt=$+U+R;let ot=null;if(l!=null&&l.current){const d=l.current.getBoundingClientRect(),{children:B}=l.current,K=[];for(let Y=0;Y<B.length;Y+=1){const Z=B[Y];if(Z){const it=Z.getBoundingClientRect();K.push({tagName:Z.tagName,className:Z.className,width:it.width,height:it.height})}}ot={width:d.width,height:d.height,children:K,childrenTotalWidth:K.reduce((Y,Z)=>Y+Z.width,0)}}const at=L*2,ct=S+q+tt+(((It=h.current)==null?void 0:It.getBoundingClientRect().width)??ht)+(E+m)+at;A&&console.debug("🔲 Фиксированные элементы:",JSON.stringify({leftSectionWidth:S,leftSectionDetails:ot,middleSectionWidth:q,divider:{shouldShow:k,wrapperWidth:$,gapLeft:U,gapRight:R,totalWidth:tt},collapseButtonWidth:((Mt=h.current)==null?void 0:Mt.getBoundingClientRect().width)??ht,containerPadding:E+m,gapsBetweenFixedElements:at,fixedElementsTotal:ct},null,2));const T=[];let P=!0;for(let d=0;d<((s==null?void 0:s.length)??0);d+=1){const B=e.current[d];if(B){const Y=B.querySelector("button, a")||B,it=Y.getBoundingClientRect().width||Y.offsetWidth||Y.scrollWidth||Y.clientWidth;it>0?(T.push(it),N.current[d]=it):N.current[d]!==void 0?T.push(N.current[d]??gt):(P=!1,T.push(gt))}else N.current[d]!==void 0?T.push(N.current[d]??gt):(P=!1,T.push(gt))}if(!P&&T.length===0&&((s==null?void 0:s.length)??0)>0)return;const et=((St=c.current)==null?void 0:St.getBoundingClientRect().width)??I,v=_-u*2,O=i.current?i.current.getBoundingClientRect().width:0;A&&(console.debug("🎯 Ограничения и текущее состояние:",JSON.stringify({targetContainer:{tableWidth:y,availableWidth:_,minPaddingEach:u,minPaddingTotal:u*2,maxPanelWidth:v},currentPanel:{width:O,exceedsMax:O>v,exceedsAvailable:O>_,leftPadding:u,rightPadding:u},moreButtonWidth:et},null,2)),console.debug("🔘 Ширины кнопок:",JSON.stringify({buttons:s==null?void 0:s.map((d,B)=>({index:B,text:d.text,view:d.view,isAccent:d.view==="accent",width:T[B]})),totalButtonsWidth:T.reduce((d,B)=>d+B,0),averageButtonWidth:T.length>0?T.reduce((d,B)=>d+B,0)/T.length:0},null,2)));const j=s??[],V=[],G=[];j.forEach((d,B)=>{if(T[B]===void 0)return;(d==null?void 0:d.view)==="accent"?V.push(B):G.push(B)}),A&&console.debug("🎨 Распределение:",{accentCount:V.length,regularCount:G.length,accentButtons:V.map(d=>{var B;return{index:d,text:(B=j[d])==null?void 0:B.text,width:T[d]}})});let nt=0;V.forEach(d=>{const B=T[d];B!==void 0&&(nt+=B)});const st=new Set(V);let H=nt,dt=0;for(let d=0;d<G.length;d+=1){const B=G[d],K=typeof B<"u"?T[B]:0;if(K===void 0)continue;const Z=d<G.length-1?et+L:0,it=st.size+1,Lt=(it-1)*L,kt=H+K+Lt+Z,_t=ct+kt,yt=_t+3;if(A&&console.debug(` 🔍 Проверка кнопки ${d}:`,{text:typeof B<"u"?(Dt=j[B])==null?void 0:Dt.text:"",width:K,totalButtonsWidthBefore:H,visibleCountAfter:it,gapsBetweenButtons:Lt,moreButtonSpace:Z,requiredWidth:kt,testPanelWidth:_t,testWithBuffer:yt,maxPanelWidth:v,fits:_t<=v,fitsWithBuffer:yt<=v}),yt<=v)H+=K,dt+=1,typeof B<"u"&&st.add(B);else break}const X=st.size,rt=j.length-X>0,ut=X>0?(X-1)*L:0,W=H+ut+(rt?et+L:0),w=ct+W,C=[],D=[];j.forEach((d,B)=>{st.has(B)?C.push(d):D.push(d)});const F=X,ft={fixedElements:{leftSection:S,middleSection:q,divider:tt,collapseButton:ht,containerPadding:E+m,gapsBetweenFixedElements:at,total:ct},buttons:{accentButtonsWidth:nt,visibleRegularButtonsWidth:H-nt,totalButtonsWidth:H,gapsBetweenVisibleButtons:ut,buttonsAreaWidth:W,visibleButtonsCount:X,hiddenButtonsCount:D.length},moreButton:rt?{width:et,gap:L,total:et+L}:null,final:{calculatedWidth:w,actualPanelWidth:O,widthDifference:O-w,maxAllowedWidth:v,availableWidth:_,fits:w<=v,actualFits:O<=v,exceedsBy:w>v?w-v:0,actualExceedsBy:O>v?O-v:0,leftPaddingRequired:u,rightPaddingRequired:u,totalPaddingRequired:u*2}};A&&(console.debug("✅ Результат компрессии:",JSON.stringify({summary:{totalButtons:j.length,accentCount:V.length,visibleRegularCount:dt,visibleCount:F,hiddenCount:D.length,finalPanelWidth:w,maxPanelWidth:v,fits:w<=v,hasMoreButton:rt},breakdown:ft},null,2)),console.debug("👁️ Видимые кнопки:",{buttons:C.map(d=>({text:d.text,view:d.view,isAccent:d.view==="accent"}))}),console.debug("📦 Кнопки в dropdown:",{buttons:D.map(d=>({text:d.text,view:d.view}))}),console.groupEnd()),f(X)},Gt)})},[t,i,o,x,r,A,l,n,s,a,c,h,u,E,m,I,f,e]),calculateInitialCompression:z,measuredButtonWidthsRef:N}},Ft=t=>{const[i,o]=p.useState(0),n=p.useCallback(()=>typeof t=="function"?t():t.current,[t]),e=p.useCallback(()=>{const c=n();return c?c.getBoundingClientRect().width:0},[n]);return p.useEffect(()=>{const c=n();if(!c)return;o(c.getBoundingClientRect().width);const h=xt.createSafeResizeObserver(l=>{for(const a of l){const{width:s}=a.contentRect;o(s)}});return h.observe(c),()=>{h.disconnect()}},[n]),{containerWidth:i,getContainerWidth:e,getContainer:n}},Kt=({containerRef:t,buttonRefs:i,buttons:o,isVisible:n,isCollapsed:e,visibleButtonsCount:c,selectedCount:h,setIsCollapsed:l,setVisibleButtonsCount:a,calculatePosition:s,calculateCompression:r,measuredButtonWidthsRef:x,containerWidth:f})=>{p.useEffect(()=>{f>0&&(s(),r())},[f,s,r]),p.useLayoutEffect(()=>{if(!t.current)return;const u=xt.createSafeResizeObserver(()=>{s()});return u.observe(t.current),()=>{u.disconnect()}},[s,t]),p.useEffect(()=>{i.current=Array((o==null?void 0:o.length)??0).fill(null),a((o==null?void 0:o.length)??0),x.current=[]},[o==null?void 0:o.length,i,a,x]),p.useEffect(()=>{if(n&&!e){const u=setTimeout(()=>{r(),s()},Ht);return()=>{clearTimeout(u)}}},[n,e,r,s]),p.useEffect(()=>{if(e){s();return}s()},[e,c,s]),p.useEffect(()=>()=>{(!n||h===0)&&l(!1)},[n,h,l])},Zt=({containerRef:t,collapseButtonRef:i,leftSectionRef:o,getContainerWidth:n,isHaveSomeFeatureInSidebar:e,sidebarConfig:c,visibleButtonsCount:h,setTranslateX:l,minPadding:a=Ct,enableDebugLogs:s=!1})=>{const r=(c==null?void 0:c.isOpen)??!1,x=(c==null?void 0:c.width)??0,f=(c==null?void 0:c.togglePanelWidth)??wt,u=p.useRef(!1),E=p.useCallback(I=>{var k,$;const A=n();if(!A||A===0)return;const N=x+f,z=r?N/2:0,J=e?f/2:0;let y=-(z+J),_;if(I){const R=((k=o==null?void 0:o.current)==null?void 0:k.getBoundingClientRect().width)??vt,U=(($=i.current)==null?void 0:$.getBoundingClientRect().width)??ht,tt=Bt.top+Bt.right+Bt.left;_=R+U+tt}else if(t.current)_=t.current.getBoundingClientRect().width;else{const R=h*gt,U=Q.top+Q.right+Q.left;_=vt+qt+ht+R+U}const S=A/2;return S-_/2+y<a&&(y=a-(S-_/2)),y},[n,t,i,o,e,r,x,f,h,a]);return{calculatePosition:p.useCallback(()=>{const I=n();if(!I||I===0||!t.current)return;s&&console.group("📍 MassActions Position");const A=x+f,N=r?A/2:0,z=e?f/2:0;let J=-(N+z);const y=t.current.getBoundingClientRect().width,_=I/2,S=_-y/2+J;S<a&&(J=a-(_-y/2)),s&&(console.log("🎯 Позиционирование:",JSON.stringify({tableWidth:I,panelWidth:y,tableCenter:_,sidebarWidth:x,toggleSidebarPanelWidth:f,isSidebarOpen:r,isHaveSomeFeatureInSidebar:e,totalSidebarWidth:A,sidebarOffset:N,togglePanelOffset:z,idealTranslateX:-(N+z),leftEdgePosition:S,minPadding:a,finalTranslateX:J,adjusted:S<Ct},null,2)),console.groupEnd()),l(J),r?u.current=!0:u.current=!1},[n,t,s,x,f,e,r,l,a]),calculatePositionForState:E,shouldApplySidebarOffsetRef:u}},Qt=({isCollapsed:t,setIsCollapsed:i,calculatePositionForState:o,calculatePosition:n,setTranslateX:e,shouldApplySidebarOffsetRef:c,sidebarConfig:h,getContainerWidth:l})=>{const a=(h==null?void 0:h.isOpen)??!1,s=(h==null?void 0:h.width)??0,r=p.useRef(!1),x=p.useRef(a);return p.useEffect(()=>{if(!h)return;const u=x.current!==a;if(x.current=a,!u){n();return}if(a)if(t)n();else{r.current=!0;const E=o(!0);E!==void 0&&(e(E),c.current=!0),i(!0),setTimeout(()=>{n()},Tt)}else if(t){r.current=!1,c.current=!1;const E=o(!1);E!==void 0&&e(E),i(!1),setTimeout(()=>{n()},Tt)}else c.current=!1,n()},[a,s,l]),{isSidebarOpen:a,sidebarWidth:s,wasAutoCollapsedRef:r}},bt=t=>{const i=p.useRef(t),[o,n]=p.useState(t>0);return p.useEffect(()=>{var l;const e=i.current,c=e===0&&t>0,h=e>0&&t===0;if(c||h){const a=()=>{n(t>0)};document.startViewTransition?(l=document.startViewTransition)==null||l.call(document,a):a()}else n(t>0);i.current=t},[t]),o},ce="mass-actions-panel",zt={surfaceSolidCard:()=>Et.surfaceSolidCard,outlineSolidPrimary:()=>Et.outlineSolidPrimary},re=M(b.LinkButton).withConfig({displayName:"styled__StyledLinkButton"})({paddingInline:Vt.s.x8}),te=t=>M(t).withConfig({displayName:"styled__getButtonWithDropdown"})([""," ",""],({$hasDropdown:i})=>i&&M.css(["& > div > span:last-child{max-width:fit-content;min-width:unset;}"]),({$buttonStyles:i})=>i&&M.css(["",""],i)),le=te(b.Button),ae=te(re),de=M.div.withConfig({displayName:"styled__MassActionsContainer"})(["position:absolute;bottom:","px;left:50%;transform:",";background:",";border:2px solid ",";padding:",";border-radius:14px;display:block;width:fit-content;max-width:",";view-transition-name:",";opacity:",";transition:padding 0.3s cubic-bezier(0.4,0,0.2,1),transform 0.3s cubic-bezier(0.4,0,0.2,1),max-width 0.2s cubic-bezier(0.4,0,0.2,1),opacity 0.2s ease-in-out;will-change:padding,transform,max-width;box-shadow:",";"],({$bottom:t=24})=>t,({$translateX:t})=>t!==void 0?`translateX(calc(-50% + ${t}px))`:"translateX(-50%)",zt.surfaceSolidCard,zt.outlineSolidPrimary,({$isCollapsed:t,$size:i})=>{const o=i==="xs";return t?o?"0px 2px 0px 12px":"0px 10px 0px 24px":o?"4px 2px 4px 12px":"12px 8px 12px 24px"},({$isCollapsed:t})=>t?"350":"2000px",ce,({$isInitialCalculationComplete:t})=>t?1:0,Et.shadowDownHardS),ue=M.div.withConfig({displayName:"styled__MassActionsContent"})(["display:flex;align-items:center;gap:",";"],({$isCollapsed:t,$isCompact:i})=>t?i?"4px":"8px":"0px"),he=M.div.withConfig({displayName:"styled__ActionsWrapper"})(["display:flex;max-height:",";align-items:center;gap:4px;flex:1;justify-content:flex-end;overflow:hidden;min-width:0;transition:max-height 0.2s cubic-bezier(0.4,0,0.2,1),opacity 0.3s cubic-bezier(0.4,0,0.2,1),max-width 0.1s cubic-bezier(0.4,0,0.2,1),margin 0.3s cubic-bezier(0.4,0,0.2,1),gap 0.3s cubic-bezier(0.4,0,0.2,1);",""],({$isCollapsed:t})=>t?"0":"40px",({$isCollapsed:t})=>t?M.css(["opacity:0;max-width:0;margin:0;gap:0;"]):M.css(["opacity:1;max-width:2000px;"])),pe=M.div.withConfig({displayName:"styled__HiddenButtonsMeasurementContainer"})(["position:absolute;left:-9999px;top:0;display:flex;gap:4px;align-items:center;z-index:-1;pointer-events:none;width:auto;height:auto;"]),fe=M.div.withConfig({displayName:"styled__ButtonMeasurementWrapper"})(["display:inline-flex;width:auto;height:auto;"]),ge=M.div.withConfig({displayName:"styled__VisibleButtonWrapper"})(["margin-left:0;"]),xe=M(Rt.IconDoubleDisclosureUp).withConfig({displayName:"styled__CollapseIcon"})(["transition:all 0.3s;transform:",";"],({$isCollapsed:t})=>t?"scaleY(1)":"scaleY(-1)"),we=M(b.EmbedIconButton).withConfig({displayName:"styled__CollapseButton"})(["padding:",";"],({$isCompact:t})=>t?Vt.s.x8:Et.spacing10x);M(b.Button).withConfig({displayName:"styled__MoreButton"})(["margin-left:0;"]);const me=M(b.Divider).withConfig({displayName:"styled__StyledDivider"})(["padding-left:1px;margin-left:12px;margin-right:8px;"]),Ae=t=>{if(typeof t=="string"&&t.startsWith("link")){const i=t.slice(4);return i.charAt(0).toLowerCase()+i.slice(1)}return t??"default"},Be={size:"s",view:"linkDefault"},Ot=({type:t,view:i,showLabel:o,text:n,buttonStyles:e,dropdown:c,useTableDropdown:h=!1,...l})=>{const a=t??"linkButton",{view:s,...r}=Be,x=i??s,f=o?n:void 0,u=!!c;let E;if(a==="button"){const m=l,I=m.text??f;E=g.jsx(le,{...r,...m,view:x,text:I,$hasDropdown:u,$showLabel:o,$buttonStyles:e})}else{const m=String(x??"linkDefault"),A=m.startsWith("link")?Ae(m):m;E=g.jsx(ae,{...r,...l,view:A,text:f,$hasDropdown:u,$showLabel:o,$buttonStyles:e})}if(c&&c.items&&c.items.length>0)if(h)E=g.jsx(Wt.TableDropdown,{...c,children:E});else{const{$css:m,...I}=c;E=g.jsx(b.Dropdown,{...I,children:E})}return E},ee=({selectedCount:t,maxCount:i,label:o="Выбрано",showCheckbox:n=!1,checked:e=!1,onCheckboxChange:c,className:h,indeterminate:l})=>{const{down:a}=xt.useBreakpoint(),s=a("xl"),r=t>0,x=s?"BodyXS":"BodyS",f=typeof i=="number"&&t>i?`${i}+`:`${t}`,u=(()=>{if(t===0)return"0px";const m=f.length;return`${Math.max(16,7.1+m*6.1)+4}px`})(),E=n?g.jsxs(jt.Box,{$css:{display:"flex",alignItems:"center",gap:"4px"},children:[g.jsx(b.Checkbox,{checked:e,indeterminate:l,onChange:c,size:"m"}),g.jsx(Pt.Typography,{variant:x,children:o})]}):g.jsx(Pt.Typography,{variant:x,children:o});return g.jsxs(jt.Box,{className:h,$css:{display:"flex",alignItems:"center"},children:[E,g.jsx(se.Collapse,{duration:.3,orientation:"horizontal",isOpen:r,unMountOnClose:!0,sizeOnOpen:u,extContainerCss:{overflow:"visible",display:"flex",justifyContent:"flex-end"},intContainerCss:{always:{opacity:"0",transition:".3s ease"},onOpen:{opacity:1}},children:r&&g.jsx(Wt.AnimatedCounter,{className:"counter",count:t,maxCount:i,size:"xs",view:"accent",style:{marginBottom:"3px"}},t)})]})},Ee=(t=[])=>p.useMemo(()=>{const i=[],o={},n=new Map;return t.forEach(e=>{var c,h;if(e.dropdown){const l=`group-${e.key||e.text||Date.now()}`,a="items"in e.dropdown?e.dropdown.items||[]:[],s="onItemSelect"in e.dropdown?e.dropdown.onItemSelect:void 0;s&&n.set(l.toString(),s);const[r,x]=xt.processDropdownItems(a,s);x.forEach((f,u)=>n.set(u,f)),(c=e.dropdown)!=null&&c.$css&&Object.assign(o,(h=e.dropdown)==null?void 0:h.$css),i.push({label:e.text??"",value:l,contentLeft:e.contentLeft,items:r,className:e.className,disabled:e.disabled})}else{const l=e.key||e.text||`btn-${Date.now()}`,a={label:e.text||"Кнопка",value:l.toString(),disabled:e.disabled,contentLeft:e.contentLeft};e.onClick&&n.set(l.toString(),(s,r)=>{var f;const x={...r,nativeEvent:r.nativeEvent,preventDefault:r.preventDefault,stopPropagation:r.stopPropagation,target:r.target,currentTarget:r.currentTarget};(f=e.onClick)==null||f.call(e,x)}),i.push(a)}}),{dropdownItems:i,handlerMap:n,$summaryCSS:o}},[t]),Ce=({buttons:t=[],dividerIndexes:i=[],triggerSlot:o,dropdownProps:n,useTableDropdown:e=!1})=>{const{dropdownItems:c,handlerMap:h,$summaryCSS:l}=Ee(t),a=xt.useDropdownItemClickHandler(h),[s,r]=p.useState(!1),x=c.map((m,I)=>(i.includes(I)&&(m.dividerAfter=!0),m)),f={closeOnSelect:!0,...n,onItemSelect:a,items:x,onToggle:m=>r(m),portal:"document",view:(n==null?void 0:n.view)||"default"},{portal:u,...E}=f;return e?g.jsx(Wt.TableDropdown,{$css:l,...E,children:o}):g.jsx(b.Dropdown,{...f,children:o})},Te=({button:t,isCompact:i,compactSize:o="xs",useTableDropdown:n=!1})=>{const e=t.size??(i?o:"s");return g.jsx(Ot,{...t,size:e,showLabel:!0,useTableDropdown:n})},Ie=({button:t,isCompact:i,compactSize:o="xs",useTableDropdown:n=!1})=>{const e=t.size??(i?o:"s");return g.jsx(Ot,{...t,size:e,showLabel:!0,useTableDropdown:n})},$t=(t,i,o=!1,n="xs")=>t.type==="button"?g.jsx(Te,{button:t,isCompact:i,compactSize:n,useTableDropdown:o}):g.jsx(Ie,{button:t,isCompact:i,compactSize:n,useTableDropdown:o}),ne=({containerRef:t,leftSection:i,middleSection:o,buttons:n,sidebarConfig:e,isHaveSomeFeatureInSidebar:c=!1,collapsedDropdownProps:h,selectedCount:l,show:a,useTableDropdown:s=!1,enableDebugLogs:r=!1,bottom:x=16,minPadding:f=16,size:u})=>{const{down:E}=xt.useBreakpoint(),m=u?u==="xs":E("xl"),I=u?"xxs":"xs",[A,N]=p.useState(!1),z=p.useRef(null),J=p.useRef(null),y=p.useRef(null),_=p.useRef([]),S=p.useRef(null),q=p.useRef(null),k=p.useRef(null),$=p.useRef(null),[R,U]=p.useState((n==null?void 0:n.length)??0),[tt,ot]=p.useState(void 0),[at,ct]=p.useState(!1),{containerWidth:T,getContainerWidth:P}=Ft(t),et=bt(l),v=a!==void 0?a:et,{calculatePosition:O,calculatePositionForState:j,shouldApplySidebarOffsetRef:V}=Zt({containerRef:z,collapseButtonRef:q,leftSectionRef:k,getContainerWidth:P,isHaveSomeFeatureInSidebar:c,sidebarConfig:e,visibleButtonsCount:R,setTranslateX:ot,minPadding:f}),{calculateCompression:G,measuredButtonWidthsRef:nt}=Jt({isCollapsed:A,containerRef:z,contentRef:J,middleSectionRef:y,buttonRefs:_,moreButtonRef:S,collapseButtonRef:q,leftSectionRef:k,dividerRef:$,buttons:n,isHaveSomeFeatureInSidebar:c,getContainerWidth:P,setVisibleButtonsCount:U,enableDebugLogs:r,minPadding:f,leftPadding:Q.left,rightPadding:Q.right,moreButtonWidthEstimate:m?32:Nt}),{isSidebarOpen:st,wasAutoCollapsedRef:H}=Qt({isCollapsed:A,setIsCollapsed:N,calculatePositionForState:j,calculatePosition:O,setTranslateX:ot,shouldApplySidebarOffsetRef:V,sidebarConfig:e,getContainerWidth:P}),{handleToggleCollapse:dt}=Yt({isCollapsed:A,setIsCollapsed:N,isSidebarOpen:st,calculatePositionForState:j,calculatePosition:O,setTranslateX:ot,shouldApplySidebarOffsetRef:V,wasAutoCollapsedRef:H}),{visibleButtons:X,buttonsInDropdown:pt,allButtons:rt}=Xt({buttons:n,visibleButtonsCount:R});if(p.useEffect(()=>{const W=setTimeout(()=>ct(!0),Ut);return()=>clearTimeout(W)},[]),Kt({containerRef:z,buttonRefs:_,buttons:n,isVisible:v,isCollapsed:A,visibleButtonsCount:R,selectedCount:l,setIsCollapsed:N,setVisibleButtonsCount:U,calculatePosition:O,calculateCompression:G,measuredButtonWidthsRef:nt,containerWidth:T}),!v)return null;const ut=!A&&((n==null?void 0:n.length)??0)>0;return g.jsx(de,{ref:z,$isCollapsed:A,$size:u,$translateX:tt,$isInitialCalculationComplete:at,$bottom:x,children:g.jsxs(ue,{ref:J,$isCollapsed:A,$isCompact:m,children:[g.jsx(pe,{children:rt.map((W,w)=>{const C=W.key??`${W.text}${w}`;return g.jsx(fe,{ref:D=>{_.current[w]=D},children:$t(W,m,s,I)},`measure-${C}`)})}),g.jsx("div",{ref:k,children:i}),g.jsxs(he,{$isCollapsed:A,children:[o&&g.jsx("div",{ref:y,children:o}),ut&&g.jsx("div",{ref:$,children:g.jsx(me,{orientation:"vertical",length:"16px"})}),pt.length>0&&g.jsx("div",{ref:W=>{S.current=W},children:g.jsx(Ce,{buttons:pt,useTableDropdown:s,dropdownProps:{placement:"top",...h},triggerSlot:g.jsx(b.IconButton,{view:"secondary",size:m?I:"s",contentLeft:g.jsx(Rt.IconDotsVerticalCenteredOutline,{size:m?"xs":"s"})})})}),X.map((W,w)=>{const C=W.key??`${W.text}${w}`,D=g.jsx(ge,{children:$t(W,m,s,I)},C);return W.disabled&&W.disabledTooltipProps?g.jsx(b.Tooltip,{trigger:"hover",...W.disabledTooltipProps,children:D},C):D})]}),g.jsx("div",{ref:q,children:g.jsx(we,{size:m?"s":"m",$isCollapsed:A,$isCompact:m,onClick:dt,children:g.jsx(xe,{size:m?"xs":"s",$isCollapsed:A})})})]})})};ne.Counter=ee;exports.ACTION_BUTTON_WIDTH_ESTIMATE=gt;exports.ANIMATION_COMPLETE_DELAY=Tt;exports.ANIMATION_DURATION=oe;exports.COLLAPSE_BUTTON_WIDTH=ht;exports.COMPRESSION_CALCULATION_DELAY=Gt;exports.CONTAINER_PADDING_HORIZONTAL=ie;exports.COUNTER_WIDTH_ESTIMATE=vt;exports.DELAY_BEFORE_SHOW_PANEL=Ut;exports.ELEMENTS_GAP=L;exports.INITIAL_POSITION_CALCULATION_DELAY=Ht;exports.MIN_PANEL_PADDING=Ct;exports.MORE_BUTTON_WIDTH_ESTIMATE=Nt;exports.MassActions=ne;exports.MassActionsButton=Ot;exports.MassActionsCounter=ee;exports.PANEL_PADDING_COLLAPSED=Bt;exports.PANEL_PADDING_EXPANDED=Q;exports.RESET_BUTTON_WIDTH_ESTIMATE=qt;exports.TOGGLE_SIDEBAR_PANEL_WIDTH=wt;exports.useMassActionsButtons=Xt;exports.useMassActionsCollapse=Yt;exports.useMassActionsCompression=Jt;exports.useMassActionsContainer=Ft;exports.useMassActionsEffects=Kt;exports.useMassActionsPosition=Zt;exports.useMassActionsSidebar=Qt;exports.useMassActionsVisibility=bt;