@daisforge/ui 1.14.1 → 1.16.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 (427) hide show
  1. package/chunks/AnalyticalWidget-BWcBjoNh.mjs +535 -0
  2. package/chunks/AnalyticalWidget-z2HzQ4aA.cjs +43 -0
  3. package/chunks/{ApprovalCenter-XCXGHaEP.mjs → ApprovalCenter-BqN8Zjol.mjs} +2 -2
  4. package/chunks/{ApprovalCenter-DG3YvEkY.cjs → ApprovalCenter-CGs7n-2C.cjs} +1 -1
  5. package/chunks/{BlockTitle-DDWF1ZeV.mjs → BlockTitle-BM2EE1b1.mjs} +2 -2
  6. package/chunks/{BlockTitle-3YmyxJHJ.cjs → BlockTitle-o2QTRA7D.cjs} +1 -1
  7. package/chunks/{Container-CJX4h6tb.cjs → Container-CrB1jwqH.cjs} +1 -1
  8. package/chunks/{Container-BlAaXm8V.mjs → Container-Cy8w2JOq.mjs} +1 -1
  9. package/chunks/{EmptyState-BB3duGQw.mjs → EmptyState-B205JfZA.mjs} +1 -1
  10. package/chunks/{EmptyState-Du-RIjie.cjs → EmptyState-CcxlsZm0.cjs} +1 -1
  11. package/chunks/{FiltersActions-C38x0y5T.mjs → FiltersActions-C5OGUDDx.mjs} +4 -4
  12. package/chunks/{FiltersActions-CvAwGV9F.cjs → FiltersActions-CKimtYsU.cjs} +1 -1
  13. package/chunks/{FormSegmentGroup-DcOPPn3M.cjs → FormSegmentGroup-CCCqRgCG.cjs} +1 -1
  14. package/chunks/{FormSegmentGroup-9b3w4_KU.mjs → FormSegmentGroup-E1JurEt7.mjs} +1 -1
  15. package/chunks/{GridDND-BnK1dEhJ.mjs → GridDND-D9T2wqLt.mjs} +126 -132
  16. package/chunks/GridDND-DkL6-TgS.cjs +1 -0
  17. package/chunks/{LeftPanel-Ciehaz28.cjs → LeftPanel-B3-ySDMW.cjs} +1 -1
  18. package/chunks/{LeftPanel-DuIinlBm.mjs → LeftPanel-HZu3ECqD.mjs} +1 -1
  19. package/chunks/{ListOfFilters-DNzfSG-p.cjs → ListOfFilters-B8XF6KiI.cjs} +1 -1
  20. package/chunks/{ListOfFilters-Cji5UH2J.mjs → ListOfFilters-BEDW_v5t.mjs} +3 -3
  21. package/chunks/{MassActions-DCk9APKP.cjs → MassActions-BHNmuh3s.cjs} +1 -1
  22. package/chunks/{MassActions-BOG04zip.mjs → MassActions-C66ulAuq.mjs} +3 -3
  23. package/chunks/{PageTitle-BIllremL.cjs → PageTitle-BEdQpyZh.cjs} +1 -1
  24. package/chunks/{PageTitle-CQ_6jZ0x.mjs → PageTitle-BVbWaV52.mjs} +2 -2
  25. package/chunks/{SplitView-Dm62AAZj.mjs → SplitView-DYHeCnl9.mjs} +1 -1
  26. package/chunks/{SplitView-DdLshcIk.cjs → SplitView-UKIBuvTi.cjs} +1 -1
  27. package/chunks/Stories-DVh7iByM.cjs +1 -0
  28. package/chunks/{Stories-dFpUqS5T.mjs → Stories-lNAuXVJN.mjs} +260 -245
  29. package/chunks/{Table-CrJFfavU.cjs → Table-C-lLZklk.cjs} +5 -5
  30. package/chunks/{Table-f0CmcIhI.mjs → Table-C_1QGsh8.mjs} +16 -11
  31. package/chunks/{TableCanvas-1bi1WWeP.mjs → TableCanvas--g37wjRi.mjs} +3537 -3474
  32. package/chunks/TableCanvas-uzBMXlx6.cjs +30 -0
  33. package/chunks/{TableGlide-DGKw3w0G.mjs → TableGlide-Cjcw7Wur.mjs} +912 -819
  34. package/chunks/TableGlide-DTBZ1jNA.cjs +1 -0
  35. package/chunks/styles-BBVEBDDw.mjs +132 -0
  36. package/chunks/styles-C-pJNMSQ.cjs +2 -0
  37. package/chunks/{utils-DvDFSlCG.cjs → utils-CUW5bd8S.cjs} +5 -5
  38. package/chunks/{utils-D4eJY8pa.mjs → utils-YKicAHp0.mjs} +38 -38
  39. package/chunks/vendor-BzEO8Fvp.cjs +6043 -0
  40. package/chunks/vendor-DBRfVjyT.mjs +6054 -0
  41. package/components/AiAgentPopover/index.cjs +1 -1
  42. package/components/AiAgentPopover/index.mjs +1 -1
  43. package/components/AnalyticalWidget/AnalyticalWidget.constants.d.ts +2 -0
  44. package/components/AnalyticalWidget/AnalyticalWidget.d.ts +13 -54
  45. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.d.ts +14 -0
  46. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/AnalyticalWidgetIconButtonDots.styled.d.ts +3 -0
  47. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.cjs +1 -1
  48. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.d.ts +3 -2
  49. package/components/AnalyticalWidget/components/AnalyticalWidgetButtons/index.mjs +4 -3
  50. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
  51. package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +2 -2
  52. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.d.ts +1 -1
  53. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.styled.d.ts +1 -75
  54. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetHeader.types.d.ts +2 -2
  55. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/AnalyticalWidgetTitle.types.d.ts +2 -1
  56. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
  57. package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
  58. package/components/AnalyticalWidget/index.cjs +1 -1
  59. package/components/AnalyticalWidget/index.mjs +1 -1
  60. package/components/ApprovalCenter/components/index.cjs +1 -1
  61. package/components/ApprovalCenter/components/index.mjs +1 -1
  62. package/components/ApprovalCenter/index.cjs +1 -1
  63. package/components/ApprovalCenter/index.mjs +1 -1
  64. package/components/AutocompleteSearch/index.cjs +1 -1
  65. package/components/AutocompleteSearch/index.mjs +2 -2
  66. package/components/BlockGradientScroll/index.cjs +1 -1
  67. package/components/BlockGradientScroll/index.mjs +1 -1
  68. package/components/BlockTitle/index.cjs +1 -1
  69. package/components/BlockTitle/index.mjs +1 -1
  70. package/components/BlockTitle/utils/index.cjs +1 -1
  71. package/components/BlockTitle/utils/index.mjs +1 -1
  72. package/components/Collapse/index.cjs +1 -1
  73. package/components/Collapse/index.mjs +1 -1
  74. package/components/Combobox/index.cjs +1 -1
  75. package/components/Combobox/index.mjs +1 -1
  76. package/components/EmptyState/components/index.cjs +1 -1
  77. package/components/EmptyState/components/index.mjs +1 -1
  78. package/components/EmptyState/index.cjs +1 -1
  79. package/components/EmptyState/index.mjs +1 -1
  80. package/components/GridDND/GridDND.ItemWrapper.d.ts +1 -2
  81. package/components/GridDND/GridDND.d.ts +1 -1
  82. package/components/GridDND/index.cjs +1 -1
  83. package/components/GridDND/index.mjs +1 -1
  84. package/components/GridDND/utils/index.cjs +1 -1
  85. package/components/GridDND/utils/index.mjs +1 -1
  86. package/components/IconButton/index.cjs +1 -1
  87. package/components/IconButton/index.mjs +1 -1
  88. package/components/LeftPanel/components/index.cjs +1 -1
  89. package/components/LeftPanel/components/index.mjs +1 -1
  90. package/components/LeftPanel/hooks/index.cjs +1 -1
  91. package/components/LeftPanel/hooks/index.mjs +1 -1
  92. package/components/LeftPanel/index.cjs +1 -1
  93. package/components/LeftPanel/index.mjs +1 -1
  94. package/components/LeftPanel/utils/index.cjs +1 -1
  95. package/components/LeftPanel/utils/index.mjs +1 -1
  96. package/components/ListOfFilters/index.cjs +1 -1
  97. package/components/ListOfFilters/index.mjs +1 -1
  98. package/components/MassActions/hooks/index.cjs +1 -1
  99. package/components/MassActions/hooks/index.mjs +1 -1
  100. package/components/MassActions/index.cjs +1 -1
  101. package/components/MassActions/index.mjs +1 -1
  102. package/components/ModalDF/index.cjs +1 -1
  103. package/components/ModalDF/index.mjs +1 -1
  104. package/components/Notification/index.cjs +1 -1
  105. package/components/Notification/index.mjs +2 -2
  106. package/components/PageTitle/index.cjs +1 -1
  107. package/components/PageTitle/index.mjs +1 -1
  108. package/components/PageTitle/utils/index.cjs +1 -1
  109. package/components/PageTitle/utils/index.mjs +1 -1
  110. package/components/PopoverDF/index.cjs +1 -1
  111. package/components/PopoverDF/index.mjs +1 -1
  112. package/components/PopupDF/index.cjs +1 -1
  113. package/components/PopupDF/index.mjs +1 -1
  114. package/components/SplitView/index.cjs +1 -1
  115. package/components/SplitView/index.mjs +1 -1
  116. package/components/SplitView/utils/index.cjs +1 -1
  117. package/components/SplitView/utils/index.mjs +1 -1
  118. package/components/Stories/components/StoriesBanner/index.cjs +1 -1
  119. package/components/Stories/components/StoriesBanner/index.mjs +1 -1
  120. package/components/Stories/components/StoriesContent/index.cjs +1 -1
  121. package/components/Stories/components/StoriesContent/index.mjs +1 -1
  122. package/components/Stories/components/StoriesPreview/index.cjs +1 -1
  123. package/components/Stories/components/StoriesPreview/index.mjs +1 -1
  124. package/components/Stories/components/StoriesProgress/index.cjs +1 -1
  125. package/components/Stories/components/StoriesProgress/index.mjs +1 -1
  126. package/components/Stories/components/StoriesViewer/index.cjs +1 -1
  127. package/components/Stories/components/StoriesViewer/index.mjs +1 -1
  128. package/components/Stories/index.cjs +1 -1
  129. package/components/Stories/index.mjs +1 -1
  130. package/components/Table/components/AnimatedCounter.d.ts +1 -0
  131. package/components/Table/components/TableDropdown/index.cjs +1 -1
  132. package/components/Table/components/TableDropdown/index.mjs +1 -1
  133. package/components/Table/feature-collapse-table/index.cjs +1 -1
  134. package/components/Table/feature-collapse-table/index.mjs +1 -1
  135. package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
  136. package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
  137. package/components/Table/feature-column-control/index.cjs +1 -1
  138. package/components/Table/feature-column-control/index.mjs +1 -1
  139. package/components/Table/feature-columns-grouping/index.cjs +1 -1
  140. package/components/Table/feature-columns-grouping/index.mjs +1 -1
  141. package/components/Table/feature-context-menu/index.cjs +1 -1
  142. package/components/Table/feature-context-menu/index.mjs +1 -1
  143. package/components/Table/feature-edit/index.cjs +1 -1
  144. package/components/Table/feature-edit/index.mjs +1 -1
  145. package/components/Table/feature-filtering/combobox/index.cjs +1 -1
  146. package/components/Table/feature-filtering/combobox/index.mjs +1 -1
  147. package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
  148. package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
  149. package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
  150. package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
  151. package/components/Table/feature-filtering/index.cjs +1 -1
  152. package/components/Table/feature-filtering/index.mjs +1 -1
  153. package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  154. package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  155. package/components/Table/feature-infinity-scroll/index.cjs +1 -1
  156. package/components/Table/feature-infinity-scroll/index.mjs +1 -1
  157. package/components/Table/feature-key-text/index.cjs +1 -1
  158. package/components/Table/feature-key-text/index.mjs +1 -1
  159. package/components/Table/feature-pagination/index.cjs +1 -1
  160. package/components/Table/feature-pagination/index.mjs +1 -1
  161. package/components/Table/feature-right-sidebar/index.cjs +1 -1
  162. package/components/Table/feature-right-sidebar/index.mjs +1 -1
  163. package/components/Table/feature-row-detail/index.cjs +1 -1
  164. package/components/Table/feature-row-detail/index.mjs +1 -1
  165. package/components/Table/feature-row-instruments/index.cjs +1 -1
  166. package/components/Table/feature-row-instruments/index.mjs +1 -1
  167. package/components/Table/feature-row-size/index.cjs +1 -1
  168. package/components/Table/feature-row-size/index.mjs +1 -1
  169. package/components/Table/feature-rows-grouping/index.cjs +1 -1
  170. package/components/Table/feature-rows-grouping/index.mjs +1 -1
  171. package/components/Table/feature-searching/index.cjs +1 -1
  172. package/components/Table/feature-searching/index.mjs +1 -1
  173. package/components/Table/feature-select-row/index.cjs +1 -1
  174. package/components/Table/feature-select-row/index.mjs +1 -1
  175. package/components/Table/feature-sorting/index.cjs +1 -1
  176. package/components/Table/feature-sorting/index.mjs +1 -1
  177. package/components/Table/feature-table-settings/index.cjs +1 -1
  178. package/components/Table/feature-table-settings/index.mjs +1 -1
  179. package/components/Table/feature-tree/index.cjs +1 -1
  180. package/components/Table/feature-tree/index.mjs +1 -1
  181. package/components/Table/index.cjs +1 -1
  182. package/components/Table/index.mjs +1 -1
  183. package/components/Table/renders/formatCell/index.cjs +1 -1
  184. package/components/Table/renders/formatCell/index.mjs +1 -1
  185. package/components/Table/styles/index.cjs +1 -1
  186. package/components/Table/styles/index.mjs +1 -1
  187. package/components/Table/table-hooks/index.cjs +1 -1
  188. package/components/Table/table-hooks/index.mjs +1 -1
  189. package/components/Table/types/index.cjs +1 -1
  190. package/components/Table/types/index.mjs +1 -1
  191. package/components/Table/types/utils.type.d.ts +1 -1
  192. package/components/Table/utils/index.cjs +1 -1
  193. package/components/Table/utils/index.mjs +1 -1
  194. package/components/Table/widgets/control-block/index.cjs +1 -1
  195. package/components/Table/widgets/control-block/index.mjs +1 -1
  196. package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
  197. package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
  198. package/components/Table/widgets/index.cjs +1 -1
  199. package/components/Table/widgets/index.mjs +1 -1
  200. package/components/Table/widgets/mass-actions/index.cjs +1 -1
  201. package/components/Table/widgets/mass-actions/index.mjs +1 -1
  202. package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
  203. package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
  204. package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
  205. package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
  206. package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
  207. package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
  208. package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
  209. package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
  210. package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
  211. package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
  212. package/components/TableCanvas/components/AnimatedCounter.d.ts +1 -0
  213. package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
  214. package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
  215. package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
  216. package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
  217. package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
  218. package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
  219. package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
  220. package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
  221. package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
  222. package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
  223. package/components/TableCanvas/feature-column-control/index.cjs +1 -1
  224. package/components/TableCanvas/feature-column-control/index.mjs +1 -1
  225. package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
  226. package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
  227. package/components/TableCanvas/feature-content-state/index.cjs +1 -1
  228. package/components/TableCanvas/feature-content-state/index.mjs +1 -1
  229. package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
  230. package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
  231. package/components/TableCanvas/feature-edit/index.cjs +1 -1
  232. package/components/TableCanvas/feature-edit/index.mjs +1 -1
  233. package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
  234. package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
  235. package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
  236. package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
  237. package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
  238. package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
  239. package/components/TableCanvas/feature-filtering/index.cjs +1 -1
  240. package/components/TableCanvas/feature-filtering/index.mjs +1 -1
  241. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
  242. package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
  243. package/components/TableCanvas/feature-filtering/use-focus-search-input.d.ts +2 -0
  244. package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
  245. package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
  246. package/components/TableCanvas/feature-key-text/index.cjs +1 -1
  247. package/components/TableCanvas/feature-key-text/index.mjs +1 -1
  248. package/components/TableCanvas/feature-notifications/index.cjs +1 -1
  249. package/components/TableCanvas/feature-notifications/index.mjs +1 -1
  250. package/components/TableCanvas/feature-pagination/index.cjs +1 -1
  251. package/components/TableCanvas/feature-pagination/index.mjs +1 -1
  252. package/components/TableCanvas/feature-popover-table/context/TablePopoverContext.d.ts +3 -1
  253. package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
  254. package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
  255. package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
  256. package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
  257. package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
  258. package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
  259. package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
  260. package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
  261. package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
  262. package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
  263. package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
  264. package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
  265. package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
  266. package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
  267. package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
  268. package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
  269. package/components/TableCanvas/feature-row-size/index.cjs +1 -1
  270. package/components/TableCanvas/feature-row-size/index.mjs +1 -1
  271. package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
  272. package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
  273. package/components/TableCanvas/feature-rows-grouping/types.d.ts +2 -0
  274. package/components/TableCanvas/feature-searching/index.cjs +1 -1
  275. package/components/TableCanvas/feature-searching/index.mjs +1 -1
  276. package/components/TableCanvas/feature-select-row/index.cjs +1 -1
  277. package/components/TableCanvas/feature-select-row/index.mjs +1 -1
  278. package/components/TableCanvas/feature-sorting/index.cjs +1 -1
  279. package/components/TableCanvas/feature-sorting/index.mjs +1 -1
  280. package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
  281. package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
  282. package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
  283. package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
  284. package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
  285. package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
  286. package/components/TableCanvas/feature-tree/index.cjs +1 -1
  287. package/components/TableCanvas/feature-tree/index.mjs +1 -1
  288. package/components/TableCanvas/index.cjs +1 -1
  289. package/components/TableCanvas/index.mjs +2 -2
  290. package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
  291. package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
  292. package/components/TableCanvas/styles/index.cjs +1 -1
  293. package/components/TableCanvas/styles/index.mjs +1 -1
  294. package/components/TableCanvas/table-hooks/index.cjs +1 -1
  295. package/components/TableCanvas/table-hooks/index.mjs +1 -1
  296. package/components/TableCanvas/types/index.cjs +1 -1
  297. package/components/TableCanvas/types/index.mjs +1 -1
  298. package/components/TableCanvas/utils/index.cjs +1 -1
  299. package/components/TableCanvas/utils/index.mjs +2 -2
  300. package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
  301. package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
  302. package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
  303. package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
  304. package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
  305. package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
  306. package/components/TableCanvas/widgets/index.cjs +1 -1
  307. package/components/TableCanvas/widgets/index.mjs +1 -1
  308. package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
  309. package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
  310. package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
  311. package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
  312. package/components/TableContract/index.cjs +1 -1
  313. package/components/TableContract/index.mjs +2 -2
  314. package/components/TableGlide/hooks/selection/index.cjs +1 -1
  315. package/components/TableGlide/hooks/selection/index.mjs +1 -1
  316. package/components/TableGlide/index.cjs +1 -1
  317. package/components/TableGlide/index.mjs +1 -1
  318. package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
  319. package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
  320. package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
  321. package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
  322. package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
  323. package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
  324. package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
  325. package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
  326. package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
  327. package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
  328. package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
  329. package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
  330. package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
  331. package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
  332. package/components/TableGlide/lib/canvas/index.cjs +1 -1
  333. package/components/TableGlide/lib/canvas/index.mjs +1 -1
  334. package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
  335. package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
  336. package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
  337. package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
  338. package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
  339. package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
  340. package/components/TableGlide/theming/activeTheme.type.d.ts +1 -1
  341. package/components/TableGlide/theming/custom-colors.d.ts +3 -3
  342. package/components/TableGlide/theming/glide-colors.d.ts +9 -9
  343. package/components/TableGlide/theming/index.cjs +1 -1
  344. package/components/TableGlide/theming/index.mjs +1 -1
  345. package/components/TableTabs/index.cjs +1 -1
  346. package/components/TableTabs/index.mjs +1 -1
  347. package/components/Tooltip/index.cjs +1 -1
  348. package/components/Tooltip/index.mjs +1 -1
  349. package/components/TourWidget/index.cjs +1 -1
  350. package/components/TourWidget/index.mjs +2 -2
  351. package/components/Typography/index.cjs +1 -1
  352. package/components/Typography/index.mjs +1 -1
  353. package/components/Widget/index.cjs +1 -1
  354. package/components/Widget/index.mjs +2 -2
  355. package/formComponents/FormCombobox/index.cjs +1 -1
  356. package/formComponents/FormCombobox/index.mjs +1 -1
  357. package/formComponents/FormDatePickers/FormDatePickerRange/ui/FormDatePickerRangeStyled.d.ts +2 -0
  358. package/formComponents/FormRadioGroupBox/index.cjs +1 -1
  359. package/formComponents/FormRadioGroupBox/index.mjs +1 -1
  360. package/formComponents/FormSegments/index.cjs +1 -1
  361. package/formComponents/FormSegments/index.mjs +1 -1
  362. package/formComponents/FormSwitch/index.cjs +1 -1
  363. package/formComponents/FormSwitch/index.mjs +1 -1
  364. package/index.cjs +1 -1
  365. package/index.mjs +1787 -1629
  366. package/layouts/Container/index.cjs +1 -1
  367. package/layouts/Container/index.mjs +1 -1
  368. package/layouts/Container/lib/utils/index.cjs +1 -1
  369. package/layouts/Container/lib/utils/index.mjs +1 -1
  370. package/layouts/ErrorPage/index.cjs +1 -1
  371. package/layouts/ErrorPage/index.mjs +1 -1
  372. package/layouts/FiltersActions/FiltersActions.d.ts +2 -2
  373. package/layouts/FiltersActions/components/Segments.d.ts +2 -2
  374. package/layouts/FiltersActions/hooks/index.cjs +1 -1
  375. package/layouts/FiltersActions/hooks/index.mjs +1 -1
  376. package/layouts/FiltersActions/index.cjs +1 -1
  377. package/layouts/FiltersActions/index.mjs +1 -1
  378. package/layouts/Layout/index.cjs +1 -1
  379. package/layouts/Layout/index.mjs +1 -1
  380. package/layouts/PageLayout/index.cjs +1 -1
  381. package/layouts/PageLayout/index.mjs +1 -1
  382. package/mcp-data/component-index.json +190 -158
  383. package/mixins/index.cjs +2 -2
  384. package/mixins/index.mjs +36 -36
  385. package/package.json +5 -5
  386. package/shared/utils/inputs/index.cjs +1 -1
  387. package/shared/utils/inputs/index.mjs +6 -6
  388. package/styles/DefaultGlobalStyle.d.ts +2 -0
  389. package/styles/index.cjs +1 -1
  390. package/styles/index.mjs +1 -1
  391. package/themes/index.cjs +1 -1
  392. package/themes/index.d.ts +2 -0
  393. package/themes/index.mjs +8 -6
  394. package/tokens/color/index.cjs +1 -1
  395. package/tokens/color/index.d.ts +1 -1
  396. package/tokens/color/index.mjs +1225 -1127
  397. package/tokens/gradient/index.cjs +1 -1
  398. package/tokens/gradient/index.d.ts +1 -1
  399. package/tokens/gradient/index.mjs +126 -70
  400. package/tokens/index.cjs +1 -1
  401. package/tokens/index.mjs +1433 -1277
  402. package/tokens/shadow/index.cjs +1 -1
  403. package/tokens/shadow/index.d.ts +1 -1
  404. package/tokens/shadow/index.mjs +9 -7
  405. package/utils/breakpoint/index.cjs +1 -1
  406. package/utils/breakpoint/index.mjs +1 -1
  407. package/utils/clickStream/index.cjs +1 -1
  408. package/utils/clickStream/index.mjs +1 -1
  409. package/utils/eventBus/index.cjs +1 -1
  410. package/utils/eventBus/index.mjs +1 -1
  411. package/utils/getActiveTheme.d.ts +1 -1
  412. package/utils/hooks/index.cjs +1 -1
  413. package/utils/hooks/index.mjs +1 -1
  414. package/utils/index.cjs +1 -1
  415. package/utils/index.mjs +1 -1
  416. package/utils/styles/index.cjs +1 -1
  417. package/utils/styles/index.mjs +1 -1
  418. package/chunks/AnalyticalWidget-B6czTLSw.cjs +0 -43
  419. package/chunks/AnalyticalWidget-BWggL9xa.mjs +0 -528
  420. package/chunks/GridDND-CVAlpElj.cjs +0 -1
  421. package/chunks/Stories-e_CX_1CS.cjs +0 -1
  422. package/chunks/TableCanvas-DqF5YxEY.cjs +0 -30
  423. package/chunks/TableGlide-CGAh5x3Q.cjs +0 -1
  424. package/chunks/styles-BMXAIiBk.mjs +0 -128
  425. package/chunks/styles-DwCVRGsC.cjs +0 -2
  426. package/chunks/vendor-BauZZ2hr.mjs +0 -1955
  427. package/chunks/vendor-C47eH0xy.cjs +0 -1950
