@devtable/dashboard 11.3.0 → 11.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var th = Object.defineProperty;
2
2
  var nh = (e, t, n) => t in e ? th(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var N = (e, t, n) => (nh(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import M, { forwardRef as ue, useState as q, useEffect as O, useCallback as Be, useMemo as T, createElement as ts, useContext as Ht, useRef as ns, createContext as el, memo as rh } from "react";
5
- import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as Te, Group as b, Select as L, Stack as w, Divider as I, NumberInput as U, Switch as Ve, Table as We, ActionIcon as W, MultiSelect as $n, Paper as sh, Code as Ja, Modal as fe, Tabs as f, LoadingOverlay as _n, Alert as rs, ColorSwatch as ti, Overlay as Rt, Checkbox as K, Collapse as xr, Center as Sn, useMantineTheme as tl, CheckIcon as ih, MANTINE_SIZES as ah, SimpleGrid as nn, Tooltip as ge, NativeSelect as nl, SegmentedControl as oh, Anchor as ni, Textarea as lh, Mark as ch, ColorInput as ji, createStyles as mr, Popover as On, Slider as dh, Flex as Ut, Badge as bn, CloseButton as rl, Menu as de, Affix as uh, Header as hh, List as it, FileInput as ph, ThemeIcon as Ps, UnstyledButton as xh, Navbar as Nt, JsonInput as sl, Pagination as il, Drawer as mh, Accordion as Ir, Radio as Za, Skeleton as eo, NavLink as ri, AppShell as al } from "@mantine/core";
4
+ import M, { forwardRef as he, useState as q, useEffect as O, useCallback as Be, useMemo as T, createElement as ts, useContext as Ht, useRef as ns, createContext as el, memo as rh } from "react";
5
+ import { TextInput as D, Text as j, Box as z, Button as C, HoverCard as Te, Group as b, Select as L, Stack as w, Divider as I, NumberInput as U, Switch as Ve, Table as We, ActionIcon as W, MultiSelect as $n, Paper as sh, Code as Ja, Modal as ge, Tabs as f, LoadingOverlay as _n, Alert as rs, ColorSwatch as ti, Overlay as Rt, Checkbox as K, Collapse as xr, Center as Sn, useMantineTheme as tl, CheckIcon as ih, MANTINE_SIZES as ah, SimpleGrid as nn, Tooltip as be, NativeSelect as nl, SegmentedControl as oh, Anchor as ni, Textarea as lh, Mark as ch, ColorInput as ji, createStyles as mr, Popover as On, Slider as dh, Flex as Ut, Badge as bn, CloseButton as rl, Menu as ue, Affix as uh, Header as hh, List as it, FileInput as ph, ThemeIcon as Ps, UnstyledButton as xh, Navbar as Nt, JsonInput as sl, Pagination as il, Drawer as mh, Accordion as Ir, Radio as Za, Skeleton as eo, NavLink as ri, AppShell as al } from "@mantine/core";
6
6
  import { useModals as Et, ModalsProvider as ol } from "@mantine/modals";
7
7
  import { useBoolean as $e, useCreation as kt, useAsyncEffect as fr, useRequest as yn, useWhyDidYouUpdate as ll, useLatest as to, usePrevious as fh } from "ahooks";
8
8
  import { toJS as Kt, observable as cl, runInAction as sr, reaction as ot, makeAutoObservable as gr } from "mobx";
@@ -13,7 +13,7 @@ import yh from "crypto-js";
13
13
  import * as jh from "d3-array";
14
14
  import { quantile as Er } from "d3-array";
15
15
  import E from "dayjs";
16
- import _, { cloneDeepWith as dl, unset as vh, get as te, isObject as ul, set as vi, omit as jn, isFunction as wh, orderBy as _h, last as hl, defaults as Ce, minBy as Sh, maxBy as Ch, cloneDeep as Ne, values as pl, template as wi, throttle as kh, isEqual as me, defaultsDeep as je, keyBy as Th, isEmpty as xl, isNumber as Dh, findLastIndex as Ih, isString as ml, range as zh, pick as fl } from "lodash";
16
+ import _, { cloneDeepWith as dl, unset as vh, get as te, isObject as ul, set as vi, omit as jn, isFunction as wh, orderBy as _h, last as hl, defaults as Ce, minBy as Sh, maxBy as Ch, cloneDeep as Ne, values as pl, template as wi, throttle as kh, isEqual as fe, defaultsDeep as je, keyBy as Th, isEmpty as xl, isNumber as Dh, findLastIndex as Ih, isString as ml, range as zh, pick as fl } from "lodash";
17
17
  import * as Fr from "mathjs";
18
18
  import si from "numbro";
19
19
  import Bt from "axios";
@@ -28,7 +28,7 @@ import "echarts-gl";
28
28
  import { GridComponent as lt, VisualMapComponent as br, LegendComponent as ct, TooltipComponent as dt, DataZoomComponent as Ft, MarkLineComponent as is, MarkAreaComponent as _i, CalendarComponent as Rh } from "echarts/components";
29
29
  import { CanvasRenderer as Xe } from "echarts/renderers";
30
30
  import { useForm as ve, Controller as g, useFieldArray as we, useWatch as Eh } from "react-hook-form";
31
- import { DeviceFloppy as pe, Trash as ae, AlertCircle as Fh, Recycle as mt, InfoCircle as an, Plus as Ae, Refresh as Si, Download as Ci, ArrowsMaximize as bl, Settings as yl, Copy as Oh, ArrowLeft as $h, ArrowsMove as Ph, ChevronDownRight as Vh, ChevronsUpRight as Nh, PlaylistAdd as as, ArrowBarToRight as qh } from "tabler-icons-react";
31
+ import { DeviceFloppy as xe, Trash as ae, AlertCircle as Fh, Recycle as mt, InfoCircle as an, Plus as Ae, Refresh as Si, Download as Ci, ArrowsMaximize as bl, Settings as yl, Copy as Oh, ArrowLeft as $h, ArrowsMove as Ph, ChevronDownRight as Vh, ChevronsUpRight as Nh, PlaylistAdd as as, ArrowBarToRight as qh } from "tabler-icons-react";
32
32
  import { BoxplotChart as Bh, CustomChart as Wh, BarChart as Wn, LineChart as Gn, ScatterChart as os, FunnelChart as Gh, HeatmapChart as ls, PieChart as Qh, RadarChart as Hh, SunburstChart as Uh } from "echarts/charts";
33
33
  import { IconDeviceFloppy as Yt, IconChevronUp as Kh, IconChevronDown as Yh, IconTextSize as ki, IconInfoCircle as Tn, IconPlayerSkipBack as jl, IconRecycle as cs, IconMathFunction as vl, IconPlus as ft, IconBorderAll as Xh, IconTrash as rn, IconArrowDown as Jh, IconArrowUp as Zh, IconCalendar as ep, IconMinus as tp, IconChevronsUp as np, IconChevronsDown as rp, IconCode as wn, IconCamera as ds, IconShare3 as sp, IconDownload as ip, IconArrowsLeftRight as ap, IconVariable as wl, IconCodeDots as op, IconFilter as _l, IconCopy as lp, IconDatabase as us, IconBoxMultiple as Sl, IconCaretDown as cp, IconAlertTriangle as Cl, IconArrowLeft as dp, IconPlaylistAdd as ro, IconPointFilled as Ti, IconFileImport as so, IconCircleDashed as up, IconCircleDot as hp, IconCircleOff as pp, IconAdjustments as xp, IconLink as mp, IconSettings as hs, IconArrowCurveRight as ii, IconLine as fp, IconX as kl, IconEye as Tl, IconTable as gp, IconColumns as bp, IconVectorTriangle as yp, IconAlertCircle as io, IconVariablePlus as jp, IconHierarchy as vp, IconDiscountCheckFilled as wp } from "@tabler/icons-react";
34
34
  import { showNotification as Pn, notifications as _p } from "@mantine/notifications";
@@ -160,16 +160,16 @@ function Nx() {
160
160
  {
161
161
  var H = F.ReactDebugCurrentFrame, re = H.getStackAddendum();
162
162
  re !== "" && (R += "%s", P = P.concat([re]));
163
- var xe = P.map(function(ee) {
163
+ var me = P.map(function(ee) {
164
164
  return String(ee);
165
165
  });
166
- xe.unshift("Warning: " + R), Function.prototype.apply.call(console[v], console, xe);
166
+ me.unshift("Warning: " + R), Function.prototype.apply.call(console[v], console, me);
167
167
  }
168
168
  }
169
- var ce = !1, ne = !1, Se = !1, De = !1, Re = !1, cn;
169
+ var de = !1, ne = !1, Se = !1, De = !1, Re = !1, cn;
170
170
  cn = Symbol.for("react.module.reference");
171
171
  function wt(v) {
172
- return !!(typeof v == "string" || typeof v == "function" || v === s || v === a || Re || v === i || v === d || v === u || De || v === x || ce || ne || Se || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === h || v.$$typeof === o || v.$$typeof === l || v.$$typeof === c || // This needs to include all possible module reference object
172
+ return !!(typeof v == "string" || typeof v == "function" || v === s || v === a || Re || v === i || v === d || v === u || De || v === x || de || ne || Se || typeof v == "object" && v !== null && (v.$$typeof === p || v.$$typeof === h || v.$$typeof === o || v.$$typeof === l || v.$$typeof === c || // This needs to include all possible module reference object
173
173
  // types supported by any Flight configuration anywhere since
174
174
  // we don't know which Flight build this will end up being used
175
175
  // with.
@@ -220,9 +220,9 @@ function Nx() {
220
220
  var H = v.displayName || null;
221
221
  return H !== null ? H : $t(v.type) || "Memo";
222
222
  case p: {
223
- var re = v, xe = re._payload, ee = re._init;
223
+ var re = v, me = re._payload, ee = re._init;
224
224
  try {
225
- return $t(ee(xe));
225
+ return $t(ee(me));
226
226
  } catch {
227
227
  return null;
228
228
  }
@@ -323,8 +323,8 @@ function Nx() {
323
323
  As = !0;
324
324
  var re = Error.prepareStackTrace;
325
325
  Error.prepareStackTrace = void 0;
326
- var xe;
327
- xe = Ms.current, Ms.current = null, zu();
326
+ var me;
327
+ me = Ms.current, Ms.current = null, zu();
328
328
  try {
329
329
  if (R) {
330
330
  var ee = function() {
@@ -377,7 +377,7 @@ function Nx() {
377
377
  }
378
378
  }
379
379
  } finally {
380
- As = !1, Ms.current = xe, Mu(), Error.prepareStackTrace = re;
380
+ As = !1, Ms.current = me, Mu(), Error.prepareStackTrace = re;
381
381
  }
382
382
  var Mn = v ? v.displayName || v.name : "", Xa = Mn ? Sr(Mn) : "";
383
383
  return typeof v == "function" && Cr.set(v, Xa), Xa;
@@ -409,9 +409,9 @@ function Nx() {
409
409
  case h:
410
410
  return kr(v.type, R, P);
411
411
  case p: {
412
- var H = v, re = H._payload, xe = H._init;
412
+ var H = v, re = H._payload, me = H._init;
413
413
  try {
414
- return kr(xe(re), R, P);
414
+ return kr(me(re), R, P);
415
415
  } catch {
416
416
  }
417
417
  }
@@ -428,9 +428,9 @@ function Nx() {
428
428
  }
429
429
  function Eu(v, R, P, H, re) {
430
430
  {
431
- var xe = Function.call.bind(Tr);
431
+ var me = Function.call.bind(Tr);
432
432
  for (var ee in v)
433
- if (xe(v, ee)) {
433
+ if (me(v, ee)) {
434
434
  var J = void 0;
435
435
  try {
436
436
  if (typeof v[ee] != "function") {
@@ -520,7 +520,7 @@ function Nx() {
520
520
  });
521
521
  }
522
522
  }
523
- var Gu = function(v, R, P, H, re, xe, ee) {
523
+ var Gu = function(v, R, P, H, re, me, ee) {
524
524
  var J = {
525
525
  // This tag allows us to uniquely identify this as a React Element
526
526
  $$typeof: t,
@@ -530,7 +530,7 @@ function Nx() {
530
530
  ref: P,
531
531
  props: ee,
532
532
  // Record the component responsible for creating this element.
533
- _owner: xe
533
+ _owner: me
534
534
  };
535
535
  return J._store = {}, Object.defineProperty(J._store, "validated", {
536
536
  configurable: !1,
@@ -551,14 +551,14 @@ function Nx() {
551
551
  };
552
552
  function Qu(v, R, P, H, re) {
553
553
  {
554
- var xe, ee = {}, J = null, He = null;
554
+ var me, ee = {}, J = null, He = null;
555
555
  P !== void 0 && (qa(P), J = "" + P), Nu(R) && (qa(R.key), J = "" + R.key), Vu(R) && (He = R.ref, qu(R, re));
556
- for (xe in R)
557
- Tr.call(R, xe) && !Pu.hasOwnProperty(xe) && (ee[xe] = R[xe]);
556
+ for (me in R)
557
+ Tr.call(R, me) && !Pu.hasOwnProperty(me) && (ee[me] = R[me]);
558
558
  if (v && v.defaultProps) {
559
559
  var ke = v.defaultProps;
560
- for (xe in ke)
561
- ee[xe] === void 0 && (ee[xe] = ke[xe]);
560
+ for (me in ke)
561
+ ee[me] === void 0 && (ee[me] = ke[me]);
562
562
  }
563
563
  if (J || He) {
564
564
  var Ie = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
@@ -643,7 +643,7 @@ Check the top-level render call using <` + P + ">.");
643
643
  else if (v) {
644
644
  var re = A(v);
645
645
  if (typeof re == "function" && re !== v.entries)
646
- for (var xe = re.call(v), ee; !(ee = xe.next()).done; )
646
+ for (var me = re.call(v), ee; !(ee = me.next()).done; )
647
647
  $s(ee.value) && Ua(ee.value, R);
648
648
  }
649
649
  }
@@ -685,7 +685,7 @@ Check the top-level render call using <` + P + ">.");
685
685
  v.ref !== null && (zn(v), V("Invalid attribute `ref` supplied to `React.Fragment`."), zn(null));
686
686
  }
687
687
  }
688
- function Ya(v, R, P, H, re, xe) {
688
+ function Ya(v, R, P, H, re, me) {
689
689
  {
690
690
  var ee = wt(v);
691
691
  if (!ee) {
@@ -696,7 +696,7 @@ Check the top-level render call using <` + P + ">.");
696
696
  var ke;
697
697
  v === null ? ke = "null" : Rs(v) ? ke = "array" : v !== void 0 && v.$$typeof === t ? (ke = "<" + ($t(v.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : ke = typeof v, V("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ke, J);
698
698
  }
699
- var Ie = Qu(v, R, P, re, xe);
699
+ var Ie = Qu(v, R, P, re, me);
700
700
  if (Ie == null)
701
701
  return Ie;
702
702
  if (ee) {
@@ -976,7 +976,7 @@ const Ln = new Yx();
976
976
  function Yl(e) {
977
977
  Ln.baseURL !== e.apiBaseURL && (Ln.baseURL = e.apiBaseURL), e.app_id && (Ln.app_id = e.app_id), e.app_secret && (Ln.app_secret = e.app_secret), e.makeQueryENV && (Ln.makeQueryENV = e.makeQueryENV);
978
978
  }
979
- const Jx = new Xx(Ln), qt = Jx, dr = ue(function({
979
+ const Jx = new Xx(Ln), qt = Jx, dr = he(function({
980
980
  value: t,
981
981
  onChange: n,
982
982
  ...s
@@ -1101,7 +1101,7 @@ function Z(e, {
1101
1101
  return String(e);
1102
1102
  try {
1103
1103
  let s = si(e).value();
1104
- if (s === void 0)
1104
+ if (s === void 0 || Number.isNaN(s))
1105
1105
  throw new Error(`[formatNumber]Not a number: ${e}`);
1106
1106
  return t && (s = Math.abs(s)), si(s).format(n);
1107
1107
  } catch (s) {
@@ -1719,7 +1719,7 @@ class Ri {
1719
1719
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1720
1720
  }
1721
1721
  }
1722
- const rc = "11.3.0", Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1722
+ const rc = "11.4.0", Rm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1723
1723
  __proto__: null,
1724
1724
  version: rc
1725
1725
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1917,7 +1917,7 @@ function $m({
1917
1917
  min: S,
1918
1918
  max: A
1919
1919
  } = T(() => {
1920
- const V = Sh(h, (ce) => ce[y.columnKey]), Y = Ch(h, (ce) => ce[y.columnKey]);
1920
+ const V = Sh(h, (de) => de[y.columnKey]), Y = Ch(h, (de) => de[y.columnKey]);
1921
1921
  return {
1922
1922
  min: te(V, y.columnKey),
1923
1923
  max: te(Y, y.columnKey)
@@ -1967,7 +1967,7 @@ function ac() {
1967
1967
  throw new Error("Please use DashboardModelContextProvider");
1968
1968
  return e;
1969
1969
  }
1970
- const oe = () => ac(), Pm = () => ac(), oc = M.createContext({
1970
+ const le = () => ac(), Pm = () => ac(), oc = M.createContext({
1971
1971
  searchButtonProps: {}
1972
1972
  }), lc = oc.Provider;
1973
1973
  function Vm() {
@@ -1980,7 +1980,7 @@ function uc() {
1980
1980
  throw new Error("Please use ContentModelContextProvider");
1981
1981
  return e;
1982
1982
  }
1983
- const le = () => uc(), Pe = () => uc(), Nm = {
1983
+ const ce = () => uc(), Pe = () => uc(), Nm = {
1984
1984
  inEditMode: !1
1985
1985
  }, Fi = M.createContext(Nm), hc = M.createContext({
1986
1986
  panel: null,
@@ -2006,7 +2006,7 @@ function Bm() {
2006
2006
  throw new Error("Please use FullScreenPanelContext.Provider");
2007
2007
  return e;
2008
2008
  }
2009
- const G = k(ue(({
2009
+ const G = k(he(({
2010
2010
  label: e,
2011
2011
  required: t,
2012
2012
  value: n,
@@ -2098,7 +2098,7 @@ function Wm({
2098
2098
  /* @__PURE__ */ r.jsx(b, { position: "center", mt: "xl", grow: !0, sx: {
2099
2099
  width: "60%"
2100
2100
  }, mx: "auto", children: /* @__PURE__ */ r.jsxs(C, { color: "blue", type: "submit", children: [
2101
- /* @__PURE__ */ r.jsx(pe, { size: 20 }),
2101
+ /* @__PURE__ */ r.jsx(xe, { size: 20 }),
2102
2102
  /* @__PURE__ */ r.jsx(j, { ml: "md", children: "Save" })
2103
2103
  ] }) })
2104
2104
  ] }) }) : null;
@@ -2211,7 +2211,7 @@ const Ym = [{
2211
2211
  }, {
2212
2212
  label: "Break Word",
2213
2213
  value: "breakAll"
2214
- }], Qr = ue(({
2214
+ }], Qr = he(({
2215
2215
  sectionTitle: e,
2216
2216
  value: t,
2217
2217
  onChange: n
@@ -2237,7 +2237,7 @@ const Ym = [{
2237
2237
  )
2238
2238
  ] })
2239
2239
  ] });
2240
- }), zt = ue(({
2240
+ }), zt = he(({
2241
2241
  value: e,
2242
2242
  onChange: t
2243
2243
  }, n) => {
@@ -2499,7 +2499,7 @@ const af = {
2499
2499
  configRender: rf,
2500
2500
  run: sf
2501
2501
  }, of = k((e) => {
2502
- const t = le(), {
2502
+ const t = ce(), {
2503
2503
  value: n,
2504
2504
  set: s
2505
2505
  } = Q(e.operation.operationData, "config");
@@ -2550,7 +2550,7 @@ const cf = {
2550
2550
  }, hf = {
2551
2551
  dictionary: {}
2552
2552
  }, pf = k((e) => {
2553
- const t = le(), {
2553
+ const t = ce(), {
2554
2554
  value: n = hf,
2555
2555
  set: s
2556
2556
  } = Q(e.operation.operationData, "config"), {
@@ -2613,7 +2613,7 @@ const mf = {
2613
2613
  }, ff = {
2614
2614
  filter_keys: []
2615
2615
  }, gf = k((e) => {
2616
- const t = le(), {
2616
+ const t = ce(), {
2617
2617
  value: n = ff,
2618
2618
  set: s
2619
2619
  } = Q(e.operation.operationData, "config"), {
@@ -2946,7 +2946,7 @@ const Sf = k(({
2946
2946
  await c.configOperation(a, l);
2947
2947
  }, [a, c]), _f(c) ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2948
2948
  /* @__PURE__ */ r.jsx(Sf, { model: c, onClick: n }),
2949
- /* @__PURE__ */ r.jsx(fe, { size: 600, opened: t, onClose: s, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2949
+ /* @__PURE__ */ r.jsx(ge, { size: 600, opened: t, onClose: s, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2950
2950
  /* @__PURE__ */ r.jsx(kf, { model: c }),
2951
2951
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "settings", children: [
2952
2952
  /* @__PURE__ */ r.jsxs(f.List, { children: [
@@ -3025,7 +3025,7 @@ const Mf = k(({
3025
3025
  setFalse: s
3026
3026
  }] = $e(!1), i = e.model;
3027
3027
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
3028
- /* @__PURE__ */ r.jsx(fe, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
3028
+ /* @__PURE__ */ r.jsx(ge, { opened: t, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
3029
3029
  /* @__PURE__ */ r.jsx(Lf, { model: i }),
3030
3030
  /* @__PURE__ */ r.jsx(Af, { model: i }),
3031
3031
  /* @__PURE__ */ r.jsx(gc, { title: "Payload", variables: i.triggerSchema.payload })
@@ -3181,7 +3181,7 @@ const Gf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3181
3181
  __proto__: null,
3182
3182
  getTooltip: Wf,
3183
3183
  tooltip: jc
3184
- }, Symbol.toStringTag, { value: "Module" })), be = {
3184
+ }, Symbol.toStringTag, { value: "Module" })), oe = {
3185
3185
  ...Nf,
3186
3186
  ...Bf,
3187
3187
  ...Gf
@@ -3609,7 +3609,7 @@ const lg = (e) => (t) => {
3609
3609
  function cg({
3610
3610
  config: e
3611
3611
  }) {
3612
- return be.getTooltip({
3612
+ return oe.getTooltip({
3613
3613
  trigger: "item",
3614
3614
  formatter: lg(e)
3615
3615
  });
@@ -3633,7 +3633,7 @@ function dg({
3633
3633
  tooltip: cg({
3634
3634
  config: e
3635
3635
  }),
3636
- xAxis: [be.getXAxis({
3636
+ xAxis: [oe.getXAxis({
3637
3637
  type: "category",
3638
3638
  name: s.name,
3639
3639
  nameGap: 25,
@@ -3647,7 +3647,7 @@ function dg({
3647
3647
  formatter: Hn(s.axisLabel.formatter)
3648
3648
  }
3649
3649
  })],
3650
- yAxis: [be.getYAxis({
3650
+ yAxis: [oe.getYAxis({
3651
3651
  name: i.name,
3652
3652
  minInterval: 1,
3653
3653
  axisLabel: {
@@ -3829,7 +3829,7 @@ const mg = ({
3829
3829
  readOnly: e
3830
3830
  } })
3831
3831
  ] });
3832
- }, bs = ue(({
3832
+ }, bs = he(({
3833
3833
  value: e,
3834
3834
  onChange: t
3835
3835
  }, n) => {
@@ -3869,7 +3869,7 @@ const mg = ({
3869
3869
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
3870
3870
  flexGrow: 0
3871
3871
  }, children: "Customize Label" }),
3872
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
3872
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
3873
3873
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
3874
3874
  /* @__PURE__ */ r.jsx(mg, { value: o.func_content, onChange: h, disabled: !o.enabled }),
3875
3875
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -4172,14 +4172,14 @@ function kg({
4172
4172
  O(() => {
4173
4173
  d(i);
4174
4174
  }, [i]), l(["x_axis", "y_axis", "reference_lines", "color"]);
4175
- const u = c(), h = T(() => !me(u, t), [u, t]);
4175
+ const u = c(), h = T(() => !fe(u, t), [u, t]);
4176
4176
  return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
4177
4177
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
4178
4178
  borderBottom: "1px solid #eee",
4179
4179
  background: "#efefef"
4180
4180
  }, children: [
4181
4181
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
4182
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
4182
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
4183
4183
  ] }),
4184
4184
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X Axis", orientation: "vertical", styles: {
4185
4185
  tab: {
@@ -4574,7 +4574,7 @@ function Ug({
4574
4574
  set: n
4575
4575
  } = Q(e.instanceData, "config"), s = T(() => je({}, t, Ni), [t]), i = s;
4576
4576
  O(() => {
4577
- !me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
4577
+ !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
4578
4578
  }, [s, i]);
4579
4579
  const {
4580
4580
  control: a,
@@ -4588,14 +4588,14 @@ function Ug({
4588
4588
  O(() => {
4589
4589
  d(i);
4590
4590
  }, [i]);
4591
- const u = c(), h = T(() => !me(u, s), [u, s]);
4591
+ const u = c(), h = T(() => !fe(u, s), [u, s]);
4592
4592
  return l(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
4593
4593
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
4594
4594
  borderBottom: "1px solid #eee",
4595
4595
  background: "#efefef"
4596
4596
  }, children: [
4597
4597
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
4598
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
4598
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
4599
4599
  ] }),
4600
4600
  /* @__PURE__ */ r.jsxs(w, { children: [
4601
4601
  /* @__PURE__ */ r.jsx(g, { control: a, name: "content", render: ({
@@ -5100,13 +5100,13 @@ function pb({
5100
5100
  y_axis_data_key: n,
5101
5101
  valueTypedXAxis: V
5102
5102
  }), Y;
5103
- const ce = hb({
5103
+ const de = hb({
5104
5104
  group_by_key: o,
5105
5105
  data: S,
5106
5106
  x_axis_data_key: e,
5107
5107
  y_axis_data_key: n
5108
5108
  });
5109
- return Object.entries(ce).map(([ne, Se]) => {
5109
+ return Object.entries(de).map(([ne, Se]) => {
5110
5110
  const De = Ne(Y);
5111
5111
  return De.name = ne, De.color = void 0, De.data = Se, De;
5112
5112
  });
@@ -5130,7 +5130,7 @@ function fb(e, t, n) {
5130
5130
  yAxisIndex: a,
5131
5131
  name: o
5132
5132
  }) => (i[o] = a, i), {});
5133
- return be.getTooltip({
5133
+ return oe.getTooltip({
5134
5134
  trigger: "axis",
5135
5135
  formatter: function(i) {
5136
5136
  const a = Array.isArray(i) ? i : [i];
@@ -5197,7 +5197,7 @@ function bb(e, t) {
5197
5197
  overflow: n,
5198
5198
  ...s
5199
5199
  } = e.x_axis.axisLabel, i = bt(n.on_axis), a = t.length === 0;
5200
- return [be.getXAxis({
5200
+ return [oe.getXAxis({
5201
5201
  data: t,
5202
5202
  name: e.x_axis_name ?? "",
5203
5203
  nameGap: a ? 5 : void 0,
@@ -5244,7 +5244,7 @@ function vb(e, t, n) {
5244
5244
  ...c
5245
5245
  }, d) => {
5246
5246
  let u = c.position;
5247
- return u || (u = d > 0 ? "right" : "left"), be.getYAxis({
5247
+ return u || (u = d > 0 ? "right" : "left"), oe.getYAxis({
5248
5248
  ...c,
5249
5249
  minInterval: s[d] ?? 0,
5250
5250
  show: l,
@@ -5382,7 +5382,7 @@ function Cb({
5382
5382
  }, children: Object.values(x.bottom).map((A, F) => /* @__PURE__ */ r.jsx(M.Fragment, { children: A }, F)) })
5383
5383
  ] });
5384
5384
  }
5385
- const Qi = ue(({
5385
+ const Qi = he(({
5386
5386
  value: e,
5387
5387
  onChange: t
5388
5388
  }, n) => {
@@ -5407,7 +5407,7 @@ const Qi = ue(({
5407
5407
  /* @__PURE__ */ r.jsx(z, { sx: {
5408
5408
  flexGrow: 1
5409
5409
  }, children: /* @__PURE__ */ r.jsx(Ve, { label: "Slider for X Axis", checked: e.x_axis_slider, onChange: (i) => s("x_axis_slider")(i.currentTarget.checked) }) }),
5410
- /* @__PURE__ */ r.jsx(ge, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ r.jsx(z, { sx: {
5410
+ /* @__PURE__ */ r.jsx(be, { label: "Not available for now, will overlap y-axis's label", children: /* @__PURE__ */ r.jsx(z, { sx: {
5411
5411
  flexGrow: 1
5412
5412
  }, children: /* @__PURE__ */ r.jsx(Ve, { label: "Slider for Y Axis", disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (i) => s("y_axis_slider")(i.currentTarget.checked) }) }) })
5413
5413
  ] })
@@ -6418,7 +6418,7 @@ class st {
6418
6418
  st.none = [];
6419
6419
  class $b extends Error {
6420
6420
  }
6421
- class he {
6421
+ class pe {
6422
6422
  /**
6423
6423
  Create a slice. When specifying a non-zero open depth, you must
6424
6424
  make sure that there are nodes of at least that depth at the
@@ -6445,13 +6445,13 @@ class he {
6445
6445
  */
6446
6446
  insertAt(t, n) {
6447
6447
  let s = Tc(this.content, t + this.openStart, n);
6448
- return s && new he(s, this.openStart, this.openEnd);
6448
+ return s && new pe(s, this.openStart, this.openEnd);
6449
6449
  }
6450
6450
  /**
6451
6451
  @internal
6452
6452
  */
6453
6453
  removeBetween(t, n) {
6454
- return new he(kc(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
6454
+ return new pe(kc(this.content, t + this.openStart, n + this.openStart), this.openStart, this.openEnd);
6455
6455
  }
6456
6456
  /**
6457
6457
  Tests whether this slice is equal to another slice.
@@ -6479,11 +6479,11 @@ class he {
6479
6479
  */
6480
6480
  static fromJSON(t, n) {
6481
6481
  if (!n)
6482
- return he.empty;
6482
+ return pe.empty;
6483
6483
  let s = n.openStart || 0, i = n.openEnd || 0;
6484
6484
  if (typeof s != "number" || typeof i != "number")
6485
6485
  throw new RangeError("Invalid input for Slice.fromJSON");
6486
- return new he(se.fromJSON(t, n.content), s, i);
6486
+ return new pe(se.fromJSON(t, n.content), s, i);
6487
6487
  }
6488
6488
  /**
6489
6489
  Create a slice from a fragment by taking the maximum possible
@@ -6495,10 +6495,10 @@ class he {
6495
6495
  s++;
6496
6496
  for (let a = t.lastChild; a && !a.isLeaf && (n || !a.type.spec.isolating); a = a.lastChild)
6497
6497
  i++;
6498
- return new he(t, s, i);
6498
+ return new pe(t, s, i);
6499
6499
  }
6500
6500
  }
6501
- he.empty = new he(se.empty, 0, 0);
6501
+ pe.empty = new pe(se.empty, 0, 0);
6502
6502
  function kc(e, t, n) {
6503
6503
  let { index: s, offset: i } = e.findIndex(t), a = e.maybeChild(s), { index: o, offset: l } = e.findIndex(n);
6504
6504
  if (i == t || a.isText) {
@@ -6549,7 +6549,7 @@ class Hr {
6549
6549
  */
6550
6550
  parseSlice(t, n = {}) {
6551
6551
  let s = new bo(this, n, !0);
6552
- return s.addAll(t, n.from, n.to), he.maxOpen(s.finish());
6552
+ return s.addAll(t, n.from, n.to), pe.maxOpen(s.finish());
6553
6553
  }
6554
6554
  /**
6555
6555
  @internal
@@ -7278,7 +7278,7 @@ class pn extends rt {
7278
7278
  super(), this.from = t, this.to = n, this.mark = s;
7279
7279
  }
7280
7280
  apply(t) {
7281
- let n = t.slice(this.from, this.to), s = t.resolve(this.from), i = s.node(s.sharedDepth(this.to)), a = new he(Ki(n.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), n.openStart, n.openEnd);
7281
+ let n = t.slice(this.from, this.to), s = t.resolve(this.from), i = s.node(s.sharedDepth(this.to)), a = new pe(Ki(n.content, (o, l) => !o.isAtom || !l.type.allowsMarkType(this.mark.type) ? o : o.mark(this.mark.addToSet(o.marks)), i), n.openStart, n.openEnd);
7282
7282
  return Fe.fromReplace(t, this.from, this.to, a);
7283
7283
  }
7284
7284
  invert() {
@@ -7317,7 +7317,7 @@ class xn extends rt {
7317
7317
  super(), this.from = t, this.to = n, this.mark = s;
7318
7318
  }
7319
7319
  apply(t) {
7320
- let n = t.slice(this.from, this.to), s = new he(Ki(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), t), n.openStart, n.openEnd);
7320
+ let n = t.slice(this.from, this.to), s = new pe(Ki(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), t), n.openStart, n.openEnd);
7321
7321
  return Fe.fromReplace(t, this.from, this.to, s);
7322
7322
  }
7323
7323
  invert() {
@@ -7360,7 +7360,7 @@ class mn extends rt {
7360
7360
  if (!n)
7361
7361
  return Fe.fail("No node at mark step's position");
7362
7362
  let s = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
7363
- return Fe.fromReplace(t, this.pos, this.pos + 1, new he(se.from(s), 0, n.isLeaf ? 0 : 1));
7363
+ return Fe.fromReplace(t, this.pos, this.pos + 1, new pe(se.from(s), 0, n.isLeaf ? 0 : 1));
7364
7364
  }
7365
7365
  invert(t) {
7366
7366
  let n = t.nodeAt(this.pos);
@@ -7404,7 +7404,7 @@ class hr extends rt {
7404
7404
  if (!n)
7405
7405
  return Fe.fail("No node at mark step's position");
7406
7406
  let s = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
7407
- return Fe.fromReplace(t, this.pos, this.pos + 1, new he(se.from(s), 0, n.isLeaf ? 0 : 1));
7407
+ return Fe.fromReplace(t, this.pos, this.pos + 1, new pe(se.from(s), 0, n.isLeaf ? 0 : 1));
7408
7408
  }
7409
7409
  invert(t) {
7410
7410
  let n = t.nodeAt(this.pos);
@@ -7457,10 +7457,10 @@ class Mt extends rt {
7457
7457
  if (!(t instanceof Mt) || t.structure || this.structure)
7458
7458
  return null;
7459
7459
  if (this.from + this.slice.size == t.from && !this.slice.openEnd && !t.slice.openStart) {
7460
- let n = this.slice.size + t.slice.size == 0 ? he.empty : new he(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
7460
+ let n = this.slice.size + t.slice.size == 0 ? pe.empty : new pe(this.slice.content.append(t.slice.content), this.slice.openStart, t.slice.openEnd);
7461
7461
  return new Mt(this.from, this.to + (t.to - t.from), n, this.structure);
7462
7462
  } else if (t.to == this.from && !this.slice.openStart && !t.slice.openEnd) {
7463
- let n = this.slice.size + t.slice.size == 0 ? he.empty : new he(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
7463
+ let n = this.slice.size + t.slice.size == 0 ? pe.empty : new pe(t.slice.content.append(this.slice.content), t.slice.openStart, this.slice.openEnd);
7464
7464
  return new Mt(t.from, this.to, n, this.structure);
7465
7465
  } else
7466
7466
  return null;
@@ -7475,7 +7475,7 @@ class Mt extends rt {
7475
7475
  static fromJSON(t, n) {
7476
7476
  if (typeof n.from != "number" || typeof n.to != "number")
7477
7477
  throw new RangeError("Invalid input for ReplaceStep.fromJSON");
7478
- return new Mt(n.from, n.to, he.fromJSON(t, n.slice), !!n.structure);
7478
+ return new Mt(n.from, n.to, pe.fromJSON(t, n.slice), !!n.structure);
7479
7479
  }
7480
7480
  }
7481
7481
  rt.jsonID("replace", Mt);
@@ -7533,7 +7533,7 @@ class gn extends rt {
7533
7533
  static fromJSON(t, n) {
7534
7534
  if (typeof n.from != "number" || typeof n.to != "number" || typeof n.gapFrom != "number" || typeof n.gapTo != "number" || typeof n.insert != "number")
7535
7535
  throw new RangeError("Invalid input for ReplaceAroundStep.fromJSON");
7536
- return new gn(n.from, n.to, n.gapFrom, n.gapTo, he.fromJSON(t, n.slice), n.insert, !!n.structure);
7536
+ return new gn(n.from, n.to, n.gapFrom, n.gapTo, pe.fromJSON(t, n.slice), n.insert, !!n.structure);
7537
7537
  }
7538
7538
  }
7539
7539
  rt.jsonID("replaceAround", gn);
@@ -7605,7 +7605,7 @@ class ar extends rt {
7605
7605
  s[a] = n.attrs[a];
7606
7606
  s[this.attr] = this.value;
7607
7607
  let i = n.type.create(s, null, n.marks);
7608
- return Fe.fromReplace(t, this.pos, this.pos + 1, new he(se.from(i), 0, n.isLeaf ? 0 : 1));
7608
+ return Fe.fromReplace(t, this.pos, this.pos + 1, new pe(se.from(i), 0, n.isLeaf ? 0 : 1));
7609
7609
  }
7610
7610
  getMap() {
7611
7611
  return ht.empty;
@@ -7702,14 +7702,14 @@ class ye {
7702
7702
  Replace the selection with a slice or, if no slice is given,
7703
7703
  delete the selection. Will append to the given transaction.
7704
7704
  */
7705
- replace(t, n = he.empty) {
7705
+ replace(t, n = pe.empty) {
7706
7706
  let s = n.content.lastChild, i = null;
7707
7707
  for (let l = 0; l < n.openEnd; l++)
7708
7708
  i = s, s = s.lastChild;
7709
7709
  let a = t.steps.length, o = this.ranges;
7710
7710
  for (let l = 0; l < o.length; l++) {
7711
7711
  let { $from: c, $to: d } = o[l], u = t.mapping.slice(a);
7712
- t.replaceRange(u.map(c.pos), u.map(d.pos), l ? he.empty : n), l == 0 && So(t, a, (s ? s.isInline : i && i.isTextblock) ? -1 : 1);
7712
+ t.replaceRange(u.map(c.pos), u.map(d.pos), l ? pe.empty : n), l == 0 && So(t, a, (s ? s.isInline : i && i.isTextblock) ? -1 : 1);
7713
7713
  }
7714
7714
  }
7715
7715
  /**
@@ -7835,8 +7835,8 @@ class Oe extends ye {
7835
7835
  let i = t.resolve(n.map(this.anchor));
7836
7836
  return new Oe(i.parent.inlineContent ? i : s, s);
7837
7837
  }
7838
- replace(t, n = he.empty) {
7839
- if (super.replace(t, n), n == he.empty) {
7838
+ replace(t, n = pe.empty) {
7839
+ if (super.replace(t, n), n == pe.empty) {
7840
7840
  let s = this.$from.marksAcross(this.$to);
7841
7841
  s && t.ensureMarks(s);
7842
7842
  }
@@ -7911,7 +7911,7 @@ class at extends ye {
7911
7911
  return s ? ye.near(a) : new at(a);
7912
7912
  }
7913
7913
  content() {
7914
- return new he(se.from(this.node), 0, 0);
7914
+ return new pe(se.from(this.node), 0, 0);
7915
7915
  }
7916
7916
  eq(t) {
7917
7917
  return t instanceof at && t.anchor == this.anchor;
@@ -7966,8 +7966,8 @@ class Gt extends ye {
7966
7966
  constructor(t) {
7967
7967
  super(t.resolve(0), t.resolve(t.content.size));
7968
7968
  }
7969
- replace(t, n = he.empty) {
7970
- if (n == he.empty) {
7969
+ replace(t, n = pe.empty) {
7970
+ if (n == pe.empty) {
7971
7971
  t.delete(0, t.doc.content.size);
7972
7972
  let s = ye.atStart(t.doc);
7973
7973
  s.eq(t.selection) || t.setSelection(s);
@@ -8666,8 +8666,8 @@ function Ky(e, t, n = {}) {
8666
8666
  if (!S.isText && !S.marks.length)
8667
8667
  return;
8668
8668
  const F = Math.max(x, A), V = Math.min(y, A + S.nodeSize), Y = V - F;
8669
- o += Y, l.push(...S.marks.map((ce) => ({
8670
- mark: ce,
8669
+ o += Y, l.push(...S.marks.map((de) => ({
8670
+ mark: de,
8671
8671
  from: F,
8672
8672
  to: V
8673
8673
  })));
@@ -8804,10 +8804,10 @@ const rj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8804
8804
  const F = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
8805
8805
  for (let De = l.depth - F; De >= l.depth - 3; De -= 1)
8806
8806
  A = se.from(l.node(De).copy(A));
8807
- const V = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, Y = Nr(h, l.node().type.name, l.node().attrs), ce = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Y)) || void 0;
8808
- A = A.append(se.from(o.createAndFill(null, ce) || void 0));
8807
+ const V = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, Y = Nr(h, l.node().type.name, l.node().attrs), de = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(Y)) || void 0;
8808
+ A = A.append(se.from(o.createAndFill(null, de) || void 0));
8809
8809
  const ne = l.before(l.depth - (F - 1));
8810
- t.replace(ne, l.after(-V), new he(A, 4 - F, 0));
8810
+ t.replace(ne, l.after(-V), new pe(A, 4 - F, 0));
8811
8811
  let Se = -1;
8812
8812
  t.doc.nodesBetween(ne, t.doc.content.size, (De, Re) => {
8813
8813
  if (Se > -1)
@@ -8829,8 +8829,8 @@ const rj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8829
8829
  const { selection: A, storedMarks: F } = n, { splittableMarks: V } = i.extensionManager, Y = F || A.$to.parentOffset && A.$from.marks();
8830
8830
  if (t.split(l.pos, 2, S).scrollIntoView(), !Y || !s)
8831
8831
  return !0;
8832
- const ce = Y.filter((ne) => V.includes(ne.type.name));
8833
- t.ensureMarks(ce);
8832
+ const de = Y.filter((ne) => V.includes(ne.type.name));
8833
+ t.ensureMarks(de);
8834
8834
  }
8835
8835
  return !0;
8836
8836
  }, Ks = (e, t) => {
@@ -8852,7 +8852,7 @@ const rj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8852
8852
  const i = e.doc.nodeAt(s);
8853
8853
  return n.node.type === (i == null ? void 0 : i.type) && Ec(e.doc, s) && e.join(s), !0;
8854
8854
  }, ij = (e, t, n, s = {}) => ({ editor: i, tr: a, state: o, dispatch: l, chain: c, commands: d, can: u }) => {
8855
- const { extensions: h, splittableMarks: p } = i.extensionManager, x = Qe(e, o.schema), y = Qe(t, o.schema), { selection: S, storedMarks: A } = o, { $from: F, $to: V } = S, Y = F.blockRange(V), ce = A || S.$to.parentOffset && S.$from.marks();
8855
+ const { extensions: h, splittableMarks: p } = i.extensionManager, x = Qe(e, o.schema), y = Qe(t, o.schema), { selection: S, storedMarks: A } = o, { $from: F, $to: V } = S, Y = F.blockRange(V), de = A || S.$to.parentOffset && S.$from.marks();
8856
8856
  if (!Y)
8857
8857
  return !1;
8858
8858
  const ne = Zi((Se) => Do(Se.type.name, h))(S);
@@ -8862,8 +8862,8 @@ const rj = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: s, edit
8862
8862
  if (Do(ne.node.type.name, h) && x.validContent(ne.node.content) && l)
8863
8863
  return c().command(() => (a.setNodeMarkup(ne.pos, x), !0)).command(() => Ks(a, x)).command(() => Ys(a, x)).run();
8864
8864
  }
8865
- return !n || !ce || !l ? c().command(() => u().wrapInList(x, s) ? !0 : d.clearNodes()).wrapInList(x, s).command(() => Ks(a, x)).command(() => Ys(a, x)).run() : c().command(() => {
8866
- const Se = u().wrapInList(x, s), De = ce.filter((Re) => p.includes(Re.type.name));
8865
+ return !n || !de || !l ? c().command(() => u().wrapInList(x, s) ? !0 : d.clearNodes()).wrapInList(x, s).command(() => Ks(a, x)).command(() => Ys(a, x)).run() : c().command(() => {
8866
+ const Se = u().wrapInList(x, s), De = de.filter((Re) => p.includes(Re.type.name));
8867
8867
  return a.ensureMarks(De), Se ? !0 : d.clearNodes();
8868
8868
  }).wrapInList(x, s).command(() => Ks(a, x)).command(() => Ys(a, x)).run();
8869
8869
  }, aj = (e, t = {}, n = {}) => ({ state: s, commands: i }) => {
@@ -9222,7 +9222,7 @@ function jj() {
9222
9222
  close: n
9223
9223
  }] = Cn(!1);
9224
9224
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9225
- /* @__PURE__ */ r.jsx(fe, { opened: e, onClose: n, title: "About FunctionUtils", zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(vs, { value: Wx, styles: {
9225
+ /* @__PURE__ */ r.jsx(ge, { opened: e, onClose: n, title: "About FunctionUtils", zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r.jsx(vs, { value: Wx, styles: {
9226
9226
  root: {
9227
9227
  border: "none"
9228
9228
  },
@@ -9256,7 +9256,7 @@ const vj = ({
9256
9256
  enabled: !1
9257
9257
  }
9258
9258
  } }) });
9259
- }, Vn = ue(({
9259
+ }, Vn = he(({
9260
9260
  value: e,
9261
9261
  onChange: t,
9262
9262
  label: n,
@@ -9290,7 +9290,7 @@ const vj = ({
9290
9290
  /* @__PURE__ */ r.jsx(j, { size: 14, children: n }),
9291
9291
  /* @__PURE__ */ r.jsx(vj, { value: a, onChange: o })
9292
9292
  ] });
9293
- }), Gc = ue(({
9293
+ }), Gc = he(({
9294
9294
  title: e,
9295
9295
  value: t,
9296
9296
  onChange: n,
@@ -9305,7 +9305,7 @@ const vj = ({
9305
9305
  close: h
9306
9306
  }] = Cn(!1);
9307
9307
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
9308
- /* @__PURE__ */ r.jsxs(fe, { opened: d, onClose: h, title: e, withinPortal: !0, zIndex: 320, size: "900px", children: [
9308
+ /* @__PURE__ */ r.jsxs(ge, { opened: d, onClose: h, title: e, withinPortal: !0, zIndex: 320, size: "900px", children: [
9309
9309
  i,
9310
9310
  /* @__PURE__ */ r.jsx(z, { h: 600, children: /* @__PURE__ */ r.jsx(Vn, { value: t, onChange: n, defaultValue: l, label: s }) })
9311
9311
  ] }),
@@ -9510,7 +9510,7 @@ const kj = ({
9510
9510
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
9511
9511
  flexGrow: 0
9512
9512
  }, children: "Setup" }) }),
9513
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
9513
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
9514
9514
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
9515
9515
  /* @__PURE__ */ r.jsx(kj, { value: a.func_content, onChange: d }),
9516
9516
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -9544,7 +9544,7 @@ const kj = ({
9544
9544
  }, {
9545
9545
  label: "Dynamic",
9546
9546
  value: "dynamic"
9547
- }], Qc = ue(({
9547
+ }], Qc = he(({
9548
9548
  label: e = "Size",
9549
9549
  value: t,
9550
9550
  onChange: n
@@ -10086,14 +10086,14 @@ function Qj({
10086
10086
  O(() => {
10087
10087
  d(i);
10088
10088
  }, [i]);
10089
- const u = c(), h = T(() => !me(u, i), [u, i]);
10089
+ const u = c(), h = T(() => !fe(u, i), [u, i]);
10090
10090
  return l(["dataZoom"]), /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
10091
10091
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
10092
10092
  borderBottom: "1px solid #eee",
10093
10093
  background: "#efefef"
10094
10094
  }, children: [
10095
10095
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
10096
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
10096
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
10097
10097
  ] }),
10098
10098
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "Series", orientation: "vertical", styles: {
10099
10099
  tab: {
@@ -10653,7 +10653,7 @@ function gv(e, t) {
10653
10653
  };
10654
10654
  }
10655
10655
  function bv(e, t) {
10656
- return be.getTooltip({
10656
+ return oe.getTooltip({
10657
10657
  trigger: "item",
10658
10658
  formatter: gv(e, t)
10659
10659
  });
@@ -10766,7 +10766,7 @@ const _v = [{
10766
10766
  }, {
10767
10767
  label: "InsideBottomRight",
10768
10768
  value: "insideBottomRight"
10769
- }], na = ue(({
10769
+ }], na = he(({
10770
10770
  label: e,
10771
10771
  value: t,
10772
10772
  onChange: n,
@@ -10855,7 +10855,7 @@ const _v = [{
10855
10855
  width: "100%"
10856
10856
  }, children: [
10857
10857
  /* @__PURE__ */ r.jsx(j, { children: "Min Value" }),
10858
- /* @__PURE__ */ r.jsx(ge, { label: "Check to enable specific min value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.enable_value`, control: t, render: ({
10858
+ /* @__PURE__ */ r.jsx(be, { label: "Check to enable specific min value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.min.enable_value`, control: t, render: ({
10859
10859
  field: c
10860
10860
  }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10861
10861
  ] }), ...l })
@@ -10875,7 +10875,7 @@ const _v = [{
10875
10875
  width: "100%"
10876
10876
  }, children: [
10877
10877
  /* @__PURE__ */ r.jsx(j, { children: "Max Value" }),
10878
- /* @__PURE__ */ r.jsx(ge, { label: "Check to enable specific max value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.enable_value`, control: t, render: ({
10878
+ /* @__PURE__ */ r.jsx(be, { label: "Check to enable specific max value", children: /* @__PURE__ */ r.jsx(z, { children: /* @__PURE__ */ r.jsx(g, { name: `series.${n}.max.enable_value`, control: t, render: ({
10879
10879
  field: c
10880
10880
  }) => /* @__PURE__ */ r.jsx(K, { size: "xs", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }) }) })
10881
10881
  ] }), ...l })
@@ -10960,7 +10960,7 @@ const _v = [{
10960
10960
  }, children: [
10961
10961
  /* @__PURE__ */ r.jsxs(f.List, { children: [
10962
10962
  o.map((u, h) => /* @__PURE__ */ r.jsx(f.Tab, { value: u.id, children: u.name }, u.id)),
10963
- /* @__PURE__ */ r.jsx(f.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ r.jsx(ge, { label: "TODO", children: /* @__PURE__ */ r.jsx(Sn, { children: /* @__PURE__ */ r.jsx(ft, { size: 18, color: "#228be6" }) }) }) })
10963
+ /* @__PURE__ */ r.jsx(f.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ r.jsx(be, { label: "TODO", children: /* @__PURE__ */ r.jsx(Sn, { children: /* @__PURE__ */ r.jsx(ft, { size: 18, color: "#228be6" }) }) }) })
10964
10964
  ] }),
10965
10965
  o.map((u, h) => /* @__PURE__ */ r.jsx(f.Panel, { value: u.id, children: /* @__PURE__ */ r.jsx(Dv, { item: u, control: e, index: h, remove: i }) }, u.id))
10966
10966
  ] });
@@ -10990,7 +10990,7 @@ function zv({
10990
10990
  background: "#efefef"
10991
10991
  }, children: [
10992
10992
  /* @__PURE__ */ r.jsx(j, { children: "Funnel Config" }),
10993
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
10993
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
10994
10994
  ] }),
10995
10995
  /* @__PURE__ */ r.jsx(Iv, { control: i, watch: o })
10996
10996
  ] }) });
@@ -11123,11 +11123,15 @@ function Fv(e) {
11123
11123
  function Ov(e) {
11124
11124
  let t = 0;
11125
11125
  return e.x_axis.name && (t += 20), {
11126
+ show: !0,
11126
11127
  top: 45,
11127
11128
  left: 5,
11128
11129
  right: 5,
11129
11130
  bottom: t,
11130
- containLabel: !0
11131
+ containLabel: !0,
11132
+ borderColor: "none",
11133
+ backgroundColor: "#E7E7E9",
11134
+ z: 1
11131
11135
  };
11132
11136
  }
11133
11137
  function $v(e, t, n) {
@@ -11148,7 +11152,8 @@ function $v(e, t, n) {
11148
11152
  label: s.label,
11149
11153
  labelLayout: {
11150
11154
  hideOverlap: !0
11151
- }
11155
+ },
11156
+ z: 2
11152
11157
  };
11153
11158
  }
11154
11159
  const Pv = (e) => Z(e, {
@@ -11209,7 +11214,7 @@ function Nv(e, t, n, s) {
11209
11214
  } = e, l = $(i.data_key), c = $(a.data_key);
11210
11215
  $(o.data_key);
11211
11216
  const d = _.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
11212
- return be.getTooltip({
11217
+ return oe.getTooltip({
11213
11218
  formatter: function(u) {
11214
11219
  const p = Vv({
11215
11220
  conf: e,
@@ -11298,7 +11303,7 @@ const qv = ({
11298
11303
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
11299
11304
  flexGrow: 0
11300
11305
  }, children: "Setup" }) }),
11301
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Setup dynamic value", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
11306
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic value", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
11302
11307
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
11303
11308
  /* @__PURE__ */ r.jsx(qv, { value: a.value, onChange: d }),
11304
11309
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -11332,7 +11337,7 @@ const qv = ({
11332
11337
  }, {
11333
11338
  label: "Dynamic",
11334
11339
  value: "dynamic"
11335
- }], Nn = ue(({
11340
+ }], Nn = he(({
11336
11341
  label: e = "Value",
11337
11342
  value: t,
11338
11343
  onChange: n
@@ -11385,12 +11390,12 @@ function Hv(e, t) {
11385
11390
  itemWidth: 15
11386
11391
  };
11387
11392
  }
11388
- function Uv(e, t, n) {
11393
+ function Uv(e, t, n, s) {
11389
11394
  const {
11390
- overflow: s,
11391
- rotate: i
11392
- } = e.x_axis.axisLabel, a = bt(s.on_axis);
11393
- return {
11395
+ overflow: i,
11396
+ rotate: a
11397
+ } = e.x_axis.axisLabel, o = bt(i.on_axis);
11398
+ return oe.getXAxis({
11394
11399
  id: "main-x-axis",
11395
11400
  type: "category",
11396
11401
  data: t,
@@ -11401,12 +11406,23 @@ function Uv(e, t, n) {
11401
11406
  alignWithLabel: !0
11402
11407
  },
11403
11408
  axisLabel: {
11404
- rotate: i,
11405
- ...a,
11409
+ rotate: a,
11410
+ ...o,
11406
11411
  formatter: n
11407
11412
  },
11408
11413
  splitArea: {
11409
- show: !0
11414
+ show: !1,
11415
+ areaStyle: {
11416
+ color: "#E7E7E9"
11417
+ }
11418
+ },
11419
+ splitLine: {
11420
+ show: s > 0,
11421
+ interval: 0,
11422
+ lineStyle: {
11423
+ type: "solid",
11424
+ color: "white"
11425
+ }
11410
11426
  },
11411
11427
  nameLocation: "center",
11412
11428
  nameGap: 25,
@@ -11414,46 +11430,59 @@ function Uv(e, t, n) {
11414
11430
  fontWeight: "bold",
11415
11431
  align: "center"
11416
11432
  },
11417
- z: 2
11418
- };
11433
+ z: 3
11434
+ });
11419
11435
  }
11420
- function Kv(e, t, n) {
11436
+ function Kv(e, t, n, s) {
11421
11437
  const {
11422
- nameAlignment: s,
11423
- data_key: i,
11424
- ...a
11438
+ nameAlignment: i,
11439
+ data_key: a,
11440
+ ...o
11425
11441
  } = e.y_axis, {
11426
- overflow: o,
11427
- rotate: l
11428
- } = e.y_axis.axisLabel, c = bt(o.on_axis);
11429
- return {
11430
- ...a,
11442
+ overflow: l,
11443
+ rotate: c
11444
+ } = e.y_axis.axisLabel, d = bt(l.on_axis);
11445
+ return oe.getYAxis({
11446
+ ...o,
11431
11447
  type: "category",
11432
11448
  data: t,
11433
11449
  axisLabel: {
11434
- rotate: l,
11435
- ...c,
11450
+ rotate: c,
11451
+ ...d,
11436
11452
  formatter: n
11437
11453
  },
11438
- axisLine: {
11439
- show: !0,
11440
- color: "blue"
11441
- },
11442
11454
  axisTick: {
11443
11455
  show: !0,
11444
11456
  alignWithLabel: !0
11445
11457
  },
11458
+ axisLine: {
11459
+ show: !0,
11460
+ lineStyle: {
11461
+ width: 3
11462
+ }
11463
+ },
11446
11464
  splitArea: {
11447
- show: !0
11465
+ show: !1,
11466
+ areaStyle: {
11467
+ color: "#E7E7E9"
11468
+ }
11469
+ },
11470
+ splitLine: {
11471
+ show: s > 0,
11472
+ interval: 0,
11473
+ lineStyle: {
11474
+ type: "solid",
11475
+ color: "white"
11476
+ }
11448
11477
  },
11449
11478
  nameTextStyle: {
11450
11479
  fontWeight: "bold",
11451
- align: s
11480
+ align: i
11452
11481
  },
11453
11482
  nameLocation: "end",
11454
11483
  nameGap: 15,
11455
- z: 2
11456
- };
11484
+ z: 3
11485
+ });
11457
11486
  }
11458
11487
  function Yv(e, t, n, s) {
11459
11488
  return n < e * 10 || s < t * 10 ? 0 : n < e * 20 || s < t * 20 ? 1 : 2;
@@ -11466,8 +11495,8 @@ function Xv(e, t, n, s, i) {
11466
11495
  return A[F.name] = gt(F, V), A;
11467
11496
  }, {}), o = Ev(e), l = Fv(e), c = $(e.x_axis.data_key), d = $(e.y_axis.data_key), u = $(e.heat_block.data_key), h = _.uniq(t[c.queryID].map((A) => A[c.columnKey])), p = _.uniq(t[c.queryID].map((A) => A[d.columnKey])), x = t[c.queryID].map((A) => [_.get(A, c.columnKey), _.get(A, d.columnKey), _.get(A, u.columnKey)]), y = Yv(h.length, p.length, s, i);
11468
11497
  return {
11469
- xAxis: Uv(e, h, o.x_axis),
11470
- yAxis: Kv(e, p, o.y_axis),
11498
+ xAxis: Uv(e, h, o.x_axis, y),
11499
+ yAxis: Kv(e, p, o.y_axis, y),
11471
11500
  series: $v(e, x, y),
11472
11501
  tooltip: Nv(e, t, o, l),
11473
11502
  grid: Ov(e),
@@ -11748,7 +11777,7 @@ const aw = ({
11748
11777
  enabled: !1,
11749
11778
  func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
11750
11779
  `)
11751
- }, Kc = ue(({
11780
+ }, Kc = he(({
11752
11781
  value: e,
11753
11782
  onChange: t
11754
11783
  }, n) => {
@@ -11788,7 +11817,7 @@ const aw = ({
11788
11817
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
11789
11818
  flexGrow: 0
11790
11819
  }, children: "Customize Label" }),
11791
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
11820
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
11792
11821
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
11793
11822
  /* @__PURE__ */ r.jsx(aw, { value: o.func_content, onChange: h, disabled: !o.enabled }),
11794
11823
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -11913,7 +11942,7 @@ function uw({
11913
11942
  set: n
11914
11943
  } = Q(e.instanceData, "config"), s = T(() => je({}, t, ra), [t]), i = T(() => _.cloneDeep(s), [s]);
11915
11944
  O(() => {
11916
- !me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
11945
+ !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
11917
11946
  }, [s, i]);
11918
11947
  const {
11919
11948
  control: a,
@@ -11927,7 +11956,7 @@ function uw({
11927
11956
  O(() => {
11928
11957
  d(i);
11929
11958
  }, [i]);
11930
- const u = c(), h = T(() => !me(u, s), [u, s]);
11959
+ const u = c(), h = T(() => !fe(u, s), [u, s]);
11931
11960
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), style: {
11932
11961
  flexGrow: 1
11933
11962
  }, children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", sx: {
@@ -11938,7 +11967,7 @@ function uw({
11938
11967
  background: "#efefef"
11939
11968
  }, children: [
11940
11969
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
11941
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
11970
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
11942
11971
  ] }),
11943
11972
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X Axis", orientation: "vertical", styles: {
11944
11973
  root: {
@@ -12315,7 +12344,7 @@ const Sw = (e, t) => (n) => {
12315
12344
  `;
12316
12345
  };
12317
12346
  function Cw(e, t) {
12318
- return be.getTooltip({
12347
+ return oe.getTooltip({
12319
12348
  trigger: "axis",
12320
12349
  formatter: Sw(e, t)
12321
12350
  });
@@ -12325,7 +12354,7 @@ function kw(e) {
12325
12354
  name: t,
12326
12355
  axisLabel: n
12327
12356
  } = e.x_axis, s = bt(n.overflow.on_axis);
12328
- return [be.getXAxis({
12357
+ return [oe.getXAxis({
12329
12358
  type: "category",
12330
12359
  name: t,
12331
12360
  nameLocation: "middle",
@@ -12341,7 +12370,7 @@ function kw(e) {
12341
12370
  })];
12342
12371
  }
12343
12372
  function Tw(e, t) {
12344
- return [be.getYAxis({
12373
+ return [oe.getYAxis({
12345
12374
  name: e.bar.name,
12346
12375
  nameGap: 20,
12347
12376
  minInterval: 1,
@@ -12356,7 +12385,7 @@ function Tw(e, t) {
12356
12385
  splitLine: {
12357
12386
  show: !1
12358
12387
  }
12359
- }), be.getYAxis({
12388
+ }), oe.getYAxis({
12360
12389
  name: e.line.name,
12361
12390
  nameGap: 20,
12362
12391
  nameTextStyle: {
@@ -12617,14 +12646,14 @@ function Pw({
12617
12646
  O(() => {
12618
12647
  c(s);
12619
12648
  }, [s]), o(["x_axis", "data_key", "bar", "line", "dataZoom"]);
12620
- const d = l(), u = T(() => !me(d, t), [d, t]);
12649
+ const d = l(), u = T(() => !fe(d, t), [d, t]);
12621
12650
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
12622
12651
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
12623
12652
  borderBottom: "1px solid #eee",
12624
12653
  background: "#efefef"
12625
12654
  }, children: [
12626
12655
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
12627
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
12656
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
12628
12657
  ] }),
12629
12658
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X Axis", orientation: "vertical", styles: {
12630
12659
  tab: {
@@ -12892,7 +12921,7 @@ function Yw(e, t, n) {
12892
12921
  }
12893
12922
  function Xw(e, t, n) {
12894
12923
  return {
12895
- tooltip: be.getTooltip({}),
12924
+ tooltip: oe.getTooltip({}),
12896
12925
  series: Yw(e, t, n)
12897
12926
  };
12898
12927
  }
@@ -13004,7 +13033,7 @@ function n0({
13004
13033
  background: "#efefef"
13005
13034
  }, children: [
13006
13035
  /* @__PURE__ */ r.jsx(j, { children: "Pie Chart Config" }),
13007
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
13036
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
13008
13037
  ] }),
13009
13038
  /* @__PURE__ */ r.jsxs(w, { mt: "md", spacing: "xs", p: "md", mb: "sm", sx: {
13010
13039
  border: "1px solid #eee",
@@ -13305,7 +13334,7 @@ function f0(e, t) {
13305
13334
  show: !1
13306
13335
  }
13307
13336
  },
13308
- tooltip: be.getTooltip({
13337
+ tooltip: oe.getTooltip({
13309
13338
  backgroundColor: "rgba(255,255,255,0.6)",
13310
13339
  formatter: p0(e)
13311
13340
  }),
@@ -13565,14 +13594,14 @@ function _0({
13565
13594
  O(() => {
13566
13595
  c(s);
13567
13596
  }, [s]), o(["series_name_key", "background", "label"]);
13568
- const u = l(), h = T(() => !me(u, s), [u, s]);
13597
+ const u = l(), h = T(() => !fe(u, s), [u, s]);
13569
13598
  return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
13570
13599
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
13571
13600
  borderBottom: "1px solid #eee",
13572
13601
  background: "#efefef"
13573
13602
  }, children: [
13574
13603
  /* @__PURE__ */ r.jsx(j, { children: "Radar Config" }),
13575
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h || !d.isValid, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
13604
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h || !d.isValid, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
13576
13605
  ] }),
13577
13606
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "series", children: [
13578
13607
  /* @__PURE__ */ r.jsxs(f.List, { children: [
@@ -13852,7 +13881,7 @@ function F0(e) {
13852
13881
  }));
13853
13882
  }
13854
13883
  function O0(e) {
13855
- return be.getTooltip({
13884
+ return oe.getTooltip({
13856
13885
  trigger: "axis",
13857
13886
  formatter: (t) => {
13858
13887
  const n = F0(t);
@@ -13907,7 +13936,7 @@ function $0(e) {
13907
13936
  formatter: s,
13908
13937
  ...i
13909
13938
  } = e.x_axis.axisLabel, a = bt(t.on_axis);
13910
- return be.getXAxis({
13939
+ return oe.getXAxis({
13911
13940
  type: "value",
13912
13941
  name: e.x_axis.name ?? "",
13913
13942
  nameLocation: "middle",
@@ -13948,7 +13977,7 @@ const P0 = {
13948
13977
  function V0(e, t) {
13949
13978
  const n = E0(e, t), s = L0(e, n), i = {
13950
13979
  xAxis: $0(e),
13951
- yAxis: be.getYAxis({
13980
+ yAxis: oe.getYAxis({
13952
13981
  name: e.y_axis.name ?? "",
13953
13982
  nameLocation: "end",
13954
13983
  nameTextStyle: {
@@ -14326,7 +14355,7 @@ const Z0 = ({
14326
14355
  readOnly: e
14327
14356
  } })
14328
14357
  ] });
14329
- }, id = ue(({
14358
+ }, id = he(({
14330
14359
  value: e,
14331
14360
  onChange: t,
14332
14361
  triggerButtonText: n = "Customize Label"
@@ -14367,7 +14396,7 @@ const Z0 = ({
14367
14396
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: a, sx: {
14368
14397
  flexGrow: 0
14369
14398
  }, children: n }),
14370
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(w, { children: [
14399
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(w, { children: [
14371
14400
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (y) => d(y.currentTarget.checked) }),
14372
14401
  /* @__PURE__ */ r.jsx(Z0, { value: l.func_content, onChange: p, disabled: !l.enabled }),
14373
14402
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -14461,14 +14490,14 @@ function n_({
14461
14490
  O(() => {
14462
14491
  c(s);
14463
14492
  }, [s]), o(["x_axis", "y_axis", "regression"]);
14464
- const d = l(), u = T(() => !me(d, t), [d, t]);
14493
+ const d = l(), u = T(() => !fe(d, t), [d, t]);
14465
14494
  return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
14466
14495
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
14467
14496
  borderBottom: "1px solid #eee",
14468
14497
  background: "#efefef"
14469
14498
  }, children: [
14470
14499
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
14471
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
14500
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
14472
14501
  ] }),
14473
14502
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X轴", orientation: "vertical", styles: {
14474
14503
  panel: {
@@ -14647,7 +14676,7 @@ function h_() {
14647
14676
  withHeaderRow: !0
14648
14677
  }), "aria-label": "Insert table", title: "Insert table", children: /* @__PURE__ */ r.jsx(Xh, { stroke: 1.5, size: 16 }) });
14649
14678
  }
14650
- const oa = ue(({
14679
+ const oa = he(({
14651
14680
  value: e,
14652
14681
  onChange: t,
14653
14682
  styles: n = {},
@@ -14767,7 +14796,7 @@ function p_({
14767
14796
  display: "none"
14768
14797
  }, children: [
14769
14798
  /* @__PURE__ */ r.jsx(j, { children: "Content" }),
14770
- /* @__PURE__ */ r.jsx(W, { ref: c, type: "submit", mr: 5, variant: "filled", color: "blue", children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
14799
+ /* @__PURE__ */ r.jsx(W, { ref: c, type: "submit", mr: 5, variant: "filled", color: "blue", children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
14771
14800
  ] }),
14772
14801
  /* @__PURE__ */ r.jsx(g, { name: "content", control: i, render: ({
14773
14802
  field: u
@@ -15146,7 +15175,7 @@ function I_(e, t) {
15146
15175
  scatter: n,
15147
15176
  tooltip: s
15148
15177
  } = e;
15149
- return be.getTooltip({
15178
+ return oe.getTooltip({
15150
15179
  trigger: s.trigger,
15151
15180
  formatter: function(i) {
15152
15181
  const a = t[0] ?? t.default, o = Array.isArray(i) ? i : [i];
@@ -15194,7 +15223,7 @@ function z_(e, t) {
15194
15223
  overflow: s,
15195
15224
  ...i
15196
15225
  } = e.x_axis.axisLabel, a = bt(s.on_axis), o = t.length === 0;
15197
- return [be.getXAxis({
15226
+ return [oe.getXAxis({
15198
15227
  data: t,
15199
15228
  name: e.x_axis.name ?? "",
15200
15229
  nameGap: o ? 5 : void 0,
@@ -15215,7 +15244,7 @@ function M_(e, t) {
15215
15244
  ...a
15216
15245
  }, o) => {
15217
15246
  let l = a.position;
15218
- return l || (l = o > 0 ? "right" : "left"), be.getYAxis({
15247
+ return l || (l = o > 0 ? "right" : "left"), oe.getYAxis({
15219
15248
  ...a,
15220
15249
  minInterval: 1,
15221
15250
  min: s || void 0,
@@ -15363,7 +15392,7 @@ function E_({
15363
15392
  }, children: Object.values(x.bottom).map((S) => S) })
15364
15393
  ] });
15365
15394
  }
15366
- const F_ = ue(({
15395
+ const F_ = he(({
15367
15396
  value: e,
15368
15397
  onChange: t,
15369
15398
  xAxisOptions: n,
@@ -15704,7 +15733,7 @@ const B_ = ({
15704
15733
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
15705
15734
  flexGrow: 0
15706
15735
  }, children: "Setup" }) }),
15707
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Setup dynamic color", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
15736
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic color", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
15708
15737
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
15709
15738
  /* @__PURE__ */ r.jsx(B_, { value: a.func_content, onChange: d }),
15710
15739
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -15738,7 +15767,7 @@ const B_ = ({
15738
15767
  }, {
15739
15768
  label: "Dynamic",
15740
15769
  value: "dynamic"
15741
- }], U_ = ue(({
15770
+ }], U_ = he(({
15742
15771
  label: e = "Color",
15743
15772
  value: t,
15744
15773
  onChange: n
@@ -15755,7 +15784,7 @@ const B_ = ({
15755
15784
  /* @__PURE__ */ r.jsx(Q_, { value: t, onChange: n }),
15756
15785
  /* @__PURE__ */ r.jsx(G_, { value: t, onChange: n })
15757
15786
  ] });
15758
- }), K_ = ue(({
15787
+ }), K_ = he(({
15759
15788
  value: e,
15760
15789
  onChange: t
15761
15790
  }, n) => {
@@ -15829,7 +15858,7 @@ const B_ = ({
15829
15858
  }, children: /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: s, sx: {
15830
15859
  flexGrow: 0
15831
15860
  }, children: "Setup" }) }),
15832
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
15861
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Setup dynamic size", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
15833
15862
  /* @__PURE__ */ r.jsx(I, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
15834
15863
  /* @__PURE__ */ r.jsx(Y_, { value: a.func_content, onChange: d }),
15835
15864
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -15863,7 +15892,7 @@ const B_ = ({
15863
15892
  }, {
15864
15893
  label: "Dynamic",
15865
15894
  value: "dynamic"
15866
- }], tS = ue(({
15895
+ }], tS = he(({
15867
15896
  label: e = "Size",
15868
15897
  value: t,
15869
15898
  onChange: n
@@ -16095,7 +16124,7 @@ const cS = ({
16095
16124
  readOnly: e
16096
16125
  } })
16097
16126
  ] });
16098
- }, dS = ue(({
16127
+ }, dS = he(({
16099
16128
  value: e,
16100
16129
  onChange: t
16101
16130
  }, n) => {
@@ -16135,7 +16164,7 @@ const cS = ({
16135
16164
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
16136
16165
  flexGrow: 0
16137
16166
  }, children: "Customize Label" }),
16138
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
16167
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
16139
16168
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
16140
16169
  /* @__PURE__ */ r.jsx(cS, { value: o.func_content, onChange: h, disabled: !o.enabled }),
16141
16170
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -16327,7 +16356,7 @@ function bS({
16327
16356
  variables: s
16328
16357
  } = e, i = T(() => je({}, t, la), [t]), a = T(() => gS(i), [i]);
16329
16358
  O(() => {
16330
- !me(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
16359
+ !fe(i, a) && (console.log("config malformed, resetting to defaults", i, a), n(a));
16331
16360
  }, [i, a]);
16332
16361
  const {
16333
16362
  control: o,
@@ -16341,14 +16370,14 @@ function bS({
16341
16370
  O(() => {
16342
16371
  u(a);
16343
16372
  }, [a]);
16344
- const h = d(), p = T(() => !me(h, i), [h, i]);
16373
+ const h = d(), p = T(() => !fe(h, i), [h, i]);
16345
16374
  return c(["dataZoom"]), /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(n), children: [
16346
16375
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
16347
16376
  borderBottom: "1px solid #eee",
16348
16377
  background: "#efefef"
16349
16378
  }, children: [
16350
16379
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
16351
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !p, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
16380
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !p, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
16352
16381
  ] }),
16353
16382
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X Axis", orientation: "vertical", styles: {
16354
16383
  tab: {
@@ -16763,7 +16792,7 @@ function $S({
16763
16792
  background: "#efefef"
16764
16793
  }, children: [
16765
16794
  /* @__PURE__ */ r.jsx(j, { weight: 500, children: "Stats Configurations" }),
16766
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
16795
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
16767
16796
  ] }),
16768
16797
  /* @__PURE__ */ r.jsx(g, { name: "template", control: i, render: ({
16769
16798
  field: h
@@ -16928,7 +16957,7 @@ function GS() {
16928
16957
  };
16929
16958
  }
16930
16959
  function QS() {
16931
- return be.getTooltip({
16960
+ return oe.getTooltip({
16932
16961
  trigger: "item",
16933
16962
  formatter: GS()
16934
16963
  });
@@ -17151,7 +17180,7 @@ function tC({
17151
17180
  background: "#efefef"
17152
17181
  }, children: [
17153
17182
  /* @__PURE__ */ r.jsx(j, { children: "Sunburst Config" }),
17154
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
17183
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
17155
17184
  ] }),
17156
17185
  /* @__PURE__ */ r.jsxs(f, { value: p, onTabChange: x, orientation: "vertical", styles: {
17157
17186
  tab: {
@@ -17673,7 +17702,7 @@ function IC({
17673
17702
  getSortedRowModel: Wp()
17674
17703
  }), {
17675
17704
  rows: V
17676
- } = F.getRowModel(), Y = M.useRef(null), ce = V.length, ne = ce > 0, Se = ne ? n - 22 : n, De = ne ? 22 : 0;
17705
+ } = F.getRowModel(), Y = M.useRef(null), de = V.length, ne = de > 0, Se = ne ? n - 22 : n, De = ne ? 22 : 0;
17677
17706
  return ll("VizTableComponent", {
17678
17707
  queryData: e,
17679
17708
  width: t,
@@ -17694,11 +17723,11 @@ function IC({
17694
17723
  }, "data-enable-scrollbar": !0, className: h(u.root, {
17695
17724
  "table-highlight-on-hover": s.highlightOnHover
17696
17725
  }), children: [
17697
- ce > 0 && /* @__PURE__ */ r.jsx(z, { className: u.info_bar, sx: {
17726
+ de > 0 && /* @__PURE__ */ r.jsx(z, { className: u.info_bar, sx: {
17698
17727
  height: 22
17699
17728
  }, children: /* @__PURE__ */ r.jsxs(j, { align: "right", pr: 6, size: 14, color: "dimmed", fw: "normal", children: [
17700
17729
  "Total: ",
17701
- ce
17730
+ de
17702
17731
  ] }) }),
17703
17732
  /* @__PURE__ */ r.jsxs(We, { sx: {
17704
17733
  ...uC,
@@ -17900,7 +17929,7 @@ const EC = k(({
17900
17929
  };
17901
17930
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
17902
17931
  /* @__PURE__ */ r.jsx(C, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
17903
- /* @__PURE__ */ r.jsx(fe, { size: 508, title: "Setup color interpolation", opened: c, onClose: u, zIndex: 320, children: c && /* @__PURE__ */ r.jsxs(w, { "data-testid": "color-interpolation-modal", children: [
17932
+ /* @__PURE__ */ r.jsx(ge, { size: 508, title: "Setup color interpolation", opened: c, onClose: u, zIndex: 320, children: c && /* @__PURE__ */ r.jsxs(w, { "data-testid": "color-interpolation-modal", children: [
17904
17933
  /* @__PURE__ */ r.jsx(L, { label: "Color style", value: a.interpolation, data: h, onChange: p, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
17905
17934
  /* @__PURE__ */ r.jsx(FC, { steps: a.steps, interpolation: l, onChange: y }),
17906
17935
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
@@ -17932,7 +17961,7 @@ function NC(e, t) {
17932
17961
  interpolation: e.encodeColor(e.getColorInterpolations()[0])
17933
17962
  };
17934
17963
  }
17935
- const qC = ue((e, t) => {
17964
+ const qC = he((e, t) => {
17936
17965
  const {
17937
17966
  colorManager: n
17938
17967
  } = Ht(Ot), [s, i] = q(fd(e.value)), [a, o] = q(VC(n, e.value)), l = to(a), [c, d] = q(NC(n, e.value)), u = to(c), h = (y) => {
@@ -17955,12 +17984,12 @@ const qC = ue((e, t) => {
17955
17984
  }, WC = Object.values(_t).map((e) => ({
17956
17985
  label: _.get(BC, e, _.capitalize(e)),
17957
17986
  value: e
17958
- })), GC = ue(({
17987
+ })), GC = he(({
17959
17988
  label: e,
17960
17989
  value: t,
17961
17990
  onChange: n,
17962
17991
  sx: s
17963
- }, i) => /* @__PURE__ */ r.jsx(L, { ref: i, label: e, data: WC, value: t, onChange: n, sx: s })), QC = ue(({
17992
+ }, i) => /* @__PURE__ */ r.jsx(L, { ref: i, label: e, data: WC, value: t, onChange: n, sx: s })), QC = he(({
17964
17993
  value: e,
17965
17994
  onChange: t
17966
17995
  }, n) => {
@@ -17980,7 +18009,7 @@ const qC = ue((e, t) => {
17980
18009
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
17981
18010
  flexGrow: 0
17982
18011
  }, children: "Custom Cell Content" }),
17983
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Custom cell content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
18012
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Custom cell content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
17984
18013
  /* @__PURE__ */ r.jsx(z, { sx: {
17985
18014
  position: "relative"
17986
18015
  }, children: /* @__PURE__ */ r.jsx(Je, { height: "500px", defaultLanguage: "javascript", value: o, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
@@ -18171,7 +18200,7 @@ function JC({
18171
18200
  set: n
18172
18201
  } = Q(e.instanceData, "config"), s = T(() => je({}, t, hd), [t]), i = T(() => XC(s), [s]);
18173
18202
  O(() => {
18174
- !me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
18203
+ !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
18175
18204
  }, [s, i]);
18176
18205
  const {
18177
18206
  control: a,
@@ -18185,14 +18214,14 @@ function JC({
18185
18214
  O(() => {
18186
18215
  d(i);
18187
18216
  }, [i]);
18188
- const u = c(), h = T(() => !me(u, s), [u, s]);
18217
+ const u = c(), h = T(() => !fe(u, s), [u, s]);
18189
18218
  return l(["id_field"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
18190
18219
  /* @__PURE__ */ r.jsxs(b, { position: "apart", py: "md", pl: "md", sx: {
18191
18220
  borderBottom: "1px solid #eee",
18192
18221
  background: "#efefef"
18193
18222
  }, children: [
18194
18223
  /* @__PURE__ */ r.jsx(j, { children: "Table Config" }),
18195
- /* @__PURE__ */ r.jsx(W, { type: "submit", "aria-label": "save config", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
18224
+ /* @__PURE__ */ r.jsx(W, { type: "submit", "aria-label": "save config", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
18196
18225
  ] }),
18197
18226
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "Columns", orientation: "vertical", styles: {
18198
18227
  tab: {
@@ -18403,7 +18432,7 @@ const bd = M.forwardRef(s1), i1 = ({
18403
18432
  enabled: !1
18404
18433
  }
18405
18434
  } }) });
18406
- }, a1 = ue(({
18435
+ }, a1 = he(({
18407
18436
  value: e,
18408
18437
  onChange: t
18409
18438
  }, n) => {
@@ -18423,7 +18452,7 @@ const bd = M.forwardRef(s1), i1 = ({
18423
18452
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
18424
18453
  flexGrow: 0
18425
18454
  }, children: "Edit Content" }),
18426
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Text content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
18455
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Text content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
18427
18456
  /* @__PURE__ */ r.jsx(i1, { value: o, onChange: l }),
18428
18457
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
18429
18458
  /* @__PURE__ */ r.jsx(C, { onClick: u, color: "red", leftIcon: /* @__PURE__ */ r.jsx(mt, { size: 20 }), children: "Reset" }),
@@ -18465,7 +18494,7 @@ function l1({
18465
18494
  };
18466
18495
  }, [s]);
18467
18496
  O(() => {
18468
- !me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
18497
+ !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
18469
18498
  }, [s, i]);
18470
18499
  const {
18471
18500
  control: a,
@@ -18486,7 +18515,7 @@ function l1({
18486
18515
  background: "#efefef"
18487
18516
  }, children: [
18488
18517
  /* @__PURE__ */ r.jsx(j, { weight: 500, children: "Configurations" }),
18489
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
18518
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
18490
18519
  ] }),
18491
18520
  /* @__PURE__ */ r.jsxs(w, { spacing: 10, children: [
18492
18521
  /* @__PURE__ */ r.jsx(g, { name: "func_content", control: a, render: ({
@@ -18671,7 +18700,7 @@ function f1({
18671
18700
  O(() => {
18672
18701
  c(s);
18673
18702
  }, [s]), o(["expertSystemURL", "goal", "path", "question"]);
18674
- const d = l(), u = T(() => !me(d, s), [d, s]);
18703
+ const d = l(), u = T(() => !fe(d, s), [d, s]);
18675
18704
  return /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(w, { children: [
18676
18705
  /* @__PURE__ */ r.jsxs(b, { grow: !0, children: [
18677
18706
  /* @__PURE__ */ r.jsx(g, { name: "expertSystemURL", control: i, render: ({
@@ -18690,7 +18719,7 @@ function f1({
18690
18719
  }) => /* @__PURE__ */ r.jsx(D, { label: "Question", required: !0, ...h }) })
18691
18720
  ] }),
18692
18721
  /* @__PURE__ */ r.jsx(I, { variant: "dashed", mt: 16, mb: 8 }),
18693
- /* @__PURE__ */ r.jsx(C, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(pe, { size: 20 }), disabled: !u, sx: {
18722
+ /* @__PURE__ */ r.jsx(C, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(xe, { size: 20 }), disabled: !u, sx: {
18694
18723
  alignSelf: "flex-end"
18695
18724
  }, children: "Submit Changes" })
18696
18725
  ] }) });
@@ -18835,7 +18864,7 @@ function C1({
18835
18864
  }
18836
18865
  function k1(e, t, n) {
18837
18866
  const s = $(e.calendar.data_key), i = _.keyBy(t[s.queryID], s.columnKey);
18838
- return be.getTooltip({
18867
+ return oe.getTooltip({
18839
18868
  formatter: function(a) {
18840
18869
  const l = C1({
18841
18870
  conf: e,
@@ -19177,7 +19206,7 @@ function B1({
19177
19206
  set: n
19178
19207
  } = Q(e.instanceData, "config"), s = T(() => je({}, t, xa), [t]), i = T(() => _.cloneDeep(s), [s]);
19179
19208
  O(() => {
19180
- !me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
19209
+ !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
19181
19210
  }, [s, i]);
19182
19211
  const {
19183
19212
  control: a,
@@ -19191,14 +19220,14 @@ function B1({
19191
19220
  O(() => {
19192
19221
  d(i);
19193
19222
  }, [i]);
19194
- const u = c(), h = T(() => !me(u, s), [u, s]);
19223
+ const u = c(), h = T(() => !fe(u, s), [u, s]);
19195
19224
  return /* @__PURE__ */ r.jsx(w, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
19196
19225
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
19197
19226
  borderBottom: "1px solid #eee",
19198
19227
  background: "#efefef"
19199
19228
  }, children: [
19200
19229
  /* @__PURE__ */ r.jsx(j, { children: "Calendar Heatmap Config" }),
19201
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
19230
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
19202
19231
  ] }),
19203
19232
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "Calendar", orientation: "vertical", styles: {
19204
19233
  tab: {
@@ -19561,9 +19590,9 @@ function ik({
19561
19590
  name_data_key: e.data_key,
19562
19591
  value_data_key: t
19563
19592
  });
19564
- return Object.entries(Y).map(([ce, ne]) => {
19593
+ return Object.entries(Y).map(([de, ne]) => {
19565
19594
  const Se = Ne(V);
19566
- return Se.name = ce, Se.color = void 0, Se.data = ne, Se;
19595
+ return Se.name = de, Se.color = void 0, Se.data = ne, Se;
19567
19596
  });
19568
19597
  }
19569
19598
  function ak(e, t, n, s, i, a, o) {
@@ -19587,7 +19616,7 @@ function lk(e, t, n) {
19587
19616
  xAxisIndex: a,
19588
19617
  name: o
19589
19618
  }) => (i[o] = a, i), {});
19590
- return be.getTooltip({
19619
+ return oe.getTooltip({
19591
19620
  trigger: "axis",
19592
19621
  axisPointer: {
19593
19622
  type: "shadow"
@@ -19659,7 +19688,7 @@ function uk(e, t) {
19659
19688
  ...i
19660
19689
  }, a) => {
19661
19690
  let o = i.position;
19662
- return o || (o = a > 0 ? "bottom" : "top"), be.getYAxis({
19691
+ return o || (o = a > 0 ? "bottom" : "top"), oe.getYAxis({
19663
19692
  ...i,
19664
19693
  type: "value",
19665
19694
  min: n || void 0,
@@ -19680,7 +19709,7 @@ function hk(e, t) {
19680
19709
  overflow: s,
19681
19710
  ...i
19682
19711
  } = e.y_axis.axisLabel, a = bt(s.on_axis);
19683
- return [be.getXAxis({
19712
+ return [oe.getXAxis({
19684
19713
  data: t,
19685
19714
  name: e.y_axis.name ?? "",
19686
19715
  // wait for https://github.com/apache/echarts/pull/16825
@@ -20275,7 +20304,7 @@ function zk({
20275
20304
  background: "#efefef"
20276
20305
  }, children: [
20277
20306
  /* @__PURE__ */ r.jsx(j, { children: "Horizontal Bar Chart Config" }),
20278
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
20307
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
20279
20308
  ] }),
20280
20309
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "Series", orientation: "vertical", styles: {
20281
20310
  tab: {
@@ -21220,7 +21249,7 @@ function lT({
21220
21249
  background: "#efefef"
21221
21250
  }, children: [
21222
21251
  /* @__PURE__ */ r.jsx(j, { children: "Merico Estimation Chart Config" }),
21223
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
21252
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !u, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
21224
21253
  ] }),
21225
21254
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X Axis", orientation: "vertical", styles: {
21226
21255
  tab: {
@@ -21403,11 +21432,11 @@ const No = ({
21403
21432
  }, {
21404
21433
  label: "Filter Option Label",
21405
21434
  value: "filter-option-label"
21406
- }], fT = k(ue(({
21435
+ }], fT = k(he(({
21407
21436
  value: e,
21408
21437
  onChange: t
21409
21438
  }, n) => {
21410
- const i = le().filters.selects, a = (l) => {
21439
+ const i = ce().filters.selects, a = (l) => {
21411
21440
  t({
21412
21441
  type: l,
21413
21442
  value: e.value
@@ -21614,14 +21643,14 @@ function wT({
21614
21643
  O(() => {
21615
21644
  d(i);
21616
21645
  }, [i]);
21617
- const u = c(), h = T(() => !me(u, i), [u, i]);
21646
+ const u = c(), h = T(() => !fe(u, i), [u, i]);
21618
21647
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", children: [
21619
21648
  /* @__PURE__ */ r.jsxs(b, { position: "left", py: "md", pl: "md", sx: {
21620
21649
  borderBottom: "1px solid #eee",
21621
21650
  background: "#efefef"
21622
21651
  }, children: [
21623
21652
  /* @__PURE__ */ r.jsx(j, { children: "Merico Stats Config" }),
21624
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
21653
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
21625
21654
  ] }),
21626
21655
  /* @__PURE__ */ r.jsx(vT, { control: a, watch: l }),
21627
21656
  /* @__PURE__ */ r.jsx(bT, { control: a, watch: l, variables: s })
@@ -21818,7 +21847,7 @@ const zT = ({
21818
21847
  enabled: !1,
21819
21848
  func_content: ["function label(value, index) {", " // your code goes here", " // return value", "}"].join(`
21820
21849
  `)
21821
- }, vd = ue(({
21850
+ }, vd = he(({
21822
21851
  value: e,
21823
21852
  onChange: t
21824
21853
  }, n) => {
@@ -21858,7 +21887,7 @@ const zT = ({
21858
21887
  /* @__PURE__ */ r.jsx(C, { variant: "filled", mt: 24, onClick: i, sx: {
21859
21888
  flexGrow: 0
21860
21889
  }, children: "Customize Label" }),
21861
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
21890
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize label content", opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(w, { children: [
21862
21891
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
21863
21892
  /* @__PURE__ */ r.jsx(zT, { value: o.func_content, onChange: h, disabled: !o.enabled }),
21864
21893
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -22028,7 +22057,7 @@ function ET({
22028
22057
  set: n
22029
22058
  } = Q(e.instanceData, "config"), s = T(() => je({}, t, ba), [t]), i = T(() => _.cloneDeep(s), [s]);
22030
22059
  O(() => {
22031
- !me(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
22060
+ !fe(s, i) && (console.log("config malformed, resetting to defaults", s, i), n(i));
22032
22061
  }, [s, i]);
22033
22062
  const {
22034
22063
  control: a,
@@ -22042,7 +22071,7 @@ function ET({
22042
22071
  O(() => {
22043
22072
  d(i);
22044
22073
  }, [i]);
22045
- const u = c(), h = T(() => !me(u, s), [u, s]);
22074
+ const u = c(), h = T(() => !fe(u, s), [u, s]);
22046
22075
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), style: {
22047
22076
  flexGrow: 1
22048
22077
  }, children: /* @__PURE__ */ r.jsxs(w, { spacing: "xs", sx: {
@@ -22053,7 +22082,7 @@ function ET({
22053
22082
  background: "#efefef"
22054
22083
  }, children: [
22055
22084
  /* @__PURE__ */ r.jsx(j, { children: "Chart Config" }),
22056
- /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
22085
+ /* @__PURE__ */ r.jsx(W, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !h, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
22057
22086
  ] }),
22058
22087
  /* @__PURE__ */ r.jsxs(f, { defaultValue: "X Axis", orientation: "vertical", styles: {
22059
22088
  root: {
@@ -22160,7 +22189,10 @@ function VT(e) {
22160
22189
  left: 5,
22161
22190
  right: 5,
22162
22191
  bottom: t,
22163
- containLabel: !0
22192
+ containLabel: !0,
22193
+ borderColor: "none",
22194
+ backgroundColor: "#E7E7E9",
22195
+ z: 1
22164
22196
  };
22165
22197
  }
22166
22198
  function NT(e, t) {
@@ -22182,7 +22214,8 @@ function NT(e, t) {
22182
22214
  label: i.label,
22183
22215
  labelLayout: {
22184
22216
  hideOverlap: !0
22185
- }
22217
+ },
22218
+ z: 2
22186
22219
  };
22187
22220
  }
22188
22221
  const qT = (e) => Z(e, {
@@ -22243,7 +22276,7 @@ function WT(e, t, n, s) {
22243
22276
  } = e, l = $(i.data_key), c = $(a.data_key);
22244
22277
  $(o.data_key);
22245
22278
  const d = _.keyBy(t[l.queryID], (u) => `${u[l.columnKey]}---${u[c.columnKey]}`);
22246
- return be.getTooltip({
22279
+ return oe.getTooltip({
22247
22280
  formatter: function(u) {
22248
22281
  const p = BT({
22249
22282
  conf: e,
@@ -22294,7 +22327,7 @@ function QT(e, t, n) {
22294
22327
  overflow: a,
22295
22328
  rotate: o
22296
22329
  } = e.x_axis.axisLabel, l = bt(a.on_axis);
22297
- return {
22330
+ return oe.getXAxis({
22298
22331
  id: "main-x-axis",
22299
22332
  type: "category",
22300
22333
  data: i,
@@ -22310,7 +22343,13 @@ function QT(e, t, n) {
22310
22343
  formatter: n
22311
22344
  },
22312
22345
  splitArea: {
22313
- show: !0
22346
+ show: !1,
22347
+ areaStyle: {
22348
+ color: "#E7E7E9"
22349
+ }
22350
+ },
22351
+ splitLine: {
22352
+ show: !1
22314
22353
  },
22315
22354
  nameLocation: "center",
22316
22355
  nameGap: 25,
@@ -22318,8 +22357,8 @@ function QT(e, t, n) {
22318
22357
  fontWeight: "bold",
22319
22358
  align: "center"
22320
22359
  },
22321
- z: 2
22322
- };
22360
+ z: 3
22361
+ });
22323
22362
  }
22324
22363
  function HT(e, t, n) {
22325
22364
  const s = $(e.x_axis.data_key), i = $(e.y_axis.data_key), {
@@ -22330,7 +22369,7 @@ function HT(e, t, n) {
22330
22369
  overflow: d,
22331
22370
  rotate: u
22332
22371
  } = e.y_axis.axisLabel, h = bt(d.on_axis);
22333
- return {
22372
+ return oe.getYAxis({
22334
22373
  ...l,
22335
22374
  type: "category",
22336
22375
  data: c,
@@ -22341,14 +22380,22 @@ function HT(e, t, n) {
22341
22380
  },
22342
22381
  axisLine: {
22343
22382
  show: !0,
22344
- color: "blue"
22383
+ lineStyle: {
22384
+ width: 3
22385
+ }
22345
22386
  },
22346
22387
  axisTick: {
22347
22388
  show: !0,
22348
22389
  alignWithLabel: !0
22349
22390
  },
22350
22391
  splitArea: {
22351
- show: !0
22392
+ show: !1,
22393
+ areaStyle: {
22394
+ color: "#E7E7E9"
22395
+ }
22396
+ },
22397
+ splitLine: {
22398
+ show: !1
22352
22399
  },
22353
22400
  nameTextStyle: {
22354
22401
  fontWeight: "bold",
@@ -22356,8 +22403,8 @@ function HT(e, t, n) {
22356
22403
  },
22357
22404
  nameLocation: "end",
22358
22405
  nameGap: 15,
22359
- z: 2
22360
- };
22406
+ z: 3
22407
+ });
22361
22408
  }
22362
22409
  function UT(e, t, n) {
22363
22410
  if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
@@ -22539,7 +22586,7 @@ function Sd() {
22539
22586
  const tD = ({
22540
22587
  description: e,
22541
22588
  isDescriptionEmpty: t
22542
- }) => t ? null : /* @__PURE__ */ r.jsx(ge, { color: "white", label: /* @__PURE__ */ r.jsx(vs, { value: e, styles: {
22589
+ }) => t ? null : /* @__PURE__ */ r.jsx(be, { color: "white", label: /* @__PURE__ */ r.jsx(vs, { value: e, styles: {
22543
22590
  root: {
22544
22591
  border: "none"
22545
22592
  },
@@ -22606,7 +22653,7 @@ const tD = ({
22606
22653
  visibility: "hidden"
22607
22654
  }, children: "." });
22608
22655
  const s = n === 1 ? "day" : "days";
22609
- return /* @__PURE__ */ r.jsx(ge, { label: `${n}${s}`, children: /* @__PURE__ */ r.jsx(bn, { size: "sm", children: n }) });
22656
+ return /* @__PURE__ */ r.jsx(be, { label: `${n}${s}`, children: /* @__PURE__ */ r.jsx(bn, { size: "sm", children: n }) });
22610
22657
  }, iD = ({
22611
22658
  max_days: e
22612
22659
  }) => e ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -23072,7 +23119,7 @@ const aD = ({
23072
23119
  unstyled: s
23073
23120
  }), [y, S] = q(!1), A = (ne) => {
23074
23121
  S(ne);
23075
- }, F = y && (l == null ? void 0 : l.length) > 0, [V, Y] = q(""), ce = T(() => {
23122
+ }, F = y && (l == null ? void 0 : l.length) > 0, [V, Y] = q(""), de = T(() => {
23076
23123
  if (!V)
23077
23124
  return d;
23078
23125
  const ne = V.toLowerCase(), Se = (De) => {
@@ -23087,9 +23134,9 @@ const aD = ({
23087
23134
  o,
23088
23135
  h && /* @__PURE__ */ r.jsx("span", { className: p.required, "aria-hidden": "true", children: "*" })
23089
23136
  ] }),
23090
- F && /* @__PURE__ */ r.jsx(ge, { label: `${l.length} selected`, children: /* @__PURE__ */ r.jsx(bn, { children: l.length }) })
23137
+ F && /* @__PURE__ */ r.jsx(be, { label: `${l.length} selected`, children: /* @__PURE__ */ r.jsx(bn, { children: l.length }) })
23091
23138
  ] }),
23092
- /* @__PURE__ */ r.jsx(Hp, { disabled: e, allowClear: !0, className: x(p.root, "check-select"), dropdownClassName: x(p.dropdown, ""), onDropdownVisibleChange: A, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(rl, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Td, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ne) => `${ne.length} selected`, searchValue: V, onSearch: Y, filterOption: !1, children: ce.map((ne) => /* @__PURE__ */ r.jsxs(Up, { title: ne.label, children: [
23139
+ /* @__PURE__ */ r.jsx(Hp, { disabled: e, allowClear: !0, className: x(p.root, "check-select"), dropdownClassName: x(p.dropdown, ""), onDropdownVisibleChange: A, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(rl, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Td, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ne) => `${ne.length} selected`, searchValue: V, onSearch: Y, filterOption: !1, children: de.map((ne) => /* @__PURE__ */ r.jsxs(Up, { title: ne.label, children: [
23093
23140
  /* @__PURE__ */ r.jsx(j, { size: "sm", "data-role": "label", children: ne.label }),
23094
23141
  ne.description && /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", "data-role": "description", children: ne.description })
23095
23142
  ] }, ne.value)) })
@@ -23110,7 +23157,7 @@ const aD = ({
23110
23157
  maxWidth: u ? d : "unset",
23111
23158
  borderColor: "#e9ecef"
23112
23159
  }, disabled: u, value: n, onChange: h, errorMessage: l, required: t.required });
23113
- }), uD = ue(({
23160
+ }), uD = he(({
23114
23161
  label: e,
23115
23162
  description: t,
23116
23163
  ...n
@@ -23454,7 +23501,7 @@ const xD = ({
23454
23501
  o,
23455
23502
  h && /* @__PURE__ */ r.jsx("span", { className: x.required, "aria-hidden": "true", children: "*" })
23456
23503
  ] }),
23457
- V && /* @__PURE__ */ r.jsx(ge, { label: `${l.length} selected`, children: /* @__PURE__ */ r.jsx(bn, { children: l.length }) })
23504
+ V && /* @__PURE__ */ r.jsx(be, { label: `${l.length} selected`, children: /* @__PURE__ */ r.jsx(bn, { children: l.length }) })
23458
23505
  ] }),
23459
23506
  /* @__PURE__ */ r.jsx(
23460
23507
  Kp,
@@ -23554,7 +23601,7 @@ const xD = ({
23554
23601
  return /* @__PURE__ */ r.jsx(C, { color: "blue", size: "sm", type: "submit", ...i, disabled: e || i.disabled, children: n });
23555
23602
  };
23556
23603
  function SD(e) {
23557
- const t = le();
23604
+ const t = ce();
23558
23605
  O(() => {
23559
23606
  var n, s;
23560
23607
  (s = (n = t.filters).updatePreviewValues) == null || s.call(n, e);
@@ -25675,7 +25722,7 @@ class lI {
25675
25722
  });
25676
25723
  }
25677
25724
  get changed() {
25678
- return !me(Wt(this.origin), Wt(this.copy));
25725
+ return !fe(Wt(this.origin), Wt(this.copy));
25679
25726
  }
25680
25727
  commit() {
25681
25728
  Ue(this.origin, Wt(this.copy));
@@ -25690,7 +25737,7 @@ class lI {
25690
25737
  const cI = (e) => new lI(e), dI = k(({
25691
25738
  view: e
25692
25739
  }) => {
25693
- const t = oe(), n = le(), s = Et(), {
25740
+ const t = le(), n = ce(), s = Et(), {
25694
25741
  panel: i,
25695
25742
  downloadPanelScreenshot: a
25696
25743
  } = It(), {
@@ -25723,20 +25770,20 @@ const cI = (e) => new lI(e), dI = k(({
25723
25770
  left: 0,
25724
25771
  right: 0,
25725
25772
  zIndex: 300
25726
- }, children: /* @__PURE__ */ r.jsxs(de, { withinPortal: !0, children: [
25727
- /* @__PURE__ */ r.jsx(de.Target, { children: /* @__PURE__ */ r.jsx(z, { className: "panel-dropdown-target", sx: {
25773
+ }, children: /* @__PURE__ */ r.jsxs(ue, { withinPortal: !0, children: [
25774
+ /* @__PURE__ */ r.jsx(ue.Target, { children: /* @__PURE__ */ r.jsx(z, { className: "panel-dropdown-target", sx: {
25728
25775
  width: "100%"
25729
25776
  } }) }),
25730
- /* @__PURE__ */ r.jsxs(de.Dropdown, { children: [
25731
- /* @__PURE__ */ r.jsx(de.Item, { onClick: i.refreshData, icon: /* @__PURE__ */ r.jsx(Si, { size: 14 }), children: "Refresh" }),
25732
- /* @__PURE__ */ r.jsx(de.Item, { onClick: i.downloadData, icon: /* @__PURE__ */ r.jsx(Ci, { size: 14 }), children: "Download Data" }),
25733
- /* @__PURE__ */ r.jsx(de.Item, { onClick: i.downloadSchema, icon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), children: "Download Schema" }),
25734
- /* @__PURE__ */ r.jsx(de.Item, { onClick: a, icon: /* @__PURE__ */ r.jsx(ds, { size: 14 }), children: "Screenshot" }),
25735
- x && /* @__PURE__ */ r.jsx(de.Item, { onClick: p, icon: /* @__PURE__ */ r.jsx(bl, { size: 14 }), disabled: !0, children: "Full Screen" }),
25777
+ /* @__PURE__ */ r.jsxs(ue.Dropdown, { children: [
25778
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: i.refreshData, icon: /* @__PURE__ */ r.jsx(Si, { size: 14 }), children: "Refresh" }),
25779
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: i.downloadData, icon: /* @__PURE__ */ r.jsx(Ci, { size: 14 }), children: "Download Data" }),
25780
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: i.downloadSchema, icon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), children: "Download Schema" }),
25781
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: a, icon: /* @__PURE__ */ r.jsx(ds, { size: 14 }), children: "Screenshot" }),
25782
+ x && /* @__PURE__ */ r.jsx(ue.Item, { onClick: p, icon: /* @__PURE__ */ r.jsx(bl, { size: 14 }), disabled: !0, children: "Full Screen" }),
25736
25783
  /* @__PURE__ */ r.jsx(I, { label: "Edit", labelPosition: "center" }),
25737
- /* @__PURE__ */ r.jsx(de.Item, { onClick: u, icon: /* @__PURE__ */ r.jsx(yl, { size: 14 }), children: "Settings" }),
25738
- /* @__PURE__ */ r.jsx(de.Item, { onClick: d, icon: /* @__PURE__ */ r.jsx(Oh, { size: 14 }), children: "Duplicate" }),
25739
- /* @__PURE__ */ r.jsx(de.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ r.jsx(ae, { size: 14 }), children: "Delete" })
25784
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: u, icon: /* @__PURE__ */ r.jsx(yl, { size: 14 }), children: "Settings" }),
25785
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: d, icon: /* @__PURE__ */ r.jsx(Oh, { size: 14 }), children: "Duplicate" }),
25786
+ /* @__PURE__ */ r.jsx(ue.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ r.jsx(ae, { size: 14 }), children: "Delete" })
25740
25787
  ] })
25741
25788
  ] }) }) });
25742
25789
  });
@@ -25748,7 +25795,7 @@ const iu = k(() => {
25748
25795
  panel: n
25749
25796
  } = Dn();
25750
25797
  return uI(n.description) ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
25751
- /* @__PURE__ */ r.jsx(fe, { opened: e, onClose: () => t(!1), title: n.title.show ? n.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(vs, { value: n.description, styles: {
25798
+ /* @__PURE__ */ r.jsx(ge, { opened: e, onClose: () => t(!1), title: n.title.show ? n.name : "", withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(vs, { value: n.description, styles: {
25752
25799
  root: {
25753
25800
  border: "none"
25754
25801
  },
@@ -25760,7 +25807,7 @@ const iu = k(() => {
25760
25807
  padding: "0 !important"
25761
25808
  }
25762
25809
  } }) }),
25763
- /* @__PURE__ */ r.jsx(ge, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => t((s) => !s), sx: {
25810
+ /* @__PURE__ */ r.jsx(be, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => t((s) => !s), sx: {
25764
25811
  verticalAlign: "baseline",
25765
25812
  cursor: "pointer"
25766
25813
  }, children: /* @__PURE__ */ r.jsx(an, { size: 20 }) }) })
@@ -26039,13 +26086,13 @@ const CI = k(({
26039
26086
  left: 0,
26040
26087
  right: 0,
26041
26088
  zIndex: 300
26042
- }, children: /* @__PURE__ */ r.jsxs(de, { withinPortal: !0, children: [
26043
- /* @__PURE__ */ r.jsx(de.Target, { children: /* @__PURE__ */ r.jsx(z, { className: "panel-dropdown-target" }) }),
26044
- /* @__PURE__ */ r.jsxs(de.Dropdown, { children: [
26045
- /* @__PURE__ */ r.jsx(de.Item, { onClick: t.refreshData, icon: /* @__PURE__ */ r.jsx(Si, { size: 14 }), children: "Refresh" }),
26046
- /* @__PURE__ */ r.jsx(de.Item, { onClick: t.downloadData, icon: /* @__PURE__ */ r.jsx(Ci, { size: 14 }), children: "Download Data" }),
26047
- /* @__PURE__ */ r.jsx(de.Item, { onClick: n, icon: /* @__PURE__ */ r.jsx(ds, { size: 14 }), children: "Screenshot" }),
26048
- l && /* @__PURE__ */ r.jsx(de.Item, { onClick: o, icon: /* @__PURE__ */ r.jsx(bl, { size: 14 }), children: "Full Screen" })
26089
+ }, children: /* @__PURE__ */ r.jsxs(ue, { withinPortal: !0, children: [
26090
+ /* @__PURE__ */ r.jsx(ue.Target, { children: /* @__PURE__ */ r.jsx(z, { className: "panel-dropdown-target" }) }),
26091
+ /* @__PURE__ */ r.jsxs(ue.Dropdown, { children: [
26092
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: t.refreshData, icon: /* @__PURE__ */ r.jsx(Si, { size: 14 }), children: "Refresh" }),
26093
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: t.downloadData, icon: /* @__PURE__ */ r.jsx(Ci, { size: 14 }), children: "Download Data" }),
26094
+ /* @__PURE__ */ r.jsx(ue.Item, { onClick: n, icon: /* @__PURE__ */ r.jsx(ds, { size: 14 }), children: "Screenshot" }),
26095
+ l && /* @__PURE__ */ r.jsx(ue.Item, { onClick: o, icon: /* @__PURE__ */ r.jsx(bl, { size: 14 }), children: "Full Screen" })
26049
26096
  ] })
26050
26097
  ] }) }) : null;
26051
26098
  });
@@ -26075,7 +26122,7 @@ const hu = k(({
26075
26122
  panel: n,
26076
26123
  exitFullScreen: s
26077
26124
  }) {
26078
- return /* @__PURE__ */ r.jsx(fe, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(C, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx($h, { size: 20 }), children: "Exit fullscreen" }), styles: TI, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
26125
+ return /* @__PURE__ */ r.jsx(ge, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(C, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx($h, { size: 20 }), children: "Exit fullscreen" }), styles: TI, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
26079
26126
  flexGrow: 1,
26080
26127
  flexShrink: 0
26081
26128
  }, children: /* @__PURE__ */ r.jsx(hu, { view: t, panel: n }) }) });
@@ -26190,8 +26237,8 @@ const FI = k(({
26190
26237
  const l = JSON.stringify(a.contentJSON, null, 2), c = `${i.name}__${a.name}`;
26191
26238
  Kn(c, l);
26192
26239
  };
26193
- return /* @__PURE__ */ r.jsxs(de, { shadow: "md", width: 200, trigger: "hover", openDelay: 200, closeDelay: 400, withinPortal: !0, position: "bottom-end", children: [
26194
- /* @__PURE__ */ r.jsx(de.Target, { children: /* @__PURE__ */ r.jsx(uh, { position: {
26240
+ return /* @__PURE__ */ r.jsxs(ue, { shadow: "md", width: 200, trigger: "hover", openDelay: 200, closeDelay: 400, withinPortal: !0, position: "bottom-end", children: [
26241
+ /* @__PURE__ */ r.jsx(ue.Target, { children: /* @__PURE__ */ r.jsx(uh, { position: {
26195
26242
  bottom: "20px",
26196
26243
  right: "10px"
26197
26244
  }, zIndex: 1, children: /* @__PURE__ */ r.jsx(W, { size: "md", variant: "gradient", gradient: {
@@ -26203,11 +26250,11 @@ const FI = k(({
26203
26250
  transition: "all ease 300ms",
26204
26251
  borderRadius: "50%"
26205
26252
  }, children: /* @__PURE__ */ r.jsx(sp, { size: "1rem" }) }) }) }),
26206
- /* @__PURE__ */ r.jsxs(de.Dropdown, { children: [
26207
- /* @__PURE__ */ r.jsx(de.Item, { icon: /* @__PURE__ */ r.jsx(ds, { size: 14 }), onClick: e, children: "Screenshot" }),
26208
- /* @__PURE__ */ r.jsx(de.Divider, {}),
26209
- /* @__PURE__ */ r.jsx(de.Item, { icon: /* @__PURE__ */ r.jsx(ip, { size: 14 }), onClick: a.queries.downloadAllData, children: "Download Data" }),
26210
- /* @__PURE__ */ r.jsx(de.Item, { icon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), onClick: o, children: "Download Schema" })
26253
+ /* @__PURE__ */ r.jsxs(ue.Dropdown, { children: [
26254
+ /* @__PURE__ */ r.jsx(ue.Item, { icon: /* @__PURE__ */ r.jsx(ds, { size: 14 }), onClick: e, children: "Screenshot" }),
26255
+ /* @__PURE__ */ r.jsx(ue.Divider, {}),
26256
+ /* @__PURE__ */ r.jsx(ue.Item, { icon: /* @__PURE__ */ r.jsx(ip, { size: 14 }), onClick: a.queries.downloadAllData, children: "Download Data" }),
26257
+ /* @__PURE__ */ r.jsx(ue.Item, { icon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), onClick: o, children: "Download Schema" })
26211
26258
  ] })
26212
26259
  ] });
26213
26260
  }), pu = k(({
@@ -26233,7 +26280,7 @@ const FI = k(({
26233
26280
  ref: o,
26234
26281
  downloadScreenshot: l
26235
26282
  } = _a(t);
26236
- return /* @__PURE__ */ r.jsx(fe, { size: s.width, centered: !0, opened: i, onClose: a, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26283
+ return /* @__PURE__ */ r.jsx(ge, { size: s.width, centered: !0, opened: i, onClose: a, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26237
26284
  /* @__PURE__ */ r.jsx(z, { children: s.custom_modal_title.value }),
26238
26285
  /* @__PURE__ */ r.jsx(xu, { downloadScreenshot: l })
26239
26286
  ] }), trapFocus: !0, onDragStart: (c) => {
@@ -26337,7 +26384,7 @@ const qI = k(({
26337
26384
  "> div:not(.mantine-Modal-root)": {
26338
26385
  height: "100%"
26339
26386
  }
26340
- }, children: /* @__PURE__ */ r.jsx(fe, { size: n.width, opened: !0, onClose: _.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26387
+ }, children: /* @__PURE__ */ r.jsx(ge, { size: n.width, opened: !0, onClose: _.noop, withCloseButton: !1, title: /* @__PURE__ */ r.jsxs(b, { position: "apart", px: "1rem", h: "48px", children: [
26341
26388
  /* @__PURE__ */ r.jsx(z, { children: n.custom_modal_title.value }),
26342
26389
  /* @__PURE__ */ r.jsx(xu, { downloadScreenshot: o })
26343
26390
  ] }), trapFocus: !0, onDragStart: (l) => {
@@ -26408,7 +26455,7 @@ const qI = k(({
26408
26455
  } : {}, GI = k(({
26409
26456
  view: e
26410
26457
  }) => {
26411
- const t = Et(), n = le(), s = T(() => n.views.options.filter((l) => l.type === B.Division), [e.id, n.views.options]), i = e.config, a = (l) => t.openConfirmModal({
26458
+ const t = Et(), n = ce(), s = T(() => n.views.options.filter((l) => l.type === B.Division), [e.id, n.views.options]), i = e.config, a = (l) => t.openConfirmModal({
26412
26459
  title: "Delete this tab?",
26413
26460
  labels: {
26414
26461
  confirm: "Confirm",
@@ -27400,27 +27447,27 @@ const pz = m.model({
27400
27447
  },
27401
27448
  get filtersChanged() {
27402
27449
  const t = "filters.current";
27403
- return !me(Wt(te(e, t)), te(e.origin, t));
27450
+ return !fe(Wt(te(e, t)), te(e.origin, t));
27404
27451
  },
27405
27452
  get queriesChanged() {
27406
27453
  const t = "queries.current", n = Wt(te(e, t)).map((s) => fl(s, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process", "dep_query_ids"]));
27407
- return !me(n, te(e.origin, t));
27454
+ return !fe(n, te(e.origin, t));
27408
27455
  },
27409
27456
  get sqlSnippetsChanged() {
27410
27457
  const t = "sqlSnippets.current";
27411
- return !me(Wt(te(e, t)), te(e.origin, t));
27458
+ return !fe(Wt(te(e, t)), te(e.origin, t));
27412
27459
  },
27413
27460
  get viewsChanged() {
27414
27461
  const t = "views.current";
27415
- return !me(e.views.json, te(e.origin, t));
27462
+ return !fe(e.views.json, te(e.origin, t));
27416
27463
  },
27417
27464
  get panelsChanged() {
27418
27465
  const t = "panels.list";
27419
- return !me(Wt(te(e, t)), te(e.origin, t));
27466
+ return !fe(Wt(te(e, t)), te(e.origin, t));
27420
27467
  },
27421
27468
  get mockContextChanged() {
27422
27469
  const t = "mock_context.current";
27423
- return !me(te(e, t), te(e.origin, t));
27470
+ return !fe(te(e, t), te(e.origin, t));
27424
27471
  },
27425
27472
  get context() {
27426
27473
  const t = Le(e).context.current;
@@ -27850,7 +27897,7 @@ function bu(e) {
27850
27897
  const gz = k(({
27851
27898
  saveDashboardChanges: e
27852
27899
  }) => {
27853
- const t = Et(), n = le(), s = () => {
27900
+ const t = Et(), n = ce(), s = () => {
27854
27901
  t.openConfirmModal({
27855
27902
  title: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
27856
27903
  /* @__PURE__ */ r.jsx(Cl, { size: 18, color: "red" }),
@@ -27874,8 +27921,8 @@ const gz = k(({
27874
27921
  borderTopRightRadius: 0,
27875
27922
  borderBottomRightRadius: 0
27876
27923
  }, children: "Save Changes" }),
27877
- /* @__PURE__ */ r.jsxs(de, { width: 200, trigger: "hover", openDelay: 100, closeDelay: 400, withinPortal: !0, zIndex: 320, disabled: !i, children: [
27878
- /* @__PURE__ */ r.jsx(de.Target, { children: /* @__PURE__ */ r.jsx(W, { variant: "default", disabled: !i, sx: {
27924
+ /* @__PURE__ */ r.jsxs(ue, { width: 200, trigger: "hover", openDelay: 100, closeDelay: 400, withinPortal: !0, zIndex: 320, disabled: !i, children: [
27925
+ /* @__PURE__ */ r.jsx(ue.Target, { children: /* @__PURE__ */ r.jsx(W, { variant: "default", disabled: !i, sx: {
27879
27926
  height: "30px",
27880
27927
  borderTopLeftRadius: 0,
27881
27928
  borderBottomLeftRadius: 0,
@@ -27884,7 +27931,7 @@ const gz = k(({
27884
27931
  stroke: "none"
27885
27932
  }
27886
27933
  }, children: /* @__PURE__ */ r.jsx(cp, { size: 18 }) }) }),
27887
- /* @__PURE__ */ r.jsx(de.Dropdown, { children: /* @__PURE__ */ r.jsx(de.Item, { icon: /* @__PURE__ */ r.jsx(cs, { size: 14, color: "red" }), disabled: !i, onClick: s, children: "Revert Changes" }) })
27934
+ /* @__PURE__ */ r.jsx(ue.Dropdown, { children: /* @__PURE__ */ r.jsx(ue.Item, { icon: /* @__PURE__ */ r.jsx(cs, { size: 14, color: "red" }), disabled: !i, onClick: s, children: "Revert Changes" }) })
27888
27935
  ] })
27889
27936
  ] });
27890
27937
  }), bz = k(({
@@ -27892,7 +27939,7 @@ const gz = k(({
27892
27939
  onExit: t,
27893
27940
  headerSlot: n = null
27894
27941
  }) => {
27895
- const s = oe(), i = s.content.changed, a = () => {
27942
+ const s = le(), i = s.content.changed, a = () => {
27896
27943
  t({
27897
27944
  hasChanges: i,
27898
27945
  dashboardId: s.id
@@ -27924,8 +27971,8 @@ const gz = k(({
27924
27971
  borderBottom: "1px solid #e9ecef"
27925
27972
  }, yz = k(() => {
27926
27973
  var s;
27927
- const e = le(), t = ((s = e.views.VIE) == null ? void 0 : s.type) === B.Tabs, n = () => e.addANewPanel(e.views.idOfVIE);
27928
- return t ? /* @__PURE__ */ r.jsx(ge, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(ro, { size: 20 }), sx: {
27974
+ const e = ce(), t = ((s = e.views.VIE) == null ? void 0 : s.type) === B.Tabs, n = () => e.addANewPanel(e.views.idOfVIE);
27975
+ return t ? /* @__PURE__ */ r.jsx(be, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(ro, { size: 20 }), sx: {
27929
27976
  ...Qo,
27930
27977
  transform: "none !important"
27931
27978
  }, children: "Add a Panel" }) }) : /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(ro, { size: 20 }), sx: {
@@ -28019,7 +28066,7 @@ const gz = k(({
28019
28066
  /* @__PURE__ */ r.jsx(W, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: s, sx: {
28020
28067
  flexGrow: 0
28021
28068
  }, children: /* @__PURE__ */ r.jsx(yl, { size: 14 }) }),
28022
- /* @__PURE__ */ r.jsx(fe, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
28069
+ /* @__PURE__ */ r.jsx(ge, { size: 800, title: "Customize modal title", opened: n, onClose: i, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ r.jsxs(w, { children: [
28023
28070
  /* @__PURE__ */ r.jsx(K, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (p) => l(p.currentTarget.checked) }),
28024
28071
  /* @__PURE__ */ r.jsx(Sz, { value: a.func_content, onChange: u, disabled: !a.enabled }),
28025
28072
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -28215,7 +28262,7 @@ const $z = k(({
28215
28262
  shrinkModal: n
28216
28263
  }) => {
28217
28264
  var A, F;
28218
- const s = le(), {
28265
+ const s = ce(), {
28219
28266
  handleSubmit: i,
28220
28267
  formState: {
28221
28268
  errors: a
@@ -28253,12 +28300,12 @@ const $z = k(({
28253
28300
  const V = new FileReader();
28254
28301
  V.readAsText(h, "UTF-8"), V.onload = (Y) => {
28255
28302
  try {
28256
- const ce = Oz(Y);
28257
- o("content", ce), d("content");
28258
- } catch (ce) {
28259
- console.error(ce), c("content", {
28303
+ const de = Oz(Y);
28304
+ o("content", de), d("content");
28305
+ } catch (de) {
28306
+ console.error(de), c("content", {
28260
28307
  type: "custom",
28261
- message: ce.message
28308
+ message: de.message
28262
28309
  });
28263
28310
  }
28264
28311
  }, V.onabort = () => console.log("🟨 abort"), V.onerror = () => {
@@ -28307,8 +28354,8 @@ const $z = k(({
28307
28354
  }] = Cn(!1), [s, {
28308
28355
  setTrue: i,
28309
28356
  setFalse: a
28310
- }] = $e(!1), l = ((c = oe().content.views.VIE) == null ? void 0 : c.type) === B.Tabs;
28311
- return l ? /* @__PURE__ */ r.jsx(ge, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(so, { size: 16 }), sx: {
28357
+ }] = $e(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === B.Tabs;
28358
+ return l ? /* @__PURE__ */ r.jsx(be, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(so, { size: 16 }), sx: {
28312
28359
  ...Ho,
28313
28360
  transform: "none !important"
28314
28361
  }, children: "Import..." }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
@@ -28316,7 +28363,7 @@ const $z = k(({
28316
28363
  ...Ho
28317
28364
  // background: 'rgb(231, 245, 255)',
28318
28365
  }, children: "Import..." }),
28319
- /* @__PURE__ */ r.jsx(fe, { opened: e, onClose: n, title: "Import content with schema json", trapFocus: !0, onDragStart: (d) => {
28366
+ /* @__PURE__ */ r.jsx(ge, { opened: e, onClose: n, title: "Import content with schema json", trapFocus: !0, onDragStart: (d) => {
28320
28367
  d.stopPropagation();
28321
28368
  }, withinPortal: !0, zIndex: 320, size: s ? "90vw" : 500, children: /* @__PURE__ */ r.jsx($z, { onSuccess: n, stretchModal: i, shrinkModal: a }) })
28322
28369
  ] });
@@ -28328,11 +28375,11 @@ const $z = k(({
28328
28375
  borderBottom: "1px solid #e9ecef"
28329
28376
  }, Vz = k(() => {
28330
28377
  var s;
28331
- const e = le(), t = ((s = e.views.VIE) == null ? void 0 : s.type) === B.Tabs, n = () => {
28378
+ const e = ce(), t = ((s = e.views.VIE) == null ? void 0 : s.type) === B.Tabs, n = () => {
28332
28379
  var i;
28333
28380
  return (i = e.views.VIE) == null ? void 0 : i.downloadSchema();
28334
28381
  };
28335
- return t ? /* @__PURE__ */ r.jsx(ge, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 16 }), sx: {
28382
+ return t ? /* @__PURE__ */ r.jsx(be, { label: "Please choose a tab first", children: /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 16 }), sx: {
28336
28383
  ...Uo,
28337
28384
  transform: "none !important"
28338
28385
  }, children: "Download this View" }) }) : /* @__PURE__ */ r.jsx(C, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 16 }), sx: {
@@ -28714,7 +28761,7 @@ const dM = {
28714
28761
  opened: e,
28715
28762
  close: t
28716
28763
  }) => /* @__PURE__ */ r.jsx(
28717
- fe,
28764
+ ge,
28718
28765
  {
28719
28766
  size: "96vw",
28720
28767
  opened: e,
@@ -28780,7 +28827,7 @@ function xM({
28780
28827
  }), children: /* @__PURE__ */ r.jsx(b, { sx: {
28781
28828
  width: "calc(100% - 28px)"
28782
28829
  }, onClick: e, children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: t }) }) }),
28783
- n && /* @__PURE__ */ r.jsx(ge, { label: "Edit", position: "right", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { onClick: s, variant: "light", color: "blue", sx: {
28830
+ n && /* @__PURE__ */ r.jsx(be, { label: "Edit", position: "right", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { onClick: s, variant: "light", color: "blue", sx: {
28784
28831
  position: "absolute",
28785
28832
  top: 0,
28786
28833
  bottom: 0,
@@ -28792,7 +28839,7 @@ function xM({
28792
28839
  ] });
28793
28840
  }
28794
28841
  const mM = k(() => {
28795
- const e = oe(), t = le(), n = Be((i) => () => t.views.setIDOfVIE(i), [t]), s = (i) => {
28842
+ const e = le(), t = ce(), n = Be((i) => () => t.views.setIDOfVIE(i), [t]), s = (i) => {
28796
28843
  e.editor.open(["_VIEWS_", i]);
28797
28844
  };
28798
28845
  return /* @__PURE__ */ r.jsxs(z, { sx: {
@@ -28810,7 +28857,7 @@ const mM = k(() => {
28810
28857
  }, children: "Add a View" })
28811
28858
  ] });
28812
28859
  }), fM = k(() => {
28813
- const e = oe(), t = le(), n = () => {
28860
+ const e = le(), t = ce(), n = () => {
28814
28861
  if (!t.queries.firstID) {
28815
28862
  e.editor.open(["_QUERIES_", ""]);
28816
28863
  return;
@@ -28840,13 +28887,13 @@ const mM = k(() => {
28840
28887
  borderColor: "#e9ecef"
28841
28888
  }
28842
28889
  }, children: [
28843
- /* @__PURE__ */ r.jsx(ge, { label: "Filters", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
28890
+ /* @__PURE__ */ r.jsx(be, { label: "Filters", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
28844
28891
  height: "30px"
28845
28892
  }, onClick: s, children: /* @__PURE__ */ r.jsx(_l, { size: 18 }) }) }),
28846
- /* @__PURE__ */ r.jsx(ge, { label: "Queries", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
28893
+ /* @__PURE__ */ r.jsx(be, { label: "Queries", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
28847
28894
  height: "30px"
28848
28895
  }, onClick: n, children: /* @__PURE__ */ r.jsx(us, { size: 18 }) }) }),
28849
- /* @__PURE__ */ r.jsx(ge, { label: "Interactions Viewer", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
28896
+ /* @__PURE__ */ r.jsx(be, { label: "Interactions Viewer", withinPortal: !0, children: /* @__PURE__ */ r.jsx(W, { variant: "default", radius: 0, size: "md", sx: {
28850
28897
  height: "30px"
28851
28898
  }, onClick: o, children: /* @__PURE__ */ r.jsx(mp, { size: 18 }) }) })
28852
28899
  ] }),
@@ -28951,7 +28998,7 @@ const mM = k(() => {
28951
28998
  value: e,
28952
28999
  onChange: t
28953
29000
  }) => {
28954
- const n = oe(), s = le(), i = M.useMemo(() => s.queries.options, [s.queries.current]), a = i.length === 0, o = (l) => {
29001
+ const n = le(), s = ce(), i = M.useMemo(() => s.queries.options, [s.queries.current]), a = i.length === 0, o = (l) => {
28955
29002
  n.editor.setPath(["_QUERIES_", l]);
28956
29003
  };
28957
29004
  return /* @__PURE__ */ r.jsx(L, { label: /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -29199,7 +29246,7 @@ const mM = k(() => {
29199
29246
  }], MM = k(function({
29200
29247
  filter: t
29201
29248
  }) {
29202
- const n = le(), s = M.useMemo(() => IM[t.type], [t.type]);
29249
+ const n = ce(), s = M.useMemo(() => IM[t.type], [t.type]);
29203
29250
  return /* @__PURE__ */ r.jsxs(b, { grow: !0, spacing: 20, align: "top", children: [
29204
29251
  /* @__PURE__ */ r.jsxs(z, { sx: {
29205
29252
  maxWidth: "600px"
@@ -29239,7 +29286,7 @@ const mM = k(() => {
29239
29286
  }), LM = k(({
29240
29287
  id: e
29241
29288
  }) => {
29242
- const t = Et(), n = oe(), s = le();
29289
+ const t = Et(), n = le(), s = ce();
29243
29290
  if (e === "")
29244
29291
  return null;
29245
29292
  const i = s.filters.findByID(e);
@@ -29280,7 +29327,7 @@ const mM = k(() => {
29280
29327
  }, children: /* @__PURE__ */ r.jsx(MM, { filter: i }) })
29281
29328
  ] });
29282
29329
  }), AM = k(() => {
29283
- const [e, t] = q([]), n = oe(), s = (c) => {
29330
+ const [e, t] = q([]), n = le(), s = (c) => {
29284
29331
  n.editor.setPath(["_FILTERS_", c]);
29285
29332
  }, i = () => {
29286
29333
  n.content.filters.downloadSchema(e);
@@ -29351,7 +29398,7 @@ const mM = k(() => {
29351
29398
  ] }) }) })
29352
29399
  ] });
29353
29400
  }), RM = k(() => {
29354
- const e = le(), [t, n] = q(() => JSON.stringify(e.mock_context.current, null, 4)), s = () => {
29401
+ const e = ce(), [t, n] = q(() => JSON.stringify(e.mock_context.current, null, 4)), s = () => {
29355
29402
  try {
29356
29403
  e.mock_context.replace(JSON.parse(t));
29357
29404
  } catch (a) {
@@ -29398,7 +29445,7 @@ const mM = k(() => {
29398
29445
  position: "absolute",
29399
29446
  right: 12,
29400
29447
  top: 0
29401
- }, disabled: !i, onClick: s, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
29448
+ }, disabled: !i, onClick: s, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
29402
29449
  ] })
29403
29450
  ] });
29404
29451
  }), EM = k(() => {
@@ -29681,7 +29728,7 @@ const qM = [{
29681
29728
  ] })
29682
29729
  ] });
29683
29730
  }), HM = k(function() {
29684
- const t = oe(), n = le(), {
29731
+ const t = le(), n = ce(), {
29685
29732
  panel: s
29686
29733
  } = It(), [i, a] = q(!1), o = (l) => {
29687
29734
  t.editor.setPath(["_QUERIES_", l]);
@@ -29690,10 +29737,10 @@ const qM = [{
29690
29737
  /* @__PURE__ */ r.jsx(mh, { opened: i, onClose: () => a(!1), title: "Choose queries", padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(K.Group, { value: [...s.queryIDs], onChange: s.setQueryIDs, children: /* @__PURE__ */ r.jsx(w, { spacing: "lg", children: n.queries.options.map((l) => /* @__PURE__ */ r.jsx(K, { label: l.label, value: l.value }, l.value)) }) }) }),
29691
29738
  /* @__PURE__ */ r.jsxs(w, { spacing: 6, children: [
29692
29739
  /* @__PURE__ */ r.jsx(b, { position: "right", children: /* @__PURE__ */ r.jsx(C, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(fp, { size: 16 }), onClick: () => a(!0), children: "Click me to choose queries for this panel" }) }),
29693
- s.queryIDs.length === 1 && /* @__PURE__ */ r.jsx(yi, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(ge, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(ii, { size: 16 }) }) }) }),
29740
+ s.queryIDs.length === 1 && /* @__PURE__ */ r.jsx(yi, { id: s.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(be, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(s.queryIDs[0]), children: /* @__PURE__ */ r.jsx(ii, { size: 16 }) }) }) }),
29694
29741
  s.queryIDs.length > 1 && /* @__PURE__ */ r.jsxs(f, { defaultValue: s.queryIDs[0], children: [
29695
29742
  /* @__PURE__ */ r.jsx(f.List, { children: s.queries.map((l) => /* @__PURE__ */ r.jsx(f.Tab, { value: l.id, children: l.name }, l.id)) }),
29696
- s.queries.map((l) => /* @__PURE__ */ r.jsx(f.Panel, { value: l.id, children: /* @__PURE__ */ r.jsx(yi, { id: l.id, moreActions: /* @__PURE__ */ r.jsx(ge, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(l.id), children: /* @__PURE__ */ r.jsx(ii, { size: 16 }) }) }) }) }, l.id))
29743
+ s.queries.map((l) => /* @__PURE__ */ r.jsx(f.Panel, { value: l.id, children: /* @__PURE__ */ r.jsx(yi, { id: l.id, moreActions: /* @__PURE__ */ r.jsx(be, { label: "Open this query", children: /* @__PURE__ */ r.jsx(W, { variant: "subtle", color: "blue", onClick: () => o(l.id), children: /* @__PURE__ */ r.jsx(ii, { size: 16 }) }) }) }) }, l.id))
29697
29744
  ] })
29698
29745
  ] })
29699
29746
  ] });
@@ -29823,7 +29870,7 @@ function XM({
29823
29870
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29824
29871
  /* @__PURE__ */ r.jsxs(b, { position: "left", ref: s, children: [
29825
29872
  /* @__PURE__ */ r.jsx(j, { children: e }),
29826
- /* @__PURE__ */ r.jsx(W, { mr: 5, variant: "filled", color: "blue", disabled: !c, onClick: d, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
29873
+ /* @__PURE__ */ r.jsx(W, { mr: 5, variant: "filled", color: "blue", disabled: !c, onClick: d, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
29827
29874
  ] }),
29828
29875
  /* @__PURE__ */ r.jsxs(b, { children: [
29829
29876
  i.map((p, x) => /* @__PURE__ */ r.jsx(ji, { value: p, onChange: (y) => {
@@ -29852,7 +29899,7 @@ function ZM({
29852
29899
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29853
29900
  /* @__PURE__ */ r.jsxs(b, { position: "left", ref: i, children: [
29854
29901
  /* @__PURE__ */ r.jsx(j, { children: e }),
29855
- /* @__PURE__ */ r.jsx(W, { mr: 5, variant: "filled", color: "blue", disabled: !d, onClick: u, children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) })
29902
+ /* @__PURE__ */ r.jsx(W, { mr: 5, variant: "filled", color: "blue", disabled: !d, onClick: u, children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) })
29856
29903
  ] }),
29857
29904
  /* @__PURE__ */ r.jsxs(b, { children: [
29858
29905
  a.map((h, p) => /* @__PURE__ */ r.jsx(D, { type: s, value: h, onChange: (x) => {
@@ -30022,7 +30069,7 @@ const lL = k(({
30022
30069
  s(e);
30023
30070
  }, [e]);
30024
30071
  const i = oL(), a = e !== n;
30025
- return /* @__PURE__ */ r.jsx(L, { label: "Visualization", value: n, searchable: !0, onChange: s, data: i, rightSection: /* @__PURE__ */ r.jsx(W, { disabled: !a, onClick: () => t(n), children: /* @__PURE__ */ r.jsx(pe, { size: 20 }) }), maxDropdownHeight: 600 });
30072
+ return /* @__PURE__ */ r.jsx(L, { label: "Visualization", value: n, searchable: !0, onChange: s, data: i, rightSection: /* @__PURE__ */ r.jsx(W, { disabled: !a, onClick: () => t(n), children: /* @__PURE__ */ r.jsx(xe, { size: 20 }) }), maxDropdownHeight: 600 });
30026
30073
  }), Yo = [];
30027
30074
  function cL(e, t) {
30028
30075
  try {
@@ -30104,7 +30151,7 @@ const uL = k(() => {
30104
30151
  panel: e,
30105
30152
  sourceViewID: t
30106
30153
  }) => {
30107
- const n = le(), [s, i] = q(t);
30154
+ const n = ce(), [s, i] = q(t);
30108
30155
  O(() => {
30109
30156
  i(t);
30110
30157
  }, [t]);
@@ -30116,7 +30163,7 @@ const uL = k(() => {
30116
30163
  };
30117
30164
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30118
30165
  /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: "blue", onClick: o, leftIcon: /* @__PURE__ */ r.jsx(Sl, { size: 14 }), children: "Move into Another View" }),
30119
- /* @__PURE__ */ r.jsx(fe, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { sx: {
30166
+ /* @__PURE__ */ r.jsx(ge, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { sx: {
30120
30167
  maxHeight: "calc(100vh - 185px)",
30121
30168
  overflow: "hidden"
30122
30169
  }, children: [
@@ -30178,7 +30225,7 @@ function xL(e) {
30178
30225
  const mL = k(({
30179
30226
  panel: e
30180
30227
  }) => {
30181
- const t = Et(), n = oe(), s = le(), [i, a] = q("Data"), o = e.queries, c = xL(e.viz.type) && e.dataLoading, d = c || e.queryErrors.length > 0 || e.queryStateMessages !== "" || o.length === 0, u = n.editor.path[1];
30228
+ const t = Et(), n = le(), s = ce(), [i, a] = q("Data"), o = e.queries, c = xL(e.viz.type) && e.dataLoading, d = c || e.queryErrors.length > 0 || e.queryStateMessages !== "" || o.length === 0, u = n.editor.path[1];
30182
30229
  O(() => {
30183
30230
  a((x) => d && x === "Visualization" ? "Data" : x);
30184
30231
  }, [e.id, d]);
@@ -30220,8 +30267,8 @@ const mL = k(({
30220
30267
  /* @__PURE__ */ r.jsxs(f.List, { children: [
30221
30268
  /* @__PURE__ */ r.jsx(f.Tab, { value: "Data", disabled: c, children: "Data" }),
30222
30269
  /* @__PURE__ */ r.jsx(f.Tab, { value: "Panel", children: "Panel" }),
30223
- /* @__PURE__ */ r.jsx(f.Tab, { value: "Variables", disabled: d, children: /* @__PURE__ */ r.jsx(ge, { label: "Requires data", disabled: !d, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(j, { children: "Variables" }) }) }),
30224
- /* @__PURE__ */ r.jsx(f.Tab, { value: "Visualization", disabled: d, children: /* @__PURE__ */ r.jsx(ge, { label: "Requires data", disabled: !d, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(j, { children: "Visualization" }) }) }),
30270
+ /* @__PURE__ */ r.jsx(f.Tab, { value: "Variables", disabled: d, children: /* @__PURE__ */ r.jsx(be, { label: "Requires data", disabled: !d, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(j, { children: "Variables" }) }) }),
30271
+ /* @__PURE__ */ r.jsx(f.Tab, { value: "Visualization", disabled: d, children: /* @__PURE__ */ r.jsx(be, { label: "Requires data", disabled: !d, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(j, { children: "Visualization" }) }) }),
30225
30272
  /* @__PURE__ */ r.jsx(f.Tab, { value: "Interactions", children: "Interactions" })
30226
30273
  ] }),
30227
30274
  /* @__PURE__ */ r.jsxs(f.Panel, { value: "Data", children: [
@@ -30238,7 +30285,7 @@ const mL = k(({
30238
30285
  viewID: e,
30239
30286
  panelID: t
30240
30287
  }) => {
30241
- const n = le();
30288
+ const n = ce();
30242
30289
  if (!n.views.findByID(e))
30243
30290
  return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
30244
30291
  "View by ID[",
@@ -30252,7 +30299,7 @@ const mL = k(({
30252
30299
  "] is not found"
30253
30300
  ] });
30254
30301
  }), gL = k(() => {
30255
- const [e, t] = q([]), n = Et(), s = oe(), i = (h) => {
30302
+ const [e, t] = q([]), n = Et(), s = le(), i = (h) => {
30256
30303
  s.editor.setPath(["_QUERIES_", h]);
30257
30304
  }, a = () => {
30258
30305
  n.openConfirmModal({
@@ -30359,7 +30406,7 @@ const mL = k(({
30359
30406
  }), bL = (e) => {
30360
30407
  const {
30361
30408
  queryModel: t
30362
- } = e, n = oe(), s = le(), a = s.findQueryUsage(t.id).length > 0, o = Et(), l = () => {
30409
+ } = e, n = le(), s = ce(), a = s.findQueryUsage(t.id).length > 0, o = Et(), l = () => {
30363
30410
  o.openConfirmModal({
30364
30411
  title: "Delete this query?",
30365
30412
  labels: {
@@ -30376,7 +30423,7 @@ const mL = k(({
30376
30423
  zIndex: 320
30377
30424
  });
30378
30425
  };
30379
- return a ? /* @__PURE__ */ r.jsx(ge, { label: "Can't delete this query for it's being used, check out Usage tab for details", withArrow: !0, events: {
30426
+ return a ? /* @__PURE__ */ r.jsx(be, { label: "Can't delete this query for it's being used, check out Usage tab for details", withArrow: !0, events: {
30380
30427
  hover: !0,
30381
30428
  focus: !1,
30382
30429
  touch: !1
@@ -30397,14 +30444,14 @@ const mL = k(({
30397
30444
  /* @__PURE__ */ r.jsx(eo, { width: t, height: n, radius: "xs" })
30398
30445
  ] }), or = ({
30399
30446
  value: e
30400
- }) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(ge, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(W, { children: /* @__PURE__ */ r.jsx(Tn, { size: 14 }) }) }), jL = ({
30447
+ }) => e === null || e === "" ? null : /* @__PURE__ */ r.jsx(be, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ r.jsx(W, { children: /* @__PURE__ */ r.jsx(Tn, { size: 14 }) }) }), jL = ({
30401
30448
  column: e
30402
30449
  }) => {
30403
30450
  const {
30404
30451
  column_key: t,
30405
30452
  column_key_text: n
30406
30453
  } = e;
30407
- return t ? /* @__PURE__ */ r.jsx(ge, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(bn, { children: t }) }) : null;
30454
+ return t ? /* @__PURE__ */ r.jsx(be, { label: n, disabled: !n, children: /* @__PURE__ */ r.jsx(bn, { children: t }) }) : null;
30408
30455
  }, vL = k(({
30409
30456
  dataSource: e
30410
30457
  }) => {
@@ -30743,7 +30790,7 @@ const TL = k(({
30743
30790
  }) => {
30744
30791
  const [n, s] = q(!1);
30745
30792
  return e.type === "http" ? null : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30746
- /* @__PURE__ */ r.jsx(fe, { opened: n, onClose: () => s(!1), title: /* @__PURE__ */ r.jsxs(b, { position: "apart", sx: {
30793
+ /* @__PURE__ */ r.jsx(ge, { opened: n, onClose: () => s(!1), title: /* @__PURE__ */ r.jsxs(b, { position: "apart", sx: {
30747
30794
  flexGrow: 1
30748
30795
  }, children: [
30749
30796
  /* @__PURE__ */ r.jsx(j, { fw: 500, children: "Explorer Data Source" }),
@@ -30766,7 +30813,7 @@ const TL = k(({
30766
30813
  }
30767
30814
  }, ...t, children: "See Table Structure" })
30768
30815
  ] });
30769
- }), FL = ue(({
30816
+ }), FL = he(({
30770
30817
  label: e,
30771
30818
  type: t,
30772
30819
  ...n
@@ -30789,7 +30836,7 @@ const TL = k(({
30789
30836
  value: e,
30790
30837
  onChange: t
30791
30838
  }) => {
30792
- const n = oe(), {
30839
+ const n = le(), {
30793
30840
  data: s = [],
30794
30841
  loading: i
30795
30842
  } = yn(Ai, {
@@ -30834,7 +30881,7 @@ const TL = k(({
30834
30881
  }
30835
30882
  }
30836
30883
  }, disabled: i, value: e.key, onChange: l });
30837
- }), Xo = ue((e, t) => {
30884
+ }), Xo = he((e, t) => {
30838
30885
  const {
30839
30886
  label: n,
30840
30887
  description: s,
@@ -30888,7 +30935,7 @@ function PL({
30888
30935
  ] });
30889
30936
  }
30890
30937
  const VL = k(() => {
30891
- const t = [...oe().globalSQLSnippets.list];
30938
+ const t = [...le().globalSQLSnippets.list];
30892
30939
  return t.length === 0 ? null : /* @__PURE__ */ r.jsxs(We, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
30893
30940
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
30894
30941
  /* @__PURE__ */ r.jsx("th", { children: "Key" }),
@@ -30922,7 +30969,7 @@ WHERE
30922
30969
  showSQLSnippets: t = !0,
30923
30970
  sx: n = {}
30924
30971
  }) {
30925
- const s = oe(), i = le(), a = s.context.current, o = (() => {
30972
+ const s = le(), i = ce(), a = s.context.current, o = (() => {
30926
30973
  const l = {
30927
30974
  context: {
30928
30975
  ...i.mock_context.current,
@@ -30955,7 +31002,7 @@ WHERE
30955
31002
  }), Da = k(() => {
30956
31003
  const [e, t] = q(!1);
30957
31004
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30958
- /* @__PURE__ */ r.jsx(fe, { opened: e, onClose: () => t(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(Tu, {}) }),
31005
+ /* @__PURE__ */ r.jsx(ge, { opened: e, onClose: () => t(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(Tu, {}) }),
30959
31006
  /* @__PURE__ */ r.jsx(C, { variant: "subtle", onClick: () => t(!0), px: 16, styles: {
30960
31007
  inner: {
30961
31008
  justifyContent: "flex-start"
@@ -30985,7 +31032,7 @@ WHERE
30985
31032
  queryID: e,
30986
31033
  usage: t
30987
31034
  }) => {
30988
- const n = oe().editor, s = (a) => {
31035
+ const n = le().editor, s = (a) => {
30989
31036
  if (a.type === "filter") {
30990
31037
  n.setPath(["_FILTERS_", a.id]);
30991
31038
  return;
@@ -31060,7 +31107,7 @@ WHERE
31060
31107
  }
31061
31108
  }, children: /* @__PURE__ */ r.jsx(Ti, { size: 12 }) }), children: o.key }, o.key)) })
31062
31109
  ] }, i)) }) })
31063
- ] }) : /* @__PURE__ */ r.jsx(ge, { label: "This query has no dependency", children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: "gray", leftIcon: /* @__PURE__ */ r.jsx(vp, { size: 16, style: {
31110
+ ] }) : /* @__PURE__ */ r.jsx(be, { label: "This query has no dependency", children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: "gray", leftIcon: /* @__PURE__ */ r.jsx(vp, { size: 16, style: {
31064
31111
  transform: "rotate(180deg)"
31065
31112
  } }), sx: {
31066
31113
  transform: "none !important"
@@ -31152,7 +31199,7 @@ WHERE
31152
31199
  }, XL = k(({
31153
31200
  queryModel: e
31154
31201
  }) => {
31155
- const t = le();
31202
+ const t = ce();
31156
31203
  return e.isTransform ? /* @__PURE__ */ r.jsxs(w, { py: 20, px: 20, sx: {
31157
31204
  height: "100%"
31158
31205
  }, children: [
@@ -31170,7 +31217,7 @@ WHERE
31170
31217
  }, JL = k(({
31171
31218
  queryModel: e
31172
31219
  }) => {
31173
- const t = le(), n = T(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [s, i] = q(n);
31220
+ const t = ce(), n = T(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [s, i] = q(n);
31174
31221
  O(() => {
31175
31222
  i((l) => l !== "Configurations" && n === "Configurations" ? "Configurations" : l);
31176
31223
  }, [n]);
@@ -31183,8 +31230,8 @@ WHERE
31183
31230
  e.typedAsSQL && /* @__PURE__ */ r.jsx(f.Tab, { value: "SQL", children: "Request" }),
31184
31231
  e.typedAsHTTP && /* @__PURE__ */ r.jsx(f.Tab, { value: "HTTP", children: "Request" }),
31185
31232
  e.isTransform && /* @__PURE__ */ r.jsx(f.Tab, { value: "Transform", children: "Transform" }),
31186
- /* @__PURE__ */ r.jsx(f.Tab, { value: "Data", disabled: !e.canPreviewData, children: /* @__PURE__ */ r.jsx(ge, { label: e.guideToPreviewData, disabled: e.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: "Data" }) }) }),
31187
- /* @__PURE__ */ r.jsx(f.Tab, { value: "Usage", disabled: o, children: /* @__PURE__ */ r.jsx(ge, { label: "This query is not used for any filter or panel", disabled: !o, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: "Usage" }) }) })
31233
+ /* @__PURE__ */ r.jsx(f.Tab, { value: "Data", disabled: !e.canPreviewData, children: /* @__PURE__ */ r.jsx(be, { label: e.guideToPreviewData, disabled: e.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: "Data" }) }) }),
31234
+ /* @__PURE__ */ r.jsx(f.Tab, { value: "Usage", disabled: o, children: /* @__PURE__ */ r.jsx(be, { label: "This query is not used for any filter or panel", disabled: !o, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: "Usage" }) }) })
31188
31235
  ] }),
31189
31236
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx($L, { queryModel: e }) }),
31190
31237
  e.typedAsSQL && /* @__PURE__ */ r.jsx(f.Panel, { value: "SQL", sx: nr, children: /* @__PURE__ */ r.jsx(w, { sx: {
@@ -31208,7 +31255,7 @@ WHERE
31208
31255
  }), ZL = k(({
31209
31256
  id: e
31210
31257
  }) => {
31211
- const n = le().queries.findByID(e);
31258
+ const n = ce().queries.findByID(e);
31212
31259
  return e === "" ? null : n ? /* @__PURE__ */ r.jsx(JL, { queryModel: n }) : /* @__PURE__ */ r.jsx(j, { size: 14, color: "red", children: "Invalid Query ID" });
31213
31260
  }), eA = k(({
31214
31261
  value: e
@@ -31261,7 +31308,7 @@ WHERE
31261
31308
  sx: {
31262
31309
  flexGrow: "1 !important"
31263
31310
  },
31264
- rightSection: /* @__PURE__ */ r.jsx(W, { color: "blue", variant: "subtle", onClick: l, disabled: !c || d, children: /* @__PURE__ */ r.jsx(pe, { size: 16 }) }),
31311
+ rightSection: /* @__PURE__ */ r.jsx(W, { color: "blue", variant: "subtle", onClick: l, disabled: !c || d, children: /* @__PURE__ */ r.jsx(xe, { size: 16 }) }),
31265
31312
  error: d
31266
31313
  }
31267
31314
  ),
@@ -31284,7 +31331,7 @@ WHERE
31284
31331
  position: "absolute",
31285
31332
  top: 0,
31286
31333
  right: 10
31287
- }, children: /* @__PURE__ */ r.jsx(pe, { size: 18 }) })
31334
+ }, children: /* @__PURE__ */ r.jsx(xe, { size: 18 }) })
31288
31335
  ] }),
31289
31336
  /* @__PURE__ */ r.jsx(f.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r.jsx(Ia, { height: "100%", value: u, onChange: h, defaultLanguage: "sql", theme: "sql-dark" }) }),
31290
31337
  /* @__PURE__ */ r.jsx(f.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r.jsx(eA, { value: u }) })
@@ -31293,7 +31340,7 @@ WHERE
31293
31340
  }), nA = k(({
31294
31341
  id: e
31295
31342
  }) => {
31296
- const t = oe(), n = le(), s = T(() => n.sqlSnippets.findByKey(e), [e]);
31343
+ const t = le(), n = ce(), s = T(() => n.sqlSnippets.findByKey(e), [e]);
31297
31344
  if (!e)
31298
31345
  return null;
31299
31346
  if (!s)
@@ -31311,7 +31358,7 @@ WHERE
31311
31358
  };
31312
31359
  return /* @__PURE__ */ r.jsx(tA, { item: s, remove: a, onKeyChanged: o });
31313
31360
  }), rA = k(() => {
31314
- const [e, t] = q([]), n = Et(), s = oe(), i = (h) => {
31361
+ const [e, t] = q([]), n = Et(), s = le(), i = (h) => {
31315
31362
  s.editor.setPath(["_SQL_SNIPPETS_", h]);
31316
31363
  }, a = () => {
31317
31364
  n.openConfirmModal({
@@ -31407,7 +31454,7 @@ WHERE
31407
31454
  }), sA = k(({
31408
31455
  id: e
31409
31456
  }) => {
31410
- const t = Et(), n = oe(), s = le();
31457
+ const t = Et(), n = le(), s = ce();
31411
31458
  if (e === "")
31412
31459
  return null;
31413
31460
  const i = s.views.findByID(e);
@@ -31478,10 +31525,10 @@ function xA(e) {
31478
31525
  const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31479
31526
  height: "100%"
31480
31527
  }, p: "sm", children: /* @__PURE__ */ r.jsx(Tu, {}) })), fA = k(() => {
31481
- const e = oe().editor, t = e.path;
31528
+ const e = le().editor, t = e.path;
31482
31529
  return iA(t) ? /* @__PURE__ */ r.jsx(mA, {}) : aA(t) ? /* @__PURE__ */ r.jsx(RM, {}) : oA(t) ? /* @__PURE__ */ r.jsx(AM, {}) : lA(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(LM, { id: t[1] }) }) : cA(t) ? /* @__PURE__ */ r.jsx(rA, {}) : dA(t) ? /* @__PURE__ */ r.jsx(nA, { id: t[1] }) : hA(t) ? /* @__PURE__ */ r.jsx(gL, {}) : uA(t) ? /* @__PURE__ */ r.jsx(ZL, { id: t[1] }) : pA(t) ? /* @__PURE__ */ r.jsx(z, { p: "xs", pl: 20, children: /* @__PURE__ */ r.jsx(sA, { id: t[1] }) }) : xA(t) ? /* @__PURE__ */ r.jsx(fL, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r.jsx(z, { children: e.path });
31483
31530
  }), gA = k(() => /* @__PURE__ */ r.jsx(fA, {})), bA = k(() => {
31484
- const e = oe(), t = () => {
31531
+ const e = le(), t = () => {
31485
31532
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
31486
31533
  id: n,
31487
31534
  key: n,
@@ -31505,7 +31552,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31505
31552
  }), yA = k(({
31506
31553
  parentID: e
31507
31554
  }) => {
31508
- const t = le();
31555
+ const t = ce();
31509
31556
  if (!e)
31510
31557
  return null;
31511
31558
  const n = t.views.findByID(e);
@@ -31518,7 +31565,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31518
31565
  }
31519
31566
  }, children: "Add a Panel" });
31520
31567
  }), jA = k(() => {
31521
- const e = oe(), t = () => {
31568
+ const e = le(), t = () => {
31522
31569
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
31523
31570
  id: n,
31524
31571
  name: n,
@@ -31537,7 +31584,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31537
31584
  }
31538
31585
  }, children: "Add a Query" });
31539
31586
  }), vA = k(() => {
31540
- const e = oe(), t = () => {
31587
+ const e = le(), t = () => {
31541
31588
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), s = {
31542
31589
  key: n,
31543
31590
  value: ""
@@ -31553,7 +31600,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31553
31600
  }
31554
31601
  }, children: "Add a SQL Snippet" });
31555
31602
  }), wA = k(() => {
31556
- const e = le();
31603
+ const e = ce();
31557
31604
  return /* @__PURE__ */ r.jsx(C, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(ft, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
31558
31605
  width: "100%",
31559
31606
  borderRadius: 0
@@ -31563,7 +31610,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31563
31610
  }
31564
31611
  }, children: "Add a View" });
31565
31612
  }), _A = k(() => {
31566
- const e = oe();
31613
+ const e = le();
31567
31614
  return /* @__PURE__ */ r.jsx(C, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(hs, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_QUERIES_"]), sx: {
31568
31615
  width: "100%",
31569
31616
  borderRadius: 0,
@@ -31574,7 +31621,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31574
31621
  }
31575
31622
  }, children: "Manage Queries" });
31576
31623
  }), SA = k(() => {
31577
- const e = oe();
31624
+ const e = le();
31578
31625
  return /* @__PURE__ */ r.jsx(C, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(hs, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_SQL_SNIPPETS_"]), sx: {
31579
31626
  width: "100%",
31580
31627
  borderRadius: 0,
@@ -31585,7 +31632,7 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31585
31632
  }
31586
31633
  }, children: "Manage SQL Snippets" });
31587
31634
  }), CA = k(() => {
31588
- const e = oe();
31635
+ const e = le();
31589
31636
  return /* @__PURE__ */ r.jsx(C, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(hs, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_FILTERS_"]), sx: {
31590
31637
  width: "100%",
31591
31638
  borderRadius: 0,
@@ -31602,17 +31649,17 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31602
31649
  option: e
31603
31650
  }) => {
31604
31651
  var d;
31605
- const t = oe().editor, n = t.isOptionActive, s = n(t.path, e), i = t.isOptionOpened, a = t.navigate, o = i(e), [l, c] = q(o);
31652
+ const t = le().editor, n = t.isOptionActive, s = n(t.path, e), i = t.isOptionOpened, a = t.navigate, o = i(e), [l, c] = q(o);
31606
31653
  return O(() => {
31607
31654
  c(o);
31608
31655
  }, [o]), /* @__PURE__ */ r.jsx(ri, { active: s, defaultOpened: o, opened: l, onChange: c, label: e.label, onClick: () => a(e), icon: e.Icon ? /* @__PURE__ */ r.jsx(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((u) => u._type === "ACTION" ? /* @__PURE__ */ r.jsx(kA, { action_type: u._action_type, parentID: u.parentID }, `_ADD_${u.value}_`) : /* @__PURE__ */ r.jsx(Du, { option: u }, u.value)) }, e.label);
31609
31656
  }), TA = k(() => {
31610
- const e = oe();
31657
+ const e = le();
31611
31658
  return /* @__PURE__ */ r.jsx(z, { sx: {
31612
31659
  position: "relative"
31613
31660
  }, children: e.editor.navOptions.map((t) => /* @__PURE__ */ r.jsx(Du, { option: t }, t.value)) });
31614
31661
  }), DA = k(() => {
31615
- const e = oe();
31662
+ const e = le();
31616
31663
  return /* @__PURE__ */ r.jsxs(Nt, { p: 0, width: {
31617
31664
  base: 220,
31618
31665
  xs: 220,
@@ -31662,8 +31709,8 @@ const mA = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
31662
31709
  height: "100vh"
31663
31710
  }
31664
31711
  }, zA = k(() => {
31665
- const e = oe().editor;
31666
- return /* @__PURE__ */ r.jsx(fe, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
31712
+ const e = le().editor;
31713
+ return /* @__PURE__ */ r.jsx(ge, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
31667
31714
  duration: 0
31668
31715
  }, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
31669
31716
  body: {
@@ -31749,7 +31796,7 @@ const AA = {
31749
31796
  }, children: x.content.views.visibleViews.map((F) => /* @__PURE__ */ r.jsx(HI, { view: F }, F.id)) }) }),
31750
31797
  /* @__PURE__ */ r.jsx(zA, {})
31751
31798
  ] }) }) }) }) }) }) });
31752
- }, MR = k(ue(RA));
31799
+ }, MR = k(he(RA));
31753
31800
  const Iu = m.model({
31754
31801
  id: m.string,
31755
31802
  name: m.string,
@@ -32105,8 +32152,8 @@ export {
32105
32152
  TR as initialDashboardContent,
32106
32153
  ac as useDashboardContext,
32107
32154
  Vm as useDashboardThemeContext,
32108
- le as useEditContentModelContext,
32109
- oe as useEditDashboardContext,
32155
+ ce as useEditContentModelContext,
32156
+ le as useEditDashboardContext,
32110
32157
  It as useEditPanelContext,
32111
32158
  Bm as useFullScreenPanelContext,
32112
32159
  II as usePanelFullScreen,