@daisforge/ui 1.12.2 → 1.14.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 (395) hide show
  1. package/chunks/AnalyticalWidget-B6czTLSw.cjs +43 -0
  2. package/chunks/{AnalyticalWidget-CBi-2MtJ.mjs → AnalyticalWidget-BWggL9xa.mjs} +144 -144
  3. package/chunks/{ApprovalCenter-oACSjXxE.cjs → ApprovalCenter-DG3YvEkY.cjs} +1 -1
  4. package/chunks/{ApprovalCenter-ClCoA3cr.mjs → ApprovalCenter-XCXGHaEP.mjs} +2 -2
  5. package/chunks/{BlockTitle-CylSY2DM.cjs → BlockTitle-3YmyxJHJ.cjs} +1 -1
  6. package/chunks/{BlockTitle-DTaIqiFF.mjs → BlockTitle-DDWF1ZeV.mjs} +2 -2
  7. package/chunks/{Container-CV4sT-bB.mjs → Container-BlAaXm8V.mjs} +1 -1
  8. package/chunks/{Container-D8Bcg69e.cjs → Container-CJX4h6tb.cjs} +1 -1
  9. package/chunks/{EmptyState-Bct6Wrxv.mjs → EmptyState-BB3duGQw.mjs} +1 -1
  10. package/chunks/{EmptyState-BD6Ic-OX.cjs → EmptyState-Du-RIjie.cjs} +1 -1
  11. package/chunks/{FiltersActions-C3yWFtQT.mjs → FiltersActions-C38x0y5T.mjs} +4 -4
  12. package/chunks/{FiltersActions-D1aQXh5d.cjs → FiltersActions-CvAwGV9F.cjs} +1 -1
  13. package/chunks/{FormSegmentGroup-C8kROjlQ.mjs → FormSegmentGroup-9b3w4_KU.mjs} +1 -1
  14. package/chunks/{FormSegmentGroup-DIaBZRWv.cjs → FormSegmentGroup-DcOPPn3M.cjs} +1 -1
  15. package/chunks/{GridDND-rVSi0xX1.mjs → GridDND-BnK1dEhJ.mjs} +2 -2
  16. package/chunks/{GridDND-BP_H26We.cjs → GridDND-CVAlpElj.cjs} +1 -1
  17. package/chunks/{LeftPanel-CgexykUg.cjs → LeftPanel-Ciehaz28.cjs} +1 -1
  18. package/chunks/{LeftPanel-bKmeEOHx.mjs → LeftPanel-DuIinlBm.mjs} +1 -1
  19. package/chunks/ListOfFilters-Cji5UH2J.mjs +260 -0
  20. package/chunks/ListOfFilters-DNzfSG-p.cjs +1 -0
  21. package/chunks/{MassActions-D4nb1_gx.mjs → MassActions-BOG04zip.mjs} +3 -3
  22. package/chunks/{MassActions-BCgI08G9.cjs → MassActions-DCk9APKP.cjs} +1 -1
  23. package/chunks/{PageTitle-BC0PnHgQ.cjs → PageTitle-BIllremL.cjs} +1 -1
  24. package/chunks/{PageTitle-B0tuR3fU.mjs → PageTitle-CQ_6jZ0x.mjs} +2 -2
  25. package/chunks/{SplitView-OUGciQ51.cjs → SplitView-DdLshcIk.cjs} +1 -1
  26. package/chunks/{SplitView-C8de8YKV.mjs → SplitView-Dm62AAZj.mjs} +1 -1
  27. package/chunks/Stories-dFpUqS5T.mjs +673 -0
  28. package/chunks/Stories-e_CX_1CS.cjs +1 -0
  29. package/chunks/Table-CrJFfavU.cjs +31 -0
  30. package/chunks/{Table-Bj2se1hR.mjs → Table-f0CmcIhI.mjs} +1161 -1161
  31. package/chunks/{TableCanvas-Y53zQ7M0.mjs → TableCanvas-1bi1WWeP.mjs} +2561 -2548
  32. package/chunks/TableCanvas-DqF5YxEY.cjs +30 -0
  33. package/chunks/TableGlide-CGAh5x3Q.cjs +1 -0
  34. package/chunks/{TableGlide-CuBMIM6Q.mjs → TableGlide-DGKw3w0G.mjs} +2184 -2126
  35. package/chunks/{styles-Dd4uEa27.mjs → styles-BMXAIiBk.mjs} +1 -1
  36. package/chunks/{styles-kPI9R7DO.cjs → styles-DwCVRGsC.cjs} +1 -1
  37. package/chunks/{utils-C5SQhoON.mjs → utils-D4eJY8pa.mjs} +81 -74
  38. package/chunks/utils-DvDFSlCG.cjs +25 -0
  39. package/components/AiAgentPopover/index.cjs +1 -1
  40. package/components/AiAgentPopover/index.mjs +1 -1
  41. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/AnalyticalWidgetChipsGroup.styled.d.ts +7 -0
  42. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
  43. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
  44. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
  45. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
  46. package/components/AnalyticalWidget/index.cjs +1 -1
  47. package/components/AnalyticalWidget/index.mjs +1 -1
  48. package/components/ApprovalCenter/components/index.cjs +1 -1
  49. package/components/ApprovalCenter/components/index.mjs +1 -1
  50. package/components/ApprovalCenter/index.cjs +1 -1
  51. package/components/ApprovalCenter/index.mjs +1 -1
  52. package/components/AutocompleteSearch/index.cjs +1 -1
  53. package/components/AutocompleteSearch/index.mjs +2 -2
  54. package/components/BlockGradientScroll/index.cjs +1 -1
  55. package/components/BlockGradientScroll/index.mjs +1 -1
  56. package/components/BlockTitle/index.cjs +1 -1
  57. package/components/BlockTitle/index.mjs +1 -1
  58. package/components/BlockTitle/utils/index.cjs +1 -1
  59. package/components/BlockTitle/utils/index.mjs +1 -1
  60. package/components/Collapse/index.cjs +1 -1
  61. package/components/Collapse/index.mjs +1 -1
  62. package/components/Combobox/index.cjs +1 -1
  63. package/components/Combobox/index.mjs +1 -1
  64. package/components/EmptyState/components/index.cjs +1 -1
  65. package/components/EmptyState/components/index.mjs +1 -1
  66. package/components/EmptyState/index.cjs +1 -1
  67. package/components/EmptyState/index.mjs +1 -1
  68. package/components/GridDND/index.cjs +1 -1
  69. package/components/GridDND/index.mjs +1 -1
  70. package/components/GridDND/utils/index.cjs +1 -1
  71. package/components/GridDND/utils/index.mjs +1 -1
  72. package/components/IconButton/index.cjs +1 -1
  73. package/components/IconButton/index.mjs +1 -1
  74. package/components/LeftPanel/components/index.cjs +1 -1
  75. package/components/LeftPanel/components/index.mjs +1 -1
  76. package/components/LeftPanel/hooks/index.cjs +1 -1
  77. package/components/LeftPanel/hooks/index.mjs +1 -1
  78. package/components/LeftPanel/index.cjs +1 -1
  79. package/components/LeftPanel/index.mjs +1 -1
  80. package/components/LeftPanel/utils/index.cjs +1 -1
  81. package/components/LeftPanel/utils/index.mjs +1 -1
  82. package/components/ListOfFilters/index.cjs +1 -1
  83. package/components/ListOfFilters/index.mjs +1 -1
  84. package/components/ListOfFilters/useSyncTabsScrollArrows.d.ts +3 -0
  85. package/components/MassActions/hooks/index.cjs +1 -1
  86. package/components/MassActions/hooks/index.mjs +1 -1
  87. package/components/MassActions/index.cjs +1 -1
  88. package/components/MassActions/index.mjs +1 -1
  89. package/components/ModalDF/index.cjs +1 -1
  90. package/components/ModalDF/index.mjs +1 -1
  91. package/components/Notification/index.cjs +1 -1
  92. package/components/Notification/index.mjs +2 -2
  93. package/components/PageTitle/index.cjs +1 -1
  94. package/components/PageTitle/index.mjs +1 -1
  95. package/components/PageTitle/utils/index.cjs +1 -1
  96. package/components/PageTitle/utils/index.mjs +1 -1
  97. package/components/PopoverDF/index.cjs +1 -1
  98. package/components/PopoverDF/index.mjs +1 -1
  99. package/components/PopupDF/index.cjs +1 -1
  100. package/components/PopupDF/index.mjs +1 -1
  101. package/components/SplitView/index.cjs +1 -1
  102. package/components/SplitView/index.mjs +1 -1
  103. package/components/SplitView/utils/index.cjs +1 -1
  104. package/components/SplitView/utils/index.mjs +1 -1
  105. package/components/Stories/Stories.types.d.ts +1 -0
  106. package/components/Stories/components/StoriesBanner/index.cjs +1 -1
  107. package/components/Stories/components/StoriesBanner/index.mjs +1 -1
  108. package/components/Stories/components/StoriesContent/index.cjs +1 -1
  109. package/components/Stories/components/StoriesContent/index.mjs +1 -1
  110. package/components/Stories/components/StoriesPreview/index.cjs +1 -1
  111. package/components/Stories/components/StoriesPreview/index.mjs +1 -1
  112. package/components/Stories/components/StoriesProgress/index.cjs +1 -1
  113. package/components/Stories/components/StoriesProgress/index.mjs +1 -1
  114. package/components/Stories/components/StoriesViewer/index.cjs +1 -1
  115. package/components/Stories/components/StoriesViewer/index.mjs +1 -1
  116. package/components/Stories/index.cjs +1 -1
  117. package/components/Stories/index.mjs +1 -1
  118. package/components/Stories/store/StoriesContext.d.ts +1 -0
  119. package/components/Table/components/TableDropdown/index.cjs +1 -1
  120. package/components/Table/components/TableDropdown/index.mjs +1 -1
  121. package/components/Table/feature-collapse-table/index.cjs +1 -1
  122. package/components/Table/feature-collapse-table/index.mjs +1 -1
  123. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  124. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  125. package/components/Table/feature-column-control/index.cjs +1 -1
  126. package/components/Table/feature-column-control/index.mjs +1 -1
  127. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  128. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  129. package/components/Table/feature-context-menu/index.cjs +1 -1
  130. package/components/Table/feature-context-menu/index.mjs +1 -1
  131. package/components/Table/feature-edit/index.cjs +1 -1
  132. package/components/Table/feature-edit/index.mjs +1 -1
  133. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  134. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  135. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  136. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  137. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  138. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  139. package/components/Table/feature-filtering/index.cjs +1 -1
  140. package/components/Table/feature-filtering/index.mjs +1 -1
  141. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  142. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  143. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  144. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  145. package/components/Table/feature-key-text/index.cjs +1 -1
  146. package/components/Table/feature-key-text/index.mjs +1 -1
  147. package/components/Table/feature-pagination/index.cjs +1 -1
  148. package/components/Table/feature-pagination/index.mjs +1 -1
  149. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  150. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  151. package/components/Table/feature-row-detail/index.cjs +1 -1
  152. package/components/Table/feature-row-detail/index.mjs +1 -1
  153. package/components/Table/feature-row-instruments/index.cjs +1 -1
  154. package/components/Table/feature-row-instruments/index.mjs +1 -1
  155. package/components/Table/feature-row-size/index.cjs +1 -1
  156. package/components/Table/feature-row-size/index.mjs +1 -1
  157. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  158. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  159. package/components/Table/feature-searching/index.cjs +1 -1
  160. package/components/Table/feature-searching/index.mjs +1 -1
  161. package/components/Table/feature-select-row/index.cjs +1 -1
  162. package/components/Table/feature-select-row/index.mjs +1 -1
  163. package/components/Table/feature-sorting/index.cjs +1 -1
  164. package/components/Table/feature-sorting/index.mjs +1 -1
  165. package/components/Table/feature-table-settings/index.cjs +1 -1
  166. package/components/Table/feature-table-settings/index.mjs +1 -1
  167. package/components/Table/feature-tree/index.cjs +1 -1
  168. package/components/Table/feature-tree/index.mjs +1 -1
  169. package/components/Table/index.cjs +1 -1
  170. package/components/Table/index.mjs +1 -1
  171. package/components/Table/renders/formatCell/index.cjs +1 -1
  172. package/components/Table/renders/formatCell/index.mjs +1 -1
  173. package/components/Table/styles/index.cjs +1 -1
  174. package/components/Table/styles/index.mjs +1 -1
  175. package/components/Table/table-hooks/index.cjs +1 -1
  176. package/components/Table/table-hooks/index.mjs +1 -1
  177. package/components/Table/types/index.cjs +1 -1
  178. package/components/Table/types/index.mjs +1 -1
  179. package/components/Table/utils/index.cjs +1 -1
  180. package/components/Table/utils/index.mjs +1 -1
  181. package/components/Table/widgets/control-block/index.cjs +1 -1
  182. package/components/Table/widgets/control-block/index.mjs +1 -1
  183. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  184. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  185. package/components/Table/widgets/index.cjs +1 -1
  186. package/components/Table/widgets/index.mjs +1 -1
  187. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  188. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  189. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  190. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  191. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  192. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  193. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  194. package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
  195. package/components/TableCanvas/TableGlideInstance/type.d.ts +2 -0
  196. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  197. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  198. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  199. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  200. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  201. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  202. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  203. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  204. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  205. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  206. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  207. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  208. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  209. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  210. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  211. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  212. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  213. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  214. package/components/TableCanvas/feature-columns-grouping/useLastLvlColumnConfig.d.ts +1 -0
  215. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  216. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  217. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  218. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  219. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  220. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  221. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  222. package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
  223. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  224. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  225. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  226. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  227. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  228. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  229. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  230. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  231. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  232. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  233. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  234. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  235. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  236. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  237. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  238. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  239. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  240. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  241. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  242. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  243. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  244. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  245. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  246. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  247. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  248. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  249. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  250. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  251. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  252. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  253. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  254. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  255. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  256. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  257. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  258. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  259. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  260. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  261. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  262. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  263. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  264. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  265. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  266. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  267. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  268. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  269. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  270. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  271. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  272. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  273. package/components/TableCanvas/index.cjs +1 -1
  274. package/components/TableCanvas/index.mjs +2 -2
  275. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  276. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  277. package/components/TableCanvas/styles/index.cjs +1 -1
  278. package/components/TableCanvas/styles/index.mjs +1 -1
  279. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  280. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  281. package/components/TableCanvas/types/column-config.type.d.ts +3 -0
  282. package/components/TableCanvas/types/columns-grouping.type.d.ts +8 -0
  283. package/components/TableCanvas/types/index.cjs +1 -1
  284. package/components/TableCanvas/types/index.mjs +1 -1
  285. package/components/TableCanvas/types/table-config.type.d.ts +3 -0
  286. package/components/TableCanvas/utils/index.cjs +1 -1
  287. package/components/TableCanvas/utils/index.mjs +2 -2
  288. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  289. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  290. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  291. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  292. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  293. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  294. package/components/TableCanvas/widgets/index.cjs +1 -1
  295. package/components/TableCanvas/widgets/index.mjs +1 -1
  296. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  297. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  298. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  299. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  300. package/components/TableContract/index.cjs +1 -1
  301. package/components/TableContract/index.mjs +2 -2
  302. package/components/TableGlide/TableGlide.d.ts +1 -1
  303. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  304. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  305. package/components/TableGlide/index.cjs +1 -1
  306. package/components/TableGlide/index.mjs +1 -1
  307. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  308. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  309. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  310. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  311. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  312. package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
  313. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  314. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  315. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  316. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  317. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  318. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  319. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  320. package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
  321. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  322. package/components/TableGlide/lib/canvas/index.mjs +1 -1
  323. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  324. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  325. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  326. package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
  327. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  328. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  329. package/components/TableGlide/theming/index.cjs +1 -1
  330. package/components/TableGlide/theming/index.mjs +1 -1
  331. package/components/TableGlide/types.d.ts +3 -2
  332. package/components/TableTabs/index.cjs +1 -1
  333. package/components/TableTabs/index.mjs +1 -1
  334. package/components/Tooltip/index.cjs +1 -1
  335. package/components/Tooltip/index.mjs +1 -1
  336. package/components/TourWidget/index.cjs +1 -1
  337. package/components/TourWidget/index.mjs +2 -2
  338. package/components/Typography/index.cjs +1 -1
  339. package/components/Typography/index.mjs +1 -1
  340. package/components/Widget/index.cjs +1 -1
  341. package/components/Widget/index.mjs +2 -2
  342. package/formComponents/FormCombobox/index.cjs +1 -1
  343. package/formComponents/FormCombobox/index.mjs +1 -1
  344. package/formComponents/FormRadioGroupBox/index.cjs +1 -1
  345. package/formComponents/FormRadioGroupBox/index.mjs +1 -1
  346. package/formComponents/FormSegments/index.cjs +1 -1
  347. package/formComponents/FormSegments/index.mjs +1 -1
  348. package/formComponents/FormSwitch/index.cjs +1 -1
  349. package/formComponents/FormSwitch/index.mjs +1 -1
  350. package/index.cjs +1 -1
  351. package/index.mjs +137 -136
  352. package/layouts/Container/index.cjs +1 -1
  353. package/layouts/Container/index.mjs +1 -1
  354. package/layouts/Container/lib/utils/index.cjs +1 -1
  355. package/layouts/Container/lib/utils/index.mjs +1 -1
  356. package/layouts/ErrorPage/index.cjs +1 -1
  357. package/layouts/ErrorPage/index.mjs +1 -1
  358. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  359. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  360. package/layouts/FiltersActions/index.cjs +1 -1
  361. package/layouts/FiltersActions/index.mjs +1 -1
  362. package/layouts/Layout/index.cjs +1 -1
  363. package/layouts/Layout/index.mjs +1 -1
  364. package/layouts/PageLayout/index.cjs +1 -1
  365. package/layouts/PageLayout/index.mjs +1 -1
  366. package/mcp-data/component-index.json +45769 -0
  367. package/mixins/index.cjs +1 -1
  368. package/mixins/index.mjs +1 -1
  369. package/package.json +6 -6
  370. package/styles/index.cjs +1 -1
  371. package/styles/index.mjs +1 -1
  372. package/utils/breakpoint/index.cjs +1 -1
  373. package/utils/breakpoint/index.mjs +1 -1
  374. package/utils/clickStream/index.cjs +1 -1
  375. package/utils/clickStream/index.d.ts +2 -2
  376. package/utils/clickStream/index.mjs +6 -5
  377. package/utils/clickStream/types.d.ts +14 -1
  378. package/utils/clickStream/utils.d.ts +2 -1
  379. package/utils/eventBus/index.cjs +1 -1
  380. package/utils/eventBus/index.mjs +1 -1
  381. package/utils/hooks/index.cjs +1 -1
  382. package/utils/hooks/index.mjs +1 -1
  383. package/utils/index.cjs +1 -1
  384. package/utils/index.mjs +26 -25
  385. package/utils/styles/index.cjs +1 -1
  386. package/utils/styles/index.mjs +1 -1
  387. package/chunks/AnalyticalWidget-fBDe37Ur.cjs +0 -43
  388. package/chunks/ListOfFilters-DgInAZFi.cjs +0 -1
  389. package/chunks/ListOfFilters-IEPKSKxx.mjs +0 -243
  390. package/chunks/Stories--_pE4YtR.mjs +0 -668
  391. package/chunks/Stories-Dvh6rMeV.cjs +0 -1
  392. package/chunks/Table-CnWVNNoW.cjs +0 -31
  393. package/chunks/TableCanvas-eYhmqTbp.cjs +0 -30
  394. package/chunks/TableGlide-CvMz7x7a.cjs +0 -1
  395. package/chunks/utils-DKi1rqLX.cjs +0 -25
