@devtable/dashboard 13.10.2 → 13.11.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 uh = Object.defineProperty;
2
2
  var hh = (t, e, n) => e in t ? uh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var N = (t, e, n) => (hh(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import L, { forwardRef as ne, useState as Q, useEffect as B, useCallback as Ne, useMemo as C, createElement as us, useContext as Kt, useRef as hs, createContext as sl, memo as mh } from "react";
5
- import { TextInput as D, Text as w, Box as M, Button as I, HoverCard as Ie, Group as b, Select as F, Stack as k, Overlay as Xn, Modal as we, Checkbox as ee, Divider as A, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as Z, MultiSelect as Wn, Paper as ph, Code as to, Tabs as _, LoadingOverlay as In, Alert as ms, ColorSwatch as li, createStyles as _r, Popover as Nn, Tooltip as xe, Center as an, Collapse as vr, useMantineTheme as il, CheckIcon as xh, MANTINE_SIZES as gh, SimpleGrid as vn, NativeSelect as al, SegmentedControl as fh, Anchor as Xr, Menu as Y, UnstyledButton as ol, Badge as rn, ColorInput as Gn, CloseButton as ps, Textarea as ll, Mark as bh, Slider as yh, Flex as Jt, Affix as _h, Header as vh, List as ct, FileInput as jh, ThemeIcon as Hs, Navbar as Bt, JsonInput as cl, Pagination as dl, Drawer as wh, Accordion as Pr, Radio as no, Skeleton as ro, NavLink as ci, AppShell as ul } from "@mantine/core";
5
+ import { TextInput as D, Text as w, Box as M, Button as I, HoverCard as Te, Group as b, Select as F, Stack as k, Overlay as Xn, Modal as Se, Checkbox as ee, Divider as A, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as Z, MultiSelect as Wn, Paper as ph, Code as to, Tabs as _, LoadingOverlay as In, Alert as ms, ColorSwatch as li, createStyles as _r, Popover as Nn, Tooltip as xe, Center as an, Collapse as vr, useMantineTheme as il, CheckIcon as xh, MANTINE_SIZES as gh, SimpleGrid as vn, NativeSelect as al, SegmentedControl as fh, Anchor as Xr, Menu as Y, UnstyledButton as ol, Badge as rn, ColorInput as Gn, CloseButton as ps, Textarea as ll, Mark as bh, Slider as yh, Flex as Jt, Affix as _h, Header as vh, List as ct, FileInput as jh, ThemeIcon as Hs, Navbar as Bt, JsonInput as cl, Pagination as dl, Drawer as wh, Accordion as Pr, Radio as no, Skeleton as ro, NavLink as ci, AppShell as ul } from "@mantine/core";
6
6
  import { useModals as Rt, ModalsProvider as hl } from "@mantine/modals";
7
7
  import { useBoolean as st, useCreation as wt, useAsyncEffect as jr, useRequest as Sn, useLatest as so, usePrevious as Sh, useWhyDidYouUpdate as ml } from "ahooks";
8
8
  import { toJS as Xt, observable as pl, runInAction as dr, reaction as tt, makeAutoObservable as wr } from "mobx";
@@ -13,7 +13,7 @@ import zh from "crypto-js";
13
13
  import * as Ih from "d3-array";
14
14
  import { quantile as Wr } from "d3-array";
15
15
  import P from "dayjs";
16
- import S, { cloneDeepWith as xl, unset as Th, get as se, isObject as gl, set as Ci, omit as kn, isFunction as Dh, orderBy as Mh, last as fl, defaults as je, minBy as Lh, maxBy as Eh, cloneDeep as Be, values as bl, template as zi, throttle as Rh, range as Ah, isEqual as pe, defaultsDeep as Se, keyBy as $h, isEmpty as yl, isNumber as Ph, findLastIndex as Oh, isString as _l, pick as vl } from "lodash";
16
+ import S, { cloneDeepWith as xl, unset as Th, get as se, isObject as gl, set as Ci, omit as kn, isFunction as Dh, orderBy as Mh, last as fl, defaults as we, minBy as Lh, maxBy as Eh, cloneDeep as Be, values as bl, template as zi, throttle as Rh, range as Ah, isEqual as pe, defaultsDeep as ke, keyBy as $h, isEmpty as yl, isNumber as Ph, findLastIndex as Oh, isString as _l, pick as vl } from "lodash";
17
17
  import * as Bn from "mathjs";
18
18
  import Zr from "numbro";
19
19
  import Gt from "axios";
@@ -29,7 +29,7 @@ import io from "eventemitter2";
29
29
  import xr, { random as xs } from "chroma-js";
30
30
  import Ze from "echarts-for-react/lib/core";
31
31
  import "echarts-gl";
32
- import { useForm as be, Controller as g, useFieldArray as gs, useWatch as cm } from "react-hook-form";
32
+ import { useForm as ye, Controller as g, useFieldArray as gs, useWatch as cm } from "react-hook-form";
33
33
  import { DatesProvider as dm, DatePicker as um } from "@mantine/dates";
34
34
  import { useTranslation as y, Trans as Ii, initReactI18next as hm, I18nextProvider as mm } from "react-i18next";
35
35
  import { DeviceFloppy as Ut, Recycle as Dn, Trash as At, AlertCircle as pm, InfoCircle as Zt, Plus as wl, Refresh as Ti, Download as Di, ArrowsMaximize as Sl, Settings as kl, Copy as xm, ArrowLeft as gm, ArrowsMove as fm, ChevronDownRight as bm, ChevronsUpRight as ym, PlaylistAdd as fs, ArrowBarToRight as _m } from "tabler-icons-react";
@@ -62,7 +62,7 @@ import { useVirtual as bp } from "react-virtual";
62
62
  import yp, { Option as _p } from "rc-select";
63
63
  import vp, { SHOW_PARENT as jp } from "rc-tree-select";
64
64
  import { WidthProvider as Xl, Responsive as Zl } from "react-grid-layout";
65
- import { types as x, cast as Mt, getRoot as Ge, getParent as Le, addDisposer as gt, isAlive as uo, flow as Vn, toGenerator as gn, clone as wp, getSnapshot as Dt, applySnapshot as Qe, addMiddleware as Sp, getType as kp, detach as ui, castToSnapshot as ec } from "mobx-state-tree";
65
+ import { types as x, cast as Mt, getRoot as Ge, getParent as Ee, addDisposer as gt, isAlive as uo, flow as Vn, toGenerator as gn, clone as wp, getSnapshot as Dt, applySnapshot as Qe, addMiddleware as Sp, getType as kp, detach as ui, castToSnapshot as ec } from "mobx-state-tree";
66
66
  import { arrayToTree as Cp } from "performant-array-to-tree";
67
67
  import { saveAs as _s } from "file-saver";
68
68
  import tc from "dom-to-image-more";
@@ -171,16 +171,16 @@ function px() {
171
171
  fe.unshift("Warning: " + R), Function.prototype.apply.call(console[j], console, fe);
172
172
  }
173
173
  }
174
- var K = !1, ae = !1, J = !1, X = !1, ve = !1, ye;
175
- ye = Symbol.for("react.module.reference");
174
+ var K = !1, ae = !1, J = !1, X = !1, je = !1, _e;
175
+ _e = Symbol.for("react.module.reference");
176
176
  function Vt(j) {
177
- return !!(typeof j == "string" || typeof j == "function" || j === s || j === a || ve || j === i || j === d || j === u || X || j === p || K || ae || J || typeof j == "object" && j !== null && (j.$$typeof === m || j.$$typeof === h || j.$$typeof === o || j.$$typeof === l || j.$$typeof === c || // This needs to include all possible module reference object
177
+ return !!(typeof j == "string" || typeof j == "function" || j === s || j === a || je || j === i || j === d || j === u || X || j === p || K || ae || J || typeof j == "object" && j !== null && (j.$$typeof === m || j.$$typeof === h || j.$$typeof === o || j.$$typeof === l || j.$$typeof === c || // This needs to include all possible module reference object
178
178
  // types supported by any Flight configuration anywhere since
179
179
  // we don't know which Flight build this will end up being used
180
180
  // with.
181
- j.$$typeof === ye || j.getModuleId !== void 0));
181
+ j.$$typeof === _e || j.getModuleId !== void 0));
182
182
  }
183
- function Ee(j, R, q) {
183
+ function Re(j, R, q) {
184
184
  var U = j.displayName;
185
185
  if (U)
186
186
  return U;
@@ -220,7 +220,7 @@ function px() {
220
220
  var q = j;
221
221
  return Mr(q._context) + ".Provider";
222
222
  case c:
223
- return Ee(j, j.render, "ForwardRef");
223
+ return Re(j, j.render, "ForwardRef");
224
224
  case h:
225
225
  var U = j.displayName || null;
226
226
  return U !== null ? U : ot(j.type) || "Memo";
@@ -366,18 +366,18 @@ function px() {
366
366
  if (qt && U && typeof qt.stack == "string") {
367
367
  for (var re = qt.stack.split(`
368
368
  `), Je = U.stack.split(`
369
- `), ze = re.length - 1, Te = Je.length - 1; ze >= 1 && Te >= 0 && re[ze] !== Je[Te]; )
370
- Te--;
371
- for (; ze >= 1 && Te >= 0; ze--, Te--)
372
- if (re[ze] !== Je[Te]) {
373
- if (ze !== 1 || Te !== 1)
369
+ `), Ie = re.length - 1, De = Je.length - 1; Ie >= 1 && De >= 0 && re[Ie] !== Je[De]; )
370
+ De--;
371
+ for (; Ie >= 1 && De >= 0; Ie--, De--)
372
+ if (re[Ie] !== Je[De]) {
373
+ if (Ie !== 1 || De !== 1)
374
374
  do
375
- if (ze--, Te--, Te < 0 || re[ze] !== Je[Te]) {
375
+ if (Ie--, De--, De < 0 || re[Ie] !== Je[De]) {
376
376
  var pt = `
377
- ` + re[ze].replace(" at new ", " at ");
377
+ ` + re[Ie].replace(" at new ", " at ");
378
378
  return j.displayName && pt.includes("<anonymous>") && (pt = pt.replace("<anonymous>", j.displayName)), typeof j == "function" && Er.set(j, pt), pt;
379
379
  }
380
- while (ze >= 1 && Te >= 0);
380
+ while (Ie >= 1 && De >= 0);
381
381
  break;
382
382
  }
383
383
  }
@@ -443,8 +443,8 @@ function px() {
443
443
  throw Je.name = "Invariant Violation", Je;
444
444
  }
445
445
  re = j[ce](R, ce, U, q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
446
- } catch (ze) {
447
- re = ze;
446
+ } catch (Ie) {
447
+ re = Ie;
448
448
  }
449
449
  re && !(re instanceof Error) && ($r(de), $("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", U || "React class", q, ce, typeof re), $r(null)), re instanceof Error && !(re.message in Na) && (Na[re.message] = !0, $r(de), $("Failed %s type: %s", q, re.message), $r(null));
450
450
  }
@@ -561,13 +561,13 @@ function px() {
561
561
  for (fe in R)
562
562
  Ar.call(R, fe) && !Yu.hasOwnProperty(fe) && (ce[fe] = R[fe]);
563
563
  if (j && j.defaultProps) {
564
- var ze = j.defaultProps;
565
- for (fe in ze)
566
- ce[fe] === void 0 && (ce[fe] = ze[fe]);
564
+ var Ie = j.defaultProps;
565
+ for (fe in Ie)
566
+ ce[fe] === void 0 && (ce[fe] = Ie[fe]);
567
567
  }
568
568
  if (re || Je) {
569
- var Te = typeof j == "function" ? j.displayName || j.name || "Unknown" : j;
570
- re && Zu(ce, Te), Je && eh(ce, Te);
569
+ var De = typeof j == "function" ? j.displayName || j.name || "Unknown" : j;
570
+ re && Zu(ce, De), Je && eh(ce, De);
571
571
  }
572
572
  return th(j, re, Je, de, U, ir.current, ce);
573
573
  }
@@ -698,12 +698,12 @@ Check the top-level render call using <` + q + ">.");
698
698
  (j === void 0 || typeof j == "object" && j !== null && Object.keys(j).length === 0) && (re += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
699
699
  var Je = rh(de);
700
700
  Je ? re += Je : re += Ya();
701
- var ze;
702
- j === null ? ze = "null" : Ns(j) ? ze = "array" : j !== void 0 && j.$$typeof === e ? (ze = "<" + (ot(j.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof j, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, re);
701
+ var Ie;
702
+ j === null ? Ie = "null" : Ns(j) ? Ie = "array" : j !== void 0 && j.$$typeof === e ? (Ie = "<" + (ot(j.type) || "Unknown") + " />", re = " Did you accidentally export a JSX literal instead of a component?") : Ie = typeof j, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ie, re);
703
703
  }
704
- var Te = nh(j, R, q, de, fe);
705
- if (Te == null)
706
- return Te;
704
+ var De = nh(j, R, q, de, fe);
705
+ if (De == null)
706
+ return De;
707
707
  if (ce) {
708
708
  var pt = R.children;
709
709
  if (pt !== void 0)
@@ -717,7 +717,7 @@ Check the top-level render call using <` + q + ">.");
717
717
  else
718
718
  Xa(pt, j);
719
719
  }
720
- return j === s ? ah(Te) : ih(Te), Te;
720
+ return j === s ? ah(De) : ih(De), De;
721
721
  }
722
722
  }
723
723
  function oh(j, R, q) {
@@ -912,7 +912,7 @@ class jx {
912
912
  };
913
913
  }
914
914
  }
915
- class z2 {
915
+ class I2 {
916
916
  constructor(e) {
917
917
  this.implementation = e;
918
918
  }
@@ -1731,7 +1731,7 @@ class Oi {
1731
1731
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1732
1732
  }
1733
1733
  }
1734
- const uc = "13.10.2", og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1734
+ const uc = "13.11.1", og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1735
1735
  __proto__: null,
1736
1736
  version: uc
1737
1737
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1821,7 +1821,7 @@ class dg {
1821
1821
  return a.reduce((l, c) => c.handler(l, s), n);
1822
1822
  }
1823
1823
  }
