@devtable/dashboard 11.4.0 → 11.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var th = Object.defineProperty;
2
2
  var nh = (e, t, n) => t in e ? th(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var N = (e, t, n) => (nh(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import M, { forwardRef as he, useState as q, useEffect as O, useCallback as Be, useMemo as T, createElement as ts, useContext as Ht, useRef as ns, createContext as el, memo as rh } from "react";
5
- import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as Te, Group as b, Select as L, Stack as w, Divider as I, NumberInput as U, Switch as Ve, Table as We, ActionIcon as W, MultiSelect as $n, Paper as sh, Code as Ja, Modal as ge, Tabs as f, LoadingOverlay as _n, Alert as rs, ColorSwatch as ti, Overlay as Rt, Checkbox as K, Collapse as xr, Center as Sn, useMantineTheme as tl, CheckIcon as ih, MANTINE_SIZES as ah, SimpleGrid as nn, Tooltip as be, NativeSelect as nl, SegmentedControl as oh, Anchor as ni, Textarea as lh, Mark as ch, ColorInput as ji, createStyles as mr, Popover as On, Slider as dh, Flex as Ut, Badge as bn, CloseButton as rl, Menu as ue, Affix as uh, Header as hh, List as it, FileInput as ph, ThemeIcon as Ps, UnstyledButton as xh, Navbar as Nt, JsonInput as sl, Pagination as il, Drawer as mh, Accordion as Ir, Radio as Za, Skeleton as eo, NavLink as ri, AppShell as al } from "@mantine/core";
5
+ import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as Te, Group as b, Select as L, Stack as _, Divider as I, NumberInput as U, Switch as Ve, Table as We, ActionIcon as W, MultiSelect as $n, Paper as sh, Code as Ja, Modal as ge, Tabs as f, LoadingOverlay as _n, Alert as rs, ColorSwatch as ti, Overlay as Rt, Checkbox as K, Collapse as xr, Center as Sn, useMantineTheme as tl, CheckIcon as ih, MANTINE_SIZES as ah, SimpleGrid as nn, Tooltip as be, NativeSelect as nl, SegmentedControl as oh, Anchor as ni, Textarea as lh, Mark as ch, ColorInput as ji, createStyles as mr, Popover as On, Slider as dh, Flex as Ut, Badge as bn, CloseButton as rl, Menu as ue, Affix as uh, Header as hh, List as it, FileInput as ph, ThemeIcon as Ps, UnstyledButton as xh, Navbar as Nt, JsonInput as sl, Pagination as il, Drawer as mh, Accordion as Ir, Radio as Za, Skeleton as eo, NavLink as ri, AppShell as al } from "@mantine/core";
6
6
  import { useModals as Et, ModalsProvider as ol } from "@mantine/modals";
7
7
  import { useBoolean as $e, useCreation as kt, useAsyncEffect as fr, useRequest as yn, useWhyDidYouUpdate as ll, useLatest as to, usePrevious as fh } from "ahooks";
8
8
  import { toJS as Kt, observable as cl, runInAction as sr, reaction as ot, makeAutoObservable as gr } from "mobx";
@@ -13,7 +13,7 @@ import yh from "crypto-js";
13
13
  import * as jh from "d3-array";
14
14
  import { quantile as Er } from "d3-array";
15
15
  import E from "dayjs";
16
- import _, { cloneDeepWith as dl, unset as vh, get as te, isObject as ul, set as vi, omit as jn, isFunction as wh, orderBy as _h, last as hl, defaults as Ce, minBy as Sh, maxBy as Ch, cloneDeep as Ne, values as pl, template as wi, throttle as kh, isEqual as fe, defaultsDeep as je, keyBy as Th, isEmpty as xl, isNumber as Dh, findLastIndex as Ih, isString as ml, range as zh, pick as fl } from "lodash";
16
+ import w, { cloneDeepWith as dl, unset as vh, get as te, isObject as ul, set as vi, omit as jn, isFunction as wh, orderBy as _h, last as hl, defaults as Ce, minBy as Sh, maxBy as Ch, cloneDeep as Ne, values as pl, template as wi, throttle as kh, isEqual as fe, defaultsDeep as je, keyBy as Th, isEmpty as xl, isNumber as Dh, findLastIndex as Ih, isString as ml, range as zh, pick as fl } from "lodash";
17
17
  import * as Fr from "mathjs";
18
18
  import si from "numbro";
19
19
  import Bt from "axios";
@@ -731,7 +731,7 @@ const Xt = {
731
731
  CryptoJS: yh,
732
732
  d3Array: jh,
733
733
  dayjs: E,
734
- lodash: _,
734
+ lodash: w,
735
735
  numbro: si,
736
736
  mathjs: Fr,
737
737
  faker: gh
@@ -1033,15 +1033,15 @@ function tm(e) {
1033
1033
  function nm(e, t) {
1034
1034
  switch (t.type) {
1035
1035
  case "sum":
1036
- return _.sum(e);
1036
+ return w.sum(e);
1037
1037
  case "mean":
1038
- return _.mean(e);
1038
+ return w.mean(e);
1039
1039
  case "median":
1040
1040
  return tm(e);
1041
1041
  case "max":
1042
- return _.max(e);
1042
+ return w.max(e);
1043
1043
  case "min":
1044
- return _.min(e);
1044
+ return w.min(e);
1045
1045
  case "quantile":
1046
1046
  return Er(e, t.config.p);
1047
1047
  case "CV":
@@ -1719,7 +1719,7 @@ class Ri {
1719
1719
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1720
1720
  }
1721
1721
  }
1722
- const rc = "11.4.0", Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1722
+ const rc = "11.5.1", Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1723
1723
  __proto__: null,
1724
1724
  version: rc
1725
1725
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1998,7 +1998,7 @@ function xc() {
1998
1998
  }
1999
1999
  const Dn = () => xc(), It = () => xc(), qm = {
2000
2000
  fullScreenPanelID: "",
2001
- setFullScreenPanelID: _.noop
2001
+ setFullScreenPanelID: w.noop
2002
2002
  }, mc = M.createContext(qm);
2003
2003
  function Bm() {
2004
2004
  const e = M.useContext(mc);
@@ -2052,7 +2052,7 @@ function Wm({
2052
2052
  });
2053
2053
  return O(() => {
2054
2054
  o(s);
2055
- }, [t]), t ? /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
2055
+ }, [t]), t ? /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
2056
2056
  /* @__PURE__ */ r.jsx(j, { children: "X Axis" }),
2057
2057
  /* @__PURE__ */ r.jsxs(b, { position: "apart", grow: !0, p: "md", sx: {
2058
2058
  position: "relative",
@@ -2217,10 +2217,10 @@ const Ym = [{
2217
2217
  onChange: n
2218
2218
  }, s) => {
2219
2219
  const i = (a) => (o) => {
2220
- const l = _.cloneDeep(t);
2221
- _.set(l, a, o), n(l);
2220
+ const l = w.cloneDeep(t);
2221
+ w.set(l, a, o), n(l);
2222
2222
  };
2223
- return /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
2223
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
2224
2224
  e && /* @__PURE__ */ r.jsx(I, { mb: -5, mt: 5, variant: "dotted", label: e, labelPosition: "right", labelProps: {
2225
2225
  color: "dimmed"
2226
2226
  } }),
@@ -2252,7 +2252,7 @@ const Ym = [{
2252
2252
  in_tooltip: a
2253
2253
  });
2254
2254
  };
2255
- return /* @__PURE__ */ r.jsxs(w, { ref: n, spacing: 0, children: [
2255
+ return /* @__PURE__ */ r.jsxs(_, { ref: n, spacing: 0, children: [
2256
2256
  /* @__PURE__ */ r.jsx(Qr, { sectionTitle: "Overflow on Axis", value: e.on_axis, onChange: s }),
2257
2257
  /* @__PURE__ */ r.jsx(Qr, { sectionTitle: "Overflow in Tooltip", value: e.in_tooltip, onChange: i })
2258
2258
  ] });
@@ -2337,7 +2337,7 @@ function In(e, t) {
2337
2337
  queryID: n,
2338
2338
  columnKey: s
2339
2339
  } = $(t);
2340
- return _.keyBy(e[n], s);
2340
+ return w.keyBy(e[n], s);
2341
2341
  }, [e, t]);
2342
2342
  }
2343
2343
  const yt = (e, t) => {
@@ -2435,7 +2435,7 @@ function Jm(e) {
2435
2435
  ...t,
2436
2436
  urlTemplate: l.currentTarget.value
2437
2437
  });
2438
- return /* @__PURE__ */ r.jsxs(w, { children: [
2438
+ return /* @__PURE__ */ r.jsxs(_, { children: [
2439
2439
  /* @__PURE__ */ r.jsx(D, { label: "Url", value: t.urlTemplate, onChange: o, onBlur: i }),
2440
2440
  /* @__PURE__ */ r.jsx(Ve, { label: "Open in new Tab", checked: t.openInNewTab, onChange: (l) => a(l.currentTarget.checked) })
2441
2441
  ] });
@@ -2626,7 +2626,7 @@ const mf = {
2626
2626
  label: l.label,
2627
2627
  value: l.key
2628
2628
  })), [t.filters.values]);
2629
- return /* @__PURE__ */ r.jsx(w, { spacing: 10, children: /* @__PURE__ */ r.jsx($n, { label: "Select Filters to Clear", data: o, value: i, onChange: a }) });
2629
+ return /* @__PURE__ */ r.jsx(_, { spacing: 10, children: /* @__PURE__ */ r.jsx($n, { label: "Select Filters to Clear", data: o, value: i, onChange: a }) });
2630
2630
  });
2631
2631
  async function bf(e, t) {
2632
2632
  const s = (await t.operationData.getItem("config")).filter_keys;
@@ -2863,7 +2863,7 @@ const jt = ({
2863
2863
  };
2864
2864
  return /* @__PURE__ */ r.jsxs(sh, { withBorder: !0, p: "sm", children: [
2865
2865
  /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", mb: "sm", children: t }),
2866
- /* @__PURE__ */ r.jsx(w, { style: {
2866
+ /* @__PURE__ */ r.jsx(_, { style: {
2867
2867
  maxHeight: "500px"
2868
2868
  }, children: n.map((a) => /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
2869
2869
  /* @__PURE__ */ r.jsxs(Ja, { color: "teal", children: [
@@ -2946,7 +2946,7 @@ const Sf = k(({
2946
2946
  await c.configOperation(a, l);
2947
2947
  }, [a, c]), _f(c) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2948
2948
  /* @__PURE__ */ r.jsx(Sf, { model: c, onClick: n }),
2949
- /* @__PURE__ */ r.jsx(ge, { size: 600, opened: t, onClose: s, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2949
+ /* @__PURE__ */ r.jsx(ge, { size: 600, opened: t, onClose: s, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ r.jsxs(_, { children: [
2950
2950
  /* @__PURE__ */ r.jsx(kf, { model: c }),
2951
2951
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "settings", children: [
2952
2952
  /* @__PURE__ */ r.jsxs(f.List, { children: [
@@ -3025,7 +3025,7 @@ const Mf = k(({
3025
3025
  setFalse: s
3026
3026
  }] = $e(!1), i = e.model;
3027
3027
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3028
- /* @__PURE__ */ r.jsx(ge, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
3028
+ /* @__PURE__ */ r.jsx(ge, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(_, { children: [
3029
3029
  /* @__PURE__ */ r.jsx(Lf, { model: i }),
3030
3030
  /* @__PURE__ */ r.jsx(Af, { model: i }),
3031
3031
  /* @__PURE__ */ r.jsx(gc, { title: "Payload", variables: i.triggerSchema.payload })
@@ -3086,7 +3086,7 @@ const Ff = k(({
3086
3086
  return 0;
3087
3087
  }
3088
3088
  });
3089
- return /* @__PURE__ */ r.jsxs(w, { children: [
3089
+ return /* @__PURE__ */ r.jsxs(_, { children: [
3090
3090
  /* @__PURE__ */ r.jsx(_n, { visible: h }),
3091
3091
  u === 0 && /* @__PURE__ */ r.jsx(rs, { icon: /* @__PURE__ */ r.jsx(Fh, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
3092
3092
  l.map((p) => /* @__PURE__ */ r.jsx(Ff, { onRemove: d, instance: i, sampleData: a, variables: o, item: p, manager: e.interactionManager }, p.id)),
@@ -3140,7 +3140,7 @@ const Ff = k(({
3140
3140
  z: 3
3141
3141
  };
3142
3142
  function Vf(e) {
3143
- return _.defaultsDeep({}, e, bc);
3143
+ return w.defaultsDeep({}, e, bc);
3144
3144
  }
3145
3145
  const Nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3146
3146
  __proto__: null,
@@ -3164,7 +3164,7 @@ const Nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3164
3164
  }
3165
3165
  };
3166
3166
  function qf(e) {
3167
- return _.defaultsDeep({}, e, yc);
3167
+ return w.defaultsDeep({}, e, yc);
3168
3168
  }
3169
3169
  const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3170
3170
  __proto__: null,
@@ -3175,7 +3175,7 @@ const Bf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3175
3175
  appendToBody: !0
3176
3176
  };
3177
3177
  function Wf(e) {
3178
- return _.defaultsDeep({}, e, jc);
3178
+ return w.defaultsDeep({}, e, jc);
3179
3179
  }
3180
3180
  const Gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3181
3181
  __proto__: null,
@@ -3204,7 +3204,7 @@ function Qf(e, t) {
3204
3204
  const n = [], s = [];
3205
3205
  return {
3206
3206
  boxplotData: Object.entries(e).map(([a, o]) => {
3207
- const l = o.map((F) => F[t]).sort((F, V) => F - V), c = Er(l, 0.25) ?? 0, d = Er(l, 0.5) ?? 0, u = Er(l, 0.75) ?? 0, h = u - c, p = c - 1.5 * h, x = u + 1.5 * h, y = Math.max(l[0], p), S = Math.min(_.last(l) ?? 0, x);
3207
+ const l = o.map((F) => F[t]).sort((F, V) => F - V), c = Er(l, 0.25) ?? 0, d = Er(l, 0.5) ?? 0, u = Er(l, 0.75) ?? 0, h = u - c, p = c - 1.5 * h, x = u + 1.5 * h, y = Math.max(l[0], p), S = Math.min(w.last(l) ?? 0, x);
3208
3208
  return o.filter((F) => {
3209
3209
  const V = F[t];
3210
3210
  return V < y || V > S;
@@ -3234,7 +3234,7 @@ function Hf(e, t) {
3234
3234
  const i = $(n.data_key), a = $(s.data_key);
3235
3235
  if (i.queryID !== a.queryID)
3236
3236
  throw new Error("Please use the same query for X & Y axis");
3237
- const o = _.groupBy(t[i.queryID], i.columnKey), {
3237
+ const o = w.groupBy(t[i.queryID], i.columnKey), {
3238
3238
  boxplotData: l,
3239
3239
  outliersData: c,
3240
3240
  scatterData: d
@@ -3527,7 +3527,7 @@ function rg(e, t) {
3527
3527
  const sg = (e, t) => {
3528
3528
  const n = ci.map((a) => `
3529
3529
  <tr>
3530
- <th style="text-align: right; padding: 0 1em;">${_.capitalize(a)}</th>
3530
+ <th style="text-align: right; padding: 0 1em;">${w.capitalize(a)}</th>
3531
3531
  <td style="text-align: left; padding: 0 1em;">
3532
3532
  ${Z(t[a], e.y_axis.label_formatter)}
3533
3533
  </td>
@@ -3675,7 +3675,7 @@ function ug({
3675
3675
  vizManager: e.vizManager,
3676
3676
  instance: t
3677
3677
  }), d = yt(c.triggerManager, fc.id), u = In(i, l.x_axis.data_key), h = Be((y) => {
3678
- const S = _.get(u, y.name, {
3678
+ const S = w.get(u, y.name, {
3679
3679
  error: "rowData is not found"
3680
3680
  });
3681
3681
  d.forEach((A) => {
@@ -3747,7 +3747,7 @@ function pg({
3747
3747
  remove: n,
3748
3748
  variableOptions: s
3749
3749
  }) {
3750
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: "md", pr: 40, sx: {
3750
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: "md", pr: 40, sx: {
3751
3751
  border: "1px solid #eee",
3752
3752
  position: "relative"
3753
3753
  }, children: [
@@ -3805,7 +3805,7 @@ function xg({
3805
3805
  label: u.name,
3806
3806
  value: u.name
3807
3807
  })), [n]);
3808
- return /* @__PURE__ */ r.jsxs(w, { children: [
3808
+ return /* @__PURE__ */ r.jsxs(_, { children: [
3809
3809
  l.map((u, h) => /* @__PURE__ */ r.jsx(pg, { control: e, index: h, remove: a, variableOptions: d }, u.id)),
3810
3810
  /* @__PURE__ */ r.jsx(b, { position: "center", mt: "xs", children: /* @__PURE__ */ r.jsx(C, { onClick: c, children: "Add a Reference Line" }) })
3811
3811
  ] });
@@ -3869,7 +3869,7 @@ const mg = ({
3869
3869
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
3870
3870
  flexGrow: 0
3871
3871
  }, children: "Customize Label" }),
3872
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
3872
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
3873
3873
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3874
3874
  /* @__PURE__ */ r.jsx(mg, { value: o.func_content, onChange: h, disabled: !o.enabled }),
3875
3875
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -3884,7 +3884,7 @@ const mg = ({
3884
3884
  }), fg = ({
3885
3885
  control: e,
3886
3886
  watch: t
3887
- }) => (t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
3887
+ }) => (t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
3888
3888
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
3889
3889
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.name", control: e, render: ({
3890
3890
  field: n
@@ -3988,7 +3988,7 @@ function yg({
3988
3988
  };
3989
3989
  return console.log({
3990
3990
  value: e
3991
- }), /* @__PURE__ */ r.jsxs(w, { ref: n, children: [
3991
+ }), /* @__PURE__ */ r.jsxs(_, { ref: n, children: [
3992
3992
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
3993
3993
  /* @__PURE__ */ r.jsx(L, { label: "Format", data: [{
3994
3994
  label: "1234",
@@ -3999,13 +3999,13 @@ function yg({
3999
3999
  }], value: e.output, onChange: s, sx: {
4000
4000
  flexGrow: 1
4001
4001
  } }),
4002
- /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
4002
+ /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
4003
4003
  /* @__PURE__ */ r.jsx(j, { children: "Absolute" }),
4004
4004
  /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "Non-negative" })
4005
4005
  ] }), checked: e.absolute, onChange: l, sx: {
4006
4006
  flexGrow: 1
4007
4007
  }, styles: Bs }),
4008
- /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
4008
+ /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
4009
4009
  /* @__PURE__ */ r.jsx(j, { children: "Average" }),
4010
4010
  /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "like 1.234k, 1.234m" })
4011
4011
  ] }), checked: e.average, onChange: o, disabled: e.output !== "number", sx: {
@@ -4014,7 +4014,7 @@ function yg({
4014
4014
  ] }),
4015
4015
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
4016
4016
  /* @__PURE__ */ r.jsx(U, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
4017
- /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
4017
+ /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
4018
4018
  /* @__PURE__ */ r.jsx(j, { children: "Trim mantissa" }),
4019
4019
  /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "hide trailing zero(s)" })
4020
4020
  ] }), checked: e.trimMantissa, onChange: a, disabled: e.mantissa === 0, styles: Bs }),
@@ -4039,7 +4039,7 @@ const vt = M.forwardRef(yg), jg = ({
4039
4039
  flex: 1
4040
4040
  }, ...n }) })
4041
4041
  ] }),
4042
- /* @__PURE__ */ r.jsxs(w, { children: [
4042
+ /* @__PURE__ */ r.jsxs(_, { children: [
4043
4043
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
4044
4044
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.label_formatter", control: e, render: ({
4045
4045
  field: n
@@ -4049,7 +4049,7 @@ const vt = M.forwardRef(yg), jg = ({
4049
4049
  control: e,
4050
4050
  index: t,
4051
4051
  remove: n
4052
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
4052
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
4053
4053
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
4054
4054
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
4055
4055
  field: s
@@ -4118,7 +4118,7 @@ function _g({
4118
4118
  control: e,
4119
4119
  watch: t
4120
4120
  }) {
4121
- return /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(wg, { control: e, watch: t }) });
4121
+ return /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx(wg, { control: e, watch: t }) });
4122
4122
  }
4123
4123
  const Sg = [{
4124
4124
  label: "Horizontal",
@@ -4137,7 +4137,7 @@ const Sg = [{
4137
4137
  };
4138
4138
  i === "horizontal" ? (o.top = "0", o.left = "auto", o.right = "10", o.bottom = "auto") : (o.top = "10", o.left = "auto", o.right = "0", o.bottom = "auto"), a(o);
4139
4139
  };
4140
- return /* @__PURE__ */ r.jsxs(w, { children: [
4140
+ return /* @__PURE__ */ r.jsxs(_, { children: [
4141
4141
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, mt: 20, children: /* @__PURE__ */ r.jsx(g, { name: "legend.show", control: e, render: ({
4142
4142
  field: i
4143
4143
  }) => /* @__PURE__ */ r.jsx(Ve, { label: "Show Legend", sx: {
@@ -4173,7 +4173,7 @@ function kg({
4173
4173
  d(i);
4174
4174
  }, [i]), l(["x_axis", "y_axis", "reference_lines", "color"]);
4175
4175
  const u = c(), h = T(() => !fe(u, t), [u, t]);
4176
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
4176
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
4177
4177
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
4178
4178
  borderBottom: "1px solid #eee",
4179
4179
  background: "#efefef"
@@ -4203,7 +4203,7 @@ function kg({
4203
4203
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(jg, { control: a, watch: l }) }),
4204
4204
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Legend", children: /* @__PURE__ */ r.jsx(Cg, { control: a, watch: l }) }),
4205
4205
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(_g, { control: a, watch: l }) }),
4206
- /* @__PURE__ */ r.jsx(f.Panel, { value: "Style", children: /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
4206
+ /* @__PURE__ */ r.jsx(f.Panel, { value: "Style", children: /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
4207
4207
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
4208
4208
  /* @__PURE__ */ r.jsx(g, { name: "color", control: a, render: ({
4209
4209
  field: p
@@ -4266,7 +4266,7 @@ function zg(e) {
4266
4266
  }
4267
4267
  }
4268
4268
  };
4269
- return _.defaultsDeep(t, e);
4269
+ return w.defaultsDeep(t, e);
4270
4270
  }
4271
4271
  function Mg(e) {
4272
4272
  delete e.config;
@@ -4283,7 +4283,7 @@ function Mg(e) {
4283
4283
  }
4284
4284
  }
4285
4285
  };
4286
- return _.defaultsDeep(s, e);
4286
+ return w.defaultsDeep(s, e);
4287
4287
  }
4288
4288
  function Lg(e) {
4289
4289
  const t = {
@@ -4291,7 +4291,7 @@ function Lg(e) {
4291
4291
  metrics: []
4292
4292
  }
4293
4293
  };
4294
- return _.defaultsDeep(t, e);
4294
+ return w.defaultsDeep(t, e);
4295
4295
  }
4296
4296
  function Ag(e, {
4297
4297
  panelModel: t
@@ -4340,7 +4340,7 @@ function Rg(e) {
4340
4340
  type: "scroll"
4341
4341
  }
4342
4342
  };
4343
- return _.defaultsDeep(t, e);
4343
+ return w.defaultsDeep(t, e);
4344
4344
  }
4345
4345
  class Eg extends _e {
4346
4346
  constructor() {
@@ -4507,7 +4507,7 @@ const Ni = {
4507
4507
  label: n
4508
4508
  }) => {
4509
4509
  const s = tl(), i = Be((o) => () => t(o), [t]), a = (o) => e === o;
4510
- return /* @__PURE__ */ r.jsxs(w, { spacing: 2, children: [
4510
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 2, children: [
4511
4511
  /* @__PURE__ */ r.jsx(j, { size: 14, sx: {
4512
4512
  fontWeight: 500
4513
4513
  }, children: n }),
@@ -4597,7 +4597,7 @@ function Ug({
4597
4597
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
4598
4598
  /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
4599
4599
  ] }),
4600
- /* @__PURE__ */ r.jsxs(w, { children: [
4600
+ /* @__PURE__ */ r.jsxs(_, { children: [
4601
4601
  /* @__PURE__ */ r.jsx(g, { control: a, name: "content", render: ({
4602
4602
  field: p
4603
4603
  }) => /* @__PURE__ */ r.jsx(D, { label: "Content Template", description: "Filter values & context entries are supported", ...p, required: !0 }) }),
@@ -4894,7 +4894,7 @@ function sb({
4894
4894
  }
4895
4895
  const {
4896
4896
  columnKey: c
4897
- } = $(a.y_axis_data_key), d = _.groupBy(yr(n, a.y_axis_data_key), l);
4897
+ } = $(a.y_axis_data_key), d = w.groupBy(yr(n, a.y_axis_data_key), l);
4898
4898
  Object.entries(d).forEach(([u, h]) => {
4899
4899
  const p = h.map((y, S) => [S, Number(y[c])]);
4900
4900
  i(a, u, u, p);
@@ -4983,7 +4983,7 @@ function lb({
4983
4983
  params: u,
4984
4984
  variables: i
4985
4985
  }, {
4986
- lodash: _,
4986
+ lodash: w,
4987
4987
  interpolate: kn
4988
4988
  });
4989
4989
  } catch (p) {
@@ -4993,11 +4993,11 @@ function lb({
4993
4993
  }
4994
4994
  function Gi(e, t, n) {
4995
4995
  const s = Qt(e, t), i = Qt(e, n);
4996
- return _.zip(s, i);
4996
+ return w.zip(s, i);
4997
4997
  }
4998
4998
  function cb(e, t, n, s) {
4999
4999
  const i = Gi(t, n, s);
5000
- return _.unionBy(i, e, 0);
5000
+ return w.unionBy(i, e, 0);
5001
5001
  }
5002
5002
  function db({
5003
5003
  dataTemplate: e,
@@ -5024,7 +5024,7 @@ function ub({
5024
5024
  y_axis_data_key: i,
5025
5025
  valueTypedXAxis: a
5026
5026
  });
5027
- const o = Gi(t, s, i), l = _.groupBy(o, "0");
5027
+ const o = Gi(t, s, i), l = w.groupBy(o, "0");
5028
5028
  return e.map(([d]) => {
5029
5029
  const h = l[d].map((x) => x[1]), p = Mi(h, n);
5030
5030
  return [d, p];
@@ -5039,7 +5039,7 @@ function hb({
5039
5039
  const {
5040
5040
  queryID: i,
5041
5041
  columnKey: a
5042
- } = $(e), o = _.groupBy(t[i], a);
5042
+ } = $(e), o = w.groupBy(t[i], a);
5043
5043
  return Object.entries(o).forEach(([l, c]) => {
5044
5044
  o[l] = Gi({
5045
5045
  [i]: c
@@ -5230,7 +5230,7 @@ function jb(e) {
5230
5230
  }
5231
5231
  n[s.yAxisIndex] = n[s.yAxisIndex].concat(i);
5232
5232
  }), Object.entries(n).forEach(([s, i]) => {
5233
- const a = _.minBy(i) ?? 0, o = _.maxBy(i) ?? 0;
5233
+ const a = w.minBy(i) ?? 0, o = w.maxBy(i) ?? 0;
5234
5234
  a == 0 && o == 0 && (t[s] = 1);
5235
5235
  }), t;
5236
5236
  }
@@ -5284,7 +5284,7 @@ const wb = {
5284
5284
  }]
5285
5285
  };
5286
5286
  function _b(e, t, n) {
5287
- const s = _c(t, n), i = gb(e), a = _.uniq(Qt(t, e.x_axis_data_key)), o = xb(e, a, t, i, n, s), l = sb(e, t), c = {
5287
+ const s = _c(t, n), i = gb(e), a = w.uniq(Qt(t, e.x_axis_data_key)), o = xb(e, a, t, i, n, s), l = sb(e, t), c = {
5288
5288
  xAxis: bb(e, a),
5289
5289
  yAxis: vb(e, i, o),
5290
5290
  series: [...o, ...l],
@@ -5320,7 +5320,7 @@ function Sb({
5320
5320
  variables: a
5321
5321
  }) {
5322
5322
  const o = In(t, e.x_axis_data_key), l = yt(i.triggerManager, qi.id), c = Be((x) => {
5323
- const y = _.get(o, x.name, {
5323
+ const y = w.get(o, x.name, {
5324
5324
  error: "rowData is not found"
5325
5325
  });
5326
5326
  l.forEach((S) => {
@@ -5392,7 +5392,7 @@ const Qi = he(({
5392
5392
  [i]: a
5393
5393
  });
5394
5394
  };
5395
- return /* @__PURE__ */ r.jsxs(w, { children: [
5395
+ return /* @__PURE__ */ r.jsxs(_, { children: [
5396
5396
  /* @__PURE__ */ r.jsx(I, { variant: "dashed", label: "Scroll to Zoom", labelPosition: "center" }),
5397
5397
  /* @__PURE__ */ r.jsxs(b, { children: [
5398
5398
  /* @__PURE__ */ r.jsx(z, { sx: {
@@ -5425,7 +5425,7 @@ function Db({
5425
5425
  remove: n,
5426
5426
  variableOptions: s
5427
5427
  }) {
5428
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
5428
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
5429
5429
  position: "relative"
5430
5430
  }, children: [
5431
5431
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -5552,7 +5552,7 @@ function Lb({
5552
5552
  yAxisOptions: a
5553
5553
  }) {
5554
5554
  const o = s(`reference_lines.${t}.orientation`);
5555
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
5555
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
5556
5556
  position: "relative"
5557
5557
  }, children: [
5558
5558
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -5580,7 +5580,7 @@ function Lb({
5580
5580
  flex: 1
5581
5581
  }, ...l }) }),
5582
5582
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
5583
- /* @__PURE__ */ r.jsxs(w, { children: [
5583
+ /* @__PURE__ */ r.jsxs(_, { children: [
5584
5584
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
5585
5585
  field: l
5586
5586
  }) => (
@@ -5634,7 +5634,7 @@ function Lb({
5634
5634
  }
5635
5635
  )
5636
5636
  ] }),
5637
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
5637
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
5638
5638
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
5639
5639
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
5640
5640
  field: l
@@ -5734,7 +5734,7 @@ function Fb({
5734
5734
  yAxisOptions: i
5735
5735
  }) {
5736
5736
  const a = t.transform.config.method;
5737
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
5737
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
5738
5738
  position: "relative"
5739
5739
  }, children: [
5740
5740
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
@@ -5824,7 +5824,7 @@ function Fb({
5824
5824
  }
5825
5825
  )
5826
5826
  ] }),
5827
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
5827
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
5828
5828
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
5829
5829
  /* @__PURE__ */ r.jsx(g, { name: `regressions.${n}.plot.color`, control: e, render: ({
5830
5830
  field: o
@@ -9211,7 +9211,7 @@ const Wc = At.create({
9211
9211
  O(() => {
9212
9212
  s == null || s.commands.setContent(e);
9213
9213
  }, [e, s]);
9214
- const i = T(() => _.defaultsDeep({}, {
9214
+ const i = T(() => w.defaultsDeep({}, {
9215
9215
  content: Ui
9216
9216
  }, t), [t]);
9217
9217
  return /* @__PURE__ */ r.jsx(X, { editor: s, styles: i, sx: n, children: /* @__PURE__ */ r.jsx(X.Content, {}) });
@@ -9273,7 +9273,7 @@ const vj = ({
9273
9273
  o(e);
9274
9274
  }, [e]);
9275
9275
  const u = a !== e;
9276
- return /* @__PURE__ */ r.jsxs(w, { spacing: 4, sx: {
9276
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 4, sx: {
9277
9277
  height: "100%"
9278
9278
  }, children: [
9279
9279
  /* @__PURE__ */ r.jsxs(b, { mb: 6, position: "apart", sx: {
@@ -9510,7 +9510,7 @@ const kj = ({
9510
9510
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
9511
9511
  flexGrow: 0
9512
9512
  }, children: "Setup" }) }),
9513
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
9513
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(_, { children: [
9514
9514
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
9515
9515
  /* @__PURE__ */ r.jsx(kj, { value: a.func_content, onChange: d }),
9516
9516
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -9627,7 +9627,7 @@ function Aj({
9627
9627
  const o = a === "false" ? !1 : a;
9628
9628
  i.onChange(o);
9629
9629
  } }) }),
9630
- /* @__PURE__ */ r.jsxs(w, { children: [
9630
+ /* @__PURE__ */ r.jsxs(_, { children: [
9631
9631
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.smooth`, control: e, render: ({
9632
9632
  field: i
9633
9633
  }) => /* @__PURE__ */ r.jsx(z, { sx: {
@@ -9640,7 +9640,7 @@ function Aj({
9640
9640
  }, children: /* @__PURE__ */ r.jsx(Ve, { label: "Display Name on Line", checked: i.value ?? !1, onChange: (a) => i.onChange(a.currentTarget.checked) }) }) })
9641
9641
  ] })
9642
9642
  ] }),
9643
- /* @__PURE__ */ r.jsxs(w, { children: [
9643
+ /* @__PURE__ */ r.jsxs(_, { children: [
9644
9644
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.showSymbol`, control: e, render: ({
9645
9645
  field: i
9646
9646
  }) => /* @__PURE__ */ r.jsx(z, { mt: 10, mb: -10, sx: {
@@ -9711,10 +9711,10 @@ function Fj({
9711
9711
  yAxisOptions: i
9712
9712
  }) {
9713
9713
  const a = s.type;
9714
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
9714
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
9715
9715
  position: "relative"
9716
9716
  }, children: [
9717
- /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${t}.type`, control: e, render: ({
9717
+ /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${t}.type`, control: e, render: ({
9718
9718
  field: o
9719
9719
  }) => (
9720
9720
  // @ts-expect-error type of onChange
@@ -9780,7 +9780,7 @@ function Fj({
9780
9780
  }) => /* @__PURE__ */ r.jsx(L, { label: "Label Position", data: Ej, ...o })
9781
9781
  }
9782
9782
  ),
9783
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
9783
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
9784
9784
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
9785
9785
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
9786
9786
  field: o
@@ -9864,7 +9864,7 @@ function $j({
9864
9864
  control: e,
9865
9865
  watch: t
9866
9866
  }) {
9867
- return t("stats"), /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
9867
+ return t("stats"), /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
9868
9868
  /* @__PURE__ */ r.jsx(g, { name: "stats.templates.top", control: e, render: ({
9869
9869
  field: n
9870
9870
  }) => /* @__PURE__ */ r.jsx(dr, { label: "Template for stats above the chart", py: "md", sx: {
@@ -9908,7 +9908,7 @@ function Nj({
9908
9908
  control: e,
9909
9909
  watch: t
9910
9910
  }) {
9911
- return t(["x_axis_data_key", "x_axis_name", "x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
9911
+ return t(["x_axis_data_key", "x_axis_name", "x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
9912
9912
  /* @__PURE__ */ r.jsx(g, { name: "x_axis_name", control: e, render: ({
9913
9913
  field: n
9914
9914
  }) => /* @__PURE__ */ r.jsx(D, { label: "X Axis Name", sx: {
@@ -9975,7 +9975,7 @@ function Wj({
9975
9975
  index: t,
9976
9976
  remove: n
9977
9977
  }) {
9978
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: "0", sx: {
9978
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: "0", sx: {
9979
9979
  position: "relative"
9980
9980
  }, children: [
9981
9981
  /* @__PURE__ */ r.jsx(I, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
@@ -10003,13 +10003,13 @@ function Wj({
10003
10003
  flex: 1
10004
10004
  }, ...s })
10005
10005
  ) }) }),
10006
- /* @__PURE__ */ r.jsxs(w, { children: [
10006
+ /* @__PURE__ */ r.jsxs(_, { children: [
10007
10007
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
10008
10008
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
10009
10009
  field: s
10010
10010
  }) => /* @__PURE__ */ r.jsx(vt, { ...s }) })
10011
10011
  ] }),
10012
- /* @__PURE__ */ r.jsxs(w, { children: [
10012
+ /* @__PURE__ */ r.jsxs(_, { children: [
10013
10013
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
10014
10014
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
10015
10015
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.min`, control: e, render: ({
@@ -10087,7 +10087,7 @@ function Qj({
10087
10087
  d(i);
10088
10088
  }, [i]);
10089
10089
  const u = c(), h = T(() => !fe(u, i), [u, i]);
10090
- return l(["dataZoom"]), /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
10090
+ return l(["dataZoom"]), /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
10091
10091
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
10092
10092
  borderBottom: "1px solid #eee",
10093
10093
  background: "#efefef"
@@ -10177,7 +10177,7 @@ function Yj(e) {
10177
10177
  }
10178
10178
  }
10179
10179
  };
10180
- return _.defaultsDeep(t, e);
10180
+ return w.defaultsDeep(t, e);
10181
10181
  }
10182
10182
  function Xj(e) {
10183
10183
  const t = e.reference_lines.map((n) => {
@@ -10260,7 +10260,7 @@ function tv(e) {
10260
10260
  }
10261
10261
  }
10262
10262
  };
10263
- return _.defaultsDeep(s, e);
10263
+ return w.defaultsDeep(s, e);
10264
10264
  }
10265
10265
  function nv(e) {
10266
10266
  const {
@@ -10562,7 +10562,7 @@ function xv(e) {
10562
10562
  right: 5,
10563
10563
  bottom: 5
10564
10564
  };
10565
- return e.orient === "vertical" && _.get(s, n) && n === e.funnelAlign && _.set(s, n, t), s;
10565
+ return e.orient === "vertical" && w.get(s, n) && n === e.funnelAlign && w.set(s, n, t), s;
10566
10566
  }
10567
10567
  function mv(e, t) {
10568
10568
  return e.series.map((n) => {
@@ -10626,7 +10626,7 @@ function fv({
10626
10626
  }
10627
10627
  function gv(e, t) {
10628
10628
  var a;
10629
- const n = $(e.series[0].level_name_data_key), s = $(e.series[0].level_value_data_key), i = (a = _.maxBy(t[n.queryID], s.columnKey)) == null ? void 0 : a[s.columnKey];
10629
+ const n = $(e.series[0].level_name_data_key), s = $(e.series[0].level_value_data_key), i = (a = w.maxBy(t[n.queryID], s.columnKey)) == null ? void 0 : a[s.columnKey];
10630
10630
  return (o) => {
10631
10631
  const c = fv({
10632
10632
  conf: e,
@@ -10831,7 +10831,7 @@ const _v = [{
10831
10831
  const i = e.min.enable_value, a = e.max.enable_value, {
10832
10832
  orient: o
10833
10833
  } = e;
10834
- return /* @__PURE__ */ r.jsxs(w, { children: [
10834
+ return /* @__PURE__ */ r.jsxs(_, { children: [
10835
10835
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.name`, control: t, render: ({
10836
10836
  field: l
10837
10837
  }) => /* @__PURE__ */ r.jsx(D, { label: "Series Name", ...l }) }) }),
@@ -10949,7 +10949,7 @@ const _v = [{
10949
10949
  }), a = t("series"), o = n.map((u, h) => ({
10950
10950
  ...u,
10951
10951
  ...a[h]
10952
- })), l = _.get(o, "0.id"), [c, d] = q(l ?? null);
10952
+ })), l = w.get(o, "0.id"), [c, d] = q(l ?? null);
10953
10953
  return O(() => {
10954
10954
  l && d((u) => u !== null ? u : l);
10955
10955
  }, [l]), /* @__PURE__ */ r.jsxs(f, { value: c, onTabChange: (u) => d(u), styles: {
@@ -10971,7 +10971,7 @@ function zv({
10971
10971
  const {
10972
10972
  value: t,
10973
10973
  set: n
10974
- } = Q(e.instanceData, "config"), s = T(() => _.defaultsDeep({}, t, ta), [t]), {
10974
+ } = Q(e.instanceData, "config"), s = T(() => w.defaultsDeep({}, t, ta), [t]), {
10975
10975
  control: i,
10976
10976
  handleSubmit: a,
10977
10977
  watch: o,
@@ -10983,8 +10983,8 @@ function zv({
10983
10983
  O(() => {
10984
10984
  c(s);
10985
10985
  }, [s]), o([]);
10986
- const d = l(), u = T(() => !_.isEqual(d, s), [d, s]);
10987
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
10986
+ const d = l(), u = T(() => !w.isEqual(d, s), [d, s]);
10987
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
10988
10988
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
10989
10989
  borderBottom: "1px solid #eee",
10990
10990
  background: "#efefef"
@@ -11198,7 +11198,7 @@ function Vv({
11198
11198
  const A = $(S.data_key);
11199
11199
  x.push({
11200
11200
  label: S.name,
11201
- value: Pv(_.get(y, A.columnKey, "")),
11201
+ value: Pv(w.get(y, A.columnKey, "")),
11202
11202
  style: {
11203
11203
  label: "",
11204
11204
  value: ""
@@ -11213,7 +11213,7 @@ function Nv(e, t, n, s) {
11213
11213
  heat_block: o
11214
11214
  } = e, l = $(i.data_key), c = $(a.data_key);
11215
11215
  $(o.data_key);
11216
- const d = _.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
11216
+ const d = w.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
11217
11217
  return oe.getTooltip({
11218
11218
  formatter: function(u) {
11219
11219
  const p = Vv({
@@ -11303,7 +11303,7 @@ const qv = ({
11303
11303
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
11304
11304
  flexGrow: 0
11305
11305
  }, children: "Setup" }) }),
11306
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic value", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
11306
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic value", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(_, { children: [
11307
11307
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
11308
11308
  /* @__PURE__ */ r.jsx(qv, { value: a.value, onChange: d }),
11309
11309
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -11371,7 +11371,7 @@ function qn(e, t, n) {
11371
11371
  return new Function(`return ${s}`)()({
11372
11372
  variables: t
11373
11373
  }, {
11374
- lodash: _,
11374
+ lodash: w,
11375
11375
  interpolate: kn
11376
11376
  });
11377
11377
  } catch (i) {
@@ -11493,7 +11493,7 @@ function Xv(e, t, n, s, i) {
11493
11493
  const a = n.reduce((A, F) => {
11494
11494
  const V = Jt(F, t);
11495
11495
  return A[F.name] = gt(F, V), A;
11496
- }, {}), o = Ev(e), l = Fv(e), c = $(e.x_axis.data_key), d = $(e.y_axis.data_key), u = $(e.heat_block.data_key), h = _.uniq(t[c.queryID].map((A) => A[c.columnKey])), p = _.uniq(t[c.queryID].map((A) => A[d.columnKey])), x = t[c.queryID].map((A) => [_.get(A, c.columnKey), _.get(A, d.columnKey), _.get(A, u.columnKey)]), y = Yv(h.length, p.length, s, i);
11496
+ }, {}), o = Ev(e), l = Fv(e), c = $(e.x_axis.data_key), d = $(e.y_axis.data_key), u = $(e.heat_block.data_key), h = w.uniq(t[c.queryID].map((A) => A[c.columnKey])), p = w.uniq(t[c.queryID].map((A) => A[d.columnKey])), x = t[c.queryID].map((A) => [w.get(A, c.columnKey), w.get(A, d.columnKey), w.get(A, u.columnKey)]), y = Yv(h.length, p.length, s, i);
11497
11497
  return {
11498
11498
  xAxis: Uv(e, h, o.x_axis, y),
11499
11499
  yAxis: Kv(e, p, o.y_axis, y),
@@ -11595,9 +11595,9 @@ function ew({
11595
11595
  }) {
11596
11596
  const o = T(() => {
11597
11597
  const h = $(e.x_axis.data_key), p = $(e.y_axis.data_key);
11598
- return _.keyBy(t[h.queryID], (x) => `${x[h.columnKey]}---${x[p.columnKey]}`);
11598
+ return w.keyBy(t[h.queryID], (x) => `${x[h.columnKey]}---${x[p.columnKey]}`);
11599
11599
  }, [t, e.x_axis.data_key, e.y_axis.data_key]), l = yt(i.triggerManager, Uc.id), c = Be((h) => {
11600
- const [p, x] = h.value, y = _.get(o, `${p}---${x}`, {
11600
+ const [p, x] = h.value, y = w.get(o, `${p}---${x}`, {
11601
11601
  error: "rowData is not found"
11602
11602
  });
11603
11603
  l.forEach((S) => {
@@ -11637,7 +11637,7 @@ function nw({
11637
11637
  }) {
11638
11638
  t(["heat_block"]);
11639
11639
  const n = t("heat_block.label.show");
11640
- return /* @__PURE__ */ r.jsxs(w, { children: [
11640
+ return /* @__PURE__ */ r.jsxs(_, { children: [
11641
11641
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
11642
11642
  /* @__PURE__ */ r.jsx(g, { name: "heat_block.data_key", control: e, render: ({
11643
11643
  field: s
@@ -11682,7 +11682,7 @@ const rw = ({
11682
11682
  control: e,
11683
11683
  index: t,
11684
11684
  remove: n
11685
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
11685
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
11686
11686
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
11687
11687
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
11688
11688
  field: s
@@ -11817,7 +11817,7 @@ const aw = ({
11817
11817
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
11818
11818
  flexGrow: 0
11819
11819
  }, children: "Customize Label" }),
11820
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
11820
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
11821
11821
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11822
11822
  /* @__PURE__ */ r.jsx(aw, { value: o.func_content, onChange: h, disabled: !o.enabled }),
11823
11823
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -11834,7 +11834,7 @@ function lw({
11834
11834
  control: e,
11835
11835
  watch: t
11836
11836
  }) {
11837
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
11837
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
11838
11838
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
11839
11839
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
11840
11840
  field: n
@@ -11886,7 +11886,7 @@ function dw({
11886
11886
  control: e,
11887
11887
  watch: t
11888
11888
  }) {
11889
- return t(["y_axis"]), /* @__PURE__ */ r.jsxs(w, { my: 0, p: "0", sx: {
11889
+ return t(["y_axis"]), /* @__PURE__ */ r.jsxs(_, { my: 0, p: "0", sx: {
11890
11890
  position: "relative"
11891
11891
  }, children: [
11892
11892
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -11940,7 +11940,7 @@ function uw({
11940
11940
  const {
11941
11941
  value: t,
11942
11942
  set: n
11943
- } = Q(e.instanceData, "config"), s = T(() => je({}, t, ra), [t]), i = T(() => _.cloneDeep(s), [s]);
11943
+ } = Q(e.instanceData, "config"), s = T(() => je({}, t, ra), [t]), i = T(() => w.cloneDeep(s), [s]);
11944
11944
  O(() => {
11945
11945
  !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
11946
11946
  }, [s, i]);
@@ -11959,7 +11959,7 @@ function uw({
11959
11959
  const u = c(), h = T(() => !fe(u, s), [u, s]);
11960
11960
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), style: {
11961
11961
  flexGrow: 1
11962
- }, children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", sx: {
11962
+ }, children: /* @__PURE__ */ r.jsxs(_, { spacing: "xs", sx: {
11963
11963
  height: "100%"
11964
11964
  }, children: [
11965
11965
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
@@ -12037,7 +12037,7 @@ function hw(e, {
12037
12037
  }
12038
12038
  }
12039
12039
  function pw(e) {
12040
- return _.defaultsDeep({}, e, {
12040
+ return w.defaultsDeep({}, e, {
12041
12041
  heat_block: {
12042
12042
  label: {
12043
12043
  show: !1,
@@ -12429,7 +12429,7 @@ function Iw({
12429
12429
  vizManager: e.vizManager,
12430
12430
  instance: t
12431
12431
  }), d = yt(c.triggerManager, Yc.id), u = In(s, o.x_axis.data_key), h = Be((x) => {
12432
- const y = _.get(u, x.name, {
12432
+ const y = w.get(u, x.name, {
12433
12433
  error: "rowData is not found"
12434
12434
  });
12435
12435
  d.forEach((S) => {
@@ -12457,7 +12457,7 @@ function Mw({
12457
12457
  control: e,
12458
12458
  watch: t
12459
12459
  }) {
12460
- return t(["bar"]), /* @__PURE__ */ r.jsxs(w, { children: [
12460
+ return t(["bar"]), /* @__PURE__ */ r.jsxs(_, { children: [
12461
12461
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
12462
12462
  /* @__PURE__ */ r.jsx(g, { name: "bar.name", control: e, render: ({
12463
12463
  field: n
@@ -12473,13 +12473,13 @@ function Mw({
12473
12473
  }, ...n })
12474
12474
  ) })
12475
12475
  ] }),
12476
- /* @__PURE__ */ r.jsxs(w, { spacing: 2, children: [
12476
+ /* @__PURE__ */ r.jsxs(_, { spacing: 2, children: [
12477
12477
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12478
12478
  /* @__PURE__ */ r.jsx(g, { name: "bar.color", control: e, render: ({
12479
12479
  field: n
12480
12480
  }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12481
12481
  ] }),
12482
- /* @__PURE__ */ r.jsxs(w, { children: [
12482
+ /* @__PURE__ */ r.jsxs(_, { children: [
12483
12483
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
12484
12484
  /* @__PURE__ */ r.jsx(g, { name: "bar.label_formatter", control: e, render: ({
12485
12485
  field: n
@@ -12501,7 +12501,7 @@ function Aw({
12501
12501
  control: e,
12502
12502
  watch: t
12503
12503
  }) {
12504
- return t(["line"]), /* @__PURE__ */ r.jsxs(w, { children: [
12504
+ return t(["line"]), /* @__PURE__ */ r.jsxs(_, { children: [
12505
12505
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
12506
12506
  /* @__PURE__ */ r.jsx(g, { name: "line.name", control: e, render: ({
12507
12507
  field: n
@@ -12517,7 +12517,7 @@ function Aw({
12517
12517
  }, ...n })
12518
12518
  ) })
12519
12519
  ] }),
12520
- /* @__PURE__ */ r.jsxs(w, { spacing: 2, children: [
12520
+ /* @__PURE__ */ r.jsxs(_, { spacing: 2, children: [
12521
12521
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12522
12522
  /* @__PURE__ */ r.jsx(g, { name: "line.color", control: e, render: ({
12523
12523
  field: n
@@ -12559,14 +12559,14 @@ function Fw({
12559
12559
  control: e,
12560
12560
  watch: t
12561
12561
  }) {
12562
- return t(["markLine"]), /* @__PURE__ */ r.jsxs(w, { children: [
12563
- /* @__PURE__ */ r.jsxs(w, { spacing: 2, children: [
12562
+ return t(["markLine"]), /* @__PURE__ */ r.jsxs(_, { children: [
12563
+ /* @__PURE__ */ r.jsxs(_, { spacing: 2, children: [
12564
12564
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12565
12565
  /* @__PURE__ */ r.jsx(g, { name: "markLine.color", control: e, render: ({
12566
12566
  field: n
12567
12567
  }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12568
12568
  ] }),
12569
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
12569
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
12570
12570
  /* @__PURE__ */ r.jsx(g, { name: "markLine.label_template", control: e, render: ({
12571
12571
  field: n
12572
12572
  }) => /* @__PURE__ */ r.jsx(lh, { autosize: !0, minRows: 2, maxRows: 4, label: "Label Template", sx: {
@@ -12580,7 +12580,7 @@ function Ow({
12580
12580
  control: e,
12581
12581
  watch: t
12582
12582
  }) {
12583
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
12583
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
12584
12584
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
12585
12585
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
12586
12586
  field: n
@@ -12622,7 +12622,7 @@ function $w({
12622
12622
  control: e,
12623
12623
  watch: t
12624
12624
  }) {
12625
- return t(["data_key"]), /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(g, { name: "data_key", control: e, render: ({
12625
+ return t(["data_key"]), /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx(g, { name: "data_key", control: e, render: ({
12626
12626
  field: n
12627
12627
  }) => /* @__PURE__ */ r.jsx(G, { label: "Y Axis Data Field", required: !0, sx: {
12628
12628
  flex: 1
@@ -12705,7 +12705,7 @@ function Nw(e) {
12705
12705
  };
12706
12706
  }
12707
12707
  function qw(e) {
12708
- const t = _.defaultsDeep({}, e.x_axis.axisLabel, {
12708
+ const t = w.defaultsDeep({}, e.x_axis.axisLabel, {
12709
12709
  rotate: 0,
12710
12710
  formatter: {
12711
12711
  ...pt
@@ -12750,7 +12750,7 @@ function Ww(e) {
12750
12750
  }
12751
12751
  }
12752
12752
  };
12753
- return _.defaultsDeep(t, e);
12753
+ return w.defaultsDeep(t, e);
12754
12754
  }
12755
12755
  function Gw(e) {
12756
12756
  const t = {
@@ -12761,7 +12761,7 @@ function Gw(e) {
12761
12761
  nameAlignment: "right"
12762
12762
  }
12763
12763
  };
12764
- return _.defaultsDeep(t, e);
12764
+ return w.defaultsDeep(t, e);
12765
12765
  }
12766
12766
  function Qw(e) {
12767
12767
  console.log(e);
@@ -12778,7 +12778,7 @@ function Qw(e) {
12778
12778
  }
12779
12779
  }
12780
12780
  };
12781
- return _.defaultsDeep(s, e);
12781
+ return w.defaultsDeep(s, e);
12782
12782
  }
12783
12783
  function Hw(e, {
12784
12784
  panelModel: t
@@ -12976,7 +12976,7 @@ function e0({
12976
12976
  interactionManager: i
12977
12977
  }) {
12978
12978
  const a = In(t, e.label_field), o = yt(i.triggerManager, Jc.id), l = M.useCallback((u) => {
12979
- const h = _.get(a, u.name, {
12979
+ const h = w.get(a, u.name, {
12980
12980
  error: "rowData is not found"
12981
12981
  });
12982
12982
  o.forEach((p) => {
@@ -13002,7 +13002,7 @@ function t0({
13002
13002
  instance: t
13003
13003
  }), {
13004
13004
  value: s
13005
- } = Q(e.instanceData, "config"), i = T(() => _.defaults({}, s, ia), [s]), a = e.data, {
13005
+ } = Q(e.instanceData, "config"), i = T(() => w.defaults({}, s, ia), [s]), a = e.data, {
13006
13006
  width: o,
13007
13007
  height: l
13008
13008
  } = e.viewport;
@@ -13014,7 +13014,7 @@ function n0({
13014
13014
  const {
13015
13015
  value: t,
13016
13016
  set: n
13017
- } = Q(e.instanceData, "config"), s = T(() => je({}, t, ia), [t]), i = T(() => _.clone(s), [s]), {
13017
+ } = Q(e.instanceData, "config"), s = T(() => je({}, t, ia), [t]), i = T(() => w.clone(s), [s]), {
13018
13018
  control: a,
13019
13019
  handleSubmit: o,
13020
13020
  watch: l,
@@ -13026,8 +13026,8 @@ function n0({
13026
13026
  O(() => {
13027
13027
  d(i);
13028
13028
  }, [i]);
13029
- const u = c(), h = T(() => !_.isEqual(u, s), [u, s]);
13030
- return l(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
13029
+ const u = c(), h = T(() => !w.isEqual(u, s), [u, s]);
13030
+ return l(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
13031
13031
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
13032
13032
  borderBottom: "1px solid #eee",
13033
13033
  background: "#efefef"
@@ -13035,7 +13035,7 @@ function n0({
13035
13035
  /* @__PURE__ */ r.jsx(j, { children: "Pie Chart Config" }),
13036
13036
  /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
13037
13037
  ] }),
13038
- /* @__PURE__ */ r.jsxs(w, { mt: "md", spacing: "xs", p: "md", mb: "sm", sx: {
13038
+ /* @__PURE__ */ r.jsxs(_, { mt: "md", spacing: "xs", p: "md", mb: "sm", sx: {
13039
13039
  border: "1px solid #eee",
13040
13040
  borderRadius: "5px"
13041
13041
  }, children: [
@@ -13347,7 +13347,7 @@ function f0(e, t) {
13347
13347
  series: h0(t, e),
13348
13348
  color: m0
13349
13349
  };
13350
- return _.merge({}, x0, o);
13350
+ return w.merge({}, x0, o);
13351
13351
  }
13352
13352
  ie.use([Hh, lt, ct, dt, Xe]);
13353
13353
  function g0({
@@ -13362,8 +13362,8 @@ function g0({
13362
13362
  const {
13363
13363
  queryID: h,
13364
13364
  columnKey: p
13365
- } = $(e.series_name_key), x = _.keyBy(t[h], p), y = e.additional_series.reduce((S, A) => {
13366
- const F = $(A.name_key), V = _.keyBy(t[F.queryID], F.columnKey);
13365
+ } = $(e.series_name_key), x = w.keyBy(t[h], p), y = e.additional_series.reduce((S, A) => {
13366
+ const F = $(A.name_key), V = w.keyBy(t[F.queryID], F.columnKey);
13367
13367
  return {
13368
13368
  ...S,
13369
13369
  ...V
@@ -13374,7 +13374,7 @@ function g0({
13374
13374
  ...y
13375
13375
  };
13376
13376
  }, [t, e.series_name_key, e.additional_series]), l = yt(i.triggerManager, Zc.id), c = Be((h) => {
13377
- const p = _.get(o, h.name, {
13377
+ const p = w.get(o, h.name, {
13378
13378
  error: "rowData is not found"
13379
13379
  });
13380
13380
  l.forEach((x) => {
@@ -13402,7 +13402,7 @@ function b0({
13402
13402
  value: s
13403
13403
  } = Q(e.instanceData, "config"), {
13404
13404
  variables: i
13405
- } = e, a = T(() => _.defaults({}, s, ws), [s]), o = e.data, {
13405
+ } = e, a = T(() => w.defaults({}, s, ws), [s]), o = e.data, {
13406
13406
  width: l,
13407
13407
  height: c
13408
13408
  } = e.viewport;
@@ -13413,7 +13413,7 @@ function y0({
13413
13413
  index: t,
13414
13414
  remove: n
13415
13415
  }) {
13416
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: "md", pr: 40, sx: {
13416
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: "md", pr: 40, sx: {
13417
13417
  border: "1px solid #eee",
13418
13418
  position: "relative"
13419
13419
  }, children: [
@@ -13422,7 +13422,7 @@ function y0({
13422
13422
  }) => /* @__PURE__ */ r.jsx(G, { label: "Series Name Key", required: !0, sx: {
13423
13423
  flex: 1
13424
13424
  }, ...s }) }) }),
13425
- /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(g, { name: `additional_series.${t}.color_key`, control: e, render: ({
13425
+ /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx(g, { name: `additional_series.${t}.color_key`, control: e, render: ({
13426
13426
  field: s
13427
13427
  }) => /* @__PURE__ */ r.jsx(G, { label: "Color Key", required: !0, clearable: !0, sx: {
13428
13428
  flex: 1
@@ -13451,13 +13451,13 @@ function j0({
13451
13451
  name_key: "",
13452
13452
  color_key: ""
13453
13453
  });
13454
- }, c = _.get(o, "0.id", null), [d, u] = q(c);
13454
+ }, c = w.get(o, "0.id", null), [d, u] = q(c);
13455
13455
  O(() => {
13456
13456
  u((p) => p || c);
13457
13457
  }, [c]);
13458
13458
  const h = (p) => {
13459
13459
  i(p);
13460
- const x = _.get(o, "0.id", null);
13460
+ const x = w.get(o, "0.id", null);
13461
13461
  u(x);
13462
13462
  };
13463
13463
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -13487,7 +13487,7 @@ function v0({
13487
13487
  index: t,
13488
13488
  remove: n
13489
13489
  }) {
13490
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: "md", pr: 40, sx: {
13490
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: "md", pr: 40, sx: {
13491
13491
  border: "1px solid #eee",
13492
13492
  position: "relative"
13493
13493
  }, children: [
@@ -13517,7 +13517,7 @@ function v0({
13517
13517
  }, ...s, error: (a = i.error) == null ? void 0 : a.message });
13518
13518
  } })
13519
13519
  ] }),
13520
- /* @__PURE__ */ r.jsxs(w, { children: [
13520
+ /* @__PURE__ */ r.jsxs(_, { children: [
13521
13521
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Formatter", labelPosition: "center" }),
13522
13522
  /* @__PURE__ */ r.jsx(g, { name: `dimensions.${t}.formatter`, control: e, render: ({
13523
13523
  field: s
@@ -13549,13 +13549,13 @@ function w0({
13549
13549
  max: "100",
13550
13550
  formatter: qe
13551
13551
  });
13552
- }, c = _.get(o, "0.id", null), [d, u] = q(c);
13552
+ }, c = w.get(o, "0.id", null), [d, u] = q(c);
13553
13553
  O(() => {
13554
13554
  u((p) => p || c);
13555
13555
  }, [c]);
13556
13556
  const h = (p) => {
13557
13557
  i(p);
13558
- const x = _.get(o, "0.id", null);
13558
+ const x = w.get(o, "0.id", null);
13559
13559
  u(x);
13560
13560
  };
13561
13561
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs(f, { value: d, onTabChange: u, styles: {
@@ -13595,7 +13595,7 @@ function _0({
13595
13595
  c(s);
13596
13596
  }, [s]), o(["series_name_key", "background", "label"]);
13597
13597
  const u = l(), h = T(() => !fe(u, s), [u, s]);
13598
- return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
13598
+ return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(_, { spacing: "xs", children: [
13599
13599
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
13600
13600
  borderBottom: "1px solid #eee",
13601
13601
  background: "#efefef"
@@ -13673,7 +13673,7 @@ function k0(e) {
13673
13673
  enabled: !0
13674
13674
  }
13675
13675
  };
13676
- return _.defaultsDeep(t, e);
13676
+ return w.defaultsDeep(t, e);
13677
13677
  }
13678
13678
  function T0(e, {
13679
13679
  panelModel: t
@@ -13703,7 +13703,7 @@ function D0(e) {
13703
13703
  const t = {
13704
13704
  additional_series: []
13705
13705
  };
13706
- return _.defaultsDeep(t, e);
13706
+ return w.defaultsDeep(t, e);
13707
13707
  }
13708
13708
  function I0(e) {
13709
13709
  const t = {
@@ -13818,7 +13818,7 @@ function L0(e, t) {
13818
13818
  }
13819
13819
  function rd(e, t) {
13820
13820
  const n = $(e.x_axis.data_key), s = $(e.regression.y_axis_data_key);
13821
- return _.uniqBy(t.map((i) => [i[n.columnKey], i[s.columnKey]]), 0);
13821
+ return w.uniqBy(t.map((i) => [i[n.columnKey], i[s.columnKey]]), 0);
13822
13822
  }
13823
13823
  function A0(e, t) {
13824
13824
  const {
@@ -13846,7 +13846,7 @@ function R0(e, t) {
13846
13846
  plot: n,
13847
13847
  transform: s,
13848
13848
  group_by_key: i
13849
- } = e.regression, a = $(i), o = _.groupBy(t, a.columnKey);
13849
+ } = e.regression, a = $(i), o = w.groupBy(t, a.columnKey);
13850
13850
  return Object.entries(o).map(([l, c]) => {
13851
13851
  const d = rd(e, c);
13852
13852
  return {
@@ -14128,7 +14128,7 @@ function G0(e, t) {
14128
14128
  }];
14129
14129
  if (!t.regression.group_by_key)
14130
14130
  return [Lo("", e, t)];
14131
- const n = $(t.regression.group_by_key), s = _.groupBy(e, n.columnKey);
14131
+ const n = $(t.regression.group_by_key), s = w.groupBy(e, n.columnKey);
14132
14132
  return Object.entries(s).map(([i, a]) => Lo(i, a, t));
14133
14133
  }
14134
14134
  const Q0 = {
@@ -14291,7 +14291,7 @@ function J0({
14291
14291
  }) {
14292
14292
  t("regression");
14293
14293
  const n = t("regression.transform.config.method"), s = t("regression.group_by_key");
14294
- return /* @__PURE__ */ r.jsxs(w, { children: [
14294
+ return /* @__PURE__ */ r.jsxs(_, { children: [
14295
14295
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "regression.name", control: e, render: ({
14296
14296
  field: i
14297
14297
  }) => /* @__PURE__ */ r.jsx(D, { label: "回归线名称", sx: {
@@ -14328,7 +14328,7 @@ function J0({
14328
14328
  }
14329
14329
  )
14330
14330
  ] }),
14331
- !s && /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
14331
+ !s && /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
14332
14332
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "颜色" }),
14333
14333
  /* @__PURE__ */ r.jsx(g, { name: "regression.plot.color", control: e, render: ({
14334
14334
  field: i
@@ -14396,7 +14396,7 @@ const Z0 = ({
14396
14396
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: a, sx: {
14397
14397
  flexGrow: 0
14398
14398
  }, children: n }),
14399
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(w, { children: [
14399
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(_, { children: [
14400
14400
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
14401
14401
  /* @__PURE__ */ r.jsx(Z0, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14402
14402
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -14413,7 +14413,7 @@ function e_({
14413
14413
  control: e,
14414
14414
  watch: t
14415
14415
  }) {
14416
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
14416
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
14417
14417
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
14418
14418
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.name", control: e, render: ({
14419
14419
  field: n
@@ -14427,7 +14427,7 @@ function e_({
14427
14427
  }, ...n }) })
14428
14428
  ] }),
14429
14429
  /* @__PURE__ */ r.jsx(I, { variant: "dashed", labelPosition: "center", label: "格式化数据" }),
14430
- /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.format", control: e, render: ({
14430
+ /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.format", control: e, render: ({
14431
14431
  field: n
14432
14432
  }) => /* @__PURE__ */ r.jsx(vt, { ...n }) }) }),
14433
14433
  /* @__PURE__ */ r.jsx(I, { variant: "dashed", labelPosition: "center", label: "标签文案样式" }),
@@ -14459,7 +14459,7 @@ function t_({
14459
14459
  control: e,
14460
14460
  watch: t
14461
14461
  }) {
14462
- return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
14462
+ return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
14463
14463
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.name", control: e, render: ({
14464
14464
  field: n
14465
14465
  }) => /* @__PURE__ */ r.jsx(D, { label: "Y轴名称", sx: {
@@ -14491,7 +14491,7 @@ function n_({
14491
14491
  c(s);
14492
14492
  }, [s]), o(["x_axis", "y_axis", "regression"]);
14493
14493
  const d = l(), u = T(() => !fe(d, t), [d, t]);
14494
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
14494
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
14495
14495
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
14496
14496
  borderBottom: "1px solid #eee",
14497
14497
  background: "#efefef"
@@ -14530,7 +14530,7 @@ function r_(e) {
14530
14530
  group_by_key: ""
14531
14531
  }
14532
14532
  };
14533
- return _.defaultsDeep(t, e);
14533
+ return w.defaultsDeep(t, e);
14534
14534
  }
14535
14535
  function s_(e, {
14536
14536
  panelModel: t
@@ -14707,10 +14707,10 @@ const oa = he(({
14707
14707
  }, [e]);
14708
14708
  const d = () => {
14709
14709
  t(o), i == null || i();
14710
- }, u = e !== o, h = T(() => _.defaultsDeep({}, {
14710
+ }, u = e !== o, h = T(() => w.defaultsDeep({}, {
14711
14711
  content: Ui
14712
14712
  }, n), [n]);
14713
- return c ? /* @__PURE__ */ r.jsxs(w, { spacing: 4, sx: {
14713
+ return c ? /* @__PURE__ */ r.jsxs(_, { spacing: 4, sx: {
14714
14714
  flexGrow: 1,
14715
14715
  position: "relative"
14716
14716
  }, children: [
@@ -14787,7 +14787,7 @@ function p_({
14787
14787
  flexGrow: 1,
14788
14788
  display: "flex",
14789
14789
  flexDirection: "column"
14790
- }, children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", sx: {
14790
+ }, children: /* @__PURE__ */ r.jsxs(_, { spacing: "xs", sx: {
14791
14791
  flexGrow: 1
14792
14792
  }, children: [
14793
14793
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
@@ -15024,7 +15024,7 @@ function w_({
15024
15024
  params: a,
15025
15025
  variables: n
15026
15026
  }, {
15027
- lodash: _,
15027
+ lodash: w,
15028
15028
  interpolate: kn
15029
15029
  });
15030
15030
  } catch (l) {
@@ -15055,7 +15055,7 @@ function __({
15055
15055
  rowData: i,
15056
15056
  variables: n
15057
15057
  }, {
15058
- lodash: _,
15058
+ lodash: w,
15059
15059
  interpolate: kn
15060
15060
  });
15061
15061
  } catch (a) {
@@ -15311,7 +15311,7 @@ function A_(e, t, n) {
15311
15311
  default: ({
15312
15312
  value: c
15313
15313
  }) => c
15314
- }), a = _.uniq(Qt(t, e.x_axis.data_key)), o = k_(e, t, n, s), l = {
15314
+ }), a = w.uniq(Qt(t, e.x_axis.data_key)), o = k_(e, t, n, s), l = {
15315
15315
  xAxis: z_(e, a),
15316
15316
  yAxis: M_(e, i),
15317
15317
  series: o,
@@ -15400,10 +15400,10 @@ const F_ = he(({
15400
15400
  variableOptions: i
15401
15401
  }, a) => {
15402
15402
  const o = (l, c) => {
15403
- const d = _.cloneDeep(e);
15404
- _.set(d, l, c), t(d);
15403
+ const d = w.cloneDeep(e);
15404
+ w.set(d, l, c), t(d);
15405
15405
  };
15406
- return /* @__PURE__ */ r.jsxs(w, { children: [
15406
+ return /* @__PURE__ */ r.jsxs(_, { children: [
15407
15407
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Content", labelPosition: "right" }),
15408
15408
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
15409
15409
  /* @__PURE__ */ r.jsx(D, { label: "Content Text", value: e.content.text, onChange: (l) => o("content.text", l.currentTarget.value) }),
@@ -15414,14 +15414,14 @@ const F_ = he(({
15414
15414
  n && /* @__PURE__ */ r.jsx(L, { label: "X Axis", data: n, value: e.xAxisIndex, onChange: (l) => o("xAxisIndex", l) }),
15415
15415
  s && /* @__PURE__ */ r.jsx(L, { label: "Y Axis", data: s, value: e.yAxisIndex, onChange: (l) => o("xAxisIndex", l) })
15416
15416
  ] }),
15417
- /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
15417
+ /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
15418
15418
  /* @__PURE__ */ r.jsx(j, { size: 14, color: "#212529", fw: 500, children: "Left-Bottom Point" }),
15419
15419
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
15420
15420
  /* @__PURE__ */ r.jsx(L, { icon: /* @__PURE__ */ r.jsx(j, { children: "x" }), data: i, value: e.leftBottomPoint.x_data_key, onChange: (l) => o("leftBottomPoint.x_data_key", l ?? ""), clearable: !0 }),
15421
15421
  /* @__PURE__ */ r.jsx(L, { icon: /* @__PURE__ */ r.jsx(j, { children: "y" }), data: i, value: e.leftBottomPoint.y_data_key, onChange: (l) => o("leftBottomPoint.y_data_key", l ?? ""), clearable: !0 })
15422
15422
  ] })
15423
15423
  ] }),
15424
- /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
15424
+ /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
15425
15425
  /* @__PURE__ */ r.jsx(j, { size: 14, color: "#212529", fw: 500, children: "Right-Top Point" }),
15426
15426
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
15427
15427
  /* @__PURE__ */ r.jsx(L, { icon: /* @__PURE__ */ r.jsx(j, { children: "x" }), data: i, value: e.rightTopPoint.x_data_key, onChange: (l) => o("rightTopPoint.x_data_key", l ?? ""), clearable: !0 }),
@@ -15429,11 +15429,11 @@ const F_ = he(({
15429
15429
  ] })
15430
15430
  ] }),
15431
15431
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Style", labelPosition: "right" }),
15432
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15432
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
15433
15433
  /* @__PURE__ */ r.jsx(j, { size: 14, children: "Background Color" }),
15434
15434
  /* @__PURE__ */ r.jsx(Ke, { value: e.itemStyle.color, onChange: (l) => o("itemStyle.color", l) })
15435
15435
  ] }),
15436
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15436
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
15437
15437
  /* @__PURE__ */ r.jsx(j, { size: 14, children: "Text Color" }),
15438
15438
  /* @__PURE__ */ r.jsx(Ke, { value: e.label.color, onChange: (l) => o("label.color", l) })
15439
15439
  ] })
@@ -15507,7 +15507,7 @@ function $_({
15507
15507
  ] }),
15508
15508
  l.map((p, x) => /* @__PURE__ */ r.jsx(f.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${x}`, control: e, render: ({
15509
15509
  field: y
15510
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
15510
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
15511
15511
  /* @__PURE__ */ r.jsx(F_, { variableOptions: d, yAxisOptions: h, ...y }),
15512
15512
  /* @__PURE__ */ r.jsx(I, { mb: -10, mt: 10, variant: "dashed" }),
15513
15513
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(rn, { size: 16 }), color: "red", variant: "light", onClick: () => a(x), children: "Delete this Reference Area" })
@@ -15539,7 +15539,7 @@ function N_({
15539
15539
  yAxisOptions: a
15540
15540
  }) {
15541
15541
  const o = s(`reference_lines.${t}.orientation`);
15542
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
15542
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
15543
15543
  position: "relative"
15544
15544
  }, children: [
15545
15545
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -15567,7 +15567,7 @@ function N_({
15567
15567
  flex: 1
15568
15568
  }, ...l }) }),
15569
15569
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
15570
- /* @__PURE__ */ r.jsxs(w, { children: [
15570
+ /* @__PURE__ */ r.jsxs(_, { children: [
15571
15571
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
15572
15572
  field: l
15573
15573
  }) => (
@@ -15621,7 +15621,7 @@ function N_({
15621
15621
  }
15622
15622
  )
15623
15623
  ] }),
15624
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15624
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
15625
15625
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
15626
15626
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
15627
15627
  field: l
@@ -15733,7 +15733,7 @@ const B_ = ({
15733
15733
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
15734
15734
  flexGrow: 0
15735
15735
  }, children: "Setup" }) }),
15736
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic color", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
15736
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic color", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(_, { children: [
15737
15737
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
15738
15738
  /* @__PURE__ */ r.jsx(B_, { value: a.func_content, onChange: d }),
15739
15739
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -15799,7 +15799,7 @@ const B_ = ({
15799
15799
  tooltip: a
15800
15800
  });
15801
15801
  };
15802
- return /* @__PURE__ */ r.jsxs(w, { ref: n, spacing: 0, children: [
15802
+ return /* @__PURE__ */ r.jsxs(_, { ref: n, spacing: 0, children: [
15803
15803
  /* @__PURE__ */ r.jsx(Qr, { sectionTitle: "Overflow on Chart", value: e.label, onChange: s }),
15804
15804
  /* @__PURE__ */ r.jsx(Qr, { sectionTitle: "Overflow in Tooltip", value: e.tooltip, onChange: i })
15805
15805
  ] });
@@ -15858,7 +15858,7 @@ const B_ = ({
15858
15858
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
15859
15859
  flexGrow: 0
15860
15860
  }, children: "Setup" }) }),
15861
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
15861
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(_, { children: [
15862
15862
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
15863
15863
  /* @__PURE__ */ r.jsx(Y_, { value: a.func_content, onChange: d }),
15864
15864
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -15956,7 +15956,7 @@ function rS({
15956
15956
  control: e,
15957
15957
  watch: t
15958
15958
  }) {
15959
- return t(["scatter"]), /* @__PURE__ */ r.jsxs(w, { children: [
15959
+ return t(["scatter"]), /* @__PURE__ */ r.jsxs(_, { children: [
15960
15960
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
15961
15961
  /* @__PURE__ */ r.jsx(g, { name: "scatter.name_data_key", control: e, render: ({
15962
15962
  field: n
@@ -15996,7 +15996,7 @@ function sS({
15996
15996
  control: e,
15997
15997
  watch: t
15998
15998
  }) {
15999
- return t("stats"), /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
15999
+ return t("stats"), /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
16000
16000
  /* @__PURE__ */ r.jsx(g, { name: "stats.templates.top", control: e, render: ({
16001
16001
  field: n
16002
16002
  }) => /* @__PURE__ */ r.jsx(dr, { label: "Template for stats above the chart", py: "md", sx: {
@@ -16013,7 +16013,7 @@ const iS = ({
16013
16013
  control: e,
16014
16014
  index: t,
16015
16015
  remove: n
16016
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
16016
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
16017
16017
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
16018
16018
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
16019
16019
  field: s
@@ -16088,7 +16088,7 @@ function lS({
16088
16088
  control: e,
16089
16089
  watch: t
16090
16090
  }) {
16091
- return t("tooltip.trigger"), /* @__PURE__ */ r.jsxs(w, { children: [
16091
+ return t("tooltip.trigger"), /* @__PURE__ */ r.jsxs(_, { children: [
16092
16092
  /* @__PURE__ */ r.jsx(
16093
16093
  g,
16094
16094
  {
@@ -16164,7 +16164,7 @@ const cS = ({
16164
16164
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
16165
16165
  flexGrow: 0
16166
16166
  }, children: "Customize Label" }),
16167
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
16167
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
16168
16168
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16169
16169
  /* @__PURE__ */ r.jsx(cS, { value: o.func_content, onChange: h, disabled: !o.enabled }),
16170
16170
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -16181,7 +16181,7 @@ function uS({
16181
16181
  control: e,
16182
16182
  watch: t
16183
16183
  }) {
16184
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
16184
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
16185
16185
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
16186
16186
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
16187
16187
  field: n
@@ -16240,7 +16240,7 @@ function xS({
16240
16240
  index: t,
16241
16241
  remove: n
16242
16242
  }) {
16243
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: "0", sx: {
16243
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: "0", sx: {
16244
16244
  position: "relative"
16245
16245
  }, children: [
16246
16246
  /* @__PURE__ */ r.jsx(I, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
@@ -16268,13 +16268,13 @@ function xS({
16268
16268
  flex: 1
16269
16269
  }, ...s })
16270
16270
  ) }) }),
16271
- /* @__PURE__ */ r.jsxs(w, { children: [
16271
+ /* @__PURE__ */ r.jsxs(_, { children: [
16272
16272
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
16273
16273
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.label_formatter`, control: e, render: ({
16274
16274
  field: s
16275
16275
  }) => /* @__PURE__ */ r.jsx(vt, { ...s }) })
16276
16276
  ] }),
16277
- /* @__PURE__ */ r.jsxs(w, { children: [
16277
+ /* @__PURE__ */ r.jsxs(_, { children: [
16278
16278
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
16279
16279
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
16280
16280
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.min`, control: e, render: ({
@@ -16371,7 +16371,7 @@ function bS({
16371
16371
  u(a);
16372
16372
  }, [a]);
16373
16373
  const h = d(), p = T(() => !fe(h, i), [h, i]);
16374
- return c(["dataZoom"]), /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(n), children: [
16374
+ return c(["dataZoom"]), /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(n), children: [
16375
16375
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
16376
16376
  borderBottom: "1px solid #eee",
16377
16377
  background: "#efefef"
@@ -16428,7 +16428,7 @@ function jS(e) {
16428
16428
  label_overflow: ld()
16429
16429
  }
16430
16430
  };
16431
- return _.defaultsDeep(t, e);
16431
+ return w.defaultsDeep(t, e);
16432
16432
  }
16433
16433
  function vS(e) {
16434
16434
  const {
@@ -16474,7 +16474,7 @@ function _S(e) {
16474
16474
  trigger: "item"
16475
16475
  }
16476
16476
  };
16477
- return _.defaultsDeep({}, e, t);
16477
+ return w.defaultsDeep({}, e, t);
16478
16478
  }
16479
16479
  function SS(e, {
16480
16480
  panelModel: t
@@ -16520,7 +16520,7 @@ function CS(e) {
16520
16520
  }
16521
16521
  }
16522
16522
  };
16523
- return _.defaultsDeep(t, e);
16523
+ return w.defaultsDeep(t, e);
16524
16524
  }
16525
16525
  class kS extends _e {
16526
16526
  constructor() {
@@ -16737,7 +16737,7 @@ const AS = {
16737
16737
  height: c
16738
16738
  } = e.viewport, d = T(() => {
16739
16739
  try {
16740
- return _.template(i)(t.payloadForSQL);
16740
+ return w.template(i)(t.payloadForSQL);
16741
16741
  } catch {
16742
16742
  return i;
16743
16743
  }
@@ -16785,8 +16785,8 @@ function $S({
16785
16785
  M.useEffect(() => {
16786
16786
  c(s);
16787
16787
  }, [s]), o(["template", "horizontal_align", "vertical_align"]);
16788
- const d = l(), u = M.useMemo(() => !_.isEqual(d, t), [d, t]);
16789
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
16788
+ const d = l(), u = M.useMemo(() => !w.isEqual(d, t), [d, t]);
16789
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
16790
16790
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
16791
16791
  borderBottom: "1px solid #eee",
16792
16792
  background: "#efefef"
@@ -16856,7 +16856,7 @@ function NS(e) {
16856
16856
  const t = VS(e).map((i) => ({
16857
16857
  ...i,
16858
16858
  children: []
16859
- })), n = _.keyBy(t, (i) => i.id), s = [];
16859
+ })), n = w.keyBy(t, (i) => i.id), s = [];
16860
16860
  return t.forEach((i) => {
16861
16861
  if (!i.parent_id || !n[i.parent_id]) {
16862
16862
  s.push(i);
@@ -17006,7 +17006,7 @@ function YS({
17006
17006
  control: e,
17007
17007
  watch: t
17008
17008
  }) {
17009
- return t(["label_key", "value_key", "group_key"]), /* @__PURE__ */ r.jsxs(w, { children: [
17009
+ return t(["label_key", "value_key", "group_key"]), /* @__PURE__ */ r.jsxs(_, { children: [
17010
17010
  /* @__PURE__ */ r.jsx(g, { name: "label_key", control: e, render: ({
17011
17011
  field: n
17012
17012
  }) => /* @__PURE__ */ r.jsx(G, { label: "Label Key", required: !0, ...n }) }),
@@ -17040,7 +17040,7 @@ const XS = [{
17040
17040
  control: e,
17041
17041
  index: t,
17042
17042
  remove: n
17043
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
17043
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
17044
17044
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
17045
17045
  /* @__PURE__ */ r.jsx(g, { name: `levels.${t}.r0`, control: e, render: ({
17046
17046
  field: s
@@ -17159,7 +17159,7 @@ function tC({
17159
17159
  const {
17160
17160
  value: t,
17161
17161
  set: n
17162
- } = Q(e.instanceData, "config"), s = T(() => je({}, t, da), [t]), i = T(() => _.clone(s), [s]), {
17162
+ } = Q(e.instanceData, "config"), s = T(() => je({}, t, da), [t]), i = T(() => w.clone(s), [s]), {
17163
17163
  control: a,
17164
17164
  handleSubmit: o,
17165
17165
  watch: l,
@@ -17171,10 +17171,10 @@ function tC({
17171
17171
  O(() => {
17172
17172
  d(i);
17173
17173
  }, [i]);
17174
- const u = c(), h = T(() => !_.isEqual(u, s), [u, s]);
17174
+ const u = c(), h = T(() => !w.isEqual(u, s), [u, s]);
17175
17175
  l(["label_key", "value_key", "group_key", "levels"]);
17176
17176
  const [p, x] = q("Data");
17177
- return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
17177
+ return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(_, { spacing: "xs", children: [
17178
17178
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
17179
17179
  borderBottom: "1px solid #eee",
17180
17180
  background: "#efefef"
@@ -17317,7 +17317,7 @@ const ud = ["function text({ value }) {", " // your code goes here", " ret
17317
17317
  header: e,
17318
17318
  cx: t
17319
17319
  }) => {
17320
- const n = _.get(e.column.columnDef.meta, "align", "left");
17320
+ const n = w.get(e.column.columnDef.meta, "align", "left");
17321
17321
  return /* @__PURE__ */ r.jsxs(j, { className: t("table-head-cell", {
17322
17322
  "table-head-cell--sortable": e.column.getCanSort()
17323
17323
  }), onClick: e.column.getToggleSortingHandler(), align: n, sx: {
@@ -17871,7 +17871,7 @@ function RC(e) {
17871
17871
  "--shadow-color": cr(n).alpha(0.5).hex(),
17872
17872
  backgroundColor: n
17873
17873
  } }) }),
17874
- /* @__PURE__ */ r.jsx(On.Dropdown, { children: /* @__PURE__ */ r.jsxs(w, { children: [
17874
+ /* @__PURE__ */ r.jsx(On.Dropdown, { children: /* @__PURE__ */ r.jsxs(_, { children: [
17875
17875
  /* @__PURE__ */ r.jsx(U, { size: "xs", label: "Map a value to this color", value: o, onChange: l }),
17876
17876
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
17877
17877
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", onClick: S, children: "Cancel" }),
@@ -17929,7 +17929,7 @@ const EC = k(({
17929
17929
  };
17930
17930
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
17931
17931
  /* @__PURE__ */ r.jsx(C, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
17932
- /* @__PURE__ */ r.jsx(ge, { size: 508, title: "Setup color interpolation", opened: c, onClose: u, zIndex: 320, children: c && /* @__PURE__ */ r.jsxs(w, { "data-testid": "color-interpolation-modal", children: [
17932
+ /* @__PURE__ */ r.jsx(ge, { size: 508, title: "Setup color interpolation", opened: c, onClose: u, zIndex: 320, children: c && /* @__PURE__ */ r.jsxs(_, { "data-testid": "color-interpolation-modal", children: [
17933
17933
  /* @__PURE__ */ r.jsx(L, { label: "Color style", value: a.interpolation, data: h, onChange: p, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
17934
17934
  /* @__PURE__ */ r.jsx(FC, { steps: a.steps, interpolation: l, onChange: y }),
17935
17935
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
@@ -17939,7 +17939,7 @@ const EC = k(({
17939
17939
  ] }) })
17940
17940
  ] });
17941
17941
  }, $C = ["static", "interpolation", "none"].map((e) => ({
17942
- label: _.capitalize(e),
17942
+ label: w.capitalize(e),
17943
17943
  value: e
17944
17944
  })), PC = [{
17945
17945
  from: 0,
@@ -17974,7 +17974,7 @@ const qC = he((e, t) => {
17974
17974
  var S;
17975
17975
  d(y), (S = e.onChange) == null || S.call(e, y);
17976
17976
  };
17977
- return /* @__PURE__ */ r.jsxs(w, { align: "stretch", children: [
17977
+ return /* @__PURE__ */ r.jsxs(_, { align: "stretch", children: [
17978
17978
  /* @__PURE__ */ r.jsx(L, { label: "Cell background", value: s || "none", onChange: h, data: $C }),
17979
17979
  s === "static" && /* @__PURE__ */ r.jsx(Ke, { value: a, onChange: p }),
17980
17980
  s === "interpolation" && /* @__PURE__ */ r.jsx(OC, { colorManager: n, value: c, onChange: x })
@@ -17982,7 +17982,7 @@ const qC = he((e, t) => {
17982
17982
  }), BC = {
17983
17983
  [_t.eloc]: "ELOC"
17984
17984
  }, WC = Object.values(_t).map((e) => ({
17985
- label: _.get(BC, e, _.capitalize(e)),
17985
+ label: w.get(BC, e, w.capitalize(e)),
17986
17986
  value: e
17987
17987
  })), GC = he(({
17988
17988
  label: e,
@@ -18009,7 +18009,7 @@ const qC = he((e, t) => {
18009
18009
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
18010
18010
  flexGrow: 0
18011
18011
  }, children: "Custom Cell Content" }),
18012
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Custom cell content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
18012
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Custom cell content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
18013
18013
  /* @__PURE__ */ r.jsx(z, { sx: {
18014
18014
  position: "relative"
18015
18015
  }, children: /* @__PURE__ */ r.jsx(Je, { height: "500px", defaultLanguage: "javascript", value: o, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
@@ -18043,7 +18043,7 @@ const qC = he((e, t) => {
18043
18043
  column: i
18044
18044
  }) => {
18045
18045
  const a = n(`columns.${t}.value_type`);
18046
- return /* @__PURE__ */ r.jsxs(w, { my: 0, sx: {
18046
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, sx: {
18047
18047
  position: "relative"
18048
18048
  }, children: [
18049
18049
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
@@ -18119,7 +18119,7 @@ const qC = he((e, t) => {
18119
18119
  /* @__PURE__ */ r.jsx(g, { name: "use_raw_columns", control: e, render: ({
18120
18120
  field: c
18121
18121
  }) => /* @__PURE__ */ r.jsx(Ve, { mt: 20, mb: 20, label: "Use Original Data Columns", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }),
18122
- !l && /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsxs(f, { defaultValue: "0", styles: {
18122
+ !l && /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsxs(f, { defaultValue: "0", styles: {
18123
18123
  tab: {
18124
18124
  paddingTop: "0px",
18125
18125
  paddingBottom: "0px"
@@ -18141,7 +18141,7 @@ function YC({
18141
18141
  control: e,
18142
18142
  watch: t
18143
18143
  }) {
18144
- return t(["horizontalSpacing", "verticalSpacing", "fontSize", "striped", "highlightOnHover"]), /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
18144
+ return t(["horizontalSpacing", "verticalSpacing", "fontSize", "striped", "highlightOnHover"]), /* @__PURE__ */ r.jsxs(_, { spacing: "xs", children: [
18145
18145
  /* @__PURE__ */ r.jsxs(b, { position: "apart", mb: "lg", grow: !0, sx: {
18146
18146
  "> *": {
18147
18147
  flexGrow: 1
@@ -18413,7 +18413,7 @@ function s1({
18413
18413
  return M.useEffect(() => {
18414
18414
  const l = Rr.find((c) => c.value === i);
18415
18415
  l && n(l.label);
18416
- }, [i]), /* @__PURE__ */ r.jsxs(w, { spacing: 0, mt: "sm", mb: "lg", children: [
18416
+ }, [i]), /* @__PURE__ */ r.jsxs(_, { spacing: 0, mt: "sm", mb: "lg", children: [
18417
18417
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: e }),
18418
18418
  /* @__PURE__ */ r.jsx(dh, { label: null, marks: Rr, value: i, onChange: a, step: 25, placeholder: "Pick a font size", mx: "1em", ref: s })
18419
18419
  ] });
@@ -18452,7 +18452,7 @@ const bd = M.forwardRef(s1), i1 = ({
18452
18452
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
18453
18453
  flexGrow: 0
18454
18454
  }, children: "Edit Content" }),
18455
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Text content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
18455
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Text content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
18456
18456
  /* @__PURE__ */ r.jsx(i1, { value: o, onChange: l }),
18457
18457
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
18458
18458
  /* @__PURE__ */ r.jsx(C, { onClick: u, color: "red", leftIcon: /* @__PURE__ */ r.jsx(mt, { size: 20 }), children: "Reset" }),
@@ -18508,8 +18508,8 @@ function l1({
18508
18508
  M.useEffect(() => {
18509
18509
  d(i);
18510
18510
  }, [i]), l(["func_content", "horizontal_align", "font_size", "font_weight"]);
18511
- const u = c(), h = M.useMemo(() => !_.isEqual(u, s), [u, s]);
18512
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
18511
+ const u = c(), h = M.useMemo(() => !w.isEqual(u, s), [u, s]);
18512
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
18513
18513
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
18514
18514
  borderBottom: "1px solid #eee",
18515
18515
  background: "#efefef"
@@ -18517,7 +18517,7 @@ function l1({
18517
18517
  /* @__PURE__ */ r.jsx(j, { weight: 500, children: "Configurations" }),
18518
18518
  /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
18519
18519
  ] }),
18520
- /* @__PURE__ */ r.jsxs(w, { spacing: 10, children: [
18520
+ /* @__PURE__ */ r.jsxs(_, { spacing: 10, children: [
18521
18521
  /* @__PURE__ */ r.jsx(g, { name: "func_content", control: a, render: ({
18522
18522
  field: p
18523
18523
  }) => /* @__PURE__ */ r.jsx(a1, { ...p }) }),
@@ -18579,7 +18579,7 @@ const d1 = {
18579
18579
  /* @__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" })
18580
18580
  ] });
18581
18581
  function Oo(e, t) {
18582
- const n = _.get(e, t, "");
18582
+ const n = w.get(e, t, "");
18583
18583
  if (n)
18584
18584
  throw new Error(n);
18585
18585
  }
@@ -18652,7 +18652,7 @@ const p1 = ({
18652
18652
  return /* @__PURE__ */ r.jsx(Sn, { sx: {
18653
18653
  width: "100%",
18654
18654
  height: a
18655
- }, children: /* @__PURE__ */ r.jsxs(w, { align: "center", spacing: 20, children: [
18655
+ }, children: /* @__PURE__ */ r.jsxs(_, { align: "center", spacing: 20, children: [
18656
18656
  /* @__PURE__ */ r.jsx(u1, {}),
18657
18657
  /* @__PURE__ */ r.jsx($o, { message: s })
18658
18658
  ] }) });
@@ -18701,7 +18701,7 @@ function f1({
18701
18701
  c(s);
18702
18702
  }, [s]), o(["expertSystemURL", "goal", "path", "question"]);
18703
18703
  const d = l(), u = T(() => !fe(d, s), [d, s]);
18704
- return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(w, { children: [
18704
+ return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(_, { children: [
18705
18705
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
18706
18706
  /* @__PURE__ */ r.jsx(g, { name: "expertSystemURL", control: i, render: ({
18707
18707
  field: h
@@ -18819,13 +18819,13 @@ function _1(e, t, n, s) {
18819
18819
  name: "heatmap",
18820
18820
  coordinateSystem: "calendar",
18821
18821
  calendarIndex: 0,
18822
- data: s[o.queryID].map((c) => [_.get(c, o.columnKey), _.get(c, l.columnKey)])
18822
+ data: s[o.queryID].map((c) => [w.get(c, o.columnKey), w.get(c, l.columnKey)])
18823
18823
  } : Object.entries(n).map(([c, d]) => ({
18824
18824
  type: "heatmap",
18825
18825
  name: c,
18826
18826
  coordinateSystem: "calendar",
18827
18827
  calendarIndex: 0,
18828
- data: d.map((u) => [_.get(u, o.columnKey), _.get(u, l.columnKey)])
18828
+ data: d.map((u) => [w.get(u, o.columnKey), w.get(u, l.columnKey)])
18829
18829
  }));
18830
18830
  }
18831
18831
  const S1 = (e) => Z(e, {
@@ -18854,7 +18854,7 @@ function C1({
18854
18854
  const h = $(u.data_key);
18855
18855
  c.push({
18856
18856
  label: u.name,
18857
- value: S1(_.get(d, h.columnKey, "")),
18857
+ value: S1(w.get(d, h.columnKey, "")),
18858
18858
  style: {
18859
18859
  label: "",
18860
18860
  value: ""
@@ -18863,7 +18863,7 @@ function C1({
18863
18863
  }), c;
18864
18864
  }
18865
18865
  function k1(e, t, n) {
18866
- const s = $(e.calendar.data_key), i = _.keyBy(t[s.queryID], s.columnKey);
18866
+ const s = $(e.calendar.data_key), i = w.keyBy(t[s.queryID], s.columnKey);
18867
18867
  return oe.getTooltip({
18868
18868
  formatter: function(a) {
18869
18869
  const l = C1({
@@ -18880,7 +18880,7 @@ function k1(e, t, n) {
18880
18880
  <div style="${u.style.value}">${u.value}
18881
18881
  </td>
18882
18882
  </tr>
18883
- `), c = _.get(a.value, 0);
18883
+ `), c = w.get(a.value, 0);
18884
18884
  return `
18885
18885
  <table style="width: auto">
18886
18886
  <thead>
@@ -18920,7 +18920,7 @@ const D1 = {
18920
18920
  }
18921
18921
  }, I1 = (e) => E(e).get("year");
18922
18922
  function z1(e, t) {
18923
- const n = $(e.calendar.data_key), s = t[n.queryID], i = _.groupBy(s, (d) => I1(d[n.columnKey])), a = Object.keys(i), o = s.map((d) => E(d[n.columnKey]).valueOf()), l = _.min(o), c = _.max(o);
18923
+ const n = $(e.calendar.data_key), s = t[n.queryID], i = w.groupBy(s, (d) => I1(d[n.columnKey])), a = Object.keys(i), o = s.map((d) => E(d[n.columnKey]).valueOf()), l = w.min(o), c = w.max(o);
18924
18924
  return {
18925
18925
  minDate: l ?? 0,
18926
18926
  maxDate: c ?? 0,
@@ -19023,7 +19023,7 @@ function E1({
19023
19023
  variables: a
19024
19024
  }) {
19025
19025
  const o = In(t, e.calendar.data_key), l = yt(i.triggerManager, yd.id), c = Be((h) => {
19026
- const [p, x] = h.value, y = _.get(o, p, {
19026
+ const [p, x] = h.value, y = w.get(o, p, {
19027
19027
  error: "rowData is not found"
19028
19028
  });
19029
19029
  l.forEach((S) => {
@@ -19054,7 +19054,7 @@ function F1({
19054
19054
  value: s
19055
19055
  } = Q(e.instanceData, "config"), {
19056
19056
  variables: i
19057
- } = e, a = T(() => _.defaults({}, s, xa), [s]), o = e.data, {
19057
+ } = e, a = T(() => w.defaults({}, s, xa), [s]), o = e.data, {
19058
19058
  width: l,
19059
19059
  height: c
19060
19060
  } = e.viewport;
@@ -19064,7 +19064,7 @@ function O1({
19064
19064
  control: e,
19065
19065
  watch: t
19066
19066
  }) {
19067
- return t(["heat_block"]), /* @__PURE__ */ r.jsxs(w, { children: [
19067
+ return t(["heat_block"]), /* @__PURE__ */ r.jsxs(_, { children: [
19068
19068
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
19069
19069
  /* @__PURE__ */ r.jsx(g, { name: "heat_block.data_key", control: e, render: ({
19070
19070
  field: n
@@ -19095,7 +19095,7 @@ const $1 = ({
19095
19095
  control: e,
19096
19096
  index: t,
19097
19097
  remove: n
19098
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
19098
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
19099
19099
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
19100
19100
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
19101
19101
  field: s
@@ -19178,7 +19178,7 @@ function q1({
19178
19178
  control: e,
19179
19179
  watch: t
19180
19180
  }) {
19181
- return t(["calendar"]), /* @__PURE__ */ r.jsxs(w, { children: [
19181
+ return t(["calendar"]), /* @__PURE__ */ r.jsxs(_, { children: [
19182
19182
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "calendar.data_key", control: e, render: ({
19183
19183
  field: n
19184
19184
  }) => /* @__PURE__ */ r.jsx(G, { label: "Data Field", required: !0, sx: {
@@ -19204,7 +19204,7 @@ function B1({
19204
19204
  const {
19205
19205
  value: t,
19206
19206
  set: n
19207
- } = Q(e.instanceData, "config"), s = T(() => je({}, t, xa), [t]), i = T(() => _.cloneDeep(s), [s]);
19207
+ } = Q(e.instanceData, "config"), s = T(() => je({}, t, xa), [t]), i = T(() => w.cloneDeep(s), [s]);
19208
19208
  O(() => {
19209
19209
  !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
19210
19210
  }, [s, i]);
@@ -19221,7 +19221,7 @@ function B1({
19221
19221
  d(i);
19222
19222
  }, [i]);
19223
19223
  const u = c(), h = T(() => !fe(u, s), [u, s]);
19224
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
19224
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
19225
19225
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
19226
19226
  borderBottom: "1px solid #eee",
19227
19227
  background: "#efefef"
@@ -19486,11 +19486,11 @@ function ek(e, t, n, s) {
19486
19486
  }
19487
19487
  function ks(e, t, n) {
19488
19488
  const s = Qt(e, t), i = Qt(e, n);
19489
- return _.zip(i, s);
19489
+ return w.zip(i, s);
19490
19490
  }
19491
19491
  function tk(e, t, n, s) {
19492
19492
  const i = ks(t, n, s);
19493
- return _.unionBy(i, e, 0);
19493
+ return w.unionBy(i, e, 0);
19494
19494
  }
19495
19495
  function nk({
19496
19496
  dataTemplate: e,
@@ -19517,7 +19517,7 @@ function rk({
19517
19517
  value_data_key: i,
19518
19518
  valueTypedXAxis: a
19519
19519
  });
19520
- const o = ks(t, s, i), l = _.groupBy(o, "0");
19520
+ const o = ks(t, s, i), l = w.groupBy(o, "0");
19521
19521
  return e.map(([d]) => {
19522
19522
  const h = l[d].map((x) => x[1]), p = Mi(h, n);
19523
19523
  return [d, p];
@@ -19532,7 +19532,7 @@ function sk({
19532
19532
  const {
19533
19533
  queryID: i,
19534
19534
  columnKey: a
19535
- } = $(e), o = _.groupBy(t[i], a);
19535
+ } = $(e), o = w.groupBy(t[i], a);
19536
19536
  return Object.entries(o).forEach(([l, c]) => {
19537
19537
  o[l] = ks({
19538
19538
  [i]: c
@@ -19730,7 +19730,7 @@ function hk(e, t) {
19730
19730
  function pk(e, t, n) {
19731
19731
  if (!e.y_axis.data_key)
19732
19732
  return {};
19733
- const s = dk(t, n), i = ck(e), a = $(e.y_axis.data_key), o = _.uniq(t[a.queryID].map((u) => u[a.columnKey])), l = o.every((u) => !Number.isNaN(Number(u))), c = ak(e, o, l, t, i, n, s);
19733
+ const s = dk(t, n), i = ck(e), a = $(e.y_axis.data_key), o = w.uniq(t[a.queryID].map((u) => u[a.columnKey])), l = o.every((u) => !Number.isNaN(Number(u))), c = ak(e, o, l, t, i, n, s);
19734
19734
  return {
19735
19735
  xAxis: uk(e, i),
19736
19736
  yAxis: hk(e, o),
@@ -19750,7 +19750,7 @@ function xk({
19750
19750
  variables: a
19751
19751
  }) {
19752
19752
  const o = In(t, e.y_axis.data_key), l = yt(i.triggerManager, qi.id), c = Be((h) => {
19753
- const p = _.get(o, h.name, {
19753
+ const p = w.get(o, h.name, {
19754
19754
  error: "rowData is not found"
19755
19755
  });
19756
19756
  l.forEach((x) => {
@@ -19809,7 +19809,7 @@ function bk({
19809
19809
  xAxisOptions: a
19810
19810
  }) {
19811
19811
  const o = s(`reference_lines.${t}.orientation`);
19812
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
19812
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
19813
19813
  position: "relative"
19814
19814
  }, children: [
19815
19815
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -19837,7 +19837,7 @@ function bk({
19837
19837
  flex: 1
19838
19838
  }, ...l }) }),
19839
19839
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
19840
- /* @__PURE__ */ r.jsxs(w, { children: [
19840
+ /* @__PURE__ */ r.jsxs(_, { children: [
19841
19841
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.orientation`, control: e, render: ({
19842
19842
  field: l
19843
19843
  }) => (
@@ -19884,7 +19884,7 @@ function bk({
19884
19884
  }
19885
19885
  )
19886
19886
  ] }),
19887
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
19887
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
19888
19888
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
19889
19889
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
19890
19890
  field: l
@@ -20054,7 +20054,7 @@ function Sk({
20054
20054
  seriesItem: s,
20055
20055
  xAxisOptions: i
20056
20056
  }) {
20057
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: 0, sx: {
20057
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: 0, sx: {
20058
20058
  position: "relative"
20059
20059
  }, children: [
20060
20060
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -20099,7 +20099,7 @@ function Sk({
20099
20099
  }) => /* @__PURE__ */ r.jsx(L, { label: "Label Position", data: _k, ...a })
20100
20100
  }
20101
20101
  ),
20102
- /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
20102
+ /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
20103
20103
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
20104
20104
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
20105
20105
  field: a
@@ -20175,7 +20175,7 @@ function Tk({
20175
20175
  index: t,
20176
20176
  remove: n
20177
20177
  }) {
20178
- return /* @__PURE__ */ r.jsxs(w, { my: 0, p: "0", sx: {
20178
+ return /* @__PURE__ */ r.jsxs(_, { my: 0, p: "0", sx: {
20179
20179
  position: "relative"
20180
20180
  }, children: [
20181
20181
  /* @__PURE__ */ r.jsx(I, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
@@ -20193,13 +20193,13 @@ function Tk({
20193
20193
  flex: 1
20194
20194
  }, ...s })
20195
20195
  ) }) }),
20196
- /* @__PURE__ */ r.jsxs(w, { children: [
20196
+ /* @__PURE__ */ r.jsxs(_, { children: [
20197
20197
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
20198
20198
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.label_formatter`, control: e, render: ({
20199
20199
  field: s
20200
20200
  }) => /* @__PURE__ */ r.jsx(vt, { ...s }) })
20201
20201
  ] }),
20202
- /* @__PURE__ */ r.jsxs(w, { children: [
20202
+ /* @__PURE__ */ r.jsxs(_, { children: [
20203
20203
  /* @__PURE__ */ r.jsx(I, { mb: -15, variant: "dashed", label: "Value Range", labelPosition: "center" }),
20204
20204
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
20205
20205
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.min`, control: e, render: ({
@@ -20255,7 +20255,7 @@ function Ik({
20255
20255
  control: e,
20256
20256
  watch: t
20257
20257
  }) {
20258
- return t(["y_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
20258
+ return t(["y_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
20259
20259
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
20260
20260
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.data_key", control: e, render: ({
20261
20261
  field: n
@@ -20285,7 +20285,7 @@ function zk({
20285
20285
  set: n
20286
20286
  } = Q(e.instanceData, "config"), {
20287
20287
  variables: s
20288
- } = e, i = T(() => _.defaultsDeep({}, t, ma), [t]), {
20288
+ } = e, i = T(() => w.defaultsDeep({}, t, ma), [t]), {
20289
20289
  control: a,
20290
20290
  handleSubmit: o,
20291
20291
  watch: l,
@@ -20297,8 +20297,8 @@ function zk({
20297
20297
  O(() => {
20298
20298
  d(i);
20299
20299
  }, [i]), l([]);
20300
- const u = c(), h = T(() => !_.isEqual(u, i), [u, i]);
20301
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
20300
+ const u = c(), h = T(() => !w.isEqual(u, i), [u, i]);
20301
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
20302
20302
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
20303
20303
  borderBottom: "1px solid #eee",
20304
20304
  background: "#efefef"
@@ -20473,7 +20473,7 @@ function Ek(e, t, n) {
20473
20473
  xAxisIndex: 0,
20474
20474
  yAxisIndex: 0,
20475
20475
  data: t.map((i) => {
20476
- const a = n[i].length, c = (_.countBy(n[i], (d) => d.level.diff === 0).true ?? 0) / a;
20476
+ const a = n[i].length, c = (w.countBy(n[i], (d) => d.level.diff === 0).true ?? 0) / a;
20477
20477
  return [i, "_y", c];
20478
20478
  }),
20479
20479
  label: {
@@ -20541,9 +20541,9 @@ function Fk([e, t]) {
20541
20541
  function Ok(e, t, n, s) {
20542
20542
  var c, d;
20543
20543
  const i = t.map((u) => {
20544
- const h = n[u], p = _.sumBy(h, (x) => x.level.diff);
20544
+ const h = n[u], p = w.sumBy(h, (x) => x.level.diff);
20545
20545
  return [u, p / h.length];
20546
- }), a = Number(((c = _.maxBy(i, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = _.minBy(i, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l = kn([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
20546
+ }), a = Number(((c = w.maxBy(i, (u) => u[1])) == null ? void 0 : c[1]) ?? 0), o = Number(((d = w.minBy(i, (u) => u[1])) == null ? void 0 : d[1]) ?? 0), l = kn([a, 0, o], ["#D15A40", "#FFF", "#418AAF"]);
20547
20547
  return {
20548
20548
  type: "bar",
20549
20549
  name: "平均偏差",
@@ -20639,7 +20639,7 @@ function $k([e, t, n, s]) {
20639
20639
  function Pk(e, t, n, s) {
20640
20640
  const i = {};
20641
20641
  t.forEach((u) => {
20642
- const h = _.countBy(n[u], (x) => x.level.diff), p = _.sum(Object.values(h));
20642
+ const h = w.countBy(n[u], (x) => x.level.diff), p = w.sum(Object.values(h));
20643
20643
  Object.entries(h).forEach(([x, y]) => {
20644
20644
  i[x] || (i[x] = []);
20645
20645
  const S = y / p;
@@ -20711,7 +20711,7 @@ function Pk(e, t, n, s) {
20711
20711
  }
20712
20712
  function Vk(e, t, n, s) {
20713
20713
  const i = $(t.data_key), a = t.name, o = n.map((l) => {
20714
- const c = _.sumBy(s[l], i.columnKey);
20714
+ const c = w.sumBy(s[l], i.columnKey);
20715
20715
  return [l, c];
20716
20716
  });
20717
20717
  return {
@@ -20971,7 +20971,7 @@ function Kk(e, t) {
20971
20971
  };
20972
20972
  }
20973
20973
  function Yk(e, t, n) {
20974
- const s = Gk(e, n), i = $(e.x_axis.data_key), a = _.uniqBy(n[i.queryID], i.columnKey).map((u) => u[i.columnKey]), o = _.groupBy(s, i.columnKey), l = Kk(e, t), c = Nk(e, l, a, o), d = {
20974
+ const s = Gk(e, n), i = $(e.x_axis.data_key), a = w.uniqBy(n[i.queryID], i.columnKey).map((u) => u[i.columnKey]), o = w.groupBy(s, i.columnKey), l = Kk(e, t), c = Nk(e, l, a, o), d = {
20975
20975
  xAxis: qk(e, a),
20976
20976
  yAxis: Bk(l),
20977
20977
  series: c,
@@ -21095,7 +21095,7 @@ function sT({
21095
21095
  control: e,
21096
21096
  watch: t
21097
21097
  }) {
21098
- return t(["deviation"]), /* @__PURE__ */ r.jsxs(w, { children: [
21098
+ return t(["deviation"]), /* @__PURE__ */ r.jsxs(_, { children: [
21099
21099
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(g, { name: "deviation.name", control: e, render: ({
21100
21100
  field: n
21101
21101
  }) => /* @__PURE__ */ r.jsx(D, { label: "指标名称", sx: {
@@ -21119,7 +21119,7 @@ const iT = ({
21119
21119
  control: e,
21120
21120
  index: t,
21121
21121
  remove: n
21122
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
21122
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
21123
21123
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
21124
21124
  /* @__PURE__ */ r.jsx(g, { name: `metrics.${t}.name`, control: e, render: ({
21125
21125
  field: s
@@ -21189,7 +21189,7 @@ function oT({
21189
21189
  control: e,
21190
21190
  watch: t
21191
21191
  }) {
21192
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
21192
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
21193
21193
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
21194
21194
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
21195
21195
  field: n
@@ -21230,7 +21230,7 @@ function lT({
21230
21230
  const {
21231
21231
  value: t,
21232
21232
  set: n
21233
- } = Q(e.instanceData, "config"), s = T(() => _.defaultsDeep({}, t, fa), [t]), {
21233
+ } = Q(e.instanceData, "config"), s = T(() => w.defaultsDeep({}, t, fa), [t]), {
21234
21234
  control: i,
21235
21235
  handleSubmit: a,
21236
21236
  watch: o,
@@ -21242,8 +21242,8 @@ function lT({
21242
21242
  O(() => {
21243
21243
  c(s);
21244
21244
  }, [s]), o([]);
21245
- const d = l(), u = T(() => !_.isEqual(d, s), [d, s]);
21246
- return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
21245
+ const d = l(), u = T(() => !w.isEqual(d, s), [d, s]);
21246
+ return /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
21247
21247
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
21248
21248
  borderBottom: "1px solid #eee",
21249
21249
  background: "#efefef"
@@ -21391,8 +21391,8 @@ const No = ({
21391
21391
  }
21392
21392
  return null;
21393
21393
  }, [a, o]);
21394
- return /* @__PURE__ */ r.jsxs(w, { spacing: 18, children: [
21395
- /* @__PURE__ */ r.jsxs(w, { spacing: 12, children: [
21394
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 18, children: [
21395
+ /* @__PURE__ */ r.jsxs(_, { spacing: 12, children: [
21396
21396
  /* @__PURE__ */ r.jsx(j, { size: "14px", color: "#818388", children: n.value }),
21397
21397
  /* @__PURE__ */ r.jsxs(b, { spacing: "2px", align: "baseline", children: [
21398
21398
  /* @__PURE__ */ r.jsx(j, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
@@ -21401,7 +21401,7 @@ const No = ({
21401
21401
  /* @__PURE__ */ r.jsx(No, { postfix: l })
21402
21402
  ] })
21403
21403
  ] }),
21404
- /* @__PURE__ */ r.jsxs(w, { spacing: 12, children: [
21404
+ /* @__PURE__ */ r.jsxs(_, { spacing: 12, children: [
21405
21405
  /* @__PURE__ */ r.jsx(j, { size: "14px", color: "#818388", children: n.basis }),
21406
21406
  /* @__PURE__ */ r.jsxs(b, { spacing: "2px", align: "baseline", children: [
21407
21407
  /* @__PURE__ */ r.jsx(j, { size: "12px", color: "#3D3E45", sx: {
@@ -21419,7 +21419,7 @@ const No = ({
21419
21419
  value: n
21420
21420
  } = Q(e.instanceData, "config"), {
21421
21421
  variables: s
21422
- } = e, i = T(() => _.defaults({}, n, ga), [n]), a = e.data, o = T(() => _c(a, s), [s, a]), {
21422
+ } = e, i = T(() => w.defaults({}, n, ga), [n]), a = e.data, o = T(() => _c(a, s), [s, a]), {
21423
21423
  width: l,
21424
21424
  height: c
21425
21425
  } = e.viewport;
@@ -21462,7 +21462,7 @@ function gT({
21462
21462
  watch: s,
21463
21463
  variableOptions: i
21464
21464
  }) {
21465
- return s(`metrics.${t}.postfix`), /* @__PURE__ */ r.jsxs(w, { my: 0, p: "md", pr: 40, sx: {
21465
+ return s(`metrics.${t}.postfix`), /* @__PURE__ */ r.jsxs(_, { my: 0, p: "md", pr: 40, sx: {
21466
21466
  border: "1px solid #eee",
21467
21467
  position: "relative"
21468
21468
  }, children: [
@@ -21531,13 +21531,13 @@ const bT = ({
21531
21531
  }, d = T(() => n.map((y) => ({
21532
21532
  label: y.name,
21533
21533
  value: y.name
21534
- })), [n]), u = _.get(l, "0.id", null), [h, p] = q(u);
21534
+ })), [n]), u = w.get(l, "0.id", null), [h, p] = q(u);
21535
21535
  O(() => {
21536
21536
  p((y) => y || u);
21537
21537
  }, [u]);
21538
21538
  const x = (y) => {
21539
21539
  a(y);
21540
- const S = _.get(l, "0.id", null);
21540
+ const S = w.get(l, "0.id", null);
21541
21541
  p(S);
21542
21542
  };
21543
21543
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -21644,7 +21644,7 @@ function wT({
21644
21644
  d(i);
21645
21645
  }, [i]);
21646
21646
  const u = c(), h = T(() => !fe(u, i), [u, i]);
21647
- return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
21647
+ return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(_, { spacing: "xs", children: [
21648
21648
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
21649
21649
  borderBottom: "1px solid #eee",
21650
21650
  background: "#efefef"
@@ -21707,7 +21707,7 @@ function kT({
21707
21707
  }) {
21708
21708
  t(["heat_block"]);
21709
21709
  const n = t("heat_block.label.show");
21710
- return /* @__PURE__ */ r.jsxs(w, { children: [
21710
+ return /* @__PURE__ */ r.jsxs(_, { children: [
21711
21711
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
21712
21712
  /* @__PURE__ */ r.jsx(g, { name: "heat_block.data_key", control: e, render: ({
21713
21713
  field: s
@@ -21752,7 +21752,7 @@ const TT = ({
21752
21752
  control: e,
21753
21753
  index: t,
21754
21754
  remove: n
21755
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
21755
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
21756
21756
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
21757
21757
  /* @__PURE__ */ r.jsx(g, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
21758
21758
  field: s
@@ -21887,7 +21887,7 @@ const zT = ({
21887
21887
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
21888
21888
  flexGrow: 0
21889
21889
  }, children: "Customize Label" }),
21890
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
21890
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
21891
21891
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
21892
21892
  /* @__PURE__ */ r.jsx(zT, { value: o.func_content, onChange: h, disabled: !o.enabled }),
21893
21893
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -21904,7 +21904,7 @@ function LT({
21904
21904
  control: e,
21905
21905
  watch: t
21906
21906
  }) {
21907
- return t(["x_axis"]), /* @__PURE__ */ r.jsxs(w, { children: [
21907
+ return t(["x_axis"]), /* @__PURE__ */ r.jsxs(_, { children: [
21908
21908
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
21909
21909
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.data_key", control: e, render: ({
21910
21910
  field: n
@@ -21956,7 +21956,7 @@ function RT({
21956
21956
  control: e,
21957
21957
  watch: t
21958
21958
  }) {
21959
- return t(["y_axis"]), /* @__PURE__ */ r.jsxs(w, { my: 0, p: "0", sx: {
21959
+ return t(["y_axis"]), /* @__PURE__ */ r.jsxs(_, { my: 0, p: "0", sx: {
21960
21960
  position: "relative"
21961
21961
  }, children: [
21962
21962
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -22055,7 +22055,7 @@ function ET({
22055
22055
  const {
22056
22056
  value: t,
22057
22057
  set: n
22058
- } = Q(e.instanceData, "config"), s = T(() => je({}, t, ba), [t]), i = T(() => _.cloneDeep(s), [s]);
22058
+ } = Q(e.instanceData, "config"), s = T(() => je({}, t, ba), [t]), i = T(() => w.cloneDeep(s), [s]);
22059
22059
  O(() => {
22060
22060
  !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
22061
22061
  }, [s, i]);
@@ -22074,7 +22074,7 @@ function ET({
22074
22074
  const u = c(), h = T(() => !fe(u, s), [u, s]);
22075
22075
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), style: {
22076
22076
  flexGrow: 1
22077
- }, children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", sx: {
22077
+ }, children: /* @__PURE__ */ r.jsxs(_, { spacing: "xs", sx: {
22078
22078
  height: "100%"
22079
22079
  }, children: [
22080
22080
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
@@ -22200,7 +22200,7 @@ function NT(e, t) {
22200
22200
  x_axis: n,
22201
22201
  y_axis: s,
22202
22202
  heat_block: i
22203
- } = e, a = $(n.data_key), o = $(s.data_key), l = $(i.data_key), c = t[a.queryID].map((d) => [_.get(d, a.columnKey), _.get(d, o.columnKey), _.get(d, l.columnKey)]);
22203
+ } = e, a = $(n.data_key), o = $(s.data_key), l = $(i.data_key), c = t[a.queryID].map((d) => [w.get(d, a.columnKey), w.get(d, o.columnKey), w.get(d, l.columnKey)]);
22204
22204
  return {
22205
22205
  type: "heatmap",
22206
22206
  name: i.name,
@@ -22260,7 +22260,7 @@ function BT({
22260
22260
  const A = $(S.data_key);
22261
22261
  x.push({
22262
22262
  label: S.name,
22263
- value: qT(_.get(y, A.columnKey, "")),
22263
+ value: qT(w.get(y, A.columnKey, "")),
22264
22264
  style: {
22265
22265
  label: "",
22266
22266
  value: ""
@@ -22275,7 +22275,7 @@ function WT(e, t, n, s) {
22275
22275
  heat_block: o
22276
22276
  } = e, l = $(i.data_key), c = $(a.data_key);
22277
22277
  $(o.data_key);
22278
- const d = _.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
22278
+ const d = w.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
22279
22279
  return oe.getTooltip({
22280
22280
  formatter: function(u) {
22281
22281
  const p = BT({
@@ -22323,7 +22323,7 @@ function GT(e, t) {
22323
22323
  };
22324
22324
  }
22325
22325
  function QT(e, t, n) {
22326
- const s = $(e.x_axis.data_key), i = _.uniq(t[s.queryID].map((c) => c[s.columnKey])), {
22326
+ const s = $(e.x_axis.data_key), i = w.uniq(t[s.queryID].map((c) => c[s.columnKey])), {
22327
22327
  overflow: a,
22328
22328
  rotate: o
22329
22329
  } = e.x_axis.axisLabel, l = bt(a.on_axis);
@@ -22365,7 +22365,7 @@ function HT(e, t, n) {
22365
22365
  nameAlignment: a,
22366
22366
  data_key: o,
22367
22367
  ...l
22368
- } = e.y_axis, c = _.uniq(t[s.queryID].map((p) => p[i.columnKey])), {
22368
+ } = e.y_axis, c = w.uniq(t[s.queryID].map((p) => p[i.columnKey])), {
22369
22369
  overflow: d,
22370
22370
  rotate: u
22371
22371
  } = e.y_axis.axisLabel, h = bt(d.on_axis);
@@ -22433,9 +22433,9 @@ function KT({
22433
22433
  }) {
22434
22434
  const o = T(() => {
22435
22435
  const h = $(e.x_axis.data_key), p = $(e.y_axis.data_key);
22436
- return _.keyBy(t[h.queryID], (x) => `${x[h.columnKey]}---${x[p.columnKey]}`);
22436
+ return w.keyBy(t[h.queryID], (x) => `${x[h.columnKey]}---${x[p.columnKey]}`);
22437
22437
  }, [t, e.x_axis.data_key, e.y_axis.data_key]), l = yt(i.triggerManager, wd.id), c = Be((h) => {
22438
- const [p, x] = h.value, y = _.get(o, `${p}---${x}`, {
22438
+ const [p, x] = h.value, y = w.get(o, `${p}---${x}`, {
22439
22439
  error: "rowData is not found"
22440
22440
  });
22441
22441
  l.forEach((S) => {
@@ -22817,7 +22817,7 @@ const aD = ({
22817
22817
  const t = (s) => () => {
22818
22818
  const i = s();
22819
22819
  e(i);
22820
- }, n = T(() => _.groupBy(ja(), "group"), []);
22820
+ }, n = T(() => w.groupBy(ja(), "group"), []);
22821
22821
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
22822
22822
  /* @__PURE__ */ r.jsx(I, { variant: "dashed", my: 10 }),
22823
22823
  /* @__PURE__ */ r.jsx(We, { withBorder: !1, sx: {
@@ -23128,7 +23128,7 @@ const aD = ({
23128
23128
  };
23129
23129
  return d.filter(Se);
23130
23130
  }, [V, d]);
23131
- return /* @__PURE__ */ r.jsxs(w, { spacing: 3, children: [
23131
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 3, children: [
23132
23132
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
23133
23133
  /* @__PURE__ */ r.jsxs(j, { className: p.label, children: [
23134
23134
  o,
@@ -23495,7 +23495,7 @@ const xD = ({
23495
23495
  }), [S, A] = q(!1), F = (Y) => {
23496
23496
  A(Y);
23497
23497
  }, V = S && (l == null ? void 0 : l.length) > 0;
23498
- return /* @__PURE__ */ r.jsxs(w, { spacing: 3, children: [
23498
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 3, children: [
23499
23499
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
23500
23500
  /* @__PURE__ */ r.jsxs(j, { className: x.label, children: [
23501
23501
  o,
@@ -23629,7 +23629,7 @@ const CD = ({
23629
23629
  O(() => {
23630
23630
  l(i.filters.values);
23631
23631
  }, [i.filters.values, l]), SD(c);
23632
- const d = i.filters.visibleInView(t.id), u = T(() => d.every((y) => y.should_auto_submit), [d]), h = T(() => d.filter((y) => _.get(y, "config.required", !1)), [d]), p = T(() => h.length === 0 ? !1 : h.some((y) => !y.requiredAndPass(c[y.key])), [c, h]);
23632
+ const d = i.filters.visibleInView(t.id), u = T(() => d.every((y) => y.should_auto_submit), [d]), h = T(() => d.filter((y) => w.get(y, "config.required", !1)), [d]), p = T(() => h.length === 0 ? !1 : h.some((y) => !y.requiredAndPass(c[y.key])), [c, h]);
23633
23633
  if (d.length === 0)
23634
23634
  return null;
23635
23635
  const x = (y, S) => (A, F) => {
@@ -23651,7 +23651,7 @@ const CD = ({
23651
23651
  ] }) })
23652
23652
  ] });
23653
23653
  }), kD = {
23654
- viewPanelInFullScreen: _.noop,
23654
+ viewPanelInFullScreen: w.noop,
23655
23655
  inFullScreen: !1
23656
23656
  }, Ds = M.createContext(kD), Id = m.model("MockContextMeta", {
23657
23657
  current: m.optional(m.frozen(), {})
@@ -23821,7 +23821,7 @@ const TD = m.model("PanelLayoutMeta", {
23821
23821
  data_field: o,
23822
23822
  aggregation: l
23823
23823
  } = e;
23824
- return _.cloneDeep({
23824
+ return w.cloneDeep({
23825
23825
  name: t,
23826
23826
  size: n,
23827
23827
  color: i,
@@ -24537,7 +24537,7 @@ const $d = m.compose("FilterTreeSelectConfigMeta", m.model({
24537
24537
  return e.auto_submit_supported && e.auto_submit;
24538
24538
  },
24539
24539
  requiredAndPass(t) {
24540
- return _.get(e.config, "required", !1) ? _.get(e.config, "truthy", () => !0)(t) : !1;
24540
+ return w.get(e.config, "required", !1) ? w.get(e.config, "truthy", () => !0)(t) : !1;
24541
24541
  }
24542
24542
  })).actions((e) => ({
24543
24543
  setKey(t) {
@@ -24679,19 +24679,22 @@ const Vd = m.model("ViewDivisionConfig", {
24679
24679
  id: m.identifier,
24680
24680
  name: m.string,
24681
24681
  view_id: m.string,
24682
- color: m.optional(m.string, "")
24682
+ color: m.optional(m.string, ""),
24683
+ order: m.optional(m.number, 0)
24683
24684
  }).views((e) => ({
24684
24685
  get json() {
24685
24686
  const {
24686
24687
  id: t,
24687
24688
  name: n,
24688
24689
  view_id: s,
24689
- color: i
24690
+ color: i,
24691
+ order: a
24690
24692
  } = e;
24691
24693
  return {
24692
24694
  id: t,
24693
24695
  name: n,
24694
24696
  color: i,
24697
+ order: a,
24695
24698
  view_id: s
24696
24699
  };
24697
24700
  }
@@ -24704,6 +24707,9 @@ const Vd = m.model("ViewDivisionConfig", {
24704
24707
  },
24705
24708
  setColor(t) {
24706
24709
  e.color = t;
24710
+ },
24711
+ setOrder(t) {
24712
+ e.order = t;
24707
24713
  }
24708
24714
  })), qd = m.model("ViewTabsConfig", {
24709
24715
  _name: m.literal(B.Modal),
@@ -24727,6 +24733,9 @@ const Vd = m.model("ViewDivisionConfig", {
24727
24733
  variant: n,
24728
24734
  orientation: s
24729
24735
  };
24736
+ },
24737
+ get tabsInOrder() {
24738
+ return w.sortBy(e.tabs, "order");
24730
24739
  }
24731
24740
  })).actions((e) => ({
24732
24741
  setVariant(t) {
@@ -25229,13 +25238,13 @@ const eu = m.model("FiltersRenderModel", {
25229
25238
  return e.current.filter((n) => t.has(n.id));
25230
25239
  },
25231
25240
  get inOrder() {
25232
- return _.sortBy(e.current, "order");
25241
+ return w.sortBy(e.current, "order");
25233
25242
  },
25234
25243
  get empty() {
25235
25244
  return e.current.length === 0;
25236
25245
  },
25237
25246
  visibleInView(t) {
25238
- return _.sortBy(e.current.filter((n) => n.visibleInViewsIDSet.has(t)), "order");
25247
+ return w.sortBy(e.current.filter((n) => n.visibleInViewsIDSet.has(t)), "order");
25239
25248
  },
25240
25249
  get firstFilterValueKey() {
25241
25250
  return Object.keys(e.values)[0] ?? "";
@@ -25331,7 +25340,7 @@ const sI = RD.views((e) => ({
25331
25340
  return [];
25332
25341
  const n = this.contentModel.payloadForSQL;
25333
25342
  return t.filter((s) => {
25334
- const i = _.get(n, s);
25343
+ const i = w.get(n, s);
25335
25344
  return Array.isArray(i) ? i.length === 0 : typeof i == "number" ? Number.isNaN(i) : !i;
25336
25345
  });
25337
25346
  }
@@ -25367,7 +25376,7 @@ const sI = RD.views((e) => ({
25367
25376
  } = e;
25368
25377
  if (t.length === 0)
25369
25378
  return "";
25370
- const n = e.contentModel.payloadForSQL, s = [...t].reduce((i, a) => (i[a] = _.get(n, a), i), {});
25379
+ const n = e.contentModel.payloadForSQL, s = [...t].reduce((i, a) => (i[a] = w.get(n, a), i), {});
25371
25380
  return JSON.stringify(s);
25372
25381
  },
25373
25382
  get runByConditionsMet() {
@@ -25381,7 +25390,7 @@ const sI = RD.views((e) => ({
25381
25390
  };
25382
25391
  const {
25383
25392
  keyLabelMap: t
25384
- } = e.contentModel.filters, n = e.unmetRunByConditions.filter((i) => i.startsWith("context.")).map((i) => i.replace("context.", "")), s = e.unmetRunByConditions.filter((i) => i.startsWith("filters.")).map((i) => _.get({
25393
+ } = e.contentModel.filters, n = e.unmetRunByConditions.filter((i) => i.startsWith("context.")).map((i) => i.replace("context.", "")), s = e.unmetRunByConditions.filter((i) => i.startsWith("filters.")).map((i) => w.get({
25385
25394
  filters: t
25386
25395
  }, i, i.replace("filters.", ""))).filter((i) => !!i);
25387
25396
  return {
@@ -25398,7 +25407,7 @@ const sI = RD.views((e) => ({
25398
25407
  get dependencies() {
25399
25408
  if (!this.typedAsSQL)
25400
25409
  return [];
25401
- const t = _.uniq(e.sql.match($r.sqlSnippet)), n = _.uniq(e.sql.match($r.filter)), s = _.uniq(e.sql.match($r.context)), i = [];
25410
+ const t = w.uniq(e.sql.match($r.sqlSnippet)), n = w.uniq(e.sql.match($r.filter)), s = w.uniq(e.sql.match($r.context)), i = [];
25402
25411
  return t.forEach((a) => {
25403
25412
  i.push({
25404
25413
  type: "SQL Snippet",
@@ -25583,9 +25592,9 @@ const sI = RD.views((e) => ({
25583
25592
  i.push(...c.queryIDs);
25584
25593
  });
25585
25594
  });
25586
- const a = _.uniq(t.visibleViews.map((l) => l.renderViewIDs).flat());
25595
+ const a = w.uniq(t.visibleViews.map((l) => l.renderViewIDs).flat());
25587
25596
  n.current.forEach((l) => {
25588
- const c = _.get(l, "config.options_query_id");
25597
+ const c = w.get(l, "config.options_query_id");
25589
25598
  if (!c)
25590
25599
  return;
25591
25600
  a.some((u) => l.visibleInViewsIDSet.has(u)) && i.push(c);
@@ -26006,7 +26015,7 @@ const bI = k(function({
26006
26015
  }, children: o && /* @__PURE__ */ r.jsx(Ge, { children: a }) }) });
26007
26016
  }), yI = k(({
26008
26017
  panel: e
26009
- }) => /* @__PURE__ */ r.jsxs(w, { children: [
26018
+ }) => /* @__PURE__ */ r.jsxs(_, { children: [
26010
26019
  e.queryErrors.map((t, n) => /* @__PURE__ */ r.jsx(j, { color: "red", size: "sm", align: "center", sx: {
26011
26020
  fontFamily: "monospace"
26012
26021
  }, children: t }, `${n}-${t}`)),
@@ -26337,8 +26346,8 @@ const FI = k(({
26337
26346
  overflow: "auto"
26338
26347
  }
26339
26348
  }, keepMounted: !1, children: [
26340
- /* @__PURE__ */ r.jsx(f.List, { grow: n.grow, children: n.tabs.map((s) => /* @__PURE__ */ r.jsx(f.Tab, { value: s.id, sx: $I(s), disabled: !s.view_id, children: s.name ?? s.id }, s.id)) }),
26341
- n.tabs.map((s) => {
26349
+ /* @__PURE__ */ r.jsx(f.List, { grow: n.grow, children: n.tabsInOrder.map((s) => /* @__PURE__ */ r.jsx(f.Tab, { value: s.id, sx: $I(s), disabled: !s.view_id, children: s.name ?? s.id }, s.id)) }),
26350
+ n.tabsInOrder.map((s) => {
26342
26351
  const i = t.views.findByID(s.view_id);
26343
26352
  return i ? /* @__PURE__ */ r.jsx(f.Panel, { value: s.id, children: /* @__PURE__ */ r.jsx(Sa, { view: i }) }, s.id) : null;
26344
26353
  })
@@ -26384,7 +26393,7 @@ const qI = k(({
26384
26393
  "> div:not(.mantine-Modal-root)": {
26385
26394
  height: "100%"
26386
26395
  }
26387
- }, children: /* @__PURE__ */ r.jsx(ge, { size: n.width, opened: !0, onClose: _.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26396
+ }, children: /* @__PURE__ */ r.jsx(ge, { size: n.width, opened: !0, onClose: w.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26388
26397
  /* @__PURE__ */ r.jsx(z, { children: n.custom_modal_title.value }),
26389
26398
  /* @__PURE__ */ r.jsx(xu, { downloadScreenshot: o })
26390
26399
  ] }), trapFocus: !0, onDragStart: (l) => {
@@ -26472,10 +26481,10 @@ const qI = k(({
26472
26481
  }), o = i.tabs.length === 0;
26473
26482
  return /* @__PURE__ */ r.jsxs(f, { className: "preview-view-tabs", variant: i.variant, orientation: i.orientation, value: e.tab, onTabChange: e.setTab, styles: BI(i), children: [
26474
26483
  /* @__PURE__ */ r.jsxs(f.List, { grow: i.grow, children: [
26475
- i.tabs.map((l) => /* @__PURE__ */ r.jsx(f.Tab, { value: l.id, sx: WI(l), children: l.name ?? l.id }, l.id)),
26484
+ i.tabsInOrder.map((l) => /* @__PURE__ */ r.jsx(f.Tab, { value: l.id, sx: WI(l), children: l.name ?? l.id }, l.id)),
26476
26485
  /* @__PURE__ */ r.jsx(f.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(Ae, { size: 18, color: "#228be6" }) })
26477
26486
  ] }),
26478
- i.tabs.map((l, c) => {
26487
+ i.tabsInOrder.map((l, c) => {
26479
26488
  const d = n.views.findByID(l.view_id);
26480
26489
  return /* @__PURE__ */ r.jsxs(f.Panel, { value: l.id, sx: {
26481
26490
  position: "relative"
@@ -26489,13 +26498,14 @@ const qI = k(({
26489
26498
  zIndex: 200
26490
26499
  }, children: [
26491
26500
  /* @__PURE__ */ r.jsx(Rt, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
26492
- /* @__PURE__ */ r.jsxs(w, { mx: "auto", mt: 100, sx: {
26501
+ /* @__PURE__ */ r.jsxs(_, { mx: "auto", mt: 100, sx: {
26493
26502
  width: "300px",
26494
26503
  position: "relative",
26495
26504
  zIndex: 200
26496
26505
  }, children: [
26497
- /* @__PURE__ */ r.jsx(D, { label: "Tab Name", value: l.name, onChange: (u) => l.setName(u.currentTarget.value) }),
26506
+ /* @__PURE__ */ r.jsx(D, { label: "Tab Name", required: !0, value: l.name, onChange: (u) => l.setName(u.currentTarget.value) }),
26498
26507
  /* @__PURE__ */ r.jsx(L, { label: "View", value: l.view_id, onChange: l.setViewID, data: s }),
26508
+ /* @__PURE__ */ r.jsx(U, { label: "Placement Order", required: !0, value: l.order, onChange: (u) => l.setOrder(u || 0), min: 0, max: 1e3, step: 1 }),
26499
26509
  /* @__PURE__ */ r.jsx(ji, { label: "Color", value: l.color, onChange: l.setColor, disabled: i.variant !== "default" }),
26500
26510
  d && /* @__PURE__ */ r.jsxs(C, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(ap, { size: 18 }), gradient: {
26501
26511
  from: "cyan",
@@ -26528,7 +26538,7 @@ const qI = k(({
26528
26538
  view: t
26529
26539
  }) {
26530
26540
  return /* @__PURE__ */ r.jsx(Ds.Provider, { value: {
26531
- viewPanelInFullScreen: _.noop,
26541
+ viewPanelInFullScreen: w.noop,
26532
26542
  inFullScreen: !1
26533
26543
  }, children: /* @__PURE__ */ r.jsx(z, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(QI, { view: t, children: /* @__PURE__ */ r.jsxs(z, { sx: {
26534
26544
  position: "relative"
@@ -26620,7 +26630,7 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26620
26630
  }));
26621
26631
  },
26622
26632
  get sortedList() {
26623
- return _.sortBy(e.current, (t) => t.label.toLowerCase());
26633
+ return w.sortBy(e.current, (t) => t.label.toLowerCase());
26624
26634
  }
26625
26635
  })).actions((e) => ({
26626
26636
  replace(t) {
@@ -26678,7 +26688,7 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26678
26688
  label: n.name,
26679
26689
  _type: "query"
26680
26690
  }));
26681
- return _.sortBy(t, (n) => n.label.toLowerCase());
26691
+ return w.sortBy(t, (n) => n.label.toLowerCase());
26682
26692
  },
26683
26693
  get optionsWithoutTransform() {
26684
26694
  const t = e.current.filter((n) => n.type !== Me.Transform).map((n) => ({
@@ -26686,10 +26696,10 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26686
26696
  label: n.name,
26687
26697
  _type: "query"
26688
26698
  }));
26689
- return _.sortBy(t, (n) => n.label.toLowerCase());
26699
+ return w.sortBy(t, (n) => n.label.toLowerCase());
26690
26700
  },
26691
26701
  get sortedList() {
26692
- return _.sortBy(e.current, (t) => t.name.toLowerCase());
26702
+ return w.sortBy(e.current, (t) => t.name.toLowerCase());
26693
26703
  }
26694
26704
  })).actions((e) => ({
26695
26705
  replace(t) {
@@ -26720,11 +26730,11 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26720
26730
  n.has(i.id) && ai(i);
26721
26731
  });
26722
26732
  const s = [...e.current];
26723
- _.remove(s, (i) => n.has(i.id)), e.current = Lt(s);
26733
+ w.remove(s, (i) => n.has(i.id)), e.current = Lt(s);
26724
26734
  }
26725
26735
  })), ez = su.views((e) => ({
26726
26736
  get sortedList() {
26727
- return _.sortBy(e.current, (t) => t.key.toLowerCase());
26737
+ return w.sortBy(e.current, (t) => t.key.toLowerCase());
26728
26738
  },
26729
26739
  get options() {
26730
26740
  const t = e.current.map((n) => ({
@@ -26732,7 +26742,7 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26732
26742
  value: n.key,
26733
26743
  _type: "sql_snippet"
26734
26744
  }));
26735
- return _.sortBy(t, (n) => n.label.toLowerCase());
26745
+ return w.sortBy(t, (n) => n.label.toLowerCase());
26736
26746
  }
26737
26747
  })).actions((e) => ({
26738
26748
  replace(t) {
@@ -26760,7 +26770,7 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26760
26770
  n.has(i.key) && ai(i);
26761
26771
  });
26762
26772
  const s = [...e.current];
26763
- _.remove(s, (i) => n.has(i.key)), e.current = Lt(s);
26773
+ w.remove(s, (i) => n.has(i.key)), e.current = Lt(s);
26764
26774
  },
26765
26775
  replaceByIndex(t, n) {
26766
26776
  e.current.splice(t, 1, n);
@@ -26912,12 +26922,12 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26912
26922
  query_type: "TABLES"
26913
26923
  }
26914
26924
  }));
26915
- e.tables.data = _.groupBy(s, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
26925
+ e.tables.data = w.groupBy(s, "table_schema"), e.tables.state = "idle", e.tables.error = null, e.initKeywords();
26916
26926
  } catch (s) {
26917
26927
  if (!Bt.isCancel(s)) {
26918
26928
  e.tables.data = {};
26919
- const i = _.get(s, "message", "unkown error");
26920
- e.tables.error = _.get(s, "response.data.detail.message", i), e.tables.state = "error";
26929
+ const i = w.get(s, "message", "unkown error");
26930
+ e.tables.error = w.get(s, "response.data.detail.message", i), e.tables.state = "error";
26921
26931
  }
26922
26932
  }
26923
26933
  });
@@ -26946,8 +26956,8 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26946
26956
  e.columns.state = "idle", e.columns.error = null;
26947
26957
  else {
26948
26958
  e.columns.data = [];
26949
- const i = _.get(s, "message", "unkown error");
26950
- e.columns.error = _.get(s, "response.data.detail.message", i), e.columns.state = "error";
26959
+ const i = w.get(s, "message", "unkown error");
26960
+ e.columns.error = w.get(s, "response.data.detail.message", i), e.columns.state = "error";
26951
26961
  }
26952
26962
  }
26953
26963
  }),
@@ -26971,8 +26981,8 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
26971
26981
  e.indexes.state = "idle", e.indexes.error = null;
26972
26982
  else {
26973
26983
  e.indexes.data = [];
26974
- const i = _.get(s, "message", "unkown error");
26975
- e.indexes.error = _.get(s, "response.data.detail.message", i), e.indexes.state = "error";
26984
+ const i = w.get(s, "message", "unkown error");
26985
+ e.indexes.error = w.get(s, "response.data.detail.message", i), e.indexes.state = "error";
26976
26986
  }
26977
26987
  }
26978
26988
  }),
@@ -27014,8 +27024,8 @@ const XI = m.compose("FiltersModel", eu, m.model("FiltersModel", {
27014
27024
  n.state = "idle", n.error = null;
27015
27025
  else {
27016
27026
  n.data = [];
27017
- const a = _.get(i, "message", "unkown error");
27018
- n.error = _.get(i, "response.data.detail.message", a), n.state = "error";
27027
+ const a = w.get(i, "message", "unkown error");
27028
+ n.error = w.get(i, "response.data.detail.message", a), n.state = "error";
27019
27029
  }
27020
27030
  }
27021
27031
  })
@@ -27296,7 +27306,7 @@ const lz = m.model("EditorModel", {
27296
27306
  views: [t],
27297
27307
  panels: n,
27298
27308
  definition: {
27299
- queries: _.uniqBy(s, (a) => a.id)
27309
+ queries: w.uniqBy(s, (a) => a.id)
27300
27310
  },
27301
27311
  version: ln
27302
27312
  };
@@ -27557,11 +27567,11 @@ const pz = m.model({
27557
27567
  });
27558
27568
  });
27559
27569
  const s = e.views.idMap;
27560
- return e.filters.current.filter((i) => !!_.get(i, "config.options_query_id")).forEach((i) => {
27570
+ return e.filters.current.filter((i) => !!w.get(i, "config.options_query_id")).forEach((i) => {
27561
27571
  n.push({
27562
27572
  type: "filter",
27563
27573
  id: i.id,
27564
- queryID: _.get(i, "config.options_query_id"),
27574
+ queryID: w.get(i, "config.options_query_id"),
27565
27575
  label: i.label,
27566
27576
  views: i.visibleInViewsIDs.map((a) => {
27567
27577
  var o;
@@ -27571,7 +27581,7 @@ const pz = m.model({
27571
27581
  };
27572
27582
  })
27573
27583
  });
27574
- }), _.groupBy(n, "queryID");
27584
+ }), w.groupBy(n, "queryID");
27575
27585
  },
27576
27586
  get hasUnusedQueries() {
27577
27587
  return e.queries.current.length > Object.keys(this.queriesUsage).length;
@@ -27584,14 +27594,14 @@ const pz = m.model({
27584
27594
  return e.queries.current.forEach((n) => {
27585
27595
  if (!n.typedAsSQL)
27586
27596
  return;
27587
- _.uniq(n.sql.match($r.sqlSnippet)).forEach((i) => {
27597
+ w.uniq(n.sql.match($r.sqlSnippet)).forEach((i) => {
27588
27598
  t.push({
27589
27599
  queryID: n.id,
27590
27600
  sqlSnippetKey: i,
27591
27601
  queryName: n.name
27592
27602
  });
27593
27603
  });
27594
- }), _.groupBy(t, "sqlSnippetKey");
27604
+ }), w.groupBy(t, "sqlSnippetKey");
27595
27605
  },
27596
27606
  get hasUnusedSQLSnippets() {
27597
27607
  return e.sqlSnippets.current.length > Object.keys(this.sqlSnippetsUsage).length;
@@ -27837,7 +27847,7 @@ function gu(e, t) {
27837
27847
  return;
27838
27848
  }
27839
27849
  Object.entries(i).forEach(([o, l]) => {
27840
- e.filters.setValueByKey(o, _.get(a, l));
27850
+ e.filters.setValueByKey(o, w.get(a, l));
27841
27851
  });
27842
27852
  };
27843
27853
  return window.addEventListener("set-filter-values", n), () => {
@@ -27853,7 +27863,7 @@ function gu(e, t) {
27853
27863
  filter_keys: a
27854
27864
  } = i.detail;
27855
27865
  a.forEach((o) => {
27856
- const l = _.get(e.filters.values, o), c = n(l);
27866
+ const l = w.get(e.filters.values, o), c = n(l);
27857
27867
  console.log(`${o}: ${c}`), e.filters.setValueByKey(o, c);
27858
27868
  });
27859
27869
  };
@@ -27981,7 +27991,7 @@ const gz = k(({
27981
27991
  }, children: "Add a Panel" });
27982
27992
  }), jz = k(({
27983
27993
  view: e
27984
- }) => !e || e.type !== B.Division ? null : /* @__PURE__ */ r.jsxs(w, { children: [
27994
+ }) => !e || e.type !== B.Division ? null : /* @__PURE__ */ r.jsxs(_, { children: [
27985
27995
  /* @__PURE__ */ r.jsx(I, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
27986
27996
  /* @__PURE__ */ r.jsx(j, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
27987
27997
  ] })), vz = [{
@@ -28005,7 +28015,7 @@ const gz = k(({
28005
28015
  if (!e || e.type !== B.Tabs)
28006
28016
  return null;
28007
28017
  const t = e.config;
28008
- return /* @__PURE__ */ r.jsxs(w, { children: [
28018
+ return /* @__PURE__ */ r.jsxs(_, { children: [
28009
28019
  /* @__PURE__ */ r.jsx(I, { mt: 8, mb: 0, label: "Tabs settings", labelPosition: "center" }),
28010
28020
  /* @__PURE__ */ r.jsx(L, { label: "Variant", value: t.variant, onChange: t.setVariant, data: vz }),
28011
28021
  /* @__PURE__ */ r.jsx(L, { label: "Orientation", value: t.orientation, onChange: t.setOrientation, data: wz }),
@@ -28066,7 +28076,7 @@ const gz = k(({
28066
28076
  /* @__PURE__ */ r.jsx(W, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: s, sx: {
28067
28077
  flexGrow: 0
28068
28078
  }, children: /* @__PURE__ */ r.jsx(yl, { size: 14 }) }),
28069
- /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
28079
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(_, { children: [
28070
28080
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (p) => l(p.currentTarget.checked) }),
28071
28081
  /* @__PURE__ */ r.jsx(Sz, { value: a.func_content, onChange: u, disabled: !a.enabled }),
28072
28082
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -28084,10 +28094,10 @@ const gz = k(({
28084
28094
  if (!e || e.type !== B.Modal)
28085
28095
  return null;
28086
28096
  const t = e.config, n = t.custom_modal_title.value;
28087
- return /* @__PURE__ */ r.jsxs(w, { children: [
28097
+ return /* @__PURE__ */ r.jsxs(_, { children: [
28088
28098
  /* @__PURE__ */ r.jsx(I, { mt: 8, label: "Modal settings", labelPosition: "center" }),
28089
28099
  /* @__PURE__ */ r.jsxs(Ut, { gap: 10, children: [
28090
- /* @__PURE__ */ r.jsx(D, { label: "Modal Title", value: n, onChange: _.noop, disabled: !0, sx: {
28100
+ /* @__PURE__ */ r.jsx(D, { label: "Modal Title", value: n, onChange: w.noop, disabled: !0, sx: {
28091
28101
  flexGrow: 1
28092
28102
  } }),
28093
28103
  /* @__PURE__ */ r.jsx(Cz, { value: t.custom_modal_title, onChange: t.custom_modal_title.replace })
@@ -28118,7 +28128,7 @@ const gz = k(({
28118
28128
  value: B.Tabs
28119
28129
  }], Iz = k(({
28120
28130
  view: e
28121
- }) => e ? /* @__PURE__ */ r.jsxs(w, { sx: {
28131
+ }) => e ? /* @__PURE__ */ r.jsxs(_, { sx: {
28122
28132
  position: "relative"
28123
28133
  }, children: [
28124
28134
  /* @__PURE__ */ r.jsx(D, { label: "Name", value: e.name, onChange: (t) => {
@@ -28237,7 +28247,7 @@ const gz = k(({
28237
28247
  }) => e ? /* @__PURE__ */ r.jsxs(z, { children: [
28238
28248
  /* @__PURE__ */ r.jsx(I, { mt: 20, mb: 10, variant: "dashed" }),
28239
28249
  /* @__PURE__ */ r.jsx(j, { ta: "left", c: "dimmed", children: "Preview" }),
28240
- /* @__PURE__ */ r.jsxs(w, { children: [
28250
+ /* @__PURE__ */ r.jsxs(_, { children: [
28241
28251
  /* @__PURE__ */ r.jsx(zz, { content: e }),
28242
28252
  /* @__PURE__ */ r.jsx(Mz, { content: e }),
28243
28253
  /* @__PURE__ */ r.jsx(Lz, { content: e }),
@@ -28420,7 +28430,7 @@ function Wz(e, t, n) {
28420
28430
  const s = [];
28421
28431
  return e.filter((i) => "__INTERACTIONS" in i.viz.conf).forEach((i, a) => {
28422
28432
  const o = t[i.id];
28423
- o.data.interactions = _.get(o, "data.interactions", []);
28433
+ o.data.interactions = w.get(o, "data.interactions", []);
28424
28434
  const {
28425
28435
  __INTERACTIONS: l,
28426
28436
  __OPERATIONS: c,
@@ -28493,7 +28503,7 @@ function Qz(e, t, n) {
28493
28503
  }
28494
28504
  const es = 25, Ca = 40, ju = 25, ka = 350, Hz = 150, Uz = 150, vu = 150, Ko = 300, Wr = 40, wu = 25, Kz = 300;
28495
28505
  function Yz(e, t) {
28496
- const n = _.keyBy(t, (i) => i.id), s = [];
28506
+ const n = w.keyBy(t, (i) => i.id), s = [];
28497
28507
  return e.current.forEach((i, a) => {
28498
28508
  i.panelIDs.forEach((o, l) => {
28499
28509
  const c = yu(l, Wr, wu) + Ca, d = n[o];
@@ -28549,7 +28559,7 @@ function Zz(e) {
28549
28559
  return e.current.map((n, s) => {
28550
28560
  const i = Qz(n.panelIDs.length, Wr, wu) + Ca + ju;
28551
28561
  let a = [];
28552
- return n.type === B.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
28562
+ return n.type === B.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
28553
28563
  id: n.id,
28554
28564
  _node_type: "view-root",
28555
28565
  _view_type: n.type,
@@ -28575,7 +28585,7 @@ function Zz(e) {
28575
28585
  });
28576
28586
  }
28577
28587
  function eM(e) {
28578
- const t = _.keyBy(e, (n) => n.id);
28588
+ const t = w.keyBy(e, (n) => n.id);
28579
28589
  e.forEach((n) => {
28580
28590
  n._node_type !== "view-root" || n._view_type !== B.Tabs || n._tab_view_ids.forEach((s) => {
28581
28591
  t[s].parentNode = n.id;
@@ -28626,9 +28636,9 @@ function sM({
28626
28636
  return;
28627
28637
  const a = e[i.source], o = e[i.target];
28628
28638
  if (a && o && a.parentNode) {
28629
- const l = e[a.parentNode], c = l.position.x, d = Number(_.get(o, "style.height", 0)), u = Number(l.style.width);
28639
+ const l = e[a.parentNode], c = l.position.x, d = Number(w.get(o, "style.height", 0)), u = Number(l.style.width);
28630
28640
  o.position.x = c + u + Kz, l._view_level === 0 && o._sub_view_ids.length === 0 && (a.sourcePosition = St.Left, o.targetPosition = St.Right, o.position.x *= -1);
28631
- const p = o.position.x, x = _.get(s, p, 0);
28641
+ const p = o.position.x, x = w.get(s, p, 0);
28632
28642
  o.position.y = x, s[p] = x + d + vu;
28633
28643
  }
28634
28644
  });
@@ -28661,11 +28671,11 @@ function aM({
28661
28671
  };
28662
28672
  }
28663
28673
  function oM(e) {
28664
- const t = tM(e), n = _.keyBy(t, (c) => c.id), {
28674
+ const t = tM(e), n = w.keyBy(t, (c) => c.id), {
28665
28675
  edges: s,
28666
28676
  edgeNodes: i
28667
- } = Gz(e, n), a = [...t, ...i], o = _.keyBy(a, (c) => c.id), l = {
28668
- edges: _.uniqBy(s, (c) => c.id),
28677
+ } = Gz(e, n), a = [...t, ...i], o = w.keyBy(a, (c) => c.id), l = {
28678
+ edges: w.uniqBy(s, (c) => c.id),
28669
28679
  nodes: a,
28670
28680
  nodeMap: o
28671
28681
  };
@@ -28752,7 +28762,7 @@ const dM = {
28752
28762
  edges: t,
28753
28763
  nodes: n
28754
28764
  } = oM(e);
28755
- return /* @__PURE__ */ r.jsxs(Fx, { nodes: n, edges: t, onNodesChange: _.noop, onEdgesChange: _.noop, onConnect: _.noop, className: "interactions-viewer", fitView: !0, nodeTypes: dM, children: [
28765
+ return /* @__PURE__ */ r.jsxs(Fx, { nodes: n, edges: t, onNodesChange: w.noop, onEdgesChange: w.noop, onConnect: w.noop, className: "interactions-viewer", fitView: !0, nodeTypes: dM, children: [
28756
28766
  /* @__PURE__ */ r.jsx(Ox, {}),
28757
28767
  /* @__PURE__ */ r.jsx($x, {}),
28758
28768
  /* @__PURE__ */ r.jsx(Px, {})
@@ -29040,7 +29050,7 @@ const mM = k(() => {
29040
29050
  ] }),
29041
29051
  /* @__PURE__ */ r.jsx(D, { label: "Width", description: "At least 160px", value: n.min_width, onChange: (o) => n.setMinWidth(o.currentTarget.value), placeholder: "default: 200px" }),
29042
29052
  /* @__PURE__ */ r.jsx(I, { label: "Configure options", labelPosition: "center" }),
29043
- /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
29053
+ /* @__PURE__ */ r.jsxs(_, { spacing: 10, sx: {
29044
29054
  position: "relative",
29045
29055
  minHeight: "50px"
29046
29056
  }, children: [
@@ -29108,7 +29118,7 @@ const mM = k(() => {
29108
29118
  ] }),
29109
29119
  /* @__PURE__ */ r.jsx(D, { label: "Width", value: n.width, onChange: (o) => n.setWidth(o.currentTarget.value), placeholder: "200px" }),
29110
29120
  /* @__PURE__ */ r.jsx(I, { label: "Configure options", labelPosition: "center" }),
29111
- /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
29121
+ /* @__PURE__ */ r.jsxs(_, { spacing: 10, sx: {
29112
29122
  position: "relative",
29113
29123
  minHeight: "50px"
29114
29124
  }, children: [
@@ -29252,7 +29262,7 @@ const mM = k(() => {
29252
29262
  maxWidth: "600px"
29253
29263
  }, children: [
29254
29264
  /* @__PURE__ */ r.jsx(j, { pb: "md", color: "gray", children: "Edit" }),
29255
- /* @__PURE__ */ r.jsxs(w, { children: [
29265
+ /* @__PURE__ */ r.jsxs(_, { children: [
29256
29266
  /* @__PURE__ */ r.jsxs(b, { noWrap: !0, children: [
29257
29267
  /* @__PURE__ */ r.jsx(
29258
29268
  U,
@@ -29315,7 +29325,7 @@ const mM = k(() => {
29315
29325
  zIndex: 320
29316
29326
  });
29317
29327
  };
29318
- return /* @__PURE__ */ r.jsxs(w, { sx: {
29328
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
29319
29329
  maxWidth: "1100px",
29320
29330
  height: "100vh"
29321
29331
  }, spacing: "sm", pb: 30, children: [
@@ -29336,7 +29346,7 @@ const mM = k(() => {
29336
29346
  }, l = () => {
29337
29347
  t([]);
29338
29348
  };
29339
- return /* @__PURE__ */ r.jsxs(w, { sx: {
29349
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
29340
29350
  height: "100%"
29341
29351
  }, spacing: "sm", pb: "59px", children: [
29342
29352
  /* @__PURE__ */ r.jsx(z, { pt: 9, pb: 8, sx: {
@@ -29416,7 +29426,7 @@ const mM = k(() => {
29416
29426
  return !1;
29417
29427
  }
29418
29428
  }, [t, e.mock_context.current]);
29419
- return /* @__PURE__ */ r.jsxs(w, { sx: {
29429
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
29420
29430
  border: "1px solid #eee",
29421
29431
  borderLeft: "none",
29422
29432
  borderRight: "none",
@@ -29433,7 +29443,7 @@ const mM = k(() => {
29433
29443
  position: "relative",
29434
29444
  alignItems: "flex-start"
29435
29445
  }, children: [
29436
- /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
29446
+ /* @__PURE__ */ r.jsxs(_, { spacing: 10, sx: {
29437
29447
  maxWidth: "unset !important"
29438
29448
  }, children: [
29439
29449
  /* @__PURE__ */ r.jsx(j, { children: "A valid json string is required" }),
@@ -29465,7 +29475,7 @@ const mM = k(() => {
29465
29475
  } = e;
29466
29476
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29467
29477
  /* @__PURE__ */ r.jsx(I, { mb: -10, label: "Style", labelPosition: "center", variant: "dashed" }),
29468
- /* @__PURE__ */ r.jsxs(w, { spacing: 20, children: [
29478
+ /* @__PURE__ */ r.jsxs(_, { spacing: 20, children: [
29469
29479
  /* @__PURE__ */ r.jsxs(b, { grow: !0, align: "top", children: [
29470
29480
  /* @__PURE__ */ r.jsx(U, { label: "Width", min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "of 36 columns" }), styles: {
29471
29481
  rightSection: {
@@ -29500,7 +29510,7 @@ const mM = k(() => {
29500
29510
  s(t);
29501
29511
  }, [t]);
29502
29512
  const o = !n.trim();
29503
- return /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
29513
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 4, children: [
29504
29514
  /* @__PURE__ */ r.jsxs(b, { align: "center", children: [
29505
29515
  /* @__PURE__ */ r.jsxs(j, { size: 14, fw: 500, children: [
29506
29516
  "Panel Name",
@@ -29514,7 +29524,7 @@ const mM = k(() => {
29514
29524
  const {
29515
29525
  panel: e
29516
29526
  } = It();
29517
- return /* @__PURE__ */ r.jsx(w, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(b, { pl: 6, position: "left", spacing: 20, children: [
29527
+ return /* @__PURE__ */ r.jsx(_, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(b, { pl: 6, position: "left", spacing: 20, children: [
29518
29528
  /* @__PURE__ */ r.jsx(K, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
29519
29529
  userSelect: "none"
29520
29530
  } }),
@@ -29522,7 +29532,7 @@ const mM = k(() => {
29522
29532
  ] }) });
29523
29533
  });
29524
29534
  function VM() {
29525
- return /* @__PURE__ */ r.jsxs(w, { sx: {
29535
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
29526
29536
  height: "100%"
29527
29537
  }, children: [
29528
29538
  /* @__PURE__ */ r.jsx(FM, {}),
@@ -29703,7 +29713,7 @@ const qM = [{
29703
29713
  n && l();
29704
29714
  }, [l, n]);
29705
29715
  const d = !Array.isArray(i) || i.length === 0;
29706
- return /* @__PURE__ */ r.jsxs(w, { spacing: 0, sx: {
29716
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 0, sx: {
29707
29717
  height: "100%",
29708
29718
  border: "1px solid #eee"
29709
29719
  }, children: [
@@ -29734,8 +29744,8 @@ const qM = [{
29734
29744
  t.editor.setPath(["_QUERIES_", l]);
29735
29745
  };
29736
29746
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29737
- /* @__PURE__ */ r.jsx(mh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(K.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(w, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(K, { label: l.label, value: l.value }, l.value)) }) }) }),
29738
- /* @__PURE__ */ r.jsxs(w, { spacing: 6, children: [
29747
+ /* @__PURE__ */ r.jsx(mh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(K.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(_, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(K, { label: l.label, value: l.value }, l.value)) }) }) }),
29748
+ /* @__PURE__ */ r.jsxs(_, { spacing: 6, children: [
29739
29749
  /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(C, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(fp, { size: 16 }), onClick: () => a(!0), children: "Click me to choose queries for this panel" }) }),
29740
29750
  s.queryIDs.length === 1 && /* @__PURE__ */ r.jsx(yi, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(be, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(ii, { size: 16 }) }) }) }),
29741
29751
  s.queryIDs.length > 1 && /* @__PURE__ */ r.jsxs(f, { defaultValue: s.queryIDs[0], children: [
@@ -29753,7 +29763,7 @@ const qM = [{
29753
29763
  flexGrow: 0,
29754
29764
  flexShrink: 0,
29755
29765
  width: "600px"
29756
- }, children: /* @__PURE__ */ r.jsxs(w, { mt: 24, spacing: 5, sx: {
29766
+ }, children: /* @__PURE__ */ r.jsxs(_, { mt: 24, spacing: 5, sx: {
29757
29767
  width: "600px",
29758
29768
  height: "450px",
29759
29769
  background: "transparent",
@@ -29864,7 +29874,7 @@ function XM({
29864
29874
  a((p) => [...p, ""]);
29865
29875
  }, [a]), l = M.useCallback((p) => {
29866
29876
  a((x) => (x.splice(p, 1), [...x]));
29867
- }, [a]), c = M.useMemo(() => !_.isEqual(i, t), [i, t]), d = () => {
29877
+ }, [a]), c = M.useMemo(() => !w.isEqual(i, t), [i, t]), d = () => {
29868
29878
  n(i.map((p) => p.toString()));
29869
29879
  }, u = tl(), h = M.useMemo(() => Object.entries(u.colors).map(([p, x]) => x[6]), [u]);
29870
29880
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -29893,7 +29903,7 @@ function ZM({
29893
29903
  o((h) => [...h, ""]);
29894
29904
  }, [o]), c = M.useCallback((h) => {
29895
29905
  o((p) => (p.splice(h, 1), [...p]));
29896
- }, [o]), d = M.useMemo(() => !_.isEqual(a.map(String), t.map(String)), [a, t]), u = () => {
29906
+ }, [o]), d = M.useMemo(() => !w.isEqual(a.map(String), t.map(String)), [a, t]), u = () => {
29897
29907
  n(a.map((h) => s === "number" ? Number(h) : h.toString()));
29898
29908
  };
29899
29909
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -29917,8 +29927,8 @@ const eL = M.forwardRef(ZM), tL = M.forwardRef(function({
29917
29927
  onChange: n
29918
29928
  }, s) {
29919
29929
  const i = t.color.type, a = (l, c) => {
29920
- const d = _.cloneDeep(t);
29921
- _.set(d, l, c), n(d);
29930
+ const d = w.cloneDeep(t);
29931
+ w.set(d, l, c), n(d);
29922
29932
  }, o = (l) => {
29923
29933
  if (l === "static") {
29924
29934
  n({
@@ -29940,7 +29950,7 @@ const eL = M.forwardRef(ZM), tL = M.forwardRef(function({
29940
29950
  });
29941
29951
  };
29942
29952
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29943
- /* @__PURE__ */ r.jsx(w, { children: /* @__PURE__ */ r.jsx(D, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
29953
+ /* @__PURE__ */ r.jsx(_, { children: /* @__PURE__ */ r.jsx(D, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
29944
29954
  flex: 1
29945
29955
  }, value: t.size, onChange: (l) => a("size", l.currentTarget.value) }) }),
29946
29956
  /* @__PURE__ */ r.jsx(b, { position: "apart", grow: !0, sx: {
@@ -29950,7 +29960,7 @@ const eL = M.forwardRef(ZM), tL = M.forwardRef(function({
29950
29960
  }
29951
29961
  }, children: /* @__PURE__ */ r.jsx(bd, { label: "Font Weight", value: t.weight, onChange: (l) => a("weight", l) }) }),
29952
29962
  /* @__PURE__ */ r.jsx(I, { mt: "lg", mb: 0, variant: "dashed", label: "Style", labelPosition: "center" }),
29953
- /* @__PURE__ */ r.jsxs(w, { children: [
29963
+ /* @__PURE__ */ r.jsxs(_, { children: [
29954
29964
  /* @__PURE__ */ r.jsx(L, { label: "Color Type", data: [{
29955
29965
  label: "Static Color",
29956
29966
  value: "static"
@@ -29972,11 +29982,11 @@ const eL = M.forwardRef(ZM), tL = M.forwardRef(function({
29972
29982
  remove: i
29973
29983
  }, a) {
29974
29984
  const o = (l, c) => {
29975
- const d = _.cloneDeep(t);
29976
- _.set(d, l, c), n(d);
29985
+ const d = w.cloneDeep(t);
29986
+ w.set(d, l, c), n(d);
29977
29987
  };
29978
- return /* @__PURE__ */ r.jsxs(w, { ref: a, children: [
29979
- /* @__PURE__ */ r.jsxs(w, { spacing: "xs", px: "sm", py: "md", sx: {
29988
+ return /* @__PURE__ */ r.jsxs(_, { ref: a, children: [
29989
+ /* @__PURE__ */ r.jsxs(_, { spacing: "xs", px: "sm", py: "md", sx: {
29980
29990
  border: "1px solid #e9ecef"
29981
29991
  }, children: [
29982
29992
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
@@ -29997,7 +30007,7 @@ const eL = M.forwardRef(ZM), tL = M.forwardRef(function({
29997
30007
  ] });
29998
30008
  }), rL = k((e) => {
29999
30009
  const t = kt(() => cI(e.variable), [e.variable]), n = () => e.uiModel.remove(e.variable);
30000
- return /* @__PURE__ */ r.jsxs(w, { "data-testid": "variable-editor", align: "stretch", children: [
30010
+ return /* @__PURE__ */ r.jsxs(_, { "data-testid": "variable-editor", align: "stretch", children: [
30001
30011
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
30002
30012
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", disabled: !t.changed, color: "red", onClick: t.reset, leftIcon: /* @__PURE__ */ r.jsx(cs, { size: 18 }), children: "Revert Changes" }),
30003
30013
  /* @__PURE__ */ r.jsx(C, { variant: "filled", size: "xs", disabled: !t.changed, color: "green", onClick: t.commit, leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 18 }), children: "Save Changes" })
@@ -30009,7 +30019,7 @@ k((e) => {
30009
30019
  const {
30010
30020
  uiModel: t
30011
30021
  } = e;
30012
- return /* @__PURE__ */ r.jsx(w, { className: "var-list", children: t.variables.map((n) => /* @__PURE__ */ r.jsx(C, { variant: t.selected === n ? "filled" : "subtle", color: "gray", onClick: () => t.select(n), children: n.name }, n.name)) });
30022
+ return /* @__PURE__ */ r.jsx(_, { className: "var-list", children: t.variables.map((n) => /* @__PURE__ */ r.jsx(C, { variant: t.selected === n ? "filled" : "subtle", color: "gray", onClick: () => t.select(n), children: n.name }, n.name)) });
30013
30023
  });
30014
30024
  const sL = k(({
30015
30025
  model: e
@@ -30023,7 +30033,7 @@ const sL = k(({
30023
30033
  }, children: "Add a Variable" }) })), iL = k(() => {
30024
30034
  var t;
30025
30035
  const e = YM();
30026
- return e.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(sL, { model: e }) : /* @__PURE__ */ r.jsxs(w, { children: [
30036
+ return e.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(sL, { model: e }) : /* @__PURE__ */ r.jsxs(_, { children: [
30027
30037
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
30028
30038
  /* @__PURE__ */ r.jsx(L, { label: "Variables", data: e.variableOptions, value: (t = e.selected) == null ? void 0 : t.name, onChange: e.selectByName, maxDropdownHeight: 600, sx: {
30029
30039
  flexGrow: 1
@@ -30042,7 +30052,7 @@ const sL = k(({
30042
30052
  const {
30043
30053
  panel: e
30044
30054
  } = It();
30045
- return Object.keys(e.variableStrings).length === 0 ? null : /* @__PURE__ */ r.jsxs(w, { mt: 22, spacing: 4, children: [
30055
+ return Object.keys(e.variableStrings).length === 0 ? null : /* @__PURE__ */ r.jsxs(_, { mt: 22, spacing: 4, children: [
30046
30056
  /* @__PURE__ */ r.jsx(j, { size: "sm", fw: 500, color: "dimmed", children: "Variables" }),
30047
30057
  /* @__PURE__ */ r.jsx(sn, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e.variableStrings, null, 4) })
30048
30058
  ] });
@@ -30057,7 +30067,7 @@ function oL() {
30057
30067
  label: n.displayName ?? n.name,
30058
30068
  group: n.displayGroup ?? ""
30059
30069
  }));
30060
- return _.orderBy(t, [(n) => n.group, (n) => n.label], ["asc", "asc"]);
30070
+ return w.orderBy(t, [(n) => n.group, (n) => n.label], ["asc", "asc"]);
30061
30071
  }, [e]);
30062
30072
  }
30063
30073
  const lL = k(({
@@ -30133,13 +30143,13 @@ const uL = k(() => {
30133
30143
  conf: t.conf,
30134
30144
  setConf: t.setConf
30135
30145
  }) : null, c = o || l;
30136
- return /* @__PURE__ */ r.jsxs(w, { align: "stretch", sx: {
30146
+ return /* @__PURE__ */ r.jsxs(_, { align: "stretch", sx: {
30137
30147
  height: "100%",
30138
30148
  overflow: "hidden"
30139
30149
  }, children: [
30140
30150
  /* @__PURE__ */ r.jsx(lL, { submit: s, value: t.type }),
30141
30151
  /* @__PURE__ */ r.jsxs(Ge, { children: [
30142
- /* @__PURE__ */ r.jsx(w, { pb: 10, sx: {
30152
+ /* @__PURE__ */ r.jsx(_, { pb: 10, sx: {
30143
30153
  flexGrow: 1,
30144
30154
  maxHeight: "100%",
30145
30155
  overflow: "auto"
@@ -30163,7 +30173,7 @@ const uL = k(() => {
30163
30173
  };
30164
30174
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30165
30175
  /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: "blue", onClick: o, leftIcon: /* @__PURE__ */ r.jsx(Sl, { size: 14 }), children: "Move into Another View" }),
30166
- /* @__PURE__ */ r.jsx(ge, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { sx: {
30176
+ /* @__PURE__ */ r.jsx(ge, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ r.jsxs(_, { sx: {
30167
30177
  maxHeight: "calc(100vh - 185px)",
30168
30178
  overflow: "hidden"
30169
30179
  }, children: [
@@ -30171,7 +30181,7 @@ const uL = k(() => {
30171
30181
  flexGrow: 1,
30172
30182
  maxHeight: "calc(100vh - 185px - 30px)",
30173
30183
  overflow: "auto"
30174
- }, children: /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: n.views.options.map((d) => /* @__PURE__ */ r.jsx(Za, { value: d.value, label: d.label }, d.value)) }) }),
30184
+ }, children: /* @__PURE__ */ r.jsx(_, { spacing: "xs", children: n.views.options.map((d) => /* @__PURE__ */ r.jsx(Za, { value: d.value, label: d.label }, d.value)) }) }),
30175
30185
  /* @__PURE__ */ r.jsxs(b, { noWrap: !0, position: "apart", sx: {
30176
30186
  flexGrow: 0,
30177
30187
  flexShrink: 0
@@ -30207,7 +30217,7 @@ const uL = k(() => {
30207
30217
  height: "100%",
30208
30218
  overflow: "auto"
30209
30219
  }, children: e }),
30210
- /* @__PURE__ */ r.jsxs(w, { justify: "flex-start", sx: {
30220
+ /* @__PURE__ */ r.jsxs(_, { justify: "flex-start", sx: {
30211
30221
  alignSelf: "flex-start",
30212
30222
  width: "600px",
30213
30223
  flexGrow: 0,
@@ -30323,7 +30333,7 @@ const mL = k(({
30323
30333
  }, d = () => {
30324
30334
  t([]);
30325
30335
  }, u = s.content.queriesUsage;
30326
- return /* @__PURE__ */ r.jsxs(w, { sx: {
30336
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
30327
30337
  height: "100%"
30328
30338
  }, spacing: "sm", pb: "59px", children: [
30329
30339
  /* @__PURE__ */ r.jsx(z, { pt: 9, pb: 8, sx: {
@@ -30439,7 +30449,7 @@ const mL = k(({
30439
30449
  count: s,
30440
30450
  spacing: i = 16,
30441
30451
  pl: a = 0
30442
- }) => /* @__PURE__ */ r.jsxs(w, { spacing: i, mt: 6, pl: a, children: [
30452
+ }) => /* @__PURE__ */ r.jsxs(_, { spacing: i, mt: 6, pl: a, children: [
30443
30453
  Array.from(new Array(s - 1), (o, l) => /* @__PURE__ */ r.jsx(eo, { width: e, height: n, radius: "xs" }, l)),
30444
30454
  /* @__PURE__ */ r.jsx(eo, { width: t, height: n, radius: "xs" })
30445
30455
  ] }), or = ({
@@ -30622,7 +30632,7 @@ const mL = k(({
30622
30632
  return t.loading || t.empty ? null : e.type === Me.MySQL ? /* @__PURE__ */ r.jsx(wL, { dataSource: e }) : e.type === Me.Postgresql ? /* @__PURE__ */ r.jsx(_L, { dataSource: e }) : null;
30623
30633
  }), CL = k(({
30624
30634
  dataSource: e
30625
- }) => /* @__PURE__ */ r.jsxs(w, { spacing: 40, pt: 10, sx: {
30635
+ }) => /* @__PURE__ */ r.jsxs(_, { spacing: 40, pt: 10, sx: {
30626
30636
  flexGrow: 1,
30627
30637
  overflow: "auto",
30628
30638
  position: "relative"
@@ -30899,7 +30909,7 @@ const TL = k(({
30899
30909
  n(e.name);
30900
30910
  }, [e.name]), /* @__PURE__ */ r.jsx(Sn, { ml: 20, mt: 20, sx: {
30901
30911
  maxWidth: "600px"
30902
- }, children: /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
30912
+ }, children: /* @__PURE__ */ r.jsxs(_, { spacing: 10, sx: {
30903
30913
  width: "100%"
30904
30914
  }, children: [
30905
30915
  /* @__PURE__ */ r.jsx(I, { mb: -10, variant: "dashed", label: "Basics", labelPosition: "center" }),
@@ -30979,7 +30989,7 @@ WHERE
30979
30989
  };
30980
30990
  return t && (l.sql_snippets = i.sqlSnippets.record), JSON.stringify(l, null, 2);
30981
30991
  })();
30982
- return /* @__PURE__ */ r.jsx(w, { sx: {
30992
+ return /* @__PURE__ */ r.jsx(_, { sx: {
30983
30993
  overflow: "hidden",
30984
30994
  ...n
30985
30995
  }, children: /* @__PURE__ */ r.jsxs(f, { defaultValue: "guide", keepMounted: !1, children: [
@@ -30994,7 +31004,7 @@ WHERE
30994
31004
  /* @__PURE__ */ r.jsx(f.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(sn, { language: "json", sx: {
30995
31005
  width: "100%"
30996
31006
  }, noCopy: !0, colorScheme: "dark", children: o }) }),
30997
- /* @__PURE__ */ r.jsx(f.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(w, { spacing: 10, children: [
31007
+ /* @__PURE__ */ r.jsx(f.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(_, { spacing: 10, children: [
30998
31008
  /* @__PURE__ */ r.jsx(rs, { icon: /* @__PURE__ */ r.jsx(io, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
30999
31009
  /* @__PURE__ */ r.jsx(VL, {})
31000
31010
  ] }) })
@@ -31045,7 +31055,7 @@ WHERE
31045
31055
  }, i = (a) => {
31046
31056
  n.setPath(["_VIEWS_", a]);
31047
31057
  };
31048
- return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(We, { highlightOnHover: !0, sx: {
31058
+ return /* @__PURE__ */ r.jsx(_, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(We, { highlightOnHover: !0, sx: {
31049
31059
  tableLayout: "fixed"
31050
31060
  }, children: [
31051
31061
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31058,9 +31068,9 @@ WHERE
31058
31068
  /* @__PURE__ */ r.jsx("th", { children: "In View(s)" })
31059
31069
  ] }) }),
31060
31070
  /* @__PURE__ */ r.jsx("tbody", { children: t.map((a) => /* @__PURE__ */ r.jsxs("tr", { children: [
31061
- /* @__PURE__ */ r.jsx("td", { children: _.capitalize(a.type) }),
31071
+ /* @__PURE__ */ r.jsx("td", { children: w.capitalize(a.type) }),
31062
31072
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(ni, { component: "button", type: "button", onClick: () => s(a), children: a.label }) }),
31063
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsxs(w, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
31073
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsxs(_, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
31064
31074
  a.views.map((o) => /* @__PURE__ */ r.jsx(ni, { component: "button", type: "button", onClick: () => i(o.id), children: /* @__PURE__ */ r.jsx(z, { children: o.label }) }, o.id)),
31065
31075
  a.views.length === 0 && /* @__PURE__ */ r.jsx(z, { children: "--" })
31066
31076
  ] }) })
@@ -31091,7 +31101,7 @@ WHERE
31091
31101
  }, WL = k(({
31092
31102
  queryModel: e
31093
31103
  }) => {
31094
- const t = T(() => _.groupBy(e.dependencies, "type"), [e.dependencies]), n = T(() => e.dependencies.some((i) => !i.valid), [e.dependencies]), s = e.dependencies.length > 0;
31104
+ const t = T(() => w.groupBy(e.dependencies, "type"), [e.dependencies]), n = T(() => e.dependencies.some((i) => !i.valid), [e.dependencies]), s = e.dependencies.length > 0;
31095
31105
  return s ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
31096
31106
  /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: n ? "red" : "green", disabled: !s, leftIcon: n ? /* @__PURE__ */ r.jsx(Cl, { size: 16 }) : /* @__PURE__ */ r.jsx(wp, { size: 16 }), children: "Dependency" }) }),
31097
31107
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(it, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(t).map(([i, a]) => /* @__PURE__ */ r.jsxs(it.Item, { children: [
@@ -31126,7 +31136,7 @@ WHERE
31126
31136
  n(e.sql);
31127
31137
  }, [e.sql]);
31128
31138
  const o = t !== e.sql;
31129
- return /* @__PURE__ */ r.jsxs(w, { spacing: 4, sx: {
31139
+ return /* @__PURE__ */ r.jsxs(_, { spacing: 4, sx: {
31130
31140
  height: "100%"
31131
31141
  }, children: [
31132
31142
  /* @__PURE__ */ r.jsxs(b, { mb: 6, position: "apart", sx: {
@@ -31200,7 +31210,7 @@ WHERE
31200
31210
  queryModel: e
31201
31211
  }) => {
31202
31212
  const t = ce();
31203
- return e.isTransform ? /* @__PURE__ */ r.jsxs(w, { py: 20, px: 20, sx: {
31213
+ return e.isTransform ? /* @__PURE__ */ r.jsxs(_, { py: 20, px: 20, sx: {
31204
31214
  height: "100%"
31205
31215
  }, children: [
31206
31216
  /* @__PURE__ */ r.jsx(j, { size: "md", children: "Step 1: Pick queries for data input" }),
@@ -31234,13 +31244,13 @@ WHERE
31234
31244
  /* @__PURE__ */ r.jsx(f.Tab, { value: "Usage", disabled: o, children: /* @__PURE__ */ r.jsx(be, { label: "This query is not used for any filter or panel", disabled: !o, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: "Usage" }) }) })
31235
31245
  ] }),
31236
31246
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx($L, { queryModel: e }) }),
31237
- e.typedAsSQL && /* @__PURE__ */ r.jsx(f.Panel, { value: "SQL", sx: nr, children: /* @__PURE__ */ r.jsx(w, { sx: {
31247
+ e.typedAsSQL && /* @__PURE__ */ r.jsx(f.Panel, { value: "SQL", sx: nr, children: /* @__PURE__ */ r.jsx(_, { sx: {
31238
31248
  height: "100%"
31239
31249
  }, children: /* @__PURE__ */ r.jsx(KL, { queryModel: e }) }) }),
31240
- e.typedAsHTTP && /* @__PURE__ */ r.jsx(f.Panel, { value: "HTTP", sx: nr, children: /* @__PURE__ */ r.jsx(w, { sx: {
31250
+ e.typedAsHTTP && /* @__PURE__ */ r.jsx(f.Panel, { value: "HTTP", sx: nr, children: /* @__PURE__ */ r.jsx(_, { sx: {
31241
31251
  height: "100%"
31242
31252
  }, children: /* @__PURE__ */ r.jsx(qL, { queryModel: e }) }) }),
31243
- e.isTransform && /* @__PURE__ */ r.jsx(f.Panel, { value: "Transform", sx: nr, children: /* @__PURE__ */ r.jsx(w, { sx: {
31253
+ e.isTransform && /* @__PURE__ */ r.jsx(f.Panel, { value: "Transform", sx: nr, children: /* @__PURE__ */ r.jsx(_, { sx: {
31244
31254
  height: "100%"
31245
31255
  }, children: /* @__PURE__ */ r.jsx(XL, { queryModel: e }) }) }),
31246
31256
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Data", sx: {
@@ -31290,7 +31300,7 @@ WHERE
31290
31300
  zIndex: 320
31291
31301
  });
31292
31302
  };
31293
- return /* @__PURE__ */ r.jsxs(w, { p: 20, sx: {
31303
+ return /* @__PURE__ */ r.jsxs(_, { p: 20, sx: {
31294
31304
  maxWidth: "1100px",
31295
31305
  height: "100vh"
31296
31306
  }, spacing: "sm", children: [
@@ -31382,7 +31392,7 @@ WHERE
31382
31392
  }, d = () => {
31383
31393
  t([]);
31384
31394
  }, u = s.content.sqlSnippetsUsage;
31385
- return /* @__PURE__ */ r.jsxs(w, { sx: {
31395
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
31386
31396
  height: "100%"
31387
31397
  }, spacing: "sm", pb: "59px", children: [
31388
31398
  /* @__PURE__ */ r.jsx(z, { pt: 9, pb: 8, sx: {
@@ -31480,7 +31490,7 @@ WHERE
31480
31490
  zIndex: 320
31481
31491
  });
31482
31492
  };
31483
- return /* @__PURE__ */ r.jsxs(w, { sx: {
31493
+ return /* @__PURE__ */ r.jsxs(_, { sx: {
31484
31494
  maxWidth: "600px",
31485
31495
  height: "100%"
31486
31496
  }, spacing: "sm", children: [
@@ -31522,7 +31532,7 @@ function pA(e) {
31522
31532
  function xA(e) {
31523
31533
  return e.length === 4 && e[0] === "_VIEWS_" && e[2] === "_PANELS_";
31524
31534
  }
31525
- const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31535
+ const mA = k(() => /* @__PURE__ */ r.jsx(_, { sx: {
31526
31536
  height: "100%"
31527
31537
  }, p: "sm", children: /* @__PURE__ */ r.jsx(Tu, {}) })), fA = k(() => {
31528
31538
  const e = le().editor, t = e.path;