@devtable/dashboard 13.40.0 → 13.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  var Fg = Object.defineProperty;
2
2
  var Vg = (e, t, n) => t in e ? Fg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var U = (e, t, n) => (Vg(e, typeof t != "symbol" ? t + "" : t, n), n);
4
- import N, { forwardRef as re, useRef as dr, useEffect as Q, useState as K, useCallback as je, useMemo as D, useLayoutEffect as Ng, createElement as da, useContext as pr, createContext as Ru, memo as qg } from "react";
5
- import { TextInput as L, Stack as C, Group as _, Button as M, Text as I, Box as R, Overlay as Or, Modal as He, Tooltip as we, ActionIcon as ue, NativeSelect as Zo, Select as q, Divider as $, NumberInput as ce, SimpleGrid as tt, Menu as oe, UnstyledButton as Pu, Flex as an, ColorInput as Fr, Center as mr, Badge as ur, CloseButton as Kn, useMantineTheme as Ki, ColorSwatch as Fs, Popover as nn, ColorPicker as id, HoverCard as Xe, Checkbox as pe, Switch as st, Table as lt, MultiSelect as oi, Paper as Bg, Code as sd, Tabs as v, LoadingOverlay as Vr, Alert as Xi, createStyles as hi, Collapse as Ji, CheckIcon as Wg, MANTINE_SIZES as Hg, SegmentedControl as $u, Anchor as Vs, Pagination as el, Textarea as Ou, RangeSlider as Gg, Mark as Fu, Slider as Qg, List as Ut, Affix as Ug, Header as Yg, FileInput as Kg, ThemeIcon as Ua, Navbar as Bn, JsonInput as Vu, Drawer as Xg, Radio as ad, Skeleton as od, NavLink as bo, AppShell as Nu } from "@mantine/core";
4
+ import N, { forwardRef as re, useRef as Kn, useEffect as G, useState as K, useCallback as je, useMemo as D, useLayoutEffect as Ng, createElement as da, useContext as pr, createContext as Ru, memo as qg } from "react";
5
+ import { TextInput as L, Stack as C, Group as _, Button as M, Text as I, Box as R, Overlay as Or, Modal as He, Tooltip as we, ActionIcon as ue, NativeSelect as Zo, Select as q, Divider as $, NumberInput as ce, SimpleGrid as tt, Menu as oe, UnstyledButton as Pu, Flex as an, ColorInput as Fr, Center as mr, Badge as ur, CloseButton as Xn, useMantineTheme as Ki, ColorSwatch as Fs, Popover as nn, ColorPicker as id, HoverCard as Xe, Checkbox as pe, Switch as st, Table as lt, MultiSelect as oi, Paper as Bg, Code as sd, Tabs as v, LoadingOverlay as Vr, Alert as Xi, createStyles as hi, Collapse as Ji, CheckIcon as Wg, MANTINE_SIZES as Hg, SegmentedControl as $u, Anchor as Vs, Pagination as el, Textarea as Ou, RangeSlider as Gg, Mark as Fu, Slider as Qg, List as Ut, Affix as Ug, Header as Yg, FileInput as Kg, ThemeIcon as Ua, Navbar as Bn, JsonInput as Vu, Drawer as Xg, Radio as ad, Skeleton as od, NavLink as bo, AppShell as Nu } from "@mantine/core";
6
6
  import { useModals as $n, ModalsProvider as qu } from "@mantine/modals";
7
7
  import { useBoolean as pt, useCreation as yn, useAsyncEffect as Zi, useRequest as Mr, useLatest as ld, usePrevious as Jg, useWhyDidYouUpdate as Bu } from "ahooks";
8
8
  import { toJS as On, observable as Wu, runInAction as $i, reaction as Mt, makeAutoObservable as es } from "mobx";
@@ -20,7 +20,7 @@ import * as hb from "popmotion";
20
20
  import { interpolate as Nr } from "popmotion";
21
21
  import Ln from "axios";
22
22
  import { useDisclosure as fr, useHover as pb, useClipboard as mb, randomId as Lr, useElementSize as Zu, useResizeObserver as fb, useInputState as eh } from "@mantine/hooks";
23
- import { IconPlayerSkipBack as th, IconRecycle as on, IconDeviceFloppy as Fe, IconMathFunctionOff as xb, IconMathFunction as Zn, IconTextSize as rl, IconSelector as gb, IconGripVertical as bb, IconTrash as ut, IconArrowBackUp as yb, IconInfoCircle as Ct, IconBorderAll as _b, IconCircleOff as nh, IconX as il, IconAlertCircle as qi, IconPlus as ln, IconGripHorizontal as vb, IconChevronUp as jb, IconChevronDown as wb, IconChartAreaLineFilled as Sb, IconPlaylistAdd as Bi, IconArrowDown as kb, IconArrowUp as Cb, IconArrowBarToRight as rh, IconArrowCurveRight as yo, IconCalendar as Ib, IconMinus as Tb, IconChevronsUp as Db, IconChevronsDown as zb, IconDatabase as Ar, IconRefresh as sl, IconDownload as ua, IconCode as Rr, IconCamera as ha, IconArrowsMaximize as ih, IconAppWindow as sh, IconVariable as ts, IconChartHistogram as ah, IconRoute as al, IconCopy as oh, IconArrowLeft as lh, IconArrowsMove as Mb, IconChevronDownRight as Eb, IconShare3 as Lb, IconArrowsLeftRight as Ab, IconCodeDots as Rb, IconFilter as ch, IconBoxMultiple as dh, IconCaretDown as Pb, IconAlertTriangle as uh, IconDevices as $b, IconSettings as pi, IconPointFilled as ol, IconFileImport as cd, IconCircleDashed as Ob, IconCircleDot as Fb, IconChevronsUpRight as Vb, IconAdjustments as Nb, IconLine as qb, IconEye as hh, IconTable as Bb, IconColumns as Wb, IconVectorTriangle as Hb, IconVariablePlus as Gb, IconHierarchy as Qb, IconDiscountCheckFilled as Ub } from "@tabler/icons-react";
23
+ import { IconPlayerSkipBack as th, IconRecycle as on, IconDeviceFloppy as Fe, IconMathFunctionOff as xb, IconMathFunction as er, IconTextSize as rl, IconSelector as gb, IconGripVertical as bb, IconTrash as ut, IconArrowBackUp as yb, IconInfoCircle as Ct, IconBorderAll as _b, IconCircleOff as nh, IconX as il, IconAlertCircle as qi, IconPlus as ln, IconGripHorizontal as vb, IconChevronUp as jb, IconChevronDown as wb, IconChartAreaLineFilled as Sb, IconPlaylistAdd as Bi, IconArrowDown as kb, IconArrowUp as Cb, IconArrowBarToRight as rh, IconArrowCurveRight as yo, IconCalendar as Ib, IconMinus as Tb, IconChevronsUp as Db, IconChevronsDown as zb, IconDatabase as Ar, IconRefresh as sl, IconDownload as ua, IconCode as Rr, IconCamera as ha, IconArrowsMaximize as ih, IconAppWindow as sh, IconVariable as ts, IconChartHistogram as ah, IconRoute as al, IconCopy as oh, IconArrowLeft as lh, IconArrowsMove as Mb, IconChevronDownRight as Eb, IconShare3 as Lb, IconArrowsLeftRight as Ab, IconCodeDots as Rb, IconFilter as ch, IconBoxMultiple as dh, IconCaretDown as Pb, IconAlertTriangle as uh, IconDevices as $b, IconSettings as pi, IconPointFilled as ol, IconFileImport as cd, IconCircleDashed as Ob, IconCircleDot as Fb, IconChevronsUpRight as Vb, IconAdjustments as Nb, IconLine as qb, IconEye as hh, IconTable as Bb, IconColumns as Wb, IconVectorTriangle as Hb, IconVariablePlus as Gb, IconHierarchy as Qb, IconDiscountCheckFilled as Ub } from "@tabler/icons-react";
24
24
  import { useTranslation as y, Trans as pa, initReactI18next as Yb, I18nextProvider as Kb } from "react-i18next";
25
25
  import { RichTextEditor as fe, Link as ph, useRichTextEditorContext as Xb } from "@mantine/tiptap";
26
26
  import { Color as mh } from "@tiptap/extension-color";
@@ -59,8 +59,8 @@ import ud from "eventemitter2";
59
59
  import It from "echarts-for-react/lib/core";
60
60
  import "echarts-gl";
61
61
  import { showNotification as $r, updateNotification as Qy, notifications as Dh } from "@mantine/notifications";
62
- import * as sr from "d3-regression";
63
- import { Prism as Xn } from "@mantine/prism";
62
+ import * as ar from "d3-regression";
63
+ import { Prism as Jn } from "@mantine/prism";
64
64
  import { flexRender as qs, createColumnHelper as zh, useReactTable as Mh, getCoreRowModel as Eh, getSortedRowModel as Uy } from "@tanstack/react-table";
65
65
  import { useVirtual as Yy } from "react-virtual";
66
66
  import { types as x, cast as Rn, getRoot as jt, addDisposer as Kt, getParent as xt, isAlive as hd, flow as Zr, toGenerator as kr, clone as Ky, getSnapshot as Mn, applySnapshot as yt, addMiddleware as Xy, getType as Jy, detach as _o, castToSnapshot as Lh } from "mobx-state-tree";
