@devtable/dashboard 10.55.1 → 10.56.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.
@@ -1,11 +1,11 @@
1
1
  var Hu = Object.defineProperty;
2
- var Uu = (e, t, n) => t in e ? Hu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
- var V = (e, t, n) => (Uu(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import L, { useState as N, useEffect as O, useCallback as qe, useMemo as T, forwardRef as de, createElement as Jr, useContext as Ht, useRef as Zr, createContext as Xo, memo as Ku } from "react";
5
- import { Box as z, Select as A, Stack as w, Text as j, Group as b, TextInput as I, Button as C, Switch as Be, NumberInput as U, Divider as D, Table as Ke, ActionIcon as W, MultiSelect as nr, Paper as Yu, Code as Ka, Modal as me, Tabs as m, LoadingOverlay as vn, Alert as mi, ColorSwatch as Xs, Overlay as Rt, Checkbox as K, Center as wn, useMantineTheme as Jo, CheckIcon as Xu, MANTINE_SIZES as Ju, SimpleGrid as en, Tooltip as fe, NativeSelect as Zo, SegmentedControl as Zu, HoverCard as Oe, Anchor as Js, Textarea as eh, Collapse as fi, Mark as th, ColorInput as gi, createStyles as dr, Popover as Fn, Slider as nh, Flex as Ut, Badge as gn, CloseButton as el, Menu as ee, Affix as rh, Header as sh, List as Mt, FileInput as ih, ThemeIcon as Es, UnstyledButton as ah, Navbar as Nt, JsonInput as tl, Pagination as nl, Drawer as oh, Accordion as Cr, Radio as Ya, Skeleton as Xa, NavLink as Zs, AppShell as rl } from "@mantine/core";
2
+ var Ku = (e, t, n) => t in e ? Hu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
+ var V = (e, t, n) => (Ku(e, typeof t != "symbol" ? t + "" : t, n), n);
4
+ import L, { useState as N, useEffect as O, useCallback as qe, useMemo as T, forwardRef as de, createElement as Jr, useContext as Ht, useRef as Zr, createContext as Xo, memo as Uu } from "react";
5
+ import { Box as z, HoverCard as Te, TextInput as I, Group as b, Text as j, Select as A, Stack as w, Button as C, Switch as Be, NumberInput as K, Divider as D, Table as Ue, ActionIcon as W, MultiSelect as nr, Paper as Yu, Code as Ua, Modal as me, Tabs as m, LoadingOverlay as vn, Alert as mi, ColorSwatch as Xs, Overlay as Rt, Checkbox as U, Center as wn, useMantineTheme as Jo, CheckIcon as Xu, MANTINE_SIZES as Ju, SimpleGrid as en, Tooltip as fe, NativeSelect as Zo, SegmentedControl as Zu, Anchor as Js, Textarea as eh, Collapse as fi, Mark as th, ColorInput as gi, createStyles as dr, Popover as Fn, Slider as nh, Flex as Kt, Badge as gn, CloseButton as el, Menu as ee, Affix as rh, Header as sh, List as Mt, FileInput as ih, ThemeIcon as Es, UnstyledButton as ah, Navbar as Nt, JsonInput as tl, Pagination as nl, Drawer as oh, Accordion as Cr, Radio as Ya, Skeleton as Xa, NavLink as Zs, AppShell as rl } from "@mantine/core";
6
6
  import { useModals as Ct, ModalsProvider as sl } from "@mantine/modals";
7
- import { useBoolean as Ee, useCreation as _t, useAsyncEffect as ur, useRequest as bn, useWhyDidYouUpdate as il, useLatest as Ja, usePrevious as lh } from "ahooks";
8
- import { observable as al, runInAction as Jn, toJS as Kt, reaction as it, makeAutoObservable as hr } from "mobx";
7
+ import { useBoolean as Fe, useCreation as _t, useAsyncEffect as ur, useRequest as bn, useWhyDidYouUpdate as il, useLatest as Ja, usePrevious as lh } from "ahooks";
8
+ import { observable as al, runInAction as Jn, toJS as Ut, reaction as it, makeAutoObservable as hr } from "mobx";
9
9
  import { observer as k } from "mobx-react-lite";
10
10
  import * as ch from "crypto-js";
11
11
  import dh from "crypto-js";
@@ -26,9 +26,9 @@ import { GridComponent as ot, VisualMapComponent as pr, LegendComponent as lt, T
26
26
  import * as ae from "echarts/core";
27
27
  import { CanvasRenderer as Xe } from "echarts/renderers";
28
28
  import { useForm as ve, Controller as g, useFieldArray as we, useWatch as kh } from "react-hook-form";
29
- import { DeviceFloppy as he, ArrowRight as Fs, Trash as oe, AlertCircle as Th, Recycle as pt, InfoCircle as sn, Plus as ze, Refresh as vi, Download as wi, ArrowsMaximize as xl, Settings as ml, Copy as Ih, ArrowLeft as Dh, ArrowsMove as zh, ChevronDownRight as Mh, ChevronsUpRight as Lh, PlaylistAdd as ns, ArrowBarToRight as Ah } from "tabler-icons-react";
29
+ import { DeviceFloppy as he, ArrowRight as Fs, Trash as oe, AlertCircle as Th, Recycle as pt, InfoCircle as sn, Plus as Me, Refresh as vi, Download as wi, ArrowsMaximize as xl, Settings as ml, Copy as Ih, ArrowLeft as Dh, ArrowsMove as zh, ChevronDownRight as Mh, ChevronsUpRight as Lh, PlaylistAdd as ns, ArrowBarToRight as Ah } from "tabler-icons-react";
30
30
  import { BoxplotChart as Rh, CustomChart as Eh, BarChart as Nn, LineChart as Bn, ScatterChart as rs, FunnelChart as Fh, HeatmapChart as ss, PieChart as Oh, RadarChart as $h, SunburstChart as Ph } from "echarts/charts";
31
- import { IconDeviceFloppy as Yt, IconTextSize as _i, IconInfoCircle as _n, IconPlayerSkipBack as fl, IconRecycle as is, IconMathFunction as Vh, IconPlus as xt, IconBorderAll as Nh, IconTrash as tn, IconArrowDown as Bh, IconArrowUp as qh, IconCalendar as Wh, IconMinus as Gh, IconCode as nn, IconCamera as as, IconShare3 as Qh, IconDownload as gl, IconArrowsLeftRight as Hh, IconVariable as bl, IconCodeDots as Uh, IconFilter as yl, IconCopy as Kh, IconDatabase as os, IconBoxMultiple as jl, IconMenu2 as Yh, IconCaretDown as Xh, IconAlertTriangle as Si, IconArrowLeft as Jh, IconPlaylistAdd as eo, IconPointFilled as Ci, IconFileImport as to, IconCircleDashed as Zh, IconCircleDot as ep, IconCircleOff as tp, IconAdjustments as np, IconLink as rp, IconSettings as ls, IconArrowCurveRight as ei, IconLine as sp, IconX as vl, IconEye as wl, IconTable as ip, IconColumns as ap, IconAlertCircle as no, IconVariablePlus as op, IconHierarchy as lp, IconDiscountCheckFilled as cp } from "@tabler/icons-react";
31
+ import { IconDeviceFloppy as Yt, IconTextSize as _i, IconInfoCircle as _n, IconPlayerSkipBack as fl, IconRecycle as is, IconMathFunction as Vh, IconPlus as xt, IconBorderAll as Nh, IconTrash as tn, IconArrowDown as Bh, IconArrowUp as qh, IconCalendar as Wh, IconMinus as Gh, IconCode as nn, IconCamera as as, IconShare3 as Qh, IconDownload as gl, IconArrowsLeftRight as Hh, IconVariable as bl, IconCodeDots as Kh, IconFilter as yl, IconCopy as Uh, IconDatabase as os, IconBoxMultiple as jl, IconMenu2 as Yh, IconCaretDown as Xh, IconAlertTriangle as Si, IconArrowLeft as Jh, IconPlaylistAdd as eo, IconPointFilled as Ci, IconFileImport as to, IconCircleDashed as Zh, IconCircleDot as ep, IconCircleOff as tp, IconAdjustments as np, IconLink as rp, IconSettings as ls, IconArrowCurveRight as ei, IconLine as sp, IconX as vl, IconEye as wl, IconTable as ip, IconColumns as ap, IconAlertCircle as no, IconVariablePlus as op, IconHierarchy as lp, IconDiscountCheckFilled as cp } from "@tabler/icons-react";
32
32
  import { useClipboard as dp, randomId as jn, useElementSize as sr, useDisclosure as xr, useInputState as _l } from "@mantine/hooks";
33
33
  import { showNotification as On, notifications as up } from "@mantine/notifications";
34
34
  import { interpolate as Sn } from "popmotion";
@@ -69,8 +69,8 @@ import { v4 as $s } from "uuid";
69
69
  import Gp from "dayjs/plugin/advancedFormat";
70
70
  import Qp from "dayjs/plugin/arraySupport";
71
71
  import Hp from "dayjs/plugin/buddhistEra";
72
- import Up from "dayjs/plugin/calendar";
73
- import Kp from "dayjs/plugin/customParseFormat";
72
+ import Kp from "dayjs/plugin/calendar";
73
+ import Up from "dayjs/plugin/customParseFormat";
74
74
  import Yp from "dayjs/plugin/dayOfYear";
75
75
  import Xp from "dayjs/plugin/duration";
76
76
  import Jp from "dayjs/plugin/isBetween";
@@ -101,7 +101,7 @@ import wx from "dayjs/plugin/weekOfYear";
101
101
  import _x from "dayjs/plugin/weekYear";
102
102
  import { useNavigate as Sx } from "react-router-dom";
103
103
  import Cx, { Position as vt, Handle as io, MiniMap as kx, Controls as Tx, Background as Ix } from "reactflow";
104
- var ni = { exports: {} }, Kn = {};
104
+ var ni = { exports: {} }, Un = {};
105
105
  /**
106
106
  * @license React
107
107
  * react-jsx-runtime.production.min.js
@@ -114,7 +114,7 @@ var ni = { exports: {} }, Kn = {};
114
114
  var ao;
115
115
  function Dx() {
116
116
  if (ao)
117
- return Kn;
117
+ return Un;
118
118
  ao = 1;
119
119
  var e = L, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), s = Object.prototype.hasOwnProperty, i = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
120
120
  function o(l, c, d) {
@@ -127,7 +127,7 @@ function Dx() {
127
127
  h[u] === void 0 && (h[u] = c[u]);
128
128
  return { $$typeof: t, type: l, key: p, ref: x, props: h, _owner: i.current };
129
129
  }
130
- return Kn.Fragment = n, Kn.jsx = o, Kn.jsxs = o, Kn;
130
+ return Un.Fragment = n, Un.jsx = o, Un.jsxs = o, Un;
131
131
  }
132
132
  var Yn = {};
133
133
  /**
@@ -167,10 +167,10 @@ function zx() {
167
167
  pe.unshift("Warning: " + R), Function.prototype.apply.call(console[v], console, pe);
168
168
  }
169
169
  }
170
- var be = !1, ne = !1, Se = !1, Te = !1, Me = !1, on;
170
+ var be = !1, ne = !1, Se = !1, Ie = !1, Le = !1, on;
171
171
  on = Symbol.for("react.module.reference");
172
172
  function yt(v) {
173
- return !!(typeof v == "string" || typeof v == "function" || v === s || v === a || Me || v === i || v === d || v === u || Te || v === x || be || ne || Se || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === h || v.$$typeof === o || v.$$typeof === l || v.$$typeof === c || // This needs to include all possible module reference object
173
+ return !!(typeof v == "string" || typeof v == "function" || v === s || v === a || Le || v === i || v === d || v === u || Ie || v === x || be || ne || Se || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === h || v.$$typeof === o || v.$$typeof === l || v.$$typeof === c || // This needs to include all possible module reference object
174
174
  // types supported by any Flight configuration anywhere since
175
175
  // we don't know which Flight build this will end up being used
176
176
  // with.
@@ -362,26 +362,26 @@ function zx() {
362
362
  if (Pt && H && typeof Pt.stack == "string") {
363
363
  for (var J = Pt.stack.split(`
364
364
  `), Ge = H.stack.split(`
365
- `), ke = J.length - 1, Ie = Ge.length - 1; ke >= 1 && Ie >= 0 && J[ke] !== Ge[Ie]; )
366
- Ie--;
367
- for (; ke >= 1 && Ie >= 0; ke--, Ie--)
368
- if (J[ke] !== Ge[Ie]) {
369
- if (ke !== 1 || Ie !== 1)
365
+ `), ke = J.length - 1, De = Ge.length - 1; ke >= 1 && De >= 0 && J[ke] !== Ge[De]; )
366
+ De--;
367
+ for (; ke >= 1 && De >= 0; ke--, De--)
368
+ if (J[ke] !== Ge[De]) {
369
+ if (ke !== 1 || De !== 1)
370
370
  do
371
- if (ke--, Ie--, Ie < 0 || J[ke] !== Ge[Ie]) {
371
+ if (ke--, De--, De < 0 || J[ke] !== Ge[De]) {
372
372
  var dt = `
373
373
  ` + J[ke].replace(" at new ", " at ");
374
374
  return v.displayName && dt.includes("<anonymous>") && (dt = dt.replace("<anonymous>", v.displayName)), typeof v == "function" && vr.set(v, dt), dt;
375
375
  }
376
- while (ke >= 1 && Ie >= 0);
376
+ while (ke >= 1 && De >= 0);
377
377
  break;
378
378
  }
379
379
  }
380
380
  } finally {
381
381
  Ds = !1, Ts.current = pe, _u(), Error.prepareStackTrace = se;
382
382
  }
383
- var zn = v ? v.displayName || v.name : "", Ua = zn ? jr(zn) : "";
384
- return typeof v == "function" && vr.set(v, Ua), Ua;
383
+ var zn = v ? v.displayName || v.name : "", Ka = zn ? jr(zn) : "";
384
+ return typeof v == "function" && vr.set(v, Ka), Ka;
385
385
  }
386
386
  function Cu(v, R, P) {
387
387
  return Ea(v, !1);
@@ -470,7 +470,7 @@ function zx() {
470
470
  if (zu(v))
471
471
  return B("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Du(v)), $a(v);
472
472
  }
473
- var Un = F.ReactCurrentOwner, Mu = {
473
+ var Kn = F.ReactCurrentOwner, Mu = {
474
474
  key: !0,
475
475
  ref: !0,
476
476
  __self: !0,
@@ -494,9 +494,9 @@ function zx() {
494
494
  return v.key !== void 0;
495
495
  }
496
496
  function Ru(v, R) {
497
- if (typeof v.ref == "string" && Un.current && R && Un.current.stateNode !== R) {
498
- var P = $t(Un.current.type);
499
- Ms[P] || (B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $t(Un.current.type), v.ref), Ms[P] = !0);
497
+ if (typeof v.ref == "string" && Kn.current && R && Kn.current.stateNode !== R) {
498
+ var P = $t(Kn.current.type);
499
+ Ms[P] || (B('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', $t(Kn.current.type), v.ref), Ms[P] = !0);
500
500
  }
501
501
  }
502
502
  function Eu(v, R) {
@@ -562,10 +562,10 @@ function zx() {
562
562
  Z[pe] === void 0 && (Z[pe] = ke[pe]);
563
563
  }
564
564
  if (J || Ge) {
565
- var Ie = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
566
- J && Eu(Z, Ie), Ge && Fu(Z, Ie);
565
+ var De = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
566
+ J && Eu(Z, De), Ge && Fu(Z, De);
567
567
  }
568
- return Ou(v, J, Ge, se, H, Un.current, Z);
568
+ return Ou(v, J, Ge, se, H, Kn.current, Z);
569
569
  }
570
570
  }
571
571
  var Ls = F.ReactCurrentOwner, Ba = F.ReactDebugCurrentFrame;
@@ -697,9 +697,9 @@ Check the top-level render call using <` + P + ">.");
697
697
  var ke;
698
698
  v === null ? ke = "null" : zs(v) ? ke = "array" : v !== void 0 && v.$$typeof === t ? (ke = "<" + ($t(v.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ke = typeof v, B("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ke, J);
699
699
  }
700
- var Ie = $u(v, R, P, se, pe);
701
- if (Ie == null)
702
- return Ie;
700
+ var De = $u(v, R, P, se, pe);
701
+ if (De == null)
702
+ return De;
703
703
  if (Z) {
704
704
  var dt = R.children;
705
705
  if (dt !== void 0)
@@ -713,7 +713,7 @@ Check the top-level render call using <` + P + ">.");
713
713
  else
714
714
  Qa(dt, v);
715
715
  }
716
- return v === s ? Bu(Ie) : Nu(Ie), Ie;
716
+ return v === s ? Bu(De) : Nu(De), De;
717
717
  }
718
718
  }
719
719
  function qu(v, R, P) {
@@ -1094,7 +1094,7 @@ async function Hl() {
1094
1094
  return console.error(e), [];
1095
1095
  }
1096
1096
  }
1097
- class Ul {
1097
+ class Kl {
1098
1098
  constructor(t) {
1099
1099
  V(this, "rootRef");
1100
1100
  this.rootRef = al({
@@ -1111,7 +1111,7 @@ class Ul {
1111
1111
  return Promise.resolve(n);
1112
1112
  }
1113
1113
  getValueFromRoot(t) {
1114
- return t === null ? Kt(this.rootRef.current) : te(this.rootRef.current, [t]);
1114
+ return t === null ? Ut(this.rootRef.current) : te(this.rootRef.current, [t]);
1115
1115
  }
1116
1116
  setItem(t, n) {
1117
1117
  if (t === null)
@@ -1169,12 +1169,12 @@ class Qx {
1169
1169
  name: t.viz.type,
1170
1170
  type: t.viz.type,
1171
1171
  messageChannels: new Gx(),
1172
- instanceData: new Ul(t.viz.conf)
1172
+ instanceData: new Kl(t.viz.conf)
1173
1173
  };
1174
1174
  return this.instances.set(t.id, s), s;
1175
1175
  }
1176
1176
  }
1177
- function Kl(e, t, n, s) {
1177
+ function Ul(e, t, n, s) {
1178
1178
  return {
1179
1179
  vizManager: n,
1180
1180
  /**
@@ -1187,7 +1187,7 @@ function Kl(e, t, n, s) {
1187
1187
  * todo: implement plugin scope storage, that is shared
1188
1188
  * between instances
1189
1189
  */
1190
- pluginData: new Ul({}),
1190
+ pluginData: new Kl({}),
1191
1191
  /**
1192
1192
  * todo: color palette not implemented
1193
1193
  */
@@ -1207,21 +1207,21 @@ const Hx = (e) => {
1207
1207
  data: s,
1208
1208
  variables: i
1209
1209
  } = e, a = n.resolveComponent(t.viz.type), o = n.getOrCreateInstance(t), l = {
1210
- ...Kl(o, s, n, i),
1210
+ ...Ul(o, s, n, i),
1211
1211
  viewport: {
1212
1212
  width: t.layout.w,
1213
1213
  height: t.layout.h
1214
1214
  }
1215
1215
  }, c = a.viewRender;
1216
1216
  return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...yn(e, ["panel", "vizManager", "data"]) });
1217
- }, Ux = (e) => {
1217
+ }, Kx = (e) => {
1218
1218
  const {
1219
1219
  vizManager: t,
1220
1220
  panel: n,
1221
1221
  data: s,
1222
1222
  variables: i
1223
1223
  } = e, a = t.resolveComponent(n.viz.type), o = t.getOrCreateInstance(n), l = {
1224
- ...Kl(o, s, t, i)
1224
+ ...Ul(o, s, t, i)
1225
1225
  }, c = a.configRender;
1226
1226
  return /* @__PURE__ */ r.jsx(c, { context: l, instance: o, ...yn(e, ["panel", "vizManager", "data"]) });
1227
1227
  }, Yl = (e, t) => {
@@ -1234,7 +1234,7 @@ const Hx = (e) => {
1234
1234
  return function(n) {
1235
1235
  return t(n / 100).hex();
1236
1236
  };
1237
- }, Kx = {
1237
+ }, Ux = {
1238
1238
  type: "interpolation",
1239
1239
  displayName: "Red / Green",
1240
1240
  getColor: Yl(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
@@ -1317,7 +1317,7 @@ class Mi {
1317
1317
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1318
1318
  }
1319
1319
  }
1320
- const Xl = "10.55.1", nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1320
+ const Xl = "10.56.1", nm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1321
1321
  __proto__: null,
1322
1322
  version: Xl
1323
1323
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1439,7 +1439,7 @@ class _e extends im {
1439
1439
  const Q = (e, t) => {
1440
1440
  const [n, {
1441
1441
  setFalse: s
1442
- }] = Ee(!0), [i, a] = N();
1442
+ }] = Fe(!0), [i, a] = N();
1443
1443
  O(() => (e.getItem(t).then((l) => {
1444
1444
  a(l), s();
1445
1445
  }), e.watchItem(t, (l) => {
@@ -1616,7 +1616,7 @@ function ac() {
1616
1616
  throw new Error("Please use ContentModelContextProvider");
1617
1617
  return e;
1618
1618
  }
1619
- const ce = () => ac(), Fe = () => ac(), dm = {
1619
+ const ce = () => ac(), Oe = () => ac(), dm = {
1620
1620
  inEditMode: !1
1621
1621
  }, Ai = L.createContext(dm), oc = L.createContext({
1622
1622
  panel: null,
@@ -1653,14 +1653,24 @@ const G = k(de(({
1653
1653
  }, l) => {
1654
1654
  const {
1655
1655
  panel: c
1656
- } = It(), d = L.useMemo(() => {
1657
- const u = [...c.dataFieldOptions];
1658
- return i && u.unshift({
1659
- label: "unset",
1660
- value: "",
1661
- group: ""
1662
- }), u;
1663
- }, [c.dataFieldOptions]);
1656
+ } = It(), d = L.useMemo(() => c.dataFieldOptions(n, i), [n, i]);
1657
+ if (d.length === 0) {
1658
+ const u = c.explainDataKey(n);
1659
+ return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
1660
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(I, { label: e, required: t, defaultValue: u.columnKey, readOnly: !0, disabled: !0 }) }) }),
1661
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
1662
+ /* @__PURE__ */ r.jsx(j, { size: "xs", color: u.queryName ? "black" : "red", sx: {
1663
+ fontFamily: "monospace"
1664
+ }, children: u.queryName ?? u.queryID }),
1665
+ /* @__PURE__ */ r.jsx(j, { size: "xs", color: "black", sx: {
1666
+ fontFamily: "monospace"
1667
+ }, children: "." }),
1668
+ /* @__PURE__ */ r.jsx(j, { size: "xs", color: "red", sx: {
1669
+ fontFamily: "monospace"
1670
+ }, children: u.columnKey })
1671
+ ] }) })
1672
+ ] });
1673
+ }
1664
1674
  return /* @__PURE__ */ r.jsx(A, { ref: l, label: e, data: d, value: n, onChange: s, required: t, sx: a, maxDropdownHeight: 500, ...o });
1665
1675
  }));
1666
1676
  function pm({
@@ -1878,7 +1888,7 @@ function gm({
1878
1888
  }, styles: co })
1879
1889
  ] }),
1880
1890
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
1881
- /* @__PURE__ */ r.jsx(U, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
1891
+ /* @__PURE__ */ r.jsx(K, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
1882
1892
  /* @__PURE__ */ r.jsx(Be, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
1883
1893
  /* @__PURE__ */ r.jsx(j, { children: "Trim mantissa" }),
1884
1894
  /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "hide trailing zero(s)" })
@@ -1974,7 +1984,7 @@ const jm = [{
1974
1984
  color: "dimmed"
1975
1985
  } }),
