@devtable/dashboard 12.8.0 → 12.10.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";
@@ -13,7 +13,7 @@ import gh from "crypto-js";
13
13
  import * as fh from "d3-array";
14
14
  import { quantile as qr } from "d3-array";
15
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";
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,11 +146,11 @@ 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;
@@ -158,10 +158,10 @@ function ex() {
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]));
@@ -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.10.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 P = vh(h, (K) => K[b.columnKey]), W = jh(h, (K) => K[b.columnKey]);
1929
1929
  return {
1930
1930
  min: ne(P, b.columnKey),
1931
- max: ne(G, 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"]
@@ -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
@@ -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, 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), j = Math.min(S.last(l) ?? 0, m);
3397
3397
  return o.filter((E) => {
3398
3398
  const P = E[e];
3399
- return P < b || P > w;
3399
+ return P < b || P > j;
3400
3400
  }).forEach((E) => n.push([a, E[e], E])), o.filter((E) => {
3401
3401
  const P = E[e];
3402
- return P >= b && P <= w;
3402
+ return P >= b && P <= 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,35 +3539,35 @@ 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
  }
@@ -3575,18 +3575,18 @@ function ff(t, e, n) {
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,
3581
+ shape: W,
3582
3582
  style: P
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
+ }, P = 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: P }),
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: P })
4153
4157
  ] });
4154
4158
  }
