@devtable/dashboard 10.55.1 → 10.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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.0", 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,
@@ -1661,6 +1661,23 @@ const G = k(de(({
1661
1661
  group: ""
1662
1662
  }), u;
1663
1663
  }, [c.dataFieldOptions]);
1664
+ if (d.length === 0) {
1665
+ const u = c.explainDataKey(n);
1666
+ return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
1667
+ /* @__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 }) }) }),
1668
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(b, { position: "left", spacing: 0, children: [
1669
+ /* @__PURE__ */ r.jsx(j, { size: "xs", color: u.queryName ? "black" : "red", sx: {
1670
+ fontFamily: "monospace"
1671
+ }, children: u.queryName ?? u.queryID }),
1672
+ /* @__PURE__ */ r.jsx(j, { size: "xs", color: "black", sx: {
1673
+ fontFamily: "monospace"
1674
+ }, children: "." }),
1675
+ /* @__PURE__ */ r.jsx(j, { size: "xs", color: "red", sx: {
1676
+ fontFamily: "monospace"
1677
+ }, children: u.columnKey })
1678
+ ] }) })
1679
+ ] });
1680
+ }
1664
1681
  return /* @__PURE__ */ r.jsx(A, { ref: l, label: e, data: d, value: n, onChange: s, required: t, sx: a, maxDropdownHeight: 500, ...o });
1665
1682
  }));
1666
1683
  function pm({
@@ -1878,7 +1895,7 @@ function gm({
1878
1895
  }, styles: co })
1879
1896
  ] }),
1880
1897
  /* @__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 }),
1898
+ /* @__PURE__ */ r.jsx(K, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
1882
1899
  /* @__PURE__ */ r.jsx(Be, { label: /* @__PURE__ */ r.jsxs(w, { spacing: 0, children: [
1883
1900
  /* @__PURE__ */ r.jsx(j, { children: "Trim mantissa" }),
1884
1901
  /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "hide trailing zero(s)" })
@@ -1974,7 +1991,7 @@ const jm = [{
1974
1991
  color: "dimmed"
1975
1992
  } }),
1976
1993
  /* @__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") }),
1994
+ /* @__PURE__ */ r.jsx(K, { label: "Max Width", hideControls: !0, value: t.width, onChange: i("width") }),
1978
1995
  /* @__PURE__ */ r.jsx(A, { label: "Overflow", data: jm, value: t.overflow, onChange: i("overflow") }),
1979
1996
  /* @__PURE__ */ r.jsx(
1980
1997
  I,
@@ -2328,7 +2345,7 @@ const Lm = {
2328
2345
  }
2329
2346
  });
2330
2347
  };
2331
- return /* @__PURE__ */ r.jsxs(Ke, { sx: Am, children: [
2348
+ return /* @__PURE__ */ r.jsxs(Ue, { sx: Am, children: [
2332
2349
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
2333
2350
  /* @__PURE__ */ r.jsx("th", { children: "Set filter" }),
2334
2351
  /* @__PURE__ */ r.jsx("th", { children: "with" })
@@ -2487,7 +2504,7 @@ class Wm {
2487
2504
  const s = cl(n).map((i) => ({
2488
2505
  id: te(i, "id"),
2489
2506
  schemaRef: te(i, "schemaRef"),
2490
- config: Kt(te(i, "data.config"))
2507
+ config: Ut(te(i, "data.config"))
2491
2508
  }));
2492
2509
  t(s);
2493
2510
  }, {
@@ -2612,12 +2629,12 @@ const gt = ({
2612
2629
  /* @__PURE__ */ r.jsx(w, { style: {
2613
2630
  maxHeight: "500px"
2614
2631
  }, children: n.map((a) => /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
2615
- /* @__PURE__ */ r.jsxs(Ka, { color: "teal", children: [
2632
+ /* @__PURE__ */ r.jsxs(Ua, { color: "teal", children: [
2616
2633
  "// ",
2617
2634
  a.description
2618
2635
  ] }),
2619
2636
  /* @__PURE__ */ r.jsx("br", {}),
2620
- /* @__PURE__ */ r.jsxs(Ka, { onClick: () => i(a.name), style: {
2637
+ /* @__PURE__ */ r.jsxs(Ua, { onClick: () => i(a.name), style: {
2621
2638
  cursor: "pointer"
2622
2639
  }, children: [
2623
2640
  a.name,
@@ -2658,7 +2675,7 @@ const Hm = k(({
2658
2675
  var s;
2659
2676
  const n = (s = e.operationSchema) == null ? void 0 : s.displayName;
2660
2677
  return /* @__PURE__ */ r.jsx(C, { variant: "outline", onClick: t, children: n });
2661
- }), Um = k(({
2678
+ }), Km = k(({
2662
2679
  model: e
2663
2680
  }) => {
2664
2681
  const t = {
@@ -2667,7 +2684,7 @@ const Hm = k(({
2667
2684
  variables: []
2668
2685
  };
2669
2686
  return Jr(e.operationSchema.configRender, t);
2670
- }), Km = k(({
2687
+ }), Um = k(({
2671
2688
  model: e
2672
2689
  }) => {
2673
2690
  const t = e.schemaList, n = t.map((i) => ({
@@ -2682,7 +2699,7 @@ const Hm = k(({
2682
2699
  const [t, {
2683
2700
  setTrue: n,
2684
2701
  setFalse: s
2685
- }] = Ee(!1), {
2702
+ }] = Fe(!1), {
2686
2703
  operationManager: i,
2687
2704
  operationId: a,
2688
2705
  instance: o,
@@ -2693,13 +2710,13 @@ const Hm = k(({
2693
2710
  }, [a, c]), Qm(c) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2694
2711
  /* @__PURE__ */ r.jsx(Hm, { model: c, onClick: n }),
2695
2712
  /* @__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 }),
2713
+ /* @__PURE__ */ r.jsx(Um, { model: c }),
2697
2714
  /* @__PURE__ */ r.jsxs(m, { defaultValue: "settings", children: [
2698
2715
  /* @__PURE__ */ r.jsxs(m.List, { children: [
2699
2716
  /* @__PURE__ */ r.jsx(m.Tab, { value: "settings", children: "Settings" }),
2700
2717
  /* @__PURE__ */ r.jsx(m.Tab, { value: "variables", children: "Variables" })
2701
2718
  ] }),
2702
- /* @__PURE__ */ r.jsx(m.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(Um, { model: c }) }),
2719
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ r.jsx(Km, { model: c }) }),
2703
2720
  /* @__PURE__ */ r.jsx(m.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ r.jsx(hc, { title: "Variables", variables: c.variables }) })
2704
2721
  ] })
2705
2722
  ] }) })
@@ -2769,7 +2786,7 @@ const ef = k(({
2769
2786
  const [t, {
2770
2787
  setTrue: n,
2771
2788
  setFalse: s
2772
- }] = Ee(!1), i = e.model;
2789
+ }] = Fe(!1), i = e.model;
2773
2790
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2774
2791
  /* @__PURE__ */ r.jsx(me, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2775
2792
  /* @__PURE__ */ r.jsx(tf, { model: i }),
@@ -3675,8 +3692,8 @@ function Hf({
3675
3692
  )
3676
3693
  ] });
3677
3694
  }
3678
- const Ue = L.forwardRef(Hf);
3679
- function Uf({
3695
+ const Ke = L.forwardRef(Hf);
3696
+ function Kf({
3680
3697
  control: e,
3681
3698
  index: t,
3682
3699
  remove: n,
@@ -3717,7 +3734,7 @@ function Uf({
3717
3734
  }, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
3718
3735
  ] });
3719
3736
  }
3720
- function Kf({
3737
+ function Uf({
3721
3738
  control: e,
3722
3739
  watch: t,
3723
3740
  variables: n
@@ -3741,7 +3758,7 @@ function Kf({
3741
3758
  value: u.name
3742
3759
  })), [n]);
3743
3760
  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)),
3761
+ l.map((u, h) => /* @__PURE__ */ r.jsx(Kf, { control: e, index: h, remove: a, variableOptions: d }, u.id)),
3745
3762
  /* @__PURE__ */ r.jsx(b, { position: "center", mt: "xs", children: /* @__PURE__ */ r.jsx(C, { onClick: c, children: "Add a Reference Line" }) })
3746
3763
  ] });
3747
3764
  }
@@ -3771,7 +3788,7 @@ const Yf = ({
3771
3788
  const [s, {
3772
3789
  setTrue: i,
3773
3790
  setFalse: a
3774
- }] = Ee(), [o, l] = N(e);
3791
+ }] = Fe(), [o, l] = N(e);
3775
3792
  O(() => {
3776
3793
  l(e);
3777
3794
  }, [e]);
@@ -3805,7 +3822,7 @@ const Yf = ({
3805
3822
  flexGrow: 0
3806
3823
  }, children: "Customize Label" }),
3807
3824
  /* @__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) }),
3825
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3809
3826
  /* @__PURE__ */ r.jsx(Yf, { value: o.func_content, onChange: h, disabled: !o.enabled }),
3810
3827
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
3811
3828
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -3838,7 +3855,7 @@ const Yf = ({
3838
3855
  field: n
3839
3856
  }) => (
3840
3857
  // @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: {
3858
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
3842
3859
  width: "48%"
3843
3860
  }, styles: {
3844
3861
  rightSection: {
@@ -3940,7 +3957,7 @@ const Yf = ({
3940
3957
  }, children: [
3941
3958
  /* @__PURE__ */ r.jsxs(m.List, { children: [
3942
3959
  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" }) })
3960
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
3944
3961
  ] }),
3945
3962
  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
3963
  ] })
@@ -4039,9 +4056,9 @@ function sg({
4039
4056
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
4040
4057
  /* @__PURE__ */ r.jsx(g, { name: "color", control: a, render: ({
4041
4058
  field: p
4042
- }) => /* @__PURE__ */ r.jsx(Ue, { ...p }) })
4059
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...p }) })
4043
4060
  ] }) }),
4044
- /* @__PURE__ */ r.jsx(m.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(Kf, { variables: s, control: a, watch: l }) })
4061
+ /* @__PURE__ */ r.jsx(m.Panel, { value: "Reference Lines", children: /* @__PURE__ */ r.jsx(Uf, { variables: s, control: a, watch: l }) })
4045
4062
  ] })
4046
4063
  ] }) });
4047
4064
  }
@@ -4312,7 +4329,7 @@ const Pi = {
4312
4329
  const n = gt({
4313
4330
  vizManager: e.vizManager,
4314
4331
  instance: t
4315
- }), s = ft(n.triggerManager, bc.id), i = Fe(), {
4332
+ }), s = ft(n.triggerManager, bc.id), i = Oe(), {
4316
4333
  value: a
4317
4334
  } = Q(e.instanceData, "config"), o = T(() => je({}, a, Pi), [a]), {
4318
4335
  content: l,
@@ -4455,7 +4472,7 @@ function kg({
4455
4472
  }) => /* @__PURE__ */ r.jsx(wg, { label: "Size", ...p }) }),
4456
4473
  /* @__PURE__ */ r.jsx(g, { control: a, name: "compact", render: ({
4457
4474
  field: p
4458
- }) => /* @__PURE__ */ r.jsx(K, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
4475
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
4459
4476
  ] }),
4460
4477
  /* @__PURE__ */ r.jsxs(en, { cols: 2, children: [
4461
4478
  /* @__PURE__ */ r.jsx(
@@ -4939,8 +4956,8 @@ function Gg({
4939
4956
  y_axis_data_key: n
4940
4957
  });
4941
4958
  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;
4959
+ const Ie = Pe(re);
4960
+ return Ie.name = ne, Ie.color = void 0, Ie.data = Se, Ie;
4944
4961
  });
4945
4962
  }
4946
4963
  function Qg(e, t, n, s, i, a) {
@@ -4957,7 +4974,7 @@ function Hg(e, t) {
4957
4974
  } = n;
4958
4975
  return qn(t.x_axis.axisLabel.formatter)(s, i);
4959
4976
  }
4960
- function Ug(e, t, n) {
4977
+ function Kg(e, t, n) {
4961
4978
  const s = t.reduce((i, {
4962
4979
  yAxisIndex: a,
4963
4980
  name: o
@@ -4999,7 +5016,7 @@ function Ug(e, t, n) {
4999
5016
  }
5000
5017
  });
5001
5018
  }
5002
- function Kg(e) {
5019
+ function Ug(e) {
5003
5020
  return e.y_axes.reduce((n, {
5004
5021
  label_formatter: s
5005
5022
  }, i) => (n[i] = function(o) {
@@ -5116,11 +5133,11 @@ const eb = {
5116
5133
  }]
5117
5134
  };
5118
5135
  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 = {
5136
+ 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
5137
  xAxis: Yg(e, a),
5121
5138
  yAxis: Zg(e, i, o),
5122
5139
  series: [...o, ...l],
5123
- tooltip: Ug(e, o, i),
5140
+ tooltip: Kg(e, o, i),
5124
5141
  grid: Mg(e),
5125
5142
  legend: Rg(o),
5126
5143
  dataZoom: Bi(e.dataZoom)
@@ -5354,7 +5371,7 @@ function ob({
5354
5371
  }, children: [
5355
5372
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5356
5373
  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" }) })
5374
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
5358
5375
  ] }),
5359
5376
  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
5377
  ] });
@@ -5460,7 +5477,7 @@ function db({
5460
5477
  control: e,
5461
5478
  render: ({
5462
5479
  field: l
5463
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
5480
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
5464
5481
  flexGrow: 1
5465
5482
  }, ...l })
5466
5483
  }
@@ -5470,12 +5487,12 @@ function db({
5470
5487
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
5471
5488
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
5472
5489
  field: l
5473
- }) => /* @__PURE__ */ r.jsx(Ue, { ...l }) })
5490
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
5474
5491
  ] }),
5475
5492
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
5476
5493
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
5477
5494
  field: l
5478
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5495
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5479
5496
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
5480
5497
  top: 15,
5481
5498
  right: 5
@@ -5531,7 +5548,7 @@ function ub({
5531
5548
  }, children: [
5532
5549
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5533
5550
  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" }) })
5551
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
5535
5552
  ] }),
5536
5553
  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
5554
  ] });
@@ -5623,7 +5640,7 @@ function xb({
5623
5640
  control: e,
5624
5641
  render: ({
5625
5642
  field: o
5626
- }) => /* @__PURE__ */ r.jsx(U, { label: "Order", sx: {
5643
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Order", sx: {
5627
5644
  flex: 1
5628
5645
  }, ...o })
5629
5646
  }
@@ -5650,7 +5667,7 @@ function xb({
5650
5667
  control: e,
5651
5668
  render: ({
5652
5669
  field: o
5653
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
5670
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
5654
5671
  flexGrow: 1
5655
5672
  }, ...o })
5656
5673
  }
@@ -5660,7 +5677,7 @@ function xb({
5660
5677
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
5661
5678
  /* @__PURE__ */ r.jsx(g, { name: `regressions.${n}.plot.color`, control: e, render: ({
5662
5679
  field: o
5663
- }) => /* @__PURE__ */ r.jsx(Ue, { ...o }) })
5680
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...o }) })
5664
5681
  ] }),
5665
5682
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => s(n), sx: {
5666
5683
  top: 15,
@@ -5721,7 +5738,7 @@ function mb({
5721
5738
  }, children: [
5722
5739
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5723
5740
  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" }) })
5741
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
5725
5742
  ] }),
5726
5743
  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
5744
  ] });
@@ -7060,7 +7077,7 @@ class nt {
7060
7077
  return Ns[t] = n, n.prototype.jsonID = t, n;
7061
7078
  }
7062
7079
  }