@@ -0,0 +1,43 @@
1
+ "use strict";const q=require("../components/IconButton/index.cjs"),a=require("@salutejs/sdds-finai"),i=require("react/jsx-runtime"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),n=require("styled-components"),h=require("./utils-DvDFSlCG.cjs"),p=require("react"),K=require("../components/Collapse/index.cjs"),D=require("@salutejs/plasma-icons"),Q=n(a.Chip).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChip"})(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]),Z=n(a.ChipGroup).withConfig({displayName:"AnalyticalWidgetChipsGroupstyled__StyledChipGroup"})(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);"]),z=({chips:e,commonView:t="default",commonSize:d="xs",opened:s=!1,...o})=>{const y=h.useDebouncedValue(s,300,!1);return i.jsx(K.Collapse,{isOpen:y,unMountOnClose:!0,children:i.jsx(Z,{view:t,size:d,isCommonChipStyles:!1,...o,children:e.map(({key:l,view:S,...c},v)=>p.createElement(Q,{size:"xs",appearance:"transparent",...c,key:l??`${c==null?void 0:c.name}-${v}`}))})})},tt=n.div.withConfig({displayName:"TooltipList__StyledTooltipContent"})(["color:",";",";max-height:130px;overflow-y:auto;padding-block:2px;padding-right:2px;& > 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;}}"],()=>r.inverseTextPrimary,()=>n.css(r.bodyXS)),et=({groupLabel:e,items:t})=>i.jsxs(tt,{children:[i.jsx("span",{children:e}),i.jsx("ul",{children:t.map((d,s)=>i.jsx("li",{children:d},`${d}-${s}`))})]}),it=n.div.withConfig({displayName:"TooltipList__FullWidthWrapper"})(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]),nt=({groupLabel:e,items:t,children:d,fullWidth:s,...o})=>{const y=t.length>0,l=i.jsx(a.Tooltip,{usePortal:!0,size:"s",mouseEnterDelay:500,...o,trigger:y?o.trigger??"hover":"none",text:y?i.jsx(et,{groupLabel:e,items:t}):null,opened:y?o.opened:!1,children:d});return s?i.jsx(it,{children:l}):l},at={l:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"512px",padding:"16px",borderRadius:"16px"}},m:{xl:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},md:{minWidth:"448px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"}},s:{xl:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},lg:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"},md:{minWidth:"216px",maxWidth:"unset",width:"100%",minHeight:"248px",padding:"16px",borderRadius:"16px"}}},lt={l:{topSlot:!0,middleSlot:!0},m:{topSlot:!0,middleSlot:!1},s:{topSlot:!0,middleSlot:!1}},m={root:"analytical-widget",header:"analytical-widget__header",popoverInfo:"analytical-widget__popover-info",topSlot:"analytical-widget__top-slot",middleSlot:"analytical-widget__middle-slot",contentSlot:"analytical-widget__content",headerActions:"analytical-widget__header-actions"},ot={BodyL:a.BodyL,BodyM:a.BodyM,BodyS:a.BodyS,BodyXS:a.BodyXS,BodyXXS:a.BodyXXS,DsplL:a.DsplL,DsplM:a.DsplM,DsplS:a.DsplS,H1:a.H1,H2:a.H2,H3:a.H3,H4:a.H4,H5:a.H5,TextL:a.TextL,TextM:a.TextM,TextS:a.TextS,TextXS:a.TextXS};function $({variant:e,children:t,refTypography:d,...s}){const o=ot[e];return i.jsx(o,{...s,ref:d,children:t})}$.displayName="Typography";const L="typography-with-auto-tooltip-root";let A=!1,w=null,B=0;function G(){if(typeof document>"u")return;const e=document.getElementById(L);e&&e.querySelectorAll("[id^='plasma-popover-root']:empty").forEach(t=>t.remove())}function dt(){A||(A=!0,w=setTimeout(()=>{A=!1,w=null,G()},0))}function rt(){w&&(clearTimeout(w),w=null),A=!1}function st(){w&&(clearTimeout(w),w=null),A=!1,G()}function ct(){if(!(typeof document>"u")){if(B+=1,B===1){const e=document.createElement("div");e.id=L,document.body.appendChild(e)}return()=>{if(B-=1,B===0){const e=document.getElementById(L);e&&(e.querySelectorAll("[id^='plasma-popover-root']").length>0||e.remove())}}}}function pt(){return{schedule:dt,flush:st,cancel:rt,getContainerId:()=>L,createContainer:ct}}const ht=n(a.Tooltip).withConfig({displayName:"TypographyWithAutoTooltipstyled__StyledTooltip"})(["&.popover-target{width:100%;}"]),yt=n.div.withConfig({displayName:"TypographyWithAutoTooltipstyled__StyleTooltipWrapper"})(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]),gt=1,k=({tooltipText:e,tooltipProps:t,lines:d=1,className:s,children:o,...y})=>{const{mouseEnterDelay:l=500,mouseLeaveDelay:S=0,...c}=t||{},v=p.useRef(null),[T,j]=p.useState(!1),W=p.useRef(),{schedule:u,getContainerId:C,createContainer:N}=pt(),I=p.useCallback(()=>{if(!v.current)return!1;const g=v.current;if(d>1)return g.scrollHeight>g.clientHeight||g.scrollWidth>g.clientWidth;try{const x=document.createRange();x.selectNodeContents(g);const Y=x.getBoundingClientRect().width,U=g.getBoundingClientRect().width;x.detach();const J=window.devicePixelRatio||1;return(Y-U)*J>gt}catch{return!1}},[d]),R=p.useCallback(()=>{I()&&(W.current=setTimeout(()=>{j(!0)},l))},[I,l]),_=p.useCallback(()=>{clearTimeout(W.current),setTimeout(()=>{j(!1),u()},S)},[S,u]),{variant:E,bold:M,size:b,...f}=y,V={variant:E,...M!==void 0&&{bold:M},...b!==void 0&&{size:b},...f,refTypography:v,onMouseEnter:g=>{var x;(x=f.onMouseEnter)==null||x.call(f,g)},onMouseLeave:g=>{var x;(x=f.onMouseLeave)==null||x.call(f,g)},style:{...h.truncateText({lines:d}),...f.style||{}},children:o},X=i.jsx($,{...V,children:o});return p.useEffect(()=>N(),[N]),p.useEffect(()=>()=>{clearTimeout(W.current),u()},[u]),i.jsx(yt,{className:s,onMouseEnter:R,onMouseLeave:_,children:T?i.jsx(ht,{opened:T,text:e??"",target:X,frame:C(),...c}):X})},ut=()=>n.css(r.bodyMBold),F=()=>n.css(r.bodyM),mt=n.header.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledHeader"})(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.","){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"],m.popoverInfo),xt=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLeftSlot"})(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]),ft=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleContainer"})(["margin:0;display:flex;flex-shrink:1;min-width:0;"]);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitle"})(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';",";color:",";"],()=>ut(),()=>r.textPrimary);const wt=n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]),St=n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"})(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]),vt=n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledAfterTitle"})(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';"," color:",";text-transform:uppercase;"],()=>F(),()=>r.textTertiary),Ct=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledActionsContainer"})(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]),Wt=n.div.attrs({className:m.headerActions}).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledActionsWrapper"})(["position:absolute;display:flex;left:0;top:0;transform:translateX( ","px );padding-left:","px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,"," 0%,"," 15%,"," 40%,"," 100% );"],e=>e.$translateX?e.$translateX:0,e=>e.$translateX?20:0,r.surfaceClear,r.surfaceClear,r.surfaceSolidCard,r.surfaceSolidCard);n.p.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitle"})([""," flex-shrink:1;margin:0;min-width:0;color:",";"],()=>F(),()=>r.textSecondary);n($).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"})(["color:",";"],()=>r.textSecondary);const Tt=n(a.Link).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledTitleLink"})(["display:flex;min-width:0;flex-shrink:1;"]);n(k).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"})(["flex-shrink:1;margin:0;min-width:0;"]);const _t=n.div.withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledRightSlot"})(["align-self:start;"]),bt=n(a.IconButton).withConfig({displayName:"AnalyticalWidgetHeaderstyled__StyledLinkIconButton"})(["&&{width:24px;height:24px;color:",";}"],()=>r.textSecondary),O=({title:e,titleTooltipProps:t})=>i.jsx(wt,{tooltipText:e,tooltipProps:{placement:"top",...t},variant:"BodyM",bold:!0,style:{color:r.textPrimary,wordBreak:"normal"},lines:1,children:e}),P=({title:e,titleTooltipProps:t,badge:d,badgeStyles:s,subtitle:o,subtitleTooltipProps:y,infoTooltipText:l,infoTooltipProps:S,href:c,hrefProps:v,rightSlot:T,className:j,titleLinkProps:W})=>{const u=p.useRef(null),C=p.useRef(null),[N,I]=p.useState(0);return p.useLayoutEffect(()=>{const R=()=>{if(u.current&&C.current){const E=u.current.offsetWidth,b=C.current.offsetWidth-E;I(b>0?-b-4:0)}},_=h.createSafeResizeObserver(R);return u.current&&_.observe(u.current),C.current&&_.observe(C.current),R(),()=>_.disconnect()},[]),i.jsxs(mt,{className:h.mergeClasses(m.header,j),children:[i.jsxs(xt,{children:[i.jsxs(ft,{children:[e&&W?i.jsx(Tt,{underline:"none",...W,children:i.jsx(O,{title:e,titleTooltipProps:t})}):i.jsx(O,{title:e,titleTooltipProps:t}),d&&i.jsx(vt,{style:s,children:d}),i.jsx(Ct,{ref:u,children:i.jsxs(Wt,{ref:C,$translateX:N,children:[l&&i.jsx(a.Tooltip,{trigger:"hover",placement:"top",text:l,target:i.jsx(a.EmbedIconButton,{children:i.jsx(D.IconInfoCircleOutline,{size:"xs",style:{cursor:"pointer",color:r.textSecondary}})}),className:h.mergeClasses(m.popoverInfo),...S}),c&&i.jsx(a.Link,{href:c,style:{flexShrink:0},size:"xs",...v,children:i.jsx(bt,{view:"clear",size:"xs",children:i.jsx(D.IconArrowDiagRightUp,{size:"xs"})})})]})})]}),o&&i.jsx(St,{variant:"BodyXS",tooltipText:o,style:{color:r.textSecondary,wordBreak:"normal"},tooltipProps:{placement:"top",...y},lines:1,children:o})]}),T&&i.jsx(_t,{children:T})]})},At=e=>{const t=at[e];return{xl:`
2
+ --analytical-widget-padding: ${t.xl.padding};
3
+ --analytical-widget-br: ${t.xl.borderRadius};
4
+ --analytical-widget-min-height: ${t.xl.minHeight};
5
+ --analytical-widget-min-width: ${t.xl.minWidth||"unset"};
6
+ --analytical-widget-max-width: ${t.xl.maxWidth||"unset"};
7
+
8
+ width: ${t.xl.width};
9
+ min-height: var(--analytical-widget-min-height);
10
+ height: 100%;
11
+ min-width: var(--analytical-widget-min-width);
12
+ max-width: var(--analytical-widget-max-width);
13
+ padding: var(--analytical-widget-padding);
14
+ border-radius: var(--analytical-widget-br);
15
+ `,lg:`
16
+ --analytical-widget-padding: ${t.lg.padding};
17
+ --analytical-widget-br: ${t.lg.borderRadius};
18
+ --analytical-widget-min-height: ${t.lg.minHeight};
19
+ --analytical-widget-min-width: ${t.lg.minWidth||"unset"};
20
+ --analytical-widget-max-width: ${t.lg.maxWidth||"unset"};
21
+
22
+ width: ${t.lg.width};
23
+ min-height: var(--analytical-widget-min-height);
24
+ height: 100%;
25
+ min-width: var(--analytical-widget-min-width);
26
+ max-width: var(--analytical-widget-max-width);
27
+ padding: var(--analytical-widget-padding);
28
+ border-radius: var(--analytical-widget-br);
29
+ `,md:`
30
+ --analytical-widget-padding: ${t.md.padding};
31
+ --analytical-widget-br: ${t.md.borderRadius};
32
+ --analytical-widget-min-height: ${t.md.minHeight};
33
+ --analytical-widget-min-width: ${t.md.minWidth||"unset"};
34
+ --analytical-widget-max-width: ${t.md.maxWidth||"unset"};
35
+
36
+ width: ${t.md.width};
37
+ min-height: var(--analytical-widget-min-height);
38
+ height: 100%;
39
+ min-width: var(--analytical-widget-min-width);
40
+ max-width: var(--analytical-widget-max-width);
41
+ padding: var(--analytical-widget-padding);
42
+ border-radius: var(--analytical-widget-br);
43
+ `}},Ht=n.article.withConfig({displayName:"AnalyticalWidgetstyled__StyledWidget"})(["--analytical-widget-bg:",";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.","{opacity:1;}}"," ",""],r.surfaceSolidCard,m.headerActions,({$size:e})=>{const t=At(e);return n.css([""," "," "," "],h.media.exact(0,1439)(t.md),h.media.exact(1440,1919)(t.lg),h.media.exact(1920,1e5)(t.xl))},({$css:e})=>e),jt=n(a.BodyM).withConfig({displayName:"AnalyticalWidgetstyled__StyledTopSlot"})(["overflow:hidden;"]),Nt=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledMiddleSlot"})(["overflow:hidden;padding-top:4px;"]),It=n.div.withConfig({displayName:"AnalyticalWidgetstyled__StyledContent"})(["position:relative;flex:1;min-height:30px;margin-top:4px;overflow-y:",";"],({scrollable:e})=>e?"auto":"visible"),H=({size:e="l",scrollable:t=!0,headerSlot:d,topSlot:s,middleSlot:o,contentSlot:y,classes:l,$css:S})=>{const c=lt[e];return i.jsxs(Ht,{$size:e,$css:S,className:h.mergeClasses(m.root,l==null?void 0:l.root),children:[i.jsx("div",{style:{minHeight:"32px"},children:d}),c.topSlot&&s||c.middleSlot&&o?i.jsxs("div",{children:[c.topSlot&&s&&i.jsx(jt,{className:h.mergeClasses(m.topSlot,l==null?void 0:l.topSlot),children:s}),c.middleSlot&&o&&i.jsx(Nt,{className:h.mergeClasses(m.middleSlot,l==null?void 0:l.middleSlot),children:o})]}):null,i.jsx(It,{scrollable:t,className:h.mergeClasses(m.contentSlot,l==null?void 0:l.contentSlot),children:y})]})};H.Header=P;H.FilterIconButton=q.IconButtonFilter;H.DotsIconButton=q.IconButtonDots;H.Chips=z;exports.AnalyticalWidget=H;exports.AnalyticalWidgetChipsGroup=z;exports.AnalyticalWidgetHeader=P;exports.TooltipList=nt;exports.Typography=$;exports.TypographyWithAutoTooltip=k;exports.analyticalWidgetClassNames=m;
@@ -1,15 +1,15 @@
1
- import { IconButtonFilter as nt, IconButtonDots as at } from "../components/IconButton/index.mjs";
2
- import { ChipGroup as lt, Chip as ot, Tooltip as O, TextXS as dt, TextS as rt, TextM as st, TextL as pt, H5 as ct, H4 as ht, H3 as yt, H2 as gt, H1 as mt, DsplS as ut, DsplM as xt, DsplL as ft, BodyXXS as wt, BodyXS as St, BodyS as vt, BodyM as P, BodyL as Wt, Link as U, IconButton as Ct, EmbedIconButton as Tt } from "@salutejs/sdds-finai";
1
+ import { IconButtonFilter as at, IconButtonDots as lt } from "../components/IconButton/index.mjs";
2
+ import { ChipGroup as ot, Chip as dt, Tooltip as z, TextXS as rt, TextS as st, TextM as pt, TextL as ct, H5 as ht, H4 as yt, H3 as gt, H2 as mt, H1 as ut, DsplS as xt, DsplM as ft, DsplL as wt, BodyXXS as St, BodyXS as vt, BodyS as Wt, BodyM as q, BodyL as Ct, Link as U, IconButton as _t, EmbedIconButton as Tt } from "@salutejs/sdds-finai";
3
3
  import { jsx as i, jsxs as w } from "react/jsx-runtime";