1976
1986
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
1977
- /* @__PURE__ */ r.jsx(U, { label: "Max Width", hideControls: !0, value: t.width, onChange: i("width") }),
1987
+ /* @__PURE__ */ r.jsx(K, { label: "Max Width", hideControls: !0, value: t.width, onChange: i("width") }),
1978
1988
  /* @__PURE__ */ r.jsx(A, { label: "Overflow", data: jm, value: t.overflow, onChange: i("overflow") }),
1979
1989
  /* @__PURE__ */ r.jsx(
1980
1990
  I,
@@ -2328,7 +2338,7 @@ const Lm = {
2328
2338
  }
2329
2339
  });
2330
2340
  };
2331
- return /* @__PURE__ */ r.jsxs(Ke, { sx: Am, children: [
2341
+ return /* @__PURE__ */ r.jsxs(Ue, { sx: Am, children: [
2332
2342
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
2333
2343
  /* @__PURE__ */ r.jsx("th", { children: "Set filter" }),
2334
2344
  /* @__PURE__ */ r.jsx("th", { children: "with" })
@@ -2487,7 +2497,7 @@ class Wm {
2487
2497
  const s = cl(n).map((i) => ({
2488
2498
  id: te(i, "id"),
2489
2499
  schemaRef: te(i, "schemaRef"),
2490
- config: Kt(te(i, "data.config"))
2500
+ config: Ut(te(i, "data.config"))
2491
2501
  }));
2492
2502
  t(s);
2493
2503
  }, {
@@ -2612,12 +2622,12 @@ const gt = ({
2612
2622
  /* @__PURE__ */ r.jsx(w, { style: {
2613
2623
  maxHeight: "500px"
2614
2624
  }, children: n.map((a) => /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
2615
- /* @__PURE__ */ r.jsxs(Ka, { color: "teal", children: [
2625
+ /* @__PURE__ */ r.jsxs(Ua, { color: "teal", children: [
2616
2626
  "// ",
2617
2627
  a.description
2618
2628
  ] }),
2619
2629
  /* @__PURE__ */ r.jsx("br", {}),
2620
- /* @__PURE__ */ r.jsxs(Ka, { onClick: () => i(a.name), style: {
2630
+ /* @__PURE__ */ r.jsxs(Ua, { onClick: () => i(a.name), style: {
2621
2631
  cursor: "pointer"
2622
2632
  }, children: [
2623
2633
  a.name,
@@ -2658,7 +2668,7 @@ const Hm = k(({
2658
2668
  var s;
2659
2669
  const n = (s = e.operationSchema) == null ? void 0 : s.displayName;
2660
2670
  return /* @__PURE__ */ r.jsx(C, { variant: "outline", onClick: t, children: n });
2661
- }), Um = k(({
2671
+ }), Km = k(({
2662
2672
  model: e
2663
2673
  }) => {
2664
2674
  const t = {
@@ -2667,7 +2677,7 @@ const Hm = k(({
2667
2677
  variables: []
2668
2678
  };
2669
2679
  return Jr(e.operationSchema.configRender, t);
2670
- }), Km = k(({
2680
+ }), Um = k(({
2671
2681
  model: e
2672
2682
  }) => {
2673
2683
  const t = e.schemaList, n = t.map((i) => ({
@@ -2682,7 +2692,7 @@ const Hm = k(({
2682
2692
  const [t, {
2683
2693
  setTrue: n,
2684
2694
  setFalse: s
2685
- }] = Ee(!1), {
2695
+ }] = Fe(!1), {
2686
2696
  operationManager: i,
2687
2697
  operationId: a,
2688
2698
  instance: o,
@@ -2693,13 +2703,13 @@ const Hm = k(({
2693
2703
  }, [a, c]), Qm(c) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2694
2704
  /* @__PURE__ */ r.jsx(Hm, { model: c, onClick: n }),
2695
2705
  /* @__PURE__ */ r.jsx(me, { size: 600, opened: t, onClose: s, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2696
- /* @__PURE__ */ r.jsx(Km, { model: c }),
2706
+ /* @__PURE__ */ r.jsx(Um, { model: c }),
2697
2707
  /* @__PURE__ */ r.jsxs(m, { defaultValue: "settings", children: [
2698
2708
  /* @__PURE__ */ r.jsxs(m.List, { children: [
2699
2709
  /* @__PURE__ */ r.jsx(m.Tab, { value: "settings", children: "Settings" }),
2700
2710
  /* @__PURE__ */ r.jsx(m.Tab, { value: "variables", children: "Variables" })
2701
2711
  ] }),
2702
- /* @__PURE__ */ r.jsx(m.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(Um, { model: c }) }),
2712
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(Km, { model: c }) }),
2703
2713
  /* @__PURE__ */ r.jsx(m.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ r.jsx(hc, { title: "Variables", variables: c.variables }) })
2704
2714
  ] })
2705
2715
  ] }) })
@@ -2769,7 +2779,7 @@ const ef = k(({
2769
2779
  const [t, {
2770
2780
  setTrue: n,
2771
2781
  setFalse: s
2772
- }] = Ee(!1), i = e.model;
2782
+ }] = Fe(!1), i = e.model;
2773
2783
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2774
2784
  /* @__PURE__ */ r.jsx(me, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2775
2785
  /* @__PURE__ */ r.jsx(tf, { model: i }),
@@ -3675,8 +3685,8 @@ function Hf({
3675
3685
  )
3676
3686
  ] });
3677
3687
  }
3678
- const Ue = L.forwardRef(Hf);
3679
- function Uf({
3688
+ const Ke = L.forwardRef(Hf);
3689
+ function Kf({
3680
3690
  control: e,
3681
3691
  index: t,
3682
3692
  remove: n,
@@ -3717,7 +3727,7 @@ function Uf({
3717
3727
  }, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
3718
3728
  ] });
3719
3729
  }
3720
- function Kf({
3730
+ function Uf({
3721
3731
  control: e,
3722
3732
  watch: t,
3723
3733
  variables: n
@@ -3741,7 +3751,7 @@ function Kf({
3741
3751
  value: u.name
3742
3752
  })), [n]);
3743
3753
  return /* @__PURE__ */ r.jsxs(w, { children: [
3744
- l.map((u, h) => /* @__PURE__ */ r.jsx(Uf, { control: e, index: h, remove: a, variableOptions: d }, u.id)),
3754
+ l.map((u, h) => /* @__PURE__ */ r.jsx(Kf, { control: e, index: h, remove: a, variableOptions: d }, u.id)),
3745
3755
  /* @__PURE__ */ r.jsx(b, { position: "center", mt: "xs", children: /* @__PURE__ */ r.jsx(C, { onClick: c, children: "Add a Reference Line" }) })
3746
3756
  ] });
3747
3757
  }
@@ -3771,7 +3781,7 @@ const Yf = ({
3771
3781
  const [s, {
3772
3782
  setTrue: i,
3773
3783
  setFalse: a
3774
- }] = Ee(), [o, l] = N(e);
3784
+ }] = Fe(), [o, l] = N(e);
3775
3785
  O(() => {
3776
3786
  l(e);
3777
3787
  }, [e]);
@@ -3805,7 +3815,7 @@ const Yf = ({
3805
3815
  flexGrow: 0
3806
3816
  }, children: "Customize Label" }),
3807
3817
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
3808
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3818
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3809
3819
  /* @__PURE__ */ r.jsx(Yf, { value: o.func_content, onChange: h, disabled: !o.enabled }),
3810
3820
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
3811
3821
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -3838,7 +3848,7 @@ const Yf = ({
3838
3848
  field: n
3839
3849
  }) => (
3840
3850
  // @ts-expect-error type of onChange
3841
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
3851
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
3842
3852
  width: "48%"
3843
3853
  }, styles: {
3844
3854
  rightSection: {
@@ -3940,7 +3950,7 @@ const Yf = ({
3940
3950
  }, children: [
3941
3951
  /* @__PURE__ */ r.jsxs(m.List, { children: [
3942
3952
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
3943
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
3953
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
3944
3954
  ] }),
3945
3955
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Zf, { control: e, index: p, remove: i }, h.id) }, h.id))
3946
3956
  ] })
@@ -4039,9 +4049,9 @@ function sg({
4039
4049
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
4040
4050
  /* @__PURE__ */ r.jsx(g, { name: "color", control: a, render: ({
4041
4051
  field: p
4042
- }) => /* @__PURE__ */ r.jsx(Ue, { ...p }) })
4052
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...p }) })
4043
4053
  ] }) }),
4044
- /* @__PURE__ */ r.jsx(m.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(Kf, { variables: s, control: a, watch: l }) })
4054
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(Uf, { variables: s, control: a, watch: l }) })
4045
4055
  ] })
4046
4056
  ] }) });
4047
4057
  }
@@ -4312,7 +4322,7 @@ const Pi = {
4312
4322
  const n = gt({
4313
4323
  vizManager: e.vizManager,
4314
4324
  instance: t
4315
- }), s = ft(n.triggerManager, bc.id), i = Fe(), {
4325
+ }), s = ft(n.triggerManager, bc.id), i = Oe(), {
4316
4326
  value: a
4317
4327
  } = Q(e.instanceData, "config"), o = T(() => je({}, a, Pi), [a]), {
4318
4328
  content: l,
@@ -4455,7 +4465,7 @@ function kg({
4455
4465
  }) => /* @__PURE__ */ r.jsx(wg, { label: "Size", ...p }) }),
4456
4466
  /* @__PURE__ */ r.jsx(g, { control: a, name: "compact", render: ({
4457
4467
  field: p
4458
- }) => /* @__PURE__ */ r.jsx(K, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
4468
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
4459
4469
  ] }),
4460
4470
  /* @__PURE__ */ r.jsxs(en, { cols: 2, children: [
4461
4471
  /* @__PURE__ */ r.jsx(
@@ -4939,8 +4949,8 @@ function Gg({
4939
4949
  y_axis_data_key: n
4940
4950
  });
4941
4951
  return Object.entries(be).map(([ne, Se]) => {
4942
- const Te = Pe(re);
4943
- return Te.name = ne, Te.color = void 0, Te.data = Se, Te;
4952
+ const Ie = Pe(re);
4953
+ return Ie.name = ne, Ie.color = void 0, Ie.data = Se, Ie;
4944
4954
  });
4945
4955
  }
4946
4956
  function Qg(e, t, n, s, i, a) {
@@ -4957,7 +4967,7 @@ function Hg(e, t) {
4957
4967
  } = n;
4958
4968
  return qn(t.x_axis.axisLabel.formatter)(s, i);
4959
4969
  }
4960
- function Ug(e, t, n) {
4970
+ function Kg(e, t, n) {
4961
4971
  const s = t.reduce((i, {
4962
4972
  yAxisIndex: a,
4963
4973
  name: o
@@ -4999,7 +5009,7 @@ function Ug(e, t, n) {
4999
5009
  }
5000
5010
  });
5001
5011
  }
5002
- function Kg(e) {
5012
+ function Ug(e) {
5003
5013
  return e.y_axes.reduce((n, {
5004
5014
  label_formatter: s
5005
5015
  }, i) => (n[i] = function(o) {
@@ -5116,11 +5126,11 @@ const eb = {
5116
5126
  }]
5117
5127
  };
5118
5128
  function tb(e, t, n) {
5119
- const s = yc(t, n), i = Kg(e), a = _.uniq(Qt(t, e.x_axis_data_key)), o = Qg(e, a, t, i, n, s), l = Fg(e, t), c = {
5129
+ const s = yc(t, n), i = Ug(e), a = _.uniq(Qt(t, e.x_axis_data_key)), o = Qg(e, a, t, i, n, s), l = Fg(e, t), c = {
5120
5130
  xAxis: Yg(e, a),
5121
5131
  yAxis: Zg(e, i, o),
5122
5132
  series: [...o, ...l],
5123
- tooltip: Ug(e, o, i),
5133
+ tooltip: Kg(e, o, i),
5124
5134
  grid: Mg(e),
5125
5135
  legend: Rg(o),
5126
5136
  dataZoom: Bi(e.dataZoom)
@@ -5354,7 +5364,7 @@ function ob({
5354
5364
  }, children: [
5355
5365
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5356
5366
  l.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
5357
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
5367
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
5358
5368
  ] }),
5359
5369
  l.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(ab, { control: e, index: h, remove: a, variableOptions: d }) }, u.id))
5360
5370
  ] });
@@ -5460,7 +5470,7 @@ function db({
5460
5470
  control: e,
5461
5471
  render: ({
5462
5472
  field: l
5463
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
5473
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
5464
5474
  flexGrow: 1
5465
5475
  }, ...l })
5466
5476
  }
@@ -5470,12 +5480,12 @@ function db({
5470
5480
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
5471
5481
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
5472
5482
  field: l
5473
- }) => /* @__PURE__ */ r.jsx(Ue, { ...l }) })
5483
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
5474
5484
  ] }),
5475
5485
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
5476
5486
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
5477
5487
  field: l
5478
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5488
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5479
5489
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
5480
5490
  top: 15,
5481
5491
  right: 5
@@ -5531,7 +5541,7 @@ function ub({
5531
5541
  }, children: [
5532
5542
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5533
5543
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
5534
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
5544
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
5535
5545
  ] }),
5536
5546
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(db, { control: e, index: x, remove: a, watch: t, variableOptions: d, yAxisOptions: h }) }, p.id))
5537
5547
  ] });
@@ -5623,7 +5633,7 @@ function xb({
5623
5633
  control: e,
5624
5634
  render: ({
5625
5635
  field: o
5626
- }) => /* @__PURE__ */ r.jsx(U, { label: "Order", sx: {
5636
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Order", sx: {
5627
5637
  flex: 1
5628
5638
  }, ...o })
5629
5639
  }
@@ -5650,7 +5660,7 @@ function xb({
5650
5660
  control: e,
5651
5661
  render: ({
5652
5662
  field: o
5653
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
5663
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
5654
5664
  flexGrow: 1
5655
5665
  }, ...o })
5656
5666
  }
@@ -5660,7 +5670,7 @@ function xb({
5660
5670
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
5661
5671
  /* @__PURE__ */ r.jsx(g, { name: `regressions.${n}.plot.color`, control: e, render: ({
5662
5672
  field: o
5663
- }) => /* @__PURE__ */ r.jsx(Ue, { ...o }) })
5673
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...o }) })
5664
5674
  ] }),
5665
5675
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => s(n), sx: {
5666
5676
  top: 15,
@@ -5721,7 +5731,7 @@ function mb({
5721
5731
  }, children: [
5722
5732
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5723
5733
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
5724
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
5734
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
5725
5735
  ] }),
5726
5736
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(xb, { regressionItem: u, control: e, index: h, remove: i, yAxisOptions: c }) }, u.id))
5727
5737
  ] });
@@ -7060,7 +7070,7 @@ class nt {
7060
7070
  return Ns[t] = n, n.prototype.jsonID = t, n;
7061
7071
  }
7062
7072
  }