1824
- class ke extends dg {
1824
+ class Ce extends dg {
1825
1825
  constructor() {
1826
1826
  super(), this.configVersions();
1827
1827
  }
@@ -1916,7 +1916,7 @@ function ug({
1916
1916
  xAxis3D: c,
1917
1917
  yAxis3D: d,
1918
1918
  zAxis3D: u
1919
- } = je({}, e, Fi), h = C(() => vs(n, a), [n, a]), {
1919
+ } = we({}, e, Fi), h = C(() => vs(n, a), [n, a]), {
1920
1920
  x: m,
1921
1921
  y: p,
1922
1922
  z: f
@@ -2051,9 +2051,9 @@ const G = z(ne(({
2051
2051
  } = bt(), h = L.useMemo(() => u.dataFieldOptions(s, o, a), [s, o, a]);
2052
2052
  if (h.length === 0) {
2053
2053
  const m = u.explainDataKey(s);
2054
- return /* @__PURE__ */ r.jsxs(Ie, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
2055
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(D, { label: t, required: e, defaultValue: m.columnKey, readOnly: !0, disabled: !0 }) }) }),
2056
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
2054
+ return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
2055
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(D, { label: t, required: e, defaultValue: m.columnKey, readOnly: !0, disabled: !0 }) }) }),
2056
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
2057
2057
  /* @__PURE__ */ r.jsx(w, { size: "xs", color: m.queryName ? "black" : "red", sx: {
2058
2058
  fontFamily: "monospace"
2059
2059
  }, children: m.queryName ?? m.queryID }),
@@ -2074,11 +2074,11 @@ function bg({
2074
2074
  const {
2075
2075
  value: e,
2076
2076
  set: n
2077
- } = H(t.instanceData, "config"), s = je({}, e, Fi), {
2077
+ } = H(t.instanceData, "config"), s = we({}, e, Fi), {
2078
2078
  control: i,
2079
2079
  handleSubmit: a,
2080
2080
  reset: o
2081
- } = be({
2081
+ } = ye({
2082
2082
  defaultValues: s
2083
2083
  });
2084
2084
  return B(() => {
@@ -2172,7 +2172,7 @@ function jg(t, {
2172
2172
  throw console.error("[Migration failed]", n), n;
2173
2173
  }
2174
2174
  }
2175
- class wg extends ke {
2175
+ class wg extends Ce {
2176
2176
  constructor() {
2177
2177
  super(...arguments);
2178
2178
  N(this, "VERSION", 2);
@@ -2291,7 +2291,7 @@ const zt = ne(({
2291
2291
  /* @__PURE__ */ r.jsx(I, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: o, sx: {
2292
2292
  flexGrow: 0
2293
2293
  }, children: v }),
2294
- /* @__PURE__ */ r.jsx(we, { size: 800, title: v, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
2294
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: v, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
2295
2295
  /* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
2296
2296
  /* @__PURE__ */ r.jsx(kg, { value: c.func_content, onChange: p, disabled: !c.enabled }),
2297
2297
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -2583,11 +2583,11 @@ function Mg(t, e) {
2583
2583
  const {
2584
2584
  value: n,
2585
2585
  set: s
2586
- } = H(t.operation.operationData, "config"), [i, a] = Q(je({}, n, e)), o = async () => {
2586
+ } = H(t.operation.operationData, "config"), [i, a] = Q(we({}, n, e)), o = async () => {
2587
2587
  await s(i);
2588
2588
  };
2589
2589
  return B(() => {
2590
- a(je({}, n, e));
2590
+ a(we({}, n, e));
2591
2591
  }, [n]), {
2592
2592
  config: i,
2593
2593
  setConfig: a,
@@ -2636,7 +2636,7 @@ async function Eg(t, e) {
2636
2636
  }
2637
2637
  }));
2638
2638
  }
2639
- class Rg extends ke {
2639
+ class Rg extends Ce {
2640
2640
  constructor() {
2641
2641
  super(...arguments);
2642
2642
  N(this, "VERSION", 1);
@@ -3146,7 +3146,7 @@ const rf = z(({
3146
3146
  await d.configOperation(o, c);
3147
3147
  }, [o, d]), nf(d) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3148
3148
  /* @__PURE__ */ r.jsx(rf, { model: d, onClick: s }),
3149
- /* @__PURE__ */ r.jsx(we, { size: 600, opened: n, onClose: i, title: e("interactions.operation.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { children: [
3149
+ /* @__PURE__ */ r.jsx(Se, { size: 600, opened: n, onClose: i, title: e("interactions.operation.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { children: [
3150
3150
  /* @__PURE__ */ r.jsx(af, { model: d }),
3151
3151
  /* @__PURE__ */ r.jsxs(_, { defaultValue: "settings", children: [
3152
3152
  /* @__PURE__ */ r.jsxs(_.List, { children: [
@@ -3230,7 +3230,7 @@ const uf = z(({
3230
3230
  setFalse: i
3231
3231
  }] = st(!1), a = t.model;
3232
3232
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3233
- /* @__PURE__ */ r.jsx(we, { opened: n, onClose: i, title: e("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { children: [
3233
+ /* @__PURE__ */ r.jsx(Se, { opened: n, onClose: i, title: e("interactions.trigger.setup"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { children: [
3234
3234
  /* @__PURE__ */ r.jsx(hf, { model: a }),
3235
3235
  /* @__PURE__ */ r.jsx(mf, { model: a }),
3236
3236
  /* @__PURE__ */ r.jsx(zc, { title: e("interactions.trigger.payload"), variables: a.triggerSchema.payload })
@@ -3919,7 +3919,7 @@ function Hf({
3919
3919
  } = t, a = t.data, {
3920
3920
  width: o,
3921
3921
  height: l
3922
- } = t.viewport, c = je({}, s, qi), d = mt({
3922
+ } = t.viewport, c = we({}, s, qi), d = mt({
3923
3923
  vizManager: t.vizManager,
3924
3924
  instance: e
3925
3925
  }), u = ht(d.triggerManager, Cc.id), h = En(a, c.x_axis.data_key), m = Ne((v) => {
@@ -4208,7 +4208,7 @@ const Xf = z(({
4208
4208
  };
4209
4209
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4210
4210
  /* @__PURE__ */ r.jsx(I, { variant: "outline", onClick: h, children: e(d == null ? void 0 : d.displayName) }),
4211
- /* @__PURE__ */ r.jsx(we, { size: 508, title: e("style.color.interpolation.setup"), opened: u, onClose: m, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(k, { "data-testid": "color-interpolation-modal", children: [
4211
+ /* @__PURE__ */ r.jsx(Se, { size: 508, title: e("style.color.interpolation.setup"), opened: u, onClose: m, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(k, { "data-testid": "color-interpolation-modal", children: [
4212
4212
  /* @__PURE__ */ r.jsx(F, { label: e("style.color.interpolation.palette.label"), value: l.interpolation, data: p, onChange: f, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
4213
4213
  /* @__PURE__ */ r.jsx(Zf, { steps: l.steps, interpolation: d, onChange: T }),
4214
4214
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -4297,7 +4297,7 @@ const Xf = z(({
4297
4297
  panel: {
4298
4298
  padding: "0px"
4299
4299
  }
4300
- }, Ce = ({
4300
+ }, ze = ({
4301
4301
  control: t,
4302
4302
  watch: e,
4303
4303
  name: n,
@@ -4472,7 +4472,7 @@ function ob({
4472
4472
  const d = l.name.trim();
4473
4473
  return d || c + 1;
4474
4474
  };
4475
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: o, children: ({
4475
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: o, children: ({
4476
4476
  field: l,
4477
4477
  index: c
4478
4478
  }) => /* @__PURE__ */ r.jsx(ab, { control: t, index: c, variableOptions: a }) });
@@ -4518,7 +4518,7 @@ const lb = ({
4518
4518
  /* @__PURE__ */ r.jsx(Zt, { size: 14, color: "#888" }),
4519
4519
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
4520
4520
  ] }),
4521
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
4521
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
4522
4522
  field: a,
4523
4523
  index: o
4524
4524
  }) => /* @__PURE__ */ r.jsx(lb, { control: t, index: o }) })
@@ -4724,13 +4724,13 @@ function gb({
4724
4724
  set: s
4725
4725
  } = H(t.instanceData, "config"), {
4726
4726
  variables: i
4727
- } = t, a = C(() => je({}, n, qi), [n]), {
4727
+ } = t, a = C(() => we({}, n, qi), [n]), {
4728
4728
  control: o,
4729
4729
  handleSubmit: l,
4730
4730
  watch: c,
4731
4731
  getValues: d,
4732
4732
  reset: u
4733
- } = be({
4733
+ } = ye({
4734
4734
  defaultValues: a
4735
4735
  });
4736
4736
  B(() => {
@@ -4912,7 +4912,7 @@ function kb(t) {
4912
4912
  dataZoom: e ?? kc()
4913
4913
  };
4914
4914
  }
4915
- class Cb extends ke {
4915
+ class Cb extends Ce {
4916
4916
  constructor() {
4917
4917
  super(...arguments);
4918
4918
  N(this, "VERSION", 9);
@@ -5065,7 +5065,7 @@ const Gi = {
5065
5065
  instance: e
5066
5066
  }), s = ht(n.triggerManager, Rc.id), i = Fe(), {
5067
5067
  value: a
5068
- } = H(t.instanceData, "config"), o = C(() => Se({}, a, Gi), [a]), {
5068
+ } = H(t.instanceData, "config"), o = C(() => ke({}, a, Gi), [a]), {
5069
5069
  content: l,
5070
5070
  horizontal_align: c,
5071
5071
  vertical_align: d,
@@ -5144,7 +5144,7 @@ function Ab({
5144
5144
  const {
5145
5145
  value: e,
5146
5146
  set: n
5147
- } = H(t.instanceData, "config"), s = C(() => Se({}, e, Gi), [e]), i = s;
5147
+ } = H(t.instanceData, "config"), s = C(() => ke({}, e, Gi), [e]), i = s;
5148
5148
  B(() => {
5149
5149
  !pe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
5150
5150
  }, [s, i]);
@@ -5154,7 +5154,7 @@ function Ab({
5154
5154
  watch: l,
5155
5155
  getValues: c,
5156
5156
  reset: d
5157
- } = be({
5157
+ } = ye({
5158
5158
  defaultValues: i
5159
5159
  });
5160
5160
  B(() => {
@@ -5223,7 +5223,7 @@ const $b = {
5223
5223
  lang: "zh",
5224
5224
  resources: Pb
5225
5225
  }];
5226
- class Fb extends ke {
5226
+ class Fb extends Ce {
5227
5227
  constructor() {
5228
5228
  super(...arguments);
5229
5229
  N(this, "VERSION", 2);
@@ -5859,7 +5859,7 @@ function py(t, e, n) {
5859
5859
  legend: Qb(o),
5860
5860
  dataZoom: Cs(t.dataZoom)
5861
5861
  };
5862
- return Se({}, c, my);
5862
+ return ke({}, c, my);
5863
5863
  }
5864
5864
  function bo(t) {
5865
5865
  const e = t.getModel(), n = e.getSeries().map((s) => {
@@ -5917,7 +5917,7 @@ function gy({
5917
5917
  value: s
5918
5918
  } = H(t.instanceData, "config"), {
5919
5919
  variables: i
5920
- } = t, a = C(() => je({}, s, Hi), [s]), o = t.data, {
5920
+ } = t, a = C(() => we({}, s, Hi), [s]), o = t.data, {
5921
5921
  width: l,
5922
5922
  height: c
5923
5923
  } = t.viewport, {
@@ -6039,7 +6039,7 @@ function by({
6039
6039
  label: l.name,
6040
6040
  value: l.name
6041
6041
  })), [n]);
6042
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "reference_areas", getItem: i, addButtonText: s("chart.reference_area.add"), deleteButtonText: s("chart.reference_area.delete"), renderTabName: a, children: ({
6042
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "reference_areas", getItem: i, addButtonText: s("chart.reference_area.add"), deleteButtonText: s("chart.reference_area.delete"), renderTabName: a, children: ({
6043
6043
  field: l,
6044
6044
  index: c
6045
6045
  }) => /* @__PURE__ */ r.jsx(fy, { control: t, index: c, variableOptions: o }) });
@@ -6182,7 +6182,7 @@ function _y({
6182
6182
  label: d,
6183
6183
  value: u.toString()
6184
6184
  })), [l]);
6185
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: a, children: ({
6185
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: a, children: ({
6186
6186
  field: d,
6187
6187
  index: u
6188
6188
  }) => /* @__PURE__ */ r.jsx(yy, { control: t, index: u, watch: e, variableOptions: o, yAxisOptions: c }) });
@@ -6324,7 +6324,7 @@ function jy({
6324
6324
  const d = l.name.trim();
6325
6325
  return d || c + 1;
6326
6326
  };
6327
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "regressions", getItem: a, addButtonText: n("chart.regression_line.add"), deleteButtonText: n("chart.regression_line.delete"), renderTabName: o, children: ({
6327
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "regressions", getItem: a, addButtonText: n("chart.regression_line.add"), deleteButtonText: n("chart.regression_line.delete"), renderTabName: o, children: ({
6328
6328
  field: l,
6329
6329
  index: c
6330
6330
  }) => /* @__PURE__ */ r.jsx(vy, { regressionItem: l, control: t, index: c, yAxisOptions: i }) });
@@ -6386,7 +6386,7 @@ const wy = ({
6386
6386
  }, children: /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
6387
6387
  flexGrow: 0
6388
6388
  }, leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
6389
- /* @__PURE__ */ r.jsx(we, { size: 800, title: n("chart.symbol_size.setup.title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
6389
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("chart.symbol_size.setup.title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
6390
6390
  /* @__PURE__ */ r.jsx(A, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
6391
6391
  /* @__PURE__ */ r.jsx(wy, { value: o.func_content, onChange: u }),
6392
6392
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -8173,7 +8173,7 @@ yr.prototype = Object.create(Error.prototype);
8173
8173
  yr.prototype.constructor = yr;
8174
8174
  yr.prototype.name = "TransformError";
8175
8175
  const Zs = /* @__PURE__ */ Object.create(null);
8176
- class _e {
8176
+ class ve {
8177
8177
  /**
8178
8178
  Initialize a selection with the head and anchor and ranges. If no
8179
8179
  ranges are given, constructs a single range across `$anchor` and
@@ -8337,7 +8337,7 @@ class _e {
8337
8337
  return $e.between(this.$anchor, this.$head).getBookmark();
8338
8338
  }
8339
8339
  }
8340
- _e.prototype.visible = !0;
8340
+ ve.prototype.visible = !0;
8341
8341
  class Fy {
8342
8342
  /**
8343
8343
  Create a range.
@@ -8350,7 +8350,7 @@ let ko = !1;
8350
8350
  function Co(t) {
8351
8351
  !ko && !t.parent.inlineContent && (ko = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
8352
8352
  }
8353
- class $e extends _e {
8353
+ class $e extends ve {
8354
8354
  /**
8355
8355
  Construct a text selection between the given points.
8356
8356
  */
@@ -8367,7 +8367,7 @@ class $e extends _e {
8367
8367
  map(e, n) {
8368
8368
  let s = e.resolve(n.map(this.head));
8369
8369
  if (!s.parent.inlineContent)
8370
- return _e.near(s);
8370
+ return ve.near(s);
8371
8371
  let i = e.resolve(n.map(this.anchor));
8372
8372
  return new $e(i.parent.inlineContent ? i : s, s);
8373
8373
  }
@@ -8412,16 +8412,16 @@ class $e extends _e {
8412
8412
  static between(e, n, s) {
8413
8413
  let i = e.pos - n.pos;
8414
8414
  if ((!s || i) && (s = i >= 0 ? 1 : -1), !n.parent.inlineContent) {
8415
- let a = _e.findFrom(n, s, !0) || _e.findFrom(n, -s, !0);
8415
+ let a = ve.findFrom(n, s, !0) || ve.findFrom(n, -s, !0);
8416
8416
  if (a)
8417
8417
  n = a.$head;
8418
8418
  else
8419
- return _e.near(n, s);
8419
+ return ve.near(n, s);
8420
8420
  }
8421
- return e.parent.inlineContent || (i == 0 ? e = n : (e = (_e.findFrom(e, -s, !0) || _e.findFrom(e, s, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new $e(e, n);
8421
+ return e.parent.inlineContent || (i == 0 ? e = n : (e = (ve.findFrom(e, -s, !0) || ve.findFrom(e, s, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new $e(e, n);
8422
8422
  }
8423
8423
  }
8424
- _e.jsonID("text", $e);
8424
+ ve.jsonID("text", $e);
8425
8425
  class Ds {
8426
8426
  constructor(e, n) {
8427
8427
  this.anchor = e, this.head = n;
@@ -8433,7 +8433,7 @@ class Ds {
8433
8433
  return $e.between(e.resolve(this.anchor), e.resolve(this.head));
8434
8434
  }
8435
8435
  }
8436
- class dt extends _e {
8436
+ class dt extends ve {
8437
8437
  /**
8438
8438
  Create a node selection. Does not verify the validity of its
8439
8439
  argument.
@@ -8444,7 +8444,7 @@ class dt extends _e {
8444
8444
  }
8445
8445
  map(e, n) {
8446
8446
  let { deleted: s, pos: i } = n.mapResult(this.anchor), a = e.resolve(i);
8447
- return s ? _e.near(a) : new dt(a);
8447
+ return s ? ve.near(a) : new dt(a);
8448
8448
  }
8449
8449
  content() {
8450
8450
  return new ge(ue.from(this.node), 0, 0);
@@ -8481,7 +8481,7 @@ class dt extends _e {
8481
8481
  }
8482
8482
  }
8483
8483
  dt.prototype.visible = !1;
8484
- _e.jsonID("node", dt);
8484
+ ve.jsonID("node", dt);
8485
8485
  class Zi {
8486
8486
  constructor(e) {
8487
8487
  this.anchor = e;
@@ -8492,10 +8492,10 @@ class Zi {
8492
8492
  }
8493
8493
  resolve(e) {
8494
8494
  let n = e.resolve(this.anchor), s = n.nodeAfter;
8495
- return s && dt.isSelectable(s) ? new dt(n) : _e.near(n);
8495
+ return s && dt.isSelectable(s) ? new dt(n) : ve.near(n);
8496
8496
  }
8497
8497
  }
8498
- class Ht extends _e {
8498
+ class Ht extends ve {
8499
8499
  /**
8500
8500
  Create an all-selection over the given document.
8501
8501
  */
@@ -8505,7 +8505,7 @@ class Ht extends _e {
8505
8505
  replace(e, n = ge.empty) {
8506
8506
  if (n == ge.empty) {
8507
8507
  e.delete(0, e.doc.content.size);
8508
- let s = _e.atStart(e.doc);
8508
+ let s = ve.atStart(e.doc);
8509
8509
  s.eq(e.selection) || e.setSelection(s);
8510
8510
  } else
8511
8511
  super.replace(e, n);
@@ -8529,7 +8529,7 @@ class Ht extends _e {
8529
8529
  return Vy;
8530
8530
  }
8531
8531
  }
8532
- _e.jsonID("all", Ht);
8532
+ ve.jsonID("all", Ht);
8533
8533
  const Vy = {
8534
8534
  map() {
8535
8535
  return this;
@@ -8565,7 +8565,7 @@ function zo(t, e, n) {
8565
8565
  let a = t.mapping.maps[s], o;
8566
8566
  a.forEach((l, c, d, u) => {
8567
8567
  o == null && (o = u);
8568
- }), t.setSelection(_e.near(t.doc.resolve(o), n));
8568
+ }), t.setSelection(ve.near(t.doc.resolve(o), n));
8569
8569
  }
8570
8570
  function Io(t, e) {
8571
8571
  return !e || !t ? t : t.bind(e);
@@ -8584,7 +8584,7 @@ new Vr("doc", {
8584
8584
  }
8585
8585
  }), new Vr("selection", {
8586
8586
  init(t, e) {
8587
- return t.selection || _e.atStart(e.doc);
8587
+ return t.selection || ve.atStart(e.doc);
8588
8588
  },
8589
8589
  apply(t) {
8590
8590
  return t.selection;
@@ -8966,7 +8966,7 @@ function _n(t = 0, e = 0, n = 0) {
8966
8966
  function l_(t, e = null) {
8967
8967
  if (!e)
8968
8968
  return null;
8969
- const n = _e.atStart(t), s = _e.atEnd(t);
8969
+ const n = ve.atStart(t), s = ve.atEnd(t);
8970
8970
  if (e === "start" || e === !0)
8971
8971
  return n;
8972
8972
  if (e === "end")
@@ -9033,7 +9033,7 @@ function h_(t, e, n) {
9033
9033
  let o = 0;
9034
9034
  a.forEach((l, c, d, u) => {
9035
9035
  o === 0 && (o = u);
9036
- }), t.setSelection(_e.near(t.doc.resolve(o), n));
9036
+ }), t.setSelection(ve.near(t.doc.resolve(o), n));
9037
9037
  }
9038
9038
  const m_ = (t) => t.toString().startsWith("<"), p_ = (t, e, n) => ({ tr: s, dispatch: i, editor: a }) => {
9039
9039
  if (i) {
@@ -9345,10 +9345,10 @@ const Q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9345
9345
  const ae = l.before(l.depth - (E - 1));
9346
9346
  e.replace(ae, l.after(-$), new ge(T, 4 - E, 0));
9347
9347
  let J = -1;
9348
- e.doc.nodesBetween(ae, e.doc.content.size, (X, ve) => {
9348
+ e.doc.nodesBetween(ae, e.doc.content.size, (X, je) => {
9349
9349
  if (J > -1)
9350
9350
  return !1;
9351
- X.isTextblock && X.content.size === 0 && (J = ve + 1);
9351
+ X.isTextblock && X.content.size === 0 && (J = je + 1);
9352
9352
  }), J > -1 && e.setSelection($e.near(e.doc.resolve(J))), e.scrollIntoView();
9353
9353
  }
9354
9354
  return !0;
@@ -9399,7 +9399,7 @@ const Q_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9399
9399
  return c().command(() => (a.setNodeMarkup(ae.pos, p), !0)).command(() => ni(a, p)).command(() => ri(a, p)).run();
9400
9400
  }
9401
9401
  return !n || !K || !l ? c().command(() => u().wrapInList(p, s) ? !0 : d.clearNodes()).wrapInList(p, s).command(() => ni(a, p)).command(() => ri(a, p)).run() : c().command(() => {
9402
- const J = u().wrapInList(p, s), X = K.filter((ve) => m.includes(ve.type.name));
9402
+ const J = u().wrapInList(p, s), X = K.filter((je) => m.includes(je.type.name));
9403
9403
  return a.ensureMarks(X), J ? !0 : d.clearNodes();
9404
9404
  }).wrapInList(p, s).command(() => ni(a, p)).command(() => ri(a, p)).run();
9405
9405
  }, Y_ = (t, e = {}, n = {}) => ({ state: s, commands: i }) => {
@@ -9586,7 +9586,7 @@ Et.create({
9586
9586
  () => o.undoInputRule(),
9587
9587
  // maybe convert first text block node to default node
9588
9588
  () => o.command(({ tr: l }) => {
9589
- const { selection: c, doc: d } = l, { empty: u, $anchor: h } = c, { pos: m, parent: p } = h, f = _e.atStart(d).from === m;
9589
+ const { selection: c, doc: d } = l, { empty: u, $anchor: h } = c, { pos: m, parent: p } = h, f = ve.atStart(d).from === m;
9590
9590
  return !u || !f || !p.type.isTextblock || p.textContent.length ? !1 : o.clearNodes();
9591
9591
  }),
9592
9592
  () => o.deleteSelection(),
@@ -9638,7 +9638,7 @@ Et.create({
9638
9638
  appendTransaction: (t, e, n) => {
9639
9639
  if (!(t.some((f) => f.docChanged) && !e.doc.eq(n.doc)))
9640
9640
  return;
9641
- const { empty: i, from: a, to: o } = e.selection, l = _e.atStart(e.doc).from, c = _e.atEnd(e.doc).to;
9641
+ const { empty: i, from: a, to: o } = e.selection, l = ve.atStart(e.doc).from, c = ve.atEnd(e.doc).to;
9642
9642
  if (i || !(a === l && o === c) || !(n.doc.textBetween(0, n.doc.content.size, " ", " ").length === 0))
9643
9643
  return;
9644
9644
  const h = n.tr, m = Kc({
@@ -9760,7 +9760,7 @@ function rd() {
9760
9760
  close: s
9761
9761
  }] = on(!1);
9762
9762
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9763
- /* @__PURE__ */ r.jsx(we, { opened: e, onClose: s, title: t("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(Ms, { value: fx(t), styles: {
9763
+ /* @__PURE__ */ r.jsx(Se, { opened: e, onClose: s, title: t("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(Ms, { value: fx(t), styles: {
9764
9764
  root: {
9765
9765
  border: "none"
9766
9766
  },
@@ -9849,7 +9849,7 @@ const cv = ({
9849
9849
  close: h
9850
9850
  }] = on(!1);
9851
9851
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9852
- /* @__PURE__ */ r.jsxs(we, { opened: d, onClose: h, title: t, withinPortal: !0, zIndex: 320, size: "900px", children: [
9852
+ /* @__PURE__ */ r.jsxs(Se, { opened: d, onClose: h, title: t, withinPortal: !0, zIndex: 320, size: "900px", children: [
9853
9853
  i,
9854
9854
  /* @__PURE__ */ r.jsx(M, { h: 600, children: /* @__PURE__ */ r.jsx(Un, { value: e, onChange: n, defaultValue: l, label: s }) })
9855
9855
  ] }),
@@ -10277,7 +10277,7 @@ function xv({
10277
10277
  label: l,
10278
10278
  value: c.toString()
10279
10279
  })), [a]);
10280
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "series", getItem: s, addButtonText: n("chart.series.add"), deleteButtonText: n("chart.series.delete"), renderTabName: i, children: ({
10280
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "series", getItem: s, addButtonText: n("chart.series.add"), deleteButtonText: n("chart.series.delete"), renderTabName: i, children: ({
10281
10281
  field: l,
10282
10282
  index: c
10283
10283
  }) => /* @__PURE__ */ r.jsx(pv, { control: t, index: c, seriesItem: l, yAxisOptions: o }) });
@@ -10343,7 +10343,7 @@ const fv = ({
10343
10343
  /* @__PURE__ */ r.jsx(Zt, { size: 14, color: "#888" }),
10344
10344
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
10345
10345
  ] }),
10346
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
10346
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
10347
10347
  field: a,
10348
10348
  index: o
10349
10349
  }) => /* @__PURE__ */ r.jsx(fv, { control: t, index: o }) })
@@ -10363,11 +10363,11 @@ const _v = () => {
10363
10363
  display: "inline-flex"
10364
10364
  }, spacing: 6, mr: 14, children: [
10365
10365
  /* @__PURE__ */ r.jsx(w, { children: t("chart.x_axis.x_axis_type") }),
10366
- /* @__PURE__ */ r.jsxs(Ie, { width: 340, shadow: "md", position: "top", children: [
10367
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(Z, { size: "xs", sx: {
10366
+ /* @__PURE__ */ r.jsxs(Te, { width: 340, shadow: "md", position: "top", children: [
10367
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(Z, { size: "xs", sx: {
10368
10368
  transform: "none !important"
10369
10369
  }, children: /* @__PURE__ */ r.jsx(Mn, {}) }) }),
10370
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(Ii, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
10370
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(Ii, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
10371
10371
  "Click",
10372
10372
  /* @__PURE__ */ r.jsx(Xr, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
10373
10373
  "to learn more about these options"
@@ -10547,7 +10547,7 @@ function wv({
10547
10547
  index: l,
10548
10548
  fields: c
10549
10549
  }) => c.length <= 1;
10550
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "y_axes", getItem: s, addButtonText: n("chart.y_axis.add"), deleteButtonText: n("chart.y_axis.delete"), renderTabName: i, deleteDisalbed: a, children: ({
10550
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "y_axes", getItem: s, addButtonText: n("chart.y_axis.add"), deleteButtonText: n("chart.y_axis.delete"), renderTabName: i, deleteDisalbed: a, children: ({
10551
10551
  field: o,
10552
10552
  index: l
10553
10553
  }) => /* @__PURE__ */ r.jsx(jv, { control: t, index: l }) });
@@ -10562,13 +10562,13 @@ function Sv({
10562
10562
  set: s
10563
10563
  } = H(t.instanceData, "config"), {
10564
10564
  variables: i
10565
- } = t, a = C(() => Se({}, n, Hi), [n]), {
10565
+ } = t, a = C(() => ke({}, n, Hi), [n]), {
10566
10566
  control: o,
10567
10567
  handleSubmit: l,
10568
10568
  watch: c,
10569
10569
  getValues: d,
10570
10570
  reset: u
10571
- } = be({
10571
+ } = ye({
10572
10572
  defaultValues: a
10573
10573
  });
10574
10574
  B(() => {
@@ -10968,7 +10968,7 @@ const Bv = {
10968
10968
  lang: "zh",
10969
10969
  resources: Wv
10970
10970
  }];
10971
- class Qv extends ke {
10971
+ class Qv extends Ce {
10972
10972
  constructor() {
10973
10973
  super(...arguments);
10974
10974
  N(this, "VERSION", 19);
@@ -11249,7 +11249,7 @@ function sj({
11249
11249
  }) {
11250
11250
  const {
11251
11251
  value: e
11252
- } = H(t.instanceData, "config"), n = C(() => je({}, e, sa), [e]), s = t.data, {
11252
+ } = H(t.instanceData, "config"), n = C(() => we({}, e, sa), [e]), s = t.data, {
11253
11253
  width: i,
11254
11254
  height: a
11255
11255
  } = t.viewport;
@@ -11442,7 +11442,7 @@ function oj({
11442
11442
  watch: o,
11443
11443
  getValues: l,
11444
11444
  reset: c
11445
- } = be({
11445
+ } = ye({
11446
11446
  defaultValues: s
11447
11447
  });
11448
11448
  B(() => {
@@ -11554,7 +11554,7 @@ function hj(t, {
11554
11554
  throw console.error("[Migration failed]", n), n;
11555
11555
  }
11556
11556
  }
11557
- class mj extends ke {
11557
+ class mj extends Ce {
11558
11558
  constructor() {
11559
11559
  super(...arguments);
11560
11560
  N(this, "VERSION", 3);
@@ -11896,7 +11896,7 @@ const Sj = ({
11896
11896
  }, children: /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
11897
11897
  flexGrow: 0
11898
11898
  }, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
11899
- /* @__PURE__ */ r.jsx(we, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
11899
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
11900
11900
  /* @__PURE__ */ r.jsx(A, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
11901
11901
  /* @__PURE__ */ r.jsx(Sj, { value: o.value, onChange: u }),
11902
11902
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -12257,11 +12257,11 @@ function Oj(t, e, n, s, i) {
12257
12257
  const K = S.get(V, h.columnKey), ae = S.get(V, m.columnKey), J = S.get(V, p.columnKey), X = {
12258
12258
  value: [K, ae, J]
12259
12259
  }, {
12260
- followVisualMap: ve,
12261
- color: ye
12260
+ followVisualMap: je,
12261
+ color: _e
12262
12262
  } = Mj(J, l, c, t.visualMap);
12263
- return ve || (X.visualMap = !1, X.itemStyle = {
12264
- color: ye
12263
+ return je || (X.visualMap = !1, X.itemStyle = {
12264
+ color: _e
12265
12265
  }), X;
12266
12266
  }), E = Pj(f.length, v.length, s, i);
12267
12267
  return {
@@ -12386,7 +12386,7 @@ function Nj({
12386
12386
  value: s
12387
12387
  } = H(t.instanceData, "config"), {
12388
12388
  variables: i
12389
- } = t, a = C(() => je({}, s, ia), [s]), o = t.data, {
12389
+ } = t, a = C(() => we({}, s, ia), [s]), o = t.data, {
12390
12390
  width: l,
12391
12391
  height: c
12392
12392
  } = t.viewport;
@@ -12476,7 +12476,7 @@ const Wj = ({
12476
12476
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
12477
12477
  ] }),
12478
12478
  /* @__PURE__ */ r.jsx(A, { variant: "dashed", my: 10 }),
12479
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
12479
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
12480
12480
  field: a,
12481
12481
  index: o
12482
12482
  }) => /* @__PURE__ */ r.jsx(Wj, { control: t, index: o }) })
@@ -12575,11 +12575,11 @@ function Yj({
12575
12575
  } = y(), {
12576
12576
  value: n,
12577
12577
  set: s
12578
- } = H(t.instanceData, "config"), i = C(() => n ? je({}, n) : ia, [n]), a = C(() => S.cloneDeep(i), [i]);
12578
+ } = H(t.instanceData, "config"), i = C(() => n ? we({}, n) : ia, [n]), a = C(() => S.cloneDeep(i), [i]);
12579
12579
  B(() => {
12580
12580
  !pe(i, a) && (console.log("config malformed, resetting to defaults", i, a), s(a));
12581
12581
  }, [i, a]);
12582
- const o = be({
12582
+ const o = ye({
12583
12583
  defaultValues: a
12584
12584
  }), {
12585
12585
  control: l,
@@ -12745,7 +12745,7 @@ function nw(t) {
12745
12745
  }
12746
12746
  };
12747
12747
  }
12748
- class rw extends ke {
12748
+ class rw extends Ce {
12749
12749
  constructor() {
12750
12750
  super(...arguments);
12751
12751
  N(this, "VERSION", 5);
@@ -13140,7 +13140,7 @@ function _w({
13140
13140
  } = H(t.instanceData, "config"), s = t.data, {
13141
13141
  width: i,
13142
13142
  height: a
13143
- } = t.viewport, o = je({}, n, aa), l = yw(o, s), c = mt({
13143
+ } = t.viewport, o = we({}, n, aa), l = yw(o, s), c = mt({
13144
13144
  vizManager: t.vizManager,
13145
13145
  instance: e
13146
13146
  }), d = ht(c.triggerManager, ld.id), u = En(s, o.x_axis.data_key), h = Ne((p) => {
@@ -13334,13 +13334,13 @@ function Iw({
13334
13334
  } = y(), {
13335
13335
  value: n,
13336
13336
  set: s
13337
- } = H(t.instanceData, "config"), i = C(() => je({}, n, aa), [n]), {
13337
+ } = H(t.instanceData, "config"), i = C(() => we({}, n, aa), [n]), {
13338
13338
  control: a,
13339
13339
  handleSubmit: o,
13340
13340
  watch: l,
13341
13341
  getValues: c,
13342
13342
  reset: d
13343
- } = be({
13343
+ } = ye({
13344
13344
  defaultValues: i
13345
13345
  });
13346
13346
  B(() => {
@@ -13496,7 +13496,7 @@ function $w(t, {
13496
13496
  throw console.error("[Migration failed]", n), n;
13497
13497
  }
13498
13498
  }
13499
- class Pw extends ke {
13499
+ class Pw extends Ce {
13500
13500
  constructor() {
13501
13501
  super(...arguments);
13502
13502
  N(this, "VERSION", 9);
@@ -13711,13 +13711,13 @@ function Gw({
13711
13711
  } = y(), {
13712
13712
  value: n,
13713
13713
  set: s
13714
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, oa), [n]), a = C(() => S.clone(i), [i]), {
13714
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, oa), [n]), a = C(() => S.clone(i), [i]), {
13715
13715
  control: o,
13716
13716
  handleSubmit: l,
13717
13717
  watch: c,
13718
13718
  getValues: d,
13719
13719
  reset: u
13720
- } = be({
13720
+ } = ye({
13721
13721
  defaultValues: a
13722
13722
  });
13723
13723
  B(() => {
@@ -13794,7 +13794,7 @@ function Kw(t, {
13794
13794
  throw console.error("[Migration failed]", n), n;
13795
13795
  }
13796
13796
  }
13797
- class Jw extends ke {
13797
+ class Jw extends Ce {
13798
13798
  constructor() {
13799
13799
  super(...arguments);
13800
13800
  N(this, "VERSION", 3);
@@ -14100,7 +14100,7 @@ function c0({
14100
14100
  });
14101
14101
  }, [o, l, i]), d = C(() => ({
14102
14102
  click: c
14103
- }), [c]), u = C(() => l0(Se({}, t, Ls), e), [t, e]);
14103
+ }), [c]), u = C(() => l0(ke({}, t, Ls), e), [t, e]);
14104
14104
  return !n || !s ? null : /* @__PURE__ */ r.jsx(Ze, { echarts: Ke, option: u, style: {
14105
14105
  width: n,
14106
14106
  height: s
@@ -14163,7 +14163,7 @@ function h0({
14163
14163
  /* @__PURE__ */ r.jsx(bh, { children: "Series Name Key" }),
14164
14164
  ", you may add series from more queries to the chart."
14165
14165
  ] }) }),
14166
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "additional_series", getItem: s, addButtonText: n("viz.radar_chart.additional_series.add"), deleteButtonText: n("viz.radar_chart.additional_series.delete"), renderTabName: i, children: ({
14166
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "additional_series", getItem: s, addButtonText: n("viz.radar_chart.additional_series.add"), deleteButtonText: n("viz.radar_chart.additional_series.delete"), renderTabName: i, children: ({
14167
14167
  field: a,
14168
14168
  index: o
14169
14169
  }) => /* @__PURE__ */ r.jsx(u0, { control: t, index: o }) })
@@ -14233,7 +14233,7 @@ function p0({
14233
14233
  const l = a.name.trim();
14234
14234
  return l || o + 1;
14235
14235
  };
14236
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "dimensions", getItem: s, addButtonText: n("viz.radar_chart.metric.add"), deleteButtonText: n("viz.radar_chart.metric.delete"), renderTabName: i, children: ({
14236
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "dimensions", getItem: s, addButtonText: n("viz.radar_chart.metric.add"), deleteButtonText: n("viz.radar_chart.metric.delete"), renderTabName: i, children: ({
14237
14237
  field: a,
14238
14238
  index: o
14239
14239
  }) => /* @__PURE__ */ r.jsx(m0, { control: t, index: o }) }) });
@@ -14246,14 +14246,14 @@ function x0({
14246
14246
  } = y(), {
14247
14247
  value: n,
14248
14248
  set: s
14249
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, Ls), [n]), {
14249
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, Ls), [n]), {
14250
14250
  control: a,
14251
14251
  handleSubmit: o,
14252
14252
  watch: l,
14253
14253
  getValues: c,
14254
14254
  reset: d,
14255
14255
  formState: u
14256
- } = be({
14256
+ } = ye({
14257
14257
  defaultValues: i,
14258
14258
  mode: "all"
14259
14259
  });
@@ -14436,7 +14436,7 @@ function S0(t) {
14436
14436
  };
14437
14437
  return delete e.additionalSeries, e;
14438
14438
  }
14439
- class k0 extends ke {
14439
+ class k0 extends Ce {
14440
14440
  constructor() {
14441
14441
  super(...arguments);
14442
14442
  N(this, "VERSION", 7);
@@ -14708,7 +14708,7 @@ function A0(t, e) {
14708
14708
  data: n.map((a) => a.name)
14709
14709
  }
14710
14710
  };
14711
- return Se({}, i, R0);
14711
+ return ke({}, i, R0);
14712
14712
  }
14713
14713
  const Eo = {
14714
14714
  output: "number",
@@ -14900,9 +14900,9 @@ function B0({
14900
14900
  const {
14901
14901
  t: n
14902
14902
  } = y();
14903
- return /* @__PURE__ */ r.jsxs(Ie, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
14904
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
14905
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(N0, { conf: t, queryData: e }) }) })
14903
+ return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
14904
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
14905
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(N0, { conf: t, queryData: e }) }) })
14906
14906
  ] });
14907
14907
  }
14908
14908
  function W0(t) {
@@ -14970,7 +14970,7 @@ function G0({
14970
14970
  ...f,
14971
14971
  [m.columnKey]: Number(f[m.columnKey])
14972
14972
  });
14973
- }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = C(() => A0(Se({}, e, la), i), [e, i]), o = hs(null), l = (c) => {
14973
+ }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = C(() => A0(ke({}, e, la), i), [e, i]), o = hs(null), l = (c) => {
14974
14974
  o.current = c;
14975
14975
  };
14976
14976
  return !n || !s || !e ? null : /* @__PURE__ */ r.jsxs(it, { width: n, height: s, children: [
@@ -15106,13 +15106,13 @@ function Y0({
15106
15106
  const {
15107
15107
  value: e,
15108
15108
  set: n
15109
- } = H(t.instanceData, "config"), s = C(() => je({}, e, la), [e]), {
15109
+ } = H(t.instanceData, "config"), s = C(() => we({}, e, la), [e]), {
15110
15110
  control: i,
15111
15111
  handleSubmit: a,
15112
15112
  watch: o,
15113
15113
  getValues: l,
15114
15114
  reset: c
15115
- } = be({
15115
+ } = ye({
15116
15116
  defaultValues: s
15117
15117
  });
15118
15118
  B(() => {
@@ -15203,7 +15203,7 @@ const X0 = {
15203
15203
  lang: "zh",
15204
15204
  resources: Z0
15205
15205
  }];
15206
- class tS extends ke {
15206
+ class tS extends Ce {
15207
15207
  constructor() {
15208
15208
  super(...arguments);
15209
15209
  N(this, "VERSION", 3);
@@ -15297,7 +15297,7 @@ const oS = z(({
15297
15297
  variables: s,
15298
15298
  data: i
15299
15299
  } = t, a = C(() => {
15300
- const o = je({}, n, Rs);
15300
+ const o = we({}, n, Rs);
15301
15301
  return o.content ? aS(o.content, s, e.payloadForViz, i) : "";
15302
15302
  }, [n, s, e.payloadForViz]);
15303
15303
  return a ? /* @__PURE__ */ r.jsx(Ms, { value: a, styles: {
@@ -15414,12 +15414,12 @@ function cS({
15414
15414
  } = y(), {
15415
15415
  value: n,
15416
15416
  set: s
15417
- } = H(t.instanceData, "config"), i = C(() => je({}, n, Rs), [n]), {
15417
+ } = H(t.instanceData, "config"), i = C(() => we({}, n, Rs), [n]), {
15418
15418
  control: a,
15419
15419
  handleSubmit: o,
15420
15420
  watch: l,
15421
15421
  reset: c
15422
- } = be({
15422
+ } = ye({
15423
15423
  defaultValues: i
15424
15424
  });
15425
15425
  l("content"), B(() => {
@@ -15477,13 +15477,13 @@ const dS = {
15477
15477
  lang: "zh",
15478
15478
  resources: uS
15479
15479
  }];
15480
- class mS extends ke {
15480
+ class mS extends Ce {
15481
15481
  constructor() {
15482
15482
  super(...arguments);
15483
15483
  N(this, "VERSION", 1);
15484
15484
  }
15485
15485
  fixMalformedConfig(n) {
15486
- return je({}, n, Rs);
15486
+ return we({}, n, Rs);
15487
15487
  }
15488
15488
  configVersions() {
15489
15489
  this.version(1, (n) => ({
@@ -15971,7 +15971,7 @@ function LS(t, e, n) {
15971
15971
  legend: yS(),
15972
15972
  dataZoom: Cs(t.dataZoom)
15973
15973
  };
15974
- return Se({}, l, MS);
15974
+ return ke({}, l, MS);
15975
15975
  }
15976
15976
  function Po(t) {
15977
15977
  return t.trim().length > 0;
@@ -16011,7 +16011,7 @@ function RS({
16011
16011
  value: s
16012
16012
  } = H(t.instanceData, "config"), {
16013
16013
  variables: i
16014
- } = t, a = C(() => je({}, s, da), [s]), o = t.data, {
16014
+ } = t, a = C(() => we({}, s, da), [s]), o = t.data, {
16015
16015
  width: l,
16016
16016
  height: c
16017
16017
  } = t.viewport, {
@@ -16133,7 +16133,7 @@ function PS({
16133
16133
  label: d,
16134
16134
  value: u.toString()
16135
16135
  })), [o]), c = (d, u) => u + 1;
16136
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "reference_areas", getItem: i, addButtonText: s("chart.reference_area.add"), deleteButtonText: s("chart.reference_area.delete"), renderTabName: c, children: ({
16136
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "reference_areas", getItem: i, addButtonText: s("chart.reference_area.add"), deleteButtonText: s("chart.reference_area.delete"), renderTabName: c, children: ({
16137
16137
  field: d,
16138
16138
  index: u
16139
16139
  }) => /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${u}`, control: t, render: ({
@@ -16253,7 +16253,7 @@ function FS({
16253
16253
  const h = d.name.trim();
16254
16254
  return h || u + 1;
16255
16255
  };
16256
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: c, children: ({
16256
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: c, children: ({
16257
16257
  field: d,
16258
16258
  index: u
16259
16259
  }) => /* @__PURE__ */ r.jsx(OS, { control: t, index: u, watch: e, variableOptions: a, yAxisOptions: l }) });
@@ -16305,7 +16305,7 @@ const VS = ({
16305
16305
  }, children: /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
16306
16306
  flexGrow: 0
16307
16307
  }, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
16308
- /* @__PURE__ */ r.jsx(we, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
16308
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
16309
16309
  /* @__PURE__ */ r.jsx(VS, { value: o.func_content, onChange: u }),
16310
16310
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
16311
16311
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
@@ -16479,7 +16479,7 @@ const US = ({
16479
16479
  /* @__PURE__ */ r.jsx(Zt, { size: 14, color: "#888" }),
16480
16480
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
16481
16481
  ] }),
16482
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
16482
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
16483
16483
  field: a,
16484
16484
  index: o
16485
16485
  }) => /* @__PURE__ */ r.jsx(US, { control: t, index: o }) })
@@ -16620,7 +16620,7 @@ function ZS({
16620
16620
  index: l,
16621
16621
  fields: c
16622
16622
  }) => c.length <= 1;
16623
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "y_axes", getItem: s, addButtonText: n("chart.y_axis.add"), deleteButtonText: n("chart.y_axis.delete"), renderTabName: i, deleteDisalbed: a, children: ({
16623
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "y_axes", getItem: s, addButtonText: n("chart.y_axis.add"), deleteButtonText: n("chart.y_axis.delete"), renderTabName: i, deleteDisalbed: a, children: ({
16624
16624
  field: o,
16625
16625
  index: l
16626
16626
  }) => /* @__PURE__ */ r.jsx(XS, { control: t, index: l }) });
@@ -16654,7 +16654,7 @@ function nk({
16654
16654
  set: s
16655
16655
  } = H(t.instanceData, "config"), {
16656
16656
  variables: i
16657
- } = t, a = C(() => Se({}, n, da), [n]), o = C(() => tk(a), [a]);
16657
+ } = t, a = C(() => ke({}, n, da), [n]), o = C(() => tk(a), [a]);
16658
16658
  B(() => {
16659
16659
  !pe(a, o) && (console.log("config malformed, resetting to defaults", a, o), s(o));
16660
16660
  }, [a, o]);
@@ -16664,7 +16664,7 @@ function nk({
16664
16664
  watch: d,
16665
16665
  getValues: u,
16666
16666
  reset: h
16667
- } = be({
16667
+ } = ye({
16668
16668
  defaultValues: o
16669
16669
  });
16670
16670
  B(() => {
@@ -16857,7 +16857,7 @@ function hk(t) {
16857
16857
  };
16858
16858
  return S.defaultsDeep(e, t);
16859
16859
  }
16860
- class mk extends ke {
16860
+ class mk extends Ce {
16861
16861
  constructor() {
16862
16862
  super(...arguments);
16863
16863
  N(this, "VERSION", 10);
@@ -17015,7 +17015,7 @@ function bk(t) {
17015
17015
  const e = Be(t), n = se(e, "color.valueRange");
17016
17016
  return n !== void 0 && Ci(e, "color.valueRange", n.map((s) => Number(s))), e;
17017
17017
  }
17018
- class yk extends ke {
17018
+ class yk extends Ce {
17019
17019
  constructor() {
17020
17020
  super(...arguments);
17021
17021
  N(this, "VERSION", 2);
@@ -17132,13 +17132,13 @@ function kk({
17132
17132
  } = y(), {
17133
17133
  value: n,
17134
17134
  set: s
17135
- } = H(t.instanceData, "config"), i = L.useMemo(() => Se({}, n, ua), [n]), {
17135
+ } = H(t.instanceData, "config"), i = L.useMemo(() => ke({}, n, ua), [n]), {
17136
17136
  control: a,
17137
17137
  handleSubmit: o,
17138
17138
  watch: l,
17139
17139
  getValues: c,
17140
17140
  reset: d
17141
- } = be({
17141
+ } = ye({
17142
17142
  defaultValues: i
17143
17143
  });
17144
17144
  L.useEffect(() => {
@@ -17347,7 +17347,7 @@ function Ok(t, e, n) {
17347
17347
  },
17348
17348
  tooltip: $k()
17349
17349
  };
17350
- return Se({}, i, Pk);
17350
+ return ke({}, i, Pk);
17351
17351
  }
17352
17352
  function Fk({
17353
17353
  context: t
@@ -17356,7 +17356,7 @@ function Fk({
17356
17356
  variables: e
17357
17357
  } = t, {
17358
17358
  value: n
17359
- } = H(t.instanceData, "config"), s = C(() => je({}, n, ha), [n]), i = t.data, {
17359
+ } = H(t.instanceData, "config"), s = C(() => we({}, n, ha), [n]), i = t.data, {
17360
17360
  width: a,
17361
17361
  height: o
17362
17362
  } = t.viewport, l = C(() => Ok(s, i, e), [s, i, e]);
@@ -17470,7 +17470,7 @@ const qk = ({
17470
17470
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("viz.sunburst_chart.level.hint") })
17471
17471
  ] }),
17472
17472
  /* @__PURE__ */ r.jsx(A, { variant: "dashed", my: 10 }),
17473
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "levels", getItem: s, addButtonText: n("viz.sunburst_chart.level.add"), deleteButtonText: n("viz.sunburst_chart.level.delete"), renderTabName: i, children: ({
17473
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "levels", getItem: s, addButtonText: n("viz.sunburst_chart.level.add"), deleteButtonText: n("viz.sunburst_chart.level.delete"), renderTabName: i, children: ({
17474
17474
  field: a,
17475
17475
  index: o
17476
17476
  }) => /* @__PURE__ */ r.jsx(qk, { control: t, index: o }) })
@@ -17484,13 +17484,13 @@ function Bk({
17484
17484
  } = y(), {
17485
17485
  value: n,
17486
17486
  set: s
17487
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, ha), [n]), a = C(() => S.clone(i), [i]), {
17487
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, ha), [n]), a = C(() => S.clone(i), [i]), {
17488
17488
  control: o,
17489
17489
  handleSubmit: l,
17490
17490
  watch: c,
17491
17491
  getValues: d,
17492
17492
  reset: u
17493
- } = be({
17493
+ } = ye({
17494
17494
  defaultValues: a
17495
17495
  });
17496
17496
  B(() => {
@@ -17626,7 +17626,7 @@ function Kk(t, {
17626
17626
  throw console.error("[Migration failed]", n), n;
17627
17627
  }
17628
17628
  }
17629
- class Jk extends ke {
17629
+ class Jk extends Ce {
17630
17630
  constructor() {
17631
17631
  super(...arguments);
17632
17632
  N(this, "VERSION", 5);
@@ -17944,7 +17944,7 @@ function m1(t) {
17944
17944
  set: o
17945
17945
  } = H(t.trigger.triggerData, "config"), {
17946
17946
  column: l
17947
- } = je({}, a, h1), c = (d) => {
17947
+ } = we({}, a, h1), c = (d) => {
17948
17948
  isNaN(+d) ? o({
17949
17949
  column: d
17950
17950
  }) : o({
@@ -18067,32 +18067,32 @@ function Fo({
18067
18067
  return d;
18068
18068
  if (!Array.isArray(t) || t.length === 0)
18069
18069
  return [];
18070
- let ye = Object.keys(t[0]);
18071
- const Vt = new Set(c == null ? void 0 : c.split(/\r?\n|\r|\n/g).filter((Ee) => !!Ee));
18072
- return Vt.size > 0 && (ye = ye.filter((Ee) => !Vt.has(Ee))), ye.map((Ee) => ({
18073
- id: Ee,
18074
- label: Ee,
18075
- value_field: Ee,
18070
+ let _e = Object.keys(t[0]);
18071
+ const Vt = new Set(c == null ? void 0 : c.split(/\r?\n|\r|\n/g).filter((Re) => !!Re));
18072
+ return Vt.size > 0 && (_e = _e.filter((Re) => !Vt.has(Re))), _e.map((Re) => ({
18073
+ id: Re,
18074
+ label: Re,
18075
+ value_field: Re,
18076
18076
  value_type: vt.string,
18077
18077
  align: "left",
18078
18078
  width: "",
18079
18079
  cellBackgroundColor: ""
18080
18080
  }));
18081
18081
  }, [l, c, d, t]), f = b1({
18082
- getColIndex: Ne((ye) => p.indexOf(ye.column.columnDef.meta), [p]),
18082
+ getColIndex: Ne((_e) => p.indexOf(_e.column.columnDef.meta), [p]),
18083
18083
  vizManager: i.vizManager,
18084
18084
  instance: a
18085
18085
  }), v = C(() => {
18086
- const ye = Yl();
18087
- return p.map((Ee) => {
18088
- const Mr = Cx(Ee.value_field);
18089
- return ye.accessor(Mr.columnKey, {
18090
- cell: (ot) => /* @__PURE__ */ r.jsx(d1, { tableCellContext: f(ot.cell), value: ot.getValue(), type: Ee.value_type, row_data: ot.row.original, ...Ee }),
18091
- header: Ee.label,
18086
+ const _e = Yl();
18087
+ return p.map((Re) => {
18088
+ const Mr = Cx(Re.value_field);
18089
+ return _e.accessor(Mr.columnKey, {
18090
+ cell: (ot) => /* @__PURE__ */ r.jsx(d1, { tableCellContext: f(ot.cell), value: ot.getValue(), type: Re.value_type, row_data: ot.row.original, ...Re }),
18091
+ header: Re.label,
18092
18092
  enableSorting: !0,
18093
- meta: Ee,
18094
- size: typeof Ee.width == "number" ? Ee.width : void 0,
18095
- minSize: typeof Ee.width == "number" ? Ee.width : void 0
18093
+ meta: Re,
18094
+ size: typeof Re.width == "number" ? Re.width : void 0,
18095
+ minSize: typeof Re.width == "number" ? Re.width : void 0
18096
18096
  });
18097
18097
  });
18098
18098
  }, [p, f]), [T, E] = Q([]), $ = Kl({
@@ -18106,7 +18106,7 @@ function Fo({
18106
18106
  getSortedRowModel: fp()
18107
18107
  }), {
18108
18108
  rows: V
18109
- } = $.getRowModel(), K = L.useRef(null), ae = V.length, J = ae > 0, X = J ? n - 22 : n, ve = J ? 22 : 0;
18109
+ } = $.getRowModel(), K = L.useRef(null), ae = V.length, J = ae > 0, X = J ? n - 22 : n, je = J ? 22 : 0;
18110
18110
  return /* @__PURE__ */ r.jsxs("div", { ref: K, style: {
18111
18111
  height: n,
18112
18112
  width: e,
@@ -18124,10 +18124,10 @@ function Fo({
18124
18124
  maxHeight: X
18125
18125
  }, ...u, striped: s.striped, children: [
18126
18126
  /* @__PURE__ */ r.jsx("thead", { className: h.thead, style: {
18127
- top: ve
18128
- }, children: $.getHeaderGroups().map((ye) => /* @__PURE__ */ r.jsx("tr", { children: ye.headers.map((Vt) => /* @__PURE__ */ r.jsx("th", { style: {
18127
+ top: je
18128
+ }, children: $.getHeaderGroups().map((_e) => /* @__PURE__ */ r.jsx("tr", { children: _e.headers.map((Vt) => /* @__PURE__ */ r.jsx("th", { style: {
18129
18129
  width: Vt.getSize()
18130
- }, children: /* @__PURE__ */ r.jsx(Zk, { header: Vt, cx: m }) }, Vt.id)) }, ye.id)) }),
18130
+ }, children: /* @__PURE__ */ r.jsx(Zk, { header: Vt, cx: m }) }, Vt.id)) }, _e.id)) }),
18131
18131
  /* @__PURE__ */ r.jsx(u1, { tableContainerRef: K, rows: V })
18132
18132
  ] })
18133
18133
  ] });
@@ -18266,7 +18266,7 @@ const k1 = ne((t, e) => {
18266
18266
  /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
18267
18267
  flexGrow: 0
18268
18268
  }, children: s("viz.table.column.custom_cell_content") }),
18269
- /* @__PURE__ */ r.jsx(we, { size: 800, title: s("viz.table.column.custom_cell_content"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
18269
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: s("viz.table.column.custom_cell_content"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
18270
18270
  /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(rd, {}) }),
18271
18271
  /* @__PURE__ */ r.jsx(M, { sx: {
18272
18272
  position: "relative"
@@ -18452,7 +18452,7 @@ function L1({
18452
18452
  } = y(), {
18453
18453
  value: n,
18454
18454
  set: s
18455
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, _d), [n]), a = C(() => M1(i), [i]);
18455
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, _d), [n]), a = C(() => M1(i), [i]);
18456
18456
  B(() => {
18457
18457
  !pe(i, a) && (console.log("config malformed, resetting to defaults", i, a), s(a));
18458
18458
  }, [i, a]);
@@ -18462,7 +18462,7 @@ function L1({
18462
18462
  watch: c,
18463
18463
  getValues: d,
18464
18464
  reset: u
18465
- } = be({
18465
+ } = ye({
18466
18466
  defaultValues: a
18467
18467
  });
18468
18468
  B(() => {
@@ -18655,7 +18655,7 @@ function V1(t) {
18655
18655
  ignored_column_keys: e ?? ""
18656
18656
  };
18657
18657
  }
18658
- class q1 extends ke {
18658
+ class q1 extends Ce {
18659
18659
  constructor() {
18660
18660
  super(...arguments);
18661
18661
  N(this, "VERSION", 7);
@@ -18818,7 +18818,7 @@ const zd = L.forwardRef(B1), W1 = ({
18818
18818
  /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
18819
18819
  flexGrow: 0
18820
18820
  }, children: s("viz.text.content.edit") }),
18821
- /* @__PURE__ */ r.jsx(we, { size: 800, title: s("viz.text.content.label"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
18821
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: s("viz.text.content.label"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(k, { children: [
18822
18822
  /* @__PURE__ */ r.jsx(W1, { value: l, onChange: c }),
18823
18823
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
18824
18824
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
@@ -18838,7 +18838,7 @@ function Q1({
18838
18838
  } = y(), {
18839
18839
  value: n,
18840
18840
  set: s
18841
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, pa), [n]), a = C(() => {
18841
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, pa), [n]), a = C(() => {
18842
18842
  const {
18843
18843
  func_content: p,
18844
18844
  horizontal_align: f,
@@ -18861,7 +18861,7 @@ function Q1({
18861
18861
  watch: c,
18862
18862
  getValues: d,
18863
18863
  reset: u
18864
- } = be({
18864
+ } = ye({
18865
18865
  defaultValues: a
18866
18866
  });
18867
18867
  L.useEffect(() => {
@@ -18917,7 +18917,7 @@ const H1 = {
18917
18917
  lang: "zh",
18918
18918
  resources: U1
18919
18919
  }];
18920
- class K1 extends ke {
18920
+ class K1 extends Ce {
18921
18921
  constructor() {
18922
18922
  super(...arguments);
18923
18923
  N(this, "VERSION", 1);
@@ -19032,7 +19032,7 @@ function nC({
19032
19032
  }) {
19033
19033
  const {
19034
19034
  value: e
19035
- } = H(t.instanceData, "config"), n = C(() => Se({}, e, xa), [e]), {
19035
+ } = H(t.instanceData, "config"), n = C(() => ke({}, e, xa), [e]), {
19036
19036
  width: s,
19037
19037
  height: i
19038
19038
  } = t.viewport, a = t.data, {
@@ -19058,13 +19058,13 @@ function rC({
19058
19058
  const {
19059
19059
  value: e,
19060
19060
  set: n
19061
- } = H(t.instanceData, "config"), s = C(() => Se({}, e, xa), [e]), {
19061
+ } = H(t.instanceData, "config"), s = C(() => ke({}, e, xa), [e]), {
19062
19062
  control: i,
19063
19063
  handleSubmit: a,
19064
19064
  watch: o,
19065
19065
  getValues: l,
19066
19066
  reset: c
19067
- } = be({
19067
+ } = ye({
19068
19068
  defaultValues: s
19069
19069
  });
19070
19070
  B(() => {
@@ -19109,7 +19109,7 @@ const sC = {
19109
19109
  lang: "zh",
19110
19110
  resources: iC
19111
19111
  }];
19112
- class oC extends ke {
19112
+ class oC extends Ce {
19113
19113
  constructor() {
19114
19114
  super(...arguments);
19115
19115
  N(this, "VERSION", 1);
@@ -19331,7 +19331,7 @@ function vC(t, e, n) {
19331
19331
  visualMap: fC(t, d, s),
19332
19332
  legend: hC(d, c)
19333
19333
  };
19334
- return Se({}, u, bC);
19334
+ return ke({}, u, bC);
19335
19335
  }
19336
19336
  function jC(t) {
19337
19337
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
@@ -19524,7 +19524,7 @@ const IC = ({
19524
19524
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
19525
19525
  ] }),
19526
19526
  /* @__PURE__ */ r.jsx(A, { variant: "dashed", my: 10 }),
19527
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
19527
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
19528
19528
  field: a,
19529
19529
  index: o
19530
19530
  }) => /* @__PURE__ */ r.jsx(IC, { control: t, index: o }) })
@@ -19574,7 +19574,7 @@ function EC({
19574
19574
  } = y(), {
19575
19575
  value: n,
19576
19576
  set: s
19577
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, ga), [n]), a = C(() => S.cloneDeep(i), [i]);
19577
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, ga), [n]), a = C(() => S.cloneDeep(i), [i]);
19578
19578
  B(() => {
19579
19579
  !pe(i, a) && (console.log("config malformed, resetting to defaults", i, a), s(a));
19580
19580
  }, [i, a]);
@@ -19584,7 +19584,7 @@ function EC({
19584
19584
  watch: c,
19585
19585
  getValues: d,
19586
19586
  reset: u
19587
- } = be({
19587
+ } = ye({
19588
19588
  defaultValues: a
19589
19589
  });
19590
19590
  B(() => {
@@ -19705,7 +19705,7 @@ function OC(t) {
19705
19705
  }
19706
19706
  };
19707
19707
  }
19708
- class FC extends ke {
19708
+ class FC extends Ce {
19709
19709
  constructor() {
19710
19710
  super(...arguments);
19711
19711
  N(this, "VERSION", 3);
@@ -20173,7 +20173,7 @@ function lz({
20173
20173
  value: s
20174
20174
  } = H(t.instanceData, "config"), {
20175
20175
  variables: i
20176
- } = t, a = C(() => je({}, s, fa), [s]), o = t.data, {
20176
+ } = t, a = C(() => we({}, s, fa), [s]), o = t.data, {
20177
20177
  width: l,
20178
20178
  height: c
20179
20179
  } = t.viewport;
@@ -20277,7 +20277,7 @@ function dz({
20277
20277
  const h = d.name.trim();
20278
20278
  return h || u + 1;
20279
20279
  };
20280
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: c, children: ({
20280
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "reference_lines", getItem: i, addButtonText: s("chart.reference_line.add"), deleteButtonText: s("chart.reference_line.delete"), renderTabName: c, children: ({
20281
20281
  field: d,
20282
20282
  index: u
20283
20283
  }) => /* @__PURE__ */ r.jsx(cz, { control: t, index: u, watch: e, variableOptions: a, xAxisOptions: l }) });
@@ -20411,7 +20411,7 @@ function mz({
20411
20411
  label: l,
20412
20412
  value: c.toString()
20413
20413
  })), [a]);
20414
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "series", getItem: s, addButtonText: n("chart.series.add"), deleteButtonText: n("chart.series.delete"), renderTabName: i, children: ({
20414
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "series", getItem: s, addButtonText: n("chart.series.add"), deleteButtonText: n("chart.series.delete"), renderTabName: i, children: ({
20415
20415
  field: l,
20416
20416
  index: c
20417
20417
  }) => /* @__PURE__ */ r.jsx(hz, { control: t, index: c, seriesItem: l, xAxisOptions: o }) });
@@ -20489,7 +20489,7 @@ function gz({
20489
20489
  const l = a.name.trim();
20490
20490
  return l || o + 1;
20491
20491
  };
20492
- return /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "x_axes", getItem: s, addButtonText: n("chart.x_axis.add"), deleteButtonText: n("chart.x_axis.delete"), renderTabName: i, children: ({
20492
+ return /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "x_axes", getItem: s, addButtonText: n("chart.x_axis.add"), deleteButtonText: n("chart.x_axis.delete"), renderTabName: i, children: ({
20493
20493
  field: a,
20494
20494
  index: o
20495
20495
  }) => /* @__PURE__ */ r.jsx(xz, { control: t, index: o }) });
@@ -20539,7 +20539,7 @@ function bz({
20539
20539
  watch: c,
20540
20540
  getValues: d,
20541
20541
  reset: u
20542
- } = be({
20542
+ } = ye({
20543
20543
  defaultValues: a
20544
20544
  });
20545
20545
  B(() => {
@@ -20629,7 +20629,7 @@ function jz(t, {
20629
20629
  throw console.error("[Migration failed]", n), n;
20630
20630
  }
20631
20631
  }
20632
- class wz extends ke {
20632
+ class wz extends Ce {
20633
20633
  constructor() {
20634
20634
  super(...arguments);
20635
20635
  N(this, "VERSION", 2);
@@ -21252,7 +21252,7 @@ function qz(t, e, n) {
21252
21252
  }],
21253
21253
  legend: Oz(c)
21254
21254
  };
21255
- return Se({}, d, Fz);
21255
+ return ke({}, d, Fz);
21256
21256
  }
21257
21257
  const Nz = {
21258
21258
  input: {
@@ -21294,9 +21294,9 @@ const Nz = {
21294
21294
  }
21295
21295
  };
21296
21296
  function Gz() {
21297
- return /* @__PURE__ */ r.jsxs(Ie, { width: 400, shadow: "md", children: [
21298
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: "指标说明" }) }),
21299
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(Pe, { fontSize: 14, sx: Wz, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
21297
+ return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
21298
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: "指标说明" }) }),
21299
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Pe, { fontSize: 14, sx: Wz, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
21300
21300
  /* @__PURE__ */ r.jsxs("tr", { children: [
21301
21301
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
21302
21302
  /* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -21332,7 +21332,7 @@ function Uz({
21332
21332
  }) {
21333
21333
  const {
21334
21334
  value: e
21335
- } = H(t.instanceData, "config"), n = C(() => je({}, e, ba), [e]), s = t.data, {
21335
+ } = H(t.instanceData, "config"), n = C(() => we({}, e, ba), [e]), s = t.data, {
21336
21336
  width: i,
21337
21337
  height: a
21338
21338
  } = t.viewport, {
@@ -21422,7 +21422,7 @@ const Kz = ({
21422
21422
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: "设置可以展示在基线图的指标,例如代码当量" })
21423
21423
  ] }),
21424
21424
  /* @__PURE__ */ r.jsx(A, { variant: "dashed", my: 10 }),
21425
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
21425
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
21426
21426
  field: a,
21427
21427
  index: o
21428
21428
  }) => /* @__PURE__ */ r.jsx(Kz, { control: t, index: o }) })
@@ -21470,7 +21470,7 @@ function Zz({
21470
21470
  watch: o,
21471
21471
  getValues: l,
21472
21472
  reset: c
21473
- } = be({
21473
+ } = ye({
21474
21474
  defaultValues: s
21475
21475
  });
21476
21476
  B(() => {
@@ -21550,7 +21550,7 @@ function rI(t, {
21550
21550
  throw console.error("[Migration failed]", n), n;
21551
21551
  }
21552
21552
  }
21553
- class sI extends ke {
21553
+ class sI extends Ce {
21554
21554
  constructor() {
21555
21555
  super(...arguments);
21556
21556
  N(this, "VERSION", 2);
@@ -21775,7 +21775,7 @@ const uI = ({
21775
21775
  })), [n]);
21776
21776
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
21777
21777
  /* @__PURE__ */ r.jsx(A, { mt: 15, variant: "dashed", label: s("viz.merico_stats.metric.labels"), labelPosition: "center" }),
21778
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "metrics", getItem: i, addButtonText: s("chart.tooltip.additional_metrics.add"), deleteButtonText: s("chart.tooltip.additional_metrics.delete"), renderTabName: a, deleteDisalbed: o, children: ({
21778
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "metrics", getItem: i, addButtonText: s("chart.tooltip.additional_metrics.add"), deleteButtonText: s("chart.tooltip.additional_metrics.delete"), renderTabName: a, deleteDisalbed: o, children: ({
21779
21779
  field: c,
21780
21780
  index: d
21781
21781
  }) => /* @__PURE__ */ r.jsx(dI, { control: t, index: d, variableOptions: l, watch: e }) })
@@ -21812,13 +21812,13 @@ function mI({
21812
21812
  set: n
21813
21813
  } = H(t.instanceData, "config"), {
21814
21814
  variables: s
21815
- } = t, i = C(() => Se({}, e, ya), [e]), {
21815
+ } = t, i = C(() => ke({}, e, ya), [e]), {
21816
21816
  control: a,
21817
21817
  handleSubmit: o,
21818
21818
  watch: l,
21819
21819
  getValues: c,
21820
21820
  reset: d
21821
- } = be({
21821
+ } = ye({
21822
21822
  defaultValues: i
21823
21823
  });
21824
21824
  B(() => {
@@ -21898,7 +21898,7 @@ const xI = {
21898
21898
  lang: "zh",
21899
21899
  resources: gI
21900
21900
  }];
21901
- class bI extends ke {
21901
+ class bI extends Ce {
21902
21902
  constructor() {
21903
21903
  super(...arguments);
21904
21904
  N(this, "VERSION", 2);
@@ -22060,7 +22060,7 @@ const vI = ({
22060
22060
  /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
22061
22061
  ] }),
22062
22062
  /* @__PURE__ */ r.jsx(A, { variant: "dashed", my: 10 }),
22063
- /* @__PURE__ */ r.jsx(Ce, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
22063
+ /* @__PURE__ */ r.jsx(ze, { control: t, watch: e, name: "tooltip.metrics", getItem: s, addButtonText: n("chart.tooltip.additional_metrics.add"), deleteButtonText: n("chart.tooltip.additional_metrics.delete"), renderTabName: i, children: ({
22064
22064
  field: a,
22065
22065
  index: o
22066
22066
  }) => /* @__PURE__ */ r.jsx(vI, { control: t, index: o }) })
@@ -22159,7 +22159,7 @@ function CI({
22159
22159
  } = y(), {
22160
22160
  value: n,
22161
22161
  set: s
22162
- } = H(t.instanceData, "config"), i = C(() => Se({}, n, _a), [n]), a = C(() => S.cloneDeep(i), [i]);
22162
+ } = H(t.instanceData, "config"), i = C(() => ke({}, n, _a), [n]), a = C(() => S.cloneDeep(i), [i]);
22163
22163
  B(() => {
22164
22164
  !pe(i, a) && (console.log("config malformed, resetting to defaults", i, a), s(a));
22165
22165
  }, [i, a]);
@@ -22169,7 +22169,7 @@ function CI({
22169
22169
  watch: c,
22170
22170
  getValues: d,
22171
22171
  reset: u
22172
- } = be({
22172
+ } = ye({
22173
22173
  defaultValues: a
22174
22174
  });
22175
22175
  B(() => {
@@ -22549,7 +22549,7 @@ function qI({
22549
22549
  value: s
22550
22550
  } = H(t.instanceData, "config"), {
22551
22551
  variables: i
22552
- } = t, a = C(() => je({}, s, _a), [s]), o = t.data, {
22552
+ } = t, a = C(() => we({}, s, _a), [s]), o = t.data, {
22553
22553
  width: l,
22554
22554
  height: c
22555
22555
  } = t.viewport;
@@ -22580,7 +22580,7 @@ const NI = {
22580
22580
  lang: "zh",
22581
22581
  resources: BI
22582
22582
  }];
22583
- class GI extends ke {
22583
+ class GI extends Ce {
22584
22584
  constructor() {
22585
22585
  super(...arguments);
22586
22586
  N(this, "VERSION", 1);
@@ -22659,7 +22659,7 @@ const QI = {
22659
22659
  viz: Md,
22660
22660
  color: [...HI, ...UI]
22661
22661
  }
22662
- }), cr = new cg(), De = {
22662
+ }), cr = new cg(), Me = {
22663
22663
  pluginManager: Nt("pluginManager"),
22664
22664
  vizManager: Nt("vizManager"),
22665
22665
  colorManager: Nt("colorManager"),
@@ -23264,9 +23264,9 @@ const eT = ({
23264
23264
  }, $ = v && (l == null ? void 0 : l.length) > 0, [V, K] = Q(""), ae = C(() => {
23265
23265
  if (!V)
23266
23266
  return d;
23267
- const J = V.toLowerCase(), X = (ve) => {
23268
- var ye;
23269
- return ((ye = ve.description) == null ? void 0 : ye.toLowerCase().includes(J)) || ve.label.toLowerCase().includes(J);
23267
+ const J = V.toLowerCase(), X = (je) => {
23268
+ var _e;
23269
+ return ((_e = je.description) == null ? void 0 : _e.toLowerCase().includes(J)) || je.label.toLowerCase().includes(J);
23270
23270
  };
23271
23271
  return d.filter(X);
23272
23272
  }, [V, d]);
@@ -23792,7 +23792,7 @@ const yT = ({
23792
23792
  control: a,
23793
23793
  handleSubmit: o,
23794
23794
  reset: l
23795
- } = be({
23795
+ } = ye({
23796
23796
  defaultValues: i.filters.values,
23797
23797
  // make sure the preview value is updated when filters are changed
23798
23798
  reValidateMode: "onBlur"
@@ -24040,11 +24040,11 @@ const vT = x.model("PanelStyleBorderMeta", {
24040
24040
  t.variables.remove(e);
24041
24041
  }
24042
24042
  }));
24043
- var Me = /* @__PURE__ */ ((t) => (t.Postgresql = "postgresql", t.MySQL = "mysql", t.HTTP = "http", t.Transform = "transform", t))(Me || {});
24043
+ var Le = /* @__PURE__ */ ((t) => (t.Postgresql = "postgresql", t.MySQL = "mysql", t.HTTP = "http", t.Transform = "transform", t))(Le || {});
24044
24044
  const zT = x.model("QueryMeta", {
24045
24045
  id: x.string,
24046
24046
  name: x.string,
24047
- type: x.enumeration("DataSourceType", [Me.Postgresql, Me.MySQL, Me.HTTP, Me.Transform]),
24047
+ type: x.enumeration("DataSourceType", [Le.Postgresql, Le.MySQL, Le.HTTP, Le.Transform]),
24048
24048
  key: x.string,
24049
24049
  sql: x.string,
24050
24050
  pre_process: x.optional(x.string, ""),
@@ -24054,7 +24054,7 @@ const zT = x.model("QueryMeta", {
24054
24054
  dep_query_ids: x.optional(x.array(x.string), [])
24055
24055
  }).views((t) => ({
24056
24056
  get valid() {
24057
- return t.id && t.type && t.key && t.name ? t.type === Me.HTTP ? !!t.pre_process : !!t.sql : !1;
24057
+ return t.id && t.type && t.key && t.name ? t.type === Le.HTTP ? !!t.pre_process : !!t.sql : !1;
24058
24058
  },
24059
24059
  get json() {
24060
24060
  const {
@@ -24288,7 +24288,7 @@ const zT = x.model("QueryMeta", {
24288
24288
  t.value = e;
24289
24289
  }
24290
24290
  }));
24291
- var Re = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Re || {});
24291
+ var be = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(be || {});
24292
24292
  const Fd = x.model("FilterCheckboxConfigMeta", {
24293
24293
  _name: x.literal("checkbox"),
24294
24294
  description: x.optional(x.string, ""),
@@ -24372,8 +24372,8 @@ const LT = x.model("FilterDateRangeConfigMeta", {
24372
24372
  })).actions((t) => ({
24373
24373
  setFilterValue(e) {
24374
24374
  try {
24375
- const n = Le(t);
24376
- Le(n, 2).setValueByKey(n.key, e);
24375
+ const n = Ee(t);
24376
+ Ee(n, 2).setValueByKey(n.key, e);
24377
24377
  } catch (n) {
24378
24378
  console.error(n);
24379
24379
  }
@@ -24452,7 +24452,7 @@ const LT = x.model("FilterDateRangeConfigMeta", {
24452
24452
  return Ge(t).content;
24453
24453
  },
24454
24454
  get filter() {
24455
- return Le(t);
24455
+ return Ee(t);
24456
24456
  },
24457
24457
  get usingQuery() {
24458
24458
  return !!t.options_query_id;
@@ -24522,7 +24522,7 @@ const LT = x.model("FilterDateRangeConfigMeta", {
24522
24522
  t.min_width = e;
24523
24523
  },
24524
24524
  setDefaultSelection() {
24525
- const e = Ge(t).content.filters, n = Le(t).key, s = new Set(t.options.map((a) => a.value)), i = (e.values[n] ?? []).filter((a) => s.has(a));
24525
+ const e = Ge(t).content.filters, n = Ee(t).key, s = new Set(t.options.map((a) => a.value)), i = (e.values[n] ?? []).filter((a) => s.has(a));
24526
24526
  i.length > 0 ? e.setValueByKey(n, i) : e.setValueByKey(n, t.default_selection);
24527
24527
  }
24528
24528
  })).actions((t) => ({
@@ -24587,13 +24587,13 @@ const LT = x.model("FilterDateRangeConfigMeta", {
24587
24587
  },
24588
24588
  setDefaultSelection() {
24589
24589
  var a;
24590
- const e = Ge(t).content.filters, n = Le(t).key, s = e.values[n], i = (a = t.options.find((o) => o.value === s)) == null ? void 0 : a.value;
24590
+ const e = Ge(t).content.filters, n = Ee(t).key, s = e.values[n], i = (a = t.options.find((o) => o.value === s)) == null ? void 0 : a.value;
24591
24591
  i ? e.setValueByKey(n, i) : e.setValueByKey(n, t.default_selection);
24592
24592
  }
24593
24593
  })).actions((t) => ({
24594
24594
  afterCreate() {
24595
24595
  gt(t, tt(() => Xt(t.default_selection), t.setDefaultSelection, {
24596
- fireImmediately: !0,
24596
+ fireImmediately: !1,
24597
24597
  delay: 0
24598
24598
  }));
24599
24599
  }
@@ -24747,7 +24747,7 @@ const Qd = x.compose("FilterTreeSelectConfigMeta", x.model({
24747
24747
  t.treeCheckStrictly = e;
24748
24748
  },
24749
24749
  applyDefaultSelection() {
24750
- const e = Le(t, 1).key, n = t.contentModel.filters, s = n.values[e], i = new Set(t.plainData.map((o) => o.value)), a = (s ?? []).filter((o) => i.has(o));
24750
+ const e = Ee(t, 1).key, n = t.contentModel.filters, s = n.values[e], i = new Set(t.plainData.map((o) => o.value)), a = (s ?? []).filter((o) => i.has(o));
24751
24751
  a.length > 0 ? n.setValueByKey(e, a) : n.setValueByKey(e, t.defaultSelection);
24752
24752
  },
24753
24753
  afterCreate() {
@@ -24770,7 +24770,7 @@ const Qd = x.compose("FilterTreeSelectConfigMeta", x.model({
24770
24770
  visibleInViewsIDs: x.array(x.string),
24771
24771
  auto_submit: x.optional(x.boolean, !1),
24772
24772
  default_value_func: x.optional(x.string, ""),
24773
- type: x.enumeration("DashboardFilterType", [Re.Select, Re.MultiSelect, Re.TreeSelect, Re.TextInput, Re.Checkbox, Re.DateRange]),
24773
+ type: x.enumeration("DashboardFilterType", [be.Select, be.MultiSelect, be.TreeSelect, be.TextInput, be.Checkbox, be.DateRange]),
24774
24774
  config: x.union(Bd, Nd, Qd, Wd, Fd, qd)
24775
24775
  }).views((t) => ({
24776
24776
  get contentModel() {
@@ -24784,7 +24784,7 @@ const Qd = x.compose("FilterTreeSelectConfigMeta", x.model({
24784
24784
  return Array.isArray(e) ? [...e] : e;
24785
24785
  },
24786
24786
  get usingDefaultValue() {
24787
- return t.type !== Re.TreeSelect;
24787
+ return t.type !== be.TreeSelect;
24788
24788
  },
24789
24789
  get usingDefaultValueFunc() {
24790
24790
  return !!t.default_value_func;
@@ -24793,7 +24793,7 @@ const Qd = x.compose("FilterTreeSelectConfigMeta", x.model({
24793
24793
  return this.filters.formattedDefaultValues[t.key];
24794
24794
  },
24795
24795
  get auto_submit_supported() {
24796
- return [Re.Select, Re.Checkbox, Re.DateRange].includes(t.type);
24796
+ return [be.Select, be.Checkbox, be.DateRange].includes(t.type);
24797
24797
  }
24798
24798
  })).views((t) => ({
24799
24799
  get json() {
@@ -24842,22 +24842,22 @@ const Qd = x.compose("FilterTreeSelectConfigMeta", x.model({
24842
24842
  },
24843
24843
  setType(e) {
24844
24844
  switch (e) {
24845
- case Re.Select:
24845
+ case be.Select:
24846
24846
  t.config = $T();
24847
24847
  break;
24848
- case Re.MultiSelect:
24848
+ case be.MultiSelect:
24849
24849
  t.config = AT();
24850
24850
  break;
24851
- case Re.TreeSelect:
24851
+ case be.TreeSelect:
24852
24852
  t.config = FT();
24853
24853
  break;
24854
- case Re.TextInput:
24854
+ case be.TextInput:
24855
24855
  t.config = Gd();
24856
24856
  break;
24857
- case Re.Checkbox:
24857
+ case be.Checkbox:
24858
24858
  t.config = MT();
24859
24859
  break;
24860
- case Re.DateRange:
24860
+ case be.DateRange:
24861
24861
  t.config = ET();
24862
24862
  break;
24863
24863
  }
@@ -24905,7 +24905,7 @@ const Ud = x.model("ViewDivisionConfig", {
24905
24905
  const {
24906
24906
  enabled: e,
24907
24907
  func_content: n
24908
- } = t, s = Le(t, 2), i = Ge(t);
24908
+ } = t, s = Ee(t, 2), i = Ge(t);
24909
24909
  if (!e)
24910
24910
  return s.name;
24911
24911
  try {
@@ -25107,7 +25107,7 @@ const Ud = x.model("ViewDivisionConfig", {
25107
25107
  const n = t.panelIDs.filter((s) => s !== e);
25108
25108
  t.panelIDs.length = 0, t.panelIDs.push(...n);
25109
25109
  }
25110
- })), hn = "11.10.0", I2 = {
25110
+ })), hn = "11.10.0", T2 = {
25111
25111
  definition: {
25112
25112
  sqlSnippets: [],
25113
25113
  queries: [],
@@ -25131,7 +25131,7 @@ const Ud = x.model("ViewDivisionConfig", {
25131
25131
  }]
25132
25132
  }, Jd = x.model("DataSourceMetaModel", {
25133
25133
  id: x.string,
25134
- type: x.enumeration("DataSourceType", [Me.HTTP, Me.MySQL, Me.Postgresql]),
25134
+ type: x.enumeration("DataSourceType", [Le.HTTP, Le.MySQL, Le.Postgresql]),
25135
25135
  key: x.string,
25136
25136
  config: x.frozen()
25137
25137
  }), QT = x.model("DataSourcesMetaModel", {
@@ -25215,7 +25215,7 @@ const eu = x.compose("ViewRenderModel", GT, x.model({
25215
25215
  return t.type !== W.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
25216
25216
  },
25217
25217
  get contentModel() {
25218
- return Le(t, 3);
25218
+ return Ee(t, 3);
25219
25219
  },
25220
25220
  get panels() {
25221
25221
  if (t.type !== W.Tabs)
@@ -25678,13 +25678,13 @@ const ZT = zT.views((t) => ({
25678
25678
  return console.groupCollapsed(`Request config for: ${s}`), console.log(a), console.groupEnd(), JSON.stringify(a);
25679
25679
  },
25680
25680
  get typedAsSQL() {
25681
- return [Me.Postgresql, Me.MySQL].includes(t.type);
25681
+ return [Le.Postgresql, Le.MySQL].includes(t.type);
25682
25682
  },
25683
25683
  get typedAsHTTP() {
25684
- return [Me.HTTP].includes(t.type);
25684
+ return [Le.HTTP].includes(t.type);
25685
25685
  },
25686
25686
  get isTransform() {
25687
- return t.type === Me.Transform;
25687
+ return t.type === Le.Transform;
25688
25688
  },
25689
25689
  get reQueryKey() {
25690
25690
  const {
@@ -25715,7 +25715,7 @@ const ZT = zT.views((t) => ({
25715
25715
  };
25716
25716
  },
25717
25717
  get queries() {
25718
- return Le(t, 2);
25718
+ return Ee(t, 2);
25719
25719
  },
25720
25720
  get inUse() {
25721
25721
  return this.queries.isQueryInUse(t.id);
@@ -25895,7 +25895,7 @@ const ZT = zT.views((t) => ({
25895
25895
  return t.current.filter((e) => e.id && e.key).map((e) => e.json);
25896
25896
  },
25897
25897
  get contentModel() {
25898
- return Le(t, 1);
25898
+ return Ee(t, 1);
25899
25899
  },
25900
25900
  get visibleQueryIDSet() {
25901
25901
  const {
@@ -26094,7 +26094,7 @@ const hu = x.model("LayoutsRenderModel", {
26094
26094
  }
26095
26095
  })), tD = DT.views((t) => ({
26096
26096
  isADuplicatedKey(e) {
26097
- return !e || e === t.key ? !1 : !!Le(t, 2).findByKey(e);
26097
+ return !e || e === t.key ? !1 : !!Ee(t, 2).findByKey(e);
26098
26098
  }
26099
26099
  })), mu = x.model("SQLSnippetsRenderModel", {
26100
26100
  current: x.optional(x.array(tD), [])
@@ -26235,7 +26235,7 @@ const pu = z(() => {
26235
26235
  panel: s
26236
26236
  } = cn();
26237
26237
  return aD(s.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
26238
- /* @__PURE__ */ r.jsx(we, { opened: e, onClose: () => n(!1), title: s.title.show ? s.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(Ms, { value: s.description, styles: {
26238
+ /* @__PURE__ */ r.jsx(Se, { opened: e, onClose: () => n(!1), title: s.title.show ? s.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(Ms, { value: s.description, styles: {
26239
26239
  root: {
26240
26240
  border: "none"
26241
26241
  },
@@ -26299,7 +26299,7 @@ class cD {
26299
26299
  N(this, "runningMigration");
26300
26300
  N(this, "panelModel");
26301
26301
  N(this, "status", "notStarted");
26302
- this.panelModel = e.getRequired(De.instanceScope.panelModel), this.vizInstance = e.getRequired(De.instanceScope.vizInstance), this.operationManager = e.getRequired(De.instanceScope.operationManager), this.triggerManager = e.getRequired(De.instanceScope.triggerManager), this.vizManager = e.getRequired(De.vizManager);
26302
+ this.panelModel = e.getRequired(Me.instanceScope.panelModel), this.vizInstance = e.getRequired(Me.instanceScope.vizInstance), this.operationManager = e.getRequired(Me.instanceScope.operationManager), this.triggerManager = e.getRequired(Me.instanceScope.triggerManager), this.vizManager = e.getRequired(Me.vizManager);
26303
26303
  }
26304
26304
  async createMigrationTask() {
26305
26305
  const e = [];
@@ -26344,15 +26344,15 @@ function gu(t) {
26344
26344
  panel: e
26345
26345
  } = cn();
26346
26346
  return Ne((n) => {
26347
- const s = n.getRequired(De.vizManager), i = s.resolveComponent(t.viz.type);
26348
- return n.createScoped().provideFactory(De.instanceScope.vizInstance, () => s.getOrCreateInstance(t)).provideFactory(De.instanceScope.interactionManager, (a) => {
26349
- const o = a.getRequired(De.instanceScope.vizInstance);
26347
+ const s = n.getRequired(Me.vizManager), i = s.resolveComponent(t.viz.type);
26348
+ return n.createScoped().provideFactory(Me.instanceScope.vizInstance, () => s.getOrCreateInstance(t)).provideFactory(Me.instanceScope.interactionManager, (a) => {
26349
+ const o = a.getRequired(Me.instanceScope.vizInstance);
26350
26350
  return new Bi(o, i, ks);
26351
- }).provideFactory(De.instanceScope.operationManager, (a) => a.getRequired(De.instanceScope.interactionManager).operationManager).provideFactory(De.instanceScope.triggerManager, (a) => a.getRequired(De.instanceScope.interactionManager).triggerManager).provideValue(De.instanceScope.panelModel, e).provideFactory(De.instanceScope.migrator, (a) => new cD(a));
26351
+ }).provideFactory(Me.instanceScope.operationManager, (a) => a.getRequired(Me.instanceScope.interactionManager).operationManager).provideFactory(Me.instanceScope.triggerManager, (a) => a.getRequired(Me.instanceScope.interactionManager).triggerManager).provideValue(Me.instanceScope.panelModel, e).provideFactory(Me.instanceScope.migrator, (a) => new cD(a));
26352
26352
  }, [t.viz.type, t.viz.conf]);
26353
26353
  }
26354
26354
  function fu(t) {
26355
- const [e, n] = Q(!1), s = Ed().getRequired(De.instanceScope.migrator);
26355
+ const [e, n] = Q(!1), s = Ed().getRequired(Me.instanceScope.migrator);
26356
26356
  return jr(async () => {
26357
26357
  const i = s.status === Kr.notStarted;
26358
26358
  n(s.status === Kr.done), s.status === Kr.notStarted && s.runMigration().then((a) => {
@@ -26363,7 +26363,7 @@ function fu(t) {
26363
26363
  }, [s]), e;
26364
26364
  }
26365
26365
  function bu(t, e) {
26366
- const n = Ed().getRequired(De.instanceScope.vizInstance);
26366
+ const n = Ed().getRequired(Me.instanceScope.vizInstance);
26367
26367
  return B(() => (n.instanceData.setItem(null, e.viz.conf), n.instanceData.watchItem(null, (s) => {
26368
26368
  t(s);
26369
26369
  })), [t, e.viz.type]), n;
@@ -26564,7 +26564,7 @@ const vu = z(({
26564
26564
  panel: n,
26565
26565
  exitFullScreen: s
26566
26566
  }) {
26567
- return /* @__PURE__ */ r.jsx(we, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(I, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(gm, { size: 20 }), children: "Exit fullscreen" }), styles: jD, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
26567
+ return /* @__PURE__ */ r.jsx(Se, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(I, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(gm, { size: 20 }), children: "Exit fullscreen" }), styles: jD, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
26568
26568
  flexGrow: 1,
26569
26569
  flexShrink: 0
26570
26570
  }, children: /* @__PURE__ */ r.jsx(vu, { view: e, panel: n }) }) });
@@ -26705,7 +26705,7 @@ const MD = z(({
26705
26705
  ref: o,
26706
26706
  downloadScreenshot: l
26707
26707
  } = Ca(e);
26708
- return /* @__PURE__ */ r.jsx(we, { size: s.width, centered: !0, opened: i, onClose: a, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26708
+ return /* @__PURE__ */ r.jsx(Se, { size: s.width, centered: !0, opened: i, onClose: a, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26709
26709
  /* @__PURE__ */ r.jsx(M, { children: s.custom_modal_title.value }),
26710
26710
  /* @__PURE__ */ r.jsx(wu, { downloadScreenshot: l })
26711
26711
  ] }), trapFocus: !0, onDragStart: (c) => {
@@ -26830,7 +26830,7 @@ const PD = z(({
26830
26830
  "> div:not(.mantine-Modal-root)": {
26831
26831
  height: "100%"
26832
26832
  }
26833
- }, children: /* @__PURE__ */ r.jsx(we, { size: n.width, opened: !0, onClose: S.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26833
+ }, children: /* @__PURE__ */ r.jsx(Se, { size: n.width, opened: !0, onClose: S.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26834
26834
  /* @__PURE__ */ r.jsx(M, { children: n.custom_modal_title.value }),
26835
26835
  /* @__PURE__ */ r.jsx(wu, { downloadScreenshot: o })
26836
26836
  ] }), trapFocus: !0, onDragStart: (l) => {
@@ -27024,7 +27024,7 @@ const PD = z(({
27024
27024
  ] }) });
27025
27025
  });
27026
27026
  var BD = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(BD || {});
27027
- const T2 = {
27027
+ const D2 = {
27028
27028
  [W.Division]: "Division",
27029
27029
  [W.Tabs]: "Tabs",
27030
27030
  [W.Modal]: "Modal"
@@ -27032,7 +27032,7 @@ const T2 = {
27032
27032
  [W.Division]: "rgba(255, 0, 0, 0.2)",
27033
27033
  [W.Modal]: "rgba(0, 0, 0, 0.2)",
27034
27034
  [W.Tabs]: "rgba(255, 200, 100, 0.4)"
27035
- }, D2 = {
27035
+ }, M2 = {
27036
27036
  [W.Division]: "#ff4000",
27037
27037
  [W.Modal]: "#000",
27038
27038
  [W.Tabs]: "#ffad18"
@@ -27062,7 +27062,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
27062
27062
  }));
27063
27063
  },
27064
27064
  get selects() {
27065
- return t.current.filter((e) => e.type === Re.Select).map((e) => ({
27065
+ return t.current.filter((e) => e.type === be.Select).map((e) => ({
27066
27066
  label: e.label ?? e.id,
27067
27067
  value: e.id
27068
27068
  }));
@@ -27135,7 +27135,7 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
27135
27135
  return S.sortBy(e, (n) => n.label.toLowerCase());
27136
27136
  },
27137
27137
  get optionsWithoutTransform() {
27138
- const e = t.current.filter((n) => n.type !== Me.Transform).map((n) => ({
27138
+ const e = t.current.filter((n) => n.type !== Le.Transform).map((n) => ({
27139
27139
  value: n.id,
27140
27140
  label: n.name,
27141
27141
  _type: "query"
@@ -27250,13 +27250,13 @@ const QD = x.compose("FiltersModel", lu, x.model("FiltersModel", {
27250
27250
  error: x.frozen()
27251
27251
  }).views((t) => ({
27252
27252
  get keywords() {
27253
- return Le(t, 1);
27253
+ return Ee(t, 1);
27254
27254
  },
27255
27255
  get keywordString() {
27256
27256
  const {
27257
27257
  table_name: e,
27258
27258
  table_schema: n
27259
- } = Le(t, 1);
27259
+ } = Ee(t, 1);
27260
27260
  return `${n}||${e}`;
27261
27261
  }
27262
27262
  })).views((t) => ({
@@ -27777,7 +27777,7 @@ const rM = x.model("EditorModel", {
27777
27777
  }
27778
27778
  })).actions((t) => ({
27779
27779
  removeSelf() {
27780
- Le(t, 2).removeByID(t.id);
27780
+ Ee(t, 2).removeByID(t.id);
27781
27781
  }
27782
27782
  })).actions((t) => ({
27783
27783
  moveToView(e, n) {
@@ -28041,14 +28041,14 @@ const cM = x.model({
28041
28041
  return !pe(se(t, e), se(t.origin, e));
28042
28042
  },
28043
28043
  get context() {
28044
- const e = Le(t).context.current;
28044
+ const e = Ee(t).context.current;
28045
28045
  return {
28046
28046
  ...t.mock_context.current,
28047
28047
  ...e
28048
28048
  };
28049
28049
  },
28050
28050
  get payloadForSQL() {
28051
- const e = Le(t).globalSQLSnippets, n = {
28051
+ const e = Ee(t).globalSQLSnippets, n = {
28052
28052
  context: this.context,
28053
28053
  filters: t.filters.values
28054
28054
  };
@@ -28059,7 +28059,7 @@ const cM = x.model({
28059
28059
  };
28060
28060
  },
28061
28061
  get payloadForViz() {
28062
- const e = Le(t).context.current;
28062
+ const e = Ee(t).context.current;
28063
28063
  return {
28064
28064
  context: {
28065
28065
  ...t.mock_context.current,
@@ -28309,14 +28309,14 @@ const cM = x.model({
28309
28309
  postProcessor(t) {
28310
28310
  delete t.origin;
28311
28311
  const e = ec(t.queries.current.map((n) => vl(n, ["id", "key", "type", "sql"])));
28312
- return je({}, {
28312
+ return we({}, {
28313
28313
  queries: {
28314
28314
  current: e
28315
28315
  }
28316
28316
  }, t);
28317
28317
  }
28318
28318
  });
28319
- function M2(t, e) {
28319
+ function L2(t, e) {
28320
28320
  e.filters && Qe(t.filters.current, e.filters);
28321
28321
  }
28322
28322
  function dM({
@@ -28498,7 +28498,7 @@ const mM = {
28498
28498
  x_max_days: "{{max_days}} days max",
28499
28499
  default_value: "Default value",
28500
28500
  default_by_shortcut: "Default by shortcut",
28501
- defualt_by_shortcut_placeholder: "Priors default value",
28501
+ default_by_shortcut_placeholder: "Priors default value",
28502
28502
  start_date: "Start date",
28503
28503
  end_date: "End date",
28504
28504
  shortcut: {
@@ -29399,7 +29399,7 @@ const mM = {
29399
29399
  x_max_days: "最多可选{{max_days}}天",
29400
29400
  default_value: "默认日期范围(具体)",
29401
29401
  default_by_shortcut: "默认日期范围(快捷方式)",
29402
- defualt_by_shortcut_placeholder: "优先于左侧",
29402
+ default_by_shortcut_placeholder: "优先于左侧",
29403
29403
  start_date: "开始日期",
29404
29404
  end_date: "结束日期",
29405
29405
  shortcut: {
@@ -30334,7 +30334,7 @@ function zu(t, e) {
30334
30334
  }, [t]);
30335
30335
  }
30336
30336
  function Iu(t) {
30337
- return L.useCallback((e) => e.provideValue(De.pluginManager, t.pluginManager).provideValue(De.vizManager, t.vizManager).provideValue(De.colorManager, t.colorManager), []);
30337
+ return L.useCallback((e) => e.provideValue(Me.pluginManager, t.pluginManager).provideValue(Me.vizManager, t.vizManager).provideValue(Me.colorManager, t.colorManager), []);
30338
30338
  }
30339
30339
  const xM = z(({
30340
30340
  saveDashboardChanges: t
@@ -30443,7 +30443,7 @@ const xM = z(({
30443
30443
  getValues: c,
30444
30444
  reset: d,
30445
30445
  formState: u
30446
- } = be({
30446
+ } = ye({
30447
30447
  defaultValues: i
30448
30448
  }), {
30449
30449
  fields: h,
@@ -30460,9 +30460,9 @@ const xM = z(({
30460
30460
  return "Screen sizes should be unique by min width";
30461
30461
  }
30462
30462
  }
30463
- }), f = l("list"), v = h.map((X, ve) => ({
30463
+ }), f = l("list"), v = h.map((X, je) => ({
30464
30464
  ...X,
30465
- ...f[ve]
30465
+ ...f[je]
30466
30466
  })), T = () => {
30467
30467
  m({
30468
30468
  id: Qt(),
@@ -30472,11 +30472,11 @@ const xM = z(({
30472
30472
  }, E = ({
30473
30473
  list: X
30474
30474
  }) => {
30475
- const ve = X.filter((ye) => Number.isFinite(ye.breakpoint));
30476
- s.updateLayoutSetsInfo(ve), t();
30475
+ const je = X.filter((_e) => Number.isFinite(_e.breakpoint));
30476
+ s.updateLayoutSetsInfo(je), t();
30477
30477
  }, $ = c(), V = C(() => {
30478
30478
  const X = {
30479
- list: $.list.filter((ve) => !!ve.name && Number.isFinite(ve.breakpoint))
30479
+ list: $.list.filter((je) => !!je.name && Number.isFinite(je.breakpoint))
30480
30480
  };
30481
30481
  return !pe(X, i);
30482
30482
  }, [$, i]), K = (J = (ae = u.errors.list) == null ? void 0 : ae.root) == null ? void 0 : J.message;
@@ -30494,17 +30494,17 @@ const xM = z(({
30494
30494
  /* @__PURE__ */ r.jsx("th", {})
30495
30495
  ] }) }),
30496
30496
  /* @__PURE__ */ r.jsxs("tbody", { children: [
30497
- v.map((X, ve) => /* @__PURE__ */ r.jsxs("tr", { children: [
30498
- /* @__PURE__ */ r.jsx("th", { children: X.id === "basis" ? X.name : /* @__PURE__ */ r.jsx(g, { name: `list.${ve}.name`, control: a, render: ({
30499
- field: ye
30497
+ v.map((X, je) => /* @__PURE__ */ r.jsxs("tr", { children: [
30498
+ /* @__PURE__ */ r.jsx("th", { children: X.id === "basis" ? X.name : /* @__PURE__ */ r.jsx(g, { name: `list.${je}.name`, control: a, render: ({
30499
+ field: _e
30500
30500
  }) => /* @__PURE__ */ r.jsx(D, { size: "xs", label: "", required: !0, sx: {
30501
30501
  flex: 1
30502
- }, ...ye }) }) }),
30502
+ }, ..._e }) }) }),
30503
30503
  /* @__PURE__ */ r.jsx("td", { children: X.id === "basis" ? /* @__PURE__ */ r.jsxs(w, { ff: "monospace", children: [
30504
30504
  X.breakpoint,
30505
30505
  "px"
30506
- ] }) : /* @__PURE__ */ r.jsx(g, { name: `list.${ve}.breakpoint`, control: a, render: ({
30507
- field: ye
30506
+ ] }) : /* @__PURE__ */ r.jsx(g, { name: `list.${je}.breakpoint`, control: a, render: ({
30507
+ field: _e
30508
30508
  }) => /* @__PURE__ */ r.jsx(oe, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r.jsx(w, { color: "dimmed", children: "px" }), rightSectionProps: {
30509
30509
  style: {
30510
30510
  width: "30px"
@@ -30516,8 +30516,8 @@ const xM = z(({
30516
30516
  input: {
30517
30517
  paddingRight: "30px"
30518
30518
  }
30519
- }, ...ye }) }) }),
30520
- /* @__PURE__ */ r.jsx("td", { children: X.id !== "basis" && /* @__PURE__ */ r.jsx(Z, { mx: "auto", size: "xs", variant: "subtle", color: "red", onClick: () => p(ve), children: /* @__PURE__ */ r.jsx(Yt, {}) }) })
30519
+ }, ..._e }) }) }),
30520
+ /* @__PURE__ */ r.jsx("td", { children: X.id !== "basis" && /* @__PURE__ */ r.jsx(Z, { mx: "auto", size: "xs", variant: "subtle", color: "red", onClick: () => p(je), children: /* @__PURE__ */ r.jsx(Yt, {}) }) })
30521
30521
  ] }, X.id)),
30522
30522
  /* @__PURE__ */ r.jsx("tr", { style: {
30523
30523
  backgroundColor: "transparent"
@@ -30570,7 +30570,7 @@ const xM = z(({
30570
30570
  mantissa: 0
30571
30571
  }) })
30572
30572
  ] }),
30573
- /* @__PURE__ */ r.jsx(we, { opened: e, onClose: c, title: t("breakpoint.label", {
30573
+ /* @__PURE__ */ r.jsx(Se, { opened: e, onClose: c, title: t("breakpoint.label", {
30574
30574
  count: 2
30575
30575
  }), withinPortal: !0, zIndex: 320, size: 600, closeOnClickOutside: !1, children: /* @__PURE__ */ r.jsx(bM, { done: c }) })
30576
30576
  ] });
@@ -30754,7 +30754,7 @@ const TM = z(({
30754
30754
  watch: c,
30755
30755
  setError: d,
30756
30756
  clearErrors: u
30757
- } = be({
30757
+ } = ye({
30758
30758
  defaultValues: {
30759
30759
  content: null
30760
30760
  }
@@ -30848,7 +30848,7 @@ const TM = z(({
30848
30848
  ...Xo
30849
30849
  // background: 'rgb(231, 245, 255)',
30850
30850
  }, children: t("import.label") }),
30851
- /* @__PURE__ */ r.jsx(we, { opened: e, onClose: s, title: t("import.title"), trapFocus: !0, onDragStart: (u) => {
30851
+ /* @__PURE__ */ r.jsx(Se, { opened: e, onClose: s, title: t("import.title"), trapFocus: !0, onDragStart: (u) => {
30852
30852
  u.stopPropagation();
30853
30853
  }, withinPortal: !0, zIndex: 320, size: i ? "90vw" : 500, children: /* @__PURE__ */ r.jsx(TM, { onSuccess: s, stretchModal: a, shrinkModal: o }) })
30854
30854
  ] });
@@ -31204,9 +31204,9 @@ const ZM = mh(({
31204
31204
  top: 0,
31205
31205
  right: 0
31206
31206
  }, children: /* @__PURE__ */ r.jsx(ym, { size: 12 }) }),
31207
- /* @__PURE__ */ r.jsxs(Ie, { shadow: "xl", withinPortal: !0, children: [
31208
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(w, { children: t.label }) }),
31209
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(ct.Item, { icon: o.icon, children: o.text }, o.key)) }) })
31207
+ /* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
31208
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(w, { children: t.label }) }),
31209
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(ct.Item, { icon: o.icon, children: o.text }, o.key)) }) })
31210
31210
  ] }),
31211
31211
  /* @__PURE__ */ r.jsx(ho, { type: "source", position: n, isConnectable: e })
31212
31212
  ] });
@@ -31231,7 +31231,7 @@ const eL = {
31231
31231
  t: n
31232
31232
  } = y();
31233
31233
  return /* @__PURE__ */ r.jsx(
31234
- we,
31234
+ Se,
31235
31235
  {
31236
31236
  size: "96vw",
31237
31237
  opened: t,
@@ -31387,14 +31387,21 @@ const iL = z(() => {
31387
31387
  borderTop: "1px solid #eee"
31388
31388
  }, children: /* @__PURE__ */ r.jsx(I, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(kr, { size: 20 }), onClick: () => e.editor.open([]), children: t("common.titles.settings") }) }) })
31389
31389
  ] });
31390
- }), oL = ["function getDefaultValue(filter, utils, context) {", ' return "";', "}"].join(`
31390
+ }), oL = {
31391
+ [be.Checkbox]: "true",
31392
+ [be.DateRange]: "[new Date('2023-01-01 00:00:00'), new Date('2024-01-01 00:00:00')]",
31393
+ [be.MultiSelect]: "[]",
31394
+ [be.Select]: '""',
31395
+ [be.TreeSelect]: "[]",
31396
+ [be.TextInput]: '""'
31397
+ }, lL = (t) => ["function getDefaultValue(filter, utils, context) {", ` return ${oL[t]};`, "}"].join(`
31391
31398
  `), rr = z(({
31392
31399
  filter: t
31393
31400
  }) => {
31394
31401
  const {
31395
31402
  t: e
31396
31403
  } = y();
31397
- return /* @__PURE__ */ r.jsx(sd, { label: "", title: e("filter.field.custom_default_value.title"), triggerLabel: e("filter.field.custom_default_value.trigger"), value: t.default_value_func, onChange: t.setDefaultValueFunc, defaultValue: oL, triggerButtonProps: {
31404
+ return /* @__PURE__ */ r.jsx(sd, { label: "", title: e("filter.field.custom_default_value.title"), triggerLabel: e("filter.field.custom_default_value.trigger"), value: t.default_value_func, onChange: t.setDefaultValueFunc, defaultValue: lL(t.type), triggerButtonProps: {
31398
31405
  size: "xs",
31399
31406
  color: "grape",
31400
31407
  sx: {
@@ -31406,7 +31413,7 @@ const iL = z(() => {
31406
31413
  /* @__PURE__ */ r.jsx(ct.Item, { children: e("filter.field.custom_default_value.tip_1") }),
31407
31414
  /* @__PURE__ */ r.jsx(ct.Item, { children: e("filter.field.custom_default_value.tip_2") })
31408
31415
  ] }) }) });
31409
- }), lL = z(function({
31416
+ }), cL = z(function({
31410
31417
  filter: e
31411
31418
  }) {
31412
31419
  const {
@@ -31424,7 +31431,7 @@ const iL = z(() => {
31424
31431
  }
31425
31432
  } })
31426
31433
  ] });
31427
- }), cL = [{
31434
+ }), dL = [{
31428
31435
  label: "2022",
31429
31436
  value: "YYYY"
31430
31437
  }, {
@@ -31439,7 +31446,7 @@ const iL = z(() => {
31439
31446
  }, {
31440
31447
  label: "2022-01-01",
31441
31448
  value: "YYYY-MM-DD"
31442
- }], dL = z(function({
31449
+ }], uL = z(function({
31443
31450
  filter: e
31444
31451
  }) {
31445
31452
  const {
@@ -31459,7 +31466,7 @@ const iL = z(() => {
31459
31466
  /* @__PURE__ */ r.jsx(ee, { checked: s.allowSingleDateInRange, onChange: (a) => s.setAllowSingleDateInRange(a.currentTarget.checked), label: n("filter.widget.date_range.allow_single_date") })
31460
31467
  ] }),
31461
31468
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
31462
- /* @__PURE__ */ r.jsx(F, { data: cL, label: n("filter.widget.date_range.display_format"), value: s.inputFormat, onChange: s.setInputFormat }),
31469
+ /* @__PURE__ */ r.jsx(F, { data: dL, label: n("filter.widget.date_range.display_format"), value: s.inputFormat, onChange: s.setInputFormat }),
31463
31470
  /* @__PURE__ */ r.jsx(oe, { label: n("filter.widget.date_range.max_days"), min: 0, value: s.max_days, onChange: s.setMaxDays, hideControls: !0 })
31464
31471
  ] }),
31465
31472
  /* @__PURE__ */ r.jsxs(b, { children: [
@@ -31498,7 +31505,7 @@ const iL = z(() => {
31498
31505
  display: "block"
31499
31506
  }
31500
31507
  } });
31501
- }), uL = `
31508
+ }), hL = `
31502
31509
  // row
31503
31510
  {
31504
31511
  label: string;
@@ -31511,9 +31518,9 @@ const iL = z(() => {
31511
31518
  } = y(), [e, n] = Q(!1);
31512
31519
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
31513
31520
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
31514
- /* @__PURE__ */ r.jsx(vr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: uL }) })
31521
+ /* @__PURE__ */ r.jsx(vr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: hL }) })
31515
31522
  ] });
31516
- }, hL = z(function({
31523
+ }, mL = z(function({
31517
31524
  filter: e
31518
31525
  }) {
31519
31526
  const {
@@ -31580,7 +31587,7 @@ const iL = z(() => {
31580
31587
  /* @__PURE__ */ r.jsx(Da, { value: s.options_query_id, onChange: s.setOptionsQueryID }),
31581
31588
  /* @__PURE__ */ r.jsx(Eu, {})
31582
31589
  ] });
31583
- }), mL = z(function({
31590
+ }), pL = z(function({
31584
31591
  filter: e
31585
31592
  }) {
31586
31593
  const {
@@ -31652,7 +31659,7 @@ const iL = z(() => {
31652
31659
  /* @__PURE__ */ r.jsx(Da, { value: i.options_query_id, onChange: i.setOptionsQueryID }),
31653
31660
  /* @__PURE__ */ r.jsx(Eu, {})
31654
31661
  ] });
31655
- }), pL = z(function({
31662
+ }), xL = z(function({
31656
31663
  filter: e
31657
31664
  }) {
31658
31665
  const {
@@ -31669,7 +31676,7 @@ const iL = z(() => {
31669
31676
  ] }),
31670
31677
  /* @__PURE__ */ r.jsx(ee, { checked: s.required, onChange: (i) => s.setRequired(i.currentTarget.checked), label: n("filter.widget.text_input.required") })
31671
31678
  ] });
31672
- }), xL = `
31679
+ }), gL = `
31673
31680
  // row
31674
31681
  {
31675
31682
  label: string;
@@ -31677,15 +31684,15 @@ const iL = z(() => {
31677
31684
  parent_value: string;
31678
31685
  description?: string;
31679
31686
  }
31680
- `, gL = () => {
31687
+ `, fL = () => {
31681
31688
  const {
31682
31689
  t
31683
31690
  } = y(), [e, n] = Q(!1);
31684
31691
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
31685
31692
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
31686
- /* @__PURE__ */ r.jsx(vr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: xL }) })
31693
+ /* @__PURE__ */ r.jsx(vr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: gL }) })
31687
31694
  ] });
31688
- }, fL = z(function({
31695
+ }, bL = z(function({
31689
31696
  filter: e
31690
31697
  }) {
31691
31698
  const {
@@ -31701,9 +31708,9 @@ const iL = z(() => {
31701
31708
  /* @__PURE__ */ r.jsx(ee, { checked: s.treeCheckStrictly, onChange: (i) => s.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
31702
31709
  /* @__PURE__ */ r.jsx(oe, { value: s.default_selection_count, onChange: s.setDefaultSelectionCount, label: n("filter.widget.common.default_selection_count") }),
31703
31710
  /* @__PURE__ */ r.jsx(Da, { value: s.options_query_id, onChange: s.setOptionsQueryID }),
31704
- /* @__PURE__ */ r.jsx(gL, {})
31711
+ /* @__PURE__ */ r.jsx(fL, {})
31705
31712
  ] });
31706
- }), bL = z(function({
31713
+ }), yL = z(function({
31707
31714
  filter: e
31708
31715
  }) {
31709
31716
  const {
@@ -31715,13 +31722,13 @@ const iL = z(() => {
31715
31722
  /* @__PURE__ */ r.jsx(w, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
31716
31723
  /* @__PURE__ */ r.jsx(sn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e, null, 4) })
31717
31724
  ] });
31718
- }), yL = {
31719
- select: mL,
31720
- "multi-select": hL,
31721
- "tree-select": fL,
31722
- "text-input": pL,
31723
- checkbox: lL,
31724
- "date-range": dL
31725
+ }), _L = {
31726
+ select: pL,
31727
+ "multi-select": mL,
31728
+ "tree-select": bL,
31729
+ "text-input": xL,
31730
+ checkbox: cL,
31731
+ "date-range": uL
31725
31732
  }, xn = {
31726
31733
  select: "filter.widget.names.select",
31727
31734
  "multi-select": "filter.widget.names.multi_select",
@@ -31729,13 +31736,13 @@ const iL = z(() => {
31729
31736
  "text-input": "filter.widget.names.text_input",
31730
31737
  checkbox: "filter.widget.names.checkbox",
31731
31738
  "date-range": "filter.widget.names.date_range"
31732
- }, _L = z(function({
31739
+ }, vL = z(function({
31733
31740
  filter: e
31734
31741
  }) {
31735
31742
  const {
31736
31743
  t: n,
31737
31744
  i18n: s
31738
- } = y(), i = le(), a = L.useMemo(() => yL[e.type], [e.type]), o = C(() => [{
31745
+ } = y(), i = le(), a = L.useMemo(() => _L[e.type], [e.type]), o = C(() => [{
31739
31746
  label: n(xn.select),
31740
31747
  value: "select"
31741
31748
  }, {
@@ -31788,9 +31795,9 @@ const iL = z(() => {
31788
31795
  /* @__PURE__ */ r.jsx(a, { filter: e })
31789
31796
  ] })
31790
31797
  ] }),
31791
- /* @__PURE__ */ r.jsx(bL, { filter: e })
31798
+ /* @__PURE__ */ r.jsx(yL, { filter: e })
31792
31799
  ] });
31793
- }), vL = z(({
31800
+ }), jL = z(({
31794
31801
  id: t
31795
31802
  }) => {
31796
31803
  const {
@@ -31833,9 +31840,9 @@ const iL = z(() => {
31833
31840
  flexGrow: 1,
31834
31841
  maxHeight: "calc(100% - 52px)",
31835
31842
  overflow: "auto"
31836
- }, children: /* @__PURE__ */ r.jsx(_L, { filter: a }) })
31843
+ }, children: /* @__PURE__ */ r.jsx(vL, { filter: a }) })
31837
31844
  ] });
31838
- }), jL = z(() => {
31845
+ }), wL = z(() => {
31839
31846
  const {
31840
31847
  t
31841
31848
  } = y(), [e, n] = Q([]), s = me(), i = (d) => {
@@ -31908,7 +31915,7 @@ const iL = z(() => {
31908
31915
  ] }, d.id)) })
31909
31916
  ] }) }) })
31910
31917
  ] });
31911
- }), wL = z(() => {
31918
+ }), SL = z(() => {
31912
31919
  const {
31913
31920
  t
31914
31921
  } = y(), e = le(), [n, s] = Q(() => JSON.stringify(e.mock_context.current, null, 4)), i = () => {
@@ -31961,7 +31968,7 @@ const iL = z(() => {
31961
31968
  }, disabled: !a, onClick: i, children: /* @__PURE__ */ r.jsx(Ut, { size: 20 }) })
31962
31969
  ] })
31963
31970
  ] });
31964
- }), SL = z(() => {
31971
+ }), kL = z(() => {
31965
31972
  const {
31966
31973
  t
31967
31974
  } = y(), {
@@ -31972,7 +31979,7 @@ const iL = z(() => {
31972
31979
  flexGrow: 1
31973
31980
  }
31974
31981
  } });
31975
- }), kL = z(() => {
31982
+ }), CL = z(() => {
31976
31983
  const {
31977
31984
  t
31978
31985
  } = y(), {
@@ -32005,10 +32012,10 @@ const iL = z(() => {
32005
32012
  /* @__PURE__ */ r.jsx(ee, { ml: 6, label: t("panel.style.border"), checked: s.border.enabled, onChange: (i) => s.border.setEnabled(i.currentTarget.checked) })
32006
32013
  ] })
32007
32014
  ] });
32008
- }), CL = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
32015
+ }), zL = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
32009
32016
  " ",
32010
32017
  "*"
32011
- ] }), zL = z(() => {
32018
+ ] }), IL = z(() => {
32012
32019
  const {
32013
32020
  t
32014
32021
  } = y(), {
@@ -32026,13 +32033,13 @@ const iL = z(() => {
32026
32033
  /* @__PURE__ */ r.jsxs(b, { align: "center", children: [
32027
32034
  /* @__PURE__ */ r.jsxs(w, { size: 14, fw: 500, children: [
32028
32035
  t("panel.panel_name"),
32029
- /* @__PURE__ */ r.jsx(CL, {})
32036
+ /* @__PURE__ */ r.jsx(zL, {})
32030
32037
  ] }),
32031
32038
  /* @__PURE__ */ r.jsx(Z, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(Oe, { size: 18 }) })
32032
32039
  ] }),
32033
32040
  /* @__PURE__ */ r.jsx(D, { value: s, onChange: i, required: !0 })
32034
32041
  ] });
32035
- }), IL = z(() => {
32042
+ }), TL = z(() => {
32036
32043
  const {
32037
32044
  t
32038
32045
  } = y(), {
@@ -32045,21 +32052,21 @@ const iL = z(() => {
32045
32052
  /* @__PURE__ */ r.jsx(ee, { size: "sm", checked: !0, disabled: !0, label: t("panel.use_name_as_title") })
32046
32053
  ] }) });
32047
32054
  });
32048
- function TL() {
32055
+ function DL() {
32049
32056
  const {
32050
32057
  t
32051
32058
  } = y();
32052
32059
  return /* @__PURE__ */ r.jsxs(k, { sx: {
32053
32060
  height: "100%"
32054
32061
  }, children: [
32055
- /* @__PURE__ */ r.jsx(kL, {}),
32062
+ /* @__PURE__ */ r.jsx(CL, {}),
32056
32063
  /* @__PURE__ */ r.jsx(A, { label: t("common.info"), labelPosition: "center", variant: "dashed" }),
32057
- /* @__PURE__ */ r.jsx(zL, {}),
32058
32064
  /* @__PURE__ */ r.jsx(IL, {}),
32059
- /* @__PURE__ */ r.jsx(SL, {})
32065
+ /* @__PURE__ */ r.jsx(TL, {}),
32066
+ /* @__PURE__ */ r.jsx(kL, {})
32060
32067
  ] });
32061
32068
  }
32062
- const DL = {
32069
+ const ML = {
32063
32070
  width: "fit-content",
32064
32071
  minWidth: "100%",
32065
32072
  tableLayout: "fixed",
@@ -32113,7 +32120,7 @@ function Ru({
32113
32120
  });
32114
32121
  return t.length === 0 ? /* @__PURE__ */ r.jsx(M, { sx: {
32115
32122
  height: "5em"
32116
- } }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Pe, { sx: DL, children: [
32123
+ } }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Pe, { sx: ML, children: [
32117
32124
  /* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.headers.map((i) => /* @__PURE__ */ r.jsxs("th", { style: {
32118
32125
  width: i.getSize()
32119
32126
  }, children: [
@@ -32123,7 +32130,7 @@ function Ru({
32123
32130
  /* @__PURE__ */ r.jsx("tbody", { children: n.getRowModel().rows.map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.getVisibleCells().map((i) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(He, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r.jsx("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : es(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, s.id)) })
32124
32131
  ] }) });
32125
32132
  }
32126
- const ML = [{
32133
+ const LL = [{
32127
32134
  label: "10",
32128
32135
  value: "10"
32129
32136
  }, {
@@ -32135,7 +32142,7 @@ const ML = [{
32135
32142
  }, {
32136
32143
  label: "100",
32137
32144
  value: "100"
32138
- }], LL = {
32145
+ }], EL = {
32139
32146
  icon: {
32140
32147
  width: "80px",
32141
32148
  textAlign: "center"
@@ -32145,7 +32152,7 @@ const ML = [{
32145
32152
  paddingLeft: "80px"
32146
32153
  }
32147
32154
  }
32148
- }, EL = ({
32155
+ }, RL = ({
32149
32156
  data: t,
32150
32157
  page: e,
32151
32158
  setPage: n,
@@ -32172,8 +32179,8 @@ const ML = [{
32172
32179
  {
32173
32180
  icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: a("common.pagination.page_size") }),
32174
32181
  size: "xs",
32175
- styles: LL,
32176
- data: ML,
32182
+ styles: EL,
32183
+ data: LL,
32177
32184
  value: String(s),
32178
32185
  onChange: c
32179
32186
  }
@@ -32183,7 +32190,7 @@ const ML = [{
32183
32190
  total: o
32184
32191
  }) }) })
32185
32192
  ] });
32186
- }, RL = qx(({
32193
+ }, AL = qx(({
32187
32194
  data: t,
32188
32195
  loading: e
32189
32196
  }) => {
@@ -32192,7 +32199,7 @@ const ML = [{
32192
32199
  return t.slice(l, c);
32193
32200
  }, [t, n, i]);
32194
32201
  return /* @__PURE__ */ r.jsxs(He, { children: [
32195
- /* @__PURE__ */ r.jsx(EL, { data: t, page: n, setPage: s, limit: i, setLimit: a }),
32202
+ /* @__PURE__ */ r.jsx(RL, { data: t, page: n, setPage: s, limit: i, setLimit: a }),
32196
32203
  /* @__PURE__ */ r.jsxs(M, { py: 10, sx: {
32197
32204
  width: "100%",
32198
32205
  height: "calc(100% - 42px)",
@@ -32203,7 +32210,7 @@ const ML = [{
32203
32210
  /* @__PURE__ */ r.jsx(Ru, { data: o })
32204
32211
  ] })
32205
32212
  ] });
32206
- }), AL = ({
32213
+ }), $L = ({
32207
32214
  queryID: t
32208
32215
  }) => {
32209
32216
  const e = Fe(), {
@@ -32252,11 +32259,11 @@ const ML = [{
32252
32259
  flexGrow: 1,
32253
32260
  overflow: "auto"
32254
32261
  }, children: [
32255
- /* @__PURE__ */ r.jsx(AL, { queryID: t }),
32256
- /* @__PURE__ */ r.jsx(RL, { data: a, loading: l })
32262
+ /* @__PURE__ */ r.jsx($L, { queryID: t }),
32263
+ /* @__PURE__ */ r.jsx(AL, { data: a, loading: l })
32257
32264
  ] })
32258
32265
  ] });
32259
- }), $L = z(function() {
32266
+ }), PL = z(function() {
32260
32267
  const {
32261
32268
  t: e
32262
32269
  } = y(), n = me(), s = le(), {
@@ -32275,7 +32282,7 @@ const ML = [{
32275
32282
  ] })
32276
32283
  ] })
32277
32284
  ] });
32278
- }), PL = z(() => {
32285
+ }), OL = z(() => {
32279
32286
  const {
32280
32287
  panel: t
32281
32288
  } = cn();
@@ -32330,7 +32337,7 @@ const ML = [{
32330
32337
  average: !1
32331
32338
  }
32332
32339
  };
32333
- class OL {
32340
+ class FL {
32334
32341
  constructor(e) {
32335
32342
  N(this, "panel");
32336
32343
  N(this, "selected");
@@ -32380,13 +32387,13 @@ class OL {
32380
32387
  }
32381
32388
  }
32382
32389
  }
32383
- function FL() {
32390
+ function VL() {
32384
32391
  const {
32385
32392
  panel: t
32386
32393
  } = bt();
32387
- return wt(() => new OL(t), [t]);
32394
+ return wt(() => new FL(t), [t]);
32388
32395
  }
32389
- function VL({
32396
+ function qL({
32390
32397
  label: t,
32391
32398
  value: e,
32392
32399
  onChange: n
@@ -32413,8 +32420,8 @@ function VL({
32413
32420
  ] })
32414
32421
  ] });
32415
32422
  }
32416
- const qL = L.forwardRef(VL);
32417
- function NL({
32423
+ const NL = L.forwardRef(qL);
32424
+ function BL({
32418
32425
  label: t,
32419
32426
  value: e,
32420
32427
  onChange: n,
@@ -32443,7 +32450,7 @@ function NL({
32443
32450
  ] })
32444
32451
  ] });
32445
32452
  }
32446
- const BL = L.forwardRef(NL), WL = L.forwardRef(function({
32453
+ const WL = L.forwardRef(BL), GL = L.forwardRef(function({
32447
32454
  value: e,
32448
32455
  onChange: n
32449
32456
  }, s) {
@@ -32493,12 +32500,12 @@ const BL = L.forwardRef(NL), WL = L.forwardRef(function({
32493
32500
  }], value: e.color.type, onChange: l }),
32494
32501
  a === "static" && /* @__PURE__ */ r.jsx(Xe, { value: e.color.staticColor, onChange: (c) => o("color.staticColor", c) }),
32495
32502
  a === "continuous" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
32496
- /* @__PURE__ */ r.jsx(BL, { label: "Value Range", value: e.color.valueRange, type: "number", onChange: (c) => o("color.valueRange", c) }),
32497
- /* @__PURE__ */ r.jsx(qL, { label: "Color Range", value: e.color.colorRange, onChange: (c) => o("color.colorRange", c) })
32503
+ /* @__PURE__ */ r.jsx(WL, { label: "Value Range", value: e.color.valueRange, type: "number", onChange: (c) => o("color.valueRange", c) }),
32504
+ /* @__PURE__ */ r.jsx(NL, { label: "Color Range", value: e.color.colorRange, onChange: (c) => o("color.colorRange", c) })
32498
32505
  ] })
32499
32506
  ] })
32500
32507
  ] });
32501
- }), GL = L.forwardRef(function({
32508
+ }), QL = L.forwardRef(function({
32502
32509
  value: e,
32503
32510
  onChange: n,
32504
32511
  withStyle: s = !0,
@@ -32526,11 +32533,11 @@ const BL = L.forwardRef(NL), WL = L.forwardRef(function({
32526
32533
  ] }),
32527
32534
  s && /* @__PURE__ */ r.jsx(Pr, { variant: "contained", children: /* @__PURE__ */ r.jsxs(Pr.Item, { value: "Styles", children: [
32528
32535
  /* @__PURE__ */ r.jsx(Pr.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
32529
- /* @__PURE__ */ r.jsx(Pr.Panel, { children: /* @__PURE__ */ r.jsx(WL, { value: e, onChange: n }) })
32536
+ /* @__PURE__ */ r.jsx(Pr.Panel, { children: /* @__PURE__ */ r.jsx(GL, { value: e, onChange: n }) })
32530
32537
  ] }) }),
32531
32538
  /* @__PURE__ */ r.jsx(I, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 16 }), color: "red", variant: "light", onClick: i, children: o("panel.variable.delete") })
32532
32539
  ] });
32533
- }), QL = z((t) => {
32540
+ }), HL = z((t) => {
32534
32541
  const {
32535
32542
  t: e
32536
32543
  } = y(), n = wt(() => sD(t.variable), [t.variable]), s = () => t.uiModel.remove(t.variable);
@@ -32539,7 +32546,7 @@ const BL = L.forwardRef(NL), WL = L.forwardRef(function({
32539
32546
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(Sr, { size: 18 }), children: e("common.actions.revert_changes") }),
32540
32547
  /* @__PURE__ */ r.jsx(I, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), children: e("common.actions.save_changes") })
32541
32548
  ] }),
32542
- /* @__PURE__ */ r.jsx(GL, { value: Dt(n.copy), onChange: n.update, remove: s })
32549
+ /* @__PURE__ */ r.jsx(QL, { value: Dt(n.copy), onChange: n.update, remove: s })
32543
32550
  ] });
32544
32551
  });
32545
32552
  z((t) => {
@@ -32548,7 +32555,7 @@ z((t) => {
32548
32555
  } = t;
32549
32556
  return /* @__PURE__ */ r.jsx(k, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(I, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
32550
32557
  });
32551
- const HL = z(({
32558
+ const UL = z(({
32552
32559
  model: t
32553
32560
  }) => {
32554
32561
  const {
@@ -32562,12 +32569,12 @@ const HL = z(({
32562
32569
  alignSelf: "flex-end",
32563
32570
  height: "38px"
32564
32571
  }, children: e("panel.variable.add") }) });
32565
- }), UL = z(() => {
32572
+ }), YL = z(() => {
32566
32573
  var n;
32567
32574
  const {
32568
32575
  t
32569
- } = y(), e = FL();
32570
- return e.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(HL, { model: e }) : /* @__PURE__ */ r.jsxs(k, { pb: 20, children: [
32576
+ } = y(), e = VL();
32577
+ return e.variableOptions.length === 0 ? /* @__PURE__ */ r.jsx(UL, { model: e }) : /* @__PURE__ */ r.jsxs(k, { pb: 20, children: [
32571
32578
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
32572
32579
  /* @__PURE__ */ r.jsx(F, { label: t("panel.variable.labels"), data: e.variableOptions, value: (n = e.selected) == null ? void 0 : n.name, onChange: e.selectByName, maxDropdownHeight: 600, sx: {
32573
32580
  flexGrow: 1
@@ -32580,9 +32587,9 @@ const HL = z(({
32580
32587
  }, children: t("panel.variable.add") })
32581
32588
  ] }),
32582
32589
  /* @__PURE__ */ r.jsx(A, { variant: "dashed" }),
32583
- e.selected ? /* @__PURE__ */ r.jsx(QL, { uiModel: e, variable: e.selected }) : /* @__PURE__ */ r.jsx("span", { children: "Select or create a new variable on right side" })
32590
+ e.selected ? /* @__PURE__ */ r.jsx(HL, { uiModel: e, variable: e.selected }) : /* @__PURE__ */ r.jsx("span", { children: "Select or create a new variable on right side" })
32584
32591
  ] });
32585
- }), YL = z(() => {
32592
+ }), KL = z(() => {
32586
32593
  const {
32587
32594
  t
32588
32595
  } = y(), {
@@ -32593,7 +32600,7 @@ const HL = z(({
32593
32600
  /* @__PURE__ */ r.jsx(sn, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e.variableStrings, null, 4) })
32594
32601
  ] });
32595
32602
  });
32596
- function KL() {
32603
+ function JL() {
32597
32604
  const {
32598
32605
  t
32599
32606
  } = y(), {
@@ -32608,7 +32615,7 @@ function KL() {
32608
32615
  return S.orderBy(n, [(s) => s.group, (s) => s.label], ["asc", "asc"]);
32609
32616
  }, [e]);
32610
32617
  }
32611
- const JL = z(({
32618
+ const XL = z(({
32612
32619
  value: t,
32613
32620
  submit: e
32614
32621
  }) => {
@@ -32618,17 +32625,17 @@ const JL = z(({
32618
32625
  B(() => {
32619
32626
  i(t);
32620
32627
  }, [t]);
32621
- const a = KL(), o = t !== s;
32628
+ const a = JL(), o = t !== s;
32622
32629
  return /* @__PURE__ */ r.jsx(F, { label: n("visualization.component"), value: s, searchable: !0, onChange: i, data: a, rightSection: /* @__PURE__ */ r.jsx(Z, { variant: "filled", color: "green", disabled: !o, onClick: () => e(s), children: /* @__PURE__ */ r.jsx(Ut, { size: 20 }) }), maxDropdownHeight: 600 });
32623
32630
  }), el = [];
32624
- function XL(t, e) {
32631
+ function ZL(t, e) {
32625
32632
  try {
32626
32633
  return t.resolveComponent(e).createConfig();
32627
32634
  } catch {
32628
32635
  return null;
32629
32636
  }
32630
32637
  }
32631
- function ZL() {
32638
+ function eE() {
32632
32639
  const {
32633
32640
  data: t,
32634
32641
  panel: {
@@ -32656,7 +32663,7 @@ function ZL() {
32656
32663
  return console.info(se(h, "message")), null;
32657
32664
  }
32658
32665
  }
32659
- const eE = z(() => {
32666
+ const tE = z(() => {
32660
32667
  const {
32661
32668
  data: t,
32662
32669
  panel: {
@@ -32667,7 +32674,7 @@ const eE = z(() => {
32667
32674
  } = Kt(Ft), s = L.useCallback((d) => {
32668
32675
  if (d === e.type)
32669
32676
  return;
32670
- const u = XL(n, d);
32677
+ const u = ZL(n, d);
32671
32678
  e.setType(d), e.setConf(u || {});
32672
32679
  }, [e.type]), i = (d) => {
32673
32680
  try {
@@ -32678,7 +32685,7 @@ const eE = z(() => {
32678
32685
  }, a = L.useMemo(() => {
32679
32686
  var d;
32680
32687
  return (d = el.find((u) => u.value === e.type)) == null ? void 0 : d.Panel;
32681
- }, [e.type, el]), o = ZL(), l = a ? us(a, {
32688
+ }, [e.type, el]), o = eE(), l = a ? us(a, {
32682
32689
  data: t,
32683
32690
  conf: e.conf,
32684
32691
  setConf: e.setConf
@@ -32687,7 +32694,7 @@ const eE = z(() => {
32687
32694
  height: "100%",
32688
32695
  overflow: "hidden"
32689
32696
  }, children: [
32690
- /* @__PURE__ */ r.jsx(JL, { submit: s, value: e.type }),
32697
+ /* @__PURE__ */ r.jsx(XL, { submit: s, value: e.type }),
32691
32698
  /* @__PURE__ */ r.jsxs(He, { children: [
32692
32699
  /* @__PURE__ */ r.jsx(k, { pb: 10, sx: {
32693
32700
  flexGrow: 1,
@@ -32697,7 +32704,7 @@ const eE = z(() => {
32697
32704
  !c && /* @__PURE__ */ r.jsx(cl, { minRows: 20, label: "Config", value: JSON.stringify(e.conf, null, 2), onChange: i })
32698
32705
  ] })
32699
32706
  ] });
32700
- }), tE = z(({
32707
+ }), nE = z(({
32701
32708
  panel: t,
32702
32709
  sourceViewID: e
32703
32710
  }) => {
@@ -32715,7 +32722,7 @@ const eE = z(() => {
32715
32722
  };
32716
32723
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
32717
32724
  /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(Tl, { size: 14 }), children: n("panel.settings.change_view") }),
32718
- /* @__PURE__ */ r.jsx(we, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { sx: {
32725
+ /* @__PURE__ */ r.jsx(Se, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(k, { sx: {
32719
32726
  maxHeight: "calc(100vh - 185px)",
32720
32727
  overflow: "hidden"
32721
32728
  }, children: [
@@ -32733,7 +32740,7 @@ const eE = z(() => {
32733
32740
  ] })
32734
32741
  ] }) })
32735
32742
  ] });
32736
- }), nE = {
32743
+ }), rE = {
32737
32744
  root: {
32738
32745
  flexGrow: 1,
32739
32746
  width: "100%",
@@ -32765,21 +32772,21 @@ const eE = z(() => {
32765
32772
  flexGrow: 0,
32766
32773
  flexShrink: 0
32767
32774
  }, children: [
32768
- /* @__PURE__ */ r.jsx(PL, {}),
32775
+ /* @__PURE__ */ r.jsx(OL, {}),
32769
32776
  /* @__PURE__ */ r.jsx(M, { sx: {
32770
32777
  flexGrow: 1
32771
- }, children: /* @__PURE__ */ r.jsx(YL, {}) })
32778
+ }, children: /* @__PURE__ */ r.jsx(KL, {}) })
32772
32779
  ] })
32773
32780
  ] });
32774
- function rE(t) {
32781
+ function sE(t) {
32775
32782
  return !["richText", "button"].includes(t);
32776
32783
  }
32777
- const sE = z(({
32784
+ const iE = z(({
32778
32785
  panel: t
32779
32786
  }) => {
32780
32787
  const {
32781
32788
  t: e
32782
- } = y(), n = Rt(), s = me(), i = le(), [a, o] = Q("Data"), l = t.queries, d = rE(t.viz.type) && t.dataLoading, u = d || t.queryErrors.length > 0 || t.queryStateMessages !== "" || l.length === 0, h = s.editor.path[1];
32789
+ } = y(), n = Rt(), s = me(), i = le(), [a, o] = Q("Data"), l = t.queries, d = sE(t.viz.type) && t.dataLoading, u = d || t.queryErrors.length > 0 || t.queryStateMessages !== "" || l.length === 0, h = s.editor.path[1];
32783
32790
  B(() => {
32784
32791
  o((f) => u && f === "Visualization" ? "Data" : f);
32785
32792
  }, [t.id, u]);
@@ -32813,11 +32820,11 @@ const sE = z(({
32813
32820
  }, children: [
32814
32821
  /* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: t.name }),
32815
32822
  /* @__PURE__ */ r.jsxs(b, { position: "right", noWrap: !0, children: [
32816
- /* @__PURE__ */ r.jsx(tE, { panel: t, sourceViewID: h }),
32823
+ /* @__PURE__ */ r.jsx(nE, { panel: t, sourceViewID: h }),
32817
32824
  /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: "red", onClick: p, leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 14 }), children: e("panel.delete") })
32818
32825
  ] })
32819
32826
  ] }),
32820
- /* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles: nE, children: [
32827
+ /* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles: rE, children: [
32821
32828
  /* @__PURE__ */ r.jsxs(_.List, { children: [
32822
32829
  /* @__PURE__ */ r.jsx(_.Tab, { value: "Data", disabled: d, children: e("data.label") }),
32823
32830
  /* @__PURE__ */ r.jsx(_.Tab, { value: "Panel", children: e("panel.label") }),
@@ -32827,15 +32834,15 @@ const sE = z(({
32827
32834
  ] }),
32828
32835
  /* @__PURE__ */ r.jsxs(_.Panel, { value: "Data", children: [
32829
32836
  /* @__PURE__ */ r.jsx(In, { visible: d, exitTransitionDuration: 0 }),
32830
- /* @__PURE__ */ r.jsx($L, {})
32837
+ /* @__PURE__ */ r.jsx(PL, {})
32831
32838
  ] }),
32832
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(oi, { children: /* @__PURE__ */ r.jsx(TL, {}) }) }),
32833
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Variables", children: /* @__PURE__ */ r.jsx(oi, { children: /* @__PURE__ */ r.jsx(UL, {}) }) }),
32834
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Visualization", children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(oi, { children: /* @__PURE__ */ r.jsx(eE, {}) }) }) }),
32839
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Panel", children: /* @__PURE__ */ r.jsx(oi, { children: /* @__PURE__ */ r.jsx(DL, {}) }) }),
32840
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Variables", children: /* @__PURE__ */ r.jsx(oi, { children: /* @__PURE__ */ r.jsx(YL, {}) }) }),
32841
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Visualization", children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(oi, { children: /* @__PURE__ */ r.jsx(tE, {}) }) }) }),
32835
32842
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Interactions", children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(yf, {}) }) })
32836
32843
  ] })
32837
32844
  ] });
32838
- }), iE = z(({
32845
+ }), aE = z(({
32839
32846
  viewID: t,
32840
32847
  panelID: e
32841
32848
  }) => {
@@ -32847,12 +32854,12 @@ const sE = z(({
32847
32854
  "] is not found"
32848
32855
  ] });
32849
32856
  const i = n.panels.findByID(e);
32850
- return i ? /* @__PURE__ */ r.jsx(sE, { panel: i }) : /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
32857
+ return i ? /* @__PURE__ */ r.jsx(iE, { panel: i }) : /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
32851
32858
  "Panel by ID[",
32852
32859
  e,
32853
32860
  "] is not found"
32854
32861
  ] });
32855
- }), aE = z(() => {
32862
+ }), oE = z(() => {
32856
32863
  const {
32857
32864
  t
32858
32865
  } = y(), [e, n] = Q([]), s = Rt(), i = me(), a = (m) => {
@@ -32959,7 +32966,7 @@ const sE = z(({
32959
32966
  }) })
32960
32967
  ] }) }) })
32961
32968
  ] });
32962
- }), oE = (t) => {
32969
+ }), lE = (t) => {
32963
32970
  const {
32964
32971
  t: e
32965
32972
  } = y(), {
@@ -32990,7 +32997,7 @@ const sE = z(({
32990
32997
  }, children: /* @__PURE__ */ r.jsx(I, { disabled: !0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 16 }), children: e("query.delete") }) }) }) : /* @__PURE__ */ r.jsx(I, { color: "red", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 16 }), sx: {
32991
32998
  alignSelf: "flex-end"
32992
32999
  }, children: e("query.delete") });
32993
- }, lE = z(oE), Au = ({
33000
+ }, cE = z(lE), Au = ({
32994
33001
  width: t = "calc(100% - 32px)",
32995
33002
  lastWidth: e = "50%",
32996
33003
  height: n,
@@ -33002,7 +33009,7 @@ const sE = z(({
33002
33009
  /* @__PURE__ */ r.jsx(ro, { width: e, height: n, radius: "xs" })
33003
33010
  ] }), mr = ({
33004
33011
  value: t
33005
- }) => t === null || t === "" ? null : /* @__PURE__ */ r.jsx(xe, { label: t, disabled: !t, multiline: !0, children: /* @__PURE__ */ r.jsx(Z, { children: /* @__PURE__ */ r.jsx(Mn, { size: 14 }) }) }), cE = ({
33012
+ }) => t === null || t === "" ? null : /* @__PURE__ */ r.jsx(xe, { label: t, disabled: !t, multiline: !0, children: /* @__PURE__ */ r.jsx(Z, { children: /* @__PURE__ */ r.jsx(Mn, { size: 14 }) }) }), dE = ({
33006
33013
  column: t
33007
33014
  }) => {
33008
33015
  const {
@@ -33010,7 +33017,7 @@ const sE = z(({
33010
33017
  column_key_text: n
33011
33018
  } = t;
33012
33019
  return e ? /* @__PURE__ */ r.jsx(xe, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(rn, { children: e }) }) : null;
33013
- }, dE = z(({
33020
+ }, uE = z(({
33014
33021
  dataSource: t
33015
33022
  }) => {
33016
33023
  const {
@@ -33064,13 +33071,13 @@ const sE = z(({
33064
33071
  /* @__PURE__ */ r.jsx("td", { children: n.ordinal_position }),
33065
33072
  /* @__PURE__ */ r.jsx("td", { children: n.column_name }),
33066
33073
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(mr, { value: n.column_comment }) }),
33067
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(cE, { column: n }) }),
33074
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(dE, { column: n }) }),
33068
33075
  /* @__PURE__ */ r.jsx("td", { children: n.column_type }),
33069
33076
  /* @__PURE__ */ r.jsx("td", { children: n.is_nullable }),
33070
33077
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(mr, { value: n.column_default }) })
33071
33078
  ] }, n.column_name)) })
33072
33079
  ] });
33073
- }), uE = z(({
33080
+ }), hE = z(({
33074
33081
  dataSource: t
33075
33082
  }) => {
33076
33083
  const {
@@ -33118,7 +33125,7 @@ const sE = z(({
33118
33125
  /* @__PURE__ */ r.jsx("td", { children: s.column_name })
33119
33126
  ] }, s.index_name)) })
33120
33127
  ] });
33121
- }), hE = z(({
33128
+ }), mE = z(({
33122
33129
  dataSource: t
33123
33130
  }) => {
33124
33131
  const {
@@ -33171,29 +33178,29 @@ const sE = z(({
33171
33178
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(mr, { value: s.comment }) })
33172
33179
  ] }, s.index_name)) })
33173
33180
  ] });
33174
- }), mE = z(({
33181
+ }), pE = z(({
33175
33182
  dataSource: t
33176
33183
  }) => {
33177
33184
  const {
33178
33185
  indexes: e
33179
33186
  } = t;
33180
- return e.loading || e.empty ? null : t.type === Me.MySQL ? /* @__PURE__ */ r.jsx(uE, { dataSource: t }) : t.type === Me.Postgresql ? /* @__PURE__ */ r.jsx(hE, { dataSource: t }) : null;
33181
- }), pE = z(({
33187
+ return e.loading || e.empty ? null : t.type === Le.MySQL ? /* @__PURE__ */ r.jsx(hE, { dataSource: t }) : t.type === Le.Postgresql ? /* @__PURE__ */ r.jsx(mE, { dataSource: t }) : null;
33188
+ }), xE = z(({
33182
33189
  dataSource: t
33183
33190
  }) => /* @__PURE__ */ r.jsxs(k, { spacing: 40, pt: 10, sx: {
33184
33191
  flexGrow: 1,
33185
33192
  overflow: "auto",
33186
33193
  position: "relative"
33187
33194
  }, children: [
33188
- /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(dE, { dataSource: t }) }),
33189
- /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(mE, { dataSource: t }) })
33195
+ /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(uE, { dataSource: t }) }),
33196
+ /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(pE, { dataSource: t }) })
33190
33197
  ] }));
33191
- function xE({
33198
+ function gE({
33192
33199
  table_type: t
33193
33200
  }) {
33194
33201
  return t === "VIEW" ? /* @__PURE__ */ r.jsx(Ll, { size: 14 }) : t === "BASE TABLE" ? /* @__PURE__ */ r.jsx(Gm, { size: 14 }) : null;
33195
33202
  }
33196
- const gE = z(({
33203
+ const fE = z(({
33197
33204
  dataSource: t
33198
33205
  }) => {
33199
33206
  const {
@@ -33204,17 +33211,17 @@ const gE = z(({
33204
33211
  ".mantine-NavLink-label": {
33205
33212
  fontFamily: "monospace"
33206
33213
  }
33207
- }, children: Object.entries(e.data).map(([n, s]) => /* @__PURE__ */ r.jsx(ci, { label: n, icon: /* @__PURE__ */ r.jsx(ys, { size: 14 }), defaultOpened: t.table_schema === n, pl: 0, childrenOffset: 14, children: s.map((i) => /* @__PURE__ */ r.jsx(ci, { label: i.table_name, icon: /* @__PURE__ */ r.jsx(xE, { table_type: i.table_type }), onClick: () => {
33214
+ }, children: Object.entries(e.data).map(([n, s]) => /* @__PURE__ */ r.jsx(ci, { label: n, icon: /* @__PURE__ */ r.jsx(ys, { size: 14 }), defaultOpened: t.table_schema === n, pl: 0, childrenOffset: 14, children: s.map((i) => /* @__PURE__ */ r.jsx(ci, { label: i.table_name, icon: /* @__PURE__ */ r.jsx(gE, { table_type: i.table_type }), onClick: () => {
33208
33215
  t.setKeywords(n, i.table_name);
33209
33216
  }, active: t.table_name === i.table_name }, i.table_name)) }, n)) });
33210
- }), fE = ({
33217
+ }), bE = ({
33211
33218
  visible: t
33212
33219
  }) => /* @__PURE__ */ r.jsx(M, { py: 10, sx: {
33213
33220
  width: "100%",
33214
33221
  height: "100%",
33215
33222
  overflow: "hidden",
33216
33223
  position: "relative"
33217
- }, children: /* @__PURE__ */ r.jsx(In, { visible: t }) }), bE = [{
33224
+ }, children: /* @__PURE__ */ r.jsx(In, { visible: t }) }), yE = [{
33218
33225
  label: "10",
33219
33226
  value: "10"
33220
33227
  }, {
@@ -33226,7 +33233,7 @@ const gE = z(({
33226
33233
  }, {
33227
33234
  label: "100",
33228
33235
  value: "100"
33229
- }], yE = {
33236
+ }], _E = {
33230
33237
  icon: {
33231
33238
  width: "50px",
33232
33239
  textAlign: "center"
@@ -33236,7 +33243,7 @@ const gE = z(({
33236
33243
  paddingLeft: "50px"
33237
33244
  }
33238
33245
  }
33239
- }, _E = z(({
33246
+ }, vE = z(({
33240
33247
  dataSource: t
33241
33248
  }) => {
33242
33249
  const {
@@ -33256,8 +33263,8 @@ const gE = z(({
33256
33263
  {
33257
33264
  icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: e("common.pagination.page_size") }),
33258
33265
  size: "xs",
33259
- styles: yE,
33260
- data: bE,
33266
+ styles: _E,
33267
+ data: yE,
33261
33268
  value: String(n.limit),
33262
33269
  onChange: (s) => n.setLimit(Number(s))
33263
33270
  }
@@ -33267,7 +33274,7 @@ const gE = z(({
33267
33274
  total: n.total
33268
33275
  }) }) })
33269
33276
  ] });
33270
- }), vE = z(({
33277
+ }), jE = z(({
33271
33278
  dataSource: t
33272
33279
  }) => {
33273
33280
  const e = t.tableData;
@@ -33275,8 +33282,8 @@ const gE = z(({
33275
33282
  fontFamily: "monospace"
33276
33283
  }, children: "This table is empty" }) : e.error ? /* @__PURE__ */ r.jsx(w, { mt: 20, color: "red", size: "md", align: "center", sx: {
33277
33284
  fontFamily: "monospace"
33278
- }, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ r.jsx(fE, { visible: !0 }) : /* @__PURE__ */ r.jsxs(He, { children: [
33279
- /* @__PURE__ */ r.jsx(_E, { dataSource: t }),
33285
+ }, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ r.jsx(bE, { visible: !0 }) : /* @__PURE__ */ r.jsxs(He, { children: [
33286
+ /* @__PURE__ */ r.jsx(vE, { dataSource: t }),
33280
33287
  /* @__PURE__ */ r.jsxs(M, { py: 10, sx: {
33281
33288
  width: "100%",
33282
33289
  height: "calc(100% - 42px)",
@@ -33287,7 +33294,7 @@ const gE = z(({
33287
33294
  /* @__PURE__ */ r.jsx(Ru, { data: e.data })
33288
33295
  ] })
33289
33296
  ] });
33290
- }), jE = {
33297
+ }), wE = {
33291
33298
  root: {
33292
33299
  flexGrow: 1,
33293
33300
  overflow: "auto",
@@ -33299,7 +33306,7 @@ const gE = z(({
33299
33306
  tab: {
33300
33307
  minWidth: 120
33301
33308
  }
33302
- }, wE = z(({
33309
+ }, SE = z(({
33303
33310
  dataSource: t
33304
33311
  }) => {
33305
33312
  const {
@@ -33316,21 +33323,21 @@ const gE = z(({
33316
33323
  flexGrow: 0,
33317
33324
  flexShrink: 0,
33318
33325
  position: "relative"
33319
- }, children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(gE, { dataSource: t }) }) }),
33320
- /* @__PURE__ */ r.jsxs(_, { defaultValue: "structure", styles: jE, children: [
33326
+ }, children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(fE, { dataSource: t }) }) }),
33327
+ /* @__PURE__ */ r.jsxs(_, { defaultValue: "structure", styles: wE, children: [
33321
33328
  /* @__PURE__ */ r.jsxs(_.List, { children: [
33322
33329
  /* @__PURE__ */ r.jsx(_.Tab, { value: "structure", icon: /* @__PURE__ */ r.jsx(Qm, { size: 14 }), children: e("data_source.table_structure_short") }),
33323
33330
  /* @__PURE__ */ r.jsx(_.Tab, { value: "data", icon: /* @__PURE__ */ r.jsx(ys, { size: 14 }), children: e("data.label") })
33324
33331
  ] }),
33325
- /* @__PURE__ */ r.jsx(_.Panel, { value: "structure", children: /* @__PURE__ */ r.jsx(pE, { dataSource: t }) }),
33332
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "structure", children: /* @__PURE__ */ r.jsx(xE, { dataSource: t }) }),
33326
33333
  /* @__PURE__ */ r.jsx(_.Panel, { value: "data", sx: {
33327
33334
  width: "100%",
33328
33335
  height: "calc(100% - 36px)",
33329
33336
  overflow: "hidden"
33330
- }, children: /* @__PURE__ */ r.jsx(vE, { dataSource: t }) })
33337
+ }, children: /* @__PURE__ */ r.jsx(jE, { dataSource: t }) })
33331
33338
  ] })
33332
33339
  ] });
33333
- }), SE = {
33340
+ }), kE = {
33334
33341
  modal: {
33335
33342
  paddingLeft: "0px !important",
33336
33343
  paddingRight: "0px !important"
@@ -33355,7 +33362,7 @@ const gE = z(({
33355
33362
  t: n
33356
33363
  } = y(), [s, i] = Q(!1);
33357
33364
  return t.type === "http" ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
33358
- /* @__PURE__ */ r.jsx(we, { opened: s, onClose: () => i(!1), title: /* @__PURE__ */ r.jsxs(b, { position: "apart", sx: {
33365
+ /* @__PURE__ */ r.jsx(Se, { opened: s, onClose: () => i(!1), title: /* @__PURE__ */ r.jsxs(b, { position: "apart", sx: {
33359
33366
  flexGrow: 1
33360
33367
  }, children: [
33361
33368
  /* @__PURE__ */ r.jsx(w, { fw: 500, children: n("data_source.explorer") }),
@@ -33369,20 +33376,20 @@ const gE = z(({
33369
33376
  to: "red"
33370
33377
  }, children: t.type })
33371
33378
  ] })
33372
- ] }), zIndex: 320, size: "96vw", styles: SE, children: /* @__PURE__ */ r.jsx(M, { sx: {
33379
+ ] }), zIndex: 320, size: "96vw", styles: kE, children: /* @__PURE__ */ r.jsx(M, { sx: {
33373
33380
  height: "calc(100vh - 220px)"
33374
- }, children: /* @__PURE__ */ r.jsx(wE, { dataSource: t }) }) }),
33381
+ }, children: /* @__PURE__ */ r.jsx(SE, { dataSource: t }) }) }),
33375
33382
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
33376
33383
  inner: {
33377
33384
  justifyContent: "flex-start"
33378
33385
  }
33379
33386
  }, ...e, children: n("data_source.see_table_structure") })
33380
33387
  ] });
33381
- }), kE = ne(({
33388
+ }), CE = ne(({
33382
33389
  label: t,
33383
33390
  type: e,
33384
33391
  ...n
33385
- }, s) => e === Me.Transform ? /* @__PURE__ */ r.jsxs(b, { className: "transform-query-option", position: "left", ref: s, ...n, sx: {
33392
+ }, s) => e === Le.Transform ? /* @__PURE__ */ r.jsxs(b, { className: "transform-query-option", position: "left", ref: s, ...n, sx: {
33386
33393
  '&[data-selected="true"]': {
33387
33394
  ".mantine-Text-root": {
33388
33395
  color: "white"
@@ -33397,7 +33404,7 @@ const gE = z(({
33397
33404
  ] }) : /* @__PURE__ */ r.jsxs(b, { position: "apart", ref: s, ...n, children: [
33398
33405
  /* @__PURE__ */ r.jsx(w, { children: t }),
33399
33406
  /* @__PURE__ */ r.jsx(w, { children: e })
33400
- ] })), CE = z(({
33407
+ ] })), zE = z(({
33401
33408
  value: t,
33402
33409
  onChange: e
33403
33410
  }) => {
@@ -33416,8 +33423,8 @@ const gE = z(({
33416
33423
  }));
33417
33424
  return u.push({
33418
33425
  label: n("query.transform.data_source"),
33419
- value: Me.Transform,
33420
- type: Me.Transform
33426
+ value: Le.Transform,
33427
+ type: Le.Transform
33421
33428
  }), u;
33422
33429
  }, [i]), l = C(() => o.reduce((u, h) => (u[h.value] = h.type, u), {}), [o]), c = (u) => {
33423
33430
  u !== null && e({
@@ -33432,7 +33439,7 @@ const gE = z(({
33432
33439
  size: "xs",
33433
33440
  px: 10
33434
33441
  } })
33435
- ] }), itemComponent: kE, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
33442
+ ] }), itemComponent: CE, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
33436
33443
  root: {
33437
33444
  flex: 1
33438
33445
  },
@@ -33458,7 +33465,7 @@ const gE = z(({
33458
33465
  /* @__PURE__ */ r.jsx(w, { children: n }),
33459
33466
  /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: s })
33460
33467
  ] }) });
33461
- }), zE = z(({
33468
+ }), IE = z(({
33462
33469
  queryModel: t
33463
33470
  }) => {
33464
33471
  const {
@@ -33479,7 +33486,7 @@ const gE = z(({
33479
33486
  }, rightSection: /* @__PURE__ */ r.jsx(Z, { variant: "filled", color: "blue", size: "sm", onClick: () => t.setName(n), disabled: n === t.name, children: /* @__PURE__ */ r.jsx(Oe, { size: 16 }) }), onBlur: () => {
33480
33487
  t.setName(n);
33481
33488
  } }),
33482
- /* @__PURE__ */ r.jsx(CE, { value: {
33489
+ /* @__PURE__ */ r.jsx(zE, { value: {
33483
33490
  type: t.type,
33484
33491
  key: t.key
33485
33492
  }, onChange: ({
@@ -33492,18 +33499,18 @@ const gE = z(({
33492
33499
  /* @__PURE__ */ r.jsx(Wn, { label: e("query.run_by_condition.label"), placeholder: e("query.run_by_condition.unset"), data: t.conditionOptions, value: [...t.run_by], onChange: t.setRunBy, itemComponent: tl, maxDropdownHeight: 500 }),
33493
33500
  t.typedAsHTTP && /* @__PURE__ */ r.jsx(Wn, { label: e("query.re_run_condition.label"), placeholder: e("query.re_run_condition.label"), data: t.conditionOptions, value: [...t.react_to], onChange: t.setReactTo, itemComponent: tl, maxDropdownHeight: 500 }),
33494
33501
  /* @__PURE__ */ r.jsx(A, { mt: 20, mb: 10, variant: "dashed" }),
33495
- /* @__PURE__ */ r.jsx(lE, { queryModel: t })
33502
+ /* @__PURE__ */ r.jsx(cE, { queryModel: t })
33496
33503
  ] }) });
33497
33504
  });
33498
- function IE({
33505
+ function TE({
33499
33506
  content: t
33500
33507
  }) {
33501
- return /* @__PURE__ */ r.jsxs(Ie, { width: "60vw", shadow: "md", children: [
33502
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(Z, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(Ll, {}) }) }),
33503
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(sn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
33508
+ return /* @__PURE__ */ r.jsxs(Te, { width: "60vw", shadow: "md", children: [
33509
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(Z, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(Ll, {}) }) }),
33510
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(sn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
33504
33511
  ] });
33505
33512
  }
33506
- const TE = z(() => {
33513
+ const DE = z(() => {
33507
33514
  const e = [...me().globalSQLSnippets.list];
33508
33515
  return e.length === 0 ? null : /* @__PURE__ */ r.jsxs(Pe, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
33509
33516
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -33517,11 +33524,11 @@ const TE = z(() => {
33517
33524
  } = n;
33518
33525
  return /* @__PURE__ */ r.jsxs("tr", { children: [
33519
33526
  /* @__PURE__ */ r.jsx("td", { children: s }),
33520
- /* @__PURE__ */ r.jsx("td", { width: 200, children: /* @__PURE__ */ r.jsx(IE, { content: i }) })
33527
+ /* @__PURE__ */ r.jsx("td", { width: 200, children: /* @__PURE__ */ r.jsx(TE, { content: i }) })
33521
33528
  ] }, s);
33522
33529
  }) })
33523
33530
  ] });
33524
- }), DE = `
33531
+ }), ME = `
33525
33532
  -- You may reference query variables in SQL or VizConfig.
33526
33533
  SELECT *
33527
33534
  FROM commit
@@ -33561,13 +33568,13 @@ WHERE
33561
33568
  ] }),
33562
33569
  /* @__PURE__ */ r.jsx(_.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(sn, { language: "sql", sx: {
33563
33570
  width: "100%"
33564
- }, noCopy: !0, colorScheme: "dark", children: DE }) }),
33571
+ }, noCopy: !0, colorScheme: "dark", children: ME }) }),
33565
33572
  /* @__PURE__ */ r.jsx(_.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(sn, { language: "json", sx: {
33566
33573
  width: "100%"
33567
33574
  }, noCopy: !0, colorScheme: "dark", children: l }) }),
33568
33575
  /* @__PURE__ */ r.jsx(_.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(k, { spacing: 10, children: [
33569
33576
  /* @__PURE__ */ r.jsx(ms, { icon: /* @__PURE__ */ r.jsx(lo, { size: 16 }), title: s("global_sql_snippet.labels"), children: s("global_sql_snippet.description") }),
33570
- /* @__PURE__ */ r.jsx(TE, {})
33577
+ /* @__PURE__ */ r.jsx(DE, {})
33571
33578
  ] }) })
33572
33579
  ] }) });
33573
33580
  }), Ma = z(() => {
@@ -33575,7 +33582,7 @@ WHERE
33575
33582
  t
33576
33583
  } = y(), [e, n] = Q(!1);
33577
33584
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
33578
- /* @__PURE__ */ r.jsx(we, { opened: e, onClose: () => n(!1), title: t("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(Pu, {}) }),
33585
+ /* @__PURE__ */ r.jsx(Se, { opened: e, onClose: () => n(!1), title: t("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(Pu, {}) }),
33579
33586
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
33580
33587
  inner: {
33581
33588
  justifyContent: "flex-start"
@@ -33585,9 +33592,9 @@ WHERE
33585
33592
  }), nl = {
33586
33593
  pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
33587
33594
  `),
33588
- post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
33595
+ post: ["function process_result(resp, utils, state) {", " return resp.data", "}"].join(`
33589
33596
  `)
33590
- }, ME = z(({
33597
+ }, LE = z(({
33591
33598
  queryModel: t
33592
33599
  }) => {
33593
33600
  const {
@@ -33606,7 +33613,7 @@ WHERE
33606
33613
  }, p: "sm", children: /* @__PURE__ */ r.jsx(Un, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: nl.pre }) }),
33607
33614
  /* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Un, { label: "", value: t.post_process, onChange: t.setPostProcess, defaultValue: nl.post }) })
33608
33615
  ] }) : null;
33609
- }), LE = z(({
33616
+ }), EE = z(({
33610
33617
  queryID: t,
33611
33618
  usage: e
33612
33619
  }) => {
@@ -33668,15 +33675,15 @@ WHERE
33668
33675
  readOnly: o || !e,
33669
33676
  "semanticHighlighting.enabled": !0
33670
33677
  } });
33671
- }, EE = z(({
33678
+ }, RE = z(({
33672
33679
  queryModel: t
33673
33680
  }) => {
33674
33681
  const {
33675
33682
  t: e
33676
33683
  } = y(), n = C(() => S.groupBy(t.dependencies, "type"), [t.dependencies]), s = C(() => t.dependencies.some((a) => !a.valid), [t.dependencies]), i = t.dependencies.length > 0;
33677
- return i ? /* @__PURE__ */ r.jsxs(Ie, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
33678
- /* @__PURE__ */ r.jsx(Ie.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(Dl, { size: 16 }) : /* @__PURE__ */ r.jsx(Km, { size: 16 }), children: e("query.dependency.label") }) }),
33679
- /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(ct.Item, { children: [
33684
+ return i ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
33685
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(Dl, { size: 16 }) : /* @__PURE__ */ r.jsx(Km, { size: 16 }), children: e("query.dependency.label") }) }),
33686
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(ct.Item, { children: [
33680
33687
  /* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
33681
33688
  /* @__PURE__ */ r.jsx(ct, { withPadding: !0, size: 14, sx: {
33682
33689
  fontFamily: "monospace",
@@ -33694,7 +33701,7 @@ WHERE
33694
33701
  } }), sx: {
33695
33702
  transform: "none !important"
33696
33703
  }, children: e("query.dependency.label") }) });
33697
- }), RE = "SELECT 1", AE = z(({
33704
+ }), AE = "SELECT 1", $E = z(({
33698
33705
  queryModel: t
33699
33706
  }) => {
33700
33707
  const {
@@ -33704,7 +33711,7 @@ WHERE
33704
33711
  }, a = () => {
33705
33712
  s(t.sql);
33706
33713
  }, o = () => {
33707
- s(RE);
33714
+ s(AE);
33708
33715
  };
33709
33716
  B(() => {
33710
33717
  s(t.sql);
@@ -33717,7 +33724,7 @@ WHERE
33717
33724
  flexShrink: 0,
33718
33725
  flexGrow: 0
33719
33726
  }, children: [
33720
- /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(EE, { queryModel: t }) }),
33727
+ /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(RE, { queryModel: t }) }),
33721
33728
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
33722
33729
  /* @__PURE__ */ r.jsx(I, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Cl, { size: 16 }), children: e("common.actions.reset_to_default") }),
33723
33730
  /* @__PURE__ */ r.jsx(I, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Sr, { size: 16 }), children: e("common.actions.revert_changes") }),
@@ -33726,7 +33733,7 @@ WHERE
33726
33733
  ] }),
33727
33734
  /* @__PURE__ */ r.jsx(La, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
33728
33735
  ] });
33729
- }), $E = ({
33736
+ }), PE = ({
33730
33737
  value: t,
33731
33738
  height: e = "200px",
33732
33739
  defaultLanguage: n = "sql"
@@ -33739,17 +33746,17 @@ WHERE
33739
33746
  enabled: !1
33740
33747
  },
33741
33748
  readOnly: !0
33742
- } }), PE = z(({
33749
+ } }), OE = z(({
33743
33750
  value: t
33744
33751
  }) => {
33745
33752
  const n = Fe().payloadForSQL, s = L.useMemo(() => Ri(t, n), [t, n]);
33746
- return /* @__PURE__ */ r.jsx($E, { height: "100%", value: s });
33753
+ return /* @__PURE__ */ r.jsx(PE, { height: "100%", value: s });
33747
33754
  }), rl = {
33748
33755
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
33749
33756
  `),
33750
33757
  post: ["function process_result(data, utils, state) {", " // process data and return the result", " return data", "}"].join(`
33751
33758
  `)
33752
- }, OE = z(({
33759
+ }, FE = z(({
33753
33760
  queryModel: t
33754
33761
  }) => {
33755
33762
  const {
@@ -33774,18 +33781,18 @@ WHERE
33774
33781
  ] }),
33775
33782
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Edit", sx: {
33776
33783
  position: "relative"
33777
- }, p: "sm", children: /* @__PURE__ */ r.jsx(AE, { queryModel: t }) }),
33778
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(PE, { value: t.sql }) }),
33784
+ }, p: "sm", children: /* @__PURE__ */ r.jsx($E, { queryModel: t }) }),
33785
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ r.jsx(OE, { value: t.sql }) }),
33779
33786
  /* @__PURE__ */ r.jsx(_.Panel, { value: "pre_process", sx: {
33780
33787
  position: "relative"
33781
33788
  }, p: "sm", children: /* @__PURE__ */ r.jsx(Un, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: rl.pre }) }),
33782
33789
  /* @__PURE__ */ r.jsx(_.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(Un, { label: "", value: t.post_process, onChange: t.setPostProcess, defaultValue: rl.post }) })
33783
33790
  ] }) : null;
33784
- }), FE = {
33791
+ }), VE = {
33785
33792
  pre: ["function transform(queries, state, utils) {", " // use queries & dashboar state to build new data", " const data = []", " return data", "}"].join(`
33786
33793
  `),
33787
33794
  post: ""
33788
- }, VE = z(({
33795
+ }, qE = z(({
33789
33796
  queryModel: t
33790
33797
  }) => {
33791
33798
  const {
@@ -33799,13 +33806,13 @@ WHERE
33799
33806
  /* @__PURE__ */ r.jsx(w, { size: "sm", children: e("query.transform.guide.write_function") }),
33800
33807
  /* @__PURE__ */ r.jsx(M, { sx: {
33801
33808
  flexGrow: 1
33802
- }, children: /* @__PURE__ */ r.jsx(Un, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: FE.pre }) })
33809
+ }, children: /* @__PURE__ */ r.jsx(Un, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: VE.pre }) })
33803
33810
  ] }) : null;
33804
33811
  }), lr = {
33805
33812
  height: "calc(100% - 44px)",
33806
33813
  // Tabs.List
33807
33814
  padding: 0
33808
- }, qE = z(({
33815
+ }, NE = z(({
33809
33816
  queryModel: t
33810
33817
  }) => {
33811
33818
  const {
@@ -33826,16 +33833,16 @@ WHERE
33826
33833
  /* @__PURE__ */ r.jsx(_.Tab, { value: "Data", disabled: !t.canPreviewData, children: /* @__PURE__ */ r.jsx(xe, { label: t.guideToPreviewData, disabled: t.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ r.jsx(w, { children: e("data.preview_data") }) }) }),
33827
33834
  /* @__PURE__ */ r.jsx(_.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ r.jsx(xe, { label: e("query.usage.unused_description"), disabled: !l, withinPortal: !0, children: /* @__PURE__ */ r.jsx(w, { children: e("query.usage.label") }) }) })
33828
33835
  ] }),
33829
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(zE, { queryModel: t }) }),
33836
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(IE, { queryModel: t }) }),
33830
33837
  t.typedAsSQL && /* @__PURE__ */ r.jsx(_.Panel, { value: "SQL", sx: lr, children: /* @__PURE__ */ r.jsx(k, { sx: {
33831
33838
  height: "100%"
33832
- }, children: /* @__PURE__ */ r.jsx(OE, { queryModel: t }) }) }),
33839
+ }, children: /* @__PURE__ */ r.jsx(FE, { queryModel: t }) }) }),
33833
33840
  t.typedAsHTTP && /* @__PURE__ */ r.jsx(_.Panel, { value: "HTTP", sx: lr, children: /* @__PURE__ */ r.jsx(k, { sx: {
33834
33841
  height: "100%"
33835
- }, children: /* @__PURE__ */ r.jsx(ME, { queryModel: t }) }) }),
33842
+ }, children: /* @__PURE__ */ r.jsx(LE, { queryModel: t }) }) }),
33836
33843
  t.isTransform && /* @__PURE__ */ r.jsx(_.Panel, { value: "Transform", sx: lr, children: /* @__PURE__ */ r.jsx(k, { sx: {
33837
33844
  height: "100%"
33838
- }, children: /* @__PURE__ */ r.jsx(VE, { queryModel: t }) }) }),
33845
+ }, children: /* @__PURE__ */ r.jsx(qE, { queryModel: t }) }) }),
33839
33846
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Data", sx: {
33840
33847
  ...lr,
33841
33848
  overflow: "hidden"
@@ -33843,19 +33850,19 @@ WHERE
33843
33850
  /* @__PURE__ */ r.jsx(_.Panel, { value: "Usage", sx: {
33844
33851
  ...lr,
33845
33852
  overflow: "hidden"
33846
- }, children: /* @__PURE__ */ r.jsx(LE, { queryID: t.id, usage: o }) })
33853
+ }, children: /* @__PURE__ */ r.jsx(EE, { queryID: t.id, usage: o }) })
33847
33854
  ] });
33848
- }), NE = z(({
33855
+ }), BE = z(({
33849
33856
  id: t
33850
33857
  }) => {
33851
33858
  const n = le().queries.findByID(t);
33852
- return t === "" ? null : n ? /* @__PURE__ */ r.jsx(qE, { queryModel: n }) : /* @__PURE__ */ r.jsx(w, { size: 14, color: "red", children: "Invalid Query ID" });
33853
- }), BE = z(({
33859
+ return t === "" ? null : n ? /* @__PURE__ */ r.jsx(NE, { queryModel: n }) : /* @__PURE__ */ r.jsx(w, { size: 14, color: "red", children: "Invalid Query ID" });
33860
+ }), WE = z(({
33854
33861
  value: t
33855
33862
  }) => {
33856
33863
  const n = Fe().payloadForSQL, s = C(() => Ri(t, n), [t, n]);
33857
33864
  return /* @__PURE__ */ r.jsx(La, { height: "100%", value: s });
33858
- }), WE = z(({
33865
+ }), GE = z(({
33859
33866
  item: t,
33860
33867
  remove: e,
33861
33868
  onKeyChanged: n
@@ -33929,10 +33936,10 @@ WHERE
33929
33936
  }, children: /* @__PURE__ */ r.jsx(Ut, { size: 18 }) })
33930
33937
  ] }),
33931
33938
  /* @__PURE__ */ r.jsx(_.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r.jsx(La, { height: "100%", value: h, onChange: m, defaultLanguage: "sql", theme: "sql-dark" }) }),
33932
- /* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r.jsx(BE, { value: h }) })
33939
+ /* @__PURE__ */ r.jsx(_.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r.jsx(WE, { value: h }) })
33933
33940
  ] })
33934
33941
  ] });
33935
- }), GE = z(({
33942
+ }), QE = z(({
33936
33943
  id: t
33937
33944
  }) => {
33938
33945
  const e = me(), n = le(), s = C(() => n.sqlSnippets.findByKey(t), [t]);
@@ -33951,8 +33958,8 @@ WHERE
33951
33958
  }, o = (l) => {
33952
33959
  e.editor.setPath(["_SQL_SNIPPETS_", l]);
33953
33960
  };
33954
- return /* @__PURE__ */ r.jsx(WE, { item: s, remove: a, onKeyChanged: o });
33955
- }), QE = z(() => {
33961
+ return /* @__PURE__ */ r.jsx(GE, { item: s, remove: a, onKeyChanged: o });
33962
+ }), HE = z(() => {
33956
33963
  const {
33957
33964
  t
33958
33965
  } = y(), [e, n] = Q([]), s = Rt(), i = me(), a = (m) => {
@@ -34048,9 +34055,9 @@ WHERE
34048
34055
  }) })
34049
34056
  ] }) }) })
34050
34057
  ] });
34051
- }), HE = z(({
34058
+ }), UE = z(({
34052
34059
  view: t
34053
- }) => !t || t.type !== W.Division ? null : /* @__PURE__ */ r.jsx(k, {})), UE = z(({
34060
+ }) => !t || t.type !== W.Division ? null : /* @__PURE__ */ r.jsx(k, {})), YE = z(({
34054
34061
  view: t
34055
34062
  }) => {
34056
34063
  const {
@@ -34081,7 +34088,7 @@ WHERE
34081
34088
  /* @__PURE__ */ r.jsx(F, { label: e("common.tabs.orientation.label"), value: a.orientation, onChange: a.setOrientation, data: i }),
34082
34089
  /* @__PURE__ */ r.jsx(qe, { label: e("common.tabs.grow_tabs"), checked: a.grow, onChange: (o) => a.setGrow(o.currentTarget.checked) })
34083
34090
  ] });
34084
- }), YE = ({
34091
+ }), KE = ({
34085
34092
  disabled: t,
34086
34093
  value: e,
34087
34094
  onChange: n
@@ -34100,7 +34107,7 @@ WHERE
34100
34107
  readOnly: t
34101
34108
  } })
