"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.setTemplateCustomData = exports.setLegendVisibility = exports.setSelectionPanelVisibility = exports.setTaskPaneVisibility = exports.setElementStates = void 0;
/**
 * template.ts
 *
 * Actions to support fusion templates
 */
var actions_1 = require("../constants/actions");
function setElementStates(states) {
    return {
        type: actions_1.ActionType.FUSION_SET_ELEMENT_STATE,
        payload: states
    };
}
exports.setElementStates = setElementStates;
function setTaskPaneVisibility(visible) {
    return {
        type: actions_1.ActionType.FUSION_SET_TASK_PANE_VISIBILITY,
        payload: visible
    };
}
exports.setTaskPaneVisibility = setTaskPaneVisibility;
function setSelectionPanelVisibility(visible) {
    return {
        type: actions_1.ActionType.FUSION_SET_SELECTION_PANEL_VISIBILITY,
        payload: visible
    };
}
exports.setSelectionPanelVisibility = setSelectionPanelVisibility;
/*
export function setOverviewMapVisibility(visible: boolean): ReduxAction {
    return {
        type: ActionType.FUSION_SET_OVERVIEW_MAP_VISIBILITY,
        payload: visible
    };
}
*/
function setLegendVisibility(visible) {
    return {
        type: actions_1.ActionType.FUSION_SET_LEGEND_VISIBILITY,
        payload: visible
    };
}
exports.setLegendVisibility = setLegendVisibility;
/**
 *
 * @param name
 * @param value
 * @returns
 *
 * @since 0.14.8
 */
function setTemplateCustomData(name, value) {
    return {
        type: actions_1.ActionType.FUSION_SET_TEMPLATE_CUSTOM_DATA,
        payload: {
            name: name,
            value: value
        }
    };
}
exports.setTemplateCustomData = setTemplateCustomData;
//# sourceMappingURL=template.js.map