7063
- class Ae {
7080
+ class Re {
7064
7081
  /**
7065
7082
  @internal
7066
7083
  */
@@ -7071,13 +7088,13 @@ class Ae {
7071
7088
  Create a successful step result.
7072
7089
  */
7073
7090
  static ok(t) {
7074
- return new Ae(t, null);
7091
+ return new Re(t, null);
7075
7092
  }
7076
7093
  /**
7077
7094
  Create a failed step result.
7078
7095
  */
7079
7096
  static fail(t) {
7080
- return new Ae(null, t);
7097
+ return new Re(null, t);
7081
7098
  }
7082
7099
  /**
7083
7100
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -7086,10 +7103,10 @@ class Ae {
7086
7103
  */
7087
7104
  static fromReplace(t, n, s, i) {
7088
7105
  try {
7089
- return Ae.ok(t.replace(n, s, i));
7106
+ return Re.ok(t.replace(n, s, i));
7090
7107
  } catch (a) {
7091
7108
  if (a instanceof fb)
7092
- return Ae.fail(a.message);
7109
+ return Re.fail(a.message);
7093
7110
  throw a;
7094
7111
  }
7095
7112
  }
@@ -7111,7 +7128,7 @@ class hn extends nt {
7111
7128
  }
7112
7129
  apply(t) {
7113
7130
  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);
7131
+ return Re.fromReplace(t, this.from, this.to, a);
7115
7132
  }
7116
7133
  invert() {
7117
7134
  return new pn(this.from, this.to, this.mark);
@@ -7150,7 +7167,7 @@ class pn extends nt {
7150
7167
  }
7151
7168
  apply(t) {
7152
7169
  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);
7170
+ return Re.fromReplace(t, this.from, this.to, s);
7154
7171
  }
7155
7172
  invert() {
7156
7173
  return new hn(this.from, this.to, this.mark);
@@ -7190,9 +7207,9 @@ class xn extends nt {
7190
7207
  apply(t) {
7191
7208
  let n = t.nodeAt(this.pos);
7192
7209
  if (!n)
7193
- return Ae.fail("No node at mark step's position");
7210
+ return Re.fail("No node at mark step's position");
7194
7211
  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));
7212
+ return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7196
7213
  }
7197
7214
  invert(t) {
7198
7215
  let n = t.nodeAt(this.pos);
@@ -7234,9 +7251,9 @@ class or extends nt {
7234
7251
  apply(t) {
7235
7252
  let n = t.nodeAt(this.pos);
7236
7253
  if (!n)
7237
- return Ae.fail("No node at mark step's position");
7254
+ return Re.fail("No node at mark step's position");
7238
7255
  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));
7256
+ return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7240
7257
  }
7241
7258
  invert(t) {
7242
7259
  let n = t.nodeAt(this.pos);
@@ -7273,7 +7290,7 @@ class zt extends nt {
7273
7290
  super(), this.from = t, this.to = n, this.slice = s, this.structure = i;
7274
7291
  }
7275
7292
  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);
7293
+ 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
7294
  }
7278
7295
  getMap() {
7279
7296
  return new ut([this.from, this.to - this.from, this.slice.size]);
@@ -7323,12 +7340,12 @@ class fn extends nt {
7323
7340
  }
7324
7341
  apply(t) {
7325
7342
  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");
7343
+ return Re.fail("Structure gap-replace would overwrite content");
7327
7344
  let n = t.slice(this.gapFrom, this.gapTo);
7328
7345
  if (n.openStart || n.openEnd)
7329
- return Ae.fail("Gap is not a flat range");
7346
+ return Re.fail("Gap is not a flat range");
7330
7347
  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");
7348
+ return s ? Re.fromReplace(t, this.from, this.to, s) : Re.fail("Content does not fit in gap");
7332
7349
  }
7333
7350
  getMap() {
7334
7351
  return new ut([
@@ -7431,13 +7448,13 @@ class er extends nt {
7431
7448
  apply(t) {
7432
7449
  let n = t.nodeAt(this.pos);
7433
7450
  if (!n)
7434
- return Ae.fail("No node at attribute step's position");
7451
+ return Re.fail("No node at attribute step's position");
7435
7452
  let s = /* @__PURE__ */ Object.create(null);
7436
7453
  for (let a in n.attrs)
7437
7454
  s[a] = n.attrs[a];
7438
7455
  s[this.attr] = this.value;
7439
7456
  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));
7457
+ return Re.fromReplace(t, this.pos, this.pos + 1, new ue(ie.from(i), 0, n.isLeaf ? 0 : 1));
7441
7458
  }
7442
7459
  getMap() {
7443
7460
  return ut.empty;
@@ -7563,7 +7580,7 @@ class ye {
7563
7580
  found.
7564
7581
  */
7565
7582
  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);
7583
+ let i = t.parent.inlineContent ? new Ee(t) : Ln(t.node(0), t.parent, t.pos, t.index(), n, s);
7567
7584
  if (i)
7568
7585
  return i;
7569
7586
  for (let a = t.depth - 1; a >= 0; a--) {
@@ -7630,7 +7647,7 @@ class ye {
7630
7647
  returns the bookmark for that.
7631
7648
  */
7632
7649
  getBookmark() {
7633
- return Re.between(this.$anchor, this.$head).getBookmark();
7650
+ return Ee.between(this.$anchor, this.$head).getBookmark();
7634
7651
  }
7635
7652
  }
7636
7653
  ye.prototype.visible = !0;
@@ -7646,7 +7663,7 @@ let jo = !1;
7646
7663
  function vo(e) {
7647
7664
  !jo && !e.parent.inlineContent && (jo = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + e.parent.type.name + ")"));
7648
7665
  }
7649
- class Re extends ye {
7666
+ class Ee extends ye {
7650
7667
  /**
7651
7668
  Construct a text selection between the given points.
7652
7669
  */
@@ -7665,7 +7682,7 @@ class Re extends ye {
7665
7682
  if (!s.parent.inlineContent)
7666
7683
  return ye.near(s);
7667
7684
  let i = t.resolve(n.map(this.anchor));
7668
- return new Re(i.parent.inlineContent ? i : s, s);
7685
+ return new Ee(i.parent.inlineContent ? i : s, s);
7669
7686
  }
7670
7687
  replace(t, n = ue.empty) {
7671
7688
  if (super.replace(t, n), n == ue.empty) {
@@ -7674,7 +7691,7 @@ class Re extends ye {
7674
7691
  }
7675
7692
  }
7676
7693
  eq(t) {
7677
- return t instanceof Re && t.anchor == this.anchor && t.head == this.head;
7694
+ return t instanceof Ee && t.anchor == this.anchor && t.head == this.head;
7678
7695
  }
7679
7696
  getBookmark() {
7680
7697
  return new ms(this.anchor, this.head);
@@ -7688,7 +7705,7 @@ class Re extends ye {
7688
7705
  static fromJSON(t, n) {
7689
7706
  if (typeof n.anchor != "number" || typeof n.head != "number")
7690
7707
  throw new RangeError("Invalid input for TextSelection.fromJSON");
7691
- return new Re(t.resolve(n.anchor), t.resolve(n.head));
7708
+ return new Ee(t.resolve(n.anchor), t.resolve(n.head));
7692
7709
  }
7693
7710
  /**
7694
7711
  Create a text selection from non-resolved positions.
@@ -7714,10 +7731,10 @@ class Re extends ye {
7714
7731
  else
7715
7732
  return ye.near(n, s);
7716
7733
  }
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);
7734
+ 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
7735
  }
7719
7736
  }
7720
- ye.jsonID("text", Re);
7737
+ ye.jsonID("text", Ee);
7721
7738
  class ms {
7722
7739
  constructor(t, n) {
7723
7740
  this.anchor = t, this.head = n;
@@ -7726,7 +7743,7 @@ class ms {
7726
7743
  return new ms(t.map(this.anchor), t.map(this.head));
7727
7744
  }
7728
7745
  resolve(t) {
7729
- return Re.between(t.resolve(this.anchor), t.resolve(this.head));
7746
+ return Ee.between(t.resolve(this.anchor), t.resolve(this.head));
7730
7747
  }
7731
7748
  }
7732
7749
  class st extends ye {
@@ -7752,7 +7769,7 @@ class st extends ye {
7752
7769
  return { type: "node", anchor: this.anchor };
7753
7770
  }
7754
7771
  getBookmark() {
7755
- return new Ui(this.anchor);
7772
+ return new Ki(this.anchor);
7756
7773
  }
7757
7774
  /**
7758
7775
  @internal
@@ -7778,13 +7795,13 @@ class st extends ye {
7778
7795
  }
7779
7796
  st.prototype.visible = !1;
7780
7797
  ye.jsonID("node", st);
7781
- class Ui {
7798
+ class Ki {
7782
7799
  constructor(t) {
7783
7800
  this.anchor = t;
7784
7801
  }
7785
7802
  map(t) {
7786
7803
  let { deleted: n, pos: s } = t.mapResult(this.anchor);
7787
- return n ? new ms(s, s) : new Ui(s);
7804
+ return n ? new ms(s, s) : new Ki(s);
7788
7805
  }
7789
7806
  resolve(t) {
7790
7807
  let n = t.resolve(this.anchor), s = n.nodeAfter;
@@ -7836,7 +7853,7 @@ const Db = {
7836
7853
  };
7837
7854
  function Ln(e, t, n, s, i, a = !1) {
7838
7855
  if (t.inlineContent)
7839
- return Re.create(e, n);
7856
+ return Ee.create(e, n);
7840
7857
  for (let o = s - (i > 0 ? 0 : 1); i > 0 ? o < t.childCount : o >= 0; o += i) {
7841
7858
  let l = t.child(o);
7842
7859
  if (l.isAtom) {
@@ -8206,7 +8223,7 @@ function Hr(e, t, n = { strict: !0 }) {
8206
8223
  function oi(e, t, n = {}) {
8207
8224
  return e.find((s) => s.type === t && Hr(s.attrs, n));
8208
8225
  }
8209
- function Ub(e, t, n = {}) {
8226
+ function Kb(e, t, n = {}) {
8210
8227
  return !!oi(e, t, n);
8211
8228
  }
8212
8229
  function Fc(e, t, n = {}) {
@@ -8221,7 +8238,7 @@ function Fc(e, t, n = {}) {
8221
8238
  let a = s.index, o = e.start() + s.offset, l = a + 1, c = o + s.node.nodeSize;
8222
8239
  for (oi([...s.node.marks], t, n); a > 0 && i.isInSet(e.parent.child(a - 1).marks); )
8223
8240
  a -= 1, o -= e.parent.child(a).nodeSize;
8224
- for (; l < e.parent.childCount && Ub([...e.parent.child(l).marks], t, n); )
8241
+ for (; l < e.parent.childCount && Kb([...e.parent.child(l).marks], t, n); )
8225
8242
  c += e.parent.child(l).nodeSize, l += 1;
8226
8243
  return {
8227
8244
  from: o,
@@ -8236,12 +8253,12 @@ function an(e, t) {
8236
8253
  }
8237
8254
  return e;
8238
8255
  }
8239
- const Kb = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8256
+ const Ub = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8240
8257
  const a = an(e, s.schema), { doc: o, selection: l } = n, { $from: c, from: d, to: u } = l;
8241
8258
  if (i) {
8242
8259
  const h = Fc(c, a, t);
8243
8260
  if (h && h.from <= d && h.to >= u) {
8244
- const p = Re.create(o, h.from, h.to);
8261
+ const p = Ee.create(o, h.from, h.to);
8245
8262
  n.setSelection(p);
8246
8263
  }
8247
8264
  }
@@ -8254,7 +8271,7 @@ const Kb = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8254
8271
  return !1;
8255
8272
  };
8256
8273
  function Oc(e) {
8257
- return e instanceof Re;
8274
+ return e instanceof Ee;
8258
8275
  }
8259
8276
  function mn(e = 0, t = 0, n = 0) {
8260
8277
  return Math.min(Math.max(e, t), n);
@@ -8268,9 +8285,9 @@ function Xb(e, t = null) {
8268
8285
  if (t === "end")
8269
8286
  return s;
8270
8287
  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));
8288
+ 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
8289
  }
8273
- function Ki() {
8290
+ function Ui() {
8274
8291
  return [
8275
8292
  "iPad Simulator",
8276
8293
  "iPhone Simulator",
@@ -8286,7 +8303,7 @@ const Jb = (e = null, t = {}) => ({ editor: n, view: s, tr: i, dispatch: a }) =>
8286
8303
  ...t
8287
8304
  };
8288
8305
  const o = () => {
8289
- Ki() && s.dom.focus(), requestAnimationFrame(() => {
8306
+ Ui() && s.dom.focus(), requestAnimationFrame(() => {
8290
8307
  n.isDestroyed || (s.focus(), t != null && t.scrollIntoView && n.commands.scrollIntoView());
8291
8308
  });
8292
8309
  };
@@ -8301,7 +8318,7 @@ function So(e) {
8301
8318
  const t = `<body>${e}</body>`;
8302
8319
  return new window.DOMParser().parseFromString(t, "text/html").body;
8303
8320
  }
8304
- function Ur(e, t, n) {
8321
+ function Kr(e, t, n) {
8305
8322
  if (n = {
8306
8323
  slice: !0,
8307
8324
  parseOptions: {},
@@ -8310,13 +8327,13 @@ function Ur(e, t, n) {
8310
8327
  try {
8311
8328
  return Array.isArray(e) && e.length > 0 ? ie.fromArray(e.map((s) => t.nodeFromJSON(s))) : t.nodeFromJSON(e);
8312
8329
  } catch (s) {
8313
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Ur("", t, n);
8330
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Kr("", t, n);
8314
8331
  }
8315
8332
  if (typeof e == "string") {
8316
8333
  const s = Wr.fromSchema(t);
8317
8334
  return n.slice ? s.parseSlice(So(e), n.parseOptions).content : s.parse(So(e), n.parseOptions);
8318
8335
  }
8319
- return Ur("", t, n);
8336
+ return Kr("", t, n);
8320
8337
  }
8321
8338
  function ty(e, t, n) {
8322
8339
  const s = e.steps.length - 1;
@@ -8338,7 +8355,7 @@ const ny = (e) => e.toString().startsWith("<"), ry = (e, t, n) => ({ tr: s, disp
8338
8355
  updateSelection: !0,
8339
8356
  ...n
8340
8357
  };
8341
- const o = Ur(t, a.schema, {
8358
+ const o = Kr(t, a.schema, {
8342
8359
  parseOptions: {
8343
8360
  preserveWhitespace: "full",
8344
8361
  ...n.parseOptions
@@ -8376,7 +8393,7 @@ function ly(e) {
8376
8393
  else if (/^s(hift)?$/i.test(c))
8377
8394
  a = !0;
8378
8395
  else if (/^mod$/i.test(c))
8379
- Ki() || $c() ? o = !0 : i = !0;
8396
+ Ui() || $c() ? o = !0 : i = !0;
8380
8397
  else
8381
8398
  throw new Error(`Unrecognized modifier name: ${c}`);
8382
8399
  }
@@ -8443,7 +8460,7 @@ const xy = (e, t) => ({ tr: n, state: s, dispatch: i }) => {
8443
8460
  to: e.doc.content.size
8444
8461
  }), 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
8462
  function wy(e, t, n = {}) {
8446
- return Ur(e, t, { slice: !1, parseOptions: n });
8463
+ return Kr(e, t, { slice: !1, parseOptions: n });
8447
8464
  }
8448
8465
  const _y = (e, t = !1, n = {}) => ({ tr: s, editor: i, dispatch: a }) => {
8449
8466
  const { doc: o } = s, l = wy(e, i.schema, n);
@@ -8576,7 +8593,7 @@ const Dy = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8576
8593
  return !0;
8577
8594
  }, Ay = (e) => ({ tr: t, dispatch: n }) => {
8578
8595
  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);
8596
+ 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
8597
  t.setSelection(u);
8581
8598
  }
8582
8599
  return !0;
@@ -8599,7 +8616,7 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8599
8616
  return !1;
8600
8617
  if (s) {
8601
8618
  const h = c.parentOffset === c.parent.content.size;
8602
- a instanceof Re && t.deleteSelection();
8619
+ a instanceof Ee && t.deleteSelection();
8603
8620
  const p = l.depth === 0 ? void 0 : Sy(l.node(-1).contentMatchAt(l.indexAfter(-1)));
8604
8621
  let x = h && p ? [
8605
8622
  {
@@ -8634,18 +8651,18 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8634
8651
  if (s) {
8635
8652
  let M = ie.empty;
8636
8653
  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));
8654
+ for (let Ie = l.depth - F; Ie >= l.depth - 3; Ie -= 1)
8655
+ M = ie.from(l.node(Ie).copy(M));
8639
8656
  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
8657
  M = M.append(ie.from(o.createAndFill(null, be) || void 0));
8641
8658
  const ne = l.before(l.depth - (F - 1));
8642
8659
  t.replace(ne, l.after(-B), new ue(M, 4 - F, 0));
8643
8660
  let Se = -1;
8644
- t.doc.nodesBetween(ne, t.doc.content.size, (Te, Me) => {
8661
+ t.doc.nodesBetween(ne, t.doc.content.size, (Ie, Le) => {
8645
8662
  if (Se > -1)
8646
8663
  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();
8664
+ Ie.isTextblock && Ie.content.size === 0 && (Se = Le + 1);
8665
+ }), Se > -1 && t.setSelection(Ee.near(t.doc.resolve(Se))), t.scrollIntoView();
8649
8666
  }
8650
8667
  return !0;
8651
8668
  }
@@ -8695,8 +8712,8 @@ const Ey = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8695
8712
  return c().command(() => (a.setNodeMarkup(ne.pos, x), !0)).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
8696
8713
  }
8697
8714
  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();
8715
+ const Se = u().wrapInList(x, s), Ie = be.filter((Le) => p.includes(Le.type.name));
8716
+ return a.ensureMarks(Ie), Se ? !0 : d.clearNodes();
8700
8717
  }).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
8701
8718
  }, $y = (e, t = {}, n = {}) => ({ state: s, commands: i }) => {
8702
8719
  const { extendEmptyMarkRange: a = !1 } = n, o = an(e, s.schema);
@@ -8786,7 +8803,7 @@ var Hy = /* @__PURE__ */ Object.freeze({
8786
8803
  deleteSelection: Gb,
8787
8804
  enter: Qb,
8788
8805
  exitCode: Hb,
8789
- extendMarkRange: Kb,
8806
+ extendMarkRange: Ub,
8790
8807
  first: Yb,
8791
8808
  focus: Jb,
8792
8809
  forEach: Zb,
@@ -8920,7 +8937,7 @@ At.create({
8920
8937
  "Ctrl-a": () => this.editor.commands.selectTextblockStart(),
8921
8938
  "Ctrl-e": () => this.editor.commands.selectTextblockEnd()
8922
8939
  };
8923
- return Ki() || $c() ? a : i;
8940
+ return Ui() || $c() ? a : i;
8924
8941
  },
8925
8942
  addProseMirrorPlugins() {
8926
8943
  return [
@@ -8999,10 +9016,10 @@ const Vc = At.create({
8999
9016
  }).removeEmptyTextStyle().run()
9000
9017
  };
9001
9018
  }
9002
- }), Uy = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), Ky = [{
9019
+ }), Ky = ["8", "10", "12", "14", "16", "18", "20", "24", "30", "36", "48", "60", "72"].map((e) => `${e}px`), Uy = [{
9003
9020
  label: "auto",
9004
9021
  value: ""
9005
- }].concat(Uy.map((e) => ({
9022
+ }].concat(Ky.map((e) => ({
9006
9023
  label: e,
9007
9024
  value: e
9008
9025
  }))), Yy = {
@@ -9016,7 +9033,7 @@ const Vc = At.create({
9016
9033
  editor: e
9017
9034
  }) => {
9018
9035
  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) => {
9036
+ 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
9037
  const s = n.currentTarget.value;
9021
9038
  s ? e.chain().focus().setFontSize(s).run() : e.chain().focus().unsetFontSize().run();
9022
9039
  } }) });
@@ -9226,7 +9243,7 @@ function nj({
9226
9243
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9227
9244
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, pt: s, children: [
9228
9245
  /* @__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 }),
9246
+ 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
9247
  t.type === "custom" && /* @__PURE__ */ r.jsx(ej, { label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: c, defaultValue: ho, triggerButtonProps: {
9231
9248
  size: "xs",
9232
9249
  sx: {
@@ -9311,7 +9328,7 @@ const ij = ({
9311
9328
  const [n, {
9312
9329
  setTrue: s,
9313
9330
  setFalse: i
9314
- }] = Ee(), [a, o] = N(e), l = () => {
9331
+ }] = Fe(), [a, o] = N(e), l = () => {
9315
9332
  i();
9316
9333
  const {
9317
9334
  type: h,
@@ -9364,7 +9381,7 @@ const ij = ({
9364
9381
  size: s
9365
9382
  });
9366
9383
  };
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 }) });
9384
+ 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
9385
  }, cj = [{
9369
9386
  label: "Static",
9370
9387
  value: "static"
@@ -9438,7 +9455,7 @@ function hj({
9438
9455
  control: e,
9439
9456
  render: ({
9440
9457
  field: i
9441
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
9458
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
9442
9459
  flexGrow: 1
9443
9460
  }, ...i })
9444
9461
  }
@@ -9611,12 +9628,12 @@ function mj({
9611
9628
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
9612
9629
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
9613
9630
  field: o
9614
- }) => /* @__PURE__ */ r.jsx(Ue, { ...o }) })
9631
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...o }) })
9615
9632
  ] }),
9616
9633
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
9617
9634
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
9618
9635
  field: o
9619
- }) => /* @__PURE__ */ r.jsx(K, { label: "Hide in legend", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
9636
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
9620
9637
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
9621
9638
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
9622
9639
  top: 15,
@@ -9682,7 +9699,7 @@ function fj({
9682
9699
  }, children: [
9683
9700
  /* @__PURE__ */ r.jsxs(m.List, { children: [
9684
9701
  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" }) })
9702
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
9686
9703
  ] }),
9687
9704
  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
9705
  ] });
@@ -9708,11 +9725,11 @@ const bj = () => /* @__PURE__ */ r.jsxs(b, { sx: {
9708
9725
  display: "inline-flex"
9709
9726
  }, spacing: 6, mr: 14, children: [
9710
9727
  /* @__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: {
9728
+ /* @__PURE__ */ r.jsxs(Te, { width: 340, shadow: "md", position: "top", children: [
9729
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(W, { size: "xs", sx: {
9713
9730
  transform: "none !important"
9714
9731
  }, children: /* @__PURE__ */ r.jsx(_n, {}) }) }),
9715
- /* @__PURE__ */ r.jsx(Oe.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9732
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9716
9733
  "Click",
9717
9734
  /* @__PURE__ */ r.jsx(Js, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 4, children: "here" }),
9718
9735
  "to learn more about these options"
@@ -9762,7 +9779,7 @@ function jj({
9762
9779
  field: n
9763
9780
  }) => (
9764
9781
  // @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: {
9782
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
9766
9783
  width: "48%"
9767
9784
  }, styles: {
9768
9785
  rightSection: {
@@ -9850,7 +9867,7 @@ function _j({
9850
9867
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
9851
9868
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.show`, control: e, render: ({
9852
9869
  field: s
9853
- }) => /* @__PURE__ */ r.jsx(K, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
9870
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
9854
9871
  /* @__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
9872
  ] });
9856
9873
  }
@@ -9888,7 +9905,7 @@ function Sj({
9888
9905
  }, children: [
9889
9906
  /* @__PURE__ */ r.jsxs(m.List, { children: [
9890
9907
  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" }) })
9908
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
9892
9909
  ] }),
9893
9910
  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
9911
  ] });
@@ -10391,7 +10408,7 @@ function Hj(e) {
10391
10408
  };
10392
10409
  return e.orient === "vertical" && _.get(s, n) && n === e.funnelAlign && _.set(s, n, t), s;
10393
10410
  }
10394
- function Uj(e, t) {
10411
+ function Kj(e, t) {
10395
10412
  return e.series.map((n) => {
10396
10413
  const {
10397
10414
  level_name_data_key: s,
@@ -10428,7 +10445,7 @@ function Uj(e, t) {
10428
10445
  };
10429
10446
  });
10430
10447
  }
10431
- function Kj({
10448
+ function Uj({
10432
10449
  conf: e,
10433
10450
  params: t,
10434
10451
  max: n
@@ -10454,7 +10471,7 @@ function Yj(e, t) {
10454
10471
  var a;
10455
10472
  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
10473
  return (o) => {
10457
- const c = Kj({
10474
+ const c = Uj({
10458
10475
  conf: e,
10459
10476
  params: o,
10460
10477
  max: i
@@ -10493,7 +10510,7 @@ function Jj(e, t) {
10493
10510
  bottom: 0
10494
10511
  },
10495
10512
  tooltip: Xj(e, t),
10496
- series: Uj(e, t)
10513
+ series: Kj(e, t)
10497
10514
  };
10498
10515
  }
10499
10516
  function Zj(e) {
@@ -10675,7 +10692,7 @@ const nv = [{
10675
10692
  field: l
10676
10693
  }) => (
10677
10694
  // @ts-expect-error type of onChange
10678
- /* @__PURE__ */ r.jsx(U, { disabled: !i, labelProps: {
10695
+ /* @__PURE__ */ r.jsx(K, { disabled: !i, labelProps: {
10679
10696
  display: "block"
10680
10697
  }, label: /* @__PURE__ */ r.jsxs(b, { position: "apart", pr: 6, sx: {
10681
10698
  width: "100%"
@@ -10683,7 +10700,7 @@ const nv = [{
10683
10700
  /* @__PURE__ */ r.jsx(j, { children: "Min Value" }),
10684
10701
  /* @__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
10702
  field: c
10686
- }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10703
+ }) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10687
10704
  ] }), ...l })
10688
10705
  ) }),
10689
10706
  /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.size`, control: t, render: ({
@@ -10695,7 +10712,7 @@ const nv = [{
10695
10712
  field: l
10696
10713
  }) => (
10697
10714
  // @ts-expect-error type of onChange
10698
- /* @__PURE__ */ r.jsx(U, { disabled: !a, labelProps: {
10715
+ /* @__PURE__ */ r.jsx(K, { disabled: !a, labelProps: {
10699
10716
  display: "block"
10700
10717
  }, label: /* @__PURE__ */ r.jsxs(b, { position: "apart", pr: 6, sx: {
10701
10718
  width: "100%"
@@ -10703,7 +10720,7 @@ const nv = [{
10703
10720
  /* @__PURE__ */ r.jsx(j, { children: "Max Value" }),
10704
10721
  /* @__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
10722
  field: c
10706
- }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10723
+ }) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10707
10724
  ] }), ...l })
10708
10725
  ) }),
10709
10726
  /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.size`, control: t, render: ({
@@ -10746,7 +10763,7 @@ const nv = [{
10746
10763
  control: t,
10747
10764
  render: ({
10748
10765
  field: l
10749
- }) => /* @__PURE__ */ r.jsx(U, { placeholder: "0, 5, 10...", label: "Gap", ...l })
10766
+ }) => /* @__PURE__ */ r.jsx(K, { placeholder: "0, 5, 10...", label: "Gap", ...l })
10750
10767
  }
10751
10768
  )
10752
10769
  ] }),
@@ -11102,7 +11119,7 @@ const vv = ({
11102
11119
  const [n, {
11103
11120
  setTrue: s,
11104
11121
  setFalse: i
11105
- }] = Ee(), [a, o] = N(e), l = () => {
11122
+ }] = Fe(), [a, o] = N(e), l = () => {
11106
11123
  i();
11107
11124
  const {
11108
11125
  type: h,
@@ -11155,7 +11172,7 @@ const vv = ({
11155
11172
  value: s
11156
11173
  });
11157
11174
  };
11158
- return /* @__PURE__ */ r.jsx(U, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
11175
+ return /* @__PURE__ */ r.jsx(K, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
11159
11176
  }, Cv = [{
11160
11177
  label: "Static",
11161
11178
  value: "static"
@@ -11474,7 +11491,7 @@ function Ev({
11474
11491
  field: s
11475
11492
  }) => (
11476
11493
  // @ts-expect-error type of onChange
11477
- /* @__PURE__ */ r.jsx(U, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
11494
+ /* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
11478
11495
  ) })
11479
11496
  ] })
11480
11497
  ] });
@@ -11543,7 +11560,7 @@ const Fv = ({
11543
11560
  }, children: [
11544
11561
  /* @__PURE__ */ r.jsxs(m.List, { children: [
11545
11562
  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" }) })
11563
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
11547
11564
  ] }),
11548
11565
  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
11566
  ] })
@@ -11585,7 +11602,7 @@ const Pv = ({
11585
11602
  const [s, {
11586
11603
  setTrue: i,
11587
11604
  setFalse: a
11588
- }] = Ee(), [o, l] = N(e);
11605
+ }] = Fe(), [o, l] = N(e);
11589
11606
  O(() => {
11590
11607
  l(e);
11591
11608
  }, [e]);
@@ -11619,7 +11636,7 @@ const Pv = ({
11619
11636
  flexGrow: 0
11620
11637
  }, children: "Customize Label" }),
11621
11638
  /* @__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) }),
11639
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11623
11640
  /* @__PURE__ */ r.jsx(Pv, { value: o.func_content, onChange: h, disabled: !o.enabled }),
11624
11641
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
11625
11642
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -11657,7 +11674,7 @@ function Nv({
11657
11674
  field: n
11658
11675
  }) => (
11659
11676
  // @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: {
11677
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
11661
11678
  width: "48%"
11662
11679
  }, styles: {
11663
11680
  rightSection: {
@@ -11719,7 +11736,7 @@ function qv({
11719
11736
  field: n
11720
11737
  }) => (
11721
11738
  // @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: {
11739
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
11723
11740
  width: "48%"
11724
11741
  }, styles: {
11725
11742
  rightSection: {
@@ -11870,7 +11887,7 @@ function Hv(e) {
11870
11887
  }
11871
11888
  };
11872
11889
  }
11873
- class Uv extends _e {
11890
+ class Kv extends _e {
11874
11891
  constructor() {
11875
11892
  super(...arguments);
11876
11893
  V(this, "VERSION", 4);
@@ -11894,10 +11911,10 @@ class Uv extends _e {
11894
11911
  }));
11895
11912
  }
11896
11913
  }
11897
- const Kv = {
11914
+ const Uv = {
11898
11915
  displayName: "Heatmap",
11899
11916
  displayGroup: "ECharts-based charts",
11900
- migrator: new Uv(),
11917
+ migrator: new Kv(),
11901
11918
  name: "heatmap",
11902
11919
  viewRender: Rv,
11903
11920
  configRender: Wv,
@@ -11970,7 +11987,7 @@ const Qc = {
11970
11987
  dataZoom: Gn,
11971
11988
  markLine: Qc
11972
11989
  };
11973
- function Kr(e) {
11990
+ function Ur(e) {
11974
11991
  return Y(e).format({
11975
11992
  output: "percent",
11976
11993
  mantissa: 0
@@ -11979,7 +11996,7 @@ function Kr(e) {
11979
11996
  function Jv(e) {
11980
11997
  const t = e.value[1];
11981
11998
  try {
11982
- return Kr(t);
11999
+ return Ur(t);
11983
12000
  } catch (n) {
11984
12001
  return console.error(n), t;
11985
12002
  }
@@ -11998,7 +12015,7 @@ function Zv(e) {
11998
12015
  return {
11999
12016
  bar: t,
12000
12017
  line: Jv,
12001
- lineValue: Kr
12018
+ lineValue: Ur
12002
12019
  };
12003
12020
  }
12004
12021
  function ew(e, t, n) {
@@ -12021,8 +12038,8 @@ function tw(e, t) {
12021
12038
  if (n === -1)
12022
12039
  return {};
12023
12040
  const s = t[n], i = {
12024
- x: Kr((n + 1) / t.length),
12025
- y: Kr(s[1])
12041
+ x: Ur((n + 1) / t.length),
12042
+ y: Ur(s[1])
12026
12043
  }, a = {
12027
12044
  left: n + 1,
12028
12045
  right: t.length - n - 1
@@ -12277,7 +12294,7 @@ function dw({
12277
12294
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12278
12295
  /* @__PURE__ */ r.jsx(g, { name: "bar.color", control: e, render: ({
12279
12296
  field: n
12280
- }) => /* @__PURE__ */ r.jsx(Ue, { ...n }) })
12297
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12281
12298
  ] }),
12282
12299
  /* @__PURE__ */ r.jsxs(w, { children: [
12283
12300
  /* @__PURE__ */ r.jsx(D, { mb: -15, variant: "dashed", label: "Label Format", labelPosition: "center" }),
@@ -12321,7 +12338,7 @@ function hw({
12321
12338
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12322
12339
  /* @__PURE__ */ r.jsx(g, { name: "line.color", control: e, render: ({
12323
12340
  field: n
12324
- }) => /* @__PURE__ */ r.jsx(Ue, { ...n }) })
12341
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12325
12342
  ] })
12326
12343
  ] });
12327
12344
  }
@@ -12364,7 +12381,7 @@ function mw({
12364
12381
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
12365
12382
  /* @__PURE__ */ r.jsx(g, { name: "markLine.color", control: e, render: ({
12366
12383
  field: n
12367
- }) => /* @__PURE__ */ r.jsx(Ue, { ...n }) })
12384
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...n }) })
12368
12385
  ] }),
12369
12386
  /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
12370
12387
  /* @__PURE__ */ r.jsx(g, { name: "markLine.label_template", control: e, render: ({
@@ -12399,7 +12416,7 @@ function fw({
12399
12416
  field: n
12400
12417
  }) => (
12401
12418
  // @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: {
12419
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12403
12420
  width: "48%"
12404
12421
  }, styles: {
12405
12422
  rightSection: {
@@ -12817,7 +12834,7 @@ function Lw(e, t, n) {
12817
12834
  series: Mw(e, t, n)
12818
12835
  };
12819
12836
  }
12820
- const Uc = {
12837
+ const Kc = {
12821
12838
  id: "builtin:echarts:click-pie-chart:series",
12822
12839
  displayName: "Click Pie Series",
12823
12840
  nameRender: Rw,
@@ -12867,7 +12884,7 @@ function Ew({
12867
12884
  height: s,
12868
12885
  interactionManager: i
12869
12886
  }) {
12870
- const a = Tn(t, e.label_field), o = ft(i.triggerManager, Uc.id), l = L.useCallback((u) => {
12887
+ const a = Tn(t, e.label_field), o = ft(i.triggerManager, Kc.id), l = L.useCallback((u) => {
12871
12888
  const h = _.get(a, u.name, {
12872
12889
  error: "rowData is not found"
12873
12890
  });
@@ -13007,7 +13024,7 @@ const Nw = {
13007
13024
  config: Pe(ra)
13008
13025
  };
13009
13026
  },
13010
- triggers: [Uc]
13027
+ triggers: [Kc]
13011
13028
  };
13012
13029
  function Bw(e) {
13013
13030
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
@@ -13015,7 +13032,7 @@ function Bw(e) {
13015
13032
  function qw(e) {
13016
13033
  return /* @__PURE__ */ r.jsx(j, { children: "Click heat block" });
13017
13034
  }
13018
- const Kc = {
13035
+ const Uc = {
13019
13036
  id: "builtin:echarts:click-radar-chart:series",
13020
13037
  displayName: "Click radar chart series",
13021
13038
  nameRender: qw,
@@ -13152,7 +13169,7 @@ function Qw(e, t) {
13152
13169
  function Hw(e, t) {
13153
13170
  return [...Gw(e, t), ...Qw(e, t)];
13154
13171
  }
13155
- function Uw(e) {
13172
+ function Kw(e) {
13156
13173
  return ({
13157
13174
  name: t,
13158
13175
  marker: n,
@@ -13195,7 +13212,7 @@ function Uw(e) {
13195
13212
  `;
13196
13213
  };
13197
13214
  }
13198
- const Kw = {
13215
+ const Uw = {
13199
13216
  legend: {
13200
13217
  show: !0,
13201
13218
  bottom: 0,
@@ -13228,7 +13245,7 @@ function Xw(e, t) {
13228
13245
  },
13229
13246
  tooltip: ge.getTooltip({
13230
13247
  backgroundColor: "rgba(255,255,255,0.6)",
13231
- formatter: Uw(e)
13248
+ formatter: Kw(e)
13232
13249
  }),
13233
13250
  legend: {
13234
13251
  show: !0,
@@ -13239,7 +13256,7 @@ function Xw(e, t) {
13239
13256
  series: Hw(t, e),
13240
13257
  color: Yw
13241
13258
  };
13242
- return _.merge({}, Kw, o);
13259
+ return _.merge({}, Uw, o);
13243
13260
  }
13244
13261
  ae.use([$h, ot, lt, ct, Xe]);
13245
13262
  function Jw({
@@ -13265,7 +13282,7 @@ function Jw({
13265
13282
  ...x,
13266
13283
  ...y
13267
13284
  };
13268
- }, [t, e.series_name_key, e.additional_series]), l = ft(i.triggerManager, Kc.id), c = qe((h) => {
13285
+ }, [t, e.series_name_key, e.additional_series]), l = ft(i.triggerManager, Uc.id), c = qe((h) => {
13269
13286
  const p = _.get(o, h.name, {
13270
13287
  error: "rowData is not found"
13271
13288
  });
@@ -13511,10 +13528,10 @@ function s0({
13511
13528
  /* @__PURE__ */ r.jsx(m.Panel, { value: "style", p: "md", children: /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
13512
13529
  /* @__PURE__ */ r.jsx(g, { name: "background.enabled", control: i, render: ({
13513
13530
  field: p
13514
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
13531
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
13515
13532
  /* @__PURE__ */ r.jsx(g, { name: "label.enabled", control: i, render: ({
13516
13533
  field: p
13517
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13534
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13518
13535
  ] }) }),
13519
13536
  /* @__PURE__ */ r.jsx(m.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r.jsx(t0, { control: i, watch: o }) })
13520
13537
  ] })
@@ -13684,7 +13701,7 @@ const h0 = {
13684
13701
  version: 7,
13685
13702
  config: gs
13686
13703
  }),
13687
- triggers: [Kc]
13704
+ triggers: [Uc]
13688
13705
  };
13689
13706
  function p0(e, t) {
13690
13707
  const {
@@ -14040,7 +14057,7 @@ function zo({
14040
14057
  rSquared: n,
14041
14058
  adjustedRSquared: s
14042
14059
  } = e;
14043
- return t ? /* @__PURE__ */ r.jsx(Ke, { fontSize: 14, sx: T0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
14060
+ return t ? /* @__PURE__ */ r.jsx(Ue, { fontSize: 14, sx: T0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
14044
14061
  /* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { colSpan: 2, children: /* @__PURE__ */ r.jsx(j, { align: "center", children: t }) }) }),
14045
14062
  /* @__PURE__ */ r.jsxs("tr", { children: [
14046
14063
  /* @__PURE__ */ r.jsx("td", { children: "R-Sq" }),
@@ -14077,9 +14094,9 @@ function D0({
14077
14094
  conf: e,
14078
14095
  queryData: t
14079
14096
  }) {
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 }) }) })
14097
+ return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
14098
+ /* @__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" }) }),
14099
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(I0, { conf: e, queryData: t }) }) })
14083
14100
  ] });
14084
14101
  }
14085
14102
  function z0(e) {
@@ -14212,7 +14229,7 @@ function A0({
14212
14229
  control: e,
14213
14230
  render: ({
14214
14231
  field: i
14215
- }) => /* @__PURE__ */ r.jsx(U, { label: "次", sx: {
14232
+ }) => /* @__PURE__ */ r.jsx(K, { label: "次", sx: {
14216
14233
  flex: 1
14217
14234
  }, ...i })
14218
14235
  }
@@ -14222,7 +14239,7 @@ function A0({
14222
14239
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "颜色" }),
14223
14240
  /* @__PURE__ */ r.jsx(g, { name: "regression.plot.color", control: e, render: ({
14224
14241
  field: i
14225
- }) => /* @__PURE__ */ r.jsx(Ue, { ...i }) })
14242
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...i }) })
14226
14243
  ] })
14227
14244
  ] });
14228
14245
  }
@@ -14253,7 +14270,7 @@ const R0 = ({
14253
14270
  const [i, {
14254
14271
  setTrue: a,
14255
14272
  setFalse: o
14256
- }] = Ee(), [l, c] = N(e);
14273
+ }] = Fe(), [l, c] = N(e);
14257
14274
  O(() => {
14258
14275
  c(e);
14259
14276
  }, [e]);
@@ -14287,7 +14304,7 @@ const R0 = ({
14287
14304
  flexGrow: 0
14288
14305
  }, children: n }),
14289
14306
  /* @__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) }),
14307
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
14291
14308
  /* @__PURE__ */ r.jsx(R0, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14292
14309
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
14293
14310
  /* @__PURE__ */ r.jsx(C, { onClick: x, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -14326,7 +14343,7 @@ function E0({
14326
14343
  field: n
14327
14344
  }) => (
14328
14345
  // @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: {
14346
+ /* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
14330
14347
  width: "48%"
14331
14348
  }, styles: {
14332
14349
  rightSection: {
@@ -14537,7 +14554,7 @@ function G0(e, t, n, s) {
14537
14554
  const Q0 = k(({
14538
14555
  context: e
14539
14556
  }) => {
14540
- const t = Fe(), {
14557
+ const t = Oe(), {
14541
14558
  value: n
14542
14559
  } = Q(e.instanceData, "config"), {
14543
14560
  variables: s,
@@ -14652,7 +14669,7 @@ const ia = de(({
14652
14669
  ] })
14653
14670
  ] }) : null;
14654
14671
  });
14655
- function U0({
14672
+ function K0({
14656
14673
  context: e
14657
14674
  }) {
14658
14675
  const {
@@ -14700,7 +14717,7 @@ function U0({
14700
14717
  ) })
14701
14718
  ] }) });
14702
14719
  }
14703
- class K0 extends _e {
14720
+ class U0 extends _e {
14704
14721
  constructor() {
14705
14722
  super(...arguments);
14706
14723
  V(this, "VERSION", 1);
@@ -14718,10 +14735,10 @@ class K0 extends _e {
14718
14735
  const Y0 = {
14719
14736
  displayName: "Rich Text",
14720
14737
  displayGroup: "Others",
14721
- migrator: new K0(),
14738
+ migrator: new U0(),
14722
14739
  name: "richText",
14723
14740
  viewRender: Q0,
14724
- configRender: U0,
14741
+ configRender: K0,
14725
14742
  createConfig() {
14726
14743
  return {
14727
14744
  version: 1,
@@ -15314,11 +15331,11 @@ const g_ = de(({
15314
15331
  /* @__PURE__ */ r.jsx(D, { mb: -15, variant: "dashed", label: "Style", labelPosition: "right" }),
15315
15332
  /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15316
15333
  /* @__PURE__ */ r.jsx(j, { size: 14, children: "Background Color" }),
15317
- /* @__PURE__ */ r.jsx(Ue, { value: e.itemStyle.color, onChange: (l) => o("itemStyle.color", l) })
15334
+ /* @__PURE__ */ r.jsx(Ke, { value: e.itemStyle.color, onChange: (l) => o("itemStyle.color", l) })
15318
15335
  ] }),
15319
15336
  /* @__PURE__ */ r.jsxs(w, { spacing: 4, children: [
15320
15337
  /* @__PURE__ */ r.jsx(j, { size: 14, children: "Text Color" }),
15321
- /* @__PURE__ */ r.jsx(Ue, { value: e.label.color, onChange: (l) => o("label.color", l) })
15338
+ /* @__PURE__ */ r.jsx(Ke, { value: e.label.color, onChange: (l) => o("label.color", l) })
15322
15339
  ] })
15323
15340
  ] });
15324
15341
  });
@@ -15386,7 +15403,7 @@ function y_({
15386
15403
  }, children: [
15387
15404
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15388
15405
  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" }) })
15406
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
15390
15407
  ] }),
15391
15408
  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
15409
  field: y
@@ -15498,7 +15515,7 @@ function w_({
15498
15515
  control: e,
15499
15516
  render: ({
15500
15517
  field: l
15501
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
15518
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
15502
15519
  flexGrow: 1
15503
15520
  }, ...l })
15504
15521
  }
@@ -15508,7 +15525,7 @@ function w_({
15508
15525
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
15509
15526
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
15510
15527
  field: l
15511
- }) => /* @__PURE__ */ r.jsx(Ue, { ...l }) })
15528
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
15512
15529
  ] }),
15513
15530
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
15514
15531
  top: 15,
@@ -15566,7 +15583,7 @@ function __({
15566
15583
  }, children: [
15567
15584
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15568
15585
  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" }) })
15586
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
15570
15587
  ] }),
15571
15588
  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
15589
  ] });
@@ -15590,7 +15607,7 @@ const S_ = ({
15590
15607
  const [n, {
15591
15608
  setTrue: s,
15592
15609
  setFalse: i
15593
- }] = Ee(), [a, o] = N(e), l = () => {
15610
+ }] = Fe(), [a, o] = N(e), l = () => {
15594
15611
  i();
15595
15612
  const {
15596
15613
  type: h,
@@ -15715,7 +15732,7 @@ const S_ = ({
15715
15732
  const [n, {
15716
15733
  setTrue: s,
15717
15734
  setFalse: i
15718
- }] = Ee(), [a, o] = N(e), l = () => {
15735
+ }] = Fe(), [a, o] = N(e), l = () => {
15719
15736
  i();
15720
15737
  const {
15721
15738
  type: h,
@@ -15768,7 +15785,7 @@ const S_ = ({
15768
15785
  size: s
15769
15786
  });
15770
15787
  };
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 }) });
15788
+ 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
15789
  }, E_ = [{
15773
15790
  label: "Static",
15774
15791
  value: "static"
@@ -15955,7 +15972,7 @@ const V_ = ({
15955
15972
  }, children: [
15956
15973
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15957
15974
  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" }) })
15975
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
15959
15976
  ] }),
15960
15977
  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
15978
  ] })
@@ -16014,7 +16031,7 @@ const W_ = ({
16014
16031
  const [s, {
16015
16032
  setTrue: i,
16016
16033
  setFalse: a
16017
- }] = Ee(), [o, l] = N(e);
16034
+ }] = Fe(), [o, l] = N(e);
16018
16035
  O(() => {
16019
16036
  l(e);
16020
16037
  }, [e]);
@@ -16048,7 +16065,7 @@ const W_ = ({
16048
16065
  flexGrow: 0
16049
16066
  }, children: "Customize Label" }),
16050
16067
  /* @__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) }),
16068
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16052
16069
  /* @__PURE__ */ r.jsx(W_, { value: o.func_content, onChange: h, disabled: !o.enabled }),
16053
16070
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
16054
16071
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -16083,7 +16100,7 @@ function Q_({
16083
16100
  field: n
16084
16101
  }) => (
16085
16102
  // @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: {
16103
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
16087
16104
  width: "48%"
16088
16105
  }, styles: {
16089
16106
  rightSection: {
@@ -16108,14 +16125,14 @@ const H_ = [{
16108
16125
  }, {
16109
16126
  label: "right",
16110
16127
  value: "right"
16111
- }], U_ = [{
16128
+ }], K_ = [{
16112
16129
  label: "left",
16113
16130
  value: "left"
16114
16131
  }, {
16115
16132
  label: "right",
16116
16133
  value: "right"
16117
16134
  }];
16118
- function K_({
16135
+ function U_({
16119
16136
  control: e,
16120
16137
  index: t,
16121
16138
  remove: n
@@ -16144,7 +16161,7 @@ function K_({
16144
16161
  field: s
16145
16162
  }) => (
16146
16163
  // @ts-expect-error type of onChange
16147
- /* @__PURE__ */ r.jsx(A, { label: "Position", required: !0, data: U_, sx: {
16164
+ /* @__PURE__ */ r.jsx(A, { label: "Position", required: !0, data: K_, sx: {
16148
16165
  flex: 1
16149
16166
  }, ...s })
16150
16167
  ) }) }),
@@ -16202,9 +16219,9 @@ function Y_({
16202
16219
  }, children: [
16203
16220
  /* @__PURE__ */ r.jsxs(m.List, { children: [
16204
16221
  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" }) })
16222
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
16206
16223
  ] }),
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))
16224
+ 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
16225
  ] });
16209
16226
  }
16210
16227
  function X_(e) {
@@ -16585,7 +16602,7 @@ const pS = {
16585
16602
  }, mS = k(({
16586
16603
  context: e
16587
16604
  }) => {
16588
- const t = Fe(), {
16605
+ const t = Oe(), {
16589
16606
  value: n = oa
16590
16607
  } = Q(e.instanceData, "config"), {
16591
16608
  variables: s
@@ -16914,7 +16931,7 @@ const MS = [{
16914
16931
  field: s
16915
16932
  }) => (
16916
16933
  // @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 })
16934
+ /* @__PURE__ */ r.jsx(K, { label: "Hide label when its percentage is less than...", precision: 4, step: 5e-4, min: 0, max: 1, ...s })
16918
16935
  ) }),
16919
16936
  /* @__PURE__ */ r.jsxs(b, { grow: !0, noWrap: !0, children: [
16920
16937
  /* @__PURE__ */ r.jsx(
@@ -16949,7 +16966,7 @@ const MS = [{
16949
16966
  control: e,
16950
16967
  render: ({
16951
16968
  field: s
16952
- }) => /* @__PURE__ */ r.jsx(U, { label: "Padding", min: 0, hideControls: !0, ...s })
16969
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Padding", min: 0, hideControls: !0, ...s })
16953
16970
  }
16954
16971
  )
16955
16972
  ] }),
@@ -17007,7 +17024,7 @@ const MS = [{
17007
17024
  }, children: [
17008
17025
  /* @__PURE__ */ r.jsxs(m.List, { children: [
17009
17026
  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" }) })
17027
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
17011
17028
  ] }),
17012
17029
  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
17030
  ] })
@@ -17266,7 +17283,7 @@ const od = ["function text({ value }) {", " // your code goes here", " ret
17266
17283
  function HS(e) {
17267
17284
  return e ? rr(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
17268
17285
  }
17269
- function US(e) {
17286
+ function KS(e) {
17270
17287
  const t = e.tableCellContext.bgColor;
17271
17288
  return {
17272
17289
  backgroundColor: t,
@@ -17279,10 +17296,10 @@ function Vn(e) {
17279
17296
  align: e.align
17280
17297
  });
17281
17298
  return /* @__PURE__ */ r.jsx("div", { className: n.classes.content, style: {
17282
- ...US(e)
17299
+ ...KS(e)
17283
17300
  }, 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
17301
  }
17285
- function KS(e) {
17302
+ function US(e) {
17286
17303
  return /* @__PURE__ */ r.jsx(Vn, { ...e, children: e.value });
17287
17304
  }
17288
17305
  function YS(e) {
@@ -17319,7 +17336,7 @@ function ZS(e) {
17319
17336
  function eC(e) {
17320
17337
  switch (e.type) {
17321
17338
  case jt.string:
17322
- return /* @__PURE__ */ r.jsx(KS, { ...e });
17339
+ return /* @__PURE__ */ r.jsx(US, { ...e });
17323
17340
  case jt.eloc:
17324
17341
  return /* @__PURE__ */ r.jsx(YS, { ...e });
17325
17342
  case jt.number:
@@ -17520,23 +17537,23 @@ function cC({
17520
17537
  } = s, {
17521
17538
  classes: u,
17522
17539
  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,
17540
+ } = WS(), p = L.useMemo(() => l ? !Array.isArray(e) || e.length === 0 ? [] : Object.keys(e[0]).map((Le) => ({
17541
+ id: Le,
17542
+ label: Le,
17543
+ value_field: Le,
17527
17544
  value_type: jt.string,
17528
17545
  align: "left",
17529
17546
  width: "",
17530
17547
  cellBackgroundColor: ""
17531
17548
  })) : c, [l, c, e]), x = lC({
17532
- getColIndex: qe((Me) => p.indexOf(Me.column.columnDef.meta), [p]),
17549
+ getColIndex: qe((Le) => p.indexOf(Le.column.columnDef.meta), [p]),
17533
17550
  vizManager: i.vizManager,
17534
17551
  instance: a
17535
17552
  }), y = T(() => {
17536
- const Me = Pl();
17553
+ const Le = Pl();
17537
17554
  return p.map((yt) => {
17538
17555
  const ks = am(yt.value_field);
17539
- return Me.accessor(ks.columnKey, {
17556
+ return Le.accessor(ks.columnKey, {
17540
17557
  cell: (Qn) => /* @__PURE__ */ r.jsx(eC, { tableCellContext: x(Qn.cell), value: Qn.getValue(), type: yt.value_type, ...yt }),
17541
17558
  header: yt.label,
17542
17559
  enableSorting: !0,
@@ -17556,7 +17573,7 @@ function cC({
17556
17573
  getSortedRowModel: Lp()
17557
17574
  }), {
17558
17575
  rows: B
17559
- } = F.getRowModel(), re = L.useRef(null), be = B.length, ne = be > 0, Se = ne ? n - 22 : n, Te = ne ? 22 : 0;
17576
+ } = F.getRowModel(), re = L.useRef(null), be = B.length, ne = be > 0, Se = ne ? n - 22 : n, Ie = ne ? 22 : 0;
17560
17577
  return il("VizTableComponent", {
17561
17578
  queryData: e,
17562
17579
  width: t,
@@ -17583,15 +17600,15 @@ function cC({
17583
17600
  "Total: ",
17584
17601
  be
17585
17602
  ] }) }),
17586
- /* @__PURE__ */ r.jsxs(Ke, { sx: {
17603
+ /* @__PURE__ */ r.jsxs(Ue, { sx: {
17587
17604
  ...GS,
17588
17605
  maxHeight: Se
17589
17606
  }, ...d, striped: s.striped, children: [
17590
17607
  /* @__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: {
17608
+ top: Ie
17609
+ }, children: F.getHeaderGroups().map((Le) => /* @__PURE__ */ r.jsx("tr", { children: Le.headers.map((on) => /* @__PURE__ */ r.jsx("th", { style: {
17593
17610
  width: on.getSize()
17594
- }, children: /* @__PURE__ */ r.jsx(BS, { header: on, cx: h }) }, on.id)) }, Me.id)) }),
17611
+ }, children: /* @__PURE__ */ r.jsx(BS, { header: on, cx: h }) }, on.id)) }, Le.id)) }),
17595
17612
  /* @__PURE__ */ r.jsx(tC, { tableContainerRef: re, rows: B })
17596
17613
  ] })
17597
17614
  ] });
@@ -17670,7 +17687,7 @@ class pC {
17670
17687
  steps: al
17671
17688
  }, {
17672
17689
  deep: !1
17673
- }), it(() => Kt(this.steps), () => {
17690
+ }), it(() => Ut(this.steps), () => {
17674
17691
  this.notifyStepChange();
17675
17692
  });
17676
17693
  }
@@ -17706,7 +17723,7 @@ function xC(e) {
17706
17723
  } = ud(), [o, l] = N(i), [c, {
17707
17724
  setTrue: d,
17708
17725
  setFalse: u
17709
- }] = Ee(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
17726
+ }] = Fe(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
17710
17727
  l(i), u();
17711
17728
  }, M = () => {
17712
17729
  u(), t == null || t(o);
@@ -17723,7 +17740,7 @@ function xC(e) {
17723
17740
  backgroundColor: n
17724
17741
  } }) }),
17725
17742
  /* @__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 }),
17743
+ /* @__PURE__ */ r.jsx(K, { size: "xs", label: "Map a value to this color", value: o, onChange: l }),
17727
17744
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
17728
17745
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", onClick: S, children: "Cancel" }),
17729
17746
  /* @__PURE__ */ r.jsx(C, { "data-testid": "palette-item-ok", size: "xs", onClick: M, children: "OK" })
@@ -17755,7 +17772,7 @@ const mC = k(({
17755
17772
  } = e, i = s.getColorInterpolations(), [a, o] = N(t), l = s.decodeInterpolation(a.interpolation) || i[0], [c, {
17756
17773
  setTrue: d,
17757
17774
  setFalse: u
17758
- }] = Ee(), h = i.map((M) => ({
17775
+ }] = Fe(), h = i.map((M) => ({
17759
17776
  label: M.displayName,
17760
17777
  value: s.encodeColor(M),
17761
17778
  group: M.category
@@ -17767,7 +17784,7 @@ const mC = k(({
17767
17784
  }));
17768
17785
  }
17769
17786
  const x = () => {
17770
- u(), n == null || n(Kt(a));
17787
+ u(), n == null || n(Ut(a));
17771
17788
  };
17772
17789
  function y(M) {
17773
17790
  o((F) => ({
@@ -17827,7 +17844,7 @@ const wC = de((e, t) => {
17827
17844
  };
17828
17845
  return /* @__PURE__ */ r.jsxs(w, { align: "stretch", children: [
17829
17846
  /* @__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 }),
17847
+ s === "static" && /* @__PURE__ */ r.jsx(Ke, { value: a, onChange: p }),
17831
17848
  s === "interpolation" && /* @__PURE__ */ r.jsx(gC, { colorManager: n, value: c, onChange: x })
17832
17849
  ] });
17833
17850
  }), _C = {
@@ -17847,7 +17864,7 @@ const wC = de((e, t) => {
17847
17864
  const [s, {
17848
17865
  setTrue: i,
17849
17866
  setFalse: a
17850
- }] = Ee(), [o, l] = N(e), c = () => {
17867
+ }] = Fe(), [o, l] = N(e), c = () => {
17851
17868
  a(), t(o);
17852
17869
  }, d = () => {
17853
17870
  a(), l(e);
@@ -17919,11 +17936,11 @@ const wC = de((e, t) => {
17919
17936
  ] }),
17920
17937
  /* @__PURE__ */ r.jsx(D, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
17921
17938
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
17922
- /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 }),
17939
+ /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 }),
17923
17940
  /* @__PURE__ */ r.jsx(g, { name: `columns.${t}.width`, control: e, render: ({
17924
17941
  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 })
17942
+ }) => /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), ...o }) }),
17943
+ /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ r.jsx(Hs, {}), disabled: !0 })
17927
17944
  ] }),
17928
17945
  /* @__PURE__ */ r.jsx(b, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(
17929
17946
  g,
@@ -17982,7 +17999,7 @@ const wC = de((e, t) => {
17982
17999
  }, children: [
17983
18000
  /* @__PURE__ */ r.jsxs(m.List, { children: [
17984
18001
  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" }) })
18002
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
17986
18003
  ] }),
17987
18004
  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
18005
  ] }) })
@@ -18217,7 +18234,7 @@ const ci = {
18217
18234
  }, OC = k(({
18218
18235
  context: e
18219
18236
  }) => {
18220
- const t = Fe(), {
18237
+ const t = Oe(), {
18221
18238
  value: n = da
18222
18239
  } = Q(e.instanceData, "config"), {
18223
18240
  variables: s
@@ -18290,7 +18307,7 @@ const xd = L.forwardRef($C), PC = ({
18290
18307
  const [s, {
18291
18308
  setTrue: i,
18292
18309
  setFalse: a
18293
- }] = Ee(), [o, l] = N(e), c = () => {
18310
+ }] = Fe(), [o, l] = N(e), c = () => {
18294
18311
  a(), t(o);
18295
18312
  }, d = () => {
18296
18313
  a(), l(e);
@@ -18491,7 +18508,7 @@ const HC = ({
18491
18508
  fontSize: "14px",
18492
18509
  lineHeight: "32px",
18493
18510
  color: "#3D3E45"
18494
- } }) }), UC = ({
18511
+ } }) }), KC = ({
18495
18512
  error: e,
18496
18513
  width: t,
18497
18514
  height: n
@@ -18508,7 +18525,7 @@ const HC = ({
18508
18525
  /* @__PURE__ */ r.jsx(Eo, { message: s })
18509
18526
  ] }) });
18510
18527
  };
18511
- function KC({
18528
+ function UC({
18512
18529
  context: e
18513
18530
  }) {
18514
18531
  const {
@@ -18529,7 +18546,7 @@ function KC({
18529
18546
  return !s || !i || !n ? null : c ? /* @__PURE__ */ r.jsx(z, { sx: {
18530
18547
  position: "relative",
18531
18548
  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: {
18549
+ }, 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
18550
  __html: d.interpretation.html
18534
18551
  } }, u)) });
18535
18552
  }
@@ -18592,7 +18609,7 @@ const JC = {
18592
18609
  displayGroup: "Merico suite",
18593
18610
  migrator: new XC(),
18594
18611
  name: "mericoGQM",
18595
- viewRender: KC,
18612
+ viewRender: UC,
18596
18613
  configRender: YC,
18597
18614
  createConfig() {
18598
18615
  return {
@@ -19010,7 +19027,7 @@ const b1 = ({
19010
19027
  }, children: [
19011
19028
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19012
19029
  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" }) })
19030
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
19014
19031
  ] }),
19015
19032
  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
19033
  ] })
@@ -19596,7 +19613,7 @@ function H1(e, t, n) {
19596
19613
  };
19597
19614
  }
19598
19615
  ae.use([Et, Nn, Bn, rs, ot, lt, ct, Xe, ts, ji]);
19599
- function U1({
19616
+ function K1({
19600
19617
  conf: e,
19601
19618
  data: t,
19602
19619
  width: n,
@@ -19622,7 +19639,7 @@ function U1({
19622
19639
  height: s
19623
19640
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
19624
19641
  }
19625
- function K1({
19642
+ function U1({
19626
19643
  context: e,
19627
19644
  instance: t
19628
19645
  }) {
@@ -19637,7 +19654,7 @@ function K1({
19637
19654
  width: l,
19638
19655
  height: c
19639
19656
  } = 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 }) });
19657
+ 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
19658
  }
19642
19659
  const Y1 = [{
19643
19660
  label: "solid",
@@ -19733,7 +19750,7 @@ function J1({
19733
19750
  control: e,
19734
19751
  render: ({
19735
19752
  field: l
19736
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
19753
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
19737
19754
  flexGrow: 1
19738
19755
  }, ...l })
19739
19756
  }
@@ -19743,12 +19760,12 @@ function J1({
19743
19760
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
19744
19761
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.lineStyle.color`, control: e, render: ({
19745
19762
  field: l
19746
- }) => /* @__PURE__ */ r.jsx(Ue, { ...l }) })
19763
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...l }) })
19747
19764
  ] }),
19748
19765
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
19749
19766
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
19750
19767
  field: l
19751
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
19768
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
19752
19769
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
19753
19770
  top: 15,
19754
19771
  right: 5
@@ -19793,7 +19810,7 @@ function Z1({
19793
19810
  }, children: [
19794
19811
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19795
19812
  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" }) })
19813
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
19797
19814
  ] }),
19798
19815
  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
19816
  ] });
@@ -19958,15 +19975,15 @@ function sk({
19958
19975
  /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
19959
19976
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.color`, control: e, render: ({
19960
19977
  field: a
19961
- }) => /* @__PURE__ */ r.jsx(Ue, { ...a }) })
19978
+ }) => /* @__PURE__ */ r.jsx(Ke, { ...a }) })
19962
19979
  ] }),
19963
19980
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
19964
19981
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
19965
19982
  field: a
19966
- }) => /* @__PURE__ */ r.jsx(K, { label: "Hide in legend", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19983
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19967
19984
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.invisible`, control: e, render: ({
19968
19985
  field: a
19969
- }) => /* @__PURE__ */ r.jsx(K, { label: "Invisible", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19986
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Invisible", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19970
19987
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed" }),
19971
19988
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
19972
19989
  top: 15,
@@ -20013,7 +20030,7 @@ function ik({
20013
20030
  }, children: [
20014
20031
  /* @__PURE__ */ r.jsxs(m.List, { children: [
20015
20032
  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" }) })
20033
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
20017
20034
  ] }),
20018
20035
  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
20036
  ] });
@@ -20068,7 +20085,7 @@ function ok({
20068
20085
  /* @__PURE__ */ r.jsx(D, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
20069
20086
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.show`, control: e, render: ({
20070
20087
  field: s
20071
- }) => /* @__PURE__ */ r.jsx(K, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
20088
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
20072
20089
  /* @__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
20090
  ] });
20074
20091
  }
@@ -20101,7 +20118,7 @@ function lk({
20101
20118
  }, children: [
20102
20119
  /* @__PURE__ */ r.jsxs(m.List, { children: [
20103
20120
  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" }) })
20121
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
20105
20122
  ] }),
20106
20123
  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
20124
  ] });
@@ -20243,7 +20260,7 @@ const pk = {
20243
20260
  displayGroup: "ECharts-based charts",
20244
20261
  migrator: new hk(),
20245
20262
  name: "horizontalBarChart",
20246
- viewRender: K1,
20263
+ viewRender: U1,
20247
20264
  configRender: dk,
20248
20265
  createConfig: () => ({
20249
20266
  version: 2,
@@ -20879,9 +20896,9 @@ const Mk = {
20879
20896
  }
20880
20897
  };
20881
20898
  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: [
20899
+ return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
20900
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(_n, { size: 14 }), children: "指标说明" }) }),
20901
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Ue, { fontSize: 14, sx: Ak, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
20885
20902
  /* @__PURE__ */ r.jsxs("tr", { children: [
20886
20903
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
20887
20904
  /* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -21030,7 +21047,7 @@ const Pk = ({
21030
21047
  }, children: [
21031
21048
  /* @__PURE__ */ r.jsxs(m.List, { children: [
21032
21049
  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" }) })
21050
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
21034
21051
  ] }),
21035
21052
  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
21053
  ] })
@@ -21059,7 +21076,7 @@ function Nk({
21059
21076
  field: n
21060
21077
  }) => (
21061
21078
  // @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: {
21079
+ /* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
21063
21080
  width: "48%"
21064
21081
  }, styles: {
21065
21082
  rightSection: {
@@ -21233,7 +21250,7 @@ const $o = ({
21233
21250
  data_keys: s,
21234
21251
  formatter: i,
21235
21252
  postfix: a
21236
- } = e, o = Fe(), l = T(() => {
21253
+ } = e, o = Oe(), l = T(() => {
21237
21254
  if (a.type === "text" && a.value)
21238
21255
  return a.value;
21239
21256
  if (a.type === "filter-option-label" && a.value) {
@@ -21262,7 +21279,7 @@ const $o = ({
21262
21279
  ] })
21263
21280
  ] })
21264
21281
  ] });
21265
- }), Uk = k(({
21282
+ }), Kk = k(({
21266
21283
  context: e,
21267
21284
  instance: t
21268
21285
  }) => {
@@ -21274,10 +21291,10 @@ const $o = ({
21274
21291
  width: l,
21275
21292
  height: c
21276
21293
  } = 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: {
21294
+ 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
21295
  overflow: "hidden"
21279
21296
  }, children: i.metrics.map((d) => /* @__PURE__ */ r.jsx(Hk, { metric: d, variableValueMap: o }, d.id)) });
21280
- }), Kk = [{
21297
+ }), Uk = [{
21281
21298
  label: "Text",
21282
21299
  value: "text"
21283
21300
  }, {
@@ -21299,7 +21316,7 @@ const $o = ({
21299
21316
  });
21300
21317
  };
21301
21318
  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 }),
21319
+ /* @__PURE__ */ r.jsx(A, { label: "Postfix Type", data: Uk, value: e.type, onChange: a }),
21303
21320
  e.type === "text" && /* @__PURE__ */ r.jsx(I, { label: "Postfix Content", value: e.value, onChange: (l) => {
21304
21321
  o(l.currentTarget.value);
21305
21322
  } }),
@@ -21545,7 +21562,7 @@ const iT = {
21545
21562
  displayGroup: "Merico suite",
21546
21563
  migrator: new sT(),
21547
21564
  name: "merico-stats",
21548
- viewRender: Uk,
21565
+ viewRender: Kk,
21549
21566
  configRender: nT,
21550
21567
  createConfig: () => ({
21551
21568
  version: 2,
@@ -21594,7 +21611,7 @@ function aT({
21594
21611
  field: s
21595
21612
  }) => (
21596
21613
  // @ts-expect-error type of onChange
21597
- /* @__PURE__ */ r.jsx(U, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
21614
+ /* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(_i, { size: 16 }), disabled: !n, ...s })
21598
21615
  ) })
21599
21616
  ] })
21600
21617
  ] });
@@ -21663,7 +21680,7 @@ const oT = ({
21663
21680
  }, children: [
21664
21681
  /* @__PURE__ */ r.jsxs(m.List, { children: [
21665
21682
  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" }) })
21683
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
21667
21684
  ] }),
21668
21685
  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
21686
  ] })
@@ -21705,7 +21722,7 @@ const dT = ({
21705
21722
  const [s, {
21706
21723
  setTrue: i,
21707
21724
  setFalse: a
21708
- }] = Ee(), [o, l] = N(e);
21725
+ }] = Fe(), [o, l] = N(e);
21709
21726
  O(() => {
21710
21727
  l(e);
21711
21728
  }, [e]);
@@ -21739,7 +21756,7 @@ const dT = ({
21739
21756
  flexGrow: 0
21740
21757
  }, children: "Customize Label" }),
21741
21758
  /* @__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) }),
21759
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
21743
21760
  /* @__PURE__ */ r.jsx(dT, { value: o.func_content, onChange: h, disabled: !o.enabled }),
21744
21761
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
21745
21762
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -21777,7 +21794,7 @@ function hT({
21777
21794
  field: n
21778
21795
  }) => (
21779
21796
  // @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: {
21797
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
21781
21798
  width: "48%"
21782
21799
  }, styles: {
21783
21800
  rightSection: {
@@ -21839,7 +21856,7 @@ function xT({
21839
21856
  field: n
21840
21857
  }) => (
21841
21858
  // @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: {
21859
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
21843
21860
  width: "48%"
21844
21861
  }, styles: {
21845
21862
  rightSection: {
@@ -22377,14 +22394,14 @@ const LT = {
22377
22394
  value: e.value,
22378
22395
  type: "single",
22379
22396
  category: "basic"
22380
- })), RT = [Kx, Yx, Zx, Jx, Xx, em], yd = () => ({
22397
+ })), RT = [Ux, Yx, Zx, Jx, Xx, em], yd = () => ({
22381
22398
  id: "dashboard",
22382
22399
  version: Xl,
22383
22400
  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],
22401
+ viz: [ci, yS, WC, Y0, NS, Nw, pk, fm, xg, pv, Uv, T1, Iw, Wj, oS, h0, N0, JC, Gk, LT, iT, Ig],
22385
22402
  color: [...AT, ...RT]
22386
22403
  }
22387
- }), Xn = new sm(), De = {
22404
+ }), Xn = new sm(), ze = {
22388
22405
  pluginManager: Vt("pluginManager"),
22389
22406
  vizManager: Vt("vizManager"),
22390
22407
  colorManager: Vt("colorManager"),
@@ -22450,7 +22467,7 @@ const ET = ({
22450
22467
  onChange: o
22451
22468
  }) => /* @__PURE__ */ r.jsxs(z, { children: [
22452
22469
  /* @__PURE__ */ r.jsx(j, { children: " " }),
22453
- /* @__PURE__ */ r.jsx(K, { label: /* @__PURE__ */ r.jsxs(b, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22470
+ /* @__PURE__ */ r.jsx(U, { label: /* @__PURE__ */ r.jsxs(b, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22454
22471
  /* @__PURE__ */ r.jsx(z, { sx: {
22455
22472
  flexGrow: 1
22456
22473
  }, children: e }),
@@ -22638,7 +22655,7 @@ const ET = ({
22638
22655
  };
22639
22656
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
22640
22657
  /* @__PURE__ */ r.jsx(D, { variant: "dashed", my: 10 }),
22641
- /* @__PURE__ */ r.jsx(Ke, { withBorder: !1, sx: {
22658
+ /* @__PURE__ */ r.jsx(Ue, { withBorder: !1, sx: {
22642
22659
  "tbody > tr > th, tbody > tr > td": {
22643
22660
  borderTop: "none",
22644
22661
  padding: "2px 6px"
@@ -22932,9 +22949,9 @@ const ET = ({
22932
22949
  }, F = y && (l == null ? void 0 : l.length) > 0, [B, re] = N(""), be = T(() => {
22933
22950
  if (!B)
22934
22951
  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);
22952
+ const ne = B.toLowerCase(), Se = (Ie) => {
22953
+ var Le;
22954
+ return ((Le = Ie.description) == null ? void 0 : Le.toLowerCase().includes(ne)) || Ie.label.toLowerCase().includes(ne);
22938
22955
  };
22939
22956
  return d.filter(Se);
22940
22957
  }, [B, d]);
@@ -22957,7 +22974,7 @@ const ET = ({
22957
22974
  value: n,
22958
22975
  onChange: s
22959
22976
  }) => {
22960
- const i = Fe(), a = !!t.options_query_id, {
22977
+ const i = Oe(), a = !!t.options_query_id, {
22961
22978
  state: o,
22962
22979
  error: l
22963
22980
  } = 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 +22997,7 @@ const ET = ({
22980
22997
  value: n,
22981
22998
  onChange: s
22982
22999
  }) => {
22983
- const i = Fe(), a = !!t.options_query_id, {
23000
+ const i = Oe(), a = !!t.options_query_id, {
22984
23001
  state: o,
22985
23002
  error: l
22986
23003
  } = i.getDataStuffByID(t.options_query_id), c = o === "loading";
@@ -22997,7 +23014,7 @@ const ET = ({
22997
23014
  }
22998
23015
  }, itemComponent: QT });
22999
23016
  });
23000
- function UT({
23017
+ function KT({
23001
23018
  label: e,
23002
23019
  config: t,
23003
23020
  value: n,
@@ -23009,7 +23026,7 @@ function UT({
23009
23026
  }
23010
23027
  } });
23011
23028
  }
23012
- const KT = ({
23029
+ const UT = ({
23013
23030
  rotate: e,
23014
23031
  onClick: t
23015
23032
  }) => /* @__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 +23038,7 @@ const KT = ({
23021
23038
  }) => (n === "0-0-value" && console.log(i), t ? /* @__PURE__ */ r.jsx("span", { style: {
23022
23039
  width: "14px",
23023
23040
  display: "inline-block"
23024
- } }) : /* @__PURE__ */ r.jsx(KT, { rotate: e ? "0" : "-90", onClick: s, ...i })), XT = ({
23041
+ } }) : /* @__PURE__ */ r.jsx(UT, { rotate: e ? "0" : "-90", onClick: s, ...i })), XT = ({
23025
23042
  onClick: e
23026
23043
  }) => /* @__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
23044
  /* @__PURE__ */ r.jsx("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
@@ -23387,7 +23404,7 @@ const KT = ({
23387
23404
  case "tree-select":
23388
23405
  return /* @__PURE__ */ r.jsx(tI, { ...s, ...i, config: t });
23389
23406
  case "text-input":
23390
- return /* @__PURE__ */ r.jsx(UT, { ...s, ...i, config: t });
23407
+ return /* @__PURE__ */ r.jsx(KT, { ...s, ...i, config: t });
23391
23408
  case "date-range":
23392
23409
  return /* @__PURE__ */ r.jsx(vd, { ...s, ...i, config: t });
23393
23410
  case "checkbox":
@@ -23420,7 +23437,7 @@ function iI(e) {
23420
23437
  const _d = k(function({
23421
23438
  view: t
23422
23439
  }) {
23423
- const n = Fe(), {
23440
+ const n = Oe(), {
23424
23441
  control: s,
23425
23442
  handleSubmit: i,
23426
23443
  reset: a
@@ -23713,7 +23730,7 @@ const oI = f.model("PanelLayoutMeta", {
23713
23730
  }
23714
23731
  })), Ss = (e) => hl(e, (t, n) => {
23715
23732
  if (n !== void 0 && t)
23716
- return Kt(t);
23733
+ return Ut(t);
23717
23734
  });
23718
23735
  var et = /* @__PURE__ */ ((e) => (e.Postgresql = "postgresql", e.MySQL = "mysql", e.HTTP = "http", e))(et || {});
23719
23736
  const xI = f.model("QueryMeta", {
@@ -23801,7 +23818,7 @@ const xI = f.model("QueryMeta", {
23801
23818
  e.value = t;
23802
23819
  }
23803
23820
  }));
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 || {});
23821
+ 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
23822
  const kd = f.model("FilterCheckboxConfigMeta", {
23806
23823
  _name: f.literal("checkbox"),
23807
23824
  description: f.optional(f.string, ""),
@@ -24026,7 +24043,7 @@ const gI = f.model("FilterDateRangeConfigMeta", {
24026
24043
  }
24027
24044
  })).actions((e) => ({
24028
24045
  afterCreate() {
24029
- wt(e, it(() => Kt(e.default_selection), e.setDefaultSelection, {
24046
+ wt(e, it(() => Ut(e.default_selection), e.setDefaultSelection, {
24030
24047
  fireImmediately: !0,
24031
24048
  delay: 0
24032
24049
  }));
@@ -24084,7 +24101,7 @@ const gI = f.model("FilterDateRangeConfigMeta", {
24084
24101
  }
24085
24102
  })).actions((e) => ({
24086
24103
  afterCreate() {
24087
- wt(e, it(() => Kt(e.default_selection), e.setDefaultSelection, {
24104
+ wt(e, it(() => Ut(e.default_selection), e.setDefaultSelection, {
24088
24105
  fireImmediately: !0,
24089
24106
  delay: 0
24090
24107
  }));
@@ -24255,7 +24272,7 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24255
24272
  order: f.number,
24256
24273
  visibleInViewsIDs: f.array(f.string),
24257
24274
  auto_submit: f.optional(f.boolean, !1),
24258
- type: f.enumeration("DashboardFilterType", [Le.Select, Le.MultiSelect, Le.TreeSelect, Le.TextInput, Le.Checkbox, Le.DateRange]),
24275
+ type: f.enumeration("DashboardFilterType", [Ae.Select, Ae.MultiSelect, Ae.TreeSelect, Ae.TextInput, Ae.Checkbox, Ae.DateRange]),
24259
24276
  config: f.union(zd, Dd, Ad, Md, kd, Id)
24260
24277
  }).views((e) => ({
24261
24278
  get plainDefaultValue() {
@@ -24263,10 +24280,10 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24263
24280
  return Array.isArray(t) ? [...t] : t;
24264
24281
  },
24265
24282
  get usingDefaultValue() {
24266
- return e.type !== Le.TreeSelect;
24283
+ return e.type !== Ae.TreeSelect;
24267
24284
  },
24268
24285
  get auto_submit_supported() {
24269
- return [Le.Select, Le.Checkbox, Le.DateRange].includes(e.type);
24286
+ return [Ae.Select, Ae.Checkbox, Ae.DateRange].includes(e.type);
24270
24287
  }
24271
24288
  })).views((e) => ({
24272
24289
  get json() {
@@ -24288,7 +24305,7 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24288
24305
  order: i,
24289
24306
  config: c.json,
24290
24307
  auto_submit: o,
24291
- visibleInViewsIDs: Kt(a)
24308
+ visibleInViewsIDs: Ut(a)
24292
24309
  };
24293
24310
  },
24294
24311
  get visibleInViewsIDSet() {
@@ -24313,22 +24330,22 @@ const Ad = f.compose("FilterTreeSelectConfigMeta", f.model({
24313
24330
  },
24314
24331
  setType(t) {
24315
24332
  switch (t) {
24316
- case Le.Select:
24333
+ case Ae.Select:
24317
24334
  e.config = vI();
24318
24335
  break;
24319
- case Le.MultiSelect:
24336
+ case Ae.MultiSelect:
24320
24337
  e.config = jI();
24321
24338
  break;
24322
- case Le.TreeSelect:
24339
+ case Ae.TreeSelect:
24323
24340
  e.config = SI();
24324
24341
  break;
24325
- case Le.TextInput:
24342
+ case Ae.TextInput:
24326
24343
  e.config = Ld();
24327
24344
  break;
24328
- case Le.Checkbox:
24345
+ case Ae.Checkbox:
24329
24346
  e.config = fI();
24330
24347
  break;
24331
- case Le.DateRange:
24348
+ case Ae.DateRange:
24332
24349
  e.config = bI();
24333
24350
  break;
24334
24351
  }
@@ -24979,7 +24996,7 @@ const Hd = f.model("FiltersRenderModel", {
24979
24996
  In("Filters", n);
24980
24997
  }
24981
24998
  }));
24982
- function Ud(e) {
24999
+ function Kd(e) {
24983
25000
  return {
24984
25001
  current: e,
24985
25002
  values: OI(e)
@@ -25240,7 +25257,7 @@ const $r = {
25240
25257
  delay: 0
25241
25258
  }));
25242
25259
  }
25243
- })), Kd = f.model("QueriesRenderModel", {
25260
+ })), Ud = f.model("QueriesRenderModel", {
25244
25261
  current: f.optional(f.array(WI), [])
25245
25262
  }).views((e) => ({
25246
25263
  get idSet() {
@@ -25397,7 +25414,7 @@ function Yr(e, t, n, s) {
25397
25414
  return i;
25398
25415
  }, {});
25399
25416
  }
25400
- class UI {
25417
+ class KI {
25401
25418
  constructor(t) {
25402
25419
  V(this, "origin");
25403
25420
  V(this, "copy");
@@ -25419,7 +25436,7 @@ class UI {
25419
25436
  Qe(this.copy, t);
25420
25437
  }
25421
25438
  }
25422
- const KI = (e) => new UI(e), YI = k(({
25439
+ const UI = (e) => new KI(e), YI = k(({
25423
25440
  view: e
25424
25441
  }) => {
25425
25442
  const t = le(), n = ce(), s = Ct(), {
@@ -25544,7 +25561,7 @@ class eD {
25544
25561
  V(this, "runningMigration");
25545
25562
  V(this, "panelModel");
25546
25563
  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);
25564
+ 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
25565
  }
25549
25566
  async createMigrationTask() {
25550
25567
  const t = [];
@@ -25589,15 +25606,15 @@ function Zd(e) {
25589
25606
  panel: t
25590
25607
  } = kn();
25591
25608
  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);
25609
+ const s = n.getRequired(ze.vizManager), i = s.resolveComponent(e.viz.type);
25610
+ return n.createScoped().provideFactory(ze.instanceScope.vizInstance, () => s.getOrCreateInstance(e)).provideFactory(ze.instanceScope.interactionManager, (a) => {
25611
+ const o = a.getRequired(ze.instanceScope.vizInstance);
25595
25612
  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));
25613
+ }).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
25614
  }, [e.viz.type, e.viz.conf]);
25598
25615
  }
25599
25616
  function eu(e) {
25600
- const [t, n] = N(!1), s = jd().getRequired(De.instanceScope.migrator);
25617
+ const [t, n] = N(!1), s = jd().getRequired(ze.instanceScope.migrator);
25601
25618
  return ur(async () => {
25602
25619
  const i = s.status === Pr.notStarted;
25603
25620
  n(s.status === Pr.done), s.status === Pr.notStarted && s.runMigration().then((a) => {
@@ -25608,7 +25625,7 @@ function eu(e) {
25608
25625
  }, [s]), t;
25609
25626
  }
25610
25627
  function tu(e, t) {
25611
- const n = jd().getRequired(De.instanceScope.vizInstance);
25628
+ const n = jd().getRequired(ze.instanceScope.vizInstance);
25612
25629
  return O(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (s) => {
25613
25630
  e(s);
25614
25631
  })), [e, t.viz.type]), n;
@@ -25627,7 +25644,7 @@ function tD({
25627
25644
  });
25628
25645
  return ur(async () => {
25629
25646
  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..." });
25647
+ }, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Kx, { ...t }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update..." });
25631
25648
  }
25632
25649
  function nD(e) {
25633
25650
  const {
@@ -25698,7 +25715,7 @@ const sD = k(function({
25698
25715
  /* @__PURE__ */ r.jsx(j, { color: "gray", align: "center", size: "sm", children: e.queryStateMessages })
25699
25716
  ] })), nu = k(({
25700
25717
  panel: e
25701
- }) => /* @__PURE__ */ r.jsxs(Ut, { className: "panel-viz-section", direction: "column", sx: {
25718
+ }) => /* @__PURE__ */ r.jsxs(Kt, { className: "panel-viz-section", direction: "column", sx: {
25702
25719
  position: "relative",
25703
25720
  width: "100%"
25704
25721
  }, children: [
@@ -25815,7 +25832,7 @@ const su = k(({
25815
25832
  function mD(e, t, n) {
25816
25833
  const {
25817
25834
  panels: s
25818
- } = Fe(), i = e.id === "Main", [a, o] = L.useState(() => i && s.findByID(t) ? t : null), l = L.useCallback((h) => {
25835
+ } = Oe(), i = e.id === "Main", [a, o] = L.useState(() => i && s.findByID(t) ? t : null), l = L.useCallback((h) => {
25819
25836
  o(h), i && n(h);
25820
25837
  }, [i, n]), c = L.useCallback(() => {
25821
25838
  o(null), i && n("");
@@ -25856,7 +25873,7 @@ const fD = L.forwardRef(({
25856
25873
  view: e,
25857
25874
  className: t = "layout"
25858
25875
  }) => {
25859
- const n = Fe(), {
25876
+ const n = Oe(), {
25860
25877
  panels: s,
25861
25878
  layouts: i
25862
25879
  } = n.panels.panelsByIDs(e.panelIDs), a = L.useCallback((l) => {
@@ -25883,7 +25900,7 @@ const fD = L.forwardRef(({
25883
25900
  const {
25884
25901
  panels: s,
25885
25902
  layouts: i
25886
- } = Fe().panels.panelsByIDs(t.panelIDs);
25903
+ } = Oe().panels.panelsByIDs(t.panelIDs);
25887
25904
  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
25905
  ...a.layout
25889
25906
  }, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(su, { view: t, panel: a }) }, a.id)) });
@@ -25918,7 +25935,7 @@ const wD = k(({
25918
25935
  const [t, {
25919
25936
  setTrue: n,
25920
25937
  setFalse: s
25921
- }] = Ee(!1), i = tc(), a = Fe(), o = () => {
25938
+ }] = Fe(!1), i = tc(), a = Oe(), o = () => {
25922
25939
  const l = JSON.stringify(a.contentJSON, null, 2), c = `${i.name}__${a.name}`;
25923
25940
  In(c, l);
25924
25941
  };
@@ -25961,7 +25978,7 @@ const wD = k(({
25961
25978
  children: e,
25962
25979
  view: t
25963
25980
  }) => {
25964
- const n = Fe(), s = t.config, i = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
25981
+ const n = Oe(), s = t.config, i = n.views.visibleViewIDs.includes(t.id), a = () => n.views.rmVisibleViewID(t.id), {
25965
25982
  ref: o,
25966
25983
  downloadScreenshot: l
25967
25984
  } = ja(t);
@@ -26009,7 +26026,7 @@ const wD = k(({
26009
26026
  } : {}, CD = k(({
26010
26027
  view: e
26011
26028
  }) => {
26012
- const t = Fe(), n = e.config;
26029
+ const t = Oe(), n = e.config;
26013
26030
  return /* @__PURE__ */ r.jsxs(m, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: e.tab, onTabChange: e.setTab, styles: {
26014
26031
  root: {
26015
26032
  height: "100%",
@@ -26158,7 +26175,7 @@ const ID = k(({
26158
26175
  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
26176
  /* @__PURE__ */ r.jsxs(m.List, { grow: i.grow, children: [
26160
26177
  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" }) })
26178
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(Me, { size: 18, color: "#228be6" }) })
26162
26179
  ] }),
26163
26180
  i.tabs.map((l, c) => {
26164
26181
  const d = n.views.findByID(l.view_id);
@@ -26309,7 +26326,7 @@ const OD = f.compose("FiltersModel", Hd, f.model("FiltersModel", {
26309
26326
  }));
26310
26327
  },
26311
26328
  get selects() {
26312
- return e.current.filter((t) => t.type === Le.Select).map((t) => ({
26329
+ return e.current.filter((t) => t.type === Ae.Select).map((t) => ({
26313
26330
  label: t.label ?? t.id,
26314
26331
  value: t.id
26315
26332
  }));
@@ -26363,7 +26380,7 @@ const OD = f.compose("FiltersModel", Hd, f.model("FiltersModel", {
26363
26380
  t();
26364
26381
  }
26365
26382
  };
26366
- }), $D = Kd.views((e) => ({
26383
+ }), $D = Ud.views((e) => ({
26367
26384
  get options() {
26368
26385
  const t = e.current.map((n) => ({
26369
26386
  value: n.id,
@@ -26793,7 +26810,7 @@ const HD = f.model("EditorModel", {
26793
26810
  }, {
26794
26811
  label: "Mock Context",
26795
26812
  value: "_MOCK_CONTEXT_",
26796
- Icon: Uh,
26813
+ Icon: Kh,
26797
26814
  _type: "mock_context"
26798
26815
  }, {
26799
26816
  label: "Filters",
@@ -26804,7 +26821,7 @@ const HD = f.model("EditorModel", {
26804
26821
  }, {
26805
26822
  label: "SQL Snippets",
26806
26823
  value: "_SQL_SNIPPETS_",
26807
- Icon: Kh,
26824
+ Icon: Uh,
26808
26825
  children: [cn("_SQL_SNIPPETS_SETTINGS_"), ...i.options, cn("_Add_A_SQL_SNIPPET_")],
26809
26826
  _type: "GROUP"
26810
26827
  }, {
@@ -26848,7 +26865,7 @@ const HD = f.model("EditorModel", {
26848
26865
  const n = QD(t);
26849
26866
  n && e.setPath(n);
26850
26867
  }
26851
- })), UD = Wd.views((e) => ({
26868
+ })), KD = Wd.views((e) => ({
26852
26869
  get dataFieldOptions() {
26853
26870
  return e.queryIDs.length === 0 ? [] : e.queries.map((t) => {
26854
26871
  const n = t.data;
@@ -26858,6 +26875,21 @@ const HD = f.model("EditorModel", {
26858
26875
  group: t.name
26859
26876
  }));
26860
26877
  }).flat();
26878
+ },
26879
+ explainDataKey(t) {
26880
+ const {
26881
+ queryID: n,
26882
+ columnKey: s
26883
+ } = $(t), i = e.queries.find((a) => a.id === n);
26884
+ return i ? {
26885
+ queryID: n,
26886
+ queryName: i.name,
26887
+ columnKey: s
26888
+ } : {
26889
+ queryID: n,
26890
+ queryName: null,
26891
+ columnKey: s
26892
+ };
26861
26893
  }
26862
26894
  })).actions((e) => ({
26863
26895
  removeSelf() {
@@ -26867,8 +26899,8 @@ const HD = f.model("EditorModel", {
26867
26899
  moveToView(t, n) {
26868
26900
  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
26901
  }
26870
- })), KD = f.compose("PanelsModel", Gd, f.model({
26871
- list: f.optional(f.array(UD), [])
26902
+ })), UD = f.compose("PanelsModel", Gd, f.model({
26903
+ list: f.optional(f.array(KD), [])
26872
26904
  })).views((e) => ({
26873
26905
  editorOptions(t, n) {
26874
26906
  const {
@@ -27064,7 +27096,7 @@ const JD = f.model({
27064
27096
  queries: $D,
27065
27097
  sqlSnippets: PD,
27066
27098
  views: XD,
27067
- panels: KD,
27099
+ panels: UD,
27068
27100
  mock_context: Sd,
27069
27101
  /**
27070
27102
  * this field should be excluded from snapshot
@@ -27385,7 +27417,7 @@ function ZD({
27385
27417
  create_time: s,
27386
27418
  update_time: i,
27387
27419
  version: o,
27388
- filters: Ud(l),
27420
+ filters: Kd(l),
27389
27421
  queries: {
27390
27422
  current: u
27391
27423
  },
@@ -27537,7 +27569,7 @@ function cu(e, t) {
27537
27569
  }, [e]);
27538
27570
  }
27539
27571
  function du(e) {
27540
- return L.useCallback((t) => t.provideValue(De.pluginManager, e.pluginManager).provideValue(De.vizManager, e.vizManager).provideValue(De.colorManager, e.colorManager), []);
27572
+ return L.useCallback((t) => t.provideValue(ze.pluginManager, e.pluginManager).provideValue(ze.vizManager, e.vizManager).provideValue(ze.colorManager, e.colorManager), []);
27541
27573
  }
27542
27574
  const nz = k(() => {
27543
27575
  const e = tc(), t = ce(), n = () => {
@@ -27720,7 +27752,7 @@ const oz = k(({
27720
27752
  const [n, {
27721
27753
  setTrue: s,
27722
27754
  setFalse: i
27723
- }] = Ee(), [a, o] = N(e ?? pi), l = (p) => {
27755
+ }] = Fe(), [a, o] = N(e ?? pi), l = (p) => {
27724
27756
  o({
27725
27757
  ...a,
27726
27758
  enabled: p
@@ -27750,7 +27782,7 @@ const oz = k(({
27750
27782
  flexGrow: 0
27751
27783
  }, children: /* @__PURE__ */ r.jsx(ml, { size: 14 }) }),
27752
27784
  /* @__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) }),
27785
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (p) => l(p.currentTarget.checked) }),
27754
27786
  /* @__PURE__ */ r.jsx(uz, { value: a.func_content, onChange: u, disabled: !a.enabled }),
27755
27787
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
27756
27788
  /* @__PURE__ */ r.jsx(C, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -27769,7 +27801,7 @@ const oz = k(({
27769
27801
  const t = e.config, n = t.custom_modal_title.value;
27770
27802
  return /* @__PURE__ */ r.jsxs(w, { children: [
27771
27803
  /* @__PURE__ */ r.jsx(D, { mt: 8, label: "Modal settings", labelPosition: "center" }),
27772
- /* @__PURE__ */ r.jsxs(Ut, { gap: 10, children: [
27804
+ /* @__PURE__ */ r.jsxs(Kt, { gap: 10, children: [
27773
27805
  /* @__PURE__ */ r.jsx(I, { label: "Modal Title", value: n, onChange: _.noop, disabled: !0, sx: {
27774
27806
  flexGrow: 1
27775
27807
  } }),
@@ -27812,7 +27844,7 @@ const oz = k(({
27812
27844
  ] }) : null), Cs = ({
27813
27845
  headers: e,
27814
27846
  rows: t
27815
- }) => /* @__PURE__ */ r.jsxs(Ke, { fontSize: "xs", highlightOnHover: !0, sx: {
27847
+ }) => /* @__PURE__ */ r.jsxs(Ue, { fontSize: "xs", highlightOnHover: !0, sx: {
27816
27848
  tableLayout: "fixed",
27817
27849
  fontFamily: "monospace"
27818
27850
  }, children: [
@@ -28013,7 +28045,7 @@ const oz = k(({
28013
28045
  }] = xr(!1), [s, {
28014
28046
  setTrue: i,
28015
28047
  setFalse: a
28016
- }] = Ee(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === q.Tabs;
28048
+ }] = Fe(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === q.Tabs;
28017
28049
  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
28050
  ...Wo,
28019
28051
  transform: "none !important"
@@ -28330,19 +28362,19 @@ function Hz(e) {
28330
28362
  };
28331
28363
  return Qz(l);
28332
28364
  }
28333
- const Us = {
28365
+ const Ks = {
28334
28366
  "builtin:op:open-link": /* @__PURE__ */ r.jsx(Es, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(Zh, { size: 14 }) }),
28335
28367
  "builtin:op:set_filter_values": /* @__PURE__ */ r.jsx(Es, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(ep, { size: 14 }) }),
28336
28368
  "builtin:op:clear_filter_values": /* @__PURE__ */ r.jsx(Es, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r.jsx(tp, { size: 14 }) })
28337
28369
  };
28338
- function Uz(e) {
28370
+ function Kz(e) {
28339
28371
  const t = [];
28340
28372
  return e.forEach((n) => {
28341
28373
  switch (n.schemaRef) {
28342
28374
  case "builtin:op:open-link":
28343
28375
  t.push({
28344
28376
  key: n.urlTemplate,
28345
- icon: Us[n.schemaRef],
28377
+ icon: Ks[n.schemaRef],
28346
28378
  text: /* @__PURE__ */ r.jsxs(b, { spacing: 4, children: [
28347
28379
  /* @__PURE__ */ r.jsx(j, { children: "Open: " }),
28348
28380
  /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: n.shortURLTemplate })
@@ -28356,7 +28388,7 @@ function Uz(e) {
28356
28388
  }) => {
28357
28389
  t.push({
28358
28390
  key: n.schemaRef + s,
28359
- icon: Us[n.schemaRef],
28391
+ icon: Ks[n.schemaRef],
28360
28392
  text: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
28361
28393
  "Set Filter: ",
28362
28394
  i
@@ -28371,7 +28403,7 @@ function Uz(e) {
28371
28403
  }) => {
28372
28404
  t.push({
28373
28405
  key: n.schemaRef + s,
28374
- icon: Us[n.schemaRef],
28406
+ icon: Ks[n.schemaRef],
28375
28407
  text: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
28376
28408
  "Clear Filter: ",
28377
28409
  i
@@ -28382,14 +28414,14 @@ function Uz(e) {
28382
28414
  }
28383
28415
  }), t;
28384
28416
  }
28385
- const Kz = Ku(({
28417
+ const Uz = Uu(({
28386
28418
  data: e,
28387
28419
  isConnectable: t,
28388
28420
  sourcePosition: n = vt.Right,
28389
28421
  targetPosition: s = vt.Left,
28390
28422
  ...i
28391
28423
  }) => {
28392
- const a = T(() => Uz(e.interactions), [e.interactions]);
28424
+ const a = T(() => Kz(e.interactions), [e.interactions]);
28393
28425
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28394
28426
  /* @__PURE__ */ r.jsx(io, { type: "target", position: s, isConnectable: t }),
28395
28427
  /* @__PURE__ */ r.jsx(z, { sx: {
@@ -28397,17 +28429,17 @@ const Kz = Ku(({
28397
28429
  top: 0,
28398
28430
  right: 0
28399
28431
  }, 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)) }) })
28432
+ /* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
28433
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(j, { children: e.label }) }),
28434
+ /* @__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
28435
  ] }),
28404
28436
  /* @__PURE__ */ r.jsx(io, { type: "source", position: n, isConnectable: t })
28405
28437
  ] });
28406
28438
  });
28407
28439
  const Yz = {
28408
- interaction: Kz
28440
+ interaction: Uz
28409
28441
  }, Xz = k(() => {
28410
- const e = Fe(), {
28442
+ const e = Oe(), {
28411
28443
  edges: t,
28412
28444
  nodes: n
28413
28445
  } = Hz(e);
@@ -28575,7 +28607,7 @@ const tM = k(() => {
28575
28607
  config: t
28576
28608
  }) {
28577
28609
  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" }),
28610
+ /* @__PURE__ */ r.jsx(U, { checked: t.default_value, onChange: (n) => t.setDefaultValue(n.currentTarget.checked), label: "Default Checked" }),
28579
28611
  /* @__PURE__ */ r.jsx(ia, { label: "Description", value: t.description, onChange: t.setDescription, styles: {
28580
28612
  root: {
28581
28613
  flexGrow: 1,
@@ -28603,8 +28635,8 @@ const tM = k(() => {
28603
28635
  }) {
28604
28636
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28605
28637
  /* @__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" })
28638
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28639
+ /* @__PURE__ */ r.jsx(U, { checked: t.allowSingleDateInRange, onChange: (n) => t.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
28608
28640
  ] }),
28609
28641
  /* @__PURE__ */ r.jsx(A, { data: sM, label: "Display Format", value: t.inputFormat, onChange: t.setInputFormat }),
28610
28642
  /* @__PURE__ */ r.jsx(
@@ -28616,7 +28648,7 @@ const tM = k(() => {
28616
28648
  onChange: t.setDefaultValue
28617
28649
  }
28618
28650
  ),
28619
- /* @__PURE__ */ r.jsx(U, { label: "Max Days", min: 0, value: t.max_days, onChange: t.setMaxDays, hideControls: !0, sx: {
28651
+ /* @__PURE__ */ r.jsx(K, { label: "Max Days", min: 0, value: t.max_days, onChange: t.setMaxDays, hideControls: !0, sx: {
28620
28652
  width: "149px"
28621
28653
  } })
28622
28654
  ] });
@@ -28660,7 +28692,7 @@ const tM = k(() => {
28660
28692
  });
28661
28693
  }, s = t.static_options, i = [...s];
28662
28694
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28663
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28695
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28664
28696
  /* @__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
28697
  /* @__PURE__ */ r.jsx(D, { label: "Configure options", labelPosition: "center" }),
28666
28698
  /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
@@ -28684,7 +28716,7 @@ const tM = k(() => {
28684
28716
  }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: "Using query" }) })
28685
28717
  ] }),
28686
28718
  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: {
28719
+ s.map((a, o) => /* @__PURE__ */ r.jsxs(Kt, { gap: 10, sx: {
28688
28720
  position: "relative"
28689
28721
  }, pr: "40px", children: [
28690
28722
  /* @__PURE__ */ r.jsx(I, { label: "Label", required: !0, value: t.static_options[o].label, onChange: (l) => {
@@ -28708,7 +28740,7 @@ const tM = k(() => {
28708
28740
  }, mx: "auto", children: "Add an Option" })
28709
28741
  ] }),
28710
28742
  /* @__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" }),
28743
+ /* @__PURE__ */ r.jsx(K, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
28712
28744
  /* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
28713
28745
  /* @__PURE__ */ r.jsx(mu, {})
28714
28746
  ] });
@@ -28725,7 +28757,7 @@ const tM = k(() => {
28725
28757
  value: ""
28726
28758
  }, ...s];
28727
28759
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28728
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28760
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
28729
28761
  /* @__PURE__ */ r.jsx(I, { label: "Width", value: t.width, onChange: (a) => t.setWidth(a.currentTarget.value), placeholder: "200px" }),
28730
28762
  /* @__PURE__ */ r.jsx(D, { label: "Configure options", labelPosition: "center" }),
28731
28763
  /* @__PURE__ */ r.jsxs(w, { spacing: 10, sx: {
@@ -28749,7 +28781,7 @@ const tM = k(() => {
28749
28781
  }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: "Using query" }) })
28750
28782
  ] }),
28751
28783
  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: {
28784
+ s.map((a, o) => /* @__PURE__ */ r.jsxs(Kt, { gap: 10, sx: {
28753
28785
  position: "relative"
28754
28786
  }, pr: "40px", children: [
28755
28787
  /* @__PURE__ */ r.jsx(I, { label: "Label", required: !0, value: t.static_options[o].label, onChange: (l) => {
@@ -28773,7 +28805,7 @@ const tM = k(() => {
28773
28805
  }, mx: "auto", children: "Add an Option" })
28774
28806
  ] }),
28775
28807
  /* @__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" }),
28808
+ /* @__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
28809
  /* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
28778
28810
  /* @__PURE__ */ r.jsx(mu, {})
28779
28811
  ] });
@@ -28784,7 +28816,7 @@ const tM = k(() => {
28784
28816
  /* @__PURE__ */ r.jsx(I, { label: "Default Value", value: t.default_value, onChange: (n) => {
28785
28817
  t.setDefaultValue(n.currentTarget.value);
28786
28818
  } }),
28787
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
28819
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
28788
28820
  ] });
28789
28821
  }), dM = `
28790
28822
  // row
@@ -28804,11 +28836,11 @@ const tM = k(() => {
28804
28836
  config: t
28805
28837
  }) {
28806
28838
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28807
- /* @__PURE__ */ r.jsx(K, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28839
+ /* @__PURE__ */ r.jsx(U, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
28808
28840
  /* @__PURE__ */ r.jsx(I, { label: "Min-width", value: t.min_width, onChange: (n) => t.setMinWidth(n.currentTarget.value), placeholder: "200px" }),
28809
28841
  /* @__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" }),
28842
+ /* @__PURE__ */ r.jsx(U, { checked: t.treeCheckStrictly, onChange: (n) => t.setTreeCheckStrictly(n.currentTarget.checked), label: "Parent and children nodes are not associated" }),
28843
+ /* @__PURE__ */ r.jsx(K, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
28812
28844
  /* @__PURE__ */ r.jsx(Sa, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
28813
28845
  /* @__PURE__ */ r.jsx(uM, {})
28814
28846
  ] });
@@ -28865,7 +28897,7 @@ const tM = k(() => {
28865
28897
  /* @__PURE__ */ r.jsxs(w, { children: [
28866
28898
  /* @__PURE__ */ r.jsxs(b, { noWrap: !0, children: [
28867
28899
  /* @__PURE__ */ r.jsx(
28868
- U,
28900
+ K,
28869
28901
  {
28870
28902
  label: "Placement Order",
28871
28903
  required: !0,
@@ -28877,7 +28909,7 @@ const tM = k(() => {
28877
28909
  }
28878
28910
  }
28879
28911
  ),
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 })
28912
+ 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
28913
  ] }),
28882
28914
  /* @__PURE__ */ r.jsx(nr, { label: "Visible in...", data: n.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
28883
28915
  /* @__PURE__ */ r.jsx(I, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (i) => {
@@ -28954,7 +28986,7 @@ const tM = k(() => {
28954
28986
  userSelect: "none",
28955
28987
  cursor: "default"
28956
28988
  }, children: "Manage Filters" }) }),
28957
- /* @__PURE__ */ r.jsx(Ut, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
28989
+ /* @__PURE__ */ r.jsx(Kt, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
28958
28990
  /* @__PURE__ */ r.jsxs(C.Group, { children: [
28959
28991
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: o, children: "Select All" }),
28960
28992
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: l, children: "Clear Selection" })
@@ -28974,7 +29006,7 @@ const tM = k(() => {
28974
29006
  /* @__PURE__ */ r.jsx(z, { sx: {
28975
29007
  flexGrow: 1,
28976
29008
  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: {
29009
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
28978
29010
  tableLayout: "fixed"
28979
29011
  }, children: [
28980
29012
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -28994,7 +29026,7 @@ const tM = k(() => {
28994
29026
  }, children: "Action" })
28995
29027
  ] }) }),
28996
29028
  /* @__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: {
29029
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: c.id, styles: {
28998
29030
  input: {
28999
29031
  cursor: "pointer"
29000
29032
  }
@@ -29076,14 +29108,14 @@ const tM = k(() => {
29076
29108
  /* @__PURE__ */ r.jsx(D, { mb: -10, label: "Style", labelPosition: "center", variant: "dashed" }),
29077
29109
  /* @__PURE__ */ r.jsxs(w, { spacing: 20, children: [
29078
29110
  /* @__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: {
29111
+ /* @__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
29112
  rightSection: {
29081
29113
  width: "110px"
29082
29114
  }
29083
29115
  }, value: e.layout.w, onChange: (n) => {
29084
29116
  n && e.layout.setWidth(n);
29085
29117
  } }),
29086
- /* @__PURE__ */ r.jsx(U, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
29118
+ /* @__PURE__ */ r.jsx(K, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
29087
29119
  rightSection: {
29088
29120
  width: "40px"
29089
29121
  }
@@ -29091,7 +29123,7 @@ const tM = k(() => {
29091
29123
  n && e.layout.setHeight(n);
29092
29124
  } })
29093
29125
  ] }),
29094
- /* @__PURE__ */ r.jsx(K, { ml: 6, label: "Border", checked: t.border.enabled, onChange: (n) => t.border.setEnabled(n.currentTarget.checked) })
29126
+ /* @__PURE__ */ r.jsx(U, { ml: 6, label: "Border", checked: t.border.enabled, onChange: (n) => t.border.setEnabled(n.currentTarget.checked) })
29095
29127
  ] })
29096
29128
  ] });
29097
29129
  }), wM = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
@@ -29124,10 +29156,10 @@ const tM = k(() => {
29124
29156
  panel: e
29125
29157
  } = It();
29126
29158
  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: {
29159
+ /* @__PURE__ */ r.jsx(U, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
29128
29160
  userSelect: "none"
29129
29161
  } }),
29130
- /* @__PURE__ */ r.jsx(K, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
29162
+ /* @__PURE__ */ r.jsx(U, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
29131
29163
  ] }) });
29132
29164
  });
29133
29165
  function CM() {
@@ -29195,7 +29227,7 @@ function fu({
29195
29227
  });
29196
29228
  return e.length === 0 ? /* @__PURE__ */ r.jsx(z, { sx: {
29197
29229
  height: "5em"
29198
- } }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Ke, { sx: kM, children: [
29230
+ } }) : /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsxs(Ue, { sx: kM, children: [
29199
29231
  /* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.headers.map((i) => /* @__PURE__ */ r.jsxs("th", { style: {
29200
29232
  width: i.getSize()
29201
29233
  }, children: [
@@ -29288,7 +29320,7 @@ const TM = [{
29288
29320
  }, MM = ({
29289
29321
  queryID: e
29290
29322
  }) => {
29291
- const t = Fe(), {
29323
+ const t = Oe(), {
29292
29324
  state: n,
29293
29325
  error: s
29294
29326
  } = t.getDataStuffByID(e), i = L.useMemo(() => t.queries.findByID(e), [t, e]);
@@ -29300,7 +29332,7 @@ const TM = [{
29300
29332
  moreActions: t,
29301
29333
  refreshOnMount: n
29302
29334
  }) => {
29303
- const s = Fe(), {
29335
+ const s = Oe(), {
29304
29336
  data: i,
29305
29337
  state: a
29306
29338
  } = s.getDataStuffByID(e), o = a === "loading", l = qe(() => {
@@ -29343,7 +29375,7 @@ const TM = [{
29343
29375
  t.editor.setPath(["_QUERIES_", l]);
29344
29376
  };
29345
29377
  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)) }) }) }),
29378
+ /* @__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
29379
  /* @__PURE__ */ r.jsxs(w, { spacing: 6, children: [
29348
29380
  /* @__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
29381
  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 +29419,7 @@ const TM = [{
29387
29419
  }
29388
29420
  }, children: /* @__PURE__ */ r.jsx(nu, { panel: e }) })
29389
29421
  ] }) }) });
29390
- }), Ks = {
29422
+ }), Us = {
29391
29423
  name: "new_var",
29392
29424
  size: "1rem",
29393
29425
  weight: "initial",
@@ -29428,10 +29460,10 @@ class RM {
29428
29460
  }));
29429
29461
  }
29430
29462
  addNew() {
29431
- const t = this.panel.variables.filter((n) => n.name.startsWith(Ks.name)).length;
29463
+ const t = this.panel.variables.filter((n) => n.name.startsWith(Us.name)).length;
29432
29464
  this.panel.addVariable(Pe({
29433
- ...Ks,
29434
- name: `${Ks.name}${t || ""}`
29465
+ ...Us,
29466
+ name: `${Us.name}${t || ""}`
29435
29467
  })), this.selected = ll(this.panel.variables);
29436
29468
  }
29437
29469
  select(t) {
@@ -29567,7 +29599,7 @@ const PM = L.forwardRef($M), VM = L.forwardRef(function({
29567
29599
  label: "Continuous Color",
29568
29600
  value: "continuous"
29569
29601
  }], value: t.color.type, onChange: o }),
29570
- i === "static" && /* @__PURE__ */ r.jsx(Ue, { value: t.color.staticColor, onChange: (l) => a("color.staticColor", l) }),
29602
+ i === "static" && /* @__PURE__ */ r.jsx(Ke, { value: t.color.staticColor, onChange: (l) => a("color.staticColor", l) }),
29571
29603
  i === "continuous" && /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29572
29604
  /* @__PURE__ */ r.jsx(PM, { label: "Value Range", value: t.color.valueRange, type: "number", onChange: (l) => a("color.valueRange", l) }),
29573
29605
  /* @__PURE__ */ r.jsx(OM, { label: "Color Range", value: t.color.colorRange, onChange: (l) => a("color.colorRange", l) })
@@ -29605,7 +29637,7 @@ const PM = L.forwardRef($M), VM = L.forwardRef(function({
29605
29637
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(tn, { size: 16 }), color: "red", variant: "light", onClick: i, children: "Delete this Variable" })
29606
29638
  ] });
29607
29639
  }), BM = k((e) => {
29608
- const t = _t(() => KI(e.variable), [e.variable]), n = () => e.uiModel.remove(e.variable);
29640
+ const t = _t(() => UI(e.variable), [e.variable]), n = () => e.uiModel.remove(e.variable);
29609
29641
  return /* @__PURE__ */ r.jsxs(w, { "data-testid": "variable-editor", align: "stretch", children: [
29610
29642
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
29611
29643
  /* @__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 +29712,14 @@ const HM = k(({
29680
29712
  const i = QM(), a = e !== n;
29681
29713
  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
29714
  }), Ho = [];
29683
- function UM(e, t) {
29715
+ function KM(e, t) {
29684
29716
  try {
29685
29717
  return e.resolveComponent(t).createConfig();
29686
29718
  } catch {
29687
29719
  return null;
29688
29720
  }
29689
29721
  }
29690
- function KM() {
29722
+ function UM() {
29691
29723
  const {
29692
29724
  data: e,
29693
29725
  panel: {
@@ -29726,7 +29758,7 @@ const YM = k(() => {
29726
29758
  } = Ht(Ot), s = L.useCallback((d) => {
29727
29759
  if (d === t.type)
29728
29760
  return;
29729
- const u = UM(n, d);
29761
+ const u = KM(n, d);
29730
29762
  t.setType(d), t.setConf(u || {});
29731
29763
  }, [t.type]), i = (d) => {
29732
29764
  try {
@@ -29737,7 +29769,7 @@ const YM = k(() => {
29737
29769
  }, a = L.useMemo(() => {
29738
29770
  var d;
29739
29771
  return (d = Ho.find((u) => u.value === t.type)) == null ? void 0 : d.Panel;
29740
- }, [t.type, Ho]), o = KM(), l = a ? Jr(a, {
29772
+ }, [t.type, Ho]), o = UM(), l = a ? Jr(a, {
29741
29773
  data: e,
29742
29774
  conf: t.conf,
29743
29775
  setConf: t.setConf
@@ -29941,7 +29973,7 @@ const eL = k(({
29941
29973
  userSelect: "none",
29942
29974
  cursor: "default"
29943
29975
  }, children: "Manage Queries" }) }),
29944
- /* @__PURE__ */ r.jsxs(Ut, { justify: "space-between", align: "center", px: 12, children: [
29976
+ /* @__PURE__ */ r.jsxs(Kt, { justify: "space-between", align: "center", px: 12, children: [
29945
29977
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
29946
29978
  /* @__PURE__ */ r.jsxs(C.Group, { children: [
29947
29979
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: c, children: "Select All" }),
@@ -29964,7 +29996,7 @@ const eL = k(({
29964
29996
  /* @__PURE__ */ r.jsx(z, { sx: {
29965
29997
  flexGrow: 1,
29966
29998
  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: {
29999
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
29968
30000
  tableLayout: "fixed"
29969
30001
  }, children: [
29970
30002
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -29992,7 +30024,7 @@ const eL = k(({
29992
30024
  var x;
29993
30025
  const p = ((x = u[h.id]) == null ? void 0 : x.length) ?? 0;
29994
30026
  return /* @__PURE__ */ r.jsxs("tr", { children: [
29995
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: h.id, styles: {
30027
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: h.id, styles: {
29996
30028
  input: {
29997
30029
  cursor: "pointer"
29998
30030
  }
@@ -30067,7 +30099,7 @@ const eL = k(({
30067
30099
  const {
30068
30100
  columns: t
30069
30101
  } = 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: {
30102
+ 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
30103
  width: "auto",
30072
30104
  minWidth: "1000px",
30073
30105
  alignSelf: "flex-start",
@@ -30127,7 +30159,7 @@ const eL = k(({
30127
30159
  const {
30128
30160
  indexes: t
30129
30161
  } = e, n = t.data;
30130
- return /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, fontSize: 14, sx: {
30162
+ return /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
30131
30163
  width: "auto",
30132
30164
  minWidth: "950px",
30133
30165
  alignSelf: "flex-start",
@@ -30175,7 +30207,7 @@ const eL = k(({
30175
30207
  const {
30176
30208
  indexes: t
30177
30209
  } = e, n = t.data;
30178
- return /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, fontSize: 14, sx: {
30210
+ return /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, fontSize: 14, sx: {
30179
30211
  width: "auto",
30180
30212
  minWidth: "850px",
30181
30213
  alignSelf: "flex-start",
@@ -30356,7 +30388,7 @@ const hL = k(({
30356
30388
  e.loadTablesIfEmpty();
30357
30389
  }, [e]), e.tables.error ? /* @__PURE__ */ r.jsx(j, { color: "red", size: "md", align: "center", sx: {
30358
30390
  fontFamily: "monospace"
30359
- }, children: e.tables.error }) : /* @__PURE__ */ r.jsxs(Ut, { sx: {
30391
+ }, children: e.tables.error }) : /* @__PURE__ */ r.jsxs(Kt, { sx: {
30360
30392
  height: "100%"
30361
30393
  }, children: [
30362
30394
  /* @__PURE__ */ r.jsx(z, { w: 300, sx: {
@@ -30471,7 +30503,7 @@ const hL = k(({
30471
30503
  }
30472
30504
  }
30473
30505
  }, disabled: i, value: e.key, onChange: l });
30474
- }), Uo = de((e, t) => {
30506
+ }), Ko = de((e, t) => {
30475
30507
  const {
30476
30508
  label: n,
30477
30509
  description: s,
@@ -30510,8 +30542,8 @@ const hL = k(({
30510
30542
  e.setKey(i), e.setType(s);
30511
30543
  } }),
30512
30544
  /* @__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 }),
30545
+ /* @__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 }),
30546
+ 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
30547
  /* @__PURE__ */ r.jsx(D, { mt: 20, mb: 10, variant: "dashed" }),
30516
30548
  /* @__PURE__ */ r.jsx(sL, { queryModel: e })
30517
30549
  ] }) });
@@ -30519,14 +30551,14 @@ const hL = k(({
30519
30551
  function SL({
30520
30552
  content: e
30521
30553
  }) {
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 }) })
30554
+ return /* @__PURE__ */ r.jsxs(Te, { width: "60vw", shadow: "md", children: [
30555
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(W, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(wl, {}) }) }),
30556
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
30525
30557
  ] });
30526
30558
  }
30527
30559
  const CL = k(() => {
30528
30560
  const t = [...le().globalSQLSnippets.list];
30529
- return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ke, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
30561
+ return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ue, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
30530
30562
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
30531
30563
  /* @__PURE__ */ r.jsx("th", { children: "Key" }),
30532
30564
  /* @__PURE__ */ r.jsx("th", { children: "Value" })
@@ -30599,7 +30631,7 @@ WHERE
30599
30631
  }
30600
30632
  }, children: "See Query Variables" })
30601
30633
  ] });
30602
- }), Ko = {
30634
+ }), Uo = {
30603
30635
  pre: ["function build_request({ context, filters }, utils) {", " // build the quest", " return { method: 'POST', url: '/', params: {}, headers: {}, data: {} }", "}"].join(`
30604
30636
  `),
30605
30637
  post: ["function process_result(res, utils, state) {", " // your code goes here", " return data", "}"].join(`
@@ -30616,8 +30648,8 @@ WHERE
30616
30648
  ] }),
30617
30649
  /* @__PURE__ */ r.jsx(m.Panel, { value: "pre_process", sx: {
30618
30650
  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 }) })
30651
+ }, p: "sm", children: /* @__PURE__ */ r.jsx(cr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: Uo.pre }) }),
30652
+ /* @__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
30653
  ] }) : null), IL = k(({
30622
30654
  queryID: e,
30623
30655
  usage: t
@@ -30635,7 +30667,7 @@ WHERE
30635
30667
  }, i = (a) => {
30636
30668
  n.setPath(["_VIEWS_", a]);
30637
30669
  };
30638
- return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ke, { highlightOnHover: !0, sx: {
30670
+ return /* @__PURE__ */ r.jsx(w, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ue, { highlightOnHover: !0, sx: {
30639
30671
  tableLayout: "fixed"
30640
30672
  }, children: [
30641
30673
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -30682,9 +30714,9 @@ WHERE
30682
30714
  queryModel: e
30683
30715
  }) => {
30684
30716
  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: [
30717
+ return s ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
30718
+ /* @__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" }) }),
30719
+ /* @__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
30720
  /* @__PURE__ */ r.jsx(j, { fw: "bold", ff: "monospace", children: i }),
30689
30721
  /* @__PURE__ */ r.jsx(Mt, { withPadding: !0, size: 14, sx: {
30690
30722
  fontFamily: "monospace",
@@ -30748,7 +30780,7 @@ WHERE
30748
30780
  } }), AL = k(({
30749
30781
  value: e
30750
30782
  }) => {
30751
- const n = Fe().payloadForSQL, s = L.useMemo(() => Ii(e, n), [e, n]);
30783
+ const n = Oe().payloadForSQL, s = L.useMemo(() => Ii(e, n), [e, n]);
30752
30784
  return /* @__PURE__ */ r.jsx(LL, { height: "100%", value: s });
30753
30785
  }), Yo = {
30754
30786
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -30828,7 +30860,7 @@ WHERE
30828
30860
  }), OL = k(({
30829
30861
  value: e
30830
30862
  }) => {
30831
- const n = Fe().payloadForSQL, s = T(() => Ii(e, n), [e, n]);
30863
+ const n = Oe().payloadForSQL, s = T(() => Ii(e, n), [e, n]);
30832
30864
  return /* @__PURE__ */ r.jsx(ka, { height: "100%", value: s });
30833
30865
  }), $L = k(({
30834
30866
  item: e,
@@ -30959,7 +30991,7 @@ WHERE
30959
30991
  userSelect: "none",
30960
30992
  cursor: "default"
30961
30993
  }, children: "Manage SQL Snippets" }) }),
30962
- /* @__PURE__ */ r.jsxs(Ut, { justify: "space-between", align: "center", px: 12, children: [
30994
+ /* @__PURE__ */ r.jsxs(Kt, { justify: "space-between", align: "center", px: 12, children: [
30963
30995
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
30964
30996
  /* @__PURE__ */ r.jsxs(C.Group, { children: [
30965
30997
  /* @__PURE__ */ r.jsx(C, { variant: "default", size: "xs", onClick: c, children: "Select All" }),
@@ -30982,7 +31014,7 @@ WHERE
30982
31014
  /* @__PURE__ */ r.jsx(z, { sx: {
30983
31015
  flexGrow: 1,
30984
31016
  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: {
31017
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ue, { fontSize: "sm", highlightOnHover: !0, sx: {
30986
31018
  tableLayout: "fixed"
30987
31019
  }, children: [
30988
31020
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31003,7 +31035,7 @@ WHERE
31003
31035
  var x;
31004
31036
  const p = ((x = u[h.key]) == null ? void 0 : x.length) ?? 0;
31005
31037
  return /* @__PURE__ */ r.jsxs("tr", { children: [
31006
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: h.key, styles: {
31038
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: h.key, styles: {
31007
31039
  input: {
31008
31040
  cursor: "pointer"
31009
31041
  }
@@ -31078,10 +31110,10 @@ function QL(e) {
31078
31110
  function HL(e) {
31079
31111
  return e.length === 2 && e[0] === "_SQL_SNIPPETS_";
31080
31112
  }
31081
- function UL(e) {
31113
+ function KL(e) {
31082
31114
  return e.length === 2 && e[0] === "_QUERIES_";
31083
31115
  }
31084
- function KL(e) {
31116
+ function UL(e) {
31085
31117
  return e.length === 1 && e[0] === "_QUERIES_";
31086
31118
  }
31087
31119
  function YL(e) {
@@ -31094,7 +31126,7 @@ const JL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31094
31126
  height: "100%"
31095
31127
  }, p: "sm", children: /* @__PURE__ */ r.jsx(yu, {}) })), ZL = k(() => {
31096
31128
  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 });
31129
+ 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
31130
  }), eA = k(() => /* @__PURE__ */ r.jsx(ZL, {})), tA = k(() => {
31099
31131
  const e = le(), t = () => {
31100
31132
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
@@ -31102,7 +31134,7 @@ const JL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31102
31134
  key: n,
31103
31135
  label: n,
31104
31136
  order: e.content.filters.current.length + 1,
31105
- type: Le.TextInput,
31137
+ type: Ae.TextInput,
31106
31138
  config: Ld(),
31107
31139
  visibleInViewsIDs: ["Main"],
31108
31140
  auto_submit: !1
@@ -31341,7 +31373,7 @@ const fA = {
31341
31373
  h.datasources.replace(d);
31342
31374
  }, [d]), L.useEffect(() => {
31343
31375
  h.globalSQLSnippets.replace(u);
31344
- }, [u]), L.useEffect(() => it(() => Kt(h.json), (S) => {
31376
+ }, [u]), L.useEffect(() => it(() => Ut(h.json), (S) => {
31345
31377
  o == null || o(S);
31346
31378
  }), [h]);
31347
31379
  const p = async () => {
@@ -31367,7 +31399,7 @@ const vu = f.model({
31367
31399
  version: f.string,
31368
31400
  // schema version
31369
31401
  filters: Hd,
31370
- queries: Kd,
31402
+ queries: Ud,
31371
31403
  sqlSnippets: Yd,
31372
31404
  views: Bd,
31373
31405
  panels: Gd,
@@ -31487,7 +31519,7 @@ function bA({
31487
31519
  create_time: s,
31488
31520
  update_time: i,
31489
31521
  version: o,
31490
- filters: Ud(l),
31522
+ filters: Kd(l),
31491
31523
  queries: GI(u),
31492
31524
  sqlSnippets: HI(h),
31493
31525
  mock_context: Cd(p),
@@ -31564,8 +31596,8 @@ const mR = k(({
31564
31596
  E.extend(Gp);
31565
31597
  E.extend(Qp);
31566
31598
  E.extend(Hp);
31567
- E.extend(Up);
31568
31599
  E.extend(Kp);
31600
+ E.extend(Up);
31569
31601
  E.extend(Yp);
31570
31602
  E.extend(Xp);
31571
31603
  E.extend(Jp);
@@ -31608,7 +31640,7 @@ export {
31608
31640
  Px as DashboardApiClient,
31609
31641
  Vx as DashboardApiFacadeClient,
31610
31642
  xR as DashboardEditor,
31611
- Le as DashboardFilterType,
31643
+ Ae as DashboardFilterType,
31612
31644
  RD as DashboardMode,
31613
31645
  ez as DashboardModel,
31614
31646
  Zl as DashboardModelContextProvider,
@@ -31625,10 +31657,10 @@ export {
31625
31657
  cD as Panel,
31626
31658
  lc as PanelContextProvider,
31627
31659
  iD as PanelErrorOrStateMessage,
31628
- UD as PanelModel,
31660
+ KD as PanelModel,
31629
31661
  su as PanelRender,
31630
31662
  nu as PanelVizSection,
31631
- KD as PanelsModel,
31663
+ UD as PanelsModel,
31632
31664
  $D as QueriesModel,
31633
31665
  mR as ReadOnlyDashboard,
31634
31666
  PD as SQLSnippetsModel,
@@ -31652,7 +31684,7 @@ export {
31652
31684
  It as useEditPanelContext,
31653
31685
  hm as useFullScreenPanelContext,
31654
31686
  mD as usePanelFullScreen,
31655
- Fe as useRenderContentModelContext,
31687
+ Oe as useRenderContentModelContext,
31656
31688
  tc as useRenderDashboardContext,
31657
31689
  kn as useRenderPanelContext
31658
31690
  };