/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import "@arcgis/toolkit/intl";
import "lodash-es";
import "luxon";
import "d3-array";
import "@arcgis/toolkit/type";
import "./series-types.js";
import { aP as x, aN as a, bI as l } from "./index.js";
import "@arcgis/core/Graphic.js";
import "@arcgis/core/renderers/support/jsonUtils.js";
import "@arcgis/core/symbols/support/symbolUtils.js";
import "@esri/arcgis-html-sanitizer";
import "@arcgis/core/intl.js";
import "@arcgis/core/layers/support/FeatureFilter.js";
import "@arcgis/core/smartMapping/statistics/histogram.js";
import "@arcgis/core/smartMapping/statistics/summaryStatistics.js";
import "simple-statistics";
import "@arcgis/core/request.js";
import "@arcgis/core/core/sql.js";
import "@arcgis/core/AttributeBinsGraphic.js";
import "@arcgis/core/geometry/support/jsonUtils.js";
import "@arcgis/core/rest/support/AttributeBinsQuery.js";
import "@arcgis/core/rest/support/StatisticDefinition.js";
import "@arcgis/core/time/TimeExtent.js";
import "@arcgis/core/core/promiseUtils.js";
import "./runtime.js";
import "@arcgis/toolkit/dom";
const w = (i, e) => e.axes?.[i]?.labels?.visible ?? !0, z = (i, e, s) => {
  const t = s.axes?.[e];
  t?.labels !== void 0 ? t.labels.visible = i : t !== void 0 && t?.labels === void 0 && (t.labels = x({
    text: "",
    visible: i,
    font: a(l.AxisLabels),
    type: l.AxisLabels
  }));
}, n = (i, e) => e.axes?.[i]?.title?.content.text ?? "", B = (i, e, s) => {
  const t = s.axes?.[e];
  t?.title !== void 0 ? t.title.content.text = i : t !== void 0 && t?.title === void 0 && (t.title = x({
    text: i,
    visible: !0,
    font: a(l.AxisTitle)
  }));
}, G = (i, e) => e.axes?.[i]?.title?.visible ?? !1, H = (i, e, s) => {
  const t = s.axes?.[e];
  t?.title !== void 0 ? t.title.visible = i : t !== void 0 && t?.title === void 0 && (t.title = x({
    text: n(e, s),
    visible: i,
    font: a(l.AxisTitle)
  }));
}, J = (i, e) => i.axes?.[e]?.title?.content, K = (i) => {
  const { config: e, axisIndex: s, symbol: t } = i, o = e.axes?.[s];
  if (o !== void 0) {
    const r = o.title?.content.text;
    (o.title === void 0 || t === void 0) && (o.title = x({
      text: "",
      visible: !0,
      font: a(l.AxisTitle),
      type: l.AxisTitle
    })), t !== void 0 && (o.title.content = t), o.title.content.text = r;
  }
};
export {
  J as a,
  B as b,
  G as c,
  H as d,
  w as e,
  z as f,
  n as g,
  K as s
};