7063
- class Ae {
7073
+ class Re {
7064
7074
  /**
7065
7075
  @internal
7066
7076
  */
@@ -7071,13 +7081,13 @@ class Ae {
7071
7081
  Create a successful step result.
7072
7082
  */
7073
7083
  static ok(t) {
7074
- return new Ae(t, null);
7084
+ return new Re(t, null);
7075
7085
  }
7076
7086
  /**
7077
7087
  Create a failed step result.
7078
7088
  */
7079
7089
  static fail(t) {
7080
- return new Ae(null, t);
7090
+ return new Re(null, t);
7081
7091
  }
7082
7092
  /**
7083
7093
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -7086,10 +7096,10 @@ class Ae {
7086
7096
  */
7087
7097
  static fromReplace(t, n, s, i) {
7088
7098
  try {
7089
- return Ae.ok(t.replace(n, s, i));
7099
+ return Re.ok(t.replace(n, s, i));
7090
7100
  } catch (a) {
7091
7101
  if (a instanceof fb)
7092
- return Ae.fail(a.message);
7102
+ return Re.fail(a.message);
7093
7103
  throw a;
7094
7104
  }
7095
7105
  }
@@ -7111,7 +7121,7 @@ class hn extends nt {
7111
7121
  }
7112
7122
  apply(t) {
7113
7123
  let n = t.slice(this.from, this.to), s = t.resolve(this.from), i = s.node(s.sharedDepth(this.to)), a = new ue(Hi(n.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), n.openStart, n.openEnd);
7114
- return Ae.fromReplace(t, this.from, this.to, a);
7124
+ return Re.fromReplace(t, this.from, this.to, a);
7115
7125
  }
7116
7126
  invert() {
7117
7127
  return new pn(this.from, this.to, this.mark);
@@ -7150,7 +7160,7 @@ class pn extends nt {
7150
7160
  }
7151
7161
  apply(t) {
7152
7162
  let n = t.slice(this.from, this.to), s = new ue(Hi(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), t), n.openStart, n.openEnd);
7153
- return Ae.fromReplace(t, this.from, this.to, s);
7163
+ return Re.fromReplace(t, this.from, this.to, s);
7154
7164
  }
7155
7165
  invert() {
7156
7166
  return new hn(this.from, this.to, this.mark);
@@ -7190,9 +7200,9 @@ class xn extends nt {
7190
7200
  apply(t) {
7191
7201
  let n = t.nodeAt(this.pos);
7192
7202
  if (!n)
7193
- return Ae.fail("No node at mark step's position");
7203
+ return Re.fail("No node at mark step's position");
7194
7204
  let s = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
7195
- return Ae.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7205
+ return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7196
7206
  }
7197
7207
  invert(t) {
7198
7208
  let n = t.nodeAt(this.pos);
@@ -7234,9 +7244,9 @@ class or extends nt {
7234
7244
  apply(t) {
7235
7245
  let n = t.nodeAt(this.pos);
7236
7246
  if (!n)
7237
- return Ae.fail("No node at mark step's position");
7247
+ return Re.fail("No node at mark step's position");
7238
7248
  let s = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
7239
- return Ae.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7249
+ return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7240
7250
  }
7241
7251
  invert(t) {
7242
7252
  let n = t.nodeAt(this.pos);
@@ -7273,7 +7283,7 @@ class zt extends nt {
7273
7283
  super(), this.from = t, this.to = n, this.slice = s, this.structure = i;
7274
7284
  }
7275
7285
  apply(t) {
7276
- return this.structure && ai(t, this.from, this.to) ? Ae.fail("Structure replace would overwrite content") : Ae.fromReplace(t, this.from, this.to, this.slice);
7286
+ return this.structure && ai(t, this.from, this.to) ? Re.fail("Structure replace would overwrite content") : Re.fromReplace(t, this.from, this.to, this.slice);
7277
7287
  }
7278
7288
  getMap() {
7279
7289
  return new ut([this.from, this.to - this.from, this.slice.size]);
@@ -7323,12 +7333,12 @@ class fn extends nt {
7323
7333
  }
7324
7334
  apply(t) {
7325
7335
  if (this.structure && (ai(t, this.from, this.gapFrom) || ai(t, this.gapTo, this.to)))
7326
- return Ae.fail("Structure gap-replace would overwrite content");
7336
+ return Re.fail("Structure gap-replace would overwrite content");
7327
7337
  let n = t.slice(this.gapFrom, this.gapTo);
7328
7338
  if (n.openStart || n.openEnd)
7329
- return Ae.fail("Gap is not a flat range");
7339
+ return Re.fail("Gap is not a flat range");
7330
7340
  let s = this.slice.insertAt(this.insert, n.content);
7331
- return s ? Ae.fromReplace(t, this.from, this.to, s) : Ae.fail("Content does not fit in gap");
7341
+ return s ? Re.fromReplace(t, this.from, this.to, s) : Re.fail("Content does not fit in gap");
7332
7342
  }
7333
7343
  getMap() {
7334
7344
  return new ut([
@@ -7431,13 +7441,13 @@ class er extends nt {
7431
7441
  apply(t) {
7432
7442
  let n = t.nodeAt(this.pos);
7433
7443
  if (!n)
7434
- return Ae.fail("No node at attribute step's position");
7444
+ return Re.fail("No node at attribute step's position");
7435
7445
  let s = /* @__PURE__ */ Object.create(null);
7436
7446
  for (let a in n.attrs)
7437
7447
  s[a] = n.attrs[a];
7438
7448
  s[this.attr] = this.value;
7439
7449
  let i = n.type.create(s, null, n.marks);
7440
- return Ae.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(i), 0, n.isLeaf ? 0 : 1));
7450
+ return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(i), 0, n.isLeaf ? 0 : 1));
7441
7451
  }
7442
7452
  getMap() {
7443
7453
  return ut.empty;
@@ -7563,7 +7573,7 @@ class ye {
7563
7573
  found.
7564
7574
  */
7565
7575
  static findFrom(t, n, s = !1) {
7566
- let i = t.parent.inlineContent ? new Re(t) : Ln(t.node(0), t.parent, t.pos, t.index(), n, s);
7576
+ let i = t.parent.inlineContent ? new Ee(t) : Ln(t.node(0), t.parent, t.pos, t.index(), n, s);
7567
7577
  if (i)
7568
7578
  return i;
7569
7579
  for (let a = t.depth - 1; a >= 0; a--) {
@@ -7630,7 +7640,7 @@ class ye {
7630
7640
  returns the bookmark for that.
7631
7641
  */
7632
7642
  getBookmark() {
7633
- return Re.between(this.$anchor, this.$head).getBookmark();
7643
+ return Ee.between(this.$anchor, this.$head).getBookmark();
7634
7644
  }
7635
7645
  }
7636
7646
  ye.prototype.visible = !0;
@@ -7646,7 +7656,7 @@ let jo = !1;
7646
7656
  function vo(e) {
7647
7657
  !jo && !e.parent.inlineContent && (jo = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
7648
7658
  }
7649
- class Re extends ye {
7659
+ class Ee extends ye {
7650
7660
  /**
7651
7661
  Construct a text selection between the given points.
7652
7662
  */
@@ -7665,7 +7675,7 @@ class Re extends ye {
7665
7675
  if (!s.parent.inlineContent)
7666
7676
  return ye.near(s);
7667
7677
  let i = t.resolve(n.map(this.anchor));
7668
- return new Re(i.parent.inlineContent ? i : s, s);
7678
+ return new Ee(i.parent.inlineContent ? i : s, s);
7669
7679
  }
7670
7680
  replace(t, n = ue.empty) {
7671
7681
  if (super.replace(t, n), n == ue.empty) {
@@ -7674,7 +7684,7 @@ class Re extends ye {
7674
7684
  }
7675
7685
  }
7676
7686
  eq(t) {
7677
- return t instanceof Re && t.anchor == this.anchor && t.head == this.head;
7687
+ return t instanceof Ee && t.anchor == this.anchor && t.head == this.head;
7678
7688
  }
7679
7689
  getBookmark() {
7680
7690
  return new ms(this.anchor, this.head);
@@ -7688,7 +7698,7 @@ class Re extends ye {
7688
7698
  static fromJSON(t, n) {
7689
7699
  if (typeof n.anchor != "number" || typeof n.head != "number")
7690
7700
  throw new RangeError("Invalid input for TextSelection.fromJSON");
7691
- return new Re(t.resolve(n.anchor), t.resolve(n.head));
7701
+ return new Ee(t.resolve(n.anchor), t.resolve(n.head));
7692
7702
  }
7693
7703
  /**
7694
7704
  Create a text selection from non-resolved positions.
@@ -7714,10 +7724,10 @@ class Re extends ye {
7714
7724
  else
7715
7725
  return ye.near(n, s);
7716
7726
  }
7717
- return t.parent.inlineContent || (i == 0 ? t = n : (t = (ye.findFrom(t, -s, !0) || ye.findFrom(t, s, !0)).$anchor, t.pos < n.pos != i < 0 && (t = n))), new Re(t, n);
7727
+ return t.parent.inlineContent || (i == 0 ? t = n : (t = (ye.findFrom(t, -s, !0) || ye.findFrom(t, s, !0)).$anchor, t.pos < n.pos != i < 0 && (t = n))), new Ee(t, n);
7718
7728
  }
7719
7729
  }
7720
- ye.jsonID("text", Re);
7730
+ ye.jsonID("text", Ee);
7721
7731
  class ms {
7722
7732
  constructor(t, n) {
7723
7733
  this.anchor = t, this.head = n;
@@ -7726,7 +7736,7 @@ class ms {
7726
7736
  return new ms(t.map(this.anchor), t.map(this.head));
7727
7737
  }
7728
7738
  resolve(t) {
7729
- return Re.between(t.resolve(this.anchor), t.resolve(this.head));
7739
+ return Ee.between(t.resolve(this.anchor), t.resolve(this.head));
7730
7740
  }
7731
7741
  }
7732
7742
  class st extends ye {
@@ -7752,7 +7762,7 @@ class st extends ye {
7752
7762
  return { type: "node", anchor: this.anchor };
7753
7763
  }
7754
7764
  getBookmark() {
7755
- return new Ui(this.anchor);
7765
+ return new Ki(this.anchor);
7756
7766
  }
7757
7767
  /**
7758
7768
  @internal
@@ -7778,13 +7788,13 @@ class st extends ye {
7778
7788
  }
7779
7789
  st.prototype.visible = !1;
7780
7790
  ye.jsonID("node", st);
7781
- class Ui {
7791
+ class Ki {
7782
7792
  constructor(t) {
7783
7793
  this.anchor = t;
7784
7794
  }
7785
7795
  map(t) {
7786
7796
  let { deleted: n, pos: s } = t.mapResult(this.anchor);
7787
- return n ? new ms(s, s) : new Ui(s);
7797
+ return n ? new ms(s, s) : new Ki(s);
7788
7798
  }
7789
7799
  resolve(t) {
7790
7800
  let n = t.resolve(this.anchor), s = n.nodeAfter;
@@ -7836,7 +7846,7 @@ const Db = {
7836
7846
  };
7837
7847
  function Ln(e, t, n, s, i, a = !1) {
7838
7848
  if (t.inlineContent)
7839
- return Re.create(e, n);
7849
+ return Ee.create(e, n);
7840
7850
  for (let o = s - (i > 0 ? 0 : 1); i > 0 ? o < t.childCount : o >= 0; o += i) {
7841
7851
  let l = t.child(o);
7842
7852
  if (l.isAtom) {
@@ -8206,7 +8216,7 @@ function Hr(e, t, n = { strict: !0 }) {
8206
8216
  function oi(e, t, n = {}) {
8207
8217
  return e.find((s) => s.type === t && Hr(s.attrs, n));
8208
8218
  }
8209
- function Ub(e, t, n = {}) {
8219
+ function Kb(e, t, n = {}) {
8210
8220
  return !!oi(e, t, n);
8211
8221
  }
8212
8222
  function Fc(e, t, n = {}) {
@@ -8221,7 +8231,7 @@ function Fc(e, t, n = {}) {
8221
8231
  let a = s.index, o = e.start() + s.offset, l = a + 1, c = o + s.node.nodeSize;
8222
8232
  for (oi([...s.node.marks], t, n); a > 0 && i.isInSet(e.parent.child(a - 1).marks); )
8223
8233
  a -= 1, o -= e.parent.child(a).nodeSize;
8224
- for (; l < e.parent.childCount && Ub([...e.parent.child(l).marks], t, n); )
8234
+ for (; l < e.parent.childCount && Kb([...e.parent.child(l).marks], t, n); )
8225
8235
  c += e.parent.child(l).nodeSize, l += 1;
8226
8236
  return {
8227
8237
  from: o,
@@ -8236,12 +8246,12 @@ function an(e, t) {
8236
8246
  }
8237
8247
  return e;
8238
8248
  }
8239
- const Kb = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8249
+ const Ub = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8240
8250
  const a = an(e, s.schema), { doc: o, selection: l } = n, { $from: c, from: d, to: u } = l;
8241
8251
  if (i) {
8242
8252
  const h = Fc(c, a, t);
8243
8253
  if (h && h.from <= d && h.to >= u) {
8244
- const p = Re.create(o, h.from, h.to);
8254
+ const p = Ee.create(o, h.from, h.to);
8245
8255
  n.setSelection(p);
8246
8256
  }
8247
8257
  }
@@ -8254,7 +8264,7 @@ const Kb = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8254
8264
  return !1;
8255
8265
  };
8256
8266
  function Oc(e) {
8257
- return e instanceof Re;
8267
+ return e instanceof Ee;
8258
8268
  }
8259
8269
  function mn(e = 0, t = 0, n = 0) {
8260
8270
  return Math.min(Math.max(e, t), n);
@@ -8268,9 +8278,9 @@ function Xb(e, t = null) {
8268
8278
  if (t === "end")
8269
8279
  return s;
8270
8280
  const i = n.from, a = s.to;
8271
- return t === "all" ? Re.create(e, mn(0, i, a), mn(e.content.size, i, a)) : Re.create(e, mn(t, i, a), mn(t, i, a));
8281
+ return t === "all" ? Ee.create(e, mn(0, i, a), mn(e.content.size, i, a)) : Ee.create(e, mn(t, i, a), mn(t, i, a));
8272
8282
  }
8273
- function Ki() {
8283
+ function Ui() {
8274
8284
  return [
8275
8285
  "iPad Simulator",
8276
8286
  "iPhone Simulator",
@@ -8286,7 +8296,7 @@ const Jb = (e = null, t = {}) => ({ editor: n, view: s, tr: i, dispatch: a }) =>
8286
8296
  ...t
8287
8297
  };
8288
8298
  const o = () => {
8289
- Ki() && s.dom.focus(), requestAnimationFrame(() => {
8299
+ Ui() && s.dom.focus(), requestAnimationFrame(() => {
8290
8300
  n.isDestroyed || (s.focus(), t != null && t.scrollIntoView && n.commands.scrollIntoView());
8291
8301
  });
8292
8302
  };
@@ -8301,7 +8311,7 @@ function So(e) {
8301
8311
  const t = `<body>${e}</body>`;
8302
8312
  return new window.DOMParser().parseFromString(t, "text/html").body;
8303
8313
  }
8304
- function Ur(e, t, n) {
8314
+ function Kr(e, t, n) {
8305
8315
  if (n = {
8306
8316
  slice: !0,
8307
8317
  parseOptions: {},
@@ -8310,13 +8320,13 @@ function Ur(e, t, n) {
8310
8320
  try {
8311
8321
  return Array.isArray(e) && e.length > 0 ? ie.fromArray(e.map((s) => t.nodeFromJSON(s))) : t.nodeFromJSON(e);
8312
8322
  } catch (s) {
8313
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Ur("", t, n);
8323
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Kr("", t, n);
8314
8324
  }
8315
8325
  if (typeof e == "string") {
8316
8326
  const s = Wr.fromSchema(t);
8317
8327
  return n.slice ? s.parseSlice(So(e), n.parseOptions).content : s.parse(So(e), n.parseOptions);
8318
8328
  }
8319
- return Ur("", t, n);
8329
+ return Kr("", t, n);
8320
8330
  }
8321
8331
  function ty(e, t, n) {
8322
8332
  const s = e.steps.length - 1;
@@ -8338,7 +8348,7 @@ const ny = (e) => e.toString().startsWith("<"), ry = (e, t, n) => ({ tr: s, disp
8338
8348
  updateSelection: !0,
8339
8349
  ...n
8340
8350
  };
8341
- const o = Ur(t, a.schema, {
8351
+ const o = Kr(t, a.schema, {
8342
8352
  parseOptions: {
8343
8353
  preserveWhitespace: "full",
8344
8354
  ...n.parseOptions
@@ -8376,7 +8386,7 @@ function ly(e) {
8376
8386
  else if (/^s(hift)?$/i.test(c))
8377
8387
  a = !0;
8378
8388
  else if (/^mod$/i.test(c))
8379
- Ki() || $c() ? o = !0 : i = !0;
8389
+ Ui() || $c() ? o = !0 : i = !0;
8380
8390
  else
8381
8391
  throw new Error(`Unrecognized modifier name: ${c}`);
8382
8392
  }
@@ -8443,7 +8453,7 @@ const xy = (e, t) => ({ tr: n, state: s, dispatch: i }) => {
8443
8453
  to: e.doc.content.size
8444
8454
  }), gy = () => ({ state: e, dispatch: t }) => _p(e, t), by = () => ({ state: e, dispatch: t }) => Sp(e, t), yy = () => ({ state: e, dispatch: t }) => Cp(e, t), jy = () => ({ state: e, dispatch: t }) => kp(e, t), vy = () => ({ state: e, dispatch: t }) => Tp(e, t);
8445
8455
  function wy(e, t, n = {}) {
8446
- return Ur(e, t, { slice: !1, parseOptions: n });
8456
+ return Kr(e, t, { slice: !1, parseOptions: n });
8447
8457
  }
8448
8458
  const _y = (e, t = !1, n = {}) => ({ tr: s, editor: i, dispatch: a }) => {
8449
8459
  const { doc: o } = s, l = wy(e, i.schema, n);
@@ -8576,7 +8586,7 @@ const Dy = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8576
8586
  return !0;
8577
8587
  }, Ay = (e) => ({ tr: t, dispatch: n }) => {
8578
8588
  if (n) {
8579
- const { doc: s } = t, { from: i, to: a } = typeof e == "number" ? { from: e, to: e } : e, o = Re.atStart(s).from, l = Re.atEnd(s).to, c = mn(i, o, l), d = mn(a, o, l), u = Re.create(s, c, d);
8589
+ const { doc: s } = t, { from: i, to: a } = typeof e == "number" ? { from: e, to: e } : e, o = Ee.atStart(s).from, l = Ee.atEnd(s).to, c = mn(i, o, l), d = mn(a, o, l), u = Ee.create(s, c, d);
8580
8590
  t.setSelection(u);
8581
8591
  }
8582
8592
  return !0;
@@ -8599,7 +8609,7 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8599
8609
  return !1;
8600
8610
  if (s) {
8601
8611
  const h = c.parentOffset === c.parent.content.size;
8602
- a instanceof Re && t.deleteSelection();
8612
+ a instanceof Ee && t.deleteSelection();
8603
8613
  const p = l.depth === 0 ? void 0 : Sy(l.node(-1).contentMatchAt(l.indexAfter(-1)));
8604
8614
  let x = h && p ? [
8605
8615
  {
@@ -8634,18 +8644,18 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8634
8644
  if (s) {
8635
8645
  let M = ie.empty;
8636
8646
  const F = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
8637
- for (let Te = l.depth - F; Te >= l.depth - 3; Te -= 1)
8638
- M = ie.from(l.node(Te).copy(M));
8647
+ for (let Ie = l.depth - F; Ie >= l.depth - 3; Ie -= 1)
8648
+ M = ie.from(l.node(Ie).copy(M));
8639
8649
  const B = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, re = Or(h, l.node().type.name, l.node().attrs), be = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(re)) || void 0;
8640
8650
  M = M.append(ie.from(o.createAndFill(null, be) || void 0));
8641
8651
  const ne = l.before(l.depth - (F - 1));
8642
8652
  t.replace(ne, l.after(-B), new ue(M, 4 - F, 0));
8643
8653
  let Se = -1;
8644
- t.doc.nodesBetween(ne, t.doc.content.size, (Te, Me) => {
8654
+ t.doc.nodesBetween(ne, t.doc.content.size, (Ie, Le) => {
8645
8655
  if (Se > -1)
8646
8656
  return !1;
8647
- Te.isTextblock && Te.content.size === 0 && (Se = Me + 1);
8648
- }), Se > -1 && t.setSelection(Re.near(t.doc.resolve(Se))), t.scrollIntoView();
8657
+ Ie.isTextblock && Ie.content.size === 0 && (Se = Le + 1);
8658
+ }), Se > -1 && t.setSelection(Ee.near(t.doc.resolve(Se))), t.scrollIntoView();
8649
8659
  }
8650
8660
  return !0;
8651
8661
  }
@@ -8695,8 +8705,8 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8695
8705
  return c().command(() => (a.setNodeMarkup(ne.pos, x), !0)).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
8696
8706
  }
8697
8707
  return !n || !be || !l ? c().command(() => u().wrapInList(x, s) ? !0 : d.clearNodes()).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run() : c().command(() => {
8698
- const Se = u().wrapInList(x, s), Te = be.filter((Me) => p.includes(Me.type.name));
8699
- return a.ensureMarks(Te), Se ? !0 : d.clearNodes();
8708
+ const Se = u().wrapInList(x, s), Ie = be.filter((Le) => p.includes(Le.type.name));
8709
+ return a.ensureMarks(Ie), Se ? !0 : d.clearNodes();
8700
8710
  }).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
8701
8711
  }, $y = (e, t = {}, n = {}) => ({ state: s, commands: i }) => {
8702
8712
  const { extendEmptyMarkRange: a = !1 } = n, o = an(e, s.schema);
@@ -8786,7 +8796,7 @@ var Hy = /* @__PURE__ */ Object.freeze({
8786
8796
  deleteSelection: Gb,
8787
8797
  enter: Qb,
8788
8798
  exitCode: Hb,
8789
- extendMarkRange: Kb,
8799
+ extendMarkRange: Ub,
8790
8800
  first: Yb,
8791
8801
  focus: Jb,
8792
8802
  forEach: Zb,
@@ -8920,7 +8930,7 @@ At.create({
8920
8930
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
8921
8931
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
8922
8932
  };
8923
- return Ki() || $c() ? a : i;
8933
+ return Ui() || $c() ? a : i;
8924
8934
  },
8925
8935
  addProseMirrorPlugins() {
8926
8936
  return [
@@ -8999,10 +9009,10 @@ const Vc = At.create({
8999
9009
  }).removeEmptyTextStyle().run()
9000
9010
  };
9001
9011
  }
9002
- }), Uy = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), Ky = [{
9012
+ }), Ky = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), Uy = [{
9003
9013
  label: "auto",
9004
9014
  value: ""
9005
- }].concat(Uy.map((e) => ({
9015
+ }].concat(Ky.map((e) => ({
9006
9016
  label: e,
9007
9017
  value: e
9008
9018
  }))), Yy = {
@@ -9016,7 +9026,7 @@ const Vc = At.create({
9016
9026
  editor: e
9017
9027
  }) => {
9018
9028
  const t = e.getAttributes("textStyle").fontSize;
9019
- return /* @__PURE__ */ r.jsx(X.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Zo, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { stroke: 1.5, size: 16 }), data: Ky, styles: Yy, value: t || "", onChange: (n) => {
9029
+ return /* @__PURE__ */ r.jsx(X.ControlsGroup, { children: /* @__PURE__ */ r.jsx(Zo, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { stroke: 1.5, size: 16 }), data: Uy, styles: Yy, value: t || "", onChange: (n) => {
9020
9030
  const s = n.currentTarget.value;
9021
9031
  s ? e.chain().focus().setFontSize(s).run() : e.chain().focus().unsetFontSize().run();
9022
9032
  } }) });
@@ -9226,7 +9236,7 @@ function nj({
9226
9236
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9227
9237
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, pt: s, children: [
9228
9238
  /* @__PURE__ */ r.jsx(A, { ref: a, label: e, data: tj, value: t.type, onChange: o, maxDropdownHeight: 600 }),
9229
- t.type === "quantile" && /* @__PURE__ */ r.jsx(U, { label: "p", value: t.config.p, onChange: l, precision: 2, min: 0.05, step: 0.05, max: 1 }),
9239
+ t.type === "quantile" && /* @__PURE__ */ r.jsx(K, { label: "p", value: t.config.p, onChange: l, precision: 2, min: 0.05, step: 0.05, max: 1 }),
9230
9240
  t.type === "custom" && /* @__PURE__ */ r.jsx(ej, { label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: c, defaultValue: ho, triggerButtonProps: {
9231
9241
  size: "xs",
9232
9242
  sx: {
@@ -9311,7 +9321,7 @@ const ij = ({
9311
9321
  const [n, {
9312
9322
  setTrue: s,
9313
9323
  setFalse: i
9314
- }] = Ee(), [a, o] = N(e), l = () => {
9324
+ }] = Fe(), [a, o] = N(e), l = () => {
9315
9325
  i();
9316
9326
  const {
9317
9327
  type: h,
@@ -9364,7 +9374,7 @@ const ij = ({
9364
9374
  size: s
9365
9375
  });
9366
9376
  };
9367
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(U, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
9377
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(K, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
9368
9378
  }, cj = [{
9369
9379
  label: "Static",
9370
9380
  value: "static"
@@ -9438,7 +9448,7 @@ function hj({
9438
9448
  control: e,
9439
9449
  render: ({
9440
9450
  field: i
9441
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
9451
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
9442
9452
  flexGrow: 1
9443
9453
  }, ...i })
9444
9454
  }
@@ -9611,12 +9621,12 @@ function mj({
9611
9621
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
9612
9622
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
9613
9623
  field: o
9614
- }) => /* @__PURE__ */ r.jsx(Ue, { ...o }) })
9624
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...o }) })
9615
9625
  ] }),
9616
9626
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
9617
9627
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
9618
9628
  field: o
9619
- }) => /* @__PURE__ */ r.jsx(K, { label: "Hide in legend", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
9629
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
9620
9630
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
9621
9631
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
9622
9632
  top: 15,
@@ -9682,7 +9692,7 @@ function fj({
9682
9692
  }, children: [
9683
9693
  /* @__PURE__ */ r.jsxs(m.List, { children: [
9684
9694
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
9685
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
9695
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
9686
9696
  ] }),
9687
9697
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(mj, { control: e, index: h, remove: i, seriesItem: u, yAxisOptions: d }, u.id) }, u.id))
9688
9698
  ] });
@@ -9708,11 +9718,11 @@ const bj = () => /* @__PURE__ */ r.jsxs(b, { sx: {
9708
9718
  display: "inline-flex"
9709
9719
  }, spacing: 6, mr: 14, children: [
9710
9720
  /* @__PURE__ */ r.jsx(j, { children: "X Axis Data Type" }),
9711
- /* @__PURE__ */ r.jsxs(Oe, { width: 340, shadow: "md", position: "top", children: [
9712
- /* @__PURE__ */ r.jsx(Oe.Target, { children: /* @__PURE__ */ r.jsx(W, { size: "xs", sx: {
9721
+ /* @__PURE__ */ r.jsxs(Te, { width: 340, shadow: "md", position: "top", children: [
9722
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(W, { size: "xs", sx: {
9713
9723
  transform: "none !important"
9714
9724
  }, children: /* @__PURE__ */ r.jsx(_n, {}) }) }),
9715
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9725
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9716
9726
  "Click",
9717
9727
  /* @__PURE__ */ r.jsx(Js, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 4, children: "here" }),
9718
9728
  "to learn more about these options"
@@ -9762,7 +9772,7 @@ function jj({
9762
9772
  field: n
9763
9773
  }) => (
9764
9774
  // @ts-expect-error type of onChange
9765
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
9775
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
9766
9776
  width: "48%"
9767
9777
  }, styles: {
9768
9778
  rightSection: {
@@ -9850,7 +9860,7 @@ function _j({
9850
9860
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
9851
9861
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.show`, control: e, render: ({
9852
9862
  field: s
9853
- }) => /* @__PURE__ */ r.jsx(K, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
9863
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
9854
9864
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this YAxis" })
9855
9865
  ] });
9856
9866
  }
@@ -9888,7 +9898,7 @@ function Sj({
9888
9898
  }, children: [
9889
9899
  /* @__PURE__ */ r.jsxs(m.List, { children: [
9890
9900
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
9891
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
9901
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
9892
9902
  ] }),
9893
9903
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(_j, { control: e, index: d, remove: i }) }, c.id))
9894
9904
  ] });
@@ -10391,7 +10401,7 @@ function Hj(e) {
10391
10401
  };
10392
10402
  return e.orient === "vertical" && _.get(s, n) && n === e.funnelAlign && _.set(s, n, t), s;
10393
10403
  }
10394
- function Uj(e, t) {
10404
+ function Kj(e, t) {
10395
10405
  return e.series.map((n) => {
10396
10406
  const {
10397
10407
  level_name_data_key: s,
@@ -10428,7 +10438,7 @@ function Uj(e, t) {
10428
10438
  };
10429
10439
  });
10430
10440
  }
10431
- function Kj({
10441
+ function Uj({
10432
10442
  conf: e,
10433
10443
  params: t,
10434
10444
  max: n
@@ -10454,7 +10464,7 @@ function Yj(e, t) {
10454
10464
  var a;
10455
10465
  const n = $(e.series[0].level_name_data_key), s = $(e.series[0].level_value_data_key), i = (a = _.maxBy(t[n.queryID], s.columnKey)) == null ? void 0 : a[s.columnKey];
10456
10466
  return (o) => {
10457
- const c = Kj({
10467
+ const c = Uj({
10458
10468
  conf: e,
10459
10469
  params: o,
10460
10470
  max: i
@@ -10493,7 +10503,7 @@ function Jj(e, t) {
10493
10503
  bottom: 0
10494
10504
  },
10495
10505
  tooltip: Xj(e, t),
10496
- series: Uj(e, t)
10506
+ series: Kj(e, t)
10497
10507
  };
10498
10508
  }
10499
10509
  function Zj(e) {
@@ -10675,7 +10685,7 @@ const nv = [{
10675
10685
  field: l
10676
10686
  }) => (
10677
10687
  // @ts-expect-error type of onChange
10678
- /* @__PURE__ */ r.jsx(U, { disabled: !i, labelProps: {
10688
+ /* @__PURE__ */ r.jsx(K, { disabled: !i, labelProps: {
10679
10689
  display: "block"
10680
10690
  }, label: /* @__PURE__ */ r.jsxs(b, { position: "apart", pr: 6, sx: {
10681
10691
  width: "100%"
@@ -10683,7 +10693,7 @@ const nv = [{
10683
10693
  /* @__PURE__ */ r.jsx(j, { children: "Min Value" }),
10684
10694
  /* @__PURE__ */ r.jsx(fe, { label: "Check to enable specific min value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.enable_value`, control: t, render: ({
10685
10695
  field: c
10686
- }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10696
+ }) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10687
10697
  ] }), ...l })
10688
10698
  ) }),
10689
10699
  /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.size`, control: t, render: ({
@@ -10695,7 +10705,7 @@ const nv = [{
10695
10705
  field: l
10696
10706
  }) => (
10697
10707
  // @ts-expect-error type of onChange
10698
- /* @__PURE__ */ r.jsx(U, { disabled: !a, labelProps: {
10708
+ /* @__PURE__ */ r.jsx(K, { disabled: !a, labelProps: {
10699
10709
  display: "block"
10700
10710
  }, label: /* @__PURE__ */ r.jsxs(b, { position: "apart", pr: 6, sx: {
10701
10711
  width: "100%"
@@ -10703,7 +10713,7 @@ const nv = [{
10703
10713
  /* @__PURE__ */ r.jsx(j, { children: "Max Value" }),
10704
10714
  /* @__PURE__ */ r.jsx(fe, { label: "Check to enable specific max value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.enable_value`, control: t, render: ({
10705
10715
  field: c
10706
- }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10716
+ }) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10707
10717
  ] }), ...l })
10708
10718
  ) }),
10709
10719
  /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.size`, control: t, render: ({
@@ -10746,7 +10756,7 @@ const nv = [{
10746
10756
  control: t,
10747
10757
  render: ({
10748
10758
  field: l
10749
- }) => /* @__PURE__ */ r.jsx(U, { placeholder: "0, 5, 10...", label: "Gap", ...l })
10759
+ }) => /* @__PURE__ */ r.jsx(K, { placeholder: "0, 5, 10...", label: "Gap", ...l })
10750
10760
  }
10751
10761
  )
10752
10762
  ] }),
@@ -11102,7 +11112,7 @@ const vv = ({
11102
11112
  const [n, {
11103
11113
  setTrue: s,
11104
11114
  setFalse: i
11105
- }] = Ee(), [a, o] = N(e), l = () => {
11115
+ }] = Fe(), [a, o] = N(e), l = () => {
11106
11116
  i();
11107
11117
  const {
11108
11118
  type: h,
@@ -11155,7 +11165,7 @@ const vv = ({
11155
11165
  value: s
11156
11166
  });
11157
11167
  };
11158
- return /* @__PURE__ */ r.jsx(U, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
11168
+ return /* @__PURE__ */ r.jsx(K, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
11159
11169
  }, Cv = [{
11160
11170
  label: "Static",
11161
11171
  value: "static"
@@ -11474,7 +11484,7 @@ function Ev({
11474
11484
  field: s
11475
11485
  }) => (
11476
11486
  // @ts-expect-error type of onChange
11477
- /* @__PURE__ */ r.jsx(U, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
11487
+ /* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
11478
11488
  ) })
11479
11489
  ] })
11480
11490
  ] });
@@ -11543,7 +11553,7 @@ const Fv = ({
11543
11553
  }, children: [
11544
11554
  /* @__PURE__ */ r.jsxs(m.List, { children: [
11545
11555
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
11546
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
11556
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
11547
11557
  ] }),
11548
11558
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Fv, { control: e, index: p, remove: i }, h.id) }, h.id))
11549
11559
  ] })
@@ -11585,7 +11595,7 @@ const Pv = ({
11585
11595
  const [s, {
11586
11596
  setTrue: i,
11587
11597
  setFalse: a
11588
- }] = Ee(), [o, l] = N(e);
11598
+ }] = Fe(), [o, l] = N(e);
11589
11599
  O(() => {
11590
11600
  l(e);
11591
11601
  }, [e]);
@@ -11619,7 +11629,7 @@ const Pv = ({
11619
11629
  flexGrow: 0
11620
11630
  }, children: "Customize Label" }),
11621
11631
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
11622
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11632
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11623
11633
  /* @__PURE__ */ r.jsx(Pv, { value: o.func_content, onChange: h, disabled: !o.enabled }),
11624
11634
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
11625
11635
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -11657,7 +11667,7 @@ function Nv({
11657
11667
  field: n
11658
11668
  }) => (
11659
11669
  // @ts-expect-error type of onChange
11660
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
11670
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
11661
11671
  width: "48%"
11662
11672
  }, styles: {
11663
11673
  rightSection: {
@@ -11719,7 +11729,7 @@ function qv({
11719
11729
  field: n
11720
11730
  }) => (
11721
11731
  // @ts-expect-error type of onChange
11722
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
11732
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
11723
11733
  width: "48%"
11724
11734
  }, styles: {
11725
11735
  rightSection: {
@@ -11870,7 +11880,7 @@ function Hv(e) {
11870
11880
  }
11871
11881
  };
11872
11882
  }
11873
- class Uv extends _e {
11883
+ class Kv extends _e {
11874
11884
  constructor() {
11875
11885
  super(...arguments);
11876
11886
  V(this, "VERSION", 4);
@@ -11894,10 +11904,10 @@ class Uv extends _e {
11894
11904
  }));
11895
11905
  }
11896
11906
  }
11897
- const Kv = {
11907
+ const Uv = {
11898
11908
  displayName: "Heatmap",
11899
11909
  displayGroup: "ECharts-based charts",
11900
- migrator: new Uv(),
11910
+ migrator: new Kv(),
11901
11911
  name: "heatmap",
11902
11912
  viewRender: Rv,
11903
11913
  configRender: Wv,
@@ -11970,7 +11980,7 @@ const Qc = {
11970
11980
  dataZoom: Gn,
11971
11981
  markLine: Qc
11972
11982
  };
11973
- function Kr(e) {
11983
+ function Ur(e) {
11974
11984
  return Y(e).format({
11975
11985
  output: "percent",
11976
11986
  mantissa: 0
@@ -11979,7 +11989,7 @@ function Kr(e) {
11979
11989
  function Jv(e) {
11980
11990
  const t = e.value[1];
11981
11991
  try {
11982
- return Kr(t);
11992
+ return Ur(t);
11983
11993
  } catch (n) {
11984
11994
  return console.error(n), t;
11985
11995
  }
@@ -11998,7 +12008,7 @@ function Zv(e) {
11998
12008
  return {
11999
12009
  bar: t,
12000
12010
  line: Jv,
12001
- lineValue: Kr
12011
+ lineValue: Ur
12002
12012
  };
12003
12013
  }
12004
12014
  function ew(e, t, n) {
@@ -12021,8 +12031,8 @@ function tw(e, t) {
12021
12031
  if (n === -1)
12022
12032
  return {};
12023
12033
  const s = t[n], i = {
12024
- x: Kr((n + 1) / t.length),
12025
- y: Kr(s[1])
12034
+ x: Ur((n + 1) / t.length),
12035
+ y: Ur(s[1])
12026
12036
  }, a = {
12027
12037
  left: n + 1,
12028
12038
  right: t.length - n - 1
@@ -12277,7 +12287,7 @@ function dw({
12277
12287
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12278
12288
  /* @__PURE__ */ r.jsx(g, { name: "bar.color", control: e, render: ({
12279
12289
  field: n
12280
- }) => /* @__PURE__ */ r.jsx(Ue, { ...n }) })
12290
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12281
12291
  ] }),
12282
12292
  /* @__PURE__ */ r.jsxs(w, { children: [
12283
12293
  /* @__PURE__ */ r.jsx(D, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
@@ -12321,7 +12331,7 @@ function hw({
12321
12331
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12322
12332
  /* @__PURE__ */ r.jsx(g, { name: "line.color", control: e, render: ({
12323
12333
  field: n
12324
- }) => /* @__PURE__ */ r.jsx(Ue, { ...n }) })
12334
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12325
12335
  ] })
12326
12336
  ] });
12327
12337
  }
@@ -12364,7 +12374,7 @@ function mw({
12364
12374
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12365
12375
  /* @__PURE__ */ r.jsx(g, { name: "markLine.color", control: e, render: ({
12366
12376
  field: n
12367
- }) => /* @__PURE__ */ r.jsx(Ue, { ...n }) })
12377
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12368
12378
  ] }),
12369
12379
  /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
12370
12380
  /* @__PURE__ */ r.jsx(g, { name: "markLine.label_template", control: e, render: ({
@@ -12399,7 +12409,7 @@ function fw({
12399
12409
  field: n
12400
12410
  }) => (
12401
12411
  // @ts-expect-error type of onChange
12402
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12412
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12403
12413
  width: "48%"
12404
12414
  }, styles: {
12405
12415
  rightSection: {
@@ -12817,7 +12827,7 @@ function Lw(e, t, n) {
12817
12827
  series: Mw(e, t, n)
12818
12828
  };
12819
12829
  }
12820
- const Uc = {
12830
+ const Kc = {
12821
12831
  id: "builtin:echarts:click-pie-chart:series",
12822
12832
  displayName: "Click Pie Series",
12823
12833
  nameRender: Rw,
@@ -12867,7 +12877,7 @@ function Ew({
12867
12877
  height: s,
12868
12878
  interactionManager: i
12869
12879
  }) {
12870
- const a = Tn(t, e.label_field), o = ft(i.triggerManager, Uc.id), l = L.useCallback((u) => {
12880
+ const a = Tn(t, e.label_field), o = ft(i.triggerManager, Kc.id), l = L.useCallback((u) => {
12871
12881
  const h = _.get(a, u.name, {
12872
12882
  error: "rowData is not found"
12873
12883
  });
@@ -13007,7 +13017,7 @@ const Nw = {
13007
13017
  config: Pe(ra)
13008
13018
  };
13009
13019
  },
13010
- triggers: [Uc]
13020
+ triggers: [Kc]
13011
13021
  };
13012
13022
  function Bw(e) {
13013
13023
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
@@ -13015,7 +13025,7 @@ function Bw(e) {
13015
13025
  function qw(e) {
13016
13026
  return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
13017
13027
  }
13018
- const Kc = {
13028
+ const Uc = {
13019
13029
  id: "builtin:echarts:click-radar-chart:series",
13020
13030
  displayName: "Click radar chart series",
13021
13031
  nameRender: qw,
@@ -13152,7 +13162,7 @@ function Qw(e, t) {
13152
13162
  function Hw(e, t) {
13153
13163
  return [...Gw(e, t), ...Qw(e, t)];
13154
13164
  }
13155
- function Uw(e) {
13165
+ function Kw(e) {
13156
13166
  return ({
13157
13167
  name: t,
13158
13168
  marker: n,
@@ -13195,7 +13205,7 @@ function Uw(e) {
13195
13205
  `;
13196
13206
  };
13197
13207
  }
13198
- const Kw = {
13208
+ const Uw = {
13199
13209
  legend: {
13200
13210
  show: !0,
13201
13211
  bottom: 0,
@@ -13228,7 +13238,7 @@ function Xw(e, t) {
13228
13238
  },
13229
13239
  tooltip: ge.getTooltip({
13230
13240
  backgroundColor: "rgba(255,255,255,0.6)",
13231
- formatter: Uw(e)
13241
+ formatter: Kw(e)
13232
13242
  }),
13233
13243
  legend: {
13234
13244
  show: !0,
@@ -13239,7 +13249,7 @@ function Xw(e, t) {
13239
13249
  series: Hw(t, e),
13240
13250
  color: Yw
13241
13251
  };
13242
- return _.merge({}, Kw, o);
13252
+ return _.merge({}, Uw, o);
13243
13253
  }
13244
13254
  ae.use([$h, ot, lt, ct, Xe]);
13245
13255
  function Jw({
@@ -13265,7 +13275,7 @@ function Jw({
13265
13275
  ...x,
13266
13276
  ...y
13267
13277
  };
13268
- }, [t, e.series_name_key, e.additional_series]), l = ft(i.triggerManager, Kc.id), c = qe((h) => {
13278
+ }, [t, e.series_name_key, e.additional_series]), l = ft(i.triggerManager, Uc.id), c = qe((h) => {
13269
13279
  const p = _.get(o, h.name, {
13270
13280
  error: "rowData is not found"
13271
13281
  });
@@ -13511,10 +13521,10 @@ function s0({
13511
13521
  /* @__PURE__ */ r.jsx(m.Panel, { value: "style", p: "md", children: /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
13512
13522
  /* @__PURE__ */ r.jsx(g, { name: "background.enabled", control: i, render: ({
13513
13523
  field: p
13514
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
13524
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
13515
13525
  /* @__PURE__ */ r.jsx(g, { name: "label.enabled", control: i, render: ({
13516
13526
  field: p
13517
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13527
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13518
13528
  ] }) }),
13519
13529
  /* @__PURE__ */ r.jsx(m.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r.jsx(t0, { control: i, watch: o }) })
13520
13530
  ] })
@@ -13684,7 +13694,7 @@ const h0 = {
13684
13694
  version: 7,
13685
13695
  config: gs
13686
13696
  }),
13687
- triggers: [Kc]
13697
+ triggers: [Uc]
13688
13698
  };
13689
13699
  function p0(e, t) {
13690
13700
  const {
@@ -14040,7 +14050,7 @@ function zo({
14040
14050
  rSquared: n,
14041
14051
  adjustedRSquared: s
14042
14052
  } = e;
14043
- return t ? /* @__PURE__ */ r.jsx(Ke, { fontSize: 14, sx: T0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
14053
+ return t ? /* @__PURE__ */ r.jsx(Ue, { fontSize: 14, sx: T0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
14044
14054
  /* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { colSpan: 2, children: /* @__PURE__ */ r.jsx(j, { align: "center", children: t }) }) }),
14045
14055
  /* @__PURE__ */ r.jsxs("tr", { children: [
14046
14056
  /* @__PURE__ */ r.jsx("td", { children: "R-Sq" }),
@@ -14077,9 +14087,9 @@ function D0({
14077
14087
  conf: e,
14078
14088
  queryData: t
14079
14089
  }) {
14080
- return /* @__PURE__ */ r.jsxs(Oe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
14081
- /* @__PURE__ */ r.jsx(Oe.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "Regression Info" }) }),
14082
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(I0, { conf: e, queryData: t }) }) })
14090
+ return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
14091
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "Regression Info" }) }),
14092
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(I0, { conf: e, queryData: t }) }) })
14083
14093
  ] });
14084
14094
  }
14085
14095
  function z0(e) {
@@ -14212,7 +14222,7 @@ function A0({
14212
14222
  control: e,
14213
14223
  render: ({
14214
14224
  field: i
14215
- }) => /* @__PURE__ */ r.jsx(U, { label: "次", sx: {
14225
+ }) => /* @__PURE__ */ r.jsx(K, { label: "次", sx: {
14216
14226
  flex: 1
14217
14227
  }, ...i })
14218
14228
  }
@@ -14222,7 +14232,7 @@ function A0({
14222
14232
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "颜色" }),
14223
14233
  /* @__PURE__ */ r.jsx(g, { name: "regression.plot.color", control: e, render: ({
14224
14234
  field: i
14225
- }) => /* @__PURE__ */ r.jsx(Ue, { ...i }) })
14235
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...i }) })
14226
14236
  ] })
14227
14237
  ] });
14228
14238
  }
@@ -14253,7 +14263,7 @@ const R0 = ({
14253
14263
  const [i, {
14254
14264
  setTrue: a,
14255
14265
  setFalse: o
14256
- }] = Ee(), [l, c] = N(e);
14266
+ }] = Fe(), [l, c] = N(e);
14257
14267
  O(() => {
14258
14268
  c(e);
14259
14269
  }, [e]);
@@ -14287,7 +14297,7 @@ const R0 = ({
14287
14297
  flexGrow: 0
14288
14298
  }, children: n }),
14289
14299
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(w, { children: [
14290
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
14300
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
14291
14301
  /* @__PURE__ */ r.jsx(R0, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14292
14302
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
14293
14303
  /* @__PURE__ */ r.jsx(C, { onClick: x, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -14326,7 +14336,7 @@ function E0({
14326
14336
  field: n
14327
14337
  }) => (
14328
14338
  // @ts-expect-error type of onChange
14329
- /* @__PURE__ */ r.jsx(U, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
14339
+ /* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
14330
14340
  width: "48%"
14331
14341
  }, styles: {
14332
14342
  rightSection: {
@@ -14537,7 +14547,7 @@ function G0(e, t, n, s) {
14537
14547
  const Q0 = k(({
14538
14548
  context: e
14539
14549
  }) => {
14540
- const t = Fe(), {
14550
+ const t = Oe(), {
14541
14551
  value: n
14542
14552
  } = Q(e.instanceData, "config"), {
14543
14553
  variables: s,
@@ -14652,7 +14662,7 @@ const ia = de(({
14652
14662
  ] })
14653
14663
  ] }) : null;
14654
14664
  });
14655
- function U0({
14665
+ function K0({
14656
14666
  context: e
14657
14667
  }) {
14658
14668
  const {
@@ -14700,7 +14710,7 @@ function U0({
14700
14710
  ) })
14701
14711
  ] }) });
14702
14712
  }
14703
- class K0 extends _e {
14713
+ class U0 extends _e {
14704
14714
  constructor() {
14705
14715
  super(...arguments);
14706
14716
  V(this, "VERSION", 1);
@@ -14718,10 +14728,10 @@ class K0 extends _e {
14718
14728
  const Y0 = {
14719
14729
  displayName: "Rich Text",
14720
14730
  displayGroup: "Others",
14721
- migrator: new K0(),
14731
+ migrator: new U0(),
14722
14732
  name: "richText",
14723
14733
  viewRender: Q0,
14724
- configRender: U0,
14734
+ configRender: K0,
14725
14735
  createConfig() {
14726
14736
  return {
14727
14737
  version: 1,
@@ -15314,11 +15324,11 @@ const g_ = de(({
15314
15324
  /* @__PURE__ */ r.jsx(D, { mb: -15, variant: "dashed", label: "Style", labelPosition: "right" }),
15315
15325
  /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15316
15326
  /* @__PURE__ */ r.jsx(j, { size: 14, children: "Background Color" }),
15317
- /* @__PURE__ */ r.jsx(Ue, { value: e.itemStyle.color, onChange: (l) => o("itemStyle.color", l) })
15327
+ /* @__PURE__ */ r.jsx(Ke, { value: e.itemStyle.color, onChange: (l) => o("itemStyle.color", l) })
15318
15328
  ] }),
15319
15329
  /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15320
15330
  /* @__PURE__ */ r.jsx(j, { size: 14, children: "Text Color" }),
15321
- /* @__PURE__ */ r.jsx(Ue, { value: e.label.color, onChange: (l) => o("label.color", l) })
15331
+ /* @__PURE__ */ r.jsx(Ke, { value: e.label.color, onChange: (l) => o("label.color", l) })
15322
15332
  ] })
15323
15333
  ] });
