@devtable/dashboard 14.22.3 → 14.23.0

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.
@@ -16,7 +16,7 @@ import "echarts-gl";
16
16
  import * as Be from "echarts/core";
17
17
  import { use as zu } from "echarts/core";
18
18
  import { useBoolean as De, useCreation as Pt, usePrevious as Tu, useAsyncEffect as Ln, useRequest as dn, useLatest as oa, useWhyDidYouUpdate as cl } from "ahooks";
19
- import { Box as V, TextInput as A, Group as y, Text as k, Select as q, Button as L, Modal as ve, Stack as T, Divider as P, NumberInput as ne, SimpleGrid as ke, Menu as W, UnstyledButton as Ca, Tooltip as re, Flex as tt, ColorInput as Jt, Center as Ot, ActionIcon as te, Badge as jt, CloseButton as xt, Overlay as en, NativeSelect as ka, useMantineTheme as kr, ColorSwatch as dr, Popover as ut, ColorPicker as Gi, HoverCard as _e, Checkbox as J, Paper as Du, Code as Hi, Tabs as S, Switch as Ce, Table as w, MultiSelect as un, LoadingOverlay as tn, Alert as Un, Collapse as Kn, CheckIcon as Iu, SegmentedControl as za, Anchor as Qn, Pagination as zr, Textarea as dl, RangeSlider as Mu, Autocomplete as Lu, Combobox as Nt, Mark as ul, Slider as Vu, List as We, getRadius as Ta, Affix as Au, AppShell as Xe, FileInput as $u, Highlight as Pu, rem as Wi, ThemeIcon as ar, JsonInput as hl, Drawer as Ru, Radio as Ui, Skeleton as Ki, NavLink as la, useCombobox as Eu, Loader as Da, InputBase as Ou, Input as qu } from "@mantine/core";
19
+ import { Box as V, TextInput as A, Group as y, Text as k, Select as q, Button as L, Modal as we, Stack as T, Divider as P, NumberInput as ne, SimpleGrid as ke, Menu as W, UnstyledButton as Ca, Tooltip as re, Flex as tt, ColorInput as Jt, Center as Ot, ActionIcon as te, Badge as jt, CloseButton as xt, Overlay as en, NativeSelect as ka, useMantineTheme as kr, ColorSwatch as dr, Popover as ut, ColorPicker as Gi, HoverCard as _e, Checkbox as J, Paper as Du, Code as Hi, Tabs as S, Switch as Ce, Table as w, MultiSelect as un, LoadingOverlay as tn, Alert as Un, Collapse as Kn, CheckIcon as Iu, SegmentedControl as za, Anchor as Qn, Pagination as zr, Textarea as dl, RangeSlider as Mu, Autocomplete as Lu, Combobox as Nt, Mark as ul, Slider as Vu, List as We, getRadius as Ta, Affix as Au, AppShell as Xe, FileInput as $u, Highlight as Pu, rem as Wi, ThemeIcon as ar, JsonInput as hl, Drawer as Ru, Radio as Ui, Skeleton as Ki, NavLink as la, useCombobox as Eu, Loader as Da, InputBase as Ou, Input as qu } from "@mantine/core";
20
20
  import { useHover as Fu, useDisclosure as nn, useClipboard as Nu, randomId as hn, useElementSize as pl, useResizeObserver as Bu, useInputState as ml } from "@mantine/hooks";
21
21
  import * as ju from "popmotion";
22
22
  import { interpolate as bn } from "popmotion";
@@ -98,7 +98,7 @@ import Lp from "dayjs/plugin/utc";
98
98
  import Vp from "dayjs/plugin/weekday";
99
99
  import Ap from "dayjs/plugin/weekOfYear";
100
100
  import $p from "dayjs/plugin/weekYear";
101
- import { types as m, cast as Rt, getParent as we, destroy as Pp, getRoot as Le, addDisposer as Ue, detach as ur, isAlive as Xi, flow as Vt, toGenerator as It, clone as Rp, getSnapshot as Mt, applySnapshot as je, addMiddleware as Ep, getType as Op, castToSnapshot as Hl } from "mobx-state-tree";
101
+ import { types as m, cast as Rt, getParent as xe, destroy as Pp, getRoot as Le, addDisposer as Ue, detach as ur, isAlive as Xi, flow as Vt, toGenerator as It, clone as Rp, getSnapshot as Mt, applySnapshot as je, addMiddleware as Ep, getType as Op, castToSnapshot as Hl } from "mobx-state-tree";
102
102
  import { saveAs as Lr } from "file-saver";
103
103
  import Wl from "dom-to-image-more";
104
104
  import Ul from "jszip";
@@ -2425,7 +2425,7 @@ function hm() {
2425
2425
  } = $.useContext(ts);
2426
2426
  return e ? document.getElementById(e) : null;
2427
2427
  }
2428
- const rs = "14.22.3", pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2428
+ const rs = "14.23.0", pm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2429
2429
  __proto__: null,
2430
2430
  version: rs
2431
2431
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3179,7 +3179,7 @@ function jm(e) {
3179
3179
  ] }) });
3180
3180
  };
3181
3181
  }