34102
34109
  ] });
34103
- }, KE = ({
34110
+ }, JE = ({
34104
34111
  value: t,
34105
34112
  onChange: e
34106
34113
  }) => {
@@ -34138,9 +34145,9 @@ WHERE
34138
34145
  /* @__PURE__ */ r.jsx(Z, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: i, sx: {
34139
34146
  flexGrow: 0
34140
34147
  }, children: /* @__PURE__ */ r.jsx(kl, { size: 14 }) }),
34141
- /* @__PURE__ */ r.jsx(we, { size: 800, title: n("view.component.modal.custom_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
34148
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("view.component.modal.custom_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(k, { children: [
34142
34149
  /* @__PURE__ */ r.jsx(ee, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (p) => c(p.currentTarget.checked) }),
34143
- /* @__PURE__ */ r.jsx(YE, { value: o.func_content, onChange: h, disabled: !o.enabled }),
34150
+ /* @__PURE__ */ r.jsx(KE, { value: o.func_content, onChange: h, disabled: !o.enabled }),
34144
34151
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
34145
34152
  /* @__PURE__ */ r.jsx(I, { onClick: m, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.revert") }),
34146
34153
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
@@ -34150,7 +34157,7 @@ WHERE
34150
34157
  ] })
34151
34158
  ] }) })