@@ -160,16 +160,16 @@ function W_() {
160
160
  var j = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
161
161
  function T(w) {
162
162
  {
163
- for (var O = arguments.length, G = new Array(O > 1 ? O - 1 : 0), ae = 1; ae < O; ae++)
164
- G[ae - 1] = arguments[ae];
165
- A("error", w, G);
163
+ for (var O = arguments.length, Q = new Array(O > 1 ? O - 1 : 0), ae = 1; ae < O; ae++)
164
+ Q[ae - 1] = arguments[ae];
165
+ A("error", w, Q);
166
166
  }
167
167
  }
168
- function A(w, O, G) {
168
+ function A(w, O, Q) {
169
169
  {
170
170
  var ae = j.ReactDebugCurrentFrame, Te = ae.getStackAddendum();
171
- Te !== "" && (O += "%s", G = G.concat([Te]));
172
- var Oe = G.map(function(ve) {
171
+ Te !== "" && (O += "%s", Q = Q.concat([Te]));
172
+ var Oe = Q.map(function(ve) {
173
173
  return String(ve);
174
174
  });
175
175
  Oe.unshift("Warning: " + O), Function.prototype.apply.call(console[w], console, Oe);
@@ -184,12 +184,12 @@ function W_() {
184
184
  // with.
185
185
  w.$$typeof === Re || w.getModuleId !== void 0));
186
186
  }
187
- function H(w, O, G) {
187
+ function H(w, O, Q) {
188
188
  var ae = w.displayName;
189
189
  if (ae)
190
190
  return ae;
191
191
  var Te = O.displayName || O.name || "";
192
- return Te !== "" ? G + "(" + Te + ")" : G;
192
+ return Te !== "" ? Q + "(" + Te + ")" : Q;
193
193
  }
194
194
  function V(w) {
195
195
  return w.displayName || "Context";
@@ -221,8 +221,8 @@ function W_() {
221
221
  var O = w;
222
222
  return V(O) + ".Consumer";
223
223
  case o:
224
- var G = w;
225
- return V(G._context) + ".Provider";
224
+ var Q = w;
225
+ return V(Q._context) + ".Provider";
226
226
  case c:
227
227
  return H(w, w.render, "ForwardRef");
228
228
  case h:
@@ -302,7 +302,7 @@ function W_() {
302
302
  }
303
303
  }
304
304
  var Y = j.ReactCurrentDispatcher, he;
305
- function Ce(w, O, G) {
305
+ function Ce(w, O, Q) {
306
306
  {
307
307
  if (he === void 0)
308
308
  try {
@@ -324,9 +324,9 @@ function W_() {
324
324
  if (!w || Ge)
325
325
  return "";
326
326
  {
327
- var G = Lt.get(w);
328
- if (G !== void 0)
329
- return G;
327
+ var Q = Lt.get(w);
328
+ if (Q !== void 0)
329
+ return Q;
330
330
  }
331
331
  var ae;
332
332
  Ge = !0;
@@ -391,14 +391,14 @@ function W_() {
391
391
  var Qr = w ? w.displayName || w.name : "", rd = Qr ? Ce(Qr) : "";
392
392
  return typeof w == "function" && Lt.set(w, rd), rd;
393
393
  }
394
- function In(w, O, G) {
394
+ function In(w, O, Q) {
395
395
  return pn(w, !1);
396
396
  }
397
397
  function mn(w) {
398
398
  var O = w.prototype;
399
399
  return !!(O && O.isReactComponent);
400
400
  }
401
- function xs(w, O, G) {
401
+ function xs(w, O, Q) {
402
402
  if (w == null)
403
403
  return "";
404
404
  if (typeof w == "function")
@@ -416,11 +416,11 @@ function W_() {
416
416
  case c:
417
417
  return In(w.render);
418
418
  case h:
419
- return xs(w.type, O, G);
419
+ return xs(w.type, O, Q);
420
420
  case p: {
421
421
  var ae = w, Te = ae._payload, Oe = ae._init;
422
422
  try {
423
- return xs(Oe(Te), O, G);
423
+ return xs(Oe(Te), O, Q);
424
424
  } catch {
425
425
  }
426
426
  }
@@ -430,12 +430,12 @@ function W_() {
430
430
  var gs = Object.prototype.hasOwnProperty, Hc = {}, Gc = j.ReactDebugCurrentFrame;
431
431
  function bs(w) {
432
432
  if (w) {
433
- var O = w._owner, G = xs(w.type, w._source, O ? O.type : null);
434
- Gc.setExtraStackFrame(G);
433
+ var O = w._owner, Q = xs(w.type, w._source, O ? O.type : null);
434
+ Gc.setExtraStackFrame(Q);
435
435
  } else
436
436
  Gc.setExtraStackFrame(null);
437
437
  }
438
- function yg(w, O, G, ae, Te) {
438
+ function yg(w, O, Q, ae, Te) {
439
439
  {
440
440
  var Oe = Function.call.bind(gs);
441
441
  for (var ve in w)
@@ -443,14 +443,14 @@ function W_() {
443
443
  var xe = void 0;
444
444
  try {
445
445
  if (typeof w[ve] != "function") {
446
- var Dt = Error((ae || "React class") + ": " + G + " type `" + ve + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof w[ve] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
446
+ var Dt = Error((ae || "React class") + ": " + Q + " type `" + ve + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof w[ve] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
447
447
  throw Dt.name = "Invariant Violation", Dt;
448
448
  }
449
- xe = w[ve](O, ve, ae, G, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
449
+ xe = w[ve](O, ve, ae, Q, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
450
450
  } catch (Ke) {
451
451
  xe = Ke;
452
452
  }
453
- xe && !(xe instanceof Error) && (bs(Te), T("%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).", ae || "React class", G, ve, typeof xe), bs(null)), xe instanceof Error && !(xe.message in Hc) && (Hc[xe.message] = !0, bs(Te), T("Failed %s type: %s", G, xe.message), bs(null));
453
+ xe && !(xe instanceof Error) && (bs(Te), T("%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).", ae || "React class", Q, ve, typeof xe), bs(null)), xe instanceof Error && !(xe.message in Hc) && (Hc[xe.message] = !0, bs(Te), T("Failed %s type: %s", Q, xe.message), bs(null));
454
454
  }
455
455
  }
456
456
  }
@@ -460,8 +460,8 @@ function W_() {
460
460
  }
461
461
  function vg(w) {
462
462
  {
463
- var O = typeof Symbol == "function" && Symbol.toStringTag, G = O && w[Symbol.toStringTag] || w.constructor.name || "Object";
464
- return G;
463
+ var O = typeof Symbol == "function" && Symbol.toStringTag, Q = O && w[Symbol.toStringTag] || w.constructor.name || "Object";
464
+ return Q;
465
465
  }
466
466
  }
467
467
  function jg(w) {
@@ -503,40 +503,40 @@ function W_() {
503
503
  }
504
504
  function Cg(w, O) {
505
505
  if (typeof w.ref == "string" && Si.current && O && Si.current.stateNode !== O) {
506
- var G = X(Si.current.type);
507
- Wa[G] || (T('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', X(Si.current.type), w.ref), Wa[G] = !0);
506
+ var Q = X(Si.current.type);
507
+ Wa[Q] || (T('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', X(Si.current.type), w.ref), Wa[Q] = !0);
508
508
  }
509
509
  }
510
510
  function Ig(w, O) {
511
511
  {
512
- var G = function() {
512
+ var Q = function() {
513
513
  Yc || (Yc = !0, T("%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)", O));
514
514
  };
515
- G.isReactWarning = !0, Object.defineProperty(w, "key", {
516
- get: G,
515
+ Q.isReactWarning = !0, Object.defineProperty(w, "key", {
516
+ get: Q,
517
517
  configurable: !0
518
518
  });
519
519
  }
520
520
  }
521
521
  function Tg(w, O) {
522
522
  {
523
- var G = function() {
523
+ var Q = function() {
524
524
  Kc || (Kc = !0, T("%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)", O));
525
525
  };
526
- G.isReactWarning = !0, Object.defineProperty(w, "ref", {
527
- get: G,
526
+ Q.isReactWarning = !0, Object.defineProperty(w, "ref", {
527
+ get: Q,
528
528
  configurable: !0
529
529
  });
530
530
  }
531
531
  }
532
- var Dg = function(w, O, G, ae, Te, Oe, ve) {
532
+ var Dg = function(w, O, Q, ae, Te, Oe, ve) {
533
533
  var xe = {
534
534
  // This tag allows us to uniquely identify this as a React Element
535
535
  $$typeof: t,
536
536
  // Built-in properties that belong on the element
537
537
  type: w,
538
538
  key: O,
539
- ref: G,
539
+ ref: Q,
540
540
  props: ve,
541
541
  // Record the component responsible for creating this element.
542
542
  _owner: Oe
@@ -558,10 +558,10 @@ function W_() {
558
558
  value: Te
559
559
  }), Object.freeze && (Object.freeze(xe.props), Object.freeze(xe)), xe;
560
560
  };
561
- function zg(w, O, G, ae, Te) {
561
+ function zg(w, O, Q, ae, Te) {
562
562
  {
563
563
  var Oe, ve = {}, xe = null, Dt = null;
564
- G !== void 0 && (Uc(G), xe = "" + G), kg(O) && (Uc(O.key), xe = "" + O.key), Sg(O) && (Dt = O.ref, Cg(O, Te));
564
+ Q !== void 0 && (Uc(Q), xe = "" + Q), kg(O) && (Uc(O.key), xe = "" + O.key), Sg(O) && (Dt = O.ref, Cg(O, Te));
565
565
  for (Oe in O)
566
566
  gs.call(O, Oe) && !wg.hasOwnProperty(Oe) && (ve[Oe] = O[Oe]);
567
567
  if (w && w.defaultProps) {
@@ -579,8 +579,8 @@ function W_() {
579
579
  var Ha = j.ReactCurrentOwner, Xc = j.ReactDebugCurrentFrame;
580
580
  function Gr(w) {
581
581
  if (w) {
582
- var O = w._owner, G = xs(w.type, w._source, O ? O.type : null);
583
- Xc.setExtraStackFrame(G);
582
+ var O = w._owner, Q = xs(w.type, w._source, O ? O.type : null);
583
+ Xc.setExtraStackFrame(Q);
584
584
  } else
585
585
  Xc.setExtraStackFrame(null);
586
586
  }
@@ -604,10 +604,10 @@ Check the render method of \`` + w + "`.";
604
604
  function Mg(w) {
605
605
  {
606
606
  if (w !== void 0) {
607
- var O = w.fileName.replace(/^.*[\\\/]/, ""), G = w.lineNumber;
607
+ var O = w.fileName.replace(/^.*[\\\/]/, ""), Q = w.lineNumber;
608
608
  return `
609
609
 
610
- Check your code at ` + O + ":" + G + ".";
610
+ Check your code at ` + O + ":" + Q + ".";
611
611
  }
612
612
  return "";
613
613
  }
@@ -617,10 +617,10 @@ Check your code at ` + O + ":" + G + ".";
617
617
  {
618
618
  var O = Jc();
619
619
  if (!O) {
620
- var G = typeof w == "string" ? w : w.displayName || w.name;
621
- G && (O = `
620
+ var Q = typeof w == "string" ? w : w.displayName || w.name;
621
+ Q && (O = `
622
622
 
623
- Check the top-level render call using <` + G + ">.");
623
+ Check the top-level render call using <` + Q + ">.");
624
624
  }
625
625
  return O;
626
626
  }
@@ -630,12 +630,12 @@ Check the top-level render call using <` + G + ">.");
630
630
  if (!w._store || w._store.validated || w.key != null)
631
631
  return;
632
632
  w._store.validated = !0;
633
- var G = Eg(O);
634
- if (Zc[G])
633
+ var Q = Eg(O);
634
+ if (Zc[Q])
635
635
  return;
636
- Zc[G] = !0;
636
+ Zc[Q] = !0;
637
637
  var ae = "";
638
- w && w._owner && w._owner !== Ha.current && (ae = " It was passed a child from " + X(w._owner.type) + "."), Gr(w), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', G, ae), Gr(null);
638
+ w && w._owner && w._owner !== Ha.current && (ae = " It was passed a child from " + X(w._owner.type) + "."), Gr(w), T('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', Q, ae), Gr(null);
639
639
  }
640
640
  }
641
641
  function td(w, O) {
@@ -643,8 +643,8 @@ Check the top-level render call using <` + G + ">.");
643
643
  if (typeof w != "object")
644
644
  return;
645
645
  if (Ba(w))
646
- for (var G = 0; G < w.length; G++) {
647
- var ae = w[G];
646
+ for (var Q = 0; Q < w.length; Q++) {
647
+ var ae = w[Q];
648
648
  Qa(ae) && ed(ae, O);
649
649
  }
650
650
  else if (Qa(w))
@@ -662,18 +662,18 @@ Check the top-level render call using <` + G + ">.");
662
662
  var O = w.type;
663
663
  if (O == null || typeof O == "string")
664
664
  return;
665
- var G;
665
+ var Q;
666
666
  if (typeof O == "function")
667
- G = O.propTypes;
667
+ Q = O.propTypes;
668
668
  else if (typeof O == "object" && (O.$$typeof === c || // Note: Memo only checks outer props here.
669
669
  // Inner props are checked in the reconciler.
670
670
  O.$$typeof === h))
671
- G = O.propTypes;
671
+ Q = O.propTypes;
672
672
  else
673
673
  return;
674
- if (G) {
674
+ if (Q) {
675
675
  var ae = X(O);
676
- yg(G, w.props, "prop", ae, w);
676
+ yg(Q, w.props, "prop", ae, w);
677
677
  } else if (O.PropTypes !== void 0 && !Ga) {
678
678
  Ga = !0;
679
679
  var Te = X(O);
@@ -684,8 +684,8 @@ Check the top-level render call using <` + G + ">.");
684
684
  }
685
685
  function Ag(w) {
686
686
  {
687
- for (var O = Object.keys(w.props), G = 0; G < O.length; G++) {
688
- var ae = O[G];
687
+ for (var O = Object.keys(w.props), Q = 0; Q < O.length; Q++) {
688
+ var ae = O[Q];
689
689
  if (ae !== "children" && ae !== "key") {
690
690
  Gr(w), T("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", ae), Gr(null);
691
691
  break;
@@ -694,7 +694,7 @@ Check the top-level render call using <` + G + ">.");
694
694
  w.ref !== null && (Gr(w), T("Invalid attribute `ref` supplied to `React.Fragment`."), Gr(null));
695
695
  }
696
696
  }
697
- function nd(w, O, G, ae, Te, Oe) {
697
+ function nd(w, O, Q, ae, Te, Oe) {
698
698
  {
699
699
  var ve = W(w);
700
700
  if (!ve) {
@@ -705,7 +705,7 @@ Check the top-level render call using <` + G + ">.");
705
705
  var Ke;
706
706
  w === null ? Ke = "null" : Ba(w) ? Ke = "array" : w !== void 0 && w.$$typeof === t ? (Ke = "<" + (X(w.type) || "Unknown") + " />", xe = " Did you accidentally export a JSX literal instead of a component?") : Ke = typeof w, T("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Ke, xe);
707
707
  }
708
- var Je = zg(w, O, G, Te, Oe);
708
+ var Je = zg(w, O, Q, Te, Oe);
709
709
  if (Je == null)
710
710
  return Je;
711
711
  if (ve) {
@@ -724,11 +724,11 @@ Check the top-level render call using <` + G + ">.");
724
724
  return w === i ? Ag(Je) : Lg(Je), Je;
725
725
  }
726
726
  }
727
- function Rg(w, O, G) {
728
- return nd(w, O, G, !0);
727
+ function Rg(w, O, Q) {
728
+ return nd(w, O, Q, !0);
729
729
  }
730
- function Pg(w, O, G) {
731
- return nd(w, O, G, !1);
730
+ function Pg(w, O, Q) {
731
+ return nd(w, O, Q, !1);
732
732
  }
733
733
  var $g = Pg, Og = Rg;
734
734
  Ci.Fragment = i, Ci.jsx = $g, Ci.jsxs = Og;
@@ -1092,10 +1092,12 @@ function lv(e, t) {
1092
1092
  case "quantile":
1093
1093
  return zs(e, t.config.p);
1094
1094
  case "CV":
1095
+ if (e.length === 0)
1096
+ return Number.NaN;
1095
1097
  const n = ti.std(...e), i = ti.mean(...e);
1096
1098
  return i ? n / i : Number.NaN;
1097
1099
  case "std":
1098
- return ti.std(...e);
1100
+ return e.length === 0 ? Number.NaN : ti.std(...e);
1099
1101
  default:
1100
1102
  return e;
1101
1103
  }
@@ -4490,14 +4492,14 @@ const Di = "data-value", Kj = Di, cp = "dynamicColor", dp = Gi.create({
4490
4492
  onChange: t,
4491
4493
  onMount: n
4492
4494
  }) => {
4493
- const i = dr(null), s = dr(null), a = (l) => {
4495
+ const i = Kn(null), s = Kn(null), a = (l) => {
4494
4496
  if (!l) {
4495
4497
  t("");
4496
4498
  return;
4497
4499
  }
4498
4500
  t(l);
4499
4501
  };
4500
- Q(() => {
4502
+ G(() => {
4501
4503
  var c;
4502
4504
  const l = (c = i.current) == null ? void 0 : c.getModel();
4503
4505
  l && (l.getValue() || l.setValue(e));
@@ -5012,7 +5014,7 @@ const li = re(({
5012
5014
  }, h = () => {
5013
5015
  c(i);
5014
5016
  };
5015
- Q(() => {
5017
+ G(() => {
5016
5018
  c(e);
5017
5019
  }, [e]);
5018
5020
  const p = je((b, k) => {
@@ -5097,7 +5099,7 @@ const li = re(({
5097
5099
  lineHeight: "26px",
5098
5100
  borderColor: "#ced4da !important",
5099
5101
  color: "rgb(190, 75, 219)"
5100
- }, onClick: e, children: /* @__PURE__ */ r.jsx(Zn, { stroke: 2, size: 16 }) }) });
5102
+ }, onClick: e, children: /* @__PURE__ */ r.jsx(er, { stroke: 2, size: 16 }) }) });
5101
5103
  }, nw = ({
5102
5104
  editor: e
5103
5105
  }) => {
@@ -5508,8 +5510,8 @@ const vw = re(({
5508
5510
  }));
5509
5511
  var jw = Symbol.for("preact-signals");
5510
5512
  function ya() {
5511
- if (cr > 1)
5512
- cr--;
5513
+ if (dr > 1)
5514
+ dr--;
5513
5515
  else {
5514
5516
  for (var e, t = !1; Vi !== void 0; ) {
5515
5517
  var n = Vi;
@@ -5524,14 +5526,14 @@ function ya() {
5524
5526
  n = i;
5525
5527
  }
5526
5528
  }
5527
- if (Io = 0, cr--, t)
5529
+ if (Io = 0, dr--, t)
5528
5530
  throw e;
5529
5531
  }
5530
5532
  }
5531
5533
  function Yn(e) {
5532
- if (cr > 0)
5534
+ if (dr > 0)
5533
5535
  return e();
5534
- cr++;
5536
+ dr++;
5535
5537
  try {
5536
5538
  return e();
5537
5539
  } finally {
@@ -5548,7 +5550,7 @@ function ni(e) {
5548
5550
  Me = t;
5549
5551
  }
5550
5552
  }
5551
- var Vi = void 0, cr = 0, Io = 0, Us = 0;
5553
+ var Vi = void 0, dr = 0, Io = 0, Us = 0;
5552
5554
  function Dp(e) {
5553
5555
  if (Me !== void 0) {
5554
5556
  var t = e.n;
@@ -5611,7 +5613,7 @@ Object.defineProperty(Tt.prototype, "value", { get: function() {
5611
5613
  if (e !== this.v) {
5612
5614
  if (Io > 100)
5613
5615
  throw new Error("Cycle detected");
5614
- this.v = e, this.i++, Us++, cr++;
5616
+ this.v = e, this.i++, Us++, dr++;
5615
5617
  try {
5616
5618
  for (var t = this.t; t !== void 0; t = t.x)
5617
5619
  t.t.N();
@@ -5701,7 +5703,7 @@ function Ed(e) {
5701
5703
  function Lp(e) {
5702
5704
  var t = e.u;
5703
5705
  if (e.u = void 0, typeof t == "function") {
5704
- cr++;
5706
+ dr++;
5705
5707
  var n = Me;
5706
5708
  Me = void 0;
5707
5709
  try {
@@ -5740,7 +5742,7 @@ is.prototype.c = function() {
5740
5742
  is.prototype.S = function() {
5741
5743
  if (1 & this.f)
5742
5744
  throw new Error("Cycle detected");
5743
- this.f |= 1, this.f &= -9, Lp(this), Mp(this), cr++;
5745
+ this.f |= 1, this.f &= -9, Lp(this), Mp(this), dr++;
5744
5746
  var e = Me;
5745
5747
  return Me = this, ww.bind(this, e);
5746
5748
  };
@@ -6828,7 +6830,7 @@ var T0 = class extends cn {
6828
6830
  }
6829
6831
  });
6830
6832
  }
6831
- }, Dm = "data-dnd-", _t = "--dnd-", ir = `${Dm}dragging`, z0 = `[${ir}] {position: fixed !important; pointer-events: none !important; touch-action: none !important; z-index: calc(infinity); will-change: transform;top: var(${_t}top, 0px) !important;left: var(${_t}left, 0px) !important;width: var(${_t}width, auto) !important;height: var(${_t}height, auto) !important;}[${ir}] *{pointer-events: none !important;}[${ir}][style*="${_t}translate"] {translate: var(${_t}translate) !important;}[style*="${_t}transition"] {transition: var(${_t}transition) !important;}*:where([${ir}][popover]){overflow:visible;background:var(${_t}background);border:var(${_t}border);margin:unset;padding:unset;color:inherit;}[${ir}]::backdrop {display: none}`, zm = `${Dm}placeholder`, M0 = [ir, zm, "popover"], E0 = ["view-transition-name"], L0 = class extends cn {
6833
+ }, Dm = "data-dnd-", _t = "--dnd-", sr = `${Dm}dragging`, z0 = `[${sr}] {position: fixed !important; pointer-events: none !important; touch-action: none !important; z-index: calc(infinity); will-change: transform;top: var(${_t}top, 0px) !important;left: var(${_t}left, 0px) !important;width: var(${_t}width, auto) !important;height: var(${_t}height, auto) !important;}[${sr}] *{pointer-events: none !important;}[${sr}][style*="${_t}translate"] {translate: var(${_t}translate) !important;}[style*="${_t}transition"] {transition: var(${_t}transition) !important;}*:where([${sr}][popover]){overflow:visible;background:var(${_t}background);border:var(${_t}border);margin:unset;padding:unset;color:inherit;}[${sr}]::backdrop {display: none}`, zm = `${Dm}placeholder`, M0 = [sr, zm, "popover"], E0 = ["view-transition-name"], L0 = class extends cn {
6832
6834
  constructor(e) {
6833
6835
  super(e);
6834
6836
  let t, n, i = { x: 0, y: 0 }, s, a, o = !1;
@@ -6873,7 +6875,7 @@ var T0 = class extends cn {
6873
6875
  top: A + ie.y,
6874
6876
  left: E + ie.x
6875
6877
  };
6876
- m.setAttribute(ir, "true"), P.set(
6878
+ m.setAttribute(sr, "true"), P.set(
6877
6879
  {
6878
6880
  width: j,
6879
6881
  height: T,
@@ -6979,7 +6981,7 @@ var T0 = class extends cn {
6979
6981
  Ce instanceof HTMLElement && Ce.focus();
6980
6982
  };
6981
6983
  let Ae = () => {
6982
- Se == null || Se.disconnect(), ke == null || ke.disconnect(), Ie.disconnect(), P.reset(), o && m.isConnected && (V == null || V.replaceWith(m)), V == null || V.remove(), m.removeAttribute(ir), Lo(m) && m.removeAttribute("popover"), dt(), $e(), W && (W.placeholder = void 0), p.status = "idle", o = !1;
6984
+ Se == null || Se.disconnect(), ke == null || ke.disconnect(), Ie.disconnect(), P.reset(), o && m.isConnected && (V == null || V.replaceWith(m)), V == null || V.remove(), m.removeAttribute(sr), Lo(m) && m.removeAttribute("popover"), dt(), $e(), W && (W.placeholder = void 0), p.status = "idle", o = !1;
6983
6985
  };
6984
6986
  const $e = Pt(function() {
6985
6987
  if (u.status.dropped) {
@@ -7031,11 +7033,11 @@ var T0 = class extends cn {
7031
7033
  l(), c(), t == null || t.remove();
7032
7034
  };
7033
7035
  }
7034
- }, Ii = !0, A0 = !1, Mm, Em, Lm, Am, ar, Gl, Ql;
7036
+ }, Ii = !0, A0 = !1, Mm, Em, Lm, Am, or, Gl, Ql;
7035
7037
  Am = (Lm = [qe], tn.Forward), Em = (Mm = [qe], tn.Reverse);
7036
7038
  var Ui = class {
7037
7039
  constructor() {
7038
- rn(this, Gl, vt(ar, 8, this, Ii)), vt(ar, 11, this), rn(this, Ql, vt(ar, 12, this, Ii)), vt(ar, 15, this);
7040
+ rn(this, Gl, vt(or, 8, this, Ii)), vt(or, 11, this), rn(this, Ql, vt(or, 12, this, Ii)), vt(or, 15, this);
7039
7041
  }
7040
7042
  isLocked(e) {
7041
7043
  return e === tn.Idle ? !1 : e == null ? this[tn.Forward] === Ii && this[tn.Reverse] === Ii : this[e] === Ii;
@@ -7044,12 +7046,12 @@ var Ui = class {
7044
7046
  e !== tn.Idle && (this[e] = A0);
7045
7047
  }
7046
7048
  };
7047
- ar = ja(null);
7049
+ or = ja(null);
7048
7050
  Gl = /* @__PURE__ */ new WeakMap();
7049
7051
  Ql = /* @__PURE__ */ new WeakMap();
7050
- yr(ar, 4, Am, Lm, Ui, Gl);
7051
- yr(ar, 4, Em, Mm, Ui, Ql);
7052
- wa(ar, Ui);
7052
+ yr(or, 4, Am, Lm, Ui, Gl);
7053
+ yr(or, 4, Em, Mm, Ui, Ql);
7054
+ wa(or, Ui);
7053
7055
  var R0 = [tn.Forward, tn.Reverse], Hd = class {
7054
7056
  constructor() {
7055
7057
  this.x = new Ui(), this.y = new Ui();
@@ -7091,12 +7093,12 @@ var R0 = [tn.Forward, tn.Reverse], Hd = class {
7091
7093
  function Gd(e, t) {
7092
7094
  return Math.sign(e - t);
7093
7095
  }
7094
- var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
7096
+ var Rm, Ro, Yi, Ul, rr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
7095
7097
  constructor(e) {
7096
- super(e), rn(this, Ul, vt(Yi, 8, this, !1)), vt(Yi, 11, this), rn(this, nr), rn(this, Po, () => {
7097
- if (!An(this, nr))
7098
+ super(e), rn(this, Ul, vt(Yi, 8, this, !1)), vt(Yi, 11, this), rn(this, rr), rn(this, Po, () => {
7099
+ if (!An(this, rr))
7098
7100
  return;
7099
- const { element: a, by: o } = An(this, nr);
7101
+ const { element: a, by: o } = An(this, rr);
7100
7102
  a.scrollBy(o.x, o.y);
7101
7103
  }), this.scroll = (a) => {
7102
7104
  var o;
@@ -7104,7 +7106,7 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
7104
7106
  return !1;
7105
7107
  const l = this.getScrollableElements();
7106
7108
  if (!l)
7107
- return si(this, nr, void 0), !1;
7109
+ return si(this, rr, void 0), !1;
7108
7110
  const { position: c } = this.manager.dragOperation, d = c == null ? void 0 : c.current;
7109
7111
  if (d) {
7110
7112
  const { by: u } = a ?? {}, h = u ? {
@@ -7127,10 +7129,10 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
7127
7129
  if (k.x || k.y) {
7128
7130
  const { x: j, y: T } = u ?? k, A = j * b.x, E = T * b.y;
7129
7131
  if (A || E) {
7130
- const P = (o = An(this, nr)) == null ? void 0 : o.by;
7132
+ const P = (o = An(this, rr)) == null ? void 0 : o.by;
7131
7133
  if (this.autoScrolling && P && (P.x && !A || P.y && !E))
7132
7134
  continue;
7133
- return si(this, nr, {
7135
+ return si(this, rr, {
7134
7136
  element: f,
7135
7137
  by: {
7136
7138
  x: A,
@@ -7142,7 +7144,7 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
7142
7144
  }
7143
7145
  }
7144
7146
  }
7145
- return si(this, nr, void 0), !1;
7147
+ return si(this, rr, void 0), !1;
7146
7148
  };
7147
7149
  let t = null, n = null;
7148
7150
  const i = Ys(() => {
@@ -7178,7 +7180,7 @@ var Rm, Ro, Yi, Ul, nr, Po, Sa = class extends (Ro = Hw, Rm = [qe], Ro) {
7178
7180
  };
7179
7181
  Yi = ja(Ro);
7180
7182
  Ul = /* @__PURE__ */ new WeakMap();
7181
- nr = /* @__PURE__ */ new WeakMap();
7183
+ rr = /* @__PURE__ */ new WeakMap();
7182
7184
  Po = /* @__PURE__ */ new WeakMap();
7183
7185
  yr(Yi, 4, "autoScrolling", Rm, Sa, Ul);
7184
7186
  wa(Yi, Sa);
@@ -7545,7 +7547,7 @@ yr(fn, 4, "handle", Fm, us, Yl);
7545
7547
  yr(fn, 4, "element", Om, us, Kl);
7546
7548
  yr(fn, 4, "feedback", $m, us, Xl);
7547
7549
  wa(fn, us);
7548
- var Vm, Nm, Fo, or, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], Fo) {
7550
+ var Vm, Nm, Fo, lr, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], Fo) {
7549
7551
  constructor(e, t) {
7550
7552
  var n = e, { element: i, effects: s = () => [] } = n, a = Cm(n, ["element", "effects"]), o;
7551
7553
  const { collisionDetector: l = cm } = a;
@@ -7602,7 +7604,7 @@ var Vm, Nm, Fo, or, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], F
7602
7604
  ]
7603
7605
  }),
7604
7606
  t
7605
- ), rn(this, Jl, vt(or, 8, this)), vt(or, 11, this), rn(this, Zl, vt(or, 12, this)), vt(or, 15, this), this.internal = {
7607
+ ), rn(this, Jl, vt(lr, 8, this)), vt(lr, 11, this), rn(this, Zl, vt(lr, 12, this)), vt(lr, 15, this), this.internal = {
7606
7608
  element: _a(i)
7607
7609
  }, this.refreshShape = this.refreshShape.bind(this), (o = this.manager) != null && o.dragOperation.status.initialized && (this.visible = !0);
7608
7610
  }
@@ -7623,12 +7625,12 @@ var Vm, Nm, Fo, or, Jl, Zl, ka = class extends (Fo = gr, Nm = [qe], Vm = [qe], F
7623
7625
  return i && (n != null && n.equals(i)) ? n : (this.shape = i, i);
7624
7626
  }
7625
7627
  };
7626
- or = ja(Fo);
7628
+ lr = ja(Fo);
7627
7629
  Jl = /* @__PURE__ */ new WeakMap();
7628
7630
  Zl = /* @__PURE__ */ new WeakMap();
7629
- yr(or, 4, "visible", Nm, ka, Jl);
7630
- yr(or, 4, "placeholder", Vm, ka, Zl);
7631
- wa(or, ka);
7631
+ yr(lr, 4, "visible", Nm, ka, Jl);
7632
+ yr(lr, 4, "placeholder", Vm, ka, Zl);
7633
+ wa(lr, ka);
7632
7634
  var B0 = Object.create, qm = Object.defineProperty, W0 = Object.defineProperties, H0 = Object.getOwnPropertyDescriptor, G0 = Object.getOwnPropertyDescriptors, ra = Object.getOwnPropertySymbols, Bm = Object.prototype.hasOwnProperty, Wm = Object.prototype.propertyIsEnumerable, Q0 = (e, t) => (t = Symbol[e]) ? t : Symbol.for("Symbol." + e), hs = (e) => {
7633
7635
  throw TypeError(e);
7634
7636
  }, Vo = (e, t, n) => t in e ? qm(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, U0 = (e, t) => {
@@ -7849,11 +7851,11 @@ var aS = [
7849
7851
  duration: 250,
7850
7852
  easing: "cubic-bezier(0.25, 1, 0.5, 1)",
7851
7853
  idle: !1
7852
- }, Ym, Km, lr, ec, tc;
7854
+ }, Ym, Km, cr, ec, tc;
7853
7855
  Km = [qe], Ym = [qe];
7854
7856
  var Ca = class {
7855
7857
  constructor(e, t) {
7856
- Xd(this, ec, Ss(lr, 8, this)), Ss(lr, 11, this), Xd(this, tc, Ss(lr, 12, this)), Ss(lr, 15, this);
7858
+ Xd(this, ec, Ss(cr, 8, this)), Ss(cr, 11, this), Xd(this, tc, Ss(cr, 12, this)), Ss(cr, 15, this);
7857
7859
  var n = e, {
7858
7860
  effects: i = () => [],
7859
7861
  group: s,
@@ -8040,12 +8042,12 @@ var Ca = class {
8040
8042
  this.draggable.destroy(), this.droppable.destroy();
8041
8043
  }
8042
8044
  };
8043
- lr = X0();
8045
+ cr = X0();
8044
8046
  ec = /* @__PURE__ */ new WeakMap();
8045
8047
  tc = /* @__PURE__ */ new WeakMap();
8046
- Gm(lr, 4, "index", Km, Ca, ec);
8047
- Gm(lr, 4, "group", Ym, Ca, tc);
8048
- Z0(lr, Ca);
8048
+ Gm(cr, 4, "index", Km, Ca, ec);
8049
+ Gm(cr, 4, "group", Ym, Ca, tc);
8050
+ Z0(cr, Ca);
8049
8051
  var Xm = class extends us {
8050
8052
  constructor(e, t, n) {
8051
8053
  super(e, t), this.sortable = n;
@@ -8065,10 +8067,10 @@ var Xm = class extends us {
8065
8067
  }
8066
8068
  };
8067
8069
  function Jm(e) {
8068
- const t = dr();
8070
+ const t = Kn();
8069
8071
  return t.current || (t.current = e()), t.current;
8070
8072
  }
8071
- var oS = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Zm = oS ? Ng : Q;
8073
+ var oS = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", Zm = oS ? Ng : G;
8072
8074
  function lS(e, t = !1) {
8073
8075
  const n = Jm(
8074
8076
  () => e instanceof Tt ? e : _a(e)
@@ -8091,8 +8093,8 @@ function uo(e, t = !1) {
8091
8093
  function cS(e, t) {
8092
8094
  e();
8093
8095
  }
8094
- function bt(e, t, n = Q, i = Object.is) {
8095
- const s = dr(e);
8096
+ function bt(e, t, n = G, i = Object.is) {
8097
+ const s = Kn(e);
8096
8098
  n(() => {
8097
8099
  const a = s.current;
8098
8100
  i(e, a) || (s.current = e, t(e, a));
@@ -8241,7 +8243,7 @@ const tf = {
8241
8243
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
8242
8244
  /* @__PURE__ */ r.jsx(R, { sx: {
8243
8245
  width: "50%"
8244
- }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: s, sx: {
8246
+ }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: s, sx: {
8245
8247
  flexGrow: 0
8246
8248
  }, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
8247
8249
  /* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
@@ -8379,7 +8381,7 @@ function vS() {
8379
8381
  categories: []
8380
8382
  };
8381
8383
  }
8382
- function Jn() {
8384
+ function Zn() {
8383
8385
  return nf();
8384
8386
  }
8385
8387
  function jS() {
@@ -8537,7 +8539,7 @@ const wS = jS(), SS = ({
8537
8539
  minWidth: "40px",
8538
8540
  maxWidth: "40px",
8539
8541
  flex: 0
8540
- }, children: /* @__PURE__ */ r.jsx(Kn, { onClick: i }) })
8542
+ }, children: /* @__PURE__ */ r.jsx(Xn, { onClick: i }) })
8541
8543
  ] });
8542
8544
  }, sf = re(({
8543
8545
  value: e,
@@ -8601,7 +8603,7 @@ const wS = jS(), SS = ({
8601
8603
  handleSubmit: o,
8602
8604
  reset: l
8603
8605
  } = s;
8604
- Q(() => {
8606
+ G(() => {
8605
8607
  l(e);
8606
8608
  }, [e]);
8607
8609
  const c = je(() => l(e), [l, e]);
@@ -8760,7 +8762,7 @@ const wS = jS(), SS = ({
8760
8762
  content: e,
8761
8763
  editable: !1
8762
8764
  });
8763
- Q(() => {
8765
+ G(() => {
8764
8766
  c == null || c.commands.setContent(e);
8765
8767
  }, [e, c]);
8766
8768
  const d = D(() => new DOMParser().parseFromString(e, "text/html"), [e]), u = D(() => Yj(d, i, s), [d, i, s]), h = D(() => dw(d, s), [d, s]), p = D(() => S.defaultsDeep({}, {
@@ -8916,13 +8918,13 @@ const hr = re(({
8916
8918
  k.view.dom.setAttribute("spellcheck", "false"), k.view.dom.setAttribute("autocomplete", "off"), k.view.dom.setAttribute("autocapitalize", "off");
8917
8919
  }
8918
8920
  });
8919
- Q(() => {
8921
+ G(() => {
8920
8922
  h((k) => e === k ? k : (p == null || p.commands.setContent(e), e));
8921
8923
  }, [e]);
8922
8924
  const f = () => {
8923
8925
  t(u), a == null || a();
8924
8926
  }, m = e !== u;
8925
- Q(() => {
8927
+ G(() => {
8926
8928
  s && f();
8927
8929
  }, [s, m]);
8928
8930
  const b = D(() => S.defaultsDeep({}, {
@@ -9012,7 +9014,7 @@ const df = ({
9012
9014
  const {
9013
9015
  t: i
9014
9016
  } = y(), [s, a] = K(e);
9015
- Q(() => {
9017
+ G(() => {
9016
9018
  n && a(e);
9017
9019
  }, [e, n]);
9018
9020
  const o = je((l) => {
@@ -9657,7 +9659,7 @@ class oc {
9657
9659
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
9658
9660
  }
9659
9661
  }
9660
- const bf = "13.40.0", h1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9662
+ const bf = "13.41.0", h1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
9661
9663
  __proto__: null,
9662
9664
  version: bf
9663
9665
  }, Symbol.toStringTag, { value: "Module" }));
@@ -9780,7 +9782,7 @@ const ne = (e, t) => {
9780
9782
  const [n, {
9781
9783
  setFalse: i
9782
9784
  }] = pt(!0), [s, a] = K();
9783
- Q(() => (e.getItem(t).then((l) => {
9785
+ G(() => (e.getItem(t).then((l) => {
9784
9786
  a(l), i();
9785
9787
  }), e.watchItem(t, (l) => {
9786
9788
  a(l);
@@ -9943,7 +9945,7 @@ function g1({
9943
9945
  } = Ne({
9944
9946
  defaultValues: i
9945
9947
  });
9946
- return Q(() => {
9948
+ return G(() => {
9947
9949
  o(i);
9948
9950
  }, [t]), t ? /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
9949
9951
  /* @__PURE__ */ r.jsx(I, { children: "X Axis" }),
@@ -10121,7 +10123,7 @@ const Sn = re(({
10121
10123
  setTrue: o,
10122
10124
  setFalse: l
10123
10125
  }] = pt(), [c, d] = K(e);
10124
- Q(() => {
10126
+ G(() => {
10125
10127
  d(e);
10126
10128
  }, [e]);
10127
10129
  const u = (k) => {
@@ -10150,7 +10152,7 @@ const Sn = re(({
10150
10152
  f(St().func_content);
10151
10153
  }, b = n ?? s("chart.axis.customize_label");
10152
10154
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
10153
- /* @__PURE__ */ r.jsx(M, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: o, sx: {
10155
+ /* @__PURE__ */ r.jsx(M, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: o, sx: {
10154
10156
  flexGrow: 0
10155
10157
  }, children: b }),
10156
10158
  /* @__PURE__ */ r.jsx(He, { size: 800, title: b, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(C, { children: [
@@ -10385,7 +10387,7 @@ function Wr(e, t) {
10385
10387
  }
10386
10388
  const Xt = (e, t) => {
10387
10389
  const [n, i] = K([]);
10388
- return Q(() => e.watchTriggerSnapshotList((s) => i(s.filter((a) => a.schemaRef === t))), []), n;
10390
+ return G(() => e.watchTriggerSnapshotList((s) => i(s.filter((a) => a.schemaRef === t))), []), n;
10389
10391
  };
10390
10392
  class ei {
10391
10393
  constructor(t, n) {
@@ -10455,7 +10457,7 @@ function M1(e, t) {
10455
10457
  } = ne(e.operation.operationData, "config"), [s, a] = K(Ee({}, n, t)), o = async () => {
10456
10458
  await i(s);
10457
10459
  };
10458
- return Q(() => {
10460
+ return G(() => {
10459
10461
  a(Ee({}, n, t));
10460
10462
  }, [n]), {
10461
10463
  config: s,
@@ -10594,7 +10596,7 @@ const q1 = {
10594
10596
  onChange: t
10595
10597
  }) => {
10596
10598
  const [n, i] = K(e);
10597
- Q(() => {
10599
+ G(() => {
10598
10600
  i(e);
10599
10601
  }, [e]);
10600
10602
  const s = () => {
@@ -11175,8 +11177,8 @@ const fk = z(({
11175
11177
  data: t
11176
11178
  } = Nt(), n = e.viz, {
11177
11179
  vizManager: i
11178
- } = pr(tr), s = e.json, a = yn(() => i.getOrCreateInstance(s), [i, s]), o = yn(() => new uc(a, i.resolveComponent(n.type), za), [a, n.type]);
11179
- return Q(() => a.instanceData.watchItem(
11180
+ } = pr(nr), s = e.json, a = yn(() => i.getOrCreateInstance(s), [i, s]), o = yn(() => new uc(a, i.resolveComponent(n.type), za), [a, n.type]);
11181
+ return G(() => a.instanceData.watchItem(
11180
11182
  null,
11181
11183
  // avoid too many updates
11182
11184
  ob((l) => {
@@ -11972,7 +11974,7 @@ function Yk(e) {
11972
11974
  backgroundColor: i
11973
11975
  } }) }),
11974
11976
  /* @__PURE__ */ r.jsxs(nn.Dropdown, { children: [
11975
- /* @__PURE__ */ r.jsx(we, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(Kn, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: k, style: {
11977
+ /* @__PURE__ */ r.jsx(we, { withinPortal: !0, zIndex: 340, label: t("common.actions.close"), children: /* @__PURE__ */ r.jsx(Xn, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: k, style: {
11976
11978
  position: "absolute",
11977
11979
  top: "0.5em",
11978
11980
  right: "0.8em"
@@ -12003,7 +12005,7 @@ const Kk = z(({
12003
12005
  return /* @__PURE__ */ r.jsx("div", { className: t.palette, children: n.map(([i, s], a) => /* @__PURE__ */ r.jsx(Yk, { index: a, color: i, value: e.getStepFromValue(s), onChange: (o) => e.changeStep(o, s) }, i)) });
12004
12006
  }), Xk = z(function(t) {
12005
12007
  const n = yn(() => new Uk(), []);
12006
- return Q(() => {
12008
+ return G(() => {
12007
12009
  n.fromProps(t);
12008
12010
  }), n.interpolation == null ? null : /* @__PURE__ */ r.jsx(Kk, { model: n });
12009
12011
  }), Jk = (e) => {
@@ -12190,7 +12192,7 @@ const Kk = z(({
12190
12192
  })), b = ((E = S.last(m)) == null ? void 0 : E.id) ?? null, [k, j] = K(b), T = (P) => {
12191
12193
  P !== "add" && j(P);
12192
12194
  };
12193
- Q(() => {
12195
+ G(() => {
12194
12196
  j((P) => b === P ? P : b);
12195
12197
  }, [b]);
12196
12198
  const A = () => {
@@ -12403,7 +12405,7 @@ function dC({
12403
12405
  }) {
12404
12406
  return /* @__PURE__ */ r.jsx(C, { children: /* @__PURE__ */ r.jsx(cC, { control: e, watch: t }) });
12405
12407
  }
12406
- const er = re(({
12408
+ const tr = re(({
12407
12409
  label: e,
12408
12410
  value: t,
12409
12411
  onChange: n,
@@ -12443,7 +12445,7 @@ const er = re(({
12443
12445
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
12444
12446
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
12445
12447
  field: i
12446
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
12448
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
12447
12449
  width: "48%"
12448
12450
  }, ...i }) }),
12449
12451
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -12606,7 +12608,7 @@ function xC({
12606
12608
  } = Ne({
12607
12609
  defaultValues: a
12608
12610
  });
12609
- return Q(() => {
12611
+ return G(() => {
12610
12612
  u(a);
12611
12613
  }, [a]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
12612
12614
  /* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
@@ -13013,7 +13015,7 @@ function RC({
13013
13015
  value: t,
13014
13016
  set: n
13015
13017
  } = ne(e.instanceData, "config"), i = D(() => kt({}, t, mc), [t]), s = i;
13016
- Q(() => {
13018
+ G(() => {
13017
13019
  !zt(i, s) && (console.log("config malformed, resetting to defaults", i, s), n(s));
13018
13020
  }, [i, s]);
13019
13021
  const {
@@ -13025,7 +13027,7 @@ function RC({
13025
13027
  } = Ne({
13026
13028
  defaultValues: s
13027
13029
  });
13028
- return Q(() => {
13030
+ return G(() => {
13029
13031
  d(s);
13030
13032
  }, [s]), l(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
13031
13033
  /* @__PURE__ */ r.jsx(ct, { canSubmit: c.isDirty }),
@@ -13164,7 +13166,7 @@ const VC = {
13164
13166
  onChange: t,
13165
13167
  label: n,
13166
13168
  placeholder: i
13167
- }) => /* @__PURE__ */ r.jsx(Fr, { label: n, placeholder: i, value: e, onChange: t, size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: e ? /* @__PURE__ */ r.jsx(Kn, { onClick: () => {
13169
+ }) => /* @__PURE__ */ r.jsx(Fr, { label: n, placeholder: i, value: e, onChange: t, size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: e ? /* @__PURE__ */ r.jsx(Xn, { onClick: () => {
13168
13170
  t("");
13169
13171
  } }) : null })), BC = re(({
13170
13172
  value: e,
@@ -13787,7 +13789,7 @@ const zf = {
13787
13789
  variables: o,
13788
13790
  data: l
13789
13791
  } = t, c = D(() => Ta(e, o, s.payloadForViz, l), [e, o, l]), d = ((h = i.current) == null ? void 0 : h.textContent) === "";
13790
- Q(() => {
13792
+ G(() => {
13791
13793
  if (!n || !i.current)
13792
13794
  return;
13793
13795
  const p = d ? 0 : i.current.offsetHeight;
@@ -13864,13 +13866,13 @@ function yI(e) {
13864
13866
  function La(e, t) {
13865
13867
  switch (e.config.method) {
13866
13868
  case "linear":
13867
- return [...sr.regressionLinear()(t)];
13869
+ return [...ar.regressionLinear()(t)];
13868
13870
  case "exponential":
13869
- return [...sr.regressionExp()(t)];
13871
+ return [...ar.regressionExp()(t)];
13870
13872
  case "logistic":
13871
- return [...sr.regressionLog()(t)];
13873
+ return [...ar.regressionLog()(t)];
13872
13874
  case "polynomial":
13873
- return [...sr.regressionPoly().order(e.config.order)(t)];
13875
+ return [...ar.regressionPoly().order(e.config.order)(t)];
13874
13876
  default:
13875
13877
  return [];
13876
13878
  }
@@ -14386,7 +14388,7 @@ function qI({
14386
14388
  }), [c]), p = (f) => {
14387
14389
  u.current = f, ou(f);
14388
14390
  };
14389
- return Q(() => {
14391
+ return G(() => {
14390
14392
  u.current && ou(u.current);
14391
14393
  }, [d]), !n || !i ? null : /* @__PURE__ */ r.jsx(It, { echarts: gt, option: d, style: {
14392
14394
  width: n,
@@ -14846,7 +14848,7 @@ const KI = ({
14846
14848
  width: "50%"
14847
14849
  }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", mt: 24, onClick: s, sx: {
14848
14850
  flexGrow: 0
14849
- }, leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
14851
+ }, leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
14850
14852
  /* @__PURE__ */ r.jsx(He, { size: 800, title: n("chart.symbol_size.setup.title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
14851
14853
  /* @__PURE__ */ r.jsx($, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
14852
14854
  /* @__PURE__ */ r.jsx(KI, { value: o.func_content, onChange: u }),
@@ -14913,7 +14915,7 @@ function eT({
14913
14915
  t: o,
14914
14916
  i18n: l
14915
14917
  } = y();
14916
- Q(() => {
14918
+ G(() => {
14917
14919
  typeof t == "string" && n({
14918
14920
  type: t,
14919
14921
  config: {},
@@ -15034,7 +15036,7 @@ function eT({
15034
15036
  alignSelf: "center",
15035
15037
  marginTop: "22px"
15036
15038
  },
15037
- leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }),
15039
+ leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }),
15038
15040
  color: "grape"
15039
15041
  } })
15040
15042
  ] }),
@@ -15508,7 +15510,7 @@ function uT({
15508
15510
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
15509
15511
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
15510
15512
  field: a
15511
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
15513
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
15512
15514
  width: "48%"
15513
15515
  }, ...a }) }),
15514
15516
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -15656,7 +15658,7 @@ function mT({
15656
15658
  } = Ne({
15657
15659
  defaultValues: a
15658
15660
  });
15659
- return Q(() => {
15661
+ return G(() => {
15660
15662
  d(a);
15661
15663
  }, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
15662
15664
  /* @__PURE__ */ r.jsx(ct, { canSubmit: u.isDirty }),
@@ -16054,7 +16056,7 @@ const TT = ({
16054
16056
  ...u,
16055
16057
  ...a[h]
16056
16058
  })), l = S.get(o, "0.id"), [c, d] = K(l ?? null);
16057
- return Q(() => {
16059
+ return G(() => {
16058
16060
  l && d((u) => u !== null ? u : l);
16059
16061
  }, [l]), /* @__PURE__ */ r.jsxs(v, { value: c, onTabChange: (u) => d(u), styles: {
16060
16062
  panel: {
@@ -16084,7 +16086,7 @@ function zT({
16084
16086
  } = Ne({
16085
16087
  defaultValues: i
16086
16088
  });
16087
- return Q(() => {
16089
+ return G(() => {
16088
16090
  c(i);
16089
16091
  }, [i]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
16090
16092
  /* @__PURE__ */ r.jsx(ct, { canSubmit: l.isDirty }),
@@ -16503,7 +16505,7 @@ const Cs = ({
16503
16505
  const {
16504
16506
  t: n
16505
16507
  } = y();
16506
- return /* @__PURE__ */ r.jsx(Fr, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: t.value ? /* @__PURE__ */ r.jsx(Kn, { onClick: () => {
16508
+ return /* @__PURE__ */ r.jsx(Fr, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: t.value ? /* @__PURE__ */ r.jsx(Xn, { onClick: () => {
16507
16509
  t.onChange("");
16508
16510
  } }) : null, ...t });
16509
16511
  }, KT = ({
@@ -16669,10 +16671,10 @@ const Cs = ({
16669
16671
  }) => /* @__PURE__ */ r.jsx(L, { size: "xs", placeholder: "", ...a, onChange: (o) => a.onChange(o.currentTarget.value) }) }) }),
16670
16672
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(g, { name: `visualMap.pieces.${t}.color`, control: i, render: ({
16671
16673
  field: a
16672
- }) => /* @__PURE__ */ r.jsx(Fr, { label: s(""), placeholder: s("chart.color.label"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: a.value ? /* @__PURE__ */ r.jsx(Kn, { onClick: () => {
16674
+ }) => /* @__PURE__ */ r.jsx(Fr, { label: s(""), placeholder: s("chart.color.label"), size: "xs", withinPortal: !0, dropdownZIndex: 340, rightSection: a.value ? /* @__PURE__ */ r.jsx(Xn, { onClick: () => {
16673
16675
  a.onChange("");
16674
16676
  } }) : null, ...a }) }) }),
16675
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Kn, { onClick: () => n(t) }) })
16677
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(Xn, { onClick: () => n(t) }) })
16676
16678
  ] });
16677
16679
  }, tD = ({
16678
16680
  form: e
@@ -16935,7 +16937,7 @@ const wc = {
16935
16937
  tooltip: {
16936
16938
  metrics: []
16937
16939
  },
16938
- visualMap: Jn(),
16940
+ visualMap: Zn(),
16939
16941
  pagination: Lf({
16940
16942
  page_size: 20
16941
16943
  })
@@ -17131,7 +17133,7 @@ function xD({
17131
17133
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
17132
17134
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
17133
17135
  field: i
17134
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
17136
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
17135
17137
  width: "48%"
17136
17138
  }, ...i }) }),
17137
17139
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -17174,7 +17176,7 @@ function gD({
17174
17176
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
17175
17177
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.rotate", control: e, render: ({
17176
17178
  field: i
17177
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
17179
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
17178
17180
  width: "48%"
17179
17181
  }, ...i }) }),
17180
17182
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
@@ -17192,7 +17194,7 @@ function bD({
17192
17194
  value: n,
17193
17195
  set: i
17194
17196
  } = ne(e.instanceData, "config"), s = D(() => n ? Ee({}, n) : wc, [n]), a = D(() => S.cloneDeep(s), [s]);
17195
- Q(() => {
17197
+ G(() => {
17196
17198
  !zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
17197
17199
  }, [s, a]);
17198
17200
  const o = Ne({
@@ -17204,7 +17206,7 @@ function bD({
17204
17206
  formState: u,
17205
17207
  reset: h
17206
17208
  } = o;
17207
- return Q(() => {
17209
+ return G(() => {
17208
17210
  h(a);
17209
17211
  }, [a]), /* @__PURE__ */ r.jsx("form", { onSubmit: c(i), style: {
17210
17212
  flexGrow: 1
@@ -17349,7 +17351,7 @@ function SD(e) {
17349
17351
  }
17350
17352
  function kD(e) {
17351
17353
  const {
17352
- visualMap: t = Jn(),
17354
+ visualMap: t = Zn(),
17353
17355
  heat_block: {
17354
17356
  min: n,
17355
17357
  max: i,
@@ -17361,7 +17363,7 @@ function kD(e) {
17361
17363
  ...a,
17362
17364
  heat_block: s,
17363
17365
  visualMap: {
17364
- ...Jn(),
17366
+ ...Zn(),
17365
17367
  min: n,
17366
17368
  max: i
17367
17369
  }
@@ -17922,7 +17924,7 @@ const YD = (e, t) => `
17922
17924
  } = y(), [n, i] = K(!1), s = D(() => YD(e("viz.pareto_chart.line_80_20.param_section_note_1"), e("viz.pareto_chart.line_80_20.param_section_note_2")), [t.language]);
17923
17925
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
17924
17926
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => i((a) => !a), children: e(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
17925
- /* @__PURE__ */ r.jsx(Ji, { in: n, children: /* @__PURE__ */ r.jsx(Xn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: s }) })
17927
+ /* @__PURE__ */ r.jsx(Ji, { in: n, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: s }) })
17926
17928
  ] });
17927
17929
  };
17928
17930
  function XD({
@@ -18080,7 +18082,7 @@ function ez({
18080
18082
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
18081
18083
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
18082
18084
  field: i
18083
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
18085
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
18084
18086
  width: "48%"
18085
18087
  }, ...i }) }),
18086
18088
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -18124,7 +18126,7 @@ function nz({
18124
18126
  } = Ne({
18125
18127
  defaultValues: a
18126
18128
  });
18127
- return Q(() => {
18129
+ return G(() => {
18128
18130
  u(a);
18129
18131
  }, [a]), c(["x_axis", "data_key", "bar", "line", "dataZoom"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
18130
18132
  /* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
@@ -18522,7 +18524,7 @@ function jz({
18522
18524
  } = Ne({
18523
18525
  defaultValues: s
18524
18526
  });
18525
- return Q(() => {
18527
+ return G(() => {
18526
18528
  d(s);
18527
18529
  }, [s]), l(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(t), children: [
18528
18530
  /* @__PURE__ */ r.jsx(ct, { canSubmit: c.isDirty }),
@@ -19090,7 +19092,7 @@ function Uz({
19090
19092
  defaultValues: s,
19091
19093
  mode: "all"
19092
19094
  });
19093
- return Q(() => {
19095
+ return G(() => {
19094
19096
  c(s);
19095
19097
  }, [s]), l(["series_name_key", "background", "label"]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(i), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
19096
19098
  /* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty && d.isValid }),
@@ -19554,7 +19556,7 @@ function fM(e, t, n, i) {
19554
19556
  const {
19555
19557
  x_axis: s,
19556
19558
  y_axis: a
19557
- } = i, o = sr.regressionLinear()(n), {
19559
+ } = i, o = ar.regressionLinear()(n), {
19558
19560
  a: l,
19559
19561
  b: c,
19560
19562
  rSquared: d
@@ -19582,7 +19584,7 @@ function xM(e, t, n, i) {
19582
19584
  a: o,
19583
19585
  b: l,
19584
19586
  rSquared: c
19585
- } = sr.regressionExp()(n);
19587
+ } = ar.regressionExp()(n);
19586
19588
  return {
19587
19589
  name: e,
19588
19590
  expression: /* @__PURE__ */ r.jsxs(_, { position: "center", noWrap: !0, spacing: 10, children: [
@@ -19610,7 +19612,7 @@ function gM(e, t, n, i) {
19610
19612
  a: o,
19611
19613
  b: l,
19612
19614
  rSquared: c
19613
- } = sr.regressionLog()(n);
19615
+ } = ar.regressionLog()(n);
19614
19616
  return {
19615
19617
  name: e,
19616
19618
  expression: /* @__PURE__ */ r.jsxs(_, { position: "center", noWrap: !0, spacing: 10, children: [
@@ -19635,7 +19637,7 @@ function bM(e, t, n, i) {
19635
19637
  x_axis: s,
19636
19638
  y_axis: a,
19637
19639
  regression: o
19638
- } = i, l = sr.regressionPoly().order(o.transform.config.order)(n), {
19640
+ } = i, l = ar.regressionPoly().order(o.transform.config.order)(n), {
19639
19641
  rSquared: c
19640
19642
  } = l;
19641
19643
  return console.log(l), {
@@ -19801,7 +19803,7 @@ function SM({
19801
19803
  ...m,
19802
19804
  [p.columnKey]: Number(m[p.columnKey])
19803
19805
  });
19804
- }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = D(() => mM(kt({}, t, kc), s), [t, s]), o = dr(null), l = (c) => {
19806
+ }, [e.data, t == null ? void 0 : t.regression.y_axis_data_key]), a = D(() => mM(kt({}, t, kc), s), [t, s]), o = Kn(null), l = (c) => {
19805
19807
  o.current = c;
19806
19808
  };
19807
19809
  return !n || !i || !t ? null : /* @__PURE__ */ r.jsxs(Wt, { width: n, height: i, children: [
@@ -19943,7 +19945,7 @@ function TM({
19943
19945
  } = Ne({
19944
19946
  defaultValues: i
19945
19947
  });
19946
- return Q(() => {
19948
+ return G(() => {
19947
19949
  c(i);
19948
19950
  }, [i]), o(["x_axis", "y_axis", "regression"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
19949
19951
  /* @__PURE__ */ r.jsx(ct, { canSubmit: l.isDirty }),
@@ -20110,10 +20112,10 @@ function $M({
20110
20112
  } = Ne({
20111
20113
  defaultValues: s
20112
20114
  });
20113
- l("content"), Q(() => {
20115
+ l("content"), G(() => {
20114
20116
  c(s);
20115
20117
  }, [s]);
20116
- const d = dr(null), u = () => {
20118
+ const d = Kn(null), u = () => {
20117
20119
  var h;
20118
20120
  return (h = d.current) == null ? void 0 : h.click();
20119
20121
  };
@@ -21210,7 +21212,7 @@ const CE = ({
21210
21212
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
21211
21213
  /* @__PURE__ */ r.jsx(R, { sx: {
21212
21214
  width: "50%"
21213
- }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: s, sx: {
21215
+ }, children: /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: s, sx: {
21214
21216
  flexGrow: 0
21215
21217
  }, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
21216
21218
  /* @__PURE__ */ r.jsx(He, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: i, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(C, { children: [
@@ -21452,7 +21454,7 @@ function $E({
21452
21454
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
21453
21455
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
21454
21456
  field: i
21455
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
21457
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
21456
21458
  width: "48%"
21457
21459
  }, ...i }) }),
21458
21460
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -21557,7 +21559,7 @@ function VE({
21557
21559
  } = Ne({
21558
21560
  defaultValues: a
21559
21561
  });
21560
- return Q(() => {
21562
+ return G(() => {
21561
21563
  d(a);
21562
21564
  }, [a]), c(["dataZoom"]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(t), children: [
21563
21565
  /* @__PURE__ */ r.jsx(ct, { canSubmit: u.isDirty }),
@@ -21791,47 +21793,66 @@ const tL = z(({
21791
21793
  context: e,
21792
21794
  instance: t
21793
21795
  }) => {
21794
- const n = Jt({
21796
+ const n = Kn(null), i = Jt({
21795
21797
  vizManager: e.vizManager,
21796
21798
  instance: t
21797
- }), i = Xt(n.triggerManager, Gf.id), s = Ye(), {
21798
- value: a = Ho
21799
+ }), s = Xt(i.triggerManager, Gf.id), a = Ye(), {
21800
+ value: o = Ho
21799
21801
  } = ne(e.instanceData, "config"), {
21800
- panel: o
21802
+ panel: l
21801
21803
  } = Nt(), {
21802
- data: l,
21803
- variables: c
21804
+ data: c,
21805
+ variables: d
21804
21806
  } = e, {
21805
- width: d,
21806
- height: u
21807
- } = e.viewport, h = D(() => {
21808
- const f = Ee({}, a, Ho);
21809
- return f.content ? Ta(f.content, c, s.payloadForViz, l) : "";
21810
- }, [l, a, c, s.payloadForViz]), p = je(() => {
21811
- i.forEach((f) => {
21812
- n.runInteraction(f.id, {
21813
- variables: o.variableValueMap
21807
+ width: u,
21808
+ height: h
21809
+ } = e.viewport, p = D(() => {
21810
+ const m = Ee({}, o, Ho);
21811
+ return m.content ? Ta(m.content, d, a.payloadForViz, c) : "";
21812
+ }, [c, o, d, a.payloadForViz]), f = je(() => {
21813
+ s.forEach((m) => {
21814
+ i.runInteraction(m.id, {
21815
+ variables: l.variableValueMap
21814
21816
  });
21815
21817
  });
21816
- }, [o.variableValueMap, i, n]);
21817
- return /* @__PURE__ */ r.jsx(an, { className: "viz-stats", sx: {
21818
- width: d,
21819
- height: u
21820
- }, align: ZE[a.vertical_align], direction: "row", children: /* @__PURE__ */ r.jsx(R, { className: "viz-stats--clickable-wrapper", sx: eL(i.length), onClick: p, children: /* @__PURE__ */ r.jsx(_i, { value: h, styles: {
21818
+ }, [l.variableValueMap, s, i]);
21819
+ return G(() => {
21820
+ if (!n.current)
21821
+ return;
21822
+ const m = n.current.querySelector(".ProseMirror > p");
21823
+ if (!m)
21824
+ return;
21825
+ const {
21826
+ offsetWidth: b,
21827
+ offsetHeight: k
21828
+ } = m, j = u / b, T = h / k, A = Math.min(j, T);
21829
+ m.style.transform = `scale(${A})`;
21830
+ }, [n.current, u, h, p]), /* @__PURE__ */ r.jsx(an, { className: "viz-stats", sx: {
21831
+ width: u,
21832
+ height: h
21833
+ }, align: ZE[o.vertical_align], direction: "row", children: /* @__PURE__ */ r.jsx(R, { className: "viz-stats--clickable-wrapper", sx: eL(s.length), onClick: f, children: /* @__PURE__ */ r.jsx(_i, { ref: n, value: p, styles: {
21821
21834
  root: {
21822
21835
  border: "none",
21823
- maxWidth: d,
21824
- maxHeight: u,
21836
+ maxWidth: u,
21837
+ maxHeight: h,
21825
21838
  "&.mantine-RichTextEditor-root": {
21826
- overflow: "auto !important"
21839
+ overflow: "hidden !important"
21827
21840
  }
21828
21841
  },
21829
21842
  content: {
21830
21843
  "&.mantine-RichTextEditor-content .ProseMirror": {
21831
- padding: 0
21844
+ padding: 0,
21845
+ height: h
21846
+ },
21847
+ "&.mantine-RichTextEditor-content .ProseMirror > p": {
21848
+ display: "table",
21849
+ margin: "0 auto !important",
21850
+ transformOrigin: "top center",
21851
+ fontSize: "initial",
21852
+ lineHeight: "initial"
21832
21853
  }
21833
21854
  }
21834
- }, dashboardState: s.dashboardState, variableAggValueMap: o.variableAggValueMap }) }) });
21855
+ }, dashboardState: a.dashboardState, variableAggValueMap: l.variableAggValueMap }) }) });
21835
21856
  });
21836
21857
  function nL({
21837
21858
  conf: e,
@@ -22203,7 +22224,7 @@ function vL({
22203
22224
  } = Ne({
22204
22225
  defaultValues: a
22205
22226
  });
22206
- Q(() => {
22227
+ G(() => {
22207
22228
  u(a);
22208
22229
  }, [a]), c(["label_key", "value_key", "group_key", "levels"]);
22209
22230
  const [h, p] = K("Data");
@@ -22795,7 +22816,7 @@ class YL {
22795
22816
  const KL = (e) => {
22796
22817
  const t = Jt(e), n = Xt(t.triggerManager, Ic.id), {
22797
22818
  colorManager: i
22798
- } = pr(tr);
22819
+ } = pr(nr);
22799
22820
  return je((s) => new YL(e.getColIndex, s, n, t, i), [n, t, e.getColIndex]);
22800
22821
  };
22801
22822
  function xu({
@@ -22974,7 +22995,7 @@ const rA = re((e, t) => {
22974
22995
  t: n
22975
22996
  } = y(), {
22976
22997
  colorManager: i
22977
- } = pr(tr), [s, a] = K(ex(e.value)), [o, l] = K(tA(i, e.value)), c = ld(o), [d, u] = K(nA(i, e.value)), h = ld(d), p = (b) => {
22998
+ } = pr(nr), [s, a] = K(ex(e.value)), [o, l] = K(tA(i, e.value)), c = ld(o), [d, u] = K(nA(i, e.value)), h = ld(d), p = (b) => {
22978
22999
  var k, j, T;
22979
23000
  a(b || "none"), b === "static" ? (k = e.onChange) == null || k.call(e, c.current) : b === "none" || !b ? (j = e.onChange) == null || j.call(e, "none") : (T = e.onChange) == null || T.call(e, h.current);
22980
23001
  }, f = (b) => {
@@ -23018,10 +23039,10 @@ const rA = re((e, t) => {
23018
23039
  }, h = () => {
23019
23040
  c(Qf);
23020
23041
  };
23021
- return Q(() => {
23042
+ return G(() => {
23022
23043
  c(e);
23023
23044
  }, [e]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
23024
- /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: a, sx: {
23045
+ /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: a, sx: {
23025
23046
  flexGrow: 0
23026
23047
  }, children: i("viz.table.column.custom_cell_content") }),
23027
23048
  /* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.table.column.custom_cell_content"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(C, { children: [
@@ -23190,7 +23211,7 @@ function dA({
23190
23211
  value: n,
23191
23212
  set: i
23192
23213
  } = ne(e.instanceData, "config"), s = D(() => kt({}, n, Uf), [n]), a = D(() => cA(s), [s]);
23193
- Q(() => {
23214
+ G(() => {
23194
23215
  !zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
23195
23216
  }, [s, a]);
23196
23217
  const {
@@ -23202,7 +23223,7 @@ function dA({
23202
23223
  } = Ne({
23203
23224
  defaultValues: a
23204
23225
  });
23205
- return Q(() => {
23226
+ return G(() => {
23206
23227
  u(a);
23207
23228
  }, [a]), c(["query_id"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
23208
23229
  /* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
@@ -23555,10 +23576,10 @@ const jA = N.forwardRef(vA), wA = ({
23555
23576
  }, h = () => {
23556
23577
  c(tx);
23557
23578
  };
23558
- return Q(() => {
23579
+ return G(() => {
23559
23580
  c(e);
23560
23581
  }, [e]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
23561
- /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 }), mt: 24, onClick: a, sx: {
23582
+ /* @__PURE__ */ r.jsx(M, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 }), mt: 24, onClick: a, sx: {
23562
23583
  flexGrow: 0
23563
23584
  }, children: i("viz.text.content.edit") }),
23564
23585
  /* @__PURE__ */ r.jsx(He, { size: 800, title: i("viz.text.content.label"), opened: s, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(C, { children: [
@@ -23595,7 +23616,7 @@ function kA({
23595
23616
  font_weight: m
23596
23617
  };
23597
23618
  }, [s]);
23598
- Q(() => {
23619
+ G(() => {
23599
23620
  !zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
23600
23621
  }, [s, a]);
23601
23622
  const {
@@ -23808,7 +23829,7 @@ function PA({
23808
23829
  } = Ne({
23809
23830
  defaultValues: i
23810
23831
  });
23811
- return Q(() => {
23832
+ return G(() => {
23812
23833
  c(i);
23813
23834
  }, [i]), o(["expertSystemURL", "goal", "path", "question"]), /* @__PURE__ */ r.jsx("form", { onSubmit: a(n), children: /* @__PURE__ */ r.jsxs(C, { children: [
23814
23835
  /* @__PURE__ */ r.jsxs(_, { grow: !0, children: [
@@ -23935,7 +23956,7 @@ function BA(e) {
23935
23956
  }
23936
23957
  function WA(e) {
23937
23958
  const {
23938
- visualMap: t = Jn(),
23959
+ visualMap: t = Zn(),
23939
23960
  heat_block: {
23940
23961
  min: n,
23941
23962
  max: i,
@@ -23947,7 +23968,7 @@ function WA(e) {
23947
23968
  ...a,
23948
23969
  heat_block: s,
23949
23970
  visualMap: {
23950
- ...Jn(),
23971
+ ...Zn(),
23951
23972
  min: n,
23952
23973
  max: i
23953
23974
  }
@@ -24038,7 +24059,7 @@ const nx = {
24038
24059
  tooltip: {
24039
24060
  metrics: []
24040
24061
  },
24041
- visualMap: Jn()
24062
+ visualMap: Zn()
24042
24063
  };
24043
24064
  function KA(e, t, n) {
24044
24065
  if (!e)
@@ -24411,7 +24432,7 @@ function xR({
24411
24432
  value: n,
24412
24433
  set: i
24413
24434
  } = ne(e.instanceData, "config"), s = D(() => n ? Ee({}, n) : zc, [n]), a = D(() => S.cloneDeep(s), [s]);
24414
- Q(() => {
24435
+ G(() => {
24415
24436
  !zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
24416
24437
  }, [s, a]);
24417
24438
  const o = Ne({
@@ -24423,7 +24444,7 @@ function xR({
24423
24444
  formState: u,
24424
24445
  reset: h
24425
24446
  } = o;
24426
- return Q(() => {
24447
+ return G(() => {
24427
24448
  h(a);
24428
24449
  }, [a]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: c(i), children: [
24429
24450
  /* @__PURE__ */ r.jsx(ct, { canSubmit: u.isDirty }),
@@ -25285,7 +25306,7 @@ function KR({
25285
25306
  } = Ne({
25286
25307
  defaultValues: a
25287
25308
  });
25288
- return Q(() => {
25309
+ return G(() => {
25289
25310
  u(a);
25290
25311
  }, [a]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(i), children: [
25291
25312
  /* @__PURE__ */ r.jsx(ct, { canSubmit: d.isDirty }),
@@ -26083,7 +26104,7 @@ function CP({
26083
26104
  estimated_value: c,
26084
26105
  actual_value: d
26085
26106
  } = l.data_keys, [u, h] = K(d);
26086
- if (Q(() => {
26107
+ if (G(() => {
26087
26108
  h((m) => m || d);
26088
26109
  }, [d]), !o.data_key || !c || !d || !s || !a)
26089
26110
  return null;
@@ -26190,7 +26211,7 @@ function zP({
26190
26211
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
26191
26212
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
26192
26213
  field: n
26193
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
26214
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
26194
26215
  width: "48%"
26195
26216
  }, ...n }) }),
26196
26217
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -26214,7 +26235,7 @@ function MP({
26214
26235
  } = Ne({
26215
26236
  defaultValues: i
26216
26237
  });
26217
- return Q(() => {
26238
+ return G(() => {
26218
26239
  c(i);
26219
26240
  }, [i]), /* @__PURE__ */ r.jsx(C, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
26220
26241
  /* @__PURE__ */ r.jsx(ct, { canSubmit: l.isDirty }),
@@ -26560,7 +26581,7 @@ function HP({
26560
26581
  } = Ne({
26561
26582
  defaultValues: s
26562
26583
  });
26563
- return Q(() => {
26584
+ return G(() => {
26564
26585
  d(s);
26565
26586
  }, [s]), /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(C, { spacing: "xs", children: [
26566
26587
  /* @__PURE__ */ r.jsx(ct, { canSubmit: c.isDirty }),
@@ -26696,7 +26717,7 @@ const XP = {
26696
26717
  tooltip: {
26697
26718
  metrics: []
26698
26719
  },
26699
- visualMap: Jn()
26720
+ visualMap: Zn()
26700
26721
  };
26701
26722
  function JP({
26702
26723
  control: e,
@@ -26821,7 +26842,7 @@ function n$({
26821
26842
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
26822
26843
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.rotate", control: e, render: ({
26823
26844
  field: i
26824
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
26845
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
26825
26846
  width: "48%"
26826
26847
  }, ...i }) }),
26827
26848
  /* @__PURE__ */ r.jsx(g, { name: "x_axis.axisLabel.formatter", control: e, render: ({
@@ -26864,7 +26885,7 @@ function r$({
26864
26885
  /* @__PURE__ */ r.jsxs(_, { grow: !0, noWrap: !0, children: [
26865
26886
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.rotate", control: e, render: ({
26866
26887
  field: i
26867
- }) => /* @__PURE__ */ r.jsx(er, { sx: {
26888
+ }) => /* @__PURE__ */ r.jsx(tr, { sx: {
26868
26889
  width: "48%"
26869
26890
  }, ...i }) }),
26870
26891
  /* @__PURE__ */ r.jsx(g, { name: "y_axis.axisLabel.formatter", control: e, render: ({
@@ -26882,7 +26903,7 @@ function i$({
26882
26903
  value: n,
26883
26904
  set: i
26884
26905
  } = ne(e.instanceData, "config"), s = D(() => n ? Ee({}, n) : Ac, [n]), a = D(() => S.cloneDeep(s), [s]);
26885
- Q(() => {
26906
+ G(() => {
26886
26907
  !zt(s, a) && (console.log("config malformed, resetting to defaults", s, a), i(a));
26887
26908
  }, [s, a]);
26888
26909
  const o = Ne({
@@ -26894,7 +26915,7 @@ function i$({
26894
26915
  formState: u,
26895
26916
  reset: h
26896
26917
  } = o;
26897
- return Q(() => {
26918
+ return G(() => {
26898
26919
  h(a);
26899
26920
  }, [a]), /* @__PURE__ */ r.jsx("form", { onSubmit: c(i), style: {
26900
26921
  flexGrow: 1
@@ -27302,7 +27323,7 @@ const y$ = {
27302
27323
  }];
27303
27324
  function j$(e) {
27304
27325
  const {
27305
- visualMap: t = Jn(),
27326
+ visualMap: t = Zn(),
27306
27327
  heat_block: {
27307
27328
  min: n,
27308
27329
  max: i,
@@ -27314,7 +27335,7 @@ function j$(e) {
27314
27335
  ...a,
27315
27336
  heat_block: s,
27316
27337
  visualMap: {
27317
- ...Jn(),
27338
+ ...Zn(),
27318
27339
  min: n,
27319
27340
  max: i
27320
27341
  }
@@ -27426,7 +27447,7 @@ const S$ = {
27426
27447
  vizManager: e,
27427
27448
  colorManager: t
27428
27449
  };
27429
- }, tr = Ru(Rc());
27450
+ }, nr = Ru(Rc());
27430
27451
  try {
27431
27452
  Pi.install(ax());
27432
27453
  } catch {
@@ -28568,7 +28589,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
28568
28589
  } = y(), [t, n] = K(!1);
28569
28590
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
28570
28591
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
28571
- /* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(Xn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: W$ }) })
28592
+ /* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: W$ }) })
28572
28593
  ] });
28573
28594
  }, H$ = {
28574
28595
  [Z.Checkbox]: "true",
@@ -28592,7 +28613,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
28592
28613
  flexGrow: 0,
28593
28614
  alignSelf: "flex-start"
28594
28615
  },
28595
- leftIcon: /* @__PURE__ */ r.jsx(Zn, { size: 16 })
28616
+ leftIcon: /* @__PURE__ */ r.jsx(er, { size: 16 })
28596
28617
  }, description: /* @__PURE__ */ r.jsx(Xi, { title: t("filter.field.custom_default_value.tips"), color: "gray", mb: 16, children: /* @__PURE__ */ r.jsxs(Ut, { size: 13, type: "ordered", children: [
28597
28618
  /* @__PURE__ */ r.jsx(Ut.Item, { children: t("filter.field.custom_default_value.tip_1") }),
28598
28619
  /* @__PURE__ */ r.jsx(Ut.Item, { children: t("filter.field.custom_default_value.tip_2") })
@@ -28977,7 +28998,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
28977
28998
  style: a,
28978
28999
  listHeight: 510,
28979
29000
  treeLine: !0,
28980
- clearIcon: () => /* @__PURE__ */ r.jsx(Kn, {}),
29001
+ clearIcon: () => /* @__PURE__ */ r.jsx(Xn, {}),
28981
29002
  switcherIcon: bx,
28982
29003
  treeIcon: yx,
28983
29004
  maxTagTextLength: 10,
@@ -29321,7 +29342,7 @@ const F$ = x.model("FilterDateRangeConfigMeta", {
29321
29342
  style: a,
29322
29343
  listHeight: 510,
29323
29344
  treeLine: !0,
29324
- clearIcon: () => /* @__PURE__ */ r.jsx(Kn, {}),
29345
+ clearIcon: () => /* @__PURE__ */ r.jsx(Xn, {}),
29325
29346
  switcherIcon: bx,
29326
29347
  treeIcon: yx,
29327
29348
  value: l,
@@ -31478,7 +31499,7 @@ const k2 = (e) => new S2(e), C2 = ({
31478
31499
  count: l.length
31479
31500
  }), children: /* @__PURE__ */ r.jsx(ur, { children: l.length }) })
31480
31501
  ] }),
31481
- /* @__PURE__ */ r.jsx(n_, { disabled: e, allowClear: !0, className: m(f.root, "check-select"), dropdownClassName: m(f.dropdown, ""), onDropdownVisibleChange: j, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Kn, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Va, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ee) => p("filter.widget.common.x_selected", {
31502
+ /* @__PURE__ */ r.jsx(n_, { disabled: e, allowClear: !0, className: m(f.root, "check-select"), dropdownClassName: m(f.dropdown, ""), onDropdownVisibleChange: j, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(Xn, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(Va, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (ee) => p("filter.widget.common.x_selected", {
31482
31503
  count: ee.length
31483
31504
  }), searchValue: A, onSearch: E, filterOption: !1, children: P.map((ee) => /* @__PURE__ */ r.jsxs(r_, { title: ee.label, children: [
31484
31505
  /* @__PURE__ */ r.jsx(I, { size: "sm", "data-role": "label", children: ee.label }),
@@ -31608,7 +31629,7 @@ const F2 = z(({
31608
31629
  };
31609
31630
  function q2(e) {
31610
31631
  const t = ye();
31611
- Q(() => {
31632
+ G(() => {
31612
31633
  var n, i;
31613
31634
  (i = (n = t.filters).updatePreviewValues) == null || i.call(n, e);
31614
31635
  }, [e]);
@@ -31637,7 +31658,7 @@ const B2 = ({
31637
31658
  }), c = vy({
31638
31659
  control: a
31639
31660
  });
31640
- Q(() => {
31661
+ G(() => {
31641
31662
  l(s.filters.values);
31642
31663
  }, [s.filters.values, l]), q2(c);
31643
31664
  const d = s.filters.visibleInView(t.id), u = D(() => d.every((m) => m.should_auto_submit), [d]), h = D(() => d.filter((m) => S.get(m, "config.required", !1)), [d]), p = D(() => h.length === 0 ? !1 : h.some((m) => !m.requiredAndPass(c[m.key])), [c, h]);
@@ -31793,7 +31814,7 @@ const Y2 = z(function() {
31793
31814
  }, children: /* @__PURE__ */ r.jsx(I, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
31794
31815
  });
31795
31816
  function K2(e) {
31796
- const t = dr(null);
31817
+ const t = Kn(null);
31797
31818
  return {
31798
31819
  ref: t,
31799
31820
  downloadPanelScreenshot: () => {
@@ -31892,7 +31913,7 @@ function Kx(e) {
31892
31913
  }
31893
31914
  function Xx(e, t) {
31894
31915
  const n = ox().getRequired(Ze.instanceScope.vizInstance);
31895
- return Q(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (i) => {
31916
+ return G(() => (n.instanceData.setItem(null, t.viz.conf), n.instanceData.watchItem(null, (i) => {
31896
31917
  e(i);
31897
31918
  })), [e, t.viz.type]), n;
31898
31919
  }
@@ -31931,7 +31952,7 @@ function Z2(e) {
31931
31952
  function eO(e, t) {
31932
31953
  const {
31933
31954
  vizManager: n
31934
- } = pr(tr), {
31955
+ } = pr(nr), {
31935
31956
  panel: {
31936
31957
  viz: i,
31937
31958
  title: s,
@@ -32142,7 +32163,7 @@ const pO = N.forwardRef(({
32142
32163
  className: t = "layout"
32143
32164
  }) => {
32144
32165
  const i = ye().layouts, s = i.items(e.panelIDs), a = i.gridLayouts(e.panelIDs), o = (d, u, h, p) => {
32145
- console.log("🔴 onResize", d), h.h < 30 && (h.h = 30, p.h = 30), h.w < 4 && (h.w = 4, p.w = 4);
32166
+ h.h < 30 && (h.h = 30, p.h = 30), h.w < 4 && (h.w = 4, p.w = 4);
32146
32167
  }, l = (d, u, h) => {
32147
32168
  console.log("🔴 onResizeStop", {
32148
32169
  layouts: d,
@@ -32168,7 +32189,7 @@ const pO = N.forwardRef(({
32168
32189
  return /* @__PURE__ */ r.jsx(gO, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: s, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: i.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": a.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(eg, { view: e, panel: a.panel }) }, a.id)) });
32169
32190
  });
32170
32191
  function Vc(e) {
32171
- const t = dr(null);
32192
+ const t = Kn(null);
32172
32193
  return {
32173
32194
  ref: t,
32174
32195
  downloadScreenshot: () => {
@@ -32314,7 +32335,7 @@ const yO = z(({
32314
32335
  view: t
32315
32336
  }) => {
32316
32337
  const i = ye().layouts, [s, a] = fb();
32317
- return Q(() => {
32338
+ return G(() => {
32318
32339
  i.setCurrentLayoutWrapperWidth(a.width);
32319
32340
  }, [a.width]), /* @__PURE__ */ r.jsx(R, { sx: {
32320
32341
  height: "100%"
@@ -36031,7 +36052,7 @@ function sg({
36031
36052
  lang: e,
36032
36053
  children: t
36033
36054
  }) {
36034
- return Q(() => {
36055
+ return G(() => {
36035
36056
  la.changeLanguage(e);
36036
36057
  }, [e]), /* @__PURE__ */ r.jsx(Kb, { i18n: la, children: t });
36037
36058
  }
@@ -36039,7 +36060,7 @@ function Ds(e) {
36039
36060
  console.groupCollapsed("Running operation ", e.type), console.log(e), console.groupEnd();
36040
36061
  }
36041
36062
  function ag(e, t) {
36042
- Q(() => {
36063
+ G(() => {
36043
36064
  const n = (i) => {
36044
36065
  Ds(i);
36045
36066
  const {
@@ -36054,7 +36075,7 @@ function ag(e, t) {
36054
36075
  return window.addEventListener("open-view", n), () => {
36055
36076
  window.removeEventListener("open-view", n);
36056
36077
  };
36057
- }, [e, t]), Q(() => {
36078
+ }, [e, t]), G(() => {
36058
36079
  const n = (i) => {
36059
36080
  Ds(i);
36060
36081
  const {
@@ -36074,7 +36095,7 @@ function ag(e, t) {
36074
36095
  return window.addEventListener("set-filter-values", n), () => {
36075
36096
  window.removeEventListener("set-filter-values", n);
36076
36097
  };
36077
- }, [e]), Q(() => {
36098
+ }, [e]), G(() => {
36078
36099
  function n(s) {
36079
36100
  return Array.isArray(s) ? [] : typeof s == "object" ? {} : typeof s == "boolean" ? !1 : typeof s == "string" ? "" : typeof s == "number" ? 0 : s;
36080
36101
  }
@@ -36091,7 +36112,7 @@ function ag(e, t) {
36091
36112
  return window.addEventListener("clear-filter-values", i), () => {
36092
36113
  window.removeEventListener("clear-filter-values", i);
36093
36114
  };
36094
- }, [e]), Q(() => {
36115
+ }, [e]), G(() => {
36095
36116
  const n = (i) => {
36096
36117
  Ds(i);
36097
36118
  const {
@@ -36566,7 +36587,7 @@ const CF = z(({
36566
36587
  });
36567
36588
  }
36568
36589
  }, [p, f] = K(null);
36569
- Q(() => {
36590
+ G(() => {
36570
36591
  if (!p)
36571
36592
  return;
36572
36593
  const A = new FileReader();
@@ -36588,7 +36609,7 @@ const CF = z(({
36588
36609
  };
36589
36610
  }, [p]);
36590
36611
  const [m] = c(["content"]), b = !m, k = (j = o == null ? void 0 : o.content) == null ? void 0 : j.message;
36591
- return Q(() => {
36612
+ return G(() => {
36592
36613
  !m || k ? n() : t();
36593
36614
  }, [m, k]), /* @__PURE__ */ r.jsx(R, { mx: "auto", sx: {
36594
36615
  position: "relative"
@@ -37256,7 +37277,7 @@ const nV = z(() => {
37256
37277
  } = y(), [t, n] = K(!1);
37257
37278
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
37258
37279
  /* @__PURE__ */ r.jsx(M, { variant: "subtle", compact: !0, onClick: () => n((i) => !i), children: e(t ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
37259
- /* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(Xn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: oV }) })
37280
+ /* @__PURE__ */ r.jsx(Ji, { in: t, children: /* @__PURE__ */ r.jsx(Jn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: oV }) })
37260
37281
  ] });
37261
37282
  }, lV = z(function({
37262
37283
  filter: t
@@ -37424,7 +37445,7 @@ const nV = z(() => {
37424
37445
  maxWidth: "480px"
37425
37446
  }, children: [
37426
37447
  /* @__PURE__ */ r.jsx(I, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
37427
- /* @__PURE__ */ r.jsx(Xn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
37448
+ /* @__PURE__ */ r.jsx(Jn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(t, null, 4) })
37428
37449
  ] });
37429
37450
  }), hV = {
37430
37451
  [Z.Select]: cV,
@@ -37434,7 +37455,7 @@ const nV = z(() => {
37434
37455
  [Z.TextInput]: dV,
37435
37456
  [Z.Checkbox]: iV,
37436
37457
  [Z.DateRange]: aV
37437
- }, rr = {
37458
+ }, ir = {
37438
37459
  [Z.Select]: "filter.widget.names.select",
37439
37460
  [Z.MultiSelect]: "filter.widget.names.multi_select",
37440
37461
  [Z.TreeSelect]: "filter.widget.names.tree_select",
@@ -37449,25 +37470,25 @@ const nV = z(() => {
37449
37470
  t: n,
37450
37471
  i18n: i
37451
37472
  } = y(), s = ye(), a = N.useMemo(() => hV[t.type], [t.type]), o = D(() => [{
37452
- label: n(rr[Z.Select]),
37473
+ label: n(ir[Z.Select]),
37453
37474
  value: "select"
37454
37475
  }, {
37455
- label: n(rr[Z.MultiSelect]),
37476
+ label: n(ir[Z.MultiSelect]),
37456
37477
  value: "multi-select"
37457
37478
  }, {
37458
- label: n(rr[Z.TreeSelect]),
37479
+ label: n(ir[Z.TreeSelect]),
37459
37480
  value: "tree-select"
37460
37481
  }, {
37461
- label: n(rr[Z.TreeSingleSelect]),
37482
+ label: n(ir[Z.TreeSingleSelect]),
37462
37483
  value: "tree-single-select"
37463
37484
  }, {
37464
- label: n(rr[Z.TextInput]),
37485
+ label: n(ir[Z.TextInput]),
37465
37486
  value: "text-input"
37466
37487
  }, {
37467
- label: n(rr[Z.Checkbox]),
37488
+ label: n(ir[Z.Checkbox]),
37468
37489
  value: "checkbox"
37469
37490
  }, {
37470
- label: n(rr[Z.DateRange]),
37491
+ label: n(ir[Z.DateRange]),
37471
37492
  value: "date-range"
37472
37493
  }], [i.language]);
37473
37494
  return /* @__PURE__ */ r.jsxs(_, { grow: !0, spacing: 20, align: "top", children: [
@@ -37619,7 +37640,7 @@ const nV = z(() => {
37619
37640
  } }) }),
37620
37641
  /* @__PURE__ */ r.jsx("td", { children: d.label }),
37621
37642
  /* @__PURE__ */ r.jsx("td", { children: d.key }),
37622
- /* @__PURE__ */ r.jsx("td", { children: e(rr[d.type]) }),
37643
+ /* @__PURE__ */ r.jsx("td", { children: e(ir[d.type]) }),
37623
37644
  /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(M, { variant: "subtle", size: "xs", onClick: () => s(d.id), children: e("common.actions.open") }) })
37624
37645
  ] }, d.id)) })
37625
37646
  ] }) }) })
@@ -37731,7 +37752,7 @@ const nV = z(() => {
37731
37752
  } = t, [i, s] = eh(n), a = n !== i, o = N.useCallback(() => {
37732
37753
  a && t.setName(i);
37733
37754
  }, [a, i]);
37734
- Q(() => {
37755
+ G(() => {
37735
37756
  s(n);
37736
37757
  }, [n]);
37737
37758
  const l = !i.trim();
@@ -37942,7 +37963,7 @@ const SV = [{
37942
37963
  }, [e, s]), d = () => {
37943
37964
  s.queries.downloadDataByQueryID(e);
37944
37965
  };
37945
- Q(() => {
37966
+ G(() => {
37946
37967
  n && c();
37947
37968
  }, [c, n]);
37948
37969
  const u = !Array.isArray(a) || a.length === 0;
@@ -38018,7 +38039,7 @@ function EV() {
38018
38039
  t: e
38019
38040
  } = y(), {
38020
38041
  vizManager: t
38021
- } = pr(tr);
38042
+ } = pr(nr);
38022
38043
  return D(() => {
38023
38044
  const n = t.availableVizList.map((i) => ({
38024
38045
  value: i.name,
@@ -38035,7 +38056,7 @@ const LV = z(({
38035
38056
  const {
38036
38057
  t: n
38037
38058
  } = y(), [i, s] = eh(e);
38038
- Q(() => {
38059
+ G(() => {
38039
38060
  s(e);
38040
38061
  }, [e]);
38041
38062
  const a = EV(), o = e !== i;
@@ -38062,7 +38083,7 @@ function RV() {
38062
38083
  }
38063
38084
  } = qt(), {
38064
38085
  vizManager: c
38065
- } = pr(tr), d = {
38086
+ } = pr(nr), d = {
38066
38087
  name: s,
38067
38088
  title: i,
38068
38089
  description: o,
@@ -38084,7 +38105,7 @@ const PV = z(() => {
38084
38105
  }
38085
38106
  } = qt(), {
38086
38107
  vizManager: n
38087
- } = pr(tr), i = N.useCallback((d) => {
38108
+ } = pr(nr), i = N.useCallback((d) => {
38088
38109
  if (d === t.type)
38089
38110
  return;
38090
38111
  const u = AV(n, d);
@@ -38124,7 +38145,7 @@ const PV = z(() => {
38124
38145
  const {
38125
38146
  t: n
38126
38147
  } = y(), i = ye(), [s, a] = K(t);
38127
- Q(() => {
38148
+ G(() => {
38128
38149
  a(t);
38129
38150
  }, [t]);
38130
38151
  const [o, {
@@ -38175,10 +38196,10 @@ const PV = z(() => {
38175
38196
  /* @__PURE__ */ r.jsx(v.Tab, { value: "guide", icon: /* @__PURE__ */ r.jsx(qi, { size: 14 }), children: t("panel.variable.guide.tabs.guide") }),
38176
38197
  /* @__PURE__ */ r.jsx(v.Tab, { value: "vars", icon: /* @__PURE__ */ r.jsx(ts, { size: 14 }), children: t("panel.variable.guide.tabs.vars") })
38177
38198
  ] }),
38178
- /* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Xn, { language: "sql", sx: {
38199
+ /* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", sx: {
38179
38200
  width: "100%"
38180
38201
  }, noCopy: !0, colorScheme: "dark", children: t("panel.variable.guide.text") }) }),
38181
- /* @__PURE__ */ r.jsx(v.Panel, { value: "vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Xn, { language: "json", sx: {
38202
+ /* @__PURE__ */ r.jsx(v.Panel, { value: "vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "json", sx: {
38182
38203
  width: "100%"
38183
38204
  }, noCopy: !0, colorScheme: "dark", children: a }) })
38184
38205
  ] }) });
@@ -38385,7 +38406,7 @@ const QV = z(({
38385
38406
  const {
38386
38407
  t
38387
38408
  } = y(), n = $n(), i = ze(), s = ye(), [a, o] = K(i.editor.panelTab), l = e.queries, d = GV(e.viz.type) && e.dataLoading, u = d || e.queryErrors.length > 0 || e.queryStateMessages !== "" || l.length === 0, h = i.editor.path[1];
38388
- Q(() => {
38409
+ G(() => {
38389
38410
  o((b) => u && b === "Visualization" ? "Data" : b);
38390
38411
  }, [e.id, u]);
38391
38412
  const p = je((b) => {
@@ -38912,7 +38933,7 @@ const sN = z(({
38912
38933
  const {
38913
38934
  t
38914
38935
  } = y();
38915
- return Q(() => {
38936
+ return G(() => {
38916
38937
  e.loadTablesIfEmpty();
38917
38938
  }, [e]), e.tables.error ? /* @__PURE__ */ r.jsx(I, { color: "red", size: "md", align: "center", sx: {
38918
38939
  fontFamily: "monospace"
@@ -39061,7 +39082,7 @@ const sN = z(({
39061
39082
  const {
39062
39083
  t
39063
39084
  } = y(), [n, i] = K(e.name);
39064
- return Q(() => {
39085
+ return G(() => {
39065
39086
  i(e.name);
39066
39087
  }, [e.name]), /* @__PURE__ */ r.jsx(mr, { ml: 20, mt: 20, sx: {
39067
39088
  maxWidth: "600px"
@@ -39097,7 +39118,7 @@ function gN({
39097
39118
  }) {
39098
39119
  return /* @__PURE__ */ r.jsxs(Xe, { width: "60vw", shadow: "md", children: [
39099
39120
  /* @__PURE__ */ r.jsx(Xe.Target, { children: /* @__PURE__ */ r.jsx(ue, { size: 16, color: "blue", children: /* @__PURE__ */ r.jsx(hh, {}) }) }),
39100
- /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Xn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
39121
+ /* @__PURE__ */ r.jsx(Xe.Dropdown, { children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", noCopy: !0, withLineNumbers: !0, children: e }) })
39101
39122
  ] });
39102
39123
  }
39103
39124
  const bN = z(() => {
@@ -39156,10 +39177,10 @@ WHERE
39156
39177
  /* @__PURE__ */ r.jsx(v.Tab, { value: "local_query_vars", icon: /* @__PURE__ */ r.jsx(ts, { size: 14 }), children: i("query_variable.guide.tabs.variables_in_this_dashboard") }),
39157
39178
  /* @__PURE__ */ r.jsx(v.Tab, { value: "global_sql_snippets", icon: /* @__PURE__ */ r.jsx(Gb, { size: 14 }), children: i("query_variable.guide.tabs.global_sql_snippets") })
39158
39179
  ] }),
39159
- /* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Xn, { language: "sql", sx: {
39180
+ /* @__PURE__ */ r.jsx(v.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "sql", sx: {
39160
39181
  width: "100%"
39161
39182
  }, noCopy: !0, colorScheme: "dark", children: yN }) }),
39162
- /* @__PURE__ */ r.jsx(v.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Xn, { language: "json", sx: {
39183
+ /* @__PURE__ */ r.jsx(v.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ r.jsx(Jn, { language: "json", sx: {
39163
39184
  width: "100%"
39164
39185
  }, noCopy: !0, colorScheme: "dark", children: l }) }),
39165
39186
  /* @__PURE__ */ r.jsx(v.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ r.jsxs(C, { spacing: 10, children: [
@@ -39281,7 +39302,7 @@ WHERE
39281
39302
  }, o = () => {
39282
39303
  i(wN);
39283
39304
  };
39284
- Q(() => {
39305
+ G(() => {
39285
39306
  i(e.sql);
39286
39307
  }, [e.sql]);
39287
39308
  const l = n !== e.sql;
@@ -39386,7 +39407,7 @@ WHERE
39386
39407
  const {
39387
39408
  t
39388
39409
  } = y(), n = ye(), i = D(() => e.datasource ? e.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [e.datasource, e.typedAsHTTP]), [s, a] = K(i);
39389
- Q(() => {
39410
+ G(() => {
39390
39411
  a((c) => c !== "Configurations" && i === "Configurations" ? "Configurations" : c);
39391
39412
  }, [i]);
39392
39413
  const o = n.findQueryUsage(e.id), l = o.length === 0;
@@ -39442,7 +39463,7 @@ WHERE
39442
39463
  }, d = o !== e.key, u = e.isADuplicatedKey(o), [h, p] = K(e.value), f = () => {
39443
39464
  e.setValue(h);
39444
39465
  };
39445
- Q(() => {
39466
+ G(() => {
39446
39467
  l(e.key), p(e.value);
39447
39468
  }, [e]);
39448
39469
  const m = h !== e.value, b = $n(), k = () => {
@@ -39966,7 +39987,7 @@ WHERE
39966
39987
  const {
39967
39988
  t
39968
39989
  } = y(), n = ze().editor, i = n.isOptionActive, s = i(n.path, e), a = n.isOptionOpened, o = n.navigate, l = a(e), [c, d] = K(l);
39969
- return Q(() => {
39990
+ return G(() => {
39970
39991
  d(l);
39971
39992
  }, [l]), /* @__PURE__ */ r.jsx(bo, { active: s, defaultOpened: l, opened: c, onChange: d, label: t(e.label), onClick: () => o(e), icon: e.Icon ? /* @__PURE__ */ r.jsx(e.Icon, { size: 18 }) : null, children: (u = e.children) == null ? void 0 : u.map((h) => h._type === "ACTION" ? /* @__PURE__ */ r.jsx(tq, { action_type: h._action_type, parentID: h.parentID }, `_ADD_${h.value}_`) : /* @__PURE__ */ r.jsx(gg, { option: h }, h.value)) }, e.label);
39972
39993
  }), nq = z(() => {
@@ -40041,7 +40062,7 @@ WHERE
40041
40062
  }, children: /* @__PURE__ */ r.jsx(Nu, { padding: 0, navbar: /* @__PURE__ */ r.jsx(rq, {}), styles: iq, children: /* @__PURE__ */ r.jsx(GN, {}) }) });
40042
40063
  }), aq = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
40043
40064
  function oq(e) {
40044
- Q(() => {
40065
+ G(() => {
40045
40066
  if (Ya.__getMonacoInstance())
40046
40067
  return;
40047
40068
  console.log("loading monaco for @devtable/dashboard");
@@ -40126,7 +40147,7 @@ const lq = {
40126
40147
  searchButtonProps: a.searchButtonProps
40127
40148
  }, children: /* @__PURE__ */ r.jsx(gp, { value: b, children: /* @__PURE__ */ r.jsx(jp, { value: b.content, children: /* @__PURE__ */ r.jsx(jl.Provider, { value: {
40128
40149
  inEditMode: !0
40129
- }, children: /* @__PURE__ */ r.jsx(tr.Provider, { value: j, children: /* @__PURE__ */ r.jsxs(Oa, { configure: T, children: [
40150
+ }, children: /* @__PURE__ */ r.jsx(nr.Provider, { value: j, children: /* @__PURE__ */ r.jsxs(Oa, { configure: T, children: [
40130
40151
  /* @__PURE__ */ r.jsx(Nu, { padding: 0, header: /* @__PURE__ */ r.jsx(zF, { onExit: u, saveDashboardChanges: k, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(rV, {}), styles: lq, children: /* @__PURE__ */ r.jsx(R, { className: `${s} dashboard-root`, sx: {
40131
40152
  position: "relative"
40132
40153
  }, children: b.content.views.visibleViews.map((A) => /* @__PURE__ */ r.jsx(zO, { view: A }, A.id)) }) }),
@@ -40368,7 +40389,7 @@ const pq = ({
40368
40389
  setFullScreenPanelID: o
40369
40390
  }, children: /* @__PURE__ */ r.jsx(jl.Provider, { value: {
40370
40391
  inEditMode: !1
40371
- }, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(tr.Provider, { value: b, children: /* @__PURE__ */ r.jsx(Oa, { configure: k, children: m.content.views.visibleViews.map((j) => /* @__PURE__ */ r.jsx(Nc, { view: j }, j.id)) }) }) }) }) }) }) }) }) }) }) });
40392
+ }, children: /* @__PURE__ */ r.jsx(R, { className: `${i} dashboard-root`, children: /* @__PURE__ */ r.jsx(nr.Provider, { value: b, children: /* @__PURE__ */ r.jsx(Oa, { configure: k, children: m.content.views.visibleViews.map((j) => /* @__PURE__ */ r.jsx(Nc, { view: j }, j.id)) }) }) }) }) }) }) }) }) }) }) });
40372
40393
  }, b5 = z(pq);
40373
40394
  F.extend(i_);
40374
40395
  F.extend(s_);