@devtable/dashboard 12.8.0 → 12.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var Xu = Object.defineProperty;
2
2
  var Zu = (t, e, n) => e in t ? Xu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var N = (t, e, n) => (Zu(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import A, { forwardRef as se, useState as B, useEffect as O, useCallback as Ge, useMemo as C, createElement as as, useContext as Ht, useRef as os, createContext as Jo, memo as eh } from "react";
5
- import { TextInput as D, Text as j, Box as M, Button as I, HoverCard as Te, Group as y, Select as V, Stack as k, Overlay as Yn, Modal as Se, Checkbox as X, Divider as L, NumberInput as le, Switch as Oe, Table as Ve, ActionIcon as Y, MultiSelect as Nn, Paper as th, Code as Ka, Tabs as g, LoadingOverlay as kn, Alert as ls, ColorSwatch as ti, createStyles as fr, Popover as Vn, Tooltip as ye, Collapse as br, Center as Cn, useMantineTheme as Xo, CheckIcon as nh, MANTINE_SIZES as rh, SimpleGrid as bn, NativeSelect as Zo, SegmentedControl as sh, Anchor as ni, Textarea as ih, Mark as ah, ColorInput as _i, Slider as oh, Flex as Ut, Badge as _n, CloseButton as el, Menu as ie, Affix as lh, Header as ch, List as ct, FileInput as dh, ThemeIcon as Vs, UnstyledButton as uh, Navbar as qt, JsonInput as tl, Pagination as nl, Drawer as hh, Accordion as Rr, Radio as Ja, Skeleton as Xa, NavLink as ri, AppShell as rl } from "@mantine/core";
5
+ import { TextInput as D, Text as w, Box as M, Button as I, HoverCard as Te, Group as y, Select as V, Stack as k, Overlay as Yn, Modal as Se, Checkbox as X, Divider as L, NumberInput as le, Switch as Ve, Table as qe, ActionIcon as Y, MultiSelect as Nn, Paper as th, Code as Ka, Tabs as g, LoadingOverlay as kn, Alert as ls, ColorSwatch as ti, createStyles as fr, Popover as Vn, Tooltip as ye, Collapse as br, Center as Cn, useMantineTheme as Xo, CheckIcon as nh, MANTINE_SIZES as rh, SimpleGrid as bn, NativeSelect as Zo, SegmentedControl as sh, Anchor as ni, Textarea as ih, Mark as ah, ColorInput as _i, Slider as oh, Flex as Ut, Badge as _n, CloseButton as el, Menu as ie, Affix as lh, Header as ch, List as ct, FileInput as dh, ThemeIcon as Vs, UnstyledButton as uh, Navbar as qt, JsonInput as tl, Pagination as nl, Drawer as hh, Accordion as Rr, Radio as Ja, Skeleton as Xa, NavLink as ri, AppShell as rl } from "@mantine/core";
6
6
  import { useModals as Rt, ModalsProvider as sl } from "@mantine/modals";
7
7
  import { useBoolean as it, useCreation as wt, useAsyncEffect as yr, useRequest as vn, useWhyDidYouUpdate as il, useLatest as Za, usePrevious as ph } from "ahooks";
8
8
  import { toJS as Yt, observable as al, runInAction as or, reaction as nt, makeAutoObservable as _r } from "mobx";
@@ -12,8 +12,8 @@ import * as xh from "crypto-js";
12
12
  import gh from "crypto-js";
13
13
  import * as fh from "d3-array";
14
14
  import { quantile as qr } from "d3-array";
15
- import $ from "dayjs";
16
- import S, { cloneDeepWith as ol, unset as bh, get as ne, isObject as ll, set as vi, omit as jn, isFunction as yh, orderBy as _h, last as cl, defaults as Ce, minBy as vh, maxBy as jh, cloneDeep as qe, values as dl, template as ji, throttle as wh, range as Sh, isEqual as ge, defaultsDeep as we, keyBy as kh, isEmpty as ul, isNumber as Ch, findLastIndex as zh, isString as hl, pick as pl } from "lodash";
15
+ import P from "dayjs";
16
+ import S, { cloneDeepWith as ol, unset as bh, get as ne, isObject as ll, set as vi, omit as jn, isFunction as yh, orderBy as _h, last as cl, defaults as Ce, minBy as vh, maxBy as jh, cloneDeep as Ne, values as dl, template as ji, throttle as wh, range as Sh, isEqual as ge, defaultsDeep as we, keyBy as kh, isEmpty as ul, isNumber as Ch, findLastIndex as zh, isString as hl, pick as pl } from "lodash";
17
17
  import * as qn from "mathjs";
18
18
  import Yr from "numbro";
19
19
  import Bt from "axios";
@@ -34,7 +34,7 @@ import { DatesProvider as Zh, DatePicker as ep } from "@mantine/dates";
34
34
  import { useTranslation as _, Trans as wi, initReactI18next as tp } from "react-i18next";
35
35
  import { DeviceFloppy as Gt, Recycle as Tn, Trash as ce, AlertCircle as np, InfoCircle as Kt, Plus as Ie, Refresh as Si, Download as ki, ArrowsMaximize as xl, Settings as gl, Copy as rp, ArrowLeft as sp, ArrowsMove as ip, ChevronDownRight as ap, ChevronsUpRight as op, PlaylistAdd as ds, ArrowBarToRight as lp } from "tabler-icons-react";
36
36
  import $t, { loader as qs } from "@monaco-editor/react";
37
- import { IconMathFunction as an, IconDeviceFloppy as Ne, IconChevronUp as cp, IconChevronDown as dp, IconTextSize as Ci, IconInfoCircle as In, IconPlayerSkipBack as fl, IconRecycle as vr, IconPlus as ut, IconBorderAll as up, IconTrash as Qt, IconArrowDown as hp, IconArrowUp as pp, IconCalendar as mp, IconMinus as xp, IconChevronsUp as gp, IconChevronsDown as fp, IconCode as Sn, IconCamera as us, IconShare3 as bp, IconDownload as yp, IconArrowsLeftRight as _p, IconVariable as bl, IconCodeDots as vp, IconFilter as yl, IconCopy as jp, IconDatabase as hs, IconBoxMultiple as _l, IconCaretDown as wp, IconAlertTriangle as vl, IconArrowLeft as Sp, IconPlaylistAdd as to, IconDevices as kp, IconSettings as jr, IconPointFilled as zi, IconFileImport as no, IconCircleDashed as Cp, IconCircleDot as zp, IconCircleOff as Tp, IconAdjustments as Ip, IconLink as Dp, IconArrowCurveRight as si, IconLine as Mp, IconX as jl, IconEye as wl, IconTable as Lp, IconColumns as Ap, IconVectorTriangle as Ep, IconAlertCircle as ro, IconVariablePlus as Rp, IconHierarchy as $p, IconDiscountCheckFilled as Pp } from "@tabler/icons-react";
37
+ import { IconMathFunction as an, IconDeviceFloppy as Pe, IconChevronUp as cp, IconChevronDown as dp, IconTextSize as Ci, IconInfoCircle as In, IconPlayerSkipBack as fl, IconRecycle as vr, IconPlus as ut, IconBorderAll as up, IconTrash as Qt, IconArrowDown as hp, IconArrowUp as pp, IconCalendar as mp, IconMinus as xp, IconChevronsUp as gp, IconChevronsDown as fp, IconCode as Sn, IconCamera as us, IconShare3 as bp, IconDownload as yp, IconArrowsLeftRight as _p, IconVariable as bl, IconCodeDots as vp, IconFilter as yl, IconCopy as jp, IconDatabase as hs, IconBoxMultiple as _l, IconCaretDown as wp, IconAlertTriangle as vl, IconArrowLeft as Sp, IconPlaylistAdd as to, IconDevices as kp, IconSettings as jr, IconPointFilled as zi, IconFileImport as no, IconCircleDashed as Cp, IconCircleDot as zp, IconCircleOff as Tp, IconAdjustments as Ip, IconLink as Dp, IconArrowCurveRight as si, IconLine as Mp, IconX as jl, IconEye as wl, IconTable as Lp, IconColumns as Ap, IconVectorTriangle as Ep, IconAlertCircle as ro, IconVariablePlus as Rp, IconHierarchy as $p, IconDiscountCheckFilled as Pp } from "@tabler/icons-react";
38
38
  import { showNotification as Bn, notifications as Sl } from "@mantine/notifications";
39
39
  import * as tn from "d3-regression";
40
40
  import { RichTextEditor as J, Link as kl, useRichTextEditorContext as Fp } from "@mantine/tiptap";
@@ -146,22 +146,22 @@ var sr = {};
146
146
  var lo;
147
147
  function ex() {
148
148
  return lo || (lo = 1, process.env.NODE_ENV !== "production" && function() {
149
- var t = A, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, w = "@@iterator";
149
+ var t = A, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), m = Symbol.for("react.offscreen"), b = Symbol.iterator, j = "@@iterator";
150
150
  function T(v) {
151
151
  if (v === null || typeof v != "object")
152
152
  return null;
153
- var R = b && v[b] || v[w];
153
+ var R = b && v[b] || v[j];
154
154
  return typeof R == "function" ? R : null;
155
155
  }
156
156
  var E = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
157
- function P(v) {
157
+ function $(v) {
158
158
  {
159
159
  for (var R = arguments.length, q = new Array(R > 1 ? R - 1 : 0), U = 1; U < R; U++)
160
160
  q[U - 1] = arguments[U];
161
- G("error", v, q);
161
+ W("error", v, q);
162
162
  }
163
163
  }
164
- function G(v, R, q) {
164
+ function W(v, R, q) {
165
165
  {
166
166
  var U = E.ReactDebugCurrentFrame, de = U.getStackAddendum();
167
167
  de !== "" && (R += "%s", q = q.concat([de]));
@@ -193,7 +193,7 @@ function ex() {
193
193
  function Ft(v) {
194
194
  if (v == null)
195
195
  return null;
196
- if (typeof v.tag == "number" && P("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof v == "function")
196
+ if (typeof v.tag == "number" && $("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof v == "function")
197
197
  return v.displayName || v.name || null;
198
198
  if (typeof v == "string")
199
199
  return v;
@@ -294,7 +294,7 @@ function ex() {
294
294
  })
295
295
  });
296
296
  }
297
- tr < 0 && P("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
297
+ tr < 0 && $("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
298
298
  }
299
299
  }
300
300
  var Ls = E.ReactCurrentDispatcher, As;
@@ -446,7 +446,7 @@ function ex() {
446
446
  } catch (ze) {
447
447
  te = ze;
448
448
  }
449
- te && !(te instanceof Error) && (Er(de), P("%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).", U || "React class", q, oe, typeof te), Er(null)), te instanceof Error && !(te.message in Pa) && (Pa[te.message] = !0, Er(de), P("Failed %s type: %s", q, te.message), Er(null));
449
+ te && !(te instanceof Error) && (Er(de), $("%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).", U || "React class", q, oe, typeof te), Er(null)), te instanceof Error && !(te.message in Pa) && (Pa[te.message] = !0, Er(de), $("Failed %s type: %s", q, te.message), Er(null));
450
450
  }
451
451
  }
452
452
  }
@@ -472,7 +472,7 @@ function ex() {
472
472
  }
473
473
  function Va(v) {
474
474
  if (Ru(v))
475
- return P("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Eu(v)), Oa(v);
475
+ return $("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Eu(v)), Oa(v);
476
476
  }
477
477
  var nr = E.ReactCurrentOwner, $u = {
478
478
  key: !0,
@@ -500,13 +500,13 @@ function ex() {
500
500
  function Ou(v, R) {
501
501
  if (typeof v.ref == "string" && nr.current && R && nr.current.stateNode !== R) {
502
502
  var q = Ft(nr.current.type);
503
- $s[q] || (P('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', Ft(nr.current.type), v.ref), $s[q] = !0);
503
+ $s[q] || ($('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', Ft(nr.current.type), v.ref), $s[q] = !0);
504
504
  }
505
505
  }
506
506
  function Vu(v, R) {
507
507
  {
508
508
  var q = function() {
509
- qa || (qa = !0, P("%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)", R));
509
+ qa || (qa = !0, $("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
510
510
  };
511
511
  q.isReactWarning = !0, Object.defineProperty(v, "key", {
512
512
  get: q,
@@ -517,7 +517,7 @@ function ex() {
517
517
  function qu(v, R) {
518
518
  {
519
519
  var q = function() {
520
- Na || (Na = !0, P("%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)", R));
520
+ Na || (Na = !0, $("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", R));
521
521
  };
522
522
  q.isReactWarning = !0, Object.defineProperty(v, "ref", {
523
523
  get: q,
@@ -631,7 +631,7 @@ Check the top-level render call using <` + q + ">.");
631
631
  return;
632
632
  Ga[q] = !0;
633
633
  var U = "";
634
- v && v._owner && v._owner !== Ps.current && (U = " It was passed a child from " + Ft(v._owner.type) + "."), An(v), P('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, U), An(null);
634
+ v && v._owner && v._owner !== Ps.current && (U = " It was passed a child from " + Ft(v._owner.type) + "."), An(v), $('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', q, U), An(null);
635
635
  }
636
636
  }
637
637
  function Ha(v, R) {
@@ -673,9 +673,9 @@ Check the top-level render call using <` + q + ">.");
673
673
  } else if (R.PropTypes !== void 0 && !Fs) {
674
674
  Fs = !0;
675
675
  var de = Ft(R);
676
- P("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", de || "Unknown");
676
+ $("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", de || "Unknown");
677
677
  }
678
- typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && P("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
678
+ typeof R.getDefaultProps == "function" && !R.getDefaultProps.isReactClassApproved && $("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
679
679
  }
680
680
  }
681
681
  function Hu(v) {
@@ -683,11 +683,11 @@ Check the top-level render call using <` + q + ">.");
683
683
  for (var R = Object.keys(v.props), q = 0; q < R.length; q++) {
684
684
  var U = R[q];
685
685
  if (U !== "children" && U !== "key") {
686
- An(v), P("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", U), An(null);
686
+ An(v), $("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", U), An(null);
687
687
  break;
688
688
  }
689
689
  }
690
- v.ref !== null && (An(v), P("Invalid attribute `ref` supplied to `React.Fragment`."), An(null));
690
+ v.ref !== null && (An(v), $("Invalid attribute `ref` supplied to `React.Fragment`."), An(null));
691
691
  }
692
692
  }
693
693
  function Ua(v, R, q, U, de, be) {
@@ -699,7 +699,7 @@ Check the top-level render call using <` + q + ">.");
699
699
  var Xe = Wu(de);
700
700
  Xe ? te += Xe : te += Wa();
701
701
  var ze;
702
- v === null ? ze = "null" : Rs(v) ? ze = "array" : v !== void 0 && v.$$typeof === e ? (ze = "<" + (Ft(v.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof v, P("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, te);
702
+ v === null ? ze = "null" : Rs(v) ? ze = "array" : v !== void 0 && v.$$typeof === e ? (ze = "<" + (Ft(v.type) || "Unknown") + " />", te = " Did you accidentally export a JSX literal instead of a component?") : ze = typeof v, $("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ze, te);
703
703
  }
704
704
  var De = Bu(v, R, q, de, be);
705
705
  if (De == null)
@@ -713,7 +713,7 @@ Check the top-level render call using <` + q + ">.");
713
713
  Ha(ht[En], v);
714
714
  Object.freeze && Object.freeze(ht);
715
715
  } else
716
- P("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
716
+ $("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
717
717
  else
718
718
  Ha(ht, v);
719
719
  }
@@ -735,7 +735,7 @@ var r = ai.exports;
735
735
  const Jt = {
736
736
  CryptoJS: gh,
737
737
  d3Array: fh,
738
- dayjs: $,
738
+ dayjs: P,
739
739
  lodash: S,
740
740
  numbro: Yr,
741
741
  mathjs: qn,
@@ -1157,7 +1157,7 @@ function _x(t, e) {
1157
1157
  size: a,
1158
1158
  weight: o
1159
1159
  } = t, l = ms(e, s, i), c = gt(t, l);
1160
- return /* @__PURE__ */ r.jsx(j, { sx: {
1160
+ return /* @__PURE__ */ r.jsx(w, { sx: {
1161
1161
  fontSize: a,
1162
1162
  display: "inline"
1163
1163
  }, color: yx(n, l), weight: o, children: c });
@@ -1360,7 +1360,7 @@ class Ue extends A.Component {
1360
1360
  });
1361
1361
  };
1362
1362
  return /* @__PURE__ */ r.jsxs(M, { children: [
1363
- /* @__PURE__ */ r.jsx(j, { size: "xs", children: (e = this.state.error) == null ? void 0 : e.message }),
1363
+ /* @__PURE__ */ r.jsx(w, { size: "xs", children: (e = this.state.error) == null ? void 0 : e.message }),
1364
1364
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
1365
1365
  display: "block"
1366
1366
  }, onClick: n, children: "Retry" })
@@ -1728,7 +1728,7 @@ class Ai {
1728
1728
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1729
1729
  }
1730
1730
  }
1731
- const rc = "12.8.0", Hx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1731
+ const rc = "12.9.0", Hx = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1732
1732
  __proto__: null,
1733
1733
  version: rc
1734
1734
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1922,13 +1922,13 @@ function Jx({
1922
1922
  y: F(o),
1923
1923
  z: F(l)
1924
1924
  }), [a, o, l]), {
1925
- min: w,
1925
+ min: j,
1926
1926
  max: T
1927
1927
  } = C(() => {
1928
- const P = vh(h, (K) => K[b.columnKey]), G = jh(h, (K) => K[b.columnKey]);
1928
+ const $ = vh(h, (K) => K[b.columnKey]), W = jh(h, (K) => K[b.columnKey]);
1929
1929
  return {
1930
- min: ne(P, b.columnKey),
1931
- max: ne(G, b.columnKey)
1930
+ min: ne($, b.columnKey),
1931
+ max: ne(W, b.columnKey)
1932
1932
  };
1933
1933
  }, [h, b]), E = {
1934
1934
  tooltip: {},
@@ -1936,7 +1936,7 @@ function Jx({
1936
1936
  visualMap: {
1937
1937
  show: !0,
1938
1938
  dimension: 2,
1939
- min: w,
1939
+ min: j,
1940
1940
  max: T,
1941
1941
  inRange: {
1942
1942
  color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"]
@@ -1963,7 +1963,7 @@ function Jx({
1963
1963
  wireframe: {
1964
1964
  // show: false
1965
1965
  },
1966
- data: h.map((P) => [P[p.columnKey], P[m.columnKey], P[b.columnKey]])
1966
+ data: h.map(($) => [$[p.columnKey], $[m.columnKey], $[b.columnKey]])
1967
1967
  }]
1968
1968
  };
1969
1969
  return e ? /* @__PURE__ */ r.jsx(at, { width: s, height: i, children: /* @__PURE__ */ r.jsx(et, { echarts: Je, option: E, style: Sr(s, i), notMerge: !0, theme: "merico-light" }) }) : null;
@@ -1988,7 +1988,7 @@ function uc() {
1988
1988
  throw new Error("Please use ContentModelContextProvider");
1989
1989
  return t;
1990
1990
  }
1991
- const ae = () => uc(), Pe = () => uc(), eg = {
1991
+ const ae = () => uc(), Fe = () => uc(), eg = {
1992
1992
  inEditMode: !1
1993
1993
  }, Ri = A.createContext(eg), hc = A.createContext({
1994
1994
  panel: null,
@@ -2050,13 +2050,13 @@ const Q = z(se(({
2050
2050
  return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
2051
2051
  /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(D, { label: t, required: e, defaultValue: h.columnKey, readOnly: !0, disabled: !0 }) }) }),
2052
2052
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsxs(y, { position: "left", spacing: 0, children: [
2053
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: h.queryName ? "black" : "red", sx: {
2053
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: h.queryName ? "black" : "red", sx: {
2054
2054
  fontFamily: "monospace"
2055
2055
  }, children: h.queryName ?? h.queryID }),
2056
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "black", sx: {
2056
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "black", sx: {
2057
2057
  fontFamily: "monospace"
2058
2058
  }, children: "." }),
2059
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "red", sx: {
2059
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "red", sx: {
2060
2060
  fontFamily: "monospace"
2061
2061
  }, children: h.columnKey })
2062
2062
  ] }) })
@@ -2080,7 +2080,7 @@ function sg({
2080
2080
  return O(() => {
2081
2081
  o(s);
2082
2082
  }, [e]), e ? /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
2083
- /* @__PURE__ */ r.jsx(j, { children: "X Axis" }),
2083
+ /* @__PURE__ */ r.jsx(w, { children: "X Axis" }),
2084
2084
  /* @__PURE__ */ r.jsxs(y, { position: "apart", grow: !0, p: "md", sx: {
2085
2085
  position: "relative",
2086
2086
  border: "1px solid #eee"
@@ -2094,7 +2094,7 @@ function sg({
2094
2094
  flexGrow: 1
2095
2095
  }, size: "md", label: "Name", ...l }) })
2096
2096
  ] }),
2097
- /* @__PURE__ */ r.jsx(j, { mt: "lg", children: "Y Axis" }),
2097
+ /* @__PURE__ */ r.jsx(w, { mt: "lg", children: "Y Axis" }),
2098
2098
  /* @__PURE__ */ r.jsxs(y, { position: "apart", grow: !0, p: "md", sx: {
2099
2099
  position: "relative",
2100
2100
  border: "1px solid #eee"
@@ -2108,7 +2108,7 @@ function sg({
2108
2108
  flexGrow: 1
2109
2109
  }, size: "md", label: "Name", ...l }) })
2110
2110
  ] }),
2111
- /* @__PURE__ */ r.jsx(j, { mt: "lg", children: "Z Axis" }),
2111
+ /* @__PURE__ */ r.jsx(w, { mt: "lg", children: "Z Axis" }),
2112
2112
  /* @__PURE__ */ r.jsxs(y, { position: "apart", grow: !0, p: "md", sx: {
2113
2113
  position: "relative",
2114
2114
  border: "1px solid #eee"
@@ -2126,7 +2126,7 @@ function sg({
2126
2126
  width: "60%"
2127
2127
  }, mx: "auto", children: /* @__PURE__ */ r.jsxs(I, { color: "blue", type: "submit", children: [
2128
2128
  /* @__PURE__ */ r.jsx(Gt, { size: 20 }),
2129
- /* @__PURE__ */ r.jsx(j, { ml: "md", children: "Save" })
2129
+ /* @__PURE__ */ r.jsx(w, { ml: "md", children: "Save" })
2130
2130
  ] }) })
2131
2131
  ] }) }) : null;
2132
2132
  }
@@ -2199,7 +2199,7 @@ const dg = {
2199
2199
  createConfig() {
2200
2200
  return {
2201
2201
  version: 2,
2202
- config: qe(Ei)
2202
+ config: Ne(Ei)
2203
2203
  };
2204
2204
  },
2205
2205
  translation: og
@@ -2268,11 +2268,11 @@ const zt = se(({
2268
2268
  const {
2269
2269
  enabled: T,
2270
2270
  func_content: E
2271
- } = c, P = {
2271
+ } = c, $ = {
2272
2272
  enabled: T,
2273
2273
  func_content: E
2274
2274
  };
2275
- d(P), e(P);
2275
+ d($), e($);
2276
2276
  }, p = () => {
2277
2277
  l(), d(t);
2278
2278
  }, m = (T) => {
@@ -2282,19 +2282,19 @@ const zt = se(({
2282
2282
  }));
2283
2283
  }, b = () => {
2284
2284
  m(Ye().func_content);
2285
- }, w = n ?? i("chart.axis.customize_label");
2285
+ }, j = n ?? i("chart.axis.customize_label");
2286
2286
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2287
2287
  /* @__PURE__ */ r.jsx(I, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(an, { size: 16 }), mt: 24, onClick: o, sx: {
2288
2288
  flexGrow: 0
2289
- }, children: w }),
2290
- /* @__PURE__ */ r.jsx(Se, { size: 800, title: w, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
2289
+ }, children: j }),
2290
+ /* @__PURE__ */ r.jsx(Se, { size: 800, title: j, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(k, { children: [
2291
2291
  /* @__PURE__ */ r.jsx(X, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
2292
2292
  /* @__PURE__ */ r.jsx(ug, { value: c.func_content, onChange: m, disabled: !c.enabled }),
2293
2293
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
2294
2294
  /* @__PURE__ */ r.jsx(I, { onClick: b, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: i("common.actions.reset_to_default") }),
2295
2295
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
2296
2296
  /* @__PURE__ */ r.jsx(I, { onClick: p, variant: "subtle", children: i("common.actions.cancel") }),
2297
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: h, children: i("common.actions.save") })
2297
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: h, children: i("common.actions.save") })
2298
2298
  ] })
2299
2299
  ] })
2300
2300
  ] }) })
@@ -2373,7 +2373,7 @@ function gg(t) {
2373
2373
  const {
2374
2374
  t: e
2375
2375
  } = _();
2376
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.boxplot.click_series.label") });
2376
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.boxplot.click_series.label") });
2377
2377
  }
2378
2378
  const Jr = se(({
2379
2379
  sectionTitle: t,
@@ -2616,7 +2616,7 @@ function bg(t) {
2616
2616
  });
2617
2617
  return /* @__PURE__ */ r.jsxs(k, { children: [
2618
2618
  /* @__PURE__ */ r.jsx(D, { label: e("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: l, onBlur: a }),
2619
- /* @__PURE__ */ r.jsx(Oe, { label: e("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => o(c.currentTarget.checked) })
2619
+ /* @__PURE__ */ r.jsx(Ve, { label: e("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => o(c.currentTarget.checked) })
2620
2620
  ] });
2621
2621
  }
2622
2622
  async function yg(t, e) {
@@ -2729,7 +2729,7 @@ const Tg = {
2729
2729
  };
2730
2730
  return /* @__PURE__ */ r.jsx(D, { size: "xs", label: "", value: n, onChange: (a) => s(a.currentTarget.value), sx: {
2731
2731
  flexGrow: 1
2732
- }, rightSection: /* @__PURE__ */ r.jsx(Y, { color: "green", size: "xs", onClick: i, disabled: n === t, children: /* @__PURE__ */ r.jsx(Ne, {}) }) });
2732
+ }, rightSection: /* @__PURE__ */ r.jsx(Y, { color: "green", size: "xs", onClick: i, disabled: n === t, children: /* @__PURE__ */ r.jsx(Pe, {}) }) });
2733
2733
  }, Mg = {
2734
2734
  dictionary: {}
2735
2735
  }, Lg = z((t) => {
@@ -2767,7 +2767,7 @@ const Tg = {
2767
2767
  }
2768
2768
  });
2769
2769
  };
2770
- return /* @__PURE__ */ r.jsxs(Ve, { sx: Ig, children: [
2770
+ return /* @__PURE__ */ r.jsxs(qe, { sx: Ig, children: [
2771
2771
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
2772
2772
  /* @__PURE__ */ r.jsx("th", { children: e("interactions.operation.set_filter_values.set_filter") }),
2773
2773
  /* @__PURE__ */ r.jsx("th", { children: e("interactions.operation.set_filter_values.with") })
@@ -3051,10 +3051,10 @@ const yt = ({
3051
3051
  });
3052
3052
  };
3053
3053
  return /* @__PURE__ */ r.jsxs(th, { withBorder: !0, p: "sm", children: [
3054
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", mb: "sm", children: n }),
3054
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", mb: "sm", children: n }),
3055
3055
  /* @__PURE__ */ r.jsx(k, { style: {
3056
3056
  maxHeight: "500px"
3057
- }, children: s.map((o) => /* @__PURE__ */ r.jsxs(j, { size: "sm", children: [
3057
+ }, children: s.map((o) => /* @__PURE__ */ r.jsxs(w, { size: "sm", children: [
3058
3058
  /* @__PURE__ */ r.jsxs(Ka, { color: "teal", children: [
3059
3059
  "// ",
3060
3060
  o.description
@@ -3274,7 +3274,7 @@ const tf = z(({
3274
3274
  variables: l
3275
3275
  } = t, c = ef(i, n), d = async () => {
3276
3276
  const m = await i.triggerManager.createOrGetTrigger(wn(), i.triggerManager.getTriggerSchemaList()[0]), b = await i.operationManager.createOrGetOperation(wn(), i.operationManager.getOperationSchemaList()[0]);
3277
- await i.addInteraction(m, b), s((w) => w + 1);
3277
+ await i.addInteraction(m, b), s((j) => j + 1);
3278
3278
  };
3279
3279
  async function u(m) {
3280
3280
  await i.removeInteraction(m.id), s((b) => b + 1);
@@ -3393,20 +3393,20 @@ function hf(t, e) {
3393
3393
  const n = [], s = [];
3394
3394
  return {
3395
3395
  boxplotData: Object.entries(t).map(([a, o]) => {
3396
- const l = o.map((E) => E[e]).sort((E, P) => E - P), c = qr(l, 0.25) ?? 0, d = qr(l, 0.5) ?? 0, u = qr(l, 0.75) ?? 0, h = u - c, p = c - 1.5 * h, m = u + 1.5 * h, b = Math.max(l[0], p), w = Math.min(S.last(l) ?? 0, m);
3396
+ const l = o.map((E) => E[e]).sort((E, $) => E - $), c = qr(l, 0.25) ?? 0, d = qr(l, 0.5) ?? 0, u = qr(l, 0.75) ?? 0, h = u - c, p = c - 1.5 * h, m = u + 1.5 * h, b = Math.max(l[0], p), j = Math.min(S.last(l) ?? 0, m);
3397
3397
  return o.filter((E) => {
3398
- const P = E[e];
3399
- return P < b || P > w;
3398
+ const $ = E[e];
3399
+ return $ < b || $ > j;
3400
3400
  }).forEach((E) => n.push([a, E[e], E])), o.filter((E) => {
3401
- const P = E[e];
3402
- return P >= b && P <= w;
3401
+ const $ = E[e];
3402
+ return $ >= b && $ <= j;
3403
3403
  }).forEach((E) => s.push([a, E[e], E])), {
3404
3404
  name: a,
3405
3405
  min: b,
3406
3406
  q1: c,
3407
3407
  median: d,
3408
3408
  q3: u,
3409
- max: w
3409
+ max: j
3410
3410
  };
3411
3411
  }),
3412
3412
  outliersData: n,
@@ -3529,7 +3529,7 @@ function ff(t, e, n) {
3529
3529
  median: e.coord([l, h]),
3530
3530
  q3: e.coord([l, p]),
3531
3531
  max: e.coord([l, m])
3532
- }, w = {
3532
+ }, j = {
3533
3533
  left: o[1].offset,
3534
3534
  center: (o[1].offset + o[1].width) / 2,
3535
3535
  right: o[1].width
@@ -3539,54 +3539,54 @@ function ff(t, e, n) {
3539
3539
  }, E = [
3540
3540
  // max
3541
3541
  {
3542
- x1: b.max[0] + w.left,
3543
- x2: b.max[0] + w.right,
3542
+ x1: b.max[0] + j.left,
3543
+ x2: b.max[0] + j.right,
3544
3544
  y1: b.max[1],
3545
3545
  y2: b.max[1]
3546
3546
  },
3547
3547
  // median
3548
3548
  {
3549
- x1: b.median[0] + w.left,
3550
- x2: b.median[0] + w.right,
3549
+ x1: b.median[0] + j.left,
3550
+ x2: b.median[0] + j.right,
3551
3551
  y1: b.median[1],
3552
3552
  y2: b.median[1]
3553
3553
  },
3554
3554
  // min
3555
3555
  {
3556
- x1: b.min[0] + w.left,
3557
- x2: b.min[0] + w.right,
3556
+ x1: b.min[0] + j.left,
3557
+ x2: b.min[0] + j.right,
3558
3558
  y1: b.min[1],
3559
3559
  y2: b.min[1]
3560
3560
  },
3561
3561
  // vertical center lines
3562
3562
  {
3563
- x1: b.min[0] + w.center,
3564
- x2: b.min[0] + w.center,
3563
+ x1: b.min[0] + j.center,
3564
+ x2: b.min[0] + j.center,
3565
3565
  y1: b.min[1],
3566
3566
  y2: b.q1[1]
3567
3567
  },
3568
3568
  {
3569
- x1: b.max[0] + w.center,
3570
- x2: b.max[0] + w.center,
3569
+ x1: b.max[0] + j.center,
3570
+ x2: b.max[0] + j.center,
3571
3571
  y1: b.max[1],
3572
3572
  y2: b.q3[1]
3573
3573
  }
3574
- ], P = {
3574
+ ], $ = {
3575
3575
  stroke: i,
3576
3576
  lineWidth: a
3577
3577
  };
3578
- return E.forEach((G) => {
3578
+ return E.forEach((W) => {
3579
3579
  T.children.push({
3580
3580
  type: "line",
3581
- shape: G,
3582
- style: P
3581
+ shape: W,
3582
+ style: $
3583
3583
  });
3584
3584
  }), T.children.push({
3585
3585
  type: "rect",
3586
3586
  shape: {
3587
- x: b.q1[0] + w.left,
3587
+ x: b.q1[0] + j.left,
3588
3588
  y: b.q1[1],
3589
- width: w.right - w.left,
3589
+ width: j.right - j.left,
3590
3590
  height: b.q3[1] - b.q1[1]
3591
3591
  },
3592
3592
  style: {
@@ -3918,13 +3918,13 @@ function Af({
3918
3918
  } = t.viewport, c = Ce({}, s, $i), d = yt({
3919
3919
  vizManager: t.vizManager,
3920
3920
  instance: e
3921
- }), u = bt(d.triggerManager, bc.id), h = Ln(a, c.x_axis.data_key), p = Ge((w) => {
3922
- const T = S.get(h, w.name, {
3921
+ }), u = bt(d.triggerManager, bc.id), h = Ln(a, c.x_axis.data_key), p = Ge((j) => {
3922
+ const T = S.get(h, j.name, {
3923
3923
  error: "rowData is not found"
3924
3924
  });
3925
3925
  u.forEach((E) => {
3926
3926
  d.runInteraction(E.id, {
3927
- ...w,
3927
+ ...j,
3928
3928
  rowData: T
3929
3929
  });
3930
3930
  });
@@ -3967,7 +3967,7 @@ function Ef({
3967
3967
  }
3968
3968
  }
3969
3969
  ),
3970
- /* @__PURE__ */ r.jsx(j, { sx: {
3970
+ /* @__PURE__ */ r.jsx(w, { sx: {
3971
3971
  flexGrow: 0
3972
3972
  }, size: "xs", children: s("chart.color.or") }),
3973
3973
  /* @__PURE__ */ r.jsx(
@@ -3988,7 +3988,7 @@ function Ef({
3988
3988
  ] });
3989
3989
  }
3990
3990
  const Ze = A.forwardRef(Ef);
3991
- function Fe({
3991
+ function Oe({
3992
3992
  canSubmit: t
3993
3993
  }) {
3994
3994
  const {
@@ -3998,8 +3998,8 @@ function Fe({
3998
3998
  borderBottom: "1px solid #eee",
3999
3999
  background: "#efefef"
4000
4000
  }, children: [
4001
- /* @__PURE__ */ r.jsx(j, { children: e("viz.viz_config_banner") }),
4002
- /* @__PURE__ */ r.jsx(Y, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !t, children: /* @__PURE__ */ r.jsx(Ne, { size: 20 }) })
4001
+ /* @__PURE__ */ r.jsx(w, { children: e("viz.viz_config_banner") }),
4002
+ /* @__PURE__ */ r.jsx(Y, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !t, children: /* @__PURE__ */ r.jsx(Pe, { size: 20 }) })
4003
4003
  ] });
4004
4004
  }
4005
4005
  const ys = se(({
@@ -4111,45 +4111,49 @@ class $f {
4111
4111
  }
4112
4112
  function Pf(t) {
4113
4113
  const {
4114
- onChange: e,
4115
- color: n,
4116
- index: s,
4117
- value: i
4114
+ t: e
4115
+ } = _(), {
4116
+ onChange: n,
4117
+ color: s,
4118
+ index: i,
4119
+ value: a
4118
4120
  } = t, {
4119
- classes: a
4120
- } = kc(), [o, l] = B(i), [c, {
4121
- setTrue: d,
4122
- setFalse: u
4123
- }] = it(!1), h = s % 2 === 1, p = h && i != null, m = !h && i != null, b = `map ${i} to color ${s}`, w = () => {
4124
- l(i), u();
4125
- }, T = () => {
4126
- u(), e == null || e(o);
4127
- }, E = re(i ?? null, {
4121
+ classes: o
4122
+ } = kc(), [l, c] = B(a), [d, {
4123
+ setTrue: u,
4124
+ setFalse: h
4125
+ }] = it(!1), p = i % 2 === 1, m = p && a != null, b = !p && a != null, j = `map ${a} to color ${i}`, T = () => {
4126
+ c(a), h();
4127
+ }, E = () => {
4128
+ h(), n == null || n(l);
4129
+ }, $ = re(a ?? null, {
4128
4130
  output: "number",
4129
4131
  mantissa: 0,
4130
4132
  average: !0,
4131
4133
  absolute: !1
4132
4134
  });
4133
- return /* @__PURE__ */ r.jsxs("div", { "data-testid": `palette-item-${s}`, className: a.paletteItem, children: [
4134
- /* @__PURE__ */ r.jsx(j, { title: b, style: {
4135
- opacity: p ? 1 : 0
4136
- }, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: E }),
4137
- /* @__PURE__ */ r.jsxs(Vn, { width: 200, trapFocus: !0, opened: c, onClose: u, children: [
4138
- /* @__PURE__ */ r.jsx(Vn.Target, { children: /* @__PURE__ */ r.jsx("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: d, style: {
4139
- "--shadow-color": hr(n).alpha(0.5).hex(),
4140
- backgroundColor: n
4135
+ return /* @__PURE__ */ r.jsxs("div", { "data-testid": `palette-item-${i}`, className: o.paletteItem, children: [
4136
+ /* @__PURE__ */ r.jsx(w, { title: j, style: {
4137
+ opacity: m ? 1 : 0
4138
+ }, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: $ }),
4139
+ /* @__PURE__ */ r.jsxs(Vn, { width: 200, trapFocus: !0, opened: d, onClose: h, zIndex: 340, withinPortal: !0, children: [
4140
+ /* @__PURE__ */ r.jsx(Vn.Target, { children: /* @__PURE__ */ r.jsx("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: u, style: {
4141
+ "--shadow-color": hr(s).alpha(0.5).hex(),
4142
+ backgroundColor: s
4141
4143
  } }) }),
4142
4144
  /* @__PURE__ */ r.jsx(Vn.Dropdown, { children: /* @__PURE__ */ r.jsxs(k, { children: [
4143
- /* @__PURE__ */ r.jsx(le, { size: "xs", label: "Map a value to this color", value: o, onChange: l }),
4145
+ /* @__PURE__ */ r.jsx(le, { size: "xs", label: e("style.color.interpolation.mapping.value_input_label"), value: l, onChange: (W) => {
4146
+ typeof W == "number" && c(W);
4147
+ } }),
4144
4148
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
4145
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", onClick: w, children: "Cancel" }),
4146
- /* @__PURE__ */ r.jsx(I, { "data-testid": "palette-item-ok", size: "xs", onClick: T, children: "OK" })
4149
+ /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", onClick: T, children: e("common.actions.cancel") }),
4150
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: E, children: e("common.actions.save") })
4147
4151
  ] })
4148
4152
  ] }) })
4149
4153
  ] }),
4150
- /* @__PURE__ */ r.jsx(j, { title: b, style: {
4151
- opacity: m ? 1 : 0
4152
- }, color: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: E })
4154
+ /* @__PURE__ */ r.jsx(w, { title: j, style: {
4155
+ opacity: b ? 1 : 0
4156
+ }, color: "dimmed", size: "sm", className: "palette-value--bottom palette-value", children: $ })
4153
4157
  ] });
4154
4158
  }
4155
4159
  const Ff = z(({
@@ -4175,24 +4179,24 @@ const Ff = z(({
4175
4179
  } = t, o = a.getColorInterpolations(), [l, c] = B(s), d = a.decodeInterpolation(l.interpolation) || o[0], [u, {
4176
4180
  setTrue: h,
4177
4181
  setFalse: p
4178
- }] = it(), m = C(() => o.map((P) => ({
4179
- label: e(P.displayName),
4180
- value: a.encodeColor(P),
4181
- group: e(`style.color.interpolation.palette.category.${P.category}`)
4182
+ }] = it(), m = C(() => o.map(($) => ({
4183
+ label: e($.displayName),
4184
+ value: a.encodeColor($),
4185
+ group: e(`style.color.interpolation.palette.category.${$.category}`)
4182
4186
  })), [n.language]);
4183
- function b(P) {
4184
- P && c((G) => ({
4185
- ...G,
4186
- interpolation: P
4187
+ function b($) {
4188
+ $ && c((W) => ({
4189
+ ...W,
4190
+ interpolation: $
4187
4191
  }));
4188
4192
  }
4189
- const w = () => {
4193
+ const j = () => {
4190
4194
  p(), i == null || i(Yt(l));
4191
4195
  };
4192
- function T(P) {
4193
- c((G) => ({
4194
- ...G,
4195
- steps: P
4196
+ function T($) {
4197
+ c((W) => ({
4198
+ ...W,
4199
+ steps: $
4196
4200
  }));
4197
4201
  }
4198
4202
  const E = () => {
@@ -4205,7 +4209,7 @@ const Ff = z(({
4205
4209
  /* @__PURE__ */ r.jsx(Of, { steps: l.steps, interpolation: d, onChange: T }),
4206
4210
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
4207
4211
  /* @__PURE__ */ r.jsx(I, { onClick: E, variant: "subtle", children: e("common.actions.cancel") }),
4208
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: w, children: e("common.actions.save") })
4212
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: j, children: e("common.actions.save") })
4209
4213
  ] })
4210
4214
  ] }) })
4211
4215
  ] });
@@ -4298,19 +4302,19 @@ const Ff = z(({
4298
4302
  /* @__PURE__ */ r.jsxs(y, { children: [
4299
4303
  /* @__PURE__ */ r.jsx(M, { sx: {
4300
4304
  flexGrow: 1
4301
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.zooming.scroll.x_axis"), checked: t.x_axis_scroll, onChange: (a) => i("x_axis_scroll")(a.currentTarget.checked) }) }),
4305
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.zooming.scroll.x_axis"), checked: t.x_axis_scroll, onChange: (a) => i("x_axis_scroll")(a.currentTarget.checked) }) }),
4302
4306
  /* @__PURE__ */ r.jsx(M, { sx: {
4303
4307
  flexGrow: 1
4304
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.zooming.scroll.y_axis"), checked: t.y_axis_scroll, onChange: (a) => i("y_axis_scroll")(a.currentTarget.checked) }) })
4308
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.zooming.scroll.y_axis"), checked: t.y_axis_scroll, onChange: (a) => i("y_axis_scroll")(a.currentTarget.checked) }) })
4305
4309
  ] }),
4306
4310
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", label: s("chart.zooming.slider.label"), labelPosition: "center" }),
4307
4311
  /* @__PURE__ */ r.jsxs(y, { children: [
4308
4312
  /* @__PURE__ */ r.jsx(M, { sx: {
4309
4313
  flexGrow: 1
4310
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.zooming.slider.x_axis"), checked: t.x_axis_slider, onChange: (a) => i("x_axis_slider")(a.currentTarget.checked) }) }),
4314
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.zooming.slider.x_axis"), checked: t.x_axis_slider, onChange: (a) => i("x_axis_slider")(a.currentTarget.checked) }) }),
4311
4315
  /* @__PURE__ */ r.jsx(ye, { label: s("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r.jsx(M, { sx: {
4312
4316
  flexGrow: 1
4313
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.zooming.slider.y_axis"), disabled: !t.y_axis_slider, checked: t.y_axis_slider, onChange: (a) => i("y_axis_slider")(a.currentTarget.checked) }) }) })
4317
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.zooming.slider.y_axis"), disabled: !t.y_axis_slider, checked: t.y_axis_slider, onChange: (a) => i("y_axis_slider")(a.currentTarget.checked) }) }) })
4314
4318
  ] })
4315
4319
  ] });
4316
4320
  }), kr = se(({
@@ -4347,7 +4351,7 @@ const Ff = z(({
4347
4351
  return /* @__PURE__ */ r.jsxs(k, { children: [
4348
4352
  /* @__PURE__ */ r.jsx(y, { grow: !0, noWrap: !0, mt: 20, children: /* @__PURE__ */ r.jsx(f, { name: "legend.show", control: t, render: ({
4349
4353
  field: a
4350
- }) => /* @__PURE__ */ r.jsx(Oe, { label: n("chart.legend.show_legend"), sx: {
4354
+ }) => /* @__PURE__ */ r.jsx(Ve, { label: n("chart.legend.show_legend"), sx: {
4351
4355
  flex: 1
4352
4356
  }, checked: a.value, onChange: (o) => a.onChange(o.currentTarget.checked) }) }) }),
4353
4357
  /* @__PURE__ */ r.jsx(y, { children: /* @__PURE__ */ r.jsx(f, { name: "legend", control: t, render: ({
@@ -4485,7 +4489,7 @@ const Hf = ({
4485
4489
  userSelect: "none"
4486
4490
  }, children: [
4487
4491
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
4488
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
4492
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
4489
4493
  ] }),
4490
4494
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
4491
4495
  tab: {
@@ -4520,7 +4524,7 @@ const Zt = se(({
4520
4524
  const {
4521
4525
  t: a
4522
4526
  } = _();
4523
- return /* @__PURE__ */ r.jsx(le, { ref: i, label: t ?? a("chart.rotate"), hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: a("chart.degree") }), sx: s, styles: {
4527
+ return /* @__PURE__ */ r.jsx(le, { ref: i, label: t ?? a("chart.rotate"), hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: a("chart.degree") }), sx: s, styles: {
4524
4528
  rightSection: {
4525
4529
  width: "4em",
4526
4530
  justifyContent: "flex-end",
@@ -4583,7 +4587,7 @@ function Xf({
4583
4587
  }] = sn(!1);
4584
4588
  return /* @__PURE__ */ r.jsxs(M, { children: [
4585
4589
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", w: "100%", compact: !0, onClick: s, leftIcon: n ? /* @__PURE__ */ r.jsx(cp, { size: 14 }) : /* @__PURE__ */ r.jsx(dp, { size: 14 }), children: e(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
4586
- /* @__PURE__ */ r.jsx(br, { in: n, children: n && /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, sx: {
4590
+ /* @__PURE__ */ r.jsx(br, { in: n, children: n && /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, sx: {
4587
4591
  tableLayout: "fixed"
4588
4592
  }, children: [
4589
4593
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -4645,24 +4649,24 @@ function Zf({
4645
4649
  }], value: t.output, onChange: i, sx: {
4646
4650
  flexGrow: 1
4647
4651
  } }),
4648
- /* @__PURE__ */ r.jsx(Oe, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
4649
- /* @__PURE__ */ r.jsx(j, { children: s("numbro.format.absolute") }),
4650
- /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: s("numbro.format.absolute_description") })
4652
+ /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
4653
+ /* @__PURE__ */ r.jsx(w, { children: s("numbro.format.absolute") }),
4654
+ /* @__PURE__ */ r.jsx(w, { size: 12, color: "gray", children: s("numbro.format.absolute_description") })
4651
4655
  ] }), checked: t.absolute, onChange: c, sx: {
4652
4656
  flexGrow: 1
4653
4657
  }, styles: Bs }),
4654
- /* @__PURE__ */ r.jsx(Oe, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
4655
- /* @__PURE__ */ r.jsx(j, { children: s("numbro.format.abbreviation") }),
4656
- /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: s("numbro.format.abbreviation_description") })
4658
+ /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
4659
+ /* @__PURE__ */ r.jsx(w, { children: s("numbro.format.abbreviation") }),
4660
+ /* @__PURE__ */ r.jsx(w, { size: 12, color: "gray", children: s("numbro.format.abbreviation_description") })
4657
4661
  ] }), checked: t.average, onChange: l, disabled: t.output !== "number", sx: {
4658
4662
  flexGrow: 1
4659
4663
  }, styles: Bs })
4660
4664
  ] }),
4661
4665
  /* @__PURE__ */ r.jsxs(y, { grow: !0, children: [
4662
4666
  /* @__PURE__ */ r.jsx(le, { label: s("numbro.format.mantissa"), defaultValue: 0, min: 0, step: 1, max: 4, value: t.mantissa, onChange: a }),
4663
- /* @__PURE__ */ r.jsx(Oe, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
4664
- /* @__PURE__ */ r.jsx(j, { children: s("numbro.format.trim_mantissa") }),
4665
- /* @__PURE__ */ r.jsx(j, { size: 12, color: "gray", children: s("numbro.format.trim_mantissa_description") })
4667
+ /* @__PURE__ */ r.jsx(Ve, { label: /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
4668
+ /* @__PURE__ */ r.jsx(w, { children: s("numbro.format.trim_mantissa") }),
4669
+ /* @__PURE__ */ r.jsx(w, { size: 12, color: "gray", children: s("numbro.format.trim_mantissa_description") })
4666
4670
  ] }), checked: t.trimMantissa, onChange: o, disabled: t.mantissa === 0, styles: Bs }),
4667
4671
  /* @__PURE__ */ r.jsx(M, {})
4668
4672
  ] }),
@@ -4721,7 +4725,7 @@ function tb({
4721
4725
  }, [a]), c(["x_axis", "y_axis", "reference_lines", "color", "dataZoom"]);
4722
4726
  const h = d(), p = C(() => !ge(h, n), [h, n]);
4723
4727
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
4724
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
4728
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
4725
4729
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X Axis", orientation: "vertical", styles: {
4726
4730
  tab: {
4727
4731
  paddingLeft: "6px",
@@ -4746,7 +4750,7 @@ function tb({
4746
4750
  /* @__PURE__ */ r.jsx(g.Panel, { value: "Legend", children: /* @__PURE__ */ r.jsx(Wf, { control: o, watch: c }) }),
4747
4751
  /* @__PURE__ */ r.jsx(g.Panel, { value: "Tooltip", children: /* @__PURE__ */ r.jsx(Yf, { control: o, watch: c }) }),
4748
4752
  /* @__PURE__ */ r.jsx(g.Panel, { value: "Style", children: /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
4749
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: e("chart.color.label") }),
4753
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: e("chart.color.label") }),
4750
4754
  /* @__PURE__ */ r.jsx(f, { name: "color", control: o, render: ({
4751
4755
  field: m
4752
4756
  }) => /* @__PURE__ */ r.jsx(Ze, { ...m }) })
@@ -5002,7 +5006,7 @@ const hb = {
5002
5006
  createConfig() {
5003
5007
  return {
5004
5008
  version: 10,
5005
- config: qe($i)
5009
+ config: Ne($i)
5006
5010
  };
5007
5011
  },
5008
5012
  triggers: [bc],
@@ -5021,7 +5025,7 @@ function mb(t) {
5021
5025
  const {
5022
5026
  t: e
5023
5027
  } = _();
5024
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.button.click.label") });
5028
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.button.click.label") });
5025
5029
  }
5026
5030
  const Vi = {
5027
5031
  content: "Button",
@@ -5046,7 +5050,7 @@ const Vi = {
5046
5050
  const n = yt({
5047
5051
  vizManager: t.vizManager,
5048
5052
  instance: e
5049
- }), s = bt(n.triggerManager, Cc.id), i = Pe(), {
5053
+ }), s = bt(n.triggerManager, Cc.id), i = Fe(), {
5050
5054
  value: a
5051
5055
  } = H(t.instanceData, "config"), o = C(() => we({}, a, Vi), [a]), {
5052
5056
  content: l,
@@ -5057,8 +5061,8 @@ const Vi = {
5057
5061
  width: h,
5058
5062
  height: p
5059
5063
  } = t.viewport, m = i.payloadForSQL, b = () => {
5060
- s.forEach((w) => {
5061
- n.runInteraction(w.id, {});
5064
+ s.forEach((j) => {
5065
+ n.runInteraction(j.id, {});
5062
5066
  });
5063
5067
  };
5064
5068
  return /* @__PURE__ */ r.jsx(Cn, { sx: {
@@ -5074,7 +5078,7 @@ const Vi = {
5074
5078
  }) => {
5075
5079
  const s = Xo(), i = Ge((o) => () => e(o), [e]), a = (o) => t === o;
5076
5080
  return /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
5077
- /* @__PURE__ */ r.jsx(j, { size: 14, sx: {
5081
+ /* @__PURE__ */ r.jsx(w, { size: 14, sx: {
5078
5082
  fontWeight: 500
5079
5083
  }, children: n }),
5080
5084
  /* @__PURE__ */ r.jsx(y, { position: "left", spacing: "xs", children: Object.keys(s.colors).map((o) => {
@@ -5145,7 +5149,7 @@ function _b({
5145
5149
  }, [i]);
5146
5150
  const u = c(), h = C(() => !ge(u, s), [u, s]);
5147
5151
  return l(["content", "variant", "color", "size", "compact", "horizontal_align", "vertical_align"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: o(n), children: [
5148
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: h }),
5152
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: h }),
5149
5153
  /* @__PURE__ */ r.jsxs(k, { children: [
5150
5154
  /* @__PURE__ */ r.jsx(f, { control: a, name: "content", render: ({
5151
5155
  field: p
@@ -5243,7 +5247,7 @@ const kb = {
5243
5247
  createConfig() {
5244
5248
  return {
5245
5249
  version: 2,
5246
- config: qe(Vi)
5250
+ config: Ne(Vi)
5247
5251
  };
5248
5252
  },
5249
5253
  triggers: [Cc],
@@ -5286,7 +5290,7 @@ function zb(t) {
5286
5290
  const {
5287
5291
  t: e
5288
5292
  } = _();
5289
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.cartesian_chart.click_series.label") });
5293
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.cartesian_chart.click_series.label") });
5290
5294
  }
5291
5295
  const Ni = {
5292
5296
  regressions: [],
@@ -5428,7 +5432,7 @@ function Ab({
5428
5432
  columnKey: c
5429
5433
  } = F(a.y_axis_data_key), d = S.groupBy(wr(n, a.y_axis_data_key), l);
5430
5434
  Object.entries(d).forEach(([u, h]) => {
5431
- const p = h.map((b, w) => [w, Number(b[c])]);
5435
+ const p = h.map((b, j) => [j, Number(b[c])]);
5432
5436
  i(a, u, u, p);
5433
5437
  });
5434
5438
  }), s;
@@ -5594,8 +5598,8 @@ function Nb({
5594
5598
  symbolSize: h,
5595
5599
  hide_in_legend: p,
5596
5600
  ...m
5597
- }, b, w, T, E) {
5598
- const P = e.type !== "category", G = {
5601
+ }, b, j, T, E) {
5602
+ const $ = e.type !== "category", W = {
5599
5603
  label: {
5600
5604
  show: !!i,
5601
5605
  position: i,
@@ -5606,40 +5610,40 @@ function Nb({
5606
5610
  yAxisIndex: s,
5607
5611
  stack: c,
5608
5612
  color: d,
5609
- symbolSize: qb(h, w, t, T),
5613
+ symbolSize: qb(h, j, t, T),
5610
5614
  hide_in_legend: p,
5611
5615
  labelLayout: {
5612
5616
  hideOverlap: !0
5613
5617
  },
5614
5618
  ...m
5615
5619
  };
5616
- if (m.type === "line" && (G.lineStyle = {
5620
+ if (m.type === "line" && (W.lineStyle = {
5617
5621
  shadowColor: "rgba(255,255,255,1)",
5618
5622
  shadowBlur: 0,
5619
5623
  shadowOffsetX: 0,
5620
5624
  shadowOffsetY: 3
5621
- }), u && (G.endLabel = {
5625
+ }), u && (W.endLabel = {
5622
5626
  show: !0,
5623
5627
  formatter: a,
5624
5628
  offset: [-12, 12],
5625
5629
  align: "right"
5626
5630
  }), !o || o === t)
5627
- return G.data = Ob({
5631
+ return W.data = Ob({
5628
5632
  dataTemplate: b,
5629
- data: w,
5633
+ data: j,
5630
5634
  aggregation_on_value: l,
5631
5635
  x_axis_data_key: t,
5632
5636
  y_axis_data_key: n,
5633
- valueTypedXAxis: P
5634
- }), G;
5637
+ valueTypedXAxis: $
5638
+ }), W;
5635
5639
  const K = Vb({
5636
5640
  group_by_key: o,
5637
- data: w,
5641
+ data: j,
5638
5642
  x_axis_data_key: t,
5639
5643
  y_axis_data_key: n
5640
5644
  });
5641
5645
  return Object.entries(K).map(([he, Z]) => {
5642
- const ee = qe(G);
5646
+ const ee = Ne(W);
5643
5647
  return ee.name = he, ee.color = void 0, ee.data = Z, ee;
5644
5648
  });
5645
5649
  }
@@ -5681,12 +5685,12 @@ function Qb(t, e, n, s) {
5681
5685
  }) => {
5682
5686
  if (Array.isArray(m) && m.length === 2 && (m = m[1]), !h)
5683
5687
  return m;
5684
- const b = i[h], w = s[b] ?? s.default;
5688
+ const b = i[h], j = s[b] ?? s.default;
5685
5689
  return `
5686
5690
  <tr>
5687
5691
  <td>${p}</td>
5688
5692
  <th style="text-align: right; padding: 0 1em;">${h}</th>
5689
- <td style="text-align: left; padding: 0 1em;">${w({
5693
+ <td style="text-align: left; padding: 0 1em;">${j({
5690
5694
  value: m
5691
5695
  })}</td>
5692
5696
  </tr>
@@ -5871,8 +5875,8 @@ function ey({
5871
5875
  const b = S.get(o, m.name, {
5872
5876
  error: "rowData is not found"
5873
5877
  });
5874
- l.forEach((w) => {
5875
- i.runInteraction(w.id, {
5878
+ l.forEach((j) => {
5879
+ i.runInteraction(j.id, {
5876
5880
  ...m,
5877
5881
  rowData: b
5878
5882
  });
@@ -5919,13 +5923,13 @@ function ty({
5919
5923
  top: mr(T.top, i, o),
5920
5924
  bottom: mr(T.bottom, i, o)
5921
5925
  };
5922
- }, [a, o]), b = Math.max(0, kt(c) - u - p), w = St(l);
5926
+ }, [a, o]), b = Math.max(0, kt(c) - u - p), j = St(l);
5923
5927
  return /* @__PURE__ */ r.jsxs(at, { width: l, height: c, children: [
5924
- /* @__PURE__ */ r.jsx(j, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
5928
+ /* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
5925
5929
  display: mo(a.stats.templates.top) ? "block" : "none"
5926
5930
  }, children: Object.values(m.top).map((T, E) => /* @__PURE__ */ r.jsx(A.Fragment, { children: T }, E)) }),
5927
- /* @__PURE__ */ r.jsx(ey, { variables: i, width: w, height: b, data: o, conf: a, interactionManager: n }),
5928
- /* @__PURE__ */ r.jsx(j, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
5931
+ /* @__PURE__ */ r.jsx(ey, { variables: i, width: j, height: b, data: o, conf: a, interactionManager: n }),
5932
+ /* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
5929
5933
  display: mo(a.stats.templates.bottom) ? "block" : "none"
5930
5934
  }, children: Object.values(m.bottom).map((T, E) => /* @__PURE__ */ r.jsx(A.Fragment, { children: T }, E)) })
5931
5935
  ] });
@@ -6110,7 +6114,7 @@ function sy({
6110
6114
  }) => /* @__PURE__ */ r.jsx(kr, { label: o("chart.orientation.label"), sx: {
6111
6115
  flex: 1
6112
6116
  }, ...c }) }),
6113
- l === "vertical" && /* @__PURE__ */ r.jsx(j, { mt: -10, color: "dimmed", size: 12, children: o("chart.reference_line.orientation.vertical_hint") })
6117
+ l === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: o("chart.reference_line.orientation.vertical_hint") })
6114
6118
  ] }),
6115
6119
  l === "horizontal" && /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${e}.yAxisIndex`, control: t, render: ({
6116
6120
  field: {
@@ -6145,7 +6149,7 @@ function sy({
6145
6149
  ) })
6146
6150
  ] }),
6147
6151
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
6148
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: o("chart.color.label") }),
6152
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: o("chart.color.label") }),
6149
6153
  /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${e}.lineStyle.color`, control: t, render: ({
6150
6154
  field: c
6151
6155
  }) => /* @__PURE__ */ r.jsx(Ze, { ...c }) })
@@ -6309,7 +6313,7 @@ function ay({
6309
6313
  ) })
6310
6314
  ] }),
6311
6315
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
6312
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: "Color" }),
6316
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: "Color" }),
6313
6317
  /* @__PURE__ */ r.jsx(f, { name: `regressions.${n}.plot.color`, control: t, render: ({
6314
6318
  field: d
6315
6319
  }) => /* @__PURE__ */ r.jsx(Ze, { ...d }) })
@@ -6442,7 +6446,7 @@ const ly = ({
6442
6446
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.reset_to_default") }),
6443
6447
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
6444
6448
  /* @__PURE__ */ r.jsx(I, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
6445
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: c, children: n("common.actions.save") })
6449
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: c, children: n("common.actions.save") })
6446
6450
  ] })
6447
6451
  ] })
6448
6452
  ] }) })
