@devtable/dashboard 14.44.0 → 14.44.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ import { createInstance as Tu } from "i18next";
5
5
  import { useTranslation as _, Trans as Mr, initReactI18next as Du, I18nextProvider as Iu } from "react-i18next";
6
6
  import Mu from "i18next-browser-languagedetector";
7
7
  import "intl-pluralrules";
8
- import C, { unset as Lu, get as se, isObject as hl, set as Va, omit as yn, isFunction as Vu, orderBy as $u, last as pl, cloneDeepWith as ml, defaults as pe, minBy as Pu, maxBy as Au, cloneDeep as Ae, values as $a, template as Pa, throttle as Ru, range as Eu, defaultsDeep as He, isEqual as Fe, keyBy as Ou, isEmpty as gl, isNumber as Fu, findLastIndex as qu, isString as fl, pick as bl } from "lodash";
8
+ import C, { unset as Lu, get as se, isObject as hl, set as $a, omit as yn, isFunction as Vu, orderBy as $u, last as pl, cloneDeepWith as ml, defaults as pe, minBy as Pu, maxBy as Au, cloneDeep as Ae, values as Pa, template as Aa, throttle as Ru, range as Eu, defaultsDeep as He, isEqual as Fe, keyBy as Ou, isEmpty as gl, isNumber as Fu, findLastIndex as qu, isString as fl, pick as bl } from "lodash";
9
9
  import { observable as yl, runInAction as Zn, toJS as Bt, reaction as qe, makeAutoObservable as rr } from "mobx";
10
10
  import no from "eventemitter2";
11
11
  import { jsx as r, Fragment as q, jsxs as u } from "react/jsx-runtime";
@@ -15,8 +15,8 @@ import Ge from "echarts-for-react/lib/core";
15
15
  import "echarts-gl";
16
16
  import * as Ne from "echarts/core";
17
17
  import { use as ju } from "echarts/core";
18
- import { useBoolean as De, useCreation as Ft, usePrevious as Qu, useAsyncEffect as Nn, useRequest as xn, useLatest as fa, useWhyDidYouUpdate as xl } from "ahooks";
19
- import { Box as $, TextInput as V, Group as y, Text as k, Select as F, Button as L, Modal as we, Stack as T, Divider as A, NumberInput as ne, SimpleGrid as ze, Menu as W, UnstyledButton as Aa, Tooltip as re, Flex as rt, ColorInput as cn, Center as jt, ActionIcon as te, Badge as Yt, CloseButton as Ct, Overlay as dn, NativeSelect as Ra, useMantineTheme as Vr, ColorSwatch as br, Popover as mt, ColorPicker as ro, HoverCard as ge, Checkbox as Z, Paper as Hu, Code as ao, Tabs as S, Switch as Ce, Table as w, MultiSelect as Kt, LoadingOverlay as un, Alert as ar, Collapse as ir, CheckIcon as Gu, SegmentedControl as Ea, Anchor as Rn, Pagination as $r, Textarea as vl, RangeSlider as Wu, Autocomplete as Uu, Combobox as Wt, Mark as wl, Slider as Ku, ThemeIcon as Jn, Pill as Yu, List as Ue, getRadius as Oa, Affix as Xu, AppShell as Je, FileInput as Zu, Highlight as Ju, rem as io, JsonInput as Sl, Drawer as eh, Radio as oo, Skeleton as lo, NavLink as ba, useCombobox as th, Loader as Fa, InputBase as nh, Input as rh } from "@mantine/core";
18
+ import { useBoolean as De, useCreation as Ft, usePrevious as Qu, useAsyncEffect as Nn, useRequest as xn, useLatest as ba, useWhyDidYouUpdate as xl } from "ahooks";
19
+ import { Box as $, TextInput as V, Group as y, Text as k, Select as F, Button as L, Modal as we, Stack as T, Divider as A, NumberInput as ne, SimpleGrid as ze, Menu as W, UnstyledButton as Ra, Tooltip as re, Flex as rt, ColorInput as cn, Center as jt, ActionIcon as te, Badge as Yt, CloseButton as Ct, Overlay as dn, NativeSelect as Ea, useMantineTheme as Vr, ColorSwatch as br, Popover as mt, ColorPicker as ro, HoverCard as ge, Checkbox as Z, Paper as Hu, Code as ao, Tabs as S, Switch as Ce, Table as w, MultiSelect as Kt, LoadingOverlay as un, Alert as ar, Collapse as ir, CheckIcon as Gu, SegmentedControl as Oa, Anchor as Rn, Pagination as $r, Textarea as vl, RangeSlider as Wu, Autocomplete as Uu, Combobox as Wt, Mark as wl, Slider as Ku, ThemeIcon as Jn, Pill as Yu, List as Ue, getRadius as Fa, Affix as Xu, AppShell as Je, FileInput as Zu, Highlight as Ju, rem as io, JsonInput as Sl, Drawer as eh, Radio as oo, Skeleton as lo, NavLink as ya, useCombobox as th, Loader as qa, InputBase as nh, Input as rh } from "@mantine/core";
20
20
  import { useHover as ah, useDisclosure as hn, useClipboard as ih, randomId as vn, useElementSize as Cl, useResizeObserver as oh, useInputState as kl } from "@mantine/hooks";
21
21
  import * as lh from "popmotion";
22
22
  import { interpolate as kn } from "popmotion";
@@ -28,7 +28,7 @@ import * as ch from "crypto-js";
28
28
  import dh from "crypto-js";
29
29
  import O from "dayjs";
30
30
  import qt from "numbro";
31
- import { IconMathFunction as en, IconRecycle as bt, IconDeviceFloppy as fe, IconSelector as uh, IconGripVertical as Tl, IconTrash as Pe, IconArrowBackUp as hh, IconPlayerSkipBack as Dl, IconMathFunctionOff as ph, IconTextSize as qa, IconInfoCircle as Re, IconCheck as Na, IconBorderAll as mh, IconCircleOff as Il, IconX as Pr, IconAlertCircle as tr, IconPlus as dt, IconGripHorizontal as gh, IconChevronUp as fh, IconChevronDown as Ml, IconChartAreaLineFilled as bh, IconPlaylistAdd as nr, IconArrowDown as yh, IconArrowUp as _h, IconChevronLeft as xh, IconChevronRight as vh, IconArrowBarToRight as Ba, IconArrowCurveRight as ya, IconLayersIntersect as wh, IconLayersSubtract as Sh, IconCalendar as Ch, IconMinus as kh, IconRefresh as Ar, IconChevronsUp as zh, IconChevronsDown as Th, IconDatabase as on, IconDownload as or, IconCode as wn, IconCamera as Rr, IconArrowsMaximize as Ll, IconAppWindow as ja, IconVariable as Bn, IconChartHistogram as Vl, IconRoute as Qa, IconCopy as Ha, IconArrowLeft as $l, IconArrowsMove as Dh, IconChevronDownRight as Ih, IconShare3 as Mh, IconArrowsLeftRight as Lh, IconCodeDots as Pl, IconFilter as Ga, IconBoxMultiple as Wa, IconCaretDown as Vh, IconAlertTriangle as Al, IconDevices as $h, IconSettings as jn, IconPointFilled as Er, IconFileImport as so, IconSearch as Rl, IconCircleDashed as Ph, IconCircleDot as Ah, IconChevronsUpRight as Rh, IconAdjustments as Eh, IconLine as Oh, IconEye as El, IconTable as Fh, IconColumns as qh, IconVectorTriangle as Nh, IconVariablePlus as Bh, IconHierarchy as jh, IconDiscountCheckFilled as Qh, IconHash as Hh } from "@tabler/icons-react";
31
+ import { IconMathFunction as en, IconRecycle as bt, IconDeviceFloppy as fe, IconSelector as uh, IconGripVertical as Tl, IconTrash as Pe, IconArrowBackUp as hh, IconPlayerSkipBack as Dl, IconMathFunctionOff as ph, IconTextSize as Na, IconInfoCircle as Re, IconCheck as Ba, IconBorderAll as mh, IconCircleOff as Il, IconX as Pr, IconAlertCircle as tr, IconPlus as dt, IconGripHorizontal as gh, IconChevronUp as fh, IconChevronDown as Ml, IconChartAreaLineFilled as bh, IconPlaylistAdd as nr, IconArrowDown as yh, IconArrowUp as _h, IconChevronLeft as xh, IconChevronRight as vh, IconArrowBarToRight as ja, IconArrowCurveRight as _a, IconLayersIntersect as wh, IconLayersSubtract as Sh, IconCalendar as Ch, IconMinus as kh, IconRefresh as Ar, IconChevronsUp as zh, IconChevronsDown as Th, IconDatabase as on, IconDownload as or, IconCode as wn, IconCamera as Rr, IconArrowsMaximize as Ll, IconAppWindow as Qa, IconVariable as Bn, IconChartHistogram as Vl, IconRoute as Ha, IconCopy as Ga, IconArrowLeft as $l, IconArrowsMove as Dh, IconChevronDownRight as Ih, IconShare3 as Mh, IconArrowsLeftRight as Lh, IconCodeDots as Pl, IconFilter as Wa, IconBoxMultiple as Ua, IconCaretDown as Vh, IconAlertTriangle as Al, IconDevices as $h, IconSettings as jn, IconPointFilled as Er, IconFileImport as so, IconSearch as Rl, IconCircleDashed as Ph, IconCircleDot as Ah, IconChevronsUpRight as Rh, IconAdjustments as Eh, IconLine as Oh, IconEye as El, IconTable as Fh, IconColumns as qh, IconVectorTriangle as Nh, IconVariablePlus as Bh, IconHierarchy as jh, IconDiscountCheckFilled as Qh, IconHash as Hh } from "@tabler/icons-react";
32
32
  import { RichTextEditor as le, Link as Ol, useRichTextEditorContext as Gh } from "@mantine/tiptap";
33
33
  import { Color as Fl } from "@tiptap/extension-color";
34
34
  import ql from "@tiptap/extension-highlight";
@@ -45,14 +45,14 @@ import Yl from "@tiptap/extension-underline";
45
45
  import { useEditor as Xl } from "@tiptap/react";
46
46
  import Zl from "@tiptap/starter-kit";
47
47
  import { DatesProvider as Wh, DatePicker as Uh } from "@mantine/dates";
48
- import Qt, { loader as oa } from "@monaco-editor/react";
48
+ import Qt, { loader as la } from "@monaco-editor/react";
49
49
  import { Mark as Jl, Extension as Kh } from "@tiptap/core";
50
50
  import * as Yh from "d3-scale";
51
51
  import { useForm as ye, Controller as f, useFieldArray as Or, useWatch as Xh } from "react-hook-form";
52
52
  import { observer as D } from "mobx-react-lite";
53
53
  import { move as es } from "@dnd-kit/helpers";
54
- import { DragDropProvider as Ua } from "@dnd-kit/react";
55
- import { useSortable as Ka } from "@dnd-kit/react/sortable";
54
+ import { DragDropProvider as Ka } from "@dnd-kit/react";
55
+ import { useSortable as Ya } from "@dnd-kit/react/sortable";
56
56
  import { v4 as At } from "uuid";
57
57
  import { BarChart as Zh, BoxplotChart as Jh, CustomChart as ep, FunnelChart as tp, HeatmapChart as np, LineChart as rp, PieChart as ap, RadarChart as ip, ScatterChart as op, SunburstChart as lp } from "echarts/charts";
58
58
  import { CalendarComponent as sp, DataZoomComponent as cp, GridComponent as dp, LegendComponent as up, TooltipComponent as hp, MarkLineComponent as pp, MarkAreaComponent as mp, VisualMapComponent as gp } from "echarts/components";
@@ -62,7 +62,7 @@ import { showNotification as Sn, updateNotification as yp, notifications as ts }
62
62
  import { createStyles as Qn, MantineEmotionProvider as ns } from "@mantine/emotion";
63
63
  import * as an from "d3-regression";
64
64
  import { CodeHighlight as kt } from "@mantine/code-highlight";
65
- import { flexRender as En, createColumnHelper as Ya, useReactTable as Xa, getCoreRowModel as Za, getSortedRowModel as _p } from "@tanstack/react-table";
65
+ import { flexRender as En, createColumnHelper as Xa, useReactTable as Za, getCoreRowModel as Ja, getSortedRowModel as _p } from "@tanstack/react-table";
66
66
  import { useVirtualizer as xp } from "@tanstack/react-virtual";
67
67
  import ct from "axios";
68
68
  import vp from "dayjs/plugin/advancedFormat";
@@ -2243,7 +2243,7 @@ class qr {
2243
2243
  throw new Error("Cannot set root value to non-object");
2244
2244
  else
2245
2245
  Zn(() => {
2246
- Va(this.rootRef.current, [t], n);
2246
+ $a(this.rootRef.current, [t], n);
2247
2247
  });
2248
2248
  return Promise.resolve(this.getItem(t));
2249
2249
  }