34152
34159
  ] });
34153
- }, JE = z(({
34160
+ }, XE = z(({
34154
34161
  view: t
34155
34162
  }) => {
34156
34163
  const {
@@ -34165,20 +34172,20 @@ WHERE
34165
34172
  /* @__PURE__ */ r.jsx(D, { label: e("view.component.modal.title"), value: s, onChange: S.noop, disabled: !0, sx: {
34166
34173
  flexGrow: 1
34167
34174
  } }),
34168
- /* @__PURE__ */ r.jsx(KE, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
34175
+ /* @__PURE__ */ r.jsx(JE, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
34169
34176
  ] }),
34170
34177
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
34171
34178
  /* @__PURE__ */ r.jsx(D, { label: e("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
34172
34179
  /* @__PURE__ */ r.jsx(D, { label: e("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
34173
34180
  ] })
34174
34181
  ] });
34175
- }), XE = z(({
34182
+ }), ZE = z(({
34176
34183
  view: t
34177
34184
  }) => /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
34178
- /* @__PURE__ */ r.jsx(HE, { view: t }),
34179
- /* @__PURE__ */ r.jsx(JE, { view: t }),
34180
- /* @__PURE__ */ r.jsx(UE, { view: t })
34181
- ] })), ZE = z(({
34185
+ /* @__PURE__ */ r.jsx(UE, { view: t }),
34186
+ /* @__PURE__ */ r.jsx(XE, { view: t }),
34187
+ /* @__PURE__ */ r.jsx(YE, { view: t })
34188
+ ] })), eR = z(({
34182
34189
  view: t
34183
34190
  }) => {
34184
34191
  const {
@@ -34201,9 +34208,9 @@ WHERE
34201
34208
  t.setName(i.currentTarget.value);
34202
34209
  } }),