@@ -7714,8 +7718,8 @@ class pt {
7714
7718
  let p = d ? e == c ? -1 : e == h ? 1 : n : n, m = c + i + (p < 0 ? 0 : u);
7715
7719
  if (s)
7716
7720
  return m;
7717
- let b = e == (n < 0 ? c : h) ? null : yy(l / 3, e - c), w = e == c ? Pc : e == h ? $c : Wr;
7718
- return (n < 0 ? e != c : e != h) && (w |= Fc), new yo(m, w, b);
7721
+ let b = e == (n < 0 ? c : h) ? null : yy(l / 3, e - c), j = e == c ? Pc : e == h ? $c : Wr;
7722
+ return (n < 0 ? e != c : e != h) && (j |= Fc), new yo(m, j, b);
7719
7723
  }
7720
7724
  i += u - d;
7721
7725
  }
@@ -8160,8 +8164,8 @@ function Gr(t, e, n = 1, s) {
8160
8164
  return !1;
8161
8165
  let m = h.content.cutByIndex(p, h.childCount), b = s && s[u + 1];
8162
8166
  b && (m = m.replaceChild(0, b.type.create(b.attrs)));
8163
- let w = s && s[u] || h;
8164
- if (!h.canReplace(p + 1, h.childCount) || !w.type.validContent(m))
8167
+ let j = s && s[u] || h;
8168
+ if (!h.canReplace(p + 1, h.childCount) || !j.type.validContent(m))
8165
8169
  return !1;
8166
8170
  }
8167
8171
  let l = i.indexAfter(a), c = s && s[0];
@@ -8750,8 +8754,8 @@ class Cy {
8750
8754
  }