@@ -2401,14 +2401,14 @@ class Mm {
2401
2401
  function Vt(e) {
2402
2402
  return new Mm(e);
2403
2403
  }
2404
- class Ja {
2404
+ class ei {
2405
2405
  constructor() {
2406
2406
  B(this, "parent");
2407
2407
  B(this, "factoryRegistry", /* @__PURE__ */ new Map());
2408
2408
  B(this, "instanceRegistry", /* @__PURE__ */ new Map());
2409
2409
  }
2410
2410
  createScoped() {
2411
- const t = new Ja();
2411
+ const t = new ei();
2412
2412
  return t.parent = this, t;
2413
2413
  }
2414
2414
  getRequired(t) {
@@ -2474,7 +2474,7 @@ function Vm() {
2474
2474
  } = R.useContext(ps);
2475
2475
  return e ? document.getElementById(e) : null;
2476
2476
  }
2477
- const gs = "14.44.0", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2477
+ const gs = "14.44.2", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2478
2478
  __proto__: null,
2479
2479
  version: gs
2480
2480
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2802,7 +2802,7 @@ function Gm(e, t) {
2802
2802
  return e;
2803
2803
  }
2804
2804
  }
2805
- function ei(e, t) {
2805
+ function ti(e, t) {
2806
2806
  const n = e.map(Number), a = Gm(n, t);
2807
2807
  return typeof a == "number" ? Number.isFinite(a) ? a : t.fallback : a ?? t.fallback;
2808
2808
  }
@@ -2826,9 +2826,9 @@ function Um(e, t, n) {
2826
2826
  return console.error(a), n.fallback;
2827
2827
  }
2828
2828
  }
2829
- function ti(e, t, n) {
2829
+ function ni(e, t, n) {
2830
2830
  try {
2831
- return n.type === "custom" ? Wm(e, t, n) : n.type === "pick_record" ? Um(e, t, n) : ei(gt(e, t), n);
2831
+ return n.type === "custom" ? Wm(e, t, n) : n.type === "pick_record" ? Um(e, t, n) : ti(gt(e, t), n);
2832
2832
  } catch (a) {
2833
2833
  return console.error(a), null;
2834
2834
  }
@@ -2861,16 +2861,16 @@ const oe = () => ws(), Xm = {
2861
2861
  downloadPanelScreenshot: () => {
2862
2862
  }
2863
2863
  }), Cs = Ss.Provider;
2864
- function ni() {
2864
+ function ri() {
2865
2865
  const e = R.useContext(Ss);
2866
2866
  if (!e.panel)
2867
2867
  throw new Error("Please use PanelContextProvider");
2868
2868
  return e;
2869
2869
  }
2870
- const ot = () => ni(), Ve = () => ni();
2870
+ const ot = () => ri(), Ve = () => ri();
2871
2871
  function ks() {
2872
2872
  try {
2873
- return ni(), !0;
2873
+ return ri(), !0;
2874
2874
  } catch {
2875
2875
  return !1;
2876
2876
  }
@@ -2903,7 +2903,7 @@ function Ts({
2903
2903
  firstDayOfWeek: 1
2904
2904
  }, children: e });
2905
2905
  }
2906
- const _e = () => ws(), ri = {
2906
+ const _e = () => ws(), ai = {
2907
2907
  fontSize: "14px",
2908
2908
  lineHeight: "32px",
2909
2909
  color: "#3D3E45",
@@ -2980,15 +2980,15 @@ const _e = () => ws(), ri = {
2980
2980
  color: "#3D3E45",
2981
2981
  margin: "0 0 14px"
2982
2982
  }
2983
- }, ai = "grad_color_", rg = new RegExp(`^(?!${ai})(.+)$`);
2983
+ }, ii = "grad_color_", rg = new RegExp(`^(?!${ii})(.+)$`);
2984
2984
  function Ds(e) {
2985
- return e && e.replace(rg, `${ai}$1`);
2985
+ return e && e.replace(rg, `${ii}$1`);
2986
2986
  }
2987
2987
  const ag = (e) => {
2988
2988
  const n = "abcdefghijklmnopqrstuvwxyz", i = `1234567890${n}${n.toUpperCase()}`.split(""), o = new Uint8Array(e);
2989
2989
  crypto.getRandomValues(o);
2990
2990
  const l = o.reduce((s, c) => `${s}${i[c & 61]}`, "");
2991
- return `${ai}${l}`;
2991
+ return `${ii}${l}`;
2992
2992
  };
2993
2993
  function ig(e, t, n) {
2994
2994
  try {
@@ -3230,7 +3230,7 @@ function cg(e) {
3230
3230
  }
3231
3231
  const be = (e) => (t, n) => {
3232
3232
  t !== null && e(t, n);
3233
- }, la = D(ee((e, t) => {
3233
+ }, sa = D(ee((e, t) => {
3234
3234
  const {
3235
3235
  label: n,
3236
3236
  value: a,
@@ -3492,7 +3492,7 @@ const In = (e) => ({
3492
3492
  followVisualMap: !e,
3493
3493
  color: e
3494
3494
  });
3495
- function ii(e, t, n, a) {
3495
+ function oi(e, t, n, a) {
3496
3496
  if (a.type !== "continuous")
3497
3497
  return In("");
3498
3498
  const {
@@ -3523,7 +3523,7 @@ const fg = gg(), bg = ({
3523
3523
  t: a
3524
3524
  } = _(), i = `linear-gradient(to right, ${e.join(", ")})`;
3525
3525
  return /* @__PURE__ */ u(W, { shadow: "md", width: 300, withinPortal: !0, zIndex: n, children: [
3526
- /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ u(Aa, { children: [
3526
+ /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ u(Ra, { children: [
3527
3527
  /* @__PURE__ */ r(k, { style: {
3528
3528
  display: "inline-block",
3529
3529
  fontSize: "0.875rem",
@@ -3576,7 +3576,7 @@ const fg = gg(), bg = ({
3576
3576
  }] = De(!1), {
3577
3577
  ref: s,
3578
3578
  handleRef: c
3579
- } = Ka({
3579
+ } = Ya({
3580
3580
  id: e.id,
3581
3581
  index: t
3582
3582
  });
@@ -3627,7 +3627,7 @@ const fg = gg(), bg = ({
3627
3627
  };
3628
3628
  return /* @__PURE__ */ u(T, { ref: a, children: [
3629
3629
  /* @__PURE__ */ r(bg, { colors: e, applyPalette: c, zIndex: n }),
3630
- /* @__PURE__ */ r(Ua, { onDragEnd: (x) => {
3630
+ /* @__PURE__ */ r(Ka, { onDragEnd: (x) => {
3631
3631
  const {
3632
3632
  source: v,
3633
3633
  target: I
@@ -3676,11 +3676,11 @@ const fg = gg(), bg = ({
3676
3676
  /* @__PURE__ */ u($, { px: "1rem", children: [
3677
3677
  /* @__PURE__ */ r(f, { control: o, name: "variable", render: ({
3678
3678
  field: d
3679
- }) => /* @__PURE__ */ r(la, { label: a("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
3679
+ }) => /* @__PURE__ */ r(sa, { label: a("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
3680
3680
  /* @__PURE__ */ u(y, { grow: !0, justify: "space-between", children: [
3681
3681
  /* @__PURE__ */ r(f, { name: "min_var", control: o, render: ({
3682
3682
  field: d
3683
- }) => /* @__PURE__ */ r(la, { label: a("rich_text.color_mapping.min.var"), preview: "aggregated", sx: {
3683
+ }) => /* @__PURE__ */ r(sa, { label: a("rich_text.color_mapping.min.var"), preview: "aggregated", sx: {
3684
3684
  flexGrow: 1,
3685
3685
  maxWidth: "unset"
3686
3686
  }, ...d }) }),
@@ -3694,7 +3694,7 @@ const fg = gg(), bg = ({
3694
3694
  /* @__PURE__ */ u(y, { grow: !0, justify: "space-between", children: [
3695
3695
  /* @__PURE__ */ r(f, { name: "max_var", control: o, render: ({
3696
3696
  field: d
3697
- }) => /* @__PURE__ */ r(la, { label: a("rich_text.color_mapping.max.var"), preview: "aggregated", sx: {
3697
+ }) => /* @__PURE__ */ r(sa, { label: a("rich_text.color_mapping.max.var"), preview: "aggregated", sx: {
3698
3698
  flexGrow: 1,
3699
3699
  maxWidth: "unset"
3700
3700
  }, ...d }) }),
@@ -3822,15 +3822,15 @@ function zg(e) {
3822
3822
  }];
3823
3823
  }
3824
3824
  const Tg = (e) => e && e.replace(_r, "").replace(/(.*)\}$/, "$1"), Os = (e) => !e || e.startsWith(_r) ? e : [_r, e, Es].join(`
3825
- `), oi = "dyn_color_", Dg = new RegExp(`^(?!${oi})(.+)$`);
3825
+ `), li = "dyn_color_", Dg = new RegExp(`^(?!${li})(.+)$`);
3826
3826
  function Fs(e) {
3827
- return e && e.replace(Dg, `${oi}$1`);
3827
+ return e && e.replace(Dg, `${li}$1`);
3828
3828
  }
3829
3829
  const qs = (e) => {
3830
3830
  const n = "abcdefghijklmnopqrstuvwxyz", i = `1234567890${n}${n.toUpperCase()}`.split(""), o = new Uint8Array(e);
3831
3831
  crypto.getRandomValues(o);
3832
3832
  const l = o.reduce((s, c) => `${s}${i[c & 61]}`, "");
3833
- return `${oi}${l}`;
3833
+ return `${li}${l}`;
3834
3834
  };
3835
3835
  function Ig(e, t, n) {
3836
3836
  const a = {}, i = (l) => new Function(`return ${Os(l)}`)()({
@@ -3988,7 +3988,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
3988
3988
  /* @__PURE__ */ r(Lg, { value: s, onChange: c, onMount: g })
3989
3989
  ] })
3990
3990
  ] });
3991
- }), li = ee(({
3991
+ }), si = ee(({
3992
3992
  title: e,
3993
3993
  value: t,
3994
3994
  onChange: n,
@@ -4035,7 +4035,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4035
4035
  t
4036
4036
  } = _(), n = e.getAttributes(Ns)[Mg] ?? "", a = Os(n), i = zg(n);
4037
4037
  return /* @__PURE__ */ u(q, { children: [
4038
- /* @__PURE__ */ r(li, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: a, onChange: (o) => {
4038
+ /* @__PURE__ */ r(si, { title: t("rich_text.dynamic_color.edit"), label: "", triggerLabel: "", value: a, onChange: (o) => {
4039
4039
  o ? e.chain().focus().setDynamicColor(o).run() : e.chain().focus().unsetDynamicColor().run();
4040
4040
  }, defaultValue: kg, renderTriggerButton: Vg, restrictions: i, zIndex: 340 }),
4041
4041
  /* @__PURE__ */ r(re, { label: t("rich_text.dynamic_color.clear"), children: /* @__PURE__ */ r(te, { variant: "default", "data-rich-text-editor-control": "true", sx: {
@@ -4098,7 +4098,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4098
4098
  editor: e
4099
4099
  }) => {
4100
4100
  const t = e.getAttributes("textStyle").fontSize;
4101
- return /* @__PURE__ */ r(le.ControlsGroup, { children: /* @__PURE__ */ r(Ra, { size: "xs", leftSection: /* @__PURE__ */ r(qa, { stroke: 1.5, size: 16 }), data: Ag, styles: Rg, value: t || "", onChange: (n) => {
4101
+ return /* @__PURE__ */ r(le.ControlsGroup, { children: /* @__PURE__ */ r(Ea, { size: "xs", leftSection: /* @__PURE__ */ r(Na, { stroke: 1.5, size: 16 }), data: Ag, styles: Rg, value: t || "", onChange: (n) => {
4102
4102
  const a = n.currentTarget.value;
4103
4103
  a ? e.chain().focus().setFontSize(a).run() : e.chain().focus().unsetFontSize().run();
4104
4104
  } }) });
@@ -4106,7 +4106,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4106
4106
  value: e,
4107
4107
  styles: t = {},
4108
4108
  sx: n = {},
4109
- dashboardStateValues: a = _a(),
4109
+ dashboardStateValues: a = xa(),
4110
4110
  variableAggValueMap: i = {}
4111
4111
  }, o) => {
4112
4112
  const l = Zm(), s = z(() => {
@@ -4132,7 +4132,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4132
4132
  }, [e, c]);
4133
4133
  const d = z(() => new DOMParser().parseFromString(e, "text/html"), [e]), h = z(() => Ig(d, a, i), [d, a, i]), p = z(() => og(d, i), [d, i]), g = z(() => C.defaultsDeep({}, {
4134
4134
  content: {
4135
- ...ri,
4135
+ ...ai,
4136
4136
  ...h,
4137
4137
  ...p
4138
4138
  }
@@ -4161,7 +4161,7 @@ function Qs() {
4161
4161
  /* @__PURE__ */ r(L, { variant: "light", color: "violet", size: "xs", onClick: n, leftSection: /* @__PURE__ */ r(Re, { size: 16 }), children: e("function_utils.trigger_text") })
4162
4162
  ] });
4163
4163
  }
4164
- const sa = ({
4164
+ const ca = ({
4165
4165
  option: e,
4166
4166
  checked: t,
4167
4167
  ...n
@@ -4174,14 +4174,14 @@ const sa = ({
4174
4174
  flexGrow: 1
4175
4175
  }, children: /* @__PURE__ */ u(y, { justify: "space-between", wrap: "nowrap", children: [
4176
4176
  /* @__PURE__ */ u(y, { justify: "flex-start", gap: "0.5em", children: [
4177
- t && /* @__PURE__ */ r(Na, { size: 16, color: "green" }),
4177
+ t && /* @__PURE__ */ r(Ba, { size: 16, color: "green" }),
4178
4178
  /* @__PURE__ */ r(k, { size: "sm", sx: {
4179
4179
  flexGrow: 1
4180
4180
  }, children: a })
4181
4181
  ] }),
4182
4182
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", children: i })
4183
4183
  ] }) });
4184
- }, si = ({
4184
+ }, ci = ({
4185
4185
  value: e,
4186
4186
  onChange: t,
4187
4187
  height: n = "200px",
@@ -4309,7 +4309,7 @@ const ln = ee(({
4309
4309
  }, [i, M, h]);
4310
4310
  const P = z(() => C.defaultsDeep({}, {
4311
4311
  content: {
4312
- ...ri,
4312
+ ...ai,
4313
4313
  ...qg
4314
4314
  }
4315
4315
  }, n), [n]);
@@ -4520,7 +4520,7 @@ function Ht({
4520
4520
  data_field: e,
4521
4521
  aggregation: t
4522
4522
  }, n) {
4523
- return ti(n, e, t);
4523
+ return ni(n, e, t);
4524
4524
  }
4525
4525
  function yt({
4526
4526
  formatter: e,
@@ -4560,7 +4560,7 @@ function Kg(e, t) {
4560
4560
  const {
4561
4561
  data_field: n,
4562
4562
  aggregation: a
4563
- } = e, i = ti(t, n, a);
4563
+ } = e, i = ni(t, n, a);
4564
4564
  return yt(e, i);
4565
4565
  }
4566
4566
  function Ys(e, t) {
@@ -4591,16 +4591,16 @@ function* Yg(e) {
4591
4591
  for (; ; )
4592
4592
  yield n[a % n.length], a++;
4593
4593
  }
4594
- function _a() {
4594
+ function xa() {
4595
4595
  return {
4596
4596
  filters: {},
4597
4597
  context: {}
4598
4598
  };
4599
4599
  }
4600
- function ci(e) {
4601
- const t = _a();
4600
+ function di(e) {
4601
+ const t = xa();
4602
4602
  if (!e)
4603
- return _a();
4603
+ return xa();
4604
4604
  const {
4605
4605
  filters: n = t.filters,
4606
4606
  context: a = t.context
@@ -4673,7 +4673,7 @@ const Zt = (e) => ml(e, (t, n) => {
4673
4673
  if (n !== void 0 && t)
4674
4674
  return Bt(t);
4675
4675
  });
4676
- function di(e, t) {
4676
+ function ui(e, t) {
4677
4677
  const n = Object.keys(t), a = Object.values(t);
4678
4678
  try {
4679
4679
  return new Function(...n, `return \`${e}\`;`)(...a);
@@ -4681,9 +4681,9 @@ function di(e, t) {
4681
4681
  throw n.length === 0 && e.includes("$") ? new Error("[formatSQL] insufficient payload") : i;
4682
4682
  }
4683
4683
  }
4684
- function ui(e, t) {
4684
+ function hi(e, t) {
4685
4685
  try {
4686
- return di(e, t);
4686
+ return ui(e, t);
4687
4687
  } catch (n) {
4688
4688
  return console.error(n), n.message;
4689
4689
  }
@@ -4723,7 +4723,7 @@ function tf(e, t) {
4723
4723
  name: i,
4724
4724
  data_field: o,
4725
4725
  aggregation: l
4726
- } = a, s = ti(t, o, l);
4726
+ } = a, s = ni(t, o, l);
4727
4727
  n[i] = yt(a, s);
4728
4728
  }), n;
4729
4729
  }
@@ -4757,7 +4757,7 @@ function sn(e, t, n, a) {
4757
4757
  return rf(d, i, n);
4758
4758
  });
4759
4759
  }
4760
- const hi = {
4760
+ const pi = {
4761
4761
  x_axis_data_key: "",
4762
4762
  y_axis_data_key: "",
4763
4763
  z_axis_data_key: "",
@@ -4798,7 +4798,7 @@ function af({
4798
4798
  xAxis3D: d,
4799
4799
  yAxis3D: h,
4800
4800
  zAxis3D: p
4801
- } = pe({}, n, hi), g = z(() => Br(a, l), [a, l]), {
4801
+ } = pe({}, n, pi), g = z(() => Br(a, l), [a, l]), {
4802
4802
  x: b,
4803
4803
  y: x,
4804
4804
  z: v
@@ -4892,7 +4892,7 @@ function of({
4892
4892
  const {
4893
4893
  value: t,
4894
4894
  set: n
4895
- } = K(e.instanceData, "config"), a = pe({}, t, hi), {
4895
+ } = K(e.instanceData, "config"), a = pe({}, t, pi), {
4896
4896
  control: i,
4897
4897
  handleSubmit: o,
4898
4898
  reset: l
@@ -5021,7 +5021,7 @@ const hf = {
5021
5021
  createConfig() {
5022
5022
  return {
5023
5023
  version: 2,
5024
- config: Ae(hi)
5024
+ config: Ae(pi)
5025
5025
  };
5026
5026
  },
5027
5027
  translation: cf
@@ -5327,7 +5327,7 @@ function ce() {
5327
5327
  show_in_legend: !1
5328
5328
  };
5329
5329
  }
5330
- const pi = {
5330
+ const mi = {
5331
5331
  x_axis: {
5332
5332
  name: "X Axis",
5333
5333
  data_key: "",
@@ -5371,13 +5371,13 @@ function Tn(e, t) {
5371
5371
  const ut = (e, t) => {
5372
5372
  const [n, a] = Q([]);
5373
5373
  return N(() => e.watchTriggerSnapshotList((i) => a(i.filter((o) => o.schemaRef === t))), []), n;
5374
- }, xa = _l(null);
5374
+ }, va = _l(null);
5375
5375
  function Gr(e) {
5376
- const t = R.useContext(xa), n = Ft(() => e.configure(t || new Ja()), [e.configure]), a = Qu(n);
5377
- return a && a !== n && a.dispose(), /* @__PURE__ */ r(xa.Provider, { value: n, children: e.children });
5376
+ const t = R.useContext(va), n = Ft(() => e.configure(t || new ei()), [e.configure]), a = Qu(n);
5377
+ return a && a !== n && a.dispose(), /* @__PURE__ */ r(va.Provider, { value: n, children: e.children });
5378
5378
  }
5379
5379
  function Wr() {
5380
- return R.useContext(xa);
5380
+ return R.useContext(va);
5381
5381
  }
5382
5382
  const ht = ({}) => Wr().getRequired(ve.instanceScope.interactionManager), tc = (e) => {
5383
5383
  const {
@@ -5619,7 +5619,7 @@ const Lf = {
5619
5619
  "builtin:op:open_view": 4,
5620
5620
  "builtin:op:open-link": 5
5621
5621
  };
5622
- class mi {
5622
+ class gi {
5623
5623
  constructor(t, n, a) {
5624
5624
  B(this, "attachmentStorage");
5625
5625
  this.instance = t, this.attachmentKey = n, this.constructInstance = a, this.attachmentStorage = new Pn(t.instanceData, n);
@@ -5635,7 +5635,7 @@ class mi {
5635
5635
  await this.attachmentStorage.deleteItem(t);
5636
5636
  }
5637
5637
  async list() {
5638
- const t = await this.attachmentStorage.getItem(null), n = C.orderBy($a(t), (a) => Lf[a.schemaRef] ?? 10);
5638
+ const t = await this.attachmentStorage.getItem(null), n = C.orderBy(Pa(t), (a) => Lf[a.schemaRef] ?? 10);
5639
5639
  return Promise.all(n.map((a) => this.constructInstance(new Pn(this.attachmentStorage, a.id))));
5640
5640
  }
5641
5641
  }
@@ -5735,7 +5735,7 @@ function Of(e) {
5735
5735
  return /* @__PURE__ */ r(V, { defaultValue: n, onBlur: (i) => a(i.currentTarget.value), label: t("interactions.operation.console_log.log_content") });
5736
5736
  }
5737
5737
  async function Ff(e, t) {
5738
- const n = await t.operationData.getItem("config"), a = Pa(n.template || "");
5738
+ const n = await t.operationData.getItem("config"), a = Aa(n.template || "");
5739
5739
  console.log("run with payload", e), console.log(a(e));
5740
5740
  }
5741
5741
  const qf = {
@@ -5972,9 +5972,9 @@ const ob = {
5972
5972
  id: "builtin:op:switch_tab",
5973
5973
  configRender: ab,
5974
5974
  run: ib
5975
- }, gi = [qf, Rf, jf, rb, Kf, ob, Jf];
5975
+ }, fi = [qf, Rf, jf, rb, Kf, ob, Jf];
5976
5976
  class lb {
5977
- constructor(t, n = gi) {
5977
+ constructor(t, n = fi) {
5978
5978
  B(this, "attachments");
5979
5979
  this.operations = n;
5980
5980
  const a = async (i) => {
@@ -5988,7 +5988,7 @@ class lb {
5988
5988
  operationData: new Pn(i, "data")
5989
5989
  };
5990
5990
  };
5991
- this.attachments = new mi(t, "__OPERATIONS", a);
5991
+ this.attachments = new gi(t, "__OPERATIONS", a);
5992
5992
  }
5993
5993
  async runOperation(t, n) {
5994
5994
  const a = await this.attachments.getInstance(t);
@@ -6064,11 +6064,11 @@ class sb {
6064
6064
  triggerData: new Pn(i, "data")
6065
6065
  };
6066
6066
  };
6067
- this.attachments = new mi(t, bo, a);
6067
+ this.attachments = new gi(t, bo, a);
6068
6068
  }
6069
6069
  watchTriggerSnapshotList(t) {
6070
6070
  return this.instance.instanceData.watchItem(bo, (n) => {
6071
- const a = $a(n).map((i) => ({
6071
+ const a = Pa(n).map((i) => ({
6072
6072
  id: se(i, "id"),
6073
6073
  schemaRef: se(i, "schemaRef"),
6074
6074
  config: Bt(se(i, "data.config"))
@@ -6138,7 +6138,7 @@ class nc {
6138
6138
  operationRef: c
6139
6139
  };
6140
6140
  };
6141
- this.attachments = new mi(t, "__INTERACTIONS", i);
6141
+ this.attachments = new gi(t, "__INTERACTIONS", i);
6142
6142
  }
6143
6143
  async addInteraction(t, n) {
6144
6144
  const a = t.id, i = n.id, o = `[${a}]:[${i}]`;
@@ -6246,7 +6246,7 @@ const db = D(({
6246
6246
  data: t
6247
6247
  } = ot(), n = e.viz, {
6248
6248
  vizManager: a
6249
- } = Jt(nn), i = e.json, o = Ft(() => a.getOrCreateInstance(i), [a, i]), l = Ft(() => new nc(o, a.resolveComponent(n.type), gi), [o, n.type]);
6249
+ } = Jt(nn), i = e.json, o = Ft(() => a.getOrCreateInstance(i), [a, i]), l = Ft(() => new nc(o, a.resolveComponent(n.type), fi), [o, n.type]);
6250
6250
  return N(() => o.instanceData.watchItem(
6251
6251
  null,
6252
6252
  // avoid too many updates
@@ -6445,11 +6445,11 @@ function Cb(e, t, n) {
6445
6445
  }
6446
6446
  }));
6447
6447
  }
6448
- const va = ["max", "q3", "median", "q1", "min"], wa = [10, 40];
6449
- function fi(e) {
6448
+ const wa = ["max", "q3", "median", "q1", "min"], Sa = [10, 40];
6449
+ function bi(e) {
6450
6450
  return e.barLayout({
6451
- barMinWidth: wa[0],
6452
- barMaxWidth: wa[1],
6451
+ barMinWidth: Sa[0],
6452
+ barMaxWidth: Sa[1],
6453
6453
  count: 2
6454
6454
  });
6455
6455
  }
@@ -6460,7 +6460,7 @@ function kb(e, t, n) {
6460
6460
  borderColor: i,
6461
6461
  borderWidth: o
6462
6462
  }
6463
- } = n, l = fi(t), s = t.value(0), c = e.source[s], {
6463
+ } = n, l = bi(t), s = t.value(0), c = e.source[s], {
6464
6464
  min: d,
6465
6465
  q1: h,
6466
6466
  median: p,
@@ -6553,13 +6553,13 @@ function zb(e, t) {
6553
6553
  emphasis: {
6554
6554
  disabled: !0
6555
6555
  },
6556
- boxWidth: wa,
6556
+ boxWidth: Sa,
6557
6557
  datasetIndex: 0
6558
6558
  };
6559
6559
  return a.renderItem = (i, o) => kb(e, o, a), a;
6560
6560
  }
6561
6561
  function Tb(e) {
6562
- const t = fi(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;
6562
+ const t = bi(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;
6563
6563
  return {
6564
6564
  type: "circle",
6565
6565
  transition: ["shape"],
@@ -6591,7 +6591,7 @@ function Db() {
6591
6591
  return e.renderItem = (t, n) => Tb(n), e;
6592
6592
  }
6593
6593
  function Ib(e, t) {
6594
- const n = fi(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;
6594
+ const n = bi(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;
6595
6595
  return {
6596
6596
  type: "circle",
6597
6597
  transition: ["shape"],
@@ -6636,10 +6636,10 @@ function Lb(e, t) {
6636
6636
  boxWidth: [20, 80],
6637
6637
  datasetIndex: 0,
6638
6638
  encode: {
6639
- y: va,
6639
+ y: wa,
6640
6640
  x: "name",
6641
6641
  itemName: ["name"],
6642
- tooltip: va
6642
+ tooltip: wa
6643
6643
  }
6644
6644
  }, {
6645
6645
  // Placeholder Outlier
@@ -6659,7 +6659,7 @@ function Lb(e, t) {
6659
6659
  }, a, i, o];
6660
6660
  }
6661
6661
  const Vb = (e, t) => {
6662
- const n = va.map((o) => `
6662
+ const n = wa.map((o) => `
6663
6663
  <tr>
6664
6664
  <th style="text-align: right; padding: 0 1em;">${C.capitalize(o)}</th>
6665
6665
  <td style="text-align: left; padding: 0 1em;">
@@ -6867,7 +6867,7 @@ function Nb({
6867
6867
  } = e, o = e.data, {
6868
6868
  width: l,
6869
6869
  height: s
6870
- } = e.viewport, c = pe({}, a, pi), d = ht({
6870
+ } = e.viewport, c = pe({}, a, mi), d = ht({
6871
6871
  vizManager: e.vizManager,
6872
6872
  instance: t
6873
6873
  }), h = ut(d.triggerManager, ec.id), p = Tn(o, c.x_axis.data_key), g = ae((M) => {
@@ -6910,7 +6910,7 @@ function Ie({
6910
6910
  /* @__PURE__ */ r(te, { ref: t, type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !e, children: /* @__PURE__ */ r(fe, { size: 20 }) })
6911
6911
  ] });
6912
6912
  }
6913
- const bi = ee(({
6913
+ const yi = ee(({
6914
6914
  label: e,
6915
6915
  value: t,
6916
6916
  onChange: n,
@@ -7227,7 +7227,7 @@ const Hb = D(({
7227
7227
  }] = De(!1), {
7228
7228
  ref: l,
7229
7229
  handleRef: s
7230
- } = Ka({
7230
+ } = Ya({
7231
7231
  id: e,
7232
7232
  index: t
7233
7233
  });
@@ -7247,7 +7247,7 @@ const Hb = D(({
7247
7247
  e.move(d, h);
7248
7248
  };
7249
7249
  return /* @__PURE__ */ u(S.List, { children: [
7250
- /* @__PURE__ */ r(Ua, { onDragEnd: o, children: i.map((l, s) => /* @__PURE__ */ r(Xb, { value: l.id, index: s, children: a(l, s) }, l.id)) }),
7250
+ /* @__PURE__ */ r(Ka, { onDragEnd: o, children: i.map((l, s) => /* @__PURE__ */ r(Xb, { value: l.id, index: s, children: a(l, s) }, l.id)) }),
7251
7251
  /* @__PURE__ */ r(S.Tab, { onClick: t, value: "add", children: /* @__PURE__ */ r(re, { label: n, children: /* @__PURE__ */ r(jt, { children: /* @__PURE__ */ r(dt, { size: 18, color: "#228be6" }) }) }) })
7252
7252
  ] });
7253
7253
  }, Jb = {
@@ -7550,7 +7550,7 @@ const tn = ee(({
7550
7550
  field: a
7551
7551
  }) => /* @__PURE__ */ r(Lt, { ...a }) })
7552
7552
  ] });
7553
- }, ca = {
7553
+ }, da = {
7554
7554
  root: {
7555
7555
  alignSelf: "flex-end"
7556
7556
  },
@@ -7638,20 +7638,20 @@ function cy({
7638
7638
  /* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.absolute_description") })
7639
7639
  ] }), checked: e.absolute, onChange: c, sx: {
7640
7640
  flexGrow: 1
7641
- }, styles: ca }),
7641
+ }, styles: da }),
7642
7642
  /* @__PURE__ */ r(Ce, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
7643
7643
  /* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.abbreviation") }),
7644
7644
  /* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.abbreviation_description") })
7645
7645
  ] }), checked: e.average, onChange: s, disabled: e.output !== "number", sx: {
7646
7646
  flexGrow: 1
7647
- }, styles: ca })
7647
+ }, styles: da })
7648
7648
  ] }),
7649
7649
  /* @__PURE__ */ u(y, { grow: !0, children: [
7650
7650
  /* @__PURE__ */ r(ne, { label: a("numbro.format.mantissa"), defaultValue: 0, min: 0, step: 1, max: 4, value: e.mantissa, onChange: o }),
7651
7651
  /* @__PURE__ */ r(Ce, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
7652
7652
  /* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.trim_mantissa") }),
7653
7653
  /* @__PURE__ */ r(k, { size: "12px", c: "gray", children: a("numbro.format.trim_mantissa_description") })
7654
- ] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: ca }),
7654
+ ] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: da }),
7655
7655
  /* @__PURE__ */ r($, {})
7656
7656
  ] }),
7657
7657
  /* @__PURE__ */ r(sy, { format: e })
@@ -7698,7 +7698,7 @@ function uy({
7698
7698
  set: a
7699
7699
  } = K(e.instanceData, "config"), {
7700
7700
  variables: i
7701
- } = e, o = z(() => pe({}, n, pi), [n]), {
7701
+ } = e, o = z(() => pe({}, n, mi), [n]), {
7702
7702
  control: l,
7703
7703
  handleSubmit: s,
7704
7704
  watch: c,
@@ -8031,7 +8031,7 @@ const Cy = {
8031
8031
  createConfig() {
8032
8032
  return {
8033
8033
  version: 12,
8034
- config: Ae(pi)
8034
+ config: Ae(mi)
8035
8035
  };
8036
8036
  },
8037
8037
  triggers: [ec],
@@ -8052,7 +8052,7 @@ function zy(e) {
8052
8052
  } = _();
8053
8053
  return /* @__PURE__ */ r(k, { size: "sm", children: t("viz.button.click.label") });
8054
8054
  }
8055
- const yi = {
8055
+ const _i = {
8056
8056
  content: "Button",
8057
8057
  variant: "filled",
8058
8058
  color: "blue",
@@ -8077,7 +8077,7 @@ const yi = {
8077
8077
  instance: t
8078
8078
  }), a = ut(n.triggerManager, cc.id), i = _e(), {
8079
8079
  value: o
8080
- } = K(e.instanceData, "config"), l = z(() => He({}, o, yi), [o]), {
8080
+ } = K(e.instanceData, "config"), l = z(() => He({}, o, _i), [o]), {
8081
8081
  content: s,
8082
8082
  horizontal_align: c,
8083
8083
  vertical_align: d,
@@ -8097,7 +8097,7 @@ const yi = {
8097
8097
  height: x,
8098
8098
  justifyContent: Ty[c],
8099
8099
  alignItems: Dy[d]
8100
- }, children: /* @__PURE__ */ r(L, { size: M, ...g, onClick: I, children: Pa(s)(v) }) });
8100
+ }, children: /* @__PURE__ */ r(L, { size: M, ...g, onClick: I, children: Aa(s)(v) }) });
8101
8101
  }), My = ({
8102
8102
  value: e,
8103
8103
  onChange: t,
@@ -8113,7 +8113,7 @@ const yi = {
8113
8113
  }, children: o(l) && /* @__PURE__ */ r(Gu, { width: 10, color: "white" }) }, l);
8114
8114
  }) })
8115
8115
  ] });
8116
- }, Ly = ["xs", "sm", "md", "lg", "xl"], Sa = ee(({
8116
+ }, Ly = ["xs", "sm", "md", "lg", "xl"], Ca = ee(({
8117
8117
  label: e,
8118
8118
  value: t,
8119
8119
  onChange: n,
@@ -8157,7 +8157,7 @@ function $y({
8157
8157
  const {
8158
8158
  value: t,
8159
8159
  set: n
8160
- } = K(e.instanceData, "config"), a = z(() => He({}, t, yi), [t]), i = a;
8160
+ } = K(e.instanceData, "config"), a = z(() => He({}, t, _i), [t]), i = a;
8161
8161
  N(() => {
8162
8162
  !Fe(a, i) && (console.log("config malformed, resetting to defaults", a, i), n(i));
8163
8163
  }, [a, i]);
@@ -8190,7 +8190,7 @@ function $y({
8190
8190
  /* @__PURE__ */ u(ze, { cols: 2, children: [
8191
8191
  /* @__PURE__ */ r(f, { control: o, name: "size", render: ({
8192
8192
  field: h
8193
- }) => /* @__PURE__ */ r(Sa, { label: "Size", ...h }) }),
8193
+ }) => /* @__PURE__ */ r(Ca, { label: "Size", ...h }) }),
8194
8194
  /* @__PURE__ */ r(f, { control: o, name: "compact", render: ({
8195
8195
  field: h
8196
8196
  }) => /* @__PURE__ */ r(Z, { label: "Compact", checked: h.value, onChange: (p) => h.onChange(p.currentTarget.checked), mt: 26 }) })
@@ -8198,7 +8198,7 @@ function $y({
8198
8198
  /* @__PURE__ */ u(ze, { cols: 2, children: [
8199
8199
  /* @__PURE__ */ r(f, { control: o, name: "horizontal_align", render: ({
8200
8200
  field: h
8201
- }) => /* @__PURE__ */ r(bi, { ...h }) }),
8201
+ }) => /* @__PURE__ */ r(yi, { ...h }) }),
8202
8202
  /* @__PURE__ */ r(f, { control: o, name: "vertical_align", render: ({
8203
8203
  field: h
8204
8204
  }) => /* @__PURE__ */ r(lc, { ...h }) })
@@ -8264,7 +8264,7 @@ const Oy = {
8264
8264
  createConfig() {
8265
8265
  return {
8266
8266
  version: 2,
8267
- config: Ae(yi)
8267
+ config: Ae(_i)
8268
8268
  };
8269
8269
  },
8270
8270
  triggers: [cc],
@@ -8409,7 +8409,7 @@ const uc = ee(({
8409
8409
  }
8410
8410
  ),
8411
8411
  d !== "" && /* @__PURE__ */ r(
8412
- Ea,
8412
+ Oa,
8413
8413
  {
8414
8414
  size: "sm",
8415
8415
  data: c,
@@ -8980,7 +8980,7 @@ const h_ = {
8980
8980
  }, {
8981
8981
  lang: "zh",
8982
8982
  resources: p_
8983
- }], _i = {
8983
+ }], xi = {
8984
8984
  id: "builtin:echarts:click-echart:series",
8985
8985
  displayName: "viz.cartesian_chart.click_series.label",
8986
8986
  nameRender: f_,
@@ -9268,12 +9268,12 @@ function k_(e, t, n, a, i, o) {
9268
9268
  };
9269
9269
  });
9270
9270
  }
9271
- function xi(e, t, n) {
9271
+ function vi(e, t, n) {
9272
9272
  const a = gt(e, t), i = gt(e, n);
9273
9273
  return C.zip(a, i);
9274
9274
  }
9275
9275
  function z_(e, t, n, a) {
9276
- const i = xi(t, n, a);
9276
+ const i = vi(t, n, a);
9277
9277
  return C.unionBy(i, e, 0);
9278
9278
  }
9279
9279
  function T_({
@@ -9301,9 +9301,9 @@ function D_({
9301
9301
  y_axis_data_key: i,
9302
9302
  valueTypedXAxis: o
9303
9303
  });
9304
- const l = xi(t, a, i), s = C.groupBy(l, "0");
9304
+ const l = vi(t, a, i), s = C.groupBy(l, "0");
9305
9305
  return e.map(([d]) => {
9306
- const p = s[d].map((b) => b[1]), g = ei(p, n);
9306
+ const p = s[d].map((b) => b[1]), g = ti(p, n);
9307
9307
  return [d, g];
9308
9308
  });
9309
9309
  }
@@ -9318,7 +9318,7 @@ function I_({
9318
9318
  columnKey: o
9319
9319
  } = j(e), l = C.groupBy(t[i], o);
9320
9320
  return Object.entries(l).forEach(([s, c]) => {
9321
- l[s] = xi({
9321
+ l[s] = vi({
9322
9322
  [i]: c
9323
9323
  }, n, a);
9324
9324
  }), l;
@@ -9546,7 +9546,7 @@ function R_(e) {
9546
9546
  }) => n
9547
9547
  });
9548
9548
  }
9549
- function vi(e, t) {
9549
+ function wi(e, t) {
9550
9550
  const n = {};
9551
9551
  return t.map((a) => {
9552
9552
  const i = Ht(a, e);
@@ -9655,7 +9655,7 @@ const N_ = {
9655
9655
  }]
9656
9656
  };
9657
9657
  function B_(e, t, n) {
9658
- const a = vi(t, n), i = R_(e), o = C.uniq(gt(t, e.x_axis_data_key)), l = V_(e, o, t, i, n, a), s = w_(e, t), c = {
9658
+ const a = wi(t, n), i = R_(e), o = C.uniq(gt(t, e.x_axis_data_key)), l = V_(e, o, t, i, n, a), s = w_(e, t), c = {
9659
9659
  xAxis: E_(e, o),
9660
9660
  yAxis: q_(e, i, l),
9661
9661
  series: [...l, ...s],
@@ -9687,7 +9687,7 @@ function j_({
9687
9687
  variables: o,
9688
9688
  onChartRenderFinished: l
9689
9689
  }) {
9690
- const s = Tn(t, e.x_axis_data_key), c = ut(i.triggerManager, _i.id), d = ae((I) => {
9690
+ const s = Tn(t, e.x_axis_data_key), c = ut(i.triggerManager, xi.id), d = ae((I) => {
9691
9691
  const M = C.get(s, I.name, {
9692
9692
  error: "rowData is not found"
9693
9693
  });
@@ -9697,7 +9697,7 @@ function j_({
9697
9697
  rowData: M
9698
9698
  });
9699
9699
  });
9700
- }, [s, c, i]), h = R.useMemo(() => B_(e, t, o), [e, t]), p = R.useRef(), g = fa(l), b = ae(() => {
9700
+ }, [s, c, i]), h = R.useMemo(() => B_(e, t, o), [e, t]), p = R.useRef(), g = ba(l), b = ae(() => {
9701
9701
  var I;
9702
9702
  g.current((I = p.current) == null ? void 0 : I.getOption());
9703
9703
  }, []), x = z(() => ({
@@ -10100,7 +10100,7 @@ const X_ = ({
10100
10100
  minimap: {
10101
10101
  enabled: !1
10102
10102
  }
10103
- } }) }), wi = {
10103
+ } }) }), Si = {
10104
10104
  static: {
10105
10105
  type: "static",
10106
10106
  size: 10
@@ -10137,7 +10137,7 @@ const X_ = ({
10137
10137
  func_content: g
10138
10138
  }));
10139
10139
  }, p = () => {
10140
- h(wi.dynamic.func_content);
10140
+ h(Si.dynamic.func_content);
10141
10141
  };
10142
10142
  return /* @__PURE__ */ u(q, { children: [
10143
10143
  /* @__PURE__ */ r($, { sx: {
@@ -10173,7 +10173,7 @@ const X_ = ({
10173
10173
  });
10174
10174
  };
10175
10175
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(ne, { defaultValue: 18, placeholder: "1 ~ 100", label: " ", hideControls: !0, value: e.size, onChange: n }) });
10176
- }, Si = ee(({
10176
+ }, Ci = ee(({
10177
10177
  label: e,
10178
10178
  value: t,
10179
10179
  onChange: n
@@ -10189,7 +10189,7 @@ const X_ = ({
10189
10189
  value: "dynamic"
10190
10190
  }], [o.language]), s = (c) => {
10191
10191
  c !== "static" && c !== "dynamic" || n({
10192
- ...wi[c]
10192
+ ...Si[c]
10193
10193
  });
10194
10194
  };
10195
10195
  return /* @__PURE__ */ u(ze, { cols: 2, children: [
@@ -10329,7 +10329,7 @@ function tx({
10329
10329
  label: l("aggregation.option.pick_record.method.last"),
10330
10330
  value: "last"
10331
10331
  }] }),
10332
- t.type === "custom" && /* @__PURE__ */ r(li, { title: l("aggregation.option.custom.title"), label: "", triggerLabel: l("aggregation.option.custom.label_trigger"), value: t.config.func, onChange: h, defaultValue: uo, triggerButtonProps: {
10332
+ t.type === "custom" && /* @__PURE__ */ r(si, { title: l("aggregation.option.custom.title"), label: "", triggerLabel: l("aggregation.option.custom.label_trigger"), value: t.config.func, onChange: h, defaultValue: uo, triggerButtonProps: {
10333
10333
  size: "xs",
10334
10334
  sx: {
10335
10335
  flexGrow: 0,
@@ -10343,7 +10343,7 @@ function tx({
10343
10343
  i && /* @__PURE__ */ r(V, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
10344
10344
  ] });
10345
10345
  }
10346
- const Ci = R.forwardRef(tx), Un = ee(({
10346
+ const ki = R.forwardRef(tx), Un = ee(({
10347
10347
  label: e,
10348
10348
  value: t,
10349
10349
  onChange: n,
@@ -10524,7 +10524,7 @@ function rx({
10524
10524
  }, children: /* @__PURE__ */ r(Ce, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
10525
10525
  o && /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
10526
10526
  field: s
10527
- }) => /* @__PURE__ */ r(Si, { ...s }) })
10527
+ }) => /* @__PURE__ */ r(Ci, { ...s }) })
10528
10528
  ] }),
10529
10529
  /* @__PURE__ */ r(f, { name: `series.${t}.areaStyle`, control: e, render: ({
10530
10530
  field: s
@@ -10537,7 +10537,7 @@ function ax({
10537
10537
  }) {
10538
10538
  return /* @__PURE__ */ r(f, { name: `series.${t}.symbolSize`, control: e, render: ({
10539
10539
  field: n
10540
- }) => /* @__PURE__ */ r(Si, { label: "Size", ...n }) });
10540
+ }) => /* @__PURE__ */ r(Ci, { label: "Size", ...n }) });
10541
10541
  }
10542
10542
  function ix({
10543
10543
  control: e,
@@ -10553,7 +10553,7 @@ function ix({
10553
10553
  }, children: [
10554
10554
  /* @__PURE__ */ r(T, { children: /* @__PURE__ */ r(f, { name: `series.${t}.type`, control: e, render: ({
10555
10555
  field: s
10556
- }) => /* @__PURE__ */ r(Ea, { data: [{
10556
+ }) => /* @__PURE__ */ r(Oa, { data: [{
10557
10557
  label: i("chart.series.line.label"),
10558
10558
  value: "line"
10559
10559
  }, {
@@ -10593,7 +10593,7 @@ function ix({
10593
10593
  }, ...s }) }),
10594
10594
  /* @__PURE__ */ r(f, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
10595
10595
  field: s
10596
- }) => /* @__PURE__ */ r(Ci, { label: i("viz.cartesian_chart.series.aggregation.label"), value: s.value ?? Hn, onChange: s.onChange, pt: 0, withFallback: !1 }) })
10596
+ }) => /* @__PURE__ */ r(ki, { label: i("viz.cartesian_chart.series.aggregation.label"), value: s.value ?? Hn, onChange: s.onChange, pt: 0, withFallback: !1 }) })
10597
10597
  ] }),
10598
10598
  /* @__PURE__ */ r(y, { grow: !0, children: /* @__PURE__ */ r(f, { name: `series.${t}.group_by_key`, control: e, render: ({
10599
10599
  field: s
@@ -10633,7 +10633,7 @@ function ox({
10633
10633
  name: vn(),
10634
10634
  unit: ce(),
10635
10635
  showSymbol: !1,
10636
- symbolSize: wi.static,
10636
+ symbolSize: Si.static,
10637
10637
  y_axis_data_key: "value",
10638
10638
  yAxisIndex: 0,
10639
10639
  label_position: "top",
@@ -11031,7 +11031,7 @@ const bx = {
11031
11031
  config: Ae(hc)
11032
11032
  };
11033
11033
  },
11034
- triggers: [_i],
11034
+ triggers: [xi],
11035
11035
  translation: m_
11036
11036
  };
11037
11037
  function yx(e) {
@@ -11184,7 +11184,7 @@ function zx(e) {
11184
11184
  funnelAlign: "center"
11185
11185
  };
11186
11186
  }
11187
- const ki = {
11187
+ const zi = {
11188
11188
  series: [zx("Funnel")]
11189
11189
  };
11190
11190
  function Tx({
@@ -11212,7 +11212,7 @@ function Dx({
11212
11212
  }) {
11213
11213
  const {
11214
11214
  value: n
11215
- } = K(e.instanceData, "config"), a = z(() => pe({}, n, ki), [n]), i = e.data, {
11215
+ } = K(e.instanceData, "config"), a = z(() => pe({}, n, zi), [n]), i = e.data, {
11216
11216
  width: o,
11217
11217
  height: l
11218
11218
  } = e.viewport;
@@ -11376,7 +11376,7 @@ function Lx({
11376
11376
  const {
11377
11377
  value: t,
11378
11378
  set: n
11379
- } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, ki), [t]), {
11379
+ } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, zi), [t]), {
11380
11380
  control: i,
11381
11381
  handleSubmit: o,
11382
11382
  watch: l,
@@ -11531,7 +11531,7 @@ const Ox = {
11531
11531
  configRender: Lx,
11532
11532
  createConfig: () => ({
11533
11533
  version: 3,
11534
- config: ki
11534
+ config: zi
11535
11535
  }),
11536
11536
  translation: Px
11537
11537
  }, Fx = ({
@@ -11547,7 +11547,7 @@ const Ox = {
11547
11547
  label: String(o + 1),
11548
11548
  value: String(o + 1)
11549
11549
  })), [n]);
11550
- return /* @__PURE__ */ r(Ra, { size: "xs", value: e, onChange: (i) => {
11550
+ return /* @__PURE__ */ r(Ea, { size: "xs", value: e, onChange: (i) => {
11551
11551
  t(Number(i.currentTarget.value));
11552
11552
  }, data: a });
11553
11553
  }, Nx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r($, { sx: {
@@ -12072,7 +12072,7 @@ const dr = ({
12072
12072
  ] }),
12073
12073
  s === "pieces" && /* @__PURE__ */ r(nv, { form: e })
12074
12074
  ] });
12075
- }, zi = ({
12075
+ }, Ti = ({
12076
12076
  form: e
12077
12077
  }) => {
12078
12078
  const {
@@ -12100,7 +12100,7 @@ const dr = ({
12100
12100
  /* @__PURE__ */ r(Jx, { visualMap: i }),
12101
12101
  /* @__PURE__ */ r(f, { name: "visualMap.type", control: a, render: ({
12102
12102
  field: s
12103
- }) => /* @__PURE__ */ r(Ea, { mt: -10, data: o, sx: {
12103
+ }) => /* @__PURE__ */ r(Oa, { mt: -10, data: o, sx: {
12104
12104
  flex: 1
12105
12105
  }, ...s, onChange: l }) }),
12106
12106
  /* @__PURE__ */ u(y, { grow: !0, children: [
@@ -12132,7 +12132,7 @@ function mc(e, t, n, a, i, o) {
12132
12132
  const Y = C.clone(E), {
12133
12133
  followVisualMap: U,
12134
12134
  color: de
12135
- } = ii(Y.value[2], c, d, e.visualMap);
12135
+ } = oi(Y.value[2], c, d, e.visualMap);
12136
12136
  return U || (Y.visualMap = !1, Y.itemStyle = {
12137
12137
  color: de
12138
12138
  }), Y;
@@ -12223,7 +12223,7 @@ function fc({
12223
12223
  page_size: e
12224
12224
  };
12225
12225
  }
12226
- const Ti = {
12226
+ const Di = {
12227
12227
  x_axis: {
12228
12228
  name: "",
12229
12229
  data_key: "",
@@ -12303,7 +12303,7 @@ function dv({
12303
12303
  value: a
12304
12304
  } = K(e.instanceData, "config"), {
12305
12305
  variables: i
12306
- } = e, o = z(() => pe({}, a, Ti), [a]), l = e.data, {
12306
+ } = e, o = z(() => pe({}, a, Di), [a]), l = e.data, {
12307
12307
  width: s,
12308
12308
  height: c
12309
12309
  } = e.viewport, {
@@ -12311,7 +12311,7 @@ function dv({
12311
12311
  groupedFullData: h
12312
12312
  } = iv(l, o);
12313
12313
  N(() => {
12314
- const x = $a(h).flat();
12314
+ const x = Pa(h).flat();
12315
12315
  We(t, mc(o, l, x, i, s, c));
12316
12316
  }, [h]);
12317
12317
  const [p, g] = Q(1), b = ov(h, o, p);
@@ -12358,7 +12358,7 @@ function uv({
12358
12358
  } }) }),
12359
12359
  /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
12360
12360
  field: i
12361
- }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(qa, { size: 16 }), disabled: !a, ...i }) })
12361
+ }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Na, { size: 16 }), disabled: !a, ...i }) })
12362
12362
  ] })
12363
12363
  ] });
12364
12364
  }
@@ -12538,7 +12538,7 @@ function yv({
12538
12538
  } = _(), {
12539
12539
  value: n,
12540
12540
  set: a
12541
- } = K(e.instanceData, "config"), i = z(() => n ? pe({}, n) : Ti, [n]), o = z(() => C.cloneDeep(i), [i]);
12541
+ } = K(e.instanceData, "config"), i = z(() => n ? pe({}, n) : Di, [n]), o = z(() => C.cloneDeep(i), [i]);
12542
12542
  N(() => {
12543
12543
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
12544
12544
  }, [i, o]);
@@ -12584,7 +12584,7 @@ function yv({
12584
12584
  /* @__PURE__ */ r(S.Panel, { value: "X Axis", children: /* @__PURE__ */ r(fv, { control: s, watch: d }) }),
12585
12585
  /* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(bv, { control: s, watch: d }) }),
12586
12586
  /* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(uv, { control: s, watch: d }) }),
12587
- /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(zi, { form: l }) }),
12587
+ /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(Ti, { form: l }) }),
12588
12588
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(gv, { control: s, watch: d }) }),
12589
12589
  /* @__PURE__ */ r(S.Panel, { value: "Pagination", children: /* @__PURE__ */ r(hv, { control: s, watch: d }) })
12590
12590
  ] })
@@ -12800,7 +12800,7 @@ const Mv = {
12800
12800
  configRender: yv,
12801
12801
  createConfig: () => ({
12802
12802
  version: 8,
12803
- config: Ti
12803
+ config: Di
12804
12804
  }),
12805
12805
  triggers: [gc],
12806
12806
  translation: vv
@@ -12878,7 +12878,7 @@ function Av(e) {
12878
12878
  const yc = {
12879
12879
  label_template: "${percentage.x} of ${x_axis.name} causes ${percentage.y} of ${bar.name}",
12880
12880
  color: "#789AB4"
12881
- }, Di = {
12881
+ }, Ii = {
12882
12882
  x_axis: {
12883
12883
  name: "X Axis",
12884
12884
  data_key: "",
@@ -13191,7 +13191,7 @@ function Uv(e, t, n, a) {
13191
13191
  });
13192
13192
  }
13193
13193
  function Kv(e, t, n) {
13194
- const a = vi(t, n), i = Ev(e);
13194
+ const a = wi(t, n), i = Ev(e);
13195
13195
  return {
13196
13196
  dataZoom: Ur(e.dataZoom),
13197
13197
  tooltip: Qv(e, i),
@@ -13218,7 +13218,7 @@ function Yv({
13218
13218
  } = K(e.instanceData, "config"), i = e.data, {
13219
13219
  width: o,
13220
13220
  height: l
13221
- } = e.viewport, s = pe({}, a, Di), c = Kv(s, i, n), d = ht({
13221
+ } = e.viewport, s = pe({}, a, Ii), c = Kv(s, i, n), d = ht({
13222
13222
  vizManager: e.vizManager,
13223
13223
  instance: t
13224
13224
  }), h = ut(d.triggerManager, bc.id), p = Tn(i, s.x_axis.data_key), g = ae((I) => {
@@ -13517,7 +13517,7 @@ function ow({
13517
13517
  set: a
13518
13518
  } = K(e.instanceData, "config"), {
13519
13519
  variables: i
13520
- } = e, o = z(() => pe({}, n, Di), [n]), {
13520
+ } = e, o = z(() => pe({}, n, Ii), [n]), {
13521
13521
  control: l,
13522
13522
  handleSubmit: s,
13523
13523
  watch: c,
@@ -13749,7 +13749,7 @@ const bw = {
13749
13749
  createConfig() {
13750
13750
  return {
13751
13751
  version: 10,
13752
- config: Ae(Di)
13752
+ config: Ae(Ii)
13753
13753
  };
13754
13754
  },
13755
13755
  triggers: [bc],
@@ -13868,7 +13868,7 @@ function ww(e, t, n) {
13868
13868
  },
13869
13869
  labelLayout: function(a) {
13870
13870
  const i = a.labelRect.x < n / 2, o = a.labelLinePoints;
13871
- return Va(o, [2, 0], i ? a.labelRect.x : a.labelRect.x + a.labelRect.width), {
13871
+ return $a(o, [2, 0], i ? a.labelRect.x : a.labelRect.x + a.labelRect.width), {
13872
13872
  labelLinePoints: o
13873
13873
  };
13874
13874
  },
@@ -14094,7 +14094,7 @@ const $w = ee(({
14094
14094
  }] = De(!1), {
14095
14095
  ref: p,
14096
14096
  handleRef: g
14097
- } = Ka({
14097
+ } = Ya({
14098
14098
  id: e.id,
14099
14099
  index: t
14100
14100
  }), b = (v) => {
@@ -14240,7 +14240,7 @@ const Ow = ({
14240
14240
  /* @__PURE__ */ r(k, { size: "sm", fw: "500", mb: -4, children: o("viz.pie_chart.color.map.label") }),
14241
14241
  /* @__PURE__ */ r(Ow, { value: e, onChange: t })
14242
14242
  ] }),
14243
- /* @__PURE__ */ r(Ua, { onDragEnd: h, children: l.map((p, g) => /* @__PURE__ */ r(Pw, { row: p, handleChange: d(g), handleRemove: () => c(g), index: g, names: a }, p.id)) }),
14243
+ /* @__PURE__ */ r(Ka, { onDragEnd: h, children: l.map((p, g) => /* @__PURE__ */ r(Pw, { row: p, handleChange: d(g), handleRemove: () => c(g), index: g, names: a }, p.id)) }),
14244
14244
  /* @__PURE__ */ r(Aw, { append: s })
14245
14245
  ] });
14246
14246
  });
@@ -15609,7 +15609,7 @@ function H0(e) {
15609
15609
  zIndex: 1
15610
15610
  }, children: /* @__PURE__ */ r(Q0, { ...e }) });
15611
15611
  }
15612
- const Ii = {
15612
+ const Mi = {
15613
15613
  x_axis: {
15614
15614
  name: "X Axis",
15615
15615
  data_key: "",
@@ -15665,7 +15665,7 @@ function G0({
15665
15665
  ...M,
15666
15666
  [v.columnKey]: Number(M[v.columnKey])
15667
15667
  });
15668
- }, [e.data, n == null ? void 0 : n.regression.y_axis_data_key]), l = z(() => R0(He({}, n, Ii), o), [n, o]), s = Ot(null), c = (p) => {
15668
+ }, [e.data, n == null ? void 0 : n.regression.y_axis_data_key]), l = z(() => R0(He({}, n, Mi), o), [n, o]), s = Ot(null), c = (p) => {
15669
15669
  s.current = p;
15670
15670
  }, d = ae(() => {
15671
15671
  const p = s.current;
@@ -15794,7 +15794,7 @@ function Y0({
15794
15794
  const {
15795
15795
  value: t,
15796
15796
  set: n
15797
- } = K(e.instanceData, "config"), a = z(() => pe({}, t, Ii), [t]), {
15797
+ } = K(e.instanceData, "config"), a = z(() => pe({}, t, Mi), [t]), {
15798
15798
  control: i,
15799
15799
  handleSubmit: o,
15800
15800
  watch: l,
@@ -15924,7 +15924,7 @@ const r1 = {
15924
15924
  createConfig() {
15925
15925
  return {
15926
15926
  version: 3,
15927
- config: Ae(Ii)
15927
+ config: Ae(Mi)
15928
15928
  };
15929
15929
  },
15930
15930
  translation: t1
@@ -17246,7 +17246,7 @@ function nS({
17246
17246
  /* @__PURE__ */ r(A, { mb: -15, label: n("chart.style.label"), labelPosition: "center" }),
17247
17247
  /* @__PURE__ */ r(f, { name: "scatter.symbolSize", control: e, render: ({
17248
17248
  field: a
17249
- }) => /* @__PURE__ */ r(Si, { ...a }) }),
17249
+ }) => /* @__PURE__ */ r(Ci, { ...a }) }),
17250
17250
  /* @__PURE__ */ r(f, { name: "scatter.color", control: e, render: ({
17251
17251
  field: a
17252
17252
  }) => /* @__PURE__ */ r(eS, { ...a }) }),
@@ -17614,7 +17614,7 @@ function fS(e) {
17614
17614
  }
17615
17615
  function bS(e) {
17616
17616
  const t = Ae(e), n = se(t, "color.valueRange");
17617
- return n !== void 0 && Va(t, "color.valueRange", n.map((a) => Number(a))), t;
17617
+ return n !== void 0 && $a(t, "color.valueRange", n.map((a) => Number(a))), t;
17618
17618
  }
17619
17619
  function yS(e, t) {
17620
17620
  return !t || t === "left" ? e : `<p style="text-align: ${t}">${e}</p>`;
@@ -17885,7 +17885,7 @@ const MS = {
17885
17885
  configRender: IS,
17886
17886
  triggers: [Mc],
17887
17887
  translation: VS
17888
- }, Mi = {
17888
+ }, Li = {
17889
17889
  label_key: "",
17890
17890
  value_key: "",
17891
17891
  group_key: "",
@@ -18050,7 +18050,7 @@ function jS({
18050
18050
  variables: n
18051
18051
  } = e, {
18052
18052
  value: a
18053
- } = K(e.instanceData, "config"), i = z(() => pe({}, a, Mi), [a]), o = e.data, {
18053
+ } = K(e.instanceData, "config"), i = z(() => pe({}, a, Li), [a]), o = e.data, {
18054
18054
  width: l,
18055
18055
  height: s
18056
18056
  } = e.viewport, c = R.useRef(null), d = R.useCallback(() => {
@@ -18174,7 +18174,7 @@ function WS({
18174
18174
  } = _(), {
18175
18175
  value: n,
18176
18176
  set: a
18177
- } = K(e.instanceData, "config"), i = z(() => He({}, n, Mi), [n]), o = z(() => C.clone(i), [i]), {
18177
+ } = K(e.instanceData, "config"), i = z(() => He({}, n, Li), [n]), o = z(() => C.clone(i), [i]), {
18178
18178
  control: l,
18179
18179
  handleSubmit: s,
18180
18180
  watch: c,
@@ -18365,7 +18365,7 @@ const rC = {
18365
18365
  createConfig() {
18366
18366
  return {
18367
18367
  version: 6,
18368
- config: Ae(Mi)
18368
+ config: Ae(Li)
18369
18369
  };
18370
18370
  },
18371
18371
  translation: YS
@@ -18766,7 +18766,7 @@ function SC({
18766
18766
  } }) })
18767
18767
  ] });
18768
18768
  }
18769
- const Li = {
18769
+ const Vi = {
18770
18770
  id: "builtin:table:click-cell-content",
18771
18771
  displayName: "viz.table.click_cell.click_cell_content",
18772
18772
  nameRender: TC,
@@ -18914,7 +18914,7 @@ class IC {
18914
18914
  };
18915
18915
  }
18916
18916
  getRelatedTrigger() {
18917
- return this.triggers.filter((n) => n.schemaRef === Li.id).filter((n) => {
18917
+ return this.triggers.filter((n) => n.schemaRef === Vi.id).filter((n) => {
18918
18918
  const a = this.getColIndex(this.cell), i = se(this.cell.column.columnDef.meta, "value_field"), o = se(n.config, "column");
18919
18919
  return o == a || o == i;
18920
18920
  });
@@ -18939,7 +18939,7 @@ class IC {
18939
18939
  }
18940
18940
  }
18941
18941
  const MC = (e) => {
18942
- const t = ht(e), n = ut(t.triggerManager, Li.id), {
18942
+ const t = ht(e), n = ut(t.triggerManager, Vi.id), {
18943
18943
  colorManager: a
18944
18944
  } = Jt(nn);
18945
18945
  return ae((i) => new IC(e.getColIndex, i, n, t, a), [n, t, e.getColIndex]);
@@ -19025,11 +19025,11 @@ function Mo({
19025
19025
  vizManager: i.vizManager,
19026
19026
  instance: o
19027
19027
  }), x = z(() => {
19028
- const lt = Ya();
19028
+ const lt = Xa();
19029
19029
  return g.map((Oe) => {
19030
19030
  const Cu = qm(Oe.value_field);
19031
19031
  return lt.accessor(Cu.columnKey, {
19032
- cell: (ia) => /* @__PURE__ */ r(wC, { tableCellContext: b(ia.cell), value: ia.getValue(), type: Oe.value_type, row_data: ia.row.original, ...Oe }),
19032
+ cell: (oa) => /* @__PURE__ */ r(wC, { tableCellContext: b(oa.cell), value: oa.getValue(), type: Oe.value_type, row_data: oa.row.original, ...Oe }),
19033
19033
  header: Oe.label,
19034
19034
  enableSorting: !0,
19035
19035
  meta: Oe,
@@ -19046,7 +19046,7 @@ function Mo({
19046
19046
  pageSize: Ze
19047
19047
  } = M;
19048
19048
  return Ze === 0 ? e : e.slice(lt * Ze, (lt + 1) * Ze);
19049
- }, [e, M]), Y = Math.ceil(e.length / M.pageSize), U = Xa({
19049
+ }, [e, M]), Y = Math.ceil(e.length / M.pageSize), U = Za({
19050
19050
  data: E,
19051
19051
  state: {
19052
19052
  sorting: v
@@ -19054,7 +19054,7 @@ function Mo({
19054
19054
  onSortingChange: I,
19055
19055
  columns: x,
19056
19056
  columnResizeMode: "onChange",
19057
- getCoreRowModel: Za(),
19057
+ getCoreRowModel: Ja(),
19058
19058
  getSortedRowModel: _p()
19059
19059
  }), {
19060
19060
  rows: de
@@ -19077,7 +19077,7 @@ function Mo({
19077
19077
  width: Ze.getSize()
19078
19078
  }, children: [
19079
19079
  /* @__PURE__ */ r(uC, { header: Ze, cx: p }),
19080
- /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: Ze.getResizeHandler(), onTouchStart: Ze.getResizeHandler(), className: `resizer ${Ze.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ba, {}) })
19080
+ /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: Ze.getResizeHandler(), onTouchStart: Ze.getResizeHandler(), className: `resizer ${Ze.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(ja, {}) })
19081
19081
  ] }, Ze.id)) }, lt.id)) }),
19082
19082
  /* @__PURE__ */ r(SC, { tableContainerRef: J, rows: de })
19083
19083
  ] })
@@ -19261,7 +19261,7 @@ const NC = ee((e, t) => {
19261
19261
  t: n
19262
19262
  } = _(), {
19263
19263
  colorManager: a
19264
- } = Jt(nn), [i, o] = Q(Fc(e.value)), [l, s] = Q(FC(a, e.value)), c = fa(l), [d, h] = Q(qC(a, e.value)), p = fa(d), g = (v) => {
19264
+ } = Jt(nn), [i, o] = Q(Fc(e.value)), [l, s] = Q(FC(a, e.value)), c = ba(l), [d, h] = Q(qC(a, e.value)), p = ba(d), g = (v) => {
19265
19265
  var I, M, P;
19266
19266
  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") : (P = e.onChange) == null || P.call(e, p.current);
19267
19267
  }, b = (v) => {
@@ -19329,7 +19329,7 @@ const NC = ee((e, t) => {
19329
19329
  ] })
19330
19330
  ] }) })
19331
19331
  ] });
19332
- }), da = () => /* @__PURE__ */ r(k, { c: "dimmed", size: "12px", children: "px" }), QC = ({
19332
+ }), ua = () => /* @__PURE__ */ r(k, { c: "dimmed", size: "12px", children: "px" }), QC = ({
19333
19333
  control: e,
19334
19334
  index: t,
19335
19335
  watch: n
@@ -19362,15 +19362,15 @@ const NC = ee((e, t) => {
19362
19362
  ] }),
19363
19363
  /* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: a("style.label"), labelPosition: "center" }),
19364
19364
  /* @__PURE__ */ u(y, { grow: !0, children: [
19365
- /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.min_width"), rightSection: /* @__PURE__ */ r(da, {}), disabled: !0 }),
19365
+ /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.min_width"), rightSection: /* @__PURE__ */ r(ua, {}), disabled: !0 }),
19366
19366
  /* @__PURE__ */ r(f, { name: `columns.${t}.width`, control: e, render: ({
19367
19367
  field: l
19368
- }) => /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.width"), rightSection: /* @__PURE__ */ r(da, {}), ...l }) }),
19369
- /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.max_width"), rightSection: /* @__PURE__ */ r(da, {}), disabled: !0 })
19368
+ }) => /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.width"), rightSection: /* @__PURE__ */ r(ua, {}), ...l }) }),
19369
+ /* @__PURE__ */ r(ne, { hideControls: !0, label: a("viz.table.column.max_width"), rightSection: /* @__PURE__ */ r(ua, {}), disabled: !0 })
19370
19370
  ] }),
19371
19371
  /* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `columns.${t}.align`, control: e, render: ({
19372
19372
  field: l
19373
- }) => /* @__PURE__ */ r(bi, { ...l }) }) }),
19373
+ }) => /* @__PURE__ */ r(yi, { ...l }) }) }),
19374
19374
  /* @__PURE__ */ r(f, { name: `columns.${t}.cellBackgroundColor`, control: e, render: ({
19375
19375
  field: l
19376
19376
  }) => /* @__PURE__ */ r(NC, { ...l }) })
@@ -19425,12 +19425,12 @@ function GC({
19425
19425
  }, children: [
19426
19426
  /* @__PURE__ */ r(f, { name: "horizontalSpacing", control: e, render: ({
19427
19427
  field: a
19428
- }) => /* @__PURE__ */ r(Sa, { disabled: !0, label: n("viz.table.style.horizontal_spacing"), sx: {
19428
+ }) => /* @__PURE__ */ r(Ca, { disabled: !0, label: n("viz.table.style.horizontal_spacing"), sx: {
19429
19429
  flex: 1
19430
19430
  }, ...a }) }),
19431
19431
  /* @__PURE__ */ r(f, { name: "verticalSpacing", control: e, render: ({
19432
19432
  field: a
19433
- }) => /* @__PURE__ */ r(Sa, { disabled: !0, label: n("viz.table.style.vertical_spacing"), sx: {
19433
+ }) => /* @__PURE__ */ r(Ca, { disabled: !0, label: n("viz.table.style.vertical_spacing"), sx: {
19434
19434
  flex: 1
19435
19435
  }, ...a }) })
19436
19436
  ] }),
@@ -19535,7 +19535,7 @@ function KC({
19535
19535
  ] })
19536
19536
  ] });
19537
19537
  }
19538
- const Vo = new dC(), Ca = {
19538
+ const Vo = new dC(), ka = {
19539
19539
  createConfig() {
19540
19540
  return {
19541
19541
  version: Vo.VERSION,
@@ -19548,10 +19548,10 @@ const Vo = new dC(), Ca = {
19548
19548
  name: "table",
19549
19549
  viewRender: $C,
19550
19550
  configRender: KC,
19551
- triggers: [Li],
19551
+ triggers: [Vi],
19552
19552
  translation: RC
19553
19553
  }, qc = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
19554
- `), Vi = {
19554
+ `), $i = {
19555
19555
  func_content: qc,
19556
19556
  horizontal_align: "left",
19557
19557
  font_size: "14px",
@@ -19560,7 +19560,7 @@ const Vo = new dC(), Ca = {
19560
19560
  context: e
19561
19561
  }) => {
19562
19562
  const t = _e(), {
19563
- value: n = Vi
19563
+ value: n = $i
19564
19564
  } = K(e.instanceData, "config"), {
19565
19565
  variables: a
19566
19566
  } = e, i = e.data, {
@@ -19664,7 +19664,7 @@ function tk({
19664
19664
  } = _(), {
19665
19665
  value: n,
19666
19666
  set: a
19667
- } = K(e.instanceData, "config"), i = z(() => He({}, n, Vi), [n]), o = z(() => {
19667
+ } = K(e.instanceData, "config"), i = z(() => He({}, n, $i), [n]), o = z(() => {
19668
19668
  const {
19669
19669
  func_content: p,
19670
19670
  horizontal_align: g,
@@ -19701,7 +19701,7 @@ function tk({
19701
19701
  /* @__PURE__ */ r(A, { mt: 10, mb: -10, variant: "dashed", label: t("chart.style.label"), labelPosition: "center" }),
19702
19702
  /* @__PURE__ */ r(f, { name: "horizontal_align", control: l, render: ({
19703
19703
  field: p
19704
- }) => /* @__PURE__ */ r(bi, { ...p }) }),
19704
+ }) => /* @__PURE__ */ r(yi, { ...p }) }),
19705
19705
  /* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
19706
19706
  field: p
19707
19707
  }) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
@@ -19763,7 +19763,7 @@ const ok = {
19763
19763
  createConfig() {
19764
19764
  return {
19765
19765
  version: 1,
19766
- config: Ae(Vi)
19766
+ config: Ae($i)
19767
19767
  };
19768
19768
  },
19769
19769
  translation: ak
@@ -19817,18 +19817,18 @@ const ck = ({
19817
19817
  } catch (c) {
19818
19818
  throw $o(c, "response.data.detail"), $o(c, "response.data.error"), console.error(c), c;
19819
19819
  }
19820
- }, $i = {
19820
+ }, Pi = {
19821
19821
  expertSystemURL: "",
19822
19822
  path: "",
19823
19823
  goal: "",
19824
19824
  question: ""
19825
- }, ka = {
19825
+ }, za = {
19826
19826
  height: "100%",
19827
19827
  overflowY: "auto",
19828
- ...ri
19828
+ ...ai
19829
19829
  }, Po = ({
19830
19830
  message: e
19831
- }) => /* @__PURE__ */ r($, { sx: ka, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19831
+ }) => /* @__PURE__ */ r($, { sx: za, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19832
19832
  __html: e
19833
19833
  }, style: {
19834
19834
  fontSize: "14px",
@@ -19856,7 +19856,7 @@ function uk({
19856
19856
  }) {
19857
19857
  const {
19858
19858
  value: t
19859
- } = K(e.instanceData, "config"), n = z(() => He({}, t, $i), [t]), {
19859
+ } = K(e.instanceData, "config"), n = z(() => He({}, t, Pi), [t]), {
19860
19860
  width: a,
19861
19861
  height: i
19862
19862
  } = e.viewport, o = e.data, {
@@ -19872,7 +19872,7 @@ function uk({
19872
19872
  return !a || !i || !n ? null : c ? /* @__PURE__ */ r($, { sx: {
19873
19873
  position: "relative",
19874
19874
  height: i
19875
- }, children: /* @__PURE__ */ r(un, { visible: !0 }) }) : s ? /* @__PURE__ */ r($, { sx: ka, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r(dk, { error: s, width: a, height: i }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ r($, { sx: ka, "data-enable-scrollbar": !0, children: l.replies.map((d, h) => /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19875
+ }, children: /* @__PURE__ */ r(un, { visible: !0 }) }) : s ? /* @__PURE__ */ r($, { sx: za, "data-enable-scrollbar": !0, children: /* @__PURE__ */ r(dk, { error: s, width: a, height: i }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ r($, { sx: za, "data-enable-scrollbar": !0, children: l.replies.map((d, h) => /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19876
19876
  __html: d.interpretation.html
19877
19877
  } }, h)) });
19878
19878
  }
@@ -19882,7 +19882,7 @@ function hk({
19882
19882
  const {
19883
19883
  value: t,
19884
19884
  set: n
19885
- } = K(e.instanceData, "config"), a = z(() => He({}, t, $i), [t]), {
19885
+ } = K(e.instanceData, "config"), a = z(() => He({}, t, Pi), [t]), {
19886
19886
  control: i,
19887
19887
  handleSubmit: o,
19888
19888
  watch: l,
@@ -19953,7 +19953,7 @@ const bk = {
19953
19953
  createConfig() {
19954
19954
  return {
19955
19955
  version: 1,
19956
- config: Ae($i)
19956
+ config: Ae(Pi)
19957
19957
  };
19958
19958
  },
19959
19959
  translation: gk
@@ -20133,7 +20133,7 @@ const Nc = {
20133
20133
  description: "Data of the row",
20134
20134
  valueType: "object"
20135
20135
  }]
20136
- }, Pi = {
20136
+ }, Ai = {
20137
20137
  calendar: {
20138
20138
  data_key: "",
20139
20139
  locale: "EN"
@@ -20323,7 +20323,7 @@ function Ok(e, t, n) {
20323
20323
  }, {
20324
20324
  followVisualMap: de,
20325
20325
  color: J
20326
- } = ii(E, o, l, e.visualMap);
20326
+ } = oi(E, o, l, e.visualMap);
20327
20327
  return de || (U.visualMap = !1, U.itemStyle = {
20328
20328
  color: J
20329
20329
  }), U;
@@ -20403,7 +20403,7 @@ function Nk({
20403
20403
  value: a
20404
20404
  } = K(e.instanceData, "config"), {
20405
20405
  variables: i
20406
- } = e, o = z(() => C.defaults({}, a, Pi), [a]), l = e.data, {
20406
+ } = e, o = z(() => C.defaults({}, a, Ai), [a]), l = e.data, {
20407
20407
  width: s,
20408
20408
  height: c
20409
20409
  } = e.viewport;
@@ -20533,7 +20533,7 @@ function Uk({
20533
20533
  } = _(), {
20534
20534
  value: n,
20535
20535
  set: a
20536
- } = K(e.instanceData, "config"), i = z(() => n ? pe({}, n) : Pi, [n]), o = z(() => C.cloneDeep(i), [i]);
20536
+ } = K(e.instanceData, "config"), i = z(() => n ? pe({}, n) : Ai, [n]), o = z(() => C.cloneDeep(i), [i]);
20537
20537
  N(() => {
20538
20538
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
20539
20539
  }, [i, o]);
@@ -20568,7 +20568,7 @@ function Uk({
20568
20568
  ] }),
20569
20569
  /* @__PURE__ */ r(S.Panel, { value: "Calendar", children: /* @__PURE__ */ r(jk, { control: s, watch: d }) }),
20570
20570
  /* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(Qk, { control: s, watch: d }) }),
20571
- /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(zi, { form: l }) }),
20571
+ /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(Ti, { form: l }) }),
20572
20572
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(Wk, { control: s, watch: d }) })
20573
20573
  ] })
20574
20574
  ] }) });
@@ -20614,11 +20614,11 @@ const Yk = {
20614
20614
  configRender: Uk,
20615
20615
  createConfig: () => ({
20616
20616
  version: 6,
20617
- config: Pi
20617
+ config: Ai
20618
20618
  }),
20619
20619
  triggers: [Nc],
20620
20620
  translation: kk
20621
- }, Ai = {
20621
+ }, Ri = {
20622
20622
  x_axes: [{
20623
20623
  id: "initial-x",
20624
20624
  min: "",
@@ -20803,7 +20803,7 @@ function o2({
20803
20803
  });
20804
20804
  const l = ta(t, a, i), s = C.groupBy(l, "0");
20805
20805
  return e.map(([d]) => {
20806
- const p = s[d].map((b) => b[1]), g = ei(p, n);
20806
+ const p = s[d].map((b) => b[1]), g = ti(p, n);
20807
20807
  return [d, g];
20808
20808
  });
20809
20809
  }
@@ -21039,7 +21039,7 @@ function b2({
21039
21039
  variables: o,
21040
21040
  instance: l
21041
21041
  }) {
21042
- const s = Tn(t, e.y_axis.data_key), c = ut(i.triggerManager, _i.id), d = ae((x) => {
21042
+ const s = Tn(t, e.y_axis.data_key), c = ut(i.triggerManager, xi.id), d = ae((x) => {
21043
21043
  const v = C.get(s, x.name, {
21044
21044
  error: "rowData is not found"
21045
21045
  });
@@ -21073,7 +21073,7 @@ function y2({
21073
21073
  value: a
21074
21074
  } = K(e.instanceData, "config"), {
21075
21075
  variables: i
21076
- } = e, o = z(() => pe({}, a, Ai), [a]), l = e.data, {
21076
+ } = e, o = z(() => pe({}, a, Ri), [a]), l = e.data, {
21077
21077
  width: s,
21078
21078
  height: c
21079
21079
  } = e.viewport;
@@ -21249,7 +21249,7 @@ function w2({
21249
21249
  }, ...o }) }),
21250
21250
  /* @__PURE__ */ r(f, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
21251
21251
  field: o
21252
- }) => /* @__PURE__ */ r(Ci, { label: i("viz.horizontal_bar_chart.series.aggregation.label"), value: o.value ?? Hn, onChange: o.onChange, pt: 0, withFallback: !1 }) })
21252
+ }) => /* @__PURE__ */ r(ki, { label: i("viz.horizontal_bar_chart.series.aggregation.label"), value: o.value ?? Hn, onChange: o.onChange, pt: 0, withFallback: !1 }) })
21253
21253
  ] }),
21254
21254
  /* @__PURE__ */ r(y, { grow: !0, children: /* @__PURE__ */ r(f, { name: `series.${t}.group_by_key`, control: e, render: ({
21255
21255
  field: o
@@ -21415,7 +21415,7 @@ function D2({
21415
21415
  set: a
21416
21416
  } = K(e.instanceData, "config"), {
21417
21417
  variables: i
21418
- } = e, o = z(() => C.defaultsDeep({}, n, Ai), [n]), {
21418
+ } = e, o = z(() => C.defaultsDeep({}, n, Ri), [n]), {
21419
21419
  control: l,
21420
21420
  handleSubmit: s,
21421
21421
  watch: c,
@@ -21597,11 +21597,11 @@ const O2 = {
21597
21597
  configRender: D2,
21598
21598
  createConfig: () => ({
21599
21599
  version: 3,
21600
- config: C.cloneDeep(Ai)
21600
+ config: C.cloneDeep(Ri)
21601
21601
  }),
21602
21602
  triggers: [V2],
21603
21603
  translation: L2
21604
- }, Ri = {
21604
+ }, Ei = {
21605
21605
  x_axis: {
21606
21606
  name: "",
21607
21607
  data_key: "",
@@ -22109,10 +22109,10 @@ function U2(e) {
22109
22109
  }
22110
22110
  }];
22111
22111
  }
22112
- function za(e) {
22113
- return e == 1 || e == 2 ? 1 : za(e - 2) + za(e - 1);
22112
+ function Ta(e) {
22113
+ return e == 1 || e == 2 ? 1 : Ta(e - 2) + Ta(e - 1);
22114
22114
  }
22115
- const K2 = Array.from(new Array(20), (e, t) => za(t + 1));
22115
+ const K2 = Array.from(new Array(20), (e, t) => Ta(t + 1));
22116
22116
  function Ro(e) {
22117
22117
  return e <= 1 ? e : K2.findIndex((t) => e <= t) - 1;
22118
22118
  }
@@ -22223,7 +22223,7 @@ const n3 = {
22223
22223
  cursor: "default",
22224
22224
  userSelect: "none"
22225
22225
  }, children: "基线指标" }),
22226
- /* @__PURE__ */ r(Ra, { size: "xs", data: o, value: t, onChange: (l) => n(l.currentTarget.value), styles: n3 })
22226
+ /* @__PURE__ */ r(Ea, { size: "xs", data: o, value: t, onChange: (l) => n(l.currentTarget.value), styles: n3 })
22227
22227
  ] });
22228
22228
  }, a3 = {
22229
22229
  "tbody th, tbody td": {
@@ -22280,7 +22280,7 @@ function s3({
22280
22280
  }) {
22281
22281
  const {
22282
22282
  value: n
22283
- } = K(e.instanceData, "config"), a = z(() => pe({}, n, Ri), [n]), i = e.data, {
22283
+ } = K(e.instanceData, "config"), a = z(() => pe({}, n, Ei), [n]), i = e.data, {
22284
22284
  width: o,
22285
22285
  height: l
22286
22286
  } = e.viewport, {
@@ -22413,7 +22413,7 @@ function p3({
22413
22413
  const {
22414
22414
  value: t,
22415
22415
  set: n
22416
- } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, Ri), [t]), {
22416
+ } = K(e.instanceData, "config"), a = z(() => C.defaultsDeep({}, t, Ei), [t]), {
22417
22417
  control: i,
22418
22418
  handleSubmit: o,
22419
22419
  watch: l,
@@ -22546,10 +22546,10 @@ const x3 = {
22546
22546
  configRender: p3,
22547
22547
  createConfig: () => ({
22548
22548
  version: 3,
22549
- config: Ri
22549
+ config: Ei
22550
22550
  }),
22551
22551
  translation: f3
22552
- }, Ei = {
22552
+ }, Oi = {
22553
22553
  styles: {
22554
22554
  justify: "space-around",
22555
22555
  align: "start"
@@ -22629,7 +22629,7 @@ const Eo = ({
22629
22629
  value: n
22630
22630
  } = K(e.instanceData, "config"), {
22631
22631
  variables: a
22632
- } = e, i = z(() => C.defaults({}, n, Ei), [n]), o = e.data, l = z(() => vi(o, a), [a, o]), {
22632
+ } = e, i = z(() => C.defaults({}, n, Oi), [n]), o = e.data, l = z(() => wi(o, a), [a, o]), {
22633
22633
  width: s,
22634
22634
  height: c
22635
22635
  } = e.viewport;
@@ -22776,7 +22776,7 @@ function D3({
22776
22776
  set: n
22777
22777
  } = K(e.instanceData, "config"), {
22778
22778
  variables: a
22779
- } = e, i = z(() => He({}, t, Ei), [t]), {
22779
+ } = e, i = z(() => He({}, t, Oi), [t]), {
22780
22780
  control: o,
22781
22781
  handleSubmit: l,
22782
22782
  watch: s,
@@ -22886,10 +22886,10 @@ const P3 = {
22886
22886
  configRender: D3,
22887
22887
  createConfig: () => ({
22888
22888
  version: 2,
22889
- config: Ei
22889
+ config: Oi
22890
22890
  }),
22891
22891
  translation: V3
22892
- }, Oi = {
22892
+ }, Fi = {
22893
22893
  x_axis: {
22894
22894
  name: "",
22895
22895
  data_key: "",
@@ -22962,7 +22962,7 @@ function A3({
22962
22962
  } }) }),
22963
22963
  /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
22964
22964
  field: i
22965
- }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(qa, { size: 16 }), disabled: !a, ...i }) })
22965
+ }) => /* @__PURE__ */ r(ne, { size: "xs", leftSection: /* @__PURE__ */ r(Na, { size: 16 }), disabled: !a, ...i }) })
22966
22966
  ] })
22967
22967
  ] });
22968
22968
  }
@@ -23113,7 +23113,7 @@ function N3({
23113
23113
  } = _(), {
23114
23114
  value: n,
23115
23115
  set: a
23116
- } = K(e.instanceData, "config"), i = z(() => n ? pe({}, n) : Oi, [n]), o = z(() => C.cloneDeep(i), [i]);
23116
+ } = K(e.instanceData, "config"), i = z(() => n ? pe({}, n) : Fi, [n]), o = z(() => C.cloneDeep(i), [i]);
23117
23117
  N(() => {
23118
23118
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
23119
23119
  }, [i, o]);
@@ -23158,7 +23158,7 @@ function N3({
23158
23158
  /* @__PURE__ */ r(S.Panel, { value: "X Axis", children: /* @__PURE__ */ r(F3, { control: s, watch: d }) }),
23159
23159
  /* @__PURE__ */ r(S.Panel, { value: "Y Axis", children: /* @__PURE__ */ r(q3, { control: s, watch: d }) }),
23160
23160
  /* @__PURE__ */ r(S.Panel, { value: "Heat Block", children: /* @__PURE__ */ r(A3, { control: s, watch: d }) }),
23161
- /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(zi, { form: l }) }),
23161
+ /* @__PURE__ */ r(S.Panel, { value: "Visual Map", children: /* @__PURE__ */ r(Ti, { form: l }) }),
23162
23162
  /* @__PURE__ */ r(S.Panel, { value: "Tooltip", children: /* @__PURE__ */ r(O3, { control: s, watch: d }) })
23163
23163
  ] })
23164
23164
  ] }) });
@@ -23459,7 +23459,7 @@ function J3(e, t, n) {
23459
23459
  }, {
23460
23460
  followVisualMap: Y,
23461
23461
  color: U
23462
- } = ii(P, s, c, e.visualMap);
23462
+ } = oi(P, s, c, e.visualMap);
23463
23463
  return Y || (E.visualMap = !1, E.itemStyle = {
23464
23464
  color: U
23465
23465
  }), E;
@@ -23519,7 +23519,7 @@ function tz({
23519
23519
  value: a
23520
23520
  } = K(e.instanceData, "config"), {
23521
23521
  variables: i
23522
- } = e, o = z(() => pe({}, a, Oi), [a]), l = e.data, {
23522
+ } = e, o = z(() => pe({}, a, Fi), [a]), l = e.data, {
23523
23523
  width: s,
23524
23524
  height: c
23525
23525
  } = e.viewport;
@@ -23628,11 +23628,11 @@ const cz = {
23628
23628
  configRender: N3,
23629
23629
  createConfig: () => ({
23630
23630
  version: 4,
23631
- config: Oi
23631
+ config: Fi
23632
23632
  }),
23633
23633
  triggers: [jc],
23634
23634
  translation: az
23635
- }, dz = "_item_badge_l2t3l_1", uz = "_label_l2t3l_8", hz = "_value_l2t3l_20", ua = {
23635
+ }, dz = "_item_badge_l2t3l_1", uz = "_label_l2t3l_8", hz = "_value_l2t3l_20", ha = {
23636
23636
  item_badge: dz,
23637
23637
  label: uz,
23638
23638
  value: hz
@@ -23643,15 +23643,15 @@ const cz = {
23643
23643
  value: t,
23644
23644
  label_description: n,
23645
23645
  value_description: a
23646
- }, i) => /* @__PURE__ */ u("div", { ref: i, className: ua.item_badge, children: [
23647
- /* @__PURE__ */ r("div", { className: ua.label, children: e }),
23646
+ }, i) => /* @__PURE__ */ u("div", { ref: i, className: ha.item_badge, children: [
23647
+ /* @__PURE__ */ r("div", { className: ha.label, children: e }),
23648
23648
  /* @__PURE__ */ u(ge, { shadow: "md", disabled: !a, children: [
23649
- /* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r("div", { className: ua.value, "data-with-tooltip": !!a, children: t }) }),
23649
+ /* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r("div", { className: ha.value, "data-with-tooltip": !!a, children: t }) }),
23650
23650
  /* @__PURE__ */ r(ge.Dropdown, { p: "xs", children: /* @__PURE__ */ r(pz, { children: a }) })
23651
23651
  ] })
23652
23652
  ] })), mz = ({
23653
23653
  item: e
23654
- }) => e.type !== "checkbox" ? null : /* @__PURE__ */ r(gn, { label: e.label, value: /* @__PURE__ */ r(Jn, { variant: "white", radius: "xs", color: e.value ? "teal" : "red", w: 12, h: 12, miw: 12, mih: 12, children: e.value ? /* @__PURE__ */ r(Na, { size: 12, strokeWidth: 3 }) : /* @__PURE__ */ r(Pr, { strokeWidth: 3 }) }), label_description: `filters.${e.key}` }), gz = ({
23654
+ }) => e.type !== "checkbox" ? null : /* @__PURE__ */ r(gn, { label: e.label, value: /* @__PURE__ */ r(Jn, { variant: "white", radius: "xs", color: e.value ? "teal" : "red", w: 12, h: 12, miw: 12, mih: 12, children: e.value ? /* @__PURE__ */ r(Ba, { size: 12, strokeWidth: 3 }) : /* @__PURE__ */ r(Pr, { strokeWidth: 3 }) }), label_description: `filters.${e.key}` }), gz = ({
23655
23655
  item: e
23656
23656
  }) => e.type !== "context" ? null : /* @__PURE__ */ r(gn, { label: e.key, value: e.value, label_description: `context.${e.key}` }), fz = D(({
23657
23657
  item: e
@@ -23727,7 +23727,7 @@ const cz = {
23727
23727
  return /* @__PURE__ */ r(gn, { label: e.label, value: a, label_description: `filters.${e.key}`, value_description: e.value });
23728
23728
  }), zz = ({
23729
23729
  item: e
23730
- }) => e.type !== "tree-single-select" ? null : /* @__PURE__ */ r(kz, { item: e }), ha = ({
23730
+ }) => e.type !== "tree-single-select" ? null : /* @__PURE__ */ r(kz, { item: e }), pa = ({
23731
23731
  item: e
23732
23732
  }) => {
23733
23733
  switch (e.type) {
@@ -23758,11 +23758,11 @@ const cz = {
23758
23758
  keys: i
23759
23759
  } = e;
23760
23760
  return a ? /* @__PURE__ */ u(q, { children: [
23761
- Object.entries(n.context).map(([o, l]) => /* @__PURE__ */ r(ha, { item: l }, o)),
23762
- Object.entries(n.filters).map(([o, l]) => /* @__PURE__ */ r(ha, { item: l }, o))
23761
+ Object.entries(n.context).map(([o, l]) => /* @__PURE__ */ r(pa, { item: l }, o)),
23762
+ Object.entries(n.filters).map(([o, l]) => /* @__PURE__ */ r(pa, { item: l }, o))
23763
23763
  ] }) : /* @__PURE__ */ r(q, { children: i.map((o) => {
23764
23764
  const l = C.get(n, o);
23765
- return l ? /* @__PURE__ */ r(ha, { item: l }, o) : null;
23765
+ return l ? /* @__PURE__ */ r(pa, { item: l }, o) : null;
23766
23766
  }) });
23767
23767
  }), Dz = D(({
23768
23768
  context: e
@@ -23796,7 +23796,7 @@ const cz = {
23796
23796
  t: a
23797
23797
  } = _(), i = e, o = i.type === "filter";
23798
23798
  return /* @__PURE__ */ u(y, { gap: 4, flex: 1, children: [
23799
- /* @__PURE__ */ r(Na, { size: 14, opacity: t ? 1 : 0, color: "black" }),
23799
+ /* @__PURE__ */ r(Ba, { size: 14, opacity: t ? 1 : 0, color: "black" }),
23800
23800
  /* @__PURE__ */ r(T, { gap: 0, py: 4, px: 8, flex: 1, styles: {
23801
23801
  root: {
23802
23802
  flexGrow: 1,
@@ -23985,14 +23985,14 @@ const Oz = {
23985
23985
  value: e.value,
23986
23986
  type: "single",
23987
23987
  category: "basic"
23988
- })), qz = [Cm, km, Dm, Tm, zm, Im], Fi = [Ca, $S, ok, d1, rC, Jw, O2, hf, Cy, Ox, Mv, Yk, bw, bx, hS, T0, r1, bk, x3, cz, P3, Oy, Oz], Gc = Fi.reduce((e, t) => (e[t.name] = {
23988
+ })), qz = [Cm, km, Dm, Tm, zm, Im], qi = [ka, $S, ok, d1, rC, Jw, O2, hf, Cy, Ox, Mv, Yk, bw, bx, hS, T0, r1, bk, x3, cz, P3, Oy, Oz], Gc = qi.reduce((e, t) => (e[t.name] = {
23989
23989
  displayName: t.displayName,
23990
23990
  displayGroup: t.displayGroup
23991
23991
  }, e), {}), Wc = () => ({
23992
23992
  id: "dashboard",
23993
23993
  version: gs,
23994
23994
  manifest: {
23995
- viz: Fi,
23995
+ viz: qi,
23996
23996
  color: [...Fz, ...qz]
23997
23997
  }
23998
23998
  }), Ln = new Am(), ve = {
@@ -24008,7 +24008,7 @@ const Oz = {
24008
24008
  operationManager: Vt("operationManager"),
24009
24009
  triggerManager: Vt("triggerManager")
24010
24010
  }
24011
- }, qi = () => {
24011
+ }, Ni = () => {
24012
24012
  try {
24013
24013
  Ln.install(Wc());
24014
24014
  } catch {
@@ -24020,7 +24020,7 @@ const Oz = {
24020
24020
  colorManager: t,
24021
24021
  panelAddonManager: n
24022
24022
  };
24023
- }, nn = _l(qi());
24023
+ }, nn = _l(Ni());
24024
24024
  try {
24025
24025
  Ln.install(Wc());
24026
24026
  } catch {
@@ -24037,7 +24037,7 @@ const kr = Tu({
24037
24037
  }
24038
24038
  }).use(Mu).use(Du);
24039
24039
  kr.init();
24040
- Fi.forEach((e) => {
24040
+ qi.forEach((e) => {
24041
24041
  var t;
24042
24042
  (t = e.translation) == null || t.forEach((n) => {
24043
24043
  kr.addResourceBundle(n.lang, "translation", {
@@ -24611,15 +24611,17 @@ const Zc = m.model("DBQueryMeta", {
24611
24611
  filters: a,
24612
24612
  groupBys: i,
24613
24613
  timeQuery: o,
24614
- _type: l
24614
+ useDefaultValues: l,
24615
+ _type: s
24615
24616
  } = e;
24616
24617
  return Zt({
24617
24618
  id: t,
24618
24619
  type: n,
24619
- filters: a.map((s) => s.json),
24620
+ filters: a.map((c) => c.json),
24620
24621
  groupBys: i,
24621
24622
  timeQuery: o,
24622
- _type: l
24623
+ useDefaultValues: l,
24624
+ _type: s
24623
24625
  });
24624
24626
  },
24625
24627
  get usedFilterDimensionKeys() {
@@ -25223,7 +25225,7 @@ const nd = m.optional(m.enumeration(["intersect", "reset"]), "intersect"), rd =
25223
25225
  };
25224
25226
  }
25225
25227
  }];
25226
- function Ni(e) {
25228
+ function na(e) {
25227
25229
  if (!e)
25228
25230
  return null;
25229
25231
  const n = ad().find((a) => a.value === e);
@@ -25235,7 +25237,7 @@ function id() {
25235
25237
  function s5(e) {
25236
25238
  try {
25237
25239
  if (e.default_shortcut) {
25238
- const n = Ni(e.default_shortcut);
25240
+ const n = na(e.default_shortcut);
25239
25241
  if (n)
25240
25242
  return {
25241
25243
  value: n.value.map((a) => O(a).toDate()),
@@ -25340,7 +25342,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25340
25342
  setDefaultShortcut(t) {
25341
25343
  if (e.default_shortcut = t ?? "", !t)
25342
25344
  return;
25343
- const n = Ni(e.default_shortcut);
25345
+ const n = na(e.default_shortcut);
25344
25346
  n && e.setFilterValue(n);
25345
25347
  },
25346
25348
  setMaxDays(t) {
@@ -25650,7 +25652,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25650
25652
  const {
25651
25653
  t
25652
25654
  } = _();
25653
- return /* @__PURE__ */ r(li, { 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: g5(e.type), triggerButtonProps: {
25655
+ return /* @__PURE__ */ r(si, { 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: g5(e.type), triggerButtonProps: {
25654
25656
  size: "xs",
25655
25657
  color: "grape",
25656
25658
  sx: {
@@ -25662,7 +25664,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25662
25664
  /* @__PURE__ */ r(Ue.Item, { children: t("filter.field.custom_default_value.tip_1") }),
25663
25665
  /* @__PURE__ */ r(Ue.Item, { children: t("filter.field.custom_default_value.tip_2") })
25664
25666
  ] }) }) });
25665
- }), na = D(({
25667
+ }), ra = D(({
25666
25668
  value: e,
25667
25669
  onChange: t
25668
25670
  }) => {
@@ -25673,7 +25675,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25673
25675
  };
25674
25676
  return /* @__PURE__ */ r(F, { label: /* @__PURE__ */ u(y, { justify: "space-between", children: [
25675
25677
  /* @__PURE__ */ r(k, { fw: 500, size: "sm", children: n("filter.widget.common.use_query_data_as_options") }),
25676
- e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ya, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
25678
+ e && /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(_a, { size: 16 }), variant: "subtle", color: "blue", onClick: () => s(e), children: n("query.open") })
25677
25679
  ] }), data: o, value: e, onChange: be(t), allowDeselect: !1, clearable: !0, sx: {
25678
25680
  flexGrow: 1
25679
25681
  }, disabled: l, error: l ? "You need to add a query in Data Settings" : void 0, styles: {
@@ -25725,7 +25727,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25725
25727
  /* @__PURE__ */ r(V, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
25726
25728
  /* @__PURE__ */ r(A, { label: n("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
25727
25729
  /* @__PURE__ */ r(Z, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
25728
- /* @__PURE__ */ r(na, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
25730
+ /* @__PURE__ */ r(ra, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
25729
25731
  /* @__PURE__ */ r(ne, { value: a.default_selection_count, onChange: a.setDefaultSelectionCount, label: n("filter.widget.common.default_selection_count") }),
25730
25732
  /* @__PURE__ */ r(ji, { config: a }),
25731
25733
  /* @__PURE__ */ r(hd, {})
@@ -25765,7 +25767,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25765
25767
  name: a
25766
25768
  }) => ({
25767
25769
  root: {
25768
- borderRadius: Oa(t),
25770
+ borderRadius: Fa(t),
25769
25771
  display: "flex",
25770
25772
  flexWrap: "nowrap",
25771
25773
  border: "1px solid #ced4da",
@@ -26165,7 +26167,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
26165
26167
  ] }),
26166
26168
  /* @__PURE__ */ r(V, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
26167
26169
  /* @__PURE__ */ r(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
26168
- /* @__PURE__ */ r(na, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
26170
+ /* @__PURE__ */ r(ra, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
26169
26171
  /* @__PURE__ */ r(Z, { 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") }),
26170
26172
  /* @__PURE__ */ r(ji, { config: n }),
26171
26173
  /* @__PURE__ */ r(hd, {})
@@ -26176,7 +26178,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
26176
26178
  name: a
26177
26179
  }) => ({
26178
26180
  root: {
26179
- borderRadius: Oa(t),
26181
+ borderRadius: Fa(t),
26180
26182
  display: "flex",
26181
26183
  flexWrap: "nowrap",
26182
26184
  border: "1px solid #ced4da",
@@ -26893,7 +26895,7 @@ const _d = m.model("ViewDivisionConfig", {
26893
26895
  }) {
26894
26896
  e.enabled = t, e.func_content = n;
26895
26897
  }
26896
- })), Ta = {
26898
+ })), Da = {
26897
26899
  enabled: !1,
26898
26900
  func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
26899
26901
  `)
@@ -26901,7 +26903,7 @@ const _d = m.model("ViewDivisionConfig", {
26901
26903
  _name: m.literal(G.Modal),
26902
26904
  width: m.string,
26903
26905
  height: m.string,
26904
- custom_modal_title: m.optional(P5, Ta)
26906
+ custom_modal_title: m.optional(P5, Da)
26905
26907
  }).views((e) => ({
26906
26908
  get json() {
26907
26909
  const {
@@ -27453,8 +27455,8 @@ function j5(e) {
27453
27455
  description: "<p></p>",
27454
27456
  queryIDs: [],
27455
27457
  viz: {
27456
- type: Ca.name,
27457
- conf: Ca.createConfig()
27458
+ type: ka.name,
27459
+ conf: ka.createConfig()
27458
27460
  },
27459
27461
  style: {
27460
27462
  border: {
@@ -27514,10 +27516,18 @@ function Pd(e, t) {
27514
27516
  const n = {};
27515
27517
  return Object.entries(t).forEach(([a, i]) => {
27516
27518
  const o = e[a];
27517
- return typeof i == "object" && "shortcut" in i && Array.isArray(o) ? n[a] = {
27518
- value: o,
27519
- shortcut: null
27520
- } : n[a] = o ?? i, n;
27519
+ if (typeof i != "object" || !("shortcut" in i))
27520
+ return n[a] = o ?? i, n;
27521
+ if (Array.isArray(o))
27522
+ return console.log("⚪️ adapting legacy date-range value: ", o), n[a] = {
27523
+ value: o,
27524
+ shortcut: null
27525
+ }, n;
27526
+ const l = o, s = l.value.every((c) => c);
27527
+ return l.shortcut ? l.shortcut === i.shortcut ? (n[a] = i, n) : s ? (n[a] = l, n) : (n[a] = {
27528
+ value: na(l.shortcut),
27529
+ shortcut: l.shortcut
27530
+ }, n) : (n[a] = i, n);
27521
27531
  }), n;
27522
27532
  }
27523
27533
  const Ad = m.model("FiltersRenderModel", {
@@ -27686,7 +27696,7 @@ async function G5({
27686
27696
  sql: s,
27687
27697
  pre_process: c,
27688
27698
  post_process: d
27689
- } = e, h = di(s, n), p = Jg({
27699
+ } = e, h = ui(s, n), p = Jg({
27690
27700
  sql: h,
27691
27701
  pre_process: c
27692
27702
  }), g = im(p);
@@ -27701,7 +27711,7 @@ async function G5({
27701
27711
  name: t
27702
27712
  }
27703
27713
  });
27704
- return b = ef(d, b, ci(n)), b;
27714
+ return b = ef(d, b, di(n)), b;
27705
27715
  }
27706
27716
  async function W5({
27707
27717
  type: e,
@@ -27849,7 +27859,7 @@ const K5 = r5.views((e) => ({
27849
27859
  },
27850
27860
  get formattedSQL() {
27851
27861
  const t = C.get(e, "config.sql", "");
27852
- return ui(t, this.payload);
27862
+ return hi(t, this.payload);
27853
27863
  },
27854
27864
  get httpConfigString() {
27855
27865
  const {
@@ -28516,7 +28526,7 @@ function Z5(e) {
28516
28526
  function zr(e, t, n, a) {
28517
28527
  return e.reduce((i, o) => {
28518
28528
  try {
28519
- i[o[t]] = di(o[n], a);
28529
+ i[o[t]] = ui(o[n], a);
28520
28530
  } catch (l) {
28521
28531
  i[o[t]] = l.message;
28522
28532
  }
@@ -28755,7 +28765,7 @@ const eT = (e) => new J5(e), tT = ({
28755
28765
  value: [null, null],
28756
28766
  shortcut: null
28757
28767
  }, jd = (e) => {
28758
- const t = Ni(e.shortcut);
28768
+ const t = na(e.shortcut);
28759
28769
  return t || (Array.isArray(e.value) ? e : Bd);
28760
28770
  }, sT = (e) => z(() => jd(e), [e]), Qd = D(({
28761
28771
  label: e,
@@ -28777,7 +28787,7 @@ const eT = (e) => new J5(e), tT = ({
28777
28787
  ...a
28778
28788
  }) => ({
28779
28789
  root: {
28780
- borderRadius: Oa(t),
28790
+ borderRadius: Fa(t),
28781
28791
  display: "flex",
28782
28792
  flexWrap: "nowrap",
28783
28793
  border: "1px solid #ced4da",
@@ -29275,7 +29285,7 @@ const CT = ({
29275
29285
  }), kT = {
29276
29286
  viewPanelInFullScreen: C.noop,
29277
29287
  inFullScreen: !1
29278
- }, ra = R.createContext(kT), zT = D(({
29288
+ }, aa = R.createContext(kT), zT = D(({
29279
29289
  view: e
29280
29290
  }) => {
29281
29291
  const {
@@ -29306,7 +29316,7 @@ const CT = ({
29306
29316
  } = l, {
29307
29317
  viewPanelInFullScreen: d,
29308
29318
  inFullScreen: h
29309
- } = R.useContext(ra), p = () => {
29319
+ } = R.useContext(aa), p = () => {
29310
29320
  i.duplicatePanelByID(c, e.id);
29311
29321
  }, g = () => {
29312
29322
  a.editor.open(["_VIEWS_", e.id, "_PANELS_", c, "_TABS_", "Panel"]);
@@ -29349,12 +29359,12 @@ const CT = ({
29349
29359
  P && /* @__PURE__ */ r(W.Item, { onClick: M, leftSection: /* @__PURE__ */ r(Ll, { size: 14 }), disabled: !0, children: n("common.actions.enter_fullscreen") }),
29350
29360
  /* @__PURE__ */ r(zT, { view: e }),
29351
29361
  /* @__PURE__ */ r(A, { label: n("common.actions.edit"), labelPosition: "center" }),
29352
- /* @__PURE__ */ r(W.Item, { onClick: g, leftSection: /* @__PURE__ */ r(ja, { size: 14 }), children: n("panel.label") }),
29362
+ /* @__PURE__ */ r(W.Item, { onClick: g, leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: n("panel.label") }),
29353
29363
  /* @__PURE__ */ r(W.Item, { onClick: b, leftSection: /* @__PURE__ */ r(Bn, { size: 14 }), children: n("panel.variable.labels") }),
29354
29364
  /* @__PURE__ */ r(W.Item, { onClick: x, leftSection: /* @__PURE__ */ r(Vl, { size: 14 }), children: n("visualization.label") }),
29355
- /* @__PURE__ */ r(W.Item, { onClick: v, leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: n("interactions.label") }),
29365
+ /* @__PURE__ */ r(W.Item, { onClick: v, leftSection: /* @__PURE__ */ r(Ha, { size: 14 }), children: n("interactions.label") }),
29356
29366
  /* @__PURE__ */ r(A, { label: n("common.actions.actions"), labelPosition: "center" }),
29357
- /* @__PURE__ */ r(W.Item, { onClick: p, leftSection: /* @__PURE__ */ r(Ha, { size: 14 }), children: n("common.actions.duplicate") }),
29367
+ /* @__PURE__ */ r(W.Item, { onClick: p, leftSection: /* @__PURE__ */ r(Ga, { size: 14 }), children: n("common.actions.duplicate") }),
29358
29368
  /* @__PURE__ */ r(W.Item, { color: "red", onClick: I, leftSection: /* @__PURE__ */ r(Pe, { size: 14 }), children: n("common.actions.delete") })
29359
29369
  ] })
29360
29370
  ] }) }) });
@@ -29565,7 +29575,7 @@ const Ho = new RT(), Ir = class Ir {
29565
29575
  }
29566
29576
  };
29567
29577
  B(Ir, "instance", new Ir());
29568
- let Da = Ir;
29578
+ let Ia = Ir;
29569
29579
  function Kd(e, t = !0) {
29570
29580
  const {
29571
29581
  panel: n
@@ -29574,7 +29584,7 @@ function Kd(e, t = !0) {
29574
29584
  const i = a.getRequired(ve.vizManager), o = i.resolveComponent(e.viz.type);
29575
29585
  return a.createScoped().provideFactory(ve.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(ve.instanceScope.interactionManager, (l) => {
29576
29586
  const s = l.getRequired(ve.instanceScope.vizInstance);
29577
- return t ? new nc(s, o, gi) : new Da();
29587
+ return t ? new nc(s, o, fi) : new Ia();
29578
29588
  }).provideFactory(ve.instanceScope.operationManager, (l) => l.getRequired(ve.instanceScope.interactionManager).operationManager).provideFactory(ve.instanceScope.triggerManager, (l) => l.getRequired(ve.instanceScope.interactionManager).triggerManager).provideValue(ve.instanceScope.panelModel, n).provideFactory(ve.instanceScope.migrator, (l) => new VT(l));
29579
29589
  }, [e.viz.type, e.viz.conf, t]);
29580
29590
  }
@@ -29783,7 +29793,7 @@ const KT = D(({
29783
29793
  } = a, {
29784
29794
  viewPanelInFullScreen: l,
29785
29795
  inFullScreen: s
29786
- } = R.useContext(ra), c = R.useCallback(() => {
29796
+ } = R.useContext(aa), c = R.useCallback(() => {
29787
29797
  l(o);
29788
29798
  }, [o, l]), d = !s && e.type !== G.Modal;
29789
29799
  return UT(a.viz.type) ? /* @__PURE__ */ r($, { sx: {
@@ -30247,7 +30257,7 @@ const h4 = D(({
30247
30257
  view: t
30248
30258
  }) {
30249
30259
  const a = oe().layouts.divisionPreviewScale !== 1;
30250
- return /* @__PURE__ */ r(ra.Provider, { value: {
30260
+ return /* @__PURE__ */ r(aa.Provider, { value: {
30251
30261
  viewPanelInFullScreen: C.noop,
30252
30262
  inFullScreen: !1
30253
30263
  }, children: /* @__PURE__ */ r($, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
@@ -30273,7 +30283,7 @@ const h4 = D(({
30273
30283
  inFullScreen: l,
30274
30284
  fullScreenPanel: s
30275
30285
  } = JT(t, n, a);
30276
- return /* @__PURE__ */ r(ra.Provider, { value: {
30286
+ return /* @__PURE__ */ r(aa.Provider, { value: {
30277
30287
  viewPanelInFullScreen: i,
30278
30288
  inFullScreen: l
30279
30289
  }, children: /* @__PURE__ */ u($, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
@@ -31127,7 +31137,7 @@ function W4(e) {
31127
31137
  function U4(e) {
31128
31138
  return e.length === 2 && e[0] === "_VIEWS_";
31129
31139
  }
31130
- function Ia(e) {
31140
+ function Ma(e) {
31131
31141
  return e.length === 6 && e[0] === "_VIEWS_" && e[2] === "_PANELS_";
31132
31142
  }
31133
31143
  function bn(e) {
@@ -31166,7 +31176,7 @@ const Y4 = m.model("EditorModel", {
31166
31176
  settings_open: m.optional(m.boolean, !1)
31167
31177
  }).views((e) => ({
31168
31178
  get isPanelPath() {
31169
- return Ia(e.path);
31179
+ return Ma(e.path);
31170
31180
  },
31171
31181
  get panelTab() {
31172
31182
  return this.isPanelPath ? C.get(e.path, 5, "Data") : null;
@@ -31193,13 +31203,13 @@ const Y4 = m.model("EditorModel", {
31193
31203
  }, {
31194
31204
  label: "filter.labels",
31195
31205
  value: "_FILTERS_",
31196
- Icon: Ga,
31206
+ Icon: Wa,
31197
31207
  children: [bn("_FILTERS_SETTINGS_"), ...n.options, bn("_Add_A_Filter_")],
31198
31208
  _type: "GROUP"
31199
31209
  }, {
31200
31210
  label: "sql_snippet.labels",
31201
31211
  value: "_SQL_SNIPPETS_",
31202
- Icon: Ha,
31212
+ Icon: Ga,
31203
31213
  children: [bn("_SQL_SNIPPETS_SETTINGS_"), ...i.options, bn("_Add_A_SQL_SNIPPET_")],
31204
31214
  _type: "GROUP"
31205
31215
  }, {
@@ -31211,13 +31221,13 @@ const Y4 = m.model("EditorModel", {
31211
31221
  }, {
31212
31222
  label: "view.labels",
31213
31223
  value: "_VIEWS_",
31214
- Icon: Wa,
31224
+ Icon: Ua,
31215
31225
  children: [...a.editorOptions, bn("_Add_A_VIEW_")],
31216
31226
  _type: "GROUP"
31217
31227
  }];
31218
31228
  },
31219
31229
  isOptionActive(t, n) {
31220
- return t.length === 0 ? !1 : Ia(t) ? t[3] === n.value : t[t.length - 1] === n.value;
31230
+ return t.length === 0 ? !1 : Ma(t) ? t[3] === n.value : t[t.length - 1] === n.value;
31221
31231
  },
31222
31232
  isOptionOpened(t) {
31223
31233
  const {
@@ -31879,7 +31889,7 @@ const n6 = m.model({
31879
31889
  }), a;
31880
31890
  },
31881
31891
  get dashboardStateValues() {
31882
- return ci(this.payloadForSQL);
31892
+ return di(this.payloadForSQL);
31883
31893
  },
31884
31894
  get dashboardStateVariableOptions() {
31885
31895
  if (!rs(e))
@@ -32441,7 +32451,7 @@ function lu(e, t) {
32441
32451
  return encodeURIComponent(x);
32442
32452
  });
32443
32453
  }
32444
- const p = Pa(o || "")(d({
32454
+ const p = Aa(o || "")(d({
32445
32455
  ...c,
32446
32456
  filters: e.payloadForSQL.filters,
32447
32457
  context: e.payloadForSQL.context
@@ -32709,7 +32719,7 @@ const o6 = D(({
32709
32719
  ...Xo
32710
32720
  // background: 'rgb(231, 245, 255)',
32711
32721
  }, children: e("view.download_schema") });
32712
- }), aa = ({
32722
+ }), ia = ({
32713
32723
  headers: e,
32714
32724
  rows: t
32715
32725
  }) => /* @__PURE__ */ u(w, { fz: "xs", highlightOnHover: !0, sx: {
@@ -32726,7 +32736,7 @@ const o6 = D(({
32726
32736
  } = _(), n = e.views;
32727
32737
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32728
32738
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("view.labels") }),
32729
- /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32739
+ /* @__PURE__ */ r(ia, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32730
32740
  /* @__PURE__ */ r(w.Th, { style: {
32731
32741
  width: "160px"
32732
32742
  }, children: t("common.id") }),
@@ -32746,7 +32756,7 @@ const o6 = D(({
32746
32756
  } = _(), n = e.filters;
32747
32757
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32748
32758
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("filter.labels") }),
32749
- /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32759
+ /* @__PURE__ */ r(ia, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32750
32760
  /* @__PURE__ */ r(w.Th, { style: {
32751
32761
  width: "160px"
32752
32762
  }, children: t("common.id") }),
@@ -32766,7 +32776,7 @@ const o6 = D(({
32766
32776
  } = _(), n = e.panels;
32767
32777
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32768
32778
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("panel.labels") }),
32769
- /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32779
+ /* @__PURE__ */ r(ia, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32770
32780
  /* @__PURE__ */ r(w.Th, { style: {
32771
32781
  width: "160px"
32772
32782
  }, children: t("common.id") }),
@@ -32787,7 +32797,7 @@ const o6 = D(({
32787
32797
  } = _(), n = (a = e.definition) == null ? void 0 : a.queries;
32788
32798
  return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32789
32799
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("query.labels") }),
32790
- /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32800
+ /* @__PURE__ */ r(ia, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32791
32801
  /* @__PURE__ */ r(w.Th, { style: {
32792
32802
  width: "160px"
32793
32803
  }, children: t("common.id") }),
@@ -32976,15 +32986,15 @@ const x6 = D(({
32976
32986
  case "mock_context":
32977
32987
  return /* @__PURE__ */ r(Pl, { ...t });
32978
32988
  case "filter":
32979
- return /* @__PURE__ */ r(Ga, { ...t });
32989
+ return /* @__PURE__ */ r(Wa, { ...t });
32980
32990
  case "sql_snippet":
32981
- return /* @__PURE__ */ r(Ha, { ...t });
32991
+ return /* @__PURE__ */ r(Ga, { ...t });
32982
32992
  case "query":
32983
32993
  return /* @__PURE__ */ r(on, { ...t });
32984
32994
  case "view":
32985
- return /* @__PURE__ */ r(Wa, { ...t });
32995
+ return /* @__PURE__ */ r(Ua, { ...t });
32986
32996
  case "panel":
32987
- return /* @__PURE__ */ r(ja, { ...t });
32997
+ return /* @__PURE__ */ r(Qa, { ...t });
32988
32998
  default:
32989
32999
  return null;
32990
33000
  }
@@ -33089,7 +33099,7 @@ const x6 = D(({
33089
33099
  return /* @__PURE__ */ r(re, { label: /* @__PURE__ */ u(q, { children: [
33090
33100
  el && /* @__PURE__ */ r(Jo, { children: "⌘ + K" }),
33091
33101
  !el && /* @__PURE__ */ r(Jo, { children: "Ctrl + K" })
33092
- ] }), children: /* @__PURE__ */ r(Aa, { onClick: () => pm.open(), style: {
33102
+ ] }), children: /* @__PURE__ */ r(Ra, { onClick: () => pm.open(), style: {
33093
33103
  height: "1.875rem",
33094
33104
  borderLeft: "none",
33095
33105
  borderTop: "none",
@@ -33398,7 +33408,7 @@ function U6(e) {
33398
33408
  };
33399
33409
  return W6(s);
33400
33410
  }
33401
- const pa = {
33411
+ const ma = {
33402
33412
  "builtin:op:open-link": /* @__PURE__ */ r(Jn, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ r(Ph, { size: 14 }) }),
33403
33413
  "builtin:op:set_filter_values": /* @__PURE__ */ r(Jn, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(Ah, { size: 14 }) }),
33404
33414
  "builtin:op:clear_filter_values": /* @__PURE__ */ r(Jn, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ r(Il, { size: 14 }) })
@@ -33410,7 +33420,7 @@ function K6(e) {
33410
33420
  case "builtin:op:open-link":
33411
33421
  t.push({
33412
33422
  key: n.urlTemplate,
33413
- icon: pa[n.schemaRef],
33423
+ icon: ma[n.schemaRef],
33414
33424
  text: /* @__PURE__ */ u(y, { gap: 4, children: [
33415
33425
  /* @__PURE__ */ r(k, { size: "sm", children: "Open: " }),
33416
33426
  /* @__PURE__ */ r(k, { size: "sm", c: "dimmed", children: n.shortURLTemplate })
@@ -33424,7 +33434,7 @@ function K6(e) {
33424
33434
  }) => {
33425
33435
  t.push({
33426
33436
  key: n.schemaRef + a,
33427
- icon: pa[n.schemaRef],
33437
+ icon: ma[n.schemaRef],
33428
33438
  text: /* @__PURE__ */ r(y, { gap: 4, children: /* @__PURE__ */ u(k, { size: "sm", children: [
33429
33439
  "Set Filter: ",
33430
33440
  i
@@ -33439,7 +33449,7 @@ function K6(e) {
33439
33449
  }) => {
33440
33450
  t.push({
33441
33451
  key: n.schemaRef + a,
33442
- icon: pa[n.schemaRef],
33452
+ icon: ma[n.schemaRef],
33443
33453
  text: /* @__PURE__ */ r(y, { gap: 4, children: /* @__PURE__ */ u(k, { size: "sm", children: [
33444
33454
  "Clear Filter: ",
33445
33455
  i
@@ -33545,7 +33555,7 @@ function tD({
33545
33555
  return /* @__PURE__ */ u($, { sx: {
33546
33556
  position: "relative"
33547
33557
  }, children: [
33548
- /* @__PURE__ */ r(Aa, { sx: (i) => ({
33558
+ /* @__PURE__ */ r(Ra, { sx: (i) => ({
33549
33559
  display: "block",
33550
33560
  width: "100%",
33551
33561
  padding: i.spacing.xs,
@@ -33618,13 +33628,13 @@ const nD = D(() => {
33618
33628
  }, children: [
33619
33629
  /* @__PURE__ */ r(re, { label: e("filter.labels"), withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "default", radius: 0, size: "md", sx: {
33620
33630
  height: "30px"
33621
- }, onClick: i, children: /* @__PURE__ */ r(Ga, { size: 18 }) }) }),
33631
+ }, onClick: i, children: /* @__PURE__ */ r(Wa, { size: 18 }) }) }),
33622
33632
  /* @__PURE__ */ r(re, { label: e("query.labels"), withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "default", radius: 0, size: "md", sx: {
33623
33633
  height: "30px"
33624
33634
  }, onClick: a, children: /* @__PURE__ */ r(on, { size: 18 }) }) }),
33625
33635
  /* @__PURE__ */ r(re, { label: e("interactions.interactions_viewer"), withinPortal: !0, children: /* @__PURE__ */ r(te, { variant: "default", radius: 0, size: "md", sx: {
33626
33636
  height: "30px"
33627
- }, onClick: s, children: /* @__PURE__ */ r(Qa, { size: 18 }) }) })
33637
+ }, onClick: s, children: /* @__PURE__ */ r(Ha, { size: 18 }) }) })
33628
33638
  ] }),
33629
33639
  /* @__PURE__ */ r(J6, { opened: o, close: c })
33630
33640
  ] }),
@@ -33790,7 +33800,7 @@ const nD = D(() => {
33790
33800
  }, mx: "auto", children: n("common.actions.add_an_option") })
33791
33801
  ] }),
33792
33802
  /* @__PURE__ */ r(A, { label: n("filter.widget.common.or_fetch_options_from_datasource"), labelPosition: "center" }),
33793
- /* @__PURE__ */ r(na, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
33803
+ /* @__PURE__ */ r(ra, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
33794
33804
  /* @__PURE__ */ r(ne, { value: a.default_selection_count, onChange: a.setDefaultSelectionCount, label: n("filter.widget.common.default_selection_count") }),
33795
33805
  /* @__PURE__ */ r(ji, { config: a }),
33796
33806
  /* @__PURE__ */ r(pu, {})
@@ -33931,7 +33941,7 @@ const nD = D(() => {
33931
33941
  ] }),
33932
33942
  /* @__PURE__ */ r(A, { label: t("filter.widget.common.or_fetch_options_from_datasource"), labelPosition: "center" }),
33933
33943
  /* @__PURE__ */ r(Z, { checked: n.default_selection_count === 1, onChange: (a) => n.setDefaultSelectionCount(a.currentTarget.checked ? 1 : 0), label: t("filter.widget.select.select_first_option_by_default") }),
33934
- /* @__PURE__ */ r(na, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
33944
+ /* @__PURE__ */ r(ra, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
33935
33945
  /* @__PURE__ */ r(pu, {})
33936
33946
  ] });
33937
33947
  }), uD = D(function({
@@ -34375,15 +34385,15 @@ function mu({
34375
34385
  const t = z(() => {
34376
34386
  if (!Array.isArray(e) || e.length === 0)
34377
34387
  return [];
34378
- const a = Ya();
34388
+ const a = Xa();
34379
34389
  return Object.keys(e[0]).map((i) => a.accessor(i, {
34380
34390
  cell: (o) => o.getValue()
34381
34391
  }));
34382
- }, [e]), n = Xa({
34392
+ }, [e]), n = Za({
34383
34393
  data: e,
34384
34394
  columns: t,
34385
34395
  columnResizeMode: "onChange",
34386
- getCoreRowModel: Za()
34396
+ getCoreRowModel: Ja()
34387
34397
  });
34388
34398
  return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
34389
34399
  height: "5em"
@@ -34392,7 +34402,7 @@ function mu({
34392
34402
  width: i.getSize()
34393
34403
  }, children: [
34394
34404
  i.isPlaceholder ? null : En(i.column.columnDef.header, i.getContext()),
34395
- /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ba, {}) })
34405
+ /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(ja, {}) })
34396
34406
  ] }, i.id)) }, a.id)) }),
34397
34407
  /* @__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(Te, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : En(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, a.id)) })
34398
34408
  ] }) });
@@ -34493,7 +34503,7 @@ const zD = [{
34493
34503
  stateMessage: l
34494
34504
  } = a;
34495
34505
  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;
34496
- }), Ma = D(({
34506
+ }), La = D(({
34497
34507
  id: e,
34498
34508
  moreActions: t,
34499
34509
  refreshOnMount: n
@@ -34548,10 +34558,10 @@ const zD = [{
34548
34558
  /* @__PURE__ */ r(eh, { opened: o, onClose: () => l(!1), title: t("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r(Z.Group, { value: [...i.queryIDs], onChange: i.setQueryIDs, children: /* @__PURE__ */ r(T, { gap: "lg", children: a.queries.options.map((d) => /* @__PURE__ */ r(Z, { label: d.label, value: d.value }, d.value)) }) }) }),
34549
34559
  /* @__PURE__ */ u(T, { gap: 6, children: [
34550
34560
  /* @__PURE__ */ r(y, { justify: "flex-start", children: /* @__PURE__ */ r(L, { variant: "light", size: "sm", leftSection: /* @__PURE__ */ r(Oh, { size: 16 }), onClick: () => l(!0), children: t(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
34551
- c === 1 && /* @__PURE__ */ r(Ma, { 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(ya, { size: 16 }) }) }) }),
34561
+ c === 1 && /* @__PURE__ */ r(La, { 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(_a, { size: 16 }) }) }) }),
34552
34562
  c > 1 && /* @__PURE__ */ u(S, { defaultValue: i.queryIDs[0], children: [
34553
34563
  /* @__PURE__ */ r(S.List, { children: i.queries.map((d) => /* @__PURE__ */ r(S.Tab, { value: d.id, children: d.name }, d.id)) }),
34554
- i.queries.map((d) => /* @__PURE__ */ r(S.Panel, { value: d.id, children: /* @__PURE__ */ r(Ma, { 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(ya, { size: 16 }) }) }) }) }, d.id))
34564
+ i.queries.map((d) => /* @__PURE__ */ r(S.Panel, { value: d.id, children: /* @__PURE__ */ r(La, { 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(_a, { size: 16 }) }) }) }) }, d.id))
34555
34565
  ] })
34556
34566
  ] })
34557
34567
  ] });
@@ -34706,7 +34716,7 @@ const OD = D(() => {
34706
34716
  e.moveToView(t, i), c();
34707
34717
  };
34708
34718
  return /* @__PURE__ */ u(q, { children: [
34709
- /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftSection: /* @__PURE__ */ r(Wa, { size: 14 }), children: n("panel.settings.change_view") }),
34719
+ /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftSection: /* @__PURE__ */ r(Ua, { size: 14 }), children: n("panel.settings.change_view") }),
34710
34720
  /* @__PURE__ */ r(we, { opened: l, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ u(T, { sx: {
34711
34721
  maxHeight: "calc(100vh - 185px)",
34712
34722
  overflow: "hidden"
@@ -34754,7 +34764,7 @@ const OD = D(() => {
34754
34764
  width: "100%"
34755
34765
  }, withCopyButton: !1, code: o }) })
34756
34766
  ] }) });
34757
- }), ma = {
34767
+ }), ga = {
34758
34768
  name: "new_var",
34759
34769
  size: "1rem",
34760
34770
  weight: "initial",
@@ -34795,10 +34805,10 @@ class ND {
34795
34805
  }));
34796
34806
  }
34797
34807
  addNew() {
34798
- const t = this.panel.variables.filter((n) => n.name.startsWith(ma.name)).length;
34808
+ const t = this.panel.variables.filter((n) => n.name.startsWith(ga.name)).length;
34799
34809
  this.panel.addVariable(Ae({
34800
- ...ma,
34801
- name: `${ma.name}${t || ""}`
34810
+ ...ga,
34811
+ name: `${ga.name}${t || ""}`
34802
34812
  })), this.selected = pl(this.panel.variables);
34803
34813
  }
34804
34814
  select(t) {
@@ -34850,7 +34860,7 @@ const jD = R.forwardRef(function({
34850
34860
  /* @__PURE__ */ r(V, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
34851
34861
  /* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
34852
34862
  ] }),
34853
- /* @__PURE__ */ r(Ci, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
34863
+ /* @__PURE__ */ r(ki, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
34854
34864
  t.aggregation.type !== "custom" && /* @__PURE__ */ u(q, { children: [
34855
34865
  /* @__PURE__ */ r(A, { mt: "xl", mb: 0, label: o("numbro.format.label"), labelPosition: "center", variant: "dashed" }),
34856
34866
  /* @__PURE__ */ r(xt, { value: t.formatter, onChange: (s) => l("formatter", s) })
@@ -34924,7 +34934,7 @@ const HD = D(({
34924
34934
  padding: 10,
34925
34935
  overflow: "auto"
34926
34936
  }
34927
- }, ga = ({
34937
+ }, fa = ({
34928
34938
  children: e
34929
34939
  }) => /* @__PURE__ */ u(y, { wrap: "nowrap", grow: !0, justify: "flex-start", gap: 20, sx: {
34930
34940
  width: "100%",
@@ -34999,10 +35009,10 @@ const KD = D(({
34999
35009
  /* @__PURE__ */ u(S, { value: o, onChange: g, keepMounted: !1, styles: WD, children: [
35000
35010
  /* @__PURE__ */ u(S.List, { children: [
35001
35011
  /* @__PURE__ */ r(S.Tab, { value: "Data", leftSection: /* @__PURE__ */ r(on, { size: 14 }), disabled: d, children: t("data.label") }),
35002
- /* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r(ja, { size: 14 }), children: t("panel.label") }),
35012
+ /* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: t("panel.label") }),
35003
35013
  /* @__PURE__ */ r(S.Tab, { value: "Variables", leftSection: /* @__PURE__ */ r(Bn, { 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") }) }) }),
35004
35014
  /* @__PURE__ */ r(S.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ r(Vl, { 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") }) }) }),
35005
- /* @__PURE__ */ r(S.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: t("interactions.label") })
35015
+ /* @__PURE__ */ r(S.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ r(Ha, { size: 14 }), children: t("interactions.label") })
35006
35016
  ] }),
35007
35017
  /* @__PURE__ */ u(S.Panel, { value: "Data", children: [
35008
35018
  /* @__PURE__ */ r(un, { visible: d, transitionProps: {
@@ -35010,9 +35020,9 @@ const KD = D(({
35010
35020
  } }),
35011
35021
  /* @__PURE__ */ r(LD, {})
35012
35022
  ] }),
35013
- /* @__PURE__ */ r(S.Panel, { value: "Panel", children: /* @__PURE__ */ r(ga, { children: /* @__PURE__ */ r(CD, {}) }) }),
35014
- /* @__PURE__ */ r(S.Panel, { value: "Variables", children: /* @__PURE__ */ r(ga, { children: /* @__PURE__ */ r(GD, {}) }) }),
35015
- /* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(ga, { children: /* @__PURE__ */ r(OD, {}) }) }) }),
35023
+ /* @__PURE__ */ r(S.Panel, { value: "Panel", children: /* @__PURE__ */ r(fa, { children: /* @__PURE__ */ r(CD, {}) }) }),
35024
+ /* @__PURE__ */ r(S.Panel, { value: "Variables", children: /* @__PURE__ */ r(fa, { children: /* @__PURE__ */ r(GD, {}) }) }),
35025
+ /* @__PURE__ */ r(S.Panel, { value: "Visualization", children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(fa, { children: /* @__PURE__ */ r(OD, {}) }) }) }),
35016
35026
  /* @__PURE__ */ r(S.Panel, { value: "Interactions", children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(pb, {}) }) })
35017
35027
  ] })
35018
35028
  ] });
@@ -35385,7 +35395,7 @@ const lI = D(({
35385
35395
  ".mantine-NavLink-label": {
35386
35396
  fontFamily: "monospace"
35387
35397
  }
35388
- }, children: Object.entries(n.data).map(([a, i]) => /* @__PURE__ */ r(ba, { label: a, title: a, leftSection: /* @__PURE__ */ r(on, { size: 14 }), defaultOpened: t.table_schema === a, pl: 0, childrenOffset: 14, children: i.map((o) => /* @__PURE__ */ r(ba, { label: o.table_name, title: o.table_name, leftSection: /* @__PURE__ */ r(oI, { table_type: o.table_type }), onClick: () => {
35398
+ }, children: Object.entries(n.data).map(([a, i]) => /* @__PURE__ */ r(ya, { label: a, title: a, leftSection: /* @__PURE__ */ r(on, { size: 14 }), defaultOpened: t.table_schema === a, pl: 0, childrenOffset: 14, children: i.map((o) => /* @__PURE__ */ r(ya, { label: o.table_name, title: o.table_name, leftSection: /* @__PURE__ */ r(oI, { table_type: o.table_type }), onClick: () => {
35389
35399
  t.setKeywords(a, o.table_name);
35390
35400
  }, active: t.table_name === o.table_name }, o.table_name)) }, a)) });
35391
35401
  }), sI = ({
@@ -35660,9 +35670,9 @@ const lI = D(({
35660
35670
  } }),
35661
35671
  /* @__PURE__ */ r(yu, { queryModel: e }),
35662
35672
  /* @__PURE__ */ r(A, { mt: 10, mb: -10, variant: "dashed", label: t("query.conditions"), labelPosition: "center" }),
35663
- /* @__PURE__ */ r(Kt, { 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: sa, maxDropdownHeight: 500 }),
35664
- e.typedAsHTTP && /* @__PURE__ */ r(Kt, { 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: sa, maxDropdownHeight: 500 }),
35665
- e.isTransform && /* @__PURE__ */ r(Kt, { 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: sa, maxDropdownHeight: 500 }),
35673
+ /* @__PURE__ */ r(Kt, { 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: ca, maxDropdownHeight: 500 }),
35674
+ e.typedAsHTTP && /* @__PURE__ */ r(Kt, { 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: ca, maxDropdownHeight: 500 }),
35675
+ e.isTransform && /* @__PURE__ */ r(Kt, { 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: ca, maxDropdownHeight: 500 }),
35666
35676
  /* @__PURE__ */ r(A, { mt: 20, mb: 10, variant: "dashed" }),
35667
35677
  /* @__PURE__ */ r(JD, { queryModel: e })
35668
35678
  ] }) });
@@ -35869,7 +35879,7 @@ WHERE
35869
35879
  /* @__PURE__ */ r(L, { color: "green", size: "xs", onClick: o, disabled: !c, leftSection: /* @__PURE__ */ r(fe, { size: 16 }), children: t("common.actions.save_changes") })
35870
35880
  ] })
35871
35881
  ] }),
35872
- /* @__PURE__ */ r(si, { height: "100%", value: a, onChange: i, theme: "sql-dark", defaultLanguage: "sql" })
35882
+ /* @__PURE__ */ r(ci, { height: "100%", value: a, onChange: i, theme: "sql-dark", defaultLanguage: "sql" })
35873
35883
  ] });
35874
35884
  }), kI = ({
35875
35885
  value: e,
@@ -35887,7 +35897,7 @@ WHERE
35887
35897
  } }), zI = D(({
35888
35898
  value: e
35889
35899
  }) => {
35890
- const n = _e().payloadForSQL, a = R.useMemo(() => ui(e, n), [e, n]);
35900
+ const n = _e().payloadForSQL, a = R.useMemo(() => hi(e, n), [e, n]);
35891
35901
  return /* @__PURE__ */ r(kI, { height: "100%", value: a });
35892
35902
  }), ol = {
35893
35903
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
@@ -35990,7 +36000,7 @@ WHERE
35990
36000
  /* @__PURE__ */ r(S.Panel, { value: "Data", sx: {
35991
36001
  ...Yn,
35992
36002
  overflow: "hidden"
35993
- }, children: /* @__PURE__ */ r(Ma, { id: e.id, moreActions: null, refreshOnMount: !0 }) }),
36003
+ }, children: /* @__PURE__ */ r(La, { id: e.id, moreActions: null, refreshOnMount: !0 }) }),
35994
36004
  /* @__PURE__ */ r(S.Panel, { value: "Usage", py: "sm", px: "md", sx: {
35995
36005
  ...Yn,
35996
36006
  overflow: "hidden"
@@ -36101,15 +36111,15 @@ function RI({
36101
36111
  const t = z(() => {
36102
36112
  if (!Array.isArray(e) || e.length === 0)
36103
36113
  return [];
36104
- const a = Ya();
36114
+ const a = Xa();
36105
36115
  return Object.keys(e[0]).map((i) => a.accessor(i, {
36106
36116
  cell: (o) => o.getValue()
36107
36117
  }));
36108
- }, [e]), n = Xa({
36118
+ }, [e]), n = Za({
36109
36119
  data: e,
36110
36120
  columns: t,
36111
36121
  columnResizeMode: "onChange",
36112
- getCoreRowModel: Za()
36122
+ getCoreRowModel: Ja()
36113
36123
  });
36114
36124
  return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
36115
36125
  height: "5em"
@@ -36120,7 +36130,7 @@ function RI({
36120
36130
  width: i.getSize()
36121
36131
  }, children: [
36122
36132
  i.isPlaceholder ? null : En(i.column.columnDef.header, i.getContext()),
36123
- /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(Ba, {}) })
36133
+ /* @__PURE__ */ r(te, { variant: "subtle", onMouseDown: i.getResizeHandler(), onTouchStart: i.getResizeHandler(), className: `resizer ${i.column.getIsResizing() ? "isResizing" : ""}`, children: /* @__PURE__ */ r(ja, {}) })
36124
36134
  ] }, i.id)) }, a.id)) }),
36125
36135
  /* @__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(Te, { children: typeof i.getValue() == "object" ? /* @__PURE__ */ r("pre", { children: JSON.stringify(i.getValue(), null, 2) }) : En(i.column.columnDef.cell, i.getContext()) }) }, i.id)) }, a.id)) })
36126
36136
  ] }) });
@@ -36408,7 +36418,7 @@ const EI = [{
36408
36418
  }) => {
36409
36419
  const i = e.metricDetail, o = e.metrics.loading || i.loading, l = i.error, s = i.filterColOptions, c = th({
36410
36420
  onDropdownClose: () => c.resetSelectedOption()
36411
- }), d = z(() => o ? /* @__PURE__ */ r(Fa, { size: "xs" }) : t ? /* @__PURE__ */ r(Ct, { size: "xs", onClick: () => n(null) }) : /* @__PURE__ */ r(Wt.Chevron, { size: "xs" }), [o, t]), h = /* @__PURE__ */ r(nh, { 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: YI, error: !!l, children: t || /* @__PURE__ */ r(rh.Placeholder, { children: "选择维度" }) });
36421
+ }), d = z(() => o ? /* @__PURE__ */ r(qa, { size: "xs" }) : t ? /* @__PURE__ */ r(Ct, { size: "xs", onClick: () => n(null) }) : /* @__PURE__ */ r(Wt.Chevron, { size: "xs" }), [o, t]), h = /* @__PURE__ */ r(nh, { 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: YI, error: !!l, children: t || /* @__PURE__ */ r(rh.Placeholder, { children: "选择维度" }) });
36412
36422
  return /* @__PURE__ */ u(Wt, { store: c, onOptionSubmit: (p) => {
36413
36423
  n(p), c.closeDropdown();
36414
36424
  }, styles: KI, children: [
@@ -36527,7 +36537,7 @@ const EI = [{
36527
36537
  clearable: !0
36528
36538
  }
36529
36539
  );
36530
- }), La = D(({
36540
+ }), Va = D(({
36531
36541
  variable: e
36532
36542
  }) => {
36533
36543
  const t = he();
@@ -36573,7 +36583,7 @@ const EI = [{
36573
36583
  t.filters.map((i) => /* @__PURE__ */ u(w.Tr, { children: [
36574
36584
  /* @__PURE__ */ r(w.Td, { pr: 0, children: /* @__PURE__ */ r(dl, { mmInfo: a, value: i.dimension, onChange: i.setDimension, usedKeys: t.usedFilterDimensionKeys }) }),
36575
36585
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(y, { justify: "flex-start", grow: !0, gap: 0, w: "100%", children: [
36576
- /* @__PURE__ */ r(La, { variable: i.variable }),
36586
+ /* @__PURE__ */ r(Va, { variable: i.variable }),
36577
36587
  /* @__PURE__ */ r(Dr, { queryModel: e, value: i.variable, onChange: i.setVariable })
36578
36588
  ] }) }),
36579
36589
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(Z, { size: "xs", checked: e.keyInRunBy(i.variable), onChange: (o) => e.changeRunByRecord(i.variable, o.currentTarget.checked), color: "red" }) })
@@ -36644,7 +36654,7 @@ const EI = [{
36644
36654
  /* @__PURE__ */ r(k, { size: "xs", c: "dimmed", ff: "monospace", children: (o == null ? void 0 : o.name) ?? null })
36645
36655
  ] }) }),
36646
36656
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(y, { justify: "flex-start", gap: 0, grow: !0, children: [
36647
- /* @__PURE__ */ r(La, { variable: t.timeQuery.range_variable }),
36657
+ /* @__PURE__ */ r(Va, { variable: t.timeQuery.range_variable }),
36648
36658
  /* @__PURE__ */ r(Dr, { queryModel: e, value: t.timeQuery.range_variable, onChange: t.setRangeVariable, usedKeys: t.usedTimeQueryVariableSet })
36649
36659
  ] }) }),
36650
36660
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ul, { queryModel: e, variable: t.timeQuery.range_variable }) })
@@ -36652,7 +36662,7 @@ const EI = [{
36652
36662
  /* @__PURE__ */ u(w.Tr, { children: [
36653
36663
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(k, { size: "xs", children: "步长" }) }),
36654
36664
  /* @__PURE__ */ r(w.Td, { colSpan: 2, pr: 0, children: /* @__PURE__ */ u(y, { justify: "flex-start", gap: 0, grow: !0, children: [
36655
- /* @__PURE__ */ r(La, { variable: t.timeQuery.unit_variable }),
36665
+ /* @__PURE__ */ r(Va, { variable: t.timeQuery.unit_variable }),
36656
36666
  /* @__PURE__ */ r(Dr, { queryModel: e, value: t.timeQuery.unit_variable, onChange: t.setUnitVariable, usedKeys: t.usedTimeQueryVariableSet })
36657
36667
  ] }) }),
36658
36668
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ul, { queryModel: e, variable: t.timeQuery.unit_variable }) })
@@ -36719,7 +36729,7 @@ const EI = [{
36719
36729
  }), t.setGroupBys(h);
36720
36730
  };
36721
36731
  return /* @__PURE__ */ u(q, { children: [
36722
- /* @__PURE__ */ r(Kt, { size: "sm", label: "分组聚合维度", description: "指标在查询时按照哪些维度进行聚合计算。最多支持两个维度的聚合计算。若选择按时间序列展示,则仅可选择一个聚合维度。", data: l, searchable: !0, styles: a8, renderOption: i8, rightSection: o ? /* @__PURE__ */ r(Fa, { size: "xs" }) : null, value: [...t.groupByValues], onChange: s, maxValues: t.timeQuery.enabled ? 1 : 2, placeholder: t.timeQuery.enabled ? "仅可选一个维度" : "最多选两个维度", disabled: o }),
36732
+ /* @__PURE__ */ r(Kt, { size: "sm", label: "分组聚合维度", description: "指标在查询时按照哪些维度进行聚合计算。最多支持两个维度的聚合计算。若选择按时间序列展示,则仅可选择一个聚合维度。", data: l, searchable: !0, styles: a8, renderOption: i8, rightSection: o ? /* @__PURE__ */ r(qa, { size: "xs" }) : null, value: [...t.groupByValues], onChange: s, maxValues: t.timeQuery.enabled ? 1 : 2, placeholder: t.timeQuery.enabled ? "仅可选一个维度" : "最多选两个维度", disabled: o }),
36723
36733
  /* @__PURE__ */ r(Ce, { labelPosition: "left", label: "聚合维度为空时,自动补零", size: "sm", color: "red", checked: t.useDefaultValues, onChange: (c) => t.setUseDefaultValues(c.currentTarget.checked), disabled: l.length === 0 })
36724
36734
  ] });
36725
36735
  }), l8 = D(({
@@ -36835,7 +36845,7 @@ const EI = [{
36835
36845
  root: {
36836
36846
  flexGrow: 1
36837
36847
  }
36838
- }, maxDropdownHeight: 500, value: t.id, onChange: l, rightSection: c ? /* @__PURE__ */ r(Fa, { size: "xs" }) : null }),
36848
+ }, maxDropdownHeight: 500, value: t.id, onChange: l, rightSection: c ? /* @__PURE__ */ r(qa, { size: "xs" }) : null }),
36839
36849
  /* @__PURE__ */ r(re, { label: "跳转到指标明细页查看详情。", disabled: c, children: /* @__PURE__ */ r(Rn, { size: "md", variant: "subtle", mb: 2, href: s, target: "_blank", underline: "never", children: /* @__PURE__ */ r(LI, { width: 14, height: 14 }) }) })
36840
36850
  ] }) });
36841
36851
  }), m8 = D(({
@@ -36896,8 +36906,8 @@ const EI = [{
36896
36906
  }), f8 = D(({
36897
36907
  value: e
36898
36908
  }) => {
36899
- const n = _e().payloadForSQL, a = z(() => ui(e, n), [e, n]);
36900
- return /* @__PURE__ */ r(si, { height: "100%", value: a });
36909
+ const n = _e().payloadForSQL, a = z(() => hi(e, n), [e, n]);
36910
+ return /* @__PURE__ */ r(ci, { height: "100%", value: a });
36901
36911
  }), b8 = D(({
36902
36912
  item: e,
36903
36913
  remove: t,
@@ -36961,7 +36971,7 @@ const EI = [{
36961
36971
  right: 10
36962
36972
  }, children: /* @__PURE__ */ r(fe, { size: 18 }) })
36963
36973
  ] }),
36964
- /* @__PURE__ */ r(S.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r(si, { height: "100%", value: p, onChange: g, defaultLanguage: "sql", theme: "sql-dark" }) }),
36974
+ /* @__PURE__ */ r(S.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ r(ci, { height: "100%", value: p, onChange: g, defaultLanguage: "sql", theme: "sql-dark" }) }),
36965
36975
  /* @__PURE__ */ r(S.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ r(f8, { value: p }) })
36966
36976
  ] })
36967
36977
  ] });
@@ -37139,7 +37149,7 @@ const EI = [{
37139
37149
  } = _(), [a, {
37140
37150
  setTrue: i,
37141
37151
  setFalse: o
37142
- }] = De(), [l, s] = Q(e ?? Ta), c = (b) => {
37152
+ }] = De(), [l, s] = Q(e ?? Da), c = (b) => {
37143
37153
  s({
37144
37154
  ...l,
37145
37155
  enabled: b
@@ -37162,7 +37172,7 @@ const EI = [{
37162
37172
  func_content: b
37163
37173
  }));
37164
37174
  }, g = () => {
37165
- p(Ta.func_content);
37175
+ p(Da.func_content);
37166
37176
  };
37167
37177
  return /* @__PURE__ */ u(q, { children: [
37168
37178
  /* @__PURE__ */ r(te, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: i, sx: {
@@ -37285,7 +37295,7 @@ const EI = [{
37285
37295
  height: "100%"
37286
37296
  }, p: "sm", children: /* @__PURE__ */ r(_u, {}) })), I8 = D(() => {
37287
37297
  const e = he().editor, t = e.path;
37288
- return q4(t) ? /* @__PURE__ */ r(D8, {}) : N4(t) ? /* @__PURE__ */ r(yD, {}) : B4(t) ? /* @__PURE__ */ r(bD, {}) : j4(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(fD, { id: t[1] }) }) : Q4(t) ? /* @__PURE__ */ r(_8, {}) : H4(t) ? /* @__PURE__ */ r(y8, { id: t[1] }) : W4(t) ? /* @__PURE__ */ r(XD, {}) : G4(t) ? /* @__PURE__ */ r(g8, { id: t[1] }) : U4(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(T8, { id: t[1] }) }) : Ia(t) ? /* @__PURE__ */ r(YD, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r($, { children: e.path });
37298
+ return q4(t) ? /* @__PURE__ */ r(D8, {}) : N4(t) ? /* @__PURE__ */ r(yD, {}) : B4(t) ? /* @__PURE__ */ r(bD, {}) : j4(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(fD, { id: t[1] }) }) : Q4(t) ? /* @__PURE__ */ r(_8, {}) : H4(t) ? /* @__PURE__ */ r(y8, { id: t[1] }) : W4(t) ? /* @__PURE__ */ r(XD, {}) : G4(t) ? /* @__PURE__ */ r(g8, { id: t[1] }) : U4(t) ? /* @__PURE__ */ r($, { p: "xs", pl: 20, children: /* @__PURE__ */ r(T8, { id: t[1] }) }) : Ma(t) ? /* @__PURE__ */ r(YD, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r($, { children: e.path });
37289
37299
  }), M8 = D(() => /* @__PURE__ */ r(I8, {})), L8 = D(() => {
37290
37300
  const {
37291
37301
  t: e
@@ -37432,7 +37442,7 @@ const EI = [{
37432
37442
  } = _(), n = he().editor, a = n.isOptionActive, i = a(n.path, e), o = n.isOptionOpened, l = n.navigate, s = o(e), [c, d] = Q(s);
37433
37443
  return N(() => {
37434
37444
  d(s);
37435
- }, [s]), /* @__PURE__ */ r(ba, { 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(F8, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ r(wu, { option: p }, p.value)) }, e.label);
37445
+ }, [s]), /* @__PURE__ */ r(ya, { 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(F8, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ r(wu, { option: p }, p.value)) }, e.label);
37436
37446
  }), q8 = D(() => {
37437
37447
  const e = he();
37438
37448
  return /* @__PURE__ */ r($, { sx: {
@@ -37514,15 +37524,15 @@ const EI = [{
37514
37524
  }), Q8 = (e) => e.replace(/([^:])(\/\/+)/g, "$1/");
37515
37525
  function H8(e) {
37516
37526
  N(() => {
37517
- if (oa.__getMonacoInstance())
37527
+ if (la.__getMonacoInstance())
37518
37528
  return;
37519
37529
  console.log("loading monaco for @devtable/dashboard");
37520
37530
  const n = Q8(e);
37521
- oa.config({
37531
+ la.config({
37522
37532
  paths: {
37523
37533
  vs: n
37524
37534
  }
37525
- }), oa.init().then((a) => console.log("monaco instance:", a));
37535
+ }), la.init().then((a) => console.log("monaco instance:", a));
37526
37536
  }, []);
37527
37537
  }
37528
37538
  const G8 = (e) => {
@@ -37593,7 +37603,7 @@ const W8 = {
37593
37603
  }), [v]);
37594
37604
  const I = async () => {
37595
37605
  await a(v.json, v.content.json);
37596
- }, M = Ft(qi, []), P = su(M);
37606
+ }, M = Ft(Ni, []), P = su(M);
37597
37607
  return G8(v.content.changed), xl("@devtable/dashboard editor", {
37598
37608
  context: e,
37599
37609
  dashboard: t,
@@ -37717,7 +37727,7 @@ const Su = m.model({
37717
37727
  }), a;
37718
37728
  },
37719
37729
  get dashboardStateValues() {
37720
- return ci(this.payloadForSQL);
37730
+ return di(this.payloadForSQL);
37721
37731
  },
37722
37732
  getAdditionalQueryInfo(t) {
37723
37733
  return {
@@ -37866,7 +37876,7 @@ const Z8 = ({
37866
37876
  }, [h, x.content.views.firstVisibleTabsViewActiveTabStr]), R.useEffect(() => {
37867
37877
  d && x.content.views.setFirstVisibleTabsViewActiveTab(d);
37868
37878
  }, [d, x.content.views.setFirstVisibleTabsViewActiveTab]);
37869
- const v = Ft(qi, [x]), I = su(v);
37879
+ const v = Ft(Ni, [x]), I = su(v);
37870
37880
  return xl("@devtable/dashboard render", {
37871
37881
  context: e,
37872
37882
  dashboard: t,
@@ -37900,7 +37910,7 @@ export {
37900
37910
  vs as ContentModelContextProvider,
37901
37911
  Su as ContentRenderModel,
37902
37912
  Gi as ContextMeta,
37903
- Ta as DEFAULT_CUSTOM_MODAL_TITLE,
37913
+ Da as DEFAULT_CUSTOM_MODAL_TITLE,
37904
37914
  Qz as DashboardApiClient,
37905
37915
  Hz as DashboardApiFacadeClient,
37906
37916
  lL as DashboardEditor,