"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.conditionBind = exports.variableBind = exports.dropComponent = exports.copyComponent = exports.removeComponent = exports.afterUpdateComponent = exports.updateComponent = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateComponent = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__UPDATE_COMPONENT', (params) => ({
    params,
}))();
exports.afterUpdateComponent = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__AFTER_UPDATE_COMPONENT', (pageContent, formattedData) => ({
    pageContent,
    formattedData,
}))();
exports.removeComponent = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__REMOVE_COMPONENT', (params) => ({
    params,
}))();
exports.copyComponent = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__COPY_COMPONENT', (params) => ({
    params,
}))();
exports.dropComponent = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__DROP_COMPONENT', (params) => ({
    params,
}))();
exports.variableBind = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__VARIABLE_BIND', (keys, value) => ({
    keys,
    value,
}))();
exports.conditionBind = (0, typesafe_actions_1.createAction)('BUILDER_EVENT__CONDITION_BIND', (conditionIds) => ({
    conditionIds,
}))();