4
- import { inverseTextPrimary as _t, bodyXS as bt, textTertiary as At, surfaceClear as j, surfaceSolidCard as z, textSecondary as b, bodyM as Ht, textPrimary as J, bodyMBold as Nt } from "@salutejs/sdds-themes/tokens/sdds_finai";
5
- import n, { css as L } from "styled-components";
6
- import { u as It, a as $t, c as Rt, m as v, b as X } from "./utils-C5SQhoON.mjs";
7
- import { createElement as Bt, useRef as R, useState as K, useCallback as D, useEffect as V, useLayoutEffect as Lt } from "react";
4
+ import { inverseTextPrimary as bt, bodyXS as At, textTertiary as Ht, surfaceClear as Y, surfaceSolidCard as X, textSecondary as b, bodyM as Nt, textPrimary as J, bodyMBold as It } from "@salutejs/sdds-themes/tokens/sdds_finai";
5
+ import n, { css as B } from "styled-components";
6
+ import { u as Rt, a as $t, c as Lt, m as v, b as D } from "./utils-D4eJY8pa.mjs";
7
+ import { createElement as Bt, useRef as $, useState as K, useCallback as O, useEffect as P, useLayoutEffect as Et } from "react";
8
8
  import { Collapse as kt } from "../components/Collapse/index.mjs";