8751
8755
  createChain(e, n = !0) {
8752
8756
  const { rawCommands: s, editor: i, state: a } = this, { view: o } = i, l = [], c = !!e, d = e || a.tr, u = () => (!c && n && !d.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(d), l.every((p) => p === !0)), h = {
8753
- ...Object.fromEntries(Object.entries(s).map(([p, m]) => [p, (...w) => {
8754
- const T = this.buildProps(d, n), E = m(...w)(T);
8757
+ ...Object.fromEntries(Object.entries(s).map(([p, m]) => [p, (...j) => {
8758
+ const T = this.buildProps(d, n), E = m(...j)(T);
8755
8759
  return l.push(E), h;
8756
8760
  }])),
8757
8761
  run: u
@@ -8917,8 +8921,8 @@ const Ay = () => ({ editor: t, view: e }) => (requestAnimationFrame(() => {
8917
8921
  return;
8918
8922
  const b = jy(m);
8919
8923
  if (l.type.isTextblock) {
8920
- const { defaultType: w } = h.parent.contentMatchAt(h.index());
8921
- e.setNodeMarkup(m.start, w);
8924
+ const { defaultType: j } = h.parent.contentMatchAt(h.index());
8925
+ e.setNodeMarkup(m.start, j);
8922
8926
  }
8923
8927
  (b || b === 0) && e.lift(m, b);
8924
8928
  });
@@ -9247,14 +9251,14 @@ function w_(t, e, n = {}) {
9247
9251
  const l = [];
9248
9252
  if (i.forEach(({ $from: h, $to: p }) => {
9249
9253
  const m = h.pos, b = p.pos;
9250
- t.doc.nodesBetween(m, b, (w, T) => {
9251
- if (!w.isText && !w.marks.length)
9254
+ t.doc.nodesBetween(m, b, (j, T) => {
9255
+ if (!j.isText && !j.marks.length)
9252
9256
  return;
9253
- const E = Math.max(m, T), P = Math.min(b, T + w.nodeSize), G = P - E;
9254
- o += G, l.push(...w.marks.map((K) => ({
9257
+ const E = Math.max(m, T), $ = Math.min(b, T + j.nodeSize), W = $ - E;
9258
+ o += W, l.push(...j.marks.map((K) => ({
9255
9259
  mark: K,
9256
9260
  from: E,
9257
- to: P
9261
+ to: $
9258
9262
  })));
9259
9263
  });
9260
9264
  }), o === 0)
@@ -9288,7 +9292,7 @@ function S_(t, e, n) {
9288
9292
  if (d)
9289
9293
  return !1;
9290
9294
  if (u.isInline) {
9291
- const m = !p || p.type.allowsMarkType(n), b = !!n.isInSet(u.marks) || !u.marks.some((w) => w.type.excludes(n));
9295
+ const m = !p || p.type.allowsMarkType(n), b = !!n.isInSet(u.marks) || !u.marks.some((j) => j.type.excludes(n));
9292
9296
  d = m && b;
9293
9297
  }
9294
9298
  return !d;
@@ -9308,13 +9312,13 @@ const k_ = (t, e = {}) => ({ tr: n, state: s, dispatch: i }) => {
9308
9312
  l.forEach((d) => {
9309
9313
  const u = d.$from.pos, h = d.$to.pos;
9310
9314
  s.doc.nodesBetween(u, h, (p, m) => {
9311
- const b = Math.max(m, u), w = Math.min(m + p.nodeSize, h);
9315
+ const b = Math.max(m, u), j = Math.min(m + p.nodeSize, h);
9312
9316
  p.marks.find((E) => E.type === c) ? p.marks.forEach((E) => {
9313
- c === E.type && n.addMark(b, w, c.create({
9317
+ c === E.type && n.addMark(b, j, c.create({
9314
9318
  ...E.attrs,
9315
9319
  ...e
9316
9320
  }));
9317
- }) : n.addMark(b, w, c.create(e));
9321
+ }) : n.addMark(b, j, c.create(e));
9318
9322
  });
9319
9323
  });
9320
9324
  return S_(s, n, c);
@@ -9366,7 +9370,7 @@ const M_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9366
9370
  attrs: u
9367
9371
  }
9368
9372
  ] : void 0), b && (e.split(e.mapping.map(l.pos), 1, m), p && !h && !l.parentOffset && l.parent.type !== p)) {
9369
- const w = e.mapping.map(l.before()), T = e.doc.resolve(w);
9373
+ const j = e.mapping.map(l.before()), T = e.doc.resolve(j);
9370
9374
  l.node(-1).canReplaceWith(T.index(), T.index() + 1, p) && e.setNodeMarkup(e.mapping.map(l.before()), p);
9371
9375
  }
9372
9376
  t && zo(n, i.extensionManager.splittableMarks), e.scrollIntoView();
@@ -9389,10 +9393,10 @@ const M_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9389
9393
  const E = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
9390
9394
  for (let ee = l.depth - E; ee >= l.depth - 3; ee -= 1)
9391
9395
  T = ue.from(l.node(ee).copy(T));
9392
- const P = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, G = Qr(h, l.node().type.name, l.node().attrs), K = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(G)) || void 0;
9396
+ const $ = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, W = Qr(h, l.node().type.name, l.node().attrs), K = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(W)) || void 0;
9393
9397
  T = T.append(ue.from(o.createAndFill(null, K) || void 0));
9394
9398
  const he = l.before(l.depth - (E - 1));
9395
- e.replace(he, l.after(-P), new fe(T, 4 - E, 0));
9399
+ e.replace(he, l.after(-$), new fe(T, 4 - E, 0));
9396
9400
  let Z = -1;
9397
9401
  e.doc.nodesBetween(he, e.doc.content.size, (ee, pe) => {
9398
9402
  if (Z > -1)
@@ -9404,17 +9408,17 @@ const M_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9404
9408
  }
9405
9409
  const p = c.pos === l.end() ? u.contentMatchAt(0).defaultType : null, m = Qr(h, u.type.name, u.attrs), b = Qr(h, l.node().type.name, l.node().attrs);
9406
9410
  e.delete(l.pos, c.pos);
9407
- const w = p ? [
9411
+ const j = p ? [
9408
9412
  { type: o, attrs: m },
9409
9413
  { type: p, attrs: b }
9410
9414
  ] : [{ type: o, attrs: m }];
9411
9415
  if (!Gr(e.doc, l.pos, 2))
9412
9416
  return !1;
9413
9417
  if (s) {
9414
- const { selection: T, storedMarks: E } = n, { splittableMarks: P } = i.extensionManager, G = E || T.$to.parentOffset && T.$from.marks();
9415
- if (e.split(l.pos, 2, w).scrollIntoView(), !G || !s)
9418
+ const { selection: T, storedMarks: E } = n, { splittableMarks: $ } = i.extensionManager, W = E || T.$to.parentOffset && T.$from.marks();
9419
+ if (e.split(l.pos, 2, j).scrollIntoView(), !W || !s)
9416
9420
  return !0;
9417
- const K = G.filter((he) => P.includes(he.type.name));
9421
+ const K = W.filter((he) => $.includes(he.type.name));
9418
9422
  e.ensureMarks(K);
9419
9423
  }
9420
9424
  return !0;
@@ -9437,11 +9441,11 @@ const M_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9437
9441
  const i = t.doc.nodeAt(s);
9438
9442
  return n.node.type === (i == null ? void 0 : i.type) && Oc(t.doc, s) && t.join(s), !0;
9439
9443
  }, A_ = (t, e, n, s = {}) => ({ editor: i, tr: a, state: o, dispatch: l, chain: c, commands: d, can: u }) => {
9440
- const { extensions: h, splittableMarks: p } = i.extensionManager, m = Ke(t, o.schema), b = Ke(e, o.schema), { selection: w, storedMarks: T } = o, { $from: E, $to: P } = w, G = E.blockRange(P), K = T || w.$to.parentOffset && w.$from.marks();
9441
- if (!G)
9444
+ const { extensions: h, splittableMarks: p } = i.extensionManager, m = Ke(t, o.schema), b = Ke(e, o.schema), { selection: j, storedMarks: T } = o, { $from: E, $to: $ } = j, W = E.blockRange($), K = T || j.$to.parentOffset && j.$from.marks();
9445
+ if (!W)
9442
9446
  return !1;
9443
- const he = Ji((Z) => Co(Z.type.name, h))(w);
9444
- if (G.depth >= 1 && he && G.depth - he.depth <= 1) {
9447
+ const he = Ji((Z) => Co(Z.type.name, h))(j);
9448
+ if (W.depth >= 1 && he && W.depth - he.depth <= 1) {
9445
9449
  if (he.node.type === m)
9446
9450
  return d.liftListItem(b);
9447
9451
  if (Co(he.node.type.name, h) && m.validContent(he.node.content) && l)
@@ -9492,8 +9496,8 @@ const M_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9492
9496
  return !0;
9493
9497
  if (u && o) {
9494
9498
  let { from: p, to: m } = l;
9495
- const b = (a = d.marks().find((T) => T.type === c)) === null || a === void 0 ? void 0 : a.attrs, w = Wc(d, c, b);
9496
- w && (p = w.from, m = w.to), n.removeMark(p, m, c);
9499
+ const b = (a = d.marks().find((T) => T.type === c)) === null || a === void 0 ? void 0 : a.attrs, j = Wc(d, c, b);
9500
+ j && (p = j.from, m = j.to), n.removeMark(p, m, c);
9497
9501
  } else
9498
9502
  h.forEach((p) => {
9499
9503
  n.removeMark(p.$from.pos, p.$to.pos, c);
@@ -9510,8 +9514,8 @@ const M_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9510
9514
  ...e
9511
9515
  }), o && h.marks.length && h.marks.forEach((m) => {
9512
9516
  if (o === m.type) {
9513
- const b = Math.max(p, d), w = Math.min(p + h.nodeSize, u);
9514
- n.addMark(b, w, o.create({
9517
+ const b = Math.max(p, d), j = Math.min(p + h.nodeSize, u);
9518
+ n.addMark(b, j, o.create({
9515
9519
  ...m.attrs,
9516
9520
  ...e
9517
9521
  }));
@@ -9877,10 +9881,10 @@ const Y_ = ({
9877
9881
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
9878
9882
  /* @__PURE__ */ r.jsx(I, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(fl, { size: 16 }), children: a("common.actions.reset_to_default") }),
9879
9883
  /* @__PURE__ */ r.jsx(I, { onClick: d, color: "red", size: "xs", disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(vr, { size: 16 }), children: a("common.actions.revert_changes") }),
9880
- /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", onClick: c, disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), children: a("common.actions.save_changes") })
9884
+ /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", onClick: c, disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), children: a("common.actions.save_changes") })
9881
9885
  ] })
9882
9886
  ] }),
9883
- /* @__PURE__ */ r.jsx(j, { size: 14, children: n }),
9887
+ /* @__PURE__ */ r.jsx(w, { size: 14, children: n }),
9884
9888
  /* @__PURE__ */ r.jsx(Y_, { value: o, onChange: l })
9885
9889
  ] });
9886
9890
  }), Yc = se(({
@@ -10115,12 +10119,12 @@ function X_({
10115
10119
  field: l
10116
10120
  }) => /* @__PURE__ */ r.jsx(M, { sx: {
10117
10121
  flexGrow: 1
10118
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.series.line.smooth_line"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) }),
10122
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.series.line.smooth_line"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) }),
10119
10123
  /* @__PURE__ */ r.jsx(f, { name: `series.${e}.display_name_on_line`, control: t, render: ({
10120
10124
  field: l
10121
10125
  }) => /* @__PURE__ */ r.jsx(M, { sx: {
10122
10126
  flexGrow: 1
10123
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.series.line.show_name_on_line"), checked: l.value ?? !1, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) })
10127
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.series.line.show_name_on_line"), checked: l.value ?? !1, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) })
10124
10128
  ] })
10125
10129
  ] }),
10126
10130
  /* @__PURE__ */ r.jsxs(k, { children: [
@@ -10128,7 +10132,7 @@ function X_({
10128
10132
  field: l
10129
10133
  }) => /* @__PURE__ */ r.jsx(M, { mt: 10, mb: -10, sx: {
10130
10134
  flexGrow: 1
10131
- }, children: /* @__PURE__ */ r.jsx(Oe, { label: s("chart.series.line.show_symbol_on_line"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) }),
10135
+ }, children: /* @__PURE__ */ r.jsx(Ve, { label: s("chart.series.line.show_symbol_on_line"), checked: l.value, onChange: (c) => l.onChange(c.currentTarget.checked) }) }) }),
10132
10136
  a && /* @__PURE__ */ r.jsx(f, { name: `series.${e}.symbolSize`, control: t, render: ({
10133
10137
  field: l
10134
10138
  }) => /* @__PURE__ */ r.jsx(Gi, { ...l }) })
@@ -10279,7 +10283,7 @@ function ev({
10279
10283
  field: l
10280
10284
  }) => /* @__PURE__ */ r.jsx(Jn, { label: a("chart.label_position.label"), withOffOption: !0, ...l }) }),
10281
10285
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
10282
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: a("chart.color.label") }),
10286
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: a("chart.color.label") }),
10283
10287
  /* @__PURE__ */ r.jsx(f, { name: `series.${e}.color`, control: t, render: ({
10284
10288
  field: l
10285
10289
  }) => /* @__PURE__ */ r.jsx(Ze, { ...l }) })
@@ -10434,7 +10438,7 @@ const rv = ({
10434
10438
  userSelect: "none"
10435
10439
  }, children: [
10436
10440
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
10437
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
10441
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
10438
10442
  ] }),
10439
10443
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
10440
10444
  tab: {
@@ -10467,12 +10471,12 @@ const av = () => {
10467
10471
  return /* @__PURE__ */ r.jsxs(y, { sx: {
10468
10472
  display: "inline-flex"
10469
10473
  }, spacing: 6, mr: 14, children: [
10470
- /* @__PURE__ */ r.jsx(j, { children: t("chart.x_axis.x_axis_type") }),
10474
+ /* @__PURE__ */ r.jsx(w, { children: t("chart.x_axis.x_axis_type") }),
10471
10475
  /* @__PURE__ */ r.jsxs(Te, { width: 340, shadow: "md", position: "top", children: [
10472
10476
  /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(Y, { size: "xs", sx: {
10473
10477
  transform: "none !important"
10474
10478
  }, children: /* @__PURE__ */ r.jsx(In, {}) }) }),
10475
- /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: /* @__PURE__ */ r.jsxs(wi, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
10479
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: /* @__PURE__ */ r.jsxs(wi, { i18nKey: "chart.axis.type.click_to_learn_more", children: [
10476
10480
  "Click",
10477
10481
  /* @__PURE__ */ r.jsx(ni, { href: "https://echarts.apache.org/en/option.html#xAxis.type", target: "_blank", mx: 3, children: "here" }),
10478
10482
  "to learn more about these options"
@@ -10695,7 +10699,7 @@ function dv({
10695
10699
  }, [a]);
10696
10700
  const h = d(), p = C(() => !ge(h, a), [h, a]);
10697
10701
  return c(["dataZoom"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
10698
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
10702
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
10699
10703
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "Series", orientation: "vertical", styles: {
10700
10704
  tab: {
10701
10705
  paddingLeft: "6px",
@@ -10732,7 +10736,7 @@ function dv({
10732
10736
  ] }) });
10733
10737
  }
10734
10738
  function uv(t) {
10735
- const e = qe(jn(t, "variables"));
10739
+ const e = Ne(jn(t, "variables"));
10736
10740
  return e.stats = jn(e.stats, "variables"), e;
10737
10741
  }
10738
10742
  function hv(t) {
@@ -11192,7 +11196,7 @@ const Av = {
11192
11196
  createConfig() {
11193
11197
  return {
11194
11198
  version: 19,
11195
- config: qe(Ni)
11199
+ config: Ne(Ni)
11196
11200
  };
11197
11201
  },
11198
11202
  triggers: [qi],
@@ -11229,9 +11233,9 @@ function Pv(t, e) {
11229
11233
  } = n;
11230
11234
  if (!s || !i)
11231
11235
  return {};
11232
- const h = F(s), p = F(i), m = e[h.queryID].map((w) => ({
11233
- name: w[h.columnKey],
11234
- value: w[p.columnKey]
11236
+ const h = F(s), p = F(i), m = e[h.queryID].map((j) => ({
11237
+ name: j[h.columnKey],
11238
+ value: j[p.columnKey]
11235
11239
  })), b = ft(a.overflow.on_axis);
11236
11240
  return {
11237
11241
  type: "funnel",
@@ -11445,7 +11449,7 @@ const Gv = ({
11445
11449
  }, label: /* @__PURE__ */ r.jsxs(y, { position: "apart", pr: 6, sx: {
11446
11450
  width: "100%"
11447
11451
  }, children: [
11448
- /* @__PURE__ */ r.jsx(j, { children: i("viz.funnel_chart.min_value") }),
11452
+ /* @__PURE__ */ r.jsx(w, { children: i("viz.funnel_chart.min_value") }),
11449
11453
  /* @__PURE__ */ r.jsx(ye, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(f, { name: `series.${n}.min.enable_value`, control: e, render: ({
11450
11454
  field: p
11451
11455
  }) => /* @__PURE__ */ r.jsx(X, { size: "xs", checked: p.value, onChange: (m) => p.onChange(m.currentTarget.checked) }) }) }) })
@@ -11465,7 +11469,7 @@ const Gv = ({
11465
11469
  }, label: /* @__PURE__ */ r.jsxs(y, { position: "apart", pr: 6, sx: {
11466
11470
  width: "100%"
11467
11471
  }, children: [
11468
- /* @__PURE__ */ r.jsx(j, { children: i("viz.funnel_chart.max_value") }),
11472
+ /* @__PURE__ */ r.jsx(w, { children: i("viz.funnel_chart.max_value") }),
11469
11473
  /* @__PURE__ */ r.jsx(ye, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r.jsx(M, { children: /* @__PURE__ */ r.jsx(f, { name: `series.${n}.max.enable_value`, control: e, render: ({
11470
11474
  field: p
11471
11475
  }) => /* @__PURE__ */ r.jsx(X, { size: "xs", checked: p.value, onChange: (m) => p.onChange(m.currentTarget.checked) }) }) }) })
@@ -11569,7 +11573,7 @@ function Hv({
11569
11573
  }, [s]), o([]);
11570
11574
  const d = l(), u = C(() => !S.isEqual(d, s), [d, s]);
11571
11575
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
11572
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: u }),
11576
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: u }),
11573
11577
  /* @__PURE__ */ r.jsx(Qv, { control: i, watch: o })
11574
11578
  ] }) });
11575
11579
  }
@@ -11810,10 +11814,10 @@ function aj({
11810
11814
  value: ""
11811
11815
  }
11812
11816
  }, m = [u, h, p], b = s[`${l}---${c}`];
11813
- return b && t.tooltip.metrics.forEach((w) => {
11814
- const T = F(w.data_key);
11817
+ return b && t.tooltip.metrics.forEach((j) => {
11818
+ const T = F(j.data_key);
11815
11819
  m.push({
11816
- label: w.name,
11820
+ label: j.name,
11817
11821
  value: ij(S.get(b, T.columnKey, "")),
11818
11822
  style: {
11819
11823
  label: "",
@@ -11928,7 +11932,7 @@ const lj = ({
11928
11932
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.reset_to_default") }),
11929
11933
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
11930
11934
  /* @__PURE__ */ r.jsx(I, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
11931
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: c, children: n("common.actions.save") })
11935
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: c, children: n("common.actions.save") })
11932
11936
  ] })
11933
11937
  ] })
11934
11938
  ] }) })
@@ -12112,8 +12116,8 @@ function gj(t, e, n, s, i) {
12112
12116
  if (!t.x_axis.data_key || !t.y_axis.data_key || !t.heat_block.data_key)
12113
12117
  return {};
12114
12118
  const a = n.reduce((T, E) => {
12115
- const P = Xt(E, e);
12116
- return T[E.name] = gt(E, P), T;
12119
+ const $ = Xt(E, e);
12120
+ return T[E.name] = gt(E, $), T;
12117
12121
  }, {}), o = tj(t), l = nj(t), c = F(t.x_axis.data_key), d = F(t.y_axis.data_key), u = F(t.heat_block.data_key), h = S.uniq(e[c.queryID].map((T) => T[c.columnKey])), p = S.uniq(e[c.queryID].map((T) => T[d.columnKey])), m = e[c.queryID].map((T) => [S.get(T, c.columnKey), S.get(T, d.columnKey), S.get(T, u.columnKey)]), b = xj(h.length, p.length, s, i);
12118
12122
  return {
12119
12123
  xAxis: pj(t, h, o.x_axis, b),
@@ -12131,7 +12135,7 @@ function bj(t) {
12131
12135
  const {
12132
12136
  t: e
12133
12137
  } = _();
12134
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.merico_heatmap.click_heatmap.heatblock.label") });
12138
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.merico_heatmap.click_heatmap.heatblock.label") });
12135
12139
  }
12136
12140
  const Xc = {
12137
12141
  id: "builtin:echarts:click-heatmap:heat-block",
@@ -12219,8 +12223,8 @@ function yj({
12219
12223
  const [p, m] = h.value, b = S.get(o, `${p}---${m}`, {
12220
12224
  error: "rowData is not found"
12221
12225
  });
12222
- l.forEach((w) => {
12223
- i.runInteraction(w.id, {
12226
+ l.forEach((j) => {
12227
+ i.runInteraction(j.id, {
12224
12228
  ...h,
12225
12229
  rowData: b
12226
12230
  });
@@ -12288,7 +12292,7 @@ function vj({
12288
12292
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
12289
12293
  /* @__PURE__ */ r.jsx(f, { name: "heat_block.label.show", control: t, render: ({
12290
12294
  field: i
12291
- }) => /* @__PURE__ */ r.jsx(Oe, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked), sx: {
12295
+ }) => /* @__PURE__ */ r.jsx(Ve, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked), sx: {
12292
12296
  flexGrow: 1
12293
12297
  } }) }),
12294
12298
  /* @__PURE__ */ r.jsx(f, { name: "heat_block.label.fontSize", control: t, render: ({
@@ -12356,7 +12360,7 @@ const jj = ({
12356
12360
  userSelect: "none"
12357
12361
  }, children: [
12358
12362
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
12359
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
12363
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
12360
12364
  ] }),
12361
12365
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
12362
12366
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
@@ -12492,7 +12496,7 @@ function zj({
12492
12496
  }, children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", sx: {
12493
12497
  height: "100%"
12494
12498
  }, children: [
12495
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
12499
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
12496
12500
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X Axis", orientation: "vertical", styles: {
12497
12501
  root: {
12498
12502
  // height: '100%',
@@ -12724,7 +12728,7 @@ function Vj(t) {
12724
12728
  const {
12725
12729
  t: e
12726
12730
  } = _();
12727
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.pareto_chart.click_series.label") });
12731
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.pareto_chart.click_series.label") });
12728
12732
  }
12729
12733
  const ed = {
12730
12734
  label_template: "${percentage.x} of ${x_axis.name} causes ${percentage.y} of ${bar.name}",
@@ -12856,8 +12860,8 @@ function Gj(t, e, n) {
12856
12860
  if (a.queryID !== o.queryID)
12857
12861
  throw new Error("Please use the same query for X & Y axis");
12858
12862
  const l = e[a.queryID].map((p) => [p[a.columnKey], Number(p[o.columnKey])]).sort((p, m) => m[1] - p[1]), c = l.reduce((p, m) => p + m[1], 0), d = l.reduce((p, m, b) => {
12859
- const w = b === 0 ? 0 : p[b - 1][1];
12860
- return p.push([m[0], w + m[1]]), p;
12863
+ const j = b === 0 ? 0 : p[b - 1][1];
12864
+ return p.push([m[0], j + m[1]]), p;
12861
12865
  }, []).map((p) => [p[0], p[1] / c]), {
12862
12866
  markLine: u,
12863
12867
  markArea: h
@@ -13016,8 +13020,8 @@ function Jj({
13016
13020
  const b = S.get(u, m.name, {
13017
13021
  error: "rowData is not found"
13018
13022
  });
13019
- d.forEach((w) => {
13020
- c.runInteraction(w.id, {
13023
+ d.forEach((j) => {
13024
+ c.runInteraction(j.id, {
13021
13025
  ...m,
13022
13026
  rowData: b
13023
13027
  });
@@ -13048,7 +13052,7 @@ function Xj({
13048
13052
  }, ...s }) })
13049
13053
  ] }),
13050
13054
  /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
13051
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: n("chart.color.label") }),
13055
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: n("chart.color.label") }),
13052
13056
  /* @__PURE__ */ r.jsx(f, { name: "bar.color", control: t, render: ({
13053
13057
  field: s
13054
13058
  }) => /* @__PURE__ */ r.jsx(Ze, { ...s }) })
@@ -13082,7 +13086,7 @@ function Zj({
13082
13086
  }, ...s }) })
13083
13087
  ] }),
13084
13088
  /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
13085
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: n("chart.color.label") }),
13089
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: n("chart.color.label") }),
13086
13090
  /* @__PURE__ */ r.jsx(f, { name: "line.color", control: t, render: ({
13087
13091
  field: s
13088
13092
  }) => /* @__PURE__ */ r.jsx(Ze, { ...s }) })
@@ -13131,7 +13135,7 @@ function nw({
13131
13135
  } = _();
13132
13136
  return e(["markLine"]), /* @__PURE__ */ r.jsxs(k, { children: [
13133
13137
  /* @__PURE__ */ r.jsxs(k, { spacing: 2, children: [
13134
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: n("chart.color.label") }),
13138
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: n("chart.color.label") }),
13135
13139
  /* @__PURE__ */ r.jsx(f, { name: "markLine.color", control: t, render: ({
13136
13140
  field: s
13137
13141
  }) => /* @__PURE__ */ r.jsx(Ze, { ...s }) })
@@ -13217,7 +13221,7 @@ function iw({
13217
13221
  }, [i]), l(["x_axis", "data_key", "bar", "line", "dataZoom"]);
13218
13222
  const u = c(), h = C(() => !ge(u, n), [u, n]);
13219
13223
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(s), children: [
13220
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: h }),
13224
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: h }),
13221
13225
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X Axis", orientation: "vertical", styles: {
13222
13226
  tab: {
13223
13227
  paddingLeft: "6px",
@@ -13419,7 +13423,7 @@ const xw = {
13419
13423
  createConfig() {
13420
13424
  return {
13421
13425
  version: 9,
13422
- config: qe(ta)
13426
+ config: Ne(ta)
13423
13427
  };
13424
13428
  },
13425
13429
  triggers: [Zc],
@@ -13525,7 +13529,7 @@ function yw(t) {
13525
13529
  const {
13526
13530
  t: e
13527
13531
  } = _();
13528
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.pie_chart.click_series.label") });
13532
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.pie_chart.click_series.label") });
13529
13533
  }
13530
13534
  const na = {
13531
13535
  label_field: "",
@@ -13594,7 +13598,7 @@ function jw({
13594
13598
  }, [a]);
13595
13599
  const h = d(), p = C(() => !S.isEqual(h, i), [h, i]);
13596
13600
  return c(["label_field", "value_field", "color_field"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
13597
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
13601
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
13598
13602
  /* @__PURE__ */ r.jsxs(k, { mt: "md", spacing: "xs", p: "md", mb: "sm", sx: {
13599
13603
  border: "1px solid #eee",
13600
13604
  borderRadius: "5px"
@@ -13693,7 +13697,7 @@ const Iw = {
13693
13697
  createConfig() {
13694
13698
  return {
13695
13699
  version: 3,
13696
- config: qe(na)
13700
+ config: Ne(na)
13697
13701
  };
13698
13702
  },
13699
13703
  triggers: [td],
@@ -13706,7 +13710,7 @@ function Mw(t) {
13706
13710
  const {
13707
13711
  t: e
13708
13712
  } = _();
13709
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.radar_chart.click_series.label") });
13713
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.radar_chart.click_series.label") });
13710
13714
  }
13711
13715
  const nd = {
13712
13716
  id: "builtin:echarts:click-radar-chart:series",
@@ -13946,11 +13950,11 @@ function Vw({
13946
13950
  const {
13947
13951
  queryID: h,
13948
13952
  columnKey: p
13949
- } = F(t.series_name_key), m = S.keyBy(e[h], p), b = t.additional_series.reduce((w, T) => {
13950
- const E = F(T.name_key), P = S.keyBy(e[E.queryID], E.columnKey);
13953
+ } = F(t.series_name_key), m = S.keyBy(e[h], p), b = t.additional_series.reduce((j, T) => {
13954
+ const E = F(T.name_key), $ = S.keyBy(e[E.queryID], E.columnKey);
13951
13955
  return {
13952
- ...w,
13953
- ...P
13956
+ ...j,
13957
+ ...$
13954
13958
  };
13955
13959
  }, m);
13956
13960
  return {
@@ -14190,7 +14194,7 @@ function Qw({
14190
14194
  }, [i]), l(["series_name_key", "background", "label"]);
14191
14195
  const h = c(), p = C(() => !ge(h, i), [h, i]);
14192
14196
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(s), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
14193
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p && u.isValid }),
14197
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p && u.isValid }),
14194
14198
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "series", children: [
14195
14199
  /* @__PURE__ */ r.jsxs(g.List, { children: [
14196
14200
  /* @__PURE__ */ r.jsx(g.Tab, { value: "series", children: e("chart.series.label") }),
@@ -14655,13 +14659,13 @@ function p0(t, e, n, s) {
14655
14659
  return {
14656
14660
  name: t,
14657
14661
  expression: /* @__PURE__ */ r.jsxs(y, { position: "center", noWrap: !0, spacing: 10, children: [
14658
- /* @__PURE__ */ r.jsx(j, { children: a.name }),
14659
- /* @__PURE__ */ r.jsx(j, { children: "=" }),
14660
- /* @__PURE__ */ r.jsx(j, { weight: "bold", color: "red", children: re(c, To) }),
14661
- /* @__PURE__ */ r.jsx(j, { children: "+" }),
14662
- /* @__PURE__ */ r.jsx(j, { weight: "bold", color: "red", children: re(l, To) }),
14663
- /* @__PURE__ */ r.jsx(j, { children: "×" }),
14664
- /* @__PURE__ */ r.jsx(j, { children: i.name })
14662
+ /* @__PURE__ */ r.jsx(w, { children: a.name }),
14663
+ /* @__PURE__ */ r.jsx(w, { children: "=" }),
14664
+ /* @__PURE__ */ r.jsx(w, { weight: "bold", color: "red", children: re(c, To) }),
14665
+ /* @__PURE__ */ r.jsx(w, { children: "+" }),
14666
+ /* @__PURE__ */ r.jsx(w, { weight: "bold", color: "red", children: re(l, To) }),
14667
+ /* @__PURE__ */ r.jsx(w, { children: "×" }),
14668
+ /* @__PURE__ */ r.jsx(w, { children: i.name })
14665
14669
  ] }),
14666
14670
  rSquared: d,
14667
14671
  adjustedRSquared: ks(d, e.length, 1)
@@ -14679,16 +14683,16 @@ function m0(t, e, n, s) {
14679
14683
  return {
14680
14684
  name: t,
14681
14685
  expression: /* @__PURE__ */ r.jsxs(y, { position: "center", noWrap: !0, spacing: 10, children: [
14682
- /* @__PURE__ */ r.jsx(j, { children: a.name }),
14683
- /* @__PURE__ */ r.jsx(j, { children: "=" }),
14684
- /* @__PURE__ */ r.jsx(j, { weight: "bold", color: "gray", children: o }),
14685
- /* @__PURE__ */ r.jsx(j, { children: "×" }),
14686
+ /* @__PURE__ */ r.jsx(w, { children: a.name }),
14687
+ /* @__PURE__ */ r.jsx(w, { children: "=" }),
14688
+ /* @__PURE__ */ r.jsx(w, { weight: "bold", color: "gray", children: o }),
14689
+ /* @__PURE__ */ r.jsx(w, { children: "×" }),
14686
14690
  /* @__PURE__ */ r.jsxs(y, { position: "left", noWrap: !0, spacing: 2, children: [
14687
- /* @__PURE__ */ r.jsx(j, { children: "Math.exp(" }),
14688
- /* @__PURE__ */ r.jsx(j, { weight: "bold", color: "gray", children: l }),
14689
- /* @__PURE__ */ r.jsx(j, { children: "×" }),
14690
- /* @__PURE__ */ r.jsx(j, { children: i.name }),
14691
- /* @__PURE__ */ r.jsx(j, { children: ")" })
14691
+ /* @__PURE__ */ r.jsx(w, { children: "Math.exp(" }),
14692
+ /* @__PURE__ */ r.jsx(w, { weight: "bold", color: "gray", children: l }),
14693
+ /* @__PURE__ */ r.jsx(w, { children: "×" }),
14694
+ /* @__PURE__ */ r.jsx(w, { children: i.name }),
14695
+ /* @__PURE__ */ r.jsx(w, { children: ")" })
14692
14696
  ] })
14693
14697
  ] }),
14694
14698
  rSquared: c,
@@ -14707,16 +14711,16 @@ function x0(t, e, n, s) {
14707
14711
  return {
14708
14712
  name: t,
14709
14713
  expression: /* @__PURE__ */ r.jsxs(y, { position: "center", noWrap: !0, spacing: 10, children: [
14710
- /* @__PURE__ */ r.jsx(j, { children: a.name }),
14711
- /* @__PURE__ */ r.jsx(j, { children: "=" }),
14712
- /* @__PURE__ */ r.jsx(j, { weight: "bold", color: "gray", children: o }),
14713
- /* @__PURE__ */ r.jsx(j, { children: "×" }),
14714
+ /* @__PURE__ */ r.jsx(w, { children: a.name }),
14715
+ /* @__PURE__ */ r.jsx(w, { children: "=" }),
14716
+ /* @__PURE__ */ r.jsx(w, { weight: "bold", color: "gray", children: o }),
14717
+ /* @__PURE__ */ r.jsx(w, { children: "×" }),
14714
14718
  /* @__PURE__ */ r.jsxs(y, { position: "left", noWrap: !0, spacing: 2, children: [
14715
- /* @__PURE__ */ r.jsx(j, { children: "Math.log(" }),
14716
- /* @__PURE__ */ r.jsx(j, { children: i.name }),
14717
- /* @__PURE__ */ r.jsx(j, { children: ")" }),
14718
- /* @__PURE__ */ r.jsx(j, { children: "+" }),
14719
- /* @__PURE__ */ r.jsx(j, { weight: "bold", color: "gray", children: l })
14719
+ /* @__PURE__ */ r.jsx(w, { children: "Math.log(" }),
14720
+ /* @__PURE__ */ r.jsx(w, { children: i.name }),
14721
+ /* @__PURE__ */ r.jsx(w, { children: ")" }),
14722
+ /* @__PURE__ */ r.jsx(w, { children: "+" }),
14723
+ /* @__PURE__ */ r.jsx(w, { weight: "bold", color: "gray", children: l })
14720
14724
  ] })
14721
14725
  ] }),
14722
14726
  rSquared: c,
@@ -14782,8 +14786,8 @@ function Do({
14782
14786
  rSquared: s,
14783
14787
  adjustedRSquared: i
14784
14788
  } = t;
14785
- return n ? /* @__PURE__ */ r.jsx(Ve, { fontSize: 14, sx: b0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
14786
- /* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { colSpan: 2, children: /* @__PURE__ */ r.jsx(j, { align: "center", children: n }) }) }),
14789
+ return n ? /* @__PURE__ */ r.jsx(qe, { fontSize: 14, sx: b0, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
14790
+ /* @__PURE__ */ r.jsx("tr", { children: /* @__PURE__ */ r.jsx("td", { colSpan: 2, children: /* @__PURE__ */ r.jsx(w, { align: "center", children: n }) }) }),
14787
14791
  /* @__PURE__ */ r.jsxs("tr", { children: [
14788
14792
  /* @__PURE__ */ r.jsx("td", { children: e("viz.regression_chart.r_sq") }),
14789
14793
  /* @__PURE__ */ r.jsx("td", { style: {
@@ -14804,7 +14808,7 @@ function Do({
14804
14808
  absolute: !1
14805
14809
  }) })
14806
14810
  ] })
14807
- ] }) }) : /* @__PURE__ */ r.jsx(j, { children: "Unavailable for this regression method" });
14811
+ ] }) }) : /* @__PURE__ */ r.jsx(w, { children: "Unavailable for this regression method" });
14808
14812
  }
14809
14813
  function y0({
14810
14814
  conf: t,
@@ -14954,7 +14958,7 @@ function w0({
14954
14958
  ) })
14955
14959
  ] }),
14956
14960
  !a && /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
14957
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: n("chart.color.label") }),
14961
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: n("chart.color.label") }),
14958
14962
  /* @__PURE__ */ r.jsx(f, { name: "regression.plot.color", control: t, render: ({
14959
14963
  field: l
14960
14964
  }) => /* @__PURE__ */ r.jsx(Ze, { ...l }) })
@@ -14988,7 +14992,7 @@ function S0({
14988
14992
  field: n
14989
14993
  }) => (
14990
14994
  // @ts-expect-error type of onChange
14991
- /* @__PURE__ */ r.jsx(le, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "度" }), sx: {
14995
+ /* @__PURE__ */ r.jsx(le, { label: "旋转", hideControls: !0, min: -90, max: 90, rightSection: /* @__PURE__ */ r.jsx(w, { color: "dimmed", children: "度" }), sx: {
14992
14996
  width: "48%"
14993
14997
  }, styles: {
14994
14998
  rightSection: {
@@ -15044,7 +15048,7 @@ function C0({
15044
15048
  }, [s]), o(["x_axis", "y_axis", "regression"]);
15045
15049
  const d = l(), u = C(() => !ge(d, e), [d, e]);
15046
15050
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
15047
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: u }),
15051
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: u }),
15048
15052
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X轴", orientation: "vertical", styles: {
15049
15053
  panel: {
15050
15054
  paddingTop: "6px",
@@ -15162,7 +15166,7 @@ const A0 = {
15162
15166
  createConfig() {
15163
15167
  return {
15164
15168
  version: 3,
15165
- config: qe(ra)
15169
+ config: Ne(ra)
15166
15170
  };
15167
15171
  },
15168
15172
  translation: M0
@@ -15215,7 +15219,7 @@ function P0(t, e, n, s) {
15215
15219
  const F0 = z(({
15216
15220
  context: t
15217
15221
  }) => {
15218
- const e = Pe(), {
15222
+ const e = Fe(), {
15219
15223
  value: n
15220
15224
  } = H(t.instanceData, "config"), {
15221
15225
  variables: s,
@@ -15283,8 +15287,8 @@ const sa = se(({
15283
15287
  position: "relative"
15284
15288
  }, children: [
15285
15289
  /* @__PURE__ */ r.jsxs(y, { align: "center", children: [
15286
- /* @__PURE__ */ r.jsx(j, { size: 14, fw: 500, children: s }),
15287
- /* @__PURE__ */ r.jsx(Y, { color: "green", disabled: !u, onClick: d, children: /* @__PURE__ */ r.jsx(Ne, { size: 18 }) })
15290
+ /* @__PURE__ */ r.jsx(w, { size: 14, fw: 500, children: s }),
15291
+ /* @__PURE__ */ r.jsx(Y, { color: "green", disabled: !u, onClick: d, children: /* @__PURE__ */ r.jsx(Pe, { size: 18 }) })
15288
15292
  ] }),
15289
15293
  /* @__PURE__ */ r.jsxs(J, { editor: c, styles: h, children: [
15290
15294
  /* @__PURE__ */ r.jsxs(J.Toolbar, { sticky: !0, stickyOffset: 0, children: [
@@ -15365,7 +15369,7 @@ function V0({
15365
15369
  background: "#efefef",
15366
15370
  display: "none"
15367
15371
  }, children: [
15368
- /* @__PURE__ */ r.jsx(j, { children: e("viz.rich_text.content.label") }),
15372
+ /* @__PURE__ */ r.jsx(w, { children: e("viz.rich_text.content.label") }),
15369
15373
  /* @__PURE__ */ r.jsx(Y, { ref: d, type: "submit", mr: 5, variant: "filled", color: "green", children: /* @__PURE__ */ r.jsx(Gt, { size: 20 }) })
15370
15374
  ] }),
15371
15375
  /* @__PURE__ */ r.jsx(f, { name: "content", control: a, render: ({
@@ -15426,7 +15430,7 @@ const G0 = {
15426
15430
  createConfig() {
15427
15431
  return {
15428
15432
  version: 1,
15429
- config: qe(Cs)
15433
+ config: Ne(Cs)
15430
15434
  };
15431
15435
  },
15432
15436
  translation: B0
@@ -15478,7 +15482,7 @@ function H0(t) {
15478
15482
  const {
15479
15483
  t: e
15480
15484
  } = _();
15481
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.scatter_chart.click_scatter.trigger") });
15485
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.scatter_chart.click_scatter.trigger") });
15482
15486
  }
15483
15487
  function ld() {
15484
15488
  const {
@@ -15780,8 +15784,8 @@ function iS(t, e) {
15780
15784
  </tr>`], p = t.tooltip.metrics.map((b) => `<tr>
15781
15785
  <th style="text-align: right;">${b.name}</th>
15782
15786
  ${o.map(({
15783
- value: w
15784
- }) => `<td style="text-align: right; padding: 0 1em;">${sS(Nr(w, b.data_key))}</td>`).join("")}
15787
+ value: j
15788
+ }) => `<td style="text-align: right; padding: 0 1em;">${sS(Nr(j, b.data_key))}</td>`).join("")}
15785
15789
  </tr>`);
15786
15790
  return h.push(...p), `
15787
15791
  <table style="width: auto">
@@ -15947,22 +15951,22 @@ function uS({
15947
15951
  } = ur(), m = A.useMemo(() => {
15948
15952
  const {
15949
15953
  stats: {
15950
- templates: w
15954
+ templates: j
15951
15955
  }
15952
15956
  } = a;
15953
15957
  return {
15954
- top: mr(w.top, i, o),
15955
- bottom: mr(w.bottom, i, o)
15958
+ top: mr(j.top, i, o),
15959
+ bottom: mr(j.bottom, i, o)
15956
15960
  };
15957
15961
  }, [a, o]), b = Math.max(0, kt(c) - u - p);
15958
15962
  return !l || !c ? null : /* @__PURE__ */ r.jsxs(at, { width: l, height: c, children: [
15959
- /* @__PURE__ */ r.jsx(j, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
15963
+ /* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
15960
15964
  display: Lo(a.stats.templates.top) ? "block" : "none"
15961
- }, children: Object.values(m.top).map((w) => w) }),
15965
+ }, children: Object.values(m.top).map((j) => j) }),
15962
15966
  /* @__PURE__ */ r.jsx(dS, { variables: i, width: St(l), height: b, data: o, conf: a, interactionManager: n }),
15963
- /* @__PURE__ */ r.jsx(j, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
15967
+ /* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
15964
15968
  display: Lo(a.stats.templates.bottom) ? "block" : "none"
15965
- }, children: Object.values(m.bottom).map((w) => w) })
15969
+ }, children: Object.values(m.bottom).map((j) => j) })
15966
15970
  ] });
15967
15971
  }
15968
15972
  const hS = se(({
@@ -15991,26 +15995,26 @@ const hS = se(({
15991
15995
  s && /* @__PURE__ */ r.jsx(V, { label: o("chart.y_axis.label"), data: s, value: t.yAxisIndex, onChange: (d) => c("xAxisIndex", d) })
15992
15996
  ] }),
15993
15997
  /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
15994
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#212529", fw: 500, children: o("chart.reference_area.endpoint.left_bottom_point") }),
15998
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#212529", fw: 500, children: o("chart.reference_area.endpoint.left_bottom_point") }),
15995
15999
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
15996
- /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(j, { children: "x" }), data: i, value: t.leftBottomPoint.x_data_key, onChange: (d) => c("leftBottomPoint.x_data_key", d ?? ""), clearable: !0 }),
15997
- /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(j, { children: "y" }), data: i, value: t.leftBottomPoint.y_data_key, onChange: (d) => c("leftBottomPoint.y_data_key", d ?? ""), clearable: !0 })
16000
+ /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(w, { children: "x" }), data: i, value: t.leftBottomPoint.x_data_key, onChange: (d) => c("leftBottomPoint.x_data_key", d ?? ""), clearable: !0 }),
16001
+ /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(w, { children: "y" }), data: i, value: t.leftBottomPoint.y_data_key, onChange: (d) => c("leftBottomPoint.y_data_key", d ?? ""), clearable: !0 })
15998
16002
  ] })
15999
16003
  ] }),
16000
16004
  /* @__PURE__ */ r.jsxs(k, { spacing: 0, children: [
16001
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#212529", fw: 500, children: o("chart.reference_area.endpoint.right_top_point") }),
16005
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#212529", fw: 500, children: o("chart.reference_area.endpoint.right_top_point") }),
16002
16006
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
16003
- /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(j, { children: "x" }), data: i, value: t.rightTopPoint.x_data_key, onChange: (d) => c("rightTopPoint.x_data_key", d ?? ""), clearable: !0 }),
16004
- /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(j, { children: "y" }), data: i, value: t.rightTopPoint.y_data_key, onChange: (d) => c("rightTopPoint.y_data_key", d ?? ""), clearable: !0 })
16007
+ /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(w, { children: "x" }), data: i, value: t.rightTopPoint.x_data_key, onChange: (d) => c("rightTopPoint.x_data_key", d ?? ""), clearable: !0 }),
16008
+ /* @__PURE__ */ r.jsx(V, { icon: /* @__PURE__ */ r.jsx(w, { children: "y" }), data: i, value: t.rightTopPoint.y_data_key, onChange: (d) => c("rightTopPoint.y_data_key", d ?? ""), clearable: !0 })
16005
16009
  ] })
16006
16010
  ] }),
16007
16011
  /* @__PURE__ */ r.jsx(L, { mb: -15, variant: "dashed", label: o("chart.style.label"), labelPosition: "right" }),
16008
16012
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
16009
- /* @__PURE__ */ r.jsx(j, { size: 14, children: o("chart.color.background_color") }),
16013
+ /* @__PURE__ */ r.jsx(w, { size: 14, children: o("chart.color.background_color") }),
16010
16014
  /* @__PURE__ */ r.jsx(Ze, { value: t.itemStyle.color, onChange: (d) => c("itemStyle.color", d) })
16011
16015
  ] }),
16012
16016
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
16013
- /* @__PURE__ */ r.jsx(j, { size: 14, children: o("chart.color.text_color") }),
16017
+ /* @__PURE__ */ r.jsx(w, { size: 14, children: o("chart.color.text_color") }),
16014
16018
  /* @__PURE__ */ r.jsx(Ze, { value: t.label.color, onChange: (d) => c("label.color", d) })
16015
16019
  ] })
16016
16020
  ] });
@@ -16084,9 +16088,9 @@ function mS({
16084
16088
  /* @__PURE__ */ r.jsx(g.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(Ie, { size: 18, color: "#228be6" }) })
16085
16089
  ] }),
16086
16090
  c.map((m, b) => /* @__PURE__ */ r.jsx(g.Panel, { value: b.toString(), children: /* @__PURE__ */ r.jsx(f, { name: `reference_areas.${b}`, control: t, render: ({
16087
- field: w
16091
+ field: j
16088
16092
  }) => /* @__PURE__ */ r.jsxs(k, { children: [
16089
- /* @__PURE__ */ r.jsx(hS, { variableOptions: u, yAxisOptions: p, ...w }),
16093
+ /* @__PURE__ */ r.jsx(hS, { variableOptions: u, yAxisOptions: p, ...j }),
16090
16094
  /* @__PURE__ */ r.jsx(L, { mb: -10, mt: 10, variant: "dashed" }),
16091
16095
  /* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 16 }), color: "red", variant: "light", onClick: () => o(b), children: s("chart.reference_area.delete") })
16092
16096
  ] }) }) }, m.id))
@@ -16133,7 +16137,7 @@ function xS({
16133
16137
  }) => /* @__PURE__ */ r.jsx(kr, { sx: {
16134
16138
  flex: 1
16135
16139
  }, ...c }) }),
16136
- l === "vertical" && /* @__PURE__ */ r.jsx(j, { mt: -10, color: "dimmed", size: 12, children: o("chart.reference_line.orientation.vertical_hint") })
16140
+ l === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: o("chart.reference_line.orientation.vertical_hint") })
16137
16141
  ] }),
16138
16142
  l === "horizontal" && /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${e}.yAxisIndex`, control: t, render: ({
16139
16143
  field: {
@@ -16168,7 +16172,7 @@ function xS({
16168
16172
  ) })
16169
16173
  ] }),
16170
16174
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
16171
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: o("chart.color.label") }),
16175
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: o("chart.color.label") }),
16172
16176
  /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${e}.lineStyle.color`, control: t, render: ({
16173
16177
  field: c
16174
16178
  }) => /* @__PURE__ */ r.jsx(Ze, { ...c }) })
@@ -16287,7 +16291,7 @@ const fS = ({
16287
16291
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: n("common.actions.reset_to_default") }),
16288
16292
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
16289
16293
  /* @__PURE__ */ r.jsx(I, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
16290
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: c, children: n("common.actions.save") })
16294
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: c, children: n("common.actions.save") })
16291
16295
  ] })
16292
16296
  ] })
16293
16297
  ] }) })