15324
15334
  });
@@ -15386,7 +15396,7 @@ function y_({
15386
15396
  }, children: [
15387
15397
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15388
15398
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
15389
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15399
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
15390
15400
  ] }),
15391
15401
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${x}`, control: e, render: ({
15392
15402
  field: y
@@ -15498,7 +15508,7 @@ function w_({
15498
15508
  control: e,
15499
15509
  render: ({
15500
15510
  field: l
15501
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
15511
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
15502
15512
  flexGrow: 1
15503
15513
  }, ...l })
15504
15514
  }
@@ -15508,7 +15518,7 @@ function w_({
15508
15518
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
15509
15519
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
15510
15520
  field: l
15511
- }) => /* @__PURE__ */ r.jsx(Ue, { ...l }) })
15521
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
15512
15522
  ] }),
15513
15523
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
15514
15524
  top: 15,
@@ -15566,7 +15576,7 @@ function __({
15566
15576
  }, children: [
15567
15577
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15568
15578
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
15569
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15579
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
15570
15580
  ] }),
15571
15581
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(w_, { control: e, index: x, remove: a, watch: t, variableOptions: d, yAxisOptions: h }) }, p.id))
15572
15582
  ] });
@@ -15590,7 +15600,7 @@ const S_ = ({
15590
15600
  const [n, {
15591
15601
  setTrue: s,
15592
15602
  setFalse: i
15593
- }] = Ee(), [a, o] = N(e), l = () => {
15603
+ }] = Fe(), [a, o] = N(e), l = () => {
15594
15604
  i();
15595
15605
  const {
15596
15606
  type: h,
@@ -15715,7 +15725,7 @@ const S_ = ({
15715
15725
  const [n, {
15716
15726
  setTrue: s,
15717
15727
  setFalse: i
15718
- }] = Ee(), [a, o] = N(e), l = () => {
15728
+ }] = Fe(), [a, o] = N(e), l = () => {
15719
15729
  i();
15720
15730
  const {
15721
15731
  type: h,
@@ -15768,7 +15778,7 @@ const S_ = ({
15768
15778
  size: s
15769
15779
  });
15770
15780
  };
15771
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(U, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
15781
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(K, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
15772
15782
  }, E_ = [{
15773
15783
  label: "Static",
15774
15784
  value: "static"
@@ -15955,7 +15965,7 @@ const V_ = ({
15955
15965
  }, children: [
15956
15966
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15957
15967
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
15958
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15968
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
15959
15969
  ] }),
15960
15970
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(V_, { control: e, index: p, remove: i }, h.id) }, h.id))
15961
15971
  ] })
@@ -16014,7 +16024,7 @@ const W_ = ({
16014
16024
  const [s, {
16015
16025
  setTrue: i,
16016
16026
  setFalse: a
16017
- }] = Ee(), [o, l] = N(e);
16027
+ }] = Fe(), [o, l] = N(e);
16018
16028
  O(() => {
16019
16029
  l(e);
16020
16030
  }, [e]);
@@ -16048,7 +16058,7 @@ const W_ = ({
16048
16058
  flexGrow: 0
16049
16059
  }, children: "Customize Label" }),
16050
16060
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
16051
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16061
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16052
16062
  /* @__PURE__ */ r.jsx(W_, { value: o.func_content, onChange: h, disabled: !o.enabled }),
16053
16063
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
16054
16064
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -16083,7 +16093,7 @@ function Q_({
16083
16093
  field: n
16084
16094
  }) => (
16085
16095
  // @ts-expect-error type of onChange
16086
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
16096
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
16087
16097
  width: "48%"
16088
16098
  }, styles: {
16089
16099
  rightSection: {
@@ -16108,14 +16118,14 @@ const H_ = [{
16108
16118
  }, {
16109
16119
  label: "right",
16110
16120
  value: "right"
16111
- }], U_ = [{
16121
+ }], K_ = [{
16112
16122
  label: "left",
16113
16123
  value: "left"
16114
16124
  }, {
16115
16125
  label: "right",
16116
16126
  value: "right"
16117
16127
  }];
16118
- function K_({
16128
+ function U_({
16119
16129
  control: e,
16120
16130
  index: t,
16121
16131
  remove: n
@@ -16144,7 +16154,7 @@ function K_({
16144
16154
  field: s
16145
16155
  }) => (
16146
16156
  // @ts-expect-error type of onChange
16147
- /* @__PURE__ */ r.jsx(A, { label: "Position", required: !0, data: U_, sx: {
16157
+ /* @__PURE__ */ r.jsx(A, { label: "Position", required: !0, data: K_, sx: {
16148
16158
  flex: 1
16149
16159
  }, ...s })
16150
16160
  ) }) }),
@@ -16202,9 +16212,9 @@ function Y_({
16202
16212
  }, children: [
16203
16213
  /* @__PURE__ */ r.jsxs(m.List, { children: [
16204
16214
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
16205
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
16215
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
16206
16216
  ] }),
16207
- o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(K_, { control: e, index: d, remove: i }) }, c.id))
16217
+ o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(U_, { control: e, index: d, remove: i }) }, c.id))
16208
16218
  ] });
16209
16219
  }
16210
16220
  function X_(e) {
@@ -16585,7 +16595,7 @@ const pS = {
16585
16595
  }, mS = k(({
16586
16596
  context: e
16587
16597
  }) => {
16588
- const t = Fe(), {
16598
+ const t = Oe(), {
16589
16599
  value: n = oa
16590
16600
  } = Q(e.instanceData, "config"), {
16591
16601
  variables: s
@@ -16914,7 +16924,7 @@ const MS = [{
16914
16924
  field: s
16915
16925
  }) => (
16916
16926
  // @ts-expect-error type of onChange
16917
- /* @__PURE__ */ r.jsx(U, { label: "Hide label when its percentage is less than...", precision: 4, step: 5e-4, min: 0, max: 1, ...s })
16927
+ /* @__PURE__ */ r.jsx(K, { label: "Hide label when its percentage is less than...", precision: 4, step: 5e-4, min: 0, max: 1, ...s })
16918
16928
  ) }),
16919
16929
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
16920
16930
  /* @__PURE__ */ r.jsx(
@@ -16949,7 +16959,7 @@ const MS = [{
16949
16959
  control: e,
16950
16960
  render: ({
16951
16961
  field: s
16952
- }) => /* @__PURE__ */ r.jsx(U, { label: "Padding", min: 0, hideControls: !0, ...s })
16962
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Padding", min: 0, hideControls: !0, ...s })
16953
16963
  }
16954
16964
  )
16955
16965
  ] }),
@@ -17007,7 +17017,7 @@ const MS = [{
17007
17017
  }, children: [
17008
17018
  /* @__PURE__ */ r.jsxs(m.List, { children: [
17009
17019
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: p }, h.id)),
17010
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
17020
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
17011
17021
  ] }),
17012
17022
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(AS, { control: e, index: p, remove: i }, h.id) }, h.id))
17013
17023
  ] })
@@ -17266,7 +17276,7 @@ const od = ["function text({ value }) {", " // your code goes here", " ret
17266
17276
  function HS(e) {
17267
17277
  return e ? rr(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
17268
17278
  }
17269
- function US(e) {
17279
+ function KS(e) {
17270
17280
  const t = e.tableCellContext.bgColor;
17271
17281
  return {
17272
17282
  backgroundColor: t,
@@ -17279,10 +17289,10 @@ function Vn(e) {
17279
17289
  align: e.align
17280
17290
  });
17281
17291
  return /* @__PURE__ */ r.jsx("div", { className: n.classes.content, style: {
17282
- ...US(e)
17292
+ ...KS(e)
17283
17293
  }, children: /* @__PURE__ */ r.jsx(j, { className: "table-cell-text", onClick: e.tableCellContext.getClickHandler(), children: /* @__PURE__ */ r.jsx("span", { title: e.children, children: e.children }) }) });
17284
17294
  }
17285
- function KS(e) {
17295
+ function US(e) {
17286
17296
  return /* @__PURE__ */ r.jsx(Vn, { ...e, children: e.value });
17287
17297
  }
17288
17298
  function YS(e) {
@@ -17319,7 +17329,7 @@ function ZS(e) {
17319
17329
  function eC(e) {
17320
17330
  switch (e.type) {
17321
17331
  case jt.string:
17322
- return /* @__PURE__ */ r.jsx(KS, { ...e });
17332
+ return /* @__PURE__ */ r.jsx(US, { ...e });
17323
17333
  case jt.eloc:
17324
17334
  return /* @__PURE__ */ r.jsx(YS, { ...e });
17325
17335
  case jt.number:
@@ -17520,23 +17530,23 @@ function cC({
17520
17530
  } = s, {
17521
17531
  classes: u,
17522
17532
  cx: h
17523
- } = WS(), p = L.useMemo(() => l ? !Array.isArray(e) || e.length === 0 ? [] : Object.keys(e[0]).map((Me) => ({
17524
- id: Me,
17525
- label: Me,
17526
- value_field: Me,
17533
+ } = WS(), p = L.useMemo(() => l ? !Array.isArray(e) || e.length === 0 ? [] : Object.keys(e[0]).map((Le) => ({
17534
+ id: Le,
17535
+ label: Le,
17536
+ value_field: Le,
17527
17537
  value_type: jt.string,
17528
17538
  align: "left",
17529
17539
  width: "",
17530
17540
  cellBackgroundColor: ""
17531
17541
  })) : c, [l, c, e]), x = lC({
17532
- getColIndex: qe((Me) => p.indexOf(Me.column.columnDef.meta), [p]),
17542
+ getColIndex: qe((Le) => p.indexOf(Le.column.columnDef.meta), [p]),
17533
17543
  vizManager: i.vizManager,
17534
17544
  instance: a
17535
17545
  }), y = T(() => {
17536
- const Me = Pl();
17546
+ const Le = Pl();
17537
17547
  return p.map((yt) => {
17538
17548
  const ks = am(yt.value_field);
17539
- return Me.accessor(ks.columnKey, {
17549
+ return Le.accessor(ks.columnKey, {
17540
17550
  cell: (Qn) => /* @__PURE__ */ r.jsx(eC, { tableCellContext: x(Qn.cell), value: Qn.getValue(), type: yt.value_type, ...yt }),
17541
17551
  header: yt.label,
17542
17552
  enableSorting: !0,
@@ -17556,7 +17566,7 @@ function cC({
17556
17566
  getSortedRowModel: Lp()
17557
17567
  }), {
17558
17568
  rows: B
17559
- } = F.getRowModel(), re = L.useRef(null), be = B.length, ne = be > 0, Se = ne ? n - 22 : n, Te = ne ? 22 : 0;
17569
+ } = F.getRowModel(), re = L.useRef(null), be = B.length, ne = be > 0, Se = ne ? n - 22 : n, Ie = ne ? 22 : 0;
17560
17570
  return il("VizTableComponent", {
17561
17571
  queryData: e,
17562
17572
  width: t,
@@ -17583,15 +17593,15 @@ function cC({
17583
17593
  "Total: ",
17584
17594
  be
17585
17595
  ] }) }),
17586
- /* @__PURE__ */ r.jsxs(Ke, { sx: {
17596
+ /* @__PURE__ */ r.jsxs(Ue, { sx: {
17587
17597
  ...GS,
17588
17598
  maxHeight: Se
17589
17599
  }, ...d, striped: s.striped, children: [
17590
17600
  /* @__PURE__ */ r.jsx("thead", { className: u.thead, style: {
17591
- top: Te
17592
- }, children: F.getHeaderGroups().map((Me) => /* @__PURE__ */ r.jsx("tr", { children: Me.headers.map((on) => /* @__PURE__ */ r.jsx("th", { style: {
17601
+ top: Ie
17602
+ }, children: F.getHeaderGroups().map((Le) => /* @__PURE__ */ r.jsx("tr", { children: Le.headers.map((on) => /* @__PURE__ */ r.jsx("th", { style: {
17593
17603
  width: on.getSize()
17594
- }, children: /* @__PURE__ */ r.jsx(BS, { header: on, cx: h }) }, on.id)) }, Me.id)) }),
17604
+ }, children: /* @__PURE__ */ r.jsx(BS, { header: on, cx: h }) }, on.id)) }, Le.id)) }),
17595
17605
  /* @__PURE__ */ r.jsx(tC, { tableContainerRef: re, rows: B })
17596
17606
  ] })
17597
17607
  ] });
@@ -17670,7 +17680,7 @@ class pC {
17670
17680
  steps: al
17671
17681
  }, {
17672
17682
  deep: !1
17673
- }), it(() => Kt(this.steps), () => {
17683
+ }), it(() => Ut(this.steps), () => {
17674
17684
  this.notifyStepChange();
17675
17685
  });
17676
17686
  }
@@ -17706,7 +17716,7 @@ function xC(e) {
17706
17716
  } = ud(), [o, l] = N(i), [c, {
17707
17717
  setTrue: d,
17708
17718
  setFalse: u
17709
- }] = Ee(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
17719
+ }] = Fe(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
17710
17720
  l(i), u();
17711
17721
  }, M = () => {
17712
17722
  u(), t == null || t(o);
@@ -17723,7 +17733,7 @@ function xC(e) {
17723
17733
  backgroundColor: n
17724
17734
  } }) }),
17725
17735
  /* @__PURE__ */ r.jsx(Fn.Dropdown, { children: /* @__PURE__ */ r.jsxs(w, { children: [
17726
- /* @__PURE__ */ r.jsx(U, { size: "xs", label: "Map a value to this color", value: o, onChange: l }),
17736
+ /* @__PURE__ */ r.jsx(K, { size: "xs", label: "Map a value to this color", value: o, onChange: l }),
17727
17737
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
17728
17738
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", onClick: S, children: "Cancel" }),
17729
17739
  /* @__PURE__ */ r.jsx(C, { "data-testid": "palette-item-ok", size: "xs", onClick: M, children: "OK" })
@@ -17755,7 +17765,7 @@ const mC = k(({
17755
17765
  } = e, i = s.getColorInterpolations(), [a, o] = N(t), l = s.decodeInterpolation(a.interpolation) || i[0], [c, {
17756
17766
  setTrue: d,
17757
17767
  setFalse: u
17758
- }] = Ee(), h = i.map((M) => ({
17768
+ }] = Fe(), h = i.map((M) => ({
17759
17769
  label: M.displayName,
17760
17770
  value: s.encodeColor(M),
17761
17771
  group: M.category
@@ -17767,7 +17777,7 @@ const mC = k(({
17767
17777
  }));
17768
17778
  }
17769
17779
  const x = () => {
17770
- u(), n == null || n(Kt(a));
17780
+ u(), n == null || n(Ut(a));
17771
17781
  };
17772
17782
  function y(M) {
17773
17783
  o((F) => ({
@@ -17827,7 +17837,7 @@ const wC = de((e, t) => {
17827
17837
  };
17828
17838
  return /* @__PURE__ */ r.jsxs(w, { align: "stretch", children: [
17829
17839
  /* @__PURE__ */ r.jsx(A, { label: "Cell background", value: s || "none", onChange: h, data: bC }),
17830
- s === "static" && /* @__PURE__ */ r.jsx(Ue, { value: a, onChange: p }),
17840
+ s === "static" && /* @__PURE__ */ r.jsx(Ke, { value: a, onChange: p }),
17831
17841
  s === "interpolation" && /* @__PURE__ */ r.jsx(gC, { colorManager: n, value: c, onChange: x })
17832
17842
  ] });
17833
17843
  }), _C = {
@@ -17847,7 +17857,7 @@ const wC = de((e, t) => {
17847
17857
  const [s, {
17848
17858
  setTrue: i,
17849
17859
  setFalse: a
17850
- }] = Ee(), [o, l] = N(e), c = () => {
17860
+ }] = Fe(), [o, l] = N(e), c = () => {
17851
17861
  a(), t(o);
17852
17862
  }, d = () => {
17853
17863
  a(), l(e);
@@ -17919,11 +17929,11 @@ const wC = de((e, t) => {
17919
17929
  ] }),
17920
17930
  /* @__PURE__ */ r.jsx(D, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
17921
17931
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
17922
- /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 }),
17932
+ /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 }),
17923
17933
  /* @__PURE__ */ r.jsx(g, { name: `columns.${t}.width`, control: e, render: ({
17924
17934
  field: o
17925
- }) => /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), ...o }) }),
17926
- /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 })
17935
+ }) => /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), ...o }) }),
17936
+ /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 })
17927
17937
  ] }),
17928
17938
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(
17929
17939
  g,
@@ -17982,7 +17992,7 @@ const wC = de((e, t) => {
17982
17992
  }, children: [
17983
17993
  /* @__PURE__ */ r.jsxs(m.List, { children: [
17984
17994
  n.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
17985
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
17995
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
17986
17996
  ] }),
17987
17997
  n.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(IC, { control: e, watch: t, index: d, column: c, remove: i }) }, c.id))
17988
17998
  ] }) })
@@ -18217,7 +18227,7 @@ const ci = {
18217
18227
  }, OC = k(({
18218
18228
  context: e
18219
18229
  }) => {
18220
- const t = Fe(), {
18230
+ const t = Oe(), {
18221
18231
  value: n = da
18222
18232
  } = Q(e.instanceData, "config"), {
18223
18233
  variables: s
@@ -18290,7 +18300,7 @@ const xd = L.forwardRef($C), PC = ({
18290
18300
  const [s, {
18291
18301
  setTrue: i,
18292
18302
  setFalse: a
18293
- }] = Ee(), [o, l] = N(e), c = () => {
18303
+ }] = Fe(), [o, l] = N(e), c = () => {
18294
18304
  a(), t(o);
18295
18305
  }, d = () => {
18296
18306
  a(), l(e);
@@ -18491,7 +18501,7 @@ const HC = ({
18491
18501
  fontSize: "14px",
18492
18502
  lineHeight: "32px",
18493
18503
  color: "#3D3E45"
18494
- } }) }), UC = ({
18504
+ } }) }), KC = ({
18495
18505
  error: e,
18496
18506
  width: t,
18497
18507
  height: n
@@ -18508,7 +18518,7 @@ const HC = ({
18508
18518
  /* @__PURE__ */ r.jsx(Eo, { message: s })
18509
18519
  ] }) });
18510
18520
  };
18511
- function KC({
18521
+ function UC({
18512
18522
  context: e
18513
18523
  }) {
18514
18524
  const {
@@ -18529,7 +18539,7 @@ function KC({
18529
18539
  return !s || !i || !n ? null : c ? /* @__PURE__ */ r.jsx(z, { sx: {
18530
18540
  position: "relative",
18531
18541
  height: i
18532
- }, children: /* @__PURE__ */ r.jsx(vn, { visible: !0 }) }) : l ? /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(UC, { error: l, width: s, height: i }) }) : !o || !Array.isArray(o.replies) || o.replies.length === 0 ? null : /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: o.replies.map((d, u) => /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: {
18542
+ }, children: /* @__PURE__ */ r.jsx(vn, { visible: !0 }) }) : l ? /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r.jsx(KC, { error: l, width: s, height: i }) }) : !o || !Array.isArray(o.replies) || o.replies.length === 0 ? null : /* @__PURE__ */ r.jsx(z, { sx: di, "data-enable-scrollbar": !0, children: o.replies.map((d, u) => /* @__PURE__ */ r.jsx("div", { dangerouslySetInnerHTML: {
18533
18543
  __html: d.interpretation.html
18534
18544
  } }, u)) });
18535
18545
  }
@@ -18592,7 +18602,7 @@ const JC = {
18592
18602
  displayGroup: "Merico suite",
18593
18603
  migrator: new XC(),
18594
18604
  name: "mericoGQM",
18595
- viewRender: KC,
18605
+ viewRender: UC,
18596
18606
  configRender: YC,
18597
18607
  createConfig() {
18598
18608
  return {
@@ -19010,7 +19020,7 @@ const b1 = ({
19010
19020
  }, children: [
19011
19021
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19012
19022
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
19013
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
19023
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
19014
19024
  ] }),
19015
19025
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(b1, { control: e, index: p, remove: i }, h.id) }, h.id))
19016
19026
  ] })
@@ -19596,7 +19606,7 @@ function H1(e, t, n) {
19596
19606
  };
19597
19607
  }
19598
19608
  ae.use([Et, Nn, Bn, rs, ot, lt, ct, Xe, ts, ji]);
19599
- function U1({
19609
+ function K1({
19600
19610
  conf: e,
19601
19611
  data: t,
19602
19612
  width: n,
@@ -19622,7 +19632,7 @@ function U1({
19622
19632
  height: s
19623
19633
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
19624
19634
  }
19625
- function K1({
19635
+ function U1({
19626
19636
  context: e,
19627
19637
  instance: t
19628
19638
  }) {
@@ -19637,7 +19647,7 @@ function K1({
19637
19647
  width: l,
19638
19648
  height: c
19639
19649
  } = e.viewport;
19640
- return !l || !c ? null : /* @__PURE__ */ r.jsx(tt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(U1, { variables: i, width: kt(l), height: Tt(c), data: o, conf: a, interactionManager: n }) });
19650
+ return !l || !c ? null : /* @__PURE__ */ r.jsx(tt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(K1, { variables: i, width: kt(l), height: Tt(c), data: o, conf: a, interactionManager: n }) });
19641
19651
  }
19642
19652
  const Y1 = [{
19643
19653
  label: "solid",
@@ -19733,7 +19743,7 @@ function J1({
19733
19743
  control: e,
19734
19744
  render: ({
19735
19745
  field: l
19736
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
19746
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
19737
19747
  flexGrow: 1
19738
19748
  }, ...l })
19739
19749
  }
@@ -19743,12 +19753,12 @@ function J1({
19743
19753
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
19744
19754
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
19745
19755
  field: l
19746
- }) => /* @__PURE__ */ r.jsx(Ue, { ...l }) })
19756
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
19747
19757
  ] }),
19748
19758
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
19749
19759
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
19750
19760
  field: l
19751
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
19761
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
19752
19762
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
19753
19763
  top: 15,
19754
19764
  right: 5
@@ -19793,7 +19803,7 @@ function Z1({
19793
19803
  }, children: [
19794
19804
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19795
19805
  l.map((x, y) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.id, children: x.name }, x.id)),
19796
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
19806
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
19797
19807
  ] }),
19798
19808
  l.map((x, y) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.id, children: /* @__PURE__ */ r.jsx(J1, { control: e, index: y, remove: a, watch: t, variableOptions: d, xAxisOptions: h }) }, x.id))
19799
19809
  ] });
@@ -19958,15 +19968,15 @@ function sk({
19958
19968
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
19959
19969
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
19960
19970
  field: a
19961
- }) => /* @__PURE__ */ r.jsx(Ue, { ...a }) })
19971
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...a }) })
19962
19972
  ] }),
19963
19973
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
19964
19974
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
19965
19975
  field: a
19966
- }) => /* @__PURE__ */ r.jsx(K, { label: "Hide in legend", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19976
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19967
19977
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.invisible`, control: e, render: ({
19968
19978
  field: a
19969
- }) => /* @__PURE__ */ r.jsx(K, { label: "Invisible", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19979
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Invisible", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19970
19980
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
19971
19981
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
19972
19982
  top: 15,
@@ -20013,7 +20023,7 @@ function ik({
20013
20023
  }, children: [
20014
20024
  /* @__PURE__ */ r.jsxs(m.List, { children: [
20015
20025
  o.map((x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.id, children: x.name }, x.id)),
20016
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
20026
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
20017
20027
  ] }),
20018
20028
  o.map((x, y) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.id, children: /* @__PURE__ */ r.jsx(sk, { control: e, index: y, remove: i, seriesItem: x, xAxisOptions: d }, x.id) }, x.id))
20019
20029
  ] });