34203
34210
  /* @__PURE__ */ r.jsx(F, { label: e("common.type"), withinPortal: !0, zIndex: 320, value: t.type, onChange: t.setType, data: s }),
34204
- /* @__PURE__ */ r.jsx(XE, { view: t })
34211
+ /* @__PURE__ */ r.jsx(ZE, { view: t })
34205
34212
  ] }) : null;
34206
- }), eR = z(({
34213
+ }), tR = z(({
34207
34214
  id: t
34208
34215
  }) => {
34209
34216
  const {
@@ -34243,45 +34250,45 @@ WHERE
34243
34250
  flexGrow: 1,
34244
34251
  maxHeight: "calc(100% - 52px)",
34245
34252
  overflow: "auto"
34246
- }, children: /* @__PURE__ */ r.jsx(ZE, { view: a }) })
34253
+ }, children: /* @__PURE__ */ r.jsx(eR, { view: a }) })
34247
34254
  ] });
34248
34255
  });
34249
- function tR(t) {
34256
+ function nR(t) {
34250
34257
  return t.length === 1 && t[0] === "_QUERY_VARS_";
34251
34258
  }
34252
- function nR(t) {
34259
+ function rR(t) {
34253
34260
  return t.length === 1 && t[0] === "_MOCK_CONTEXT_";
34254
34261
  }
34255
- function rR(t) {
34262
+ function sR(t) {
34256
34263
  return t.length === 1 && t[0] === "_FILTERS_";
34257
34264
  }
34258
- function sR(t) {
34265
+ function iR(t) {
34259
34266
  return t.length === 2 && t[0] === "_FILTERS_";
34260
34267
  }
34261
- function iR(t) {
34268
+ function aR(t) {
34262
34269
  return t.length === 1 && t[0] === "_SQL_SNIPPETS_";
34263
34270
  }
34264
- function aR(t) {
34271
+ function oR(t) {
34265
34272
  return t.length === 2 && t[0] === "_SQL_SNIPPETS_";
34266
34273
  }
34267
- function oR(t) {
34274
+ function lR(t) {
34268
34275
  return t.length === 2 && t[0] === "_QUERIES_";
34269
34276
  }
34270
- function lR(t) {
34277
+ function cR(t) {
34271
34278
  return t.length === 1 && t[0] === "_QUERIES_";
34272
34279
  }
34273
- function cR(t) {
34280
+ function dR(t) {
34274
34281
  return t.length === 2 && t[0] === "_VIEWS_";
34275
34282
  }
34276
- function dR(t) {
34283
+ function uR(t) {
34277
34284
  return t.length === 4 && t[0] === "_VIEWS_" && t[2] === "_PANELS_";
34278
34285
  }
34279
- const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34286
+ const hR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34280
34287
  height: "100%"
34281
- }, p: "sm", children: /* @__PURE__ */ r.jsx(Pu, {}) })), hR = z(() => {
34288
+ }, p: "sm", children: /* @__PURE__ */ r.jsx(Pu, {}) })), mR = z(() => {
34282
34289
  const t = me().editor, e = t.path;
34283
- return tR(e) ? /* @__PURE__ */ r.jsx(uR, {}) : nR(e) ? /* @__PURE__ */ r.jsx(wL, {}) : rR(e) ? /* @__PURE__ */ r.jsx(jL, {}) : sR(e) ? /* @__PURE__ */ r.jsx(M, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(vL, { id: e[1] }) }) : iR(e) ? /* @__PURE__ */ r.jsx(QE, {}) : aR(e) ? /* @__PURE__ */ r.jsx(GE, { id: e[1] }) : lR(e) ? /* @__PURE__ */ r.jsx(aE, {}) : oR(e) ? /* @__PURE__ */ r.jsx(NE, { id: e[1] }) : cR(e) ? /* @__PURE__ */ r.jsx(M, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(eR, { id: e[1] }) }) : dR(e) ? /* @__PURE__ */ r.jsx(iE, { viewID: e[1], panelID: e[3] }) : /* @__PURE__ */ r.jsx(M, { children: t.path });
34284
- }), mR = z(() => /* @__PURE__ */ r.jsx(hR, {})), pR = z(() => {
34290
+ return nR(e) ? /* @__PURE__ */ r.jsx(hR, {}) : rR(e) ? /* @__PURE__ */ r.jsx(SL, {}) : sR(e) ? /* @__PURE__ */ r.jsx(wL, {}) : iR(e) ? /* @__PURE__ */ r.jsx(M, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(jL, { id: e[1] }) }) : aR(e) ? /* @__PURE__ */ r.jsx(HE, {}) : oR(e) ? /* @__PURE__ */ r.jsx(QE, { id: e[1] }) : cR(e) ? /* @__PURE__ */ r.jsx(oE, {}) : lR(e) ? /* @__PURE__ */ r.jsx(BE, { id: e[1] }) : dR(e) ? /* @__PURE__ */ r.jsx(M, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(tR, { id: e[1] }) }) : uR(e) ? /* @__PURE__ */ r.jsx(aE, { viewID: e[1], panelID: e[3] }) : /* @__PURE__ */ r.jsx(M, { children: t.path });
34291
+ }), pR = z(() => /* @__PURE__ */ r.jsx(mR, {})), xR = z(() => {
34285
34292
  const {
34286
34293
  t
34287
34294
  } = y(), e = me(), n = () => {
@@ -34290,7 +34297,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34290
34297
  key: s,
34291
34298
  label: s,
34292
34299
  order: e.content.filters.current.length + 1,
34293
- type: Re.TextInput,
34300
+ type: be.TextInput,
34294
34301
  config: Gd(),
34295
34302
  visibleInViewsIDs: ["Main"],
34296
34303
  auto_submit: !1
@@ -34305,7 +34312,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34305
34312
  justifyContent: "flex-start"
34306
34313
  }
34307
34314
  }, children: t("filter.add") });
