@devtable/dashboard 4.11.0 → 4.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,12 @@
1
1
  var Ai = Object.defineProperty;
2
2
  var Li = (t, e, n) => e in t ? Ai(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var E = (t, e, n) => (Li(t, typeof e != "symbol" ? e + "" : e, n), n);
4
- import { Box as q, Text as v, Button as F, Checkbox as He, MultiSelect as dn, Select as j, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Tt, Table as Vt, Tabs as V, Textarea as hn, AppShell as pn, Modal as Ce, Divider as ie, SimpleGrid as qi, NumberInput as Be, Menu as ue, Tooltip as $i, Paper as Ni, Code as dr, Switch as Fe, useMantineTheme as ji, ColorInput as Bi, ColorSwatch as hr, Slider as zr, createStyles as mn, Popover as Kt, Accordion as M, SegmentedControl as Gi, JsonInput as Wi } from "@mantine/core";
4
+ import { Box as q, Text as v, Button as P, Checkbox as He, MultiSelect as dn, Select as N, TextInput as k, Group as g, Stack as w, ActionIcon as z, LoadingOverlay as Tt, Table as Vt, Tabs as V, Textarea as hn, AppShell as pn, Modal as Ce, Divider as te, SimpleGrid as qi, NumberInput as Be, Menu as ue, Tooltip as $i, Paper as Ni, Code as dr, Switch as Pe, useMantineTheme as ji, ColorInput as Bi, ColorSwatch as hr, Slider as zr, createStyles as mn, Popover as Kt, Accordion as M, SegmentedControl as Gi, JsonInput as Wi } from "@mantine/core";
5
5
  import { useModals as Qi, ModalsProvider as Er } from "@mantine/modals";
6
- import { useRequest as zt, useBoolean as mt, useCreation as Pe, useAsyncEffect as ft, useLatest as pr } from "ahooks";
6
+ import { useRequest as zt, useBoolean as mt, useCreation as Fe, useAsyncEffect as ft, useLatest as pr } from "ahooks";
7
7
  import { observer as D } from "mobx-react-lite";
8
8
  import x, { forwardRef as fn, useMemo as A, useState as de, createElement as Et, useEffect as K, useCallback as Dt, useRef as Yi, useContext as Me, createContext as Ui } from "react";
9
- import $, { omit as Ot, get as re, values as Or, unset as Hi, isObject as Fr, set as Pr, orderBy as Xi, last as Ji, noop as Ki, defaults as te, isEqual as Ie, defaultsDeep as Ge, findLastIndex as Zi, isEmpty as Mr, isNumber as eo, isString as Ar, range as to, cloneDeep as Lr, maxBy as qr, merge as $r, minBy as no, groupBy as ro, template as Nr, cloneDeepWith as ao, throttle as io } from "lodash";
9
+ import $, { omit as Ot, get as ae, values as Or, unset as Hi, isObject as Pr, set as Fr, orderBy as Xi, last as Ji, noop as Ki, defaults as ne, isEqual as Ie, defaultsDeep as Ge, findLastIndex as Zi, isEmpty as Mr, isNumber as eo, isString as Ar, range as to, cloneDeep as Lr, maxBy as qr, merge as $r, minBy as no, groupBy as ro, template as Nr, cloneDeepWith as ao, throttle as io } from "lodash";
10
10
  import { useForm as ke, Controller as _, useFieldArray as we } from "react-hook-form";
11
11
  import { DateRangePicker as oo } from "@mantine/dates";
12
12
  import { Calendar as so, Refresh as jr, DeviceFloppy as Z, Trash as J, PlaylistAdd as Je, Recycle as Br, Settings as Gr, Filter as lo, Database as co, Share as uo, Download as Wr, Code as ho, InfoCircle as po, ArrowRight as Zt, ArrowsMaximize as mo, Copy as fo, ArrowLeft as go, ArrowsMove as bo, ChevronDownRight as vo } from "tabler-icons-react";
@@ -15,7 +15,7 @@ import { Prism as Ne } from "@mantine/prism";
15
15
  import { cast as Ae, types as b, getRoot as mr, flow as xo, toGenerator as Co, addDisposer as wo } from "mobx-state-tree";
16
16
  import { randomId as fe, useClipboard as So, useElementSize as rn, useInputState as Qr } from "@mantine/hooks";
17
17
  import Yr, { RichTextEditor as Ur } from "@mantine/rte";
18
- import { makeAutoObservable as gn, runInAction as ct, observable as Hr, toJS as Ft, reaction as bn } from "mobx";
18
+ import { makeAutoObservable as gn, runInAction as ct, observable as Hr, toJS as Pt, reaction as bn } from "mobx";
19
19
  import { showNotification as vn } from "@mantine/notifications";
20
20
  import fr from "eventemitter2";
21
21
  import ht from "chroma-js";
@@ -26,10 +26,10 @@ import { useVirtual as To } from "react-virtual";
26
26
  import { useForm as yn } from "@mantine/form";
27
27
  import Le from "echarts-for-react/lib/core";
28
28
  import { SunburstChart as Vo, PieChart as zo, BoxplotChart as Eo, BarChart as Jr, LineChart as Kr, ScatterChart as Zr, RadarChart as Oo } from "echarts/charts";
29
- import * as ne from "echarts/core";
29
+ import * as re from "echarts/core";
30
30
  import { CanvasRenderer as qe } from "echarts/renderers";
31
31
  import "echarts-gl";
32
- import { GridComponent as Ke, VisualMapComponent as Fo, LegendComponent as Ze, TooltipComponent as et, DataZoomComponent as Pt, MarkLineComponent as Po } from "echarts/components";
32
+ import { GridComponent as Ke, VisualMapComponent as Po, LegendComponent as Ze, TooltipComponent as et, DataZoomComponent as Ft, MarkLineComponent as Fo } from "echarts/components";
33
33
  import { transform as ea } from "echarts-stat";
34
34
  import * as ze from "d3-regression";
35
35
  import Mo from "stickybits";
@@ -103,8 +103,8 @@ function $o() {
103
103
  }
104
104
  function ge(d, C, S) {
105
105
  {
106
- var T = Q.ReactDebugCurrentFrame, N = T.getStackAddendum();
107
- N !== "" && (C += "%s", S = S.concat([N]));
106
+ var T = Q.ReactDebugCurrentFrame, j = T.getStackAddendum();
107
+ j !== "" && (C += "%s", S = S.concat([j]));
108
108
  var B = S.map(function(L) {
109
109
  return String(L);
110
110
  });
@@ -120,8 +120,8 @@ function $o() {
120
120
  var T = d.displayName;
121
121
  if (T)
122
122
  return T;
123
- var N = C.displayName || C.name || "";
124
- return N !== "" ? S + "(" + N + ")" : S;
123
+ var j = C.displayName || C.name || "";
124
+ return j !== "" ? S + "(" + j + ")" : S;
125
125
  }
126
126
  function be(d) {
127
127
  return d.displayName || "Context";
@@ -161,7 +161,7 @@ function $o() {
161
161
  var T = d.displayName || null;
162
162
  return T !== null ? T : le(d.type) || "Memo";
163
163
  case m: {
164
- var N = d, B = N._payload, L = N._init;
164
+ var j = d, B = j._payload, L = j._init;
165
165
  try {
166
166
  return le(L(B));
167
167
  } catch {
@@ -239,8 +239,8 @@ function $o() {
239
239
  if (Wt === void 0)
240
240
  try {
241
241
  throw Error();
242
- } catch (N) {
243
- var T = N.stack.trim().match(/\n( *(at )?)/);
242
+ } catch (j) {
243
+ var T = j.stack.trim().match(/\n( *(at )?)/);
244
244
  Wt = T && T[1] || "";
245
245
  }
246
246
  return `
@@ -262,7 +262,7 @@ function $o() {
262
262
  }
263
263
  var T;
264
264
  Qt = !0;
265
- var N = Error.prepareStackTrace;
265
+ var j = Error.prepareStackTrace;
266
266
  Error.prepareStackTrace = void 0;
267
267
  var B;
268
268
  B = Gt.current, Gt.current = null, hi();
@@ -300,17 +300,17 @@ function $o() {
300
300
  }
301
301
  } catch (_e) {
302
302
  if (_e && T && typeof _e.stack == "string") {
303
- for (var P = _e.stack.split(`
304
- `), ae = T.stack.split(`
305
- `), H = P.length - 1, X = ae.length - 1; H >= 1 && X >= 0 && P[H] !== ae[X]; )
303
+ for (var F = _e.stack.split(`
304
+ `), ie = T.stack.split(`
305
+ `), H = F.length - 1, X = ie.length - 1; H >= 1 && X >= 0 && F[H] !== ie[X]; )
306
306
  X--;
307
307
  for (; H >= 1 && X >= 0; H--, X--)
308
- if (P[H] !== ae[X]) {
308
+ if (F[H] !== ie[X]) {
309
309
  if (H !== 1 || X !== 1)
310
310
  do
311
- if (H--, X--, X < 0 || P[H] !== ae[X]) {
311
+ if (H--, X--, X < 0 || F[H] !== ie[X]) {
312
312
  var pe = `
313
- ` + P[H].replace(" at new ", " at ");
313
+ ` + F[H].replace(" at new ", " at ");
314
314
  return d.displayName && pe.includes("<anonymous>") && (pe = pe.replace("<anonymous>", d.displayName)), typeof d == "function" && xt.set(d, pe), pe;
315
315
  }
316
316
  while (H >= 1 && X >= 0);
@@ -318,7 +318,7 @@ function $o() {
318
318
  }
319
319
  }
320
320
  } finally {
321
- Qt = !1, Gt.current = B, pi(), Error.prepareStackTrace = N;
321
+ Qt = !1, Gt.current = B, pi(), Error.prepareStackTrace = j;
322
322
  }
323
323
  var Ye = d ? d.displayName || d.name : "", ur = Ye ? yt(Ye) : "";
324
324
  return typeof d == "function" && xt.set(d, ur), ur;
@@ -350,9 +350,9 @@ function $o() {
350
350
  case f:
351
351
  return Ct(d.type, C, S);
352
352
  case m: {
353
- var T = d, N = T._payload, B = T._init;
353
+ var T = d, j = T._payload, B = T._init;
354
354
  try {
355
- return Ct(B(N), C, S);
355
+ return Ct(B(j), C, S);
356
356
  } catch {
357
357
  }
358
358
  }
@@ -367,22 +367,22 @@ function $o() {
367
367
  } else
368
368
  Zn.setExtraStackFrame(null);
369
369
  }
370
- function bi(d, C, S, T, N) {
370
+ function bi(d, C, S, T, j) {
371
371
  {
372
372
  var B = Function.call.bind(wt);
373
373
  for (var L in d)
374
374
  if (B(d, L)) {
375
- var P = void 0;
375
+ var F = void 0;
376
376
  try {
377
377
  if (typeof d[L] != "function") {
378
- var ae = Error((T || "React class") + ": " + S + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
379
- throw ae.name = "Invariant Violation", ae;
378
+ var ie = Error((T || "React class") + ": " + S + " type `" + L + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof d[L] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
379
+ throw ie.name = "Invariant Violation", ie;
380
380
  }
381
- P = d[L](C, L, T, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
381
+ F = d[L](C, L, T, S, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
382
382
  } catch (H) {
383
- P = H;
383
+ F = H;
384
384
  }
385
- P && !(P instanceof Error) && (St(N), W("%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).", T || "React class", S, L, typeof P), St(null)), P instanceof Error && !(P.message in Kn) && (Kn[P.message] = !0, St(N), W("Failed %s type: %s", S, P.message), St(null));
385
+ F && !(F instanceof Error) && (St(j), W("%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).", T || "React class", S, L, typeof F), St(null)), F instanceof Error && !(F.message in Kn) && (Kn[F.message] = !0, St(j), W("Failed %s type: %s", S, F.message), St(null));
386
386
  }
387
387
  }
388
388
  }
@@ -461,8 +461,8 @@ function $o() {
461
461
  });
462
462
  }
463
463
  }
464
- var Ri = function(d, C, S, T, N, B, L) {
465
- var P = {
464
+ var Ri = function(d, C, S, T, j, B, L) {
465
+ var F = {
466
466
  $$typeof: e,
467
467
  type: d,
468
468
  key: C,
@@ -470,27 +470,27 @@ function $o() {
470
470
  props: L,
471
471
  _owner: B
472
472
  };
473
- return P._store = {}, Object.defineProperty(P._store, "validated", {
473
+ return F._store = {}, Object.defineProperty(F._store, "validated", {
474
474
  configurable: !1,
475
475
  enumerable: !1,
476
476
  writable: !0,
477
477
  value: !1
478
- }), Object.defineProperty(P, "_self", {
478
+ }), Object.defineProperty(F, "_self", {
479
479
  configurable: !1,
480
480
  enumerable: !1,
481
481
  writable: !1,
482
482
  value: T
483
- }), Object.defineProperty(P, "_source", {
483
+ }), Object.defineProperty(F, "_source", {
484
484
  configurable: !1,
485
485
  enumerable: !1,
486
486
  writable: !1,
487
- value: N
488
- }), Object.freeze && (Object.freeze(P.props), Object.freeze(P)), P;
487
+ value: j
488
+ }), Object.freeze && (Object.freeze(F.props), Object.freeze(F)), F;
489
489
  };
490
- function ki(d, C, S, T, N) {
490
+ function ki(d, C, S, T, j) {
491
491
  {
492
- var B, L = {}, P = null, ae = null;
493
- S !== void 0 && (tr(S), P = "" + S), Si(C) && (tr(C.key), P = "" + C.key), wi(C) && (ae = C.ref, _i(C, N));
492
+ var B, L = {}, F = null, ie = null;
493
+ S !== void 0 && (tr(S), F = "" + S), Si(C) && (tr(C.key), F = "" + C.key), wi(C) && (ie = C.ref, _i(C, j));
494
494
  for (B in C)
495
495
  wt.call(C, B) && !Ci.hasOwnProperty(B) && (L[B] = C[B]);
496
496
  if (d && d.defaultProps) {
@@ -498,11 +498,11 @@ function $o() {
498
498
  for (B in H)
499
499
  L[B] === void 0 && (L[B] = H[B]);
500
500
  }
501
- if (P || ae) {
501
+ if (F || ie) {
502
502
  var X = typeof d == "function" ? d.displayName || d.name || "Unknown" : d;
503
- P && Ii(L, X), ae && Di(L, X);
503
+ F && Ii(L, X), ie && Di(L, X);
504
504
  }
505
- return Ri(d, P, ae, N, T, at.current, L);
505
+ return Ri(d, F, ie, j, T, at.current, L);
506
506
  }
507
507
  }
508
508
  var Ht = Q.ReactCurrentOwner, ar = Q.ReactDebugCurrentFrame;
@@ -579,9 +579,9 @@ Check the top-level render call using <` + S + ">.");
579
579
  else if (Jt(d))
580
580
  d._store && (d._store.validated = !0);
581
581
  else if (d) {
582
- var N = O(d);
583
- if (typeof N == "function" && N !== d.entries)
584
- for (var B = N.call(d), L; !(L = B.next()).done; )
582
+ var j = O(d);
583
+ if (typeof j == "function" && j !== d.entries)
584
+ for (var B = j.call(d), L; !(L = B.next()).done; )
585
585
  Jt(L.value) && sr(L.value, C);
586
586
  }
587
587
  }
@@ -603,8 +603,8 @@ Check the top-level render call using <` + S + ">.");
603
603
  bi(S, d.props, "prop", T, d);
604
604
  } else if (C.PropTypes !== void 0 && !Xt) {
605
605
  Xt = !0;
606
- var N = le(C);
607
- W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", N || "Unknown");
606
+ var j = le(C);
607
+ W("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", j || "Unknown");
608
608
  }
609
609
  typeof C.getDefaultProps == "function" && !C.getDefaultProps.isReactClassApproved && W("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
610
610
  }
@@ -621,18 +621,18 @@ Check the top-level render call using <` + S + ">.");
621
621
  d.ref !== null && (Qe(d), W("Invalid attribute `ref` supplied to `React.Fragment`."), Qe(null));
622
622
  }
623
623
  }
624
- function cr(d, C, S, T, N, B) {
624
+ function cr(d, C, S, T, j, B) {
625
625
  {
626
626
  var L = vt(d);
627
627
  if (!L) {
628
- var P = "";
629
- (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (P += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
630
- var ae = Ti(N);
631
- ae ? P += ae : P += ir();
628
+ var F = "";
629
+ (d === void 0 || typeof d == "object" && d !== null && Object.keys(d).length === 0) && (F += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
630
+ var ie = Ti(j);
631
+ ie ? F += ie : F += ir();
632
632
  var H;
633
- d === null ? H = "null" : Yt(d) ? H = "array" : d !== void 0 && d.$$typeof === e ? (H = "<" + (le(d.type) || "Unknown") + " />", P = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, P);
633
+ d === null ? H = "null" : Yt(d) ? H = "array" : d !== void 0 && d.$$typeof === e ? (H = "<" + (le(d.type) || "Unknown") + " />", F = " Did you accidentally export a JSX literal instead of a component?") : H = typeof d, W("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", H, F);
634
634
  }
635
- var X = ki(d, C, S, N, B);
635
+ var X = ki(d, C, S, j, B);
636
636
  if (X == null)
637
637
  return X;
638
638
  if (L) {
@@ -654,11 +654,11 @@ Check the top-level render call using <` + S + ">.");
654
654
  function Oi(d, C, S) {
655
655
  return cr(d, C, S, !0);
656
656
  }
657
- function Fi(d, C, S) {
657
+ function Pi(d, C, S) {
658
658
  return cr(d, C, S, !1);
659
659
  }
660
- var Pi = Fi, Mi = Oi;
661
- st.Fragment = a, st.jsx = Pi, st.jsxs = Mi;
660
+ var Fi = Pi, Mi = Oi;
661
+ st.Fragment = a, st.jsx = Fi, st.jsxs = Mi;
662
662
  }()), st;
663
663
  }
664
664
  (function(t) {
@@ -688,7 +688,7 @@ class Xe extends x.Component {
688
688
  children: [/* @__PURE__ */ r(v, {
689
689
  size: "xs",
690
690
  children: (e = this.state.error) == null ? void 0 : e.message
691
- }), /* @__PURE__ */ r(F, {
691
+ }), /* @__PURE__ */ r(P, {
692
692
  variant: "subtle",
693
693
  size: "xs",
694
694
  mx: "auto",
@@ -861,7 +861,7 @@ function Qo({
861
861
  } = zt(wn(e.options_query), {
862
862
  refreshDeps: [e.options_query, i]
863
863
  });
864
- return /* @__PURE__ */ r(j, {
864
+ return /* @__PURE__ */ r(N, {
865
865
  label: t,
866
866
  data: i ? o : e.static_options,
867
867
  disabled: i ? s : !1,
@@ -970,7 +970,7 @@ const la = x.forwardRef(function({
970
970
  sx: {
971
971
  alignSelf: "flex-end"
972
972
  },
973
- children: /* @__PURE__ */ r(F, {
973
+ children: /* @__PURE__ */ r(P, {
974
974
  color: "blue",
975
975
  size: "sm",
976
976
  type: "submit",
@@ -1190,7 +1190,7 @@ const ha = D(function({
1190
1190
  value: l.key,
1191
1191
  type: l.type
1192
1192
  })), [a]), s = A(() => o.reduce((l, u) => (l[u.value] = u.type, l), {}), [o]);
1193
- return /* @__PURE__ */ r(j, {
1193
+ return /* @__PURE__ */ r(N, {
1194
1194
  label: "Data Source",
1195
1195
  data: o,
1196
1196
  itemComponent: Zo,
@@ -1389,7 +1389,7 @@ const ns = D(function({
1389
1389
  },
1390
1390
  children: [/* @__PURE__ */ r(v, {
1391
1391
  children: "Select a Query"
1392
- }), /* @__PURE__ */ r(j, {
1392
+ }), /* @__PURE__ */ r(N, {
1393
1393
  data: a.queries.options,
1394
1394
  value: e,
1395
1395
  onChange: n,
@@ -1403,7 +1403,7 @@ const ns = D(function({
1403
1403
  }), /* @__PURE__ */ r(g, {
1404
1404
  position: "center",
1405
1405
  mt: "md",
1406
- children: /* @__PURE__ */ r(F, {
1406
+ children: /* @__PURE__ */ r(P, {
1407
1407
  onClick: o,
1408
1408
  children: "Add a Query"
1409
1409
  })
@@ -1544,7 +1544,7 @@ const is = D(function() {
1544
1544
  width: "40%"
1545
1545
  },
1546
1546
  mx: "auto",
1547
- children: /* @__PURE__ */ r(F, {
1547
+ children: /* @__PURE__ */ r(P, {
1548
1548
  variant: "default",
1549
1549
  onClick: n,
1550
1550
  children: "Add a snippet"
@@ -1673,7 +1673,7 @@ const fa = b.model({
1673
1673
  onChange: (n) => e.setClearable(n.currentTarget.checked),
1674
1674
  label: "Clearable"
1675
1675
  })]
1676
- }), /* @__PURE__ */ r(j, {
1676
+ }), /* @__PURE__ */ r(N, {
1677
1677
  data: cs,
1678
1678
  label: "Display Format",
1679
1679
  value: e.inputFormat,
@@ -1751,7 +1751,7 @@ const hs = D(function({
1751
1751
  size: "md",
1752
1752
  pl: "sm",
1753
1753
  children: "Fetched Data"
1754
- }), /* @__PURE__ */ r(F, {
1754
+ }), /* @__PURE__ */ r(P, {
1755
1755
  size: "xs",
1756
1756
  onClick: i,
1757
1757
  disabled: !e.sql || !e.key,
@@ -1842,7 +1842,7 @@ const hs = D(function({
1842
1842
  });
1843
1843
  }, a = e.static_options, i = [...a];
1844
1844
  return /* @__PURE__ */ c(U, {
1845
- children: [/* @__PURE__ */ r(ie, {
1845
+ children: [/* @__PURE__ */ r(te, {
1846
1846
  label: "Configure options",
1847
1847
  labelPosition: "center"
1848
1848
  }), a.length > 0 && /* @__PURE__ */ r(dn, {
@@ -1888,7 +1888,7 @@ const hs = D(function({
1888
1888
  size: 16
1889
1889
  })
1890
1890
  })]
1891
- })), /* @__PURE__ */ r(F, {
1891
+ })), /* @__PURE__ */ r(P, {
1892
1892
  size: "xs",
1893
1893
  color: "blue",
1894
1894
  leftIcon: /* @__PURE__ */ r(Je, {
@@ -1900,7 +1900,7 @@ const hs = D(function({
1900
1900
  },
1901
1901
  mx: "auto",
1902
1902
  children: "Add an Option"
1903
- }), /* @__PURE__ */ r(ie, {
1903
+ }), /* @__PURE__ */ r(te, {
1904
1904
  label: "Or fetch options from database",
1905
1905
  labelPosition: "center"
1906
1906
  }), /* @__PURE__ */ r(va, {
@@ -1925,10 +1925,10 @@ const hs = D(function({
1925
1925
  checked: e.required,
1926
1926
  onChange: (o) => e.setRequired(o.currentTarget.checked),
1927
1927
  label: "Required"
1928
- }), /* @__PURE__ */ r(ie, {
1928
+ }), /* @__PURE__ */ r(te, {
1929
1929
  label: "Configure options",
1930
1930
  labelPosition: "center"
1931
- }), a.length > 0 && /* @__PURE__ */ r(j, {
1931
+ }), a.length > 0 && /* @__PURE__ */ r(N, {
1932
1932
  label: "Default Selection",
1933
1933
  data: i,
1934
1934
  value: e.default_value,
@@ -1971,7 +1971,7 @@ const hs = D(function({
1971
1971
  size: 16
1972
1972
  })
1973
1973
  })]
1974
- }, s)), /* @__PURE__ */ r(F, {
1974
+ }, s)), /* @__PURE__ */ r(P, {
1975
1975
  size: "xs",
1976
1976
  color: "blue",
1977
1977
  leftIcon: /* @__PURE__ */ r(Je, {
@@ -1983,7 +1983,7 @@ const hs = D(function({
1983
1983
  },
1984
1984
  mx: "auto",
1985
1985
  children: "Add an Option"
1986
- }), /* @__PURE__ */ r(ie, {
1986
+ }), /* @__PURE__ */ r(te, {
1987
1987
  label: "Or fetch options from database",
1988
1988
  labelPosition: "center"
1989
1989
  }), /* @__PURE__ */ r(va, {
@@ -2102,7 +2102,7 @@ const hs = D(function({
2102
2102
  onChange: (o) => {
2103
2103
  e.setLabel(o.currentTarget.value);
2104
2104
  }
2105
- }), /* @__PURE__ */ r(j, {
2105
+ }), /* @__PURE__ */ r(N, {
2106
2106
  label: "Widget",
2107
2107
  data: vs,
2108
2108
  required: !0,
@@ -2143,7 +2143,7 @@ const xs = D(function() {
2143
2143
  top: "16px",
2144
2144
  right: "16px"
2145
2145
  },
2146
- children: /* @__PURE__ */ r(F, {
2146
+ children: /* @__PURE__ */ r(P, {
2147
2147
  size: "xs",
2148
2148
  color: "red",
2149
2149
  leftIcon: /* @__PURE__ */ r(Br, {
@@ -2180,7 +2180,7 @@ const xs = D(function() {
2180
2180
  value: i.id,
2181
2181
  children: i.label
2182
2182
  }, i.id))
2183
- }), /* @__PURE__ */ r(F, {
2183
+ }), /* @__PURE__ */ r(P, {
2184
2184
  size: "xs",
2185
2185
  color: "blue",
2186
2186
  leftIcon: /* @__PURE__ */ r(Je, {
@@ -2217,7 +2217,7 @@ const xs = D(function() {
2217
2217
  }), /* @__PURE__ */ r(g, {
2218
2218
  position: "right",
2219
2219
  pt: 10,
2220
- children: /* @__PURE__ */ r(F, {
2220
+ children: /* @__PURE__ */ r(P, {
2221
2221
  size: "xs",
2222
2222
  color: "red",
2223
2223
  leftIcon: /* @__PURE__ */ r(J, {
@@ -2260,7 +2260,7 @@ var ws = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(ws || {}),
2260
2260
  const _s = D(() => {
2261
2261
  const e = ee().views.VIE;
2262
2262
  return !e || e.type !== De.Division ? null : /* @__PURE__ */ c(w, {
2263
- children: [/* @__PURE__ */ r(ie, {
2263
+ children: [/* @__PURE__ */ r(te, {
2264
2264
  mt: 8,
2265
2265
  mb: 0,
2266
2266
  label: "Division settings",
@@ -2275,7 +2275,7 @@ const _s = D(() => {
2275
2275
  }), Is = D(() => {
2276
2276
  const e = ee().views.VIE;
2277
2277
  return !e || e.type !== De.Modal ? null : /* @__PURE__ */ c(w, {
2278
- children: [/* @__PURE__ */ r(ie, {
2278
+ children: [/* @__PURE__ */ r(te, {
2279
2279
  mt: 8,
2280
2280
  label: "Modal settings",
2281
2281
  labelPosition: "center"
@@ -2314,7 +2314,7 @@ const _s = D(() => {
2314
2314
  onChange: (n) => {
2315
2315
  e.setName(n.currentTarget.value);
2316
2316
  }
2317
- }), /* @__PURE__ */ r(j, {
2317
+ }), /* @__PURE__ */ r(N, {
2318
2318
  label: "Type",
2319
2319
  value: e.type,
2320
2320
  onChange: e.setType,
@@ -2418,7 +2418,7 @@ const _s = D(() => {
2418
2418
  sx: {
2419
2419
  minWidth: "260px"
2420
2420
  },
2421
- children: [/* @__PURE__ */ r(j, {
2421
+ children: [/* @__PURE__ */ r(N, {
2422
2422
  value: t,
2423
2423
  onChange: (l) => {
2424
2424
  l !== vr ? e(l) : n();
@@ -2536,7 +2536,7 @@ const ya = D(function({
2536
2536
  children: s && /* @__PURE__ */ r(Es, {})
2537
2537
  }), /* @__PURE__ */ c(g, {
2538
2538
  position: "right",
2539
- children: [!l && /* @__PURE__ */ r(F, {
2539
+ children: [!l && /* @__PURE__ */ r(P, {
2540
2540
  variant: "default",
2541
2541
  size: "xs",
2542
2542
  disabled: !n.views.VIE,
@@ -2545,7 +2545,7 @@ const ya = D(function({
2545
2545
  size: 20
2546
2546
  }),
2547
2547
  children: "Add a Panel"
2548
- }), s && /* @__PURE__ */ r(F, {
2548
+ }), s && /* @__PURE__ */ r(P, {
2549
2549
  variant: "default",
2550
2550
  size: "xs",
2551
2551
  onClick: I,
@@ -2553,7 +2553,7 @@ const ya = D(function({
2553
2553
  size: 20
2554
2554
  }),
2555
2555
  children: "Filters"
2556
- }), s && /* @__PURE__ */ r(F, {
2556
+ }), s && /* @__PURE__ */ r(P, {
2557
2557
  variant: "default",
2558
2558
  size: "xs",
2559
2559
  onClick: h,
@@ -2561,7 +2561,7 @@ const ya = D(function({
2561
2561
  size: 20
2562
2562
  }),
2563
2563
  children: "Data Settings"
2564
- }), !l && /* @__PURE__ */ r(F, {
2564
+ }), !l && /* @__PURE__ */ r(P, {
2565
2565
  variant: "default",
2566
2566
  size: "xs",
2567
2567
  onClick: e,
@@ -2570,7 +2570,7 @@ const ya = D(function({
2570
2570
  size: 20
2571
2571
  }),
2572
2572
  children: "Save Changes"
2573
- }), !l && /* @__PURE__ */ r(F, {
2573
+ }), !l && /* @__PURE__ */ r(P, {
2574
2574
  color: "red",
2575
2575
  size: "xs",
2576
2576
  disabled: !o,
@@ -2582,7 +2582,7 @@ const ya = D(function({
2582
2582
  }), /* @__PURE__ */ c(ue, {
2583
2583
  width: 180,
2584
2584
  children: [/* @__PURE__ */ r(ue.Target, {
2585
- children: /* @__PURE__ */ r(F, {
2585
+ children: /* @__PURE__ */ r(P, {
2586
2586
  variant: "default",
2587
2587
  size: "xs",
2588
2588
  leftIcon: /* @__PURE__ */ r(uo, {
@@ -2697,7 +2697,7 @@ const Ca = (t) => {
2697
2697
  })]
2698
2698
  });
2699
2699
  };
2700
- class Fs {
2700
+ class Ps {
2701
2701
  constructor(e, n) {
2702
2702
  E(this, "operationId");
2703
2703
  E(this, "operation");
@@ -2718,7 +2718,7 @@ class Fs {
2718
2718
  this.operationId && (await this.operationManager.createOrGetOperation(this.operationId, e), await this.configOperation(this.operationId, this.variables));
2719
2719
  }
2720
2720
  }
2721
- function Ps(t) {
2721
+ function Fs(t) {
2722
2722
  return !!t.operationId;
2723
2723
  }
2724
2724
  const Ms = D(({
@@ -2727,7 +2727,7 @@ const Ms = D(({
2727
2727
  }) => {
2728
2728
  var a;
2729
2729
  const n = (a = t.operationSchema) == null ? void 0 : a.displayName;
2730
- return /* @__PURE__ */ r(F, {
2730
+ return /* @__PURE__ */ r(P, {
2731
2731
  variant: "outline",
2732
2732
  onClick: e,
2733
2733
  children: n
@@ -2752,7 +2752,7 @@ function Ls({
2752
2752
  async function a(i) {
2753
2753
  await t.changeSchema(e.find((o) => o.id === i));
2754
2754
  }
2755
- return /* @__PURE__ */ r(j, {
2755
+ return /* @__PURE__ */ r(N, {
2756
2756
  label: "Operation",
2757
2757
  data: n,
2758
2758
  onChange: a,
@@ -2768,10 +2768,10 @@ const qs = D((t) => {
2768
2768
  operationId: o,
2769
2769
  instance: s,
2770
2770
  variables: l
2771
- } = t, u = Pe(() => new Fs(i, s), [i, s]);
2771
+ } = t, u = Fe(() => new Ps(i, s), [i, s]);
2772
2772
  return ft(async () => {
2773
2773
  await u.configOperation(o, l);
2774
- }, [o, u]), Ps(u) ? /* @__PURE__ */ c(U, {
2774
+ }, [o, u]), Fs(u) ? /* @__PURE__ */ c(U, {
2775
2775
  children: [/* @__PURE__ */ r(Ms, {
2776
2776
  model: u,
2777
2777
  onClick: n
@@ -2821,7 +2821,7 @@ function Ns(t) {
2821
2821
  return !!t.triggerId && !!t.triggerSchema;
2822
2822
  }
2823
2823
  function js(t, e) {
2824
- return Pe(() => new $s(t, e), [t, e]);
2824
+ return Fe(() => new $s(t, e), [t, e]);
2825
2825
  }
2826
2826
  const Bs = D(({
2827
2827
  model: t,
@@ -2832,7 +2832,7 @@ const Bs = D(({
2832
2832
  instance: t.instance,
2833
2833
  sampleData: t.sampleData
2834
2834
  };
2835
- return /* @__PURE__ */ r(F, {
2835
+ return /* @__PURE__ */ r(P, {
2836
2836
  variant: "outline",
2837
2837
  onClick: e,
2838
2838
  children: Et(n, a)
@@ -2847,7 +2847,7 @@ const Bs = D(({
2847
2847
  async function a(i) {
2848
2848
  await t.changeSchema(e.find((o) => o.id === i));
2849
2849
  }
2850
- return /* @__PURE__ */ r(j, {
2850
+ return /* @__PURE__ */ r(N, {
2851
2851
  label: "Trigger",
2852
2852
  data: n,
2853
2853
  value: t.triggerSchema.id,
@@ -2900,7 +2900,7 @@ class Ue {
2900
2900
  }
2901
2901
  async getItem(e) {
2902
2902
  const n = await this.root.getItem(this.path);
2903
- return e === null ? n : re(n, e);
2903
+ return e === null ? n : ae(n, e);
2904
2904
  }
2905
2905
  async setItem(e, n) {
2906
2906
  if (e === null)
@@ -2921,7 +2921,7 @@ class Ue {
2921
2921
  ) : this.root.watchItem(
2922
2922
  this.path,
2923
2923
  (i, o) => {
2924
- const s = re(i, e), l = re(o, e);
2924
+ const s = ae(i, e), l = ae(o, e);
2925
2925
  s !== l && n(s, l);
2926
2926
  },
2927
2927
  a
@@ -2967,11 +2967,11 @@ class wa {
2967
2967
  return Promise.resolve(n);
2968
2968
  }
2969
2969
  getValueFromRoot(e) {
2970
- return e === null ? Ft(this.rootRef.current) : re(this.rootRef.current, [e]);
2970
+ return e === null ? Pt(this.rootRef.current) : ae(this.rootRef.current, [e]);
2971
2971
  }
2972
2972
  setItem(e, n) {
2973
2973
  if (e === null)
2974
- if (Fr(n))
2974
+ if (Pr(n))
2975
2975
  ct(() => {
2976
2976
  this.rootRef.current = n;
2977
2977
  });
@@ -2979,7 +2979,7 @@ class wa {
2979
2979
  throw new Error("Cannot set root value to non-object");
2980
2980
  else
2981
2981
  ct(() => {
2982
- Pr(this.rootRef.current, [e], n);
2982
+ Fr(this.rootRef.current, [e], n);
2983
2983
  });
2984
2984
  return Promise.resolve(this.getItem(e));
2985
2985
  }
@@ -2991,7 +2991,7 @@ class wa {
2991
2991
  },
2992
2992
  {
2993
2993
  requiresObservable: !0,
2994
- fireImmediately: re(a, "fireImmediately", !1)
2994
+ fireImmediately: ae(a, "fireImmediately", !1)
2995
2995
  }
2996
2996
  );
2997
2997
  }
@@ -3127,7 +3127,7 @@ const Hs = (t) => {
3127
3127
  getColor: At(["#fff7f1", "darkorange", "#b60000"]),
3128
3128
  name: "orange",
3129
3129
  category: "sequential"
3130
- }, rl = "4.11.0";
3130
+ }, rl = "4.12.0";
3131
3131
  class al {
3132
3132
  constructor(e) {
3133
3133
  E(this, "staticColors", /* @__PURE__ */ new Map());
@@ -3219,12 +3219,12 @@ class ye extends ol {
3219
3219
  return super.version(e, (a) => ({ version: e, ...n(a) }));
3220
3220
  }
3221
3221
  async migrate({ instanceData: e }) {
3222
- const n = await e.getItem(null), a = re(n, "version", 0), i = this.run({ from: a, to: this.VERSION }, n);
3222
+ const n = await e.getItem(null), a = ae(n, "version", 0), i = this.run({ from: a, to: this.VERSION }, n);
3223
3223
  await e.setItem(null, i);
3224
3224
  }
3225
3225
  async needMigration({ instanceData: e }) {
3226
3226
  const n = await e.getItem(null);
3227
- return re(n, "version", 0) < this.VERSION;
3227
+ return ae(n, "version", 0) < this.VERSION;
3228
3228
  }
3229
3229
  }
3230
3230
  const _n = {
@@ -3280,7 +3280,7 @@ function ll({
3280
3280
  const {
3281
3281
  value: e,
3282
3282
  set: n
3283
- } = G(t.instanceData, "config"), a = A(() => te({}, e, _n), [e]), {
3283
+ } = G(t.instanceData, "config"), a = A(() => ne({}, e, _n), [e]), {
3284
3284
  control: i,
3285
3285
  handleSubmit: o,
3286
3286
  watch: s,
@@ -3337,7 +3337,7 @@ class cl extends ye {
3337
3337
  E(this, "VERSION", 1);
3338
3338
  }
3339
3339
  fixMalformedConfig(n) {
3340
- return te({}, n, _n);
3340
+ return ne({}, n, _n);
3341
3341
  }
3342
3342
  configVersions() {
3343
3343
  this.version(1, (n) => ({
@@ -3465,7 +3465,7 @@ function pl({
3465
3465
  ref: n,
3466
3466
  children: [/* @__PURE__ */ c(g, {
3467
3467
  grow: !0,
3468
- children: [/* @__PURE__ */ r(j, {
3468
+ children: [/* @__PURE__ */ r(N, {
3469
3469
  label: "Format",
3470
3470
  data: [{
3471
3471
  label: "1234",
@@ -3479,7 +3479,7 @@ function pl({
3479
3479
  sx: {
3480
3480
  flexGrow: 1
3481
3481
  }
3482
- }), /* @__PURE__ */ r(Fe, {
3482
+ }), /* @__PURE__ */ r(Pe, {
3483
3483
  label: /* @__PURE__ */ c(w, {
3484
3484
  spacing: 0,
3485
3485
  children: [/* @__PURE__ */ r(v, {
@@ -3518,7 +3518,7 @@ function pl({
3518
3518
  max: 4,
3519
3519
  value: t.mantissa,
3520
3520
  onChange: i
3521
- }), /* @__PURE__ */ r(Fe, {
3521
+ }), /* @__PURE__ */ r(Pe, {
3522
3522
  label: "Trim mantissa",
3523
3523
  checked: t.trimMantissa,
3524
3524
  onChange: o,
@@ -3634,7 +3634,7 @@ function fl({
3634
3634
  grow: !0,
3635
3635
  noWrap: !0,
3636
3636
  pt: "sm",
3637
- children: [/* @__PURE__ */ r(j, {
3637
+ children: [/* @__PURE__ */ r(N, {
3638
3638
  ref: a,
3639
3639
  label: t,
3640
3640
  data: ml,
@@ -3674,7 +3674,7 @@ function bl({
3674
3674
  value: ""
3675
3675
  }]) : f;
3676
3676
  }, [i]);
3677
- return /* @__PURE__ */ r(j, {
3677
+ return /* @__PURE__ */ r(N, {
3678
3678
  ref: u,
3679
3679
  label: t,
3680
3680
  data: p,
@@ -3776,7 +3776,7 @@ function xl({
3776
3776
  flexGrow: 0
3777
3777
  },
3778
3778
  children: "or"
3779
- }), /* @__PURE__ */ r(j, {
3779
+ }), /* @__PURE__ */ r(N, {
3780
3780
  data: i,
3781
3781
  value: t,
3782
3782
  onChange: e,
@@ -3903,7 +3903,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
3903
3903
  $.set(u, s, l), n(u);
3904
3904
  };
3905
3905
  return /* @__PURE__ */ c(U, {
3906
- children: [/* @__PURE__ */ r(ie, {
3906
+ children: [/* @__PURE__ */ r(te, {
3907
3907
  my: "xs",
3908
3908
  label: "Typography",
3909
3909
  labelPosition: "center"
@@ -3931,12 +3931,12 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
3931
3931
  value: e.weight,
3932
3932
  onChange: (s) => o("weight", s)
3933
3933
  })
3934
- }), /* @__PURE__ */ r(ie, {
3934
+ }), /* @__PURE__ */ r(te, {
3935
3935
  my: "xs",
3936
3936
  label: "Style",
3937
3937
  labelPosition: "center"
3938
3938
  }), /* @__PURE__ */ c(w, {
3939
- children: [/* @__PURE__ */ r(j, {
3939
+ children: [/* @__PURE__ */ r(N, {
3940
3940
  label: "Color Type",
3941
3941
  data: [{
3942
3942
  label: "Static Color",
@@ -3981,7 +3981,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
3981
3981
  weight: "bold",
3982
3982
  pb: 0,
3983
3983
  children: e.name
3984
- }), /* @__PURE__ */ r(ie, {
3984
+ }), /* @__PURE__ */ r(te, {
3985
3985
  my: "xs",
3986
3986
  label: "Data",
3987
3987
  labelPosition: "center"
@@ -4004,7 +4004,7 @@ const _l = x.forwardRef(Sl), Il = x.forwardRef(function({
4004
4004
  label: "Aggregation",
4005
4005
  value: e.aggregation,
4006
4006
  onChange: (l) => s("aggregation", l)
4007
- }), /* @__PURE__ */ r(ie, {
4007
+ }), /* @__PURE__ */ r(te, {
4008
4008
  my: "xs",
4009
4009
  label: "Format",
4010
4010
  labelPosition: "center"
@@ -4110,7 +4110,7 @@ function El(t) {
4110
4110
  var e, n, a, i;
4111
4111
  return isNaN(t) && gt(t) && ((n = (e = t.match(Rt)) === null || e === void 0 ? void 0 : e.length) !== null && n !== void 0 ? n : 0) + ((i = (a = t.match(on)) === null || a === void 0 ? void 0 : a.length) !== null && i !== void 0 ? i : 0) > 0;
4112
4112
  }
4113
- function Fa(t) {
4113
+ function Pa(t) {
4114
4114
  typeof t == "number" && (t = `${t}`);
4115
4115
  const e = [];
4116
4116
  let n = 0;
@@ -4119,11 +4119,11 @@ function Fa(t) {
4119
4119
  const i = t.match(Rt);
4120
4120
  return i && (t = t.replace(Rt, Oa), e.push(...i.map($t.parse))), { values: e, numColors: n, tokenised: t };
4121
4121
  }
4122
- function Pa(t) {
4123
- return Fa(t).values;
4122
+ function Fa(t) {
4123
+ return Pa(t).values;
4124
4124
  }
4125
4125
  function Ma(t) {
4126
- const { values: e, numColors: n, tokenised: a } = Fa(t), i = e.length;
4126
+ const { values: e, numColors: n, tokenised: a } = Pa(t), i = e.length;
4127
4127
  return (o) => {
4128
4128
  let s = a;
4129
4129
  for (let l = 0; l < i; l++)
@@ -4132,11 +4132,11 @@ function Ma(t) {
4132
4132
  };
4133
4133
  }
4134
4134
  const Ol = (t) => typeof t == "number" ? 0 : t;
4135
- function Fl(t) {
4136
- const e = Pa(t);
4135
+ function Pl(t) {
4136
+ const e = Fa(t);
4137
4137
  return Ma(t)(e.map(Ol));
4138
4138
  }
4139
- const Aa = { test: El, parse: Pa, createTransformer: Ma, getAnimatableNone: Fl };
4139
+ const Aa = { test: El, parse: Fa, createTransformer: Ma, getAnimatableNone: Pl };
4140
4140
  function tn(t, e, n) {
4141
4141
  return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
4142
4142
  }
@@ -4156,7 +4156,7 @@ function yr({ hue: t, saturation: e, lightness: n, alpha: a }) {
4156
4156
  alpha: a
4157
4157
  };
4158
4158
  }
4159
- const Pl = (t, e, n) => {
4159
+ const Fl = (t, e, n) => {
4160
4160
  const a = t * t, i = e * e;
4161
4161
  return Math.sqrt(Math.max(0, n * (i - a) + a));
4162
4162
  }, Ml = [sn, Ee, $e], xr = (t) => Ml.find((e) => e.test(t)), Cr = (t) => `'${t}' is not an animatable color. Use the equivalent color code instead.`, La = (t, e) => {
@@ -4167,7 +4167,7 @@ const Pl = (t, e, n) => {
4167
4167
  const s = Object.assign({}, i);
4168
4168
  return (l) => {
4169
4169
  for (const u in s)
4170
- u !== "alpha" && (s[u] = Pl(i[u], o[u], l));
4170
+ u !== "alpha" && (s[u] = Fl(i[u], o[u], l));
4171
4171
  return s.alpha = kn(i.alpha, o.alpha, l), n.transform(s);
4172
4172
  };
4173
4173
  }, Al = (t) => typeof t == "number", Ll = (t, e) => (n) => e(t(n)), qa = (...t) => t.reduce(Ll);
@@ -4422,7 +4422,7 @@ function tc({
4422
4422
  }, p.name)), /* @__PURE__ */ r(g, {
4423
4423
  position: "center",
4424
4424
  mt: "xs",
4425
- children: /* @__PURE__ */ r(F, {
4425
+ children: /* @__PURE__ */ r(P, {
4426
4426
  onClick: u,
4427
4427
  children: "Add a Variable"
4428
4428
  })
@@ -4537,7 +4537,7 @@ const kt = {
4537
4537
  }, ac = ({
4538
4538
  vizManager: t,
4539
4539
  instance: e
4540
- }) => Pe(
4540
+ }) => Fe(
4541
4541
  () => new Ja(e, t.resolveComponent(e.type), $n),
4542
4542
  [e, t]
4543
4543
  ), ic = (t, e) => {
@@ -4668,14 +4668,14 @@ function gc(t) {
4668
4668
  set: o
4669
4669
  } = G(t.trigger.triggerData, "config"), {
4670
4670
  column: s
4671
- } = te({}, i, mc), l = (u) => {
4671
+ } = ne({}, i, mc), l = (u) => {
4672
4672
  isNaN(+u) ? o({
4673
4673
  column: u
4674
4674
  }) : o({
4675
4675
  column: +u
4676
4676
  });
4677
4677
  };
4678
- return /* @__PURE__ */ r(j, {
4678
+ return /* @__PURE__ */ r(N, {
4679
4679
  clearable: !1,
4680
4680
  data: a,
4681
4681
  label: "Choose a column",
@@ -4951,7 +4951,7 @@ class Vc {
4951
4951
  }
4952
4952
  getRelatedTrigger() {
4953
4953
  return this.triggers.filter((n) => n.schemaRef === Vn.id).filter((n) => {
4954
- const a = this.getColIndex(this.cell), i = re(this.cell.column.columnDef.meta, "value_field"), o = re(n.config, "column");
4954
+ const a = this.getColIndex(this.cell), i = ae(this.cell.column.columnDef.meta, "value_field"), o = ae(n.config, "column");
4955
4955
  return o == a || o == i;
4956
4956
  });
4957
4957
  }
@@ -5013,7 +5013,7 @@ class Ec {
5013
5013
  steps: Hr
5014
5014
  }, {
5015
5015
  deep: !1
5016
- }), bn(() => Ft(this.steps), () => {
5016
+ }), bn(() => Pt(this.steps), () => {
5017
5017
  this.notifyStepChange();
5018
5018
  });
5019
5019
  }
@@ -5092,12 +5092,12 @@ function Oc(t) {
5092
5092
  onChange: l
5093
5093
  }), /* @__PURE__ */ c(g, {
5094
5094
  position: "right",
5095
- children: [/* @__PURE__ */ r(F, {
5095
+ children: [/* @__PURE__ */ r(P, {
5096
5096
  variant: "subtle",
5097
5097
  size: "xs",
5098
5098
  onClick: R,
5099
5099
  children: "Cancel"
5100
- }), /* @__PURE__ */ r(F, {
5100
+ }), /* @__PURE__ */ r(P, {
5101
5101
  "data-testid": "palette-item-ok",
5102
5102
  size: "xs",
5103
5103
  onClick: O,
@@ -5118,7 +5118,7 @@ function Oc(t) {
5118
5118
  })]
5119
5119
  });
5120
5120
  }
5121
- const Fc = D(({
5121
+ const Pc = D(({
5122
5122
  model: t
5123
5123
  }) => {
5124
5124
  const {
@@ -5133,11 +5133,11 @@ const Fc = D(({
5133
5133
  onChange: (s) => t.changeStep(s, i)
5134
5134
  }, a))
5135
5135
  });
5136
- }), Pc = D(function(e) {
5137
- const n = Pe(() => new Ec(), []);
5136
+ }), Fc = D(function(e) {
5137
+ const n = Fe(() => new Ec(), []);
5138
5138
  return K(() => {
5139
5139
  n.fromProps(e);
5140
- }), n.interpolation == null ? null : /* @__PURE__ */ r(Fc, {
5140
+ }), n.interpolation == null ? null : /* @__PURE__ */ r(Pc, {
5141
5141
  model: n
5142
5142
  });
5143
5143
  }), Mc = (t) => {
@@ -5160,7 +5160,7 @@ const Fc = D(({
5160
5160
  }));
5161
5161
  }
5162
5162
  const y = () => {
5163
- h(), n == null || n(Ft(o));
5163
+ h(), n == null || n(Pt(o));
5164
5164
  };
5165
5165
  function I(O) {
5166
5166
  s((Q) => ({
@@ -5172,7 +5172,7 @@ const Fc = D(({
5172
5172
  h(), s(e);
5173
5173
  };
5174
5174
  return /* @__PURE__ */ c(U, {
5175
- children: [/* @__PURE__ */ r(F, {
5175
+ children: [/* @__PURE__ */ r(P, {
5176
5176
  variant: "outline",
5177
5177
  onClick: p,
5178
5178
  children: l == null ? void 0 : l.displayName
@@ -5183,22 +5183,22 @@ const Fc = D(({
5183
5183
  onClose: h,
5184
5184
  children: u && /* @__PURE__ */ c(w, {
5185
5185
  "data-testid": "color-interpolation-modal",
5186
- children: [/* @__PURE__ */ r(j, {
5186
+ children: [/* @__PURE__ */ r(N, {
5187
5187
  label: "Color style",
5188
5188
  value: o.interpolation,
5189
5189
  data: f,
5190
5190
  onChange: m
5191
- }), /* @__PURE__ */ r(Pc, {
5191
+ }), /* @__PURE__ */ r(Fc, {
5192
5192
  steps: o.steps,
5193
5193
  interpolation: l,
5194
5194
  onChange: I
5195
5195
  }), /* @__PURE__ */ c(g, {
5196
5196
  position: "right",
5197
- children: [/* @__PURE__ */ r(F, {
5197
+ children: [/* @__PURE__ */ r(P, {
5198
5198
  onClick: R,
5199
5199
  variant: "subtle",
5200
5200
  children: "Cancel"
5201
- }), /* @__PURE__ */ r(F, {
5201
+ }), /* @__PURE__ */ r(P, {
5202
5202
  onClick: y,
5203
5203
  children: "OK"
5204
5204
  })]
@@ -5221,7 +5221,7 @@ function qc(t, e) {
5221
5221
  return Ua(e) === "static" ? e : (n = t.getStaticColors()[0]) == null ? void 0 : n.value;
5222
5222
  }
5223
5223
  function $c(t, e) {
5224
- return Fr(e) ? e : {
5224
+ return Pr(e) ? e : {
5225
5225
  steps: Lc,
5226
5226
  interpolation: t.encodeColor(t.getColorInterpolations()[0])
5227
5227
  };
@@ -5232,7 +5232,7 @@ const Nc = (t) => {
5232
5232
  } = Me(Te), [n, a] = de(Ua(t.value)), [i, o] = de(qc(e, t.value)), s = pr(i), [l, u] = de($c(e, t.value)), p = pr(l);
5233
5233
  return /* @__PURE__ */ c(g, {
5234
5234
  align: "end",
5235
- children: [/* @__PURE__ */ r(j, {
5235
+ children: [/* @__PURE__ */ r(N, {
5236
5236
  label: "Cell background",
5237
5237
  value: n || "none",
5238
5238
  onChange: (y) => {
@@ -5265,7 +5265,7 @@ function Bc({
5265
5265
  onChange: n,
5266
5266
  sx: a
5267
5267
  }) {
5268
- return /* @__PURE__ */ r(j, {
5268
+ return /* @__PURE__ */ r(N, {
5269
5269
  label: t,
5270
5270
  data: jc,
5271
5271
  value: e,
@@ -5283,7 +5283,7 @@ function Gc({
5283
5283
  initialValues: kt
5284
5284
  });
5285
5285
  K(() => {
5286
- const s = te({}, e, a.values, kt);
5286
+ const s = ne({}, e, a.values, kt);
5287
5287
  e && a.setValues(s);
5288
5288
  }, [e]);
5289
5289
  const i = t.data || [], o = () => a.insertListItem("columns", {
@@ -5380,12 +5380,12 @@ function Gc({
5380
5380
  }), /* @__PURE__ */ c(g, {
5381
5381
  position: "apart",
5382
5382
  grow: !0,
5383
- children: [/* @__PURE__ */ r(Fe, {
5383
+ children: [/* @__PURE__ */ r(Pe, {
5384
5384
  label: "Striped",
5385
5385
  ...a.getInputProps("striped", {
5386
5386
  type: "checkbox"
5387
5387
  })
5388
- }), /* @__PURE__ */ r(Fe, {
5388
+ }), /* @__PURE__ */ r(Pe, {
5389
5389
  label: "Highlight on hover",
5390
5390
  ...a.getInputProps("highlightOnHover", {
5391
5391
  type: "checkbox"
@@ -5402,7 +5402,7 @@ function Gc({
5402
5402
  border: "1px solid #eee",
5403
5403
  borderRadius: "5px"
5404
5404
  },
5405
- children: [/* @__PURE__ */ r(Fe, {
5405
+ children: [/* @__PURE__ */ r(Pe, {
5406
5406
  label: "Use Original Data Columns",
5407
5407
  ...a.getInputProps("use_raw_columns", {
5408
5408
  type: "checkbox"
@@ -5461,7 +5461,7 @@ function Gc({
5461
5461
  }, l)), /* @__PURE__ */ r(g, {
5462
5462
  position: "center",
5463
5463
  mt: "xs",
5464
- children: /* @__PURE__ */ r(F, {
5464
+ children: /* @__PURE__ */ r(P, {
5465
5465
  onClick: o,
5466
5466
  children: "Add a Column"
5467
5467
  })
@@ -5509,7 +5509,7 @@ const cn = {
5509
5509
  label_field: "",
5510
5510
  value_field: ""
5511
5511
  };
5512
- ne.use([Vo, qe]);
5512
+ re.use([Vo, qe]);
5513
5513
  const Qc = {
5514
5514
  tooltip: {
5515
5515
  show: !0
@@ -5533,7 +5533,7 @@ function Yc({
5533
5533
  } = t.viewport, {
5534
5534
  label_field: o,
5535
5535
  value_field: s
5536
- } = te({}, e, zn), l = A(() => n.map((f) => ({
5536
+ } = ne({}, e, zn), l = A(() => n.map((f) => ({
5537
5537
  name: f[o],
5538
5538
  value: Number(f[s])
5539
5539
  })), [n, o, s]), u = A(() => {
@@ -5554,7 +5554,7 @@ function Yc({
5554
5554
  }
5555
5555
  });
5556
5556
  return /* @__PURE__ */ r(Le, {
5557
- echarts: ne,
5557
+ echarts: re,
5558
5558
  option: h,
5559
5559
  style: {
5560
5560
  width: a,
@@ -5571,7 +5571,7 @@ function Uc({
5571
5571
  } = G(t.instanceData, "config"), {
5572
5572
  label_field: a,
5573
5573
  value_field: i
5574
- } = te({}, e, zn), o = t.data, s = yn({
5574
+ } = ne({}, e, zn), o = t.data, s = yn({
5575
5575
  initialValues: {
5576
5576
  label_field: a,
5577
5577
  value_field: i
@@ -5651,7 +5651,7 @@ const Xc = {
5651
5651
  label_field: "",
5652
5652
  value_field: ""
5653
5653
  };
5654
- ne.use([zo, qe]);
5654
+ re.use([zo, qe]);
5655
5655
  const Jc = {
5656
5656
  tooltip: {
5657
5657
  show: !0
@@ -5697,14 +5697,14 @@ function Kc({
5697
5697
  } = t.viewport, {
5698
5698
  label_field: o,
5699
5699
  value_field: s
5700
- } = te({}, e, En), l = A(() => n.map((h) => ({
5700
+ } = ne({}, e, En), l = A(() => n.map((h) => ({
5701
5701
  name: h[o],
5702
5702
  value: Number(h[s])
5703
5703
  })), [n, o, s]), u = A(() => ({
5704
5704
  series: {
5705
5705
  labelLayout: function(h) {
5706
5706
  const f = h.labelRect.x < a / 2, m = h.labelLinePoints;
5707
- return Pr(m, [2, 0], f ? h.labelRect.x : h.labelRect.x + h.labelRect.width), {
5707
+ return Fr(m, [2, 0], f ? h.labelRect.x : h.labelRect.x + h.labelRect.width), {
5708
5708
  labelLinePoints: m
5709
5709
  };
5710
5710
  }
@@ -5715,7 +5715,7 @@ function Kc({
5715
5715
  }
5716
5716
  });
5717
5717
  return /* @__PURE__ */ r(Le, {
5718
- echarts: ne,
5718
+ echarts: re,
5719
5719
  option: p,
5720
5720
  style: {
5721
5721
  width: a,
@@ -5732,7 +5732,7 @@ function Zc({
5732
5732
  } = G(t.instanceData, "config"), {
5733
5733
  label_field: a,
5734
5734
  value_field: i
5735
- } = te({}, e, En), o = t.data, s = yn({
5735
+ } = ne({}, e, En), o = t.data, s = yn({
5736
5736
  initialValues: {
5737
5737
  label_field: a,
5738
5738
  value_field: i
@@ -5825,7 +5825,7 @@ const tu = {
5825
5825
  name: "Z Axis Name"
5826
5826
  }
5827
5827
  };
5828
- ne.use([Ke, Fo, Ze, et, qe]);
5828
+ re.use([Ke, Po, Ze, et, qe]);
5829
5829
  function nu({
5830
5830
  context: t
5831
5831
  }) {
@@ -5841,12 +5841,12 @@ function nu({
5841
5841
  xAxis3D: u,
5842
5842
  yAxis3D: p,
5843
5843
  zAxis3D: h
5844
- } = te({}, e, On), f = A(() => {
5844
+ } = ne({}, e, On), f = A(() => {
5845
5845
  const I = no(n, (R) => R[l]);
5846
- return re(I, l);
5846
+ return ae(I, l);
5847
5847
  }, [n, l]), m = A(() => {
5848
5848
  const I = qr(n, (R) => R[l]);
5849
- return re(I, l);
5849
+ return ae(I, l);
5850
5850
  }, [n, l]), y = {
5851
5851
  tooltip: {},
5852
5852
  backgroundColor: "#fff",
@@ -5882,7 +5882,7 @@ function nu({
5882
5882
  }]
5883
5883
  };
5884
5884
  return e ? /* @__PURE__ */ r(Le, {
5885
- echarts: ne,
5885
+ echarts: re,
5886
5886
  option: y,
5887
5887
  style: {
5888
5888
  width: a,
@@ -5896,7 +5896,7 @@ function ru({
5896
5896
  const {
5897
5897
  value: e,
5898
5898
  set: n
5899
- } = G(t.instanceData, "config"), a = t.data, i = te({}, e, On), {
5899
+ } = G(t.instanceData, "config"), a = t.data, i = ne({}, e, On), {
5900
5900
  control: o,
5901
5901
  handleSubmit: s,
5902
5902
  reset: l
@@ -6025,7 +6025,7 @@ function ru({
6025
6025
  width: "60%"
6026
6026
  },
6027
6027
  mx: "auto",
6028
- children: /* @__PURE__ */ c(F, {
6028
+ children: /* @__PURE__ */ c(P, {
6029
6029
  color: "blue",
6030
6030
  type: "submit",
6031
6031
  children: [/* @__PURE__ */ r(Z, {
@@ -6058,7 +6058,7 @@ const iu = {
6058
6058
  viewRender: nu,
6059
6059
  configRender: ru,
6060
6060
  createConfig: () => On
6061
- }, Fn = {
6061
+ }, Pn = {
6062
6062
  x_axis: {
6063
6063
  name: "X Axis",
6064
6064
  data_key: ""
@@ -6071,7 +6071,7 @@ const iu = {
6071
6071
  variables: [],
6072
6072
  reference_lines: []
6073
6073
  };
6074
- ne.use([Pt, Eo, Po, Ke, Ze, et, qe]);
6074
+ re.use([Ft, Eo, Fo, Ke, Ze, et, qe]);
6075
6075
  function ou(t, e, n) {
6076
6076
  const a = e.reduce((i, o) => {
6077
6077
  const s = Ba(o, n);
@@ -6111,7 +6111,7 @@ function su({
6111
6111
  color: l,
6112
6112
  variables: u,
6113
6113
  reference_lines: p
6114
- } = te({}, e, Fn), {
6114
+ } = ne({}, e, Pn), {
6115
6115
  xAxisData: h,
6116
6116
  boxplotData: f
6117
6117
  } = A(() => {
@@ -6163,7 +6163,7 @@ function su({
6163
6163
  }, ...ou(p, u, n)]
6164
6164
  };
6165
6165
  return !e || !a || !i ? null : /* @__PURE__ */ r(Le, {
6166
- echarts: ne,
6166
+ echarts: re,
6167
6167
  option: m,
6168
6168
  style: {
6169
6169
  width: a,
@@ -6207,7 +6207,7 @@ function lu({
6207
6207
  control: t,
6208
6208
  render: ({
6209
6209
  field: i
6210
- }) => /* @__PURE__ */ r(j, {
6210
+ }) => /* @__PURE__ */ r(N, {
6211
6211
  label: "Value",
6212
6212
  required: !0,
6213
6213
  data: a,
@@ -6277,7 +6277,7 @@ function cu({
6277
6277
  })), /* @__PURE__ */ r(g, {
6278
6278
  position: "center",
6279
6279
  mt: "xs",
6280
- children: /* @__PURE__ */ r(F, {
6280
+ children: /* @__PURE__ */ r(P, {
6281
6281
  onClick: l,
6282
6282
  children: "Add a Reference Line"
6283
6283
  })
@@ -6349,7 +6349,7 @@ function du({
6349
6349
  })), /* @__PURE__ */ r(g, {
6350
6350
  position: "center",
6351
6351
  mt: "xs",
6352
- children: /* @__PURE__ */ r(F, {
6352
+ children: /* @__PURE__ */ r(P, {
6353
6353
  onClick: u,
6354
6354
  children: "Add a Variable"
6355
6355
  })
@@ -6362,7 +6362,7 @@ function hu({
6362
6362
  const {
6363
6363
  value: e,
6364
6364
  set: n
6365
- } = G(t.instanceData, "config"), a = t.data, i = A(() => te({}, e, Fn), [e]), {
6365
+ } = G(t.instanceData, "config"), a = t.data, i = A(() => ne({}, e, Pn), [e]), {
6366
6366
  control: o,
6367
6367
  handleSubmit: s,
6368
6368
  watch: l,
@@ -6554,7 +6554,7 @@ const mu = {
6554
6554
  name: "boxplot",
6555
6555
  viewRender: su,
6556
6556
  configRender: hu,
6557
- createConfig: () => Fn
6557
+ createConfig: () => Pn
6558
6558
  };
6559
6559
  function fu(t) {
6560
6560
  const e = t.y_axes.some((n) => !!n.name);
@@ -6681,17 +6681,19 @@ function wu(t, e, n) {
6681
6681
  ];
6682
6682
  }
6683
6683
  function Su(t, e) {
6684
- return t.y_axes.map(({ ...n }, a) => {
6685
- var i;
6686
- return {
6687
- ...n,
6684
+ return t.y_axes.map(({ nameAlignment: n, ...a }, i) => {
6685
+ var s;
6686
+ let o = a.position;
6687
+ return o || (o = i > 0 ? "right" : "left"), {
6688
+ ...a,
6689
+ position: o,
6688
6690
  axisLabel: {
6689
6691
  show: !0,
6690
- formatter: (i = e[a]) != null ? i : e.default
6692
+ formatter: (s = e[i]) != null ? s : e.default
6691
6693
  },
6692
6694
  nameTextStyle: {
6693
6695
  fontWeight: "bold",
6694
- align: "right"
6696
+ align: n
6695
6697
  },
6696
6698
  nameLocation: "end",
6697
6699
  nameGap: 15
@@ -6761,7 +6763,7 @@ function Iu(t, e) {
6761
6763
  };
6762
6764
  return Ge({}, u, _u);
6763
6765
  }
6764
- const Pn = {
6766
+ const Fn = {
6765
6767
  regressions: [],
6766
6768
  series: [],
6767
6769
  stats: { templates: { bottom: "", top: "" }, variables: [] },
@@ -6770,14 +6772,16 @@ const Pn = {
6770
6772
  y_axes: [
6771
6773
  {
6772
6774
  name: "Y Axis",
6775
+ position: "left",
6776
+ nameAlignment: "center",
6773
6777
  label_formatter: Dn
6774
6778
  }
6775
6779
  ],
6776
6780
  variables: [],
6777
6781
  reference_lines: []
6778
6782
  };
6779
- ne.use([Pt, Jr, Kr, Zr, Ke, Ze, et, qe]);
6780
- ne.registerTransform(ea.regression);
6783
+ re.use([Ft, Jr, Kr, Zr, Ke, Ze, et, qe]);
6784
+ re.registerTransform(ea.regression);
6781
6785
  function _r(t) {
6782
6786
  return t.trim().length > 0;
6783
6787
  }
@@ -6789,7 +6793,7 @@ function Du({
6789
6793
  }) {
6790
6794
  const i = x.useMemo(() => Iu(t, e), [t, e]);
6791
6795
  return !n || !a ? null : /* @__PURE__ */ r(Le, {
6792
- echarts: ne,
6796
+ echarts: re,
6793
6797
  option: i,
6794
6798
  style: {
6795
6799
  width: n,
@@ -6802,7 +6806,7 @@ function Ru({
6802
6806
  }) {
6803
6807
  const {
6804
6808
  value: e
6805
- } = G(t.instanceData, "config"), n = A(() => te({}, e, Pn), [e]), a = t.data, {
6809
+ } = G(t.instanceData, "config"), n = A(() => ne({}, e, Fn), [e]), a = t.data, {
6806
6810
  width: i,
6807
6811
  height: o
6808
6812
  } = t.viewport, {
@@ -6939,7 +6943,7 @@ function Tu({
6939
6943
  })), /* @__PURE__ */ r(g, {
6940
6944
  position: "center",
6941
6945
  mt: "xs",
6942
- children: /* @__PURE__ */ r(F, {
6946
+ children: /* @__PURE__ */ r(P, {
6943
6947
  onClick: u,
6944
6948
  children: "Add a Variable"
6945
6949
  })
@@ -7017,7 +7021,7 @@ function zu({
7017
7021
  }
7018
7022
  }) => {
7019
7023
  var h;
7020
- return /* @__PURE__ */ r(j, {
7024
+ return /* @__PURE__ */ r(N, {
7021
7025
  label: "Y Axis",
7022
7026
  data: i,
7023
7027
  disabled: i.length === 0,
@@ -7044,7 +7048,7 @@ function zu({
7044
7048
  control: t,
7045
7049
  render: ({
7046
7050
  field: l
7047
- }) => /* @__PURE__ */ r(j, {
7051
+ }) => /* @__PURE__ */ r(N, {
7048
7052
  label: "Method",
7049
7053
  data: Vu,
7050
7054
  sx: {
@@ -7142,7 +7146,7 @@ function Eu({
7142
7146
  })), /* @__PURE__ */ r(g, {
7143
7147
  position: "center",
7144
7148
  mt: "xs",
7145
- children: /* @__PURE__ */ r(F, {
7149
+ children: /* @__PURE__ */ r(P, {
7146
7150
  onClick: h,
7147
7151
  children: "Add a Regression Line"
7148
7152
  })
@@ -7156,7 +7160,7 @@ const Ou = [{
7156
7160
  label: "Bars overlapping on each other",
7157
7161
  value: "-100%"
7158
7162
  }];
7159
- function Fu({
7163
+ function Pu({
7160
7164
  control: t,
7161
7165
  index: e
7162
7166
  }) {
@@ -7195,7 +7199,7 @@ function Fu({
7195
7199
  control: t,
7196
7200
  render: ({
7197
7201
  field: n
7198
- }) => /* @__PURE__ */ r(j, {
7202
+ }) => /* @__PURE__ */ r(N, {
7199
7203
  label: "Bar Gap",
7200
7204
  data: Ou,
7201
7205
  sx: {
@@ -7206,7 +7210,7 @@ function Fu({
7206
7210
  })]
7207
7211
  });
7208
7212
  }
7209
- const Pu = [{
7213
+ const Fu = [{
7210
7214
  label: "off",
7211
7215
  value: "false"
7212
7216
  }, {
@@ -7231,9 +7235,9 @@ function Mu({
7231
7235
  control: t,
7232
7236
  render: ({
7233
7237
  field: n
7234
- }) => /* @__PURE__ */ r(j, {
7238
+ }) => /* @__PURE__ */ r(N, {
7235
7239
  label: "Step",
7236
- data: Pu,
7240
+ data: Fu,
7237
7241
  sx: {
7238
7242
  flexGrow: 1,
7239
7243
  maxWidth: "48%"
@@ -7254,7 +7258,7 @@ function Mu({
7254
7258
  sx: {
7255
7259
  flexGrow: 1
7256
7260
  },
7257
- children: /* @__PURE__ */ r(Fe, {
7261
+ children: /* @__PURE__ */ r(Pe, {
7258
7262
  label: "Smooth Line",
7259
7263
  checked: n.value,
7260
7264
  onChange: (a) => n.onChange(a.currentTarget.checked)
@@ -7430,7 +7434,7 @@ function $u({
7430
7434
  }
7431
7435
  }) => {
7432
7436
  var h;
7433
- return /* @__PURE__ */ r(j, {
7437
+ return /* @__PURE__ */ r(N, {
7434
7438
  label: "Y Axis",
7435
7439
  data: i,
7436
7440
  disabled: i.length === 0,
@@ -7466,7 +7470,7 @@ function $u({
7466
7470
  }), s === "line" && /* @__PURE__ */ r(Mu, {
7467
7471
  index: e,
7468
7472
  control: t
7469
- }), s === "bar" && /* @__PURE__ */ r(Fu, {
7473
+ }), s === "bar" && /* @__PURE__ */ r(Pu, {
7470
7474
  index: e,
7471
7475
  control: t
7472
7476
  }), s === "scatter" && /* @__PURE__ */ r(Lu, {
@@ -7477,7 +7481,7 @@ function $u({
7477
7481
  control: t,
7478
7482
  render: ({
7479
7483
  field: l
7480
- }) => /* @__PURE__ */ r(j, {
7484
+ }) => /* @__PURE__ */ r(N, {
7481
7485
  label: "Label Position",
7482
7486
  data: qu,
7483
7487
  ...l
@@ -7557,14 +7561,30 @@ function Nu({
7557
7561
  }, f.id)), /* @__PURE__ */ r(g, {
7558
7562
  position: "center",
7559
7563
  mt: "xs",
7560
- children: /* @__PURE__ */ r(F, {
7564
+ children: /* @__PURE__ */ r(P, {
7561
7565
  onClick: u,
7562
7566
  children: "Add a Series"
7563
7567
  })
7564
7568
  })]
7565
7569
  });
7566
7570
  }
7567
- function ju({
7571
+ const ju = [{
7572
+ label: "left",
7573
+ value: "left"
7574
+ }, {
7575
+ label: "center",
7576
+ value: "center"
7577
+ }, {
7578
+ label: "right",
7579
+ value: "right"
7580
+ }], Bu = [{
7581
+ label: "left",
7582
+ value: "left"
7583
+ }, {
7584
+ label: "right",
7585
+ value: "right"
7586
+ }];
7587
+ function Gu({
7568
7588
  control: t,
7569
7589
  index: e,
7570
7590
  remove: n
@@ -7577,10 +7597,15 @@ function ju({
7577
7597
  border: "1px solid #eee",
7578
7598
  position: "relative"
7579
7599
  },
7580
- children: [/* @__PURE__ */ r(g, {
7600
+ children: [/* @__PURE__ */ r(te, {
7601
+ mb: -15,
7602
+ variant: "dashed",
7603
+ label: "Name",
7604
+ labelPosition: "center"
7605
+ }), /* @__PURE__ */ c(g, {
7581
7606
  grow: !0,
7582
7607
  noWrap: !0,
7583
- children: /* @__PURE__ */ r(_, {
7608
+ children: [/* @__PURE__ */ r(_, {
7584
7609
  name: `y_axes.${e}.name`,
7585
7610
  control: t,
7586
7611
  render: ({
@@ -7593,9 +7618,51 @@ function ju({
7593
7618
  },
7594
7619
  ...a
7595
7620
  })
7596
- })
7597
- }), /* @__PURE__ */ r(w, {
7621
+ }), /* @__PURE__ */ r(_, {
7622
+ name: `y_axes.${e}.nameAlignment`,
7623
+ control: t,
7624
+ render: ({
7625
+ field: a
7626
+ }) => /* @__PURE__ */ r(N, {
7627
+ label: "Align",
7628
+ required: !0,
7629
+ data: ju,
7630
+ sx: {
7631
+ flex: 1
7632
+ },
7633
+ ...a
7634
+ })
7635
+ })]
7636
+ }), /* @__PURE__ */ r(te, {
7637
+ mb: -15,
7638
+ variant: "dashed",
7639
+ label: "Layout",
7640
+ labelPosition: "center"
7641
+ }), /* @__PURE__ */ r(g, {
7642
+ grow: !0,
7643
+ noWrap: !0,
7598
7644
  children: /* @__PURE__ */ r(_, {
7645
+ name: `y_axes.${e}.position`,
7646
+ control: t,
7647
+ render: ({
7648
+ field: a
7649
+ }) => /* @__PURE__ */ r(N, {
7650
+ label: "Position",
7651
+ required: !0,
7652
+ data: Bu,
7653
+ sx: {
7654
+ flex: 1
7655
+ },
7656
+ ...a
7657
+ })
7658
+ })
7659
+ }), /* @__PURE__ */ c(w, {
7660
+ children: [/* @__PURE__ */ r(te, {
7661
+ mb: -15,
7662
+ variant: "dashed",
7663
+ label: "Label Format",
7664
+ labelPosition: "center"
7665
+ }), /* @__PURE__ */ r(_, {
7599
7666
  name: `y_axes.${e}.label_formatter`,
7600
7667
  control: t,
7601
7668
  render: ({
@@ -7603,7 +7670,7 @@ function ju({
7603
7670
  }) => /* @__PURE__ */ r(Da, {
7604
7671
  ...a
7605
7672
  })
7606
- })
7673
+ })]
7607
7674
  }), /* @__PURE__ */ r(z, {
7608
7675
  color: "red",
7609
7676
  variant: "subtle",
@@ -7620,7 +7687,7 @@ function ju({
7620
7687
  })]
7621
7688
  });
7622
7689
  }
7623
- function Bu({
7690
+ function Wu({
7624
7691
  control: t,
7625
7692
  watch: e
7626
7693
  }) {
@@ -7639,21 +7706,21 @@ function Bu({
7639
7706
  label_formatter: Dn
7640
7707
  });
7641
7708
  return /* @__PURE__ */ c(w, {
7642
- children: [s.map((u, p) => /* @__PURE__ */ r(ju, {
7709
+ children: [s.map((u, p) => /* @__PURE__ */ r(Gu, {
7643
7710
  control: t,
7644
7711
  index: p,
7645
7712
  remove: i
7646
7713
  }, p)), /* @__PURE__ */ r(g, {
7647
7714
  position: "center",
7648
7715
  mt: "xs",
7649
- children: /* @__PURE__ */ r(F, {
7716
+ children: /* @__PURE__ */ r(P, {
7650
7717
  onClick: l,
7651
7718
  children: "Add a Y Axis"
7652
7719
  })
7653
7720
  })]
7654
7721
  });
7655
7722
  }
7656
- function Gu({
7723
+ function Qu({
7657
7724
  control: t,
7658
7725
  index: e,
7659
7726
  remove: n,
@@ -7693,7 +7760,7 @@ function Gu({
7693
7760
  })]
7694
7761
  }, e);
7695
7762
  }
7696
- function Wu({
7763
+ function Yu({
7697
7764
  control: t,
7698
7765
  watch: e,
7699
7766
  data: n
@@ -7710,7 +7777,7 @@ function Wu({
7710
7777
  ...s[h]
7711
7778
  })), u = () => i(Lt());
7712
7779
  return /* @__PURE__ */ c(w, {
7713
- children: [l.map((p, h) => /* @__PURE__ */ r(Gu, {
7780
+ children: [l.map((p, h) => /* @__PURE__ */ r(Qu, {
7714
7781
  control: t,
7715
7782
  index: h,
7716
7783
  remove: o,
@@ -7718,14 +7785,14 @@ function Wu({
7718
7785
  })), /* @__PURE__ */ r(g, {
7719
7786
  position: "center",
7720
7787
  mt: "xs",
7721
- children: /* @__PURE__ */ r(F, {
7788
+ children: /* @__PURE__ */ r(P, {
7722
7789
  onClick: u,
7723
7790
  children: "Add a Variable"
7724
7791
  })
7725
7792
  })]
7726
7793
  });
7727
7794
  }
7728
- function Qu({
7795
+ function Uu({
7729
7796
  control: t,
7730
7797
  index: e,
7731
7798
  remove: n,
@@ -7761,7 +7828,7 @@ function Qu({
7761
7828
  control: t,
7762
7829
  render: ({
7763
7830
  field: i
7764
- }) => /* @__PURE__ */ r(j, {
7831
+ }) => /* @__PURE__ */ r(N, {
7765
7832
  label: "Value",
7766
7833
  required: !0,
7767
7834
  data: a,
@@ -7800,7 +7867,7 @@ function Qu({
7800
7867
  })]
7801
7868
  }, e);
7802
7869
  }
7803
- function Yu({
7870
+ function Hu({
7804
7871
  control: t,
7805
7872
  watch: e
7806
7873
  }) {
@@ -7823,7 +7890,7 @@ function Yu({
7823
7890
  value: h.name
7824
7891
  })), [u]);
7825
7892
  return /* @__PURE__ */ c(w, {
7826
- children: [s.map((h, f) => /* @__PURE__ */ r(Qu, {
7893
+ children: [s.map((h, f) => /* @__PURE__ */ r(Uu, {
7827
7894
  control: t,
7828
7895
  index: f,
7829
7896
  remove: i,
@@ -7831,14 +7898,14 @@ function Yu({
7831
7898
  })), /* @__PURE__ */ r(g, {
7832
7899
  position: "center",
7833
7900
  mt: "xs",
7834
- children: /* @__PURE__ */ r(F, {
7901
+ children: /* @__PURE__ */ r(P, {
7835
7902
  onClick: l,
7836
7903
  children: "Add a Reference Line"
7837
7904
  })
7838
7905
  })]
7839
7906
  });
7840
7907
  }
7841
- function Uu(t) {
7908
+ function Xu(t) {
7842
7909
  function e({
7843
7910
  type: n,
7844
7911
  name: a,
@@ -7874,7 +7941,7 @@ function Uu(t) {
7874
7941
  }
7875
7942
  return t.map(e);
7876
7943
  }
7877
- function Hu(t) {
7944
+ function Ju(t) {
7878
7945
  return t || {
7879
7946
  templates: {
7880
7947
  top: "",
@@ -7883,21 +7950,21 @@ function Hu(t) {
7883
7950
  variables: []
7884
7951
  };
7885
7952
  }
7886
- function Xu({
7953
+ function Ku({
7887
7954
  context: t
7888
7955
  }) {
7889
7956
  const {
7890
7957
  value: e,
7891
7958
  set: n
7892
- } = G(t.instanceData, "config"), a = t.data, i = A(() => Ge({}, e, Pn), [e]), o = A(() => {
7959
+ } = G(t.instanceData, "config"), a = t.data, i = A(() => Ge({}, e, Fn), [e]), o = A(() => {
7893
7960
  const {
7894
7961
  series: y,
7895
7962
  stats: I,
7896
7963
  ...R
7897
7964
  } = i;
7898
7965
  return {
7899
- series: Uu(y != null ? y : []),
7900
- stats: Hu(I),
7966
+ series: Xu(y != null ? y : []),
7967
+ stats: Ju(I),
7901
7968
  ...R
7902
7969
  };
7903
7970
  }, [i]);
@@ -7987,7 +8054,7 @@ function Xu({
7987
8054
  children: [/* @__PURE__ */ r(M.Control, {
7988
8055
  children: "Y Axes"
7989
8056
  }), /* @__PURE__ */ r(M.Panel, {
7990
- children: /* @__PURE__ */ r(Bu, {
8057
+ children: /* @__PURE__ */ r(Wu, {
7991
8058
  control: s,
7992
8059
  watch: u
7993
8060
  })
@@ -8051,7 +8118,7 @@ function Xu({
8051
8118
  }), /* @__PURE__ */ r(V.Panel, {
8052
8119
  value: "variables",
8053
8120
  pt: "xs",
8054
- children: /* @__PURE__ */ r(Wu, {
8121
+ children: /* @__PURE__ */ r(Yu, {
8055
8122
  control: s,
8056
8123
  watch: u,
8057
8124
  data: a
@@ -8059,7 +8126,7 @@ function Xu({
8059
8126
  }), /* @__PURE__ */ r(V.Panel, {
8060
8127
  value: "reference_lines",
8061
8128
  pt: "xs",
8062
- children: /* @__PURE__ */ r(Yu, {
8129
+ children: /* @__PURE__ */ r(Hu, {
8063
8130
  control: s,
8064
8131
  watch: u
8065
8132
  })
@@ -8071,7 +8138,7 @@ function Xu({
8071
8138
  })
8072
8139
  });
8073
8140
  }
8074
- class Ju extends ye {
8141
+ class Zu extends ye {
8075
8142
  constructor() {
8076
8143
  super(...arguments);
8077
8144
  E(this, "VERSION", 1);
@@ -8083,14 +8150,14 @@ class Ju extends ye {
8083
8150
  }));
8084
8151
  }
8085
8152
  }
8086
- const Ku = {
8153
+ const ed = {
8087
8154
  displayName: "Cartesian Chart",
8088
- migrator: new Ju(),
8155
+ migrator: new Zu(),
8089
8156
  name: "cartesian",
8090
8157
  viewRender: Ru,
8091
- configRender: Xu,
8092
- createConfig: () => Pn
8093
- }, Zu = {
8158
+ configRender: Ku,
8159
+ createConfig: () => Fn
8160
+ }, td = {
8094
8161
  legend: {
8095
8162
  show: !0,
8096
8163
  bottom: 0,
@@ -8100,7 +8167,7 @@ const Ku = {
8100
8167
  trigger: "item"
8101
8168
  }
8102
8169
  };
8103
- function ed(t, e) {
8170
+ function nd(t, e) {
8104
8171
  const n = t.dimensions.map(({ name: o, max: s, color: l }) => ({
8105
8172
  name: o,
8106
8173
  max: s,
@@ -8117,14 +8184,14 @@ function ed(t, e) {
8117
8184
  data: a
8118
8185
  }
8119
8186
  };
8120
- return $.merge({}, Zu, i);
8187
+ return $.merge({}, td, i);
8121
8188
  }
8122
8189
  const Mn = {
8123
8190
  series_name_key: "name",
8124
8191
  dimensions: []
8125
8192
  };
8126
- ne.use([Oo, Ke, Ze, et, qe]);
8127
- function td({
8193
+ re.use([Oo, Ke, Ze, et, qe]);
8194
+ function rd({
8128
8195
  context: t
8129
8196
  }) {
8130
8197
  const {
@@ -8132,10 +8199,10 @@ function td({
8132
8199
  } = G(t.instanceData, "config"), {
8133
8200
  width: n,
8134
8201
  height: a
8135
- } = t.viewport, i = t.data, o = A(() => ed(Ge({}, e, Mn), i), [e, i]);
8202
+ } = t.viewport, i = t.data, o = A(() => nd(Ge({}, e, Mn), i), [e, i]);
8136
8203
  return !n || !a || !e || Mr(e == null ? void 0 : e.dimensions) ? null : /* @__PURE__ */ r(q, {
8137
8204
  children: /* @__PURE__ */ r(Le, {
8138
- echarts: ne,
8205
+ echarts: re,
8139
8206
  option: o,
8140
8207
  style: {
8141
8208
  width: n,
@@ -8144,7 +8211,7 @@ function td({
8144
8211
  })
8145
8212
  });
8146
8213
  }
8147
- function nd({
8214
+ function ad({
8148
8215
  control: t,
8149
8216
  index: e,
8150
8217
  remove: n,
@@ -8232,7 +8299,7 @@ function nd({
8232
8299
  })]
8233
8300
  }, e);
8234
8301
  }
8235
- function rd({
8302
+ function id({
8236
8303
  control: t,
8237
8304
  watch: e,
8238
8305
  data: n
@@ -8254,7 +8321,7 @@ function rd({
8254
8321
  color: "red"
8255
8322
  });
8256
8323
  return /* @__PURE__ */ c(w, {
8257
- children: [l.map((p, h) => /* @__PURE__ */ r(nd, {
8324
+ children: [l.map((p, h) => /* @__PURE__ */ r(ad, {
8258
8325
  data: n,
8259
8326
  control: t,
8260
8327
  index: h,
@@ -8262,14 +8329,14 @@ function rd({
8262
8329
  })), /* @__PURE__ */ r(g, {
8263
8330
  position: "center",
8264
8331
  mt: "xs",
8265
- children: /* @__PURE__ */ r(F, {
8332
+ children: /* @__PURE__ */ r(P, {
8266
8333
  onClick: u,
8267
8334
  children: "Add a Dimension"
8268
8335
  })
8269
8336
  })]
8270
8337
  });
8271
8338
  }
8272
- function ad(t) {
8339
+ function od(t) {
8273
8340
  function e({
8274
8341
  name: n = "",
8275
8342
  data_key: a = "",
@@ -8285,7 +8352,7 @@ function ad(t) {
8285
8352
  }
8286
8353
  return t.map(e);
8287
8354
  }
8288
- function id({
8355
+ function sd({
8289
8356
  context: t
8290
8357
  }) {
8291
8358
  const e = t.data, {
@@ -8295,7 +8362,7 @@ function id({
8295
8362
  dimensions: o,
8296
8363
  series_name_key: s
8297
8364
  } = i, l = A(() => ({
8298
- dimensions: ad(o != null ? o : []),
8365
+ dimensions: od(o != null ? o : []),
8299
8366
  series_name_key: s
8300
8367
  }), [o, s]);
8301
8368
  K(() => {
@@ -8356,7 +8423,7 @@ function id({
8356
8423
  ...R
8357
8424
  })
8358
8425
  })
8359
- }), /* @__PURE__ */ r(rd, {
8426
+ }), /* @__PURE__ */ r(id, {
8360
8427
  control: u,
8361
8428
  watch: h,
8362
8429
  data: e
@@ -8364,7 +8431,7 @@ function id({
8364
8431
  })
8365
8432
  });
8366
8433
  }
8367
- class od extends ye {
8434
+ class ld extends ye {
8368
8435
  constructor() {
8369
8436
  super(...arguments);
8370
8437
  E(this, "VERSION", 1);
@@ -8376,15 +8443,15 @@ class od extends ye {
8376
8443
  }));
8377
8444
  }
8378
8445
  }
8379
- const sd = {
8446
+ const cd = {
8380
8447
  displayName: "Radar Chart",
8381
- migrator: new od(),
8448
+ migrator: new ld(),
8382
8449
  name: "radar",
8383
- viewRender: td,
8384
- configRender: id,
8450
+ viewRender: rd,
8451
+ configRender: sd,
8385
8452
  createConfig: () => Mn
8386
8453
  };
8387
- function ld(t, e) {
8454
+ function ud(t, e) {
8388
8455
  switch (t.config.method) {
8389
8456
  case "linear":
8390
8457
  return [...ze.regressionLinear()(e)];
@@ -8398,11 +8465,11 @@ function ld(t, e) {
8398
8465
  return [];
8399
8466
  }
8400
8467
  }
8401
- function cd({ regression: t }, e) {
8468
+ function dd({ regression: t }, e) {
8402
8469
  const n = [], a = [];
8403
8470
  if (e.length === 0)
8404
8471
  return { regressionSeries: n, regressionXAxes: a };
8405
- const { transform: i, plot: o, name: s } = t, l = ld(i, e);
8472
+ const { transform: i, plot: o, name: s } = t, l = ud(i, e);
8406
8473
  return n.push({
8407
8474
  ...o,
8408
8475
  name: s,
@@ -8414,7 +8481,7 @@ function cd({ regression: t }, e) {
8414
8481
  }
8415
8482
  }), { regressionSeries: n, regressionXAxes: a };
8416
8483
  }
8417
- const ud = {
8484
+ const hd = {
8418
8485
  tooltip: {
8419
8486
  trigger: "axis"
8420
8487
  },
@@ -8436,12 +8503,12 @@ const ud = {
8436
8503
  }
8437
8504
  ]
8438
8505
  };
8439
- function dd(t, e) {
8506
+ function pd(t, e) {
8440
8507
  var o, s;
8441
8508
  const n = $.uniqBy(
8442
8509
  e.map((l) => [l[t.x_axis.data_key], l[t.regression.y_axis_data_key]]),
8443
8510
  0
8444
- ), { regressionSeries: a } = cd(t, n), i = {
8511
+ ), { regressionSeries: a } = dd(t, n), i = {
8445
8512
  xAxis: {
8446
8513
  type: "category",
8447
8514
  name: (o = t.x_axis.name) != null ? o : ""
@@ -8460,12 +8527,12 @@ function dd(t, e) {
8460
8527
  ...a
8461
8528
  ]
8462
8529
  };
8463
- return Ge({}, i, ud);
8530
+ return Ge({}, i, hd);
8464
8531
  }
8465
8532
  function It(t, e, n) {
8466
8533
  return 1 - (1 - t) * (e - 1) / (e - n - 1);
8467
8534
  }
8468
- function hd(t, e) {
8535
+ function md(t, e) {
8469
8536
  if (!e)
8470
8537
  return {
8471
8538
  expression: "",
@@ -8641,9 +8708,9 @@ const An = {
8641
8708
  y_axis_data_key: "value"
8642
8709
  }
8643
8710
  };
8644
- ne.use([Pt, Zr, Ke, Ze, et, qe]);
8645
- ne.registerTransform(ea.regression);
8646
- function pd({
8711
+ re.use([Ft, Zr, Ke, Ze, et, qe]);
8712
+ re.registerTransform(ea.regression);
8713
+ function fd({
8647
8714
  context: t
8648
8715
  }) {
8649
8716
  const {
@@ -8658,11 +8725,11 @@ function pd({
8658
8725
  ...y,
8659
8726
  [f]: Number(y[f])
8660
8727
  }) : h;
8661
- }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), o = A(() => dd(Ge({}, e, An), i), [e, i]), {
8728
+ }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), o = A(() => pd(Ge({}, e, An), i), [e, i]), {
8662
8729
  expression: s,
8663
8730
  rSquared: l,
8664
8731
  adjustedRSquared: u
8665
- } = A(() => hd(i, e), [e, i]);
8732
+ } = A(() => md(i, e), [e, i]);
8666
8733
  if (!n || !a || !e)
8667
8734
  return null;
8668
8735
  let p = a;
@@ -8682,7 +8749,7 @@ function pd({
8682
8749
  }
8683
8750
  },
8684
8751
  children: [/* @__PURE__ */ r(Le, {
8685
- echarts: ne,
8752
+ echarts: re,
8686
8753
  option: o,
8687
8754
  style: {
8688
8755
  width: n - 190,
@@ -8729,7 +8796,7 @@ function pd({
8729
8796
  })]
8730
8797
  });
8731
8798
  }
8732
- const md = [{
8799
+ const gd = [{
8733
8800
  label: "Linear",
8734
8801
  value: "linear"
8735
8802
  }, {
@@ -8742,7 +8809,7 @@ const md = [{
8742
8809
  label: "Polynomial",
8743
8810
  value: "polynomial"
8744
8811
  }];
8745
- function fd({
8812
+ function bd({
8746
8813
  control: t,
8747
8814
  watch: e,
8748
8815
  data: n
@@ -8788,9 +8855,9 @@ function fd({
8788
8855
  control: t,
8789
8856
  render: ({
8790
8857
  field: i
8791
- }) => /* @__PURE__ */ r(j, {
8858
+ }) => /* @__PURE__ */ r(N, {
8792
8859
  label: "Method",
8793
- data: md,
8860
+ data: gd,
8794
8861
  sx: {
8795
8862
  flex: 1
8796
8863
  },
@@ -8826,13 +8893,13 @@ function fd({
8826
8893
  })]
8827
8894
  });
8828
8895
  }
8829
- function gd({
8896
+ function vd({
8830
8897
  context: t
8831
8898
  }) {
8832
8899
  const {
8833
8900
  value: e,
8834
8901
  set: n
8835
- } = G(t.instanceData, "config"), a = t.data, i = A(() => te({}, e, An), [e]), {
8902
+ } = G(t.instanceData, "config"), a = t.data, i = A(() => ne({}, e, An), [e]), {
8836
8903
  control: o,
8837
8904
  handleSubmit: s,
8838
8905
  watch: l,
@@ -8931,7 +8998,7 @@ function gd({
8931
8998
  children: [/* @__PURE__ */ r(M.Control, {
8932
8999
  children: "Regression Line"
8933
9000
  }), /* @__PURE__ */ r(M.Panel, {
8934
- children: /* @__PURE__ */ r(fd, {
9001
+ children: /* @__PURE__ */ r(bd, {
8935
9002
  control: o,
8936
9003
  watch: l,
8937
9004
  data: a
@@ -8942,7 +9009,7 @@ function gd({
8942
9009
  })
8943
9010
  });
8944
9011
  }
8945
- class bd extends ye {
9012
+ class yd extends ye {
8946
9013
  constructor() {
8947
9014
  super(...arguments);
8948
9015
  E(this, "VERSION", 1);
@@ -8954,12 +9021,12 @@ class bd extends ye {
8954
9021
  }));
8955
9022
  }
8956
9023
  }
8957
- const vd = {
9024
+ const xd = {
8958
9025
  displayName: "Regression Chart",
8959
- migrator: new bd(),
9026
+ migrator: new yd(),
8960
9027
  name: "regressionChart",
8961
- viewRender: pd,
8962
- configRender: gd,
9028
+ viewRender: fd,
9029
+ configRender: vd,
8963
9030
  createConfig: () => An
8964
9031
  }, Ln = {
8965
9032
  x_axis: {
@@ -8982,7 +9049,7 @@ function qn(t) {
8982
9049
  mantissa: 0
8983
9050
  });
8984
9051
  }
8985
- function yd(t) {
9052
+ function Cd(t) {
8986
9053
  const e = t.value[1];
8987
9054
  try {
8988
9055
  return qn(e);
@@ -8990,7 +9057,7 @@ function yd(t) {
8990
9057
  return console.error(n), e;
8991
9058
  }
8992
9059
  }
8993
- function xd(t) {
9060
+ function wd(t) {
8994
9061
  const e = Array.isArray(t) ? t : [t];
8995
9062
  if (e.length === 0)
8996
9063
  return "";
@@ -9000,8 +9067,8 @@ function xd(t) {
9000
9067
  });
9001
9068
  return n.unshift(`<strong>${e[0].name}</strong>`), n.join("<br />");
9002
9069
  }
9003
- ne.use([Jr, Kr, Pt, Ke, Ze, et, qe]);
9004
- function Cd({
9070
+ re.use([Jr, Kr, Ft, Ke, Ze, et, qe]);
9071
+ function Sd({
9005
9072
  context: t
9006
9073
  }) {
9007
9074
  const {
@@ -9014,7 +9081,7 @@ function Cd({
9014
9081
  data_key: s,
9015
9082
  bar: l,
9016
9083
  line: u
9017
- } = te({}, e, Ln), {
9084
+ } = ne({}, e, Ln), {
9018
9085
  barData: p,
9019
9086
  lineData: h
9020
9087
  } = A(() => {
@@ -9036,7 +9103,7 @@ function Cd({
9036
9103
  }],
9037
9104
  tooltip: {
9038
9105
  trigger: "axis",
9039
- formatter: xd
9106
+ formatter: wd
9040
9107
  },
9041
9108
  xAxis: [{
9042
9109
  type: "category",
@@ -9084,14 +9151,14 @@ function Cd({
9084
9151
  label: {
9085
9152
  show: !0,
9086
9153
  position: "top",
9087
- formatter: yd
9154
+ formatter: Cd
9088
9155
  },
9089
9156
  yAxisIndex: 1,
9090
9157
  data: h
9091
9158
  }]
9092
9159
  };
9093
9160
  return !e || !a || !i ? null : /* @__PURE__ */ r(Le, {
9094
- echarts: ne,
9161
+ echarts: re,
9095
9162
  option: f,
9096
9163
  style: {
9097
9164
  width: a,
@@ -9099,13 +9166,13 @@ function Cd({
9099
9166
  }
9100
9167
  });
9101
9168
  }
9102
- function wd({
9169
+ function _d({
9103
9170
  context: t
9104
9171
  }) {
9105
9172
  const {
9106
9173
  value: e,
9107
9174
  set: n
9108
- } = G(t.instanceData, "config"), a = t.data, i = A(() => te({}, e, Ln), [e]), {
9175
+ } = G(t.instanceData, "config"), a = t.data, i = A(() => ne({}, e, Ln), [e]), {
9109
9176
  control: o,
9110
9177
  handleSubmit: s,
9111
9178
  watch: l,
@@ -9187,7 +9254,7 @@ function wd({
9187
9254
  },
9188
9255
  ...m
9189
9256
  })
9190
- }), /* @__PURE__ */ r(ie, {
9257
+ }), /* @__PURE__ */ r(te, {
9191
9258
  my: "md",
9192
9259
  label: "Bar",
9193
9260
  labelPosition: "center"
@@ -9221,7 +9288,7 @@ function wd({
9221
9288
  })
9222
9289
  })]
9223
9290
  })]
9224
- }), /* @__PURE__ */ r(ie, {
9291
+ }), /* @__PURE__ */ r(te, {
9225
9292
  my: "md",
9226
9293
  label: "Line",
9227
9294
  labelPosition: "center"
@@ -9259,7 +9326,7 @@ function wd({
9259
9326
  })
9260
9327
  });
9261
9328
  }
9262
- class Sd extends ye {
9329
+ class Id extends ye {
9263
9330
  constructor() {
9264
9331
  super(...arguments);
9265
9332
  E(this, "VERSION", 1);
@@ -9271,14 +9338,14 @@ class Sd extends ye {
9271
9338
  }));
9272
9339
  }
9273
9340
  }
9274
- const _d = {
9341
+ const Dd = {
9275
9342
  displayName: "Pareto Chart",
9276
- migrator: new Sd(),
9343
+ migrator: new Id(),
9277
9344
  name: "paretoChart",
9278
- viewRender: Cd,
9279
- configRender: wd,
9345
+ viewRender: Sd,
9346
+ configRender: _d,
9280
9347
  createConfig: () => Ln
9281
- }, Id = [{
9348
+ }, Rd = [{
9282
9349
  value: "#25262B",
9283
9350
  name: "Dark"
9284
9351
  }, {
@@ -9325,12 +9392,12 @@ const _d = {
9325
9392
  value: t.value,
9326
9393
  type: "single",
9327
9394
  category: "basic"
9328
- })), Dd = [Js, Ks, tl, el, Zs, nl], Ha = {
9395
+ })), kd = [Js, Ks, tl, el, Zs, nl], Ha = {
9329
9396
  id: "dashboard",
9330
9397
  version: rl,
9331
9398
  manifest: {
9332
- viz: [cn, rc, ul, Xc, tu, iu, mu, _d, Ku, sd, vd],
9333
- color: [...Id, ...Dd]
9399
+ viz: [cn, rc, ul, Xc, tu, iu, mu, Dd, ed, cd, xd],
9400
+ color: [...Rd, ...kd]
9334
9401
  }
9335
9402
  }, lt = new il(), Xa = () => {
9336
9403
  try {
@@ -9348,27 +9415,27 @@ try {
9348
9415
  lt.install(Ha);
9349
9416
  } catch {
9350
9417
  }
9351
- function Rd(t, e) {
9418
+ function Td(t, e) {
9352
9419
  const {
9353
9420
  value: n,
9354
9421
  set: a
9355
- } = G(t.operation.operationData, "config"), [i, o] = de(te({}, n, e)), s = async () => {
9422
+ } = G(t.operation.operationData, "config"), [i, o] = de(ne({}, n, e)), s = async () => {
9356
9423
  await a(i);
9357
9424
  };
9358
9425
  return K(() => {
9359
- o(te({}, n, e));
9426
+ o(ne({}, n, e));
9360
9427
  }, [n]), {
9361
9428
  config: i,
9362
9429
  setConfig: o,
9363
9430
  commit: s
9364
9431
  };
9365
9432
  }
9366
- function kd(t) {
9433
+ function Vd(t) {
9367
9434
  const {
9368
9435
  config: e,
9369
9436
  setConfig: n,
9370
9437
  commit: a
9371
- } = Rd(t, {
9438
+ } = Td(t, {
9372
9439
  urlTemplate: "",
9373
9440
  openInNewTab: !0
9374
9441
  });
@@ -9391,33 +9458,33 @@ function kd(t) {
9391
9458
  value: e.urlTemplate,
9392
9459
  onChange: s,
9393
9460
  onBlur: i
9394
- }), /* @__PURE__ */ r(Fe, {
9461
+ }), /* @__PURE__ */ r(Pe, {
9395
9462
  label: "Open in new Tab",
9396
9463
  checked: e.openInNewTab,
9397
9464
  onChange: (l) => o(l.currentTarget.checked)
9398
9465
  })]
9399
9466
  });
9400
9467
  }
9401
- function Td(t) {
9468
+ function zd(t) {
9402
9469
  return ao(t, (n) => {
9403
9470
  if (typeof n == "string")
9404
9471
  return encodeURIComponent(n);
9405
9472
  });
9406
9473
  }
9407
- async function Vd(t, e) {
9474
+ async function Ed(t, e) {
9408
9475
  const {
9409
9476
  urlTemplate: n,
9410
9477
  openInNewTab: a
9411
- } = await e.operationData.getItem("config"), o = Nr(n || "")(Td(t));
9478
+ } = await e.operationData.getItem("config"), o = Nr(n || "")(zd(t));
9412
9479
  window.open(o, a ? "_blank" : "_self", "noopener");
9413
9480
  }
9414
- const zd = {
9481
+ const Od = {
9415
9482
  displayName: "Open Link",
9416
9483
  id: "builtin:op:open-link",
9417
- configRender: kd,
9418
- run: Vd
9484
+ configRender: Vd,
9485
+ run: Ed
9419
9486
  };
9420
- function Ed(t) {
9487
+ function Pd(t) {
9421
9488
  const {
9422
9489
  value: e,
9423
9490
  set: n
@@ -9426,25 +9493,25 @@ function Ed(t) {
9426
9493
  });
9427
9494
  return [(e == null ? void 0 : e.template) || "", a];
9428
9495
  }
9429
- function Od(t) {
9430
- const [e, n] = Ed(t.operation);
9496
+ function Fd(t) {
9497
+ const [e, n] = Pd(t.operation);
9431
9498
  return /* @__PURE__ */ r(k, {
9432
9499
  defaultValue: e,
9433
9500
  onBlur: (a) => n(a.currentTarget.value),
9434
9501
  label: "console.log"
9435
9502
  });
9436
9503
  }
9437
- async function Fd(t, e) {
9504
+ async function Md(t, e) {
9438
9505
  const n = await e.operationData.getItem("config"), a = Nr(n.template || "");
9439
9506
  console.log("run with payload", t), console.log(a(t));
9440
9507
  }
9441
- const Pd = {
9508
+ const Ad = {
9442
9509
  displayName: "console.log (debug)",
9443
9510
  id: "builtin:op:debug",
9444
- configRender: Od,
9445
- run: Fd
9446
- }, $n = [Pd, zd];
9447
- class Md {
9511
+ configRender: Fd,
9512
+ run: Md
9513
+ }, $n = [Ad, Od];
9514
+ class Ld {
9448
9515
  constructor(e, n = $n) {
9449
9516
  E(this, "attachments");
9450
9517
  this.operations = n;
@@ -9495,7 +9562,7 @@ class Md {
9495
9562
  }
9496
9563
  }
9497
9564
  const Ir = "__TRIGGERS";
9498
- class Ad {
9565
+ class qd {
9499
9566
  constructor(e, n) {
9500
9567
  E(this, "attachments");
9501
9568
  this.instance = e, this.component = n;
@@ -9515,9 +9582,9 @@ class Ad {
9515
9582
  (n) => {
9516
9583
  const a = Or(n).map(
9517
9584
  (i) => ({
9518
- id: re(i, "id"),
9519
- schemaRef: re(i, "schemaRef"),
9520
- config: Ft(re(i, "data.config"))
9585
+ id: ae(i, "id"),
9586
+ schemaRef: ae(i, "schemaRef"),
9587
+ config: Pt(ae(i, "data.config"))
9521
9588
  })
9522
9589
  );
9523
9590
  e(a);
@@ -9553,7 +9620,7 @@ class Ja {
9553
9620
  E(this, "operationManager");
9554
9621
  E(this, "triggerManager");
9555
9622
  E(this, "attachments");
9556
- this.operationManager = new Md(e, a), this.triggerManager = new Ad(e, n);
9623
+ this.operationManager = new Ld(e, a), this.triggerManager = new qd(e, n);
9557
9624
  const i = async (o) => {
9558
9625
  const { id: s, triggerRef: l, operationRef: u } = await o.getItem(null);
9559
9626
  return {
@@ -9601,14 +9668,14 @@ class Ja {
9601
9668
  );
9602
9669
  }
9603
9670
  }
9604
- function Ld(t, e) {
9671
+ function $d(t, e) {
9605
9672
  const [n, a] = de([]);
9606
9673
  return ft(async () => {
9607
9674
  const i = await t.getInteractionList();
9608
9675
  a(i);
9609
9676
  }, [e]), n;
9610
9677
  }
9611
- const qd = D(({
9678
+ const Nd = D(({
9612
9679
  item: t,
9613
9680
  manager: e,
9614
9681
  instance: n,
@@ -9632,7 +9699,7 @@ const qd = D(({
9632
9699
  operationId: l,
9633
9700
  variables: p,
9634
9701
  operationManager: e.operationManager
9635
- }), /* @__PURE__ */ r(F, {
9702
+ }), /* @__PURE__ */ r(P, {
9636
9703
  "aria-label": "delete-interaction",
9637
9704
  variant: "outline",
9638
9705
  color: "red",
@@ -9642,13 +9709,13 @@ const qd = D(({
9642
9709
  });
9643
9710
  }
9644
9711
  return null;
9645
- }), $d = (t) => {
9712
+ }), jd = (t) => {
9646
9713
  const [e, n] = de(0), {
9647
9714
  interactionManager: a,
9648
9715
  instance: i,
9649
9716
  sampleData: o,
9650
9717
  variables: s
9651
- } = t, l = Ld(a, e), u = async () => {
9718
+ } = t, l = $d(a, e), u = async () => {
9652
9719
  const h = await a.triggerManager.createOrGetTrigger(fe(), a.triggerManager.getTriggerSchemaList()[0]), f = await a.operationManager.createOrGetOperation(fe(), a.operationManager.getOperationSchemaList()[0]);
9653
9720
  await a.addInteraction(h, f), n((m) => m + 1);
9654
9721
  };
@@ -9656,14 +9723,14 @@ const qd = D(({
9656
9723
  await a.removeInteraction(h.id), n((f) => f + 1);
9657
9724
  }
9658
9725
  return /* @__PURE__ */ c(w, {
9659
- children: [l.map((h) => /* @__PURE__ */ r(qd, {
9726
+ children: [l.map((h) => /* @__PURE__ */ r(Nd, {
9660
9727
  onRemove: p,
9661
9728
  instance: i,
9662
9729
  sampleData: o,
9663
9730
  variables: s,
9664
9731
  item: h,
9665
9732
  manager: t.interactionManager
9666
- }, h.id)), /* @__PURE__ */ r(F, {
9733
+ }, h.id)), /* @__PURE__ */ r(P, {
9667
9734
  style: {
9668
9735
  width: "fit-content"
9669
9736
  },
@@ -9671,13 +9738,13 @@ const qd = D(({
9671
9738
  children: "Add interaction"
9672
9739
  })]
9673
9740
  });
9674
- }, Nd = () => {
9741
+ }, Bd = () => {
9675
9742
  const {
9676
9743
  panel: t,
9677
9744
  data: e
9678
9745
  } = he(), n = t.viz, {
9679
9746
  vizManager: a
9680
- } = Me(Te), i = t.json, o = Pe(() => a.getOrCreateInstance(i), [a, n.type]), s = Pe(() => new Ja(o, a.resolveComponent(n.type), $n), [o, n.type]);
9747
+ } = Me(Te), i = t.json, o = Fe(() => a.getOrCreateInstance(i), [a, n.type]), s = Fe(() => new Ja(o, a.resolveComponent(n.type), $n), [o, n.type]);
9681
9748
  return K(() => o.instanceData.watchItem(
9682
9749
  null,
9683
9750
  io((l) => {
@@ -9693,12 +9760,12 @@ const qd = D(({
9693
9760
  sampleData: e,
9694
9761
  variables: []
9695
9762
  };
9696
- }, jd = () => {
9697
- const t = Nd();
9698
- return /* @__PURE__ */ r($d, {
9763
+ }, Gd = () => {
9764
+ const t = Bd();
9765
+ return /* @__PURE__ */ r(jd, {
9699
9766
  ...t
9700
9767
  });
9701
- }, Bd = D(() => {
9768
+ }, Wd = D(() => {
9702
9769
  const {
9703
9770
  panel: t
9704
9771
  } = he(), [e, n] = x.useState(t.description), a = t.description !== e, i = x.useCallback(() => {
@@ -9735,20 +9802,20 @@ const qd = D(({
9735
9802
  p: "0"
9736
9803
  })]
9737
9804
  });
9738
- }), Gd = D(() => {
9805
+ }), Qd = D(() => {
9739
9806
  const {
9740
9807
  panel: t
9741
9808
  } = he(), {
9742
9809
  style: e
9743
9810
  } = t;
9744
9811
  return /* @__PURE__ */ r(U, {
9745
- children: /* @__PURE__ */ r(Fe, {
9812
+ children: /* @__PURE__ */ r(Pe, {
9746
9813
  label: "Border",
9747
9814
  checked: e.border.enabled,
9748
9815
  onChange: (n) => e.border.setEnabled(n.currentTarget.checked)
9749
9816
  })
9750
9817
  });
9751
- }), Wd = D(() => {
9818
+ }), Yd = D(() => {
9752
9819
  const {
9753
9820
  panel: {
9754
9821
  title: t,
@@ -9803,7 +9870,7 @@ const qd = D(({
9803
9870
  })]
9804
9871
  })
9805
9872
  });
9806
- }), Qd = D(() => {
9873
+ }), Ud = D(() => {
9807
9874
  const {
9808
9875
  panel: t
9809
9876
  } = he(), {
@@ -9840,7 +9907,7 @@ const qd = D(({
9840
9907
  }
9841
9908
  });
9842
9909
  });
9843
- function Yd() {
9910
+ function Hd() {
9844
9911
  return /* @__PURE__ */ c(g, {
9845
9912
  grow: !0,
9846
9913
  noWrap: !0,
@@ -9855,26 +9922,26 @@ function Yd() {
9855
9922
  flexGrow: 0,
9856
9923
  height: "100%"
9857
9924
  },
9858
- children: [/* @__PURE__ */ r(ie, {
9925
+ children: [/* @__PURE__ */ r(te, {
9859
9926
  label: "Style",
9860
9927
  labelPosition: "center",
9861
9928
  variant: "dashed"
9862
- }), /* @__PURE__ */ r(Gd, {}), /* @__PURE__ */ r(ie, {
9929
+ }), /* @__PURE__ */ r(Qd, {}), /* @__PURE__ */ r(te, {
9863
9930
  label: "Info",
9864
9931
  labelPosition: "center",
9865
9932
  variant: "dashed"
9866
- }), /* @__PURE__ */ r(Qd, {}), /* @__PURE__ */ r(Bd, {})]
9933
+ }), /* @__PURE__ */ r(Ud, {}), /* @__PURE__ */ r(Wd, {})]
9867
9934
  }), /* @__PURE__ */ r(q, {
9868
9935
  sx: {
9869
9936
  height: "100%",
9870
9937
  flexGrow: 1,
9871
9938
  maxWidth: "60%"
9872
9939
  },
9873
- children: /* @__PURE__ */ r(Wd, {})
9940
+ children: /* @__PURE__ */ r(Yd, {})
9874
9941
  })]
9875
9942
  });
9876
9943
  }
9877
- const Ud = D(function() {
9944
+ const Xd = D(function() {
9878
9945
  const e = ee(), {
9879
9946
  panel: {
9880
9947
  queryID: n,
@@ -9893,7 +9960,7 @@ const Ud = D(function() {
9893
9960
  },
9894
9961
  children: [/* @__PURE__ */ r(v, {
9895
9962
  children: "Select a Query"
9896
- }), /* @__PURE__ */ r(j, {
9963
+ }), /* @__PURE__ */ r(N, {
9897
9964
  data: i,
9898
9965
  value: n,
9899
9966
  onChange: a,
@@ -9909,7 +9976,7 @@ const Ud = D(function() {
9909
9976
  });
9910
9977
  });
9911
9978
  function Ka(t, e, n) {
9912
- const a = Pe(() => /* @__PURE__ */ new Set(), []), i = t.resolveComponent(e.type), [o, s] = de(!1);
9979
+ const a = Fe(() => /* @__PURE__ */ new Set(), []), i = t.resolveComponent(e.type), [o, s] = de(!1);
9913
9980
  return ft(async () => {
9914
9981
  if (await i.migrator.needMigration(e) && !a.has(e.id))
9915
9982
  try {
@@ -9921,7 +9988,7 @@ function Ka(t, e, n) {
9921
9988
  s(!0);
9922
9989
  }, [e]), o;
9923
9990
  }
9924
- function Hd({
9991
+ function Jd({
9925
9992
  setVizConf: t,
9926
9993
  ...e
9927
9994
  }) {
@@ -9944,7 +10011,7 @@ function Hd({
9944
10011
  children: "Checking update..."
9945
10012
  });
9946
10013
  }
9947
- function Xd(t) {
10014
+ function Kd(t) {
9948
10015
  const {
9949
10016
  vizManager: e,
9950
10017
  panel: n
@@ -9960,7 +10027,7 @@ function Xd(t) {
9960
10027
  children: "Checking update"
9961
10028
  });
9962
10029
  }
9963
- function Jd(t, e) {
10030
+ function Zd(t, e) {
9964
10031
  const {
9965
10032
  vizManager: n
9966
10033
  } = Me(Te), {
@@ -9982,13 +10049,13 @@ function Jd(t, e) {
9982
10049
  style: u.json
9983
10050
  };
9984
10051
  try {
9985
- return n.resolveComponent(a.type), /* @__PURE__ */ r(Xd, {
10052
+ return n.resolveComponent(a.type), /* @__PURE__ */ r(Kd, {
9986
10053
  panel: p,
9987
10054
  data: t,
9988
10055
  vizManager: n
9989
10056
  });
9990
10057
  } catch (h) {
9991
- return console.info(re(h, "message")), null;
10058
+ return console.info(ae(h, "message")), null;
9992
10059
  }
9993
10060
  }
9994
10061
  function Dr(t, e, n, a) {
@@ -9997,7 +10064,7 @@ function Dr(t, e, n, a) {
9997
10064
  return null;
9998
10065
  }
9999
10066
  }
10000
- const Kd = ["rich-text"], Za = D(function({
10067
+ const eh = ["rich-text"], Za = D(function({
10001
10068
  height: e,
10002
10069
  viz: n,
10003
10070
  data: a,
@@ -10007,11 +10074,11 @@ const Kd = ["rich-text"], Za = D(function({
10007
10074
  ref: o,
10008
10075
  width: s,
10009
10076
  height: l
10010
- } = rn(), u = x.useMemo(() => !Array.isArray(a) || a.length === 0, [a]), p = Jd(a, {
10077
+ } = rn(), u = x.useMemo(() => !Array.isArray(a) || a.length === 0, [a]), p = Zd(a, {
10011
10078
  w: s,
10012
10079
  h: l
10013
10080
  });
10014
- if (!(!Kd.includes(n.type) || !!p))
10081
+ if (!(!eh.includes(n.type) || !!p))
10015
10082
  return /* @__PURE__ */ r("div", {
10016
10083
  className: "viz-root",
10017
10084
  ref: o,
@@ -10045,7 +10112,7 @@ const Kd = ["rich-text"], Za = D(function({
10045
10112
  })]
10046
10113
  });
10047
10114
  });
10048
- function Zd() {
10115
+ function th() {
10049
10116
  const {
10050
10117
  data: t,
10051
10118
  loading: e,
@@ -10061,7 +10128,7 @@ function Zd() {
10061
10128
  });
10062
10129
  }
10063
10130
  const un = [];
10064
- function eh() {
10131
+ function nh() {
10065
10132
  const {
10066
10133
  vizManager: t
10067
10134
  } = Me(Te);
@@ -10070,14 +10137,14 @@ function eh() {
10070
10137
  label: e.displayName
10071
10138
  })).concat(un), [t]);
10072
10139
  }
10073
- function th(t, e) {
10140
+ function rh(t, e) {
10074
10141
  try {
10075
10142
  return t.resolveComponent(e).createConfig();
10076
10143
  } catch {
10077
10144
  return null;
10078
10145
  }
10079
10146
  }
10080
- function nh() {
10147
+ function ah() {
10081
10148
  const {
10082
10149
  data: t,
10083
10150
  panel: {
@@ -10106,7 +10173,7 @@ function nh() {
10106
10173
  setTitle: s
10107
10174
  };
10108
10175
  try {
10109
- return h.resolveComponent(f.viz.type), /* @__PURE__ */ r(Hd, {
10176
+ return h.resolveComponent(f.viz.type), /* @__PURE__ */ r(Jd, {
10110
10177
  setVizConf: e.setConf,
10111
10178
  panel: f,
10112
10179
  panelInfoEditor: m,
@@ -10114,10 +10181,10 @@ function nh() {
10114
10181
  data: t
10115
10182
  });
10116
10183
  } catch (y) {
10117
- return console.info(re(y, "message")), null;
10184
+ return console.info(ae(y, "message")), null;
10118
10185
  }
10119
10186
  }
10120
- function rh() {
10187
+ function ih() {
10121
10188
  const {
10122
10189
  data: t,
10123
10190
  panel: {
@@ -10128,7 +10195,7 @@ function rh() {
10128
10195
  } = Me(Te), s = x.useCallback(() => {
10129
10196
  if (!i)
10130
10197
  return;
10131
- const y = th(o, n);
10198
+ const y = rh(o, n);
10132
10199
  e.setType(n), e.setConf(y || {});
10133
10200
  }, [e, i, n]), l = (y) => {
10134
10201
  try {
@@ -10139,13 +10206,13 @@ function rh() {
10139
10206
  }, u = x.useMemo(() => {
10140
10207
  var y;
10141
10208
  return (y = un.find((I) => I.value === n)) == null ? void 0 : y.Panel;
10142
- }, [n, un]), p = nh(), h = u ? Et(u, {
10209
+ }, [n, un]), p = ah(), h = u ? Et(u, {
10143
10210
  data: t,
10144
10211
  conf: e.conf,
10145
10212
  setConf: e.setConf
10146
- }) : null, f = p || h, m = eh();
10213
+ }) : null, f = p || h, m = nh();
10147
10214
  return /* @__PURE__ */ c(U, {
10148
- children: [/* @__PURE__ */ r(j, {
10215
+ children: [/* @__PURE__ */ r(N, {
10149
10216
  label: "Visualization",
10150
10217
  value: n,
10151
10218
  onChange: a,
@@ -10165,7 +10232,7 @@ function rh() {
10165
10232
  })]
10166
10233
  });
10167
10234
  }
10168
- function ah() {
10235
+ function oh() {
10169
10236
  return /* @__PURE__ */ c(g, {
10170
10237
  grow: !0,
10171
10238
  noWrap: !0,
@@ -10182,18 +10249,18 @@ function ah() {
10182
10249
  overflow: "scroll",
10183
10250
  height: "100%"
10184
10251
  },
10185
- children: /* @__PURE__ */ r(rh, {})
10252
+ children: /* @__PURE__ */ r(ih, {})
10186
10253
  }), /* @__PURE__ */ r(q, {
10187
10254
  sx: {
10188
10255
  height: "100%",
10189
10256
  flexGrow: 1,
10190
10257
  maxWidth: "60%"
10191
10258
  },
10192
- children: /* @__PURE__ */ r(Zd, {})
10259
+ children: /* @__PURE__ */ r(th, {})
10193
10260
  })]
10194
10261
  });
10195
10262
  }
10196
- const ih = D(function({
10263
+ const sh = D(function({
10197
10264
  opened: e,
10198
10265
  close: n
10199
10266
  }) {
@@ -10258,26 +10325,26 @@ const ih = D(function({
10258
10325
  children: [/* @__PURE__ */ r(Tt, {
10259
10326
  visible: l,
10260
10327
  exitTransitionDuration: 0
10261
- }), /* @__PURE__ */ r(Ud, {})]
10328
+ }), /* @__PURE__ */ r(Xd, {})]
10262
10329
  }), /* @__PURE__ */ r(V.Panel, {
10263
10330
  value: "Panel",
10264
10331
  pt: "sm",
10265
- children: i === "Panel" && /* @__PURE__ */ r(Yd, {})
10332
+ children: i === "Panel" && /* @__PURE__ */ r(Hd, {})
10266
10333
  }), /* @__PURE__ */ r(V.Panel, {
10267
10334
  value: "Visualization",
10268
10335
  pt: "sm",
10269
- children: i === "Visualization" && /* @__PURE__ */ r(ah, {})
10336
+ children: i === "Visualization" && /* @__PURE__ */ r(oh, {})
10270
10337
  }), /* @__PURE__ */ r(V.Panel, {
10271
10338
  value: "Interactions",
10272
10339
  pt: "sm",
10273
10340
  children: /* @__PURE__ */ r(Xe, {
10274
- children: /* @__PURE__ */ r(jd, {})
10341
+ children: /* @__PURE__ */ r(Gd, {})
10275
10342
  })
10276
10343
  })]
10277
10344
  })
10278
10345
  })
10279
10346
  });
10280
- }), oh = D(({
10347
+ }), lh = D(({
10281
10348
  view: t
10282
10349
  }) => {
10283
10350
  const e = ee(), n = Qi(), [a, i] = x.useState(!1), o = () => i(!0), s = () => i(!1), {
@@ -10341,7 +10408,7 @@ const ih = D(function({
10341
10408
  }),
10342
10409
  children: "Full Screen"
10343
10410
  }), h && /* @__PURE__ */ c(U, {
10344
- children: [/* @__PURE__ */ r(ie, {
10411
+ children: [/* @__PURE__ */ r(te, {
10345
10412
  label: "Edit",
10346
10413
  labelPosition: "center"
10347
10414
  }), /* @__PURE__ */ r(ue.Item, {
@@ -10367,13 +10434,13 @@ const ih = D(function({
10367
10434
  })]
10368
10435
  })]
10369
10436
  })
10370
- }), h && /* @__PURE__ */ r(ih, {
10437
+ }), h && /* @__PURE__ */ r(sh, {
10371
10438
  opened: a,
10372
10439
  close: s
10373
10440
  })]
10374
10441
  });
10375
10442
  });
10376
- const sh = D(function() {
10443
+ const ch = D(function() {
10377
10444
  const {
10378
10445
  panel: e
10379
10446
  } = he(), {
@@ -10395,12 +10462,12 @@ const sh = D(function() {
10395
10462
  })
10396
10463
  }) : null;
10397
10464
  });
10398
- function lh(t) {
10465
+ function uh(t) {
10399
10466
  return !["richText"].includes(t);
10400
10467
  }
10401
- const ch = {
10468
+ const dh = {
10402
10469
  border: "1px solid #ced4da"
10403
- }, uh = {
10470
+ }, hh = {
10404
10471
  border: "1px dashed transparent",
10405
10472
  transition: "border-color 300ms ease",
10406
10473
  "&:hover": {
@@ -10413,7 +10480,7 @@ const ch = {
10413
10480
  const a = ee(), {
10414
10481
  data: i,
10415
10482
  state: o
10416
- } = a.getDataStuffByID(e.queryID), s = lh(e.viz.type) && o === "loading", l = e.title ? "calc(100% - 25px - 5px)" : "100%", u = e.style.border.enabled ? ch : uh;
10483
+ } = a.getDataStuffByID(e.queryID), s = uh(e.viz.type) && o === "loading", l = e.title ? "calc(100% - 25px - 5px)" : "100%", u = e.style.border.enabled ? dh : hh;
10417
10484
  return /* @__PURE__ */ r(Xo, {
10418
10485
  value: {
10419
10486
  panel: e,
@@ -10436,9 +10503,9 @@ const ch = {
10436
10503
  zIndex: 310
10437
10504
  },
10438
10505
  children: /* @__PURE__ */ r(xa, {})
10439
- }), /* @__PURE__ */ r(oh, {
10506
+ }), /* @__PURE__ */ r(lh, {
10440
10507
  view: n
10441
- }), /* @__PURE__ */ r(sh, {}), /* @__PURE__ */ r(Za, {
10508
+ }), /* @__PURE__ */ r(ch, {}), /* @__PURE__ */ r(Za, {
10442
10509
  viz: e.viz,
10443
10510
  data: i,
10444
10511
  loading: s,
@@ -10464,7 +10531,7 @@ const ch = {
10464
10531
  sx: {
10465
10532
  flexGrow: 0
10466
10533
  },
10467
- children: /* @__PURE__ */ r(F, {
10534
+ children: /* @__PURE__ */ r(P, {
10468
10535
  variant: "default",
10469
10536
  size: "sm",
10470
10537
  onClick: a,
@@ -10511,7 +10578,7 @@ function ni() {
10511
10578
  };
10512
10579
  }, []);
10513
10580
  }
10514
- const dh = x.forwardRef(({
10581
+ const ph = x.forwardRef(({
10515
10582
  handleAxis: t
10516
10583
  }, e) => /* @__PURE__ */ r(z, {
10517
10584
  ref: e,
@@ -10531,7 +10598,7 @@ const dh = x.forwardRef(({
10531
10598
  children: /* @__PURE__ */ r(bo, {
10532
10599
  size: 16
10533
10600
  })
10534
- })), hh = x.forwardRef(({
10601
+ })), mh = x.forwardRef(({
10535
10602
  handleAxis: t,
10536
10603
  ...e
10537
10604
  }, n) => /* @__PURE__ */ r(z, {
@@ -10553,7 +10620,7 @@ const dh = x.forwardRef(({
10553
10620
  children: /* @__PURE__ */ r(vo, {
10554
10621
  size: 16
10555
10622
  })
10556
- })), ph = na(ta), mh = D(function({
10623
+ })), fh = na(ta), gh = D(function({
10557
10624
  view: e,
10558
10625
  className: n = "layout",
10559
10626
  rowHeight: a = 10,
@@ -10569,7 +10636,7 @@ const dh = x.forwardRef(({
10569
10636
  !h || h.layout.set(p);
10570
10637
  });
10571
10638
  }, [e]);
10572
- return /* @__PURE__ */ r(ph, {
10639
+ return /* @__PURE__ */ r(fh, {
10573
10640
  onLayoutChange: s,
10574
10641
  className: `dashboard-layout ${n}`,
10575
10642
  rowHeight: a,
@@ -10577,7 +10644,7 @@ const dh = x.forwardRef(({
10577
10644
  isDraggable: i,
10578
10645
  isResizable: o,
10579
10646
  draggableHandle: ".react-grid-customDragHandle",
10580
- resizeHandle: /* @__PURE__ */ r(hh, {}),
10647
+ resizeHandle: /* @__PURE__ */ r(mh, {}),
10581
10648
  children: e.panels.current.map((l, u) => /* @__PURE__ */ c("div", {
10582
10649
  "data-grid": {
10583
10650
  ...l.layout
@@ -10585,18 +10652,18 @@ const dh = x.forwardRef(({
10585
10652
  style: {
10586
10653
  position: "relative"
10587
10654
  },
10588
- children: [i && /* @__PURE__ */ r(dh, {}), /* @__PURE__ */ r(Nn, {
10655
+ children: [i && /* @__PURE__ */ r(ph, {}), /* @__PURE__ */ r(Nn, {
10589
10656
  view: e,
10590
10657
  panel: l
10591
10658
  })]
10592
10659
  }, l.id))
10593
10660
  });
10594
- }), fh = na(ta), gh = D(function({
10661
+ }), bh = na(ta), vh = D(function({
10595
10662
  view: e,
10596
10663
  className: n = "layout",
10597
10664
  rowHeight: a = 10
10598
10665
  }) {
10599
- return /* @__PURE__ */ r(fh, {
10666
+ return /* @__PURE__ */ r(bh, {
10600
10667
  className: `dashboard-layout ${n}`,
10601
10668
  rowHeight: a,
10602
10669
  isDraggable: !1,
@@ -10610,11 +10677,11 @@ const dh = x.forwardRef(({
10610
10677
  })
10611
10678
  }, i.id))
10612
10679
  });
10613
- }), bh = D(({
10680
+ }), yh = D(({
10614
10681
  children: t
10615
10682
  }) => /* @__PURE__ */ r(q, {
10616
10683
  children: t
10617
- })), vh = D(({
10684
+ })), xh = D(({
10618
10685
  children: t,
10619
10686
  view: e
10620
10687
  }) => /* @__PURE__ */ r(Ce, {
@@ -10649,23 +10716,23 @@ const dh = x.forwardRef(({
10649
10716
  withinPortal: !1,
10650
10717
  transitionDuration: 0,
10651
10718
  children: t
10652
- })), yh = D(({
10719
+ })), Ch = D(({
10653
10720
  view: t,
10654
10721
  children: e
10655
10722
  }) => {
10656
10723
  switch (t.type) {
10657
10724
  case De.Modal:
10658
- return /* @__PURE__ */ r(vh, {
10725
+ return /* @__PURE__ */ r(xh, {
10659
10726
  view: t,
10660
10727
  children: e
10661
10728
  });
10662
10729
  case De.Division:
10663
10730
  default:
10664
- return /* @__PURE__ */ r(bh, {
10731
+ return /* @__PURE__ */ r(yh, {
10665
10732
  children: e
10666
10733
  });
10667
10734
  }
10668
- }), xh = D(function({
10735
+ }), wh = D(function({
10669
10736
  view: e,
10670
10737
  saveDashboardChanges: n
10671
10738
  }) {
@@ -10693,7 +10760,7 @@ const dh = x.forwardRef(({
10693
10760
  exitFullScreen: i
10694
10761
  }), !o && /* @__PURE__ */ r(ya, {
10695
10762
  saveChanges: n
10696
- }), /* @__PURE__ */ r(yh, {
10763
+ }), /* @__PURE__ */ r(Ch, {
10697
10764
  view: e,
10698
10765
  children: /* @__PURE__ */ c(q, {
10699
10766
  className: "dashboard-sticky-parent",
@@ -10706,7 +10773,7 @@ const dh = x.forwardRef(({
10706
10773
  sx: {
10707
10774
  display: o ? "none" : "block"
10708
10775
  },
10709
- children: /* @__PURE__ */ r(mh, {
10776
+ children: /* @__PURE__ */ r(gh, {
10710
10777
  view: e,
10711
10778
  isDraggable: !0,
10712
10779
  isResizable: !0
@@ -10716,7 +10783,7 @@ const dh = x.forwardRef(({
10716
10783
  })]
10717
10784
  })
10718
10785
  });
10719
- }), Ch = D(function({
10786
+ }), Sh = D(function({
10720
10787
  view: e
10721
10788
  }) {
10722
10789
  const {
@@ -10747,7 +10814,7 @@ const dh = x.forwardRef(({
10747
10814
  }), /* @__PURE__ */ r(ca, {
10748
10815
  view: e
10749
10816
  })]
10750
- }), /* @__PURE__ */ r(gh, {
10817
+ }), /* @__PURE__ */ r(vh, {
10751
10818
  view: e
10752
10819
  })]
10753
10820
  })
@@ -10783,7 +10850,7 @@ const dh = x.forwardRef(({
10783
10850
  setOptionsQuery(e) {
10784
10851
  t.options_query = e;
10785
10852
  }
10786
- })), wh = () => ai.create({
10853
+ })), _h = () => ai.create({
10787
10854
  required: !1,
10788
10855
  default_value: "",
10789
10856
  static_options: [],
@@ -10809,7 +10876,7 @@ const dh = x.forwardRef(({
10809
10876
  setOptionsQuery(e) {
10810
10877
  t.options_query = e;
10811
10878
  }
10812
- })), Sh = () => ii.create({
10879
+ })), Ih = () => ii.create({
10813
10880
  default_value: [],
10814
10881
  static_options: [],
10815
10882
  options_query: {
@@ -10823,9 +10890,9 @@ const dh = x.forwardRef(({
10823
10890
  setDefaultValue(e) {
10824
10891
  t.default_value = e;
10825
10892
  }
10826
- })), _h = () => oi.create({
10893
+ })), Dh = () => oi.create({
10827
10894
  default_value: !1
10828
- }), Ih = b.model("FilterConfigModel_DateRange", {
10895
+ }), Rh = b.model("FilterConfigModel_DateRange", {
10829
10896
  required: b.boolean,
10830
10897
  inputFormat: b.enumeration("DateRangeInputFormat", ["YYYY", "YYYY-MM", "YYYY-MM-DD"]),
10831
10898
  default_value: b.optional(b.array(b.union(b.Date, b.null)), [null, null]),
@@ -10843,7 +10910,7 @@ const dh = x.forwardRef(({
10843
10910
  setDefaultValue(e) {
10844
10911
  t.default_value.length = 0, t.default_value.push(...e);
10845
10912
  }
10846
- })), si = b.snapshotProcessor(Ih, {
10913
+ })), si = b.snapshotProcessor(Rh, {
10847
10914
  preProcessor({ default_value: t, ...e }) {
10848
10915
  return {
10849
10916
  ...e,
@@ -10856,7 +10923,7 @@ const dh = x.forwardRef(({
10856
10923
  default_value: t.map((n) => typeof n == "number" ? new Date(n).toISOString() : "")
10857
10924
  };
10858
10925
  }
10859
- }), Dh = () => si.create({
10926
+ }), kh = () => si.create({
10860
10927
  required: !1,
10861
10928
  inputFormat: "YYYY-MM-DD",
10862
10929
  clearable: !1,
@@ -10894,19 +10961,19 @@ const dh = x.forwardRef(({
10894
10961
  setType(e) {
10895
10962
  switch (e) {
10896
10963
  case me.Select:
10897
- t.config = wh();
10964
+ t.config = _h();
10898
10965
  break;
10899
10966
  case me.MultiSelect:
10900
- t.config = Sh();
10967
+ t.config = Ih();
10901
10968
  break;
10902
10969
  case me.TextInput:
10903
10970
  t.config = ba();
10904
10971
  break;
10905
10972
  case me.Checkbox:
10906
- t.config = _h();
10973
+ t.config = Dh();
10907
10974
  break;
10908
10975
  case me.DateRange:
10909
- t.config = Dh();
10976
+ t.config = kh();
10910
10977
  break;
10911
10978
  }
10912
10979
  t.type = e;
@@ -10914,7 +10981,7 @@ const dh = x.forwardRef(({
10914
10981
  setVisibleInViewsIDs(e) {
10915
10982
  t.visibleInViewsIDs.length = 0, t.visibleInViewsIDs.push(...e);
10916
10983
  }
10917
- })), Rh = b.model("FiltersModel", {
10984
+ })), Th = b.model("FiltersModel", {
10918
10985
  original: b.optional(b.array(Rr), []),
10919
10986
  current: b.optional(b.array(Rr), []),
10920
10987
  values: b.optional(b.frozen(), {})
@@ -10961,14 +11028,14 @@ const dh = x.forwardRef(({
10961
11028
  return t.values[e];
10962
11029
  }
10963
11030
  }));
10964
- function kh(t) {
11031
+ function Vh(t) {
10965
11032
  return t === void 0 ? t : Array.isArray(t) ? t.map((e) => {
10966
11033
  const n = new Date(e);
10967
11034
  return n != null ? n : e;
10968
11035
  }) : t;
10969
11036
  }
10970
- function Th(t) {
10971
- const e = t.reduce((n, a) => (n[a.key] = kh(a.config.default_value), n), {});
11037
+ function zh(t) {
11038
+ const e = t.reduce((n, a) => (n[a.key] = Vh(a.config.default_value), n), {});
10972
11039
  return {
10973
11040
  original: t,
10974
11041
  current: t,
@@ -11047,11 +11114,11 @@ var jn = { exports: {} };
11047
11114
  s.saveAs = u.saveAs = u, t.exports = u;
11048
11115
  });
11049
11116
  })(jn);
11050
- function Vh(t, e) {
11117
+ function Eh(t, e) {
11051
11118
  const n = new Blob([e], { type: "text/csv" });
11052
11119
  jn.exports.saveAs(n, `${t}.csv`);
11053
11120
  }
11054
- function zh(t) {
11121
+ function Oh(t) {
11055
11122
  const e = new Ao();
11056
11123
  t.forEach(({ id: n, data: a }) => {
11057
11124
  e.file(`${n}.csv`, li(a));
@@ -11082,7 +11149,7 @@ const ci = b.model("QueryModel", {
11082
11149
  const { id: e, type: n, key: a, sql: i } = t;
11083
11150
  return { id: e, type: n, key: a, sql: i };
11084
11151
  }
11085
- })), Eh = b.compose(
11152
+ })), Ph = b.compose(
11086
11153
  "QueryModel",
11087
11154
  ci,
11088
11155
  b.model({
@@ -11141,9 +11208,9 @@ const ci = b.model("QueryModel", {
11141
11208
  })
11142
11209
  );
11143
11210
  }
11144
- })), Oh = b.model("QueriesModel", {
11211
+ })), Fh = b.model("QueriesModel", {
11145
11212
  original: b.optional(b.array(ci), []),
11146
- current: b.optional(b.array(Eh), [])
11213
+ current: b.optional(b.array(Ph), [])
11147
11214
  }).views((t) => ({
11148
11215
  get changed() {
11149
11216
  return t.original.length !== t.current.length ? !0 : t.original.some((e, n) => !$.isEqual(e.configurations, t.current[n].configurations));
@@ -11188,7 +11255,7 @@ const ci = b.model("QueryModel", {
11188
11255
  id: n,
11189
11256
  data: a.toJSON()
11190
11257
  }));
11191
- zh(e);
11258
+ Oh(e);
11192
11259
  },
11193
11260
  downloadDataByQueryID(e) {
11194
11261
  const n = t.findByID(e);
@@ -11197,7 +11264,7 @@ const ci = b.model("QueryModel", {
11197
11264
  return;
11198
11265
  }
11199
11266
  const { id: a, data: i } = n, o = li(i);
11200
- Vh(a, o);
11267
+ Eh(a, o);
11201
11268
  },
11202
11269
  refetchDataByQueryID(e) {
11203
11270
  const n = t.findByID(e);
@@ -11217,7 +11284,7 @@ const ci = b.model("QueryModel", {
11217
11284
  setValue(e) {
11218
11285
  t.value = e;
11219
11286
  }
11220
- })), Fh = b.model("SQLSnippetsModel", {
11287
+ })), Mh = b.model("SQLSnippetsModel", {
11221
11288
  original: b.optional(b.array(kr), []),
11222
11289
  current: b.optional(b.array(kr), [])
11223
11290
  }).views((t) => ({
@@ -11240,7 +11307,7 @@ const ci = b.model("QueryModel", {
11240
11307
  replaceByIndex(e, n) {
11241
11308
  t.current.splice(e, 1, n);
11242
11309
  }
11243
- })), Ph = b.model("ContextModel", {
11310
+ })), Ah = b.model("ContextModel", {
11244
11311
  current: b.optional(b.frozen(), {})
11245
11312
  }).views((t) => ({
11246
11313
  get keys() {
@@ -11259,7 +11326,7 @@ const ci = b.model("QueryModel", {
11259
11326
  set(e, n) {
11260
11327
  t.current[e] = n;
11261
11328
  }
11262
- })), Mh = b.model("PanelLayoutModel", {
11329
+ })), Lh = b.model("PanelLayoutModel", {
11263
11330
  x: b.number,
11264
11331
  y: b.number,
11265
11332
  w: b.number,
@@ -11283,7 +11350,7 @@ const ci = b.model("QueryModel", {
11283
11350
  const { x: n, y: a, w: i, h: o, moved: s } = e;
11284
11351
  t.x = n, t.y = a, t.w = i, t.h = o, t.moved = !!s, t.static = !!e.static;
11285
11352
  }
11286
- })), Ah = b.model("PanelStyleBorderModel", {
11353
+ })), qh = b.model("PanelStyleBorderModel", {
11287
11354
  enabled: b.boolean
11288
11355
  }).views((t) => ({
11289
11356
  get json() {
@@ -11296,8 +11363,8 @@ const ci = b.model("QueryModel", {
11296
11363
  setEnabled(e) {
11297
11364
  t.enabled = e;
11298
11365
  }
11299
- })), Lh = b.model("PanelStyleModel", {
11300
- border: Ah
11366
+ })), $h = b.model("PanelStyleModel", {
11367
+ border: qh
11301
11368
  }).views((t) => ({
11302
11369
  get json() {
11303
11370
  const { border: e } = t;
@@ -11305,7 +11372,7 @@ const ci = b.model("QueryModel", {
11305
11372
  border: e.json
11306
11373
  };
11307
11374
  }
11308
- })).actions((t) => ({})), qh = b.model("PanelVizModel", {
11375
+ })).actions((t) => ({})), Nh = b.model("PanelVizModel", {
11309
11376
  type: b.string,
11310
11377
  conf: b.frozen()
11311
11378
  }).views((t) => ({
@@ -11326,10 +11393,10 @@ const ci = b.model("QueryModel", {
11326
11393
  id: b.string,
11327
11394
  title: b.string,
11328
11395
  description: b.string,
11329
- layout: Mh,
11396
+ layout: Lh,
11330
11397
  queryID: b.string,
11331
- viz: qh,
11332
- style: Lh
11398
+ viz: Nh,
11399
+ style: $h
11333
11400
  }).views((t) => ({
11334
11401
  get json() {
11335
11402
  const { id: e, title: n, description: a, queryID: i } = t;
@@ -11356,7 +11423,7 @@ const ci = b.model("QueryModel", {
11356
11423
  setQueryID(e) {
11357
11424
  t.queryID = e;
11358
11425
  }
11359
- })).actions((t) => ({})), $h = b.model("PanelsModel", {
11426
+ })).actions((t) => ({})), jh = b.model("PanelsModel", {
11360
11427
  original: b.optional(b.array(Tr), []),
11361
11428
  current: b.optional(b.array(Tr), [])
11362
11429
  }).views((t) => ({
@@ -11444,7 +11511,7 @@ const ci = b.model("QueryModel", {
11444
11511
  name: b.string,
11445
11512
  type: b.string,
11446
11513
  config: b.frozen(),
11447
- panels: $h
11514
+ panels: jh
11448
11515
  }).views((t) => ({
11449
11516
  get json() {
11450
11517
  const { id: e, name: n, type: a, config: i } = t;
@@ -11566,7 +11633,7 @@ const ci = b.model("QueryModel", {
11566
11633
  n !== -1 && t.visibleViewIDs.splice(n, 1);
11567
11634
  }
11568
11635
  }));
11569
- function Nh(t) {
11636
+ function Bh(t) {
11570
11637
  const e = t.length > 0 ? [t[0].id] : [], n = t.length > 0 ? t[0].id : "", a = t.map((i) => ({
11571
11638
  ...i,
11572
11639
  panels: {
@@ -11581,14 +11648,14 @@ function Nh(t) {
11581
11648
  idOfVIE: n
11582
11649
  });
11583
11650
  }
11584
- const jh = b.model({
11651
+ const Gh = b.model({
11585
11652
  id: b.identifier,
11586
11653
  name: b.string,
11587
- filters: Rh,
11588
- queries: Oh,
11589
- sqlSnippets: Fh,
11654
+ filters: Th,
11655
+ queries: Fh,
11656
+ sqlSnippets: Mh,
11590
11657
  views: ui,
11591
- context: Ph
11658
+ context: Ah
11592
11659
  }).views((t) => ({
11593
11660
  get payloadForSQL() {
11594
11661
  return {
@@ -11622,10 +11689,10 @@ const jh = b.model({
11622
11689
  }
11623
11690
  }));
11624
11691
  function di({ id: t, name: e, filters: n, views: a, definition: { queries: i, sqlSnippets: o } }, s) {
11625
- return jh.create({
11692
+ return Gh.create({
11626
11693
  id: t,
11627
11694
  name: e,
11628
- filters: Th(n),
11695
+ filters: zh(n),
11629
11696
  queries: {
11630
11697
  original: i,
11631
11698
  current: i
@@ -11635,10 +11702,10 @@ function di({ id: t, name: e, filters: n, views: a, definition: { queries: i, sq
11635
11702
  current: o
11636
11703
  },
11637
11704
  context: s,
11638
- views: Nh(a)
11705
+ views: Bh(a)
11639
11706
  });
11640
11707
  }
11641
- const wp = D(function({
11708
+ const _p = D(function({
11642
11709
  context: e,
11643
11710
  dashboard: n,
11644
11711
  update: a,
@@ -11661,7 +11728,7 @@ const wp = D(function({
11661
11728
  }
11662
11729
  };
11663
11730
  await a(I);
11664
- }, h = Pe(Xa, []);
11731
+ }, h = Fe(Xa, []);
11665
11732
  return /* @__PURE__ */ r(Er, {
11666
11733
  children: /* @__PURE__ */ r(aa, {
11667
11734
  value: u,
@@ -11679,7 +11746,7 @@ const wp = D(function({
11679
11746
  },
11680
11747
  children: /* @__PURE__ */ r(Te.Provider, {
11681
11748
  value: h,
11682
- children: u.views.visibleViews.map((f) => /* @__PURE__ */ r(xh, {
11749
+ children: u.views.visibleViews.map((f) => /* @__PURE__ */ r(wh, {
11683
11750
  view: f,
11684
11751
  saveDashboardChanges: p
11685
11752
  }, f.id))
@@ -11689,7 +11756,7 @@ const wp = D(function({
11689
11756
  })
11690
11757
  });
11691
11758
  });
11692
- function Sp({
11759
+ function Ip({
11693
11760
  context: t,
11694
11761
  dashboard: e,
11695
11762
  className: n = "dashboard",
@@ -11711,7 +11778,7 @@ function Sp({
11711
11778
  },
11712
11779
  children: /* @__PURE__ */ r(q, {
11713
11780
  className: `${n} dashboard-root dashboard-sticky-parent`,
11714
- children: i.views.visibleViews.map((o) => /* @__PURE__ */ r(Ch, {
11781
+ children: i.views.visibleViews.map((o) => /* @__PURE__ */ r(Sh, {
11715
11782
  view: o
11716
11783
  }, o.id))
11717
11784
  })
@@ -11720,29 +11787,29 @@ function Sp({
11720
11787
  });
11721
11788
  }
11722
11789
  export {
11723
- Ph as ContextModel,
11724
- wp as Dashboard,
11790
+ Ah as ContextModel,
11791
+ _p as Dashboard,
11725
11792
  Ss as DashboardFilterType,
11726
11793
  ws as DashboardMode,
11727
11794
  De as EViewComponentType,
11728
11795
  Rr as FilterModel,
11729
- Rh as FiltersModel,
11796
+ Th as FiltersModel,
11730
11797
  Se as LayoutStateContext,
11731
- xh as MainDashboardView,
11798
+ wh as MainDashboardView,
11732
11799
  aa as ModelContextProvider,
11733
11800
  Nn as Panel,
11734
11801
  Xo as PanelContextProvider,
11735
- Oh as QueriesModel,
11736
- Eh as QueryModel,
11737
- Sp as ReadOnlyDashboard,
11738
- Ch as ReadOnlyDashboardView,
11802
+ Fh as QueriesModel,
11803
+ Ph as QueryModel,
11804
+ Ip as ReadOnlyDashboard,
11805
+ Sh as ReadOnlyDashboardView,
11739
11806
  kr as SQLSnippetModel,
11740
- Fh as SQLSnippetsModel,
11807
+ Mh as SQLSnippetsModel,
11741
11808
  Vr as ViewModel,
11742
11809
  ui as ViewsModel,
11743
11810
  di as createDashboardModel,
11744
- Nh as createDashboardViewsModel,
11745
- Th as getInitialFiltersPayload,
11811
+ Bh as createDashboardViewsModel,
11812
+ zh as getInitialFiltersPayload,
11746
11813
  ee as useModelContext,
11747
11814
  he as usePanelContext
11748
11815
  };