@devtable/dashboard 10.34.1 → 10.34.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,19 +2,19 @@ var ah = Object.defineProperty;
2
2
  var sh = (e, t, n) => t in e ? ah(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var H = (e, t, n) => (sh(e, typeof t != "symbol" ? t + "" : t, n), n);
4
4
  import R, { useState as Q, useEffect as W, useCallback as nt, useMemo as z, forwardRef as we, createElement as ai, useContext as nn, useRef as si, createContext as bl, memo as lh } from "react";
5
- import { Box as V, Select as F, Stack as S, Text as C, Group as x, TextInput as L, Button as I, Switch as Xe, NumberInput as ie, Divider as A, Table as It, ActionIcon as U, MultiSelect as fr, Paper as Xo, Code as ws, Modal as De, Tabs as g, LoadingOverlay as $n, Alert as Jo, NativeSelect as yl, useMantineTheme as xl, ColorInput as Zo, ColorSwatch as to, Slider as ch, Overlay as rn, Checkbox as pe, Center as Ln, CheckIcon as dh, MANTINE_SIZES as uh, SimpleGrid as pn, Tooltip as Be, SegmentedControl as hh, HoverCard as ot, Anchor as no, Textarea as ph, Collapse as ea, Mark as mh, createStyles as Xn, Popover as Ni, Flex as fn, Badge as gr, CloseButton as vl, Menu as ue, Affix as fh, Header as gh, ThemeIcon as Bi, List as _s, UnstyledButton as bh, Navbar as Jt, JsonInput as wl, Drawer as yh, Radio as Cs, Skeleton as Ss, NavLink as ro, Pagination as xh, AppShell as _l } from "@mantine/core";
5
+ import { Box as V, Select as F, Stack as S, Text as C, Group as x, TextInput as $, Button as I, Switch as Xe, NumberInput as ie, Divider as A, Table as It, ActionIcon as U, MultiSelect as fr, Paper as Xo, Code as ws, Modal as De, Tabs as g, LoadingOverlay as Ln, Alert as Jo, NativeSelect as yl, useMantineTheme as xl, ColorInput as Zo, ColorSwatch as to, Slider as ch, Overlay as rn, Checkbox as pe, Center as $n, CheckIcon as dh, MANTINE_SIZES as uh, SimpleGrid as pn, Tooltip as Be, SegmentedControl as hh, HoverCard as ot, Anchor as no, Textarea as ph, Collapse as ea, Mark as mh, createStyles as Xn, Popover as Ni, Flex as fn, Badge as gr, CloseButton as vl, Menu as ue, Affix as fh, Header as gh, ThemeIcon as Bi, List as _s, UnstyledButton as bh, Navbar as Jt, JsonInput as wl, Drawer as yh, Radio as Cs, Skeleton as Ss, NavLink as ro, Pagination as xh, AppShell as _l } from "@mantine/core";
6
6
  import { useModals as Ft, ModalsProvider as Cl } from "@mantine/modals";
7
7
  import { useBoolean as Je, useCreation as Ot, useAsyncEffect as kr, useRequest as Dn, useLatest as ks, usePrevious as vh } from "ahooks";
8
8
  import { observable as Sl, runInAction as ur, toJS as on, reaction as yt, makeAutoObservable as Tr } from "mobx";
9
9
  import { observer as D } from "mobx-react-lite";
10
10
  import kl from "crypto-js";
11
11
  import ne from "dayjs";
12
- import k, { unset as wh, get as de, isObject as Tl, set as ta, omit as In, isFunction as _h, orderBy as Ch, last as Dl, defaults as Pe, minBy as Sh, maxBy as kh, cloneDeep as Ze, values as Il, template as na, throttle as Th, isEqual as ke, defaultsDeep as Ie, keyBy as Dh, isEmpty as Ml, isNumber as Ih, findLastIndex as Mh, isString as zl, range as zh, cloneDeepWith as $l, pick as Ll } from "lodash";
12
+ import k, { unset as wh, get as de, isObject as Tl, set as ta, omit as In, isFunction as _h, orderBy as Ch, last as Dl, defaults as Pe, minBy as Sh, maxBy as kh, cloneDeep as Ze, values as Il, template as na, throttle as Th, isEqual as ke, defaultsDeep as Ie, keyBy as Dh, isEmpty as Ml, isNumber as Ih, findLastIndex as Mh, isString as zl, range as zh, cloneDeepWith as Ll, pick as $l } from "lodash";
13
13
  import ae from "numbro";
14
- import * as $h from "d3-array";
14
+ import * as Lh from "d3-array";
15
15
  import { quantile as qr } from "d3-array";
16
16
  import * as Wr from "mathjs";
17
- import { faker as Lh } from "@faker-js/faker";
17
+ import { faker as $h } from "@faker-js/faker";
18
18
  import un from "axios";
19
19
  import Ts from "eventemitter2";
20
20
  import br, { random as li } from "chroma-js";
@@ -23,7 +23,7 @@ import "echarts-gl";
23
23
  import { GridComponent as vt, VisualMapComponent as Dr, LegendComponent as wt, TooltipComponent as _t, DataZoomComponent as Gt, MarkLineComponent as ci, MarkAreaComponent as ra, CalendarComponent as Ah } from "echarts/components";
24
24
  import * as ge from "echarts/core";
25
25
  import { CanvasRenderer as lt } from "echarts/renderers";
26
- import { useForm as Re, Controller as y, useFieldArray as Ae, useWatch as Eh } from "react-hook-form";
26
+ import { useForm as Ee, Controller as y, useFieldArray as $e, useWatch as Eh } from "react-hook-form";
27
27
  import { DeviceFloppy as ve, ArrowRight as qi, Trash as be, AlertCircle as Rh, PlaylistAdd as di, Recycle as Mt, InfoCircle as gn, Plus as Ge, Calendar as Oh, Refresh as ia, Download as oa, ArrowsMaximize as Al, Settings as El, Copy as Fh, ArrowLeft as Ph, ArrowsMove as Vh, ChevronDownRight as Nh, ChevronsUpRight as Bh, ArrowBarToRight as qh } from "tabler-icons-react";
28
28
  import { BoxplotChart as Wh, BarChart as Jn, LineChart as Zn, ScatterChart as ui, FunnelChart as jh, HeatmapChart as hi, PieChart as Gh, RadarChart as Hh, SunburstChart as Yh } from "echarts/charts";
29
29
  import { IconDeviceFloppy as bn, IconTextSize as aa, IconInfoCircle as An, IconPlayerSkipBack as Rl, IconRecycle as sa, IconMathFunction as Qh, IconPlus as Ht, IconBorderAll as Uh, IconTrash as mn, IconArrowDown as Kh, IconArrowUp as Xh, IconCamera as pi, IconShare3 as Jh, IconDownload as Ol, IconCode as Fl, IconArrowsLeftRight as Zh, IconVariable as Pl, IconCodeDots as ep, IconFilter as Vl, IconCopy as tp, IconDatabase as mi, IconBoxMultiple as Nl, IconMenu2 as np, IconCaretDown as rp, IconAlertTriangle as Bl, IconArrowLeft as ip, IconPlaylistAdd as op, IconCircleDashed as ap, IconCircleDot as sp, IconCircleOff as lp, IconAdjustments as cp, IconLink as dp, IconSettings as la, IconArrowCurveRight as io, IconLine as up, IconX as ql, IconEye as Wl, IconTable as hp, IconColumns as pp, IconAlertCircle as Ds, IconVariablePlus as mp } from "@tabler/icons-react";
@@ -45,7 +45,7 @@ import rc from "@tiptap/extension-underline";
45
45
  import { useEditor as ic } from "@tiptap/react";
46
46
  import oc from "@tiptap/starter-kit";
47
47
  import "prosemirror-keymap";
48
- import { createParagraphNear as bp, deleteSelection as yp, exitCode as xp, joinUp as vp, joinDown as wp, joinBackward as _p, joinForward as Cp, lift as Sp, liftEmptyBlock as kp, newlineInCode as Tp, selectNodeBackward as Dp, selectNodeForward as Ip, selectParentNode as Mp, selectTextblockEnd as zp, selectTextblockStart as $p, setBlockType as Is, wrapIn as Lp } from "prosemirror-commands";
48
+ import { createParagraphNear as bp, deleteSelection as yp, exitCode as xp, joinUp as vp, joinDown as wp, joinBackward as _p, joinForward as Cp, lift as Sp, liftEmptyBlock as kp, newlineInCode as Tp, selectNodeBackward as Dp, selectNodeForward as Ip, selectParentNode as Mp, selectTextblockEnd as zp, selectTextblockStart as Lp, setBlockType as Is, wrapIn as $p } from "prosemirror-commands";
49
49
  import { liftListItem as Ap, sinkListItem as Ep, wrapInList as Rp } from "prosemirror-schema-list";
50
50
  import ct, { loader as Wi } from "@monaco-editor/react";
51
51
  import { interpolate as En } from "popmotion";
@@ -57,7 +57,7 @@ import { DatePickerInput as Pp } from "@mantine/dates";
57
57
  import Vp, { Option as Np } from "rc-select";
58
58
  import Bp, { SHOW_PARENT as qp } from "rc-tree-select";
59
59
  import cc, { WidthProvider as dc } from "react-grid-layout";
60
- import { types as b, cast as qt, getParent as Fe, getRoot as Me, addDisposer as Rt, isAlive as Ms, flow as Hn, toGenerator as wn, clone as Wp, getSnapshot as Zt, applySnapshot as dt, addMiddleware as jp, getType as Gp, detach as oo, castToSnapshot as uc } from "mobx-state-tree";
60
+ import { types as b, cast as qt, getParent as Fe, getRoot as Oe, addDisposer as Rt, isAlive as Ms, flow as Hn, toGenerator as wn, clone as Wp, getSnapshot as Zt, applySnapshot as dt, addMiddleware as jp, getType as Gp, detach as oo, castToSnapshot as uc } from "mobx-state-tree";
61
61
  import { arrayToTree as Hp } from "performant-array-to-tree";
62
62
  import Yp from "jszip";
63
63
  import { saveAs as da } from "file-saver";
@@ -81,11 +81,11 @@ var he = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : t
81
81
  * This source code is licensed under the MIT license found in the
82
82
  * LICENSE file in the root directory of this source tree.
83
83
  */
84
- var $s;
84
+ var Ls;
85
85
  function em() {
86
- if ($s)
86
+ if (Ls)
87
87
  return lr;
88
- $s = 1;
88
+ Ls = 1;
89
89
  var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.fragment"), r = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
90
90
  function s(l, c, d) {
91
91
  var p, h = {}, m = null, f = null;
@@ -109,9 +109,9 @@ var cr = {};
109
109
  * This source code is licensed under the MIT license found in the
110
110
  * LICENSE file in the root directory of this source tree.
111
111
  */
112
- var Ls;
112
+ var $s;
113
113
  function tm() {
114
- return Ls || (Ls = 1, process.env.NODE_ENV !== "production" && function() {
114
+ return $s || ($s = 1, process.env.NODE_ENV !== "production" && function() {
115
115
  var e = R, t = Symbol.for("react.element"), n = Symbol.for("react.portal"), r = Symbol.for("react.fragment"), o = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), s = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), p = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), f = Symbol.for("react.offscreen"), w = Symbol.iterator, v = "@@iterator";
116
116
  function T(_) {
117
117
  if (_ === null || typeof _ != "object")
@@ -120,7 +120,7 @@ function tm() {
120
120
  return typeof P == "function" ? P : null;
121
121
  }
122
122
  var M = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
123
- function $(_) {
123
+ function L(_) {
124
124
  {
125
125
  for (var P = arguments.length, G = new Array(P > 1 ? P - 1 : 0), te = 1; te < P; te++)
126
126
  G[te - 1] = arguments[te];
@@ -159,7 +159,7 @@ function tm() {
159
159
  function xe(_) {
160
160
  if (_ == null)
161
161
  return null;
162
- if (typeof _.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof _ == "function")
162
+ if (typeof _.tag == "number" && L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof _ == "function")
163
163
  return _.displayName || _.name || null;
164
164
  if (typeof _ == "string")
165
165
  return _;
@@ -201,14 +201,14 @@ function tm() {
201
201
  }
202
202
  return null;
203
203
  }
204
- var Ee = Object.assign, Ke = 0, ze, Ve, $e, tt, St, xn, Ar;
204
+ var Ae = Object.assign, Ke = 0, Me, Ve, ze, tt, St, xn, Ar;
205
205
  function Er() {
206
206
  }
207
207
  Er.__reactDisabledLog = !0;
208
208
  function Ai() {
209
209
  {
210
210
  if (Ke === 0) {
211
- ze = console.log, Ve = console.info, $e = console.warn, tt = console.error, St = console.group, xn = console.groupCollapsed, Ar = console.groupEnd;
211
+ Me = console.log, Ve = console.info, ze = console.warn, tt = console.error, St = console.group, xn = console.groupCollapsed, Ar = console.groupEnd;
212
212
  var _ = {
213
213
  configurable: !0,
214
214
  enumerable: !0,
@@ -237,30 +237,30 @@ function tm() {
237
237
  writable: !0
238
238
  };
239
239
  Object.defineProperties(console, {
240
- log: Ee({}, _, {
241
- value: ze
240
+ log: Ae({}, _, {
241
+ value: Me
242
242
  }),
243
- info: Ee({}, _, {
243
+ info: Ae({}, _, {
244
244
  value: Ve
245
245
  }),
246
- warn: Ee({}, _, {
247
- value: $e
246
+ warn: Ae({}, _, {
247
+ value: ze
248
248
  }),
249
- error: Ee({}, _, {
249
+ error: Ae({}, _, {
250
250
  value: tt
251
251
  }),
252
- group: Ee({}, _, {
252
+ group: Ae({}, _, {
253
253
  value: St
254
254
  }),
255
- groupCollapsed: Ee({}, _, {
255
+ groupCollapsed: Ae({}, _, {
256
256
  value: xn
257
257
  }),
258
- groupEnd: Ee({}, _, {
258
+ groupEnd: Ae({}, _, {
259
259
  value: Ar
260
260
  })
261
261
  });
262
262
  }
263
- Ke < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
263
+ Ke < 0 && L("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
264
264
  }
265
265
  }
266
266
  var rr = M.ReactCurrentDispatcher, Pn;
@@ -412,7 +412,7 @@ function tm() {
412
412
  } catch (Ne) {
413
413
  le = Ne;
414
414
  }
415
- le && !(le instanceof Error) && (Rr(me), $("%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).", te || "React class", G, ce, typeof le), Rr(null)), le instanceof Error && !(le.message in ls) && (ls[le.message] = !0, Rr(me), $("Failed %s type: %s", G, le.message), Rr(null));
415
+ le && !(le instanceof Error) && (Rr(me), L("%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).", te || "React class", G, ce, typeof le), Rr(null)), le instanceof Error && !(le.message in ls) && (ls[le.message] = !0, Rr(me), L("Failed %s type: %s", G, le.message), Rr(null));
416
416
  }
417
417
  }
418
418
  }
@@ -438,7 +438,7 @@ function tm() {
438
438
  }
439
439
  function us(_) {
440
440
  if (Wu(_))
441
- return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qu(_)), ds(_);
441
+ return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", qu(_)), ds(_);
442
442
  }
443
443
  var sr = M.ReactCurrentOwner, ju = {
444
444
  key: !0,
@@ -466,13 +466,13 @@ function tm() {
466
466
  function Yu(_, P) {
467
467
  if (typeof _.ref == "string" && sr.current && P && sr.current.stateNode !== P) {
468
468
  var G = xe(sr.current.type);
469
- Oi[G] || ($('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', xe(sr.current.type), _.ref), Oi[G] = !0);
469
+ Oi[G] || (L('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', xe(sr.current.type), _.ref), Oi[G] = !0);
470
470
  }
471
471
  }
472
472
  function Qu(_, P) {
473
473
  {
474
474
  var G = function() {
475
- hs || (hs = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
475
+ hs || (hs = !0, L("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
476
476
  };
477
477
  G.isReactWarning = !0, Object.defineProperty(_, "key", {
478
478
  get: G,
@@ -483,7 +483,7 @@ function tm() {
483
483
  function Uu(_, P) {
484
484
  {
485
485
  var G = function() {
486
- ps || (ps = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
486
+ ps || (ps = !0, L("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", P));
487
487
  };
488
488
  G.isReactWarning = !0, Object.defineProperty(_, "ref", {
489
489
  get: G,
@@ -597,7 +597,7 @@ Check the top-level render call using <` + G + ">.");
597
597
  return;
598
598
  gs[G] = !0;
599
599
  var te = "";
600
- _ && _._owner && _._owner !== Fi.current && (te = " It was passed a child from " + xe(_._owner.type) + "."), Bn(_), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, te), Bn(null);
600
+ _ && _._owner && _._owner !== Fi.current && (te = " It was passed a child from " + xe(_._owner.type) + "."), Bn(_), L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, te), Bn(null);
601
601
  }
602
602
  }
603
603
  function ys(_, P) {
@@ -639,9 +639,9 @@ Check the top-level render call using <` + G + ">.");
639
639
  } else if (P.PropTypes !== void 0 && !Pi) {
640
640
  Pi = !0;
641
641
  var me = xe(P);
642
- $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", me || "Unknown");
642
+ L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", me || "Unknown");
643
643
  }
644
- typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
644
+ typeof P.getDefaultProps == "function" && !P.getDefaultProps.isReactClassApproved && L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
645
645
  }
646
646
  }
647
647
  function th(_) {
@@ -649,11 +649,11 @@ Check the top-level render call using <` + G + ">.");
649
649
  for (var P = Object.keys(_.props), G = 0; G < P.length; G++) {
650
650
  var te = P[G];
651
651
  if (te !== "children" && te !== "key") {
652
- Bn(_), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), Bn(null);
652
+ Bn(_), L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", te), Bn(null);
653
653
  break;
654
654
  }
655
655
  }
656
- _.ref !== null && (Bn(_), $("Invalid attribute `ref` supplied to `React.Fragment`."), Bn(null));
656
+ _.ref !== null && (Bn(_), L("Invalid attribute `ref` supplied to `React.Fragment`."), Bn(null));
657
657
  }
658
658
  }
659
659
  function xs(_, P, G, te, me, Se) {
@@ -665,7 +665,7 @@ Check the top-level render call using <` + G + ">.");
665
665
  var it = Ju(me);
666
666
  it ? le += it : le += fs();
667
667
  var Ne;
668
- _ === null ? Ne = "null" : Ri(_) ? Ne = "array" : _ !== void 0 && _.$$typeof === t ? (Ne = "<" + (xe(_.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Ne = typeof _, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ne, le);
668
+ _ === null ? Ne = "null" : Ri(_) ? Ne = "array" : _ !== void 0 && _.$$typeof === t ? (Ne = "<" + (xe(_.type) || "Unknown") + " />", le = " Did you accidentally export a JSX literal instead of a component?") : Ne = typeof _, L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ne, le);
669
669
  }
670
670
  var qe = Xu(_, P, G, me, Se);
671
671
  if (qe == null)
@@ -679,7 +679,7 @@ Check the top-level render call using <` + G + ">.");
679
679
  ys(kt[qn], _);
680
680
  Object.freeze && Object.freeze(kt);
681
681
  } else
682
- $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
682
+ L("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
683
683
  else
684
684
  ys(kt, _);
685
685
  }
@@ -701,12 +701,12 @@ Check the top-level render call using <` + G + ">.");
701
701
  })(Zp);
702
702
  const j = xr.Fragment, i = xr.jsx, u = xr.jsxs, Rn = {
703
703
  CryptoJS: kl,
704
- d3Array: $h,
704
+ d3Array: Lh,
705
705
  dayjs: ne,
706
706
  lodash: k,
707
707
  numbro: ae,
708
708
  mathjs: Wr,
709
- faker: Lh
709
+ faker: $h
710
710
  }, nm = [{
711
711
  name: "CryptoJS",
712
712
  url: "https://github.com/brix/crypto-js",
@@ -1174,7 +1174,7 @@ class ma {
1174
1174
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1175
1175
  }
1176
1176
  }
1177
- const yc = "10.34.1", _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1177
+ const yc = "10.34.2", _m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1178
1178
  __proto__: null,
1179
1179
  version: yc
1180
1180
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1264,7 +1264,7 @@ class km {
1264
1264
  return a.reduce((l, c) => c.handler(l, r), n);
1265
1265
  }
1266
1266
  }
1267
- class Oe extends km {
1267
+ class Re extends km {
1268
1268
  constructor() {
1269
1269
  super(), this.configVersions();
1270
1270
  }
@@ -1410,9 +1410,9 @@ function Im({
1410
1410
  min: v,
1411
1411
  max: T
1412
1412
  } = z(() => {
1413
- const $ = Sh(h, (K) => K[w.columnKey]), B = kh(h, (K) => K[w.columnKey]);
1413
+ const L = Sh(h, (K) => K[w.columnKey]), B = kh(h, (K) => K[w.columnKey]);
1414
1414
  return {
1415
- min: de($, w.columnKey),
1415
+ min: de(L, w.columnKey),
1416
1416
  max: de(B, w.columnKey)
1417
1417
  };
1418
1418
  }, [h, w]), M = {
@@ -1448,7 +1448,7 @@ function Im({
1448
1448
  wireframe: {
1449
1449
  // show: false
1450
1450
  },
1451
- data: h.map(($) => [$[m.columnKey], $[f.columnKey], $[w.columnKey]])
1451
+ data: h.map((L) => [L[m.columnKey], L[f.columnKey], L[w.columnKey]])
1452
1452
  }]
1453
1453
  };
1454
1454
  return t ? /* @__PURE__ */ i(mt, { width: r, height: o, children: /* @__PURE__ */ i(st, { echarts: ge, option: M, style: Ir(r, o), notMerge: !0, theme: "merico-light" }) }) : null;
@@ -1487,7 +1487,7 @@ const On = () => Ic(), Yt = () => Ic(), zm = {
1487
1487
  fullScreenPanelID: "",
1488
1488
  setFullScreenPanelID: k.noop
1489
1489
  }, Mc = R.createContext(zm);
1490
- function $m() {
1490
+ function Lm() {
1491
1491
  const e = R.useContext(Mc);
1492
1492
  if (!e)
1493
1493
  throw new Error("Please use FullScreenPanelContext.Provider");
@@ -1514,7 +1514,7 @@ const J = D(we(({
1514
1514
  }, [c.dataFieldOptions]);
1515
1515
  return /* @__PURE__ */ i(F, { ref: l, label: e, data: d, value: n, onChange: r, required: t, sx: a, maxDropdownHeight: 500, ...s });
1516
1516
  }));
1517
- function Lm({
1517
+ function $m({
1518
1518
  context: e
1519
1519
  }) {
1520
1520
  const {
@@ -1524,7 +1524,7 @@ function Lm({
1524
1524
  control: o,
1525
1525
  handleSubmit: a,
1526
1526
  reset: s
1527
- } = Re({
1527
+ } = Ee({
1528
1528
  defaultValues: r
1529
1529
  });
1530
1530
  return W(() => {
@@ -1540,7 +1540,7 @@ function Lm({
1540
1540
  }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, ...l }) }),
1541
1541
  /* @__PURE__ */ i(y, { name: "xAxis3D.name", control: o, render: ({
1542
1542
  field: l
1543
- }) => /* @__PURE__ */ i(L, { sx: {
1543
+ }) => /* @__PURE__ */ i($, { sx: {
1544
1544
  flexGrow: 1
1545
1545
  }, size: "md", label: "Name", ...l }) })
1546
1546
  ] }),
@@ -1554,7 +1554,7 @@ function Lm({
1554
1554
  }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, ...l }) }),
1555
1555
  /* @__PURE__ */ i(y, { name: "yAxis3D.name", control: o, render: ({
1556
1556
  field: l
1557
- }) => /* @__PURE__ */ i(L, { sx: {
1557
+ }) => /* @__PURE__ */ i($, { sx: {
1558
1558
  flexGrow: 1
1559
1559
  }, size: "md", label: "Name", ...l }) })
1560
1560
  ] }),
@@ -1568,7 +1568,7 @@ function Lm({
1568
1568
  }) => /* @__PURE__ */ i(J, { label: "Data Field", required: !0, ...l }) }),
1569
1569
  /* @__PURE__ */ i(y, { name: "zAxis3D.name", control: o, render: ({
1570
1570
  field: l
1571
- }) => /* @__PURE__ */ i(L, { sx: {
1571
+ }) => /* @__PURE__ */ i($, { sx: {
1572
1572
  flexGrow: 1
1573
1573
  }, size: "md", label: "Name", ...l }) })
1574
1574
  ] }),
@@ -1603,7 +1603,7 @@ function Am(e, {
1603
1603
  throw console.error("[Migration failed]", n), n;
1604
1604
  }
1605
1605
  }
1606
- class Em extends Oe {
1606
+ class Em extends Re {
1607
1607
  constructor() {
1608
1608
  super(...arguments);
1609
1609
  H(this, "VERSION", 2);
@@ -1630,7 +1630,7 @@ const Rm = {
1630
1630
  migrator: new Em(),
1631
1631
  name: "bar-3d",
1632
1632
  viewRender: Im,
1633
- configRender: Lm,
1633
+ configRender: $m,
1634
1634
  createConfig() {
1635
1635
  return {
1636
1636
  version: 2,
@@ -1832,7 +1832,7 @@ const Vm = [{
1832
1832
  /* @__PURE__ */ i(ie, { label: "Max Width", hideControls: !0, value: t.width, onChange: o("width") }),
1833
1833
  /* @__PURE__ */ i(F, { label: "Overflow", data: Vm, value: t.overflow, onChange: o("overflow") }),
1834
1834
  /* @__PURE__ */ i(
1835
- L,
1835
+ $,
1836
1836
  {
1837
1837
  label: "Ellipsis",
1838
1838
  value: t.ellipsis,
@@ -2037,7 +2037,7 @@ function Bm(e) {
2037
2037
  urlTemplate: l.currentTarget.value
2038
2038
  });
2039
2039
  return /* @__PURE__ */ u(S, { children: [
2040
- /* @__PURE__ */ i(L, { label: "Url", value: t.urlTemplate, onChange: s, onBlur: o }),
2040
+ /* @__PURE__ */ i($, { label: "Url", value: t.urlTemplate, onChange: s, onBlur: o }),
2041
2041
  /* @__PURE__ */ i(Xe, { label: "Open in new Tab", checked: t.openInNewTab, onChange: (l) => a(l.currentTarget.checked) })
2042
2042
  ] });
2043
2043
  }
@@ -2054,7 +2054,7 @@ async function qm(e, t) {
2054
2054
  }
2055
2055
  }));
2056
2056
  }
2057
- class Wm extends Oe {
2057
+ class Wm extends Re {
2058
2058
  constructor() {
2059
2059
  super(...arguments);
2060
2060
  H(this, "VERSION", 1);
@@ -2088,7 +2088,7 @@ function Gm(e) {
2088
2088
  }
2089
2089
  function Hm(e) {
2090
2090
  const [t, n] = Gm(e.operation);
2091
- return /* @__PURE__ */ i(L, { defaultValue: t, onBlur: (r) => n(r.currentTarget.value), label: "console.log" });
2091
+ return /* @__PURE__ */ i($, { defaultValue: t, onBlur: (r) => n(r.currentTarget.value), label: "console.log" });
2092
2092
  }
2093
2093
  async function Ym(e, t) {
2094
2094
  const n = await t.operationData.getItem("config"), r = na(n.template || "");
@@ -2141,7 +2141,7 @@ const Xm = {
2141
2141
  const [n, r] = Q(e);
2142
2142
  return W(() => {
2143
2143
  r(e);
2144
- }, [e]), /* @__PURE__ */ i(L, { size: "xs", label: "", value: n, onChange: (a) => r(a.currentTarget.value), sx: {
2144
+ }, [e]), /* @__PURE__ */ i($, { size: "xs", label: "", value: n, onChange: (a) => r(a.currentTarget.value), sx: {
2145
2145
  flexGrow: 1
2146
2146
  }, rightSection: /* @__PURE__ */ i(U, { color: "green", size: "xs", onClick: () => {
2147
2147
  t(n);
@@ -2447,10 +2447,10 @@ class xa {
2447
2447
  }));
2448
2448
  }
2449
2449
  }
2450
- const $t = ({
2450
+ const Lt = ({
2451
2451
  vizManager: e,
2452
2452
  instance: t
2453
- }) => Ot(() => new xa(t, e.resolveComponent(t.type), bi), [t, e]), $c = (e) => {
2453
+ }) => Ot(() => new xa(t, e.resolveComponent(t.type), bi), [t, e]), Lc = (e) => {
2454
2454
  const {
2455
2455
  title: t = "Variables",
2456
2456
  variables: n
@@ -2553,7 +2553,7 @@ const pf = D(({
2553
2553
  /* @__PURE__ */ i(g.Tab, { value: "variables", children: "Variables" })
2554
2554
  ] }),
2555
2555
  /* @__PURE__ */ i(g.Panel, { value: "settings", pt: 10, children: /* @__PURE__ */ i(mf, { model: c }) }),
2556
- /* @__PURE__ */ i(g.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ i($c, { title: "Variables", variables: c.variables }) })
2556
+ /* @__PURE__ */ i(g.Panel, { value: "variables", pt: 10, children: /* @__PURE__ */ i(Lc, { title: "Variables", variables: c.variables }) })
2557
2557
  ] })
2558
2558
  ] }) })
2559
2559
  ] }) : null;
@@ -2627,7 +2627,7 @@ const vf = D(({
2627
2627
  /* @__PURE__ */ i(De, { opened: t, onClose: r, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
2628
2628
  /* @__PURE__ */ i(wf, { model: o }),
2629
2629
  /* @__PURE__ */ i(_f, { model: o }),
2630
- /* @__PURE__ */ i($c, { title: "Payload", variables: o.triggerSchema.payload })
2630
+ /* @__PURE__ */ i(Lc, { title: "Payload", variables: o.triggerSchema.payload })
2631
2631
  ] }) }),
2632
2632
  /* @__PURE__ */ i(vf, { onClick: n, model: o })
2633
2633
  ] });
@@ -2686,7 +2686,7 @@ const kf = D(({
2686
2686
  }
2687
2687
  });
2688
2688
  return /* @__PURE__ */ u(S, { children: [
2689
- /* @__PURE__ */ i($n, { visible: h }),
2689
+ /* @__PURE__ */ i(Ln, { visible: h }),
2690
2690
  p === 0 && /* @__PURE__ */ i(Jo, { icon: /* @__PURE__ */ i(Rh, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
2691
2691
  l.map((m) => /* @__PURE__ */ i(kf, { onRemove: d, instance: o, sampleData: a, variables: s, item: m, manager: e.interactionManager }, m.id)),
2692
2692
  /* @__PURE__ */ i(I, { style: {
@@ -2768,7 +2768,7 @@ function zf(e, t) {
2768
2768
  source: c
2769
2769
  }];
2770
2770
  }
2771
- function $f({
2771
+ function Lf({
2772
2772
  config: e
2773
2773
  }) {
2774
2774
  return {
@@ -2789,7 +2789,7 @@ function $f({
2789
2789
  };
2790
2790
  }
2791
2791
  const ao = ["max", "q3", "median", "q1", "min"];
2792
- function Lf(e) {
2792
+ function $f(e) {
2793
2793
  const {
2794
2794
  color: t
2795
2795
  } = e;
@@ -2916,7 +2916,7 @@ const vr = we(function({
2916
2916
  onChange: n,
2917
2917
  ...r
2918
2918
  }, o) {
2919
- return /* @__PURE__ */ i(L, { ref: o, value: t, onChange: n, ...r });
2919
+ return /* @__PURE__ */ i($, { ref: o, value: t, onChange: n, ...r });
2920
2920
  }), va = {
2921
2921
  fontSize: "14px",
2922
2922
  lineHeight: "32px",
@@ -2995,7 +2995,7 @@ const vr = we(function({
2995
2995
  margin: "0 0 14px"
2996
2996
  }
2997
2997
  };
2998
- function Lc(e, t, n) {
2998
+ function $c(e, t, n) {
2999
2999
  for (let r = 0; ; r++) {
3000
3000
  if (r == e.childCount || r == t.childCount)
3001
3001
  return e.childCount == t.childCount ? null : n;
@@ -3012,7 +3012,7 @@ function Lc(e, t, n) {
3012
3012
  return n;
3013
3013
  }
3014
3014
  if (o.content.size || a.content.size) {
3015
- let s = Lc(o.content, a.content, n + 1);
3015
+ let s = $c(o.content, a.content, n + 1);
3016
3016
  if (s != null)
3017
3017
  return s;
3018
3018
  }
@@ -3205,7 +3205,7 @@ class fe {
3205
3205
  fragment differ, or `null` if they are the same.
3206
3206
  */
3207
3207
  findDiffStart(t, n = 0) {
3208
- return Lc(this, t, n);
3208
+ return $c(this, t, n);
3209
3209
  }
3210
3210
  /**
3211
3211
  Find the first position, searching from the end, at which this
@@ -5106,7 +5106,7 @@ const Yi = /* @__PURE__ */ Object.create(null);
5106
5106
  function Gc(e) {
5107
5107
  return e in Yi ? e + "$" + ++Yi[e] : (Yi[e] = 0, e + "$");
5108
5108
  }
5109
- class $r {
5109
+ class Lr {
5110
5110
  /**
5111
5111
  Create a plugin key.
5112
5112
  */
@@ -5318,7 +5318,7 @@ jt.create({
5318
5318
  addProseMirrorPlugins() {
5319
5319
  return [
5320
5320
  new zr({
5321
- key: new $r("clipboardTextSerializer"),
5321
+ key: new Lr("clipboardTextSerializer"),
5322
5322
  props: {
5323
5323
  clipboardTextSerializer: () => {
5324
5324
  const { editor: e } = this, { state: t, schema: n } = e, { doc: r, selection: o } = t, { ranges: a } = o, s = Math.min(...a.map((p) => p.$from.pos)), l = Math.max(...a.map((p) => p.$to.pos)), c = og(n);
@@ -5541,7 +5541,7 @@ const kg = (e) => e.toString().startsWith("<"), Tg = (e, t, n) => ({ tr: r, disp
5541
5541
  function Kc() {
5542
5542
  return typeof navigator < "u" ? /Mac/.test(navigator.platform) : !1;
5543
5543
  }
5544
- function $g(e) {
5544
+ function Lg(e) {
5545
5545
  const t = e.split(/-(?!$)/);
5546
5546
  let n = t[t.length - 1];
5547
5547
  n === "Space" && (n = " ");
@@ -5563,8 +5563,8 @@ function $g(e) {
5563
5563
  }
5564
5564
  return r && (n = `Alt-${n}`), o && (n = `Ctrl-${n}`), s && (n = `Meta-${n}`), a && (n = `Shift-${n}`), n;
5565
5565
  }
5566
- const Lg = (e) => ({ editor: t, view: n, tr: r, dispatch: o }) => {
5567
- const a = $g(e).split(/-(?!$)/), s = a.find((d) => !["Alt", "Ctrl", "Meta", "Shift"].includes(d)), l = new KeyboardEvent("keydown", {
5566
+ const $g = (e) => ({ editor: t, view: n, tr: r, dispatch: o }) => {
5567
+ const a = Lg(e).split(/-(?!$)/), s = a.find((d) => !["Alt", "Ctrl", "Meta", "Shift"].includes(d)), l = new KeyboardEvent("keydown", {
5568
5568
  key: s === "Space" ? " " : s,
5569
5569
  altKey: a.includes("Alt"),
5570
5570
  ctrlKey: a.includes("Ctrl"),
@@ -5622,7 +5622,7 @@ const Fg = (e, t) => ({ tr: n, state: r, dispatch: o }) => {
5622
5622
  }, Pg = () => ({ tr: e, dispatch: t }) => (t && e.scrollIntoView(), !0), Vg = () => ({ tr: e, commands: t }) => t.setTextSelection({
5623
5623
  from: 0,
5624
5624
  to: e.doc.content.size
5625
- }), Ng = () => ({ state: e, dispatch: t }) => Dp(e, t), Bg = () => ({ state: e, dispatch: t }) => Ip(e, t), qg = () => ({ state: e, dispatch: t }) => Mp(e, t), Wg = () => ({ state: e, dispatch: t }) => zp(e, t), jg = () => ({ state: e, dispatch: t }) => $p(e, t);
5625
+ }), Ng = () => ({ state: e, dispatch: t }) => Dp(e, t), Bg = () => ({ state: e, dispatch: t }) => Ip(e, t), qg = () => ({ state: e, dispatch: t }) => Mp(e, t), Wg = () => ({ state: e, dispatch: t }) => zp(e, t), jg = () => ({ state: e, dispatch: t }) => Lp(e, t);
5626
5626
  function Gg(e, t, n = {}) {
5627
5627
  return ni(e, t, { slice: !1, parseOptions: n });
5628
5628
  }
@@ -5678,11 +5678,11 @@ function Kg(e, t, n = {}) {
5678
5678
  e.doc.nodesBetween(f, w, (v, T) => {
5679
5679
  if (!v.isText && !v.marks.length)
5680
5680
  return;
5681
- const M = Math.max(f, T), $ = Math.min(w, T + v.nodeSize), B = $ - M;
5681
+ const M = Math.max(f, T), L = Math.min(w, T + v.nodeSize), B = L - M;
5682
5682
  s += B, l.push(...v.marks.map((K) => ({
5683
5683
  mark: K,
5684
5684
  from: M,
5685
- to: $
5685
+ to: L
5686
5686
  })));
5687
5687
  });
5688
5688
  }), s === 0)
@@ -5817,10 +5817,10 @@ const ib = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
5817
5817
  const M = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
5818
5818
  for (let E = l.depth - M; E >= l.depth - 3; E -= 1)
5819
5819
  T = fe.from(l.node(E).copy(T));
5820
- const $ = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, B = Yr(h, l.node().type.name, l.node().attrs), K = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(B)) || void 0;
5820
+ const L = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, B = Yr(h, l.node().type.name, l.node().attrs), K = ((a = s.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(B)) || void 0;
5821
5821
  T = T.append(fe.from(s.createAndFill(null, K) || void 0));
5822
5822
  const N = l.before(l.depth - (M - 1));
5823
- t.replace(N, l.after(-$), new _e(T, 4 - M, 0));
5823
+ t.replace(N, l.after(-L), new _e(T, 4 - M, 0));
5824
5824
  let O = -1;
5825
5825
  t.doc.nodesBetween(N, t.doc.content.size, (E, Y) => {
5826
5826
  if (O > -1)
@@ -5839,10 +5839,10 @@ const ib = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
5839
5839
  if (!Hr(t.doc, l.pos, 2))
5840
5840
  return !1;
5841
5841
  if (r) {
5842
- const { selection: T, storedMarks: M } = n, { splittableMarks: $ } = o.extensionManager, B = M || T.$to.parentOffset && T.$from.marks();
5842
+ const { selection: T, storedMarks: M } = n, { splittableMarks: L } = o.extensionManager, B = M || T.$to.parentOffset && T.$from.marks();
5843
5843
  if (t.split(l.pos, 2, v).scrollIntoView(), !B || !r)
5844
5844
  return !0;
5845
- const K = B.filter((N) => $.includes(N.type.name));
5845
+ const K = B.filter((N) => L.includes(N.type.name));
5846
5846
  t.ensureMarks(K);
5847
5847
  }
5848
5848
  return !0;
@@ -5865,7 +5865,7 @@ const ib = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
5865
5865
  const o = e.doc.nodeAt(r);
5866
5866
  return n.node.type === (o == null ? void 0 : o.type) && Wc(e.doc, r) && e.join(r), !0;
5867
5867
  }, ab = (e, t, n, r = {}) => ({ editor: o, tr: a, state: s, dispatch: l, chain: c, commands: d, can: p }) => {
5868
- const { extensions: h, splittableMarks: m } = o.extensionManager, f = rt(e, s.schema), w = rt(t, s.schema), { selection: v, storedMarks: T } = s, { $from: M, $to: $ } = v, B = M.blockRange($), K = T || v.$to.parentOffset && v.$from.marks();
5868
+ const { extensions: h, splittableMarks: m } = o.extensionManager, f = rt(e, s.schema), w = rt(t, s.schema), { selection: v, storedMarks: T } = s, { $from: M, $to: L } = v, B = M.blockRange(L), K = T || v.$to.parentOffset && v.$from.marks();
5869
5869
  if (!B)
5870
5870
  return !1;
5871
5871
  const N = ka((O) => Gs(O.type.name, h))(v);
@@ -5949,7 +5949,7 @@ const ib = ({ keepMarks: e = !0 } = {}) => ({ tr: t, state: n, dispatch: r, edit
5949
5949
  }), !0) : !1;
5950
5950
  }, mb = (e, t = {}) => ({ state: n, dispatch: r }) => {
5951
5951
  const o = rt(e, n.schema);
5952
- return Lp(o, t)(n, r);
5952
+ return $p(o, t)(n, r);
5953
5953
  }, fb = (e, t = {}) => ({ state: n, dispatch: r }) => {
5954
5954
  const o = rt(e, n.schema);
5955
5955
  return Rp(o, t)(n, r);
@@ -5977,7 +5977,7 @@ var gb = /* @__PURE__ */ Object.freeze({
5977
5977
  joinDown: Ig,
5978
5978
  joinBackward: Mg,
5979
5979
  joinForward: zg,
5980
- keyboardShortcut: Lg,
5980
+ keyboardShortcut: $g,
5981
5981
  lift: Ag,
5982
5982
  liftEmptyBlock: Eg,
5983
5983
  liftListItem: Rg,
@@ -6023,7 +6023,7 @@ jt.create({
6023
6023
  addProseMirrorPlugins() {
6024
6024
  return [
6025
6025
  new zr({
6026
- key: new $r("editable"),
6026
+ key: new Lr("editable"),
6027
6027
  props: {
6028
6028
  editable: () => this.editor.options.editable
6029
6029
  }
@@ -6037,7 +6037,7 @@ jt.create({
6037
6037
  const { editor: e } = this;
6038
6038
  return [
6039
6039
  new zr({
6040
- key: new $r("focusEvents"),
6040
+ key: new Lr("focusEvents"),
6041
6041
  props: {
6042
6042
  handleDOMEvents: {
6043
6043
  focus: (t, n) => {
@@ -6111,7 +6111,7 @@ jt.create({
6111
6111
  // This is an alternative to ProseMirror's `AllSelection`, which doesn’t work well
6112
6112
  // with many other commands.
6113
6113
  new zr({
6114
- key: new $r("clearDocument"),
6114
+ key: new Lr("clearDocument"),
6115
6115
  appendTransaction: (e, t, n) => {
6116
6116
  if (!(e.some((w) => w.docChanged) && !t.doc.eq(n.doc)))
6117
6117
  return;
@@ -6137,7 +6137,7 @@ jt.create({
6137
6137
  addProseMirrorPlugins() {
6138
6138
  return [
6139
6139
  new zr({
6140
- key: new $r("tabindex"),
6140
+ key: new Lr("tabindex"),
6141
6141
  props: {
6142
6142
  attributes: this.editor.isEditable ? { tabindex: "0" } : {}
6143
6143
  }
@@ -6487,8 +6487,8 @@ function zb({
6487
6487
  ] })
6488
6488
  ] });
6489
6489
  }
6490
- const $b = R.forwardRef(zb);
6491
- function Lb({
6490
+ const Lb = R.forwardRef(zb);
6491
+ function $b({
6492
6492
  value: e,
6493
6493
  onChange: t
6494
6494
  }, n) {
@@ -6502,7 +6502,7 @@ function Lb({
6502
6502
  })), [r]), a = R.useMemo(() => o.some((s) => s.value === e), [e, o]);
6503
6503
  return /* @__PURE__ */ u(x, { position: "apart", spacing: 4, ref: n, children: [
6504
6504
  /* @__PURE__ */ i(
6505
- L,
6505
+ $,
6506
6506
  {
6507
6507
  placeholder: "Set any color",
6508
6508
  value: a ? "" : e,
@@ -6535,7 +6535,7 @@ function Lb({
6535
6535
  )
6536
6536
  ] });
6537
6537
  }
6538
- const at = R.forwardRef(Lb), Vr = [{
6538
+ const at = R.forwardRef($b), Vr = [{
6539
6539
  label: "initial",
6540
6540
  value: 0
6541
6541
  }, {
@@ -6586,7 +6586,7 @@ function Eb({
6586
6586
  }, children: /* @__PURE__ */ i(ve, { size: 20 }) })
6587
6587
  ] }),
6588
6588
  /* @__PURE__ */ u(x, { children: [
6589
- a.map((h, m) => /* @__PURE__ */ i(L, { type: r, value: h, onChange: (f) => {
6589
+ a.map((h, m) => /* @__PURE__ */ i($, { type: r, value: h, onChange: (f) => {
6590
6590
  const w = f.currentTarget.value;
6591
6591
  s((v) => (v.splice(m, 1, w), [...v]));
6592
6592
  }, rightSection: /* @__PURE__ */ i(U, { onClick: () => c(m), color: "red", children: /* @__PURE__ */ i(be, { size: 14 }) }), sx: {
@@ -6625,7 +6625,7 @@ const Rb = R.forwardRef(Eb), ed = R.forwardRef(function({
6625
6625
  };
6626
6626
  return /* @__PURE__ */ u(j, { children: [
6627
6627
  /* @__PURE__ */ i(A, { my: "xs", label: "Typography", labelPosition: "center" }),
6628
- /* @__PURE__ */ i(S, { children: /* @__PURE__ */ i(L, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
6628
+ /* @__PURE__ */ i(S, { children: /* @__PURE__ */ i($, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
6629
6629
  flex: 1
6630
6630
  }, value: t.size, onChange: (l) => a("size", l.currentTarget.value) }) }),
6631
6631
  /* @__PURE__ */ i(x, { position: "apart", grow: !0, sx: {
@@ -6646,7 +6646,7 @@ const Rb = R.forwardRef(Eb), ed = R.forwardRef(function({
6646
6646
  o === "static" && /* @__PURE__ */ i(at, { value: t.color.staticColor, onChange: (l) => a("color.staticColor", l) }),
6647
6647
  o === "continuous" && /* @__PURE__ */ u(j, { children: [
6648
6648
  /* @__PURE__ */ i(Rb, { label: "Value Range", value: t.color.valueRange, type: "number", onChange: (l) => a("color.valueRange", l) }),
6649
- /* @__PURE__ */ i($b, { label: "Color Range", value: t.color.colorRange, onChange: (l) => a("color.colorRange", l) })
6649
+ /* @__PURE__ */ i(Lb, { label: "Color Range", value: t.color.colorRange, onChange: (l) => a("color.colorRange", l) })
6650
6650
  ] })
6651
6651
  ] })
6652
6652
  ] });
@@ -6664,7 +6664,7 @@ R.forwardRef(function({
6664
6664
  /* @__PURE__ */ i(C, { weight: "bold", pb: 0, children: t.name }),
6665
6665
  /* @__PURE__ */ i(A, { my: "xs", label: "Data", labelPosition: "center" }),
6666
6666
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
6667
- /* @__PURE__ */ i(L, { label: "Name", required: !0, value: t.name, onChange: (s) => a("name", s.currentTarget.value) }),
6667
+ /* @__PURE__ */ i($, { label: "Name", required: !0, value: t.name, onChange: (s) => a("name", s.currentTarget.value) }),
6668
6668
  /* @__PURE__ */ i(J, { label: "Data Field", required: !0, value: t.data_field, onChange: (s) => a("data_field", s) })
6669
6669
  ] }),
6670
6670
  /* @__PURE__ */ i(wi, { label: "Aggregation", value: t.aggregation, onChange: (s) => a("aggregation", s) }),
@@ -6694,7 +6694,7 @@ function an({
6694
6694
  }, n) {
6695
6695
  return vi(n, e, t);
6696
6696
  }
6697
- function Lt({
6697
+ function $t({
6698
6698
  formatter: e,
6699
6699
  aggregation: t
6700
6700
  }, n) {
@@ -6728,7 +6728,7 @@ function td(e, t) {
6728
6728
  aggregation: o,
6729
6729
  size: a,
6730
6730
  weight: s
6731
- } = e, l = vi(t, r, o), c = Lt(e, l);
6731
+ } = e, l = vi(t, r, o), c = $t(e, l);
6732
6732
  return /* @__PURE__ */ i(C, { sx: {
6733
6733
  fontSize: a,
6734
6734
  display: "inline"
@@ -6782,7 +6782,7 @@ function qb(e, t) {
6782
6782
  data_field: a,
6783
6783
  aggregation: s
6784
6784
  } = r, l = vi(t, a, s);
6785
- n[o] = Lt(r, l);
6785
+ n[o] = $t(r, l);
6786
6786
  }), n;
6787
6787
  }
6788
6788
  function _i(e, t, n) {
@@ -6801,7 +6801,7 @@ function _i(e, t, n) {
6801
6801
  function Wb(e, t, n) {
6802
6802
  const r = t.reduce((o, a) => {
6803
6803
  const s = an(a, n);
6804
- return o[a.name] = Lt(a, s), o;
6804
+ return o[a.name] = $t(a, s), o;
6805
6805
  }, {});
6806
6806
  return e.map((o) => ({
6807
6807
  name: "refs",
@@ -6842,11 +6842,11 @@ function Gb({
6842
6842
  x_axis: r,
6843
6843
  y_axis: o,
6844
6844
  reference_lines: a
6845
- } = e, s = zf(e, t), l = Nt(r.axisLabel.overflow.on_axis), c = Lf(e);
6845
+ } = e, s = zf(e, t), l = Nt(r.axisLabel.overflow.on_axis), c = $f(e);
6846
6846
  return {
6847
6847
  grid: jb(e),
6848
6848
  dataset: s,
6849
- legend: $f({
6849
+ legend: Lf({
6850
6850
  config: e
6851
6851
  }),
6852
6852
  tooltip: Pf({
@@ -6901,7 +6901,7 @@ function Hb({
6901
6901
  } = e, o = e.data, {
6902
6902
  width: a,
6903
6903
  height: s
6904
- } = e.viewport, l = Pe({}, n, ba), c = $t({
6904
+ } = e.viewport, l = Pe({}, n, ba), c = Lt({
6905
6905
  vizManager: e.vizManager,
6906
6906
  instance: t
6907
6907
  }), d = zt(c.triggerManager, zc.id), p = Fn(o, l.x_axis.data_key), h = nt((w) => {
@@ -6936,7 +6936,7 @@ function Yb({
6936
6936
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
6937
6937
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
6938
6938
  field: o
6939
- }) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
6939
+ }) => /* @__PURE__ */ i($, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
6940
6940
  flex: 1
6941
6941
  }, ...o }) }),
6942
6942
  /* @__PURE__ */ i(
@@ -6954,7 +6954,7 @@ function Yb({
6954
6954
  ] }),
6955
6955
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
6956
6956
  field: o
6957
- }) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", required: !0, sx: {
6957
+ }) => /* @__PURE__ */ i($, { label: "Content Template", placeholder: "Average: ${avg}", required: !0, sx: {
6958
6958
  flex: 1
6959
6959
  }, ...o }) }),
6960
6960
  /* @__PURE__ */ i(U, { color: "red", variant: "subtle", onClick: () => n(t), sx: {
@@ -6973,7 +6973,7 @@ function Qb({
6973
6973
  fields: r,
6974
6974
  append: o,
6975
6975
  remove: a
6976
- } = Ae({
6976
+ } = $e({
6977
6977
  control: e,
6978
6978
  name: "reference_lines"
6979
6979
  }), s = t("reference_lines"), l = r.map((p, h) => ({
@@ -7067,7 +7067,7 @@ const Ub = ({
7067
7067
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
7068
7068
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
7069
7069
  field: n
7070
- }) => /* @__PURE__ */ i(L, { label: "X Axis Name", sx: {
7070
+ }) => /* @__PURE__ */ i($, { label: "X Axis Name", sx: {
7071
7071
  flex: 1
7072
7072
  }, ...n }) }),
7073
7073
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
@@ -7106,7 +7106,7 @@ const Ub = ({
7106
7106
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
7107
7107
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
7108
7108
  field: n
7109
- }) => /* @__PURE__ */ i(L, { label: "Y Axis Name", sx: {
7109
+ }) => /* @__PURE__ */ i($, { label: "Y Axis Name", sx: {
7110
7110
  flex: 1
7111
7111
  }, ...n }) }),
7112
7112
  /* @__PURE__ */ i(y, { name: "y_axis.data_key", control: e, render: ({
@@ -7129,7 +7129,7 @@ const Ub = ({
7129
7129
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
7130
7130
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
7131
7131
  field: r
7132
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
7132
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
7133
7133
  flex: 1
7134
7134
  }, ...r }) }),
7135
7135
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -7151,7 +7151,7 @@ const Ub = ({
7151
7151
  fields: n,
7152
7152
  append: r,
7153
7153
  remove: o
7154
- } = Ae({
7154
+ } = $e({
7155
7155
  control: e,
7156
7156
  name: "tooltip.metrics"
7157
7157
  }), a = t("tooltip.metrics"), s = n.map((h, m) => ({
@@ -7242,7 +7242,7 @@ function ry({
7242
7242
  watch: l,
7243
7243
  getValues: c,
7244
7244
  reset: d
7245
- } = Re({
7245
+ } = Ee({
7246
7246
  defaultValues: o
7247
7247
  });
7248
7248
  W(() => {
@@ -7418,7 +7418,7 @@ function uy(e) {
7418
7418
  };
7419
7419
  return k.defaultsDeep(t, e);
7420
7420
  }
7421
- class hy extends Oe {
7421
+ class hy extends Re {
7422
7422
  constructor() {
7423
7423
  super(...arguments);
7424
7424
  H(this, "VERSION", 9);
@@ -7553,7 +7553,7 @@ const Da = {
7553
7553
  context: e,
7554
7554
  instance: t
7555
7555
  }) => {
7556
- const n = $t({
7556
+ const n = Lt({
7557
7557
  vizManager: e.vizManager,
7558
7558
  instance: t
7559
7559
  }), r = zt(n.triggerManager, nd.id), o = Ue(), {
@@ -7571,7 +7571,7 @@ const Da = {
7571
7571
  n.runInteraction(v.id, {});
7572
7572
  });
7573
7573
  };
7574
- return /* @__PURE__ */ i(Ln, { sx: {
7574
+ return /* @__PURE__ */ i($n, { sx: {
7575
7575
  width: h,
7576
7576
  height: m,
7577
7577
  justifyContent: gy[c],
@@ -7658,7 +7658,7 @@ function ky({
7658
7658
  watch: l,
7659
7659
  getValues: c,
7660
7660
  reset: d
7661
- } = Re({
7661
+ } = Ee({
7662
7662
  defaultValues: o
7663
7663
  });
7664
7664
  W(() => {
@@ -7676,7 +7676,7 @@ function ky({
7676
7676
  /* @__PURE__ */ u(S, { children: [
7677
7677
  /* @__PURE__ */ i(y, { control: a, name: "content", render: ({
7678
7678
  field: m
7679
- }) => /* @__PURE__ */ i(L, { label: "Content Template", description: "Filter values & context entries are supported", ...m, required: !0 }) }),
7679
+ }) => /* @__PURE__ */ i($, { label: "Content Template", description: "Filter values & context entries are supported", ...m, required: !0 }) }),
7680
7680
  /* @__PURE__ */ i(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
7681
7681
  /* @__PURE__ */ u(pn, { cols: 2, children: [
7682
7682
  /* @__PURE__ */ i(
@@ -7726,7 +7726,7 @@ function ky({
7726
7726
  ] })
7727
7727
  ] });
7728
7728
  }
7729
- class Ty extends Oe {
7729
+ class Ty extends Re {
7730
7730
  constructor() {
7731
7731
  super(...arguments);
7732
7732
  H(this, "VERSION", 2);
@@ -7880,14 +7880,14 @@ function zy(e) {
7880
7880
  containLabel: !0
7881
7881
  };
7882
7882
  }
7883
- function $y(e) {
7883
+ function Ly(e) {
7884
7884
  return e !== "line" ? {} : {
7885
7885
  itemStyle: {
7886
7886
  opacity: 0
7887
7887
  }
7888
7888
  };
7889
7889
  }
7890
- function Ly(e) {
7890
+ function $y(e) {
7891
7891
  switch (e) {
7892
7892
  case "line":
7893
7893
  return;
@@ -7909,8 +7909,8 @@ function Ay(e) {
7909
7909
  type: r
7910
7910
  }) => ({
7911
7911
  name: n,
7912
- icon: Ly(r),
7913
- ...$y(r)
7912
+ icon: $y(r),
7913
+ ...Ly(r)
7914
7914
  })), t;
7915
7915
  }
7916
7916
  function Si(e, t) {
@@ -8059,12 +8059,12 @@ function Py({
8059
8059
  }
8060
8060
  };
8061
8061
  }
8062
- function $a(e, t, n) {
8062
+ function La(e, t, n) {
8063
8063
  const r = tn(e, t), o = tn(e, n);
8064
8064
  return k.zip(r, o);
8065
8065
  }
8066
8066
  function Vy(e, t, n, r) {
8067
- const o = $a(t, n, r);
8067
+ const o = La(t, n, r);
8068
8068
  return k.unionBy(o, e, 0);
8069
8069
  }
8070
8070
  function Ny({
@@ -8092,7 +8092,7 @@ function By({
8092
8092
  y_axis_data_key: o,
8093
8093
  valueTypedXAxis: a
8094
8094
  });
8095
- const s = $a(t, r, o), l = k.groupBy(s, "0");
8095
+ const s = La(t, r, o), l = k.groupBy(s, "0");
8096
8096
  return e.map(([d]) => {
8097
8097
  const h = l[d].map((f) => f[1]), m = Ta(h, n);
8098
8098
  return [d, m];
@@ -8109,7 +8109,7 @@ function qy({
8109
8109
  columnKey: a
8110
8110
  } = q(e), s = k.groupBy(t[o], a);
8111
8111
  return Object.entries(s).forEach(([l, c]) => {
8112
- s[l] = $a({
8112
+ s[l] = La({
8113
8113
  [o]: c
8114
8114
  }, n, r);
8115
8115
  }), s;
@@ -8131,7 +8131,7 @@ function Wy({
8131
8131
  hide_in_legend: m,
8132
8132
  ...f
8133
8133
  }, w, v, T, M) {
8134
- const $ = t.type !== "category", B = {
8134
+ const L = t.type !== "category", B = {
8135
8135
  label: {
8136
8136
  show: !!o,
8137
8137
  position: o,
@@ -8161,7 +8161,7 @@ function Wy({
8161
8161
  aggregation_on_value: l,
8162
8162
  x_axis_data_key: e,
8163
8163
  y_axis_data_key: n,
8164
- valueTypedXAxis: $
8164
+ valueTypedXAxis: L
8165
8165
  }), B;
8166
8166
  const K = qy({
8167
8167
  group_by_key: s,
@@ -8253,7 +8253,7 @@ function rd(e, t) {
8253
8253
  const n = {};
8254
8254
  return t.map((r) => {
8255
8255
  const o = an(r, e);
8256
- n[r.name] = Lt(r, o);
8256
+ n[r.name] = $t(r, o);
8257
8257
  }), n;
8258
8258
  }
8259
8259
  function Qy(e, t) {
@@ -8407,7 +8407,7 @@ function ex({
8407
8407
  context: e,
8408
8408
  instance: t
8409
8409
  }) {
8410
- const n = $t({
8410
+ const n = Lt({
8411
8411
  vizManager: e.vizManager,
8412
8412
  instance: t
8413
8413
  }), {
@@ -8444,7 +8444,7 @@ function ex({
8444
8444
  }, children: Object.values(f.bottom).map((T, M) => /* @__PURE__ */ i(R.Fragment, { children: T }, M)) })
8445
8445
  ] });
8446
8446
  }
8447
- const La = we(({
8447
+ const $a = we(({
8448
8448
  value: e,
8449
8449
  onChange: t
8450
8450
  }, n) => {
@@ -8493,12 +8493,12 @@ function rx({
8493
8493
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
8494
8494
  /* @__PURE__ */ i(y, { name: `reference_areas.${t}.name`, control: e, render: ({
8495
8495
  field: o
8496
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
8496
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
8497
8497
  flex: 1
8498
8498
  }, ...o }) }),
8499
8499
  /* @__PURE__ */ i(y, { name: `reference_areas.${t}.color`, control: e, render: ({
8500
8500
  field: o
8501
- }) => /* @__PURE__ */ i(L, { label: "Color", required: !0, sx: {
8501
+ }) => /* @__PURE__ */ i($, { label: "Color", required: !0, sx: {
8502
8502
  flex: 1
8503
8503
  }, ...o }) })
8504
8504
  ] }),
@@ -8554,7 +8554,7 @@ function ix({
8554
8554
  fields: r,
8555
8555
  append: o,
8556
8556
  remove: a
8557
- } = Ae({
8557
+ } = $e({
8558
8558
  control: e,
8559
8559
  name: "reference_areas"
8560
8560
  }), s = t("reference_areas"), l = r.map((p, h) => ({
@@ -8620,7 +8620,7 @@ function sx({
8620
8620
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
8621
8621
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
8622
8622
  field: l
8623
- }) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
8623
+ }) => /* @__PURE__ */ i($, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
8624
8624
  flex: 1
8625
8625
  }, ...l }) }),
8626
8626
  /* @__PURE__ */ i(
@@ -8638,7 +8638,7 @@ function sx({
8638
8638
  ] }),
8639
8639
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
8640
8640
  field: l
8641
- }) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
8641
+ }) => /* @__PURE__ */ i($, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
8642
8642
  flex: 1
8643
8643
  }, ...l }) }),
8644
8644
  /* @__PURE__ */ u(x, { grow: !0, children: [
@@ -8721,7 +8721,7 @@ function lx({
8721
8721
  fields: r,
8722
8722
  append: o,
8723
8723
  remove: a
8724
- } = Ae({
8724
+ } = $e({
8725
8725
  control: e,
8726
8726
  name: "reference_lines"
8727
8727
  }), s = t("reference_lines"), l = r.map((m, f) => ({
@@ -8802,7 +8802,7 @@ function ux({
8802
8802
  /* @__PURE__ */ u(x, { grow: !0, children: [
8803
8803
  /* @__PURE__ */ i(y, { name: `regressions.${n}.name`, control: e, render: ({
8804
8804
  field: s
8805
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
8805
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
8806
8806
  flex: 1
8807
8807
  }, ...s }) }),
8808
8808
  /* @__PURE__ */ i(y, { name: `regressions.${n}.group_by_key`, control: e, render: ({
@@ -8906,7 +8906,7 @@ function hx({
8906
8906
  fields: n,
8907
8907
  append: r,
8908
8908
  remove: o
8909
- } = Ae({
8909
+ } = $e({
8910
8910
  control: e,
8911
8911
  name: "regressions"
8912
8912
  }), a = t("regressions"), s = n.map((p, h) => ({
@@ -8983,7 +8983,7 @@ function mx({
8983
8983
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
8984
8984
  /* @__PURE__ */ i(y, { name: `series.${t}.stack`, control: e, render: ({
8985
8985
  field: o
8986
- }) => /* @__PURE__ */ i(L, { label: "Stack", placeholder: "Stack bars by this ID", sx: {
8986
+ }) => /* @__PURE__ */ i($, { label: "Stack", placeholder: "Stack bars by this ID", sx: {
8987
8987
  flexGrow: 1
8988
8988
  }, ...o }) }),
8989
8989
  /* @__PURE__ */ i(
@@ -9002,17 +9002,17 @@ function mx({
9002
9002
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
9003
9003
  /* @__PURE__ */ i(y, { name: `series.${t}.barMinWidth`, control: e, render: ({
9004
9004
  field: o
9005
- }) => /* @__PURE__ */ i(L, { label: "Bar Width(Min)", disabled: r, sx: {
9005
+ }) => /* @__PURE__ */ i($, { label: "Bar Width(Min)", disabled: r, sx: {
9006
9006
  flexGrow: 1
9007
9007
  }, ...o }) }),
9008
9008
  /* @__PURE__ */ i(y, { name: `series.${t}.barWidth`, control: e, render: ({
9009
9009
  field: o
9010
- }) => /* @__PURE__ */ i(L, { label: "Bar Width", sx: {
9010
+ }) => /* @__PURE__ */ i($, { label: "Bar Width", sx: {
9011
9011
  flexGrow: 1
9012
9012
  }, ...o }) }),
9013
9013
  /* @__PURE__ */ i(y, { name: `series.${t}.barMaxWidth`, control: e, render: ({
9014
9014
  field: o
9015
- }) => /* @__PURE__ */ i(L, { label: "Bar Width(Max)", disabled: r, sx: {
9015
+ }) => /* @__PURE__ */ i($, { label: "Bar Width(Max)", disabled: r, sx: {
9016
9016
  flexGrow: 1
9017
9017
  }, ...o }) })
9018
9018
  ] })
@@ -9282,7 +9282,7 @@ function kx({
9282
9282
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
9283
9283
  /* @__PURE__ */ i(y, { name: `series.${t}.name`, control: e, render: ({
9284
9284
  field: s
9285
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
9285
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
9286
9286
  flex: 1
9287
9287
  }, ...s }) }),
9288
9288
  /* @__PURE__ */ i(y, { name: `series.${t}.yAxisIndex`, control: e, render: ({
@@ -9355,7 +9355,7 @@ function Tx({
9355
9355
  fields: n,
9356
9356
  append: r,
9357
9357
  remove: o
9358
- } = Ae({
9358
+ } = $e({
9359
9359
  control: e,
9360
9360
  name: "series"
9361
9361
  }), a = t("series"), s = n.map((p, h) => ({
@@ -9461,7 +9461,7 @@ function zx({
9461
9461
  return t(["x_axis_data_key", "x_axis_name", "x_axis"]), /* @__PURE__ */ u(S, { children: [
9462
9462
  /* @__PURE__ */ i(y, { name: "x_axis_name", control: e, render: ({
9463
9463
  field: n
9464
- }) => /* @__PURE__ */ i(L, { label: "X Axis Name", sx: {
9464
+ }) => /* @__PURE__ */ i($, { label: "X Axis Name", sx: {
9465
9465
  flex: 1
9466
9466
  }, ...n }) }),
9467
9467
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
@@ -9504,7 +9504,7 @@ function zx({
9504
9504
  }) => /* @__PURE__ */ i(Qt, { ...n }) })
9505
9505
  ] });
9506
9506
  }
9507
- const $x = [{
9507
+ const Lx = [{
9508
9508
  label: "left",
9509
9509
  value: "left"
9510
9510
  }, {
@@ -9513,7 +9513,7 @@ const $x = [{
9513
9513
  }, {
9514
9514
  label: "right",
9515
9515
  value: "right"
9516
- }], Lx = [{
9516
+ }], $x = [{
9517
9517
  label: "left",
9518
9518
  value: "left"
9519
9519
  }, {
@@ -9532,14 +9532,14 @@ function Ax({
9532
9532
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
9533
9533
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.name`, control: e, render: ({
9534
9534
  field: r
9535
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
9535
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
9536
9536
  flex: 1
9537
9537
  }, ...r }) }),
9538
9538
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
9539
9539
  field: r
9540
9540
  }) => (
9541
9541
  // @ts-expect-error type of onChange
9542
- /* @__PURE__ */ i(F, { label: "Name Anchor", required: !0, data: $x, sx: {
9542
+ /* @__PURE__ */ i(F, { label: "Name Anchor", required: !0, data: Lx, sx: {
9543
9543
  flex: 1
9544
9544
  }, ...r })
9545
9545
  ) })
@@ -9549,7 +9549,7 @@ function Ax({
9549
9549
  field: r
9550
9550
  }) => (
9551
9551
  // @ts-expect-error type of onChange
9552
- /* @__PURE__ */ i(F, { label: "Position", required: !0, data: Lx, sx: {
9552
+ /* @__PURE__ */ i(F, { label: "Position", required: !0, data: $x, sx: {
9553
9553
  flex: 1
9554
9554
  }, ...r })
9555
9555
  ) }) }),
@@ -9564,10 +9564,10 @@ function Ax({
9564
9564
  /* @__PURE__ */ u(x, { grow: !0, children: [
9565
9565
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.min`, control: e, render: ({
9566
9566
  field: r
9567
- }) => /* @__PURE__ */ i(L, { label: "Min", ...r }) }),
9567
+ }) => /* @__PURE__ */ i($, { label: "Min", ...r }) }),
9568
9568
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.max`, control: e, render: ({
9569
9569
  field: r
9570
- }) => /* @__PURE__ */ i(L, { label: "Max", ...r }) })
9570
+ }) => /* @__PURE__ */ i($, { label: "Max", ...r }) })
9571
9571
  ] })
9572
9572
  ] }),
9573
9573
  /* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
@@ -9585,7 +9585,7 @@ function Ex({
9585
9585
  fields: n,
9586
9586
  append: r,
9587
9587
  remove: o
9588
- } = Ae({
9588
+ } = $e({
9589
9589
  control: e,
9590
9590
  name: "y_axes"
9591
9591
  }), a = t("y_axes"), s = n.map((c, d) => ({
@@ -9630,7 +9630,7 @@ function Rx({
9630
9630
  watch: l,
9631
9631
  getValues: c,
9632
9632
  reset: d
9633
- } = Re({
9633
+ } = Ee({
9634
9634
  defaultValues: o
9635
9635
  });
9636
9636
  W(() => {
@@ -9674,7 +9674,7 @@ function Rx({
9674
9674
  /* @__PURE__ */ i(g.Panel, { value: "Reference Areas", children: /* @__PURE__ */ i(ix, { variables: r, control: a, watch: l }) }),
9675
9675
  /* @__PURE__ */ i(g.Panel, { value: "Zooming", children: /* @__PURE__ */ i(y, { name: "dataZoom", control: a, render: ({
9676
9676
  field: m
9677
- }) => /* @__PURE__ */ i(La, { ...m }) }) })
9677
+ }) => /* @__PURE__ */ i($a, { ...m }) }) })
9678
9678
  ] })
9679
9679
  ] }) });
9680
9680
  }
@@ -9991,7 +9991,7 @@ function Jx(e, {
9991
9991
  throw console.error("[Migration failed]", n), n;
9992
9992
  }
9993
9993
  }
9994
- class Zx extends Oe {
9994
+ class Zx extends Re {
9995
9995
  constructor() {
9996
9996
  super(...arguments);
9997
9997
  H(this, "VERSION", 18);
@@ -10384,7 +10384,7 @@ const hv = [{
10384
10384
  return /* @__PURE__ */ u(S, { children: [
10385
10385
  /* @__PURE__ */ i(x, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `series.${n}.name`, control: t, render: ({
10386
10386
  field: l
10387
- }) => /* @__PURE__ */ i(L, { label: "Series Name", ...l }) }) }),
10387
+ }) => /* @__PURE__ */ i($, { label: "Series Name", ...l }) }) }),
10388
10388
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
10389
10389
  /* @__PURE__ */ i(y, { name: `series.${n}.level_name_data_key`, control: t, render: ({
10390
10390
  field: l
@@ -10412,7 +10412,7 @@ const hv = [{
10412
10412
  ) }),
10413
10413
  /* @__PURE__ */ i(y, { name: `series.${n}.min.size`, control: t, render: ({
10414
10414
  field: l
10415
- }) => /* @__PURE__ */ i(L, { placeholder: "0%", label: "Min Size", ...l }) })
10415
+ }) => /* @__PURE__ */ i($, { placeholder: "0%", label: "Min Size", ...l }) })
10416
10416
  ] }),
10417
10417
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
10418
10418
  /* @__PURE__ */ i(y, { name: `series.${n}.max.value`, control: t, render: ({
@@ -10432,7 +10432,7 @@ const hv = [{
10432
10432
  ) }),
10433
10433
  /* @__PURE__ */ i(y, { name: `series.${n}.max.size`, control: t, render: ({
10434
10434
  field: l
10435
- }) => /* @__PURE__ */ i(L, { placeholder: "100%", label: "Max Size", ...l }) })
10435
+ }) => /* @__PURE__ */ i($, { placeholder: "100%", label: "Max Size", ...l }) })
10436
10436
  ] }),
10437
10437
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
10438
10438
  /* @__PURE__ */ i(
@@ -10493,7 +10493,7 @@ const hv = [{
10493
10493
  fields: n,
10494
10494
  append: r,
10495
10495
  remove: o
10496
- } = Ae({
10496
+ } = $e({
10497
10497
  control: e,
10498
10498
  name: "series"
10499
10499
  }), a = t("series"), s = n.map((p, h) => ({
@@ -10510,7 +10510,7 @@ const hv = [{
10510
10510
  }, children: [
10511
10511
  /* @__PURE__ */ u(g.List, { children: [
10512
10512
  s.map((p, h) => /* @__PURE__ */ i(g.Tab, { value: p.id, children: p.name }, p.id)),
10513
- /* @__PURE__ */ i(g.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ i(Be, { label: "TODO", children: /* @__PURE__ */ i(Ln, { children: /* @__PURE__ */ i(Ht, { size: 18, color: "#228be6" }) }) }) })
10513
+ /* @__PURE__ */ i(g.Tab, { value: "add", disabled: !0, children: /* @__PURE__ */ i(Be, { label: "TODO", children: /* @__PURE__ */ i($n, { children: /* @__PURE__ */ i(Ht, { size: 18, color: "#228be6" }) }) }) })
10514
10514
  ] }),
10515
10515
  s.map((p, h) => /* @__PURE__ */ i(g.Panel, { value: p.id, children: /* @__PURE__ */ i(bv, { item: p, control: e, index: h, remove: o }) }, p.id))
10516
10516
  ] });
@@ -10527,7 +10527,7 @@ function xv({
10527
10527
  watch: s,
10528
10528
  getValues: l,
10529
10529
  reset: c
10530
- } = Re({
10530
+ } = Ee({
10531
10531
  defaultValues: r
10532
10532
  });
10533
10533
  W(() => {
@@ -10594,7 +10594,7 @@ function wv(e, {
10594
10594
  throw console.error("[Migration failed]", n), n;
10595
10595
  }
10596
10596
  }
10597
- class _v extends Oe {
10597
+ class _v extends Re {
10598
10598
  constructor() {
10599
10599
  super(...arguments);
10600
10600
  H(this, "VERSION", 3);
@@ -10798,7 +10798,7 @@ function zv(e, t, n, r) {
10798
10798
  }
10799
10799
  };
10800
10800
  }
10801
- const $v = ({
10801
+ const Lv = ({
10802
10802
  value: e,
10803
10803
  onChange: t
10804
10804
  }) => /* @__PURE__ */ i(V, { children: /* @__PURE__ */ i(ct, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (r) => {
@@ -10817,7 +10817,7 @@ const $v = ({
10817
10817
  value: ["function getValue({ variables }, { lodash, interpolate }) {", " // your code goes here", " return 100;", "}"].join(`
10818
10818
  `)
10819
10819
  }
10820
- }, Lv = ({
10820
+ }, $v = ({
10821
10821
  value: e,
10822
10822
  onChange: t
10823
10823
  }) => {
@@ -10852,7 +10852,7 @@ const $v = ({
10852
10852
  }, children: "Setup" }) }),
10853
10853
  /* @__PURE__ */ i(De, { size: 800, title: "Setup dynamic value", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
10854
10854
  /* @__PURE__ */ i(A, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
10855
- /* @__PURE__ */ i($v, { value: a.value, onChange: d }),
10855
+ /* @__PURE__ */ i(Lv, { value: a.value, onChange: d }),
10856
10856
  /* @__PURE__ */ u(x, { position: "apart", children: [
10857
10857
  /* @__PURE__ */ i(I, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(Mt, { size: 20 }), children: "Reset" }),
10858
10858
  /* @__PURE__ */ u(x, { position: "right", children: [
@@ -10865,7 +10865,7 @@ const $v = ({
10865
10865
  }, Av = ({
10866
10866
  value: e,
10867
10867
  onChange: t
10868
- }) => e.type !== "dynamic" ? null : /* @__PURE__ */ i(Lv, { value: e, onChange: t }), Ev = ({
10868
+ }) => e.type !== "dynamic" ? null : /* @__PURE__ */ i($v, { value: e, onChange: t }), Ev = ({
10869
10869
  value: e,
10870
10870
  onChange: t
10871
10871
  }) => {
@@ -11019,8 +11019,8 @@ function Bv(e, t, n, r, o) {
11019
11019
  if (!e.x_axis.data_key || !e.y_axis.data_key || !e.heat_block.data_key)
11020
11020
  return {};
11021
11021
  const a = n.reduce((T, M) => {
11022
- const $ = an(M, t);
11023
- return T[M.name] = Lt(M, $), T;
11022
+ const L = an(M, t);
11023
+ return T[M.name] = $t(M, L), T;
11024
11024
  }, {}), s = Sv(e), l = kv(e), c = q(e.x_axis.data_key), d = q(e.y_axis.data_key), p = q(e.heat_block.data_key), h = k.uniq(t[c.queryID].map((T) => T[c.columnKey])), m = k.uniq(t[c.queryID].map((T) => T[d.columnKey])), f = t[c.queryID].map((T) => [k.get(T, c.columnKey), k.get(T, d.columnKey), k.get(T, p.columnKey)]), w = Nv(h.length, m.length, r, o), v = {
11025
11025
  xAxis: Fv(e, h, s.x_axis),
11026
11026
  yAxis: Pv(e, m, s.y_axis),
@@ -11146,7 +11146,7 @@ function Gv({
11146
11146
  context: e,
11147
11147
  instance: t
11148
11148
  }) {
11149
- const n = $t({
11149
+ const n = Lt({
11150
11150
  vizManager: e.vizManager,
11151
11151
  instance: t
11152
11152
  }), {
@@ -11174,7 +11174,7 @@ function Hv({
11174
11174
  }, ...r }) }),
11175
11175
  /* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
11176
11176
  field: r
11177
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
11177
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
11178
11178
  flex: 1
11179
11179
  }, ...r }) })
11180
11180
  ] }),
@@ -11214,7 +11214,7 @@ const Yv = ({
11214
11214
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
11215
11215
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
11216
11216
  field: r
11217
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
11217
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
11218
11218
  flex: 1
11219
11219
  }, ...r }) }),
11220
11220
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -11236,7 +11236,7 @@ const Yv = ({
11236
11236
  fields: n,
11237
11237
  append: r,
11238
11238
  remove: o
11239
- } = Ae({
11239
+ } = $e({
11240
11240
  control: e,
11241
11241
  name: "tooltip.metrics"
11242
11242
  }), a = t("tooltip.metrics"), s = n.map((h, m) => ({
@@ -11368,7 +11368,7 @@ function Jv({
11368
11368
  }, ...n }) }),
11369
11369
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
11370
11370
  field: n
11371
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
11371
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
11372
11372
  flex: 1
11373
11373
  }, ...n }) })
11374
11374
  ] }),
@@ -11422,7 +11422,7 @@ function e0({
11422
11422
  }, ...n }) }),
11423
11423
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
11424
11424
  field: n
11425
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
11425
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
11426
11426
  flex: 1
11427
11427
  }, ...n }) })
11428
11428
  ] }),
@@ -11475,7 +11475,7 @@ function t0({
11475
11475
  watch: l,
11476
11476
  getValues: c,
11477
11477
  reset: d
11478
- } = Re({
11478
+ } = Ee({
11479
11479
  defaultValues: o
11480
11480
  });
11481
11481
  W(() => {
@@ -11594,7 +11594,7 @@ function i0(e) {
11594
11594
  }
11595
11595
  };
11596
11596
  }
11597
- class o0 extends Oe {
11597
+ class o0 extends Re {
11598
11598
  constructor() {
11599
11599
  super(...arguments);
11600
11600
  H(this, "VERSION", 4);
@@ -11946,7 +11946,7 @@ function x0({
11946
11946
  } = Z(e.instanceData, "config"), r = e.data, {
11947
11947
  width: o,
11948
11948
  height: a
11949
- } = e.viewport, s = Pe({}, n, Fa), l = y0(s, r), c = $t({
11949
+ } = e.viewport, s = Pe({}, n, Fa), l = y0(s, r), c = Lt({
11950
11950
  vizManager: e.vizManager,
11951
11951
  instance: t
11952
11952
  }), d = zt(c.triggerManager, ld.id), p = Fn(r, s.x_axis.data_key), h = nt((f) => {
@@ -11982,7 +11982,7 @@ function w0({
11982
11982
  /* @__PURE__ */ u(x, { grow: !0, children: [
11983
11983
  /* @__PURE__ */ i(y, { name: "bar.name", control: e, render: ({
11984
11984
  field: n
11985
- }) => /* @__PURE__ */ i(L, { label: "Bar Name", sx: {
11985
+ }) => /* @__PURE__ */ i($, { label: "Bar Name", sx: {
11986
11986
  flex: 1
11987
11987
  }, ...n }) }),
11988
11988
  /* @__PURE__ */ i(y, { name: "bar.nameAlignment", control: e, render: ({
@@ -12026,7 +12026,7 @@ function C0({
12026
12026
  /* @__PURE__ */ u(x, { grow: !0, children: [
12027
12027
  /* @__PURE__ */ i(y, { name: "line.name", control: e, render: ({
12028
12028
  field: n
12029
- }) => /* @__PURE__ */ i(L, { label: "Line Name", sx: {
12029
+ }) => /* @__PURE__ */ i($, { label: "Line Name", sx: {
12030
12030
  flex: 1
12031
12031
  }, ...n }) }),
12032
12032
  /* @__PURE__ */ i(y, { name: "line.nameAlignment", control: e, render: ({
@@ -12110,7 +12110,7 @@ function D0({
12110
12110
  }, ...n }) }),
12111
12111
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
12112
12112
  field: n
12113
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
12113
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
12114
12114
  flex: 1
12115
12115
  }, ...n }) })
12116
12116
  ] }),
@@ -12161,7 +12161,7 @@ function M0({
12161
12161
  watch: s,
12162
12162
  getValues: l,
12163
12163
  reset: c
12164
- } = Re({
12164
+ } = Ee({
12165
12165
  defaultValues: r
12166
12166
  });
12167
12167
  W(() => {
@@ -12201,7 +12201,7 @@ function M0({
12201
12201
  /* @__PURE__ */ i(g.Panel, { value: "80-20 Line", children: /* @__PURE__ */ i(T0, { control: o, watch: s }) }),
12202
12202
  /* @__PURE__ */ i(g.Panel, { value: "Zooming", children: /* @__PURE__ */ i(y, { name: "dataZoom", control: o, render: ({
12203
12203
  field: h
12204
- }) => /* @__PURE__ */ i(La, { ...h }) }) })
12204
+ }) => /* @__PURE__ */ i($a, { ...h }) }) })
12205
12205
  ] })
12206
12206
  ] });
12207
12207
  }
@@ -12215,7 +12215,7 @@ function z0(e) {
12215
12215
  dataZoom: t
12216
12216
  };
12217
12217
  }
12218
- function $0(e) {
12218
+ function L0(e) {
12219
12219
  const {
12220
12220
  markLine: t = cd,
12221
12221
  ...n
@@ -12225,7 +12225,7 @@ function $0(e) {
12225
12225
  markLine: t
12226
12226
  };
12227
12227
  }
12228
- function L0(e) {
12228
+ function $0(e) {
12229
12229
  const t = k.defaultsDeep({}, e.x_axis.axisLabel, {
12230
12230
  rotate: 0,
12231
12231
  formatter: {
@@ -12325,7 +12325,7 @@ function F0(e, {
12325
12325
  throw console.error("[Migration failed]", n), n;
12326
12326
  }
12327
12327
  }
12328
- class P0 extends Oe {
12328
+ class P0 extends Re {
12329
12329
  constructor() {
12330
12330
  super(...arguments);
12331
12331
  H(this, "VERSION", 9);
@@ -12341,11 +12341,11 @@ class P0 extends Oe {
12341
12341
  })), this.version(3, (n) => ({
12342
12342
  ...n,
12343
12343
  version: 3,
12344
- config: $0(n.config)
12344
+ config: L0(n.config)
12345
12345
  })), this.version(4, (n) => ({
12346
12346
  ...n,
12347
12347
  version: 4,
12348
- config: L0(n.config)
12348
+ config: $0(n.config)
12349
12349
  })), this.version(5, (n) => ({
12350
12350
  ...n,
12351
12351
  version: 5,
@@ -12603,7 +12603,7 @@ function Y0({
12603
12603
  context: e,
12604
12604
  instance: t
12605
12605
  }) {
12606
- const n = $t({
12606
+ const n = Lt({
12607
12607
  vizManager: e.vizManager,
12608
12608
  instance: t
12609
12609
  }), {
@@ -12626,7 +12626,7 @@ function Q0({
12626
12626
  watch: l,
12627
12627
  getValues: c,
12628
12628
  reset: d
12629
- } = Re({
12629
+ } = Ee({
12630
12630
  defaultValues: o
12631
12631
  });
12632
12632
  W(() => {
@@ -12688,7 +12688,7 @@ function K0(e, {
12688
12688
  throw console.error("[Migration failed]", n), n;
12689
12689
  }
12690
12690
  }
12691
- class X0 extends Oe {
12691
+ class X0 extends Re {
12692
12692
  constructor() {
12693
12693
  super(...arguments);
12694
12694
  H(this, "VERSION", 3);
@@ -12971,10 +12971,10 @@ function cw({
12971
12971
  queryID: h,
12972
12972
  columnKey: m
12973
12973
  } = q(e.series_name_key), f = k.keyBy(t[h], m), w = e.additional_series.reduce((v, T) => {
12974
- const M = q(T.name_key), $ = k.keyBy(t[M.queryID], M.columnKey);
12974
+ const M = q(T.name_key), L = k.keyBy(t[M.queryID], M.columnKey);
12975
12975
  return {
12976
12976
  ...v,
12977
- ...$
12977
+ ...L
12978
12978
  };
12979
12979
  }, f);
12980
12980
  return {
@@ -13003,7 +13003,7 @@ function dw({
13003
13003
  context: e,
13004
13004
  instance: t
13005
13005
  }) {
13006
- const n = $t({
13006
+ const n = Lt({
13007
13007
  vizManager: e.vizManager,
13008
13008
  instance: t
13009
13009
  }), {
@@ -13046,7 +13046,7 @@ function hw({
13046
13046
  fields: n,
13047
13047
  append: r,
13048
13048
  remove: o
13049
- } = Ae({
13049
+ } = $e({
13050
13050
  control: e,
13051
13051
  name: "additional_series"
13052
13052
  }), a = t("additional_series"), s = n.map((m, f) => ({
@@ -13102,7 +13102,7 @@ function pw({
13102
13102
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, align: "top", children: [
13103
13103
  /* @__PURE__ */ i(y, { name: `dimensions.${t}.name`, control: e, render: ({
13104
13104
  field: r
13105
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
13105
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
13106
13106
  flex: 1
13107
13107
  }, ...r }) }),
13108
13108
  /* @__PURE__ */ i(y, { name: `dimensions.${t}.data_key`, control: e, render: ({
@@ -13120,7 +13120,7 @@ function pw({
13120
13120
  fieldState: o
13121
13121
  }) => {
13122
13122
  var a;
13123
- return /* @__PURE__ */ i(L, { label: "Max", required: !0, sx: {
13123
+ return /* @__PURE__ */ i($, { label: "Max", required: !0, sx: {
13124
13124
  flex: 1
13125
13125
  }, ...r, error: (a = o.error) == null ? void 0 : a.message });
13126
13126
  } })
@@ -13142,7 +13142,7 @@ function mw({
13142
13142
  fields: n,
13143
13143
  append: r,
13144
13144
  remove: o
13145
- } = Ae({
13145
+ } = $e({
13146
13146
  control: e,
13147
13147
  name: "dimensions"
13148
13148
  }), a = t("dimensions"), s = n.map((m, f) => ({
@@ -13195,7 +13195,7 @@ function fw({
13195
13195
  getValues: l,
13196
13196
  reset: c,
13197
13197
  formState: d
13198
- } = Re({
13198
+ } = Ee({
13199
13199
  defaultValues: r,
13200
13200
  mode: "all"
13201
13201
  });
@@ -13323,7 +13323,7 @@ function ww(e) {
13323
13323
  };
13324
13324
  return delete t.additionalSeries, t;
13325
13325
  }
13326
- class _w extends Oe {
13326
+ class _w extends Re {
13327
13327
  constructor() {
13328
13328
  super(...arguments);
13329
13329
  H(this, "VERSION", 7);
@@ -13568,7 +13568,7 @@ function zw(e) {
13568
13568
  }
13569
13569
  };
13570
13570
  }
13571
- const $w = {
13571
+ const Lw = {
13572
13572
  tooltip: {
13573
13573
  trigger: "axis"
13574
13574
  },
@@ -13587,7 +13587,7 @@ const $w = {
13587
13587
  yAxisIndex: [0]
13588
13588
  }]
13589
13589
  };
13590
- function Lw(e, t) {
13590
+ function $w(e, t) {
13591
13591
  const n = Dw(e, t), r = Sw(e, n), o = {
13592
13592
  xAxis: zw(e),
13593
13593
  yAxis: {
@@ -13616,7 +13616,7 @@ function Lw(e, t) {
13616
13616
  data: n.map((a) => a.name)
13617
13617
  }
13618
13618
  };
13619
- return Ie({}, o, $w);
13619
+ return Ie({}, o, Lw);
13620
13620
  }
13621
13621
  function Ti(e, t, n) {
13622
13622
  return 1 - (1 - e) * (t - 1) / (t - n - 1);
@@ -13878,7 +13878,7 @@ function qw({
13878
13878
  ...w,
13879
13879
  [m.columnKey]: Number(w[m.columnKey])
13880
13880
  });
13881
- }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => Lw(Ie({}, t, Va), o), [t, o]), s = si(null), l = (c) => {
13881
+ }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = z(() => $w(Ie({}, t, Va), o), [t, o]), s = si(null), l = (c) => {
13882
13882
  s.current = c;
13883
13883
  };
13884
13884
  return !n || !r || !t ? null : /* @__PURE__ */ u(mt, { width: n, height: r, children: [
@@ -13908,7 +13908,7 @@ function jw({
13908
13908
  return /* @__PURE__ */ u(S, { children: [
13909
13909
  /* @__PURE__ */ i(x, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: "regression.name", control: e, render: ({
13910
13910
  field: o
13911
- }) => /* @__PURE__ */ i(L, { label: "回归线名称", sx: {
13911
+ }) => /* @__PURE__ */ i($, { label: "回归线名称", sx: {
13912
13912
  flex: 1
13913
13913
  }, ...o }) }) }),
13914
13914
  /* @__PURE__ */ i(y, { name: "regression.group_by_key", control: e, render: ({
@@ -14028,7 +14028,7 @@ function Hw({
14028
14028
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
14029
14029
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
14030
14030
  field: n
14031
- }) => /* @__PURE__ */ i(L, { label: "X轴名称", sx: {
14031
+ }) => /* @__PURE__ */ i($, { label: "X轴名称", sx: {
14032
14032
  flex: 1
14033
14033
  }, ...n }) }),
14034
14034
  /* @__PURE__ */ i(y, { name: "x_axis.data_key", control: e, render: ({
@@ -14073,7 +14073,7 @@ function Yw({
14073
14073
  return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ i(S, { children: /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
14074
14074
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
14075
14075
  field: n
14076
- }) => /* @__PURE__ */ i(L, { label: "Y轴名称", sx: {
14076
+ }) => /* @__PURE__ */ i($, { label: "Y轴名称", sx: {
14077
14077
  flex: 1
14078
14078
  }, ...n }) }),
14079
14079
  /* @__PURE__ */ i(y, { name: "regression.y_axis_data_key", control: e, render: ({
@@ -14095,7 +14095,7 @@ function Qw({
14095
14095
  watch: s,
14096
14096
  getValues: l,
14097
14097
  reset: c
14098
- } = Re({
14098
+ } = Ee({
14099
14099
  defaultValues: r
14100
14100
  });
14101
14101
  W(() => {
@@ -14171,7 +14171,7 @@ function Kw(e, {
14171
14171
  throw console.error("[Migration failed]", n), n;
14172
14172
  }
14173
14173
  }
14174
- class Xw extends Oe {
14174
+ class Xw extends Re {
14175
14175
  constructor() {
14176
14176
  super(...arguments);
14177
14177
  H(this, "VERSION", 3);
@@ -14220,7 +14220,7 @@ function Zw(e, t) {
14220
14220
  data_field: a,
14221
14221
  aggregation: s
14222
14222
  } = r, l = vi(t, a, s);
14223
- n[o] = Lt(r, l);
14223
+ n[o] = $t(r, l);
14224
14224
  }), n;
14225
14225
  }
14226
14226
  function e_(e) {
@@ -14384,7 +14384,7 @@ function o_({
14384
14384
  handleSubmit: a,
14385
14385
  watch: s,
14386
14386
  reset: l
14387
- } = Re({
14387
+ } = Ee({
14388
14388
  defaultValues: r
14389
14389
  });
14390
14390
  s("content"), W(() => {
@@ -14421,7 +14421,7 @@ function o_({
14421
14421
  ) })
14422
14422
  ] }) });
14423
14423
  }
14424
- class a_ extends Oe {
14424
+ class a_ extends Re {
14425
14425
  constructor() {
14426
14426
  super(...arguments);
14427
14427
  H(this, "VERSION", 1);
@@ -14449,7 +14449,7 @@ const s_ = {
14449
14449
  config: Ze(Ii)
14450
14450
  };
14451
14451
  }
14452
- }, Lr = {
14452
+ }, $r = {
14453
14453
  static: {
14454
14454
  type: "static",
14455
14455
  color: li().css()
@@ -14511,7 +14511,7 @@ const vd = {
14511
14511
  type: "static",
14512
14512
  size: 10
14513
14513
  },
14514
- color: Lr.static,
14514
+ color: $r.static,
14515
14515
  label_position: "right",
14516
14516
  label_overflow: wd
14517
14517
  },
@@ -14639,7 +14639,7 @@ function f_({
14639
14639
  ...t
14640
14640
  }, n) {
14641
14641
  if (!e)
14642
- return Lr.static.color;
14642
+ return $r.static.color;
14643
14643
  if (e === "static") {
14644
14644
  const {
14645
14645
  color: o
@@ -14904,7 +14904,7 @@ const S_ = {
14904
14904
  function k_(e, t, n) {
14905
14905
  const r = n.reduce((c, d) => {
14906
14906
  const p = an(d, t);
14907
- return c[d.name] = Lt(d, p), c;
14907
+ return c[d.name] = $t(d, p), c;
14908
14908
  }, {}), o = e.y_axes.reduce((c, {
14909
14909
  label_formatter: d
14910
14910
  }, p) => (c[p] = function(m) {
@@ -14964,7 +14964,7 @@ function D_({
14964
14964
  context: e,
14965
14965
  instance: t
14966
14966
  }) {
14967
- const n = $t({
14967
+ const n = Lt({
14968
14968
  vizManager: e.vizManager,
14969
14969
  instance: t
14970
14970
  }), {
@@ -15015,7 +15015,7 @@ const I_ = we(({
15015
15015
  return /* @__PURE__ */ u(S, { children: [
15016
15016
  /* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Content", labelPosition: "right" }),
15017
15017
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
15018
- /* @__PURE__ */ i(L, { label: "Content Text", value: e.content.text, onChange: (l) => s("content.text", l.currentTarget.value) }),
15018
+ /* @__PURE__ */ i($, { label: "Content Text", value: e.content.text, onChange: (l) => s("content.text", l.currentTarget.value) }),
15019
15019
  /* @__PURE__ */ i(Ra, { label: "Text Position", value: e.label.position, onChange: (l) => s("label.position", l) })
15020
15020
  ] }),
15021
15021
  /* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Endpoints", labelPosition: "right" }),
@@ -15083,7 +15083,7 @@ function z_({
15083
15083
  fields: r,
15084
15084
  append: o,
15085
15085
  remove: a
15086
- } = Ae({
15086
+ } = $e({
15087
15087
  control: e,
15088
15088
  name: "reference_areas"
15089
15089
  }), s = t("reference_areas"), l = r.map((m, f) => ({
@@ -15123,7 +15123,7 @@ function z_({
15123
15123
  ] }) }) }, f))
15124
15124
  ] });
15125
15125
  }
15126
- const $_ = [{
15126
+ const L_ = [{
15127
15127
  label: "solid",
15128
15128
  value: "solid"
15129
15129
  }, {
@@ -15132,7 +15132,7 @@ const $_ = [{
15132
15132
  }, {
15133
15133
  label: "dotted",
15134
15134
  value: "dotted"
15135
- }], L_ = [{
15135
+ }], $_ = [{
15136
15136
  label: "Horizontal",
15137
15137
  value: "horizontal"
15138
15138
  }, {
@@ -15154,7 +15154,7 @@ function A_({
15154
15154
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
15155
15155
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
15156
15156
  field: l
15157
- }) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
15157
+ }) => /* @__PURE__ */ i($, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
15158
15158
  flex: 1
15159
15159
  }, ...l }) }),
15160
15160
  /* @__PURE__ */ i(
@@ -15172,7 +15172,7 @@ function A_({
15172
15172
  ] }),
15173
15173
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
15174
15174
  field: l
15175
- }) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
15175
+ }) => /* @__PURE__ */ i($, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
15176
15176
  flex: 1
15177
15177
  }, ...l }) }),
15178
15178
  /* @__PURE__ */ u(x, { grow: !0, children: [
@@ -15181,7 +15181,7 @@ function A_({
15181
15181
  field: l
15182
15182
  }) => (
15183
15183
  // @ts-expect-error type of onChange
15184
- /* @__PURE__ */ i(F, { label: "Orientation", data: L_, required: !0, sx: {
15184
+ /* @__PURE__ */ i(F, { label: "Orientation", data: $_, required: !0, sx: {
15185
15185
  flex: 1
15186
15186
  }, ...l })
15187
15187
  ) }),
@@ -15212,7 +15212,7 @@ function A_({
15212
15212
  control: e,
15213
15213
  render: ({
15214
15214
  field: l
15215
- }) => /* @__PURE__ */ i(F, { label: "Line Type", data: $_, sx: {
15215
+ }) => /* @__PURE__ */ i(F, { label: "Line Type", data: L_, sx: {
15216
15216
  flexGrow: 1
15217
15217
  }, ...l })
15218
15218
  }
@@ -15251,7 +15251,7 @@ function E_({
15251
15251
  fields: r,
15252
15252
  append: o,
15253
15253
  remove: a
15254
- } = Ae({
15254
+ } = $e({
15255
15255
  control: e,
15256
15256
  name: "reference_lines"
15257
15257
  }), s = t("reference_lines"), l = r.map((m, f) => ({
@@ -15331,7 +15331,7 @@ const R_ = ({
15331
15331
  func_content: h
15332
15332
  }));
15333
15333
  }, p = () => {
15334
- d(Lr.dynamic.func_content);
15334
+ d($r.dynamic.func_content);
15335
15335
  };
15336
15336
  return /* @__PURE__ */ u(j, { children: [
15337
15337
  /* @__PURE__ */ i(V, { sx: {
@@ -15380,7 +15380,7 @@ const R_ = ({
15380
15380
  }, r) => {
15381
15381
  const o = (a) => {
15382
15382
  n({
15383
- ...Lr[a]
15383
+ ...$r[a]
15384
15384
  });
15385
15385
  };
15386
15386
  return /* @__PURE__ */ u(pn, { cols: 2, children: [
@@ -15620,7 +15620,7 @@ const X_ = ({
15620
15620
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
15621
15621
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
15622
15622
  field: r
15623
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
15623
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
15624
15624
  flex: 1
15625
15625
  }, ...r }) }),
15626
15626
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -15642,7 +15642,7 @@ const X_ = ({
15642
15642
  fields: n,
15643
15643
  append: r,
15644
15644
  remove: o
15645
- } = Ae({
15645
+ } = $e({
15646
15646
  control: e,
15647
15647
  name: "tooltip.metrics"
15648
15648
  }), a = t("tooltip.metrics"), s = n.map((h, m) => ({
@@ -15790,7 +15790,7 @@ function rC({
15790
15790
  }, ...n }) }),
15791
15791
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
15792
15792
  field: n
15793
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
15793
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
15794
15794
  flex: 1
15795
15795
  }, ...n }) })
15796
15796
  ] }),
@@ -15844,7 +15844,7 @@ function aC({
15844
15844
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
15845
15845
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.name`, control: e, render: ({
15846
15846
  field: r
15847
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
15847
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
15848
15848
  flex: 1
15849
15849
  }, ...r }) }),
15850
15850
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
@@ -15876,10 +15876,10 @@ function aC({
15876
15876
  /* @__PURE__ */ u(x, { grow: !0, children: [
15877
15877
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.min`, control: e, render: ({
15878
15878
  field: r
15879
- }) => /* @__PURE__ */ i(L, { label: "Min", ...r }) }),
15879
+ }) => /* @__PURE__ */ i($, { label: "Min", ...r }) }),
15880
15880
  /* @__PURE__ */ i(y, { name: `y_axes.${t}.max`, control: e, render: ({
15881
15881
  field: r
15882
- }) => /* @__PURE__ */ i(L, { label: "Max", ...r }) })
15882
+ }) => /* @__PURE__ */ i($, { label: "Max", ...r }) })
15883
15883
  ] })
15884
15884
  ] }),
15885
15885
  /* @__PURE__ */ i(I, { mt: 20, leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => n(t), disabled: t === 0, children: "Delete this YAxis" })
@@ -15893,7 +15893,7 @@ function sC({
15893
15893
  fields: n,
15894
15894
  append: r,
15895
15895
  remove: o
15896
- } = Ae({
15896
+ } = $e({
15897
15897
  control: e,
15898
15898
  name: "y_axes"
15899
15899
  }), a = t("y_axes"), s = n.map((c, d) => ({
@@ -15961,7 +15961,7 @@ function dC({
15961
15961
  watch: c,
15962
15962
  getValues: d,
15963
15963
  reset: p
15964
- } = Re({
15964
+ } = Ee({
15965
15965
  defaultValues: a
15966
15966
  });
15967
15967
  W(() => {
@@ -16005,7 +16005,7 @@ function dC({
16005
16005
  /* @__PURE__ */ i(g.Panel, { value: "Reference Areas", children: /* @__PURE__ */ i(z_, { variables: r, control: s, watch: c }) }),
16006
16006
  /* @__PURE__ */ i(g.Panel, { value: "Zooming", children: /* @__PURE__ */ i(y, { name: "dataZoom", control: s, render: ({
16007
16007
  field: f
16008
- }) => /* @__PURE__ */ i(La, { ...f }) }) })
16008
+ }) => /* @__PURE__ */ i($a, { ...f }) }) })
16009
16009
  ] })
16010
16010
  ] }) });
16011
16011
  }
@@ -16036,7 +16036,7 @@ function pC(e) {
16036
16036
  scatter: {
16037
16037
  ...e.scatter,
16038
16038
  color: {
16039
- ...Lr.static,
16039
+ ...$r.static,
16040
16040
  color: t
16041
16041
  }
16042
16042
  }
@@ -16109,7 +16109,7 @@ function gC(e, {
16109
16109
  throw console.error("[Migration failed]", n), n;
16110
16110
  }
16111
16111
  }
16112
- class bC extends Oe {
16112
+ class bC extends Re {
16113
16113
  constructor() {
16114
16114
  super(...arguments);
16115
16115
  H(this, "VERSION", 9);
@@ -16257,7 +16257,7 @@ function _C(e) {
16257
16257
  const t = Ze(e), n = de(t, "color.valueRange");
16258
16258
  return n !== void 0 && ta(t, "color.valueRange", n.map((r) => Number(r))), t;
16259
16259
  }
16260
- class CC extends Oe {
16260
+ class CC extends Re {
16261
16261
  constructor() {
16262
16262
  super(...arguments);
16263
16263
  H(this, "VERSION", 2);
@@ -16320,7 +16320,7 @@ const SC = {
16320
16320
  return o;
16321
16321
  }
16322
16322
  }, [t.payloadForSQL, o]), p = z(() => Sr(d, r, e.data), [d, r, e.data, e]);
16323
- return /* @__PURE__ */ i(Ln, { sx: {
16323
+ return /* @__PURE__ */ i($n, { sx: {
16324
16324
  width: l,
16325
16325
  height: c,
16326
16326
  justifyContent: SC[a],
@@ -16357,7 +16357,7 @@ function MC({
16357
16357
  watch: s,
16358
16358
  getValues: l,
16359
16359
  reset: c
16360
- } = Re({
16360
+ } = Ee({
16361
16361
  defaultValues: r
16362
16362
  });
16363
16363
  R.useEffect(() => {
@@ -16420,7 +16420,7 @@ const zC = {
16420
16420
  group_key: "",
16421
16421
  levels: []
16422
16422
  };
16423
- function $C(e) {
16423
+ function LC(e) {
16424
16424
  const t = new Set(e.map((r) => r.parent_id)), n = new Set(e.map((r) => r.id));
16425
16425
  return t.forEach((r) => {
16426
16426
  r === null || n.has(r) || e.push({
@@ -16430,8 +16430,8 @@ function $C(e) {
16430
16430
  });
16431
16431
  }), e;
16432
16432
  }
16433
- function LC(e) {
16434
- const t = $C(e).map((o) => ({
16433
+ function $C(e) {
16434
+ const t = LC(e).map((o) => ({
16435
16435
  ...o,
16436
16436
  children: []
16437
16437
  })), n = k.keyBy(t, (o) => o.id), r = [];
@@ -16458,7 +16458,7 @@ function AC(e, t) {
16458
16458
  name: d[a.columnKey],
16459
16459
  value: d[s.columnKey] ? Number(d[s.columnKey]) : d[s.columnKey]
16460
16460
  }));
16461
- return o ? LC(c) : c;
16461
+ return o ? $C(c) : c;
16462
16462
  }
16463
16463
  const EC = (e) => ({
16464
16464
  treePathInfo: t,
@@ -16556,7 +16556,7 @@ const PC = {
16556
16556
  function VC(e, t, n) {
16557
16557
  n.reduce((a, s) => {
16558
16558
  const l = an(s, t);
16559
- return a[s.name] = Lt(s, l), a;
16559
+ return a[s.name] = $t(s, l), a;
16560
16560
  }, {});
16561
16561
  const o = {
16562
16562
  series: {
@@ -16623,10 +16623,10 @@ const qC = [{
16623
16623
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
16624
16624
  /* @__PURE__ */ i(y, { name: `levels.${t}.r0`, control: e, render: ({
16625
16625
  field: r
16626
- }) => /* @__PURE__ */ i(L, { label: "Inside Radius", placeholder: "0%", ...r }) }),
16626
+ }) => /* @__PURE__ */ i($, { label: "Inside Radius", placeholder: "0%", ...r }) }),
16627
16627
  /* @__PURE__ */ i(y, { name: `levels.${t}.r`, control: e, render: ({
16628
16628
  field: r
16629
- }) => /* @__PURE__ */ i(L, { label: "Outside Radius", placeholder: "50%", ...r }) })
16629
+ }) => /* @__PURE__ */ i($, { label: "Outside Radius", placeholder: "50%", ...r }) })
16630
16630
  ] }),
16631
16631
  /* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Label Style", labelPosition: "center" }),
16632
16632
  /* @__PURE__ */ i(y, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
@@ -16685,7 +16685,7 @@ const qC = [{
16685
16685
  fields: n,
16686
16686
  append: r,
16687
16687
  remove: o
16688
- } = Ae({
16688
+ } = $e({
16689
16689
  control: e,
16690
16690
  name: "levels"
16691
16691
  }), a = t("levels"), s = n.map((h, m) => ({
@@ -16744,7 +16744,7 @@ function HC({
16744
16744
  watch: l,
16745
16745
  getValues: c,
16746
16746
  reset: d
16747
- } = Re({
16747
+ } = Ee({
16748
16748
  defaultValues: o
16749
16749
  });
16750
16750
  W(() => {
@@ -16835,7 +16835,7 @@ function KC(e, {
16835
16835
  throw console.error("[Migration failed]", n), n;
16836
16836
  }
16837
16837
  }
16838
- class XC extends Oe {
16838
+ class XC extends Re {
16839
16839
  constructor() {
16840
16840
  super(...arguments);
16841
16841
  H(this, "VERSION", 5);
@@ -17188,7 +17188,7 @@ function b1(e) {
17188
17188
  }
17189
17189
  }
17190
17190
  const y1 = (e) => {
17191
- const t = $t(e), n = zt(t.triggerManager, ja.id), {
17191
+ const t = Lt(e), n = zt(t.triggerManager, ja.id), {
17192
17192
  colorManager: r
17193
17193
  } = nn(Ut);
17194
17194
  return nt((o) => new l1(e.getColIndex, o, n, t, r), [n, t, e.getColIndex]);
@@ -17201,7 +17201,7 @@ function x1({
17201
17201
  context: o,
17202
17202
  instance: a
17203
17203
  }) {
17204
- var Ee, Ke;
17204
+ var Ae, Ke;
17205
17205
  const {
17206
17206
  id_field: s,
17207
17207
  use_raw_columns: l,
@@ -17213,34 +17213,34 @@ function x1({
17213
17213
  } = o1(), m = z(() => {
17214
17214
  if (!s)
17215
17215
  return [];
17216
- const ze = q(s);
17217
- return e[ze.queryID];
17218
- }, [e, s]), f = R.useMemo(() => l ? !Array.isArray(m) || m.length === 0 ? [] : Object.keys(m[0]).map((ze) => ({
17219
- id: ze,
17220
- label: ze,
17221
- value_field: ze,
17216
+ const Me = q(s);
17217
+ return e[Me.queryID];
17218
+ }, [e, s]), f = R.useMemo(() => l ? !Array.isArray(m) || m.length === 0 ? [] : Object.keys(m[0]).map((Me) => ({
17219
+ id: Me,
17220
+ label: Me,
17221
+ value_field: Me,
17222
17222
  value_type: At.string,
17223
17223
  align: "left",
17224
17224
  width: "",
17225
17225
  cellBackgroundColor: ""
17226
17226
  })) : c, [l, c, m]), w = y1({
17227
- getColIndex: nt((ze) => f.indexOf(ze.column.columnDef.meta), [f]),
17227
+ getColIndex: nt((Me) => f.indexOf(Me.column.columnDef.meta), [f]),
17228
17228
  vizManager: o.vizManager,
17229
17229
  instance: a
17230
17230
  }), v = z(() => {
17231
- const ze = ac();
17232
- return f.map(($e) => {
17233
- const tt = Tm($e.value_field);
17234
- return ze.accessor(tt.columnKey, {
17235
- cell: (St) => /* @__PURE__ */ i(b1, { tableCellContext: w(St.cell), value: St.getValue(), type: $e.value_type, ...$e }),
17236
- header: $e.label,
17231
+ const Me = ac();
17232
+ return f.map((ze) => {
17233
+ const tt = Tm(ze.value_field);
17234
+ return Me.accessor(tt.columnKey, {
17235
+ cell: (St) => /* @__PURE__ */ i(b1, { tableCellContext: w(St.cell), value: St.getValue(), type: ze.value_type, ...ze }),
17236
+ header: ze.label,
17237
17237
  enableSorting: !0,
17238
- meta: $e,
17239
- size: typeof $e.width == "number" ? $e.width : void 0,
17240
- minSize: typeof $e.width == "number" ? $e.width : void 0
17238
+ meta: ze,
17239
+ size: typeof ze.width == "number" ? ze.width : void 0,
17240
+ minSize: typeof ze.width == "number" ? ze.width : void 0
17241
17241
  });
17242
17242
  });
17243
- }, [f, w]), [T, M] = Q([]), $ = sc({
17243
+ }, [f, w]), [T, M] = Q([]), L = sc({
17244
17244
  data: m,
17245
17245
  state: {
17246
17246
  sorting: T
@@ -17251,7 +17251,7 @@ function x1({
17251
17251
  getSortedRowModel: Op()
17252
17252
  }), {
17253
17253
  rows: B
17254
- } = $.getRowModel(), K = R.useRef(null), N = Fp({
17254
+ } = L.getRowModel(), K = R.useRef(null), N = Fp({
17255
17255
  parentRef: K,
17256
17256
  size: B.length,
17257
17257
  estimateSize: nt(() => 28, []),
@@ -17259,7 +17259,7 @@ function x1({
17259
17259
  }), {
17260
17260
  virtualItems: O,
17261
17261
  totalSize: E
17262
- } = N, Y = O.length > 0 && ((Ee = O == null ? void 0 : O[0]) == null ? void 0 : Ee.start) || 0, re = O.length > 0 ? E - (((Ke = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ke.end) || 0) : 0, ee = B.length, oe = ee > 0, ye = oe ? n - 22 : n, xe = oe ? 22 : 0;
17262
+ } = N, Y = O.length > 0 && ((Ae = O == null ? void 0 : O[0]) == null ? void 0 : Ae.start) || 0, re = O.length > 0 ? E - (((Ke = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ke.end) || 0) : 0, ee = B.length, oe = ee > 0, ye = oe ? n - 22 : n, xe = oe ? 22 : 0;
17263
17263
  return !Array.isArray(m) || m.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: K, style: {
17264
17264
  height: n,
17265
17265
  width: t,
@@ -17279,16 +17279,16 @@ function x1({
17279
17279
  }, ...d, striped: r.striped, children: [
17280
17280
  /* @__PURE__ */ i("thead", { className: p.thead, style: {
17281
17281
  top: xe
17282
- }, children: $.getHeaderGroups().map((ze) => /* @__PURE__ */ i("tr", { children: ze.headers.map((Ve) => /* @__PURE__ */ i("th", { style: {
17282
+ }, children: L.getHeaderGroups().map((Me) => /* @__PURE__ */ i("tr", { children: Me.headers.map((Ve) => /* @__PURE__ */ i("th", { style: {
17283
17283
  width: Ve.getSize()
17284
- }, children: /* @__PURE__ */ i(ZC, { header: Ve, cx: h }) }, Ve.id)) }, ze.id)) }),
17284
+ }, children: /* @__PURE__ */ i(ZC, { header: Ve, cx: h }) }, Ve.id)) }, Me.id)) }),
17285
17285
  /* @__PURE__ */ u("tbody", { children: [
17286
17286
  Y > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
17287
17287
  height: `${Y}px`
17288
17288
  } }) }),
17289
- O.map((ze) => {
17290
- const Ve = B[ze.index];
17291
- return /* @__PURE__ */ i("tr", { children: Ve.getVisibleCells().map(($e) => /* @__PURE__ */ i("td", { children: Kr($e.column.columnDef.cell, $e.getContext()) }, $e.id)) }, Ve.id);
17289
+ O.map((Me) => {
17290
+ const Ve = B[Me.index];
17291
+ return /* @__PURE__ */ i("tr", { children: Ve.getVisibleCells().map((ze) => /* @__PURE__ */ i("td", { children: Kr(ze.column.columnDef.cell, ze.getContext()) }, ze.id)) }, Ve.id);
17292
17292
  }),
17293
17293
  re > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
17294
17294
  height: `${re}px`
@@ -17493,7 +17493,7 @@ function z1(e, t) {
17493
17493
  interpolation: e.encodeColor(e.getColorInterpolations()[0])
17494
17494
  };
17495
17495
  }
17496
- const $1 = we((e, t) => {
17496
+ const L1 = we((e, t) => {
17497
17497
  const {
17498
17498
  colorManager: n
17499
17499
  } = nn(Ut), [r, o] = Q(Md(e.value)), [a, s] = Q(M1(n, e.value)), l = ks(a), [c, d] = Q(z1(n, e.value)), p = ks(c);
@@ -17511,10 +17511,10 @@ const $1 = we((e, t) => {
17511
17511
  d(w), (v = e.onChange) == null || v.call(e, w);
17512
17512
  } })
17513
17513
  ] });
17514
- }), L1 = {
17514
+ }), $1 = {
17515
17515
  [At.eloc]: "ELOC"
17516
17516
  }, A1 = Object.values(At).map((e) => ({
17517
- label: k.get(L1, e, k.capitalize(e)),
17517
+ label: k.get($1, e, k.capitalize(e)),
17518
17518
  value: e
17519
17519
  })), E1 = we(({
17520
17520
  label: e,
@@ -17581,7 +17581,7 @@ const $1 = we((e, t) => {
17581
17581
  /* @__PURE__ */ u(x, { grow: !0, children: [
17582
17582
  /* @__PURE__ */ i(y, { name: `columns.${t}.label`, control: e, render: ({
17583
17583
  field: s
17584
- }) => /* @__PURE__ */ i(L, { label: "Label", required: !0, id: `col-label-${t}`, sx: {
17584
+ }) => /* @__PURE__ */ i($, { label: "Label", required: !0, id: `col-label-${t}`, sx: {
17585
17585
  flex: 1
17586
17586
  }, ...s }) }),
17587
17587
  /* @__PURE__ */ i(y, { name: `columns.${t}.value_field`, control: e, render: ({
@@ -17618,7 +17618,7 @@ const $1 = we((e, t) => {
17618
17618
  ) }),
17619
17619
  /* @__PURE__ */ i(y, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
17620
17620
  field: s
17621
- }) => /* @__PURE__ */ i($1, { ...s }) }),
17621
+ }) => /* @__PURE__ */ i(L1, { ...s }) }),
17622
17622
  /* @__PURE__ */ i(A, { mb: 4, mt: 12, variant: "dashed" }),
17623
17623
  /* @__PURE__ */ i(I, { leftIcon: /* @__PURE__ */ i(be, { size: 16 }), color: "red", variant: "light", onClick: () => r(t), children: "Delete this column" })
17624
17624
  ] });
@@ -17631,7 +17631,7 @@ const $1 = we((e, t) => {
17631
17631
  append: r,
17632
17632
  remove: o,
17633
17633
  update: a
17634
- } = Ae({
17634
+ } = $e({
17635
17635
  control: e,
17636
17636
  name: "columns"
17637
17637
  }), s = () => {
@@ -17681,12 +17681,12 @@ function V1({
17681
17681
  }, children: [
17682
17682
  /* @__PURE__ */ i(y, { name: "horizontalSpacing", control: e, render: ({
17683
17683
  field: n
17684
- }) => /* @__PURE__ */ i(L, { label: "Horizontal Spacing", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
17684
+ }) => /* @__PURE__ */ i($, { label: "Horizontal Spacing", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
17685
17685
  flex: 1
17686
17686
  }, ...n }) }),
17687
17687
  /* @__PURE__ */ i(y, { name: "verticalSpacing", control: e, render: ({
17688
17688
  field: n
17689
- }) => /* @__PURE__ */ i(L, { label: "Vertical Spacing", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
17689
+ }) => /* @__PURE__ */ i($, { label: "Vertical Spacing", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
17690
17690
  flex: 1
17691
17691
  }, ...n }) })
17692
17692
  ] }),
@@ -17696,7 +17696,7 @@ function V1({
17696
17696
  }
17697
17697
  }, children: /* @__PURE__ */ i(y, { name: "fontSize", control: e, render: ({
17698
17698
  field: n
17699
- }) => /* @__PURE__ */ i(L, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
17699
+ }) => /* @__PURE__ */ i($, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", required: !0, sx: {
17700
17700
  flex: 1
17701
17701
  }, ...n }) }) }),
17702
17702
  /* @__PURE__ */ u(x, { position: "apart", grow: !0, children: [
@@ -17740,7 +17740,7 @@ function B1({
17740
17740
  watch: l,
17741
17741
  getValues: c,
17742
17742
  reset: d
17743
- } = Re({
17743
+ } = Ee({
17744
17744
  defaultValues: o
17745
17745
  });
17746
17746
  W(() => {
@@ -17832,7 +17832,7 @@ function j1(e) {
17832
17832
  }))
17833
17833
  };
17834
17834
  }
17835
- class G1 extends Oe {
17835
+ class G1 extends Re {
17836
17836
  constructor() {
17837
17837
  super(...arguments);
17838
17838
  H(this, "VERSION", 5);
@@ -17909,7 +17909,7 @@ const ho = {
17909
17909
  font_weight: c
17910
17910
  } = n, d = z(() => r.reduce((h, m) => {
17911
17911
  const f = an(m, o);
17912
- return h[m.name] = Lt(m, f), h;
17912
+ return h[m.name] = $t(m, f), h;
17913
17913
  }, {}), [r, o]), p = z(() => new Function(`return ${a}`)()({
17914
17914
  data: o,
17915
17915
  variables: d,
@@ -18000,7 +18000,7 @@ function K1({
18000
18000
  watch: l,
18001
18001
  getValues: c,
18002
18002
  reset: d
18003
- } = Re({
18003
+ } = Ee({
18004
18004
  defaultValues: o
18005
18005
  });
18006
18006
  R.useEffect(() => {
@@ -18032,7 +18032,7 @@ function K1({
18032
18032
  ),
18033
18033
  /* @__PURE__ */ i(y, { name: "font_size", control: a, render: ({
18034
18034
  field: m
18035
- }) => /* @__PURE__ */ i(L, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
18035
+ }) => /* @__PURE__ */ i($, { label: "Font Size", placeholder: "10px, 1em, 1rem, 100%...", sx: {
18036
18036
  flex: 1
18037
18037
  }, ...m }) }),
18038
18038
  /* @__PURE__ */ i(x, { position: "apart", grow: !0, sx: {
@@ -18046,7 +18046,7 @@ function K1({
18046
18046
  ] })
18047
18047
  ] }) });
18048
18048
  }
18049
- class X1 extends Oe {
18049
+ class X1 extends Re {
18050
18050
  constructor() {
18051
18051
  super(...arguments);
18052
18052
  H(this, "VERSION", 1);
@@ -18147,7 +18147,7 @@ const tS = ({
18147
18147
  if (r.startsWith("<"))
18148
18148
  return /* @__PURE__ */ i(rl, { message: r });
18149
18149
  const a = n - 25 - 20 - 30;
18150
- return /* @__PURE__ */ i(Ln, { sx: {
18150
+ return /* @__PURE__ */ i($n, { sx: {
18151
18151
  width: "100%",
18152
18152
  height: a
18153
18153
  }, children: /* @__PURE__ */ u(S, { align: "center", spacing: 20, children: [
@@ -18176,7 +18176,7 @@ function rS({
18176
18176
  return !r || !o || !n ? null : c ? /* @__PURE__ */ i(V, { sx: {
18177
18177
  position: "relative",
18178
18178
  height: o
18179
- }, children: /* @__PURE__ */ i($n, { visible: !0 }) }) : l ? /* @__PURE__ */ i(V, { sx: po, "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(nS, { error: l, width: r, height: o }) }) : !s || !Array.isArray(s.replies) || s.replies.length === 0 ? null : /* @__PURE__ */ i(V, { sx: po, "data-enable-scrollbar": !0, children: s.replies.map((d, p) => /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
18179
+ }, children: /* @__PURE__ */ i(Ln, { visible: !0 }) }) : l ? /* @__PURE__ */ i(V, { sx: po, "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(nS, { error: l, width: r, height: o }) }) : !s || !Array.isArray(s.replies) || s.replies.length === 0 ? null : /* @__PURE__ */ i(V, { sx: po, "data-enable-scrollbar": !0, children: s.replies.map((d, p) => /* @__PURE__ */ i("div", { dangerouslySetInnerHTML: {
18180
18180
  __html: d.interpretation.html
18181
18181
  } }, p)) });
18182
18182
  }
@@ -18192,7 +18192,7 @@ function iS({
18192
18192
  watch: s,
18193
18193
  getValues: l,
18194
18194
  reset: c
18195
- } = Re({
18195
+ } = Ee({
18196
18196
  defaultValues: r
18197
18197
  });
18198
18198
  W(() => {
@@ -18203,18 +18203,18 @@ function iS({
18203
18203
  /* @__PURE__ */ u(x, { grow: !0, children: [
18204
18204
  /* @__PURE__ */ i(y, { name: "expertSystemURL", control: o, render: ({
18205
18205
  field: h
18206
- }) => /* @__PURE__ */ i(L, { label: "Expert System URL", ...h }) }),
18206
+ }) => /* @__PURE__ */ i($, { label: "Expert System URL", ...h }) }),
18207
18207
  /* @__PURE__ */ i(y, { name: "path", control: o, render: ({
18208
18208
  field: h
18209
- }) => /* @__PURE__ */ i(L, { label: "Path", required: !0, ...h }) })
18209
+ }) => /* @__PURE__ */ i($, { label: "Path", required: !0, ...h }) })
18210
18210
  ] }),
18211
18211
  /* @__PURE__ */ u(x, { grow: !0, children: [
18212
18212
  /* @__PURE__ */ i(y, { name: "goal", control: o, render: ({
18213
18213
  field: h
18214
- }) => /* @__PURE__ */ i(L, { label: "Goal", required: !0, ...h }) }),
18214
+ }) => /* @__PURE__ */ i($, { label: "Goal", required: !0, ...h }) }),
18215
18215
  /* @__PURE__ */ i(y, { name: "question", control: o, render: ({
18216
18216
  field: h
18217
- }) => /* @__PURE__ */ i(L, { label: "Question", required: !0, ...h }) })
18217
+ }) => /* @__PURE__ */ i($, { label: "Question", required: !0, ...h }) })
18218
18218
  ] }),
18219
18219
  /* @__PURE__ */ i(A, { variant: "dashed", mt: 16, mb: 8 }),
18220
18220
  /* @__PURE__ */ i(I, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ i(ve, { size: 20 }), disabled: !p, sx: {
@@ -18222,7 +18222,7 @@ function iS({
18222
18222
  }, children: "Submit Changes" })
18223
18223
  ] }) });
18224
18224
  }
18225
- class oS extends Oe {
18225
+ class oS extends Re {
18226
18226
  constructor() {
18227
18227
  super(...arguments);
18228
18228
  H(this, "VERSION", 1);
@@ -18438,7 +18438,7 @@ function yS(e, t) {
18438
18438
  function xS(e, t, n) {
18439
18439
  const r = n.reduce((h, m) => {
18440
18440
  const f = an(m, t);
18441
- return h[m.name] = Lt(m, f), h;
18441
+ return h[m.name] = $t(m, f), h;
18442
18442
  }, {}), o = cS(e), {
18443
18443
  dateSpan: a,
18444
18444
  minDate: s,
@@ -18459,7 +18459,7 @@ function vS(e) {
18459
18459
  function wS(e) {
18460
18460
  return /* @__PURE__ */ i(C, { children: "Click heat block" });
18461
18461
  }
18462
- const $d = {
18462
+ const Ld = {
18463
18463
  id: "builtin:echarts:click-heatmap:heat-block",
18464
18464
  displayName: "Click Heat Block",
18465
18465
  nameRender: wS,
@@ -18528,7 +18528,7 @@ function CS({
18528
18528
  interactionManager: o,
18529
18529
  variables: a
18530
18530
  }) {
18531
- const s = Fn(t, e.calendar.data_key), l = zt(o.triggerManager, $d.id), c = nt((h) => {
18531
+ const s = Fn(t, e.calendar.data_key), l = zt(o.triggerManager, Ld.id), c = nt((h) => {
18532
18532
  const [m, f] = h.value, w = k.get(s, m, {
18533
18533
  error: "rowData is not found"
18534
18534
  });
@@ -18553,7 +18553,7 @@ function SS({
18553
18553
  context: e,
18554
18554
  instance: t
18555
18555
  }) {
18556
- const n = $t({
18556
+ const n = Lt({
18557
18557
  vizManager: e.vizManager,
18558
18558
  instance: t
18559
18559
  }), {
@@ -18579,7 +18579,7 @@ function kS({
18579
18579
  }, ...n }) }),
18580
18580
  /* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
18581
18581
  field: n
18582
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
18582
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
18583
18583
  flex: 1
18584
18584
  }, ...n }) })
18585
18585
  ] }),
@@ -18605,7 +18605,7 @@ const TS = ({
18605
18605
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
18606
18606
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
18607
18607
  field: r
18608
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
18608
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
18609
18609
  flex: 1
18610
18610
  }, ...r }) }),
18611
18611
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -18627,7 +18627,7 @@ const TS = ({
18627
18627
  fields: n,
18628
18628
  append: r,
18629
18629
  remove: o
18630
- } = Ae({
18630
+ } = $e({
18631
18631
  control: e,
18632
18632
  name: "tooltip.metrics"
18633
18633
  }), a = t("tooltip.metrics"), s = n.map((h, m) => ({
@@ -18704,7 +18704,7 @@ function zS({
18704
18704
  )
18705
18705
  ] });
18706
18706
  }
18707
- function $S({
18707
+ function LS({
18708
18708
  context: e
18709
18709
  }) {
18710
18710
  const {
@@ -18720,7 +18720,7 @@ function $S({
18720
18720
  watch: l,
18721
18721
  getValues: c,
18722
18722
  reset: d
18723
- } = Re({
18723
+ } = Ee({
18724
18724
  defaultValues: o
18725
18725
  });
18726
18726
  W(() => {
@@ -18756,7 +18756,7 @@ function $S({
18756
18756
  ] })
18757
18757
  ] }) });
18758
18758
  }
18759
- function LS(e, {
18759
+ function $S(e, {
18760
18760
  panelModel: t
18761
18761
  }) {
18762
18762
  try {
@@ -18814,7 +18814,7 @@ function AS(e) {
18814
18814
  }
18815
18815
  };
18816
18816
  }
18817
- class ES extends Oe {
18817
+ class ES extends Re {
18818
18818
  constructor() {
18819
18819
  super(...arguments);
18820
18820
  H(this, "VERSION", 3);
@@ -18826,7 +18826,7 @@ class ES extends Oe {
18826
18826
  })), this.version(2, (n, r) => ({
18827
18827
  ...n,
18828
18828
  version: 2,
18829
- config: LS(n.config, r)
18829
+ config: $S(n.config, r)
18830
18830
  })), this.version(3, (n) => ({
18831
18831
  ...n,
18832
18832
  version: 3,
@@ -18840,12 +18840,12 @@ const RS = {
18840
18840
  migrator: new ES(),
18841
18841
  name: "calendarHeatmap",
18842
18842
  viewRender: SS,
18843
- configRender: $S,
18843
+ configRender: LS,
18844
18844
  createConfig: () => ({
18845
18845
  version: 3,
18846
18846
  config: Ya
18847
18847
  }),
18848
- triggers: [$d]
18848
+ triggers: [Ld]
18849
18849
  }, Qa = {
18850
18850
  x_axes: [{
18851
18851
  id: "initial-x",
@@ -19061,7 +19061,7 @@ function YS({
19061
19061
  id: h,
19062
19062
  ...m
19063
19063
  }, f, w, v, T, M) {
19064
- const $ = {
19064
+ const L = {
19065
19065
  label: {
19066
19066
  show: !!r,
19067
19067
  position: r,
@@ -19082,14 +19082,14 @@ function YS({
19082
19082
  ...m
19083
19083
  };
19084
19084
  if (!a || a === e.data_key)
19085
- return $.data = GS({
19085
+ return L.data = GS({
19086
19086
  dataTemplate: f,
19087
19087
  data: v,
19088
19088
  aggregation_on_value: s,
19089
19089
  name_data_key: e.data_key,
19090
19090
  value_data_key: t,
19091
19091
  valueTypedXAxis: w
19092
- }), $;
19092
+ }), L;
19093
19093
  const B = HS({
19094
19094
  group_by_key: a,
19095
19095
  data: v,
@@ -19097,7 +19097,7 @@ function YS({
19097
19097
  value_data_key: t
19098
19098
  });
19099
19099
  return Object.entries(B).map(([K, N]) => {
19100
- const O = Ze($);
19100
+ const O = Ze(L);
19101
19101
  return O.name = K, O.color = void 0, O.data = N, O;
19102
19102
  });
19103
19103
  }
@@ -19184,7 +19184,7 @@ function JS(e, t) {
19184
19184
  const n = {};
19185
19185
  return t.map((r) => {
19186
19186
  const o = an(r, e);
19187
- n[r.name] = Lt(r, o);
19187
+ n[r.name] = $t(r, o);
19188
19188
  }), n;
19189
19189
  }
19190
19190
  function ZS(e, t) {
@@ -19294,7 +19294,7 @@ function rk({
19294
19294
  context: e,
19295
19295
  instance: t
19296
19296
  }) {
19297
- const n = $t({
19297
+ const n = Lt({
19298
19298
  vizManager: e.vizManager,
19299
19299
  instance: t
19300
19300
  }), {
@@ -19338,7 +19338,7 @@ function ak({
19338
19338
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
19339
19339
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.name`, control: e, render: ({
19340
19340
  field: l
19341
- }) => /* @__PURE__ */ i(L, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
19341
+ }) => /* @__PURE__ */ i($, { label: "Name", placeholder: "Average Reference Line", required: !0, sx: {
19342
19342
  flex: 1
19343
19343
  }, ...l }) }),
19344
19344
  /* @__PURE__ */ i(
@@ -19356,7 +19356,7 @@ function ak({
19356
19356
  ] }),
19357
19357
  /* @__PURE__ */ i(y, { name: `reference_lines.${t}.template`, control: e, render: ({
19358
19358
  field: l
19359
- }) => /* @__PURE__ */ i(L, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
19359
+ }) => /* @__PURE__ */ i($, { label: "Content Template", placeholder: "Average: ${avg}", sx: {
19360
19360
  flex: 1
19361
19361
  }, ...l }) }),
19362
19362
  /* @__PURE__ */ u(x, { grow: !0, children: [
@@ -19432,7 +19432,7 @@ function sk({
19432
19432
  fields: r,
19433
19433
  append: o,
19434
19434
  remove: a
19435
- } = Ae({
19435
+ } = $e({
19436
19436
  control: e,
19437
19437
  name: "reference_lines"
19438
19438
  }), s = t("reference_lines"), l = r.map((f, w) => ({
@@ -19492,7 +19492,7 @@ function dk({
19492
19492
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
19493
19493
  /* @__PURE__ */ i(y, { name: `series.${t}.stack`, control: e, render: ({
19494
19494
  field: o
19495
- }) => /* @__PURE__ */ i(L, { label: "Stack", placeholder: "Stack bars by this ID", sx: {
19495
+ }) => /* @__PURE__ */ i($, { label: "Stack", placeholder: "Stack bars by this ID", sx: {
19496
19496
  flexGrow: 1
19497
19497
  }, ...o }) }),
19498
19498
  /* @__PURE__ */ i(
@@ -19511,17 +19511,17 @@ function dk({
19511
19511
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
19512
19512
  /* @__PURE__ */ i(y, { name: `series.${t}.barMinWidth`, control: e, render: ({
19513
19513
  field: o
19514
- }) => /* @__PURE__ */ i(L, { label: "Bar Width(Min)", disabled: r, sx: {
19514
+ }) => /* @__PURE__ */ i($, { label: "Bar Width(Min)", disabled: r, sx: {
19515
19515
  flexGrow: 1
19516
19516
  }, ...o }) }),
19517
19517
  /* @__PURE__ */ i(y, { name: `series.${t}.barWidth`, control: e, render: ({
19518
19518
  field: o
19519
- }) => /* @__PURE__ */ i(L, { label: "Bar Width", sx: {
19519
+ }) => /* @__PURE__ */ i($, { label: "Bar Width", sx: {
19520
19520
  flexGrow: 1
19521
19521
  }, ...o }) }),
19522
19522
  /* @__PURE__ */ i(y, { name: `series.${t}.barMaxWidth`, control: e, render: ({
19523
19523
  field: o
19524
- }) => /* @__PURE__ */ i(L, { label: "Bar Width(Max)", disabled: r, sx: {
19524
+ }) => /* @__PURE__ */ i($, { label: "Bar Width(Max)", disabled: r, sx: {
19525
19525
  flexGrow: 1
19526
19526
  }, ...o }) })
19527
19527
  ] })
@@ -19583,7 +19583,7 @@ function hk({
19583
19583
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
19584
19584
  /* @__PURE__ */ i(y, { name: `series.${t}.name`, control: e, render: ({
19585
19585
  field: a
19586
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
19586
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
19587
19587
  flex: 1
19588
19588
  }, ...a }) }),
19589
19589
  /* @__PURE__ */ i(y, { name: `series.${t}.xAxisIndex`, control: e, render: ({
@@ -19651,7 +19651,7 @@ function pk({
19651
19651
  fields: n,
19652
19652
  append: r,
19653
19653
  remove: o
19654
- } = Ae({
19654
+ } = $e({
19655
19655
  control: e,
19656
19656
  name: "series"
19657
19657
  }), a = t("series"), s = n.map((f, w) => ({
@@ -19704,7 +19704,7 @@ function fk({
19704
19704
  /* @__PURE__ */ i(A, { mb: -15, mt: 15, variant: "dashed", label: "Name", labelPosition: "center" }),
19705
19705
  /* @__PURE__ */ i(x, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: `x_axes.${t}.name`, control: e, render: ({
19706
19706
  field: r
19707
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
19707
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
19708
19708
  flex: 1
19709
19709
  }, ...r }) }) }),
19710
19710
  /* @__PURE__ */ i(A, { mb: -15, variant: "dashed", label: "Layout", labelPosition: "center" }),
@@ -19727,10 +19727,10 @@ function fk({
19727
19727
  /* @__PURE__ */ u(x, { grow: !0, children: [
19728
19728
  /* @__PURE__ */ i(y, { name: `x_axes.${t}.min`, control: e, render: ({
19729
19729
  field: r
19730
- }) => /* @__PURE__ */ i(L, { label: "Min", ...r }) }),
19730
+ }) => /* @__PURE__ */ i($, { label: "Min", ...r }) }),
19731
19731
  /* @__PURE__ */ i(y, { name: `x_axes.${t}.max`, control: e, render: ({
19732
19732
  field: r
19733
- }) => /* @__PURE__ */ i(L, { label: "Max", ...r }) })
19733
+ }) => /* @__PURE__ */ i($, { label: "Max", ...r }) })
19734
19734
  ] })
19735
19735
  ] }),
19736
19736
  /* @__PURE__ */ i(A, { mb: -10, mt: 10, variant: "dashed", label: "Behavior", labelPosition: "center" }),
@@ -19748,7 +19748,7 @@ function gk({
19748
19748
  fields: n,
19749
19749
  append: r,
19750
19750
  remove: o
19751
- } = Ae({
19751
+ } = $e({
19752
19752
  control: e,
19753
19753
  name: "x_axes"
19754
19754
  }), a = t("x_axes"), s = n.map((d, p) => ({
@@ -19787,7 +19787,7 @@ function bk({
19787
19787
  }, ...n }) }),
19788
19788
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
19789
19789
  field: n
19790
- }) => /* @__PURE__ */ i(L, { label: "X Axis Name", sx: {
19790
+ }) => /* @__PURE__ */ i($, { label: "X Axis Name", sx: {
19791
19791
  flex: 1
19792
19792
  }, ...n }) })
19793
19793
  ] }),
@@ -19814,7 +19814,7 @@ function yk({
19814
19814
  watch: l,
19815
19815
  getValues: c,
19816
19816
  reset: d
19817
- } = Re({
19817
+ } = Ee({
19818
19818
  defaultValues: o
19819
19819
  });
19820
19820
  W(() => {
@@ -19885,7 +19885,7 @@ function xk(e, {
19885
19885
  throw console.error("[Migration failed]", n), n;
19886
19886
  }
19887
19887
  }
19888
- class vk extends Oe {
19888
+ class vk extends Re {
19889
19889
  constructor() {
19890
19890
  super(...arguments);
19891
19891
  H(this, "VERSION", 2);
@@ -20040,7 +20040,7 @@ function Ck(e, t, n) {
20040
20040
  show_in_legend: !1
20041
20041
  };
20042
20042
  }
20043
- function Ld(e) {
20043
+ function $d(e) {
20044
20044
  const t = [`background-color: ${e}`];
20045
20045
  return e === "rgba(255, 255, 255, 1)" && t.push("box-shadow: 0px 0px 1px 0px rgba(0,0,0,.5)"), t.join(";");
20046
20046
  }
@@ -20116,7 +20116,7 @@ function kk(e, t, n, r) {
20116
20116
  <tr colspan="2">
20117
20117
  <div style="
20118
20118
  width: 100%; height: 4px; border-radius: 2px; margin-bottom: 6px;
20119
- ${Ld(p)}
20119
+ ${$d(p)}
20120
20120
  "/>
20121
20121
  </tr>
20122
20122
  <tr>
@@ -20193,7 +20193,7 @@ function Dk(e, t, n, r) {
20193
20193
  <tr colspan="2">
20194
20194
  <div style="
20195
20195
  width: 100%; height: 4px; border-radius: 2px; margin-bottom: 6px;
20196
- ${Ld(h)}
20196
+ ${$d(h)}
20197
20197
  "
20198
20198
  />
20199
20199
  </tr>
@@ -20317,7 +20317,7 @@ function zk(e, t) {
20317
20317
  }
20318
20318
  }];
20319
20319
  }
20320
- function $k(e) {
20320
+ function Lk(e) {
20321
20321
  return [{
20322
20322
  type: "category",
20323
20323
  name: "准确估算比例",
@@ -20426,9 +20426,9 @@ function $k(e) {
20426
20426
  function mo(e) {
20427
20427
  return e == 1 || e == 2 ? 1 : mo(e - 2) + mo(e - 1);
20428
20428
  }
20429
- const Lk = Array.from(new Array(20), (e, t) => mo(t + 1));
20429
+ const $k = Array.from(new Array(20), (e, t) => mo(t + 1));
20430
20430
  function ol(e) {
20431
- return e <= 1 ? e : Lk.findIndex((t) => e <= t) - 1;
20431
+ return e <= 1 ? e : $k.findIndex((t) => e <= t) - 1;
20432
20432
  }
20433
20433
  function Ak(e, t) {
20434
20434
  const {
@@ -20492,7 +20492,7 @@ function Fk(e, t) {
20492
20492
  function Pk(e, t, n) {
20493
20493
  const r = Ak(e, n), o = q(e.x_axis.data_key), a = k.uniqBy(n[o.queryID], o.columnKey).map((p) => p[o.columnKey]), s = k.groupBy(r, o.columnKey), l = Fk(e, t), c = Mk(e, l, a, s), d = {
20494
20494
  xAxis: zk(e, a),
20495
- yAxis: $k(l),
20495
+ yAxis: Lk(l),
20496
20496
  series: c,
20497
20497
  grid: _k(),
20498
20498
  visualMap: [{
@@ -20617,7 +20617,7 @@ function Hk({
20617
20617
  return t(["deviation"]), /* @__PURE__ */ u(S, { children: [
20618
20618
  /* @__PURE__ */ i(x, { grow: !0, noWrap: !0, children: /* @__PURE__ */ i(y, { name: "deviation.name", control: e, render: ({
20619
20619
  field: n
20620
- }) => /* @__PURE__ */ i(L, { label: "指标名称", sx: {
20620
+ }) => /* @__PURE__ */ i($, { label: "指标名称", sx: {
20621
20621
  flex: 1
20622
20622
  }, ...n }) }) }),
20623
20623
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
@@ -20642,7 +20642,7 @@ const Yk = ({
20642
20642
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
20643
20643
  /* @__PURE__ */ i(y, { name: `metrics.${t}.name`, control: e, render: ({
20644
20644
  field: r
20645
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
20645
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
20646
20646
  flex: 1
20647
20647
  }, ...r }) }),
20648
20648
  /* @__PURE__ */ i(y, { name: `metrics.${t}.data_key`, control: e, render: ({
@@ -20664,7 +20664,7 @@ const Yk = ({
20664
20664
  fields: n,
20665
20665
  append: r,
20666
20666
  remove: o
20667
- } = Ae({
20667
+ } = $e({
20668
20668
  control: e,
20669
20669
  name: "metrics"
20670
20670
  }), a = t("metrics"), s = n.map((h, m) => ({
@@ -20717,7 +20717,7 @@ function Uk({
20717
20717
  }, ...n }) }),
20718
20718
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
20719
20719
  field: n
20720
- }) => /* @__PURE__ */ i(L, { label: "X轴名称", sx: {
20720
+ }) => /* @__PURE__ */ i($, { label: "X轴名称", sx: {
20721
20721
  flex: 1
20722
20722
  }, ...n }) })
20723
20723
  ] }),
@@ -20755,7 +20755,7 @@ function Kk({
20755
20755
  watch: s,
20756
20756
  getValues: l,
20757
20757
  reset: c
20758
- } = Re({
20758
+ } = Ee({
20759
20759
  defaultValues: r
20760
20760
  });
20761
20761
  W(() => {
@@ -20826,7 +20826,7 @@ function Xk(e, {
20826
20826
  throw console.error("[Migration failed]", n), n;
20827
20827
  }
20828
20828
  }
20829
- class Jk extends Oe {
20829
+ class Jk extends Re {
20830
20830
  constructor() {
20831
20831
  super(...arguments);
20832
20832
  H(this, "VERSION", 2);
@@ -20968,7 +20968,7 @@ const al = ({
20968
20968
  };
20969
20969
  return /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
20970
20970
  /* @__PURE__ */ i(F, { label: "Postfix Type", data: rT, value: e.type, onChange: a }),
20971
- e.type === "text" && /* @__PURE__ */ i(L, { label: "Postfix Content", value: e.value, onChange: (l) => {
20971
+ e.type === "text" && /* @__PURE__ */ i($, { label: "Postfix Content", value: e.value, onChange: (l) => {
20972
20972
  s(l.currentTarget.value);
20973
20973
  } }),
20974
20974
  e.type === "filter-option-label" && /* @__PURE__ */ i(F, { label: "Filter", value: e.value, onChange: s, data: o })
@@ -20988,7 +20988,7 @@ function oT({
20988
20988
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
20989
20989
  /* @__PURE__ */ i(y, { name: `metrics.${t}.names.value`, control: e, render: ({
20990
20990
  field: a
20991
- }) => /* @__PURE__ */ i(L, { label: "Metric Name", required: !0, sx: {
20991
+ }) => /* @__PURE__ */ i($, { label: "Metric Name", required: !0, sx: {
20992
20992
  flex: 1
20993
20993
  }, ...a }) }),
20994
20994
  /* @__PURE__ */ i(y, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
@@ -21003,7 +21003,7 @@ function oT({
21003
21003
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
21004
21004
  /* @__PURE__ */ i(y, { name: `metrics.${t}.names.basis`, control: e, render: ({
21005
21005
  field: a
21006
- }) => /* @__PURE__ */ i(L, { label: "Basis Name", required: !0, sx: {
21006
+ }) => /* @__PURE__ */ i($, { label: "Basis Name", required: !0, sx: {
21007
21007
  flex: 1
21008
21008
  }, ...a }) }),
21009
21009
  /* @__PURE__ */ i(y, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
@@ -21039,7 +21039,7 @@ const aT = ({
21039
21039
  fields: r,
21040
21040
  append: o,
21041
21041
  remove: a
21042
- } = Ae({
21042
+ } = $e({
21043
21043
  control: e,
21044
21044
  name: "metrics"
21045
21045
  }), s = t("metrics"), l = r.map((w, v) => ({
@@ -21156,7 +21156,7 @@ function dT({
21156
21156
  watch: l,
21157
21157
  getValues: c,
21158
21158
  reset: d
21159
- } = Re({
21159
+ } = Ee({
21160
21160
  defaultValues: o
21161
21161
  });
21162
21162
  W(() => {
@@ -21191,7 +21191,7 @@ function uT(e) {
21191
21191
  }))
21192
21192
  };
21193
21193
  }
21194
- class hT extends Oe {
21194
+ class hT extends Re {
21195
21195
  constructor() {
21196
21196
  super(...arguments);
21197
21197
  H(this, "VERSION", 2);
@@ -21235,7 +21235,7 @@ function mT({
21235
21235
  }, ...r }) }),
21236
21236
  /* @__PURE__ */ i(y, { name: "heat_block.name", control: e, render: ({
21237
21237
  field: r
21238
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
21238
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
21239
21239
  flex: 1
21240
21240
  }, ...r }) })
21241
21241
  ] }),
@@ -21275,7 +21275,7 @@ const fT = ({
21275
21275
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
21276
21276
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
21277
21277
  field: r
21278
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
21278
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
21279
21279
  flex: 1
21280
21280
  }, ...r }) }),
21281
21281
  /* @__PURE__ */ i(y, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -21297,7 +21297,7 @@ const fT = ({
21297
21297
  fields: n,
21298
21298
  append: r,
21299
21299
  remove: o
21300
- } = Ae({
21300
+ } = $e({
21301
21301
  control: e,
21302
21302
  name: "tooltip.metrics"
21303
21303
  }), a = t("tooltip.metrics"), s = n.map((h, m) => ({
@@ -21429,7 +21429,7 @@ function vT({
21429
21429
  }, ...n }) }),
21430
21430
  /* @__PURE__ */ i(y, { name: "x_axis.name", control: e, render: ({
21431
21431
  field: n
21432
- }) => /* @__PURE__ */ i(L, { label: "Name", sx: {
21432
+ }) => /* @__PURE__ */ i($, { label: "Name", sx: {
21433
21433
  flex: 1
21434
21434
  }, ...n }) })
21435
21435
  ] }),
@@ -21483,7 +21483,7 @@ function _T({
21483
21483
  }, ...n }) }),
21484
21484
  /* @__PURE__ */ i(y, { name: "y_axis.name", control: e, render: ({
21485
21485
  field: n
21486
- }) => /* @__PURE__ */ i(L, { label: "Name", required: !0, sx: {
21486
+ }) => /* @__PURE__ */ i($, { label: "Name", required: !0, sx: {
21487
21487
  flex: 1
21488
21488
  }, ...n }) })
21489
21489
  ] }),
@@ -21581,7 +21581,7 @@ function CT({
21581
21581
  watch: l,
21582
21582
  getValues: c,
21583
21583
  reset: d
21584
- } = Re({
21584
+ } = Ee({
21585
21585
  defaultValues: o
21586
21586
  });
21587
21587
  W(() => {
@@ -21740,7 +21740,7 @@ const zT = (e) => {
21740
21740
  return e;
21741
21741
  }
21742
21742
  };
21743
- function $T({
21743
+ function LT({
21744
21744
  conf: e,
21745
21745
  labelFormatters: t,
21746
21746
  valueFormatters: n,
@@ -21784,7 +21784,7 @@ function $T({
21784
21784
  });
21785
21785
  }), f;
21786
21786
  }
21787
- function LT(e, t, n, r) {
21787
+ function $T(e, t, n, r) {
21788
21788
  const {
21789
21789
  x_axis: o,
21790
21790
  y_axis: a,
@@ -21795,7 +21795,7 @@ function LT(e, t, n, r) {
21795
21795
  return {
21796
21796
  confine: !0,
21797
21797
  formatter: function(p) {
21798
- const m = $T({
21798
+ const m = LT({
21799
21799
  conf: e,
21800
21800
  labelFormatters: n,
21801
21801
  valueFormatters: r,
@@ -21919,12 +21919,12 @@ function FT(e, t, n) {
21919
21919
  return {};
21920
21920
  const r = n.reduce((l, c) => {
21921
21921
  const d = an(c, t);
21922
- return l[c.name] = Lt(c, d), l;
21922
+ return l[c.name] = $t(c, d), l;
21923
21923
  }, {}), o = TT(e), a = DT(e), s = {
21924
21924
  xAxis: ET(e, t, o.x_axis),
21925
21925
  yAxis: RT(e, t, o.y_axis),
21926
21926
  series: MT(e, t),
21927
- tooltip: LT(e, t, o, a),
21927
+ tooltip: $T(e, t, o, a),
21928
21928
  grid: IT(e),
21929
21929
  visualMap: AT(e, r)
21930
21930
  };
@@ -21964,7 +21964,7 @@ function VT({
21964
21964
  context: e,
21965
21965
  instance: t
21966
21966
  }) {
21967
- const n = $t({
21967
+ const n = Lt({
21968
21968
  vizManager: e.vizManager,
21969
21969
  instance: t
21970
21970
  }), {
@@ -21977,7 +21977,7 @@ function VT({
21977
21977
  } = e.viewport;
21978
21978
  return !l || !c ? null : /* @__PURE__ */ i(mt, { width: l, height: c, children: /* @__PURE__ */ i(PT, { variables: o, width: Pt(l), height: Vt(c), data: s, conf: a, interactionManager: n }) });
21979
21979
  }
21980
- class NT extends Oe {
21980
+ class NT extends Re {
21981
21981
  constructor() {
21982
21982
  super(...arguments);
21983
21983
  H(this, "VERSION", 1);
@@ -22371,15 +22371,15 @@ const jT = ({
22371
22371
  unstyled: r
22372
22372
  }), [w, v] = Q(!1), T = (N) => {
22373
22373
  v(N);
22374
- }, M = w && (l == null ? void 0 : l.length) > 0, [$, B] = Q(""), K = z(() => {
22375
- if (!$)
22374
+ }, M = w && (l == null ? void 0 : l.length) > 0, [L, B] = Q(""), K = z(() => {
22375
+ if (!L)
22376
22376
  return d;
22377
- const N = $.toLowerCase(), O = (E) => {
22377
+ const N = L.toLowerCase(), O = (E) => {
22378
22378
  var Y;
22379
22379
  return ((Y = E.description) == null ? void 0 : Y.toLowerCase().includes(N)) || E.label.toLowerCase().includes(N);
22380
22380
  };
22381
22381
  return d.filter(O);
22382
- }, [$, d]);
22382
+ }, [L, d]);
22383
22383
  return /* @__PURE__ */ u(S, { spacing: 3, children: [
22384
22384
  /* @__PURE__ */ u(x, { position: "apart", children: [
22385
22385
  /* @__PURE__ */ u(C, { className: m.label, children: [
@@ -22388,7 +22388,7 @@ const jT = ({
22388
22388
  ] }),
22389
22389
  M && /* @__PURE__ */ i(Be, { label: `${l.length} selected`, children: /* @__PURE__ */ i(gr, { children: l.length }) })
22390
22390
  ] }),
22391
- /* @__PURE__ */ i(Vp, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: T, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ i(vl, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ i(Pd, { errorMessage: p }), maxTagTextLength: 10, maxTagPlaceholder: (N) => `${N.length} selected`, searchValue: $, onSearch: B, filterOption: !1, children: K.map((N) => /* @__PURE__ */ u(Np, { title: N.label, children: [
22391
+ /* @__PURE__ */ i(Vp, { disabled: e, allowClear: !0, className: f(m.root, "check-select"), dropdownClassName: f(m.dropdown, ""), onDropdownVisibleChange: T, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ i(vl, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ i(Pd, { errorMessage: p }), maxTagTextLength: 10, maxTagPlaceholder: (N) => `${N.length} selected`, searchValue: L, onSearch: B, filterOption: !1, children: K.map((N) => /* @__PURE__ */ u(Np, { title: N.label, children: [
22392
22392
  /* @__PURE__ */ i(C, { size: "sm", "data-role": "label", children: N.label }),
22393
22393
  N.description && /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: N.description })
22394
22394
  ] }, N.value)) })
@@ -22445,7 +22445,7 @@ function XT({
22445
22445
  value: n,
22446
22446
  onChange: r
22447
22447
  }) {
22448
- return /* @__PURE__ */ i(L, { label: e, value: n || "", onChange: (o) => r(o.currentTarget.value), ...t, styles: {
22448
+ return /* @__PURE__ */ i($, { label: e, value: n || "", onChange: (o) => r(o.currentTarget.value), ...t, styles: {
22449
22449
  input: {
22450
22450
  borderColor: "#e9ecef"
22451
22451
  }
@@ -22746,14 +22746,14 @@ const JT = ({
22746
22746
  unstyled: r
22747
22747
  }), [v, T] = Q(!1), M = (B) => {
22748
22748
  T(B);
22749
- }, $ = v && (l == null ? void 0 : l.length) > 0;
22749
+ }, L = v && (l == null ? void 0 : l.length) > 0;
22750
22750
  return /* @__PURE__ */ u(S, { spacing: 3, children: [
22751
22751
  /* @__PURE__ */ u(x, { position: "apart", children: [
22752
22752
  /* @__PURE__ */ u(C, { className: f.label, children: [
22753
22753
  s,
22754
22754
  h && /* @__PURE__ */ i("span", { className: f.required, "aria-hidden": "true", children: "*" })
22755
22755
  ] }),
22756
- $ && /* @__PURE__ */ i(Be, { label: `${l.length} selected`, children: /* @__PURE__ */ i(gr, { children: l.length }) })
22756
+ L && /* @__PURE__ */ i(Be, { label: `${l.length} selected`, children: /* @__PURE__ */ i(gr, { children: l.length }) })
22757
22757
  ] }),
22758
22758
  /* @__PURE__ */ i(
22759
22759
  Bp,
@@ -22858,7 +22858,7 @@ const Vd = D(function({
22858
22858
  control: r,
22859
22859
  handleSubmit: o,
22860
22860
  reset: a
22861
- } = Re({
22861
+ } = Ee({
22862
22862
  defaultValues: n.filters.values,
22863
22863
  // make sure the preview value is updated when filters are changed
22864
22864
  reValidateMode: "onBlur"
@@ -22889,7 +22889,7 @@ const Vd = D(function({
22889
22889
  }), lD = {
22890
22890
  viewPanelInFullScreen: k.noop,
22891
22891
  inFullScreen: !1
22892
- }, $i = R.createContext(lD), Nd = b.model("MockContextMeta", {
22892
+ }, Li = R.createContext(lD), Nd = b.model("MockContextMeta", {
22893
22893
  current: b.optional(b.frozen(), {})
22894
22894
  }).views((e) => ({
22895
22895
  get keys() {
@@ -23115,7 +23115,7 @@ const cD = b.model("PanelLayoutMeta", {
23115
23115
  removeVariable(t) {
23116
23116
  e.variables.remove(t);
23117
23117
  }
23118
- })), Li = (e) => $l(e, (t, n) => {
23118
+ })), $i = (e) => Ll(e, (t, n) => {
23119
23119
  if (n !== void 0 && t)
23120
23120
  return on(t);
23121
23121
  });
@@ -23146,7 +23146,7 @@ const fD = b.model("QueryMeta", {
23146
23146
  pre_process: c,
23147
23147
  post_process: d
23148
23148
  } = e;
23149
- return Li({
23149
+ return $i({
23150
23150
  id: t,
23151
23151
  key: o,
23152
23152
  sql: a,
@@ -23301,7 +23301,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
23301
23301
  setFilterValue(t) {
23302
23302
  try {
23303
23303
  const n = Fe(e);
23304
- Me(e).filters.setValueByKey(n.key, t);
23304
+ Oe(e).filters.setValueByKey(n.key, t);
23305
23305
  } catch (n) {
23306
23306
  console.error(n);
23307
23307
  }
@@ -23378,7 +23378,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
23378
23378
  data: t,
23379
23379
  state: n,
23380
23380
  error: r
23381
- } = Me(e).content.getDataStuffByID(e.options_query_id);
23381
+ } = Oe(e).content.getDataStuffByID(e.options_query_id);
23382
23382
  return n === "idle" ? t : [];
23383
23383
  }
23384
23384
  })).actions((e) => ({
@@ -23412,7 +23412,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
23412
23412
  options_query_id: s,
23413
23413
  default_selection_count: l
23414
23414
  } = e;
23415
- return Li({
23415
+ return $i({
23416
23416
  _name: t,
23417
23417
  required: !!r,
23418
23418
  min_width: o,
@@ -23436,7 +23436,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
23436
23436
  e.min_width = t;
23437
23437
  },
23438
23438
  setDefaultSelection() {
23439
- const t = Me(e).content.filters, n = Fe(e).key;
23439
+ const t = Oe(e).content.filters, n = Fe(e).key;
23440
23440
  t.setValueByKey(n, e.default_selection);
23441
23441
  }
23442
23442
  })).actions((e) => ({
@@ -23467,7 +23467,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
23467
23467
  options_query_id: s,
23468
23468
  default_selection_count: l
23469
23469
  } = e;
23470
- return Li({
23470
+ return $i({
23471
23471
  _name: t,
23472
23472
  width: o,
23473
23473
  required: r,
@@ -23494,7 +23494,7 @@ const yD = b.model("FilterDateRangeConfigMeta", {
23494
23494
  e.width = t;
23495
23495
  },
23496
23496
  setDefaultSelection() {
23497
- const t = Me(e).content.filters, n = Fe(e).key;
23497
+ const t = Oe(e).content.filters, n = Fe(e).key;
23498
23498
  t.setValueByKey(n, e.default_selection);
23499
23499
  }
23500
23500
  })).actions((e) => ({
@@ -23605,19 +23605,19 @@ const Ud = b.compose("FilterTreeSelectConfigMeta", b.model({
23605
23605
  get treeData() {
23606
23606
  const {
23607
23607
  data: t
23608
- } = Me(e).content.getDataStuffByID(e.options_query_id), n = SD(t);
23608
+ } = Oe(e).content.getDataStuffByID(e.options_query_id), n = SD(t);
23609
23609
  return CD(n);
23610
23610
  },
23611
23611
  get errorMessage() {
23612
23612
  const {
23613
23613
  error: t
23614
- } = Me(e).content.getDataStuffByID(e.options_query_id);
23614
+ } = Oe(e).content.getDataStuffByID(e.options_query_id);
23615
23615
  return t;
23616
23616
  },
23617
23617
  get treeDataLoading() {
23618
23618
  const {
23619
23619
  state: t
23620
- } = Me(e).content.getDataStuffByID(e.options_query_id);
23620
+ } = Oe(e).content.getDataStuffByID(e.options_query_id);
23621
23621
  return t === "loading";
23622
23622
  },
23623
23623
  get defaultSelection() {
@@ -23641,7 +23641,7 @@ const Ud = b.compose("FilterTreeSelectConfigMeta", b.model({
23641
23641
  },
23642
23642
  applyDefaultSelection() {
23643
23643
  const t = Fe(e, 1).key;
23644
- Me(e).content.filters.setValueByKey(t, e.defaultSelection);
23644
+ Oe(e).content.filters.setValueByKey(t, e.defaultSelection);
23645
23645
  },
23646
23646
  afterCreate() {
23647
23647
  Rt(e, yt(() => JSON.stringify(e.defaultSelection), this.applyDefaultSelection, {
@@ -23780,7 +23780,7 @@ const Xd = b.model("ViewDivisionConfig", {
23780
23780
  const {
23781
23781
  enabled: t,
23782
23782
  func_content: n
23783
- } = e, r = Fe(e, 2), o = Me(e);
23783
+ } = e, r = Fe(e, 2), o = Oe(e);
23784
23784
  if (!t)
23785
23785
  return r.name;
23786
23786
  try {
@@ -23921,7 +23921,7 @@ const Xd = b.model("ViewDivisionConfig", {
23921
23921
  })), zD = () => Zd.create({
23922
23922
  _name: X.Modal,
23923
23923
  tabs: []
23924
- }), $D = b.model({
23924
+ }), LD = b.model({
23925
23925
  id: b.identifier,
23926
23926
  name: b.string,
23927
23927
  type: b.enumeration("EViewComponentType", [X.Division, X.Modal, X.Tabs]),
@@ -23975,7 +23975,7 @@ const Xd = b.model("ViewDivisionConfig", {
23975
23975
  type: b.enumeration("DataSourceType", [je.HTTP, je.MySQL, je.Postgresql]),
23976
23976
  key: b.string,
23977
23977
  config: b.frozen()
23978
- }), LD = b.model("DataSourcesMetaModel", {
23978
+ }), $D = b.model("DataSourcesMetaModel", {
23979
23979
  list: b.optional(b.array(eu), [])
23980
23980
  }).views((e) => ({
23981
23981
  find({
@@ -24041,7 +24041,7 @@ function nu(e) {
24041
24041
  current: e
24042
24042
  });
24043
24043
  }
24044
- const ED = b.compose("ViewRenderModel", $D, b.model({
24044
+ const ED = b.compose("ViewRenderModel", LD, b.model({
24045
24045
  tab: b.optional(b.string, "")
24046
24046
  // FIXME: manage this state in a better way
24047
24047
  })).views((e) => ({
@@ -24083,7 +24083,7 @@ const ED = b.compose("ViewRenderModel", $D, b.model({
24083
24083
  visibleViewIDs: b.array(b.string)
24084
24084
  }).views((e) => ({
24085
24085
  get json() {
24086
- return e.current.map((t) => Li(t.json));
24086
+ return e.current.map((t) => $i(t.json));
24087
24087
  },
24088
24088
  get idMap() {
24089
24089
  const t = /* @__PURE__ */ new Map();
@@ -24136,7 +24136,7 @@ function RD(e) {
24136
24136
  }
24137
24137
  const iu = mD.views((e) => ({
24138
24138
  get contentModel() {
24139
- return Me(e).content;
24139
+ return Oe(e).content;
24140
24140
  }
24141
24141
  })).views((e) => ({
24142
24142
  get queries() {
@@ -24171,7 +24171,7 @@ const iu = mD.views((e) => ({
24171
24171
  e.queries.forEach((t) => t.fetchData());
24172
24172
  },
24173
24173
  downloadData() {
24174
- Me(e).content.queries.downloadDataByQueryIDs(e.queryIDs);
24174
+ Oe(e).content.queries.downloadDataByQueryIDs(e.queryIDs);
24175
24175
  }
24176
24176
  }));
24177
24177
  function OD(e) {
@@ -24305,7 +24305,7 @@ const PD = fD.views((e) => ({
24305
24305
  get conditionOptions() {
24306
24306
  if (!Ms(e))
24307
24307
  return [];
24308
- const t = Me(e).content, {
24308
+ const t = Oe(e).content, {
24309
24309
  context: n
24310
24310
  } = t.payloadForSQL, r = Object.keys(n).map((a) => ({
24311
24311
  group: "Context",
@@ -24328,7 +24328,7 @@ const PD = fD.views((e) => ({
24328
24328
  } = e;
24329
24329
  if (t.length === 0)
24330
24330
  return [];
24331
- const n = Me(e).content.payloadForSQL;
24331
+ const n = Oe(e).content.payloadForSQL;
24332
24332
  return t.filter((r) => {
24333
24333
  const o = k.get(n, r);
24334
24334
  return Array.isArray(o) ? o.length === 0 : typeof o == "number" ? Number.isNaN(o) : !o;
@@ -24341,7 +24341,7 @@ const PD = fD.views((e) => ({
24341
24341
  } = e;
24342
24342
  if (t.length === 0)
24343
24343
  return "";
24344
- const n = Me(e).content.payloadForSQL, r = [...t].reduce((o, a) => (o[a] = k.get(n, a), o), {});
24344
+ const n = Oe(e).content.payloadForSQL, r = [...t].reduce((o, a) => (o[a] = k.get(n, a), o), {});
24345
24345
  return JSON.stringify(r);
24346
24346
  },
24347
24347
  get runByConditionsMet() {
@@ -24355,7 +24355,7 @@ const PD = fD.views((e) => ({
24355
24355
  };
24356
24356
  const {
24357
24357
  keyLabelMap: t
24358
- } = Me(e).content.filters, n = e.unmetRunByConditions.filter((o) => o.startsWith("context.")).map((o) => o.split("context.")[0]), r = e.unmetRunByConditions.filter((o) => o.startsWith("filters.")).map((o) => k.get({
24358
+ } = Oe(e).content.filters, n = e.unmetRunByConditions.filter((o) => o.startsWith("context.")).map((o) => o.split("context.")[0]), r = e.unmetRunByConditions.filter((o) => o.startsWith("filters.")).map((o) => k.get({
24359
24359
  filters: t
24360
24360
  }, o)).filter((o) => !!o);
24361
24361
  return {
@@ -24397,8 +24397,14 @@ const jD = b.compose("QueryRenderModel", PD, b.model({
24397
24397
  data: b.optional(b.frozen([]), []),
24398
24398
  error: b.frozen()
24399
24399
  })).views((e) => ({
24400
+ get rootModel() {
24401
+ return Oe(e);
24402
+ },
24403
+ get contentModel() {
24404
+ return this.rootModel.content;
24405
+ },
24400
24406
  get formattedSQL() {
24401
- const t = Me(e).content.payloadForSQL;
24407
+ const t = this.contentModel.payloadForSQL;
24402
24408
  return ha(e.sql, t);
24403
24409
  },
24404
24410
  get typedAsSQL() {
@@ -24412,7 +24418,7 @@ const jD = b.compose("QueryRenderModel", PD, b.model({
24412
24418
  key: t,
24413
24419
  type: n
24414
24420
  } = e;
24415
- return Me(e).datasources.find({
24421
+ return this.rootModel.datasources.find({
24416
24422
  type: n,
24417
24423
  key: t
24418
24424
  });
@@ -24421,7 +24427,7 @@ const jD = b.compose("QueryRenderModel", PD, b.model({
24421
24427
  const {
24422
24428
  context: t,
24423
24429
  filters: n
24424
- } = Me(e).content.payloadForSQL, {
24430
+ } = this.contentModel.payloadForSQL, {
24425
24431
  name: r,
24426
24432
  pre_process: o
24427
24433
  } = e.json, a = ND(o, t, n);
@@ -24455,7 +24461,7 @@ const jD = b.compose("QueryRenderModel", PD, b.model({
24455
24461
  if (e.valid && ((t = e.controller) == null || t.abort(), !!e.runByConditionsMet)) {
24456
24462
  e.controller = new AbortController(), e.state = "loading";
24457
24463
  try {
24458
- const n = Me(e).content.payloadForSQL;
24464
+ const n = e.contentModel.payloadForSQL;
24459
24465
  e.data = yield* wn(cm({
24460
24466
  payload: n,
24461
24467
  name: e.name,
@@ -24512,8 +24518,8 @@ const jD = b.compose("QueryRenderModel", PD, b.model({
24512
24518
  })).actions((e) => ({
24513
24519
  afterCreate() {
24514
24520
  Rt(e, yt(() => {
24515
- var t, n;
24516
- return e.typedAsHTTP ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(t = e.datasource) == null ? void 0 : t.id}` : `${e.inUse}--${e.id}--${e.key}--${e.formattedSQL}--${e.pre_process}--${e.post_process}--${(n = e.datasource) == null ? void 0 : n.id}`;
24521
+ var n;
24522
+ return e.typedAsHTTP ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(n = e.datasource) == null ? void 0 : n.id}` : [e.inUse, e.id, e.key, e.formattedSQL, e.pre_process, e.post_process].join("--");
24517
24523
  }, e.fetchData, {
24518
24524
  fireImmediately: !0,
24519
24525
  delay: 0
@@ -24713,7 +24719,7 @@ const KD = (e) => new UD(e), XD = D(({
24713
24719
  } = o, {
24714
24720
  viewPanelInFullScreen: l,
24715
24721
  inFullScreen: c
24716
- } = R.useContext($i), d = () => {
24722
+ } = R.useContext(Li), d = () => {
24717
24723
  n.duplicatePanelByID(s, e.id);
24718
24724
  }, p = () => {
24719
24725
  t.editor.open(["_VIEWS_", e.id, "_PANELS_", s]);
@@ -24977,7 +24983,7 @@ const oI = D(function({
24977
24983
  position: "relative",
24978
24984
  width: "100%"
24979
24985
  }, children: [
24980
- /* @__PURE__ */ i($n, { visible: e.dataLoading, exitTransitionDuration: 0 }),
24986
+ /* @__PURE__ */ i(Ln, { visible: e.dataLoading, exitTransitionDuration: 0 }),
24981
24987
  !e.canRenderViz && /* @__PURE__ */ i(aI, { panel: e }),
24982
24988
  e.canRenderViz && /* @__PURE__ */ i(oI, { data: e.data })
24983
24989
  ] })), sI = {
@@ -25037,7 +25043,7 @@ const hI = D(({
25037
25043
  } = t, {
25038
25044
  viewPanelInFullScreen: o,
25039
25045
  inFullScreen: a
25040
- } = R.useContext($i), s = R.useCallback(() => {
25046
+ } = R.useContext(Li), s = R.useCallback(() => {
25041
25047
  o(r);
25042
25048
  }, [r, o]), l = !a && e.type !== X.Modal;
25043
25049
  return uI(t.viz.type) ? /* @__PURE__ */ i(V, { sx: {
@@ -25408,11 +25414,11 @@ const MI = D(({
25408
25414
  marginLeft: "auto",
25409
25415
  marginRight: "auto"
25410
25416
  }), n;
25411
- }, $I = (e) => e.color ? {
25417
+ }, LI = (e) => e.color ? {
25412
25418
  "&[data-active], &[data-active]:hover": {
25413
25419
  borderColor: e.color ? e.color : "..."
25414
25420
  }
25415
- } : {}, LI = D(({
25421
+ } : {}, $I = D(({
25416
25422
  view: e
25417
25423
  }) => {
25418
25424
  const t = Ft(), n = Ce(), r = z(() => n.views.options.filter((l) => l.type === X.Division), [e.id, n.views.options]), o = e.config, a = (l) => t.openConfirmModal({
@@ -25432,7 +25438,7 @@ const MI = D(({
25432
25438
  }), s = o.tabs.length === 0;
25433
25439
  return /* @__PURE__ */ u(g, { className: "preview-view-tabs", variant: o.variant, orientation: o.orientation, value: e.tab, onTabChange: e.setTab, styles: zI(o), children: [
25434
25440
  /* @__PURE__ */ u(g.List, { grow: o.grow, children: [
25435
- o.tabs.map((l) => /* @__PURE__ */ i(g.Tab, { value: l.id, sx: $I(l), children: l.name ?? l.id }, l.id)),
25441
+ o.tabs.map((l) => /* @__PURE__ */ i(g.Tab, { value: l.id, sx: LI(l), children: l.name ?? l.id }, l.id)),
25436
25442
  /* @__PURE__ */ i(g.Tab, { onClick: o.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(Ge, { size: 18, color: "#228be6" }) })
25437
25443
  ] }),
25438
25444
  o.tabs.map((l, c) => {
@@ -25454,7 +25460,7 @@ const MI = D(({
25454
25460
  position: "relative",
25455
25461
  zIndex: 200
25456
25462
  }, children: [
25457
- /* @__PURE__ */ i(L, { label: "Tab Name", value: l.name, onChange: (p) => l.setName(p.currentTarget.value) }),
25463
+ /* @__PURE__ */ i($, { label: "Tab Name", value: l.name, onChange: (p) => l.setName(p.currentTarget.value) }),
25458
25464
  /* @__PURE__ */ i(F, { label: "View", value: l.view_id, onChange: l.setViewID, data: r }),
25459
25465
  /* @__PURE__ */ i(Zo, { label: "Color", value: l.color, onChange: l.setColor, disabled: o.variant !== "default" }),
25460
25466
  d && /* @__PURE__ */ u(I, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ i(Zh, { size: 18 }), gradient: {
@@ -25479,7 +25485,7 @@ const MI = D(({
25479
25485
  case X.Modal:
25480
25486
  return /* @__PURE__ */ i(MI, { view: e, children: t });
25481
25487
  case X.Tabs:
25482
- return /* @__PURE__ */ i(LI, { view: e });
25488
+ return /* @__PURE__ */ i($I, { view: e });
25483
25489
  case X.Division:
25484
25490
  default:
25485
25491
  return /* @__PURE__ */ i(II, { view: e, children: t });
@@ -25487,7 +25493,7 @@ const MI = D(({
25487
25493
  }), EI = D(function({
25488
25494
  view: t
25489
25495
  }) {
25490
- return /* @__PURE__ */ i($i.Provider, { value: {
25496
+ return /* @__PURE__ */ i(Li.Provider, { value: {
25491
25497
  viewPanelInFullScreen: k.noop,
25492
25498
  inFullScreen: !1
25493
25499
  }, children: /* @__PURE__ */ i(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(AI, { view: t, children: /* @__PURE__ */ u(V, { sx: {
@@ -25505,13 +25511,13 @@ const MI = D(({
25505
25511
  const {
25506
25512
  fullScreenPanelID: n,
25507
25513
  setFullScreenPanelID: r
25508
- } = $m(), {
25514
+ } = Lm(), {
25509
25515
  viewPanelInFullScreen: o,
25510
25516
  exitFullScreen: a,
25511
25517
  inFullScreen: s,
25512
25518
  fullScreenPanel: l
25513
25519
  } = gI(t, n, r);
25514
- return /* @__PURE__ */ i($i.Provider, { value: {
25520
+ return /* @__PURE__ */ i(Li.Provider, { value: {
25515
25521
  viewPanelInFullScreen: o,
25516
25522
  inFullScreen: s
25517
25523
  }, children: /* @__PURE__ */ u(V, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
@@ -26073,7 +26079,7 @@ const QI = b.model("EditorModel", {
26073
26079
  get navOptions() {
26074
26080
  const {
26075
26081
  content: t
26076
- } = Me(e), {
26082
+ } = Oe(e), {
26077
26083
  filters: n,
26078
26084
  views: r,
26079
26085
  sqlSnippets: o,
@@ -26159,7 +26165,7 @@ const QI = b.model("EditorModel", {
26159
26165
  }
26160
26166
  })).actions((e) => ({
26161
26167
  moveToView(t, n) {
26162
- Me(e).content.views.findByID(t).removePanelID(e.id), Me(e).content.views.findByID(n).appendPanelID(e.id), Me(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
26168
+ Oe(e).content.views.findByID(t).removePanelID(e.id), Oe(e).content.views.findByID(n).appendPanelID(e.id), Oe(e).editor.setPath(["_VIEWS_", n, "_PANELS_", e.id]);
26163
26169
  }
26164
26170
  })), KI = b.compose("PanelsModel", ou, b.model({
26165
26171
  list: b.optional(b.array(UI), [])
@@ -26244,7 +26250,7 @@ const QI = b.model("EditorModel", {
26244
26250
  }));
26245
26251
  },
26246
26252
  get editorOptions() {
26247
- const t = Me(e).content.panels;
26253
+ const t = Oe(e).content.panels;
26248
26254
  return e.current.map((n) => ({
26249
26255
  label: n.name,
26250
26256
  value: n.id,
@@ -26279,7 +26285,7 @@ const QI = b.model("EditorModel", {
26279
26285
  if (n === -1)
26280
26286
  return;
26281
26287
  const r = e.current[n];
26282
- Me(e).content.panels.removeByIDs(r.panelIDs), e.current.splice(n, 1);
26288
+ Oe(e).content.panels.removeByIDs(r.panelIDs), e.current.splice(n, 1);
26283
26289
  },
26284
26290
  replaceByIndex(t, n) {
26285
26291
  e.current.splice(t, 1, n);
@@ -26358,7 +26364,7 @@ const JI = b.model({
26358
26364
  return !ke(Zt(de(e, t)), de(e.origin, t));
26359
26365
  },
26360
26366
  get queriesChanged() {
26361
- const t = "queries.current", n = Zt(de(e, t)).map((r) => Ll(r, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process"]));
26367
+ const t = "queries.current", n = Zt(de(e, t)).map((r) => $l(r, ["id", "name", "key", "type", "sql", "run_by", "react_to", "pre_process", "post_process"]));
26362
26368
  return !ke(n, de(e.origin, t));
26363
26369
  },
26364
26370
  get sqlSnippetsChanged() {
@@ -26555,7 +26561,7 @@ const JI = b.model({
26555
26561
  },
26556
26562
  postProcessor(e) {
26557
26563
  delete e.origin;
26558
- const t = uc(e.queries.current.map((n) => Ll(n, ["id", "key", "type", "sql"])));
26564
+ const t = uc(e.queries.current.map((n) => $l(n, ["id", "key", "type", "sql"])));
26559
26565
  return Pe({}, {
26560
26566
  queries: {
26561
26567
  current: t
@@ -26728,7 +26734,7 @@ function Tu(e, t) {
26728
26734
  return;
26729
26735
  }
26730
26736
  function c(h) {
26731
- return $l(h, (f) => {
26737
+ return Ll(h, (f) => {
26732
26738
  if (s && typeof f == "string")
26733
26739
  return encodeURIComponent(f);
26734
26740
  });
@@ -26959,12 +26965,12 @@ function Iu(e, t, n) {
26959
26965
  function dM(e, t, n) {
26960
26966
  return e * t + (e - 1) * n;
26961
26967
  }
26962
- const oi = 25, rs = 40, Mu = 25, is = 350, uM = 150, hM = 150, zu = 150, ul = 300, Ur = 40, $u = 25, pM = 300;
26968
+ const oi = 25, rs = 40, Mu = 25, is = 350, uM = 150, hM = 150, zu = 150, ul = 300, Ur = 40, Lu = 25, pM = 300;
26963
26969
  function mM(e, t) {
26964
26970
  const n = k.keyBy(t, (o) => o.id), r = [];
26965
26971
  return e.current.forEach((o, a) => {
26966
26972
  o.panelIDs.forEach((s, l) => {
26967
- const c = Iu(l, Ur, $u) + rs, d = n[s];
26973
+ const c = Iu(l, Ur, Lu) + rs, d = n[s];
26968
26974
  if (!d) {
26969
26975
  r.push({
26970
26976
  id: s,
@@ -27015,7 +27021,7 @@ const fM = {
27015
27021
  }, gM = OI;
27016
27022
  function bM(e) {
27017
27023
  return e.current.map((n, r) => {
27018
- const o = dM(n.panelIDs.length, Ur, $u) + rs + Mu;
27024
+ const o = dM(n.panelIDs.length, Ur, Lu) + rs + Mu;
27019
27025
  let a = [];
27020
27026
  return n.type === X.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
27021
27027
  id: n.id,
@@ -27250,7 +27256,7 @@ const IM = {
27250
27256
  zIndex: 300,
27251
27257
  children: /* @__PURE__ */ i(MM, {})
27252
27258
  }
27253
- )), $M = {
27259
+ )), LM = {
27254
27260
  "> button": {
27255
27261
  "&:first-of-type": {
27256
27262
  borderTopRightRadius: 0,
@@ -27272,7 +27278,7 @@ const IM = {
27272
27278
  }
27273
27279
  }
27274
27280
  };
27275
- function LM({
27281
+ function $M({
27276
27282
  onClick: e,
27277
27283
  name: t,
27278
27284
  active: n,
@@ -27313,7 +27319,7 @@ const AM = D(() => {
27313
27319
  return /* @__PURE__ */ u(V, { sx: {
27314
27320
  position: "relative"
27315
27321
  }, children: [
27316
- t.views.options.map((o) => /* @__PURE__ */ i(LM, { active: t.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
27322
+ t.views.options.map((o) => /* @__PURE__ */ i($M, { active: t.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
27317
27323
  /* @__PURE__ */ i(A, { variant: "dashed" }),
27318
27324
  /* @__PURE__ */ i(I, { variant: "subtle", rightIcon: /* @__PURE__ */ i(Ht, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: t.views.addARandomNewView, sx: {
27319
27325
  width: "100%",
@@ -27348,7 +27354,7 @@ const AM = D(() => {
27348
27354
  }, zIndex: 299, children: [
27349
27355
  /* @__PURE__ */ u(Jt.Section, { children: [
27350
27356
  /* @__PURE__ */ u(x, { grow: !0, spacing: 0, sx: {
27351
- ...$M,
27357
+ ...LM,
27352
27358
  button: {
27353
27359
  borderWidth: 0,
27354
27360
  borderBottomWidth: 1,
@@ -27459,7 +27465,7 @@ const AM = D(() => {
27459
27465
  value: string;
27460
27466
  description?: string; // optional
27461
27467
  }
27462
- `, Lu = () => {
27468
+ `, $u = () => {
27463
27469
  const [e, t] = Q(!1);
27464
27470
  return /* @__PURE__ */ u(j, { children: [
27465
27471
  /* @__PURE__ */ i(I, { variant: "subtle", compact: !0, onClick: () => t((n) => !n), children: e ? "Close" : "Click to see expected data structure" }),
@@ -27476,7 +27482,7 @@ const AM = D(() => {
27476
27482
  }, r = t.static_options, o = [...r];
27477
27483
  return /* @__PURE__ */ u(j, { children: [
27478
27484
  /* @__PURE__ */ i(pe, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
27479
- /* @__PURE__ */ i(L, { label: "Width", description: "At least 160px", value: t.min_width, onChange: (a) => t.setMinWidth(a.currentTarget.value), placeholder: "default: 200px" }),
27485
+ /* @__PURE__ */ i($, { label: "Width", description: "At least 160px", value: t.min_width, onChange: (a) => t.setMinWidth(a.currentTarget.value), placeholder: "default: 200px" }),
27480
27486
  /* @__PURE__ */ i(A, { label: "Configure options", labelPosition: "center" }),
27481
27487
  /* @__PURE__ */ u(S, { spacing: 10, sx: {
27482
27488
  position: "relative",
@@ -27489,7 +27495,7 @@ const AM = D(() => {
27489
27495
  top: "-5px",
27490
27496
  bottom: "-5px"
27491
27497
  } }),
27492
- /* @__PURE__ */ i(Ln, { sx: {
27498
+ /* @__PURE__ */ i($n, { sx: {
27493
27499
  position: "absolute",
27494
27500
  top: 0,
27495
27501
  left: 0,
@@ -27502,12 +27508,12 @@ const AM = D(() => {
27502
27508
  r.map((a, s) => /* @__PURE__ */ u(fn, { gap: 10, sx: {
27503
27509
  position: "relative"
27504
27510
  }, pr: "40px", children: [
27505
- /* @__PURE__ */ i(L, { label: "Label", required: !0, value: t.static_options[s].label, onChange: (l) => {
27511
+ /* @__PURE__ */ i($, { label: "Label", required: !0, value: t.static_options[s].label, onChange: (l) => {
27506
27512
  t.static_options[s].setLabel(l.currentTarget.value);
27507
27513
  }, sx: {
27508
27514
  flexGrow: 1
27509
27515
  } }),
27510
- /* @__PURE__ */ i(L, { label: "Value", required: !0, value: t.static_options[s].value, onChange: (l) => {
27516
+ /* @__PURE__ */ i($, { label: "Value", required: !0, value: t.static_options[s].value, onChange: (l) => {
27511
27517
  t.static_options[s].setValue(l.currentTarget.value);
27512
27518
  }, sx: {
27513
27519
  flexGrow: 1
@@ -27525,7 +27531,7 @@ const AM = D(() => {
27525
27531
  /* @__PURE__ */ i(A, { label: "Or fetch options from database", labelPosition: "center" }),
27526
27532
  /* @__PURE__ */ i(ie, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
27527
27533
  /* @__PURE__ */ i(os, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
27528
- /* @__PURE__ */ i(Lu, {})
27534
+ /* @__PURE__ */ i($u, {})
27529
27535
  ] });
27530
27536
  }), NM = D(function({
27531
27537
  config: t
@@ -27541,7 +27547,7 @@ const AM = D(() => {
27541
27547
  }, ...r];
27542
27548
  return /* @__PURE__ */ u(j, { children: [
27543
27549
  /* @__PURE__ */ i(pe, { checked: t.required, onChange: (a) => t.setRequired(a.currentTarget.checked), label: "Required" }),
27544
- /* @__PURE__ */ i(L, { label: "Width", value: t.width, onChange: (a) => t.setWidth(a.currentTarget.value), placeholder: "200px" }),
27550
+ /* @__PURE__ */ i($, { label: "Width", value: t.width, onChange: (a) => t.setWidth(a.currentTarget.value), placeholder: "200px" }),
27545
27551
  /* @__PURE__ */ i(A, { label: "Configure options", labelPosition: "center" }),
27546
27552
  /* @__PURE__ */ u(S, { spacing: 10, sx: {
27547
27553
  position: "relative",
@@ -27554,7 +27560,7 @@ const AM = D(() => {
27554
27560
  top: "-5px",
27555
27561
  bottom: "-5px"
27556
27562
  } }),
27557
- /* @__PURE__ */ i(Ln, { sx: {
27563
+ /* @__PURE__ */ i($n, { sx: {
27558
27564
  position: "absolute",
27559
27565
  top: 0,
27560
27566
  left: 0,
@@ -27567,12 +27573,12 @@ const AM = D(() => {
27567
27573
  r.map((a, s) => /* @__PURE__ */ u(fn, { gap: 10, sx: {
27568
27574
  position: "relative"
27569
27575
  }, pr: "40px", children: [
27570
- /* @__PURE__ */ i(L, { label: "Label", required: !0, value: t.static_options[s].label, onChange: (l) => {
27576
+ /* @__PURE__ */ i($, { label: "Label", required: !0, value: t.static_options[s].label, onChange: (l) => {
27571
27577
  t.static_options[s].setLabel(l.currentTarget.value);
27572
27578
  }, sx: {
27573
27579
  flexGrow: 1
27574
27580
  } }),
27575
- /* @__PURE__ */ i(L, { label: "Value", required: !0, value: t.static_options[s].value, onChange: (l) => {
27581
+ /* @__PURE__ */ i($, { label: "Value", required: !0, value: t.static_options[s].value, onChange: (l) => {
27576
27582
  t.static_options[s].setValue(l.currentTarget.value);
27577
27583
  }, sx: {
27578
27584
  flexGrow: 1
@@ -27590,13 +27596,13 @@ const AM = D(() => {
27590
27596
  /* @__PURE__ */ i(A, { label: "Or fetch options from database", labelPosition: "center" }),
27591
27597
  /* @__PURE__ */ i(pe, { checked: t.default_selection_count === 1, onChange: (a) => t.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: "Select the first option by default" }),
27592
27598
  /* @__PURE__ */ i(os, { value: t.options_query_id, onChange: t.setOptionsQueryID }),
27593
- /* @__PURE__ */ i(Lu, {})
27599
+ /* @__PURE__ */ i($u, {})
27594
27600
  ] });
27595
27601
  }), BM = D(function({
27596
27602
  config: t
27597
27603
  }) {
27598
27604
  return /* @__PURE__ */ u(j, { children: [
27599
- /* @__PURE__ */ i(L, { label: "Default Value", value: t.default_value, onChange: (n) => {
27605
+ /* @__PURE__ */ i($, { label: "Default Value", value: t.default_value, onChange: (n) => {
27600
27606
  t.setDefaultValue(n.currentTarget.value);
27601
27607
  } }),
27602
27608
  /* @__PURE__ */ i(pe, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" })
@@ -27620,7 +27626,7 @@ const AM = D(() => {
27620
27626
  }) {
27621
27627
  return /* @__PURE__ */ u(j, { children: [
27622
27628
  /* @__PURE__ */ i(pe, { checked: t.required, onChange: (n) => t.setRequired(n.currentTarget.checked), label: "Required" }),
27623
- /* @__PURE__ */ i(L, { label: "Min-width", value: t.min_width, onChange: (n) => t.setMinWidth(n.currentTarget.value), placeholder: "200px" }),
27629
+ /* @__PURE__ */ i($, { label: "Min-width", value: t.min_width, onChange: (n) => t.setMinWidth(n.currentTarget.value), placeholder: "200px" }),
27624
27630
  /* @__PURE__ */ i(A, { label: "Fetch options from database", labelPosition: "center" }),
27625
27631
  /* @__PURE__ */ i(pe, { checked: t.treeCheckStrictly, onChange: (n) => t.setTreeCheckStrictly(n.currentTarget.checked), label: "Parent and children nodes are not associated" }),
27626
27632
  /* @__PURE__ */ i(ie, { value: t.default_selection_count, onChange: t.setDefaultSelectionCount, label: "Select first N options by default" }),
@@ -27688,10 +27694,10 @@ const AM = D(() => {
27688
27694
  t.auto_submit_supported && /* @__PURE__ */ i(pe, { label: "Submit automatically", checked: t.auto_submit, onChange: (o) => t.setAutoSubmit(o.currentTarget.checked), mt: 22 })
27689
27695
  ] }),
27690
27696
  /* @__PURE__ */ i(fr, { label: "Visible in...", data: n.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
27691
- /* @__PURE__ */ i(L, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (o) => {
27697
+ /* @__PURE__ */ i($, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (o) => {
27692
27698
  t.setKey(o.currentTarget.value);
27693
27699
  } }),
27694
- /* @__PURE__ */ i(L, { label: "Label", placeholder: "Label for this field", required: !0, value: t.label, onChange: (o) => {
27700
+ /* @__PURE__ */ i($, { label: "Label", placeholder: "Label for this field", required: !0, value: t.label, onChange: (o) => {
27695
27701
  t.setLabel(o.currentTarget.value);
27696
27702
  } }),
27697
27703
  /* @__PURE__ */ i(F, { label: "Widget", data: YM, required: !0, value: t.type, onChange: t.setType }),
@@ -27842,7 +27848,7 @@ const AM = D(() => {
27842
27848
  }, [a, r]);
27843
27849
  return W(() => {
27844
27850
  o(t);
27845
- }, [t]), /* @__PURE__ */ i(L, { value: r, onChange: o, label: /* @__PURE__ */ u(x, { children: [
27851
+ }, [t]), /* @__PURE__ */ i($, { value: r, onChange: o, label: /* @__PURE__ */ u(x, { children: [
27846
27852
  /* @__PURE__ */ i(C, { children: "Panel Title" }),
27847
27853
  /* @__PURE__ */ i(U, { variant: "subtle", color: "blue", disabled: !a, onClick: s, children: /* @__PURE__ */ i(ve, { size: 20 }) })
27848
27854
  ] }), styles: {
@@ -27972,7 +27978,7 @@ const nz = ({
27972
27978
  position: "relative",
27973
27979
  overflow: "auto"
27974
27980
  }, children: [
27975
- /* @__PURE__ */ i($n, { visible: s }),
27981
+ /* @__PURE__ */ i(Ln, { visible: s }),
27976
27982
  /* @__PURE__ */ i(nz, { queryID: t }),
27977
27983
  /* @__PURE__ */ i(Au, { data: d })
27978
27984
  ] })
@@ -28127,7 +28133,7 @@ const Eu = Xn((e) => ({
28127
28133
  };
28128
28134
  return /* @__PURE__ */ u(V, { px: "sm", py: "md", ref: a, children: [
28129
28135
  /* @__PURE__ */ u(x, { grow: !0, noWrap: !0, children: [
28130
- /* @__PURE__ */ i(L, { label: "Name", required: !0, value: t.name, onChange: (l) => s("name", l.currentTarget.value) }),
28136
+ /* @__PURE__ */ i($, { label: "Name", required: !0, value: t.name, onChange: (l) => s("name", l.currentTarget.value) }),
28131
28137
  /* @__PURE__ */ i(J, { label: "Data Field", required: !0, value: t.data_field, onChange: (l) => s("data_field", l) })
28132
28138
  ] }),
28133
28139
  /* @__PURE__ */ i(wi, { label: "Aggregation", value: t.aggregation, onChange: (l) => s("aggregation", l) }),
@@ -28400,7 +28406,7 @@ const Sz = D(({
28400
28406
  /* @__PURE__ */ i(g.Tab, { value: "Interactions", children: "Interactions" })
28401
28407
  ] }),
28402
28408
  /* @__PURE__ */ u(g.Panel, { value: "Data", children: [
28403
- /* @__PURE__ */ i($n, { visible: c, exitTransitionDuration: 0 }),
28409
+ /* @__PURE__ */ i(Ln, { visible: c, exitTransitionDuration: 0 }),
28404
28410
  /* @__PURE__ */ i(rz, {})
28405
28411
  ] }),
28406
28412
  /* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(pl, { children: /* @__PURE__ */ i(ez, {}) }) }),
@@ -28583,7 +28589,7 @@ const Sz = D(({
28583
28589
  /* @__PURE__ */ i("td", { children: r.column_name })
28584
28590
  ] }, r.index_name)) })
28585
28591
  ] });
28586
- }), $z = D(({
28592
+ }), Lz = D(({
28587
28593
  dataSource: e
28588
28594
  }) => {
28589
28595
  const {
@@ -28636,13 +28642,13 @@ const Sz = D(({
28636
28642
  /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(mr, { value: r.comment }) })
28637
28643
  ] }, r.index_name)) })
28638
28644
  ] });
28639
- }), Lz = D(({
28645
+ }), $z = D(({
28640
28646
  dataSource: e
28641
28647
  }) => {
28642
28648
  const {
28643
28649
  indexes: t
28644
28650
  } = e;
28645
- return t.loading || t.empty ? null : e.type === je.MySQL ? /* @__PURE__ */ i(zz, { dataSource: e }) : e.type === je.Postgresql ? /* @__PURE__ */ i($z, { dataSource: e }) : null;
28651
+ return t.loading || t.empty ? null : e.type === je.MySQL ? /* @__PURE__ */ i(zz, { dataSource: e }) : e.type === je.Postgresql ? /* @__PURE__ */ i(Lz, { dataSource: e }) : null;
28646
28652
  }), Az = D(({
28647
28653
  dataSource: e
28648
28654
  }) => /* @__PURE__ */ u(S, { spacing: 40, pt: 10, sx: {
@@ -28651,7 +28657,7 @@ const Sz = D(({
28651
28657
  position: "relative"
28652
28658
  }, children: [
28653
28659
  /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(Mz, { dataSource: e }) }),
28654
- /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i(Lz, { dataSource: e }) })
28660
+ /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ i($z, { dataSource: e }) })
28655
28661
  ] }));
28656
28662
  function Ez({
28657
28663
  table_type: e
@@ -28679,7 +28685,7 @@ const Rz = D(({
28679
28685
  height: "100%",
28680
28686
  overflow: "hidden",
28681
28687
  position: "relative"
28682
- }, children: /* @__PURE__ */ i($n, { visible: e }) }), Fz = [{
28688
+ }, children: /* @__PURE__ */ i(Ln, { visible: e }) }), Fz = [{
28683
28689
  label: "10",
28684
28690
  value: "10"
28685
28691
  }, {
@@ -28748,7 +28754,7 @@ const Rz = D(({
28748
28754
  overflow: "auto",
28749
28755
  position: "relative"
28750
28756
  }, children: [
28751
- /* @__PURE__ */ i($n, { visible: t.loading, overlayBlur: 2 }),
28757
+ /* @__PURE__ */ i(Ln, { visible: t.loading, overlayBlur: 2 }),
28752
28758
  /* @__PURE__ */ i(Au, { data: t.data })
28753
28759
  ] })
28754
28760
  ] });
@@ -28901,13 +28907,13 @@ const Rz = D(({
28901
28907
  const [t, n] = Q(e.name);
28902
28908
  return W(() => {
28903
28909
  n(e.name);
28904
- }, [e.name]), /* @__PURE__ */ i(Ln, { ml: 20, mt: 20, sx: {
28910
+ }, [e.name]), /* @__PURE__ */ i($n, { ml: 20, mt: 20, sx: {
28905
28911
  maxWidth: "600px"
28906
28912
  }, children: /* @__PURE__ */ u(S, { spacing: 10, sx: {
28907
28913
  width: "100%"
28908
28914
  }, children: [
28909
28915
  /* @__PURE__ */ i(A, { mb: -10, variant: "dashed", label: "Basics", labelPosition: "center" }),
28910
- /* @__PURE__ */ i(L, { placeholder: "A unique name", label: "Name", required: !0, sx: {
28916
+ /* @__PURE__ */ i($, { placeholder: "A unique name", label: "Name", required: !0, sx: {
28911
28917
  flex: 1
28912
28918
  }, value: t, onChange: (r) => {
28913
28919
  n(r.currentTarget.value);
@@ -29136,7 +29142,7 @@ WHERE
29136
29142
  enabled: !1
29137
29143
  },
29138
29144
  readOnly: !0
29139
- } }), e$ = D(({
29145
+ } }), eL = D(({
29140
29146
  value: e
29141
29147
  }) => {
29142
29148
  const n = Ue().payloadForSQL, r = R.useMemo(() => ha(e, n), [e, n]);
@@ -29146,7 +29152,7 @@ WHERE
29146
29152
  `),
29147
29153
  post: ["function process_result(data, utils) {", " // process data and return the result", " return data", "}"].join(`
29148
29154
  `)
29149
- }, t$ = D(({
29155
+ }, tL = D(({
29150
29156
  queryModel: e
29151
29157
  }) => e.typedAsSQL ? /* @__PURE__ */ u(g, { defaultValue: "Edit", orientation: "vertical", sx: {
29152
29158
  flexGrow: 1
@@ -29168,7 +29174,7 @@ WHERE
29168
29174
  /* @__PURE__ */ i(g.Panel, { value: "Edit", sx: {
29169
29175
  position: "relative"
29170
29176
  }, p: "sm", children: /* @__PURE__ */ i(Jz, { value: e.sql, onChange: e.setSQL, defaultValue: "SELECT 1" }) }),
29171
- /* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(e$, { value: e.sql }) }),
29177
+ /* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(eL, { value: e.sql }) }),
29172
29178
  /* @__PURE__ */ i(g.Panel, { value: "pre_process", sx: {
29173
29179
  position: "relative"
29174
29180
  }, p: "sm", children: /* @__PURE__ */ i(Cr, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: gl.pre }) }),
@@ -29177,7 +29183,7 @@ WHERE
29177
29183
  height: "calc(100% - 44px)",
29178
29184
  // Tabs.List
29179
29185
  padding: 0
29180
- }, n$ = D(({
29186
+ }, nL = D(({
29181
29187
  queryModel: e
29182
29188
  }) => {
29183
29189
  const t = Ce(), n = z(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [r, o] = Q(n);
@@ -29200,7 +29206,7 @@ WHERE
29200
29206
  /* @__PURE__ */ i(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ i(Hz, { queryModel: e }) }),
29201
29207
  e.typedAsSQL && /* @__PURE__ */ i(g.Panel, { value: "SQL", sx: Br, children: /* @__PURE__ */ i(S, { sx: {
29202
29208
  height: "100%"
29203
- }, children: /* @__PURE__ */ i(t$, { queryModel: e }) }) }),
29209
+ }, children: /* @__PURE__ */ i(tL, { queryModel: e }) }) }),
29204
29210
  e.typedAsHTTP && /* @__PURE__ */ i(g.Panel, { value: "HTTP", sx: Br, children: /* @__PURE__ */ i(S, { sx: {
29205
29211
  height: "100%"
29206
29212
  }, children: /* @__PURE__ */ i(Kz, { queryModel: e }) }) }),
@@ -29213,19 +29219,19 @@ WHERE
29213
29219
  overflow: "hidden"
29214
29220
  }, children: /* @__PURE__ */ i(Xz, { queryID: e.id, usage: a }) })
29215
29221
  ] }) });
29216
- }), r$ = D(({
29222
+ }), rL = D(({
29217
29223
  id: e
29218
29224
  }) => {
29219
29225
  const n = Ce().queries.findByID(e);
29220
29226
  return e === "" ? null : n ? /* @__PURE__ */ i(S, { sx: {
29221
29227
  height: "100%"
29222
- }, spacing: "sm", children: /* @__PURE__ */ i(n$, { queryModel: n }) }) : /* @__PURE__ */ i(C, { size: 14, color: "red", children: "Invalid Query ID" });
29223
- }), i$ = D(({
29228
+ }, spacing: "sm", children: /* @__PURE__ */ i(nL, { queryModel: n }) }) : /* @__PURE__ */ i(C, { size: 14, color: "red", children: "Invalid Query ID" });
29229
+ }), iL = D(({
29224
29230
  value: e
29225
29231
  }) => {
29226
29232
  const n = Ue().payloadForSQL, r = z(() => ha(e, n), [e, n]);
29227
29233
  return /* @__PURE__ */ i(ss, { height: "100%", value: r });
29228
- }), o$ = D(({
29234
+ }), oL = D(({
29229
29235
  item: e,
29230
29236
  remove: t,
29231
29237
  onKeyChanged: n
@@ -29247,7 +29253,7 @@ WHERE
29247
29253
  alignItems: "end"
29248
29254
  }, spacing: 40, children: [
29249
29255
  /* @__PURE__ */ i(
29250
- L,
29256
+ $,
29251
29257
  {
29252
29258
  label: d ? "This key is occupied by another snippet" : "Key",
29253
29259
  value: a,
@@ -29297,10 +29303,10 @@ WHERE
29297
29303
  }, children: /* @__PURE__ */ i(ve, { size: 18 }) })
29298
29304
  ] }),
29299
29305
  /* @__PURE__ */ i(g.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ i(ss, { height: "100%", value: p, onChange: h, defaultLanguage: "sql", theme: "sql-dark" }) }),
29300
- /* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(i$, { value: p }) })
29306
+ /* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(iL, { value: p }) })
29301
29307
  ] })
29302
29308
  ] });
29303
- }), a$ = D(({
29309
+ }), aL = D(({
29304
29310
  id: e
29305
29311
  }) => {
29306
29312
  const t = Te(), n = Ce(), r = z(() => n.sqlSnippets.findByKey(e), [e]);
@@ -29315,17 +29321,17 @@ WHERE
29315
29321
  const o = () => {
29316
29322
  t.editor.setPath(["_SQL_SNIPPETS_", ""]);
29317
29323
  };
29318
- return /* @__PURE__ */ i(o$, { item: r, remove: () => {
29324
+ return /* @__PURE__ */ i(oL, { item: r, remove: () => {
29319
29325
  n.sqlSnippets.removeByKey(e), o();
29320
29326
  }, onKeyChanged: (l) => {
29321
29327
  t.editor.setPath(["_SQL_SNIPPETS_", l]);
29322
29328
  } });
29323
- }), s$ = D(({
29329
+ }), sL = D(({
29324
29330
  view: e
29325
29331
  }) => !e || e.type !== X.Division ? null : /* @__PURE__ */ u(S, { children: [
29326
29332
  /* @__PURE__ */ i(A, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
29327
29333
  /* @__PURE__ */ i(C, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
29328
- ] })), l$ = [{
29334
+ ] })), lL = [{
29329
29335
  value: "default",
29330
29336
  label: "Default"
29331
29337
  }, {
@@ -29334,13 +29340,13 @@ WHERE
29334
29340
  }, {
29335
29341
  value: "pills",
29336
29342
  label: "Pills"
29337
- }], c$ = [{
29343
+ }], cL = [{
29338
29344
  value: "horizontal",
29339
29345
  label: "Horizontal"
29340
29346
  }, {
29341
29347
  value: "vertical",
29342
29348
  label: "Vertical"
29343
- }], d$ = D(({
29349
+ }], dL = D(({
29344
29350
  view: e
29345
29351
  }) => {
29346
29352
  if (!e || e.type !== X.Tabs)
@@ -29348,11 +29354,11 @@ WHERE
29348
29354
  const t = e.config;
29349
29355
  return /* @__PURE__ */ u(S, { children: [
29350
29356
  /* @__PURE__ */ i(A, { mt: 8, mb: 0, label: "Tabs settings", labelPosition: "center" }),
29351
- /* @__PURE__ */ i(F, { label: "Variant", value: t.variant, onChange: t.setVariant, data: l$ }),
29352
- /* @__PURE__ */ i(F, { label: "Orientation", value: t.orientation, onChange: t.setOrientation, data: c$ }),
29357
+ /* @__PURE__ */ i(F, { label: "Variant", value: t.variant, onChange: t.setVariant, data: lL }),
29358
+ /* @__PURE__ */ i(F, { label: "Orientation", value: t.orientation, onChange: t.setOrientation, data: cL }),
29353
29359
  /* @__PURE__ */ i(Xe, { label: "Grow Tabs", checked: t.grow, onChange: (n) => t.setGrow(n.currentTarget.checked) })
29354
29360
  ] });
29355
- }), u$ = ({
29361
+ }), uL = ({
29356
29362
  disabled: e,
29357
29363
  value: t,
29358
29364
  onChange: n
@@ -29368,7 +29374,7 @@ WHERE
29368
29374
  },
29369
29375
  readOnly: e
29370
29376
  } })
29371
- ] }), h$ = ({
29377
+ ] }), hL = ({
29372
29378
  value: e,
29373
29379
  onChange: t
29374
29380
  }) => {
@@ -29406,7 +29412,7 @@ WHERE
29406
29412
  }, children: /* @__PURE__ */ i(El, { size: 14 }) }),
29407
29413
  /* @__PURE__ */ i(De, { size: 800, title: "Customize modal title", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
29408
29414
  /* @__PURE__ */ i(pe, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (m) => l(m.currentTarget.checked) }),
29409
- /* @__PURE__ */ i(u$, { value: a.func_content, onChange: p, disabled: !a.enabled }),
29415
+ /* @__PURE__ */ i(uL, { value: a.func_content, onChange: p, disabled: !a.enabled }),
29410
29416
  /* @__PURE__ */ u(x, { position: "apart", children: [
29411
29417
  /* @__PURE__ */ i(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ i(Mt, { size: 20 }), children: "Reset" }),
29412
29418
  /* @__PURE__ */ u(x, { position: "right", children: [
@@ -29416,7 +29422,7 @@ WHERE
29416
29422
  ] })
29417
29423
  ] }) })
29418
29424
  ] });
29419
- }, p$ = D(({
29425
+ }, pL = D(({
29420
29426
  view: e
29421
29427
  }) => {
29422
29428
  if (!e || e.type !== X.Modal)
@@ -29425,23 +29431,23 @@ WHERE
29425
29431
  return /* @__PURE__ */ u(S, { children: [
29426
29432
  /* @__PURE__ */ i(A, { mt: 8, label: "Modal settings", labelPosition: "center" }),
29427
29433
  /* @__PURE__ */ u(fn, { gap: 10, children: [
29428
- /* @__PURE__ */ i(L, { label: "Modal Title", value: n, onChange: k.noop, disabled: !0, sx: {
29434
+ /* @__PURE__ */ i($, { label: "Modal Title", value: n, onChange: k.noop, disabled: !0, sx: {
29429
29435
  flexGrow: 1
29430
29436
  } }),
29431
- /* @__PURE__ */ i(h$, { value: t.custom_modal_title, onChange: t.custom_modal_title.replace })
29437
+ /* @__PURE__ */ i(hL, { value: t.custom_modal_title, onChange: t.custom_modal_title.replace })
29432
29438
  ] }),
29433
29439
  /* @__PURE__ */ u(x, { grow: !0, children: [
29434
- /* @__PURE__ */ i(L, { label: "Width", value: t.width, onChange: (r) => t.setWidth(r.currentTarget.value), placeholder: "600px / 50vw" }),
29435
- /* @__PURE__ */ i(L, { label: "Height", value: t.height, onChange: (r) => t.setHeight(r.currentTarget.value), placeholder: "600px / 50vw" })
29440
+ /* @__PURE__ */ i($, { label: "Width", value: t.width, onChange: (r) => t.setWidth(r.currentTarget.value), placeholder: "600px / 50vw" }),
29441
+ /* @__PURE__ */ i($, { label: "Height", value: t.height, onChange: (r) => t.setHeight(r.currentTarget.value), placeholder: "600px / 50vw" })
29436
29442
  ] })
29437
29443
  ] });
29438
- }), m$ = D(({
29444
+ }), mL = D(({
29439
29445
  view: e
29440
29446
  }) => /* @__PURE__ */ u(j, { children: [
29441
- /* @__PURE__ */ i(s$, { view: e }),
29442
- /* @__PURE__ */ i(p$, { view: e }),
29443
- /* @__PURE__ */ i(d$, { view: e })
29444
- ] })), f$ = [{
29447
+ /* @__PURE__ */ i(sL, { view: e }),
29448
+ /* @__PURE__ */ i(pL, { view: e }),
29449
+ /* @__PURE__ */ i(dL, { view: e })
29450
+ ] })), fL = [{
29445
29451
  label: "Division",
29446
29452
  value: X.Division
29447
29453
  }, {
@@ -29450,17 +29456,17 @@ WHERE
29450
29456
  }, {
29451
29457
  label: "Tabs",
29452
29458
  value: X.Tabs
29453
- }], g$ = D(({
29459
+ }], gL = D(({
29454
29460
  view: e
29455
29461
  }) => e ? /* @__PURE__ */ u(S, { sx: {
29456
29462
  position: "relative"
29457
29463
  }, children: [
29458
- /* @__PURE__ */ i(L, { label: "Name", value: e.name, onChange: (t) => {
29464
+ /* @__PURE__ */ i($, { label: "Name", value: e.name, onChange: (t) => {
29459
29465
  e.setName(t.currentTarget.value);
29460
29466
  } }),
29461
- /* @__PURE__ */ i(F, { label: "Type", withinPortal: !0, zIndex: 320, value: e.type, onChange: e.setType, data: f$ }),
29462
- /* @__PURE__ */ i(m$, { view: e })
29463
- ] }) : null), b$ = D(({
29467
+ /* @__PURE__ */ i(F, { label: "Type", withinPortal: !0, zIndex: 320, value: e.type, onChange: e.setType, data: fL }),
29468
+ /* @__PURE__ */ i(mL, { view: e })
29469
+ ] }) : null), bL = D(({
29464
29470
  id: e
29465
29471
  }) => {
29466
29472
  const t = Ft(), n = Te(), r = Ce();
@@ -29498,39 +29504,39 @@ WHERE
29498
29504
  flexGrow: 1,
29499
29505
  maxHeight: "calc(100% - 52px)",
29500
29506
  overflow: "auto"
29501
- }, children: /* @__PURE__ */ i(g$, { view: o }) })
29507
+ }, children: /* @__PURE__ */ i(gL, { view: o }) })
29502
29508
  ] });
29503
29509
  });
29504
- function y$(e) {
29510
+ function yL(e) {
29505
29511
  return e.length === 1 && e[0] === "_QUERY_VARS_";
29506
29512
  }
29507
- function x$(e) {
29513
+ function xL(e) {
29508
29514
  return e.length === 1 && e[0] === "_MOCK_CONTEXT_";
29509
29515
  }
29510
- function v$(e) {
29516
+ function vL(e) {
29511
29517
  return e.length === 2 && e[0] === "_FILTERS_";
29512
29518
  }
29513
- function w$(e) {
29519
+ function wL(e) {
29514
29520
  return e.length === 1 && e[0] === "_SQL_SNIPPETS_";
29515
29521
  }
29516
- function _$(e) {
29522
+ function _L(e) {
29517
29523
  return e.length === 2 && e[0] === "_SQL_SNIPPETS_";
29518
29524
  }
29519
- function C$(e) {
29525
+ function CL(e) {
29520
29526
  return e.length === 2 && e[0] === "_QUERIES_";
29521
29527
  }
29522
- function S$(e) {
29528
+ function SL(e) {
29523
29529
  return e.length === 1 && e[0] === "_QUERIES_";
29524
29530
  }
29525
- function k$(e) {
29531
+ function kL(e) {
29526
29532
  return e.length === 2 && e[0] === "_VIEWS_";
29527
29533
  }
29528
- function T$(e) {
29534
+ function TL(e) {
29529
29535
  return e.length === 4 && e[0] === "_VIEWS_" && e[2] === "_PANELS_";
29530
29536
  }
29531
- const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29537
+ const DL = D(() => /* @__PURE__ */ i(S, { sx: {
29532
29538
  height: "100%"
29533
- }, p: "sm", children: /* @__PURE__ */ i(Fu, {}) })), I$ = D(() => {
29539
+ }, p: "sm", children: /* @__PURE__ */ i(Fu, {}) })), IL = D(() => {
29534
29540
  const e = Ft(), t = Te(), n = (a) => {
29535
29541
  t.editor.setPath(["_QUERIES_", a]);
29536
29542
  }, r = () => {
@@ -29602,7 +29608,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29602
29608
  }) })
29603
29609
  ] }) })
29604
29610
  ] });
29605
- }), M$ = D(() => {
29611
+ }), ML = D(() => {
29606
29612
  const e = Ft(), t = Te(), n = (a) => {
29607
29613
  t.editor.setPath(["_SQL_SNIPPETS_", a]);
29608
29614
  }, r = () => {
@@ -29663,10 +29669,10 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29663
29669
  }) })
29664
29670
  ] }) })
29665
29671
  ] });
29666
- }), z$ = D(() => {
29672
+ }), zL = D(() => {
29667
29673
  const e = Te().editor, t = e.path;
29668
- return y$(t) ? /* @__PURE__ */ i(D$, {}) : x$(t) ? /* @__PURE__ */ i(KM, {}) : v$(t) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(UM, { id: t[1] }) }) : w$(t) ? /* @__PURE__ */ i(M$, {}) : _$(t) ? /* @__PURE__ */ i(a$, { id: t[1] }) : S$(t) ? /* @__PURE__ */ i(I$, {}) : C$(t) ? /* @__PURE__ */ i(r$, { id: t[1] }) : k$(t) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(b$, { id: t[1] }) }) : T$(t) ? /* @__PURE__ */ i(kz, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ i(V, { children: e.path });
29669
- }), $$ = D(() => /* @__PURE__ */ i(z$, {})), L$ = D(() => {
29674
+ return yL(t) ? /* @__PURE__ */ i(DL, {}) : xL(t) ? /* @__PURE__ */ i(KM, {}) : vL(t) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(UM, { id: t[1] }) }) : wL(t) ? /* @__PURE__ */ i(ML, {}) : _L(t) ? /* @__PURE__ */ i(aL, { id: t[1] }) : SL(t) ? /* @__PURE__ */ i(IL, {}) : CL(t) ? /* @__PURE__ */ i(rL, { id: t[1] }) : kL(t) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(bL, { id: t[1] }) }) : TL(t) ? /* @__PURE__ */ i(kz, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ i(V, { children: e.path });
29675
+ }), LL = D(() => /* @__PURE__ */ i(zL, {})), $L = D(() => {
29670
29676
  const e = Te();
29671
29677
  return /* @__PURE__ */ i(I, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Ht, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
29672
29678
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
@@ -29688,7 +29694,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29688
29694
  justifyContent: "flex-start"
29689
29695
  }
29690
29696
  }, children: "Add a Filter" });
29691
- }), A$ = D(({
29697
+ }), AL = D(({
29692
29698
  parentID: e
29693
29699
  }) => {
29694
29700
  const t = Ce();
@@ -29703,7 +29709,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29703
29709
  justifyContent: "flex-start"
29704
29710
  }
29705
29711
  }, children: "Add a Panel" });
29706
- }), E$ = D(() => {
29712
+ }), EL = D(() => {
29707
29713
  const e = Te();
29708
29714
  return /* @__PURE__ */ i(I, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Ht, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
29709
29715
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
@@ -29722,7 +29728,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29722
29728
  justifyContent: "flex-start"
29723
29729
  }
29724
29730
  }, children: "Add a Query" });
29725
- }), R$ = D(() => {
29731
+ }), RL = D(() => {
29726
29732
  const e = Te();
29727
29733
  return /* @__PURE__ */ i(I, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Ht, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
29728
29734
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
@@ -29738,7 +29744,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29738
29744
  justifyContent: "flex-start"
29739
29745
  }
29740
29746
  }, children: "Add a SQL Snippet" });
29741
- }), O$ = D(() => {
29747
+ }), OL = D(() => {
29742
29748
  const e = Ce();
29743
29749
  return /* @__PURE__ */ i(I, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Ht, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
29744
29750
  width: "100%",
@@ -29748,7 +29754,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29748
29754
  justifyContent: "flex-start"
29749
29755
  }
29750
29756
  }, children: "Add a View" });
29751
- }), F$ = D(() => {
29757
+ }), FL = D(() => {
29752
29758
  const e = Te();
29753
29759
  return /* @__PURE__ */ i(I, { variant: "subtle", rightIcon: /* @__PURE__ */ i(la, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_QUERIES_"]), sx: {
29754
29760
  width: "100%",
@@ -29759,7 +29765,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29759
29765
  justifyContent: "space-between"
29760
29766
  }
29761
29767
  }, children: "Manage Queries" });
29762
- }), P$ = D(() => {
29768
+ }), PL = D(() => {
29763
29769
  const e = Te();
29764
29770
  return /* @__PURE__ */ i(I, { variant: "subtle", rightIcon: /* @__PURE__ */ i(la, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_SQL_SNIPPETS_"]), sx: {
29765
29771
  width: "100%",
@@ -29770,23 +29776,23 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29770
29776
  justifyContent: "space-between"
29771
29777
  }
29772
29778
  }, children: "Manage SQL Snippets" });
29773
- }), V$ = D(({
29779
+ }), VL = D(({
29774
29780
  action_type: e,
29775
29781
  parentID: t
29776
- }) => e === "_Add_A_Filter_" ? /* @__PURE__ */ i(L$, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ i(R$, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ i(E$, {}) : e === "_Add_A_VIEW_" ? /* @__PURE__ */ i(O$, {}) : e === "_Add_A_PANEL_" ? /* @__PURE__ */ i(A$, { parentID: t }) : e === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ i(F$, {}) : e === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ i(P$, {}) : null), Pu = D(({
29782
+ }) => e === "_Add_A_Filter_" ? /* @__PURE__ */ i($L, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ i(RL, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ i(EL, {}) : e === "_Add_A_VIEW_" ? /* @__PURE__ */ i(OL, {}) : e === "_Add_A_PANEL_" ? /* @__PURE__ */ i(AL, { parentID: t }) : e === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ i(FL, {}) : e === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ i(PL, {}) : null), Pu = D(({
29777
29783
  option: e
29778
29784
  }) => {
29779
29785
  var d;
29780
29786
  const t = Te().editor, n = t.isOptionActive, r = n(t.path, e), o = t.isOptionOpened, a = t.navigate, s = o(e), [l, c] = Q(s);
29781
29787
  return W(() => {
29782
29788
  c(s);
29783
- }, [s]), /* @__PURE__ */ i(ro, { active: r, defaultOpened: s, opened: l, onChange: c, label: e.label, onClick: () => a(e), icon: e.Icon ? /* @__PURE__ */ i(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(V$, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Pu, { option: p }, p.value)) }, e.label);
29784
- }), N$ = D(() => {
29789
+ }, [s]), /* @__PURE__ */ i(ro, { active: r, defaultOpened: s, opened: l, onChange: c, label: e.label, onClick: () => a(e), icon: e.Icon ? /* @__PURE__ */ i(e.Icon, { size: 18 }) : null, children: (d = e.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(VL, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Pu, { option: p }, p.value)) }, e.label);
29790
+ }), NL = D(() => {
29785
29791
  const e = Te();
29786
29792
  return /* @__PURE__ */ i(V, { sx: {
29787
29793
  position: "relative"
29788
29794
  }, children: e.editor.navOptions.map((t) => /* @__PURE__ */ i(Pu, { option: t }, t.value)) });
29789
- }), B$ = D(() => {
29795
+ }), BL = D(() => {
29790
29796
  const e = Te();
29791
29797
  return /* @__PURE__ */ u(Jt, { p: 0, width: {
29792
29798
  base: 220,
@@ -29806,12 +29812,12 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29806
29812
  }, children: "Settings" }) }),
29807
29813
  /* @__PURE__ */ i(Jt.Section, { grow: !0, sx: {
29808
29814
  overflow: "auto"
29809
- }, children: /* @__PURE__ */ i(N$, {}) }),
29815
+ }, children: /* @__PURE__ */ i(NL, {}) }),
29810
29816
  /* @__PURE__ */ i(Jt.Section, { children: /* @__PURE__ */ i(x, { grow: !0, p: "md", pt: "sm", sx: {
29811
29817
  borderTop: "1px solid #eee"
29812
29818
  }, children: /* @__PURE__ */ i(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(ql, { size: 18 }), onClick: () => e.editor.close(), children: "Close" }) }) })
29813
29819
  ] });
29814
- }), q$ = {
29820
+ }), qL = {
29815
29821
  root: {
29816
29822
  height: "100vh",
29817
29823
  display: "flex",
@@ -29832,7 +29838,7 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29832
29838
  paddingTop: 0,
29833
29839
  height: "100vh"
29834
29840
  }
29835
- }, W$ = D(() => {
29841
+ }, WL = D(() => {
29836
29842
  const e = Te().editor;
29837
29843
  return /* @__PURE__ */ i(De, { onClose: () => e.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: e.settings_open, fullScreen: !0, title: null, transitionProps: {
29838
29844
  duration: 0
@@ -29840,14 +29846,14 @@ const D$ = D(() => /* @__PURE__ */ i(S, { sx: {
29840
29846
  body: {
29841
29847
  padding: "0 !important"
29842
29848
  }
29843
- }, children: /* @__PURE__ */ i(_l, { padding: 0, navbar: /* @__PURE__ */ i(B$, {}), styles: q$, children: /* @__PURE__ */ i($$, {}) }) });
29844
- }), j$ = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
29845
- function G$(e) {
29849
+ }, children: /* @__PURE__ */ i(_l, { padding: 0, navbar: /* @__PURE__ */ i(BL, {}), styles: qL, children: /* @__PURE__ */ i(LL, {}) }) });
29850
+ }), jL = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
29851
+ function GL(e) {
29846
29852
  W(() => {
29847
29853
  if (Wi.__getMonacoInstance())
29848
29854
  return;
29849
29855
  console.log("loading monaco for @devtable/dashboard");
29850
- const n = j$(e);
29856
+ const n = jL(e);
29851
29857
  Wi.config({
29852
29858
  paths: {
29853
29859
  vs: n
@@ -29856,7 +29862,7 @@ function G$(e) {
29856
29862
  }, []);
29857
29863
  }
29858
29864
  dd();
29859
- const H$ = {
29865
+ const HL = {
29860
29866
  root: {
29861
29867
  height: "100vh",
29862
29868
  display: "flex",
@@ -29874,7 +29880,7 @@ const H$ = {
29874
29880
  // main header & sub header
29875
29881
  height: "100vh"
29876
29882
  }
29877
- }, Y$ = ({
29883
+ }, YL = ({
29878
29884
  context: e,
29879
29885
  dashboard: t,
29880
29886
  content: n,
@@ -29884,7 +29890,7 @@ const H$ = {
29884
29890
  onChange: s,
29885
29891
  headerSlot: l
29886
29892
  }, c) => {
29887
- G$(a.monacoPath), pc(a);
29893
+ GL(a.monacoPath), pc(a);
29888
29894
  const {
29889
29895
  data: d = []
29890
29896
  } = Dn(pa), {
@@ -29905,12 +29911,12 @@ const H$ = {
29905
29911
  return /* @__PURE__ */ i(Cl, { children: /* @__PURE__ */ i(vc, { value: h, children: /* @__PURE__ */ i(Sc, { value: h.content, children: /* @__PURE__ */ i(ga.Provider, { value: {
29906
29912
  inEditMode: !0
29907
29913
  }, children: /* @__PURE__ */ i(Ut.Provider, { value: f, children: /* @__PURE__ */ u(zi, { configure: w, children: [
29908
- /* @__PURE__ */ i(_l, { padding: 0, header: /* @__PURE__ */ i(sM, { saveDashboardChanges: m, headerSlot: l }), navbar: /* @__PURE__ */ i(EM, {}), styles: H$, children: /* @__PURE__ */ i(V, { className: `${o} dashboard-root`, sx: {
29914
+ /* @__PURE__ */ i(_l, { padding: 0, header: /* @__PURE__ */ i(sM, { saveDashboardChanges: m, headerSlot: l }), navbar: /* @__PURE__ */ i(EM, {}), styles: HL, children: /* @__PURE__ */ i(V, { className: `${o} dashboard-root`, sx: {
29909
29915
  position: "relative"
29910
29916
  }, children: h.content.views.visibleViews.map((v) => /* @__PURE__ */ i(EI, { view: v }, v.id)) }) }),
29911
- /* @__PURE__ */ i(W$, {})
29917
+ /* @__PURE__ */ i(WL, {})
29912
29918
  ] }) }) }) }) }) });
29913
- }, xE = D(we(Y$));
29919
+ }, xE = D(we(YL));
29914
29920
  const Vu = b.model({
29915
29921
  id: b.string,
29916
29922
  name: b.string,
@@ -29999,7 +30005,7 @@ const Vu = b.model({
29999
30005
  // setupAutoSave();
30000
30006
  // },
30001
30007
  }));
30002
- function Q$({
30008
+ function QL({
30003
30009
  id: e,
30004
30010
  name: t,
30005
30011
  dashboard_id: n,
@@ -30037,28 +30043,28 @@ function Q$({
30037
30043
  }
30038
30044
  });
30039
30045
  }
30040
- const U$ = b.model({
30046
+ const UL = b.model({
30041
30047
  id: b.identifier,
30042
30048
  name: b.string,
30043
30049
  group: b.string,
30044
30050
  content: Vu,
30045
30051
  content_id: b.string,
30046
- datasources: LD,
30052
+ datasources: $D,
30047
30053
  globalSQLSnippets: tu,
30048
30054
  context: es
30049
30055
  });
30050
- function K$({
30056
+ function KL({
30051
30057
  id: e,
30052
30058
  name: t,
30053
30059
  group: n,
30054
30060
  content_id: r
30055
30061
  }, o, a, s, l) {
30056
- return U$.create({
30062
+ return UL.create({
30057
30063
  id: e,
30058
30064
  name: t,
30059
30065
  group: n,
30060
30066
  content_id: r,
30061
- content: Q$(o),
30067
+ content: QL(o),
30062
30068
  datasources: {
30063
30069
  list: a
30064
30070
  },
@@ -30083,7 +30089,7 @@ const vE = D(({
30083
30089
  data: l = []
30084
30090
  } = Dn(pa), {
30085
30091
  data: c = []
30086
- } = Dn(mc), d = R.useMemo(() => K$(t, n, l, c, e), [t, n]);
30092
+ } = Dn(mc), d = R.useMemo(() => KL(t, n, l, c, e), [t, n]);
30087
30093
  Tu(d.content, !1), R.useEffect(() => {
30088
30094
  d.context.replace(e);
30089
30095
  }, [e]), R.useEffect(() => {
@@ -30099,7 +30105,7 @@ const vE = D(({
30099
30105
  inEditMode: !1
30100
30106
  }, children: /* @__PURE__ */ i(V, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Ut.Provider, { value: p, children: /* @__PURE__ */ i(zi, { configure: h, children: d.content.views.visibleViews.map((m) => /* @__PURE__ */ i(ns, { view: m }, m.id)) }) }) }) }) }) }) }) });
30101
30107
  });
30102
- var yo = {}, X$ = {
30108
+ var yo = {}, XL = {
30103
30109
  get exports() {
30104
30110
  return yo;
30105
30111
  },
@@ -30154,9 +30160,9 @@ var yo = {}, X$ = {
30154
30160
  };
30155
30161
  };
30156
30162
  });
30157
- })(X$);
30158
- const J$ = yo;
30159
- var xo = {}, Z$ = {
30163
+ })(XL);
30164
+ const JL = yo;
30165
+ var xo = {}, ZL = {
30160
30166
  get exports() {
30161
30167
  return xo;
30162
30168
  },
@@ -30178,9 +30184,9 @@ var xo = {}, Z$ = {
30178
30184
  };
30179
30185
  };
30180
30186
  });
30181
- })(Z$);
30182
- const eL = xo;
30183
- var vo = {}, tL = {
30187
+ })(ZL);
30188
+ const e$ = xo;
30189
+ var vo = {}, t$ = {
30184
30190
  get exports() {
30185
30191
  return vo;
30186
30192
  },
@@ -30203,9 +30209,9 @@ var vo = {}, tL = {
30203
30209
  };
30204
30210
  };
30205
30211
  });
30206
- })(tL);
30207
- const nL = vo;
30208
- var wo = {}, rL = {
30212
+ })(t$);
30213
+ const n$ = vo;
30214
+ var wo = {}, r$ = {
30209
30215
  get exports() {
30210
30216
  return wo;
30211
30217
  },
@@ -30225,9 +30231,9 @@ var wo = {}, rL = {
30225
30231
  };
30226
30232
  };
30227
30233
  });
30228
- })(rL);
30229
- const iL = wo;
30230
- var _o = {}, oL = {
30234
+ })(r$);
30235
+ const i$ = wo;
30236
+ var _o = {}, o$ = {
30231
30237
  get exports() {
30232
30238
  return _o;
30233
30239
  },
@@ -30249,17 +30255,17 @@ var _o = {}, oL = {
30249
30255
  (this.zone || (this.zone = {})).offset = function(T) {
30250
30256
  if (!T || T === "Z")
30251
30257
  return 0;
30252
- var M = T.match(/([+-]|\d\d)/g), $ = 60 * M[1] + (+M[2] || 0);
30253
- return $ === 0 ? 0 : M[0] === "+" ? -$ : $;
30258
+ var M = T.match(/([+-]|\d\d)/g), L = 60 * M[1] + (+M[2] || 0);
30259
+ return L === 0 ? 0 : M[0] === "+" ? -L : L;
30254
30260
  }(v);
30255
30261
  }], h = function(v) {
30256
30262
  var T = l[v];
30257
30263
  return T && (T.indexOf ? T : T.s.concat(T.f));
30258
30264
  }, m = function(v, T) {
30259
- var M, $ = l.meridiem;
30260
- if ($) {
30265
+ var M, L = l.meridiem;
30266
+ if (L) {
30261
30267
  for (var B = 1; B <= 24; B += 1)
30262
- if (v.indexOf($(B, 0, T)) > -1) {
30268
+ if (v.indexOf(L(B, 0, T)) > -1) {
30263
30269
  M = B > 12;
30264
30270
  break;
30265
30271
  }
@@ -30279,11 +30285,11 @@ var _o = {}, oL = {
30279
30285
  }], s: [a, d("seconds")], ss: [a, d("seconds")], m: [a, d("minutes")], mm: [a, d("minutes")], H: [a, d("hours")], h: [a, d("hours")], HH: [a, d("hours")], hh: [a, d("hours")], D: [a, d("day")], DD: [o, d("day")], Do: [s, function(v) {
30280
30286
  var T = l.ordinal, M = v.match(/\d+/);
30281
30287
  if (this.day = M[0], T)
30282
- for (var $ = 1; $ <= 31; $ += 1)
30283
- T($).replace(/\[|\]/g, "") === v && (this.day = $);
30288
+ for (var L = 1; L <= 31; L += 1)
30289
+ T(L).replace(/\[|\]/g, "") === v && (this.day = L);
30284
30290
  }], M: [a, d("month")], MM: [o, d("month")], MMM: [s, function(v) {
30285
- var T = h("months"), M = (h("monthsShort") || T.map(function($) {
30286
- return $.slice(0, 3);
30291
+ var T = h("months"), M = (h("monthsShort") || T.map(function(L) {
30292
+ return L.slice(0, 3);
30287
30293
  })).indexOf(v) + 1;
30288
30294
  if (M < 1)
30289
30295
  throw new Error();
@@ -30299,73 +30305,73 @@ var _o = {}, oL = {
30299
30305
  function w(v) {
30300
30306
  var T, M;
30301
30307
  T = v, M = l && l.formats;
30302
- for (var $ = (v = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(re, ee, oe) {
30308
+ for (var L = (v = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(re, ee, oe) {
30303
30309
  var ye = oe && oe.toUpperCase();
30304
- return ee || M[oe] || n[oe] || M[ye].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(xe, Ee, Ke) {
30305
- return Ee || Ke.slice(1);
30310
+ return ee || M[oe] || n[oe] || M[ye].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(xe, Ae, Ke) {
30311
+ return Ae || Ke.slice(1);
30306
30312
  });
30307
- })).match(r), B = $.length, K = 0; K < B; K += 1) {
30308
- var N = $[K], O = f[N], E = O && O[0], Y = O && O[1];
30309
- $[K] = Y ? { regex: E, parser: Y } : N.replace(/^\[|\]$/g, "");
30313
+ })).match(r), B = L.length, K = 0; K < B; K += 1) {
30314
+ var N = L[K], O = f[N], E = O && O[0], Y = O && O[1];
30315
+ L[K] = Y ? { regex: E, parser: Y } : N.replace(/^\[|\]$/g, "");
30310
30316
  }
30311
30317
  return function(re) {
30312
30318
  for (var ee = {}, oe = 0, ye = 0; oe < B; oe += 1) {
30313
- var xe = $[oe];
30319
+ var xe = L[oe];
30314
30320
  if (typeof xe == "string")
30315
30321
  ye += xe.length;
30316
30322
  else {
30317
- var Ee = xe.regex, Ke = xe.parser, ze = re.slice(ye), Ve = Ee.exec(ze)[0];
30323
+ var Ae = xe.regex, Ke = xe.parser, Me = re.slice(ye), Ve = Ae.exec(Me)[0];
30318
30324
  Ke.call(ee, Ve), re = re.replace(Ve, "");
30319
30325
  }
30320
30326
  }
30321
- return function($e) {
30322
- var tt = $e.afternoon;
30327
+ return function(ze) {
30328
+ var tt = ze.afternoon;
30323
30329
  if (tt !== void 0) {
30324
- var St = $e.hours;
30325
- tt ? St < 12 && ($e.hours += 12) : St === 12 && ($e.hours = 0), delete $e.afternoon;
30330
+ var St = ze.hours;
30331
+ tt ? St < 12 && (ze.hours += 12) : St === 12 && (ze.hours = 0), delete ze.afternoon;
30326
30332
  }
30327
30333
  }(ee), ee;
30328
30334
  };
30329
30335
  }
30330
30336
  return function(v, T, M) {
30331
30337
  M.p.customParseFormat = !0, v && v.parseTwoDigitYear && (c = v.parseTwoDigitYear);
30332
- var $ = T.prototype, B = $.parse;
30333
- $.parse = function(K) {
30338
+ var L = T.prototype, B = L.parse;
30339
+ L.parse = function(K) {
30334
30340
  var N = K.date, O = K.utc, E = K.args;
30335
30341
  this.$u = O;
30336
30342
  var Y = E[1];
30337
30343
  if (typeof Y == "string") {
30338
30344
  var re = E[2] === !0, ee = E[3] === !0, oe = re || ee, ye = E[2];
30339
- ee && (ye = E[2]), l = this.$locale(), !re && ye && (l = M.Ls[ye]), this.$d = function(ze, Ve, $e) {
30345
+ ee && (ye = E[2]), l = this.$locale(), !re && ye && (l = M.Ls[ye]), this.$d = function(Me, Ve, ze) {
30340
30346
  try {
30341
30347
  if (["x", "X"].indexOf(Ve) > -1)
30342
- return new Date((Ve === "X" ? 1e3 : 1) * ze);
30343
- var tt = w(Ve)(ze), St = tt.year, xn = tt.month, Ar = tt.day, Er = tt.hours, Ai = tt.minutes, Ei = tt.seconds, rr = tt.milliseconds, Pn = tt.zone, sn = /* @__PURE__ */ new Date(), vn = Ar || (St || xn ? 1 : sn.getDate()), ln = St || sn.getFullYear(), Vn = 0;
30348
+ return new Date((Ve === "X" ? 1e3 : 1) * Me);
30349
+ var tt = w(Ve)(Me), St = tt.year, xn = tt.month, Ar = tt.day, Er = tt.hours, Ai = tt.minutes, Ei = tt.seconds, rr = tt.milliseconds, Pn = tt.zone, sn = /* @__PURE__ */ new Date(), vn = Ar || (St || xn ? 1 : sn.getDate()), ln = St || sn.getFullYear(), Vn = 0;
30344
30350
  St && !xn || (Vn = xn > 0 ? xn - 1 : sn.getMonth());
30345
30351
  var Nn = Er || 0, ir = Ai || 0, or = Ei || 0, cn = rr || 0;
30346
- return Pn ? new Date(Date.UTC(ln, Vn, vn, Nn, ir, or, cn + 60 * Pn.offset * 1e3)) : $e ? new Date(Date.UTC(ln, Vn, vn, Nn, ir, or, cn)) : new Date(ln, Vn, vn, Nn, ir, or, cn);
30352
+ return Pn ? new Date(Date.UTC(ln, Vn, vn, Nn, ir, or, cn + 60 * Pn.offset * 1e3)) : ze ? new Date(Date.UTC(ln, Vn, vn, Nn, ir, or, cn)) : new Date(ln, Vn, vn, Nn, ir, or, cn);
30347
30353
  } catch {
30348
30354
  return /* @__PURE__ */ new Date("");
30349
30355
  }
30350
30356
  }(N, Y, O), this.init(), ye && ye !== !0 && (this.$L = this.locale(ye).$L), oe && N != this.format(Y) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
30351
30357
  } else if (Y instanceof Array)
30352
- for (var xe = Y.length, Ee = 1; Ee <= xe; Ee += 1) {
30353
- E[1] = Y[Ee - 1];
30358
+ for (var xe = Y.length, Ae = 1; Ae <= xe; Ae += 1) {
30359
+ E[1] = Y[Ae - 1];
30354
30360
  var Ke = M.apply(this, E);
30355
30361
  if (Ke.isValid()) {
30356
30362
  this.$d = Ke.$d, this.$L = Ke.$L, this.init();
30357
30363
  break;
30358
30364
  }
30359
- Ee === xe && (this.$d = /* @__PURE__ */ new Date(""));
30365
+ Ae === xe && (this.$d = /* @__PURE__ */ new Date(""));
30360
30366
  }
30361
30367
  else
30362
30368
  B.call(this, K);
30363
30369
  };
30364
30370
  };
30365
30371
  });
30366
- })(oL);
30367
- const aL = _o;
30368
- var Co = {}, sL = {
30372
+ })(o$);
30373
+ const a$ = _o;
30374
+ var Co = {}, s$ = {
30369
30375
  get exports() {
30370
30376
  return Co;
30371
30377
  },
@@ -30384,9 +30390,9 @@ var Co = {}, sL = {
30384
30390
  };
30385
30391
  };
30386
30392
  });
30387
- })(sL);
30388
- const lL = Co;
30389
- var So = {}, cL = {
30393
+ })(s$);
30394
+ const l$ = Co;
30395
+ var So = {}, c$ = {
30390
30396
  get exports() {
30391
30397
  return So;
30392
30398
  },
@@ -30408,10 +30414,10 @@ var So = {}, cL = {
30408
30414
  return N < 0;
30409
30415
  }, M = function(N) {
30410
30416
  return T(N) ? Math.ceil(N) : Math.floor(N);
30411
- }, $ = function(N) {
30417
+ }, L = function(N) {
30412
30418
  return Math.abs(N);
30413
30419
  }, B = function(N, O) {
30414
- return N ? T(N) ? { negative: !0, format: "" + $(N) + O } : { negative: !1, format: "" + N + O } : { negative: !1, format: "" };
30420
+ return N ? T(N) ? { negative: !0, format: "" + L(N) + O } : { negative: !1, format: "" + N + O } : { negative: !1, format: "" };
30415
30421
  }, K = function() {
30416
30422
  function N(E, Y, re) {
30417
30423
  var ee = this;
@@ -30448,7 +30454,7 @@ var So = {}, cL = {
30448
30454
  this.$d.weeks && (re += 7 * this.$d.weeks);
30449
30455
  var ee = B(re, "D"), oe = B(this.$d.hours, "H"), ye = B(this.$d.minutes, "M"), xe = this.$d.seconds || 0;
30450
30456
  this.$d.milliseconds && (xe += this.$d.milliseconds / 1e3);
30451
- var Ee = B(xe, "S"), Ke = E.negative || Y.negative || ee.negative || oe.negative || ye.negative || Ee.negative, ze = oe.format || ye.format || Ee.format ? "T" : "", Ve = (Ke ? "-" : "") + "P" + E.format + Y.format + ee.format + ze + oe.format + ye.format + Ee.format;
30457
+ var Ae = B(xe, "S"), Ke = E.negative || Y.negative || ee.negative || oe.negative || ye.negative || Ae.negative, Me = oe.format || ye.format || Ae.format ? "T" : "", Ve = (Ke ? "-" : "") + "P" + E.format + Y.format + ee.format + Me + oe.format + ye.format + Ae.format;
30452
30458
  return Ve === "P" || Ve === "-P" ? "P0D" : Ve;
30453
30459
  }, O.toJSON = function() {
30454
30460
  return this.toISOString();
@@ -30521,9 +30527,9 @@ var So = {}, cL = {
30521
30527
  };
30522
30528
  };
30523
30529
  });
30524
- })(cL);
30525
- const dL = So;
30526
- var ko = {}, uL = {
30530
+ })(c$);
30531
+ const d$ = So;
30532
+ var ko = {}, u$ = {
30527
30533
  get exports() {
30528
30534
  return ko;
30529
30535
  },
@@ -30542,9 +30548,9 @@ var ko = {}, uL = {
30542
30548
  };
30543
30549
  };
30544
30550
  });
30545
- })(uL);
30546
- const hL = ko;
30547
- var To = {}, pL = {
30551
+ })(u$);
30552
+ const h$ = ko;
30553
+ var To = {}, p$ = {
30548
30554
  get exports() {
30549
30555
  return To;
30550
30556
  },
@@ -30562,9 +30568,9 @@ var To = {}, pL = {
30562
30568
  };
30563
30569
  };
30564
30570
  });
30565
- })(pL);
30566
- const mL = To;
30567
- var Do = {}, fL = {
30571
+ })(p$);
30572
+ const m$ = To;
30573
+ var Do = {}, f$ = {
30568
30574
  get exports() {
30569
30575
  return Do;
30570
30576
  },
@@ -30582,9 +30588,9 @@ var Do = {}, fL = {
30582
30588
  };
30583
30589
  };
30584
30590
  });
30585
- })(fL);
30586
- const gL = Do;
30587
- var Io = {}, bL = {
30591
+ })(f$);
30592
+ const g$ = Do;
30593
+ var Io = {}, b$ = {
30588
30594
  get exports() {
30589
30595
  return Io;
30590
30596
  },
@@ -30618,9 +30624,9 @@ var Io = {}, bL = {
30618
30624
  };
30619
30625
  };
30620
30626
  });
30621
- })(bL);
30622
- const yL = Io;
30623
- var Mo = {}, xL = {
30627
+ })(b$);
30628
+ const y$ = Io;
30629
+ var Mo = {}, x$ = {
30624
30630
  get exports() {
30625
30631
  return Mo;
30626
30632
  },
@@ -30639,9 +30645,9 @@ var Mo = {}, xL = {
30639
30645
  };
30640
30646
  };
30641
30647
  });
30642
- })(xL);
30643
- const vL = Mo;
30644
- var zo = {}, wL = {
30648
+ })(x$);
30649
+ const v$ = Mo;
30650
+ var zo = {}, w$ = {
30645
30651
  get exports() {
30646
30652
  return zo;
30647
30653
  },
@@ -30659,14 +30665,14 @@ var zo = {}, wL = {
30659
30665
  };
30660
30666
  };
30661
30667
  });
30662
- })(wL);
30663
- const _L = zo;
30664
- var $o = {}, CL = {
30668
+ })(w$);
30669
+ const _$ = zo;
30670
+ var Lo = {}, C$ = {
30665
30671
  get exports() {
30666
- return $o;
30672
+ return Lo;
30667
30673
  },
30668
30674
  set exports(e) {
30669
- $o = e;
30675
+ Lo = e;
30670
30676
  }
30671
30677
  };
30672
30678
  (function(e, t) {
@@ -30679,14 +30685,14 @@ var $o = {}, CL = {
30679
30685
  };
30680
30686
  };
30681
30687
  });
30682
- })(CL);
30683
- const SL = $o;
30684
- var Lo = {}, kL = {
30688
+ })(C$);
30689
+ const S$ = Lo;
30690
+ var $o = {}, k$ = {
30685
30691
  get exports() {
30686
- return Lo;
30692
+ return $o;
30687
30693
  },
30688
30694
  set exports(e) {
30689
- Lo = e;
30695
+ $o = e;
30690
30696
  }
30691
30697
  };
30692
30698
  (function(e, t) {
@@ -30700,9 +30706,9 @@ var Lo = {}, kL = {
30700
30706
  };
30701
30707
  };
30702
30708
  });
30703
- })(kL);
30704
- const TL = Lo;
30705
- var Ao = {}, DL = {
30709
+ })(k$);
30710
+ const T$ = $o;
30711
+ var Ao = {}, D$ = {
30706
30712
  get exports() {
30707
30713
  return Ao;
30708
30714
  },
@@ -30721,9 +30727,9 @@ var Ao = {}, DL = {
30721
30727
  };
30722
30728
  };
30723
30729
  });
30724
- })(DL);
30725
- const IL = Ao;
30726
- var Eo = {}, ML = {
30730
+ })(D$);
30731
+ const I$ = Ao;
30732
+ var Eo = {}, M$ = {
30727
30733
  get exports() {
30728
30734
  return Eo;
30729
30735
  },
@@ -30742,9 +30748,9 @@ var Eo = {}, ML = {
30742
30748
  };
30743
30749
  };
30744
30750
  });
30745
- })(ML);
30746
- const zL = Eo;
30747
- var Ro = {}, $L = {
30751
+ })(M$);
30752
+ const z$ = Eo;
30753
+ var Ro = {}, L$ = {
30748
30754
  get exports() {
30749
30755
  return Ro;
30750
30756
  },
@@ -30760,7 +30766,7 @@ var Ro = {}, $L = {
30760
30766
  var a = r.prototype, s = function(h) {
30761
30767
  return h && (h.indexOf ? h : h.s);
30762
30768
  }, l = function(h, m, f, w, v) {
30763
- var T = h.name ? h : h.$locale(), M = s(T[m]), $ = s(T[f]), B = M || $.map(function(N) {
30769
+ var T = h.name ? h : h.$locale(), M = s(T[m]), L = s(T[f]), B = M || L.map(function(N) {
30764
30770
  return N.slice(0, w);
30765
30771
  });
30766
30772
  if (!v)
@@ -30827,9 +30833,9 @@ var Ro = {}, $L = {
30827
30833
  };
30828
30834
  };
30829
30835
  });
30830
- })($L);
30831
- const LL = Ro;
30832
- var Oo = {}, AL = {
30836
+ })(L$);
30837
+ const $$ = Ro;
30838
+ var Oo = {}, A$ = {
30833
30839
  get exports() {
30834
30840
  return Oo;
30835
30841
  },
@@ -30849,8 +30855,8 @@ var Oo = {}, AL = {
30849
30855
  var d = this.$locale().formats, p = function(h, m) {
30850
30856
  return h.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(f, w, v) {
30851
30857
  var T = v && v.toUpperCase();
30852
- return w || m[v] || n[v] || m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, $, B) {
30853
- return $ || B.slice(1);
30858
+ return w || m[v] || n[v] || m[T].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(M, L, B) {
30859
+ return L || B.slice(1);
30854
30860
  });
30855
30861
  });
30856
30862
  }(c, d === void 0 ? {} : d);
@@ -30858,9 +30864,9 @@ var Oo = {}, AL = {
30858
30864
  };
30859
30865
  };
30860
30866
  });
30861
- })(AL);
30862
- const EL = Oo;
30863
- var Fo = {}, RL = {
30867
+ })(A$);
30868
+ const E$ = Oo;
30869
+ var Fo = {}, R$ = {
30864
30870
  get exports() {
30865
30871
  return Fo;
30866
30872
  },
@@ -30891,9 +30897,9 @@ var Fo = {}, RL = {
30891
30897
  };
30892
30898
  };
30893
30899
  });
30894
- })(RL);
30895
- const OL = Fo;
30896
- var Po = {}, FL = {
30900
+ })(R$);
30901
+ const O$ = Fo;
30902
+ var Po = {}, F$ = {
30897
30903
  get exports() {
30898
30904
  return Po;
30899
30905
  },
@@ -30916,8 +30922,8 @@ var Po = {}, FL = {
30916
30922
  var ee, oe;
30917
30923
  T[ee = re, oe = a.$utils().p(ee), oe === "date" ? "day" : oe] = w[re];
30918
30924
  });
30919
- var $ = T.day || (T.year || T.month >= 0 ? 1 : M.date()), B = T.year || M.year(), K = T.month >= 0 ? T.month : T.year || T.day ? 0 : M.month(), N = T.hour || 0, O = T.minute || 0, E = T.second || 0, Y = T.millisecond || 0;
30920
- return v ? new Date(Date.UTC(B, K, $, N, O, E, Y)) : new Date(B, K, $, N, O, E, Y);
30925
+ var L = T.day || (T.year || T.month >= 0 ? 1 : M.date()), B = T.year || M.year(), K = T.month >= 0 ? T.month : T.year || T.day ? 0 : M.month(), N = T.hour || 0, O = T.minute || 0, E = T.second || 0, Y = T.millisecond || 0;
30926
+ return v ? new Date(Date.UTC(B, K, L, N, O, E, Y)) : new Date(B, K, L, N, O, E, Y);
30921
30927
  }
30922
30928
  return w;
30923
30929
  }, l = a.parse;
@@ -30927,8 +30933,8 @@ var Po = {}, FL = {
30927
30933
  var c = a.set, d = a.add, p = a.subtract, h = function(m, f, w, v) {
30928
30934
  v === void 0 && (v = 1);
30929
30935
  var T = Object.keys(f), M = this;
30930
- return T.forEach(function($) {
30931
- M = m.bind(M)(f[$] * v, $);
30936
+ return T.forEach(function(L) {
30937
+ M = m.bind(M)(f[L] * v, L);
30932
30938
  }), M;
30933
30939
  };
30934
30940
  a.set = function(m, f) {
@@ -30942,9 +30948,9 @@ var Po = {}, FL = {
30942
30948
  };
30943
30949
  };
30944
30950
  });
30945
- })(FL);
30946
- const PL = Po;
30947
- var Vo = {}, VL = {
30951
+ })(F$);
30952
+ const P$ = Po;
30953
+ var Vo = {}, V$ = {
30948
30954
  get exports() {
30949
30955
  return Vo;
30950
30956
  },
@@ -30963,9 +30969,9 @@ var Vo = {}, VL = {
30963
30969
  });
30964
30970
  };
30965
30971
  });
30966
- })(VL);
30967
- const NL = Vo;
30968
- var No = {}, BL = {
30972
+ })(V$);
30973
+ const N$ = Vo;
30974
+ var No = {}, B$ = {
30969
30975
  get exports() {
30970
30976
  return No;
30971
30977
  },
@@ -31000,9 +31006,9 @@ var No = {}, BL = {
31000
31006
  });
31001
31007
  };
31002
31008
  });
31003
- })(BL);
31004
- const qL = No;
31005
- var Bo = {}, WL = {
31009
+ })(B$);
31010
+ const q$ = No;
31011
+ var Bo = {}, W$ = {
31006
31012
  get exports() {
31007
31013
  return Bo;
31008
31014
  },
@@ -31035,9 +31041,9 @@ var Bo = {}, WL = {
31035
31041
  };
31036
31042
  };
31037
31043
  });
31038
- })(WL);
31039
- const jL = Bo;
31040
- var qo = {}, GL = {
31044
+ })(W$);
31045
+ const j$ = Bo;
31046
+ var qo = {}, G$ = {
31041
31047
  get exports() {
31042
31048
  return qo;
31043
31049
  },
@@ -31056,12 +31062,12 @@ var qo = {}, GL = {
31056
31062
  return a.fromToBase(d, p, h, m);
31057
31063
  }
31058
31064
  o.en.relativeTime = s, a.fromToBase = function(d, p, h, m, f) {
31059
- for (var w, v, T, M = h.$locale().relativeTime || s, $ = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], B = $.length, K = 0; K < B; K += 1) {
31060
- var N = $[K];
31065
+ for (var w, v, T, M = h.$locale().relativeTime || s, L = n.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], B = L.length, K = 0; K < B; K += 1) {
31066
+ var N = L[K];
31061
31067
  N.d && (w = m ? o(d).diff(h, N.d, !0) : h.diff(d, N.d, !0));
31062
31068
  var O = (n.rounding || Math.round)(Math.abs(w));
31063
31069
  if (T = w > 0, O <= N.r || !N.r) {
31064
- O <= 1 && K > 0 && (N = $[K - 1]);
31070
+ O <= 1 && K > 0 && (N = L[K - 1]);
31065
31071
  var E = M[N.l];
31066
31072
  f && (O = f("" + O)), v = typeof E == "string" ? E.replace("%d", O) : E(O, p, N.l, T);
31067
31073
  break;
@@ -31086,9 +31092,9 @@ var qo = {}, GL = {
31086
31092
  };
31087
31093
  };
31088
31094
  });
31089
- })(GL);
31090
- const HL = qo;
31091
- var Wo = {}, YL = {
31095
+ })(G$);
31096
+ const H$ = qo;
31097
+ var Wo = {}, Y$ = {
31092
31098
  get exports() {
31093
31099
  return Wo;
31094
31100
  },
@@ -31104,15 +31110,15 @@ var Wo = {}, YL = {
31104
31110
  return function(o, a, s) {
31105
31111
  var l, c = function(m, f, w) {
31106
31112
  w === void 0 && (w = {});
31107
- var v = new Date(m), T = function(M, $) {
31108
- $ === void 0 && ($ = {});
31109
- var B = $.timeZoneName || "short", K = M + "|" + B, N = r[K];
31113
+ var v = new Date(m), T = function(M, L) {
31114
+ L === void 0 && (L = {});
31115
+ var B = L.timeZoneName || "short", K = M + "|" + B, N = r[K];
31110
31116
  return N || (N = new Intl.DateTimeFormat("en-US", { hour12: !1, timeZone: M, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: B }), r[K] = N), N;
31111
31117
  }(f, w);
31112
31118
  return T.formatToParts(v);
31113
31119
  }, d = function(m, f) {
31114
31120
  for (var w = c(m, f), v = [], T = 0; T < w.length; T += 1) {
31115
- var M = w[T], $ = M.type, B = M.value, K = n[$];
31121
+ var M = w[T], L = M.type, B = M.value, K = n[L];
31116
31122
  K >= 0 && (v[K] = parseInt(B, 10));
31117
31123
  }
31118
31124
  var N = v[3], O = N === 24 ? 0 : N, E = v[0] + "-" + v[1] + "-" + v[2] + " " + O + ":" + v[4] + ":" + v[5] + ":000", Y = +m;
@@ -31120,12 +31126,12 @@ var Wo = {}, YL = {
31120
31126
  }, p = a.prototype;
31121
31127
  p.tz = function(m, f) {
31122
31128
  m === void 0 && (m = l);
31123
- var w = this.utcOffset(), v = this.toDate(), T = v.toLocaleString("en-US", { timeZone: m }), M = Math.round((v - new Date(T)) / 1e3 / 60), $ = s(T).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - M, !0);
31129
+ var w = this.utcOffset(), v = this.toDate(), T = v.toLocaleString("en-US", { timeZone: m }), M = Math.round((v - new Date(T)) / 1e3 / 60), L = s(T).$set("millisecond", this.$ms).utcOffset(15 * -Math.round(v.getTimezoneOffset() / 15) - M, !0);
31124
31130
  if (f) {
31125
- var B = $.utcOffset();
31126
- $ = $.add(w - B, "minute");
31131
+ var B = L.utcOffset();
31132
+ L = L.add(w - B, "minute");
31127
31133
  }
31128
- return $.$x.$timezone = m, $;
31134
+ return L.$x.$timezone = m, L;
31129
31135
  }, p.offsetName = function(m) {
31130
31136
  var f = this.$x.$timezone || s.tz.guess(), w = c(this.valueOf(), f, { timeZoneName: m }).find(function(v) {
31131
31137
  return v.type.toLowerCase() === "timezonename";
@@ -31142,13 +31148,13 @@ var Wo = {}, YL = {
31142
31148
  var v = w && f, T = w || f || l, M = d(+s(), T);
31143
31149
  if (typeof m != "string")
31144
31150
  return s(m).tz(T);
31145
- var $ = function(O, E, Y) {
31151
+ var L = function(O, E, Y) {
31146
31152
  var re = O - 60 * E * 1e3, ee = d(re, Y);
31147
31153
  if (E === ee)
31148
31154
  return [re, E];
31149
31155
  var oe = d(re -= 60 * (ee - E) * 1e3, Y);
31150
31156
  return ee === oe ? [re, ee] : [O - 60 * Math.min(ee, oe) * 1e3, Math.max(ee, oe)];
31151
- }(s.utc(m, v).valueOf(), M, T), B = $[0], K = $[1], N = s(B).utcOffset(K);
31157
+ }(s.utc(m, v).valueOf(), M, T), B = L[0], K = L[1], N = s(B).utcOffset(K);
31152
31158
  return N.$x.$timezone = T, N;
31153
31159
  }, s.tz.guess = function() {
31154
31160
  return Intl.DateTimeFormat().resolvedOptions().timeZone;
@@ -31157,9 +31163,9 @@ var Wo = {}, YL = {
31157
31163
  };
31158
31164
  };
31159
31165
  });
31160
- })(YL);
31161
- const QL = Wo;
31162
- var jo = {}, UL = {
31166
+ })(Y$);
31167
+ const Q$ = Wo;
31168
+ var jo = {}, U$ = {
31163
31169
  get exports() {
31164
31170
  return jo;
31165
31171
  },
@@ -31177,9 +31183,9 @@ var jo = {}, UL = {
31177
31183
  };
31178
31184
  };
31179
31185
  });
31180
- })(UL);
31181
- const KL = jo;
31182
- var Go = {}, XL = {
31186
+ })(U$);
31187
+ const K$ = jo;
31188
+ var Go = {}, X$ = {
31183
31189
  get exports() {
31184
31190
  return Go;
31185
31191
  },
@@ -31197,9 +31203,9 @@ var Go = {}, XL = {
31197
31203
  };
31198
31204
  };
31199
31205
  });
31200
- })(XL);
31201
- const JL = Go;
31202
- var Ho = {}, ZL = {
31206
+ })(X$);
31207
+ const J$ = Go;
31208
+ var Ho = {}, Z$ = {
31203
31209
  get exports() {
31204
31210
  return Ho;
31205
31211
  },
@@ -31221,7 +31227,7 @@ var Ho = {}, ZL = {
31221
31227
  };
31222
31228
  };
31223
31229
  });
31224
- })(ZL);
31230
+ })(Z$);
31225
31231
  const eA = Ho;
31226
31232
  var Yo = {}, tA = {
31227
31233
  get exports() {
@@ -31273,12 +31279,12 @@ var Yo = {}, tA = {
31273
31279
  return re === 0 ? 0 : Y === "+" ? re : -re;
31274
31280
  }(v), v === null))
31275
31281
  return this;
31276
- var $ = Math.abs(v) <= 16 ? 60 * v : v, B = this;
31282
+ var L = Math.abs(v) <= 16 ? 60 * v : v, B = this;
31277
31283
  if (T)
31278
- return B.$offset = $, B.$u = v === 0, B;
31284
+ return B.$offset = L, B.$u = v === 0, B;
31279
31285
  if (v !== 0) {
31280
31286
  var K = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
31281
- (B = this.local().add($ + K, n)).$offset = $, B.$x.$localOffset = K;
31287
+ (B = this.local().add(L + K, n)).$offset = L, B.$x.$localOffset = K;
31282
31288
  } else
31283
31289
  B = this.utc();
31284
31290
  return B;
@@ -31305,8 +31311,8 @@ var Yo = {}, tA = {
31305
31311
  c.diff = function(v, T, M) {
31306
31312
  if (v && this.$u === v.$u)
31307
31313
  return w.call(this, v, T, M);
31308
- var $ = this.local(), B = l(v).local();
31309
- return w.call($, B, T, M);
31314
+ var L = this.local(), B = l(v).local();
31315
+ return w.call(L, B, T, M);
31310
31316
  };
31311
31317
  };
31312
31318
  });
@@ -31387,34 +31393,34 @@ var Ko = {}, sA = {
31387
31393
  });
31388
31394
  })(sA);
31389
31395
  const lA = Ko;
31390
- ne.extend(J$);
31391
- ne.extend(eL);
31392
- ne.extend(nL);
31393
- ne.extend(iL);
31394
- ne.extend(aL);
31395
- ne.extend(lL);
31396
- ne.extend(dL);
31397
- ne.extend(hL);
31398
- ne.extend(mL);
31399
- ne.extend(gL);
31400
- ne.extend(_L);
31401
- ne.extend(SL);
31402
- ne.extend(TL);
31403
- ne.extend(IL);
31404
- ne.extend(zL);
31405
- ne.extend(yL);
31406
- ne.extend(vL);
31407
- ne.extend(LL);
31408
- ne.extend(EL);
31409
- ne.extend(OL);
31410
- ne.extend(PL);
31411
- ne.extend(NL);
31412
- ne.extend(qL);
31413
- ne.extend(jL);
31414
- ne.extend(HL);
31415
- ne.extend(QL);
31416
- ne.extend(KL);
31417
31396
  ne.extend(JL);
31397
+ ne.extend(e$);
31398
+ ne.extend(n$);
31399
+ ne.extend(i$);
31400
+ ne.extend(a$);
31401
+ ne.extend(l$);
31402
+ ne.extend(d$);
31403
+ ne.extend(h$);
31404
+ ne.extend(m$);
31405
+ ne.extend(g$);
31406
+ ne.extend(_$);
31407
+ ne.extend(S$);
31408
+ ne.extend(T$);
31409
+ ne.extend(I$);
31410
+ ne.extend(z$);
31411
+ ne.extend(y$);
31412
+ ne.extend(v$);
31413
+ ne.extend($$);
31414
+ ne.extend(E$);
31415
+ ne.extend(O$);
31416
+ ne.extend(P$);
31417
+ ne.extend(N$);
31418
+ ne.extend(q$);
31419
+ ne.extend(j$);
31420
+ ne.extend(H$);
31421
+ ne.extend(Q$);
31422
+ ne.extend(K$);
31423
+ ne.extend(J$);
31418
31424
  ne.extend(eA);
31419
31425
  ne.extend(nA);
31420
31426
  ne.extend(aA);
@@ -31464,7 +31470,7 @@ export {
31464
31470
  Ce as useEditContentModelContext,
31465
31471
  Te as useEditDashboardContext,
31466
31472
  Yt as useEditPanelContext,
31467
- $m as useFullScreenPanelContext,
31473
+ Lm as useFullScreenPanelContext,
31468
31474
  gI as usePanelFullScreen,
31469
31475
  Ue as useRenderContentModelContext,
31470
31476
  _c as useRenderDashboardContext,