"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLegendValuesSelector = exports.getLegendConfigSelector = void 0;
const get_settings_spec_1 = require("./get_settings_spec");
const position_style_1 = require("../../components/legend/position_style");
const create_selector_1 = require("../create_selector");
exports.getLegendConfigSelector = (0, create_selector_1.createCustomCachedSelector)([get_settings_spec_1.getSettingsSpecSelector], ({ flatLegend, legendAction, legendActionOnHover, legendColorPicker, legendMaxDepth, legendSize, legendLayout, legendPosition, legendStrategy, onLegendItemClick, customLegend, showLegend, onLegendItemMinusClick, onLegendItemOut, onLegendItemOver, onLegendItemPlusClick, legendValues, legendTitle, }) => {
    return {
        flatLegend,
        legendAction,
        legendActionOnHover,
        legendColorPicker,
        legendMaxDepth,
        legendSize,
        legendLayout,
        legendPosition: (0, position_style_1.getLegendPositionConfig)(legendPosition),
        legendStrategy,
        onLegendItemClick,
        customLegend,
        showLegend,
        onLegendItemMinusClick,
        onLegendItemOut,
        onLegendItemOver,
        onLegendItemPlusClick,
        legendValues,
        legendTitle,
    };
});
exports.getLegendValuesSelector = (0, create_selector_1.createCustomCachedSelector)([get_settings_spec_1.getSettingsSpecSelector], ({ legendValues }) => legendValues);
//# sourceMappingURL=get_legend_config_selector.js.map