34308
- }), xR = z(({
34315
+ }), gR = z(({
34309
34316
  parentID: t
34310
34317
  }) => {
34311
34318
  const {
@@ -34322,14 +34329,14 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34322
34329
  justifyContent: "flex-start"
34323
34330
  }
34324
34331
  }, children: e("panel.add") });
34325
- }), gR = z(() => {
34332
+ }), fR = z(() => {
34326
34333
  const {
34327
34334
  t
34328
34335
  } = y(), e = me(), n = () => {
34329
34336
  const s = (/* @__PURE__ */ new Date()).getTime().toString(), i = {
34330
34337
  id: s,
34331
34338
  name: s,
34332
- type: Me.Postgresql,
34339
+ type: Le.Postgresql,
34333
34340
  key: "",
34334
34341
  sql: ""
34335
34342
  };
@@ -34343,7 +34350,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34343
34350
  justifyContent: "flex-start"
34344
34351
  }
34345
34352
  }, children: t("query.add") });
34346
- }), fR = z(() => {
34353
+ }), bR = z(() => {
34347
34354
  const {
34348
34355
  t
34349
34356
  } = y(), e = me(), n = () => {
@@ -34361,7 +34368,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34361
34368
  justifyContent: "flex-start"
34362
34369
  }
34363
34370
  }, children: t("sql_snippet.add") });
