@devtable/dashboard 10.19.0 → 10.20.1

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.
@@ -2,7 +2,7 @@ var Xu = Object.defineProperty;
2
2
  var Ju = (e, t, n) => t in e ? Xu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var H = (e, t, n) => (Ju(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import R, { useState as U, useEffect as W, useCallback as ot, useMemo as z, forwardRef as _e, createElement as ei, useContext as Yt, useRef as ti, createContext as ll, memo as Zu } from "react";
5
- import { Select as P, Stack as S, Text as C, Group as v, TextInput as $, Button as M, Box as F, Switch as Je, NumberInput as se, Divider as E, Table as Ft, ActionIcon as Q, MultiSelect as lr, Paper as jo, Code as hs, Modal as De, Tabs as g, LoadingOverlay as Sn, Alert as Go, NativeSelect as cl, useMantineTheme as dl, ColorInput as Yo, ColorSwatch as Ki, Slider as eh, Overlay as sn, Checkbox as ve, Center as kn, CheckIcon as th, MANTINE_SIZES as nh, SimpleGrid as rn, Tooltip as Ve, SegmentedControl as rh, HoverCard as it, Anchor as Ui, Textarea as ih, Collapse as Ho, Mark as oh, createStyles as Wn, Popover as Ei, Flex as jn, Badge as cr, CloseButton as ul, Menu as he, Affix as ah, Header as sh, ThemeIcon as Ri, List as ps, UnstyledButton as lh, Navbar as Wt, JsonInput as hl, Drawer as ch, Radio as fs, Skeleton as ms, NavLink as Xi, Pagination as dh, AppShell as pl } from "@mantine/core";
5
+ import { Select as F, Stack as S, Text as C, Group as v, TextInput as $, Button as M, Box as P, Switch as Je, NumberInput as se, Divider as E, Table as Ft, ActionIcon as Q, MultiSelect as lr, Paper as jo, Code as hs, Modal as De, Tabs as g, LoadingOverlay as Sn, Alert as Go, NativeSelect as cl, useMantineTheme as dl, ColorInput as Yo, ColorSwatch as Ki, Slider as eh, Overlay as sn, Checkbox as ve, Center as kn, CheckIcon as th, MANTINE_SIZES as nh, SimpleGrid as rn, Tooltip as Ve, SegmentedControl as rh, HoverCard as it, Anchor as Ui, Textarea as ih, Collapse as Ho, Mark as oh, createStyles as Wn, Popover as Ei, Flex as jn, Badge as cr, CloseButton as ul, Menu as he, Affix as ah, Header as sh, ThemeIcon as Ri, List as ps, UnstyledButton as lh, Navbar as Wt, JsonInput as hl, Drawer as ch, Radio as fs, Skeleton as ms, NavLink as Xi, Pagination as dh, AppShell as pl } from "@mantine/core";
6
6
  import { useModals as Ht, ModalsProvider as fl } from "@mantine/modals";
7
7
  import { useBoolean as Ze, useCreation as Tt, useAsyncEffect as yr, useRequest as vn, useLatest as gs, usePrevious as uh } from "ahooks";
8
8
  import { observable as ml, runInAction as ir, toJS as Qt, reaction as xt, makeAutoObservable as xr } from "mobx";
@@ -1164,7 +1164,7 @@ class aa {
1164
1164
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1165
1165
  }
1166
1166
  }
1167
- const dc = "10.19.0", gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1167
+ const dc = "10.20.1", gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1168
1168
  __proto__: null,
1169
1169
  version: dc
1170
1170
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1283,7 +1283,7 @@ class Re extends xf {
1283
1283
  return ce(n, "version", 0) < this.VERSION;
1284
1284
  }
1285
1285
  }
