@devtable/dashboard 12.2.1 → 12.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
- var Ku = Object.defineProperty;
2
- var Yu = (e, t, n) => t in e ? Ku(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
1
+ var Uu = Object.defineProperty;
2
+ var Yu = (e, t, n) => t in e ? Uu(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var N = (e, t, n) => (Yu(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import M, { forwardRef as xe, useState as B, useEffect as O, useCallback as We, useMemo as T, createElement as Jr, useContext as Wt, useRef as Zr, createContext as qa, memo as Xu } from "react";
5
- import { TextInput as I, Text as j, Box as L, Button as C, HoverCard as Ie, Group as y, Select as A, Stack as _, Divider as z, NumberInput as U, Switch as $e, Table as Ve, ActionIcon as W, MultiSelect as Fn, Paper as Ju, Code as No, Modal as ge, Tabs as f, LoadingOverlay as jn, Alert as es, ColorSwatch as Us, Overlay as Mt, Checkbox as K, Collapse as dr, Tooltip as ye, Center as vn, useMantineTheme as Wa, CheckIcon as Zu, MANTINE_SIZES as eh, SimpleGrid as en, NativeSelect as Ga, SegmentedControl as th, Anchor as Ks, Textarea as nh, Mark as rh, ColorInput as hi, createStyles as ur, Popover as Rn, Slider as sh, Flex as Gt, Badge as mn, CloseButton as Qa, Menu as re, Affix as ih, Header as oh, List as it, FileInput as ah, ThemeIcon as As, UnstyledButton as lh, Navbar as $t, JsonInput as Ha, Pagination as Ua, Drawer as ch, Accordion as kr, Radio as Bo, Skeleton as qo, NavLink as Ys, AppShell as Ka } from "@mantine/core";
5
+ import { TextInput as I, Text as j, Box as L, Button as C, HoverCard as Ie, Group as y, Select as A, Stack as _, Divider as z, NumberInput as K, Switch as $e, Table as Ve, ActionIcon as W, MultiSelect as Fn, Paper as Ju, Code as No, Modal as ge, Tabs as f, LoadingOverlay as jn, Alert as es, ColorSwatch as Ks, Overlay as Mt, Checkbox as U, Collapse as dr, Tooltip as ye, Center as vn, useMantineTheme as Wa, CheckIcon as Zu, MANTINE_SIZES as eh, SimpleGrid as en, NativeSelect as Ga, SegmentedControl as th, Anchor as Us, Textarea as nh, Mark as rh, ColorInput as hi, createStyles as ur, Popover as Rn, Slider as sh, Flex as Gt, Badge as mn, CloseButton as Qa, Menu as re, Affix as ih, Header as oh, List as it, FileInput as ah, ThemeIcon as As, UnstyledButton as lh, Navbar as $t, JsonInput as Ha, Pagination as Ka, Drawer as ch, Accordion as kr, Radio as Bo, Skeleton as qo, NavLink as Ys, AppShell as Ua } from "@mantine/core";
6
6
  import { useModals as At, ModalsProvider as Ya } from "@mantine/modals";
7
7
  import { useBoolean as Oe, useCreation as wt, useAsyncEffect as hr, useRequest as fn, useWhyDidYouUpdate as Xa, useLatest as Wo, usePrevious as dh } from "ahooks";
8
8
  import { toJS as Qt, observable as Ja, runInAction as er, reaction as et, makeAutoObservable as pr } from "mobx";
@@ -19,7 +19,7 @@ import Nr from "numbro";
19
19
  import Nt from "axios";
20
20
  import { useClipboard as Ch, randomId as bn, useDisclosure as nn, useElementSize as sr, useResizeObserver as kh, useInputState as ol } from "@mantine/hooks";
21
21
  import { interpolate as wn } from "popmotion";
22
- import * as Ue from "echarts/core";
22
+ import * as Ke from "echarts/core";
23
23
  import { use as Th } from "echarts/core";
24
24
  import { BarChart as Ih, BoxplotChart as Dh, FunnelChart as zh, HeatmapChart as Lh, LineChart as Mh, PieChart as Ah, RadarChart as Rh, ScatterChart as Eh, SunburstChart as Fh } from "echarts/charts";
25
25
  import { CalendarComponent as Oh, DataZoomComponent as Ph, GridComponent as $h, LegendComponent as Vh, TooltipComponent as Nh, MarkLineComponent as Bh, MarkAreaComponent as qh, VisualMapComponent as Wh } from "echarts/components";
@@ -29,9 +29,9 @@ import Go from "eventemitter2";
29
29
  import ir, { random as ts } from "chroma-js";
30
30
  import Xe from "echarts-for-react/lib/core";
31
31
  import "echarts-gl";
32
- import { useForm as we, Controller as g, useFieldArray as je, useWatch as Uh } from "react-hook-form";
33
- import { DeviceFloppy as fe, Trash as ae, AlertCircle as Kh, Recycle as pt, InfoCircle as Ht, Plus as De, Refresh as mi, Download as fi, ArrowsMaximize as al, Settings as ll, Copy as Yh, ArrowLeft as Xh, ArrowsMove as Jh, ChevronDownRight as Zh, ChevronsUpRight as ep, PlaylistAdd as ns, ArrowBarToRight as tp } from "tabler-icons-react";
34
- import { IconDeviceFloppy as Rt, IconChevronUp as np, IconChevronDown as rp, IconTextSize as gi, IconInfoCircle as _n, IconPlayerSkipBack as cl, IconRecycle as xr, IconMathFunction as dl, IconPlus as at, IconBorderAll as sp, IconTrash as qt, IconArrowDown as ip, IconArrowUp as op, IconCalendar as ap, IconMinus as lp, IconChevronsUp as cp, IconChevronsDown as dp, IconCode as yn, IconCamera as rs, IconShare3 as up, IconDownload as hp, IconArrowsLeftRight as pp, IconVariable as ul, IconCodeDots as xp, IconFilter as hl, IconCopy as mp, IconDatabase as ss, IconBoxMultiple as pl, IconCaretDown as fp, IconAlertTriangle as xl, IconArrowLeft as gp, IconPlaylistAdd as Qo, IconDevices as bp, IconSettings as mr, IconPointFilled as bi, IconFileImport as Ho, IconCircleDashed as yp, IconCircleDot as jp, IconCircleOff as vp, IconAdjustments as wp, IconLink as _p, IconArrowCurveRight as Xs, IconLine as Sp, IconX as ml, IconEye as fl, IconTable as Cp, IconColumns as kp, IconVectorTriangle as Tp, IconAlertCircle as Uo, IconVariablePlus as Ip, IconHierarchy as Dp, IconDiscountCheckFilled as zp } from "@tabler/icons-react";
32
+ import { useForm as we, Controller as g, useFieldArray as je, useWatch as Kh } from "react-hook-form";
33
+ import { DeviceFloppy as fe, Trash as ae, AlertCircle as Uh, Recycle as pt, InfoCircle as Ht, Plus as De, Refresh as mi, Download as fi, ArrowsMaximize as al, Settings as ll, Copy as Yh, ArrowLeft as Xh, ArrowsMove as Jh, ChevronDownRight as Zh, ChevronsUpRight as ep, PlaylistAdd as ns, ArrowBarToRight as tp } from "tabler-icons-react";
34
+ import { IconDeviceFloppy as Rt, IconChevronUp as np, IconChevronDown as rp, IconTextSize as gi, IconInfoCircle as _n, IconPlayerSkipBack as cl, IconRecycle as xr, IconMathFunction as dl, IconPlus as at, IconBorderAll as sp, IconTrash as qt, IconArrowDown as ip, IconArrowUp as op, IconCalendar as ap, IconMinus as lp, IconChevronsUp as cp, IconChevronsDown as dp, IconCode as yn, IconCamera as rs, IconShare3 as up, IconDownload as hp, IconArrowsLeftRight as pp, IconVariable as ul, IconCodeDots as xp, IconFilter as hl, IconCopy as mp, IconDatabase as ss, IconBoxMultiple as pl, IconCaretDown as fp, IconAlertTriangle as xl, IconArrowLeft as gp, IconPlaylistAdd as Qo, IconDevices as bp, IconSettings as mr, IconPointFilled as bi, IconFileImport as Ho, IconCircleDashed as yp, IconCircleDot as jp, IconCircleOff as vp, IconAdjustments as wp, IconLink as _p, IconArrowCurveRight as Xs, IconLine as Sp, IconX as ml, IconEye as fl, IconTable as Cp, IconColumns as kp, IconVectorTriangle as Tp, IconAlertCircle as Ko, IconVariablePlus as Ip, IconHierarchy as Dp, IconDiscountCheckFilled as zp } from "@tabler/icons-react";
35
35
  import { showNotification as On, notifications as gl } from "@mantine/notifications";
36
36
  import Je, { loader as Rs } from "@monaco-editor/react";
37
37
  import * as Jt from "d3-regression";
@@ -51,8 +51,8 @@ import zl from "@tiptap/extension-underline";
51
51
  import { useEditor as Ll } from "@tiptap/react";
52
52
  import Ml from "@tiptap/starter-kit";
53
53
  import "prosemirror-keymap";
54
- import { createParagraphNear as Mp, deleteSelection as Ap, exitCode as Rp, joinUp as Ep, joinDown as Fp, joinBackward as Op, joinForward as Pp, lift as $p, liftEmptyBlock as Vp, newlineInCode as Np, selectNodeBackward as Bp, selectNodeForward as qp, selectParentNode as Wp, selectTextblockEnd as Gp, selectTextblockStart as Qp, setBlockType as Ko, wrapIn as Hp } from "prosemirror-commands";
55
- import { liftListItem as Up, sinkListItem as Kp, wrapInList as Yp } from "prosemirror-schema-list";
54
+ import { createParagraphNear as Mp, deleteSelection as Ap, exitCode as Rp, joinUp as Ep, joinDown as Fp, joinBackward as Op, joinForward as Pp, lift as $p, liftEmptyBlock as Vp, newlineInCode as Np, selectNodeBackward as Bp, selectNodeForward as qp, selectParentNode as Wp, selectTextblockEnd as Gp, selectTextblockStart as Qp, setBlockType as Uo, wrapIn as Hp } from "prosemirror-commands";
55
+ import { liftListItem as Kp, sinkListItem as Up, wrapInList as Yp } from "prosemirror-schema-list";
56
56
  import { Prism as tn } from "@mantine/prism";
57
57
  import { flexRender as Br, createColumnHelper as Al, useReactTable as Rl, getCoreRowModel as El, getSortedRowModel as Xp } from "@tanstack/react-table";
58
58
  import { useVirtual as Jp } from "react-virtual";
@@ -231,13 +231,13 @@ function Hx() {
231
231
  }
232
232
  return null;
233
233
  }
234
- var an = Object.assign, Un = 0, yo, jo, vo, wo, _o, So, Co;
234
+ var an = Object.assign, Kn = 0, yo, jo, vo, wo, _o, So, Co;
235
235
  function ko() {
236
236
  }
237
237
  ko.__reactDisabledLog = !0;
238
238
  function Su() {
239
239
  {
240
- if (Un === 0) {
240
+ if (Kn === 0) {
241
241
  yo = console.log, jo = console.info, vo = console.warn, wo = console.error, _o = console.group, So = console.groupCollapsed, Co = console.groupEnd;
242
242
  var v = {
243
243
  configurable: !0,
@@ -255,12 +255,12 @@ function Hx() {
255
255
  groupEnd: v
256
256
  });
257
257
  }
258
- Un++;
258
+ Kn++;
259
259
  }
260
260
  }
261
261
  function Cu() {
262
262
  {
263
- if (Un--, Un === 0) {
263
+ if (Kn--, Kn === 0) {
264
264
  var v = {
265
265
  configurable: !0,
266
266
  enumerable: !0,
@@ -290,7 +290,7 @@ function Hx() {
290
290
  })
291
291
  });
292
292
  }
293
- Un < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
293
+ Kn < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
294
294
  }
295
295
  }
296
296
  var Cs = R.ReactCurrentDispatcher, ks;
@@ -361,14 +361,14 @@ function Hx() {
361
361
  } catch (Ot) {
362
362
  if (Ot && H && typeof Ot.stack == "string") {
363
363
  for (var ee = Ot.stack.split(`
364
- `), Ke = H.stack.split(`
365
- `), Te = ee.length - 1, ze = Ke.length - 1; Te >= 1 && ze >= 0 && ee[Te] !== Ke[ze]; )
364
+ `), Ue = H.stack.split(`
365
+ `), Te = ee.length - 1, ze = Ue.length - 1; Te >= 1 && ze >= 0 && ee[Te] !== Ue[ze]; )
366
366
  ze--;
367
367
  for (; Te >= 1 && ze >= 0; Te--, ze--)
368
- if (ee[Te] !== Ke[ze]) {
368
+ if (ee[Te] !== Ue[ze]) {
369
369
  if (Te !== 1 || ze !== 1)
370
370
  do
371
- if (Te--, ze--, ze < 0 || ee[Te] !== Ke[ze]) {
371
+ if (Te--, ze--, ze < 0 || ee[Te] !== Ue[ze]) {
372
372
  var lt = `
373
373
  ` + ee[Te].replace(" at new ", " at ");
374
374
  return v.displayName && lt.includes("<anonymous>") && (lt = lt.replace("<anonymous>", v.displayName)), typeof v == "function" && wr.set(v, lt), lt;
@@ -435,8 +435,8 @@ function Hx() {
435
435
  var ee = void 0;
436
436
  try {
437
437
  if (typeof v[ie] != "function") {
438
- var Ke = Error((H || "React class") + ": " + V + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof v[ie] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
439
- throw Ke.name = "Invariant Violation", Ke;
438
+ var Ue = Error((H || "React class") + ": " + V + " type `" + ie + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof v[ie] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
439
+ throw Ue.name = "Invariant Violation", Ue;
440
440
  }
441
441
  ee = v[ie](E, ie, H, V, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
442
442
  } catch (Te) {
@@ -470,7 +470,7 @@ function Hx() {
470
470
  if (Mu(v))
471
471
  return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Lu(v)), zo(v);
472
472
  }
473
- var Kn = R.ReactCurrentOwner, Au = {
473
+ var Un = R.ReactCurrentOwner, Au = {
474
474
  key: !0,
475
475
  ref: !0,
476
476
  __self: !0,
@@ -494,9 +494,9 @@ function Hx() {
494
494
  return v.key !== void 0;
495
495
  }
496
496
  function Fu(v, E) {
497
- if (typeof v.ref == "string" && Kn.current && E && Kn.current.stateNode !== E) {
498
- var V = Ft(Kn.current.type);
499
- Ds[V] || (P('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', Ft(Kn.current.type), v.ref), Ds[V] = !0);
497
+ if (typeof v.ref == "string" && Un.current && E && Un.current.stateNode !== E) {
498
+ var V = Ft(Un.current.type);
499
+ Ds[V] || (P('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', Ft(Un.current.type), v.ref), Ds[V] = !0);
500
500
  }
501
501
  }
502
502
  function Ou(v, E) {
@@ -552,8 +552,8 @@ function Hx() {
552
552
  };
553
553
  function Vu(v, E, V, H, ce) {
554
554
  {
555
- var be, ie = {}, ee = null, Ke = null;
556
- V !== void 0 && (Lo(V), ee = "" + V), Eu(E) && (Lo(E.key), ee = "" + E.key), Ru(E) && (Ke = E.ref, Fu(E, ce));
555
+ var be, ie = {}, ee = null, Ue = null;
556
+ V !== void 0 && (Lo(V), ee = "" + V), Eu(E) && (Lo(E.key), ee = "" + E.key), Ru(E) && (Ue = E.ref, Fu(E, ce));
557
557
  for (be in E)
558
558
  Sr.call(E, be) && !Au.hasOwnProperty(be) && (ie[be] = E[be]);
559
559
  if (v && v.defaultProps) {
@@ -561,11 +561,11 @@ function Hx() {
561
561
  for (be in Te)
562
562
  ie[be] === void 0 && (ie[be] = Te[be]);
563
563
  }
564
- if (ee || Ke) {
564
+ if (ee || Ue) {
565
565
  var ze = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
566
- ee && Ou(ie, ze), Ke && Pu(ie, ze);
566
+ ee && Ou(ie, ze), Ue && Pu(ie, ze);
567
567
  }
568
- return $u(v, ee, Ke, ce, H, Kn.current, ie);
568
+ return $u(v, ee, Ue, ce, H, Un.current, ie);
569
569
  }
570
570
  }
571
571
  var zs = R.ReactCurrentOwner, Ro = R.ReactDebugCurrentFrame;
@@ -692,8 +692,8 @@ Check the top-level render call using <` + V + ">.");
692
692
  if (!ie) {
693
693
  var ee = "";
694
694
  (v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (ee += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
695
- var Ke = Nu(ce);
696
- Ke ? ee += Ke : ee += Eo();
695
+ var Ue = Nu(ce);
696
+ Ue ? ee += Ue : ee += Eo();
697
697
  var Te;
698
698
  v === null ? Te = "null" : Is(v) ? Te = "array" : v !== void 0 && v.$$typeof === t ? (Te = "<" + (Ft(v.type) || "Unknown") + " />", ee = " Did you accidentally export a JSX literal instead of a component?") : Te = typeof v, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Te, ee);
699
699
  }
@@ -722,13 +722,13 @@ Check the top-level render call using <` + V + ">.");
722
722
  function Qu(v, E, V) {
723
723
  return $o(v, E, V, !1);
724
724
  }
725
- var Hu = Qu, Uu = Gu;
726
- Xn.Fragment = s, Xn.jsx = Hu, Xn.jsxs = Uu;
725
+ var Hu = Qu, Ku = Gu;
726
+ Xn.Fragment = s, Xn.jsx = Hu, Xn.jsxs = Ku;
727
727
  }()), Xn;
728
728
  }
729
729
  process.env.NODE_ENV === "production" ? Zs.exports = Qx() : Zs.exports = Hx();
730
730
  var r = Zs.exports;
731
- const Ut = {
731
+ const Kt = {
732
732
  CryptoJS: ph,
733
733
  d3Array: xh,
734
734
  dayjs: F,
@@ -736,7 +736,7 @@ const Ut = {
736
736
  numbro: Nr,
737
737
  mathjs: En,
738
738
  faker: uh
739
- }, Ux = [{
739
+ }, Kx = [{
740
740
  name: "CryptoJS",
741
741
  url: "https://github.com/brix/crypto-js",
742
742
  version: "4.1.1"
@@ -764,7 +764,7 @@ const Ut = {
764
764
  name: "faker",
765
765
  url: "https://fakerjs.dev/",
766
766
  version: "7.6.0"
767
- }], Kx = (e) => `
767
+ }], Ux = (e) => `
768
768
  <tr>
769
769
  <td><code>${e.name}</code></td>
770
770
  <td>
@@ -788,7 +788,7 @@ const Ut = {
788
788
  </tr>
789
789
  </thead>
790
790
  <tbody>
791
- ${Ux.map(Kx).join("")}
791
+ ${Kx.map(Ux).join("")}
792
792
  </tbody>
793
793
  </table>
794
794
  `;
@@ -816,7 +816,7 @@ function Xx({
816
816
  try {
817
817
  return new Function(`return ${t}`)()({
818
818
  sql: e
819
- }, Ut);
819
+ }, Kt);
820
820
  } catch (n) {
821
821
  return console.error(n), e;
822
822
  }
@@ -825,7 +825,7 @@ function Jx(e, t, n) {
825
825
  if (!e.trim())
826
826
  return t;
827
827
  try {
828
- return new Function(`return ${e}`)()(t, Ut, n);
828
+ return new Function(`return ${e}`)()(t, Kt, n);
829
829
  } catch (s) {
830
830
  return console.error(s), t;
831
831
  }
@@ -1063,7 +1063,7 @@ function cm(e, t, n) {
1063
1063
  const s = fr(e, t);
1064
1064
  return new Function(`return ${n.config.func}`)()({
1065
1065
  queryData: s
1066
- }, Ut);
1066
+ }, Kt);
1067
1067
  } catch (s) {
1068
1068
  return console.error(s), s.message;
1069
1069
  }
@@ -1112,7 +1112,7 @@ function ne(e, {
1112
1112
  function um(e) {
1113
1113
  return e === null ? "null" : e === void 0 ? "undefined" : Array.isArray(e) ? `Array(${e.length})` : e.toString();
1114
1114
  }
1115
- function Kt({
1115
+ function Ut({
1116
1116
  data_field: e,
1117
1117
  aggregation: t
1118
1118
  }, n) {
@@ -1288,7 +1288,7 @@ const ei = {
1288
1288
  }
1289
1289
  };
1290
1290
  function bm() {
1291
- Ue.registerTheme("merico-light", {
1291
+ Ke.registerTheme("merico-light", {
1292
1292
  color: Object.values(ei.graphics.multiple),
1293
1293
  visualMap: {
1294
1294
  color: Object.values(ei.graphics.depth).reverse()
@@ -1371,7 +1371,7 @@ function jm(e, t = {
1371
1371
  return (n) => /* @__PURE__ */ r.jsx(Qe, { ...t, children: /* @__PURE__ */ r.jsx(e, { ...n }) });
1372
1372
  }
1373
1373
  function vm(e, t) {
1374
- return new Function(`return ${e}`)()(t, Ut);
1374
+ return new Function(`return ${e}`)()(t, Kt);
1375
1375
  }
1376
1376
  function wm(e, t, n) {
1377
1377
  return vm(e, {
@@ -1381,16 +1381,16 @@ function wm(e, t, n) {
1381
1381
  }
1382
1382
  function _m(e, t) {
1383
1383
  try {
1384
- return new Function(`return ${e.config.processing.pre}`)()(t, Ut);
1384
+ return new Function(`return ${e.config.processing.pre}`)()(t, Kt);
1385
1385
  } catch (n) {
1386
1386
  return console.error(n), t;
1387
1387
  }
1388
1388
  }
1389
1389
  function Sm(e, t) {
1390
- return new Function(`return ${e.config.processing.post}`)()(t, Ut);
1390
+ return new Function(`return ${e.config.processing.post}`)()(t, Kt);
1391
1391
  }
1392
1392
  function Cm(e, t, n) {
1393
- return e ? new Function(`return ${e}`)()(t, Ut, n) : t;
1393
+ return e ? new Function(`return ${e}`)()(t, Kt, n) : t;
1394
1394
  }
1395
1395
  function Wl() {
1396
1396
  Th([Gh, Ih, Dh, zh, Lh, Mh, Ah, Rh, Eh, Fh, Oh, Ph, $h, Vh, Nh, Bh, qh, Wh]);
@@ -1631,7 +1631,7 @@ const Lm = (e) => {
1631
1631
  ...Hl(a, s, t, i)
1632
1632
  }, c = o.configRender;
1633
1633
  return /* @__PURE__ */ r.jsx(c, { context: l, instance: a, ...gn(e, ["panel", "vizManager", "data"]) });
1634
- }, Ul = (e, t) => {
1634
+ }, Kl = (e, t) => {
1635
1635
  const n = ir.bezier(e), s = ir.bezier(t);
1636
1636
  return function(i) {
1637
1637
  return i < 50 ? n(i * 2 / 100).hex() : s((i - 50) * 2 / 100).hex();
@@ -1644,13 +1644,13 @@ const Lm = (e) => {
1644
1644
  }, Am = {
1645
1645
  type: "interpolation",
1646
1646
  displayName: "Red / Green",
1647
- getColor: Ul(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
1647
+ getColor: Kl(["darkred", "deeppink", "lightyellow"], ["lightyellow", "lightgreen", "teal"]),
1648
1648
  name: "red-green",
1649
1649
  category: "diverging"
1650
1650
  }, Rm = {
1651
1651
  type: "interpolation",
1652
1652
  displayName: "Yellow / Blue",
1653
- getColor: Ul(["#8f531d", "#ffd347", "#e3efe3"], ["#eefaee", "#4ecbbf", "#003f94"]),
1653
+ getColor: Kl(["#8f531d", "#ffd347", "#e3efe3"], ["#eefaee", "#4ecbbf", "#003f94"]),
1654
1654
  name: "yellow-blue",
1655
1655
  category: "diverging"
1656
1656
  }, Em = {
@@ -1724,9 +1724,9 @@ class Si {
1724
1724
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1725
1725
  }
1726
1726
  }
1727
- const Kl = "12.2.1", Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1727
+ const Ul = "12.3.1", Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1728
1728
  __proto__: null,
1729
- version: Kl
1729
+ version: Ul
1730
1730
  }, Symbol.toStringTag, { value: "Module" }));
1731
1731
  class Nm {
1732
1732
  constructor(t) {
@@ -1962,7 +1962,7 @@ function Wm({
1962
1962
  data: u.map((P) => [P[p.columnKey], P[x.columnKey], P[b.columnKey]])
1963
1963
  }]
1964
1964
  };
1965
- return t ? /* @__PURE__ */ r.jsx(nt, { width: s, height: i, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: R, style: gr(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
1965
+ return t ? /* @__PURE__ */ r.jsx(nt, { width: s, height: i, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: R, style: gr(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
1966
1966
  }
1967
1967
  const Yl = M.createContext(null), Xl = Yl.Provider;
1968
1968
  function Jl() {
@@ -2000,11 +2000,11 @@ function oc() {
2000
2000
  throw new Error("Please use PanelContextProvider");
2001
2001
  return e;
2002
2002
  }
2003
- const Sn = () => oc(), Ct = () => oc(), Um = {
2003
+ const Sn = () => oc(), Ct = () => oc(), Km = {
2004
2004
  fullScreenPanelID: "",
2005
2005
  setFullScreenPanelID: w.noop
2006
- }, ac = M.createContext(Um);
2007
- function Km() {
2006
+ }, ac = M.createContext(Km);
2007
+ function Um() {
2008
2008
  const e = M.useContext(ac);
2009
2009
  if (!e)
2010
2010
  throw new Error("Please use FullScreenPanelContext.Provider");
@@ -2229,7 +2229,7 @@ const nf = [{
2229
2229
  color: "dimmed"
2230
2230
  } }),
2231
2231
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
2232
- /* @__PURE__ */ r.jsx(U, { label: "Max Width", hideControls: !0, value: t.width, onChange: i("width") }),
2232
+ /* @__PURE__ */ r.jsx(K, { label: "Max Width", hideControls: !0, value: t.width, onChange: i("width") }),
2233
2233
  /* @__PURE__ */ r.jsx(A, { label: "Overflow", data: nf, value: t.overflow, onChange: i("overflow") }),
2234
2234
  /* @__PURE__ */ r.jsx(
2235
2235
  I,
@@ -3102,7 +3102,7 @@ const Bf = k(({
3102
3102
  });
3103
3103
  return /* @__PURE__ */ r.jsxs(_, { children: [
3104
3104
  /* @__PURE__ */ r.jsx(jn, { visible: u }),
3105
- h === 0 && /* @__PURE__ */ r.jsx(es, { icon: /* @__PURE__ */ r.jsx(Kh, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
3105
+ h === 0 && /* @__PURE__ */ r.jsx(es, { icon: /* @__PURE__ */ r.jsx(Uh, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
3106
3106
  l.map((p) => /* @__PURE__ */ r.jsx(Bf, { onRemove: d, instance: i, sampleData: o, variables: a, item: p, manager: e.interactionManager }, p.id)),
3107
3107
  /* @__PURE__ */ r.jsx(C, { style: {
3108
3108
  width: "fit-content"
@@ -3177,12 +3177,12 @@ const Hf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3177
3177
  }
3178
3178
  }
3179
3179
  };
3180
- function Uf(e) {
3180
+ function Kf(e) {
3181
3181
  return w.defaultsDeep({}, e, hc);
3182
3182
  }
3183
- const Kf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3183
+ const Uf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3184
3184
  __proto__: null,
3185
- getYAxis: Uf,
3185
+ getYAxis: Kf,
3186
3186
  yAxis: hc
3187
3187
  }, Symbol.toStringTag, { value: "Module" })), pc = {
3188
3188
  confine: !0,
@@ -3197,7 +3197,7 @@ const Xf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3197
3197
  tooltip: pc
3198
3198
  }, Symbol.toStringTag, { value: "Module" })), ue = {
3199
3199
  ...Hf,
3200
- ...Kf,
3200
+ ...Uf,
3201
3201
  ...Xf
3202
3202
  };
3203
3203
  function Wn({
@@ -3301,7 +3301,7 @@ function tg({
3301
3301
  }
3302
3302
  function ng(e, t, n) {
3303
3303
  const s = t.reduce((i, o) => {
3304
- const a = Kt(o, n);
3304
+ const a = Ut(o, n);
3305
3305
  return i[o.name] = xt(o, a), i;
3306
3306
  }, {});
3307
3307
  return e.map((i) => ({
@@ -3743,7 +3743,7 @@ function bg({
3743
3743
  data: i,
3744
3744
  variables: s
3745
3745
  }), [l, i, s]);
3746
- return !n || !o || !a ? null : /* @__PURE__ */ r.jsx(nt, { width: o, height: a, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: x, style: gr(o, a), onEvents: p, notMerge: !0, theme: "merico-light" }) });
3746
+ return !n || !o || !a ? null : /* @__PURE__ */ r.jsx(nt, { width: o, height: a, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: x, style: gr(o, a), onEvents: p, notMerge: !0, theme: "merico-light" }) });
3747
3747
  }
3748
3748
  function yg({
3749
3749
  value: e,
@@ -3764,7 +3764,7 @@ function yg({
3764
3764
  placeholder: "Set any color",
3765
3765
  value: o ? "" : e,
3766
3766
  onChange: (a) => t(a.currentTarget.value),
3767
- rightSection: /* @__PURE__ */ r.jsx(Us, { color: o ? "transparent" : e, radius: 4 }),
3767
+ rightSection: /* @__PURE__ */ r.jsx(Ks, { color: o ? "transparent" : e, radius: 4 }),
3768
3768
  variant: o ? "filled" : "default",
3769
3769
  sx: {
3770
3770
  maxWidth: "46%",
@@ -3783,7 +3783,7 @@ function yg({
3783
3783
  onChange: t,
3784
3784
  variant: o ? "default" : "filled",
3785
3785
  placeholder: "Pick a theme color",
3786
- icon: /* @__PURE__ */ r.jsx(Us, { color: o ? e : "transparent", radius: 4 }),
3786
+ icon: /* @__PURE__ */ r.jsx(Ks, { color: o ? e : "transparent", radius: 4 }),
3787
3787
  sx: {
3788
3788
  maxWidth: "46%",
3789
3789
  flexGrow: 1
@@ -3922,7 +3922,7 @@ const wg = ({
3922
3922
  flexGrow: 0
3923
3923
  }, children: "Customize Label" }),
3924
3924
  /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
3925
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3925
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3926
3926
  /* @__PURE__ */ r.jsx(wg, { value: a.func_content, onChange: u, disabled: !a.enabled }),
3927
3927
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
3928
3928
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -3955,7 +3955,7 @@ const wg = ({
3955
3955
  field: n
3956
3956
  }) => (
3957
3957
  // @ts-expect-error type of onChange
3958
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
3958
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
3959
3959
  width: "48%"
3960
3960
  }, styles: {
3961
3961
  rightSection: {
@@ -4065,7 +4065,7 @@ function kg({
4065
4065
  }, styles: Fs })
4066
4066
  ] }),
4067
4067
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
4068
- /* @__PURE__ */ r.jsx(U, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
4068
+ /* @__PURE__ */ r.jsx(K, { label: "Mantissa", defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: i }),
4069
4069
  /* @__PURE__ */ r.jsx($e, { label: /* @__PURE__ */ r.jsxs(_, { spacing: 0, children: [
4070
4070
  /* @__PURE__ */ r.jsx(j, { children: "Trim mantissa" }),
4071
4071
  /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: "hide trailing zero(s)" })
@@ -4574,11 +4574,11 @@ const Li = {
4574
4574
  left: "flex-start",
4575
4575
  center: "center",
4576
4576
  right: "flex-end"
4577
- }, Ug = {
4577
+ }, Kg = {
4578
4578
  top: "flex-start",
4579
4579
  center: "center",
4580
4580
  bottom: "flex-end"
4581
- }, Kg = k(({
4581
+ }, Ug = k(({
4582
4582
  context: e,
4583
4583
  instance: t
4584
4584
  }) => {
@@ -4604,7 +4604,7 @@ const Li = {
4604
4604
  width: u,
4605
4605
  height: p,
4606
4606
  justifyContent: Hg[c],
4607
- alignItems: Ug[d]
4607
+ alignItems: Kg[d]
4608
4608
  }, children: /* @__PURE__ */ r.jsx(C, { ...h, onClick: b, children: xi(l)(x) }) });
4609
4609
  }), Yg = ({
4610
4610
  value: e,
@@ -4618,7 +4618,7 @@ const Li = {
4618
4618
  }, children: n }),
4619
4619
  /* @__PURE__ */ r.jsx(y, { position: "left", spacing: "xs", children: Object.keys(s.colors).map((a) => {
4620
4620
  const l = s.colors[a][6];
4621
- return /* @__PURE__ */ r.jsx(Us, { color: l, onClick: i(a), radius: 4, size: 26, sx: {
4621
+ return /* @__PURE__ */ r.jsx(Ks, { color: l, onClick: i(a), radius: 4, size: 26, sx: {
4622
4622
  cursor: "pointer"
4623
4623
  }, children: o(a) && /* @__PURE__ */ r.jsx(Zu, { width: 10, color: "white" }) }, a);
4624
4624
  }) })
@@ -4728,7 +4728,7 @@ function nb({
4728
4728
  }) => /* @__PURE__ */ r.jsx(Jg, { label: "Size", ...p }) }),
4729
4729
  /* @__PURE__ */ r.jsx(g, { control: o, name: "compact", render: ({
4730
4730
  field: p
4731
- }) => /* @__PURE__ */ r.jsx(K, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
4731
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Compact", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked), mt: 26 }) })
4732
4732
  ] }),
4733
4733
  /* @__PURE__ */ r.jsxs(en, { cols: 2, children: [
4734
4734
  /* @__PURE__ */ r.jsx(
@@ -4787,7 +4787,7 @@ const sb = {
4787
4787
  displayGroup: "Others",
4788
4788
  migrator: new rb(),
4789
4789
  name: "button",
4790
- viewRender: Kg,
4790
+ viewRender: Ug,
4791
4791
  configRender: nb,
4792
4792
  createConfig() {
4793
4793
  return {
@@ -5284,7 +5284,7 @@ function kb(e) {
5284
5284
  function fc(e, t) {
5285
5285
  const n = {};
5286
5286
  return t.map((s) => {
5287
- const i = Kt(s, e);
5287
+ const i = Ut(s, e);
5288
5288
  n[s.name] = xt(s, i);
5289
5289
  }), n;
5290
5290
  }
@@ -5431,7 +5431,7 @@ function Ab({
5431
5431
  };
5432
5432
  return O(() => {
5433
5433
  h.current && ra(h.current);
5434
- }, [d]), !n || !s ? null : /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: d, style: {
5434
+ }, [d]), !n || !s ? null : /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: d, style: {
5435
5435
  width: n,
5436
5436
  height: s
5437
5437
  }, onEvents: u, onChartReady: p, notMerge: !0, theme: "merico-light" });
@@ -5693,7 +5693,7 @@ function Nb({
5693
5693
  control: e,
5694
5694
  render: ({
5695
5695
  field: l
5696
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
5696
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
5697
5697
  flexGrow: 1
5698
5698
  }, ...l })
5699
5699
  }
@@ -5708,7 +5708,7 @@ function Nb({
5708
5708
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
5709
5709
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
5710
5710
  field: l
5711
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5711
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5712
5712
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
5713
5713
  top: 15,
5714
5714
  right: 5
@@ -5856,7 +5856,7 @@ function Gb({
5856
5856
  control: e,
5857
5857
  render: ({
5858
5858
  field: a
5859
- }) => /* @__PURE__ */ r.jsx(U, { label: "Order", sx: {
5859
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Order", sx: {
5860
5860
  flex: 1
5861
5861
  }, ...a })
5862
5862
  }
@@ -5883,7 +5883,7 @@ function Gb({
5883
5883
  control: e,
5884
5884
  render: ({
5885
5885
  field: a
5886
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
5886
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
5887
5887
  flexGrow: 1
5888
5888
  }, ...a })
5889
5889
  }
@@ -6723,7 +6723,7 @@ const vc = {
6723
6723
  table: !0,
6724
6724
  tfoot: !0,
6725
6725
  ul: !0
6726
- }, Ub = {
6726
+ }, Kb = {
6727
6727
  head: !0,
6728
6728
  noscript: !0,
6729
6729
  object: !0,
@@ -6832,9 +6832,9 @@ class oa {
6832
6832
  // none is found, the element's content nodes are added directly.
6833
6833
  addElement(t, n) {
6834
6834
  let s = t.nodeName.toLowerCase(), i;
6835
- wc.hasOwnProperty(s) && this.parser.normalizeLists && Kb(t);
6835
+ wc.hasOwnProperty(s) && this.parser.normalizeLists && Ub(t);
6836
6836
  let o = this.options.ruleFromNode && this.options.ruleFromNode(t) || (i = this.parser.matchTag(t, this, n));
6837
- if (o ? o.ignore : Ub.hasOwnProperty(s))
6837
+ if (o ? o.ignore : Kb.hasOwnProperty(s))
6838
6838
  this.findInside(t), this.ignoreFallback(t);
6839
6839
  else if (!o || o.skip || o.closeParent) {
6840
6840
  o && o.closeParent ? this.open = Math.max(0, this.open - 1) : o && o.skip.nodeType && (t = o.skip);
@@ -7063,7 +7063,7 @@ class oa {
7063
7063
  }
7064
7064
  }
7065
7065
  }
7066
- function Kb(e) {
7066
+ function Ub(e) {
7067
7067
  for (let t = e.firstChild, n = null; t; t = t.nextSibling) {
7068
7068
  let s = t.nodeType == 1 ? t.nodeName.toLowerCase() : null;
7069
7069
  s && wc.hasOwnProperty(s) && n ? (n.appendChild(t), t = n) : s == "li" ? n = t : s && (n = null);
@@ -8534,7 +8534,7 @@ function xa(e) {
8534
8534
  const t = `<body>${e}</body>`;
8535
8535
  return new window.DOMParser().parseFromString(t, "text/html").body;
8536
8536
  }
8537
- function Ur(e, t, n) {
8537
+ function Kr(e, t, n) {
8538
8538
  if (n = {
8539
8539
  slice: !0,
8540
8540
  parseOptions: {},
@@ -8543,13 +8543,13 @@ function Ur(e, t, n) {
8543
8543
  try {
8544
8544
  return Array.isArray(e) && e.length > 0 ? de.fromArray(e.map((s) => t.nodeFromJSON(s))) : t.nodeFromJSON(e);
8545
8545
  } catch (s) {
8546
- return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Ur("", t, n);
8546
+ return console.warn("[tiptap warn]: Invalid content.", "Passed value:", e, "Error:", s), Kr("", t, n);
8547
8547
  }
8548
8548
  if (typeof e == "string") {
8549
8549
  const s = Wr.fromSchema(t);
8550
8550
  return n.slice ? s.parseSlice(xa(e), n.parseOptions).content : s.parse(xa(e), n.parseOptions);
8551
8551
  }
8552
- return Ur("", t, n);
8552
+ return Kr("", t, n);
8553
8553
  }
8554
8554
  function My(e, t, n) {
8555
8555
  const s = e.steps.length - 1;
@@ -8571,7 +8571,7 @@ const Ay = (e) => e.toString().startsWith("<"), Ry = (e, t, n) => ({ tr: s, disp
8571
8571
  updateSelection: !0,
8572
8572
  ...n
8573
8573
  };
8574
- const a = Ur(t, o.schema, {
8574
+ const a = Kr(t, o.schema, {
8575
8575
  parseOptions: {
8576
8576
  preserveWhitespace: "full",
8577
8577
  ...n.parseOptions
@@ -8652,7 +8652,7 @@ const Ny = (e, t = {}) => ({ state: n, dispatch: s }) => {
8652
8652
  return Vi(n, i, t) ? $p(n, s) : !1;
8653
8653
  }, By = () => ({ state: e, dispatch: t }) => Vp(e, t), qy = (e) => ({ state: t, dispatch: n }) => {
8654
8654
  const s = He(e, t.schema);
8655
- return Up(s)(t, n);
8655
+ return Kp(s)(t, n);
8656
8656
  }, Wy = () => ({ state: e, dispatch: t }) => Np(e, t);
8657
8657
  function Fc(e, t) {
8658
8658
  return t.nodes[e] ? "node" : t.marks[e] ? "mark" : null;
@@ -8674,9 +8674,9 @@ const Gy = (e, t) => ({ tr: n, state: s, dispatch: i }) => {
8674
8674
  }, Qy = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), Hy = () => ({ tr: e, commands: t }) => t.setTextSelection({
8675
8675
  from: 0,
8676
8676
  to: e.doc.content.size
8677
- }), Uy = () => ({ state: e, dispatch: t }) => Bp(e, t), Ky = () => ({ state: e, dispatch: t }) => qp(e, t), Yy = () => ({ state: e, dispatch: t }) => Wp(e, t), Xy = () => ({ state: e, dispatch: t }) => Gp(e, t), Jy = () => ({ state: e, dispatch: t }) => Qp(e, t);
8677
+ }), Ky = () => ({ state: e, dispatch: t }) => Bp(e, t), Uy = () => ({ state: e, dispatch: t }) => qp(e, t), Yy = () => ({ state: e, dispatch: t }) => Wp(e, t), Xy = () => ({ state: e, dispatch: t }) => Gp(e, t), Jy = () => ({ state: e, dispatch: t }) => Qp(e, t);
8678
8678
  function Zy(e, t, n = {}) {
8679
- return Ur(e, t, { slice: !1, parseOptions: n });
8679
+ return Kr(e, t, { slice: !1, parseOptions: n });
8680
8680
  }
8681
8681
  const ej = (e, t = !1, n = {}) => ({ tr: s, editor: i, dispatch: o }) => {
8682
8682
  const { doc: a } = s, l = Zy(e, i.schema, n);
@@ -8800,7 +8800,7 @@ const oj = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8800
8800
  return ij(s, n, c);
8801
8801
  }, aj = (e, t) => ({ tr: n }) => (n.setMeta(e, t), !0), lj = (e, t = {}) => ({ state: n, dispatch: s, chain: i }) => {
8802
8802
  const o = He(e, n.schema);
8803
- return o.isTextblock ? i().command(({ commands: a }) => Ko(o, t)(n) ? !0 : a.clearNodes()).command(({ state: a }) => Ko(o, t)(a, s)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
8803
+ return o.isTextblock ? i().command(({ commands: a }) => Uo(o, t)(n) ? !0 : a.clearNodes()).command(({ state: a }) => Uo(o, t)(a, s)).run() : (console.warn('[tiptap warn]: Currently "setNode()" only supports text block nodes.'), !1);
8804
8804
  }, cj = (e) => ({ tr: t, dispatch: n }) => {
8805
8805
  if (n) {
8806
8806
  const { doc: s } = t, i = pn(e, 0, s.content.size), o = ot.create(s, i);
@@ -8815,7 +8815,7 @@ const oj = (e, t = {}) => ({ tr: n, state: s, dispatch: i }) => {
8815
8815
  return !0;
8816
8816
  }, uj = (e) => ({ state: t, dispatch: n }) => {
8817
8817
  const s = He(e, t.schema);
8818
- return Kp(s)(t, n);
8818
+ return Up(s)(t, n);
8819
8819
  };
8820
8820
  function ga(e, t) {
8821
8821
  const n = e.storedMarks || e.selection.$to.parentOffset && e.selection.$from.marks();
@@ -9037,8 +9037,8 @@ var Sj = /* @__PURE__ */ Object.freeze({
9037
9037
  resetAttributes: Gy,
9038
9038
  scrollIntoView: Qy,
9039
9039
  selectAll: Hy,
9040
- selectNodeBackward: Uy,
9041
- selectNodeForward: Ky,
9040
+ selectNodeBackward: Ky,
9041
+ selectNodeForward: Uy,
9042
9042
  selectParentNode: Yy,
9043
9043
  selectTextblockEnd: Xy,
9044
9044
  selectTextblockStart: Jy,
@@ -9468,7 +9468,7 @@ function Mj({
9468
9468
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9469
9469
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, pt: s, children: [
9470
9470
  /* @__PURE__ */ r.jsx(A, { ref: o, label: e, data: Lj, value: t.type, onChange: a, maxDropdownHeight: 600 }),
9471
- 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 }),
9471
+ 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 }),
9472
9472
  t.type === "custom" && /* @__PURE__ */ r.jsx(Pc, { title: "Custom Aggregation", label: "", triggerLabel: "Edit Function", value: t.config.func, onChange: c, defaultValue: ea, triggerButtonProps: {
9473
9473
  size: "xs",
9474
9474
  sx: {
@@ -9606,7 +9606,7 @@ const Ej = ({
9606
9606
  size: s
9607
9607
  });
9608
9608
  };
9609
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(U, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
9609
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(K, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
9610
9610
  }, $j = [{
9611
9611
  label: "Static",
9612
9612
  value: "static"
@@ -9680,7 +9680,7 @@ function Bj({
9680
9680
  control: e,
9681
9681
  render: ({
9682
9682
  field: i
9683
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
9683
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
9684
9684
  flexGrow: 1
9685
9685
  }, ...i })
9686
9686
  }
@@ -9858,7 +9858,7 @@ function Gj({
9858
9858
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
9859
9859
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
9860
9860
  field: a
9861
- }) => /* @__PURE__ */ r.jsx(K, { label: "Hide in legend", checked: a.value, onChange: (l) => a.onChange(l.currentTarget.checked) }) }),
9861
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: a.value, onChange: (l) => a.onChange(l.currentTarget.checked) }) }),
9862
9862
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
9863
9863
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
9864
9864
  top: 15,
@@ -9946,7 +9946,7 @@ function Hj({
9946
9946
  }, ...n }) })
9947
9947
  ] }) });
9948
9948
  }
9949
- const Uj = () => /* @__PURE__ */ r.jsxs(y, { sx: {
9949
+ const Kj = () => /* @__PURE__ */ r.jsxs(y, { sx: {
9950
9950
  display: "inline-flex"
9951
9951
  }, spacing: 6, mr: 14, children: [
9952
9952
  /* @__PURE__ */ r.jsx(j, { children: "X Axis Data Type" }),
@@ -9956,11 +9956,11 @@ const Uj = () => /* @__PURE__ */ r.jsxs(y, { sx: {
9956
9956
  }, children: /* @__PURE__ */ r.jsx(_n, {}) }) }),
9957
9957
  /* @__PURE__ */ r.jsx(Ie.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9958
9958
  "Click",
9959
- /* @__PURE__ */ r.jsx(Ks, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 4, children: "here" }),
9959
+ /* @__PURE__ */ r.jsx(Us, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 4, children: "here" }),
9960
9960
  "to learn more about these options"
9961
9961
  ] }) })
9962
9962
  ] })
9963
- ] }), Kj = [{
9963
+ ] }), Uj = [{
9964
9964
  label: "Value",
9965
9965
  value: "value"
9966
9966
  }, {
@@ -9993,7 +9993,7 @@ function Yj({
9993
9993
  field: n
9994
9994
  }) => (
9995
9995
  // @ts-expect-error type of onChange
9996
- /* @__PURE__ */ r.jsx(A, { label: /* @__PURE__ */ r.jsx(Uj, {}), required: !0, data: Kj, sx: {
9996
+ /* @__PURE__ */ r.jsx(A, { label: /* @__PURE__ */ r.jsx(Kj, {}), required: !0, data: Uj, sx: {
9997
9997
  flex: 1
9998
9998
  }, ...n })
9999
9999
  ) })
@@ -10004,7 +10004,7 @@ function Yj({
10004
10004
  field: n
10005
10005
  }) => (
10006
10006
  // @ts-expect-error type of onChange
10007
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
10007
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
10008
10008
  width: "48%"
10009
10009
  }, styles: {
10010
10010
  rightSection: {
@@ -10092,7 +10092,7 @@ function Zj({
10092
10092
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
10093
10093
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${t}.show`, control: e, render: ({
10094
10094
  field: s
10095
- }) => /* @__PURE__ */ r.jsx(K, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
10095
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
10096
10096
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this YAxis" })
10097
10097
  ] });
10098
10098
  }
@@ -10869,7 +10869,7 @@ function Rv({
10869
10869
  height: s
10870
10870
  }) {
10871
10871
  const i = M.useMemo(() => Mv(e, t), [e, t]);
10872
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: i, style: {
10872
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: i, style: {
10873
10873
  width: n,
10874
10874
  height: s
10875
10875
  }, notMerge: !0, theme: "merico-light" });
@@ -11010,7 +11010,7 @@ const Fv = [{
11010
11010
  field: l
11011
11011
  }) => (
11012
11012
  // @ts-expect-error type of onChange
11013
- /* @__PURE__ */ r.jsx(U, { disabled: !i, labelProps: {
11013
+ /* @__PURE__ */ r.jsx(K, { disabled: !i, labelProps: {
11014
11014
  display: "block"
11015
11015
  }, label: /* @__PURE__ */ r.jsxs(y, { position: "apart", pr: 6, sx: {
11016
11016
  width: "100%"
@@ -11018,7 +11018,7 @@ const Fv = [{
11018
11018
  /* @__PURE__ */ r.jsx(j, { children: "Min Value" }),
11019
11019
  /* @__PURE__ */ r.jsx(ye, { label: "Check to enable specific min value", children: /* @__PURE__ */ r.jsx(L, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.enable_value`, control: t, render: ({
11020
11020
  field: c
11021
- }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
11021
+ }) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
11022
11022
  ] }), ...l })
11023
11023
  ) }),
11024
11024
  /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.size`, control: t, render: ({
@@ -11030,7 +11030,7 @@ const Fv = [{
11030
11030
  field: l
11031
11031
  }) => (
11032
11032
  // @ts-expect-error type of onChange
11033
- /* @__PURE__ */ r.jsx(U, { disabled: !o, labelProps: {
11033
+ /* @__PURE__ */ r.jsx(K, { disabled: !o, labelProps: {
11034
11034
  display: "block"
11035
11035
  }, label: /* @__PURE__ */ r.jsxs(y, { position: "apart", pr: 6, sx: {
11036
11036
  width: "100%"
@@ -11038,7 +11038,7 @@ const Fv = [{
11038
11038
  /* @__PURE__ */ r.jsx(j, { children: "Max Value" }),
11039
11039
  /* @__PURE__ */ r.jsx(ye, { label: "Check to enable specific max value", children: /* @__PURE__ */ r.jsx(L, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.enable_value`, control: t, render: ({
11040
11040
  field: c
11041
- }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
11041
+ }) => /* @__PURE__ */ r.jsx(U, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
11042
11042
  ] }), ...l })
11043
11043
  ) }),
11044
11044
  /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.size`, control: t, render: ({
@@ -11081,7 +11081,7 @@ const Fv = [{
11081
11081
  control: t,
11082
11082
  render: ({
11083
11083
  field: l
11084
- }) => /* @__PURE__ */ r.jsx(U, { placeholder: "0, 5, 10...", label: "Gap", ...l })
11084
+ }) => /* @__PURE__ */ r.jsx(K, { placeholder: "0, 5, 10...", label: "Gap", ...l })
11085
11085
  }
11086
11086
  )
11087
11087
  ] }),
@@ -11261,14 +11261,14 @@ function ba({
11261
11261
  }
11262
11262
  };
11263
11263
  }
11264
- function Uv(e) {
11264
+ function Kv(e) {
11265
11265
  const t = ba(e.x_axis.axisLabel.formatter), n = ba(e.y_axis.axisLabel.formatter);
11266
11266
  return {
11267
11267
  x_axis: t,
11268
11268
  y_axis: n
11269
11269
  };
11270
11270
  }
11271
- function Kv(e) {
11271
+ function Uv(e) {
11272
11272
  return {
11273
11273
  heat_block: function(s) {
11274
11274
  if (!e.heat_block.value_formatter)
@@ -11491,7 +11491,7 @@ const tw = ({
11491
11491
  value: s
11492
11492
  });
11493
11493
  };
11494
- return /* @__PURE__ */ r.jsx(U, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
11494
+ return /* @__PURE__ */ r.jsx(K, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
11495
11495
  }, iw = [{
11496
11496
  label: "Static",
11497
11497
  value: "static"
@@ -11652,9 +11652,9 @@ function dw(e, t, n, s, i) {
11652
11652
  if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
11653
11653
  return {};
11654
11654
  const o = n.reduce((D, R) => {
11655
- const P = Kt(R, t);
11655
+ const P = Ut(R, t);
11656
11656
  return D[R.name] = xt(R, P), D;
11657
- }, {}), a = Uv(e), l = Kv(e), c = $(e.x_axis.data_key), d = $(e.y_axis.data_key), h = $(e.heat_block.data_key), u = w.uniq(t[c.queryID].map((D) => D[c.columnKey])), p = w.uniq(t[c.queryID].map((D) => D[d.columnKey])), x = t[c.queryID].map((D) => [w.get(D, c.columnKey), w.get(D, d.columnKey), w.get(D, h.columnKey)]), b = cw(u.length, p.length, s, i);
11657
+ }, {}), a = Kv(e), l = Uv(e), c = $(e.x_axis.data_key), d = $(e.y_axis.data_key), h = $(e.heat_block.data_key), u = w.uniq(t[c.queryID].map((D) => D[c.columnKey])), p = w.uniq(t[c.queryID].map((D) => D[d.columnKey])), x = t[c.queryID].map((D) => [w.get(D, c.columnKey), w.get(D, d.columnKey), w.get(D, h.columnKey)]), b = cw(u.length, p.length, s, i);
11658
11658
  return {
11659
11659
  xAxis: aw(e, u, a.x_axis, b),
11660
11660
  yAxis: lw(e, p, a.y_axis, b),
@@ -11769,7 +11769,7 @@ function pw({
11769
11769
  }, [a, l, i]), d = T(() => ({
11770
11770
  click: c
11771
11771
  }), [c]), h = M.useMemo(() => dw(e, t, o, n, s), [e, t, n, s]);
11772
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: h, style: {
11772
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: h, style: {
11773
11773
  width: n,
11774
11774
  height: s
11775
11775
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -11833,7 +11833,7 @@ function mw({
11833
11833
  field: s
11834
11834
  }) => (
11835
11835
  // @ts-expect-error type of onChange
11836
- /* @__PURE__ */ r.jsx(U, { size: "xs", icon: /* @__PURE__ */ r.jsx(gi, { size: 16 }), disabled: !n, ...s })
11836
+ /* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(gi, { size: 16 }), disabled: !n, ...s })
11837
11837
  ) })
11838
11838
  ] })
11839
11839
  ] });
@@ -11978,7 +11978,7 @@ const yw = ({
11978
11978
  flexGrow: 0
11979
11979
  }, children: "Customize Label" }),
11980
11980
  /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
11981
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11981
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11982
11982
  /* @__PURE__ */ r.jsx(yw, { value: a.func_content, onChange: u, disabled: !a.enabled }),
11983
11983
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
11984
11984
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -12016,7 +12016,7 @@ function vw({
12016
12016
  field: n
12017
12017
  }) => (
12018
12018
  // @ts-expect-error type of onChange
12019
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12019
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12020
12020
  width: "48%"
12021
12021
  }, styles: {
12022
12022
  rightSection: {
@@ -12078,7 +12078,7 @@ function _w({
12078
12078
  field: n
12079
12079
  }) => (
12080
12080
  // @ts-expect-error type of onChange
12081
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12081
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12082
12082
  width: "48%"
12083
12083
  }, styles: {
12084
12084
  rightSection: {
@@ -12329,7 +12329,7 @@ const Wc = {
12329
12329
  dataZoom: Cn,
12330
12330
  markLine: Wc
12331
12331
  };
12332
- function Kr(e) {
12332
+ function Ur(e) {
12333
12333
  return ne(e, {
12334
12334
  output: "percent",
12335
12335
  mantissa: 0,
@@ -12339,7 +12339,7 @@ function Kr(e) {
12339
12339
  function Mw(e) {
12340
12340
  const t = e.value[1];
12341
12341
  try {
12342
- return Kr(t);
12342
+ return Ur(t);
12343
12343
  } catch (n) {
12344
12344
  return console.error(n), t;
12345
12345
  }
@@ -12358,7 +12358,7 @@ function Aw(e) {
12358
12358
  return {
12359
12359
  bar: t,
12360
12360
  line: Mw,
12361
- lineValue: Kr
12361
+ lineValue: Ur
12362
12362
  };
12363
12363
  }
12364
12364
  function Rw(e, t, n) {
@@ -12381,8 +12381,8 @@ function Ew(e, t) {
12381
12381
  if (n === -1)
12382
12382
  return {};
12383
12383
  const s = t[n], i = {
12384
- x: Kr((n + 1) / t.length),
12385
- y: Kr(s[1])
12384
+ x: Ur((n + 1) / t.length),
12385
+ y: Ur(s[1])
12386
12386
  }, o = {
12387
12387
  left: n + 1,
12388
12388
  right: t.length - n - 1
@@ -12600,7 +12600,7 @@ function Bw({
12600
12600
  }, [h, d, c]), p = T(() => ({
12601
12601
  click: u
12602
12602
  }), [u]);
12603
- return !a || !i || !o ? null : /* @__PURE__ */ r.jsx(nt, { width: i, height: o, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: l, style: gr(i, o), onEvents: p, notMerge: !0, theme: "merico-light" }) });
12603
+ return !a || !i || !o ? null : /* @__PURE__ */ r.jsx(nt, { width: i, height: o, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: l, style: gr(i, o), onEvents: p, notMerge: !0, theme: "merico-light" }) });
12604
12604
  }
12605
12605
  const qw = [{
12606
12606
  label: "left",
@@ -12707,14 +12707,14 @@ const Hw = `
12707
12707
  name: string;
12708
12708
  };
12709
12709
  }
12710
- `, Uw = () => {
12710
+ `, Kw = () => {
12711
12711
  const [e, t] = B(!1);
12712
12712
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
12713
12713
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", compact: !0, onClick: () => t((n) => !n), children: e ? "Close" : "Click to see params for Label Template" }),
12714
12714
  /* @__PURE__ */ r.jsx(dr, { in: e, children: /* @__PURE__ */ r.jsx(tn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: Hw }) })
12715
12715
  ] });
12716
12716
  };
12717
- function Kw({
12717
+ function Uw({
12718
12718
  control: e,
12719
12719
  watch: t
12720
12720
  }) {
@@ -12731,7 +12731,7 @@ function Kw({
12731
12731
  }) => /* @__PURE__ */ r.jsx(nh, { autosize: !0, minRows: 2, maxRows: 4, label: "Label Template", sx: {
12732
12732
  flex: 1
12733
12733
  }, ...n }) }),
12734
- /* @__PURE__ */ r.jsx(Uw, {})
12734
+ /* @__PURE__ */ r.jsx(Kw, {})
12735
12735
  ] })
12736
12736
  ] });
12737
12737
  }
@@ -12758,7 +12758,7 @@ function Yw({
12758
12758
  field: n
12759
12759
  }) => (
12760
12760
  // @ts-expect-error type of onChange
12761
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12761
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
12762
12762
  width: "48%"
12763
12763
  }, styles: {
12764
12764
  rightSection: {
@@ -12836,7 +12836,7 @@ function Jw({
12836
12836
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Y Axis", children: /* @__PURE__ */ r.jsx(Xw, { control: i, watch: a }) }),
12837
12837
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Bar", children: /* @__PURE__ */ r.jsx(Ww, { control: i, watch: a }) }),
12838
12838
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Line", children: /* @__PURE__ */ r.jsx(Qw, { control: i, watch: a }) }),
12839
- /* @__PURE__ */ r.jsx(f.Panel, { value: "80-20 Line", children: /* @__PURE__ */ r.jsx(Kw, { control: i, watch: a }) }),
12839
+ /* @__PURE__ */ r.jsx(f.Panel, { value: "80-20 Line", children: /* @__PURE__ */ r.jsx(Uw, { control: i, watch: a }) }),
12840
12840
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Zooming", children: /* @__PURE__ */ r.jsx(g, { name: "dataZoom", control: i, render: ({
12841
12841
  field: u
12842
12842
  }) => /* @__PURE__ */ r.jsx(hs, { ...u }) }) })
@@ -13146,7 +13146,7 @@ function p0({
13146
13146
  }, [o, a, i]), c = M.useMemo(() => d0(e, t, n), [e, t, n]), d = T(() => ({
13147
13147
  click: l
13148
13148
  }), [l]);
13149
- return !n || !s || !c.series.name ? null : /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: c, style: {
13149
+ return !n || !s || !c.series.name ? null : /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: c, style: {
13150
13150
  width: n,
13151
13151
  height: s
13152
13152
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -13331,7 +13331,7 @@ function Hc(e) {
13331
13331
  }
13332
13332
  } : (t) => t;
13333
13333
  }
13334
- function Uc(e) {
13334
+ function Kc(e) {
13335
13335
  return {
13336
13336
  show: e.label.enabled,
13337
13337
  formatter: ({
@@ -13340,7 +13340,7 @@ function Uc(e) {
13340
13340
  }) => Hc(e.dimensions[t].formatter)(n)
13341
13341
  };
13342
13342
  }
13343
- function Kc(e, t) {
13343
+ function Uc(e, t) {
13344
13344
  return t.map(({
13345
13345
  data_key: n
13346
13346
  }) => {
@@ -13351,7 +13351,7 @@ function Kc(e, t) {
13351
13351
  function w0(e, t, n) {
13352
13352
  const s = $(t);
13353
13353
  return e[s.queryID].map((i) => ({
13354
- value: Kc(i, n),
13354
+ value: Uc(i, n),
13355
13355
  name: i[s.columnKey]
13356
13356
  }));
13357
13357
  }
@@ -13376,7 +13376,7 @@ function _0(e, t) {
13376
13376
  areaStyle: t.background.enabled ? {
13377
13377
  opacity: 0.4
13378
13378
  } : void 0,
13379
- label: Uc(t)
13379
+ label: Kc(t)
13380
13380
  }];
13381
13381
  }
13382
13382
  function S0(e, t) {
@@ -13393,7 +13393,7 @@ function S0(e, t) {
13393
13393
  const u = h[a.columnKey], p = h[l.columnKey];
13394
13394
  return {
13395
13395
  name: u,
13396
- value: Kc(h, s),
13396
+ value: Uc(h, s),
13397
13397
  itemStyle: {
13398
13398
  color: p
13399
13399
  }
@@ -13411,7 +13411,7 @@ function S0(e, t) {
13411
13411
  areaStyle: t.background.enabled ? {
13412
13412
  opacity: 0.4
13413
13413
  } : void 0,
13414
- label: Uc(t)
13414
+ label: Kc(t)
13415
13415
  };
13416
13416
  }).flat();
13417
13417
  }
@@ -13543,7 +13543,7 @@ function z0({
13543
13543
  }, [a, l, i]), d = T(() => ({
13544
13544
  click: c
13545
13545
  }), [c]), h = T(() => D0(Se({}, e, fs), t), [e, t]);
13546
- return !n || !s ? null : /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: h, style: {
13546
+ return !n || !s ? null : /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: h, style: {
13547
13547
  width: n,
13548
13548
  height: s
13549
13549
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -13776,10 +13776,10 @@ function F0({
13776
13776
  /* @__PURE__ */ r.jsx(f.Panel, { value: "style", p: "md", children: /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
13777
13777
  /* @__PURE__ */ r.jsx(g, { name: "background.enabled", control: i, render: ({
13778
13778
  field: p
13779
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
13779
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show background", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) }),
13780
13780
  /* @__PURE__ */ r.jsx(g, { name: "label.enabled", control: i, render: ({
13781
13781
  field: p
13782
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13782
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show value label", checked: p.value, onChange: (x) => p.onChange(x.currentTarget.checked) }) })
13783
13783
  ] }) }),
13784
13784
  /* @__PURE__ */ r.jsx(f.Panel, { value: "additional_series", p: "md", children: /* @__PURE__ */ r.jsx(A0, { control: i, watch: a }) })
13785
13785
  ] })
@@ -14021,7 +14021,7 @@ function H0(e, t) {
14021
14021
  };
14022
14022
  });
14023
14023
  }
14024
- function U0(e, t) {
14024
+ function K0(e, t) {
14025
14025
  if (t.length === 0)
14026
14026
  return [];
14027
14027
  const {
@@ -14029,7 +14029,7 @@ function U0(e, t) {
14029
14029
  } = e.regression;
14030
14030
  return n ? H0(e, t) : Q0(e, t);
14031
14031
  }
14032
- function K0(e) {
14032
+ function U0(e) {
14033
14033
  return Array.isArray(e) || (e = [e]), e.map((t) => ({
14034
14034
  marker: t.marker,
14035
14035
  label: t.seriesName,
@@ -14041,7 +14041,7 @@ function Y0(e) {
14041
14041
  return ue.getTooltip({
14042
14042
  trigger: "axis",
14043
14043
  formatter: (t) => {
14044
- const n = K0(t);
14044
+ const n = U0(t);
14045
14045
  return n.length === 0 ? "" : `
14046
14046
  <table style="width: auto">
14047
14047
  <thead>
@@ -14132,7 +14132,7 @@ const J0 = {
14132
14132
  }]
14133
14133
  };
14134
14134
  function Z0(e, t) {
14135
- const n = U0(e, t), s = G0(e, n), i = {
14135
+ const n = K0(e, t), s = G0(e, n), i = {
14136
14136
  xAxis: X0(e),
14137
14137
  yAxis: ue.getYAxis({
14138
14138
  name: e.y_axis.name ?? "",
@@ -14363,7 +14363,7 @@ const bs = {
14363
14363
  enabled: !1,
14364
14364
  func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
14365
14365
  `)
14366
- }, Ui = {
14366
+ }, Ki = {
14367
14367
  x_axis: {
14368
14368
  name: "X Axis",
14369
14369
  data_key: "",
@@ -14420,12 +14420,12 @@ function c_({
14420
14420
  ...b,
14421
14421
  [p.columnKey]: Number(b[p.columnKey])
14422
14422
  });
14423
- }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), o = T(() => Z0(Se({}, t, Ui), i), [t, i]), a = Zr(null), l = (c) => {
14423
+ }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), o = T(() => Z0(Se({}, t, Ki), i), [t, i]), a = Zr(null), l = (c) => {
14424
14424
  a.current = c;
14425
14425
  };
14426
14426
  return !n || !s || !t ? null : /* @__PURE__ */ r.jsxs(nt, { width: n, height: s, children: [
14427
14427
  /* @__PURE__ */ r.jsx(l_, { conf: t, queryData: i }),
14428
- /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, onChartReady: l, option: o, style: gr(n, s), notMerge: !0, theme: "merico-light" })
14428
+ /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, onChartReady: l, option: o, style: gr(n, s), notMerge: !0, theme: "merico-light" })
14429
14429
  ] });
14430
14430
  }
14431
14431
  const d_ = [{
@@ -14478,7 +14478,7 @@ function u_({
14478
14478
  control: e,
14479
14479
  render: ({
14480
14480
  field: i
14481
- }) => /* @__PURE__ */ r.jsx(U, { label: "次", sx: {
14481
+ }) => /* @__PURE__ */ r.jsx(K, { label: "次", sx: {
14482
14482
  flex: 1
14483
14483
  }, ...i })
14484
14484
  }
@@ -14553,7 +14553,7 @@ const h_ = ({
14553
14553
  flexGrow: 0
14554
14554
  }, children: n }),
14555
14555
  /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(_, { children: [
14556
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (b) => d(b.currentTarget.checked) }),
14556
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (b) => d(b.currentTarget.checked) }),
14557
14557
  /* @__PURE__ */ r.jsx(h_, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14558
14558
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
14559
14559
  /* @__PURE__ */ r.jsx(C, { onClick: x, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -14592,7 +14592,7 @@ function p_({
14592
14592
  field: n
14593
14593
  }) => (
14594
14594
  // @ts-expect-error type of onChange
14595
- /* @__PURE__ */ r.jsx(U, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
14595
+ /* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
14596
14596
  width: "48%"
14597
14597
  }, styles: {
14598
14598
  rightSection: {
@@ -14634,7 +14634,7 @@ function m_({
14634
14634
  const {
14635
14635
  value: t,
14636
14636
  set: n
14637
- } = Q(e.instanceData, "config"), s = T(() => ke({}, t, Ui), [t]), {
14637
+ } = Q(e.instanceData, "config"), s = T(() => ke({}, t, Ki), [t]), {
14638
14638
  control: i,
14639
14639
  handleSubmit: o,
14640
14640
  watch: a,
@@ -14751,7 +14751,7 @@ const y_ = {
14751
14751
  createConfig() {
14752
14752
  return {
14753
14753
  version: 3,
14754
- config: Ne(Ui)
14754
+ config: Ne(Ki)
14755
14755
  };
14756
14756
  }
14757
14757
  }, ys = {
@@ -14832,7 +14832,7 @@ function C_() {
14832
14832
  withHeaderRow: !0
14833
14833
  }), "aria-label": "Insert table", title: "Insert table", children: /* @__PURE__ */ r.jsx(sp, { stroke: 1.5, size: 16 }) });
14834
14834
  }
14835
- const Ki = xe(({
14835
+ const Ui = xe(({
14836
14836
  value: e,
14837
14837
  onChange: t,
14838
14838
  styles: n = {},
@@ -14958,7 +14958,7 @@ function k_({
14958
14958
  field: h
14959
14959
  }) => (
14960
14960
  // @ts-expect-error type of onChange
14961
- /* @__PURE__ */ r.jsx(Ki, { ...h, styles: {
14961
+ /* @__PURE__ */ r.jsx(Ui, { ...h, styles: {
14962
14962
  root: {
14963
14963
  flexGrow: 1
14964
14964
  }
@@ -15450,7 +15450,7 @@ const G_ = {
15450
15450
  };
15451
15451
  function Q_(e, t, n) {
15452
15452
  const s = n.reduce((c, d) => {
15453
- const h = Kt(d, t);
15453
+ const h = Ut(d, t);
15454
15454
  return c[d.name] = xt(d, h), c;
15455
15455
  }, {}), i = e.y_axes.reduce((c, {
15456
15456
  label_formatter: d
@@ -15501,12 +15501,12 @@ function H_({
15501
15501
  }, [a, l, i]), d = T(() => ({
15502
15502
  click: c
15503
15503
  }), [c]), h = M.useMemo(() => Q_(e, t, o), [e, t]);
15504
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: h, style: {
15504
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: h, style: {
15505
15505
  width: n,
15506
15506
  height: s
15507
15507
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
15508
15508
  }
15509
- function U_({
15509
+ function K_({
15510
15510
  context: e,
15511
15511
  instance: t
15512
15512
  }) {
@@ -15547,7 +15547,7 @@ function U_({
15547
15547
  }, children: Object.values(x.bottom).map((S) => S) })
15548
15548
  ] });
15549
15549
  }
15550
- const K_ = xe(({
15550
+ const U_ = xe(({
15551
15551
  value: e,
15552
15552
  onChange: t,
15553
15553
  xAxisOptions: n,
@@ -15663,7 +15663,7 @@ function X_({
15663
15663
  l.map((p, x) => /* @__PURE__ */ r.jsx(f.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${x}`, control: e, render: ({
15664
15664
  field: b
15665
15665
  }) => /* @__PURE__ */ r.jsxs(_, { children: [
15666
- /* @__PURE__ */ r.jsx(K_, { variableOptions: d, yAxisOptions: u, ...b }),
15666
+ /* @__PURE__ */ r.jsx(U_, { variableOptions: d, yAxisOptions: u, ...b }),
15667
15667
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
15668
15668
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(qt, { size: 16 }), color: "red", variant: "light", onClick: () => o(x), children: "Delete this Reference Area" })
15669
15669
  ] }) }) }, p.id))
@@ -15770,7 +15770,7 @@ function eS({
15770
15770
  control: e,
15771
15771
  render: ({
15772
15772
  field: l
15773
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
15773
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
15774
15774
  flexGrow: 1
15775
15775
  }, ...l })
15776
15776
  }
@@ -16040,7 +16040,7 @@ const nS = ({
16040
16040
  size: s
16041
16041
  });
16042
16042
  };
16043
- return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(U, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
16043
+ return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(K, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
16044
16044
  }, pS = [{
16045
16045
  label: "Static",
16046
16046
  value: "static"
@@ -16320,7 +16320,7 @@ const wS = ({
16320
16320
  flexGrow: 0
16321
16321
  }, children: "Customize Label" }),
16322
16322
  /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
16323
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16323
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16324
16324
  /* @__PURE__ */ r.jsx(wS, { value: a.func_content, onChange: u, disabled: !a.enabled }),
16325
16325
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
16326
16326
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -16355,7 +16355,7 @@ function SS({
16355
16355
  field: n
16356
16356
  }) => (
16357
16357
  // @ts-expect-error type of onChange
16358
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
16358
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
16359
16359
  width: "48%"
16360
16360
  }, styles: {
16361
16361
  rightSection: {
@@ -16767,7 +16767,7 @@ const VS = {
16767
16767
  displayGroup: "ECharts-based charts",
16768
16768
  migrator: new $S(),
16769
16769
  name: "scatterChart",
16770
- viewRender: U_,
16770
+ viewRender: K_,
16771
16771
  configRender: LS,
16772
16772
  createConfig() {
16773
16773
  return {
@@ -16876,7 +16876,7 @@ const QS = {
16876
16876
  top: "flex-start",
16877
16877
  center: "center",
16878
16878
  bottom: "flex-end"
16879
- }, US = k(({
16879
+ }, KS = k(({
16880
16880
  context: e
16881
16881
  }) => {
16882
16882
  const t = Pe(), {
@@ -16903,7 +16903,7 @@ const QS = {
16903
16903
  justifyContent: QS[o],
16904
16904
  alignItems: HS[a]
16905
16905
  }, children: /* @__PURE__ */ r.jsx(L, { children: Object.values(h).map((u, p) => /* @__PURE__ */ r.jsx(M.Fragment, { children: u }, p)) }) });
16906
- }), KS = [{
16906
+ }), US = [{
16907
16907
  label: "Left",
16908
16908
  value: "left"
16909
16909
  }, {
@@ -16962,7 +16962,7 @@ function XS({
16962
16962
  control: i,
16963
16963
  render: ({
16964
16964
  field: u
16965
- }) => /* @__PURE__ */ r.jsx(A, { label: "Horizontal Alignment", data: KS, ...u })
16965
+ }) => /* @__PURE__ */ r.jsx(A, { label: "Horizontal Alignment", data: US, ...u })
16966
16966
  }
16967
16967
  ),
16968
16968
  /* @__PURE__ */ r.jsx(
@@ -16989,7 +16989,7 @@ const JS = {
16989
16989
  displayGroup: "Others",
16990
16990
  migrator: new GS(),
16991
16991
  name: "stats",
16992
- viewRender: US,
16992
+ viewRender: KS,
16993
16993
  configRender: XS
16994
16994
  }, Ji = {
16995
16995
  label_key: "",
@@ -17131,7 +17131,7 @@ const oC = {
17131
17131
  };
17132
17132
  function aC(e, t, n) {
17133
17133
  n.reduce((o, a) => {
17134
- const l = Kt(a, t);
17134
+ const l = Ut(a, t);
17135
17135
  return o[a.name] = xt(a, l), o;
17136
17136
  }, {});
17137
17137
  const i = {
@@ -17154,7 +17154,7 @@ function lC({
17154
17154
  width: o,
17155
17155
  height: a
17156
17156
  } = e.viewport, l = T(() => aC(s, i, t), [s, i, t]);
17157
- return !o || !a ? null : /* @__PURE__ */ r.jsx(nt, { width: o, height: a, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: l, style: gr(o, a), notMerge: !0, theme: "merico-light" }) });
17157
+ return !o || !a ? null : /* @__PURE__ */ r.jsx(nt, { width: o, height: a, children: /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: l, style: gr(o, a), notMerge: !0, theme: "merico-light" }) });
17158
17158
  }
17159
17159
  function cC({
17160
17160
  control: e,
@@ -17208,7 +17208,7 @@ const dC = [{
17208
17208
  field: s
17209
17209
  }) => (
17210
17210
  // @ts-expect-error type of onChange
17211
- /* @__PURE__ */ r.jsx(U, { label: "Hide label when its percentage is less than...", precision: 4, step: 5e-4, min: 0, max: 1, ...s })
17211
+ /* @__PURE__ */ r.jsx(K, { label: "Hide label when its percentage is less than...", precision: 4, step: 5e-4, min: 0, max: 1, ...s })
17212
17212
  ) }),
17213
17213
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
17214
17214
  /* @__PURE__ */ r.jsx(
@@ -17243,7 +17243,7 @@ const dC = [{
17243
17243
  control: e,
17244
17244
  render: ({
17245
17245
  field: s
17246
- }) => /* @__PURE__ */ r.jsx(U, { label: "Padding", min: 0, hideControls: !0, ...s })
17246
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Padding", min: 0, hideControls: !0, ...s })
17247
17247
  }
17248
17248
  )
17249
17249
  ] }),
@@ -18026,7 +18026,7 @@ function HC(e) {
18026
18026
  backgroundColor: n
18027
18027
  } }) }),
18028
18028
  /* @__PURE__ */ r.jsx(Rn.Dropdown, { children: /* @__PURE__ */ r.jsxs(_, { children: [
18029
- /* @__PURE__ */ r.jsx(U, { size: "xs", label: "Map a value to this color", value: a, onChange: l }),
18029
+ /* @__PURE__ */ r.jsx(K, { size: "xs", label: "Map a value to this color", value: a, onChange: l }),
18030
18030
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
18031
18031
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", size: "xs", onClick: S, children: "Cancel" }),
18032
18032
  /* @__PURE__ */ r.jsx(C, { "data-testid": "palette-item-ok", size: "xs", onClick: D, children: "OK" })
@@ -18038,18 +18038,18 @@ function HC(e) {
18038
18038
  }, color: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: R })
18039
18039
  ] });
18040
18040
  }
18041
- const UC = k(({
18041
+ const KC = k(({
18042
18042
  model: e
18043
18043
  }) => {
18044
18044
  const {
18045
18045
  classes: t
18046
18046
  } = ld(), n = Sh(0, 13, 1).map((s) => 100 / 12 * s).map((s) => [e.interpolation.getColor(s), s]);
18047
18047
  return /* @__PURE__ */ r.jsx("div", { className: t.palette, children: n.map(([s, i], o) => /* @__PURE__ */ r.jsx(HC, { index: o, color: s, value: e.getStepFromValue(i), onChange: (a) => e.changeStep(a, i) }, s)) });
18048
- }), KC = k(function(t) {
18048
+ }), UC = k(function(t) {
18049
18049
  const n = wt(() => new QC(), []);
18050
18050
  return O(() => {
18051
18051
  n.fromProps(t);
18052
- }), n.interpolation == null ? null : /* @__PURE__ */ r.jsx(UC, { model: n });
18052
+ }), n.interpolation == null ? null : /* @__PURE__ */ r.jsx(KC, { model: n });
18053
18053
  }), YC = (e) => {
18054
18054
  const {
18055
18055
  value: t,
@@ -18085,7 +18085,7 @@ const UC = k(({
18085
18085
  /* @__PURE__ */ r.jsx(C, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
18086
18086
  /* @__PURE__ */ r.jsx(ge, { size: 508, title: "Setup color interpolation", opened: c, onClose: h, zIndex: 320, children: c && /* @__PURE__ */ r.jsxs(_, { "data-testid": "color-interpolation-modal", children: [
18087
18087
  /* @__PURE__ */ r.jsx(A, { label: "Color style", value: o.interpolation, data: u, onChange: p, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
18088
- /* @__PURE__ */ r.jsx(KC, { steps: o.steps, interpolation: l, onChange: b }),
18088
+ /* @__PURE__ */ r.jsx(UC, { steps: o.steps, interpolation: l, onChange: b }),
18089
18089
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
18090
18090
  /* @__PURE__ */ r.jsx(C, { onClick: S, variant: "subtle", children: "Cancel" }),
18091
18091
  /* @__PURE__ */ r.jsx(C, { onClick: x, children: "OK" })
@@ -18222,11 +18222,11 @@ const t1 = xe((e, t) => {
18222
18222
  ] }),
18223
18223
  /* @__PURE__ */ r.jsx(z, { mb: -10, variant: "dashed", label: "Style", labelPosition: "center" }),
18224
18224
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
18225
- /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Ws, {}), disabled: !0 }),
18225
+ /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Min Width", rightSection: /* @__PURE__ */ r.jsx(Ws, {}), disabled: !0 }),
18226
18226
  /* @__PURE__ */ r.jsx(g, { name: `columns.${t}.width`, control: e, render: ({
18227
18227
  field: a
18228
- }) => /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ r.jsx(Ws, {}), ...a }) }),
18229
- /* @__PURE__ */ r.jsx(U, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ r.jsx(Ws, {}), disabled: !0 })
18228
+ }) => /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Width", rightSection: /* @__PURE__ */ r.jsx(Ws, {}), ...a }) }),
18229
+ /* @__PURE__ */ r.jsx(K, { hideControls: !0, label: "Max Width", rightSection: /* @__PURE__ */ r.jsx(Ws, {}), disabled: !0 })
18230
18230
  ] }),
18231
18231
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ r.jsx(
18232
18232
  g,
@@ -18530,7 +18530,7 @@ const oi = {
18530
18530
  font_size: l,
18531
18531
  font_weight: c
18532
18532
  } = n, d = T(() => s.reduce((u, p) => {
18533
- const x = Kt(p, i);
18533
+ const x = Ut(p, i);
18534
18534
  return u[p.name] = xt(p, x), u;
18535
18535
  }, {}), [s, i]), h = T(() => new Function(`return ${o}`)()({
18536
18536
  data: i,
@@ -19085,7 +19085,7 @@ function q1(e, t) {
19085
19085
  }
19086
19086
  function W1(e, t, n) {
19087
19087
  const s = n.reduce((u, p) => {
19088
- const x = Kt(p, t);
19088
+ const x = Ut(p, t);
19089
19089
  return u[p.name] = xt(p, x), u;
19090
19090
  }, {}), i = R1(e), {
19091
19091
  dateSpan: o,
@@ -19167,7 +19167,7 @@ function H1({
19167
19167
  s.range = e;
19168
19168
  }), t.setOption(n);
19169
19169
  }
19170
- function U1({
19170
+ function K1({
19171
19171
  conf: e,
19172
19172
  data: t,
19173
19173
  width: n,
@@ -19189,14 +19189,14 @@ function U1({
19189
19189
  click: c,
19190
19190
  legendselectchanged: H1
19191
19191
  }), [c]), h = M.useMemo(() => W1(e, t, o), [e, t]);
19192
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: h, style: {
19192
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: h, style: {
19193
19193
  width: n,
19194
19194
  height: s
19195
19195
  }, onEvents: d, notMerge: !0, opts: {
19196
19196
  locale: e.calendar.locale
19197
19197
  }, theme: "merico-light" });
19198
19198
  }
19199
- function K1({
19199
+ function U1({
19200
19200
  context: e,
19201
19201
  instance: t
19202
19202
  }) {
@@ -19211,7 +19211,7 @@ function K1({
19211
19211
  width: l,
19212
19212
  height: c
19213
19213
  } = e.viewport;
19214
- return !o.calendar.data_key || !o.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(nt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(U1, { variables: i, width: _t(l), height: St(c), data: a, conf: o, interactionManager: n }) });
19214
+ return !o.calendar.data_key || !o.heat_block.data_key || !l || !c ? null : /* @__PURE__ */ r.jsx(nt, { width: l, height: c, children: /* @__PURE__ */ r.jsx(K1, { variables: i, width: _t(l), height: St(c), data: a, conf: o, interactionManager: n }) });
19215
19215
  }
19216
19216
  function Y1({
19217
19217
  control: e,
@@ -19486,7 +19486,7 @@ const ok = {
19486
19486
  displayGroup: "ECharts-based charts",
19487
19487
  migrator: new ik(),
19488
19488
  name: "calendarHeatmap",
19489
- viewRender: K1,
19489
+ viewRender: U1,
19490
19490
  configRender: nk,
19491
19491
  createConfig: () => ({
19492
19492
  version: 3,
@@ -19830,7 +19830,7 @@ function wk(e) {
19830
19830
  function _k(e, t) {
19831
19831
  const n = {};
19832
19832
  return t.map((s) => {
19833
- const i = Kt(s, e);
19833
+ const i = Ut(s, e);
19834
19834
  n[s.name] = xt(s, i);
19835
19835
  }), n;
19836
19836
  }
@@ -19914,7 +19914,7 @@ function Tk({
19914
19914
  }, [a, l, i]), d = T(() => ({
19915
19915
  click: c
19916
19916
  }), [c]), h = M.useMemo(() => kk(e, t, o), [e, t]);
19917
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: h, style: {
19917
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: h, style: {
19918
19918
  width: n,
19919
19919
  height: s
19920
19920
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -20030,7 +20030,7 @@ function Lk({
20030
20030
  control: e,
20031
20031
  render: ({
20032
20032
  field: l
20033
- }) => /* @__PURE__ */ r.jsx(U, { label: "Line Width", min: 1, max: 10, sx: {
20033
+ }) => /* @__PURE__ */ r.jsx(K, { label: "Line Width", min: 1, max: 10, sx: {
20034
20034
  flexGrow: 1
20035
20035
  }, ...l })
20036
20036
  }
@@ -20045,7 +20045,7 @@ function Lk({
20045
20045
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
20046
20046
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${t}.show_in_legend`, control: e, render: ({
20047
20047
  field: l
20048
- }) => /* @__PURE__ */ r.jsx(K, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
20048
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
20049
20049
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
20050
20050
  top: 15,
20051
20051
  right: 5
@@ -20260,10 +20260,10 @@ function Ok({
20260
20260
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
20261
20261
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.hide_in_legend`, control: e, render: ({
20262
20262
  field: o
20263
- }) => /* @__PURE__ */ r.jsx(K, { label: "Hide in legend", checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }),
20263
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }),
20264
20264
  /* @__PURE__ */ r.jsx(g, { name: `series.${t}.invisible`, control: e, render: ({
20265
20265
  field: o
20266
- }) => /* @__PURE__ */ r.jsx(K, { label: "Invisible", checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }),
20266
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Invisible", checked: o.value, onChange: (a) => o.onChange(a.currentTarget.checked) }) }),
20267
20267
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
20268
20268
  /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), sx: {
20269
20269
  top: 15,
@@ -20365,7 +20365,7 @@ function Vk({
20365
20365
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
20366
20366
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${t}.show`, control: e, render: ({
20367
20367
  field: s
20368
- }) => /* @__PURE__ */ r.jsx(K, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
20368
+ }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
20369
20369
  /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this X Axis" })
20370
20370
  ] });
20371
20371
  }
@@ -20618,7 +20618,7 @@ const Ta = ({
20618
20618
  return console.error(t), e;
20619
20619
  }
20620
20620
  };
20621
- function Uk(e, t, n) {
20621
+ function Kk(e, t, n) {
20622
20622
  return {
20623
20623
  type: "heatmap",
20624
20624
  name: "准确估算比例",
@@ -20674,7 +20674,7 @@ function pd(e) {
20674
20674
  const t = [`background-color: ${e}`];
20675
20675
  return e === "rgba(255, 255, 255, 1)" && t.push("box-shadow: 0px 0px 1px 0px rgba(0,0,0,.5)"), t.join(";");
20676
20676
  }
20677
- function Kk([e, t]) {
20677
+ function Uk([e, t]) {
20678
20678
  const n = {
20679
20679
  x: e,
20680
20680
  v: `${t}`
@@ -20741,7 +20741,7 @@ function Yk(e, t, n, s) {
20741
20741
  const {
20742
20742
  x: p,
20743
20743
  v: x
20744
- } = Kk(u);
20744
+ } = Uk(u);
20745
20745
  return `
20746
20746
  <table style="width: auto">
20747
20747
  <thead>
@@ -20881,7 +20881,7 @@ function eT(e, t, n, s) {
20881
20881
  barMinWidth: 5,
20882
20882
  barMaxWidth: 20
20883
20883
  };
20884
- return [Uk(e, n, s), Yk(e, n, s, a), ...Jk(e, n, s, a), Zk(e, t, n, s)];
20884
+ return [Kk(e, n, s), Yk(e, n, s, a), ...Jk(e, n, s, a), Zk(e, t, n, s)];
20885
20885
  }
20886
20886
  function tT(e, t) {
20887
20887
  const {
@@ -21208,7 +21208,7 @@ function mT({
21208
21208
  metricKey: i
21209
21209
  }) {
21210
21210
  const o = M.useMemo(() => cT(e, i, t), [e, t, i]);
21211
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: o, style: {
21211
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: o, style: {
21212
21212
  width: n,
21213
21213
  height: s
21214
21214
  }, notMerge: !0, theme: "merico-light" });
@@ -21359,7 +21359,7 @@ function jT({
21359
21359
  field: n
21360
21360
  }) => (
21361
21361
  // @ts-expect-error type of onChange
21362
- /* @__PURE__ */ r.jsx(U, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
21362
+ /* @__PURE__ */ r.jsx(K, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
21363
21363
  width: "48%"
21364
21364
  }, styles: {
21365
21365
  rightSection: {
@@ -21894,7 +21894,7 @@ function $T({
21894
21894
  field: s
21895
21895
  }) => (
21896
21896
  // @ts-expect-error type of onChange
21897
- /* @__PURE__ */ r.jsx(U, { size: "xs", icon: /* @__PURE__ */ r.jsx(gi, { size: 16 }), disabled: !n, ...s })
21897
+ /* @__PURE__ */ r.jsx(K, { size: "xs", icon: /* @__PURE__ */ r.jsx(gi, { size: 16 }), disabled: !n, ...s })
21898
21898
  ) })
21899
21899
  ] })
21900
21900
  ] });
@@ -22039,7 +22039,7 @@ const qT = ({
22039
22039
  flexGrow: 0
22040
22040
  }, children: "Customize Label" }),
22041
22041
  /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(_, { children: [
22042
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
22042
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (x) => c(x.currentTarget.checked) }),
22043
22043
  /* @__PURE__ */ r.jsx(qT, { value: a.func_content, onChange: u, disabled: !a.enabled }),
22044
22044
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
22045
22045
  /* @__PURE__ */ r.jsx(C, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -22077,7 +22077,7 @@ function GT({
22077
22077
  field: n
22078
22078
  }) => (
22079
22079
  // @ts-expect-error type of onChange
22080
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
22080
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
22081
22081
  width: "48%"
22082
22082
  }, styles: {
22083
22083
  rightSection: {
@@ -22139,7 +22139,7 @@ function HT({
22139
22139
  field: n
22140
22140
  }) => (
22141
22141
  // @ts-expect-error type of onChange
22142
- /* @__PURE__ */ r.jsx(U, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
22142
+ /* @__PURE__ */ r.jsx(K, { label: "Rotate", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "degree" }), sx: {
22143
22143
  width: "48%"
22144
22144
  }, styles: {
22145
22145
  rightSection: {
@@ -22200,7 +22200,7 @@ const oo = {
22200
22200
  metrics: []
22201
22201
  }
22202
22202
  };
22203
- function UT({
22203
+ function KT({
22204
22204
  context: e
22205
22205
  }) {
22206
22206
  const {
@@ -22262,7 +22262,7 @@ function UT({
22262
22262
  ] })
22263
22263
  ] }) });
22264
22264
  }
22265
- function KT(e) {
22265
+ function UT(e) {
22266
22266
  return /* @__PURE__ */ r.jsx(r.Fragment, {});
22267
22267
  }
22268
22268
  function YT(e) {
@@ -22272,7 +22272,7 @@ const md = {
22272
22272
  id: "builtin:echarts:click-heatmap:heat-block",
22273
22273
  displayName: "Click Heat Block",
22274
22274
  nameRender: YT,
22275
- configRender: KT,
22275
+ configRender: UT,
22276
22276
  payload: [{
22277
22277
  name: "seriesType",
22278
22278
  description: "'heatmap'",
@@ -22561,7 +22561,7 @@ function aI(e, t, n) {
22561
22561
  if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
22562
22562
  return {};
22563
22563
  const s = n.reduce((l, c) => {
22564
- const d = Kt(c, t);
22564
+ const d = Ut(c, t);
22565
22565
  return l[c.name] = xt(c, d), l;
22566
22566
  }, {}), i = XT(e), o = JT(e);
22567
22567
  return {
@@ -22597,7 +22597,7 @@ function lI({
22597
22597
  }, [a, l, i]), d = T(() => ({
22598
22598
  click: c
22599
22599
  }), [c]), h = M.useMemo(() => aI(e, t, o), [e, t]);
22600
- return /* @__PURE__ */ r.jsx(Xe, { echarts: Ue, option: h, style: {
22600
+ return /* @__PURE__ */ r.jsx(Xe, { echarts: Ke, option: h, style: {
22601
22601
  width: n,
22602
22602
  height: s
22603
22603
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -22637,7 +22637,7 @@ const uI = {
22637
22637
  migrator: new dI(),
22638
22638
  name: "merico-heatmap",
22639
22639
  viewRender: cI,
22640
- configRender: UT,
22640
+ configRender: KT,
22641
22641
  createConfig: () => ({
22642
22642
  version: 1,
22643
22643
  config: oo
@@ -22692,7 +22692,7 @@ const uI = {
22692
22692
  category: "basic"
22693
22693
  })), pI = [Am, Rm, Om, Fm, Em, Pm], fd = () => ({
22694
22694
  id: "dashboard",
22695
- version: Kl,
22695
+ version: Ul,
22696
22696
  manifest: {
22697
22697
  viz: [oi, JS, _1, I_, jC, y0, Qk, Zm, Wg, Hv, Dw, ok, l0, Sv, VS, W0, y_, L1, ST, uI, PT, sb],
22698
22698
  color: [...hI, ...pI]
@@ -22763,7 +22763,7 @@ const xI = ({
22763
22763
  onChange: a
22764
22764
  }) => /* @__PURE__ */ r.jsxs(L, { children: [
22765
22765
  /* @__PURE__ */ r.jsx(j, { children: " " }),
22766
- /* @__PURE__ */ r.jsx(K, { label: /* @__PURE__ */ r.jsxs(y, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22766
+ /* @__PURE__ */ r.jsx(U, { label: /* @__PURE__ */ r.jsxs(y, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22767
22767
  /* @__PURE__ */ r.jsx(L, { sx: {
22768
22768
  flexGrow: 1
22769
22769
  }, children: e }),
@@ -23768,7 +23768,7 @@ const PI = ({
23768
23768
  defaultValues: i.filters.values,
23769
23769
  // make sure the preview value is updated when filters are changed
23770
23770
  reValidateMode: "onBlur"
23771
- }), c = Uh({
23771
+ }), c = Kh({
23772
23772
  control: o
23773
23773
  });
23774
23774
  O(() => {
@@ -24161,7 +24161,7 @@ const QI = m.model("QueryMeta", {
24161
24161
  setHeight(t) {
24162
24162
  e.h = t;
24163
24163
  }
24164
- })), UI = m.model("LayoutSetMeta", {
24164
+ })), KI = m.model("LayoutSetMeta", {
24165
24165
  id: m.identifier,
24166
24166
  name: m.string,
24167
24167
  breakpoint: m.number,
@@ -24238,7 +24238,7 @@ const QI = m.model("QueryMeta", {
24238
24238
  }
24239
24239
  n.set(t);
24240
24240
  }
24241
- })), KI = m.model("SQLSnippetMeta", {
24241
+ })), UI = m.model("SQLSnippetMeta", {
24242
24242
  key: m.string,
24243
24243
  value: m.string
24244
24244
  }).views((e) => ({
@@ -24435,10 +24435,9 @@ const XI = m.model("FilterDateRangeConfigMeta", {
24435
24435
  return e.static_options;
24436
24436
  const {
24437
24437
  data: t,
24438
- state: n,
24439
- error: s
24438
+ state: n
24440
24439
  } = e.contentModel.getDataStuffByID(e.options_query_id);
24441
- return n === "idle" ? Array.isArray(t) ? t : [] : [];
24440
+ return n === "error" ? [] : Array.isArray(t) ? t : [];
24442
24441
  }
24443
24442
  })).actions((e) => ({
24444
24443
  setRequired(t) {
@@ -24495,8 +24494,8 @@ const XI = m.model("FilterDateRangeConfigMeta", {
24495
24494
  e.min_width = t;
24496
24495
  },
24497
24496
  setDefaultSelection() {
24498
- const t = qe(e).content.filters, n = Ae(e).key;
24499
- t.setValueByKey(n, e.default_selection);
24497
+ const t = qe(e).content.filters, n = Ae(e).key, s = new Set(e.options.map((o) => o.value)), i = (t.values[n] ?? []).filter((o) => s.has(o));
24498
+ i.length > 0 ? t.setValueByKey(n, i) : t.setValueByKey(n, e.default_selection);
24500
24499
  }
24501
24500
  })).actions((e) => ({
24502
24501
  afterCreate() {
@@ -24553,8 +24552,9 @@ const XI = m.model("FilterDateRangeConfigMeta", {
24553
24552
  e.width = t;
24554
24553
  },
24555
24554
  setDefaultSelection() {
24556
- const t = qe(e).content.filters, n = Ae(e).key;
24557
- t.setValueByKey(n, e.default_selection);
24555
+ var o;
24556
+ const t = qe(e).content.filters, n = Ae(e).key, s = t.values[n], i = (o = e.options.find((a) => a.value === s)) == null ? void 0 : o.value;
24557
+ i ? t.setValueByKey(n, i) : t.setValueByKey(n, e.default_selection);
24558
24558
  }
24559
24559
  })).actions((e) => ({
24560
24560
  afterCreate() {
@@ -24713,8 +24713,8 @@ const Ld = m.compose("FilterTreeSelectConfigMeta", m.model({
24713
24713
  e.treeCheckStrictly = t;
24714
24714
  },
24715
24715
  applyDefaultSelection() {
24716
- const t = Ae(e, 1).key;
24717
- e.contentModel.filters.setValueByKey(t, e.defaultSelection);
24716
+ const t = Ae(e, 1).key, n = e.contentModel.filters, s = n.values[t], i = new Set(e.plainData.map((a) => a.value)), o = (s ?? []).filter((a) => i.has(a));
24717
+ o.length > 0 ? n.setValueByKey(t, o) : n.setValueByKey(t, e.defaultSelection);
24718
24718
  },
24719
24719
  afterCreate() {
24720
24720
  dt(e, et(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
@@ -25460,7 +25460,7 @@ function Wd(e) {
25460
25460
  function gD(e, t) {
25461
25461
  const n = e.default_value_func;
25462
25462
  try {
25463
- return new Function(`return ${n}`)()(e, Ut, t);
25463
+ return new Function(`return ${n}`)()(e, Kt, t);
25464
25464
  } catch (s) {
25465
25465
  return console.error(s), Wd(e);
25466
25466
  }
@@ -25565,7 +25565,7 @@ const Hd = m.model("FiltersRenderModel", {
25565
25565
  Gn("Filters", n);
25566
25566
  }
25567
25567
  }));
25568
- function Ud(e, t, n, s) {
25568
+ function Kd(e, t, n, s) {
25569
25569
  const i = w.defaults({}, s, Qd(e, {
25570
25570
  ...n,
25571
25571
  ...t
@@ -25704,7 +25704,7 @@ const bD = QI.views((e) => ({
25704
25704
  });
25705
25705
  }), i;
25706
25706
  }
25707
- })), Kd = m.compose("QueryRenderModel", bD, m.model({
25707
+ })), Ud = m.compose("QueryRenderModel", bD, m.model({
25708
25708
  state: m.optional(m.enumeration(["idle", "loading", "error"]), "idle"),
25709
25709
  data: m.optional(m.frozen([]), []),
25710
25710
  error: m.frozen()
@@ -25807,7 +25807,7 @@ const bD = QI.views((e) => ({
25807
25807
  id: a.id,
25808
25808
  name: a.name,
25809
25809
  data: w.cloneDeep(a.data)
25810
- })), s = e.contentModel.dashboardState, i = e.pre_process, o = new Function(`return ${i}`)()(n, s, Ut);
25810
+ })), s = e.contentModel.dashboardState, i = e.pre_process, o = new Function(`return ${i}`)()(n, s, Kt);
25811
25811
  e.data = o, e.state = "idle", e.error = null;
25812
25812
  } catch (t) {
25813
25813
  e.data = [], e.error = t.message, e.state = "error";
@@ -25836,7 +25836,7 @@ const bD = QI.views((e) => ({
25836
25836
  }));
25837
25837
  }
25838
25838
  })), Yd = m.model("QueriesRenderModel", {
25839
- current: m.optional(m.array(Kd), [])
25839
+ current: m.optional(m.array(Ud), [])
25840
25840
  }).views((e) => ({
25841
25841
  get idSet() {
25842
25842
  return new Set(e.current.map((t) => t.id));
@@ -25950,7 +25950,7 @@ function Aa({
25950
25950
  return `[${n}, ${s})`;
25951
25951
  }
25952
25952
  const Xd = m.model("LayoutsRenderModel", {
25953
- list: m.array(UI),
25953
+ list: m.array(KI),
25954
25954
  currentBreakpoint: m.string
25955
25955
  }).views((e) => ({
25956
25956
  get json() {
@@ -26052,7 +26052,7 @@ const Xd = m.model("LayoutsRenderModel", {
26052
26052
  delay: 0
26053
26053
  }));
26054
26054
  }
26055
- })), jD = KI.views((e) => ({
26055
+ })), jD = UI.views((e) => ({
26056
26056
  isADuplicatedKey(t) {
26057
26057
  return !t || t === e.key ? !1 : !!Ae(e, 2).findByKey(t);
26058
26058
  }
@@ -26584,12 +26584,12 @@ const WD = M.forwardRef(({
26584
26584
  /* @__PURE__ */ r.jsx(WD, { h: d.h }),
26585
26585
  /* @__PURE__ */ r.jsx(OD, { view: e, panel: d.panel })
26586
26586
  ] }, d.id)) });
26587
- }), UD = Fl(Ol), KD = k(({
26587
+ }), KD = Fl(Ol), UD = k(({
26588
26588
  view: e,
26589
26589
  className: t = "layout"
26590
26590
  }) => {
26591
26591
  const n = Pe(), s = n.layouts.items(e.panelIDs), i = n.layouts.gridLayouts(e.panelIDs);
26592
- return /* @__PURE__ */ r.jsx(UD, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: i, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: s.map((o) => /* @__PURE__ */ r.jsx("div", { "data-grid": o.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(ou, { view: e, panel: o.panel }) }, o.id)) });
26592
+ return /* @__PURE__ */ r.jsx(KD, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: i, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: s.map((o) => /* @__PURE__ */ r.jsx("div", { "data-grid": o.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(ou, { view: e, panel: o.panel }) }, o.id)) });
26593
26593
  });
26594
26594
  function ho(e) {
26595
26595
  const t = Zr(null);
@@ -26895,7 +26895,7 @@ const nz = k(({
26895
26895
  }, children: [
26896
26896
  /* @__PURE__ */ r.jsx(I, { label: "Tab Name", required: !0, value: l.name, onChange: (h) => l.setName(h.currentTarget.value) }),
26897
26897
  /* @__PURE__ */ r.jsx(A, { label: "View", value: l.view_id, onChange: l.setViewID, data: s }),
26898
- /* @__PURE__ */ r.jsx(U, { label: "Placement Order", required: !0, value: l.order, onChange: (h) => l.setOrder(h || 0), min: 0, max: 1e3, step: 1 }),
26898
+ /* @__PURE__ */ r.jsx(K, { label: "Placement Order", required: !0, value: l.order, onChange: (h) => l.setOrder(h || 0), min: 0, max: 1e3, step: 1 }),
26899
26899
  /* @__PURE__ */ r.jsx(hi, { label: "Color", value: l.color, onChange: l.setColor, disabled: i.variant !== "default" }),
26900
26900
  d && /* @__PURE__ */ r.jsxs(C, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(pp, { size: 18 }), gradient: {
26901
26901
  from: "cyan",
@@ -26948,7 +26948,7 @@ const nz = k(({
26948
26948
  const {
26949
26949
  fullScreenPanelID: n,
26950
26950
  setFullScreenPanelID: s
26951
- } = Km(), {
26951
+ } = Um(), {
26952
26952
  viewPanelInFullScreen: i,
26953
26953
  exitFullScreen: o,
26954
26954
  inFullScreen: a,
@@ -26968,7 +26968,7 @@ const nz = k(({
26968
26968
  position: "sticky",
26969
26969
  top: "0px"
26970
26970
  }, children: /* @__PURE__ */ r.jsx(vd, { view: t }) }),
26971
- !a && /* @__PURE__ */ r.jsx(KD, { view: t })
26971
+ !a && /* @__PURE__ */ r.jsx(UD, { view: t })
26972
26972
  ] }) })
26973
26973
  ] }) });
26974
26974
  });
@@ -27065,7 +27065,7 @@ const uz = m.compose("FiltersModel", Hd, m.model("FiltersModel", {
27065
27065
  t();
27066
27066
  }
27067
27067
  };
27068
- }), hz = Kd.views((e) => ({
27068
+ }), hz = Ud.views((e) => ({
27069
27069
  get canPreviewData() {
27070
27070
  return e.isTransform ? e.dep_query_ids.length > 0 && !!e.pre_process : !!e.datasource;
27071
27071
  },
@@ -28225,7 +28225,7 @@ const Iz = m.model({
28225
28225
  }, e);
28226
28226
  }
28227
28227
  });
28228
- function UE(e, t) {
28228
+ function KE(e, t) {
28229
28229
  t.filters && Ge(e.filters.current, t.filters);
28230
28230
  }
28231
28231
  function Dz({
@@ -28257,7 +28257,7 @@ function Dz({
28257
28257
  create_time: s,
28258
28258
  update_time: i,
28259
28259
  version: c,
28260
- filters: Ud(d, a, S, l),
28260
+ filters: Kd(d, a, S, l),
28261
28261
  queries: {
28262
28262
  current: x
28263
28263
  },
@@ -28575,7 +28575,7 @@ const Mz = k(({
28575
28575
  "px"
28576
28576
  ] }) : /* @__PURE__ */ r.jsx(g, { name: `list.${le}.breakpoint`, control: i, render: ({
28577
28577
  field: ve
28578
- }) => /* @__PURE__ */ r.jsx(U, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "px" }), rightSectionProps: {
28578
+ }) => /* @__PURE__ */ r.jsx(K, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "px" }), rightSectionProps: {
28579
28579
  style: {
28580
28580
  width: "30px"
28581
28581
  }
@@ -28747,7 +28747,7 @@ const Mz = k(({
28747
28747
  flexGrow: 0
28748
28748
  }, children: /* @__PURE__ */ r.jsx(ll, { size: 14 }) }),
28749
28749
  /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(_, { children: [
28750
- /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (p) => l(p.currentTarget.checked) }),
28750
+ /* @__PURE__ */ r.jsx(U, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (p) => l(p.currentTarget.checked) }),
28751
28751
  /* @__PURE__ */ r.jsx(Bz, { value: o.func_content, onChange: h, disabled: !o.enabled }),
28752
28752
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
28753
28753
  /* @__PURE__ */ r.jsx(C, { onClick: u, color: "red", leftIcon: /* @__PURE__ */ r.jsx(pt, { size: 20 }), children: "Reset" }),
@@ -28815,7 +28815,7 @@ const Mz = k(({
28815
28815
  }, children: [
28816
28816
  /* @__PURE__ */ r.jsx("thead", { children: e }),
28817
28817
  /* @__PURE__ */ r.jsx("tbody", { children: t })
28818
- ] }), Uz = ({
28818
+ ] }), Kz = ({
28819
28819
  content: e
28820
28820
  }) => {
28821
28821
  const t = e.views;
@@ -28833,7 +28833,7 @@ const Mz = k(({
28833
28833
  /* @__PURE__ */ r.jsx("td", { children: $r[n.type] })
28834
28834
  ] }, n.id)) })
28835
28835
  ] });
28836
- }, Kz = ({
28836
+ }, Uz = ({
28837
28837
  content: e
28838
28838
  }) => {
28839
28839
  const t = e.filters;
@@ -28918,8 +28918,8 @@ const Mz = k(({
28918
28918
  /* @__PURE__ */ r.jsx(z, { mt: 20, mb: 10, variant: "dashed" }),
28919
28919
  /* @__PURE__ */ r.jsx(j, { ta: "left", c: "dimmed", children: "Preview" }),
28920
28920
  /* @__PURE__ */ r.jsxs(_, { children: [
28921
- /* @__PURE__ */ r.jsx(Uz, { content: e }),
28922
28921
  /* @__PURE__ */ r.jsx(Kz, { content: e }),
28922
+ /* @__PURE__ */ r.jsx(Uz, { content: e }),
28923
28923
  /* @__PURE__ */ r.jsx(Yz, { content: e }),
28924
28924
  /* @__PURE__ */ r.jsx(Xz, { content: e }),
28925
28925
  /* @__PURE__ */ r.jsx(Jz, { content: e }),
@@ -29593,10 +29593,10 @@ const ML = k(() => {
29593
29593
  const n = t.config;
29594
29594
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29595
29595
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
29596
- /* @__PURE__ */ r.jsx(K, { checked: n.default_value, onChange: (s) => n.setDefaultValue(s.currentTarget.checked), label: "Default Checked" }),
29596
+ /* @__PURE__ */ r.jsx(U, { checked: n.default_value, onChange: (s) => n.setDefaultValue(s.currentTarget.checked), label: "Default Checked" }),
29597
29597
  /* @__PURE__ */ r.jsx(Qn, { filter: t })
29598
29598
  ] }),
29599
- /* @__PURE__ */ r.jsx(Ki, { label: "Description", value: n.description, onChange: n.setDescription, styles: {
29599
+ /* @__PURE__ */ r.jsx(Ui, { label: "Description", value: n.description, onChange: n.setDescription, styles: {
29600
29600
  root: {
29601
29601
  flexGrow: 1,
29602
29602
  minHeight: "400px"
@@ -29631,12 +29631,12 @@ const ML = k(() => {
29631
29631
  })), []);
29632
29632
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29633
29633
  /* @__PURE__ */ r.jsxs(y, { children: [
29634
- /* @__PURE__ */ r.jsx(K, { checked: n.required, onChange: (i) => n.setRequired(i.currentTarget.checked), label: "Required" }),
29635
- /* @__PURE__ */ r.jsx(K, { checked: n.allowSingleDateInRange, onChange: (i) => n.setAllowSingleDateInRange(i.currentTarget.checked), label: "Allow choosing 1 day" })
29634
+ /* @__PURE__ */ r.jsx(U, { checked: n.required, onChange: (i) => n.setRequired(i.currentTarget.checked), label: "Required" }),
29635
+ /* @__PURE__ */ r.jsx(U, { checked: n.allowSingleDateInRange, onChange: (i) => n.setAllowSingleDateInRange(i.currentTarget.checked), label: "Allow choosing 1 day" })
29636
29636
  ] }),
29637
29637
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
29638
29638
  /* @__PURE__ */ r.jsx(A, { data: FL, label: "Display Format", value: n.inputFormat, onChange: n.setInputFormat }),
29639
- /* @__PURE__ */ r.jsx(U, { label: "Max Days", min: 0, value: n.max_days, onChange: n.setMaxDays, hideControls: !0 })
29639
+ /* @__PURE__ */ r.jsx(K, { label: "Max Days", min: 0, value: n.max_days, onChange: n.setMaxDays, hideControls: !0 })
29640
29640
  ] }),
29641
29641
  /* @__PURE__ */ r.jsxs(y, { children: [
29642
29642
  /* @__PURE__ */ r.jsx(
@@ -29696,7 +29696,7 @@ const ML = k(() => {
29696
29696
  }, i = n.static_options, o = [...i];
29697
29697
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29698
29698
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
29699
- /* @__PURE__ */ r.jsx(K, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: "Required" }),
29699
+ /* @__PURE__ */ r.jsx(U, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: "Required" }),
29700
29700
  /* @__PURE__ */ r.jsx(Qn, { filter: t })
29701
29701
  ] }),
29702
29702
  /* @__PURE__ */ r.jsx(I, { label: "Width", description: "At least 160px", value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "default: 200px" }),
@@ -29746,7 +29746,7 @@ const ML = k(() => {
29746
29746
  }, mx: "auto", children: "Add an Option" })
29747
29747
  ] }),
29748
29748
  /* @__PURE__ */ r.jsx(z, { label: "Or fetch options from database", labelPosition: "center" }),
29749
- /* @__PURE__ */ r.jsx(U, { value: n.default_selection_count, onChange: n.setDefaultSelectionCount, label: "Select first N options by default" }),
29749
+ /* @__PURE__ */ r.jsx(K, { value: n.default_selection_count, onChange: n.setDefaultSelectionCount, label: "Select first N options by default" }),
29750
29750
  /* @__PURE__ */ r.jsx(fo, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
29751
29751
  /* @__PURE__ */ r.jsx(gu, {})
29752
29752
  ] });
@@ -29764,7 +29764,7 @@ const ML = k(() => {
29764
29764
  }, ...i];
29765
29765
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29766
29766
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
29767
- /* @__PURE__ */ r.jsx(K, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: "Required" }),
29767
+ /* @__PURE__ */ r.jsx(U, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: "Required" }),
29768
29768
  /* @__PURE__ */ r.jsx(Qn, { filter: t })
29769
29769
  ] }),
29770
29770
  /* @__PURE__ */ r.jsx(I, { label: "Width", value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
@@ -29814,7 +29814,7 @@ const ML = k(() => {
29814
29814
  }, mx: "auto", children: "Add an Option" })
29815
29815
  ] }),
29816
29816
  /* @__PURE__ */ r.jsx(z, { label: "Or fetch options from database", labelPosition: "center" }),
29817
- /* @__PURE__ */ r.jsx(K, { checked: n.default_selection_count === 1, onChange: (a) => n.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
29817
+ /* @__PURE__ */ r.jsx(U, { checked: n.default_selection_count === 1, onChange: (a) => n.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
29818
29818
  /* @__PURE__ */ r.jsx(fo, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
29819
29819
  /* @__PURE__ */ r.jsx(gu, {})
29820
29820
  ] });
@@ -29831,7 +29831,7 @@ const ML = k(() => {
29831
29831
  } }),
29832
29832
  /* @__PURE__ */ r.jsx(L, { mt: 22, children: /* @__PURE__ */ r.jsx(Qn, { filter: t }) })
29833
29833
  ] }),
29834
- /* @__PURE__ */ r.jsx(K, { checked: n.required, onChange: (s) => n.setRequired(s.currentTarget.checked), label: "Required" })
29834
+ /* @__PURE__ */ r.jsx(U, { checked: n.required, onChange: (s) => n.setRequired(s.currentTarget.checked), label: "Required" })
29835
29835
  ] });
29836
29836
  }), BL = `
29837
29837
  // row
@@ -29853,13 +29853,13 @@ const ML = k(() => {
29853
29853
  const n = t.config;
29854
29854
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29855
29855
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
29856
- /* @__PURE__ */ r.jsx(K, { checked: n.required, onChange: (s) => n.setRequired(s.currentTarget.checked), label: "Required" }),
29856
+ /* @__PURE__ */ r.jsx(U, { checked: n.required, onChange: (s) => n.setRequired(s.currentTarget.checked), label: "Required" }),
29857
29857
  /* @__PURE__ */ r.jsx(Qn, { filter: t })
29858
29858
  ] }),
29859
29859
  /* @__PURE__ */ r.jsx(I, { label: "Min-width", value: n.min_width, onChange: (s) => n.setMinWidth(s.currentTarget.value), placeholder: "200px" }),
29860
29860
  /* @__PURE__ */ r.jsx(z, { label: "Fetch options from database", labelPosition: "center" }),
29861
- /* @__PURE__ */ r.jsx(K, { checked: n.treeCheckStrictly, onChange: (s) => n.setTreeCheckStrictly(s.currentTarget.checked), label: "Parent and children nodes are not associated" }),
29862
- /* @__PURE__ */ r.jsx(U, { value: n.default_selection_count, onChange: n.setDefaultSelectionCount, label: "Select first N options by default" }),
29861
+ /* @__PURE__ */ r.jsx(U, { checked: n.treeCheckStrictly, onChange: (s) => n.setTreeCheckStrictly(s.currentTarget.checked), label: "Parent and children nodes are not associated" }),
29862
+ /* @__PURE__ */ r.jsx(K, { value: n.default_selection_count, onChange: n.setDefaultSelectionCount, label: "Select first N options by default" }),
29863
29863
  /* @__PURE__ */ r.jsx(fo, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
29864
29864
  /* @__PURE__ */ r.jsx(qL, {})
29865
29865
  ] });
@@ -29904,7 +29904,7 @@ const ML = k(() => {
29904
29904
  }, {
29905
29905
  label: Yt["date-range"],
29906
29906
  value: "date-range"
29907
- }], UL = k(function({
29907
+ }], KL = k(function({
29908
29908
  filter: t
29909
29909
  }) {
29910
29910
  const n = se(), s = M.useMemo(() => QL[t.type], [t.type]);
@@ -29916,7 +29916,7 @@ const ML = k(() => {
29916
29916
  /* @__PURE__ */ r.jsxs(_, { children: [
29917
29917
  /* @__PURE__ */ r.jsxs(y, { noWrap: !0, children: [
29918
29918
  /* @__PURE__ */ r.jsx(
29919
- U,
29919
+ K,
29920
29920
  {
29921
29921
  label: "Placement Order",
29922
29922
  required: !0,
@@ -29928,7 +29928,7 @@ const ML = k(() => {
29928
29928
  }
29929
29929
  }
29930
29930
  ),
29931
- t.auto_submit_supported && /* @__PURE__ */ r.jsx(K, { label: "Submit automatically", checked: t.auto_submit, onChange: (i) => t.setAutoSubmit(i.currentTarget.checked), mt: 22 })
29931
+ t.auto_submit_supported && /* @__PURE__ */ r.jsx(U, { label: "Submit automatically", checked: t.auto_submit, onChange: (i) => t.setAutoSubmit(i.currentTarget.checked), mt: 22 })
29932
29932
  ] }),
29933
29933
  /* @__PURE__ */ r.jsx(Fn, { label: "Visible in...", data: n.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
29934
29934
  /* @__PURE__ */ r.jsx(I, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (i) => {
@@ -29944,7 +29944,7 @@ const ML = k(() => {
29944
29944
  ] }),
29945
29945
  /* @__PURE__ */ r.jsx(GL, { filter: t })
29946
29946
  ] });
29947
- }), KL = k(({
29947
+ }), UL = k(({
29948
29948
  id: e
29949
29949
  }) => {
29950
29950
  const t = At(), n = he(), s = se();
@@ -29985,7 +29985,7 @@ const ML = k(() => {
29985
29985
  flexGrow: 1,
29986
29986
  maxHeight: "calc(100% - 52px)",
29987
29987
  overflow: "auto"
29988
- }, children: /* @__PURE__ */ r.jsx(UL, { filter: i }) })
29988
+ }, children: /* @__PURE__ */ r.jsx(KL, { filter: i }) })
29989
29989
  ] });
29990
29990
  }), YL = k(() => {
29991
29991
  const [e, t] = B([]), n = he(), s = (c) => {
@@ -30026,7 +30026,7 @@ const ML = k(() => {
30026
30026
  /* @__PURE__ */ r.jsx(L, { sx: {
30027
30027
  flexGrow: 1,
30028
30028
  overflow: "auto"
30029
- }, children: /* @__PURE__ */ r.jsx(K.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
30029
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
30030
30030
  tableLayout: "fixed"
30031
30031
  }, children: [
30032
30032
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -30046,7 +30046,7 @@ const ML = k(() => {
30046
30046
  }, children: "Action" })
30047
30047
  ] }) }),
30048
30048
  /* @__PURE__ */ r.jsx("tbody", { children: n.content.filters.sortedList.map((c) => /* @__PURE__ */ r.jsxs("tr", { children: [
30049
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: c.id, styles: {
30049
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: c.id, styles: {
30050
30050
  input: {
30051
30051
  cursor: "pointer"
30052
30052
  }
@@ -30113,7 +30113,7 @@ const ML = k(() => {
30113
30113
  const {
30114
30114
  panel: e
30115
30115
  } = Ct();
30116
- return /* @__PURE__ */ r.jsx(Ki, { label: "Description", value: e.description, onChange: e.setDescription, styles: {
30116
+ return /* @__PURE__ */ r.jsx(Ui, { label: "Description", value: e.description, onChange: e.setDescription, styles: {
30117
30117
  root: {
30118
30118
  flexGrow: 1
30119
30119
  }
@@ -30128,14 +30128,14 @@ const ML = k(() => {
30128
30128
  /* @__PURE__ */ r.jsx(z, { mb: -10, label: "Style", labelPosition: "center", variant: "dashed" }),
30129
30129
  /* @__PURE__ */ r.jsxs(_, { spacing: 20, children: [
30130
30130
  /* @__PURE__ */ r.jsxs(y, { grow: !0, align: "top", children: [
30131
- /* @__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: {
30131
+ /* @__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: {
30132
30132
  rightSection: {
30133
30133
  width: "110px"
30134
30134
  }
30135
30135
  }, value: t.w, onChange: (s) => {
30136
30136
  s && t.setWidth(s);
30137
30137
  } }),
30138
- /* @__PURE__ */ r.jsx(U, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
30138
+ /* @__PURE__ */ r.jsx(K, { label: "Height", rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: "px" }), styles: {
30139
30139
  rightSection: {
30140
30140
  width: "40px"
30141
30141
  }
@@ -30143,7 +30143,7 @@ const ML = k(() => {
30143
30143
  s && t.setHeight(s);
30144
30144
  } })
30145
30145
  ] }),
30146
- /* @__PURE__ */ r.jsx(K, { ml: 6, label: "Border", checked: n.border.enabled, onChange: (s) => n.border.setEnabled(s.currentTarget.checked) })
30146
+ /* @__PURE__ */ r.jsx(U, { ml: 6, label: "Border", checked: n.border.enabled, onChange: (s) => n.border.setEnabled(s.currentTarget.checked) })
30147
30147
  ] })
30148
30148
  ] });
30149
30149
  }), eM = () => /* @__PURE__ */ r.jsxs("span", { className: "mantine-103svbs mantine-InputWrapper-required mantine-Select-required", "aria-hidden": "true", children: [
@@ -30176,10 +30176,10 @@ const ML = k(() => {
30176
30176
  panel: e
30177
30177
  } = Ct();
30178
30178
  return /* @__PURE__ */ r.jsx(_, { spacing: 6, mb: 10, children: /* @__PURE__ */ r.jsxs(y, { pl: 6, position: "left", spacing: 20, children: [
30179
- /* @__PURE__ */ r.jsx(K, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
30179
+ /* @__PURE__ */ r.jsx(U, { size: "sm", checked: e.title.show, onChange: (t) => e.title.setShow(t.currentTarget.checked), label: "Show Title", sx: {
30180
30180
  userSelect: "none"
30181
30181
  } }),
30182
- /* @__PURE__ */ r.jsx(K, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
30182
+ /* @__PURE__ */ r.jsx(U, { size: "sm", checked: !0, disabled: !0, label: "Use name as title" })
30183
30183
  ] }) });
30184
30184
  });
30185
30185
  function rM() {
@@ -30294,7 +30294,7 @@ const iM = [{
30294
30294
  const c = a === 1 && o <= 10;
30295
30295
  return /* @__PURE__ */ r.jsxs(y, { pt: 10, px: 10, position: "apart", children: [
30296
30296
  /* @__PURE__ */ r.jsxs(y, { position: "left", children: [
30297
- a > 1 && /* @__PURE__ */ r.jsx(Ua, { size: "sm", value: t, onChange: n, total: a, withEdges: a > 7, styles: {
30297
+ a > 1 && /* @__PURE__ */ r.jsx(Ka, { size: "sm", value: t, onChange: n, total: a, withEdges: a > 7, styles: {
30298
30298
  control: {
30299
30299
  height: "30px"
30300
30300
  }
@@ -30395,7 +30395,7 @@ const iM = [{
30395
30395
  t.editor.setPath(["_QUERIES_", l]);
30396
30396
  };
30397
30397
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30398
- /* @__PURE__ */ r.jsx(ch, { opened: i, onClose: () => o(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(K.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(_, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(K, { label: l.label, value: l.value }, l.value)) }) }) }),
30398
+ /* @__PURE__ */ r.jsx(ch, { opened: i, onClose: () => o(!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(_, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(U, { label: l.label, value: l.value }, l.value)) }) }) }),
30399
30399
  /* @__PURE__ */ r.jsxs(_, { spacing: 6, children: [
30400
30400
  /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(C, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Sp, { size: 16 }), onClick: () => o(!0), children: "Click me to choose queries for this panel" }) }),
30401
30401
  s.queryIDs.length === 1 && /* @__PURE__ */ r.jsx(ui, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(ye, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => a(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(Xs, { size: 16 }) }) }) }),
@@ -31016,7 +31016,7 @@ const MM = k(({
31016
31016
  /* @__PURE__ */ r.jsx(L, { sx: {
31017
31017
  flexGrow: 1,
31018
31018
  overflow: "auto"
31019
- }, children: /* @__PURE__ */ r.jsx(K.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
31019
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
31020
31020
  tableLayout: "fixed"
31021
31021
  }, children: [
31022
31022
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31044,7 +31044,7 @@ const MM = k(({
31044
31044
  var x;
31045
31045
  const p = ((x = h[u.id]) == null ? void 0 : x.length) ?? 0;
31046
31046
  return /* @__PURE__ */ r.jsxs("tr", { children: [
31047
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: u.id, styles: {
31047
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: u.id, styles: {
31048
31048
  input: {
31049
31049
  cursor: "pointer"
31050
31050
  }
@@ -31339,7 +31339,7 @@ const WM = k(({
31339
31339
  paddingLeft: "50px"
31340
31340
  }
31341
31341
  }
31342
- }, UM = k(({
31342
+ }, KM = k(({
31343
31343
  dataSource: e
31344
31344
  }) => {
31345
31345
  const {
@@ -31347,7 +31347,7 @@ const WM = k(({
31347
31347
  } = e;
31348
31348
  return /* @__PURE__ */ r.jsxs(y, { pt: 10, px: 10, position: "apart", children: [
31349
31349
  /* @__PURE__ */ r.jsxs(y, { position: "left", children: [
31350
- t.maxPage > 1 && /* @__PURE__ */ r.jsx(Ua, { size: "sm", value: t.page, onChange: t.setPage, total: t.maxPage, withEdges: t.maxPage > 7, styles: {
31350
+ t.maxPage > 1 && /* @__PURE__ */ r.jsx(Ka, { size: "sm", value: t.page, onChange: t.setPage, total: t.maxPage, withEdges: t.maxPage > 7, styles: {
31351
31351
  control: {
31352
31352
  height: "30px"
31353
31353
  }
@@ -31370,7 +31370,7 @@ const WM = k(({
31370
31370
  " rows"
31371
31371
  ] }) })
31372
31372
  ] });
31373
- }), KM = k(({
31373
+ }), UM = k(({
31374
31374
  dataSource: e
31375
31375
  }) => {
31376
31376
  const t = e.tableData;
@@ -31379,7 +31379,7 @@ const WM = k(({
31379
31379
  }, children: "This table is empty" }) : t.error ? /* @__PURE__ */ r.jsx(j, { mt: 20, color: "red", size: "md", align: "center", sx: {
31380
31380
  fontFamily: "monospace"
31381
31381
  }, children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r.jsx(GM, { visible: !0 }) : /* @__PURE__ */ r.jsxs(Qe, { children: [
31382
- /* @__PURE__ */ r.jsx(UM, { dataSource: e }),
31382
+ /* @__PURE__ */ r.jsx(KM, { dataSource: e }),
31383
31383
  /* @__PURE__ */ r.jsxs(L, { py: 10, sx: {
31384
31384
  width: "100%",
31385
31385
  height: "calc(100% - 42px)",
@@ -31426,7 +31426,7 @@ const WM = k(({
31426
31426
  width: "100%",
31427
31427
  height: "calc(100% - 36px)",
31428
31428
  overflow: "hidden"
31429
- }, children: /* @__PURE__ */ r.jsx(KM, { dataSource: e }) })
31429
+ }, children: /* @__PURE__ */ r.jsx(UM, { dataSource: e }) })
31430
31430
  ] })
31431
31431
  ] }))), JM = {
31432
31432
  modal: {
@@ -31645,7 +31645,7 @@ WHERE
31645
31645
  ...n
31646
31646
  }, children: /* @__PURE__ */ r.jsxs(f, { defaultValue: "guide", keepMounted: !1, children: [
31647
31647
  /* @__PURE__ */ r.jsxs(f.List, { grow: !0, children: [
31648
- /* @__PURE__ */ r.jsx(f.Tab, { value: "guide", icon: /* @__PURE__ */ r.jsx(Uo, { size: 14 }), children: "Guide" }),
31648
+ /* @__PURE__ */ r.jsx(f.Tab, { value: "guide", icon: /* @__PURE__ */ r.jsx(Ko, { size: 14 }), children: "Guide" }),
31649
31649
  /* @__PURE__ */ r.jsx(f.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ r.jsx(ul, { size: 14 }), children: "Variables in this dashboard" }),
31650
31650
  /* @__PURE__ */ r.jsx(f.Tab, { value: "global_sql_snippets", icon: /* @__PURE__ */ r.jsx(Ip, { size: 14 }), children: "Global SQL Snippets" })
31651
31651
  ] }),
@@ -31656,7 +31656,7 @@ WHERE
31656
31656
  width: "100%"
31657
31657
  }, noCopy: !0, colorScheme: "dark", children: a }) }),
31658
31658
  /* @__PURE__ */ r.jsx(f.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(_, { spacing: 10, children: [
31659
- /* @__PURE__ */ r.jsx(es, { icon: /* @__PURE__ */ r.jsx(Uo, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
31659
+ /* @__PURE__ */ r.jsx(es, { icon: /* @__PURE__ */ r.jsx(Ko, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
31660
31660
  /* @__PURE__ */ r.jsx(rA, {})
31661
31661
  ] }) })
31662
31662
  ] }) });
@@ -31720,9 +31720,9 @@ WHERE
31720
31720
  ] }) }),
31721
31721
  /* @__PURE__ */ r.jsx("tbody", { children: t.map((o) => /* @__PURE__ */ r.jsxs("tr", { children: [
31722
31722
  /* @__PURE__ */ r.jsx("td", { children: w.capitalize(o.type) }),
31723
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Ks, { component: "button", type: "button", onClick: () => s(o), children: o.label }) }),
31723
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Us, { component: "button", type: "button", onClick: () => s(o), children: o.label }) }),
31724
31724
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsxs(_, { align: "flex-start", justify: "flex-start", spacing: 2, children: [
31725
- o.views.map((a) => /* @__PURE__ */ r.jsx(Ks, { component: "button", type: "button", onClick: () => i(a.id), children: /* @__PURE__ */ r.jsx(L, { children: a.label }) }, a.id)),
31725
+ o.views.map((a) => /* @__PURE__ */ r.jsx(Us, { component: "button", type: "button", onClick: () => i(a.id), children: /* @__PURE__ */ r.jsx(L, { children: a.label }) }, a.id)),
31726
31726
  o.views.length === 0 && /* @__PURE__ */ r.jsx(L, { children: "--" })
31727
31727
  ] }) })
31728
31728
  ] }, o.id)) })
@@ -32075,7 +32075,7 @@ WHERE
32075
32075
  /* @__PURE__ */ r.jsx(L, { sx: {
32076
32076
  flexGrow: 1,
32077
32077
  overflow: "auto"
32078
- }, children: /* @__PURE__ */ r.jsx(K.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
32078
+ }, children: /* @__PURE__ */ r.jsx(U.Group, { size: "xs", value: e, onChange: t, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
32079
32079
  tableLayout: "fixed"
32080
32080
  }, children: [
32081
32081
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -32096,7 +32096,7 @@ WHERE
32096
32096
  var x;
32097
32097
  const p = ((x = h[u.key]) == null ? void 0 : x.length) ?? 0;
32098
32098
  return /* @__PURE__ */ r.jsxs("tr", { children: [
32099
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(K, { value: u.key, styles: {
32099
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(U, { value: u.key, styles: {
32100
32100
  input: {
32101
32101
  cursor: "pointer"
32102
32102
  }
@@ -32187,7 +32187,7 @@ const MA = k(() => /* @__PURE__ */ r.jsx(_, { sx: {
32187
32187
  height: "100%"
32188
32188
  }, p: "sm", children: /* @__PURE__ */ r.jsx(vu, {}) })), AA = k(() => {
32189
32189
  const e = he().editor, t = e.path;
32190
- return wA(t) ? /* @__PURE__ */ r.jsx(MA, {}) : _A(t) ? /* @__PURE__ */ r.jsx(XL, {}) : SA(t) ? /* @__PURE__ */ r.jsx(YL, {}) : CA(t) ? /* @__PURE__ */ r.jsx(L, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(KL, { id: t[1] }) }) : kA(t) ? /* @__PURE__ */ r.jsx(jA, {}) : TA(t) ? /* @__PURE__ */ r.jsx(yA, { id: t[1] }) : DA(t) ? /* @__PURE__ */ r.jsx(RM, {}) : IA(t) ? /* @__PURE__ */ r.jsx(fA, { id: t[1] }) : zA(t) ? /* @__PURE__ */ r.jsx(L, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(vA, { id: t[1] }) }) : LA(t) ? /* @__PURE__ */ r.jsx(AM, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(L, { children: e.path });
32190
+ return wA(t) ? /* @__PURE__ */ r.jsx(MA, {}) : _A(t) ? /* @__PURE__ */ r.jsx(XL, {}) : SA(t) ? /* @__PURE__ */ r.jsx(YL, {}) : CA(t) ? /* @__PURE__ */ r.jsx(L, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(UL, { id: t[1] }) }) : kA(t) ? /* @__PURE__ */ r.jsx(jA, {}) : TA(t) ? /* @__PURE__ */ r.jsx(yA, { id: t[1] }) : DA(t) ? /* @__PURE__ */ r.jsx(RM, {}) : IA(t) ? /* @__PURE__ */ r.jsx(fA, { id: t[1] }) : zA(t) ? /* @__PURE__ */ r.jsx(L, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(vA, { id: t[1] }) }) : LA(t) ? /* @__PURE__ */ r.jsx(AM, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(L, { children: e.path });
32191
32191
  }), RA = k(() => /* @__PURE__ */ r.jsx(AA, {})), EA = k(() => {
32192
32192
  const e = he(), t = () => {
32193
32193
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
@@ -32381,14 +32381,14 @@ const MA = k(() => /* @__PURE__ */ r.jsx(_, { sx: {
32381
32381
  // @ts-expect-error important
32382
32382
  overflowY: "hidden !important"
32383
32383
  }
32384
- }, children: /* @__PURE__ */ r.jsx(Ka, { padding: 0, navbar: /* @__PURE__ */ r.jsx(GA, {}), styles: QA, children: /* @__PURE__ */ r.jsx(RA, {}) }) });
32385
- }), UA = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
32386
- function KA(e) {
32384
+ }, children: /* @__PURE__ */ r.jsx(Ua, { padding: 0, navbar: /* @__PURE__ */ r.jsx(GA, {}), styles: QA, children: /* @__PURE__ */ r.jsx(RA, {}) }) });
32385
+ }), KA = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
32386
+ function UA(e) {
32387
32387
  O(() => {
32388
32388
  if (Rs.__getMonacoInstance())
32389
32389
  return;
32390
32390
  console.log("loading monaco for @devtable/dashboard");
32391
- const n = UA(e);
32391
+ const n = KA(e);
32392
32392
  Rs.config({
32393
32393
  paths: {
32394
32394
  vs: n
@@ -32429,7 +32429,7 @@ const YA = {
32429
32429
  onFilterValuesChange: d,
32430
32430
  onExit: h
32431
32431
  }, u) => {
32432
- KA(o.monacoPath), Nl(o);
32432
+ UA(o.monacoPath), Nl(o);
32433
32433
  const {
32434
32434
  data: p = []
32435
32435
  } = fn(_i), {
@@ -32456,12 +32456,12 @@ const YA = {
32456
32456
  }, children: /* @__PURE__ */ r.jsx(Xl, { value: b, children: /* @__PURE__ */ r.jsx(nc, { value: b.content, children: /* @__PURE__ */ r.jsx(ki.Provider, { value: {
32457
32457
  inEditMode: !0
32458
32458
  }, children: /* @__PURE__ */ r.jsx(Et.Provider, { value: D, children: /* @__PURE__ */ r.jsxs(vs, { configure: R, children: [
32459
- /* @__PURE__ */ r.jsx(Ka, { padding: 0, header: /* @__PURE__ */ r.jsx(oL, { onExit: h, saveDashboardChanges: S, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(AL, {}), styles: YA, children: /* @__PURE__ */ r.jsx(L, { className: `${i} dashboard-root`, sx: {
32459
+ /* @__PURE__ */ r.jsx(Ua, { padding: 0, header: /* @__PURE__ */ r.jsx(oL, { onExit: h, saveDashboardChanges: S, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(AL, {}), styles: YA, children: /* @__PURE__ */ r.jsx(L, { className: `${i} dashboard-root`, sx: {
32460
32460
  position: "relative"
32461
32461
  }, children: b.content.views.visibleViews.map((P) => /* @__PURE__ */ r.jsx(az, { view: P }, P.id)) }) }),
32462
32462
  /* @__PURE__ */ r.jsx(HA, {})
32463
32463
  ] }) }) }) }) }) }) });
32464
- }, KE = k(xe(XA));
32464
+ }, UE = k(xe(XA));
32465
32465
  const _u = m.model({
32466
32466
  id: m.string,
32467
32467
  name: m.string,
@@ -32594,7 +32594,7 @@ function JA({
32594
32594
  create_time: s,
32595
32595
  update_time: i,
32596
32596
  version: c,
32597
- filters: Ud(d, a, S, l),
32597
+ filters: Kd(d, a, S, l),
32598
32598
  queries: yD(x),
32599
32599
  sqlSnippets: vD(b),
32600
32600
  mock_context: _d(S),
@@ -32729,7 +32729,7 @@ export {
32729
32729
  di as DEFAULT_CUSTOM_MODAL_TITLE,
32730
32730
  nm as DashboardApiClient,
32731
32731
  rm as DashboardApiFacadeClient,
32732
- KE as DashboardEditor,
32732
+ UE as DashboardEditor,
32733
32733
  Re as DashboardFilterType,
32734
32734
  lz as DashboardMode,
32735
32735
  zz as DashboardModel,
@@ -32760,7 +32760,7 @@ export {
32760
32760
  hD as GlobalSQLSnippetMeta,
32761
32761
  Od as GlobalSQLSnippetsMeta,
32762
32762
  HI as LayoutItemMeta,
32763
- UI as LayoutSetMeta,
32763
+ KI as LayoutSetMeta,
32764
32764
  ki as LayoutStateContext,
32765
32765
  Xd as LayoutsRenderModel,
32766
32766
  wd as MockContextMeta,
@@ -32782,9 +32782,9 @@ export {
32782
32782
  Yd as QueriesRenderModel,
32783
32783
  QI as QueryMeta,
32784
32784
  hz as QueryModel,
32785
- Kd as QueryRenderModel,
32785
+ Ud as QueryRenderModel,
32786
32786
  YE as ReadOnlyDashboard,
32787
- KI as SQLSnippetMeta,
32787
+ UI as SQLSnippetMeta,
32788
32788
  jD as SQLSnippetRenderModel,
32789
32789
  xz as SQLSnippetsModel,
32790
32790
  Jd as SQLSnippetsRenderModel,
@@ -32800,7 +32800,7 @@ export {
32800
32800
  Tz as ViewsModel,
32801
32801
  Vd as ViewsRenderModel,
32802
32802
  MD as Viz,
32803
- UE as applyPartialDashboard,
32803
+ KE as applyPartialDashboard,
32804
32804
  Nl as configureAPIClient,
32805
32805
  Dz as createContentModel,
32806
32806
  JA as createContentRenderModel,
@@ -32820,7 +32820,7 @@ export {
32820
32820
  sm as facadeApiClient,
32821
32821
  Yr as formatSQLSnippet,
32822
32822
  cu as getInitialDashboardViewsModel,
32823
- Ud as getInitialFiltersConfig,
32823
+ Kd as getInitialFiltersConfig,
32824
32824
  _d as getInitialMockContextMeta,
32825
32825
  yD as getInitialQueriesRenderModel,
32826
32826
  vD as getInitialSQLSnippetsRenderModel,
@@ -32833,7 +32833,7 @@ export {
32833
32833
  se as useEditContentModelContext,
32834
32834
  he as useEditDashboardContext,
32835
32835
  Ct as useEditPanelContext,
32836
- Km as useFullScreenPanelContext,
32836
+ Um as useFullScreenPanelContext,
32837
32837
  qD as usePanelFullScreen,
32838
32838
  Pe as useRenderContentModelContext,
32839
32839
  Gm as useRenderDashboardContext,