"use strict";

exports.__esModule = true;
exports.GridDragAndDrop = void 0;
var _GridSortableContext = require("./GridSortableContext");
var _GridDraggableCardItem = require("./GridDraggableCardItem");
var _DraggableCardOverlay = require("./DraggableCardOverlay");
var _DragAndDrop = require("../DragAndDrop");
function setStateObject({
  state,
  modalsContainerRef
}) {
  state.collectionDragAndDropState ?? (state.collectionDragAndDropState = new _DragAndDrop.CollectionDragAndDropState({
    state,
    a11yContainer: modalsContainerRef,
    container: state.container
  }));
  state.toolbar._dnd = state.collectionDragAndDropState.dnd;
}
const GridDragAndDrop = exports.GridDragAndDrop = {
  SortableContext: _GridSortableContext.GridSortableContext,
  DraggableCard: _GridDraggableCardItem.GridDraggableCardItem,
  DraggableCardOverlay: _DraggableCardOverlay.DraggableCardOverlay,
  setStateObject
};
//# sourceMappingURL=GridDragAndDrop.js.map