@devtable/dashboard 13.36.5 → 13.36.7

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 Eg = Object.defineProperty;
2
2
  var Lg = (e, t, n) => t in e ? Eg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var U = (e, t, n) => (Lg(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import O, { forwardRef as de, useRef as cr, useEffect as Q, useState as X, useCallback as Fe, useMemo as T, useLayoutEffect as Ag, createElement as ua, useContext as Jn, createContext as $u, memo as Rg } from "react";
5
- import { TextInput as E, Stack as k, Group as y, Button as M, Text as S, Box as R, Overlay as Fr, Modal as He, Tooltip as _e, ActionIcon as se, NativeSelect as el, Select as q, Divider as $, NumberInput as pe, SimpleGrid as Dr, Menu as oe, UnstyledButton as Ou, Flex as sn, ColorInput as pr, Center as mr, Badge as dr, CloseButton as ur, useMantineTheme as Yi, Popover as tn, ColorSwatch as Vs, ColorPicker as od, HoverCard as Xe, Checkbox as he, Switch as dt, Table as ot, MultiSelect as oi, Paper as Pg, Code as ld, Tabs as _, LoadingOverlay as Vr, Alert as Xi, createStyles as pi, Collapse as Ji, CheckIcon as $g, MANTINE_SIZES as Og, SegmentedControl as Fu, Anchor as Ns, Pagination as tl, Textarea as Vu, Mark as Nu, Slider as Fg, List as Qt, Affix as Vg, Header as Ng, FileInput as qg, ThemeIcon as Ka, Navbar as Bn, JsonInput as qu, Drawer as Bg, Radio as cd, Accordion as ys, Skeleton as dd, NavLink as yo, AppShell as Bu } from "@mantine/core";
5
+ import { TextInput as E, Stack as C, Group as y, Button as M, Text as S, Box as R, Overlay as Fr, Modal as He, Tooltip as _e, ActionIcon as se, NativeSelect as el, Select as q, Divider as $, NumberInput as pe, SimpleGrid as Dr, Menu as oe, UnstyledButton as Ou, Flex as sn, ColorInput as pr, Center as mr, Badge as dr, CloseButton as ur, useMantineTheme as Yi, Popover as tn, ColorSwatch as Vs, ColorPicker as od, HoverCard as Xe, Checkbox as he, Switch as dt, Table as ot, MultiSelect as oi, Paper as Pg, Code as ld, Tabs as _, LoadingOverlay as Vr, Alert as Xi, createStyles as pi, Collapse as Ji, CheckIcon as $g, MANTINE_SIZES as Og, SegmentedControl as Fu, Anchor as Ns, Pagination as tl, Textarea as Vu, Mark as Nu, Slider as Fg, List as Qt, Affix as Vg, Header as Ng, FileInput as qg, ThemeIcon as Ka, Navbar as Bn, JsonInput as qu, Drawer as Bg, Radio as cd, Accordion as ys, Skeleton as dd, NavLink as yo, AppShell as Bu } from "@mantine/core";
6
6
  import { useModals as Pn, ModalsProvider as Wu } from "@mantine/modals";
7
7
  import { useBoolean as ht, useCreation as bn, useAsyncEffect as Zi, useRequest as Er, useLatest as ud, usePrevious as Wg, useWhyDidYouUpdate as Hu } from "ahooks";
8
8
  import { toJS as $n, observable as Gu, runInAction as Oi, reaction as Mt, makeAutoObservable as es } from "mobx";
@@ -13,7 +13,7 @@ import Qg from "crypto-js";
13
13
  import * as Qu from "d3-array";
14
14
  import { quantile as Ms } from "d3-array";
15
15
  import V from "dayjs";
16
- import C, { cloneDeepWith as Uu, unset as Ug, get as ge, isObject as Ku, set as nl, omit as Lr, isFunction as Kg, orderBy as Yg, last as Yu, defaults as Ee, minBy as Xg, maxBy as Jg, cloneDeep as pt, values as Xu, template as rl, throttle as Zg, range as eb, defaultsDeep as xt, isEqual as Dt, keyBy as tb, isEmpty as Ju, isNumber as nb, findLastIndex as rb, isString as Zu, pick as eh } from "lodash";
16
+ import k, { cloneDeepWith as Uu, unset as Ug, get as ge, isObject as Ku, set as nl, omit as Lr, isFunction as Kg, orderBy as Yg, last as Yu, defaults as Ee, minBy as Xg, maxBy as Jg, cloneDeep as pt, values as Xu, template as rl, throttle as Zg, range as eb, defaultsDeep as xt, isEqual as Dt, keyBy as tb, isEmpty as Ju, isNumber as nb, findLastIndex as rb, isString as Zu, pick as eh } from "lodash";
17
17
  import * as ti from "mathjs";
18
18
  import qs from "numbro";
19
19
  import * as ib from "popmotion";
@@ -740,7 +740,7 @@ const vn = {
740
740
  CryptoJS: Qg,
741
741
  d3Array: Qu,
742
742
  dayjs: V,
743
- lodash: C,
743
+ lodash: k,
744
744
  numbro: qs,
745
745
  mathjs: ti,
746
746
  faker: Hg,
@@ -888,7 +888,7 @@ class Bv {
888
888
  return En(c).then((d) => o ? d : d.data).catch((d) => {
889
889
  if (En.isCancel(d))
890
890
  return Promise.reject(d);
891
- const u = C.get(d, "response.data.detail.message", d.message);
891
+ const u = k.get(d, "response.data.detail.message", d.message);
892
892
  return Promise.reject(new Error(u));
893
893
  });
894
894
  };
@@ -1080,15 +1080,15 @@ function Jv(e) {
1080
1080
  function Zv(e, t) {
1081
1081
  switch (t.type) {
1082
1082
  case "sum":
1083
- return C.sum(e);
1083
+ return k.sum(e);
1084
1084
  case "mean":
1085
- return C.mean(e);
1085
+ return k.mean(e);
1086
1086
  case "median":
1087
1087
  return Jv(e);
1088
1088
  case "max":
1089
- return C.max(e);
1089
+ return k.max(e);
1090
1090
  case "min":
1091
- return C.min(e);
1091
+ return k.min(e);
1092
1092
  case "quantile":
1093
1093
  return Ms(e, t.config.p);
1094
1094
  case "CV":
@@ -1119,7 +1119,7 @@ function t_(e, t, n) {
1119
1119
  const i = yn(e, t), {
1120
1120
  method: s
1121
1121
  } = n.config;
1122
- return C[s](i);
1122
+ return k[s](i);
1123
1123
  } catch (i) {
1124
1124
  return console.error(i), n.fallback;
1125
1125
  }
@@ -5029,7 +5029,7 @@ const ci = de(({
5029
5029
  });
5030
5030
  }
5031
5031
  }, [s]), m = l !== e, f = typeof l == "string" && l.length === 0;
5032
- return /* @__PURE__ */ r.jsxs(k, { spacing: 4, sx: {
5032
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 4, sx: {
5033
5033
  height: "100%",
5034
5034
  ".editableArea--multi-line": {
5035
5035
  backgroundColor: "rgba(255,183,78, 0.1)"
@@ -5217,7 +5217,7 @@ function tw(e, t) {
5217
5217
  }), n;
5218
5218
  }
5219
5219
  function nw(e) {
5220
- const t = C.get(e, Wt.color, []), n = C.get(e, Wt.min_val, ""), i = C.get(e, Wt.min_var, ""), s = C.get(e, Wt.max_val, ""), a = C.get(e, Wt.max_var, ""), o = C.get(e, Wt.variable, ""), l = t.length === 0 && [n, i, s, a, o].every((c) => c === "");
5220
+ const t = k.get(e, Wt.color, []), n = k.get(e, Wt.min_val, ""), i = k.get(e, Wt.min_var, ""), s = k.get(e, Wt.max_val, ""), a = k.get(e, Wt.max_var, ""), o = k.get(e, Wt.variable, ""), l = t.length === 0 && [n, i, s, a, o].every((c) => c === "");
5221
5221
  return {
5222
5222
  colors: t,
5223
5223
  min_val: n,
@@ -5443,7 +5443,7 @@ function Tp() {
5443
5443
  }
5444
5444
  const ow = () => Tp(), lw = () => Tp(), cw = {
5445
5445
  fullScreenPanelID: "",
5446
- setFullScreenPanelID: C.noop
5446
+ setFullScreenPanelID: k.noop
5447
5447
  }, zp = O.createContext(cw);
5448
5448
  function dw() {
5449
5449
  const e = O.useContext(zp);
@@ -8244,7 +8244,7 @@ const rf = {
8244
8244
  }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: s, sx: {
8245
8245
  flexGrow: 0
8246
8246
  }, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
8247
- /* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
8247
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
8248
8248
  /* @__PURE__ */ r.jsx($, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
8249
8249
  /* @__PURE__ */ r.jsx(lS, { value: o.value, onChange: u }),
8250
8250
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
@@ -8315,7 +8315,7 @@ function su(e, t, n) {
8315
8315
  const s = new Function(`return ${i}`)()({
8316
8316
  variables: t
8317
8317
  }, {
8318
- lodash: C,
8318
+ lodash: k,
8319
8319
  interpolate: Nr
8320
8320
  });
8321
8321
  return Number(s);
@@ -8568,7 +8568,7 @@ const mS = pS(), fS = ({
8568
8568
  } = f.operation, w = py(a, b, I);
8569
8569
  t(w.map((z) => z.value));
8570
8570
  };
8571
- return /* @__PURE__ */ r.jsxs(k, { ref: i, children: [
8571
+ return /* @__PURE__ */ r.jsxs(C, { ref: i, children: [
8572
8572
  /* @__PURE__ */ r.jsx(fS, { colors: e, applyPalette: c, zIndex: n }),
8573
8573
  /* @__PURE__ */ r.jsx(Dh, { onDragEnd: m, children: a.map((f, b) => /* @__PURE__ */ r.jsx(xS, { color: f, handleChange: d(b), handleRemove: () => l(b), index: b }, f.id)) }),
8574
8574
  /* @__PURE__ */ r.jsxs(sn, { gap: "sm", justify: "flex-start", align: "center", direction: "row", wrap: "nowrap", children: [
@@ -8763,7 +8763,7 @@ const mS = pS(), fS = ({
8763
8763
  Q(() => {
8764
8764
  c == null || c.commands.setContent(e);
8765
8765
  }, [e, c]);
8766
- const d = T(() => new DOMParser().parseFromString(e, "text/html"), [e]), u = T(() => Vj(d, i, s), [d, i, s]), h = T(() => tw(d, s), [d, s]), p = T(() => C.defaultsDeep({}, {
8766
+ const d = T(() => new DOMParser().parseFromString(e, "text/html"), [e]), u = T(() => Vj(d, i, s), [d, i, s]), h = T(() => tw(d, s), [d, s]), p = T(() => k.defaultsDeep({}, {
8767
8767
  content: {
8768
8768
  ...pl,
8769
8769
  ...u,
@@ -8865,7 +8865,7 @@ const au = de((e, t) => {
8865
8865
  };
8866
8866
  return /* @__PURE__ */ r.jsxs(tn, { opened: i, onChange: s, shadow: "md", withinPortal: !0, zIndex: 340, withArrow: !0, children: [
8867
8867
  /* @__PURE__ */ r.jsx(tn.Target, { children: /* @__PURE__ */ r.jsx(fe.Control, { onClick: o, children: /* @__PURE__ */ r.jsx(Vs, { color: c, size: 14 }) }) }),
8868
- /* @__PURE__ */ r.jsx(tn.Dropdown, { children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
8868
+ /* @__PURE__ */ r.jsx(tn.Dropdown, { children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
8869
8869
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
8870
8870
  /* @__PURE__ */ r.jsx(pr, { value: c, onChangeEnd: (p) => u(p, !1), size: "xs", withPicker: !1, dropdownZIndex: 340, styles: {
8871
8871
  root: {
@@ -8974,13 +8974,13 @@ const hr = de(({
8974
8974
  Q(() => {
8975
8975
  s && m();
8976
8976
  }, [s, f]);
8977
- const b = T(() => C.defaultsDeep({}, {
8977
+ const b = T(() => k.defaultsDeep({}, {
8978
8978
  content: {
8979
8979
  ...pl,
8980
8980
  ...wS
8981
8981
  }
8982
8982
  }, n), [n]);
8983
- return p ? /* @__PURE__ */ r.jsxs(k, { spacing: 4, sx: {
8983
+ return p ? /* @__PURE__ */ r.jsxs(C, { spacing: 4, sx: {
8984
8984
  flexGrow: 1,
8985
8985
  position: "relative"
8986
8986
  }, children: [
@@ -9579,7 +9579,7 @@ class lc {
9579
9579
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
9580
9580
  }
9581
9581
  }
9582
- const ff = "13.36.5", XS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9582
+ const ff = "13.36.7", XS = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9583
9583
  __proto__: null,
9584
9584
  version: ff
9585
9585
  }, Symbol.toStringTag, { value: "Module" }));
@@ -9867,7 +9867,7 @@ function n1({
9867
9867
  });
9868
9868
  return Q(() => {
9869
9869
  o(i);
9870
- }, [t]), t ? /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
9870
+ }, [t]), t ? /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
9871
9871
  /* @__PURE__ */ r.jsx(S, { children: "X Axis" }),
9872
9872
  /* @__PURE__ */ r.jsxs(y, { position: "apart", grow: !0, p: "md", sx: {
9873
9873
  position: "relative",
@@ -10075,7 +10075,7 @@ const wn = de(({
10075
10075
  /* @__PURE__ */ r.jsx(M, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: o, sx: {
10076
10076
  flexGrow: 0
10077
10077
  }, children: b }),
10078
- /* @__PURE__ */ r.jsx(He, { size: 800, title: b, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
10078
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: b, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(C, { children: [
10079
10079
  /* @__PURE__ */ r.jsx(he, { mt: 10, label: s("common.enabled"), checked: c.enabled, onChange: (I) => u(I.currentTarget.checked) }),
10080
10080
  /* @__PURE__ */ r.jsx(c1, { value: c.func_content, onChange: m, disabled: !c.enabled }),
10081
10081
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
@@ -10094,7 +10094,7 @@ const wn = de(({
10094
10094
  y_axis_slider: !1
10095
10095
  };
10096
10096
  function xf() {
10097
- return C.cloneDeep(Br);
10097
+ return k.cloneDeep(Br);
10098
10098
  }
10099
10099
  const d1 = {
10100
10100
  boxplot: {
@@ -10172,8 +10172,8 @@ const sa = de(({
10172
10172
  t: s,
10173
10173
  i18n: a
10174
10174
  } = v(), o = (c) => (d) => {
10175
- const u = C.cloneDeep(t);
10176
- C.set(u, c, d), n(u);
10175
+ const u = k.cloneDeep(t);
10176
+ k.set(u, c, d), n(u);
10177
10177
  }, l = T(() => [{
10178
10178
  label: s("chart.axis.overflow.truncate"),
10179
10179
  value: "truncate"
@@ -10184,7 +10184,7 @@ const sa = de(({
10184
10184
  label: s("chart.axis.overflow.break_word"),
10185
10185
  value: "breakAll"
10186
10186
  }], [a.language]);
10187
- return /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
10187
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 0, children: [
10188
10188
  e && /* @__PURE__ */ r.jsx($, { mb: -5, mt: 5, variant: "dotted", label: e, labelPosition: "right", labelProps: {
10189
10189
  color: "dimmed"
10190
10190
  } }),
@@ -10218,7 +10218,7 @@ const sa = de(({
10218
10218
  in_tooltip: o
10219
10219
  });
10220
10220
  };
10221
- return /* @__PURE__ */ r.jsxs(k, { ref: n, spacing: 0, children: [
10221
+ return /* @__PURE__ */ r.jsxs(C, { ref: n, spacing: 0, children: [
10222
10222
  /* @__PURE__ */ r.jsx(sa, { sectionTitle: i("chart.axis.overflow.section_title.on_axis"), value: e.on_axis, onChange: s }),
10223
10223
  /* @__PURE__ */ r.jsx(sa, { sectionTitle: i("chart.axis.overflow.section_title.in_tooltip"), value: e.in_tooltip, onChange: a })
10224
10224
  ] });
@@ -10302,7 +10302,7 @@ function Wr(e, t) {
10302
10302
  queryID: n,
10303
10303
  columnKey: i
10304
10304
  } = B(t);
10305
- return C.keyBy(e[n], i);
10305
+ return k.keyBy(e[n], i);
10306
10306
  }, [e, t]);
10307
10307
  }
10308
10308
  const Yt = (e, t) => {
@@ -10366,7 +10366,7 @@ class uc {
10366
10366
  await this.attachmentStorage.deleteItem(t);
10367
10367
  }
10368
10368
  async list() {
10369
- const t = await this.attachmentStorage.getItem(null), n = C.orderBy(Xu(t), (i) => f1[i.schemaRef] ?? 10);
10369
+ const t = await this.attachmentStorage.getItem(null), n = k.orderBy(Xu(t), (i) => f1[i.schemaRef] ?? 10);
10370
10370
  return Promise.all(n.map((i) => this.constructInstance(new ei(this.attachmentStorage, i.id))));
10371
10371
  }
10372
10372
  }
@@ -10409,7 +10409,7 @@ function g1(e) {
10409
10409
  ...n,
10410
10410
  urlTemplate: c.currentTarget.value
10411
10411
  });
10412
- return /* @__PURE__ */ r.jsxs(k, { children: [
10412
+ return /* @__PURE__ */ r.jsxs(C, { children: [
10413
10413
  /* @__PURE__ */ r.jsx(E, { label: t("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: l, onBlur: a }),
10414
10414
  /* @__PURE__ */ r.jsx(dt, { label: t("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => o(c.currentTarget.checked) })
10415
10415
  ] });
@@ -10608,7 +10608,7 @@ const L1 = {
10608
10608
  label: c.label,
10609
10609
  value: c.key
10610
10610
  })), [n.filters.values]);
10611
- return /* @__PURE__ */ r.jsx(k, { spacing: 10, children: /* @__PURE__ */ r.jsx(oi, { label: t("interactions.operation.clear_filter_values.select_filter"), data: l, value: a, onChange: o }) });
10611
+ return /* @__PURE__ */ r.jsx(C, { spacing: 10, children: /* @__PURE__ */ r.jsx(oi, { label: t("interactions.operation.clear_filter_values.select_filter"), data: l, value: a, onChange: o }) });
10612
10612
  });
10613
10613
  async function P1(e, t) {
10614
10614
  const i = (await t.operationData.getItem("config")).filter_keys;
@@ -10846,7 +10846,7 @@ const Xt = ({
10846
10846
  };
10847
10847
  return /* @__PURE__ */ r.jsxs(Pg, { withBorder: !0, p: "sm", children: [
10848
10848
  /* @__PURE__ */ r.jsx(S, { size: "xs", color: "dimmed", mb: "sm", children: n }),
10849
- /* @__PURE__ */ r.jsx(k, { style: {
10849
+ /* @__PURE__ */ r.jsx(C, { style: {
10850
10850
  maxHeight: "500px"
10851
10851
  }, children: i.map((o) => /* @__PURE__ */ r.jsxs(S, { size: "sm", children: [
10852
10852
  /* @__PURE__ */ r.jsxs(ld, { color: "teal", children: [
@@ -10936,7 +10936,7 @@ const q1 = D(({
10936
10936
  await d.configOperation(o, c);
10937
10937
  }, [o, d]), N1(d) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
10938
10938
  /* @__PURE__ */ r.jsx(q1, { model: d, onClick: i }),
10939
- /* @__PURE__ */ r.jsx(He, { size: 600, opened: n, onClose: s, title: t("interactions.operation.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { children: [
10939
+ /* @__PURE__ */ r.jsx(He, { size: 600, opened: n, onClose: s, title: t("interactions.operation.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(C, { children: [
10940
10940
  /* @__PURE__ */ r.jsx(W1, { model: d }),
10941
10941
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "settings", children: [
10942
10942
  /* @__PURE__ */ r.jsxs(_.List, { children: [
@@ -11020,7 +11020,7 @@ const K1 = D(({
11020
11020
  setFalse: s
11021
11021
  }] = ht(!1), a = e.model;
11022
11022
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
11023
- /* @__PURE__ */ r.jsx(He, { opened: n, onClose: s, title: t("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { children: [
11023
+ /* @__PURE__ */ r.jsx(He, { opened: n, onClose: s, title: t("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(C, { children: [
11024
11024
  /* @__PURE__ */ r.jsx(Y1, { model: a }),
11025
11025
  /* @__PURE__ */ r.jsx(X1, { model: a }),
11026
11026
  /* @__PURE__ */ r.jsx(bf, { title: t("interactions.trigger.payload"), variables: a.triggerSchema.payload })
@@ -11083,7 +11083,7 @@ const ek = D(({
11083
11083
  return 0;
11084
11084
  }
11085
11085
  });
11086
- return /* @__PURE__ */ r.jsxs(k, { children: [
11086
+ return /* @__PURE__ */ r.jsxs(C, { children: [
11087
11087
  /* @__PURE__ */ r.jsx(Vr, { visible: p }),
11088
11088
  h === 0 && /* @__PURE__ */ r.jsx(Xi, { icon: /* @__PURE__ */ r.jsx(Bi, { size: 16 }), title: t("interactions.unavailable"), color: "gray", children: t("interactions.unavailable_reason") }),
11089
11089
  c.map((m) => /* @__PURE__ */ r.jsx(ek, { onRemove: u, instance: a, sampleData: o, variables: l, item: m, manager: e.interactionManager }, m.id)),
@@ -11137,7 +11137,7 @@ const ek = D(({
11137
11137
  z: 3
11138
11138
  };
11139
11139
  function ik(e) {
11140
- return C.defaultsDeep({}, e, yf);
11140
+ return k.defaultsDeep({}, e, yf);
11141
11141
  }
11142
11142
  const sk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11143
11143
  __proto__: null,
@@ -11161,7 +11161,7 @@ const sk = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11161
11161
  }
11162
11162
  };
11163
11163
  function ak(e) {
11164
- return C.defaultsDeep({}, e, vf);
11164
+ return k.defaultsDeep({}, e, vf);
11165
11165
  }
11166
11166
  const ok = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11167
11167
  __proto__: null,
@@ -11172,7 +11172,7 @@ const ok = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11172
11172
  appendToBody: !0
11173
11173
  };
11174
11174
  function lk(e) {
11175
- return C.defaultsDeep({}, e, _f);
11175
+ return k.defaultsDeep({}, e, _f);
11176
11176
  }
11177
11177
  const ck = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11178
11178
  __proto__: null,
@@ -11187,7 +11187,7 @@ function dk(e, t) {
11187
11187
  const n = [], i = [];
11188
11188
  return {
11189
11189
  boxplotData: Object.entries(e).map(([a, o]) => {
11190
- const l = o.map((w) => w[t]).sort((w, z) => w - z), c = Ms(l, 0.25) ?? 0, d = Ms(l, 0.5) ?? 0, u = Ms(l, 0.75) ?? 0, h = u - c, p = c - 1.5 * h, m = u + 1.5 * h, f = Math.max(l[0], p), b = Math.min(C.last(l) ?? 0, m);
11190
+ const l = o.map((w) => w[t]).sort((w, z) => w - z), c = Ms(l, 0.25) ?? 0, d = Ms(l, 0.5) ?? 0, u = Ms(l, 0.75) ?? 0, h = u - c, p = c - 1.5 * h, m = u + 1.5 * h, f = Math.max(l[0], p), b = Math.min(k.last(l) ?? 0, m);
11191
11191
  return o.filter((w) => {
11192
11192
  const z = w[t];
11193
11193
  return z < f || z > b;
@@ -11217,7 +11217,7 @@ function uk(e, t) {
11217
11217
  const s = B(n.data_key), a = B(i.data_key);
11218
11218
  if (s.queryID !== a.queryID)
11219
11219
  throw new Error("Please use the same query for X & Y axis");
11220
- const o = C.groupBy(t[s.queryID], s.columnKey), {
11220
+ const o = k.groupBy(t[s.queryID], s.columnKey), {
11221
11221
  boxplotData: l,
11222
11222
  outliersData: c,
11223
11223
  scatterData: d
@@ -11512,7 +11512,7 @@ function _k(e, t) {
11512
11512
  const jk = (e, t) => {
11513
11513
  const n = Bo.map((a) => `
11514
11514
  <tr>
11515
- <th style="text-align: right; padding: 0 1em;">${C.capitalize(a)}</th>
11515
+ <th style="text-align: right; padding: 0 1em;">${k.capitalize(a)}</th>
11516
11516
  <td style="text-align: left; padding: 0 1em;">
11517
11517
  ${be(t[a], e.y_axis.label_formatter)}
11518
11518
  </td>
@@ -11634,7 +11634,7 @@ function Tk({
11634
11634
  if (e <= 200)
11635
11635
  return 100;
11636
11636
  const n = ti.floor(ti.log10(e)), i = Math.pow(10, n), s = Math.pow(10, n - 1);
11637
- return e / i <= 2 ? C.round(e, -1 * (n - 1)) - s : C.round(e, -1 * n) - i;
11637
+ return e / i <= 2 ? k.round(e, -1 * (n - 1)) - s : k.round(e, -1 * n) - i;
11638
11638
  }
11639
11639
  function zk(e) {
11640
11640
  return {
@@ -11655,7 +11655,7 @@ function Dk({
11655
11655
  reference_lines: o
11656
11656
  } = e, l = uk(e, t), c = dn(s.axisLabel.overflow.on_axis), d = zk(i), u = _k(e, l).map((h) => ({
11657
11657
  ...h,
11658
- name: C.get(d, h.name, h.name)
11658
+ name: k.get(d, h.name, h.name)
11659
11659
  }));
11660
11660
  return {
11661
11661
  dataZoom: Ea(e.dataZoom, "filter"),
@@ -11713,7 +11713,7 @@ function Mk({
11713
11713
  vizManager: e.vizManager,
11714
11714
  instance: t
11715
11715
  }), u = Yt(d.triggerManager, gf.id), h = Wr(a, c.x_axis.data_key), p = Fe((b) => {
11716
- const I = C.get(h, b.name, {
11716
+ const I = k.get(h, b.name, {
11717
11717
  error: "rowData is not found"
11718
11718
  });
11719
11719
  u.forEach((w) => {
@@ -11949,7 +11949,7 @@ function Rk(e) {
11949
11949
  top: "0.5em",
11950
11950
  right: "0.8em"
11951
11951
  } }) }),
11952
- /* @__PURE__ */ r.jsxs(k, { children: [
11952
+ /* @__PURE__ */ r.jsxs(C, { children: [
11953
11953
  /* @__PURE__ */ r.jsx(E, { size: "xs", label: t("style.color.interpolation.palette.mapping.value_input_label"), value: l, onChange: (P) => {
11954
11954
  const ee = P.currentTarget.value;
11955
11955
  c(ee);
@@ -12014,7 +12014,7 @@ const Pk = D(({
12014
12014
  };
12015
12015
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
12016
12016
  /* @__PURE__ */ r.jsx(M, { variant: "outline", onClick: h, children: t(d == null ? void 0 : d.displayName) }),
12017
- /* @__PURE__ */ r.jsx(He, { size: 508, title: t("style.color.interpolation.setup"), opened: u, onClose: p, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(k, { "data-testid": "color-interpolation-modal", children: [
12017
+ /* @__PURE__ */ r.jsx(He, { size: 508, title: t("style.color.interpolation.setup"), opened: u, onClose: p, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(C, { "data-testid": "color-interpolation-modal", children: [
12018
12018
  /* @__PURE__ */ r.jsx(q, { label: t("style.color.interpolation.palette.label"), value: l.interpolation, data: m, onChange: f, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
12019
12019
  /* @__PURE__ */ r.jsx($k, { steps: l.steps, interpolation: d, onChange: I }),
12020
12020
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
@@ -12159,7 +12159,7 @@ const Pk = D(({
12159
12159
  } = d, m = t(n), f = u.map((P, ee) => ({
12160
12160
  ...P,
12161
12161
  ...m[ee]
12162
- })), b = ((L = C.last(f)) == null ? void 0 : L.id) ?? null, [I, w] = X(b), z = (P) => {
12162
+ })), b = ((L = k.last(f)) == null ? void 0 : L.id) ?? null, [I, w] = X(b), z = (P) => {
12163
12163
  P !== "add" && w(P);
12164
12164
  };
12165
12165
  Q(() => {
@@ -12171,7 +12171,7 @@ const Pk = D(({
12171
12171
  };
12172
12172
  return /* @__PURE__ */ r.jsxs(_, { value: I, onTabChange: z, styles: Wk, children: [
12173
12173
  /* @__PURE__ */ r.jsx(Bk, { fieldArray: d, add: A, addButtonText: a, renderTabName: l, controlledFields: f }),
12174
- f.map((P, ee) => /* @__PURE__ */ r.jsx(_.Panel, { value: P.id, children: /* @__PURE__ */ r.jsxs(k, { children: [
12174
+ f.map((P, ee) => /* @__PURE__ */ r.jsx(_.Panel, { value: P.id, children: /* @__PURE__ */ r.jsxs(C, { children: [
12175
12175
  s({
12176
12176
  field: P,
12177
12177
  index: ee
@@ -12199,7 +12199,7 @@ const Pk = D(({
12199
12199
  [a]: o
12200
12200
  });
12201
12201
  };
12202
- return /* @__PURE__ */ r.jsxs(k, { children: [
12202
+ return /* @__PURE__ */ r.jsxs(C, { children: [
12203
12203
  /* @__PURE__ */ r.jsx($, { variant: "dashed", label: i("chart.zooming.scroll.label"), labelPosition: "center" }),
12204
12204
  /* @__PURE__ */ r.jsxs(y, { children: [
12205
12205
  /* @__PURE__ */ r.jsx(R, { sx: {
@@ -12250,7 +12250,7 @@ const Pk = D(({
12250
12250
  };
12251
12251
  a === "horizontal" ? (l.top = "0", l.left = "auto", l.right = "10", l.bottom = "auto") : (l.top = "10", l.left = "auto", l.right = "0", l.bottom = "auto"), o(l);
12252
12252
  };
12253
- return /* @__PURE__ */ r.jsxs(k, { children: [
12253
+ return /* @__PURE__ */ r.jsxs(C, { children: [
12254
12254
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, mt: 20, children: /* @__PURE__ */ r.jsx(g, { name: "legend.show", control: e, render: ({
12255
12255
  field: a
12256
12256
  }) => /* @__PURE__ */ r.jsx(dt, { label: n("chart.legend.show_legend"), sx: {
@@ -12273,7 +12273,7 @@ function Gk({
12273
12273
  const {
12274
12274
  t: i
12275
12275
  } = v();
12276
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: "md", pr: 40, sx: {
12276
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: "md", pr: 40, sx: {
12277
12277
  border: "1px solid #eee",
12278
12278
  position: "relative"
12279
12279
  }, children: [
@@ -12329,7 +12329,7 @@ const Uk = ({
12329
12329
  const {
12330
12330
  t: n
12331
12331
  } = v();
12332
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
12332
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
12333
12333
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
12334
12334
  field: i
12335
12335
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -12373,7 +12373,7 @@ function Yk({
12373
12373
  control: e,
12374
12374
  watch: t
12375
12375
  }) {
12376
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(Kk, { control: e, watch: t }) });
12376
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(Kk, { control: e, watch: t }) });
12377
12377
  }
12378
12378
  const er = de(({
12379
12379
  label: e,
@@ -12398,7 +12398,7 @@ const er = de(({
12398
12398
  const {
12399
12399
  t: n
12400
12400
  } = v();
12401
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
12401
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
12402
12402
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
12403
12403
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.name", control: e, render: ({
12404
12404
  field: i
@@ -12496,7 +12496,7 @@ function eC({
12496
12496
  };
12497
12497
  t(u);
12498
12498
  };
12499
- return /* @__PURE__ */ r.jsxs(k, { ref: n, children: [
12499
+ return /* @__PURE__ */ r.jsxs(C, { ref: n, children: [
12500
12500
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
12501
12501
  /* @__PURE__ */ r.jsx(q, { label: i("numbro.format.label"), data: [{
12502
12502
  label: "1234",
@@ -12507,13 +12507,13 @@ function eC({
12507
12507
  }], value: e.output, onChange: s, sx: {
12508
12508
  flexGrow: 1
12509
12509
  } }),
12510
- /* @__PURE__ */ r.jsx(dt, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
12510
+ /* @__PURE__ */ r.jsx(dt, { label: /* @__PURE__ */ r.jsxs(C, { spacing: 0, children: [
12511
12511
  /* @__PURE__ */ r.jsx(S, { children: i("numbro.format.absolute") }),
12512
12512
  /* @__PURE__ */ r.jsx(S, { size: 12, color: "gray", children: i("numbro.format.absolute_description") })
12513
12513
  ] }), checked: e.absolute, onChange: c, sx: {
12514
12514
  flexGrow: 1
12515
12515
  }, styles: mo }),
12516
- /* @__PURE__ */ r.jsx(dt, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
12516
+ /* @__PURE__ */ r.jsx(dt, { label: /* @__PURE__ */ r.jsxs(C, { spacing: 0, children: [
12517
12517
  /* @__PURE__ */ r.jsx(S, { children: i("numbro.format.abbreviation") }),
12518
12518
  /* @__PURE__ */ r.jsx(S, { size: 12, color: "gray", children: i("numbro.format.abbreviation_description") })
12519
12519
  ] }), checked: e.average, onChange: l, disabled: e.output !== "number", sx: {
@@ -12522,7 +12522,7 @@ function eC({
12522
12522
  ] }),
12523
12523
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
12524
12524
  /* @__PURE__ */ r.jsx(pe, { label: i("numbro.format.mantissa"), defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: a }),
12525
- /* @__PURE__ */ r.jsx(dt, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
12525
+ /* @__PURE__ */ r.jsx(dt, { label: /* @__PURE__ */ r.jsxs(C, { spacing: 0, children: [
12526
12526
  /* @__PURE__ */ r.jsx(S, { children: i("numbro.format.trim_mantissa") }),
12527
12527
  /* @__PURE__ */ r.jsx(S, { size: 12, color: "gray", children: i("numbro.format.trim_mantissa_description") })
12528
12528
  ] }), checked: e.trimMantissa, onChange: o, disabled: e.mantissa === 0, styles: mo }),
@@ -12551,7 +12551,7 @@ const un = O.forwardRef(eC), tC = ({
12551
12551
  flex: 1
12552
12552
  }, ...i }) })
12553
12553
  ] }),
12554
- /* @__PURE__ */ r.jsxs(k, { children: [
12554
+ /* @__PURE__ */ r.jsxs(C, { children: [
12555
12555
  /* @__PURE__ */ r.jsx($, { mt: 10, mb: -15, variant: "dashed", label: n("chart.axis.section_title.label_format"), labelPosition: "center" }),
12556
12556
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.label_formatter", control: e, render: ({
12557
12557
  field: i
@@ -12580,7 +12580,7 @@ function nC({
12580
12580
  });
12581
12581
  return Q(() => {
12582
12582
  u(a);
12583
- }, [a]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
12583
+ }, [a]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
12584
12584
  /* @__PURE__ */ r.jsx(lt, { canSubmit: d.isDirty }),
12585
12585
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "X Axis", orientation: "vertical", styles: {
12586
12586
  tab: {
@@ -12605,7 +12605,7 @@ function nC({
12605
12605
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(tC, { control: o, watch: c }) }),
12606
12606
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Legend", children: /* @__PURE__ */ r.jsx(Hk, { control: o, watch: c }) }),
12607
12607
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(Yk, { control: o, watch: c }) }),
12608
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Style", children: /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
12608
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Style", children: /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
12609
12609
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: t("chart.color.label") }),
12610
12610
  /* @__PURE__ */ r.jsx(g, { name: "color", control: o, render: ({
12611
12611
  field: h
@@ -12669,7 +12669,7 @@ function aC(e) {
12669
12669
  }
12670
12670
  }
12671
12671
  };
12672
- return C.defaultsDeep(t, e);
12672
+ return k.defaultsDeep(t, e);
12673
12673
  }
12674
12674
  function oC(e) {
12675
12675
  delete e.config;
@@ -12686,7 +12686,7 @@ function oC(e) {
12686
12686
  }
12687
12687
  }
12688
12688
  };
12689
- return C.defaultsDeep(i, e);
12689
+ return k.defaultsDeep(i, e);
12690
12690
  }
12691
12691
  function lC(e) {
12692
12692
  const t = {
@@ -12694,7 +12694,7 @@ function lC(e) {
12694
12694
  metrics: []
12695
12695
  }
12696
12696
  };
12697
- return C.defaultsDeep(t, e);
12697
+ return k.defaultsDeep(t, e);
12698
12698
  }
12699
12699
  function cC(e, {
12700
12700
  panelModel: t
@@ -12743,7 +12743,7 @@ function dC(e) {
12743
12743
  type: "scroll"
12744
12744
  }
12745
12745
  };
12746
- return C.defaultsDeep(t, e);
12746
+ return k.defaultsDeep(t, e);
12747
12747
  }
12748
12748
  function uC(e) {
12749
12749
  const {
@@ -12933,7 +12933,7 @@ const fc = {
12933
12933
  label: n
12934
12934
  }) => {
12935
12935
  const i = Yi(), s = Fe((o) => () => t(o), [t]), a = (o) => e === o;
12936
- return /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
12936
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 2, children: [
12937
12937
  /* @__PURE__ */ r.jsx(S, { size: 14, sx: {
12938
12938
  fontWeight: 500
12939
12939
  }, children: n }),
@@ -13004,7 +13004,7 @@ function _C({
13004
13004
  d(s);
13005
13005
  }, [s]), l(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
13006
13006
  /* @__PURE__ */ r.jsx(lt, { canSubmit: c.isDirty }),
13007
- /* @__PURE__ */ r.jsxs(k, { children: [
13007
+ /* @__PURE__ */ r.jsxs(C, { children: [
13008
13008
  /* @__PURE__ */ r.jsx(g, { control: a, name: "content", render: ({
13009
13009
  field: u
13010
13010
  }) => /* @__PURE__ */ r.jsx(E, { label: "Content Template", description: "Filter values & context entries are supported", ...u, required: !0 }) }),
@@ -13323,7 +13323,7 @@ function AC({
13323
13323
  }
13324
13324
  const {
13325
13325
  columnKey: c
13326
- } = B(a.y_axis_data_key), d = C.groupBy(ba(n, a.y_axis_data_key), l);
13326
+ } = B(a.y_axis_data_key), d = k.groupBy(ba(n, a.y_axis_data_key), l);
13327
13327
  Object.entries(d).forEach(([u, h]) => {
13328
13328
  const p = h.map((f, b) => [b, Number(f[c])]);
13329
13329
  s(a, u, u, p);
@@ -13387,11 +13387,11 @@ function $C(e, t, n, i, s, a) {
13387
13387
  }
13388
13388
  function gc(e, t, n) {
13389
13389
  const i = yn(e, t), s = yn(e, n);
13390
- return C.zip(i, s);
13390
+ return k.zip(i, s);
13391
13391
  }
13392
13392
  function OC(e, t, n, i) {
13393
13393
  const s = gc(t, n, i);
13394
- return C.unionBy(s, e, 0);
13394
+ return k.unionBy(s, e, 0);
13395
13395
  }
13396
13396
  function FC({
13397
13397
  dataTemplate: e,
@@ -13418,7 +13418,7 @@ function VC({
13418
13418
  y_axis_data_key: s,
13419
13419
  valueTypedXAxis: a
13420
13420
  });
13421
- const o = gc(t, i, s), l = C.groupBy(o, "0");
13421
+ const o = gc(t, i, s), l = k.groupBy(o, "0");
13422
13422
  return e.map(([d]) => {
13423
13423
  const h = l[d].map((m) => m[1]), p = ul(h, n);
13424
13424
  return [d, p];
@@ -13433,7 +13433,7 @@ function NC({
13433
13433
  const {
13434
13434
  queryID: s,
13435
13435
  columnKey: a
13436
- } = B(e), o = C.groupBy(t[s], a);
13436
+ } = B(e), o = k.groupBy(t[s], a);
13437
13437
  return Object.entries(o).forEach(([l, c]) => {
13438
13438
  o[l] = gc({
13439
13439
  [s]: c
@@ -13467,7 +13467,7 @@ function qC({
13467
13467
  params: u,
13468
13468
  variables: s
13469
13469
  }, {
13470
- lodash: C,
13470
+ lodash: k,
13471
13471
  interpolate: Nr
13472
13472
  });
13473
13473
  } catch (p) {
@@ -13515,7 +13515,7 @@ function BC({
13515
13515
  shadowColor: "rgba(255,255,255,1)",
13516
13516
  shadowBlur: 0,
13517
13517
  shadowOffsetX: 0,
13518
- shadowOffsetY: C.clamp(m.lineStyle.width, 1, 3)
13518
+ shadowOffsetY: k.clamp(m.lineStyle.width, 1, 3)
13519
13519
  }), u && (A.endLabel = {
13520
13520
  show: !0,
13521
13521
  formatter: a,
@@ -13590,7 +13590,7 @@ function QC(e, t, n, i) {
13590
13590
  </tr>
13591
13591
  `;
13592
13592
  }), c = e.tooltip.metrics.map((h) => {
13593
- const p = yn(t, h.data_key), m = C.uniq(o.map(({
13593
+ const p = yn(t, h.data_key), m = k.uniq(o.map(({
13594
13594
  dataIndex: f
13595
13595
  }) => p[f]));
13596
13596
  return `<tr>
@@ -13679,7 +13679,7 @@ function XC(e) {
13679
13679
  }
13680
13680
  n[i.yAxisIndex] = n[i.yAxisIndex].concat(s);
13681
13681
  }), Object.entries(n).forEach(([i, s]) => {
13682
- const a = C.minBy(s) ?? 0, o = C.maxBy(s) ?? 0;
13682
+ const a = k.minBy(s) ?? 0, o = k.maxBy(s) ?? 0;
13683
13683
  a == 0 && o == 0 && (t[i] = 1);
13684
13684
  }), t;
13685
13685
  }
@@ -13733,7 +13733,7 @@ const ZC = {
13733
13733
  }]
13734
13734
  };
13735
13735
  function eI(e, t, n) {
13736
- const i = bc(t, n), s = UC(e), a = C.uniq(yn(t, e.x_axis_data_key)), o = WC(e, a, t, s, n, i), l = AC(e, t), c = {
13736
+ const i = bc(t, n), s = UC(e), a = k.uniq(yn(t, e.x_axis_data_key)), o = WC(e, a, t, s, n, i), l = AC(e, t), c = {
13737
13737
  xAxis: KC(e, a),
13738
13738
  yAxis: JC(e, s, o),
13739
13739
  series: [...o, ...l],
@@ -13765,7 +13765,7 @@ function tI({
13765
13765
  variables: a
13766
13766
  }) {
13767
13767
  const o = Wr(t, e.x_axis_data_key), l = Yt(s.triggerManager, xc.id), c = Fe((m) => {
13768
- const f = C.get(o, m.name, {
13768
+ const f = k.get(o, m.name, {
13769
13769
  error: "rowData is not found"
13770
13770
  });
13771
13771
  l.forEach((b) => {
@@ -13822,7 +13822,7 @@ function rI({
13822
13822
  label: i("chart.reference_area.direction.horizontal"),
13823
13823
  value: "horizontal"
13824
13824
  }], [s.language]);
13825
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
13825
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
13826
13826
  position: "relative"
13827
13827
  }, children: [
13828
13828
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -13935,7 +13935,7 @@ function sI({
13935
13935
  const {
13936
13936
  t: a
13937
13937
  } = v(), o = n(`reference_lines.${t}.orientation`);
13938
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
13938
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
13939
13939
  position: "relative"
13940
13940
  }, children: [
13941
13941
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -13959,7 +13959,7 @@ function sI({
13959
13959
  flex: 1
13960
13960
  }, ...l }) }),
13961
13961
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
13962
- /* @__PURE__ */ r.jsxs(k, { children: [
13962
+ /* @__PURE__ */ r.jsxs(C, { children: [
13963
13963
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
13964
13964
  field: l
13965
13965
  }) => /* @__PURE__ */ r.jsx(vr, { label: a("chart.orientation.label"), sx: {
@@ -13999,7 +13999,7 @@ function sI({
13999
13999
  }, ...l })
14000
14000
  ) })
14001
14001
  ] }),
14002
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
14002
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
14003
14003
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: a("chart.color.label") }),
14004
14004
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
14005
14005
  field: l
@@ -14069,7 +14069,7 @@ function oI({
14069
14069
  label: s("chart.regression_line.method.polynomial"),
14070
14070
  value: "polynomial"
14071
14071
  }], [a.language]), l = t.transform.config.method;
14072
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
14072
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
14073
14073
  position: "relative"
14074
14074
  }, children: [
14075
14075
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
@@ -14140,7 +14140,7 @@ function oI({
14140
14140
  }, ...c })
14141
14141
  ) })
14142
14142
  ] }),
14143
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
14143
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
14144
14144
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: "Color" }),
14145
14145
  /* @__PURE__ */ r.jsx(g, { name: `regressions.${n}.plot.color`, control: e, render: ({
14146
14146
  field: c
@@ -14246,7 +14246,7 @@ const cI = ({
14246
14246
  }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", mt: 24, onClick: s, sx: {
14247
14247
  flexGrow: 0
14248
14248
  }, leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
14249
- /* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.symbol_size.setup.title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
14249
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.symbol_size.setup.title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
14250
14250
  /* @__PURE__ */ r.jsx($, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
14251
14251
  /* @__PURE__ */ r.jsx(cI, { value: o.func_content, onChange: u }),
14252
14252
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
@@ -14601,7 +14601,7 @@ function fI({
14601
14601
  const d = c === "false" ? !1 : c;
14602
14602
  l.onChange(d);
14603
14603
  } }) }),
14604
- /* @__PURE__ */ r.jsxs(k, { children: [
14604
+ /* @__PURE__ */ r.jsxs(C, { children: [
14605
14605
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.smooth`, control: e, render: ({
14606
14606
  field: l
14607
14607
  }) => /* @__PURE__ */ r.jsx(R, { sx: {
@@ -14614,7 +14614,7 @@ function fI({
14614
14614
  }, children: /* @__PURE__ */ r.jsx(dt, { label: i("chart.series.line.show_name_on_line"), checked: l.value ?? !1, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) })
14615
14615
  ] })
14616
14616
  ] }),
14617
- /* @__PURE__ */ r.jsxs(k, { children: [
14617
+ /* @__PURE__ */ r.jsxs(C, { children: [
14618
14618
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.showSymbol`, control: e, render: ({
14619
14619
  field: l
14620
14620
  }) => /* @__PURE__ */ r.jsx(R, { mt: 10, mb: -10, sx: {
@@ -14643,10 +14643,10 @@ function gI({
14643
14643
  const {
14644
14644
  t: s
14645
14645
  } = v(), a = n.type;
14646
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
14646
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
14647
14647
  position: "relative"
14648
14648
  }, children: [
14649
- /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${t}.type`, control: e, render: ({
14649
+ /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${t}.type`, control: e, render: ({
14650
14650
  field: o
14651
14651
  }) => (
14652
14652
  // @ts-expect-error type of onChange
@@ -14705,7 +14705,7 @@ function gI({
14705
14705
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.label_position`, control: e, render: ({
14706
14706
  field: o
14707
14707
  }) => /* @__PURE__ */ r.jsx(wi, { label: s("chart.label_position.label"), withOffOption: !0, ...o }) }),
14708
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
14708
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
14709
14709
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: s("chart.color.label") }),
14710
14710
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
14711
14711
  field: o
@@ -14767,7 +14767,7 @@ function yI({
14767
14767
  const {
14768
14768
  t: n
14769
14769
  } = v();
14770
- return /* @__PURE__ */ r.jsxs(k, { children: [
14770
+ return /* @__PURE__ */ r.jsxs(C, { children: [
14771
14771
  /* @__PURE__ */ r.jsx(g, { name: "stats.top", control: e, render: ({
14772
14772
  field: i
14773
14773
  }) => /* @__PURE__ */ r.jsx(hr, { label: n("chart.stats.template.above_chart"), styles: {
@@ -14793,7 +14793,7 @@ const vI = ({
14793
14793
  const {
14794
14794
  t: n
14795
14795
  } = v();
14796
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
14796
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
14797
14797
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
14798
14798
  field: i
14799
14799
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -14837,7 +14837,7 @@ function jI({
14837
14837
  control: e,
14838
14838
  watch: t
14839
14839
  }) {
14840
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(_I, { control: e, watch: t }) });
14840
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(_I, { control: e, watch: t }) });
14841
14841
  }
14842
14842
  const wI = () => {
14843
14843
  const {
@@ -14881,7 +14881,7 @@ function SI({
14881
14881
  label: n("chart.axis.type.log"),
14882
14882
  value: "log"
14883
14883
  }], [i.language]);
14884
- return /* @__PURE__ */ r.jsxs(k, { children: [
14884
+ return /* @__PURE__ */ r.jsxs(C, { children: [
14885
14885
  /* @__PURE__ */ r.jsx(g, { name: "x_axis_name", control: e, render: ({
14886
14886
  field: a
14887
14887
  }) => /* @__PURE__ */ r.jsx(E, { label: n("chart.x_axis.x_axis_name"), sx: {
@@ -14964,7 +14964,7 @@ function kI({
14964
14964
  const {
14965
14965
  t: n
14966
14966
  } = v();
14967
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: "0", sx: {
14967
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: "0", sx: {
14968
14968
  position: "relative"
14969
14969
  }, children: [
14970
14970
  /* @__PURE__ */ r.jsx($, { mb: -15, mt: 15, variant: "dashed", label: n("common.name"), labelPosition: "center" }),
@@ -14986,13 +14986,13 @@ function kI({
14986
14986
  }) => /* @__PURE__ */ r.jsx(If, { sx: {
14987
14987
  flex: 1
14988
14988
  }, ...i }) }) }),
14989
- /* @__PURE__ */ r.jsxs(k, { children: [
14989
+ /* @__PURE__ */ r.jsxs(C, { children: [
14990
14990
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
14991
14991
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
14992
14992
  field: i
14993
14993
  }) => /* @__PURE__ */ r.jsx(un, { ...i }) })
14994
14994
  ] }),
14995
- /* @__PURE__ */ r.jsxs(k, { children: [
14995
+ /* @__PURE__ */ r.jsxs(C, { children: [
14996
14996
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
14997
14997
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
14998
14998
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.min`, control: e, render: ({
@@ -15056,7 +15056,7 @@ function II({
15056
15056
  });
15057
15057
  return Q(() => {
15058
15058
  d(a);
15059
- }, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
15059
+ }, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
15060
15060
  /* @__PURE__ */ r.jsx(lt, { canSubmit: u.isDirty }),
15061
15061
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "Series", orientation: "vertical", styles: {
15062
15062
  tab: {
@@ -15149,7 +15149,7 @@ function EI(e) {
15149
15149
  }
15150
15150
  }
15151
15151
  };
15152
- return C.defaultsDeep(t, e);
15152
+ return k.defaultsDeep(t, e);
15153
15153
  }
15154
15154
  function LI(e) {
15155
15155
  const t = e.reference_lines.map((n) => {
@@ -15232,7 +15232,7 @@ function $I(e) {
15232
15232
  }
15233
15233
  }
15234
15234
  };
15235
- return C.defaultsDeep(i, e);
15235
+ return k.defaultsDeep(i, e);
15236
15236
  }
15237
15237
  function OI(e) {
15238
15238
  const {
@@ -15599,7 +15599,7 @@ function tT(e) {
15599
15599
  right: 5,
15600
15600
  bottom: 5
15601
15601
  };
15602
- return e.orient === "vertical" && C.get(i, n) && n === e.funnelAlign && C.set(i, n, t), i;
15602
+ return e.orient === "vertical" && k.get(i, n) && n === e.funnelAlign && k.set(i, n, t), i;
15603
15603
  }
15604
15604
  function nT(e, t) {
15605
15605
  return e.series.map((n) => {
@@ -15663,7 +15663,7 @@ function rT({
15663
15663
  }
15664
15664
  function iT(e, t) {
15665
15665
  var a;
15666
- const n = B(e.series[0].level_name_data_key), i = B(e.series[0].level_value_data_key), s = (a = C.maxBy(t[n.queryID], i.columnKey)) == null ? void 0 : a[i.columnKey];
15666
+ const n = B(e.series[0].level_name_data_key), i = B(e.series[0].level_value_data_key), s = (a = k.maxBy(t[n.queryID], i.columnKey)) == null ? void 0 : a[i.columnKey];
15667
15667
  return (o) => {
15668
15668
  const c = rT({
15669
15669
  conf: e,
@@ -15808,7 +15808,7 @@ const dT = ({
15808
15808
  label: s("viz.funnel_chart.sort.none"),
15809
15809
  value: "0"
15810
15810
  }], [a.language]);
15811
- return /* @__PURE__ */ r.jsxs(k, { children: [
15811
+ return /* @__PURE__ */ r.jsxs(C, { children: [
15812
15812
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.name`, control: t, render: ({
15813
15813
  field: h
15814
15814
  }) => /* @__PURE__ */ r.jsx(E, { label: s("viz.funnel_chart.series_name"), ...h }) }) }),
@@ -15919,7 +15919,7 @@ const dT = ({
15919
15919
  }), a = t("series"), o = n.map((u, h) => ({
15920
15920
  ...u,
15921
15921
  ...a[h]
15922
- })), l = C.get(o, "0.id"), [c, d] = X(l ?? null);
15922
+ })), l = k.get(o, "0.id"), [c, d] = X(l ?? null);
15923
15923
  return Q(() => {
15924
15924
  l && d((u) => u !== null ? u : l);
15925
15925
  }, [l]), /* @__PURE__ */ r.jsxs(_, { value: c, onTabChange: (u) => d(u), styles: {
@@ -15941,7 +15941,7 @@ function hT({
15941
15941
  const {
15942
15942
  value: t,
15943
15943
  set: n
15944
- } = ne(e.instanceData, "config"), i = T(() => C.defaultsDeep({}, t, jc), [t]), {
15944
+ } = ne(e.instanceData, "config"), i = T(() => k.defaultsDeep({}, t, jc), [t]), {
15945
15945
  control: s,
15946
15946
  handleSubmit: a,
15947
15947
  watch: o,
@@ -15952,7 +15952,7 @@ function hT({
15952
15952
  });
15953
15953
  return Q(() => {
15954
15954
  c(i);
15955
- }, [i]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
15955
+ }, [i]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
15956
15956
  /* @__PURE__ */ r.jsx(lt, { canSubmit: l.isDirty }),
15957
15957
  /* @__PURE__ */ r.jsx(uT, { control: s, watch: o })
15958
15958
  ] }) });
@@ -16219,7 +16219,7 @@ function TT({
16219
16219
  const I = B(b.data_key);
16220
16220
  m.push({
16221
16221
  label: b.name,
16222
- value: IT(C.get(f, I.columnKey, "")),
16222
+ value: IT(k.get(f, I.columnKey, "")),
16223
16223
  style: {
16224
16224
  label: "",
16225
16225
  value: ""
@@ -16234,7 +16234,7 @@ function zT(e, t, n, i) {
16234
16234
  heat_block: o
16235
16235
  } = e, l = B(s.data_key), c = B(a.data_key);
16236
16236
  B(o.data_key);
16237
- const d = C.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
16237
+ const d = k.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
16238
16238
  return De.getTooltip({
16239
16239
  formatter: function(u) {
16240
16240
  const p = TT({
@@ -16378,7 +16378,7 @@ const Is = ({
16378
16378
  const {
16379
16379
  t
16380
16380
  } = v();
16381
- return /* @__PURE__ */ r.jsxs(k, { children: [
16381
+ return /* @__PURE__ */ r.jsxs(C, { children: [
16382
16382
  /* @__PURE__ */ r.jsx(g, { control: e.control, name: "visualMap.skipRange.lt_min", render: ({
16383
16383
  field: n
16384
16384
  }) => /* @__PURE__ */ r.jsx(Is, { field: n, label: t("chart.visual_map.skip_range.lt_min") }) }),
@@ -16404,7 +16404,7 @@ const Is = ({
16404
16404
  } = s, l = o === "horizontal", c = (d) => (u) => {
16405
16405
  u !== "" && d(u);
16406
16406
  };
16407
- return a !== "continuous" ? null : /* @__PURE__ */ r.jsxs(k, { children: [
16407
+ return a !== "continuous" ? null : /* @__PURE__ */ r.jsxs(C, { children: [
16408
16408
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
16409
16409
  /* @__PURE__ */ r.jsx(g, { name: "visualMap.text.1", control: i, render: ({
16410
16410
  field: d
@@ -16559,7 +16559,7 @@ const Is = ({
16559
16559
  })), c = () => {
16560
16560
  s(af());
16561
16561
  };
16562
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(ot, { children: [
16562
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(ot, { children: [
16563
16563
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
16564
16564
  /* @__PURE__ */ r.jsx("th", { style: {
16565
16565
  width: "40px"
@@ -16601,7 +16601,7 @@ const Is = ({
16601
16601
  } = s, c = (d) => (u) => {
16602
16602
  u !== "" && d(u);
16603
16603
  };
16604
- return a !== "piecewise" ? null : /* @__PURE__ */ r.jsxs(k, { children: [
16604
+ return a !== "piecewise" ? null : /* @__PURE__ */ r.jsxs(C, { children: [
16605
16605
  /* @__PURE__ */ r.jsx(g, { name: "visualMap.precision", control: i, render: ({
16606
16606
  field: d
16607
16607
  }) => /* @__PURE__ */ r.jsx(pe, { label: t("chart.visual_map.precision"), ...d, onChange: c(d.onChange) }) }),
@@ -16642,7 +16642,7 @@ const Is = ({
16642
16642
  break;
16643
16643
  }
16644
16644
  };
16645
- return /* @__PURE__ */ r.jsx(ut, { children: /* @__PURE__ */ r.jsxs(k, { children: [
16645
+ return /* @__PURE__ */ r.jsx(ut, { children: /* @__PURE__ */ r.jsxs(C, { children: [
16646
16646
  /* @__PURE__ */ r.jsx(AT, { visualMap: s }),
16647
16647
  /* @__PURE__ */ r.jsx(g, { name: "visualMap.type", control: i, render: ({
16648
16648
  field: l
@@ -16674,8 +16674,8 @@ function VT(e, t, n, i, s, a) {
16674
16674
  }, {}), l = Ta(e.visualMap, o), {
16675
16675
  min: c,
16676
16676
  max: d
16677
- } = l, u = wT(e), h = ST(e), p = B(e.x_axis.data_key), m = B(e.y_axis.data_key), f = C.uniq(t[p.queryID].map((A) => A[p.columnKey])), b = C.uniq(t[p.queryID].map((A) => A[m.columnKey])), I = n.map((A) => {
16678
- const L = C.clone(A), {
16677
+ } = l, u = wT(e), h = ST(e), p = B(e.x_axis.data_key), m = B(e.y_axis.data_key), f = k.uniq(t[p.queryID].map((A) => A[p.columnKey])), b = k.uniq(t[p.queryID].map((A) => A[m.columnKey])), I = n.map((A) => {
16678
+ const L = k.clone(A), {
16679
16679
  followVisualMap: P,
16680
16680
  color: ee
16681
16681
  } = ic(L.value[2], c, d, e.visualMap);
@@ -16698,17 +16698,17 @@ function NT(e, t) {
16698
16698
  if (!l)
16699
16699
  return {};
16700
16700
  const c = l.map((d) => {
16701
- const u = C.get(d, n.columnKey), h = C.get(d, i.columnKey), p = C.get(d, s.columnKey);
16701
+ const u = k.get(d, n.columnKey), h = k.get(d, i.columnKey), p = k.get(d, s.columnKey);
16702
16702
  return {
16703
16703
  value: [u, h, p]
16704
16704
  };
16705
16705
  });
16706
- return C.groupBy(c, "value.1");
16706
+ return k.groupBy(c, "value.1");
16707
16707
  }, [e, n, i, s]);
16708
16708
  return {
16709
16709
  totalPages: T(() => {
16710
16710
  const l = Object.keys(a).length;
16711
- return t.pagination.page_size === 0 ? l : C.ceil(l / t.pagination.page_size);
16711
+ return t.pagination.page_size === 0 ? l : k.ceil(l / t.pagination.page_size);
16712
16712
  }, [a, t.pagination.page_size]),
16713
16713
  groupedFullData: a
16714
16714
  };
@@ -16817,9 +16817,9 @@ function HT({
16817
16817
  }) {
16818
16818
  const l = T(() => {
16819
16819
  const p = B(e.x_axis.data_key), m = B(e.y_axis.data_key);
16820
- return C.keyBy(t[p.queryID], (f) => `${f[p.columnKey]}---${f[m.columnKey]}`);
16820
+ return k.keyBy(t[p.queryID], (f) => `${f[p.columnKey]}---${f[m.columnKey]}`);
16821
16821
  }, [t, e.x_axis.data_key, e.y_axis.data_key]), c = Yt(a.triggerManager, Tf.id), d = Fe((p) => {
16822
- const [m, f] = p.value, b = C.get(l, `${m}---${f}`, {
16822
+ const [m, f] = p.value, b = k.get(l, `${m}---${f}`, {
16823
16823
  error: "rowData is not found"
16824
16824
  });
16825
16825
  c.forEach((I) => {
@@ -16868,7 +16868,7 @@ function QT({
16868
16868
  } = v();
16869
16869
  t(["heat_block"]);
16870
16870
  const i = t("heat_block.label.show");
16871
- return /* @__PURE__ */ r.jsxs(k, { children: [
16871
+ return /* @__PURE__ */ r.jsxs(C, { children: [
16872
16872
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
16873
16873
  /* @__PURE__ */ r.jsx(g, { name: "heat_block.data_key", control: e, render: ({
16874
16874
  field: s
@@ -16908,7 +16908,7 @@ function UT({
16908
16908
  const {
16909
16909
  t: n
16910
16910
  } = v();
16911
- return t(["pagination"]), /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(g, { name: "pagination.page_size", control: e, render: ({
16911
+ return t(["pagination"]), /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(g, { name: "pagination.page_size", control: e, render: ({
16912
16912
  field: i
16913
16913
  }) => /* @__PURE__ */ r.jsx(pe, { label: n("common.pagination.page_size"), description: n("viz.heatmap.pagination.page_size_hint"), sx: {
16914
16914
  flex: 1
@@ -16923,7 +16923,7 @@ const KT = ({
16923
16923
  const {
16924
16924
  t: n
16925
16925
  } = v();
16926
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
16926
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
16927
16927
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
16928
16928
  field: i
16929
16929
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -16977,7 +16977,7 @@ function JT({
16977
16977
  const {
16978
16978
  t: n
16979
16979
  } = v();
16980
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
16980
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
16981
16981
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
16982
16982
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
16983
16983
  field: i
@@ -17013,7 +17013,7 @@ function ZT({
17013
17013
  const {
17014
17014
  t: n
17015
17015
  } = v();
17016
- return t(["y_axis"]), /* @__PURE__ */ r.jsxs(k, { my: 0, p: "0", sx: {
17016
+ return t(["y_axis"]), /* @__PURE__ */ r.jsxs(C, { my: 0, p: "0", sx: {
17017
17017
  position: "relative"
17018
17018
  }, children: [
17019
17019
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -17057,7 +17057,7 @@ function ez({
17057
17057
  } = v(), {
17058
17058
  value: n,
17059
17059
  set: i
17060
- } = ne(e.instanceData, "config"), s = T(() => n ? Ee({}, n) : Sc, [n]), a = T(() => C.cloneDeep(s), [s]);
17060
+ } = ne(e.instanceData, "config"), s = T(() => n ? Ee({}, n) : Sc, [n]), a = T(() => k.cloneDeep(s), [s]);
17061
17061
  Q(() => {
17062
17062
  !Dt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
17063
17063
  }, [s, a]);
@@ -17074,7 +17074,7 @@ function ez({
17074
17074
  h(a);
17075
17075
  }, [a]), /* @__PURE__ */ r.jsx("form", { onSubmit: c(i), style: {
17076
17076
  flexGrow: 1
17077
- }, children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", sx: {
17077
+ }, children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", sx: {
17078
17078
  height: "100%"
17079
17079
  }, children: [
17080
17080
  /* @__PURE__ */ r.jsx(lt, { canSubmit: u.isDirty }),
@@ -17181,7 +17181,7 @@ function iz(e, {
17181
17181
  }
17182
17182
  }
17183
17183
  function sz(e) {
17184
- return C.defaultsDeep({}, e, {
17184
+ return k.defaultsDeep({}, e, {
17185
17185
  heat_block: {
17186
17186
  label: {
17187
17187
  show: !1,
@@ -17688,7 +17688,7 @@ function Tz({
17688
17688
  vizManager: e.vizManager,
17689
17689
  instance: t
17690
17690
  }), u = Yt(d.triggerManager, Df.id), h = Wr(s, l.x_axis.data_key), p = Fe((f) => {
17691
- const b = C.get(h, f.name, {
17691
+ const b = k.get(h, f.name, {
17692
17692
  error: "rowData is not found"
17693
17693
  });
17694
17694
  u.forEach((I) => {
@@ -17709,7 +17709,7 @@ function zz({
17709
17709
  const {
17710
17710
  t: n
17711
17711
  } = v();
17712
- return t(["bar"]), /* @__PURE__ */ r.jsxs(k, { children: [
17712
+ return t(["bar"]), /* @__PURE__ */ r.jsxs(C, { children: [
17713
17713
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
17714
17714
  /* @__PURE__ */ r.jsx(g, { name: "bar.name", control: e, render: ({
17715
17715
  field: i
@@ -17722,13 +17722,13 @@ function zz({
17722
17722
  flex: 1
17723
17723
  }, ...i }) })
17724
17724
  ] }),
17725
- /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
17725
+ /* @__PURE__ */ r.jsxs(C, { spacing: 2, children: [
17726
17726
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: n("chart.color.label") }),
17727
17727
  /* @__PURE__ */ r.jsx(g, { name: "bar.color", control: e, render: ({
17728
17728
  field: i
17729
17729
  }) => /* @__PURE__ */ r.jsx(kt, { ...i }) })
17730
17730
  ] }),
17731
- /* @__PURE__ */ r.jsxs(k, { children: [
17731
+ /* @__PURE__ */ r.jsxs(C, { children: [
17732
17732
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.label.label_format"), labelPosition: "center" }),
17733
17733
  /* @__PURE__ */ r.jsx(g, { name: "bar.label_formatter", control: e, render: ({
17734
17734
  field: i
@@ -17743,7 +17743,7 @@ function Dz({
17743
17743
  const {
17744
17744
  t: n
17745
17745
  } = v();
17746
- return t(["line"]), /* @__PURE__ */ r.jsxs(k, { children: [
17746
+ return t(["line"]), /* @__PURE__ */ r.jsxs(C, { children: [
17747
17747
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
17748
17748
  /* @__PURE__ */ r.jsx(g, { name: "line.name", control: e, render: ({
17749
17749
  field: i
@@ -17756,7 +17756,7 @@ function Dz({
17756
17756
  flex: 1
17757
17757
  }, ...i }) })
17758
17758
  ] }),
17759
- /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
17759
+ /* @__PURE__ */ r.jsxs(C, { spacing: 2, children: [
17760
17760
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: n("chart.color.label") }),
17761
17761
  /* @__PURE__ */ r.jsx(g, { name: "line.color", control: e, render: ({
17762
17762
  field: i
@@ -17804,14 +17804,14 @@ function Lz({
17804
17804
  const {
17805
17805
  t: n
17806
17806
  } = v();
17807
- return t(["markLine"]), /* @__PURE__ */ r.jsxs(k, { children: [
17808
- /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
17807
+ return t(["markLine"]), /* @__PURE__ */ r.jsxs(C, { children: [
17808
+ /* @__PURE__ */ r.jsxs(C, { spacing: 2, children: [
17809
17809
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: n("chart.color.label") }),
17810
17810
  /* @__PURE__ */ r.jsx(g, { name: "markLine.color", control: e, render: ({
17811
17811
  field: i
17812
17812
  }) => /* @__PURE__ */ r.jsx(kt, { ...i }) })
17813
17813
  ] }),
17814
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
17814
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
17815
17815
  /* @__PURE__ */ r.jsx(g, { name: "markLine.label_template", control: e, render: ({
17816
17816
  field: i
17817
17817
  }) => /* @__PURE__ */ r.jsx(Vu, { autosize: !0, minRows: 2, maxRows: 4, label: n("viz.pareto_chart.line_80_20.label_template"), sx: {
@@ -17831,7 +17831,7 @@ function Az({
17831
17831
  const {
17832
17832
  t: a
17833
17833
  } = v(), o = n(`reference_lines.${t}.orientation`);
17834
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
17834
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
17835
17835
  position: "relative"
17836
17836
  }, children: [
17837
17837
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -17855,7 +17855,7 @@ function Az({
17855
17855
  flex: 1
17856
17856
  }, ...l }) }),
17857
17857
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
17858
- /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
17858
+ /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
17859
17859
  field: l
17860
17860
  }) => /* @__PURE__ */ r.jsx(vr, { label: a("chart.orientation.label"), sx: {
17861
17861
  flex: 1
@@ -17892,7 +17892,7 @@ function Az({
17892
17892
  }, ...l })
17893
17893
  ) })
17894
17894
  ] }),
17895
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
17895
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
17896
17896
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: a("chart.color.label") }),
17897
17897
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
17898
17898
  field: l
@@ -17941,7 +17941,7 @@ function Pz({
17941
17941
  const {
17942
17942
  t: n
17943
17943
  } = v();
17944
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
17944
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
17945
17945
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
17946
17946
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.name", control: e, render: ({
17947
17947
  field: i
@@ -17977,7 +17977,7 @@ function $z({
17977
17977
  const {
17978
17978
  t: n
17979
17979
  } = v();
17980
- return t(["data_key"]), /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(g, { name: "data_key", control: e, render: ({
17980
+ return t(["data_key"]), /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(g, { name: "data_key", control: e, render: ({
17981
17981
  field: i
17982
17982
  }) => /* @__PURE__ */ r.jsx(te, { label: n("chart.y_axis.y_axis_data_field"), required: !0, sx: {
17983
17983
  flex: 1
@@ -18058,7 +18058,7 @@ function Vz(e) {
18058
18058
  };
18059
18059
  }
18060
18060
  function Nz(e) {
18061
- const t = C.defaultsDeep({}, e.x_axis.axisLabel, {
18061
+ const t = k.defaultsDeep({}, e.x_axis.axisLabel, {
18062
18062
  rotate: 0,
18063
18063
  formatter: St()
18064
18064
  });
@@ -18101,7 +18101,7 @@ function Bz(e) {
18101
18101
  }
18102
18102
  }
18103
18103
  };
18104
- return C.defaultsDeep(t, e);
18104
+ return k.defaultsDeep(t, e);
18105
18105
  }
18106
18106
  function Wz(e) {
18107
18107
  const t = {
@@ -18112,7 +18112,7 @@ function Wz(e) {
18112
18112
  nameAlignment: "right"
18113
18113
  }
18114
18114
  };
18115
- return C.defaultsDeep(t, e);
18115
+ return k.defaultsDeep(t, e);
18116
18116
  }
18117
18117
  function Hz(e) {
18118
18118
  console.log(e);
@@ -18129,7 +18129,7 @@ function Hz(e) {
18129
18129
  }
18130
18130
  }
18131
18131
  };
18132
- return C.defaultsDeep(i, e);
18132
+ return k.defaultsDeep(i, e);
18133
18133
  }
18134
18134
  function Gz(e, {
18135
18135
  panelModel: t
@@ -18330,7 +18330,7 @@ function Zz({
18330
18330
  interactionManager: s
18331
18331
  }) {
18332
18332
  const a = Wr(t, e.label_field), o = Yt(s.triggerManager, Ef.id), l = O.useCallback((u) => {
18333
- const h = C.get(a, u.name, {
18333
+ const h = k.get(a, u.name, {
18334
18334
  error: "rowData is not found"
18335
18335
  });
18336
18336
  o.forEach((p) => {
@@ -18356,7 +18356,7 @@ function eD({
18356
18356
  instance: t
18357
18357
  }), {
18358
18358
  value: i
18359
- } = ne(e.instanceData, "config"), s = T(() => C.defaults({}, i, Cc), [i]), a = e.data, {
18359
+ } = ne(e.instanceData, "config"), s = T(() => k.defaults({}, i, Cc), [i]), a = e.data, {
18360
18360
  width: o,
18361
18361
  height: l
18362
18362
  } = e.viewport;
@@ -18370,7 +18370,7 @@ function tD({
18370
18370
  } = v(), {
18371
18371
  value: n,
18372
18372
  set: i
18373
- } = ne(e.instanceData, "config"), s = T(() => xt({}, n, Cc), [n]), a = T(() => C.clone(s), [s]), {
18373
+ } = ne(e.instanceData, "config"), s = T(() => xt({}, n, Cc), [n]), a = T(() => k.clone(s), [s]), {
18374
18374
  control: o,
18375
18375
  handleSubmit: l,
18376
18376
  watch: c,
@@ -18381,9 +18381,9 @@ function tD({
18381
18381
  });
18382
18382
  return Q(() => {
18383
18383
  u(a);
18384
- }, [a]), c(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
18384
+ }, [a]), c(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
18385
18385
  /* @__PURE__ */ r.jsx(lt, { canSubmit: d.isDirty }),
18386
- /* @__PURE__ */ r.jsxs(k, { mt: "md", spacing: "xs", p: "md", mb: "sm", sx: {
18386
+ /* @__PURE__ */ r.jsxs(C, { mt: "md", spacing: "xs", p: "md", mb: "sm", sx: {
18387
18387
  border: "1px solid #eee",
18388
18388
  borderRadius: "5px"
18389
18389
  }, children: [
@@ -18720,7 +18720,7 @@ function bD(e, t) {
18720
18720
  series: mD(t, e),
18721
18721
  color: gD
18722
18722
  };
18723
- return C.merge({}, xD, o);
18723
+ return k.merge({}, xD, o);
18724
18724
  }
18725
18725
  function yD({
18726
18726
  conf: e,
@@ -18734,8 +18734,8 @@ function yD({
18734
18734
  const {
18735
18735
  queryID: h,
18736
18736
  columnKey: p
18737
- } = B(e.series_name_key), m = C.keyBy(t[h], p), f = e.additional_series.reduce((b, I) => {
18738
- const w = B(I.name_key), z = C.keyBy(t[w.queryID], w.columnKey);
18737
+ } = B(e.series_name_key), m = k.keyBy(t[h], p), f = e.additional_series.reduce((b, I) => {
18738
+ const w = B(I.name_key), z = k.keyBy(t[w.queryID], w.columnKey);
18739
18739
  return {
18740
18740
  ...b,
18741
18741
  ...z
@@ -18746,7 +18746,7 @@ function yD({
18746
18746
  ...f
18747
18747
  };
18748
18748
  }, [t, e.series_name_key, e.additional_series]), l = Yt(s.triggerManager, Lf.id), c = Fe((h) => {
18749
- const p = C.get(o, h.name, {
18749
+ const p = k.get(o, h.name, {
18750
18750
  error: "rowData is not found"
18751
18751
  });
18752
18752
  l.forEach((m) => {
@@ -18774,7 +18774,7 @@ function vD({
18774
18774
  value: i
18775
18775
  } = ne(e.instanceData, "config"), {
18776
18776
  variables: s
18777
- } = e, a = T(() => C.defaults({}, i, Ra), [i]), o = e.data, {
18777
+ } = e, a = T(() => k.defaults({}, i, Ra), [i]), o = e.data, {
18778
18778
  width: l,
18779
18779
  height: c
18780
18780
  } = e.viewport;
@@ -18787,7 +18787,7 @@ function _D({
18787
18787
  const {
18788
18788
  t: n
18789
18789
  } = v();
18790
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: "md", pr: 40, sx: {
18790
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: "md", pr: 40, sx: {
18791
18791
  border: "1px solid #eee",
18792
18792
  position: "relative"
18793
18793
  }, children: [
@@ -18796,7 +18796,7 @@ function _D({
18796
18796
  }) => /* @__PURE__ */ r.jsx(te, { label: n("viz.radar_chart.series.series_name_field"), required: !0, sx: {
18797
18797
  flex: 1
18798
18798
  }, ...i }) }) }),
18799
- /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(g, { name: `additional_series.${t}.color_key`, control: e, render: ({
18799
+ /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(g, { name: `additional_series.${t}.color_key`, control: e, render: ({
18800
18800
  field: i
18801
18801
  }) => /* @__PURE__ */ r.jsx(te, { label: n("viz.radar_chart.style.color_field"), required: !0, clearable: !0, sx: {
18802
18802
  flex: 1
@@ -18833,7 +18833,7 @@ function wD({
18833
18833
  const {
18834
18834
  t: n
18835
18835
  } = v();
18836
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: "md", pr: 40, sx: {
18836
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: "md", pr: 40, sx: {
18837
18837
  border: "1px solid #eee",
18838
18838
  position: "relative"
18839
18839
  }, children: [
@@ -18863,7 +18863,7 @@ function wD({
18863
18863
  }, ...i, error: (a = s.error) == null ? void 0 : a.message });
18864
18864
  } })
18865
18865
  ] }),
18866
- /* @__PURE__ */ r.jsxs(k, { children: [
18866
+ /* @__PURE__ */ r.jsxs(C, { children: [
18867
18867
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("viz.radar_chart.metric.value_formatter"), labelPosition: "center" }),
18868
18868
  /* @__PURE__ */ r.jsx(g, { name: `dimensions.${t}.formatter`, control: e, render: ({
18869
18869
  field: i
@@ -18915,7 +18915,7 @@ function kD({
18915
18915
  });
18916
18916
  return Q(() => {
18917
18917
  c(s);
18918
- }, [s]), l(["series_name_key", "background", "label"]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(i), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
18918
+ }, [s]), l(["series_name_key", "background", "label"]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(i), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
18919
18919
  /* @__PURE__ */ r.jsx(lt, { canSubmit: d.isDirty && d.isValid }),
18920
18920
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "series", children: [
18921
18921
  /* @__PURE__ */ r.jsxs(_.List, { children: [
@@ -19048,7 +19048,7 @@ function MD(e) {
19048
19048
  enabled: !0
19049
19049
  }
19050
19050
  };
19051
- return C.defaultsDeep(t, e);
19051
+ return k.defaultsDeep(t, e);
19052
19052
  }
19053
19053
  function ED(e, {
19054
19054
  panelModel: t
@@ -19078,7 +19078,7 @@ function LD(e) {
19078
19078
  const t = {
19079
19079
  additional_series: []
19080
19080
  };
19081
- return C.defaultsDeep(t, e);
19081
+ return k.defaultsDeep(t, e);
19082
19082
  }
19083
19083
  function AD(e) {
19084
19084
  const t = {
@@ -19194,7 +19194,7 @@ function $D(e, t) {
19194
19194
  }
19195
19195
  function $f(e, t) {
19196
19196
  const n = B(e.x_axis.data_key), i = B(e.regression.y_axis_data_key);
19197
- return C.uniqBy(t.map((s) => [s[n.columnKey], s[i.columnKey]]), 0);
19197
+ return k.uniqBy(t.map((s) => [s[n.columnKey], s[i.columnKey]]), 0);
19198
19198
  }
19199
19199
  function OD(e, t) {
19200
19200
  const {
@@ -19222,7 +19222,7 @@ function FD(e, t) {
19222
19222
  plot: n,
19223
19223
  transform: i,
19224
19224
  group_by_key: s
19225
- } = e.regression, a = B(s), o = C.groupBy(t, a.columnKey);
19225
+ } = e.regression, a = B(s), o = k.groupBy(t, a.columnKey);
19226
19226
  return Object.entries(o).map(([l, c]) => {
19227
19227
  const d = $f(e, c);
19228
19228
  return {
@@ -19490,7 +19490,7 @@ function YD(e, t) {
19490
19490
  }];
19491
19491
  if (!t.regression.group_by_key)
19492
19492
  return [mu("", e, t)];
19493
- const n = B(t.regression.group_by_key), i = C.groupBy(e, n.columnKey);
19493
+ const n = B(t.regression.group_by_key), i = k.groupBy(e, n.columnKey);
19494
19494
  return Object.entries(i).map(([s, a]) => mu(s, a, t));
19495
19495
  }
19496
19496
  const XD = {
@@ -19654,7 +19654,7 @@ function nM({
19654
19654
  label: n("chart.regression_line.method.polynomial"),
19655
19655
  value: "polynomial"
19656
19656
  }], [i.language]);
19657
- return /* @__PURE__ */ r.jsxs(k, { children: [
19657
+ return /* @__PURE__ */ r.jsxs(C, { children: [
19658
19658
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "regression.name", control: e, render: ({
19659
19659
  field: l
19660
19660
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), sx: {
@@ -19683,7 +19683,7 @@ function nM({
19683
19683
  }, ...l })
19684
19684
  ) })
19685
19685
  ] }),
19686
- !a && /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
19686
+ !a && /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
19687
19687
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: n("chart.color.label") }),
19688
19688
  /* @__PURE__ */ r.jsx(g, { name: "regression.plot.color", control: e, render: ({
19689
19689
  field: l
@@ -19695,7 +19695,7 @@ function rM({
19695
19695
  control: e,
19696
19696
  watch: t
19697
19697
  }) {
19698
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
19698
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
19699
19699
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
19700
19700
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.name", control: e, render: ({
19701
19701
  field: n
@@ -19709,7 +19709,7 @@ function rM({
19709
19709
  }, ...n }) })
19710
19710
  ] }),
19711
19711
  /* @__PURE__ */ r.jsx($, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
19712
- /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.format", control: e, render: ({
19712
+ /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.format", control: e, render: ({
19713
19713
  field: n
19714
19714
  }) => /* @__PURE__ */ r.jsx(un, { ...n }) }) }),
19715
19715
  /* @__PURE__ */ r.jsx($, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
@@ -19741,7 +19741,7 @@ function iM({
19741
19741
  control: e,
19742
19742
  watch: t
19743
19743
  }) {
19744
- return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
19744
+ return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
19745
19745
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.name", control: e, render: ({
19746
19746
  field: n
19747
19747
  }) => /* @__PURE__ */ r.jsx(E, { label: "Y轴名称", sx: {
@@ -19771,7 +19771,7 @@ function sM({
19771
19771
  });
19772
19772
  return Q(() => {
19773
19773
  c(i);
19774
- }, [i]), o(["x_axis", "y_axis", "regression"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
19774
+ }, [i]), o(["x_axis", "y_axis", "regression"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
19775
19775
  /* @__PURE__ */ r.jsx(lt, { canSubmit: l.isDirty }),
19776
19776
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "X轴", orientation: "vertical", styles: {
19777
19777
  panel: {
@@ -19804,7 +19804,7 @@ function aM(e) {
19804
19804
  group_by_key: ""
19805
19805
  }
19806
19806
  };
19807
- return C.defaultsDeep(t, e);
19807
+ return k.defaultsDeep(t, e);
19808
19808
  }
19809
19809
  function oM(e, {
19810
19810
  panelModel: t
@@ -19947,7 +19947,7 @@ function mM({
19947
19947
  flexGrow: 1,
19948
19948
  display: "flex",
19949
19949
  flexDirection: "column"
19950
- }, children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", sx: {
19950
+ }, children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", sx: {
19951
19951
  flexGrow: 1
19952
19952
  }, children: [
19953
19953
  /* @__PURE__ */ r.jsxs(y, { position: "left", py: "md", pl: "md", sx: {
@@ -20093,7 +20093,7 @@ function _M(e) {
20093
20093
  label_overflow: Of()
20094
20094
  }
20095
20095
  };
20096
- return C.defaultsDeep(t, e);
20096
+ return k.defaultsDeep(t, e);
20097
20097
  }
20098
20098
  function jM(e) {
20099
20099
  const {
@@ -20139,7 +20139,7 @@ function SM(e) {
20139
20139
  trigger: "item"
20140
20140
  }
20141
20141
  };
20142
- return C.defaultsDeep({}, e, t);
20142
+ return k.defaultsDeep({}, e, t);
20143
20143
  }
20144
20144
  function kM(e, {
20145
20145
  panelModel: t
@@ -20185,7 +20185,7 @@ function CM(e) {
20185
20185
  }
20186
20186
  }
20187
20187
  };
20188
- return C.defaultsDeep(t, e);
20188
+ return k.defaultsDeep(t, e);
20189
20189
  }
20190
20190
  function IM(e, t) {
20191
20191
  const {
@@ -20452,7 +20452,7 @@ function OM({
20452
20452
  params: a,
20453
20453
  variables: n
20454
20454
  }, {
20455
- lodash: C,
20455
+ lodash: k,
20456
20456
  interpolate: Nr
20457
20457
  });
20458
20458
  } catch (l) {
@@ -20483,7 +20483,7 @@ function FM({
20483
20483
  rowData: s,
20484
20484
  variables: n
20485
20485
  }, {
20486
- lodash: C,
20486
+ lodash: k,
20487
20487
  interpolate: Nr
20488
20488
  });
20489
20489
  } catch (a) {
@@ -20725,7 +20725,7 @@ function KM(e, t, n) {
20725
20725
  default: ({
20726
20726
  value: c
20727
20727
  }) => c
20728
- }), a = C.uniq(yn(t, e.x_axis.data_key)), o = qM(e, t, n, i), l = {
20728
+ }), a = k.uniq(yn(t, e.x_axis.data_key)), o = qM(e, t, n, i), l = {
20729
20729
  xAxis: GM(e, a),
20730
20730
  yAxis: QM(e, s),
20731
20731
  series: o,
@@ -20793,10 +20793,10 @@ const JM = de(({
20793
20793
  t: o,
20794
20794
  i18n: l
20795
20795
  } = v(), c = (d, u) => {
20796
- const h = C.cloneDeep(e);
20797
- C.set(h, d, u), t(h);
20796
+ const h = k.cloneDeep(e);
20797
+ k.set(h, d, u), t(h);
20798
20798
  };
20799
- return /* @__PURE__ */ r.jsxs(k, { children: [
20799
+ return /* @__PURE__ */ r.jsxs(C, { children: [
20800
20800
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: o("chart.reference_area.content.label"), labelPosition: "right" }),
20801
20801
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
20802
20802
  /* @__PURE__ */ r.jsx(E, { label: o("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
@@ -20807,14 +20807,14 @@ const JM = de(({
20807
20807
  n && /* @__PURE__ */ r.jsx(q, { label: o("chart.x_axis.label"), data: n, value: e.xAxisIndex, onChange: (d) => c("xAxisIndex", d) }),
20808
20808
  i && /* @__PURE__ */ r.jsx(q, { label: o("chart.y_axis.label"), data: i, value: e.yAxisIndex, onChange: (d) => c("xAxisIndex", d) })
20809
20809
  ] }),
20810
- /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
20810
+ /* @__PURE__ */ r.jsxs(C, { spacing: 0, children: [
20811
20811
  /* @__PURE__ */ r.jsx(S, { size: 14, color: "#212529", fw: 500, children: o("chart.reference_area.endpoint.left_bottom_point") }),
20812
20812
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
20813
20813
  /* @__PURE__ */ r.jsx(q, { icon: /* @__PURE__ */ r.jsx(S, { children: "x" }), data: s, value: e.leftBottomPoint.x_data_key, onChange: (d) => c("leftBottomPoint.x_data_key", d ?? ""), clearable: !0 }),
20814
20814
  /* @__PURE__ */ r.jsx(q, { icon: /* @__PURE__ */ r.jsx(S, { children: "y" }), data: s, value: e.leftBottomPoint.y_data_key, onChange: (d) => c("leftBottomPoint.y_data_key", d ?? ""), clearable: !0 })
20815
20815
  ] })
20816
20816
  ] }),
20817
- /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
20817
+ /* @__PURE__ */ r.jsxs(C, { spacing: 0, children: [
20818
20818
  /* @__PURE__ */ r.jsx(S, { size: 14, color: "#212529", fw: 500, children: o("chart.reference_area.endpoint.right_top_point") }),
20819
20819
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
20820
20820
  /* @__PURE__ */ r.jsx(q, { icon: /* @__PURE__ */ r.jsx(S, { children: "x" }), data: s, value: e.rightTopPoint.x_data_key, onChange: (d) => c("rightTopPoint.x_data_key", d ?? ""), clearable: !0 }),
@@ -20822,11 +20822,11 @@ const JM = de(({
20822
20822
  ] })
20823
20823
  ] }),
20824
20824
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: o("chart.style.label"), labelPosition: "right" }),
20825
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
20825
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
20826
20826
  /* @__PURE__ */ r.jsx(S, { size: 14, children: o("chart.color.background_color") }),
20827
20827
  /* @__PURE__ */ r.jsx(kt, { value: e.itemStyle.color, onChange: (d) => c("itemStyle.color", d) })
20828
20828
  ] }),
20829
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
20829
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
20830
20830
  /* @__PURE__ */ r.jsx(S, { size: 14, children: o("chart.color.text_color") }),
20831
20831
  /* @__PURE__ */ r.jsx(kt, { value: e.label.color, onChange: (d) => c("label.color", d) })
20832
20832
  ] })
@@ -20879,7 +20879,7 @@ function eE({
20879
20879
  index: u
20880
20880
  }) => /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${u}`, control: e, render: ({
20881
20881
  field: h
20882
- }) => /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(JM, { variableOptions: a, yAxisOptions: l, ...h }) }) }) });
20882
+ }) => /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(JM, { variableOptions: a, yAxisOptions: l, ...h }) }) }) });
20883
20883
  }
20884
20884
  function tE({
20885
20885
  control: e,
@@ -20891,7 +20891,7 @@ function tE({
20891
20891
  const {
20892
20892
  t: a
20893
20893
  } = v(), o = n(`reference_lines.${t}.orientation`);
20894
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
20894
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
20895
20895
  position: "relative"
20896
20896
  }, children: [
20897
20897
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -20915,7 +20915,7 @@ function tE({
20915
20915
  flex: 1
20916
20916
  }, ...l }) }),
20917
20917
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
20918
- /* @__PURE__ */ r.jsxs(k, { children: [
20918
+ /* @__PURE__ */ r.jsxs(C, { children: [
20919
20919
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
20920
20920
  field: l
20921
20921
  }) => /* @__PURE__ */ r.jsx(vr, { sx: {
@@ -20955,7 +20955,7 @@ function tE({
20955
20955
  }, ...l })
20956
20956
  ) })
20957
20957
  ] }),
20958
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
20958
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
20959
20959
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: a("chart.color.label") }),
20960
20960
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
20961
20961
  field: l
@@ -21046,7 +21046,7 @@ const rE = ({
21046
21046
  }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: s, sx: {
21047
21047
  flexGrow: 0
21048
21048
  }, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
21049
- /* @__PURE__ */ r.jsx(He, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
21049
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
21050
21050
  /* @__PURE__ */ r.jsx(rE, { value: o.func_content, onChange: u }),
21051
21051
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
21052
21052
  /* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(an, { size: 20 }), children: n("common.actions.reset_to_default") }),
@@ -21116,7 +21116,7 @@ const rE = ({
21116
21116
  tooltip: o
21117
21117
  });
21118
21118
  };
21119
- return /* @__PURE__ */ r.jsxs(k, { ref: n, spacing: 0, children: [
21119
+ return /* @__PURE__ */ r.jsxs(C, { ref: n, spacing: 0, children: [
21120
21120
  /* @__PURE__ */ r.jsx(sa, { sectionTitle: i("chart.axis.overflow.section_title.on_axis"), value: e.label, onChange: s }),
21121
21121
  /* @__PURE__ */ r.jsx(sa, { sectionTitle: i("chart.axis.overflow.section_title.in_tooltip"), value: e.tooltip, onChange: a })
21122
21122
  ] });
@@ -21128,7 +21128,7 @@ function cE({
21128
21128
  const {
21129
21129
  t: n
21130
21130
  } = v();
21131
- return t(["scatter"]), /* @__PURE__ */ r.jsxs(k, { children: [
21131
+ return t(["scatter"]), /* @__PURE__ */ r.jsxs(C, { children: [
21132
21132
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
21133
21133
  /* @__PURE__ */ r.jsx(g, { name: "scatter.name_data_key", control: e, render: ({
21134
21134
  field: i
@@ -21166,7 +21166,7 @@ function dE({
21166
21166
  const {
21167
21167
  t: n
21168
21168
  } = v();
21169
- return /* @__PURE__ */ r.jsxs(k, { children: [
21169
+ return /* @__PURE__ */ r.jsxs(C, { children: [
21170
21170
  /* @__PURE__ */ r.jsx(g, { name: "stats.top", control: e, render: ({
21171
21171
  field: i
21172
21172
  }) => /* @__PURE__ */ r.jsx(hr, { label: n("chart.stats.template.above_chart"), styles: {
@@ -21192,7 +21192,7 @@ const uE = ({
21192
21192
  const {
21193
21193
  t: n
21194
21194
  } = v();
21195
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
21195
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
21196
21196
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
21197
21197
  field: i
21198
21198
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -21248,7 +21248,7 @@ function pE({
21248
21248
  label: n("chart.tooltip.trigger.x_axis"),
21249
21249
  value: "axis"
21250
21250
  }], [i.language]);
21251
- return /* @__PURE__ */ r.jsxs(k, { children: [
21251
+ return /* @__PURE__ */ r.jsxs(C, { children: [
21252
21252
  /* @__PURE__ */ r.jsx(g, { name: "tooltip.trigger", control: e, render: ({
21253
21253
  field: a
21254
21254
  }) => (
@@ -21268,7 +21268,7 @@ function mE({
21268
21268
  const {
21269
21269
  t: n
21270
21270
  } = v();
21271
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
21271
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
21272
21272
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
21273
21273
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
21274
21274
  field: i
@@ -21304,7 +21304,7 @@ function fE({
21304
21304
  const {
21305
21305
  t: n
21306
21306
  } = v();
21307
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: "0", sx: {
21307
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: "0", sx: {
21308
21308
  position: "relative"
21309
21309
  }, children: [
21310
21310
  /* @__PURE__ */ r.jsx($, { mb: -15, mt: 15, variant: "dashed", label: n("chart.y_axis.y_axis_name"), labelPosition: "center" }),
@@ -21326,13 +21326,13 @@ function fE({
21326
21326
  }) => /* @__PURE__ */ r.jsx(If, { sx: {
21327
21327
  flex: 1
21328
21328
  }, ...i }) }) }),
21329
- /* @__PURE__ */ r.jsxs(k, { children: [
21329
+ /* @__PURE__ */ r.jsxs(C, { children: [
21330
21330
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.y_axis.label_format"), labelPosition: "center" }),
21331
21331
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
21332
21332
  field: i
21333
21333
  }) => /* @__PURE__ */ r.jsx(un, { ...i }) })
21334
21334
  ] }),
21335
- /* @__PURE__ */ r.jsxs(k, { children: [
21335
+ /* @__PURE__ */ r.jsxs(C, { children: [
21336
21336
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.y_axis.value_range"), labelPosition: "center" }),
21337
21337
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
21338
21338
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.min`, control: e, render: ({
@@ -21392,7 +21392,7 @@ function gE({
21392
21392
  });
21393
21393
  return Q(() => {
21394
21394
  d(a);
21395
- }, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
21395
+ }, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
21396
21396
  /* @__PURE__ */ r.jsx(lt, { canSubmit: u.isDirty }),
21397
21397
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "X Axis", orientation: "vertical", styles: {
21398
21398
  tab: {
@@ -21683,7 +21683,7 @@ function LE({
21683
21683
  });
21684
21684
  return O.useEffect(() => {
21685
21685
  c(i);
21686
- }, [i]), o(["content", "vertical_align"]), /* @__PURE__ */ r.jsx("form", { onSubmit: a(t), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
21686
+ }, [i]), o(["content", "vertical_align"]), /* @__PURE__ */ r.jsx("form", { onSubmit: a(t), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
21687
21687
  /* @__PURE__ */ r.jsx(lt, { canSubmit: l.isDirty }),
21688
21688
  /* @__PURE__ */ r.jsx(g, { control: s, name: "vertical_align", render: ({
21689
21689
  field: d
@@ -21760,7 +21760,7 @@ function VE(e) {
21760
21760
  const t = FE(e).map((s) => ({
21761
21761
  ...s,
21762
21762
  children: []
21763
- })), n = C.keyBy(t, (s) => s.id), i = [];
21763
+ })), n = k.keyBy(t, (s) => s.id), i = [];
21764
21764
  return t.forEach((s) => {
21765
21765
  if (!s.parent_id || !n[s.parent_id]) {
21766
21766
  i.push(s);
@@ -21912,7 +21912,7 @@ function KE({
21912
21912
  const {
21913
21913
  t: n
21914
21914
  } = v();
21915
- return t(["label_key", "value_key", "group_key"]), /* @__PURE__ */ r.jsxs(k, { children: [
21915
+ return t(["label_key", "value_key", "group_key"]), /* @__PURE__ */ r.jsxs(C, { children: [
21916
21916
  /* @__PURE__ */ r.jsx(g, { name: "label_key", control: e, render: ({
21917
21917
  field: i
21918
21918
  }) => /* @__PURE__ */ r.jsx(te, { label: n("common.name_data_field"), required: !0, ...i }) }),
@@ -21941,7 +21941,7 @@ const YE = ({
21941
21941
  label: n("viz.sunburst_chart.label.rotate.none"),
21942
21942
  value: "0"
21943
21943
  }], [i.language]);
21944
- return /* @__PURE__ */ r.jsxs(k, { children: [
21944
+ return /* @__PURE__ */ r.jsxs(C, { children: [
21945
21945
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
21946
21946
  /* @__PURE__ */ r.jsx(g, { name: `levels.${t}.r0`, control: e, render: ({
21947
21947
  field: a
@@ -22027,7 +22027,7 @@ function JE({
22027
22027
  } = v(), {
22028
22028
  value: n,
22029
22029
  set: i
22030
- } = ne(e.instanceData, "config"), s = T(() => xt({}, n, Tc), [n]), a = T(() => C.clone(s), [s]), {
22030
+ } = ne(e.instanceData, "config"), s = T(() => xt({}, n, Tc), [n]), a = T(() => k.clone(s), [s]), {
22031
22031
  control: o,
22032
22032
  handleSubmit: l,
22033
22033
  watch: c,
@@ -22040,7 +22040,7 @@ function JE({
22040
22040
  u(a);
22041
22041
  }, [a]), c(["label_key", "value_key", "group_key", "levels"]);
22042
22042
  const [h, p] = X("Data");
22043
- return /* @__PURE__ */ r.jsx("form", { onSubmit: l(i), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
22043
+ return /* @__PURE__ */ r.jsx("form", { onSubmit: l(i), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
22044
22044
  /* @__PURE__ */ r.jsx(lt, { canSubmit: d.isDirty }),
22045
22045
  /* @__PURE__ */ r.jsxs(_, { value: h, onTabChange: p, orientation: "vertical", styles: {
22046
22046
  tab: {
@@ -22230,7 +22230,7 @@ const qf = ["function text({ value, row_data }, utils) {", " return value", "
22230
22230
  header: e,
22231
22231
  cx: t
22232
22232
  }) => {
22233
- const n = C.get(e.column.columnDef.meta, "align", "left");
22233
+ const n = k.get(e.column.columnDef.meta, "align", "left");
22234
22234
  return /* @__PURE__ */ r.jsxs(S, { className: t("table-head-cell", {
22235
22235
  "table-head-cell--sortable": e.column.getCanSort()
22236
22236
  }), onClick: e.column.getToggleSortingHandler(), align: n, sx: {
@@ -22529,7 +22529,7 @@ function jL(e) {
22529
22529
  column: +u
22530
22530
  });
22531
22531
  };
22532
- return s ? /* @__PURE__ */ r.jsxs(k, { children: [
22532
+ return s ? /* @__PURE__ */ r.jsxs(C, { children: [
22533
22533
  /* @__PURE__ */ r.jsx(Xi, { icon: /* @__PURE__ */ r.jsx(Bi, { size: "1rem" }), color: "gray", children: /* @__PURE__ */ r.jsxs(ma, { i18nKey: "viz.table.click_cell.why_column_data_field", children: [
22534
22534
  "Option ",
22535
22535
  /* @__PURE__ */ r.jsx(Nu, { children: "Use original data columns" }),
@@ -22817,7 +22817,7 @@ const AL = de((e, t) => {
22817
22817
  var I;
22818
22818
  u(b), (I = e.onChange) == null || I.call(e, b);
22819
22819
  };
22820
- return /* @__PURE__ */ r.jsxs(k, { align: "stretch", children: [
22820
+ return /* @__PURE__ */ r.jsxs(C, { align: "stretch", children: [
22821
22821
  /* @__PURE__ */ r.jsx(Fk, { label: n("viz.table.column.cell_background"), value: s || "none", onChange: p }),
22822
22822
  s === "static" && /* @__PURE__ */ r.jsx(kt, { value: o, onChange: m }),
22823
22823
  s === "interpolation" && /* @__PURE__ */ r.jsx(Ok, { colorManager: i, value: d, onChange: f })
@@ -22857,7 +22857,7 @@ const AL = de((e, t) => {
22857
22857
  /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: a, sx: {
22858
22858
  flexGrow: 0
22859
22859
  }, children: i("viz.table.column.custom_cell_content") }),
22860
- /* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.table.column.custom_cell_content"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
22860
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.table.column.custom_cell_content"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(C, { children: [
22861
22861
  /* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(lf, {}) }),
22862
22862
  /* @__PURE__ */ r.jsx(R, { sx: {
22863
22863
  position: "relative"
@@ -22883,7 +22883,7 @@ const AL = de((e, t) => {
22883
22883
  const {
22884
22884
  t: i
22885
22885
  } = v(), s = n(`columns.${t}.value_type`), a = n("query_id");
22886
- return /* @__PURE__ */ r.jsxs(k, { my: 0, sx: {
22886
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, sx: {
22887
22887
  position: "relative"
22888
22888
  }, children: [
22889
22889
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
@@ -22963,7 +22963,7 @@ function FL({
22963
22963
  const {
22964
22964
  t: n
22965
22965
  } = v();
22966
- return t(["horizontalSpacing", "verticalSpacing", "fontSize", "striped", "highlightOnHover"]), /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
22966
+ return t(["horizontalSpacing", "verticalSpacing", "fontSize", "striped", "highlightOnHover"]), /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
22967
22967
  /* @__PURE__ */ r.jsxs(y, { position: "apart", mb: "lg", grow: !0, sx: {
22968
22968
  "> *": {
22969
22969
  flexGrow: 1
@@ -23353,7 +23353,7 @@ function JL({
23353
23353
  return O.useEffect(() => {
23354
23354
  const l = zs.find((c) => c.value === s);
23355
23355
  l && n(l.label);
23356
- }, [s]), /* @__PURE__ */ r.jsxs(k, { spacing: 0, mt: "sm", mb: "lg", children: [
23356
+ }, [s]), /* @__PURE__ */ r.jsxs(C, { spacing: 0, mt: "sm", mb: "lg", children: [
23357
23357
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: e }),
23358
23358
  /* @__PURE__ */ r.jsx(R, { px: "1.5em", children: /* @__PURE__ */ r.jsx(Fg, { label: null, marks: zs, value: s, onChange: a, step: 25, ref: i }) })
23359
23359
  ] });
@@ -23394,7 +23394,7 @@ const Xf = O.forwardRef(JL), ZL = ({
23394
23394
  /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: a, sx: {
23395
23395
  flexGrow: 0
23396
23396
  }, children: i("viz.text.content.edit") }),
23397
- /* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.text.content.label"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
23397
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.text.content.label"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(C, { children: [
23398
23398
  /* @__PURE__ */ r.jsx(ZL, { value: l, onChange: c }),
23399
23399
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
23400
23400
  /* @__PURE__ */ r.jsx(M, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(an, { size: 20 }), children: i("common.actions.reset_to_default") }),
@@ -23442,9 +23442,9 @@ function tA({
23442
23442
  });
23443
23443
  return O.useEffect(() => {
23444
23444
  u(a);
23445
- }, [a]), c(["func_content", "horizontal_align", "font_size", "font_weight"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
23445
+ }, [a]), c(["func_content", "horizontal_align", "font_size", "font_weight"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
23446
23446
  /* @__PURE__ */ r.jsx(lt, { canSubmit: d.isDirty }),
23447
- /* @__PURE__ */ r.jsxs(k, { spacing: 10, children: [
23447
+ /* @__PURE__ */ r.jsxs(C, { spacing: 10, children: [
23448
23448
  /* @__PURE__ */ r.jsx(g, { name: "func_content", control: o, render: ({
23449
23449
  field: h
23450
23450
  }) => /* @__PURE__ */ r.jsx(eA, { ...h }) }),
@@ -23523,7 +23523,7 @@ const aA = {
23523
23523
  /* @__PURE__ */ r.jsx("path", { d: "M46.87 15H20.69C18.38 15 16.5 16.88 16.5 19.19V26.22H18.38V23.45H49.18V47.68H18.38V41.07H16.5V49.55H51.05V19.19C51.06 16.88 49.18 15 46.87 15ZM39.46 20.73C38.81 20.73 38.29 20.2 38.29 19.56C38.29 18.92 38.82 18.39 39.46 18.39C40.11 18.39 40.63 18.92 40.63 19.56C40.63 20.2 40.11 20.73 39.46 20.73ZM43.22 20.73C42.57 20.73 42.05 20.2 42.05 19.56C42.05 18.92 42.58 18.39 43.22 18.39C43.87 18.39 44.39 18.92 44.39 19.56C44.39 20.2 43.87 20.73 43.22 20.73ZM46.97 20.73C46.32 20.73 45.8 20.2 45.8 19.56C45.8 18.92 46.33 18.39 46.97 18.39C47.62 18.39 48.14 18.92 48.14 19.56C48.14 20.2 47.62 20.73 46.97 20.73Z", fill: "#9399A5" })
23524
23524
  ] });
23525
23525
  function vu(e, t) {
23526
- const n = C.get(e, t, "");
23526
+ const n = k.get(e, t, "");
23527
23527
  if (n)
23528
23528
  throw new Error(n);
23529
23529
  }
@@ -23596,7 +23596,7 @@ const cA = ({
23596
23596
  return /* @__PURE__ */ r.jsx(mr, { sx: {
23597
23597
  width: "100%",
23598
23598
  height: a
23599
- }, children: /* @__PURE__ */ r.jsxs(k, { align: "center", spacing: 20, children: [
23599
+ }, children: /* @__PURE__ */ r.jsxs(C, { align: "center", spacing: 20, children: [
23600
23600
  /* @__PURE__ */ r.jsx(oA, {}),
23601
23601
  /* @__PURE__ */ r.jsx(_u, { message: i })
23602
23602
  ] }) });
@@ -23643,7 +23643,7 @@ function hA({
23643
23643
  });
23644
23644
  return Q(() => {
23645
23645
  c(i);
23646
- }, [i]), o(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(k, { children: [
23646
+ }, [i]), o(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(C, { children: [
23647
23647
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
23648
23648
  /* @__PURE__ */ r.jsx(g, { name: "expertSystemURL", control: s, render: ({
23649
23649
  field: d
@@ -23973,7 +23973,7 @@ function EA({
23973
23973
  const h = B(u.data_key);
23974
23974
  c.push({
23975
23975
  label: u.name,
23976
- value: MA(C.get(d, h.columnKey, "")),
23976
+ value: MA(k.get(d, h.columnKey, "")),
23977
23977
  style: {
23978
23978
  label: "",
23979
23979
  value: ""
@@ -23982,7 +23982,7 @@ function EA({
23982
23982
  }), c;
23983
23983
  }
23984
23984
  function LA(e, t, n) {
23985
- const i = B(e.calendar.data_key), s = C.keyBy(t[i.queryID], i.columnKey);
23985
+ const i = B(e.calendar.data_key), s = k.keyBy(t[i.queryID], i.columnKey);
23986
23986
  return De.getTooltip({
23987
23987
  formatter: function(a) {
23988
23988
  const l = EA({
@@ -23999,7 +23999,7 @@ function LA(e, t, n) {
23999
23999
  <div style="${u.style.value}">${u.value}
24000
24000
  </td>
24001
24001
  </tr>
24002
- `), c = C.get(a.value, 0);
24002
+ `), c = k.get(a.value, 0);
24003
24003
  return `
24004
24004
  <table style="width: auto">
24005
24005
  <thead>
@@ -24023,7 +24023,7 @@ function LA(e, t, n) {
24023
24023
  }
24024
24024
  const AA = (e) => V(e).get("year");
24025
24025
  function RA(e) {
24026
- const t = C.groupBy(e, (o) => o.value[2]), n = Object.keys(t), i = e.map((o) => V(o.value[0]).valueOf()), s = C.min(i), a = C.max(i);
24026
+ const t = k.groupBy(e, (o) => o.value[2]), n = Object.keys(t), i = e.map((o) => V(o.value[0]).valueOf()), s = k.min(i), a = k.max(i);
24027
24027
  return {
24028
24028
  minDate: s ?? 0,
24029
24029
  maxDate: a ?? 0,
@@ -24040,7 +24040,7 @@ function PA(e, t, n) {
24040
24040
  min: a,
24041
24041
  max: o
24042
24042
  } = s, l = TA(e), c = B(e.calendar.data_key), d = B(e.heat_block.data_key), u = t[c.queryID].map((w) => {
24043
- const z = C.get(w, c.columnKey), A = C.get(w, d.columnKey), L = AA(w[c.columnKey]), P = {
24043
+ const z = k.get(w, c.columnKey), A = k.get(w, d.columnKey), L = AA(w[c.columnKey]), P = {
24044
24044
  value: [z, A, L]
24045
24045
  }, {
24046
24046
  followVisualMap: ee,
@@ -24088,7 +24088,7 @@ function OA({
24088
24088
  variables: a
24089
24089
  }) {
24090
24090
  const o = Wr(t, e.calendar.data_key), l = Yt(s.triggerManager, Jf.id), c = Fe((h) => {
24091
- const [p, m] = h.value, f = C.get(o, p, {
24091
+ const [p, m] = h.value, f = k.get(o, p, {
24092
24092
  error: "rowData is not found"
24093
24093
  });
24094
24094
  l.forEach((b) => {
@@ -24119,7 +24119,7 @@ function FA({
24119
24119
  value: i
24120
24120
  } = ne(e.instanceData, "config"), {
24121
24121
  variables: s
24122
- } = e, a = T(() => C.defaults({}, i, Ec), [i]), o = e.data, {
24122
+ } = e, a = T(() => k.defaults({}, i, Ec), [i]), o = e.data, {
24123
24123
  width: l,
24124
24124
  height: c
24125
24125
  } = e.viewport;
@@ -24139,7 +24139,7 @@ function NA({
24139
24139
  const {
24140
24140
  t: n
24141
24141
  } = v();
24142
- return t(["calendar"]), /* @__PURE__ */ r.jsxs(k, { children: [
24142
+ return t(["calendar"]), /* @__PURE__ */ r.jsxs(C, { children: [
24143
24143
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "calendar.data_key", control: e, render: ({
24144
24144
  field: i
24145
24145
  }) => /* @__PURE__ */ r.jsx(te, { label: n("common.data_field"), sx: {
@@ -24162,7 +24162,7 @@ function qA({
24162
24162
  const {
24163
24163
  t: n
24164
24164
  } = v();
24165
- return t(["heat_block"]), /* @__PURE__ */ r.jsxs(k, { children: [
24165
+ return t(["heat_block"]), /* @__PURE__ */ r.jsxs(C, { children: [
24166
24166
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
24167
24167
  /* @__PURE__ */ r.jsx(g, { name: "heat_block.data_key", control: e, render: ({
24168
24168
  field: i
@@ -24188,7 +24188,7 @@ const BA = ({
24188
24188
  const {
24189
24189
  t: n
24190
24190
  } = v();
24191
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
24191
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
24192
24192
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
24193
24193
  field: i
24194
24194
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -24243,7 +24243,7 @@ function GA({
24243
24243
  } = v(), {
24244
24244
  value: n,
24245
24245
  set: i
24246
- } = ne(e.instanceData, "config"), s = T(() => n ? Ee({}, n) : Ec, [n]), a = T(() => C.cloneDeep(s), [s]);
24246
+ } = ne(e.instanceData, "config"), s = T(() => n ? Ee({}, n) : Ec, [n]), a = T(() => k.cloneDeep(s), [s]);
24247
24247
  Q(() => {
24248
24248
  !Dt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
24249
24249
  }, [s, a]);
@@ -24258,7 +24258,7 @@ function GA({
24258
24258
  } = o;
24259
24259
  return Q(() => {
24260
24260
  h(a);
24261
- }, [a]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: c(i), children: [
24261
+ }, [a]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: c(i), children: [
24262
24262
  /* @__PURE__ */ r.jsx(lt, { canSubmit: u.isDirty }),
24263
24263
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "Calendar", orientation: "vertical", styles: {
24264
24264
  tab: {
@@ -24464,11 +24464,11 @@ function tR(e, t, n, i) {
24464
24464
  }
24465
24465
  function Oa(e, t, n) {
24466
24466
  const i = yn(e, t), s = yn(e, n);
24467
- return C.zip(s, i);
24467
+ return k.zip(s, i);
24468
24468
  }
24469
24469
  function nR(e, t, n, i) {
24470
24470
  const s = Oa(t, n, i);
24471
- return C.unionBy(s, e, 0);
24471
+ return k.unionBy(s, e, 0);
24472
24472
  }
24473
24473
  function rR({
24474
24474
  dataTemplate: e,
@@ -24495,7 +24495,7 @@ function iR({
24495
24495
  value_data_key: s,
24496
24496
  valueTypedXAxis: a
24497
24497
  });
24498
- const o = Oa(t, i, s), l = C.groupBy(o, "0");
24498
+ const o = Oa(t, i, s), l = k.groupBy(o, "0");
24499
24499
  return e.map(([d]) => {
24500
24500
  const h = l[d].map((m) => m[1]), p = ul(h, n);
24501
24501
  return [d, p];
@@ -24510,7 +24510,7 @@ function sR({
24510
24510
  const {
24511
24511
  queryID: s,
24512
24512
  columnKey: a
24513
- } = B(e), o = C.groupBy(t[s], a);
24513
+ } = B(e), o = k.groupBy(t[s], a);
24514
24514
  return Object.entries(o).forEach(([l, c]) => {
24515
24515
  o[l] = Oa({
24516
24516
  [s]: c
@@ -24708,7 +24708,7 @@ function pR(e, t) {
24708
24708
  function mR(e, t, n) {
24709
24709
  if (!e.y_axis.data_key)
24710
24710
  return {};
24711
- const i = uR(t, n), s = dR(e), a = B(e.y_axis.data_key), o = C.uniq(t[a.queryID].map((u) => u[a.columnKey])), l = o.every((u) => !Number.isNaN(Number(u))), c = oR(e, o, l, t, s, n, i);
24711
+ const i = uR(t, n), s = dR(e), a = B(e.y_axis.data_key), o = k.uniq(t[a.queryID].map((u) => u[a.columnKey])), l = o.every((u) => !Number.isNaN(Number(u))), c = oR(e, o, l, t, s, n, i);
24712
24712
  return {
24713
24713
  xAxis: hR(e, s),
24714
24714
  yAxis: pR(e, o),
@@ -24727,7 +24727,7 @@ function fR({
24727
24727
  variables: a
24728
24728
  }) {
24729
24729
  const o = Wr(t, e.y_axis.data_key), l = Yt(s.triggerManager, xc.id), c = Fe((h) => {
24730
- const p = C.get(o, h.name, {
24730
+ const p = k.get(o, h.name, {
24731
24731
  error: "rowData is not found"
24732
24732
  });
24733
24733
  l.forEach((m) => {
@@ -24771,7 +24771,7 @@ function gR({
24771
24771
  const {
24772
24772
  t: a
24773
24773
  } = v(), o = n(`reference_lines.${t}.orientation`);
24774
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, pt: 10, sx: {
24774
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, pt: 10, sx: {
24775
24775
  position: "relative"
24776
24776
  }, children: [
24777
24777
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -24795,7 +24795,7 @@ function gR({
24795
24795
  flex: 1
24796
24796
  }, ...l }) }),
24797
24797
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
24798
- /* @__PURE__ */ r.jsxs(k, { children: [
24798
+ /* @__PURE__ */ r.jsxs(C, { children: [
24799
24799
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
24800
24800
  field: l
24801
24801
  }) => /* @__PURE__ */ r.jsx(vr, { sx: {
@@ -24828,7 +24828,7 @@ function gR({
24828
24828
  }, ...l })
24829
24829
  ) })
24830
24830
  ] }),
24831
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
24831
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
24832
24832
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: a("chart.color.label") }),
24833
24833
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
24834
24834
  field: l
@@ -24923,7 +24923,7 @@ function vR({
24923
24923
  const {
24924
24924
  t: s
24925
24925
  } = v();
24926
- return /* @__PURE__ */ r.jsxs(k, { my: 0, p: 0, sx: {
24926
+ return /* @__PURE__ */ r.jsxs(C, { my: 0, p: 0, sx: {
24927
24927
  position: "relative"
24928
24928
  }, children: [
24929
24929
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -24963,7 +24963,7 @@ function vR({
24963
24963
  }) => /* @__PURE__ */ r.jsx(wi, { label: s("chart.label_position.label"), ...a, withOffOption: !0, onChange: (o) => {
24964
24964
  o && a.onChange(o);
24965
24965
  } }) }),
24966
- /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
24966
+ /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
24967
24967
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: s("chart.color.label") }),
24968
24968
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
24969
24969
  field: a
@@ -25023,7 +25023,7 @@ function wR({
25023
25023
  const {
25024
25024
  t: n
25025
25025
  } = v();
25026
- return /* @__PURE__ */ r.jsxs(k, { my: 10, p: "0", sx: {
25026
+ return /* @__PURE__ */ r.jsxs(C, { my: 10, p: "0", sx: {
25027
25027
  position: "relative"
25028
25028
  }, children: [
25029
25029
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -25038,13 +25038,13 @@ function wR({
25038
25038
  flex: 1
25039
25039
  }, ...i }) })
25040
25040
  ] }),
25041
- /* @__PURE__ */ r.jsxs(k, { children: [
25041
+ /* @__PURE__ */ r.jsxs(C, { children: [
25042
25042
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.x_axis.label_format"), labelPosition: "center" }),
25043
25043
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
25044
25044
  field: i
25045
25045
  }) => /* @__PURE__ */ r.jsx(un, { ...i }) })
25046
25046
  ] }),
25047
- /* @__PURE__ */ r.jsxs(k, { children: [
25047
+ /* @__PURE__ */ r.jsxs(C, { children: [
25048
25048
  /* @__PURE__ */ r.jsx($, { mb: -15, variant: "dashed", label: n("chart.x_axis.value_range"), labelPosition: "center" }),
25049
25049
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
25050
25050
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.min`, control: e, render: ({
@@ -25083,7 +25083,7 @@ function kR({
25083
25083
  const {
25084
25084
  t: n
25085
25085
  } = v();
25086
- return t(["y_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
25086
+ return t(["y_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
25087
25087
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
25088
25088
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.name", control: e, render: ({
25089
25089
  field: i
@@ -25115,7 +25115,7 @@ function CR({
25115
25115
  set: i
25116
25116
  } = ne(e.instanceData, "config"), {
25117
25117
  variables: s
25118
- } = e, a = T(() => C.defaultsDeep({}, n, Lc), [n]), {
25118
+ } = e, a = T(() => k.defaultsDeep({}, n, Lc), [n]), {
25119
25119
  control: o,
25120
25120
  handleSubmit: l,
25121
25121
  watch: c,
@@ -25126,7 +25126,7 @@ function CR({
25126
25126
  });
25127
25127
  return Q(() => {
25128
25128
  u(a);
25129
- }, [a]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
25129
+ }, [a]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
25130
25130
  /* @__PURE__ */ r.jsx(lt, { canSubmit: d.isDirty }),
25131
25131
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "Series", orientation: "vertical", styles: {
25132
25132
  tab: {
@@ -25319,7 +25319,7 @@ function AR(e, t, n) {
25319
25319
  xAxisIndex: 0,
25320
25320
  yAxisIndex: 0,
25321
25321
  data: t.map((s) => {
25322
- const a = n[s].length, c = (C.countBy(n[s], (d) => d.level.diff === 0).true ?? 0) / a;
25322
+ const a = n[s].length, c = (k.countBy(n[s], (d) => d.level.diff === 0).true ?? 0) / a;
25323
25323
  return [s, "_y", c];
25324
25324
  }),
25325
25325
  label: {
@@ -25387,9 +25387,9 @@ function RR([e, t]) {
25387
25387
  function PR(e, t, n, i) {
25388
25388
  var c, d;
25389
25389
  const s = t.map((u) => {
25390
- const h = n[u], p = C.sumBy(h, (m) => m.level.diff);
25390
+ const h = n[u], p = k.sumBy(h, (m) => m.level.diff);
25391
25391
  return [u, p / h.length];
25392
- }), a = Number(((c = C.maxBy(s, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = C.minBy(s, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l = Nr([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
25392
+ }), a = Number(((c = k.maxBy(s, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = k.minBy(s, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l = Nr([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
25393
25393
  return {
25394
25394
  type: "bar",
25395
25395
  name: "平均偏差",
@@ -25485,7 +25485,7 @@ function $R([e, t, n, i]) {
25485
25485
  function OR(e, t, n, i) {
25486
25486
  const s = {};
25487
25487
  t.forEach((u) => {
25488
- const h = C.countBy(n[u], (m) => m.level.diff), p = C.sum(Object.values(h));
25488
+ const h = k.countBy(n[u], (m) => m.level.diff), p = k.sum(Object.values(h));
25489
25489
  Object.entries(h).forEach(([m, f]) => {
25490
25490
  s[m] || (s[m] = []);
25491
25491
  const b = f / p;
@@ -25557,7 +25557,7 @@ function OR(e, t, n, i) {
25557
25557
  }
25558
25558
  function FR(e, t, n, i) {
25559
25559
  const s = B(t.data_key), a = t.name, o = n.map((l) => {
25560
- const c = C.sumBy(i[l], s.columnKey);
25560
+ const c = k.sumBy(i[l], s.columnKey);
25561
25561
  return [l, c];
25562
25562
  });
25563
25563
  return {
@@ -25817,7 +25817,7 @@ function UR(e, t) {
25817
25817
  };
25818
25818
  }
25819
25819
  function KR(e, t, n) {
25820
- const i = WR(e, n), s = B(e.x_axis.data_key), a = C.uniqBy(n[s.queryID], s.columnKey).map((u) => u[s.columnKey]), o = C.groupBy(i, s.columnKey), l = UR(e, t), c = VR(e, l, a, o), d = {
25820
+ const i = WR(e, n), s = B(e.x_axis.data_key), a = k.uniqBy(n[s.queryID], s.columnKey).map((u) => u[s.columnKey]), o = k.groupBy(i, s.columnKey), l = UR(e, t), c = VR(e, l, a, o), d = {
25821
25821
  xAxis: NR(e, a),
25822
25822
  yAxis: qR(l),
25823
25823
  series: c,
@@ -25940,7 +25940,7 @@ function rP({
25940
25940
  control: e,
25941
25941
  watch: t
25942
25942
  }) {
25943
- return t(["deviation"]), /* @__PURE__ */ r.jsxs(k, { children: [
25943
+ return t(["deviation"]), /* @__PURE__ */ r.jsxs(C, { children: [
25944
25944
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "deviation.name", control: e, render: ({
25945
25945
  field: n
25946
25946
  }) => /* @__PURE__ */ r.jsx(E, { label: "指标名称", sx: {
@@ -25967,7 +25967,7 @@ const iP = ({
25967
25967
  const {
25968
25968
  t: n
25969
25969
  } = v();
25970
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
25970
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
25971
25971
  /* @__PURE__ */ r.jsx(g, { name: `metrics.${t}.name`, control: e, render: ({
25972
25972
  field: i
25973
25973
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -26012,7 +26012,7 @@ function aP({
26012
26012
  control: e,
26013
26013
  watch: t
26014
26014
  }) {
26015
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
26015
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
26016
26016
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
26017
26017
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
26018
26018
  field: n
@@ -26044,7 +26044,7 @@ function oP({
26044
26044
  const {
26045
26045
  value: t,
26046
26046
  set: n
26047
- } = ne(e.instanceData, "config"), i = T(() => C.defaultsDeep({}, t, Ac), [t]), {
26047
+ } = ne(e.instanceData, "config"), i = T(() => k.defaultsDeep({}, t, Ac), [t]), {
26048
26048
  control: s,
26049
26049
  handleSubmit: a,
26050
26050
  watch: o,
@@ -26055,7 +26055,7 @@ function oP({
26055
26055
  });
26056
26056
  return Q(() => {
26057
26057
  c(i);
26058
- }, [i]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
26058
+ }, [i]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
26059
26059
  /* @__PURE__ */ r.jsx(lt, { canSubmit: l.isDirty }),
26060
26060
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "X Axis", orientation: "vertical", styles: {
26061
26061
  tab: {
@@ -26213,8 +26213,8 @@ const Su = ({
26213
26213
  }
26214
26214
  return null;
26215
26215
  }, [a, o]);
26216
- return /* @__PURE__ */ r.jsxs(k, { spacing: 18, children: [
26217
- /* @__PURE__ */ r.jsxs(k, { spacing: 12, children: [
26216
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 18, children: [
26217
+ /* @__PURE__ */ r.jsxs(C, { spacing: 12, children: [
26218
26218
  /* @__PURE__ */ r.jsx(S, { size: "14px", color: "#818388", children: n.value }),
26219
26219
  /* @__PURE__ */ r.jsxs(y, { spacing: "2px", align: "baseline", children: [
26220
26220
  /* @__PURE__ */ r.jsx(S, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
@@ -26223,7 +26223,7 @@ const Su = ({
26223
26223
  /* @__PURE__ */ r.jsx(Su, { postfix: l })
26224
26224
  ] })
26225
26225
  ] }),
26226
- /* @__PURE__ */ r.jsxs(k, { spacing: 12, children: [
26226
+ /* @__PURE__ */ r.jsxs(C, { spacing: 12, children: [
26227
26227
  /* @__PURE__ */ r.jsx(S, { size: "14px", color: "#818388", children: n.basis }),
26228
26228
  /* @__PURE__ */ r.jsxs(y, { spacing: "2px", align: "baseline", children: [
26229
26229
  /* @__PURE__ */ r.jsx(S, { size: "12px", color: "#3D3E45", sx: {
@@ -26241,7 +26241,7 @@ const Su = ({
26241
26241
  value: n
26242
26242
  } = ne(e.instanceData, "config"), {
26243
26243
  variables: i
26244
- } = e, s = T(() => C.defaults({}, n, Rc), [n]), a = e.data, o = T(() => bc(a, i), [i, a]), {
26244
+ } = e, s = T(() => k.defaults({}, n, Rc), [n]), a = e.data, o = T(() => bc(a, i), [i, a]), {
26245
26245
  width: l,
26246
26246
  height: c
26247
26247
  } = e.viewport;
@@ -26289,7 +26289,7 @@ function bP({
26289
26289
  const {
26290
26290
  t: s
26291
26291
  } = v();
26292
- return n(`metrics.${t}.postfix`), /* @__PURE__ */ r.jsxs(k, { my: 0, p: "md", pr: 40, sx: {
26292
+ return n(`metrics.${t}.postfix`), /* @__PURE__ */ r.jsxs(C, { my: 0, p: "md", pr: 40, sx: {
26293
26293
  border: "1px solid #eee",
26294
26294
  position: "relative"
26295
26295
  }, children: [
@@ -26401,7 +26401,7 @@ function _P({
26401
26401
  });
26402
26402
  return Q(() => {
26403
26403
  d(s);
26404
- }, [s]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
26404
+ }, [s]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
26405
26405
  /* @__PURE__ */ r.jsx(lt, { canSubmit: c.isDirty }),
26406
26406
  /* @__PURE__ */ r.jsx(vP, { control: a, watch: l }),
26407
26407
  /* @__PURE__ */ r.jsx(yP, { control: a, watch: l, variables: i })
@@ -26546,7 +26546,7 @@ function TP({
26546
26546
  } = v();
26547
26547
  t(["heat_block"]);
26548
26548
  const i = t("heat_block.label.show");
26549
- return /* @__PURE__ */ r.jsxs(k, { children: [
26549
+ return /* @__PURE__ */ r.jsxs(C, { children: [
26550
26550
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
26551
26551
  /* @__PURE__ */ r.jsx(g, { name: "heat_block.data_key", control: e, render: ({
26552
26552
  field: s
@@ -26586,7 +26586,7 @@ const zP = ({
26586
26586
  const {
26587
26587
  t: n
26588
26588
  } = v();
26589
- return /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
26589
+ return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
26590
26590
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
26591
26591
  field: i
26592
26592
  }) => /* @__PURE__ */ r.jsx(E, { label: n("common.name"), required: !0, sx: {
@@ -26640,7 +26640,7 @@ function EP({
26640
26640
  const {
26641
26641
  t: n
26642
26642
  } = v();
26643
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(k, { children: [
26643
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(C, { children: [
26644
26644
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
26645
26645
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
26646
26646
  field: i
@@ -26676,7 +26676,7 @@ function LP({
26676
26676
  const {
26677
26677
  t: n
26678
26678
  } = v();
26679
- return t(["y_axis"]), /* @__PURE__ */ r.jsxs(k, { my: 0, p: "0", sx: {
26679
+ return t(["y_axis"]), /* @__PURE__ */ r.jsxs(C, { my: 0, p: "0", sx: {
26680
26680
  position: "relative"
26681
26681
  }, children: [
26682
26682
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -26720,7 +26720,7 @@ function AP({
26720
26720
  } = v(), {
26721
26721
  value: n,
26722
26722
  set: i
26723
- } = ne(e.instanceData, "config"), s = T(() => n ? Ee({}, n) : Pc, [n]), a = T(() => C.cloneDeep(s), [s]);
26723
+ } = ne(e.instanceData, "config"), s = T(() => n ? Ee({}, n) : Pc, [n]), a = T(() => k.cloneDeep(s), [s]);
26724
26724
  Q(() => {
26725
26725
  !Dt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
26726
26726
  }, [s, a]);
@@ -26737,7 +26737,7 @@ function AP({
26737
26737
  h(a);
26738
26738
  }, [a]), /* @__PURE__ */ r.jsx("form", { onSubmit: c(i), style: {
26739
26739
  flexGrow: 1
26740
- }, children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", sx: {
26740
+ }, children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", sx: {
26741
26741
  height: "100%"
26742
26742
  }, children: [
26743
26743
  /* @__PURE__ */ r.jsx(lt, { canSubmit: u.isDirty }),
@@ -26906,7 +26906,7 @@ function qP({
26906
26906
  const I = B(b.data_key);
26907
26907
  m.push({
26908
26908
  label: b.name,
26909
- value: NP(C.get(f, I.columnKey, "")),
26909
+ value: NP(k.get(f, I.columnKey, "")),
26910
26910
  style: {
26911
26911
  label: "",
26912
26912
  value: ""
@@ -26921,7 +26921,7 @@ function BP(e, t, n, i) {
26921
26921
  heat_block: o
26922
26922
  } = e, l = B(s.data_key), c = B(a.data_key);
26923
26923
  B(o.data_key);
26924
- const d = C.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
26924
+ const d = k.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
26925
26925
  return De.getTooltip({
26926
26926
  formatter: function(u) {
26927
26927
  const p = qP({
@@ -27048,8 +27048,8 @@ function GP(e, t, n) {
27048
27048
  }, {}), s = $P(e), a = OP(e), o = Ta(e.visualMap, i), {
27049
27049
  min: l,
27050
27050
  max: c
27051
- } = o, d = B(e.x_axis.data_key), u = B(e.y_axis.data_key), h = B(e.heat_block.data_key), p = C.uniq(t[d.queryID].map((b) => b[d.columnKey])), m = t[d.queryID].map((b) => {
27052
- const I = C.get(b, d.columnKey), w = C.get(b, u.columnKey), z = C.get(b, h.columnKey), A = {
27051
+ } = o, d = B(e.x_axis.data_key), u = B(e.y_axis.data_key), h = B(e.heat_block.data_key), p = k.uniq(t[d.queryID].map((b) => b[d.columnKey])), m = t[d.queryID].map((b) => {
27052
+ const I = k.get(b, d.columnKey), w = k.get(b, u.columnKey), z = k.get(b, h.columnKey), A = {
27053
27053
  value: [I, w, z]
27054
27054
  }, {
27055
27055
  followVisualMap: L,
@@ -27078,9 +27078,9 @@ function QP({
27078
27078
  }) {
27079
27079
  const o = T(() => {
27080
27080
  const h = B(e.x_axis.data_key), p = B(e.y_axis.data_key);
27081
- return C.keyBy(t[h.queryID], (m) => `${m[h.columnKey]}---${m[p.columnKey]}`);
27081
+ return k.keyBy(t[h.queryID], (m) => `${m[h.columnKey]}---${m[p.columnKey]}`);
27082
27082
  }, [t, e.x_axis.data_key, e.y_axis.data_key]), l = Yt(s.triggerManager, ex.id), c = Fe((h) => {
27083
- const [p, m] = h.value, f = C.get(o, `${p}---${m}`, {
27083
+ const [p, m] = h.value, f = k.get(o, `${p}---${m}`, {
27084
27084
  error: "rowData is not found"
27085
27085
  });
27086
27086
  l.forEach((b) => {
@@ -27410,7 +27410,7 @@ const r$ = x.model("PanelStyleBorderMeta", {
27410
27410
  data_field: o,
27411
27411
  aggregation: l
27412
27412
  } = e;
27413
- return C.cloneDeep({
27413
+ return k.cloneDeep({
27414
27414
  name: t,
27415
27415
  size: n,
27416
27416
  color: s,
@@ -28791,7 +28791,7 @@ const f$ = x.model("FilterDateRangeConfigMeta", {
28791
28791
  }), [I, w] = X(!1), z = (L) => {
28792
28792
  w(L);
28793
28793
  }, A = I && (l == null ? void 0 : l.length) > 0;
28794
- return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
28794
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 3, children: [
28795
28795
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
28796
28796
  /* @__PURE__ */ r.jsxs(S, { className: f.label, children: [
28797
28797
  o,
@@ -29141,7 +29141,7 @@ const f$ = x.model("FilterDateRangeConfigMeta", {
29141
29141
  styles: n,
29142
29142
  unstyled: i
29143
29143
  });
29144
- return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
29144
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 3, children: [
29145
29145
  /* @__PURE__ */ r.jsx(y, { position: "apart", children: /* @__PURE__ */ r.jsxs(S, { className: p.label, children: [
29146
29146
  o,
29147
29147
  h && /* @__PURE__ */ r.jsx("span", { className: p.required, "aria-hidden": "true", children: "*" })
@@ -29307,12 +29307,14 @@ const xx = x.compose("FilterConfigModel_BaseTreeSelect", x.model({
29307
29307
  e.treeCheckStrictly = t;
29308
29308
  },
29309
29309
  applyDefaultSelection() {
29310
+ if (e.optionsLoading)
29311
+ return;
29310
29312
  const t = e.filter.value, n = new Set(e.plainData.map((s) => s.value)), i = (t ?? []).filter((s) => n.has(s));
29311
29313
  i.length > 0 ? e.filter.setValue(i) : e.filter.setValue(e.defaultSelection);
29312
29314
  },
29313
29315
  afterCreate() {
29314
29316
  Kt(e, Mt(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
29315
- fireImmediately: !0,
29317
+ fireImmediately: !1,
29316
29318
  delay: 0
29317
29319
  }));
29318
29320
  }
@@ -29457,7 +29459,7 @@ const xx = x.compose("FilterConfigModel_BaseTreeSelect", x.model({
29457
29459
  return e.auto_submit_supported && e.auto_submit;
29458
29460
  },
29459
29461
  requiredAndPass(t) {
29460
- return C.get(e.config, "required", !1) ? C.get(e.config, "truthy", () => !0)(t) : !1;
29462
+ return k.get(e.config, "required", !1) ? k.get(e.config, "truthy", () => !0)(t) : !1;
29461
29463
  }
29462
29464
  })).actions((e) => ({
29463
29465
  setKey(t) {
@@ -29661,7 +29663,7 @@ const vx = x.model("ViewDivisionConfig", {
29661
29663
  };
29662
29664
  },
29663
29665
  get tabsInOrder() {
29664
- return C.sortBy(e.tabs, "order");
29666
+ return k.sortBy(e.tabs, "order");
29665
29667
  }
29666
29668
  })).actions((e) => ({
29667
29669
  setVariant(t) {
@@ -29961,7 +29963,7 @@ function H$(e, t) {
29961
29963
  panelIDs: s.panelIDs
29962
29964
  };
29963
29965
  if (s.type === J.Tabs) {
29964
- const l = C.minBy(s.config.tabs, (c) => c.order);
29966
+ const l = k.minBy(s.config.tabs, (c) => c.order);
29965
29967
  o.tab = (l == null ? void 0 : l.id) ?? "";
29966
29968
  }
29967
29969
  return o;
@@ -30187,7 +30189,7 @@ function X$(e, t, n) {
30187
30189
  value: a,
30188
30190
  shortcut: null
30189
30191
  }), i;
30190
- }, n);
30192
+ }, k.cloneDeep(n));
30191
30193
  }
30192
30194
  const Ex = x.model("FiltersRenderModel", {
30193
30195
  current: x.optional(x.array(yx), []),
@@ -30245,13 +30247,13 @@ const Ex = x.model("FiltersRenderModel", {
30245
30247
  return e.current.filter((n) => t.has(n.id));
30246
30248
  },
30247
30249
  get inOrder() {
30248
- return C.sortBy(e.current, "order");
30250
+ return k.sortBy(e.current, "order");
30249
30251
  },
30250
30252
  get empty() {
30251
30253
  return e.current.length === 0;
30252
30254
  },
30253
30255
  visibleInView(t) {
30254
- return C.sortBy(e.current.filter((n) => n.visibleInViewsIDSet.has(t)), "order");
30256
+ return k.sortBy(e.current.filter((n) => n.visibleInViewsIDSet.has(t)), "order");
30255
30257
  },
30256
30258
  get firstFilterValueKey() {
30257
30259
  return Object.keys(e.values)[0] ?? "";
@@ -30274,10 +30276,10 @@ const Ex = x.model("FiltersRenderModel", {
30274
30276
  console.debug("⚪️ setting filter values: ", JSON.stringify(t)), e.values = t;
30275
30277
  },
30276
30278
  patchValues(t) {
30277
- console.debug("⚪️ patching filter values: ", JSON.stringify(t)), e.values = C.defaults({}, t, e.values);
30279
+ console.debug("⚪️ patching filter values: ", JSON.stringify(t)), e.values = k.defaults({}, t, e.values);
30278
30280
  },
30279
30281
  setValueByKey(t, n) {
30280
- console.debug(`⚪️ setting filter[${t}] to value: `, JSON.stringify(n)), e.values = {
30282
+ console.trace(`⚪️ setting filter[${t}] to value: `, JSON.stringify(n)), e.values = {
30281
30283
  ...e.values,
30282
30284
  [t]: n
30283
30285
  };
@@ -30356,7 +30358,7 @@ const J$ = c$.views((e) => ({
30356
30358
  return [];
30357
30359
  const n = this.contentModel.payloadForSQL;
30358
30360
  return t.filter((i) => {
30359
- const s = C.get(n, i);
30361
+ const s = k.get(n, i);
30360
30362
  return Array.isArray(s) ? s.length === 0 : typeof s == "number" ? Number.isNaN(s) : !s;
30361
30363
  });
30362
30364
  }
@@ -30392,7 +30394,7 @@ const J$ = c$.views((e) => ({
30392
30394
  } = e;
30393
30395
  if (t.length === 0)
30394
30396
  return "";
30395
- const n = e.contentModel.payloadForSQL, i = [...t].reduce((s, a) => (s[a] = C.get(n, a), s), {});
30397
+ const n = e.contentModel.payloadForSQL, i = [...t].reduce((s, a) => (s[a] = k.get(n, a), s), {});
30396
30398
  return JSON.stringify(i);
30397
30399
  },
30398
30400
  get runByConditionsMet() {
@@ -30406,7 +30408,7 @@ const J$ = c$.views((e) => ({
30406
30408
  };
30407
30409
  const {
30408
30410
  keyLabelMap: t
30409
- } = e.contentModel.filters, n = e.unmetRunByConditions.filter((s) => s.startsWith("context.")).map((s) => s.replace("context.", "")), i = e.unmetRunByConditions.filter((s) => s.startsWith("filters.")).map((s) => C.get({
30411
+ } = e.contentModel.filters, n = e.unmetRunByConditions.filter((s) => s.startsWith("context.")).map((s) => s.replace("context.", "")), i = e.unmetRunByConditions.filter((s) => s.startsWith("filters.")).map((s) => k.get({
30410
30412
  filters: t
30411
30413
  }, s, s.replace("filters.", ""))).filter((s) => !!s);
30412
30414
  return {
@@ -30423,7 +30425,7 @@ const J$ = c$.views((e) => ({
30423
30425
  get dependencies() {
30424
30426
  if (!this.typedAsSQL)
30425
30427
  return [];
30426
- const t = C.uniq(e.sql.match($s.sqlSnippet)), n = C.uniq(e.sql.match($s.filter)), i = C.uniq(e.sql.match($s.context)), s = [];
30428
+ const t = k.uniq(e.sql.match($s.sqlSnippet)), n = k.uniq(e.sql.match($s.filter)), i = k.uniq(e.sql.match($s.context)), s = [];
30427
30429
  return t.forEach((a) => {
30428
30430
  s.push({
30429
30431
  type: "sql_snippet",
@@ -30550,7 +30552,7 @@ const J$ = c$.views((e) => ({
30550
30552
  const n = e.contentModel.queries.findByIDSet(new Set(e.dep_query_ids)).map((o) => ({
30551
30553
  id: o.id,
30552
30554
  name: o.name,
30553
- data: C.cloneDeep(o.data)
30555
+ data: k.cloneDeep(o.data)
30554
30556
  })), i = e.contentModel.dashboardState, s = e.pre_process, a = new Function(`return ${s}`)()(n, i, vn);
30555
30557
  e.data = a, e.state = "idle", e.error = null;
30556
30558
  } catch (t) {
@@ -30612,9 +30614,9 @@ const J$ = c$.views((e) => ({
30612
30614
  s.push(...c.queryIDs);
30613
30615
  });
30614
30616
  });
30615
- const a = C.uniq(t.visibleViews.map((l) => l.renderViewIDs).flat());
30617
+ const a = k.uniq(t.visibleViews.map((l) => l.renderViewIDs).flat());
30616
30618
  n.current.forEach((l) => {
30617
- const c = C.get(l, "config.options_query_id");
30619
+ const c = k.get(l, "config.options_query_id");
30618
30620
  if (!c)
30619
30621
  return;
30620
30622
  a.some((u) => l.visibleInViewsIDSet.has(u)) && s.push(c);
@@ -30974,7 +30976,7 @@ const r2 = (e) => new n2(e), i2 = ({
30974
30976
  } = v(), i = (o) => () => {
30975
30977
  const l = o();
30976
30978
  e(l);
30977
- }, s = T(() => C.groupBy(Oc(), "group"), []), a = n.language === "zh";
30979
+ }, s = T(() => k.groupBy(Oc(), "group"), []), a = n.language === "zh";
30978
30980
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30979
30981
  /* @__PURE__ */ r.jsx($, { variant: "dashed", my: 10 }),
30980
30982
  /* @__PURE__ */ r.jsx(ot, { withBorder: !1, sx: {
@@ -31303,7 +31305,7 @@ const r2 = (e) => new n2(e), i2 = ({
31303
31305
  };
31304
31306
  return d.filter(le);
31305
31307
  }, [A, d]);
31306
- return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
31308
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 3, children: [
31307
31309
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
31308
31310
  /* @__PURE__ */ r.jsxs(S, { className: m.label, children: [
31309
31311
  o,
@@ -31475,7 +31477,7 @@ const _2 = ({
31475
31477
  Q(() => {
31476
31478
  l(s.filters.values);
31477
31479
  }, [s.filters.values, l]), v2(c);
31478
- const d = s.filters.visibleInView(t.id), u = T(() => d.every((f) => f.should_auto_submit), [d]), h = T(() => d.filter((f) => C.get(f, "config.required", !1)), [d]), p = T(() => h.length === 0 ? !1 : h.some((f) => !f.requiredAndPass(c[f.key])), [c, h]);
31480
+ const d = s.filters.visibleInView(t.id), u = T(() => d.every((f) => f.should_auto_submit), [d]), h = T(() => d.filter((f) => k.get(f, "config.required", !1)), [d]), p = T(() => h.length === 0 ? !1 : h.some((f) => !f.requiredAndPass(c[f.key])), [c, h]);
31479
31481
  if (d.length === 0)
31480
31482
  return null;
31481
31483
  const m = (f, b) => (I, w) => {
@@ -31497,7 +31499,7 @@ const _2 = ({
31497
31499
  ] }) })
31498
31500
  ] });
31499
31501
  }), j2 = {
31500
- viewPanelInFullScreen: C.noop,
31502
+ viewPanelInFullScreen: k.noop,
31501
31503
  inFullScreen: !1
31502
31504
  }, qa = O.createContext(j2), w2 = D(({
31503
31505
  view: e
@@ -31808,7 +31810,7 @@ const L2 = D(function({
31808
31810
  }, children: o && /* @__PURE__ */ r.jsx(ut, { children: a }) }) });
31809
31811
  }), A2 = D(({
31810
31812
  panel: e
31811
- }) => /* @__PURE__ */ r.jsxs(k, { children: [
31813
+ }) => /* @__PURE__ */ r.jsxs(C, { children: [
31812
31814
  e.queryErrors.map((t, n) => /* @__PURE__ */ r.jsx(S, { color: "red", size: "sm", align: "center", sx: {
31813
31815
  fontFamily: "monospace"
31814
31816
  }, children: t }, `${n}-${t}`)),
@@ -32193,7 +32195,7 @@ const rO = D(({
32193
32195
  "> div:not(.mantine-Modal-root)": {
32194
32196
  height: "100%"
32195
32197
  }
32196
- }, children: /* @__PURE__ */ r.jsx(He, { size: n.width, opened: !0, onClose: C.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(y, { position: "apart", px: "1rem", h: "48px", children: [
32198
+ }, children: /* @__PURE__ */ r.jsx(He, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(y, { position: "apart", px: "1rem", h: "48px", children: [
32197
32199
  /* @__PURE__ */ r.jsx(R, { children: n.custom_modal_title.value }),
32198
32200
  /* @__PURE__ */ r.jsx(Kx, { downloadScreenshot: o })
32199
32201
  ] }), trapFocus: !0, onDragStart: (l) => {
@@ -32303,7 +32305,7 @@ const rO = D(({
32303
32305
  zIndex: 200
32304
32306
  }, children: [
32305
32307
  /* @__PURE__ */ r.jsx(Fr, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
32306
- /* @__PURE__ */ r.jsxs(k, { mx: "auto", mt: 100, sx: {
32308
+ /* @__PURE__ */ r.jsxs(C, { mx: "auto", mt: 100, sx: {
32307
32309
  width: "300px",
32308
32310
  position: "relative",
32309
32311
  zIndex: 200
@@ -32343,7 +32345,7 @@ const rO = D(({
32343
32345
  }) {
32344
32346
  const i = ye().layouts.divisionPreviewScale !== 1;
32345
32347
  return /* @__PURE__ */ r.jsx(qa.Provider, { value: {
32346
- viewPanelInFullScreen: C.noop,
32348
+ viewPanelInFullScreen: k.noop,
32347
32349
  inFullScreen: !1
32348
32350
  }, children: /* @__PURE__ */ r.jsx(R, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
32349
32351
  background: i ? "transparent" : "#efefef"
@@ -32437,7 +32439,7 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32437
32439
  }));
32438
32440
  },
32439
32441
  get sortedList() {
32440
- return C.sortBy(e.current, (t) => t.label.toLowerCase());
32442
+ return k.sortBy(e.current, (t) => t.label.toLowerCase());
32441
32443
  }
32442
32444
  })).actions((e) => ({
32443
32445
  replace(t) {
@@ -32495,7 +32497,7 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32495
32497
  label: n.name,
32496
32498
  _type: "query"
32497
32499
  }));
32498
- return C.sortBy(t, (n) => n.label.toLowerCase());
32500
+ return k.sortBy(t, (n) => n.label.toLowerCase());
32499
32501
  },
32500
32502
  get optionsWithoutTransform() {
32501
32503
  const t = e.current.filter((n) => n.type !== et.Transform).map((n) => ({
@@ -32503,10 +32505,10 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32503
32505
  label: n.name,
32504
32506
  _type: "query"
32505
32507
  }));
32506
- return C.sortBy(t, (n) => n.label.toLowerCase());
32508
+ return k.sortBy(t, (n) => n.label.toLowerCase());
32507
32509
  },
32508
32510
  get sortedList() {
32509
- return C.sortBy(e.current, (t) => t.name.toLowerCase());
32511
+ return k.sortBy(e.current, (t) => t.name.toLowerCase());
32510
32512
  }
32511
32513
  })).actions((e) => ({
32512
32514
  replace(t) {
@@ -32537,11 +32539,11 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32537
32539
  n.has(s.id) && _o(s);
32538
32540
  });
32539
32541
  const i = [...e.current];
32540
- C.remove(i, (s) => n.has(s.id)), e.current = An(i);
32542
+ k.remove(i, (s) => n.has(s.id)), e.current = An(i);
32541
32543
  }
32542
32544
  })), fO = $x.views((e) => ({
32543
32545
  get sortedList() {
32544
- return C.sortBy(e.current, (t) => t.key.toLowerCase());
32546
+ return k.sortBy(e.current, (t) => t.key.toLowerCase());
32545
32547
  },
32546
32548
  get options() {
32547
32549
  const t = e.current.map((n) => ({
@@ -32549,7 +32551,7 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32549
32551
  value: n.key,
32550
32552
  _type: "sql_snippet"
32551
32553
  }));
32552
- return C.sortBy(t, (n) => n.label.toLowerCase());
32554
+ return k.sortBy(t, (n) => n.label.toLowerCase());
32553
32555
  }
32554
32556
  })).actions((e) => ({
32555
32557
  replace(t) {
@@ -32577,7 +32579,7 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32577
32579
  n.has(s.key) && _o(s);
32578
32580
  });
32579
32581
  const i = [...e.current];
32580
- C.remove(i, (s) => n.has(s.key)), e.current = An(i);
32582
+ k.remove(i, (s) => n.has(s.key)), e.current = An(i);
32581
32583
  },
32582
32584
  replaceByIndex(t, n) {
32583
32585
  e.current.splice(t, 1, n);
@@ -32729,12 +32731,12 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32729
32731
  query_type: "TABLES"
32730
32732
  }
32731
32733
  }));
32732
- e.tables.data = C.groupBy(i, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
32734
+ e.tables.data = k.groupBy(i, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
32733
32735
  } catch (i) {
32734
32736
  if (!En.isCancel(i)) {
32735
32737
  e.tables.data = {};
32736
- const s = C.get(i, "message", "unkown error");
32737
- e.tables.error = C.get(i, "response.data.detail.message", s), e.tables.state = "error";
32738
+ const s = k.get(i, "message", "unkown error");
32739
+ e.tables.error = k.get(i, "response.data.detail.message", s), e.tables.state = "error";
32738
32740
  }
32739
32741
  }
32740
32742
  });
@@ -32763,8 +32765,8 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32763
32765
  e.columns.state = "idle", e.columns.error = null;
32764
32766
  else {
32765
32767
  e.columns.data = [];
32766
- const s = C.get(i, "message", "unkown error");
32767
- e.columns.error = C.get(i, "response.data.detail.message", s), e.columns.state = "error";
32768
+ const s = k.get(i, "message", "unkown error");
32769
+ e.columns.error = k.get(i, "response.data.detail.message", s), e.columns.state = "error";
32768
32770
  }
32769
32771
  }
32770
32772
  }),
@@ -32788,8 +32790,8 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32788
32790
  e.indexes.state = "idle", e.indexes.error = null;
32789
32791
  else {
32790
32792
  e.indexes.data = [];
32791
- const s = C.get(i, "message", "unkown error");
32792
- e.indexes.error = C.get(i, "response.data.detail.message", s), e.indexes.state = "error";
32793
+ const s = k.get(i, "message", "unkown error");
32794
+ e.indexes.error = k.get(i, "response.data.detail.message", s), e.indexes.state = "error";
32793
32795
  }
32794
32796
  }
32795
32797
  }),
@@ -32831,8 +32833,8 @@ const hO = x.compose("FiltersModel", Ex, x.model("FiltersModel", {
32831
32833
  n.state = "idle", n.error = null;
32832
32834
  else {
32833
32835
  n.data = [];
32834
- const a = C.get(s, "message", "unkown error");
32835
- n.error = C.get(s, "response.data.detail.message", a), n.state = "error";
32836
+ const a = k.get(s, "message", "unkown error");
32837
+ n.error = k.get(s, "response.data.detail.message", a), n.state = "error";
32836
32838
  }
32837
32839
  }
32838
32840
  })
@@ -32943,7 +32945,7 @@ const EO = x.model("EditorModel", {
32943
32945
  return Jo(e.path);
32944
32946
  },
32945
32947
  get panelTab() {
32946
- return this.isPanelPath ? C.get(e.path, 5, "Data") : null;
32948
+ return this.isPanelPath ? k.get(e.path, 5, "Data") : null;
32947
32949
  },
32948
32950
  get navOptions() {
32949
32951
  const {
@@ -33010,7 +33012,7 @@ const EO = x.model("EditorModel", {
33010
33012
  setPanelTab(t) {
33011
33013
  if (!e.isPanelPath || e.panelTab === t || !t)
33012
33014
  return;
33013
- const n = C.clone(e.path);
33015
+ const n = k.clone(e.path);
33014
33016
  n[5] = t, e.setPath(n);
33015
33017
  },
33016
33018
  open(t) {
@@ -33072,7 +33074,7 @@ const EO = x.model("EditorModel", {
33072
33074
  e.list.push(a);
33073
33075
  },
33074
33076
  updateLayoutSetsInfo(t) {
33075
- const n = C.keyBy(e.list, "id");
33077
+ const n = k.keyBy(e.list, "id");
33076
33078
  t.forEach((a) => {
33077
33079
  const o = n[a.id];
33078
33080
  if (o) {
@@ -33291,7 +33293,7 @@ const EO = x.model("EditorModel", {
33291
33293
  views: [t],
33292
33294
  panels: n,
33293
33295
  definition: {
33294
- queries: C.uniqBy(i, (o) => o.id)
33296
+ queries: k.uniqBy(i, (o) => o.id)
33295
33297
  },
33296
33298
  layouts: s,
33297
33299
  version: jr
@@ -33560,12 +33562,12 @@ const OO = x.model({
33560
33562
  });
33561
33563
  });
33562
33564
  const i = e.views.idMap;
33563
- return e.filters.current.filter((s) => !!C.get(s, "config.options_query_id")).forEach((s) => {
33565
+ return e.filters.current.filter((s) => !!k.get(s, "config.options_query_id")).forEach((s) => {
33564
33566
  n.push({
33565
33567
  type: "filter",
33566
33568
  type_label: "filter.label",
33567
33569
  id: s.id,
33568
- queryID: C.get(s, "config.options_query_id"),
33570
+ queryID: k.get(s, "config.options_query_id"),
33569
33571
  label: s.label,
33570
33572
  views: s.visibleInViewsIDs.map((a) => {
33571
33573
  var o;
@@ -33586,7 +33588,7 @@ const OO = x.model({
33586
33588
  views: []
33587
33589
  });
33588
33590
  });
33589
- }), C.groupBy(n, "queryID");
33591
+ }), k.groupBy(n, "queryID");
33590
33592
  },
33591
33593
  get hasUnusedQueries() {
33592
33594
  return e.queries.current.length > Object.keys(this.queriesUsage).length;
@@ -33599,14 +33601,14 @@ const OO = x.model({
33599
33601
  return e.queries.current.forEach((n) => {
33600
33602
  if (!n.typedAsSQL)
33601
33603
  return;
33602
- C.uniq(n.sql.match($s.sqlSnippet)).forEach((s) => {
33604
+ k.uniq(n.sql.match($s.sqlSnippet)).forEach((s) => {
33603
33605
  t.push({
33604
33606
  queryID: n.id,
33605
33607
  sqlSnippetKey: s,
33606
33608
  queryName: n.name
33607
33609
  });
33608
33610
  });
33609
- }), C.groupBy(t, "sqlSnippetKey");
33611
+ }), k.groupBy(t, "sqlSnippetKey");
33610
33612
  },
33611
33613
  get hasUnusedSQLSnippets() {
33612
33614
  return e.sqlSnippets.current.length > Object.keys(this.sqlSnippetsUsage).length;
@@ -35854,7 +35856,7 @@ function Zx(e, t) {
35854
35856
  }
35855
35857
  const o = {};
35856
35858
  Object.entries(s).forEach(([l, c]) => {
35857
- const d = C.get(a, c);
35859
+ const d = k.get(a, c);
35858
35860
  o[l] = d;
35859
35861
  }), e.filters.applyValuesPatch(o);
35860
35862
  };
@@ -35871,7 +35873,7 @@ function Zx(e, t) {
35871
35873
  filter_keys: o
35872
35874
  } = s.detail;
35873
35875
  o.forEach((l) => {
35874
- const c = C.get(e.filters.values, l), d = n(c);
35876
+ const c = k.get(e.filters.values, l), d = n(c);
35875
35877
  a[l] = d;
35876
35878
  }), e.filters.applyValuesPatch(a);
35877
35879
  };
@@ -36032,7 +36034,7 @@ const WO = D(({
36032
36034
  validate: (le) => {
36033
36035
  if (console.log({
36034
36036
  values: le
36035
- }), C.uniqBy(le, "breakpoint").length !== le.length)
36037
+ }), k.uniqBy(le, "breakpoint").length !== le.length)
36036
36038
  return "Screen sizes should be unique by min width";
36037
36039
  }
36038
36040
  }
@@ -36294,7 +36296,7 @@ const WO = D(({
36294
36296
  }) => e ? /* @__PURE__ */ r.jsxs(R, { children: [
36295
36297
  /* @__PURE__ */ r.jsx($, { mt: 20, mb: 10, variant: "dashed" }),
36296
36298
  /* @__PURE__ */ r.jsx(S, { ta: "left", c: "dimmed", children: "Preview" }),
36297
- /* @__PURE__ */ r.jsxs(k, { children: [
36299
+ /* @__PURE__ */ r.jsxs(C, { children: [
36298
36300
  /* @__PURE__ */ r.jsx(YO, { content: e }),
36299
36301
  /* @__PURE__ */ r.jsx(XO, { content: e }),
36300
36302
  /* @__PURE__ */ r.jsx(JO, { content: e }),
@@ -36462,7 +36464,7 @@ function cF(e, t, n) {
36462
36464
  const i = [];
36463
36465
  return e.filter((s) => "__INTERACTIONS" in s.viz.conf).forEach((s, a) => {
36464
36466
  const o = t[s.id];
36465
- o.data.interactions = C.get(o, "data.interactions", []);
36467
+ o.data.interactions = k.get(o, "data.interactions", []);
36466
36468
  const {
36467
36469
  __INTERACTIONS: l,
36468
36470
  __OPERATIONS: c,
@@ -36535,7 +36537,7 @@ function uF(e, t, n) {
36535
36537
  }
36536
36538
  const da = 25, Hc = 40, ng = 25, Gc = 350, hF = 150, pF = 150, rg = 150, Lu = 300, Fs = 40, ig = 25, mF = 300;
36537
36539
  function fF(e, t) {
36538
- const n = C.keyBy(t, (s) => s.id), i = [];
36540
+ const n = k.keyBy(t, (s) => s.id), i = [];
36539
36541
  return e.current.forEach((s, a) => {
36540
36542
  s.panelIDs.forEach((o, l) => {
36541
36543
  const c = tg(l, Fs, ig) + Hc, d = n[o];
@@ -36617,7 +36619,7 @@ function bF(e) {
36617
36619
  });
36618
36620
  }
36619
36621
  function yF(e) {
36620
- const t = C.keyBy(e, (n) => n.id);
36622
+ const t = k.keyBy(e, (n) => n.id);
36621
36623
  e.forEach((n) => {
36622
36624
  n._node_type !== "view-root" || n._view_type !== J.Tabs || n._tab_view_ids.forEach((i) => {
36623
36625
  t[i].parentNode = n.id;
@@ -36668,9 +36670,9 @@ function wF({
36668
36670
  return;
36669
36671
  const a = e[s.source], o = e[s.target];
36670
36672
  if (a && o && a.parentNode) {
36671
- const l = e[a.parentNode], c = l.position.x, d = Number(C.get(o, "style.height", 0)), u = Number(l.style.width);
36673
+ const l = e[a.parentNode], c = l.position.x, d = Number(k.get(o, "style.height", 0)), u = Number(l.style.width);
36672
36674
  o.position.x = c + u + mF, l._view_level === 0 && o._sub_view_ids.length === 0 && (a.sourcePosition = gn.Left, o.targetPosition = gn.Right, o.position.x *= -1);
36673
- const p = o.position.x, m = C.get(i, p, 0);
36675
+ const p = o.position.x, m = k.get(i, p, 0);
36674
36676
  o.position.y = m, i[p] = m + d + rg;
36675
36677
  }
36676
36678
  });
@@ -36703,11 +36705,11 @@ function kF({
36703
36705
  };
36704
36706
  }
36705
36707
  function CF(e) {
36706
- const t = vF(e), n = C.keyBy(t, (c) => c.id), {
36708
+ const t = vF(e), n = k.keyBy(t, (c) => c.id), {
36707
36709
  edges: i,
36708
36710
  edgeNodes: s
36709
- } = dF(e, n), a = [...t, ...s], o = C.keyBy(a, (c) => c.id), l = {
36710
- edges: C.uniqBy(i, (c) => c.id),
36711
+ } = dF(e, n), a = [...t, ...s], o = k.keyBy(a, (c) => c.id), l = {
36712
+ edges: k.uniqBy(i, (c) => c.id),
36711
36713
  nodes: a,
36712
36714
  nodeMap: o
36713
36715
  };
@@ -36794,7 +36796,7 @@ const zF = {
36794
36796
  edges: t,
36795
36797
  nodes: n
36796
36798
  } = CF(e);
36797
- return /* @__PURE__ */ r.jsxs(Dv, { nodes: n, edges: t, onNodesChange: C.noop, onEdgesChange: C.noop, onConnect: C.noop, className: "interactions-viewer", fitView: !0, nodeTypes: zF, children: [
36799
+ return /* @__PURE__ */ r.jsxs(Dv, { nodes: n, edges: t, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes: zF, children: [
36798
36800
  /* @__PURE__ */ r.jsx(Mv, {}),
36799
36801
  /* @__PURE__ */ r.jsx(Ev, {}),
36800
36802
  /* @__PURE__ */ r.jsx(Lv, {})
@@ -37063,7 +37065,7 @@ const AF = D(() => {
37063
37065
  ] }),
37064
37066
  /* @__PURE__ */ r.jsx(E, { label: n("filter.widget.select.width"), description: n("filter.widget.multi_select.width_description"), value: i.min_width, onChange: (l) => i.setMinWidth(l.currentTarget.value), placeholder: "200px" }),
37065
37067
  /* @__PURE__ */ r.jsx($, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
37066
- /* @__PURE__ */ r.jsxs(k, { spacing: 10, sx: {
37068
+ /* @__PURE__ */ r.jsxs(C, { spacing: 10, sx: {
37067
37069
  position: "relative",
37068
37070
  minHeight: "50px"
37069
37071
  }, children: [
@@ -37135,7 +37137,7 @@ const AF = D(() => {
37135
37137
  ] }),
37136
37138
  /* @__PURE__ */ r.jsx(E, { label: n("filter.widget.select.width"), value: s.width, onChange: (c) => s.setWidth(c.currentTarget.value), placeholder: "200px" }),
37137
37139
  /* @__PURE__ */ r.jsx($, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
37138
- /* @__PURE__ */ r.jsxs(k, { spacing: 10, sx: {
37140
+ /* @__PURE__ */ r.jsxs(C, { spacing: 10, sx: {
37139
37141
  position: "relative",
37140
37142
  minHeight: "50px"
37141
37143
  }, children: [
@@ -37262,7 +37264,7 @@ const AF = D(() => {
37262
37264
  maxWidth: "600px"
37263
37265
  }, children: [
37264
37266
  /* @__PURE__ */ r.jsx(S, { pb: "md", color: "gray", children: n("common.titles.edit") }),
37265
- /* @__PURE__ */ r.jsxs(k, { children: [
37267
+ /* @__PURE__ */ r.jsxs(C, { children: [
37266
37268
  /* @__PURE__ */ r.jsxs(y, { noWrap: !0, children: [
37267
37269
  /* @__PURE__ */ r.jsx(
37268
37270
  pe,
@@ -37327,7 +37329,7 @@ const AF = D(() => {
37327
37329
  zIndex: 320
37328
37330
  });
37329
37331
  };
37330
- return /* @__PURE__ */ r.jsxs(k, { sx: {
37332
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
37331
37333
  maxWidth: "1100px",
37332
37334
  height: "100vh"
37333
37335
  }, spacing: "sm", pb: 30, children: [
@@ -37350,7 +37352,7 @@ const AF = D(() => {
37350
37352
  }, c = () => {
37351
37353
  n([]);
37352
37354
  };
37353
- return /* @__PURE__ */ r.jsxs(k, { sx: {
37355
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
37354
37356
  height: "100%"
37355
37357
  }, spacing: "sm", pb: "59px", children: [
37356
37358
  /* @__PURE__ */ r.jsx(R, { pt: 9, pb: 8, sx: {
@@ -37432,7 +37434,7 @@ const AF = D(() => {
37432
37434
  return !1;
37433
37435
  }
37434
37436
  }, [n, t.mock_context.current]);
37435
- return /* @__PURE__ */ r.jsxs(k, { sx: {
37437
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
37436
37438
  border: "1px solid #eee",
37437
37439
  borderLeft: "none",
37438
37440
  borderRight: "none",
@@ -37449,7 +37451,7 @@ const AF = D(() => {
37449
37451
  position: "relative",
37450
37452
  alignItems: "flex-start"
37451
37453
  }, children: [
37452
- /* @__PURE__ */ r.jsxs(k, { spacing: 10, sx: {
37454
+ /* @__PURE__ */ r.jsxs(C, { spacing: 10, sx: {
37453
37455
  maxWidth: "unset !important"
37454
37456
  }, children: [
37455
37457
  /* @__PURE__ */ r.jsx(S, { children: e("mock_context.hint") }),
@@ -37483,7 +37485,7 @@ const AF = D(() => {
37483
37485
  } = Nt(), n = Ke().layouts.findItemByPanelID(t.id), {
37484
37486
  style: i
37485
37487
  } = t;
37486
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(k, { spacing: 20, children: [
37488
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(C, { spacing: 20, children: [
37487
37489
  /* @__PURE__ */ r.jsxs(y, { grow: !0, align: "top", children: [
37488
37490
  /* @__PURE__ */ r.jsx(pe, { label: e("panel.style.width"), min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(S, { size: 12, children: e("panel.style.width_postfix") }), styles: {
37489
37491
  rightSection: {
@@ -37522,7 +37524,7 @@ const AF = D(() => {
37522
37524
  s(n);
37523
37525
  }, [n]);
37524
37526
  const l = !i.trim();
37525
- return /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
37527
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 4, children: [
37526
37528
  /* @__PURE__ */ r.jsxs(y, { align: "center", children: [
37527
37529
  /* @__PURE__ */ r.jsxs(S, { size: 14, fw: 500, children: [
37528
37530
  e("panel.panel_name"),
@@ -37538,7 +37540,7 @@ const AF = D(() => {
37538
37540
  } = v(), {
37539
37541
  panel: t
37540
37542
  } = Nt();
37541
- return /* @__PURE__ */ r.jsx(k, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(y, { pl: 6, position: "left", spacing: 20, children: [
37543
+ return /* @__PURE__ */ r.jsx(C, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(y, { pl: 6, position: "left", spacing: 20, children: [
37542
37544
  /* @__PURE__ */ r.jsx(he, { size: "sm", checked: t.title.show, onChange: (n) => t.title.setShow(n.currentTarget.checked), label: e("panel.show_title"), sx: {
37543
37545
  userSelect: "none"
37544
37546
  } }),
@@ -37549,7 +37551,7 @@ function eV() {
37549
37551
  const {
37550
37552
  t: e
37551
37553
  } = v();
37552
- return /* @__PURE__ */ r.jsxs(k, { sx: {
37554
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
37553
37555
  height: "100%"
37554
37556
  }, children: [
37555
37557
  /* @__PURE__ */ r.jsx(YF, {}),
@@ -37733,7 +37735,7 @@ const nV = [{
37733
37735
  n && c();
37734
37736
  }, [c, n]);
37735
37737
  const u = !Array.isArray(a) || a.length === 0;
37736
- return /* @__PURE__ */ r.jsxs(k, { spacing: 0, sx: {
37738
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 0, sx: {
37737
37739
  height: "100%",
37738
37740
  border: "1px solid #eee"
37739
37741
  }, children: [
@@ -37766,8 +37768,8 @@ const nV = [{
37766
37768
  n.editor.setPath(["_QUERIES_", d]);
37767
37769
  }, c = s.queryIDs.length;
37768
37770
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
37769
- /* @__PURE__ */ r.jsx(Bg, { opened: a, onClose: () => o(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(he.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(k, { spacing: "lg", children: i.queries.options.map((d) => /* @__PURE__ */ r.jsx(he, { label: d.label, value: d.value }, d.value)) }) }) }),
37770
- /* @__PURE__ */ r.jsxs(k, { spacing: 6, children: [
37771
+ /* @__PURE__ */ r.jsx(Bg, { opened: a, onClose: () => o(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(he.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(C, { spacing: "lg", children: i.queries.options.map((d) => /* @__PURE__ */ r.jsx(he, { label: d.label, value: d.value }, d.value)) }) }) }),
37772
+ /* @__PURE__ */ r.jsxs(C, { spacing: 6, children: [
37771
37773
  /* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(M, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Lb, { size: 16 }), onClick: () => o(!0), children: t(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
37772
37774
  c === 1 && /* @__PURE__ */ r.jsx(Zo, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(_e, { label: t("query.open"), children: /* @__PURE__ */ r.jsx(se, { variant: "subtle", color: "blue", onClick: () => l(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(vo, { size: 16 }) }) }) }),
37773
37775
  c > 1 && /* @__PURE__ */ r.jsxs(_, { defaultValue: s.queryIDs[0], children: [
@@ -37812,7 +37814,7 @@ function dV() {
37812
37814
  label: e(i.displayName ?? i.name),
37813
37815
  group: e(i.displayGroup ?? "")
37814
37816
  }));
37815
- return C.orderBy(n, [(i) => i.group, (i) => i.label], ["asc", "asc"]);
37817
+ return k.orderBy(n, [(i) => i.group, (i) => i.label], ["asc", "asc"]);
37816
37818
  }, [t]);
37817
37819
  }
37818
37820
  const uV = D(({
@@ -37890,13 +37892,13 @@ const mV = D(() => {
37890
37892
  conf: t.conf,
37891
37893
  setConf: t.setConf
37892
37894
  }) : null, c = o || l;
37893
- return /* @__PURE__ */ r.jsxs(k, { align: "stretch", sx: {
37895
+ return /* @__PURE__ */ r.jsxs(C, { align: "stretch", sx: {
37894
37896
  height: "100%",
37895
37897
  overflow: "hidden"
37896
37898
  }, children: [
37897
37899
  /* @__PURE__ */ r.jsx(uV, { submit: i, value: t.type }),
37898
37900
  /* @__PURE__ */ r.jsxs(ut, { children: [
37899
- /* @__PURE__ */ r.jsx(k, { pb: 10, sx: {
37901
+ /* @__PURE__ */ r.jsx(C, { pb: 10, sx: {
37900
37902
  flexGrow: 1,
37901
37903
  maxHeight: "100%",
37902
37904
  overflow: "auto"
@@ -37922,7 +37924,7 @@ const mV = D(() => {
37922
37924
  };
37923
37925
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
37924
37926
  /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(hh, { size: 14 }), children: n("panel.settings.change_view") }),
37925
- /* @__PURE__ */ r.jsx(He, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { sx: {
37927
+ /* @__PURE__ */ r.jsx(He, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(C, { sx: {
37926
37928
  maxHeight: "calc(100vh - 185px)",
37927
37929
  overflow: "hidden"
37928
37930
  }, children: [
@@ -37930,7 +37932,7 @@ const mV = D(() => {
37930
37932
  flexGrow: 1,
37931
37933
  maxHeight: "calc(100vh - 185px - 30px)",
37932
37934
  overflow: "auto"
37933
- }, children: /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: i.views.options.map((u) => /* @__PURE__ */ r.jsx(cd, { value: u.value, label: u.label }, u.value)) }) }),
37935
+ }, children: /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: i.views.options.map((u) => /* @__PURE__ */ r.jsx(cd, { value: u.value, label: u.label }, u.value)) }) }),
37934
37936
  /* @__PURE__ */ r.jsxs(y, { noWrap: !0, position: "apart", sx: {
37935
37937
  flexGrow: 0,
37936
37938
  flexShrink: 0
@@ -37954,7 +37956,7 @@ const mV = D(() => {
37954
37956
  };
37955
37957
  return JSON.stringify(o, null, 2);
37956
37958
  })();
37957
- return /* @__PURE__ */ r.jsx(k, { sx: {
37959
+ return /* @__PURE__ */ r.jsx(C, { sx: {
37958
37960
  overflow: "hidden",
37959
37961
  ...e
37960
37962
  }, children: /* @__PURE__ */ r.jsxs(_, { defaultValue: "vars", keepMounted: !1, children: [
@@ -38055,7 +38057,7 @@ function yV({
38055
38057
  a((p) => [...p, ""]);
38056
38058
  }, [a]), l = O.useCallback((p) => {
38057
38059
  a((m) => (m.splice(p, 1), [...m]));
38058
- }, [a]), c = O.useMemo(() => !C.isEqual(s, t), [s, t]), d = () => {
38060
+ }, [a]), c = O.useMemo(() => !k.isEqual(s, t), [s, t]), d = () => {
38059
38061
  n(s.map((p) => p.toString()));
38060
38062
  }, u = Yi(), h = O.useMemo(() => Object.entries(u.colors).map(([p, m]) => m[6]), [u]);
38061
38063
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -38084,7 +38086,7 @@ function _V({
38084
38086
  o((h) => [...h, ""]);
38085
38087
  }, [o]), c = O.useCallback((h) => {
38086
38088
  o((p) => (p.splice(h, 1), [...p]));
38087
- }, [o]), d = O.useMemo(() => !C.isEqual(a.map(String), t.map(String)), [a, t]), u = () => {
38089
+ }, [o]), d = O.useMemo(() => !k.isEqual(a.map(String), t.map(String)), [a, t]), u = () => {
38088
38090
  n(a.map((h) => i === "number" ? Number(h) : h.toString()));
38089
38091
  };
38090
38092
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -38110,8 +38112,8 @@ const jV = O.forwardRef(_V), wV = O.forwardRef(function({
38110
38112
  const {
38111
38113
  t: s
38112
38114
  } = v(), a = t.color.type, o = (c, d) => {
38113
- const u = C.cloneDeep(t);
38114
- C.set(u, c, d), n(u);
38115
+ const u = k.cloneDeep(t);
38116
+ k.set(u, c, d), n(u);
38115
38117
  }, l = (c) => {
38116
38118
  if (c === "static") {
38117
38119
  n({
@@ -38133,7 +38135,7 @@ const jV = O.forwardRef(_V), wV = O.forwardRef(function({
38133
38135
  });
38134
38136
  };
38135
38137
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
38136
- /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsx(E, { label: s("style.font_size.label"), placeholder: s("styles.font_size.placeholder"), sx: {
38138
+ /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(E, { label: s("style.font_size.label"), placeholder: s("styles.font_size.placeholder"), sx: {
38137
38139
  flex: 1
38138
38140
  }, value: t.size, onChange: (c) => o("size", c.currentTarget.value) }) }),
38139
38141
  /* @__PURE__ */ r.jsx(y, { position: "apart", grow: !0, sx: {
@@ -38143,7 +38145,7 @@ const jV = O.forwardRef(_V), wV = O.forwardRef(function({
38143
38145
  }
38144
38146
  }, children: /* @__PURE__ */ r.jsx(Xf, { label: s("style.font_weight.label"), value: t.weight, onChange: (c) => o("weight", c) }) }),
38145
38147
  /* @__PURE__ */ r.jsx($, { mt: "lg", mb: 0, variant: "dashed", label: s("style.label"), labelPosition: "center" }),
38146
- /* @__PURE__ */ r.jsxs(k, { children: [
38148
+ /* @__PURE__ */ r.jsxs(C, { children: [
38147
38149
  /* @__PURE__ */ r.jsx(q, { label: "Color Type", data: [{
38148
38150
  label: "Static Color",
38149
38151
  value: "static"
@@ -38167,11 +38169,11 @@ const jV = O.forwardRef(_V), wV = O.forwardRef(function({
38167
38169
  const {
38168
38170
  t: o
38169
38171
  } = v(), l = (c, d) => {
38170
- const u = C.cloneDeep(t);
38171
- C.set(u, c, d), n(u);
38172
+ const u = k.cloneDeep(t);
38173
+ k.set(u, c, d), n(u);
38172
38174
  };
38173
- return /* @__PURE__ */ r.jsxs(k, { ref: a, children: [
38174
- /* @__PURE__ */ r.jsxs(k, { spacing: "xs", px: "sm", py: "md", sx: {
38175
+ return /* @__PURE__ */ r.jsxs(C, { ref: a, children: [
38176
+ /* @__PURE__ */ r.jsxs(C, { spacing: "xs", px: "sm", py: "md", sx: {
38175
38177
  border: "1px solid #e9ecef"
38176
38178
  }, children: [
38177
38179
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
@@ -38194,7 +38196,7 @@ const jV = O.forwardRef(_V), wV = O.forwardRef(function({
38194
38196
  const {
38195
38197
  t
38196
38198
  } = v(), n = bn(() => r2(e.variable), [e.variable]), i = () => e.uiModel.remove(e.variable);
38197
- return /* @__PURE__ */ r.jsxs(k, { "data-testid": "variable-editor", align: "stretch", children: [
38199
+ return /* @__PURE__ */ r.jsxs(C, { "data-testid": "variable-editor", align: "stretch", children: [
38198
38200
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
38199
38201
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(an, { size: 18 }), children: t("common.actions.revert_changes") }),
38200
38202
  /* @__PURE__ */ r.jsx(M, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Le, { size: 18 }), children: t("common.actions.save_changes") })
@@ -38206,7 +38208,7 @@ D((e) => {
38206
38208
  const {
38207
38209
  uiModel: t
38208
38210
  } = e;
38209
- return /* @__PURE__ */ r.jsx(k, { className: "var-list", children: t.variables.map((n) => /* @__PURE__ */ r.jsx(M, { variant: t.selected === n ? "filled" : "subtle", color: "gray", onClick: () => t.select(n), children: n.name }, n.name)) });
38211
+ return /* @__PURE__ */ r.jsx(C, { className: "var-list", children: t.variables.map((n) => /* @__PURE__ */ r.jsx(M, { variant: t.selected === n ? "filled" : "subtle", color: "gray", onClick: () => t.select(n), children: n.name }, n.name)) });
38210
38212
  });
38211
38213
  const CV = D(({
38212
38214
  model: e
@@ -38227,7 +38229,7 @@ const CV = D(({
38227
38229
  const {
38228
38230
  t: e
38229
38231
  } = v(), t = bV();
38230
- return t.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(CV, { model: t }) : /* @__PURE__ */ r.jsxs(k, { pb: 20, children: [
38232
+ return t.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(CV, { model: t }) : /* @__PURE__ */ r.jsxs(C, { pb: 20, children: [
38231
38233
  /* @__PURE__ */ r.jsxs(y, { position: "left", children: [
38232
38234
  /* @__PURE__ */ r.jsx(q, { label: e("panel.variable.labels"), data: t.variableOptions, value: (n = t.selected) == null ? void 0 : n.name, onChange: t.selectByName, maxDropdownHeight: 600, sx: {
38233
38235
  flexGrow: 1
@@ -38268,7 +38270,7 @@ const CV = D(({
38268
38270
  height: "100%",
38269
38271
  overflow: "auto"
38270
38272
  }, children: e }),
38271
- /* @__PURE__ */ r.jsxs(k, { justify: "flex-start", sx: {
38273
+ /* @__PURE__ */ r.jsxs(C, { justify: "flex-start", sx: {
38272
38274
  alignSelf: "flex-start",
38273
38275
  width: "600px",
38274
38276
  flexGrow: 0,
@@ -38390,7 +38392,7 @@ const DV = D(({
38390
38392
  }, u = () => {
38391
38393
  n([]);
38392
38394
  }, h = s.content.queriesUsage;
38393
- return /* @__PURE__ */ r.jsxs(k, { sx: {
38395
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
38394
38396
  height: "100%"
38395
38397
  }, spacing: "sm", pb: "59px", children: [
38396
38398
  /* @__PURE__ */ r.jsx(R, { pt: 9, pb: 8, sx: {
@@ -38508,7 +38510,7 @@ const DV = D(({
38508
38510
  count: i,
38509
38511
  spacing: s = 16,
38510
38512
  pl: a = 0
38511
- }) => /* @__PURE__ */ r.jsxs(k, { spacing: s, mt: 6, pl: a, children: [
38513
+ }) => /* @__PURE__ */ r.jsxs(C, { spacing: s, mt: 6, pl: a, children: [
38512
38514
  Array.from(new Array(i - 1), (o, l) => /* @__PURE__ */ r.jsx(dd, { width: e, height: n, radius: "xs" }, l)),
38513
38515
  /* @__PURE__ */ r.jsx(dd, { width: t, height: n, radius: "xs" })
38514
38516
  ] }), qi = ({
@@ -38691,7 +38693,7 @@ const DV = D(({
38691
38693
  return t.loading || t.empty ? null : e.type === et.MySQL ? /* @__PURE__ */ r.jsx($V, { dataSource: e }) : e.type === et.Postgresql ? /* @__PURE__ */ r.jsx(OV, { dataSource: e }) : null;
38692
38694
  }), VV = D(({
38693
38695
  dataSource: e
38694
- }) => /* @__PURE__ */ r.jsxs(k, { spacing: 40, pt: 10, sx: {
38696
+ }) => /* @__PURE__ */ r.jsxs(C, { spacing: 40, pt: 10, sx: {
38695
38697
  flexGrow: 1,
38696
38698
  overflow: "auto",
38697
38699
  position: "relative"
@@ -38969,7 +38971,7 @@ const qV = D(({
38969
38971
  i(e.name);
38970
38972
  }, [e.name]), /* @__PURE__ */ r.jsx(mr, { ml: 20, mt: 20, sx: {
38971
38973
  maxWidth: "600px"
38972
- }, children: /* @__PURE__ */ r.jsxs(k, { spacing: 10, sx: {
38974
+ }, children: /* @__PURE__ */ r.jsxs(C, { spacing: 10, sx: {
38973
38975
  width: "100%"
38974
38976
  }, children: [
38975
38977
  /* @__PURE__ */ r.jsx($, { mb: -10, variant: "dashed", label: t("query.basics"), labelPosition: "center" }),
@@ -39051,7 +39053,7 @@ WHERE
39051
39053
  };
39052
39054
  return t && (c.sql_snippets = a.sqlSnippets.record), JSON.stringify(c, null, 2);
39053
39055
  })();
39054
- return /* @__PURE__ */ r.jsx(k, { sx: {
39056
+ return /* @__PURE__ */ r.jsx(C, { sx: {
39055
39057
  overflow: "hidden",
39056
39058
  ...n
39057
39059
  }, children: /* @__PURE__ */ r.jsxs(_, { defaultValue: "guide", keepMounted: !1, children: [
@@ -39066,7 +39068,7 @@ WHERE
39066
39068
  /* @__PURE__ */ r.jsx(_.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Yn, { language: "json", sx: {
39067
39069
  width: "100%"
39068
39070
  }, noCopy: !0, colorScheme: "dark", children: l }) }),
39069
- /* @__PURE__ */ r.jsx(_.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(k, { spacing: 10, children: [
39071
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(C, { spacing: 10, children: [
39070
39072
  /* @__PURE__ */ r.jsx(Xi, { icon: /* @__PURE__ */ r.jsx(Bi, { size: 16 }), title: i("global_sql_snippet.labels"), children: i("global_sql_snippet.description") }),
39071
39073
  /* @__PURE__ */ r.jsx(tN, {})
39072
39074
  ] }) })
@@ -39126,7 +39128,7 @@ WHERE
39126
39128
  }, a = (o) => {
39127
39129
  i.setPath(["_VIEWS_", o]);
39128
39130
  };
39129
- return /* @__PURE__ */ r.jsx(k, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(ot, { highlightOnHover: !0, sx: {
39131
+ return /* @__PURE__ */ r.jsx(C, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(ot, { highlightOnHover: !0, sx: {
39130
39132
  tableLayout: "fixed"
39131
39133
  }, children: [
39132
39134
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -39141,7 +39143,7 @@ WHERE
39141
39143
  /* @__PURE__ */ r.jsx("tbody", { children: t.map((o) => /* @__PURE__ */ r.jsxs("tr", { children: [
39142
39144
  /* @__PURE__ */ r.jsx("td", { children: n(o.type_label) }),
39143
39145
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Ns, { component: "button", type: "button", onClick: () => s(o), children: o.label }) }),
39144
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsxs(k, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
39146
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsxs(C, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
39145
39147
  o.views.map((l) => /* @__PURE__ */ r.jsx(Ns, { component: "button", type: "button", onClick: () => a(l.id), children: /* @__PURE__ */ r.jsx(R, { children: l.label }) }, l.id)),
39146
39148
  o.views.length === 0 && /* @__PURE__ */ r.jsx(R, { children: "--" })
39147
39149
  ] }) })
@@ -39152,7 +39154,7 @@ WHERE
39152
39154
  }) => {
39153
39155
  const {
39154
39156
  t
39155
- } = v(), n = T(() => C.groupBy(e.dependencies, "type"), [e.dependencies]), i = T(() => e.dependencies.some((a) => !a.valid), [e.dependencies]), s = e.dependencies.length > 0;
39157
+ } = v(), n = T(() => k.groupBy(e.dependencies, "type"), [e.dependencies]), i = T(() => e.dependencies.some((a) => !a.valid), [e.dependencies]), s = e.dependencies.length > 0;
39156
39158
  return s ? /* @__PURE__ */ r.jsxs(Xe, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
39157
39159
  /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(M, { size: "xs", variant: "subtle", color: i ? "red" : "green", disabled: !s, leftIcon: i ? /* @__PURE__ */ r.jsx(ph, { size: 16 }) : /* @__PURE__ */ r.jsx(Fb, { size: 16 }), children: t("query.dependency.label") }) }),
39158
39160
  /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Qt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(Qt.Item, { children: [
@@ -39189,7 +39191,7 @@ WHERE
39189
39191
  i(e.sql);
39190
39192
  }, [e.sql]);
39191
39193
  const l = n !== e.sql;
39192
- return /* @__PURE__ */ r.jsxs(k, { spacing: 4, sx: {
39194
+ return /* @__PURE__ */ r.jsxs(C, { spacing: 4, sx: {
39193
39195
  height: "100%"
39194
39196
  }, children: [
39195
39197
  /* @__PURE__ */ r.jsxs(y, { mb: 6, position: "apart", sx: {
@@ -39270,7 +39272,7 @@ WHERE
39270
39272
  const {
39271
39273
  t
39272
39274
  } = v(), n = ye();
39273
- return e.isTransform ? /* @__PURE__ */ r.jsxs(k, { py: 20, px: 20, sx: {
39275
+ return e.isTransform ? /* @__PURE__ */ r.jsxs(C, { py: 20, px: 20, sx: {
39274
39276
  height: "100%"
39275
39277
  }, children: [
39276
39278
  /* @__PURE__ */ r.jsx(S, { size: "sm", children: t("query.transform.guide.pick_queries") }),
@@ -39306,13 +39308,13 @@ WHERE
39306
39308
  /* @__PURE__ */ r.jsx(_.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ r.jsx(_e, { label: t("query.usage.unused_description"), disabled: !l, withinPortal: !0, children: /* @__PURE__ */ r.jsx(S, { children: t("query.usage.label") }) }) })
39307
39309
  ] }),
39308
39310
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(ZV, { queryModel: e }) }),
39309
- e.typedAsSQL && /* @__PURE__ */ r.jsx(_.Panel, { value: "SQL", sx: zi, children: /* @__PURE__ */ r.jsx(k, { sx: {
39311
+ e.typedAsSQL && /* @__PURE__ */ r.jsx(_.Panel, { value: "SQL", sx: zi, children: /* @__PURE__ */ r.jsx(C, { sx: {
39310
39312
  height: "100%"
39311
39313
  }, children: /* @__PURE__ */ r.jsx(dN, { queryModel: e }) }) }),
39312
- e.typedAsHTTP && /* @__PURE__ */ r.jsx(_.Panel, { value: "HTTP", sx: zi, children: /* @__PURE__ */ r.jsx(k, { sx: {
39314
+ e.typedAsHTTP && /* @__PURE__ */ r.jsx(_.Panel, { value: "HTTP", sx: zi, children: /* @__PURE__ */ r.jsx(C, { sx: {
39313
39315
  height: "100%"
39314
39316
  }, children: /* @__PURE__ */ r.jsx(rN, { queryModel: e }) }) }),
39315
- e.isTransform && /* @__PURE__ */ r.jsx(_.Panel, { value: "Transform", sx: zi, children: /* @__PURE__ */ r.jsx(k, { sx: {
39317
+ e.isTransform && /* @__PURE__ */ r.jsx(_.Panel, { value: "Transform", sx: zi, children: /* @__PURE__ */ r.jsx(C, { sx: {
39316
39318
  height: "100%"
39317
39319
  }, children: /* @__PURE__ */ r.jsx(hN, { queryModel: e }) }) }),
39318
39320
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Data", sx: {
@@ -39364,7 +39366,7 @@ WHERE
39364
39366
  zIndex: 320
39365
39367
  });
39366
39368
  };
39367
- return /* @__PURE__ */ r.jsxs(k, { p: 20, sx: {
39369
+ return /* @__PURE__ */ r.jsxs(C, { p: 20, sx: {
39368
39370
  maxWidth: "1100px",
39369
39371
  height: "100vh"
39370
39372
  }, spacing: "sm", children: [
@@ -39458,7 +39460,7 @@ WHERE
39458
39460
  }, u = () => {
39459
39461
  n([]);
39460
39462
  }, h = s.content.sqlSnippetsUsage;
39461
- return /* @__PURE__ */ r.jsxs(k, { sx: {
39463
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
39462
39464
  height: "100%"
39463
39465
  }, spacing: "sm", pb: "59px", children: [
39464
39466
  /* @__PURE__ */ r.jsx(R, { pt: 9, pb: 8, sx: {
@@ -39529,7 +39531,7 @@ WHERE
39529
39531
  ] });
39530
39532
  }), yN = D(({
39531
39533
  view: e
39532
- }) => !e || e.type !== J.Division ? null : /* @__PURE__ */ r.jsx(k, {})), vN = D(({
39534
+ }) => !e || e.type !== J.Division ? null : /* @__PURE__ */ r.jsx(C, {})), vN = D(({
39533
39535
  view: e
39534
39536
  }) => {
39535
39537
  const {
@@ -39554,7 +39556,7 @@ WHERE
39554
39556
  if (!e || e.type !== J.Tabs)
39555
39557
  return null;
39556
39558
  const a = e.config;
39557
- return /* @__PURE__ */ r.jsxs(k, { children: [
39559
+ return /* @__PURE__ */ r.jsxs(C, { children: [
39558
39560
  /* @__PURE__ */ r.jsx($, { mt: 8, mb: 0, label: t("view.component.tabs.tabs_settings"), labelPosition: "center" }),
39559
39561
  /* @__PURE__ */ r.jsx(q, { label: t("common.tabs.variant.label"), value: a.variant, onChange: a.setVariant, data: i }),
39560
39562
  /* @__PURE__ */ r.jsx(q, { label: t("common.tabs.orientation.label"), value: a.orientation, onChange: a.setOrientation, data: s }),
@@ -39617,7 +39619,7 @@ WHERE
39617
39619
  /* @__PURE__ */ r.jsx(se, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: s, sx: {
39618
39620
  flexGrow: 0
39619
39621
  }, children: /* @__PURE__ */ r.jsx(mi, { size: 14 }) }),
39620
- /* @__PURE__ */ r.jsx(He, { size: 800, title: n("view.component.modal.custom_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
39622
+ /* @__PURE__ */ r.jsx(He, { size: 800, title: n("view.component.modal.custom_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
39621
39623
  /* @__PURE__ */ r.jsx(he, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (m) => c(m.currentTarget.checked) }),
39622
39624
  /* @__PURE__ */ r.jsx(_N, { value: o.func_content, onChange: h, disabled: !o.enabled }),
39623
39625
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
@@ -39638,10 +39640,10 @@ WHERE
39638
39640
  if (!e || e.type !== J.Modal)
39639
39641
  return null;
39640
39642
  const n = e.config, i = n.custom_modal_title.value;
39641
- return /* @__PURE__ */ r.jsxs(k, { children: [
39643
+ return /* @__PURE__ */ r.jsxs(C, { children: [
39642
39644
  /* @__PURE__ */ r.jsx($, { mt: 8, label: t("view.component.modal.modal_settings"), labelPosition: "center" }),
39643
39645
  /* @__PURE__ */ r.jsxs(sn, { gap: 10, children: [
39644
- /* @__PURE__ */ r.jsx(E, { label: t("view.component.modal.title"), value: i, onChange: C.noop, disabled: !0, sx: {
39646
+ /* @__PURE__ */ r.jsx(E, { label: t("view.component.modal.title"), value: i, onChange: k.noop, disabled: !0, sx: {
39645
39647
  flexGrow: 1
39646
39648
  } }),
39647
39649
  /* @__PURE__ */ r.jsx(jN, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
@@ -39673,7 +39675,7 @@ WHERE
39673
39675
  label: t("view.component.tabs.label"),
39674
39676
  value: J.Tabs
39675
39677
  }], [n.language]);
39676
- return e ? /* @__PURE__ */ r.jsxs(k, { sx: {
39678
+ return e ? /* @__PURE__ */ r.jsxs(C, { sx: {
39677
39679
  position: "relative"
39678
39680
  }, children: [
39679
39681
  /* @__PURE__ */ r.jsx(E, { label: t("common.name"), value: e.name, onChange: (s) => {
@@ -39713,7 +39715,7 @@ WHERE
39713
39715
  zIndex: 320
39714
39716
  });
39715
39717
  };
39716
- return /* @__PURE__ */ r.jsxs(k, { sx: {
39718
+ return /* @__PURE__ */ r.jsxs(C, { sx: {
39717
39719
  maxWidth: "600px",
39718
39720
  height: "100%"
39719
39721
  }, spacing: "sm", children: [
@@ -39724,7 +39726,7 @@ WHERE
39724
39726
  overflow: "auto"
39725
39727
  }, children: /* @__PURE__ */ r.jsx(kN, { view: a }) })
39726
39728
  ] });
39727
- }), IN = D(() => /* @__PURE__ */ r.jsx(k, { sx: {
39729
+ }), IN = D(() => /* @__PURE__ */ r.jsx(C, { sx: {
39728
39730
  height: "100%"
39729
39731
  }, p: "sm", children: /* @__PURE__ */ r.jsx(cg, {}) })), TN = D(() => {
39730
39732
  const e = Te().editor, t = e.path;
@@ -40243,9 +40245,9 @@ const YN = ({
40243
40245
  }, [p]), O.useEffect(() => {
40244
40246
  f.globalSQLSnippets.replace(m);
40245
40247
  }, [m]), O.useEffect(() => {
40246
- console.log("calling onFilterValuesChange: ", f.content.filters.values), c == null || c(f.content.filters.values);
40248
+ console.log("⚪️ calling onFilterValuesChange: ", f.content.filters.values), c == null || c(f.content.filters.values);
40247
40249
  }, [c, f.content.filters.valuesString]), O.useEffect(() => {
40248
- l && (console.log("patching filter values: ", l), f.content.filters.patchValues(l));
40250
+ l && f.content.filters.patchValues(l);
40249
40251
  }, [l, f.content.filters.patchValues]), O.useEffect(() => {
40250
40252
  u == null || u(f.content.views.firstVisibleTabsViewActiveTab);
40251
40253
  }, [u, f.content.views.firstVisibleTabsViewActiveTab]), O.useEffect(() => {