@devtable/dashboard 14.31.1 → 14.32.1

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.
@@ -5,19 +5,19 @@ import { createInstance as pu } from "i18next";
5
5
  import { useTranslation as x, Trans as Sr, initReactI18next as mu, I18nextProvider as gu } from "react-i18next";
6
6
  import fu from "i18next-browser-languagedetector";
7
7
  import "intl-pluralrules";
8
- import C, { unset as bu, get as se, isObject as tl, set as wa, omit as dn, isFunction as yu, orderBy as _u, last as nl, cloneDeepWith as rl, defaults as he, minBy as xu, maxBy as vu, cloneDeep as Pe, values as al, template as Sa, throttle as wu, range as Su, defaultsDeep as He, isEqual as Fe, keyBy as Cu, isEmpty as il, isNumber as ku, findLastIndex as zu, isString as ol, pick as ll } from "lodash";
8
+ import C, { unset as bu, get as se, isObject as tl, set as Sa, omit as un, isFunction as yu, orderBy as _u, last as nl, cloneDeepWith as rl, defaults as he, minBy as xu, maxBy as vu, cloneDeep as Pe, values as al, template as Ca, throttle as wu, range as Su, defaultsDeep as He, isEqual as Fe, keyBy as Cu, isEmpty as il, isNumber as ku, findLastIndex as zu, isString as ol, pick as ll } from "lodash";
9
9
  import { observable as sl, runInAction as jn, toJS as Ot, reaction as Ne, makeAutoObservable as Un } from "mobx";
10
- import Qi from "eventemitter2";
10
+ import Hi from "eventemitter2";
11
11
  import { jsx as r, Fragment as F, jsxs as u } from "react/jsx-runtime";
12
12
  import P, { useId as Tu, useState as Q, useEffect as N, useCallback as ae, forwardRef as ee, useMemo as z, useRef as Pt, createContext as cl, createElement as Ln, useContext as Ut, memo as Du } from "react";
13
- import un, { random as Cr } from "chroma-js";
13
+ import hn, { random as Cr } from "chroma-js";
14
14
  import Ge from "echarts-for-react/lib/core";
15
15
  import "echarts-gl";
16
16
  import * as Be from "echarts/core";
17
17
  import { use as Iu } from "echarts/core";
18
- import { useBoolean as De, useCreation as Rt, usePrevious as Mu, useAsyncEffect as Vn, useRequest as hn, useLatest as oa, useWhyDidYouUpdate as dl } from "ahooks";
19
- import { Box as $, TextInput as V, Group as _, Text as k, Select as E, Button as L, Modal as we, Stack as T, Divider as R, NumberInput as ne, SimpleGrid as ke, Menu as U, UnstyledButton as Ca, Tooltip as re, Flex as tt, ColorInput as tn, Center as qt, ActionIcon as te, Badge as Qt, CloseButton as vt, Overlay as nn, NativeSelect as ka, useMantineTheme as kr, ColorSwatch as dr, Popover as ut, ColorPicker as Hi, HoverCard as xe, Checkbox as J, Paper as Lu, Code as Gi, Tabs as S, Switch as Ce, Table as w, MultiSelect as pn, LoadingOverlay as rn, Alert as Kn, Collapse as Yn, CheckIcon as Vu, SegmentedControl as za, Anchor as Hn, Pagination as zr, Textarea as ul, RangeSlider as $u, Autocomplete as Au, Combobox as Bt, Mark as hl, Slider as Pu, List as We, getRadius as Ta, Affix as Ru, AppShell as Xe, FileInput as Eu, Highlight as Ou, rem as Wi, ThemeIcon as ar, JsonInput as pl, Drawer as qu, Radio as Ui, Skeleton as Ki, NavLink as la, useCombobox as Fu, Loader as Da, InputBase as Nu, Input as Bu } from "@mantine/core";
20
- import { useHover as ju, useDisclosure as an, useClipboard as Qu, randomId as mn, useElementSize as ml, useResizeObserver as Hu, useInputState as gl } from "@mantine/hooks";
18
+ import { useBoolean as De, useCreation as Rt, usePrevious as Mu, useAsyncEffect as Vn, useRequest as pn, useLatest as la, useWhyDidYouUpdate as dl } from "ahooks";
19
+ import { Box as $, TextInput as V, Group as _, Text as k, Select as E, Button as L, Modal as we, Stack as T, Divider as R, NumberInput as ne, SimpleGrid as ke, Menu as U, UnstyledButton as ka, Tooltip as re, Flex as tt, ColorInput as nn, Center as qt, ActionIcon as te, Badge as Qt, CloseButton as vt, Overlay as rn, NativeSelect as za, useMantineTheme as kr, ColorSwatch as dr, Popover as ut, ColorPicker as Gi, HoverCard as xe, Checkbox as J, Paper as Lu, Code as Wi, Tabs as S, Switch as Ce, Table as w, MultiSelect as Jt, LoadingOverlay as an, Alert as Kn, Collapse as Yn, CheckIcon as Vu, SegmentedControl as Ta, Anchor as Hn, Pagination as zr, Textarea as ul, RangeSlider as $u, Autocomplete as Au, Combobox as Bt, Mark as hl, Slider as Pu, List as We, getRadius as Da, Affix as Ru, AppShell as Xe, FileInput as Eu, Highlight as Ou, rem as Ui, ThemeIcon as ar, JsonInput as pl, Drawer as qu, Radio as Ki, Skeleton as Yi, NavLink as sa, useCombobox as Fu, Loader as Ia, InputBase as Nu, Input as Bu } from "@mantine/core";
20
+ import { useHover as ju, useDisclosure as on, useClipboard as Qu, randomId as mn, useElementSize as ml, useResizeObserver as Hu, useInputState as gl } from "@mantine/hooks";
21
21
  import * as Gu from "popmotion";
22
22
  import { interpolate as yn } from "popmotion";
23
23
  import * as fl from "d3-array";
@@ -28,7 +28,7 @@ import * as Uu from "crypto-js";
28
28
  import Ku from "crypto-js";
29
29
  import O from "dayjs";
30
30
  import Ht from "numbro";
31
- import { IconMathFunction as Kt, IconRecycle as mt, IconDeviceFloppy as me, IconSelector as Yu, IconGripVertical as bl, IconTrash as Ae, IconArrowBackUp as Xu, IconPlayerSkipBack as yl, IconMathFunctionOff as Zu, IconTextSize as Ia, IconInfoCircle as Re, IconCheck as Ju, IconBorderAll as eh, IconCircleOff as _l, IconX as Ma, IconAlertCircle as Gn, IconPlus as lt, IconGripHorizontal as th, IconChevronUp as nh, IconChevronDown as xl, IconChartAreaLineFilled as rh, IconPlaylistAdd as Wn, IconArrowDown as ah, IconArrowUp as ih, IconArrowBarToRight as La, IconArrowCurveRight as sa, IconLayersIntersect as oh, IconLayersSubtract as lh, IconCalendar as sh, IconMinus as ch, IconRefresh as Tr, IconChevronsUp as dh, IconChevronsDown as uh, IconDatabase as Jt, IconDownload as Xn, IconCode as gn, IconCamera as Dr, IconArrowsMaximize as vl, IconAppWindow as Va, IconVariable as $n, IconChartHistogram as wl, IconRoute as $a, IconCopy as Aa, IconArrowLeft as Sl, IconArrowsMove as hh, IconChevronDownRight as ph, IconShare3 as mh, IconArrowsLeftRight as gh, IconCodeDots as Cl, IconFilter as Pa, IconBoxMultiple as Ra, IconCaretDown as fh, IconAlertTriangle as kl, IconDevices as bh, IconSettings as An, IconPointFilled as Ir, IconFileImport as Yi, IconSearch as zl, IconCircleDashed as yh, IconCircleDot as _h, IconChevronsUpRight as xh, IconAdjustments as vh, IconLine as wh, IconEye as Tl, IconTable as Sh, IconColumns as Ch, IconVectorTriangle as kh, IconVariablePlus as zh, IconHierarchy as Th, IconDiscountCheckFilled as Dh, IconHash as Ih } from "@tabler/icons-react";
31
+ import { IconMathFunction as Kt, IconRecycle as mt, IconDeviceFloppy as me, IconSelector as Yu, IconGripVertical as bl, IconTrash as Ae, IconArrowBackUp as Xu, IconPlayerSkipBack as yl, IconMathFunctionOff as Zu, IconTextSize as Ma, IconInfoCircle as Re, IconCheck as Ju, IconBorderAll as eh, IconCircleOff as _l, IconX as La, IconAlertCircle as Gn, IconPlus as lt, IconGripHorizontal as th, IconChevronUp as nh, IconChevronDown as xl, IconChartAreaLineFilled as rh, IconPlaylistAdd as Wn, IconArrowDown as ah, IconArrowUp as ih, IconArrowBarToRight as Va, IconArrowCurveRight as ca, IconLayersIntersect as oh, IconLayersSubtract as lh, IconCalendar as sh, IconMinus as ch, IconRefresh as Tr, IconChevronsUp as dh, IconChevronsDown as uh, IconDatabase as en, IconDownload as Xn, IconCode as gn, IconCamera as Dr, IconArrowsMaximize as vl, IconAppWindow as $a, IconVariable as $n, IconChartHistogram as wl, IconRoute as Aa, IconCopy as Pa, IconArrowLeft as Sl, IconArrowsMove as hh, IconChevronDownRight as ph, IconShare3 as mh, IconArrowsLeftRight as gh, IconCodeDots as Cl, IconFilter as Ra, IconBoxMultiple as Ea, IconCaretDown as fh, IconAlertTriangle as kl, IconDevices as bh, IconSettings as An, IconPointFilled as Ir, IconFileImport as Xi, IconSearch as zl, IconCircleDashed as yh, IconCircleDot as _h, IconChevronsUpRight as xh, IconAdjustments as vh, IconLine as wh, IconEye as Tl, IconTable as Sh, IconColumns as Ch, IconVectorTriangle as kh, IconVariablePlus as zh, IconHierarchy as Th, IconDiscountCheckFilled as Dh, IconHash as Ih } from "@tabler/icons-react";
32
32
  import { RichTextEditor as oe, Link as Dl, useRichTextEditorContext as Mh } from "@mantine/tiptap";
33
33
  import { Color as Il } from "@tiptap/extension-color";
34
34
  import Ml from "@tiptap/extension-highlight";
@@ -51,8 +51,8 @@ import * as Ah from "d3-scale";
51
51
  import { useForm as fe, Controller as f, useFieldArray as Mr, useWatch as Ph } from "react-hook-form";
52
52
  import { observer as D } from "mobx-react-lite";
53
53
  import { move as Ql } from "@dnd-kit/helpers";
54
- import { DragDropProvider as Ea } from "@dnd-kit/react";
55
- import { useSortable as Oa } from "@dnd-kit/react/sortable";
54
+ import { DragDropProvider as Oa } from "@dnd-kit/react";
55
+ import { useSortable as qa } from "@dnd-kit/react/sortable";
56
56
  import { v4 as Vt } from "uuid";
57
57
  import { BarChart as Rh, BoxplotChart as Eh, CustomChart as Oh, FunnelChart as qh, HeatmapChart as Fh, LineChart as Nh, PieChart as Bh, RadarChart as jh, ScatterChart as Qh, SunburstChart as Hh } from "echarts/charts";
58
58
  import { CalendarComponent as Gh, DataZoomComponent as Wh, GridComponent as Uh, LegendComponent as Kh, TooltipComponent as Yh, MarkLineComponent as Xh, MarkAreaComponent as Zh, VisualMapComponent as Jh } from "echarts/components";
@@ -62,7 +62,7 @@ import { showNotification as fn, updateNotification as np, notifications as Hl }
62
62
  import { createStyles as Pn, MantineEmotionProvider as Gl } from "@mantine/emotion";
63
63
  import * as Zt from "d3-regression";
64
64
  import { CodeHighlight as wt } from "@mantine/code-highlight";
65
- import { flexRender as Dn, createColumnHelper as qa, useReactTable as Fa, getCoreRowModel as Na, getSortedRowModel as rp } from "@tanstack/react-table";
65
+ import { flexRender as Dn, createColumnHelper as Fa, useReactTable as Na, getCoreRowModel as Ba, getSortedRowModel as rp } from "@tanstack/react-table";
66
66
  import { useVirtualizer as ap } from "@tanstack/react-virtual";
67
67
  import ot from "axios";
68
68
  import ip from "dayjs/plugin/advancedFormat";
@@ -98,7 +98,7 @@ import Ap from "dayjs/plugin/utc";
98
98
  import Pp from "dayjs/plugin/weekday";
99
99
  import Rp from "dayjs/plugin/weekOfYear";
100
100
  import Ep from "dayjs/plugin/weekYear";
101
- import { types as m, cast as Et, getParent as ve, destroy as Op, getRoot as Le, addDisposer as Ue, detach as ur, isAlive as Xi, flow as $t, toGenerator as Mt, clone as qp, getSnapshot as Lt, applySnapshot as je, addMiddleware as Fp, getType as Np, castToSnapshot as Wl } from "mobx-state-tree";
101
+ import { types as m, cast as Et, getParent as ve, destroy as Op, getRoot as Le, addDisposer as Ue, detach as ur, isAlive as Zi, flow as $t, toGenerator as Mt, clone as qp, getSnapshot as Lt, applySnapshot as je, addMiddleware as Fp, getType as Np, castToSnapshot as Wl } from "mobx-state-tree";
102
102
  import Ul from "dom-to-image-more";
103
103
  import { saveAs as Lr } from "file-saver";
104
104
  import Kl from "jszip";
@@ -113,7 +113,7 @@ import { WidthProvider as Zl, Responsive as Jl } from "react-grid-layout";
113
113
  import { useNavigate as Yp } from "react-router-dom";
114
114
  import { Spotlight as Tn, spotlight as Xp } from "@mantine/spotlight";
115
115
  import "@mantine/spotlight/styles.css";
116
- import Zp, { Position as xt, Handle as Zi, MiniMap as Jp, Controls as em, Background as tm } from "reactflow";
116
+ import Zp, { Position as xt, Handle as Ji, MiniMap as Jp, Controls as em, Background as tm } from "reactflow";
117
117
  import "reactflow/dist/style.css";