3182
- const xe = (e) => (t, n) => {
3182
+ const ve = (e) => (t, n) => {
3183
3183
  t !== null && e(t, n);
3184
3184
  }, ea = D(ee((e, t) => {
3185
3185
  const {
@@ -3200,7 +3200,7 @@ const xe = (e) => (t, n) => {
3200
3200
  return g.length === 0 ? /* @__PURE__ */ r(A, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(q, { ref: t, label: n, description: o, renderOption: jm(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
3201
3201
  withinPortal: !0,
3202
3202
  zIndex: h
3203
- }, onChange: xe(i) });
3203
+ }, onChange: ve(i) });
3204
3204
  })), xs = {
3205
3205
  static: {
3206
3206
  type: "static",
@@ -3255,7 +3255,7 @@ const xe = (e) => (t, n) => {
3255
3255
  }, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: i, sx: {
3256
3256
  flexGrow: 0
3257
3257
  }, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
3258
- /* @__PURE__ */ r(ve, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
3258
+ /* @__PURE__ */ r(we, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
3259
3259
  /* @__PURE__ */ r(P, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
3260
3260
  /* @__PURE__ */ r(Qm, { value: l.value, onChange: h }),
3261
3261
  /* @__PURE__ */ u(y, { justify: "space-between", children: [
@@ -3732,7 +3732,7 @@ const tg = () => /* @__PURE__ */ r("div", { style: {
3732
3732
  e.chain().focus().unsetColorMapping().run();
3733
3733
  }, [e]);
3734
3734
  return /* @__PURE__ */ u(F, { children: [
3735
- /* @__PURE__ */ r(ve, { size: 500, opened: n, onClose: o, shadow: "md", withinPortal: !0, zIndex: 330, closeOnClickOutside: !1, closeOnEscape: !1, title: t("rich_text.color_mapping.edit"), styles: {
3735
+ /* @__PURE__ */ r(we, { size: 500, opened: n, onClose: o, shadow: "md", withinPortal: !0, zIndex: 330, closeOnClickOutside: !1, closeOnEscape: !1, title: t("rich_text.color_mapping.edit"), styles: {
3736
3736
  header: {
3737
3737
  paddingBottom: 0,
3738
3738
  minHeight: "unset"
@@ -3957,7 +3957,7 @@ const Nn = "data-value", dg = Nn, Is = "dynamicColor", Ms = Bl.create({
3957
3957
  close: b
3958
3958
  }] = nn(!1);
3959
3959
  return /* @__PURE__ */ u(F, { children: [
3960
- /* @__PURE__ */ u(ve, { opened: g, onClose: b, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
3960
+ /* @__PURE__ */ u(we, { opened: g, onClose: b, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
3961
3961
  i,
3962
3962
  /* @__PURE__ */ r(V, { h: 600, children: /* @__PURE__ */ r(fn, { value: t, onChange: n, defaultValue: c, label: a, restrictions: h }) })
3963
3963
  ] }),
@@ -4098,7 +4098,7 @@ function Vs() {
4098
4098
  close: a
4099
4099
  }] = nn(!1);
4100
4100
  return /* @__PURE__ */ u(F, { children: [
4101
- /* @__PURE__ */ r(ve, { opened: t, onClose: a, title: e("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r(Rn, { value: Cm(e), styles: {
4101
+ /* @__PURE__ */ r(we, { opened: t, onClose: a, title: e("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r(Rn, { value: Cm(e), styles: {
4102
4102
  root: {
4103
4103
  border: "none"
4104
4104
  },
@@ -4835,7 +4835,7 @@ const Y = D(ee(({
4835
4835
  ] }) })
4836
4836
  ] });
4837
4837
  }
4838
- return /* @__PURE__ */ r(q, { ref: d, label: e, description: n, data: p, value: a, onChange: xe(i), required: t, sx: s, maxDropdownHeight: 500, ...c });
4838
+ return /* @__PURE__ */ r(q, { ref: d, label: e, description: n, data: p, value: a, onChange: ve(i), required: t, sx: s, maxDropdownHeight: 500, ...c });
4839
4839
  }));
4840
4840
  function qg({
4841
4841
  context: e
@@ -5057,7 +5057,7 @@ const zt = ee(({
5057
5057
  /* @__PURE__ */ r(L, { variant: "filled", color: "grape", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: l, sx: {
5058
5058
  flexGrow: 0
5059
5059
  }, children: v }),
5060
- /* @__PURE__ */ r(ve, { size: 800, title: v, opened: o, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: o && /* @__PURE__ */ u(T, { children: [
5060
+ /* @__PURE__ */ r(we, { size: 800, title: v, opened: o, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: o && /* @__PURE__ */ u(T, { children: [
5061
5061
  /* @__PURE__ */ r(J, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (I) => h(I.currentTarget.checked) }),
5062
5062
  /* @__PURE__ */ r(Hg, { value: c.func_content, onChange: _, disabled: !c.enabled }),
5063
5063
  /* @__PURE__ */ u(y, { justify: "space-between", children: [
@@ -5387,7 +5387,7 @@ const ef = D(({
5387
5387
  async function o(l) {
5388
5388
  await e.changeSchema(a.find((s) => s.id === l));
5389
5389
  }
5390
- return /* @__PURE__ */ r(q, { label: t("interactions.operation.label"), data: i, onChange: xe(o), value: e.operationSchema.id, comboboxProps: {
5390
+ return /* @__PURE__ */ r(q, { label: t("interactions.operation.label"), data: i, onChange: ve(o), value: e.operationSchema.id, comboboxProps: {
5391
5391
  withinPortal: !0,
5392
5392
  zIndex: 340
5393
5393
  } });
@@ -5407,7 +5407,7 @@ const ef = D(({
5407
5407
  await d.configOperation(l, c);
5408
5408
  }, [l, d]), Jg(d) ? /* @__PURE__ */ u(F, { children: [
5409
5409
  /* @__PURE__ */ r(ef, { model: d, onClick: a }),
5410
- /* @__PURE__ */ r(ve, { size: 600, opened: n, onClose: i, title: t("interactions.operation.setup"), zIndex: 320, children: /* @__PURE__ */ u(T, { children: [
5410
+ /* @__PURE__ */ r(we, { size: 600, opened: n, onClose: i, title: t("interactions.operation.setup"), zIndex: 320, children: /* @__PURE__ */ u(T, { children: [
5411
5411
  /* @__PURE__ */ r(nf, { model: d }),
5412
5412
  /* @__PURE__ */ u(S, { defaultValue: "settings", children: [
5413
5413
  /* @__PURE__ */ u(S.List, { children: [
@@ -5473,7 +5473,7 @@ const sf = D(({
5473
5473
  async function o(l) {
5474
5474
  await e.changeSchema(a.find((s) => s.id === l));
5475
5475
  }
5476
- return /* @__PURE__ */ r(q, { label: t("interactions.trigger.label"), data: i, value: e.triggerSchema.id, onChange: xe(o) });
5476
+ return /* @__PURE__ */ r(q, { label: t("interactions.trigger.label"), data: i, value: e.triggerSchema.id, onChange: ve(o) });
5477
5477
  }), df = D(({
5478
5478
  model: e
5479
5479
  }) => {
@@ -5491,7 +5491,7 @@ const sf = D(({
5491
5491
  setFalse: i
5492
5492
  }] = De(!1), o = e.model;
5493
5493
  return /* @__PURE__ */ u(F, { children: [
5494
- /* @__PURE__ */ r(ve, { opened: n, onClose: i, title: t("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ u(T, { children: [
5494
+ /* @__PURE__ */ r(we, { opened: n, onClose: i, title: t("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ u(T, { children: [
5495
5495
  /* @__PURE__ */ r(cf, { model: o }),
5496
5496
  /* @__PURE__ */ r(df, { model: o }),
5497
5497
  /* @__PURE__ */ r(js, { title: t("interactions.trigger.payload"), variables: o.triggerSchema.payload })
@@ -5676,7 +5676,7 @@ const vf = {
5676
5676
  viewID: a == null ? void 0 : a.viewID
5677
5677
  });
5678
5678
  const o = (a == null ? void 0 : a.viewID) || "";
5679
- return /* @__PURE__ */ r(q, { defaultValue: o, value: o, onChange: xe((s) => void i({
5679
+ return /* @__PURE__ */ r(q, { defaultValue: o, value: o, onChange: ve((s) => void i({
5680
5680
  viewID: s
5681
5681
  })), label: t("interactions.operation.open_view.view"), data: n.views.options, comboboxProps: {
5682
5682
  withinPortal: !0,
@@ -6763,7 +6763,7 @@ const oi = ee(({
6763
6763
  label: o("common.align.horizontal.right"),
6764
6764
  value: "right"
6765
6765
  }], [l.language]);
6766
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("common.align.horizontal.label"), data: s, value: t, onChange: xe(n), sx: a });
6766
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("common.align.horizontal.label"), data: s, value: t, onChange: ve(n), sx: a });
6767
6767
  }), Ks = ee(({
6768
6768
  label: e,
6769
6769
  value: t,
@@ -6783,7 +6783,7 @@ const oi = ee(({
6783
6783
  label: o("common.align.vertical.bottom"),
6784
6784
  value: "bottom"
6785
6785
  }], [l.language]);
6786
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("common.align.vertical.label"), data: s, value: t, onChange: xe(n), sx: a });
6786
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("common.align.vertical.label"), data: s, value: t, onChange: ve(n), sx: a });
6787
6787
  }), Ys = $n(() => ({
6788
6788
  palette: {
6789
6789
  display: "flex",
@@ -6966,7 +6966,7 @@ const _b = D(({
6966
6966
  };
6967
6967
  return /* @__PURE__ */ u(F, { children: [
6968
6968
  /* @__PURE__ */ r(L, { variant: "outline", onClick: p, children: t(d == null ? void 0 : d.displayName) }),
6969
- /* @__PURE__ */ r(ve, { size: 508, title: t("style.color.interpolation.setup"), opened: h, onClose: g, zIndex: 320, children: h && /* @__PURE__ */ u(T, { "data-testid": "color-interpolation-modal", children: [
6969
+ /* @__PURE__ */ r(we, { size: 508, title: t("style.color.interpolation.setup"), opened: h, onClose: g, zIndex: 320, children: h && /* @__PURE__ */ u(T, { "data-testid": "color-interpolation-modal", children: [
6970
6970
  /* @__PURE__ */ r(q, { label: t("style.color.interpolation.palette.label"), value: s.interpolation, data: _, onChange: b, comboboxProps: {
6971
6971
  withinPortal: !0,
6972
6972
  zIndex: 340
@@ -6997,7 +6997,7 @@ const _b = D(({
6997
6997
  label: o("style.color.type.none"),
6998
6998
  value: "none"
6999
6999
  }], [l.language]);
7000
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("style.color.type.label"), data: s, value: t, onChange: xe(n), sx: a });
7000
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("style.color.type.label"), data: s, value: t, onChange: ve(n), sx: a });
7001
7001
  }), Sb = ee(({
7002
7002
  label: e,
7003
7003
  value: t,
@@ -7026,7 +7026,7 @@ const _b = D(({
7026
7026
  label: o("style.flex.justify_content.space_evenly"),
7027
7027
  value: "space-evenly"
7028
7028
  }], [l.language]);
7029
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("style.flex.justify_content.label"), data: s, value: t, onChange: xe(n), sx: a });
7029
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("style.flex.justify_content.label"), data: s, value: t, onChange: ve(n), sx: a });
7030
7030
  }), Cb = ee(({
7031
7031
  label: e,
7032
7032
  value: t,
@@ -7049,7 +7049,7 @@ const _b = D(({
7049
7049
  label: o("style.flex.align_items.stretch"),
7050
7050
  value: "stretch"
7051
7051
  }], [l.language]);
7052
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("style.flex.align_items.label"), data: s, value: t, onChange: xe(n), sx: a });
7052
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("style.flex.align_items.label"), data: s, value: t, onChange: ve(n), sx: a });
7053
7053
  }), kb = ({
7054
7054
  value: e,
7055
7055
  index: t,
@@ -7189,7 +7189,7 @@ const _b = D(({
7189
7189
  label: l("chart.orientation.vertical"),
7190
7190
  value: "vertical"
7191
7191
  }], [s.language]);
7192
- return /* @__PURE__ */ r(q, { ref: o, label: e ?? l("chart.orientation.label"), data: c, value: t, onChange: xe(n), sx: a, disabled: i });
7192
+ return /* @__PURE__ */ r(q, { ref: o, label: e ?? l("chart.orientation.label"), data: c, value: t, onChange: ve(n), sx: a, disabled: i });
7193
7193
  }), Db = ({
7194
7194
  control: e,
7195
7195
  watch: t
@@ -7458,7 +7458,7 @@ function Eb({
7458
7458
  }, {
7459
7459
  label: "99%",
7460
7460
  value: "percent"
7461
- }], value: e.output, onChange: xe(i), sx: {
7461
+ }], value: e.output, onChange: ve(i), sx: {
7462
7462
  flexGrow: 1
7463
7463
  } }),
7464
7464
  /* @__PURE__ */ r(Ce, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
@@ -7909,7 +7909,7 @@ const li = {
7909
7909
  label: l(`style.size.${d}`),
7910
7910
  value: d
7911
7911
  })), [s.language]);
7912
- return /* @__PURE__ */ r(q, { ref: o, data: c, label: e, value: t, onChange: xe(n), sx: a, disabled: !0 });
7912
+ return /* @__PURE__ */ r(q, { ref: o, data: c, label: e, value: t, onChange: ve(n), sx: a, disabled: !0 });
7913
7913
  }), ay = [{
7914
7914
  label: "Filled",
7915
7915
  value: "filled"
@@ -8083,7 +8083,7 @@ const dy = {
8083
8083
  description: a("chart.series.line.area_style.origin.end.description"),
8084
8084
  value: "end"
8085
8085
  }], [i.language]);
8086
- return /* @__PURE__ */ r(q, { ref: n, label: a("chart.series.line.area_style.origin.label"), data: o, value: e, onChange: xe(t), renderOption: uy, size: "xs" });
8086
+ return /* @__PURE__ */ r(q, { ref: n, label: a("chart.series.line.area_style.origin.label"), data: o, value: e, onChange: ve(t), renderOption: uy, size: "xs" });
8087
8087
  }), lo = ee(({
8088
8088
  value: e,
8089
8089
  onChange: t,
@@ -9560,7 +9560,7 @@ const En = ee(({
9560
9560
  label: o("chart.series.line.type.dotted"),
9561
9561
  value: "dotted"
9562
9562
  }], [l.language]);
9563
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("chart.series.line.type.label"), data: s, value: t, onChange: xe(n), sx: a });
9563
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("chart.series.line.type.label"), data: s, value: t, onChange: ve(n), sx: a });
9564
9564
  });
9565
9565
  function b_({
9566
9566
  control: e,
@@ -9859,7 +9859,7 @@ const v_ = ({
9859
9859
  }, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
9860
9860
  flexGrow: 0
9861
9861
  }, leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
9862
- /* @__PURE__ */ r(ve, { size: 800, title: n("chart.symbol_size.setup.title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
9862
+ /* @__PURE__ */ r(we, { size: 800, title: n("chart.symbol_size.setup.title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
9863
9863
  /* @__PURE__ */ r(P, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
9864
9864
  /* @__PURE__ */ r(v_, { value: l.func_content, onChange: h }),
9865
9865
  /* @__PURE__ */ u(y, { justify: "space-between", children: [
@@ -10208,7 +10208,7 @@ function T_({
10208
10208
  }) => /* @__PURE__ */ r(q, { label: a("chart.series.line.step.label"), data: l, sx: {
10209
10209
  flexGrow: 1,
10210
10210
  maxWidth: "48%"
10211
- }, ...s, value: String(s.value), onChange: xe((c) => {
10211
+ }, ...s, value: String(s.value), onChange: ve((c) => {
10212
10212
  const d = c === "false" ? !1 : c;
10213
10213
  s.onChange(d);
10214
10214
  }) }) }),
@@ -10549,7 +10549,7 @@ const an = ee(({
10549
10549
  label: l("chart.name_text.align.right"),
10550
10550
  value: "right"
10551
10551
  }], [s.language]);
10552
- return /* @__PURE__ */ r(q, { ref: o, label: e ?? l("chart.name_text.align.label"), data: c, value: t, onChange: xe(n), sx: a, disabled: i });
10552
+ return /* @__PURE__ */ r(q, { ref: o, label: e ?? l("chart.name_text.align.label"), data: c, value: t, onChange: ve(n), sx: a, disabled: i });
10553
10553
  }), tc = ee(({
10554
10554
  label: e,
10555
10555
  value: t,
@@ -10566,7 +10566,7 @@ const an = ee(({
10566
10566
  label: o("chart.y_axis.position.right"),
10567
10567
  value: "right"
10568
10568
  }], [l.language]);
10569
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("chart.y_axis.position.label"), data: s, value: t, onChange: xe(n), sx: a });
10569
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("chart.y_axis.position.label"), data: s, value: t, onChange: ve(n), sx: a });
10570
10570
  });
10571
10571
  function E_({
10572
10572
  control: e,
@@ -11640,14 +11640,14 @@ const er = ({
11640
11640
  }) => /* @__PURE__ */ r(A, { ...p, placeholder: n("chart.visual_map.min_value"), size: "xs", onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) }),
11641
11641
  /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
11642
11642
  field: p
11643
- }) => /* @__PURE__ */ r(q, { size: "xs", data: uo.lower, ...p, onChange: xe((g) => p.onChange(g)) }) }),
11643
+ }) => /* @__PURE__ */ r(q, { size: "xs", data: uo.lower, ...p, onChange: ve((g) => p.onChange(g)) }) }),
11644
11644
  /* @__PURE__ */ r(k, { c: "dimmed", size: "sm", sx: {
11645
11645
  userSelect: "none",
11646
11646
  cursor: "default"
11647
11647
  }, children: n("common.value").toLowerCase() }),
11648
11648
  /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.symbol`, control: a, render: ({
11649
11649
  field: p
11650
- }) => /* @__PURE__ */ r(q, { size: "xs", data: uo.upper, ...p, onChange: xe((g) => p.onChange(g)) }) }),
11650
+ }) => /* @__PURE__ */ r(q, { size: "xs", data: uo.upper, ...p, onChange: ve((g) => p.onChange(g)) }) }),
11651
11651
  /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
11652
11652
  field: p
11653
11653
  }) => /* @__PURE__ */ r(A, { ...p, size: "xs", placeholder: n("chart.visual_map.max_value"), onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) })
@@ -16537,7 +16537,7 @@ const cw = ({
16537
16537
  }, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: i, sx: {
16538
16538
  flexGrow: 0
16539
16539
  }, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
16540
- /* @__PURE__ */ r(ve, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
16540
+ /* @__PURE__ */ r(we, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
16541
16541
  /* @__PURE__ */ r(cw, { value: l.func_content, onChange: h }),
16542
16542
  /* @__PURE__ */ u(y, { justify: "space-between", children: [
16543
16543
  /* @__PURE__ */ r(L, { onClick: p, color: "red", leftSection: /* @__PURE__ */ r(mt, { size: 20 }), children: n("common.actions.reset_to_default") }),
@@ -18301,7 +18301,7 @@ const OS = D(ee(({
18301
18301
  const {
18302
18302
  panel: d
18303
18303
  } = Ve(), h = $.useMemo(() => d.queryOptions(a, o), [a, o]);
18304
- return h.length === 0 ? /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(A, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(q, { ref: c, label: e, description: n, data: h, value: a, onChange: xe(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
18304
+ return h.length === 0 ? /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(A, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(q, { ref: c, label: e, description: n, data: h, value: a, onChange: ve(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
18305
18305
  })), qS = [{
18306
18306
  from: 0,
18307
18307
  to: 0
@@ -18354,7 +18354,7 @@ const BS = ee((e, t) => {
18354
18354
  label: i(`viz.table.column.value_type.${s}`),
18355
18355
  value: s
18356
18356
  })), [o.language]);
18357
- return /* @__PURE__ */ r(q, { ref: a, label: i("viz.table.column.value_type.label"), data: l, value: e, onChange: xe(t), maxDropdownHeight: 500, sx: n });
18357
+ return /* @__PURE__ */ r(q, { ref: a, label: i("viz.table.column.value_type.label"), data: l, value: e, onChange: ve(t), maxDropdownHeight: 500, sx: n });
18358
18358
  }), QS = ee(({
18359
18359
  value: e,
18360
18360
  onChange: t
@@ -18377,7 +18377,7 @@ const BS = ee((e, t) => {
18377
18377
  /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: o, sx: {
18378
18378
  flexGrow: 0
18379
18379
  }, children: a("viz.table.column.custom_cell_content") }),
18380
- /* @__PURE__ */ r(ve, { size: 800, title: a("viz.table.column.custom_cell_content"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(T, { children: [
18380
+ /* @__PURE__ */ r(we, { size: 800, title: a("viz.table.column.custom_cell_content"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(T, { children: [
18381
18381
  /* @__PURE__ */ r(y, { justify: "flex-start", children: /* @__PURE__ */ r(Vs, {}) }),
18382
18382
  /* @__PURE__ */ r(V, { sx: {
18383
18383
  position: "relative"
@@ -18913,7 +18913,7 @@ const lC = $.forwardRef(oC), sC = ({
18913
18913
  /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(Wt, { size: 16 }), mt: 24, onClick: o, sx: {
18914
18914
  flexGrow: 0
18915
18915
  }, children: a("viz.text.content.edit") }),
18916
- /* @__PURE__ */ r(ve, { size: 800, title: a("viz.text.content.label"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(T, { children: [
18916
+ /* @__PURE__ */ r(we, { size: 800, title: a("viz.text.content.label"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(T, { children: [
18917
18917
  /* @__PURE__ */ r(sC, { value: s, onChange: c }),
18918
18918
  /* @__PURE__ */ u(y, { justify: "space-between", children: [
18919
18919
  /* @__PURE__ */ r(L, { onClick: p, color: "red", leftSection: /* @__PURE__ */ r(mt, { size: 20 }), children: a("common.actions.reset_to_default") }),
@@ -20521,7 +20521,7 @@ const L2 = ee(({
20521
20521
  label: o("chart.x_axis.position.bottom"),
20522
20522
  value: "bottom"
20523
20523
  }], [l.language]);
20524
- return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("chart.x_axis.position.label"), data: s, value: t, onChange: xe(n), sx: a });
20524
+ return /* @__PURE__ */ r(q, { ref: i, label: e ?? o("chart.x_axis.position.label"), data: s, value: t, onChange: ve(n), sx: a });
20525
20525
  });
20526
20526
  function V2({
20527
20527
  control: e,
@@ -23246,7 +23246,7 @@ const $c = m.model("DBQueryMeta", {
23246
23246
  sql: m.string
23247
23247
  }).views((e) => ({
23248
23248
  get base() {
23249
- return we(e);
23249
+ return xe(e);
23250
23250
  },
23251
23251
  get valid() {
23252
23252
  return !!e.sql;
@@ -23335,7 +23335,7 @@ const $c = m.model("DBQueryMeta", {
23335
23335
  }
23336
23336
  })).actions((e) => ({
23337
23337
  removeSelf() {
23338
- we(e, 2).removeFilter(e);
23338
+ xe(e, 2).removeFilter(e);
23339
23339
  },
23340
23340
  setDimension(t) {
23341
23341
  e.dimension = t ?? "", e.allEmpty && this.removeSelf();
@@ -23357,6 +23357,9 @@ const $c = m.model("DBQueryMeta", {
23357
23357
  stepKeyFormat: m.optional(m.string, "YYYY-MM-DD")
23358
23358
  })
23359
23359
  }).views((e) => ({
23360
+ get query() {
23361
+ return xe(e);
23362
+ },
23360
23363
  get valid() {
23361
23364
  return !!e.id;
23362
23365
  },
@@ -23396,7 +23399,7 @@ const $c = m.model("DBQueryMeta", {
23396
23399
  }
23397
23400
  })).actions((e) => ({
23398
23401
  reset() {
23399
- e.filters.length = 0, e.groupBys.length = 0, e.timeQuery.enabled = !1, e.timeQuery.range_variable = "", e.timeQuery.unit_variable = "";
23402
+ e.filters.length = 0, e.groupBys.length = 0, e.timeQuery.enabled = !1, e.timeQuery.range_variable = "", e.timeQuery.unit_variable = "", "data" in e.query && (e.query.setData([]), e.query.setError(null));
23400
23403
  },
23401
23404
  setID(t) {
23402
23405
  t !== e.id && this.reset(), e.id = t;
@@ -24058,7 +24061,7 @@ const P5 = m.model("FilterDateRangeConfigMeta", {
24058
24061
  }
24059
24062
  },
24060
24063
  get filter() {
24061
- return we(e);
24064
+ return xe(e);
24062
24065
  },
24063
24066
  get dateStringsValue() {
24064
24067
  try {
@@ -24148,7 +24151,7 @@ const P5 = m.model("FilterDateRangeConfigMeta", {
24148
24151
  return Le(e).content;
24149
24152
  },
24150
24153
  get filter() {
24151
- return we(e);
24154
+ return xe(e);
24152
24155
  },
24153
24156
  get usingQuery() {
24154
24157
  return !!e.options_query_id;
@@ -24420,7 +24423,7 @@ const P5 = m.model("FilterDateRangeConfigMeta", {
24420
24423
  return /* @__PURE__ */ r(q, { label: /* @__PURE__ */ u(y, { justify: "space-between", children: [
24421
24424
  /* @__PURE__ */ r(k, { fw: 500, size: "sm", children: n("filter.widget.common.use_query_data_as_options") }),
24422
24425
  e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(sa, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
24423
- ] }), data: o, value: e, onChange: xe(t), allowDeselect: !1, clearable: !0, sx: {
24426
+ ] }), data: o, value: e, onChange: ve(t), allowDeselect: !1, clearable: !0, sx: {
24424
24427
  flexGrow: 1
24425
24428
  }, disabled: l, error: l ? "You need to add a query in Data Settings" : void 0, styles: {
24426
24429
  label: {
@@ -25607,7 +25610,7 @@ const nd = m.model("ViewDivisionConfig", {
25607
25610
  const {
25608
25611
  enabled: t,
25609
25612
  func_content: n
25610
- } = e, a = we(e, 2), i = Le(e);
25613
+ } = e, a = xe(e, 2), i = Le(e);
25611
25614
  if (!t)
25612
25615
  return a.name;
25613
25616
  try {
@@ -25925,7 +25928,7 @@ const sd = m.compose("ViewRenderModel", d3, m.model({
25925
25928
  return this.tabView ? this.tabView.view_id ?? "" : "";
25926
25929
  },
25927
25930
  get contentModel() {
25928
- return we(e, 3);
25931
+ return xe(e, 3);
25929
25932
  },
25930
25933
  get panels() {
25931
25934
  if (e.type !== U.Tabs)
@@ -26271,7 +26274,7 @@ const yd = m.model("FiltersRenderModel", {
26271
26274
  return JSON.stringify(e.values);
26272
26275
  },
26273
26276
  get filter() {
26274
- return we(e);
26277
+ return xe(e);
26275
26278
  },
26276
26279
  get valuesForPayload() {
26277
26280
  const t = {};
@@ -26656,7 +26659,7 @@ const v3 = I5.views((e) => ({
26656
26659
  };
26657
26660
  },
26658
26661
  get queries() {
26659
- return we(e, 2);
26662
+ return xe(e, 2);
26660
26663
  },
26661
26664
  get inUse() {
26662
26665
  return this.queries.isQueryInUse(e.id);
@@ -26796,6 +26799,13 @@ const v3 = I5.views((e) => ({
26796
26799
  }
26797
26800
  })).volatile(() => ({
26798
26801
  controller: new AbortController()
26802
+ })).actions((e) => ({
26803
+ setData(t) {
26804
+ e.data = t;
26805
+ },
26806
+ setError(t) {
26807
+ e.error = t;
26808
+ }
26799
26809
  })).actions((e) => ({
26800
26810
  runSQL: Vt(function* () {
26801
26811
  var t;
@@ -26956,7 +26966,7 @@ const v3 = I5.views((e) => ({
26956
26966
  return this.root.name;
26957
26967
  },
26958
26968
  get contentModel() {
26959
- return we(e, 1);
26969
+ return xe(e, 1);
26960
26970
  },
26961
26971
  get visibleQueryIDSet() {
26962
26972
  const {
@@ -27201,7 +27211,7 @@ const Sd = m.model("LayoutsRenderModel", {
27201
27211
  }
27202
27212
  })), S3 = V5.views((e) => ({
27203
27213
  isADuplicatedKey(t) {
27204
- return !t || t === e.key ? !1 : !!we(e, 2).findByKey(t);
27214
+ return !t || t === e.key ? !1 : !!xe(e, 2).findByKey(t);
27205
27215
  }
27206
27216
  })), Cd = m.model("SQLSnippetsRenderModel", {
27207
27217
  current: m.optional(m.array(S3), [])
@@ -28116,7 +28126,7 @@ const tz = D(() => {
28116
28126
  panel: a
28117
28127
  } = rt();
28118
28128
  return ez(a.description) ? null : /* @__PURE__ */ u(F, { children: [
28119
- /* @__PURE__ */ r(ve, { opened: t, onClose: () => n(!1), title: a.title.show ? a.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r(tz, {}) }),
28129
+ /* @__PURE__ */ r(we, { opened: t, onClose: () => n(!1), title: a.title.show ? a.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r(tz, {}) }),
28120
28130
  /* @__PURE__ */ r(re, { label: e("panel.panel_description_click"), position: "top-start", withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", onClick: () => n((i) => !i), sx: {
28121
28131
  verticalAlign: "baseline",
28122
28132
  cursor: "pointer"
@@ -28559,7 +28569,7 @@ const Od = D(({
28559
28569
  panel: n,
28560
28570
  exitFullScreen: a
28561
28571
  }) {
28562
- return /* @__PURE__ */ r(ve, { opened: !0, fullScreen: !0, onClose: a, title: /* @__PURE__ */ r(L, { color: "blue", size: "xs", onClick: a, leftSection: /* @__PURE__ */ r(wl, { size: 20 }), children: "Exit fullscreen" }), styles: Sz, children: /* @__PURE__ */ r(y, { grow: !0, sx: {
28572
+ return /* @__PURE__ */ r(we, { opened: !0, fullScreen: !0, onClose: a, title: /* @__PURE__ */ r(L, { color: "blue", size: "xs", onClick: a, leftSection: /* @__PURE__ */ r(wl, { size: 20 }), children: "Exit fullscreen" }), styles: Sz, children: /* @__PURE__ */ r(y, { grow: !0, sx: {
28563
28573
  flexGrow: 1,
28564
28574
  flexShrink: 0
28565
28575
  }, children: /* @__PURE__ */ r(Od, { view: t, panel: n }) }) });
@@ -28704,7 +28714,7 @@ const Vz = D(({
28704
28714
  ref: l,
28705
28715
  downloadScreenshot: s
28706
28716
  } = Oi(t);
28707
- return /* @__PURE__ */ r(ve, { size: a.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
28717
+ return /* @__PURE__ */ r(we, { size: a.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
28708
28718
  /* @__PURE__ */ r(V, { children: a.custom_modal_title.value }),
28709
28719
  /* @__PURE__ */ r(Fd, { downloadScreenshot: s })
28710
28720
  ] }), trapFocus: !0, onDragStart: (c) => {
@@ -28829,7 +28839,7 @@ const Oz = D(({
28829
28839
  "> div:not(.mantine-Modal-root)": {
28830
28840
  height: "100%"
28831
28841
  }
28832
- }, children: /* @__PURE__ */ r(ve, { size: n.width, opened: !0, onClose: C.noop, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
28842
+ }, children: /* @__PURE__ */ r(we, { size: n.width, opened: !0, onClose: C.noop, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
28833
28843
  /* @__PURE__ */ r(V, { children: n.custom_modal_title.value }),
28834
28844
  /* @__PURE__ */ r(Fd, { downloadScreenshot: l })
28835
28845
  ] }), trapFocus: !0, onDragStart: (s) => {
@@ -29264,13 +29274,13 @@ const Wz = m.compose("FiltersModel", yd, m.model("FiltersModel", {
29264
29274
  error: m.frozen()
29265
29275
  }).views((e) => ({
29266
29276
  get keywords() {
29267
- return we(e, 1);
29277
+ return xe(e, 1);
29268
29278
  },
29269
29279
  get keywordString() {
29270
29280
  const {
29271
29281
  table_name: t,
29272
29282
  table_schema: n
29273
- } = we(e, 1);
29283
+ } = xe(e, 1);
29274
29284
  return `${n}||${t}`;
29275
29285
  }
29276
29286
  })).views((e) => ({
@@ -29336,7 +29346,7 @@ const Wz = m.compose("FiltersModel", yd, m.model("FiltersModel", {
29336
29346
  table_name: m.optional(m.string, "")
29337
29347
  }).views((e) => ({
29338
29348
  get dataSource() {
29339
- return we(e);
29349
+ return xe(e);
29340
29350
  },
29341
29351
  get key() {
29342
29352
  return this.dataSource.key;
@@ -29630,7 +29640,7 @@ const oT = m.model({
29630
29640
  return e.data !== null;
29631
29641
  },
29632
29642
  get mmInfo() {
29633
- return we(e);
29643
+ return xe(e);
29634
29644
  },
29635
29645
  get metricID() {
29636
29646
  return this.mmInfo.metricID;
@@ -29716,7 +29726,7 @@ const oT = m.model({
29716
29726
  return Object.keys(e.data).length === 0;
29717
29727
  },
29718
29728
  get mmInfo() {
29719
- return we(e);
29729
+ return xe(e);
29720
29730
  }
29721
29731
  })).actions((e) => ({
29722
29732
  setKeyword(t) {
@@ -29775,7 +29785,7 @@ const oT = m.model({
29775
29785
  return this.contentModel.getAdditionalQueryInfo("");
29776
29786
  },
29777
29787
  get dataSource() {
29778
- return we(e);
29788
+ return xe(e);
29779
29789
  },
29780
29790
  get key() {
29781
29791
  return this.dataSource.key;
@@ -30264,7 +30274,7 @@ const vT = m.model("EditorModel", {
30264
30274
  }
30265
30275
  })).actions((e) => ({
30266
30276
  removeSelf() {
30267
- we(e, 2).removeByID(e.id);
30277
+ xe(e, 2).removeByID(e.id);
30268
30278
  }
30269
30279
  })).actions((e) => ({
30270
30280
  moveToView(t, n) {
@@ -30535,14 +30545,14 @@ const TT = m.model({
30535
30545
  return !Fe(le(e, t), le(e.origin, t));
30536
30546
  },
30537
30547
  get context() {
30538
- const t = we(e).context.current;
30548
+ const t = xe(e).context.current;
30539
30549
  return {
30540
30550
  ...e.mock_context.current,
30541
30551
  ...t
30542
30552
  };
30543
30553
  },
30544
30554
  get payloadForSQL() {
30545
- const t = we(e).globalSQLSnippets, n = {
30555
+ const t = xe(e).globalSQLSnippets, n = {
30546
30556
  context: this.context,
30547
30557
  filters: e.filters.valuesForPayload
30548
30558
  };
@@ -30553,7 +30563,7 @@ const TT = m.model({
30553
30563
  };
30554
30564
  },
30555
30565
  get payloadForViz() {
30556
- const t = we(e).context.current;
30566
+ const t = xe(e).context.current;
30557
30567
  return {
30558
30568
  context: {
30559
30569
  ...e.mock_context.current,
@@ -31248,7 +31258,7 @@ const LT = D(({
31248
31258
  mantissa: 0
31249
31259
  }) })
31250
31260
  ] }),
31251
- /* @__PURE__ */ r(ve, { opened: t, onClose: c, title: e("breakpoint.label", {
31261
+ /* @__PURE__ */ r(we, { opened: t, onClose: c, title: e("breakpoint.label", {
31252
31262
  count: 2
31253
31263
  }), withinPortal: !0, zIndex: 320, size: 600, closeOnClickOutside: !1, children: /* @__PURE__ */ r($T, { done: c }) })
31254
31264
  ] });
@@ -31526,7 +31536,7 @@ const GT = D(({
31526
31536
  ...Fo
31527
31537
  // background: 'rgb(231, 245, 255)',
31528
31538
  }, children: e("import.label") }),
31529
- /* @__PURE__ */ r(ve, { opened: t, onClose: a, title: e("import.title"), trapFocus: !0, onDragStart: (h) => {
31539
+ /* @__PURE__ */ r(we, { opened: t, onClose: a, title: e("import.title"), trapFocus: !0, onDragStart: (h) => {
31530
31540
  h.stopPropagation();
31531
31541
  }, withinPortal: !0, zIndex: 320, size: i ? "90vw" : 500, children: /* @__PURE__ */ r(GT, { onSuccess: a, stretchModal: o, shrinkModal: l }) })
31532
31542
  ] });
@@ -32056,7 +32066,7 @@ const w6 = {
32056
32066
  t: n
32057
32067
  } = x();
32058
32068
  return /* @__PURE__ */ r(
32059
- ve,
32069
+ we,
32060
32070
  {
32061
32071
  size: "96vw",
32062
32072
  opened: e,
@@ -33234,7 +33244,7 @@ const s4 = D(() => {
33234
33244
  };
33235
33245
  return /* @__PURE__ */ u(F, { children: [
33236
33246
  /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftSection: /* @__PURE__ */ r(Ra, { size: 14 }), children: n("panel.settings.change_view") }),
33237
- /* @__PURE__ */ r(ve, { opened: l, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ u(T, { sx: {
33247
+ /* @__PURE__ */ r(we, { opened: l, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ u(T, { sx: {
33238
33248
  maxHeight: "calc(100vh - 185px)",
33239
33249
  overflow: "hidden"
33240
33250
  }, children: [
@@ -34053,7 +34063,7 @@ const L4 = D(({
34053
34063
  type: o
34054
34064
  } = e;
34055
34065
  return o === "http" || o === "merico_metric_system" ? null : /* @__PURE__ */ u(F, { children: [
34056
- /* @__PURE__ */ r(ve, { opened: a, onClose: () => i(!1), title: /* @__PURE__ */ u(y, { justify: "space-between", sx: {
34066
+ /* @__PURE__ */ r(we, { opened: a, onClose: () => i(!1), title: /* @__PURE__ */ u(y, { justify: "space-between", sx: {
34057
34067
  flexGrow: 1
34058
34068
  }, children: [
34059
34069
  /* @__PURE__ */ r(k, { size: "sm", fw: 500, children: n("data_source.explorer") }),
@@ -34267,7 +34277,7 @@ WHERE
34267
34277
  t: e
34268
34278
  } = x(), [t, n] = Q(!1);
34269
34279
  return /* @__PURE__ */ u(F, { children: [
34270
- /* @__PURE__ */ r(ve, { opened: t, onClose: () => n(!1), title: e("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r(nu, {}) }),
34280
+ /* @__PURE__ */ r(we, { opened: t, onClose: () => n(!1), title: e("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r(nu, {}) }),
34271
34281
  /* @__PURE__ */ r(L, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
34272
34282
  inner: {
34273
34283
  justifyContent: "flex-start"
@@ -35688,7 +35698,7 @@ const lD = [{
35688
35698
  /* @__PURE__ */ r(te, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: i, sx: {
35689
35699
  flexGrow: 0
35690
35700
  }, children: /* @__PURE__ */ r(An, { size: 14 }) }),
35691
- /* @__PURE__ */ r(ve, { size: 800, title: n("view.component.modal.custom_title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
35701
+ /* @__PURE__ */ r(we, { size: 800, title: n("view.component.modal.custom_title"), opened: a, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ u(T, { children: [
35692
35702
  /* @__PURE__ */ r(J, { mt: 10, label: n("common.enabled"), checked: l.enabled, onChange: (_) => c(_.currentTarget.checked) }),
35693
35703
  /* @__PURE__ */ r(HD, { value: l.func_content, onChange: p, disabled: !l.enabled }),
35694
35704
  /* @__PURE__ */ u(y, { justify: "space-between", children: [
@@ -36006,7 +36016,7 @@ const lD = [{
36006
36016
  }
36007
36017
  }, pI = D(() => {
36008
36018
  const e = de().editor;
36009
- return /* @__PURE__ */ r(ve, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
36019
+ return /* @__PURE__ */ r(we, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
36010
36020
  duration: 0
36011
36021
  }, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
36012
36022
  body: {
@@ -36197,7 +36207,7 @@ const ou = m.model({
36197
36207
  return this.json.content;
36198
36208
  },
36199
36209
  get payloadForSQL() {
36200
- const t = we(e).context.current, n = we(e).globalSQLSnippets, a = {
36210
+ const t = xe(e).context.current, n = xe(e).globalSQLSnippets, a = {
36201
36211
  context: {
36202
36212
  ...e.mock_context.current,
36203
36213
  ...t
@@ -36211,7 +36221,7 @@ const ou = m.model({
36211
36221
  };
36212
36222
  },
36213
36223
  get payloadForViz() {
36214
- const t = we(e).context.current;
36224
+ const t = xe(e).context.current;
36215
36225
  return {
36216
36226
  context: {
36217
36227
  ...e.mock_context.current,