"use client";
import { createSelector as i } from "../../../../reselect/dist/reselect.js";
import { selectChartOffsetInternal as l } from "./selectChartOffsetInternal.js";
import { selectMargin as m } from "./containerSelectors.js";
import { isNumber as r } from "../../util/DataUtils.js";
var h = (e) => e.brush, v = i([h, l, m], (e, o, t) => ({
  height: e.height,
  x: r(e.x) ? e.x : o.left,
  y: r(e.y) ? e.y : o.top + o.height + o.brushBottom - (t?.bottom || 0),
  width: r(e.width) ? e.width : o.width
}));
export {
  v as selectBrushDimensions,
  h as selectBrushSettings
};
