import { GridSortableContext } from './GridSortableContext';
import { GridDraggableCardItem } from './GridDraggableCardItem';
import { DraggableCardOverlay } from './DraggableCardOverlay';
import { CollectionDragAndDropState } from '../DragAndDrop';
function setStateObject({ state, modalsContainerRef, }) {
    state.collectionDragAndDropState ??= new CollectionDragAndDropState({
        state,
        a11yContainer: modalsContainerRef,
        container: state.container,
    });
    state.toolbar._dnd = state.collectionDragAndDropState.dnd;
}
export const GridDragAndDrop = {
    SortableContext: GridSortableContext,
    DraggableCard: GridDraggableCardItem,
    DraggableCardOverlay,
    setStateObject,
};
//# sourceMappingURL=GridDragAndDrop.js.map