@@ -16470,7 +16474,7 @@ const kS = ({
16470
16474
  userSelect: "none"
16471
16475
  }, children: [
16472
16476
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
16473
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
16477
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
16474
16478
  ] }),
16475
16479
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
16476
16480
  tab: {
@@ -16691,7 +16695,7 @@ function AS({
16691
16695
  }, [o]);
16692
16696
  const p = u(), m = C(() => !ge(p, a), [p, a]);
16693
16697
  return d(["dataZoom"]), /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: c(s), children: [
16694
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: m }),
16698
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: m }),
16695
16699
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X Axis", orientation: "vertical", styles: {
16696
16700
  tab: {
16697
16701
  paddingLeft: "6px",
@@ -16971,7 +16975,7 @@ const GS = {
16971
16975
  createConfig() {
16972
16976
  return {
16973
16977
  version: 10,
16974
- config: qe(ia)
16978
+ config: Ne(ia)
16975
16979
  };
16976
16980
  },
16977
16981
  triggers: [od],
@@ -17031,7 +17035,7 @@ function US(t) {
17031
17035
  };
17032
17036
  }
17033
17037
  function YS(t) {
17034
- const e = qe(t), n = ne(e, "color.valueRange");
17038
+ const e = Ne(t), n = ne(e, "color.valueRange");
17035
17039
  return n !== void 0 && vi(e, "color.valueRange", n.map((s) => Number(s))), e;
17036
17040
  }
17037
17041
  class KS extends ke {
@@ -17079,7 +17083,7 @@ const JS = {
17079
17083
  }, ZS = z(({
17080
17084
  context: t
17081
17085
  }) => {
17082
- const e = Pe(), {
17086
+ const e = Fe(), {
17083
17087
  value: n = aa
17084
17088
  } = H(t.instanceData, "config"), {
17085
17089
  variables: s
@@ -17126,7 +17130,7 @@ function e1({
17126
17130
  }, [i]), l(["template", "horizontal_align", "vertical_align"]);
17127
17131
  const u = c(), h = A.useMemo(() => !S.isEqual(u, n), [u, n]);
17128
17132
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(s), children: [
17129
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: h }),
17133
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: h }),
17130
17134
  /* @__PURE__ */ r.jsx(f, { name: "template", control: a, render: ({
17131
17135
  field: p
17132
17136
  }) => /* @__PURE__ */ r.jsx(pr, { label: e("chart.content_template.label"), placeholder: e("chart.content_template.hint"), py: "md", sx: {
@@ -17458,7 +17462,7 @@ const g1 = ({
17458
17462
  userSelect: "none"
17459
17463
  }, children: [
17460
17464
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
17461
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("viz.sunburst_chart.level.hint") })
17465
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("viz.sunburst_chart.level.hint") })
17462
17466
  ] }),
17463
17467
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
17464
17468
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
@@ -17503,7 +17507,7 @@ function b1({
17503
17507
  c(["label_key", "value_key", "group_key", "levels"]);
17504
17508
  const [m, b] = B("Data");
17505
17509
  return /* @__PURE__ */ r.jsx("form", { onSubmit: l(s), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
17506
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
17510
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
17507
17511
  /* @__PURE__ */ r.jsxs(g, { value: m, onTabChange: b, orientation: "vertical", styles: {
17508
17512
  tab: {
17509
17513
  paddingLeft: "6px",
@@ -17665,7 +17669,7 @@ const z1 = {
17665
17669
  createConfig() {
17666
17670
  return {
17667
17671
  version: 5,
17668
- config: qe(oa)
17672
+ config: Ne(oa)
17669
17673
  };
17670
17674
  },
17671
17675
  translation: v1
@@ -17690,7 +17694,7 @@ const cd = ["function text({ value }) {", " // your code goes here", " ret
17690
17694
  cx: e
17691
17695
  }) => {
17692
17696
  const n = S.get(t.column.columnDef.meta, "align", "left");
17693
- return /* @__PURE__ */ r.jsxs(j, { className: e("table-head-cell", {
17697
+ return /* @__PURE__ */ r.jsxs(w, { className: e("table-head-cell", {
17694
17698
  "table-head-cell--sortable": t.column.getCanSort()
17695
17699
  }), onClick: t.column.getToggleSortingHandler(), align: n, sx: {
17696
17700
  justifyContent: ud[n]
@@ -17792,7 +17796,7 @@ function Un(t) {
17792
17796
  });
17793
17797
  return /* @__PURE__ */ r.jsx("div", { className: n.classes.content, style: {
17794
17798
  ...E1(t)
17795
- }, children: /* @__PURE__ */ r.jsx(j, { className: "table-cell-text", onClick: t.tableCellContext.getClickHandler(), children: /* @__PURE__ */ r.jsx("span", { title: t.children, children: t.children }) }) });
17799
+ }, children: /* @__PURE__ */ r.jsx(w, { className: "table-cell-text", onClick: t.tableCellContext.getClickHandler(), children: /* @__PURE__ */ r.jsx("span", { title: t.children, children: t.children }) }) });
17796
17800
  }
17797
17801
  function R1(t) {
17798
17802
  return /* @__PURE__ */ r.jsx(Un, { ...t, children: t.value });
@@ -17956,7 +17960,7 @@ function G1(t) {
17956
17960
  } = hd(t.instance), {
17957
17961
  value: n
17958
17962
  } = H(t.trigger.triggerData, "config");
17959
- return /* @__PURE__ */ r.jsx(j, { children: W1(n, e) });
17963
+ return /* @__PURE__ */ r.jsx(w, { children: W1(n, e) });
17960
17964
  }
17961
17965
  function Ao(t, e, n) {
17962
17966
  return Math.min(Math.max(t, e), n);
@@ -18072,18 +18076,18 @@ function Y1({
18072
18076
  minSize: typeof vt.width == "number" ? vt.width : void 0
18073
18077
  });
18074
18078
  });
18075
- }, [p, m]), [w, T] = B([]), E = ql({
18079
+ }, [p, m]), [j, T] = B([]), E = ql({
18076
18080
  data: t,
18077
18081
  state: {
18078
- sorting: w
18082
+ sorting: j
18079
18083
  },
18080
18084
  onSortingChange: T,
18081
18085
  columns: b,
18082
18086
  getCoreRowModel: Nl(),
18083
18087
  getSortedRowModel: sm()
18084
18088
  }), {
18085
- rows: P
18086
- } = E.getRowModel(), G = A.useRef(null), K = P.length, he = K > 0, Z = he ? n - 22 : n, ee = he ? 22 : 0;
18089
+ rows: $
18090
+ } = E.getRowModel(), W = A.useRef(null), K = $.length, he = K > 0, Z = he ? n - 22 : n, ee = he ? 22 : 0;
18087
18091
  return il("VizTableComponent", {
18088
18092
  queryData: t,
18089
18093
  width: e,
@@ -18095,9 +18099,9 @@ function Y1({
18095
18099
  getCellContext: m,
18096
18100
  tableColumns: b,
18097
18101
  table: E,
18098
- rows: P,
18099
- tableContainerRef: G
18100
- }), /* @__PURE__ */ r.jsxs("div", { ref: G, style: {
18102
+ rows: $,
18103
+ tableContainerRef: W
18104
+ }), /* @__PURE__ */ r.jsxs("div", { ref: W, style: {
18101
18105
  height: n,
18102
18106
  width: e,
18103
18107
  padding: "0 5px"
@@ -18106,11 +18110,11 @@ function Y1({
18106
18110
  }), children: [
18107
18111
  K > 0 && /* @__PURE__ */ r.jsx(M, { className: u.info_bar, sx: {
18108
18112
  height: 22
18109
- }, children: /* @__PURE__ */ r.jsxs(j, { align: "right", pr: 6, size: 14, color: "dimmed", fw: "normal", children: [
18113
+ }, children: /* @__PURE__ */ r.jsxs(w, { align: "right", pr: 6, size: 14, color: "dimmed", fw: "normal", children: [
18110
18114
  "Total: ",
18111
18115
  K
18112
18116
  ] }) }),
18113
- /* @__PURE__ */ r.jsxs(Ve, { sx: {
18117
+ /* @__PURE__ */ r.jsxs(qe, { sx: {
18114
18118
  ...M1,
18115
18119
  maxHeight: Z
18116
18120
  }, ...d, striped: s.striped, children: [
@@ -18119,7 +18123,7 @@ function Y1({
18119
18123
  }, children: E.getHeaderGroups().map((pe) => /* @__PURE__ */ r.jsx("tr", { children: pe.headers.map((Qe) => /* @__PURE__ */ r.jsx("th", { style: {
18120
18124
  width: Qe.getSize()
18121
18125
  }, children: /* @__PURE__ */ r.jsx(T1, { header: Qe, cx: h }) }, Qe.id)) }, pe.id)) }),
18122
- /* @__PURE__ */ r.jsx(q1, { tableContainerRef: G, rows: P })
18126
+ /* @__PURE__ */ r.jsx(q1, { tableContainerRef: W, rows: $ })
18123
18127
  ] })
18124
18128
  ] });
18125
18129
  }
@@ -18141,7 +18145,7 @@ function K1({
18141
18145
  const u = F(o);
18142
18146
  return t[u.queryID];
18143
18147
  }, [t, o]);
18144
- return !Array.isArray(d) || d.length === 0 ? /* @__PURE__ */ r.jsx(j, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ r.jsx(Y1, { queryData: d, width: e, height: n, conf: s, context: i, instance: a });
18148
+ return !Array.isArray(d) || d.length === 0 ? /* @__PURE__ */ r.jsx(w, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ r.jsx(Y1, { queryData: d, width: e, height: n, conf: s, context: i, instance: a });
18145
18149
  }
18146
18150
  function J1({
18147
18151
  context: t,
@@ -18153,7 +18157,7 @@ function J1({
18153
18157
  } = t.viewport, {
18154
18158
  value: a
18155
18159
  } = H(t.instanceData, "config");
18156
- return a ? a.id_field ? /* @__PURE__ */ r.jsx(K1, { data: n, width: i, height: s, conf: a, context: t, instance: e }) : /* @__PURE__ */ r.jsx(j, { color: "red", align: "center", children: "ID Field is not set, can't render a table without it" }) : null;
18160
+ return a ? a.id_field ? /* @__PURE__ */ r.jsx(K1, { data: n, width: i, height: s, conf: a, context: t, instance: e }) : /* @__PURE__ */ r.jsx(w, { color: "red", align: "center", children: "ID Field is not set, can't render a table without it" }) : null;
18157
18161
  }
18158
18162
  const X1 = [{
18159
18163
  from: 0,
@@ -18180,15 +18184,15 @@ const tk = se((t, e) => {
18180
18184
  t: n
18181
18185
  } = _(), {
18182
18186
  colorManager: s
18183
- } = Ht(Pt), [i, a] = B(pd(t.value)), [o, l] = B(Z1(s, t.value)), c = Za(o), [d, u] = B(ek(s, t.value)), h = Za(d), p = (w) => {
18184
- var T, E, P;
18185
- a(w || "none"), w === "static" ? (T = t.onChange) == null || T.call(t, c.current) : w === "none" || !w ? (E = t.onChange) == null || E.call(t, "none") : (P = t.onChange) == null || P.call(t, h.current);
18186
- }, m = (w) => {
18187
+ } = Ht(Pt), [i, a] = B(pd(t.value)), [o, l] = B(Z1(s, t.value)), c = Za(o), [d, u] = B(ek(s, t.value)), h = Za(d), p = (j) => {
18188
+ var T, E, $;
18189
+ a(j || "none"), j === "static" ? (T = t.onChange) == null || T.call(t, c.current) : j === "none" || !j ? (E = t.onChange) == null || E.call(t, "none") : ($ = t.onChange) == null || $.call(t, h.current);
18190
+ }, m = (j) => {
18187
18191
  var T;
18188
- l(w), (T = t.onChange) == null || T.call(t, w);
18189
- }, b = (w) => {
18192
+ l(j), (T = t.onChange) == null || T.call(t, j);
18193
+ }, b = (j) => {
18190
18194
  var T;
18191
- u(w), (T = t.onChange) == null || T.call(t, w);
18195
+ u(j), (T = t.onChange) == null || T.call(t, j);
18192
18196
  };
18193
18197
  return /* @__PURE__ */ r.jsxs(k, { align: "stretch", children: [
18194
18198
  /* @__PURE__ */ r.jsx(qf, { label: n("viz.table.column.cell_background"), value: i || "none", onChange: p }),
@@ -18242,12 +18246,12 @@ const tk = se((t, e) => {
18242
18246
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: s("common.actions.reset_to_default") }),
18243
18247
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
18244
18248
  /* @__PURE__ */ r.jsx(I, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
18245
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: d, children: s("common.actions.save") })
18249
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: d, children: s("common.actions.save") })
18246
18250
  ] })
18247
18251
  ] })
18248
18252
  ] }) })
18249
18253
  ] });
18250
- }), Js = () => /* @__PURE__ */ r.jsx(j, { color: "dimmed", size: 12, children: "px" }), sk = ({
18254
+ }), Js = () => /* @__PURE__ */ r.jsx(w, { color: "dimmed", size: 12, children: "px" }), sk = ({
18251
18255
  control: t,
18252
18256
  index: e,
18253
18257
  watch: n,
@@ -18327,7 +18331,7 @@ const tk = se((t, e) => {
18327
18331
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
18328
18332
  /* @__PURE__ */ r.jsx(f, { name: "use_raw_columns", control: t, render: ({
18329
18333
  field: d
18330
- }) => /* @__PURE__ */ r.jsx(Oe, { mt: 20, mb: 20, label: n("viz.table.column.use_original_data_columns"), checked: d.value, onChange: (u) => d.onChange(u.currentTarget.checked) }) }),
18334
+ }) => /* @__PURE__ */ r.jsx(Ve, { mt: 20, mb: 20, label: n("viz.table.column.use_original_data_columns"), checked: d.value, onChange: (u) => d.onChange(u.currentTarget.checked) }) }),
18331
18335
  !c && /* @__PURE__ */ r.jsx(k, { children: /* @__PURE__ */ r.jsxs(g, { defaultValue: "0", styles: {
18332
18336
  tab: {
18333
18337
  paddingTop: "0px",
@@ -18382,10 +18386,10 @@ function ak({
18382
18386
  /* @__PURE__ */ r.jsxs(y, { position: "apart", grow: !0, children: [
18383
18387
  /* @__PURE__ */ r.jsx(f, { name: "striped", control: t, render: ({
18384
18388
  field: s
18385
- }) => /* @__PURE__ */ r.jsx(Oe, { label: n("viz.table.style.striped"), checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
18389
+ }) => /* @__PURE__ */ r.jsx(Ve, { label: n("viz.table.style.striped"), checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) }),
18386
18390
  /* @__PURE__ */ r.jsx(f, { name: "highlightOnHover", control: t, render: ({
18387
18391
  field: s
18388
- }) => /* @__PURE__ */ r.jsx(Oe, { label: n("viz.table.style.highlight_on_hover"), checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) })
18392
+ }) => /* @__PURE__ */ r.jsx(Ve, { label: n("viz.table.style.highlight_on_hover"), checked: s.value, onChange: (i) => s.onChange(i.currentTarget.checked) }) })
18389
18393
  ] })
18390
18394
  ] });
18391
18395
  }
@@ -18430,7 +18434,7 @@ function lk({
18430
18434
  }, [a]);
18431
18435
  const h = d(), p = C(() => !ge(h, i), [h, i]);
18432
18436
  return c(["id_field"]), /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
18433
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
18437
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
18434
18438
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "Columns", orientation: "vertical", styles: {
18435
18439
  tab: {
18436
18440
  paddingLeft: "6px",
@@ -18634,7 +18638,7 @@ const mi = {
18634
18638
  createConfig() {
18635
18639
  return {
18636
18640
  version: 5,
18637
- config: qe(dd)
18641
+ config: Ne(dd)
18638
18642
  };
18639
18643
  },
18640
18644
  displayName: "viz.table.viz_name",
@@ -18654,7 +18658,7 @@ const mi = {
18654
18658
  }, gk = z(({
18655
18659
  context: t
18656
18660
  }) => {
18657
- const e = Pe(), {
18661
+ const e = Fe(), {
18658
18662
  value: n = ca
18659
18663
  } = H(t.instanceData, "config"), {
18660
18664
  variables: s
@@ -18672,7 +18676,7 @@ const mi = {
18672
18676
  filters: e.payloadForSQL.filters,
18673
18677
  context: e.payloadForSQL.context
18674
18678
  }), [a, i, d, e.payloadForSQL]);
18675
- return /* @__PURE__ */ r.jsx(j, { align: o, weight: c, sx: {
18679
+ return /* @__PURE__ */ r.jsx(w, { align: o, weight: c, sx: {
18676
18680
  fontSize: l
18677
18681
  }, children: u });
18678
18682
  }), Vr = [{
@@ -18702,7 +18706,7 @@ function fk({
18702
18706
  const l = Vr.find((c) => c.value === i);
18703
18707
  l && n(l.label);
18704
18708
  }, [i]), /* @__PURE__ */ r.jsxs(k, { spacing: 0, mt: "sm", mb: "lg", children: [
18705
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: t }),
18709
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: t }),
18706
18710
  /* @__PURE__ */ r.jsx(M, { px: "1.5em", children: /* @__PURE__ */ r.jsx(oh, { label: null, marks: Vr, value: i, onChange: a, step: 25, ref: s }) })
18707
18711
  ] });
18708
18712
  }
@@ -18748,7 +18752,7 @@ const xd = A.forwardRef(fk), bk = ({
18748
18752
  /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Tn, { size: 20 }), children: s("common.actions.reset_to_default") }),
18749
18753
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
18750
18754
  /* @__PURE__ */ r.jsx(I, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
18751
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), onClick: d, children: s("common.actions.save_changes") })
18755
+ /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), onClick: d, children: s("common.actions.save_changes") })
18752
18756
  ] })
18753
18757
  ] })
18754
18758
  ] }) })
@@ -18766,13 +18770,13 @@ function _k({
18766
18770
  const {
18767
18771
  func_content: m,
18768
18772
  horizontal_align: b,
18769
- font_size: w,
18773
+ font_size: j,
18770
18774
  font_weight: T
18771
18775
  } = i;
18772
18776
  return {
18773
18777
  func_content: m,
18774
18778
  horizontal_align: b,
18775
- font_size: w,
18779
+ font_size: j,
18776
18780
  font_weight: T
18777
18781
  };
18778
18782
  }, [i]);
@@ -18793,7 +18797,7 @@ function _k({
18793
18797
  }, [a]), c(["func_content", "horizontal_align", "font_size", "font_weight"]);
18794
18798
  const h = d(), p = A.useMemo(() => !S.isEqual(h, i), [h, i]);
