"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var re_reselect_1 = __importDefault(require("re-reselect"));
var get_chart_id_1 = require("../../../../state/selectors/get_chart_id");
var get_settings_specs_1 = require("../../../../state/selectors/get_settings_specs");
var utils_1 = require("../utils/utils");
var get_specs_1 = require("./get_specs");
var merge_y_custom_domains_1 = require("./merge_y_custom_domains");
var getDeselectedSeriesSelector = function (state) { return state.interactions.deselectedDataSeries; };
exports.computeSeriesDomainsSelector = re_reselect_1.default([get_specs_1.getSeriesSpecsSelector, merge_y_custom_domains_1.mergeYCustomDomainsByGroupIdSelector, getDeselectedSeriesSelector, get_settings_specs_1.getSettingsSpecSelector], function (seriesSpecs, customYDomainsByGroupId, deselectedDataSeries, settingsSpec) {
    var domains = utils_1.computeSeriesDomains(seriesSpecs, customYDomainsByGroupId, deselectedDataSeries, settingsSpec.xDomain, settingsSpec.orderOrdinalBinsBy, settingsSpec.enableVislibSeriesSort);
    return domains;
})(get_chart_id_1.getChartIdSelector);
//# sourceMappingURL=compute_series_domains.js.map