"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLegendItemsLabelsSelector = void 0;
const compute_legend_1 = require("./compute_legend");
const create_selector_1 = require("../../../../state/create_selector");
const get_settings_spec_1 = require("../../../../state/selectors/get_settings_spec");
exports.getLegendItemsLabelsSelector = (0, create_selector_1.createCustomCachedSelector)([compute_legend_1.computeLegendSelector, get_settings_spec_1.getSettingsSpecSelector], (legendItems, { legendValues }) => legendItems.map(({ label, values }) => {
    return {
        label: `${label}${legendValues.length > 0 ? values[0]?.label ?? '' : ''}`,
        depth: 0,
    };
}));
//# sourceMappingURL=get_legend_items_labels.js.map