@devtable/dashboard 14.11.1 → 14.11.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -81,7 +81,7 @@ import { DatesProvider as ep, DatePicker as tp } from "@mantine/dates";
81
81
  import Ot, { loader as Zr } from "@monaco-editor/react";
82
82
  import { Mark as Ol, Extension as np } from "@tiptap/core";
83
83
  import * as rp from "d3-scale";
84
- import { useForm as ge, Controller as g, useFieldArray as Ir, useWatch as ap } from "react-hook-form";
84
+ import { useForm as ge, Controller as f, useFieldArray as Ir, useWatch as ap } from "react-hook-form";
85
85
  import { observer as D } from "mobx-react-lite";
86
86
  import { move as ql } from "@dnd-kit/helpers";
87
87
  import { DragDropProvider as Ea } from "@dnd-kit/react";
@@ -2442,7 +2442,7 @@ function im() {
2442
2442
  } = $.useContext(Xl);
2443
2443
  return e ? document.getElementById(e) : null;
2444
2444
  }
2445
- const Jl = "14.11.1", om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2445
+ const Jl = "14.11.2", om = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2446
2446
  __proto__: null,
2447
2447
  version: Jl
2448
2448
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3215,8 +3215,8 @@ const xe = (e) => (t, n) => {
3215
3215
  x();
3216
3216
  const {
3217
3217
  panel: p
3218
- } = Le(), f = $.useMemo(() => p.variableOptions(a, s), [a, s]);
3219
- return f.length === 0 ? /* @__PURE__ */ r(V, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(O, { ref: t, label: n, description: o, renderOption: Rm(d), data: f, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
3218
+ } = Le(), g = $.useMemo(() => p.variableOptions(a, s), [a, s]);
3219
+ return g.length === 0 ? /* @__PURE__ */ r(V, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(O, { ref: t, label: n, description: o, renderOption: Rm(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
3220
3220
  withinPortal: !0,
3221
3221
  zIndex: h
3222
3222
  }, onChange: xe(i) });
@@ -3251,19 +3251,19 @@ const xe = (e) => (t, n) => {
3251
3251
  }] = De(), [l, s] = G(e), c = () => {
3252
3252
  o();
3253
3253
  const {
3254
- type: f,
3254
+ type: g,
3255
3255
  value: y
3256
3256
  } = l, b = {
3257
- type: f,
3257
+ type: g,
3258
3258
  value: y
3259
3259
  };
3260
3260
  s(b), t(b);
3261
3261
  }, d = () => {
3262
3262
  o(), s(e);
3263
- }, h = (f) => {
3263
+ }, h = (g) => {
3264
3264
  s((y) => ({
3265
3265
  ...y,
3266
- value: f
3266
+ value: g
3267
3267
  }));
3268
3268
  }, p = () => {
3269
3269
  h(fs.dynamic.value);
@@ -3431,14 +3431,14 @@ function Rr(e, t) {
3431
3431
  if (e.type === "continuous") {
3432
3432
  const {
3433
3433
  skipRange: p,
3434
- text: f,
3434
+ text: g,
3435
3435
  ...y
3436
3436
  } = e;
3437
3437
  return {
3438
3438
  ...y,
3439
3439
  min: i,
3440
3440
  max: o,
3441
- text: [...f]
3441
+ text: [...g]
3442
3442
  };
3443
3443
  }
3444
3444
  const {
@@ -3450,12 +3450,12 @@ function Rr(e, t) {
3450
3450
  ...d
3451
3451
  };
3452
3452
  return delete h.min, delete h.max, l === "pieces" ? h.pieces = s.map((p) => {
3453
- const f = {};
3454
- p.label && (f.label = p.label), p.color && (f.color = p.color);
3453
+ const g = {};
3454
+ p.label && (g.label = p.label), p.color && (g.color = p.color);
3455
3455
  const y = Number(p.lower.value);
3456
- p.lower.value === "" ? f[p.lower.symbol] = i : Number.isFinite(y) && (f[p.lower.symbol] = y);
3456
+ p.lower.value === "" ? g[p.lower.symbol] = i : Number.isFinite(y) && (g[p.lower.symbol] = y);
3457
3457
  const b = Number(p.upper.value);
3458
- return p.upper.value === "" ? f[p.upper.symbol] = o : Number.isFinite(b) && (f[p.upper.symbol] = b), f;
3458
+ return p.upper.value === "" ? g[p.upper.symbol] = o : Number.isFinite(b) && (g[p.upper.symbol] = b), g;
3459
3459
  }) : l === "categories" && (h.categories = c), h;
3460
3460
  }
3461
3461
  const xn = (e) => ({
@@ -3592,7 +3592,7 @@ const jm = Nm(), Qm = ({
3592
3592
  }, d = (b) => (w) => {
3593
3593
  const I = [...e];
3594
3594
  I[b] = w, t(I);
3595
- }, [h, p] = G(""), f = () => {
3595
+ }, [h, p] = G(""), g = () => {
3596
3596
  h && (l(h), p(""));
3597
3597
  };
3598
3598
  return /* @__PURE__ */ u(T, { ref: a, children: [
@@ -3615,7 +3615,7 @@ const jm = Nm(), Qm = ({
3615
3615
  }, children: /* @__PURE__ */ r(Jt, { popoverProps: {
3616
3616
  withinPortal: !0,
3617
3617
  zIndex: n
3618
- }, placeholder: i("chart.color.click_to_add_a_color"), value: h, onChange: p, onBlur: f, size: "xs" }) }),
3618
+ }, placeholder: i("chart.color.click_to_add_a_color"), value: h, onChange: p, onBlur: g, size: "xs" }) }),
3619
3619
  /* @__PURE__ */ r("div", { style: {
3620
3620
  minWidth: "40px",
3621
3621
  maxWidth: "40px",
@@ -3644,17 +3644,17 @@ const jm = Nm(), Qm = ({
3644
3644
  return /* @__PURE__ */ u(A, { children: [
3645
3645
  /* @__PURE__ */ r(P, { color: "rgb(206, 212, 218)", variant: "dotted", my: "1rem" }),
3646
3646
  /* @__PURE__ */ u(A, { px: "1rem", children: [
3647
- /* @__PURE__ */ r(g, { control: o, name: "variable", render: ({
3647
+ /* @__PURE__ */ r(f, { control: o, name: "variable", render: ({
3648
3648
  field: d
3649
3649
  }) => /* @__PURE__ */ r(Jr, { label: a("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
3650
3650
  /* @__PURE__ */ u(_, { grow: !0, justify: "space-between", children: [
3651
- /* @__PURE__ */ r(g, { name: "min_var", control: o, render: ({
3651
+ /* @__PURE__ */ r(f, { name: "min_var", control: o, render: ({
3652
3652
  field: d
3653
3653
  }) => /* @__PURE__ */ r(Jr, { label: a("rich_text.color_mapping.min.var"), preview: "aggregated", sx: {
3654
3654
  flexGrow: 1,
3655
3655
  maxWidth: "unset"
3656
3656
  }, ...d }) }),
3657
- /* @__PURE__ */ r(g, { name: "min_val", control: o, render: ({
3657
+ /* @__PURE__ */ r(f, { name: "min_val", control: o, render: ({
3658
3658
  field: d
3659
3659
  }) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.min.val"), ...d, sx: {
3660
3660
  maxWidth: "120px",
@@ -3662,20 +3662,20 @@ const jm = Nm(), Qm = ({
3662
3662
  } }) })
3663
3663
  ] }),
3664
3664
  /* @__PURE__ */ u(_, { grow: !0, justify: "space-between", children: [
3665
- /* @__PURE__ */ r(g, { name: "max_var", control: o, render: ({
3665
+ /* @__PURE__ */ r(f, { name: "max_var", control: o, render: ({
3666
3666
  field: d
3667
3667
  }) => /* @__PURE__ */ r(Jr, { label: a("rich_text.color_mapping.max.var"), preview: "aggregated", sx: {
3668
3668
  flexGrow: 1,
3669
3669
  maxWidth: "unset"
3670
3670
  }, ...d }) }),
3671
- /* @__PURE__ */ r(g, { name: "max_val", control: o, render: ({
3671
+ /* @__PURE__ */ r(f, { name: "max_val", control: o, render: ({
3672
3672
  field: d
3673
3673
  }) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.max.val"), ...d, sx: {
3674
3674
  maxWidth: "120px",
3675
3675
  flexGrow: 0
3676
3676
  } }) })
3677
3677
  ] }),
3678
- /* @__PURE__ */ r(g, { control: o, name: "colors", render: ({
3678
+ /* @__PURE__ */ r(f, { control: o, name: "colors", render: ({
3679
3679
  field: d
3680
3680
  }) => /* @__PURE__ */ r(_s, { ...d }) })
3681
3681
  ] }),
@@ -3745,8 +3745,8 @@ const Um = () => /* @__PURE__ */ r("div", { style: {
3745
3745
  }] = De(), s = e.getAttributes(ps), {
3746
3746
  empty: c,
3747
3747
  ...d
3748
- } = z(() => $m(s), [s]), h = ae((f) => {
3749
- e.chain().focus().setColorMapping(f).run(), o();
3748
+ } = z(() => $m(s), [s]), h = ae((g) => {
3749
+ e.chain().focus().setColorMapping(g).run(), o();
3750
3750
  }, [e]), p = ae(() => {
3751
3751
  e.chain().focus().unsetColorMapping().run();
3752
3752
  }, [e]);
@@ -3915,7 +3915,7 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
3915
3915
  B(() => {
3916
3916
  c(e);
3917
3917
  }, [e]);
3918
- const f = ae((w, I) => {
3918
+ const g = ae((w, I) => {
3919
3919
  if (i.length === 0)
3920
3920
  return;
3921
3921
  const M = Cp(I), R = w.getModel();
@@ -3955,7 +3955,7 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
3955
3955
  flexGrow: 1
3956
3956
  }, children: [
3957
3957
  b && /* @__PURE__ */ r(en, { center: !0, color: "#fff", backgroundOpacity: 0.5, children: /* @__PURE__ */ r(L, { color: "blue", radius: "xl", onClick: p, children: l("common.actions.init_with_default") }) }),
3958
- /* @__PURE__ */ r(ag, { value: s, onChange: c, onMount: f })
3958
+ /* @__PURE__ */ r(ag, { value: s, onChange: c, onMount: g })
3959
3959
  ] })
3960
3960
  ] });
3961
3961
  }), Ya = J(({
@@ -3971,12 +3971,12 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
3971
3971
  zIndex: d = 320,
3972
3972
  restrictions: h
3973
3973
  }, p) => {
3974
- const [f, {
3974
+ const [g, {
3975
3975
  open: y,
3976
3976
  close: b
3977
3977
  }] = nn(!1);
3978
3978
  return /* @__PURE__ */ u(F, { children: [
3979
- /* @__PURE__ */ u(ve, { opened: f, onClose: b, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
3979
+ /* @__PURE__ */ u(ve, { opened: g, onClose: b, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
3980
3980
  i,
3981
3981
  /* @__PURE__ */ r(A, { h: 600, children: /* @__PURE__ */ r(gn, { value: t, onChange: n, defaultValue: c, label: a, restrictions: h }) })
3982
3982
  ] }),
@@ -4100,14 +4100,14 @@ const Bn = "data-value", rg = Bn, ks = "dynamicColor", zs = Ol.create({
4100
4100
  B(() => {
4101
4101
  c == null || c.commands.setContent(e);
4102
4102
  }, [e, c]);
4103
- const d = z(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = z(() => ng(d, a, i), [d, a, i]), p = z(() => Vm(d, i), [d, i]), f = z(() => C.defaultsDeep({}, {
4103
+ const d = z(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = z(() => ng(d, a, i), [d, a, i]), p = z(() => Vm(d, i), [d, i]), g = z(() => C.defaultsDeep({}, {
4104
4104
  content: {
4105
4105
  ...Ha,
4106
4106
  ...h,
4107
4107
  ...p
4108
4108
  }
4109
4109
  }, t), [t, h, p]);
4110
- return /* @__PURE__ */ r(oe, { editor: c, styles: f, sx: n, children: /* @__PURE__ */ r(oe.Content, { ref: o }) });
4110
+ return /* @__PURE__ */ r(oe, { editor: c, styles: g, sx: n, children: /* @__PURE__ */ r(oe.Content, { ref: o }) });
4111
4111
  });
4112
4112
  function Ds() {
4113
4113
  const {
@@ -4250,7 +4250,7 @@ const Zt = J(({
4250
4250
  return c && q.push(ms), q;
4251
4251
  }, [c]), [h, {
4252
4252
  setTrue: p,
4253
- setFalse: f
4253
+ setFalse: g
4254
4254
  }] = De(!1), [y, b] = G(e), w = Rl({
4255
4255
  extensions: d,
4256
4256
  content: y,
@@ -4266,7 +4266,7 @@ const Zt = J(({
4266
4266
  q.view.dom.setAttribute("spellcheck", "false"), q.view.dom.setAttribute("autocomplete", "off"), q.view.dom.setAttribute("autocapitalize", "off");
4267
4267
  },
4268
4268
  onFocus: p,
4269
- onBlur: f
4269
+ onBlur: g
4270
4270
  });
4271
4271
  B(() => {
4272
4272
  b((q) => e === q ? q : (w == null || w.commands.setContent(e), e));
@@ -4409,7 +4409,7 @@ const As = ({
4409
4409
  set: s,
4410
4410
  setFalse: c,
4411
4411
  toggle: d
4412
- }] = De(), [h, p] = G(!1), f = z(() => {
4412
+ }] = De(), [h, p] = G(!1), g = z(() => {
4413
4413
  const M = [];
4414
4414
  return _g.forEach((R) => {
4415
4415
  const q = o.colors[R];
@@ -4435,7 +4435,7 @@ const As = ({
4435
4435
  /* @__PURE__ */ r(ee, { variant: "default", onClick: c, title: i("common.actions.close"), children: /* @__PURE__ */ r(Ia, { stroke: 1.5, size: "1rem" }) })
4436
4436
  ] }),
4437
4437
  /* @__PURE__ */ u(ke, { cols: 2, children: [
4438
- /* @__PURE__ */ r(Qi, { format: "hex", swatches: f, value: t, onChange: w, size: "sm", withPicker: !1, styles: {
4438
+ /* @__PURE__ */ r(Qi, { format: "hex", swatches: g, value: t, onChange: w, size: "sm", withPicker: !1, styles: {
4439
4439
  swatches: {
4440
4440
  marginTop: "0 !important"
4441
4441
  }
@@ -4514,7 +4514,7 @@ function Dn(e, t) {
4514
4514
  const {
4515
4515
  variable: l,
4516
4516
  ...s
4517
- } = o, c = Object.entries(s).map(([f, y]) => `${f}:${y}`).join(";"), d = l.color;
4517
+ } = o, c = Object.entries(s).map(([g, y]) => `${g}:${y}`).join(";"), d = l.color;
4518
4518
  if (d.type !== "continuous")
4519
4519
  return `<span style="${c}">{{${i}}}</span>`;
4520
4520
  const h = Cs(6), p = `try {
@@ -4768,7 +4768,7 @@ function Lg({
4768
4768
  xAxis3D: d,
4769
4769
  yAxis3D: h,
4770
4770
  zAxis3D: p
4771
- } = he({}, n, ti), f = z(() => Vr(a, l), [a, l]), {
4771
+ } = he({}, n, ti), g = z(() => Vr(a, l), [a, l]), {
4772
4772
  x: y,
4773
4773
  y: b,
4774
4774
  z: w
@@ -4780,12 +4780,12 @@ function Lg({
4780
4780
  min: I,
4781
4781
  max: M
4782
4782
  } = z(() => {
4783
- const Q = Qu(f, (Z) => Z[w.columnKey]), ue = Gu(f, (Z) => Z[w.columnKey]);
4783
+ const Q = Qu(g, (Z) => Z[w.columnKey]), ue = Gu(g, (Z) => Z[w.columnKey]);
4784
4784
  return {
4785
4785
  min: le(Q, w.columnKey),
4786
4786
  max: le(ue, w.columnKey)
4787
4787
  };
4788
- }, [f, w]), R = Vt(null), q = z(() => ({
4788
+ }, [g, w]), R = Vt(null), q = z(() => ({
4789
4789
  finished: () => {
4790
4790
  var ue;
4791
4791
  const Q = (ue = R.current) == null ? void 0 : ue.getEchartsInstance();
@@ -4824,7 +4824,7 @@ function Lg({
4824
4824
  wireframe: {
4825
4825
  // show: false
4826
4826
  },
4827
- data: f.map((Q) => [Q[y.columnKey], Q[b.columnKey], Q[w.columnKey]])
4827
+ data: g.map((Q) => [Q[y.columnKey], Q[b.columnKey], Q[w.columnKey]])
4828
4828
  }]
4829
4829
  };
4830
4830
  return n ? /* @__PURE__ */ r(nt, { width: i, height: o, children: /* @__PURE__ */ r(He, { echarts: Ne, ref: R, option: X, style: Xn(i, o), notMerge: !0, onEvents: q, theme: "merico-light" }) }) : null;
@@ -4844,13 +4844,13 @@ const K = D(J(({
4844
4844
  panel: h
4845
4845
  } = Le(), p = $.useMemo(() => h.dataFieldOptionGroups(a, l, o), [a, l, o]);
4846
4846
  if (p.length === 0) {
4847
- const f = h.explainDataKey(a);
4847
+ const g = h.explainDataKey(a);
4848
4848
  return /* @__PURE__ */ u(_e, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
4849
- /* @__PURE__ */ r(_e.Target, { children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: f.columnKey, readOnly: !0, disabled: !0 }) }) }),
4849
+ /* @__PURE__ */ r(_e.Target, { children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: g.columnKey, readOnly: !0, disabled: !0 }) }) }),
4850
4850
  /* @__PURE__ */ r(_e.Dropdown, { children: /* @__PURE__ */ u(_, { justify: "flex-start", gap: 0, children: [
4851
- /* @__PURE__ */ r(k, { size: "xs", c: f.queryName ? "black" : "red", ff: "monospace", children: f.queryName ?? f.queryID }),
4851
+ /* @__PURE__ */ r(k, { size: "xs", c: g.queryName ? "black" : "red", ff: "monospace", children: g.queryName ?? g.queryID }),
4852
4852
  /* @__PURE__ */ r(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
4853
- /* @__PURE__ */ r(k, { size: "xs", c: "red", ff: "monospace", children: f.columnKey })
4853
+ /* @__PURE__ */ r(k, { size: "xs", c: "red", ff: "monospace", children: g.columnKey })
4854
4854
  ] }) })
4855
4855
  ] });
4856
4856
  }
@@ -4877,10 +4877,10 @@ function Ag({
4877
4877
  position: "relative",
4878
4878
  border: "1px solid #eee"
4879
4879
  }, children: [
4880
- /* @__PURE__ */ r(g, { name: "x_axis_data_key", control: i, render: ({
4880
+ /* @__PURE__ */ r(f, { name: "x_axis_data_key", control: i, render: ({
4881
4881
  field: s
4882
4882
  }) => /* @__PURE__ */ r(K, { label: "Data Field", required: !0, ...s }) }),
4883
- /* @__PURE__ */ r(g, { name: "xAxis3D.name", control: i, render: ({
4883
+ /* @__PURE__ */ r(f, { name: "xAxis3D.name", control: i, render: ({
4884
4884
  field: s
4885
4885
  }) => /* @__PURE__ */ r(V, { sx: {
4886
4886
  flexGrow: 1
@@ -4891,10 +4891,10 @@ function Ag({
4891
4891
  position: "relative",
4892
4892
  border: "1px solid #eee"
4893
4893
  }, children: [
4894
- /* @__PURE__ */ r(g, { name: "y_axis_data_key", control: i, render: ({
4894
+ /* @__PURE__ */ r(f, { name: "y_axis_data_key", control: i, render: ({
4895
4895
  field: s
4896
4896
  }) => /* @__PURE__ */ r(K, { label: "Data Field", required: !0, ...s }) }),
4897
- /* @__PURE__ */ r(g, { name: "yAxis3D.name", control: i, render: ({
4897
+ /* @__PURE__ */ r(f, { name: "yAxis3D.name", control: i, render: ({
4898
4898
  field: s
4899
4899
  }) => /* @__PURE__ */ r(V, { sx: {
4900
4900
  flexGrow: 1
@@ -4905,10 +4905,10 @@ function Ag({
4905
4905
  position: "relative",
4906
4906
  border: "1px solid #eee"
4907
4907
  }, children: [
4908
- /* @__PURE__ */ r(g, { name: "z_axis_data_key", control: i, render: ({
4908
+ /* @__PURE__ */ r(f, { name: "z_axis_data_key", control: i, render: ({
4909
4909
  field: s
4910
4910
  }) => /* @__PURE__ */ r(K, { label: "Data Field", required: !0, ...s }) }),
4911
- /* @__PURE__ */ r(g, { name: "zAxis3D.name", control: i, render: ({
4911
+ /* @__PURE__ */ r(f, { name: "zAxis3D.name", control: i, render: ({
4912
4912
  field: s
4913
4913
  }) => /* @__PURE__ */ r(V, { sx: {
4914
4914
  flexGrow: 1
@@ -5062,7 +5062,7 @@ const zt = J(({
5062
5062
  func_content: M
5063
5063
  };
5064
5064
  d(R), t(R);
5065
- }, f = () => {
5065
+ }, g = () => {
5066
5066
  s(), d(e);
5067
5067
  }, y = (I) => {
5068
5068
  d((M) => ({
@@ -5082,7 +5082,7 @@ const zt = J(({
5082
5082
  /* @__PURE__ */ u(_, { justify: "space-between", children: [
5083
5083
  /* @__PURE__ */ r(L, { onClick: b, color: "red", leftSection: /* @__PURE__ */ r(mt, { size: 20 }), children: i("common.actions.reset_to_default") }),
5084
5084
  /* @__PURE__ */ u(_, { justify: "flex-end", children: [
5085
- /* @__PURE__ */ r(L, { onClick: f, variant: "subtle", children: i("common.actions.cancel") }),
5085
+ /* @__PURE__ */ r(L, { onClick: g, variant: "subtle", children: i("common.actions.cancel") }),
5086
5086
  /* @__PURE__ */ r(L, { color: "green", leftSection: /* @__PURE__ */ r(me, { size: 16 }), onClick: p, children: i("common.actions.save") })
5087
5087
  ] })
5088
5088
  ] })
@@ -6086,7 +6086,7 @@ const Lf = D(({
6086
6086
  }
6087
6087
  const {
6088
6088
  data: p = 0,
6089
- loading: f
6089
+ loading: g
6090
6090
  } = dn(async () => {
6091
6091
  try {
6092
6092
  return (await i.triggerManager.getTriggerSchemaList()).length;
@@ -6095,7 +6095,7 @@ const Lf = D(({
6095
6095
  }
6096
6096
  });
6097
6097
  return /* @__PURE__ */ u(T, { children: [
6098
- /* @__PURE__ */ r(tn, { visible: f }),
6098
+ /* @__PURE__ */ r(tn, { visible: g }),
6099
6099
  p === 0 && /* @__PURE__ */ r(Un, { icon: /* @__PURE__ */ r(Gn, { size: 16 }), title: t("interactions.unavailable"), color: "gray", children: t("interactions.unavailable_reason") }),
6100
6100
  c.map((y) => /* @__PURE__ */ r(Lf, { onRemove: h, instance: o, sampleData: l, variables: s, item: y, manager: e.interactionManager }, y.id)),
6101
6101
  /* @__PURE__ */ r(L, { style: {
@@ -6198,7 +6198,7 @@ function Bf(e, t) {
6198
6198
  const n = [], a = [];
6199
6199
  return {
6200
6200
  boxplotData: Object.entries(e).map(([o, l]) => {
6201
- const s = l.map((M) => M[t]).sort((M, R) => M - R), c = ir(s, 0.25) ?? 0, d = ir(s, 0.5) ?? 0, h = ir(s, 0.75) ?? 0, p = h - c, f = c - 1.5 * p, y = h + 1.5 * p, b = Math.max(s[0], f), w = Math.min(C.last(s) ?? 0, y);
6201
+ const s = l.map((M) => M[t]).sort((M, R) => M - R), c = ir(s, 0.25) ?? 0, d = ir(s, 0.5) ?? 0, h = ir(s, 0.75) ?? 0, p = h - c, g = c - 1.5 * p, y = h + 1.5 * p, b = Math.max(s[0], g), w = Math.min(C.last(s) ?? 0, y);
6202
6202
  return l.filter((M) => {
6203
6203
  const R = M[t];
6204
6204
  return R < b || R > w;
@@ -6326,13 +6326,13 @@ function Hf(e, t, n) {
6326
6326
  min: d,
6327
6327
  q1: h,
6328
6328
  median: p,
6329
- q3: f,
6329
+ q3: g,
6330
6330
  max: y
6331
6331
  } = c, b = {
6332
6332
  min: t.coord([s, d]),
6333
6333
  q1: t.coord([s, h]),
6334
6334
  median: t.coord([s, p]),
6335
- q3: t.coord([s, f]),
6335
+ q3: t.coord([s, g]),
6336
6336
  max: t.coord([s, y])
6337
6337
  }, w = {
6338
6338
  left: l[1].offset,
@@ -6723,7 +6723,7 @@ function sb({
6723
6723
  } = e.viewport, c = he({}, a, ni), d = ct({
6724
6724
  vizManager: e.vizManager,
6725
6725
  instance: t
6726
- }), h = st(d.triggerManager, Os.id), p = yn(o, c.x_axis.data_key), f = ae((M) => {
6726
+ }), h = st(d.triggerManager, Os.id), p = yn(o, c.x_axis.data_key), g = ae((M) => {
6727
6727
  const R = C.get(p, M.name, {
6728
6728
  error: "rowData is not found"
6729
6729
  });
@@ -6738,9 +6738,9 @@ function sb({
6738
6738
  const M = (R = y.current) == null ? void 0 : R.getEchartsInstance();
6739
6739
  M && Ye(t, M.getOption());
6740
6740
  }, []), w = z(() => ({
6741
- click: f,
6741
+ click: g,
6742
6742
  finished: b
6743
- }), [f, b]), I = z(() => lb({
6743
+ }), [g, b]), I = z(() => lb({
6744
6744
  config: c,
6745
6745
  data: o,
6746
6746
  variables: i,
@@ -6887,7 +6887,7 @@ function ub(e) {
6887
6887
  } = Hs(), [s, c] = G(io(o)), [d, {
6888
6888
  setTrue: h,
6889
6889
  setFalse: p
6890
- }] = De(!1), f = i % 2 === 1, y = f && o != null, b = !f && o != null, w = `map ${o} to color ${i}`, I = () => {
6890
+ }] = De(!1), g = i % 2 === 1, y = g && o != null, b = !g && o != null, w = `map ${o} to color ${i}`, I = () => {
6891
6891
  c(io(o)), p();
6892
6892
  }, M = () => {
6893
6893
  p(), n == null || n(Number(s));
@@ -6954,7 +6954,7 @@ const hb = D(({
6954
6954
  colorManager: o
6955
6955
  } = e, l = o.getColorInterpolations(), [s, c] = G(a), d = o.decodeInterpolation(s.interpolation) || l[0], [h, {
6956
6956
  setTrue: p,
6957
- setFalse: f
6957
+ setFalse: g
6958
6958
  }] = De(), y = z(() => {
6959
6959
  const R = C.groupBy(l, "category");
6960
6960
  return Object.entries(R).map(([q, X]) => ({
@@ -6972,7 +6972,7 @@ const hb = D(({
6972
6972
  }));
6973
6973
  }
6974
6974
  const w = () => {
6975
- f(), i == null || i(Rt(s));
6975
+ g(), i == null || i(Rt(s));
6976
6976
  };
6977
6977
  function I(R) {
6978
6978
  c((q) => ({
@@ -6981,11 +6981,11 @@ const hb = D(({
6981
6981
  }));
6982
6982
  }
6983
6983
  const M = () => {
6984
- f(), c(a);
6984
+ g(), c(a);
6985
6985
  };
6986
6986
  return /* @__PURE__ */ u(F, { children: [
6987
6987
  /* @__PURE__ */ r(L, { variant: "outline", onClick: p, children: t(d == null ? void 0 : d.displayName) }),
6988
- /* @__PURE__ */ r(ve, { size: 508, title: t("style.color.interpolation.setup"), opened: h, onClose: f, zIndex: 320, children: h && /* @__PURE__ */ u(T, { "data-testid": "color-interpolation-modal", children: [
6988
+ /* @__PURE__ */ r(ve, { size: 508, title: t("style.color.interpolation.setup"), opened: h, onClose: g, zIndex: 320, children: h && /* @__PURE__ */ u(T, { "data-testid": "color-interpolation-modal", children: [
6989
6989
  /* @__PURE__ */ r(O, { label: t("style.color.interpolation.palette.label"), value: s.interpolation, data: y, onChange: b, comboboxProps: {
6990
6990
  withinPortal: !0,
6991
6991
  zIndex: 340
@@ -7129,7 +7129,7 @@ const hb = D(({
7129
7129
  }), {
7130
7130
  fields: h,
7131
7131
  append: p,
7132
- remove: f
7132
+ remove: g
7133
7133
  } = d, y = t(n), b = h.map((Q, ue) => ({
7134
7134
  ...Q,
7135
7135
  ...y[ue]
@@ -7149,7 +7149,7 @@ const hb = D(({
7149
7149
  index: ue
7150
7150
  }),
7151
7151
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed" }),
7152
- /* @__PURE__ */ r(L, { leftSection: /* @__PURE__ */ r($e, { size: 16 }), color: "red", variant: "light", onClick: () => f(ue), sx: {
7152
+ /* @__PURE__ */ r(L, { leftSection: /* @__PURE__ */ r($e, { size: 16 }), color: "red", variant: "light", onClick: () => g(ue), sx: {
7153
7153
  top: 15,
7154
7154
  right: 5
7155
7155
  }, disabled: c == null ? void 0 : c({
@@ -7223,12 +7223,12 @@ const hb = D(({
7223
7223
  o === "horizontal" ? (s.top = "0", s.left = "auto", s.right = "10", s.bottom = "auto") : (s.top = "10", s.left = "auto", s.right = "0", s.bottom = "auto"), l(s);
7224
7224
  };
7225
7225
  return /* @__PURE__ */ u(T, { children: [
7226
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", mt: 20, children: /* @__PURE__ */ r(g, { name: "legend.show", control: e, render: ({
7226
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", mt: 20, children: /* @__PURE__ */ r(f, { name: "legend.show", control: e, render: ({
7227
7227
  field: o
7228
7228
  }) => /* @__PURE__ */ r(Ce, { label: n("chart.legend.show_legend"), sx: {
7229
7229
  flex: 1
7230
7230
  }, checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) }),
7231
- /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(g, { name: "legend", control: e, render: ({
7231
+ /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(f, { name: "legend", control: e, render: ({
7232
7232
  field: o
7233
7233
  }) => /* @__PURE__ */ r(rn, { sx: {
7234
7234
  flex: 1
@@ -7250,18 +7250,18 @@ function wb({
7250
7250
  position: "relative"
7251
7251
  }, children: [
7252
7252
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
7253
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.name`, control: e, render: ({
7253
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
7254
7254
  field: i
7255
7255
  }) => /* @__PURE__ */ r(V, { label: a("common.name"), placeholder: a("chart.reference_line.name_placeholder"), required: !0, sx: {
7256
7256
  flex: 1
7257
7257
  }, ...i }) }),
7258
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
7258
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
7259
7259
  field: i
7260
7260
  }) => /* @__PURE__ */ r(O, { label: a("common.value"), required: !0, data: n, sx: {
7261
7261
  flex: 1
7262
7262
  }, ...i }) })
7263
7263
  ] }),
7264
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.template`, control: e, render: ({
7264
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
7265
7265
  field: i
7266
7266
  }) => /* @__PURE__ */ r(V, { label: a("chart.content_template.label"), placeholder: a("chart.content_template.placeholder"), required: !0, sx: {
7267
7267
  flex: 1
@@ -7299,12 +7299,12 @@ const Cb = ({
7299
7299
  t: n
7300
7300
  } = x();
7301
7301
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
7302
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
7302
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
7303
7303
  field: a
7304
7304
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
7305
7305
  flex: 1
7306
7306
  }, ...a }) }),
7307
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
7307
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
7308
7308
  field: a
7309
7309
  }) => /* @__PURE__ */ r(K, { label: n("chart.data_field"), required: !0, sx: {
7310
7310
  flex: 1
@@ -7371,12 +7371,12 @@ const Ut = J(({
7371
7371
  } = x();
7372
7372
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
7373
7373
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
7374
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
7374
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
7375
7375
  field: a
7376
7376
  }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
7377
7377
  flex: 1
7378
7378
  }, ...a }) }),
7379
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
7379
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
7380
7380
  field: a
7381
7381
  }) => /* @__PURE__ */ r(K, { label: n("chart.x_axis.x_axis_data_field"), required: !0, sx: {
7382
7382
  flex: 1
@@ -7384,16 +7384,16 @@ const Ut = J(({
7384
7384
  ] }),
7385
7385
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.axis.tick_label"), labelPosition: "center" }),
7386
7386
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
7387
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
7387
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
7388
7388
  field: a
7389
7389
  }) => /* @__PURE__ */ r(Ut, { sx: {
7390
7390
  width: "48%"
7391
7391
  }, ...a }) }),
7392
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
7392
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
7393
7393
  field: a
7394
7394
  }) => /* @__PURE__ */ r(zt, { ...a }) })
7395
7395
  ] }),
7396
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
7396
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
7397
7397
  field: a
7398
7398
  }) => /* @__PURE__ */ r(Tt, { ...a }) })
7399
7399
  ] });
@@ -7513,12 +7513,12 @@ const bt = $.forwardRef(Mb), Lb = ({
7513
7513
  } = x();
7514
7514
  return t(["y_axis"]), /* @__PURE__ */ u(F, { children: [
7515
7515
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
7516
- /* @__PURE__ */ r(g, { name: "y_axis.name", control: e, render: ({
7516
+ /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
7517
7517
  field: a
7518
7518
  }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), sx: {
7519
7519
  flex: 1
7520
7520
  }, ...a }) }),
7521
- /* @__PURE__ */ r(g, { name: "y_axis.data_key", control: e, render: ({
7521
+ /* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
7522
7522
  field: a
7523
7523
  }) => /* @__PURE__ */ r(K, { label: n("chart.y_axis.y_axis_data_field"), required: !0, sx: {
7524
7524
  flex: 1
@@ -7526,7 +7526,7 @@ const bt = $.forwardRef(Mb), Lb = ({
7526
7526
  ] }),
7527
7527
  /* @__PURE__ */ u(T, { children: [
7528
7528
  /* @__PURE__ */ r(P, { mt: 10, mb: -15, variant: "dashed", label: n("chart.axis.section_title.label_format"), labelPosition: "center" }),
7529
- /* @__PURE__ */ r(g, { name: "y_axis.label_formatter", control: e, render: ({
7529
+ /* @__PURE__ */ r(f, { name: "y_axis.label_formatter", control: e, render: ({
7530
7530
  field: a
7531
7531
  }) => /* @__PURE__ */ r(bt, { ...a }) })
7532
7532
  ] })
@@ -7578,11 +7578,11 @@ function Ab({
7578
7578
  /* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(Lb, { control: l, watch: c }) }),
7579
7579
  /* @__PURE__ */ r(S.Panel, { value: "Legend", children: /* @__PURE__ */ r(vb, { control: l, watch: c }) }),
7580
7580
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(zb, { control: l, watch: c }) }),
7581
- /* @__PURE__ */ r(S.Panel, { value: "Style", children: /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: "color", control: l, render: ({
7581
+ /* @__PURE__ */ r(S.Panel, { value: "Style", children: /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: "color", control: l, render: ({
7582
7582
  field: p
7583
7583
  }) => /* @__PURE__ */ r(Ke, { label: t("chart.color.label"), ...p }) }) }) }),
7584
7584
  /* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(Sb, { variables: i, control: l, watch: c }) }),
7585
- /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(g, { name: "dataZoom", control: l, render: ({
7585
+ /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
7586
7586
  field: p
7587
7587
  }) => /* @__PURE__ */ r(Br, { ...p }) }) })
7588
7588
  ] })
@@ -7884,7 +7884,7 @@ const li = {
7884
7884
  vertical_align: d,
7885
7885
  compact: h,
7886
7886
  size: p,
7887
- ...f
7887
+ ...g
7888
7888
  } = l, {
7889
7889
  width: y,
7890
7890
  height: b
@@ -7898,7 +7898,7 @@ const li = {
7898
7898
  height: b,
7899
7899
  justifyContent: Hb[c],
7900
7900
  alignItems: Wb[d]
7901
- }, children: /* @__PURE__ */ r(L, { size: M, ...f, onClick: I, children: wa(s)(w) }) });
7901
+ }, children: /* @__PURE__ */ r(L, { size: M, ...g, onClick: I, children: wa(s)(w) }) });
7902
7902
  }), Kb = ({
7903
7903
  value: e,
7904
7904
  onChange: t,
@@ -7975,31 +7975,31 @@ function Zb({
7975
7975
  }, [i]), s(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ u("form", { onSubmit: l(n), children: [
7976
7976
  /* @__PURE__ */ r(Ae, { canSubmit: c.isDirty }),
7977
7977
  /* @__PURE__ */ u(T, { children: [
7978
- /* @__PURE__ */ r(g, { control: o, name: "content", render: ({
7978
+ /* @__PURE__ */ r(f, { control: o, name: "content", render: ({
7979
7979
  field: h
7980
7980
  }) => /* @__PURE__ */ r(V, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
7981
7981
  /* @__PURE__ */ r(P, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
7982
7982
  /* @__PURE__ */ u(ke, { cols: 2, children: [
7983
- /* @__PURE__ */ r(g, { control: o, name: "variant", render: ({
7983
+ /* @__PURE__ */ r(f, { control: o, name: "variant", render: ({
7984
7984
  field: h
7985
7985
  }) => /* @__PURE__ */ r(O, { label: "Variant", data: Xb, ...h }) }),
7986
- /* @__PURE__ */ r(g, { control: o, name: "color", render: ({
7986
+ /* @__PURE__ */ r(f, { control: o, name: "color", render: ({
7987
7987
  field: h
7988
7988
  }) => /* @__PURE__ */ r(Kb, { label: "Theme", ...h }) })
7989
7989
  ] }),
7990
7990
  /* @__PURE__ */ u(ke, { cols: 2, children: [
7991
- /* @__PURE__ */ r(g, { control: o, name: "size", render: ({
7991
+ /* @__PURE__ */ r(f, { control: o, name: "size", render: ({
7992
7992
  field: h
7993
7993
  }) => /* @__PURE__ */ r(ha, { label: "Size", ...h }) }),
7994
- /* @__PURE__ */ r(g, { control: o, name: "compact", render: ({
7994
+ /* @__PURE__ */ r(f, { control: o, name: "compact", render: ({
7995
7995
  field: h
7996
7996
  }) => /* @__PURE__ */ r(te, { label: "Compact", checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked), mt: 26 }) })
7997
7997
  ] }),
7998
7998
  /* @__PURE__ */ u(ke, { cols: 2, children: [
7999
- /* @__PURE__ */ r(g, { control: o, name: "horizontal_align", render: ({
7999
+ /* @__PURE__ */ r(f, { control: o, name: "horizontal_align", render: ({
8000
8000
  field: h
8001
8001
  }) => /* @__PURE__ */ r(oi, { ...h }) }),
8002
- /* @__PURE__ */ r(g, { control: o, name: "vertical_align", render: ({
8002
+ /* @__PURE__ */ r(f, { control: o, name: "vertical_align", render: ({
8003
8003
  field: h
8004
8004
  }) => /* @__PURE__ */ r(Gs, { ...h }) })
8005
8005
  ] })
@@ -8829,8 +8829,8 @@ const Ys = {
8829
8829
  B(() => {
8830
8830
  if (!n || !a.current)
8831
8831
  return;
8832
- const f = d ? 0 : a.current.offsetHeight;
8833
- n(f);
8832
+ const g = d ? 0 : a.current.offsetHeight;
8833
+ n(g);
8834
8834
  }, [d, a.current]);
8835
8835
  const h = z(() => d ? "none" : "block", [d]);
8836
8836
  return /* @__PURE__ */ r(A, { sx: {
@@ -8952,7 +8952,7 @@ function qy({
8952
8952
  group_by_key: s
8953
8953
  } = o;
8954
8954
  if (!s || s === t) {
8955
- const p = ht(n, o.y_axis_data_key).map((f, y) => [y, Number(f)]);
8955
+ const p = ht(n, o.y_axis_data_key).map((g, y) => [y, Number(g)]);
8956
8956
  i(o, l, "", p);
8957
8957
  return;
8958
8958
  }
@@ -8960,8 +8960,8 @@ function qy({
8960
8960
  columnKey: c
8961
8961
  } = N(o.y_axis_data_key), d = C.groupBy(Vr(n, o.y_axis_data_key), s);
8962
8962
  Object.entries(d).forEach(([h, p]) => {
8963
- const f = p.map((b, w) => [w, Number(b[c])]);
8964
- i(o, h, h, f);
8963
+ const g = p.map((b, w) => [w, Number(b[c])]);
8964
+ i(o, h, h, g);
8965
8965
  });
8966
8966
  }), a;
8967
8967
  }
@@ -9055,8 +9055,8 @@ function Gy({
9055
9055
  });
9056
9056
  const l = ci(t, a, i), s = C.groupBy(l, "0");
9057
9057
  return e.map(([d]) => {
9058
- const p = s[d].map((y) => y[1]), f = ja(p, n);
9059
- return [d, f];
9058
+ const p = s[d].map((y) => y[1]), g = ja(p, n);
9059
+ return [d, g];
9060
9060
  });
9061
9061
  }
9062
9062
  function Hy({
@@ -9105,8 +9105,8 @@ function Wy({
9105
9105
  lodash: C,
9106
9106
  interpolate: fn
9107
9107
  });
9108
- } catch (f) {
9109
- return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${f.message}`), 10;
9108
+ } catch (g) {
9109
+ return console.error(`[getEchartsSymbolSize] failed parsing custom function, error: ${g.message}`), 10;
9110
9110
  }
9111
9111
  };
9112
9112
  }
@@ -9124,7 +9124,7 @@ function Uy({
9124
9124
  stack: d,
9125
9125
  color: h,
9126
9126
  display_name_on_line: p,
9127
- symbolSize: f,
9127
+ symbolSize: g,
9128
9128
  hide_in_legend: y,
9129
9129
  areaStyle: b,
9130
9130
  ...w
@@ -9140,7 +9140,7 @@ function Uy({
9140
9140
  yAxisIndex: a,
9141
9141
  stack: d,
9142
9142
  color: h,
9143
- symbolSize: Wy(f, M, e, R),
9143
+ symbolSize: Wy(g, M, e, R),
9144
9144
  hide_in_legend: y,
9145
9145
  labelLayout: {
9146
9146
  hideOverlap: !0
@@ -9223,7 +9223,7 @@ function Zy(e, t, n, a) {
9223
9223
  return "";
9224
9224
  const s = l.map(({
9225
9225
  seriesName: p,
9226
- marker: f,
9226
+ marker: g,
9227
9227
  value: y
9228
9228
  }) => {
9229
9229
  if (Array.isArray(y) && y.length === 2 && (y = y[1]), !p)
@@ -9231,7 +9231,7 @@ function Zy(e, t, n, a) {
9231
9231
  const b = i[p], w = a[b] ?? a.default;
9232
9232
  return `
9233
9233
  <tr>
9234
- <td>${f}</td>
9234
+ <td>${g}</td>
9235
9235
  <th style="text-align: right; padding: 0 1em;">${p}</th>
9236
9236
  <td style="text-align: left; padding: 0 1em;">${w({
9237
9237
  value: y
@@ -9239,9 +9239,9 @@ function Zy(e, t, n, a) {
9239
9239
  </tr>
9240
9240
  `;
9241
9241
  }), c = e.tooltip.metrics.map((p) => {
9242
- const f = ht(t, p.data_key), y = C.uniq(l.map(({
9242
+ const g = ht(t, p.data_key), y = C.uniq(l.map(({
9243
9243
  dataIndex: b
9244
- }) => f[b]));
9244
+ }) => g[b]));
9245
9245
  return `<tr>
9246
9246
  <td />
9247
9247
  <th style="text-align: right; padding: 0 1em;">${p.name}</th>
@@ -9424,9 +9424,9 @@ function o_({
9424
9424
  rowData: M
9425
9425
  });
9426
9426
  });
9427
- }, [s, c, i]), h = $.useMemo(() => i_(e, t, o), [e, t]), p = $.useRef(), f = ia(l), y = ae(() => {
9427
+ }, [s, c, i]), h = $.useMemo(() => i_(e, t, o), [e, t]), p = $.useRef(), g = ia(l), y = ae(() => {
9428
9428
  var I;
9429
- f.current((I = p.current) == null ? void 0 : I.getOption());
9429
+ g.current((I = p.current) == null ? void 0 : I.getOption());
9430
9430
  }, []), b = z(() => ({
9431
9431
  click: d,
9432
9432
  finished: y
@@ -9454,14 +9454,14 @@ const l_ = D(({
9454
9454
  } = e, o = z(() => he({}, a, Ys), [a]), l = e.data, {
9455
9455
  width: s,
9456
9456
  height: c
9457
- } = e.viewport, [d, h] = G(0), [p, f] = G(0), y = Math.max(0, Ct(c) - d - p), b = St(s);
9457
+ } = e.viewport, [d, h] = G(0), [p, g] = G(0), y = Math.max(0, Ct(c) - d - p), b = St(s);
9458
9458
  function w(I) {
9459
9459
  Ye(t, I);
9460
9460
  }
9461
9461
  return /* @__PURE__ */ u(nt, { width: s, height: c, children: [
9462
9462
  /* @__PURE__ */ r(fr, { onHeightChange: h, value: o.stats.top, context: e }),
9463
9463
  /* @__PURE__ */ r(o_, { onChartRenderFinished: w, variables: i, width: b, height: y, data: l, conf: o, interactionManager: n }),
9464
- /* @__PURE__ */ r(fr, { onHeightChange: f, value: o.stats.bottom, context: e })
9464
+ /* @__PURE__ */ r(fr, { onHeightChange: g, value: o.stats.bottom, context: e })
9465
9465
  ] });
9466
9466
  });
9467
9467
  function s_({
@@ -9483,24 +9483,24 @@ function s_({
9483
9483
  position: "relative"
9484
9484
  }, children: [
9485
9485
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
9486
- /* @__PURE__ */ r(g, { name: `reference_areas.${t}.name`, control: e, render: ({
9486
+ /* @__PURE__ */ r(f, { name: `reference_areas.${t}.name`, control: e, render: ({
9487
9487
  field: s
9488
9488
  }) => /* @__PURE__ */ r(V, { label: a("chart.reference_area.label"), required: !0, sx: {
9489
9489
  flex: 1
9490
9490
  }, ...s }) }),
9491
- /* @__PURE__ */ r(g, { name: `reference_areas.${t}.color`, control: e, render: ({
9491
+ /* @__PURE__ */ r(f, { name: `reference_areas.${t}.color`, control: e, render: ({
9492
9492
  field: s
9493
9493
  }) => /* @__PURE__ */ r(V, { label: a("chart.color.label"), required: !0, sx: {
9494
9494
  flex: 1
9495
9495
  }, ...s }) })
9496
9496
  ] }),
9497
9497
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
9498
- /* @__PURE__ */ r(g, { name: `reference_areas.${t}.type`, control: e, render: ({
9498
+ /* @__PURE__ */ r(f, { name: `reference_areas.${t}.type`, control: e, render: ({
9499
9499
  field: s
9500
9500
  }) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.type.label"), required: !0, data: o, sx: {
9501
9501
  flex: 1
9502
9502
  }, ...s }) }),
9503
- /* @__PURE__ */ r(g, { name: `reference_areas.${t}.direction`, control: e, render: ({
9503
+ /* @__PURE__ */ r(f, { name: `reference_areas.${t}.direction`, control: e, render: ({
9504
9504
  field: s
9505
9505
  }) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.direction.label"), required: !0, data: l, sx: {
9506
9506
  flex: 1
@@ -9508,12 +9508,12 @@ function s_({
9508
9508
  ] }),
9509
9509
  /* @__PURE__ */ r(P, { variant: "dashed", label: a("data.label"), labelPosition: "center" }),
9510
9510
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
9511
- /* @__PURE__ */ r(g, { name: `reference_areas.${t}.y_keys.upper`, control: e, render: ({
9511
+ /* @__PURE__ */ r(f, { name: `reference_areas.${t}.y_keys.upper`, control: e, render: ({
9512
9512
  field: s
9513
9513
  }) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.boundary.upper"), required: !0, data: n, sx: {
9514
9514
  flex: 1
9515
9515
  }, ...s }) }),
9516
- /* @__PURE__ */ r(g, { name: `reference_areas.${t}.y_keys.lower`, control: e, render: ({
9516
+ /* @__PURE__ */ r(f, { name: `reference_areas.${t}.y_keys.lower`, control: e, render: ({
9517
9517
  field: s
9518
9518
  }) => /* @__PURE__ */ r(O, { label: a("chart.reference_area.boundary.lower"), required: !0, data: n, sx: {
9519
9519
  flex: 1
@@ -9584,32 +9584,32 @@ function d_({
9584
9584
  position: "relative"
9585
9585
  }, children: [
9586
9586
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
9587
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.name`, control: e, render: ({
9587
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
9588
9588
  field: s
9589
9589
  }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
9590
9590
  flex: 1
9591
9591
  }, ...s }) }),
9592
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
9592
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
9593
9593
  field: s
9594
9594
  }) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
9595
9595
  flex: 1
9596
9596
  }, ...s }) })
9597
9597
  ] }),
9598
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.template`, control: e, render: ({
9598
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
9599
9599
  field: s
9600
9600
  }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
9601
9601
  flex: 1
9602
9602
  }, ...s }) }),
9603
9603
  /* @__PURE__ */ u(_, { grow: !0, children: [
9604
9604
  /* @__PURE__ */ u(T, { children: [
9605
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
9605
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
9606
9606
  field: s
9607
9607
  }) => /* @__PURE__ */ r(rn, { label: o("chart.orientation.label"), sx: {
9608
9608
  flex: 1
9609
9609
  }, ...s }) }),
9610
9610
  l === "vertical" && /* @__PURE__ */ r(k, { mt: -10, c: "dimmed", size: "12px", children: o("chart.reference_line.orientation.vertical_hint") })
9611
9611
  ] }),
9612
- l === "horizontal" && /* @__PURE__ */ r(g, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
9612
+ l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
9613
9613
  field: {
9614
9614
  value: s,
9615
9615
  onChange: c,
@@ -9627,22 +9627,22 @@ function d_({
9627
9627
  ] }),
9628
9628
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: o("chart.style.label"), labelPosition: "center" }),
9629
9629
  /* @__PURE__ */ u(_, { grow: !0, children: [
9630
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
9630
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
9631
9631
  field: s
9632
9632
  }) => /* @__PURE__ */ r(En, { sx: {
9633
9633
  flexGrow: 1
9634
9634
  }, ...s }) }),
9635
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
9635
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
9636
9636
  field: s
9637
9637
  }) => /* @__PURE__ */ r(ne, { label: o("chart.series.line.line_width"), min: 1, max: 10, sx: {
9638
9638
  flexGrow: 1
9639
9639
  }, ...s }) })
9640
9640
  ] }),
9641
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
9641
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
9642
9642
  field: s
9643
9643
  }) => /* @__PURE__ */ r(Ke, { label: o("chart.color.label"), ...s }) }) }),
9644
9644
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: o("chart.behavior.label"), labelPosition: "center" }),
9645
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
9645
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
9646
9646
  field: s
9647
9647
  }) => /* @__PURE__ */ r(te, { label: o("chart.legend.show_in_legend"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) })
9648
9648
  ] });
@@ -9709,24 +9709,24 @@ function h_({
9709
9709
  position: "relative"
9710
9710
  }, children: [
9711
9711
  /* @__PURE__ */ u(_, { grow: !0, children: [
9712
- /* @__PURE__ */ r(g, { name: `regressions.${n}.name`, control: e, render: ({
9712
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.name`, control: e, render: ({
9713
9713
  field: c
9714
9714
  }) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
9715
9715
  flex: 1
9716
9716
  }, ...c }) }),
9717
- /* @__PURE__ */ r(g, { name: `regressions.${n}.group_by_key`, control: e, render: ({
9717
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.group_by_key`, control: e, render: ({
9718
9718
  field: c
9719
9719
  }) => /* @__PURE__ */ r(K, { label: i("chart.series.group_by.label_line"), clearable: !0, sx: {
9720
9720
  flex: 1
9721
9721
  }, ...c }) })
9722
9722
  ] }),
9723
9723
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
9724
- /* @__PURE__ */ r(g, { name: `regressions.${n}.y_axis_data_key`, control: e, render: ({
9724
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.y_axis_data_key`, control: e, render: ({
9725
9725
  field: c
9726
9726
  }) => /* @__PURE__ */ r(K, { label: i("common.data_field"), required: !0, sx: {
9727
9727
  flex: 1
9728
9728
  }, ...c }) }),
9729
- /* @__PURE__ */ r(g, { name: `regressions.${n}.plot.yAxisIndex`, control: e, render: ({
9729
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.plot.yAxisIndex`, control: e, render: ({
9730
9730
  field: {
9731
9731
  value: c,
9732
9732
  onChange: d,
@@ -9743,12 +9743,12 @@ function h_({
9743
9743
  } }) })
9744
9744
  ] }),
9745
9745
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
9746
- /* @__PURE__ */ r(g, { name: `regressions.${n}.transform.config.method`, control: e, render: ({
9746
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.transform.config.method`, control: e, render: ({
9747
9747
  field: c
9748
9748
  }) => /* @__PURE__ */ r(O, { label: i("chart.regression_line.method.label"), data: l, sx: {
9749
9749
  flex: 1
9750
9750
  }, ...c }) }),
9751
- s === "polynomial" && /* @__PURE__ */ r(g, { name: `regressions.${n}.transform.config.order`, control: e, render: ({
9751
+ s === "polynomial" && /* @__PURE__ */ r(f, { name: `regressions.${n}.transform.config.order`, control: e, render: ({
9752
9752
  field: c
9753
9753
  }) => /* @__PURE__ */ r(ne, { label: i("chart.regression_line.method.polynomial_order"), sx: {
9754
9754
  flex: 1
@@ -9756,18 +9756,18 @@ function h_({
9756
9756
  ] }),
9757
9757
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: i("chart.series.line.line_style"), labelPosition: "center" }),
9758
9758
  /* @__PURE__ */ u(_, { grow: !0, children: [
9759
- /* @__PURE__ */ r(g, { name: `regressions.${n}.plot.lineStyle.type`, control: e, render: ({
9759
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.plot.lineStyle.type`, control: e, render: ({
9760
9760
  field: c
9761
9761
  }) => /* @__PURE__ */ r(En, { sx: {
9762
9762
  flexGrow: 1
9763
9763
  }, ...c }) }),
9764
- /* @__PURE__ */ r(g, { name: `regressions.${n}.plot.lineStyle.width`, control: e, render: ({
9764
+ /* @__PURE__ */ r(f, { name: `regressions.${n}.plot.lineStyle.width`, control: e, render: ({
9765
9765
  field: c
9766
9766
  }) => /* @__PURE__ */ r(ne, { label: i("chart.series.line.line_width"), min: 1, max: 10, sx: {
9767
9767
  flexGrow: 1
9768
9768
  }, ...c }) })
9769
9769
  ] }),
9770
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `regressions.${n}.plot.color`, control: e, render: ({
9770
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `regressions.${n}.plot.color`, control: e, render: ({
9771
9771
  field: c
9772
9772
  }) => /* @__PURE__ */ r(Ke, { label: i("chart.color.label"), ...c }) }) })
9773
9773
  ] });
@@ -9844,19 +9844,19 @@ const m_ = ({
9844
9844
  }] = De(), [l, s] = G(e), c = () => {
9845
9845
  o();
9846
9846
  const {
9847
- type: f,
9847
+ type: g,
9848
9848
  func_content: y
9849
9849
  } = l, b = {
9850
- type: f,
9850
+ type: g,
9851
9851
  func_content: y
9852
9852
  };
9853
9853
  s(b), t(b);
9854
9854
  }, d = () => {
9855
9855
  o(), s(e);
9856
- }, h = (f) => {
9856
+ }, h = (g) => {
9857
9857
  s((y) => ({
9858
9858
  ...y,
9859
- func_content: f
9859
+ func_content: g
9860
9860
  }));
9861
9861
  }, p = () => {
9862
9862
  h(ui.dynamic.func_content);
@@ -10001,7 +10001,7 @@ function y_({
10001
10001
  },
10002
10002
  fallback: t.fallback
10003
10003
  });
10004
- }, f = (b) => {
10004
+ }, g = (b) => {
10005
10005
  n({
10006
10006
  ...t,
10007
10007
  fallback: b.currentTarget.value
@@ -10062,7 +10062,7 @@ function y_({
10062
10062
  color: "grape"
10063
10063
  } })
10064
10064
  ] }),
10065
- i && /* @__PURE__ */ r(V, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: f })
10065
+ i && /* @__PURE__ */ r(V, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
10066
10066
  ] });
10067
10067
  }
10068
10068
  const pi = $.forwardRef(y_), On = J(({
@@ -10145,29 +10145,29 @@ function __({
10145
10145
  }], [i.language]);
10146
10146
  return /* @__PURE__ */ u(F, { children: [
10147
10147
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10148
- /* @__PURE__ */ r(g, { name: `series.${t}.stack`, control: e, render: ({
10148
+ /* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
10149
10149
  field: s
10150
10150
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
10151
10151
  flexGrow: 1
10152
10152
  }, ...s }) }),
10153
- /* @__PURE__ */ r(g, { name: `series.${t}.barGap`, control: e, render: ({
10153
+ /* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
10154
10154
  field: s
10155
10155
  }) => /* @__PURE__ */ r(O, { label: a("chart.series.bar.bar_gap.label"), data: l, sx: {
10156
10156
  flexGrow: 1
10157
10157
  }, ...s }) })
10158
10158
  ] }),
10159
10159
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10160
- /* @__PURE__ */ r(g, { name: `series.${t}.barMinWidth`, control: e, render: ({
10160
+ /* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
10161
10161
  field: s
10162
10162
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
10163
10163
  flexGrow: 1
10164
10164
  }, ...s }) }),
10165
- /* @__PURE__ */ r(g, { name: `series.${t}.barWidth`, control: e, render: ({
10165
+ /* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
10166
10166
  field: s
10167
10167
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
10168
10168
  flexGrow: 1
10169
10169
  }, ...s }) }),
10170
- /* @__PURE__ */ r(g, { name: `series.${t}.barMaxWidth`, control: e, render: ({
10170
+ /* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
10171
10171
  field: s
10172
10172
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
10173
10173
  flexGrow: 1
@@ -10199,19 +10199,19 @@ function x_({
10199
10199
  return /* @__PURE__ */ u(F, { children: [
10200
10200
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: a("chart.series.line.line_settings"), labelPosition: "center" }),
10201
10201
  /* @__PURE__ */ u(_, { grow: !0, children: [
10202
- /* @__PURE__ */ r(g, { name: `series.${t}.lineStyle.type`, control: e, render: ({
10202
+ /* @__PURE__ */ r(f, { name: `series.${t}.lineStyle.type`, control: e, render: ({
10203
10203
  field: s
10204
10204
  }) => /* @__PURE__ */ r(En, { sx: {
10205
10205
  flexGrow: 1
10206
10206
  }, ...s }) }),
10207
- /* @__PURE__ */ r(g, { name: `series.${t}.lineStyle.width`, control: e, render: ({
10207
+ /* @__PURE__ */ r(f, { name: `series.${t}.lineStyle.width`, control: e, render: ({
10208
10208
  field: s
10209
10209
  }) => /* @__PURE__ */ r(ne, { label: a("chart.series.line.line_width"), min: 1, max: 10, sx: {
10210
10210
  flexGrow: 1
10211
10211
  }, ...s }) })
10212
10212
  ] }),
10213
10213
  /* @__PURE__ */ u(_, { grow: !0, align: "center", children: [
10214
- /* @__PURE__ */ r(g, { name: `series.${t}.step`, control: e, render: ({
10214
+ /* @__PURE__ */ r(f, { name: `series.${t}.step`, control: e, render: ({
10215
10215
  field: s
10216
10216
  }) => /* @__PURE__ */ r(O, { label: a("chart.series.line.step.label"), data: l, sx: {
10217
10217
  flexGrow: 1,
@@ -10221,12 +10221,12 @@ function x_({
10221
10221
  s.onChange(d);
10222
10222
  }) }) }),
10223
10223
  /* @__PURE__ */ u(T, { children: [
10224
- /* @__PURE__ */ r(g, { name: `series.${t}.smooth`, control: e, render: ({
10224
+ /* @__PURE__ */ r(f, { name: `series.${t}.smooth`, control: e, render: ({
10225
10225
  field: s
10226
10226
  }) => /* @__PURE__ */ r(A, { sx: {
10227
10227
  flexGrow: 1
10228
10228
  }, children: /* @__PURE__ */ r(Ce, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
10229
- /* @__PURE__ */ r(g, { name: `series.${t}.display_name_on_line`, control: e, render: ({
10229
+ /* @__PURE__ */ r(f, { name: `series.${t}.display_name_on_line`, control: e, render: ({
10230
10230
  field: s
10231
10231
  }) => /* @__PURE__ */ r(A, { sx: {
10232
10232
  flexGrow: 1
@@ -10234,16 +10234,16 @@ function x_({
10234
10234
  ] })
10235
10235
  ] }),
10236
10236
  /* @__PURE__ */ u(T, { children: [
10237
- /* @__PURE__ */ r(g, { name: `series.${t}.showSymbol`, control: e, render: ({
10237
+ /* @__PURE__ */ r(f, { name: `series.${t}.showSymbol`, control: e, render: ({
10238
10238
  field: s
10239
10239
  }) => /* @__PURE__ */ r(A, { mt: 10, mb: -10, sx: {
10240
10240
  flexGrow: 1
10241
10241
  }, children: /* @__PURE__ */ r(Ce, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
10242
- o && /* @__PURE__ */ r(g, { name: `series.${t}.symbolSize`, control: e, render: ({
10242
+ o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
10243
10243
  field: s
10244
10244
  }) => /* @__PURE__ */ r(hi, { ...s }) })
10245
10245
  ] }),
10246
- /* @__PURE__ */ r(g, { name: `series.${t}.areaStyle`, control: e, render: ({
10246
+ /* @__PURE__ */ r(f, { name: `series.${t}.areaStyle`, control: e, render: ({
10247
10247
  field: s
10248
10248
  }) => /* @__PURE__ */ r(oy, { ...s }) })
10249
10249
  ] });
@@ -10252,7 +10252,7 @@ function v_({
10252
10252
  control: e,
10253
10253
  index: t
10254
10254
  }) {
10255
- return /* @__PURE__ */ r(g, { name: `series.${t}.symbolSize`, control: e, render: ({
10255
+ return /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
10256
10256
  field: n
10257
10257
  }) => /* @__PURE__ */ r(hi, { label: "Size", ...n }) });
10258
10258
  }
@@ -10268,7 +10268,7 @@ function w_({
10268
10268
  return /* @__PURE__ */ u(T, { my: 0, p: 0, sx: {
10269
10269
  position: "relative"
10270
10270
  }, children: [
10271
- /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(g, { name: `series.${t}.type`, control: e, render: ({
10271
+ /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: `series.${t}.type`, control: e, render: ({
10272
10272
  field: s
10273
10273
  }) => /* @__PURE__ */ r(ka, { data: [{
10274
10274
  label: i("chart.series.line.label"),
@@ -10281,12 +10281,12 @@ function w_({
10281
10281
  value: "scatter"
10282
10282
  }], ...s }) }) }),
10283
10283
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10284
- /* @__PURE__ */ r(g, { name: `series.${t}.name`, control: e, render: ({
10284
+ /* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
10285
10285
  field: s
10286
10286
  }) => /* @__PURE__ */ r(V, { label: i("chart.series.name"), required: !0, sx: {
10287
10287
  flex: 1
10288
10288
  }, ...s }) }),
10289
- /* @__PURE__ */ r(g, { name: `series.${t}.yAxisIndex`, control: e, render: ({
10289
+ /* @__PURE__ */ r(f, { name: `series.${t}.yAxisIndex`, control: e, render: ({
10290
10290
  field: {
10291
10291
  value: s,
10292
10292
  onChange: c,
@@ -10303,35 +10303,35 @@ function w_({
10303
10303
  } }) })
10304
10304
  ] }),
10305
10305
  /* @__PURE__ */ u(ke, { cols: 2, children: [
10306
- /* @__PURE__ */ r(g, { name: `series.${t}.y_axis_data_key`, control: e, render: ({
10306
+ /* @__PURE__ */ r(f, { name: `series.${t}.y_axis_data_key`, control: e, render: ({
10307
10307
  field: s
10308
10308
  }) => /* @__PURE__ */ r(K, { label: i("chart.series.data_field"), required: !0, sx: {
10309
10309
  flex: 1
10310
10310
  }, ...s }) }),
10311
- /* @__PURE__ */ r(g, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
10311
+ /* @__PURE__ */ r(f, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
10312
10312
  field: s
10313
10313
  }) => /* @__PURE__ */ r(pi, { label: i("viz.cartesian_chart.series.aggregation.label"), value: s.value ?? Pn, onChange: s.onChange, pt: 0, withFallback: !1 }) })
10314
10314
  ] }),
10315
- /* @__PURE__ */ r(_, { grow: !0, children: /* @__PURE__ */ r(g, { name: `series.${t}.group_by_key`, control: e, render: ({
10315
+ /* @__PURE__ */ r(_, { grow: !0, children: /* @__PURE__ */ r(f, { name: `series.${t}.group_by_key`, control: e, render: ({
10316
10316
  field: s
10317
10317
  }) => /* @__PURE__ */ r(K, { label: i("chart.series.group_by.label"), clearable: !0, sx: {
10318
10318
  flex: 1
10319
10319
  }, ...s }) }) }),
10320
- !!l && /* @__PURE__ */ r(g, { name: `series.${t}.order_in_group`, control: e, render: ({
10320
+ !!l && /* @__PURE__ */ r(f, { name: `series.${t}.order_in_group`, control: e, render: ({
10321
10321
  field: s
10322
10322
  }) => /* @__PURE__ */ r(Ks, { label: i("chart.series_order.label"), hiddenKeys: ["value"], ...s }) }),
10323
10323
  o === "line" && /* @__PURE__ */ r(x_, { index: t, control: e, seriesItem: n }),
10324
10324
  o === "bar" && /* @__PURE__ */ r(__, { index: t, control: e, seriesItem: n }),
10325
10325
  o === "scatter" && /* @__PURE__ */ r(v_, { index: t, control: e }),
10326
10326
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: i("chart.style.label"), labelPosition: "center" }),
10327
- /* @__PURE__ */ r(g, { name: `series.${t}.label_position`, control: e, render: ({
10327
+ /* @__PURE__ */ r(f, { name: `series.${t}.label_position`, control: e, render: ({
10328
10328
  field: s
10329
10329
  }) => /* @__PURE__ */ r(On, { label: i("chart.label_position.label"), withOffOption: !0, ...s }) }),
10330
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `series.${t}.color`, control: e, render: ({
10330
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `series.${t}.color`, control: e, render: ({
10331
10331
  field: s
10332
10332
  }) => /* @__PURE__ */ r(Ke, { label: i("chart.color.label"), ...s }) }) }),
10333
10333
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: i("chart.behavior.label"), labelPosition: "center" }),
10334
- /* @__PURE__ */ r(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
10334
+ /* @__PURE__ */ r(f, { name: `series.${t}.hide_in_legend`, control: e, render: ({
10335
10335
  field: s
10336
10336
  }) => /* @__PURE__ */ r(te, { label: i("chart.legend.hide_in_legend"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) })
10337
10337
  ] });
@@ -10391,7 +10391,7 @@ const C_ = D(({
10391
10391
  t: a
10392
10392
  } = x();
10393
10393
  return /* @__PURE__ */ u(T, { children: [
10394
- /* @__PURE__ */ r(g, { name: "stats.top", control: e, render: ({
10394
+ /* @__PURE__ */ r(f, { name: "stats.top", control: e, render: ({
10395
10395
  field: i
10396
10396
  }) => /* @__PURE__ */ r(Zt, { label: a("chart.stats.template.above_chart"), styles: {
10397
10397
  root: {
@@ -10399,7 +10399,7 @@ const C_ = D(({
10399
10399
  minHeight: "240px"
10400
10400
  }
10401
10401
  }, autoSubmit: !0, ...i }, `${n.id}.stats.top`) }),
10402
- /* @__PURE__ */ r(g, { name: "stats.bottom", control: e, render: ({
10402
+ /* @__PURE__ */ r(f, { name: "stats.bottom", control: e, render: ({
10403
10403
  field: i
10404
10404
  }) => /* @__PURE__ */ r(Zt, { label: a("chart.stats.template.under_chart"), styles: {
10405
10405
  root: {
@@ -10416,12 +10416,12 @@ const C_ = D(({
10416
10416
  t: n
10417
10417
  } = x();
10418
10418
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10419
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
10419
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
10420
10420
  field: a
10421
10421
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
10422
10422
  flex: 1
10423
10423
  }, ...a }) }),
10424
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
10424
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
10425
10425
  field: a
10426
10426
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
10427
10427
  flex: 1
@@ -10504,18 +10504,18 @@ function I_({
10504
10504
  value: "log"
10505
10505
  }], [a.language]);
10506
10506
  return /* @__PURE__ */ u(T, { children: [
10507
- /* @__PURE__ */ r(g, { name: "x_axis_name", control: e, render: ({
10507
+ /* @__PURE__ */ r(f, { name: "x_axis_name", control: e, render: ({
10508
10508
  field: o
10509
10509
  }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
10510
10510
  flex: 1
10511
10511
  }, ...o }) }),
10512
10512
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10513
- /* @__PURE__ */ r(g, { name: "x_axis_data_key", control: e, render: ({
10513
+ /* @__PURE__ */ r(f, { name: "x_axis_data_key", control: e, render: ({
10514
10514
  field: o
10515
10515
  }) => /* @__PURE__ */ r(K, { label: n("chart.x_axis.x_axis_data_field"), required: !0, sx: {
10516
10516
  flex: 1
10517
10517
  }, ...o }) }),
10518
- /* @__PURE__ */ r(g, { name: "x_axis.type", control: e, render: ({
10518
+ /* @__PURE__ */ r(f, { name: "x_axis.type", control: e, render: ({
10519
10519
  field: o
10520
10520
  }) => /* @__PURE__ */ r(O, { label: /* @__PURE__ */ r(D_, {}), required: !0, data: i, sx: {
10521
10521
  flex: 1
@@ -10523,16 +10523,16 @@ function I_({
10523
10523
  ] }),
10524
10524
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.axis.tick_label"), labelPosition: "center" }),
10525
10525
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10526
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
10526
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
10527
10527
  field: o
10528
10528
  }) => /* @__PURE__ */ r(Ut, { sx: {
10529
10529
  width: "48%"
10530
10530
  }, ...o }) }),
10531
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
10531
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
10532
10532
  field: o
10533
10533
  }) => /* @__PURE__ */ r(zt, { ...o }) })
10534
10534
  ] }),
10535
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
10535
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
10536
10536
  field: o
10537
10537
  }) => /* @__PURE__ */ r(Tt, { ...o }) })
10538
10538
  ] });
@@ -10588,42 +10588,42 @@ function M_({
10588
10588
  }, children: [
10589
10589
  /* @__PURE__ */ r(P, { mb: -15, mt: 15, variant: "dashed", label: n("common.name"), labelPosition: "center" }),
10590
10590
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10591
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.name`, control: e, render: ({
10591
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
10592
10592
  field: a
10593
10593
  }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
10594
10594
  flex: 1
10595
10595
  }, ...a }) }),
10596
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
10596
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
10597
10597
  field: a
10598
10598
  }) => /* @__PURE__ */ r(an, { sx: {
10599
10599
  flex: 1
10600
10600
  }, ...a }) })
10601
10601
  ] }),
10602
10602
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.y_axis.layout"), labelPosition: "center" }),
10603
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: `y_axes.${t}.position`, control: e, render: ({
10603
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `y_axes.${t}.position`, control: e, render: ({
10604
10604
  field: a
10605
10605
  }) => /* @__PURE__ */ r(Xs, { sx: {
10606
10606
  flex: 1
10607
10607
  }, ...a }) }) }),
10608
10608
  /* @__PURE__ */ u(T, { children: [
10609
10609
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
10610
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
10610
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
10611
10611
  field: a
10612
10612
  }) => /* @__PURE__ */ r(bt, { ...a }) })
10613
10613
  ] }),
10614
10614
  /* @__PURE__ */ u(T, { children: [
10615
10615
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
10616
10616
  /* @__PURE__ */ u(_, { grow: !0, children: [
10617
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.min`, control: e, render: ({
10617
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
10618
10618
  field: a
10619
10619
  }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
10620
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.max`, control: e, render: ({
10620
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
10621
10621
  field: a
10622
10622
  }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
10623
10623
  ] })
10624
10624
  ] }),
10625
10625
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: n("chart.y_axis.behavior"), labelPosition: "center" }),
10626
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.show`, control: e, render: ({
10626
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.show`, control: e, render: ({
10627
10627
  field: a
10628
10628
  }) => /* @__PURE__ */ r(te, { label: n("chart.y_axis.visible"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
10629
10629
  ] });
@@ -10706,7 +10706,7 @@ function A_({
10706
10706
  /* @__PURE__ */ r(S.Panel, { value: "Stats", children: /* @__PURE__ */ r(C_, { control: l, watch: c }) }),
10707
10707
  /* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(u_, { variables: i, control: l, watch: c }) }),
10708
10708
  /* @__PURE__ */ r(S.Panel, { value: "Reference Areas", children: /* @__PURE__ */ r(c_, { variables: i, control: l, watch: c }) }),
10709
- /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(g, { name: "dataZoom", control: l, render: ({
10709
+ /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
10710
10710
  field: p
10711
10711
  }) => /* @__PURE__ */ r(Br, { ...p }) }) })
10712
10712
  ] })
@@ -10766,9 +10766,9 @@ function O_(e, t) {
10766
10766
  } = n;
10767
10767
  if (!a || !i)
10768
10768
  return {};
10769
- const p = N(a), f = N(i), y = t[p.queryID].map((w) => ({
10769
+ const p = N(a), g = N(i), y = t[p.queryID].map((w) => ({
10770
10770
  name: w[p.columnKey],
10771
- value: w[f.columnKey]
10771
+ value: w[g.columnKey]
10772
10772
  })), b = ft(o.overflow.on_axis);
10773
10773
  return {
10774
10774
  type: "funnel",
@@ -10968,20 +10968,20 @@ const H_ = ({
10968
10968
  value: "0"
10969
10969
  }], [o.language]);
10970
10970
  return /* @__PURE__ */ u(T, { children: [
10971
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: `series.${n}.name`, control: t, render: ({
10971
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.name`, control: t, render: ({
10972
10972
  field: p
10973
10973
  }) => /* @__PURE__ */ r(V, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
10974
10974
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10975
- /* @__PURE__ */ r(g, { name: `series.${n}.level_name_data_key`, control: t, render: ({
10975
+ /* @__PURE__ */ r(f, { name: `series.${n}.level_name_data_key`, control: t, render: ({
10976
10976
  field: p
10977
10977
  }) => /* @__PURE__ */ r(K, { label: i("viz.funnel_chart.level_name_field"), ...p }) }),
10978
- /* @__PURE__ */ r(g, { name: `series.${n}.level_value_data_key`, control: t, render: ({
10978
+ /* @__PURE__ */ r(f, { name: `series.${n}.level_value_data_key`, control: t, render: ({
10979
10979
  field: p
10980
10980
  }) => /* @__PURE__ */ r(K, { label: i("viz.funnel_chart.level_value_field"), ...p }) })
10981
10981
  ] }),
10982
10982
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: i("viz.funnel_chart.funnel_style"), labelPosition: "center" }),
10983
10983
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
10984
- /* @__PURE__ */ r(g, { name: `series.${n}.min.value`, control: t, render: ({
10984
+ /* @__PURE__ */ r(f, { name: `series.${n}.min.value`, control: t, render: ({
10985
10985
  field: p
10986
10986
  }) => /* @__PURE__ */ r(ne, { disabled: !l, labelProps: {
10987
10987
  display: "block"
@@ -10989,16 +10989,16 @@ const H_ = ({
10989
10989
  width: "100%"
10990
10990
  }, children: [
10991
10991
  /* @__PURE__ */ r(k, { size: "sm", children: i("viz.funnel_chart.min_value") }),
10992
- /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(g, { name: `series.${n}.min.enable_value`, control: t, render: ({
10993
- field: f
10994
- }) => /* @__PURE__ */ r(te, { size: "xs", checked: f.value, onChange: (y) => f.onChange(y.currentTarget.checked) }) }) }) })
10992
+ /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(f, { name: `series.${n}.min.enable_value`, control: t, render: ({
10993
+ field: g
10994
+ }) => /* @__PURE__ */ r(te, { size: "xs", checked: g.value, onChange: (y) => g.onChange(y.currentTarget.checked) }) }) }) })
10995
10995
  ] }), ...p }) }),
10996
- /* @__PURE__ */ r(g, { name: `series.${n}.min.size`, control: t, render: ({
10996
+ /* @__PURE__ */ r(f, { name: `series.${n}.min.size`, control: t, render: ({
10997
10997
  field: p
10998
10998
  }) => /* @__PURE__ */ r(V, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
10999
10999
  ] }),
11000
11000
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
11001
- /* @__PURE__ */ r(g, { name: `series.${n}.max.value`, control: t, render: ({
11001
+ /* @__PURE__ */ r(f, { name: `series.${n}.max.value`, control: t, render: ({
11002
11002
  field: p
11003
11003
  }) => /* @__PURE__ */ r(ne, { disabled: !s, labelProps: {
11004
11004
  display: "block"
@@ -11006,38 +11006,38 @@ const H_ = ({
11006
11006
  width: "100%"
11007
11007
  }, children: [
11008
11008
  /* @__PURE__ */ r(k, { size: "sm", children: i("viz.funnel_chart.max_value") }),
11009
- /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(g, { name: `series.${n}.max.enable_value`, control: t, render: ({
11010
- field: f
11011
- }) => /* @__PURE__ */ r(te, { size: "xs", checked: f.value, onChange: (y) => f.onChange(y.currentTarget.checked) }) }) }) })
11009
+ /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r(A, { children: /* @__PURE__ */ r(f, { name: `series.${n}.max.enable_value`, control: t, render: ({
11010
+ field: g
11011
+ }) => /* @__PURE__ */ r(te, { size: "xs", checked: g.value, onChange: (y) => g.onChange(y.currentTarget.checked) }) }) }) })
11012
11012
  ] }), ...p }) }),
11013
- /* @__PURE__ */ r(g, { name: `series.${n}.max.size`, control: t, render: ({
11013
+ /* @__PURE__ */ r(f, { name: `series.${n}.max.size`, control: t, render: ({
11014
11014
  field: p
11015
11015
  }) => /* @__PURE__ */ r(V, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
11016
11016
  ] }),
11017
11017
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
11018
- /* @__PURE__ */ r(g, { name: `series.${n}.orient`, control: t, render: ({
11018
+ /* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
11019
11019
  field: p
11020
11020
  }) => /* @__PURE__ */ r(rn, { ...p }) }),
11021
- /* @__PURE__ */ r(g, { name: `series.${n}.sort`, control: t, render: ({
11021
+ /* @__PURE__ */ r(f, { name: `series.${n}.sort`, control: t, render: ({
11022
11022
  field: p
11023
11023
  }) => /* @__PURE__ */ r(O, { label: i("viz.funnel_chart.sort.label"), data: h, ...p }) })
11024
11024
  ] }),
11025
11025
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
11026
- /* @__PURE__ */ r(g, { name: `series.${n}.funnelAlign`, control: t, render: ({
11026
+ /* @__PURE__ */ r(f, { name: `series.${n}.funnelAlign`, control: t, render: ({
11027
11027
  field: p
11028
11028
  }) => /* @__PURE__ */ r(an, { label: i("viz.funnel_chart.align"), disabled: c === "horizontal", ...p }) }),
11029
- /* @__PURE__ */ r(g, { name: `series.${n}.gap`, control: t, render: ({
11029
+ /* @__PURE__ */ r(f, { name: `series.${n}.gap`, control: t, render: ({
11030
11030
  field: p
11031
11031
  }) => /* @__PURE__ */ r(ne, { placeholder: "0, 5, 10...", label: i("viz.funnel_chart.gap"), ...p }) })
11032
11032
  ] }),
11033
11033
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: i("chart.label.label_style"), labelPosition: "center" }),
11034
11034
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
11035
- /* @__PURE__ */ r(g, { name: `series.${n}.axisLabel.position`, control: t, render: ({
11035
+ /* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.position`, control: t, render: ({
11036
11036
  field: p
11037
11037
  }) => /* @__PURE__ */ r(On, { label: i("chart.label_position.label"), options: d[c], ...p }) }),
11038
11038
  /* @__PURE__ */ r(A, {})
11039
11039
  ] }),
11040
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
11040
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
11041
11041
  field: p
11042
11042
  }) => /* @__PURE__ */ r(Tt, { ...p }) }) })
11043
11043
  ] });
@@ -11343,14 +11343,14 @@ function dx({
11343
11343
  label: "",
11344
11344
  value: pt(e.y_axis.axisLabel.overflow.in_tooltip)
11345
11345
  }
11346
- }, f = {
11346
+ }, g = {
11347
11347
  label: e.heat_block.name,
11348
11348
  value: n.heat_block(d),
11349
11349
  style: {
11350
11350
  label: "",
11351
11351
  value: ""
11352
11352
  }
11353
- }, y = [h, p, f], b = a[`${s}---${c}`];
11353
+ }, y = [h, p, g], b = a[`${s}---${c}`];
11354
11354
  return b && e.tooltip.metrics.forEach((w) => {
11355
11355
  const I = N(w.data_key);
11356
11356
  y.push({
@@ -11373,7 +11373,7 @@ function ux(e, t, n, a) {
11373
11373
  const d = C.keyBy(t[s.queryID], (h) => `${h[s.columnKey]}---${h[c.columnKey]}`);
11374
11374
  return pe.getTooltip({
11375
11375
  formatter: function(h) {
11376
- const f = dx({
11376
+ const g = dx({
11377
11377
  conf: e,
11378
11378
  labelFormatters: n,
11379
11379
  valueFormatters: a,
@@ -11399,7 +11399,7 @@ function ux(e, t, n, a) {
11399
11399
  />
11400
11400
  </tr>
11401
11401
  </thead>
11402
- <tbody>${f.join("")}</tbody>
11402
+ <tbody>${g.join("")}</tbody>
11403
11403
  </table>
11404
11404
  `;
11405
11405
  }
@@ -11520,16 +11520,16 @@ const er = ({
11520
11520
  t
11521
11521
  } = x();
11522
11522
  return /* @__PURE__ */ u(T, { children: [
11523
- /* @__PURE__ */ r(g, { control: e.control, name: "visualMap.skipRange.lt_min", render: ({
11523
+ /* @__PURE__ */ r(f, { control: e.control, name: "visualMap.skipRange.lt_min", render: ({
11524
11524
  field: n
11525
11525
  }) => /* @__PURE__ */ r(er, { field: n, label: t("chart.visual_map.skip_range.lt_min") }) }),
11526
- /* @__PURE__ */ r(g, { control: e.control, name: "visualMap.skipRange.min", render: ({
11526
+ /* @__PURE__ */ r(f, { control: e.control, name: "visualMap.skipRange.min", render: ({
11527
11527
  field: n
11528
11528
  }) => /* @__PURE__ */ r(er, { field: n, label: t("chart.visual_map.skip_range.min") }) }),
11529
- /* @__PURE__ */ r(g, { control: e.control, name: "visualMap.skipRange.max", render: ({
11529
+ /* @__PURE__ */ r(f, { control: e.control, name: "visualMap.skipRange.max", render: ({
11530
11530
  field: n
11531
11531
  }) => /* @__PURE__ */ r(er, { field: n, label: t("chart.visual_map.skip_range.max") }) }),
11532
- /* @__PURE__ */ r(g, { control: e.control, name: "visualMap.skipRange.gt_max", render: ({
11532
+ /* @__PURE__ */ r(f, { control: e.control, name: "visualMap.skipRange.gt_max", render: ({
11533
11533
  field: n
11534
11534
  }) => /* @__PURE__ */ r(er, { field: n, label: t("chart.visual_map.skip_range.gt_max") }) })
11535
11535
  ] });
@@ -11547,20 +11547,20 @@ const er = ({
11547
11547
  };
11548
11548
  return o !== "continuous" ? null : /* @__PURE__ */ u(T, { children: [
11549
11549
  /* @__PURE__ */ u(_, { grow: !0, children: [
11550
- /* @__PURE__ */ r(g, { name: "visualMap.text.1", control: a, render: ({
11550
+ /* @__PURE__ */ r(f, { name: "visualMap.text.1", control: a, render: ({
11551
11551
  field: d
11552
11552
  }) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.min_text"), ...d }) }),
11553
- /* @__PURE__ */ r(g, { name: "visualMap.text.0", control: a, render: ({
11553
+ /* @__PURE__ */ r(f, { name: "visualMap.text.0", control: a, render: ({
11554
11554
  field: d
11555
11555
  }) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.max_text"), ...d }) })
11556
11556
  ] }),
11557
11557
  /* @__PURE__ */ u(_, { grow: !0, children: [
11558
- /* @__PURE__ */ r(g, { name: "visualMap.orient", control: a, render: ({
11558
+ /* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
11559
11559
  field: d
11560
11560
  }) => /* @__PURE__ */ r(rn, { sx: {
11561
11561
  flex: 1
11562
11562
  }, ...d }) }),
11563
- /* @__PURE__ */ r(g, { name: "visualMap.calculable", control: a, render: ({
11563
+ /* @__PURE__ */ r(f, { name: "visualMap.calculable", control: a, render: ({
11564
11564
  field: d
11565
11565
  }) => /* @__PURE__ */ r(te, { label: t("chart.visual_map.calculable"), checked: d.value, onChange: (h) => d.onChange(h.currentTarget.checked), styles: {
11566
11566
  root: {
@@ -11573,14 +11573,14 @@ const er = ({
11573
11573
  flexDirection: s ? "row-reverse" : "row"
11574
11574
  }
11575
11575
  }, children: [
11576
- /* @__PURE__ */ r(g, { name: "visualMap.itemWidth", control: a, render: ({
11576
+ /* @__PURE__ */ r(f, { name: "visualMap.itemWidth", control: a, render: ({
11577
11577
  field: d
11578
11578
  }) => /* @__PURE__ */ r(ne, { label: t(s ? "chart.visual_map.bar_height" : "chart.visual_map.bar_width"), ...d, onChange: c(d.onChange) }) }),
11579
- /* @__PURE__ */ r(g, { name: "visualMap.itemHeight", control: a, render: ({
11579
+ /* @__PURE__ */ r(f, { name: "visualMap.itemHeight", control: a, render: ({
11580
11580
  field: d
11581
11581
  }) => /* @__PURE__ */ r(ne, { label: t(s ? "chart.visual_map.bar_width" : "chart.visual_map.bar_height"), ...d, onChange: c(d.onChange) }) })
11582
11582
  ] }),
11583
- /* @__PURE__ */ r(g, { name: "visualMap.inRange.color", control: a, render: ({
11583
+ /* @__PURE__ */ r(f, { name: "visualMap.inRange.color", control: a, render: ({
11584
11584
  field: d
11585
11585
  }) => /* @__PURE__ */ r(_s, { ...d }) }),
11586
11586
  /* @__PURE__ */ r(mx, { form: e })
@@ -11637,22 +11637,22 @@ const er = ({
11637
11637
  return /* @__PURE__ */ r(_, { wrap: "nowrap", children: /* @__PURE__ */ u(ut, { width: 400, position: "bottom", withArrow: !0, shadow: "md", opened: d, onChange: h, withinPortal: !0, zIndex: 340, children: [
11638
11638
  /* @__PURE__ */ r(ut.Target, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "compact-sm", px: 0, onClick: () => h((p) => !p), fw: "normal", ff: "monospace", children: c }) }),
11639
11639
  /* @__PURE__ */ r(ut.Dropdown, { children: /* @__PURE__ */ u(_, { wrap: "nowrap", gap: 8, children: [
11640
- /* @__PURE__ */ r(g, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
11640
+ /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
11641
11641
  field: p
11642
- }) => /* @__PURE__ */ r(V, { ...p, placeholder: n("chart.visual_map.min_value"), size: "xs", onChange: (f) => p.onChange(f.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) }),
11643
- /* @__PURE__ */ r(g, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
11642
+ }) => /* @__PURE__ */ r(V, { ...p, placeholder: n("chart.visual_map.min_value"), size: "xs", onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) }),
11643
+ /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
11644
11644
  field: p
11645
- }) => /* @__PURE__ */ r(O, { size: "xs", data: so.lower, ...p, onChange: xe((f) => p.onChange(f)) }) }),
11645
+ }) => /* @__PURE__ */ r(O, { size: "xs", data: so.lower, ...p, onChange: xe((g) => p.onChange(g)) }) }),
11646
11646
  /* @__PURE__ */ r(k, { c: "dimmed", size: "sm", sx: {
11647
11647
  userSelect: "none",
11648
11648
  cursor: "default"
11649
11649
  }, children: n("common.value").toLowerCase() }),
11650
- /* @__PURE__ */ r(g, { name: `visualMap.pieces.${t}.upper.symbol`, control: a, render: ({
11650
+ /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.symbol`, control: a, render: ({
11651
11651
  field: p
11652
- }) => /* @__PURE__ */ r(O, { size: "xs", data: so.upper, ...p, onChange: xe((f) => p.onChange(f)) }) }),
11653
- /* @__PURE__ */ r(g, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
11652
+ }) => /* @__PURE__ */ r(O, { size: "xs", data: so.upper, ...p, onChange: xe((g) => p.onChange(g)) }) }),
11653
+ /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
11654
11654
  field: p
11655
- }) => /* @__PURE__ */ r(V, { ...p, size: "xs", placeholder: n("chart.visual_map.max_value"), onChange: (f) => p.onChange(f.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) })
11655
+ }) => /* @__PURE__ */ r(V, { ...p, size: "xs", placeholder: n("chart.visual_map.max_value"), onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) })
11656
11656
  ] }) })
11657
11657
  ] }) });
11658
11658
  }, yx = ({
@@ -11668,10 +11668,10 @@ const er = ({
11668
11668
  return /* @__PURE__ */ u(v.Tr, { children: [
11669
11669
  /* @__PURE__ */ r(v.Td, { children: (t + 1).toString() }),
11670
11670
  /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(bx, { form: e, index: t }) }),
11671
- /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(g, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
11671
+ /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
11672
11672
  field: o
11673
11673
  }) => /* @__PURE__ */ r(V, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
11674
- /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(g, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
11674
+ /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
11675
11675
  field: o
11676
11676
  }) => /* @__PURE__ */ r(Jt, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
11677
11677
  withinPortal: !0,
@@ -11743,19 +11743,19 @@ const er = ({
11743
11743
  typeof h != "string" && d(h);
11744
11744
  };
11745
11745
  return o !== "piecewise" ? null : /* @__PURE__ */ u(T, { children: [
11746
- /* @__PURE__ */ r(g, { name: "visualMap.precision", control: a, render: ({
11746
+ /* @__PURE__ */ r(f, { name: "visualMap.precision", control: a, render: ({
11747
11747
  field: d
11748
11748
  }) => /* @__PURE__ */ r(ne, { label: t("chart.visual_map.precision"), ...d, onChange: c(d.onChange) }) }),
11749
- /* @__PURE__ */ r(g, { name: "visualMap.orient", control: a, render: ({
11749
+ /* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
11750
11750
  field: d
11751
11751
  }) => /* @__PURE__ */ r(rn, { sx: {
11752
11752
  flex: 1
11753
11753
  }, ...d }) }),
11754
11754
  /* @__PURE__ */ u(_, { grow: !0, children: [
11755
- /* @__PURE__ */ r(g, { name: "visualMap.itemWidth", control: a, render: ({
11755
+ /* @__PURE__ */ r(f, { name: "visualMap.itemWidth", control: a, render: ({
11756
11756
  field: d
11757
11757
  }) => /* @__PURE__ */ r(ne, { label: t("chart.visual_map.item_width"), ...d, onChange: c(d.onChange) }) }),
11758
- /* @__PURE__ */ r(g, { name: "visualMap.itemHeight", control: a, render: ({
11758
+ /* @__PURE__ */ r(f, { name: "visualMap.itemHeight", control: a, render: ({
11759
11759
  field: d
11760
11760
  }) => /* @__PURE__ */ r(ne, { label: t("chart.visual_map.item_height"), ...d, onChange: c(d.onChange) }) })
11761
11761
  ] }),
@@ -11787,16 +11787,16 @@ const er = ({
11787
11787
  };
11788
11788
  return /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ u(T, { children: [
11789
11789
  /* @__PURE__ */ r(fx, { visualMap: i }),
11790
- /* @__PURE__ */ r(g, { name: "visualMap.type", control: a, render: ({
11790
+ /* @__PURE__ */ r(f, { name: "visualMap.type", control: a, render: ({
11791
11791
  field: s
11792
11792
  }) => /* @__PURE__ */ r(ka, { mt: -10, data: o, sx: {
11793
11793
  flex: 1
11794
11794
  }, ...s, onChange: l }) }),
11795
11795
  /* @__PURE__ */ u(_, { grow: !0, children: [
11796
- /* @__PURE__ */ r(g, { name: "visualMap.min", control: a, render: ({
11796
+ /* @__PURE__ */ r(f, { name: "visualMap.min", control: a, render: ({
11797
11797
  field: s
11798
11798
  }) => /* @__PURE__ */ r(eo, { label: t("chart.visual_map.min_value"), ...s }) }),
11799
- /* @__PURE__ */ r(g, { name: "visualMap.max", control: a, render: ({
11799
+ /* @__PURE__ */ r(f, { name: "visualMap.max", control: a, render: ({
11800
11800
  field: s
11801
11801
  }) => /* @__PURE__ */ r(eo, { label: t("chart.visual_map.max_value"), ...s }) })
11802
11802
  ] }),
@@ -11817,7 +11817,7 @@ function wx(e, t, n, a, i, o) {
11817
11817
  }, {}), s = Rr(e.visualMap, l), {
11818
11818
  min: c,
11819
11819
  max: d
11820
- } = s, h = ix(e), p = ox(e), f = N(e.x_axis.data_key), y = N(e.y_axis.data_key), b = C.uniq(t[f.queryID].map((q) => q[f.columnKey])), w = C.uniq(t[f.queryID].map((q) => q[y.columnKey])), I = n.map((q) => {
11820
+ } = s, h = ix(e), p = ox(e), g = N(e.x_axis.data_key), y = N(e.y_axis.data_key), b = C.uniq(t[g.queryID].map((q) => q[g.columnKey])), w = C.uniq(t[g.queryID].map((q) => q[y.columnKey])), I = n.map((q) => {
11821
11821
  const X = C.clone(q), {
11822
11822
  followVisualMap: Q,
11823
11823
  color: ue
@@ -11841,9 +11841,9 @@ function Sx(e, t) {
11841
11841
  if (!s)
11842
11842
  return {};
11843
11843
  const c = s.map((d) => {
11844
- const h = C.get(d, n.columnKey), p = C.get(d, a.columnKey), f = C.get(d, i.columnKey);
11844
+ const h = C.get(d, n.columnKey), p = C.get(d, a.columnKey), g = C.get(d, i.columnKey);
11845
11845
  return {
11846
- value: [h, p, f]
11846
+ value: [h, p, g]
11847
11847
  };
11848
11848
  });
11849
11849
  return C.groupBy(c, "value.1");
@@ -11973,14 +11973,14 @@ function Tx({
11973
11973
  rowData: R
11974
11974
  });
11975
11975
  });
11976
- }, [c, d, o]), p = $.useRef(null), f = ae(() => {
11976
+ }, [c, d, o]), p = $.useRef(null), g = ae(() => {
11977
11977
  var I;
11978
11978
  const w = (I = p.current) == null ? void 0 : I.getEchartsInstance();
11979
11979
  w && Ye(s, w.getOption());
11980
11980
  }, [s]), y = z(() => ({
11981
11981
  click: h,
11982
- finished: f
11983
- }), [h, f]), b = $.useMemo(() => wx(e, t, n, l, a, i), [e, t, n, a, i]);
11982
+ finished: g
11983
+ }), [h, g]), b = $.useMemo(() => wx(e, t, n, l, a, i), [e, t, n, a, i]);
11984
11984
  return /* @__PURE__ */ r(He, { echarts: Ne, option: b, style: {
11985
11985
  width: a,
11986
11986
  height: i
@@ -12003,9 +12003,9 @@ function Dx({
12003
12003
  } = e.viewport, {
12004
12004
  totalPages: d,
12005
12005
  groupedFullData: h
12006
- } = Sx(l, o), [p, f] = G(1), y = Cx(h, o, p);
12006
+ } = Sx(l, o), [p, g] = G(1), y = Cx(h, o, p);
12007
12007
  return !s || !c ? null : /* @__PURE__ */ u(nt, { width: s, height: c, children: [
12008
- o.pagination.page_size > 0 && /* @__PURE__ */ r(ax, { page: p, setPage: f, totalPages: d, width: s }),
12008
+ o.pagination.page_size > 0 && /* @__PURE__ */ r(ax, { page: p, setPage: g, totalPages: d, width: s }),
12009
12009
  /* @__PURE__ */ r(Tx, { instance: t, variables: i, width: St(s), height: Ct(c), data: l, seriesData: y, conf: o, interactionManager: n })
12010
12010
  ] });
12011
12011
  }
@@ -12020,29 +12020,29 @@ function Ix({
12020
12020
  const a = t("heat_block.label.show");
12021
12021
  return /* @__PURE__ */ u(T, { children: [
12022
12022
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12023
- /* @__PURE__ */ r(g, { name: "heat_block.data_key", control: e, render: ({
12023
+ /* @__PURE__ */ r(f, { name: "heat_block.data_key", control: e, render: ({
12024
12024
  field: i
12025
12025
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), sx: {
12026
12026
  flex: 1
12027
12027
  }, ...i }) }),
12028
- /* @__PURE__ */ r(g, { name: "heat_block.name", control: e, render: ({
12028
+ /* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
12029
12029
  field: i
12030
12030
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12031
12031
  flex: 1
12032
12032
  }, ...i }) })
12033
12033
  ] }),
12034
12034
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
12035
- /* @__PURE__ */ r(g, { name: "heat_block.value_formatter", control: e, render: ({
12035
+ /* @__PURE__ */ r(f, { name: "heat_block.value_formatter", control: e, render: ({
12036
12036
  field: i
12037
12037
  }) => /* @__PURE__ */ r(bt, { ...i }) }),
12038
12038
  /* @__PURE__ */ r(P, { mb: -5, variant: "dashed", label: n("chart.label.label"), labelPosition: "center" }),
12039
12039
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12040
- /* @__PURE__ */ r(g, { name: "heat_block.label.show", control: e, render: ({
12040
+ /* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
12041
12041
  field: i
12042
12042
  }) => /* @__PURE__ */ r(Ce, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
12043
12043
  flexGrow: 1
12044
12044
  } }) }),
12045
- /* @__PURE__ */ r(g, { name: "heat_block.label.fontSize", control: e, render: ({
12045
+ /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
12046
12046
  field: i
12047
12047
  }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Da, { size: 16 }), disabled: !a, ...i }) })
12048
12048
  ] })
@@ -12055,7 +12055,7 @@ function Mx({
12055
12055
  const {
12056
12056
  t: n
12057
12057
  } = x();
12058
- return t(["pagination"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(g, { name: "pagination.page_size", control: e, render: ({
12058
+ return t(["pagination"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: "pagination.page_size", control: e, render: ({
12059
12059
  field: a
12060
12060
  }) => /* @__PURE__ */ r(ne, { label: n("common.pagination.page_size"), description: n("viz.heatmap.pagination.page_size_hint"), sx: {
12061
12061
  flex: 1
@@ -12071,12 +12071,12 @@ const Lx = ({
12071
12071
  t: n
12072
12072
  } = x();
12073
12073
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12074
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
12074
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
12075
12075
  field: a
12076
12076
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
12077
12077
  flex: 1
12078
12078
  }, ...a }) }),
12079
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
12079
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
12080
12080
  field: a
12081
12081
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
12082
12082
  flex: 1
@@ -12126,28 +12126,28 @@ function $x({
12126
12126
  } = x();
12127
12127
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
12128
12128
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12129
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
12129
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
12130
12130
  field: a
12131
12131
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), sx: {
12132
12132
  flex: 1
12133
12133
  }, ...a }) }),
12134
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
12134
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
12135
12135
  field: a
12136
12136
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12137
12137
  flex: 1
12138
12138
  }, ...a }) })
12139
12139
  ] }),
12140
12140
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
12141
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
12141
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
12142
12142
  field: a
12143
12143
  }) => /* @__PURE__ */ r(Tt, { ...a }) }),
12144
12144
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12145
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
12145
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
12146
12146
  field: a
12147
12147
  }) => /* @__PURE__ */ r(Ut, { sx: {
12148
12148
  width: "48%"
12149
12149
  }, ...a }) }),
12150
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
12150
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
12151
12151
  field: a
12152
12152
  }) => /* @__PURE__ */ r(zt, { ...a }) })
12153
12153
  ] })
@@ -12164,23 +12164,23 @@ function Px({
12164
12164
  position: "relative"
12165
12165
  }, children: [
12166
12166
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12167
- /* @__PURE__ */ r(g, { name: "y_axis.data_key", control: e, render: ({
12167
+ /* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
12168
12168
  field: a
12169
12169
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), sx: {
12170
12170
  flex: 1
12171
12171
  }, ...a }) }),
12172
- /* @__PURE__ */ r(g, { name: "y_axis.name", control: e, render: ({
12172
+ /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
12173
12173
  field: a
12174
12174
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12175
12175
  flex: 1
12176
12176
  }, ...a }) })
12177
12177
  ] }),
12178
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "y_axis.nameAlignment", control: e, render: ({
12178
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "y_axis.nameAlignment", control: e, render: ({
12179
12179
  field: a
12180
12180
  }) => /* @__PURE__ */ r(an, { sx: {
12181
12181
  flex: 1
12182
12182
  }, ...a }) }) }),
12183
- /* @__PURE__ */ r(g, { name: "y_axis.inverse", control: e, render: ({
12183
+ /* @__PURE__ */ r(f, { name: "y_axis.inverse", control: e, render: ({
12184
12184
  field: a
12185
12185
  }) => /* @__PURE__ */ r(te, { size: "sm", checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked), label: n("chart.y_axis.inverse"), styles: {
12186
12186
  root: {
@@ -12195,16 +12195,16 @@ function Px({
12195
12195
  }
12196
12196
  } }) }),
12197
12197
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
12198
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.overflow", control: e, render: ({
12198
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.overflow", control: e, render: ({
12199
12199
  field: a
12200
12200
  }) => /* @__PURE__ */ r(Tt, { ...a }) }),
12201
12201
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12202
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.rotate", control: e, render: ({
12202
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.rotate", control: e, render: ({
12203
12203
  field: a
12204
12204
  }) => /* @__PURE__ */ r(Ut, { sx: {
12205
12205
  width: "48%"
12206
12206
  }, ...a }) }),
12207
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
12207
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.formatter", control: e, render: ({
12208
12208
  field: a
12209
12209
  }) => /* @__PURE__ */ r(zt, { ...a }) })
12210
12210
  ] })
@@ -12652,10 +12652,10 @@ function nv(e, t, n) {
12652
12652
  const o = N(a.data_key), l = N(i);
12653
12653
  if (o.queryID !== l.queryID)
12654
12654
  throw new Error("Please use the same query for X & Y axis");
12655
- const s = t[o.queryID].map((f) => [f[o.columnKey], Number(f[l.columnKey])]).sort((f, y) => y[1] - f[1]), c = s.reduce((f, y) => f + y[1], 0), d = s.reduce((f, y, b) => {
12656
- const w = b === 0 ? 0 : f[b - 1][1];
12657
- return f.push([y[0], w + y[1]]), f;
12658
- }, []).map((f) => [f[0], f[1] / c]), {
12655
+ const s = t[o.queryID].map((g) => [g[o.columnKey], Number(g[l.columnKey])]).sort((g, y) => y[1] - g[1]), c = s.reduce((g, y) => g + y[1], 0), d = s.reduce((g, y, b) => {
12656
+ const w = b === 0 ? 0 : g[b - 1][1];
12657
+ return g.push([y[0], w + y[1]]), g;
12658
+ }, []).map((g) => [g[0], g[1] / c]), {
12659
12659
  markLine: h,
12660
12660
  markArea: p
12661
12661
  } = tv(e, d);
@@ -12706,11 +12706,11 @@ const rv = (e, t) => (n) => {
12706
12706
  const d = s.seriesName, [h, p] = s.value;
12707
12707
  if (!d)
12708
12708
  return p;
12709
- const f = c === 0 ? t.bar : t.lineValue;
12709
+ const g = c === 0 ? t.bar : t.lineValue;
12710
12710
  return `
12711
12711
  <tr>
12712
12712
  <th style="text-align: right; padding: 0 1em;">${d}</th>
12713
- <td style="text-align: left; padding: 0 1em;">${f(p)}</td>
12713
+ <td style="text-align: left; padding: 0 1em;">${g(p)}</td>
12714
12714
  </tr>
12715
12715
  `;
12716
12716
  }), o = pt(e.x_axis.axisLabel.overflow.in_tooltip), l = a[0].name;
@@ -12848,7 +12848,7 @@ function dv({
12848
12848
  } = e.viewport, s = he({}, a, bi), c = cv(s, i, n), d = ct({
12849
12849
  vizManager: e.vizManager,
12850
12850
  instance: t
12851
- }), h = st(d.triggerManager, ec.id), p = yn(i, s.x_axis.data_key), f = ae((I) => {
12851
+ }), h = st(d.triggerManager, ec.id), p = yn(i, s.x_axis.data_key), g = ae((I) => {
12852
12852
  const M = C.get(p, I.name, {
12853
12853
  error: "rowData is not found"
12854
12854
  });
@@ -12863,9 +12863,9 @@ function dv({
12863
12863
  const I = (M = y.current) == null ? void 0 : M.getEchartsInstance();
12864
12864
  I && Ye(t, I.getOption());
12865
12865
  }, [t]), w = z(() => ({
12866
- click: f,
12866
+ click: g,
12867
12867
  finished: b
12868
- }), [f, b]);
12868
+ }), [g, b]);
12869
12869
  return !s || !o || !l ? null : /* @__PURE__ */ r(nt, { width: o, height: l, children: /* @__PURE__ */ r(He, { echarts: Ne, option: c, ref: y, style: Xn(o, l), onEvents: w, notMerge: !0, theme: "merico-light" }) });
12870
12870
  }
12871
12871
  function uv({
@@ -12877,23 +12877,23 @@ function uv({
12877
12877
  } = x();
12878
12878
  return t(["bar"]), /* @__PURE__ */ u(T, { children: [
12879
12879
  /* @__PURE__ */ u(_, { grow: !0, children: [
12880
- /* @__PURE__ */ r(g, { name: "bar.name", control: e, render: ({
12880
+ /* @__PURE__ */ r(f, { name: "bar.name", control: e, render: ({
12881
12881
  field: a
12882
12882
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12883
12883
  flex: 1
12884
12884
  }, ...a }) }),
12885
- /* @__PURE__ */ r(g, { name: "bar.nameAlignment", control: e, render: ({
12885
+ /* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
12886
12886
  field: a
12887
12887
  }) => /* @__PURE__ */ r(an, { sx: {
12888
12888
  flex: 1
12889
12889
  }, ...a }) })
12890
12890
  ] }),
12891
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: "bar.color", control: e, render: ({
12891
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: "bar.color", control: e, render: ({
12892
12892
  field: a
12893
12893
  }) => /* @__PURE__ */ r(Ke, { label: n("chart.color.label"), ...a }) }) }),
12894
12894
  /* @__PURE__ */ u(T, { children: [
12895
12895
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.label.label_format"), labelPosition: "center" }),
12896
- /* @__PURE__ */ r(g, { name: "bar.label_formatter", control: e, render: ({
12896
+ /* @__PURE__ */ r(f, { name: "bar.label_formatter", control: e, render: ({
12897
12897
  field: a
12898
12898
  }) => /* @__PURE__ */ r(bt, { ...a }) })
12899
12899
  ] })
@@ -12908,18 +12908,18 @@ function hv({
12908
12908
  } = x();
12909
12909
  return t(["line"]), /* @__PURE__ */ u(T, { children: [
12910
12910
  /* @__PURE__ */ u(_, { grow: !0, children: [
12911
- /* @__PURE__ */ r(g, { name: "line.name", control: e, render: ({
12911
+ /* @__PURE__ */ r(f, { name: "line.name", control: e, render: ({
12912
12912
  field: a
12913
12913
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12914
12914
  flex: 1
12915
12915
  }, ...a }) }),
12916
- /* @__PURE__ */ r(g, { name: "line.nameAlignment", control: e, render: ({
12916
+ /* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
12917
12917
  field: a
12918
12918
  }) => /* @__PURE__ */ r(an, { sx: {
12919
12919
  flex: 1
12920
12920
  }, ...a }) })
12921
12921
  ] }),
12922
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: "line.color", control: e, render: ({
12922
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: "line.color", control: e, render: ({
12923
12923
  field: a
12924
12924
  }) => /* @__PURE__ */ r(Ke, { label: n("chart.color.label"), ...a }) }) })
12925
12925
  ] });
@@ -12965,11 +12965,11 @@ function gv({
12965
12965
  t: n
12966
12966
  } = x();
12967
12967
  return t(["markLine"]), /* @__PURE__ */ u(T, { children: [
12968
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: "markLine.color", control: e, render: ({
12968
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: "markLine.color", control: e, render: ({
12969
12969
  field: a
12970
12970
  }) => /* @__PURE__ */ r(Ke, { label: n("chart.color.label"), ...a }) }) }),
12971
12971
  /* @__PURE__ */ u(T, { gap: 4, children: [
12972
- /* @__PURE__ */ r(g, { name: "markLine.label_template", control: e, render: ({
12972
+ /* @__PURE__ */ r(f, { name: "markLine.label_template", control: e, render: ({
12973
12973
  field: a
12974
12974
  }) => /* @__PURE__ */ r(ll, { autosize: !0, minRows: 2, maxRows: 4, label: n("viz.pareto_chart.line_80_20.label_template"), sx: {
12975
12975
  flex: 1
@@ -12992,29 +12992,29 @@ function fv({
12992
12992
  position: "relative"
12993
12993
  }, children: [
12994
12994
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
12995
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.name`, control: e, render: ({
12995
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
12996
12996
  field: s
12997
12997
  }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
12998
12998
  flex: 1
12999
12999
  }, ...s }) }),
13000
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
13000
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
13001
13001
  field: s
13002
13002
  }) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
13003
13003
  flex: 1
13004
13004
  }, ...s }) })
13005
13005
  ] }),
13006
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.template`, control: e, render: ({
13006
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
13007
13007
  field: s
13008
13008
  }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
13009
13009
  flex: 1
13010
13010
  }, ...s }) }),
13011
13011
  /* @__PURE__ */ u(_, { grow: !0, children: [
13012
- /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
13012
+ /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
13013
13013
  field: s
13014
13014
  }) => /* @__PURE__ */ r(rn, { label: o("chart.orientation.label"), sx: {
13015
13015
  flex: 1
13016
13016
  }, ...s }) }) }),
13017
- l === "horizontal" && /* @__PURE__ */ r(g, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
13017
+ l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
13018
13018
  field: {
13019
13019
  value: s,
13020
13020
  onChange: c,
@@ -13032,18 +13032,18 @@ function fv({
13032
13032
  ] }),
13033
13033
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: o("chart.style.label"), labelPosition: "center" }),
13034
13034
  /* @__PURE__ */ u(_, { grow: !0, children: [
13035
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
13035
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
13036
13036
  field: s
13037
13037
  }) => /* @__PURE__ */ r(En, { sx: {
13038
13038
  flexGrow: 1
13039
13039
  }, ...s }) }),
13040
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
13040
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
13041
13041
  field: s
13042
13042
  }) => /* @__PURE__ */ r(ne, { label: o("chart.series.line.line_width"), min: 1, max: 10, sx: {
13043
13043
  flexGrow: 1
13044
13044
  }, ...s }) })
13045
13045
  ] }),
13046
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
13046
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
13047
13047
  field: s
13048
13048
  }) => /* @__PURE__ */ r(Ke, { label: o("chart.color.label"), ...s }) }) })
13049
13049
  ] });
@@ -13091,12 +13091,12 @@ function yv({
13091
13091
  } = x();
13092
13092
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
13093
13093
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
13094
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
13094
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
13095
13095
  field: a
13096
13096
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
13097
13097
  flex: 1
13098
13098
  }, ...a }) }),
13099
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
13099
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
13100
13100
  field: a
13101
13101
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
13102
13102
  flex: 1
@@ -13104,16 +13104,16 @@ function yv({
13104
13104
  ] }),
13105
13105
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.axis.tick_label"), labelPosition: "center" }),
13106
13106
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
13107
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
13107
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
13108
13108
  field: a
13109
13109
  }) => /* @__PURE__ */ r(Ut, { sx: {
13110
13110
  width: "48%"
13111
13111
  }, ...a }) }),
13112
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
13112
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
13113
13113
  field: a
13114
13114
  }) => /* @__PURE__ */ r(zt, { ...a }) })
13115
13115
  ] }),
13116
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
13116
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
13117
13117
  field: a
13118
13118
  }) => /* @__PURE__ */ r(Tt, { ...a }) })
13119
13119
  ] });
@@ -13125,7 +13125,7 @@ function _v({
13125
13125
  const {
13126
13126
  t: n
13127
13127
  } = x();
13128
- return t(["data_key"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(g, { name: "data_key", control: e, render: ({
13128
+ return t(["data_key"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: "data_key", control: e, render: ({
13129
13129
  field: a
13130
13130
  }) => /* @__PURE__ */ r(K, { label: n("chart.y_axis.y_axis_data_field"), required: !0, sx: {
13131
13131
  flex: 1
@@ -13179,7 +13179,7 @@ function xv({
13179
13179
  /* @__PURE__ */ r(S.Panel, { value: "Line", children: /* @__PURE__ */ r(hv, { control: l, watch: c }) }),
13180
13180
  /* @__PURE__ */ r(S.Panel, { value: "80-20 Line", children: /* @__PURE__ */ r(gv, { control: l, watch: c }) }),
13181
13181
  /* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(bv, { variables: i, control: l, watch: c }) }),
13182
- /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(g, { name: "dataZoom", control: l, render: ({
13182
+ /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
13183
13183
  field: p
13184
13184
  }) => /* @__PURE__ */ r(Br, { ...p }) }) })
13185
13185
  ] })
@@ -13384,7 +13384,7 @@ function Av(e, t, n) {
13384
13384
  } = w;
13385
13385
  return !I || !M || (b[I] = M), b;
13386
13386
  }, {});
13387
- let f = t[c.queryID].map((b) => {
13387
+ let g = t[c.queryID].map((b) => {
13388
13388
  const w = b[c.columnKey];
13389
13389
  return {
13390
13390
  name: w,
@@ -13392,7 +13392,7 @@ function Av(e, t, n) {
13392
13392
  color: Lv(b, h.columnKey, w, p)
13393
13393
  };
13394
13394
  });
13395
- o && (f = C.orderBy(f, [o.key], [o.order]));
13395
+ o && (g = C.orderBy(g, [o.key], [o.order]));
13396
13396
  const y = Sg("multiple");
13397
13397
  return {
13398
13398
  type: "pie",
@@ -13430,7 +13430,7 @@ function Av(e, t, n) {
13430
13430
  labelLinePoints: I
13431
13431
  };
13432
13432
  },
13433
- data: f,
13433
+ data: g,
13434
13434
  top: 10,
13435
13435
  bottom: 10,
13436
13436
  left: 10,
@@ -13545,14 +13545,14 @@ function Ov({
13545
13545
  var b;
13546
13546
  const y = (b = d.current) == null ? void 0 : b.getEchartsInstance();
13547
13547
  y && Ye(o, y.getOption());
13548
- }, [o]), p = $.useMemo(() => Pv(e, t, n), [e, t, n]), f = z(() => ({
13548
+ }, [o]), p = $.useMemo(() => Pv(e, t, n), [e, t, n]), g = z(() => ({
13549
13549
  click: c,
13550
13550
  finished: h
13551
13551
  }), [c, h]);
13552
13552
  return !n || !a || !p.series.name ? null : /* @__PURE__ */ r(He, { echarts: Ne, option: p, ref: d, style: {
13553
13553
  width: n,
13554
13554
  height: a
13555
- }, onEvents: f, notMerge: !0, theme: "merico-light" });
13555
+ }, onEvents: g, notMerge: !0, theme: "merico-light" });
13556
13556
  }
13557
13557
  function qv({
13558
13558
  context: e,
@@ -13605,7 +13605,7 @@ const Nv = J(({
13605
13605
  setFalse: h
13606
13606
  }] = De(!1), {
13607
13607
  ref: p,
13608
- handleRef: f
13608
+ handleRef: g
13609
13609
  } = Oa({
13610
13610
  id: e.id,
13611
13611
  index: t
@@ -13625,7 +13625,7 @@ const Nv = J(({
13625
13625
  minWidth: "30px",
13626
13626
  maxWidth: "30px",
13627
13627
  flex: 0
13628
- }, children: c ? /* @__PURE__ */ r(ee, { size: "xs", ref: f, variant: "subtle", children: /* @__PURE__ */ r(pl, {}) }) : /* @__PURE__ */ r(jt, { size: "sm", variant: "light", children: t + 1 }) }),
13628
+ }, children: c ? /* @__PURE__ */ r(ee, { size: "xs", ref: g, variant: "subtle", children: /* @__PURE__ */ r(pl, {}) }) : /* @__PURE__ */ r(jt, { size: "sm", variant: "light", children: t + 1 }) }),
13629
13629
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", style: {
13630
13630
  flex: 1
13631
13631
  }, children: [
@@ -13737,16 +13737,16 @@ const Wv = ({
13737
13737
  })), [e]), s = (p) => {
13738
13738
  t([...e, p]);
13739
13739
  }, c = (p) => {
13740
- const f = [...e];
13741
- f.splice(p, 1), t(f);
13742
- }, d = (p) => (f) => {
13740
+ const g = [...e];
13741
+ g.splice(p, 1), t(g);
13742
+ }, d = (p) => (g) => {
13743
13743
  const y = [...e];
13744
- y[p] = f, t(y);
13744
+ y[p] = g, t(y);
13745
13745
  }, h = (p) => {
13746
13746
  const {
13747
- source: f,
13747
+ source: g,
13748
13748
  target: y
13749
- } = p.operation, b = ql(l, f, y);
13749
+ } = p.operation, b = ql(l, g, y);
13750
13750
  t(b.map((w) => C.omit(w, "id")));
13751
13751
  };
13752
13752
  return /* @__PURE__ */ u(T, { ref: i, pt: 4, children: [
@@ -13754,7 +13754,7 @@ const Wv = ({
13754
13754
  /* @__PURE__ */ r(k, { size: "sm", fw: "500", mb: -4, children: o("viz.pie_chart.color.map.label") }),
13755
13755
  /* @__PURE__ */ r(Wv, { value: e, onChange: t })
13756
13756
  ] }),
13757
- /* @__PURE__ */ r(Ea, { onDragEnd: h, children: l.map((p, f) => /* @__PURE__ */ r(jv, { row: p, handleChange: d(f), handleRemove: () => c(f), index: f, names: a }, p.id)) }),
13757
+ /* @__PURE__ */ r(Ea, { onDragEnd: h, children: l.map((p, g) => /* @__PURE__ */ r(jv, { row: p, handleChange: d(g), handleRemove: () => c(g), index: g, names: a }, p.id)) }),
13758
13758
  /* @__PURE__ */ r(Qv, { append: s })
13759
13759
  ] });
13760
13760
  });
@@ -13779,7 +13779,7 @@ function Kv({
13779
13779
  }, [i]);
13780
13780
  const [h] = s(["label_field", "value_field", "color_field", "color"]), {
13781
13781
  panel: p
13782
- } = Le(), f = z(() => {
13782
+ } = Le(), g = z(() => {
13783
13783
  if (!h)
13784
13784
  return [];
13785
13785
  const y = ht(p.data, h);
@@ -13791,25 +13791,25 @@ function Kv({
13791
13791
  border: "1px solid #eee",
13792
13792
  borderRadius: "5px"
13793
13793
  }, children: [
13794
- /* @__PURE__ */ r(g, { control: o, name: "label_field", render: ({
13794
+ /* @__PURE__ */ r(f, { control: o, name: "label_field", render: ({
13795
13795
  field: y
13796
13796
  }) => /* @__PURE__ */ r(K, { label: a("common.name_data_field"), required: !0, ...y }) }),
13797
- /* @__PURE__ */ r(g, { control: o, name: "value_field", render: ({
13797
+ /* @__PURE__ */ r(f, { control: o, name: "value_field", render: ({
13798
13798
  field: y
13799
13799
  }) => /* @__PURE__ */ r(K, { label: a("common.value_data_field"), required: !0, ...y }) }),
13800
- /* @__PURE__ */ r(g, { control: o, name: "series_order", render: ({
13800
+ /* @__PURE__ */ r(f, { control: o, name: "series_order", render: ({
13801
13801
  field: y
13802
13802
  }) => /* @__PURE__ */ r(Ks, { label: a("chart.series_order.label"), ...y }) }),
13803
- /* @__PURE__ */ r(g, { control: o, name: "radius", render: ({
13803
+ /* @__PURE__ */ r(f, { control: o, name: "radius", render: ({
13804
13804
  field: y
13805
13805
  }) => /* @__PURE__ */ r(Nv, { label: a("viz.pie_chart.radius.label"), ...y }) }),
13806
13806
  /* @__PURE__ */ r(P, { label: a("chart.color.label"), labelPosition: "center", variant: "dashed" }),
13807
- /* @__PURE__ */ r(g, { control: o, name: "color_field", render: ({
13807
+ /* @__PURE__ */ r(f, { control: o, name: "color_field", render: ({
13808
13808
  field: y
13809
13809
  }) => /* @__PURE__ */ r(K, { label: a("common.color_data_field"), clearable: !0, ...y }) }),
13810
- /* @__PURE__ */ r(g, { control: o, name: "color.map", render: ({
13810
+ /* @__PURE__ */ r(f, { control: o, name: "color.map", render: ({
13811
13811
  field: y
13812
- }) => /* @__PURE__ */ r(Uv, { names: f, ...y }) })
13812
+ }) => /* @__PURE__ */ r(Uv, { names: g, ...y }) })
13813
13813
  ] })
13814
13814
  ] }) });
13815
13815
  }
@@ -14101,12 +14101,12 @@ function u1(e, t) {
14101
14101
  type: "radar",
14102
14102
  colorBy: "data",
14103
14103
  data: e[l.queryID].map((h) => {
14104
- const p = h[l.columnKey], f = h[s.columnKey];
14104
+ const p = h[l.columnKey], g = h[s.columnKey];
14105
14105
  return {
14106
14106
  name: p,
14107
14107
  value: lc(h, a),
14108
14108
  itemStyle: {
14109
- color: f
14109
+ color: g
14110
14110
  }
14111
14111
  };
14112
14112
  }),
@@ -14256,14 +14256,14 @@ function b1({
14256
14256
  rowData: w
14257
14257
  });
14258
14258
  });
14259
- }, [s, c, i]), f = z(() => ({
14259
+ }, [s, c, i]), g = z(() => ({
14260
14260
  click: p,
14261
14261
  finished: h
14262
14262
  }), [p]), y = z(() => f1(Ge({}, e, Qr), t), [e, t]);
14263
14263
  return !n || !a ? null : /* @__PURE__ */ r(He, { echarts: Ne, option: y, ref: d, style: {
14264
14264
  width: n,
14265
14265
  height: a
14266
- }, onEvents: f, notMerge: !0, theme: "merico-light" });
14266
+ }, onEvents: g, notMerge: !0, theme: "merico-light" });
14267
14267
  }
14268
14268
  function y1({
14269
14269
  context: e,
@@ -14293,12 +14293,12 @@ function _1({
14293
14293
  border: "1px solid #eee",
14294
14294
  position: "relative"
14295
14295
  }, children: [
14296
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: `additional_series.${t}.name_key`, control: e, render: ({
14296
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `additional_series.${t}.name_key`, control: e, render: ({
14297
14297
  field: a
14298
14298
  }) => /* @__PURE__ */ r(K, { label: n("viz.radar_chart.series.series_name_field"), required: !0, sx: {
14299
14299
  flex: 1
14300
14300
  }, ...a }) }) }),
14301
- /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(g, { name: `additional_series.${t}.color_key`, control: e, render: ({
14301
+ /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: `additional_series.${t}.color_key`, control: e, render: ({
14302
14302
  field: a
14303
14303
  }) => /* @__PURE__ */ r(K, { label: n("viz.radar_chart.style.color_field"), required: !0, clearable: !0, sx: {
14304
14304
  flex: 1
@@ -14340,17 +14340,17 @@ function v1({
14340
14340
  position: "relative"
14341
14341
  }, children: [
14342
14342
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", align: "top", children: [
14343
- /* @__PURE__ */ r(g, { name: `dimensions.${t}.name`, control: e, render: ({
14343
+ /* @__PURE__ */ r(f, { name: `dimensions.${t}.name`, control: e, render: ({
14344
14344
  field: a
14345
14345
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
14346
14346
  flex: 1
14347
14347
  }, ...a }) }),
14348
- /* @__PURE__ */ r(g, { name: `dimensions.${t}.data_key`, control: e, render: ({
14348
+ /* @__PURE__ */ r(f, { name: `dimensions.${t}.data_key`, control: e, render: ({
14349
14349
  field: a
14350
14350
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
14351
14351
  flex: 1
14352
14352
  }, ...a }) }),
14353
- /* @__PURE__ */ r(g, { name: `dimensions.${t}.max`, control: e, rules: {
14353
+ /* @__PURE__ */ r(f, { name: `dimensions.${t}.max`, control: e, rules: {
14354
14354
  validate: (a) => {
14355
14355
  if (Number.isNaN(Number(a)))
14356
14356
  return n("validation.number.require_a_number");
@@ -14367,7 +14367,7 @@ function v1({
14367
14367
  ] }),
14368
14368
  /* @__PURE__ */ u(T, { children: [
14369
14369
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("viz.radar_chart.metric.value_formatter"), labelPosition: "center" }),
14370
- /* @__PURE__ */ r(g, { name: `dimensions.${t}.formatter`, control: e, render: ({
14370
+ /* @__PURE__ */ r(f, { name: `dimensions.${t}.formatter`, control: e, render: ({
14371
14371
  field: a
14372
14372
  }) => /* @__PURE__ */ r(bt, { ...a }) })
14373
14373
  ] })
@@ -14426,17 +14426,17 @@ function S1({
14426
14426
  /* @__PURE__ */ r(S.Tab, { value: "style", children: t("chart.style.label") }),
14427
14427
  /* @__PURE__ */ r(S.Tab, { value: "additional_series", ml: "auto", children: t("viz.radar_chart.additional_series.label") })
14428
14428
  ] }),
14429
- /* @__PURE__ */ r(S.Panel, { value: "series", p: "md", children: /* @__PURE__ */ r(g, { name: "series_name_key", control: o, render: ({
14429
+ /* @__PURE__ */ r(S.Panel, { value: "series", p: "md", children: /* @__PURE__ */ r(f, { name: "series_name_key", control: o, render: ({
14430
14430
  field: h
14431
14431
  }) => /* @__PURE__ */ r(K, { label: t("viz.radar_chart.series.series_name_field"), required: !0, sx: {
14432
14432
  flex: 1
14433
14433
  }, ...h }) }) }),
14434
14434
  /* @__PURE__ */ r(S.Panel, { value: "metrics", p: "md", children: /* @__PURE__ */ r(w1, { control: o, watch: s }) }),
14435
14435
  /* @__PURE__ */ r(S.Panel, { value: "style", p: "md", children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
14436
- /* @__PURE__ */ r(g, { name: "background.enabled", control: o, render: ({
14436
+ /* @__PURE__ */ r(f, { name: "background.enabled", control: o, render: ({
14437
14437
  field: h
14438
14438
  }) => /* @__PURE__ */ r(te, { label: t("viz.radar_chart.style.show_background"), checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked) }) }),
14439
- /* @__PURE__ */ r(g, { name: "label.enabled", control: o, render: ({
14439
+ /* @__PURE__ */ r(f, { name: "label.enabled", control: o, render: ({
14440
14440
  field: h
14441
14441
  }) => /* @__PURE__ */ r(te, { label: t("viz.radar_chart.style.show_value_label"), checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked) }) })
14442
14442
  ] }) }),
@@ -15119,10 +15119,10 @@ function J1({
15119
15119
  height: i
15120
15120
  } = e.viewport, o = z(() => {
15121
15121
  var I;
15122
- const p = e.data, f = n == null ? void 0 : n.x_axis.data_key, y = (I = n == null ? void 0 : n.regression) == null ? void 0 : I.y_axis_data_key;
15123
- if (!f || !y)
15122
+ const p = e.data, g = n == null ? void 0 : n.x_axis.data_key, y = (I = n == null ? void 0 : n.regression) == null ? void 0 : I.y_axis_data_key;
15123
+ if (!g || !y)
15124
15124
  return [];
15125
- const b = N(f), w = N(y);
15125
+ const b = N(g), w = N(y);
15126
15126
  return p[b.queryID].map((M) => typeof M[w.columnKey] == "number" ? M : {
15127
15127
  ...M,
15128
15128
  [w.columnKey]: Number(M[w.columnKey])
@@ -15163,29 +15163,29 @@ function e0({
15163
15163
  value: "polynomial"
15164
15164
  }], [a.language]);
15165
15165
  return /* @__PURE__ */ u(T, { children: [
15166
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "regression.name", control: e, render: ({
15166
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "regression.name", control: e, render: ({
15167
15167
  field: s
15168
15168
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
15169
15169
  flex: 1
15170
15170
  }, ...s }) }) }),
15171
- /* @__PURE__ */ r(g, { name: "regression.group_by_key", control: e, render: ({
15171
+ /* @__PURE__ */ r(f, { name: "regression.group_by_key", control: e, render: ({
15172
15172
  field: s
15173
15173
  }) => /* @__PURE__ */ r(K, { label: n("chart.series.group_by.label"), clearable: !0, sx: {
15174
15174
  flex: 1
15175
15175
  }, ...s }) }),
15176
15176
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
15177
- /* @__PURE__ */ r(g, { name: "regression.transform.config.method", control: e, render: ({
15177
+ /* @__PURE__ */ r(f, { name: "regression.transform.config.method", control: e, render: ({
15178
15178
  field: s
15179
15179
  }) => /* @__PURE__ */ r(O, { label: n("chart.regression_line.method.label"), data: l, sx: {
15180
15180
  flex: 1
15181
15181
  }, ...s }) }),
15182
- i === "polynomial" && /* @__PURE__ */ r(g, { name: "regression.transform.config.order", control: e, render: ({
15182
+ i === "polynomial" && /* @__PURE__ */ r(f, { name: "regression.transform.config.order", control: e, render: ({
15183
15183
  field: s
15184
15184
  }) => /* @__PURE__ */ r(ne, { label: n("chart.regression_line.method.polynomial_order"), sx: {
15185
15185
  flex: 1
15186
15186
  }, ...s }) })
15187
15187
  ] }),
15188
- !o && /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: "regression.plot.color", control: e, render: ({
15188
+ !o && /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: "regression.plot.color", control: e, render: ({
15189
15189
  field: s
15190
15190
  }) => /* @__PURE__ */ r(Ke, { label: n("chart.color.label"), ...s }) }) })
15191
15191
  ] });
@@ -15196,24 +15196,24 @@ function t0({
15196
15196
  }) {
15197
15197
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
15198
15198
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
15199
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
15199
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
15200
15200
  field: n
15201
15201
  }) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
15202
15202
  flex: 1
15203
15203
  }, ...n }) }),
15204
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
15204
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
15205
15205
  field: n
15206
15206
  }) => /* @__PURE__ */ r(K, { label: "X轴数据字段", required: !0, sx: {
15207
15207
  flex: 1
15208
15208
  }, ...n }) })
15209
15209
  ] }),
15210
15210
  /* @__PURE__ */ r(P, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
15211
- /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.format", control: e, render: ({
15211
+ /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.format", control: e, render: ({
15212
15212
  field: n
15213
15213
  }) => /* @__PURE__ */ r(bt, { ...n }) }) }),
15214
15214
  /* @__PURE__ */ r(P, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
15215
15215
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
15216
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
15216
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
15217
15217
  field: n
15218
15218
  }) => /* @__PURE__ */ r(ne, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r(k, { c: "dimmed", size: "sm", children: "度" }), sx: {
15219
15219
  width: "48%"
@@ -15224,11 +15224,11 @@ function t0({
15224
15224
  paddingRight: "6px"
15225
15225
  }
15226
15226
  }, ...n }) }),
15227
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
15227
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
15228
15228
  field: n
15229
15229
  }) => /* @__PURE__ */ r(zt, { triggerButtonText: "自定义标签文案内容", ...n }) })
15230
15230
  ] }),
15231
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
15231
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
15232
15232
  field: n
15233
15233
  }) => /* @__PURE__ */ r(Tt, { ...n }) })
15234
15234
  ] });
@@ -15238,12 +15238,12 @@ function n0({
15238
15238
  watch: t
15239
15239
  }) {
15240
15240
  return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
15241
- /* @__PURE__ */ r(g, { name: "y_axis.name", control: e, render: ({
15241
+ /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
15242
15242
  field: n
15243
15243
  }) => /* @__PURE__ */ r(V, { label: "Y轴名称", sx: {
15244
15244
  flex: 1
15245
15245
  }, ...n }) }),
15246
- /* @__PURE__ */ r(g, { name: "regression.y_axis_data_key", control: e, render: ({
15246
+ /* @__PURE__ */ r(f, { name: "regression.y_axis_data_key", control: e, render: ({
15247
15247
  field: n
15248
15248
  }) => /* @__PURE__ */ r(K, { label: "Y轴数据字段", required: !0, sx: {
15249
15249
  flex: 1
@@ -15437,8 +15437,8 @@ const d0 = {
15437
15437
  d(o);
15438
15438
  }, [o]);
15439
15439
  const h = Vt(null), p = () => {
15440
- var f;
15441
- return (f = h.current) == null ? void 0 : f.click();
15440
+ var g;
15441
+ return (g = h.current) == null ? void 0 : g.click();
15442
15442
  };
15443
15443
  return /* @__PURE__ */ r("form", { onSubmit: s(i), style: {
15444
15444
  flexGrow: 1,
@@ -15455,9 +15455,9 @@ const d0 = {
15455
15455
  /* @__PURE__ */ r(k, { size: "sm", children: n("rich_text.content.label") }),
15456
15456
  /* @__PURE__ */ r(ee, { ref: h, type: "submit", mr: 5, variant: "filled", color: "blue", children: /* @__PURE__ */ r(me, { size: 20 }) })
15457
15457
  ] }),
15458
- /* @__PURE__ */ r(g, { name: "content", control: l, render: ({
15459
- field: f
15460
- }) => /* @__PURE__ */ Mn(Zt, { ...f, key: t.id, styles: {
15458
+ /* @__PURE__ */ r(f, { name: "content", control: l, render: ({
15459
+ field: g
15460
+ }) => /* @__PURE__ */ Mn(Zt, { ...g, key: t.id, styles: {
15461
15461
  root: {
15462
15462
  flexGrow: 1
15463
15463
  }
@@ -16110,13 +16110,13 @@ function j0(e, t) {
16110
16110
  <td style="text-align: right; padding: 0 1em;">
16111
16111
  ${o(or(b, n.y_data_key))}
16112
16112
  </td>`).join("")}
16113
- </tr>`], f = e.tooltip.metrics.map((b) => `<tr>
16113
+ </tr>`], g = e.tooltip.metrics.map((b) => `<tr>
16114
16114
  <th style="text-align: right;">${b.name}</th>
16115
16115
  ${l.map(({
16116
16116
  value: w
16117
16117
  }) => `<td style="text-align: right; padding: 0 1em;">${N0(or(w, b.data_key))}</td>`).join("")}
16118
16118
  </tr>`);
16119
- return p.push(...f), `
16119
+ return p.push(...g), `
16120
16120
  <table style="width: auto">
16121
16121
  <thead><tr>${d.join("")}</tr></thead>
16122
16122
  <tbody>${p.join("")}</tbody>
@@ -16205,9 +16205,9 @@ function W0(e, t, n) {
16205
16205
  return c[d.name] = gt(d, h), c;
16206
16206
  }, {}), i = e.y_axes.reduce((c, {
16207
16207
  label_formatter: d
16208
- }, h) => (c[h] = function(f) {
16209
- let y = f;
16210
- if (typeof f == "object" && (Array.isArray(f.value) && f.value.length === 2 ? y = f.value[1] : y = f.value), !d)
16208
+ }, h) => (c[h] = function(g) {
16209
+ let y = g;
16210
+ if (typeof g == "object" && (Array.isArray(g.value) && g.value.length === 2 ? y = g.value[1] : y = g.value), !d)
16211
16211
  return y;
16212
16212
  try {
16213
16213
  return se(y, d);
@@ -16251,14 +16251,14 @@ function U0({
16251
16251
  var w;
16252
16252
  const b = (w = h.current) == null ? void 0 : w.getEchartsInstance();
16253
16253
  b && Ye(l, b.getOption());
16254
- }, [l]), f = z(() => ({
16254
+ }, [l]), g = z(() => ({
16255
16255
  click: d,
16256
16256
  finished: p
16257
16257
  }), [d, p]), y = $.useMemo(() => W0(e, t, o), [e, t]);
16258
16258
  return /* @__PURE__ */ r(He, { echarts: Ne, option: y, ref: h, style: {
16259
16259
  width: n,
16260
16260
  height: a
16261
- }, onEvents: f, notMerge: !0, theme: "merico-light" });
16261
+ }, onEvents: g, notMerge: !0, theme: "merico-light" });
16262
16262
  }
16263
16263
  function K0({
16264
16264
  context: e,
@@ -16274,11 +16274,11 @@ function K0({
16274
16274
  } = e, o = z(() => he({}, a, dc), [a]), l = e.data, {
16275
16275
  width: s,
16276
16276
  height: c
16277
- } = e.viewport, [d, h] = G(0), [p, f] = G(0), y = Math.max(0, Ct(c) - d - p), b = St(s);
16277
+ } = e.viewport, [d, h] = G(0), [p, g] = G(0), y = Math.max(0, Ct(c) - d - p), b = St(s);
16278
16278
  return !s || !c ? null : /* @__PURE__ */ u(nt, { width: s, height: c, children: [
16279
16279
  /* @__PURE__ */ r(fr, { onHeightChange: h, value: o.stats.top, context: e }),
16280
16280
  /* @__PURE__ */ r(U0, { instance: t, variables: i, width: b, height: y, data: l, conf: o, interactionManager: n }),
16281
- /* @__PURE__ */ r(fr, { onHeightChange: f, value: o.stats.bottom, context: e })
16281
+ /* @__PURE__ */ r(fr, { onHeightChange: g, value: o.stats.bottom, context: e })
16282
16282
  ] });
16283
16283
  }
16284
16284
  const Y0 = J(({
@@ -16372,7 +16372,7 @@ function Z0({
16372
16372
  return /* @__PURE__ */ r(fe, { control: e, watch: t, name: "reference_areas", getItem: i, addButtonText: a("chart.reference_area.add"), deleteButtonText: a("chart.reference_area.delete"), renderTabName: c, children: ({
16373
16373
  field: d,
16374
16374
  index: h
16375
- }) => /* @__PURE__ */ r(g, { name: `reference_areas.${h}`, control: e, render: ({
16375
+ }) => /* @__PURE__ */ r(f, { name: `reference_areas.${h}`, control: e, render: ({
16376
16376
  field: p
16377
16377
  }) => /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(Y0, { variableOptions: o, yAxisOptions: s, ...p }) }) }) });
16378
16378
  }
@@ -16390,32 +16390,32 @@ function J0({
16390
16390
  position: "relative"
16391
16391
  }, children: [
16392
16392
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
16393
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.name`, control: e, render: ({
16393
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
16394
16394
  field: s
16395
16395
  }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
16396
16396
  flex: 1
16397
16397
  }, ...s }) }),
16398
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
16398
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
16399
16399
  field: s
16400
16400
  }) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
16401
16401
  flex: 1
16402
16402
  }, ...s }) })
16403
16403
  ] }),
16404
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.template`, control: e, render: ({
16404
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
16405
16405
  field: s
16406
16406
  }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
16407
16407
  flex: 1
16408
16408
  }, ...s }) }),
16409
16409
  /* @__PURE__ */ u(_, { grow: !0, children: [
16410
16410
  /* @__PURE__ */ u(T, { children: [
16411
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
16411
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
16412
16412
  field: s
16413
16413
  }) => /* @__PURE__ */ r(rn, { sx: {
16414
16414
  flex: 1
16415
16415
  }, ...s }) }),
16416
16416
  l === "vertical" && /* @__PURE__ */ r(k, { mt: -10, c: "dimmed", size: "12px", children: o("chart.reference_line.orientation.vertical_hint") })
16417
16417
  ] }),
16418
- l === "horizontal" && /* @__PURE__ */ r(g, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
16418
+ l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
16419
16419
  field: {
16420
16420
  value: s,
16421
16421
  onChange: c,
@@ -16433,18 +16433,18 @@ function J0({
16433
16433
  ] }),
16434
16434
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: o("chart.style.label"), labelPosition: "center" }),
16435
16435
  /* @__PURE__ */ u(_, { grow: !0, children: [
16436
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
16436
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
16437
16437
  field: s
16438
16438
  }) => /* @__PURE__ */ r(En, { sx: {
16439
16439
  flexGrow: 1
16440
16440
  }, ...s }) }),
16441
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
16441
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
16442
16442
  field: s
16443
16443
  }) => /* @__PURE__ */ r(ne, { label: o("chart.series.line.line_width"), min: 1, max: 10, sx: {
16444
16444
  flexGrow: 1
16445
16445
  }, ...s }) })
16446
16446
  ] }),
16447
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
16447
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
16448
16448
  field: s
16449
16449
  }) => /* @__PURE__ */ r(Ke, { label: o("chart.color.label"), ...s }) }) })
16450
16450
  ] });
@@ -16506,19 +16506,19 @@ const tw = ({
16506
16506
  }] = De(), [l, s] = G(e), c = () => {
16507
16507
  o();
16508
16508
  const {
16509
- type: f,
16509
+ type: g,
16510
16510
  func_content: y
16511
16511
  } = l, b = {
16512
- type: f,
16512
+ type: g,
16513
16513
  func_content: y
16514
16514
  };
16515
16515
  s(b), t(b);
16516
16516
  }, d = () => {
16517
16517
  o(), s(e);
16518
- }, h = (f) => {
16518
+ }, h = (g) => {
16519
16519
  s((y) => ({
16520
16520
  ...y,
16521
- func_content: f
16521
+ func_content: g
16522
16522
  }));
16523
16523
  }, p = () => {
16524
16524
  h(Jn.dynamic.func_content);
@@ -16613,31 +16613,31 @@ function lw({
16613
16613
  } = x();
16614
16614
  return t(["scatter"]), /* @__PURE__ */ u(T, { children: [
16615
16615
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
16616
- /* @__PURE__ */ r(g, { name: "scatter.name_data_key", control: e, render: ({
16616
+ /* @__PURE__ */ r(f, { name: "scatter.name_data_key", control: e, render: ({
16617
16617
  field: a
16618
16618
  }) => /* @__PURE__ */ r(K, { label: n("common.name_data_field"), required: !0, sx: {
16619
16619
  flex: 1
16620
16620
  }, ...a }) }),
16621
- /* @__PURE__ */ r(g, { name: "scatter.y_data_key", control: e, render: ({
16621
+ /* @__PURE__ */ r(f, { name: "scatter.y_data_key", control: e, render: ({
16622
16622
  field: a
16623
16623
  }) => /* @__PURE__ */ r(K, { label: n("common.value_data_field"), required: !0, sx: {
16624
16624
  flex: 1
16625
16625
  }, ...a }) })
16626
16626
  ] }),
16627
16627
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.style.label"), labelPosition: "center" }),
16628
- /* @__PURE__ */ r(g, { name: "scatter.symbolSize", control: e, render: ({
16628
+ /* @__PURE__ */ r(f, { name: "scatter.symbolSize", control: e, render: ({
16629
16629
  field: a
16630
16630
  }) => /* @__PURE__ */ r(hi, { ...a }) }),
16631
- /* @__PURE__ */ r(g, { name: "scatter.color", control: e, render: ({
16631
+ /* @__PURE__ */ r(f, { name: "scatter.color", control: e, render: ({
16632
16632
  field: a
16633
16633
  }) => /* @__PURE__ */ r(iw, { ...a }) }),
16634
16634
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.label.label"), labelPosition: "center" }),
16635
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "scatter.label_position", control: e, render: ({
16635
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "scatter.label_position", control: e, render: ({
16636
16636
  field: a
16637
16637
  }) => /* @__PURE__ */ r(On, { label: n("chart.label_position.label"), withOffOption: !0, ...a, onChange: (i) => {
16638
16638
  i && a.onChange(i);
16639
16639
  } }) }) }),
16640
- /* @__PURE__ */ r(g, { name: "scatter.label_overflow", control: e, render: ({
16640
+ /* @__PURE__ */ r(f, { name: "scatter.label_overflow", control: e, render: ({
16641
16641
  field: a
16642
16642
  }) => /* @__PURE__ */ r(ow, { ...a }) })
16643
16643
  ] });
@@ -16652,7 +16652,7 @@ const sw = D(({
16652
16652
  t: a
16653
16653
  } = x();
16654
16654
  return /* @__PURE__ */ u(T, { children: [
16655
- /* @__PURE__ */ r(g, { name: "stats.top", control: e, render: ({
16655
+ /* @__PURE__ */ r(f, { name: "stats.top", control: e, render: ({
16656
16656
  field: i
16657
16657
  }) => /* @__PURE__ */ r(Zt, { label: a("chart.stats.template.above_chart"), styles: {
16658
16658
  root: {
@@ -16660,7 +16660,7 @@ const sw = D(({
16660
16660
  minHeight: "240px"
16661
16661
  }
16662
16662
  }, autoSubmit: !0, ...i }, `${n.id}.stats.top`) }),
16663
- /* @__PURE__ */ r(g, { name: "stats.bottom", control: e, render: ({
16663
+ /* @__PURE__ */ r(f, { name: "stats.bottom", control: e, render: ({
16664
16664
  field: i
16665
16665
  }) => /* @__PURE__ */ r(Zt, { label: a("chart.stats.template.under_chart"), styles: {
16666
16666
  root: {
@@ -16677,12 +16677,12 @@ const sw = D(({
16677
16677
  t: n
16678
16678
  } = x();
16679
16679
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
16680
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
16680
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
16681
16681
  field: a
16682
16682
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
16683
16683
  flex: 1
16684
16684
  }, ...a }) }),
16685
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
16685
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
16686
16686
  field: a
16687
16687
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
16688
16688
  flex: 1
@@ -16733,7 +16733,7 @@ function uw({
16733
16733
  value: "axis"
16734
16734
  }], [a.language]);
16735
16735
  return /* @__PURE__ */ u(T, { children: [
16736
- /* @__PURE__ */ r(g, { name: "tooltip.trigger", control: e, render: ({
16736
+ /* @__PURE__ */ r(f, { name: "tooltip.trigger", control: e, render: ({
16737
16737
  field: o
16738
16738
  }) => /* @__PURE__ */ r(O, { label: n("chart.tooltip.trigger.label"), data: i, sx: {
16739
16739
  flexGrow: 1
@@ -16751,12 +16751,12 @@ function hw({
16751
16751
  } = x();
16752
16752
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
16753
16753
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
16754
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
16754
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
16755
16755
  field: a
16756
16756
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
16757
16757
  flex: 1
16758
16758
  }, ...a }) }),
16759
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
16759
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
16760
16760
  field: a
16761
16761
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
16762
16762
  flex: 1
@@ -16764,16 +16764,16 @@ function hw({
16764
16764
  ] }),
16765
16765
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.axis.tick_label"), labelPosition: "center" }),
16766
16766
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
16767
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
16767
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
16768
16768
  field: a
16769
16769
  }) => /* @__PURE__ */ r(Ut, { sx: {
16770
16770
  width: "48%"
16771
16771
  }, ...a }) }),
16772
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
16772
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
16773
16773
  field: a
16774
16774
  }) => /* @__PURE__ */ r(zt, { ...a }) })
16775
16775
  ] }),
16776
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
16776
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
16777
16777
  field: a
16778
16778
  }) => /* @__PURE__ */ r(Tt, { ...a }) })
16779
16779
  ] });
@@ -16790,36 +16790,36 @@ function pw({
16790
16790
  }, children: [
16791
16791
  /* @__PURE__ */ r(P, { mb: -15, mt: 15, variant: "dashed", label: n("chart.y_axis.y_axis_name"), labelPosition: "center" }),
16792
16792
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
16793
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.name`, control: e, render: ({
16793
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
16794
16794
  field: a
16795
16795
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
16796
16796
  flex: 1
16797
16797
  }, ...a }) }),
16798
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
16798
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
16799
16799
  field: a
16800
16800
  }) => /* @__PURE__ */ r(an, { sx: {
16801
16801
  flex: 1
16802
16802
  }, ...a }) })
16803
16803
  ] }),
16804
16804
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.y_axis.layout"), labelPosition: "center" }),
16805
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: `y_axes.${t}.position`, control: e, render: ({
16805
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `y_axes.${t}.position`, control: e, render: ({
16806
16806
  field: a
16807
16807
  }) => /* @__PURE__ */ r(Xs, { sx: {
16808
16808
  flex: 1
16809
16809
  }, ...a }) }) }),
16810
16810
  /* @__PURE__ */ u(T, { children: [
16811
16811
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
16812
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
16812
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
16813
16813
  field: a
16814
16814
  }) => /* @__PURE__ */ r(bt, { ...a }) })
16815
16815
  ] }),
16816
16816
  /* @__PURE__ */ u(T, { children: [
16817
16817
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
16818
16818
  /* @__PURE__ */ u(_, { grow: !0, children: [
16819
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.min`, control: e, render: ({
16819
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
16820
16820
  field: a
16821
16821
  }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
16822
- /* @__PURE__ */ r(g, { name: `y_axes.${t}.max`, control: e, render: ({
16822
+ /* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
16823
16823
  field: a
16824
16824
  }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
16825
16825
  ] })
@@ -16902,7 +16902,7 @@ function gw({
16902
16902
  /* @__PURE__ */ r(S.Panel, { value: "Stats", children: /* @__PURE__ */ r(sw, { control: l, watch: c }) }),
16903
16903
  /* @__PURE__ */ r(S.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r(ew, { variables: i, control: l, watch: c }) }),
16904
16904
  /* @__PURE__ */ r(S.Panel, { value: "Reference Areas", children: /* @__PURE__ */ r(Z0, { variables: i, control: l, watch: c }) }),
16905
- /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(g, { name: "dataZoom", control: l, render: ({
16905
+ /* @__PURE__ */ r(S.Panel, { value: "Zooming", children: /* @__PURE__ */ r(f, { name: "dataZoom", control: l, render: ({
16906
16906
  field: p
16907
16907
  }) => /* @__PURE__ */ r(Br, { ...p }) }) })
16908
16908
  ] })
@@ -17116,7 +17116,7 @@ const Lw = D(({
17116
17116
  } = e, {
17117
17117
  width: h,
17118
17118
  height: p
17119
- } = e.viewport, f = z(() => {
17119
+ } = e.viewport, g = z(() => {
17120
17120
  const b = l.viz.conf.config;
17121
17121
  return b.content ? Er(b.content, d, o.payloadForViz, c) : "";
17122
17122
  }, [c, l, d, o.payloadForViz]), y = ae(() => {
@@ -17137,10 +17137,10 @@ const Lw = D(({
17137
17137
  offsetHeight: I
17138
17138
  } = b, M = h / w, R = p / I, q = Math.min(M, R);
17139
17139
  b.style.transform = `scale(${q})`;
17140
- }, [n.current, h, p, f]), /* @__PURE__ */ r(tt, { className: "viz-stats", sx: {
17140
+ }, [n.current, h, p, g]), /* @__PURE__ */ r(tt, { className: "viz-stats", sx: {
17141
17141
  width: h,
17142
17142
  height: p
17143
- }, align: Iw[s.vertical_align], direction: "row", children: /* @__PURE__ */ r(A, { className: "viz-stats--clickable-wrapper", sx: Mw(i.length), onClick: y, children: /* @__PURE__ */ r(Rn, { ref: n, value: f, styles: {
17143
+ }, align: Iw[s.vertical_align], direction: "row", children: /* @__PURE__ */ r(A, { className: "viz-stats--clickable-wrapper", sx: Mw(i.length), onClick: y, children: /* @__PURE__ */ r(Rn, { ref: n, value: g, styles: {
17144
17144
  root: {
17145
17145
  border: "none",
17146
17146
  maxWidth: h,
@@ -17195,10 +17195,10 @@ const Lw = D(({
17195
17195
  d(i);
17196
17196
  }, [i]), s(["content", "vertical_align"]), /* @__PURE__ */ r("form", { onSubmit: l(t), children: /* @__PURE__ */ u(T, { gap: "xs", children: [
17197
17197
  /* @__PURE__ */ r(Ae, { canSubmit: c.isDirty }),
17198
- /* @__PURE__ */ r(g, { control: o, name: "vertical_align", render: ({
17198
+ /* @__PURE__ */ r(f, { control: o, name: "vertical_align", render: ({
17199
17199
  field: h
17200
17200
  }) => /* @__PURE__ */ r(Gs, { ...h }) }),
17201
- /* @__PURE__ */ r(g, { name: "content", control: o, render: ({
17201
+ /* @__PURE__ */ r(f, { name: "content", control: o, render: ({
17202
17202
  field: h
17203
17203
  }) => /* @__PURE__ */ Mn(Zt, { ...h, key: n.id, styles: {
17204
17204
  root: {
@@ -17415,8 +17415,8 @@ function Uw({
17415
17415
  height: s
17416
17416
  } = e.viewport, c = $.useRef(null), d = $.useCallback(() => {
17417
17417
  var y;
17418
- const f = (y = c.current) == null ? void 0 : y.getEchartsInstance();
17419
- f && Ye(t, f.getOption());
17418
+ const g = (y = c.current) == null ? void 0 : y.getEchartsInstance();
17419
+ g && Ye(t, g.getOption());
17420
17420
  }, [t]), h = z(() => ({
17421
17421
  finished: d
17422
17422
  }), [d]), p = z(() => Ww(i, o, n), [i, o, n]);
@@ -17430,13 +17430,13 @@ function Kw({
17430
17430
  t: n
17431
17431
  } = x();
17432
17432
  return t(["label_key", "value_key", "group_key"]), /* @__PURE__ */ u(T, { children: [
17433
- /* @__PURE__ */ r(g, { name: "label_key", control: e, render: ({
17433
+ /* @__PURE__ */ r(f, { name: "label_key", control: e, render: ({
17434
17434
  field: a
17435
17435
  }) => /* @__PURE__ */ r(K, { label: n("common.name_data_field"), required: !0, ...a }) }),
17436
- /* @__PURE__ */ r(g, { name: "value_key", control: e, render: ({
17436
+ /* @__PURE__ */ r(f, { name: "value_key", control: e, render: ({
17437
17437
  field: a
17438
17438
  }) => /* @__PURE__ */ r(K, { label: n("common.value_data_field"), required: !0, ...a }) }),
17439
- /* @__PURE__ */ r(g, { name: "group_key", control: e, render: ({
17439
+ /* @__PURE__ */ r(f, { name: "group_key", control: e, render: ({
17440
17440
  field: a
17441
17441
  }) => /* @__PURE__ */ r(K, { label: n("viz.sunburst_chart.group_key"), clearable: !0, ...a }) })
17442
17442
  ] });
@@ -17460,32 +17460,32 @@ const Yw = ({
17460
17460
  }], [a.language]);
17461
17461
  return /* @__PURE__ */ u(T, { children: [
17462
17462
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
17463
- /* @__PURE__ */ r(g, { name: `levels.${t}.r0`, control: e, render: ({
17463
+ /* @__PURE__ */ r(f, { name: `levels.${t}.r0`, control: e, render: ({
17464
17464
  field: o
17465
17465
  }) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
17466
- /* @__PURE__ */ r(g, { name: `levels.${t}.r`, control: e, render: ({
17466
+ /* @__PURE__ */ r(f, { name: `levels.${t}.r`, control: e, render: ({
17467
17467
  field: o
17468
17468
  }) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
17469
17469
  ] }),
17470
17470
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: n("chart.label.label_full"), labelPosition: "center" }),
17471
- /* @__PURE__ */ r(g, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
17471
+ /* @__PURE__ */ r(f, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
17472
17472
  field: o
17473
17473
  }) => /* @__PURE__ */ r(ne, { label: n("viz.sunburst_chart.label.show_label_tolerance"), decimalScale: 4, step: 5e-4, min: 0, max: 1, ...o }) }),
17474
17474
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
17475
- /* @__PURE__ */ r(g, { name: `levels.${t}.label.rotate`, control: e, render: ({
17475
+ /* @__PURE__ */ r(f, { name: `levels.${t}.label.rotate`, control: e, render: ({
17476
17476
  field: o
17477
17477
  }) => /* @__PURE__ */ r(O, { label: n("viz.sunburst_chart.label.rotate.label"), data: i, ...o }) }),
17478
- /* @__PURE__ */ r(g, { name: `levels.${t}.label.align`, control: e, render: ({
17478
+ /* @__PURE__ */ r(f, { name: `levels.${t}.label.align`, control: e, render: ({
17479
17479
  field: o
17480
17480
  }) => /* @__PURE__ */ r(an, { ...o }) })
17481
17481
  ] }),
17482
17482
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
17483
- /* @__PURE__ */ r(g, { name: `levels.${t}.label.position`, control: e, render: ({
17483
+ /* @__PURE__ */ r(f, { name: `levels.${t}.label.position`, control: e, render: ({
17484
17484
  field: o
17485
17485
  }) => /* @__PURE__ */ r(On, { label: n("chart.label_position.label"), ...o, onChange: (l) => {
17486
17486
  l && o.onChange(l);
17487
17487
  } }) }),
17488
- /* @__PURE__ */ r(g, { name: `levels.${t}.label.padding`, control: e, render: ({
17488
+ /* @__PURE__ */ r(f, { name: `levels.${t}.label.padding`, control: e, render: ({
17489
17489
  field: o
17490
17490
  }) => /* @__PURE__ */ r(ne, { label: n("chart.padding"), min: 0, hideControls: !0, ...o }) })
17491
17491
  ] })
@@ -17543,10 +17543,10 @@ function Zw({
17543
17543
  B(() => {
17544
17544
  h(o);
17545
17545
  }, [o]), c(["label_key", "value_key", "group_key", "levels"]);
17546
- const [p, f] = G("Data");
17546
+ const [p, g] = G("Data");
17547
17547
  return /* @__PURE__ */ r("form", { onSubmit: s(a), children: /* @__PURE__ */ u(T, { gap: "xs", children: [
17548
17548
  /* @__PURE__ */ r(Ae, { canSubmit: d.isDirty }),
17549
- /* @__PURE__ */ u(S, { value: p, onChange: f, orientation: "vertical", styles: {
17549
+ /* @__PURE__ */ u(S, { value: p, onChange: g, orientation: "vertical", styles: {
17550
17550
  tab: {
17551
17551
  paddingLeft: "6px",
17552
17552
  paddingRight: "6px"
@@ -18159,7 +18159,7 @@ function bo({
18159
18159
  ...h
18160
18160
  } = a, {
18161
18161
  classes: p,
18162
- cx: f
18162
+ cx: g
18163
18163
  } = dS(), y = $.useMemo(() => {
18164
18164
  if (!s)
18165
18165
  return d;
@@ -18210,7 +18210,7 @@ function bo({
18210
18210
  height: n,
18211
18211
  width: t,
18212
18212
  padding: "0 5px"
18213
- }, "data-enable-scrollbar": !0, className: f(p.root, {
18213
+ }, "data-enable-scrollbar": !0, className: g(p.root, {
18214
18214
  "table-highlight-on-hover": a.highlightOnHover
18215
18215
  }), children: [
18216
18216
  Q > 0 && /* @__PURE__ */ r(A, { className: p.info_bar, sx: {
@@ -18227,7 +18227,7 @@ function bo({
18227
18227
  }, children: R.getHeaderGroups().map((be) => /* @__PURE__ */ r(v.Tr, { children: be.headers.map((Ie) => /* @__PURE__ */ u(v.Th, { style: {
18228
18228
  width: Ie.getSize()
18229
18229
  }, children: [
18230
- /* @__PURE__ */ r(sS, { header: Ie, cx: f }),
18230
+ /* @__PURE__ */ r(sS, { header: Ie, cx: g }),
18231
18231
  /* @__PURE__ */ r(ee, { variant: "subtle", onMouseDown: Ie.getResizeHandler(), onTouchStart: Ie.getResizeHandler(), className: `resizer ${Ie.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ma, {}) })
18232
18232
  ] }, Ie.id)) }, be.id)) }),
18233
18233
  /* @__PURE__ */ r(xS, { tableContainerRef: X, rows: q })
@@ -18318,7 +18318,7 @@ const $S = J((e, t) => {
18318
18318
  t: n
18319
18319
  } = x(), {
18320
18320
  colorManager: a
18321
- } = Ht(Kt), [i, o] = G(xc(e.value)), [l, s] = G(AS(a, e.value)), c = ia(l), [d, h] = G(VS(a, e.value)), p = ia(d), f = (w) => {
18321
+ } = Ht(Kt), [i, o] = G(xc(e.value)), [l, s] = G(AS(a, e.value)), c = ia(l), [d, h] = G(VS(a, e.value)), p = ia(d), g = (w) => {
18322
18322
  var I, M, R;
18323
18323
  o(w || "none"), w === "static" ? (I = e.onChange) == null || I.call(e, c.current) : w === "none" || !w ? (M = e.onChange) == null || M.call(e, "none") : (R = e.onChange) == null || R.call(e, p.current);
18324
18324
  }, y = (w) => {
@@ -18329,7 +18329,7 @@ const $S = J((e, t) => {
18329
18329
  h(w), (I = e.onChange) == null || I.call(e, w);
18330
18330
  };
18331
18331
  return /* @__PURE__ */ u(T, { align: "stretch", children: [
18332
- /* @__PURE__ */ r(gb, { label: n("viz.table.column.cell_background"), value: i || "none", onChange: f }),
18332
+ /* @__PURE__ */ r(gb, { label: n("viz.table.column.cell_background"), value: i || "none", onChange: g }),
18333
18333
  i === "static" && /* @__PURE__ */ r(Ke, { label: n("chart.color.label"), value: l, onChange: y }),
18334
18334
  i === "interpolation" && /* @__PURE__ */ r(mb, { colorManager: a, value: d, onChange: b })
18335
18335
  ] });
@@ -18372,7 +18372,7 @@ const $S = J((e, t) => {
18372
18372
  /* @__PURE__ */ r(_, { justify: "flex-start", children: /* @__PURE__ */ r(Ds, {}) }),
18373
18373
  /* @__PURE__ */ r(A, { sx: {
18374
18374
  position: "relative"
18375
- }, children: /* @__PURE__ */ r(Ot, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (f) => c(f ?? ""), theme: "vs-dark", options: {
18375
+ }, children: /* @__PURE__ */ r(Ot, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (g) => c(g ?? ""), theme: "vs-dark", options: {
18376
18376
  minimap: {
18377
18377
  enabled: !1
18378
18378
  }
@@ -18398,37 +18398,37 @@ const $S = J((e, t) => {
18398
18398
  position: "relative"
18399
18399
  }, children: [
18400
18400
  /* @__PURE__ */ u(_, { grow: !0, children: [
18401
- /* @__PURE__ */ r(g, { name: `columns.${t}.label`, control: e, render: ({
18401
+ /* @__PURE__ */ r(f, { name: `columns.${t}.label`, control: e, render: ({
18402
18402
  field: l
18403
18403
  }) => /* @__PURE__ */ r(V, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
18404
18404
  flex: 1
18405
18405
  }, ...l }) }),
18406
- /* @__PURE__ */ r(g, { name: `columns.${t}.value_field`, control: e, render: ({
18406
+ /* @__PURE__ */ r(f, { name: `columns.${t}.value_field`, control: e, render: ({
18407
18407
  field: l
18408
18408
  }) => /* @__PURE__ */ r(K, { label: a("common.data_field"), required: !0, queryID: o, ...l }) })
18409
18409
  ] }),
18410
18410
  /* @__PURE__ */ u(_, { grow: !0, children: [
18411
- /* @__PURE__ */ r(g, { name: `columns.${t}.value_type`, control: e, render: ({
18411
+ /* @__PURE__ */ r(f, { name: `columns.${t}.value_type`, control: e, render: ({
18412
18412
  field: l
18413
18413
  }) => /* @__PURE__ */ r(PS, { sx: {
18414
18414
  flex: 1
18415
18415
  }, ...l }) }),
18416
- i === yt.custom && /* @__PURE__ */ r(g, { name: `columns.${t}.func_content`, control: e, render: ({
18416
+ i === yt.custom && /* @__PURE__ */ r(f, { name: `columns.${t}.func_content`, control: e, render: ({
18417
18417
  field: l
18418
18418
  }) => /* @__PURE__ */ r(RS, { value: l.value ?? pc, onChange: (s) => l.onChange(s ?? "") }) })
18419
18419
  ] }),
18420
18420
  /* @__PURE__ */ r(P, { mb: -10, variant: "dashed", label: a("style.label"), labelPosition: "center" }),
18421
18421
  /* @__PURE__ */ u(_, { grow: !0, children: [
18422
18422
  /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.min_width"), rightSection: /* @__PURE__ */ r(ta, {}), disabled: !0 }),
18423
- /* @__PURE__ */ r(g, { name: `columns.${t}.width`, control: e, render: ({
18423
+ /* @__PURE__ */ r(f, { name: `columns.${t}.width`, control: e, render: ({
18424
18424
  field: l
18425
18425
  }) => /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.width"), rightSection: /* @__PURE__ */ r(ta, {}), ...l }) }),
18426
18426
  /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.max_width"), rightSection: /* @__PURE__ */ r(ta, {}), disabled: !0 })
18427
18427
  ] }),
18428
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: `columns.${t}.align`, control: e, render: ({
18428
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `columns.${t}.align`, control: e, render: ({
18429
18429
  field: l
18430
18430
  }) => /* @__PURE__ */ r(oi, { ...l }) }) }),
18431
- /* @__PURE__ */ r(g, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
18431
+ /* @__PURE__ */ r(f, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
18432
18432
  field: l
18433
18433
  }) => /* @__PURE__ */ r($S, { ...l }) })
18434
18434
  ] });
@@ -18455,10 +18455,10 @@ const $S = J((e, t) => {
18455
18455
  t(["columns", "ignored_column_keys"]);
18456
18456
  const o = t("use_raw_columns");
18457
18457
  return /* @__PURE__ */ u(F, { children: [
18458
- /* @__PURE__ */ r(g, { name: "use_raw_columns", control: e, render: ({
18458
+ /* @__PURE__ */ r(f, { name: "use_raw_columns", control: e, render: ({
18459
18459
  field: l
18460
18460
  }) => /* @__PURE__ */ r(Ce, { mt: 20, mb: 20, label: n("viz.table.column.use_original_data_columns"), checked: l.value, onChange: (s) => l.onChange(s.currentTarget.checked) }) }),
18461
- o && /* @__PURE__ */ r(g, { name: "ignored_column_keys", control: e, render: ({
18461
+ o && /* @__PURE__ */ r(f, { name: "ignored_column_keys", control: e, render: ({
18462
18462
  field: l
18463
18463
  }) => /* @__PURE__ */ r(ll, { label: n("viz.table.column.ignore_columns_by_these_key"), placeholder: n("viz.table.column.separate_by_line_break"), autosize: !0, minRows: 2, maxRows: 10, ...l }) }),
18464
18464
  !o && /* @__PURE__ */ r(fe, { control: e, watch: t, name: "columns", getItem: a, addButtonText: n("viz.table.column.add"), deleteButtonText: n("viz.table.column.delete"), renderTabName: i, children: ({
@@ -18480,12 +18480,12 @@ function qS({
18480
18480
  flexGrow: 1
18481
18481
  }
18482
18482
  }, children: [
18483
- /* @__PURE__ */ r(g, { name: "horizontalSpacing", control: e, render: ({
18483
+ /* @__PURE__ */ r(f, { name: "horizontalSpacing", control: e, render: ({
18484
18484
  field: a
18485
18485
  }) => /* @__PURE__ */ r(ha, { disabled: !0, label: n("viz.table.style.horizontal_spacing"), sx: {
18486
18486
  flex: 1
18487
18487
  }, ...a }) }),
18488
- /* @__PURE__ */ r(g, { name: "verticalSpacing", control: e, render: ({
18488
+ /* @__PURE__ */ r(f, { name: "verticalSpacing", control: e, render: ({
18489
18489
  field: a
18490
18490
  }) => /* @__PURE__ */ r(ha, { disabled: !0, label: n("viz.table.style.vertical_spacing"), sx: {
18491
18491
  flex: 1
@@ -18495,16 +18495,16 @@ function qS({
18495
18495
  "> *": {
18496
18496
  flexGrow: 1
18497
18497
  }
18498
- }, children: /* @__PURE__ */ r(g, { name: "fontSize", control: e, render: ({
18498
+ }, children: /* @__PURE__ */ r(f, { name: "fontSize", control: e, render: ({
18499
18499
  field: a
18500
18500
  }) => /* @__PURE__ */ r(V, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
18501
18501
  flex: 1
18502
18502
  }, ...a }) }) }),
18503
18503
  /* @__PURE__ */ u(_, { justify: "space-between", grow: !0, children: [
18504
- /* @__PURE__ */ r(g, { name: "striped", control: e, render: ({
18504
+ /* @__PURE__ */ r(f, { name: "striped", control: e, render: ({
18505
18505
  field: a
18506
18506
  }) => /* @__PURE__ */ r(Ce, { label: n("viz.table.style.striped"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) }),
18507
- /* @__PURE__ */ r(g, { name: "highlightOnHover", control: e, render: ({
18507
+ /* @__PURE__ */ r(f, { name: "highlightOnHover", control: e, render: ({
18508
18508
  field: a
18509
18509
  }) => /* @__PURE__ */ r(Ce, { label: n("viz.table.style.highlight_on_hover"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
18510
18510
  ] })
@@ -18565,7 +18565,7 @@ function BS({
18565
18565
  /* @__PURE__ */ r(S.Tab, { value: "Style", children: t("style.label") })
18566
18566
  ] }),
18567
18567
  /* @__PURE__ */ u(S.Panel, { value: "Columns", children: [
18568
- /* @__PURE__ */ r(g, { name: "query_id", control: l, render: ({
18568
+ /* @__PURE__ */ r(f, { name: "query_id", control: l, render: ({
18569
18569
  field: p
18570
18570
  }) => /* @__PURE__ */ r(MS, { label: t("viz.table.column.query_id"), description: t("viz.table.column.query_id_hint"), required: !0, ...p }) }),
18571
18571
  /* @__PURE__ */ r(P, { mt: 20, mb: 10, variant: "dashed" }),
@@ -18828,9 +18828,9 @@ const pa = {
18828
18828
  horizontal_align: l,
18829
18829
  font_size: s,
18830
18830
  font_weight: c
18831
- } = n, d = z(() => a.reduce((p, f) => {
18832
- const y = qt(f, i);
18833
- return p[f.name] = gt(f, y), p;
18831
+ } = n, d = z(() => a.reduce((p, g) => {
18832
+ const y = qt(g, i);
18833
+ return p[g.name] = gt(g, y), p;
18834
18834
  }, {}), [a, i]), h = z(() => new Function(`return ${o}`)()({
18835
18835
  data: i,
18836
18836
  variables: d,
@@ -18927,13 +18927,13 @@ function nC({
18927
18927
  } = Y(e.instanceData, "config"), i = z(() => Ge({}, n, vi), [n]), o = z(() => {
18928
18928
  const {
18929
18929
  func_content: p,
18930
- horizontal_align: f,
18930
+ horizontal_align: g,
18931
18931
  font_size: y,
18932
18932
  font_weight: b
18933
18933
  } = i;
18934
18934
  return {
18935
18935
  func_content: p,
18936
- horizontal_align: f,
18936
+ horizontal_align: g,
18937
18937
  font_size: y,
18938
18938
  font_weight: b
18939
18939
  };
@@ -18955,14 +18955,14 @@ function nC({
18955
18955
  }, [o]), c(["func_content", "horizontal_align", "font_size", "font_weight"]), /* @__PURE__ */ r(T, { gap: "xs", children: /* @__PURE__ */ u("form", { onSubmit: s(a), children: [
18956
18956
  /* @__PURE__ */ r(Ae, { canSubmit: d.isDirty }),
18957
18957
  /* @__PURE__ */ u(T, { gap: 10, children: [
18958
- /* @__PURE__ */ r(g, { name: "func_content", control: l, render: ({
18958
+ /* @__PURE__ */ r(f, { name: "func_content", control: l, render: ({
18959
18959
  field: p
18960
18960
  }) => /* @__PURE__ */ r(tC, { ...p }) }),
18961
18961
  /* @__PURE__ */ r(P, { mt: 10, mb: -10, variant: "dashed", label: t("chart.style.label"), labelPosition: "center" }),
18962
- /* @__PURE__ */ r(g, { name: "horizontal_align", control: l, render: ({
18962
+ /* @__PURE__ */ r(f, { name: "horizontal_align", control: l, render: ({
18963
18963
  field: p
18964
18964
  }) => /* @__PURE__ */ r(oi, { ...p }) }),
18965
- /* @__PURE__ */ r(g, { name: "font_size", control: l, render: ({
18965
+ /* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
18966
18966
  field: p
18967
18967
  }) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
18968
18968
  flex: 1
@@ -18972,7 +18972,7 @@ function nC({
18972
18972
  flexGrow: 1,
18973
18973
  maxWidth: "100%"
18974
18974
  }
18975
- }, children: /* @__PURE__ */ r(g, { name: "font_weight", control: l, render: ({
18975
+ }, children: /* @__PURE__ */ r(f, { name: "font_weight", control: l, render: ({
18976
18976
  field: p
18977
18977
  }) => /* @__PURE__ */ r(JS, { label: t("style.font_weight.label"), ...p }) }) })
18978
18978
  ] })
@@ -19155,18 +19155,18 @@ function pC({
19155
19155
  c(a);
19156
19156
  }, [a]), l(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r("form", { onSubmit: o(n), children: /* @__PURE__ */ u(T, { children: [
19157
19157
  /* @__PURE__ */ u(_, { grow: !0, children: [
19158
- /* @__PURE__ */ r(g, { name: "expertSystemURL", control: i, render: ({
19158
+ /* @__PURE__ */ r(f, { name: "expertSystemURL", control: i, render: ({
19159
19159
  field: d
19160
19160
  }) => /* @__PURE__ */ r(V, { label: "Expert System URL", ...d }) }),
19161
- /* @__PURE__ */ r(g, { name: "path", control: i, render: ({
19161
+ /* @__PURE__ */ r(f, { name: "path", control: i, render: ({
19162
19162
  field: d
19163
19163
  }) => /* @__PURE__ */ r(V, { label: "Path", required: !0, ...d }) })
19164
19164
  ] }),
19165
19165
  /* @__PURE__ */ u(_, { grow: !0, children: [
19166
- /* @__PURE__ */ r(g, { name: "goal", control: i, render: ({
19166
+ /* @__PURE__ */ r(f, { name: "goal", control: i, render: ({
19167
19167
  field: d
19168
19168
  }) => /* @__PURE__ */ r(V, { label: "Goal", required: !0, ...d }) }),
19169
- /* @__PURE__ */ r(g, { name: "question", control: i, render: ({
19169
+ /* @__PURE__ */ r(f, { name: "question", control: i, render: ({
19170
19170
  field: d
19171
19171
  }) => /* @__PURE__ */ r(V, { label: "Question", required: !0, ...d }) })
19172
19172
  ] }),
@@ -19561,12 +19561,12 @@ function EC(e, t, n) {
19561
19561
  }), Q;
19562
19562
  }), {
19563
19563
  dateSpan: p,
19564
- minDate: f,
19564
+ minDate: g,
19565
19565
  dataByYear: y,
19566
19566
  years: b
19567
19567
  } = RC(h), w = p <= 366;
19568
19568
  return {
19569
- calendar: DC(w, f, b),
19569
+ calendar: DC(w, g, b),
19570
19570
  series: LC(w, y, h),
19571
19571
  tooltip: $C(e, t, s),
19572
19572
  visualMap: {
@@ -19612,7 +19612,7 @@ function qC({
19612
19612
  var w;
19613
19613
  const b = (w = h.current) == null ? void 0 : w.getEchartsInstance();
19614
19614
  b && Ye(l, b.getOption());
19615
- }, [l]), f = z(() => ({
19615
+ }, [l]), g = z(() => ({
19616
19616
  click: d,
19617
19617
  legendselectchanged: OC,
19618
19618
  finished: p
@@ -19620,7 +19620,7 @@ function qC({
19620
19620
  return /* @__PURE__ */ r(He, { echarts: Ne, option: y, ref: h, style: {
19621
19621
  width: n,
19622
19622
  height: a
19623
- }, onEvents: f, notMerge: !0, opts: {
19623
+ }, onEvents: g, notMerge: !0, opts: {
19624
19624
  locale: e.calendar.locale
19625
19625
  }, theme: "merico-light" });
19626
19626
  }
@@ -19656,12 +19656,12 @@ function NC({
19656
19656
  t: n
19657
19657
  } = x();
19658
19658
  return t(["calendar"]), /* @__PURE__ */ u(T, { children: [
19659
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "calendar.data_key", control: e, render: ({
19659
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "calendar.data_key", control: e, render: ({
19660
19660
  field: a
19661
19661
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), sx: {
19662
19662
  flex: 1
19663
19663
  }, ...a }) }) }),
19664
- /* @__PURE__ */ r(g, { name: "calendar.locale", control: e, render: ({
19664
+ /* @__PURE__ */ r(f, { name: "calendar.locale", control: e, render: ({
19665
19665
  field: a
19666
19666
  }) => /* @__PURE__ */ r(O, { label: n("viz.calendar_heatmap.calendar.locale"), data: BC, sx: {
19667
19667
  flex: 1
@@ -19677,19 +19677,19 @@ function jC({
19677
19677
  } = x();
19678
19678
  return t(["heat_block"]), /* @__PURE__ */ u(T, { children: [
19679
19679
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
19680
- /* @__PURE__ */ r(g, { name: "heat_block.data_key", control: e, render: ({
19680
+ /* @__PURE__ */ r(f, { name: "heat_block.data_key", control: e, render: ({
19681
19681
  field: a
19682
19682
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), sx: {
19683
19683
  flex: 1
19684
19684
  }, ...a }) }),
19685
- /* @__PURE__ */ r(g, { name: "heat_block.name", control: e, render: ({
19685
+ /* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
19686
19686
  field: a
19687
19687
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
19688
19688
  flex: 1
19689
19689
  }, ...a }) })
19690
19690
  ] }),
19691
19691
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
19692
- /* @__PURE__ */ r(g, { name: "heat_block.value_formatter", control: e, render: ({
19692
+ /* @__PURE__ */ r(f, { name: "heat_block.value_formatter", control: e, render: ({
19693
19693
  field: a
19694
19694
  }) => /* @__PURE__ */ r(bt, { ...a }) })
19695
19695
  ] });
@@ -19702,12 +19702,12 @@ const QC = ({
19702
19702
  t: n
19703
19703
  } = x();
19704
19704
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
19705
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
19705
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
19706
19706
  field: a
19707
19707
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
19708
19708
  flex: 1
19709
19709
  }, ...a }) }),
19710
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
19710
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
19711
19711
  field: a
19712
19712
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
19713
19713
  flex: 1
@@ -20010,8 +20010,8 @@ function i2({
20010
20010
  });
20011
20011
  const l = Wr(t, a, i), s = C.groupBy(l, "0");
20012
20012
  return e.map(([d]) => {
20013
- const p = s[d].map((y) => y[1]), f = ja(p, n);
20014
- return [d, f];
20013
+ const p = s[d].map((y) => y[1]), g = ja(p, n);
20014
+ return [d, g];
20015
20015
  });
20016
20016
  }
20017
20017
  function o2({
@@ -20044,7 +20044,7 @@ function l2({
20044
20044
  hide_in_legend: d,
20045
20045
  invisible: h,
20046
20046
  id: p,
20047
- ...f
20047
+ ...g
20048
20048
  }, y, b, w, I, M) {
20049
20049
  const R = {
20050
20050
  label: {
@@ -20064,7 +20064,7 @@ function l2({
20064
20064
  emphasis: {
20065
20065
  disabled: !0
20066
20066
  },
20067
- ...f
20067
+ ...g
20068
20068
  };
20069
20069
  if (!o || o === e.data_key)
20070
20070
  return R.data = i2({
@@ -20123,7 +20123,7 @@ function d2(e, t, n) {
20123
20123
  }) => {
20124
20124
  if (Array.isArray(p) && p.length === 2 && (p = p[0]), !d)
20125
20125
  return p;
20126
- const f = a[d], y = n[f] ?? n.default;
20126
+ const g = a[d], y = n[g] ?? n.default;
20127
20127
  return `
20128
20128
  <tr>
20129
20129
  <td>${h}</td>
@@ -20254,14 +20254,14 @@ function f2({
20254
20254
  var w;
20255
20255
  const b = (w = h.current) == null ? void 0 : w.getEchartsInstance();
20256
20256
  b && Ye(l, b.getOption());
20257
- }, [l]), f = z(() => ({
20257
+ }, [l]), g = z(() => ({
20258
20258
  click: d,
20259
20259
  finished: p
20260
20260
  }), [d]), y = $.useMemo(() => g2(e, t, o), [e, t]);
20261
20261
  return /* @__PURE__ */ r(He, { echarts: Ne, option: y, ref: h, style: {
20262
20262
  width: n,
20263
20263
  height: a
20264
- }, onEvents: f, notMerge: !0, theme: "merico-light" });
20264
+ }, onEvents: g, notMerge: !0, theme: "merico-light" });
20265
20265
  }
20266
20266
  function b2({
20267
20267
  context: e,
@@ -20294,32 +20294,32 @@ function y2({
20294
20294
  position: "relative"
20295
20295
  }, children: [
20296
20296
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
20297
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.name`, control: e, render: ({
20297
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
20298
20298
  field: s
20299
20299
  }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
20300
20300
  flex: 1
20301
20301
  }, ...s }) }),
20302
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
20302
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
20303
20303
  field: s
20304
20304
  }) => /* @__PURE__ */ r(O, { label: o("common.data_field"), required: !0, data: a, sx: {
20305
20305
  flex: 1
20306
20306
  }, ...s }) })
20307
20307
  ] }),
20308
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.template`, control: e, render: ({
20308
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
20309
20309
  field: s
20310
20310
  }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
20311
20311
  flex: 1
20312
20312
  }, ...s }) }),
20313
20313
  /* @__PURE__ */ u(_, { grow: !0, children: [
20314
20314
  /* @__PURE__ */ u(T, { children: [
20315
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
20315
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
20316
20316
  field: s
20317
20317
  }) => /* @__PURE__ */ r(rn, { sx: {
20318
20318
  flex: 1
20319
20319
  }, ...s }) }),
20320
20320
  l === "vertical" && /* @__PURE__ */ r(k, { mt: -10, c: "dimmed", size: "12px", children: o("chart.reference_line.orientation.vertical_hint") })
20321
20321
  ] }),
20322
- l === "horizontal" && /* @__PURE__ */ r(g, { name: `reference_lines.${t}.xAxisIndex`, control: e, render: ({
20322
+ l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.xAxisIndex`, control: e, render: ({
20323
20323
  field: s
20324
20324
  }) => /* @__PURE__ */ r(O, { label: o("chart.x_axis.label"), data: i, disabled: i.length === 0, sx: {
20325
20325
  flex: 1
@@ -20327,22 +20327,22 @@ function y2({
20327
20327
  ] }),
20328
20328
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: o("chart.style.label"), labelPosition: "center" }),
20329
20329
  /* @__PURE__ */ u(_, { grow: !0, children: [
20330
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
20330
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.type`, control: e, render: ({
20331
20331
  field: s
20332
20332
  }) => /* @__PURE__ */ r(En, { sx: {
20333
20333
  flexGrow: 1
20334
20334
  }, ...s }) }),
20335
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
20335
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.width`, control: e, render: ({
20336
20336
  field: s
20337
20337
  }) => /* @__PURE__ */ r(ne, { label: o("chart.series.line.line_width"), min: 1, max: 10, sx: {
20338
20338
  flexGrow: 1
20339
20339
  }, ...s }) })
20340
20340
  ] }),
20341
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
20341
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
20342
20342
  field: s
20343
20343
  }) => /* @__PURE__ */ r(Ke, { label: o("chart.color.label"), ...s }) }) }),
20344
20344
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: o("chart.behavior.label"), labelPosition: "center" }),
20345
- /* @__PURE__ */ r(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
20345
+ /* @__PURE__ */ r(f, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
20346
20346
  field: s
20347
20347
  }) => /* @__PURE__ */ r(te, { label: o("chart.legend.show_in_legend"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) })
20348
20348
  ] });
@@ -20388,29 +20388,29 @@ function x2({
20388
20388
  }], [i.language]);
20389
20389
  return /* @__PURE__ */ u(F, { children: [
20390
20390
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
20391
- /* @__PURE__ */ r(g, { name: `series.${t}.stack`, control: e, render: ({
20391
+ /* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
20392
20392
  field: s
20393
20393
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
20394
20394
  flexGrow: 1
20395
20395
  }, ...s }) }),
20396
- /* @__PURE__ */ r(g, { name: `series.${t}.barGap`, control: e, render: ({
20396
+ /* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
20397
20397
  field: s
20398
20398
  }) => /* @__PURE__ */ r(O, { label: a("chart.series.bar.bar_gap.label"), data: l, sx: {
20399
20399
  flexGrow: 1
20400
20400
  }, ...s }) })
20401
20401
  ] }),
20402
20402
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
20403
- /* @__PURE__ */ r(g, { name: `series.${t}.barMinWidth`, control: e, render: ({
20403
+ /* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
20404
20404
  field: s
20405
20405
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
20406
20406
  flexGrow: 1
20407
20407
  }, ...s }) }),
20408
- /* @__PURE__ */ r(g, { name: `series.${t}.barWidth`, control: e, render: ({
20408
+ /* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
20409
20409
  field: s
20410
20410
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
20411
20411
  flexGrow: 1
20412
20412
  }, ...s }) }),
20413
- /* @__PURE__ */ r(g, { name: `series.${t}.barMaxWidth`, control: e, render: ({
20413
+ /* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
20414
20414
  field: s
20415
20415
  }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
20416
20416
  flexGrow: 1
@@ -20431,47 +20431,47 @@ function v2({
20431
20431
  position: "relative"
20432
20432
  }, children: [
20433
20433
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
20434
- /* @__PURE__ */ r(g, { name: `series.${t}.name`, control: e, render: ({
20434
+ /* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
20435
20435
  field: o
20436
20436
  }) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
20437
20437
  flex: 1
20438
20438
  }, ...o }) }),
20439
- /* @__PURE__ */ r(g, { name: `series.${t}.xAxisIndex`, control: e, render: ({
20439
+ /* @__PURE__ */ r(f, { name: `series.${t}.xAxisIndex`, control: e, render: ({
20440
20440
  field: o
20441
20441
  }) => /* @__PURE__ */ r(O, { label: i("chart.x_axis.label"), data: a, disabled: a.length === 0, sx: {
20442
20442
  flex: 1
20443
20443
  }, ...o }) })
20444
20444
  ] }),
20445
20445
  /* @__PURE__ */ u(ke, { cols: 2, children: [
20446
- /* @__PURE__ */ r(g, { name: `series.${t}.data_key`, control: e, render: ({
20446
+ /* @__PURE__ */ r(f, { name: `series.${t}.data_key`, control: e, render: ({
20447
20447
  field: o
20448
20448
  }) => /* @__PURE__ */ r(K, { label: i("common.data_field"), required: !0, sx: {
20449
20449
  flex: 1
20450
20450
  }, ...o }) }),
20451
- /* @__PURE__ */ r(g, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
20451
+ /* @__PURE__ */ r(f, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
20452
20452
  field: o
20453
20453
  }) => /* @__PURE__ */ r(pi, { label: i("viz.horizontal_bar_chart.series.aggregation.label"), value: o.value ?? Pn, onChange: o.onChange, pt: 0, withFallback: !1 }) })
20454
20454
  ] }),
20455
- /* @__PURE__ */ r(_, { grow: !0, children: /* @__PURE__ */ r(g, { name: `series.${t}.group_by_key`, control: e, render: ({
20455
+ /* @__PURE__ */ r(_, { grow: !0, children: /* @__PURE__ */ r(f, { name: `series.${t}.group_by_key`, control: e, render: ({
20456
20456
  field: o
20457
20457
  }) => /* @__PURE__ */ r(K, { label: i("chart.series.group_by.label"), clearable: !0, sx: {
20458
20458
  flex: 1
20459
20459
  }, ...o }) }) }),
20460
20460
  /* @__PURE__ */ r(x2, { index: t, control: e, seriesItem: n }),
20461
20461
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: i("chart.style.label"), labelPosition: "center" }),
20462
- /* @__PURE__ */ r(g, { name: `series.${t}.label_position`, control: e, render: ({
20462
+ /* @__PURE__ */ r(f, { name: `series.${t}.label_position`, control: e, render: ({
20463
20463
  field: o
20464
20464
  }) => /* @__PURE__ */ r(On, { label: i("chart.label_position.label"), ...o, withOffOption: !0, onChange: (l) => {
20465
20465
  l && o.onChange(l);
20466
20466
  } }) }),
20467
- /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(g, { name: `series.${t}.color`, control: e, render: ({
20467
+ /* @__PURE__ */ r(ke, { cols: 2, children: /* @__PURE__ */ r(f, { name: `series.${t}.color`, control: e, render: ({
20468
20468
  field: o
20469
20469
  }) => /* @__PURE__ */ r(Ke, { label: i("chart.color.label"), ...o }) }) }),
20470
20470
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: i("chart.behavior.label"), labelPosition: "center" }),
20471
- /* @__PURE__ */ r(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
20471
+ /* @__PURE__ */ r(f, { name: `series.${t}.hide_in_legend`, control: e, render: ({
20472
20472
  field: o
20473
20473
  }) => /* @__PURE__ */ r(te, { label: i("chart.legend.hide_in_legend"), checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
20474
- /* @__PURE__ */ r(g, { name: `series.${t}.invisible`, control: e, render: ({
20474
+ /* @__PURE__ */ r(f, { name: `series.${t}.invisible`, control: e, render: ({
20475
20475
  field: o
20476
20476
  }) => /* @__PURE__ */ r(te, { label: i("chart.behavior.invisible"), checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) })
20477
20477
  ] });
@@ -20525,12 +20525,12 @@ function C2({
20525
20525
  position: "relative"
20526
20526
  }, children: [
20527
20527
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
20528
- /* @__PURE__ */ r(g, { name: `x_axes.${t}.name`, control: e, render: ({
20528
+ /* @__PURE__ */ r(f, { name: `x_axes.${t}.name`, control: e, render: ({
20529
20529
  field: a
20530
20530
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
20531
20531
  flex: 1
20532
20532
  }, ...a }) }),
20533
- /* @__PURE__ */ r(g, { name: `x_axes.${t}.position`, control: e, render: ({
20533
+ /* @__PURE__ */ r(f, { name: `x_axes.${t}.position`, control: e, render: ({
20534
20534
  field: a
20535
20535
  }) => /* @__PURE__ */ r(S2, { sx: {
20536
20536
  flex: 1
@@ -20538,23 +20538,23 @@ function C2({
20538
20538
  ] }),
20539
20539
  /* @__PURE__ */ u(T, { children: [
20540
20540
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.x_axis.label_format"), labelPosition: "center" }),
20541
- /* @__PURE__ */ r(g, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
20541
+ /* @__PURE__ */ r(f, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
20542
20542
  field: a
20543
20543
  }) => /* @__PURE__ */ r(bt, { ...a }) })
20544
20544
  ] }),
20545
20545
  /* @__PURE__ */ u(T, { children: [
20546
20546
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.x_axis.value_range"), labelPosition: "center" }),
20547
20547
  /* @__PURE__ */ u(_, { grow: !0, children: [
20548
- /* @__PURE__ */ r(g, { name: `x_axes.${t}.min`, control: e, render: ({
20548
+ /* @__PURE__ */ r(f, { name: `x_axes.${t}.min`, control: e, render: ({
20549
20549
  field: a
20550
20550
  }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_min"), ...a }) }),
20551
- /* @__PURE__ */ r(g, { name: `x_axes.${t}.max`, control: e, render: ({
20551
+ /* @__PURE__ */ r(f, { name: `x_axes.${t}.max`, control: e, render: ({
20552
20552
  field: a
20553
20553
  }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_max"), ...a }) })
20554
20554
  ] })
20555
20555
  ] }),
20556
20556
  /* @__PURE__ */ r(P, { mb: -10, mt: 10, variant: "dashed", label: n("chart.x_axis.behavior"), labelPosition: "center" }),
20557
- /* @__PURE__ */ r(g, { name: `x_axes.${t}.show`, control: e, render: ({
20557
+ /* @__PURE__ */ r(f, { name: `x_axes.${t}.show`, control: e, render: ({
20558
20558
  field: a
20559
20559
  }) => /* @__PURE__ */ r(te, { label: n("chart.x_axis.visible"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
20560
20560
  ] });
@@ -20583,22 +20583,22 @@ function z2({
20583
20583
  } = x();
20584
20584
  return t(["y_axis"]), /* @__PURE__ */ u(T, { children: [
20585
20585
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
20586
- /* @__PURE__ */ r(g, { name: "y_axis.name", control: e, render: ({
20586
+ /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
20587
20587
  field: a
20588
20588
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
20589
20589
  flex: 1
20590
20590
  }, ...a }) }),
20591
- /* @__PURE__ */ r(g, { name: "y_axis.data_key", control: e, render: ({
20591
+ /* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
20592
20592
  field: a
20593
20593
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
20594
20594
  flex: 1
20595
20595
  }, ...a }) })
20596
20596
  ] }),
20597
20597
  /* @__PURE__ */ r(P, { mb: -15, label: n("chart.axis.tick_label"), variant: "dashed", labelPosition: "center" }),
20598
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
20598
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.formatter", control: e, render: ({
20599
20599
  field: a
20600
20600
  }) => /* @__PURE__ */ r(zt, { ...a }) }) }),
20601
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.overflow", control: e, render: ({
20601
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.overflow", control: e, render: ({
20602
20602
  field: a
20603
20603
  }) => /* @__PURE__ */ r(Tt, { ...a }) })
20604
20604
  ] });
@@ -20885,8 +20885,8 @@ function R2([e, t]) {
20885
20885
  function E2(e, t, n, a) {
20886
20886
  var c, d;
20887
20887
  const i = t.map((h) => {
20888
- const p = n[h], f = C.sumBy(p, (y) => y.level.diff);
20889
- return [h, f / p.length];
20888
+ const p = n[h], g = C.sumBy(p, (y) => y.level.diff);
20889
+ return [h, g / p.length];
20890
20890
  }), o = Number(((c = C.maxBy(i, (h) => h[1])) == null ? void 0 : c[1]) ?? 0), l = Number(((d = C.minBy(i, (h) => h[1])) == null ? void 0 : d[1]) ?? 0), s = fn([o, 0, l], ["#D15A40", "#FFF", "#418AAF"]);
20891
20891
  return {
20892
20892
  type: "bar",
@@ -20931,7 +20931,7 @@ function E2(e, t, n, a) {
20931
20931
  value: p
20932
20932
  }) => {
20933
20933
  const {
20934
- x: f,
20934
+ x: g,
20935
20935
  v: y
20936
20936
  } = R2(p);
20937
20937
  return `
@@ -20945,7 +20945,7 @@ function E2(e, t, n, a) {
20945
20945
  </tr>
20946
20946
  <tr>
20947
20947
  <th colspan="2" style="text-align: center;">
20948
- <div>${f}</div>
20948
+ <div>${g}</div>
20949
20949
  </th>
20950
20950
  </tr>
20951
20951
  </thead>
@@ -20983,11 +20983,11 @@ function O2([e, t, n, a]) {
20983
20983
  function q2(e, t, n, a) {
20984
20984
  const i = {};
20985
20985
  t.forEach((h) => {
20986
- const p = C.countBy(n[h], (y) => y.level.diff), f = C.sum(Object.values(p));
20986
+ const p = C.countBy(n[h], (y) => y.level.diff), g = C.sum(Object.values(p));
20987
20987
  Object.entries(p).forEach(([y, b]) => {
20988
20988
  i[y] || (i[y] = []);
20989
- const w = b / f;
20990
- i[y].push([h, w, b, f]);
20989
+ const w = b / g;
20990
+ i[y].push([h, w, b, g]);
20991
20991
  });
20992
20992
  });
20993
20993
  const o = Object.entries(i).map(([h]) => Number(h)).sort((h, p) => h - p), l = Math.max(...o), s = Math.min(...o), c = fn([l, 0, s], ["#D15A40", "#FFF", "#418AAF"]);
@@ -21004,14 +21004,14 @@ function q2(e, t, n, a) {
21004
21004
  trigger: "item",
21005
21005
  formatter: ({
21006
21006
  color: p,
21007
- value: f
21007
+ value: g
21008
21008
  }) => {
21009
21009
  const {
21010
21010
  x: y,
21011
21011
  percentage: b,
21012
21012
  count: w,
21013
21013
  sum: I
21014
- } = O2(f);
21014
+ } = O2(g);
21015
21015
  return `
21016
21016
  <table style="width: auto">
21017
21017
  <thead>
@@ -21427,9 +21427,9 @@ function rk({
21427
21427
  } = a, {
21428
21428
  estimated_value: d,
21429
21429
  actual_value: h
21430
- } = c.data_keys, [p, f] = G(h);
21430
+ } = c.data_keys, [p, g] = G(h);
21431
21431
  if (B(() => {
21432
- f((w) => w || h);
21432
+ g((w) => w || h);
21433
21433
  }, [h]), !s.data_key || !d || !h || !o || !l)
21434
21434
  return null;
21435
21435
  const y = Math.max(St(o), 300), b = Math.max(Ct(l), 370);
@@ -21438,7 +21438,7 @@ function rk({
21438
21438
  height: l,
21439
21439
  width: o
21440
21440
  }, children: [
21441
- /* @__PURE__ */ r(tk, { conf: a, metricKey: p, setMetricKey: f }),
21441
+ /* @__PURE__ */ r(tk, { conf: a, metricKey: p, setMetricKey: g }),
21442
21442
  /* @__PURE__ */ r(nk, { instance: t, width: y, height: b - 30, data: i, conf: a, metricKey: p })
21443
21443
  ] });
21444
21444
  }
@@ -21447,18 +21447,18 @@ function ak({
21447
21447
  watch: t
21448
21448
  }) {
21449
21449
  return t(["deviation"]), /* @__PURE__ */ u(T, { children: [
21450
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "deviation.name", control: e, render: ({
21450
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "deviation.name", control: e, render: ({
21451
21451
  field: n
21452
21452
  }) => /* @__PURE__ */ r(V, { label: "指标名称", sx: {
21453
21453
  flex: 1
21454
21454
  }, ...n }) }) }),
21455
21455
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
21456
- /* @__PURE__ */ r(g, { name: "deviation.data_keys.estimated_value", control: e, render: ({
21456
+ /* @__PURE__ */ r(f, { name: "deviation.data_keys.estimated_value", control: e, render: ({
21457
21457
  field: n
21458
21458
  }) => /* @__PURE__ */ r(K, { label: "估算值字段", required: !0, sx: {
21459
21459
  flex: 1
21460
21460
  }, ...n }) }),
21461
- /* @__PURE__ */ r(g, { name: "deviation.data_keys.actual_value", control: e, render: ({
21461
+ /* @__PURE__ */ r(f, { name: "deviation.data_keys.actual_value", control: e, render: ({
21462
21462
  field: n
21463
21463
  }) => /* @__PURE__ */ r(K, { label: "实际值字段", required: !0, sx: {
21464
21464
  flex: 1
@@ -21474,12 +21474,12 @@ const ik = ({
21474
21474
  t: n
21475
21475
  } = x();
21476
21476
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
21477
- /* @__PURE__ */ r(g, { name: `metrics.${t}.name`, control: e, render: ({
21477
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.name`, control: e, render: ({
21478
21478
  field: a
21479
21479
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
21480
21480
  flex: 1
21481
21481
  }, ...a }) }),
21482
- /* @__PURE__ */ r(g, { name: `metrics.${t}.data_key`, control: e, render: ({
21482
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.data_key`, control: e, render: ({
21483
21483
  field: a
21484
21484
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
21485
21485
  flex: 1
@@ -21520,12 +21520,12 @@ function lk({
21520
21520
  }) {
21521
21521
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
21522
21522
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
21523
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
21523
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
21524
21524
  field: n
21525
21525
  }) => /* @__PURE__ */ r(K, { label: "数据字段", required: !0, sx: {
21526
21526
  flex: 1
21527
21527
  }, ...n }) }),
21528
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
21528
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
21529
21529
  field: n
21530
21530
  }) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
21531
21531
  flex: 1
@@ -21533,12 +21533,12 @@ function lk({
21533
21533
  ] }),
21534
21534
  /* @__PURE__ */ r(P, { mb: -15, label: "点位文案", labelPosition: "center" }),
21535
21535
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
21536
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
21536
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
21537
21537
  field: n
21538
21538
  }) => /* @__PURE__ */ r(Ut, { sx: {
21539
21539
  width: "48%"
21540
21540
  }, ...n }) }),
21541
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
21541
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
21542
21542
  field: n
21543
21543
  }) => /* @__PURE__ */ r(zt, { ...n }) })
21544
21544
  ] })
@@ -21804,35 +21804,35 @@ function _k({
21804
21804
  position: "relative"
21805
21805
  }, children: [
21806
21806
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
21807
- /* @__PURE__ */ r(g, { name: `metrics.${t}.names.value`, control: e, render: ({
21807
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.names.value`, control: e, render: ({
21808
21808
  field: o
21809
21809
  }) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
21810
21810
  flex: 1
21811
21811
  }, ...o }) }),
21812
- /* @__PURE__ */ r(g, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
21812
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
21813
21813
  field: o
21814
21814
  }) => /* @__PURE__ */ r(O, { label: i("viz.merico_stats.metric.metric_data_field"), required: !0, data: a, sx: {
21815
21815
  flex: 1
21816
21816
  }, ...o }) })
21817
21817
  ] }),
21818
21818
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
21819
- /* @__PURE__ */ r(g, { name: `metrics.${t}.names.basis`, control: e, render: ({
21819
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.names.basis`, control: e, render: ({
21820
21820
  field: o
21821
21821
  }) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
21822
21822
  flex: 1
21823
21823
  }, ...o }) }),
21824
- /* @__PURE__ */ r(g, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
21824
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
21825
21825
  field: o
21826
21826
  }) => /* @__PURE__ */ r(O, { label: i("viz.merico_stats.metric.basis_data_field"), required: !0, data: a, sx: {
21827
21827
  flex: 1
21828
21828
  }, ...o }) })
21829
21829
  ] }),
21830
21830
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: i("numbro.format.label"), labelPosition: "center" }),
21831
- /* @__PURE__ */ r(g, { name: `metrics.${t}.formatter`, control: e, render: ({
21831
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.formatter`, control: e, render: ({
21832
21832
  field: o
21833
21833
  }) => /* @__PURE__ */ r(bt, { ...o }) }),
21834
21834
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: i("viz.merico_stats.metric.others"), labelPosition: "center" }),
21835
- /* @__PURE__ */ r(g, { name: `metrics.${t}.postfix`, control: e, render: ({
21835
+ /* @__PURE__ */ r(f, { name: `metrics.${t}.postfix`, control: e, render: ({
21836
21836
  field: o
21837
21837
  }) => /* @__PURE__ */ r(yk, { ...o }) })
21838
21838
  ] });
@@ -21873,12 +21873,12 @@ function vk({
21873
21873
  return t("styles"), /* @__PURE__ */ u(F, { children: [
21874
21874
  /* @__PURE__ */ r(P, { mt: 15, variant: "dashed", label: n("style.label"), labelPosition: "center" }),
21875
21875
  /* @__PURE__ */ u(_, { children: [
21876
- /* @__PURE__ */ r(g, { name: "styles.justify", control: e, render: ({
21876
+ /* @__PURE__ */ r(f, { name: "styles.justify", control: e, render: ({
21877
21877
  field: a
21878
21878
  }) => /* @__PURE__ */ r(fb, { sx: {
21879
21879
  flex: 1
21880
21880
  }, ...a }) }),
21881
- /* @__PURE__ */ r(g, { name: "styles.align", control: e, render: ({
21881
+ /* @__PURE__ */ r(f, { name: "styles.align", control: e, render: ({
21882
21882
  field: a
21883
21883
  }) => /* @__PURE__ */ r(bb, { label: n("viz.merico_stats.align_items.label"), sx: {
21884
21884
  flex: 1
@@ -22052,29 +22052,29 @@ function Ik({
22052
22052
  const a = t("heat_block.label.show");
22053
22053
  return /* @__PURE__ */ u(T, { children: [
22054
22054
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22055
- /* @__PURE__ */ r(g, { name: "heat_block.data_key", control: e, render: ({
22055
+ /* @__PURE__ */ r(f, { name: "heat_block.data_key", control: e, render: ({
22056
22056
  field: i
22057
22057
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
22058
22058
  flex: 1
22059
22059
  }, ...i }) }),
22060
- /* @__PURE__ */ r(g, { name: "heat_block.name", control: e, render: ({
22060
+ /* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
22061
22061
  field: i
22062
22062
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
22063
22063
  flex: 1
22064
22064
  }, ...i }) })
22065
22065
  ] }),
22066
22066
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("numbro.format.label"), labelPosition: "center" }),
22067
- /* @__PURE__ */ r(g, { name: "heat_block.value_formatter", control: e, render: ({
22067
+ /* @__PURE__ */ r(f, { name: "heat_block.value_formatter", control: e, render: ({
22068
22068
  field: i
22069
22069
  }) => /* @__PURE__ */ r(bt, { ...i }) }),
22070
22070
  /* @__PURE__ */ r(P, { mb: -5, variant: "dashed", label: n("chart.label.label"), labelPosition: "center" }),
22071
22071
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22072
- /* @__PURE__ */ r(g, { name: "heat_block.label.show", control: e, render: ({
22072
+ /* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
22073
22073
  field: i
22074
22074
  }) => /* @__PURE__ */ r(Ce, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
22075
22075
  flexGrow: 1
22076
22076
  } }) }),
22077
- /* @__PURE__ */ r(g, { name: "heat_block.label.fontSize", control: e, render: ({
22077
+ /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
22078
22078
  field: i
22079
22079
  }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Da, { size: 16 }), disabled: !a, ...i }) })
22080
22080
  ] })
@@ -22088,12 +22088,12 @@ const Mk = ({
22088
22088
  t: n
22089
22089
  } = x();
22090
22090
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22091
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
22091
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
22092
22092
  field: a
22093
22093
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
22094
22094
  flex: 1
22095
22095
  }, ...a }) }),
22096
- /* @__PURE__ */ r(g, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
22096
+ /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
22097
22097
  field: a
22098
22098
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
22099
22099
  flex: 1
@@ -22143,28 +22143,28 @@ function Vk({
22143
22143
  } = x();
22144
22144
  return t(["x_axis"]), /* @__PURE__ */ u(T, { children: [
22145
22145
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22146
- /* @__PURE__ */ r(g, { name: "x_axis.data_key", control: e, render: ({
22146
+ /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
22147
22147
  field: a
22148
22148
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
22149
22149
  flex: 1
22150
22150
  }, ...a }) }),
22151
- /* @__PURE__ */ r(g, { name: "x_axis.name", control: e, render: ({
22151
+ /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
22152
22152
  field: a
22153
22153
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
22154
22154
  flex: 1
22155
22155
  }, ...a }) })
22156
22156
  ] }),
22157
22157
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
22158
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.overflow", control: e, render: ({
22158
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.overflow", control: e, render: ({
22159
22159
  field: a
22160
22160
  }) => /* @__PURE__ */ r(Tt, { ...a }) }),
22161
22161
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22162
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
22162
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.rotate", control: e, render: ({
22163
22163
  field: a
22164
22164
  }) => /* @__PURE__ */ r(Ut, { sx: {
22165
22165
  width: "48%"
22166
22166
  }, ...a }) }),
22167
- /* @__PURE__ */ r(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
22167
+ /* @__PURE__ */ r(f, { name: "x_axis.axisLabel.formatter", control: e, render: ({
22168
22168
  field: a
22169
22169
  }) => /* @__PURE__ */ r(zt, { ...a }) })
22170
22170
  ] })
@@ -22181,33 +22181,33 @@ function $k({
22181
22181
  position: "relative"
22182
22182
  }, children: [
22183
22183
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22184
- /* @__PURE__ */ r(g, { name: "y_axis.data_key", control: e, render: ({
22184
+ /* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
22185
22185
  field: a
22186
22186
  }) => /* @__PURE__ */ r(K, { label: n("common.data_field"), required: !0, sx: {
22187
22187
  flex: 1
22188
22188
  }, ...a }) }),
22189
- /* @__PURE__ */ r(g, { name: "y_axis.name", control: e, render: ({
22189
+ /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
22190
22190
  field: a
22191
22191
  }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
22192
22192
  flex: 1
22193
22193
  }, ...a }) })
22194
22194
  ] }),
22195
- /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(g, { name: "y_axis.nameAlignment", control: e, render: ({
22195
+ /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "y_axis.nameAlignment", control: e, render: ({
22196
22196
  field: a
22197
22197
  }) => /* @__PURE__ */ r(an, { sx: {
22198
22198
  flex: 1
22199
22199
  }, ...a }) }) }),
22200
22200
  /* @__PURE__ */ r(P, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
22201
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.overflow", control: e, render: ({
22201
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.overflow", control: e, render: ({
22202
22202
  field: a
22203
22203
  }) => /* @__PURE__ */ r(Tt, { ...a }) }),
22204
22204
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
22205
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.rotate", control: e, render: ({
22205
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.rotate", control: e, render: ({
22206
22206
  field: a
22207
22207
  }) => /* @__PURE__ */ r(Ut, { sx: {
22208
22208
  width: "48%"
22209
22209
  }, ...a }) }),
22210
- /* @__PURE__ */ r(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
22210
+ /* @__PURE__ */ r(f, { name: "y_axis.axisLabel.formatter", control: e, render: ({
22211
22211
  field: a
22212
22212
  }) => /* @__PURE__ */ r(zt, { ...a }) })
22213
22213
  ] })
@@ -22395,14 +22395,14 @@ function jk({
22395
22395
  label: "",
22396
22396
  value: pt(e.y_axis.axisLabel.overflow.in_tooltip)
22397
22397
  }
22398
- }, f = {
22398
+ }, g = {
22399
22399
  label: e.heat_block.name,
22400
22400
  value: n.heat_block(d),
22401
22401
  style: {
22402
22402
  label: "",
22403
22403
  value: ""
22404
22404
  }
22405
- }, y = [h, p, f], b = a[`${s}---${c}`];
22405
+ }, y = [h, p, g], b = a[`${s}---${c}`];
22406
22406
  return b && e.tooltip.metrics.forEach((w) => {
22407
22407
  const I = N(w.data_key);
22408
22408
  y.push({
@@ -22425,7 +22425,7 @@ function Qk(e, t, n, a) {
22425
22425
  const d = C.keyBy(t[s.queryID], (h) => `${h[s.columnKey]}---${h[c.columnKey]}`);
22426
22426
  return pe.getTooltip({
22427
22427
  formatter: function(h) {
22428
- const f = jk({
22428
+ const g = jk({
22429
22429
  conf: e,
22430
22430
  labelFormatters: n,
22431
22431
  valueFormatters: a,
@@ -22451,7 +22451,7 @@ function Qk(e, t, n, a) {
22451
22451
  />
22452
22452
  </tr>
22453
22453
  </thead>
22454
- <tbody>${f.join("")}</tbody>
22454
+ <tbody>${g.join("")}</tbody>
22455
22455
  </table>
22456
22456
  `;
22457
22457
  }
@@ -22549,7 +22549,7 @@ function Wk(e, t, n) {
22549
22549
  }, {}), i = Ok(e), o = qk(e), l = Rr(e.visualMap, a), {
22550
22550
  min: s,
22551
22551
  max: c
22552
- } = l, d = N(e.x_axis.data_key), h = N(e.y_axis.data_key), p = N(e.heat_block.data_key), f = C.uniq(t[d.queryID].map((w) => w[d.columnKey])), y = t[d.queryID].map((w) => {
22552
+ } = l, d = N(e.x_axis.data_key), h = N(e.y_axis.data_key), p = N(e.heat_block.data_key), g = C.uniq(t[d.queryID].map((w) => w[d.columnKey])), y = t[d.queryID].map((w) => {
22553
22553
  const I = C.get(w, d.columnKey), M = C.get(w, h.columnKey), R = C.get(w, p.columnKey), q = {
22554
22554
  value: [I, M, R]
22555
22555
  }, {
@@ -22561,7 +22561,7 @@ function Wk(e, t, n) {
22561
22561
  }), q;
22562
22562
  });
22563
22563
  return {
22564
- xAxis: Gk(e, f, i.x_axis),
22564
+ xAxis: Gk(e, g, i.x_axis),
22565
22565
  yAxis: Hk(e, i.y_axis),
22566
22566
  series: Bk(e, y),
22567
22567
  tooltip: Qk(e, t, i, o),
@@ -22595,14 +22595,14 @@ function Uk({
22595
22595
  var w;
22596
22596
  const b = (w = h.current) == null ? void 0 : w.getEchartsInstance();
22597
22597
  b && Ye(l, b.getOption());
22598
- }, [l]), f = z(() => ({
22598
+ }, [l]), g = z(() => ({
22599
22599
  click: d,
22600
22600
  finished: p
22601
22601
  }), [d, p]), y = $.useMemo(() => Wk(e, t, o), [e, t]);
22602
22602
  return /* @__PURE__ */ r(He, { echarts: Ne, option: y, ref: h, style: {
22603
22603
  width: n,
22604
22604
  height: a
22605
- }, onEvents: f, notMerge: !0, theme: "merico-light" });
22605
+ }, onEvents: g, notMerge: !0, theme: "merico-light" });
22606
22606
  }
22607
22607
  function Kk({
22608
22608
  context: e,
@@ -23000,12 +23000,12 @@ async function h5({
23000
23000
  } = e, h = Ja(s, n), p = zg({
23001
23001
  sql: h,
23002
23002
  pre_process: c
23003
- }), f = Dp(p);
23004
- u5(p, f);
23003
+ }), g = Dp(p);
23004
+ u5(p, g);
23005
23005
  let y = await dt.query(i)({
23006
23006
  type: o,
23007
23007
  key: l,
23008
- query: f,
23008
+ query: g,
23009
23009
  ...a
23010
23010
  }, {
23011
23011
  params: {
@@ -24816,7 +24816,7 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
24816
24816
  t: h
24817
24817
  } = x(), {
24818
24818
  classes: p,
24819
- cx: f
24819
+ cx: g
24820
24820
  } = B5({
24821
24821
  radius: t,
24822
24822
  width: n.width,
@@ -24843,8 +24843,8 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
24843
24843
  },
24844
24844
  treeCheckStrictly: d,
24845
24845
  labelInValue: !0,
24846
- className: f(p.root, "check-select"),
24847
- dropdownClassName: f(p.dropdown, ""),
24846
+ className: g(p.root, "check-select"),
24847
+ dropdownClassName: g(p.dropdown, ""),
24848
24848
  onDropdownVisibleChange: w,
24849
24849
  transitionName: "rc-tree-select-dropdown-slide-up",
24850
24850
  choiceTransitionName: "rc-tree-select-selection__choice-zoom",
@@ -24879,8 +24879,8 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
24879
24879
  treeData: i,
24880
24880
  treeDataLoading: o,
24881
24881
  errorMessage: l
24882
- } = t, s = (f) => {
24883
- const y = f.map((b) => b.value);
24882
+ } = t, s = (g) => {
24883
+ const y = g.map((b) => b.value);
24884
24884
  a(y, !1);
24885
24885
  }, c = z(() => t.initialSelection(n), [n, t.initialSelection, o]), d = t.min_width ? t.min_width : "200px", p = !!t.options_query_id ? o : !1;
24886
24886
  return /* @__PURE__ */ r(N5, { disabled: p, style: {
@@ -25217,8 +25217,8 @@ const L5 = m.model("FilterDateRangeConfigMeta", {
25217
25217
  treeData: i,
25218
25218
  treeDataLoading: o,
25219
25219
  errorMessage: l
25220
- } = t, s = (f) => {
25221
- a(f ? f.value : null, !1);
25220
+ } = t, s = (g) => {
25221
+ a(g ? g.value : null, !1);
25222
25222
  }, c = z(() => t.initialSelection(n), [n, t.initialSelection, t.treeDataLoading]), d = t.min_width ? t.min_width : "200px", p = !!t.options_query_id ? o : !1;
25223
25223
  return /* @__PURE__ */ r(H5, { disabled: p, style: {
25224
25224
  width: d,
@@ -27120,22 +27120,20 @@ const g3 = (e) => new m3(e), f3 = ({
27120
27120
  max_days: a,
27121
27121
  allowSingleDateInRange: i
27122
27122
  }) => {
27123
- const {
27124
- i18n: o
27125
- } = x(), l = e.value, [s, c] = l, d = z(() => s || /* @__PURE__ */ new Date(), [s]), h = z(() => {
27126
- if (s && !c)
27127
- return s;
27128
- }, [s, c]), p = z(() => {
27129
- if (s && !c && a > 0)
27130
- return E(s).add(a - 1, "days").toDate();
27131
- }, [s, c, a]);
27132
- return /* @__PURE__ */ r(tp, { defaultDate: d, numberOfColumns: 2, type: "range", value: l, onChange: (y) => {
27133
- const [b, w] = y;
27123
+ const o = e.value, [l, s] = o, c = z(() => l || /* @__PURE__ */ new Date(), [l]), d = z(() => {
27124
+ if (l && !s)
27125
+ return l;
27126
+ }, [l, s]), h = z(() => {
27127
+ if (l && !s && a > 0)
27128
+ return E(l).add(a - 1, "days").toDate();
27129
+ }, [l, s, a]);
27130
+ return /* @__PURE__ */ r(tp, { defaultDate: c, numberOfColumns: 2, type: "range", value: o, onChange: (g) => {
27131
+ const [y, b] = g;
27134
27132
  t({
27135
- value: y,
27133
+ value: g,
27136
27134
  shortcut: null
27137
- }), b && w && n();
27138
- }, onNextMonth: console.log, minDate: h, maxDate: p, allowSingleDateInRange: i, locale: o.language });
27135
+ }), y && b && n();
27136
+ }, onNextMonth: console.log, minDate: d, maxDate: h, allowSingleDateInRange: i });
27139
27137
  }, _3 = ({
27140
27138
  begin: e,
27141
27139
  end: t
@@ -27226,7 +27224,7 @@ const g3 = (e) => new m3(e), f3 = ({
27226
27224
  } = x(), [d, {
27227
27225
  open: h,
27228
27226
  close: p
27229
- }] = nn(!1), [f, y] = n.value, b = f ? E(f).format(l) : "", w = y ? E(y).format(l) : "";
27227
+ }] = nn(!1), [g, y] = n.value, b = g ? E(g).format(l) : "", w = y ? E(y).format(l) : "";
27230
27228
  return /* @__PURE__ */ u(ut, { opened: d, onClose: p, position: "bottom-start", shadow: "md", children: [
27231
27229
  /* @__PURE__ */ u(_, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
27232
27230
  marginTop: "3px"
@@ -27256,7 +27254,7 @@ const g3 = (e) => new m3(e), f3 = ({
27256
27254
  opacity: 0.6
27257
27255
  }
27258
27256
  } }) }),
27259
- /* @__PURE__ */ r(V, { label: /* @__PURE__ */ r(_, { justify: "flex-end", children: /* @__PURE__ */ r(_3, { begin: f, end: y }) }), leftSection: /* @__PURE__ */ r(Ah, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !f || s, value: w, onFocus: h, styles: Do(d), sx: {
27257
+ /* @__PURE__ */ r(V, { label: /* @__PURE__ */ r(_, { justify: "flex-end", children: /* @__PURE__ */ r(_3, { begin: g, end: y }) }), leftSection: /* @__PURE__ */ r(Ah, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !g || s, value: w, onFocus: h, styles: Do(d), sx: {
27260
27258
  ".mantine-Input-section": {
27261
27259
  transform: "translateX(-18px)"
27262
27260
  },
@@ -27515,9 +27513,9 @@ const g3 = (e) => new m3(e), f3 = ({
27515
27513
  } = C3({
27516
27514
  radius: t,
27517
27515
  name: "MultiSelectWidget"
27518
- }), [f, y] = G(!1), b = (Z) => {
27516
+ }), [g, y] = G(!1), b = (Z) => {
27519
27517
  y(Z);
27520
- }, w = f && (i == null ? void 0 : i.length) > 0, [I, M] = G(""), R = z(() => {
27518
+ }, w = g && (i == null ? void 0 : i.length) > 0, [I, M] = G(""), R = z(() => {
27521
27519
  if (!I)
27522
27520
  return l;
27523
27521
  const Z = I.toLowerCase(), Oe = (be) => {
@@ -27563,13 +27561,13 @@ const g3 = (e) => new m3(e), f3 = ({
27563
27561
  const i = Te(), o = !!t.options_query_id, {
27564
27562
  state: l,
27565
27563
  error: s
27566
- } = i.getDataStuffByID(t.options_query_id), c = l === "loading", d = t.min_width ? t.min_width : "200px", h = o ? c : !1, p = z(() => t.initialSelection(n), [n, t.initialSelection]), f = (y) => a(y, !1);
27564
+ } = i.getDataStuffByID(t.options_query_id), c = l === "loading", d = t.min_width ? t.min_width : "200px", h = o ? c : !1, p = z(() => t.initialSelection(n), [n, t.initialSelection]), g = (y) => a(y, !1);
27567
27565
  return /* @__PURE__ */ r(z3, { label: e, options: t.options, style: {
27568
27566
  minWidth: "160px",
27569
27567
  width: d,
27570
27568
  maxWidth: h ? d : "unset",
27571
27569
  borderColor: "#e9ecef"
27572
- }, disabled: h, value: [...p], onChange: f, errorMessage: s, required: t.required });
27570
+ }, disabled: h, value: [...p], onChange: g, errorMessage: s, required: t.required });
27573
27571
  }), D3 = ({
27574
27572
  option: e,
27575
27573
  ...t
@@ -27593,7 +27591,7 @@ const g3 = (e) => new m3(e), f3 = ({
27593
27591
  } = x(), o = Te(), l = !!t.options_query_id, {
27594
27592
  state: s,
27595
27593
  error: c
27596
- } = o.getDataStuffByID(t.options_query_id), d = s === "loading", h = ae((p, f) => {
27594
+ } = o.getDataStuffByID(t.options_query_id), d = s === "loading", h = ae((p, g) => {
27597
27595
  p && a(p, !1);
27598
27596
  }, [a]);
27599
27597
  return /* @__PURE__ */ r(
@@ -27768,7 +27766,7 @@ const q3 = ({
27768
27766
  B(() => {
27769
27767
  s(i.filters.values);
27770
27768
  }, [i.filters.values, s]), $3(c);
27771
- const d = i.filters.visibleInView(t.id), h = z(() => d.every((b) => b.should_auto_submit), [d]), p = z(() => d.filter((b) => C.get(b, "config.required", !1)), [d]), f = z(() => p.length === 0 ? !1 : p.some((b) => !b.requiredAndPass(c[b.key])), [c, p]);
27769
+ const d = i.filters.visibleInView(t.id), h = z(() => d.every((b) => b.should_auto_submit), [d]), p = z(() => d.filter((b) => C.get(b, "config.required", !1)), [d]), g = z(() => p.length === 0 ? !1 : p.some((b) => !b.requiredAndPass(c[b.key])), [c, p]);
27772
27770
  if (d.length === 0)
27773
27771
  return null;
27774
27772
  const y = (b, w) => (I, M) => {
@@ -27781,12 +27779,12 @@ const q3 = ({
27781
27779
  borderRadius: "4px",
27782
27780
  padding: "16px"
27783
27781
  }, children: [
27784
- /* @__PURE__ */ r(_, { align: "flex-start", children: d.map((b) => /* @__PURE__ */ r(g, { name: b.key, control: o, render: ({
27782
+ /* @__PURE__ */ r(_, { align: "flex-start", children: d.map((b) => /* @__PURE__ */ r(f, { name: b.key, control: o, render: ({
27785
27783
  field: w
27786
27784
  }) => /* @__PURE__ */ r(A3, { filter: b, value: w.value, onChange: y(b, w.onChange) }) }, b.id)) }),
27787
27785
  !h && /* @__PURE__ */ r(_, { sx: {
27788
27786
  alignSelf: "flex-end"
27789
- }, children: /* @__PURE__ */ r(V3, { disabled: f }) })
27787
+ }, children: /* @__PURE__ */ r(V3, { disabled: g }) })
27790
27788
  ] }) })
27791
27789
  ] });
27792
27790
  }), F3 = {
@@ -27825,7 +27823,7 @@ const q3 = ({
27825
27823
  inFullScreen: h
27826
27824
  } = $.useContext(Kr), p = () => {
27827
27825
  i.duplicatePanelByID(c, e.id);
27828
- }, f = () => {
27826
+ }, g = () => {
27829
27827
  a.editor.open(["_VIEWS_", e.id, "_PANELS_", c, "_TABS_", "Panel"]);
27830
27828
  }, y = () => {
27831
27829
  a.editor.open(["_VIEWS_", e.id, "_PANELS_", c, "_TABS_", "Variables"]);
@@ -27866,7 +27864,7 @@ const q3 = ({
27866
27864
  R && /* @__PURE__ */ r(U.Item, { onClick: M, leftSection: /* @__PURE__ */ r(fl, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
27867
27865
  /* @__PURE__ */ r(B3, { view: e }),
27868
27866
  /* @__PURE__ */ r(P, { label: n("common.actions.edit"), labelPosition: "center" }),
27869
- /* @__PURE__ */ r(U.Item, { onClick: f, leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: n("panel.label") }),
27867
+ /* @__PURE__ */ r(U.Item, { onClick: g, leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: n("panel.label") }),
27870
27868
  /* @__PURE__ */ r(U.Item, { onClick: y, leftSection: /* @__PURE__ */ r(An, { size: 14 }), children: n("panel.variable.labels") }),
27871
27869
  /* @__PURE__ */ r(U.Item, { onClick: b, leftSection: /* @__PURE__ */ r(bl, { size: 14 }), children: n("visualization.label") }),
27872
27870
  /* @__PURE__ */ r(U.Item, { onClick: w, leftSection: /* @__PURE__ */ r(Va, { size: 14 }), children: n("interactions.label") }),
@@ -28183,9 +28181,9 @@ function tz(e, t) {
28183
28181
  viz: a
28184
28182
  }, {
28185
28183
  withInteraction: p
28186
- } = Pi(), f = zd(h, p);
28184
+ } = Pi(), g = zd(h, p);
28187
28185
  try {
28188
- return n.resolveComponent(a.type), /* @__PURE__ */ u(Or, { configure: f, children: [
28186
+ return n.resolveComponent(a.type), /* @__PURE__ */ u(Or, { configure: g, children: [
28189
28187
  /* @__PURE__ */ r(ez, { setVizConf: a.setConf, panel: h, measure: t, data: e, variables: d, vizManager: n }),
28190
28188
  /* @__PURE__ */ r(rz, {})
28191
28189
  ] });
@@ -28398,8 +28396,8 @@ const gz = $.forwardRef(({
28398
28396
  view: e,
28399
28397
  className: t = "layout"
28400
28398
  }) => {
28401
- const a = ce().layouts, i = a.items(e.panelIDs), o = a.gridLayouts(e.panelIDs), l = (d, h, p, f) => {
28402
- p.h < 30 && (p.h = 30, f.h = 30), p.w < 4 && (p.w = 4, f.w = 4);
28399
+ const a = ce().layouts, i = a.items(e.panelIDs), o = a.gridLayouts(e.panelIDs), l = (d, h, p, g) => {
28400
+ p.h < 30 && (p.h = 30, g.h = 30), p.w < 4 && (p.w = 4, g.w = 4);
28403
28401
  }, s = (d, h, p) => {
28404
28402
  console.log("🔴 onResizeStop", {
28405
28403
  layouts: d,
@@ -28730,9 +28728,9 @@ const Tz = D(({
28730
28728
  position: "relative",
28731
28729
  zIndex: 200
28732
28730
  }, children: [
28733
- /* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (f) => d.setName(f.currentTarget.value) }),
28731
+ /* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
28734
28732
  /* @__PURE__ */ r(O, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
28735
- /* @__PURE__ */ r(ne, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (f) => d.setOrder(f || 0), min: 0, max: 1e3, step: 1 }),
28733
+ /* @__PURE__ */ r(ne, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (g) => d.setOrder(g || 0), min: 0, max: 1e3, step: 1 }),
28736
28734
  /* @__PURE__ */ r(Jt, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
28737
28735
  p && /* @__PURE__ */ r(L, { mt: 20, variant: "gradient", leftSection: /* @__PURE__ */ r(Oh, { size: 18 }), gradient: {
28738
28736
  from: "cyan",
@@ -29826,18 +29824,18 @@ const dT = m.model("EditorModel", {
29826
29824
  });
29827
29825
  const h = [l, s, c, d];
29828
29826
  return a.editorOptions.forEach((p) => {
29829
- const f = {
29827
+ const g = {
29830
29828
  group: p.label,
29831
29829
  actions: []
29832
29830
  };
29833
- f.actions.push({
29831
+ g.actions.push({
29834
29832
  id: `_VIEWS_.${p.value}`,
29835
29833
  title: p.label,
29836
29834
  onClick: () => e.openAndSetPath(["_VIEWS_", p.value]),
29837
29835
  iconKey: "view",
29838
29836
  group: p.label
29839
29837
  }), p.children.forEach((y) => {
29840
- y._type !== "ACTION" && f.actions.push({
29838
+ y._type !== "ACTION" && g.actions.push({
29841
29839
  id: `_VIEWS_._PANELS_.${y.value}`,
29842
29840
  title: y.label,
29843
29841
  viz: y.viz,
@@ -29845,7 +29843,7 @@ const dT = m.model("EditorModel", {
29845
29843
  iconKey: "panel",
29846
29844
  group: p.label
29847
29845
  });
29848
- }), h.push(f);
29846
+ }), h.push(g);
29849
29847
  }), h;
29850
29848
  }
29851
29849
  })), uT = m.compose("LayoutsModel", bd, m.model({
@@ -30503,20 +30501,20 @@ const fT = m.model({
30503
30501
  mock_context: d
30504
30502
  } = o, h = /* @__PURE__ */ new Map();
30505
30503
  if (Array.isArray(a)) {
30506
- const f = a.map((y) => {
30504
+ const g = a.map((y) => {
30507
30505
  const b = Lt();
30508
30506
  return h.set(y.id, b), {
30509
30507
  ...y,
30510
30508
  id: b
30511
30509
  };
30512
30510
  });
30513
- if (e.panels.appendMultiple(f), !Array.isArray(n) || n.length === 0) {
30514
- const y = f.map((b) => b.id);
30511
+ if (e.panels.appendMultiple(g), !Array.isArray(n) || n.length === 0) {
30512
+ const y = g.map((b) => b.id);
30515
30513
  (p = e.views.VIE) == null || p.appendPanelIDs(y);
30516
30514
  }
30517
30515
  }
30518
30516
  if (Array.isArray(n)) {
30519
- const f = n.map((y) => {
30517
+ const g = n.map((y) => {
30520
30518
  const b = y.panelIDs.map((w) => h.get(w) ?? w);
30521
30519
  return {
30522
30520
  ...y,
@@ -30524,12 +30522,12 @@ const fT = m.model({
30524
30522
  panelIDs: b
30525
30523
  };
30526
30524
  });
30527
- e.views.appendMultiple(f);
30525
+ e.views.appendMultiple(g);
30528
30526
  }
30529
30527
  if (Array.isArray(l)) {
30530
- const f = (w, I) => e.layouts.breakpointNameRecord[w] === I;
30528
+ const g = (w, I) => e.layouts.breakpointNameRecord[w] === I;
30531
30529
  let y = [];
30532
- const b = l.filter((w) => f(w.name, w.breakpoint));
30530
+ const b = l.filter((w) => g(w.name, w.breakpoint));
30533
30531
  b.forEach((w) => {
30534
30532
  w.id === "basis" && (y = w.list), w.list.forEach((I) => {
30535
30533
  const M = h.get(I.panelID);
@@ -30617,7 +30615,7 @@ function bT({
30617
30615
  filters: d,
30618
30616
  views: h,
30619
30617
  panels: p,
30620
- layouts: f,
30618
+ layouts: g,
30621
30619
  definition: {
30622
30620
  queries: y,
30623
30621
  sqlSnippets: b,
@@ -30644,8 +30642,8 @@ function bT({
30644
30642
  list: p
30645
30643
  },
30646
30644
  layouts: {
30647
- list: f,
30648
- currentBreakpoint: f[0].id
30645
+ list: g,
30646
+ currentBreakpoint: g[0].id
30649
30647
  }
30650
30648
  });
30651
30649
  }
@@ -30914,7 +30912,7 @@ const xT = D(({
30914
30912
  defaultValues: i
30915
30913
  }), {
30916
30914
  fields: p,
30917
- append: f,
30915
+ append: g,
30918
30916
  remove: y
30919
30917
  } = Ir({
30920
30918
  control: o,
@@ -30929,7 +30927,7 @@ const xT = D(({
30929
30927
  ...Z,
30930
30928
  ...b[Oe]
30931
30929
  })), I = () => {
30932
- f({
30930
+ g({
30933
30931
  id: Lt(),
30934
30932
  name: "",
30935
30933
  breakpoint: ""
@@ -30960,7 +30958,7 @@ const xT = D(({
30960
30958
  ] }) }),
30961
30959
  /* @__PURE__ */ u(v.Tbody, { children: [
30962
30960
  w.map((Z, Oe) => /* @__PURE__ */ u(v.Tr, { children: [
30963
- /* @__PURE__ */ r(v.Th, { children: Z.id === "basis" ? Z.name : /* @__PURE__ */ r(g, { name: `list.${Oe}.name`, control: o, render: ({
30961
+ /* @__PURE__ */ r(v.Th, { children: Z.id === "basis" ? Z.name : /* @__PURE__ */ r(f, { name: `list.${Oe}.name`, control: o, render: ({
30964
30962
  field: be
30965
30963
  }) => /* @__PURE__ */ r(V, { size: "xs", label: "", required: !0, sx: {
30966
30964
  flex: 1
@@ -30968,7 +30966,7 @@ const xT = D(({
30968
30966
  /* @__PURE__ */ r(v.Td, { children: Z.id === "basis" ? /* @__PURE__ */ u(k, { size: "sm", ff: "monospace", children: [
30969
30967
  Z.breakpoint,
30970
30968
  "px"
30971
- ] }) : /* @__PURE__ */ r(g, { name: `list.${Oe}.breakpoint`, control: o, render: ({
30969
+ ] }) : /* @__PURE__ */ r(f, { name: `list.${Oe}.breakpoint`, control: o, render: ({
30972
30970
  field: be
30973
30971
  }) => /* @__PURE__ */ r(ne, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r(k, { size: "sm", c: "dimmed", children: "px" }), rightSectionProps: {
30974
30972
  style: {
@@ -31240,12 +31238,12 @@ const $T = D(({
31240
31238
  color: "red"
31241
31239
  });
31242
31240
  }
31243
- }, [f, y] = G(null);
31241
+ }, [g, y] = G(null);
31244
31242
  B(() => {
31245
- if (!f)
31243
+ if (!g)
31246
31244
  return;
31247
31245
  const q = new FileReader();
31248
- q.readAsText(f, "UTF-8"), q.onload = (X) => {
31246
+ q.readAsText(g, "UTF-8"), q.onload = (X) => {
31249
31247
  try {
31250
31248
  const Q = VT(X);
31251
31249
  s("content", Q), h("content");
@@ -31261,14 +31259,14 @@ const $T = D(({
31261
31259
  message: q.error.message
31262
31260
  }));
31263
31261
  };
31264
- }, [f]);
31262
+ }, [g]);
31265
31263
  const [b] = c(["content"]), w = !b, I = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
31266
31264
  return B(() => {
31267
31265
  !b || I ? n() : t();
31268
31266
  }, [b, I]), /* @__PURE__ */ r(A, { mx: "auto", sx: {
31269
31267
  position: "relative"
31270
31268
  }, children: /* @__PURE__ */ u("form", { onSubmit: o(p), children: [
31271
- /* @__PURE__ */ r(lh, { label: a("import.json_file"), required: !0, value: f, onChange: y, error: (R = l == null ? void 0 : l.content) == null ? void 0 : R.message, sx: {
31269
+ /* @__PURE__ */ r(lh, { label: a("import.json_file"), required: !0, value: g, onChange: y, error: (R = l == null ? void 0 : l.content) == null ? void 0 : R.message, sx: {
31272
31270
  maxWidth: 500
31273
31271
  } }),
31274
31272
  I ? /* @__PURE__ */ r(v, { fz: 12, mt: 10, children: /* @__PURE__ */ u(v.Tbody, { children: [
@@ -31391,10 +31389,10 @@ const $T = D(({
31391
31389
  return c ? l.map((h) => {
31392
31390
  if (h.keywords.some((y) => y.includes(c)))
31393
31391
  return h;
31394
- const f = h.actions.filter((y) => y.keywords.some((b) => b.includes(c)));
31395
- return f.length === 0 ? null : {
31392
+ const g = h.actions.filter((y) => y.keywords.some((b) => b.includes(c)));
31393
+ return g.length === 0 ? null : {
31396
31394
  ...h,
31397
- actions: f
31395
+ actions: g
31398
31396
  };
31399
31397
  }).filter((h) => h !== null) : [l[0]];
31400
31398
  }, [l, i]);
@@ -31505,16 +31503,16 @@ function GT(e, t, n) {
31505
31503
  } = i.viz.conf;
31506
31504
  Object.entries(c).forEach(([h, p]) => {
31507
31505
  const {
31508
- schemaRef: f,
31506
+ schemaRef: g,
31509
31507
  data: y
31510
31508
  } = p, {
31511
31509
  config: b
31512
31510
  } = y;
31513
- switch (f) {
31511
+ switch (g) {
31514
31512
  case "builtin:op:open-link":
31515
31513
  let w = b.urlTemplate.substring(0, 100);
31516
31514
  b.urlTemplate.length >= 20 && (w += "..."), l.type = "interaction", l.data.interactions.push({
31517
- schemaRef: f,
31515
+ schemaRef: g,
31518
31516
  urlTemplate: b.urlTemplate,
31519
31517
  shortURLTemplate: w
31520
31518
  });
@@ -31533,7 +31531,7 @@ function GT(e, t, n) {
31533
31531
  return;
31534
31532
  case "builtin:op:set_filter_values":
31535
31533
  l.type = "interaction", l.data.interactions.push({
31536
- schemaRef: f,
31534
+ schemaRef: g,
31537
31535
  filters: Object.keys(b.dictionary).map((I) => ({
31538
31536
  key: I,
31539
31537
  label: n[I]
@@ -31542,7 +31540,7 @@ function GT(e, t, n) {
31542
31540
  return;
31543
31541
  case "builtin:op:clear_filter_values":
31544
31542
  l.type = "interaction", l.data.interactions.push({
31545
- schemaRef: f,
31543
+ schemaRef: g,
31546
31544
  filters: b.filter_keys.map((I) => ({
31547
31545
  key: I,
31548
31546
  label: n[I]
@@ -31705,8 +31703,8 @@ function i6({
31705
31703
  if (o && l && o.parentNode) {
31706
31704
  const s = e[o.parentNode], c = s.position.x, d = Number(C.get(l, "style.height", 0)), h = Number(s.style.width);
31707
31705
  l.position.x = c + h + YT, s._view_level === 0 && l._sub_view_ids.length === 0 && (o.sourcePosition = _t.Left, l.targetPosition = _t.Right, l.position.x *= -1);
31708
- const f = l.position.x, y = C.get(a, f, 0);
31709
- l.position.y = y, a[f] = y + d + Nd;
31706
+ const g = l.position.x, y = C.get(a, g, 0);
31707
+ l.position.y = y, a[g] = y + d + Nd;
31710
31708
  }
31711
31709
  });
31712
31710
  }
@@ -33272,7 +33270,7 @@ const s4 = D(({
33272
33270
  B(() => {
33273
33271
  l((w) => h && w === "Visualization" ? "Data" : w);
33274
33272
  }, [e.id, h]);
33275
- const f = ae((w) => {
33273
+ const g = ae((w) => {
33276
33274
  l(w), a.editor.setPanelTab(o);
33277
33275
  }, []), y = () => {
33278
33276
  a.editor.setPath(["_VIEWS_", p]);
@@ -33308,7 +33306,7 @@ const s4 = D(({
33308
33306
  /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", color: "red", onClick: b, leftSection: /* @__PURE__ */ r($e, { size: 14 }), children: t("panel.delete") })
33309
33307
  ] })
33310
33308
  ] }),
33311
- /* @__PURE__ */ u(S, { value: o, onChange: f, keepMounted: !1, styles: o4, children: [
33309
+ /* @__PURE__ */ u(S, { value: o, onChange: g, keepMounted: !1, styles: o4, children: [
33312
33310
  /* @__PURE__ */ u(S.List, { children: [
33313
33311
  /* @__PURE__ */ r(S.Tab, { value: "Data", leftSection: /* @__PURE__ */ r(Xt, { size: 14 }), disabled: d, children: t("data.label") }),
33314
33312
  /* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: t("panel.label") }),
@@ -33348,8 +33346,8 @@ const s4 = D(({
33348
33346
  }), d4 = D(() => {
33349
33347
  const {
33350
33348
  t: e
33351
- } = x(), [t, n] = G([]), a = wt(), i = de(), o = (f) => {
33352
- i.editor.setPath(["_QUERIES_", f]);
33349
+ } = x(), [t, n] = G([]), a = wt(), i = de(), o = (g) => {
33350
+ i.editor.setPath(["_QUERIES_", g]);
33353
33351
  }, l = () => {
33354
33352
  a.openConfirmModal({
33355
33353
  title: "Delete ununsed queries?",
@@ -33367,7 +33365,7 @@ const s4 = D(({
33367
33365
  });
33368
33366
  }, s = () => {
33369
33367
  i.content.queries.downloadSchema(t);
33370
- }, c = z(() => i.content.queries.sortedList.map((f) => f.id), [i.content.queries.sortedList]), d = () => {
33368
+ }, c = z(() => i.content.queries.sortedList.map((g) => g.id), [i.content.queries.sortedList]), d = () => {
33371
33369
  n(c);
33372
33370
  }, h = () => {
33373
33371
  n([]);
@@ -33428,27 +33426,27 @@ const s4 = D(({
33428
33426
  paddingLeft: "24px"
33429
33427
  }, children: e("common.action") })
33430
33428
  ] }) }),
33431
- /* @__PURE__ */ r(v.Tbody, { children: i.content.queries.sortedList.map((f) => {
33429
+ /* @__PURE__ */ r(v.Tbody, { children: i.content.queries.sortedList.map((g) => {
33432
33430
  var b;
33433
- const y = ((b = p[f.id]) == null ? void 0 : b.length) ?? 0;
33431
+ const y = ((b = p[g.id]) == null ? void 0 : b.length) ?? 0;
33434
33432
  return /* @__PURE__ */ u(v.Tr, { children: [
33435
- /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(te, { value: f.id, styles: {
33433
+ /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(te, { value: g.id, styles: {
33436
33434
  input: {
33437
33435
  cursor: "pointer"
33438
33436
  }
33439
33437
  } }) }),
33440
- /* @__PURE__ */ r(v.Td, { children: f.name }),
33441
- /* @__PURE__ */ r(v.Td, { children: f.key }),
33438
+ /* @__PURE__ */ r(v.Td, { children: g.name }),
33439
+ /* @__PURE__ */ r(v.Td, { children: g.key }),
33442
33440
  /* @__PURE__ */ r(v.Td, { style: {
33443
33441
  textAlign: "right"
33444
- }, children: f.type }),
33442
+ }, children: g.type }),
33445
33443
  /* @__PURE__ */ r(v.Td, { style: {
33446
33444
  color: y === 0 ? "#ff0000" : "#000",
33447
33445
  fontWeight: y === 0 ? "bold" : "normal",
33448
33446
  textAlign: "center"
33449
33447
  }, children: y }),
33450
- /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", onClick: () => o(f.id), children: e("common.actions.open") }) })
33451
- ] }, f.id);
33448
+ /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", onClick: () => o(g.id), children: e("common.actions.open") }) })
33449
+ ] }, g.id);
33452
33450
  }) })
33453
33451
  ] }) }) })
33454
33452
  ] });
@@ -34726,8 +34724,8 @@ const Y4 = [{
34726
34724
  overflowY: "auto"
34727
34725
  }, children: s.map(({
34728
34726
  group: p,
34729
- items: f
34730
- }) => /* @__PURE__ */ r(Ft.Group, { label: p, children: f.map((y) => {
34727
+ items: g
34728
+ }) => /* @__PURE__ */ r(Ft.Group, { label: p, children: g.map((y) => {
34731
34729
  var b;
34732
34730
  return "group" in y ? /* @__PURE__ */ r(Ft.Group, { className: "dimension-group", label: /* @__PURE__ */ u(_, { gap: 4, children: [
34733
34731
  /* @__PURE__ */ r(Ni, { type: "dimension" }),
@@ -35022,8 +35020,8 @@ const Y4 = [{
35022
35020
  const t = e.config, a = e.datasource.mericoMetricInfo, i = a.metricDetail, o = a.metrics.loading || i.loading, l = i.groupByColOptions, s = (c) => {
35023
35021
  const d = i.getGroupByOptions(c), h = [];
35024
35022
  d.forEach((p) => {
35025
- p.dimension ? p.dimension.fields.forEach((f) => {
35026
- h.push(`${p.value} -> ${f.field}`);
35023
+ p.dimension ? p.dimension.fields.forEach((g) => {
35024
+ h.push(`${p.value} -> ${g.field}`);
35027
35025
  }) : h.push(p.value);
35028
35026
  }), t.setGroupBys(h);
35029
35027
  };
@@ -35209,11 +35207,11 @@ const Y4 = [{
35209
35207
  t: a
35210
35208
  } = x(), [i, o] = G("SQL"), [l, s] = G(e.key), c = () => {
35211
35209
  e.setKey(l), n(l);
35212
- }, d = l !== e.key, h = e.isADuplicatedKey(l), [p, f] = G(e.value), y = () => {
35210
+ }, d = l !== e.key, h = e.isADuplicatedKey(l), [p, g] = G(e.value), y = () => {
35213
35211
  e.setValue(p);
35214
35212
  };
35215
35213
  B(() => {
35216
- s(e.key), f(e.value);
35214
+ s(e.key), g(e.value);
35217
35215
  }, [e]);
35218
35216
  const b = p !== e.value, w = wt(), I = () => {
35219
35217
  w.openConfirmModal({
@@ -35263,7 +35261,7 @@ const Y4 = [{
35263
35261
  right: 10
35264
35262
  }, children: /* @__PURE__ */ r(me, { size: 18 }) })
35265
35263
  ] }),
35266
- /* @__PURE__ */ r(S.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r(Xa, { height: "100%", value: p, onChange: f, defaultLanguage: "sql", theme: "sql-dark" }) }),
35264
+ /* @__PURE__ */ r(S.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r(Xa, { height: "100%", value: p, onChange: g, defaultLanguage: "sql", theme: "sql-dark" }) }),
35267
35265
  /* @__PURE__ */ r(S.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r(ID, { value: p }) })
35268
35266
  ] })
35269
35267
  ] });
@@ -35290,8 +35288,8 @@ const Y4 = [{
35290
35288
  }), AD = D(() => {
35291
35289
  const {
35292
35290
  t: e
35293
- } = x(), [t, n] = G([]), a = wt(), i = de(), o = (f) => {
35294
- i.editor.setPath(["_SQL_SNIPPETS_", f]);
35291
+ } = x(), [t, n] = G([]), a = wt(), i = de(), o = (g) => {
35292
+ i.editor.setPath(["_SQL_SNIPPETS_", g]);
35295
35293
  }, l = () => {
35296
35294
  a.openConfirmModal({
35297
35295
  title: "Delete ununsed SQL snippets?",
@@ -35309,7 +35307,7 @@ const Y4 = [{
35309
35307
  });
35310
35308
  }, s = () => {
35311
35309
  i.content.sqlSnippets.downloadSchema(t);
35312
- }, c = z(() => i.content.sqlSnippets.sortedList.map((f) => f.key), [i.content.sqlSnippets.sortedList]), d = () => {
35310
+ }, c = z(() => i.content.sqlSnippets.sortedList.map((g) => g.key), [i.content.sqlSnippets.sortedList]), d = () => {
35313
35311
  n(c);
35314
35312
  }, h = () => {
35315
35313
  n([]);
@@ -35363,23 +35361,23 @@ const Y4 = [{
35363
35361
  paddingLeft: "24px"
35364
35362
  }, children: e("common.action") })
35365
35363
  ] }) }),
35366
- /* @__PURE__ */ r(v.Tbody, { children: i.content.sqlSnippets.sortedList.map((f) => {
35364
+ /* @__PURE__ */ r(v.Tbody, { children: i.content.sqlSnippets.sortedList.map((g) => {
35367
35365
  var b;
35368
- const y = ((b = p[f.key]) == null ? void 0 : b.length) ?? 0;
35366
+ const y = ((b = p[g.key]) == null ? void 0 : b.length) ?? 0;
35369
35367
  return /* @__PURE__ */ u(v.Tr, { children: [
35370
- /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(te, { value: f.key, styles: {
35368
+ /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(te, { value: g.key, styles: {
35371
35369
  input: {
35372
35370
  cursor: "pointer"
35373
35371
  }
35374
35372
  } }) }),
35375
- /* @__PURE__ */ r(v.Td, { children: f.key }),
35373
+ /* @__PURE__ */ r(v.Td, { children: g.key }),
35376
35374
  /* @__PURE__ */ r(v.Td, { style: {
35377
35375
  color: y === 0 ? "#ff0000" : "#000",
35378
35376
  fontWeight: y === 0 ? "bold" : "normal",
35379
35377
  textAlign: "center"
35380
35378
  }, children: y }),
35381
- /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", onClick: () => o(f.key), children: e("common.actions.open") }) })
35382
- ] }, f.key);
35379
+ /* @__PURE__ */ r(v.Td, { children: /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", onClick: () => o(g.key), children: e("common.actions.open") }) })
35380
+ ] }, g.key);
35383
35381
  }) })
35384
35382
  ] }) }) })
35385
35383
  ] });
@@ -35463,7 +35461,7 @@ const Y4 = [{
35463
35461
  ...b,
35464
35462
  func_content: y
35465
35463
  }));
35466
- }, f = () => {
35464
+ }, g = () => {
35467
35465
  p(fa.func_content);
35468
35466
  };
35469
35467
  return /* @__PURE__ */ u(F, { children: [
@@ -35474,7 +35472,7 @@ const Y4 = [{
35474
35472
  /* @__PURE__ */ r(te, { mt: 10, label: n("common.enabled"), checked: l.enabled, onChange: (y) => c(y.currentTarget.checked) }),
35475
35473
  /* @__PURE__ */ r(PD, { value: l.func_content, onChange: p, disabled: !l.enabled }),
35476
35474
  /* @__PURE__ */ u(_, { justify: "space-between", children: [
35477
- /* @__PURE__ */ r(L, { onClick: f, color: "red", leftSection: /* @__PURE__ */ r(mt, { size: 20 }), children: n("common.actions.revert") }),
35475
+ /* @__PURE__ */ r(L, { onClick: g, color: "red", leftSection: /* @__PURE__ */ r(mt, { size: 20 }), children: n("common.actions.revert") }),
35478
35476
  /* @__PURE__ */ u(_, { justify: "flex-end", children: [
35479
35477
  /* @__PURE__ */ r(L, { onClick: h, variant: "subtle", children: n("common.actions.cancel") }),
35480
35478
  /* @__PURE__ */ r(L, { onClick: d, children: n("common.actions.save") })
@@ -35861,14 +35859,14 @@ const iI = {
35861
35859
  onFilterValuesChange: d,
35862
35860
  onExit: h,
35863
35861
  lang: p
35864
- }, f) => {
35862
+ }, g) => {
35865
35863
  aI(o.monacoPath), Tc(o);
35866
35864
  const {
35867
35865
  data: y = []
35868
35866
  } = dn(Mi), {
35869
35867
  data: b = []
35870
35868
  } = dn(Dc), w = $.useMemo(() => _T(t, n, y, b, e, c ?? {}), [t, n]);
35871
- $.useImperativeHandle(f, () => w, [w]), Od(w.content, !0), $.useEffect(() => {
35869
+ $.useImperativeHandle(g, () => w, [w]), Od(w.content, !0), $.useEffect(() => {
35872
35870
  w.context.replace(e);
35873
35871
  }, [e]), $.useEffect(() => {
35874
35872
  w.datasources.replace(y);
@@ -36043,7 +36041,7 @@ function lI({
36043
36041
  version: d,
36044
36042
  filters: h,
36045
36043
  views: p,
36046
- panels: f,
36044
+ panels: g,
36047
36045
  layouts: y,
36048
36046
  definition: {
36049
36047
  queries: b,
@@ -36064,7 +36062,7 @@ function lI({
36064
36062
  mock_context: Mc(I),
36065
36063
  views: o3(p, c),
36066
36064
  panels: {
36067
- list: f
36065
+ list: g
36068
36066
  },
36069
36067
  layouts: {
36070
36068
  list: y,
@@ -36121,15 +36119,15 @@ const dI = ({
36121
36119
  }) => {
36122
36120
  Tc(i);
36123
36121
  const {
36124
- data: f = []
36122
+ data: g = []
36125
36123
  } = dn(Mi), {
36126
36124
  data: y = []
36127
- } = dn(Dc), b = $.useMemo(() => cI(t, n, f, y, e, s ?? {}, d ?? null), [t, n, d]);
36125
+ } = dn(Dc), b = $.useMemo(() => cI(t, n, g, y, e, s ?? {}, d ?? null), [t, n, d]);
36128
36126
  Od(b.content, !1), $.useEffect(() => {
36129
36127
  b.context.replace(e);
36130
36128
  }, [e]), $.useEffect(() => {
36131
- b.datasources.replace(f);
36132
- }, [f]), $.useEffect(() => {
36129
+ b.datasources.replace(g);
36130
+ }, [g]), $.useEffect(() => {
36133
36131
  b.globalSQLSnippets.replace(y);
36134
36132
  }, [y]), $.useEffect(() => {
36135
36133
  console.log("⚪️ calling onFilterValuesChange: ", b.content.filters.values), c == null || c(b.content.filters.values);