1286
- const J = (e, t) => {
1286
+ const Z = (e, t) => {
1287
1287
  const [n, {
1288
1288
  setFalse: r
1289
1289
  }] = Ze(!0), [o, a] = U();
@@ -1360,7 +1360,7 @@ function _f({
1360
1360
  }) {
1361
1361
  const {
1362
1362
  value: t
1363
- } = J(e.instanceData, "config"), n = e.data, {
1363
+ } = Z(e.instanceData, "config"), n = e.data, {
1364
1364
  width: r,
1365
1365
  height: o
1366
1366
  } = e.viewport, {
@@ -1468,7 +1468,7 @@ function kf() {
1468
1468
  throw new Error("Please use FullScreenPanelContext.Provider");
1469
1469
  return e;
1470
1470
  }
1471
- const X = D(_e(({
1471
+ const J = D(_e(({
1472
1472
  label: e,
1473
1473
  required: t,
1474
1474
  value: n,
@@ -1487,7 +1487,7 @@ const X = D(_e(({
1487
1487
  group: ""
1488
1488
  }), p;
1489
1489
  }, [c.dataFieldOptions]);
1490
- return /* @__PURE__ */ i(P, { ref: l, label: e, data: d, value: n, onChange: r, required: t, sx: a, maxDropdownHeight: 500, ...s });
1490
+ return /* @__PURE__ */ i(F, { ref: l, label: e, data: d, value: n, onChange: r, required: t, sx: a, maxDropdownHeight: 500, ...s });
1491
1491
  }));
1492
1492
  function Tf({
1493
1493
  context: e
@@ -1495,7 +1495,7 @@ function Tf({
1495
1495
  const {
1496
1496
  value: t,
1497
1497
  set: n
1498
- } = J(e.instanceData, "config"), r = Ne({}, t, sa), {
1498
+ } = Z(e.instanceData, "config"), r = Ne({}, t, sa), {
1499
1499
  control: o,
1500
1500
  handleSubmit: a,
1501
1501
  reset: s
@@ -1512,7 +1512,7 @@ function Tf({
1512
1512
  }, children: [
1513
1513
  /* @__PURE__ */ i(y, { name: "x_axis_data_key", control: o, render: ({
1514
1514
  field: l
1515
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, ...l }) }),
1515
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, ...l }) }),
1516
1516
  /* @__PURE__ */ i(y, { name: "xAxis3D.name", control: o, render: ({
1517
1517
  field: l
1518
1518
  }) => /* @__PURE__ */ i($, { sx: {
@@ -1526,7 +1526,7 @@ function Tf({
1526
1526
  }, children: [
1527
1527
  /* @__PURE__ */ i(y, { name: "y_axis_data_key", control: o, render: ({
1528
1528
  field: l
1529
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, ...l }) }),
1529
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, ...l }) }),
1530
1530
  /* @__PURE__ */ i(y, { name: "yAxis3D.name", control: o, render: ({
1531
1531
  field: l
1532
1532
  }) => /* @__PURE__ */ i($, { sx: {
@@ -1540,7 +1540,7 @@ function Tf({
1540
1540
  }, children: [
1541
1541
  /* @__PURE__ */ i(y, { name: "z_axis_data_key", control: o, render: ({
1542
1542
  field: l
1543
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, ...l }) }),
1543
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, ...l }) }),
1544
1544
  /* @__PURE__ */ i(y, { name: "zAxis3D.name", control: o, render: ({
1545
1545
  field: l
1546
1546
  }) => /* @__PURE__ */ i($, { sx: {
@@ -1632,7 +1632,7 @@ class ct extends R.Component {
1632
1632
  error: null
1633
1633
  });
1634
1634
  };
1635
- return /* @__PURE__ */ u(F, { children: [
1635
+ return /* @__PURE__ */ u(P, { children: [
1636
1636
  /* @__PURE__ */ i(C, { size: "xs", children: (t = this.state.error) == null ? void 0 : t.message }),
1637
1637
  /* @__PURE__ */ i(M, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
1638
1638
  display: "block"
@@ -1677,7 +1677,7 @@ function zf({
1677
1677
  };
1678
1678
  return /* @__PURE__ */ u(S, { ref: n, children: [
1679
1679
  /* @__PURE__ */ u(v, { grow: !0, children: [
1680
- /* @__PURE__ */ i(P, { label: "Format", data: [{
1680
+ /* @__PURE__ */ i(F, { label: "Format", data: [{
1681
1681
  label: "1234",
1682
1682
  value: "number"
1683
1683
  }, {
@@ -1805,7 +1805,7 @@ const Af = [{
1805
1805
  } }),
1806
1806
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
1807
1807
  /* @__PURE__ */ i(se, { label: "Max Width", hideControls: !0, value: t.width, onChange: o("width") }),
1808
- /* @__PURE__ */ i(P, { label: "Overflow", data: Af, value: t.overflow, onChange: o("overflow") }),
1808
+ /* @__PURE__ */ i(F, { label: "Overflow", data: Af, value: t.overflow, onChange: o("overflow") }),
1809
1809
  /* @__PURE__ */ i(
1810
1810
  $,
1811
1811
  {
@@ -1978,7 +1978,7 @@ function Ef(e, t) {
1978
1978
  const {
1979
1979
  value: n,
1980
1980
  set: r
1981
- } = J(e.operation.operationData, "config"), [o, a] = U(Ne({}, n, t)), s = async () => {
1981
+ } = Z(e.operation.operationData, "config"), [o, a] = U(Ne({}, n, t)), s = async () => {
1982
1982
  await r(o);
1983
1983
  };
1984
1984
  return W(() => {
@@ -2056,7 +2056,7 @@ function Vf(e) {
2056
2056
  const {
2057
2057
  value: t,
2058
2058
  set: n
2059
- } = J(e.operationData, "config"), r = (o) => void n({
2059
+ } = Z(e.operationData, "config"), r = (o) => void n({
2060
2060
  template: o
2061
2061
  });
2062
2062
  return [(t == null ? void 0 : t.template) || "", r];
@@ -2078,13 +2078,13 @@ const qf = {
2078
2078
  const t = Ce(), {
2079
2079
  value: n,
2080
2080
  set: r
2081
- } = J(e.operation.operationData, "config");
2081
+ } = Z(e.operation.operationData, "config");
2082
2082
  console.log({
2083
2083
  value: n,
2084
2084
  viewID: n == null ? void 0 : n.viewID
2085
2085
  });
2086
2086
  const o = (n == null ? void 0 : n.viewID) || "";
2087
- return /* @__PURE__ */ i(P, { defaultValue: o, value: o, onChange: (s) => void r({
2087
+ return /* @__PURE__ */ i(F, { defaultValue: o, value: o, onChange: (s) => void r({
2088
2088
  viewID: s
2089
2089
  }), label: "View", data: t.views.options });
2090
2090
  });
@@ -2127,7 +2127,7 @@ const Gf = {
2127
2127
  const t = Ce(), {
2128
2128
  value: n = Qf,
2129
2129
  set: r
2130
- } = J(e.operation.operationData, "config"), {
2130
+ } = Z(e.operation.operationData, "config"), {
2131
2131
  dictionary: o = {}
2132
2132
  } = n;
2133
2133
  console.log({
@@ -2190,7 +2190,7 @@ const Xf = {
2190
2190
  const t = Ce(), {
2191
2191
  value: n = Jf,
2192
2192
  set: r
2193
- } = J(e.operation.operationData, "config"), {
2193
+ } = Z(e.operation.operationData, "config"), {
2194
2194
  filter_keys: o = []
2195
2195
  } = n, a = (l) => {
2196
2196
  r({
@@ -2506,7 +2506,7 @@ function lm({
2506
2506
  async function r(o) {
2507
2507
  await e.changeSchema(t.find((a) => a.id === o));
2508
2508
  }
2509
- return /* @__PURE__ */ i(P, { label: "Operation", data: n, onChange: r, value: e.operationSchema.id });
2509
+ return /* @__PURE__ */ i(F, { label: "Operation", data: n, onChange: r, value: e.operationSchema.id });
2510
2510
  }
2511
2511
  const cm = D((e) => {
2512
2512
  const [t, {
@@ -2585,7 +2585,7 @@ const pm = D(({
2585
2585
  async function r(o) {
2586
2586
  await e.changeSchema(t.find((a) => a.id === o));
2587
2587
  }
2588
- return /* @__PURE__ */ i(P, { label: "Trigger", data: n, value: e.triggerSchema.id, onChange: r });
2588
+ return /* @__PURE__ */ i(F, { label: "Trigger", data: n, value: e.triggerSchema.id, onChange: r });
2589
2589
  }), mm = D(({
2590
2590
  model: e
2591
2591
  }) => {
@@ -6228,7 +6228,7 @@ function fb() {
6228
6228
  const mb = ({
6229
6229
  value: e,
6230
6230
  onChange: t
6231
- }) => /* @__PURE__ */ i(F, { sx: {
6231
+ }) => /* @__PURE__ */ i(P, { sx: {
6232
6232
  position: "relative",
6233
6233
  flexGrow: 1
6234
6234
  }, children: /* @__PURE__ */ i(ht, { className: "function-editor", height: "100%", defaultLanguage: "javascript", value: e, onChange: (r) => {
@@ -6289,7 +6289,7 @@ const mb = ({
6289
6289
  close: d
6290
6290
  }] = ta(!1);
6291
6291
  return /* @__PURE__ */ u(j, { children: [
6292
- /* @__PURE__ */ i(De, { opened: l, onClose: d, title: "Authentication", withinPortal: !0, zIndex: 320, size: "900px", children: /* @__PURE__ */ i(F, { h: 600, children: /* @__PURE__ */ i(gr, { value: e, onChange: t, defaultValue: a, label: n }) }) }),
6292
+ /* @__PURE__ */ i(De, { opened: l, onClose: d, title: "Authentication", withinPortal: !0, zIndex: 320, size: "900px", children: /* @__PURE__ */ i(P, { h: 600, children: /* @__PURE__ */ i(gr, { value: e, onChange: t, defaultValue: a, label: n }) }) }),
6293
6293
  /* @__PURE__ */ i(M, { onClick: c, ...o, children: r })
6294
6294
  ] });
6295
6295
  }), Vs = ["function aggregation({ queryData }, utils) {", ' return "Aggregation Result";', "}"].join(`
@@ -6423,7 +6423,7 @@ function _b({
6423
6423
  });
6424
6424
  };
6425
6425
  return /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, pt: r, children: [
6426
- /* @__PURE__ */ i(P, { ref: o, label: e, data: wb, value: t.type, onChange: a }),
6426
+ /* @__PURE__ */ i(F, { ref: o, label: e, data: wb, value: t.type, onChange: a }),
6427
6427
  t.type === "quantile" && /* @__PURE__ */ i(se, { label: "p", value: t.config.p, onChange: s, precision: 2, min: 0.05, step: 0.05, max: 1 }),
6428
6428
  t.type === "custom" && /* @__PURE__ */ i(gb, { label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: l, defaultValue: Vs, triggerButtonProps: {
6429
6429
  size: "xs",
@@ -6496,7 +6496,7 @@ function kb({
6496
6496
  flexGrow: 0
6497
6497
  }, children: "or" }),
6498
6498
  /* @__PURE__ */ i(
6499
- P,
6499
+ F,
6500
6500
  {
6501
6501
  data: o,
6502
6502
  value: e,
@@ -6594,7 +6594,7 @@ const Ib = R.forwardRef(Db), Yc = R.forwardRef(function({
6594
6594
  }, children: /* @__PURE__ */ i(Gc, { label: "Font Weight", value: t.weight, onChange: (s) => a("weight", s) }) }),
6595
6595
  /* @__PURE__ */ i(E, { my: "xs", label: "Style", labelPosition: "center" }),
6596
6596
  /* @__PURE__ */ u(S, { children: [
6597
- /* @__PURE__ */ i(P, { label: "Color Type", data: [{
6597
+ /* @__PURE__ */ i(F, { label: "Color Type", data: [{
6598
6598
  label: "Static Color",
6599
6599
  value: "static"
6600
6600
  }, {
@@ -6618,12 +6618,12 @@ R.forwardRef(function({
6618
6618
  const c = k.cloneDeep(t);
6619
6619
  k.set(c, s, l), n(c);
6620
6620
  };
6621
- return /* @__PURE__ */ u(F, { px: "sm", py: "md", ref: o, children: [
6621
+ return /* @__PURE__ */ u(P, { px: "sm", py: "md", ref: o, children: [
6622
6622
  /* @__PURE__ */ i(C, { weight: "bold", pb: 0, children: t.name }),
6623
6623
  /* @__PURE__ */ i(E, { my: "xs", label: "Data", labelPosition: "center" }),
6624
6624
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
6625
6625
  /* @__PURE__ */ i($, { label: "Name", required: !0, value: t.name, onChange: (s) => a("name", s.currentTarget.value) }),
6626
- /* @__PURE__ */ i(X, { label: "Data Field", required: !0, value: t.data_field, onChange: (s) => a("data_field", s) })
6626
+ /* @__PURE__ */ i(J, { label: "Data Field", required: !0, value: t.data_field, onChange: (s) => a("data_field", s) })
6627
6627
  ] }),
6628
6628
  /* @__PURE__ */ i(mi, { label: "Aggregation", value: t.aggregation, onChange: (s) => a("aggregation", s) }),
6629
6629
  /* @__PURE__ */ i(E, { my: "xs", label: "Format", labelPosition: "center" }),
@@ -6854,7 +6854,7 @@ function Vb({
6854
6854
  }) {
6855
6855
  const {
6856
6856
  value: n
6857
- } = J(e.instanceData, "config"), {
6857
+ } = Z(e.instanceData, "config"), {
6858
6858
  variables: r
6859
6859
  } = e, o = e.data, {
6860
6860
  width: a,
@@ -6879,7 +6879,7 @@ function Vb({
6879
6879
  data: o,
6880
6880
  variables: r
6881
6881
  }), [l, o, r]);
6882
- return !n || !a || !s ? null : /* @__PURE__ */ i(F, { sx: {
6882
+ return !n || !a || !s ? null : /* @__PURE__ */ i(P, { sx: {
6883
6883
  width: a,
6884
6884
  height: s,
6885
6885
  overflow: "hidden"
@@ -6911,7 +6911,7 @@ function Nb({
6911
6911
  control: e,
6912
6912
  render: ({
6913
6913
  field: o
6914
- }) => /* @__PURE__ */ i(P, { label: "Value", required: !0, data: r, sx: {
6914
+ }) => /* @__PURE__ */ i(F, { label: "Value", required: !0, data: r, sx: {
6915
6915
  flex: 1
6916
6916
  }, ...o })
6917
6917
  }
@@ -6961,7 +6961,7 @@ const qb = ({
6961
6961
  disabled: e,
6962
6962
  value: t,
6963
6963
  onChange: n
6964
- }) => /* @__PURE__ */ u(F, { sx: {
6964
+ }) => /* @__PURE__ */ u(P, { sx: {
6965
6965
  position: "relative"
6966
6966
  }, children: [
6967
6967
  e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -7037,7 +7037,7 @@ const qb = ({
7037
7037
  }, ...n }) }),
7038
7038
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
7039
7039
  field: n
7040
- }) => /* @__PURE__ */ i(X, { label: "X Axis Data Field", required: !0, sx: {
7040
+ }) => /* @__PURE__ */ i(J, { label: "X Axis Data Field", required: !0, sx: {
7041
7041
  flex: 1
7042
7042
  }, ...n }) })
7043
7043
  ] }),
@@ -7076,7 +7076,7 @@ const qb = ({
7076
7076
  }, ...n }) }),
7077
7077
  /* @__PURE__ */ i(y, { name: "y_axis.data_key", control: e, render: ({
7078
7078
  field: n
7079
- }) => /* @__PURE__ */ i(X, { label: "Y Axis Data Field", required: !0, sx: {
7079
+ }) => /* @__PURE__ */ i(J, { label: "Y Axis Data Field", required: !0, sx: {
7080
7080
  flex: 1
7081
7081
  }, ...n }) })
7082
7082
  ] }),
@@ -7099,7 +7099,7 @@ const qb = ({
7099
7099
  }, ...r }) }),
7100
7100
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
7101
7101
  field: r
7102
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
7102
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
7103
7103
  flex: 1
7104
7104
  }, ...r }) })
7105
7105
  ] }),
@@ -7186,7 +7186,7 @@ const Qb = [{
7186
7186
  }, checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }) }),
7187
7187
  /* @__PURE__ */ i(v, { children: /* @__PURE__ */ i(y, { name: "legend", control: e, render: ({
7188
7188
  field: o
7189
- }) => /* @__PURE__ */ i(P, { label: "Orientation", data: Qb, sx: {
7189
+ }) => /* @__PURE__ */ i(F, { label: "Orientation", data: Qb, sx: {
7190
7190
  flex: 1
7191
7191
  }, value: o.value.orient, onChange: (a) => {
7192
7192
  r(a, o.onChange);
@@ -7199,7 +7199,7 @@ function Ub({
7199
7199
  const {
7200
7200
  value: t,
7201
7201
  set: n
7202
- } = J(e.instanceData, "config"), {
7202
+ } = Z(e.instanceData, "config"), {
7203
7203
  variables: r
7204
7204
  } = e, o = z(() => Ne({}, t, ca), [t]), {
7205
7205
  control: a,
@@ -7523,7 +7523,7 @@ const xa = {
7523
7523
  instance: t
7524
7524
  }), r = Mt(n.triggerManager, Qc.id), o = Ke(), {
7525
7525
  value: a
7526
- } = J(e.instanceData, "config"), s = z(() => $e({}, a, xa), [a]), {
7526
+ } = Z(e.instanceData, "config"), s = z(() => $e({}, a, xa), [a]), {
7527
7527
  content: l,
7528
7528
  horizontal_align: c,
7529
7529
  vertical_align: d,
@@ -7566,7 +7566,7 @@ const xa = {
7566
7566
  label: e,
7567
7567
  value: t,
7568
7568
  onChange: n
7569
- }) => /* @__PURE__ */ i(P, { data: py, label: e, value: t, onChange: n }), my = [{
7569
+ }) => /* @__PURE__ */ i(F, { data: py, label: e, value: t, onChange: n }), my = [{
7570
7570
  label: "Filled",
7571
7571
  value: "filled"
7572
7572
  }, {
@@ -7613,7 +7613,7 @@ function yy({
7613
7613
  const {
7614
7614
  value: t,
7615
7615
  set: n
7616
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, xa), [t]), o = r;
7616
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, xa), [t]), o = r;
7617
7617
  W(() => {
7618
7618
  !ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
7619
7619
  }, [r, o]);
@@ -7651,7 +7651,7 @@ function yy({
7651
7651
  name: "variant",
7652
7652
  render: ({
7653
7653
  field: f
7654
- }) => /* @__PURE__ */ i(P, { label: "Variant", data: my, ...f })
7654
+ }) => /* @__PURE__ */ i(F, { label: "Variant", data: my, ...f })
7655
7655
  }
7656
7656
  ),
7657
7657
  /* @__PURE__ */ i(y, { control: a, name: "color", render: ({
@@ -7674,7 +7674,7 @@ function yy({
7674
7674
  name: "horizontal_align",
7675
7675
  render: ({
7676
7676
  field: f
7677
- }) => /* @__PURE__ */ i(P, { label: "Horizontal Alignment", data: gy, ...f })
7677
+ }) => /* @__PURE__ */ i(F, { label: "Horizontal Alignment", data: gy, ...f })
7678
7678
  }
7679
7679
  ),
7680
7680
  /* @__PURE__ */ i(
@@ -7684,7 +7684,7 @@ function yy({
7684
7684
  name: "vertical_align",
7685
7685
  render: ({
7686
7686
  field: f
7687
- }) => /* @__PURE__ */ i(P, { label: "Vertical Alignment", data: by, ...f })
7687
+ }) => /* @__PURE__ */ i(F, { label: "Vertical Alignment", data: by, ...f })
7688
7688
  }
7689
7689
  )
7690
7690
  ] })
@@ -8361,7 +8361,7 @@ function Yy({
8361
8361
  instance: t
8362
8362
  }), {
8363
8363
  value: r
8364
- } = J(e.instanceData, "config"), {
8364
+ } = Z(e.instanceData, "config"), {
8365
8365
  variables: o
8366
8366
  } = e, a = z(() => Ne({}, r, wa), [r]), s = e.data, {
8367
8367
  width: l,
@@ -8383,7 +8383,7 @@ function Yy({
8383
8383
  bottom: br(x.bottom, o, s)
8384
8384
  };
8385
8385
  }, [a, s]), w = Math.max(0, c - p - f);
8386
- return /* @__PURE__ */ u(F, { sx: {
8386
+ return /* @__PURE__ */ u(P, { sx: {
8387
8387
  width: l,
8388
8388
  height: c,
8389
8389
  overflow: "hidden"
@@ -8410,19 +8410,19 @@ const Sa = _e(({
8410
8410
  return /* @__PURE__ */ u(S, { children: [
8411
8411
  /* @__PURE__ */ i(E, { variant: "dashed", label: "Scroll to Zoom", labelPosition: "center" }),
8412
8412
  /* @__PURE__ */ u(v, { children: [
8413
- /* @__PURE__ */ i(F, { sx: {
8413
+ /* @__PURE__ */ i(P, { sx: {
8414
8414
  flexGrow: 1
8415
8415
  }, children: /* @__PURE__ */ i(Je, { label: "Enable on X Axis", checked: e.x_axis_scroll, onChange: (o) => r("x_axis_scroll")(o.currentTarget.checked) }) }),
8416
- /* @__PURE__ */ i(F, { sx: {
8416
+ /* @__PURE__ */ i(P, { sx: {
8417
8417
  flexGrow: 1
8418
8418
  }, children: /* @__PURE__ */ i(Je, { label: "Enable on Y Axis", checked: e.y_axis_scroll, onChange: (o) => r("y_axis_scroll")(o.currentTarget.checked) }) })
8419
8419
  ] }),
8420
8420
  /* @__PURE__ */ i(E, { variant: "dashed", label: "Slider for Zooming", labelPosition: "center" }),
8421
8421
  /* @__PURE__ */ u(v, { children: [
8422
- /* @__PURE__ */ i(F, { sx: {
8422
+ /* @__PURE__ */ i(P, { sx: {
8423
8423
  flexGrow: 1
8424
8424
  }, children: /* @__PURE__ */ i(Je, { label: "Slider for X Axis", checked: e.x_axis_slider, onChange: (o) => r("x_axis_slider")(o.currentTarget.checked) }) }),
8425
- /* @__PURE__ */ i(Ve, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ i(F, { sx: {
8425
+ /* @__PURE__ */ i(Ve, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ i(P, { sx: {
8426
8426
  flexGrow: 1
8427
8427
  }, children: /* @__PURE__ */ i(Je, { label: "Slider for Y Axis", disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (o) => r("y_axis_slider")(o.currentTarget.checked) }) }) })
8428
8428
  ] })
@@ -8460,7 +8460,7 @@ function Ky({
8460
8460
  field: o
8461
8461
  }) => (
8462
8462
  // @ts-expect-error type of onChange
8463
- /* @__PURE__ */ i(P, { label: "Type", required: !0, data: Hy, sx: {
8463
+ /* @__PURE__ */ i(F, { label: "Type", required: !0, data: Hy, sx: {
8464
8464
  flex: 1
8465
8465
  }, ...o })
8466
8466
  ) }),
@@ -8468,7 +8468,7 @@ function Ky({
8468
8468
  field: o
8469
8469
  }) => (
8470
8470
  // @ts-expect-error type of onChange
8471
- /* @__PURE__ */ i(P, { label: "Direction", required: !0, data: Qy, sx: {
8471
+ /* @__PURE__ */ i(F, { label: "Direction", required: !0, data: Qy, sx: {
8472
8472
  flex: 1
8473
8473
  }, ...o })
8474
8474
  ) })
@@ -8479,7 +8479,7 @@ function Ky({
8479
8479
  field: o
8480
8480
  }) => (
8481
8481
  // @ts-expect-error type of onChange
8482
- /* @__PURE__ */ i(P, { label: "Upper Boundary", required: !0, data: r, sx: {
8482
+ /* @__PURE__ */ i(F, { label: "Upper Boundary", required: !0, data: r, sx: {
8483
8483
  flex: 1
8484
8484
  }, ...o })
8485
8485
  ) }),
@@ -8487,7 +8487,7 @@ function Ky({
8487
8487
  field: o
8488
8488
  }) => (
8489
8489
  // @ts-expect-error type of onChange
8490
- /* @__PURE__ */ i(P, { label: "Lower Boundary", required: !0, data: r, sx: {
8490
+ /* @__PURE__ */ i(F, { label: "Lower Boundary", required: !0, data: r, sx: {
8491
8491
  flex: 1
8492
8492
  }, ...o })
8493
8493
  ) })
@@ -8583,7 +8583,7 @@ function Zy({
8583
8583
  control: e,
8584
8584
  render: ({
8585
8585
  field: l
8586
- }) => /* @__PURE__ */ i(P, { label: "Value", required: !0, data: o, sx: {
8586
+ }) => /* @__PURE__ */ i(F, { label: "Value", required: !0, data: o, sx: {
8587
8587
  flex: 1
8588
8588
  }, ...l })
8589
8589
  }
@@ -8600,7 +8600,7 @@ function Zy({
8600
8600
  field: l
8601
8601
  }) => (
8602
8602
  // @ts-expect-error type of onChange
8603
- /* @__PURE__ */ i(P, { label: "Orientation", data: Jy, required: !0, sx: {
8603
+ /* @__PURE__ */ i(F, { label: "Orientation", data: Jy, required: !0, sx: {
8604
8604
  flex: 1
8605
8605
  }, ...l })
8606
8606
  ) }),
@@ -8612,7 +8612,7 @@ function Zy({
8612
8612
  onChange: c,
8613
8613
  ...d
8614
8614
  }
8615
- }) => /* @__PURE__ */ i(P, { label: "Y Axis", data: a, disabled: a.length === 0, ...d, value: (l == null ? void 0 : l.toString()) ?? "", onChange: (p) => {
8615
+ }) => /* @__PURE__ */ i(F, { label: "Y Axis", data: a, disabled: a.length === 0, ...d, value: (l == null ? void 0 : l.toString()) ?? "", onChange: (p) => {
8616
8616
  if (!p) {
8617
8617
  c(0);
8618
8618
  return;
@@ -8631,7 +8631,7 @@ function Zy({
8631
8631
  control: e,
8632
8632
  render: ({
8633
8633
  field: l
8634
- }) => /* @__PURE__ */ i(P, { label: "Line Type", data: Xy, sx: {
8634
+ }) => /* @__PURE__ */ i(F, { label: "Line Type", data: Xy, sx: {
8635
8635
  flexGrow: 1
8636
8636
  }, ...l })
8637
8637
  }
@@ -8760,14 +8760,14 @@ function rx({
8760
8760
  }, ...s }) }),
8761
8761
  /* @__PURE__ */ i(y, { name: `regressions.${n}.group_by_key`, control: e, render: ({
8762
8762
  field: s
8763
- }) => /* @__PURE__ */ i(X, { label: "Split into multiple regression lines by this key...", clearable: !0, sx: {
8763
+ }) => /* @__PURE__ */ i(J, { label: "Split into multiple regression lines by this key...", clearable: !0, sx: {
8764
8764
  flex: 1
8765
8765
  }, ...s }) })
8766
8766
  ] }),
8767
8767
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
8768
8768
  /* @__PURE__ */ i(y, { name: `regressions.${n}.y_axis_data_key`, control: e, render: ({
8769
8769
  field: s
8770
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
8770
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
8771
8771
  flex: 1
8772
8772
  }, ...s }) }),
8773
8773
  /* @__PURE__ */ i(y, { name: `regressions.${n}.plot.yAxisIndex`, control: e, render: ({
@@ -8776,7 +8776,7 @@ function rx({
8776
8776
  onChange: l,
8777
8777
  ...c
8778
8778
  }
8779
- }) => /* @__PURE__ */ i(P, { label: "Y Axis", data: o, disabled: o.length === 0, ...c, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (d) => {
8779
+ }) => /* @__PURE__ */ i(F, { label: "Y Axis", data: o, disabled: o.length === 0, ...c, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (d) => {
8780
8780
  if (!d) {
8781
8781
  l(0);
8782
8782
  return;
@@ -8794,7 +8794,7 @@ function rx({
8794
8794
  control: e,
8795
8795
  render: ({
8796
8796
  field: s
8797
- }) => /* @__PURE__ */ i(P, { label: "Method", data: tx, sx: {
8797
+ }) => /* @__PURE__ */ i(F, { label: "Method", data: tx, sx: {
8798
8798
  flex: 1
8799
8799
  }, ...s })
8800
8800
  }
@@ -8821,7 +8821,7 @@ function rx({
8821
8821
  control: e,
8822
8822
  render: ({
8823
8823
  field: s
8824
- }) => /* @__PURE__ */ i(P, { label: "Line Type", data: nx, sx: {
8824
+ }) => /* @__PURE__ */ i(F, { label: "Line Type", data: nx, sx: {
8825
8825
  flexGrow: 1
8826
8826
  }, ...s })
8827
8827
  }
@@ -8946,7 +8946,7 @@ function ax({
8946
8946
  control: e,
8947
8947
  render: ({
8948
8948
  field: o
8949
- }) => /* @__PURE__ */ i(P, { label: "Bar Gap", data: ox, sx: {
8949
+ }) => /* @__PURE__ */ i(F, { label: "Bar Gap", data: ox, sx: {
8950
8950
  flexGrow: 1
8951
8951
  }, ...o })
8952
8952
  }
@@ -8974,7 +8974,7 @@ function ax({
8974
8974
  const sx = ({
8975
8975
  value: e,
8976
8976
  onChange: t
8977
- }) => /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
8977
+ }) => /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
8978
8978
  r && t(r);
8979
8979
  }, theme: "vs-dark", options: {
8980
8980
  minimap: {
@@ -9008,7 +9008,7 @@ const sx = ({
9008
9008
  d(ka.dynamic.func_content);
9009
9009
  };
9010
9010
  return /* @__PURE__ */ u(j, { children: [
9011
- /* @__PURE__ */ i(F, { sx: {
9011
+ /* @__PURE__ */ i(P, { sx: {
9012
9012
  width: "50%"
9013
9013
  }, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
9014
9014
  flexGrow: 0
@@ -9058,7 +9058,7 @@ const sx = ({
9058
9058
  });
9059
9059
  };
9060
9060
  return /* @__PURE__ */ u(rn, { cols: 2, children: [
9061
- /* @__PURE__ */ i(P, { ref: r, label: e, data: ux, value: t.type, onChange: o, sx: {
9061
+ /* @__PURE__ */ i(F, { ref: r, label: e, data: ux, value: t.type, onChange: o, sx: {
9062
9062
  flexGrow: 1
9063
9063
  } }),
9064
9064
  /* @__PURE__ */ i(dx, { value: t, onChange: n }),
@@ -9102,7 +9102,7 @@ function fx({
9102
9102
  control: e,
9103
9103
  render: ({
9104
9104
  field: o
9105
- }) => /* @__PURE__ */ i(P, { label: "Line Type", data: px, sx: {
9105
+ }) => /* @__PURE__ */ i(F, { label: "Line Type", data: px, sx: {
9106
9106
  flexGrow: 1
9107
9107
  }, ...o })
9108
9108
  }
@@ -9123,7 +9123,7 @@ function fx({
9123
9123
  /* @__PURE__ */ u(v, { grow: !0, align: "center", children: [
9124
9124
  /* @__PURE__ */ i(y, { name: `series.${t}.step`, control: e, render: ({
9125
9125
  field: o
9126
- }) => /* @__PURE__ */ i(P, { label: "Step", data: hx, sx: {
9126
+ }) => /* @__PURE__ */ i(F, { label: "Step", data: hx, sx: {
9127
9127
  flexGrow: 1,
9128
9128
  maxWidth: "48%"
9129
9129
  }, ...o, value: String(o.value), onChange: (a) => {
@@ -9133,12 +9133,12 @@ function fx({
9133
9133
  /* @__PURE__ */ u(S, { children: [
9134
9134
  /* @__PURE__ */ i(y, { name: `series.${t}.smooth`, control: e, render: ({
9135
9135
  field: o
9136
- }) => /* @__PURE__ */ i(F, { sx: {
9136
+ }) => /* @__PURE__ */ i(P, { sx: {
9137
9137
  flexGrow: 1
9138
9138
  }, children: /* @__PURE__ */ i(Je, { label: "Smooth Line", checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }) }),
9139
9139
  /* @__PURE__ */ i(y, { name: `series.${t}.display_name_on_line`, control: e, render: ({
9140
9140
  field: o
9141
- }) => /* @__PURE__ */ i(F, { sx: {
9141
+ }) => /* @__PURE__ */ i(P, { sx: {
9142
9142
  flexGrow: 1
9143
9143
  }, children: /* @__PURE__ */ i(Je, { label: "Display Name on Line", checked: o.value ?? !1, onChange: (a) => o.onChange(a.currentTarget.checked) }) }) })
9144
9144
  ] })
@@ -9146,7 +9146,7 @@ function fx({
9146
9146
  /* @__PURE__ */ u(S, { children: [
9147
9147
  /* @__PURE__ */ i(y, { name: `series.${t}.showSymbol`, control: e, render: ({
9148
9148
  field: o
9149
- }) => /* @__PURE__ */ i(F, { mt: 10, mb: -10, sx: {
9149
+ }) => /* @__PURE__ */ i(P, { mt: 10, mb: -10, sx: {
9150
9150
  flexGrow: 1
9151
9151
  }, children: /* @__PURE__ */ i(Je, { label: "Show Symbol on Line", checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }) }),
9152
9152
  r && /* @__PURE__ */ i(y, { name: `series.${t}.symbolSize`, control: e, render: ({
@@ -9244,7 +9244,7 @@ function bx({
9244
9244
  onChange: l,
9245
9245
  ...c
9246
9246
  }
9247
- }) => /* @__PURE__ */ i(P, { label: "Y Axis", data: o, disabled: o.length === 0, ...c, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (d) => {
9247
+ }) => /* @__PURE__ */ i(F, { label: "Y Axis", data: o, disabled: o.length === 0, ...c, value: (s == null ? void 0 : s.toString()) ?? "", onChange: (d) => {
9248
9248
  if (!d) {
9249
9249
  l(0);
9250
9250
  return;
@@ -9257,7 +9257,7 @@ function bx({
9257
9257
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
9258
9258
  /* @__PURE__ */ i(y, { name: `series.${t}.y_axis_data_key`, control: e, render: ({
9259
9259
  field: s
9260
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
9260
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
9261
9261
  flex: 1
9262
9262
  }, ...s }) }),
9263
9263
  /* @__PURE__ */ i(y, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
@@ -9266,7 +9266,7 @@ function bx({
9266
9266
  ] }),
9267
9267
  /* @__PURE__ */ i(v, { grow: !0, children: /* @__PURE__ */ i(y, { name: `series.${t}.group_by_key`, control: e, render: ({
9268
9268
  field: s
9269
- }) => /* @__PURE__ */ i(X, { label: "Split into multiple series by this key...", clearable: !0, sx: {
9269
+ }) => /* @__PURE__ */ i(J, { label: "Split into multiple series by this key...", clearable: !0, sx: {
9270
9270
  flex: 1
9271
9271
  }, ...s }) }) }),
9272
9272
  a === "line" && /* @__PURE__ */ i(fx, { index: t, control: e, seriesItem: r }),
@@ -9280,7 +9280,7 @@ function bx({
9280
9280
  control: e,
9281
9281
  render: ({
9282
9282
  field: s
9283
- }) => /* @__PURE__ */ i(P, { label: "Label Position", data: gx, ...s })
9283
+ }) => /* @__PURE__ */ i(F, { label: "Label Position", data: gx, ...s })
9284
9284
  }
9285
9285
  ),
9286
9286
  /* @__PURE__ */ u(S, { spacing: 4, children: [
@@ -9420,14 +9420,14 @@ function _x({
9420
9420
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
9421
9421
  /* @__PURE__ */ i(y, { name: "x_axis_data_key", control: e, render: ({
9422
9422
  field: n
9423
- }) => /* @__PURE__ */ i(X, { label: "X Axis Data Field", required: !0, sx: {
9423
+ }) => /* @__PURE__ */ i(J, { label: "X Axis Data Field", required: !0, sx: {
9424
9424
  flex: 1
9425
9425
  }, ...n }) }),
9426
9426
  /* @__PURE__ */ i(y, { name: "x_axis.type", control: e, render: ({
9427
9427
  field: n
9428
9428
  }) => (
9429
9429
  // @ts-expect-error type of onChange
9430
- /* @__PURE__ */ i(P, { label: /* @__PURE__ */ i(vx, {}), required: !0, data: wx, sx: {
9430
+ /* @__PURE__ */ i(F, { label: /* @__PURE__ */ i(vx, {}), required: !0, data: wx, sx: {
9431
9431
  flex: 1
9432
9432
  }, ...n })
9433
9433
  ) })
@@ -9492,7 +9492,7 @@ function kx({
9492
9492
  field: r
9493
9493
  }) => (
9494
9494
  // @ts-expect-error type of onChange
9495
- /* @__PURE__ */ i(P, { label: "Name Anchor", required: !0, data: Cx, sx: {
9495
+ /* @__PURE__ */ i(F, { label: "Name Anchor", required: !0, data: Cx, sx: {
9496
9496
  flex: 1
9497
9497
  }, ...r })
9498
9498
  ) })
@@ -9502,7 +9502,7 @@ function kx({
9502
9502
  field: r
9503
9503
  }) => (
9504
9504
  // @ts-expect-error type of onChange
9505
- /* @__PURE__ */ i(P, { label: "Position", required: !0, data: Sx, sx: {
9505
+ /* @__PURE__ */ i(F, { label: "Position", required: !0, data: Sx, sx: {
9506
9506
  flex: 1
9507
9507
  }, ...r })
9508
9508
  ) }) }),
@@ -9575,7 +9575,7 @@ function Dx({
9575
9575
  const {
9576
9576
  value: t,
9577
9577
  set: n
9578
- } = J(e.instanceData, "config"), {
9578
+ } = Z(e.instanceData, "config"), {
9579
9579
  variables: r
9580
9580
  } = e, o = z(() => $e({}, t, wa), [t]), {
9581
9581
  control: a,
@@ -10221,11 +10221,11 @@ function rv({
10221
10221
  }) {
10222
10222
  const {
10223
10223
  value: t
10224
- } = J(e.instanceData, "config"), n = z(() => Ne({}, t, Ta), [t]), r = e.data, {
10224
+ } = Z(e.instanceData, "config"), n = z(() => Ne({}, t, Ta), [t]), r = e.data, {
10225
10225
  width: o,
10226
10226
  height: a
10227
10227
  } = e.viewport;
10228
- return /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(nv, { width: o, height: a, data: r, conf: n }) });
10228
+ return /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(nv, { width: o, height: a, data: r, conf: n }) });
10229
10229
  }
10230
10230
  const iv = [{
10231
10231
  label: "Top",
@@ -10274,7 +10274,7 @@ const iv = [{
10274
10274
  value: t,
10275
10275
  onChange: n,
10276
10276
  options: r = iv
10277
- }, o) => /* @__PURE__ */ i(P, { ref: o, label: e, data: r, value: t, onChange: n })), ov = [{
10277
+ }, o) => /* @__PURE__ */ i(F, { ref: o, label: e, data: r, value: t, onChange: n })), ov = [{
10278
10278
  label: "Ascending",
10279
10279
  value: "ascending"
10280
10280
  }, {
@@ -10341,10 +10341,10 @@ const iv = [{
10341
10341
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
10342
10342
  /* @__PURE__ */ i(y, { name: `series.${n}.level_name_data_key`, control: t, render: ({
10343
10343
  field: l
10344
- }) => /* @__PURE__ */ i(X, { label: "Level Name Field", ...l }) }),
10344
+ }) => /* @__PURE__ */ i(J, { label: "Level Name Field", ...l }) }),
10345
10345
  /* @__PURE__ */ i(y, { name: `series.${n}.level_value_data_key`, control: t, render: ({
10346
10346
  field: l
10347
- }) => /* @__PURE__ */ i(X, { label: "Level Value Field", ...l }) })
10347
+ }) => /* @__PURE__ */ i(J, { label: "Level Value Field", ...l }) })
10348
10348
  ] }),
10349
10349
  /* @__PURE__ */ i(E, { mb: -10, mt: 10, variant: "dashed", label: "Funnel Style", labelPosition: "center" }),
10350
10350
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
@@ -10358,7 +10358,7 @@ const iv = [{
10358
10358
  width: "100%"
10359
10359
  }, children: [
10360
10360
  /* @__PURE__ */ i(C, { children: "Min Value" }),
10361
- /* @__PURE__ */ i(Ve, { label: "Check to enable specific min value", children: /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(y, { name: `series.${n}.min.enable_value`, control: t, render: ({
10361
+ /* @__PURE__ */ i(Ve, { label: "Check to enable specific min value", children: /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(y, { name: `series.${n}.min.enable_value`, control: t, render: ({
10362
10362
  field: c
10363
10363
  }) => /* @__PURE__ */ i(ve, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10364
10364
  ] }), ...l })
@@ -10378,7 +10378,7 @@ const iv = [{
10378
10378
  width: "100%"
10379
10379
  }, children: [
10380
10380
  /* @__PURE__ */ i(C, { children: "Max Value" }),
10381
- /* @__PURE__ */ i(Ve, { label: "Check to enable specific max value", children: /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(y, { name: `series.${n}.max.enable_value`, control: t, render: ({
10381
+ /* @__PURE__ */ i(Ve, { label: "Check to enable specific max value", children: /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(y, { name: `series.${n}.max.enable_value`, control: t, render: ({
10382
10382
  field: c
10383
10383
  }) => /* @__PURE__ */ i(ve, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10384
10384
  ] }), ...l })
@@ -10395,7 +10395,7 @@ const iv = [{
10395
10395
  control: t,
10396
10396
  render: ({
10397
10397
  field: l
10398
- }) => /* @__PURE__ */ i(P, { label: "Orientation", data: sv, ...l })
10398
+ }) => /* @__PURE__ */ i(F, { label: "Orientation", data: sv, ...l })
10399
10399
  }
10400
10400
  ),
10401
10401
  /* @__PURE__ */ i(
@@ -10405,7 +10405,7 @@ const iv = [{
10405
10405
  control: t,
10406
10406
  render: ({
10407
10407
  field: l
10408
- }) => /* @__PURE__ */ i(P, { label: "Sort", data: ov, ...l })
10408
+ }) => /* @__PURE__ */ i(F, { label: "Sort", data: ov, ...l })
10409
10409
  }
10410
10410
  )
10411
10411
  ] }),
@@ -10414,7 +10414,7 @@ const iv = [{
10414
10414
  field: l
10415
10415
  }) => (
10416
10416
  // @ts-expect-error type of onChange
10417
- /* @__PURE__ */ i(P, { label: "Align", disabled: s === "horizontal", data: av, ...l })
10417
+ /* @__PURE__ */ i(F, { label: "Align", disabled: s === "horizontal", data: av, ...l })
10418
10418
  ) }),
10419
10419
  /* @__PURE__ */ i(
10420
10420
  y,
@@ -10432,7 +10432,7 @@ const iv = [{
10432
10432
  /* @__PURE__ */ i(y, { name: `series.${n}.axisLabel.position`, control: t, render: ({
10433
10433
  field: l
10434
10434
  }) => /* @__PURE__ */ i(Da, { label: "Position", options: lv[s], ...l }) }),
10435
- /* @__PURE__ */ i(F, {})
10435
+ /* @__PURE__ */ i(P, {})
10436
10436
  ] }),
10437
10437
  /* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
10438
10438
  field: l
@@ -10474,7 +10474,7 @@ function uv({
10474
10474
  const {
10475
10475
  value: t,
10476
10476
  set: n
10477
- } = J(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t, Ta), [t]), {
10477
+ } = Z(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t, Ta), [t]), {
10478
10478
  control: o,
10479
10479
  handleSubmit: a,
10480
10480
  watch: s,
@@ -10756,7 +10756,7 @@ function _v(e, t, n, r) {
10756
10756
  const Cv = ({
10757
10757
  value: e,
10758
10758
  onChange: t
10759
- }) => /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
10759
+ }) => /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
10760
10760
  r && t(r);
10761
10761
  }, theme: "vs-dark", options: {
10762
10762
  minimap: {
@@ -10800,7 +10800,7 @@ const Cv = ({
10800
10800
  d(Xc.dynamic.value);
10801
10801
  };
10802
10802
  return /* @__PURE__ */ u(j, { children: [
10803
- /* @__PURE__ */ i(F, { sx: {
10803
+ /* @__PURE__ */ i(P, { sx: {
10804
10804
  width: "50%"
10805
10805
  }, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
10806
10806
  flexGrow: 0
@@ -10850,7 +10850,7 @@ const Cv = ({
10850
10850
  });
10851
10851
  };
10852
10852
  return /* @__PURE__ */ u(rn, { cols: 2, children: [
10853
- /* @__PURE__ */ i(P, { ref: r, label: e, data: Dv, value: t.type, onChange: o, sx: {
10853
+ /* @__PURE__ */ i(F, { ref: r, label: e, data: Dv, value: t.type, onChange: o, sx: {
10854
10854
  flexGrow: 1
10855
10855
  } }),
10856
10856
  /* @__PURE__ */ i(Tv, { value: t, onChange: n }),
@@ -11103,13 +11103,13 @@ function Ov({
11103
11103
  instance: t
11104
11104
  }), {
11105
11105
  value: r
11106
- } = J(e.instanceData, "config"), {
11106
+ } = Z(e.instanceData, "config"), {
11107
11107
  variables: o
11108
11108
  } = e, a = z(() => Ne({}, r, Ia), [r]), s = e.data, {
11109
11109
  width: l,
11110
11110
  height: c
11111
11111
  } = e.viewport;
11112
- return /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(Rv, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
11112
+ return /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(Rv, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
11113
11113
  }
11114
11114
  function Fv({
11115
11115
  control: e,
@@ -11121,7 +11121,7 @@ function Fv({
11121
11121
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
11122
11122
  /* @__PURE__ */ i(y, { name: "heat_block.data_key", control: e, render: ({
11123
11123
  field: r
11124
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
11124
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
11125
11125
  flex: 1
11126
11126
  }, ...r }) }),
11127
11127
  /* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
@@ -11171,7 +11171,7 @@ const Pv = ({
11171
11171
  }, ...r }) }),
11172
11172
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
11173
11173
  field: r
11174
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
11174
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
11175
11175
  flex: 1
11176
11176
  }, ...r }) })
11177
11177
  ] }),
@@ -11238,7 +11238,7 @@ const Bv = ({
11238
11238
  disabled: e,
11239
11239
  value: t,
11240
11240
  onChange: n
11241
- }) => /* @__PURE__ */ u(F, { sx: {
11241
+ }) => /* @__PURE__ */ u(P, { sx: {
11242
11242
  position: "relative"
11243
11243
  }, children: [
11244
11244
  e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -11315,7 +11315,7 @@ function Wv({
11315
11315
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
11316
11316
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
11317
11317
  field: n
11318
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
11318
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
11319
11319
  flex: 1
11320
11320
  }, ...n }) }),
11321
11321
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
@@ -11369,7 +11369,7 @@ function Gv({
11369
11369
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
11370
11370
  /* @__PURE__ */ i(y, { name: "y_axis.data_key", control: e, render: ({
11371
11371
  field: n
11372
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
11372
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
11373
11373
  flex: 1
11374
11374
  }, ...n }) }),
11375
11375
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
@@ -11382,7 +11382,7 @@ function Gv({
11382
11382
  field: n
11383
11383
  }) => (
11384
11384
  // @ts-expect-error type of onChange
11385
- /* @__PURE__ */ i(P, { label: "Name Alignment", required: !0, data: jv, sx: {
11385
+ /* @__PURE__ */ i(F, { label: "Name Alignment", required: !0, data: jv, sx: {
11386
11386
  flex: 1
11387
11387
  }, ...n })
11388
11388
  ) }) }),
@@ -11417,7 +11417,7 @@ function Yv({
11417
11417
  const {
11418
11418
  value: t,
11419
11419
  set: n
11420
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, Ia), [t]), o = z(() => k.cloneDeep(r), [r]);
11420
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, Ia), [t]), o = z(() => k.cloneDeep(r), [r]);
11421
11421
  W(() => {
11422
11422
  !ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
11423
11423
  }, [r, o]);
@@ -11895,7 +11895,7 @@ function d0({
11895
11895
  }) {
11896
11896
  const {
11897
11897
  value: n
11898
- } = J(e.instanceData, "config"), r = e.data, {
11898
+ } = Z(e.instanceData, "config"), r = e.data, {
11899
11899
  width: o,
11900
11900
  height: a
11901
11901
  } = e.viewport, s = Ne({}, n, Ma), l = c0(s, r), c = zt({
@@ -11944,7 +11944,7 @@ function h0({
11944
11944
  field: n
11945
11945
  }) => (
11946
11946
  // @ts-expect-error type of onChange
11947
- /* @__PURE__ */ i(P, { label: "Align", required: !0, data: u0, sx: {
11947
+ /* @__PURE__ */ i(F, { label: "Align", required: !0, data: u0, sx: {
11948
11948
  flex: 1
11949
11949
  }, ...n })
11950
11950
  ) })
@@ -11988,7 +11988,7 @@ function f0({
11988
11988
  field: n
11989
11989
  }) => (
11990
11990
  // @ts-expect-error type of onChange
11991
- /* @__PURE__ */ i(P, { label: "Align", required: !0, data: p0, sx: {
11991
+ /* @__PURE__ */ i(F, { label: "Align", required: !0, data: p0, sx: {
11992
11992
  flex: 1
11993
11993
  }, ...n })
11994
11994
  ) })
@@ -12060,7 +12060,7 @@ function y0({
12060
12060
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
12061
12061
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
12062
12062
  field: n
12063
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
12063
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
12064
12064
  flex: 1
12065
12065
  }, ...n }) }),
12066
12066
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
@@ -12100,7 +12100,7 @@ function x0({
12100
12100
  }) {
12101
12101
  return t(["data_key"]), /* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(y, { name: "data_key", control: e, render: ({
12102
12102
  field: n
12103
- }) => /* @__PURE__ */ i(X, { label: "Y Axis Data Field", required: !0, sx: {
12103
+ }) => /* @__PURE__ */ i(J, { label: "Y Axis Data Field", required: !0, sx: {
12104
12104
  flex: 1
12105
12105
  }, ...n }) }) });
12106
12106
  }
@@ -12110,7 +12110,7 @@ function v0({
12110
12110
  const {
12111
12111
  value: t,
12112
12112
  set: n
12113
- } = J(e.instanceData, "config"), r = z(() => Ne({}, t, Ma), [t]), {
12113
+ } = Z(e.instanceData, "config"), r = z(() => Ne({}, t, Ma), [t]), {
12114
12114
  control: o,
12115
12115
  handleSubmit: a,
12116
12116
  watch: s,
@@ -12563,7 +12563,7 @@ function P0({
12563
12563
  instance: t
12564
12564
  }), {
12565
12565
  value: r
12566
- } = J(e.instanceData, "config"), o = z(() => k.defaults({}, r, za), [r]), a = e.data, {
12566
+ } = Z(e.instanceData, "config"), o = z(() => k.defaults({}, r, za), [r]), a = e.data, {
12567
12567
  width: s,
12568
12568
  height: l
12569
12569
  } = e.viewport;
@@ -12575,7 +12575,7 @@ function V0({
12575
12575
  const {
12576
12576
  value: t,
12577
12577
  set: n
12578
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, za), [t]), o = z(() => k.clone(r), [r]), {
12578
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, za), [t]), o = z(() => k.clone(r), [r]), {
12579
12579
  control: a,
12580
12580
  handleSubmit: s,
12581
12581
  watch: l,
@@ -12602,13 +12602,13 @@ function V0({
12602
12602
  }, children: [
12603
12603
  /* @__PURE__ */ i(y, { control: a, name: "label_field", render: ({
12604
12604
  field: f
12605
- }) => /* @__PURE__ */ i(X, { label: "Label Key", required: !0, ...f }) }),
12605
+ }) => /* @__PURE__ */ i(J, { label: "Label Key", required: !0, ...f }) }),
12606
12606
  /* @__PURE__ */ i(y, { control: a, name: "value_field", render: ({
12607
12607
  field: f
12608
- }) => /* @__PURE__ */ i(X, { label: "Value Key", required: !0, ...f }) }),
12608
+ }) => /* @__PURE__ */ i(J, { label: "Value Key", required: !0, ...f }) }),
12609
12609
  /* @__PURE__ */ i(y, { control: a, name: "color_field", render: ({
12610
12610
  field: f
12611
- }) => /* @__PURE__ */ i(X, { label: "Color Key", clearable: !0, ...f }) })
12611
+ }) => /* @__PURE__ */ i(J, { label: "Color Key", clearable: !0, ...f }) })
12612
12612
  ] })
12613
12613
  ] }) });
12614
12614
  }
@@ -12963,13 +12963,13 @@ function tw({
12963
12963
  instance: t
12964
12964
  }), {
12965
12965
  value: r
12966
- } = J(e.instanceData, "config"), {
12966
+ } = Z(e.instanceData, "config"), {
12967
12967
  variables: o
12968
12968
  } = e, a = z(() => k.defaults({}, r, xi), [r]), s = e.data, {
12969
12969
  width: l,
12970
12970
  height: c
12971
12971
  } = e.viewport;
12972
- return !l || !c || !a || vl(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(ew, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
12972
+ return !l || !c || !a || vl(a == null ? void 0 : a.dimensions) ? null : /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(ew, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
12973
12973
  }
12974
12974
  function nw({
12975
12975
  control: e,
@@ -12982,12 +12982,12 @@ function nw({
12982
12982
  }, children: [
12983
12983
  /* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `additional_series.${t}.name_key`, control: e, render: ({
12984
12984
  field: r
12985
- }) => /* @__PURE__ */ i(X, { label: "Series Name Key", required: !0, sx: {
12985
+ }) => /* @__PURE__ */ i(J, { label: "Series Name Key", required: !0, sx: {
12986
12986
  flex: 1
12987
12987
  }, ...r }) }) }),
12988
12988
  /* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(y, { name: `additional_series.${t}.color_key`, control: e, render: ({
12989
12989
  field: r
12990
- }) => /* @__PURE__ */ i(X, { label: "Color Key", required: !0, clearable: !0, sx: {
12990
+ }) => /* @__PURE__ */ i(J, { label: "Color Key", required: !0, clearable: !0, sx: {
12991
12991
  flex: 1
12992
12992
  }, ...r }) }) }),
12993
12993
  /* @__PURE__ */ i(M, { mt: 20, leftIcon: /* @__PURE__ */ i(ge, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete" })
@@ -13062,7 +13062,7 @@ function iw({
13062
13062
  }, ...r }) }),
13063
13063
  /* @__PURE__ */ i(y, { name: `dimensions.${t}.data_key`, control: e, render: ({
13064
13064
  field: r
13065
- }) => /* @__PURE__ */ i(X, { label: "Data Key", required: !0, sx: {
13065
+ }) => /* @__PURE__ */ i(J, { label: "Data Key", required: !0, sx: {
13066
13066
  flex: 1
13067
13067
  }, ...r }) }),
13068
13068
  /* @__PURE__ */ i(
@@ -13141,7 +13141,7 @@ function aw({
13141
13141
  const {
13142
13142
  value: t,
13143
13143
  set: n
13144
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, xi), [t]), {
13144
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, xi), [t]), {
13145
13145
  control: o,
13146
13146
  handleSubmit: a,
13147
13147
  watch: s,
@@ -13171,7 +13171,7 @@ function aw({
13171
13171
  ] }),
13172
13172
  /* @__PURE__ */ i(g.Panel, { value: "series", p: "md", children: /* @__PURE__ */ i(y, { name: "series_name_key", control: o, render: ({
13173
13173
  field: h
13174
- }) => /* @__PURE__ */ i(X, { label: "Series Name Field", required: !0, sx: {
13174
+ }) => /* @__PURE__ */ i(J, { label: "Series Name Field", required: !0, sx: {
13175
13175
  flex: 1
13176
13176
  }, ...h }) }) }),
13177
13177
  /* @__PURE__ */ i(g.Panel, { value: "metrics", p: "md", children: /* @__PURE__ */ i(ow, { control: o, watch: s }) }),
@@ -13796,7 +13796,7 @@ function Lw({
13796
13796
  }) {
13797
13797
  const {
13798
13798
  value: t
13799
- } = J(e.instanceData, "config"), {
13799
+ } = Z(e.instanceData, "config"), {
13800
13800
  width: n,
13801
13801
  height: r
13802
13802
  } = e.viewport, o = z(() => {
@@ -13812,7 +13812,7 @@ function Lw({
13812
13812
  }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => _w($e({}, t, $a), o), [t, o]), s = ti(null), l = (c) => {
13813
13813
  s.current = c;
13814
13814
  };
13815
- return !n || !r || !t ? null : /* @__PURE__ */ u(F, { sx: {
13815
+ return !n || !r || !t ? null : /* @__PURE__ */ u(P, { sx: {
13816
13816
  position: "relative"
13817
13817
  }, children: [
13818
13818
  /* @__PURE__ */ i($w, { conf: t, queryData: o }),
@@ -13849,7 +13849,7 @@ function Ew({
13849
13849
  }, ...o }) }) }),
13850
13850
  /* @__PURE__ */ i(y, { name: "regression.group_by_key", control: e, render: ({
13851
13851
  field: o
13852
- }) => /* @__PURE__ */ i(X, { label: "按此字段将数据分为多个系列", clearable: !0, sx: {
13852
+ }) => /* @__PURE__ */ i(J, { label: "按此字段将数据分为多个系列", clearable: !0, sx: {
13853
13853
  flex: 1
13854
13854
  }, ...o }) }),
13855
13855
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
@@ -13860,7 +13860,7 @@ function Ew({
13860
13860
  control: e,
13861
13861
  render: ({
13862
13862
  field: o
13863
- }) => /* @__PURE__ */ i(P, { label: "回归方法", data: Aw, sx: {
13863
+ }) => /* @__PURE__ */ i(F, { label: "回归方法", data: Aw, sx: {
13864
13864
  flex: 1
13865
13865
  }, ...o })
13866
13866
  }
@@ -13890,7 +13890,7 @@ const Rw = ({
13890
13890
  disabled: e,
13891
13891
  value: t,
13892
13892
  onChange: n
13893
- }) => /* @__PURE__ */ u(F, { sx: {
13893
+ }) => /* @__PURE__ */ u(P, { sx: {
13894
13894
  position: "relative"
13895
13895
  }, children: [
13896
13896
  e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -13969,7 +13969,7 @@ function Ow({
13969
13969
  }, ...n }) }),
13970
13970
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
13971
13971
  field: n
13972
- }) => /* @__PURE__ */ i(X, { label: "X轴数据字段", required: !0, sx: {
13972
+ }) => /* @__PURE__ */ i(J, { label: "X轴数据字段", required: !0, sx: {
13973
13973
  flex: 1
13974
13974
  }, ...n }) })
13975
13975
  ] }),
@@ -14014,7 +14014,7 @@ function Fw({
14014
14014
  }, ...n }) }),
14015
14015
  /* @__PURE__ */ i(y, { name: "regression.y_axis_data_key", control: e, render: ({
14016
14016
  field: n
14017
- }) => /* @__PURE__ */ i(X, { label: "Y轴数据字段", required: !0, sx: {
14017
+ }) => /* @__PURE__ */ i(J, { label: "Y轴数据字段", required: !0, sx: {
14018
14018
  flex: 1
14019
14019
  }, ...n }) })
14020
14020
  ] }) });
@@ -14025,7 +14025,7 @@ function Pw({
14025
14025
  const {
14026
14026
  value: t,
14027
14027
  set: n
14028
- } = J(e.instanceData, "config"), r = z(() => Ne({}, t, $a), [t]), {
14028
+ } = Z(e.instanceData, "config"), r = z(() => Ne({}, t, $a), [t]), {
14029
14029
  control: o,
14030
14030
  handleSubmit: a,
14031
14031
  watch: s,
@@ -14196,7 +14196,7 @@ const Hw = D(({
14196
14196
  }) => {
14197
14197
  const t = Ke(), {
14198
14198
  value: n
14199
- } = J(e.instanceData, "config"), {
14199
+ } = Z(e.instanceData, "config"), {
14200
14200
  variables: r,
14201
14201
  data: o
14202
14202
  } = e, a = z(() => {
@@ -14315,7 +14315,7 @@ function Kw({
14315
14315
  const {
14316
14316
  value: t,
14317
14317
  set: n
14318
- } = J(e.instanceData, "config"), r = z(() => Ne({}, t, _i), [t]), {
14318
+ } = Z(e.instanceData, "config"), r = z(() => Ne({}, t, _i), [t]), {
14319
14319
  control: o,
14320
14320
  handleSubmit: a,
14321
14321
  watch: s,
@@ -14905,7 +14905,7 @@ function b_({
14905
14905
  instance: t
14906
14906
  }), {
14907
14907
  value: r
14908
- } = J(e.instanceData, "config"), {
14908
+ } = Z(e.instanceData, "config"), {
14909
14909
  variables: o
14910
14910
  } = e, a = z(() => Ne({}, r, Aa), [r]), s = e.data, {
14911
14911
  width: l,
@@ -14927,7 +14927,7 @@ function b_({
14927
14927
  bottom: br(x.bottom, o, s)
14928
14928
  };
14929
14929
  }, [a, s]), w = Math.max(0, c - p - f);
14930
- return !l || !c ? null : /* @__PURE__ */ u(F, { children: [
14930
+ return !l || !c ? null : /* @__PURE__ */ u(P, { children: [
14931
14931
  /* @__PURE__ */ i(C, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
14932
14932
  display: Ys(a.stats.templates.top) ? "block" : "none"
14933
14933
  }, children: Object.values(m.top).map((x) => x) }),
@@ -14956,21 +14956,21 @@ const y_ = _e(({
14956
14956
  ] }),
14957
14957
  /* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Endpoints", labelPosition: "right" }),
14958
14958
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
14959
- n && /* @__PURE__ */ i(P, { label: "X Axis", data: n, value: e.xAxisIndex, onChange: (l) => s("xAxisIndex", l) }),
14960
- r && /* @__PURE__ */ i(P, { label: "Y Axis", data: r, value: e.yAxisIndex, onChange: (l) => s("xAxisIndex", l) })
14959
+ n && /* @__PURE__ */ i(F, { label: "X Axis", data: n, value: e.xAxisIndex, onChange: (l) => s("xAxisIndex", l) }),
14960
+ r && /* @__PURE__ */ i(F, { label: "Y Axis", data: r, value: e.yAxisIndex, onChange: (l) => s("xAxisIndex", l) })
14961
14961
  ] }),
14962
14962
  /* @__PURE__ */ u(S, { spacing: 0, children: [
14963
14963
  /* @__PURE__ */ i(C, { size: 14, color: "#212529", fw: 500, children: "Left-Bottom Point" }),
14964
14964
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
14965
- /* @__PURE__ */ i(P, { icon: /* @__PURE__ */ i(C, { children: "x" }), data: o, value: e.leftBottomPoint.x_data_key, onChange: (l) => s("leftBottomPoint.x_data_key", l ?? ""), clearable: !0 }),
14966
- /* @__PURE__ */ i(P, { icon: /* @__PURE__ */ i(C, { children: "y" }), data: o, value: e.leftBottomPoint.y_data_key, onChange: (l) => s("leftBottomPoint.y_data_key", l ?? ""), clearable: !0 })
14965
+ /* @__PURE__ */ i(F, { icon: /* @__PURE__ */ i(C, { children: "x" }), data: o, value: e.leftBottomPoint.x_data_key, onChange: (l) => s("leftBottomPoint.x_data_key", l ?? ""), clearable: !0 }),
14966
+ /* @__PURE__ */ i(F, { icon: /* @__PURE__ */ i(C, { children: "y" }), data: o, value: e.leftBottomPoint.y_data_key, onChange: (l) => s("leftBottomPoint.y_data_key", l ?? ""), clearable: !0 })
14967
14967
  ] })
14968
14968
  ] }),
14969
14969
  /* @__PURE__ */ u(S, { spacing: 0, children: [
14970
14970
  /* @__PURE__ */ i(C, { size: 14, color: "#212529", fw: 500, children: "Right-Top Point" }),
14971
14971
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
14972
- /* @__PURE__ */ i(P, { icon: /* @__PURE__ */ i(C, { children: "x" }), data: o, value: e.rightTopPoint.x_data_key, onChange: (l) => s("rightTopPoint.x_data_key", l ?? ""), clearable: !0 }),
14973
- /* @__PURE__ */ i(P, { icon: /* @__PURE__ */ i(C, { children: "y" }), data: o, value: e.rightTopPoint.y_data_key, onChange: (l) => s("rightTopPoint.y_data_key", l ?? ""), clearable: !0 })
14972
+ /* @__PURE__ */ i(F, { icon: /* @__PURE__ */ i(C, { children: "x" }), data: o, value: e.rightTopPoint.x_data_key, onChange: (l) => s("rightTopPoint.x_data_key", l ?? ""), clearable: !0 }),
14973
+ /* @__PURE__ */ i(F, { icon: /* @__PURE__ */ i(C, { children: "y" }), data: o, value: e.rightTopPoint.y_data_key, onChange: (l) => s("rightTopPoint.y_data_key", l ?? ""), clearable: !0 })
14974
14974
  ] })
14975
14975
  ] }),
14976
14976
  /* @__PURE__ */ i(E, { mb: -15, variant: "dashed", label: "Style", labelPosition: "right" }),
@@ -15100,7 +15100,7 @@ function C_({
15100
15100
  control: e,
15101
15101
  render: ({
15102
15102
  field: l
15103
- }) => /* @__PURE__ */ i(P, { label: "Value", required: !0, data: o, sx: {
15103
+ }) => /* @__PURE__ */ i(F, { label: "Value", required: !0, data: o, sx: {
15104
15104
  flex: 1
15105
15105
  }, ...l })
15106
15106
  }
@@ -15117,7 +15117,7 @@ function C_({
15117
15117
  field: l
15118
15118
  }) => (
15119
15119
  // @ts-expect-error type of onChange
15120
- /* @__PURE__ */ i(P, { label: "Orientation", data: __, required: !0, sx: {
15120
+ /* @__PURE__ */ i(F, { label: "Orientation", data: __, required: !0, sx: {
15121
15121
  flex: 1
15122
15122
  }, ...l })
15123
15123
  ) }),
@@ -15129,7 +15129,7 @@ function C_({
15129
15129
  onChange: c,
15130
15130
  ...d
15131
15131
  }
15132
- }) => /* @__PURE__ */ i(P, { label: "Y Axis", data: a, disabled: a.length === 0, ...d, value: (l == null ? void 0 : l.toString()) ?? "", onChange: (p) => {
15132
+ }) => /* @__PURE__ */ i(F, { label: "Y Axis", data: a, disabled: a.length === 0, ...d, value: (l == null ? void 0 : l.toString()) ?? "", onChange: (p) => {
15133
15133
  if (!p) {
15134
15134
  c(0);
15135
15135
  return;
@@ -15148,7 +15148,7 @@ function C_({
15148
15148
  control: e,
15149
15149
  render: ({
15150
15150
  field: l
15151
- }) => /* @__PURE__ */ i(P, { label: "Line Type", data: w_, sx: {
15151
+ }) => /* @__PURE__ */ i(F, { label: "Line Type", data: w_, sx: {
15152
15152
  flexGrow: 1
15153
15153
  }, ...l })
15154
15154
  }
@@ -15236,7 +15236,7 @@ function S_({
15236
15236
  const k_ = ({
15237
15237
  value: e,
15238
15238
  onChange: t
15239
- }) => /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
15239
+ }) => /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
15240
15240
  r && t(r);
15241
15241
  }, theme: "vs-dark", options: {
15242
15242
  minimap: {
@@ -15270,7 +15270,7 @@ const k_ = ({
15270
15270
  d(Cr.dynamic.func_content);
15271
15271
  };
15272
15272
  return /* @__PURE__ */ u(j, { children: [
15273
- /* @__PURE__ */ i(F, { sx: {
15273
+ /* @__PURE__ */ i(P, { sx: {
15274
15274
  width: "50%"
15275
15275
  }, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
15276
15276
  flexGrow: 0
@@ -15320,7 +15320,7 @@ const k_ = ({
15320
15320
  });
15321
15321
  };
15322
15322
  return /* @__PURE__ */ u(rn, { cols: 2, children: [
15323
- /* @__PURE__ */ i(P, { ref: r, label: e, data: M_, value: t.type, onChange: o, sx: {
15323
+ /* @__PURE__ */ i(F, { ref: r, label: e, data: M_, value: t.type, onChange: o, sx: {
15324
15324
  flexGrow: 1
15325
15325
  } }),
15326
15326
  /* @__PURE__ */ i(I_, { value: t, onChange: n }),
@@ -15348,7 +15348,7 @@ const k_ = ({
15348
15348
  }), L_ = ({
15349
15349
  value: e,
15350
15350
  onChange: t
15351
- }) => /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
15351
+ }) => /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
15352
15352
  r && t(r);
15353
15353
  }, theme: "vs-dark", options: {
15354
15354
  minimap: {
@@ -15392,7 +15392,7 @@ const k_ = ({
15392
15392
  d(md.dynamic.func_content);
15393
15393
  };
15394
15394
  return /* @__PURE__ */ u(j, { children: [
15395
- /* @__PURE__ */ i(F, { sx: {
15395
+ /* @__PURE__ */ i(P, { sx: {
15396
15396
  width: "50%"
15397
15397
  }, children: /* @__PURE__ */ i(M, { variant: "filled", mt: 24, onClick: r, sx: {
15398
15398
  flexGrow: 0
@@ -15442,7 +15442,7 @@ const k_ = ({
15442
15442
  });
15443
15443
  };
15444
15444
  return /* @__PURE__ */ u(rn, { cols: 2, children: [
15445
- /* @__PURE__ */ i(P, { ref: r, label: e, data: O_, value: t.type, onChange: o, sx: {
15445
+ /* @__PURE__ */ i(F, { ref: r, label: e, data: O_, value: t.type, onChange: o, sx: {
15446
15446
  flexGrow: 1
15447
15447
  } }),
15448
15448
  /* @__PURE__ */ i(R_, { value: t, onChange: n }),
@@ -15499,12 +15499,12 @@ function V_({
15499
15499
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
15500
15500
  /* @__PURE__ */ i(y, { name: "scatter.name_data_key", control: e, render: ({
15501
15501
  field: n
15502
- }) => /* @__PURE__ */ i(X, { label: "Name Data Field", required: !0, sx: {
15502
+ }) => /* @__PURE__ */ i(J, { label: "Name Data Field", required: !0, sx: {
15503
15503
  flex: 1
15504
15504
  }, ...n }) }),
15505
15505
  /* @__PURE__ */ i(y, { name: "scatter.y_data_key", control: e, render: ({
15506
15506
  field: n
15507
- }) => /* @__PURE__ */ i(X, { label: "Value Data Field", required: !0, sx: {
15507
+ }) => /* @__PURE__ */ i(J, { label: "Value Data Field", required: !0, sx: {
15508
15508
  flex: 1
15509
15509
  }, ...n }) })
15510
15510
  ] }),
@@ -15523,7 +15523,7 @@ function V_({
15523
15523
  control: e,
15524
15524
  render: ({
15525
15525
  field: n
15526
- }) => /* @__PURE__ */ i(P, { label: "Label Position", data: P_, ...n })
15526
+ }) => /* @__PURE__ */ i(F, { label: "Label Position", data: P_, ...n })
15527
15527
  }
15528
15528
  ) }),
15529
15529
  /* @__PURE__ */ i(y, { name: "scatter.label_overflow", control: e, render: ({
@@ -15561,7 +15561,7 @@ const B_ = ({
15561
15561
  }, ...r }) }),
15562
15562
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
15563
15563
  field: r
15564
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
15564
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
15565
15565
  flex: 1
15566
15566
  }, ...r }) })
15567
15567
  ] }),
@@ -15635,7 +15635,7 @@ function j_({
15635
15635
  control: e,
15636
15636
  render: ({
15637
15637
  field: n
15638
- }) => /* @__PURE__ */ i(P, { label: "Trigger", data: W_, sx: {
15638
+ }) => /* @__PURE__ */ i(F, { label: "Trigger", data: W_, sx: {
15639
15639
  flexGrow: 1
15640
15640
  }, ...n })
15641
15641
  }
@@ -15648,7 +15648,7 @@ const G_ = ({
15648
15648
  disabled: e,
15649
15649
  value: t,
15650
15650
  onChange: n
15651
- }) => /* @__PURE__ */ u(F, { sx: {
15651
+ }) => /* @__PURE__ */ u(P, { sx: {
15652
15652
  position: "relative"
15653
15653
  }, children: [
15654
15654
  e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -15721,7 +15721,7 @@ function H_({
15721
15721
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
15722
15722
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
15723
15723
  field: n
15724
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
15724
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
15725
15725
  flex: 1
15726
15726
  }, ...n }) }),
15727
15727
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
@@ -15787,7 +15787,7 @@ function U_({
15787
15787
  field: r
15788
15788
  }) => (
15789
15789
  // @ts-expect-error type of onChange
15790
- /* @__PURE__ */ i(P, { label: "Align", required: !0, data: Q_, sx: {
15790
+ /* @__PURE__ */ i(F, { label: "Align", required: !0, data: Q_, sx: {
15791
15791
  flex: 1
15792
15792
  }, ...r })
15793
15793
  ) })
@@ -15797,7 +15797,7 @@ function U_({
15797
15797
  field: r
15798
15798
  }) => (
15799
15799
  // @ts-expect-error type of onChange
15800
- /* @__PURE__ */ i(P, { label: "Position", required: !0, data: K_, sx: {
15800
+ /* @__PURE__ */ i(F, { label: "Position", required: !0, data: K_, sx: {
15801
15801
  flex: 1
15802
15802
  }, ...r })
15803
15803
  ) }) }),
@@ -15885,7 +15885,7 @@ function eC({
15885
15885
  const {
15886
15886
  value: t,
15887
15887
  set: n
15888
- } = J(e.instanceData, "config"), {
15888
+ } = Z(e.instanceData, "config"), {
15889
15889
  variables: r
15890
15890
  } = e, o = z(() => $e({}, t, Aa), [t]), a = z(() => Z_(o), [o]);
15891
15891
  W(() => {
@@ -16240,7 +16240,7 @@ const fC = {
16240
16240
  }) => {
16241
16241
  const t = Ke(), {
16242
16242
  value: n = Ea
16243
- } = J(e.instanceData, "config"), {
16243
+ } = Z(e.instanceData, "config"), {
16244
16244
  variables: r
16245
16245
  } = e, {
16246
16246
  template: o,
@@ -16261,7 +16261,7 @@ const fC = {
16261
16261
  height: c,
16262
16262
  justifyContent: fC[a],
16263
16263
  alignItems: mC[s]
16264
- }, children: /* @__PURE__ */ i(F, { children: Object.values(p).map((h, f) => /* @__PURE__ */ i(R.Fragment, { children: h }, f)) }) });
16264
+ }, children: /* @__PURE__ */ i(P, { children: Object.values(p).map((h, f) => /* @__PURE__ */ i(R.Fragment, { children: h }, f)) }) });
16265
16265
  }), bC = [{
16266
16266
  label: "Left",
16267
16267
  value: "left"
@@ -16287,7 +16287,7 @@ function xC({
16287
16287
  const {
16288
16288
  value: t,
16289
16289
  set: n
16290
- } = J(e.instanceData, "config"), r = R.useMemo(() => $e({}, t, Ea), [t]), {
16290
+ } = Z(e.instanceData, "config"), r = R.useMemo(() => $e({}, t, Ea), [t]), {
16291
16291
  control: o,
16292
16292
  handleSubmit: a,
16293
16293
  watch: s,
@@ -16321,7 +16321,7 @@ function xC({
16321
16321
  control: o,
16322
16322
  render: ({
16323
16323
  field: h
16324
- }) => /* @__PURE__ */ i(P, { label: "Horizontal Alignment", data: bC, ...h })
16324
+ }) => /* @__PURE__ */ i(F, { label: "Horizontal Alignment", data: bC, ...h })
16325
16325
  }
16326
16326
  ),
16327
16327
  /* @__PURE__ */ i(
@@ -16331,7 +16331,7 @@ function xC({
16331
16331
  name: "vertical_align",
16332
16332
  render: ({
16333
16333
  field: h
16334
- }) => /* @__PURE__ */ i(P, { label: "Vertical Alignment", data: yC, ...h })
16334
+ }) => /* @__PURE__ */ i(F, { label: "Vertical Alignment", data: yC, ...h })
16335
16335
  }
16336
16336
  )
16337
16337
  ] })
@@ -16511,7 +16511,7 @@ function zC({
16511
16511
  variables: t
16512
16512
  } = e, {
16513
16513
  value: n
16514
- } = J(e.instanceData, "config"), r = z(() => Ne({}, n, Ra), [n]), o = e.data, {
16514
+ } = Z(e.instanceData, "config"), r = z(() => Ne({}, n, Ra), [n]), o = e.data, {
16515
16515
  width: a,
16516
16516
  height: s
16517
16517
  } = e.viewport, l = z(() => MC(r, o, t), [r, o, t]);
@@ -16527,13 +16527,13 @@ function $C({
16527
16527
  return t(["label_key", "value_key", "group_key"]), /* @__PURE__ */ u(S, { children: [
16528
16528
  /* @__PURE__ */ i(y, { name: "label_key", control: e, render: ({
16529
16529
  field: n
16530
- }) => /* @__PURE__ */ i(X, { label: "Label Key", required: !0, ...n }) }),
16530
+ }) => /* @__PURE__ */ i(J, { label: "Label Key", required: !0, ...n }) }),
16531
16531
  /* @__PURE__ */ i(y, { name: "value_key", control: e, render: ({
16532
16532
  field: n
16533
- }) => /* @__PURE__ */ i(X, { label: "Value Key", required: !0, ...n }) }),
16533
+ }) => /* @__PURE__ */ i(J, { label: "Value Key", required: !0, ...n }) }),
16534
16534
  /* @__PURE__ */ i(y, { name: "group_key", control: e, render: ({
16535
16535
  field: n
16536
- }) => /* @__PURE__ */ i(X, { label: "Group Key", clearable: !0, ...n }) })
16536
+ }) => /* @__PURE__ */ i(J, { label: "Group Key", clearable: !0, ...n }) })
16537
16537
  ] });
16538
16538
  }
16539
16539
  const LC = [{
@@ -16582,7 +16582,7 @@ const LC = [{
16582
16582
  control: e,
16583
16583
  render: ({
16584
16584
  field: r
16585
- }) => /* @__PURE__ */ i(P, { label: "Rotate", data: LC, ...r })
16585
+ }) => /* @__PURE__ */ i(F, { label: "Rotate", data: LC, ...r })
16586
16586
  }
16587
16587
  ),
16588
16588
  /* @__PURE__ */ i(
@@ -16592,7 +16592,7 @@ const LC = [{
16592
16592
  control: e,
16593
16593
  render: ({
16594
16594
  field: r
16595
- }) => /* @__PURE__ */ i(P, { label: "Align", data: AC, ...r })
16595
+ }) => /* @__PURE__ */ i(F, { label: "Align", data: AC, ...r })
16596
16596
  }
16597
16597
  )
16598
16598
  ] }),
@@ -16677,7 +16677,7 @@ function OC({
16677
16677
  const {
16678
16678
  value: t,
16679
16679
  set: n
16680
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, Ra), [t]), o = z(() => k.clone(r), [r]), {
16680
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, Ra), [t]), o = z(() => k.clone(r), [r]), {
16681
16681
  control: a,
16682
16682
  handleSubmit: s,
16683
16683
  watch: l,
@@ -16879,7 +16879,7 @@ const gd = ["function text({ value }) {", " // your code goes here", " ret
16879
16879
  function xd(e, t) {
16880
16880
  const {
16881
16881
  value: n
16882
- } = J(e.instanceData, "config"), r = {
16882
+ } = Z(e.instanceData, "config"), r = {
16883
16883
  columnsFromConfig: [],
16884
16884
  columnsFromData: []
16885
16885
  };
@@ -16904,7 +16904,7 @@ function YC(e) {
16904
16904
  } = xd(e.instance, e.sampleData), r = t.length > 0 ? t : n, {
16905
16905
  value: o,
16906
16906
  set: a
16907
- } = J(e.trigger.triggerData, "config"), {
16907
+ } = Z(e.trigger.triggerData, "config"), {
16908
16908
  column: s
16909
16909
  } = Ne({}, o, GC), l = (c) => {
16910
16910
  isNaN(+c) ? a({
@@ -16913,7 +16913,7 @@ function YC(e) {
16913
16913
  column: +c
16914
16914
  });
16915
16915
  };
16916
- return /* @__PURE__ */ i(P, { clearable: !1, data: r, label: "Choose a column", value: s.toString(), onChange: l });
16916
+ return /* @__PURE__ */ i(F, { clearable: !1, data: r, label: "Choose a column", value: s.toString(), onChange: l });
16917
16917
  }
16918
16918
  function HC(e, t) {
16919
16919
  return e ? xh(e.column) ? `Click cell of ${t[e.column].label}` : `Click cell of ${e.column}` : "Click cell content (click to config)";
@@ -16923,7 +16923,7 @@ function QC(e) {
16923
16923
  columnsFromConfig: t
16924
16924
  } = xd(e.instance), {
16925
16925
  value: n
16926
- } = J(e.trigger.triggerData, "config");
16926
+ } = Z(e.trigger.triggerData, "config");
16927
16927
  return /* @__PURE__ */ i(C, { children: HC(n, t) });
16928
16928
  }
16929
16929
  const KC = Wn((e) => ({
@@ -17205,7 +17205,7 @@ function c1({
17205
17205
  }, "data-enable-scrollbar": !0, className: h(p.root, {
17206
17206
  "table-highlight-on-hover": r.highlightOnHover
17207
17207
  }), children: [
17208
- te > 0 && /* @__PURE__ */ i(F, { className: p.info_bar, sx: {
17208
+ te > 0 && /* @__PURE__ */ i(P, { className: p.info_bar, sx: {
17209
17209
  height: 22
17210
17210
  }, children: /* @__PURE__ */ u(C, { align: "right", pr: 6, size: 14, color: "dimmed", fw: "normal", children: [
17211
17211
  "Total: ",
@@ -17244,7 +17244,7 @@ function d1({
17244
17244
  width: o
17245
17245
  } = e.viewport, {
17246
17246
  value: a
17247
- } = J(e.instanceData, "config");
17247
+ } = Z(e.instanceData, "config");
17248
17248
  return a ? a.id_field ? /* @__PURE__ */ i(c1, { data: n, width: o, height: r, conf: a, context: e, instance: t }) : /* @__PURE__ */ i(C, { color: "red", align: "center", children: "ID Field is not set, can't render a table without it" }) : null;
17249
17249
  }
17250
17250
  const vd = Wn(() => ({
@@ -17400,7 +17400,7 @@ const f1 = D(({
17400
17400
  return /* @__PURE__ */ u(j, { children: [
17401
17401
  /* @__PURE__ */ i(M, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
17402
17402
  /* @__PURE__ */ i(De, { size: 508, title: "Setup color interpolation", opened: c, onClose: p, zIndex: 320, children: c && /* @__PURE__ */ u(S, { "data-testid": "color-interpolation-modal", children: [
17403
- /* @__PURE__ */ i(P, { label: "Color style", value: a.interpolation, data: h, onChange: f }),
17403
+ /* @__PURE__ */ i(F, { label: "Color style", value: a.interpolation, data: h, onChange: f }),
17404
17404
  /* @__PURE__ */ i(m1, { steps: a.steps, interpolation: l, onChange: w }),
17405
17405
  /* @__PURE__ */ u(v, { position: "right", children: [
17406
17406
  /* @__PURE__ */ i(M, { onClick: x, variant: "subtle", children: "Cancel" }),
@@ -17436,7 +17436,7 @@ const w1 = _e((e, t) => {
17436
17436
  colorManager: n
17437
17437
  } = Yt(Nt), [r, o] = U(wd(e.value)), [a, s] = U(x1(n, e.value)), l = gs(a), [c, d] = U(v1(n, e.value)), p = gs(c);
17438
17438
  return /* @__PURE__ */ u(S, { align: "stretch", children: [
17439
- /* @__PURE__ */ i(P, { label: "Cell background", value: r || "none", onChange: (w) => {
17439
+ /* @__PURE__ */ i(F, { label: "Cell background", value: r || "none", onChange: (w) => {
17440
17440
  var x, T, I;
17441
17441
  o(w || "none"), w === "static" ? (x = e.onChange) == null || x.call(e, l.current) : w === "none" || !w ? (T = e.onChange) == null || T.call(e, "none") : (I = e.onChange) == null || I.call(e, p.current);
17442
17442
  }, data: b1 }),
@@ -17459,7 +17459,7 @@ const w1 = _e((e, t) => {
17459
17459
  value: t,
17460
17460
  onChange: n,
17461
17461
  sx: r
17462
- }, o) => /* @__PURE__ */ i(P, { ref: o, label: e, data: C1, value: t, onChange: n, sx: r })), k1 = _e(({
17462
+ }, o) => /* @__PURE__ */ i(F, { ref: o, label: e, data: C1, value: t, onChange: n, sx: r })), k1 = _e(({
17463
17463
  value: e,
17464
17464
  onChange: t
17465
17465
  }, n) => {
@@ -17480,7 +17480,7 @@ const w1 = _e((e, t) => {
17480
17480
  flexGrow: 0
17481
17481
  }, children: "Custom Cell Content" }),
17482
17482
  /* @__PURE__ */ i(De, { size: 800, title: "Custom cell content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
17483
- /* @__PURE__ */ i(F, { sx: {
17483
+ /* @__PURE__ */ i(P, { sx: {
17484
17484
  position: "relative"
17485
17485
  }, children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
17486
17486
  minimap: {
@@ -17524,7 +17524,7 @@ const w1 = _e((e, t) => {
17524
17524
  }, ...s }) }),
17525
17525
  /* @__PURE__ */ i(y, { name: `columns.${t}.value_field`, control: e, render: ({
17526
17526
  field: s
17527
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, ...s }) })
17527
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, ...s }) })
17528
17528
  ] }),
17529
17529
  /* @__PURE__ */ u(v, { grow: !0, children: [
17530
17530
  /* @__PURE__ */ i(y, { name: `columns.${t}.value_type`, control: e, render: ({
@@ -17551,7 +17551,7 @@ const w1 = _e((e, t) => {
17551
17551
  control: e,
17552
17552
  render: ({
17553
17553
  field: s
17554
- }) => /* @__PURE__ */ i(P, { label: "Alignment", data: T1, ...s })
17554
+ }) => /* @__PURE__ */ i(F, { label: "Alignment", data: T1, ...s })
17555
17555
  }
17556
17556
  ) }),
17557
17557
  /* @__PURE__ */ i(y, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
@@ -17668,7 +17668,7 @@ function $1({
17668
17668
  const {
17669
17669
  value: t,
17670
17670
  set: n
17671
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, bd), [t]), o = z(() => z1(r), [r]);
17671
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, bd), [t]), o = z(() => z1(r), [r]);
17672
17672
  W(() => {
17673
17673
  !ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
17674
17674
  }, [r, o]);
@@ -17710,7 +17710,7 @@ function $1({
17710
17710
  /* @__PURE__ */ u(g.Panel, { value: "Columns", children: [
17711
17711
  /* @__PURE__ */ i(y, { name: "id_field", control: a, render: ({
17712
17712
  field: f
17713
- }) => /* @__PURE__ */ i(X, { label: "ID Field", required: !0, ...f }) }),
17713
+ }) => /* @__PURE__ */ i(J, { label: "ID Field", required: !0, ...f }) }),
17714
17714
  /* @__PURE__ */ i(E, { mt: 20, mb: 10, variant: "dashed" }),
17715
17715
  /* @__PURE__ */ i(I1, { control: a, watch: l })
17716
17716
  ] }),
@@ -17838,7 +17838,7 @@ const ro = {
17838
17838
  }) => {
17839
17839
  const t = Ke(), {
17840
17840
  value: n = Fa
17841
- } = J(e.instanceData, "config"), {
17841
+ } = Z(e.instanceData, "config"), {
17842
17842
  variables: r
17843
17843
  } = e, o = e.data, {
17844
17844
  func_content: a,
@@ -17860,7 +17860,7 @@ const ro = {
17860
17860
  }), F1 = ({
17861
17861
  value: e,
17862
17862
  onChange: t
17863
- }) => /* @__PURE__ */ i(F, { sx: {
17863
+ }) => /* @__PURE__ */ i(P, { sx: {
17864
17864
  position: "relative"
17865
17865
  }, children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
17866
17866
  r && t(r);
@@ -17915,7 +17915,7 @@ function N1({
17915
17915
  const {
17916
17916
  value: t,
17917
17917
  set: n
17918
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, Fa), [t]), o = z(() => {
17918
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, Fa), [t]), o = z(() => {
17919
17919
  const {
17920
17920
  func_content: f,
17921
17921
  horizontal_align: m,
@@ -17965,7 +17965,7 @@ function N1({
17965
17965
  control: a,
17966
17966
  render: ({
17967
17967
  field: f
17968
- }) => /* @__PURE__ */ i(P, { label: "Horizontal Alignment", data: V1, ...f })
17968
+ }) => /* @__PURE__ */ i(F, { label: "Horizontal Alignment", data: V1, ...f })
17969
17969
  }
17970
17970
  ),
17971
17971
  /* @__PURE__ */ i(y, { name: "font_size", control: a, render: ({
@@ -18070,7 +18070,7 @@ const G1 = ({
18070
18070
  ...ha
18071
18071
  }, Ks = ({
18072
18072
  message: e
18073
- }) => /* @__PURE__ */ i(F, { sx: io, children: /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
18073
+ }) => /* @__PURE__ */ i(P, { sx: io, children: /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
18074
18074
  __html: e
18075
18075
  }, style: {
18076
18076
  fontSize: "14px",
@@ -18098,7 +18098,7 @@ function H1({
18098
18098
  }) {
18099
18099
  const {
18100
18100
  value: t
18101
- } = J(e.instanceData, "config"), n = z(() => $e({}, t, Pa), [t]), {
18101
+ } = Z(e.instanceData, "config"), n = z(() => $e({}, t, Pa), [t]), {
18102
18102
  width: r,
18103
18103
  height: o
18104
18104
  } = e.viewport, a = e.data, {
@@ -18111,10 +18111,10 @@ function H1({
18111
18111
  }), {
18112
18112
  refreshDeps: [a, n]
18113
18113
  });
18114
- return !r || !o || !n ? null : c ? /* @__PURE__ */ i(F, { sx: {
18114
+ return !r || !o || !n ? null : c ? /* @__PURE__ */ i(P, { sx: {
18115
18115
  position: "relative",
18116
18116
  height: o
18117
- }, children: /* @__PURE__ */ i(Sn, { visible: !0 }) }) : l ? /* @__PURE__ */ i(F, { sx: io, "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(Y1, { error: l, width: r, height: o }) }) : !s || !Array.isArray(s.replies) || s.replies.length === 0 ? null : /* @__PURE__ */ i(F, { sx: io, "data-enable-scrollbar": !0, children: s.replies.map((d, p) => /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
18117
+ }, children: /* @__PURE__ */ i(Sn, { visible: !0 }) }) : l ? /* @__PURE__ */ i(P, { sx: io, "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(Y1, { error: l, width: r, height: o }) }) : !s || !Array.isArray(s.replies) || s.replies.length === 0 ? null : /* @__PURE__ */ i(P, { sx: io, "data-enable-scrollbar": !0, children: s.replies.map((d, p) => /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
18118
18118
  __html: d.interpretation.html
18119
18119
  } }, p)) });
18120
18120
  }
@@ -18124,7 +18124,7 @@ function Q1({
18124
18124
  const {
18125
18125
  value: t,
18126
18126
  set: n
18127
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, Pa), [t]), {
18127
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, Pa), [t]), {
18128
18128
  control: o,
18129
18129
  handleSubmit: a,
18130
18130
  watch: s,
@@ -18496,13 +18496,13 @@ function fS({
18496
18496
  instance: t
18497
18497
  }), {
18498
18498
  value: r
18499
- } = J(e.instanceData, "config"), {
18499
+ } = Z(e.instanceData, "config"), {
18500
18500
  variables: o
18501
18501
  } = e, a = z(() => k.defaults({}, r, Va), [r]), s = e.data, {
18502
18502
  width: l,
18503
18503
  height: c
18504
18504
  } = e.viewport;
18505
- return !a.calendar.data_key || !a.heat_block.data_key ? null : /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(pS, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
18505
+ return !a.calendar.data_key || !a.heat_block.data_key ? null : /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(pS, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
18506
18506
  }
18507
18507
  function mS({
18508
18508
  control: e,
@@ -18512,7 +18512,7 @@ function mS({
18512
18512
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
18513
18513
  /* @__PURE__ */ i(y, { name: "heat_block.data_key", control: e, render: ({
18514
18514
  field: n
18515
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
18515
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
18516
18516
  flex: 1
18517
18517
  }, ...n }) }),
18518
18518
  /* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
@@ -18548,7 +18548,7 @@ const gS = ({
18548
18548
  }, ...r }) }),
18549
18549
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
18550
18550
  field: r
18551
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
18551
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
18552
18552
  flex: 1
18553
18553
  }, ...r }) })
18554
18554
  ] }),
@@ -18625,7 +18625,7 @@ function vS({
18625
18625
  return t(["calendar"]), /* @__PURE__ */ u(S, { children: [
18626
18626
  /* @__PURE__ */ i(v, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: "calendar.data_key", control: e, render: ({
18627
18627
  field: n
18628
- }) => /* @__PURE__ */ i(X, { label: "Data Field", required: !0, sx: {
18628
+ }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, sx: {
18629
18629
  flex: 1
18630
18630
  }, ...n }) }) }),
18631
18631
  /* @__PURE__ */ i(
@@ -18635,7 +18635,7 @@ function vS({
18635
18635
  control: e,
18636
18636
  render: ({
18637
18637
  field: n
18638
- }) => /* @__PURE__ */ i(P, { label: "Language", required: !0, data: xS, sx: {
18638
+ }) => /* @__PURE__ */ i(F, { label: "Language", required: !0, data: xS, sx: {
18639
18639
  flex: 1
18640
18640
  }, ...n })
18641
18641
  }
@@ -18648,7 +18648,7 @@ function wS({
18648
18648
  const {
18649
18649
  value: t,
18650
18650
  set: n
18651
- } = J(e.instanceData, "config"), r = z(() => $e({}, t, Va), [t]), o = z(() => k.cloneDeep(r), [r]);
18651
+ } = Z(e.instanceData, "config"), r = z(() => $e({}, t, Va), [t]), o = z(() => k.cloneDeep(r), [r]);
18652
18652
  W(() => {
18653
18653
  !ke(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
18654
18654
  }, [r, o]);
@@ -19237,13 +19237,13 @@ function HS({
19237
19237
  instance: t
19238
19238
  }), {
19239
19239
  value: r
19240
- } = J(e.instanceData, "config"), {
19240
+ } = Z(e.instanceData, "config"), {
19241
19241
  variables: o
19242
19242
  } = e, a = z(() => Ne({}, r, Na), [r]), s = e.data, {
19243
19243
  width: l,
19244
19244
  height: c
19245
19245
  } = e.viewport;
19246
- return /* @__PURE__ */ i(F, { children: /* @__PURE__ */ i(YS, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
19246
+ return /* @__PURE__ */ i(P, { children: /* @__PURE__ */ i(YS, { variables: o, width: l, height: c, data: s, conf: a, interactionManager: n }) });
19247
19247
  }
19248
19248
  const QS = [{
19249
19249
  label: "solid",
@@ -19286,7 +19286,7 @@ function US({
19286
19286
  control: e,
19287
19287
  render: ({
19288
19288
  field: l
19289
- }) => /* @__PURE__ */ i(P, { label: "Value", required: !0, data: o, sx: {
19289
+ }) => /* @__PURE__ */ i(F, { label: "Value", required: !0, data: o, sx: {
19290
19290
  flex: 1
19291
19291
  }, ...l })
19292
19292
  }
@@ -19303,7 +19303,7 @@ function US({
19303
19303
  field: l
19304
19304
  }) => (
19305
19305
  // @ts-expect-error type of onChange
19306
- /* @__PURE__ */ i(P, { label: "Orientation", data: KS, required: !0, sx: {
19306
+ /* @__PURE__ */ i(F, { label: "Orientation", data: KS, required: !0, sx: {
19307
19307
  flex: 1
19308
19308
  }, ...l })
19309
19309
  ) }),
@@ -19313,7 +19313,7 @@ function US({
19313
19313
  field: l
19314
19314
  }) => (
19315
19315
  // @ts-expect-error type of onChange
19316
- /* @__PURE__ */ i(P, { label: "X Axis", data: a, disabled: a.length === 0, sx: {
19316
+ /* @__PURE__ */ i(F, { label: "X Axis", data: a, disabled: a.length === 0, sx: {
19317
19317
  flex: 1
19318
19318
  }, ...l })
19319
19319
  ) })
@@ -19327,7 +19327,7 @@ function US({
19327
19327
  control: e,
19328
19328
  render: ({
19329
19329
  field: l
19330
- }) => /* @__PURE__ */ i(P, { label: "Line Type", data: QS, sx: {
19330
+ }) => /* @__PURE__ */ i(F, { label: "Line Type", data: QS, sx: {
19331
19331
  flexGrow: 1
19332
19332
  }, ...l })
19333
19333
  }
@@ -19440,7 +19440,7 @@ function ek({
19440
19440
  control: e,
19441
19441
  render: ({
19442
19442
  field: o
19443
- }) => /* @__PURE__ */ i(P, { label: "Bar Gap", data: ZS, sx: {
19443
+ }) => /* @__PURE__ */ i(F, { label: "Bar Gap", data: ZS, sx: {
19444
19444
  flexGrow: 1
19445
19445
  }, ...o })
19446
19446
  }
@@ -19528,7 +19528,7 @@ function nk({
19528
19528
  field: a
19529
19529
  }) => (
19530
19530
  // @ts-expect-error type of onChange
19531
- /* @__PURE__ */ i(P, { label: "X Axis", data: o, disabled: o.length === 0, sx: {
19531
+ /* @__PURE__ */ i(F, { label: "X Axis", data: o, disabled: o.length === 0, sx: {
19532
19532
  flex: 1
19533
19533
  }, ...a })
19534
19534
  ) })
@@ -19536,7 +19536,7 @@ function nk({
19536
19536
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
19537
19537
  /* @__PURE__ */ i(y, { name: `series.${t}.data_key`, control: e, render: ({
19538
19538
  field: a
19539
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
19539
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
19540
19540
  flex: 1
19541
19541
  }, ...a }) }),
19542
19542
  /* @__PURE__ */ i(y, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
@@ -19545,7 +19545,7 @@ function nk({
19545
19545
  ] }),
19546
19546
  /* @__PURE__ */ i(v, { grow: !0, children: /* @__PURE__ */ i(y, { name: `series.${t}.group_by_key`, control: e, render: ({
19547
19547
  field: a
19548
- }) => /* @__PURE__ */ i(X, { label: "Split into multiple series by this key...", clearable: !0, sx: {
19548
+ }) => /* @__PURE__ */ i(J, { label: "Split into multiple series by this key...", clearable: !0, sx: {
19549
19549
  flex: 1
19550
19550
  }, ...a }) }) }),
19551
19551
  /* @__PURE__ */ i(ek, { index: t, control: e, seriesItem: r }),
@@ -19557,7 +19557,7 @@ function nk({
19557
19557
  control: e,
19558
19558
  render: ({
19559
19559
  field: a
19560
- }) => /* @__PURE__ */ i(P, { label: "Label Position", data: tk, ...a })
19560
+ }) => /* @__PURE__ */ i(F, { label: "Label Position", data: tk, ...a })
19561
19561
  }
19562
19562
  ),
19563
19563
  /* @__PURE__ */ u(S, { spacing: 4, children: [
@@ -19650,7 +19650,7 @@ function ok({
19650
19650
  field: r
19651
19651
  }) => (
19652
19652
  // @ts-expect-error type of onChange
19653
- /* @__PURE__ */ i(P, { label: "Position", required: !0, data: ik, sx: {
19653
+ /* @__PURE__ */ i(F, { label: "Position", required: !0, data: ik, sx: {
19654
19654
  flex: 1
19655
19655
  }, ...r })
19656
19656
  ) }) }),
@@ -19720,7 +19720,7 @@ function sk({
19720
19720
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
19721
19721
  /* @__PURE__ */ i(y, { name: "y_axis.data_key", control: e, render: ({
19722
19722
  field: n
19723
- }) => /* @__PURE__ */ i(X, { label: "Y Axis Data Field", required: !0, sx: {
19723
+ }) => /* @__PURE__ */ i(J, { label: "Y Axis Data Field", required: !0, sx: {
19724
19724
  flex: 1
19725
19725
  }, ...n }) }),
19726
19726
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
@@ -19744,7 +19744,7 @@ function lk({
19744
19744
  const {
19745
19745
  value: t,
19746
19746
  set: n
19747
- } = J(e.instanceData, "config"), {
19747
+ } = Z(e.instanceData, "config"), {
19748
19748
  variables: r
19749
19749
  } = e, o = z(() => k.defaultsDeep({}, t, Na), [t]), {
19750
19750
  control: a,
@@ -20524,7 +20524,7 @@ function Rk({
20524
20524
  }) {
20525
20525
  const {
20526
20526
  value: t
20527
- } = J(e.instanceData, "config"), n = z(() => Ne({}, t, Ba), [t]), r = e.data, {
20527
+ } = Z(e.instanceData, "config"), n = z(() => Ne({}, t, Ba), [t]), r = e.data, {
20528
20528
  width: o,
20529
20529
  height: a
20530
20530
  } = e.viewport, {
@@ -20539,7 +20539,7 @@ function Rk({
20539
20539
  }, [d]), !s.data_key || !c || !d || !o || !a)
20540
20540
  return null;
20541
20541
  const f = Math.max(o, 300), m = Math.max(a, 370);
20542
- return /* @__PURE__ */ u(F, { sx: {
20542
+ return /* @__PURE__ */ u(P, { sx: {
20543
20543
  overflow: "hidden",
20544
20544
  height: m,
20545
20545
  width: f
@@ -20561,12 +20561,12 @@ function Ok({
20561
20561
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
20562
20562
  /* @__PURE__ */ i(y, { name: "deviation.data_keys.estimated_value", control: e, render: ({
20563
20563
  field: n
20564
- }) => /* @__PURE__ */ i(X, { label: "估算值字段", required: !0, sx: {
20564
+ }) => /* @__PURE__ */ i(J, { label: "估算值字段", required: !0, sx: {
20565
20565
  flex: 1
20566
20566
  }, ...n }) }),
20567
20567
  /* @__PURE__ */ i(y, { name: "deviation.data_keys.actual_value", control: e, render: ({
20568
20568
  field: n
20569
- }) => /* @__PURE__ */ i(X, { label: "实际值字段", required: !0, sx: {
20569
+ }) => /* @__PURE__ */ i(J, { label: "实际值字段", required: !0, sx: {
20570
20570
  flex: 1
20571
20571
  }, ...n }) })
20572
20572
  ] })
@@ -20585,7 +20585,7 @@ const Fk = ({
20585
20585
  }, ...r }) }),
20586
20586
  /* @__PURE__ */ i(y, { name: `metrics.${t}.data_key`, control: e, render: ({
20587
20587
  field: r
20588
- }) => /* @__PURE__ */ i(X, { label: "Value Field", required: !0, sx: {
20588
+ }) => /* @__PURE__ */ i(J, { label: "Value Field", required: !0, sx: {
20589
20589
  flex: 1
20590
20590
  }, ...r }) })
20591
20591
  ] }),
@@ -20650,7 +20650,7 @@ function Vk({
20650
20650
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
20651
20651
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
20652
20652
  field: n
20653
- }) => /* @__PURE__ */ i(X, { label: "数据字段", required: !0, sx: {
20653
+ }) => /* @__PURE__ */ i(J, { label: "数据字段", required: !0, sx: {
20654
20654
  flex: 1
20655
20655
  }, ...n }) }),
20656
20656
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
@@ -20687,7 +20687,7 @@ function Nk({
20687
20687
  const {
20688
20688
  value: t,
20689
20689
  set: n
20690
- } = J(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t, Ba), [t]), {
20690
+ } = Z(e.instanceData, "config"), r = z(() => k.defaultsDeep({}, t, Ba), [t]), {
20691
20691
  control: o,
20692
20692
  handleSubmit: a,
20693
20693
  watch: s,
@@ -20874,7 +20874,7 @@ const Js = ({
20874
20874
  }) => {
20875
20875
  const {
20876
20876
  value: n
20877
- } = J(e.instanceData, "config"), {
20877
+ } = Z(e.instanceData, "config"), {
20878
20878
  variables: r
20879
20879
  } = e, o = z(() => k.defaults({}, n, qa), [n]), a = e.data, s = z(() => Kc(a, r), [r, a]), {
20880
20880
  width: l,
@@ -20905,11 +20905,11 @@ const Js = ({
20905
20905
  });
20906
20906
  };
20907
20907
  return /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
20908
- /* @__PURE__ */ i(P, { label: "Postfix Type", data: Hk, value: e.type, onChange: a }),
20908
+ /* @__PURE__ */ i(F, { label: "Postfix Type", data: Hk, value: e.type, onChange: a }),
20909
20909
  e.type === "text" && /* @__PURE__ */ i($, { label: "Postfix Content", value: e.value, onChange: (l) => {
20910
20910
  s(l.currentTarget.value);
20911
20911
  } }),
20912
- e.type === "filter-option-label" && /* @__PURE__ */ i(P, { label: "Filter", value: e.value, onChange: s, data: o })
20912
+ e.type === "filter-option-label" && /* @__PURE__ */ i(F, { label: "Filter", value: e.value, onChange: s, data: o })
20913
20913
  ] });
20914
20914
  }));
20915
20915
  function Kk({
@@ -20933,7 +20933,7 @@ function Kk({
20933
20933
  field: a
20934
20934
  }) => (
20935
20935
  // @ts-expect-error type of onChange
20936
- /* @__PURE__ */ i(P, { label: "Metric Data", required: !0, data: o, sx: {
20936
+ /* @__PURE__ */ i(F, { label: "Metric Data", required: !0, data: o, sx: {
20937
20937
  flex: 1
20938
20938
  }, ...a })
20939
20939
  ) })
@@ -20948,7 +20948,7 @@ function Kk({
20948
20948
  field: a
20949
20949
  }) => (
20950
20950
  // @ts-expect-error type of onChange
20951
- /* @__PURE__ */ i(P, { label: "Basis Data", required: !0, data: o, sx: {
20951
+ /* @__PURE__ */ i(F, { label: "Basis Data", required: !0, data: o, sx: {
20952
20952
  flex: 1
20953
20953
  }, ...a })
20954
20954
  ) })
@@ -21065,7 +21065,7 @@ function Zk({
21065
21065
  field: n
21066
21066
  }) => (
21067
21067
  // @ts-expect-error type of onChange
21068
- /* @__PURE__ */ i(P, { label: "Justify Content", required: !0, data: Xk, sx: {
21068
+ /* @__PURE__ */ i(F, { label: "Justify Content", required: !0, data: Xk, sx: {
21069
21069
  flex: 1
21070
21070
  }, ...n })
21071
21071
  ) }),
@@ -21073,7 +21073,7 @@ function Zk({
21073
21073
  field: n
21074
21074
  }) => (
21075
21075
  // @ts-expect-error type of onChange
21076
- /* @__PURE__ */ i(P, { label: "Align", required: !0, data: Jk, sx: {
21076
+ /* @__PURE__ */ i(F, { label: "Align", required: !0, data: Jk, sx: {
21077
21077
  flex: 1
21078
21078
  }, ...n })
21079
21079
  ) })
@@ -21086,7 +21086,7 @@ function eT({
21086
21086
  const {
21087
21087
  value: t,
21088
21088
  set: n
21089
- } = J(e.instanceData, "config"), {
21089
+ } = Z(e.instanceData, "config"), {
21090
21090
  variables: r
21091
21091
  } = e, o = z(() => $e({}, t, qa), [t]), {
21092
21092
  control: a,
@@ -21265,7 +21265,7 @@ const aT = {
21265
21265
  border: "0.0625rem solid rgb(233, 236, 239)",
21266
21266
  boxShadow: "rgb(0 0 0 / 5%) 0px 0.0625rem 0.1875rem, rgb(0 0 0 / 5%) 0px 1.25rem 1.5625rem -0.3125rem, rgb(0 0 0 / 4%) 0px 0.625rem 0.625rem -0.3125rem"
21267
21267
  }
21268
- }, withArrow: !0, children: /* @__PURE__ */ i(F, { sx: {
21268
+ }, withArrow: !0, children: /* @__PURE__ */ i(P, { sx: {
21269
21269
  height: "16px",
21270
21270
  alignSelf: "center"
21271
21271
  }, children: /* @__PURE__ */ i(Dn, { size: 16, color: "gray" }) }) }), lT = D(({
@@ -21278,10 +21278,10 @@ const aT = {
21278
21278
  },
21279
21279
  value: a,
21280
21280
  onChange: s
21281
- }) => /* @__PURE__ */ u(F, { children: [
21281
+ }) => /* @__PURE__ */ u(P, { children: [
21282
21282
  /* @__PURE__ */ i(C, { children: " " }),
21283
21283
  /* @__PURE__ */ i(ve, { label: /* @__PURE__ */ u(v, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
21284
- /* @__PURE__ */ i(F, { sx: {
21284
+ /* @__PURE__ */ i(P, { sx: {
21285
21285
  flexGrow: 1
21286
21286
  }, children: e }),
21287
21287
  /* @__PURE__ */ i(sT, { description: n, isDescriptionEmpty: r })
@@ -21577,7 +21577,7 @@ const aT = {
21577
21577
  state: s,
21578
21578
  error: l
21579
21579
  } = o.getDataStuffByID(t.options_query_id), c = s === "loading";
21580
- return /* @__PURE__ */ i(P, { label: e, data: t.options, disabled: a ? c : !1, value: n, onChange: r, error: !!l, placeholder: l, maxDropdownHeight: 500, styles: {
21580
+ return /* @__PURE__ */ i(F, { label: e, data: t.options, disabled: a ? c : !1, value: n, onChange: r, error: !!l, placeholder: l, maxDropdownHeight: 500, styles: {
21581
21581
  root: {
21582
21582
  width: t.width ? t.width : "200px"
21583
21583
  },
@@ -22859,9 +22859,9 @@ const Nd = b.compose("FilterTreeSelectConfigMeta", b.model({
22859
22859
  e.auto_submit = e.auto_submit_supported && t;
22860
22860
  }
22861
22861
  }));
22862
- var Z = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e.Tabs = "tabs", e))(Z || {});
22862
+ var X = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e.Tabs = "tabs", e))(X || {});
22863
22863
  const qd = b.model("ViewDivisionConfig", {
22864
- _name: b.literal(Z.Division)
22864
+ _name: b.literal(X.Division)
22865
22865
  }).views((e) => ({
22866
22866
  get json() {
22867
22867
  const {
@@ -22872,7 +22872,7 @@ const qd = b.model("ViewDivisionConfig", {
22872
22872
  };
22873
22873
  }
22874
22874
  })), BT = () => qd.create({
22875
- _name: Z.Division
22875
+ _name: X.Division
22876
22876
  }), qT = b.model("CustomModalTitleModel", {
22877
22877
  enabled: b.optional(b.boolean, !1),
22878
22878
  func_content: b.optional(b.string, "")
@@ -22922,7 +22922,7 @@ const qd = b.model("ViewDivisionConfig", {
22922
22922
  func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
22923
22923
  `)
22924
22924
  }, Wd = b.model("ViewModalConfig", {
22925
- _name: b.literal(Z.Modal),
22925
+ _name: b.literal(X.Modal),
22926
22926
  width: b.string,
22927
22927
  height: b.string,
22928
22928
  custom_modal_title: b.optional(qT, so)
@@ -22949,7 +22949,7 @@ const qd = b.model("ViewDivisionConfig", {
22949
22949
  e.height = t;
22950
22950
  }
22951
22951
  })), WT = () => Wd.create({
22952
- _name: Z.Modal,
22952
+ _name: X.Modal,
22953
22953
  width: "90vw",
22954
22954
  height: "90vh"
22955
22955
  }), jT = b.model("ViewTabsTabModel", {
@@ -22983,7 +22983,7 @@ const qd = b.model("ViewDivisionConfig", {
22983
22983
  e.color = t;
22984
22984
  }
22985
22985
  })), jd = b.model("ViewTabsConfig", {
22986
- _name: b.literal(Z.Modal),
22986
+ _name: b.literal(X.Modal),
22987
22987
  tabs: b.optional(b.array(jT), []),
22988
22988
  variant: b.optional(b.enumeration("variant", ["default", "outline", "pills"]), "default"),
22989
22989
  orientation: b.optional(b.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
@@ -23030,12 +23030,12 @@ const qd = b.model("ViewDivisionConfig", {
23030
23030
  e.tabs.splice(t, 1);
23031
23031
  }
23032
23032
  })), GT = () => jd.create({
23033
- _name: Z.Modal,
23033
+ _name: X.Modal,
23034
23034
  tabs: []
23035
23035
  }), YT = b.model({
23036
23036
  id: b.identifier,
23037
23037
  name: b.string,
23038
- type: b.enumeration("EViewComponentType", [Z.Division, Z.Modal, Z.Tabs]),
23038
+ type: b.enumeration("EViewComponentType", [X.Division, X.Modal, X.Tabs]),
23039
23039
  config: b.union(qd, Wd, jd),
23040
23040
  panelIDs: b.optional(b.array(b.string), [])
23041
23041
  }).views((e) => ({
@@ -23061,13 +23061,13 @@ const qd = b.model("ViewDivisionConfig", {
23061
23061
  setType(t) {
23062
23062
  if (e.type !== t) {
23063
23063
  switch (t) {
23064
- case Z.Division:
23064
+ case X.Division:
23065
23065
  e.config = BT();
23066
23066
  break;
23067
- case Z.Modal:
23067
+ case X.Modal:
23068
23068
  e.config = WT();
23069
23069
  break;
23070
- case Z.Tabs:
23070
+ case X.Tabs:
23071
23071
  e.config = GT();
23072
23072
  break;
23073
23073
  }
@@ -23755,15 +23755,15 @@ const dD = (e) => new cD(e), uD = D(({
23755
23755
  zIndex: 320
23756
23756
  }), f = R.useCallback(() => {
23757
23757
  l(s);
23758
- }, [s, l]), m = !c && e.type !== Z.Modal;
23759
- return /* @__PURE__ */ i(j, { children: /* @__PURE__ */ i(F, { sx: {
23758
+ }, [s, l]), m = !c && e.type !== X.Modal;
23759
+ return /* @__PURE__ */ i(j, { children: /* @__PURE__ */ i(P, { sx: {
23760
23760
  position: "absolute",
23761
23761
  top: 0,
23762
23762
  left: 0,
23763
23763
  right: 0,
23764
23764
  zIndex: 300
23765
23765
  }, children: /* @__PURE__ */ u(he, { withinPortal: !0, children: [
23766
- /* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(F, { className: "panel-dropdown-target", sx: {
23766
+ /* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(P, { className: "panel-dropdown-target", sx: {
23767
23767
  width: "100%",
23768
23768
  height: "25px"
23769
23769
  } }) }),
@@ -24020,11 +24020,11 @@ const xD = D(function({
24020
24020
  loading: e.dataLoading,
24021
24021
  errors: e.queryErrors,
24022
24022
  downloadPanelScreenshot: o
24023
- }, children: /* @__PURE__ */ u(F, { className: "panel-root", ref: r, p: 5, pt: 0, sx: {
24023
+ }, children: /* @__PURE__ */ u(P, { className: "panel-root", ref: r, p: 5, pt: 0, sx: {
24024
24024
  ...wD,
24025
24025
  ...t
24026
24026
  }, children: [
24027
- /* @__PURE__ */ i(F, { sx: {
24027
+ /* @__PURE__ */ i(P, { sx: {
24028
24028
  position: "absolute",
24029
24029
  left: 0,
24030
24030
  top: 0,
@@ -24068,15 +24068,15 @@ const TD = D(({
24068
24068
  inFullScreen: a
24069
24069
  } = R.useContext(ki), s = R.useCallback(() => {
24070
24070
  o(r);
24071
- }, [r, o]), l = !a && e.type !== Z.Modal;
24072
- return kD(t.viz.type) ? /* @__PURE__ */ i(F, { sx: {
24071
+ }, [r, o]), l = !a && e.type !== X.Modal;
24072
+ return kD(t.viz.type) ? /* @__PURE__ */ i(P, { sx: {
24073
24073
  position: "absolute",
24074
24074
  top: 0,
24075
24075
  left: 0,
24076
24076
  right: 0,
24077
24077
  zIndex: 300
24078
24078
  }, children: /* @__PURE__ */ u(he, { withinPortal: !0, children: [
24079
- /* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(F, { className: "panel-dropdown-target", sx: {
24079
+ /* @__PURE__ */ i(he.Target, { children: /* @__PURE__ */ i(P, { className: "panel-dropdown-target", sx: {
24080
24080
  width: "100%",
24081
24081
  height: "25px"
24082
24082
  } }) }),
@@ -24259,7 +24259,7 @@ const FD = D(({
24259
24259
  downloadScreenshot: o
24260
24260
  } = Ya(t);
24261
24261
  return /* @__PURE__ */ u(j, { children: [
24262
- /* @__PURE__ */ i(F, { ref: r, sx: n, children: e }),
24262
+ /* @__PURE__ */ i(P, { ref: r, sx: n, children: e }),
24263
24263
  /* @__PURE__ */ i(FD, { downloadScreenShot: o })
24264
24264
  ] });
24265
24265
  }), fu = D(({
@@ -24273,7 +24273,7 @@ const FD = D(({
24273
24273
  downloadScreenshot: l
24274
24274
  } = Ya(t);
24275
24275
  return /* @__PURE__ */ i(De, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: /* @__PURE__ */ u(v, { position: "apart", px: "1rem", h: "48px", children: [
24276
- /* @__PURE__ */ i(F, { children: r.custom_modal_title.value }),
24276
+ /* @__PURE__ */ i(P, { children: r.custom_modal_title.value }),
24277
24277
  /* @__PURE__ */ i(fu, { downloadScreenshot: l })
24278
24278
  ] }), trapFocus: !0, onDragStart: (c) => {
24279
24279
  c.stopPropagation();
@@ -24308,40 +24308,42 @@ const FD = D(({
24308
24308
  }
24309
24309
  }, transitionProps: {
24310
24310
  duration: 0
24311
- }, children: /* @__PURE__ */ i(F, { ref: s, children: e }) });
24311
+ }, children: /* @__PURE__ */ i(P, { ref: s, children: e }) });
24312
24312
  }), VD = (e) => e.color ? {
24313
24313
  "&[data-active], &[data-active]:hover": {
24314
24314
  borderColor: e.color ? e.color : "..."
24315
24315
  }
24316
24316
  } : {}, ND = D(({
24317
- children: e,
24318
- view: t
24317
+ view: e
24319
24318
  }) => {
24320
- const n = Ke(), r = t.config;
24321
- return /* @__PURE__ */ u(F, { className: "render-view-tabs", children: [
24322
- /* @__PURE__ */ u(g, { variant: r.variant, orientation: r.orientation, defaultValue: r.tabs.length > 0 ? r.tabs[0].id : "0", styles: {
24323
- panel: {
24324
- padding: r.orientation === "horizontal" ? "16px 0px" : "0"
24325
- }
24326
- }, keepMounted: !1, children: [
24327
- /* @__PURE__ */ i(g.List, { grow: r.grow, children: r.tabs.map((o) => /* @__PURE__ */ i(g.Tab, { value: o.id, sx: VD(o), disabled: !o.view_id, children: o.name ?? o.id }, o.id)) }),
24328
- r.tabs.map((o) => {
24329
- const a = n.views.findByID(o.view_id);
24330
- return a ? /* @__PURE__ */ i(g.Panel, { value: o.id, children: /* @__PURE__ */ i(Ha, { view: a }) }, o.id) : null;
24331
- })
24332
- ] }),
24333
- e
24319
+ const t = Ke(), n = e.config;
24320
+ return /* @__PURE__ */ u(g, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, defaultValue: n.tabs.length > 0 ? n.tabs[0].id : "0", styles: {
24321
+ root: {
24322
+ height: "100%",
24323
+ overflow: n.orientation === "horizontal" ? "hidden" : "auto"
24324
+ },
24325
+ panel: {
24326
+ padding: n.orientation === "horizontal" ? "8px 0px 8px" : "0",
24327
+ height: "100%",
24328
+ overflow: "auto"
24329
+ }
24330
+ }, keepMounted: !1, children: [
24331
+ /* @__PURE__ */ i(g.List, { grow: n.grow, children: n.tabs.map((r) => /* @__PURE__ */ i(g.Tab, { value: r.id, sx: VD(r), disabled: !r.view_id, children: r.name ?? r.id }, r.id)) }),
24332
+ n.tabs.map((r) => {
24333
+ const o = t.views.findByID(r.view_id);
24334
+ return o ? /* @__PURE__ */ i(g.Panel, { value: r.id, children: /* @__PURE__ */ i(Ha, { view: o }) }, r.id) : null;
24335
+ })
24334
24336
  ] });
24335
24337
  }), BD = D(({
24336
24338
  view: e,
24337
24339
  children: t
24338
24340
  }) => {
24339
24341
  switch (e.type) {
24340
- case Z.Modal:
24342
+ case X.Modal:
24341
24343
  return /* @__PURE__ */ i(PD, { view: e, children: t });
24342
- case Z.Tabs:
24343
- return /* @__PURE__ */ i(ND, { view: e, children: t });
24344
- case Z.Division:
24344
+ case X.Tabs:
24345
+ return /* @__PURE__ */ i(ND, { view: e });
24346
+ case X.Division:
24345
24347
  default:
24346
24348
  return /* @__PURE__ */ i(pu, { view: e, children: t });
24347
24349
  }
@@ -24369,13 +24371,13 @@ const WD = D(({
24369
24371
  ref: a,
24370
24372
  downloadScreenshot: s
24371
24373
  } = Ya(t);
24372
- return /* @__PURE__ */ i(F, { sx: {
24374
+ return /* @__PURE__ */ i(P, { sx: {
24373
24375
  height: "100%",
24374
24376
  "> div:not(.mantine-Modal-root)": {
24375
24377
  height: "100%"
24376
24378
  }
24377
24379
  }, children: /* @__PURE__ */ i(De, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: /* @__PURE__ */ u(v, { position: "apart", px: "1rem", h: "48px", children: [
24378
- /* @__PURE__ */ i(F, { children: n.custom_modal_title.value }),
24380
+ /* @__PURE__ */ i(P, { children: n.custom_modal_title.value }),
24379
24381
  /* @__PURE__ */ i(fu, { downloadScreenshot: s })
24380
24382
  ] }), trapFocus: !0, onDragStart: (l) => {
24381
24383
  l.stopPropagation();
@@ -24416,12 +24418,16 @@ const WD = D(({
24416
24418
  }
24417
24419
  }, withinPortal: !1, transitionProps: {
24418
24420
  duration: 0
24419
- }, children: /* @__PURE__ */ i(F, { ref: a, children: e }) }) });
24421
+ }, children: /* @__PURE__ */ i(P, { ref: a, children: e }) }) });
24420
24422
  }), jD = ({
24421
24423
  variant: e,
24422
24424
  orientation: t
24423
24425
  }) => {
24424
24426
  const n = {
24427
+ root: {
24428
+ height: "100%",
24429
+ overflow: "hidden"
24430
+ },
24425
24431
  tab: {},
24426
24432
  panel: {
24427
24433
  padding: "16px"
@@ -24439,10 +24445,9 @@ const WD = D(({
24439
24445
  borderColor: e.color ? e.color : "..."
24440
24446
  }
24441
24447
  } : {}, YD = D(({
24442
- children: e,
24443
- view: t
24448
+ view: e
24444
24449
  }) => {
24445
- const n = Ht(), r = Ce(), o = z(() => r.views.options.filter((c) => c.type === Z.Division), [t.id, r.views.options]), a = t.config, s = (c) => n.openConfirmModal({
24450
+ const t = Ht(), n = Ce(), r = z(() => n.views.options.filter((l) => l.type === X.Division), [e.id, n.views.options]), o = e.config, a = (l) => t.openConfirmModal({
24446
24451
  title: "Delete this tab?",
24447
24452
  labels: {
24448
24453
  confirm: "Confirm",
@@ -24450,67 +24455,64 @@ const WD = D(({
24450
24455
  },
24451
24456
  onCancel: () => console.log("Cancel"),
24452
24457
  onConfirm: () => {
24453
- a.removeTab(c);
24458
+ o.removeTab(l);
24454
24459
  },
24455
24460
  confirmProps: {
24456
24461
  color: "red"
24457
24462
  },
24458
24463
  zIndex: 320
24459
- }), l = a.tabs.length === 0;
24460
- return /* @__PURE__ */ u(F, { className: "preview-view-tabs", children: [
24461
- /* @__PURE__ */ u(g, { variant: a.variant, orientation: a.orientation, defaultValue: a.tabs.length > 0 ? a.tabs[0].id : "0", styles: jD(a), children: [
24462
- /* @__PURE__ */ u(g.List, { grow: a.grow, children: [
24463
- a.tabs.map((c) => /* @__PURE__ */ i(g.Tab, { value: c.id, sx: GD(c), children: c.name ?? c.id }, c.id)),
24464
- /* @__PURE__ */ i(g.Tab, { onClick: a.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
24465
- ] }),
24466
- a.tabs.map((c, d) => {
24467
- const p = r.views.findByID(c.view_id);
24468
- return /* @__PURE__ */ u(g.Panel, { value: c.id, sx: {
24469
- position: "relative"
24464
+ }), s = o.tabs.length === 0;
24465
+ return /* @__PURE__ */ u(g, { className: "preview-view-tabs", variant: o.variant, orientation: o.orientation, defaultValue: o.tabs.length > 0 ? o.tabs[0].id : "0", styles: jD(o), children: [
24466
+ /* @__PURE__ */ u(g.List, { grow: o.grow, children: [
24467
+ o.tabs.map((l) => /* @__PURE__ */ i(g.Tab, { value: l.id, sx: GD(l), children: l.name ?? l.id }, l.id)),
24468
+ /* @__PURE__ */ i(g.Tab, { onClick: o.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(Qe, { size: 18, color: "#228be6" }) })
24469
+ ] }),
24470
+ o.tabs.map((l, c) => {
24471
+ const d = n.views.findByID(l.view_id);
24472
+ return /* @__PURE__ */ u(g.Panel, { value: l.id, sx: {
24473
+ position: "relative"
24474
+ }, children: [
24475
+ /* @__PURE__ */ u(P, { sx: {
24476
+ position: "absolute",
24477
+ top: 0,
24478
+ left: 0,
24479
+ right: 0,
24480
+ bottom: 0,
24481
+ zIndex: 200
24470
24482
  }, children: [
24471
- /* @__PURE__ */ u(F, { sx: {
24472
- position: "absolute",
24473
- top: 0,
24474
- left: 0,
24475
- right: 0,
24476
- bottom: 0,
24483
+ /* @__PURE__ */ i(sn, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
24484
+ /* @__PURE__ */ u(S, { mx: "auto", mt: 100, sx: {
24485
+ width: "300px",
24486
+ position: "relative",
24477
24487
  zIndex: 200
24478
24488
  }, children: [
24479
- /* @__PURE__ */ i(sn, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
24480
- /* @__PURE__ */ u(S, { mx: "auto", mt: 100, sx: {
24481
- width: "300px",
24482
- position: "relative",
24483
- zIndex: 200
24484
- }, children: [
24485
- /* @__PURE__ */ i($, { label: "Tab Name", value: c.name, onChange: (h) => c.setName(h.currentTarget.value) }),
24486
- /* @__PURE__ */ i(P, { label: "View", value: c.view_id, onChange: c.setViewID, data: o }),
24487
- /* @__PURE__ */ i(Yo, { label: "Color", value: c.color, onChange: c.setColor, disabled: a.variant !== "default" }),
24488
- p && /* @__PURE__ */ u(M, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ i(jh, { size: 18 }), gradient: {
24489
- from: "cyan",
24490
- to: "indigo"
24491
- }, onClick: () => r.views.setIDOfVIE(p.id), children: [
24492
- "Swith to View: ",
24493
- p.name
24494
- ] }),
24495
- /* @__PURE__ */ i(M, { mt: 20, variant: "subtle", color: "red", onClick: () => s(d), disabled: l, leftIcon: /* @__PURE__ */ i(Bn, { size: 14 }), children: "Delete This Tab" })
24496
- ] })
24497
- ] }),
24498
- p && /* @__PURE__ */ i(Ha, { view: p })
24499
- ] }, c.id);
24500
- })
24501
- ] }),
24502
- e
24489
+ /* @__PURE__ */ i($, { label: "Tab Name", value: l.name, onChange: (p) => l.setName(p.currentTarget.value) }),
24490
+ /* @__PURE__ */ i(F, { label: "View", value: l.view_id, onChange: l.setViewID, data: r }),
24491
+ /* @__PURE__ */ i(Yo, { label: "Color", value: l.color, onChange: l.setColor, disabled: o.variant !== "default" }),
24492
+ d && /* @__PURE__ */ u(M, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ i(jh, { size: 18 }), gradient: {
24493
+ from: "cyan",
24494
+ to: "indigo"
24495
+ }, onClick: () => n.views.setIDOfVIE(d.id), children: [
24496
+ "Swith to View: ",
24497
+ d.name
24498
+ ] }),
24499
+ /* @__PURE__ */ i(M, { mt: 20, variant: "subtle", color: "red", onClick: () => a(c), disabled: s, leftIcon: /* @__PURE__ */ i(Bn, { size: 14 }), children: "Delete This Tab" })
24500
+ ] })
24501
+ ] }),
24502
+ d && /* @__PURE__ */ i(Ha, { view: d })
24503
+ ] }, l.id);
24504
+ })
24503
24505
  ] });
24504
24506
  }), HD = D(({
24505
24507
  view: e,
24506
24508
  children: t
24507
24509
  }) => {
24508
24510
  switch (e.type) {
24509
- case Z.Modal:
24511
+ case X.Modal:
24510
24512
  return /* @__PURE__ */ i(WD, { view: e, children: t });
24511
- case Z.Tabs:
24512
- return /* @__PURE__ */ i(YD, { view: e, children: t });
24513
- case Z.Division:
24513
+ case X.Tabs:
24514
+ return /* @__PURE__ */ i(YD, { view: e });
24515
+ case X.Division:
24514
24516
  default:
24515
24517
  return /* @__PURE__ */ i(qD, { view: e, children: t });
24516
24518
  }
@@ -24520,10 +24522,10 @@ const WD = D(({
24520
24522
  return /* @__PURE__ */ i(ki.Provider, { value: {
24521
24523
  viewPanelInFullScreen: k.noop,
24522
24524
  inFullScreen: !1
24523
- }, children: /* @__PURE__ */ i(F, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(HD, { view: t, children: /* @__PURE__ */ u(F, { sx: {
24525
+ }, children: /* @__PURE__ */ i(P, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(HD, { view: t, children: /* @__PURE__ */ u(P, { sx: {
24524
24526
  position: "relative"
24525
24527
  }, children: [
24526
- /* @__PURE__ */ i(F, { className: "dashboard-sticky-area", sx: {
24528
+ /* @__PURE__ */ i(P, { className: "dashboard-sticky-area", sx: {
24527
24529
  position: "sticky",
24528
24530
  top: "0px"
24529
24531
  }, children: /* @__PURE__ */ i(zd, { view: t }) }),
@@ -24544,14 +24546,14 @@ const WD = D(({
24544
24546
  return /* @__PURE__ */ i(ki.Provider, { value: {
24545
24547
  viewPanelInFullScreen: o,
24546
24548
  inFullScreen: s
24547
- }, children: /* @__PURE__ */ u(F, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
24548
- height: t.type === Z.Modal ? "0 !important" : "100%"
24549
+ }, children: /* @__PURE__ */ u(P, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
24550
+ height: t.type === X.Modal ? "0 !important" : "100%"
24549
24551
  }, children: [
24550
24552
  s && /* @__PURE__ */ i(MD, { view: t, panel: l, exitFullScreen: a }),
24551
- /* @__PURE__ */ i(BD, { view: t, children: /* @__PURE__ */ u(F, { sx: {
24553
+ /* @__PURE__ */ i(BD, { view: t, children: /* @__PURE__ */ u(P, { sx: {
24552
24554
  position: "relative"
24553
24555
  }, children: [
24554
- !s && /* @__PURE__ */ i(F, { className: "dashboard-sticky-area", sx: {
24556
+ !s && /* @__PURE__ */ i(P, { className: "dashboard-sticky-area", sx: {
24555
24557
  position: "sticky",
24556
24558
  top: "0px"
24557
24559
  }, children: /* @__PURE__ */ i(zd, { view: t }) }),
@@ -24561,17 +24563,17 @@ const WD = D(({
24561
24563
  });
24562
24564
  var KD = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(KD || {});
24563
24565
  const kA = {
24564
- [Z.Division]: "Division",
24565
- [Z.Tabs]: "Tabs",
24566
- [Z.Modal]: "Modal"
24566
+ [X.Division]: "Division",
24567
+ [X.Tabs]: "Tabs",
24568
+ [X.Modal]: "Modal"
24567
24569
  }, UD = {
24568
- [Z.Division]: "rgba(255, 0, 0, 0.2)",
24569
- [Z.Modal]: "rgba(0, 0, 0, 0.2)",
24570
- [Z.Tabs]: "rgba(255, 200, 100, 0.4)"
24570
+ [X.Division]: "rgba(255, 0, 0, 0.2)",
24571
+ [X.Modal]: "rgba(0, 0, 0, 0.2)",
24572
+ [X.Tabs]: "rgba(255, 200, 100, 0.4)"
24571
24573
  }, TA = {
24572
- [Z.Division]: "#ff4000",
24573
- [Z.Modal]: "#000",
24574
- [Z.Tabs]: "#ffad18"
24574
+ [X.Division]: "#ff4000",
24575
+ [X.Modal]: "#000",
24576
+ [X.Tabs]: "#ffad18"
24575
24577
  }, DA = {
24576
24578
  definition: {
24577
24579
  sqlSnippets: [],
@@ -24581,7 +24583,7 @@ const kA = {
24581
24583
  views: [{
24582
24584
  id: "Main",
24583
24585
  name: "Main",
24584
- type: Z.Division,
24586
+ type: X.Division,
24585
24587
  config: {},
24586
24588
  panelIDs: []
24587
24589
  }],
@@ -25294,8 +25296,8 @@ const lI = b.model("EditorModel", {
25294
25296
  },
25295
25297
  addARandomNewView() {
25296
25298
  const t = (/* @__PURE__ */ new Date()).getTime().toString();
25297
- this.addANewView(t, Z.Division, Z.Division, {
25298
- _name: Z.Division
25299
+ this.addANewView(t, X.Division, X.Division, {
25300
+ _name: X.Division
25299
25301
  }), this.setIDOfVIE(t);
25300
25302
  },
25301
25303
  removeVIE() {
@@ -25817,8 +25819,9 @@ const gI = D(() => {
25817
25819
  borderBottom: "1px solid #e9ecef",
25818
25820
  background: "rgba(233,236,239, 0.15)"
25819
25821
  }, vI = D(() => {
25820
- const e = Ce();
25821
- return /* @__PURE__ */ i(F, { sx: xI, pl: {
25822
+ var n;
25823
+ const e = Ce(), t = ((n = e.views.VIE) == null ? void 0 : n.type) === X.Tabs;
25824
+ return /* @__PURE__ */ i(P, { sx: xI, pl: {
25822
25825
  base: 200,
25823
25826
  xs: 200,
25824
25827
  sm: 200,
@@ -25828,7 +25831,7 @@ const gI = D(() => {
25828
25831
  }, children: /* @__PURE__ */ u(v, { position: "apart", align: "center", sx: {
25829
25832
  height: "30px"
25830
25833
  }, pr: 16, children: [
25831
- /* @__PURE__ */ i(M, { variant: "outline", color: "blue", radius: 0, size: "xs", disabled: !e.views.VIE, onClick: () => e.addANewPanel(e.views.idOfVIE), leftIcon: /* @__PURE__ */ i(Uh, { size: 20 }), sx: {
25834
+ /* @__PURE__ */ i(M, { variant: "outline", color: "blue", radius: 0, size: "xs", disabled: !e.views.VIE || t, onClick: () => e.addANewPanel(e.views.idOfVIE), leftIcon: /* @__PURE__ */ i(Uh, { size: 20 }), sx: {
25832
25835
  height: "30px",
25833
25836
  borderLeft: "none",
25834
25837
  borderTop: "none",
@@ -25836,8 +25839,8 @@ const gI = D(() => {
25836
25839
  borderBottom: "1px solid #e9ecef",
25837
25840
  background: "rgb(231, 245, 255)"
25838
25841
  }, children: "Add a Panel" }),
25839
- /* @__PURE__ */ i(F, {}),
25840
- /* @__PURE__ */ i(F, {})
25842
+ /* @__PURE__ */ i(P, {}),
25843
+ /* @__PURE__ */ i(P, {})
25841
25844
  ] }) });
25842
25845
  }), wI = D((e) => /* @__PURE__ */ u(j, { children: [
25843
25846
  /* @__PURE__ */ i(yI, { ...e }),
@@ -25968,15 +25971,15 @@ function II(e, t) {
25968
25971
  }), r;
25969
25972
  }
25970
25973
  const MI = {
25971
- [Z.Division]: "Div",
25972
- [Z.Modal]: "Modal",
25973
- [Z.Tabs]: "Tabs"
25974
+ [X.Division]: "Div",
25975
+ [X.Modal]: "Modal",
25976
+ [X.Tabs]: "Tabs"
25974
25977
  }, zI = UD;
25975
25978
  function $I(e) {
25976
25979
  return e.current.map((n, r) => {
25977
25980
  const o = SI(n.panelIDs.length, Br, _u) + Qa + vu;
25978
25981
  let a = [];
25979
- return n.type === Z.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
25982
+ return n.type === X.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
25980
25983
  id: n.id,
25981
25984
  _node_type: "view-root",
25982
25985
  _view_type: n.type,
@@ -26004,7 +26007,7 @@ function $I(e) {
26004
26007
  function LI(e) {
26005
26008
  const t = k.keyBy(e, (n) => n.id);
26006
26009
  e.forEach((n) => {
26007
- n._node_type !== "view-root" || n._view_type !== Z.Tabs || n._tab_view_ids.forEach((r) => {
26010
+ n._node_type !== "view-root" || n._view_type !== X.Tabs || n._tab_view_ids.forEach((r) => {
26008
26011
  t[r].parentNode = n.id;
26009
26012
  });
26010
26013
  });
@@ -26021,7 +26024,7 @@ function EI({
26021
26024
  edges: n
26022
26025
  }) {
26023
26026
  t.forEach((r) => {
26024
- r._node_type !== "view-root" || r._view_type !== Z.Tabs || (r.sourcePosition = kt.Bottom, r.style.width = Ka + Zr * 2, r.style.height = vu + r._tab_view_ids.reduce((o, a) => {
26027
+ r._node_type !== "view-root" || r._view_type !== X.Tabs || (r.sourcePosition = kt.Bottom, r.style.width = Ka + Zr * 2, r.style.height = vu + r._tab_view_ids.reduce((o, a) => {
26025
26028
  const s = e[a];
26026
26029
  s.position.y = o, s.position.x = Zr;
26027
26030
  const l = s.style.height;
@@ -26160,7 +26163,7 @@ const BI = Zu(({
26160
26163
  const a = z(() => NI(e.interactions), [e.interactions]);
26161
26164
  return /* @__PURE__ */ u(j, { children: [
26162
26165
  /* @__PURE__ */ i(_s, { type: "target", position: r, isConnectable: t }),
26163
- /* @__PURE__ */ i(F, { sx: {
26166
+ /* @__PURE__ */ i(P, { sx: {
26164
26167
  position: "absolute",
26165
26168
  top: 0,
26166
26169
  right: 0
@@ -26237,7 +26240,7 @@ function YI({
26237
26240
  active: n,
26238
26241
  openSettings: r
26239
26242
  }) {
26240
- return /* @__PURE__ */ u(F, { sx: {
26243
+ return /* @__PURE__ */ u(P, { sx: {
26241
26244
  position: "relative"
26242
26245
  }, children: [
26243
26246
  /* @__PURE__ */ i(lh, { sx: (o) => ({
@@ -26269,7 +26272,7 @@ const HI = D(() => {
26269
26272
  const e = Oe(), t = Ce(), n = ot((o) => () => t.views.setIDOfVIE(o), [t]), r = (o) => {
26270
26273
  e.editor.open(["_VIEWS_", o]);
26271
26274
  };
26272
- return /* @__PURE__ */ u(F, { sx: {
26275
+ return /* @__PURE__ */ u(P, { sx: {
26273
26276
  position: "relative"
26274
26277
  }, children: [
26275
26278
  t.views.options.map((o) => /* @__PURE__ */ i(YI, { active: t.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
@@ -26375,7 +26378,7 @@ const HI = D(() => {
26375
26378
  /* @__PURE__ */ i(ve, { checked: t.clearable, onChange: (n) => t.setClearable(n.currentTarget.checked), disabled: t.max_days > 0, label: "Clearable" }),
26376
26379
  /* @__PURE__ */ i(ve, { checked: t.allowSingleDateInRange, onChange: (n) => t.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
26377
26380
  ] }),
26378
- /* @__PURE__ */ i(P, { data: UI, label: "Display Format", value: t.inputFormat, onChange: t.setInputFormat }),
26381
+ /* @__PURE__ */ i(F, { data: UI, label: "Display Format", value: t.inputFormat, onChange: t.setInputFormat }),
26379
26382
  /* @__PURE__ */ i(
26380
26383
  Dd,
26381
26384
  {
@@ -26399,7 +26402,7 @@ const HI = D(() => {
26399
26402
  onChange: t
26400
26403
  }) => {
26401
26404
  const n = Ce(), r = R.useMemo(() => n.queries.options, [n.queries.current]), o = r.length === 0;
26402
- return /* @__PURE__ */ i(P, { label: "Pick a query", data: r, value: e, onChange: t, allowDeselect: !1, clearable: !0, sx: {
26405
+ return /* @__PURE__ */ i(F, { label: "Pick a query", data: r, value: e, onChange: t, allowDeselect: !1, clearable: !0, sx: {
26403
26406
  flexGrow: 1
26404
26407
  }, disabled: o, error: o ? "You need to add a query in Data Settings" : void 0 });
26405
26408
  }), JI = `
@@ -26512,7 +26515,7 @@ const HI = D(() => {
26512
26515
  width: "100%"
26513
26516
  }, children: /* @__PURE__ */ i(C, { color: "white", size: 16, children: "Using query" }) })
26514
26517
  ] }),
26515
- r.length > 0 && /* @__PURE__ */ i(P, { label: "Default Selection", data: o, value: t.default_value, onChange: t.setDefaultValue }),
26518
+ r.length > 0 && /* @__PURE__ */ i(F, { label: "Default Selection", data: o, value: t.default_value, onChange: t.setDefaultValue }),
26516
26519
  r.map((a, s) => /* @__PURE__ */ u(jn, { gap: 10, sx: {
26517
26520
  position: "relative"
26518
26521
  }, pr: "40px", children: [
@@ -26580,7 +26583,7 @@ const HI = D(() => {
26580
26583
  const [n, r] = R.useState(t.plainDefaultValue);
26581
26584
  return R.useEffect(() => {
26582
26585
  r(t.plainDefaultValue);
26583
- }, [t]), /* @__PURE__ */ u(F, { sx: {
26586
+ }, [t]), /* @__PURE__ */ u(P, { sx: {
26584
26587
  maxWidth: "480px"
26585
26588
  }, children: [
26586
26589
  /* @__PURE__ */ i(C, { pb: "md", color: "gray", children: "Preview" }),
@@ -26618,7 +26621,7 @@ const HI = D(() => {
26618
26621
  }) {
26619
26622
  const n = Ce(), r = R.useMemo(() => aM[t.type], [t.type]);
26620
26623
  return /* @__PURE__ */ u(v, { grow: !0, spacing: 20, align: "top", children: [
26621
- /* @__PURE__ */ u(F, { sx: {
26624
+ /* @__PURE__ */ u(P, { sx: {
26622
26625
  maxWidth: "600px"
26623
26626
  }, children: [
26624
26627
  /* @__PURE__ */ i(C, { pb: "md", color: "gray", children: "Edit" }),
@@ -26646,7 +26649,7 @@ const HI = D(() => {
26646
26649
  /* @__PURE__ */ i($, { label: "Label", placeholder: "Label for this field", required: !0, value: t.label, onChange: (o) => {
26647
26650
  t.setLabel(o.currentTarget.value);
26648
26651
  } }),
26649
- /* @__PURE__ */ i(P, { label: "Widget", data: sM, required: !0, value: t.type, onChange: t.setType }),
26652
+ /* @__PURE__ */ i(F, { label: "Widget", data: sM, required: !0, value: t.type, onChange: t.setType }),
26650
26653
  /* @__PURE__ */ i(r, { config: t.config })
26651
26654
  ] })
26652
26655
  ] }),
@@ -26689,7 +26692,7 @@ const HI = D(() => {
26689
26692
  zIndex: 320
26690
26693
  });
26691
26694
  }, children: "Delete this filter" }) }),
26692
- /* @__PURE__ */ i(F, { sx: {
26695
+ /* @__PURE__ */ i(P, { sx: {
26693
26696
  flexGrow: 1,
26694
26697
  maxHeight: "calc(100% - 52px)",
26695
26698
  overflow: "auto"
@@ -26846,7 +26849,7 @@ function Su({
26846
26849
  columnResizeMode: "onChange",
26847
26850
  getCoreRowModel: ec()
26848
26851
  });
26849
- return e.length === 0 ? /* @__PURE__ */ i(F, { sx: {
26852
+ return e.length === 0 ? /* @__PURE__ */ i(P, { sx: {
26850
26853
  height: "5em"
26851
26854
  } }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(Ft, { sx: mM, children: [
26852
26855
  /* @__PURE__ */ i("thead", { children: n.getHeaderGroups().map((r) => /* @__PURE__ */ i("tr", { children: r.headers.map((o) => /* @__PURE__ */ u("th", { style: {
@@ -26900,7 +26903,7 @@ const gM = ({
26900
26903
  /* @__PURE__ */ i(Q, { variant: "subtle", color: "blue", disabled: s || p, onClick: c, children: /* @__PURE__ */ i(Jo, { size: 16 }) })
26901
26904
  ] })
26902
26905
  ] }),
26903
- /* @__PURE__ */ u(F, { sx: {
26906
+ /* @__PURE__ */ u(P, { sx: {
26904
26907
  position: "relative",
26905
26908
  overflow: "auto"
26906
26909
  }, children: [
@@ -26930,7 +26933,7 @@ const gM = ({
26930
26933
  const {
26931
26934
  panel: e
26932
26935
  } = zn();
26933
- return /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(F, { sx: {
26936
+ return /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(P, { sx: {
26934
26937
  height: "100%",
26935
26938
  flexGrow: 0,
26936
26939
  flexShrink: 0,
@@ -27054,10 +27057,10 @@ const ku = Wn((e) => ({
27054
27057
  const d = k.cloneDeep(t);
27055
27058
  k.set(d, l, c), n(d);
27056
27059
  };
27057
- return /* @__PURE__ */ u(F, { px: "sm", py: "md", ref: a, children: [
27060
+ return /* @__PURE__ */ u(P, { px: "sm", py: "md", ref: a, children: [
27058
27061
  /* @__PURE__ */ u(v, { grow: !0, noWrap: !0, children: [
27059
27062
  /* @__PURE__ */ i($, { label: "Name", required: !0, value: t.name, onChange: (l) => s("name", l.currentTarget.value) }),
27060
- /* @__PURE__ */ i(X, { label: "Data Field", required: !0, value: t.data_field, onChange: (l) => s("data_field", l) })
27063
+ /* @__PURE__ */ i(J, { label: "Data Field", required: !0, value: t.data_field, onChange: (l) => s("data_field", l) })
27061
27064
  ] }),
27062
27065
  /* @__PURE__ */ i(mi, { label: "Aggregation", value: t.aggregation, onChange: (l) => s("aggregation", l) }),
27063
27066
  t.aggregation.type !== "custom" && /* @__PURE__ */ u(j, { children: [
@@ -27101,7 +27104,7 @@ const ku = Wn((e) => ({
27101
27104
  } = ku();
27102
27105
  return /* @__PURE__ */ u(v, { className: t.root, noWrap: !0, align: "start", children: [
27103
27106
  /* @__PURE__ */ i(jo, { withBorder: !0, p: "md", className: "var-list-container", children: /* @__PURE__ */ u(S, { justify: "space-between", children: [
27104
- /* @__PURE__ */ i(F, { className: "var-list-actions", children: /* @__PURE__ */ i(M, { variant: "light", size: "sm", onClick: e.addNew, fullWidth: !0, children: "Add Variable" }) }),
27107
+ /* @__PURE__ */ i(P, { className: "var-list-actions", children: /* @__PURE__ */ i(M, { variant: "light", size: "sm", onClick: e.addNew, fullWidth: !0, children: "Add Variable" }) }),
27105
27108
  /* @__PURE__ */ i(CM, { uiModel: e })
27106
27109
  ] }) }),
27107
27110
  e.selected ? /* @__PURE__ */ i(j, { children: /* @__PURE__ */ i(DM, { uiModel: e, variable: e.selected }) }) : /* @__PURE__ */ i("span", { children: "Select or create a new variable on right side" })
@@ -27129,7 +27132,7 @@ const $M = D(({
27129
27132
  r(e);
27130
27133
  }, [e]);
27131
27134
  const o = zM();
27132
- return /* @__PURE__ */ i(P, { label: "Visualization", value: n, searchable: !0, onChange: r, data: o, rightSection: /* @__PURE__ */ i(Q, { disabled: !(e !== n), onClick: () => t(n), children: /* @__PURE__ */ i(we, { size: 20 }) }), maxDropdownHeight: 600 });
27135
+ return /* @__PURE__ */ i(F, { label: "Visualization", value: n, searchable: !0, onChange: r, data: o, rightSection: /* @__PURE__ */ i(Q, { disabled: !(e !== n), onClick: () => t(n), children: /* @__PURE__ */ i(we, { size: 20 }) }), maxDropdownHeight: 600 });
27133
27136
  }), rl = [];
27134
27137
  function LM(e, t) {
27135
27138
  try {
@@ -27266,7 +27269,7 @@ const EM = D(() => {
27266
27269
  width: "100%",
27267
27270
  height: "100%"
27268
27271
  }, children: [
27269
- /* @__PURE__ */ i(F, { sx: {
27272
+ /* @__PURE__ */ i(P, { sx: {
27270
27273
  maxWidth: "calc(100% - 610px - 10px)",
27271
27274
  height: "100%",
27272
27275
  overflow: "auto"
@@ -27593,7 +27596,7 @@ const KM = D(({
27593
27596
  const {
27594
27597
  tables: t
27595
27598
  } = e;
27596
- return t.loading ? /* @__PURE__ */ i(Tu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ i(F, { h: "100%", sx: {
27599
+ return t.loading ? /* @__PURE__ */ i(Tu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ i(P, { h: "100%", sx: {
27597
27600
  overflow: "auto",
27598
27601
  ".mantine-NavLink-label": {
27599
27602
  fontFamily: "monospace"
@@ -27603,7 +27606,7 @@ const KM = D(({
27603
27606
  }, active: e.table_name === o.table_name }, o.table_name)) }, n)) });
27604
27607
  }), UM = ({
27605
27608
  visible: e
27606
- }) => /* @__PURE__ */ i(F, { py: 10, sx: {
27609
+ }) => /* @__PURE__ */ i(P, { py: 10, sx: {
27607
27610
  width: "100%",
27608
27611
  height: "100%",
27609
27612
  overflow: "hidden",
@@ -27644,7 +27647,7 @@ const KM = D(({
27644
27647
  }
27645
27648
  } }),
27646
27649
  /* @__PURE__ */ i(
27647
- P,
27650
+ F,
27648
27651
  {
27649
27652
  icon: /* @__PURE__ */ i(C, { ta: "center", color: "dimmed", size: 14, children: "Limit" }),
27650
27653
  size: "xs",
@@ -27671,7 +27674,7 @@ const KM = D(({
27671
27674
  fontFamily: "monospace"
27672
27675
  }, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ i(UM, { visible: !0 }) : /* @__PURE__ */ u(ct, { children: [
27673
27676
  /* @__PURE__ */ i(ZM, { dataSource: e }),
27674
- /* @__PURE__ */ u(F, { py: 10, sx: {
27677
+ /* @__PURE__ */ u(P, { py: 10, sx: {
27675
27678
  width: "100%",
27676
27679
  height: "calc(100% - 42px)",
27677
27680
  overflow: "auto",
@@ -27702,7 +27705,7 @@ const KM = D(({
27702
27705
  }, children: e.tables.error }) : /* @__PURE__ */ u(jn, { sx: {
27703
27706
  height: "100%"
27704
27707
  }, children: [
27705
- /* @__PURE__ */ i(F, { w: 300, sx: {
27708
+ /* @__PURE__ */ i(P, { w: 300, sx: {
27706
27709
  flexGrow: 0,
27707
27710
  flexShrink: 0,
27708
27711
  position: "relative"
@@ -27756,7 +27759,7 @@ const KM = D(({
27756
27759
  to: "red"
27757
27760
  }, children: e.type })
27758
27761
  ] })
27759
- ] }), zIndex: 320, size: "96vw", styles: rz, children: /* @__PURE__ */ i(F, { sx: {
27762
+ ] }), zIndex: 320, size: "96vw", styles: rz, children: /* @__PURE__ */ i(P, { sx: {
27760
27763
  height: "calc(100vh - 220px)"
27761
27764
  }, children: /* @__PURE__ */ i(nz, { dataSource: e }) }) }),
27762
27765
  /* @__PURE__ */ i(M, { variant: "subtle", onClick: () => r(!0), px: 16, styles: {
@@ -27791,8 +27794,8 @@ const KM = D(({
27791
27794
  type: s[d]
27792
27795
  });
27793
27796
  }, c = z(() => n.datasources.find(e), [n, e]);
27794
- return /* @__PURE__ */ i(P, { data: a, label: /* @__PURE__ */ u(v, { position: "apart", children: [
27795
- /* @__PURE__ */ i(F, { children: "Data Source" }),
27797
+ return /* @__PURE__ */ i(F, { data: a, label: /* @__PURE__ */ u(v, { position: "apart", children: [
27798
+ /* @__PURE__ */ i(P, { children: "Data Source" }),
27796
27799
  c && /* @__PURE__ */ i(Du, { dataSource: c, triggerButtonProps: {
27797
27800
  compact: !0,
27798
27801
  size: "xs",
@@ -27994,8 +27997,8 @@ WHERE
27994
27997
  /* @__PURE__ */ i("td", { children: k.capitalize(a.type) }),
27995
27998
  /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(Ui, { component: "button", type: "button", onClick: () => r(a), children: a.label }) }),
27996
27999
  /* @__PURE__ */ i("td", { children: /* @__PURE__ */ u(S, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
27997
- a.views.map((s) => /* @__PURE__ */ i(Ui, { component: "button", type: "button", onClick: () => o(s.id), children: /* @__PURE__ */ i(F, { children: s.label }) })),
27998
- a.views.length === 0 && /* @__PURE__ */ i(F, { children: "--" })
28000
+ a.views.map((s) => /* @__PURE__ */ i(Ui, { component: "button", type: "button", onClick: () => o(s.id), children: /* @__PURE__ */ i(P, { children: s.label }) })),
28001
+ a.views.length === 0 && /* @__PURE__ */ i(P, { children: "--" })
27999
28002
  ] }) })
28000
28003
  ] }, a.id)) })
28001
28004
  ] }) });
@@ -28251,7 +28254,7 @@ WHERE
28251
28254
  } });
28252
28255
  }), wz = D(({
28253
28256
  view: e
28254
- }) => !e || e.type !== Z.Division ? null : /* @__PURE__ */ u(S, { children: [
28257
+ }) => !e || e.type !== X.Division ? null : /* @__PURE__ */ u(S, { children: [
28255
28258
  /* @__PURE__ */ i(E, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
28256
28259
  /* @__PURE__ */ i(C, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
28257
28260
  ] })), _z = [{
@@ -28272,20 +28275,20 @@ WHERE
28272
28275
  }], Sz = D(({
28273
28276
  view: e
28274
28277
  }) => {
28275
- if (!e || e.type !== Z.Tabs)
28278
+ if (!e || e.type !== X.Tabs)
28276
28279
  return null;
28277
28280
  const t = e.config;
28278
28281
  return /* @__PURE__ */ u(S, { children: [
28279
28282
  /* @__PURE__ */ i(E, { mt: 8, mb: 0, label: "Tabs settings", labelPosition: "center" }),
28280
- /* @__PURE__ */ i(P, { label: "Variant", value: t.variant, onChange: t.setVariant, data: _z }),
28281
- /* @__PURE__ */ i(P, { label: "Orientation", value: t.orientation, onChange: t.setOrientation, data: Cz }),
28283
+ /* @__PURE__ */ i(F, { label: "Variant", value: t.variant, onChange: t.setVariant, data: _z }),
28284
+ /* @__PURE__ */ i(F, { label: "Orientation", value: t.orientation, onChange: t.setOrientation, data: Cz }),
28282
28285
  /* @__PURE__ */ i(Je, { label: "Grow Tabs", checked: t.grow, onChange: (n) => t.setGrow(n.currentTarget.checked) })
28283
28286
  ] });
28284
28287
  }), kz = ({
28285
28288
  disabled: e,
28286
28289
  value: t,
28287
28290
  onChange: n
28288
- }) => /* @__PURE__ */ u(F, { sx: {
28291
+ }) => /* @__PURE__ */ u(P, { sx: {
28289
28292
  position: "relative"
28290
28293
  }, children: [
28291
28294
  e && /* @__PURE__ */ i(sn, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -28348,7 +28351,7 @@ WHERE
28348
28351
  }, Dz = D(({
28349
28352
  view: e
28350
28353
  }) => {
28351
- if (!e || e.type !== Z.Modal)
28354
+ if (!e || e.type !== X.Modal)
28352
28355
  return null;
28353
28356
  const t = e.config, n = t.custom_modal_title.value;
28354
28357
  return /* @__PURE__ */ u(S, { children: [
@@ -28372,13 +28375,13 @@ WHERE
28372
28375
  /* @__PURE__ */ i(Sz, { view: e })
28373
28376
  ] })), Mz = [{
28374
28377
  label: "Division",
28375
- value: Z.Division
28378
+ value: X.Division
28376
28379
  }, {
28377
28380
  label: "Modal",
28378
- value: Z.Modal
28381
+ value: X.Modal
28379
28382
  }, {
28380
28383
  label: "Tabs",
28381
- value: Z.Tabs
28384
+ value: X.Tabs
28382
28385
  }], zz = D(({
28383
28386
  view: e
28384
28387
  }) => e ? /* @__PURE__ */ u(S, { sx: {
@@ -28387,7 +28390,7 @@ WHERE
28387
28390
  /* @__PURE__ */ i($, { label: "Name", value: e.name, onChange: (t) => {
28388
28391
  e.setName(t.currentTarget.value);
28389
28392
  } }),
28390
- /* @__PURE__ */ i(P, { label: "Type", withinPortal: !0, zIndex: 320, value: e.type, onChange: e.setType, data: Mz }),
28393
+ /* @__PURE__ */ i(F, { label: "Type", withinPortal: !0, zIndex: 320, value: e.type, onChange: e.setType, data: Mz }),
28391
28394
  /* @__PURE__ */ i(Iz, { view: e })
28392
28395
  ] }) : null), $z = D(({
28393
28396
  id: e
@@ -28423,7 +28426,7 @@ WHERE
28423
28426
  zIndex: 320
28424
28427
  });
28425
28428
  }, children: "Delete this view" }) }),
28426
- /* @__PURE__ */ i(F, { sx: {
28429
+ /* @__PURE__ */ i(P, { sx: {
28427
28430
  flexGrow: 1,
28428
28431
  maxHeight: "calc(100% - 52px)",
28429
28432
  overflow: "auto"
@@ -28455,7 +28458,7 @@ const Vz = D(() => /* @__PURE__ */ i(S, { sx: {
28455
28458
  height: "100%"
28456
28459
  }, p: "sm", children: /* @__PURE__ */ i(Iu, {}) })), Nz = D(() => {
28457
28460
  const e = Oe().editor, t = e.path;
28458
- return Lz(t) ? /* @__PURE__ */ i(Vz, {}) : Az(t) ? /* @__PURE__ */ i(dM, {}) : Ez(t) ? /* @__PURE__ */ i(F, { p: "xs", pl: 20, children: /* @__PURE__ */ i(cM, { id: t[1] }) }) : Rz(t) ? /* @__PURE__ */ i(vz, { id: t[1] }) : Oz(t) ? /* @__PURE__ */ i(bz, { id: t[1] }) : Fz(t) ? /* @__PURE__ */ i(F, { p: "xs", pl: 20, children: /* @__PURE__ */ i($z, { id: t[1] }) }) : Pz(t) ? /* @__PURE__ */ i(VM, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ i(F, { children: e.path });
28461
+ return Lz(t) ? /* @__PURE__ */ i(Vz, {}) : Az(t) ? /* @__PURE__ */ i(dM, {}) : Ez(t) ? /* @__PURE__ */ i(P, { p: "xs", pl: 20, children: /* @__PURE__ */ i(cM, { id: t[1] }) }) : Rz(t) ? /* @__PURE__ */ i(vz, { id: t[1] }) : Oz(t) ? /* @__PURE__ */ i(bz, { id: t[1] }) : Fz(t) ? /* @__PURE__ */ i(P, { p: "xs", pl: 20, children: /* @__PURE__ */ i($z, { id: t[1] }) }) : Pz(t) ? /* @__PURE__ */ i(VM, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ i(P, { children: e.path });
28459
28462
  }), Bz = D(() => /* @__PURE__ */ i(Nz, {})), qz = D(() => {
28460
28463
  const e = Oe();
28461
28464
  return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
@@ -28485,14 +28488,14 @@ const Vz = D(() => /* @__PURE__ */ i(S, { sx: {
28485
28488
  if (!e)
28486
28489
  return null;
28487
28490
  const n = t.views.findByID(e);
28488
- return n ? /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => t.addANewPanel(n.id), sx: {
28491
+ return !n || n.type === X.Tabs ? null : /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => t.addANewPanel(n.id), sx: {
28489
28492
  width: "100%",
28490
28493
  borderRadius: 0
28491
28494
  }, styles: {
28492
28495
  inner: {
28493
28496
  justifyContent: "flex-start"
28494
28497
  }
28495
- }, children: "Add a Panel" }) : null;
28498
+ }, children: "Add a Panel" });
28496
28499
  }), jz = D(() => {
28497
28500
  const e = Oe();
28498
28501
  return /* @__PURE__ */ i(M, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Pt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
@@ -28551,7 +28554,7 @@ const Vz = D(() => /* @__PURE__ */ i(S, { sx: {
28551
28554
  }, [s]), /* @__PURE__ */ i(Xi, { active: r, defaultOpened: s, opened: l, onChange: c, label: e.label, onClick: () => a(e), icon: e.Icon ? /* @__PURE__ */ i(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(Hz, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Mu, { option: p }, p.value)) }, e.label);
28552
28555
  }), Qz = D(() => {
28553
28556
  const e = Oe();
28554
- return /* @__PURE__ */ i(F, { sx: {
28557
+ return /* @__PURE__ */ i(P, { sx: {
28555
28558
  position: "relative"
28556
28559
  }, children: e.editor.navOptions.map((t) => /* @__PURE__ */ i(Mu, { option: t }, t.value)) });
28557
28560
  }), Kz = D(() => {
@@ -28673,7 +28676,7 @@ const e$ = {
28673
28676
  return /* @__PURE__ */ i(fl, { children: /* @__PURE__ */ i(hc, { value: h, children: /* @__PURE__ */ i(gc, { value: h.content, children: /* @__PURE__ */ i(la.Provider, { value: {
28674
28677
  inEditMode: !0
28675
28678
  }, children: /* @__PURE__ */ i(Nt.Provider, { value: m, children: /* @__PURE__ */ u(Si, { configure: w, children: [
28676
- /* @__PURE__ */ i(pl, { padding: 0, header: /* @__PURE__ */ i(wI, { saveDashboardChanges: f, headerSlot: l }), navbar: /* @__PURE__ */ i(QI, {}), styles: e$, children: /* @__PURE__ */ i(F, { className: `${o} dashboard-root`, sx: {
28679
+ /* @__PURE__ */ i(pl, { padding: 0, header: /* @__PURE__ */ i(wI, { saveDashboardChanges: f, headerSlot: l }), navbar: /* @__PURE__ */ i(QI, {}), styles: e$, children: /* @__PURE__ */ i(P, { className: `${o} dashboard-root`, sx: {
28677
28680
  position: "relative"
28678
28681
  }, children: h.content.views.visibleViews.map((x) => /* @__PURE__ */ i(QD, { view: x }, x.id)) }) }),
28679
28682
  /* @__PURE__ */ i(Xz, {})
@@ -28865,7 +28868,7 @@ const zA = D(({
28865
28868
  setFullScreenPanelID: s
28866
28869
  }, children: /* @__PURE__ */ i(la.Provider, { value: {
28867
28870
  inEditMode: !1
28868
- }, children: /* @__PURE__ */ i(F, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Nt.Provider, { value: p, children: /* @__PURE__ */ i(Si, { configure: h, children: d.content.views.visibleViews.map((f) => /* @__PURE__ */ i(Ha, { view: f }, f.id)) }) }) }) }) }) }) }) });
28871
+ }, children: /* @__PURE__ */ i(P, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Nt.Provider, { value: p, children: /* @__PURE__ */ i(Si, { configure: h, children: d.content.views.visibleViews.map((f) => /* @__PURE__ */ i(Ha, { view: f }, f.id)) }) }) }) }) }) }) }) });
28869
28872
  });
28870
28873
  var co = {}, o$ = {
28871
28874
  get exports() {