"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeReorderSubComponentAction = exports.makeMoveSubComponentRootAction = exports.wrapMoveSubComponentRootAction = exports.REORDER_SUB_COMPONENT = exports.MOVE_SUB_COMPONENT_ROOT = void 0;
exports.MOVE_SUB_COMPONENT_ROOT = 'moveSubComponentRoot';
exports.REORDER_SUB_COMPONENT = 'reorderSubComponent';
const wrapMoveSubComponentRootAction = (data) => {
    return {
        type: exports.MOVE_SUB_COMPONENT_ROOT,
        data,
    };
};
exports.wrapMoveSubComponentRootAction = wrapMoveSubComponentRootAction;
const makeMoveSubComponentRootAction = (parentId, prevParentIdMap, children, index, slotMap, prevSlotMap) => {
    return (0, exports.wrapMoveSubComponentRootAction)({
        parentId,
        prevParentIdMap,
        children,
        index,
        slotMap,
        prevSlotMap,
    });
};
exports.makeMoveSubComponentRootAction = makeMoveSubComponentRootAction;
const makeReorderSubComponentAction = (parentId, childId, from, to) => {
    return {
        type: exports.REORDER_SUB_COMPONENT,
        data: {
            parentId,
            childId,
            from,
            to,
        },
    };
};
exports.makeReorderSubComponentAction = makeReorderSubComponentAction;
//# sourceMappingURL=C.js.map