9
- import { IconInfoCircleOutline as Et, IconArrowDiagRightUp as Mt } from "@salutejs/plasma-icons";
10
- const Xt = n(ot).withConfig({
9
+ import { IconInfoCircleOutline as Mt, IconArrowDiagRightUp as Dt } from "@salutejs/plasma-icons";
10
+ const Ot = n(dt).withConfig({
11
11
  displayName: "AnalyticalWidgetChipsGroupstyled__StyledChip"
12
- })(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]), Dt = n(lt).withConfig({
12
+ })(["max-height:20px;max-width:180px;border-radius:12px;padding-inline:8px;"]), Xt = n(ot).withConfig({
13
13
  displayName: "AnalyticalWidgetChipsGroupstyled__StyledChipGroup"
14
14
  })(["--analytical-widget-chips-gap:4px;gap:var(--analytical-widget-chips-gap);"]), zt = ({
15
15
  chips: e,
@@ -18,46 +18,46 @@ const Xt = n(ot).withConfig({
18
18
  opened: d = !1,
19
19
  ...l
20
20
  }) => {
21
- const p = It(d, 300, !1);
22
- return /* @__PURE__ */ i(kt, { isOpen: p, unMountOnClose: !0, children: /* @__PURE__ */ i(Dt, { view: t, size: o, isCommonChipStyles: !1, ...l, children: e.map(({
21
+ const s = Rt(d, 300, !1);
22
+ return /* @__PURE__ */ i(kt, { isOpen: s, unMountOnClose: !0, children: /* @__PURE__ */ i(Xt, { view: t, size: o, isCommonChipStyles: !1, ...l, children: e.map(({
23
23
  key: a,
24
24
  view: u,
25
25
  ...r
26
- }, x) => /* @__PURE__ */ Bt(Xt, { size: "xs", appearance: "transparent", ...r, key: a ?? `${r == null ? void 0 : r.name}-${x}` })) }) });
27
- }, Ot = n.div.withConfig({
26
+ }, x) => /* @__PURE__ */ Bt(Ot, { size: "xs", appearance: "transparent", ...r, key: a ?? `${r == null ? void 0 : r.name}-${x}` })) }) });
27
+ }, Gt = n.div.withConfig({
28
28
  displayName: "TooltipList__StyledTooltipContent"
29
- })(["color:", ";", ";max-height:130px;overflow-y:auto;padding-block:2px;padding-right:2px;& > 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;}}"], () => _t, () => L(bt)), Gt = ({
29
+ })(["color:", ";", ";max-height:130px;overflow-y:auto;padding-block:2px;padding-right:2px;& > 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;}}"], () => bt, () => B(At)), Ft = ({
30
30
  groupLabel: e,
31
31
  items: t
32
- }) => /* @__PURE__ */ w(Ot, { children: [
32
+ }) => /* @__PURE__ */ w(Gt, { children: [
33
33
  /* @__PURE__ */ i("span", { children: e }),
34
34
  /* @__PURE__ */ i("ul", { children: t.map((o, d) => (
35
35
  // eslint-disable-next-line react/no-array-index-key
36
36
  /* @__PURE__ */ i("li", { children: o }, `${o}-${d}`)
37
37
  )) })
38
- ] }), Ft = n.div.withConfig({
38
+ ] }), Vt = n.div.withConfig({
39
39
  displayName: "TooltipList__FullWidthWrapper"
40
- })(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]), Ae = ({
40
+ })(["width:100%;& .popover-target,& .popover-wrapper{width:100%;}"]), Ne = ({
41
41
  groupLabel: e,
42
42
  items: t,
43
43
  children: o,
44
44
  fullWidth: d,
45
45
  ...l
46
46
  }) => {
47
- const p = t.length > 0, a = /* @__PURE__ */ i(
48
- O,
47
+ const s = t.length > 0, a = /* @__PURE__ */ i(
48
+ z,
49
49
  {
50
50
  usePortal: !0,
51
51
  size: "s",
52
52
  mouseEnterDelay: 500,
53
53
  ...l,
54
- trigger: p ? l.trigger ?? "hover" : "none",
55
- text: p ? /* @__PURE__ */ i(Gt, { groupLabel: e, items: t }) : null,
56
- opened: p ? l.opened : !1,
54
+ trigger: s ? l.trigger ?? "hover" : "none",
55
+ text: s ? /* @__PURE__ */ i(Ft, { groupLabel: e, items: t }) : null,
56
+ opened: s ? l.opened : !1,
57
57
  children: o
58
58
  }
59
59
  );
60
- return d ? /* @__PURE__ */ i(Ft, { children: a }) : a;
60
+ return d ? /* @__PURE__ */ i(Vt, { children: a }) : a;
61
61
  }, Yt = {
62
62
  l: {
63
63
  xl: {
@@ -152,7 +152,7 @@ const Xt = n(ot).withConfig({
152
152
  borderRadius: "16px"
153
153
  }
154
154
  }
155
- }, jt = {
155
+ }, Pt = {
156
156
  l: {
157
157
  topSlot: !0,
158
158
  // Filters + chips
@@ -179,24 +179,24 @@ const Xt = n(ot).withConfig({
179
179
  middleSlot: "analytical-widget__middle-slot",
180
180
  contentSlot: "analytical-widget__content",
181
181
  headerActions: "analytical-widget__header-actions"
182
- }, Vt = {
183
- BodyL: Wt,
184
- BodyM: P,
185
- BodyS: vt,
186
- BodyXS: St,
187
- BodyXXS: wt,
188
- DsplL: ft,
189
- DsplM: xt,
190
- DsplS: ut,
191
- H1: mt,
192
- H2: gt,
193
- H3: yt,
194
- H4: ht,
195
- H5: ct,
196
- TextL: pt,
197
- TextM: st,
198
- TextS: rt,
199
- TextXS: dt
182
+ }, jt = {
183
+ BodyL: Ct,
184
+ BodyM: q,
185
+ BodyS: Wt,
186
+ BodyXS: vt,
187
+ BodyXXS: St,
188
+ DsplL: wt,
189
+ DsplM: ft,
190
+ DsplS: xt,
191
+ H1: ut,
192
+ H2: mt,
193
+ H3: gt,
194
+ H4: yt,
195
+ H5: ht,
196
+ TextL: ct,
197
+ TextM: pt,
198
+ TextS: st,
199
+ TextXS: rt
200
200
  };
201
201
  function G({
202
202
  variant: e,
@@ -204,118 +204,118 @@ function G({
204
204
  refTypography: o,
205
205
  ...d
206
206
  }) {
207
- const l = Vt[e];
207
+ const l = jt[e];
208
208
  return /* @__PURE__ */ i(l, { ...d, ref: o, children: t });
209
209
  }
210
210
  G.displayName = "Typography";
211
- const B = "typography-with-auto-tooltip-root";
212
- let _ = !1, m = null, $ = 0;
211
+ const L = "typography-with-auto-tooltip-root";
212
+ let T = !1, m = null, R = 0;
213
213
  function Q() {
214
214
  if (typeof document > "u")
215
215
  return;
216
- const e = document.getElementById(B);
216
+ const e = document.getElementById(L);
217
217
  e && e.querySelectorAll("[id^='plasma-popover-root']:empty").forEach((t) => t.remove());
218
218
  }
219
219
  function qt() {
220
- _ || (_ = !0, m = setTimeout(() => {
221
- _ = !1, m = null, Q();
220
+ T || (T = !0, m = setTimeout(() => {
221
+ T = !1, m = null, Q();
222
222
  }, 0));
223
223
  }
224
- function Pt() {
225
- m && (clearTimeout(m), m = null), _ = !1;
226
- }
227
224
  function Ut() {
228
- m && (clearTimeout(m), m = null), _ = !1, Q();
225
+ m && (clearTimeout(m), m = null), T = !1;
229
226
  }
230
227
  function Jt() {
228
+ m && (clearTimeout(m), m = null), T = !1, Q();
229
+ }
230
+ function Kt() {
231
231
  if (!(typeof document > "u")) {
232
- if ($ += 1, $ === 1) {
232
+ if (R += 1, R === 1) {
233
233
  const e = document.createElement("div");
234
- e.id = B, document.body.appendChild(e);
234
+ e.id = L, document.body.appendChild(e);
235
235
  }
236
236
  return () => {
237
- if ($ -= 1, $ === 0) {
238
- const e = document.getElementById(B);
237
+ if (R -= 1, R === 0) {
238
+ const e = document.getElementById(L);
239
239
  e && (e.querySelectorAll("[id^='plasma-popover-root']").length > 0 || e.remove());
240
240
  }
241
241
  };
242
242
  }
243
243
  }
244
- function Kt() {
244
+ function Qt() {
245
245
  return {
246
246
  schedule: qt,
247
- flush: Ut,
248
- cancel: Pt,
249
- getContainerId: () => B,
250
- createContainer: Jt
247
+ flush: Jt,
248
+ cancel: Ut,
249
+ getContainerId: () => L,
250
+ createContainer: Kt
251
251
  };
252
252
  }
253
- const Qt = n(O).withConfig({
253
+ const Zt = n(z).withConfig({
254
254
  displayName: "TypographyWithAutoTooltipstyled__StyledTooltip"
255
- })(["&.popover-target{width:100%;}"]), Zt = n.div.withConfig({
255
+ })(["&.popover-target{width:100%;}"]), te = n.div.withConfig({
256
256
  displayName: "TypographyWithAutoTooltipstyled__StyleTooltipWrapper"
257
- })(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]), F = ({
257
+ })(["display:flex;align-items:center;min-width:0;& .popover-target{width:100%;}& .popover-wrapper{overflow:hidden;width:100%;display:flex;}"]), ee = 1, F = ({
258
258
  tooltipText: e,
259
259
  tooltipProps: t,
260
260
  lines: o = 1,
261
261
  className: d,
262
262
  children: l,
263
- ...p
263
+ ...s
264
264
  }) => {
265
265
  const {
266
266
  mouseEnterDelay: a = 500,
267
267
  mouseLeaveDelay: u = 0,
268
268
  ...r
269
- } = t || {}, x = R(null), [W, A] = K(!1), S = R(), {
269
+ } = t || {}, x = $(null), [W, A] = K(!1), S = $(), {
270
270
  schedule: c,
271
271
  getContainerId: f,
272
272
  createContainer: H
273
- } = Kt(), N = D(() => {
273
+ } = Qt(), N = O(() => {
274
274
  if (!x.current)
275
275
  return !1;
276
- const s = x.current;
276
+ const p = x.current;
277
277
  if (o > 1)
278
- return s.scrollHeight > s.clientHeight || s.scrollWidth > s.clientWidth;
279
- if (s.scrollWidth > s.clientWidth)
280
- return !0;
278
+ return p.scrollHeight > p.clientHeight || p.scrollWidth > p.clientWidth;
281
279
  try {
282
280
  const h = document.createRange();
283
- h.selectNodeContents(s);
284
- const et = h.getBoundingClientRect().width, it = s.getBoundingClientRect().width;
285
- return h.detach(), et > it;
281
+ h.selectNodeContents(p);
282
+ const et = h.getBoundingClientRect().width, it = p.getBoundingClientRect().width;
283
+ h.detach();
284
+ const nt = window.devicePixelRatio || 1;
285
+ return (et - it) * nt > ee;
286
286
  } catch {
287
287
  return !1;
288
288
  }
289
- }, [o]), I = D(() => {
289
+ }, [o]), I = O(() => {
290
290
  N() && (S.current = setTimeout(() => {
291
291
  A(!0);
292
292
  }, a));
293
- }, [N, a]), C = D(() => {
293
+ }, [N, a]), C = O(() => {
294
294
  clearTimeout(S.current), setTimeout(() => {
295
295
  A(!1), c();
296
296
  }, u);
297
297
  }, [u, c]), {
298
- variant: E,
298
+ variant: k,
299
299
  bold: M,
300
- size: T,
300
+ size: _,
301
301
  ...g
302
- } = p, tt = {
303
- variant: E,
302
+ } = s, tt = {
303
+ variant: k,
304
304
  ...M !== void 0 && {
305
305
  bold: M
306
306
  },
307
- ...T !== void 0 && {
308
- size: T
307
+ ..._ !== void 0 && {
308
+ size: _
309
309
  },
310
310
  ...g,
311
311
  refTypography: x,
312
- onMouseEnter: (s) => {
312
+ onMouseEnter: (p) => {
313
313
  var h;
314
- (h = g.onMouseEnter) == null || h.call(g, s);
314
+ (h = g.onMouseEnter) == null || h.call(g, p);
315
315
  },
316
- onMouseLeave: (s) => {
316
+ onMouseLeave: (p) => {
317
317
  var h;
318
- (h = g.onMouseLeave) == null || h.call(g, s);
318
+ (h = g.onMouseLeave) == null || h.call(g, p);
319
319
  },
320
320
  style: {
321
321
  ...$t({
@@ -324,65 +324,65 @@ const Qt = n(O).withConfig({
324
324
  ...g.style || {}
325
325
  },
326
326
  children: l
327
- }, Y = /* @__PURE__ */ i(G, { ...tt, children: l });
328
- return V(() => H(), [H]), V(() => () => {
327
+ }, V = /* @__PURE__ */ i(G, { ...tt, children: l });
328
+ return P(() => H(), [H]), P(() => () => {
329
329
  clearTimeout(S.current), c();
330
- }, [c]), /* @__PURE__ */ i(Zt, { className: d, onMouseEnter: I, onMouseLeave: C, children: W ? /* @__PURE__ */ i(Qt, { opened: W, text: e ?? "", target: Y, frame: f(), ...r }) : Y });
331
- }, te = () => L(Nt), Z = () => L(Ht), ee = n.header.withConfig({
330
+ }, [c]), /* @__PURE__ */ i(te, { className: d, onMouseEnter: I, onMouseLeave: C, children: W ? /* @__PURE__ */ i(Zt, { opened: W, text: e ?? "", target: V, frame: f(), ...r }) : V });
331
+ }, ie = () => B(It), Z = () => B(Nt), ne = n.header.withConfig({
332
332
  displayName: "AnalyticalWidgetHeaderstyled__StyledHeader"
333
- })(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.", "){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"], y.popoverInfo), ie = n.div.withConfig({
333
+ })(["display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding-right:40px;& .popover-wrapper:has(.", "){display:flex;flex-shrink:0;height:100%;align-items:center;transition:none;}"], y.popoverInfo), ae = n.div.withConfig({
334
334
  displayName: "AnalyticalWidgetHeaderstyled__StyledLeftSlot"
335
- })(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]), ne = n.div.withConfig({
335
+ })(["display:flex;flex-direction:column;flex:1 1 auto;min-width:0;gap:2px;min-height:32px;"]), le = n.div.withConfig({
336
336
  displayName: "AnalyticalWidgetHeaderstyled__StyledTitleContainer"
337
337
  })(["margin:0;display:flex;flex-shrink:1;min-width:0;"]);
338
338
  n.p.withConfig({
339
339
  displayName: "AnalyticalWidgetHeaderstyled__StyledTitle"
340
- })(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => te(), () => J);
341
- const ae = n(F).withConfig({
340
+ })(["margin:0;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", ";color:", ";"], () => ie(), () => J);
341
+ const oe = n(F).withConfig({
342
342
  displayName: "AnalyticalWidgetHeaderstyled__StyledTitleWithTooltip"
343
- })(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), le = n(F).withConfig({
343
+ })(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;"]), de = n(F).withConfig({
344
344
  displayName: "AnalyticalWidgetHeaderstyled__StyledSubTitleWithTooltip"
345
- })(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]), oe = n.p.withConfig({
345
+ })(["display:flex;flex-shrink:1;align-items:center;min-width:0;margin-right:4px;padding-bottom:4px;"]), re = n.p.withConfig({
346
346
  displayName: "AnalyticalWidgetHeaderstyled__StyledAfterTitle"
347
- })(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", " color:", ";text-transform:uppercase;"], () => Z(), () => At), de = n.div.withConfig({
347
+ })(["flex-shrink:0;margin:0;margin-right:5px;white-space:'nowrap';overflow:'hidden';text-overflow:'ellipsis';", " color:", ";text-transform:uppercase;"], () => Z(), () => Ht), se = n.div.withConfig({
348
348
  displayName: "AnalyticalWidgetHeaderstyled__StyledActionsContainer"
349
- })(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]), re = n.div.attrs({
349
+ })(["display:flex;align-items:center;min-width:0;flex:1;position:relative;"]), pe = n.div.attrs({
350
350
  className: y.headerActions
351
351
  }).withConfig({
352
352
  displayName: "AnalyticalWidgetHeaderstyled__StyledActionsWrapper"
353
- })(["position:absolute;display:flex;left:0;top:0;transform:translateX( ", "px );padding-left:", "px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,", " 0%,", " 15%,", " 40%,", " 100% );"], (e) => e.$translateX ? e.$translateX : 0, (e) => e.$translateX ? 20 : 0, j, j, z, z);
353
+ })(["position:absolute;display:flex;left:0;top:0;transform:translateX( ", "px );padding-left:", "px;opacity:0;transition:opacity 0.3s ease;background:linear-gradient( to right,", " 0%,", " 15%,", " 40%,", " 100% );"], (e) => e.$translateX ? e.$translateX : 0, (e) => e.$translateX ? 20 : 0, Y, Y, X, X);
354
354
  n.p.withConfig({
355
355
  displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitle"
356
356
  })(["", " flex-shrink:1;margin:0;min-width:0;color:", ";"], () => Z(), () => b);
357
357
  n(G).withConfig({
358
358
  displayName: "AnalyticalWidgetHeaderstyled__StyledSubtitleTypography"
359
359
  })(["color:", ";"], () => b);
360
- const se = n(U).withConfig({
360
+ const ce = n(U).withConfig({
361
361
  displayName: "AnalyticalWidgetHeaderstyled__StyledTitleLink"
362
362
  })(["display:flex;min-width:0;flex-shrink:1;"]);
363
363
  n(F).withConfig({
364
364
  displayName: "AnalyticalWidgetHeaderstyled__StyleSubtitledWithTooltip"
365
365
  })(["flex-shrink:1;margin:0;min-width:0;"]);
366
- const pe = n.div.withConfig({
366
+ const he = n.div.withConfig({
367
367
  displayName: "AnalyticalWidgetHeaderstyled__StyledRightSlot"
368
- })(["align-self:start;"]), ce = n(Ct).withConfig({
368
+ })(["align-self:start;"]), ye = n(_t).withConfig({
369
369
  displayName: "AnalyticalWidgetHeaderstyled__StyledLinkIconButton"
370
- })(["&&{width:24px;height:24px;color:", ";}"], () => b), q = ({
370
+ })(["&&{width:24px;height:24px;color:", ";}"], () => b), j = ({
371
371
  title: e,
372
372
  titleTooltipProps: t
373
- }) => /* @__PURE__ */ i(ae, { tooltipText: e, tooltipProps: {
373
+ }) => /* @__PURE__ */ i(oe, { tooltipText: e, tooltipProps: {
374
374
  placement: "top",
375
375
  ...t
376
376
  }, variant: "BodyM", bold: !0, style: {
377
377
  color: J,
378
378
  wordBreak: "normal"
379
- }, lines: 1, children: e }), he = ({
379
+ }, lines: 1, children: e }), ge = ({
380
380
  title: e,
381
381
  titleTooltipProps: t,
382
382
  badge: o,
383
383
  badgeStyles: d,
384
384
  subtitle: l,
385
- subtitleTooltipProps: p,
385
+ subtitleTooltipProps: s,
386
386
  infoTooltipText: a,
387
387
  infoTooltipProps: u,
388
388
  href: r,
@@ -391,41 +391,41 @@ const pe = n.div.withConfig({
391
391
  className: A,
392
392
  titleLinkProps: S
393
393
  }) => {
394
- const c = R(null), f = R(null), [H, N] = K(0);
395
- return Lt(() => {
394
+ const c = $(null), f = $(null), [H, N] = K(0);
395
+ return Et(() => {
396
396
  const I = () => {
397
397
  if (c.current && f.current) {
398
- const E = c.current.offsetWidth, T = f.current.offsetWidth - E;
399
- N(T > 0 ? -T - 4 : 0);
398
+ const k = c.current.offsetWidth, _ = f.current.offsetWidth - k;
399
+ N(_ > 0 ? -_ - 4 : 0);
400
400
  }
401
- }, C = Rt(I);
401
+ }, C = Lt(I);
402
402
  return c.current && C.observe(c.current), f.current && C.observe(f.current), I(), () => C.disconnect();
403
- }, []), /* @__PURE__ */ w(ee, { className: v(y.header, A), children: [
404
- /* @__PURE__ */ w(ie, { children: [
405
- /* @__PURE__ */ w(ne, { children: [
406
- e && S ? /* @__PURE__ */ i(se, { underline: "none", ...S, children: /* @__PURE__ */ i(q, { title: e, titleTooltipProps: t }) }) : /* @__PURE__ */ i(q, { title: e, titleTooltipProps: t }),
407
- o && /* @__PURE__ */ i(oe, { style: d, children: o }),
408
- /* @__PURE__ */ i(de, { ref: c, children: /* @__PURE__ */ w(re, { ref: f, $translateX: H, children: [
409
- a && /* @__PURE__ */ i(O, { trigger: "hover", placement: "top", text: a, target: /* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i(Et, { size: "xs", style: {
403
+ }, []), /* @__PURE__ */ w(ne, { className: v(y.header, A), children: [
404
+ /* @__PURE__ */ w(ae, { children: [
405
+ /* @__PURE__ */ w(le, { children: [
406
+ e && S ? /* @__PURE__ */ i(ce, { underline: "none", ...S, children: /* @__PURE__ */ i(j, { title: e, titleTooltipProps: t }) }) : /* @__PURE__ */ i(j, { title: e, titleTooltipProps: t }),
407
+ o && /* @__PURE__ */ i(re, { style: d, children: o }),
408
+ /* @__PURE__ */ i(se, { ref: c, children: /* @__PURE__ */ w(pe, { ref: f, $translateX: H, children: [
409
+ a && /* @__PURE__ */ i(z, { trigger: "hover", placement: "top", text: a, target: /* @__PURE__ */ i(Tt, { children: /* @__PURE__ */ i(Mt, { size: "xs", style: {
410
410
  cursor: "pointer",
411
411
  color: b
412
412
  } }) }), className: v(y.popoverInfo), ...u }),
413
413
  r && /* @__PURE__ */ i(U, { href: r, style: {
414
414
  flexShrink: 0
415
- }, size: "xs", ...x, children: /* @__PURE__ */ i(ce, { view: "clear", size: "xs", children: /* @__PURE__ */ i(Mt, { size: "xs" }) }) })
415
+ }, size: "xs", ...x, children: /* @__PURE__ */ i(ye, { view: "clear", size: "xs", children: /* @__PURE__ */ i(Dt, { size: "xs" }) }) })
416
416
  ] }) })
417
417
  ] }),
418
- l && /* @__PURE__ */ i(le, { variant: "BodyXS", tooltipText: l, style: {
418
+ l && /* @__PURE__ */ i(de, { variant: "BodyXS", tooltipText: l, style: {
419
419
  color: b,
420
420
  wordBreak: "normal"
421
421
  }, tooltipProps: {
422
422
  placement: "top",
423
- ...p
423
+ ...s
424
424
  }, lines: 1, children: l })
425
425
  ] }),
426
- W && /* @__PURE__ */ i(pe, { children: W })
426
+ W && /* @__PURE__ */ i(he, { children: W })
427
427
  ] });
428
- }, ye = (e) => {
428
+ }, me = (e) => {
429
429
  const t = Yt[e];
430
430
  return {
431
431
  xl: `
@@ -474,55 +474,55 @@ const pe = n.div.withConfig({
474
474
  border-radius: var(--analytical-widget-br);
475
475
  `
476
476
  };
477
- }, ge = n.article.withConfig({
477
+ }, ue = n.article.withConfig({
478
478
  displayName: "AnalyticalWidgetstyled__StyledWidget"
479
- })(["--analytical-widget-bg:", ";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.", "{opacity:1;}}", " ", ""], z, y.headerActions, ({
479
+ })(["--analytical-widget-bg:", ";display:flex;flex-direction:column;box-sizing:border-box;background:var(--analytical-widget-bg);&:hover{.", "{opacity:1;}}", " ", ""], X, y.headerActions, ({
480
480
  $size: e
481
481
  }) => {
482
- const t = ye(e);
483
- return L(["", " ", " ", " "], X.exact(0, 1439)(t.md), X.exact(1440, 1919)(t.lg), X.exact(1920, 1e5)(t.xl));
482
+ const t = me(e);
483
+ return B(["", " ", " ", " "], D.exact(0, 1439)(t.md), D.exact(1440, 1919)(t.lg), D.exact(1920, 1e5)(t.xl));
484
484
  }, ({
485
485
  $css: e
486
- }) => e), me = n(P).withConfig({
486
+ }) => e), xe = n(q).withConfig({
487
487
  displayName: "AnalyticalWidgetstyled__StyledTopSlot"
488
- })(["overflow:hidden;"]), ue = n.div.withConfig({
488
+ })(["overflow:hidden;"]), fe = n.div.withConfig({
489
489
  displayName: "AnalyticalWidgetstyled__StyledMiddleSlot"
490
- })(["overflow:hidden;padding-top:4px;"]), xe = n.div.withConfig({
490
+ })(["overflow:hidden;padding-top:4px;"]), we = n.div.withConfig({
491
491
  displayName: "AnalyticalWidgetstyled__StyledContent"
492
492
  })(["position:relative;flex:1;min-height:30px;margin-top:4px;overflow-y:", ";"], ({
493
493
  scrollable: e
494
- }) => e ? "auto" : "visible"), k = ({
494
+ }) => e ? "auto" : "visible"), E = ({
495
495
  size: e = "l",
496
496
  scrollable: t = !0,
497
497
  headerSlot: o,
498
498
  topSlot: d,
499
499
  middleSlot: l,
500
- contentSlot: p,
500
+ contentSlot: s,
501
501
  classes: a,
502
502
  $css: u
503
503
  }) => {
504
- const r = jt[e];
505
- return /* @__PURE__ */ w(ge, { $size: e, $css: u, className: v(y.root, a == null ? void 0 : a.root), children: [
504
+ const r = Pt[e];
505
+ return /* @__PURE__ */ w(ue, { $size: e, $css: u, className: v(y.root, a == null ? void 0 : a.root), children: [
506
506
  /* @__PURE__ */ i("div", { style: {
507
507
  minHeight: "32px"
508
508
  }, children: o }),
509
509
  r.topSlot && d || r.middleSlot && l ? /* @__PURE__ */ w("div", { children: [
510
- r.topSlot && d && /* @__PURE__ */ i(me, { className: v(y.topSlot, a == null ? void 0 : a.topSlot), children: d }),
511
- r.middleSlot && l && /* @__PURE__ */ i(ue, { className: v(y.middleSlot, a == null ? void 0 : a.middleSlot), children: l })
510
+ r.topSlot && d && /* @__PURE__ */ i(xe, { className: v(y.topSlot, a == null ? void 0 : a.topSlot), children: d }),
511
+ r.middleSlot && l && /* @__PURE__ */ i(fe, { className: v(y.middleSlot, a == null ? void 0 : a.middleSlot), children: l })
512
512
  ] }) : null,
513
- /* @__PURE__ */ i(xe, { scrollable: t, className: v(y.contentSlot, a == null ? void 0 : a.contentSlot), children: p })
513
+ /* @__PURE__ */ i(we, { scrollable: t, className: v(y.contentSlot, a == null ? void 0 : a.contentSlot), children: s })
514
514
  ] });
515
515
  };
516
- k.Header = he;
517
- k.FilterIconButton = nt;
518
- k.DotsIconButton = at;
519
- k.Chips = zt;
516
+ E.Header = ge;
517
+ E.FilterIconButton = at;
518
+ E.DotsIconButton = lt;
519
+ E.Chips = zt;
520
520
  export {
521
- k as A,
521
+ E as A,
522
522
  G as T,
523
523
  F as a,
524
524
  y as b,
525
- Ae as c,
525
+ Ne as c,
526
526
  zt as d,
527
- he as e
527
+ ge as e
528
528
  };
@@ -1 +1 @@
1
- "use strict";const o=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),W=require("react"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),y=require("@salutejs/plasma-icons"),l=require("styled-components"),h=require("./AnalyticalWidget-fBDe37Ur.cjs"),R=require("./EmptyState-BD6Ic-OX.cjs"),P={DEFAULT:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(y.IconFocusOutline,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(y.IconCloseCircleFill,{size:"xs",color:r.textNegative})},_={DEFAULT:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(y.IconInProgressFill,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(y.IconCloseCircleFill,{size:"xs",color:r.textNegative})},q={DEFAULT:"inactive",WAIT:"active",SUCCESSFUL:"completed",FAILURE:"completed"},Y={DEFAULT:"default",WAIT:"warning",SUCCESSFUL:"positive",FAILURE:"negative"},O={LIFE_CYCLE:"Жизненный цикл",HISTORY:"История изменений"},I=l.div.withConfig({displayName:"styled__ApprovalCenterContainer"})(["min-width:360px;min-height:600px;width:100%;height:100%;border-radius:16px;display:flex;flex-direction:column;flex:1;padding:12px 4px 12px 16px;background:",";",""],()=>r.surfaceSolidCard,({$css:s})=>s),V=l.div.withConfig({displayName:"styled__ApprovalCenterContentWrapper"})(["margin-top:20px;min-height:0;flex-direction:column;display:flex;flex:1;"]),X=l.div.withConfig({displayName:"styled__PreviewContainer"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;"]),M=l.div.withConfig({displayName:"styled__LifeCycleContainer"})(["overflow-y:auto;min-height:0;flex:1;display:flex;flex-direction:column;padding-right:12px;"]),K=l.div.withConfig({displayName:"styled__LifeCycleAccordionTitle"})(["display:flex;align-items:center;gap:4px;"]),D=l.div.withConfig({displayName:"styled__LifeCycleStageContent"})(["> *:not(:first-child){margin-top:8px;}> .comment:not(:first-child){margin-top:2px;}"]),$=l.div.withConfig({displayName:"styled__LifeCycleAssignees"})(["display:flex;flex-direction:column;gap:8px;"]),B=l.div.withConfig({displayName:"styled__LifeCycleButtonsWrapper"})(["display:flex;gap:4px;"]),G=l.div.withConfig({displayName:"styled__LifeCycleStageButtonsWrapper"})(["display:flex;gap:16px;"]),E=l(o.Button).withConfig({displayName:"styled__LifeCycleStyledButton"})(["margin-top:8px;"]),J=l.div.withConfig({displayName:"styled__HistoryContainer"})(["display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;overflow-y:auto;padding-right:12px;"]),Q=l.div.withConfig({displayName:"styled__HistoryDay"})(["display:flex;flex-direction:column;gap:12px;"]),Z=l.div.withConfig({displayName:"styled__HistoryDate"})(["top:0px;position:sticky;display:flex;justify-content:center;width:100%;"]),ee=l.div.withConfig({displayName:"styled__HistoryActions"})(["display:flex;flex-direction:column;gap:12px;"]);l(o.Badge).withConfig({displayName:"styled__HistoryStyledBadge"})(["flex-shrink:0;white-space:nowrap;"]);const T=s=>{const{historyByDay:p}=s;return e.jsx(J,{children:p.map(c=>e.jsxs(Q,{children:[e.jsx(Z,{children:e.jsx(o.Badge,{size:"m",text:c.date,view:"light",customColor:r.textSecondary,customBackgroundColor:r.surfaceSolidCard})}),e.jsx(ee,{children:c.actions.map(i=>e.jsx(o.Cell,{size:"s",title:i.title,subtitle:i.time,contentLeft:P[i.status]}))})]},c.date))})};function d(s){return s!=null}function g(s){return Array.isArray(s)&&s.length>0}function te(s){const p=new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long"}),c=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit",hour12:!1}),i=new Date,t=new Map;for(const a of s){const n=new Date(a.actionDate),m=n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?"Сегодня":p.format(n),v=c.format(n),u={status:a.status,title:a.actionTitle,time:v};let x=t.get(m);x===void 0&&(x=[],t.set(m,x)),x.push(u)}return Array.from(t,([a,n])=>({date:a,actions:n}))}const w=s=>{const{lifeCycle:p}=s,c=p.map(i=>({title:i.title,status:q[i.status],completedItemView:Y[i.status],content:d(i.stages)?e.jsxs(e.Fragment,{children:[e.jsx(o.Accordion,{size:"s",view:"clear",defaultActiveEventKey:i.stages.reduce((t,a,n)=>(a.open&&t.push(n),t),[]),children:i.stages.map((t,a)=>e.jsx(o.AccordionItem,{contentLeft:d(t.tooltip)?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:_[t.status],trigger:"hover",placement:"top-start",text:t.tooltip.text})}):_[t.status],title:e.jsxs(K,{children:[e.jsx(h.Typography,{variant:"TextS",children:t.title}),d(t.mark)&&(t.mark.tooltip?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:t.mark.icon,trigger:"hover",placement:"top-start",text:t.mark.tooltip.text})}):t.mark.icon)]}),eventKey:a,children:e.jsxs(D,{children:[g(t.assignee)&&e.jsx($,{children:t.assignee.map(n=>e.jsx(h.Typography,{variant:"TextXS",bold:!0,color:r.textPrimary,children:n},n))}),d(t.comment)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textPrimary,children:t.comment}),g(t.buttons)&&e.jsx(G,{children:t.buttons.map(n=>e.jsx(o.LinkButton,{contentLeft:n.contentLeft,text:n.text,size:"xxs",onClick:n.onClick},n.text))}),d(t.actionTitle)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textSecondary,children:t.actionTitle})]})},t.title))}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]}):e.jsxs(D,{children:[e.jsx(h.Typography,{variant:"BodyXS",color:r.textSecondary,children:i.actionTitle}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]})}));return e.jsx(M,{children:e.jsx(o.Steps,{style:{paddingTop:"1px",height:"auto"},items:c,orientation:"vertical",size:"m"})})},L=s=>{const{preview:p}=s,{button:c,loading:i}=p??{},t=d(c);return e.jsx(X,{children:i?e.jsx(o.Spinner,{size:"l",view:"default"}):e.jsx(R.EmptyState,{size:"m",variant:"no-content",buttons:t?[{props:{text:c.text,children:c.text,view:"accent",onClick:c.onClick},type:"link"}]:void 0})})},ie=s=>{const{className:p,$css:c,preview:i,tabs:t,lifeCycle:a,history:n}=s,[f,m]=W.useState(t.active),v=t.available.length>1,u=t.available[0],x=u==="LIFE_CYCLE",N=u==="HISTORY",b=f==="LIFE_CYCLE",z=f==="HISTORY",S=d(a),H=d(n),A=d(i),j=H?te(n):null,F=d(j);if(v){const k=e.jsxs(V,{children:[S&&b&&e.jsx(w,{lifeCycle:a}),F&&z&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{className:p,$css:c,children:A?e.jsx(L,{preview:i}):e.jsxs(e.Fragment,{children:[e.jsx(o.Tabs,{view:"divider",size:"s",orientation:"horizontal",children:t.available.map(C=>e.jsx(o.TabItem,{view:"divider",size:"s",selected:C===f,onClick:()=>m(C),children:O[C]},C))}),k]})})}const U=e.jsxs(e.Fragment,{children:[S&&x&&e.jsx(w,{lifeCycle:a}),F&&N&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{children:A?e.jsx(L,{preview:i}):U})};exports.ApprovalCenter=ie;exports.History=T;exports.LifeCycle=w;exports.Preview=L;
1
+ "use strict";const o=require("@salutejs/sdds-finai"),e=require("react/jsx-runtime"),W=require("react"),r=require("@salutejs/sdds-themes/tokens/sdds_finai"),y=require("@salutejs/plasma-icons"),l=require("styled-components"),h=require("./AnalyticalWidget-B6czTLSw.cjs"),R=require("./EmptyState-Du-RIjie.cjs"),P={DEFAULT:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(y.IconFocusOutline,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(y.IconCloseCircleFill,{size:"xs",color:r.textNegative})},_={DEFAULT:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfaceTransparentSecondary}),WAIT:e.jsx(y.IconInProgressFill,{size:"xs",color:r.textWarning}),SUCCESSFUL:e.jsx(y.IconDoneCircleFill,{size:"xs",color:r.surfacePositive}),FAILURE:e.jsx(y.IconCloseCircleFill,{size:"xs",color:r.textNegative})},q={DEFAULT:"inactive",WAIT:"active",SUCCESSFUL:"completed",FAILURE:"completed"},Y={DEFAULT:"default",WAIT:"warning",SUCCESSFUL:"positive",FAILURE:"negative"},O={LIFE_CYCLE:"Жизненный цикл",HISTORY:"История изменений"},I=l.div.withConfig({displayName:"styled__ApprovalCenterContainer"})(["min-width:360px;min-height:600px;width:100%;height:100%;border-radius:16px;display:flex;flex-direction:column;flex:1;padding:12px 4px 12px 16px;background:",";",""],()=>r.surfaceSolidCard,({$css:s})=>s),V=l.div.withConfig({displayName:"styled__ApprovalCenterContentWrapper"})(["margin-top:20px;min-height:0;flex-direction:column;display:flex;flex:1;"]),X=l.div.withConfig({displayName:"styled__PreviewContainer"})(["display:flex;align-items:center;justify-content:center;width:100%;height:100%;flex:1;"]),M=l.div.withConfig({displayName:"styled__LifeCycleContainer"})(["overflow-y:auto;min-height:0;flex:1;display:flex;flex-direction:column;padding-right:12px;"]),K=l.div.withConfig({displayName:"styled__LifeCycleAccordionTitle"})(["display:flex;align-items:center;gap:4px;"]),D=l.div.withConfig({displayName:"styled__LifeCycleStageContent"})(["> *:not(:first-child){margin-top:8px;}> .comment:not(:first-child){margin-top:2px;}"]),$=l.div.withConfig({displayName:"styled__LifeCycleAssignees"})(["display:flex;flex-direction:column;gap:8px;"]),B=l.div.withConfig({displayName:"styled__LifeCycleButtonsWrapper"})(["display:flex;gap:4px;"]),G=l.div.withConfig({displayName:"styled__LifeCycleStageButtonsWrapper"})(["display:flex;gap:16px;"]),E=l(o.Button).withConfig({displayName:"styled__LifeCycleStyledButton"})(["margin-top:8px;"]),J=l.div.withConfig({displayName:"styled__HistoryContainer"})(["display:flex;flex-direction:column;flex:1;min-height:0;gap:12px;overflow-y:auto;padding-right:12px;"]),Q=l.div.withConfig({displayName:"styled__HistoryDay"})(["display:flex;flex-direction:column;gap:12px;"]),Z=l.div.withConfig({displayName:"styled__HistoryDate"})(["top:0px;position:sticky;display:flex;justify-content:center;width:100%;"]),ee=l.div.withConfig({displayName:"styled__HistoryActions"})(["display:flex;flex-direction:column;gap:12px;"]);l(o.Badge).withConfig({displayName:"styled__HistoryStyledBadge"})(["flex-shrink:0;white-space:nowrap;"]);const T=s=>{const{historyByDay:p}=s;return e.jsx(J,{children:p.map(c=>e.jsxs(Q,{children:[e.jsx(Z,{children:e.jsx(o.Badge,{size:"m",text:c.date,view:"light",customColor:r.textSecondary,customBackgroundColor:r.surfaceSolidCard})}),e.jsx(ee,{children:c.actions.map(i=>e.jsx(o.Cell,{size:"s",title:i.title,subtitle:i.time,contentLeft:P[i.status]}))})]},c.date))})};function d(s){return s!=null}function g(s){return Array.isArray(s)&&s.length>0}function te(s){const p=new Intl.DateTimeFormat("ru-RU",{day:"numeric",month:"long"}),c=new Intl.DateTimeFormat("ru-RU",{hour:"2-digit",minute:"2-digit",hour12:!1}),i=new Date,t=new Map;for(const a of s){const n=new Date(a.actionDate),m=n.getFullYear()===i.getFullYear()&&n.getMonth()===i.getMonth()&&n.getDate()===i.getDate()?"Сегодня":p.format(n),v=c.format(n),u={status:a.status,title:a.actionTitle,time:v};let x=t.get(m);x===void 0&&(x=[],t.set(m,x)),x.push(u)}return Array.from(t,([a,n])=>({date:a,actions:n}))}const w=s=>{const{lifeCycle:p}=s,c=p.map(i=>({title:i.title,status:q[i.status],completedItemView:Y[i.status],content:d(i.stages)?e.jsxs(e.Fragment,{children:[e.jsx(o.Accordion,{size:"s",view:"clear",defaultActiveEventKey:i.stages.reduce((t,a,n)=>(a.open&&t.push(n),t),[]),children:i.stages.map((t,a)=>e.jsx(o.AccordionItem,{contentLeft:d(t.tooltip)?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:_[t.status],trigger:"hover",placement:"top-start",text:t.tooltip.text})}):_[t.status],title:e.jsxs(K,{children:[e.jsx(h.Typography,{variant:"TextS",children:t.title}),d(t.mark)&&(t.mark.tooltip?e.jsx(o.ViewContainer,{view:"onDark",children:e.jsx(o.Tooltip,{maxWidth:250,offset:[2,11],target:t.mark.icon,trigger:"hover",placement:"top-start",text:t.mark.tooltip.text})}):t.mark.icon)]}),eventKey:a,children:e.jsxs(D,{children:[g(t.assignee)&&e.jsx($,{children:t.assignee.map(n=>e.jsx(h.Typography,{variant:"TextXS",bold:!0,color:r.textPrimary,children:n},n))}),d(t.comment)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textPrimary,children:t.comment}),g(t.buttons)&&e.jsx(G,{children:t.buttons.map(n=>e.jsx(o.LinkButton,{contentLeft:n.contentLeft,text:n.text,size:"xxs",onClick:n.onClick},n.text))}),d(t.actionTitle)&&e.jsx(h.Typography,{variant:"TextXS",color:r.textSecondary,children:t.actionTitle})]})},t.title))}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]}):e.jsxs(D,{children:[e.jsx(h.Typography,{variant:"BodyXS",color:r.textSecondary,children:i.actionTitle}),g(i.buttons)&&e.jsx(B,{children:i.buttons.map(t=>e.jsx(E,{text:t.text,contentLeft:t.contentLeft,view:"secondary",size:"xs"}))})]})}));return e.jsx(M,{children:e.jsx(o.Steps,{style:{paddingTop:"1px",height:"auto"},items:c,orientation:"vertical",size:"m"})})},L=s=>{const{preview:p}=s,{button:c,loading:i}=p??{},t=d(c);return e.jsx(X,{children:i?e.jsx(o.Spinner,{size:"l",view:"default"}):e.jsx(R.EmptyState,{size:"m",variant:"no-content",buttons:t?[{props:{text:c.text,children:c.text,view:"accent",onClick:c.onClick},type:"link"}]:void 0})})},ie=s=>{const{className:p,$css:c,preview:i,tabs:t,lifeCycle:a,history:n}=s,[f,m]=W.useState(t.active),v=t.available.length>1,u=t.available[0],x=u==="LIFE_CYCLE",N=u==="HISTORY",b=f==="LIFE_CYCLE",z=f==="HISTORY",S=d(a),H=d(n),A=d(i),j=H?te(n):null,F=d(j);if(v){const k=e.jsxs(V,{children:[S&&b&&e.jsx(w,{lifeCycle:a}),F&&z&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{className:p,$css:c,children:A?e.jsx(L,{preview:i}):e.jsxs(e.Fragment,{children:[e.jsx(o.Tabs,{view:"divider",size:"s",orientation:"horizontal",children:t.available.map(C=>e.jsx(o.TabItem,{view:"divider",size:"s",selected:C===f,onClick:()=>m(C),children:O[C]},C))}),k]})})}const U=e.jsxs(e.Fragment,{children:[S&&x&&e.jsx(w,{lifeCycle:a}),F&&N&&e.jsx(T,{historyByDay:j})]});return e.jsx(I,{children:A?e.jsx(L,{preview:i}):U})};exports.ApprovalCenter=ie;exports.History=T;exports.LifeCycle=w;exports.Preview=L;