@devtable/dashboard 10.50.0 → 10.51.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.
@@ -2,15 +2,15 @@ var Bu = Object.defineProperty;
2
2
  var qu = (t, e, n) => e in t ? Bu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var O = (t, e, n) => (qu(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import L, { useState as V, useEffect as E, useCallback as Be, useMemo as T, forwardRef as de, createElement as Yr, useContext as Ht, useRef as Xr, createContext as Uo, memo as Wu } from "react";
5
- import { Box as M, Select as A, Stack as w, Text as j, Group as b, TextInput as I, Button as C, Switch as Ne, NumberInput as K, Divider as z, Table as Ze, ActionIcon as B, MultiSelect as er, Paper as Gu, Code as Ha, Modal as me, Tabs as m, LoadingOverlay as jn, Alert as xi, ColorSwatch as Xs, Overlay as Rt, Checkbox as U, Center as vn, useMantineTheme as Ko, CheckIcon as Qu, MANTINE_SIZES as Hu, SimpleGrid as en, Tooltip as ge, NativeSelect as Yo, SegmentedControl as Uu, HoverCard as $e, Anchor as Js, Textarea as Ku, Collapse as mi, Mark as Yu, ColorInput as fi, createStyles as cr, Popover as Rs, Slider as Xu, Flex as Ut, Badge as tr, CloseButton as Xo, Menu as ee, Affix as Ju, Header as Zu, List as zt, FileInput as eh, ThemeIcon as Es, UnstyledButton as th, Navbar as Nt, JsonInput as Jo, Pagination as Zo, Drawer as nh, Accordion as _r, Radio as Ua, Skeleton as Ka, NavLink as Zs, AppShell as el } from "@mantine/core";
5
+ import { Box as M, Select as A, Stack as w, Text as j, Group as b, TextInput as I, Button as C, Switch as Ne, NumberInput as K, Divider as z, Table as Ze, ActionIcon as B, MultiSelect as er, Paper as Gu, Code as Ha, Modal as me, Tabs as m, LoadingOverlay as jn, Alert as xi, ColorSwatch as Xs, Overlay as Rt, Checkbox as U, Center as vn, useMantineTheme as Ko, CheckIcon as Qu, MANTINE_SIZES as Hu, SimpleGrid as en, Tooltip as ge, NativeSelect as Yo, SegmentedControl as Uu, HoverCard as Fe, Anchor as Js, Textarea as Ku, Collapse as mi, Mark as Yu, ColorInput as fi, createStyles as cr, Popover as Rs, Slider as Xu, Flex as Ut, Badge as tr, CloseButton as Xo, Menu as ee, Affix as Ju, Header as Zu, List as zt, FileInput as eh, ThemeIcon as Es, UnstyledButton as th, Navbar as Nt, JsonInput as Jo, Pagination as Zo, Drawer as nh, Accordion as _r, Radio as Ua, Skeleton as Ka, NavLink as Zs, AppShell as el } from "@mantine/core";
6
6
  import { useModals as Ct, ModalsProvider as tl } from "@mantine/modals";
7
- import { useBoolean as Ee, useCreation as _t, useAsyncEffect as dr, useRequest as gn, useWhyDidYouUpdate as nl, useLatest as Ya, usePrevious as rh } from "ahooks";
7
+ import { useBoolean as Re, useCreation as _t, useAsyncEffect as dr, useRequest as gn, useWhyDidYouUpdate as nl, useLatest as Ya, usePrevious as rh } from "ahooks";
8
8
  import { observable as rl, runInAction as Yn, toJS as Kt, reaction as st, makeAutoObservable as ur } from "mobx";
9
9
  import { observer as k } from "mobx-react-lite";
10
10
  import * as sh from "crypto-js";
11
11
  import ih from "crypto-js";
12
12
  import H from "dayjs";
13
- import _, { unset as ah, get as te, isObject as sl, set as gi, omit as bn, isFunction as oh, orderBy as lh, last as il, defaults as Ce, minBy as ch, maxBy as dh, cloneDeep as Oe, values as al, template as bi, throttle as uh, isEqual as xe, defaultsDeep as fe, keyBy as hh, isEmpty as ol, isNumber as ph, findLastIndex as xh, isString as ll, range as mh, cloneDeepWith as cl, pick as dl } from "lodash";
13
+ import _, { unset as ah, get as te, isObject as sl, set as gi, omit as bn, isFunction as oh, orderBy as lh, last as il, defaults as Ce, minBy as ch, maxBy as dh, cloneDeep as Pe, values as al, template as bi, throttle as uh, isEqual as xe, defaultsDeep as fe, keyBy as hh, isEmpty as ol, isNumber as ph, findLastIndex as xh, isString as ll, range as mh, cloneDeepWith as cl, pick as dl } from "lodash";
14
14
  import Y from "numbro";
15
15
  import * as fh from "d3-array";
16
16
  import { quantile as zr } from "d3-array";
@@ -22,10 +22,10 @@ import nr, { random as Jr } from "chroma-js";
22
22
  import Ue from "echarts-for-react/lib/core";
23
23
  import "echarts-gl";
24
24
  import { GridComponent as ot, VisualMapComponent as hr, LegendComponent as lt, TooltipComponent as ct, DataZoomComponent as Et, MarkLineComponent as Zr, MarkAreaComponent as yi, CalendarComponent as bh } from "echarts/components";
25
- import * as ae from "echarts/core";
25
+ import * as ie from "echarts/core";
26
26
  import { CanvasRenderer as Ke } from "echarts/renderers";
27
27
  import { useForm as je, Controller as g, useFieldArray as ve, useWatch as yh } from "react-hook-form";
28
- import { DeviceFloppy as he, ArrowRight as Fs, Trash as oe, AlertCircle as jh, Recycle as pt, InfoCircle as sn, Plus as ze, Calendar as vh, Refresh as ji, Download as vi, ArrowsMaximize as ul, Settings as hl, Copy as wh, ArrowLeft as _h, ArrowsMove as Ch, ChevronDownRight as Sh, ChevronsUpRight as kh, PlaylistAdd as es, ArrowBarToRight as Th } from "tabler-icons-react";
28
+ import { DeviceFloppy as he, ArrowRight as Fs, Trash as ae, AlertCircle as jh, Recycle as pt, InfoCircle as sn, Plus as De, Calendar as vh, Refresh as ji, Download as vi, ArrowsMaximize as ul, Settings as hl, Copy as wh, ArrowLeft as _h, ArrowsMove as Ch, ChevronDownRight as Sh, ChevronsUpRight as kh, PlaylistAdd as es, ArrowBarToRight as Th } from "tabler-icons-react";
29
29
  import { BoxplotChart as Ih, BarChart as On, LineChart as Vn, ScatterChart as ts, FunnelChart as Dh, HeatmapChart as ns, PieChart as zh, RadarChart as Mh, SunburstChart as Lh } from "echarts/charts";
30
30
  import { IconDeviceFloppy as Yt, IconTextSize as wi, IconInfoCircle as wn, IconPlayerSkipBack as pl, IconRecycle as rs, IconMathFunction as Ah, IconPlus as xt, IconBorderAll as Rh, IconTrash as tn, IconArrowDown as Eh, IconArrowUp as Fh, IconCode as nn, IconCamera as ss, IconShare3 as $h, IconDownload as xl, IconArrowsLeftRight as Ph, IconVariable as ml, IconCodeDots as Oh, IconFilter as fl, IconCopy as Vh, IconDatabase as is, IconBoxMultiple as gl, IconMenu2 as Nh, IconCaretDown as Bh, IconAlertTriangle as _i, IconArrowLeft as qh, IconPlaylistAdd as Ja, IconPointFilled as Ci, IconFileImport as Za, IconCircleDashed as Wh, IconCircleDot as Gh, IconCircleOff as Qh, IconAdjustments as Hh, IconLink as Uh, IconSettings as as, IconArrowCurveRight as ei, IconLine as Kh, IconX as bl, IconEye as yl, IconTable as Yh, IconColumns as Xh, IconAlertCircle as eo, IconVariablePlus as Jh, IconHierarchy as Zh, IconDiscountCheckFilled as ep } from "@tabler/icons-react";
31
31
  import { useClipboard as tp, randomId as yn, useElementSize as rr, useDisclosure as os, useInputState as jl } from "@mantine/hooks";
@@ -58,7 +58,7 @@ import { DatePickerInput as Sp } from "@mantine/dates";
58
58
  import kp, { Option as Tp } from "rc-select";
59
59
  import Ip, { SHOW_PARENT as Dp } from "rc-tree-select";
60
60
  import Ol, { WidthProvider as Vl } from "react-grid-layout";
61
- import { types as f, cast as Mt, getParent as Pe, getRoot as ke, addDisposer as wt, isAlive as no, flow as An, toGenerator as un, clone as zp, getSnapshot as Wt, applySnapshot as Ge, addMiddleware as Mp, getType as Lp, detach as ti, castToSnapshot as Nl } from "mobx-state-tree";
61
+ import { types as f, cast as Mt, getParent as $e, getRoot as Ve, addDisposer as wt, isAlive as no, flow as An, toGenerator as un, clone as zp, getSnapshot as Wt, applySnapshot as Ge, addMiddleware as Mp, getType as Lp, detach as ti, castToSnapshot as Nl } from "mobx-state-tree";
62
62
  import { arrayToTree as Ap } from "performant-array-to-tree";
63
63
  import { AsyncParser as Rp } from "@json2csv/whatwg";
64
64
  import { saveAs as Si } from "file-saver";
@@ -153,23 +153,23 @@ function vx() {
153
153
  {
154
154
  for (var R = arguments.length, $ = new Array(R > 1 ? R - 1 : 0), Q = 1; Q < R; Q++)
155
155
  $[Q - 1] = arguments[Q];
156
- re("error", v, $);
156
+ oe("error", v, $);
157
157
  }
158
158
  }
159
- function re(v, R, $) {
159
+ function oe(v, R, $) {
160
160
  {
161
- var Q = P.ReactDebugCurrentFrame, se = Q.getStackAddendum();
162
- se !== "" && (R += "%s", $ = $.concat([se]));
161
+ var Q = P.ReactDebugCurrentFrame, re = Q.getStackAddendum();
162
+ re !== "" && (R += "%s", $ = $.concat([re]));
163
163
  var pe = $.map(function(Z) {
164
164
  return String(Z);
165
165
  });
166
166
  pe.unshift("Warning: " + R), Function.prototype.apply.call(console[v], console, pe);
167
167
  }
168
168
  }
169
- var be = !1, ne = !1, _e = !1, Te = !1, Me = !1, on;
169
+ var be = !1, ne = !1, _e = !1, ke = !1, ze = !1, on;
170
170
  on = Symbol.for("react.module.reference");
171
171
  function yt(v) {
172
- return !!(typeof v == "string" || typeof v == "function" || v === s || v === a || Me || v === i || v === d || v === u || Te || v === x || be || ne || _e || 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 || ze || v === i || v === d || v === u || ke || v === x || be || ne || _e || 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.
@@ -179,8 +179,8 @@ function vx() {
179
179
  var Q = v.displayName;
180
180
  if (Q)
181
181
  return Q;
182
- var se = R.displayName || R.name || "";
183
- return se !== "" ? $ + "(" + se + ")" : $;
182
+ var re = R.displayName || R.name || "";
183
+ return re !== "" ? $ + "(" + re + ")" : $;
184
184
  }
185
185
  function Wn(v) {
186
186
  return v.displayName || "Context";
@@ -220,7 +220,7 @@ function vx() {
220
220
  var Q = v.displayName || null;
221
221
  return Q !== null ? Q : Pt(v.type) || "Memo";
222
222
  case p: {
223
- var se = v, pe = se._payload, Z = se._init;
223
+ var re = v, pe = re._payload, Z = re._init;
224
224
  try {
225
225
  return Pt(Z(pe));
226
226
  } catch {
@@ -298,8 +298,8 @@ function vx() {
298
298
  if (Ts === void 0)
299
299
  try {
300
300
  throw Error();
301
- } catch (se) {
302
- var Q = se.stack.trim().match(/\n( *(at )?)/);
301
+ } catch (re) {
302
+ var Q = re.stack.trim().match(/\n( *(at )?)/);
303
303
  Ts = Q && Q[1] || "";
304
304
  }
305
305
  return `
@@ -321,7 +321,7 @@ function vx() {
321
321
  }
322
322
  var Q;
323
323
  Is = !0;
324
- var se = Error.prepareStackTrace;
324
+ var re = Error.prepareStackTrace;
325
325
  Error.prepareStackTrace = void 0;
326
326
  var pe;
327
327
  pe = ks.current, ks.current = null, gu();
@@ -361,23 +361,23 @@ function vx() {
361
361
  if (Ot && Q && typeof Ot.stack == "string") {
362
362
  for (var J = Ot.stack.split(`
363
363
  `), We = Q.stack.split(`
364
- `), Se = J.length - 1, Ie = We.length - 1; Se >= 1 && Ie >= 0 && J[Se] !== We[Ie]; )
365
- Ie--;
366
- for (; Se >= 1 && Ie >= 0; Se--, Ie--)
367
- if (J[Se] !== We[Ie]) {
368
- if (Se !== 1 || Ie !== 1)
364
+ `), Se = J.length - 1, Te = We.length - 1; Se >= 1 && Te >= 0 && J[Se] !== We[Te]; )
365
+ Te--;
366
+ for (; Se >= 1 && Te >= 0; Se--, Te--)
367
+ if (J[Se] !== We[Te]) {
368
+ if (Se !== 1 || Te !== 1)
369
369
  do
370
- if (Se--, Ie--, Ie < 0 || J[Se] !== We[Ie]) {
370
+ if (Se--, Te--, Te < 0 || J[Se] !== We[Te]) {
371
371
  var dt = `
372
372
  ` + J[Se].replace(" at new ", " at ");
373
373
  return v.displayName && dt.includes("<anonymous>") && (dt = dt.replace("<anonymous>", v.displayName)), typeof v == "function" && yr.set(v, dt), dt;
374
374
  }
375
- while (Se >= 1 && Ie >= 0);
375
+ while (Se >= 1 && Te >= 0);
376
376
  break;
377
377
  }
378
378
  }
379
379
  } finally {
380
- Is = !1, ks.current = pe, bu(), Error.prepareStackTrace = se;
380
+ Is = !1, ks.current = pe, bu(), Error.prepareStackTrace = re;
381
381
  }
382
382
  var Dn = v ? v.displayName || v.name : "", Qa = Dn ? br(Dn) : "";
383
383
  return typeof v == "function" && yr.set(v, Qa), Qa;
@@ -409,9 +409,9 @@ function vx() {
409
409
  case h:
410
410
  return jr(v.type, R, $);
411
411
  case p: {
412
- var Q = v, se = Q._payload, pe = Q._init;
412
+ var Q = v, re = Q._payload, pe = Q._init;
413
413
  try {
414
- return jr(pe(se), R, $);
414
+ return jr(pe(re), R, $);
415
415
  } catch {
416
416
  }
417
417
  }
@@ -426,7 +426,7 @@ function vx() {
426
426
  } else
427
427
  Ea.setExtraStackFrame(null);
428
428
  }
429
- function wu(v, R, $, Q, se) {
429
+ function wu(v, R, $, Q, re) {
430
430
  {
431
431
  var pe = Function.call.bind(vr);
432
432
  for (var Z in v)
@@ -441,7 +441,7 @@ function vx() {
441
441
  } catch (Se) {
442
442
  J = Se;
443
443
  }
444
- J && !(J instanceof Error) && (wr(se), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", $, Z, typeof J), wr(null)), J instanceof Error && !(J.message in Ra) && (Ra[J.message] = !0, wr(se), q("Failed %s type: %s", $, J.message), wr(null));
444
+ J && !(J instanceof Error) && (wr(re), q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", Q || "React class", $, Z, typeof J), wr(null)), J instanceof Error && !(J.message in Ra) && (Ra[J.message] = !0, wr(re), q("Failed %s type: %s", $, J.message), wr(null));
445
445
  }
446
446
  }
447
447
  }
@@ -520,7 +520,7 @@ function vx() {
520
520
  });
521
521
  }
522
522
  }
523
- var Lu = function(v, R, $, Q, se, pe, Z) {
523
+ var Lu = function(v, R, $, Q, re, pe, Z) {
524
524
  var J = {
525
525
  // This tag allows us to uniquely identify this as a React Element
526
526
  $$typeof: e,
@@ -546,13 +546,13 @@ function vx() {
546
546
  configurable: !1,
547
547
  enumerable: !1,
548
548
  writable: !1,
549
- value: se
549
+ value: re
550
550
  }), Object.freeze && (Object.freeze(J.props), Object.freeze(J)), J;
551
551
  };
552
- function Au(v, R, $, Q, se) {
552
+ function Au(v, R, $, Q, re) {
553
553
  {
554
554
  var pe, Z = {}, J = null, We = null;
555
- $ !== void 0 && ($a($), J = "" + $), Iu(R) && ($a(R.key), J = "" + R.key), Tu(R) && (We = R.ref, Du(R, se));
555
+ $ !== void 0 && ($a($), J = "" + $), Iu(R) && ($a(R.key), J = "" + R.key), Tu(R) && (We = R.ref, Du(R, re));
556
556
  for (pe in R)
557
557
  vr.call(R, pe) && !ku.hasOwnProperty(pe) && (Z[pe] = R[pe]);
558
558
  if (v && v.defaultProps) {
@@ -561,10 +561,10 @@ function vx() {
561
561
  Z[pe] === void 0 && (Z[pe] = Se[pe]);
562
562
  }
563
563
  if (J || We) {
564
- var Ie = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
565
- J && zu(Z, Ie), We && Mu(Z, Ie);
564
+ var Te = typeof v == "function" ? v.displayName || v.name || "Unknown" : v;
565
+ J && zu(Z, Te), We && Mu(Z, Te);
566
566
  }
567
- return Lu(v, J, We, se, Q, Qn.current, Z);
567
+ return Lu(v, J, We, re, Q, Qn.current, Z);
568
568
  }
569
569
  }
570
570
  var Ms = P.ReactCurrentOwner, Va = P.ReactDebugCurrentFrame;
@@ -641,9 +641,9 @@ Check the top-level render call using <` + $ + ">.");
641
641
  else if (As(v))
642
642
  v._store && (v._store.validated = !0);
643
643
  else if (v) {
644
- var se = D(v);
645
- if (typeof se == "function" && se !== v.entries)
646
- for (var pe = se.call(v), Z; !(Z = pe.next()).done; )
644
+ var re = D(v);
645
+ if (typeof re == "function" && re !== v.entries)
646
+ for (var pe = re.call(v), Z; !(Z = pe.next()).done; )
647
647
  As(Z.value) && qa(Z.value, R);
648
648
  }
649
649
  }
@@ -667,8 +667,8 @@ Check the top-level render call using <` + $ + ">.");
667
667
  wu($, v.props, "prop", Q, v);
668
668
  } else if (R.PropTypes !== void 0 && !Ls) {
669
669
  Ls = !0;
670
- var se = Pt(R);
671
- q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", se || "Unknown");
670
+ var re = Pt(R);
671
+ q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", re || "Unknown");
672
672
  }
673
673
  typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
674
674
  }
@@ -685,20 +685,20 @@ Check the top-level render call using <` + $ + ">.");
685
685
  v.ref !== null && (In(v), q("Invalid attribute `ref` supplied to `React.Fragment`."), In(null));
686
686
  }
687
687
  }
688
- function Ga(v, R, $, Q, se, pe) {
688
+ function Ga(v, R, $, Q, re, pe) {
689
689
  {
690
690
  var Z = yt(v);
691
691
  if (!Z) {
692
692
  var J = "";
693
693
  (v === void 0 || typeof v == "object" && v !== null && Object.keys(v).length === 0) && (J += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
694
- var We = Ru(se);
694
+ var We = Ru(re);
695
695
  We ? J += We : J += Na();
696
696
  var Se;
697
697
  v === null ? Se = "null" : Ds(v) ? Se = "array" : v !== void 0 && v.$$typeof === e ? (Se = "<" + (Pt(v.type) || "Unknown") + " />", J = " Did you accidentally export a JSX literal instead of a component?") : Se = typeof v, q("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Se, J);
698
698
  }
699
- var Ie = Au(v, R, $, se, pe);
700
- if (Ie == null)
701
- return Ie;
699
+ var Te = Au(v, R, $, re, pe);
700
+ if (Te == null)
701
+ return Te;
702
702
  if (Z) {
703
703
  var dt = R.children;
704
704
  if (dt !== void 0)
@@ -712,7 +712,7 @@ Check the top-level render call using <` + $ + ">.");
712
712
  else
713
713
  Wa(dt, v);
714
714
  }
715
- return v === s ? $u(Ie) : Fu(Ie), Ie;
715
+ return v === s ? $u(Te) : Fu(Te), Te;
716
716
  }
717
717
  }
718
718
  function Pu(v, R, $) {
@@ -1307,7 +1307,7 @@ class zi {
1307
1307
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1308
1308
  }
1309
1309
  }
1310
- const Ul = "10.50.0", Qx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1310
+ const Ul = "10.51.0", Qx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1311
1311
  __proto__: null,
1312
1312
  version: Ul
1313
1313
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1429,7 +1429,7 @@ class we extends Kx {
1429
1429
  const G = (t, e) => {
1430
1430
  const [n, {
1431
1431
  setFalse: s
1432
- }] = Ee(!0), [i, a] = V();
1432
+ }] = Re(!0), [i, a] = V();
1433
1433
  E(() => (t.getItem(e).then((l) => {
1434
1434
  a(l), s();
1435
1435
  }), t.watchItem(e, (l) => {
@@ -1515,7 +1515,7 @@ const Mi = {
1515
1515
  name: "Z Axis Name"
1516
1516
  }
1517
1517
  };
1518
- ae.use([ot, hr, lt, ct, Ke]);
1518
+ ie.use([ot, hr, lt, ct, Ke]);
1519
1519
  function Jx({
1520
1520
  context: t
1521
1521
  }) {
@@ -1543,10 +1543,10 @@ function Jx({
1543
1543
  min: S,
1544
1544
  max: D
1545
1545
  } = T(() => {
1546
- const q = ch(h, (be) => be[y.columnKey]), re = dh(h, (be) => be[y.columnKey]);
1546
+ const q = ch(h, (be) => be[y.columnKey]), oe = dh(h, (be) => be[y.columnKey]);
1547
1547
  return {
1548
1548
  min: te(q, y.columnKey),
1549
- max: te(re, y.columnKey)
1549
+ max: te(oe, y.columnKey)
1550
1550
  };
1551
1551
  }, [h, y]), P = {
1552
1552
  tooltip: {},
@@ -1584,7 +1584,7 @@ function Jx({
1584
1584
  data: h.map((q) => [q[p.columnKey], q[x.columnKey], q[y.columnKey]])
1585
1585
  }]
1586
1586
  };
1587
- return e ? /* @__PURE__ */ r.jsx(et, { width: s, height: i, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: P, style: pr(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
1587
+ return e ? /* @__PURE__ */ r.jsx(et, { width: s, height: i, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: P, style: pr(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
1588
1588
  }
1589
1589
  const Kl = L.createContext(null), Yl = Kl.Provider;
1590
1590
  function Xl() {
@@ -1606,7 +1606,7 @@ function rc() {
1606
1606
  throw new Error("Please use ContentModelContextProvider");
1607
1607
  return t;
1608
1608
  }
1609
- const ce = () => rc(), Fe = () => rc(), em = {
1609
+ const ce = () => rc(), Ee = () => rc(), em = {
1610
1610
  inEditMode: !1
1611
1611
  }, Li = L.createContext(em), sc = L.createContext({
1612
1612
  panel: null,
@@ -1773,7 +1773,7 @@ const am = {
1773
1773
  createConfig() {
1774
1774
  return {
1775
1775
  version: 2,
1776
- config: Oe(Mi)
1776
+ config: Pe(Mi)
1777
1777
  };
1778
1778
  }
1779
1779
  };
@@ -1806,7 +1806,7 @@ class Qe extends L.Component {
1806
1806
  return this.props.children;
1807
1807
  }
1808
1808
  }
1809
- const Ve = {
1809
+ const Oe = {
1810
1810
  mantissa: 0,
1811
1811
  output: "number",
1812
1812
  trimMantissa: !1,
@@ -2050,7 +2050,7 @@ const Ai = {
2050
2050
  y_axis: {
2051
2051
  name: "Y Axis",
2052
2052
  data_key: "value",
2053
- label_formatter: Ve
2053
+ label_formatter: Oe
2054
2054
  },
2055
2055
  tooltip: {
2056
2056
  metrics: []
@@ -2672,7 +2672,7 @@ const $m = k(({
2672
2672
  const [e, {
2673
2673
  setTrue: n,
2674
2674
  setFalse: s
2675
- }] = Ee(!1), {
2675
+ }] = Re(!1), {
2676
2676
  operationManager: i,
2677
2677
  operationId: a,
2678
2678
  instance: o,
@@ -2759,7 +2759,7 @@ const Wm = k(({
2759
2759
  const [e, {
2760
2760
  setTrue: n,
2761
2761
  setFalse: s
2762
- }] = Ee(!1), i = t.model;
2762
+ }] = Re(!1), i = t.model;
2763
2763
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2764
2764
  /* @__PURE__ */ r.jsx(me, { opened: e, onClose: s, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ r.jsxs(w, { children: [
2765
2765
  /* @__PURE__ */ r.jsx(Gm, { model: i }),
@@ -2795,7 +2795,7 @@ const Km = k(({
2795
2795
  return /* @__PURE__ */ r.jsxs(b, { children: [
2796
2796
  /* @__PURE__ */ r.jsx(Hm, { model: c }),
2797
2797
  /* @__PURE__ */ r.jsx(Vm, { instance: n, operationId: l, variables: d, operationManager: e.operationManager }),
2798
- /* @__PURE__ */ r.jsx(B, { "aria-label": "delete-interaction", variant: "filled", color: "red", onClick: () => a(t), children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
2798
+ /* @__PURE__ */ r.jsx(B, { "aria-label": "delete-interaction", variant: "filled", color: "red", onClick: () => a(t), children: /* @__PURE__ */ r.jsx(ae, { size: 16 }) })
2799
2799
  ] });
2800
2800
  }
2801
2801
  return null;
@@ -3371,7 +3371,7 @@ function Tf({
3371
3371
  series: [...c, ...vf(a, n, e)]
3372
3372
  };
3373
3373
  }
3374
- ae.use([Et, Ih, Zr, ot, lt, ct, Ke]);
3374
+ ie.use([Et, Ih, Zr, ot, lt, ct, Ke]);
3375
3375
  function If({
3376
3376
  context: t,
3377
3377
  instance: e
@@ -3403,7 +3403,7 @@ function If({
3403
3403
  data: i,
3404
3404
  variables: s
3405
3405
  }), [l, i, s]);
3406
- return !n || !a || !o ? null : /* @__PURE__ */ r.jsx(et, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: x, style: pr(a, o), onEvents: p, notMerge: !0, theme: "merico-light" }) });
3406
+ return !n || !a || !o ? null : /* @__PURE__ */ r.jsx(et, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: x, style: pr(a, o), onEvents: p, notMerge: !0, theme: "merico-light" }) });
3407
3407
  }
3408
3408
  function Df({
3409
3409
  value: t,
@@ -3491,7 +3491,7 @@ function zf({
3491
3491
  position: "absolute",
3492
3492
  top: 15,
3493
3493
  right: 5
3494
- }, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
3494
+ }, children: /* @__PURE__ */ r.jsx(ae, { size: 16 }) })
3495
3495
  ] });
3496
3496
  }
3497
3497
  function Mf({
@@ -3548,7 +3548,7 @@ const Lf = ({
3548
3548
  const [s, {
3549
3549
  setTrue: i,
3550
3550
  setFalse: a
3551
- }] = Ee(), [o, l] = V(t);
3551
+ }] = Re(), [o, l] = V(t);
3552
3552
  E(() => {
3553
3553
  l(t);
3554
3554
  }, [t]);
@@ -3672,7 +3672,7 @@ const Lf = ({
3672
3672
  }, ...s }) })
3673
3673
  ] }),
3674
3674
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
3675
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
3675
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
3676
3676
  top: 15,
3677
3677
  right: 5
3678
3678
  }, children: "Delete this Metric" })
@@ -3717,7 +3717,7 @@ const Lf = ({
3717
3717
  }, children: [
3718
3718
  /* @__PURE__ */ r.jsxs(m.List, { children: [
3719
3719
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
3720
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
3720
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
3721
3721
  ] }),
3722
3722
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Ef, { control: t, index: p, remove: i }, h.id) }, h.id))
3723
3723
  ] })
@@ -3827,7 +3827,7 @@ function Nf(t) {
3827
3827
  }
3828
3828
  function Bf(t) {
3829
3829
  const {
3830
- label_formatter: e = Ve,
3830
+ label_formatter: e = Oe,
3831
3831
  ...n
3832
3832
  } = t.y_axis;
3833
3833
  return {
@@ -4049,7 +4049,7 @@ const Yf = {
4049
4049
  createConfig() {
4050
4050
  return {
4051
4051
  version: 9,
4052
- config: Oe(Ai)
4052
+ config: Pe(Ai)
4053
4053
  };
4054
4054
  },
4055
4055
  triggers: [lc]
@@ -4089,7 +4089,7 @@ const $i = {
4089
4089
  const n = gt({
4090
4090
  vizManager: t.vizManager,
4091
4091
  instance: e
4092
- }), s = ft(n.triggerManager, pc.id), i = Fe(), {
4092
+ }), s = ft(n.triggerManager, pc.id), i = Ee(), {
4093
4093
  value: a
4094
4094
  } = G(t.instanceData, "config"), o = T(() => fe({}, a, $i), [a]), {
4095
4095
  content: l,
@@ -4296,7 +4296,7 @@ const dg = {
4296
4296
  createConfig() {
4297
4297
  return {
4298
4298
  version: 2,
4299
- config: Oe($i)
4299
+ config: Pe($i)
4300
4300
  };
4301
4301
  },
4302
4302
  triggers: [pc]
@@ -4370,7 +4370,7 @@ const qn = {
4370
4370
  show: !0,
4371
4371
  position: "left",
4372
4372
  nameAlignment: "center",
4373
- label_formatter: Ve
4373
+ label_formatter: Oe
4374
4374
  }],
4375
4375
  reference_lines: [],
4376
4376
  reference_areas: [],
@@ -4672,7 +4672,7 @@ function Tg({
4672
4672
  hide_in_legend: p,
4673
4673
  ...x
4674
4674
  }, y, S, D, P) {
4675
- const q = e.type !== "category", re = {
4675
+ const q = e.type !== "category", oe = {
4676
4676
  label: {
4677
4677
  show: !!i,
4678
4678
  position: i,
@@ -4690,25 +4690,25 @@ function Tg({
4690
4690
  },
4691
4691
  ...x
4692
4692
  };
4693
- if (x.type === "line" && (re.lineStyle = {
4693
+ if (x.type === "line" && (oe.lineStyle = {
4694
4694
  shadowColor: "rgba(255,255,255,1)",
4695
4695
  shadowBlur: 0,
4696
4696
  shadowOffsetX: 0,
4697
4697
  shadowOffsetY: 3
4698
- }), u && (re.endLabel = {
4698
+ }), u && (oe.endLabel = {
4699
4699
  show: !0,
4700
4700
  formatter: a,
4701
4701
  offset: [-12, 12],
4702
4702
  align: "right"
4703
4703
  }), !o || o === t)
4704
- return re.data = Sg({
4704
+ return oe.data = Sg({
4705
4705
  dataTemplate: y,
4706
4706
  data: S,
4707
4707
  aggregation_on_value: l,
4708
4708
  x_axis_data_key: t,
4709
4709
  y_axis_data_key: n,
4710
4710
  valueTypedXAxis: q
4711
- }), re;
4711
+ }), oe;
4712
4712
  const be = kg({
4713
4713
  group_by_key: o,
4714
4714
  data: S,
@@ -4716,8 +4716,8 @@ function Tg({
4716
4716
  y_axis_data_key: n
4717
4717
  });
4718
4718
  return Object.entries(be).map(([ne, _e]) => {
4719
- const Te = Oe(re);
4720
- return Te.name = ne, Te.color = void 0, Te.data = _e, Te;
4719
+ const ke = Pe(oe);
4720
+ return ke.name = ne, ke.color = void 0, ke.data = _e, ke;
4721
4721
  });
4722
4722
  }
4723
4723
  function Ig(t, e, n, s, i, a) {
@@ -4917,7 +4917,7 @@ function uo(t) {
4917
4917
  series: n
4918
4918
  });
4919
4919
  }
4920
- ae.use([Et, On, Vn, ts, ot, lt, ct, Ke, Zr, yi]);
4920
+ ie.use([Et, On, Vn, ts, ot, lt, ct, Ke, Zr, yi]);
4921
4921
  function ho(t) {
4922
4922
  return t.trim().length > 0;
4923
4923
  }
@@ -4946,7 +4946,7 @@ function Pg({
4946
4946
  };
4947
4947
  return E(() => {
4948
4948
  u.current && uo(u.current);
4949
- }, [d]), !n || !s ? null : /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: d, style: {
4949
+ }, [d]), !n || !s ? null : /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: d, style: {
4950
4950
  width: n,
4951
4951
  height: s
4952
4952
  }, onEvents: h, onChartReady: p, notMerge: !0, theme: "merico-light" });
@@ -5087,7 +5087,7 @@ function Bg({
5087
5087
  }, ...i })
5088
5088
  ) })
5089
5089
  ] }),
5090
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
5090
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
5091
5091
  top: 15,
5092
5092
  right: 5
5093
5093
  }, children: "Delete this Reference Area" })
@@ -5132,7 +5132,7 @@ function qg({
5132
5132
  }, children: [
5133
5133
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5134
5134
  l.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
5135
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
5135
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
5136
5136
  ] }),
5137
5137
  l.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(Bg, { control: t, index: h, remove: a, variableOptions: d }) }, u.id))
5138
5138
  ] });
@@ -5254,7 +5254,7 @@ function Qg({
5254
5254
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${e}.show_in_legend`, control: t, render: ({
5255
5255
  field: l
5256
5256
  }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
5257
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
5257
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
5258
5258
  top: 15,
5259
5259
  right: 5
5260
5260
  }, children: "Delete this Reference Line" })
@@ -5309,7 +5309,7 @@ function Hg({
5309
5309
  }, children: [
5310
5310
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5311
5311
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
5312
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
5312
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
5313
5313
  ] }),
5314
5314
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(Qg, { control: t, index: x, remove: a, watch: e, variableOptions: d, yAxisOptions: h }) }, p.id))
5315
5315
  ] });
@@ -5440,7 +5440,7 @@ function Yg({
5440
5440
  field: o
5441
5441
  }) => /* @__PURE__ */ r.jsx(He, { ...o }) })
5442
5442
  ] }),
5443
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => s(n), sx: {
5443
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => s(n), sx: {
5444
5444
  top: 15,
5445
5445
  right: 5
5446
5446
  }, children: "Delete this Regression Line" })
@@ -5499,7 +5499,7 @@ function Xg({
5499
5499
  }, children: [
5500
5500
  /* @__PURE__ */ r.jsxs(m.List, { children: [
5501
5501
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
5502
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
5502
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
5503
5503
  ] }),
5504
5504
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(Yg, { regressionItem: u, control: t, index: h, remove: i, yAxisOptions: c }) }, u.id))
5505
5505
  ] });
@@ -5641,7 +5641,7 @@ function fc(t, e, n, s) {
5641
5641
  n -= c, s -= c;
5642
5642
  }
5643
5643
  }
5644
- class ie {
5644
+ class se {
5645
5645
  /**
5646
5646
  @internal
5647
5647
  */
@@ -5695,7 +5695,7 @@ class ie {
5695
5695
  let n = this.lastChild, s = e.firstChild, i = this.content.slice(), a = 0;
5696
5696
  for (n.isText && n.sameMarkup(s) && (i[i.length - 1] = n.withText(n.text + s.text), a = 1); a < e.content.length; a++)
5697
5697
  i.push(e.content[a]);
5698
- return new ie(i, this.size + e.size);
5698
+ return new se(i, this.size + e.size);
5699
5699
  }
5700
5700
  /**
5701
5701
  Cut out the sub-fragment between the two given positions.
@@ -5709,13 +5709,13 @@ class ie {
5709
5709
  let l = this.content[a], c = o + l.nodeSize;
5710
5710
  c > e && ((o < e || c > n) && (l.isText ? l = l.cut(Math.max(0, e - o), Math.min(l.text.length, n - o)) : l = l.cut(Math.max(0, e - o - 1), Math.min(l.content.size, n - o - 1))), s.push(l), i += l.nodeSize), o = c;
5711
5711
  }
5712
- return new ie(s, i);
5712
+ return new se(s, i);
5713
5713
  }
5714
5714
  /**
5715
5715
  @internal
5716
5716
  */
5717
5717
  cutByIndex(e, n) {
5718
- return e == n ? ie.empty : e == 0 && n == this.content.length ? this : new ie(this.content.slice(e, n));
5718
+ return e == n ? se.empty : e == 0 && n == this.content.length ? this : new se(this.content.slice(e, n));
5719
5719
  }
5720
5720
  /**
5721
5721
  Create a new fragment in which the node at the given index is
@@ -5726,21 +5726,21 @@ class ie {
5726
5726
  if (s == n)
5727
5727
  return this;
5728
5728
  let i = this.content.slice(), a = this.size + n.nodeSize - s.nodeSize;
5729
- return i[e] = n, new ie(i, a);
5729
+ return i[e] = n, new se(i, a);
5730
5730
  }
5731
5731
  /**
5732
5732
  Create a new fragment by prepending the given node to this
5733
5733
  fragment.
5734
5734
  */
5735
5735
  addToStart(e) {
5736
- return new ie([e].concat(this.content), this.size + e.nodeSize);
5736
+ return new se([e].concat(this.content), this.size + e.nodeSize);
5737
5737
  }
5738
5738
  /**
5739
5739
  Create a new fragment by appending the given node to this
5740
5740
  fragment.
5741
5741
  */
5742
5742
  addToEnd(e) {
5743
- return new ie(this.content.concat(e), this.size + e.nodeSize);
5743
+ return new se(this.content.concat(e), this.size + e.nodeSize);
5744
5744
  }
5745
5745
  /**
5746
5746
  Compare this fragment to another one.
@@ -5855,10 +5855,10 @@ class ie {
5855
5855
  */
5856
5856
  static fromJSON(e, n) {
5857
5857
  if (!n)
5858
- return ie.empty;
5858
+ return se.empty;
5859
5859
  if (!Array.isArray(n))
5860
5860
  throw new RangeError("Invalid input for Fragment.fromJSON");
5861
- return new ie(n.map(e.nodeFromJSON));
5861
+ return new se(n.map(e.nodeFromJSON));
5862
5862
  }
5863
5863
  /**
5864
5864
  Build a fragment from an array of nodes. Ensures that adjacent
@@ -5866,13 +5866,13 @@ class ie {
5866
5866
  */
5867
5867
  static fromArray(e) {
5868
5868
  if (!e.length)
5869
- return ie.empty;
5869
+ return se.empty;
5870
5870
  let n, s = 0;
5871
5871
  for (let i = 0; i < e.length; i++) {
5872
5872
  let a = e[i];
5873
5873
  s += a.nodeSize, i && a.isText && e[i - 1].sameMarkup(a) ? (n || (n = e.slice(0, i)), n[n.length - 1] = a.withText(n[n.length - 1].text + a.text)) : n && n.push(a);
5874
5874
  }
5875
- return new ie(n || e, s);
5875
+ return new se(n || e, s);
5876
5876
  }
5877
5877
  /**
5878
5878
  Create a fragment from something that can be interpreted as a
@@ -5882,17 +5882,17 @@ class ie {
5882
5882
  */
5883
5883
  static from(e) {
5884
5884
  if (!e)
5885
- return ie.empty;
5886
- if (e instanceof ie)
5885
+ return se.empty;
5886
+ if (e instanceof se)
5887
5887
  return e;
5888
5888
  if (Array.isArray(e))
5889
5889
  return this.fromArray(e);
5890
5890
  if (e.attrs)
5891
- return new ie([e], e.nodeSize);
5891
+ return new se([e], e.nodeSize);
5892
5892
  throw new RangeError("Can not convert " + e + " to a Fragment" + (e.nodesBetween ? " (looks like multiple versions of prosemirror-model were loaded)" : ""));
5893
5893
  }
5894
5894
  }
5895
- ie.empty = new ie([], 0);
5895
+ se.empty = new se([], 0);
5896
5896
  const Vs = { index: 0, offset: 0 };
5897
5897
  function Cr(t, e) {
5898
5898
  return Vs.index = t, Vs.offset = e, Vs;
@@ -6093,7 +6093,7 @@ class ue {
6093
6093
  let s = n.openStart || 0, i = n.openEnd || 0;
6094
6094
  if (typeof s != "number" || typeof i != "number")
6095
6095
  throw new RangeError("Invalid input for Slice.fromJSON");
6096
- return new ue(ie.fromJSON(e, n.content), s, i);
6096
+ return new ue(se.fromJSON(e, n.content), s, i);
6097
6097
  }
6098
6098
  /**
6099
6099
  Create a slice from a fragment by taking the maximum possible
@@ -6108,7 +6108,7 @@ class ue {
6108
6108
  return new ue(e, s, i);
6109
6109
  }
6110
6110
  }
6111
- ue.empty = new ue(ie.empty, 0, 0);
6111
+ ue.empty = new ue(se.empty, 0, 0);
6112
6112
  function gc(t, e, n) {
6113
6113
  let { index: s, offset: i } = t.findIndex(e), a = t.maybeChild(s), { index: o, offset: l } = t.findIndex(n);
6114
6114
  if (i == e || a.isText) {
@@ -6287,7 +6287,7 @@ class Sr {
6287
6287
  if (!this.match) {
6288
6288
  if (!this.type)
6289
6289
  return [];
6290
- let n = this.type.contentMatch.fillBefore(ie.from(e));
6290
+ let n = this.type.contentMatch.fillBefore(se.from(e));
6291
6291
  if (n)
6292
6292
  this.match = this.type.contentMatch.matchFragment(n);
6293
6293
  else {
@@ -6305,8 +6305,8 @@ class Sr {
6305
6305
  s.text.length == i[0].length ? this.content.pop() : this.content[this.content.length - 1] = a.withText(a.text.slice(0, a.text.length - i[0].length));
6306
6306
  }
6307
6307
  }
6308
- let n = ie.from(this.content);
6309
- return !e && this.match && (n = n.append(this.match.fillBefore(ie.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
6308
+ let n = se.from(this.content);
6309
+ return !e && this.match && (n = n.append(this.match.fillBefore(se.empty, !0))), this.type ? this.type.create(this.attrs, n, this.marks) : n;
6310
6310
  }
6311
6311
  popFromStashMark(e) {
6312
6312
  for (let n = this.stashMarks.length - 1; n >= 0; n--)
@@ -6838,7 +6838,7 @@ class tt {
6838
6838
  return Ns[e] = n, n.prototype.jsonID = e, n;
6839
6839
  }
6840
6840
  }
6841
- class Ae {
6841
+ class Le {
6842
6842
  /**
6843
6843
  @internal
6844
6844
  */
@@ -6849,13 +6849,13 @@ class Ae {
6849
6849
  Create a successful step result.
6850
6850
  */
6851
6851
  static ok(e) {
6852
- return new Ae(e, null);
6852
+ return new Le(e, null);
6853
6853
  }
6854
6854
  /**
6855
6855
  Create a failed step result.
6856
6856
  */
6857
6857
  static fail(e) {
6858
- return new Ae(null, e);
6858
+ return new Le(null, e);
6859
6859
  }
6860
6860
  /**
6861
6861
  Call [`Node.replace`](https://prosemirror.net/docs/ref/#model.Node.replace) with the given
@@ -6864,10 +6864,10 @@ class Ae {
6864
6864
  */
6865
6865
  static fromReplace(e, n, s, i) {
6866
6866
  try {
6867
- return Ae.ok(e.replace(n, s, i));
6867
+ return Le.ok(e.replace(n, s, i));
6868
6868
  } catch (a) {
6869
6869
  if (a instanceof Jg)
6870
- return Ae.fail(a.message);
6870
+ return Le.fail(a.message);
6871
6871
  throw a;
6872
6872
  }
6873
6873
  }
@@ -6878,7 +6878,7 @@ function Gi(t, e, n) {
6878
6878
  let a = t.child(i);
6879
6879
  a.content.size && (a = a.copy(Gi(a.content, e, a))), a.isInline && (a = e(a, n, i)), s.push(a);
6880
6880
  }
6881
- return ie.fromArray(s);
6881
+ return se.fromArray(s);
6882
6882
  }
6883
6883
  class hn extends tt {
6884
6884
  /**
@@ -6889,7 +6889,7 @@ class hn extends tt {
6889
6889
  }
6890
6890
  apply(e) {
6891
6891
  let n = e.slice(this.from, this.to), s = e.resolve(this.from), i = s.node(s.sharedDepth(this.to)), a = new ue(Gi(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);
6892
- return Ae.fromReplace(e, this.from, this.to, a);
6892
+ return Le.fromReplace(e, this.from, this.to, a);
6893
6893
  }
6894
6894
  invert() {
6895
6895
  return new pn(this.from, this.to, this.mark);
@@ -6928,7 +6928,7 @@ class pn extends tt {
6928
6928
  }
6929
6929
  apply(e) {
6930
6930
  let n = e.slice(this.from, this.to), s = new ue(Gi(n.content, (i) => i.mark(this.mark.removeFromSet(i.marks)), e), n.openStart, n.openEnd);
6931
- return Ae.fromReplace(e, this.from, this.to, s);
6931
+ return Le.fromReplace(e, this.from, this.to, s);
6932
6932
  }
6933
6933
  invert() {
6934
6934
  return new hn(this.from, this.to, this.mark);
@@ -6968,9 +6968,9 @@ class xn extends tt {
6968
6968
  apply(e) {
6969
6969
  let n = e.nodeAt(this.pos);
6970
6970
  if (!n)
6971
- return Ae.fail("No node at mark step's position");
6971
+ return Le.fail("No node at mark step's position");
6972
6972
  let s = n.type.create(n.attrs, null, this.mark.addToSet(n.marks));
6973
- return Ae.fromReplace(e, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
6973
+ return Le.fromReplace(e, this.pos, this.pos + 1, new ue(se.from(s), 0, n.isLeaf ? 0 : 1));
6974
6974
  }
6975
6975
  invert(e) {
6976
6976
  let n = e.nodeAt(this.pos);
@@ -7012,9 +7012,9 @@ class ar extends tt {
7012
7012
  apply(e) {
7013
7013
  let n = e.nodeAt(this.pos);
7014
7014
  if (!n)
7015
- return Ae.fail("No node at mark step's position");
7015
+ return Le.fail("No node at mark step's position");
7016
7016
  let s = n.type.create(n.attrs, null, this.mark.removeFromSet(n.marks));
7017
- return Ae.fromReplace(e, this.pos, this.pos + 1, new ue(ie.from(s), 0, n.isLeaf ? 0 : 1));
7017
+ return Le.fromReplace(e, this.pos, this.pos + 1, new ue(se.from(s), 0, n.isLeaf ? 0 : 1));
7018
7018
  }
7019
7019
  invert(e) {
7020
7020
  let n = e.nodeAt(this.pos);
@@ -7051,7 +7051,7 @@ class Dt extends tt {
7051
7051
  super(), this.from = e, this.to = n, this.slice = s, this.structure = i;
7052
7052
  }
7053
7053
  apply(e) {
7054
- return this.structure && ii(e, this.from, this.to) ? Ae.fail("Structure replace would overwrite content") : Ae.fromReplace(e, this.from, this.to, this.slice);
7054
+ return this.structure && ii(e, this.from, this.to) ? Le.fail("Structure replace would overwrite content") : Le.fromReplace(e, this.from, this.to, this.slice);
7055
7055
  }
7056
7056
  getMap() {
7057
7057
  return new ut([this.from, this.to - this.from, this.slice.size]);
@@ -7101,12 +7101,12 @@ class fn extends tt {
7101
7101
  }
7102
7102
  apply(e) {
7103
7103
  if (this.structure && (ii(e, this.from, this.gapFrom) || ii(e, this.gapTo, this.to)))
7104
- return Ae.fail("Structure gap-replace would overwrite content");
7104
+ return Le.fail("Structure gap-replace would overwrite content");
7105
7105
  let n = e.slice(this.gapFrom, this.gapTo);
7106
7106
  if (n.openStart || n.openEnd)
7107
- return Ae.fail("Gap is not a flat range");
7107
+ return Le.fail("Gap is not a flat range");
7108
7108
  let s = this.slice.insertAt(this.insert, n.content);
7109
- return s ? Ae.fromReplace(e, this.from, this.to, s) : Ae.fail("Content does not fit in gap");
7109
+ return s ? Le.fromReplace(e, this.from, this.to, s) : Le.fail("Content does not fit in gap");
7110
7110
  }
7111
7111
  getMap() {
7112
7112
  return new ut([
@@ -7209,13 +7209,13 @@ class Jn extends tt {
7209
7209
  apply(e) {
7210
7210
  let n = e.nodeAt(this.pos);
7211
7211
  if (!n)
7212
- return Ae.fail("No node at attribute step's position");
7212
+ return Le.fail("No node at attribute step's position");
7213
7213
  let s = /* @__PURE__ */ Object.create(null);
7214
7214
  for (let a in n.attrs)
7215
7215
  s[a] = n.attrs[a];
7216
7216
  s[this.attr] = this.value;
7217
7217
  let i = n.type.create(s, null, n.marks);
7218
- return Ae.fromReplace(e, this.pos, this.pos + 1, new ue(ie.from(i), 0, n.isLeaf ? 0 : 1));
7218
+ return Le.fromReplace(e, this.pos, this.pos + 1, new ue(se.from(i), 0, n.isLeaf ? 0 : 1));
7219
7219
  }
7220
7220
  getMap() {
7221
7221
  return ut.empty;
@@ -7341,7 +7341,7 @@ class ye {
7341
7341
  found.
7342
7342
  */
7343
7343
  static findFrom(e, n, s = !1) {
7344
- let i = e.parent.inlineContent ? new Re(e) : Mn(e.node(0), e.parent, e.pos, e.index(), n, s);
7344
+ let i = e.parent.inlineContent ? new Ae(e) : Mn(e.node(0), e.parent, e.pos, e.index(), n, s);
7345
7345
  if (i)
7346
7346
  return i;
7347
7347
  for (let a = e.depth - 1; a >= 0; a--) {
@@ -7408,7 +7408,7 @@ class ye {
7408
7408
  returns the bookmark for that.
7409
7409
  */
7410
7410
  getBookmark() {
7411
- return Re.between(this.$anchor, this.$head).getBookmark();
7411
+ return Ae.between(this.$anchor, this.$head).getBookmark();
7412
7412
  }
7413
7413
  }
7414
7414
  ye.prototype.visible = !0;
@@ -7424,7 +7424,7 @@ let bo = !1;
7424
7424
  function yo(t) {
7425
7425
  !bo && !t.parent.inlineContent && (bo = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
7426
7426
  }
7427
- class Re extends ye {
7427
+ class Ae extends ye {
7428
7428
  /**
7429
7429
  Construct a text selection between the given points.
7430
7430
  */
@@ -7443,7 +7443,7 @@ class Re extends ye {
7443
7443
  if (!s.parent.inlineContent)
7444
7444
  return ye.near(s);
7445
7445
  let i = e.resolve(n.map(this.anchor));
7446
- return new Re(i.parent.inlineContent ? i : s, s);
7446
+ return new Ae(i.parent.inlineContent ? i : s, s);
7447
7447
  }
7448
7448
  replace(e, n = ue.empty) {
7449
7449
  if (super.replace(e, n), n == ue.empty) {
@@ -7452,7 +7452,7 @@ class Re extends ye {
7452
7452
  }
7453
7453
  }
7454
7454
  eq(e) {
7455
- return e instanceof Re && e.anchor == this.anchor && e.head == this.head;
7455
+ return e instanceof Ae && e.anchor == this.anchor && e.head == this.head;
7456
7456
  }
7457
7457
  getBookmark() {
7458
7458
  return new xs(this.anchor, this.head);
@@ -7466,7 +7466,7 @@ class Re extends ye {
7466
7466
  static fromJSON(e, n) {
7467
7467
  if (typeof n.anchor != "number" || typeof n.head != "number")
7468
7468
  throw new RangeError("Invalid input for TextSelection.fromJSON");
7469
- return new Re(e.resolve(n.anchor), e.resolve(n.head));
7469
+ return new Ae(e.resolve(n.anchor), e.resolve(n.head));
7470
7470
  }
7471
7471
  /**
7472
7472
  Create a text selection from non-resolved positions.
@@ -7492,10 +7492,10 @@ class Re extends ye {
7492
7492
  else
7493
7493
  return ye.near(n, s);
7494
7494
  }
7495
- return e.parent.inlineContent || (i == 0 ? e = n : (e = (ye.findFrom(e, -s, !0) || ye.findFrom(e, s, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new Re(e, n);
7495
+ return e.parent.inlineContent || (i == 0 ? e = n : (e = (ye.findFrom(e, -s, !0) || ye.findFrom(e, s, !0)).$anchor, e.pos < n.pos != i < 0 && (e = n))), new Ae(e, n);
7496
7496
  }
7497
7497
  }
7498
- ye.jsonID("text", Re);
7498
+ ye.jsonID("text", Ae);
7499
7499
  class xs {
7500
7500
  constructor(e, n) {
7501
7501
  this.anchor = e, this.head = n;
@@ -7504,7 +7504,7 @@ class xs {
7504
7504
  return new xs(e.map(this.anchor), e.map(this.head));
7505
7505
  }
7506
7506
  resolve(e) {
7507
- return Re.between(e.resolve(this.anchor), e.resolve(this.head));
7507
+ return Ae.between(e.resolve(this.anchor), e.resolve(this.head));
7508
7508
  }
7509
7509
  }
7510
7510
  class rt extends ye {
@@ -7521,7 +7521,7 @@ class rt extends ye {
7521
7521
  return s ? ye.near(a) : new rt(a);
7522
7522
  }
7523
7523
  content() {
7524
- return new ue(ie.from(this.node), 0, 0);
7524
+ return new ue(se.from(this.node), 0, 0);
7525
7525
  }
7526
7526
  eq(e) {
7527
7527
  return e instanceof rt && e.anchor == this.anchor;
@@ -7614,7 +7614,7 @@ const ub = {
7614
7614
  };
7615
7615
  function Mn(t, e, n, s, i, a = !1) {
7616
7616
  if (e.inlineContent)
7617
- return Re.create(t, n);
7617
+ return Ae.create(t, n);
7618
7618
  for (let o = s - (i > 0 ? 0 : 1); i > 0 ? o < e.childCount : o >= 0; o += i) {
7619
7619
  let l = e.child(o);
7620
7620
  if (l.isAtom) {
@@ -8019,7 +8019,7 @@ const Mb = (t, e = {}) => ({ tr: n, state: s, dispatch: i }) => {
8019
8019
  if (i) {
8020
8020
  const h = Mc(c, a, e);
8021
8021
  if (h && h.from <= d && h.to >= u) {
8022
- const p = Re.create(o, h.from, h.to);
8022
+ const p = Ae.create(o, h.from, h.to);
8023
8023
  n.setSelection(p);
8024
8024
  }
8025
8025
  }
@@ -8032,7 +8032,7 @@ const Mb = (t, e = {}) => ({ tr: n, state: s, dispatch: i }) => {
8032
8032
  return !1;
8033
8033
  };
8034
8034
  function Lc(t) {
8035
- return t instanceof Re;
8035
+ return t instanceof Ae;
8036
8036
  }
8037
8037
  function mn(t = 0, e = 0, n = 0) {
8038
8038
  return Math.min(Math.max(t, e), n);
@@ -8046,7 +8046,7 @@ function Ab(t, e = null) {
8046
8046
  if (e === "end")
8047
8047
  return s;
8048
8048
  const i = n.from, a = s.to;
8049
- return e === "all" ? Re.create(t, mn(0, i, a), mn(t.content.size, i, a)) : Re.create(t, mn(e, i, a), mn(e, i, a));
8049
+ return e === "all" ? Ae.create(t, mn(0, i, a), mn(t.content.size, i, a)) : Ae.create(t, mn(e, i, a), mn(e, i, a));
8050
8050
  }
8051
8051
  function Hi() {
8052
8052
  return [
@@ -8086,7 +8086,7 @@ function Qr(t, e, n) {
8086
8086
  ...n
8087
8087
  }, typeof t == "object" && t !== null)
8088
8088
  try {
8089
- return Array.isArray(t) && t.length > 0 ? ie.fromArray(t.map((s) => e.nodeFromJSON(s))) : e.nodeFromJSON(t);
8089
+ return Array.isArray(t) && t.length > 0 ? se.fromArray(t.map((s) => e.nodeFromJSON(s))) : e.nodeFromJSON(t);
8090
8090
  } catch (s) {
8091
8091
  return console.warn("[tiptap warn]: Invalid content.", "Passed value:", t, "Error:", s), Qr("", e, n);
8092
8092
  }
@@ -8275,8 +8275,8 @@ function cy(t, e, n = {}) {
8275
8275
  t.doc.nodesBetween(x, y, (S, D) => {
8276
8276
  if (!S.isText && !S.marks.length)
8277
8277
  return;
8278
- const P = Math.max(x, D), q = Math.min(y, D + S.nodeSize), re = q - P;
8279
- o += re, l.push(...S.marks.map((be) => ({
8278
+ const P = Math.max(x, D), q = Math.min(y, D + S.nodeSize), oe = q - P;
8279
+ o += oe, l.push(...S.marks.map((be) => ({
8280
8280
  mark: be,
8281
8281
  from: P,
8282
8282
  to: q
@@ -8354,7 +8354,7 @@ const uy = (t, e = {}) => ({ tr: n, state: s, dispatch: i }) => {
8354
8354
  return !0;
8355
8355
  }, my = (t) => ({ tr: e, dispatch: n }) => {
8356
8356
  if (n) {
8357
- const { doc: s } = e, { from: i, to: a } = typeof t == "number" ? { from: t, to: t } : t, o = Re.atStart(s).from, l = Re.atEnd(s).to, c = mn(i, o, l), d = mn(a, o, l), u = Re.create(s, c, d);
8357
+ const { doc: s } = e, { from: i, to: a } = typeof t == "number" ? { from: t, to: t } : t, o = Ae.atStart(s).from, l = Ae.atEnd(s).to, c = mn(i, o, l), d = mn(a, o, l), u = Ae.create(s, c, d);
8358
8358
  e.setSelection(u);
8359
8359
  }
8360
8360
  return !0;
@@ -8377,7 +8377,7 @@ const gy = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
8377
8377
  return !1;
8378
8378
  if (s) {
8379
8379
  const h = c.parentOffset === c.parent.content.size;
8380
- a instanceof Re && e.deleteSelection();
8380
+ a instanceof Ae && e.deleteSelection();
8381
8381
  const p = l.depth === 0 ? void 0 : ay(l.node(-1).contentMatchAt(l.indexAfter(-1)));
8382
8382
  let x = h && p ? [
8383
8383
  {
@@ -8410,20 +8410,20 @@ const gy = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
8410
8410
  if (l.depth === 2 || l.node(-3).type !== o || l.index(-2) !== l.node(-2).childCount - 1)
8411
8411
  return !1;
8412
8412
  if (s) {
8413
- let D = ie.empty;
8413
+ let D = se.empty;
8414
8414
  const P = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
8415
- for (let Te = l.depth - P; Te >= l.depth - 3; Te -= 1)
8416
- D = ie.from(l.node(Te).copy(D));
8417
- const q = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, re = Er(h, l.node().type.name, l.node().attrs), be = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(re)) || void 0;
8418
- D = D.append(ie.from(o.createAndFill(null, be) || void 0));
8415
+ for (let ke = l.depth - P; ke >= l.depth - 3; ke -= 1)
8416
+ D = se.from(l.node(ke).copy(D));
8417
+ const q = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, oe = Er(h, l.node().type.name, l.node().attrs), be = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(oe)) || void 0;
8418
+ D = D.append(se.from(o.createAndFill(null, be) || void 0));
8419
8419
  const ne = l.before(l.depth - (P - 1));
8420
8420
  e.replace(ne, l.after(-q), new ue(D, 4 - P, 0));
8421
8421
  let _e = -1;
8422
- e.doc.nodesBetween(ne, e.doc.content.size, (Te, Me) => {
8422
+ e.doc.nodesBetween(ne, e.doc.content.size, (ke, ze) => {
8423
8423
  if (_e > -1)
8424
8424
  return !1;
8425
- Te.isTextblock && Te.content.size === 0 && (_e = Me + 1);
8426
- }), _e > -1 && e.setSelection(Re.near(e.doc.resolve(_e))), e.scrollIntoView();
8425
+ ke.isTextblock && ke.content.size === 0 && (_e = ze + 1);
8426
+ }), _e > -1 && e.setSelection(Ae.near(e.doc.resolve(_e))), e.scrollIntoView();
8427
8427
  }
8428
8428
  return !0;
8429
8429
  }
@@ -8436,10 +8436,10 @@ const gy = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
8436
8436
  if (!Rr(e.doc, l.pos, 2))
8437
8437
  return !1;
8438
8438
  if (s) {
8439
- const { selection: D, storedMarks: P } = n, { splittableMarks: q } = i.extensionManager, re = P || D.$to.parentOffset && D.$from.marks();
8440
- if (e.split(l.pos, 2, S).scrollIntoView(), !re || !s)
8439
+ const { selection: D, storedMarks: P } = n, { splittableMarks: q } = i.extensionManager, oe = P || D.$to.parentOffset && D.$from.marks();
8440
+ if (e.split(l.pos, 2, S).scrollIntoView(), !oe || !s)
8441
8441
  return !0;
8442
- const be = re.filter((ne) => q.includes(ne.type.name));
8442
+ const be = oe.filter((ne) => q.includes(ne.type.name));
8443
8443
  e.ensureMarks(be);
8444
8444
  }
8445
8445
  return !0;
@@ -8462,19 +8462,19 @@ const gy = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
8462
8462
  const i = t.doc.nodeAt(s);
8463
8463
  return n.node.type === (i == null ? void 0 : i.type) && kc(t.doc, s) && t.join(s), !0;
8464
8464
  }, yy = (t, e, n, s = {}) => ({ editor: i, tr: a, state: o, dispatch: l, chain: c, commands: d, can: u }) => {
8465
- const { extensions: h, splittableMarks: p } = i.extensionManager, x = qe(t, o.schema), y = qe(e, o.schema), { selection: S, storedMarks: D } = o, { $from: P, $to: q } = S, re = P.blockRange(q), be = D || S.$to.parentOffset && S.$from.marks();
8466
- if (!re)
8465
+ const { extensions: h, splittableMarks: p } = i.extensionManager, x = qe(t, o.schema), y = qe(e, o.schema), { selection: S, storedMarks: D } = o, { $from: P, $to: q } = S, oe = P.blockRange(q), be = D || S.$to.parentOffset && S.$from.marks();
8466
+ if (!oe)
8467
8467
  return !1;
8468
8468
  const ne = Ki((_e) => Co(_e.type.name, h))(S);
8469
- if (re.depth >= 1 && ne && re.depth - ne.depth <= 1) {
8469
+ if (oe.depth >= 1 && ne && oe.depth - ne.depth <= 1) {
8470
8470
  if (ne.node.type === x)
8471
8471
  return d.liftListItem(y);
8472
8472
  if (Co(ne.node.type.name, h) && x.validContent(ne.node.content) && l)
8473
8473
  return c().command(() => (a.setNodeMarkup(ne.pos, x), !0)).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
8474
8474
  }
8475
8475
  return !n || !be || !l ? c().command(() => u().wrapInList(x, s) ? !0 : d.clearNodes()).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run() : c().command(() => {
8476
- const _e = u().wrapInList(x, s), Te = be.filter((Me) => p.includes(Me.type.name));
8477
- return a.ensureMarks(Te), _e ? !0 : d.clearNodes();
8476
+ const _e = u().wrapInList(x, s), ke = be.filter((ze) => p.includes(ze.type.name));
8477
+ return a.ensureMarks(ke), _e ? !0 : d.clearNodes();
8478
8478
  }).wrapInList(x, s).command(() => Gs(a, x)).command(() => Qs(a, x)).run();
8479
8479
  }, jy = (t, e = {}, n = {}) => ({ state: s, commands: i }) => {
8480
8480
  const { extendEmptyMarkRange: a = !1 } = n, o = an(t, s.schema);
@@ -9088,7 +9088,7 @@ const Ny = ({
9088
9088
  const [n, {
9089
9089
  setTrue: s,
9090
9090
  setFalse: i
9091
- }] = Ee(), [a, o] = V(t), l = () => {
9091
+ }] = Re(), [a, o] = V(t), l = () => {
9092
9092
  i();
9093
9093
  const {
9094
9094
  type: h,
@@ -9395,7 +9395,7 @@ function Xy({
9395
9395
  field: o
9396
9396
  }) => /* @__PURE__ */ r.jsx(U, { label: "Hide in legend", checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }),
9397
9397
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
9398
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
9398
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
9399
9399
  top: 15,
9400
9400
  right: 5
9401
9401
  }, children: "Delete this Series" })
@@ -9459,7 +9459,7 @@ function Jy({
9459
9459
  }, children: [
9460
9460
  /* @__PURE__ */ r.jsxs(m.List, { children: [
9461
9461
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.toString(), children: h + 1 }, u.id)),
9462
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
9462
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
9463
9463
  ] }),
9464
9464
  o.map((u, h) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.toString(), children: /* @__PURE__ */ r.jsx(Xy, { control: t, index: h, remove: i, seriesItem: u, yAxisOptions: d }, u.id) }, u.id))
9465
9465
  ] });
@@ -9485,11 +9485,11 @@ const ej = () => /* @__PURE__ */ r.jsxs(b, { sx: {
9485
9485
  display: "inline-flex"
9486
9486
  }, spacing: 6, mr: 14, children: [
9487
9487
  /* @__PURE__ */ r.jsx(j, { children: "X Axis Data Type" }),
9488
- /* @__PURE__ */ r.jsxs($e, { width: 340, shadow: "md", position: "top", children: [
9489
- /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(B, { size: "xs", sx: {
9488
+ /* @__PURE__ */ r.jsxs(Fe, { width: 340, shadow: "md", position: "top", children: [
9489
+ /* @__PURE__ */ r.jsx(Fe.Target, { children: /* @__PURE__ */ r.jsx(B, { size: "xs", sx: {
9490
9490
  transform: "none !important"
9491
9491
  }, children: /* @__PURE__ */ r.jsx(wn, {}) }) }),
9492
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9492
+ /* @__PURE__ */ r.jsx(Fe.Dropdown, { children: /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
9493
9493
  "Click",
9494
9494
  /* @__PURE__ */ r.jsx(Js, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 4, children: "here" }),
9495
9495
  "to learn more about these options"
@@ -9628,7 +9628,7 @@ function ij({
9628
9628
  /* @__PURE__ */ r.jsx(g, { name: `y_axes.${e}.show`, control: t, render: ({
9629
9629
  field: s
9630
9630
  }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
9631
- /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this YAxis" })
9631
+ /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this YAxis" })
9632
9632
  ] });
9633
9633
  }
9634
9634
  function aj({
@@ -9649,7 +9649,7 @@ function aj({
9649
9649
  name: "",
9650
9650
  position: "left",
9651
9651
  nameAlignment: "left",
9652
- label_formatter: Ve,
9652
+ label_formatter: Oe,
9653
9653
  min: "",
9654
9654
  max: "",
9655
9655
  show: !0
@@ -9665,7 +9665,7 @@ function aj({
9665
9665
  }, children: [
9666
9666
  /* @__PURE__ */ r.jsxs(m.List, { children: [
9667
9667
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
9668
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
9668
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
9669
9669
  ] }),
9670
9670
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(ij, { control: t, index: d, remove: i }) }, c.id))
9671
9671
  ] });
@@ -9733,7 +9733,7 @@ function oj({
9733
9733
  ] }) });
9734
9734
  }
9735
9735
  function lj(t) {
9736
- const e = Oe(bn(t, "variables"));
9736
+ const e = Pe(bn(t, "variables"));
9737
9737
  return e.stats = bn(e.stats, "variables"), e;
9738
9738
  }
9739
9739
  function cj(t) {
@@ -10146,7 +10146,7 @@ const kj = {
10146
10146
  createConfig() {
10147
10147
  return {
10148
10148
  version: 18,
10149
- config: Oe(Oi)
10149
+ config: Pe(Oi)
10150
10150
  };
10151
10151
  },
10152
10152
  triggers: [Pi]
@@ -10304,7 +10304,7 @@ function Ej(t) {
10304
10304
  const Xi = {
10305
10305
  series: [Ej("Funnel")]
10306
10306
  };
10307
- ae.use([Dh, Et, ot, lt, ct, Ke]);
10307
+ ie.use([Dh, Et, ot, lt, ct, Ke]);
10308
10308
  function Fj({
10309
10309
  conf: t,
10310
10310
  data: e,
@@ -10312,7 +10312,7 @@ function Fj({
10312
10312
  height: s
10313
10313
  }) {
10314
10314
  const i = L.useMemo(() => Rj(t, e), [t, e]);
10315
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: i, style: {
10315
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: i, style: {
10316
10316
  width: n,
10317
10317
  height: s
10318
10318
  }, notMerge: !0, theme: "merico-light" });
@@ -10881,7 +10881,7 @@ const rv = ({
10881
10881
  const [n, {
10882
10882
  setTrue: s,
10883
10883
  setFalse: i
10884
- }] = Ee(), [a, o] = V(t), l = () => {
10884
+ }] = Re(), [a, o] = V(t), l = () => {
10885
10885
  i();
10886
10886
  const {
10887
10887
  type: h,
@@ -11159,7 +11159,7 @@ const Pc = {
11159
11159
  },
11160
11160
  name: "Value",
11161
11161
  data_key: "",
11162
- value_formatter: Ve,
11162
+ value_formatter: Oe,
11163
11163
  label: {
11164
11164
  show: !1,
11165
11165
  fontSize: 10
@@ -11169,7 +11169,7 @@ const Pc = {
11169
11169
  metrics: []
11170
11170
  }
11171
11171
  };
11172
- ae.use([Et, ns, ot, lt, ct, hr, Ke]);
11172
+ ie.use([Et, ns, ot, lt, ct, hr, Ke]);
11173
11173
  function fv({
11174
11174
  conf: t,
11175
11175
  data: e,
@@ -11194,7 +11194,7 @@ function fv({
11194
11194
  }, [o, l, i]), d = T(() => ({
11195
11195
  click: c
11196
11196
  }), [c]), u = L.useMemo(() => pv(t, e, a, n, s), [t, e, n, s]);
11197
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: u, style: {
11197
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: u, style: {
11198
11198
  width: n,
11199
11199
  height: s
11200
11200
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -11281,7 +11281,7 @@ const yv = ({
11281
11281
  }, ...s }) })
11282
11282
  ] }),
11283
11283
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
11284
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
11284
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
11285
11285
  top: 15,
11286
11286
  right: 5
11287
11287
  }, children: "Delete this Metric" })
@@ -11327,7 +11327,7 @@ const yv = ({
11327
11327
  }, children: [
11328
11328
  /* @__PURE__ */ r.jsxs(m.List, { children: [
11329
11329
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
11330
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
11330
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
11331
11331
  ] }),
11332
11332
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(yv, { control: t, index: p, remove: i }, h.id) }, h.id))
11333
11333
  ] })
@@ -11369,7 +11369,7 @@ const wv = ({
11369
11369
  const [s, {
11370
11370
  setTrue: i,
11371
11371
  setFalse: a
11372
- }] = Ee(), [o, l] = V(t);
11372
+ }] = Re(), [o, l] = V(t);
11373
11373
  E(() => {
11374
11374
  l(t);
11375
11375
  }, [t]);
@@ -11744,7 +11744,7 @@ const Nc = {
11744
11744
  name: "Value",
11745
11745
  nameAlignment: "left",
11746
11746
  color: "#228be6",
11747
- label_formatter: Ve
11747
+ label_formatter: Oe
11748
11748
  },
11749
11749
  line: {
11750
11750
  name: "Value",
@@ -11999,7 +11999,7 @@ function Wv(t, e, n) {
11999
11999
  }
12000
12000
  };
12001
12001
  }
12002
- ae.use([On, Vn, Et, ot, lt, ct, Ke]);
12002
+ ie.use([On, Vn, Et, ot, lt, ct, Ke]);
12003
12003
  function Gv({
12004
12004
  context: t,
12005
12005
  instance: e
@@ -12025,7 +12025,7 @@ function Gv({
12025
12025
  }, [u, d, c]), p = T(() => ({
12026
12026
  click: h
12027
12027
  }), [h]);
12028
- return !o || !i || !a ? null : /* @__PURE__ */ r.jsx(et, { width: i, height: a, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: l, style: pr(i, a), onEvents: p, notMerge: !0, theme: "merico-light" }) });
12028
+ return !o || !i || !a ? null : /* @__PURE__ */ r.jsx(et, { width: i, height: a, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: l, style: pr(i, a), onEvents: p, notMerge: !0, theme: "merico-light" }) });
12029
12029
  }
12030
12030
  const Qv = [{
12031
12031
  label: "left",
@@ -12305,7 +12305,7 @@ function s0(t) {
12305
12305
  }
12306
12306
  function i0(t) {
12307
12307
  const {
12308
- label_formatter: e = Ve
12308
+ label_formatter: e = Oe
12309
12309
  } = t.bar;
12310
12310
  return {
12311
12311
  ...t,
@@ -12442,7 +12442,7 @@ const u0 = {
12442
12442
  createConfig() {
12443
12443
  return {
12444
12444
  version: 9,
12445
- config: Oe(ea)
12445
+ config: Pe(ea)
12446
12446
  };
12447
12447
  },
12448
12448
  triggers: [Vc]
@@ -12510,7 +12510,7 @@ const u0 = {
12510
12510
  }
12511
12511
  };
12512
12512
  function h0() {
12513
- ae.registerTheme("merico-light", {
12513
+ ie.registerTheme("merico-light", {
12514
12514
  color: Object.values(oi.graphics.multiple),
12515
12515
  visualMap: {
12516
12516
  color: Object.values(oi.graphics.depth).reverse()
@@ -12646,7 +12646,7 @@ const ta = {
12646
12646
  value_field: "",
12647
12647
  color_field: ""
12648
12648
  };
12649
- ae.use([zh, Ke]);
12649
+ ie.use([zh, Ke]);
12650
12650
  function b0({
12651
12651
  conf: t,
12652
12652
  data: e,
@@ -12667,7 +12667,7 @@ function b0({
12667
12667
  }, [a, o, i]), c = L.useMemo(() => m0(t, e, n), [t, e, n]), d = T(() => ({
12668
12668
  click: l
12669
12669
  }), [l]);
12670
- return !n || !s || !c.series.name ? null : /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: c, style: {
12670
+ return !n || !s || !c.series.name ? null : /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: c, style: {
12671
12671
  width: n,
12672
12672
  height: s
12673
12673
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -12791,7 +12791,7 @@ const C0 = {
12791
12791
  createConfig() {
12792
12792
  return {
12793
12793
  version: 3,
12794
- config: Oe(ta)
12794
+ config: Pe(ta)
12795
12795
  };
12796
12796
  },
12797
12797
  triggers: [qc]
@@ -13029,7 +13029,7 @@ function R0(t, e) {
13029
13029
  };
13030
13030
  return _.merge({}, L0, o);
13031
13031
  }
13032
- ae.use([Mh, ot, lt, ct, Ke]);
13032
+ ie.use([Mh, ot, lt, ct, Ke]);
13033
13033
  function E0({
13034
13034
  conf: t,
13035
13035
  data: e,
@@ -13066,7 +13066,7 @@ function E0({
13066
13066
  }, [o, l, i]), d = T(() => ({
13067
13067
  click: c
13068
13068
  }), [c]), u = T(() => R0(fe({}, t, fs), e), [t, e]);
13069
- return !n || !s ? null : /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: u, style: {
13069
+ return !n || !s ? null : /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: u, style: {
13070
13070
  width: n,
13071
13071
  height: s
13072
13072
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -13107,7 +13107,7 @@ function $0({
13107
13107
  }) => /* @__PURE__ */ r.jsx(W, { label: "Color Key", required: !0, clearable: !0, sx: {
13108
13108
  flex: 1
13109
13109
  }, ...s }) }) }),
13110
- /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), children: "Delete" })
13110
+ /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), children: "Delete" })
13111
13111
  ] });
13112
13112
  }
13113
13113
  function P0({
@@ -13203,7 +13203,7 @@ function O0({
13203
13203
  field: s
13204
13204
  }) => /* @__PURE__ */ r.jsx(mt, { ...s }) })
13205
13205
  ] }),
13206
- /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this Metric" })
13206
+ /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this Metric" })
13207
13207
  ] });
13208
13208
  }
13209
13209
  function V0({
@@ -13227,7 +13227,7 @@ function V0({
13227
13227
  name: p,
13228
13228
  data_key: "",
13229
13229
  max: "100",
13230
- formatter: Ve
13230
+ formatter: Oe
13231
13231
  });
13232
13232
  }, c = _.get(o, "0.id", null), [d, u] = V(c);
13233
13233
  E(() => {
@@ -13317,7 +13317,7 @@ function B0(t) {
13317
13317
  name: i = "",
13318
13318
  data_key: a = "",
13319
13319
  max: o = 10,
13320
- formatter: l = Ve
13320
+ formatter: l = Oe
13321
13321
  }) {
13322
13322
  return {
13323
13323
  name: i,
@@ -13866,9 +13866,9 @@ function hw({
13866
13866
  conf: t,
13867
13867
  queryData: e
13868
13868
  }) {
13869
- return /* @__PURE__ */ r.jsxs($e, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
13870
- /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), children: "Regression Info" }) }),
13871
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(uw, { conf: t, queryData: e }) }) })
13869
+ return /* @__PURE__ */ r.jsxs(Fe, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
13870
+ /* @__PURE__ */ r.jsx(Fe.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), children: "Regression Info" }) }),
13871
+ /* @__PURE__ */ r.jsx(Fe.Dropdown, { children: /* @__PURE__ */ r.jsx(Qe, { children: /* @__PURE__ */ r.jsx(uw, { conf: t, queryData: e }) }) })
13872
13872
  ] });
13873
13873
  }
13874
13874
  function pw(t) {
@@ -13891,7 +13891,7 @@ const bs = {
13891
13891
  data_key: "",
13892
13892
  axisLabel: {
13893
13893
  rotate: 0,
13894
- format: Ve,
13894
+ format: Oe,
13895
13895
  overflow: it,
13896
13896
  formatter: {
13897
13897
  ...bs
@@ -13924,7 +13924,7 @@ const bs = {
13924
13924
  y_axis_data_key: "value"
13925
13925
  }
13926
13926
  };
13927
- ae.use([Et, ts, ot, lt, ct, Ke]);
13927
+ ie.use([Et, ts, ot, lt, ct, Ke]);
13928
13928
  function xw({
13929
13929
  context: t
13930
13930
  }) {
@@ -13948,7 +13948,7 @@ function xw({
13948
13948
  };
13949
13949
  return !n || !s || !e ? null : /* @__PURE__ */ r.jsxs(et, { width: n, height: s, children: [
13950
13950
  /* @__PURE__ */ r.jsx(pw, { conf: e, queryData: i }),
13951
- /* @__PURE__ */ r.jsx(Ue, { echarts: ae, onChartReady: l, option: a, style: pr(n, s), notMerge: !0, theme: "merico-light" })
13951
+ /* @__PURE__ */ r.jsx(Ue, { echarts: ie, onChartReady: l, option: a, style: pr(n, s), notMerge: !0, theme: "merico-light" })
13952
13952
  ] });
13953
13953
  }
13954
13954
  const mw = [{
@@ -14042,7 +14042,7 @@ const gw = ({
14042
14042
  const [i, {
14043
14043
  setTrue: a,
14044
14044
  setFalse: o
14045
- }] = Ee(), [l, c] = V(t);
14045
+ }] = Re(), [l, c] = V(t);
14046
14046
  E(() => {
14047
14047
  c(t);
14048
14048
  }, [t]);
@@ -14200,7 +14200,7 @@ function vw(t) {
14200
14200
  x_axis: {
14201
14201
  axisLabel: {
14202
14202
  rotate: 0,
14203
- format: Ve,
14203
+ format: Oe,
14204
14204
  overflow: it,
14205
14205
  formatter: bs
14206
14206
  }
@@ -14274,7 +14274,7 @@ const Cw = {
14274
14274
  createConfig() {
14275
14275
  return {
14276
14276
  version: 3,
14277
- config: Oe(na)
14277
+ config: Pe(na)
14278
14278
  };
14279
14279
  }
14280
14280
  }, ys = {
@@ -14326,7 +14326,7 @@ function Iw(t, e, n, s) {
14326
14326
  const Dw = k(({
14327
14327
  context: t
14328
14328
  }) => {
14329
- const e = Fe(), {
14329
+ const e = Ee(), {
14330
14330
  value: n
14331
14331
  } = G(t.instanceData, "config"), {
14332
14332
  variables: s,
@@ -14514,7 +14514,7 @@ const Aw = {
14514
14514
  createConfig() {
14515
14515
  return {
14516
14516
  version: 1,
14517
- config: Oe(ys)
14517
+ config: Pe(ys)
14518
14518
  };
14519
14519
  }
14520
14520
  }, gr = {
@@ -14603,7 +14603,7 @@ const Jc = {
14603
14603
  name: "Y Axis",
14604
14604
  position: "left",
14605
14605
  nameAlignment: "center",
14606
- label_formatter: Ve,
14606
+ label_formatter: Oe,
14607
14607
  min: "",
14608
14608
  max: "",
14609
14609
  show: !0
@@ -14996,7 +14996,7 @@ function Xw(t, e, n) {
14996
14996
  };
14997
14997
  return fe({}, l, Yw);
14998
14998
  }
14999
- ae.use([Et, On, Vn, ts, ot, lt, ct, Ke, Zr, yi]);
14999
+ ie.use([Et, On, Vn, ts, ot, lt, ct, Ke, Zr, yi]);
15000
15000
  function zo(t) {
15001
15001
  return t.trim().length > 0;
15002
15002
  }
@@ -15019,7 +15019,7 @@ function Jw({
15019
15019
  }, [o, l, i]), d = T(() => ({
15020
15020
  click: c
15021
15021
  }), [c]), u = L.useMemo(() => Xw(t, e, a), [t, e]);
15022
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: u, style: {
15022
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: u, style: {
15023
15023
  width: n,
15024
15024
  height: s
15025
15025
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -15176,7 +15176,7 @@ function n_({
15176
15176
  }, children: [
15177
15177
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15178
15178
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
15179
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15179
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
15180
15180
  ] }),
15181
15181
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(g, { name: `reference_areas.${x}`, control: t, render: ({
15182
15182
  field: y
@@ -15300,7 +15300,7 @@ function i_({
15300
15300
  field: l
15301
15301
  }) => /* @__PURE__ */ r.jsx(He, { ...l }) })
15302
15302
  ] }),
15303
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
15303
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
15304
15304
  top: 15,
15305
15305
  right: 5
15306
15306
  }, children: "Delete this Reference Line" })
@@ -15356,7 +15356,7 @@ function a_({
15356
15356
  }, children: [
15357
15357
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15358
15358
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.toString(), children: x + 1 }, p.id)),
15359
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15359
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
15360
15360
  ] }),
15361
15361
  l.map((p, x) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.toString(), children: /* @__PURE__ */ r.jsx(i_, { control: t, index: x, remove: a, watch: e, variableOptions: d, yAxisOptions: h }) }, p.id))
15362
15362
  ] });
@@ -15380,7 +15380,7 @@ const o_ = ({
15380
15380
  const [n, {
15381
15381
  setTrue: s,
15382
15382
  setFalse: i
15383
- }] = Ee(), [a, o] = V(t), l = () => {
15383
+ }] = Re(), [a, o] = V(t), l = () => {
15384
15384
  i();
15385
15385
  const {
15386
15386
  type: h,
@@ -15505,7 +15505,7 @@ const o_ = ({
15505
15505
  const [n, {
15506
15506
  setTrue: s,
15507
15507
  setFalse: i
15508
- }] = Ee(), [a, o] = V(t), l = () => {
15508
+ }] = Re(), [a, o] = V(t), l = () => {
15509
15509
  i();
15510
15510
  const {
15511
15511
  type: h,
@@ -15700,7 +15700,7 @@ const __ = ({
15700
15700
  }, ...s }) })
15701
15701
  ] }),
15702
15702
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
15703
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
15703
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
15704
15704
  top: 15,
15705
15705
  right: 5
15706
15706
  }, children: "Delete this Metric" })
@@ -15745,7 +15745,7 @@ const __ = ({
15745
15745
  }, children: [
15746
15746
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15747
15747
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
15748
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15748
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
15749
15749
  ] }),
15750
15750
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(__, { control: t, index: p, remove: i }, h.id) }, h.id))
15751
15751
  ] })
@@ -15804,7 +15804,7 @@ const T_ = ({
15804
15804
  const [s, {
15805
15805
  setTrue: i,
15806
15806
  setFalse: a
15807
- }] = Ee(), [o, l] = V(t);
15807
+ }] = Re(), [o, l] = V(t);
15808
15808
  E(() => {
15809
15809
  l(t);
15810
15810
  }, [t]);
@@ -15955,7 +15955,7 @@ function L_({
15955
15955
  }) => /* @__PURE__ */ r.jsx(I, { label: "Max", ...s }) })
15956
15956
  ] })
15957
15957
  ] }),
15958
- /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this YAxis" })
15958
+ /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this YAxis" })
15959
15959
  ] });
15960
15960
  }
15961
15961
  function A_({
@@ -15974,7 +15974,7 @@ function A_({
15974
15974
  ...a[d]
15975
15975
  })), l = () => s({
15976
15976
  name: "",
15977
- label_formatter: Ve,
15977
+ label_formatter: Oe,
15978
15978
  min: "",
15979
15979
  max: "",
15980
15980
  show: !0,
@@ -15992,7 +15992,7 @@ function A_({
15992
15992
  }, children: [
15993
15993
  /* @__PURE__ */ r.jsxs(m.List, { children: [
15994
15994
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
15995
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
15995
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
15996
15996
  ] }),
15997
15997
  o.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(L_, { control: t, index: d, remove: i }) }, c.id))
15998
15998
  ] });
@@ -16268,7 +16268,7 @@ const W_ = {
16268
16268
  createConfig() {
16269
16269
  return {
16270
16270
  version: 9,
16271
- config: Oe(sa)
16271
+ config: Pe(sa)
16272
16272
  };
16273
16273
  },
16274
16274
  triggers: [Xc]
@@ -16327,7 +16327,7 @@ function H_(t) {
16327
16327
  };
16328
16328
  }
16329
16329
  function U_(t) {
16330
- const e = Oe(t), n = te(e, "color.valueRange");
16330
+ const e = Pe(t), n = te(e, "color.valueRange");
16331
16331
  return n !== void 0 && gi(e, "color.valueRange", n.map((s) => Number(s))), e;
16332
16332
  }
16333
16333
  class K_ extends we {
@@ -16375,7 +16375,7 @@ const Y_ = {
16375
16375
  }, J_ = k(({
16376
16376
  context: t
16377
16377
  }) => {
16378
- const e = Fe(), {
16378
+ const e = Ee(), {
16379
16379
  value: n = ia
16380
16380
  } = G(t.instanceData, "config"), {
16381
16381
  variables: s
@@ -16640,7 +16640,7 @@ function uC(t, e, n) {
16640
16640
  };
16641
16641
  return fe({}, i, dC);
16642
16642
  }
16643
- ae.use([Lh, Ke]);
16643
+ ie.use([Lh, Ke]);
16644
16644
  function hC({
16645
16645
  context: t
16646
16646
  }) {
@@ -16652,7 +16652,7 @@ function hC({
16652
16652
  width: a,
16653
16653
  height: o
16654
16654
  } = t.viewport, l = T(() => uC(s, i, e), [s, i, e]);
16655
- return !a || !o ? null : /* @__PURE__ */ r.jsx(et, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: l, style: pr(a, o), notMerge: !0, theme: "merico-light" }) });
16655
+ return !a || !o ? null : /* @__PURE__ */ r.jsx(et, { width: a, height: o, children: /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: l, style: pr(a, o), notMerge: !0, theme: "merico-light" }) });
16656
16656
  }
16657
16657
  function pC({
16658
16658
  control: t,
@@ -16746,7 +16746,7 @@ const xC = [{
16746
16746
  )
16747
16747
  ] }),
16748
16748
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
16749
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
16749
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
16750
16750
  top: 15,
16751
16751
  right: 5
16752
16752
  }, children: "Delete this Level" })
@@ -16799,7 +16799,7 @@ const xC = [{
16799
16799
  }, children: [
16800
16800
  /* @__PURE__ */ r.jsxs(m.List, { children: [
16801
16801
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: p }, h.id)),
16802
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
16802
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
16803
16803
  ] }),
16804
16804
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(fC, { control: t, index: p, remove: i }, h.id) }, h.id))
16805
16805
  ] })
@@ -16946,7 +16946,7 @@ const CC = {
16946
16946
  createConfig() {
16947
16947
  return {
16948
16948
  version: 5,
16949
- config: Oe(aa)
16949
+ config: Pe(aa)
16950
16950
  };
16951
16951
  }
16952
16952
  };
@@ -17312,23 +17312,23 @@ function QC({
17312
17312
  } = s, {
17313
17313
  classes: u,
17314
17314
  cx: h
17315
- } = TC(), p = L.useMemo(() => l ? !Array.isArray(t) || t.length === 0 ? [] : Object.keys(t[0]).map((Me) => ({
17316
- id: Me,
17317
- label: Me,
17318
- value_field: Me,
17315
+ } = TC(), p = L.useMemo(() => l ? !Array.isArray(t) || t.length === 0 ? [] : Object.keys(t[0]).map((ze) => ({
17316
+ id: ze,
17317
+ label: ze,
17318
+ value_field: ze,
17319
17319
  value_type: jt.string,
17320
17320
  align: "left",
17321
17321
  width: "",
17322
17322
  cellBackgroundColor: ""
17323
17323
  })) : c, [l, c, t]), x = GC({
17324
- getColIndex: Be((Me) => p.indexOf(Me.column.columnDef.meta), [p]),
17324
+ getColIndex: Be((ze) => p.indexOf(ze.column.columnDef.meta), [p]),
17325
17325
  vizManager: i.vizManager,
17326
17326
  instance: a
17327
17327
  }), y = T(() => {
17328
- const Me = Fl();
17328
+ const ze = Fl();
17329
17329
  return p.map((yt) => {
17330
17330
  const Ss = Yx(yt.value_field);
17331
- return Me.accessor(Ss.columnKey, {
17331
+ return ze.accessor(Ss.columnKey, {
17332
17332
  cell: (Wn) => /* @__PURE__ */ r.jsx($C, { tableCellContext: x(Wn.cell), value: Wn.getValue(), type: yt.value_type, ...yt }),
17333
17333
  header: yt.label,
17334
17334
  enableSorting: !0,
@@ -17348,7 +17348,7 @@ function QC({
17348
17348
  getSortedRowModel: _p()
17349
17349
  }), {
17350
17350
  rows: q
17351
- } = P.getRowModel(), re = L.useRef(null), be = q.length, ne = be > 0, _e = ne ? n - 22 : n, Te = ne ? 22 : 0;
17351
+ } = P.getRowModel(), oe = L.useRef(null), be = q.length, ne = be > 0, _e = ne ? n - 22 : n, ke = ne ? 22 : 0;
17352
17352
  return nl("VizTableComponent", {
17353
17353
  queryData: t,
17354
17354
  width: e,
@@ -17361,8 +17361,8 @@ function QC({
17361
17361
  tableColumns: y,
17362
17362
  table: P,
17363
17363
  rows: q,
17364
- tableContainerRef: re
17365
- }), /* @__PURE__ */ r.jsxs("div", { ref: re, style: {
17364
+ tableContainerRef: oe
17365
+ }), /* @__PURE__ */ r.jsxs("div", { ref: oe, style: {
17366
17366
  height: n,
17367
17367
  width: e,
17368
17368
  padding: "0 5px"
@@ -17380,11 +17380,11 @@ function QC({
17380
17380
  maxHeight: _e
17381
17381
  }, ...d, striped: s.striped, children: [
17382
17382
  /* @__PURE__ */ r.jsx("thead", { className: u.thead, style: {
17383
- top: Te
17384
- }, children: P.getHeaderGroups().map((Me) => /* @__PURE__ */ r.jsx("tr", { children: Me.headers.map((on) => /* @__PURE__ */ r.jsx("th", { style: {
17383
+ top: ke
17384
+ }, children: P.getHeaderGroups().map((ze) => /* @__PURE__ */ r.jsx("tr", { children: ze.headers.map((on) => /* @__PURE__ */ r.jsx("th", { style: {
17385
17385
  width: on.getSize()
17386
- }, children: /* @__PURE__ */ r.jsx(SC, { header: on, cx: h }) }, on.id)) }, Me.id)) }),
17387
- /* @__PURE__ */ r.jsx(PC, { tableContainerRef: re, rows: q })
17386
+ }, children: /* @__PURE__ */ r.jsx(SC, { header: on, cx: h }) }, on.id)) }, ze.id)) }),
17387
+ /* @__PURE__ */ r.jsx(PC, { tableContainerRef: oe, rows: q })
17388
17388
  ] })
17389
17389
  ] });
17390
17390
  }
@@ -17498,7 +17498,7 @@ function XC(t) {
17498
17498
  } = ad(), [o, l] = V(i), [c, {
17499
17499
  setTrue: d,
17500
17500
  setFalse: u
17501
- }] = Ee(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
17501
+ }] = Re(!1), h = s % 2 === 1, p = h && i != null, x = !h && i != null, y = `map ${i} to color ${s}`, S = () => {
17502
17502
  l(i), u();
17503
17503
  }, D = () => {
17504
17504
  u(), e == null || e(o);
@@ -17547,7 +17547,7 @@ const JC = k(({
17547
17547
  } = t, i = s.getColorInterpolations(), [a, o] = V(e), l = s.decodeInterpolation(a.interpolation) || i[0], [c, {
17548
17548
  setTrue: d,
17549
17549
  setFalse: u
17550
- }] = Ee(), h = i.map((D) => ({
17550
+ }] = Re(), h = i.map((D) => ({
17551
17551
  label: D.displayName,
17552
17552
  value: s.encodeColor(D),
17553
17553
  group: D.category
@@ -17639,7 +17639,7 @@ const iS = de((t, e) => {
17639
17639
  const [s, {
17640
17640
  setTrue: i,
17641
17641
  setFalse: a
17642
- }] = Ee(), [o, l] = V(t), c = () => {
17642
+ }] = Re(), [o, l] = V(t), c = () => {
17643
17643
  a(), e(o);
17644
17644
  }, d = () => {
17645
17645
  a(), l(t);
@@ -17731,7 +17731,7 @@ const iS = de((t, e) => {
17731
17731
  field: o
17732
17732
  }) => /* @__PURE__ */ r.jsx(iS, { ...o }) }),
17733
17733
  /* @__PURE__ */ r.jsx(z, { mb: 4, mt: 12, variant: "dashed" }),
17734
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: "Delete this column" })
17734
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: "Delete this column" })
17735
17735
  ] });
17736
17736
  }, hS = ({
17737
17737
  control: t,
@@ -17774,7 +17774,7 @@ const iS = de((t, e) => {
17774
17774
  }, children: [
17775
17775
  /* @__PURE__ */ r.jsxs(m.List, { children: [
17776
17776
  n.map((c, d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.toString(), children: d + 1 }, c.id)),
17777
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
17777
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: o, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
17778
17778
  ] }),
17779
17779
  n.map((c, d) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.toString(), children: /* @__PURE__ */ r.jsx(uS, { control: t, watch: e, index: d, column: c, remove: i }) }, c.id))
17780
17780
  ] }) })
@@ -17990,7 +17990,7 @@ const li = {
17990
17990
  createConfig() {
17991
17991
  return {
17992
17992
  version: 5,
17993
- config: Oe(rd)
17993
+ config: Pe(rd)
17994
17994
  };
17995
17995
  },
17996
17996
  displayName: "Table",
@@ -18009,7 +18009,7 @@ const li = {
18009
18009
  }, jS = k(({
18010
18010
  context: t
18011
18011
  }) => {
18012
- const e = Fe(), {
18012
+ const e = Ee(), {
18013
18013
  value: n = la
18014
18014
  } = G(t.instanceData, "config"), {
18015
18015
  variables: s
@@ -18082,7 +18082,7 @@ const cd = L.forwardRef(vS), wS = ({
18082
18082
  const [s, {
18083
18083
  setTrue: i,
18084
18084
  setFalse: a
18085
- }] = Ee(), [o, l] = V(t), c = () => {
18085
+ }] = Re(), [o, l] = V(t), c = () => {
18086
18086
  a(), e(o);
18087
18087
  }, d = () => {
18088
18088
  a(), l(t);
@@ -18213,7 +18213,7 @@ const TS = {
18213
18213
  createConfig() {
18214
18214
  return {
18215
18215
  version: 1,
18216
- config: Oe(la)
18216
+ config: Pe(la)
18217
18217
  };
18218
18218
  }
18219
18219
  }, IS = () => /* @__PURE__ */ r.jsxs("svg", { width: "64", height: "64", viewBox: "0 0 64 64", fill: "none", children: [
@@ -18389,7 +18389,7 @@ const ES = {
18389
18389
  createConfig() {
18390
18390
  return {
18391
18391
  version: 1,
18392
- config: Oe(ca)
18392
+ config: Pe(ca)
18393
18393
  };
18394
18394
  }
18395
18395
  };
@@ -18650,13 +18650,13 @@ const dd = {
18650
18650
  },
18651
18651
  name: "Value",
18652
18652
  data_key: "",
18653
- value_formatter: Ve
18653
+ value_formatter: Oe
18654
18654
  },
18655
18655
  tooltip: {
18656
18656
  metrics: []
18657
18657
  }
18658
18658
  };
18659
- ae.use([Et, On, Vn, ns, bh, ot, lt, ct, hr, Ke]);
18659
+ ie.use([Et, On, Vn, ns, bh, ot, lt, ct, hr, Ke]);
18660
18660
  function XS({
18661
18661
  name: t
18662
18662
  }, e) {
@@ -18687,7 +18687,7 @@ function JS({
18687
18687
  click: c,
18688
18688
  legendselectchanged: XS
18689
18689
  }), [c]), u = L.useMemo(() => US(t, e, a), [t, e]);
18690
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: u, style: {
18690
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: u, style: {
18691
18691
  width: n,
18692
18692
  height: s
18693
18693
  }, onEvents: d, notMerge: !0, opts: {
@@ -18760,7 +18760,7 @@ const t1 = ({
18760
18760
  }, ...s }) })
18761
18761
  ] }),
18762
18762
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
18763
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
18763
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
18764
18764
  top: 15,
18765
18765
  right: 5
18766
18766
  }, children: "Delete this Metric" })
@@ -18806,7 +18806,7 @@ const t1 = ({
18806
18806
  }, children: [
18807
18807
  /* @__PURE__ */ r.jsxs(m.List, { children: [
18808
18808
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
18809
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
18809
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
18810
18810
  ] }),
18811
18811
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(t1, { control: t, index: p, remove: i }, h.id) }, h.id))
18812
18812
  ] })
@@ -18999,7 +18999,7 @@ const d1 = {
18999
18999
  name: "X Axis",
19000
19000
  data_key: "",
19001
19001
  position: "bottom",
19002
- label_formatter: Ve,
19002
+ label_formatter: Oe,
19003
19003
  show: !0
19004
19004
  }],
19005
19005
  y_axis: {
@@ -19028,7 +19028,7 @@ function u1() {
19028
19028
  name: t,
19029
19029
  data_key: "",
19030
19030
  position: "bottom",
19031
- label_formatter: Ve,
19031
+ label_formatter: Oe,
19032
19032
  show: !0
19033
19033
  };
19034
19034
  }
@@ -19235,14 +19235,14 @@ function w1({
19235
19235
  value_data_key: e,
19236
19236
  valueTypedXAxis: y
19237
19237
  }), q;
19238
- const re = v1({
19238
+ const oe = v1({
19239
19239
  group_by_key: a,
19240
19240
  data: S,
19241
19241
  name_data_key: t.data_key,
19242
19242
  value_data_key: e
19243
19243
  });
19244
- return Object.entries(re).map(([be, ne]) => {
19245
- const _e = Oe(q);
19244
+ return Object.entries(oe).map(([be, ne]) => {
19245
+ const _e = Pe(q);
19246
19246
  return _e.name = be, _e.color = void 0, _e.data = ne, _e;
19247
19247
  });
19248
19248
  }
@@ -19391,7 +19391,7 @@ function z1(t, e, n) {
19391
19391
  legend: f1(c)
19392
19392
  };
19393
19393
  }
19394
- ae.use([Et, On, Vn, ts, ot, lt, ct, Ke, Zr, yi]);
19394
+ ie.use([Et, On, Vn, ts, ot, lt, ct, Ke, Zr, yi]);
19395
19395
  function M1({
19396
19396
  conf: t,
19397
19397
  data: e,
@@ -19413,7 +19413,7 @@ function M1({
19413
19413
  }, [o, l, i]), d = T(() => ({
19414
19414
  click: c
19415
19415
  }), [c]), u = L.useMemo(() => z1(t, e, a), [t, e]);
19416
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: u, style: {
19416
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: u, style: {
19417
19417
  width: n,
19418
19418
  height: s
19419
19419
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -19545,7 +19545,7 @@ function E1({
19545
19545
  /* @__PURE__ */ r.jsx(g, { name: `reference_lines.${e}.show_in_legend`, control: t, render: ({
19546
19546
  field: l
19547
19547
  }) => /* @__PURE__ */ r.jsx(U, { label: "Show in legend", checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }),
19548
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
19548
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
19549
19549
  top: 15,
19550
19550
  right: 5
19551
19551
  }, children: "Delete this Reference Line" })
@@ -19589,7 +19589,7 @@ function F1({
19589
19589
  }, children: [
19590
19590
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19591
19591
  l.map((x, y) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.id, children: x.name }, x.id)),
19592
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
19592
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: c, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
19593
19593
  ] }),
19594
19594
  l.map((x, y) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.id, children: /* @__PURE__ */ r.jsx(E1, { control: t, index: y, remove: a, watch: e, variableOptions: d, xAxisOptions: h }) }, x.id))
19595
19595
  ] });
@@ -19764,7 +19764,7 @@ function N1({
19764
19764
  field: a
19765
19765
  }) => /* @__PURE__ */ r.jsx(U, { label: "Invisible", checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }),
19766
19766
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
19767
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
19767
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
19768
19768
  top: 15,
19769
19769
  right: 5
19770
19770
  }, children: "Delete this Series" })
@@ -19809,7 +19809,7 @@ function B1({
19809
19809
  }, children: [
19810
19810
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19811
19811
  o.map((x) => /* @__PURE__ */ r.jsx(m.Tab, { value: x.id, children: x.name }, x.id)),
19812
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
19812
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
19813
19813
  ] }),
19814
19814
  o.map((x, y) => /* @__PURE__ */ r.jsx(m.Panel, { value: x.id, children: /* @__PURE__ */ r.jsx(N1, { control: t, index: y, remove: i, seriesItem: x, xAxisOptions: d }, x.id) }, x.id))
19815
19815
  ] });
@@ -19865,7 +19865,7 @@ function W1({
19865
19865
  /* @__PURE__ */ r.jsx(g, { name: `x_axes.${e}.show`, control: t, render: ({
19866
19866
  field: s
19867
19867
  }) => /* @__PURE__ */ r.jsx(U, { label: "Visible", checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
19868
- /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this X Axis" })
19868
+ /* @__PURE__ */ r.jsx(C, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), disabled: e === 0, children: "Delete this X Axis" })
19869
19869
  ] });
19870
19870
  }
19871
19871
  function G1({
@@ -19897,7 +19897,7 @@ function G1({
19897
19897
  }, children: [
19898
19898
  /* @__PURE__ */ r.jsxs(m.List, { children: [
19899
19899
  o.map((d) => /* @__PURE__ */ r.jsx(m.Tab, { value: d.id, children: d.name }, d.id)),
19900
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
19900
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
19901
19901
  ] }),
19902
19902
  o.map((d, u) => /* @__PURE__ */ r.jsx(m.Panel, { value: d.id, children: /* @__PURE__ */ r.jsx(W1, { control: t, index: u, remove: i }) }, d.id))
19903
19903
  ] });
@@ -20675,9 +20675,9 @@ const xk = {
20675
20675
  }
20676
20676
  };
20677
20677
  function gk() {
20678
- return /* @__PURE__ */ r.jsxs($e, { width: 400, shadow: "md", children: [
20679
- /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), children: "指标说明" }) }),
20680
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(Ze, { fontSize: 14, sx: fk, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
20678
+ return /* @__PURE__ */ r.jsxs(Fe, { width: 400, shadow: "md", children: [
20679
+ /* @__PURE__ */ r.jsx(Fe.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(wn, { size: 14 }), children: "指标说明" }) }),
20680
+ /* @__PURE__ */ r.jsx(Fe.Dropdown, { children: /* @__PURE__ */ r.jsx(Ze, { fontSize: 14, sx: fk, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
20681
20681
  /* @__PURE__ */ r.jsxs("tr", { children: [
20682
20682
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
20683
20683
  /* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -20695,7 +20695,7 @@ function bk(t) {
20695
20695
  /* @__PURE__ */ r.jsx(mk, { ...t })
20696
20696
  ] });
20697
20697
  }
20698
- ae.use([On, Vn, ns, ot, lt, ct, Ke, hr]);
20698
+ ie.use([On, Vn, ns, ot, lt, ct, Ke, hr]);
20699
20699
  function yk({
20700
20700
  conf: t,
20701
20701
  data: e,
@@ -20704,7 +20704,7 @@ function yk({
20704
20704
  metricKey: i
20705
20705
  }) {
20706
20706
  const a = L.useMemo(() => pk(t, i, e), [t, e, i]);
20707
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: a, style: {
20707
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: a, style: {
20708
20708
  width: n,
20709
20709
  height: s
20710
20710
  }, notMerge: !0, theme: "merico-light" });
@@ -20780,7 +20780,7 @@ const wk = ({
20780
20780
  }, ...s }) })
20781
20781
  ] }),
20782
20782
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
20783
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
20783
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
20784
20784
  top: 15,
20785
20785
  right: 5
20786
20786
  }, children: "Delete this Metric" })
@@ -20826,7 +20826,7 @@ const wk = ({
20826
20826
  }, children: [
20827
20827
  /* @__PURE__ */ r.jsxs(m.List, { children: [
20828
20828
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
20829
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
20829
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
20830
20830
  ] }),
20831
20831
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(wk, { control: t, index: p, remove: i }, h.id) }, h.id))
20832
20832
  ] })
@@ -21004,7 +21004,7 @@ function Dk() {
21004
21004
  value: "",
21005
21005
  basis: ""
21006
21006
  },
21007
- formatter: Ve,
21007
+ formatter: Oe,
21008
21008
  postfix: {
21009
21009
  type: "text",
21010
21010
  value: ""
@@ -21029,7 +21029,7 @@ const Fo = ({
21029
21029
  data_keys: s,
21030
21030
  formatter: i,
21031
21031
  postfix: a
21032
- } = t, o = Fe(), l = T(() => {
21032
+ } = t, o = Ee(), l = T(() => {
21033
21033
  if (a.type === "text" && a.value)
21034
21034
  return a.value;
21035
21035
  if (a.type === "filter-option-label" && a.value) {
@@ -21155,7 +21155,7 @@ function Rk({
21155
21155
  position: "absolute",
21156
21156
  top: 15,
21157
21157
  right: 5
21158
- }, disabled: e === 0, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
21158
+ }, disabled: e === 0, children: /* @__PURE__ */ r.jsx(ae, { size: 16 }) })
21159
21159
  ] });
21160
21160
  }
21161
21161
  const Ek = ({
@@ -21413,7 +21413,7 @@ const Wk = ({
21413
21413
  }, ...s }) })
21414
21414
  ] }),
21415
21415
  /* @__PURE__ */ r.jsx(z, { mb: -10, mt: 10, variant: "dashed" }),
21416
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
21416
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: () => n(e), sx: {
21417
21417
  top: 15,
21418
21418
  right: 5
21419
21419
  }, children: "Delete this Metric" })
@@ -21459,7 +21459,7 @@ const Wk = ({
21459
21459
  }, children: [
21460
21460
  /* @__PURE__ */ r.jsxs(m.List, { children: [
21461
21461
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Tab, { value: h.id, children: h.name ? h.name : p }, h.id)),
21462
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
21462
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: l, value: "add", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
21463
21463
  ] }),
21464
21464
  o.map((h, p) => /* @__PURE__ */ r.jsx(m.Panel, { value: h.id, children: /* @__PURE__ */ r.jsx(Wk, { control: t, index: p, remove: i }, h.id) }, h.id))
21465
21465
  ] })
@@ -21501,7 +21501,7 @@ const Hk = ({
21501
21501
  const [s, {
21502
21502
  setTrue: i,
21503
21503
  setFalse: a
21504
- }] = Ee(), [o, l] = V(t);
21504
+ }] = Re(), [o, l] = V(t);
21505
21505
  E(() => {
21506
21506
  l(t);
21507
21507
  }, [t]);
@@ -21686,7 +21686,7 @@ const xa = {
21686
21686
  },
21687
21687
  name: "Value",
21688
21688
  data_key: "",
21689
- value_formatter: Ve,
21689
+ value_formatter: Oe,
21690
21690
  label: {
21691
21691
  show: !1,
21692
21692
  fontSize: 10
@@ -22061,7 +22061,7 @@ function hT(t, e, n) {
22061
22061
  };
22062
22062
  return fe({}, o, uT);
22063
22063
  }
22064
- ae.use([Et, ns, ot, lt, ct, hr, Ke]);
22064
+ ie.use([Et, ns, ot, lt, ct, hr, Ke]);
22065
22065
  function pT({
22066
22066
  conf: t,
22067
22067
  data: e,
@@ -22086,7 +22086,7 @@ function pT({
22086
22086
  }, [o, l, i]), d = T(() => ({
22087
22087
  click: c
22088
22088
  }), [c]), u = L.useMemo(() => hT(t, e, a), [t, e]);
22089
- return /* @__PURE__ */ r.jsx(Ue, { echarts: ae, option: u, style: {
22089
+ return /* @__PURE__ */ r.jsx(Ue, { echarts: ie, option: u, style: {
22090
22090
  width: n,
22091
22091
  height: s
22092
22092
  }, onEvents: d, notMerge: !0, theme: "merico-light" });
@@ -22186,7 +22186,7 @@ const fT = {
22186
22186
  viz: [li, nC, TS, Aw, CC, C0, Y1, am, Yf, Kj, Lv, d1, u0, kj, W_, K0, Cw, ES, Ik, fT, Bk, dg],
22187
22187
  color: [...gT, ...bT]
22188
22188
  }
22189
- }), Kn = new Ux(), De = {
22189
+ }), Kn = new Ux(), Ie = {
22190
22190
  pluginManager: Vt("pluginManager"),
22191
22191
  vizManager: Vt("vizManager"),
22192
22192
  colorManager: Vt("colorManager"),
@@ -22502,12 +22502,12 @@ const yT = ({
22502
22502
  unstyled: s
22503
22503
  }), [y, S] = V(!1), D = (ne) => {
22504
22504
  S(ne);
22505
- }, P = y && (l == null ? void 0 : l.length) > 0, [q, re] = V(""), be = T(() => {
22505
+ }, P = y && (l == null ? void 0 : l.length) > 0, [q, oe] = V(""), be = T(() => {
22506
22506
  if (!q)
22507
22507
  return d;
22508
- const ne = q.toLowerCase(), _e = (Te) => {
22509
- var Me;
22510
- return ((Me = Te.description) == null ? void 0 : Me.toLowerCase().includes(ne)) || Te.label.toLowerCase().includes(ne);
22508
+ const ne = q.toLowerCase(), _e = (ke) => {
22509
+ var ze;
22510
+ return ((ze = ke.description) == null ? void 0 : ze.toLowerCase().includes(ne)) || ke.label.toLowerCase().includes(ne);
22511
22511
  };
22512
22512
  return d.filter(_e);
22513
22513
  }, [q, d]);
@@ -22519,7 +22519,7 @@ const yT = ({
22519
22519
  ] }),
22520
22520
  P && /* @__PURE__ */ r.jsx(ge, { label: `${l.length} selected`, children: /* @__PURE__ */ r.jsx(tr, { children: l.length }) })
22521
22521
  ] }),
22522
- /* @__PURE__ */ r.jsx(kp, { disabled: t, allowClear: !0, className: x(p.root, "check-select"), dropdownClassName: x(p.dropdown, ""), onDropdownVisibleChange: D, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Xo, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(gd, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ne) => `${ne.length} selected`, searchValue: q, onSearch: re, filterOption: !1, children: be.map((ne) => /* @__PURE__ */ r.jsxs(Tp, { title: ne.label, children: [
22522
+ /* @__PURE__ */ r.jsx(kp, { disabled: t, allowClear: !0, className: x(p.root, "check-select"), dropdownClassName: x(p.dropdown, ""), onDropdownVisibleChange: D, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Xo, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(gd, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ne) => `${ne.length} selected`, searchValue: q, onSearch: oe, filterOption: !1, children: be.map((ne) => /* @__PURE__ */ r.jsxs(Tp, { title: ne.label, children: [
22523
22523
  /* @__PURE__ */ r.jsx(j, { size: "sm", "data-role": "label", children: ne.label }),
22524
22524
  ne.description && /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", "data-role": "description", children: ne.description })
22525
22525
  ] }, ne.value)) })
@@ -22530,7 +22530,7 @@ const yT = ({
22530
22530
  value: n,
22531
22531
  onChange: s
22532
22532
  }) => {
22533
- const i = Fe(), a = !!e.options_query_id, {
22533
+ const i = Ee(), a = !!e.options_query_id, {
22534
22534
  state: o,
22535
22535
  error: l
22536
22536
  } = i.getDataStuffByID(e.options_query_id), c = o === "loading", d = e.min_width ? e.min_width : "200px", u = a ? c : !1, h = (p) => s(p, !1);
@@ -22553,7 +22553,7 @@ const yT = ({
22553
22553
  value: n,
22554
22554
  onChange: s
22555
22555
  }) => {
22556
- const i = Fe(), a = !!e.options_query_id, {
22556
+ const i = Ee(), a = !!e.options_query_id, {
22557
22557
  state: o,
22558
22558
  error: l
22559
22559
  } = i.getDataStuffByID(e.options_query_id), c = o === "loading";
@@ -22875,8 +22875,8 @@ const TT = ({
22875
22875
  classNames: e,
22876
22876
  styles: n,
22877
22877
  unstyled: s
22878
- }), [S, D] = V(!1), P = (re) => {
22879
- D(re);
22878
+ }), [S, D] = V(!1), P = (oe) => {
22879
+ D(oe);
22880
22880
  }, q = S && (l == null ? void 0 : l.length) > 0;
22881
22881
  return /* @__PURE__ */ r.jsxs(w, { spacing: 3, children: [
22882
22882
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
@@ -22892,6 +22892,7 @@ const TT = ({
22892
22892
  disabled: t,
22893
22893
  allowClear: !0,
22894
22894
  treeCheckStrictly: p,
22895
+ labelInValue: !0,
22895
22896
  className: y(x.root, "check-select"),
22896
22897
  dropdownClassName: y(x.dropdown, ""),
22897
22898
  onDropdownVisibleChange: P,
@@ -22913,7 +22914,7 @@ const TT = ({
22913
22914
  onChange: c,
22914
22915
  onSelect: console.log,
22915
22916
  maxTagCount: 0,
22916
- maxTagPlaceholder: (re) => `${re.length} selected`
22917
+ maxTagPlaceholder: () => `${l.length} selected`
22917
22918
  }
22918
22919
  )
22919
22920
  ] });
@@ -22927,26 +22928,21 @@ const TT = ({
22927
22928
  treeData: i,
22928
22929
  treeDataLoading: a,
22929
22930
  errorMessage: o
22930
- } = e, l = e.min_width ? e.min_width : "200px", d = !!e.options_query_id ? a : !1;
22931
- return /* @__PURE__ */ r.jsx(
22932
- LT,
22933
- {
22934
- disabled: d,
22935
- style: {
22936
- minWidth: "160px",
22937
- width: l,
22938
- maxWidth: d ? l : "unset",
22939
- borderColor: "#e9ecef"
22940
- },
22941
- value: n,
22942
- onChange: (u) => s(u, !1),
22943
- treeData: i,
22944
- errorMessage: o,
22945
- label: t,
22946
- required: e.required,
22947
- treeCheckStrictly: e.treeCheckStrictly
22948
- }
22949
- );
22931
+ } = e, [l, c] = V(e.valueObjects(n)), d = (x) => {
22932
+ c(x);
22933
+ const y = x.map((S) => S.value);
22934
+ s(y, !1);
22935
+ };
22936
+ E(() => {
22937
+ c(e.valueObjects(n));
22938
+ }, [n]);
22939
+ const u = e.min_width ? e.min_width : "200px", p = !!e.options_query_id ? a : !1;
22940
+ return /* @__PURE__ */ r.jsx(LT, { disabled: p, style: {
22941
+ minWidth: "160px",
22942
+ width: u,
22943
+ maxWidth: p ? u : "unset",
22944
+ borderColor: "#e9ecef"
22945
+ }, value: l, onChange: d, treeData: i, errorMessage: o, label: t, required: e.required, treeCheckStrictly: e.treeCheckStrictly });
22950
22946
  }), RT = k(({
22951
22947
  filter: {
22952
22948
  type: t,
@@ -22997,7 +22993,7 @@ function $T(t) {
22997
22993
  const bd = k(function({
22998
22994
  view: e
22999
22995
  }) {
23000
- const n = Fe(), {
22996
+ const n = Ee(), {
23001
22997
  control: s,
23002
22998
  handleSubmit: i,
23003
22999
  reset: a
@@ -23378,7 +23374,7 @@ const QT = f.model("QueryMeta", {
23378
23374
  t.value = e;
23379
23375
  }
23380
23376
  }));
23381
- var Le = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Le || {});
23377
+ var Me = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Me || {});
23382
23378
  const vd = f.model("FilterCheckboxConfigMeta", {
23383
23379
  _name: f.literal("checkbox"),
23384
23380
  description: f.optional(f.string, ""),
@@ -23473,8 +23469,8 @@ const KT = f.model("FilterDateRangeConfigMeta", {
23473
23469
  })).actions((t) => ({
23474
23470
  setFilterValue(e) {
23475
23471
  try {
23476
- const n = Pe(t);
23477
- ke(t).filters.setValueByKey(n.key, e);
23472
+ const n = $e(t);
23473
+ Ve(t).filters.setValueByKey(n.key, e);
23478
23474
  } catch (n) {
23479
23475
  console.error(n);
23480
23476
  }
@@ -23541,7 +23537,7 @@ const KT = f.model("FilterDateRangeConfigMeta", {
23541
23537
  required: f.optional(f.boolean, !1)
23542
23538
  }).views((t) => ({
23543
23539
  get contentModel() {
23544
- return ke(t).content;
23540
+ return Ve(t).content;
23545
23541
  },
23546
23542
  get usingQuery() {
23547
23543
  return !!t.options_query_id;
@@ -23612,7 +23608,7 @@ const KT = f.model("FilterDateRangeConfigMeta", {
23612
23608
  t.min_width = e;
23613
23609
  },
23614
23610
  setDefaultSelection() {
23615
- const e = ke(t).content.filters, n = Pe(t).key;
23611
+ const e = Ve(t).content.filters, n = $e(t).key;
23616
23612
  e.setValueByKey(n, t.default_selection);
23617
23613
  }
23618
23614
  })).actions((t) => ({
@@ -23670,7 +23666,7 @@ const KT = f.model("FilterDateRangeConfigMeta", {
23670
23666
  t.width = e;
23671
23667
  },
23672
23668
  setDefaultSelection() {
23673
- const e = ke(t).content.filters, n = Pe(t).key;
23669
+ const e = Ve(t).content.filters, n = $e(t).key;
23674
23670
  e.setValueByKey(n, t.default_selection);
23675
23671
  }
23676
23672
  })).actions((t) => ({
@@ -23778,22 +23774,26 @@ const Id = f.compose("FilterTreeSelectConfigMeta", f.model({
23778
23774
  default_selection_count: l
23779
23775
  };
23780
23776
  },
23781
- get treeData() {
23777
+ get plainData() {
23782
23778
  const {
23783
23779
  data: e
23784
- } = ke(t).content.getDataStuffByID(t.options_query_id), n = tI(e);
23780
+ } = t.contentModel.getDataStuffByID(t.options_query_id);
23781
+ return e;
23782
+ },
23783
+ get treeData() {
23784
+ const e = this.plainData, n = tI(e);
23785
23785
  return eI(n);
23786
23786
  },
23787
23787
  get errorMessage() {
23788
23788
  const {
23789
23789
  error: e
23790
- } = ke(t).content.getDataStuffByID(t.options_query_id);
23790
+ } = t.contentModel.getDataStuffByID(t.options_query_id);
23791
23791
  return e;
23792
23792
  },
23793
23793
  get treeDataLoading() {
23794
23794
  const {
23795
23795
  state: e
23796
- } = ke(t).content.getDataStuffByID(t.options_query_id);
23796
+ } = t.contentModel.getDataStuffByID(t.options_query_id);
23797
23797
  return e === "loading";
23798
23798
  },
23799
23799
  get defaultSelection() {
@@ -23804,6 +23804,10 @@ const Id = f.compose("FilterTreeSelectConfigMeta", f.model({
23804
23804
  },
23805
23805
  truthy(e) {
23806
23806
  return Array.isArray(e) && e.length > 0;
23807
+ },
23808
+ valueObjects(e) {
23809
+ const n = new Set(e);
23810
+ return this.plainData.filter((s) => n.has(s.value));
23807
23811
  }
23808
23812
  })).actions((t) => ({
23809
23813
  setDefaultValue(e) {
@@ -23816,8 +23820,8 @@ const Id = f.compose("FilterTreeSelectConfigMeta", f.model({
23816
23820
  t.treeCheckStrictly = e;
23817
23821
  },
23818
23822
  applyDefaultSelection() {
23819
- const e = Pe(t, 1).key;
23820
- ke(t).content.filters.setValueByKey(e, t.defaultSelection);
23823
+ const e = $e(t, 1).key;
23824
+ t.contentModel.filters.setValueByKey(e, t.defaultSelection);
23821
23825
  },
23822
23826
  afterCreate() {
23823
23827
  wt(t, st(() => JSON.stringify(t.defaultSelection), this.applyDefaultSelection, {
@@ -23838,7 +23842,7 @@ const Id = f.compose("FilterTreeSelectConfigMeta", f.model({
23838
23842
  order: f.number,
23839
23843
  visibleInViewsIDs: f.array(f.string),
23840
23844
  auto_submit: f.optional(f.boolean, !1),
23841
- type: f.enumeration("DashboardFilterType", [Le.Select, Le.MultiSelect, Le.TreeSelect, Le.TextInput, Le.Checkbox, Le.DateRange]),
23845
+ type: f.enumeration("DashboardFilterType", [Me.Select, Me.MultiSelect, Me.TreeSelect, Me.TextInput, Me.Checkbox, Me.DateRange]),
23842
23846
  config: f.union(Sd, Cd, Id, kd, vd, _d)
23843
23847
  }).views((t) => ({
23844
23848
  get plainDefaultValue() {
@@ -23846,10 +23850,10 @@ const Id = f.compose("FilterTreeSelectConfigMeta", f.model({
23846
23850
  return Array.isArray(e) ? [...e] : e;
23847
23851
  },
23848
23852
  get usingDefaultValue() {
23849
- return t.type !== Le.TreeSelect;
23853
+ return t.type !== Me.TreeSelect;
23850
23854
  },
23851
23855
  get auto_submit_supported() {
23852
- return [Le.Select, Le.Checkbox, Le.DateRange].includes(t.type);
23856
+ return [Me.Select, Me.Checkbox, Me.DateRange].includes(t.type);
23853
23857
  }
23854
23858
  })).views((t) => ({
23855
23859
  get json() {
@@ -23896,22 +23900,22 @@ const Id = f.compose("FilterTreeSelectConfigMeta", f.model({
23896
23900
  },
23897
23901
  setType(e) {
23898
23902
  switch (e) {
23899
- case Le.Select:
23903
+ case Me.Select:
23900
23904
  t.config = ZT();
23901
23905
  break;
23902
- case Le.MultiSelect:
23906
+ case Me.MultiSelect:
23903
23907
  t.config = JT();
23904
23908
  break;
23905
- case Le.TreeSelect:
23909
+ case Me.TreeSelect:
23906
23910
  t.config = nI();
23907
23911
  break;
23908
- case Le.TextInput:
23912
+ case Me.TextInput:
23909
23913
  t.config = Td();
23910
23914
  break;
23911
- case Le.Checkbox:
23915
+ case Me.Checkbox:
23912
23916
  t.config = UT();
23913
23917
  break;
23914
- case Le.DateRange:
23918
+ case Me.DateRange:
23915
23919
  t.config = YT();
23916
23920
  break;
23917
23921
  }
@@ -23956,7 +23960,7 @@ const zd = f.model("ViewDivisionConfig", {
23956
23960
  const {
23957
23961
  enabled: e,
23958
23962
  func_content: n
23959
- } = t, s = Pe(t, 2), i = ke(t);
23963
+ } = t, s = $e(t, 2), i = Ve(t);
23960
23964
  if (!e)
23961
23965
  return s.name;
23962
23966
  try {
@@ -24235,7 +24239,7 @@ const Fd = f.compose("ViewRenderModel", lI, f.model({
24235
24239
  return t.type !== N.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
24236
24240
  },
24237
24241
  get contentModel() {
24238
- return Pe(t, 3);
24242
+ return $e(t, 3);
24239
24243
  },
24240
24244
  get panels() {
24241
24245
  if (t.type !== N.Tabs)
@@ -24355,7 +24359,7 @@ function Tn(t, e) {
24355
24359
  }
24356
24360
  const Od = GT.views((t) => ({
24357
24361
  get contentModel() {
24358
- return ke(t).content;
24362
+ return Ve(t).content;
24359
24363
  }
24360
24364
  })).views((t) => ({
24361
24365
  get queries() {
@@ -24596,7 +24600,7 @@ const Fr = {
24596
24600
  filter: new RegExp("(?<=filters\\.)([^\\?}.]+)", "gm")
24597
24601
  }, vI = QT.views((t) => ({
24598
24602
  get rootModel() {
24599
- return ke(t);
24603
+ return Ve(t);
24600
24604
  },
24601
24605
  get contentModel() {
24602
24606
  return this.rootModel.content;
@@ -24604,7 +24608,7 @@ const Fr = {
24604
24608
  get conditionOptions() {
24605
24609
  if (!no(t))
24606
24610
  return [];
24607
- const e = ke(t).content, {
24611
+ const e = Ve(t).content, {
24608
24612
  context: n
24609
24613
  } = e.payloadForSQL, s = Object.keys(n).map((a) => ({
24610
24614
  group: "Context",
@@ -24627,7 +24631,7 @@ const Fr = {
24627
24631
  } = t;
24628
24632
  if (e.length === 0)
24629
24633
  return [];
24630
- const n = ke(t).content.payloadForSQL;
24634
+ const n = Ve(t).content.payloadForSQL;
24631
24635
  return e.filter((s) => {
24632
24636
  const i = _.get(n, s);
24633
24637
  return Array.isArray(i) ? i.length === 0 : typeof i == "number" ? Number.isNaN(i) : !i;
@@ -24662,7 +24666,7 @@ const Fr = {
24662
24666
  } = t;
24663
24667
  if (e.length === 0)
24664
24668
  return "";
24665
- const n = ke(t).content.payloadForSQL, s = [...e].reduce((i, a) => (i[a] = _.get(n, a), i), {});
24669
+ const n = Ve(t).content.payloadForSQL, s = [...e].reduce((i, a) => (i[a] = _.get(n, a), i), {});
24666
24670
  return JSON.stringify(s);
24667
24671
  },
24668
24672
  get runByConditionsMet() {
@@ -24676,7 +24680,7 @@ const Fr = {
24676
24680
  };
24677
24681
  const {
24678
24682
  keyLabelMap: e
24679
- } = ke(t).content.filters, n = t.unmetRunByConditions.filter((i) => i.startsWith("context.")).map((i) => i.split("context.")[0]), s = t.unmetRunByConditions.filter((i) => i.startsWith("filters.")).map((i) => _.get({
24683
+ } = Ve(t).content.filters, n = t.unmetRunByConditions.filter((i) => i.startsWith("context.")).map((i) => i.split("context.")[0]), s = t.unmetRunByConditions.filter((i) => i.startsWith("filters.")).map((i) => _.get({
24680
24684
  filters: e
24681
24685
  }, i)).filter((i) => !!i);
24682
24686
  return {
@@ -24685,7 +24689,7 @@ const Fr = {
24685
24689
  };
24686
24690
  },
24687
24691
  get queries() {
24688
- return Pe(t, 2);
24692
+ return $e(t, 2);
24689
24693
  },
24690
24694
  get inUse() {
24691
24695
  return this.queries.isQueryInUse(t.id);
@@ -24843,7 +24847,7 @@ const Fr = {
24843
24847
  return t.current.filter((e) => e.id && e.key).map((e) => e.json);
24844
24848
  },
24845
24849
  get contentModel() {
24846
- return Pe(t, 1);
24850
+ return $e(t, 1);
24847
24851
  },
24848
24852
  get visibleQueryIDSet() {
24849
24853
  const {
@@ -24928,7 +24932,7 @@ function _I(t) {
24928
24932
  }
24929
24933
  const CI = HT.views((t) => ({
24930
24934
  isADuplicatedKey(e) {
24931
- return !e || e === t.key ? !1 : !!Pe(t, 2).findByKey(e);
24935
+ return !e || e === t.key ? !1 : !!$e(t, 2).findByKey(e);
24932
24936
  }
24933
24937
  })), Gd = f.model("SQLSnippetsRenderModel", {
24934
24938
  current: f.optional(f.array(CI), [])
@@ -25051,7 +25055,7 @@ const TI = (t) => new kI(t), II = k(({
25051
25055
  /* @__PURE__ */ r.jsx(z, { label: "Edit", labelPosition: "center" }),
25052
25056
  /* @__PURE__ */ r.jsx(ee.Item, { onClick: u, icon: /* @__PURE__ */ r.jsx(hl, { size: 14 }), children: "Settings" }),
25053
25057
  /* @__PURE__ */ r.jsx(ee.Item, { onClick: d, icon: /* @__PURE__ */ r.jsx(wh, { size: 14 }), children: "Duplicate" }),
25054
- /* @__PURE__ */ r.jsx(ee.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ r.jsx(oe, { size: 14 }), children: "Delete" })
25058
+ /* @__PURE__ */ r.jsx(ee.Item, { color: "red", onClick: h, icon: /* @__PURE__ */ r.jsx(ae, { size: 14 }), children: "Delete" })
25055
25059
  ] })
25056
25060
  ] }) }) });
25057
25061
  });
@@ -25123,7 +25127,7 @@ class LI {
25123
25127
  O(this, "runningMigration");
25124
25128
  O(this, "panelModel");
25125
25129
  O(this, "status", "notStarted");
25126
- this.panelModel = e.getRequired(De.instanceScope.panelModel), this.vizInstance = e.getRequired(De.instanceScope.vizInstance), this.operationManager = e.getRequired(De.instanceScope.operationManager), this.triggerManager = e.getRequired(De.instanceScope.triggerManager), this.vizManager = e.getRequired(De.vizManager);
25130
+ this.panelModel = e.getRequired(Ie.instanceScope.panelModel), this.vizInstance = e.getRequired(Ie.instanceScope.vizInstance), this.operationManager = e.getRequired(Ie.instanceScope.operationManager), this.triggerManager = e.getRequired(Ie.instanceScope.triggerManager), this.vizManager = e.getRequired(Ie.vizManager);
25127
25131
  }
25128
25132
  async createMigrationTask() {
25129
25133
  const e = [];
@@ -25168,15 +25172,15 @@ function Ud(t) {
25168
25172
  panel: e
25169
25173
  } = Sn();
25170
25174
  return Be((n) => {
25171
- const s = n.getRequired(De.vizManager), i = s.resolveComponent(t.viz.type);
25172
- return n.createScoped().provideFactory(De.instanceScope.vizInstance, () => s.getOrCreateInstance(t)).provideFactory(De.instanceScope.interactionManager, (a) => {
25173
- const o = a.getRequired(De.instanceScope.vizInstance);
25175
+ const s = n.getRequired(Ie.vizManager), i = s.resolveComponent(t.viz.type);
25176
+ return n.createScoped().provideFactory(Ie.instanceScope.vizInstance, () => s.getOrCreateInstance(t)).provideFactory(Ie.instanceScope.interactionManager, (a) => {
25177
+ const o = a.getRequired(Ie.instanceScope.vizInstance);
25174
25178
  return new Ei(o, i, cs);
25175
- }).provideFactory(De.instanceScope.operationManager, (a) => a.getRequired(De.instanceScope.interactionManager).operationManager).provideFactory(De.instanceScope.triggerManager, (a) => a.getRequired(De.instanceScope.interactionManager).triggerManager).provideValue(De.instanceScope.panelModel, e).provideFactory(De.instanceScope.migrator, (a) => new LI(a));
25179
+ }).provideFactory(Ie.instanceScope.operationManager, (a) => a.getRequired(Ie.instanceScope.interactionManager).operationManager).provideFactory(Ie.instanceScope.triggerManager, (a) => a.getRequired(Ie.instanceScope.interactionManager).triggerManager).provideValue(Ie.instanceScope.panelModel, e).provideFactory(Ie.instanceScope.migrator, (a) => new LI(a));
25176
25180
  }, [t.viz.type, t.viz.conf]);
25177
25181
  }
25178
25182
  function Kd(t) {
25179
- const [e, n] = V(!1), s = md().getRequired(De.instanceScope.migrator);
25183
+ const [e, n] = V(!1), s = md().getRequired(Ie.instanceScope.migrator);
25180
25184
  return dr(async () => {
25181
25185
  const i = s.status === $r.notStarted;
25182
25186
  n(s.status === $r.done), s.status === $r.notStarted && s.runMigration().then((a) => {
@@ -25187,7 +25191,7 @@ function Kd(t) {
25187
25191
  }, [s]), e;
25188
25192
  }
25189
25193
  function Yd(t, e) {
25190
- const n = md().getRequired(De.instanceScope.vizInstance);
25194
+ const n = md().getRequired(Ie.instanceScope.vizInstance);
25191
25195
  return E(() => (n.instanceData.setItem(null, e.viz.conf), n.instanceData.watchItem(null, (s) => {
25192
25196
  t(s);
25193
25197
  })), [t, e.viz.type]), n;
@@ -25394,7 +25398,7 @@ const Zd = k(({
25394
25398
  function HI(t, e, n) {
25395
25399
  const {
25396
25400
  panels: s
25397
- } = Fe(), i = t.id === "Main", [a, o] = L.useState(() => i && s.findByID(e) ? e : null), l = L.useCallback((h) => {
25401
+ } = Ee(), i = t.id === "Main", [a, o] = L.useState(() => i && s.findByID(e) ? e : null), l = L.useCallback((h) => {
25398
25402
  o(h), i && n(h);
25399
25403
  }, [i, n]), c = L.useCallback(() => {
25400
25404
  o(null), i && n("");
@@ -25435,7 +25439,7 @@ const UI = L.forwardRef(({
25435
25439
  view: t,
25436
25440
  className: e = "layout"
25437
25441
  }) => {
25438
- const n = Fe(), {
25442
+ const n = Ee(), {
25439
25443
  panels: s,
25440
25444
  layouts: i
25441
25445
  } = n.panels.panelsByIDs(t.panelIDs), a = L.useCallback((l) => {
@@ -25462,7 +25466,7 @@ const UI = L.forwardRef(({
25462
25466
  const {
25463
25467
  panels: s,
25464
25468
  layouts: i
25465
- } = Fe().panels.panelsByIDs(e.panelIDs);
25469
+ } = Ee().panels.panelsByIDs(e.panelIDs);
25466
25470
  return /* @__PURE__ */ r.jsx(JI, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: i, children: s.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": {
25467
25471
  ...a.layout
25468
25472
  }, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(Zd, { view: e, panel: a }) }, a.id)) });
@@ -25497,7 +25501,7 @@ const eD = k(({
25497
25501
  const [e, {
25498
25502
  setTrue: n,
25499
25503
  setFalse: s
25500
- }] = Ee(!1), i = Jl(), a = Fe(), o = () => {
25504
+ }] = Re(!1), i = Jl(), a = Ee(), o = () => {
25501
25505
  const l = JSON.stringify(a.contentJSON, null, 2), c = `${i.name}__${a.name}`;
25502
25506
  Tn(c, l);
25503
25507
  };
@@ -25540,7 +25544,7 @@ const eD = k(({
25540
25544
  children: t,
25541
25545
  view: e
25542
25546
  }) => {
25543
- const n = Fe(), s = e.config, i = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id), {
25547
+ const n = Ee(), s = e.config, i = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id), {
25544
25548
  ref: o,
25545
25549
  downloadScreenshot: l
25546
25550
  } = ba(e);
@@ -25588,7 +25592,7 @@ const eD = k(({
25588
25592
  } : {}, rD = k(({
25589
25593
  view: t
25590
25594
  }) => {
25591
- const e = Fe(), n = t.config;
25595
+ const e = Ee(), n = t.config;
25592
25596
  return /* @__PURE__ */ r.jsxs(m, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: t.tab, onTabChange: t.setTab, styles: {
25593
25597
  root: {
25594
25598
  height: "100%",
@@ -25737,7 +25741,7 @@ const aD = k(({
25737
25741
  return /* @__PURE__ */ r.jsxs(m, { className: "preview-view-tabs", variant: i.variant, orientation: i.orientation, value: t.tab, onTabChange: t.setTab, styles: oD(i), children: [
25738
25742
  /* @__PURE__ */ r.jsxs(m.List, { grow: i.grow, children: [
25739
25743
  i.tabs.map((l) => /* @__PURE__ */ r.jsx(m.Tab, { value: l.id, sx: lD(l), children: l.name ?? l.id }, l.id)),
25740
- /* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(ze, { size: 18, color: "#228be6" }) })
25744
+ /* @__PURE__ */ r.jsx(m.Tab, { onClick: i.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ r.jsx(De, { size: 18, color: "#228be6" }) })
25741
25745
  ] }),
25742
25746
  i.tabs.map((l, c) => {
25743
25747
  const d = n.views.findByID(l.view_id);
@@ -25888,7 +25892,7 @@ const mD = f.compose("FiltersModel", Bd, f.model("FiltersModel", {
25888
25892
  }));
25889
25893
  },
25890
25894
  get selects() {
25891
- return t.current.filter((e) => e.type === Le.Select).map((e) => ({
25895
+ return t.current.filter((e) => e.type === Me.Select).map((e) => ({
25892
25896
  label: e.label ?? e.id,
25893
25897
  value: e.id
25894
25898
  }));
@@ -26059,13 +26063,13 @@ const mD = f.compose("FiltersModel", Bd, f.model("FiltersModel", {
26059
26063
  error: f.frozen()
26060
26064
  }).views((t) => ({
26061
26065
  get keywords() {
26062
- return Pe(t, 1);
26066
+ return $e(t, 1);
26063
26067
  },
26064
26068
  get keywordString() {
26065
26069
  const {
26066
26070
  table_name: e,
26067
26071
  table_schema: n
26068
- } = Pe(t, 1);
26072
+ } = $e(t, 1);
26069
26073
  return `${n}||${e}`;
26070
26074
  }
26071
26075
  })).views((t) => ({
@@ -26358,7 +26362,7 @@ const SD = f.model("EditorModel", {
26358
26362
  get navOptions() {
26359
26363
  const {
26360
26364
  content: e
26361
- } = ke(t), {
26365
+ } = Ve(t), {
26362
26366
  filters: n,
26363
26367
  views: s,
26364
26368
  sqlSnippets: i,
@@ -26440,11 +26444,11 @@ const SD = f.model("EditorModel", {
26440
26444
  }
26441
26445
  })).actions((t) => ({
26442
26446
  removeSelf() {
26443
- Pe(t, 2).removeByID(t.id);
26447
+ $e(t, 2).removeByID(t.id);
26444
26448
  }
26445
26449
  })).actions((t) => ({
26446
26450
  moveToView(e, n) {
26447
- ke(t).content.views.findByID(e).removePanelID(t.id), ke(t).content.views.findByID(n).appendPanelID(t.id), ke(t).editor.setPath(["_VIEWS_", n, "_PANELS_", t.id]);
26451
+ Ve(t).content.views.findByID(e).removePanelID(t.id), Ve(t).content.views.findByID(n).appendPanelID(t.id), Ve(t).editor.setPath(["_VIEWS_", n, "_PANELS_", t.id]);
26448
26452
  }
26449
26453
  })), TD = f.compose("PanelsModel", Vd, f.model({
26450
26454
  list: f.optional(f.array(kD), [])
@@ -26558,7 +26562,7 @@ const SD = f.model("EditorModel", {
26558
26562
  }));
26559
26563
  },
26560
26564
  get editorOptions() {
26561
- const e = ke(t).content.panels;
26565
+ const e = Ve(t).content.panels;
26562
26566
  return t.current.map((n) => ({
26563
26567
  label: n.name,
26564
26568
  value: n.id,
@@ -26596,7 +26600,7 @@ const SD = f.model("EditorModel", {
26596
26600
  if (n === -1)
26597
26601
  return;
26598
26602
  const s = t.current[n];
26599
- ke(t).content.panels.removeByIDs(s.panelIDs), t.current.splice(n, 1);
26603
+ Ve(t).content.panels.removeByIDs(s.panelIDs), t.current.splice(n, 1);
26600
26604
  },
26601
26605
  replaceByIndex(e, n) {
26602
26606
  t.current.splice(e, 1, n);
@@ -26698,7 +26702,7 @@ const zD = f.model({
26698
26702
  return !xe(te(t, e), te(t.origin, e));
26699
26703
  },
26700
26704
  get payloadForSQL() {
26701
- const e = Pe(t).context.current, n = Pe(t).globalSQLSnippets, s = {
26705
+ const e = $e(t).context.current, n = $e(t).globalSQLSnippets, s = {
26702
26706
  context: {
26703
26707
  ...t.mock_context.current,
26704
26708
  ...e
@@ -26712,7 +26716,7 @@ const zD = f.model({
26712
26716
  };
26713
26717
  },
26714
26718
  get payloadForViz() {
26715
- const e = Pe(t).context.current;
26719
+ const e = $e(t).context.current;
26716
26720
  return {
26717
26721
  context: {
26718
26722
  ...t.mock_context.current,
@@ -27116,7 +27120,7 @@ function su(t, e) {
27116
27120
  }, [t]);
27117
27121
  }
27118
27122
  function iu(t) {
27119
- return L.useCallback((e) => e.provideValue(De.pluginManager, t.pluginManager).provideValue(De.vizManager, t.vizManager).provideValue(De.colorManager, t.colorManager), []);
27123
+ return L.useCallback((e) => e.provideValue(Ie.pluginManager, t.pluginManager).provideValue(Ie.vizManager, t.vizManager).provideValue(Ie.colorManager, t.colorManager), []);
27120
27124
  }
27121
27125
  const RD = k(() => {
27122
27126
  const t = Jl(), e = ce(), n = () => {
@@ -27299,7 +27303,7 @@ const OD = k(({
27299
27303
  const [n, {
27300
27304
  setTrue: s,
27301
27305
  setFalse: i
27302
- }] = Ee(), [a, o] = V(t ?? hi), l = (p) => {
27306
+ }] = Re(), [a, o] = V(t ?? hi), l = (p) => {
27303
27307
  o({
27304
27308
  ...a,
27305
27309
  enabled: p
@@ -27592,7 +27596,7 @@ const OD = k(({
27592
27596
  }] = os(!1), [s, {
27593
27597
  setTrue: i,
27594
27598
  setFalse: a
27595
- }] = Ee(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === N.Tabs;
27599
+ }] = Re(!1), l = ((c = le().content.views.VIE) == null ? void 0 : c.type) === N.Tabs;
27596
27600
  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(Za, { size: 16 }), sx: {
27597
27601
  ...No,
27598
27602
  transform: "none !important"
@@ -27976,9 +27980,9 @@ const Tz = Wu(({
27976
27980
  top: 0,
27977
27981
  right: 0
27978
27982
  }, children: /* @__PURE__ */ r.jsx(kh, { size: 12 }) }),
27979
- /* @__PURE__ */ r.jsxs($e, { shadow: "xl", withinPortal: !0, children: [
27980
- /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(j, { children: t.label }) }),
27981
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(zt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(zt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
27983
+ /* @__PURE__ */ r.jsxs(Fe, { shadow: "xl", withinPortal: !0, children: [
27984
+ /* @__PURE__ */ r.jsx(Fe.Target, { children: /* @__PURE__ */ r.jsx(j, { children: t.label }) }),
27985
+ /* @__PURE__ */ r.jsx(Fe.Dropdown, { children: /* @__PURE__ */ r.jsx(zt, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(zt.Item, { icon: o.icon, children: o.text }, o.key)) }) })
27982
27986
  ] }),
27983
27987
  /* @__PURE__ */ r.jsx(ro, { type: "source", position: n, isConnectable: e })
27984
27988
  ] });
@@ -27986,7 +27990,7 @@ const Tz = Wu(({
27986
27990
  const Iz = {
27987
27991
  interaction: Tz
27988
27992
  }, Dz = k(() => {
27989
- const t = Fe(), {
27993
+ const t = Ee(), {
27990
27994
  edges: e,
27991
27995
  nodes: n
27992
27996
  } = Sz(t);
@@ -28286,7 +28290,7 @@ const Az = k(() => {
28286
28290
  position: "absolute",
28287
28291
  top: 28,
28288
28292
  right: 5
28289
- }, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
28293
+ }, children: /* @__PURE__ */ r.jsx(ae, { size: 16 }) })
28290
28294
  ] }, o)),
28291
28295
  /* @__PURE__ */ r.jsx(C, { mt: 10, size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(es, { size: 20 }), onClick: n, sx: {
28292
28296
  width: "50%"
@@ -28351,7 +28355,7 @@ const Az = k(() => {
28351
28355
  position: "absolute",
28352
28356
  top: 28,
28353
28357
  right: 5
28354
- }, children: /* @__PURE__ */ r.jsx(oe, { size: 16 }) })
28358
+ }, children: /* @__PURE__ */ r.jsx(ae, { size: 16 }) })
28355
28359
  ] }, o)),
28356
28360
  /* @__PURE__ */ r.jsx(C, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(es, { size: 20 }), onClick: n, sx: {
28357
28361
  width: "50%"
@@ -28513,7 +28517,7 @@ const Az = k(() => {
28513
28517
  maxWidth: "1100px",
28514
28518
  height: "100vh"
28515
28519
  }, spacing: "sm", pb: 30, children: [
28516
- /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), onClick: o, children: "Delete this filter" }) }),
28520
+ /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), onClick: o, children: "Delete this filter" }) }),
28517
28521
  /* @__PURE__ */ r.jsx(M, { sx: {
28518
28522
  flexGrow: 1,
28519
28523
  maxHeight: "calc(100% - 52px)",
@@ -28873,7 +28877,7 @@ const iM = [{
28873
28877
  }, cM = ({
28874
28878
  queryID: t
28875
28879
  }) => {
28876
- const e = Fe(), {
28880
+ const e = Ee(), {
28877
28881
  state: n,
28878
28882
  error: s
28879
28883
  } = e.getDataStuffByID(t), i = L.useMemo(() => e.queries.findByID(t), [e, t]);
@@ -28885,7 +28889,7 @@ const iM = [{
28885
28889
  moreActions: e,
28886
28890
  refreshOnMount: n
28887
28891
  }) => {
28888
- const s = Fe(), {
28892
+ const s = Ee(), {
28889
28893
  data: i,
28890
28894
  state: a
28891
28895
  } = s.getDataStuffByID(t), o = a === "loading", l = Be(() => {
@@ -29014,7 +29018,7 @@ class hM {
29014
29018
  }
29015
29019
  addNew() {
29016
29020
  const e = this.panel.variables.filter((n) => n.name.startsWith(Ks.name)).length;
29017
- this.panel.addVariable(Oe({
29021
+ this.panel.addVariable(Pe({
29018
29022
  ...Ks,
29019
29023
  name: `${Ks.name}${e || ""}`
29020
29024
  })), this.selected = il(this.panel.variables);
@@ -29069,7 +29073,7 @@ function xM({
29069
29073
  /* @__PURE__ */ r.jsxs(b, { children: [
29070
29074
  i.map((p, x) => /* @__PURE__ */ r.jsx(fi, { value: p, onChange: (y) => {
29071
29075
  a((S) => (S.splice(x, 1, y), [...S]));
29072
- }, swatches: h, rightSection: /* @__PURE__ */ r.jsx(B, { onClick: () => l(x), color: "red", children: /* @__PURE__ */ r.jsx(oe, { size: 14 }) }), sx: {
29076
+ }, swatches: h, rightSection: /* @__PURE__ */ r.jsx(B, { onClick: () => l(x), color: "red", children: /* @__PURE__ */ r.jsx(ae, { size: 14 }) }), sx: {
29073
29077
  width: "45%"
29074
29078
  } })),
29075
29079
  /* @__PURE__ */ r.jsx(B, { onClick: o, color: "blue", variant: "outline", children: /* @__PURE__ */ r.jsx(es, { size: 20 }) })
@@ -29099,7 +29103,7 @@ function fM({
29099
29103
  a.map((h, p) => /* @__PURE__ */ r.jsx(I, { type: s, value: h, onChange: (x) => {
29100
29104
  const y = x.currentTarget.value;
29101
29105
  o((S) => (S.splice(p, 1, y), [...S]));
29102
- }, rightSection: /* @__PURE__ */ r.jsx(B, { onClick: () => c(p), color: "red", children: /* @__PURE__ */ r.jsx(oe, { size: 14 }) }), sx: {
29106
+ }, rightSection: /* @__PURE__ */ r.jsx(B, { onClick: () => c(p), color: "red", children: /* @__PURE__ */ r.jsx(ae, { size: 14 }) }), sx: {
29103
29107
  width: "45%"
29104
29108
  } })),
29105
29109
  /* @__PURE__ */ r.jsx(B, { onClick: l, color: "blue", variant: "outline", children: /* @__PURE__ */ r.jsx(es, { size: 20 }) })
@@ -30104,9 +30108,9 @@ const WM = k(({
30104
30108
  function nL({
30105
30109
  content: t
30106
30110
  }) {
30107
- return /* @__PURE__ */ r.jsxs($e, { width: "60vw", shadow: "md", children: [
30108
- /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(B, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(yl, {}) }) }),
30109
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
30111
+ return /* @__PURE__ */ r.jsxs(Fe, { width: "60vw", shadow: "md", children: [
30112
+ /* @__PURE__ */ r.jsx(Fe.Target, { children: /* @__PURE__ */ r.jsx(B, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(yl, {}) }) }),
30113
+ /* @__PURE__ */ r.jsx(Fe.Dropdown, { children: /* @__PURE__ */ r.jsx(rn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
30110
30114
  ] });
30111
30115
  }
30112
30116
  const rL = k(() => {
@@ -30267,9 +30271,9 @@ WHERE
30267
30271
  queryModel: t
30268
30272
  }) => {
30269
30273
  const e = T(() => _.groupBy(t.dependencies, "type"), [t.dependencies]), n = T(() => t.dependencies.some((i) => !i.valid), [t.dependencies]), s = t.dependencies.length > 0;
30270
- return s ? /* @__PURE__ */ r.jsxs($e, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
30271
- /* @__PURE__ */ r.jsx($e.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: n ? "red" : "green", disabled: !s, leftIcon: n ? /* @__PURE__ */ r.jsx(_i, { size: 16 }) : /* @__PURE__ */ r.jsx(ep, { size: 16 }), children: "Dependency" }) }),
30272
- /* @__PURE__ */ r.jsx($e.Dropdown, { children: /* @__PURE__ */ r.jsx(zt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(e).map(([i, a]) => /* @__PURE__ */ r.jsxs(zt.Item, { children: [
30274
+ return s ? /* @__PURE__ */ r.jsxs(Fe, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !s, children: [
30275
+ /* @__PURE__ */ r.jsx(Fe.Target, { children: /* @__PURE__ */ r.jsx(C, { size: "xs", variant: "subtle", color: n ? "red" : "green", disabled: !s, leftIcon: n ? /* @__PURE__ */ r.jsx(_i, { size: 16 }) : /* @__PURE__ */ r.jsx(ep, { size: 16 }), children: "Dependency" }) }),
30276
+ /* @__PURE__ */ r.jsx(Fe.Dropdown, { children: /* @__PURE__ */ r.jsx(zt, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(e).map(([i, a]) => /* @__PURE__ */ r.jsxs(zt.Item, { children: [
30273
30277
  /* @__PURE__ */ r.jsx(j, { fw: "bold", ff: "monospace", children: i }),
30274
30278
  /* @__PURE__ */ r.jsx(zt, { withPadding: !0, size: 14, sx: {
30275
30279
  fontFamily: "monospace",
@@ -30333,7 +30337,7 @@ WHERE
30333
30337
  } }), uL = k(({
30334
30338
  value: t
30335
30339
  }) => {
30336
- const n = Fe().payloadForSQL, s = L.useMemo(() => Ti(t, n), [t, n]);
30340
+ const n = Ee().payloadForSQL, s = L.useMemo(() => Ti(t, n), [t, n]);
30337
30341
  return /* @__PURE__ */ r.jsx(dL, { height: "100%", value: s });
30338
30342
  }), Ho = {
30339
30343
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -30413,7 +30417,7 @@ WHERE
30413
30417
  }), mL = k(({
30414
30418
  value: t
30415
30419
  }) => {
30416
- const n = Fe().payloadForSQL, s = T(() => Ti(t, n), [t, n]);
30420
+ const n = Ee().payloadForSQL, s = T(() => Ti(t, n), [t, n]);
30417
30421
  return /* @__PURE__ */ r.jsx(Ca, { height: "100%", value: s });
30418
30422
  }), fL = k(({
30419
30423
  item: t,
@@ -30465,7 +30469,7 @@ WHERE
30465
30469
  error: d
30466
30470
  }
30467
30471
  ),
30468
- /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), color: "red", variant: "light", onClick: S, children: "Delete this SQL Snippet" })
30472
+ /* @__PURE__ */ r.jsx(C, { leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), color: "red", variant: "light", onClick: S, children: "Delete this SQL Snippet" })
30469
30473
  ] }),
30470
30474
  /* @__PURE__ */ r.jsxs(m, { value: s, onTabChange: i, sx: {
30471
30475
  flexGrow: 1
@@ -30637,7 +30641,7 @@ WHERE
30637
30641
  maxWidth: "600px",
30638
30642
  height: "100%"
30639
30643
  }, spacing: "sm", children: [
30640
- /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(oe, { size: 16 }), onClick: o, children: "Delete this view" }) }),
30644
+ /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(C, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(ae, { size: 16 }), onClick: o, children: "Delete this view" }) }),
30641
30645
  /* @__PURE__ */ r.jsx(M, { sx: {
30642
30646
  flexGrow: 1,
30643
30647
  maxHeight: "calc(100% - 52px)",
@@ -30687,7 +30691,7 @@ const zL = k(() => /* @__PURE__ */ r.jsx(w, { sx: {
30687
30691
  key: n,
30688
30692
  label: n,
30689
30693
  order: t.content.filters.current.length + 1,
30690
- type: Le.TextInput,
30694
+ type: Me.TextInput,
30691
30695
  config: Td(),
30692
30696
  visibleInViewsIDs: ["Main"],
30693
30697
  auto_submit: !1
@@ -30982,7 +30986,7 @@ const fu = f.model({
30982
30986
  return this.json.content;
30983
30987
  },
30984
30988
  get payloadForSQL() {
30985
- const e = Pe(t).context.current, n = Pe(t).globalSQLSnippets, s = {
30989
+ const e = $e(t).context.current, n = $e(t).globalSQLSnippets, s = {
30986
30990
  context: {
30987
30991
  ...t.mock_context.current,
30988
30992
  ...e
@@ -30996,7 +31000,7 @@ const fu = f.model({
30996
31000
  };
30997
31001
  },
30998
31002
  get payloadForViz() {
30999
- const e = Pe(t).context.current;
31003
+ const e = $e(t).context.current;
31000
31004
  return {
31001
31005
  context: {
31002
31006
  ...t.mock_context.current,
@@ -31190,7 +31194,7 @@ export {
31190
31194
  zx as DashboardApiClient,
31191
31195
  Mx as DashboardApiFacadeClient,
31192
31196
  G2 as DashboardEditor,
31193
- Le as DashboardFilterType,
31197
+ Me as DashboardFilterType,
31194
31198
  hD as DashboardMode,
31195
31199
  LD as DashboardModel,
31196
31200
  Yl as DashboardModelContextProvider,
@@ -31234,7 +31238,7 @@ export {
31234
31238
  Tt as useEditPanelContext,
31235
31239
  nm as useFullScreenPanelContext,
31236
31240
  HI as usePanelFullScreen,
31237
- Fe as useRenderContentModelContext,
31241
+ Ee as useRenderContentModelContext,
31238
31242
  Jl as useRenderDashboardContext,
31239
31243
  Sn as useRenderPanelContext
31240
31244
  };