4155
4159
  const Ff = z(({
@@ -4181,17 +4185,17 @@ const Ff = z(({
4181
4185
  group: e(`style.color.interpolation.palette.category.${P.category}`)
4182
4186
  })), [n.language]);
4183
4187
  function b(P) {
4184
- P && c((G) => ({
4185
- ...G,
4188
+ P && c((W) => ({
4189
+ ...W,
4186
4190
  interpolation: P
4187
4191
  }));
4188
4192
  }
4189
- const w = () => {
4193
+ const j = () => {
4190
4194
  p(), i == null || i(Yt(l));
4191
4195
  };
4192
4196
  function T(P) {
4193
- c((G) => ({
4194
- ...G,
4197
+ c((W) => ({
4198
+ ...W,
4195
4199
  steps: P
4196
4200
  }));
4197
4201
  }
@@ -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 P = 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
5637
  valueTypedXAxis: P
5634
- }), G;
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,11 +9251,11 @@ 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), P = Math.min(b, T + j.nodeSize), W = P - E;
9258
+ o += W, l.push(...j.marks.map((K) => ({
9255
9259
  mark: K,
9256
9260
  from: E,
9257
9261
  to: P
@@ -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,7 +9393,7 @@ 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 P = 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
9399
  e.replace(he, l.after(-P), new fe(T, 4 - E, 0));
@@ -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: P } = 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) => P.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: P } = j, W = E.blockRange(P), 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
  ] }) })
@@ -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,10 +13950,10 @@ 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) => {
13953
+ } = F(t.series_name_key), m = S.keyBy(e[h], p), b = t.additional_series.reduce((j, T) => {
13950
13954
  const E = F(T.name_key), P = S.keyBy(e[E.queryID], E.columnKey);
13951
13955
  return {
13952
- ...w,
13956
+ ...j,
13953
13957
  ...P
13954
13958
  };
13955
13959
  }, m);
@@ -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,10 +18076,10 @@ 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,
@@ -18083,7 +18087,7 @@ function Y1({
18083
18087
  getSortedRowModel: sm()
18084
18088
  }), {
18085
18089
  rows: P
18086
- } = E.getRowModel(), G = A.useRef(null), K = P.length, he = K > 0, Z = he ? n - 22 : n, ee = he ? 22 : 0;
18090
+ } = E.getRowModel(), W = A.useRef(null), K = P.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,
@@ -18096,8 +18100,8 @@ function Y1({
18096
18100
  tableColumns: b,
18097
18101
  table: E,
18098
18102
  rows: P,
18099
- tableContainerRef: G
18100
- }), /* @__PURE__ */ r.jsxs("div", { ref: G, style: {
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: P })
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) => {
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) => {
18184
18188
  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) => {
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") : (P = t.onChange) == null || P.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
@@ -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,7 +19907,7 @@ function CC({
19903
19907
  invisible: u,
19904
19908
  id: h,
19905
19909
  ...p
19906
- }, m, b, w, T, E) {
19910
+ }, m, b, j, T, E) {
19907
19911
  const P = {
19908
19912
  label: {
19909
19913
  show: !!s,
@@ -19927,20 +19931,20 @@ function CC({
19927
19931
  if (!a || a === t.data_key)
19928
19932
  return P.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
19939
  }), P;
19936
- const G = kC({
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(P);
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
@@ -23035,6 +23039,30 @@ const ST = ({
23035
23039
  const t = Date.now();
23036
23040
  return [$(t).startOf("year").toDate(), $(t).endOf("year").toDate()];
23037
23041
  }
23042
+ }, {
23043
+ key: "w",
23044
+ value: "this week so far",
23045
+ group: "this_so_far",
23046
+ getRange: () => {
23047
+ const t = Date.now();
23048
+ return [$(t).startOf("week").toDate(), $(t).toDate()];
23049
+ }
23050
+ }, {
23051
+ key: "m",
23052
+ value: "this month so far",
23053
+ group: "this_so_far",
23054
+ getRange: () => {
23055
+ const t = Date.now();
23056
+ return [$(t).startOf("month").toDate(), $(t).toDate()];
23057
+ }
23058
+ }, {
23059
+ key: "y",
23060
+ value: "this year so far",
23061
+ group: "this_so_far",
23062
+ getRange: () => {
23063
+ const t = Date.now();
23064
+ return [$(t).startOf("year").toDate(), $(t).toDate()];
23065
+ }
23038
23066
  }];
23039
23067
  function jd(t) {
23040
23068
  const n = fa().find((s) => s.value === t);
@@ -23052,7 +23080,7 @@ const IT = ({
23052
23080
  }, i = C(() => S.groupBy(fa(), "group"), []), a = n.language === "zh";
23053
23081
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
23054
23082
  /* @__PURE__ */ r.jsx(L, { variant: "dashed", my: 10 }),
23055
- /* @__PURE__ */ r.jsx(Ve, { withBorder: !1, sx: {
23083
+ /* @__PURE__ */ r.jsx(qe, { withBorder: !1, sx: {
23056
23084
  "tbody > tr > th, tbody > tr > td": {
23057
23085
  borderTop: "none",
23058
23086
  padding: "2px 6px"
@@ -23065,7 +23093,7 @@ const IT = ({
23065
23093
  paddingLeft: "1px"
23066
23094
  }
23067
23095
  }, 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`) }) }),
23096
+ /* @__PURE__ */ r.jsx("th", { children: /* @__PURE__ */ r.jsx(w, { size: "xs", color: "#555", children: e(`filter.widget.date_range.shortcut.${o}.label`) }) }),
23069
23097
  l.map(({
23070
23098
  key: c,
23071
23099
  value: d,
@@ -23329,7 +23357,7 @@ const IT = ({
23329
23357
  const {
23330
23358
  t: e
23331
23359
  } = _();
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") });
23360
+ 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
23361
  }, LT = ({
23334
23362
  disabled: t,
23335
23363
  // styling props
@@ -23358,20 +23386,20 @@ const IT = ({
23358
23386
  classNames: e,
23359
23387
  styles: n,
23360
23388
  unstyled: s
23361
- }), [w, T] = B(!1), E = (Z) => {
23389
+ }), [j, T] = B(!1), E = (Z) => {
23362
23390
  T(Z);
23363
- }, P = w && (l == null ? void 0 : l.length) > 0, [G, K] = B(""), he = C(() => {
23364
- if (!G)
23391
+ }, P = j && (l == null ? void 0 : l.length) > 0, [W, K] = B(""), he = C(() => {
23392
+ if (!W)
23365
23393
  return d;
23366
- const Z = G.toLowerCase(), ee = (pe) => {
23394
+ const Z = W.toLowerCase(), ee = (pe) => {
23367
23395
  var Qe;
23368
23396
  return ((Qe = pe.description) == null ? void 0 : Qe.toLowerCase().includes(Z)) || pe.label.toLowerCase().includes(Z);
23369
23397
  };
23370
23398
  return d.filter(ee);
23371
- }, [G, d]);
23399
+ }, [W, d]);
23372
23400
  return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
23373
23401
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
23374
- /* @__PURE__ */ r.jsxs(j, { className: m.label, children: [
23402
+ /* @__PURE__ */ r.jsxs(w, { className: m.label, children: [
23375
23403
  o,
23376
23404
  h && /* @__PURE__ */ r.jsx("span", { className: m.required, "aria-hidden": "true", children: "*" })
23377
23405
  ] }),
@@ -23381,9 +23409,9 @@ const IT = ({
23381
23409
  ] }),
23382
23410
  /* @__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
23411
  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 })
23412
+ }), searchValue: W, onSearch: K, filterOption: !1, children: he.map((Z) => /* @__PURE__ */ r.jsxs(om, { title: Z.label, children: [
23413
+ /* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: Z.label }),
23414
+ Z.description && /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: Z.description })
23387
23415
  ] }, Z.value)) })
23388
23416
  ] });
23389
23417
  }, AT = z(({
@@ -23392,7 +23420,7 @@ const IT = ({
23392
23420
  value: n,
23393
23421
  onChange: s
23394
23422
  }) => {
23395
- const i = Pe(), a = !!e.options_query_id, {
23423
+ const i = Fe(), a = !!e.options_query_id, {
23396
23424
  state: o,
23397
23425
  error: l
23398
23426
  } = 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 +23435,15 @@ const IT = ({
23407
23435
  description: e,
23408
23436
  ...n
23409
23437
  }, 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 })
23438
+ /* @__PURE__ */ r.jsx(w, { size: "sm", "data-role": "label", children: t }),
23439
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", "data-role": "description", children: e })
23412
23440
  ] }) }) })), RT = z(({
23413
23441
  label: t,
23414
23442
  config: e,
23415
23443
  value: n,
23416
23444
  onChange: s
23417
23445
  }) => {
23418
- const i = Pe(), a = !!e.options_query_id, {
23446
+ const i = Fe(), a = !!e.options_query_id, {
23419
23447
  state: o,
23420
23448
  error: l
23421
23449
  } = i.getDataStuffByID(e.options_query_id), c = o === "loading";
@@ -23752,7 +23780,7 @@ const PT = ({
23752
23780
  t: m
23753
23781
  } = _(), {
23754
23782
  classes: b,
23755
- cx: w
23783
+ cx: j
23756
23784
  } = qT({
23757
23785
  radius: i
23758
23786
  }, {
@@ -23762,14 +23790,14 @@ const PT = ({
23762
23790
  unstyled: s
23763
23791
  }), [T, E] = B(!1), P = (K) => {
23764
23792
  E(K);
23765
- }, G = T && (l == null ? void 0 : l.length) > 0;
23793
+ }, W = T && (l == null ? void 0 : l.length) > 0;
23766
23794
  return /* @__PURE__ */ r.jsxs(k, { spacing: 3, children: [
23767
23795
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
23768
- /* @__PURE__ */ r.jsxs(j, { className: b.label, children: [
23796
+ /* @__PURE__ */ r.jsxs(w, { className: b.label, children: [
23769
23797
  o,
23770
23798
  h && /* @__PURE__ */ r.jsx("span", { className: b.required, "aria-hidden": "true", children: "*" })
23771
23799
  ] }),
23772
- G && /* @__PURE__ */ r.jsx(ye, { label: m("filter.widget.common.x_selected", {
23800
+ W && /* @__PURE__ */ r.jsx(ye, { label: m("filter.widget.common.x_selected", {
23773
23801
  count: l.length
23774
23802
  }), children: /* @__PURE__ */ r.jsx(_n, { children: l.length }) })
23775
23803
  ] }),
@@ -23780,8 +23808,8 @@ const PT = ({
23780
23808
  allowClear: !0,
23781
23809
  treeCheckStrictly: p,
23782
23810
  labelInValue: !0,
23783
- className: w(b.root, "check-select"),
23784
- dropdownClassName: w(b.dropdown, ""),
23811
+ className: j(b.root, "check-select"),
23812
+ dropdownClassName: j(b.dropdown, ""),
23785
23813
  onDropdownVisibleChange: P,
23786
23814
  transitionName: "rc-tree-select-dropdown-slide-up",
23787
23815
  choiceTransitionName: "rc-tree-select-selection__choice-zoom",
@@ -23887,7 +23915,7 @@ const UT = ({
23887
23915
  }) {
23888
23916
  const [n, {
23889
23917
  toggle: s
23890
- }] = sn(!0), i = Pe(), {
23918
+ }] = sn(!0), i = Fe(), {
23891
23919
  control: a,
23892
23920
  handleSubmit: o,
23893
23921
  reset: l
@@ -23904,8 +23932,8 @@ const UT = ({
23904
23932
  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
23933
  if (d.length === 0)
23906
23934
  return null;
23907
- const m = (b, w) => (T, E) => {
23908
- w(T), (b.should_auto_submit || E) && i.filters.setValueByKey(b.key, T);
23935
+ const m = (b, j) => (T, E) => {
23936
+ j(T), (b.should_auto_submit || E) && i.filters.setValueByKey(b.key, T);
23909
23937
  };
23910
23938
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(i.filters.setValues), children: [
23911
23939
  /* @__PURE__ */ r.jsx(UT, { opened: n, toggle: s }),
@@ -23915,8 +23943,8 @@ const UT = ({
23915
23943
  padding: "16px"
23916
23944
  }, children: [
23917
23945
  /* @__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)) }),
23946
+ field: j
23947
+ }) => /* @__PURE__ */ r.jsx(GT, { filter: b, value: j.value, onChange: m(b, j.onChange) }) }, b.id)) }),
23920
23948
  !u && /* @__PURE__ */ r.jsx(y, { sx: {
23921
23949
  alignSelf: "flex-end"
23922
23950
  }, children: /* @__PURE__ */ r.jsx(QT, { disabled: p }) })
@@ -24755,10 +24783,10 @@ function pI(t) {
24755
24783
  description: s,
24756
24784
  label: n
24757
24785
  };
24758
- return s && (a.label = A.createElement("div", {}, [A.createElement(j, {
24786
+ return s && (a.label = A.createElement("div", {}, [A.createElement(w, {
24759
24787
  key: 0,
24760
24788
  title: e.label
24761
- }, e.label), A.createElement(j, {
24789
+ }, e.label), A.createElement(w, {
24762
24790
  key: 1,
24763
24791
  className: "rc-tree-select-tree-title-desc",
24764
24792
  color: "dimmed",
@@ -24972,9 +25000,9 @@ const Ed = x.compose("FilterTreeSelectConfigMeta", x.model({
24972
25000
  t.default_value_func = e;
24973
25001
  }
24974
25002
  }));
24975
- var W = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(W || {});
25003
+ var G = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(G || {});
24976
25004
  const $d = x.model("ViewDivisionConfig", {
24977
- _name: x.literal(W.Division)
25005
+ _name: x.literal(G.Division)
24978
25006
  }).views((t) => ({
24979
25007
  get json() {
24980
25008
  const {
@@ -24985,7 +25013,7 @@ const $d = x.model("ViewDivisionConfig", {
24985
25013
  };
24986
25014
  }
24987
25015
  })), xI = () => $d.create({
24988
- _name: W.Division
25016
+ _name: G.Division
24989
25017
  }), gI = x.model("CustomModalTitleModel", {
24990
25018
  enabled: x.optional(x.boolean, !1),
24991
25019
  func_content: x.optional(x.string, "")
@@ -25035,7 +25063,7 @@ const $d = x.model("ViewDivisionConfig", {
25035
25063
  func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
25036
25064
  `)
25037
25065
  }, Pd = x.model("ViewModalConfig", {
25038
- _name: x.literal(W.Modal),
25066
+ _name: x.literal(G.Modal),
25039
25067
  width: x.string,
25040
25068
  height: x.string,
25041
25069
  custom_modal_title: x.optional(gI, bi)
@@ -25062,7 +25090,7 @@ const $d = x.model("ViewDivisionConfig", {
25062
25090
  t.height = e;
25063
25091
  }
25064
25092
  })), fI = () => Pd.create({
25065
- _name: W.Modal,
25093
+ _name: G.Modal,
25066
25094
  width: "90vw",
25067
25095
  height: "90vh"
25068
25096
  }), bI = x.model("ViewTabsTabModel", {
@@ -25102,7 +25130,7 @@ const $d = x.model("ViewDivisionConfig", {
25102
25130
  t.order = e;
25103
25131
  }
25104
25132
  })), Fd = x.model("ViewTabsConfig", {
25105
- _name: x.literal(W.Modal),
25133
+ _name: x.literal(G.Modal),
25106
25134
  tabs: x.optional(x.array(bI), []),
25107
25135
  variant: x.optional(x.enumeration("variant", ["default", "outline", "pills"]), "default"),
25108
25136
  orientation: x.optional(x.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
@@ -25152,12 +25180,12 @@ const $d = x.model("ViewDivisionConfig", {
25152
25180
  t.tabs.splice(e, 1);
25153
25181
  }
25154
25182
  })), yI = () => Fd.create({
25155
- _name: W.Modal,
25183
+ _name: G.Modal,
25156
25184
  tabs: []
25157
25185
  }), _I = x.model({
25158
25186
  id: x.identifier,
25159
25187
  name: x.string,
25160
- type: x.enumeration("EViewComponentType", [W.Division, W.Modal, W.Tabs]),
25188
+ type: x.enumeration("EViewComponentType", [G.Division, G.Modal, G.Tabs]),
25161
25189
  config: x.union($d, Pd, Fd),
25162
25190
  panelIDs: x.optional(x.array(x.string), [])
25163
25191
  }).views((t) => ({
@@ -25183,13 +25211,13 @@ const $d = x.model("ViewDivisionConfig", {
25183
25211
  setType(e) {
25184
25212
  if (t.type !== e) {
25185
25213
  switch (e) {
25186
- case W.Division:
25214
+ case G.Division:
25187
25215
  t.config = xI();
25188
25216
  break;
25189
- case W.Modal:
25217
+ case G.Modal:
25190
25218
  t.config = fI();
25191
25219
  break;
25192
- case W.Tabs:
25220
+ case G.Tabs:
25193
25221
  t.config = yI();
25194
25222
  break;
25195
25223
  }
@@ -25215,7 +25243,7 @@ const $d = x.model("ViewDivisionConfig", {
25215
25243
  views: [{
25216
25244
  id: "Main",
25217
25245
  name: "Main",
25218
- type: W.Division,
25246
+ type: G.Division,
25219
25247
  config: {},
25220
25248
  panelIDs: []
25221
25249
  }],
@@ -25304,27 +25332,27 @@ const Nd = x.compose("ViewRenderModel", _I, x.model({
25304
25332
  // FIXME: manage this state in a better way
25305
25333
  })).views((t) => ({
25306
25334
  get defaultTab() {
25307
- if (t.type !== W.Tabs)
25335
+ if (t.type !== G.Tabs)
25308
25336
  return "";
25309
25337
  const e = t.config;
25310
25338
  return e.tabs.length > 0 ? e.tabs[0].id : "";
25311
25339
  },
25312
25340
  get tabViewID() {
25313
25341
  var n;
25314
- return t.type !== W.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
25342
+ return t.type !== G.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
25315
25343
  },
25316
25344
  get contentModel() {
25317
25345
  return Ae(t, 3);
25318
25346
  },
25319
25347
  get panels() {
25320
- if (t.type !== W.Tabs)
25348
+ if (t.type !== G.Tabs)
25321
25349
  return this.contentModel.panels.panelsByIDs(t.panelIDs);
25322
25350
  const e = this.tabViewID, n = this.contentModel.views.findByID(e);
25323
25351
  return (n == null ? void 0 : n.panels) ?? [];
25324
25352
  },
25325
25353
  get renderViewIDs() {
25326
25354
  const e = [t.id];
25327
- return t.type === W.Tabs && e.push(this.tabViewID), e;
25355
+ return t.type === G.Tabs && e.push(this.tabViewID), e;
25328
25356
  },
25329
25357
  async downloadScreenshot(e) {
25330
25358
  const n = e.offsetWidth * 2 + 10, s = e.offsetHeight * 2 + 10, i = new Hl(), a = (/* @__PURE__ */ new Date()).getTime(), o = await Ql.toBlob(e, {
@@ -26293,7 +26321,7 @@ const AI = (t) => new LI(t), EI = z(({
26293
26321
  zIndex: 320
26294
26322
  }), m = A.useCallback(() => {
26295
26323
  c(l);
26296
- }, [l, c]), b = !d && t.type !== W.Modal;
26324
+ }, [l, c]), b = !d && t.type !== G.Modal;
26297
26325
  return /* @__PURE__ */ r.jsx(r.Fragment, { children: /* @__PURE__ */ r.jsx(M, { sx: {
26298
26326
  position: "absolute",
26299
26327
  top: 0,
@@ -26354,7 +26382,7 @@ const $I = z(function() {
26354
26382
  } = e;
26355
26383
  return s.show ? /* @__PURE__ */ r.jsx(y, { grow: !0, position: "center", className: "panel-title-wrapper", sx: {
26356
26384
  flexGrow: 1
26357
- }, children: /* @__PURE__ */ r.jsx(j, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
26385
+ }, children: /* @__PURE__ */ r.jsx(w, { align: "center", lineClamp: 1, className: "panel-title-text", children: n }) }) : null;
26358
26386
  });
26359
26387
  function PI(t) {
26360
26388
  const e = os(null);
@@ -26474,7 +26502,7 @@ function OI({
26474
26502
  });
26475
26503
  return yr(async () => {
26476
26504
  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..." });
26505
+ }, [s, n.viz.type]), i ? /* @__PURE__ */ r.jsx(Ox, { ...e }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update..." });
26478
26506
  }
26479
26507
  function VI(t) {
26480
26508
  const {
@@ -26490,7 +26518,7 @@ function VI(t) {
26490
26518
  title: `${e.name} - Updated`,
26491
26519
  message: "Your plugin configuration has been migrated to the latest version"
26492
26520
  });
26493
- }) ? /* @__PURE__ */ r.jsx(Fx, { ...t }) : /* @__PURE__ */ r.jsx(j, { children: "Checking update" });
26521
+ }) ? /* @__PURE__ */ r.jsx(Fx, { ...t }) : /* @__PURE__ */ r.jsx(w, { children: "Checking update" });
26494
26522
  }
26495
26523
  function qI(t, e) {
26496
26524
  const {
@@ -26538,10 +26566,10 @@ const NI = z(function({
26538
26566
  }), BI = z(({
26539
26567
  panel: t
26540
26568
  }) => /* @__PURE__ */ r.jsxs(k, { children: [
26541
- t.queryErrors.map((e, n) => /* @__PURE__ */ r.jsx(j, { color: "red", size: "sm", align: "center", sx: {
26569
+ t.queryErrors.map((e, n) => /* @__PURE__ */ r.jsx(w, { color: "red", size: "sm", align: "center", sx: {
26542
26570
  fontFamily: "monospace"
26543
26571
  }, children: e }, `${n}-${e}`)),
26544
- /* @__PURE__ */ r.jsx(j, { color: "gray", align: "center", size: "sm", children: t.queryStateMessages })
26572
+ /* @__PURE__ */ r.jsx(w, { color: "gray", align: "center", size: "sm", children: t.queryStateMessages })
26545
26573
  ] })), ou = z(({
26546
26574
  panel: t
26547
26575
  }) => /* @__PURE__ */ r.jsxs(Ut, { className: "panel-viz-section", direction: "column", sx: {
@@ -26612,7 +26640,7 @@ const YI = z(({
26612
26640
  inFullScreen: o
26613
26641
  } = A.useContext(Is), l = A.useCallback(() => {
26614
26642
  a(i);
26615
- }, [i, a]), c = !o && t.type !== W.Modal;
26643
+ }, [i, a]), c = !o && t.type !== G.Modal;
26616
26644
  return UI(n.viz.type) ? /* @__PURE__ */ r.jsx(M, { sx: {
26617
26645
  position: "absolute",
26618
26646
  top: 0,
@@ -26663,7 +26691,7 @@ const cu = z(({
26663
26691
  function ZI(t, e, n) {
26664
26692
  const {
26665
26693
  panels: s
26666
- } = Pe(), i = t.id === "Main", [a, o] = A.useState(() => i && s.findByID(e) ? e : null), l = A.useCallback((h) => {
26694
+ } = Fe(), i = t.id === "Main", [a, o] = A.useState(() => i && s.findByID(e) ? e : null), l = A.useCallback((h) => {
26667
26695
  o(h), i && n(h);
26668
26696
  }, [i, n]), c = A.useCallback(() => {
26669
26697
  o(null), i && n("");
@@ -26727,7 +26755,7 @@ const eD = A.forwardRef(({
26727
26755
  view: t,
26728
26756
  className: e = "layout"
26729
26757
  }) => {
26730
- const n = Pe(), s = n.layouts.items(t.panelIDs), i = n.layouts.gridLayouts(t.panelIDs);
26758
+ const n = Fe(), s = n.layouts.items(t.panelIDs), i = n.layouts.gridLayouts(t.panelIDs);
26731
26759
  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
26760
  });
26733
26761
  function va(t) {
@@ -26749,7 +26777,7 @@ const aD = z(({
26749
26777
  } = _(), [n, {
26750
26778
  setTrue: s,
26751
26779
  setFalse: i
26752
- }] = it(!1), a = Xx(), o = Pe(), l = () => {
26780
+ }] = it(!1), a = Xx(), o = Fe(), l = () => {
26753
26781
  const c = JSON.stringify(o.contentJSON, null, 2), d = `${a.name}__${o.name}`;
26754
26782
  Xn(d, c);
26755
26783
  };
@@ -26792,7 +26820,7 @@ const aD = z(({
26792
26820
  children: t,
26793
26821
  view: e
26794
26822
  }) => {
26795
- const n = Pe(), s = e.config, i = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id), {
26823
+ const n = Fe(), s = e.config, i = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id), {
26796
26824
  ref: o,
26797
26825
  downloadScreenshot: l
26798
26826
  } = va(e);
@@ -26841,7 +26869,7 @@ const aD = z(({
26841
26869
  } : {}, cD = z(({
26842
26870
  view: t
26843
26871
  }) => {
26844
- const e = Pe(), n = t.config;
26872
+ const e = Fe(), n = t.config;
26845
26873
  return /* @__PURE__ */ r.jsxs(g, { className: "render-view-tabs", variant: n.variant, orientation: n.orientation, value: t.tab, onTabChange: t.setTab, styles: {
26846
26874
  root: {
26847
26875
  height: "100%",
@@ -26864,11 +26892,11 @@ const aD = z(({
26864
26892
  children: e
26865
26893
  }) => {
26866
26894
  switch (t.type) {
26867
- case W.Modal:
26895
+ case G.Modal:
26868
26896
  return /* @__PURE__ */ r.jsx(oD, { view: t, children: e });
26869
- case W.Tabs:
26897
+ case G.Tabs:
26870
26898
  return /* @__PURE__ */ r.jsx(cD, { view: t });
26871
- case W.Division:
26899
+ case G.Division:
26872
26900
  default:
26873
26901
  return /* @__PURE__ */ r.jsx(du, { view: t, children: e });
26874
26902
  }
@@ -26997,7 +27025,7 @@ const hD = z(({
26997
27025
  }) => {
26998
27026
  const {
26999
27027
  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({
27028
+ } = _(), 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
27029
  title: `${e("view.component.tabs.tab.delete")}?`,
27002
27030
  labels: {
27003
27031
  confirm: e("common.actions.confirm"),
@@ -27058,11 +27086,11 @@ const hD = z(({
27058
27086
  children: e
27059
27087
  }) => {
27060
27088
  switch (t.type) {
27061
- case W.Modal:
27089
+ case G.Modal:
27062
27090
  return /* @__PURE__ */ r.jsx(hD, { view: t, children: e });
27063
- case W.Tabs:
27091
+ case G.Tabs:
27064
27092
  return /* @__PURE__ */ r.jsx(xD, { view: t });
27065
- case W.Division:
27093
+ case G.Division:
27066
27094
  default:
27067
27095
  return /* @__PURE__ */ r.jsx(uD, { view: t, children: e });
27068
27096
  }
@@ -27100,7 +27128,7 @@ const hD = z(({
27100
27128
  viewPanelInFullScreen: i,
27101
27129
  inFullScreen: o
27102
27130
  }, children: /* @__PURE__ */ r.jsxs(M, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
27103
- height: e.type === W.Modal ? "0 !important" : "100%"
27131
+ height: e.type === G.Modal ? "0 !important" : "100%"
27104
27132
  }, children: [
27105
27133
  o && /* @__PURE__ */ r.jsx(XI, { view: e, panel: l, exitFullScreen: a }),
27106
27134
  /* @__PURE__ */ r.jsx(dD, { view: e, children: /* @__PURE__ */ r.jsxs(M, { sx: {
@@ -27116,17 +27144,17 @@ const hD = z(({
27116
27144
  });
27117
27145
  var bD = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(bD || {});
27118
27146
  const sR = {
27119
- [W.Division]: "Division",
27120
- [W.Tabs]: "Tabs",
27121
- [W.Modal]: "Modal"
27147
+ [G.Division]: "Division",
27148
+ [G.Tabs]: "Tabs",
27149
+ [G.Modal]: "Modal"
27122
27150
  }, 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)"
27151
+ [G.Division]: "rgba(255, 0, 0, 0.2)",
27152
+ [G.Modal]: "rgba(0, 0, 0, 0.2)",
27153
+ [G.Tabs]: "rgba(255, 200, 100, 0.4)"
27126
27154
  }, iR = {
27127
- [W.Division]: "#ff4000",
27128
- [W.Modal]: "#000",
27129
- [W.Tabs]: "#ffad18"
27155
+ [G.Division]: "#ff4000",
27156
+ [G.Modal]: "#000",
27157
+ [G.Tabs]: "#ffad18"
27130
27158
  };
27131
27159
  function _D(t, e, n) {
27132
27160
  mt(t, um(t, (s, i) => {
@@ -27931,7 +27959,7 @@ const LD = x.model("EditorModel", {
27931
27959
  };
27932
27960
  },
27933
27961
  downloadSchema() {
27934
- if (t.type === W.Tabs) {
27962
+ if (t.type === G.Tabs) {
27935
27963
  console.error(new Error("Please choose a tab first"));
27936
27964
  return;
27937
27965
  }
@@ -28004,8 +28032,8 @@ const LD = x.model("EditorModel", {
28004
28032
  },
28005
28033
  addARandomNewView() {
28006
28034
  const e = (/* @__PURE__ */ new Date()).getTime().toString();
28007
- this.addANewView(e, W.Division, W.Division, {
28008
- _name: W.Division
28035
+ this.addANewView(e, G.Division, G.Division, {
28036
+ _name: G.Division
28009
28037
  }), this.setIDOfVIE(e);
28010
28038
  },
28011
28039
  removeVIE() {
@@ -28285,7 +28313,7 @@ const FD = x.model({
28285
28313
  }
28286
28314
  if (Array.isArray(n)) {
28287
28315
  const p = n.map((m) => {
28288
- const b = m.panelIDs.map((w) => u.get(w) ?? w);
28316
+ const b = m.panelIDs.map((j) => u.get(j) ?? j);
28289
28317
  return {
28290
28318
  ...m,
28291
28319
  id: nn(),
@@ -28295,24 +28323,24 @@ const FD = x.model({
28295
28323
  t.views.appendMultiple(p);
28296
28324
  }
28297
28325
  if (Array.isArray(o)) {
28298
- const p = (w, T) => t.layouts.breakpointNameRecord[w] === T;
28326
+ const p = (j, T) => t.layouts.breakpointNameRecord[j] === T;
28299
28327
  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) => {
28328
+ const b = o.filter((j) => p(j.name, j.breakpoint));
28329
+ b.forEach((j) => {
28330
+ j.id === "basis" && (m = j.list), j.list.forEach((T) => {
28303
28331
  const E = u.get(T.panelID);
28304
28332
  T.id = nn(), T.panelID = E;
28305
28333
  });
28306
- }), t.layouts.list.forEach((w) => {
28307
- const T = b.find((E) => E.name === w.name && E.breakpoint === w.breakpoint);
28334
+ }), t.layouts.list.forEach((j) => {
28335
+ const T = b.find((E) => E.name === j.name && E.breakpoint === j.breakpoint);
28308
28336
  if (!T) {
28309
28337
  m.forEach((E) => {
28310
- w.addLayout(E);
28338
+ j.addLayout(E);
28311
28339
  });
28312
28340
  return;
28313
28341
  }
28314
28342
  T.list.forEach((E) => {
28315
- w.addLayout(E);
28343
+ j.addLayout(E);
28316
28344
  });
28317
28345
  });
28318
28346
  }
@@ -28389,7 +28417,7 @@ function OD({
28389
28417
  definition: {
28390
28418
  queries: m,
28391
28419
  sqlSnippets: b,
28392
- mock_context: w = {}
28420
+ mock_context: j = {}
28393
28421
  }
28394
28422
  } = a;
28395
28423
  return pu.create({
@@ -28399,14 +28427,14 @@ function OD({
28399
28427
  create_time: s,
28400
28428
  update_time: i,
28401
28429
  version: c,
28402
- filters: Jd(d, o, w, l),
28430
+ filters: Jd(d, o, j, l),
28403
28431
  queries: {
28404
28432
  current: m
28405
28433
  },
28406
28434
  sqlSnippets: {
28407
28435
  current: b
28408
28436
  },
28409
- mock_context: Cd(w),
28437
+ mock_context: Cd(j),
28410
28438
  views: hu(u),
28411
28439
  panels: {
28412
28440
  list: h
@@ -28566,7 +28594,7 @@ const ND = z(({
28566
28594
  n.openConfirmModal({
28567
28595
  title: /* @__PURE__ */ r.jsxs(y, { position: "left", children: [
28568
28596
  /* @__PURE__ */ r.jsx(vl, { size: 18, color: "red" }),
28569
- /* @__PURE__ */ r.jsx(j, { children: "You are reverting changes" })
28597
+ /* @__PURE__ */ r.jsx(w, { children: "You are reverting changes" })
28570
28598
  ] }),
28571
28599
  labels: {
28572
28600
  confirm: e("common.actions.confirm"),
@@ -28582,7 +28610,7 @@ const ND = z(({
28582
28610
  });
28583
28611
  }, a = s.changed;
28584
28612
  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: {
28613
+ /* @__PURE__ */ r.jsx(I, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Pe, { size: 18 }), onClick: t, disabled: !a, sx: {
28586
28614
  borderTopRightRadius: 0,
28587
28615
  borderBottomRightRadius: 0
28588
28616
  }, children: e("common.actions.save_changes") }),
@@ -28623,7 +28651,7 @@ const ND = z(({
28623
28651
  name: s.name
28624
28652
  }, children: [
28625
28653
  "End Editing ",
28626
- /* @__PURE__ */ r.jsx(j, { td: "underline", children: s.name })
28654
+ /* @__PURE__ */ r.jsx(w, { td: "underline", children: s.name })
28627
28655
  ] }) }) }),
28628
28656
  /* @__PURE__ */ r.jsx(ND, { saveDashboardChanges: t })
28629
28657
  ] }),
@@ -28641,7 +28669,7 @@ const ND = z(({
28641
28669
  var i;
28642
28670
  const {
28643
28671
  t
28644
- } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
28672
+ } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === G.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
28645
28673
  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
28674
  ...Bo,
28647
28675
  transform: "none !important"
@@ -28681,7 +28709,7 @@ const ND = z(({
28681
28709
  return "Screen sizes should be unique by min width";
28682
28710
  }
28683
28711
  }
28684
- }), b = l("list"), w = h.map((ee, pe) => ({
28712
+ }), b = l("list"), j = h.map((ee, pe) => ({
28685
28713
  ...ee,
28686
28714
  ...b[pe]
28687
28715
  })), T = () => {
@@ -28695,14 +28723,14 @@ const ND = z(({
28695
28723
  }) => {
28696
28724
  const pe = ee.filter((Qe) => Number.isFinite(Qe.breakpoint));
28697
28725
  s.updateLayoutSetsInfo(pe), t();
28698
- }, P = c(), G = C(() => {
28726
+ }, P = c(), W = C(() => {
28699
28727
  const ee = {
28700
28728
  list: P.list.filter((pe) => !!pe.name && Number.isFinite(pe.breakpoint))
28701
28729
  };
28702
28730
  return !ge(ee, i);
28703
28731
  }, [P, i]), K = (Z = (he = u.errors.list) == null ? void 0 : he.root) == null ? void 0 : Z.message;
28704
28732
  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: {
28733
+ /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, withBorder: !0, sx: {
28706
28734
  tableLayout: "fixed"
28707
28735
  }, children: [
28708
28736
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -28715,18 +28743,18 @@ const ND = z(({
28715
28743
  /* @__PURE__ */ r.jsx("th", {})
28716
28744
  ] }) }),
28717
28745
  /* @__PURE__ */ r.jsxs("tbody", { children: [
28718
- w.map((ee, pe) => /* @__PURE__ */ r.jsxs("tr", { children: [
28746
+ j.map((ee, pe) => /* @__PURE__ */ r.jsxs("tr", { children: [
28719
28747
  /* @__PURE__ */ r.jsx("th", { children: ee.id === "basis" ? ee.name : /* @__PURE__ */ r.jsx(f, { name: `list.${pe}.name`, control: a, render: ({
28720
28748
  field: Qe
28721
28749
  }) => /* @__PURE__ */ r.jsx(D, { size: "xs", label: "", required: !0, sx: {
28722
28750
  flex: 1
28723
28751
  }, ...Qe }) }) }),
28724
- /* @__PURE__ */ r.jsx("td", { children: ee.id === "basis" ? /* @__PURE__ */ r.jsxs(j, { ff: "monospace", children: [
28752
+ /* @__PURE__ */ r.jsx("td", { children: ee.id === "basis" ? /* @__PURE__ */ r.jsxs(w, { ff: "monospace", children: [
28725
28753
  ee.breakpoint,
28726
28754
  "px"
28727
28755
  ] }) : /* @__PURE__ */ r.jsx(f, { name: `list.${pe}.breakpoint`, control: a, render: ({
28728
28756
  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: {
28757
+ }) => /* @__PURE__ */ r.jsx(le, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r.jsx(w, { color: "dimmed", children: "px" }), rightSectionProps: {
28730
28758
  style: {
28731
28759
  width: "30px"
28732
28760
  }
@@ -28749,10 +28777,10 @@ const ND = z(({
28749
28777
  }, children: /* @__PURE__ */ r.jsx(ut, { size: 18 }) }) }) }) })
28750
28778
  ] })
28751
28779
  ] }),
28752
- /* @__PURE__ */ r.jsx(j, { mt: 6, ta: "right", size: "xs", color: "red", children: K ?? " " }),
28780
+ /* @__PURE__ */ r.jsx(w, { mt: 6, ta: "right", size: "xs", color: "red", children: K ?? " " }),
28753
28781
  /* @__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") })
28782
+ /* @__PURE__ */ r.jsx(I, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(vr, { size: 18 }), disabled: !W, children: e("common.actions.revert") }),
28783
+ /* @__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
28784
  ] })
28757
28785
  ] }) });
28758
28786
  }), QD = z(() => {
@@ -28774,19 +28802,19 @@ const ND = z(({
28774
28802
  /* @__PURE__ */ r.jsx(ie.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(kp, { size: 16 }), sx: {
28775
28803
  borderRadius: 0
28776
28804
  }, 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 })
28805
+ /* @__PURE__ */ r.jsx(w, { size: "xs", fw: "normal", children: o.name }),
28806
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "#777", children: i.layouts.currentRangeText })
28779
28807
  ] }) }) }),
28780
28808
  /* @__PURE__ */ r.jsxs(ie.Dropdown, { children: [
28781
28809
  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 })
28810
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: d.name }),
28811
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.text })
28784
28812
  ] }) }, d.id)),
28785
28813
  /* @__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") }) })
28814
+ /* @__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
28815
  ] })
28788
28816
  ] }),
28789
- i.layouts.divisionPreviewScale < 1 && /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: Yr(i.layouts.divisionPreviewScale).format({
28817
+ i.layouts.divisionPreviewScale < 1 && /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: Yr(i.layouts.divisionPreviewScale).format({
28790
28818
  output: "percent",
28791
28819
  mantissa: 0
28792
28820
  }) })
@@ -28805,7 +28833,7 @@ const ND = z(({
28805
28833
  var i;
28806
28834
  const {
28807
28835
  t
28808
- } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => {
28836
+ } = _(), e = ae(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === G.Tabs, s = () => {
28809
28837
  var a;
28810
28838
  return (a = e.views.VIE) == null ? void 0 : a.downloadSchema();
28811
28839
  };
@@ -28819,7 +28847,7 @@ const ND = z(({
28819
28847
  }), Ds = ({
28820
28848
  headers: t,
28821
28849
  rows: e
28822
- }) => /* @__PURE__ */ r.jsxs(Ve, { fontSize: "xs", highlightOnHover: !0, sx: {
28850
+ }) => /* @__PURE__ */ r.jsxs(qe, { fontSize: "xs", highlightOnHover: !0, sx: {
28823
28851
  tableLayout: "fixed",
28824
28852
  fontFamily: "monospace"
28825
28853
  }, children: [
@@ -28832,7 +28860,7 @@ const ND = z(({
28832
28860
  t: e
28833
28861
  } = _(), n = t.views;
28834
28862
  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") }),
28863
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("view.labels") }),
28836
28864
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28837
28865
  /* @__PURE__ */ r.jsx("th", { style: {
28838
28866
  width: "160px"
@@ -28852,7 +28880,7 @@ const ND = z(({
28852
28880
  t: e
28853
28881
  } = _(), n = t.filters;
28854
28882
  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") }),
28883
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("filter.labels") }),
28856
28884
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28857
28885
  /* @__PURE__ */ r.jsx("th", { style: {
28858
28886
  width: "160px"
@@ -28872,7 +28900,7 @@ const ND = z(({
28872
28900
  t: e
28873
28901
  } = _(), n = t.panels;
28874
28902
  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") }),
28903
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("panel.labels") }),
28876
28904
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28877
28905
  /* @__PURE__ */ r.jsx("th", { style: {
28878
28906
  width: "160px"
@@ -28893,7 +28921,7 @@ const ND = z(({
28893
28921
  t: e
28894
28922
  } = _(), n = (s = t.definition) == null ? void 0 : s.queries;
28895
28923
  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") }),
28924
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("query.labels") }),
28897
28925
  /* @__PURE__ */ r.jsx(Ds, { headers: /* @__PURE__ */ r.jsxs("tr", { children: [
28898
28926
  /* @__PURE__ */ r.jsx("th", { style: {
28899
28927
  width: "160px"
@@ -28920,7 +28948,7 @@ const ND = z(({
28920
28948
  t: e
28921
28949
  } = _(), n = (s = t.definition) == null ? void 0 : s.sqlSnippets;
28922
28950
  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") }),
28951
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("sql_snippet.labels") }),
28924
28952
  /* @__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
28953
  ] });
28926
28954
  }, ZD = ({
@@ -28931,14 +28959,14 @@ const ND = z(({
28931
28959
  t: e
28932
28960
  } = _(), n = Object.keys(((s = t.definition) == null ? void 0 : s.mock_context) ?? {});
28933
28961
  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") }),
28962
+ /* @__PURE__ */ r.jsx(w, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: e("mock_context.label") }),
28935
28963
  /* @__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
28964
  ] });
28937
28965
  }, eM = ({
28938
28966
  content: t
28939
28967
  }) => t ? /* @__PURE__ */ r.jsxs(M, { children: [
28940
28968
  /* @__PURE__ */ r.jsx(L, { mt: 20, mb: 10, variant: "dashed" }),
28941
- /* @__PURE__ */ r.jsx(j, { ta: "left", c: "dimmed", children: "Preview" }),
28969
+ /* @__PURE__ */ r.jsx(w, { ta: "left", c: "dimmed", children: "Preview" }),
28942
28970
  /* @__PURE__ */ r.jsxs(k, { children: [
28943
28971
  /* @__PURE__ */ r.jsx(UD, { content: t }),
28944
28972
  /* @__PURE__ */ r.jsx(YD, { content: t }),
@@ -28980,12 +29008,12 @@ const nM = z(({
28980
29008
  content: null
28981
29009
  }
28982
29010
  }), h = ({
28983
- content: G
29011
+ content: W
28984
29012
  }) => {
28985
29013
  try {
28986
- if (!G)
29014
+ if (!W)
28987
29015
  throw new Error("please use a valid json file");
28988
- i.applyJSONSchema(G), Bn({
29016
+ i.applyJSONSchema(W), Bn({
28989
29017
  title: "Successful",
28990
29018
  message: "",
28991
29019
  color: "green"
@@ -29001,8 +29029,8 @@ const nM = z(({
29001
29029
  O(() => {
29002
29030
  if (!p)
29003
29031
  return;
29004
- const G = new FileReader();
29005
- G.readAsText(p, "UTF-8"), G.onload = (K) => {
29032
+ const W = new FileReader();
29033
+ W.readAsText(p, "UTF-8"), W.onload = (K) => {
29006
29034
  try {
29007
29035
  const he = tM(K);
29008
29036
  l("content", he), u("content");
@@ -29012,14 +29040,14 @@ const nM = z(({
29012
29040
  message: he.message
29013
29041
  });
29014
29042
  }
29015
- }, G.onabort = () => console.log("🟨 abort"), G.onerror = () => {
29016
- G.error && (console.error(G.error), d("content", {
29043
+ }, W.onabort = () => console.log("🟨 abort"), W.onerror = () => {
29044
+ W.error && (console.error(W.error), d("content", {
29017
29045
  type: "custom",
29018
- message: G.error.message
29046
+ message: W.error.message
29019
29047
  }));
29020
29048
  };
29021
29049
  }, [p]);
29022
- const [b] = c(["content"]), w = !b, T = (E = o == null ? void 0 : o.content) == null ? void 0 : E.message;
29050
+ const [b] = c(["content"]), j = !b, T = (E = o == null ? void 0 : o.content) == null ? void 0 : E.message;
29023
29051
  return O(() => {
29024
29052
  !b || T ? n() : e();
29025
29053
  }, [b, T]), /* @__PURE__ */ r.jsx(M, { mx: "auto", sx: {
@@ -29028,7 +29056,7 @@ const nM = z(({
29028
29056
  /* @__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: {
29029
29057
  maxWidth: 500
29030
29058
  } }),
29031
- T ? /* @__PURE__ */ r.jsx(Ve, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
29059
+ T ? /* @__PURE__ */ r.jsx(qe, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
29032
29060
  /* @__PURE__ */ r.jsxs("tr", { children: [
29033
29061
  /* @__PURE__ */ r.jsx("th", { children: s("import.this_dashboard") }),
29034
29062
  /* @__PURE__ */ r.jsx("td", { children: cn })
@@ -29041,7 +29069,7 @@ const nM = z(({
29041
29069
  ] })
29042
29070
  ] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
29043
29071
  /* @__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") }) })
29072
+ /* @__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
29073
  ] })
29046
29074
  ] }) });
29047
29075
  }), Go = {
@@ -29060,7 +29088,7 @@ const nM = z(({
29060
29088
  }] = sn(!1), [i, {
29061
29089
  setTrue: a,
29062
29090
  setFalse: o
29063
- }] = it(!1), c = ((d = xe().content.views.VIE) == null ? void 0 : d.type) === W.Tabs;
29091
+ }] = it(!1), c = ((d = xe().content.views.VIE) == null ? void 0 : d.type) === G.Tabs;
29064
29092
  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
29093
  ...Go,
29066
29094
  transform: "none !important"
@@ -29122,11 +29150,11 @@ function oM(t, e, n) {
29122
29150
  } = m;
29123
29151
  switch (p) {
29124
29152
  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({
29153
+ let j = b.urlTemplate.substring(0, 100);
29154
+ b.urlTemplate.length >= 20 && (j += "..."), o.type = "interaction", o.data.interactions.push({
29127
29155
  schemaRef: p,
29128
29156
  urlTemplate: b.urlTemplate,
29129
- shortURLTemplate: w
29157
+ shortURLTemplate: j
29130
29158
  });
29131
29159
  return;
29132
29160
  case "builtin:op:open_view":
@@ -29228,15 +29256,15 @@ function pM(t, e) {
29228
29256
  }), s;
29229
29257
  }
29230
29258
  const mM = {
29231
- [W.Division]: "Div",
29232
- [W.Modal]: "Modal",
29233
- [W.Tabs]: "Tabs"
29259
+ [G.Division]: "Div",
29260
+ [G.Modal]: "Modal",
29261
+ [G.Tabs]: "Tabs"
29234
29262
  }, xM = yD;
29235
29263
  function gM(t) {
29236
29264
  return t.current.map((n, s) => {
29237
29265
  const i = cM(n.panelIDs.length, Ur, yu) + wa + fu;
29238
29266
  let a = [];
29239
- return n.type === W.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
29267
+ return n.type === G.Tabs && (a = n.config.tabsInOrder.map((l) => l.view_id)), {
29240
29268
  id: n.id,
29241
29269
  _node_type: "view-root",
29242
29270
  _view_type: n.type,
@@ -29264,7 +29292,7 @@ function gM(t) {
29264
29292
  function fM(t) {
29265
29293
  const e = S.keyBy(t, (n) => n.id);
29266
29294
  t.forEach((n) => {
29267
- n._node_type !== "view-root" || n._view_type !== W.Tabs || n._tab_view_ids.forEach((s) => {
29295
+ n._node_type !== "view-root" || n._view_type !== G.Tabs || n._tab_view_ids.forEach((s) => {
29268
29296
  e[s].parentNode = n.id;
29269
29297
  });
29270
29298
  });
@@ -29281,7 +29309,7 @@ function yM({
29281
29309
  edges: n
29282
29310
  }) {
29283
29311
  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) => {
29312
+ 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
29313
  const o = t[a];
29286
29314
  o.position.y = i, o.position.x = is;
29287
29315
  const l = o.style.height;
@@ -29372,8 +29400,8 @@ function kM(t) {
29372
29400
  key: n.urlTemplate,
29373
29401
  icon: Xs[n.schemaRef],
29374
29402
  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 })
29403
+ /* @__PURE__ */ r.jsx(w, { children: "Open: " }),
29404
+ /* @__PURE__ */ r.jsx(w, { color: "dimmed", children: n.shortURLTemplate })
29377
29405
  ] })
29378
29406
  });
29379
29407
  return;
@@ -29385,7 +29413,7 @@ function kM(t) {
29385
29413
  e.push({
29386
29414
  key: n.schemaRef + s,
29387
29415
  icon: Xs[n.schemaRef],
29388
- text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
29416
+ text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(w, { children: [
29389
29417
  "Set Filter: ",
29390
29418
  i
29391
29419
  ] }) })
@@ -29400,7 +29428,7 @@ function kM(t) {
29400
29428
  e.push({
29401
29429
  key: n.schemaRef + s,
29402
29430
  icon: Xs[n.schemaRef],
29403
- text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(j, { children: [
29431
+ text: /* @__PURE__ */ r.jsx(y, { spacing: 4, children: /* @__PURE__ */ r.jsxs(w, { children: [
29404
29432
  "Clear Filter: ",
29405
29433
  i
29406
29434
  ] }) })
@@ -29426,7 +29454,7 @@ const CM = eh(({
29426
29454
  right: 0
29427
29455
  }, children: /* @__PURE__ */ r.jsx(op, { size: 12 }) }),
29428
29456
  /* @__PURE__ */ r.jsxs(Te, { shadow: "xl", withinPortal: !0, children: [
29429
- /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(j, { children: t.label }) }),
29457
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(w, { children: t.label }) }),
29430
29458
  /* @__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
29459
  ] }),
29432
29460
  /* @__PURE__ */ r.jsx(ao, { type: "source", position: n, isConnectable: e })
@@ -29435,7 +29463,7 @@ const CM = eh(({
29435
29463
  const zM = {
29436
29464
  interaction: CM
29437
29465
  }, TM = z(() => {
29438
- const t = Pe(), {
29466
+ const t = Fe(), {
29439
29467
  edges: e,
29440
29468
  nodes: n
29441
29469
  } = SM(t);
@@ -29518,7 +29546,7 @@ function MM({
29518
29546
  backgroundColor: n ? i.colors.gray[2] : "transparent"
29519
29547
  }), children: /* @__PURE__ */ r.jsx(y, { sx: {
29520
29548
  width: "calc(100% - 28px)"
29521
- }, onClick: t, children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: e }) }) }),
29549
+ }, onClick: t, children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: e }) }) }),
29522
29550
  n && /* @__PURE__ */ r.jsx(ye, { label: "Edit", position: "right", withinPortal: !0, children: /* @__PURE__ */ r.jsx(Y, { onClick: s, variant: "light", color: "blue", sx: {
29523
29551
  position: "absolute",
29524
29552
  top: 0,
@@ -29597,7 +29625,7 @@ const LM = z(() => {
29597
29625
  ] }),
29598
29626
  /* @__PURE__ */ r.jsx(qt.Section, { py: 5, sx: {
29599
29627
  borderBottom: "1px solid #eee"
29600
- }, children: /* @__PURE__ */ r.jsx(j, { align: "center", sx: {
29628
+ }, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
29601
29629
  userSelect: "none",
29602
29630
  cursor: "default"
29603
29631
  }, children: t("view.labels") }) }),
@@ -29710,7 +29738,7 @@ const LM = z(() => {
29710
29738
  s.editor.setPath(["_QUERIES_", c]);
29711
29739
  };
29712
29740
  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") }),
29741
+ /* @__PURE__ */ r.jsx(w, { children: n("filter.widget.common.use_query_data_as_options") }),
29714
29742
  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
29743
  ] }), data: a, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
29716
29744
  flexGrow: 1
@@ -29770,7 +29798,7 @@ const LM = z(() => {
29770
29798
  zIndex: 200,
29771
29799
  height: "100%",
29772
29800
  width: "100%"
29773
- }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29801
+ }, children: /* @__PURE__ */ r.jsx(w, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29774
29802
  ] }),
29775
29803
  a.length > 0 && /* @__PURE__ */ r.jsx(Nn, { label: n("filter.widget.select.default_selection"), data: o, value: [...s.default_value], onChange: s.setDefaultValue }),
29776
29804
  a.map((l, c) => /* @__PURE__ */ r.jsxs(Ut, { gap: 10, sx: {
@@ -29842,7 +29870,7 @@ const LM = z(() => {
29842
29870
  zIndex: 200,
29843
29871
  height: "100%",
29844
29872
  width: "100%"
29845
- }, children: /* @__PURE__ */ r.jsx(j, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29873
+ }, children: /* @__PURE__ */ r.jsx(w, { color: "white", size: 16, children: n("filter.widget.common.using_query") }) })
29846
29874
  ] }),
29847
29875
  o.length > 0 && /* @__PURE__ */ r.jsx(V, { label: n("filter.widget.select.default_selection"), data: l, value: i.default_value, onChange: i.setDefaultValue }),
29848
29876
  o.map((c, d) => /* @__PURE__ */ r.jsxs(Ut, { gap: 10, sx: {
@@ -29933,7 +29961,7 @@ const LM = z(() => {
29933
29961
  return /* @__PURE__ */ r.jsxs(M, { sx: {
29934
29962
  maxWidth: "480px"
29935
29963
  }, children: [
29936
- /* @__PURE__ */ r.jsx(j, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
29964
+ /* @__PURE__ */ r.jsx(w, { pt: "0", pb: "md", color: "gray", children: n("common.titles.config") }),
29937
29965
  /* @__PURE__ */ r.jsx(rn, { mt: 22, language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e, null, 4) })
29938
29966
  ] });
29939
29967
  }), QM = {
@@ -29979,7 +30007,7 @@ const LM = z(() => {
29979
30007
  /* @__PURE__ */ r.jsxs(M, { sx: {
29980
30008
  maxWidth: "600px"
29981
30009
  }, children: [
29982
- /* @__PURE__ */ r.jsx(j, { pb: "md", color: "gray", children: n("common.titles.edit") }),
30010
+ /* @__PURE__ */ r.jsx(w, { pb: "md", color: "gray", children: n("common.titles.edit") }),
29983
30011
  /* @__PURE__ */ r.jsxs(k, { children: [
29984
30012
  /* @__PURE__ */ r.jsxs(y, { noWrap: !0, children: [
29985
30013
  /* @__PURE__ */ r.jsx(
@@ -30021,7 +30049,7 @@ const LM = z(() => {
30021
30049
  return null;
30022
30050
  const a = i.filters.findByID(t);
30023
30051
  if (!a)
30024
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
30052
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
30025
30053
  "Filter by ID[",
30026
30054
  t,
30027
30055
  "] is not found"
@@ -30073,7 +30101,7 @@ const LM = z(() => {
30073
30101
  }, spacing: "sm", pb: "59px", children: [
30074
30102
  /* @__PURE__ */ r.jsx(M, { pt: 9, pb: 8, sx: {
30075
30103
  borderBottom: "1px solid #eee"
30076
- }, children: /* @__PURE__ */ r.jsx(j, { px: "md", align: "left", sx: {
30104
+ }, children: /* @__PURE__ */ r.jsx(w, { px: "md", align: "left", sx: {
30077
30105
  userSelect: "none",
30078
30106
  cursor: "default"
30079
30107
  }, children: t("filter.manage") }) }),
@@ -30097,7 +30125,7 @@ const LM = z(() => {
30097
30125
  /* @__PURE__ */ r.jsx(M, { sx: {
30098
30126
  flexGrow: 1,
30099
30127
  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: {
30128
+ }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, sx: {
30101
30129
  tableLayout: "fixed"
30102
30130
  }, children: [
30103
30131
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -30161,7 +30189,7 @@ const LM = z(() => {
30161
30189
  borderBottom: "1px solid #eee",
30162
30190
  background: "#efefef",
30163
30191
  flexGrow: 0
30164
- }, children: /* @__PURE__ */ r.jsx(j, { weight: 500, children: t("mock_context.label") }) }),
30192
+ }, children: /* @__PURE__ */ r.jsx(w, { weight: 500, children: t("mock_context.label") }) }),
30165
30193
  /* @__PURE__ */ r.jsxs(y, { grow: !0, px: "md", pb: "md", pt: 0, sx: {
30166
30194
  flexGrow: 1,
30167
30195
  position: "relative",
@@ -30170,7 +30198,7 @@ const LM = z(() => {
30170
30198
  /* @__PURE__ */ r.jsxs(k, { spacing: 10, sx: {
30171
30199
  maxWidth: "unset !important"
30172
30200
  }, children: [
30173
- /* @__PURE__ */ r.jsx(j, { children: t("mock_context.hint") }),
30201
+ /* @__PURE__ */ r.jsx(w, { children: t("mock_context.hint") }),
30174
30202
  /* @__PURE__ */ r.jsx(tl, { validationError: "Invalid json", formatOnBlur: !0, autosize: !0, minRows: 30, value: n, onChange: s, sx: {
30175
30203
  flexGrow: 1
30176
30204
  } })
@@ -30198,14 +30226,14 @@ const LM = z(() => {
30198
30226
  t
30199
30227
  } = _(), {
30200
30228
  panel: e
30201
- } = Ct(), n = Pe().layouts.findItemByPanelID(e.id), {
30229
+ } = Ct(), n = Fe().layouts.findItemByPanelID(e.id), {
30202
30230
  style: s
30203
30231
  } = e;
30204
30232
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30205
30233
  /* @__PURE__ */ r.jsx(L, { mb: -10, label: t("panel.style.label"), labelPosition: "center", variant: "dashed" }),
30206
30234
  /* @__PURE__ */ r.jsxs(k, { spacing: 20, children: [
30207
30235
  /* @__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: {
30236
+ /* @__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
30237
  rightSection: {
30210
30238
  width: "auto",
30211
30239
  maxWidth: "100px",
@@ -30215,7 +30243,7 @@ const LM = z(() => {
30215
30243
  }, value: n.w, onChange: (i) => {
30216
30244
  i && n.setWidth(i);
30217
30245
  } }),
30218
- /* @__PURE__ */ r.jsx(le, { label: t("panel.style.height"), rightSection: /* @__PURE__ */ r.jsx(j, { size: 12, children: t("panel.style.height_postfix") }), styles: {
30246
+ /* @__PURE__ */ r.jsx(le, { label: t("panel.style.height"), rightSection: /* @__PURE__ */ r.jsx(w, { size: 12, children: t("panel.style.height_postfix") }), styles: {
30219
30247
  rightSection: {
30220
30248
  width: "40px"
30221
30249
  }
@@ -30245,11 +30273,11 @@ const LM = z(() => {
30245
30273
  const l = !s.trim();
30246
30274
  return /* @__PURE__ */ r.jsxs(k, { spacing: 4, children: [
30247
30275
  /* @__PURE__ */ r.jsxs(y, { align: "center", children: [
30248
- /* @__PURE__ */ r.jsxs(j, { size: 14, fw: 500, children: [
30276
+ /* @__PURE__ */ r.jsxs(w, { size: 14, fw: 500, children: [
30249
30277
  t("panel.panel_name"),
30250
30278
  /* @__PURE__ */ r.jsx(ZM, {})
30251
30279
  ] }),
30252
- /* @__PURE__ */ r.jsx(Y, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(Ne, { size: 18 }) })
30280
+ /* @__PURE__ */ r.jsx(Y, { variant: "subtle", color: "blue", disabled: !a || l, onClick: o, children: /* @__PURE__ */ r.jsx(Pe, { size: 18 }) })
30253
30281
  ] }),
30254
30282
  /* @__PURE__ */ r.jsx(D, { value: s, onChange: i, required: !0 })
30255
30283
  ] });
@@ -30334,7 +30362,7 @@ function vu({
30334
30362
  });
30335
30363
  return t.length === 0 ? /* @__PURE__ */ r.jsx(M, { sx: {
30336
30364
  height: "5em"
30337
- } }) : /* @__PURE__ */ r.jsx(Ue, { children: /* @__PURE__ */ r.jsxs(Ve, { sx: rL, children: [
30365
+ } }) : /* @__PURE__ */ r.jsx(Ue, { children: /* @__PURE__ */ r.jsxs(qe, { sx: rL, children: [
30338
30366
  /* @__PURE__ */ r.jsx("thead", { children: n.getHeaderGroups().map((s) => /* @__PURE__ */ r.jsx("tr", { children: s.headers.map((i) => /* @__PURE__ */ r.jsxs("th", { style: {
30339
30367
  width: i.getSize()
30340
30368
  }, children: [
@@ -30391,7 +30419,7 @@ const sL = [{
30391
30419
  !d && /* @__PURE__ */ r.jsx(
30392
30420
  V,
30393
30421
  {
30394
- icon: /* @__PURE__ */ r.jsx(j, { ta: "center", color: "dimmed", size: 14, children: a("common.pagination.page_size") }),
30422
+ icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: a("common.pagination.page_size") }),
30395
30423
  size: "xs",
30396
30424
  styles: iL,
30397
30425
  data: sL,
@@ -30400,7 +30428,7 @@ const sL = [{
30400
30428
  }
30401
30429
  )
30402
30430
  ] }),
30403
- /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(j, { color: "dimmed", my: 0, size: 14, children: a("common.pagination.total_rows", {
30431
+ /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(w, { color: "dimmed", my: 0, size: 14, children: a("common.pagination.total_rows", {
30404
30432
  total: o
30405
30433
  }) }) })
30406
30434
  ] });
@@ -30427,13 +30455,13 @@ const sL = [{
30427
30455
  }), lL = ({
30428
30456
  queryID: t
30429
30457
  }) => {
30430
- const e = Pe(), {
30458
+ const e = Fe(), {
30431
30459
  state: n,
30432
30460
  error: s
30433
30461
  } = 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: {
30462
+ return n === "loading" ? null : s ? /* @__PURE__ */ r.jsx(w, { mt: 10, color: "red", size: "md", align: "center", sx: {
30435
30463
  fontFamily: "monospace"
30436
- }, children: s }) : i != null && i.stateMessage ? /* @__PURE__ */ r.jsx(j, { mt: 10, color: "gray", align: "center", children: i.stateMessage }) : null;
30464
+ }, children: s }) : i != null && i.stateMessage ? /* @__PURE__ */ r.jsx(w, { mt: 10, color: "gray", align: "center", children: i.stateMessage }) : null;
30437
30465
  }, yi = z(({
30438
30466
  id: t,
30439
30467
  moreActions: e,
@@ -30441,7 +30469,7 @@ const sL = [{
30441
30469
  }) => {
30442
30470
  const {
30443
30471
  t: s
30444
- } = _(), i = Pe(), {
30472
+ } = _(), i = Fe(), {
30445
30473
  data: a,
30446
30474
  state: o
30447
30475
  } = i.getDataStuffByID(t), l = o === "loading", c = Ge(() => {
@@ -30461,7 +30489,7 @@ const sL = [{
30461
30489
  borderBottom: "1px solid #eee",
30462
30490
  background: "#efefef"
30463
30491
  }, children: [
30464
- /* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(j, { weight: 500, children: s("data.preview_data") }) }),
30492
+ /* @__PURE__ */ r.jsx(y, { position: "left", children: /* @__PURE__ */ r.jsx(w, { weight: 500, children: s("data.preview_data") }) }),
30465
30493
  /* @__PURE__ */ r.jsxs(y, { pr: 15, children: [
30466
30494
  e,
30467
30495
  /* @__PURE__ */ r.jsx(Y, { variant: "subtle", color: "blue", disabled: l, onClick: c, children: /* @__PURE__ */ r.jsx(Si, { size: 16 }) }),
@@ -30518,7 +30546,7 @@ const sL = [{
30518
30546
  flexShrink: 0
30519
30547
  }, children: [
30520
30548
  /* @__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 : "" }) }),
30549
+ /* @__PURE__ */ r.jsx(y, { grow: !0, position: "center", children: /* @__PURE__ */ r.jsx(w, { lineClamp: 1, weight: "bold", children: t.title.show ? t.name : "" }) }),
30522
30550
  /* @__PURE__ */ r.jsx(y, { position: "right", spacing: 0, sx: {
30523
30551
  height: "28px"
30524
30552
  } })
@@ -30572,7 +30600,7 @@ class uL {
30572
30600
  }
30573
30601
  addNew() {
30574
30602
  const e = this.panel.variables.filter((n) => n.name.startsWith(Zs.name)).length;
30575
- this.panel.addVariable(qe({
30603
+ this.panel.addVariable(Ne({
30576
30604
  ...Zs,
30577
30605
  name: `${Zs.name}${e || ""}`
30578
30606
  })), this.selected = cl(this.panel.variables);
@@ -30621,12 +30649,12 @@ function pL({
30621
30649
  }, u = Xo(), h = A.useMemo(() => Object.entries(u.colors).map(([p, m]) => m[6]), [u]);
30622
30650
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30623
30651
  /* @__PURE__ */ r.jsxs(y, { position: "left", ref: s, children: [
30624
- /* @__PURE__ */ r.jsx(j, { children: t }),
30652
+ /* @__PURE__ */ r.jsx(w, { children: t }),
30625
30653
  /* @__PURE__ */ r.jsx(Y, { mr: 5, variant: "filled", color: "blue", disabled: !c, onClick: d, children: /* @__PURE__ */ r.jsx(Gt, { size: 20 }) })
30626
30654
  ] }),
30627
30655
  /* @__PURE__ */ r.jsxs(y, { children: [
30628
30656
  i.map((p, m) => /* @__PURE__ */ r.jsx(_i, { value: p, onChange: (b) => {
30629
- a((w) => (w.splice(m, 1, b), [...w]));
30657
+ a((j) => (j.splice(m, 1, b), [...j]));
30630
30658
  }, swatches: h, rightSection: /* @__PURE__ */ r.jsx(Y, { onClick: () => l(m), color: "red", children: /* @__PURE__ */ r.jsx(ce, { size: 14 }) }), sx: {
30631
30659
  width: "45%"
30632
30660
  } })),
@@ -30650,13 +30678,13 @@ function xL({
30650
30678
  };
30651
30679
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30652
30680
  /* @__PURE__ */ r.jsxs(y, { position: "left", ref: i, children: [
30653
- /* @__PURE__ */ r.jsx(j, { children: t }),
30681
+ /* @__PURE__ */ r.jsx(w, { children: t }),
30654
30682
  /* @__PURE__ */ r.jsx(Y, { mr: 5, variant: "filled", color: "blue", disabled: !d, onClick: u, children: /* @__PURE__ */ r.jsx(Gt, { size: 20 }) })
30655
30683
  ] }),
30656
30684
  /* @__PURE__ */ r.jsxs(y, { children: [
30657
30685
  a.map((h, p) => /* @__PURE__ */ r.jsx(D, { type: s, value: h, onChange: (m) => {
30658
30686
  const b = m.currentTarget.value;
30659
- o((w) => (w.splice(p, 1, b), [...w]));
30687
+ o((j) => (j.splice(p, 1, b), [...j]));
30660
30688
  }, rightSection: /* @__PURE__ */ r.jsx(Y, { onClick: () => c(p), color: "red", children: /* @__PURE__ */ r.jsx(ce, { size: 14 }) }), sx: {
30661
30689
  width: "45%"
30662
30690
  } })),
@@ -30746,7 +30774,7 @@ const gL = A.forwardRef(xL), fL = A.forwardRef(function({
30746
30774
  ] })
30747
30775
  ] }),
30748
30776
  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") }),
30777
+ /* @__PURE__ */ r.jsx(Rr.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
30750
30778
  /* @__PURE__ */ r.jsx(Rr.Panel, { children: /* @__PURE__ */ r.jsx(fL, { value: e, onChange: n }) })
30751
30779
  ] }) }),
30752
30780
  /* @__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 +30786,7 @@ const gL = A.forwardRef(xL), fL = A.forwardRef(function({
30758
30786
  return /* @__PURE__ */ r.jsxs(k, { "data-testid": "variable-editor", align: "stretch", children: [
30759
30787
  /* @__PURE__ */ r.jsxs(y, { position: "apart", children: [
30760
30788
  /* @__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") })
30789
+ /* @__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
30790
  ] }),
30763
30791
  /* @__PURE__ */ r.jsx(bL, { value: Dt(n.copy), onChange: n.update, remove: s })
30764
30792
  ] });
@@ -30810,7 +30838,7 @@ const _L = z(({
30810
30838
  panel: e
30811
30839
  } = Ct();
30812
30840
  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") }),
30841
+ /* @__PURE__ */ r.jsx(w, { size: "sm", fw: 500, color: "dimmed", children: t("panel.variable.labels") }),
30814
30842
  /* @__PURE__ */ r.jsx(rn, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e.variableStrings, null, 4) })
30815
30843
  ] });
30816
30844
  });
@@ -30950,7 +30978,7 @@ const zL = z(() => {
30950
30978
  flexShrink: 0
30951
30979
  }, children: [
30952
30980
  /* @__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") })
30981
+ /* @__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
30982
  ] })
30955
30983
  ] }) })
30956
30984
  ] });
@@ -31032,7 +31060,7 @@ const ML = z(({
31032
31060
  /* @__PURE__ */ r.jsxs(y, { px: 16, position: "apart", sx: {
31033
31061
  borderBottom: "1px solid #eee"
31034
31062
  }, children: [
31035
- /* @__PURE__ */ r.jsx(j, { pt: 9, pb: 8, children: t.name }),
31063
+ /* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: t.name }),
31036
31064
  /* @__PURE__ */ r.jsxs(y, { position: "right", noWrap: !0, children: [
31037
31065
  /* @__PURE__ */ r.jsx(TL, { panel: t, sourceViewID: h }),
31038
31066
  /* @__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 +31070,8 @@ const ML = z(({
31042
31070
  /* @__PURE__ */ r.jsxs(g.List, { children: [
31043
31071
  /* @__PURE__ */ r.jsx(g.Tab, { value: "Data", disabled: d, children: e("data.label") }),
31044
31072
  /* @__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") }) }) }),
31073
+ /* @__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") }) }) }),
31074
+ /* @__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
31075
  /* @__PURE__ */ r.jsx(g.Tab, { value: "Interactions", children: e("interactions.label") })
31048
31076
  ] }),
31049
31077
  /* @__PURE__ */ r.jsxs(g.Panel, { value: "Data", children: [
@@ -31062,13 +31090,13 @@ const ML = z(({
31062
31090
  }) => {
31063
31091
  const n = ae();
31064
31092
  if (!n.views.findByID(t))
31065
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
31093
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
31066
31094
  "View by ID[",
31067
31095
  t,
31068
31096
  "] is not found"
31069
31097
  ] });
31070
31098
  const i = n.panels.findByID(e);
31071
- return i ? /* @__PURE__ */ r.jsx(ML, { panel: i }) : /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
31099
+ return i ? /* @__PURE__ */ r.jsx(ML, { panel: i }) : /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
31072
31100
  "Panel by ID[",
31073
31101
  e,
31074
31102
  "] is not found"
@@ -31081,7 +31109,7 @@ const ML = z(({
31081
31109
  }, o = () => {
31082
31110
  s.openConfirmModal({
31083
31111
  title: "Delete ununsed queries?",
31084
- children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: "This action cannot be undone." }),
31112
+ children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: "This action cannot be undone." }),
31085
31113
  labels: {
31086
31114
  confirm: t("common.actions.confirm"),
31087
31115
  cancel: t("common.actions.cancel")
@@ -31105,7 +31133,7 @@ const ML = z(({
31105
31133
  }, spacing: "sm", pb: "59px", children: [
31106
31134
  /* @__PURE__ */ r.jsx(M, { pt: 9, pb: 8, sx: {
31107
31135
  borderBottom: "1px solid #eee"
31108
- }, children: /* @__PURE__ */ r.jsx(j, { px: "md", align: "left", sx: {
31136
+ }, children: /* @__PURE__ */ r.jsx(w, { px: "md", align: "left", sx: {
31109
31137
  userSelect: "none",
31110
31138
  cursor: "default"
31111
31139
  }, children: t("query.manage") }) }),
@@ -31132,7 +31160,7 @@ const ML = z(({
31132
31160
  /* @__PURE__ */ r.jsx(M, { sx: {
31133
31161
  flexGrow: 1,
31134
31162
  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: {
31163
+ }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, sx: {
31136
31164
  tableLayout: "fixed"
31137
31165
  }, children: [
31138
31166
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31237,7 +31265,7 @@ const ML = z(({
31237
31265
  const {
31238
31266
  columns: e
31239
31267
  } = 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: {
31268
+ 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
31269
  width: "auto",
31242
31270
  minWidth: "1000px",
31243
31271
  alignSelf: "flex-start",
@@ -31297,7 +31325,7 @@ const ML = z(({
31297
31325
  const {
31298
31326
  indexes: e
31299
31327
  } = t, n = e.data;
31300
- return /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, fontSize: 14, sx: {
31328
+ return /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, fontSize: 14, sx: {
31301
31329
  width: "auto",
31302
31330
  minWidth: "950px",
31303
31331
  alignSelf: "flex-start",
@@ -31345,7 +31373,7 @@ const ML = z(({
31345
31373
  const {
31346
31374
  indexes: e
31347
31375
  } = t, n = e.data;
31348
- return /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, fontSize: 14, sx: {
31376
+ return /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, fontSize: 14, sx: {
31349
31377
  width: "auto",
31350
31378
  minWidth: "850px",
31351
31379
  alignSelf: "flex-start",
@@ -31475,7 +31503,7 @@ const BL = z(({
31475
31503
  /* @__PURE__ */ r.jsx(
31476
31504
  V,
31477
31505
  {
31478
- icon: /* @__PURE__ */ r.jsx(j, { ta: "center", color: "dimmed", size: 14, children: e("common.pagination.page_size") }),
31506
+ icon: /* @__PURE__ */ r.jsx(w, { ta: "center", color: "dimmed", size: 14, children: e("common.pagination.page_size") }),
31479
31507
  size: "xs",
31480
31508
  styles: QL,
31481
31509
  data: GL,
@@ -31484,7 +31512,7 @@ const BL = z(({
31484
31512
  }
31485
31513
  )
31486
31514
  ] }),
31487
- /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(j, { color: "dimmed", my: 0, size: 14, children: e("common.pagination.total_rows", {
31515
+ /* @__PURE__ */ r.jsx(y, { position: "right", children: /* @__PURE__ */ r.jsx(w, { color: "dimmed", my: 0, size: 14, children: e("common.pagination.total_rows", {
31488
31516
  total: n.total
31489
31517
  }) }) })
31490
31518
  ] });
@@ -31492,9 +31520,9 @@ const BL = z(({
31492
31520
  dataSource: t
31493
31521
  }) => {
31494
31522
  const e = t.tableData;
31495
- return e.maxPage === 0 ? /* @__PURE__ */ r.jsx(j, { mt: 20, color: "red", size: "md", align: "center", sx: {
31523
+ return e.maxPage === 0 ? /* @__PURE__ */ r.jsx(w, { mt: 20, color: "red", size: "md", align: "center", sx: {
31496
31524
  fontFamily: "monospace"
31497
- }, children: "This table is empty" }) : e.error ? /* @__PURE__ */ r.jsx(j, { mt: 20, color: "red", size: "md", align: "center", sx: {
31525
+ }, children: "This table is empty" }) : e.error ? /* @__PURE__ */ r.jsx(w, { mt: 20, color: "red", size: "md", align: "center", sx: {
31498
31526
  fontFamily: "monospace"
31499
31527
  }, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ r.jsx(WL, { visible: !0 }) : /* @__PURE__ */ r.jsxs(Ue, { children: [
31500
31528
  /* @__PURE__ */ r.jsx(HL, { dataSource: t }),
@@ -31528,7 +31556,7 @@ const BL = z(({
31528
31556
  } = _();
31529
31557
  return O(() => {
31530
31558
  t.loadTablesIfEmpty();
31531
- }, [t]), t.tables.error ? /* @__PURE__ */ r.jsx(j, { color: "red", size: "md", align: "center", sx: {
31559
+ }, [t]), t.tables.error ? /* @__PURE__ */ r.jsx(w, { color: "red", size: "md", align: "center", sx: {
31532
31560
  fontFamily: "monospace"
31533
31561
  }, children: t.tables.error }) : /* @__PURE__ */ r.jsxs(Ut, { sx: {
31534
31562
  height: "100%"
@@ -31579,7 +31607,7 @@ const BL = z(({
31579
31607
  /* @__PURE__ */ r.jsx(Se, { opened: s, onClose: () => i(!1), title: /* @__PURE__ */ r.jsxs(y, { position: "apart", sx: {
31580
31608
  flexGrow: 1
31581
31609
  }, children: [
31582
- /* @__PURE__ */ r.jsx(j, { fw: 500, children: n("data_source.explorer") }),
31610
+ /* @__PURE__ */ r.jsx(w, { fw: 500, children: n("data_source.explorer") }),
31583
31611
  /* @__PURE__ */ r.jsxs(y, { spacing: 7, children: [
31584
31612
  /* @__PURE__ */ r.jsx(_n, { variant: "gradient", gradient: {
31585
31613
  from: "indigo",
@@ -31614,10 +31642,10 @@ const BL = z(({
31614
31642
  }
31615
31643
  }, children: [
31616
31644
  /* @__PURE__ */ r.jsx(Ep, { size: 14, color: "#228be6" }),
31617
- /* @__PURE__ */ r.jsx(j, { color: "blue", children: t })
31645
+ /* @__PURE__ */ r.jsx(w, { color: "blue", children: t })
31618
31646
  ] }) : /* @__PURE__ */ r.jsxs(y, { position: "apart", ref: s, ...n, children: [
31619
- /* @__PURE__ */ r.jsx(j, { children: t }),
31620
- /* @__PURE__ */ r.jsx(j, { children: e })
31647
+ /* @__PURE__ */ r.jsx(w, { children: t }),
31648
+ /* @__PURE__ */ r.jsx(w, { children: e })
31621
31649
  ] })), ZL = z(({
31622
31650
  value: t,
31623
31651
  onChange: e
@@ -31653,7 +31681,7 @@ const BL = z(({
31653
31681
  size: "xs",
31654
31682
  px: 10
31655
31683
  } })
31656
- ] }), itemComponent: XL, rightSection: d ? /* @__PURE__ */ r.jsx(j, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
31684
+ ] }), itemComponent: XL, rightSection: d ? /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: d.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 500, styles: {
31657
31685
  root: {
31658
31686
  flex: 1
31659
31687
  },
@@ -31676,8 +31704,8 @@ const BL = z(({
31676
31704
  ...i
31677
31705
  } = t;
31678
31706
  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 })
31707
+ /* @__PURE__ */ r.jsx(w, { children: n }),
31708
+ /* @__PURE__ */ r.jsx(w, { size: "xs", color: "dimmed", children: s })
31681
31709
  ] }) });
31682
31710
  }), eA = z(({
31683
31711
  queryModel: t
@@ -31697,7 +31725,7 @@ const BL = z(({
31697
31725
  flex: 1
31698
31726
  }, value: n, onChange: (i) => {
31699
31727
  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: () => {
31728
+ }, 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
31729
  t.setName(n);
31702
31730
  } }),
31703
31731
  /* @__PURE__ */ r.jsx(ZL, { value: {
@@ -31726,7 +31754,7 @@ function tA({
31726
31754
  }
31727
31755
  const nA = z(() => {
31728
31756
  const e = [...xe().globalSQLSnippets.list];
31729
- return e.length === 0 ? null : /* @__PURE__ */ r.jsxs(Ve, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
31757
+ return e.length === 0 ? null : /* @__PURE__ */ r.jsxs(qe, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
31730
31758
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
31731
31759
  /* @__PURE__ */ r.jsx("th", { children: "Key" }),
31732
31760
  /* @__PURE__ */ r.jsx("th", { children: "Value" })
@@ -31846,7 +31874,7 @@ WHERE
31846
31874
  }, a = (o) => {
31847
31875
  s.setPath(["_VIEWS_", o]);
31848
31876
  };
31849
- return /* @__PURE__ */ r.jsx(k, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(Ve, { highlightOnHover: !0, sx: {
31877
+ return /* @__PURE__ */ r.jsx(k, { py: "sm", px: "md", children: /* @__PURE__ */ r.jsxs(qe, { highlightOnHover: !0, sx: {
31850
31878
  tableLayout: "fixed"
31851
31879
  }, children: [
31852
31880
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -31898,7 +31926,7 @@ WHERE
31898
31926
  return i ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
31899
31927
  /* @__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
31928
  /* @__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`) }),
31929
+ /* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
31902
31930
  /* @__PURE__ */ r.jsx(ct, { withPadding: !0, size: 14, sx: {
31903
31931
  fontFamily: "monospace",
31904
31932
  svg: {
@@ -31942,7 +31970,7 @@ WHERE
31942
31970
  /* @__PURE__ */ r.jsxs(y, { position: "right", children: [
31943
31971
  /* @__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
31972
  /* @__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") })
31973
+ /* @__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
31974
  ] })
31947
31975
  ] }),
31948
31976
  /* @__PURE__ */ r.jsx(za, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
@@ -31963,7 +31991,7 @@ WHERE
31963
31991
  } }), dA = z(({
31964
31992
  value: t
31965
31993
  }) => {
31966
- const n = Pe().payloadForSQL, s = A.useMemo(() => Ii(t, n), [t, n]);
31994
+ const n = Fe().payloadForSQL, s = A.useMemo(() => Ii(t, n), [t, n]);
31967
31995
  return /* @__PURE__ */ r.jsx(cA, { height: "100%", value: s });
31968
31996
  }), Ko = {
31969
31997
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -32015,9 +32043,9 @@ WHERE
32015
32043
  return t.isTransform ? /* @__PURE__ */ r.jsxs(k, { py: 20, px: 20, sx: {
32016
32044
  height: "100%"
32017
32045
  }, children: [
32018
- /* @__PURE__ */ r.jsx(j, { size: "sm", children: e("query.transform.guide.pick_queries") }),
32046
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: e("query.transform.guide.pick_queries") }),
32019
32047
  /* @__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") }),
32048
+ /* @__PURE__ */ r.jsx(w, { size: "sm", children: e("query.transform.guide.write_function") }),
32021
32049
  /* @__PURE__ */ r.jsx(M, { sx: {
32022
32050
  flexGrow: 1
32023
32051
  }, children: /* @__PURE__ */ r.jsx(Gn, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: hA.pre }) })
@@ -32044,8 +32072,8 @@ WHERE
32044
32072
  t.typedAsSQL && /* @__PURE__ */ r.jsx(g.Tab, { value: "SQL", children: e("query.request") }),
32045
32073
  t.typedAsHTTP && /* @__PURE__ */ r.jsx(g.Tab, { value: "HTTP", children: e("query.request") }),
32046
32074
  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") }) }) })
32075
+ /* @__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") }) }) }),
32076
+ /* @__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
32077
  ] }),
32050
32078
  /* @__PURE__ */ r.jsx(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ r.jsx(eA, { queryModel: t }) }),
32051
32079
  t.typedAsSQL && /* @__PURE__ */ r.jsx(g.Panel, { value: "SQL", sx: ir, children: /* @__PURE__ */ r.jsx(k, { sx: {
@@ -32070,11 +32098,11 @@ WHERE
32070
32098
  id: t
32071
32099
  }) => {
32072
32100
  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" });
32101
+ return t === "" ? null : n ? /* @__PURE__ */ r.jsx(mA, { queryModel: n }) : /* @__PURE__ */ r.jsx(w, { size: 14, color: "red", children: "Invalid Query ID" });
32074
32102
  }), gA = z(({
32075
32103
  value: t
32076
32104
  }) => {
32077
- const n = Pe().payloadForSQL, s = C(() => Ii(t, n), [t, n]);
32105
+ const n = Fe().payloadForSQL, s = C(() => Ii(t, n), [t, n]);
32078
32106
  return /* @__PURE__ */ r.jsx(za, { height: "100%", value: s });
32079
32107
  }), fA = z(({
32080
32108
  item: t,
@@ -32091,8 +32119,8 @@ WHERE
32091
32119
  O(() => {
32092
32120
  l(t.key), p(t.value);
32093
32121
  }, [t]);
32094
- const b = h !== t.value, w = Rt(), T = () => {
32095
- w.openConfirmModal({
32122
+ const b = h !== t.value, j = Rt(), T = () => {
32123
+ j.openConfirmModal({
32096
32124
  title: `${s("sql_snippet.delete")}?`,
32097
32125
  labels: {
32098
32126
  confirm: s("common.actions.confirm"),
@@ -32160,7 +32188,7 @@ WHERE
32160
32188
  if (!t)
32161
32189
  return null;
32162
32190
  if (!s)
32163
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
32191
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
32164
32192
  "SQL Snippet by key[",
32165
32193
  t,
32166
32194
  "] is not found"
@@ -32181,7 +32209,7 @@ WHERE
32181
32209
  }, o = () => {
32182
32210
  s.openConfirmModal({
32183
32211
  title: "Delete ununsed SQL snippets?",
32184
- children: /* @__PURE__ */ r.jsx(j, { size: "sm", children: "This action cannot be undone." }),
32212
+ children: /* @__PURE__ */ r.jsx(w, { size: "sm", children: "This action cannot be undone." }),
32185
32213
  labels: {
32186
32214
  confirm: t("common.actions.confirm"),
32187
32215
  cancel: t("common.actions.cancel")
@@ -32205,7 +32233,7 @@ WHERE
32205
32233
  }, spacing: "sm", pb: "59px", children: [
32206
32234
  /* @__PURE__ */ r.jsx(M, { pt: 9, pb: 8, sx: {
32207
32235
  borderBottom: "1px solid #eee"
32208
- }, children: /* @__PURE__ */ r.jsx(j, { px: "md", align: "left", sx: {
32236
+ }, children: /* @__PURE__ */ r.jsx(w, { px: "md", align: "left", sx: {
32209
32237
  userSelect: "none",
32210
32238
  cursor: "default"
32211
32239
  }, children: t("sql_snippet.manage") }) }),
@@ -32232,7 +32260,7 @@ WHERE
32232
32260
  /* @__PURE__ */ r.jsx(M, { sx: {
32233
32261
  flexGrow: 1,
32234
32262
  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: {
32263
+ }, children: /* @__PURE__ */ r.jsx(X.Group, { size: "xs", value: e, onChange: n, children: /* @__PURE__ */ r.jsxs(qe, { fontSize: "sm", highlightOnHover: !0, sx: {
32236
32264
  tableLayout: "fixed"
32237
32265
  }, children: [
32238
32266
  /* @__PURE__ */ r.jsx("thead", { children: /* @__PURE__ */ r.jsxs("tr", { children: [
@@ -32271,7 +32299,7 @@ WHERE
32271
32299
  ] });
32272
32300
  }), _A = z(({
32273
32301
  view: t
32274
- }) => !t || t.type !== W.Division ? null : /* @__PURE__ */ r.jsx(k, {})), vA = z(({
32302
+ }) => !t || t.type !== G.Division ? null : /* @__PURE__ */ r.jsx(k, {})), vA = z(({
32275
32303
  view: t
32276
32304
  }) => {
32277
32305
  const {
@@ -32293,14 +32321,14 @@ WHERE
32293
32321
  value: "vertical",
32294
32322
  label: e("common.tabs.orientation.vertical")
32295
32323
  }], [n.language]);
32296
- if (!t || t.type !== W.Tabs)
32324
+ if (!t || t.type !== G.Tabs)
32297
32325
  return null;
32298
32326
  const a = t.config;
32299
32327
  return /* @__PURE__ */ r.jsxs(k, { children: [
32300
32328
  /* @__PURE__ */ r.jsx(L, { mt: 8, mb: 0, label: e("view.component.tabs.tabs_settings"), labelPosition: "center" }),
32301
32329
  /* @__PURE__ */ r.jsx(V, { label: e("common.tabs.variant.label"), value: a.variant, onChange: a.setVariant, data: s }),
32302
32330
  /* @__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) })
32331
+ /* @__PURE__ */ r.jsx(Ve, { label: e("common.tabs.grow_tabs"), checked: a.grow, onChange: (o) => a.setGrow(o.currentTarget.checked) })
32304
32332
  ] });
32305
32333
  }), jA = ({
32306
32334
  disabled: t,
@@ -32340,11 +32368,11 @@ WHERE
32340
32368
  const {
32341
32369
  enabled: m,
32342
32370
  func_content: b
32343
- } = o, w = {
32371
+ } = o, j = {
32344
32372
  enabled: m,
32345
32373
  func_content: b
32346
32374
  };
32347
- l(w), e(w);
32375
+ l(j), e(j);
32348
32376
  }, u = () => {
32349
32377
  a(), l(t);
32350
32378
  }, h = (m) => {
@@ -32377,7 +32405,7 @@ WHERE
32377
32405
  const {
32378
32406
  t: e
32379
32407
  } = _();
32380
- if (!t || t.type !== W.Modal)
32408
+ if (!t || t.type !== G.Modal)
32381
32409
  return null;
32382
32410
  const n = t.config, s = n.custom_modal_title.value;
32383
32411
  return /* @__PURE__ */ r.jsxs(k, { children: [
@@ -32407,13 +32435,13 @@ WHERE
32407
32435
  i18n: n
32408
32436
  } = _(), s = C(() => [{
32409
32437
  label: e("view.component.div.label"),
32410
- value: W.Division
32438
+ value: G.Division
32411
32439
  }, {
32412
32440
  label: e("view.component.modal.label"),
32413
- value: W.Modal
32441
+ value: G.Modal
32414
32442
  }, {
32415
32443
  label: e("view.component.tabs.label"),
32416
- value: W.Tabs
32444
+ value: G.Tabs
32417
32445
  }], [n.language]);
32418
32446
  return t ? /* @__PURE__ */ r.jsxs(k, { sx: {
32419
32447
  position: "relative"
@@ -32434,7 +32462,7 @@ WHERE
32434
32462
  return null;
32435
32463
  const a = i.views.findByID(t);
32436
32464
  if (!a)
32437
- return /* @__PURE__ */ r.jsxs(j, { size: 14, children: [
32465
+ return /* @__PURE__ */ r.jsxs(w, { size: 14, children: [
32438
32466
  "View by ID[",
32439
32467
  t,
32440
32468
  "] is not found"
@@ -32535,7 +32563,7 @@ const FA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
32535
32563
  if (!t)
32536
32564
  return null;
32537
32565
  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: {
32566
+ 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
32567
  width: "100%",
32540
32568
  borderRadius: 0
32541
32569
  }, styles: {
@@ -32670,7 +32698,7 @@ const FA = z(() => /* @__PURE__ */ r.jsx(k, { sx: {
32670
32698
  }, children: [
32671
32699
  /* @__PURE__ */ r.jsx(qt.Section, { pt: 9, pb: 8, sx: {
32672
32700
  borderBottom: "1px solid #eee"
32673
- }, children: /* @__PURE__ */ r.jsx(j, { align: "center", sx: {
32701
+ }, children: /* @__PURE__ */ r.jsx(w, { align: "center", sx: {
32674
32702
  userSelect: "none",
32675
32703
  cursor: "default"
32676
32704
  }, children: t("common.titles.settings") }) }),
@@ -32774,15 +32802,15 @@ const n2 = {
32774
32802
  const {
32775
32803
  data: b = []
32776
32804
  } = vn(Li), {
32777
- data: w = []
32778
- } = vn(Zl), T = A.useMemo(() => qD(e, n, b, w, t, c ?? {}), [e, n]);
32805
+ data: j = []
32806
+ } = vn(Zl), T = A.useMemo(() => qD(e, n, b, j, t, c ?? {}), [e, n]);
32779
32807
  A.useImperativeHandle(p, () => T, [T]), mu(T.content, !0), A.useEffect(() => {
32780
32808
  T.context.replace(t);
32781
32809
  }, [t]), A.useEffect(() => {
32782
32810
  T.datasources.replace(b);
32783
32811
  }, [b]), A.useEffect(() => {
32784
- T.globalSQLSnippets.replace(w);
32785
- }, [w]), A.useEffect(() => {
32812
+ T.globalSQLSnippets.replace(j);
32813
+ }, [j]), A.useEffect(() => {
32786
32814
  d == null || d(T.content.filters.values);
32787
32815
  }, [d, T.content.filters.values]), A.useEffect(() => {
32788
32816
  c && T.content.filters.patchValues(c);
@@ -32791,12 +32819,12 @@ const n2 = {
32791
32819
  }), [T]);
32792
32820
  const E = async () => {
32793
32821
  await s(T.json, T.content.json);
32794
- }, P = wt(ga, []), G = xu(P);
32822
+ }, P = wt(ga, []), W = xu(P);
32795
32823
  return /* @__PURE__ */ r.jsx(sl, { children: /* @__PURE__ */ r.jsx(gc, { children: /* @__PURE__ */ r.jsx(lc, { value: {
32796
32824
  searchButtonProps: a.searchButtonProps
32797
32825
  }, children: /* @__PURE__ */ r.jsx(ic, { value: T, children: /* @__PURE__ */ r.jsx(dc, { value: T.content, children: /* @__PURE__ */ r.jsx(Ri.Provider, { value: {
32798
32826
  inEditMode: !0
32799
- }, children: /* @__PURE__ */ r.jsx(Pt.Provider, { value: P, children: /* @__PURE__ */ r.jsxs(Ts, { configure: G, children: [
32827
+ }, children: /* @__PURE__ */ r.jsx(Pt.Provider, { value: P, children: /* @__PURE__ */ r.jsxs(Ts, { configure: W, children: [
32800
32828
  /* @__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
32829
  position: "relative"
32802
32830
  }, children: T.content.views.visibleViews.map((K) => /* @__PURE__ */ r.jsx(fD, { view: K }, K.id)) }) }),
@@ -32925,7 +32953,7 @@ function s2({
32925
32953
  definition: {
32926
32954
  queries: m,
32927
32955
  sqlSnippets: b,
32928
- mock_context: w = {}
32956
+ mock_context: j = {}
32929
32957
  }
32930
32958
  } = a;
32931
32959
  return Cu.create({
@@ -32935,10 +32963,10 @@ function s2({
32935
32963
  create_time: s,
32936
32964
  update_time: i,
32937
32965
  version: c,
32938
- filters: Jd(d, o, w, l),
32966
+ filters: Jd(d, o, j, l),
32939
32967
  queries: II(m),
32940
32968
  sqlSnippets: MI(b),
32941
- mock_context: Cd(w),
32969
+ mock_context: Cd(j),
32942
32970
  views: wI(u),
32943
32971
  panels: {
32944
32972
  list: h
@@ -33017,7 +33045,7 @@ const o2 = ({
33017
33045
  }, [c, m.content.filters.values]), A.useEffect(() => {
33018
33046
  l && m.content.filters.patchValues(l);
33019
33047
  }, [l, m.content.filters.patchValues]);
33020
- const b = wt(ga, []), w = xu(b);
33048
+ const b = wt(ga, []), j = xu(b);
33021
33049
  return /* @__PURE__ */ r.jsx(sl, { children: /* @__PURE__ */ r.jsx(gc, { children: /* @__PURE__ */ r.jsx(lc, { value: {
33022
33050
  searchButtonProps: i.searchButtonProps
33023
33051
  }, children: /* @__PURE__ */ r.jsx(ic, { value: m, children: /* @__PURE__ */ r.jsx(dc, { value: m.content, children: /* @__PURE__ */ r.jsx(xc.Provider, { value: {
@@ -33025,7 +33053,7 @@ const o2 = ({
33025
33053
  setFullScreenPanelID: o
33026
33054
  }, children: /* @__PURE__ */ r.jsx(Ri.Provider, { value: {
33027
33055
  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)) }) }) }) }) }) }) }) }) }) });
33056
+ }, 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
33057
  }, lR = z(o2);
33030
33058
  $.extend(xm);
33031
33059
  $.extend(gm);
@@ -33191,6 +33219,17 @@ const l2 = {
33191
33219
  m: "this month",
33192
33220
  y: "this year"
33193
33221
  }
33222
+ },
33223
+ this_so_far: {
33224
+ label: "this...so far",
33225
+ w: "week",
33226
+ m: "month",
33227
+ y: "year",
33228
+ full: {
33229
+ w: "this week so far",
33230
+ m: "this month so far",
33231
+ y: "this year so far"
33232
+ }
33194
33233
  }
33195
33234
  }
33196
33235
  }
@@ -33484,7 +33523,10 @@ const l2 = {
33484
33523
  red: "Red",
33485
33524
  green: "Green",
33486
33525
  blue: "Blue",
33487
- orange: "Orange"
33526
+ orange: "Orange",
33527
+ mapping: {
33528
+ value_input_label: "Map a value to this color"
33529
+ }
33488
33530
  }
33489
33531
  }
33490
33532
  }
@@ -34052,6 +34094,17 @@ const l2 = {
34052
34094
  m: "本月",
34053
34095
  y: "今年"
34054
34096
  }
34097
+ },
34098
+ this_so_far: {
34099
+ label: "至今",
34100
+ w: "周",
34101
+ m: "月",
34102
+ y: "年",
34103
+ full: {
34104
+ w: "本周至今",
34105
+ m: "本月至今",
34106
+ y: "本年至今"
34107
+ }
34055
34108
  }
34056
34109
  }
34057
34110
  }
@@ -34345,7 +34398,10 @@ const l2 = {
34345
34398
  red: "红",
34346
34399
  green: "绿",
34347
34400
  blue: "蓝",
34348
- orange: "橙"
34401
+ orange: "橙",
34402
+ mapping: {
34403
+ value_input_label: "映射一个值到此颜色"
34404
+ }
34349
34405
  }
34350
34406
  }
34351
34407
  }
@@ -34835,7 +34891,7 @@ export {
34835
34891
  lx as DefaultApiClient,
34836
34892
  nu as DescriptionPopover,
34837
34893
  LI as DraftModel,
34838
- W as EViewComponentType,
34894
+ G as EViewComponentType,
34839
34895
  nR as FacadeApiClient,
34840
34896
  zd as FilterCheckboxConfigMeta,
34841
34897
  Id as FilterDateRangeConfigMeta,
@@ -34926,7 +34982,7 @@ export {
34926
34982
  Ct as useEditPanelContext,
34927
34983
  ng as useFullScreenPanelContext,
34928
34984
  ZI as usePanelFullScreen,
34929
- Pe as useRenderContentModelContext,
34985
+ Fe as useRenderContentModelContext,
34930
34986
  Xx as useRenderDashboardContext,
34931
34987
  Dn as useRenderPanelContext
34932
34988
  };