118
118
  const nm = {
119
119
  translation: {
@@ -2213,7 +2213,7 @@ class Vr {
2213
2213
  throw new Error("Cannot set root value to non-object");
2214
2214
  else
2215
2215
  jn(() => {
2216
- wa(this.rootRef.current, [t], n);
2216
+ Sa(this.rootRef.current, [t], n);
2217
2217
  });
2218
2218
  return Promise.resolve(this.getItem(t));
2219
2219
  }
@@ -2229,13 +2229,13 @@ class Vr {
2229
2229
  class am {
2230
2230
  constructor() {
2231
2231
  j(this, "channels", /* @__PURE__ */ new Map());
2232
- j(this, "globalChannel", new Qi());
2232
+ j(this, "globalChannel", new Hi());
2233
2233
  }
2234
2234
  getChannel(t) {
2235
2235
  const n = this.channels.get(t);
2236
2236
  if (n)
2237
2237
  return n;
2238
- const a = new Qi();
2238
+ const a = new Hi();
2239
2239
  return this.channels.set(t, a), a;
2240
2240
  }
2241
2241
  }
@@ -2304,7 +2304,7 @@ const om = (e) => {
2304
2304
  height: n.h
2305
2305
  }
2306
2306
  }, d = l.viewRender;
2307
- return /* @__PURE__ */ r(d, { context: c, instance: s, ...dn(e, ["panel", "vizManager", "data"]) });
2307
+ return /* @__PURE__ */ r(d, { context: c, instance: s, ...un(e, ["panel", "vizManager", "data"]) });
2308
2308
  }, lm = (e) => {
2309
2309
  const {
2310
2310
  vizManager: t,
@@ -2314,14 +2314,14 @@ const om = (e) => {
2314
2314
  } = e, o = t.resolveComponent(n.viz.type), l = t.getOrCreateInstance(n), s = {
2315
2315
  ...es(l, a, t, i)
2316
2316
  }, c = o.configRender;
2317
- return /* @__PURE__ */ r(c, { context: s, instance: l, ...dn(e, ["panel", "vizManager", "data"]) });
2317
+ return /* @__PURE__ */ r(c, { context: s, instance: l, ...un(e, ["panel", "vizManager", "data"]) });
2318
2318
  }, ts = (e, t) => {
2319
- const n = un.bezier(e), a = un.bezier(t);
2319
+ const n = hn.bezier(e), a = hn.bezier(t);
2320
2320
  return function(i) {
2321
2321
  return i < 50 ? n(i * 2 / 100).hex() : a((i - 50) * 2 / 100).hex();
2322
2322
  };
2323
2323
  }, $r = (e) => {
2324
- const t = un.bezier(e);
2324
+ const t = hn.bezier(e);
2325
2325
  return function(n) {
2326
2326
  return t(n / 100).hex();
2327
2327
  };
@@ -2371,14 +2371,14 @@ class mm {
2371
2371
  function It(e) {
2372
2372
  return new mm(e);
2373
2373
  }
2374
- class Ba {
2374
+ class ja {
2375
2375
  constructor() {
2376
2376
  j(this, "parent");
2377
2377
  j(this, "factoryRegistry", /* @__PURE__ */ new Map());
2378
2378
  j(this, "instanceRegistry", /* @__PURE__ */ new Map());
2379
2379
  }
2380
2380
  createScoped() {
2381
- const t = new Ba();
2381
+ const t = new ja();
2382
2382
  return t.parent = this, t;
2383
2383
  }
2384
2384
  getRequired(t) {
@@ -2444,7 +2444,7 @@ function fm() {
2444
2444
  } = P.useContext(ns);
2445
2445
  return e ? document.getElementById(e) : null;
2446
2446
  }
2447
- const as = "14.31.1", bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2447
+ const as = "14.32.1", bm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2448
2448
  __proto__: null,
2449
2449
  version: as
2450
2450
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2737,7 +2737,7 @@ const zt = {
2737
2737
  ${zm.map(Tm).join("")}
2738
2738
  </tbody>
2739
2739
  </table>
2740
- `, Ji = ["function aggregation({ queryData }, utils) {", ' return "Aggregation Result";', "}"].join(`
2740
+ `, eo = ["function aggregation({ queryData }, utils) {", ' return "Aggregation Result";', "}"].join(`
2741
2741
  `), Rn = {
2742
2742
  type: "none",
2743
2743
  config: {},
@@ -2772,7 +2772,7 @@ function Mm(e, t) {
2772
2772
  return e;
2773
2773
  }
2774
2774
  }
2775
- function ja(e, t) {
2775
+ function Qa(e, t) {
2776
2776
  const n = e.map(Number), a = Mm(n, t);
2777
2777
  return typeof a == "number" ? Number.isFinite(a) ? a : t.fallback : a ?? t.fallback;
2778
2778
  }
@@ -2796,9 +2796,9 @@ function Vm(e, t, n) {
2796
2796
  return console.error(a), n.fallback;
2797
2797
  }
2798
2798
  }
2799
- function Qa(e, t, n) {
2799
+ function Ha(e, t, n) {
2800
2800
  try {
2801
- return n.type === "custom" ? Lm(e, t, n) : n.type === "pick_record" ? Vm(e, t, n) : ja(ht(e, t), n);
2801
+ return n.type === "custom" ? Lm(e, t, n) : n.type === "pick_record" ? Vm(e, t, n) : Qa(ht(e, t), n);
2802
2802
  } catch (a) {
2803
2803
  return console.error(a), null;
2804
2804
  }
@@ -2831,16 +2831,16 @@ const le = () => us(), Pm = {
2831
2831
  downloadPanelScreenshot: () => {
2832
2832
  }
2833
2833
  }), ps = hs.Provider;
2834
- function Ha() {
2834
+ function Ga() {
2835
2835
  const e = P.useContext(hs);
2836
2836
  if (!e.panel)
2837
2837
  throw new Error("Please use PanelContextProvider");
2838
2838
  return e;
2839
2839
  }
2840
- const rt = () => Ha(), Ve = () => Ha();
2840
+ const rt = () => Ga(), Ve = () => Ga();
2841
2841
  function ms() {
2842
2842
  try {
2843
- return Ha(), !0;
2843
+ return Ga(), !0;
2844
2844
  } catch {
2845
2845
  return !1;
2846
2846
  }
@@ -2873,7 +2873,7 @@ function fs({
2873
2873
  firstDayOfWeek: 1
2874
2874
  }, children: e });
2875
2875
  }
2876
- const Te = () => us(), Ga = {
2876
+ const Te = () => us(), Wa = {
2877
2877
  fontSize: "14px",
2878
2878
  lineHeight: "32px",
2879
2879
  color: "#3D3E45",
@@ -2950,15 +2950,15 @@ const Te = () => us(), Ga = {
2950
2950
  color: "#3D3E45",
2951
2951
  margin: "0 0 14px"
2952
2952
  }
2953
- }, Wa = "grad_color_", Nm = new RegExp(`^(?!${Wa})(.+)$`);
2953
+ }, Ua = "grad_color_", Nm = new RegExp(`^(?!${Ua})(.+)$`);
2954
2954
  function bs(e) {
2955
- return e && e.replace(Nm, `${Wa}$1`);
2955
+ return e && e.replace(Nm, `${Ua}$1`);
2956
2956
  }
2957
2957
  const Bm = (e) => {
2958
2958
  const n = "abcdefghijklmnopqrstuvwxyz", i = `1234567890${n}${n.toUpperCase()}`.split(""), o = new Uint8Array(e);
2959
2959
  crypto.getRandomValues(o);
2960
2960
  const l = o.reduce((s, c) => `${s}${i[c & 61]}`, "");
2961
- return `${Wa}${l}`;
2961
+ return `${Ua}${l}`;
2962
2962
  };
2963
2963
  function jm(e, t, n) {
2964
2964
  try {
@@ -2972,7 +2972,7 @@ function jm(e, t, n) {
2972
2972
  return console.error(a), () => "inherit";
2973
2973
  }
2974
2974
  }
2975
- function eo(e, t, n, a) {
2975
+ function to(e, t, n, a) {
2976
2976
  const i = Number(e.getAttribute(n)), o = e.getAttribute(a);
2977
2977
  if (!o)
2978
2978
  return i;
@@ -2982,7 +2982,7 @@ function eo(e, t, n, a) {
2982
2982
  function Qm(e, t) {
2983
2983
  const n = {};
2984
2984
  return e.querySelectorAll("color-mapping").forEach((i) => {
2985
- const o = i.getAttribute(at.color), l = eo(i, t, at.min_val, at.min_var), s = eo(i, t, at.max_val, at.max_var), c = i.getAttribute(at.variable);
2985
+ const o = i.getAttribute(at.color), l = to(i, t, at.min_val, at.min_var), s = to(i, t, at.max_val, at.max_var), c = i.getAttribute(at.variable);
2986
2986
  if (!o || !Number.isFinite(l) || !Number.isFinite(s) || !c)
2987
2987
  return;
2988
2988
  const d = Number(t[c]);
@@ -3302,7 +3302,7 @@ const ge = (e) => (t, n) => {
3302
3302
  });
3303
3303
  };
3304
3304
  return /* @__PURE__ */ r(ne, { defaultValue: 18, label: " ", hideControls: !0, value: e.value, onChange: n });
3305
- }, to = ee(({
3305
+ }, no = ee(({
3306
3306
  label: e = "Value",
3307
3307
  value: t,
3308
3308
  onChange: n
@@ -3329,7 +3329,7 @@ const ge = (e) => (t, n) => {
3329
3329
  /* @__PURE__ */ r(Ym, { value: t, onChange: n })
3330
3330
  ] });
3331
3331
  });
3332
- function no(e, t, n) {
3332
+ function ro(e, t, n) {
3333
3333
  if (!e.type)
3334
3334
  return n;
3335
3335
  if (e.type === "static") {
@@ -3427,7 +3427,7 @@ function Er(e, t) {
3427
3427
  const {
3428
3428
  min: n,
3429
3429
  max: a
3430
- } = e, i = no(n, t), o = no(a, t);
3430
+ } = e, i = ro(n, t), o = ro(a, t);
3431
3431
  if (e.type === "continuous") {
3432
3432
  const {
3433
3433
  skipRange: p,
@@ -3462,7 +3462,7 @@ const wn = (e) => ({
3462
3462
  followVisualMap: !e,
3463
3463
  color: e
3464
3464
  });
3465
- function Ua(e, t, n, a) {
3465
+ function Ka(e, t, n, a) {
3466
3466
  if (a.type !== "continuous")
3467
3467
  return wn("");
3468
3468
  const {
@@ -3493,7 +3493,7 @@ const eg = Jm(), tg = ({
3493
3493
  t: a
3494
3494
  } = x(), i = `linear-gradient(to right, ${e.join(", ")})`;
3495
3495
  return /* @__PURE__ */ u(U, { shadow: "md", width: 300, withinPortal: !0, zIndex: n, children: [
3496
- /* @__PURE__ */ r(U.Target, { children: /* @__PURE__ */ u(Ca, { children: [
3496
+ /* @__PURE__ */ r(U.Target, { children: /* @__PURE__ */ u(ka, { children: [
3497
3497
  /* @__PURE__ */ r(k, { style: {
3498
3498
  display: "inline-block",
3499
3499
  fontSize: "0.875rem",
@@ -3546,7 +3546,7 @@ const eg = Jm(), tg = ({
3546
3546
  }] = De(!1), {
3547
3547
  ref: s,
3548
3548
  handleRef: c
3549
- } = Oa({
3549
+ } = qa({
3550
3550
  id: e.id,
3551
3551
  index: t
3552
3552
  });
@@ -3558,7 +3558,7 @@ const eg = Jm(), tg = ({
3558
3558
  }, children: i ? /* @__PURE__ */ r(te, { size: "xs", ref: c, variant: "subtle", children: /* @__PURE__ */ r(bl, {}) }) : /* @__PURE__ */ r(Qt, { size: "sm", variant: "light", children: t + 1 }) }),
3559
3559
  /* @__PURE__ */ r("div", { style: {
3560
3560
  flex: 1
3561
- }, children: /* @__PURE__ */ r(tn, { styles: {
3561
+ }, children: /* @__PURE__ */ r(nn, { styles: {
3562
3562
  root: {
3563
3563
  flexGrow: 1
3564
3564
  }
@@ -3597,7 +3597,7 @@ const eg = Jm(), tg = ({
3597
3597
  };
3598
3598
  return /* @__PURE__ */ u(T, { ref: a, children: [
3599
3599
  /* @__PURE__ */ r(tg, { colors: e, applyPalette: c, zIndex: n }),
3600
- /* @__PURE__ */ r(Ea, { onDragEnd: (y) => {
3600
+ /* @__PURE__ */ r(Oa, { onDragEnd: (y) => {
3601
3601
  const {
3602
3602
  source: v,
3603
3603
  target: I
@@ -3612,7 +3612,7 @@ const eg = Jm(), tg = ({
3612
3612
  } }),
3613
3613
  /* @__PURE__ */ r("div", { style: {
3614
3614
  flex: 1
3615
- }, children: /* @__PURE__ */ r(tn, { popoverProps: {
3615
+ }, children: /* @__PURE__ */ r(nn, { popoverProps: {
3616
3616
  withinPortal: !0,
3617
3617
  zIndex: n
3618
3618
  }, placeholder: i("chart.color.click_to_add_a_color"), value: h, onChange: p, onBlur: g, size: "xs" }) }),
@@ -3792,15 +3792,15 @@ function dg(e) {
3792
3792
  }];
3793
3793
  }
3794
3794
  const ug = (e) => e && e.replace(hr, "").replace(/(.*)\}$/, "$1"), Ts = (e) => !e || e.startsWith(hr) ? e : [hr, e, zs].join(`
3795
- `), Ka = "dyn_color_", hg = new RegExp(`^(?!${Ka})(.+)$`);
3795
+ `), Ya = "dyn_color_", hg = new RegExp(`^(?!${Ya})(.+)$`);
3796
3796
  function Ds(e) {
3797
- return e && e.replace(hg, `${Ka}$1`);
3797
+ return e && e.replace(hg, `${Ya}$1`);
3798
3798
  }
3799
3799
  const Is = (e) => {
3800
3800
  const n = "abcdefghijklmnopqrstuvwxyz", i = `1234567890${n}${n.toUpperCase()}`.split(""), o = new Uint8Array(e);
3801
3801
  crypto.getRandomValues(o);
3802
3802
  const l = o.reduce((s, c) => `${s}${i[c & 61]}`, "");
3803
- return `${Ka}${l}`;
3803
+ return `${Ya}${l}`;
3804
3804
  };
3805
3805
  function pg(e, t, n) {
3806
3806
  const a = {}, i = (l) => new Function(`return ${Ts(l)}`)()({
@@ -3954,11 +3954,11 @@ const Bn = "data-value", mg = Bn, Ms = "dynamicColor", Ls = jl.create({
3954
3954
  position: "relative",
3955
3955
  flexGrow: 1
3956
3956
  }, children: [
3957
- y && /* @__PURE__ */ r(nn, { center: !0, color: "#fff", backgroundOpacity: 0.5, children: /* @__PURE__ */ r(L, { color: "blue", radius: "xl", onClick: p, children: l("common.actions.init_with_default") }) }),
3957
+ y && /* @__PURE__ */ r(rn, { center: !0, color: "#fff", backgroundOpacity: 0.5, children: /* @__PURE__ */ r(L, { color: "blue", radius: "xl", onClick: p, children: l("common.actions.init_with_default") }) }),
3958
3958
  /* @__PURE__ */ r(gg, { value: s, onChange: c, onMount: g })
3959
3959
  ] })
3960
3960
  ] });
3961
- }), Ya = ee(({
3961
+ }), Xa = ee(({
3962
3962
  title: e,
3963
3963
  value: t,
3964
3964
  onChange: n,
@@ -3974,7 +3974,7 @@ const Bn = "data-value", mg = Bn, Ms = "dynamicColor", Ls = jl.create({
3974
3974
  const [g, {
3975
3975
  open: b,
3976
3976
  close: y
3977
- }] = an(!1);
3977
+ }] = on(!1);
3978
3978
  return /* @__PURE__ */ u(F, { children: [
3979
3979
  /* @__PURE__ */ u(we, { opened: g, onClose: y, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
3980
3980
  i,
@@ -4005,7 +4005,7 @@ const Bn = "data-value", mg = Bn, Ms = "dynamicColor", Ls = jl.create({
4005
4005
  t
4006
4006
  } = x(), n = e.getAttributes(Ms)[mg] ?? "", a = Ts(n), i = dg(n);
4007
4007
  return /* @__PURE__ */ u(F, { children: [
4008
- /* @__PURE__ */ r(Ya, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: a, onChange: (o) => {
4008
+ /* @__PURE__ */ r(Xa, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: a, onChange: (o) => {
4009
4009
  o ? e.chain().focus().setDynamicColor(o).run() : e.chain().focus().unsetDynamicColor().run();
4010
4010
  }, defaultValue: cg, renderTriggerButton: fg, restrictions: i, zIndex: 340 }),
4011
4011
  /* @__PURE__ */ r(re, { label: t("rich_text.dynamic_color.clear"), children: /* @__PURE__ */ r(te, { variant: "default", "data-rich-text-editor-control": "true", sx: {
@@ -4068,7 +4068,7 @@ const Bn = "data-value", mg = Bn, Ms = "dynamicColor", Ls = jl.create({
4068
4068
  editor: e
4069
4069
  }) => {
4070
4070
  const t = e.getAttributes("textStyle").fontSize;
4071
- return /* @__PURE__ */ r(oe.ControlsGroup, { children: /* @__PURE__ */ r(ka, { size: "xs", leftSection: /* @__PURE__ */ r(Ia, { stroke: 1.5, size: 16 }), data: _g, styles: xg, value: t || "", onChange: (n) => {
4071
+ return /* @__PURE__ */ r(oe.ControlsGroup, { children: /* @__PURE__ */ r(za, { size: "xs", leftSection: /* @__PURE__ */ r(Ma, { stroke: 1.5, size: 16 }), data: _g, styles: xg, value: t || "", onChange: (n) => {
4072
4072
  const a = n.currentTarget.value;
4073
4073
  a ? e.chain().focus().setFontSize(a).run() : e.chain().focus().unsetFontSize().run();
4074
4074
  } }) });
@@ -4076,7 +4076,7 @@ const Bn = "data-value", mg = Bn, Ms = "dynamicColor", Ls = jl.create({
4076
4076
  value: e,
4077
4077
  styles: t = {},
4078
4078
  sx: n = {},
4079
- dashboardState: a = ca(),
4079
+ dashboardState: a = da(),
4080
4080
  variableAggValueMap: i = {}
4081
4081
  }, o) => {
4082
4082
  const l = Rm(), s = z(() => {
@@ -4102,7 +4102,7 @@ const Bn = "data-value", mg = Bn, Ms = "dynamicColor", Ls = jl.create({
4102
4102
  }, [e, c]);
4103
4103
  const d = z(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = z(() => pg(d, a, i), [d, a, i]), p = z(() => Qm(d, i), [d, i]), g = z(() => C.defaultsDeep({}, {
4104
4104
  content: {
4105
- ...Ga,
4105
+ ...Wa,
4106
4106
  ...h,
4107
4107
  ...p
4108
4108
  }
@@ -4115,7 +4115,7 @@ function $s() {
4115
4115
  } = x(), [t, {
4116
4116
  open: n,
4117
4117
  close: a
4118
- }] = an(!1);
4118
+ }] = on(!1);
4119
4119
  return /* @__PURE__ */ u(F, { children: [
4120
4120
  /* @__PURE__ */ r(we, { opened: t, onClose: a, title: e("function_utils.modal_title"), zIndex: 330, withinPortal: !0, children: /* @__PURE__ */ r(En, { value: Dm(e), styles: {
4121
4121
  root: {
@@ -4131,7 +4131,7 @@ function $s() {
4131
4131
  /* @__PURE__ */ r(L, { variant: "light", color: "violet", size: "xs", onClick: n, leftSection: /* @__PURE__ */ r(Re, { size: 16 }), children: e("function_utils.trigger_text") })
4132
4132
  ] });
4133
4133
  }
4134
- const ro = ({
4134
+ const ta = ({
4135
4135
  option: e,
4136
4136
  checked: t,
4137
4137
  ...n
@@ -4151,7 +4151,7 @@ const ro = ({
4151
4151
  ] }),
4152
4152
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", children: i })
4153
4153
  ] }) });
4154
- }, Xa = ({
4154
+ }, Za = ({
4155
4155
  value: e,
4156
4156
  onChange: t,
4157
4157
  height: n = "200px",
@@ -4225,7 +4225,7 @@ function kg() {
4225
4225
  withHeaderRow: !0
4226
4226
  }), "aria-label": "Insert table", title: "Insert table", children: /* @__PURE__ */ r(eh, { stroke: 1.5, size: 16 }) });
4227
4227
  }
4228
- const en = ee(({
4228
+ const tn = ee(({
4229
4229
  value: e,
4230
4230
  onChange: t,
4231
4231
  styles: n = {},
@@ -4279,7 +4279,7 @@ const en = ee(({
4279
4279
  }, [i, M, h]);
4280
4280
  const A = z(() => C.defaultsDeep({}, {
4281
4281
  content: {
4282
- ...Ga,
4282
+ ...Wa,
4283
4283
  ...Cg
4284
4284
  }
4285
4285
  }, n), [n]);
@@ -4352,7 +4352,7 @@ function Ps(e) {
4352
4352
  return Object.values(Tg).some((t) => t.test(e));
4353
4353
  }
4354
4354
  function Rs(e) {
4355
- return Ps(e) ? e : un.valid(e) ? un(e).css() : e;
4355
+ return Ps(e) ? e : hn.valid(e) ? hn(e).css() : e;
4356
4356
  }
4357
4357
  const Es = ({
4358
4358
  value: e
@@ -4432,15 +4432,15 @@ const Es = ({
4432
4432
  /* @__PURE__ */ u(_, { justify: "flex-end", children: [
4433
4433
  /* @__PURE__ */ r(Ig, { value: t, onChange: y, shouldPatch: h }),
4434
4434
  /* @__PURE__ */ r(te, { variant: "default", onClick: I, title: i("common.actions.clear"), children: /* @__PURE__ */ r(_l, { stroke: 1.5, size: "1rem" }) }),
4435
- /* @__PURE__ */ r(te, { variant: "default", onClick: c, title: i("common.actions.close"), children: /* @__PURE__ */ r(Ma, { stroke: 1.5, size: "1rem" }) })
4435
+ /* @__PURE__ */ r(te, { variant: "default", onClick: c, title: i("common.actions.close"), children: /* @__PURE__ */ r(La, { stroke: 1.5, size: "1rem" }) })
4436
4436
  ] }),
4437
4437
  /* @__PURE__ */ u(ke, { cols: 2, children: [
4438
- /* @__PURE__ */ r(Hi, { format: "hex", swatches: g, value: t, onChange: v, size: "sm", withPicker: !1, styles: {
4438
+ /* @__PURE__ */ r(Gi, { format: "hex", swatches: g, value: t, onChange: v, size: "sm", withPicker: !1, styles: {
4439
4439
  swatches: {
4440
4440
  marginTop: "0 !important"
4441
4441
  }
4442
4442
  } }),
4443
- /* @__PURE__ */ r(Hi, { format: "hex", fullWidth: !0, value: t, onChange: v })
4443
+ /* @__PURE__ */ r(Gi, { format: "hex", fullWidth: !0, value: t, onChange: v })
4444
4444
  ] })
4445
4445
  ] }) })
4446
4446
  ] });
@@ -4490,7 +4490,7 @@ function Nt({
4490
4490
  data_field: e,
4491
4491
  aggregation: t
4492
4492
  }, n) {
4493
- return Qa(n, e, t);
4493
+ return Ha(n, e, t);
4494
4494
  }
4495
4495
  function gt({
4496
4496
  formatter: e,
@@ -4530,7 +4530,7 @@ function $g(e, t) {
4530
4530
  const {
4531
4531
  data_field: n,
4532
4532
  aggregation: a
4533
- } = e, i = Qa(t, n, a);
4533
+ } = e, i = Ha(t, n, a);
4534
4534
  return gt(e, i);
4535
4535
  }
4536
4536
  function qs(e, t) {
@@ -4561,16 +4561,16 @@ function* Ag(e) {
4561
4561
  for (; ; )
4562
4562
  yield n[a % n.length], a++;
4563
4563
  }
4564
- function ca() {
4564
+ function da() {
4565
4565
  return {
4566
4566
  filters: {},
4567
4567
  context: {}
4568
4568
  };
4569
4569
  }
4570
- function Za(e) {
4571
- const t = ca();
4570
+ function Ja(e) {
4571
+ const t = da();
4572
4572
  if (!e)
4573
- return ca();
4573
+ return da();
4574
4574
  const {
4575
4575
  filters: n = t.filters,
4576
4576
  context: a = t.context
@@ -4643,7 +4643,7 @@ const Wt = (e) => rl(e, (t, n) => {
4643
4643
  if (n !== void 0 && t)
4644
4644
  return Ot(t);
4645
4645
  });
4646
- function Ja(e, t) {
4646
+ function ei(e, t) {
4647
4647
  const n = Object.keys(t), a = Object.values(t);
4648
4648
  try {
4649
4649
  return new Function(...n, `return \`${e}\`;`)(...a);
@@ -4651,9 +4651,9 @@ function Ja(e, t) {
4651
4651
  throw n.length === 0 && e.includes("$") ? new Error("[formatSQL] insufficient payload") : i;
4652
4652
  }
4653
4653
  }
4654
- function ei(e, t) {
4654
+ function ti(e, t) {
4655
4655
  try {
4656
- return Ja(e, t);
4656
+ return ei(e, t);
4657
4657
  } catch (n) {
4658
4658
  return console.error(n), n.message;
4659
4659
  }
@@ -4693,7 +4693,7 @@ function qg(e, t) {
4693
4693
  name: i,
4694
4694
  data_field: o,
4695
4695
  aggregation: l
4696
- } = a, s = Qa(t, o, l);
4696
+ } = a, s = Ha(t, o, l);
4697
4697
  n[i] = gt(a, s);
4698
4698
  }), n;
4699
4699
  }
@@ -4727,7 +4727,7 @@ function Or(e, t, n, a) {
4727
4727
  return Ng(d, i, n);
4728
4728
  });
4729
4729
  }
4730
- const ti = {
4730
+ const ni = {
4731
4731
  x_axis_data_key: "",
4732
4732
  y_axis_data_key: "",
4733
4733
  z_axis_data_key: "",
@@ -4768,7 +4768,7 @@ function Bg({
4768
4768
  xAxis3D: d,
4769
4769
  yAxis3D: h,
4770
4770
  zAxis3D: p
4771
- } = he({}, n, ti), g = z(() => Ar(a, l), [a, l]), {
4771
+ } = he({}, n, ni), g = z(() => Ar(a, l), [a, l]), {
4772
4772
  x: b,
4773
4773
  y,
4774
4774
  z: v
@@ -4862,7 +4862,7 @@ function jg({
4862
4862
  const {
4863
4863
  value: t,
4864
4864
  set: n
4865
- } = K(e.instanceData, "config"), a = he({}, t, ti), {
4865
+ } = K(e.instanceData, "config"), a = he({}, t, ni), {
4866
4866
  control: i,
4867
4867
  handleSubmit: o,
4868
4868
  reset: l
@@ -4991,7 +4991,7 @@ const Kg = {
4991
4991
  createConfig() {
4992
4992
  return {
4993
4993
  version: 2,
4994
- config: Pe(ti)
4994
+ config: Pe(ni)
4995
4995
  };
4996
4996
  },
4997
4997
  translation: Gg
@@ -5002,7 +5002,7 @@ const Kg = {
5002
5002
  }) => /* @__PURE__ */ u($, { sx: {
5003
5003
  position: "relative"
5004
5004
  }, children: [
5005
- e && /* @__PURE__ */ r(nn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
5005
+ e && /* @__PURE__ */ r(rn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
5006
5006
  /* @__PURE__ */ r(Ft, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (i) => {
5007
5007
  i && n(i);
5008
5008
  }, theme: "vs-dark", options: {
@@ -5268,7 +5268,7 @@ function ft(e) {
5268
5268
  ellipsis: e.ellipsis
5269
5269
  };
5270
5270
  }
5271
- const ni = {
5271
+ const ri = {
5272
5272
  x_axis: {
5273
5273
  name: "X Axis",
5274
5274
  data_key: "",
@@ -5311,13 +5311,13 @@ function xn(e, t) {
5311
5311
  const st = (e, t) => {
5312
5312
  const [n, a] = Q([]);
5313
5313
  return N(() => e.watchTriggerSnapshotList((i) => a(i.filter((o) => o.schemaRef === t))), []), n;
5314
- }, da = cl(null);
5314
+ }, ua = cl(null);
5315
5315
  function qr(e) {
5316
- const t = P.useContext(da), n = Rt(() => e.configure(t || new Ba()), [e.configure]), a = Mu(n);
5317
- return a && a !== n && a.dispose(), /* @__PURE__ */ r(da.Provider, { value: n, children: e.children });
5316
+ const t = P.useContext(ua), n = Rt(() => e.configure(t || new ja()), [e.configure]), a = Mu(n);
5317
+ return a && a !== n && a.dispose(), /* @__PURE__ */ r(ua.Provider, { value: n, children: e.children });
5318
5318
  }
5319
5319
  function Fr() {
5320
- return P.useContext(da);
5320
+ return P.useContext(ua);
5321
5321
  }
5322
5322
  const ct = ({}) => Fr().getRequired(_e.instanceScope.interactionManager), Qs = (e) => {
5323
5323
  const {
@@ -5336,12 +5336,12 @@ const ct = ({}) => Fr().getRequired(_e.instanceScope.interactionManager), Qs = (
5336
5336
  /* @__PURE__ */ r(T, { style: {
5337
5337
  maxHeight: "500px"
5338
5338
  }, children: a.map((l) => /* @__PURE__ */ u(k, { size: "sm", children: [
5339
- /* @__PURE__ */ u(Gi, { color: "teal", children: [
5339
+ /* @__PURE__ */ u(Wi, { color: "teal", children: [
5340
5340
  "// ",
5341
5341
  l.description
5342
5342
  ] }),
5343
5343
  /* @__PURE__ */ r("br", {}),
5344
- /* @__PURE__ */ u(Gi, { onClick: () => o(l.name), style: {
5344
+ /* @__PURE__ */ u(Wi, { onClick: () => o(l.name), style: {
5345
5345
  cursor: "pointer"
5346
5346
  }, children: [
5347
5347
  l.name,
@@ -5525,7 +5525,7 @@ class zn {
5525
5525
  async deleteItem(t) {
5526
5526
  t === null && await this.root.deleteItem(this.path);
5527
5527
  const n = await this.root.getItem(this.path) || {};
5528
- await this.root.setItem(this.path, dn(n, t));
5528
+ await this.root.setItem(this.path, un(n, t));
5529
5529
  }
5530
5530
  async getItem(t) {
5531
5531
  const n = await this.root.getItem(this.path);
@@ -5559,7 +5559,7 @@ const gf = {
5559
5559
  "builtin:op:open_view": 4,
5560
5560
  "builtin:op:open-link": 5
5561
5561
  };
5562
- class ri {
5562
+ class ai {
5563
5563
  constructor(t, n, a) {
5564
5564
  j(this, "attachmentStorage");
5565
5565
  this.instance = t, this.attachmentKey = n, this.constructInstance = a, this.attachmentStorage = new zn(t.instanceData, n);
@@ -5675,7 +5675,7 @@ function wf(e) {
5675
5675
  return /* @__PURE__ */ r(V, { defaultValue: n, onBlur: (i) => a(i.currentTarget.value), label: t("interactions.operation.console_log.log_content") });
5676
5676
  }
5677
5677
  async function Sf(e, t) {
5678
- const n = await t.operationData.getItem("config"), a = Sa(n.template || "");
5678
+ const n = await t.operationData.getItem("config"), a = Ca(n.template || "");
5679
5679
  console.log("run with payload", e), console.log(a(e));
5680
5680
  }
5681
5681
  const Cf = {
@@ -5813,7 +5813,7 @@ const $f = {
5813
5813
  label: c.label,
5814
5814
  value: c.key
5815
5815
  })), [n.filters.values]);
5816
- return /* @__PURE__ */ r(T, { gap: 10, children: /* @__PURE__ */ r(pn, { label: t("interactions.operation.clear_filter_values.select_filter"), data: s, value: o, onChange: l }) });
5816
+ return /* @__PURE__ */ r(T, { gap: 10, children: /* @__PURE__ */ r(Jt, { label: t("interactions.operation.clear_filter_values.select_filter"), data: s, value: o, onChange: l }) });
5817
5817
  });
5818
5818
  async function Rf(e, t) {
5819
5819
  const a = (await t.operationData.getItem("config")).filter_keys;
@@ -5912,9 +5912,9 @@ const Qf = {
5912
5912
  id: "builtin:op:switch_tab",
5913
5913
  configRender: Bf,
5914
5914
  run: jf
5915
- }, ai = [Cf, xf, Tf, Nf, $f, Qf, Ef];
5915
+ }, ii = [Cf, xf, Tf, Nf, $f, Qf, Ef];
5916
5916
  class Hf {
5917
- constructor(t, n = ai) {
5917
+ constructor(t, n = ii) {
5918
5918
  j(this, "attachments");
5919
5919
  this.operations = n;
5920
5920
  const a = async (i) => {
@@ -5928,7 +5928,7 @@ class Hf {
5928
5928
  operationData: new zn(i, "data")
5929
5929
  };
5930
5930
  };
5931
- this.attachments = new ri(t, "__OPERATIONS", a);
5931
+ this.attachments = new ai(t, "__OPERATIONS", a);
5932
5932
  }
5933
5933
  async runOperation(t, n) {
5934
5934
  const a = await this.attachments.getInstance(t);
@@ -6004,7 +6004,7 @@ class Gf {
6004
6004
  triggerData: new zn(i, "data")
6005
6005
  };
6006
6006
  };
6007
- this.attachments = new ri(t, oo, a);
6007
+ this.attachments = new ai(t, oo, a);
6008
6008
  }
6009
6009
  watchTriggerSnapshotList(t) {
6010
6010
  return this.instance.instanceData.watchItem(oo, (n) => {
@@ -6078,7 +6078,7 @@ class Hs {
6078
6078
  operationRef: c
6079
6079
  };
6080
6080
  };
6081
- this.attachments = new ri(t, "__INTERACTIONS", i);
6081
+ this.attachments = new ai(t, "__INTERACTIONS", i);
6082
6082
  }
6083
6083
  async addInteraction(t, n) {
6084
6084
  const a = t.id, i = n.id, o = `[${a}]:[${i}]`;
@@ -6165,7 +6165,7 @@ const Uf = D(({
6165
6165
  const {
6166
6166
  data: p = 0,
6167
6167
  loading: g
6168
- } = hn(async () => {
6168
+ } = pn(async () => {
6169
6169
  try {
6170
6170
  return (await i.triggerManager.getTriggerSchemaList()).length;
6171
6171
  } catch {
@@ -6173,7 +6173,7 @@ const Uf = D(({
6173
6173
  }
6174
6174
  });
6175
6175
  return /* @__PURE__ */ u(T, { children: [
6176
- /* @__PURE__ */ r(rn, { visible: g }),
6176
+ /* @__PURE__ */ r(an, { visible: g }),
6177
6177
  p === 0 && /* @__PURE__ */ r(Kn, { icon: /* @__PURE__ */ r(Gn, { size: 16 }), title: t("interactions.unavailable"), color: "gray", children: t("interactions.unavailable_reason") }),
6178
6178
  c.map((b) => /* @__PURE__ */ r(Uf, { onRemove: h, instance: o, sampleData: l, variables: s, item: b, manager: e.interactionManager }, b.id)),
6179
6179
  /* @__PURE__ */ r(L, { style: {
@@ -6186,7 +6186,7 @@ const Uf = D(({
6186
6186
  data: t
6187
6187
  } = rt(), n = e.viz, {
6188
6188
  vizManager: a
6189
- } = Ut(Xt), i = e.json, o = Rt(() => a.getOrCreateInstance(i), [a, i]), l = Rt(() => new Hs(o, a.resolveComponent(n.type), ai), [o, n.type]);
6189
+ } = Ut(Xt), i = e.json, o = Rt(() => a.getOrCreateInstance(i), [a, i]), l = Rt(() => new Hs(o, a.resolveComponent(n.type), ii), [o, n.type]);
6190
6190
  return N(() => o.instanceData.watchItem(
6191
6191
  null,
6192
6192
  // avoid too many updates
@@ -6385,11 +6385,11 @@ function sb(e, t, n) {
6385
6385
  }
6386
6386
  }));
6387
6387
  }
6388
- const ua = ["max", "q3", "median", "q1", "min"], ha = [10, 40];
6389
- function ii(e) {
6388
+ const ha = ["max", "q3", "median", "q1", "min"], pa = [10, 40];
6389
+ function oi(e) {
6390
6390
  return e.barLayout({
6391
- barMinWidth: ha[0],
6392
- barMaxWidth: ha[1],
6391
+ barMinWidth: pa[0],
6392
+ barMaxWidth: pa[1],
6393
6393
  count: 2
6394
6394
  });
6395
6395
  }
@@ -6400,7 +6400,7 @@ function cb(e, t, n) {
6400
6400
  borderColor: i,
6401
6401
  borderWidth: o
6402
6402
  }
6403
- } = n, l = ii(t), s = t.value(0), c = e.source[s], {
6403
+ } = n, l = oi(t), s = t.value(0), c = e.source[s], {
6404
6404
  min: d,
6405
6405
  q1: h,
6406
6406
  median: p,
@@ -6493,13 +6493,13 @@ function db(e, t) {
6493
6493
  emphasis: {
6494
6494
  disabled: !0
6495
6495
  },
6496
- boxWidth: ha,
6496
+ boxWidth: pa,
6497
6497
  datasetIndex: 0
6498
6498
  };
6499
6499
  return a.renderItem = (i, o) => cb(e, o, a), a;
6500
6500
  }
6501
6501
  function ub(e) {
6502
- const t = ii(e), n = t[0].width, a = e.value(0), i = e.value(1), [o, l] = e.coord([a, i]), c = o + t[0].offset + Math.random() * n;
6502
+ const t = oi(e), n = t[0].width, a = e.value(0), i = e.value(1), [o, l] = e.coord([a, i]), c = o + t[0].offset + Math.random() * n;
6503
6503
  return {
6504
6504
  type: "circle",
6505
6505
  transition: ["shape"],
@@ -6531,7 +6531,7 @@ function hb() {
6531
6531
  return e.renderItem = (t, n) => ub(n), e;
6532
6532
  }
6533
6533
  function pb(e, t) {
6534
- const n = ii(e), a = n[0].width, i = e.value(0), o = e.value(1), [l, s] = e.coord([i, o]), d = l + n[0].offset + Math.random() * a;
6534
+ const n = oi(e), a = n[0].width, i = e.value(0), o = e.value(1), [l, s] = e.coord([i, o]), d = l + n[0].offset + Math.random() * a;
6535
6535
  return {
6536
6536
  type: "circle",
6537
6537
  transition: ["shape"],
@@ -6576,10 +6576,10 @@ function gb(e, t) {
6576
6576
  boxWidth: [20, 80],
6577
6577
  datasetIndex: 0,
6578
6578
  encode: {
6579
- y: ua,
6579
+ y: ha,
6580
6580
  x: "name",
6581
6581
  itemName: ["name"],
6582
- tooltip: ua
6582
+ tooltip: ha
6583
6583
  }
6584
6584
  }, {
6585
6585
  // Placeholder Outlier
@@ -6599,7 +6599,7 @@ function gb(e, t) {
6599
6599
  }, a, i, o];
6600
6600
  }
6601
6601
  const fb = (e, t) => {
6602
- const n = ua.map((o) => `
6602
+ const n = ha.map((o) => `
6603
6603
  <tr>
6604
6604
  <th style="text-align: right; padding: 0 1em;">${C.capitalize(o)}</th>
6605
6605
  <td style="text-align: left; padding: 0 1em;">
@@ -6798,7 +6798,7 @@ function kb({
6798
6798
  } = e, o = e.data, {
6799
6799
  width: l,
6800
6800
  height: s
6801
- } = e.viewport, c = he({}, a, ni), d = ct({
6801
+ } = e.viewport, c = he({}, a, ri), d = ct({
6802
6802
  vizManager: e.vizManager,
6803
6803
  instance: t
6804
6804
  }), h = st(d.triggerManager, js.id), p = xn(o, c.x_axis.data_key), g = ae((M) => {
@@ -6841,7 +6841,7 @@ function $e({
6841
6841
  /* @__PURE__ */ r(te, { ref: t, type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !e, children: /* @__PURE__ */ r(me, { size: 20 }) })
6842
6842
  ] });
6843
6843
  }
6844
- const oi = ee(({
6844
+ const li = ee(({
6845
6845
  label: e,
6846
6846
  value: t,
6847
6847
  onChange: n,
@@ -6984,7 +6984,7 @@ function Db(e) {
6984
6984
  }, c: "dimmed", size: "sm", className: "palette-value--up palette-value", children: q }),
6985
6985
  /* @__PURE__ */ u(ut, { width: 240, trapFocus: !0, opened: d, onClose: p, zIndex: 340, withinPortal: !0, children: [
6986
6986
  /* @__PURE__ */ r(ut.Target, { children: /* @__PURE__ */ r("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: h, style: {
6987
- "--shadow-color": un(a).alpha(0.5).hex(),
6987
+ "--shadow-color": hn(a).alpha(0.5).hex(),
6988
6988
  backgroundColor: a
6989
6989
  } }) }),
6990
6990
  /* @__PURE__ */ u(ut.Dropdown, { children: [
@@ -7158,7 +7158,7 @@ const Ib = D(({
7158
7158
  }] = De(!1), {
7159
7159
  ref: l,
7160
7160
  handleRef: s
7161
- } = Oa({
7161
+ } = qa({
7162
7162
  id: e,
7163
7163
  index: t
7164
7164
  });
@@ -7178,7 +7178,7 @@ const Ib = D(({
7178
7178
  e.move(d, h);
7179
7179
  };
7180
7180
  return /* @__PURE__ */ u(S.List, { children: [
7181
- /* @__PURE__ */ r(Ea, { onDragEnd: o, children: i.map((l, s) => /* @__PURE__ */ r(Pb, { value: l.id, index: s, children: a(l, s) }, l.id)) }),
7181
+ /* @__PURE__ */ r(Oa, { onDragEnd: o, children: i.map((l, s) => /* @__PURE__ */ r(Pb, { value: l.id, index: s, children: a(l, s) }, l.id)) }),
7182
7182
  /* @__PURE__ */ r(S.Tab, { onClick: t, value: "add", children: /* @__PURE__ */ r(re, { label: n, children: /* @__PURE__ */ r(qt, { children: /* @__PURE__ */ r(lt, { size: 18, color: "#228be6" }) }) }) })
7183
7183
  ] });
7184
7184
  }, Eb = {
@@ -7269,7 +7269,7 @@ const Ib = D(({
7269
7269
  }, children: /* @__PURE__ */ r(Ce, { label: a("chart.zooming.slider.y_axis"), disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (o) => i("y_axis_slider")(o.currentTarget.checked) }) }) })
7270
7270
  ] })
7271
7271
  ] });
7272
- }), on = ee(({
7272
+ }), ln = ee(({
7273
7273
  label: e,
7274
7274
  value: t,
7275
7275
  onChange: n,
@@ -7308,7 +7308,7 @@ const Ib = D(({
7308
7308
  }, checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) }),
7309
7309
  /* @__PURE__ */ r(_, { children: /* @__PURE__ */ r(f, { name: "legend", control: e, render: ({
7310
7310
  field: o
7311
- }) => /* @__PURE__ */ r(on, { sx: {
7311
+ }) => /* @__PURE__ */ r(ln, { sx: {
7312
7312
  flex: 1
7313
7313
  }, value: o.value.orient, onChange: (l) => {
7314
7314
  i(l, o.onChange);
@@ -7475,7 +7475,7 @@ const Yt = ee(({
7475
7475
  field: a
7476
7476
  }) => /* @__PURE__ */ r(Dt, { ...a }) })
7477
7477
  ] });
7478
- }, ta = {
7478
+ }, na = {
7479
7479
  root: {
7480
7480
  alignSelf: "flex-end"
7481
7481
  },
@@ -7493,7 +7493,7 @@ function Gb({
7493
7493
  t
7494
7494
  } = x(), [n, {
7495
7495
  toggle: a
7496
- }] = an(!1);
7496
+ }] = on(!1);
7497
7497
  return /* @__PURE__ */ u($, { children: [
7498
7498
  /* @__PURE__ */ r(L, { variant: "subtle", w: "100%", size: "compact-sm", onClick: a, leftSection: n ? /* @__PURE__ */ r(nh, { size: 14 }) : /* @__PURE__ */ r(xl, { size: 14 }), children: t(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
7499
7499
  /* @__PURE__ */ r(Yn, { in: n, children: n && /* @__PURE__ */ u(w, { highlightOnHover: !0, sx: {
@@ -7563,20 +7563,20 @@ function Wb({
7563
7563
  /* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.absolute_description") })
7564
7564
  ] }), checked: e.absolute, onChange: c, sx: {
7565
7565
  flexGrow: 1
7566
- }, styles: ta }),
7566
+ }, styles: na }),
7567
7567
  /* @__PURE__ */ r(Ce, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
7568
7568
  /* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.abbreviation") }),
7569
7569
  /* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.abbreviation_description") })
7570
7570
  ] }), checked: e.average, onChange: s, disabled: e.output !== "number", sx: {
7571
7571
  flexGrow: 1
7572
- }, styles: ta })
7572
+ }, styles: na })
7573
7573
  ] }),
7574
7574
  /* @__PURE__ */ u(_, { grow: !0, children: [
7575
7575
  /* @__PURE__ */ r(ne, { label: a("numbro.format.mantissa"), defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: o }),
7576
7576
  /* @__PURE__ */ r(Ce, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
7577
7577
  /* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.trim_mantissa") }),
7578
7578
  /* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.trim_mantissa_description") })
7579
- ] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: ta }),
7579
+ ] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: na }),
7580
7580
  /* @__PURE__ */ r($, {})
7581
7581
  ] }),
7582
7582
  /* @__PURE__ */ r(Gb, { format: e })
@@ -7620,7 +7620,7 @@ function Kb({
7620
7620
  set: a
7621
7621
  } = K(e.instanceData, "config"), {
7622
7622
  variables: i
7623
- } = e, o = z(() => he({}, n, ni), [n]), {
7623
+ } = e, o = z(() => he({}, n, ri), [n]), {
7624
7624
  control: l,
7625
7625
  handleSubmit: s,
7626
7626
  watch: c,
@@ -7667,7 +7667,7 @@ function Kb({
7667
7667
  ] }) });
7668
7668
  }
7669
7669
  function Yb(e) {
7670
- return dn(e, "variables");
7670
+ return un(e, "variables");
7671
7671
  }
7672
7672
  function Xb(e) {
7673
7673
  const {
@@ -7910,7 +7910,7 @@ const oy = {
7910
7910
  createConfig() {
7911
7911
  return {
7912
7912
  version: 10,
7913
- config: Pe(ni)
7913
+ config: Pe(ri)
7914
7914
  };
7915
7915
  },
7916
7916
  triggers: [js],
@@ -7931,7 +7931,7 @@ function sy(e) {
7931
7931
  } = x();
7932
7932
  return /* @__PURE__ */ r(k, { size: "sm", children: t("viz.button.click.label") });
7933
7933
  }
7934
- const li = {
7934
+ const si = {
7935
7935
  content: "Button",
7936
7936
  variant: "filled",
7937
7937
  color: "blue",
@@ -7956,7 +7956,7 @@ const li = {
7956
7956
  instance: t
7957
7957
  }), a = st(n.triggerManager, Zs.id), i = Te(), {
7958
7958
  value: o
7959
- } = K(e.instanceData, "config"), l = z(() => He({}, o, li), [o]), {
7959
+ } = K(e.instanceData, "config"), l = z(() => He({}, o, si), [o]), {
7960
7960
  content: s,
7961
7961
  horizontal_align: c,
7962
7962
  vertical_align: d,
@@ -7976,7 +7976,7 @@ const li = {
7976
7976
  height: y,
7977
7977
  justifyContent: cy[c],
7978
7978
  alignItems: dy[d]
7979
- }, children: /* @__PURE__ */ r(L, { size: M, ...g, onClick: I, children: Sa(s)(v) }) });
7979
+ }, children: /* @__PURE__ */ r(L, { size: M, ...g, onClick: I, children: Ca(s)(v) }) });
7980
7980
  }), hy = ({
7981
7981
  value: e,
7982
7982
  onChange: t,
@@ -7992,7 +7992,7 @@ const li = {
7992
7992
  }, children: o(l) && /* @__PURE__ */ r(Vu, { width: 10, color: "white" }) }, l);
7993
7993
  }) })
7994
7994
  ] });
7995
- }, py = ["xs", "sm", "md", "lg", "xl"], pa = ee(({
7995
+ }, py = ["xs", "sm", "md", "lg", "xl"], ma = ee(({
7996
7996
  label: e,
7997
7997
  value: t,
7998
7998
  onChange: n,
@@ -8036,7 +8036,7 @@ function gy({
8036
8036
  const {
8037
8037
  value: t,
8038
8038
  set: n
8039
- } = K(e.instanceData, "config"), a = z(() => He({}, t, li), [t]), i = a;
8039
+ } = K(e.instanceData, "config"), a = z(() => He({}, t, si), [t]), i = a;
8040
8040
  N(() => {
8041
8041
  !Fe(a, i) && (console.log("config malformed, resetting to defaults", a, i), n(i));
8042
8042
  }, [a, i]);
@@ -8069,7 +8069,7 @@ function gy({
8069
8069
  /* @__PURE__ */ u(ke, { cols: 2, children: [
8070
8070
  /* @__PURE__ */ r(f, { control: o, name: "size", render: ({
8071
8071
  field: h
8072
- }) => /* @__PURE__ */ r(pa, { label: "Size", ...h }) }),
8072
+ }) => /* @__PURE__ */ r(ma, { label: "Size", ...h }) }),
8073
8073
  /* @__PURE__ */ r(f, { control: o, name: "compact", render: ({
8074
8074
  field: h
8075
8075
  }) => /* @__PURE__ */ r(J, { label: "Compact", checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked), mt: 26 }) })
@@ -8077,7 +8077,7 @@ function gy({
8077
8077
  /* @__PURE__ */ u(ke, { cols: 2, children: [
8078
8078
  /* @__PURE__ */ r(f, { control: o, name: "horizontal_align", render: ({
8079
8079
  field: h
8080
- }) => /* @__PURE__ */ r(oi, { ...h }) }),
8080
+ }) => /* @__PURE__ */ r(li, { ...h }) }),
8081
8081
  /* @__PURE__ */ r(f, { control: o, name: "vertical_align", render: ({
8082
8082
  field: h
8083
8083
  }) => /* @__PURE__ */ r(Ys, { ...h }) })
@@ -8143,7 +8143,7 @@ const xy = {
8143
8143
  createConfig() {
8144
8144
  return {
8145
8145
  version: 2,
8146
- config: Pe(li)
8146
+ config: Pe(si)
8147
8147
  };
8148
8148
  },
8149
8149
  triggers: [Zs],
@@ -8186,7 +8186,7 @@ const xy = {
8186
8186
  onChange: t,
8187
8187
  label: n,
8188
8188
  placeholder: a
8189
- }, i) => /* @__PURE__ */ r(tn, { ref: i, label: n, placeholder: a, value: e, onChange: t, size: "xs", popoverProps: {
8189
+ }, i) => /* @__PURE__ */ r(nn, { ref: i, label: n, placeholder: a, value: e, onChange: t, size: "xs", popoverProps: {
8190
8190
  withinPortal: !0,
8191
8191
  zIndex: 340
8192
8192
  }, rightSection: e ? /* @__PURE__ */ r(vt, { size: "sm", onClick: () => {
@@ -8288,7 +8288,7 @@ const ec = ee(({
8288
8288
  }
8289
8289
  ),
8290
8290
  d !== "" && /* @__PURE__ */ r(
8291
- za,
8291
+ Ta,
8292
8292
  {
8293
8293
  size: "sm",
8294
8294
  data: c,
@@ -8307,8 +8307,8 @@ const ec = ee(({
8307
8307
  order: "desc"
8308
8308
  });
8309
8309
  function Cy(e) {
8310
- const t = Pe(dn(e, "variables"));
8311
- return t.stats = dn(t.stats, "variables"), t;
8310
+ const t = Pe(un(e, "variables"));
8311
+ return t.stats = un(t.stats, "variables"), t;
8312
8312
  }
8313
8313
  function ky(e) {
8314
8314
  const {
@@ -8819,7 +8819,7 @@ const Gy = {
8819
8819
  }, {
8820
8820
  lang: "zh",
8821
8821
  resources: Wy
8822
- }], si = {
8822
+ }], ci = {
8823
8823
  id: "builtin:echarts:click-echart:series",
8824
8824
  displayName: "viz.cartesian_chart.click_series.label",
8825
8825
  nameRender: Yy,
@@ -9100,12 +9100,12 @@ function i_(e, t, n, a, i, o) {
9100
9100
  };
9101
9101
  });
9102
9102
  }
9103
- function ci(e, t, n) {
9103
+ function di(e, t, n) {
9104
9104
  const a = ht(e, t), i = ht(e, n);
9105
9105
  return C.zip(a, i);
9106
9106
  }
9107
9107
  function o_(e, t, n, a) {
9108
- const i = ci(t, n, a);
9108
+ const i = di(t, n, a);
9109
9109
  return C.unionBy(i, e, 0);
9110
9110
  }
9111
9111
  function l_({
@@ -9133,9 +9133,9 @@ function s_({
9133
9133
  y_axis_data_key: i,
9134
9134
  valueTypedXAxis: o
9135
9135
  });
9136
- const l = ci(t, a, i), s = C.groupBy(l, "0");
9136
+ const l = di(t, a, i), s = C.groupBy(l, "0");
9137
9137
  return e.map(([d]) => {
9138
- const p = s[d].map((b) => b[1]), g = ja(p, n);
9138
+ const p = s[d].map((b) => b[1]), g = Qa(p, n);
9139
9139
  return [d, g];
9140
9140
  });
9141
9141
  }
@@ -9150,7 +9150,7 @@ function c_({
9150
9150
  columnKey: o
9151
9151
  } = B(e), l = C.groupBy(t[i], o);
9152
9152
  return Object.entries(l).forEach(([s, c]) => {
9153
- l[s] = ci({
9153
+ l[s] = di({
9154
9154
  [i]: c
9155
9155
  }, n, a);
9156
9156
  }), l;
@@ -9362,7 +9362,7 @@ function f_(e) {
9362
9362
  }) => n
9363
9363
  });
9364
9364
  }
9365
- function di(e, t) {
9365
+ function ui(e, t) {
9366
9366
  const n = {};
9367
9367
  return t.map((a) => {
9368
9368
  const i = Nt(a, e);
@@ -9471,7 +9471,7 @@ const v_ = {
9471
9471
  }]
9472
9472
  };
9473
9473
  function w_(e, t, n) {
9474
- const a = di(t, n), i = f_(e), o = C.uniq(ht(t, e.x_axis_data_key)), l = h_(e, o, t, i, n, a), s = n_(e, t), c = {
9474
+ const a = ui(t, n), i = f_(e), o = C.uniq(ht(t, e.x_axis_data_key)), l = h_(e, o, t, i, n, a), s = n_(e, t), c = {
9475
9475
  xAxis: b_(e, o),
9476
9476
  yAxis: x_(e, i, l),
9477
9477
  series: [...l, ...s],
@@ -9503,7 +9503,7 @@ function S_({
9503
9503
  variables: o,
9504
9504
  onChartRenderFinished: l
9505
9505
  }) {
9506
- const s = xn(t, e.x_axis_data_key), c = st(i.triggerManager, si.id), d = ae((I) => {
9506
+ const s = xn(t, e.x_axis_data_key), c = st(i.triggerManager, ci.id), d = ae((I) => {
9507
9507
  const M = C.get(s, I.name, {
9508
9508
  error: "rowData is not found"
9509
9509
  });
@@ -9513,7 +9513,7 @@ function S_({
9513
9513
  rowData: M
9514
9514
  });
9515
9515
  });
9516
- }, [s, c, i]), h = P.useMemo(() => w_(e, t, o), [e, t]), p = P.useRef(), g = oa(l), b = ae(() => {
9516
+ }, [s, c, i]), h = P.useMemo(() => w_(e, t, o), [e, t]), p = P.useRef(), g = la(l), b = ae(() => {
9517
9517
  var I;
9518
9518
  g.current((I = p.current) == null ? void 0 : I.getOption());
9519
9519
  }, []), y = z(() => ({
@@ -9693,7 +9693,7 @@ function T_({
9693
9693
  /* @__PURE__ */ u(T, { children: [
9694
9694
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
9695
9695
  field: s
9696
- }) => /* @__PURE__ */ r(on, { label: o("chart.orientation.label"), sx: {
9696
+ }) => /* @__PURE__ */ r(ln, { label: o("chart.orientation.label"), sx: {
9697
9697
  flex: 1
9698
9698
  }, ...s }) }),
9699
9699
  l === "vertical" && /* @__PURE__ */ r(k, { mt: -10, c: "dimmed", size: "12px", children: o("chart.reference_line.orientation.vertical_hint") })
@@ -9911,7 +9911,7 @@ const L_ = ({
9911
9911
  minimap: {
9912
9912
  enabled: !1
9913
9913
  }
9914
- } }) }), ui = {
9914
+ } }) }), hi = {
9915
9915
  static: {
9916
9916
  type: "static",
9917
9917
  size: 10
@@ -9948,7 +9948,7 @@ const L_ = ({
9948
9948
  func_content: g
9949
9949
  }));
9950
9950
  }, p = () => {
9951
- h(ui.dynamic.func_content);
9951
+ h(hi.dynamic.func_content);
9952
9952
  };
9953
9953
  return /* @__PURE__ */ u(F, { children: [
9954
9954
  /* @__PURE__ */ r($, { sx: {
@@ -9984,7 +9984,7 @@ const L_ = ({
9984
9984
  });
9985
9985
  };
9986
9986
  return /* @__PURE__ */ r(F, { children: /* @__PURE__ */ r(ne, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
9987
- }, hi = ee(({
9987
+ }, pi = ee(({
9988
9988
  label: e,
9989
9989
  value: t,
9990
9990
  onChange: n
@@ -10000,7 +10000,7 @@ const L_ = ({
10000
10000
  value: "dynamic"
10001
10001
  }], [o.language]), s = (c) => {
10002
10002
  c !== "static" && c !== "dynamic" || n({
10003
- ...ui[c]
10003
+ ...hi[c]
10004
10004
  });
10005
10005
  };
10006
10006
  return /* @__PURE__ */ u(ke, { cols: 2, children: [
@@ -10046,7 +10046,7 @@ function P_({
10046
10046
  return n({
10047
10047
  type: "custom",
10048
10048
  config: {
10049
- func: Ji
10049
+ func: eo
10050
10050
  },
10051
10051
  fallback: t.fallback
10052
10052
  });
@@ -10140,7 +10140,7 @@ function P_({
10140
10140
  label: l("aggregation.option.pick_record.method.last"),
10141
10141
  value: "last"
10142
10142
  }] }),
10143
- t.type === "custom" && /* @__PURE__ */ r(Ya, { title: l("aggregation.option.custom.title"), label: "", triggerLabel: l("aggregation.option.custom.label_trigger"), value: t.config.func, onChange: h, defaultValue: Ji, triggerButtonProps: {
10143
+ t.type === "custom" && /* @__PURE__ */ r(Xa, { title: l("aggregation.option.custom.title"), label: "", triggerLabel: l("aggregation.option.custom.label_trigger"), value: t.config.func, onChange: h, defaultValue: eo, triggerButtonProps: {
10144
10144
  size: "xs",
10145
10145
  sx: {
10146
10146
  flexGrow: 0,
@@ -10154,7 +10154,7 @@ function P_({
10154
10154
  i && /* @__PURE__ */ r(V, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
10155
10155
  ] });
10156
10156
  }
10157
- const pi = P.forwardRef(P_), qn = ee(({
10157
+ const mi = P.forwardRef(P_), qn = ee(({
10158
10158
  label: e,
10159
10159
  value: t,
10160
10160
  onChange: n,
@@ -10335,7 +10335,7 @@ function E_({
10335
10335
  }, children: /* @__PURE__ */ r(Ce, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
10336
10336
  o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
10337
10337
  field: s
10338
- }) => /* @__PURE__ */ r(hi, { ...s }) })
10338
+ }) => /* @__PURE__ */ r(pi, { ...s }) })
10339
10339
  ] }),
10340
10340
  /* @__PURE__ */ r(f, { name: `series.${t}.areaStyle`, control: e, render: ({
10341
10341
  field: s
@@ -10348,7 +10348,7 @@ function O_({
10348
10348
  }) {
10349
10349
  return /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
10350
10350
  field: n
10351
- }) => /* @__PURE__ */ r(hi, { label: "Size", ...n }) });
10351
+ }) => /* @__PURE__ */ r(pi, { label: "Size", ...n }) });
10352
10352
  }
10353
10353
  function q_({
10354
10354
  control: e,
@@ -10364,7 +10364,7 @@ function q_({
10364
10364
  }, children: [
10365
10365
  /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: `series.${t}.type`, control: e, render: ({
10366
10366
  field: s
10367
- }) => /* @__PURE__ */ r(za, { data: [{
10367
+ }) => /* @__PURE__ */ r(Ta, { data: [{
10368
10368
  label: i("chart.series.line.label"),
10369
10369
  value: "line"
10370
10370
  }, {
@@ -10404,7 +10404,7 @@ function q_({
10404
10404
  }, ...s }) }),
10405
10405
  /* @__PURE__ */ r(f, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
10406
10406
  field: s
10407
- }) => /* @__PURE__ */ r(pi, { label: i("viz.cartesian_chart.series.aggregation.label"), value: s.value ?? Rn, onChange: s.onChange, pt: 0, withFallback: !1 }) })
10407
+ }) => /* @__PURE__ */ r(mi, { label: i("viz.cartesian_chart.series.aggregation.label"), value: s.value ?? Rn, onChange: s.onChange, pt: 0, withFallback: !1 }) })
10408
10408
  ] }),
10409
10409
  /* @__PURE__ */ r(_, { grow: !0, children: /* @__PURE__ */ r(f, { name: `series.${t}.group_by_key`, control: e, render: ({
10410
10410
  field: s
@@ -10440,7 +10440,7 @@ function F_({
10440
10440
  type: "bar",
10441
10441
  name: mn(),
10442
10442
  showSymbol: !1,
10443
- symbolSize: ui.static,
10443
+ symbolSize: hi.static,
10444
10444
  y_axis_data_key: "value",
10445
10445
  yAxisIndex: 0,
10446
10446
  label_position: "top",
@@ -10487,7 +10487,7 @@ const N_ = D(({
10487
10487
  return /* @__PURE__ */ u(T, { children: [
10488
10488
  /* @__PURE__ */ r(f, { name: "stats.top", control: e, render: ({
10489
10489
  field: i
10490
- }) => /* @__PURE__ */ r(en, { label: a("chart.stats.template.above_chart"), styles: {
10490
+ }) => /* @__PURE__ */ r(tn, { label: a("chart.stats.template.above_chart"), styles: {
10491
10491
  root: {
10492
10492
  flexGrow: 1,
10493
10493
  minHeight: "240px"
@@ -10495,7 +10495,7 @@ const N_ = D(({
10495
10495
  }, autoSubmit: !0, ...i }, `${n.id}.stats.top`) }),
10496
10496
  /* @__PURE__ */ r(f, { name: "stats.bottom", control: e, render: ({
10497
10497
  field: i
10498
- }) => /* @__PURE__ */ r(en, { label: a("chart.stats.template.under_chart"), styles: {
10498
+ }) => /* @__PURE__ */ r(tn, { label: a("chart.stats.template.under_chart"), styles: {
10499
10499
  root: {
10500
10500
  flexGrow: 1,
10501
10501
  minHeight: "240px"
@@ -10631,7 +10631,7 @@ function G_({
10631
10631
  }) => /* @__PURE__ */ r(Dt, { ...o }) })
10632
10632
  ] });
10633
10633
  }
10634
- const ln = ee(({
10634
+ const sn = ee(({
10635
10635
  label: e,
10636
10636
  value: t,
10637
10637
  onChange: n,
@@ -10689,7 +10689,7 @@ function W_({
10689
10689
  }, ...a }) }),
10690
10690
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
10691
10691
  field: a
10692
- }) => /* @__PURE__ */ r(ln, { sx: {
10692
+ }) => /* @__PURE__ */ r(sn, { sx: {
10693
10693
  flex: 1
10694
10694
  }, ...a }) })
10695
10695
  ] }),
@@ -10832,7 +10832,7 @@ const X_ = {
10832
10832
  config: Pe(tc)
10833
10833
  };
10834
10834
  },
10835
- triggers: [si],
10835
+ triggers: [ci],
10836
10836
  translation: Uy
10837
10837
  };
10838
10838
  function Z_(e) {
@@ -10985,7 +10985,7 @@ function ox(e) {
10985
10985
  funnelAlign: "center"
10986
10986
  };
10987
10987
  }
10988
- const mi = {
10988
+ const gi = {
10989
10989
  series: [ox("Funnel")]
10990
10990
  };
10991
10991
  function lx({
@@ -11013,7 +11013,7 @@ function sx({
11013
11013
  }) {
11014
11014
  const {
11015
11015
  value: n
11016
- } = K(e.instanceData, "config"), a = z(() => he({}, n, mi), [n]), i = e.data, {
11016
+ } = K(e.instanceData, "config"), a = z(() => he({}, n, gi), [n]), i = e.data, {
11017
11017
  width: o,
11018
11018
  height: l
11019
11019
  } = e.viewport;
@@ -11117,7 +11117,7 @@ const cx = ({
11117
11117
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
11118
11118
  /* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
11119
11119
  field: p
11120
- }) => /* @__PURE__ */ r(on, { ...p }) }),
11120
+ }) => /* @__PURE__ */ r(ln, { ...p }) }),
11121
11121
  /* @__PURE__ */ r(f, { name: `series.${n}.sort`, control: t, render: ({
11122
11122
  field: p
11123
11123
  }) => /* @__PURE__ */ r(E, { label: i("viz.funnel_chart.sort.label"), data: h, ...p }) })
@@ -11125,7 +11125,7 @@ const cx = ({
11125
11125
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
11126
11126
  /* @__PURE__ */ r(f, { name: `series.${n}.funnelAlign`, control: t, render: ({
11127
11127
  field: p
11128
- }) => /* @__PURE__ */ r(ln, { label: i("viz.funnel_chart.align"), disabled: c === "horizontal", ...p }) }),
11128
+ }) => /* @__PURE__ */ r(sn, { label: i("viz.funnel_chart.align"), disabled: c === "horizontal", ...p }) }),
11129
11129
  /* @__PURE__ */ r(f, { name: `series.${n}.gap`, control: t, render: ({
11130
11130
  field: p
11131
11131
  }) => /* @__PURE__ */ r(ne, { placeholder: "0, 5, 10...", label: i("viz.funnel_chart.gap"), ...p }) })
@@ -11177,7 +11177,7 @@ function ux({
11177
11177
  const {
11178
11178
  value: t,
11179
11179
  set: n
11180
- } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, mi), [t]), {
11180
+ } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, gi), [t]), {
11181
11181
  control: i,
11182
11182
  handleSubmit: o,
11183
11183
  watch: l,
@@ -11332,7 +11332,7 @@ const yx = {
11332
11332
  configRender: ux,
11333
11333
  createConfig: () => ({
11334
11334
  version: 3,
11335
- config: mi
11335
+ config: gi
11336
11336
  }),
11337
11337
  translation: mx
11338
11338
  }, _x = ({
@@ -11348,7 +11348,7 @@ const yx = {
11348
11348
  label: String(o + 1),
11349
11349
  value: String(o + 1)
11350
11350
  })), [n]);
11351
- return /* @__PURE__ */ r(ka, { size: "xs", value: e, onChange: (i) => {
11351
+ return /* @__PURE__ */ r(za, { size: "xs", value: e, onChange: (i) => {
11352
11352
  t(Number(i.currentTarget.value));
11353
11353
  }, data: a });
11354
11354
  }, vx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r($, { sx: {
@@ -11607,7 +11607,7 @@ const tr = ({
11607
11607
  const {
11608
11608
  t: n
11609
11609
  } = x();
11610
- return /* @__PURE__ */ r(tn, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", popoverProps: {
11610
+ return /* @__PURE__ */ r(nn, { label: e, placeholder: n("chart.visual_map.skip_range.follow_visual_map"), size: "xs", popoverProps: {
11611
11611
  withinPortal: !0,
11612
11612
  zIndex: 340
11613
11613
  }, rightSection: t.value ? /* @__PURE__ */ r(vt, { size: "sm", onClick: () => {
@@ -11657,7 +11657,7 @@ const tr = ({
11657
11657
  /* @__PURE__ */ u(_, { grow: !0, children: [
11658
11658
  /* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
11659
11659
  field: d
11660
- }) => /* @__PURE__ */ r(on, { sx: {
11660
+ }) => /* @__PURE__ */ r(ln, { sx: {
11661
11661
  flex: 1
11662
11662
  }, ...d }) }),
11663
11663
  /* @__PURE__ */ r(f, { name: "visualMap.calculable", control: a, render: ({
@@ -11773,7 +11773,7 @@ const tr = ({
11773
11773
  }) => /* @__PURE__ */ r(V, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
11774
11774
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
11775
11775
  field: o
11776
- }) => /* @__PURE__ */ r(tn, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
11776
+ }) => /* @__PURE__ */ r(nn, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
11777
11777
  withinPortal: !0,
11778
11778
  zIndex: 340
11779
11779
  }, rightSection: o.value ? /* @__PURE__ */ r(vt, { size: "sm", onClick: () => {
@@ -11848,7 +11848,7 @@ const tr = ({
11848
11848
  }) => /* @__PURE__ */ r(ne, { label: t("chart.visual_map.precision"), ...d, onChange: c(d.onChange) }) }),
11849
11849
  /* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
11850
11850
  field: d
11851
- }) => /* @__PURE__ */ r(on, { sx: {
11851
+ }) => /* @__PURE__ */ r(ln, { sx: {
11852
11852
  flex: 1
11853
11853
  }, ...d }) }),
11854
11854
  /* @__PURE__ */ u(_, { grow: !0, children: [
@@ -11861,7 +11861,7 @@ const tr = ({
11861
11861
  ] }),
11862
11862
  s === "pieces" && /* @__PURE__ */ r(Rx, { form: e })
11863
11863
  ] });
11864
- }, gi = ({
11864
+ }, fi = ({
11865
11865
  form: e
11866
11866
  }) => {
11867
11867
  const {
@@ -11889,16 +11889,16 @@ const tr = ({
11889
11889
  /* @__PURE__ */ r($x, { visualMap: i }),
11890
11890
  /* @__PURE__ */ r(f, { name: "visualMap.type", control: a, render: ({
11891
11891
  field: s
11892
- }) => /* @__PURE__ */ r(za, { mt: -10, data: o, sx: {
11892
+ }) => /* @__PURE__ */ r(Ta, { mt: -10, data: o, sx: {
11893
11893
  flex: 1
11894
11894
  }, ...s, onChange: l }) }),
11895
11895
  /* @__PURE__ */ u(_, { grow: !0, children: [
11896
11896
  /* @__PURE__ */ r(f, { name: "visualMap.min", control: a, render: ({
11897
11897
  field: s
11898
- }) => /* @__PURE__ */ r(to, { label: t("chart.visual_map.min_value"), ...s }) }),
11898
+ }) => /* @__PURE__ */ r(no, { label: t("chart.visual_map.min_value"), ...s }) }),
11899
11899
  /* @__PURE__ */ r(f, { name: "visualMap.max", control: a, render: ({
11900
11900
  field: s
11901
- }) => /* @__PURE__ */ r(to, { label: t("chart.visual_map.max_value"), ...s }) })
11901
+ }) => /* @__PURE__ */ r(no, { label: t("chart.visual_map.max_value"), ...s }) })
11902
11902
  ] }),
11903
11903
  /* @__PURE__ */ r(R, { variant: "dashed" }),
11904
11904
  /* @__PURE__ */ r(Vx, { form: e }),
@@ -11921,7 +11921,7 @@ function qx(e, t, n, a, i, o) {
11921
11921
  const Y = C.clone(q), {
11922
11922
  followVisualMap: H,
11923
11923
  color: ue
11924
- } = Ua(Y.value[2], c, d, e.visualMap);
11924
+ } = Ka(Y.value[2], c, d, e.visualMap);
11925
11925
  return H || (Y.visualMap = !1, Y.itemStyle = {
11926
11926
  color: ue
11927
11927
  }), Y;
@@ -12012,7 +12012,7 @@ function ac({
12012
12012
  page_size: e
12013
12013
  };
12014
12014
  }
12015
- const fi = {
12015
+ const bi = {
12016
12016
  x_axis: {
12017
12017
  name: "",
12018
12018
  data_key: "",
@@ -12097,7 +12097,7 @@ function Hx({
12097
12097
  value: a
12098
12098
  } = K(e.instanceData, "config"), {
12099
12099
  variables: i
12100
- } = e, o = z(() => he({}, a, fi), [a]), l = e.data, {
12100
+ } = e, o = z(() => he({}, a, bi), [a]), l = e.data, {
12101
12101
  width: s,
12102
12102
  height: c
12103
12103
  } = e.viewport, {
@@ -12144,7 +12144,7 @@ function Gx({
12144
12144
  } }) }),
12145
12145
  /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
12146
12146
  field: i
12147
- }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Ia, { size: 16 }), disabled: !a, ...i }) })
12147
+ }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Ma, { size: 16 }), disabled: !a, ...i }) })
12148
12148
  ] })
12149
12149
  ] });
12150
12150
  }
@@ -12277,7 +12277,7 @@ function Zx({
12277
12277
  ] }),
12278
12278
  /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "y_axis.nameAlignment", control: e, render: ({
12279
12279
  field: a
12280
- }) => /* @__PURE__ */ r(ln, { sx: {
12280
+ }) => /* @__PURE__ */ r(sn, { sx: {
12281
12281
  flex: 1
12282
12282
  }, ...a }) }) }),
12283
12283
  /* @__PURE__ */ r(f, { name: "y_axis.inverse", control: e, render: ({
@@ -12318,7 +12318,7 @@ function Jx({
12318
12318
  } = x(), {
12319
12319
  value: n,
12320
12320
  set: a
12321
- } = K(e.instanceData, "config"), i = z(() => n ? he({}, n) : fi, [n]), o = z(() => C.cloneDeep(i), [i]);
12321
+ } = K(e.instanceData, "config"), i = z(() => n ? he({}, n) : bi, [n]), o = z(() => C.cloneDeep(i), [i]);
12322
12322
  N(() => {
12323
12323
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
12324
12324
  }, [i, o]);
@@ -12364,7 +12364,7 @@ function Jx({
12364
12364
  /* @__PURE__ */ r(S.Panel, { value: "X Axis", children: /* @__PURE__ */ r(Xx, { control: s, watch: d }) }),
12365
12365
  /* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(Zx, { control: s, watch: d }) }),
12366
12366
  /* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(Gx, { control: s, watch: d }) }),
12367
- /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(gi, { form: l }) }),
12367
+ /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(fi, { form: l }) }),
12368
12368
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(Yx, { control: s, watch: d }) }),
12369
12369
  /* @__PURE__ */ r(S.Panel, { value: "Pagination", children: /* @__PURE__ */ r(Wx, { control: s, watch: d }) })
12370
12370
  ] })
@@ -12547,7 +12547,7 @@ const cv = {
12547
12547
  configRender: Jx,
12548
12548
  createConfig: () => ({
12549
12549
  version: 6,
12550
- config: fi
12550
+ config: bi
12551
12551
  }),
12552
12552
  triggers: [rc],
12553
12553
  translation: nv
@@ -12625,7 +12625,7 @@ function mv(e) {
12625
12625
  const oc = {
12626
12626
  label_template: "${percentage.x} of ${x_axis.name} causes ${percentage.y} of ${bar.name}",
12627
12627
  color: "#789AB4"
12628
- }, bi = {
12628
+ }, yi = {
12629
12629
  x_axis: {
12630
12630
  name: "X Axis",
12631
12631
  data_key: "",
@@ -12927,7 +12927,7 @@ function zv(e, t, n, a) {
12927
12927
  });
12928
12928
  }
12929
12929
  function Tv(e, t, n) {
12930
- const a = di(t, n), i = fv(e);
12930
+ const a = ui(t, n), i = fv(e);
12931
12931
  return {
12932
12932
  dataZoom: Nr(e.dataZoom),
12933
12933
  tooltip: wv(e, i),
@@ -12954,7 +12954,7 @@ function Dv({
12954
12954
  } = K(e.instanceData, "config"), i = e.data, {
12955
12955
  width: o,
12956
12956
  height: l
12957
- } = e.viewport, s = he({}, a, bi), c = Tv(s, i, n), d = ct({
12957
+ } = e.viewport, s = he({}, a, yi), c = Tv(s, i, n), d = ct({
12958
12958
  vizManager: e.vizManager,
12959
12959
  instance: t
12960
12960
  }), h = st(d.triggerManager, ic.id), p = xn(i, s.x_axis.data_key), g = ae((I) => {
@@ -12993,7 +12993,7 @@ function Iv({
12993
12993
  }, ...a }) }),
12994
12994
  /* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
12995
12995
  field: a
12996
- }) => /* @__PURE__ */ r(ln, { sx: {
12996
+ }) => /* @__PURE__ */ r(sn, { sx: {
12997
12997
  flex: 1
12998
12998
  }, ...a }) })
12999
12999
  ] }),
@@ -13024,7 +13024,7 @@ function Mv({
13024
13024
  }, ...a }) }),
13025
13025
  /* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
13026
13026
  field: a
13027
- }) => /* @__PURE__ */ r(ln, { sx: {
13027
+ }) => /* @__PURE__ */ r(sn, { sx: {
13028
13028
  flex: 1
13029
13029
  }, ...a }) })
13030
13030
  ] }),
@@ -13120,7 +13120,7 @@ function Av({
13120
13120
  /* @__PURE__ */ u(_, { grow: !0, children: [
13121
13121
  /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
13122
13122
  field: s
13123
- }) => /* @__PURE__ */ r(on, { label: o("chart.orientation.label"), sx: {
13123
+ }) => /* @__PURE__ */ r(ln, { label: o("chart.orientation.label"), sx: {
13124
13124
  flex: 1
13125
13125
  }, ...s }) }) }),
13126
13126
  l === "horizontal" && /* @__PURE__ */ r(f, { name: `reference_lines.${t}.yAxisIndex`, control: e, render: ({
@@ -13250,7 +13250,7 @@ function Ov({
13250
13250
  set: a
13251
13251
  } = K(e.instanceData, "config"), {
13252
13252
  variables: i
13253
- } = e, o = z(() => he({}, n, bi), [n]), {
13253
+ } = e, o = z(() => he({}, n, yi), [n]), {
13254
13254
  control: l,
13255
13255
  handleSubmit: s,
13256
13256
  watch: c,
@@ -13466,7 +13466,7 @@ const Uv = {
13466
13466
  createConfig() {
13467
13467
  return {
13468
13468
  version: 9,
13469
- config: Pe(bi)
13469
+ config: Pe(yi)
13470
13470
  };
13471
13471
  },
13472
13472
  triggers: [ic],
@@ -13561,7 +13561,7 @@ function Xv(e, t, n) {
13561
13561
  },
13562
13562
  labelLayout: function(v) {
13563
13563
  const I = v.labelRect.x < n / 2, M = v.labelLinePoints;
13564
- return wa(M, [2, 0], I ? v.labelRect.x : v.labelRect.x + v.labelRect.width), {
13564
+ return Sa(M, [2, 0], I ? v.labelRect.x : v.labelRect.x + v.labelRect.width), {
13565
13565
  labelLinePoints: M
13566
13566
  };
13567
13567
  },
@@ -13779,7 +13779,7 @@ const s0 = ee(({
13779
13779
  }] = De(!1), {
13780
13780
  ref: p,
13781
13781
  handleRef: g
13782
- } = Oa({
13782
+ } = qa({
13783
13783
  id: e.id,
13784
13784
  index: t
13785
13785
  }), b = (v) => {
@@ -13803,7 +13803,7 @@ const s0 = ee(({
13803
13803
  flex: 1
13804
13804
  }, children: [
13805
13805
  /* @__PURE__ */ r(Au, { size: "xs", value: e.name, placeholder: o("viz.pie_chart.color.map.name"), onChange: b, onClick: s, error: l && !e.name, data: i, maxDropdownHeight: 500 }),
13806
- /* @__PURE__ */ r(tn, { styles: {
13806
+ /* @__PURE__ */ r(nn, { styles: {
13807
13807
  root: {
13808
13808
  flexGrow: 1
13809
13809
  }
@@ -13927,7 +13927,7 @@ const p0 = ({
13927
13927
  /* @__PURE__ */ r(k, { size: "sm", fw: "500", mb: -4, children: o("viz.pie_chart.color.map.label") }),
13928
13928
  /* @__PURE__ */ r(p0, { value: e, onChange: t })
13929
13929
  ] }),
13930
- /* @__PURE__ */ r(Ea, { onDragEnd: h, children: l.map((p, g) => /* @__PURE__ */ r(c0, { row: p, handleChange: d(g), handleRemove: () => c(g), index: g, names: a }, p.id)) }),
13930
+ /* @__PURE__ */ r(Oa, { onDragEnd: h, children: l.map((p, g) => /* @__PURE__ */ r(c0, { row: p, handleChange: d(g), handleRemove: () => c(g), index: g, names: a }, p.id)) }),
13931
13931
  /* @__PURE__ */ r(d0, { append: s })
13932
13932
  ] });
13933
13933
  });
@@ -15277,7 +15277,7 @@ function _1(e) {
15277
15277
  zIndex: 1
15278
15278
  }, children: /* @__PURE__ */ r(y1, { ...e }) });
15279
15279
  }
15280
- const yi = {
15280
+ const _i = {
15281
15281
  x_axis: {
15282
15282
  name: "X Axis",
15283
15283
  data_key: "",
@@ -15333,7 +15333,7 @@ function x1({
15333
15333
  ...M,
15334
15334
  [v.columnKey]: Number(M[v.columnKey])
15335
15335
  });
15336
- }, [e.data, n == null ? void 0 : n.regression.y_axis_data_key]), l = z(() => d1(He({}, n, yi), o), [n, o]), s = Pt(null), c = (p) => {
15336
+ }, [e.data, n == null ? void 0 : n.regression.y_axis_data_key]), l = z(() => d1(He({}, n, _i), o), [n, o]), s = Pt(null), c = (p) => {
15337
15337
  s.current = p;
15338
15338
  }, d = ae(() => {
15339
15339
  const p = s.current;
@@ -15462,7 +15462,7 @@ function C1({
15462
15462
  const {
15463
15463
  value: t,
15464
15464
  set: n
15465
- } = K(e.instanceData, "config"), a = z(() => he({}, t, yi), [t]), {
15465
+ } = K(e.instanceData, "config"), a = z(() => he({}, t, _i), [t]), {
15466
15466
  control: i,
15467
15467
  handleSubmit: o,
15468
15468
  watch: l,
@@ -15592,7 +15592,7 @@ const L1 = {
15592
15592
  createConfig() {
15593
15593
  return {
15594
15594
  version: 3,
15595
- config: Pe(yi)
15595
+ config: Pe(_i)
15596
15596
  };
15597
15597
  },
15598
15598
  translation: I1
@@ -15663,7 +15663,7 @@ const L1 = {
15663
15663
  ] }),
15664
15664
  /* @__PURE__ */ r(f, { name: "content", control: l, render: ({
15665
15665
  field: g
15666
- }) => /* @__PURE__ */ Ln(en, { ...g, key: t.id, styles: {
15666
+ }) => /* @__PURE__ */ Ln(tn, { ...g, key: t.id, styles: {
15667
15667
  root: {
15668
15668
  flexGrow: 1
15669
15669
  }
@@ -16617,7 +16617,7 @@ function xw({
16617
16617
  /* @__PURE__ */ u(T, { children: [
16618
16618
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
16619
16619
  field: s
16620
- }) => /* @__PURE__ */ r(on, { sx: {
16620
+ }) => /* @__PURE__ */ r(ln, { sx: {
16621
16621
  flex: 1
16622
16622
  }, ...s }) }),
16623
16623
  l === "vertical" && /* @__PURE__ */ r(k, { mt: -10, c: "dimmed", size: "12px", children: o("chart.reference_line.orientation.vertical_hint") })
@@ -16762,7 +16762,7 @@ const ww = ({
16762
16762
  color: a
16763
16763
  });
16764
16764
  };
16765
- return /* @__PURE__ */ r(tn, { label: " ", format: "rgb", value: e.color, onChange: n });
16765
+ return /* @__PURE__ */ r(nn, { label: " ", format: "rgb", value: e.color, onChange: n });
16766
16766
  }, zw = ee(({
16767
16767
  label: e = "Color",
16768
16768
  value: t,
@@ -16834,7 +16834,7 @@ function Dw({
16834
16834
  /* @__PURE__ */ r(R, { mb: -15, label: n("chart.style.label"), labelPosition: "center" }),
16835
16835
  /* @__PURE__ */ r(f, { name: "scatter.symbolSize", control: e, render: ({
16836
16836
  field: a
16837
- }) => /* @__PURE__ */ r(hi, { ...a }) }),
16837
+ }) => /* @__PURE__ */ r(pi, { ...a }) }),
16838
16838
  /* @__PURE__ */ r(f, { name: "scatter.color", control: e, render: ({
16839
16839
  field: a
16840
16840
  }) => /* @__PURE__ */ r(zw, { ...a }) }),
@@ -16861,7 +16861,7 @@ const Iw = D(({
16861
16861
  return /* @__PURE__ */ u(T, { children: [
16862
16862
  /* @__PURE__ */ r(f, { name: "stats.top", control: e, render: ({
16863
16863
  field: i
16864
- }) => /* @__PURE__ */ r(en, { label: a("chart.stats.template.above_chart"), styles: {
16864
+ }) => /* @__PURE__ */ r(tn, { label: a("chart.stats.template.above_chart"), styles: {
16865
16865
  root: {
16866
16866
  flexGrow: 1,
16867
16867
  minHeight: "240px"
@@ -16869,7 +16869,7 @@ const Iw = D(({
16869
16869
  }, autoSubmit: !0, ...i }, `${n.id}.stats.top`) }),
16870
16870
  /* @__PURE__ */ r(f, { name: "stats.bottom", control: e, render: ({
16871
16871
  field: i
16872
- }) => /* @__PURE__ */ r(en, { label: a("chart.stats.template.under_chart"), styles: {
16872
+ }) => /* @__PURE__ */ r(tn, { label: a("chart.stats.template.under_chart"), styles: {
16873
16873
  root: {
16874
16874
  flexGrow: 1,
16875
16875
  minHeight: "240px"
@@ -17004,7 +17004,7 @@ function Aw({
17004
17004
  }, ...a }) }),
17005
17005
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
17006
17006
  field: a
17007
- }) => /* @__PURE__ */ r(ln, { sx: {
17007
+ }) => /* @__PURE__ */ r(sn, { sx: {
17008
17008
  flex: 1
17009
17009
  }, ...a }) })
17010
17010
  ] }),
@@ -17178,7 +17178,7 @@ function Fw(e) {
17178
17178
  };
17179
17179
  }
17180
17180
  function Nw(e) {
17181
- return dn(e, ["variables"]);
17181
+ return un(e, ["variables"]);
17182
17182
  }
17183
17183
  function Bw(e) {
17184
17184
  const {
@@ -17193,7 +17193,7 @@ function Bw(e) {
17193
17193
  }
17194
17194
  function jw(e) {
17195
17195
  const t = Pe(e), n = se(t, "color.valueRange");
17196
- return n !== void 0 && wa(t, "color.valueRange", n.map((a) => Number(a))), t;
17196
+ return n !== void 0 && Sa(t, "color.valueRange", n.map((a) => Number(a))), t;
17197
17197
  }
17198
17198
  function Qw(e, t) {
17199
17199
  return !t || t === "left" ? e : `<p style="text-align: ${t}">${e}</p>`;
@@ -17408,7 +17408,7 @@ const Zw = D(({
17408
17408
  }) => /* @__PURE__ */ r(Ys, { ...h }) }),
17409
17409
  /* @__PURE__ */ r(f, { name: "content", control: o, render: ({
17410
17410
  field: h
17411
- }) => /* @__PURE__ */ Ln(en, { ...h, key: n.id, styles: {
17411
+ }) => /* @__PURE__ */ Ln(tn, { ...h, key: n.id, styles: {
17412
17412
  root: {
17413
17413
  flexGrow: 1,
17414
17414
  minHeight: "240px"
@@ -17458,7 +17458,7 @@ const nS = {
17458
17458
  configRender: tS,
17459
17459
  triggers: [yc],
17460
17460
  translation: aS
17461
- }, _i = {
17461
+ }, xi = {
17462
17462
  label_key: "",
17463
17463
  value_key: "",
17464
17464
  group_key: "",
@@ -17618,7 +17618,7 @@ function gS({
17618
17618
  variables: n
17619
17619
  } = e, {
17620
17620
  value: a
17621
- } = K(e.instanceData, "config"), i = z(() => he({}, a, _i), [a]), o = e.data, {
17621
+ } = K(e.instanceData, "config"), i = z(() => he({}, a, xi), [a]), o = e.data, {
17622
17622
  width: l,
17623
17623
  height: s
17624
17624
  } = e.viewport, c = P.useRef(null), d = P.useCallback(() => {
@@ -17685,7 +17685,7 @@ const bS = ({
17685
17685
  }) => /* @__PURE__ */ r(E, { label: n("viz.sunburst_chart.label.rotate.label"), data: i, ...o }) }),
17686
17686
  /* @__PURE__ */ r(f, { name: `levels.${t}.label.align`, control: e, render: ({
17687
17687
  field: o
17688
- }) => /* @__PURE__ */ r(ln, { ...o }) })
17688
+ }) => /* @__PURE__ */ r(sn, { ...o }) })
17689
17689
  ] }),
17690
17690
  /* @__PURE__ */ u(_, { grow: !0, wrap: "nowrap", children: [
17691
17691
  /* @__PURE__ */ r(f, { name: `levels.${t}.label.position`, control: e, render: ({
@@ -17739,7 +17739,7 @@ function _S({
17739
17739
  } = x(), {
17740
17740
  value: n,
17741
17741
  set: a
17742
- } = K(e.instanceData, "config"), i = z(() => He({}, n, _i), [n]), o = z(() => C.clone(i), [i]), {
17742
+ } = K(e.instanceData, "config"), i = z(() => He({}, n, xi), [n]), o = z(() => C.clone(i), [i]), {
17743
17743
  control: l,
17744
17744
  handleSubmit: s,
17745
17745
  watch: c,
@@ -17917,7 +17917,7 @@ const DS = {
17917
17917
  createConfig() {
17918
17918
  return {
17919
17919
  version: 5,
17920
- config: Pe(_i)
17920
+ config: Pe(xi)
17921
17921
  };
17922
17922
  },
17923
17923
  translation: wS
@@ -18060,7 +18060,7 @@ const _c = ["function text({ value, row_data }, utils) {", " return value", "
18060
18060
  }
18061
18061
  }));
18062
18062
  function $S(e) {
18063
- return e ? un(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
18063
+ return e ? hn(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
18064
18064
  }
18065
18065
  function Sc(e) {
18066
18066
  const t = e.tableCellContext.bgColor;
@@ -18172,7 +18172,7 @@ function NS({
18172
18172
  } }) })
18173
18173
  ] });
18174
18174
  }
18175
- const xi = {
18175
+ const vi = {
18176
18176
  id: "builtin:table:click-cell-content",
18177
18177
  displayName: "viz.table.click_cell.click_cell_content",
18178
18178
  nameRender: HS,
@@ -18320,7 +18320,7 @@ class WS {
18320
18320
  };
18321
18321
  }
18322
18322
  getRelatedTrigger() {
18323
- return this.triggers.filter((n) => n.schemaRef === xi.id).filter((n) => {
18323
+ return this.triggers.filter((n) => n.schemaRef === vi.id).filter((n) => {
18324
18324
  const a = this.getColIndex(this.cell), i = se(this.cell.column.columnDef.meta, "value_field"), o = se(n.config, "column");
18325
18325
  return o == a || o == i;
18326
18326
  });
@@ -18345,7 +18345,7 @@ class WS {
18345
18345
  }
18346
18346
  }
18347
18347
  const US = (e) => {
18348
- const t = ct(e), n = st(t.triggerManager, xi.id), {
18348
+ const t = ct(e), n = st(t.triggerManager, vi.id), {
18349
18349
  colorManager: a
18350
18350
  } = Ut(Xt);
18351
18351
  return ae((i) => new WS(e.getColIndex, i, n, t, a), [n, t, e.getColIndex]);
@@ -18389,7 +18389,7 @@ function xo({
18389
18389
  vizManager: i.vizManager,
18390
18390
  instance: o
18391
18391
  }), v = z(() => {
18392
- const ye = qa();
18392
+ const ye = Fa();
18393
18393
  return b.map((qe) => {
18394
18394
  const du = Cm(qe.value_field);
18395
18395
  return ye.accessor(du.columnKey, {
@@ -18401,7 +18401,7 @@ function xo({
18401
18401
  minSize: typeof qe.width == "number" ? qe.width : void 0
18402
18402
  });
18403
18403
  });
18404
- }, [b, y]), [I, M] = Q([]), A = Fa({
18404
+ }, [b, y]), [I, M] = Q([]), A = Na({
18405
18405
  data: e,
18406
18406
  state: {
18407
18407
  sorting: I
@@ -18409,7 +18409,7 @@ function xo({
18409
18409
  onSortingChange: M,
18410
18410
  columns: v,
18411
18411
  columnResizeMode: "onChange",
18412
- getCoreRowModel: Na(),
18412
+ getCoreRowModel: Ba(),
18413
18413
  getSortedRowModel: rp()
18414
18414
  }), {
18415
18415
  rows: q
@@ -18436,7 +18436,7 @@ function xo({
18436
18436
  width: Ie.getSize()
18437
18437
  }, children: [
18438
18438
  /* @__PURE__ */ r(IS, { header: Ie, cx: g }),
18439
- /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: Ie.getResizeHandler(), onTouchStart: Ie.getResizeHandler(), className: `resizer ${Ie.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(La, {}) })
18439
+ /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: Ie.getResizeHandler(), onTouchStart: Ie.getResizeHandler(), className: `resizer ${Ie.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Va, {}) })
18440
18440
  ] }, Ie.id)) }, ye.id)) }),
18441
18441
  /* @__PURE__ */ r(NS, { tableContainerRef: Y, rows: q })
18442
18442
  ] })
@@ -18526,7 +18526,7 @@ const tC = ee((e, t) => {
18526
18526
  t: n
18527
18527
  } = x(), {
18528
18528
  colorManager: a
18529
- } = Ut(Xt), [i, o] = Q(zc(e.value)), [l, s] = Q(JS(a, e.value)), c = oa(l), [d, h] = Q(eC(a, e.value)), p = oa(d), g = (v) => {
18529
+ } = Ut(Xt), [i, o] = Q(zc(e.value)), [l, s] = Q(JS(a, e.value)), c = la(l), [d, h] = Q(eC(a, e.value)), p = la(d), g = (v) => {
18530
18530
  var I, M, A;
18531
18531
  o(v || "none"), v === "static" ? (I = e.onChange) == null || I.call(e, c.current) : v === "none" || !v ? (M = e.onChange) == null || M.call(e, "none") : (A = e.onChange) == null || A.call(e, p.current);
18532
18532
  }, b = (v) => {
@@ -18594,7 +18594,7 @@ const tC = ee((e, t) => {
18594
18594
  ] })
18595
18595
  ] }) })
18596
18596
  ] });
18597
- }), na = () => /* @__PURE__ */ r(k, { c: "dimmed", size: "12px", children: "px" }), aC = ({
18597
+ }), ra = () => /* @__PURE__ */ r(k, { c: "dimmed", size: "12px", children: "px" }), aC = ({
18598
18598
  control: e,
18599
18599
  index: t,
18600
18600
  watch: n
@@ -18627,15 +18627,15 @@ const tC = ee((e, t) => {
18627
18627
  ] }),
18628
18628
  /* @__PURE__ */ r(R, { mb: -10, variant: "dashed", label: a("style.label"), labelPosition: "center" }),
18629
18629
  /* @__PURE__ */ u(_, { grow: !0, children: [
18630
- /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.min_width"), rightSection: /* @__PURE__ */ r(na, {}), disabled: !0 }),
18630
+ /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.min_width"), rightSection: /* @__PURE__ */ r(ra, {}), disabled: !0 }),
18631
18631
  /* @__PURE__ */ r(f, { name: `columns.${t}.width`, control: e, render: ({
18632
18632
  field: l
18633
- }) => /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.width"), rightSection: /* @__PURE__ */ r(na, {}), ...l }) }),
18634
- /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.max_width"), rightSection: /* @__PURE__ */ r(na, {}), disabled: !0 })
18633
+ }) => /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.width"), rightSection: /* @__PURE__ */ r(ra, {}), ...l }) }),
18634
+ /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.max_width"), rightSection: /* @__PURE__ */ r(ra, {}), disabled: !0 })
18635
18635
  ] }),
18636
18636
  /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `columns.${t}.align`, control: e, render: ({
18637
18637
  field: l
18638
- }) => /* @__PURE__ */ r(oi, { ...l }) }) }),
18638
+ }) => /* @__PURE__ */ r(li, { ...l }) }) }),
18639
18639
  /* @__PURE__ */ r(f, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
18640
18640
  field: l
18641
18641
  }) => /* @__PURE__ */ r(tC, { ...l }) })
@@ -18690,12 +18690,12 @@ function oC({
18690
18690
  }, children: [
18691
18691
  /* @__PURE__ */ r(f, { name: "horizontalSpacing", control: e, render: ({
18692
18692
  field: a
18693
- }) => /* @__PURE__ */ r(pa, { disabled: !0, label: n("viz.table.style.horizontal_spacing"), sx: {
18693
+ }) => /* @__PURE__ */ r(ma, { disabled: !0, label: n("viz.table.style.horizontal_spacing"), sx: {
18694
18694
  flex: 1
18695
18695
  }, ...a }) }),
18696
18696
  /* @__PURE__ */ r(f, { name: "verticalSpacing", control: e, render: ({
18697
18697
  field: a
18698
- }) => /* @__PURE__ */ r(pa, { disabled: !0, label: n("viz.table.style.vertical_spacing"), sx: {
18698
+ }) => /* @__PURE__ */ r(ma, { disabled: !0, label: n("viz.table.style.vertical_spacing"), sx: {
18699
18699
  flex: 1
18700
18700
  }, ...a }) })
18701
18701
  ] }),
@@ -19003,7 +19003,7 @@ class bC extends Se {
19003
19003
  }));
19004
19004
  }
19005
19005
  }
19006
- const ma = {
19006
+ const ga = {
19007
19007
  createConfig() {
19008
19008
  return {
19009
19009
  version: 7,
@@ -19016,10 +19016,10 @@ const ma = {
19016
19016
  name: "table",
19017
19017
  viewRender: YS,
19018
19018
  configRender: sC,
19019
- triggers: [xi],
19019
+ triggers: [vi],
19020
19020
  translation: uC
19021
19021
  }, Tc = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
19022
- `), vi = {
19022
+ `), wi = {
19023
19023
  func_content: Tc,
19024
19024
  horizontal_align: "left",
19025
19025
  font_size: "14px",
@@ -19028,7 +19028,7 @@ const ma = {
19028
19028
  context: e
19029
19029
  }) => {
19030
19030
  const t = Te(), {
19031
- value: n = vi
19031
+ value: n = wi
19032
19032
  } = K(e.instanceData, "config"), {
19033
19033
  variables: a
19034
19034
  } = e, i = e.data, {
@@ -19132,7 +19132,7 @@ function SC({
19132
19132
  } = x(), {
19133
19133
  value: n,
19134
19134
  set: a
19135
- } = K(e.instanceData, "config"), i = z(() => He({}, n, vi), [n]), o = z(() => {
19135
+ } = K(e.instanceData, "config"), i = z(() => He({}, n, wi), [n]), o = z(() => {
19136
19136
  const {
19137
19137
  func_content: p,
19138
19138
  horizontal_align: g,
@@ -19169,7 +19169,7 @@ function SC({
19169
19169
  /* @__PURE__ */ r(R, { mt: 10, mb: -10, variant: "dashed", label: t("chart.style.label"), labelPosition: "center" }),
19170
19170
  /* @__PURE__ */ r(f, { name: "horizontal_align", control: l, render: ({
19171
19171
  field: p
19172
- }) => /* @__PURE__ */ r(oi, { ...p }) }),
19172
+ }) => /* @__PURE__ */ r(li, { ...p }) }),
19173
19173
  /* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
19174
19174
  field: p
19175
19175
  }) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
@@ -19231,7 +19231,7 @@ const DC = {
19231
19231
  createConfig() {
19232
19232
  return {
19233
19233
  version: 1,
19234
- config: Pe(vi)
19234
+ config: Pe(wi)
19235
19235
  };
19236
19236
  },
19237
19237
  translation: zC
@@ -19285,18 +19285,18 @@ const LC = ({
19285
19285
  } catch (c) {
19286
19286
  throw wo(c, "response.data.detail"), wo(c, "response.data.error"), console.error(c), c;
19287
19287
  }
19288
- }, wi = {
19288
+ }, Si = {
19289
19289
  expertSystemURL: "",
19290
19290
  path: "",
19291
19291
  goal: "",
19292
19292
  question: ""
19293
- }, ga = {
19293
+ }, fa = {
19294
19294
  height: "100%",
19295
19295
  overflowY: "auto",
19296
- ...Ga
19296
+ ...Wa
19297
19297
  }, So = ({
19298
19298
  message: e
19299
- }) => /* @__PURE__ */ r($, { sx: ga, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19299
+ }) => /* @__PURE__ */ r($, { sx: fa, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19300
19300
  __html: e
19301
19301
  }, style: {
19302
19302
  fontSize: "14px",
@@ -19324,14 +19324,14 @@ function $C({
19324
19324
  }) {
19325
19325
  const {
19326
19326
  value: t
19327
- } = K(e.instanceData, "config"), n = z(() => He({}, t, wi), [t]), {
19327
+ } = K(e.instanceData, "config"), n = z(() => He({}, t, Si), [t]), {
19328
19328
  width: a,
19329
19329
  height: i
19330
19330
  } = e.viewport, o = e.data, {
19331
19331
  data: l,
19332
19332
  error: s,
19333
19333
  loading: c
19334
- } = hn(LC({
19334
+ } = pn(LC({
19335
19335
  conf: n,
19336
19336
  panelData: o
19337
19337
  }), {
@@ -19340,7 +19340,7 @@ function $C({
19340
19340
  return !a || !i || !n ? null : c ? /* @__PURE__ */ r($, { sx: {
19341
19341
  position: "relative",
19342
19342
  height: i
19343
- }, children: /* @__PURE__ */ r(rn, { visible: !0 }) }) : s ? /* @__PURE__ */ r($, { sx: ga, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r(VC, { error: s, width: a, height: i }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ r($, { sx: ga, "data-enable-scrollbar": !0, children: l.replies.map((d, h) => /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19343
+ }, children: /* @__PURE__ */ r(an, { visible: !0 }) }) : s ? /* @__PURE__ */ r($, { sx: fa, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r(VC, { error: s, width: a, height: i }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ r($, { sx: fa, "data-enable-scrollbar": !0, children: l.replies.map((d, h) => /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19344
19344
  __html: d.interpretation.html
19345
19345
  } }, h)) });
19346
19346
  }
@@ -19350,7 +19350,7 @@ function AC({
19350
19350
  const {
19351
19351
  value: t,
19352
19352
  set: n
19353
- } = K(e.instanceData, "config"), a = z(() => He({}, t, wi), [t]), {
19353
+ } = K(e.instanceData, "config"), a = z(() => He({}, t, Si), [t]), {
19354
19354
  control: i,
19355
19355
  handleSubmit: o,
19356
19356
  watch: l,
@@ -19421,7 +19421,7 @@ const qC = {
19421
19421
  createConfig() {
19422
19422
  return {
19423
19423
  version: 1,
19424
- config: Pe(wi)
19424
+ config: Pe(Si)
19425
19425
  };
19426
19426
  },
19427
19427
  translation: EC
@@ -19576,7 +19576,7 @@ const Dc = {
19576
19576
  description: "Data of the row",
19577
19577
  valueType: "object"
19578
19578
  }]
19579
- }, Si = {
19579
+ }, Ci = {
19580
19580
  calendar: {
19581
19581
  data_key: "",
19582
19582
  locale: "EN"
@@ -19763,7 +19763,7 @@ function ak(e, t, n) {
19763
19763
  }, {
19764
19764
  followVisualMap: ue,
19765
19765
  color: Z
19766
- } = Ua(q, o, l, e.visualMap);
19766
+ } = Ka(q, o, l, e.visualMap);
19767
19767
  return ue || (H.visualMap = !1, H.itemStyle = {
19768
19768
  color: Z
19769
19769
  }), H;
@@ -19843,7 +19843,7 @@ function lk({
19843
19843
  value: a
19844
19844
  } = K(e.instanceData, "config"), {
19845
19845
  variables: i
19846
- } = e, o = z(() => C.defaults({}, a, Si), [a]), l = e.data, {
19846
+ } = e, o = z(() => C.defaults({}, a, Ci), [a]), l = e.data, {
19847
19847
  width: s,
19848
19848
  height: c
19849
19849
  } = e.viewport;
@@ -19964,7 +19964,7 @@ function mk({
19964
19964
  } = x(), {
19965
19965
  value: n,
19966
19966
  set: a
19967
- } = K(e.instanceData, "config"), i = z(() => n ? he({}, n) : Si, [n]), o = z(() => C.cloneDeep(i), [i]);
19967
+ } = K(e.instanceData, "config"), i = z(() => n ? he({}, n) : Ci, [n]), o = z(() => C.cloneDeep(i), [i]);
19968
19968
  N(() => {
19969
19969
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
19970
19970
  }, [i, o]);
@@ -19999,7 +19999,7 @@ function mk({
19999
19999
  ] }),
20000
20000
  /* @__PURE__ */ r(S.Panel, { value: "Calendar", children: /* @__PURE__ */ r(ck, { control: s, watch: d }) }),
20001
20001
  /* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(dk, { control: s, watch: d }) }),
20002
- /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(gi, { form: l }) }),
20002
+ /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(fi, { form: l }) }),
20003
20003
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(pk, { control: s, watch: d }) })
20004
20004
  ] })
20005
20005
  ] }) });
@@ -20037,11 +20037,11 @@ const fk = {
20037
20037
  configRender: mk,
20038
20038
  createConfig: () => ({
20039
20039
  version: 4,
20040
- config: Si
20040
+ config: Ci
20041
20041
  }),
20042
20042
  triggers: [Dc],
20043
20043
  translation: HC
20044
- }, Ci = {
20044
+ }, ki = {
20045
20045
  x_axes: [{
20046
20046
  id: "initial-x",
20047
20047
  min: "",
@@ -20218,7 +20218,7 @@ function zk({
20218
20218
  });
20219
20219
  const l = Ur(t, a, i), s = C.groupBy(l, "0");
20220
20220
  return e.map(([d]) => {
20221
- const p = s[d].map((b) => b[1]), g = ja(p, n);
20221
+ const p = s[d].map((b) => b[1]), g = Qa(p, n);
20222
20222
  return [d, g];
20223
20223
  });
20224
20224
  }
@@ -20448,7 +20448,7 @@ function Ek({
20448
20448
  variables: o,
20449
20449
  instance: l
20450
20450
  }) {
20451
- const s = xn(t, e.y_axis.data_key), c = st(i.triggerManager, si.id), d = ae((y) => {
20451
+ const s = xn(t, e.y_axis.data_key), c = st(i.triggerManager, ci.id), d = ae((y) => {
20452
20452
  const v = C.get(s, y.name, {
20453
20453
  error: "rowData is not found"
20454
20454
  });
@@ -20482,7 +20482,7 @@ function Ok({
20482
20482
  value: a
20483
20483
  } = K(e.instanceData, "config"), {
20484
20484
  variables: i
20485
- } = e, o = z(() => he({}, a, Ci), [a]), l = e.data, {
20485
+ } = e, o = z(() => he({}, a, ki), [a]), l = e.data, {
20486
20486
  width: s,
20487
20487
  height: c
20488
20488
  } = e.viewport;
@@ -20522,7 +20522,7 @@ function qk({
20522
20522
  /* @__PURE__ */ u(T, { children: [
20523
20523
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.orientation`, control: e, render: ({
20524
20524
  field: s
20525
- }) => /* @__PURE__ */ r(on, { sx: {
20525
+ }) => /* @__PURE__ */ r(ln, { sx: {
20526
20526
  flex: 1
20527
20527
  }, ...s }) }),
20528
20528
  l === "vertical" && /* @__PURE__ */ r(k, { mt: -10, c: "dimmed", size: "12px", children: o("chart.reference_line.orientation.vertical_hint") })
@@ -20658,7 +20658,7 @@ function Bk({
20658
20658
  }, ...o }) }),
20659
20659
  /* @__PURE__ */ r(f, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
20660
20660
  field: o
20661
- }) => /* @__PURE__ */ r(pi, { label: i("viz.horizontal_bar_chart.series.aggregation.label"), value: o.value ?? Rn, onChange: o.onChange, pt: 0, withFallback: !1 }) })
20661
+ }) => /* @__PURE__ */ r(mi, { label: i("viz.horizontal_bar_chart.series.aggregation.label"), value: o.value ?? Rn, onChange: o.onChange, pt: 0, withFallback: !1 }) })
20662
20662
  ] }),
20663
20663
  /* @__PURE__ */ r(_, { grow: !0, children: /* @__PURE__ */ r(f, { name: `series.${t}.group_by_key`, control: e, render: ({
20664
20664
  field: o
@@ -20821,7 +20821,7 @@ function Uk({
20821
20821
  set: a
20822
20822
  } = K(e.instanceData, "config"), {
20823
20823
  variables: i
20824
- } = e, o = z(() => C.defaultsDeep({}, n, Ci), [n]), {
20824
+ } = e, o = z(() => C.defaultsDeep({}, n, ki), [n]), {
20825
20825
  control: l,
20826
20826
  handleSubmit: s,
20827
20827
  watch: c,
@@ -20984,11 +20984,11 @@ const r2 = {
20984
20984
  configRender: Uk,
20985
20985
  createConfig: () => ({
20986
20986
  version: 2,
20987
- config: Ci
20987
+ config: ki
20988
20988
  }),
20989
20989
  triggers: [Zk],
20990
20990
  translation: Xk
20991
- }, ki = {
20991
+ }, zi = {
20992
20992
  x_axis: {
20993
20993
  name: "",
20994
20994
  data_key: "",
@@ -21496,10 +21496,10 @@ function p2(e) {
21496
21496
  }
21497
21497
  }];
21498
21498
  }
21499
- function fa(e) {
21500
- return e == 1 || e == 2 ? 1 : fa(e - 2) + fa(e - 1);
21499
+ function ba(e) {
21500
+ return e == 1 || e == 2 ? 1 : ba(e - 2) + ba(e - 1);
21501
21501
  }
21502
- const m2 = Array.from(new Array(20), (e, t) => fa(t + 1));
21502
+ const m2 = Array.from(new Array(20), (e, t) => ba(t + 1));
21503
21503
  function ko(e) {
21504
21504
  return e <= 1 ? e : m2.findIndex((t) => e <= t) - 1;
21505
21505
  }
@@ -21609,7 +21609,7 @@ const v2 = {
21609
21609
  cursor: "default",
21610
21610
  userSelect: "none"
21611
21611
  }, children: "基线指标" }),
21612
- /* @__PURE__ */ r(ka, { size: "xs", data: o, value: t, onChange: (l) => n(l.currentTarget.value), styles: v2 })
21612
+ /* @__PURE__ */ r(za, { size: "xs", data: o, value: t, onChange: (l) => n(l.currentTarget.value), styles: v2 })
21613
21613
  ] });
21614
21614
  }, S2 = {
21615
21615
  "tbody th, tbody td": {
@@ -21666,7 +21666,7 @@ function T2({
21666
21666
  }) {
21667
21667
  const {
21668
21668
  value: n
21669
- } = K(e.instanceData, "config"), a = z(() => he({}, n, ki), [n]), i = e.data, {
21669
+ } = K(e.instanceData, "config"), a = z(() => he({}, n, zi), [n]), i = e.data, {
21670
21670
  width: o,
21671
21671
  height: l
21672
21672
  } = e.viewport, {
@@ -21798,7 +21798,7 @@ function V2({
21798
21798
  const {
21799
21799
  value: t,
21800
21800
  set: n
21801
- } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, ki), [t]), {
21801
+ } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, zi), [t]), {
21802
21802
  control: i,
21803
21803
  handleSubmit: o,
21804
21804
  watch: l,
@@ -21912,10 +21912,10 @@ const O2 = {
21912
21912
  configRender: V2,
21913
21913
  createConfig: () => ({
21914
21914
  version: 2,
21915
- config: ki
21915
+ config: zi
21916
21916
  }),
21917
21917
  translation: P2
21918
- }, zi = {
21918
+ }, Ti = {
21919
21919
  styles: {
21920
21920
  justify: "space-around",
21921
21921
  align: "start"
@@ -21995,7 +21995,7 @@ const zo = ({
21995
21995
  value: n
21996
21996
  } = K(e.instanceData, "config"), {
21997
21997
  variables: a
21998
- } = e, i = z(() => C.defaults({}, n, zi), [n]), o = e.data, l = z(() => di(o, a), [a, o]), {
21998
+ } = e, i = z(() => C.defaults({}, n, Ti), [n]), o = e.data, l = z(() => ui(o, a), [a, o]), {
21999
21999
  width: s,
22000
22000
  height: c
22001
22001
  } = e.viewport;
@@ -22142,7 +22142,7 @@ function G2({
22142
22142
  set: n
22143
22143
  } = K(e.instanceData, "config"), {
22144
22144
  variables: a
22145
- } = e, i = z(() => He({}, t, zi), [t]), {
22145
+ } = e, i = z(() => He({}, t, Ti), [t]), {
22146
22146
  control: o,
22147
22147
  handleSubmit: l,
22148
22148
  watch: s,
@@ -22252,10 +22252,10 @@ const Z2 = {
22252
22252
  configRender: G2,
22253
22253
  createConfig: () => ({
22254
22254
  version: 2,
22255
- config: zi
22255
+ config: Ti
22256
22256
  }),
22257
22257
  translation: Y2
22258
- }, Ti = {
22258
+ }, Di = {
22259
22259
  x_axis: {
22260
22260
  name: "",
22261
22261
  data_key: "",
@@ -22324,7 +22324,7 @@ function J2({
22324
22324
  } }) }),
22325
22325
  /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
22326
22326
  field: i
22327
- }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Ia, { size: 16 }), disabled: !a, ...i }) })
22327
+ }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Ma, { size: 16 }), disabled: !a, ...i }) })
22328
22328
  ] })
22329
22329
  ] });
22330
22330
  }
@@ -22442,7 +22442,7 @@ function a5({
22442
22442
  ] }),
22443
22443
  /* @__PURE__ */ r(_, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "y_axis.nameAlignment", control: e, render: ({
22444
22444
  field: a
22445
- }) => /* @__PURE__ */ r(ln, { sx: {
22445
+ }) => /* @__PURE__ */ r(sn, { sx: {
22446
22446
  flex: 1
22447
22447
  }, ...a }) }) }),
22448
22448
  /* @__PURE__ */ r(R, { mb: -15, variant: "dashed", label: n("chart.axis.tick_label"), labelPosition: "center" }),
@@ -22469,7 +22469,7 @@ function i5({
22469
22469
  } = x(), {
22470
22470
  value: n,
22471
22471
  set: a
22472
- } = K(e.instanceData, "config"), i = z(() => n ? he({}, n) : Ti, [n]), o = z(() => C.cloneDeep(i), [i]);
22472
+ } = K(e.instanceData, "config"), i = z(() => n ? he({}, n) : Di, [n]), o = z(() => C.cloneDeep(i), [i]);
22473
22473
  N(() => {
22474
22474
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
22475
22475
  }, [i, o]);
@@ -22514,7 +22514,7 @@ function i5({
22514
22514
  /* @__PURE__ */ r(S.Panel, { value: "X Axis", children: /* @__PURE__ */ r(r5, { control: s, watch: d }) }),
22515
22515
  /* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(a5, { control: s, watch: d }) }),
22516
22516
  /* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(J2, { control: s, watch: d }) }),
22517
- /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(gi, { form: l }) }),
22517
+ /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(fi, { form: l }) }),
22518
22518
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(n5, { control: s, watch: d }) })
22519
22519
  ] })
22520
22520
  ] }) });
@@ -22803,7 +22803,7 @@ function b5(e, t, n) {
22803
22803
  }, {
22804
22804
  followVisualMap: Y,
22805
22805
  color: H
22806
- } = Ua(A, s, c, e.visualMap);
22806
+ } = Ka(A, s, c, e.visualMap);
22807
22807
  return Y || (q.visualMap = !1, q.itemStyle = {
22808
22808
  color: H
22809
22809
  }), q;
@@ -22863,7 +22863,7 @@ function _5({
22863
22863
  value: a
22864
22864
  } = K(e.instanceData, "config"), {
22865
22865
  variables: i
22866
- } = e, o = z(() => he({}, a, Ti), [a]), l = e.data, {
22866
+ } = e, o = z(() => he({}, a, Di), [a]), l = e.data, {
22867
22867
  width: s,
22868
22868
  height: c
22869
22869
  } = e.viewport;
@@ -22939,7 +22939,7 @@ const k5 = {
22939
22939
  configRender: i5,
22940
22940
  createConfig: () => ({
22941
22941
  version: 2,
22942
- config: Ti
22942
+ config: Di
22943
22943
  }),
22944
22944
  triggers: [Mc],
22945
22945
  translation: w5
@@ -22990,14 +22990,14 @@ const k5 = {
22990
22990
  value: e.value,
22991
22991
  type: "single",
22992
22992
  category: "basic"
22993
- })), T5 = [sm, cm, hm, um, dm, pm], Di = [ma, iS, DC, O1, DS, T0, r2, Kg, oy, yx, cv, fk, Uv, X_, Ow, t1, L1, qC, O2, k5, Z2, xy], Lc = Di.reduce((e, t) => (e[t.name] = {
22993
+ })), T5 = [sm, cm, hm, um, dm, pm], Ii = [ga, iS, DC, O1, DS, T0, r2, Kg, oy, yx, cv, fk, Uv, X_, Ow, t1, L1, qC, O2, k5, Z2, xy], Lc = Ii.reduce((e, t) => (e[t.name] = {
22994
22994
  displayName: t.displayName,
22995
22995
  displayGroup: t.displayGroup
22996
22996
  }, e), {}), Vc = () => ({
22997
22997
  id: "dashboard",
22998
22998
  version: as,
22999
22999
  manifest: {
23000
- viz: Di,
23000
+ viz: Ii,
23001
23001
  color: [...z5, ...T5]
23002
23002
  }
23003
23003
  }), Cn = new _m(), _e = {
@@ -23013,7 +23013,7 @@ const k5 = {
23013
23013
  operationManager: It("operationManager"),
23014
23014
  triggerManager: It("triggerManager")
23015
23015
  }
23016
- }, Ii = () => {
23016
+ }, Mi = () => {
23017
23017
  try {
23018
23018
  Cn.install(Vc());
23019
23019
  } catch {
@@ -23025,7 +23025,7 @@ const k5 = {
23025
23025
  colorManager: t,
23026
23026
  panelAddonManager: n
23027
23027
  };
23028
- }, Xt = cl(Ii());
23028
+ }, Xt = cl(Mi());
23029
23029
  try {
23030
23030
  Cn.install(Vc());
23031
23031
  } catch {
@@ -23042,7 +23042,7 @@ const yr = pu({
23042
23042
  }
23043
23043
  }).use(fu).use(mu);
23044
23044
  yr.init();
23045
- Di.forEach((e) => {
23045
+ Ii.forEach((e) => {
23046
23046
  var t;
23047
23047
  (t = e.translation) == null || t.forEach((n) => {
23048
23048
  yr.addResourceBundle(n.lang, "translation", {
@@ -23533,7 +23533,8 @@ const Ec = m.model("DBQueryMeta", {
23533
23533
  react_to: []
23534
23534
  }), qc = m.model("TransformQueryMeta", {
23535
23535
  _type: m.literal(ie.Transform),
23536
- dep_query_ids: m.optional(m.array(m.string), [])
23536
+ dep_query_ids: m.optional(m.array(m.string), []),
23537
+ react_to: m.optional(m.array(m.string), [])
23537
23538
  }).views((e) => ({
23538
23539
  get valid() {
23539
23540
  return e.dep_query_ids.length > 0;
@@ -23541,16 +23542,21 @@ const Ec = m.model("DBQueryMeta", {
23541
23542
  get json() {
23542
23543
  const {
23543
23544
  dep_query_ids: t,
23544
- _type: n
23545
+ _type: n,
23546
+ react_to: a
23545
23547
  } = e;
23546
23548
  return Wt({
23547
23549
  dep_query_ids: t,
23548
- _type: n
23550
+ _type: n,
23551
+ react_to: a
23549
23552
  });
23550
23553
  }
23551
23554
  })).actions((e) => ({
23552
23555
  setDependantQueryIDs(t) {
23553
23556
  e.dep_query_ids.length = 0, e.dep_query_ids.push(...t);
23557
+ },
23558
+ setReactTo(t) {
23559
+ e.react_to.length = 0, e.react_to.push(...t);
23554
23560
  }
23555
23561
  })), B5 = () => qc.create({
23556
23562
  _type: ie.Transform,
@@ -24217,7 +24223,7 @@ const Nc = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), Bc =
24217
24223
  };
24218
24224
  }
24219
24225
  }];
24220
- function Mi(e) {
24226
+ function Li(e) {
24221
24227
  if (!e)
24222
24228
  return null;
24223
24229
  const n = jc().find((a) => a.value === e);
@@ -24229,7 +24235,7 @@ function Qc() {
24229
24235
  function K5(e) {
24230
24236
  try {
24231
24237
  if (e.default_shortcut) {
24232
- const n = Mi(e.default_shortcut);
24238
+ const n = Li(e.default_shortcut);
24233
24239
  if (n)
24234
24240
  return {
24235
24241
  value: n.value.map((a) => O(a).toDate()),
@@ -24334,7 +24340,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24334
24340
  setDefaultShortcut(t) {
24335
24341
  if (e.default_shortcut = t ?? "", !t)
24336
24342
  return;
24337
- const n = Mi(e.default_shortcut);
24343
+ const n = Li(e.default_shortcut);
24338
24344
  n && e.setFilterValue(n);
24339
24345
  },
24340
24346
  setMaxDays(t) {
@@ -24380,7 +24386,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24380
24386
  setValue(t) {
24381
24387
  e.value = t;
24382
24388
  }
24383
- })), Li = m.model("FilterConfigModel_BaseSelect", {
24389
+ })), Vi = m.model("FilterConfigModel_BaseSelect", {
24384
24390
  static_options: m.optional(m.array(Do), []),
24385
24391
  options_query_id: m.optional(m.string, ""),
24386
24392
  default_selection_count: m.optional(m.number, 0),
@@ -24443,7 +24449,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24443
24449
  min_width: m.optional(m.string, ""),
24444
24450
  default_value: m.optional(m.array(m.string), []),
24445
24451
  default_value_mode: Nc
24446
- }), Li).views((e) => ({
24452
+ }), Vi).views((e) => ({
24447
24453
  get json() {
24448
24454
  const {
24449
24455
  _name: t,
@@ -24514,7 +24520,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24514
24520
  default_value: m.string,
24515
24521
  width: m.optional(m.string, ""),
24516
24522
  clearable: m.optional(m.boolean, !1)
24517
- }), Li).views((e) => ({
24523
+ }), Vi).views((e) => ({
24518
24524
  get json() {
24519
24525
  const {
24520
24526
  _name: t,
@@ -24638,7 +24644,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24638
24644
  const {
24639
24645
  t
24640
24646
  } = x();
24641
- return /* @__PURE__ */ r(Ya, { label: "", title: t("filter.field.custom_default_value.title"), triggerLabel: t("filter.field.custom_default_value.trigger"), value: e.default_value_func, onChange: e.setDefaultValueFunc, defaultValue: n3(e.type), triggerButtonProps: {
24647
+ return /* @__PURE__ */ r(Xa, { label: "", title: t("filter.field.custom_default_value.title"), triggerLabel: t("filter.field.custom_default_value.trigger"), value: e.default_value_func, onChange: e.setDefaultValueFunc, defaultValue: n3(e.type), triggerButtonProps: {
24642
24648
  size: "xs",
24643
24649
  color: "grape",
24644
24650
  sx: {
@@ -24661,7 +24667,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24661
24667
  };
24662
24668
  return /* @__PURE__ */ r(E, { label: /* @__PURE__ */ u(_, { justify: "space-between", children: [
24663
24669
  /* @__PURE__ */ r(k, { fw: 500, size: "sm", children: n("filter.widget.common.use_query_data_as_options") }),
24664
- e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(sa, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
24670
+ e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ca, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
24665
24671
  ] }), data: o, value: e, onChange: ge(t), allowDeselect: !1, clearable: !0, sx: {
24666
24672
  flexGrow: 1
24667
24673
  }, disabled: l, error: l ? "You need to add a query in Data Settings" : void 0, styles: {
@@ -24683,7 +24689,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24683
24689
  }) => /* @__PURE__ */ u(_, { flex: "1", gap: "xs", children: [
24684
24690
  Zc[e.value],
24685
24691
  e.label
24686
- ] }), Vi = D(({
24692
+ ] }), $i = D(({
24687
24693
  config: e
24688
24694
  }) => {
24689
24695
  const {
@@ -24715,10 +24721,10 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24715
24721
  /* @__PURE__ */ r(J, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
24716
24722
  /* @__PURE__ */ r(Kr, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
24717
24723
  /* @__PURE__ */ r(ne, { value: a.default_selection_count, onChange: a.setDefaultSelectionCount, label: n("filter.widget.common.default_selection_count") }),
24718
- /* @__PURE__ */ r(Vi, { config: a }),
24724
+ /* @__PURE__ */ r($i, { config: a }),
24719
24725
  /* @__PURE__ */ r(Xc, {})
24720
24726
  ] });
24721
- }), $i = ({
24727
+ }), Ai = ({
24722
24728
  errorMessage: e
24723
24729
  }) => {
24724
24730
  const {
@@ -24753,7 +24759,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
24753
24759
  name: a
24754
24760
  }) => ({
24755
24761
  root: {
24756
- borderRadius: Ta(t),
24762
+ borderRadius: Da(t),
24757
24763
  display: "flex",
24758
24764
  flexWrap: "nowrap",
24759
24765
  border: "1px solid #ced4da",
@@ -25100,7 +25106,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
25100
25106
  maxTagTextLength: 10,
25101
25107
  value: i,
25102
25108
  treeData: l,
25103
- notFoundContent: /* @__PURE__ */ r($i, { errorMessage: s }),
25109
+ notFoundContent: /* @__PURE__ */ r(Ai, { errorMessage: s }),
25104
25110
  treeNodeFilterProp: "filterBasis",
25105
25111
  treeCheckable: !0,
25106
25112
  showCheckedStrategy: Hp,
@@ -25155,7 +25161,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
25155
25161
  /* @__PURE__ */ r(R, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
25156
25162
  /* @__PURE__ */ r(Kr, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
25157
25163
  /* @__PURE__ */ r(J, { checked: n.default_selection_count === 1, onChange: (a) => n.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: t("filter.widget.tree_single_select.select_first_option_by_default") }),
25158
- /* @__PURE__ */ r(Vi, { config: n }),
25164
+ /* @__PURE__ */ r($i, { config: n }),
25159
25165
  /* @__PURE__ */ r(Xc, {})
25160
25166
  ] });
25161
25167
  }), p3 = Pn((e, {
@@ -25164,7 +25170,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
25164
25170
  name: a
25165
25171
  }) => ({
25166
25172
  root: {
25167
- borderRadius: Ta(t),
25173
+ borderRadius: Da(t),
25168
25174
  display: "flex",
25169
25175
  flexWrap: "nowrap",
25170
25176
  border: "1px solid #ced4da",
@@ -25450,7 +25456,7 @@ const Y5 = m.model("FilterDateRangeConfigMeta", {
25450
25456
  treeIcon: ed,
25451
25457
  value: i,
25452
25458
  treeData: l,
25453
- notFoundContent: /* @__PURE__ */ r($i, { errorMessage: s }),
25459
+ notFoundContent: /* @__PURE__ */ r(Ai, { errorMessage: s }),
25454
25460
  treeNodeFilterProp: "filterBasis",
25455
25461
  treeCheckable: !1,
25456
25462
  onChange: o,
@@ -25512,7 +25518,7 @@ function b3(e) {
25512
25518
  const td = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
25513
25519
  min_width: m.optional(m.string, ""),
25514
25520
  default_value_mode: Nc
25515
- }), Li).views((e) => ({
25521
+ }), Vi).views((e) => ({
25516
25522
  get plainData() {
25517
25523
  const {
25518
25524
  data: t
@@ -25875,7 +25881,7 @@ const id = m.model("ViewDivisionConfig", {
25875
25881
  }) {
25876
25882
  e.enabled = t, e.func_content = n;
25877
25883
  }
25878
- })), ba = {
25884
+ })), ya = {
25879
25885
  enabled: !1,
25880
25886
  func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
25881
25887
  `)
@@ -25883,7 +25889,7 @@ const id = m.model("ViewDivisionConfig", {
25883
25889
  _name: m.literal(W.Modal),
25884
25890
  width: m.string,
25885
25891
  height: m.string,
25886
- custom_modal_title: m.optional(v3, ba)
25892
+ custom_modal_title: m.optional(v3, ya)
25887
25893
  }).views((e) => ({
25888
25894
  get json() {
25889
25895
  const {
@@ -26053,7 +26059,7 @@ const id = m.model("ViewDivisionConfig", {
26053
26059
  const n = e.panelIDs.filter((a) => a !== t);
26054
26060
  e.panelIDs.length = 0, e.panelIDs.push(...n);
26055
26061
  }
26056
- })), sn = "13.45.0", F9 = {
26062
+ })), cn = "14.32.0", F9 = {
26057
26063
  definition: {
26058
26064
  sqlSnippets: [],
26059
26065
  queries: [],
@@ -26068,7 +26074,7 @@ const id = m.model("ViewDivisionConfig", {
26068
26074
  }],
26069
26075
  panels: [],
26070
26076
  filters: [],
26071
- version: sn,
26077
+ version: cn,
26072
26078
  layouts: [{
26073
26079
  id: "basis",
26074
26080
  name: "basis",
@@ -26121,7 +26127,7 @@ const id = m.model("ViewDivisionConfig", {
26121
26127
  replace(t) {
26122
26128
  e.list.length = 0, e.list.push(...t);
26123
26129
  }
26124
- })), Ai = m.model("ContextMeta", {
26130
+ })), Pi = m.model("ContextMeta", {
26125
26131
  current: m.optional(m.frozen(), {})
26126
26132
  }).views((e) => ({
26127
26133
  get keys() {
@@ -26142,7 +26148,7 @@ const id = m.model("ViewDivisionConfig", {
26142
26148
  }
26143
26149
  }));
26144
26150
  function dd(e) {
26145
- return Ai.create({
26151
+ return Pi.create({
26146
26152
  current: e
26147
26153
  });
26148
26154
  }
@@ -26420,7 +26426,7 @@ const gd = q5.views((e) => ({
26420
26426
  queries: n
26421
26427
  },
26422
26428
  layouts: a,
26423
- version: sn
26429
+ version: cn
26424
26430
  }, null, 2), l = e.name;
26425
26431
  Fn(l, o);
26426
26432
  }
@@ -26435,8 +26441,8 @@ function M3(e) {
26435
26441
  description: "<p></p>",
26436
26442
  queryIDs: [],
26437
26443
  viz: {
26438
- type: ma.name,
26439
- conf: ma.createConfig()
26444
+ type: ga.name,
26445
+ conf: ga.createConfig()
26440
26446
  },
26441
26447
  style: {
26442
26448
  border: {
@@ -26613,7 +26619,7 @@ const vd = m.model("FiltersRenderModel", {
26613
26619
  ...o.json,
26614
26620
  visibleInViewsIDs: n ? o.json.visibleInViewsIDs : []
26615
26621
  })),
26616
- version: sn
26622
+ version: cn
26617
26623
  };
26618
26624
  },
26619
26625
  downloadSchema(t) {
@@ -26653,7 +26659,7 @@ async function $3({
26653
26659
  sql: s,
26654
26660
  pre_process: c,
26655
26661
  post_process: d
26656
- } = e, h = Ja(s, n), p = Eg({
26662
+ } = e, h = ei(s, n), p = Eg({
26657
26663
  sql: h,
26658
26664
  pre_process: c
26659
26665
  }), g = jp(p);
@@ -26668,7 +26674,7 @@ async function $3({
26668
26674
  name: t
26669
26675
  }
26670
26676
  });
26671
- return b = Og(d, b, Za(n)), b;
26677
+ return b = Og(d, b, Ja(n)), b;
26672
26678
  }
26673
26679
  async function A3({
26674
26680
  type: e,
@@ -26715,7 +26721,7 @@ async function P3({
26715
26721
  throw o;
26716
26722
  }
26717
26723
  }
26718
- async function Pi() {
26724
+ async function Ri() {
26719
26725
  try {
26720
26726
  return (await dt.post()("/datasource/list", {
26721
26727
  filter: {},
@@ -26757,7 +26763,7 @@ const R3 = Q5.views((e) => ({
26757
26763
  return this.rootModel.content;
26758
26764
  },
26759
26765
  get conditionOptions() {
26760
- if (!Xi(e))
26766
+ if (!Zi(e))
26761
26767
  return {
26762
26768
  optionGroups: [],
26763
26769
  validValues: /* @__PURE__ */ new Set()
@@ -26831,7 +26837,7 @@ const R3 = Q5.views((e) => ({
26831
26837
  };
26832
26838
  },
26833
26839
  get unmetRunByConditions() {
26834
- if (!Xi(e))
26840
+ if (!Zi(e))
26835
26841
  return [];
26836
26842
  const {
26837
26843
  run_by: t
@@ -26850,7 +26856,7 @@ const R3 = Q5.views((e) => ({
26850
26856
  },
26851
26857
  get formattedSQL() {
26852
26858
  const t = C.get(e, "config.sql", "");
26853
- return ei(t, this.payload);
26859
+ return ti(t, this.payload);
26854
26860
  },
26855
26861
  get httpConfigString() {
26856
26862
  const {
@@ -27183,7 +27189,7 @@ const R3 = Q5.views((e) => ({
27183
27189
  var n, a;
27184
27190
  if (e.isTransform) {
27185
27191
  const i = e.config;
27186
- return [e.inUse, e.id, e.key, i.dep_query_ids.toString(), e.pre_process, e.depQueryModelStatesString].join("--");
27192
+ return [e.inUse, e.id, e.key, e.reQueryKey, i.dep_query_ids.toString(), e.pre_process, e.depQueryModelStatesString].join("--");
27187
27193
  }
27188
27194
  return e.typedAsHTTP ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(n = e.datasource) == null ? void 0 : n.id}` : e.isMericoMetricQuery ? `${e.inUse}--${e.id}--${e.key}--${e.reQueryKey}--${(a = e.datasource) == null ? void 0 : a.id}` : [e.inUse, e.id, e.key, e.formattedSQL, e.pre_process, e.post_process].join("--");
27189
27195
  }, () => e.fetchData(!1), {
@@ -27321,7 +27327,7 @@ const R3 = Q5.views((e) => ({
27321
27327
  definition: {
27322
27328
  queries: e.findByIDSet(new Set(t)).map((i) => i.json)
27323
27329
  },
27324
- version: sn
27330
+ version: cn
27325
27331
  };
27326
27332
  },
27327
27333
  downloadSchema(t) {
@@ -27492,7 +27498,7 @@ const zd = m.model("LayoutsRenderModel", {
27492
27498
  definition: {
27493
27499
  sqlSnippets: e.findByKeySet(new Set(t)).map((i) => i.json)
27494
27500
  },
27495
- version: sn
27501
+ version: cn
27496
27502
  };
27497
27503
  },
27498
27504
  downloadSchema(t) {
@@ -27508,7 +27514,7 @@ function q3(e) {
27508
27514
  function _r(e, t, n, a) {
27509
27515
  return e.reduce((i, o) => {
27510
27516
  try {
27511
- i[o[t]] = Ja(o[n], a);
27517
+ i[o[t]] = ei(o[n], a);
27512
27518
  } catch (l) {
27513
27519
  i[o[t]] = l.message;
27514
27520
  }
@@ -27688,7 +27694,7 @@ const N3 = (e) => new F3(e), B3 = ({
27688
27694
  } = x(), [d, {
27689
27695
  open: h,
27690
27696
  close: p
27691
- }] = an(!1), [g, b] = n.value, y = g ? O(g).format(l) : "", v = b ? O(b).format(l) : "";
27697
+ }] = on(!1), [g, b] = n.value, y = g ? O(g).format(l) : "", v = b ? O(b).format(l) : "";
27692
27698
  return /* @__PURE__ */ u(ut, { opened: d, onClose: p, position: "bottom-start", shadow: "md", children: [
27693
27699
  /* @__PURE__ */ u(_, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
27694
27700
  marginTop: "3px"
@@ -27747,7 +27753,7 @@ const N3 = (e) => new F3(e), B3 = ({
27747
27753
  value: [null, null],
27748
27754
  shortcut: null
27749
27755
  }, Id = (e) => {
27750
- const t = Mi(e.shortcut);
27756
+ const t = Li(e.shortcut);
27751
27757
  return t || (Array.isArray(e.value) ? e : Dd);
27752
27758
  }, K3 = (e) => z(() => Id(e), [e]), Md = D(({
27753
27759
  label: e,
@@ -27769,7 +27775,7 @@ const N3 = (e) => new F3(e), B3 = ({
27769
27775
  ...a
27770
27776
  }) => ({
27771
27777
  root: {
27772
- borderRadius: Ta(t),
27778
+ borderRadius: Da(t),
27773
27779
  display: "flex",
27774
27780
  flexWrap: "nowrap",
27775
27781
  border: "1px solid #ced4da",
@@ -28005,7 +28011,7 @@ const N3 = (e) => new F3(e), B3 = ({
28005
28011
  count: i.length
28006
28012
  }), children: /* @__PURE__ */ r(Qt, { variant: "light", children: i.length }) })
28007
28013
  ] }),
28008
- /* @__PURE__ */ r(Wp, { disabled: e, allowClear: !0, className: p(h.root, "check-select"), dropdownClassName: p(h.dropdown, ""), onDropdownVisibleChange: y, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: n, clearIcon: () => /* @__PURE__ */ r(vt, { size: "sm" }), value: i, onChange: o, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r($i, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => d("filter.widget.common.x_selected", {
28014
+ /* @__PURE__ */ r(Wp, { disabled: e, allowClear: !0, className: p(h.root, "check-select"), dropdownClassName: p(h.dropdown, ""), onDropdownVisibleChange: y, transitionName: "rc-select-dropdown-slide-up", choiceTransitionName: "rc-select-selection__choice-zoom", style: n, clearIcon: () => /* @__PURE__ */ r(vt, { size: "sm" }), value: i, onChange: o, onSelect: console.log, mode: "multiple", maxTagCount: 0, notFoundContent: /* @__PURE__ */ r(Ai, { errorMessage: s }), maxTagTextLength: 10, maxTagPlaceholder: (Z) => d("filter.widget.common.x_selected", {
28009
28015
  count: Z.length
28010
28016
  }), searchValue: I, onSearch: M, filterOption: !1, dropdownRender: (Z) => /* @__PURE__ */ u(F, { children: [
28011
28017
  q.size > 0 && !I && /* @__PURE__ */ r(_, { px: "xs", py: "xs", onClick: ue, styles: X3, children: /* @__PURE__ */ r(J, { size: "xs", checked: H, onChange: C.noop, label: d("common.actions.select_all") }) }),
@@ -28229,7 +28235,7 @@ const uz = ({
28229
28235
  }) {
28230
28236
  const [n, {
28231
28237
  toggle: a
28232
- }] = an(!0), i = Te(), {
28238
+ }] = on(!0), i = Te(), {
28233
28239
  control: o,
28234
28240
  handleSubmit: l,
28235
28241
  reset: s
@@ -28281,8 +28287,8 @@ const uz = ({
28281
28287
  };
28282
28288
  return i.length === 0 ? null : /* @__PURE__ */ u(F, { children: [
28283
28289
  /* @__PURE__ */ r(R, { label: t(i.length > 1 ? "query.labels" : "query.label"), labelPosition: "center" }),
28284
- /* @__PURE__ */ r(U.Item, { onClick: l, leftSection: /* @__PURE__ */ r(Jt, { size: 14 }), children: t("data.label") }),
28285
- i.map((s) => /* @__PURE__ */ r(U.Item, { onClick: () => o(s.value), leftSection: /* @__PURE__ */ r(Jt, { size: 14 }), children: s.label }, s.value))
28290
+ /* @__PURE__ */ r(U.Item, { onClick: l, leftSection: /* @__PURE__ */ r(en, { size: 14 }), children: t("data.label") }),
28291
+ i.map((s) => /* @__PURE__ */ r(U.Item, { onClick: () => o(s.value), leftSection: /* @__PURE__ */ r(en, { size: 14 }), children: s.label }, s.value))
28286
28292
  ] });
28287
28293
  }), mz = D(({
28288
28294
  view: e,
@@ -28341,12 +28347,12 @@ const uz = ({
28341
28347
  A && /* @__PURE__ */ r(U.Item, { onClick: M, leftSection: /* @__PURE__ */ r(vl, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
28342
28348
  /* @__PURE__ */ r(pz, { view: e }),
28343
28349
  /* @__PURE__ */ r(R, { label: n("common.actions.edit"), labelPosition: "center" }),
28344
- /* @__PURE__ */ r(U.Item, { onClick: g, leftSection: /* @__PURE__ */ r(Va, { size: 14 }), children: n("panel.label") }),
28350
+ /* @__PURE__ */ r(U.Item, { onClick: g, leftSection: /* @__PURE__ */ r($a, { size: 14 }), children: n("panel.label") }),
28345
28351
  /* @__PURE__ */ r(U.Item, { onClick: b, leftSection: /* @__PURE__ */ r($n, { size: 14 }), children: n("panel.variable.labels") }),
28346
28352
  /* @__PURE__ */ r(U.Item, { onClick: y, leftSection: /* @__PURE__ */ r(wl, { size: 14 }), children: n("visualization.label") }),
28347
- /* @__PURE__ */ r(U.Item, { onClick: v, leftSection: /* @__PURE__ */ r($a, { size: 14 }), children: n("interactions.label") }),
28353
+ /* @__PURE__ */ r(U.Item, { onClick: v, leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: n("interactions.label") }),
28348
28354
  /* @__PURE__ */ r(R, { label: n("common.actions.actions"), labelPosition: "center" }),
28349
- /* @__PURE__ */ r(U.Item, { onClick: p, leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: n("common.actions.duplicate") }),
28355
+ /* @__PURE__ */ r(U.Item, { onClick: p, leftSection: /* @__PURE__ */ r(Pa, { size: 14 }), children: n("common.actions.duplicate") }),
28350
28356
  /* @__PURE__ */ r(U.Item, { color: "red", onClick: I, leftSection: /* @__PURE__ */ r(Ae, { size: 14 }), children: n("common.actions.delete") })
28351
28357
  ] })
28352
28358
  ] }) }) });
@@ -28557,7 +28563,7 @@ const Ao = new Sz(), wr = class wr {
28557
28563
  }
28558
28564
  };
28559
28565
  j(wr, "instance", new wr());
28560
- let ya = wr;
28566
+ let _a = wr;
28561
28567
  function Pd(e, t = !0) {
28562
28568
  const {
28563
28569
  panel: n
@@ -28566,7 +28572,7 @@ function Pd(e, t = !0) {
28566
28572
  const i = a.getRequired(_e.vizManager), o = i.resolveComponent(e.viz.type);
28567
28573
  return a.createScoped().provideFactory(_e.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(_e.instanceScope.interactionManager, (l) => {
28568
28574
  const s = l.getRequired(_e.instanceScope.vizInstance);
28569
- return t ? new Hs(s, o, ai) : new ya();
28575
+ return t ? new Hs(s, o, ii) : new _a();
28570
28576
  }).provideFactory(_e.instanceScope.operationManager, (l) => l.getRequired(_e.instanceScope.interactionManager).operationManager).provideFactory(_e.instanceScope.triggerManager, (l) => l.getRequired(_e.instanceScope.interactionManager).triggerManager).provideValue(_e.instanceScope.panelModel, n).provideFactory(_e.instanceScope.migrator, (l) => new _z(l));
28571
28577
  }, [e.viz.type, e.viz.conf, t]);
28572
28578
  }
@@ -28582,7 +28588,7 @@ function Cz({
28582
28588
  const n = he({}, t, Rd);
28583
28589
  return /* @__PURE__ */ r(Ed.Provider, { value: n, children: e });
28584
28590
  }
28585
- function Ri() {
28591
+ function Ei() {
28586
28592
  return P.useContext(Ed);
28587
28593
  }
28588
28594
  function Od(e) {
@@ -28658,7 +28664,7 @@ function Tz(e, t) {
28658
28664
  viz: a
28659
28665
  }, {
28660
28666
  withInteraction: p
28661
- } = Ri(), g = Pd(h, p);
28667
+ } = Ei(), g = Pd(h, p);
28662
28668
  try {
28663
28669
  return n.resolveComponent(a.type), /* @__PURE__ */ u(qr, { configure: g, children: [
28664
28670
  /* @__PURE__ */ r(zz, { setVizConf: a.setConf, panel: h, measure: t, data: e, variables: d, vizManager: n }),
@@ -28689,7 +28695,7 @@ const Dz = D(function({
28689
28695
  inEditMode: n
28690
28696
  } = Ut(Rr), a = e.getRequired(_e.panelAddonManager), {
28691
28697
  withAddon: i
28692
- } = Ri(), o = fm();
28698
+ } = Ei(), o = fm();
28693
28699
  return !o || !i ? null : Kp(/* @__PURE__ */ r(F, { children: a.createPanelAddonNode({
28694
28700
  viz: t,
28695
28701
  isInEditMode: n
@@ -28705,14 +28711,14 @@ const Dz = D(function({
28705
28711
  position: "relative",
28706
28712
  width: "100%"
28707
28713
  }, children: [
28708
- /* @__PURE__ */ r(rn, { visible: e.dataLoading, transitionProps: {
28714
+ /* @__PURE__ */ r(an, { visible: e.dataLoading, transitionProps: {
28709
28715
  exitDuration: 0
28710
28716
  } }),
28711
28717
  !e.canRenderViz && /* @__PURE__ */ r(Mz, { panel: e }),
28712
28718
  e.canRenderViz && /* @__PURE__ */ r(Dz, { data: e.data })
28713
28719
  ] })), Lz = {
28714
28720
  border: "1px solid #e9ecef"
28715
- }, Ei = D(({
28721
+ }, Oi = D(({
28716
28722
  panel: e,
28717
28723
  panelStyle: t,
28718
28724
  dropdownContent: n
@@ -28723,7 +28729,7 @@ const Dz = D(function({
28723
28729
  } = yz(e), {
28724
28730
  withAddon: o,
28725
28731
  withPanelTitle: l
28726
- } = Ri(), s = o ? rs : P.Fragment;
28732
+ } = Ei(), s = o ? rs : P.Fragment;
28727
28733
  return /* @__PURE__ */ r(ps, { value: {
28728
28734
  panel: e,
28729
28735
  data: e.data,
@@ -28756,7 +28762,7 @@ const Az = D(function({
28756
28762
  view: n
28757
28763
  }) {
28758
28764
  const a = $z(t);
28759
- return /* @__PURE__ */ r(Ei, { panel: t, panelStyle: a, dropdownContent: /* @__PURE__ */ r(mz, { view: n, title: t.name }) });
28765
+ return /* @__PURE__ */ r(Oi, { panel: t, panelStyle: a, dropdownContent: /* @__PURE__ */ r(mz, { view: n, title: t.name }) });
28760
28766
  });
28761
28767
  function Pz(e) {
28762
28768
  return !["richText", "button"].includes(e);
@@ -28804,7 +28810,7 @@ const Nd = D(({
28804
28810
  view: t
28805
28811
  }) => {
28806
28812
  const n = Ez(e);
28807
- return /* @__PURE__ */ r(Ei, { panel: e, panelStyle: n, dropdownContent: /* @__PURE__ */ r(Rz, { title: e.name, view: t }) });
28813
+ return /* @__PURE__ */ r(Oi, { panel: e, panelStyle: n, dropdownContent: /* @__PURE__ */ r(Rz, { title: e.name, view: t }) });
28808
28814
  }), Oz = {
28809
28815
  modal: {
28810
28816
  display: "flex",
@@ -28842,7 +28848,7 @@ function Fz(e, t, n) {
28842
28848
  }
28843
28849
  function B9(e) {
28844
28850
  const t = Pr(), n = z(() => t.content.panels.findByID(e.panelId), [e.panelId]);
28845
- return n ? /* @__PURE__ */ r(Cz, { withAddon: !1, withPanelTitle: !1, withInteraction: !1, children: /* @__PURE__ */ r(Ei, { panel: n, panelStyle: {} }) }) : null;
28851
+ return n ? /* @__PURE__ */ r(Cz, { withAddon: !1, withPanelTitle: !1, withInteraction: !1, children: /* @__PURE__ */ r(Oi, { panel: n, panelStyle: {} }) }) : null;
28846
28852
  }
28847
28853
  const Nz = P.forwardRef(({
28848
28854
  h: e
@@ -28899,7 +28905,7 @@ const Nz = P.forwardRef(({
28899
28905
  const n = Te(), a = n.layouts.items(e.panelIDs), i = n.layouts.gridLayouts(e.panelIDs);
28900
28906
  return /* @__PURE__ */ r(Hz, { className: `dashboard-layout ${t}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, cols: n.layouts.cols, layouts: i, breakpoints: n.layouts.breakpoints, onBreakpointChange: n.layouts.setCurrentBreakpoint, children: a.map((o) => /* @__PURE__ */ r("div", { "data-grid": o.layoutProperies, className: "panel-grid-item", children: /* @__PURE__ */ r(Nd, { view: e, panel: o.panel }) }, o.id)) });
28901
28907
  });
28902
- function Oi(e) {
28908
+ function qi(e) {
28903
28909
  const t = Pt(null);
28904
28910
  return {
28905
28911
  ref: t,
@@ -28950,7 +28956,7 @@ const Wz = D(({
28950
28956
  const {
28951
28957
  ref: a,
28952
28958
  downloadScreenshot: i
28953
- } = Oi(t);
28959
+ } = qi(t);
28954
28960
  return /* @__PURE__ */ u(F, { children: [
28955
28961
  /* @__PURE__ */ r($, { ref: a, pt: 10, pb: 10, sx: n, children: e }),
28956
28962
  /* @__PURE__ */ r(Wz, { downloadScreenshot: i })
@@ -28964,7 +28970,7 @@ const Wz = D(({
28964
28970
  const n = Te(), a = t.config, i = n.views.visibleViewIDs.includes(t.id), o = () => n.views.rmVisibleViewID(t.id), {
28965
28971
  ref: l,
28966
28972
  downloadScreenshot: s
28967
- } = Oi(t);
28973
+ } = qi(t);
28968
28974
  return /* @__PURE__ */ r(we, { size: a.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(_, { justify: "space-between", px: "1rem", h: "48px", children: [
28969
28975
  /* @__PURE__ */ r($, { children: a.custom_modal_title.value }),
28970
28976
  /* @__PURE__ */ r(jd, { downloadScreenshot: s })
@@ -29025,7 +29031,7 @@ const Wz = D(({
29025
29031
  /* @__PURE__ */ r(S.List, { grow: n.grow, children: n.tabsInOrder.map((a) => /* @__PURE__ */ r(S.Tab, { value: a.id, sx: Kz(a), disabled: !a.view_id, children: a.name ?? a.id }, a.id)) }),
29026
29032
  n.tabsInOrder.map((a) => {
29027
29033
  const i = t.views.findByID(a.view_id);
29028
- return i ? /* @__PURE__ */ r(S.Panel, { value: a.id, children: /* @__PURE__ */ r(qi, { view: i }) }, a.id) : null;
29034
+ return i ? /* @__PURE__ */ r(S.Panel, { value: a.id, children: /* @__PURE__ */ r(Fi, { view: i }) }, a.id) : null;
29029
29035
  })
29030
29036
  ] });
29031
29037
  }), Xz = D(({
@@ -29084,7 +29090,7 @@ const Jz = D(({
29084
29090
  }), [n.width, n.height]), {
29085
29091
  ref: o,
29086
29092
  downloadScreenshot: l
29087
- } = Oi(t);
29093
+ } = qi(t);
29088
29094
  return /* @__PURE__ */ r($, { sx: {
29089
29095
  height: "100%",
29090
29096
  "> div:not(.mantine-Modal-root)": {
@@ -29199,7 +29205,7 @@ const Jz = D(({
29199
29205
  bottom: 0,
29200
29206
  zIndex: 200
29201
29207
  }, children: [
29202
- /* @__PURE__ */ r(nn, { backgroundOpacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
29208
+ /* @__PURE__ */ r(rn, { backgroundOpacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
29203
29209
  /* @__PURE__ */ u(T, { mx: "auto", mt: 100, sx: {
29204
29210
  width: "300px",
29205
29211
  position: "relative",
@@ -29208,7 +29214,7 @@ const Jz = D(({
29208
29214
  /* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
29209
29215
  /* @__PURE__ */ r(E, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
29210
29216
  /* @__PURE__ */ r(ne, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (g) => d.setOrder(g || 0), min: 0, max: 1e3, step: 1 }),
29211
- /* @__PURE__ */ r(tn, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
29217
+ /* @__PURE__ */ r(nn, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
29212
29218
  p && /* @__PURE__ */ r(L, { mt: 20, variant: "gradient", leftSection: /* @__PURE__ */ r(gh, { size: 18 }), gradient: {
29213
29219
  from: "cyan",
29214
29220
  to: "indigo"
@@ -29218,7 +29224,7 @@ const Jz = D(({
29218
29224
  /* @__PURE__ */ r(L, { mt: 20, variant: "subtle", color: "red", onClick: () => l(h), disabled: s, leftSection: /* @__PURE__ */ r(Ae, { size: 14 }), children: t("view.component.tabs.tab.delete") })
29219
29225
  ] })
29220
29226
  ] }),
29221
- p && /* @__PURE__ */ r(qi, { view: p })
29227
+ p && /* @__PURE__ */ r(Fi, { view: p })
29222
29228
  ] }, d.id);
29223
29229
  })
29224
29230
  ] });
@@ -29253,7 +29259,7 @@ const Jz = D(({
29253
29259
  }, children: /* @__PURE__ */ r(Vd, { view: t }) }),
29254
29260
  /* @__PURE__ */ r(Qz, { view: t })
29255
29261
  ] }) }) }) });
29256
- }), qi = D(function({
29262
+ }), Fi = D(function({
29257
29263
  view: t
29258
29264
  }) {
29259
29265
  const {
@@ -30101,10 +30107,10 @@ function $T(e) {
30101
30107
  function AT(e) {
30102
30108
  return e.length === 2 && e[0] === "_VIEWS_";
30103
30109
  }
30104
- function _a(e) {
30110
+ function xa(e) {
30105
30111
  return e.length === 6 && e[0] === "_VIEWS_" && e[2] === "_PANELS_";
30106
30112
  }
30107
- function cn(e) {
30113
+ function dn(e) {
30108
30114
  return {
30109
30115
  label: e,
30110
30116
  value: e,
@@ -30140,7 +30146,7 @@ const RT = m.model("EditorModel", {
30140
30146
  settings_open: m.optional(m.boolean, !1)
30141
30147
  }).views((e) => ({
30142
30148
  get isPanelPath() {
30143
- return _a(e.path);
30149
+ return xa(e.path);
30144
30150
  },
30145
30151
  get panelTab() {
30146
30152
  return this.isPanelPath ? C.get(e.path, 5, "Data") : null;
@@ -30167,31 +30173,31 @@ const RT = m.model("EditorModel", {
30167
30173
  }, {
30168
30174
  label: "filter.labels",
30169
30175
  value: "_FILTERS_",
30170
- Icon: Pa,
30171
- children: [cn("_FILTERS_SETTINGS_"), ...n.options, cn("_Add_A_Filter_")],
30176
+ Icon: Ra,
30177
+ children: [dn("_FILTERS_SETTINGS_"), ...n.options, dn("_Add_A_Filter_")],
30172
30178
  _type: "GROUP"
30173
30179
  }, {
30174
30180
  label: "sql_snippet.labels",
30175
30181
  value: "_SQL_SNIPPETS_",
30176
- Icon: Aa,
30177
- children: [cn("_SQL_SNIPPETS_SETTINGS_"), ...i.options, cn("_Add_A_SQL_SNIPPET_")],
30182
+ Icon: Pa,
30183
+ children: [dn("_SQL_SNIPPETS_SETTINGS_"), ...i.options, dn("_Add_A_SQL_SNIPPET_")],
30178
30184
  _type: "GROUP"
30179
30185
  }, {
30180
30186
  label: "query.labels",
30181
30187
  value: "_QUERIES_",
30182
- Icon: Jt,
30183
- children: [cn("_QUERIES_SETTINGS_"), ...o.options, cn("_Add_A_QUERY_")],
30188
+ Icon: en,
30189
+ children: [dn("_QUERIES_SETTINGS_"), ...o.options, dn("_Add_A_QUERY_")],
30184
30190
  _type: "GROUP"
30185
30191
  }, {
30186
30192
  label: "view.labels",
30187
30193
  value: "_VIEWS_",
30188
- Icon: Ra,
30189
- children: [...a.editorOptions, cn("_Add_A_VIEW_")],
30194
+ Icon: Ea,
30195
+ children: [...a.editorOptions, dn("_Add_A_VIEW_")],
30190
30196
  _type: "GROUP"
30191
30197
  }];
30192
30198
  },
30193
30199
  isOptionActive(t, n) {
30194
- return t.length === 0 ? !1 : _a(t) ? t[3] === n.value : t[t.length - 1] === n.value;
30200
+ return t.length === 0 ? !1 : xa(t) ? t[3] === n.value : t[t.length - 1] === n.value;
30195
30201
  },
30196
30202
  isOptionOpened(t) {
30197
30203
  const {
@@ -30619,7 +30625,7 @@ const RT = m.model("EditorModel", {
30619
30625
  queries: C.uniqBy(a, (l) => l.id)
30620
30626
  },
30621
30627
  layouts: i,
30622
- version: sn
30628
+ version: cn
30623
30629
  };
30624
30630
  },
30625
30631
  downloadSchema() {
@@ -30841,7 +30847,7 @@ const BT = m.model({
30841
30847
  };
30842
30848
  },
30843
30849
  get dashboardState() {
30844
- return Za(this.payloadForSQL);
30850
+ return Ja(this.payloadForSQL);
30845
30851
  },
30846
30852
  getAdditionalQueryInfo(t) {
30847
30853
  return {
@@ -31149,7 +31155,7 @@ const QT = m.model({
31149
31155
  content_id: m.string,
31150
31156
  datasources: kT,
31151
31157
  globalSQLSnippets: cd,
31152
- context: Ai,
31158
+ context: Pi,
31153
31159
  editor: RT
31154
31160
  }).views((e) => ({
31155
31161
  get json() {
@@ -31326,7 +31332,7 @@ function Wd(e, t) {
31326
31332
  return encodeURIComponent(y);
31327
31333
  });
31328
31334
  }
31329
- const p = Sa(o || "")(d({
31335
+ const p = Ca(o || "")(d({
31330
31336
  ...c,
31331
31337
  filters: e.payloadForSQL.filters,
31332
31338
  context: e.payloadForSQL.context
@@ -31539,7 +31545,7 @@ const GT = D(({
31539
31545
  } = x(), [t, {
31540
31546
  open: n,
31541
31547
  close: a
31542
- }] = an(!1), i = le(), o = i.layouts.currentBreakpoint, l = i.layouts.currentLayoutRange, s = () => {
31548
+ }] = on(!1), i = le(), o = i.layouts.currentBreakpoint, l = i.layouts.currentLayoutRange, s = () => {
31543
31549
  setTimeout(() => {
31544
31550
  window.dispatchEvent(new Event("resize"));
31545
31551
  }, 32);
@@ -31732,7 +31738,7 @@ function i6(e) {
31732
31738
  if (typeof e.target.result != "string")
31733
31739
  throw new Error(`Unparsable file content of type: ${typeof e.target.result}`);
31734
31740
  let t = JSON.parse(e.target.result);
31735
- if ("content" in t && (t = t.content), t.version !== sn)
31741
+ if ("content" in t && (t = t.content), t.version !== cn)
31736
31742
  throw new Error("Schema version mismatch");
31737
31743
  return t;
31738
31744
  }
@@ -31809,7 +31815,7 @@ const o6 = D(({
31809
31815
  I ? /* @__PURE__ */ r(w, { fz: 12, mt: 10, children: /* @__PURE__ */ u(w.Tbody, { children: [
31810
31816
  /* @__PURE__ */ u(w.Tr, { children: [
31811
31817
  /* @__PURE__ */ r(w.Th, { children: a("import.this_dashboard") }),
31812
- /* @__PURE__ */ r(w.Td, { children: sn })
31818
+ /* @__PURE__ */ r(w.Td, { children: cn })
31813
31819
  ] }),
31814
31820
  /* @__PURE__ */ u(w.Tr, { children: [
31815
31821
  /* @__PURE__ */ r(w.Th, { children: a("import.this_file") }),
@@ -31835,15 +31841,15 @@ const o6 = D(({
31835
31841
  } = x(), [t, {
31836
31842
  open: n,
31837
31843
  close: a
31838
- }] = an(!1), [i, {
31844
+ }] = on(!1), [i, {
31839
31845
  setTrue: o,
31840
31846
  setFalse: l
31841
31847
  }] = De(!1), c = ((d = de().content.views.VIE) == null ? void 0 : d.type) === W.Tabs;
31842
- return c ? /* @__PURE__ */ r(re, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r(L, { variant: "outline", color: "gray", radius: 0, size: "xs", leftSection: /* @__PURE__ */ r(Yi, { size: 16 }), sx: {
31848
+ return c ? /* @__PURE__ */ r(re, { label: e("common.choose_a_tab_first"), children: /* @__PURE__ */ r(L, { variant: "outline", color: "gray", radius: 0, size: "xs", leftSection: /* @__PURE__ */ r(Xi, { size: 16 }), sx: {
31843
31849
  ...No,
31844
31850
  transform: "none !important"
31845
31851
  }, children: e("import.label") }) }) : /* @__PURE__ */ u(F, { children: [
31846
- /* @__PURE__ */ r(L, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || t, onClick: n, leftSection: /* @__PURE__ */ r(Yi, { size: 16 }), sx: {
31852
+ /* @__PURE__ */ r(L, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || t, onClick: n, leftSection: /* @__PURE__ */ r(Xi, { size: 16 }), sx: {
31847
31853
  ...No
31848
31854
  // background: 'rgb(231, 245, 255)',
31849
31855
  }, children: e("import.label") }),
@@ -31861,15 +31867,15 @@ const o6 = D(({
31861
31867
  case "mock_context":
31862
31868
  return /* @__PURE__ */ r(Cl, { ...t });
31863
31869
  case "filter":
31864
- return /* @__PURE__ */ r(Pa, { ...t });
31870
+ return /* @__PURE__ */ r(Ra, { ...t });
31865
31871
  case "sql_snippet":
31866
- return /* @__PURE__ */ r(Aa, { ...t });
31872
+ return /* @__PURE__ */ r(Pa, { ...t });
31867
31873
  case "query":
31868
- return /* @__PURE__ */ r(Jt, { ...t });
31874
+ return /* @__PURE__ */ r(en, { ...t });
31869
31875
  case "view":
31870
- return /* @__PURE__ */ r(Ra, { ...t });
31876
+ return /* @__PURE__ */ r(Ea, { ...t });
31871
31877
  case "panel":
31872
- return /* @__PURE__ */ r(Va, { ...t });
31878
+ return /* @__PURE__ */ r($a, { ...t });
31873
31879
  default:
31874
31880
  return null;
31875
31881
  }
@@ -31941,7 +31947,7 @@ const o6 = D(({
31941
31947
  position: "relative",
31942
31948
  display: "block",
31943
31949
  width: "100%",
31944
- padding: `${Wi(10)} ${Wi(12)}`,
31950
+ padding: `${Ui(10)} ${Ui(12)}`,
31945
31951
  borderRadius: n.radius.sm,
31946
31952
  ".spotlight-action-viz-group": {
31947
31953
  opacity: 0
@@ -31974,7 +31980,7 @@ const o6 = D(({
31974
31980
  return /* @__PURE__ */ r(re, { label: /* @__PURE__ */ u(F, { children: [
31975
31981
  jo && /* @__PURE__ */ r(Bo, { children: "⌘ + K" }),
31976
31982
  !jo && /* @__PURE__ */ r(Bo, { children: "Ctrl + K" })
31977
- ] }), children: /* @__PURE__ */ r(Ca, { onClick: () => Xp.open(), style: {
31983
+ ] }), children: /* @__PURE__ */ r(ka, { onClick: () => Xp.open(), style: {
31978
31984
  height: "1.875rem",
31979
31985
  borderLeft: "none",
31980
31986
  borderTop: "none",
@@ -32103,12 +32109,12 @@ function Kd(e, t, n) {
32103
32109
  function _6(e, t, n) {
32104
32110
  return e * t + (e - 1) * n;
32105
32111
  }
32106
- const xr = 25, Fi = 40, Yd = 25, Ni = 350, x6 = 150, v6 = 150, Xd = 150, Qo = 300, cr = 40, Zd = 25, w6 = 300;
32112
+ const xr = 25, Ni = 40, Yd = 25, Bi = 350, x6 = 150, v6 = 150, Xd = 150, Qo = 300, cr = 40, Zd = 25, w6 = 300;
32107
32113
  function S6(e, t) {
32108
32114
  const n = C.keyBy(t, (i) => i.id), a = [];
32109
32115
  return e.current.forEach((i, o) => {
32110
32116
  i.panelIDs.forEach((l, s) => {
32111
- const c = Kd(s, cr, Zd) + Fi, d = n[l];
32117
+ const c = Kd(s, cr, Zd) + Ni, d = n[l];
32112
32118
  if (!d) {
32113
32119
  a.push({
32114
32120
  id: l,
@@ -32159,7 +32165,7 @@ const C6 = {
32159
32165
  }, k6 = oT;
32160
32166
  function z6(e) {
32161
32167
  return e.current.map((n, a) => {
32162
- const i = _6(n.panelIDs.length, cr, Zd) + Fi + Yd;
32168
+ const i = _6(n.panelIDs.length, cr, Zd) + Ni + Yd;
32163
32169
  let o = [];
32164
32170
  return n.type === W.Tabs && (o = n.config.tabsInOrder.map((s) => s.view_id)), {
32165
32171
  id: n.id,
@@ -32180,7 +32186,7 @@ function z6(e) {
32180
32186
  className: "light",
32181
32187
  style: {
32182
32188
  backgroundColor: k6[n.type],
32183
- width: Ni,
32189
+ width: Bi,
32184
32190
  height: i
32185
32191
  }
32186
32192
  };
@@ -32206,12 +32212,12 @@ function I6({
32206
32212
  edges: n
32207
32213
  }) {
32208
32214
  t.forEach((a) => {
32209
- a._node_type !== "view-root" || a._view_type !== W.Tabs || (a.sourcePosition = xt.Bottom, a.style.width = Ni + xr * 2, a.style.height = Yd + a._tab_view_ids.reduce((i, o) => {
32215
+ a._node_type !== "view-root" || a._view_type !== W.Tabs || (a.sourcePosition = xt.Bottom, a.style.width = Bi + xr * 2, a.style.height = Yd + a._tab_view_ids.reduce((i, o) => {
32210
32216
  const l = e[o];
32211
32217
  l.position.y = i, l.position.x = xr;
32212
32218
  const s = l.style.height;
32213
32219
  return i + s + 20;
32214
- }, Fi));
32220
+ }, Ni));
32215
32221
  });
32216
32222
  }
32217
32223
  function M6({
@@ -32254,7 +32260,7 @@ function V6({
32254
32260
  n.forEach((l) => {
32255
32261
  a.add(l.source), i.add(l.target);
32256
32262
  }), t.filter((l) => l._node_type !== "view-root" || l.id === "Main" || l.parentNode ? !1 : !a.has(l.id) && !i.has(l.id)).forEach((l, s) => {
32257
- l.position.x = Kd(s, Ni, v6), l.position.y = 0 - x6 - Xd;
32263
+ l.position.x = Kd(s, Bi, v6), l.position.y = 0 - x6 - Xd;
32258
32264
  });
32259
32265
  }
32260
32266
  function $6({
@@ -32283,7 +32289,7 @@ function A6(e) {
32283
32289
  };
32284
32290
  return $6(s);
32285
32291
  }
32286
- const ra = {
32292
+ const aa = {
32287
32293
  "builtin:op:open-link": /* @__PURE__ */ r(ar, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r(yh, { size: 14 }) }),
32288
32294
  "builtin:op:set_filter_values": /* @__PURE__ */ r(ar, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(_h, { size: 14 }) }),
32289
32295
  "builtin:op:clear_filter_values": /* @__PURE__ */ r(ar, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(_l, { size: 14 }) })
@@ -32295,7 +32301,7 @@ function P6(e) {
32295
32301
  case "builtin:op:open-link":
32296
32302
  t.push({
32297
32303
  key: n.urlTemplate,
32298
- icon: ra[n.schemaRef],
32304
+ icon: aa[n.schemaRef],
32299
32305
  text: /* @__PURE__ */ u(_, { gap: 4, children: [
32300
32306
  /* @__PURE__ */ r(k, { size: "sm", children: "Open: " }),
32301
32307
  /* @__PURE__ */ r(k, { size: "sm", c: "dimmed", children: n.shortURLTemplate })
@@ -32309,7 +32315,7 @@ function P6(e) {
32309
32315
  }) => {
32310
32316
  t.push({
32311
32317
  key: n.schemaRef + a,
32312
- icon: ra[n.schemaRef],
32318
+ icon: aa[n.schemaRef],
32313
32319
  text: /* @__PURE__ */ r(_, { gap: 4, children: /* @__PURE__ */ u(k, { size: "sm", children: [
32314
32320
  "Set Filter: ",
32315
32321
  i
@@ -32324,7 +32330,7 @@ function P6(e) {
32324
32330
  }) => {
32325
32331
  t.push({
32326
32332
  key: n.schemaRef + a,
32327
- icon: ra[n.schemaRef],
32333
+ icon: aa[n.schemaRef],
32328
32334
  text: /* @__PURE__ */ r(_, { gap: 4, children: /* @__PURE__ */ u(k, { size: "sm", children: [
32329
32335
  "Clear Filter: ",
32330
32336
  i
@@ -32344,7 +32350,7 @@ const R6 = Du(({
32344
32350
  }) => {
32345
32351
  const o = z(() => P6(e.interactions), [e.interactions]);
32346
32352
  return /* @__PURE__ */ u(F, { children: [
32347
- /* @__PURE__ */ r(Zi, { type: "target", position: a, isConnectable: t }),
32353
+ /* @__PURE__ */ r(Ji, { type: "target", position: a, isConnectable: t }),
32348
32354
  /* @__PURE__ */ r($, { sx: {
32349
32355
  position: "absolute",
32350
32356
  top: 0,
@@ -32354,7 +32360,7 @@ const R6 = Du(({
32354
32360
  /* @__PURE__ */ r(xe.Target, { children: /* @__PURE__ */ r(k, { size: "sm", children: e.label }) }),
32355
32361
  /* @__PURE__ */ r(xe.Dropdown, { children: /* @__PURE__ */ r(We, { spacing: "xs", size: "sm", center: !0, children: o.map((l) => /* @__PURE__ */ r(We.Item, { icon: l.icon, children: l.text }, l.key)) }) })
32356
32362
  ] }),
32357
- /* @__PURE__ */ r(Zi, { type: "source", position: n, isConnectable: t })
32363
+ /* @__PURE__ */ r(Ji, { type: "source", position: n, isConnectable: t })
32358
32364
  ] });
32359
32365
  });
32360
32366
  const E6 = {
@@ -32430,7 +32436,7 @@ function N6({
32430
32436
  return /* @__PURE__ */ u($, { sx: {
32431
32437
  position: "relative"
32432
32438
  }, children: [
32433
- /* @__PURE__ */ r(Ca, { sx: (i) => ({
32439
+ /* @__PURE__ */ r(ka, { sx: (i) => ({
32434
32440
  display: "block",
32435
32441
  width: "100%",
32436
32442
  padding: i.spacing.xs,
@@ -32503,13 +32509,13 @@ const B6 = D(() => {
32503
32509
  }, children: [
32504
32510
  /* @__PURE__ */ r(re, { label: e("filter.labels"), withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "default", radius: 0, size: "md", sx: {
32505
32511
  height: "30px"
32506
- }, onClick: i, children: /* @__PURE__ */ r(Pa, { size: 18 }) }) }),
32512
+ }, onClick: i, children: /* @__PURE__ */ r(Ra, { size: 18 }) }) }),
32507
32513
  /* @__PURE__ */ r(re, { label: e("query.labels"), withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "default", radius: 0, size: "md", sx: {
32508
32514
  height: "30px"
32509
- }, onClick: a, children: /* @__PURE__ */ r(Jt, { size: 18 }) }) }),
32515
+ }, onClick: a, children: /* @__PURE__ */ r(en, { size: 18 }) }) }),
32510
32516
  /* @__PURE__ */ r(re, { label: e("interactions.interactions_viewer"), withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "default", radius: 0, size: "md", sx: {
32511
32517
  height: "30px"
32512
- }, onClick: s, children: /* @__PURE__ */ r($a, { size: 18 }) }) })
32518
+ }, onClick: s, children: /* @__PURE__ */ r(Aa, { size: 18 }) }) })
32513
32519
  ] }),
32514
32520
  /* @__PURE__ */ r(q6, { opened: o, close: c })
32515
32521
  ] }),
@@ -32537,7 +32543,7 @@ const B6 = D(() => {
32537
32543
  /* @__PURE__ */ r(J, { checked: n.default_value, onChange: (a) => n.setDefaultValue(a.currentTarget.checked), label: t("filter.widget.checkbox.default_checked") }),
32538
32544
  /* @__PURE__ */ r(vn, { filter: e })
32539
32545
  ] }),
32540
- /* @__PURE__ */ r(en, { label: t("filter.widget.checkbox.description"), value: n.description, onChange: n.setDescription, styles: {
32546
+ /* @__PURE__ */ r(tn, { label: t("filter.widget.checkbox.description"), value: n.description, onChange: n.setDescription, styles: {
32541
32547
  root: {
32542
32548
  flexGrow: 1,
32543
32549
  minHeight: "400px"
@@ -32635,7 +32641,7 @@ const B6 = D(() => {
32635
32641
  minHeight: "50px"
32636
32642
  }, children: [
32637
32643
  a.usingQuery && /* @__PURE__ */ u(F, { children: [
32638
- /* @__PURE__ */ r(nn, { backgroundOpacity: 0.8, color: "#000", sx: {
32644
+ /* @__PURE__ */ r(rn, { backgroundOpacity: 0.8, color: "#000", sx: {
32639
32645
  left: "-5px",
32640
32646
  right: "-5px",
32641
32647
  top: "-5px",
@@ -32650,7 +32656,7 @@ const B6 = D(() => {
32650
32656
  width: "100%"
32651
32657
  }, children: /* @__PURE__ */ r(k, { c: "white", size: "16px", children: n("filter.widget.common.using_query") }) })
32652
32658
  ] }),
32653
- l.length > 0 && /* @__PURE__ */ r(pn, { label: n("filter.widget.select.default_selection"), placeholder: n("filter.widget.select.no_default_selection"), data: l, value: [...a.default_value], onChange: a.setDefaultValue }),
32659
+ l.length > 0 && /* @__PURE__ */ r(Jt, { label: n("filter.widget.select.default_selection"), placeholder: n("filter.widget.select.no_default_selection"), data: l, value: [...a.default_value], onChange: a.setDefaultValue }),
32654
32660
  o.map((s, c) => /* @__PURE__ */ u(tt, { gap: 10, sx: {
32655
32661
  position: "relative"
32656
32662
  }, pr: "40px", children: [
@@ -32677,7 +32683,7 @@ const B6 = D(() => {
32677
32683
  /* @__PURE__ */ r(R, { label: n("filter.widget.common.or_fetch_options_from_datasource"), labelPosition: "center" }),
32678
32684
  /* @__PURE__ */ r(Kr, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
32679
32685
  /* @__PURE__ */ r(ne, { value: a.default_selection_count, onChange: a.setDefaultSelectionCount, label: n("filter.widget.common.default_selection_count") }),
32680
- /* @__PURE__ */ r(Vi, { config: a }),
32686
+ /* @__PURE__ */ r($i, { config: a }),
32681
32687
  /* @__PURE__ */ r(Jd, {})
32682
32688
  ] });
32683
32689
  }), Ho = {
@@ -32797,7 +32803,7 @@ const B6 = D(() => {
32797
32803
  minHeight: "50px"
32798
32804
  }, children: [
32799
32805
  n.usingQuery && /* @__PURE__ */ u(F, { children: [
32800
- /* @__PURE__ */ r(nn, { backgroundOpacity: 0.8, color: "#000", sx: {
32806
+ /* @__PURE__ */ r(rn, { backgroundOpacity: 0.8, color: "#000", sx: {
32801
32807
  left: "-5px",
32802
32808
  right: "-5px",
32803
32809
  top: "-5px",
@@ -32904,7 +32910,7 @@ const B6 = D(() => {
32904
32910
  } }),
32905
32911
  t.auto_submit_supported && /* @__PURE__ */ r(J, { label: n("filter.field.auto_submit"), checked: t.auto_submit, onChange: (s) => t.setAutoSubmit(s.currentTarget.checked), mt: 22 })
32906
32912
  ] }),
32907
- /* @__PURE__ */ r(pn, { label: n("filter.field.visible_in"), data: i.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
32913
+ /* @__PURE__ */ r(Jt, { label: n("filter.field.visible_in"), data: i.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
32908
32914
  /* @__PURE__ */ r(V, { label: n("common.key"), placeholder: n("filter.field.key_placeholder"), required: !0, value: t.key, onChange: (s) => {
32909
32915
  t.setKey(s.currentTarget.value);
32910
32916
  } }),
@@ -33091,7 +33097,7 @@ const B6 = D(() => {
33091
33097
  } = x(), {
33092
33098
  panel: t
33093
33099
  } = Ve();
33094
- return /* @__PURE__ */ r(en, { label: e("panel.panel_description"), value: t.description, onChange: t.setDescription, styles: {
33100
+ return /* @__PURE__ */ r(tn, { label: e("panel.panel_description"), value: t.description, onChange: t.setDescription, styles: {
33095
33101
  root: {
33096
33102
  flexGrow: 1
33097
33103
  }
@@ -33223,15 +33229,15 @@ function eu({
33223
33229
  const t = z(() => {
33224
33230
  if (!Array.isArray(e) || e.length === 0)
33225
33231
  return [];
33226
- const a = qa();
33232
+ const a = Fa();
33227
33233
  return Object.keys(e[0]).map((i) => a.accessor(i, {
33228
33234
  cell: (o) => o.getValue()
33229
33235
  }));
33230
- }, [e]), n = Fa({
33236
+ }, [e]), n = Na({
33231
33237
  data: e,
33232
33238
  columns: t,
33233
33239
  columnResizeMode: "onChange",
33234
- getCoreRowModel: Na()
33240
+ getCoreRowModel: Ba()
33235
33241
  });
33236
33242
  return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
33237
33243
  height: "5em"
@@ -33240,7 +33246,7 @@ function eu({
33240
33246
  width: i.getSize()
33241
33247
  }, children: [
33242
33248
  i.isPlaceholder ? null : Dn(i.column.columnDef.header, i.getContext()),
33243
- /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(La, {}) })
33249
+ /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Va, {}) })
33244
33250
  ] }, i.id)) }, a.id)) }),
33245
33251
  /* @__PURE__ */ r(w.Tbody, { children: n.getRowModel().rows.map((a) => /* @__PURE__ */ r(w.Tr, { children: a.getVisibleCells().map((i) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ze, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : Dn(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, a.id)) })
33246
33252
  ] }) });
@@ -33321,7 +33327,7 @@ const u4 = [{
33321
33327
  overflow: "auto",
33322
33328
  position: "relative"
33323
33329
  }, children: [
33324
- /* @__PURE__ */ r(rn, { visible: t, overlayProps: {
33330
+ /* @__PURE__ */ r(an, { visible: t, overlayProps: {
33325
33331
  blur: 2
33326
33332
  } }),
33327
33333
  /* @__PURE__ */ r(eu, { data: l })
@@ -33341,7 +33347,7 @@ const u4 = [{
33341
33347
  stateMessage: l
33342
33348
  } = a;
33343
33349
  return i || o ? /* @__PURE__ */ r(k, { mt: 10, c: "red", size: "md", ta: "center", ff: "monospace", children: i ?? o }) : l ? /* @__PURE__ */ r(k, { size: "sm", mt: 10, c: "gray", ta: "center", children: t(l) }) : null;
33344
- }), xa = D(({
33350
+ }), va = D(({
33345
33351
  id: e,
33346
33352
  moreActions: t,
33347
33353
  refreshOnMount: n
@@ -33396,10 +33402,10 @@ const u4 = [{
33396
33402
  /* @__PURE__ */ r(qu, { opened: o, onClose: () => l(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r(J.Group, { value: [...i.queryIDs], onChange: i.setQueryIDs, children: /* @__PURE__ */ r(T, { gap: "lg", children: a.queries.options.map((d) => /* @__PURE__ */ r(J, { label: d.label, value: d.value }, d.value)) }) }) }),
33397
33403
  /* @__PURE__ */ u(T, { gap: 6, children: [
33398
33404
  /* @__PURE__ */ r(_, { justify: "flex-start", children: /* @__PURE__ */ r(L, { variant: "light", size: "sm", leftSection: /* @__PURE__ */ r(wh, { size: 16 }), onClick: () => l(!0), children: t(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
33399
- c === 1 && /* @__PURE__ */ r(xa, { id: i.queryIDs[0], moreActions: /* @__PURE__ */ r(re, { label: t("query.open"), children: /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", onClick: () => s(i.queryIDs[0]), children: /* @__PURE__ */ r(sa, { size: 16 }) }) }) }),
33405
+ c === 1 && /* @__PURE__ */ r(va, { id: i.queryIDs[0], moreActions: /* @__PURE__ */ r(re, { label: t("query.open"), children: /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", onClick: () => s(i.queryIDs[0]), children: /* @__PURE__ */ r(ca, { size: 16 }) }) }) }),
33400
33406
  c > 1 && /* @__PURE__ */ u(S, { defaultValue: i.queryIDs[0], children: [
33401
33407
  /* @__PURE__ */ r(S.List, { children: i.queries.map((d) => /* @__PURE__ */ r(S.Tab, { value: d.id, children: d.name }, d.id)) }),
33402
- i.queries.map((d) => /* @__PURE__ */ r(S.Panel, { value: d.id, children: /* @__PURE__ */ r(xa, { id: d.id, moreActions: /* @__PURE__ */ r(re, { label: t("query.open"), children: /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", onClick: () => s(d.id), children: /* @__PURE__ */ r(sa, { size: 16 }) }) }) }) }, d.id))
33408
+ i.queries.map((d) => /* @__PURE__ */ r(S.Panel, { value: d.id, children: /* @__PURE__ */ r(va, { id: d.id, moreActions: /* @__PURE__ */ r(re, { label: t("query.open"), children: /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", onClick: () => s(d.id), children: /* @__PURE__ */ r(ca, { size: 16 }) }) }) }) }, d.id))
33403
33409
  ] })
33404
33410
  ] })
33405
33411
  ] });
@@ -33550,25 +33556,25 @@ const S4 = D(() => {
33550
33556
  const [l, {
33551
33557
  open: s,
33552
33558
  close: c
33553
- }] = an(!1), d = () => {
33559
+ }] = on(!1), d = () => {
33554
33560
  e.moveToView(t, i), c();
33555
33561
  };
33556
33562
  return /* @__PURE__ */ u(F, { children: [
33557
- /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftSection: /* @__PURE__ */ r(Ra, { size: 14 }), children: n("panel.settings.change_view") }),
33563
+ /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftSection: /* @__PURE__ */ r(Ea, { size: 14 }), children: n("panel.settings.change_view") }),
33558
33564
  /* @__PURE__ */ r(we, { opened: l, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ u(T, { sx: {
33559
33565
  maxHeight: "calc(100vh - 185px)",
33560
33566
  overflow: "hidden"
33561
33567
  }, children: [
33562
- /* @__PURE__ */ r(Ui.Group, { value: i, onChange: o, pb: 10, sx: {
33568
+ /* @__PURE__ */ r(Ki.Group, { value: i, onChange: o, pb: 10, sx: {
33563
33569
  flexGrow: 1,
33564
33570
  maxHeight: "calc(100vh - 185px - 30px)",
33565
33571
  overflow: "auto"
33566
- }, children: /* @__PURE__ */ r(T, { gap: "xs", children: a.views.options.map((h) => /* @__PURE__ */ r(Ui, { value: h.value, label: h.label }, h.value)) }) }),
33572
+ }, children: /* @__PURE__ */ r(T, { gap: "xs", children: a.views.options.map((h) => /* @__PURE__ */ r(Ki, { value: h.value, label: h.label }, h.value)) }) }),
33567
33573
  /* @__PURE__ */ u(_, { wrap: "nowrap", justify: "space-between", sx: {
33568
33574
  flexGrow: 0,
33569
33575
  flexShrink: 0
33570
33576
  }, children: [
33571
- /* @__PURE__ */ r(L, { size: "xs", color: "red", leftSection: /* @__PURE__ */ r(Ma, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
33577
+ /* @__PURE__ */ r(L, { size: "xs", color: "red", leftSection: /* @__PURE__ */ r(La, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
33572
33578
  /* @__PURE__ */ r(L, { size: "xs", color: "blue", leftSection: /* @__PURE__ */ r(me, { size: 14 }), onClick: d, disabled: i === t, children: n("common.actions.confirm") })
33573
33579
  ] })
33574
33580
  ] }) })
@@ -33602,7 +33608,7 @@ const S4 = D(() => {
33602
33608
  width: "100%"
33603
33609
  }, withCopyButton: !1, code: o }) })
33604
33610
  ] }) });
33605
- }), aa = {
33611
+ }), ia = {
33606
33612
  name: "new_var",
33607
33613
  size: "1rem",
33608
33614
  weight: "initial",
@@ -33643,10 +33649,10 @@ class z4 {
33643
33649
  }));
33644
33650
  }
33645
33651
  addNew() {
33646
- const t = this.panel.variables.filter((n) => n.name.startsWith(aa.name)).length;
33652
+ const t = this.panel.variables.filter((n) => n.name.startsWith(ia.name)).length;
33647
33653
  this.panel.addVariable(Pe({
33648
- ...aa,
33649
- name: `${aa.name}${t || ""}`
33654
+ ...ia,
33655
+ name: `${ia.name}${t || ""}`
33650
33656
  })), this.selected = nl(this.panel.variables);
33651
33657
  }
33652
33658
  select(t) {
@@ -33698,7 +33704,7 @@ const D4 = P.forwardRef(function({
33698
33704
  /* @__PURE__ */ r(V, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
33699
33705
  /* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
33700
33706
  ] }),
33701
- /* @__PURE__ */ r(pi, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
33707
+ /* @__PURE__ */ r(mi, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
33702
33708
  t.aggregation.type !== "custom" && /* @__PURE__ */ u(F, { children: [
33703
33709
  /* @__PURE__ */ r(R, { mt: "xl", mb: 0, label: o("numbro.format.label"), labelPosition: "center", variant: "dashed" }),
33704
33710
  /* @__PURE__ */ r(bt, { value: t.formatter, onChange: (s) => l("formatter", s) })
@@ -33730,7 +33736,7 @@ const M4 = D(({
33730
33736
  const {
33731
33737
  t
33732
33738
  } = x();
33733
- return /* @__PURE__ */ r(nn, { color: "#fff", backgroundOpacity: 1, sx: {
33739
+ return /* @__PURE__ */ r(rn, { color: "#fff", backgroundOpacity: 1, sx: {
33734
33740
  position: "absolute"
33735
33741
  }, children: /* @__PURE__ */ r(L, { variant: "light", size: "xs", leftSection: /* @__PURE__ */ r(lt, { size: 16 }), onClick: e.addNew, sx: {
33736
33742
  flexGrow: 0,
@@ -33772,7 +33778,7 @@ const M4 = D(({
33772
33778
  padding: 10,
33773
33779
  overflow: "auto"
33774
33780
  }
33775
- }, ia = ({
33781
+ }, oa = ({
33776
33782
  children: e
33777
33783
  }) => /* @__PURE__ */ u(_, { wrap: "nowrap", grow: !0, justify: "flex-start", gap: 20, sx: {
33778
33784
  width: "100%",
@@ -33846,21 +33852,21 @@ const A4 = D(({
33846
33852
  ] }),
33847
33853
  /* @__PURE__ */ u(S, { value: o, onChange: g, keepMounted: !1, styles: V4, children: [
33848
33854
  /* @__PURE__ */ u(S.List, { children: [
33849
- /* @__PURE__ */ r(S.Tab, { value: "Data", leftSection: /* @__PURE__ */ r(Jt, { size: 14 }), disabled: d, children: t("data.label") }),
33850
- /* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r(Va, { size: 14 }), children: t("panel.label") }),
33855
+ /* @__PURE__ */ r(S.Tab, { value: "Data", leftSection: /* @__PURE__ */ r(en, { size: 14 }), disabled: d, children: t("data.label") }),
33856
+ /* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r($a, { size: 14 }), children: t("panel.label") }),
33851
33857
  /* @__PURE__ */ r(S.Tab, { value: "Variables", leftSection: /* @__PURE__ */ r($n, { size: 14 }), disabled: h, children: /* @__PURE__ */ r(re, { label: t("data.requires_data"), disabled: !h, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r(k, { size: "sm", children: t("panel.variable.labels") }) }) }),
33852
33858
  /* @__PURE__ */ r(S.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ r(wl, { size: 14 }), disabled: h, children: /* @__PURE__ */ r(re, { label: t("data.requires_data"), disabled: !h, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ r(k, { size: "sm", children: t("visualization.label") }) }) }),
33853
- /* @__PURE__ */ r(S.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ r($a, { size: 14 }), children: t("interactions.label") })
33859
+ /* @__PURE__ */ r(S.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ r(Aa, { size: 14 }), children: t("interactions.label") })
33854
33860
  ] }),
33855
33861
  /* @__PURE__ */ u(S.Panel, { value: "Data", children: [
33856
- /* @__PURE__ */ r(rn, { visible: d, transitionProps: {
33862
+ /* @__PURE__ */ r(an, { visible: d, transitionProps: {
33857
33863
  exitDuration: 0
33858
33864
  } }),
33859
33865
  /* @__PURE__ */ r(f4, {})
33860
33866
  ] }),
33861
- /* @__PURE__ */ r(S.Panel, { value: "Panel", children: /* @__PURE__ */ r(ia, { children: /* @__PURE__ */ r(c4, {}) }) }),
33862
- /* @__PURE__ */ r(S.Panel, { value: "Variables", children: /* @__PURE__ */ r(ia, { children: /* @__PURE__ */ r(L4, {}) }) }),
33863
- /* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(ia, { children: /* @__PURE__ */ r(S4, {}) }) }) }),
33867
+ /* @__PURE__ */ r(S.Panel, { value: "Panel", children: /* @__PURE__ */ r(oa, { children: /* @__PURE__ */ r(c4, {}) }) }),
33868
+ /* @__PURE__ */ r(S.Panel, { value: "Variables", children: /* @__PURE__ */ r(oa, { children: /* @__PURE__ */ r(L4, {}) }) }),
33869
+ /* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(oa, { children: /* @__PURE__ */ r(S4, {}) }) }) }),
33864
33870
  /* @__PURE__ */ r(S.Panel, { value: "Interactions", children: /* @__PURE__ */ r(ze, { children: /* @__PURE__ */ r(Xf, {}) }) })
33865
33871
  ] })
33866
33872
  ] });
@@ -34027,8 +34033,8 @@ const A4 = D(({
34027
34033
  spacing: i = 16,
34028
34034
  pl: o = 0
34029
34035
  }) => /* @__PURE__ */ u(T, { gap: i, mt: 6, pl: o, children: [
34030
- Array.from(new Array(a - 1), (l, s) => /* @__PURE__ */ r(Ki, { width: e, height: n, radius: "xs" }, s)),
34031
- /* @__PURE__ */ r(Ki, { width: t, height: n, radius: "xs" })
34036
+ Array.from(new Array(a - 1), (l, s) => /* @__PURE__ */ r(Yi, { width: e, height: n, radius: "xs" }, s)),
34037
+ /* @__PURE__ */ r(Yi, { width: t, height: n, radius: "xs" })
34032
34038
  ] }), Qn = ({
34033
34039
  value: e
34034
34040
  }) => e === null || e === "" ? null : /* @__PURE__ */ r(re, { label: e, disabled: !e, multiline: !0, zIndex: 340, children: /* @__PURE__ */ r(te, { variant: "subtle", children: /* @__PURE__ */ r(Re, { size: 14 }) }) }), q4 = ({
@@ -34233,7 +34239,7 @@ const G4 = D(({
34233
34239
  ".mantine-NavLink-label": {
34234
34240
  fontFamily: "monospace"
34235
34241
  }
34236
- }, children: Object.entries(n.data).map(([a, i]) => /* @__PURE__ */ r(la, { label: a, title: a, leftSection: /* @__PURE__ */ r(Jt, { size: 14 }), defaultOpened: t.table_schema === a, pl: 0, childrenOffset: 14, children: i.map((o) => /* @__PURE__ */ r(la, { label: o.table_name, title: o.table_name, leftSection: /* @__PURE__ */ r(H4, { table_type: o.table_type }), onClick: () => {
34242
+ }, children: Object.entries(n.data).map(([a, i]) => /* @__PURE__ */ r(sa, { label: a, title: a, leftSection: /* @__PURE__ */ r(en, { size: 14 }), defaultOpened: t.table_schema === a, pl: 0, childrenOffset: 14, children: i.map((o) => /* @__PURE__ */ r(sa, { label: o.table_name, title: o.table_name, leftSection: /* @__PURE__ */ r(H4, { table_type: o.table_type }), onClick: () => {
34237
34243
  t.setKeywords(a, o.table_name);
34238
34244
  }, active: t.table_name === o.table_name }, o.table_name)) }, a)) });
34239
34245
  }), W4 = ({
@@ -34243,7 +34249,7 @@ const G4 = D(({
34243
34249
  height: "100%",
34244
34250
  overflow: "hidden",
34245
34251
  position: "relative"
34246
- }, children: /* @__PURE__ */ r(rn, { visible: e }) }), U4 = [{
34252
+ }, children: /* @__PURE__ */ r(an, { visible: e }) }), U4 = [{
34247
34253
  label: "10",
34248
34254
  value: "10"
34249
34255
  }, {
@@ -34300,7 +34306,7 @@ const G4 = D(({
34300
34306
  overflow: "auto",
34301
34307
  position: "relative"
34302
34308
  }, children: [
34303
- /* @__PURE__ */ r(rn, { visible: t.loading, overlayProps: {
34309
+ /* @__PURE__ */ r(an, { visible: t.loading, overlayProps: {
34304
34310
  blur: 2
34305
34311
  } }),
34306
34312
  /* @__PURE__ */ r(eu, { data: t.data })
@@ -34337,7 +34343,7 @@ const G4 = D(({
34337
34343
  /* @__PURE__ */ u(S, { defaultValue: "structure", styles: Z4, children: [
34338
34344
  /* @__PURE__ */ u(S.List, { children: [
34339
34345
  /* @__PURE__ */ r(S.Tab, { value: "structure", leftSection: /* @__PURE__ */ r(Ch, { size: 14 }), children: t("data_source.table_structure_short") }),
34340
- /* @__PURE__ */ r(S.Tab, { value: "data", leftSection: /* @__PURE__ */ r(Jt, { size: 14 }), children: t("data.label") })
34346
+ /* @__PURE__ */ r(S.Tab, { value: "data", leftSection: /* @__PURE__ */ r(en, { size: 14 }), children: t("data.label") })
34341
34347
  ] }),
34342
34348
  /* @__PURE__ */ r(S.Panel, { value: "structure", children: /* @__PURE__ */ r(Q4, { dataSource: e }) }),
34343
34349
  /* @__PURE__ */ r(S.Panel, { value: "data", sx: {
@@ -34438,7 +34444,7 @@ const G4 = D(({
34438
34444
  } = x(), a = de(), {
34439
34445
  data: i = [],
34440
34446
  loading: o
34441
- } = hn(Pi, {
34447
+ } = pn(Ri, {
34442
34448
  refreshDeps: []
34443
34449
  }, []), l = z(() => {
34444
34450
  const h = i.map((p) => ({
@@ -34508,8 +34514,9 @@ const G4 = D(({
34508
34514
  } }),
34509
34515
  /* @__PURE__ */ r(au, { queryModel: e }),
34510
34516
  /* @__PURE__ */ r(R, { mt: 10, mb: -10, variant: "dashed", label: t("query.conditions"), labelPosition: "center" }),
34511
- /* @__PURE__ */ r(pn, { label: t("query.run_by_condition.label"), description: t("query.run_by_condition.description"), placeholder: t("query.run_by_condition.unset"), data: i, value: [...e.run_by], onChange: e.setRunBy, renderOption: ro, maxDropdownHeight: 500 }),
34512
- e.typedAsHTTP && /* @__PURE__ */ r(pn, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: i, value: [...e.config.react_to], onChange: e.config.setReactTo, renderOption: ro, maxDropdownHeight: 500 }),
34517
+ /* @__PURE__ */ r(Jt, { label: t("query.run_by_condition.label"), description: t("query.run_by_condition.description"), placeholder: t("query.run_by_condition.unset"), data: i, value: [...e.run_by], onChange: e.setRunBy, renderOption: ta, maxDropdownHeight: 500 }),
34518
+ e.typedAsHTTP && /* @__PURE__ */ r(Jt, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: i, value: [...e.config.react_to], onChange: e.config.setReactTo, renderOption: ta, maxDropdownHeight: 500 }),
34519
+ e.isTransform && /* @__PURE__ */ r(Jt, { label: t("query.re_run_condition.label"), placeholder: t("query.re_run_condition.label"), data: i, value: [...e.config.react_to], onChange: e.config.setReactTo, renderOption: ta, maxDropdownHeight: 500 }),
34513
34520
  /* @__PURE__ */ r(R, { mt: 20, mb: 10, variant: "dashed" }),
34514
34521
  /* @__PURE__ */ r(O4, { queryModel: e })
34515
34522
  ] }) });
@@ -34583,7 +34590,7 @@ WHERE
34583
34590
  /* @__PURE__ */ r(aD, {})
34584
34591
  ] }) })
34585
34592
  ] }) });
34586
- }), Bi = D(() => {
34593
+ }), ji = D(() => {
34587
34594
  const {
34588
34595
  t: e
34589
34596
  } = x(), [t, n] = Q(!1);
@@ -34612,7 +34619,7 @@ WHERE
34612
34619
  /* @__PURE__ */ u(S.List, { children: [
34613
34620
  /* @__PURE__ */ r(S.Tab, { value: "pre_process", children: t("query.build_request") }),
34614
34621
  /* @__PURE__ */ r(S.Tab, { value: "post_process", children: t("query.process_result") }),
34615
- /* @__PURE__ */ r(Bi, {})
34622
+ /* @__PURE__ */ r(ji, {})
34616
34623
  ] }),
34617
34624
  /* @__PURE__ */ r(S.Panel, { value: "pre_process", sx: {
34618
34625
  position: "relative"
@@ -34716,7 +34723,7 @@ WHERE
34716
34723
  /* @__PURE__ */ r(L, { color: "green", size: "xs", onClick: o, disabled: !c, leftSection: /* @__PURE__ */ r(me, { size: 16 }), children: t("common.actions.save_changes") })
34717
34724
  ] })
34718
34725
  ] }),
34719
- /* @__PURE__ */ r(Xa, { height: "100%", value: a, onChange: i, theme: "sql-dark", defaultLanguage: "sql" })
34726
+ /* @__PURE__ */ r(Za, { height: "100%", value: a, onChange: i, theme: "sql-dark", defaultLanguage: "sql" })
34720
34727
  ] });
34721
34728
  }), dD = ({
34722
34729
  value: e,
@@ -34734,7 +34741,7 @@ WHERE
34734
34741
  } }), uD = D(({
34735
34742
  value: e
34736
34743
  }) => {
34737
- const n = Te().payloadForSQL, a = P.useMemo(() => ei(e, n), [e, n]);
34744
+ const n = Te().payloadForSQL, a = P.useMemo(() => ti(e, n), [e, n]);
34738
34745
  return /* @__PURE__ */ r(dD, { height: "100%", value: a });
34739
34746
  }), Ko = {
34740
34747
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -34764,7 +34771,7 @@ WHERE
34764
34771
  /* @__PURE__ */ r(S.Tab, { value: "Preview", children: t("query.preview_sql") }),
34765
34772
  /* @__PURE__ */ r(S.Tab, { value: "pre_process", children: t("query.process_request") }),
34766
34773
  /* @__PURE__ */ r(S.Tab, { value: "post_process", children: t("query.process_result") }),
34767
- /* @__PURE__ */ r(Bi, {}),
34774
+ /* @__PURE__ */ r(ji, {}),
34768
34775
  e.datasource && /* @__PURE__ */ r(nu, { dataSource: e.datasource })
34769
34776
  ] }),
34770
34777
  /* @__PURE__ */ r(S.Panel, { value: "Edit", sx: {
@@ -34793,7 +34800,7 @@ WHERE
34793
34800
  height: "100%"
34794
34801
  }, children: [
34795
34802
  /* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.pick_queries") }),
34796
- /* @__PURE__ */ r(pn, { data: n.queries.optionsWithoutTransform, value: [...a.dep_query_ids], onChange: a.setDependantQueryIDs, maxDropdownHeight: 800 }),
34803
+ /* @__PURE__ */ r(Jt, { data: n.queries.optionsWithoutTransform, value: [...a.dep_query_ids], onChange: a.setDependantQueryIDs, maxDropdownHeight: 800 }),
34797
34804
  /* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.write_function") }),
34798
34805
  /* @__PURE__ */ r($, { sx: {
34799
34806
  flexGrow: 1
@@ -34837,7 +34844,7 @@ WHERE
34837
34844
  /* @__PURE__ */ r(S.Panel, { value: "Data", sx: {
34838
34845
  ...Nn,
34839
34846
  overflow: "hidden"
34840
- }, children: /* @__PURE__ */ r(xa, { id: e.id, moreActions: null, refreshOnMount: !0 }) }),
34847
+ }, children: /* @__PURE__ */ r(va, { id: e.id, moreActions: null, refreshOnMount: !0 }) }),
34841
34848
  /* @__PURE__ */ r(S.Panel, { value: "Usage", py: "sm", px: "md", sx: {
34842
34849
  ...Nn,
34843
34850
  overflow: "hidden"
@@ -34948,15 +34955,15 @@ function vD({
34948
34955
  const t = z(() => {
34949
34956
  if (!Array.isArray(e) || e.length === 0)
34950
34957
  return [];
34951
- const a = qa();
34958
+ const a = Fa();
34952
34959
  return Object.keys(e[0]).map((i) => a.accessor(i, {
34953
34960
  cell: (o) => o.getValue()
34954
34961
  }));
34955
- }, [e]), n = Fa({
34962
+ }, [e]), n = Na({
34956
34963
  data: e,
34957
34964
  columns: t,
34958
34965
  columnResizeMode: "onChange",
34959
- getCoreRowModel: Na()
34966
+ getCoreRowModel: Ba()
34960
34967
  });
34961
34968
  return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
34962
34969
  height: "5em"
@@ -34967,7 +34974,7 @@ function vD({
34967
34974
  width: i.getSize()
34968
34975
  }, children: [
34969
34976
  i.isPlaceholder ? null : Dn(i.column.columnDef.header, i.getContext()),
34970
- /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(La, {}) })
34977
+ /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Va, {}) })
34971
34978
  ] }, i.id)) }, a.id)) }),
34972
34979
  /* @__PURE__ */ r(w.Tbody, { children: n.getRowModel().rows.map((a) => /* @__PURE__ */ r(w.Tr, { children: a.getVisibleCells().map((i) => /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ze, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : Dn(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, a.id)) })
34973
34980
  ] }) });
@@ -35057,7 +35064,7 @@ const wD = [{
35057
35064
  overflow: "auto",
35058
35065
  position: "relative"
35059
35066
  }, children: [
35060
- /* @__PURE__ */ r(rn, { visible: t, overlayProps: {
35067
+ /* @__PURE__ */ r(an, { visible: t, overlayProps: {
35061
35068
  blur: 2
35062
35069
  } }),
35063
35070
  /* @__PURE__ */ r(vD, { data: l })
@@ -35162,7 +35169,7 @@ const wD = [{
35162
35169
  ] }), $D = () => /* @__PURE__ */ u("svg", { width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
35163
35170
  /* @__PURE__ */ r("g", { clipPath: "url(#clip0_567_6919)", children: /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M7.00001 1.02051C7.29533 1.02051 7.53473 1.25991 7.53473 1.55523V2.99492L11.3486 5.17429C11.5152 5.2695 11.6181 5.44667 11.6181 5.63856V9.97475L13.0725 10.702C13.3366 10.834 13.4437 11.1552 13.3116 11.4194C13.1795 11.6835 12.8583 11.7906 12.5942 11.6585L11.1002 10.9115L7.26531 13.1028C7.10091 13.1968 6.8991 13.1968 6.73471 13.1028L2.89985 10.9115L1.40581 11.6585C1.14167 11.7906 0.820476 11.6835 0.688405 11.4194C0.556335 11.1552 0.663399 10.834 0.92754 10.702L2.38195 9.97475V5.63856C2.38195 5.44667 2.48477 5.2695 2.65138 5.17429L6.46529 2.99492V1.55523C6.46529 1.25991 6.70469 1.02051 7.00001 1.02051ZM7.00001 3.9211L3.99444 5.63856L7.00001 7.35603L10.0056 5.63856L7.00001 3.9211ZM10.5486 6.55999L7.53473 8.28221V11.7171L10.5486 9.99492V6.55999ZM6.46529 11.7171V8.28221L3.4514 6.55999V9.99492L6.46529 11.7171Z", fill: "#3D3E45" }) }),
35164
35171
  /* @__PURE__ */ r("defs", { children: /* @__PURE__ */ r("clipPath", { id: "clip0_567_6919", children: /* @__PURE__ */ r("rect", { width: "14", height: "14", fill: "white" }) }) })
35165
- ] }), ji = ({
35172
+ ] }), Qi = ({
35166
35173
  type: e
35167
35174
  }) => {
35168
35175
  switch (e) {
@@ -35242,7 +35249,7 @@ const wD = [{
35242
35249
  const a = [];
35243
35250
  return t && a.push("sub-option"), n && a.push("disabled"), /* @__PURE__ */ r(Bt.Option, { value: e.value, className: a.join(" "), disabled: n, children: /* @__PURE__ */ u(T, { gap: 1, children: [
35244
35251
  /* @__PURE__ */ u(_, { gap: 4, children: [
35245
- /* @__PURE__ */ r(ji, { type: e.dataType }),
35252
+ /* @__PURE__ */ r(Qi, { type: e.dataType }),
35246
35253
  /* @__PURE__ */ r(k, { size: "xs", children: e.label })
35247
35254
  ] }),
35248
35255
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", pl: 18, children: e.description })
@@ -35255,7 +35262,7 @@ const wD = [{
35255
35262
  }) => {
35256
35263
  const i = e.metricDetail, o = e.metrics.loading || i.loading, l = i.error, s = i.filterColOptions, c = Fu({
35257
35264
  onDropdownClose: () => c.resetSelectedOption()
35258
- }), d = z(() => o ? /* @__PURE__ */ r(Da, { size: "xs" }) : t ? /* @__PURE__ */ r(vt, { size: "xs", onClick: () => n(null) }) : /* @__PURE__ */ r(Bt.Chevron, { size: "xs" }), [o, t]), h = /* @__PURE__ */ r(Nu, { component: "button", type: "button", variant: "unstyled", size: "xs", pointer: !0, rightSection: d, rightSectionPointerEvents: !o && t ? "all" : "none", onClick: () => c.toggleDropdown(), disabled: o || s.length === 0, styles: PD, error: !!l, children: t || /* @__PURE__ */ r(Bu.Placeholder, { children: "选择维度" }) });
35265
+ }), d = z(() => o ? /* @__PURE__ */ r(Ia, { size: "xs" }) : t ? /* @__PURE__ */ r(vt, { size: "xs", onClick: () => n(null) }) : /* @__PURE__ */ r(Bt.Chevron, { size: "xs" }), [o, t]), h = /* @__PURE__ */ r(Nu, { component: "button", type: "button", variant: "unstyled", size: "xs", pointer: !0, rightSection: d, rightSectionPointerEvents: !o && t ? "all" : "none", onClick: () => c.toggleDropdown(), disabled: o || s.length === 0, styles: PD, error: !!l, children: t || /* @__PURE__ */ r(Bu.Placeholder, { children: "选择维度" }) });
35259
35266
  return /* @__PURE__ */ u(Bt, { store: c, onOptionSubmit: (p) => {
35260
35267
  n(p), c.closeDropdown();
35261
35268
  }, styles: AD, children: [
@@ -35268,7 +35275,7 @@ const wD = [{
35268
35275
  }) => /* @__PURE__ */ r(Bt.Group, { label: p, children: g.map((b) => {
35269
35276
  var y;
35270
35277
  return "group" in b ? /* @__PURE__ */ r(Bt.Group, { className: "dimension-group", label: /* @__PURE__ */ u(_, { gap: 4, children: [
35271
- /* @__PURE__ */ r(ji, { type: "dimension" }),
35278
+ /* @__PURE__ */ r(Qi, { type: "dimension" }),
35272
35279
  /* @__PURE__ */ r(k, { size: "sm", children: b.group }),
35273
35280
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", children: b.description })
35274
35281
  ] }), children: (y = b.items) == null ? void 0 : y.map((v) => Zo(v, !0, a.has(v.value))) }, b.group) : Zo(b, !1, a.has(b.value));
@@ -35374,7 +35381,7 @@ const wD = [{
35374
35381
  clearable: !0
35375
35382
  }
35376
35383
  );
35377
- }), va = D(({
35384
+ }), wa = D(({
35378
35385
  variable: e
35379
35386
  }) => {
35380
35387
  const t = de();
@@ -35420,7 +35427,7 @@ const wD = [{
35420
35427
  t.filters.map((i) => /* @__PURE__ */ u(w.Tr, { children: [
35421
35428
  /* @__PURE__ */ r(w.Td, { pr: 0, children: /* @__PURE__ */ r(Jo, { mmInfo: a, value: i.dimension, onChange: i.setDimension, usedKeys: t.usedFilterDimensionKeys }) }),
35422
35429
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(_, { justify: "flex-start", grow: !0, gap: 0, w: "100%", children: [
35423
- /* @__PURE__ */ r(va, { variable: i.variable }),
35430
+ /* @__PURE__ */ r(wa, { variable: i.variable }),
35424
35431
  /* @__PURE__ */ r(vr, { queryModel: e, value: i.variable, onChange: i.setVariable, usedKeys: t.usedFilterVariableSet })
35425
35432
  ] }) }),
35426
35433
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(J, { size: "xs", checked: e.keyInRunBy(i.variable), onChange: (o) => e.changeRunByRecord(i.variable, o.currentTarget.checked), color: "red" }) })
@@ -35491,7 +35498,7 @@ const wD = [{
35491
35498
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", ff: "monospace", children: (o == null ? void 0 : o.name) ?? null })
35492
35499
  ] }) }),
35493
35500
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(_, { justify: "flex-start", gap: 0, grow: !0, children: [
35494
- /* @__PURE__ */ r(va, { variable: t.timeQuery.range_variable }),
35501
+ /* @__PURE__ */ r(wa, { variable: t.timeQuery.range_variable }),
35495
35502
  /* @__PURE__ */ r(vr, { queryModel: e, value: t.timeQuery.range_variable, onChange: t.setRangeVariable, usedKeys: t.usedTimeQueryVariableSet })
35496
35503
  ] }) }),
35497
35504
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(el, { queryModel: e, variable: t.timeQuery.range_variable }) })
@@ -35499,7 +35506,7 @@ const wD = [{
35499
35506
  /* @__PURE__ */ u(w.Tr, { children: [
35500
35507
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(k, { size: "xs", children: "步长" }) }),
35501
35508
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(_, { justify: "flex-start", gap: 0, grow: !0, children: [
35502
- /* @__PURE__ */ r(va, { variable: t.timeQuery.unit_variable }),
35509
+ /* @__PURE__ */ r(wa, { variable: t.timeQuery.unit_variable }),
35503
35510
  /* @__PURE__ */ r(vr, { queryModel: e, value: t.timeQuery.unit_variable, onChange: t.setUnitVariable, usedKeys: t.usedTimeQueryVariableSet })
35504
35511
  ] }) }),
35505
35512
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(el, { queryModel: e, variable: t.timeQuery.unit_variable }) })
@@ -35549,7 +35556,7 @@ const wD = [{
35549
35556
  }
35550
35557
  }, children: [
35551
35558
  /* @__PURE__ */ u(_, { gap: 4, children: [
35552
- /* @__PURE__ */ r(ji, { type: t.dataType }),
35559
+ /* @__PURE__ */ r(Qi, { type: t.dataType }),
35553
35560
  /* @__PURE__ */ r(k, { size: "xs", children: t.label })
35554
35561
  ] }),
35555
35562
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", pl: 18, children: t.description })
@@ -35565,7 +35572,7 @@ const wD = [{
35565
35572
  }) : h.push(p.value);
35566
35573
  }), t.setGroupBys(h);
35567
35574
  };
35568
- return /* @__PURE__ */ r(pn, { size: "sm", label: "分组聚合维度", description: "指标在查询时按照哪些维度进行聚合计算。最多支持两个维度的聚合计算。若选择按时间序列展示,则仅可选择一个聚合维度。", data: l, searchable: !0, styles: jD, renderOption: QD, rightSection: o ? /* @__PURE__ */ r(Da, { size: "xs" }) : null, value: [...t.groupByValues], onChange: s, maxValues: t.timeQuery.enabled ? 1 : 2, placeholder: t.timeQuery.enabled ? "仅可选一个维度" : "最多选两个维度", disabled: o });
35575
+ return /* @__PURE__ */ r(Jt, { size: "sm", label: "分组聚合维度", description: "指标在查询时按照哪些维度进行聚合计算。最多支持两个维度的聚合计算。若选择按时间序列展示,则仅可选择一个聚合维度。", data: l, searchable: !0, styles: jD, renderOption: QD, rightSection: o ? /* @__PURE__ */ r(Ia, { size: "xs" }) : null, value: [...t.groupByValues], onChange: s, maxValues: t.timeQuery.enabled ? 1 : 2, placeholder: t.timeQuery.enabled ? "仅可选一个维度" : "最多选两个维度", disabled: o });
35569
35576
  }), GD = D(({
35570
35577
  queryModel: e
35571
35578
  }) => {
@@ -35578,7 +35585,7 @@ const wD = [{
35578
35585
  (i.has(l) || o.has(l)) && a.push(l);
35579
35586
  }), e.setRunBy(a);
35580
35587
  }, [t.usedFilterVariableSet, t.usedTimeQueryVariableSet, e.run_by]), /* @__PURE__ */ u(T, { gap: 16, pos: "relative", children: [
35581
- !n && /* @__PURE__ */ r(nn, { color: "#fff", backgroundOpacity: 0.5, blur: 3, children: /* @__PURE__ */ r(qt, { h: "100%", children: /* @__PURE__ */ r(k, { size: "sm", c: "black", children: "请先选择指标" }) }) }),
35588
+ !n && /* @__PURE__ */ r(rn, { color: "#fff", backgroundOpacity: 0.5, blur: 3, children: /* @__PURE__ */ r(qt, { h: "100%", children: /* @__PURE__ */ r(k, { size: "sm", c: "black", children: "请先选择指标" }) }) }),
35582
35589
  /* @__PURE__ */ r(OD, { queryModel: e }),
35583
35590
  /* @__PURE__ */ r(BD, { queryModel: e }),
35584
35591
  /* @__PURE__ */ r(HD, { queryModel: e })
@@ -35679,7 +35686,7 @@ const wD = [{
35679
35686
  root: {
35680
35687
  flexGrow: 1
35681
35688
  }
35682
- }, maxDropdownHeight: 500, value: t.id, onChange: l, rightSection: c ? /* @__PURE__ */ r(Da, { size: "xs" }) : null }),
35689
+ }, maxDropdownHeight: 500, value: t.id, onChange: l, rightSection: c ? /* @__PURE__ */ r(Ia, { size: "xs" }) : null }),
35683
35690
  /* @__PURE__ */ r(re, { label: "跳转到指标明细页查看详情。", disabled: c, children: /* @__PURE__ */ r(Hn, { size: "md", variant: "subtle", mb: 2, href: s, target: "_blank", underline: "never", children: /* @__PURE__ */ r(fD, { width: 14, height: 14 }) }) })
35684
35691
  ] }) });
35685
35692
  }), JD = D(({
@@ -35740,8 +35747,8 @@ const wD = [{
35740
35747
  }), tI = D(({
35741
35748
  value: e
35742
35749
  }) => {
35743
- const n = Te().payloadForSQL, a = z(() => ei(e, n), [e, n]);
35744
- return /* @__PURE__ */ r(Xa, { height: "100%", value: a });
35750
+ const n = Te().payloadForSQL, a = z(() => ti(e, n), [e, n]);
35751
+ return /* @__PURE__ */ r(Za, { height: "100%", value: a });
35745
35752
  }), nI = D(({
35746
35753
  item: e,
35747
35754
  remove: t,
@@ -35798,14 +35805,14 @@ const wD = [{
35798
35805
  }, children: [
35799
35806
  /* @__PURE__ */ r(S.Tab, { value: "SQL", children: a("sql_snippet.edit_snippet") }),
35800
35807
  /* @__PURE__ */ r(S.Tab, { value: "Preview", children: a("sql_snippet.preview_snippet") }),
35801
- /* @__PURE__ */ r(Bi, {}),
35808
+ /* @__PURE__ */ r(ji, {}),
35802
35809
  /* @__PURE__ */ r(te, { color: "blue", variant: "filled", onClick: b, disabled: !y, sx: {
35803
35810
  position: "absolute",
35804
35811
  top: 0,
35805
35812
  right: 10
35806
35813
  }, children: /* @__PURE__ */ r(me, { size: 18 }) })
35807
35814
  ] }),
35808
- /* @__PURE__ */ r(S.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r(Xa, { height: "100%", value: p, onChange: g, defaultLanguage: "sql", theme: "sql-dark" }) }),
35815
+ /* @__PURE__ */ r(S.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r(Za, { height: "100%", value: p, onChange: g, defaultLanguage: "sql", theme: "sql-dark" }) }),
35809
35816
  /* @__PURE__ */ r(S.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r(tI, { value: p }) })
35810
35817
  ] })
35811
35818
  ] });
@@ -35965,7 +35972,7 @@ const wD = [{
35965
35972
  }) => /* @__PURE__ */ u($, { sx: {
35966
35973
  position: "relative"
35967
35974
  }, children: [
35968
- e && /* @__PURE__ */ r(nn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
35975
+ e && /* @__PURE__ */ r(rn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
35969
35976
  /* @__PURE__ */ r(Ft, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (i) => {
35970
35977
  i && n(i);
35971
35978
  }, theme: "vs-dark", options: {
@@ -35983,7 +35990,7 @@ const wD = [{
35983
35990
  } = x(), [a, {
35984
35991
  setTrue: i,
35985
35992
  setFalse: o
35986
- }] = De(), [l, s] = Q(e ?? ba), c = (b) => {
35993
+ }] = De(), [l, s] = Q(e ?? ya), c = (b) => {
35987
35994
  s({
35988
35995
  ...l,
35989
35996
  enabled: b
@@ -36006,7 +36013,7 @@ const wD = [{
36006
36013
  func_content: b
36007
36014
  }));
36008
36015
  }, g = () => {
36009
- p(ba.func_content);
36016
+ p(ya.func_content);
36010
36017
  };
36011
36018
  return /* @__PURE__ */ u(F, { children: [
36012
36019
  /* @__PURE__ */ r(te, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: i, sx: {
@@ -36129,7 +36136,7 @@ const wD = [{
36129
36136
  height: "100%"
36130
36137
  }, p: "sm", children: /* @__PURE__ */ r(iu, {}) })), mI = D(() => {
36131
36138
  const e = de().editor, t = e.path;
36132
- return zT(t) ? /* @__PURE__ */ r(pI, {}) : TT(t) ? /* @__PURE__ */ r(r4, {}) : DT(t) ? /* @__PURE__ */ r(n4, {}) : IT(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(t4, { id: t[1] }) }) : MT(t) ? /* @__PURE__ */ r(aI, {}) : LT(t) ? /* @__PURE__ */ r(rI, { id: t[1] }) : $T(t) ? /* @__PURE__ */ r(R4, {}) : VT(t) ? /* @__PURE__ */ r(eI, { id: t[1] }) : AT(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(hI, { id: t[1] }) }) : _a(t) ? /* @__PURE__ */ r(P4, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r($, { children: e.path });
36139
+ return zT(t) ? /* @__PURE__ */ r(pI, {}) : TT(t) ? /* @__PURE__ */ r(r4, {}) : DT(t) ? /* @__PURE__ */ r(n4, {}) : IT(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(t4, { id: t[1] }) }) : MT(t) ? /* @__PURE__ */ r(aI, {}) : LT(t) ? /* @__PURE__ */ r(rI, { id: t[1] }) : $T(t) ? /* @__PURE__ */ r(R4, {}) : VT(t) ? /* @__PURE__ */ r(eI, { id: t[1] }) : AT(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(hI, { id: t[1] }) }) : xa(t) ? /* @__PURE__ */ r(P4, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r($, { children: e.path });
36133
36140
  }), gI = D(() => /* @__PURE__ */ r(mI, {})), fI = D(() => {
36134
36141
  const {
36135
36142
  t: e
@@ -36276,7 +36283,7 @@ const wD = [{
36276
36283
  } = x(), n = de().editor, a = n.isOptionActive, i = a(n.path, e), o = n.isOptionOpened, l = n.navigate, s = o(e), [c, d] = Q(s);
36277
36284
  return N(() => {
36278
36285
  d(s);
36279
- }, [s]), /* @__PURE__ */ r(la, { active: i, defaultOpened: s, opened: c, onChange: d, label: t(e.label), onClick: () => l(e), leftSection: e.Icon ? /* @__PURE__ */ r(e.Icon, { size: 18 }) : null, children: (h = e.children) == null ? void 0 : h.map((p) => p._type === "ACTION" ? /* @__PURE__ */ r(CI, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ r(su, { option: p }, p.value)) }, e.label);
36286
+ }, [s]), /* @__PURE__ */ r(sa, { active: i, defaultOpened: s, opened: c, onChange: d, label: t(e.label), onClick: () => l(e), leftSection: e.Icon ? /* @__PURE__ */ r(e.Icon, { size: 18 }) : null, children: (h = e.children) == null ? void 0 : h.map((p) => p._type === "ACTION" ? /* @__PURE__ */ r(CI, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ r(su, { option: p }, p.value)) }, e.label);
36280
36287
  }), kI = D(() => {
36281
36288
  const e = de();
36282
36289
  return /* @__PURE__ */ r($, { sx: {
@@ -36304,7 +36311,7 @@ const wD = [{
36304
36311
  }, children: /* @__PURE__ */ r(kI, {}) }),
36305
36312
  /* @__PURE__ */ r(Xe.Section, { children: /* @__PURE__ */ r(_, { grow: !0, p: "md", pt: "sm", sx: {
36306
36313
  borderTop: "1px solid #eee"
36307
- }, children: /* @__PURE__ */ r(L, { size: "xs", color: "red", leftSection: /* @__PURE__ */ r(Ma, { size: 18 }), onClick: () => t.editor.close(), children: e("common.actions.close") }) }) })
36314
+ }, children: /* @__PURE__ */ r(L, { size: "xs", color: "red", leftSection: /* @__PURE__ */ r(La, { size: 18 }), onClick: () => t.editor.close(), children: e("common.actions.close") }) }) })
36308
36315
  ] });
36309
36316
  }), TI = {
36310
36317
  root: {
@@ -36419,9 +36426,9 @@ const VI = {
36419
36426
  MI(o.monacoPath), Ac(o);
36420
36427
  const {
36421
36428
  data: b = []
36422
- } = hn(Pi), {
36429
+ } = pn(Ri), {
36423
36430
  data: y = []
36424
- } = hn(Sd), v = P.useMemo(() => HT(t, n, b, y, e, c ?? {}), [t, n]);
36431
+ } = pn(Sd), v = P.useMemo(() => HT(t, n, b, y, e, c ?? {}), [t, n]);
36425
36432
  P.useImperativeHandle(g, () => v, [v]), Wd(v.content, !0), P.useEffect(() => {
36426
36433
  v.context.replace(e);
36427
36434
  }, [e]), P.useEffect(() => {
@@ -36437,7 +36444,7 @@ const VI = {
36437
36444
  }), [v]);
36438
36445
  const I = async () => {
36439
36446
  await a(v.json, v.content.json);
36440
- }, M = Rt(Ii, []), A = Ud(M);
36447
+ }, M = Rt(Mi, []), A = Ud(M);
36441
36448
  return LI(v.content.changed), dl("@devtable/dashboard editor", {
36442
36449
  context: e,
36443
36450
  dashboard: t,
@@ -36545,7 +36552,7 @@ const cu = m.model({
36545
36552
  };
36546
36553
  },
36547
36554
  get dashboardState() {
36548
- return Za(this.payloadForSQL);
36555
+ return Ja(this.payloadForSQL);
36549
36556
  },
36550
36557
  getAdditionalQueryInfo(t) {
36551
36558
  return {
@@ -36634,7 +36641,7 @@ const PI = m.model({
36634
36641
  content_id: m.string,
36635
36642
  datasources: z3,
36636
36643
  globalSQLSnippets: cd,
36637
- context: Ai
36644
+ context: Pi
36638
36645
  });
36639
36646
  function RI({
36640
36647
  id: e,
@@ -36676,9 +36683,9 @@ const EI = ({
36676
36683
  Ac(i);
36677
36684
  const {
36678
36685
  data: g = []
36679
- } = hn(Pi), {
36686
+ } = pn(Ri), {
36680
36687
  data: b = []
36681
- } = hn(Sd), y = P.useMemo(() => RI(t, n, g, b, e, s ?? {}, d ?? null), [t, n]);
36688
+ } = pn(Sd), y = P.useMemo(() => RI(t, n, g, b, e, s ?? {}, d ?? null), [t, n]);
36682
36689
  Wd(y.content, !1), P.useEffect(() => {
36683
36690
  y.context.replace(e);
36684
36691
  }, [e]), P.useEffect(() => {
@@ -36694,7 +36701,7 @@ const EI = ({
36694
36701
  }, [h, y.content.views.firstVisibleTabsViewActiveTabStr]), P.useEffect(() => {
36695
36702
  d && y.content.views.setFirstVisibleTabsViewActiveTab(d);
36696
36703
  }, [d, y.content.views.setFirstVisibleTabsViewActiveTab]);
36697
- const v = Rt(Ii, [y]), I = Ud(v);
36704
+ const v = Rt(Mi, [y]), I = Ud(v);
36698
36705
  return dl("@devtable/dashboard render", {
36699
36706
  context: e,
36700
36707
  dashboard: t,
@@ -36715,20 +36722,20 @@ const EI = ({
36715
36722
  setFullScreenPanelID: l
36716
36723
  }, children: /* @__PURE__ */ r(Rr.Provider, { value: {
36717
36724
  inEditMode: !1
36718
- }, children: /* @__PURE__ */ r($, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(Xt.Provider, { value: v, children: /* @__PURE__ */ r(qr, { configure: I, children: y.content.views.visibleViews.map((M) => /* @__PURE__ */ r(qi, { view: M }, M.id)) }) }) }) }) }) }) }) }) }) }) }) });
36725
+ }, children: /* @__PURE__ */ r($, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(Xt.Provider, { value: v, children: /* @__PURE__ */ r(qr, { configure: I, children: y.content.views.visibleViews.map((M) => /* @__PURE__ */ r(Fi, { view: M }, M.id)) }) }) }) }) }) }) }) }) }) }) }) });
36719
36726
  }, W9 = D(EI), U9 = () => Promise.resolve().then(() => bm).then(({
36720
36727
  version: e
36721
36728
  }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
36722
36729
  export {
36723
36730
  dt as APIClient,
36724
- sn as CURRENT_SCHEMA_VERSION,
36731
+ cn as CURRENT_SCHEMA_VERSION,
36725
36732
  B9 as ClientPanelRender,
36726
36733
  Gd as ContentModel,
36727
36734
  cs as ContentModelContext,
36728
36735
  ds as ContentModelContextProvider,
36729
36736
  cu as ContentRenderModel,
36730
- Ai as ContextMeta,
36731
- ba as DEFAULT_CUSTOM_MODAL_TITLE,
36737
+ Pi as ContextMeta,
36738
+ ya as DEFAULT_CUSTOM_MODAL_TITLE,
36732
36739
  L5 as DashboardApiClient,
36733
36740
  V5 as DashboardApiFacadeClient,
36734
36741
  G9 as DashboardEditor,
@@ -36739,7 +36746,7 @@ export {
36739
36746
  PI as DashboardRenderModel,
36740
36747
  ss as DashboardThemeContextProvider,
36741
36748
  aT as DashboardViewEditor,
36742
- qi as DashboardViewRender,
36749
+ Fi as DashboardViewRender,
36743
36750
  sd as DataSourceMetaModel,
36744
36751
  ie as DataSourceType,
36745
36752
  z3 as DataSourcesMetaModel,