"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.templateOpenInPage = exports.pushLocalVariables = exports.validate = exports.pushStep = exports.goStep = exports.nextStep = exports.preStep = exports.setSteps = exports.getSteps = exports.setCurStep = exports.selectComponent = exports.pushFile = exports.fetchFile = exports.pushLiveContent = exports.fetchLiveContent = exports.pushFormatData = exports.publishContent = exports.cloneContent = exports.saveContent = exports.pushPageNode = exports.updatePageNode = exports.updateContent = exports.pushContent = exports.fetchContent = exports.pushApp = exports.fetchApp = exports.updateEditState = exports.updatePublishing = exports.updateSaveLoading = exports.updateLoading = exports.clearByContentChange = exports.clearAll = exports.updateToolbarModalVisible = exports.updateToolbarEditorVisible = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.updateToolbarEditorVisible = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__UPDATE_TOOLBAR_EDITOR_VISIBLE', (open, type, data) => ({ open, type, data }))();
exports.updateToolbarModalVisible = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__UPDATE_TOOLBAR_MODAL_VISIBLE', (open, type, data) => ({ open, type, data }))();
exports.clearAll = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__CLEAR_ALL', () => ({}))();
exports.clearByContentChange = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__CLEAR_BY_CONTENT_CHANGE', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__UPDATE_SAVE_LOADING', (loading) => ({
    loading,
}))();
exports.updatePublishing = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__UPDATE_PUBLISH_LOADING', (loading) => ({
    loading,
}))();
exports.updateEditState = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__UPDATE_EDIT_STATUS', (state) => ({
    state,
}))();
exports.fetchApp = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__FETCH_APP', (id) => ({
    id,
}))();
exports.pushApp = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_APP', (data) => ({
    data,
}))();
exports.fetchContent = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__FETCH_CONTENT', (params) => (Object.assign({}, params)))();
exports.pushContent = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_CONTENT', (data) => ({
    data,
}))();
exports.updateContent = (0, typesafe_actions_1.createAction)('BUILDER_PAGE__UPDATE_CONTENT', (data) => ({
    data,
}))();
exports.updatePageNode = (0, typesafe_actions_1.createAction)('BUILDER_PAGE__UPDATE_PAGE_NODE', (data) => ({
    data,
}))();
exports.pushPageNode = (0, typesafe_actions_1.createAction)('BUILDER_PAGE__PUSH_PAGE_NODE', (data) => ({
    data,
}))();
exports.saveContent = (0, typesafe_actions_1.createAction)('BUILDER_PAGE__SAVE_PAGE', () => ({}))();
exports.cloneContent = (0, typesafe_actions_1.createAction)('BUILDER_PAGE__CLONE_PAGE', (contentId) => ({
    contentId,
}))();
exports.publishContent = (0, typesafe_actions_1.createAction)('BUILDER_PAGE__PUBLISH_PAGE', () => ({}))();
exports.pushFormatData = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_FORMAT_DATA', (data) => ({
    data,
}))();
exports.fetchLiveContent = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__FETCH_LIVE_CONTENT', (params) => ({
    params,
}))();
exports.pushLiveContent = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_LIVE_CONTENT', (data) => ({
    data,
}))();
exports.fetchFile = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__FETCH_FILE', (params) => (Object.assign({}, params)))();
exports.pushFile = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_FILE', (data) => ({
    data,
}))();
exports.selectComponent = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__SELECT_COMPONENT', (params) => ({
    params,
}))();
// steps
exports.setCurStep = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__SET_STEP', (step) => ({ step }))();
exports.getSteps = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__GET_STEPS', () => ({}))();
exports.setSteps = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__SET_STEPS', (step) => ({ step }))();
exports.preStep = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PRE_STEP', () => ({}))();
exports.nextStep = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__NEXT_STEP', () => ({}))();
exports.goStep = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__DO_STEP', (params) => ({ params }))();
exports.pushStep = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_STEP', (params) => ({ params }))();
// validator
exports.validate = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__VALIDATE', () => ({}))();
exports.pushLocalVariables = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__PUSH_LOCAL_VARIABLES', (variables) => ({ variables }))();
// TODO:
exports.templateOpenInPage = (0, typesafe_actions_1.createAction)('BUILDER_MAIN__TEMPLATE_OPEN_IN_PAGE', (status) => ({
    status,
}))();