@@ -20068,7 +20078,7 @@ function ok({
20068
20078
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
20069
20079
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.show`, control: e, render: ({
20070
20080
  field: s
20071
- }) => /* @__PURE__ */ r.jsx(K, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
20081
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
20072
20082
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this X Axis" })
20073
20083
  ] });
20074
20084
  }
@@ -20101,7 +20111,7 @@ function lk({
20101
20111
  }, children: [
20102
20112
  /* @__PURE__ */ r.jsxs(m.List, { children: [
20103
20113
  o.map((d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.id, children: d.name }, d.id)),
20104
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
20114
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
20105
20115
  ] }),
20106
20116
  o.map((d, u) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.id, children: /* @__PURE__ */ r.jsx(ok, { control: e, index: u, remove: i }) }, d.id))
20107
20117
  ] });
@@ -20243,7 +20253,7 @@ const pk = {
20243
20253
  displayGroup: "ECharts-based charts",
20244
20254
  migrator: new hk(),
20245
20255
  name: "horizontalBarChart",
20246
- viewRender: K1,
20256
+ viewRender: U1,
20247
20257
  configRender: dk,
20248
20258
  createConfig: () => ({
20249
20259
  version: 2,
@@ -20879,9 +20889,9 @@ const Mk = {
20879
20889
  }
20880
20890
  };
20881
20891
  function Rk() {
20882
- return /* @__PURE__ */ r.jsxs(Oe, { width: 400, shadow: "md", children: [
20883
- /* @__PURE__ */ r.jsx(Oe.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "指标说明" }) }),
20884
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsx(Ke, { fontSize: 14, sx: Ak, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
20892
+ return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
20893
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "指标说明" }) }),
20894
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Ue, { fontSize: 14, sx: Ak, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
20885
20895
  /* @__PURE__ */ r.jsxs("tr", { children: [
20886
20896
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
20887
20897
  /* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -21030,7 +21040,7 @@ const Pk = ({
21030
21040
  }, children: [
21031
21041
  /* @__PURE__ */ r.jsxs(m.List, { children: [
21032
21042
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
21033
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
21043
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
21034
21044
  ] }),
21035
21045
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Pk, { control: e, index: p, remove: i }, h.id) }, h.id))
21036
21046
  ] })
@@ -21059,7 +21069,7 @@ function Nk({
21059
21069
  field: n
21060
21070
  }) => (
21061
21071
  // @ts-expect-error type of onChange
21062
- /* @__PURE__ */ r.jsx(U, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
21072
+ /* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
21063
21073
  width: "48%"
21064
21074
  }, styles: {
21065
21075
  rightSection: {
@@ -21233,7 +21243,7 @@ const $o = ({
21233
21243
  data_keys: s,
21234
21244
  formatter: i,
21235
21245
  postfix: a
21236
- } = e, o = Fe(), l = T(() => {
21246
+ } = e, o = Oe(), l = T(() => {
21237
21247
  if (a.type === "text" && a.value)
21238
21248
  return a.value;
21239
21249
  if (a.type === "filter-option-label" && a.value) {
@@ -21262,7 +21272,7 @@ const $o = ({
21262
21272
  ] })
21263
21273
  ] })
21264
21274
  ] });
21265
- }), Uk = k(({
21275
+ }), Kk = k(({
21266
21276
  context: e,
21267
21277
  instance: t
21268
21278
  }) => {
@@ -21274,10 +21284,10 @@ const $o = ({
21274
21284
  width: l,
21275
21285
  height: c
21276
21286
  } = e.viewport;
21277
- return !l || !c || !i ? null : /* @__PURE__ */ r.jsx(Ut, { w: `${l}px`, h: `${c}px`, justify: i.styles.justify, align: i.styles.align, direction: "row", wrap: "nowrap", sx: {
21287
+ return !l || !c || !i ? null : /* @__PURE__ */ r.jsx(Kt, { w: `${l}px`, h: `${c}px`, justify: i.styles.justify, align: i.styles.align, direction: "row", wrap: "nowrap", sx: {
21278
21288
  overflow: "hidden"
21279
21289
  }, children: i.metrics.map((d) => /* @__PURE__ */ r.jsx(Hk, { metric: d, variableValueMap: o }, d.id)) });
21280
- }), Kk = [{
21290
+ }), Uk = [{
21281
21291
  label: "Text",
21282
21292
  value: "text"
21283
21293
  }, {
@@ -21299,7 +21309,7 @@ const $o = ({
21299
21309
  });
21300
21310
  };
21301
21311
  return /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
21302
- /* @__PURE__ */ r.jsx(A, { label: "Postfix Type", data: Kk, value: e.type, onChange: a }),
21312
+ /* @__PURE__ */ r.jsx(A, { label: "Postfix Type", data: Uk, value: e.type, onChange: a }),
21303
21313
  e.type === "text" && /* @__PURE__ */ r.jsx(I, { label: "Postfix Content", value: e.value, onChange: (l) => {
21304
21314
  o(l.currentTarget.value);
21305
21315
  } }),
@@ -21545,7 +21555,7 @@ const iT = {
21545
21555
  displayGroup: "Merico suite",
21546
21556
  migrator: new sT(),
21547
21557
  name: "merico-stats",
21548
- viewRender: Uk,
21558
+ viewRender: Kk,
21549
21559
  configRender: nT,
21550
21560
  createConfig: () => ({
21551
21561
  version: 2,
@@ -21594,7 +21604,7 @@ function aT({
21594
21604
  field: s
21595
21605
  }) => (
21596
21606
  // @ts-expect-error type of onChange
21597
- /* @__PURE__ */ r.jsx(U, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
21607
+ /* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
21598
21608
  ) })
21599
21609
  ] })
21600
21610
  ] });
@@ -21663,7 +21673,7 @@ const oT = ({
21663
21673
  }, children: [
21664
21674
  /* @__PURE__ */ r.jsxs(m.List, { children: [
21665
21675
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
21666
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
21676
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
21667
21677
  ] }),
21668
21678
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(oT, { control: e, index: p, remove: i }, h.id) }, h.id))
21669
21679
  ] })
@@ -21705,7 +21715,7 @@ const dT = ({
21705
21715
  const [s, {
21706
21716
  setTrue: i,
21707
21717
  setFalse: a
21708
- }] = Ee(), [o, l] = N(e);
21718
+ }] = Fe(), [o, l] = N(e);
21709
21719
  O(() => {
21710
21720
  l(e);
21711
21721
  }, [e]);
@@ -21739,7 +21749,7 @@ const dT = ({
21739
21749
  flexGrow: 0
21740
21750
  }, children: "Customize Label" }),
21741
21751
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
21742
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
21752
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
21743
21753
  /* @__PURE__ */ r.jsx(dT, { value: o.func_content, onChange: h, disabled: !o.enabled }),
21744
21754
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
21745
21755
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -21777,7 +21787,7 @@ function hT({
21777
21787
  field: n
21778
21788
  }) => (
21779
21789
  // @ts-expect-error type of onChange
21780
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
21790
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
21781
21791
  width: "48%"
21782
21792
  }, styles: {
21783
21793
  rightSection: {
@@ -21839,7 +21849,7 @@ function xT({
21839
21849
  field: n
21840
21850
  }) => (
21841
21851
  // @ts-expect-error type of onChange
21842
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
21852
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
21843
21853
  width: "48%"
21844
21854
  }, styles: {
21845
21855
  rightSection: {
@@ -22377,14 +22387,14 @@ const LT = {
22377
22387
  value: e.value,
22378
22388
  type: "single",
22379
22389
  category: "basic"
22380
- })), RT = [Kx, Yx, Zx, Jx, Xx, em], yd = () => ({
22390
+ })), RT = [Ux, Yx, Zx, Jx, Xx, em], yd = () => ({
22381
22391
  id: "dashboard",
22382
22392
  version: Xl,
22383
22393
  manifest: {
22384
- viz: [ci, yS, WC, Y0, NS, Nw, pk, fm, xg, pv, Kv, T1, Iw, Wj, oS, h0, N0, JC, Gk, LT, iT, Ig],
22394
+ viz: [ci, yS, WC, Y0, NS, Nw, pk, fm, xg, pv, Uv, T1, Iw, Wj, oS, h0, N0, JC, Gk, LT, iT, Ig],
22385
22395
  color: [...AT, ...RT]
22386
22396
  }
22387
- }), Xn = new sm(), De = {
22397
+ }), Xn = new sm(), ze = {
22388
22398
  pluginManager: Vt("pluginManager"),
22389
22399
  vizManager: Vt("vizManager"),
22390
22400
  colorManager: Vt("colorManager"),
@@ -22450,7 +22460,7 @@ const ET = ({
22450
22460
  onChange: o
22451
22461
  }) => /* @__PURE__ */ r.jsxs(z, { children: [
22452
22462
  /* @__PURE__ */ r.jsx(j, { children: " " }),
22453
- /* @__PURE__ */ r.jsx(K, { label: /* @__PURE__ */ r.jsxs(b, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22463
+ /* @__PURE__ */ r.jsx(U, { label: /* @__PURE__ */ r.jsxs(b, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22454
22464
  /* @__PURE__ */ r.jsx(z, { sx: {
22455
22465
  flexGrow: 1
22456
22466
  }, children: e }),
@@ -22638,7 +22648,7 @@ const ET = ({
22638
22648
  };
22639
22649
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
22640
22650
  /* @__PURE__ */ r.jsx(D, { variant: "dashed", my: 10 }),
22641
- /* @__PURE__ */ r.jsx(Ke, { withBorder: !1, sx: {
22651
+ /* @__PURE__ */ r.jsx(Ue, { withBorder: !1, sx: {
22642
22652
  "tbody > tr > th, tbody > tr > td": {
22643
22653
  borderTop: "none",
22644
22654
  padding: "2px 6px"
@@ -22932,9 +22942,9 @@ const ET = ({
22932
22942
  }, F = y && (l == null ? void 0 : l.length) > 0, [B, re] = N(""), be = T(() => {
22933
22943
  if (!B)
22934
22944
  return d;
22935
- const ne = B.toLowerCase(), Se = (Te) => {
22936
- var Me;
22937
- return ((Me = Te.description) == null ? void 0 : Me.toLowerCase().includes(ne)) || Te.label.toLowerCase().includes(ne);
22945
+ const ne = B.toLowerCase(), Se = (Ie) => {
22946
+ var Le;
22947
+ return ((Le = Ie.description) == null ? void 0 : Le.toLowerCase().includes(ne)) || Ie.label.toLowerCase().includes(ne);
22938
22948
  };
22939
22949
  return d.filter(Se);
22940
22950
  }, [B, d]);
@@ -22957,7 +22967,7 @@ const ET = ({
22957
22967
  value: n,
22958
22968
  onChange: s
22959
22969
  }) => {
22960
- const i = Fe(), a = !!t.options_query_id, {
22970
+ const i = Oe(), a = !!t.options_query_id, {
22961
22971
  state: o,
22962
22972
  error: l
22963
22973
  } = i.getDataStuffByID(t.options_query_id), c = o === "loading", d = t.min_width ? t.min_width : "200px", u = a ? c : !1, h = (p) => s(p, !1);
@@ -22980,7 +22990,7 @@ const ET = ({
22980
22990
  value: n,
22981
22991
  onChange: s
22982
22992
  }) => {
22983
- const i = Fe(), a = !!t.options_query_id, {
22993
+ const i = Oe(), a = !!t.options_query_id, {
22984
22994
  state: o,
22985
22995
  error: l
22986
22996
  } = i.getDataStuffByID(t.options_query_id), c = o === "loading";
@@ -22997,7 +23007,7 @@ const ET = ({
22997
23007
  }
22998
23008
  }, itemComponent: QT });
22999
23009
  });
23000
- function UT({
23010
+ function KT({
23001
23011
  label: e,
23002
23012
  config: t,
23003
23013
  value: n,
@@ -23009,7 +23019,7 @@ function UT({
23009
23019
  }
23010
23020
  } });
23011
23021
  }
23012
- const KT = ({
23022
+ const UT = ({
23013
23023
  rotate: e,
23014
23024
  onClick: t
23015
23025
  }) => /* @__PURE__ */ r.jsx("svg", { onClick: t, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${e})`, children: /* @__PURE__ */ r.jsx("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), YT = ({
@@ -23021,7 +23031,7 @@ const KT = ({
23021
23031
  }) => (n === "0-0-value" && console.log(i), t ? /* @__PURE__ */ r.jsx("span", { style: {
23022
23032
  width: "14px",
23023
23033
  display: "inline-block"
23024
- } }) : /* @__PURE__ */ r.jsx(KT, { rotate: e ? "0" : "-90", onClick: s, ...i })), XT = ({
23034
+ } }) : /* @__PURE__ */ r.jsx(UT, { rotate: e ? "0" : "-90", onClick: s, ...i })), XT = ({
23025
23035
  onClick: e
23026
23036
  }) => /* @__PURE__ */ r.jsxs("svg", { onClick: e, className: "checkbox-icon", width: "16", height: "16", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [
23027
23037
  /* @__PURE__ */ r.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
@@ -23387,7 +23397,7 @@ const KT = ({
23387
23397
  case "tree-select":
23388
23398
  return /* @__PURE__ */ r.jsx(tI, { ...s, ...i, config: t });
23389
23399
  case "text-input":
23390
- return /* @__PURE__ */ r.jsx(UT, { ...s, ...i, config: t });
23400
+ return /* @__PURE__ */ r.jsx(KT, { ...s, ...i, config: t });
23391
23401
  case "date-range":
23392
23402
  return /* @__PURE__ */ r.jsx(vd, { ...s, ...i, config: t });
23393
23403
  case "checkbox":
@@ -23420,7 +23430,7 @@ function iI(e) {
23420
23430
  const _d = k(function({
23421
23431
  view: t
23422
23432
  }) {
23423
- const n = Fe(), {
23433
+ const n = Oe(), {
23424
23434
  control: s,
23425
23435
  handleSubmit: i,
23426
23436
  reset: a
@@ -23713,7 +23723,7 @@ const oI = f.model("PanelLayoutMeta", {
23713
23723
  }
23714
23724
  })), Ss = (e) => hl(e, (t, n) => {
23715
23725
  if (n !== void 0 && t)
23716
- return Kt(t);
23726
+ return Ut(t);
23717
23727
  });
23718
23728
  var et = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(et || {});
23719
23729
  const xI = f.model("QueryMeta", {
@@ -23801,7 +23811,7 @@ const xI = f.model("QueryMeta", {
23801
23811
  e.value = t;
23802
23812
  }
23803
23813
  }));
23804
- var Le = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Le || {});
23814
+ var Ae = /* @__PURE__ */ ((e) => (e.Select = "select", e.MultiSelect = "multi-select", e.TreeSelect = "tree-select", e.TextInput = "text-input", e.Checkbox = "checkbox", e.DateRange = "date-range", e))(Ae || {});
23805
23815
  const kd = f.model("FilterCheckboxConfigMeta", {
23806
23816
  _name: f.literal("checkbox"),
23807
23817
  description: f.optional(f.string, ""),
@@ -24026,7 +24036,7 @@ const gI = f.model("FilterDateRangeConfigMeta", {
24026
24036
  }
24027
24037
  })).actions((e) => ({
24028
24038
  afterCreate() {
24029
- wt(e, it(() => Kt(e.default_selection), e.setDefaultSelection, {
24039
+ wt(e, it(() => Ut(e.default_selection), e.setDefaultSelection, {
24030
24040
  fireImmediately: !0,
24031
24041
  delay: 0
24032
24042
  }));
@@ -24084,7 +24094,7 @@ const gI = f.model("FilterDateRangeConfigMeta", {
24084
24094
  }
24085
24095
  })).actions((e) => ({
24086
24096
  afterCreate() {
24087
- wt(e, it(() => Kt(e.default_selection), e.setDefaultSelection, {
24097
+ wt(e, it(() => Ut(e.default_selection), e.setDefaultSelection, {
24088
24098
  fireImmediately: !0,
24089
24099
  delay: 0
24090
24100
  }));
@@ -24255,7 +24265,7 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24255
24265
  order: f.number,
24256
24266
  visibleInViewsIDs: f.array(f.string),
24257
24267
  auto_submit: f.optional(f.boolean, !1),
24258
- type: f.enumeration("DashboardFilterType", [Le.Select, Le.MultiSelect, Le.TreeSelect, Le.TextInput, Le.Checkbox, Le.DateRange]),
24268
+ type: f.enumeration("DashboardFilterType", [Ae.Select, Ae.MultiSelect, Ae.TreeSelect, Ae.TextInput, Ae.Checkbox, Ae.DateRange]),
24259
24269
  config: f.union(zd, Dd, Ad, Md, kd, Id)
24260
24270
  }).views((e) => ({
24261
24271
  get plainDefaultValue() {
@@ -24263,10 +24273,10 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24263
24273
  return Array.isArray(t) ? [...t] : t;
24264
24274
  },
24265
24275
  get usingDefaultValue() {
24266
- return e.type !== Le.TreeSelect;
24276
+ return e.type !== Ae.TreeSelect;
24267
24277
  },
24268
24278
  get auto_submit_supported() {
24269
- return [Le.Select, Le.Checkbox, Le.DateRange].includes(e.type);
24279
+ return [Ae.Select, Ae.Checkbox, Ae.DateRange].includes(e.type);
24270
24280
  }
24271
24281
  })).views((e) => ({
24272
24282
  get json() {
@@ -24288,7 +24298,7 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24288
24298
  order: i,
24289
24299
  config: c.json,
24290
24300
  auto_submit: o,
24291
- visibleInViewsIDs: Kt(a)
24301
+ visibleInViewsIDs: Ut(a)
24292
24302
  };
24293
24303
  },
24294
24304
  get visibleInViewsIDSet() {
@@ -24313,22 +24323,22 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24313
24323
  },
24314
24324
  setType(t) {
24315
24325
  switch (t) {
24316
- case Le.Select:
24326
+ case Ae.Select:
24317
24327
  e.config = vI();
24318
24328
  break;
24319
- case Le.MultiSelect:
24329
+ case Ae.MultiSelect:
24320
24330
  e.config = jI();
24321
24331
  break;
24322
- case Le.TreeSelect:
24332
+ case Ae.TreeSelect:
24323
24333
  e.config = SI();
24324
24334
  break;
24325
- case Le.TextInput:
24335
+ case Ae.TextInput:
24326
24336
  e.config = Ld();
24327
24337
  break;
24328
- case Le.Checkbox:
24338
+ case Ae.Checkbox:
24329
24339
  e.config = fI();
24330
24340
  break;
24331
- case Le.DateRange:
24341
+ case Ae.DateRange:
24332
24342
  e.config = bI();
24333
24343
  break;
24334
24344
  }
@@ -24778,6 +24788,9 @@ const Wd = pI.views((e) => ({
24778
24788
  get queries() {
24779
24789
  return e.contentModel.queries.findByIDSet(e.queryIDSet);
24780
24790
  },
24791
+ queryByID(t) {
24792
+ return this.queries.find((n) => n.id === t);
24793
+ },
24781
24794
  get data() {
24782
24795
  return this.queries.reduce((t, n) => (t[n.id] = n.data, t), {});
24783
24796
  },
@@ -24979,7 +24992,7 @@ const Hd = f.model("FiltersRenderModel", {
24979
24992
  In("Filters", n);
24980
24993
  }
24981
24994
  }));
24982
- function Ud(e) {
24995
+ function Kd(e) {
24983
24996
  return {
24984
24997
  current: e,
24985
24998
  values: OI(e)
@@ -25240,7 +25253,7 @@ const $r = {
25240
25253
  delay: 0
25241
25254
  }));
25242
25255
  }
25243
- })), Kd = f.model("QueriesRenderModel", {
25256
+ })), Ud = f.model("QueriesRenderModel", {
25244
25257
  current: f.optional(f.array(WI), [])
25245
25258
  }).views((e) => ({
25246
25259
  get idSet() {
@@ -25397,7 +25410,7 @@ function Yr(e, t, n, s) {
25397
25410
  return i;
25398
25411
  }, {});
25399
25412
  }
25400
- class UI {
25413
+ class KI {
25401
25414
  constructor(t) {
25402
25415
  V(this, "origin");
25403
25416
  V(this, "copy");
@@ -25419,7 +25432,7 @@ class UI {
25419
25432
  Qe(this.copy, t);
25420
25433
  }
25421
25434
  }
25422
- const KI = (e) => new UI(e), YI = k(({
25435
+ const UI = (e) => new KI(e), YI = k(({
25423
25436
  view: e
25424
25437
  }) => {
25425
25438
  const t = le(), n = ce(), s = Ct(), {
@@ -25544,7 +25557,7 @@ class eD {
25544
25557
  V(this, "runningMigration");
25545
25558
  V(this, "panelModel");
25546
25559
  V(this, "status", "notStarted");
25547
- this.panelModel = t.getRequired(De.instanceScope.panelModel), this.vizInstance = t.getRequired(De.instanceScope.vizInstance), this.operationManager = t.getRequired(De.instanceScope.operationManager), this.triggerManager = t.getRequired(De.instanceScope.triggerManager), this.vizManager = t.getRequired(De.vizManager);
25560
+ this.panelModel = t.getRequired(ze.instanceScope.panelModel), this.vizInstance = t.getRequired(ze.instanceScope.vizInstance), this.operationManager = t.getRequired(ze.instanceScope.operationManager), this.triggerManager = t.getRequired(ze.instanceScope.triggerManager), this.vizManager = t.getRequired(ze.vizManager);
25548
25561
  }
25549
25562
  async createMigrationTask() {
25550
25563
  const t = [];
@@ -25589,15 +25602,15 @@ function Zd(e) {
25589
25602
  panel: t
25590
25603
  } = kn();
25591
25604
  return qe((n) => {
25592
- const s = n.getRequired(De.vizManager), i = s.resolveComponent(e.viz.type);
25593
- return n.createScoped().provideFactory(De.instanceScope.vizInstance, () => s.getOrCreateInstance(e)).provideFactory(De.instanceScope.interactionManager, (a) => {
25594
- const o = a.getRequired(De.instanceScope.vizInstance);
25605
+ const s = n.getRequired(ze.vizManager), i = s.resolveComponent(e.viz.type);
25606
+ return n.createScoped().provideFactory(ze.instanceScope.vizInstance, () => s.getOrCreateInstance(e)).provideFactory(ze.instanceScope.interactionManager, (a) => {
25607
+ const o = a.getRequired(ze.instanceScope.vizInstance);
25595
25608
  return new Fi(o, i, ds);
25596
- }).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, t).provideFactory(De.instanceScope.migrator, (a) => new eD(a));
25609
+ }).provideFactory(ze.instanceScope.operationManager, (a) => a.getRequired(ze.instanceScope.interactionManager).operationManager).provideFactory(ze.instanceScope.triggerManager, (a) => a.getRequired(ze.instanceScope.interactionManager).triggerManager).provideValue(ze.instanceScope.panelModel, t).provideFactory(ze.instanceScope.migrator, (a) => new eD(a));
25597
25610
  }, [e.viz.type, e.viz.conf]);
25598
25611
  }
25599
25612
  function eu(e) {
25600
- const [t, n] = N(!1), s = jd().getRequired(De.instanceScope.migrator);
25613
+ const [t, n] = N(!1), s = jd().getRequired(ze.instanceScope.migrator);
25601
25614
  return ur(async () => {
25602
25615
  const i = s.status === Pr.notStarted;
25603
25616
  n(s.status === Pr.done), s.status === Pr.notStarted && s.runMigration().then((a) => {
@@ -25608,7 +25621,7 @@ function eu(e) {
25608
25621
  }, [s]), t;
25609
25622
  }
25610
25623
  function tu(e, t) {
25611
- const n = jd().getRequired(De.instanceScope.vizInstance);
25624
+ const n = jd().getRequired(ze.instanceScope.vizInstance);
25612
25625
  return O(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (s) => {
25613
25626
  e(s);
25614
25627
  })), [e, t.viz.type]), n;
@@ -25627,7 +25640,7 @@ function tD({
25627
25640
  });
25628
25641
  return ur(async () => {
25629
25642
  await s.instanceData.setItem(null, n.viz.conf);
25630
- }, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Ux, { ...t }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update..." });
25643
+ }, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Kx, { ...t }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update..." });
25631
25644
  }
25632
25645
  function nD(e) {
25633
25646
  const {
@@ -25698,7 +25711,7 @@ const sD = k(function({
25698
25711
  /* @__PURE__ */ r.jsx(j, { color: "gray", align: "center", size: "sm", children: e.queryStateMessages })
25699
25712
  ] })), nu = k(({
25700
25713
  panel: e
25701
- }) => /* @__PURE__ */ r.jsxs(Ut, { className: "panel-viz-section", direction: "column", sx: {
25714
+ }) => /* @__PURE__ */ r.jsxs(Kt, { className: "panel-viz-section", direction: "column", sx: {
25702
25715
  position: "relative",
25703
25716
  width: "100%"
25704
25717
  }, children: [
@@ -25815,7 +25828,7 @@ const su = k(({
25815
25828
  function mD(e, t, n) {
25816
25829
  const {
25817
25830
  panels: s
25818
- } = Fe(), i = e.id === "Main", [a, o] = L.useState(() => i && s.findByID(t) ? t : null), l = L.useCallback((h) => {
25831
+ } = Oe(), i = e.id === "Main", [a, o] = L.useState(() => i && s.findByID(t) ? t : null), l = L.useCallback((h) => {
25819
25832
  o(h), i && n(h);
25820
25833
  }, [i, n]), c = L.useCallback(() => {
25821
25834
  o(null), i && n("");
@@ -25856,7 +25869,7 @@ const fD = L.forwardRef(({
25856
25869
  view: e,
25857
25870
  className: t = "layout"
25858
25871
  }) => {
25859
- const n = Fe(), {
25872
+ const n = Oe(), {
25860
25873
  panels: s,
25861
25874
  layouts: i
25862
25875
  } = n.panels.panelsByIDs(e.panelIDs), a = L.useCallback((l) => {
@@ -25883,7 +25896,7 @@ const fD = L.forwardRef(({
25883
25896
  const {
25884
25897
  panels: s,
25885
25898
  layouts: i
25886
- } = Fe().panels.panelsByIDs(t.panelIDs);
25899
+ } = Oe().panels.panelsByIDs(t.panelIDs);
25887
25900
  return /* @__PURE__ */ r.jsx(jD, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: i, children: s.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": {
25888
25901
  ...a.layout
25889
25902
  }, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(su, { view: t, panel: a }) }, a.id)) });
@@ -25918,7 +25931,7 @@ const wD = k(({
25918
25931
  const [t, {
25919
25932
  setTrue: n,
25920
25933
  setFalse: s
25921
- }] = Ee(!1), i = tc(), a = Fe(), o = () => {
25934
+ }] = Fe(!1), i = tc(), a = Oe(), o = () => {
25922
25935
  const l = JSON.stringify(a.contentJSON, null, 2), c = `${i.name}__${a.name}`;
25923
25936
  In(c, l);
25924
25937
  };
@@ -25961,7 +25974,7 @@ const wD = k(({
25961
25974
  children: e,
25962
25975
  view: t
25963
25976
  }) => {
25964
- const n = Fe(), s = t.config, i = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
25977
+ const n = Oe(), s = t.config, i = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
25965
25978
  ref: o,
25966
25979
  downloadScreenshot: l
25967
25980
  } = ja(t);
@@ -26009,7 +26022,7 @@ const wD = k(({
26009
26022
  } : {}, CD = k(({
26010
26023
  view: e
26011
26024
  }) => {
26012
- const t = Fe(), n = e.config;
26025
+ const t = Oe(), n = e.config;
26013
26026
  return /* @__PURE__ */ r.jsxs(m, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: e.tab, onTabChange: e.setTab, styles: {
26014
26027
  root: {
26015
26028
  height: "100%",
@@ -26158,7 +26171,7 @@ const ID = k(({
26158
26171
  return /* @__PURE__ */ r.jsxs(m, { className: "preview-view-tabs", variant: i.variant, orientation: i.orientation, value: e.tab, onTabChange: e.setTab, styles: DD(i), children: [
26159
26172
  /* @__PURE__ */ r.jsxs(m.List, { grow: i.grow, children: [
26160
26173
  i.tabs.map((l) => /* @__PURE__ */ r.jsx(m.Tab, { value: l.id, sx: zD(l), children: l.name ?? l.id }, l.id)),
26161
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
26174
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
26162
26175
  ] }),
26163
26176
  i.tabs.map((l, c) => {
26164
26177
  const d = n.views.findByID(l.view_id);
@@ -26309,7 +26322,7 @@ const OD = f.compose("FiltersModel", Hd, f.model("FiltersModel", {
26309
26322
  }));
26310
26323
  },
26311
26324
  get selects() {
26312
- return e.current.filter((t) => t.type === Le.Select).map((t) => ({
26325
+ return e.current.filter((t) => t.type === Ae.Select).map((t) => ({
26313
26326
  label: t.label ?? t.id,
26314
26327
  value: t.id
26315
26328
  }));
@@ -26363,7 +26376,7 @@ const OD = f.compose("FiltersModel", Hd, f.model("FiltersModel", {
26363
26376
  t();
26364
26377
  }
26365
26378
  };
26366
- }), $D = Kd.views((e) => ({
26379
+ }), $D = Ud.views((e) => ({
26367
26380
  get options() {
26368
26381
  const t = e.current.map((n) => ({
26369
26382
  value: n.id,
@@ -26793,7 +26806,7 @@ const HD = f.model("EditorModel", {
26793
26806
  }, {
26794
26807
  label: "Mock Context",
26795
26808
  value: "_MOCK_CONTEXT_",
26796
- Icon: Uh,
26809
+ Icon: Kh,
26797
26810
  _type: "mock_context"
26798
26811
  }, {
26799
26812
  label: "Filters",
@@ -26804,7 +26817,7 @@ const HD = f.model("EditorModel", {
26804
26817
  }, {
26805
26818
  label: "SQL Snippets",
26806
26819
  value: "_SQL_SNIPPETS_",
26807
- Icon: Kh,
26820
+ Icon: Uh,
26808
26821
  children: [cn("_SQL_SNIPPETS_SETTINGS_"), ...i.options, cn("_Add_A_SQL_SNIPPET_")],
26809
26822
  _type: "GROUP"
26810
26823
  }, {
@@ -26848,16 +26861,50 @@ const HD = f.model("EditorModel", {
26848
26861
  const n = QD(t);
26849
26862
  n && e.setPath(n);
26850
26863
  }
26851
- })), UD = Wd.views((e) => ({
26852
- get dataFieldOptions() {
26864
+ })), KD = Wd.views((e) => ({
26865
+ get realDataFieldOptions() {
26853
26866
  return e.queryIDs.length === 0 ? [] : e.queries.map((t) => {
26854
26867
  const n = t.data;
26855
26868
  return n.length === 0 ? [] : Object.keys(n[0]).map((i) => ({
26856
26869
  label: i,
26857
26870
  value: `${t.id}.${i}`,
26858
- group: t.name
26871
+ group: t.name,
26872
+ disabled: !1
26859
26873
  }));
26860
26874
  }).flat();
26875
+ },
26876
+ dataFieldOptions(t, n) {
26877
+ const s = [...this.realDataFieldOptions];
26878
+ if (t && !s.find((i) => i.value === t)) {
26879
+ const i = $(t), a = e.queryByID(i.queryID);
26880
+ s.unshift({
26881
+ label: i.columnKey,
26882
+ value: t,
26883
+ group: a ? a.name : i.queryID,
26884
+ disabled: !0
26885
+ });
26886
+ }
26887
+ return n && s.unshift({
26888
+ label: "unset",
26889
+ value: "",
26890
+ group: "",
26891
+ disabled: !1
26892
+ }), s;
26893
+ },
26894
+ explainDataKey(t) {
26895
+ const {
26896
+ queryID: n,
26897
+ columnKey: s
26898
+ } = $(t), i = e.queries.find((a) => a.id === n);
26899
+ return i ? {
26900
+ queryID: n,
26901
+ queryName: i.name,
26902
+ columnKey: s
26903
+ } : {
26904
+ queryID: n,
26905
+ queryName: null,
26906
+ columnKey: s
26907
+ };
26861
26908
  }
26862
26909
  })).actions((e) => ({
26863
26910
  removeSelf() {
@@ -26867,8 +26914,8 @@ const HD = f.model("EditorModel", {
26867
26914
  moveToView(t, n) {
26868
26915
  Ne(e).content.views.findByID(t).removePanelID(e.id), Ne(e).content.views.findByID(n).appendPanelID(e.id), Ne(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
26869
26916
  }
26870
- })), KD = f.compose("PanelsModel", Gd, f.model({
26871
- list: f.optional(f.array(UD), [])
26917
+ })), UD = f.compose("PanelsModel", Gd, f.model({
26918
+ list: f.optional(f.array(KD), [])
26872
26919
  })).views((e) => ({
26873
26920
  editorOptions(t, n) {
26874
26921
  const {
@@ -27064,7 +27111,7 @@ const JD = f.model({
27064
27111
  queries: $D,
27065
27112
  sqlSnippets: PD,
27066
27113
  views: XD,
27067
- panels: KD,
27114
+ panels: UD,
27068
27115
  mock_context: Sd,
27069
27116
  /**
27070
27117
  * this field should be excluded from snapshot
@@ -27385,7 +27432,7 @@ function ZD({
27385
27432
  create_time: s,
27386
27433
  update_time: i,
27387
27434
  version: o,
27388
- filters: Ud(l),
27435
+ filters: Kd(l),
27389
27436
  queries: {
27390
27437
  current: u
27391
27438
  },
@@ -27537,7 +27584,7 @@ function cu(e, t) {
27537
27584
  }, [e]);
27538
27585
  }
27539
27586
  function du(e) {
27540
- return L.useCallback((t) => t.provideValue(De.pluginManager, e.pluginManager).provideValue(De.vizManager, e.vizManager).provideValue(De.colorManager, e.colorManager), []);
27587
+ return L.useCallback((t) => t.provideValue(ze.pluginManager, e.pluginManager).provideValue(ze.vizManager, e.vizManager).provideValue(ze.colorManager, e.colorManager), []);
27541
27588
  }
27542
27589
  const nz = k(() => {
27543
27590
  const e = tc(), t = ce(), n = () => {
@@ -27720,7 +27767,7 @@ const oz = k(({
27720
27767
  const [n, {
27721
27768
  setTrue: s,
27722
27769
  setFalse: i
27723
- }] = Ee(), [a, o] = N(e ?? pi), l = (p) => {
27770
+ }] = Fe(), [a, o] = N(e ?? pi), l = (p) => {
27724
27771
  o({
27725
27772
  ...a,
27726
27773
  enabled: p
@@ -27750,7 +27797,7 @@ const oz = k(({
27750
27797
  flexGrow: 0
27751
27798
  }, children: /* @__PURE__ */ r.jsx(ml, { size: 14 }) }),
27752
27799
  /* @__PURE__ */ r.jsx(me, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
27753
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (p) => l(p.currentTarget.checked) }),
27800
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (p) => l(p.currentTarget.checked) }),
27754
27801
  /* @__PURE__ */ r.jsx(uz, { value: a.func_content, onChange: u, disabled: !a.enabled }),
27755
27802
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
27756
27803
  /* @__PURE__ */ r.jsx(C, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -27769,7 +27816,7 @@ const oz = k(({
27769
27816
  const t = e.config, n = t.custom_modal_title.value;
27770
27817
  return /* @__PURE__ */ r.jsxs(w, { children: [
27771
27818
  /* @__PURE__ */ r.jsx(D, { mt: 8, label: "Modal settings", labelPosition: "center" }),
27772
- /* @__PURE__ */ r.jsxs(Ut, { gap: 10, children: [
27819
+ /* @__PURE__ */ r.jsxs(Kt, { gap: 10, children: [
27773
27820
  /* @__PURE__ */ r.jsx(I, { label: "Modal Title", value: n, onChange: _.noop, disabled: !0, sx: {
27774
27821
  flexGrow: 1
27775
27822
  } }),
@@ -27812,7 +27859,7 @@ const oz = k(({
27812
27859
  ] }) : null), Cs = ({
27813
27860
  headers: e,
27814
27861
  rows: t
27815
- }) => /* @__PURE__ */ r.jsxs(Ke, { fontSize: "xs", highlightOnHover: !0, sx: {
27862
+ }) => /* @__PURE__ */ r.jsxs(Ue, { fontSize: "xs", highlightOnHover: !0, sx: {
27816
27863
  tableLayout: "fixed",
27817
27864
  fontFamily: "monospace"
27818
27865
  }, children: [
@@ -28013,7 +28060,7 @@ const oz = k(({
28013
28060
  }] = xr(!1), [s, {
28014
28061
  setTrue: i,
28015
28062
  setFalse: a
28016
- }] = Ee(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === q.Tabs;
28063
+ }] = Fe(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === q.Tabs;
28017
28064
  return l ? /* @__PURE__ */ r.jsx(fe, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(to, { size: 16 }), sx: {
28018
28065
  ...Wo,
28019
28066
  transform: "none !important"
@@ -28330,19 +28377,19 @@ function Hz(e) {
28330
28377
  };
28331
28378
  return Qz(l);
28332
28379
  }
28333
- const Us = {
28380
+ const Ks = {
28334
28381
  "builtin:op:open-link": /* @__PURE__ */ r.jsx(Es, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Zh, { size: 14 }) }),
28335
28382
  "builtin:op:set_filter_values": /* @__PURE__ */ r.jsx(Es, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(ep, { size: 14 }) }),
28336
28383
  "builtin:op:clear_filter_values": /* @__PURE__ */ r.jsx(Es, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(tp, { size: 14 }) })
28337
28384
  };
28338
- function Uz(e) {
28385
+ function Kz(e) {
28339
28386
  const t = [];
28340
28387
  return e.forEach((n) => {
28341
28388
  switch (n.schemaRef) {
28342
28389
  case "builtin:op:open-link":
28343
28390
  t.push({
28344
28391
  key: n.urlTemplate,
28345
- icon: Us[n.schemaRef],
28392
+ icon: Ks[n.schemaRef],
28346
28393
  text: /* @__PURE__ */ r.jsxs(b, { spacing: 4, children: [
28347
28394
  /* @__PURE__ */ r.jsx(j, { children: "Open: " }),
28348
28395
  /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: n.shortURLTemplate })
@@ -28356,7 +28403,7 @@ function Uz(e) {
28356
28403
  }) => {
28357
28404
  t.push({
28358
28405
  key: n.schemaRef + s,
28359
- icon: Us[n.schemaRef],
28406
+ icon: Ks[n.schemaRef],
28360
28407
  text: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
28361
28408
  "Set Filter: ",
28362
28409
  i
@@ -28371,7 +28418,7 @@ function Uz(e) {
28371
28418
  }) => {
28372
28419
  t.push({
28373
28420
  key: n.schemaRef + s,
28374
- icon: Us[n.schemaRef],
28421
+ icon: Ks[n.schemaRef],
28375
28422
  text: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
28376
28423
  "Clear Filter: ",
28377
28424
  i
@@ -28382,14 +28429,14 @@ function Uz(e) {
28382
28429
  }
28383
28430
  }), t;
28384
28431
  }
28385
- const Kz = Ku(({
28432
+ const Uz = Uu(({
28386
28433
  data: e,
28387
28434
  isConnectable: t,
28388
28435
  sourcePosition: n = vt.Right,
28389
28436
  targetPosition: s = vt.Left,
28390
28437
  ...i
28391
28438
  }) => {
28392
- const a = T(() => Uz(e.interactions), [e.interactions]);
28439
+ const a = T(() => Kz(e.interactions), [e.interactions]);
28393
28440
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28394
28441
  /* @__PURE__ */ r.jsx(io, { type: "target", position: s, isConnectable: t }),
28395
28442
  /* @__PURE__ */ r.jsx(z, { sx: {
@@ -28397,17 +28444,17 @@ const Kz = Ku(({
28397
28444
  top: 0,
28398
28445
  right: 0
28399
28446
  }, children: /* @__PURE__ */ r.jsx(Lh, { size: 12 }) }),
28400
- /* @__PURE__ */ r.jsxs(Oe, { shadow: "xl", withinPortal: !0, children: [
28401
- /* @__PURE__ */ r.jsx(Oe.Target, { children: /* @__PURE__ */ r.jsx(j, { children: e.label }) }),
28402
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsx(Mt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(Mt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
28447
+ /* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
28448
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(j, { children: e.label }) }),
28449
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Mt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(Mt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
28403
28450
  ] }),
28404
28451
  /* @__PURE__ */ r.jsx(io, { type: "source", position: n, isConnectable: t })
28405
28452
  ] });
28406
28453
  });
28407
28454
  const Yz = {
28408
- interaction: Kz
28455
+ interaction: Uz
28409
28456
  }, Xz = k(() => {
28410
- const e = Fe(), {
28457
+ const e = Oe(), {
28411
28458
  edges: t,
28412
28459
  nodes: n
28413
28460
  } = Hz(e);
@@ -28575,7 +28622,7 @@ const tM = k(() => {
28575
28622
  config: t
28576
28623
  }) {
28577
28624
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28578
- /* @__PURE__ */ r.jsx(K, { checked: t.default_value, onChange: (n) => t.setDefaultValue(n.currentTarget.checked), label: "Default Checked" }),
28625
+ /* @__PURE__ */ r.jsx(U, { checked: t.default_value, onChange: (n) => t.setDefaultValue(n.currentTarget.checked), label: "Default Checked" }),
28579
28626
  /* @__PURE__ */ r.jsx(ia, { label: "Description", value: t.description, onChange: t.setDescription, styles: {
28580
28627
  root: {
28581
28628
  flexGrow: 1,
@@ -28603,8 +28650,8 @@ const tM = k(() => {
28603
28650
  }) {
28604
28651
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28605
28652
  /* @__PURE__ */ r.jsxs(b, { children: [
28606
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28607
- /* @__PURE__ */ r.jsx(K, { checked: t.allowSingleDateInRange, onChange: (n) => t.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
28653
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28654
+ /* @__PURE__ */ r.jsx(U, { checked: t.allowSingleDateInRange, onChange: (n) => t.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
28608
28655
  ] }),
28609
28656
  /* @__PURE__ */ r.jsx(A, { data: sM, label: "Display Format", value: t.inputFormat, onChange: t.setInputFormat }),
28610
28657
  /* @__PURE__ */ r.jsx(
@@ -28616,7 +28663,7 @@ const tM = k(() => {
28616
28663
  onChange: t.setDefaultValue
28617
28664
  }
28618
28665
  ),
28619
- /* @__PURE__ */ r.jsx(U, { label: "Max Days", min: 0, value: t.max_days, onChange: t.setMaxDays, hideControls: !0, sx: {
28666
+ /* @__PURE__ */ r.jsx(K, { label: "Max Days", min: 0, value: t.max_days, onChange: t.setMaxDays, hideControls: !0, sx: {
28620
28667
  width: "149px"
28621
28668
  } })
28622
28669
  ] });
@@ -28660,7 +28707,7 @@ const tM = k(() => {
28660
28707
  });
28661
28708
  }, s = t.static_options, i = [...s];
28662
28709
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28663
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28710
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28664
28711
  /* @__PURE__ */ r.jsx(I, { label: "Width", description: "At least 160px", value: t.min_width, onChange: (a) => t.setMinWidth(a.currentTarget.value), placeholder: "default: 200px" }),
28665
28712
  /* @__PURE__ */ r.jsx(D, { label: "Configure options", labelPosition: "center" }),
28666
28713
  /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
@@ -28684,7 +28731,7 @@ const tM = k(() => {
28684
28731
  }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: "Using query" }) })
28685
28732
  ] }),
28686
28733
  s.length > 0 && /* @__PURE__ */ r.jsx(nr, { label: "Default Selection", data: i, value: [...t.default_value], onChange: t.setDefaultValue }),
28687
- s.map((a, o) => /* @__PURE__ */ r.jsxs(Ut, { gap: 10, sx: {
28734
+ s.map((a, o) => /* @__PURE__ */ r.jsxs(Kt, { gap: 10, sx: {
28688
28735
  position: "relative"
28689
28736
  }, pr: "40px", children: [
28690
28737
  /* @__PURE__ */ r.jsx(I, { label: "Label", required: !0, value: t.static_options[o].label, onChange: (l) => {
@@ -28708,7 +28755,7 @@ const tM = k(() => {
28708
28755
  }, mx: "auto", children: "Add an Option" })
28709
28756
  ] }),
28710
28757
  /* @__PURE__ */ r.jsx(D, { label: "Or fetch options from database", labelPosition: "center" }),
28711
- /* @__PURE__ */ r.jsx(U, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
28758
+ /* @__PURE__ */ r.jsx(K, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
28712
28759
  /* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
28713
28760
  /* @__PURE__ */ r.jsx(mu, {})
28714
28761
  ] });
@@ -28725,7 +28772,7 @@ const tM = k(() => {
28725
28772
  value: ""
28726
28773
  }, ...s];
28727
28774
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28728
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28775
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28729
28776
  /* @__PURE__ */ r.jsx(I, { label: "Width", value: t.width, onChange: (a) => t.setWidth(a.currentTarget.value), placeholder: "200px" }),
28730
28777
  /* @__PURE__ */ r.jsx(D, { label: "Configure options", labelPosition: "center" }),
28731
28778
  /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
@@ -28749,7 +28796,7 @@ const tM = k(() => {
28749
28796
  }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: "Using query" }) })
28750
28797
  ] }),
28751
28798
  s.length > 0 && /* @__PURE__ */ r.jsx(A, { label: "Default Selection", data: i, value: t.default_value, onChange: t.setDefaultValue }),
28752
- s.map((a, o) => /* @__PURE__ */ r.jsxs(Ut, { gap: 10, sx: {
28799
+ s.map((a, o) => /* @__PURE__ */ r.jsxs(Kt, { gap: 10, sx: {
28753
28800
  position: "relative"
28754
28801
  }, pr: "40px", children: [
28755
28802
  /* @__PURE__ */ r.jsx(I, { label: "Label", required: !0, value: t.static_options[o].label, onChange: (l) => {
@@ -28773,7 +28820,7 @@ const tM = k(() => {
28773
28820
  }, mx: "auto", children: "Add an Option" })
28774
28821
  ] }),
28775
28822
  /* @__PURE__ */ r.jsx(D, { label: "Or fetch options from database", labelPosition: "center" }),
28776
- /* @__PURE__ */ r.jsx(K, { checked: t.default_selection_count === 1, onChange: (a) => t.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
28823
+ /* @__PURE__ */ r.jsx(U, { checked: t.default_selection_count === 1, onChange: (a) => t.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
28777
28824
  /* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
28778
28825
  /* @__PURE__ */ r.jsx(mu, {})
28779
28826
  ] });
@@ -28784,7 +28831,7 @@ const tM = k(() => {
28784
28831
  /* @__PURE__ */ r.jsx(I, { label: "Default Value", value: t.default_value, onChange: (n) => {
28785
28832
  t.setDefaultValue(n.currentTarget.value);
28786
28833
  } }),
28787
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
28834
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
28788
28835
  ] });
28789
28836
  }), dM = `
28790
28837
  // row
@@ -28804,11 +28851,11 @@ const tM = k(() => {
28804
28851
  config: t
28805
28852
  }) {
28806
28853
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28807
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28854
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28808
28855
  /* @__PURE__ */ r.jsx(I, { label: "Min-width", value: t.min_width, onChange: (n) => t.setMinWidth(n.currentTarget.value), placeholder: "200px" }),
28809
28856
  /* @__PURE__ */ r.jsx(D, { label: "Fetch options from database", labelPosition: "center" }),
28810
- /* @__PURE__ */ r.jsx(K, { checked: t.treeCheckStrictly, onChange: (n) => t.setTreeCheckStrictly(n.currentTarget.checked), label: "Parent and children nodes are not associated" }),
28811
- /* @__PURE__ */ r.jsx(U, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
28857
+ /* @__PURE__ */ r.jsx(U, { checked: t.treeCheckStrictly, onChange: (n) => t.setTreeCheckStrictly(n.currentTarget.checked), label: "Parent and children nodes are not associated" }),
28858
+ /* @__PURE__ */ r.jsx(K, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
28812
28859
  /* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
28813
28860
  /* @__PURE__ */ r.jsx(uM, {})
28814
28861
  ] });
@@ -28865,7 +28912,7 @@ const tM = k(() => {
28865
28912
  /* @__PURE__ */ r.jsxs(w, { children: [
28866
28913
  /* @__PURE__ */ r.jsxs(b, { noWrap: !0, children: [
28867
28914
  /* @__PURE__ */ r.jsx(
28868
- U,
28915
+ K,
28869
28916
  {
28870
28917
  label: "Placement Order",
28871
28918
  required: !0,
@@ -28877,7 +28924,7 @@ const tM = k(() => {
28877
28924
  }
28878
28925
  }
28879
28926
  ),
28880
- t.auto_submit_supported && /* @__PURE__ */ r.jsx(K, { label: "Submit automatically", checked: t.auto_submit, onChange: (i) => t.setAutoSubmit(i.currentTarget.checked), mt: 22 })
28927
+ t.auto_submit_supported && /* @__PURE__ */ r.jsx(U, { label: "Submit automatically", checked: t.auto_submit, onChange: (i) => t.setAutoSubmit(i.currentTarget.checked), mt: 22 })
28881
28928
  ] }),
28882
28929
  /* @__PURE__ */ r.jsx(nr, { label: "Visible in...", data: n.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
28883
28930
  /* @__PURE__ */ r.jsx(I, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (i) => {
@@ -28954,7 +29001,7 @@ const tM = k(() => {
28954
29001
  userSelect: "none",
28955
29002
  cursor: "default"
28956
29003
  }, children: "Manage Filters" }) }),
28957
- /* @__PURE__ */ r.jsx(Ut, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
29004
+ /* @__PURE__ */ r.jsx(Kt, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
28958
29005
  /* @__PURE__ */ r.jsxs(C.Group, { children: [
28959
29006
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: o, children: "Select All" }),
28960
29007
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: l, children: "Clear Selection" })
@@ -28974,7 +29021,7 @@ const tM = k(() => {
28974
29021
  /* @__PURE__ */ r.jsx(z, { sx: {
28975
29022
  flexGrow: 1,
28976
29023
  overflow: "auto"
28977
- }, children: /* @__PURE__ */ r.jsx(K.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ke, { fontSize: "sm", highlightOnHover: !0, sx: {
29024
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
28978
29025
  tableLayout: "fixed"
28979
29026
  }, children: [
28980
29027
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -28994,7 +29041,7 @@ const tM = k(() => {
28994
29041
  }, children: "Action" })
28995
29042
  ] }) }),
28996
29043
  /* @__PURE__ */ r.jsx("tbody", { children: n.content.filters.sortedList.map((c) => /* @__PURE__ */ r.jsxs("tr", { children: [
28997
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: c.id, styles: {
29044
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: c.id, styles: {
28998
29045
  input: {
28999
29046
  cursor: "pointer"
29000
29047
  }
@@ -29076,14 +29123,14 @@ const tM = k(() => {
29076
29123
  /* @__PURE__ */ r.jsx(D, { mb: -10, label: "Style", labelPosition: "center", variant: "dashed" }),
29077
29124
  /* @__PURE__ */ r.jsxs(w, { spacing: 20, children: [
29078
29125
  /* @__PURE__ */ r.jsxs(b, { grow: !0, align: "top", children: [
29079
- /* @__PURE__ */ r.jsx(U, { label: "Width", min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "of 36 columns" }), styles: {
29126
+ /* @__PURE__ */ r.jsx(K, { label: "Width", min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "of 36 columns" }), styles: {
29080
29127
  rightSection: {
29081
29128
  width: "110px"
29082
29129
  }
29083
29130
  }, value: e.layout.w, onChange: (n) => {
29084
29131
  n && e.layout.setWidth(n);
29085
29132
  } }),
29086
- /* @__PURE__ */ r.jsx(U, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
29133
+ /* @__PURE__ */ r.jsx(K, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
29087
29134
  rightSection: {
29088
29135
  width: "40px"
29089
29136
  }
@@ -29091,7 +29138,7 @@ const tM = k(() => {
29091
29138
  n && e.layout.setHeight(n);
29092
29139
  } })
29093
29140
  ] }),
29094
- /* @__PURE__ */ r.jsx(K, { ml: 6, label: "Border", checked: t.border.enabled, onChange: (n) => t.border.setEnabled(n.currentTarget.checked) })
29141
+ /* @__PURE__ */ r.jsx(U, { ml: 6, label: "Border", checked: t.border.enabled, onChange: (n) => t.border.setEnabled(n.currentTarget.checked) })
29095
29142
  ] })
29096
29143
  ] });
29097
29144
  }), wM = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
@@ -29124,10 +29171,10 @@ const tM = k(() => {
29124
29171
  panel: e
29125
29172
  } = It();
29126
29173
  return /* @__PURE__ */ r.jsx(w, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(b, { pl: 6, position: "left", spacing: 20, children: [
29127
- /* @__PURE__ */ r.jsx(K, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
29174
+ /* @__PURE__ */ r.jsx(U, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
29128
29175
  userSelect: "none"
29129
29176
  } }),
29130
- /* @__PURE__ */ r.jsx(K, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
29177
+ /* @__PURE__ */ r.jsx(U, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
29131
29178
  ] }) });
29132
29179
  });
29133
29180
  function CM() {
@@ -29195,7 +29242,7 @@ function fu({
29195
29242
  });
29196
29243
  return e.length === 0 ? /* @__PURE__ */ r.jsx(z, { sx: {
29197
29244
  height: "5em"
29198
- } }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Ke, { sx: kM, children: [
29245
+ } }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Ue, { sx: kM, children: [
29199
29246
  /* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.headers.map((i) => /* @__PURE__ */ r.jsxs("th", { style: {
29200
29247
  width: i.getSize()
29201
29248
  }, children: [
@@ -29288,7 +29335,7 @@ const TM = [{
29288
29335
  }, MM = ({
29289
29336
  queryID: e
29290
29337
  }) => {
29291
- const t = Fe(), {
29338
+ const t = Oe(), {
29292
29339
  state: n,
29293
29340
  error: s
29294
29341
  } = t.getDataStuffByID(e), i = L.useMemo(() => t.queries.findByID(e), [t, e]);
@@ -29300,7 +29347,7 @@ const TM = [{
29300
29347
  moreActions: t,
29301
29348
  refreshOnMount: n
29302
29349
  }) => {
29303
- const s = Fe(), {
29350
+ const s = Oe(), {
29304
29351
  data: i,
29305
29352
  state: a
29306
29353
  } = s.getDataStuffByID(e), o = a === "loading", l = qe(() => {
@@ -29343,7 +29390,7 @@ const TM = [{
29343
29390
  t.editor.setPath(["_QUERIES_", l]);
29344
29391
  };
29345
29392
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29346
- /* @__PURE__ */ r.jsx(oh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(K.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(w, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(K, { label: l.label, value: l.value }, l.value)) }) }) }),
29393
+ /* @__PURE__ */ r.jsx(oh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(U.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(w, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(U, { label: l.label, value: l.value }, l.value)) }) }) }),
29347
29394
  /* @__PURE__ */ r.jsxs(w, { spacing: 6, children: [
29348
29395
  /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(C, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(sp, { size: 16 }), onClick: () => a(!0), children: "Click me to choose queries for this panel" }) }),
29349
29396
  s.queryIDs.length === 1 && /* @__PURE__ */ r.jsx(xi, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(fe, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(ei, { size: 16 }) }) }) }),
@@ -29387,7 +29434,7 @@ const TM = [{
29387
29434
  }
29388
29435
  }, children: /* @__PURE__ */ r.jsx(nu, { panel: e }) })
29389
29436
  ] }) }) });
29390
- }), Ks = {
29437
+ }), Us = {
29391
29438
  name: "new_var",
29392
29439
  size: "1rem",
29393
29440
  weight: "initial",
@@ -29428,10 +29475,10 @@ class RM {
29428
29475
  }));
29429
29476
  }
29430
29477
  addNew() {
29431
- const t = this.panel.variables.filter((n) => n.name.startsWith(Ks.name)).length;
29478
+ const t = this.panel.variables.filter((n) => n.name.startsWith(Us.name)).length;
29432
29479
  this.panel.addVariable(Pe({
29433
- ...Ks,
29434
- name: `${Ks.name}${t || ""}`
29480
+ ...Us,
29481
+ name: `${Us.name}${t || ""}`
29435
29482
  })), this.selected = ll(this.panel.variables);
29436
29483
  }
29437
29484
  select(t) {
@@ -29567,7 +29614,7 @@ const PM = L.forwardRef($M), VM = L.forwardRef(function({
29567
29614
  label: "Continuous Color",
29568
29615
  value: "continuous"
29569
29616
  }], value: t.color.type, onChange: o }),
29570
- i === "static" && /* @__PURE__ */ r.jsx(Ue, { value: t.color.staticColor, onChange: (l) => a("color.staticColor", l) }),
29617
+ i === "static" && /* @__PURE__ */ r.jsx(Ke, { value: t.color.staticColor, onChange: (l) => a("color.staticColor", l) }),
29571
29618
  i === "continuous" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29572
29619
  /* @__PURE__ */ r.jsx(PM, { label: "Value Range", value: t.color.valueRange, type: "number", onChange: (l) => a("color.valueRange", l) }),
29573
29620
  /* @__PURE__ */ r.jsx(OM, { label: "Color Range", value: t.color.colorRange, onChange: (l) => a("color.colorRange", l) })
@@ -29605,7 +29652,7 @@ const PM = L.forwardRef($M), VM = L.forwardRef(function({
29605
29652
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(tn, { size: 16 }), color: "red", variant: "light", onClick: i, children: "Delete this Variable" })
29606
29653
  ] });
29607
29654
  }), BM = k((e) => {
29608
- const t = _t(() => KI(e.variable), [e.variable]), n = () => e.uiModel.remove(e.variable);
29655
+ const t = _t(() => UI(e.variable), [e.variable]), n = () => e.uiModel.remove(e.variable);
29609
29656
  return /* @__PURE__ */ r.jsxs(w, { "data-testid": "variable-editor", align: "stretch", children: [
29610
29657
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
29611
29658
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", disabled: !t.changed, color: "red", onClick: t.reset, leftIcon: /* @__PURE__ */ r.jsx(is, { size: 18 }), children: "Revert Changes" }),
@@ -29680,14 +29727,14 @@ const HM = k(({
29680
29727
  const i = QM(), a = e !== n;
29681
29728
  return /* @__PURE__ */ r.jsx(A, { label: "Visualization", value: n, searchable: !0, onChange: s, data: i, rightSection: /* @__PURE__ */ r.jsx(W, { disabled: !a, onClick: () => t(n), children: /* @__PURE__ */ r.jsx(he, { size: 20 }) }), maxDropdownHeight: 600 });
29682
29729
  }), Ho = [];
29683
- function UM(e, t) {
29730
+ function KM(e, t) {
29684
29731
  try {
29685
29732
  return e.resolveComponent(t).createConfig();
29686
29733
  } catch {
29687
29734
  return null;
29688
29735
  }
29689
29736
  }
29690
- function KM() {
29737
+ function UM() {
29691
29738
  const {
29692
29739
  data: e,
29693
29740
  panel: {
@@ -29726,7 +29773,7 @@ const YM = k(() => {
29726
29773
  } = Ht(Ot), s = L.useCallback((d) => {
29727
29774
  if (d === t.type)
29728
29775
  return;
29729
- const u = UM(n, d);
29776
+ const u = KM(n, d);
29730
29777
  t.setType(d), t.setConf(u || {});
29731
29778
  }, [t.type]), i = (d) => {
29732
29779
  try {
@@ -29737,7 +29784,7 @@ const YM = k(() => {
29737
29784
  }, a = L.useMemo(() => {
29738
29785
  var d;
29739
29786
  return (d = Ho.find((u) => u.value === t.type)) == null ? void 0 : d.Panel;
29740
- }, [t.type, Ho]), o = KM(), l = a ? Jr(a, {
29787
+ }, [t.type, Ho]), o = UM(), l = a ? Jr(a, {
29741
29788
  data: e,
29742
29789
  conf: t.conf,
29743
29790
  setConf: t.setConf
@@ -29941,7 +29988,7 @@ const eL = k(({
29941
29988
  userSelect: "none",
29942
29989
  cursor: "default"
29943
29990
  }, children: "Manage Queries" }) }),
29944
- /* @__PURE__ */ r.jsxs(Ut, { justify: "space-between", align: "center", px: 12, children: [
29991
+ /* @__PURE__ */ r.jsxs(Kt, { justify: "space-between", align: "center", px: 12, children: [
29945
29992
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
29946
29993
  /* @__PURE__ */ r.jsxs(C.Group, { children: [
29947
29994
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: c, children: "Select All" }),
@@ -29964,7 +30011,7 @@ const eL = k(({
29964
30011
  /* @__PURE__ */ r.jsx(z, { sx: {
29965
30012
  flexGrow: 1,
29966
30013
  overflow: "auto"
29967
- }, children: /* @__PURE__ */ r.jsx(K.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ke, { fontSize: "sm", highlightOnHover: !0, sx: {
30014
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
29968
30015
  tableLayout: "fixed"
29969
30016
  }, children: [
29970
30017
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -29992,7 +30039,7 @@ const eL = k(({
29992
30039
  var x;
29993
30040
  const p = ((x = u[h.id]) == null ? void 0 : x.length) ?? 0;
29994
30041
  return /* @__PURE__ */ r.jsxs("tr", { children: [
29995
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: h.id, styles: {
30042
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: h.id, styles: {
29996
30043
  input: {
29997
30044
  cursor: "pointer"
29998
30045
  }
@@ -30067,7 +30114,7 @@ const eL = k(({
30067
30114
  const {
30068
30115
  columns: t
30069
30116
  } = e;
30070
- return t.loading ? /* @__PURE__ */ r.jsx(gu, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, fontSize: 14, sx: {
30117
+ return t.loading ? /* @__PURE__ */ r.jsx(gu, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
30071
30118
  width: "auto",
30072
30119
  minWidth: "1000px",
30073
30120
  alignSelf: "flex-start",
@@ -30127,7 +30174,7 @@ const eL = k(({
30127
30174
  const {
30128
30175
  indexes: t
30129
30176
  } = e, n = t.data;
30130
- return /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, fontSize: 14, sx: {
30177
+ return /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
30131
30178
  width: "auto",
30132
30179
  minWidth: "950px",
30133
30180
  alignSelf: "flex-start",
@@ -30175,7 +30222,7 @@ const eL = k(({
30175
30222
  const {
30176
30223
  indexes: t
30177
30224
  } = e, n = t.data;
30178
- return /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, fontSize: 14, sx: {
30225
+ return /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
30179
30226
  width: "auto",
30180
30227
  minWidth: "850px",
30181
30228
  alignSelf: "flex-start",
@@ -30356,7 +30403,7 @@ const hL = k(({
30356
30403
  e.loadTablesIfEmpty();
30357
30404
  }, [e]), e.tables.error ? /* @__PURE__ */ r.jsx(j, { color: "red", size: "md", align: "center", sx: {
30358
30405
  fontFamily: "monospace"
30359
- }, children: e.tables.error }) : /* @__PURE__ */ r.jsxs(Ut, { sx: {
30406
+ }, children: e.tables.error }) : /* @__PURE__ */ r.jsxs(Kt, { sx: {
30360
30407
  height: "100%"
30361
30408
  }, children: [
30362
30409
  /* @__PURE__ */ r.jsx(z, { w: 300, sx: {
@@ -30471,7 +30518,7 @@ const hL = k(({
30471
30518
  }
30472
30519
  }
30473
30520
  }, disabled: i, value: e.key, onChange: l });
30474
- }), Uo = de((e, t) => {
30521
+ }), Ko = de((e, t) => {
30475
30522
  const {
30476
30523
  label: n,
30477
30524
  description: s,
@@ -30510,8 +30557,8 @@ const hL = k(({
30510
30557
  e.setKey(i), e.setType(s);
30511
30558
  } }),
30512
30559
  /* @__PURE__ */ r.jsx(D, { mt: 10, mb: -10, variant: "dashed", label: "Conditions", labelPosition: "center" }),
30513
- /* @__PURE__ */ r.jsx(nr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: Uo, maxDropdownHeight: 500 }),
30514
- e.typedAsHTTP && /* @__PURE__ */ r.jsx(nr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: Uo, maxDropdownHeight: 500 }),
30560
+ /* @__PURE__ */ r.jsx(nr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy, itemComponent: Ko, maxDropdownHeight: 500 }),
30561
+ e.typedAsHTTP && /* @__PURE__ */ r.jsx(nr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: e.conditionOptions, value: [...e.react_to], onChange: e.setReactTo, itemComponent: Ko, maxDropdownHeight: 500 }),
30515
30562
  /* @__PURE__ */ r.jsx(D, { mt: 20, mb: 10, variant: "dashed" }),
30516
30563
  /* @__PURE__ */ r.jsx(sL, { queryModel: e })
30517
30564
  ] }) });
@@ -30519,14 +30566,14 @@ const hL = k(({
30519
30566
  function SL({
30520
30567
  content: e
30521
30568
  }) {
30522
- return /* @__PURE__ */ r.jsxs(Oe, { width: "60vw", shadow: "md", children: [
30523
- /* @__PURE__ */ r.jsx(Oe.Target, { children: /* @__PURE__ */ r.jsx(W, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(wl, {}) }) }),
30524
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
30569
+ return /* @__PURE__ */ r.jsxs(Te, { width: "60vw", shadow: "md", children: [
30570
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(W, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(wl, {}) }) }),
30571
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
30525
30572
  ] });
30526
30573
  }
30527
30574
  const CL = k(() => {
30528
30575
  const t = [...le().globalSQLSnippets.list];
30529
- return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ke, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
30576
+ return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ue, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
30530
30577
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
30531
30578
  /* @__PURE__ */ r.jsx("th", { children: "Key" }),
30532
30579
  /* @__PURE__ */ r.jsx("th", { children: "Value" })
@@ -30599,7 +30646,7 @@ WHERE
30599
30646
  }
30600
30647
  }, children: "See Query Variables" })
30601
30648
  ] });
30602
- }), Ko = {
30649
+ }), Uo = {
30603
30650
  pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
30604
30651
  `),
30605
30652
  post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
@@ -30616,8 +30663,8 @@ WHERE
30616
30663
  ] }),
30617
30664
  /* @__PURE__ */ r.jsx(m.Panel, { value: "pre_process", sx: {
30618
30665
  position: "relative"
30619
- }, p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Ko.pre }) }),
30620
- /* @__PURE__ */ r.jsx(m.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Ko.post }) })
30666
+ }, p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Uo.pre }) }),
30667
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.post_process, onChange: e.setPostProcess, defaultValue: Uo.post }) })
30621
30668
  ] }) : null), IL = k(({
30622
30669
  queryID: e,
30623
30670
  usage: t
@@ -30635,7 +30682,7 @@ WHERE
30635
30682
  }, i = (a) => {
30636
30683
  n.setPath(["_VIEWS_", a]);
30637
30684
  };
30638
- return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, sx: {
30685
+ return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, sx: {
30639
30686
  tableLayout: "fixed"
30640
30687
  }, children: [
30641
30688
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -30682,9 +30729,9 @@ WHERE
30682
30729
  queryModel: e
30683
30730
  }) => {
30684
30731
  const t = T(() => _.groupBy(e.dependencies, "type"), [e.dependencies]), n = T(() => e.dependencies.some((i) => !i.valid), [e.dependencies]), s = e.dependencies.length > 0;
30685
- return s ? /* @__PURE__ */ r.jsxs(Oe, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
30686
- /* @__PURE__ */ r.jsx(Oe.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: n ? "red" : "green", disabled: !s, leftIcon: n ? /* @__PURE__ */ r.jsx(Si, { size: 16 }) : /* @__PURE__ */ r.jsx(cp, { size: 16 }), children: "Dependency" }) }),
30687
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsx(Mt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(t).map(([i, a]) => /* @__PURE__ */ r.jsxs(Mt.Item, { children: [
30732
+ return s ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
30733
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: n ? "red" : "green", disabled: !s, leftIcon: n ? /* @__PURE__ */ r.jsx(Si, { size: 16 }) : /* @__PURE__ */ r.jsx(cp, { size: 16 }), children: "Dependency" }) }),
30734
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Mt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(t).map(([i, a]) => /* @__PURE__ */ r.jsxs(Mt.Item, { children: [
30688
30735
  /* @__PURE__ */ r.jsx(j, { fw: "bold", ff: "monospace", children: i }),
30689
30736
  /* @__PURE__ */ r.jsx(Mt, { withPadding: !0, size: 14, sx: {
30690
30737
  fontFamily: "monospace",
@@ -30748,7 +30795,7 @@ WHERE
30748
30795
  } }), AL = k(({
30749
30796
  value: e
30750
30797
  }) => {
30751
- const n = Fe().payloadForSQL, s = L.useMemo(() => Ii(e, n), [e, n]);
30798
+ const n = Oe().payloadForSQL, s = L.useMemo(() => Ii(e, n), [e, n]);
30752
30799
  return /* @__PURE__ */ r.jsx(LL, { height: "100%", value: s });
30753
30800
  }), Yo = {
30754
30801
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -30828,7 +30875,7 @@ WHERE
30828
30875
  }), OL = k(({
30829
30876
  value: e
30830
30877
  }) => {
30831
- const n = Fe().payloadForSQL, s = T(() => Ii(e, n), [e, n]);
30878
+ const n = Oe().payloadForSQL, s = T(() => Ii(e, n), [e, n]);
30832
30879
  return /* @__PURE__ */ r.jsx(ka, { height: "100%", value: s });
30833
30880
  }), $L = k(({
30834
30881
  item: e,
@@ -30959,7 +31006,7 @@ WHERE
30959
31006
  userSelect: "none",
30960
31007
  cursor: "default"
30961
31008
  }, children: "Manage SQL Snippets" }) }),
30962
- /* @__PURE__ */ r.jsxs(Ut, { justify: "space-between", align: "center", px: 12, children: [
31009
+ /* @__PURE__ */ r.jsxs(Kt, { justify: "space-between", align: "center", px: 12, children: [
30963
31010
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
30964
31011
  /* @__PURE__ */ r.jsxs(C.Group, { children: [
30965
31012
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: c, children: "Select All" }),
@@ -30982,7 +31029,7 @@ WHERE
30982
31029
  /* @__PURE__ */ r.jsx(z, { sx: {
30983
31030
  flexGrow: 1,
30984
31031
  overflow: "auto"
30985
- }, children: /* @__PURE__ */ r.jsx(K.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ke, { fontSize: "sm", highlightOnHover: !0, sx: {
31032
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
30986
31033
  tableLayout: "fixed"
30987
31034
  }, children: [
30988
31035
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31003,7 +31050,7 @@ WHERE
31003
31050
  var x;
31004
31051
  const p = ((x = u[h.key]) == null ? void 0 : x.length) ?? 0;
31005
31052
  return /* @__PURE__ */ r.jsxs("tr", { children: [
31006
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: h.key, styles: {
31053
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: h.key, styles: {
31007
31054
  input: {
31008
31055
  cursor: "pointer"
31009
31056
  }
@@ -31078,10 +31125,10 @@ function QL(e) {
31078
31125
  function HL(e) {
31079
31126
  return e.length === 2 && e[0] === "_SQL_SNIPPETS_";
31080
31127
  }
31081
- function UL(e) {
31128
+ function KL(e) {
31082
31129
  return e.length === 2 && e[0] === "_QUERIES_";
31083
31130
  }
31084
- function KL(e) {
31131
+ function UL(e) {
31085
31132
  return e.length === 1 && e[0] === "_QUERIES_";
31086
31133
  }
31087
31134
  function YL(e) {
@@ -31094,7 +31141,7 @@ const JL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31094
31141
  height: "100%"
31095
31142
  }, p: "sm", children: /* @__PURE__ */ r.jsx(yu, {}) })), ZL = k(() => {
31096
31143
  const e = le().editor, t = e.path;
31097
- return BL(t) ? /* @__PURE__ */ r.jsx(JL, {}) : qL(t) ? /* @__PURE__ */ r.jsx(yM, {}) : WL(t) ? /* @__PURE__ */ r.jsx(bM, {}) : GL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(gM, { id: t[1] }) }) : QL(t) ? /* @__PURE__ */ r.jsx(VL, {}) : HL(t) ? /* @__PURE__ */ r.jsx(PL, { id: t[1] }) : KL(t) ? /* @__PURE__ */ r.jsx(nL, {}) : UL(t) ? /* @__PURE__ */ r.jsx(FL, { id: t[1] }) : YL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(NL, { id: t[1] }) }) : XL(t) ? /* @__PURE__ */ r.jsx(tL, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(z, { children: e.path });
31144
+ return BL(t) ? /* @__PURE__ */ r.jsx(JL, {}) : qL(t) ? /* @__PURE__ */ r.jsx(yM, {}) : WL(t) ? /* @__PURE__ */ r.jsx(bM, {}) : GL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(gM, { id: t[1] }) }) : QL(t) ? /* @__PURE__ */ r.jsx(VL, {}) : HL(t) ? /* @__PURE__ */ r.jsx(PL, { id: t[1] }) : UL(t) ? /* @__PURE__ */ r.jsx(nL, {}) : KL(t) ? /* @__PURE__ */ r.jsx(FL, { id: t[1] }) : YL(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(NL, { id: t[1] }) }) : XL(t) ? /* @__PURE__ */ r.jsx(tL, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(z, { children: e.path });
31098
31145
  }), eA = k(() => /* @__PURE__ */ r.jsx(ZL, {})), tA = k(() => {
31099
31146
  const e = le(), t = () => {
31100
31147
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
@@ -31102,7 +31149,7 @@ const JL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31102
31149
  key: n,
31103
31150
  label: n,
31104
31151
  order: e.content.filters.current.length + 1,
31105
- type: Le.TextInput,
31152
+ type: Ae.TextInput,
31106
31153
  config: Ld(),
31107
31154
  visibleInViewsIDs: ["Main"],
31108
31155
  auto_submit: !1
@@ -31341,7 +31388,7 @@ const fA = {
31341
31388
  h.datasources.replace(d);
31342
31389
  }, [d]), L.useEffect(() => {
31343
31390
  h.globalSQLSnippets.replace(u);
31344
- }, [u]), L.useEffect(() => it(() => Kt(h.json), (S) => {
31391
+ }, [u]), L.useEffect(() => it(() => Ut(h.json), (S) => {
31345
31392
  o == null || o(S);
31346
31393
  }), [h]);
31347
31394
  const p = async () => {
@@ -31367,7 +31414,7 @@ const vu = f.model({
31367
31414
  version: f.string,
31368
31415
  // schema version
31369
31416
  filters: Hd,
31370
- queries: Kd,
31417
+ queries: Ud,
31371
31418
  sqlSnippets: Yd,
31372
31419
  views: Bd,
31373
31420
  panels: Gd,
@@ -31487,7 +31534,7 @@ function bA({
31487
31534
  create_time: s,
31488
31535
  update_time: i,
31489
31536
  version: o,
31490
- filters: Ud(l),
31537
+ filters: Kd(l),
31491
31538
  queries: GI(u),
31492
31539
  sqlSnippets: HI(h),
31493
31540
  mock_context: Cd(p),
@@ -31564,8 +31611,8 @@ const mR = k(({
31564
31611
  E.extend(Gp);
31565
31612
  E.extend(Qp);
31566
31613
  E.extend(Hp);
31567
- E.extend(Up);
31568
31614
  E.extend(Kp);
31615
+ E.extend(Up);
31569
31616
  E.extend(Yp);
31570
31617
  E.extend(Xp);
31571
31618
  E.extend(Jp);
@@ -31608,7 +31655,7 @@ export {
31608
31655
  Px as DashboardApiClient,
31609
31656
  Vx as DashboardApiFacadeClient,
31610
31657
  xR as DashboardEditor,
31611
- Le as DashboardFilterType,
31658
+ Ae as DashboardFilterType,
31612
31659
  RD as DashboardMode,
31613
31660
  ez as DashboardModel,
31614
31661
  Zl as DashboardModelContextProvider,
@@ -31625,10 +31672,10 @@ export {
31625
31672
  cD as Panel,
31626
31673
  lc as PanelContextProvider,
31627
31674
  iD as PanelErrorOrStateMessage,
31628
- UD as PanelModel,
31675
+ KD as PanelModel,
31629
31676
  su as PanelRender,
31630
31677
  nu as PanelVizSection,
31631
- KD as PanelsModel,
31678
+ UD as PanelsModel,
31632
31679
  $D as QueriesModel,
31633
31680
  mR as ReadOnlyDashboard,
31634
31681
  PD as SQLSnippetsModel,
@@ -31652,7 +31699,7 @@ export {
31652
31699
  It as useEditPanelContext,
31653
31700
  hm as useFullScreenPanelContext,
31654
31701
  mD as usePanelFullScreen,
31655
- Fe as useRenderContentModelContext,
31702
+ Oe as useRenderContentModelContext,
31656
31703
  tc as useRenderDashboardContext,
31657
31704
  kn as useRenderPanelContext
31658
31705
  };