@daisforge/ui 1.12.1 → 1.13.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.
- package/chunks/AnalyticalWidget-29tSeB0C.cjs +43 -0
- package/chunks/AnalyticalWidget-DnHHyjnv.mjs +528 -0
- package/chunks/ApprovalCenter-BREfTiqK.mjs +176 -0
- package/chunks/ApprovalCenter-BRUYlLoC.cjs +1 -0
- package/chunks/BlockTitle-BNm60_dx.mjs +85 -0
- package/chunks/BlockTitle-CCvkcUe_.cjs +1 -0
- package/chunks/Container-CV4sT-bB.mjs +117 -0
- package/chunks/Container-D8Bcg69e.cjs +17 -0
- package/chunks/EmptyState-BD6Ic-OX.cjs +1 -0
- package/chunks/EmptyState-Bct6Wrxv.mjs +459 -0
- package/chunks/FiltersActions-49uNOjLq.cjs +1 -0
- package/chunks/FiltersActions-Be9uBM67.mjs +429 -0
- package/chunks/FormDatePickers-BefllAQ_.cjs +1 -0
- package/chunks/FormDatePickers-_soI8Uaa.mjs +503 -0
- package/chunks/FormSegmentGroup-C8kROjlQ.mjs +168 -0
- package/chunks/FormSegmentGroup-DIaBZRWv.cjs +1 -0
- package/chunks/FormTextArea-BBYV56iU.mjs +107 -0
- package/chunks/FormTextArea-C7KG9PXC.cjs +1 -0
- package/chunks/GridDND-BAHGzR5e.cjs +1 -0
- package/chunks/GridDND-rY1o5ItA.mjs +852 -0
- package/chunks/LeftPanel-CgexykUg.cjs +1 -0
- package/chunks/LeftPanel-bKmeEOHx.mjs +162 -0
- package/chunks/ListOfFilters-BQyYeGQG.cjs +1 -0
- package/chunks/ListOfFilters-DRrawM8s.mjs +260 -0
- package/chunks/MassActions-ByZr-Wjd.mjs +966 -0
- package/chunks/MassActions-CxF6wvlS.cjs +1 -0
- package/chunks/PageTitle-BLBN06Xe.mjs +123 -0
- package/chunks/PageTitle-j-pmmoZ9.cjs +1 -0
- package/chunks/SplitView-C8de8YKV.mjs +236 -0
- package/chunks/SplitView-OUGciQ51.cjs +12 -0
- package/chunks/Stories-CO4lXbo6.cjs +1 -0
- package/chunks/Stories-COpgkk_M.mjs +673 -0
- package/chunks/Table-JFzBB9zK.cjs +31 -0
- package/chunks/Table-XpsCe-vS.mjs +7757 -0
- package/chunks/TableCanvas-AwmzU0Jc.cjs +30 -0
- package/chunks/TableCanvas-BnwR-C1X.mjs +11870 -0
- package/chunks/TableGlide-BAH73oGi.cjs +1 -0
- package/chunks/{TableGlide-B61Yi-Hs.mjs → TableGlide-o9aqEk4d.mjs} +2263 -2342
- package/chunks/styles-Dd4uEa27.mjs +128 -0
- package/chunks/styles-kPI9R7DO.cjs +2 -0
- package/chunks/{utils-BNelzuI-.mjs → utils-C5SQhoON.mjs} +126 -151
- package/chunks/utils-DKi1rqLX.cjs +25 -0
- package/chunks/{vendor-D8Dozc4m.cjs → vendor-BauZZ2hr.mjs} +7 -33
- package/chunks/{vendor-BG4P-329.mjs → vendor-C47eH0xy.cjs} +2 -634
- package/components/AiAgentPopover/index.cjs +2 -2
- package/components/AiAgentPopover/index.mjs +248 -373
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/AnalyticalWidgetChipsGroup.styled.d.ts +7 -0
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetChips/index.mjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.cjs +1 -1
- package/components/AnalyticalWidget/components/AnalyticalWidgetHeader/index.mjs +1 -1
- package/components/AnalyticalWidget/index.cjs +1 -1
- package/components/AnalyticalWidget/index.mjs +1 -1
- package/components/ApprovalCenter/components/index.cjs +1 -1
- package/components/ApprovalCenter/components/index.mjs +1 -1
- package/components/ApprovalCenter/index.cjs +1 -1
- package/components/ApprovalCenter/index.mjs +1 -1
- package/components/Autocomplete/index.cjs +1 -1
- package/components/Autocomplete/index.mjs +22 -35
- package/components/AutocompleteSearch/index.cjs +1 -1
- package/components/AutocompleteSearch/index.mjs +33 -83
- package/components/BlockGradientScroll/index.cjs +1 -1
- package/components/BlockGradientScroll/index.mjs +41 -53
- package/components/BlockTitle/index.cjs +1 -1
- package/components/BlockTitle/index.mjs +1 -1
- package/components/BlockTitle/utils/index.cjs +1 -1
- package/components/BlockTitle/utils/index.mjs +1 -1
- package/components/Box/index.mjs +17 -7
- package/components/Collapse/index.cjs +1 -1
- package/components/Collapse/index.mjs +41 -62
- package/components/Combobox/index.cjs +1 -1
- package/components/Combobox/index.mjs +1 -1
- package/components/DatePicker/index.cjs +1 -1
- package/components/DatePicker/index.mjs +21 -59
- package/components/DrawerDF/index.cjs +1 -1
- package/components/DrawerDF/index.mjs +144 -391
- package/components/EmptyState/components/index.cjs +1 -1
- package/components/EmptyState/components/index.mjs +1 -1
- package/components/EmptyState/index.cjs +1 -1
- package/components/EmptyState/index.mjs +1 -1
- package/components/GridDND/index.cjs +1 -1
- package/components/GridDND/index.mjs +1 -1
- package/components/GridDND/utils/index.cjs +1 -1
- package/components/GridDND/utils/index.mjs +1 -1
- package/components/IconButton/index.cjs +1 -1
- package/components/IconButton/index.mjs +49 -112
- package/components/IconSvgSprite/index.cjs +1 -1
- package/components/IconSvgSprite/index.mjs +13 -49
- package/components/LeftPanel/components/index.cjs +1 -1
- package/components/LeftPanel/components/index.mjs +1 -1
- package/components/LeftPanel/hooks/index.cjs +1 -1
- package/components/LeftPanel/hooks/index.mjs +1 -1
- package/components/LeftPanel/index.cjs +1 -1
- package/components/LeftPanel/index.mjs +1 -1
- package/components/LeftPanel/utils/index.cjs +1 -1
- package/components/LeftPanel/utils/index.mjs +1 -1
- package/components/ListOfFilters/index.cjs +1 -1
- package/components/ListOfFilters/index.mjs +1 -1
- package/components/ListOfFilters/useSyncTabsScrollArrows.d.ts +3 -0
- package/components/MassActions/hooks/index.cjs +1 -1
- package/components/MassActions/hooks/index.mjs +1 -1
- package/components/MassActions/index.cjs +1 -1
- package/components/MassActions/index.mjs +1 -1
- package/components/MassActionsStatic/index.cjs +2 -2
- package/components/MassActionsStatic/index.mjs +13 -34
- package/components/ModalDF/index.cjs +1 -1
- package/components/ModalDF/index.mjs +169 -381
- package/components/ModalDFConfirmation/index.cjs +1 -1
- package/components/ModalDFConfirmation/index.mjs +66 -114
- package/components/Notification/index.cjs +1 -1
- package/components/Notification/index.mjs +16 -22
- package/components/NumberFormat/index.cjs +1 -1
- package/components/NumberFormat/index.mjs +24 -37
- package/components/NumberFormatAmount/index.cjs +1 -1
- package/components/NumberFormatAmount/index.mjs +12 -27
- package/components/PageTitle/index.cjs +1 -1
- package/components/PageTitle/index.mjs +1 -1
- package/components/PageTitle/utils/index.cjs +1 -1
- package/components/PageTitle/utils/index.mjs +1 -1
- package/components/PopoverDF/index.cjs +1 -1
- package/components/PopoverDF/index.mjs +125 -261
- package/components/PopupDF/index.cjs +1 -1
- package/components/PopupDF/index.mjs +141 -308
- package/components/SplitView/index.cjs +1 -1
- package/components/SplitView/index.mjs +1 -1
- package/components/SplitView/utils/index.cjs +1 -1
- package/components/SplitView/utils/index.mjs +1 -1
- package/components/Stories/Stories.types.d.ts +1 -0
- package/components/Stories/components/StoriesBanner/index.cjs +1 -1
- package/components/Stories/components/StoriesBanner/index.mjs +1 -1
- package/components/Stories/components/StoriesContent/index.cjs +1 -1
- package/components/Stories/components/StoriesContent/index.mjs +1 -1
- package/components/Stories/components/StoriesPreview/index.cjs +1 -1
- package/components/Stories/components/StoriesPreview/index.mjs +1 -1
- package/components/Stories/components/StoriesProgress/index.cjs +1 -1
- package/components/Stories/components/StoriesProgress/index.mjs +1 -1
- package/components/Stories/components/StoriesViewer/index.cjs +1 -1
- package/components/Stories/components/StoriesViewer/index.mjs +1 -1
- package/components/Stories/index.cjs +1 -1
- package/components/Stories/index.mjs +1 -1
- package/components/Stories/store/StoriesContext.d.ts +1 -0
- package/components/Table/components/TableDropdown/index.cjs +1 -1
- package/components/Table/components/TableDropdown/index.mjs +1 -1
- package/components/Table/feature-collapse-table/index.cjs +1 -1
- package/components/Table/feature-collapse-table/index.mjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/Table/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/Table/feature-column-control/index.cjs +1 -1
- package/components/Table/feature-column-control/index.mjs +1 -1
- package/components/Table/feature-columns-grouping/index.cjs +1 -1
- package/components/Table/feature-columns-grouping/index.mjs +1 -1
- package/components/Table/feature-context-menu/index.cjs +1 -1
- package/components/Table/feature-context-menu/index.mjs +1 -1
- package/components/Table/feature-edit/index.cjs +1 -1
- package/components/Table/feature-edit/index.mjs +1 -1
- package/components/Table/feature-filtering/combobox/index.cjs +1 -1
- package/components/Table/feature-filtering/combobox/index.mjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/Table/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/Table/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/Table/feature-filtering/index.cjs +1 -1
- package/components/Table/feature-filtering/index.mjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/Table/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/Table/feature-infinity-scroll/index.cjs +1 -1
- package/components/Table/feature-infinity-scroll/index.mjs +1 -1
- package/components/Table/feature-key-text/index.cjs +1 -1
- package/components/Table/feature-key-text/index.mjs +1 -1
- package/components/Table/feature-pagination/index.cjs +1 -1
- package/components/Table/feature-pagination/index.mjs +1 -1
- package/components/Table/feature-right-sidebar/index.cjs +1 -1
- package/components/Table/feature-right-sidebar/index.mjs +1 -1
- package/components/Table/feature-row-detail/index.cjs +1 -1
- package/components/Table/feature-row-detail/index.mjs +1 -1
- package/components/Table/feature-row-instruments/index.cjs +1 -1
- package/components/Table/feature-row-instruments/index.mjs +1 -1
- package/components/Table/feature-row-size/index.cjs +1 -1
- package/components/Table/feature-row-size/index.mjs +1 -1
- package/components/Table/feature-rows-grouping/index.cjs +1 -1
- package/components/Table/feature-rows-grouping/index.mjs +1 -1
- package/components/Table/feature-searching/index.cjs +1 -1
- package/components/Table/feature-searching/index.mjs +1 -1
- package/components/Table/feature-select-row/index.cjs +1 -1
- package/components/Table/feature-select-row/index.mjs +1 -1
- package/components/Table/feature-sorting/index.cjs +1 -1
- package/components/Table/feature-sorting/index.mjs +1 -1
- package/components/Table/feature-table-settings/index.cjs +1 -1
- package/components/Table/feature-table-settings/index.mjs +1 -1
- package/components/Table/feature-tree/index.cjs +1 -1
- package/components/Table/feature-tree/index.mjs +1 -1
- package/components/Table/index.cjs +1 -1
- package/components/Table/index.mjs +1 -1
- package/components/Table/renders/formatCell/index.cjs +1 -1
- package/components/Table/renders/formatCell/index.mjs +1 -1
- package/components/Table/styles/index.cjs +1 -1
- package/components/Table/styles/index.mjs +1 -1
- package/components/Table/table-hooks/index.cjs +1 -1
- package/components/Table/table-hooks/index.mjs +1 -1
- package/components/Table/types/index.cjs +1 -1
- package/components/Table/types/index.mjs +1 -1
- package/components/Table/utils/index.cjs +1 -1
- package/components/Table/utils/index.mjs +1 -1
- package/components/Table/widgets/control-block/index.cjs +1 -1
- package/components/Table/widgets/control-block/index.mjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.cjs +1 -1
- package/components/Table/widgets/control-block/right-side/index.mjs +1 -1
- package/components/Table/widgets/index.cjs +1 -1
- package/components/Table/widgets/index.mjs +1 -1
- package/components/Table/widgets/mass-actions/index.cjs +1 -1
- package/components/Table/widgets/mass-actions/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/adapters/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/index.mjs +2 -2
- package/components/TableCanvas/TableGlideInstance/type.d.ts +2 -0
- package/components/TableCanvas/TableGlideInstance/utils/column/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/column/index.mjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.cjs +1 -1
- package/components/TableCanvas/TableGlideInstance/utils/index.mjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.cjs +1 -1
- package/components/TableCanvas/components/SplitIconButton/index.mjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.cjs +1 -1
- package/components/TableCanvas/components/TableDropdown/index.mjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.cjs +1 -1
- package/components/TableCanvas/feature-cell-transfer/index.mjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.cjs +1 -1
- package/components/TableCanvas/feature-collapse-table/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/ColumnsList/index.mjs +1 -1
- package/components/TableCanvas/feature-column-control/index.cjs +1 -1
- package/components/TableCanvas/feature-column-control/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-columns-grouping/useLastLvlColumnConfig.d.ts +1 -0
- package/components/TableCanvas/feature-content-state/index.cjs +1 -1
- package/components/TableCanvas/feature-content-state/index.mjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.cjs +1 -1
- package/components/TableCanvas/feature-context-menu/index.mjs +1 -1
- package/components/TableCanvas/feature-edit/index.cjs +1 -1
- package/components/TableCanvas/feature-edit/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/combobox/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/filter-list-block/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/header-filter-button/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/index.mjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.cjs +1 -1
- package/components/TableCanvas/feature-filtering/sidebar-filter-block/index.mjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.cjs +1 -1
- package/components/TableCanvas/feature-infinity-scroll/index.mjs +1 -1
- package/components/TableCanvas/feature-key-text/index.cjs +1 -1
- package/components/TableCanvas/feature-key-text/index.mjs +1 -1
- package/components/TableCanvas/feature-notifications/index.cjs +1 -1
- package/components/TableCanvas/feature-notifications/index.mjs +1 -1
- package/components/TableCanvas/feature-pagination/index.cjs +1 -1
- package/components/TableCanvas/feature-pagination/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/context/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/hooks/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/index.mjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-popover-table/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.cjs +1 -1
- package/components/TableCanvas/feature-right-sidebar/index.mjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.cjs +1 -1
- package/components/TableCanvas/feature-row-detail/index.mjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.cjs +1 -1
- package/components/TableCanvas/feature-row-instruments/index.mjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.cjs +1 -1
- package/components/TableCanvas/feature-row-markers/index.mjs +1 -1
- package/components/TableCanvas/feature-row-size/index.cjs +1 -1
- package/components/TableCanvas/feature-row-size/index.mjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.cjs +1 -1
- package/components/TableCanvas/feature-rows-grouping/index.mjs +1 -1
- package/components/TableCanvas/feature-searching/index.cjs +1 -1
- package/components/TableCanvas/feature-searching/index.mjs +1 -1
- package/components/TableCanvas/feature-select-row/index.cjs +1 -1
- package/components/TableCanvas/feature-select-row/index.mjs +1 -1
- package/components/TableCanvas/feature-sorting/index.cjs +1 -1
- package/components/TableCanvas/feature-sorting/index.mjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.cjs +1 -1
- package/components/TableCanvas/feature-table-settings/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/index.mjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.cjs +1 -1
- package/components/TableCanvas/feature-tooltip/utils/index.mjs +1 -1
- package/components/TableCanvas/feature-tree/index.cjs +1 -1
- package/components/TableCanvas/feature-tree/index.mjs +1 -1
- package/components/TableCanvas/index.cjs +1 -1
- package/components/TableCanvas/index.mjs +2 -2
- package/components/TableCanvas/renders/formatCell/index.cjs +1 -1
- package/components/TableCanvas/renders/formatCell/index.mjs +1 -1
- package/components/TableCanvas/styles/index.cjs +1 -1
- package/components/TableCanvas/styles/index.mjs +1 -1
- package/components/TableCanvas/table-hooks/index.cjs +1 -1
- package/components/TableCanvas/table-hooks/index.mjs +1 -1
- package/components/TableCanvas/types/column-config.type.d.ts +3 -0
- package/components/TableCanvas/types/columns-grouping.type.d.ts +8 -0
- package/components/TableCanvas/types/index.cjs +1 -1
- package/components/TableCanvas/types/index.mjs +1 -1
- package/components/TableCanvas/types/table-config.type.d.ts +3 -0
- package/components/TableCanvas/utils/index.cjs +1 -1
- package/components/TableCanvas/utils/index.mjs +2 -2
- package/components/TableCanvas/widgets/control-block/compression/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/compression/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/index.mjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.cjs +1 -1
- package/components/TableCanvas/widgets/control-block/right-side/index.mjs +1 -1
- package/components/TableCanvas/widgets/index.cjs +1 -1
- package/components/TableCanvas/widgets/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/hooks/index.mjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.cjs +1 -1
- package/components/TableCanvas/widgets/mass-actions/index.mjs +1 -1
- package/components/TableContract/index.cjs +2 -2
- package/components/TableContract/index.mjs +540 -798
- package/components/TableGlide/TableGlide.d.ts +1 -1
- package/components/TableGlide/hooks/selection/index.cjs +1 -1
- package/components/TableGlide/hooks/selection/index.mjs +1 -1
- package/components/TableGlide/index.cjs +1 -1
- package/components/TableGlide/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/buttons/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/iconSprites/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/cells/renderer/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/helpers/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/core/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/hooks/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/miniflex/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/primitives/index.mjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.cjs +1 -1
- package/components/TableGlide/lib/canvas/utils/index.mjs +1 -1
- package/components/TableGlide/theming/index.cjs +1 -1
- package/components/TableGlide/theming/index.mjs +1 -1
- package/components/TableGlide/types.d.ts +3 -2
- package/components/TableTabs/index.cjs +1 -1
- package/components/TableTabs/index.mjs +136 -305
- package/components/TextArea/index.cjs +1 -1
- package/components/TextArea/index.mjs +26 -40
- package/components/TextField/index.cjs +1 -1
- package/components/TextField/index.mjs +38 -82
- package/components/Tooltip/index.cjs +1 -1
- package/components/Tooltip/index.mjs +1 -1
- package/components/TourWidget/index.cjs +15 -15
- package/components/TourWidget/index.mjs +176 -371
- package/components/Typography/index.cjs +1 -1
- package/components/Typography/index.mjs +1 -1
- package/components/Widget/index.cjs +1 -1
- package/components/Widget/index.mjs +151 -363
- package/formComponents/FormAutocomplete/index.cjs +1 -1
- package/formComponents/FormAutocomplete/index.mjs +63 -68
- package/formComponents/FormCheckbox/index.cjs +1 -1
- package/formComponents/FormCheckbox/index.mjs +27 -55
- package/formComponents/FormCombobox/index.cjs +1 -1
- package/formComponents/FormCombobox/index.mjs +61 -75
- package/formComponents/FormDatePickers/FormDatePicker/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePicker/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/index.mjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.cjs +1 -1
- package/formComponents/FormDatePickers/FormDatePickerRange/lib/utils/index.mjs +1 -1
- package/formComponents/FormDatePickers/index.cjs +1 -1
- package/formComponents/FormDatePickers/index.mjs +1 -1
- package/formComponents/FormMask/index.cjs +1 -1
- package/formComponents/FormMask/index.mjs +61 -66
- package/formComponents/FormNumberFormat/index.cjs +1 -1
- package/formComponents/FormNumberFormat/index.mjs +56 -68
- package/formComponents/FormRadioGroupBox/index.cjs +1 -1
- package/formComponents/FormRadioGroupBox/index.mjs +71 -144
- package/formComponents/FormSegments/index.cjs +1 -1
- package/formComponents/FormSegments/index.mjs +1 -1
- package/formComponents/FormSelect/index.cjs +1 -1
- package/formComponents/FormSelect/index.mjs +62 -76
- package/formComponents/FormSwitch/index.cjs +1 -1
- package/formComponents/FormSwitch/index.mjs +25 -53
- package/formComponents/FormTextArea/index.cjs +1 -1
- package/formComponents/FormTextArea/index.mjs +1 -1
- package/formComponents/FormTextArea/ui/index.cjs +1 -1
- package/formComponents/FormTextArea/ui/index.mjs +1 -1
- package/formComponents/FormTextField/index.cjs +1 -1
- package/formComponents/FormTextField/index.mjs +70 -101
- package/index.cjs +1 -1
- package/index.mjs +21 -21
- package/layouts/Container/index.cjs +1 -1
- package/layouts/Container/index.mjs +1 -1
- package/layouts/Container/lib/utils/index.cjs +1 -1
- package/layouts/Container/lib/utils/index.mjs +1 -1
- package/layouts/ErrorPage/index.cjs +1 -1
- package/layouts/ErrorPage/index.mjs +81 -146
- package/layouts/FiltersActions/hooks/index.cjs +1 -1
- package/layouts/FiltersActions/hooks/index.mjs +1 -1
- package/layouts/FiltersActions/index.cjs +1 -1
- package/layouts/FiltersActions/index.mjs +1 -1
- package/layouts/Layout/index.cjs +5 -5
- package/layouts/Layout/index.mjs +78 -115
- package/layouts/PageLayout/index.cjs +2 -2
- package/layouts/PageLayout/index.mjs +15 -32
- package/mixins/index.cjs +1 -1
- package/mixins/index.mjs +1 -1
- package/package.json +6 -6
- package/shared/ui/Search/index.cjs +1 -1
- package/shared/ui/Search/index.mjs +30 -52
- package/shared/utils/inputs/index.cjs +1 -1
- package/shared/utils/inputs/index.mjs +33 -48
- package/styles/index.cjs +1 -1
- package/styles/index.mjs +1 -1
- package/themes/index.cjs +1 -1
- package/themes/index.mjs +1 -1
- package/utils/breakpoint/index.cjs +1 -1
- package/utils/breakpoint/index.mjs +1 -1
- package/utils/clickStream/index.cjs +1 -1
- package/utils/clickStream/index.mjs +1 -1
- package/utils/eventBus/index.cjs +1 -1
- package/utils/eventBus/index.mjs +1 -1
- package/utils/hooks/index.cjs +1 -1
- package/utils/hooks/index.mjs +1 -1
- package/utils/index.cjs +1 -1
- package/utils/index.mjs +1 -1
- package/utils/styles/index.cjs +1 -1
- package/utils/styles/index.mjs +1 -1
- package/chunks/AnalyticalWidget-Ca_EuSTO.mjs +0 -868
- package/chunks/AnalyticalWidget-xgvWcsXx.cjs +0 -43
- package/chunks/ApprovalCenter-4aJlJfei.mjs +0 -531
- package/chunks/ApprovalCenter-Ij5NMkY-.cjs +0 -1
- package/chunks/BlockTitle-CgXVHok6.mjs +0 -180
- package/chunks/BlockTitle-SaP9H2PI.cjs +0 -1
- package/chunks/Container-ChuCs63G.cjs +0 -17
- package/chunks/Container-D8RdjkGo.mjs +0 -180
- package/chunks/EmptyState-BxUh2dhY.cjs +0 -1
- package/chunks/EmptyState-C0aHgxrn.mjs +0 -615
- package/chunks/FiltersActions-BekNxF-h.cjs +0 -1
- package/chunks/FiltersActions-CSucE-Ql.mjs +0 -637
- package/chunks/FormDatePickers-BCyW24Pr.cjs +0 -1
- package/chunks/FormDatePickers-DfdGdbwP.mjs +0 -538
- package/chunks/FormSegmentGroup-BKuHtPEn.cjs +0 -1
- package/chunks/FormSegmentGroup-DqFMVBr0.mjs +0 -268
- package/chunks/FormTextArea-CCrYx4pL.mjs +0 -159
- package/chunks/FormTextArea-sly1mY7h.cjs +0 -1
- package/chunks/GridDND-Bycwiynh.mjs +0 -1086
- package/chunks/GridDND-MsZt1fXJ.cjs +0 -1
- package/chunks/LeftPanel-C72uosX_.mjs +0 -303
- package/chunks/LeftPanel-Di-IqpZ_.cjs +0 -1
- package/chunks/ListOfFilters-B3bM1n4w.cjs +0 -1
- package/chunks/ListOfFilters-CPJGgMMc.mjs +0 -462
- package/chunks/MassActions-BbAXi3z9.cjs +0 -1
- package/chunks/MassActions-CZm8vqj8.mjs +0 -1352
- package/chunks/PageTitle-DEsijnDg.cjs +0 -1
- package/chunks/PageTitle-TusD1S2c.mjs +0 -282
- package/chunks/SplitView-BHdftJ9A.cjs +0 -12
- package/chunks/SplitView-Cd-xkxCe.mjs +0 -339
- package/chunks/Stories-CR_EUNO7.mjs +0 -1018
- package/chunks/Stories-CxsYx2OE.cjs +0 -1
- package/chunks/Table--05ONCr1.cjs +0 -31
- package/chunks/Table-l-P3NNUN.mjs +0 -11944
- package/chunks/TableCanvas-BYKPeWME.mjs +0 -16941
- package/chunks/TableCanvas-ZmjSKk64.cjs +0 -30
- package/chunks/TableGlide-CbvaAM_H.cjs +0 -1
- package/chunks/styles-D8FDGdVz.mjs +0 -240
- package/chunks/styles-OR0WE1xm.cjs +0 -2
- package/chunks/utils-C93a2mD7.cjs +0 -25
|
@@ -0,0 +1,673 @@
|
|
|
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-Bct6Wrxv.mjs";
|
|
7
|
+
import { n as Ve, x as Le, y as oe } from "./utils-C5SQhoON.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-DnHHyjnv.mjs";
|
|
11
|
+
const Ue = ({
|
|
12
|
+
controller: e,
|
|
13
|
+
pauseHoldDelay: t,
|
|
14
|
+
tapPrevZone: o,
|
|
15
|
+
isOpen: r
|
|
16
|
+
}) => {
|
|
17
|
+
const i = k(), g = k(!1), d = k("next"), c = () => {
|
|
18
|
+
i.current && (clearTimeout(i.current), i.current = void 0);
|
|
19
|
+
}, w = (p) => {
|
|
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(() => {
|
|
22
|
+
g.current = !0, e.pause();
|
|
23
|
+
}, t);
|
|
24
|
+
}, b = () => {
|
|
25
|
+
if (c(), g.current) {
|
|
26
|
+
g.current = !1, e.resume();
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
d.current === "prev" ? e.prev() : e.next();
|
|
30
|
+
}, a = () => {
|
|
31
|
+
c(), g.current && (g.current = !1, e.resume());
|
|
32
|
+
};
|
|
33
|
+
return A(() => {
|
|
34
|
+
if (!r)
|
|
35
|
+
return;
|
|
36
|
+
const p = (l) => {
|
|
37
|
+
l.key === "ArrowLeft" ? (l.preventDefault(), e.prev()) : l.key === "ArrowRight" ? (l.preventDefault(), e.next()) : l.key === "Escape" && (l.preventDefault(), e.close());
|
|
38
|
+
};
|
|
39
|
+
return window.addEventListener("keydown", p), () => window.removeEventListener("keydown", p);
|
|
40
|
+
}, [r, e]), {
|
|
41
|
+
onPointerDown: w,
|
|
42
|
+
onPointerUp: b,
|
|
43
|
+
onPointerLeave: a,
|
|
44
|
+
onPointerCancel: a
|
|
45
|
+
};
|
|
46
|
+
}, ye = Pe(null), Je = ye.Provider, q = () => {
|
|
47
|
+
const e = Ne(ye);
|
|
48
|
+
if (!e)
|
|
49
|
+
throw new Error("Компоненты Stories должны использоваться внутри <Stories>.");
|
|
50
|
+
return e;
|
|
51
|
+
}, U = (e) => ke(e.subscribe, e.getSnapshot, e.getSnapshot), C = {
|
|
52
|
+
root: "df-stories",
|
|
53
|
+
preview: "df-stories-preview",
|
|
54
|
+
previewRing: "df-stories-preview__ring",
|
|
55
|
+
previewGap: "df-stories-preview__gap",
|
|
56
|
+
previewBody: "df-stories-preview__body",
|
|
57
|
+
previewTitle: "df-stories-preview__title",
|
|
58
|
+
viewer: "df-stories-viewer",
|
|
59
|
+
overlay: "df-stories-viewer__overlay",
|
|
60
|
+
stage: "df-stories-viewer__stage",
|
|
61
|
+
banner: "df-stories-banner",
|
|
62
|
+
progress: "df-stories-progress",
|
|
63
|
+
progressItem: "df-stories-progress__item",
|
|
64
|
+
content: "df-stories-content",
|
|
65
|
+
action: "df-stories-banner__action",
|
|
66
|
+
arrowPrev: "df-stories-viewer__arrow-prev",
|
|
67
|
+
arrowNext: "df-stories-viewer__arrow-next",
|
|
68
|
+
close: "df-stories-viewer__close"
|
|
69
|
+
}, Qe = "linear-gradient(135deg, #08c6c9 0%, #99b0fe 100%)", et = "#ecf6fc", F = "df-stories-banner", K = {
|
|
70
|
+
/** Длительность показа сегмента по умолчанию, мс. */
|
|
71
|
+
duration: 5e3,
|
|
72
|
+
/** Порог удержания указателя, после которого включается пауза (мс). До него — тап-навигация. */
|
|
73
|
+
pauseHoldDelay: 200,
|
|
74
|
+
/** Доля ширины баннера слева, отвечающая за переход к предыдущему сегменту (⅓). */
|
|
75
|
+
tapPrevZone: 1 / 3,
|
|
76
|
+
/** Цвет оверлея (тот же, что у ModalDF). */
|
|
77
|
+
overlayColor: "#060a0c47",
|
|
78
|
+
/** z-index оверлея; баннер получает zIndex + 1. */
|
|
79
|
+
zIndex: 9e3
|
|
80
|
+
}, m = {
|
|
81
|
+
/** Диаметр круглого триггера, px. */
|
|
82
|
+
circle: 98,
|
|
83
|
+
/** Толщина каждого кольца (градиент / белый зазор), px. */
|
|
84
|
+
ring: 2,
|
|
85
|
+
/** Отступ от триггера до подписи, px. */
|
|
86
|
+
titleGap: 6,
|
|
87
|
+
/** Радиусы прямоугольного триггера: внешнее кольцо / белый зазор / тело. */
|
|
88
|
+
rectRadiusOuter: 12,
|
|
89
|
+
rectRadiusBody: 8,
|
|
90
|
+
/** Баннер. */
|
|
91
|
+
bannerMaxWidth: 430,
|
|
92
|
+
bannerMaxHeight: 900,
|
|
93
|
+
bannerRadius: 16,
|
|
94
|
+
bannerPadding: 28,
|
|
95
|
+
/** Внешний контейнер вьюера (баннер + просветы под стрелки). */
|
|
96
|
+
stageWidth: 558,
|
|
97
|
+
/** Прогресс-индикаторы. */
|
|
98
|
+
progressHeight: 4,
|
|
99
|
+
progressRadius: 2,
|
|
100
|
+
progressFillRadius: 6,
|
|
101
|
+
progressGap: 4
|
|
102
|
+
}, tt = "StoriesPreview", de = y.div.withConfig({
|
|
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({
|
|
105
|
+
displayName: "StoriesContentstyled__StyledImage"
|
|
106
|
+
})(["width:100%;height:100%;object-fit:", ";opacity:", ";transition:opacity 0.2s ease;user-select:none;"], ({
|
|
107
|
+
$objectFit: e
|
|
108
|
+
}) => e, ({
|
|
109
|
+
$loaded: e
|
|
110
|
+
}) => e ? 1 : 0), ot = y.div.withConfig({
|
|
111
|
+
displayName: "StoriesContentstyled__StyledSpinner"
|
|
112
|
+
})(["position:absolute;display:flex;align-items:center;justify-content:center;"]), rt = y.div.withConfig({
|
|
113
|
+
displayName: "StoriesContentstyled__StyledErrorSlot"
|
|
114
|
+
})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:", "px;"], m.bannerPadding), it = ({
|
|
115
|
+
slide: e,
|
|
116
|
+
status: t,
|
|
117
|
+
errorNode: o
|
|
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
|
|
123
|
+
] });
|
|
124
|
+
}, ce = (e, t) => {
|
|
125
|
+
e && (e.style.transform = `scaleX(${t})`);
|
|
126
|
+
}, st = ({
|
|
127
|
+
fillRef: e,
|
|
128
|
+
active: t,
|
|
129
|
+
duration: o,
|
|
130
|
+
isPlaying: r,
|
|
131
|
+
isReady: i,
|
|
132
|
+
resetKey: g,
|
|
133
|
+
onComplete: d
|
|
134
|
+
}) => {
|
|
135
|
+
const c = k(0), w = k(d);
|
|
136
|
+
w.current = d, A(() => {
|
|
137
|
+
c.current = 0, ce(e.current, 0);
|
|
138
|
+
}, [g, e]), A(() => {
|
|
139
|
+
if (!t || !r || !i || o <= 0)
|
|
140
|
+
return;
|
|
141
|
+
let b = 0, a = performance.now();
|
|
142
|
+
const p = (l) => {
|
|
143
|
+
c.current += l - a, a = l;
|
|
144
|
+
const I = Math.min(1, c.current / o);
|
|
145
|
+
if (ce(e.current, I), I >= 1) {
|
|
146
|
+
w.current();
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
b = requestAnimationFrame(p);
|
|
150
|
+
};
|
|
151
|
+
return b = requestAnimationFrame(p), () => cancelAnimationFrame(b);
|
|
152
|
+
}, [t, r, i, o, g, e]);
|
|
153
|
+
}, at = y.div.withConfig({
|
|
154
|
+
displayName: "StoriesProgressstyled__StyledProgress"
|
|
155
|
+
})(["display:flex;gap:", "px;width:100%;"], m.progressGap), lt = y.div.withConfig({
|
|
156
|
+
displayName: "StoriesProgressstyled__StyledItem"
|
|
157
|
+
})(["position:relative;flex:1 1 0;height:", "px;border-radius:", "px;overflow:hidden;background:", ";"], m.progressHeight, m.progressRadius, ({
|
|
158
|
+
$bg: e
|
|
159
|
+
}) => e), dt = y.span.withConfig({
|
|
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, ({
|
|
162
|
+
$color: e
|
|
163
|
+
}) => e), ct = ({
|
|
164
|
+
isReady: e
|
|
165
|
+
}) => {
|
|
166
|
+
var z;
|
|
167
|
+
const {
|
|
168
|
+
store: t,
|
|
169
|
+
controller: o,
|
|
170
|
+
groups: r,
|
|
171
|
+
defaultDuration: i,
|
|
172
|
+
mode: g
|
|
173
|
+
} = q(), {
|
|
174
|
+
groupIndex: d,
|
|
175
|
+
slideIndex: c,
|
|
176
|
+
isPlaying: w,
|
|
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({
|
|
180
|
+
fillRef: $,
|
|
181
|
+
active: b,
|
|
182
|
+
duration: O,
|
|
183
|
+
isPlaying: w,
|
|
184
|
+
isReady: e,
|
|
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);
|
|
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({
|
|
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, ({
|
|
194
|
+
$closing: e
|
|
195
|
+
}) => e ? ut : pt, ({
|
|
196
|
+
$closing: e
|
|
197
|
+
}) => e ? "0.2s" : "0.24s"), ft = y.div.withConfig({
|
|
198
|
+
displayName: "StoriesBannerstyled__StyledTapLayer"
|
|
199
|
+
})(["position:absolute;inset:0;z-index:1;touch-action:none;"]), yt = y.div.withConfig({
|
|
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({
|
|
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({
|
|
204
|
+
displayName: "StoriesBannerstyled__StyledActionSlot"
|
|
205
|
+
})(["pointer-events:auto;"]), xt = ({
|
|
206
|
+
closing: e,
|
|
207
|
+
onAnimationEnd: t
|
|
208
|
+
}) => {
|
|
209
|
+
const {
|
|
210
|
+
store: o,
|
|
211
|
+
controller: r,
|
|
212
|
+
groups: i,
|
|
213
|
+
pauseHoldDelay: g,
|
|
214
|
+
tapPrevZone: d,
|
|
215
|
+
loadingDelay: c,
|
|
216
|
+
onError: w,
|
|
217
|
+
renderError: b
|
|
218
|
+
} = q(), {
|
|
219
|
+
groupIndex: a,
|
|
220
|
+
slideIndex: p,
|
|
221
|
+
isOpen: l
|
|
222
|
+
} = U(o), I = i[a], S = I == null ? void 0 : I.slides[p], {
|
|
223
|
+
status: v,
|
|
224
|
+
reload: x
|
|
225
|
+
} = Le(S == null ? void 0 : S.src, c), $ = Ue({
|
|
226
|
+
controller: r,
|
|
227
|
+
pauseHoldDelay: g,
|
|
228
|
+
tapPrevZone: d,
|
|
229
|
+
isOpen: l
|
|
230
|
+
}), O = k();
|
|
231
|
+
A(() => {
|
|
232
|
+
if (v !== "error" || !S)
|
|
233
|
+
return;
|
|
234
|
+
const P = `${a}-${p}`;
|
|
235
|
+
O.current !== P && (O.current = P, w == null || w({
|
|
236
|
+
groupIndex: a,
|
|
237
|
+
slideIndex: p,
|
|
238
|
+
slide: S,
|
|
239
|
+
retry: x
|
|
240
|
+
}));
|
|
241
|
+
}, [v, a, p, S, w, x]);
|
|
242
|
+
const z = (P) => P.stopPropagation(), B = (P) => {
|
|
243
|
+
P.target === P.currentTarget && t();
|
|
244
|
+
};
|
|
245
|
+
if (!S)
|
|
246
|
+
return null;
|
|
247
|
+
const {
|
|
248
|
+
footer: R
|
|
249
|
+
} = S, E = b ? b({
|
|
250
|
+
groupIndex: a,
|
|
251
|
+
slideIndex: p,
|
|
252
|
+
slide: S,
|
|
253
|
+
retry: x
|
|
254
|
+
}) : /* @__PURE__ */ n(Ge, { size: "s", variant: "loading", title: "Не удалось загрузить", centered: !0, buttons: [{
|
|
255
|
+
type: "link",
|
|
256
|
+
props: {
|
|
257
|
+
text: "Обновить",
|
|
258
|
+
view: "accent",
|
|
259
|
+
onClick: x
|
|
260
|
+
}
|
|
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
|
|
267
|
+
] });
|
|
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({
|
|
276
|
+
displayName: "StoriesPreviewstyled__StyledPreview"
|
|
277
|
+
})(["display:flex;flex-direction:column;align-items:center;width:", "px;"], ({
|
|
278
|
+
$width: e
|
|
279
|
+
}) => e), wt = y.button.withConfig({
|
|
280
|
+
displayName: "StoriesPreviewstyled__StyledTrigger"
|
|
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
|
+
$width: e
|
|
283
|
+
}) => e, ({
|
|
284
|
+
$height: e
|
|
285
|
+
}) => e, ({
|
|
286
|
+
$shape: e
|
|
287
|
+
}) => ie(e, "outer"), Xe), vt = y.div.withConfig({
|
|
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, ({
|
|
290
|
+
$shape: e
|
|
291
|
+
}) => ie(e, "outer")), bt = y.div.withConfig({
|
|
292
|
+
displayName: "StoriesPreviewstyled__StyledBody"
|
|
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
|
+
$viewed: e
|
|
295
|
+
}) => e ? 0 : m.ring * 2, re.boxShadow, re.fallback, ({
|
|
296
|
+
$image: e
|
|
297
|
+
}) => e && fe(["background-image:url('", "');"], e), ({
|
|
298
|
+
$shape: e,
|
|
299
|
+
$viewed: t
|
|
300
|
+
}) => ie(e, t ? "outer" : "body")), It = y.div.withConfig({
|
|
301
|
+
displayName: "StoriesPreviewstyled__StyledTitle"
|
|
302
|
+
})(["margin-top:", "px;width:100%;text-align:", ";& > *{width:100%;}"], m.titleGap, ({
|
|
303
|
+
$align: e
|
|
304
|
+
}) => e), me = (e) => {
|
|
305
|
+
var G;
|
|
306
|
+
const {
|
|
307
|
+
slides: t,
|
|
308
|
+
shape: o = "circle",
|
|
309
|
+
title: r,
|
|
310
|
+
titleProps: i,
|
|
311
|
+
image: g,
|
|
312
|
+
viewed: d = !1,
|
|
313
|
+
size: c = m.circle,
|
|
314
|
+
width: w,
|
|
315
|
+
height: b,
|
|
316
|
+
renderTrigger: a,
|
|
317
|
+
className: p,
|
|
318
|
+
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
319
|
+
__index: l = 0
|
|
320
|
+
} = e, {
|
|
321
|
+
store: I,
|
|
322
|
+
controller: S,
|
|
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 = () => {
|
|
325
|
+
v && t[0] && oe(t[0].src);
|
|
326
|
+
}, E = () => a ? a({
|
|
327
|
+
index: l,
|
|
328
|
+
viewed: d,
|
|
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 })
|
|
333
|
+
] }), P = {
|
|
334
|
+
variant: "BodyXXS",
|
|
335
|
+
bold: !0,
|
|
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: {
|
|
345
|
+
maxWidth: O
|
|
346
|
+
}, $align: j, children: /* @__PURE__ */ n(qe, { ...P }) }) : null
|
|
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({
|
|
349
|
+
displayName: "StoriesViewerstyled__StyledRoot"
|
|
350
|
+
})(["position:fixed;inset:0;z-index:", ";display:flex;align-items:center;justify-content:center;"], ({
|
|
351
|
+
$zIndex: e
|
|
352
|
+
}) => e), Pt = y.div.withConfig({
|
|
353
|
+
displayName: "StoriesViewerstyled__StyledOverlay"
|
|
354
|
+
})(["position:absolute;inset:0;background:", ";opacity:", ";transition:opacity 0.24s ease;"], ({
|
|
355
|
+
$color: e
|
|
356
|
+
}) => e, ({
|
|
357
|
+
$closing: e
|
|
358
|
+
}) => e ? 0 : 1), kt = y.div.withConfig({
|
|
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({
|
|
361
|
+
displayName: "StoriesViewerstyled__StyledArrow"
|
|
362
|
+
})(["position:absolute;top:50%;", " z-index:3;transform:translateY(-50%);", ""], ({
|
|
363
|
+
$side: e
|
|
364
|
+
}) => e === "prev" ? "left: 0;" : "right: 0;", ({
|
|
365
|
+
$closing: e
|
|
366
|
+
}) => Se(e)), Tt = y.div.withConfig({
|
|
367
|
+
displayName: "StoriesViewerstyled__StyledClose"
|
|
368
|
+
})(["position:absolute;top:0;right:0;z-index:3;", ""], ({
|
|
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;
|
|
372
|
+
const {
|
|
373
|
+
store: e,
|
|
374
|
+
controller: t,
|
|
375
|
+
groups: o,
|
|
376
|
+
overlay: r,
|
|
377
|
+
overlayColor: i,
|
|
378
|
+
zIndex: g,
|
|
379
|
+
groupTransition: d,
|
|
380
|
+
arrows: c,
|
|
381
|
+
hideDisabledArrows: w,
|
|
382
|
+
preloadGroup: b
|
|
383
|
+
} = q(), {
|
|
384
|
+
isOpen: a,
|
|
385
|
+
groupIndex: p,
|
|
386
|
+
slideIndex: l
|
|
387
|
+
} = U(e), [I, S] = ue(a), v = k(null);
|
|
388
|
+
A(() => {
|
|
389
|
+
a && S(!0);
|
|
390
|
+
}, [a]), A(() => {
|
|
391
|
+
var D;
|
|
392
|
+
a && ((D = v.current) == null || D.focus());
|
|
393
|
+
}, [a]), A(() => {
|
|
394
|
+
a && b(p);
|
|
395
|
+
}, [a, p, b]);
|
|
396
|
+
const x = I && !a, $ = ge(() => {
|
|
397
|
+
x && S(!1);
|
|
398
|
+
}, [x]);
|
|
399
|
+
if (!I || typeof document > "u")
|
|
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" }) }) })
|
|
409
|
+
] })
|
|
410
|
+
] });
|
|
411
|
+
return $e(Q, document.body);
|
|
412
|
+
}, $t = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
413
|
+
__proto__: null,
|
|
414
|
+
StoriesViewer: Dt
|
|
415
|
+
}, Symbol.toStringTag, { value: "Module" })), Bt = Te(() => Promise.resolve().then(() => $t).then((e) => ({
|
|
416
|
+
default: e.StoriesViewer
|
|
417
|
+
}))), Gt = (e) => {
|
|
418
|
+
const t = k(e);
|
|
419
|
+
return t.current = e, ge((o) => {
|
|
420
|
+
const r = t.current[o];
|
|
421
|
+
if (!r)
|
|
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);
|
|
426
|
+
}, []);
|
|
427
|
+
}, Vt = {
|
|
428
|
+
isOpen: !1,
|
|
429
|
+
groupIndex: 0,
|
|
430
|
+
slideIndex: 0,
|
|
431
|
+
isPlaying: !0,
|
|
432
|
+
direction: "next"
|
|
433
|
+
}, Lt = (e) => {
|
|
434
|
+
let t = {
|
|
435
|
+
...Vt,
|
|
436
|
+
...e
|
|
437
|
+
};
|
|
438
|
+
const o = /* @__PURE__ */ new Set();
|
|
439
|
+
return {
|
|
440
|
+
getSnapshot: () => t,
|
|
441
|
+
subscribe: (r) => (o.add(r), () => {
|
|
442
|
+
o.delete(r);
|
|
443
|
+
}),
|
|
444
|
+
setState: (r) => {
|
|
445
|
+
Object.keys(r).some((d) => t[d] !== r[d]) && (t = {
|
|
446
|
+
...t,
|
|
447
|
+
...r
|
|
448
|
+
}, o.forEach((d) => d()));
|
|
449
|
+
}
|
|
450
|
+
};
|
|
451
|
+
}, jt = () => typeof document < "u" && typeof document.startViewTransition == "function", Ft = (e, t) => {
|
|
452
|
+
const {
|
|
453
|
+
direction: o = "next",
|
|
454
|
+
enabled: r = !0
|
|
455
|
+
} = t ?? {};
|
|
456
|
+
if (!r || !jt()) {
|
|
457
|
+
e();
|
|
458
|
+
return;
|
|
459
|
+
}
|
|
460
|
+
const i = document;
|
|
461
|
+
i.documentElement.dataset.dfStoriesDir = o, i.startViewTransition(() => Be(e)).finished.finally(() => {
|
|
462
|
+
delete i.documentElement.dataset.dfStoriesDir;
|
|
463
|
+
});
|
|
464
|
+
}, Ht = y.div.withConfig({
|
|
465
|
+
displayName: "Storiesstyled__StyledStories"
|
|
466
|
+
})(["display:flex;align-items:flex-start;gap:16px;"]), Mt = (e) => ze(e) && e.type === me, Wt = () => {
|
|
467
|
+
const {
|
|
468
|
+
store: e
|
|
469
|
+
} = q(), {
|
|
470
|
+
isOpen: t
|
|
471
|
+
} = U(e), [o, r] = ue(t);
|
|
472
|
+
return A(() => {
|
|
473
|
+
t && r(!0);
|
|
474
|
+
}, [t]), o ? /* @__PURE__ */ n(De, { fallback: null, children: /* @__PURE__ */ n(Bt, {}) }) : null;
|
|
475
|
+
}, Xt = (e, t) => {
|
|
476
|
+
const {
|
|
477
|
+
children: o,
|
|
478
|
+
defaultDuration: r = K.duration,
|
|
479
|
+
open: i,
|
|
480
|
+
defaultOpen: g,
|
|
481
|
+
activeGroupIndex: d,
|
|
482
|
+
activeSlideIndex: c,
|
|
483
|
+
onOpenChange: w,
|
|
484
|
+
onGroupChange: b,
|
|
485
|
+
onSlideChange: a,
|
|
486
|
+
onComplete: p,
|
|
487
|
+
onGroupComplete: l,
|
|
488
|
+
onClose: I,
|
|
489
|
+
onError: S,
|
|
490
|
+
renderError: v,
|
|
491
|
+
overlay: x = !0,
|
|
492
|
+
overlayColor: $ = K.overlayColor,
|
|
493
|
+
zIndex: O = K.zIndex,
|
|
494
|
+
preloadOnHover: z = !0,
|
|
495
|
+
loadingDelay: B = 0,
|
|
496
|
+
pauseHoldDelay: R = K.pauseHoldDelay,
|
|
497
|
+
groupTransition: E = "slide",
|
|
498
|
+
arrows: P = "auto",
|
|
499
|
+
hideDisabledArrows: j = !0,
|
|
500
|
+
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({
|
|
507
|
+
isOpen: g ?? !1
|
|
508
|
+
}));
|
|
509
|
+
const u = W.current, J = k(D);
|
|
510
|
+
J.current = D;
|
|
511
|
+
const se = k({
|
|
512
|
+
groupTransition: E
|
|
513
|
+
});
|
|
514
|
+
se.current = {
|
|
515
|
+
groupTransition: E
|
|
516
|
+
};
|
|
517
|
+
const X = k({
|
|
518
|
+
onOpenChange: w,
|
|
519
|
+
onGroupChange: b,
|
|
520
|
+
onSlideChange: a,
|
|
521
|
+
onComplete: p,
|
|
522
|
+
onGroupComplete: l,
|
|
523
|
+
onClose: I
|
|
524
|
+
});
|
|
525
|
+
X.current = {
|
|
526
|
+
onOpenChange: w,
|
|
527
|
+
onGroupChange: b,
|
|
528
|
+
onSlideChange: a,
|
|
529
|
+
onComplete: p,
|
|
530
|
+
onGroupComplete: l,
|
|
531
|
+
onClose: I
|
|
532
|
+
};
|
|
533
|
+
const ee = k();
|
|
534
|
+
if (!ee.current) {
|
|
535
|
+
const _ = (s, N) => u.setState({
|
|
536
|
+
slideIndex: s,
|
|
537
|
+
direction: N,
|
|
538
|
+
isPlaying: !0
|
|
539
|
+
}), f = (s, N, T) => Ft(() => u.setState({
|
|
540
|
+
groupIndex: s,
|
|
541
|
+
slideIndex: N,
|
|
542
|
+
direction: T,
|
|
543
|
+
isPlaying: !0
|
|
544
|
+
}), {
|
|
545
|
+
direction: T,
|
|
546
|
+
enabled: se.current.groupTransition !== "none"
|
|
547
|
+
}), h = () => {
|
|
548
|
+
var s, N;
|
|
549
|
+
(N = (s = X.current).onComplete) == null || N.call(s), u.setState({
|
|
550
|
+
isOpen: !1,
|
|
551
|
+
isPlaying: !1
|
|
552
|
+
});
|
|
553
|
+
};
|
|
554
|
+
ee.current = {
|
|
555
|
+
open: (s, N) => {
|
|
556
|
+
const T = u.getSnapshot();
|
|
557
|
+
u.setState({
|
|
558
|
+
isOpen: !0,
|
|
559
|
+
groupIndex: s ?? T.groupIndex,
|
|
560
|
+
slideIndex: N ?? 0,
|
|
561
|
+
isPlaying: !0,
|
|
562
|
+
direction: "next"
|
|
563
|
+
});
|
|
564
|
+
},
|
|
565
|
+
close: () => u.setState({
|
|
566
|
+
isOpen: !1,
|
|
567
|
+
isPlaying: !1
|
|
568
|
+
}),
|
|
569
|
+
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());
|
|
573
|
+
},
|
|
574
|
+
prev: () => {
|
|
575
|
+
const s = u.getSnapshot();
|
|
576
|
+
s.slideIndex > 0 ? _(s.slideIndex - 1, "prev") : s.groupIndex > 0 && f(s.groupIndex - 1, 0, "prev");
|
|
577
|
+
},
|
|
578
|
+
nextGroup: () => {
|
|
579
|
+
const s = u.getSnapshot();
|
|
580
|
+
s.groupIndex + 1 < J.current.length && f(s.groupIndex + 1, 0, "next");
|
|
581
|
+
},
|
|
582
|
+
prevGroup: () => {
|
|
583
|
+
const s = u.getSnapshot();
|
|
584
|
+
s.groupIndex > 0 && f(s.groupIndex - 1, 0, "prev");
|
|
585
|
+
},
|
|
586
|
+
goTo: (s, N) => {
|
|
587
|
+
const T = u.getSnapshot(), V = s < T.groupIndex ? "prev" : "next";
|
|
588
|
+
s === T.groupIndex ? _(N ?? 0, V) : f(s, N ?? 0, V);
|
|
589
|
+
},
|
|
590
|
+
pause: () => u.setState({
|
|
591
|
+
isPlaying: !1
|
|
592
|
+
}),
|
|
593
|
+
resume: () => u.setState({
|
|
594
|
+
isPlaying: !0
|
|
595
|
+
})
|
|
596
|
+
};
|
|
597
|
+
}
|
|
598
|
+
const te = ee.current, he = Gt(D), ae = k(u.getSnapshot());
|
|
599
|
+
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);
|
|
608
|
+
return;
|
|
609
|
+
}
|
|
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)));
|
|
611
|
+
}), [u]), A(() => {
|
|
612
|
+
i !== void 0 && u.setState({
|
|
613
|
+
isOpen: i
|
|
614
|
+
});
|
|
615
|
+
}, [i, u]), A(() => {
|
|
616
|
+
d !== void 0 && u.setState({
|
|
617
|
+
groupIndex: d
|
|
618
|
+
});
|
|
619
|
+
}, [d, u]), A(() => {
|
|
620
|
+
c !== void 0 && u.setState({
|
|
621
|
+
slideIndex: c
|
|
622
|
+
});
|
|
623
|
+
}, [c, u]), Ee(t, () => ({
|
|
624
|
+
...te,
|
|
625
|
+
getState: () => {
|
|
626
|
+
const _ = u.getSnapshot();
|
|
627
|
+
return {
|
|
628
|
+
isOpen: _.isOpen,
|
|
629
|
+
groupIndex: _.groupIndex,
|
|
630
|
+
slideIndex: _.slideIndex,
|
|
631
|
+
isPlaying: _.isPlaying
|
|
632
|
+
};
|
|
633
|
+
}
|
|
634
|
+
}), [te, u]);
|
|
635
|
+
const we = {
|
|
636
|
+
store: u,
|
|
637
|
+
controller: te,
|
|
638
|
+
groups: D,
|
|
639
|
+
defaultDuration: r,
|
|
640
|
+
pauseHoldDelay: R,
|
|
641
|
+
tapPrevZone: K.tapPrevZone,
|
|
642
|
+
preloadGroup: he,
|
|
643
|
+
preloadOnHover: z,
|
|
644
|
+
loadingDelay: B,
|
|
645
|
+
overlay: x,
|
|
646
|
+
overlayColor: $,
|
|
647
|
+
zIndex: O,
|
|
648
|
+
groupTransition: E,
|
|
649
|
+
arrows: P,
|
|
650
|
+
hideDisabledArrows: j,
|
|
651
|
+
mode: G,
|
|
652
|
+
onError: S,
|
|
653
|
+
renderError: v
|
|
654
|
+
};
|
|
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, {})
|
|
660
|
+
] });
|
|
661
|
+
}, xe = Oe(Xt);
|
|
662
|
+
xe.Preview = me;
|
|
663
|
+
xe.displayName = "Stories";
|
|
664
|
+
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
|
|
673
|
+
};
|