@@ -1,24 +1,24 @@
1
- import { jsx as n, jsxs as H, Fragment as ve } from "react/jsx-runtime";
2
- import { Spinner as be, IconButton as ne } from "@salutejs/sdds-finai";
3
- import { IconDisclosureLeftOutline as Ie, IconDisclosureRightOutline as _e, IconClose as Ce } from "@salutejs/plasma-icons";
4
- import { useRef as k, useEffect as A, useContext as Ne, createContext as Pe, useSyncExternalStore as ke, useState as ue, useCallback as ge, lazy as Te, forwardRef as Oe, Children as Re, useImperativeHandle as Ee, cloneElement as Ae, isValidElement as ze, Suspense as De } from "react";
5
- import { createPortal as $e, flushSync as Be } from "react-dom";
6
- import { E as Ge } from "./EmptyState-BB3duGQw.mjs";
7
- import { n as Ve, x as Le, y as oe } from "./utils-D4eJY8pa.mjs";
8
- import { surfaceSolidCard as je, onLightSurfaceTransparentDeep as Fe, onDarkSurfaceTransparentDeep as He, onLightSurfaceTransparentTertiary as Me, onDarkSurfaceTransparentTertiary as We, textAccent as Xe, shadowDownSoftL as Ye, textPrimary as Ze } from "@salutejs/sdds-themes/tokens/sdds_finai";
9
- import y, { keyframes as L, css as fe, createGlobalStyle as Ke } from "styled-components";
10
- import { a as qe } from "./AnalyticalWidget-BWggL9xa.mjs";
11
- const Ue = ({
1
+ import { jsx as i, jsxs as H, Fragment as Pe } from "react/jsx-runtime";
2
+ import { Spinner as ke, IconButton as ne } from "@salutejs/sdds-finai";
3
+ import { IconDisclosureLeftOutline as Te, IconDisclosureRightOutline as Oe, IconClose as Ee } from "@salutejs/plasma-icons";
4
+ import { useRef as k, useEffect as A, useContext as Re, createContext as Ae, useSyncExternalStore as ze, useState as fe, useCallback as ye, lazy as De, forwardRef as $e, useImperativeHandle as Be, Children as me, isValidElement as ie, cloneElement as ce, Suspense as Ge } from "react";
5
+ import { createPortal as Ve, flushSync as Le } from "react-dom";
6
+ import { E as je } from "./EmptyState-B205JfZA.mjs";
7
+ import { n as Fe, x as He, y as oe } from "./utils-YKicAHp0.mjs";
8
+ import { surfaceSolidCard as Me, onLightSurfaceTransparentDeep as We, onDarkSurfaceTransparentDeep as Xe, onLightSurfaceTransparentTertiary as Ye, onDarkSurfaceTransparentTertiary as Ze, textAccent as Ke, shadowDownSoftL as qe, textPrimary as Ue } from "@salutejs/sdds-themes/tokens/sdds_finai";
9
+ import f, { keyframes as L, css as Se, createGlobalStyle as Je } from "styled-components";
10
+ import { a as Qe } from "./AnalyticalWidget-BWcBjoNh.mjs";
11
+ const et = ({
12
12
  controller: e,
13
13
  pauseHoldDelay: t,
14
- tapPrevZone: o,
15
- isOpen: r
14
+ tapPrevZone: n,
15
+ isOpen: o
16
16
  }) => {
17
- const i = k(), g = k(!1), d = k("next"), c = () => {
18
- i.current && (clearTimeout(i.current), i.current = void 0);
17
+ const r = k(), g = k(!1), d = k("next"), c = () => {
18
+ r.current && (clearTimeout(r.current), r.current = void 0);
19
19
  }, w = (p) => {
20
20
  const l = p.currentTarget.getBoundingClientRect(), I = l.width > 0 ? (p.clientX - l.left) / l.width : 1;
21
- d.current = I < o ? "prev" : "next", g.current = !1, c(), i.current = setTimeout(() => {
21
+ d.current = I < n ? "prev" : "next", g.current = !1, c(), r.current = setTimeout(() => {
22
22
  g.current = !0, e.pause();
23
23
  }, t);
24
24
  }, b = () => {
@@ -31,24 +31,24 @@ const Ue = ({
31
31
  c(), g.current && (g.current = !1, e.resume());
32
32
  };
33
33
  return A(() => {
34
- if (!r)
34
+ if (!o)
35
35
  return;
36
36
  const p = (l) => {
37
37
  l.key === "ArrowLeft" ? (l.preventDefault(), e.prev()) : l.key === "ArrowRight" ? (l.preventDefault(), e.next()) : l.key === "Escape" && (l.preventDefault(), e.close());
38
38
  };
39
39
  return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
40
- }, [r, e]), {
40
+ }, [o, e]), {
41
41
  onPointerDown: w,
42
42
  onPointerUp: b,
43
43
  onPointerLeave: a,
44
44
  onPointerCancel: a
45
45
  };
46
- }, ye = Pe(null), Je = ye.Provider, q = () => {
47
- const e = Ne(ye);
46
+ }, xe = Ae(null), tt = xe.Provider, K = () => {
47
+ const e = Re(xe);
48
48
  if (!e)
49
49
  throw new Error("Компоненты Stories должны использоваться внутри <Stories>.");
50
50
  return e;
51
- }, U = (e) => ke(e.subscribe, e.getSnapshot, e.getSnapshot), C = {
51
+ }, q = (e) => ze(e.subscribe, e.getSnapshot, e.getSnapshot), _ = {
52
52
  root: "df-stories",
53
53
  preview: "df-stories-preview",
54
54
  previewRing: "df-stories-preview__ring",
@@ -66,7 +66,7 @@ const Ue = ({
66
66
  arrowPrev: "df-stories-viewer__arrow-prev",
67
67
  arrowNext: "df-stories-viewer__arrow-next",
68
68
  close: "df-stories-viewer__close"
69
- }, Qe = "linear-gradient(135deg, #08c6c9 0%, #99b0fe 100%)", et = "#ecf6fc", F = "df-stories-banner", K = {
69
+ }, nt = "linear-gradient(135deg, #08c6c9 0%, #99b0fe 100%)", ot = "#ecf6fc", F = "df-stories-banner", Z = {
70
70
  /** Длительность показа сегмента по умолчанию, мс. */
71
71
  duration: 5e3,
72
72
  /** Порог удержания указателя, после которого включается пауза (мс). До него — тап-навигация. */
@@ -77,7 +77,7 @@ const Ue = ({
77
77
  overlayColor: "#060a0c47",
78
78
  /** z-index оверлея; баннер получает zIndex + 1. */
79
79
  zIndex: 9e3
80
- }, m = {
80
+ }, y = {
81
81
  /** Диаметр круглого триггера, px. */
82
82
  circle: 98,
83
83
  /** Толщина каждого кольца (градиент / белый зазор), px. */
@@ -99,131 +99,131 @@ const Ue = ({
99
99
  progressRadius: 2,
100
100
  progressFillRadius: 6,
101
101
  progressGap: 4
102
- }, tt = "StoriesPreview", de = y.div.withConfig({
102
+ }, rt = "StoriesPreview", pe = f.div.withConfig({
103
103
  displayName: "StoriesContentstyled__StyledContent"
104
- })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:", ";"], je), nt = y.img.withConfig({
104
+ })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:", ";"], Me), it = f.img.withConfig({
105
105
  displayName: "StoriesContentstyled__StyledImage"
106
106
  })(["width:100%;height:100%;object-fit:", ";opacity:", ";transition:opacity 0.2s ease;user-select:none;"], ({
107
107
  $objectFit: e
108
108
  }) => e, ({
109
109
  $loaded: e
110
- }) => e ? 1 : 0), ot = y.div.withConfig({
110
+ }) => e ? 1 : 0), st = f.div.withConfig({
111
111
  displayName: "StoriesContentstyled__StyledSpinner"
112
- })(["position:absolute;display:flex;align-items:center;justify-content:center;"]), rt = y.div.withConfig({
112
+ })(["position:absolute;display:flex;align-items:center;justify-content:center;"]), at = f.div.withConfig({
113
113
  displayName: "StoriesContentstyled__StyledErrorSlot"
114
- })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:", "px;"], m.bannerPadding), it = ({
114
+ })(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:", "px;"], y.bannerPadding), lt = ({
115
115
  slide: e,
116
116
  status: t,
117
- errorNode: o
117
+ errorNode: n
118
118
  }) => {
119
- const r = e.objectFit ?? "cover", i = t === "loaded";
120
- return t === "error" ? /* @__PURE__ */ n(de, { className: C.content, children: /* @__PURE__ */ n(rt, { children: o }) }) : /* @__PURE__ */ H(de, { className: C.content, children: [
121
- /* @__PURE__ */ n(nt, { src: e.src, alt: "", draggable: !1, $objectFit: r, $loaded: i }),
122
- t === "loading" ? /* @__PURE__ */ n(ot, { children: /* @__PURE__ */ n(be, { view: "default", size: "l" }) }) : null
119
+ const o = e.objectFit ?? "cover", r = t === "loaded";
120
+ return t === "error" ? /* @__PURE__ */ i(pe, { className: _.content, children: /* @__PURE__ */ i(at, { children: n }) }) : /* @__PURE__ */ H(pe, { className: _.content, children: [
121
+ /* @__PURE__ */ i(it, { src: e.src, alt: "", draggable: !1, $objectFit: o, $loaded: r }),
122
+ t === "loading" ? /* @__PURE__ */ i(st, { children: /* @__PURE__ */ i(ke, { view: "default", size: "l" }) }) : null
123
123
  ] });
124
- }, ce = (e, t) => {
124
+ }, ue = (e, t) => {
125
125
  e && (e.style.transform = `scaleX(${t})`);
126
- }, st = ({
126
+ }, dt = ({
127
127
  fillRef: e,
128
128
  active: t,
129
- duration: o,
130
- isPlaying: r,
131
- isReady: i,
129
+ duration: n,
130
+ isPlaying: o,
131
+ isReady: r,
132
132
  resetKey: g,
133
133
  onComplete: d
134
134
  }) => {
135
135
  const c = k(0), w = k(d);
136
136
  w.current = d, A(() => {
137
- c.current = 0, ce(e.current, 0);
137
+ c.current = 0, ue(e.current, 0);
138
138
  }, [g, e]), A(() => {
139
- if (!t || !r || !i || o <= 0)
139
+ if (!t || !o || !r || n <= 0)
140
140
  return;
141
141
  let b = 0, a = performance.now();
142
142
  const p = (l) => {
143
143
  c.current += l - a, a = l;
144
- const I = Math.min(1, c.current / o);
145
- if (ce(e.current, I), I >= 1) {
144
+ const I = Math.min(1, c.current / n);
145
+ if (ue(e.current, I), I >= 1) {
146
146
  w.current();
147
147
  return;
148
148
  }
149
149
  b = requestAnimationFrame(p);
150
150
  };
151
151
  return b = requestAnimationFrame(p), () => cancelAnimationFrame(b);
152
- }, [t, r, i, o, g, e]);
153
- }, at = y.div.withConfig({
152
+ }, [t, o, r, n, g, e]);
153
+ }, ct = f.div.withConfig({
154
154
  displayName: "StoriesProgressstyled__StyledProgress"
155
- })(["display:flex;gap:", "px;width:100%;"], m.progressGap), lt = y.div.withConfig({
155
+ })(["display:flex;gap:", "px;width:100%;"], y.progressGap), pt = f.div.withConfig({
156
156
  displayName: "StoriesProgressstyled__StyledItem"
157
- })(["position:relative;flex:1 1 0;height:", "px;border-radius:", "px;overflow:hidden;background:", ";"], m.progressHeight, m.progressRadius, ({
157
+ })(["position:relative;flex:1 1 0;height:", "px;border-radius:", "px;overflow:hidden;background:", ";"], y.progressHeight, y.progressRadius, ({
158
158
  $bg: e
159
- }) => e), dt = y.span.withConfig({
159
+ }) => e), ut = f.span.withConfig({
160
160
  displayName: "StoriesProgressstyled__StyledFill"
161
- })(["position:absolute;inset:0;border-radius:", "px;background:", ";transform:scaleX(0);transform-origin:left center;will-change:transform;"], m.progressFillRadius, ({
161
+ })(["position:absolute;inset:0;border-radius:", "px;background:", ";transform:scaleX(0);transform-origin:left center;will-change:transform;"], y.progressFillRadius, ({
162
162
  $color: e
163
- }) => e), ct = ({
163
+ }) => e), gt = ({
164
164
  isReady: e
165
165
  }) => {
166
166
  var z;
167
167
  const {
168
168
  store: t,
169
- controller: o,
170
- groups: r,
171
- defaultDuration: i,
169
+ controller: n,
170
+ groups: o,
171
+ defaultDuration: r,
172
172
  mode: g
173
- } = q(), {
173
+ } = K(), {
174
174
  groupIndex: d,
175
175
  slideIndex: c,
176
176
  isPlaying: w,
177
177
  isOpen: b
178
- } = U(t), a = Ve(), l = (g ?? a) === "dark", I = l ? Me : We, S = l ? Fe : He, v = r[d], x = (v == null ? void 0 : v.slides) ?? [], $ = k(null), O = ((z = x[c]) == null ? void 0 : z.duration) ?? (v == null ? void 0 : v.defaultDuration) ?? i;
179
- return st({
178
+ } = q(t), a = Fe(), l = (g ?? a) === "dark", I = l ? Ye : Ze, S = l ? We : Xe, v = o[d], x = (v == null ? void 0 : v.slides) ?? [], $ = k(null), O = ((z = x[c]) == null ? void 0 : z.duration) ?? (v == null ? void 0 : v.defaultDuration) ?? r;
179
+ return dt({
180
180
  fillRef: $,
181
181
  active: b,
182
182
  duration: O,
183
183
  isPlaying: w,
184
184
  isReady: e,
185
185
  resetKey: `${d}-${c}`,
186
- onComplete: o.next
187
- }), /* @__PURE__ */ n(at, { className: C.progress, children: x.map((B, R) => {
188
- const E = B.id ?? `${d}-${R}`, P = R < c, j = R === c;
189
- return /* @__PURE__ */ n(lt, { className: C.progressItem, $bg: P ? S : I, children: j ? /* @__PURE__ */ n(dt, { ref: $, $color: S }) : null }, E);
186
+ onComplete: n.next
187
+ }), /* @__PURE__ */ i(ct, { className: _.progress, children: x.map((B, E) => {
188
+ const R = B.id ?? `${d}-${E}`, P = E < c, j = E === c;
189
+ return /* @__PURE__ */ i(pt, { className: _.progressItem, $bg: P ? S : I, children: j ? /* @__PURE__ */ i(ut, { ref: $, $color: S }) : null }, R);
190
190
  }) });
191
- }, pt = L(["from{opacity:0;transform:scale(0.92) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);}"]), ut = L(["from{opacity:1;transform:scale(1) translateY(0);}to{opacity:0;transform:scale(0.96) translateY(6px);}"]), gt = y.div.withConfig({
191
+ }, ft = L(["from{opacity:0;transform:scale(0.92) translateY(8px);}to{opacity:1;transform:scale(1) translateY(0);}"]), yt = L(["from{opacity:1;transform:scale(1) translateY(0);}to{opacity:0;transform:scale(0.96) translateY(6px);}"]), mt = f.div.withConfig({
192
192
  displayName: "StoriesBannerstyled__StyledBanner"
193
- })(["position:relative;height:100%;width:auto;aspect-ratio:", " / ", ";max-width:calc( 100vw - ", "px );border-radius:", "px;overflow:hidden;view-transition-name:", ";animation:", " ", " ease forwards;"], m.bannerMaxWidth, m.bannerMaxHeight, m.stageWidth - m.bannerMaxWidth, m.bannerRadius, F, ({
193
+ })(["position:relative;height:100%;width:auto;aspect-ratio:", " / ", ";max-width:calc( 100vw - ", "px );border-radius:", "px;overflow:hidden;view-transition-name:", ";animation:", " ", " ease forwards;"], y.bannerMaxWidth, y.bannerMaxHeight, y.stageWidth - y.bannerMaxWidth, y.bannerRadius, F, ({
194
194
  $closing: e
195
- }) => e ? ut : pt, ({
195
+ }) => e ? yt : ft, ({
196
196
  $closing: e
197
- }) => e ? "0.2s" : "0.24s"), ft = y.div.withConfig({
197
+ }) => e ? "0.2s" : "0.24s"), St = f.div.withConfig({
198
198
  displayName: "StoriesBannerstyled__StyledTapLayer"
199
- })(["position:absolute;inset:0;z-index:1;touch-action:none;"]), yt = y.div.withConfig({
199
+ })(["position:absolute;inset:0;z-index:1;touch-action:none;"]), xt = f.div.withConfig({
200
200
  displayName: "StoriesBannerstyled__StyledTop"
201
- })(["position:absolute;top:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], m.bannerPadding), mt = y.div.withConfig({
201
+ })(["position:absolute;top:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], y.bannerPadding), ht = f.div.withConfig({
202
202
  displayName: "StoriesBannerstyled__StyledBottom"
203
- })(["position:absolute;bottom:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], m.bannerPadding), St = y.div.withConfig({
203
+ })(["position:absolute;bottom:0;left:0;right:0;z-index:2;padding:", "px;pointer-events:none;"], y.bannerPadding), wt = f.div.withConfig({
204
204
  displayName: "StoriesBannerstyled__StyledActionSlot"
205
- })(["pointer-events:auto;"]), xt = ({
205
+ })(["pointer-events:auto;"]), vt = ({
206
206
  closing: e,
207
207
  onAnimationEnd: t
208
208
  }) => {
209
209
  const {
210
- store: o,
211
- controller: r,
212
- groups: i,
210
+ store: n,
211
+ controller: o,
212
+ groups: r,
213
213
  pauseHoldDelay: g,
214
214
  tapPrevZone: d,
215
215
  loadingDelay: c,
216
216
  onError: w,
217
217
  renderError: b
218
- } = q(), {
218
+ } = K(), {
219
219
  groupIndex: a,
220
220
  slideIndex: p,
221
221
  isOpen: l
222
- } = U(o), I = i[a], S = I == null ? void 0 : I.slides[p], {
222
+ } = q(n), I = r[a], S = I == null ? void 0 : I.slides[p], {
223
223
  status: v,
224
224
  reload: x
225
- } = Le(S == null ? void 0 : S.src, c), $ = Ue({
226
- controller: r,
225
+ } = He(S == null ? void 0 : S.src, c), $ = et({
226
+ controller: o,
227
227
  pauseHoldDelay: g,
228
228
  tapPrevZone: d,
229
229
  isOpen: l
@@ -245,13 +245,13 @@ const Ue = ({
245
245
  if (!S)
246
246
  return null;
247
247
  const {
248
- footer: R
249
- } = S, E = b ? b({
248
+ footer: E
249
+ } = S, R = b ? b({
250
250
  groupIndex: a,
251
251
  slideIndex: p,
252
252
  slide: S,
253
253
  retry: x
254
- }) : /* @__PURE__ */ n(Ge, { size: "s", variant: "loading", title: "Не удалось загрузить", centered: !0, buttons: [{
254
+ }) : /* @__PURE__ */ i(je, { size: "s", variant: "loading", title: "Не удалось загрузить", centered: !0, buttons: [{
255
255
  type: "link",
256
256
  props: {
257
257
  text: "Обновить",
@@ -259,24 +259,24 @@ const Ue = ({
259
259
  onClick: x
260
260
  }
261
261
  }] });
262
- return /* @__PURE__ */ H(gt, { className: C.banner, $closing: e, onClick: z, onAnimationEnd: B, children: [
263
- /* @__PURE__ */ n(it, { slide: S, status: v, errorNode: E }),
264
- v === "error" ? null : /* @__PURE__ */ n(ft, { ...$ }),
265
- /* @__PURE__ */ n(yt, { children: /* @__PURE__ */ n(ct, { isReady: v === "loaded" }) }),
266
- R ? /* @__PURE__ */ n(mt, { children: /* @__PURE__ */ n(St, { className: C.action, children: R }) }) : null
262
+ return /* @__PURE__ */ H(mt, { className: _.banner, $closing: e, onClick: z, onAnimationEnd: B, children: [
263
+ /* @__PURE__ */ i(lt, { slide: S, status: v, errorNode: R }),
264
+ v === "error" ? null : /* @__PURE__ */ i(St, { ...$ }),
265
+ /* @__PURE__ */ i(xt, { children: /* @__PURE__ */ i(gt, { isReady: v === "loaded" }) }),
266
+ E ? /* @__PURE__ */ i(ht, { children: /* @__PURE__ */ i(wt, { className: _.action, children: E }) }) : null
267
267
  ] });
268
268
  }, re = {
269
- ring: () => Qe,
270
- fallback: () => et,
271
- boxShadow: () => Ye
272
- }, ie = (e, t) => e === "circle" ? "50%" : `${{
273
- outer: m.rectRadiusOuter,
274
- body: m.rectRadiusBody
275
- }[t]}px`, ht = y.div.withConfig({
269
+ ring: () => nt,
270
+ fallback: () => ot,
271
+ boxShadow: () => qe
272
+ }, se = (e, t) => e === "circle" ? "50%" : `${{
273
+ outer: y.rectRadiusOuter,
274
+ body: y.rectRadiusBody
275
+ }[t]}px`, bt = f.div.withConfig({
276
276
  displayName: "StoriesPreviewstyled__StyledPreview"
277
277
  })(["display:flex;flex-direction:column;align-items:center;width:", "px;"], ({
278
278
  $width: e
279
- }) => e), wt = y.button.withConfig({
279
+ }) => e), It = f.button.withConfig({
280
280
  displayName: "StoriesPreviewstyled__StyledTrigger"
281
281
  })(["position:relative;display:block;box-sizing:border-box;width:", "px;height:", "px;padding:0;margin:0;border:0;background:transparent;cursor:pointer;border-radius:", ";outline:none;&:focus-visible{outline:2px solid ", ";outline-offset:2px;}"], ({
282
282
  $width: e
@@ -284,33 +284,33 @@ const Ue = ({
284
284
  $height: e
285
285
  }) => e, ({
286
286
  $shape: e
287
- }) => ie(e, "outer"), Xe), vt = y.div.withConfig({
287
+ }) => se(e, "outer"), Ke), _t = f.div.withConfig({
288
288
  displayName: "StoriesPreviewstyled__StyledRing"
289
- })(["position:absolute;inset:0;box-sizing:border-box;padding:", "px;background:", ";border-radius:", ";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;"], m.ring, re.ring, ({
289
+ })(["position:absolute;inset:0;box-sizing:border-box;padding:", "px;background:", ";border-radius:", ";-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;"], y.ring, re.ring, ({
290
290
  $shape: e
291
- }) => ie(e, "outer")), bt = y.div.withConfig({
291
+ }) => se(e, "outer")), Ct = f.div.withConfig({
292
292
  displayName: "StoriesPreviewstyled__StyledBody"
293
293
  })(["position:absolute;inset:", "px;box-sizing:border-box;box-shadow:", ";background-color:", ";background-position:center;background-size:cover;background-repeat:no-repeat;", " border-radius:", ";"], ({
294
294
  $viewed: e
295
- }) => e ? 0 : m.ring * 2, re.boxShadow, re.fallback, ({
295
+ }) => e ? 0 : y.ring * 2, re.boxShadow, re.fallback, ({
296
296
  $image: e
297
- }) => e && fe(["background-image:url('", "');"], e), ({
297
+ }) => e && Se(["background-image:url('", "');"], e), ({
298
298
  $shape: e,
299
299
  $viewed: t
300
- }) => ie(e, t ? "outer" : "body")), It = y.div.withConfig({
300
+ }) => se(e, t ? "outer" : "body")), Nt = f.div.withConfig({
301
301
  displayName: "StoriesPreviewstyled__StyledTitle"
302
- })(["margin-top:", "px;width:100%;text-align:", ";& > *{width:100%;}"], m.titleGap, ({
302
+ })(["margin-top:", "px;width:100%;text-align:", ";& > *{width:100%;}"], y.titleGap, ({
303
303
  $align: e
304
- }) => e), me = (e) => {
304
+ }) => e), he = (e) => {
305
305
  var G;
306
306
  const {
307
307
  slides: t,
308
- shape: o = "circle",
309
- title: r,
310
- titleProps: i,
308
+ shape: n = "circle",
309
+ title: o,
310
+ titleProps: r,
311
311
  image: g,
312
312
  viewed: d = !1,
313
- size: c = m.circle,
313
+ size: c = y.circle,
314
314
  width: w,
315
315
  height: b,
316
316
  renderTrigger: a,
@@ -321,70 +321,70 @@ const Ue = ({
321
321
  store: I,
322
322
  controller: S,
323
323
  preloadOnHover: v
324
- } = q(), x = U(I), $ = x.isOpen && x.groupIndex === l, O = o === "rect" ? w ?? c : c, z = o === "rect" ? b ?? c : c, B = () => S.open(l), R = () => {
324
+ } = K(), x = q(I), $ = x.isOpen && x.groupIndex === l, O = n === "rect" ? w ?? c : c, z = n === "rect" ? b ?? c : c, B = () => S.open(l), E = () => {
325
325
  v && t[0] && oe(t[0].src);
326
- }, E = () => a ? a({
326
+ }, R = () => a ? a({
327
327
  index: l,
328
328
  viewed: d,
329
329
  isActive: $
330
- }) : /* @__PURE__ */ H(ve, { children: [
331
- d ? null : /* @__PURE__ */ n(vt, { className: C.previewRing, $shape: o }),
332
- /* @__PURE__ */ n(bt, { className: C.previewBody, $shape: o, $viewed: d, $image: g })
330
+ }) : /* @__PURE__ */ H(Pe, { children: [
331
+ d ? null : /* @__PURE__ */ i(_t, { className: _.previewRing, $shape: n }),
332
+ /* @__PURE__ */ i(Ct, { className: _.previewBody, $shape: n, $viewed: d, $image: g })
333
333
  ] }), P = {
334
334
  variant: "BodyXXS",
335
335
  bold: !0,
336
336
  lines: 2,
337
- tooltipText: r,
338
- color: Ze,
339
- ...i,
340
- children: r
341
- }, j = ((G = i == null ? void 0 : i.style) == null ? void 0 : G.textAlign) ?? "center";
342
- return /* @__PURE__ */ H(ht, { className: [C.preview, p].filter(Boolean).join(" "), "data-component": tt, $width: O, children: [
343
- /* @__PURE__ */ n(wt, { type: "button", "aria-label": r, $width: O, $height: z, $shape: o, onClick: B, onMouseEnter: R, children: E() }),
344
- r ? /* @__PURE__ */ n(It, { className: C.previewTitle, style: {
337
+ tooltipText: o,
338
+ color: Ue,
339
+ ...r,
340
+ children: o
341
+ }, j = ((G = r == null ? void 0 : r.style) == null ? void 0 : G.textAlign) ?? "center";
342
+ return /* @__PURE__ */ H(bt, { className: [_.preview, p].filter(Boolean).join(" "), "data-component": rt, $width: O, children: [
343
+ /* @__PURE__ */ i(It, { type: "button", "aria-label": o, $width: O, $height: z, $shape: n, onClick: B, onMouseEnter: E, children: R() }),
344
+ o ? /* @__PURE__ */ i(Nt, { className: _.previewTitle, style: {
345
345
  maxWidth: O
346
- }, $align: j, children: /* @__PURE__ */ n(qe, { ...P }) }) : null
346
+ }, $align: j, children: /* @__PURE__ */ i(Qe, { ...P }) }) : null
347
347
  ] });
348
- }, _t = L(["from{opacity:0;}to{opacity:1;}"]), Ct = L(["from{opacity:1;}to{opacity:0;}"]), Se = (e) => fe(["animation:", " ", " ease forwards;"], e ? Ct : _t, e ? "0.2s" : "0.24s"), Nt = y.div.withConfig({
348
+ }, Pt = L(["from{opacity:0;}to{opacity:1;}"]), kt = L(["from{opacity:1;}to{opacity:0;}"]), we = (e) => Se(["animation:", " ", " ease forwards;"], e ? kt : Pt, e ? "0.2s" : "0.24s"), Tt = f.div.withConfig({
349
349
  displayName: "StoriesViewerstyled__StyledRoot"
350
350
  })(["position:fixed;inset:0;z-index:", ";display:flex;align-items:center;justify-content:center;"], ({
351
351
  $zIndex: e
352
- }) => e), Pt = y.div.withConfig({
352
+ }) => e), Ot = f.div.withConfig({
353
353
  displayName: "StoriesViewerstyled__StyledOverlay"
354
354
  })(["position:absolute;inset:0;background:", ";opacity:", ";transition:opacity 0.24s ease;"], ({
355
355
  $color: e
356
356
  }) => e, ({
357
357
  $closing: e
358
- }) => e ? 0 : 1), kt = y.div.withConfig({
358
+ }) => e ? 0 : 1), Et = f.div.withConfig({
359
359
  displayName: "StoriesViewerstyled__StyledStage"
360
- })(["position:relative;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:fit-content;max-width:min(", "px,100vw);height:min(", "px,calc(100vh - 32px));padding:0 ", "px;outline:none;"], m.stageWidth, m.bannerMaxHeight, (m.stageWidth - m.bannerMaxWidth) / 2), pe = y.div.withConfig({
360
+ })(["position:relative;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:fit-content;max-width:min(", "px,100vw);height:min(", "px,calc(100vh - 32px));padding:0 ", "px;outline:none;"], y.stageWidth, y.bannerMaxHeight, (y.stageWidth - y.bannerMaxWidth) / 2), ge = f.div.withConfig({
361
361
  displayName: "StoriesViewerstyled__StyledArrow"
362
362
  })(["position:absolute;top:50%;", " z-index:3;transform:translateY(-50%);", ""], ({
363
363
  $side: e
364
364
  }) => e === "prev" ? "left: 0;" : "right: 0;", ({
365
365
  $closing: e
366
- }) => Se(e)), Tt = y.div.withConfig({
366
+ }) => we(e)), Rt = f.div.withConfig({
367
367
  displayName: "StoriesViewerstyled__StyledClose"
368
368
  })(["position:absolute;top:0;right:0;z-index:3;", ""], ({
369
369
  $closing: e
370
- }) => Se(e)), Ot = L(["from{transform:translateX(24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), Rt = L(["from{transform:translateX(0);opacity:1;}to{transform:translateX(-24px);opacity:0;}"]), Et = L(["from{transform:translateX(-24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), At = L(["from{transform:translateX(0);opacity:1;}to{transform:translateX(24px);opacity:0;}"]), zt = Ke(["::view-transition-old(", "),::view-transition-new(", "){animation-duration:0.3s;animation-timing-function:ease;}html[data-df-stories-dir='next']::view-transition-new(", "){animation-name:", ";}html[data-df-stories-dir='next']::view-transition-old(", "){animation-name:", ";}html[data-df-stories-dir='prev']::view-transition-new(", "){animation-name:", ";}html[data-df-stories-dir='prev']::view-transition-old(", "){animation-name:", ";}"], F, F, F, Ot, F, Rt, F, Et, F, At), Dt = () => {
371
- var M;
370
+ }) => we(e)), At = L(["from{transform:translateX(24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), zt = L(["from{transform:translateX(0);opacity:1;}to{transform:translateX(-24px);opacity:0;}"]), Dt = L(["from{transform:translateX(-24px);opacity:0;}to{transform:translateX(0);opacity:1;}"]), $t = L(["from{transform:translateX(0);opacity:1;}to{transform:translateX(24px);opacity:0;}"]), Bt = Je(["::view-transition-old(", "),::view-transition-new(", "){animation-duration:0.3s;animation-timing-function:ease;}html[data-df-stories-dir='next']::view-transition-new(", "){animation-name:", ";}html[data-df-stories-dir='next']::view-transition-old(", "){animation-name:", ";}html[data-df-stories-dir='prev']::view-transition-new(", "){animation-name:", ";}html[data-df-stories-dir='prev']::view-transition-old(", "){animation-name:", ";}"], F, F, F, At, F, zt, F, Dt, F, $t), Gt = () => {
371
+ var Q;
372
372
  const {
373
373
  store: e,
374
374
  controller: t,
375
- groups: o,
376
- overlay: r,
377
- overlayColor: i,
375
+ groups: n,
376
+ overlay: o,
377
+ overlayColor: r,
378
378
  zIndex: g,
379
379
  groupTransition: d,
380
380
  arrows: c,
381
381
  hideDisabledArrows: w,
382
382
  preloadGroup: b
383
- } = q(), {
383
+ } = K(), {
384
384
  isOpen: a,
385
385
  groupIndex: p,
386
386
  slideIndex: l
387
- } = U(e), [I, S] = ue(a), v = k(null);
387
+ } = q(e), [I, S] = fe(a), v = k(null);
388
388
  A(() => {
389
389
  a && S(!0);
390
390
  }, [a]), A(() => {
@@ -393,90 +393,105 @@ const Ue = ({
393
393
  }, [a]), A(() => {
394
394
  a && b(p);
395
395
  }, [a, p, b]);
396
- const x = I && !a, $ = ge(() => {
396
+ const x = I && !a, $ = ye(() => {
397
397
  x && S(!1);
398
398
  }, [x]);
399
399
  if (!I || typeof document > "u")
400
400
  return null;
401
- const O = ((M = o[p]) == null ? void 0 : M.slides.length) ?? 0, z = p > 0 || l > 0, B = l + 1 < O || p + 1 < o.length, R = o.reduce((D, W) => D + W.slides.length, 0), E = c === "always" || c === "auto" && R > 1, P = E && (z || !w), j = E && (B || !w), G = (D) => D.stopPropagation(), Q = /* @__PURE__ */ H(Nt, { className: C.viewer, $zIndex: g, onClick: () => t.close(), children: [
402
- r ? /* @__PURE__ */ n(Pt, { className: C.overlay, $color: i, $closing: x }) : null,
403
- d === "slide" ? /* @__PURE__ */ n(zt, {}) : null,
404
- /* @__PURE__ */ H(kt, { ref: v, tabIndex: -1, className: C.stage, children: [
405
- P ? /* @__PURE__ */ n(pe, { className: C.arrowPrev, $side: "prev", $closing: x, onClick: G, children: /* @__PURE__ */ n(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Назад", disabled: !z, onClick: () => t.prev(), children: /* @__PURE__ */ n(Ie, { size: "s" }) }) }) : null,
406
- /* @__PURE__ */ n(xt, { closing: x, onAnimationEnd: $ }),
407
- j ? /* @__PURE__ */ n(pe, { className: C.arrowNext, $side: "next", $closing: x, onClick: G, children: /* @__PURE__ */ n(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Вперёд", disabled: !B, onClick: () => t.next(), children: /* @__PURE__ */ n(_e, { size: "s" }) }) }) : null,
408
- /* @__PURE__ */ n(Tt, { className: C.close, $closing: x, onClick: G, children: /* @__PURE__ */ n(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Закрыть", onClick: () => t.close(), children: /* @__PURE__ */ n(Ce, { size: "s" }) }) })
401
+ const O = ((Q = n[p]) == null ? void 0 : Q.slides.length) ?? 0, z = p > 0 || l > 0, B = l + 1 < O || p + 1 < n.length, E = n.reduce((D, M) => D + M.slides.length, 0), R = c === "always" || c === "auto" && E > 1, P = R && (z || !w), j = R && (B || !w), G = (D) => D.stopPropagation(), J = /* @__PURE__ */ H(Tt, { className: _.viewer, $zIndex: g, onClick: () => t.close(), children: [
402
+ o ? /* @__PURE__ */ i(Ot, { className: _.overlay, $color: r, $closing: x }) : null,
403
+ d === "slide" ? /* @__PURE__ */ i(Bt, {}) : null,
404
+ /* @__PURE__ */ H(Et, { ref: v, tabIndex: -1, className: _.stage, children: [
405
+ P ? /* @__PURE__ */ i(ge, { className: _.arrowPrev, $side: "prev", $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Назад", disabled: !z, onClick: () => t.prev(), children: /* @__PURE__ */ i(Te, { size: "s" }) }) }) : null,
406
+ /* @__PURE__ */ i(vt, { closing: x, onAnimationEnd: $ }),
407
+ j ? /* @__PURE__ */ i(ge, { className: _.arrowNext, $side: "next", $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Вперёд", disabled: !B, onClick: () => t.next(), children: /* @__PURE__ */ i(Oe, { size: "s" }) }) }) : null,
408
+ /* @__PURE__ */ i(Rt, { className: _.close, $closing: x, onClick: G, children: /* @__PURE__ */ i(ne, { size: "s", view: "white", pin: "circle-circle", "aria-label": "Закрыть", onClick: () => t.close(), children: /* @__PURE__ */ i(Ee, { size: "s" }) }) })
409
409
  ] })
410
410
  ] });
411
- return $e(Q, document.body);
412
- }, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
411
+ return Ve(J, document.body);
412
+ }, Vt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
413
413
  __proto__: null,
414
- StoriesViewer: Dt
415
- }, Symbol.toStringTag, { value: "Module" })), Bt = Te(() => Promise.resolve().then(() => $t).then((e) => ({
414
+ StoriesViewer: Gt
415
+ }, Symbol.toStringTag, { value: "Module" })), Lt = De(() => Promise.resolve().then(() => Vt).then((e) => ({
416
416
  default: e.StoriesViewer
417
- }))), Gt = (e) => {
417
+ }))), jt = (e) => {
418
418
  const t = k(e);
419
- return t.current = e, ge((o) => {
420
- const r = t.current[o];
421
- if (!r)
419
+ return t.current = e, ye((n) => {
420
+ const o = t.current[n];
421
+ if (!o)
422
422
  return;
423
- r.slides.forEach((g) => oe(g.src));
424
- const i = t.current[o + 1];
425
- i != null && i.slides[0] && oe(i.slides[0].src);
423
+ o.slides.forEach((g) => oe(g.src));
424
+ const r = t.current[n + 1];
425
+ r != null && r.slides[0] && oe(r.slides[0].src);
426
426
  }, []);
427
- }, Vt = {
427
+ }, Ft = {
428
428
  isOpen: !1,
429
429
  groupIndex: 0,
430
430
  slideIndex: 0,
431
431
  isPlaying: !0,
432
432
  direction: "next"
433
- }, Lt = (e) => {
433
+ }, Ht = (e) => {
434
434
  let t = {
435
- ...Vt,
435
+ ...Ft,
436
436
  ...e
437
437
  };
438
- const o = /* @__PURE__ */ new Set();
438
+ const n = /* @__PURE__ */ new Set();
439
439
  return {
440
440
  getSnapshot: () => t,
441
- subscribe: (r) => (o.add(r), () => {
442
- o.delete(r);
441
+ subscribe: (o) => (n.add(o), () => {
442
+ n.delete(o);
443
443
  }),
444
- setState: (r) => {
445
- Object.keys(r).some((d) => t[d] !== r[d]) && (t = {
444
+ setState: (o) => {
445
+ Object.keys(o).some((d) => t[d] !== o[d]) && (t = {
446
446
  ...t,
447
- ...r
448
- }, o.forEach((d) => d()));
447
+ ...o
448
+ }, n.forEach((d) => d()));
449
449
  }
450
450
  };
451
- }, jt = () => typeof document < "u" && typeof document.startViewTransition == "function", Ft = (e, t) => {
451
+ }, Mt = () => typeof document < "u" && typeof document.startViewTransition == "function", Wt = (e, t) => {
452
452
  const {
453
- direction: o = "next",
454
- enabled: r = !0
453
+ direction: n = "next",
454
+ enabled: o = !0
455
455
  } = t ?? {};
456
- if (!r || !jt()) {
456
+ if (!o || !Mt()) {
457
457
  e();
458
458
  return;
459
459
  }
460
- const i = document;
461
- i.documentElement.dataset.dfStoriesDir = o, i.startViewTransition(() => Be(e)).finished.finally(() => {
462
- delete i.documentElement.dataset.dfStoriesDir;
460
+ const r = document;
461
+ r.documentElement.dataset.dfStoriesDir = n, r.startViewTransition(() => Le(e)).finished.finally(() => {
462
+ delete r.documentElement.dataset.dfStoriesDir;
463
463
  });
464
- }, Ht = y.div.withConfig({
464
+ }, Xt = f.div.withConfig({
465
465
  displayName: "Storiesstyled__StyledStories"
466
- })(["display:flex;align-items:flex-start;gap:16px;"]), Mt = (e) => ze(e) && e.type === me, Wt = () => {
466
+ })(["display:flex;align-items:flex-start;gap:16px;"]), ve = (e) => ie(e) && e.type === he, be = (e) => {
467
+ const t = [];
468
+ return me.forEach(e, (n) => {
469
+ var o;
470
+ ve(n) ? t.push(n) : ie(n) && ((o = n.props) != null && o.children) && t.push(...be(n.props.children));
471
+ }), t;
472
+ }, Ie = (e, t) => me.map(e, (n) => {
473
+ var o;
474
+ if (ve(n)) {
475
+ const r = t.value;
476
+ return t.value += 1, ce(n, {
477
+ __index: r
478
+ });
479
+ }
480
+ return ie(n) && ((o = n.props) != null && o.children) ? ce(n, void 0, Ie(n.props.children, t)) : n;
481
+ }), Yt = () => {
467
482
  const {
468
483
  store: e
469
- } = q(), {
484
+ } = K(), {
470
485
  isOpen: t
471
- } = U(e), [o, r] = ue(t);
486
+ } = q(e), [n, o] = fe(t);
472
487
  return A(() => {
473
- t && r(!0);
474
- }, [t]), o ? /* @__PURE__ */ n(De, { fallback: null, children: /* @__PURE__ */ n(Bt, {}) }) : null;
475
- }, Xt = (e, t) => {
488
+ t && o(!0);
489
+ }, [t]), n ? /* @__PURE__ */ i(Ge, { fallback: null, children: /* @__PURE__ */ i(Lt, {}) }) : null;
490
+ }, Zt = (e, t) => {
476
491
  const {
477
- children: o,
478
- defaultDuration: r = K.duration,
479
- open: i,
492
+ children: n,
493
+ defaultDuration: o = Z.duration,
494
+ open: r,
480
495
  defaultOpen: g,
481
496
  activeGroupIndex: d,
482
497
  activeSlideIndex: c,
@@ -489,32 +504,32 @@ const Ue = ({
489
504
  onError: S,
490
505
  renderError: v,
491
506
  overlay: x = !0,
492
- overlayColor: $ = K.overlayColor,
493
- zIndex: O = K.zIndex,
507
+ overlayColor: $ = Z.overlayColor,
508
+ zIndex: O = Z.zIndex,
494
509
  preloadOnHover: z = !0,
495
510
  loadingDelay: B = 0,
496
- pauseHoldDelay: R = K.pauseHoldDelay,
497
- groupTransition: E = "slide",
511
+ pauseHoldDelay: E = Z.pauseHoldDelay,
512
+ groupTransition: R = "slide",
498
513
  arrows: P = "auto",
499
514
  hideDisabledArrows: j = !0,
500
515
  mode: G,
501
- className: Q
502
- } = e, M = Re.toArray(o).filter(Mt), D = M.map((_) => ({
503
- slides: _.props.slides ?? [],
504
- defaultDuration: _.props.defaultDuration
505
- })), W = k();
506
- W.current || (W.current = Lt({
516
+ className: J
517
+ } = e, D = be(n).map((C) => ({
518
+ slides: C.props.slides ?? [],
519
+ defaultDuration: C.props.defaultDuration
520
+ })), M = k();
521
+ M.current || (M.current = Ht({
507
522
  isOpen: g ?? !1
508
523
  }));
509
- const u = W.current, J = k(D);
510
- J.current = D;
511
- const se = k({
512
- groupTransition: E
524
+ const u = M.current, U = k(D);
525
+ U.current = D;
526
+ const ae = k({
527
+ groupTransition: R
513
528
  });
514
- se.current = {
515
- groupTransition: E
529
+ ae.current = {
530
+ groupTransition: R
516
531
  };
517
- const X = k({
532
+ const W = k({
518
533
  onOpenChange: w,
519
534
  onGroupChange: b,
520
535
  onSlideChange: a,
@@ -522,7 +537,7 @@ const Ue = ({
522
537
  onGroupComplete: l,
523
538
  onClose: I
524
539
  });
525
- X.current = {
540
+ W.current = {
526
541
  onOpenChange: w,
527
542
  onGroupChange: b,
528
543
  onSlideChange: a,
@@ -532,21 +547,21 @@ const Ue = ({
532
547
  };
533
548
  const ee = k();
534
549
  if (!ee.current) {
535
- const _ = (s, N) => u.setState({
550
+ const C = (s, N) => u.setState({
536
551
  slideIndex: s,
537
552
  direction: N,
538
553
  isPlaying: !0
539
- }), f = (s, N, T) => Ft(() => u.setState({
554
+ }), m = (s, N, T) => Wt(() => u.setState({
540
555
  groupIndex: s,
541
556
  slideIndex: N,
542
557
  direction: T,
543
558
  isPlaying: !0
544
559
  }), {
545
560
  direction: T,
546
- enabled: se.current.groupTransition !== "none"
561
+ enabled: ae.current.groupTransition !== "none"
547
562
  }), h = () => {
548
563
  var s, N;
549
- (N = (s = X.current).onComplete) == null || N.call(s), u.setState({
564
+ (N = (s = W.current).onComplete) == null || N.call(s), u.setState({
550
565
  isOpen: !1,
551
566
  isPlaying: !1
552
567
  });
@@ -567,25 +582,25 @@ const Ue = ({
567
582
  isPlaying: !1
568
583
  }),
569
584
  next: () => {
570
- var T, V, Y, Z, le;
571
- const s = u.getSnapshot(), N = ((T = J.current[s.groupIndex]) == null ? void 0 : T.slides.length) ?? 0;
572
- s.slideIndex + 1 < N ? _(s.slideIndex + 1, "next") : s.groupIndex + 1 < J.current.length ? ((Y = (V = X.current).onGroupComplete) == null || Y.call(V, s.groupIndex), f(s.groupIndex + 1, 0, "next")) : ((le = (Z = X.current).onGroupComplete) == null || le.call(Z, s.groupIndex), h());
585
+ var T, V, X, Y, de;
586
+ const s = u.getSnapshot(), N = ((T = U.current[s.groupIndex]) == null ? void 0 : T.slides.length) ?? 0;
587
+ s.slideIndex + 1 < N ? C(s.slideIndex + 1, "next") : s.groupIndex + 1 < U.current.length ? ((X = (V = W.current).onGroupComplete) == null || X.call(V, s.groupIndex), m(s.groupIndex + 1, 0, "next")) : ((de = (Y = W.current).onGroupComplete) == null || de.call(Y, s.groupIndex), h());
573
588
  },
574
589
  prev: () => {
575
590
  const s = u.getSnapshot();
576
- s.slideIndex > 0 ? _(s.slideIndex - 1, "prev") : s.groupIndex > 0 && f(s.groupIndex - 1, 0, "prev");
591
+ s.slideIndex > 0 ? C(s.slideIndex - 1, "prev") : s.groupIndex > 0 && m(s.groupIndex - 1, 0, "prev");
577
592
  },
578
593
  nextGroup: () => {
579
594
  const s = u.getSnapshot();
580
- s.groupIndex + 1 < J.current.length && f(s.groupIndex + 1, 0, "next");
595
+ s.groupIndex + 1 < U.current.length && m(s.groupIndex + 1, 0, "next");
581
596
  },
582
597
  prevGroup: () => {
583
598
  const s = u.getSnapshot();
584
- s.groupIndex > 0 && f(s.groupIndex - 1, 0, "prev");
599
+ s.groupIndex > 0 && m(s.groupIndex - 1, 0, "prev");
585
600
  },
586
601
  goTo: (s, N) => {
587
602
  const T = u.getSnapshot(), V = s < T.groupIndex ? "prev" : "next";
588
- s === T.groupIndex ? _(N ?? 0, V) : f(s, N ?? 0, V);
603
+ s === T.groupIndex ? C(N ?? 0, V) : m(s, N ?? 0, V);
589
604
  },
590
605
  pause: () => u.setState({
591
606
  isPlaying: !1
@@ -595,24 +610,24 @@ const Ue = ({
595
610
  })
596
611
  };
597
612
  }
598
- const te = ee.current, he = Gt(D), ae = k(u.getSnapshot());
613
+ const te = ee.current, Ce = jt(D), le = k(u.getSnapshot());
599
614
  A(() => u.subscribe(() => {
600
- var s, N, T, V, Y, Z;
601
- const _ = ae.current, f = u.getSnapshot();
602
- ae.current = f;
603
- const h = X.current;
604
- if (_.isOpen !== f.isOpen) {
605
- (s = h.onOpenChange) == null || s.call(h, f.isOpen, {
606
- groupIndex: f.groupIndex
607
- }), f.isOpen ? ((N = h.onGroupChange) == null || N.call(h, f.groupIndex), (T = h.onSlideChange) == null || T.call(h, f.groupIndex, f.slideIndex)) : (V = h.onClose) == null || V.call(h);
615
+ var s, N, T, V, X, Y;
616
+ const C = le.current, m = u.getSnapshot();
617
+ le.current = m;
618
+ const h = W.current;
619
+ if (C.isOpen !== m.isOpen) {
620
+ (s = h.onOpenChange) == null || s.call(h, m.isOpen, {
621
+ groupIndex: m.groupIndex
622
+ }), m.isOpen ? ((N = h.onGroupChange) == null || N.call(h, m.groupIndex), (T = h.onSlideChange) == null || T.call(h, m.groupIndex, m.slideIndex)) : (V = h.onClose) == null || V.call(h);
608
623
  return;
609
624
  }
610
- f.isOpen && (_.groupIndex !== f.groupIndex && ((Y = h.onGroupChange) == null || Y.call(h, f.groupIndex)), (_.groupIndex !== f.groupIndex || _.slideIndex !== f.slideIndex) && ((Z = h.onSlideChange) == null || Z.call(h, f.groupIndex, f.slideIndex)));
625
+ m.isOpen && (C.groupIndex !== m.groupIndex && ((X = h.onGroupChange) == null || X.call(h, m.groupIndex)), (C.groupIndex !== m.groupIndex || C.slideIndex !== m.slideIndex) && ((Y = h.onSlideChange) == null || Y.call(h, m.groupIndex, m.slideIndex)));
611
626
  }), [u]), A(() => {
612
- i !== void 0 && u.setState({
613
- isOpen: i
627
+ r !== void 0 && u.setState({
628
+ isOpen: r
614
629
  });
615
- }, [i, u]), A(() => {
630
+ }, [r, u]), A(() => {
616
631
  d !== void 0 && u.setState({
617
632
  groupIndex: d
618
633
  });
@@ -620,54 +635,54 @@ const Ue = ({
620
635
  c !== void 0 && u.setState({
621
636
  slideIndex: c
622
637
  });
623
- }, [c, u]), Ee(t, () => ({
638
+ }, [c, u]), Be(t, () => ({
624
639
  ...te,
625
640
  getState: () => {
626
- const _ = u.getSnapshot();
641
+ const C = u.getSnapshot();
627
642
  return {
628
- isOpen: _.isOpen,
629
- groupIndex: _.groupIndex,
630
- slideIndex: _.slideIndex,
631
- isPlaying: _.isPlaying
643
+ isOpen: C.isOpen,
644
+ groupIndex: C.groupIndex,
645
+ slideIndex: C.slideIndex,
646
+ isPlaying: C.isPlaying
632
647
  };
633
648
  }
634
649
  }), [te, u]);
635
- const we = {
650
+ const Ne = {
636
651
  store: u,
637
652
  controller: te,
638
653
  groups: D,
639
- defaultDuration: r,
640
- pauseHoldDelay: R,
641
- tapPrevZone: K.tapPrevZone,
642
- preloadGroup: he,
654
+ defaultDuration: o,
655
+ pauseHoldDelay: E,
656
+ tapPrevZone: Z.tapPrevZone,
657
+ preloadGroup: Ce,
643
658
  preloadOnHover: z,
644
659
  loadingDelay: B,
645
660
  overlay: x,
646
661
  overlayColor: $,
647
662
  zIndex: O,
648
- groupTransition: E,
663
+ groupTransition: R,
649
664
  arrows: P,
650
665
  hideDisabledArrows: j,
651
666
  mode: G,
652
667
  onError: S,
653
668
  renderError: v
654
669
  };
655
- return /* @__PURE__ */ H(Je, { value: we, children: [
656
- /* @__PURE__ */ n(Ht, { className: [C.root, Q].filter(Boolean).join(" "), children: M.map((_, f) => Ae(_, {
657
- __index: f
658
- })) }),
659
- /* @__PURE__ */ n(Wt, {})
670
+ return /* @__PURE__ */ H(tt, { value: Ne, children: [
671
+ /* @__PURE__ */ i(Xt, { className: [_.root, J].filter(Boolean).join(" "), children: Ie(n, {
672
+ value: 0
673
+ }) }),
674
+ /* @__PURE__ */ i(Yt, {})
660
675
  ] });
661
- }, xe = Oe(Xt);
662
- xe.Preview = me;
663
- xe.displayName = "Stories";
676
+ }, _e = $e(Zt);
677
+ _e.Preview = he;
678
+ _e.displayName = "Stories";
664
679
  export {
665
- xe as S,
666
- me as a,
667
- it as b,
668
- ct as c,
669
- xt as d,
670
- Dt as e,
671
- Bt as f,
672
- C as s
680
+ _e as S,
681
+ he as a,
682
+ lt as b,
683
+ gt as c,
684
+ vt as d,
685
+ Gt as e,
686
+ Lt as f,
687
+ _ as s
673
688
  };