34364
- }), bR = z(() => {
34371
+ }), yR = z(() => {
34365
34372
  const {
34366
34373
  t
34367
34374
  } = y(), e = le();
@@ -34373,7 +34380,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34373
34380
  justifyContent: "flex-start"
34374
34381
  }
34375
34382
  }, children: t("view.add") });
34376
- }), yR = z(() => {
34383
+ }), _R = z(() => {
34377
34384
  const {
34378
34385
  t
34379
34386
  } = y(), e = me();
@@ -34386,7 +34393,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34386
34393
  justifyContent: "space-between"
34387
34394
  }
34388
34395
  }, children: t("query.manage") });
34389
- }), _R = z(() => {
34396
+ }), vR = z(() => {
34390
34397
  const {
34391
34398
  t
34392
34399
  } = y(), e = me();
@@ -34399,7 +34406,7 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34399
34406
  justifyContent: "space-between"
34400
34407
  }
34401
34408
  }, children: t("sql_snippet.manage") });
34402
- }), vR = z(() => {
34409
+ }), jR = z(() => {
34403
34410
  const {
34404
34411
  t
34405
34412
  } = y(), e = me();
@@ -34412,10 +34419,10 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34412
34419
  justifyContent: "space-between"
34413
34420
  }
34414
34421
  }, children: t("filter.manage") });
