"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.pushCategories = exports.fetchCategories = exports.removeCategory = exports.saveCategory = exports.updateEditorVisible = exports.pushComponents = exports.fetchComponents = exports.updatePageNum = exports.updateSaveLoading = exports.updateLoading = exports.clearAll = void 0;
const typesafe_actions_1 = require("typesafe-actions");
exports.clearAll = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__CLEAR_ALL', () => ({}))();
exports.updateLoading = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__UPDATE_LOADING', (loading) => ({
    loading,
}))();
exports.updateSaveLoading = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__UPDATE__SAVE_LOADING', (loading) => ({
    loading,
}))();
exports.updatePageNum = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__UPDATE__NUM_LOADING', (num) => ({
    num,
}))();
exports.fetchComponents = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__FETCH_COMPONENTS', (params) => (Object.assign({}, params)))();
exports.pushComponents = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__PUSH_COMPONENTS', (data) => ({
    data,
}))();
exports.updateEditorVisible = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__UPDATE_EDITOR_VISIBLE', (status, data) => ({ status, data }))();
exports.saveCategory = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__SAVE_CATEGORY', (params) => ({
    params,
}))();
exports.removeCategory = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__REMOVE_CATEGORY', (applicationId, fileId) => ({
    applicationId,
    fileId,
}))();
exports.fetchCategories = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__FETCH_CATEGORY', (applicationId) => ({
    applicationId,
}))();
exports.pushCategories = (0, typesafe_actions_1.createAction)('APPLICATION_SETTINGS_BUILDER_COMPONENTS__PUSH_CATEGORY', (list) => ({
    list,
}))();