18795
18799
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
18796
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
18800
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
18797
18801
  /* @__PURE__ */ r.jsxs(k, { spacing: 10, children: [
18798
18802
  /* @__PURE__ */ r.jsx(f, { name: "func_content", control: o, render: ({
18799
18803
  field: m
@@ -18863,7 +18867,7 @@ const kk = {
18863
18867
  createConfig() {
18864
18868
  return {
18865
18869
  version: 1,
18866
- config: qe(ca)
18870
+ config: Ne(ca)
18867
18871
  };
18868
18872
  },
18869
18873
  translation: wk
@@ -19055,7 +19059,7 @@ const $k = {
19055
19059
  createConfig() {
19056
19060
  return {
19057
19061
  version: 1,
19058
- config: qe(da)
19062
+ config: Ne(da)
19059
19063
  };
19060
19064
  },
19061
19065
  translation: Ek
@@ -19064,7 +19068,7 @@ function Pk(t, e, n) {
19064
19068
  if (!t)
19065
19069
  return n[0];
19066
19070
  try {
19067
- return [e, $(e).add(1, "year").subtract(1, "day").valueOf()];
19071
+ return [e, P(e).add(1, "year").subtract(1, "day").valueOf()];
19068
19072
  } catch (s) {
19069
19073
  return console.error(s), n[0];
19070
19074
  }
@@ -19228,13 +19232,13 @@ const Qk = {
19228
19232
  grid: {
19229
19233
  containLabel: !0
19230
19234
  }
19231
- }, Hk = (t) => $(t).get("year");
19235
+ }, Hk = (t) => P(t).get("year");
19232
19236
  function Uk(t, e) {
19233
- const n = F(t.calendar.data_key), s = e[n.queryID], i = S.groupBy(s, (d) => Hk(d[n.columnKey])), a = Object.keys(i), o = s.map((d) => $(d[n.columnKey]).valueOf()), l = S.min(o), c = S.max(o);
19237
+ const n = F(t.calendar.data_key), s = e[n.queryID], i = S.groupBy(s, (d) => Hk(d[n.columnKey])), a = Object.keys(i), o = s.map((d) => P(d[n.columnKey]).valueOf()), l = S.min(o), c = S.max(o);
19234
19238
  return {
19235
19239
  minDate: l ?? 0,
19236
19240
  maxDate: c ?? 0,
19237
- dateSpan: $(c).diff(l, "day"),
19241
+ dateSpan: P(c).diff(l, "day"),
19238
19242
  dataByYear: i,
19239
19243
  years: a
19240
19244
  };
@@ -19264,7 +19268,7 @@ function Jk(t) {
19264
19268
  const {
19265
19269
  t: e
19266
19270
  } = _();
19267
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.calendar_heatmap.click_heatmap.heatblock.label") });
19271
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.calendar_heatmap.click_heatmap.heatblock.label") });
19268
19272
  }
19269
19273
  const gd = {
19270
19274
  id: "builtin:echarts:click-heatmap:heat-block",
@@ -19338,8 +19342,8 @@ function Zk({
19338
19342
  const [p, m] = h.value, b = S.get(o, p, {
19339
19343
  error: "rowData is not found"
19340
19344
  });
19341
- l.forEach((w) => {
19342
- i.runInteraction(w.id, {
19345
+ l.forEach((j) => {
19346
+ i.runInteraction(j.id, {
19343
19347
  ...h,
19344
19348
  rowData: b
19345
19349
  });
@@ -19462,7 +19466,7 @@ const nC = ({
19462
19466
  userSelect: "none"
19463
19467
  }, children: [
19464
19468
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
19465
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
19469
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
19466
19470
  ] }),
19467
19471
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
19468
19472
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
@@ -19545,7 +19549,7 @@ function oC({
19545
19549
  }, [a]);
19546
19550
  const h = d(), p = C(() => !ge(h, i), [h, i]);
19547
19551
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
19548
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
19552
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
19549
19553
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "Calendar", orientation: "vertical", styles: {
19550
19554
  tab: {
19551
19555
  paddingLeft: "6px",
@@ -19903,8 +19907,8 @@ function CC({
19903
19907
  invisible: u,
19904
19908
  id: h,
19905
19909
  ...p
19906
- }, m, b, w, T, E) {
19907
- const P = {
19910
+ }, m, b, j, T, E) {
19911
+ const $ = {
19908
19912
  label: {
19909
19913
  show: !!s,
19910
19914
  position: s,
@@ -19925,22 +19929,22 @@ function CC({
19925
19929
  ...p
19926
19930
  };
19927
19931
  if (!a || a === t.data_key)
19928
- return P.data = SC({
19932
+ return $.data = SC({
19929
19933
  dataTemplate: m,
19930
- data: w,
19934
+ data: j,
19931
19935
  aggregation_on_value: o,
19932
19936
  name_data_key: t.data_key,
19933
19937
  value_data_key: e,
19934
19938
  valueTypedXAxis: b
19935
- }), P;
19936
- const G = kC({
19939
+ }), $;
19940
+ const W = kC({
19937
19941
  group_by_key: a,
19938
- data: w,
19942
+ data: j,
19939
19943
  name_data_key: t.data_key,
19940
19944
  value_data_key: e
19941
19945
  });
19942
- return Object.entries(G).map(([K, he]) => {
19943
- const Z = qe(P);
19946
+ return Object.entries(W).map(([K, he]) => {
19947
+ const Z = Ne($);
19944
19948
  return Z.name = K, Z.color = void 0, Z.data = he, Z;
19945
19949
  });
19946
19950
  }
@@ -20173,7 +20177,7 @@ function PC({
20173
20177
  }) => /* @__PURE__ */ r.jsx(kr, { sx: {
20174
20178
  flex: 1
20175
20179
  }, ...c }) }),
20176
- l === "vertical" && /* @__PURE__ */ r.jsx(j, { mt: -10, color: "dimmed", size: 12, children: o("chart.reference_line.orientation.vertical_hint") })
20180
+ l === "vertical" && /* @__PURE__ */ r.jsx(w, { mt: -10, color: "dimmed", size: 12, children: o("chart.reference_line.orientation.vertical_hint") })
20177
20181
  ] }),
20178
20182
  l === "horizontal" && /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${e}.xAxisIndex`, control: t, render: ({
20179
20183
  field: c
@@ -20201,7 +20205,7 @@ function PC({
20201
20205
  ) })
20202
20206
  ] }),
20203
20207
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
20204
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: o("chart.color.label") }),
20208
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: o("chart.color.label") }),
20205
20209
  /* @__PURE__ */ r.jsx(f, { name: `reference_lines.${e}.lineStyle.color`, control: t, render: ({
20206
20210
  field: c
20207
20211
  }) => /* @__PURE__ */ r.jsx(Ze, { ...c }) })
@@ -20369,7 +20373,7 @@ function qC({
20369
20373
  l && o.onChange(l);
20370
20374
  } }) }),
20371
20375
  /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
20372
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: a("chart.color.label") }),
20376
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: a("chart.color.label") }),
20373
20377
  /* @__PURE__ */ r.jsx(f, { name: `series.${e}.color`, control: t, render: ({
20374
20378
  field: o
20375
20379
  }) => /* @__PURE__ */ r.jsx(Ze, { ...o }) })
@@ -20584,7 +20588,7 @@ function HC({
20584
20588
  }, [a]), c([]);
20585
20589
  const h = d(), p = C(() => !S.isEqual(h, a), [h, a]);
20586
20590
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: l(s), children: [
20587
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
20591
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
20588
20592
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "Series", orientation: "vertical", styles: {
20589
20593
  tab: {
20590
20594
  paddingLeft: "6px",
@@ -20945,8 +20949,8 @@ function iz(t, e, n, s) {
20945
20949
  const h = S.countBy(n[u], (m) => m.level.diff), p = S.sum(Object.values(h));
20946
20950
  Object.entries(h).forEach(([m, b]) => {
20947
20951
  i[m] || (i[m] = []);
20948
- const w = b / p;
20949
- i[m].push([u, w, b, p]);
20952
+ const j = b / p;
20953
+ i[m].push([u, j, b, p]);
20950
20954
  });
20951
20955
  });
20952
20956
  const a = Object.entries(i).map(([u]) => Number(u)).sort((u, h) => u - h), o = Math.max(...a), l = Math.min(...a), c = zn([o, 0, l], ["#D15A40", "#FFF", "#418AAF"]);
@@ -20968,7 +20972,7 @@ function iz(t, e, n, s) {
20968
20972
  const {
20969
20973
  x: m,
20970
20974
  percentage: b,
20971
- count: w,
20975
+ count: j,
20972
20976
  sum: T
20973
20977
  } = sz(p);
20974
20978
  return `
@@ -20998,7 +21002,7 @@ function iz(t, e, n, s) {
20998
21002
  </tr>
20999
21003
  <tr>
21000
21004
  <th style="text-align: right;">数量</th>
21001
- <td style="text-align: left; padding: 0 1em;">${w}</td>
21005
+ <td style="text-align: left; padding: 0 1em;">${j}</td>
21002
21006
  </tr>
21003
21007
  <tr>
21004
21008
  <th style="text-align: right;">总数</th>
@@ -21316,7 +21320,7 @@ const fz = {
21316
21320
  }), o;
21317
21321
  }, [s, i]);
21318
21322
  return /* @__PURE__ */ r.jsxs(y, { spacing: 1, children: [
21319
- /* @__PURE__ */ r.jsx(j, { size: 12, color: "dimmed", sx: {
21323
+ /* @__PURE__ */ r.jsx(w, { size: 12, color: "dimmed", sx: {
21320
21324
  cursor: "default",
21321
21325
  userSelect: "none"
21322
21326
  }, children: "基线指标" }),
@@ -21333,7 +21337,7 @@ const fz = {
21333
21337
  function _z() {
21334
21338
  return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
21335
21339
  /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(In, { size: 14 }), children: "指标说明" }) }),
21336
- /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Ve, { fontSize: 14, sx: yz, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
21340
+ /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(qe, { fontSize: 14, sx: yz, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
21337
21341
  /* @__PURE__ */ r.jsxs("tr", { children: [
21338
21342
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
21339
21343
  /* @__PURE__ */ r.jsx("td", { children: "使用斐波那契数列(1,2,3,5,8,13)估算故事点,每个数位为一个档位,计算issue实际故事点与估算故事点的档位偏差,即为估算偏差。如估算故事点为5,实际故事点为8,则估算偏差为-1。" })
@@ -21471,7 +21475,7 @@ const kz = ({
21471
21475
  userSelect: "none"
21472
21476
  }, children: [
21473
21477
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
21474
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: "设置可以展示在基线图的指标,例如代码当量" })
21478
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: "设置可以展示在基线图的指标,例如代码当量" })
21475
21479
  ] }),
21476
21480
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
21477
21481
  /* @__PURE__ */ r.jsxs(g, { value: d, onTabChange: (h) => u(h), styles: {
@@ -21542,7 +21546,7 @@ function Tz({
21542
21546
  }, [s]), o([]);
21543
21547
  const d = l(), u = C(() => !S.isEqual(d, s), [d, s]);
21544
21548
  return /* @__PURE__ */ r.jsx(k, { spacing: "xs", children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(n), children: [
21545
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: u }),
21549
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: u }),
21546
21550
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X Axis", orientation: "vertical", styles: {
21547
21551
  tab: {
21548
21552
  paddingLeft: "6px",
@@ -21675,10 +21679,10 @@ function Rz() {
21675
21679
  const Fo = ({
21676
21680
  postfix: t
21677
21681
  }) => t ? /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
21678
- /* @__PURE__ */ r.jsx(j, { size: "12px", color: "#818388", sx: {
21682
+ /* @__PURE__ */ r.jsx(w, { size: "12px", color: "#818388", sx: {
21679
21683
  lineHeight: 1
21680
21684
  }, children: "/" }),
21681
- /* @__PURE__ */ r.jsx(j, { size: "12px", color: "#818388", sx: {
21685
+ /* @__PURE__ */ r.jsx(w, { size: "12px", color: "#818388", sx: {
21682
21686
  lineHeight: 1
21683
21687
  }, children: t })
21684
21688
  ] }) : null, $z = z(({
@@ -21690,7 +21694,7 @@ const Fo = ({
21690
21694
  data_keys: s,
21691
21695
  formatter: i,
21692
21696
  postfix: a
21693
- } = t, o = Pe(), l = C(() => {
21697
+ } = t, o = Fe(), l = C(() => {
21694
21698
  if (a.type === "text" && a.value)
21695
21699
  return a.value;
21696
21700
  if (a.type === "filter-option-label" && a.value) {
@@ -21701,18 +21705,18 @@ const Fo = ({
21701
21705
  }, [a, o]);
21702
21706
  return /* @__PURE__ */ r.jsxs(k, { spacing: 18, children: [
21703
21707
  /* @__PURE__ */ r.jsxs(k, { spacing: 12, children: [
21704
- /* @__PURE__ */ r.jsx(j, { size: "14px", color: "#818388", children: n.value }),
21708
+ /* @__PURE__ */ r.jsx(w, { size: "14px", color: "#818388", children: n.value }),
21705
21709
  /* @__PURE__ */ r.jsxs(y, { spacing: "2px", align: "baseline", children: [
21706
- /* @__PURE__ */ r.jsx(j, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
21710
+ /* @__PURE__ */ r.jsx(w, { size: "24px", fw: "bold", color: "#3D3E45", sx: {
21707
21711
  lineHeight: 1
21708
21712
  }, children: re(e[s.value], i) }),
21709
21713
  /* @__PURE__ */ r.jsx(Fo, { postfix: l })
21710
21714
  ] })
21711
21715
  ] }),
21712
21716
  /* @__PURE__ */ r.jsxs(k, { spacing: 12, children: [
21713
- /* @__PURE__ */ r.jsx(j, { size: "14px", color: "#818388", children: n.basis }),
21717
+ /* @__PURE__ */ r.jsx(w, { size: "14px", color: "#818388", children: n.basis }),
21714
21718
  /* @__PURE__ */ r.jsxs(y, { spacing: "2px", align: "baseline", children: [
21715
- /* @__PURE__ */ r.jsx(j, { size: "12px", color: "#3D3E45", sx: {
21719
+ /* @__PURE__ */ r.jsx(w, { size: "12px", color: "#3D3E45", sx: {
21716
21720
  lineHeight: 1
21717
21721
  }, children: re(e[s.basis], i) }),
21718
21722
  /* @__PURE__ */ r.jsx(Fo, { postfix: l })
@@ -21839,20 +21843,20 @@ const Vz = ({
21839
21843
  } = _e({
21840
21844
  control: t,
21841
21845
  name: "metrics"
21842
- }), l = e("metrics"), c = i.map((w, T) => ({
21843
- ...w,
21846
+ }), l = e("metrics"), c = i.map((j, T) => ({
21847
+ ...j,
21844
21848
  ...l[T]
21845
21849
  })), d = () => {
21846
21850
  a(Rz());
21847
- }, u = C(() => n.map((w) => ({
21848
- label: w.name,
21849
- value: w.name
21851
+ }, u = C(() => n.map((j) => ({
21852
+ label: j.name,
21853
+ value: j.name
21850
21854
  })), [n]), h = S.get(c, "0.id", null), [p, m] = B(h);
21851
21855
  O(() => {
21852
- m((w) => w || h);
21856
+ m((j) => j || h);
21853
21857
  }, [h]);
21854
- const b = (w) => {
21855
- o(w);
21858
+ const b = (j) => {
21859
+ o(j);
21856
21860
  const T = S.get(c, "0.id", null);
21857
21861
  m(T);
21858
21862
  };
@@ -21868,10 +21872,10 @@ const Vz = ({
21868
21872
  }
21869
21873
  }, children: [
21870
21874
  /* @__PURE__ */ r.jsxs(g.List, { children: [
21871
- c.map((w, T) => /* @__PURE__ */ r.jsx(g.Tab, { value: w.id, children: w.names.value ? w.names.value : T + 1 }, w.id)),
21875
+ c.map((j, T) => /* @__PURE__ */ r.jsx(g.Tab, { value: j.id, children: j.names.value ? j.names.value : T + 1 }, j.id)),
21872
21876
  /* @__PURE__ */ r.jsx(g.Tab, { onClick: d, value: "add", children: /* @__PURE__ */ r.jsx(ut, { size: 18, color: "#228be6" }) })
21873
21877
  ] }),
21874
- c.map((w, T) => /* @__PURE__ */ r.jsx(g.Panel, { value: w.id, children: /* @__PURE__ */ r.jsx(Oz, { control: t, index: T, remove: b, variableOptions: u, watch: e }) }, w.id))
21878
+ c.map((j, T) => /* @__PURE__ */ r.jsx(g.Panel, { value: j.id, children: /* @__PURE__ */ r.jsx(Oz, { control: t, index: T, remove: b, variableOptions: u, watch: e }) }, j.id))
21875
21879
  ] })
21876
21880
  ] });
21877
21881
  };
@@ -21920,7 +21924,7 @@ function Nz({
21920
21924
  }, [i]);
21921
21925
  const u = c(), h = C(() => !ge(u, i), [u, i]);
21922
21926
  return /* @__PURE__ */ r.jsx("form", { onSubmit: o(n), children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", children: [
21923
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: h }),
21927
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: h }),
21924
21928
  /* @__PURE__ */ r.jsx(qz, { control: a, watch: l }),
21925
21929
  /* @__PURE__ */ r.jsx(Vz, { control: a, watch: l, variables: s })
21926
21930
  ] }) });
@@ -22100,7 +22104,7 @@ function Yz({
22100
22104
  /* @__PURE__ */ r.jsxs(y, { grow: !0, noWrap: !0, children: [
22101
22105
  /* @__PURE__ */ r.jsx(f, { name: "heat_block.label.show", control: t, render: ({
22102
22106
  field: i
22103
- }) => /* @__PURE__ */ r.jsx(Oe, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked), sx: {
22107
+ }) => /* @__PURE__ */ r.jsx(Ve, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (a) => i.onChange(a.currentTarget.checked), sx: {
22104
22108
  flexGrow: 1
22105
22109
  } }) }),
22106
22110
  /* @__PURE__ */ r.jsx(f, { name: "heat_block.label.fontSize", control: t, render: ({
@@ -22168,7 +22172,7 @@ const Kz = ({
22168
22172
  userSelect: "none"
22169
22173
  }, children: [
22170
22174
  /* @__PURE__ */ r.jsx(Kt, { size: 14, color: "#888" }),
22171
- /* @__PURE__ */ r.jsx(j, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
22175
+ /* @__PURE__ */ r.jsx(w, { size: 14, color: "#888", children: n("chart.tooltip.additional_metrics.description") })
22172
22176
  ] }),
22173
22177
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
22174
22178
  /* @__PURE__ */ r.jsxs(g, { value: u, onTabChange: (p) => h(p), styles: {
@@ -22304,7 +22308,7 @@ function tT({
22304
22308
  }, children: /* @__PURE__ */ r.jsxs(k, { spacing: "xs", sx: {
22305
22309
  height: "100%"
22306
22310
  }, children: [
22307
- /* @__PURE__ */ r.jsx(Fe, { canSubmit: p }),
22311
+ /* @__PURE__ */ r.jsx(Oe, { canSubmit: p }),
22308
22312
  /* @__PURE__ */ r.jsxs(g, { defaultValue: "X Axis", orientation: "vertical", styles: {
22309
22313
  root: {
22310
22314
  // height: '100%',
@@ -22339,7 +22343,7 @@ function rT(t) {
22339
22343
  const {
22340
22344
  t: e
22341
22345
  } = _();
22342
- return /* @__PURE__ */ r.jsx(j, { children: e("viz.merico_heatmap.click_heatmap.heatblock.label") });
22346
+ return /* @__PURE__ */ r.jsx(w, { children: e("viz.merico_heatmap.click_heatmap.heatblock.label") });
22343
22347
  }
22344
22348
  const bd = {
22345
22349
  id: "builtin:echarts:click-heatmap:heat-block",
@@ -22466,10 +22470,10 @@ function cT({
22466
22470
  value: ""
22467
22471
  }
22468
22472
  }, m = [u, h, p], b = s[`${l}---${c}`];
22469
- return b && t.tooltip.metrics.forEach((w) => {
22470
- const T = F(w.data_key);
22473
+ return b && t.tooltip.metrics.forEach((j) => {
22474
+ const T = F(j.data_key);
22471
22475
  m.push({
22472
- label: w.name,
22476
+ label: j.name,
22473
22477
  value: lT(S.get(b, T.columnKey, "")),
22474
22478
  style: {
22475
22479
  label: "",
@@ -22647,8 +22651,8 @@ function xT({
22647
22651
  const [p, m] = h.value, b = S.get(o, `${p}---${m}`, {
22648
22652
  error: "rowData is not found"
22649
22653
  });
22650
- l.forEach((w) => {
22651
- i.runInteraction(w.id, {
22654
+ l.forEach((j) => {
22655
+ i.runInteraction(j.id, {
22652
22656
  ...h,
22653
22657
  rowData: b
22654
22658
  });
@@ -22847,7 +22851,7 @@ const ST = ({
22847
22851
  value: a,
22848
22852
  onChange: o
22849
22853
  }) => /* @__PURE__ */ r.jsxs(M, { children: [
22850
- /* @__PURE__ */ r.jsx(j, { children: " " }),
22854
+ /* @__PURE__ */ r.jsx(w, { children: " " }),
22851
22855
  /* @__PURE__ */ r.jsx(X, { label: /* @__PURE__ */ r.jsxs(y, { noWrap: !0, position: "apart", align: "middle", spacing: 6, children: [
22852
22856
  /* @__PURE__ */ r.jsx(M, { sx: {
22853
22857
  flexGrow: 1
@@ -22872,7 +22876,7 @@ const ST = ({
22872
22876
  return o;
22873
22877
  }, [o, l]), u = C(() => {
22874
22878
  if (o && !l && s > 0)
22875
- return $(o).add(s - 1, "days").toDate();
22879
+ return P(o).add(s - 1, "days").toDate();
22876
22880
  }, [o, l, s]), h = (p) => {
22877
22881
  const [m, b] = p;
22878
22882
  e(p), m && b && n();
@@ -22884,7 +22888,7 @@ const ST = ({
22884
22888
  }) => {
22885
22889
  const {
22886
22890
  t: n
22887
- } = _(), s = C(() => $(e).diff($(t), "days") + 1, [t, e]);
22891
+ } = _(), s = C(() => P(e).diff(P(t), "days") + 1, [t, e]);
22888
22892
  if (Number.isNaN(s))
22889
22893
  return /* @__PURE__ */ r.jsx("span", { style: {
22890
22894
  userSelect: "none",
@@ -22913,7 +22917,7 @@ const ST = ({
22913
22917
  group: "last",
22914
22918
  getRange: () => {
22915
22919
  const t = Date.now();
22916
- return [$(t).subtract(1, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
22920
+ return [P(t).subtract(1, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
22917
22921
  }
22918
22922
  }, {
22919
22923
  key: "w",
@@ -22921,7 +22925,7 @@ const ST = ({
22921
22925
  group: "last",
22922
22926
  getRange: () => {
22923
22927
  const t = Date.now();
22924
- return [$(t).subtract(1, "week").startOf("week").toDate(), $(t).subtract(1, "week").endOf("week").toDate()];
22928
+ return [P(t).subtract(1, "week").startOf("week").toDate(), P(t).subtract(1, "week").endOf("week").toDate()];
22925
22929
  }
22926
22930
  }, {
22927
22931
  key: "m",
@@ -22929,7 +22933,7 @@ const ST = ({
22929
22933
  group: "last",
22930
22934
  getRange: () => {
22931
22935
  const t = Date.now();
22932
- return [$(t).subtract(1, "month").startOf("month").toDate(), $(t).subtract(1, "month").endOf("month").toDate()];
22936
+ return [P(t).subtract(1, "month").startOf("month").toDate(), P(t).subtract(1, "month").endOf("month").toDate()];
22933
22937
  }
22934
22938
  }, {
22935
22939
  key: "m2",
@@ -22937,7 +22941,7 @@ const ST = ({
22937
22941
  group: "last",
22938
22942
  getRange: () => {
22939
22943
  const t = Date.now();
22940
- return [$(t).subtract(2, "month").startOf("month").toDate(), $(t).subtract(1, "month").endOf("month").toDate()];
22944
+ return [P(t).subtract(2, "month").startOf("month").toDate(), P(t).subtract(1, "month").endOf("month").toDate()];
22941
22945
  }
22942
22946
  }, {
22943
22947
  key: "m3",
@@ -22945,7 +22949,7 @@ const ST = ({
22945
22949
  group: "last",
22946
22950
  getRange: () => {
22947
22951
  const t = Date.now();
22948
- return [$(t).subtract(3, "month").startOf("month").toDate(), $(t).subtract(1, "month").endOf("month").toDate()];
22952
+ return [P(t).subtract(3, "month").startOf("month").toDate(), P(t).subtract(1, "month").endOf("month").toDate()];
22949
22953
  }
22950
22954
  }, {
22951
22955
  key: "y",
@@ -22953,7 +22957,7 @@ const ST = ({
22953
22957
  group: "last",
22954
22958
  getRange: () => {
22955
22959
  const t = Date.now();
22956
- return [$(t).subtract(1, "year").startOf("year").toDate(), $(t).subtract(1, "year").endOf("year").toDate()];
22960
+ return [P(t).subtract(1, "year").startOf("year").toDate(), P(t).subtract(1, "year").endOf("year").toDate()];
22957
22961
  }
22958
22962
  }, {
22959
22963
  key: "d7",
@@ -22961,7 +22965,7 @@ const ST = ({
22961
22965
  group: "recent",
22962
22966
  getRange: () => {
22963
22967
  const t = Date.now();
22964
- return [$(t).subtract(7, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
22968
+ return [P(t).subtract(7, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
22965
22969
  }
22966
22970
  }, {
22967
22971
  key: "d30",
@@ -22969,7 +22973,7 @@ const ST = ({
22969
22973
  group: "recent",
22970
22974
  getRange: () => {
22971
22975
  const t = Date.now();
22972
- return [$(t).subtract(30, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
22976
+ return [P(t).subtract(30, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
22973
22977
  }
22974
22978
  }, {
22975
22979
  key: "d60",
@@ -22977,7 +22981,7 @@ const ST = ({
22977
22981
  group: "recent",
22978
22982
  getRange: () => {
22979
22983
  const t = Date.now();
22980
- return [$(t).subtract(60, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
22984
+ return [P(t).subtract(60, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
22981
22985
  }
22982
22986
  }, {
22983
22987
  key: "d90",
@@ -22985,7 +22989,7 @@ const ST = ({
22985
22989
  group: "recent",
22986
22990
  getRange: () => {
22987
22991
  const t = Date.now();
22988
- return [$(t).subtract(90, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
22992
+ return [P(t).subtract(90, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
22989
22993
  }
22990
22994
  }, {
22991
22995
  key: "d180",
@@ -22993,7 +22997,7 @@ const ST = ({
22993
22997
  group: "recent",
22994
22998
  getRange: () => {
22995
22999
  const t = Date.now();
22996
- return [$(t).subtract(180, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
23000
+ return [P(t).subtract(180, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
22997
23001
  }
22998
23002
  }, {
22999
23003
  key: "d365",
@@ -23001,7 +23005,7 @@ const ST = ({
23001
23005
  group: "recent",
23002
23006
  getRange: () => {
23003
23007
  const t = Date.now();
23004
- return [$(t).subtract(365, "day").startOf("day").toDate(), $(t).subtract(1, "day").endOf("day").toDate()];
23008
+ return [P(t).subtract(365, "day").startOf("day").toDate(), P(t).subtract(1, "day").endOf("day").toDate()];
23005
23009
  }
23006
23010
  }, {
23007
23011
  key: "d",
@@ -23009,7 +23013,7 @@ const ST = ({
23009
23013
  group: "this",
23010
23014
  getRange: () => {
23011
23015
  const t = Date.now();
23012
- return [$(t).startOf("day").toDate(), $(t).endOf("day").toDate()];
23016
+ return [P(t).startOf("day").toDate(), P(t).endOf("day").toDate()];
23013
23017
  }
23014
23018
  }, {
23015
23019
  key: "w",
@@ -23017,7 +23021,7 @@ const ST = ({
23017
23021
  group: "this",
23018
23022
  getRange: () => {
23019
23023
  const t = Date.now();
23020
- return [$(t).startOf("week").toDate(), $(t).endOf("week").toDate()];
23024
+ return [P(t).startOf("week").toDate(), P(t).endOf("week").toDate()];
23021
23025
  }
23022
23026
  }, {
23023
23027
  key: "m",
@@ -23025,7 +23029,7 @@ const ST = ({
23025
23029
  group: "this",
23026
23030
  getRange: () => {
23027
23031
  const t = Date.now();
23028
- return [$(t).startOf("month").toDate(), $(t).endOf("month").toDate()];
23032
+ return [P(t).startOf("month").toDate(), P(t).endOf("month").toDate()];
23029
23033
  }
23030
23034
  }, {
23031
23035
  key: "y",
@@ -23033,7 +23037,7 @@ const ST = ({
23033
23037
  group: "this",
23034
23038
  getRange: () => {
23035
23039
  const t = Date.now();
23036
- return [$(t).startOf("year").toDate(), $(t).endOf("year").toDate()];
23040
+ return [P(t).startOf("year").toDate(), P(t).endOf("year").toDate()];
23037
23041
  }
23038
23042
  }];
23039
23043
  function jd(t) {
@@ -23052,7 +23056,7 @@ const IT = ({
23052
23056
  }, i = C(() => S.groupBy(fa(), "group"), []), a = n.language === "zh";
23053
23057
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
23054
23058
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
23055
- /* @__PURE__ */ r.jsx(Ve, { withBorder: !1, sx: {
23059
+ /* @__PURE__ */ r.jsx(qe, { withBorder: !1, sx: {
23056
23060
  "tbody > tr > th, tbody > tr > td": {
23057
23061
  borderTop: "none",
23058
23062
  padding: "2px 6px"
@@ -23065,7 +23069,7 @@ const IT = ({
23065
23069
  paddingLeft: "1px"
23066
23070
  }
23067
23071
  }, children: /* @__PURE__ */ r.jsx("tbody", { children: Object.entries(i).map(([o, l]) => /* @__PURE__ */ r.jsxs("tr", { children: [
23068
- /* @__PURE__ */ r.jsx("th", { children: /* @__PURE__ */ r.jsx(j, { size: "xs", color: "#555", children: e(`filter.widget.date_range.shortcut.${o}.label`) }) }),
23072
+ /* @__PURE__ */ r.jsx("th", { children: /* @__PURE__ */ r.jsx(w, { size: "xs", color: "#555", children: e(`filter.widget.date_range.shortcut.${o}.label`) }) }),
23069
23073
  l.map(({
23070
23074
  key: c,
23071
23075
  value: d,
@@ -23095,7 +23099,7 @@ const IT = ({
23095
23099
  } = _(), [c, {
23096
23100
  open: d,
23097
23101
  close: u
23098
- }] = sn(!1), [h, p] = n, m = h ? $(h).format(o) : "", b = p ? $(p).format(o) : "";
23102
+ }] = sn(!1), [h, p] = n, m = h ? P(h).format(o) : "", b = p ? P(p).format(o) : "";
23099
23103
  return /* @__PURE__ */ r.jsxs(Vn, { opened: c, onClose: u, position: "bottom-start", shadow: "md", children: [
23100
23104
  /* @__PURE__ */ r.jsxs(y, { position: "left", grow: !0, noWrap: !0, spacing: 0, w: "18em", sx: {
23101
23105
  marginTop: "3px"
@@ -23143,8 +23147,8 @@ const IT = ({
23143
23147
  required: a,
23144
23148
  max_days: o,
23145
23149
  allowSingleDateInRange: l
23146
- } = e, c = Array.isArray(n) ? n.map((u) => u ? $(u).toDate() : null) : [null, null], d = (u) => {
23147
- s(u.map((h) => h && $(h).format(i)));
23150
+ } = e, c = Array.isArray(n) ? n.map((u) => u ? P(u).toDate() : null) : [null, null], d = (u) => {
23151
+ s(u.map((h) => h && P(h).format(i)));
23148
23152
  };
23149
23153
  return /* @__PURE__ */ r.jsx(DT, { label: t, value: c, onChange: d, inputFormat: i, allowSingleDateInRange: l, max_days: o, required: a });
23150
23154
  }), MT = fr((t, {
@@ -23329,7 +23333,7 @@ const IT = ({
23329
23333
  const {
23330
23334
  t: e
23331
23335
  } = _();
23332
- return t ? /* @__PURE__ */ r.jsx(j, { color: "red", size: 12, children: t }) : /* @__PURE__ */ r.jsx(j, { color: "dimmed", size: 12, children: e("filter.widget.common.selector_option_empty") });
23336
+ return t ? /* @__PURE__ */ r.jsx(w, { color: "red", size: 12, children: t }) : /* @__PURE__ */ r.jsx(w, { color: "dimmed", size: 12, children: e("filter.widget.common.selector_option_empty") });
23333
23337
  }, LT = ({
23334
23338
  disabled: t,
23335
23339
  // styling props
@@ -23358,32 +23362,32 @@ const IT = ({
23358
23362
  classNames: e,
23359
23363
  styles: n,
23360
23364
  unstyled: s
23361
- }), [w, T] = B(!1), E = (Z) => {
23365
+ }), [j, T] = B(!1), E = (Z) => {
23362
23366
  T(Z);
23363
- }, P = w && (l == null ? void 0 : l.length) > 0, [G, K] = B(""), he = C(() => {
23364
- if (!G)
23367
+ }, $ = j && (l == null ? void 0 : l.length) > 0, [W, K] = B(""), he = C(() => {
23368
+ if (!W)
23365
23369
  return d;
23366
- const Z = G.toLowerCase(), ee = (pe) => {
23370
+ const Z = W.toLowerCase(), ee = (pe) => {
23367
23371
  var Qe;
23368
23372
  return ((Qe = pe.description) == null ? void 0 : Qe.toLowerCase().includes(Z)) || pe.label.toLowerCase().includes(Z);
23369
23373
  };
23370
23374
  return d.filter(ee);
23371
- }, [G, d]);
23375
+ }, [W, d]);
23372
23376
  return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
23373
23377
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
23374
- /* @__PURE__ */ r.jsxs(j, { className: m.label, children: [
23378
+ /* @__PURE__ */ r.jsxs(w, { className: m.label, children: [
23375
23379
  o,
23376
23380
  h && /* @__PURE__ */ r.jsx("span", { className: m.required, "aria-hidden": "true", children: "*" })
23377
23381
  ] }),
23378
- P && /* @__PURE__ */ r.jsx(ye, { label: p("filter.widget.common.x_selected", {
23382
+ $ && /* @__PURE__ */ r.jsx(ye, { label: p("filter.widget.common.x_selected", {
23379
23383
  count: l.length
23380
23384
  }), children: /* @__PURE__ */ r.jsx(_n, { children: l.length }) })
23381
23385
  ] }),
23382
23386
  /* @__PURE__ */ r.jsx(am, { disabled: t, allowClear: !0, className: b(m.root, "check-select"), dropdownClassName: b(m.dropdown, ""), onDropdownVisibleChange: E, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: a, clearIcon: () => /* @__PURE__ */ r.jsx(el, {}), value: l, onChange: c, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r.jsx(ba, { errorMessage: u }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => p("filter.widget.common.x_selected", {
23383
23387
  count: Z.length
23384
- }), searchValue: G, onSearch: K, filterOption: !1, children: he.map((Z) => /* @__PURE__ */ r.jsxs(om, { title: Z.label, children: [
23385
- /* @__PURE__ */ r.jsx(j, { size: "sm", "data-role": "label", children: Z.label }),
23386
- Z.description && /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", "data-role": "description", children: Z.description })
23388
+ }), searchValue: W, onSearch: K, filterOption: !1, children: he.map((Z) => /* @__PURE__ */ r.jsxs(om, { title: Z.label, children: [
23389
+ /* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: Z.label }),
23390
+ Z.description && /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: Z.description })
23387
23391
  ] }, Z.value)) })
23388
23392
  ] });
23389
23393
  }, AT = z(({
@@ -23392,7 +23396,7 @@ const IT = ({
23392
23396
  value: n,
23393
23397
  onChange: s
23394
23398
  }) => {
23395
- const i = Pe(), a = !!e.options_query_id, {
23399
+ const i = Fe(), a = !!e.options_query_id, {
23396
23400
  state: o,
23397
23401
  error: l
23398
23402
  } = i.getDataStuffByID(e.options_query_id), c = o === "loading", d = e.min_width ? e.min_width : "200px", u = a ? c : !1, h = (p) => s(p, !1);
@@ -23407,15 +23411,15 @@ const IT = ({
23407
23411
  description: e,
23408
23412
  ...n
23409
23413
  }, s) => /* @__PURE__ */ r.jsx("div", { ref: s, ...n, children: /* @__PURE__ */ r.jsx(y, { noWrap: !0, children: /* @__PURE__ */ r.jsxs("div", { children: [
23410
- /* @__PURE__ */ r.jsx(j, { size: "sm", "data-role": "label", children: t }),
23411
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", "data-role": "description", children: e })
23414
+ /* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: t }),
23415
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: e })
23412
23416
  ] }) }) })), RT = z(({
23413
23417
  label: t,
23414
23418
  config: e,
23415
23419
  value: n,
23416
23420
  onChange: s
23417
23421
  }) => {
23418
- const i = Pe(), a = !!e.options_query_id, {
23422
+ const i = Fe(), a = !!e.options_query_id, {
23419
23423
  state: o,
23420
23424
  error: l
23421
23425
  } = i.getDataStuffByID(e.options_query_id), c = o === "loading";
@@ -23752,7 +23756,7 @@ const PT = ({
23752
23756
  t: m
23753
23757
  } = _(), {
23754
23758
  classes: b,
23755
- cx: w
23759
+ cx: j
23756
23760
  } = qT({
23757
23761
  radius: i
23758
23762
  }, {
@@ -23760,16 +23764,16 @@ const PT = ({
23760
23764
  classNames: e,
23761
23765
  styles: n,
23762
23766
  unstyled: s
23763
- }), [T, E] = B(!1), P = (K) => {
23767
+ }), [T, E] = B(!1), $ = (K) => {
23764
23768
  E(K);
23765
- }, G = T && (l == null ? void 0 : l.length) > 0;
23769
+ }, W = T && (l == null ? void 0 : l.length) > 0;
23766
23770
  return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
23767
23771
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
23768
- /* @__PURE__ */ r.jsxs(j, { className: b.label, children: [
23772
+ /* @__PURE__ */ r.jsxs(w, { className: b.label, children: [
23769
23773
  o,
23770
23774
  h && /* @__PURE__ */ r.jsx("span", { className: b.required, "aria-hidden": "true", children: "*" })
23771
23775
  ] }),
23772
- G && /* @__PURE__ */ r.jsx(ye, { label: m("filter.widget.common.x_selected", {
23776
+ W && /* @__PURE__ */ r.jsx(ye, { label: m("filter.widget.common.x_selected", {
23773
23777
  count: l.length
23774
23778
  }), children: /* @__PURE__ */ r.jsx(_n, { children: l.length }) })
23775
23779
  ] }),
@@ -23780,9 +23784,9 @@ const PT = ({
23780
23784
  allowClear: !0,
23781
23785
  treeCheckStrictly: p,
23782
23786
  labelInValue: !0,
23783
- className: w(b.root, "check-select"),
23784
- dropdownClassName: w(b.dropdown, ""),
23785
- onDropdownVisibleChange: P,
23787
+ className: j(b.root, "check-select"),
23788
+ dropdownClassName: j(b.dropdown, ""),
23789
+ onDropdownVisibleChange: $,
23786
23790
  transitionName: "rc-tree-select-dropdown-slide-up",
23787
23791
  choiceTransitionName: "rc-tree-select-selection__choice-zoom",
23788
23792
  style: a,
@@ -23887,7 +23891,7 @@ const UT = ({
23887
23891
  }) {
23888
23892
  const [n, {
23889
23893
  toggle: s
23890
- }] = sn(!0), i = Pe(), {
23894
+ }] = sn(!0), i = Fe(), {
23891
23895
  control: a,
23892
23896
  handleSubmit: o,
23893
23897
  reset: l
@@ -23904,8 +23908,8 @@ const UT = ({
23904
23908
  const d = i.filters.visibleInView(e.id), u = C(() => d.every((b) => b.should_auto_submit), [d]), h = C(() => d.filter((b) => S.get(b, "config.required", !1)), [d]), p = C(() => h.length === 0 ? !1 : h.some((b) => !b.requiredAndPass(c[b.key])), [c, h]);
23905
23909
  if (d.length === 0)
23906
23910
  return null;
23907
- const m = (b, w) => (T, E) => {
23908
- w(T), (b.should_auto_submit || E) && i.filters.setValueByKey(b.key, T);
23911
+ const m = (b, j) => (T, E) => {
23912
+ j(T), (b.should_auto_submit || E) && i.filters.setValueByKey(b.key, T);
23909
23913
  };
23910
23914
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(i.filters.setValues), children: [
23911
23915
  /* @__PURE__ */ r.jsx(UT, { opened: n, toggle: s }),
@@ -23915,8 +23919,8 @@ const UT = ({
23915
23919
  padding: "16px"
23916
23920
  }, children: [
23917
23921
  /* @__PURE__ */ r.jsx(y, { align: "flex-start", children: d.map((b) => /* @__PURE__ */ r.jsx(f, { name: b.key, control: a, render: ({
23918
- field: w
23919
- }) => /* @__PURE__ */ r.jsx(GT, { filter: b, value: w.value, onChange: m(b, w.onChange) }) }, b.id)) }),
23922
+ field: j
23923
+ }) => /* @__PURE__ */ r.jsx(GT, { filter: b, value: j.value, onChange: m(b, j.onChange) }) }, b.id)) }),
23920
23924
  !u && /* @__PURE__ */ r.jsx(y, { sx: {
23921
23925
  alignSelf: "flex-end"
23922
23926
  }, children: /* @__PURE__ */ r.jsx(QT, { disabled: p }) })
@@ -24426,7 +24430,7 @@ const zd = x.model("FilterCheckboxConfigMeta", {
24426
24430
  function Td(t, e) {
24427
24431
  return t.map((n) => {
24428
24432
  try {
24429
- return n ? $.tz(n, "UTC").format(e) : null;
24433
+ return n ? P.tz(n, "UTC").format(e) : null;
24430
24434
  } catch {
24431
24435
  return console.log(`[date-range] failed parsing ${n}`), null;
24432
24436
  }
@@ -24495,7 +24499,7 @@ const oI = x.model("FilterDateRangeConfigMeta", {
24495
24499
  return;
24496
24500
  const n = jd(t.default_shortcut);
24497
24501
  if (console.log(n), n) {
24498
- const s = n.map((i) => $(i).format(t.inputFormat));
24502
+ const s = n.map((i) => P(i).format(t.inputFormat));
24499
24503
  t.setFilterValue(s);
24500
24504
  }
24501
24505
  },
@@ -24512,7 +24516,7 @@ const oI = x.model("FilterDateRangeConfigMeta", {
24512
24516
  }) {
24513
24517
  return {
24514
24518
  ...e,
24515
- default_value: t.map((n) => n === null ? null : $.tz(n, "UTC").toISOString())
24519
+ default_value: t.map((n) => n === null ? null : P.tz(n, "UTC").toISOString())
24516
24520
  };
24517
24521
  },
24518
24522
  postProcessor(t) {
@@ -24755,10 +24759,10 @@ function pI(t) {
24755
24759
  description: s,
24756
24760
  label: n
24757
24761
  };
24758
- return s && (a.label = A.createElement("div", {}, [A.createElement(j, {
24762
+ return s && (a.label = A.createElement("div", {}, [A.createElement(w, {
24759
24763
  key: 0,
24760
24764
  title: e.label
24761
- }, e.label), A.createElement(j, {
24765
+ }, e.label), A.createElement(w, {
24762
24766
  key: 1,
24763
24767
  className: "rc-tree-select-tree-title-desc",
24764
24768
  color: "dimmed",
@@ -24972,9 +24976,9 @@ const Ed = x.compose("FilterTreeSelectConfigMeta", x.model({
24972
24976
  t.default_value_func = e;
24973
24977
  }
24974
24978
  }));
24975
- var W = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(W || {});
24979
+ var G = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(G || {});
24976
24980
  const $d = x.model("ViewDivisionConfig", {
24977
- _name: x.literal(W.Division)
24981
+ _name: x.literal(G.Division)
24978
24982
  }).views((t) => ({
24979
24983
  get json() {
24980
24984
  const {
@@ -24985,7 +24989,7 @@ const $d = x.model("ViewDivisionConfig", {
24985
24989
  };
24986
24990
  }
24987
24991
  })), xI = () => $d.create({
24988
- _name: W.Division
24992
+ _name: G.Division
24989
24993
  }), gI = x.model("CustomModalTitleModel", {
24990
24994
  enabled: x.optional(x.boolean, !1),
24991
24995
  func_content: x.optional(x.string, "")
@@ -25035,7 +25039,7 @@ const $d = x.model("ViewDivisionConfig", {
25035
25039
  func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
25036
25040
  `)
25037
25041
  }, Pd = x.model("ViewModalConfig", {
25038
- _name: x.literal(W.Modal),
25042
+ _name: x.literal(G.Modal),
25039
25043
  width: x.string,
25040
25044
  height: x.string,
25041
25045
  custom_modal_title: x.optional(gI, bi)
@@ -25062,7 +25066,7 @@ const $d = x.model("ViewDivisionConfig", {
25062
25066
  t.height = e;
25063
25067
  }
25064
25068
  })), fI = () => Pd.create({
25065
- _name: W.Modal,
25069
+ _name: G.Modal,
25066
25070
  width: "90vw",
25067
25071
  height: "90vh"
25068
25072
  }), bI = x.model("ViewTabsTabModel", {
@@ -25102,7 +25106,7 @@ const $d = x.model("ViewDivisionConfig", {
25102
25106
  t.order = e;
25103
25107
  }
25104
25108
  })), Fd = x.model("ViewTabsConfig", {
25105
- _name: x.literal(W.Modal),
25109
+ _name: x.literal(G.Modal),
25106
25110
  tabs: x.optional(x.array(bI), []),
25107
25111
  variant: x.optional(x.enumeration("variant", ["default", "outline", "pills"]), "default"),
25108
25112
  orientation: x.optional(x.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
@@ -25152,12 +25156,12 @@ const $d = x.model("ViewDivisionConfig", {
25152
25156
  t.tabs.splice(e, 1);
25153
25157
  }
25154
25158
  })), yI = () => Fd.create({
25155
- _name: W.Modal,
25159
+ _name: G.Modal,
25156
25160
  tabs: []
25157
25161
  }), _I = x.model({
25158
25162
  id: x.identifier,
25159
25163
  name: x.string,
25160
- type: x.enumeration("EViewComponentType", [W.Division, W.Modal, W.Tabs]),
25164
+ type: x.enumeration("EViewComponentType", [G.Division, G.Modal, G.Tabs]),
25161
25165
  config: x.union($d, Pd, Fd),
25162
25166
  panelIDs: x.optional(x.array(x.string), [])
25163
25167
  }).views((t) => ({
@@ -25183,13 +25187,13 @@ const $d = x.model("ViewDivisionConfig", {
25183
25187
  setType(e) {
25184
25188
  if (t.type !== e) {
25185
25189
  switch (e) {
25186
- case W.Division:
25190
+ case G.Division:
25187
25191
  t.config = xI();
25188
25192
  break;
25189
- case W.Modal:
25193
+ case G.Modal:
25190
25194
  t.config = fI();
25191
25195
  break;
25192
- case W.Tabs:
25196
+ case G.Tabs:
25193
25197
  t.config = yI();
25194
25198
  break;
25195
25199
  }
@@ -25215,7 +25219,7 @@ const $d = x.model("ViewDivisionConfig", {
25215
25219
  views: [{
25216
25220
  id: "Main",
25217
25221
  name: "Main",
25218
- type: W.Division,
25222
+ type: G.Division,
25219
25223
  config: {},
25220
25224
  panelIDs: []
25221
25225
  }],
@@ -25304,27 +25308,27 @@ const Nd = x.compose("ViewRenderModel", _I, x.model({
25304
25308
  // FIXME: manage this state in a better way
25305
25309
  })).views((t) => ({
25306
25310
  get defaultTab() {
25307
- if (t.type !== W.Tabs)
25311
+ if (t.type !== G.Tabs)
25308
25312
  return "";
25309
25313
  const e = t.config;
25310
25314
  return e.tabs.length > 0 ? e.tabs[0].id : "";
25311
25315
  },
25312
25316
  get tabViewID() {
25313
25317
  var n;
25314
- return t.type !== W.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
25318
+ return t.type !== G.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
25315
25319
  },
25316
25320
  get contentModel() {
25317
25321
  return Ae(t, 3);
25318
25322
  },
25319
25323
  get panels() {
25320
- if (t.type !== W.Tabs)
25324
+ if (t.type !== G.Tabs)
25321
25325
  return this.contentModel.panels.panelsByIDs(t.panelIDs);
25322
25326
  const e = this.tabViewID, n = this.contentModel.views.findByID(e);
25323
25327
  return (n == null ? void 0 : n.panels) ?? [];
25324
25328
  },
25325
25329
  get renderViewIDs() {
25326
25330
  const e = [t.id];
25327
- return t.type === W.Tabs && e.push(this.tabViewID), e;
25331
+ return t.type === G.Tabs && e.push(this.tabViewID), e;
25328
25332
  },
25329
25333
  async downloadScreenshot(e) {
25330
25334
  const n = e.offsetWidth * 2 + 10, s = e.offsetHeight * 2 + 10, i = new Hl(), a = (/* @__PURE__ */ new Date()).getTime(), o = await Ql.toBlob(e, {
@@ -25581,10 +25585,10 @@ function Hd(t) {
25581
25585
  if (e.default_shortcut) {
25582
25586
  const i = jd(e.default_shortcut);
25583
25587
  if (i)
25584
- return i.map((a) => $(a).format(e.inputFormat));
25588
+ return i.map((a) => P(a).format(e.inputFormat));
25585
25589
  }
25586
25590
  const [...s] = n;
25587
- return s.map((i) => i === null ? i : $.tz(i, "UTC").format(e.inputFormat) ?? i);
25591
+ return s.map((i) => i === null ? i : P.tz(i, "UTC").format(e.inputFormat) ?? i);
25588
25592
  } catch (s) {
25589
25593
  return console.error(s), n;
25590
25594
  }
@@ -26293,7 +26297,7 @@ const AI = (t) => new LI(t), EI = z(({
26293
26297
  zIndex: 320
26294
26298
  }), m = A.useCallback(() => {
26295
26299
  c(l);
26296
- }, [l, c]), b = !d && t.type !== W.Modal;
26300
+ }, [l, c]), b = !d && t.type !== G.Modal;
26297
26301
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(M, { sx: {
26298
26302
  position: "absolute",
26299
26303
  top: 0,
@@ -26354,7 +26358,7 @@ const $I = z(function() {
26354
26358
  } = e;
26355
26359
  return s.show ? /* @__PURE__ */ r.jsx(y, { grow: !0, position: "center", className: "panel-title-wrapper", sx: {
26356
26360
  flexGrow: 1
26357
- }, children: /* @__PURE__ */ r.jsx(j, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
26361
+ }, children: /* @__PURE__ */ r.jsx(w, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
26358
26362
  });
26359
26363
  function PI(t) {
26360
26364
  const e = os(null);
@@ -26474,7 +26478,7 @@ function OI({
26474
26478
  });
26475
26479
  return yr(async () => {
26476
26480
  await s.instanceData.setItem(null, n.viz.conf);
26477
- }, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Ox, { ...e }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update..." });
26481
+ }, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Ox, { ...e }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update..." });
26478
26482
  }
26479
26483
  function VI(t) {
26480
26484
  const {
@@ -26490,7 +26494,7 @@ function VI(t) {
26490
26494
  title: `${e.name} - Updated`,
26491
26495
  message: "Your plugin configuration has been migrated to the latest version"
26492
26496
  });
26493
- }) ? /* @__PURE__ */ r.jsx(Fx, { ...t }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update" });
26497
+ }) ? /* @__PURE__ */ r.jsx(Fx, { ...t }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update" });
26494
26498
  }
26495
26499
  function qI(t, e) {
26496
26500
  const {
@@ -26538,10 +26542,10 @@ const NI = z(function({
26538
26542
  }), BI = z(({
26539
26543
  panel: t
26540
26544
  }) => /* @__PURE__ */ r.jsxs(k, { children: [
26541
- t.queryErrors.map((e, n) => /* @__PURE__ */ r.jsx(j, { color: "red", size: "sm", align: "center", sx: {
26545
+ t.queryErrors.map((e, n) => /* @__PURE__ */ r.jsx(w, { color: "red", size: "sm", align: "center", sx: {
26542
26546
  fontFamily: "monospace"
26543
26547
  }, children: e }, `${n}-${e}`)),
26544
- /* @__PURE__ */ r.jsx(j, { color: "gray", align: "center", size: "sm", children: t.queryStateMessages })
26548
+ /* @__PURE__ */ r.jsx(w, { color: "gray", align: "center", size: "sm", children: t.queryStateMessages })
26545
26549
  ] })), ou = z(({
26546
26550
  panel: t
26547
26551
  }) => /* @__PURE__ */ r.jsxs(Ut, { className: "panel-viz-section", direction: "column", sx: {
@@ -26612,7 +26616,7 @@ const YI = z(({
26612
26616
  inFullScreen: o
26613
26617
  } = A.useContext(Is), l = A.useCallback(() => {
26614
26618
  a(i);
26615
- }, [i, a]), c = !o && t.type !== W.Modal;
26619
+ }, [i, a]), c = !o && t.type !== G.Modal;
26616
26620
  return UI(n.viz.type) ? /* @__PURE__ */ r.jsx(M, { sx: {
26617
26621
  position: "absolute",
26618
26622
  top: 0,
@@ -26663,7 +26667,7 @@ const cu = z(({
26663
26667
  function ZI(t, e, n) {
26664
26668
  const {
26665
26669
  panels: s
26666
- } = Pe(), i = t.id === "Main", [a, o] = A.useState(() => i && s.findByID(e) ? e : null), l = A.useCallback((h) => {
26670
+ } = Fe(), i = t.id === "Main", [a, o] = A.useState(() => i && s.findByID(e) ? e : null), l = A.useCallback((h) => {
26667
26671
  o(h), i && n(h);
26668
26672
  }, [i, n]), c = A.useCallback(() => {
26669
26673
  o(null), i && n("");
@@ -26727,7 +26731,7 @@ const eD = A.forwardRef(({
26727
26731
  view: t,
26728
26732
  className: e = "layout"
26729
26733
  }) => {
26730
- const n = Pe(), s = n.layouts.items(t.panelIDs), i = n.layouts.gridLayouts(t.panelIDs);
26734
+ const n = Fe(), s = n.layouts.items(t.panelIDs), i = n.layouts.gridLayouts(t.panelIDs);
26731
26735
  return /* @__PURE__ */ r.jsx(sD, { className: `dashboard-layout ${e}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: i, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: s.map((a) => /* @__PURE__ */ r.jsx("div", { "data-grid": a.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r.jsx(cu, { view: t, panel: a.panel }) }, a.id)) });
26732
26736
  });
26733
26737
  function va(t) {
@@ -26749,7 +26753,7 @@ const aD = z(({
26749
26753
  } = _(), [n, {
26750
26754
  setTrue: s,
26751
26755
  setFalse: i
26752
- }] = it(!1), a = Xx(), o = Pe(), l = () => {
26756
+ }] = it(!1), a = Xx(), o = Fe(), l = () => {
26753
26757
  const c = JSON.stringify(o.contentJSON, null, 2), d = `${a.name}__${o.name}`;
26754
26758
  Xn(d, c);
26755
26759
  };
@@ -26792,7 +26796,7 @@ const aD = z(({
26792
26796
  children: t,
26793
26797
  view: e
26794
26798
  }) => {
26795
- const n = Pe(), s = e.config, i = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id), {
26799
+ const n = Fe(), s = e.config, i = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id), {
26796
26800
  ref: o,
26797
26801
  downloadScreenshot: l
26798
26802
  } = va(e);
@@ -26841,7 +26845,7 @@ const aD = z(({
26841
26845
  } : {}, cD = z(({
26842
26846
  view: t
26843
26847
  }) => {
26844
- const e = Pe(), n = t.config;
26848
+ const e = Fe(), n = t.config;
26845
26849
  return /* @__PURE__ */ r.jsxs(g, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: t.tab, onTabChange: t.setTab, styles: {
26846
26850
  root: {
26847
26851
  height: "100%",
@@ -26864,11 +26868,11 @@ const aD = z(({
26864
26868
  children: e
26865
26869
  }) => {
26866
26870
  switch (t.type) {
26867
- case W.Modal:
26871
+ case G.Modal:
26868
26872
  return /* @__PURE__ */ r.jsx(oD, { view: t, children: e });
26869
- case W.Tabs:
26873
+ case G.Tabs:
26870
26874
  return /* @__PURE__ */ r.jsx(cD, { view: t });
26871
- case W.Division:
26875
+ case G.Division:
26872
26876
  default:
26873
26877
  return /* @__PURE__ */ r.jsx(du, { view: t, children: e });
26874
26878
  }
@@ -26997,7 +27001,7 @@ const hD = z(({
26997
27001
  }) => {
26998
27002
  const {
26999
27003
  t: e
27000
- } = _(), n = Rt(), s = ae(), i = C(() => s.views.options.filter((c) => c.type === W.Division), [t.id, s.views.options]), a = t.config, o = (c) => n.openConfirmModal({
27004
+ } = _(), n = Rt(), s = ae(), i = C(() => s.views.options.filter((c) => c.type === G.Division), [t.id, s.views.options]), a = t.config, o = (c) => n.openConfirmModal({
27001
27005
  title: `${e("view.component.tabs.tab.delete")}?`,
27002
27006
  labels: {
27003
27007
  confirm: e("common.actions.confirm"),
@@ -27058,11 +27062,11 @@ const hD = z(({
27058
27062
  children: e
27059
27063
  }) => {
27060
27064
  switch (t.type) {
27061
- case W.Modal:
27065
+ case G.Modal:
27062
27066
  return /* @__PURE__ */ r.jsx(hD, { view: t, children: e });
27063
- case W.Tabs:
27067
+ case G.Tabs:
27064
27068
  return /* @__PURE__ */ r.jsx(xD, { view: t });
27065
- case W.Division:
27069
+ case G.Division:
27066
27070
  default:
27067
27071
  return /* @__PURE__ */ r.jsx(uD, { view: t, children: e });
27068
27072
  }
@@ -27100,7 +27104,7 @@ const hD = z(({
27100
27104
  viewPanelInFullScreen: i,
27101
27105
  inFullScreen: o
27102
27106
  }, children: /* @__PURE__ */ r.jsxs(M, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
27103
- height: e.type === W.Modal ? "0 !important" : "100%"
27107
+ height: e.type === G.Modal ? "0 !important" : "100%"
27104
27108
  }, children: [
27105
27109
  o && /* @__PURE__ */ r.jsx(XI, { view: e, panel: l, exitFullScreen: a }),
27106
27110
  /* @__PURE__ */ r.jsx(dD, { view: e, children: /* @__PURE__ */ r.jsxs(M, { sx: {
@@ -27116,17 +27120,17 @@ const hD = z(({
27116
27120
  });
27117
27121
  var bD = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(bD || {});
27118
27122
  const sR = {
27119
- [W.Division]: "Division",
27120
- [W.Tabs]: "Tabs",
27121
- [W.Modal]: "Modal"
27123
+ [G.Division]: "Division",
27124
+ [G.Tabs]: "Tabs",
27125
+ [G.Modal]: "Modal"
27122
27126
  }, yD = {
27123
- [W.Division]: "rgba(255, 0, 0, 0.2)",
27124
- [W.Modal]: "rgba(0, 0, 0, 0.2)",
27125
- [W.Tabs]: "rgba(255, 200, 100, 0.4)"
27127
+ [G.Division]: "rgba(255, 0, 0, 0.2)",
27128
+ [G.Modal]: "rgba(0, 0, 0, 0.2)",
27129
+ [G.Tabs]: "rgba(255, 200, 100, 0.4)"
27126
27130
  }, iR = {
27127
- [W.Division]: "#ff4000",
27128
- [W.Modal]: "#000",
27129
- [W.Tabs]: "#ffad18"
27131
+ [G.Division]: "#ff4000",
27132
+ [G.Modal]: "#000",
27133
+ [G.Tabs]: "#ffad18"
27130
27134
  };
27131
27135
  function _D(t, e, n) {
27132
27136
  mt(t, um(t, (s, i) => {
@@ -27931,7 +27935,7 @@ const LD = x.model("EditorModel", {
27931
27935
  };
27932
27936
  },
27933
27937
  downloadSchema() {
27934
- if (t.type === W.Tabs) {
27938
+ if (t.type === G.Tabs) {
27935
27939
  console.error(new Error("Please choose a tab first"));
27936
27940
  return;
27937
27941
  }
@@ -28004,8 +28008,8 @@ const LD = x.model("EditorModel", {
28004
28008
  },
28005
28009
  addARandomNewView() {
28006
28010
  const e = (/* @__PURE__ */ new Date()).getTime().toString();
28007
- this.addANewView(e, W.Division, W.Division, {
28008
- _name: W.Division
28011
+ this.addANewView(e, G.Division, G.Division, {
28012
+ _name: G.Division
28009
28013
  }), this.setIDOfVIE(e);
28010
28014
  },
28011
28015
  removeVIE() {
@@ -28285,7 +28289,7 @@ const FD = x.model({
28285
28289
  }
28286
28290
  if (Array.isArray(n)) {
28287
28291
  const p = n.map((m) => {
28288
- const b = m.panelIDs.map((w) => u.get(w) ?? w);
28292
+ const b = m.panelIDs.map((j) => u.get(j) ?? j);
28289
28293
  return {
28290
28294
  ...m,
28291
28295
  id: nn(),
@@ -28295,24 +28299,24 @@ const FD = x.model({
28295
28299
  t.views.appendMultiple(p);
28296
28300
  }
28297
28301
  if (Array.isArray(o)) {
28298
- const p = (w, T) => t.layouts.breakpointNameRecord[w] === T;
28302
+ const p = (j, T) => t.layouts.breakpointNameRecord[j] === T;
28299
28303
  let m = [];
28300
- const b = o.filter((w) => p(w.name, w.breakpoint));
28301
- b.forEach((w) => {
28302
- w.id === "basis" && (m = w.list), w.list.forEach((T) => {
28304
+ const b = o.filter((j) => p(j.name, j.breakpoint));
28305
+ b.forEach((j) => {
28306
+ j.id === "basis" && (m = j.list), j.list.forEach((T) => {
28303
28307
  const E = u.get(T.panelID);
28304
28308
  T.id = nn(), T.panelID = E;
28305
28309
  });
28306
- }), t.layouts.list.forEach((w) => {
28307
- const T = b.find((E) => E.name === w.name && E.breakpoint === w.breakpoint);
28310
+ }), t.layouts.list.forEach((j) => {
28311
+ const T = b.find((E) => E.name === j.name && E.breakpoint === j.breakpoint);
28308
28312
  if (!T) {
28309
28313
  m.forEach((E) => {
28310
- w.addLayout(E);
28314
+ j.addLayout(E);
28311
28315
  });
28312
28316
  return;
28313
28317
  }
28314
28318
  T.list.forEach((E) => {
28315
- w.addLayout(E);
28319
+ j.addLayout(E);
28316
28320
  });
28317
28321
  });
28318
28322
  }
@@ -28389,7 +28393,7 @@ function OD({
28389
28393
  definition: {
28390
28394
  queries: m,
28391
28395
  sqlSnippets: b,
28392
- mock_context: w = {}
28396
+ mock_context: j = {}
28393
28397
  }
28394
28398
  } = a;
28395
28399
  return pu.create({
@@ -28399,14 +28403,14 @@ function OD({
28399
28403
  create_time: s,
28400
28404
  update_time: i,
28401
28405
  version: c,
28402
- filters: Jd(d, o, w, l),
28406
+ filters: Jd(d, o, j, l),
28403
28407
  queries: {
28404
28408
  current: m
28405
28409
  },
28406
28410
  sqlSnippets: {
28407
28411
  current: b
28408
28412
  },
28409
- mock_context: Cd(w),
28413
+ mock_context: Cd(j),
28410
28414
  views: hu(u),
28411
28415
  panels: {
28412
28416
  list: h
@@ -28566,7 +28570,7 @@ const ND = z(({
28566
28570
  n.openConfirmModal({
28567
28571
  title: /* @__PURE__ */ r.jsxs(y, { position: "left", children: [
28568
28572
  /* @__PURE__ */ r.jsx(vl, { size: 18, color: "red" }),
28569
- /* @__PURE__ */ r.jsx(j, { children: "You are reverting changes" })
28573
+ /* @__PURE__ */ r.jsx(w, { children: "You are reverting changes" })
28570
28574
  ] }),
28571
28575
  labels: {
28572
28576
  confirm: e("common.actions.confirm"),
@@ -28582,7 +28586,7 @@ const ND = z(({
28582
28586
  });
28583
28587
  }, a = s.changed;
28584
28588
  return /* @__PURE__ */ r.jsxs(y, { spacing: 0, children: [
28585
- /* @__PURE__ */ r.jsx(I, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 18 }), onClick: t, disabled: !a, sx: {
28589
+ /* @__PURE__ */ r.jsx(I, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 18 }), onClick: t, disabled: !a, sx: {
28586
28590
  borderTopRightRadius: 0,
28587
28591
  borderBottomRightRadius: 0
28588
28592
  }, children: e("common.actions.save_changes") }),
@@ -28623,7 +28627,7 @@ const ND = z(({
28623
28627
  name: s.name
28624
28628
  }, children: [
28625
28629
  "End Editing ",
28626
- /* @__PURE__ */ r.jsx(j, { td: "underline", children: s.name })
28630
+ /* @__PURE__ */ r.jsx(w, { td: "underline", children: s.name })
28627
28631
  ] }) }) }),
28628
28632
  /* @__PURE__ */ r.jsx(ND, { saveDashboardChanges: t })
28629
28633
  ] }),
@@ -28641,7 +28645,7 @@ const ND = z(({
28641
28645
  var i;
28642
28646
  const {
28643
28647
  t
28644
- } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
28648
+ } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === G.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
28645
28649
  return n ? /* @__PURE__ */ r.jsx(ye, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(to, { size: 20 }), sx: {
28646
28650
  ...Bo,
28647
28651
  transform: "none !important"
@@ -28681,7 +28685,7 @@ const ND = z(({
28681
28685
  return "Screen sizes should be unique by min width";
28682
28686
  }
28683
28687
  }
28684
- }), b = l("list"), w = h.map((ee, pe) => ({
28688
+ }), b = l("list"), j = h.map((ee, pe) => ({
28685
28689
  ...ee,
28686
28690
  ...b[pe]
28687
28691
  })), T = () => {
@@ -28695,14 +28699,14 @@ const ND = z(({
28695
28699
  }) => {
28696
28700
  const pe = ee.filter((Qe) => Number.isFinite(Qe.breakpoint));
28697
28701
  s.updateLayoutSetsInfo(pe), t();
28698
- }, P = c(), G = C(() => {
28702
+ }, $ = c(), W = C(() => {
28699
28703
  const ee = {
28700
- list: P.list.filter((pe) => !!pe.name && Number.isFinite(pe.breakpoint))
28704
+ list: $.list.filter((pe) => !!pe.name && Number.isFinite(pe.breakpoint))
28701
28705
  };
28702
28706
  return !ge(ee, i);
28703
- }, [P, i]), K = (Z = (he = u.errors.list) == null ? void 0 : he.root) == null ? void 0 : Z.message;
28707
+ }, [$, i]), K = (Z = (he = u.errors.list) == null ? void 0 : he.root) == null ? void 0 : Z.message;
28704
28708
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsxs("form", { onSubmit: o(E), children: [
28705
- /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, withBorder: !0, sx: {
28709
+ /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, withBorder: !0, sx: {
28706
28710
  tableLayout: "fixed"
28707
28711
  }, children: [
28708
28712
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -28715,18 +28719,18 @@ const ND = z(({
28715
28719
  /* @__PURE__ */ r.jsx("th", {})
28716
28720
  ] }) }),
28717
28721
  /* @__PURE__ */ r.jsxs("tbody", { children: [
28718
- w.map((ee, pe) => /* @__PURE__ */ r.jsxs("tr", { children: [
28722
+ j.map((ee, pe) => /* @__PURE__ */ r.jsxs("tr", { children: [
28719
28723
  /* @__PURE__ */ r.jsx("th", { children: ee.id === "basis" ? ee.name : /* @__PURE__ */ r.jsx(f, { name: `list.${pe}.name`, control: a, render: ({
28720
28724
  field: Qe
28721
28725
  }) => /* @__PURE__ */ r.jsx(D, { size: "xs", label: "", required: !0, sx: {
28722
28726
  flex: 1
28723
28727
  }, ...Qe }) }) }),
28724
- /* @__PURE__ */ r.jsx("td", { children: ee.id === "basis" ? /* @__PURE__ */ r.jsxs(j, { ff: "monospace", children: [
28728
+ /* @__PURE__ */ r.jsx("td", { children: ee.id === "basis" ? /* @__PURE__ */ r.jsxs(w, { ff: "monospace", children: [
28725
28729
  ee.breakpoint,
28726
28730
  "px"
28727
28731
  ] }) : /* @__PURE__ */ r.jsx(f, { name: `list.${pe}.breakpoint`, control: a, render: ({
28728
28732
  field: Qe
28729
- }) => /* @__PURE__ */ r.jsx(le, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: "px" }), rightSectionProps: {
28733
+ }) => /* @__PURE__ */ r.jsx(le, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r.jsx(w, { color: "dimmed", children: "px" }), rightSectionProps: {
28730
28734
  style: {
28731
28735
  width: "30px"
28732
28736
  }
@@ -28749,10 +28753,10 @@ const ND = z(({
28749
28753
  }, children: /* @__PURE__ */ r.jsx(ut, { size: 18 }) }) }) }) })
28750
28754
  ] })
28751
28755
  ] }),
28752
- /* @__PURE__ */ r.jsx(j, { mt: 6, ta: "right", size: "xs", color: "red", children: K ?? " " }),
28756
+ /* @__PURE__ */ r.jsx(w, { mt: 6, ta: "right", size: "xs", color: "red", children: K ?? " " }),
28753
28757
  /* @__PURE__ */ r.jsxs(y, { mt: 6, position: "apart", children: [
28754
- /* @__PURE__ */ r.jsx(I, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(vr, { size: 18 }), disabled: !G, children: e("common.actions.revert") }),
28755
- /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", type: "submit", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 18 }), disabled: !G, children: e("common.actions.save_changes") })
28758
+ /* @__PURE__ */ r.jsx(I, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(vr, { size: 18 }), disabled: !W, children: e("common.actions.revert") }),
28759
+ /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", type: "submit", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 18 }), disabled: !W, children: e("common.actions.save_changes") })
28756
28760
  ] })
28757
28761
  ] }) });
28758
28762
  }), QD = z(() => {
@@ -28774,19 +28778,19 @@ const ND = z(({
28774
28778
  /* @__PURE__ */ r.jsx(ie.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(kp, { size: 16 }), sx: {
28775
28779
  borderRadius: 0
28776
28780
  }, children: /* @__PURE__ */ r.jsxs(y, { spacing: 6, children: [
28777
- /* @__PURE__ */ r.jsx(j, { size: "xs", fw: "normal", children: o.name }),
28778
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "#777", children: i.layouts.currentRangeText })
28781
+ /* @__PURE__ */ r.jsx(w, { size: "xs", fw: "normal", children: o.name }),
28782
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "#777", children: i.layouts.currentRangeText })
28779
28783
  ] }) }) }),
28780
28784
  /* @__PURE__ */ r.jsxs(ie.Dropdown, { children: [
28781
28785
  i.layouts.breakpointRanges.map((d) => /* @__PURE__ */ r.jsx(ie.Item, { onClick: () => i.layouts.setCurrentBreakpoint(d.id), disabled: a === d.id, children: /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
28782
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: d.name }),
28783
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: d.text })
28786
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: d.name }),
28787
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.text })
28784
28788
  ] }) }, d.id)),
28785
28789
  /* @__PURE__ */ r.jsx(ie.Divider, {}),
28786
- /* @__PURE__ */ r.jsx(ie.Item, { color: "blue", icon: /* @__PURE__ */ r.jsx(jr, { size: 14 }), onClick: n, children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: t("breakpoint.manage") }) })
28790
+ /* @__PURE__ */ r.jsx(ie.Item, { color: "blue", icon: /* @__PURE__ */ r.jsx(jr, { size: 14 }), onClick: n, children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: t("breakpoint.manage") }) })
28787
28791
  ] })
28788
28792
  ] }),
28789
- i.layouts.divisionPreviewScale < 1 && /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: Yr(i.layouts.divisionPreviewScale).format({
28793
+ i.layouts.divisionPreviewScale < 1 && /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: Yr(i.layouts.divisionPreviewScale).format({
28790
28794
  output: "percent",
28791
28795
  mantissa: 0
28792
28796
  }) })
@@ -28805,7 +28809,7 @@ const ND = z(({
28805
28809
  var i;
28806
28810
  const {
28807
28811
  t
28808
- } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => {
28812
+ } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === G.Tabs, s = () => {
28809
28813
  var a;
28810
28814
  return (a = e.views.VIE) == null ? void 0 : a.downloadSchema();
28811
28815
  };
@@ -28819,7 +28823,7 @@ const ND = z(({
28819
28823
  }), Ds = ({
28820
28824
  headers: t,
28821
28825
  rows: e
28822
- }) => /* @__PURE__ */ r.jsxs(Ve, { fontSize: "xs", highlightOnHover: !0, sx: {
28826
+ }) => /* @__PURE__ */ r.jsxs(qe, { fontSize: "xs", highlightOnHover: !0, sx: {
28823
28827
  tableLayout: "fixed",
28824
28828
  fontFamily: "monospace"
28825
28829
  }, children: [
@@ -28832,7 +28836,7 @@ const ND = z(({
28832
28836
  t: e
28833
28837
  } = _(), n = t.views;
28834
28838
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
28835
- /* @__PURE__ */ r.jsx(j, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("view.labels") }),
28839
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("view.labels") }),
28836
28840
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28837
28841
  /* @__PURE__ */ r.jsx("th", { style: {
28838
28842
  width: "160px"
@@ -28852,7 +28856,7 @@ const ND = z(({
28852
28856
  t: e
28853
28857
  } = _(), n = t.filters;
28854
28858
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
28855
- /* @__PURE__ */ r.jsx(j, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("filter.labels") }),
28859
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("filter.labels") }),
28856
28860
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28857
28861
  /* @__PURE__ */ r.jsx("th", { style: {
28858
28862
  width: "160px"
@@ -28872,7 +28876,7 @@ const ND = z(({
28872
28876
  t: e
28873
28877
  } = _(), n = t.panels;
28874
28878
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
28875
- /* @__PURE__ */ r.jsx(j, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("panel.labels") }),
28879
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("panel.labels") }),
28876
28880
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28877
28881
  /* @__PURE__ */ r.jsx("th", { style: {
28878
28882
  width: "160px"
@@ -28893,7 +28897,7 @@ const ND = z(({
28893
28897
  t: e
28894
28898
  } = _(), n = (s = t.definition) == null ? void 0 : s.queries;
28895
28899
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
28896
- /* @__PURE__ */ r.jsx(j, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("query.labels") }),
28900
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("query.labels") }),
28897
28901
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28898
28902
  /* @__PURE__ */ r.jsx("th", { style: {
28899
28903
  width: "160px"
@@ -28920,7 +28924,7 @@ const ND = z(({
28920
28924
  t: e
28921
28925
  } = _(), n = (s = t.definition) == null ? void 0 : s.sqlSnippets;
28922
28926
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
28923
- /* @__PURE__ */ r.jsx(j, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("sql_snippet.labels") }),
28927
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("sql_snippet.labels") }),
28924
28928
  /* @__PURE__ */ r.jsx(ct, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r.jsx(zi, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r.jsx(ct.Item, { children: i.key }, i.key)) })
28925
28929
  ] });
28926
28930
  }, ZD = ({
@@ -28931,14 +28935,14 @@ const ND = z(({
28931
28935
  t: e
28932
28936
  } = _(), n = Object.keys(((s = t.definition) == null ? void 0 : s.mock_context) ?? {});
28933
28937
  return n.length === 0 ? null : /* @__PURE__ */ r.jsxs(M, { children: [
28934
- /* @__PURE__ */ r.jsx(j, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("mock_context.label") }),
28938
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("mock_context.label") }),
28935
28939
  /* @__PURE__ */ r.jsx(ct, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r.jsx(zi, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r.jsx(ct.Item, { children: i }, i)) })
28936
28940
  ] });
28937
28941
  }, eM = ({
28938
28942
  content: t
28939
28943
  }) => t ? /* @__PURE__ */ r.jsxs(M, { children: [
28940
28944
  /* @__PURE__ */ r.jsx(L, { mt: 20, mb: 10, variant: "dashed" }),
28941
- /* @__PURE__ */ r.jsx(j, { ta: "left", c: "dimmed", children: "Preview" }),
28945
+ /* @__PURE__ */ r.jsx(w, { ta: "left", c: "dimmed", children: "Preview" }),
28942
28946
  /* @__PURE__ */ r.jsxs(k, { children: [
28943
28947
  /* @__PURE__ */ r.jsx(UD, { content: t }),
28944
28948
  /* @__PURE__ */ r.jsx(YD, { content: t }),
@@ -28963,7 +28967,7 @@ const nM = z(({
28963
28967
  stretchModal: e,
28964
28968
  shrinkModal: n
28965
28969
  }) => {
28966
- var E, P;
28970
+ var E, $;
28967
28971
  const {
28968
28972
  t: s
28969
28973
  } = _(), i = ae(), {
@@ -28980,12 +28984,12 @@ const nM = z(({
28980
28984
  content: null
28981
28985
  }
28982
28986
  }), h = ({
28983
- content: G
28987
+ content: W
28984
28988
  }) => {
28985
28989
  try {
28986
- if (!G)
28990
+ if (!W)
28987
28991
  throw new Error("please use a valid json file");
28988
- i.applyJSONSchema(G), Bn({
28992
+ i.applyJSONSchema(W), Bn({
28989
28993
  title: "Successful",
28990
28994
  message: "",
28991
28995
  color: "green"
@@ -29001,8 +29005,8 @@ const nM = z(({
29001
29005
  O(() => {
29002
29006
  if (!p)
29003
29007
  return;
29004
- const G = new FileReader();
29005
- G.readAsText(p, "UTF-8"), G.onload = (K) => {
29008
+ const W = new FileReader();
29009
+ W.readAsText(p, "UTF-8"), W.onload = (K) => {
29006
29010
  try {
29007
29011
  const he = tM(K);
29008
29012
  l("content", he), u("content");
@@ -29012,23 +29016,23 @@ const nM = z(({
29012
29016
  message: he.message
29013
29017
  });
29014
29018
  }
29015
- }, G.onabort = () => console.log("🟨 abort"), G.onerror = () => {
29016
- G.error && (console.error(G.error), d("content", {
29019
+ }, W.onabort = () => console.log("🟨 abort"), W.onerror = () => {
29020
+ W.error && (console.error(W.error), d("content", {
29017
29021
  type: "custom",
29018
- message: G.error.message
29022
+ message: W.error.message
29019
29023
  }));
29020
29024
  };
29021
29025
  }, [p]);
29022
- const [b] = c(["content"]), w = !b, T = (E = o == null ? void 0 : o.content) == null ? void 0 : E.message;
29026
+ const [b] = c(["content"]), j = !b, T = (E = o == null ? void 0 : o.content) == null ? void 0 : E.message;
29023
29027
  return O(() => {
29024
29028
  !b || T ? n() : e();
29025
29029
  }, [b, T]), /* @__PURE__ */ r.jsx(M, { mx: "auto", sx: {
29026
29030
  position: "relative"
29027
29031
  }, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(h), children: [
29028
- /* @__PURE__ */ r.jsx(dh, { label: s("import.json_file"), required: !0, value: p, onChange: m, error: (P = o == null ? void 0 : o.content) == null ? void 0 : P.message, sx: {
29032
+ /* @__PURE__ */ r.jsx(dh, { label: s("import.json_file"), required: !0, value: p, onChange: m, error: ($ = o == null ? void 0 : o.content) == null ? void 0 : $.message, sx: {
29029
29033
  maxWidth: 500
29030
29034
  } }),
29031
- T ? /* @__PURE__ */ r.jsx(Ve, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
29035
+ T ? /* @__PURE__ */ r.jsx(qe, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
29032
29036
  /* @__PURE__ */ r.jsxs("tr", { children: [
29033
29037
  /* @__PURE__ */ r.jsx("th", { children: s("import.this_dashboard") }),
29034
29038
  /* @__PURE__ */ r.jsx("td", { children: cn })
@@ -29041,7 +29045,7 @@ const nM = z(({
29041
29045
  ] })
29042
29046
  ] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29043
29047
  /* @__PURE__ */ r.jsx(eM, { content: b }),
29044
- /* @__PURE__ */ r.jsx(y, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(I, { type: "submit", color: "green", disabled: w, children: s("common.actions.confirm") }) })
29048
+ /* @__PURE__ */ r.jsx(y, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(I, { type: "submit", color: "green", disabled: j, children: s("common.actions.confirm") }) })
29045
29049
  ] })
29046
29050
  ] }) });
29047
29051
  }), Go = {
@@ -29060,7 +29064,7 @@ const nM = z(({
29060
29064
  }] = sn(!1), [i, {
29061
29065
  setTrue: a,
29062
29066
  setFalse: o
29063
- }] = it(!1), c = ((d = xe().content.views.VIE) == null ? void 0 : d.type) === W.Tabs;
29067
+ }] = it(!1), c = ((d = xe().content.views.VIE) == null ? void 0 : d.type) === G.Tabs;
29064
29068
  return c ? /* @__PURE__ */ r.jsx(ye, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(no, { size: 16 }), sx: {
29065
29069
  ...Go,
29066
29070
  transform: "none !important"
@@ -29122,11 +29126,11 @@ function oM(t, e, n) {
29122
29126
  } = m;
29123
29127
  switch (p) {
29124
29128
  case "builtin:op:open-link":
29125
- let w = b.urlTemplate.substring(0, 100);
29126
- b.urlTemplate.length >= 20 && (w += "..."), o.type = "interaction", o.data.interactions.push({
29129
+ let j = b.urlTemplate.substring(0, 100);
29130
+ b.urlTemplate.length >= 20 && (j += "..."), o.type = "interaction", o.data.interactions.push({
29127
29131
  schemaRef: p,
29128
29132
  urlTemplate: b.urlTemplate,
29129
- shortURLTemplate: w
29133
+ shortURLTemplate: j
29130
29134
  });
29131
29135
  return;
29132
29136
  case "builtin:op:open_view":
@@ -29228,15 +29232,15 @@ function pM(t, e) {
29228
29232
  }), s;
29229
29233
  }
29230
29234
  const mM = {
29231
- [W.Division]: "Div",
29232
- [W.Modal]: "Modal",
29233
- [W.Tabs]: "Tabs"
29235
+ [G.Division]: "Div",
29236
+ [G.Modal]: "Modal",
29237
+ [G.Tabs]: "Tabs"
29234
29238
  }, xM = yD;
29235
29239
  function gM(t) {
29236
29240
  return t.current.map((n, s) => {
29237
29241
  const i = cM(n.panelIDs.length, Ur, yu) + wa + fu;
29238
29242
  let a = [];
29239
- return n.type === W.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
29243
+ return n.type === G.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
29240
29244
  id: n.id,
29241
29245
  _node_type: "view-root",
29242
29246
  _view_type: n.type,
@@ -29264,7 +29268,7 @@ function gM(t) {
29264
29268
  function fM(t) {
29265
29269
  const e = S.keyBy(t, (n) => n.id);
29266
29270
  t.forEach((n) => {
29267
- n._node_type !== "view-root" || n._view_type !== W.Tabs || n._tab_view_ids.forEach((s) => {
29271
+ n._node_type !== "view-root" || n._view_type !== G.Tabs || n._tab_view_ids.forEach((s) => {
29268
29272
  e[s].parentNode = n.id;
29269
29273
  });
29270
29274
  });
@@ -29281,7 +29285,7 @@ function yM({
29281
29285
  edges: n
29282
29286
  }) {
29283
29287
  e.forEach((s) => {
29284
- s._node_type !== "view-root" || s._view_type !== W.Tabs || (s.sourcePosition = jt.Bottom, s.style.width = Sa + is * 2, s.style.height = fu + s._tab_view_ids.reduce((i, a) => {
29288
+ s._node_type !== "view-root" || s._view_type !== G.Tabs || (s.sourcePosition = jt.Bottom, s.style.width = Sa + is * 2, s.style.height = fu + s._tab_view_ids.reduce((i, a) => {
29285
29289
  const o = t[a];
29286
29290
  o.position.y = i, o.position.x = is;
29287
29291
  const l = o.style.height;
@@ -29372,8 +29376,8 @@ function kM(t) {
29372
29376
  key: n.urlTemplate,
29373
29377
  icon: Xs[n.schemaRef],
29374
29378
  text: /* @__PURE__ */ r.jsxs(y, { spacing: 4, children: [
29375
- /* @__PURE__ */ r.jsx(j, { children: "Open: " }),
29376
- /* @__PURE__ */ r.jsx(j, { color: "dimmed", children: n.shortURLTemplate })
29379
+ /* @__PURE__ */ r.jsx(w, { children: "Open: " }),
29380
+ /* @__PURE__ */ r.jsx(w, { color: "dimmed", children: n.shortURLTemplate })
29377
29381
  ] })
29378
29382
  });
29379
29383
  return;
@@ -29385,7 +29389,7 @@ function kM(t) {
29385
29389
  e.push({
29386
29390
  key: n.schemaRef + s,
29387
29391
  icon: Xs[n.schemaRef],
29388
- text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
29392
+ text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(w, { children: [
29389
29393
  "Set Filter: ",
29390
29394
  i
29391
29395
  ] }) })
@@ -29400,7 +29404,7 @@ function kM(t) {
29400
29404
  e.push({
29401
29405
  key: n.schemaRef + s,
29402
29406
  icon: Xs[n.schemaRef],
29403
- text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
29407
+ text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(w, { children: [
29404
29408
  "Clear Filter: ",
29405
29409
  i
29406
29410
  ] }) })
@@ -29426,7 +29430,7 @@ const CM = eh(({
29426
29430
  right: 0
29427
29431
  }, children: /* @__PURE__ */ r.jsx(op, { size: 12 }) }),
29428
29432
  /* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
29429
- /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(j, { children: t.label }) }),
29433
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(w, { children: t.label }) }),
29430
29434
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "xs", size: "sm", center: !0, children: a.map((o) => /* @__PURE__ */ r.jsx(ct.Item, { icon: o.icon, children: o.text }, o.key)) }) })
29431
29435
  ] }),
29432
29436
  /* @__PURE__ */ r.jsx(ao, { type: "source", position: n, isConnectable: e })
@@ -29435,7 +29439,7 @@ const CM = eh(({
29435
29439
  const zM = {
29436
29440
  interaction: CM
29437
29441
  }, TM = z(() => {
29438
- const t = Pe(), {
29442
+ const t = Fe(), {
29439
29443
  edges: e,
29440
29444
  nodes: n
29441
29445
  } = SM(t);
@@ -29518,7 +29522,7 @@ function MM({
29518
29522
  backgroundColor: n ? i.colors.gray[2] : "transparent"
29519
29523
  }), children: /* @__PURE__ */ r.jsx(y, { sx: {
29520
29524
  width: "calc(100% - 28px)"
29521
- }, onClick: t, children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: e }) }) }),
29525
+ }, onClick: t, children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: e }) }) }),
29522
29526
  n && /* @__PURE__ */ r.jsx(ye, { label: "Edit", position: "right", withinPortal: !0, children: /* @__PURE__ */ r.jsx(Y, { onClick: s, variant: "light", color: "blue", sx: {
29523
29527
  position: "absolute",
29524
29528
  top: 0,
@@ -29597,7 +29601,7 @@ const LM = z(() => {
29597
29601
  ] }),
29598
29602
  /* @__PURE__ */ r.jsx(qt.Section, { py: 5, sx: {
29599
29603
  borderBottom: "1px solid #eee"
29600
- }, children: /* @__PURE__ */ r.jsx(j, { align: "center", sx: {
29604
+ }, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
29601
29605
  userSelect: "none",
29602
29606
  cursor: "default"
29603
29607
  }, children: t("view.labels") }) }),
@@ -29710,7 +29714,7 @@ const LM = z(() => {
29710
29714
  s.editor.setPath(["_QUERIES_", c]);
29711
29715
  };
29712
29716
  return /* @__PURE__ */ r.jsx(V, { label: /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
29713
- /* @__PURE__ */ r.jsx(j, { children: n("filter.widget.common.use_query_data_as_options") }),
29717
+ /* @__PURE__ */ r.jsx(w, { children: n("filter.widget.common.use_query_data_as_options") }),
29714
29718
  t && /* @__PURE__ */ r.jsx(I, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(si, { size: 16 }), variant: "subtle", color: "blue", onClick: () => l(t), children: n("query.open") })
29715
29719
  ] }), data: a, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
29716
29720
  flexGrow: 1
@@ -29770,7 +29774,7 @@ const LM = z(() => {
29770
29774
  zIndex: 200,
29771
29775
  height: "100%",
29772
29776
  width: "100%"
29773
- }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29777
+ }, children: /* @__PURE__ */ r.jsx(w, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29774
29778
  ] }),
29775
29779
  a.length > 0 && /* @__PURE__ */ r.jsx(Nn, { label: n("filter.widget.select.default_selection"), data: o, value: [...s.default_value], onChange: s.setDefaultValue }),
29776
29780
  a.map((l, c) => /* @__PURE__ */ r.jsxs(Ut, { gap: 10, sx: {
@@ -29842,7 +29846,7 @@ const LM = z(() => {
29842
29846
  zIndex: 200,
29843
29847
  height: "100%",
29844
29848
  width: "100%"
29845
- }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29849
+ }, children: /* @__PURE__ */ r.jsx(w, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29846
29850
  ] }),
29847
29851
  o.length > 0 && /* @__PURE__ */ r.jsx(V, { label: n("filter.widget.select.default_selection"), data: l, value: i.default_value, onChange: i.setDefaultValue }),
29848
29852
  o.map((c, d) => /* @__PURE__ */ r.jsxs(Ut, { gap: 10, sx: {
@@ -29933,7 +29937,7 @@ const LM = z(() => {
29933
29937
  return /* @__PURE__ */ r.jsxs(M, { sx: {
29934
29938
  maxWidth: "480px"
29935
29939
  }, children: [
29936
- /* @__PURE__ */ r.jsx(j, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
29940
+ /* @__PURE__ */ r.jsx(w, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
29937
29941
  /* @__PURE__ */ r.jsx(rn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e, null, 4) })
29938
29942
  ] });
29939
29943
  }), QM = {
@@ -29979,7 +29983,7 @@ const LM = z(() => {
29979
29983
  /* @__PURE__ */ r.jsxs(M, { sx: {
29980
29984
  maxWidth: "600px"
29981
29985
  }, children: [
29982
- /* @__PURE__ */ r.jsx(j, { pb: "md", color: "gray", children: n("common.titles.edit") }),
29986
+ /* @__PURE__ */ r.jsx(w, { pb: "md", color: "gray", children: n("common.titles.edit") }),
29983
29987
  /* @__PURE__ */ r.jsxs(k, { children: [
29984
29988
  /* @__PURE__ */ r.jsxs(y, { noWrap: !0, children: [
29985
29989
  /* @__PURE__ */ r.jsx(
@@ -30021,7 +30025,7 @@ const LM = z(() => {
30021
30025
  return null;
30022
30026
  const a = i.filters.findByID(t);
30023
30027
  if (!a)
30024
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
30028
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
30025
30029
  "Filter by ID[",
30026
30030
  t,
30027
30031
  "] is not found"
@@ -30073,7 +30077,7 @@ const LM = z(() => {
30073
30077
  }, spacing: "sm", pb: "59px", children: [
30074
30078
  /* @__PURE__ */ r.jsx(M, { pt: 9, pb: 8, sx: {
30075
30079
  borderBottom: "1px solid #eee"
30076
- }, children: /* @__PURE__ */ r.jsx(j, { px: "md", align: "left", sx: {
30080
+ }, children: /* @__PURE__ */ r.jsx(w, { px: "md", align: "left", sx: {
30077
30081
  userSelect: "none",
30078
30082
  cursor: "default"
30079
30083
  }, children: t("filter.manage") }) }),
@@ -30097,7 +30101,7 @@ const LM = z(() => {
30097
30101
  /* @__PURE__ */ r.jsx(M, { sx: {
30098
30102
  flexGrow: 1,
30099
30103
  overflow: "auto"
30100
- }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
30104
+ }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, sx: {
30101
30105
  tableLayout: "fixed"
30102
30106
  }, children: [
30103
30107
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -30161,7 +30165,7 @@ const LM = z(() => {
30161
30165
  borderBottom: "1px solid #eee",
30162
30166
  background: "#efefef",
30163
30167
  flexGrow: 0
30164
- }, children: /* @__PURE__ */ r.jsx(j, { weight: 500, children: t("mock_context.label") }) }),
30168
+ }, children: /* @__PURE__ */ r.jsx(w, { weight: 500, children: t("mock_context.label") }) }),
30165
30169
  /* @__PURE__ */ r.jsxs(y, { grow: !0, px: "md", pb: "md", pt: 0, sx: {
30166
30170
  flexGrow: 1,
30167
30171
  position: "relative",
@@ -30170,7 +30174,7 @@ const LM = z(() => {
30170
30174
  /* @__PURE__ */ r.jsxs(k, { spacing: 10, sx: {
30171
30175
  maxWidth: "unset !important"
30172
30176
  }, children: [
30173
- /* @__PURE__ */ r.jsx(j, { children: t("mock_context.hint") }),
30177
+ /* @__PURE__ */ r.jsx(w, { children: t("mock_context.hint") }),
30174
30178
  /* @__PURE__ */ r.jsx(tl, { validationError: "Invalid json", formatOnBlur: !0, autosize: !0, minRows: 30, value: n, onChange: s, sx: {
30175
30179
  flexGrow: 1
30176
30180
  } })
@@ -30198,14 +30202,14 @@ const LM = z(() => {
30198
30202
  t
30199
30203
  } = _(), {
30200
30204
  panel: e
30201
- } = Ct(), n = Pe().layouts.findItemByPanelID(e.id), {
30205
+ } = Ct(), n = Fe().layouts.findItemByPanelID(e.id), {
30202
30206
  style: s
30203
30207
  } = e;
30204
30208
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30205
30209
  /* @__PURE__ */ r.jsx(L, { mb: -10, label: t("panel.style.label"), labelPosition: "center", variant: "dashed" }),
30206
30210
  /* @__PURE__ */ r.jsxs(k, { spacing: 20, children: [
30207
30211
  /* @__PURE__ */ r.jsxs(y, { grow: !0, align: "top", children: [
30208
- /* @__PURE__ */ r.jsx(le, { label: t("panel.style.width"), min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: t("panel.style.width_postfix") }), styles: {
30212
+ /* @__PURE__ */ r.jsx(le, { label: t("panel.style.width"), min: 1, max: 36, step: 1, precision: 0, rightSection: /* @__PURE__ */ r.jsx(w, { size: 12, children: t("panel.style.width_postfix") }), styles: {
30209
30213
  rightSection: {
30210
30214
  width: "auto",
30211
30215
  maxWidth: "100px",
@@ -30215,7 +30219,7 @@ const LM = z(() => {
30215
30219
  }, value: n.w, onChange: (i) => {
30216
30220
  i && n.setWidth(i);
30217
30221
  } }),
30218
- /* @__PURE__ */ r.jsx(le, { label: t("panel.style.height"), rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: t("panel.style.height_postfix") }), styles: {
30222
+ /* @__PURE__ */ r.jsx(le, { label: t("panel.style.height"), rightSection: /* @__PURE__ */ r.jsx(w, { size: 12, children: t("panel.style.height_postfix") }), styles: {
30219
30223
  rightSection: {
30220
30224
  width: "40px"
30221
30225
  }
@@ -30245,11 +30249,11 @@ const LM = z(() => {
30245
30249
  const l = !s.trim();
30246
30250
  return /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
30247
30251
  /* @__PURE__ */ r.jsxs(y, { align: "center", children: [
30248
- /* @__PURE__ */ r.jsxs(j, { size: 14, fw: 500, children: [
30252
+ /* @__PURE__ */ r.jsxs(w, { size: 14, fw: 500, children: [
30249
30253
  t("panel.panel_name"),
30250
30254
  /* @__PURE__ */ r.jsx(ZM, {})
30251
30255
  ] }),
30252
- /* @__PURE__ */ r.jsx(Y, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(Ne, { size: 18 }) })
30256
+ /* @__PURE__ */ r.jsx(Y, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(Pe, { size: 18 }) })
30253
30257
  ] }),
30254
30258
  /* @__PURE__ */ r.jsx(D, { value: s, onChange: i, required: !0 })
30255
30259
  ] });
@@ -30334,7 +30338,7 @@ function vu({
30334
30338
  });
30335
30339
  return t.length === 0 ? /* @__PURE__ */ r.jsx(M, { sx: {
30336
30340
  height: "5em"
30337
- } }) : /* @__PURE__ */ r.jsx(Ue, { children: /* @__PURE__ */ r.jsxs(Ve, { sx: rL, children: [
30341
+ } }) : /* @__PURE__ */ r.jsx(Ue, { children: /* @__PURE__ */ r.jsxs(qe, { sx: rL, children: [
30338
30342
  /* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.headers.map((i) => /* @__PURE__ */ r.jsxs("th", { style: {
30339
30343
  width: i.getSize()
30340
30344
  }, children: [
@@ -30391,7 +30395,7 @@ const sL = [{
30391
30395
  !d && /* @__PURE__ */ r.jsx(
30392
30396
  V,
30393
30397
  {
30394
- icon: /* @__PURE__ */ r.jsx(j, { ta: "center", color: "dimmed", size: 14, children: a("common.pagination.page_size") }),
30398
+ icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: a("common.pagination.page_size") }),
30395
30399
  size: "xs",
30396
30400
  styles: iL,
30397
30401
  data: sL,
@@ -30400,7 +30404,7 @@ const sL = [{
30400
30404
  }
30401
30405
  )
30402
30406
  ] }),
30403
- /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(j, { color: "dimmed", my: 0, size: 14, children: a("common.pagination.total_rows", {
30407
+ /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(w, { color: "dimmed", my: 0, size: 14, children: a("common.pagination.total_rows", {
30404
30408
  total: o
30405
30409
  }) }) })
30406
30410
  ] });
@@ -30427,13 +30431,13 @@ const sL = [{
30427
30431
  }), lL = ({
30428
30432
  queryID: t
30429
30433
  }) => {
30430
- const e = Pe(), {
30434
+ const e = Fe(), {
30431
30435
  state: n,
30432
30436
  error: s
30433
30437
  } = e.getDataStuffByID(t), i = A.useMemo(() => e.queries.findByID(t), [e, t]);
30434
- return n === "loading" ? null : s ? /* @__PURE__ */ r.jsx(j, { mt: 10, color: "red", size: "md", align: "center", sx: {
30438
+ return n === "loading" ? null : s ? /* @__PURE__ */ r.jsx(w, { mt: 10, color: "red", size: "md", align: "center", sx: {
30435
30439
  fontFamily: "monospace"
30436
- }, children: s }) : i != null && i.stateMessage ? /* @__PURE__ */ r.jsx(j, { mt: 10, color: "gray", align: "center", children: i.stateMessage }) : null;
30440
+ }, children: s }) : i != null && i.stateMessage ? /* @__PURE__ */ r.jsx(w, { mt: 10, color: "gray", align: "center", children: i.stateMessage }) : null;
30437
30441
  }, yi = z(({
30438
30442
  id: t,
30439
30443
  moreActions: e,
@@ -30441,7 +30445,7 @@ const sL = [{
30441
30445
  }) => {
30442
30446
  const {
30443
30447
  t: s
30444
- } = _(), i = Pe(), {
30448
+ } = _(), i = Fe(), {
30445
30449
  data: a,
30446
30450
  state: o
30447
30451
  } = i.getDataStuffByID(t), l = o === "loading", c = Ge(() => {
@@ -30461,7 +30465,7 @@ const sL = [{
30461
30465
  borderBottom: "1px solid #eee",
30462
30466
  background: "#efefef"
30463
30467
  }, children: [
30464
- /* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(j, { weight: 500, children: s("data.preview_data") }) }),
30468
+ /* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(w, { weight: 500, children: s("data.preview_data") }) }),
30465
30469
  /* @__PURE__ */ r.jsxs(y, { pr: 15, children: [
30466
30470
  e,
30467
30471
  /* @__PURE__ */ r.jsx(Y, { variant: "subtle", color: "blue", disabled: l, onClick: c, children: /* @__PURE__ */ r.jsx(Si, { size: 16 }) }),
@@ -30518,7 +30522,7 @@ const sL = [{
30518
30522
  flexShrink: 0
30519
30523
  }, children: [
30520
30524
  /* @__PURE__ */ r.jsx(y, { children: /* @__PURE__ */ r.jsx(nu, {}) }),
30521
- /* @__PURE__ */ r.jsx(y, { grow: !0, position: "center", children: /* @__PURE__ */ r.jsx(j, { lineClamp: 1, weight: "bold", children: t.title.show ? t.name : "" }) }),
30525
+ /* @__PURE__ */ r.jsx(y, { grow: !0, position: "center", children: /* @__PURE__ */ r.jsx(w, { lineClamp: 1, weight: "bold", children: t.title.show ? t.name : "" }) }),
30522
30526
  /* @__PURE__ */ r.jsx(y, { position: "right", spacing: 0, sx: {
30523
30527
  height: "28px"
30524
30528
  } })
@@ -30572,7 +30576,7 @@ class uL {
30572
30576
  }
30573
30577
  addNew() {
30574
30578
  const e = this.panel.variables.filter((n) => n.name.startsWith(Zs.name)).length;
30575
- this.panel.addVariable(qe({
30579
+ this.panel.addVariable(Ne({
30576
30580
  ...Zs,
30577
30581
  name: `${Zs.name}${e || ""}`
30578
30582
  })), this.selected = cl(this.panel.variables);
@@ -30621,12 +30625,12 @@ function pL({
30621
30625
  }, u = Xo(), h = A.useMemo(() => Object.entries(u.colors).map(([p, m]) => m[6]), [u]);
30622
30626
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30623
30627
  /* @__PURE__ */ r.jsxs(y, { position: "left", ref: s, children: [
30624
- /* @__PURE__ */ r.jsx(j, { children: t }),
30628
+ /* @__PURE__ */ r.jsx(w, { children: t }),
30625
30629
  /* @__PURE__ */ r.jsx(Y, { mr: 5, variant: "filled", color: "blue", disabled: !c, onClick: d, children: /* @__PURE__ */ r.jsx(Gt, { size: 20 }) })
30626
30630
  ] }),
30627
30631
  /* @__PURE__ */ r.jsxs(y, { children: [
30628
30632
  i.map((p, m) => /* @__PURE__ */ r.jsx(_i, { value: p, onChange: (b) => {
30629
- a((w) => (w.splice(m, 1, b), [...w]));
30633
+ a((j) => (j.splice(m, 1, b), [...j]));
30630
30634
  }, swatches: h, rightSection: /* @__PURE__ */ r.jsx(Y, { onClick: () => l(m), color: "red", children: /* @__PURE__ */ r.jsx(ce, { size: 14 }) }), sx: {
30631
30635
  width: "45%"
30632
30636
  } })),
@@ -30650,13 +30654,13 @@ function xL({
30650
30654
  };
30651
30655
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30652
30656
  /* @__PURE__ */ r.jsxs(y, { position: "left", ref: i, children: [
30653
- /* @__PURE__ */ r.jsx(j, { children: t }),
30657
+ /* @__PURE__ */ r.jsx(w, { children: t }),
30654
30658
  /* @__PURE__ */ r.jsx(Y, { mr: 5, variant: "filled", color: "blue", disabled: !d, onClick: u, children: /* @__PURE__ */ r.jsx(Gt, { size: 20 }) })
30655
30659
  ] }),
30656
30660
  /* @__PURE__ */ r.jsxs(y, { children: [
30657
30661
  a.map((h, p) => /* @__PURE__ */ r.jsx(D, { type: s, value: h, onChange: (m) => {
30658
30662
  const b = m.currentTarget.value;
30659
- o((w) => (w.splice(p, 1, b), [...w]));
30663
+ o((j) => (j.splice(p, 1, b), [...j]));
30660
30664
  }, rightSection: /* @__PURE__ */ r.jsx(Y, { onClick: () => c(p), color: "red", children: /* @__PURE__ */ r.jsx(ce, { size: 14 }) }), sx: {
30661
30665
  width: "45%"
30662
30666
  } })),
@@ -30746,7 +30750,7 @@ const gL = A.forwardRef(xL), fL = A.forwardRef(function({
30746
30750
  ] })
30747
30751
  ] }),
30748
30752
  s && /* @__PURE__ */ r.jsx(Rr, { variant: "contained", children: /* @__PURE__ */ r.jsxs(Rr.Item, { value: "Styles", children: [
30749
- /* @__PURE__ */ r.jsx(Rr.Control, { icon: /* @__PURE__ */ r.jsx(j, { size: "xl", children: "🖼️" }), children: o("style.label") }),
30753
+ /* @__PURE__ */ r.jsx(Rr.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
30750
30754
  /* @__PURE__ */ r.jsx(Rr.Panel, { children: /* @__PURE__ */ r.jsx(fL, { value: e, onChange: n }) })
30751
30755
  ] }) }),
30752
30756
  /* @__PURE__ */ r.jsx(I, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 16 }), color: "red", variant: "light", onClick: i, children: o("panel.variable.delete") })
@@ -30758,7 +30762,7 @@ const gL = A.forwardRef(xL), fL = A.forwardRef(function({
30758
30762
  return /* @__PURE__ */ r.jsxs(k, { "data-testid": "variable-editor", align: "stretch", children: [
30759
30763
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
30760
30764
  /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(vr, { size: 18 }), children: e("common.actions.revert_changes") }),
30761
- /* @__PURE__ */ r.jsx(I, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 18 }), children: e("common.actions.save_changes") })
30765
+ /* @__PURE__ */ r.jsx(I, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 18 }), children: e("common.actions.save_changes") })
30762
30766
  ] }),
30763
30767
  /* @__PURE__ */ r.jsx(bL, { value: Dt(n.copy), onChange: n.update, remove: s })
30764
30768
  ] });
@@ -30810,7 +30814,7 @@ const _L = z(({
30810
30814
  panel: e
30811
30815
  } = Ct();
30812
30816
  return Object.keys(e.variableStrings).length === 0 ? null : /* @__PURE__ */ r.jsxs(k, { mt: 22, spacing: 4, children: [
30813
- /* @__PURE__ */ r.jsx(j, { size: "sm", fw: 500, color: "dimmed", children: t("panel.variable.labels") }),
30817
+ /* @__PURE__ */ r.jsx(w, { size: "sm", fw: 500, color: "dimmed", children: t("panel.variable.labels") }),
30814
30818
  /* @__PURE__ */ r.jsx(rn, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e.variableStrings, null, 4) })
30815
30819
  ] });
30816
30820
  });
@@ -30950,7 +30954,7 @@ const zL = z(() => {
30950
30954
  flexShrink: 0
30951
30955
  }, children: [
30952
30956
  /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(jl, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
30953
- /* @__PURE__ */ r.jsx(I, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 14 }), onClick: d, disabled: i === e, children: n("common.actions.confirm") })
30957
+ /* @__PURE__ */ r.jsx(I, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 14 }), onClick: d, disabled: i === e, children: n("common.actions.confirm") })
30954
30958
  ] })
30955
30959
  ] }) })
30956
30960
  ] });
@@ -31032,7 +31036,7 @@ const ML = z(({
31032
31036
  /* @__PURE__ */ r.jsxs(y, { px: 16, position: "apart", sx: {
31033
31037
  borderBottom: "1px solid #eee"
31034
31038
  }, children: [
31035
- /* @__PURE__ */ r.jsx(j, { pt: 9, pb: 8, children: t.name }),
31039
+ /* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: t.name }),
31036
31040
  /* @__PURE__ */ r.jsxs(y, { position: "right", noWrap: !0, children: [
31037
31041
  /* @__PURE__ */ r.jsx(TL, { panel: t, sourceViewID: h }),
31038
31042
  /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: "red", onClick: m, leftIcon: /* @__PURE__ */ r.jsx(Qt, { size: 14 }), children: e("panel.delete") })
@@ -31042,8 +31046,8 @@ const ML = z(({
31042
31046
  /* @__PURE__ */ r.jsxs(g.List, { children: [
31043
31047
  /* @__PURE__ */ r.jsx(g.Tab, { value: "Data", disabled: d, children: e("data.label") }),
31044
31048
  /* @__PURE__ */ r.jsx(g.Tab, { value: "Panel", children: e("panel.label") }),
31045
- /* @__PURE__ */ r.jsx(g.Tab, { value: "Variables", disabled: u, children: /* @__PURE__ */ r.jsx(ye, { label: "Requires data", disabled: !u, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(j, { children: e("panel.variable.labels") }) }) }),
31046
- /* @__PURE__ */ r.jsx(g.Tab, { value: "Visualization", disabled: u, children: /* @__PURE__ */ r.jsx(ye, { label: "Requires data", disabled: !u, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(j, { children: e("visualization.label") }) }) }),
31049
+ /* @__PURE__ */ r.jsx(g.Tab, { value: "Variables", disabled: u, children: /* @__PURE__ */ r.jsx(ye, { label: "Requires data", disabled: !u, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(w, { children: e("panel.variable.labels") }) }) }),
31050
+ /* @__PURE__ */ r.jsx(g.Tab, { value: "Visualization", disabled: u, children: /* @__PURE__ */ r.jsx(ye, { label: "Requires data", disabled: !u, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r.jsx(w, { children: e("visualization.label") }) }) }),
31047
31051
  /* @__PURE__ */ r.jsx(g.Tab, { value: "Interactions", children: e("interactions.label") })
31048
31052
  ] }),
31049
31053
  /* @__PURE__ */ r.jsxs(g.Panel, { value: "Data", children: [
@@ -31062,13 +31066,13 @@ const ML = z(({
31062
31066
  }) => {
31063
31067
  const n = ae();
31064
31068
  if (!n.views.findByID(t))
31065
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
31069
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
31066
31070
  "View by ID[",
31067
31071
  t,
31068
31072
  "] is not found"
31069
31073
  ] });
31070
31074
  const i = n.panels.findByID(e);
31071
- return i ? /* @__PURE__ */ r.jsx(ML, { panel: i }) : /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
31075
+ return i ? /* @__PURE__ */ r.jsx(ML, { panel: i }) : /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
31072
31076
  "Panel by ID[",
31073
31077
  e,
31074
31078
  "] is not found"
@@ -31081,7 +31085,7 @@ const ML = z(({
31081
31085
  }, o = () => {
31082
31086
  s.openConfirmModal({
31083
31087
  title: "Delete ununsed queries?",
31084
- children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: "This action cannot be undone." }),
31088
+ children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: "This action cannot be undone." }),
31085
31089
  labels: {
31086
31090
  confirm: t("common.actions.confirm"),
31087
31091
  cancel: t("common.actions.cancel")
@@ -31105,7 +31109,7 @@ const ML = z(({
31105
31109
  }, spacing: "sm", pb: "59px", children: [
31106
31110
  /* @__PURE__ */ r.jsx(M, { pt: 9, pb: 8, sx: {
31107
31111
  borderBottom: "1px solid #eee"
31108
- }, children: /* @__PURE__ */ r.jsx(j, { px: "md", align: "left", sx: {
31112
+ }, children: /* @__PURE__ */ r.jsx(w, { px: "md", align: "left", sx: {
31109
31113
  userSelect: "none",
31110
31114
  cursor: "default"
31111
31115
  }, children: t("query.manage") }) }),
@@ -31132,7 +31136,7 @@ const ML = z(({
31132
31136
  /* @__PURE__ */ r.jsx(M, { sx: {
31133
31137
  flexGrow: 1,
31134
31138
  overflow: "auto"
31135
- }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
31139
+ }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, sx: {
31136
31140
  tableLayout: "fixed"
31137
31141
  }, children: [
31138
31142
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31237,7 +31241,7 @@ const ML = z(({
31237
31241
  const {
31238
31242
  columns: e
31239
31243
  } = t;
31240
- return e.loading ? /* @__PURE__ */ r.jsx(ju, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : e.empty ? null : /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, fontSize: 14, sx: {
31244
+ return e.loading ? /* @__PURE__ */ r.jsx(ju, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : e.empty ? null : /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, fontSize: 14, sx: {
31241
31245
  width: "auto",
31242
31246
  minWidth: "1000px",
31243
31247
  alignSelf: "flex-start",
@@ -31297,7 +31301,7 @@ const ML = z(({
31297
31301
  const {
31298
31302
  indexes: e
31299
31303
  } = t, n = e.data;
31300
- return /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, fontSize: 14, sx: {
31304
+ return /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, fontSize: 14, sx: {
31301
31305
  width: "auto",
31302
31306
  minWidth: "950px",
31303
31307
  alignSelf: "flex-start",
@@ -31345,7 +31349,7 @@ const ML = z(({
31345
31349
  const {
31346
31350
  indexes: e
31347
31351
  } = t, n = e.data;
31348
- return /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, fontSize: 14, sx: {
31352
+ return /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, fontSize: 14, sx: {
31349
31353
  width: "auto",
31350
31354
  minWidth: "850px",
31351
31355
  alignSelf: "flex-start",
@@ -31475,7 +31479,7 @@ const BL = z(({
31475
31479
  /* @__PURE__ */ r.jsx(
31476
31480
  V,
31477
31481
  {
31478
- icon: /* @__PURE__ */ r.jsx(j, { ta: "center", color: "dimmed", size: 14, children: e("common.pagination.page_size") }),
31482
+ icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: e("common.pagination.page_size") }),
31479
31483
  size: "xs",
31480
31484
  styles: QL,
31481
31485
  data: GL,
@@ -31484,7 +31488,7 @@ const BL = z(({
31484
31488
  }
31485
31489
  )
31486
31490
  ] }),
31487
- /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(j, { color: "dimmed", my: 0, size: 14, children: e("common.pagination.total_rows", {
31491
+ /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(w, { color: "dimmed", my: 0, size: 14, children: e("common.pagination.total_rows", {
31488
31492
  total: n.total
31489
31493
  }) }) })
31490
31494
  ] });
@@ -31492,9 +31496,9 @@ const BL = z(({
31492
31496
  dataSource: t
31493
31497
  }) => {
31494
31498
  const e = t.tableData;
31495
- return e.maxPage === 0 ? /* @__PURE__ */ r.jsx(j, { mt: 20, color: "red", size: "md", align: "center", sx: {
31499
+ return e.maxPage === 0 ? /* @__PURE__ */ r.jsx(w, { mt: 20, color: "red", size: "md", align: "center", sx: {
31496
31500
  fontFamily: "monospace"
31497
- }, children: "This table is empty" }) : e.error ? /* @__PURE__ */ r.jsx(j, { mt: 20, color: "red", size: "md", align: "center", sx: {
31501
+ }, children: "This table is empty" }) : e.error ? /* @__PURE__ */ r.jsx(w, { mt: 20, color: "red", size: "md", align: "center", sx: {
31498
31502
  fontFamily: "monospace"
31499
31503
  }, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ r.jsx(WL, { visible: !0 }) : /* @__PURE__ */ r.jsxs(Ue, { children: [
31500
31504
  /* @__PURE__ */ r.jsx(HL, { dataSource: t }),
@@ -31528,7 +31532,7 @@ const BL = z(({
31528
31532
  } = _();
31529
31533
  return O(() => {
31530
31534
  t.loadTablesIfEmpty();
31531
- }, [t]), t.tables.error ? /* @__PURE__ */ r.jsx(j, { color: "red", size: "md", align: "center", sx: {
31535
+ }, [t]), t.tables.error ? /* @__PURE__ */ r.jsx(w, { color: "red", size: "md", align: "center", sx: {
31532
31536
  fontFamily: "monospace"
31533
31537
  }, children: t.tables.error }) : /* @__PURE__ */ r.jsxs(Ut, { sx: {
31534
31538
  height: "100%"
@@ -31579,7 +31583,7 @@ const BL = z(({
31579
31583
  /* @__PURE__ */ r.jsx(Se, { opened: s, onClose: () => i(!1), title: /* @__PURE__ */ r.jsxs(y, { position: "apart", sx: {
31580
31584
  flexGrow: 1
31581
31585
  }, children: [
31582
- /* @__PURE__ */ r.jsx(j, { fw: 500, children: n("data_source.explorer") }),
31586
+ /* @__PURE__ */ r.jsx(w, { fw: 500, children: n("data_source.explorer") }),
31583
31587
  /* @__PURE__ */ r.jsxs(y, { spacing: 7, children: [
31584
31588
  /* @__PURE__ */ r.jsx(_n, { variant: "gradient", gradient: {
31585
31589
  from: "indigo",
@@ -31614,10 +31618,10 @@ const BL = z(({
31614
31618
  }
31615
31619
  }, children: [
31616
31620
  /* @__PURE__ */ r.jsx(Ep, { size: 14, color: "#228be6" }),
31617
- /* @__PURE__ */ r.jsx(j, { color: "blue", children: t })
31621
+ /* @__PURE__ */ r.jsx(w, { color: "blue", children: t })
31618
31622
  ] }) : /* @__PURE__ */ r.jsxs(y, { position: "apart", ref: s, ...n, children: [
31619
- /* @__PURE__ */ r.jsx(j, { children: t }),
31620
- /* @__PURE__ */ r.jsx(j, { children: e })
31623
+ /* @__PURE__ */ r.jsx(w, { children: t }),
31624
+ /* @__PURE__ */ r.jsx(w, { children: e })
31621
31625
  ] })), ZL = z(({
31622
31626
  value: t,
31623
31627
  onChange: e
@@ -31653,7 +31657,7 @@ const BL = z(({
31653
31657
  size: "xs",
31654
31658
  px: 10
31655
31659
  } })
31656
- ] }), itemComponent: XL, rightSection: d ? /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
31660
+ ] }), itemComponent: XL, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
31657
31661
  root: {
31658
31662
  flex: 1
31659
31663
  },
@@ -31676,8 +31680,8 @@ const BL = z(({
31676
31680
  ...i
31677
31681
  } = t;
31678
31682
  return /* @__PURE__ */ r.jsx("div", { ref: e, ...i, children: /* @__PURE__ */ r.jsxs(y, { position: "apart", noWrap: !0, children: [
31679
- /* @__PURE__ */ r.jsx(j, { children: n }),
31680
- /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: s })
31683
+ /* @__PURE__ */ r.jsx(w, { children: n }),
31684
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: s })
31681
31685
  ] }) });
31682
31686
  }), eA = z(({
31683
31687
  queryModel: t
@@ -31697,7 +31701,7 @@ const BL = z(({
31697
31701
  flex: 1
31698
31702
  }, value: n, onChange: (i) => {
31699
31703
  s(i.currentTarget.value);
31700
- }, rightSection: /* @__PURE__ */ r.jsx(Y, { variant: "filled", color: "blue", size: "sm", onClick: () => t.setName(n), disabled: n === t.name, children: /* @__PURE__ */ r.jsx(Ne, { size: 16 }) }), onBlur: () => {
31704
+ }, rightSection: /* @__PURE__ */ r.jsx(Y, { variant: "filled", color: "blue", size: "sm", onClick: () => t.setName(n), disabled: n === t.name, children: /* @__PURE__ */ r.jsx(Pe, { size: 16 }) }), onBlur: () => {
31701
31705
  t.setName(n);
31702
31706
  } }),
31703
31707
  /* @__PURE__ */ r.jsx(ZL, { value: {
@@ -31726,7 +31730,7 @@ function tA({
31726
31730
  }
31727
31731
  const nA = z(() => {
31728
31732
  const e = [...xe().globalSQLSnippets.list];
31729
- return e.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ve, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
31733
+ return e.length === 0 ? null : /* @__PURE__ */ r.jsxs(qe, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
31730
31734
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
31731
31735
  /* @__PURE__ */ r.jsx("th", { children: "Key" }),
31732
31736
  /* @__PURE__ */ r.jsx("th", { children: "Value" })
@@ -31846,7 +31850,7 @@ WHERE
31846
31850
  }, a = (o) => {
31847
31851
  s.setPath(["_VIEWS_", o]);
31848
31852
  };
31849
- return /* @__PURE__ */ r.jsx(k, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, sx: {
31853
+ return /* @__PURE__ */ r.jsx(k, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, sx: {
31850
31854
  tableLayout: "fixed"
31851
31855
  }, children: [
31852
31856
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31898,7 +31902,7 @@ WHERE
31898
31902
  return i ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
31899
31903
  /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(vl, { size: 16 }) : /* @__PURE__ */ r.jsx(Pp, { size: 16 }), children: e("query.dependency.label") }) }),
31900
31904
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(ct.Item, { children: [
31901
- /* @__PURE__ */ r.jsx(j, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
31905
+ /* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
31902
31906
  /* @__PURE__ */ r.jsx(ct, { withPadding: !0, size: 14, sx: {
31903
31907
  fontFamily: "monospace",
31904
31908
  svg: {
@@ -31942,7 +31946,7 @@ WHERE
31942
31946
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
31943
31947
  /* @__PURE__ */ r.jsx(I, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(fl, { size: 16 }), children: e("common.actions.reset_to_default") }),
31944
31948
  /* @__PURE__ */ r.jsx(I, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(vr, { size: 16 }), children: e("common.actions.revert_changes") }),
31945
- /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Ne, { size: 16 }), children: e("common.actions.save_changes") })
31949
+ /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 16 }), children: e("common.actions.save_changes") })
31946
31950
  ] })
31947
31951
  ] }),
31948
31952
  /* @__PURE__ */ r.jsx(za, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
@@ -31963,7 +31967,7 @@ WHERE
31963
31967
  } }), dA = z(({
31964
31968
  value: t
31965
31969
  }) => {
31966
- const n = Pe().payloadForSQL, s = A.useMemo(() => Ii(t, n), [t, n]);
31970
+ const n = Fe().payloadForSQL, s = A.useMemo(() => Ii(t, n), [t, n]);
31967
31971
  return /* @__PURE__ */ r.jsx(cA, { height: "100%", value: s });
31968
31972
  }), Ko = {
31969
31973
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -32015,9 +32019,9 @@ WHERE
32015
32019
  return t.isTransform ? /* @__PURE__ */ r.jsxs(k, { py: 20, px: 20, sx: {
32016
32020
  height: "100%"
32017
32021
  }, children: [
32018
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: e("query.transform.guide.pick_queries") }),
32022
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: e("query.transform.guide.pick_queries") }),
32019
32023
  /* @__PURE__ */ r.jsx(Nn, { data: n.queries.optionsWithoutTransform, value: [...t.dep_query_ids], onChange: t.setDependantQueryIDs, maxDropdownHeight: 800 }),
32020
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: e("query.transform.guide.write_function") }),
32024
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: e("query.transform.guide.write_function") }),
32021
32025
  /* @__PURE__ */ r.jsx(M, { sx: {
32022
32026
  flexGrow: 1
32023
32027
  }, children: /* @__PURE__ */ r.jsx(Gn, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: hA.pre }) })
@@ -32044,8 +32048,8 @@ WHERE
32044
32048
  t.typedAsSQL && /* @__PURE__ */ r.jsx(g.Tab, { value: "SQL", children: e("query.request") }),
32045
32049
  t.typedAsHTTP && /* @__PURE__ */ r.jsx(g.Tab, { value: "HTTP", children: e("query.request") }),
32046
32050
  t.isTransform && /* @__PURE__ */ r.jsx(g.Tab, { value: "Transform", children: e("query.transform.label") }),
32047
- /* @__PURE__ */ r.jsx(g.Tab, { value: "Data", disabled: !t.canPreviewData, children: /* @__PURE__ */ r.jsx(ye, { label: t.guideToPreviewData, disabled: t.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: e("data.preview_data") }) }) }),
32048
- /* @__PURE__ */ r.jsx(g.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ r.jsx(ye, { label: e("query.usage.unused_description"), disabled: !l, withinPortal: !0, children: /* @__PURE__ */ r.jsx(j, { children: e("query.usage.label") }) }) })
32051
+ /* @__PURE__ */ r.jsx(g.Tab, { value: "Data", disabled: !t.canPreviewData, children: /* @__PURE__ */ r.jsx(ye, { label: t.guideToPreviewData, disabled: t.canPreviewData, withinPortal: !0, children: /* @__PURE__ */ r.jsx(w, { children: e("data.preview_data") }) }) }),
32052
+ /* @__PURE__ */ r.jsx(g.Tab, { value: "Usage", disabled: l, children: /* @__PURE__ */ r.jsx(ye, { label: e("query.usage.unused_description"), disabled: !l, withinPortal: !0, children: /* @__PURE__ */ r.jsx(w, { children: e("query.usage.label") }) }) })
32049
32053
  ] }),
32050
32054
  /* @__PURE__ */ r.jsx(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(eA, { queryModel: t }) }),
32051
32055
  t.typedAsSQL && /* @__PURE__ */ r.jsx(g.Panel, { value: "SQL", sx: ir, children: /* @__PURE__ */ r.jsx(k, { sx: {
@@ -32070,11 +32074,11 @@ WHERE
32070
32074
  id: t
32071
32075
  }) => {
32072
32076
  const n = ae().queries.findByID(t);
32073
- return t === "" ? null : n ? /* @__PURE__ */ r.jsx(mA, { queryModel: n }) : /* @__PURE__ */ r.jsx(j, { size: 14, color: "red", children: "Invalid Query ID" });
32077
+ return t === "" ? null : n ? /* @__PURE__ */ r.jsx(mA, { queryModel: n }) : /* @__PURE__ */ r.jsx(w, { size: 14, color: "red", children: "Invalid Query ID" });
32074
32078
  }), gA = z(({
32075
32079
  value: t
32076
32080
  }) => {
32077
- const n = Pe().payloadForSQL, s = C(() => Ii(t, n), [t, n]);
32081
+ const n = Fe().payloadForSQL, s = C(() => Ii(t, n), [t, n]);
32078
32082
  return /* @__PURE__ */ r.jsx(za, { height: "100%", value: s });
32079
32083
  }), fA = z(({
32080
32084
  item: t,
@@ -32091,8 +32095,8 @@ WHERE
32091
32095
  O(() => {
32092
32096
  l(t.key), p(t.value);
32093
32097
  }, [t]);
32094
- const b = h !== t.value, w = Rt(), T = () => {
32095
- w.openConfirmModal({
32098
+ const b = h !== t.value, j = Rt(), T = () => {
32099
+ j.openConfirmModal({
32096
32100
  title: `${s("sql_snippet.delete")}?`,
32097
32101
  labels: {
32098
32102
  confirm: s("common.actions.confirm"),
@@ -32160,7 +32164,7 @@ WHERE
32160
32164
  if (!t)
32161
32165
  return null;
32162
32166
  if (!s)
32163
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
32167
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
32164
32168
  "SQL Snippet by key[",
32165
32169
  t,
32166
32170
  "] is not found"
@@ -32181,7 +32185,7 @@ WHERE
32181
32185
  }, o = () => {
32182
32186
  s.openConfirmModal({
32183
32187
  title: "Delete ununsed SQL snippets?",
32184
- children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: "This action cannot be undone." }),
32188
+ children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: "This action cannot be undone." }),
32185
32189
  labels: {
32186
32190
  confirm: t("common.actions.confirm"),
32187
32191
  cancel: t("common.actions.cancel")
@@ -32205,7 +32209,7 @@ WHERE
32205
32209
  }, spacing: "sm", pb: "59px", children: [
32206
32210
  /* @__PURE__ */ r.jsx(M, { pt: 9, pb: 8, sx: {
32207
32211
  borderBottom: "1px solid #eee"
32208
- }, children: /* @__PURE__ */ r.jsx(j, { px: "md", align: "left", sx: {
32212
+ }, children: /* @__PURE__ */ r.jsx(w, { px: "md", align: "left", sx: {
32209
32213
  userSelect: "none",
32210
32214
  cursor: "default"
32211
32215
  }, children: t("sql_snippet.manage") }) }),
@@ -32232,7 +32236,7 @@ WHERE
32232
32236
  /* @__PURE__ */ r.jsx(M, { sx: {
32233
32237
  flexGrow: 1,
32234
32238
  overflow: "auto"
32235
- }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(Ve, { fontSize: "sm", highlightOnHover: !0, sx: {
32239
+ }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, sx: {
32236
32240
  tableLayout: "fixed"
32237
32241
  }, children: [
32238
32242
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -32271,7 +32275,7 @@ WHERE
32271
32275
  ] });
32272
32276
  }), _A = z(({
32273
32277
  view: t
32274
- }) => !t || t.type !== W.Division ? null : /* @__PURE__ */ r.jsx(k, {})), vA = z(({
32278
+ }) => !t || t.type !== G.Division ? null : /* @__PURE__ */ r.jsx(k, {})), vA = z(({
32275
32279
  view: t
32276
32280
  }) => {
32277
32281
  const {
@@ -32293,14 +32297,14 @@ WHERE
32293
32297
  value: "vertical",
32294
32298
  label: e("common.tabs.orientation.vertical")
32295
32299
  }], [n.language]);
32296
- if (!t || t.type !== W.Tabs)
32300
+ if (!t || t.type !== G.Tabs)
32297
32301
  return null;
32298
32302
  const a = t.config;
32299
32303
  return /* @__PURE__ */ r.jsxs(k, { children: [
32300
32304
  /* @__PURE__ */ r.jsx(L, { mt: 8, mb: 0, label: e("view.component.tabs.tabs_settings"), labelPosition: "center" }),
32301
32305
  /* @__PURE__ */ r.jsx(V, { label: e("common.tabs.variant.label"), value: a.variant, onChange: a.setVariant, data: s }),
32302
32306
  /* @__PURE__ */ r.jsx(V, { label: e("common.tabs.orientation.label"), value: a.orientation, onChange: a.setOrientation, data: i }),
32303
- /* @__PURE__ */ r.jsx(Oe, { label: e("common.tabs.grow_tabs"), checked: a.grow, onChange: (o) => a.setGrow(o.currentTarget.checked) })
32307
+ /* @__PURE__ */ r.jsx(Ve, { label: e("common.tabs.grow_tabs"), checked: a.grow, onChange: (o) => a.setGrow(o.currentTarget.checked) })
32304
32308
  ] });
32305
32309
  }), jA = ({
32306
32310
  disabled: t,
@@ -32340,11 +32344,11 @@ WHERE
32340
32344
  const {
32341
32345
  enabled: m,
32342
32346
  func_content: b
32343
- } = o, w = {
32347
+ } = o, j = {
32344
32348
  enabled: m,
32345
32349
  func_content: b
32346
32350
  };
32347
- l(w), e(w);
32351
+ l(j), e(j);
32348
32352
  }, u = () => {
32349
32353
  a(), l(t);
32350
32354
  }, h = (m) => {
@@ -32377,7 +32381,7 @@ WHERE
32377
32381
  const {
32378
32382
  t: e
32379
32383
  } = _();
32380
- if (!t || t.type !== W.Modal)
32384
+ if (!t || t.type !== G.Modal)
32381
32385
  return null;
32382
32386
  const n = t.config, s = n.custom_modal_title.value;
32383
32387
  return /* @__PURE__ */ r.jsxs(k, { children: [
@@ -32407,13 +32411,13 @@ WHERE
32407
32411
  i18n: n
32408
32412
  } = _(), s = C(() => [{
32409
32413
  label: e("view.component.div.label"),
32410
- value: W.Division
32414
+ value: G.Division
32411
32415
  }, {
32412
32416
  label: e("view.component.modal.label"),
32413
- value: W.Modal
32417
+ value: G.Modal
32414
32418
  }, {
32415
32419
  label: e("view.component.tabs.label"),
32416
- value: W.Tabs
32420
+ value: G.Tabs
32417
32421
  }], [n.language]);
32418
32422
  return t ? /* @__PURE__ */ r.jsxs(k, { sx: {
32419
32423
  position: "relative"
@@ -32434,7 +32438,7 @@ WHERE
32434
32438
  return null;
32435
32439
  const a = i.views.findByID(t);
32436
32440
  if (!a)
32437
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
32441
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
32438
32442
  "View by ID[",
32439
32443
  t,
32440
32444
  "] is not found"
@@ -32535,7 +32539,7 @@ const FA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
32535
32539
  if (!t)
32536
32540
  return null;
32537
32541
  const s = n.views.findByID(t);
32538
- return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(ut, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => n.addANewPanel(s.id), sx: {
32542
+ return !s || s.type === G.Tabs ? null : /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(ut, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => n.addANewPanel(s.id), sx: {
32539
32543
  width: "100%",
32540
32544
  borderRadius: 0
32541
32545
  }, styles: {
@@ -32670,7 +32674,7 @@ const FA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
32670
32674
  }, children: [
32671
32675
  /* @__PURE__ */ r.jsx(qt.Section, { pt: 9, pb: 8, sx: {
32672
32676
  borderBottom: "1px solid #eee"
32673
- }, children: /* @__PURE__ */ r.jsx(j, { align: "center", sx: {
32677
+ }, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
32674
32678
  userSelect: "none",
32675
32679
  cursor: "default"
32676
32680
  }, children: t("common.titles.settings") }) }),
@@ -32774,15 +32778,15 @@ const n2 = {
32774
32778
  const {
32775
32779
  data: b = []
32776
32780
  } = vn(Li), {
32777
- data: w = []
32778
- } = vn(Zl), T = A.useMemo(() => qD(e, n, b, w, t, c ?? {}), [e, n]);
32781
+ data: j = []
32782
+ } = vn(Zl), T = A.useMemo(() => qD(e, n, b, j, t, c ?? {}), [e, n]);
32779
32783
  A.useImperativeHandle(p, () => T, [T]), mu(T.content, !0), A.useEffect(() => {
32780
32784
  T.context.replace(t);
32781
32785
  }, [t]), A.useEffect(() => {
32782
32786
  T.datasources.replace(b);
32783
32787
  }, [b]), A.useEffect(() => {
32784
- T.globalSQLSnippets.replace(w);
32785
- }, [w]), A.useEffect(() => {
32788
+ T.globalSQLSnippets.replace(j);
32789
+ }, [j]), A.useEffect(() => {
32786
32790
  d == null || d(T.content.filters.values);
32787
32791
  }, [d, T.content.filters.values]), A.useEffect(() => {
32788
32792
  c && T.content.filters.patchValues(c);
@@ -32791,12 +32795,12 @@ const n2 = {
32791
32795
  }), [T]);
32792
32796
  const E = async () => {
32793
32797
  await s(T.json, T.content.json);
32794
- }, P = wt(ga, []), G = xu(P);
32798
+ }, $ = wt(ga, []), W = xu($);
32795
32799
  return /* @__PURE__ */ r.jsx(sl, { children: /* @__PURE__ */ r.jsx(gc, { children: /* @__PURE__ */ r.jsx(lc, { value: {
32796
32800
  searchButtonProps: a.searchButtonProps
32797
32801
  }, children: /* @__PURE__ */ r.jsx(ic, { value: T, children: /* @__PURE__ */ r.jsx(dc, { value: T.content, children: /* @__PURE__ */ r.jsx(Ri.Provider, { value: {
32798
32802
  inEditMode: !0
32799
- }, children: /* @__PURE__ */ r.jsx(Pt.Provider, { value: P, children: /* @__PURE__ */ r.jsxs(Ts, { configure: G, children: [
32803
+ }, children: /* @__PURE__ */ r.jsx(Pt.Provider, { value: $, children: /* @__PURE__ */ r.jsxs(Ts, { configure: W, children: [
32800
32804
  /* @__PURE__ */ r.jsx(rl, { padding: 0, header: /* @__PURE__ */ r.jsx(aM, { onExit: u, saveDashboardChanges: E, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(AM, {}), styles: n2, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
32801
32805
  position: "relative"
32802
32806
  }, children: T.content.views.visibleViews.map((K) => /* @__PURE__ */ r.jsx(fD, { view: K }, K.id)) }) }),
@@ -32925,7 +32929,7 @@ function s2({
32925
32929
  definition: {
32926
32930
  queries: m,
32927
32931
  sqlSnippets: b,
32928
- mock_context: w = {}
32932
+ mock_context: j = {}
32929
32933
  }
32930
32934
  } = a;
32931
32935
  return Cu.create({
@@ -32935,10 +32939,10 @@ function s2({
32935
32939
  create_time: s,
32936
32940
  update_time: i,
32937
32941
  version: c,
32938
- filters: Jd(d, o, w, l),
32942
+ filters: Jd(d, o, j, l),
32939
32943
  queries: II(m),
32940
32944
  sqlSnippets: MI(b),
32941
- mock_context: Cd(w),
32945
+ mock_context: Cd(j),
32942
32946
  views: wI(u),
32943
32947
  panels: {
32944
32948
  list: h
@@ -33017,7 +33021,7 @@ const o2 = ({
33017
33021
  }, [c, m.content.filters.values]), A.useEffect(() => {
33018
33022
  l && m.content.filters.patchValues(l);
33019
33023
  }, [l, m.content.filters.patchValues]);
33020
- const b = wt(ga, []), w = xu(b);
33024
+ const b = wt(ga, []), j = xu(b);
33021
33025
  return /* @__PURE__ */ r.jsx(sl, { children: /* @__PURE__ */ r.jsx(gc, { children: /* @__PURE__ */ r.jsx(lc, { value: {
33022
33026
  searchButtonProps: i.searchButtonProps
33023
33027
  }, children: /* @__PURE__ */ r.jsx(ic, { value: m, children: /* @__PURE__ */ r.jsx(dc, { value: m.content, children: /* @__PURE__ */ r.jsx(xc.Provider, { value: {
@@ -33025,43 +33029,43 @@ const o2 = ({
33025
33029
  setFullScreenPanelID: o
33026
33030
  }, children: /* @__PURE__ */ r.jsx(Ri.Provider, { value: {
33027
33031
  inEditMode: !1
33028
- }, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Pt.Provider, { value: b, children: /* @__PURE__ */ r.jsx(Ts, { configure: w, children: m.content.views.visibleViews.map((T) => /* @__PURE__ */ r.jsx(ja, { view: T }, T.id)) }) }) }) }) }) }) }) }) }) });
33032
+ }, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Pt.Provider, { value: b, children: /* @__PURE__ */ r.jsx(Ts, { configure: j, children: m.content.views.visibleViews.map((T) => /* @__PURE__ */ r.jsx(ja, { view: T }, T.id)) }) }) }) }) }) }) }) }) }) });
33029
33033
  }, lR = z(o2);
33030
- $.extend(xm);
33031
- $.extend(gm);
33032
- $.extend(fm);
33033
- $.extend(bm);
33034
- $.extend(ym);
33035
- $.extend(_m);
33036
- $.extend(vm);
33037
- $.extend(jm);
33038
- $.extend(wm);
33039
- $.extend(Sm);
33040
- $.extend(zm);
33041
- $.extend(Tm);
33042
- $.extend(Im);
33043
- $.extend(Dm);
33044
- $.extend(Mm);
33045
- $.extend(km);
33046
- $.extend(Cm);
33047
- $.extend(Lm);
33048
- $.extend(Am);
33049
- $.extend(Em);
33050
- $.extend(Rm);
33051
- $.extend($m);
33052
- $.extend(Pm);
33053
- $.extend(Fm);
33054
- $.extend(Om);
33055
- $.extend(Vm);
33056
- $.extend(qm);
33057
- $.extend(Nm);
33058
- $.extend(Bm);
33059
- $.extend(Wm);
33060
- $.extend(Qm);
33061
- $.extend(Hm);
33062
- $.extend(Gm);
33063
- $.tz.setDefault("UTC");
33064
- $.updateLocale("en", {
33034
+ P.extend(xm);
33035
+ P.extend(gm);
33036
+ P.extend(fm);
33037
+ P.extend(bm);
33038
+ P.extend(ym);
33039
+ P.extend(_m);
33040
+ P.extend(vm);
33041
+ P.extend(jm);
33042
+ P.extend(wm);
33043
+ P.extend(Sm);
33044
+ P.extend(zm);
33045
+ P.extend(Tm);
33046
+ P.extend(Im);
33047
+ P.extend(Dm);
33048
+ P.extend(Mm);
33049
+ P.extend(km);
33050
+ P.extend(Cm);
33051
+ P.extend(Lm);
33052
+ P.extend(Am);
33053
+ P.extend(Em);
33054
+ P.extend(Rm);
33055
+ P.extend($m);
33056
+ P.extend(Pm);
33057
+ P.extend(Fm);
33058
+ P.extend(Om);
33059
+ P.extend(Vm);
33060
+ P.extend(qm);
33061
+ P.extend(Nm);
33062
+ P.extend(Bm);
33063
+ P.extend(Wm);
33064
+ P.extend(Qm);
33065
+ P.extend(Hm);
33066
+ P.extend(Gm);
33067
+ P.tz.setDefault("UTC");
33068
+ P.updateLocale("en", {
33065
33069
  weekStart: 1
33066
33070
  });
33067
33071
  const l2 = {
@@ -33484,7 +33488,10 @@ const l2 = {
33484
33488
  red: "Red",
33485
33489
  green: "Green",
33486
33490
  blue: "Blue",
33487
- orange: "Orange"
33491
+ orange: "Orange",
33492
+ mapping: {
33493
+ value_input_label: "Map a value to this color"
33494
+ }
33488
33495
  }
33489
33496
  }
33490
33497
  }
@@ -34345,7 +34352,10 @@ const l2 = {
34345
34352
  red: "红",
34346
34353
  green: "绿",
34347
34354
  blue: "蓝",
34348
- orange: "橙"
34355
+ orange: "橙",
34356
+ mapping: {
34357
+ value_input_label: "映射一个值到此颜色"
34358
+ }
34349
34359
  }
34350
34360
  }
34351
34361
  }
@@ -34835,7 +34845,7 @@ export {
34835
34845
  lx as DefaultApiClient,
34836
34846
  nu as DescriptionPopover,
34837
34847
  LI as DraftModel,
34838
- W as EViewComponentType,
34848
+ G as EViewComponentType,
34839
34849
  nR as FacadeApiClient,
34840
34850
  zd as FilterCheckboxConfigMeta,
34841
34851
  Id as FilterDateRangeConfigMeta,
@@ -34926,7 +34936,7 @@ export {
34926
34936
  Ct as useEditPanelContext,
34927
34937
  ng as useFullScreenPanelContext,
34928
34938
  ZI as usePanelFullScreen,
34929
- Pe as useRenderContentModelContext,
34939
+ Fe as useRenderContentModelContext,
34930
34940
  Xx as useRenderDashboardContext,
34931
34941
  Dn as useRenderPanelContext
34932
34942
  };