34415
- }), jR = z(({
34422
+ }), wR = z(({
34416
34423
  action_type: t,
34417
34424
  parentID: e
34418
- }) => t === "_Add_A_Filter_" ? /* @__PURE__ */ r.jsx(pR, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r.jsx(fR, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ r.jsx(gR, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ r.jsx(bR, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ r.jsx(xR, { parentID: e }) : t === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r.jsx(yR, {}) : t === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r.jsx(_R, {}) : t === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r.jsx(vR, {}) : null), Ou = z(({
34425
+ }) => t === "_Add_A_Filter_" ? /* @__PURE__ */ r.jsx(xR, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r.jsx(bR, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ r.jsx(fR, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ r.jsx(yR, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ r.jsx(gR, { parentID: e }) : t === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r.jsx(_R, {}) : t === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r.jsx(vR, {}) : t === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r.jsx(jR, {}) : null), Ou = z(({
34419
34426
  option: t
34420
34427
  }) => {
34421
34428
  var u;
@@ -34424,13 +34431,13 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34424
34431
  } = y(), n = me().editor, s = n.isOptionActive, i = s(n.path, t), a = n.isOptionOpened, o = n.navigate, l = a(t), [c, d] = Q(l);
34425
34432
  return B(() => {
34426
34433
  d(l);
34427
- }, [l]), /* @__PURE__ */ r.jsx(ci, { active: i, defaultOpened: l, opened: c, onChange: d, label: e(t.label), onClick: () => o(t), icon: t.Icon ? /* @__PURE__ */ r.jsx(t.Icon, { size: 18 }) : null, children: (u = t.children) == null ? void 0 : u.map((h) => h._type === "ACTION" ? /* @__PURE__ */ r.jsx(jR, { action_type: h._action_type, parentID: h.parentID }, `_ADD_${h.value}_`) : /* @__PURE__ */ r.jsx(Ou, { option: h }, h.value)) }, t.label);
34428
- }), wR = z(() => {
34434
+ }, [l]), /* @__PURE__ */ r.jsx(ci, { active: i, defaultOpened: l, opened: c, onChange: d, label: e(t.label), onClick: () => o(t), icon: t.Icon ? /* @__PURE__ */ r.jsx(t.Icon, { size: 18 }) : null, children: (u = t.children) == null ? void 0 : u.map((h) => h._type === "ACTION" ? /* @__PURE__ */ r.jsx(wR, { action_type: h._action_type, parentID: h.parentID }, `_ADD_${h.value}_`) : /* @__PURE__ */ r.jsx(Ou, { option: h }, h.value)) }, t.label);
34435
+ }), SR = z(() => {
34429
34436
  const t = me();
34430
34437
  return /* @__PURE__ */ r.jsx(M, { sx: {
34431
34438
  position: "relative"
34432
34439
  }, children: t.editor.navOptions.map((e) => /* @__PURE__ */ r.jsx(Ou, { option: e }, e.value)) });
34433
- }), SR = z(() => {
34440
+ }), kR = z(() => {
34434
34441
  const {
34435
34442
  t
34436
34443
  } = y(), e = me();
@@ -34455,12 +34462,12 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34455
34462
  }, children: t("common.titles.settings") }) }),
34456
34463
  /* @__PURE__ */ r.jsx(Bt.Section, { grow: !0, sx: {
34457
34464
  overflow: "auto"
34458
- }, children: /* @__PURE__ */ r.jsx(wR, {}) }),
34465
+ }, children: /* @__PURE__ */ r.jsx(SR, {}) }),
34459
34466
  /* @__PURE__ */ r.jsx(Bt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
34460
34467
  borderTop: "1px solid #eee"
34461
34468
  }, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ml, { size: 18 }), onClick: () => e.editor.close(), children: t("common.actions.close") }) }) })
34462
34469
  ] });
34463
- }), kR = {
34470
+ }), CR = {
34464
34471
  root: {
34465
34472
  height: "100vh",
34466
34473
  display: "flex",
@@ -34482,9 +34489,9 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34482
34489
  paddingTop: 0,
34483
34490
  height: "100vh"
34484
34491
  }
34485
- }, CR = z(() => {
34492
+ }, zR = z(() => {
34486
34493
  const t = me().editor;
34487
- return /* @__PURE__ */ r.jsx(we, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
34494
+ return /* @__PURE__ */ r.jsx(Se, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
34488
34495
  duration: 0
34489
34496
  }, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
34490
34497
  body: {
@@ -34494,14 +34501,14 @@ const uR = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
34494
34501
  // @ts-expect-error important
34495
34502
  overflowY: "hidden !important"
34496
34503
  }
34497
- }, children: /* @__PURE__ */ r.jsx(ul, { padding: 0, navbar: /* @__PURE__ */ r.jsx(SR, {}), styles: kR, children: /* @__PURE__ */ r.jsx(mR, {}) }) });
34498
- }), zR = (t) => t.replace(/([^:])(\/\/+)/g, "$1/");
34499
- function IR(t) {
34504
+ }, children: /* @__PURE__ */ r.jsx(ul, { padding: 0, navbar: /* @__PURE__ */ r.jsx(kR, {}), styles: CR, children: /* @__PURE__ */ r.jsx(pR, {}) }) });
34505
+ }), IR = (t) => t.replace(/([^:])(\/\/+)/g, "$1/");
34506
+ function TR(t) {
34500
34507
  B(() => {
34501
34508
  if (Us.__getMonacoInstance())
34502
34509
  return;
34503
34510
  console.log("loading monaco for @devtable/dashboard");
34504
- const n = zR(t);
34511
+ const n = IR(t);
34505
34512
  Us.config({
34506
34513
  paths: {
34507
34514
  vs: n
@@ -34511,7 +34518,7 @@ function IR(t) {
34511
34518
  }
34512
34519
  ic();
34513
34520
  ac();
34514
- const TR = {
34521
+ const DR = {
34515
34522
  root: {
34516
34523
  height: "100vh",
34517
34524
  display: "flex",
@@ -34529,7 +34536,7 @@ const TR = {
34529
34536
  // main header & sub header
34530
34537
  height: "100vh"
34531
34538
  }
34532
- }, DR = ({
34539
+ }, MR = ({
34533
34540
  context: t,
34534
34541
  dashboard: e,
34535
34542
  content: n,
@@ -34543,7 +34550,7 @@ const TR = {
34543
34550
  onExit: u,
34544
34551
  lang: h
34545
34552
  }, m) => {
34546
- IR(a.monacoPath), rc(a);
34553
+ TR(a.monacoPath), rc(a);
34547
34554
  const {
34548
34555
  data: p = []
34549
34556
  } = Sn(Pi), {
@@ -34583,12 +34590,12 @@ const TR = {
34583
34590
  }, children: /* @__PURE__ */ r.jsx(mc, { value: v, children: /* @__PURE__ */ r.jsx(bc, { value: v.content, children: /* @__PURE__ */ r.jsx(Vi.Provider, { value: {
34584
34591
  inEditMode: !0
34585
34592
  }, children: /* @__PURE__ */ r.jsx(Ft.Provider, { value: E, children: /* @__PURE__ */ r.jsxs($s, { configure: $, children: [
34586
- /* @__PURE__ */ r.jsx(ul, { padding: 0, header: /* @__PURE__ */ r.jsx(EM, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(aL, {}), styles: TR, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
34593
+ /* @__PURE__ */ r.jsx(ul, { padding: 0, header: /* @__PURE__ */ r.jsx(EM, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(aL, {}), styles: DR, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
34587
34594
  position: "relative"
34588
34595
  }, children: v.content.views.visibleViews.map((V) => /* @__PURE__ */ r.jsx(ND, { view: V }, V.id)) }) }),
34589
- /* @__PURE__ */ r.jsx(CR, {})
34596
+ /* @__PURE__ */ r.jsx(zR, {})
34590
34597
  ] }) }) }) }) }) }) }) }) });
34591
- }, L2 = z(ne(DR));
34598
+ }, E2 = z(ne(MR));
34592
34599
  const Fu = x.model({
34593
34600
  id: x.string,
34594
34601
  name: x.string,
@@ -34630,7 +34637,7 @@ const Fu = x.model({
34630
34637
  return this.json.content;
34631
34638
  },
34632
34639
  get payloadForSQL() {
34633
- const e = Le(t).context.current, n = Le(t).globalSQLSnippets, s = {
34640
+ const e = Ee(t).context.current, n = Ee(t).globalSQLSnippets, s = {
34634
34641
  context: {
34635
34642
  ...t.mock_context.current,
34636
34643
  ...e
@@ -34644,7 +34651,7 @@ const Fu = x.model({
34644
34651
  };
34645
34652
  },
34646
34653
  get payloadForViz() {
34647
- const e = Le(t).context.current;
34654
+ const e = Ee(t).context.current;
34648
34655
  return {
34649
34656
  context: {
34650
34657
  ...t.mock_context.current,
@@ -34692,7 +34699,7 @@ const Fu = x.model({
34692
34699
  // setupAutoSave();
34693
34700
  // },
34694
34701
  }));
34695
- function MR({
34702
+ function LR({
34696
34703
  id: t,
34697
34704
  name: e,
34698
34705
  dashboard_id: n,
@@ -34735,7 +34742,7 @@ function MR({
34735
34742
  }
34736
34743
  });
34737
34744
  }
34738
- const LR = x.model({
34745
+ const ER = x.model({
34739
34746
  id: x.identifier,
34740
34747
  name: x.string,
34741
34748
  group: x.string,
@@ -34745,18 +34752,18 @@ const LR = x.model({
34745
34752
  globalSQLSnippets: Xd,
34746
34753
  context: ka
34747
34754
  });
34748
- function ER({
34755
+ function RR({
34749
34756
  id: t,
34750
34757
  name: e,
34751
34758
  group: n,
34752
34759
  content_id: s
34753
34760
  }, i, a, o, l, c) {
34754
- return LR.create({
34761
+ return ER.create({
34755
34762
  id: t,
34756
34763
  name: e,
34757
34764
  group: n,
34758
34765
  content_id: s,
34759
- content: MR(i, l, c),
34766
+ content: LR(i, l, c),
34760
34767
  datasources: {
34761
34768
  list: a
34762
34769
  },
@@ -34768,7 +34775,7 @@ function ER({
34768
34775
  }
34769
34776
  ic();
34770
34777
  ac();
34771
- const RR = ({
34778
+ const AR = ({
34772
34779
  context: t,
34773
34780
  dashboard: e,
34774
34781
  content: n,
@@ -34785,7 +34792,7 @@ const RR = ({
34785
34792
  data: u = []
34786
34793
  } = Sn(Pi), {
34787
34794
  data: h = []
34788
- } = Sn(oc), m = L.useMemo(() => ER(e, n, u, h, t, l ?? {}), [e, n]);
34795
+ } = Sn(oc), m = L.useMemo(() => RR(e, n, u, h, t, l ?? {}), [e, n]);
34789
34796
  zu(m.content, !1), L.useEffect(() => {
34790
34797
  m.context.replace(t);
34791
34798
  }, [t]), L.useEffect(() => {
@@ -34817,7 +34824,7 @@ const RR = ({
34817
34824
  }, children: /* @__PURE__ */ r.jsx(Vi.Provider, { value: {
34818
34825
  inEditMode: !1
34819
34826
  }, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Ft.Provider, { value: p, children: /* @__PURE__ */ r.jsx($s, { configure: f, children: m.content.views.visibleViews.map((v) => /* @__PURE__ */ r.jsx(za, { view: v }, v.id)) }) }) }) }) }) }) }) }) }) }) });
34820
- }, E2 = z(RR);
34827
+ }, R2 = z(AR);
34821
34828
  P.extend(Ip);
34822
34829
  P.extend(Tp);
34823
34830
  P.extend(Dp);
@@ -34855,7 +34862,7 @@ P.tz.setDefault("UTC");
34855
34862
  P.updateLocale("en", {
34856
34863
  weekStart: 1
34857
34864
  });
34858
- const R2 = () => Promise.resolve().then(() => og).then(({
34865
+ const A2 = () => Promise.resolve().then(() => og).then(({
34859
34866
  version: t
34860
34867
  }) => (console.log(`[@devtable/dashboard] version: ${t}`), t));
34861
34868
  export {
@@ -34868,24 +34875,24 @@ export {
34868
34875
  Si as DEFAULT_CUSTOM_MODAL_TITLE,
34869
34876
  wx as DashboardApiClient,
34870
34877
  Sx as DashboardApiFacadeClient,
34871
- L2 as DashboardEditor,
34872
- Re as DashboardFilterType,
34878
+ E2 as DashboardEditor,
34879
+ be as DashboardFilterType,
34873
34880
  BD as DashboardMode,
34874
34881
  uM as DashboardModel,
34875
34882
  mc as DashboardModelContextProvider,
34876
- LR as DashboardRenderModel,
34883
+ ER as DashboardRenderModel,
34877
34884
  gc as DashboardThemeContextProvider,
34878
34885
  ND as DashboardViewEditor,
34879
34886
  za as DashboardViewRender,
34880
34887
  Jd as DataSourceMetaModel,
34881
- Me as DataSourceType,
34888
+ Le as DataSourceType,
34882
34889
  QT as DataSourcesMetaModel,
34883
34890
  Sc as DatesProvider,
34884
34891
  jx as DefaultApiClient,
34885
34892
  pu as DescriptionPopover,
34886
34893
  rD as DraftModel,
34887
34894
  W as EViewComponentType,
34888
- z2 as FacadeApiClient,
34895
+ I2 as FacadeApiClient,
34889
34896
  Fd as FilterCheckboxConfigMeta,
34890
34897
  qd as FilterDateRangeConfigMeta,
34891
34898
  Hd as FilterMeta,
@@ -34923,15 +34930,15 @@ export {
34923
34930
  zT as QueryMeta,
34924
34931
  HD as QueryModel,
34925
34932
  du as QueryRenderModel,
34926
- E2 as ReadOnlyDashboard,
34933
+ R2 as ReadOnlyDashboard,
34927
34934
  DT as SQLSnippetMeta,
34928
34935
  tD as SQLSnippetRenderModel,
34929
34936
  YD as SQLSnippetsModel,
34930
34937
  mu as SQLSnippetsRenderModel,
34931
34938
  ST as VariableMeta,
34932
34939
  WD as ViewComponentTypeBackground,
34933
- D2 as ViewComponentTypeColor,
34934
- T2 as ViewComponentTypeName,
34940
+ M2 as ViewComponentTypeColor,
34941
+ D2 as ViewComponentTypeName,
34935
34942
  Ud as ViewDivisionConfig,
34936
34943
  GT as ViewMeta,
34937
34944
  Yd as ViewModalConfig,
@@ -34940,13 +34947,13 @@ export {
34940
34947
  lM as ViewsModel,
34941
34948
  tu as ViewsRenderModel,
34942
34949
  mD as Viz,
34943
- M2 as applyPartialDashboard,
34950
+ L2 as applyPartialDashboard,
34944
34951
  rc as configureAPIClient,
34945
34952
  dM as createContentModel,
34946
- MR as createContentRenderModel,
34953
+ LR as createContentRenderModel,
34947
34954
  Zd as createContextMeta,
34948
34955
  hM as createDashboardModel,
34949
- ER as createDashboardRenderModel,
34956
+ RR as createDashboardRenderModel,
34950
34957
  sD as createDraft,
34951
34958
  MT as createFilterCheckboxConfig,
34952
34959
  ET as createFilterDateRangeConfig,
@@ -34966,8 +34973,8 @@ export {
34966
34973
  nD as getInitialSQLSnippetsRenderModel,
34967
34974
  UT as getInitialViewsRenderModel,
34968
34975
  JT as getNewPanel,
34969
- R2 as getVersion,
34970
- I2 as initialDashboardContent,
34976
+ A2 as getVersion,
34977
+ T2 as initialDashboardContent,
34971
34978
  pc as useDashboardContext,
34972
34979
  mg as useDashboardThemeContext,
34973
34980
  le as useEditContentModelContext,