"use client";
import { createSelector as l } from "../../../../reselect/dist/reselect.js";
import n from "../../../../../_virtual/sortBy.js";
var o = (e) => e.legend.settings, i = (e) => e.legend.size, d = (e) => e.legend.payload, c = l([d, o], (e, a) => {
  var {
    itemSorter: r
  } = a, t = e.flat(1);
  return r ? n(t, r) : t;
});
export {
  c as selectLegendPayload,
  o as selectLegendSettings,
  i as selectLegendSize
};
