@devtable/dashboard 14.43.5 → 14.44.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,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 $a, omit as yn, isFunction as $u, orderBy as Vu, last as pl, cloneDeepWith as ml, defaults as pe, minBy as Pu, maxBy as Au, cloneDeep as Ae, values as Va, 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 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";
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";
@@ -16,7 +16,7 @@ import "echarts-gl";
16
16
  import * as Ne from "echarts/core";
17
17
  import { use as ju } from "echarts/core";
18
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 V, TextInput as $, 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 $r, 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 ke, 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 Vr, 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";
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";
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 $l, IconRoute as Qa, IconCopy as Ha, IconArrowLeft as Vl, IconArrowsMove as Dh, IconChevronDownRight as Ih, IconShare3 as Mh, IconArrowsLeftRight as Lh, IconCodeDots as Pl, IconFilter as Ga, IconBoxMultiple as Wa, IconCaretDown as $h, IconAlertTriangle as Al, IconDevices as Vh, 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 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";
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";
@@ -76,8 +76,8 @@ import Dp from "dayjs/plugin/isBetween";
76
76
  import Ip from "dayjs/plugin/isLeapYear";
77
77
  import Mp from "dayjs/plugin/isMoment";
78
78
  import Lp from "dayjs/plugin/isoWeek";
79
- import $p from "dayjs/plugin/isoWeeksInYear";
80
- import Vp from "dayjs/plugin/isSameOrAfter";
79
+ import Vp from "dayjs/plugin/isoWeeksInYear";
80
+ import $p from "dayjs/plugin/isSameOrAfter";
81
81
  import Pp from "dayjs/plugin/isSameOrBefore";
82
82
  import Ap from "dayjs/plugin/isToday";
83
83
  import Rp from "dayjs/plugin/isTomorrow";
@@ -98,7 +98,7 @@ import Yp from "dayjs/plugin/utc";
98
98
  import Xp from "dayjs/plugin/weekday";
99
99
  import Zp from "dayjs/plugin/weekOfYear";
100
100
  import Jp from "dayjs/plugin/weekYear";
101
- import { types as m, cast as Nt, getParent as Ce, destroy as em, getRoot as Le, addDisposer as Ke, detach as yr, isAlive as rs, flow as Rt, toGenerator as Vt, clone as tm, getSnapshot as Pt, applySnapshot as je, addMiddleware as nm, getType as rm, castToSnapshot as as } from "mobx-state-tree";
101
+ import { types as m, cast as Nt, getParent as ke, destroy as em, getRoot as Le, addDisposer as Ke, detach as yr, isAlive as rs, flow as Rt, toGenerator as $t, clone as tm, getSnapshot as Pt, applySnapshot as je, addMiddleware as nm, getType as rm, castToSnapshot as as } from "mobx-state-tree";
102
102
  import is from "dom-to-image-more";
103
103
  import { saveAs as Fr } from "file-saver";
104
104
  import os from "jszip";
@@ -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
- $a(this.rootRef.current, [t], n);
2246
+ Va(this.rootRef.current, [t], n);
2247
2247
  });
2248
2248
  return Promise.resolve(this.getItem(t));
2249
2249
  }
@@ -2398,7 +2398,7 @@ class Mm {
2398
2398
  this.symbol = Symbol(t);
2399
2399
  }
2400
2400
  }
2401
- function $t(e) {
2401
+ function Vt(e) {
2402
2402
  return new Mm(e);
2403
2403
  }
2404
2404
  class Ja {
@@ -2434,7 +2434,7 @@ class Ja {
2434
2434
  dispose() {
2435
2435
  this.instanceRegistry.forEach((t) => {
2436
2436
  const n = se(t, "dispose");
2437
- $u(n) && n.bind(t)();
2437
+ Vu(n) && n.bind(t)();
2438
2438
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
2439
2439
  }
2440
2440
  }
@@ -2468,13 +2468,13 @@ function ms({
2468
2468
  e
2469
2469
  ] });
2470
2470
  }
2471
- function $m() {
2471
+ function Vm() {
2472
2472
  const {
2473
2473
  addonSlotId: e
2474
2474
  } = R.useContext(ps);
2475
2475
  return e ? document.getElementById(e) : null;
2476
2476
  }
2477
- const gs = "14.43.5", Vm = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2477
+ const gs = "14.44.1", $m = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2478
2478
  __proto__: null,
2479
2479
  version: gs
2480
2480
  }, Symbol.toStringTag, { value: "Module" }));
@@ -2558,7 +2558,7 @@ class Rm {
2558
2558
  return n;
2559
2559
  if (t.from > t.to)
2560
2560
  throw new Error(`Can not downgrade from version '${t.from}' to (${t.to})`);
2561
- const i = this.migrations.filter((s) => s.version > t.from && s.version <= t.to), o = Vu(i, "version", "asc");
2561
+ const i = this.migrations.filter((s) => s.version > t.from && s.version <= t.to), o = $u(i, "version", "asc");
2562
2562
  if (((l = pl(o)) == null ? void 0 : l.version) !== t.to)
2563
2563
  throw new Error(`Migration to version ${t.to} not found`);
2564
2564
  return o.reduce((s, c) => c.handler(s, a), n);
@@ -2622,7 +2622,7 @@ const K = (e, t) => {
2622
2622
  width: e,
2623
2623
  height: t,
2624
2624
  children: n
2625
- }) => /* @__PURE__ */ r(V, { pt: et.top, pr: et.right, pb: et.bottom, pl: et.left, sx: {
2625
+ }) => /* @__PURE__ */ r($, { pt: et.top, pr: et.right, pb: et.bottom, pl: et.left, sx: {
2626
2626
  width: e,
2627
2627
  height: t,
2628
2628
  overflow: "hidden",
@@ -2633,7 +2633,7 @@ ee(function({
2633
2633
  onChange: n,
2634
2634
  ...a
2635
2635
  }, i) {
2636
- return /* @__PURE__ */ r($, { ref: i, value: t, onChange: n, ...a });
2636
+ return /* @__PURE__ */ r(V, { ref: i, value: t, onChange: n, ...a });
2637
2637
  });
2638
2638
  class Em {
2639
2639
  constructor({
@@ -2867,7 +2867,7 @@ function ni() {
2867
2867
  throw new Error("Please use PanelContextProvider");
2868
2868
  return e;
2869
2869
  }
2870
- const ot = () => ni(), $e = () => ni();
2870
+ const ot = () => ni(), Ve = () => ni();
2871
2871
  function ks() {
2872
2872
  try {
2873
2873
  return ni(), !0;
@@ -3218,7 +3218,7 @@ function cg(e) {
3218
3218
  hovered: s,
3219
3219
  ref: c
3220
3220
  } = ah();
3221
- return /* @__PURE__ */ r(V, { ref: c, ...a, children: /* @__PURE__ */ u(y, { wrap: "nowrap", justify: "space-between", children: [
3221
+ return /* @__PURE__ */ r($, { ref: c, ...a, children: /* @__PURE__ */ u(y, { wrap: "nowrap", justify: "space-between", children: [
3222
3222
  /* @__PURE__ */ r(k, { size: "sm", sx: {
3223
3223
  flexGrow: 1
3224
3224
  }, children: l }),
@@ -3245,12 +3245,12 @@ const be = (e) => (t, n) => {
3245
3245
  _();
3246
3246
  const {
3247
3247
  panel: p
3248
- } = $e(), g = R.useMemo(() => p.variableOptions(a, s), [a, s]);
3249
- return g.length === 0 ? /* @__PURE__ */ r($, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(F, { ref: t, label: n, description: o, renderOption: cg(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
3248
+ } = Ve(), g = R.useMemo(() => p.variableOptions(a, s), [a, s]);
3249
+ return g.length === 0 ? /* @__PURE__ */ r(V, { ref: t, label: n, placeholder: a, readOnly: !0, disabled: !0 }) : /* @__PURE__ */ r(F, { ref: t, label: n, description: o, renderOption: cg(d), data: g, value: a, required: l, sx: c, maxDropdownHeight: 500, comboboxProps: {
3250
3250
  withinPortal: !0,
3251
3251
  zIndex: h
3252
3252
  }, onChange: be(i) });
3253
- })), $s = {
3253
+ })), Vs = {
3254
3254
  static: {
3255
3255
  type: "static",
3256
3256
  value: 10
@@ -3263,7 +3263,7 @@ const be = (e) => (t, n) => {
3263
3263
  }, dg = ({
3264
3264
  value: e,
3265
3265
  onChange: t
3266
- }) => /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
3266
+ }) => /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
3267
3267
  a && t(a);
3268
3268
  }, theme: "vs-dark", options: {
3269
3269
  minimap: {
@@ -3296,10 +3296,10 @@ const be = (e) => (t, n) => {
3296
3296
  value: g
3297
3297
  }));
3298
3298
  }, p = () => {
3299
- h($s.dynamic.value);
3299
+ h(Vs.dynamic.value);
3300
3300
  };
3301
3301
  return /* @__PURE__ */ u(q, { children: [
3302
- /* @__PURE__ */ r(V, { sx: {
3302
+ /* @__PURE__ */ r($, { sx: {
3303
3303
  width: "50%"
3304
3304
  }, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(en, { size: 16 }), mt: 24, onClick: i, sx: {
3305
3305
  flexGrow: 0
@@ -3342,7 +3342,7 @@ const be = (e) => (t, n) => {
3342
3342
  i18n: o
3343
3343
  } = _(), l = (c) => {
3344
3344
  c !== "static" && c !== "dynamic" || n({
3345
- ...$s[c]
3345
+ ...Vs[c]
3346
3346
  });
3347
3347
  }, s = z(() => [{
3348
3348
  label: i("chart.number_or_dynamic_value.type.static"),
@@ -3383,7 +3383,7 @@ function mo(e, t, n) {
3383
3383
  return console.error(`[getNumberOrDynamicValue] failed parsing custom function, error: ${i.message}`), 10;
3384
3384
  }
3385
3385
  }
3386
- function Vs(e) {
3386
+ function $s(e) {
3387
3387
  return {
3388
3388
  type: "continuous",
3389
3389
  id: "continuous-example",
@@ -3440,7 +3440,7 @@ function mg() {
3440
3440
  };
3441
3441
  }
3442
3442
  function Xt() {
3443
- return Vs();
3443
+ return $s();
3444
3444
  }
3445
3445
  function gg() {
3446
3446
  return {
@@ -3538,7 +3538,7 @@ const fg = gg(), bg = ({
3538
3538
  borderRadius: "0.25rem",
3539
3539
  columnGap: 10
3540
3540
  }, children: [
3541
- /* @__PURE__ */ r(V, { style: {
3541
+ /* @__PURE__ */ r($, { style: {
3542
3542
  height: "20px",
3543
3543
  flexGrow: 1,
3544
3544
  backgroundImage: i,
@@ -3552,7 +3552,7 @@ const fg = gg(), bg = ({
3552
3552
  /* @__PURE__ */ r(W.Divider, {}),
3553
3553
  Object.entries(fg).map(([o, l]) => /* @__PURE__ */ r(re, { label: a("chart.visual_map.use_palette_x", {
3554
3554
  x: o
3555
- }), children: /* @__PURE__ */ r(W.Item, { children: /* @__PURE__ */ r(V, { style: {
3555
+ }), children: /* @__PURE__ */ r(W.Item, { children: /* @__PURE__ */ r($, { style: {
3556
3556
  height: "20px",
3557
3557
  width: "100%",
3558
3558
  backgroundImage: `linear-gradient(to right, ${l.join(", ")})`,
@@ -3671,9 +3671,9 @@ const fg = gg(), bg = ({
3671
3671
  s(e);
3672
3672
  }, [e]);
3673
3673
  const c = ae(() => s(e), [s, e]);
3674
- return /* @__PURE__ */ u(V, { children: [
3674
+ return /* @__PURE__ */ u($, { children: [
3675
3675
  /* @__PURE__ */ r(A, { color: "rgb(206, 212, 218)", variant: "dotted", my: "1rem" }),
3676
- /* @__PURE__ */ u(V, { px: "1rem", children: [
3676
+ /* @__PURE__ */ u($, { px: "1rem", children: [
3677
3677
  /* @__PURE__ */ r(f, { control: o, name: "variable", render: ({
3678
3678
  field: d
3679
3679
  }) => /* @__PURE__ */ r(la, { label: a("rich_text.color_mapping.choose_value_var"), clearable: !1, preview: "aggregated", zIndex: 340, ...d }) }),
@@ -3686,7 +3686,7 @@ const fg = gg(), bg = ({
3686
3686
  }, ...d }) }),
3687
3687
  /* @__PURE__ */ r(f, { name: "min_val", control: o, render: ({
3688
3688
  field: d
3689
- }) => /* @__PURE__ */ r($, { label: a("rich_text.color_mapping.min.val"), ...d, sx: {
3689
+ }) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.min.val"), ...d, sx: {
3690
3690
  maxWidth: "120px",
3691
3691
  flexGrow: 0
3692
3692
  } }) })
@@ -3700,7 +3700,7 @@ const fg = gg(), bg = ({
3700
3700
  }, ...d }) }),
3701
3701
  /* @__PURE__ */ r(f, { name: "max_val", control: o, render: ({
3702
3702
  field: d
3703
- }) => /* @__PURE__ */ r($, { label: a("rich_text.color_mapping.max.val"), ...d, sx: {
3703
+ }) => /* @__PURE__ */ r(V, { label: a("rich_text.color_mapping.max.val"), ...d, sx: {
3704
3704
  maxWidth: "120px",
3705
3705
  flexGrow: 0
3706
3706
  } }) })
@@ -3735,7 +3735,7 @@ const vg = () => /* @__PURE__ */ r("div", { style: {
3735
3735
  background: Rs(90, ...Object.values(Et.graphics.depth))
3736
3736
  } }), wg = ({
3737
3737
  disabled: e
3738
- }) => /* @__PURE__ */ r(V, { sx: {
3738
+ }) => /* @__PURE__ */ r($, { sx: {
3739
3739
  width: "16px",
3740
3740
  height: "10px",
3741
3741
  borderRadius: "2px",
@@ -3980,7 +3980,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
3980
3980
  ] })
3981
3981
  ] }),
3982
3982
  /* @__PURE__ */ r(k, { size: "14px", children: n }),
3983
- /* @__PURE__ */ u(V, { sx: {
3983
+ /* @__PURE__ */ u($, { sx: {
3984
3984
  position: "relative",
3985
3985
  flexGrow: 1
3986
3986
  }, children: [
@@ -4008,14 +4008,14 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4008
4008
  return /* @__PURE__ */ u(q, { children: [
4009
4009
  /* @__PURE__ */ u(we, { opened: g, onClose: x, title: e, withinPortal: !0, zIndex: d, size: "900px", children: [
4010
4010
  i,
4011
- /* @__PURE__ */ r(V, { h: 600, children: /* @__PURE__ */ r(Cn, { value: t, onChange: n, defaultValue: c, label: a, restrictions: h }) })
4011
+ /* @__PURE__ */ r($, { h: 600, children: /* @__PURE__ */ r(Cn, { value: t, onChange: n, defaultValue: c, label: a, restrictions: h }) })
4012
4012
  ] }),
4013
4013
  s == null ? void 0 : s({
4014
4014
  onClick: b
4015
4015
  }),
4016
4016
  !s && /* @__PURE__ */ r(L, { onClick: b, ...l, children: o })
4017
4017
  ] });
4018
- }), $g = ({
4018
+ }), Vg = ({
4019
4019
  onClick: e
4020
4020
  }) => {
4021
4021
  const {
@@ -4028,7 +4028,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4028
4028
  borderColor: "#ced4da !important",
4029
4029
  color: "rgb(190, 75, 219)"
4030
4030
  }, onClick: e, children: /* @__PURE__ */ r(en, { stroke: 2, size: 16 }) }) });
4031
- }, Vg = ({
4031
+ }, $g = ({
4032
4032
  editor: e
4033
4033
  }) => {
4034
4034
  const {
@@ -4037,7 +4037,7 @@ const Xn = "data-value", Mg = Xn, Ns = "dynamicColor", Bs = Jl.create({
4037
4037
  return /* @__PURE__ */ u(q, { children: [
4038
4038
  /* @__PURE__ */ r(li, { 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
- }, defaultValue: kg, renderTriggerButton: $g, restrictions: i, zIndex: 340 }),
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: {
4042
4042
  height: "26px",
4043
4043
  minHeight: "26px",
@@ -4210,7 +4210,7 @@ const sa = ({
4210
4210
  }, n) => /* @__PURE__ */ r(le.Control, { ref: n, onClick: t, children: /* @__PURE__ */ r(br, { color: e, size: 14 }) })), Fg = ({
4211
4211
  editor: e
4212
4212
  }) => {
4213
- const t = $r(), n = e.getAttributes("textStyle").color || t.black, a = z(() => Ws(n), [n]), i = ae((l) => {
4213
+ const t = Vr(), n = e.getAttributes("textStyle").color || t.black, a = z(() => Ws(n), [n]), i = ae((l) => {
4214
4214
  e.chain().setColor(l).run();
4215
4215
  }, [e]), o = ae(() => {
4216
4216
  e.chain().focus().unsetColor().run();
@@ -4325,7 +4325,7 @@ const ln = ee(({
4325
4325
  /* @__PURE__ */ u(le.Toolbar, { sticky: !0, stickyOffset: 0, children: [
4326
4326
  /* @__PURE__ */ r(Fg, { editor: v }),
4327
4327
  c && /* @__PURE__ */ r(Sg, { editor: v }),
4328
- /* @__PURE__ */ r(le.ControlsGroup, { children: /* @__PURE__ */ r(Vg, { editor: v }) }),
4328
+ /* @__PURE__ */ r(le.ControlsGroup, { children: /* @__PURE__ */ r($g, { editor: v }) }),
4329
4329
  /* @__PURE__ */ u(le.ControlsGroup, { children: [
4330
4330
  /* @__PURE__ */ r(le.Bold, {}),
4331
4331
  /* @__PURE__ */ r(le.Italic, {}),
@@ -4401,7 +4401,7 @@ const Us = ({
4401
4401
  const c = s.currentTarget.value;
4402
4402
  o(c), Qg(c) && t(c);
4403
4403
  }, [t]);
4404
- return /* @__PURE__ */ r($, { value: i, onChange: l, leftSection: /* @__PURE__ */ r(Us, { value: i }), size: "xs", placeholder: a("chart.color.not_set"), styles: {
4404
+ return /* @__PURE__ */ r(V, { value: i, onChange: l, leftSection: /* @__PURE__ */ r(Us, { value: i }), size: "xs", placeholder: a("chart.color.not_set"), styles: {
4405
4405
  root: {
4406
4406
  flexGrow: 1
4407
4407
  },
@@ -4435,7 +4435,7 @@ const Us = ({
4435
4435
  }) => {
4436
4436
  const {
4437
4437
  t: i
4438
- } = _(), o = $r(), [l, {
4438
+ } = _(), o = Vr(), [l, {
4439
4439
  set: s,
4440
4440
  setFalse: c,
4441
4441
  toggle: d
@@ -4629,7 +4629,7 @@ class Te extends R.Component {
4629
4629
  error: null
4630
4630
  });
4631
4631
  };
4632
- return /* @__PURE__ */ u(V, { children: [
4632
+ return /* @__PURE__ */ u($, { children: [
4633
4633
  /* @__PURE__ */ r(k, { size: "xs", children: (t = this.state.error) == null ? void 0 : t.message }),
4634
4634
  /* @__PURE__ */ r(L, { variant: "subtle", mx: "auto", size: "compact-xs", sx: {
4635
4635
  display: "block"
@@ -4711,7 +4711,7 @@ function ef(e, t, n) {
4711
4711
  throw console.error(a), a;
4712
4712
  }
4713
4713
  }
4714
- const Vn = {
4714
+ const $n = {
4715
4715
  sqlSnippet: new RegExp("(?<=sql_snippets\\.)([^\\?}.]+)", "gm"),
4716
4716
  context: new RegExp("(?<=context\\.)([^\\?}.]+)", "gm"),
4717
4717
  filter: new RegExp("(?<=filters\\.)([^\\?}.]+)", "gm")
@@ -4872,11 +4872,11 @@ const X = D(ee(({
4872
4872
  }, d) => {
4873
4873
  const {
4874
4874
  panel: h
4875
- } = $e(), p = R.useMemo(() => h.dataFieldOptionGroups(a, l, o), [a, l, o]);
4875
+ } = Ve(), p = R.useMemo(() => h.dataFieldOptionGroups(a, l, o), [a, l, o]);
4876
4876
  if (p.length === 0) {
4877
4877
  const g = h.explainDataKey(a);
4878
4878
  return /* @__PURE__ */ u(ge, { shadow: "md", position: "bottom-start", withinPortal: !0, zIndex: 320, children: [
4879
- /* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r($, { label: e, required: t, defaultValue: g.columnKey, readOnly: !0, disabled: !0 }) }) }),
4879
+ /* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: g.columnKey, readOnly: !0, disabled: !0 }) }) }),
4880
4880
  /* @__PURE__ */ r(ge.Dropdown, { children: /* @__PURE__ */ u(y, { justify: "flex-start", gap: 0, children: [
4881
4881
  /* @__PURE__ */ r(k, { size: "xs", c: g.queryName ? "black" : "red", ff: "monospace", children: g.queryName ?? g.queryID }),
4882
4882
  /* @__PURE__ */ r(k, { size: "xs", c: "black", ff: "monospace", children: "." }),
@@ -4912,7 +4912,7 @@ function of({
4912
4912
  }) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
4913
4913
  /* @__PURE__ */ r(f, { name: "xAxis3D.name", control: i, render: ({
4914
4914
  field: s
4915
- }) => /* @__PURE__ */ r($, { sx: {
4915
+ }) => /* @__PURE__ */ r(V, { sx: {
4916
4916
  flexGrow: 1
4917
4917
  }, size: "md", label: "Name", ...s }) })
4918
4918
  ] }),
@@ -4926,7 +4926,7 @@ function of({
4926
4926
  }) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
4927
4927
  /* @__PURE__ */ r(f, { name: "yAxis3D.name", control: i, render: ({
4928
4928
  field: s
4929
- }) => /* @__PURE__ */ r($, { sx: {
4929
+ }) => /* @__PURE__ */ r(V, { sx: {
4930
4930
  flexGrow: 1
4931
4931
  }, size: "md", label: "Name", ...s }) })
4932
4932
  ] }),
@@ -4940,7 +4940,7 @@ function of({
4940
4940
  }) => /* @__PURE__ */ r(X, { label: "Data Field", required: !0, ...s }) }),
4941
4941
  /* @__PURE__ */ r(f, { name: "zAxis3D.name", control: i, render: ({
4942
4942
  field: s
4943
- }) => /* @__PURE__ */ r($, { sx: {
4943
+ }) => /* @__PURE__ */ r(V, { sx: {
4944
4944
  flexGrow: 1
4945
4945
  }, size: "md", label: "Name", ...s }) })
4946
4946
  ] }),
@@ -5029,7 +5029,7 @@ const hf = {
5029
5029
  disabled: e,
5030
5030
  value: t,
5031
5031
  onChange: n
5032
- }) => /* @__PURE__ */ u(V, { sx: {
5032
+ }) => /* @__PURE__ */ u($, { sx: {
5033
5033
  position: "relative"
5034
5034
  }, children: [
5035
5035
  e && /* @__PURE__ */ r(dn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -5225,7 +5225,7 @@ const wr = ee(({
5225
5225
  /* @__PURE__ */ r(ne, { label: i("chart.axis.overflow.max_width"), hideControls: !0, value: t.width, onChange: l("width") }),
5226
5226
  /* @__PURE__ */ r(F, { label: i("chart.axis.overflow.label"), data: s, value: t.overflow, onChange: l("overflow") }),
5227
5227
  /* @__PURE__ */ r(
5228
- $,
5228
+ V,
5229
5229
  {
5230
5230
  label: i("chart.axis.overflow.ellipsis"),
5231
5231
  value: t.ellipsis,
@@ -5313,7 +5313,7 @@ const Be = ee(({
5313
5313
  };
5314
5314
  return /* @__PURE__ */ u(T, { ref: a, gap: "sm", children: [
5315
5315
  /* @__PURE__ */ r(A, { mb: -10, label: i("chart.unit.title"), labelPosition: "center", variant: "dashed" }),
5316
- !o.has("text") && /* @__PURE__ */ r($, { size: "xs", placeholder: i("chart.unit.text.placeholder"), value: e.text, onChange: (s) => l("text")(s.currentTarget.value) }),
5316
+ !o.has("text") && /* @__PURE__ */ r(V, { size: "xs", placeholder: i("chart.unit.text.placeholder"), value: e.text, onChange: (s) => l("text")(s.currentTarget.value) }),
5317
5317
  /* @__PURE__ */ u(y, { grow: !0, children: [
5318
5318
  !o.has("show_in_tooltip") && /* @__PURE__ */ r(Z, { size: "xs", label: i("chart.unit.show_in_tooltip"), checked: e.show_in_tooltip, onChange: (s) => l("show_in_tooltip")(s.currentTarget.checked) }),
5319
5319
  !o.has("show_in_legend") && /* @__PURE__ */ r(Z, { size: "xs", label: i("chart.unit.show_in_legend"), checked: e.show_in_legend, onChange: (s) => l("show_in_legend")(s.currentTarget.checked) })
@@ -5635,11 +5635,11 @@ 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(Va(t), (a) => Lf[a.schemaRef] ?? 10);
5638
+ const t = await this.attachmentStorage.getItem(null), n = C.orderBy($a(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
  }
5642
- function $f(e, t) {
5642
+ function Vf(e, t) {
5643
5643
  const {
5644
5644
  value: n,
5645
5645
  set: a
@@ -5654,14 +5654,14 @@ function $f(e, t) {
5654
5654
  commit: l
5655
5655
  };
5656
5656
  }
5657
- function Vf(e) {
5657
+ function $f(e) {
5658
5658
  const {
5659
5659
  t
5660
5660
  } = _(), {
5661
5661
  config: n,
5662
5662
  setConfig: a,
5663
5663
  commit: i
5664
- } = $f(e, {
5664
+ } = Vf(e, {
5665
5665
  urlTemplate: "",
5666
5666
  openInNewTab: !0
5667
5667
  });
@@ -5679,8 +5679,8 @@ function Vf(e) {
5679
5679
  urlTemplate: c.currentTarget.value
5680
5680
  });
5681
5681
  return /* @__PURE__ */ u(T, { children: [
5682
- /* @__PURE__ */ r($, { label: t("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: s, onBlur: o }),
5683
- /* @__PURE__ */ r(ke, { label: t("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => l(c.currentTarget.checked) })
5682
+ /* @__PURE__ */ r(V, { label: t("interactions.operation.open_link.url"), value: n.urlTemplate, onChange: s, onBlur: o }),
5683
+ /* @__PURE__ */ r(Ce, { label: t("interactions.operation.open_link.open_in_new_tab"), checked: n.openInNewTab, onChange: (c) => l(c.currentTarget.checked) })
5684
5684
  ] });
5685
5685
  }
5686
5686
  async function Pf(e, t) {
@@ -5708,7 +5708,7 @@ class Af extends Se {
5708
5708
  const Rf = {
5709
5709
  displayName: "interactions.operation.open_link.label",
5710
5710
  id: "builtin:op:open-link",
5711
- configRender: Vf,
5711
+ configRender: $f,
5712
5712
  run: Pf,
5713
5713
  migrator: new Af(),
5714
5714
  createDefaultConfig: () => ({
@@ -5732,7 +5732,7 @@ function Of(e) {
5732
5732
  const {
5733
5733
  t
5734
5734
  } = _(), [n, a] = Ef(e.operation);
5735
- return /* @__PURE__ */ r($, { defaultValue: n, onBlur: (i) => a(i.currentTarget.value), label: t("interactions.operation.console_log.log_content") });
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
5738
  const n = await t.operationData.getItem("config"), a = Pa(n.template || "");
@@ -5785,7 +5785,7 @@ const jf = {
5785
5785
  const [n, a] = Q(e);
5786
5786
  return N(() => {
5787
5787
  a(e);
5788
- }, [e]), /* @__PURE__ */ r($, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
5788
+ }, [e]), /* @__PURE__ */ r(V, { size: "xs", label: "", value: n, onChange: (o) => a(o.currentTarget.value), sx: {
5789
5789
  flexGrow: 1
5790
5790
  }, rightSection: /* @__PURE__ */ r(te, { color: "green", size: "xs", onClick: () => {
5791
5791
  t(n);
@@ -6068,7 +6068,7 @@ class sb {
6068
6068
  }
6069
6069
  watchTriggerSnapshotList(t) {
6070
6070
  return this.instance.instanceData.watchItem(bo, (n) => {
6071
- const a = Va(n).map((i) => ({
6071
+ const a = $a(n).map((i) => ({
6072
6072
  id: se(i, "id"),
6073
6073
  schemaRef: se(i, "schemaRef"),
6074
6074
  config: Bt(se(i, "data.config"))
@@ -6658,7 +6658,7 @@ function Lb(e, t) {
6658
6658
  datasetIndex: 1
6659
6659
  }, a, i, o];
6660
6660
  }
6661
- const $b = (e, t) => {
6661
+ const Vb = (e, t) => {
6662
6662
  const n = va.map((o) => `
6663
6663
  <tr>
6664
6664
  <th style="text-align: right; padding: 0 1em;">${C.capitalize(o)}</th>
@@ -6676,7 +6676,7 @@ const $b = (e, t) => {
6676
6676
  </tbody>
6677
6677
  </table>
6678
6678
  `;
6679
- }, Vb = (e) => ue(e, {
6679
+ }, $b = (e) => ue(e, {
6680
6680
  output: "number",
6681
6681
  trimMantissa: !0,
6682
6682
  mantissa: 2,
@@ -6692,7 +6692,7 @@ function oc(e, t) {
6692
6692
  return `
6693
6693
  <tr>
6694
6694
  <th style="text-align: right; padding: 0 1em;">${a.name}</th>
6695
- <td style="text-align: left; padding: 0 2px 0 1em;">${Vb(t[i.columnKey])}</td>
6695
+ <td style="text-align: left; padding: 0 2px 0 1em;">${$b(t[i.columnKey])}</td>
6696
6696
  <th style="text-align: left; padding: 0;">
6697
6697
  ${o ?? ""}
6698
6698
  </th>
@@ -6742,7 +6742,7 @@ const Rb = (e, t) => (n) => {
6742
6742
  } = n;
6743
6743
  switch (a) {
6744
6744
  case t.Box:
6745
- return $b(e, i);
6745
+ return Vb(e, i);
6746
6746
  case t.Outlier:
6747
6747
  return Pb(e, i);
6748
6748
  case t.Scatter:
@@ -7063,7 +7063,7 @@ function Qb(e) {
7063
7063
  right: "0.8em"
7064
7064
  } }) }),
7065
7065
  /* @__PURE__ */ u(T, { children: [
7066
- /* @__PURE__ */ r($, { size: "xs", label: t("style.color.interpolation.palette.mapping.value_input_label"), value: s, onChange: (U) => {
7066
+ /* @__PURE__ */ r(V, { size: "xs", label: t("style.color.interpolation.palette.mapping.value_input_label"), value: s, onChange: (U) => {
7067
7067
  const de = U.currentTarget.value;
7068
7068
  c(de);
7069
7069
  }, error: s && Y }),
@@ -7321,21 +7321,21 @@ const Hb = D(({
7321
7321
  return /* @__PURE__ */ u(T, { children: [
7322
7322
  /* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.scroll.label"), labelPosition: "center" }),
7323
7323
  /* @__PURE__ */ u(y, { children: [
7324
- /* @__PURE__ */ r(V, { sx: {
7324
+ /* @__PURE__ */ r($, { sx: {
7325
7325
  flexGrow: 1
7326
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.scroll.x_axis"), checked: e.x_axis_scroll, onChange: (o) => i("x_axis_scroll")(o.currentTarget.checked) }) }),
7327
- /* @__PURE__ */ r(V, { sx: {
7326
+ }, children: /* @__PURE__ */ r(Ce, { label: a("chart.zooming.scroll.x_axis"), checked: e.x_axis_scroll, onChange: (o) => i("x_axis_scroll")(o.currentTarget.checked) }) }),
7327
+ /* @__PURE__ */ r($, { sx: {
7328
7328
  flexGrow: 1
7329
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.scroll.y_axis"), checked: e.y_axis_scroll, onChange: (o) => i("y_axis_scroll")(o.currentTarget.checked) }) })
7329
+ }, children: /* @__PURE__ */ r(Ce, { label: a("chart.zooming.scroll.y_axis"), checked: e.y_axis_scroll, onChange: (o) => i("y_axis_scroll")(o.currentTarget.checked) }) })
7330
7330
  ] }),
7331
7331
  /* @__PURE__ */ r(A, { variant: "dashed", label: a("chart.zooming.slider.label"), labelPosition: "center" }),
7332
7332
  /* @__PURE__ */ u(y, { children: [
7333
- /* @__PURE__ */ r(V, { sx: {
7333
+ /* @__PURE__ */ r($, { sx: {
7334
7334
  flexGrow: 1
7335
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.slider.x_axis"), checked: e.x_axis_slider, onChange: (o) => i("x_axis_slider")(o.currentTarget.checked) }) }),
7336
- /* @__PURE__ */ r(re, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r(V, { sx: {
7335
+ }, children: /* @__PURE__ */ r(Ce, { label: a("chart.zooming.slider.x_axis"), checked: e.x_axis_slider, onChange: (o) => i("x_axis_slider")(o.currentTarget.checked) }) }),
7336
+ /* @__PURE__ */ r(re, { label: a("chart.zooming.slider.y_axis_disabled"), children: /* @__PURE__ */ r($, { sx: {
7337
7337
  flexGrow: 1
7338
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.zooming.slider.y_axis"), disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (o) => i("y_axis_slider")(o.currentTarget.checked) }) }) })
7338
+ }, children: /* @__PURE__ */ r(Ce, { label: a("chart.zooming.slider.y_axis"), disabled: !e.y_axis_slider, checked: e.y_axis_slider, onChange: (o) => i("y_axis_slider")(o.currentTarget.checked) }) }) })
7339
7339
  ] })
7340
7340
  ] });
7341
7341
  }), pn = ee(({
@@ -7372,7 +7372,7 @@ const Hb = D(({
7372
7372
  return /* @__PURE__ */ u(T, { children: [
7373
7373
  /* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", mt: 20, children: /* @__PURE__ */ r(f, { name: "legend.show", control: e, render: ({
7374
7374
  field: o
7375
- }) => /* @__PURE__ */ r(ke, { label: n("chart.legend.show_legend"), sx: {
7375
+ }) => /* @__PURE__ */ r(Ce, { label: n("chart.legend.show_legend"), sx: {
7376
7376
  flex: 1
7377
7377
  }, checked: o.value, onChange: (l) => o.onChange(l.currentTarget.checked) }) }) }),
7378
7378
  /* @__PURE__ */ r(y, { children: /* @__PURE__ */ r(f, { name: "legend", control: e, render: ({
@@ -7399,7 +7399,7 @@ function ty({
7399
7399
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
7400
7400
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
7401
7401
  field: i
7402
- }) => /* @__PURE__ */ r($, { label: a("common.name"), placeholder: a("chart.reference_line.name_placeholder"), required: !0, sx: {
7402
+ }) => /* @__PURE__ */ r(V, { label: a("common.name"), placeholder: a("chart.reference_line.name_placeholder"), required: !0, sx: {
7403
7403
  flex: 1
7404
7404
  }, ...i }) }),
7405
7405
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
@@ -7410,7 +7410,7 @@ function ty({
7410
7410
  ] }),
7411
7411
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
7412
7412
  field: i
7413
- }) => /* @__PURE__ */ r($, { label: a("chart.content_template.label"), placeholder: a("chart.content_template.placeholder"), required: !0, sx: {
7413
+ }) => /* @__PURE__ */ r(V, { label: a("chart.content_template.label"), placeholder: a("chart.content_template.placeholder"), required: !0, sx: {
7414
7414
  flex: 1
7415
7415
  }, ...i }) })
7416
7416
  ] });
@@ -7449,7 +7449,7 @@ const ry = ({
7449
7449
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
7450
7450
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
7451
7451
  field: a
7452
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
7452
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
7453
7453
  flex: 1
7454
7454
  }, ...a }) }),
7455
7455
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -7526,7 +7526,7 @@ const tn = ee(({
7526
7526
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
7527
7527
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
7528
7528
  field: a
7529
- }) => /* @__PURE__ */ r($, { label: n("chart.x_axis.x_axis_name"), sx: {
7529
+ }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
7530
7530
  flex: 1
7531
7531
  }, ...a }) }),
7532
7532
  /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
@@ -7569,7 +7569,7 @@ function sy({
7569
7569
  } = _(), [n, {
7570
7570
  toggle: a
7571
7571
  }] = hn(!1);
7572
- return /* @__PURE__ */ u(V, { children: [
7572
+ return /* @__PURE__ */ u($, { children: [
7573
7573
  /* @__PURE__ */ r(L, { variant: "subtle", w: "100%", size: "compact-sm", onClick: a, leftSection: n ? /* @__PURE__ */ r(fh, { size: 14 }) : /* @__PURE__ */ r(Ml, { size: 14 }), children: t(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
7574
7574
  /* @__PURE__ */ r(ir, { in: n, children: n && /* @__PURE__ */ u(w, { highlightOnHover: !0, sx: {
7575
7575
  tableLayout: "fixed"
@@ -7633,13 +7633,13 @@ function cy({
7633
7633
  }], value: e.output, onChange: be(i), sx: {
7634
7634
  flexGrow: 1
7635
7635
  } }),
7636
- /* @__PURE__ */ r(ke, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
7636
+ /* @__PURE__ */ r(Ce, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
7637
7637
  /* @__PURE__ */ r(k, { size: "sm", children: a("numbro.format.absolute") }),
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
7641
  }, styles: ca }),
7642
- /* @__PURE__ */ r(ke, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
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: {
@@ -7648,11 +7648,11 @@ function cy({
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
- /* @__PURE__ */ r(ke, { label: /* @__PURE__ */ u(T, { gap: 0, children: [
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
7654
  ] }), checked: e.trimMantissa, onChange: l, disabled: e.mantissa === 0, styles: ca }),
7655
- /* @__PURE__ */ r(V, {})
7655
+ /* @__PURE__ */ r($, {})
7656
7656
  ] }),
7657
7657
  /* @__PURE__ */ r(sy, { format: e })
7658
7658
  ] });
@@ -7668,7 +7668,7 @@ const xt = R.forwardRef(cy), dy = ({
7668
7668
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
7669
7669
  /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
7670
7670
  field: a
7671
- }) => /* @__PURE__ */ r($, { label: n("chart.y_axis.y_axis_name"), sx: {
7671
+ }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), sx: {
7672
7672
  flex: 1
7673
7673
  }, ...a }) }),
7674
7674
  /* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
@@ -8103,7 +8103,7 @@ const yi = {
8103
8103
  onChange: t,
8104
8104
  label: n
8105
8105
  }) => {
8106
- const a = $r(), i = ae((l) => () => t(l), [t]), o = (l) => e === l;
8106
+ const a = Vr(), i = ae((l) => () => t(l), [t]), o = (l) => e === l;
8107
8107
  return /* @__PURE__ */ u(T, { gap: 2, children: [
8108
8108
  /* @__PURE__ */ r(k, { size: "14px", fw: 500, children: n }),
8109
8109
  /* @__PURE__ */ r(y, { justify: "flex-start", gap: "xs", children: Object.keys(a.colors).map((l) => {
@@ -8128,7 +8128,7 @@ const yi = {
8128
8128
  value: d
8129
8129
  })), [s.language]);
8130
8130
  return /* @__PURE__ */ r(F, { ref: o, data: c, label: e, value: t, onChange: be(n), sx: a, disabled: !0 });
8131
- }), $y = [{
8131
+ }), Vy = [{
8132
8132
  label: "Filled",
8133
8133
  value: "filled"
8134
8134
  }, {
@@ -8151,7 +8151,7 @@ const yi = {
8151
8151
  value: "gradient",
8152
8152
  disabled: !0
8153
8153
  }];
8154
- function Vy({
8154
+ function $y({
8155
8155
  context: e
8156
8156
  }) {
8157
8157
  const {
@@ -8177,12 +8177,12 @@ function Vy({
8177
8177
  /* @__PURE__ */ u(T, { children: [
8178
8178
  /* @__PURE__ */ r(f, { control: o, name: "content", render: ({
8179
8179
  field: h
8180
- }) => /* @__PURE__ */ r($, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
8180
+ }) => /* @__PURE__ */ r(V, { label: "Content Template", description: "Filter values & context entries are supported", ...h, required: !0 }) }),
8181
8181
  /* @__PURE__ */ r(A, { mt: "xs", mb: 0, label: "Styles", labelPosition: "center", variant: "dashed" }),
8182
8182
  /* @__PURE__ */ u(ze, { cols: 2, children: [
8183
8183
  /* @__PURE__ */ r(f, { control: o, name: "variant", render: ({
8184
8184
  field: h
8185
- }) => /* @__PURE__ */ r(F, { label: "Variant", data: $y, ...h }) }),
8185
+ }) => /* @__PURE__ */ r(F, { label: "Variant", data: Vy, ...h }) }),
8186
8186
  /* @__PURE__ */ r(f, { control: o, name: "color", render: ({
8187
8187
  field: h
8188
8188
  }) => /* @__PURE__ */ r(My, { label: "Theme", ...h }) })
@@ -8260,7 +8260,7 @@ const Oy = {
8260
8260
  migrator: new Ey(),
8261
8261
  name: "button",
8262
8262
  viewRender: Iy,
8263
- configRender: Vy,
8263
+ configRender: $y,
8264
8264
  createConfig() {
8265
8265
  return {
8266
8266
  version: 2,
@@ -8277,7 +8277,7 @@ const Oy = {
8277
8277
  label: n,
8278
8278
  description: a
8279
8279
  } = e;
8280
- return /* @__PURE__ */ r(V, { ...t, children: /* @__PURE__ */ u(T, { gap: "0", children: [
8280
+ return /* @__PURE__ */ r($, { ...t, children: /* @__PURE__ */ u(T, { gap: "0", children: [
8281
8281
  /* @__PURE__ */ r(k, { size: "sm", children: n }),
8282
8282
  /* @__PURE__ */ r(k, { size: "xs", opacity: 0.65, children: a })
8283
8283
  ] }) });
@@ -8329,7 +8329,7 @@ const Oy = {
8329
8329
  } }),
8330
8330
  a("chart.series.line.area_style.label")
8331
8331
  ] }), labelPosition: "center" }),
8332
- /* @__PURE__ */ r(ke, { label: a("chart.series.line.area_style.enabled"), checked: e.enabled, onChange: (o) => i("enabled")(o.currentTarget.checked) }),
8332
+ /* @__PURE__ */ r(Ce, { label: a("chart.series.line.area_style.enabled"), checked: e.enabled, onChange: (o) => i("enabled")(o.currentTarget.checked) }),
8333
8333
  /* @__PURE__ */ u(y, { grow: !0, children: [
8334
8334
  /* @__PURE__ */ r(_o, { label: a("chart.series.line.area_style.color"), placeholder: a("chart.series.line.area_style.use_series_color"), value: e.color, onChange: i("color") }),
8335
8335
  /* @__PURE__ */ r(ne, { size: "xs", label: a("chart.series.line.area_style.opacity"), value: e.opacity, onChange: i("opacity"), step: 0.1, decimalScale: 1, min: 0, max: 1 })
@@ -9074,7 +9074,7 @@ const hc = {
9074
9074
  n(g);
9075
9075
  }, [d, a.current]);
9076
9076
  const h = z(() => d ? "none" : "block", [d]);
9077
- return /* @__PURE__ */ r(V, { sx: {
9077
+ return /* @__PURE__ */ r($, { sx: {
9078
9078
  display: h
9079
9079
  }, children: /* @__PURE__ */ r(Gn, { ref: a, value: c, styles: {
9080
9080
  root: {
@@ -9434,17 +9434,17 @@ function L_({
9434
9434
  x_axis_data_key: e,
9435
9435
  y_axis_data_key: n
9436
9436
  });
9437
- let Ve = Object.entries(J);
9438
- return c.key === "name" && (Ve = C.orderBy(Object.entries(J), 0, [c.order])), Ve.map(([Xe, Gt]) => {
9437
+ let $e = Object.entries(J);
9438
+ return c.key === "name" && ($e = C.orderBy(Object.entries(J), 0, [c.order])), $e.map(([Xe, Gt]) => {
9439
9439
  const rn = Ae(de);
9440
9440
  return rn.name = Xe, rn.color = void 0, "areaStyle" in rn && (rn.areaStyle.color = void 0), rn.data = Gt, rn;
9441
9441
  });
9442
9442
  }
9443
- function $_(e, t, n, a, i, o) {
9443
+ function V_(e, t, n, a, i, o) {
9444
9444
  const l = t.map((c) => [c, 0]);
9445
9445
  return e.series.map((c) => L_(e, c, l, n, o, a)).flat().concat(k_(e.reference_lines, i, o, n, t, e.x_axis.type)).concat(S_(e.reference_areas, o));
9446
9446
  }
9447
- function V_(e, t) {
9447
+ function $_(e, t) {
9448
9448
  const n = e.find((o) => o.axisDim === "x" && o.axisId === "main-x-axis");
9449
9449
  if (!n)
9450
9450
  return "";
@@ -9514,7 +9514,7 @@ function A_(e, t, n, a) {
9514
9514
  </tr>`;
9515
9515
  });
9516
9516
  d.push(...h);
9517
- const p = ft(e.x_axis.axisLabel.overflow.in_tooltip), g = V_(c, e);
9517
+ const p = ft(e.x_axis.axisLabel.overflow.in_tooltip), g = $_(c, e);
9518
9518
  return `
9519
9519
  <div style="text-align: left; margin-bottom: .5em; padding: 0 1em .5em; font-weight: bold; border-bottom: 1px dashed #ddd;">
9520
9520
  <div style="${p}">${g}</div>
@@ -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 = $_(e, o, t, i, n, a), s = w_(e, t), c = {
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 = {
9659
9659
  xAxis: E_(e, o),
9660
9660
  yAxis: q_(e, i, l),
9661
9661
  series: [...l, ...s],
@@ -9763,12 +9763,12 @@ function H_({
9763
9763
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
9764
9764
  /* @__PURE__ */ r(f, { name: `reference_areas.${t}.name`, control: e, render: ({
9765
9765
  field: s
9766
- }) => /* @__PURE__ */ r($, { label: a("chart.reference_area.label"), required: !0, sx: {
9766
+ }) => /* @__PURE__ */ r(V, { label: a("chart.reference_area.label"), required: !0, sx: {
9767
9767
  flex: 1
9768
9768
  }, ...s }) }),
9769
9769
  /* @__PURE__ */ r(f, { name: `reference_areas.${t}.color`, control: e, render: ({
9770
9770
  field: s
9771
- }) => /* @__PURE__ */ r($, { label: a("chart.color.label"), required: !0, sx: {
9771
+ }) => /* @__PURE__ */ r(V, { label: a("chart.color.label"), required: !0, sx: {
9772
9772
  flex: 1
9773
9773
  }, ...s }) })
9774
9774
  ] }),
@@ -9864,7 +9864,7 @@ function W_({
9864
9864
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
9865
9865
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
9866
9866
  field: s
9867
- }) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
9867
+ }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
9868
9868
  flex: 1
9869
9869
  }, ...s }) }),
9870
9870
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
@@ -9875,7 +9875,7 @@ function W_({
9875
9875
  ] }),
9876
9876
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
9877
9877
  field: s
9878
- }) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
9878
+ }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
9879
9879
  flex: 1
9880
9880
  }, ...s }) }),
9881
9881
  /* @__PURE__ */ u(y, { grow: !0, children: [
@@ -9989,7 +9989,7 @@ function K_({
9989
9989
  /* @__PURE__ */ u(y, { grow: !0, children: [
9990
9990
  /* @__PURE__ */ r(f, { name: `regressions.${n}.name`, control: e, render: ({
9991
9991
  field: c
9992
- }) => /* @__PURE__ */ r($, { label: i("common.name"), required: !0, sx: {
9992
+ }) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
9993
9993
  flex: 1
9994
9994
  }, ...c }) }),
9995
9995
  /* @__PURE__ */ r(f, { name: `regressions.${n}.group_by_key`, control: e, render: ({
@@ -10094,7 +10094,7 @@ function Y_({
10094
10094
  const X_ = ({
10095
10095
  value: e,
10096
10096
  onChange: t
10097
- }) => /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
10097
+ }) => /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
10098
10098
  a && t(a);
10099
10099
  }, theme: "vs-dark", options: {
10100
10100
  minimap: {
@@ -10140,7 +10140,7 @@ const X_ = ({
10140
10140
  h(wi.dynamic.func_content);
10141
10141
  };
10142
10142
  return /* @__PURE__ */ u(q, { children: [
10143
- /* @__PURE__ */ r(V, { sx: {
10143
+ /* @__PURE__ */ r($, { sx: {
10144
10144
  width: "50%"
10145
10145
  }, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
10146
10146
  flexGrow: 0
@@ -10340,7 +10340,7 @@ function tx({
10340
10340
  color: "grape"
10341
10341
  } })
10342
10342
  ] }),
10343
- i && /* @__PURE__ */ r($, { label: l("panel.variable.aggregation.fallback_value"), description: l("panel.variable.aggregation.fallback_value_description"), value: t.fallback, onChange: g })
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
10346
  const Ci = R.forwardRef(tx), Un = ee(({
@@ -10425,7 +10425,7 @@ function nx({
10425
10425
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
10426
10426
  /* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
10427
10427
  field: s
10428
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
10428
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
10429
10429
  flexGrow: 1
10430
10430
  }, ...s }) }),
10431
10431
  /* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
@@ -10437,17 +10437,17 @@ function nx({
10437
10437
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
10438
10438
  /* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
10439
10439
  field: s
10440
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
10440
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
10441
10441
  flexGrow: 1
10442
10442
  }, ...s }) }),
10443
10443
  /* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
10444
10444
  field: s
10445
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.exact"), sx: {
10445
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
10446
10446
  flexGrow: 1
10447
10447
  }, ...s }) }),
10448
10448
  /* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
10449
10449
  field: s
10450
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
10450
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
10451
10451
  flexGrow: 1
10452
10452
  }, ...s }) })
10453
10453
  ] })
@@ -10477,7 +10477,7 @@ function rx({
10477
10477
  return /* @__PURE__ */ u(q, { children: [
10478
10478
  /* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
10479
10479
  field: s
10480
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
10480
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
10481
10481
  flexGrow: 1
10482
10482
  }, ...s }) }),
10483
10483
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: a("chart.series.line.line_settings"), labelPosition: "center" }),
@@ -10506,22 +10506,22 @@ function rx({
10506
10506
  /* @__PURE__ */ u(T, { children: [
10507
10507
  /* @__PURE__ */ r(f, { name: `series.${t}.smooth`, control: e, render: ({
10508
10508
  field: s
10509
- }) => /* @__PURE__ */ r(V, { sx: {
10509
+ }) => /* @__PURE__ */ r($, { sx: {
10510
10510
  flexGrow: 1
10511
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
10511
+ }, children: /* @__PURE__ */ r(Ce, { label: a("chart.series.line.smooth_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
10512
10512
  /* @__PURE__ */ r(f, { name: `series.${t}.display_name_on_line`, control: e, render: ({
10513
10513
  field: s
10514
- }) => /* @__PURE__ */ r(V, { sx: {
10514
+ }) => /* @__PURE__ */ r($, { sx: {
10515
10515
  flexGrow: 1
10516
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.show_name_on_line"), checked: s.value ?? !1, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) })
10516
+ }, children: /* @__PURE__ */ r(Ce, { label: a("chart.series.line.show_name_on_line"), checked: s.value ?? !1, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) })
10517
10517
  ] })
10518
10518
  ] }),
10519
10519
  /* @__PURE__ */ u(T, { children: [
10520
10520
  /* @__PURE__ */ r(f, { name: `series.${t}.showSymbol`, control: e, render: ({
10521
10521
  field: s
10522
- }) => /* @__PURE__ */ r(V, { mt: 10, mb: -10, sx: {
10522
+ }) => /* @__PURE__ */ r($, { mt: 10, mb: -10, sx: {
10523
10523
  flexGrow: 1
10524
- }, children: /* @__PURE__ */ r(ke, { label: a("chart.series.line.show_symbol_on_line"), checked: s.value, onChange: (c) => s.onChange(c.currentTarget.checked) }) }) }),
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
10527
  }) => /* @__PURE__ */ r(Si, { ...s }) })
@@ -10566,7 +10566,7 @@ function ix({
10566
10566
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
10567
10567
  /* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
10568
10568
  field: s
10569
- }) => /* @__PURE__ */ r($, { label: i("chart.series.name"), required: !0, sx: {
10569
+ }) => /* @__PURE__ */ r(V, { label: i("chart.series.name"), required: !0, sx: {
10570
10570
  flex: 1
10571
10571
  }, ...s }) }),
10572
10572
  /* @__PURE__ */ r(f, { name: `series.${t}.yAxisIndex`, control: e, render: ({
@@ -10674,7 +10674,7 @@ const lx = D(({
10674
10674
  }) => {
10675
10675
  const {
10676
10676
  panel: n
10677
- } = $e(), {
10677
+ } = Ve(), {
10678
10678
  t: a
10679
10679
  } = _();
10680
10680
  return /* @__PURE__ */ u(T, { children: [
@@ -10706,7 +10706,7 @@ const lx = D(({
10706
10706
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
10707
10707
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
10708
10708
  field: a
10709
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
10709
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
10710
10710
  flex: 1
10711
10711
  }, ...a }) }),
10712
10712
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -10799,7 +10799,7 @@ function hx({
10799
10799
  return /* @__PURE__ */ u(T, { children: [
10800
10800
  /* @__PURE__ */ r(f, { name: "x_axis_name", control: e, render: ({
10801
10801
  field: o
10802
- }) => /* @__PURE__ */ r($, { label: n("chart.x_axis.x_axis_name"), sx: {
10802
+ }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.x_axis_name"), sx: {
10803
10803
  flex: 1
10804
10804
  }, ...o }) }),
10805
10805
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
@@ -10883,7 +10883,7 @@ function px({
10883
10883
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
10884
10884
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
10885
10885
  field: a
10886
- }) => /* @__PURE__ */ r($, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
10886
+ }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.y_axis_name"), required: !0, sx: {
10887
10887
  flex: 1
10888
10888
  }, ...a }) }),
10889
10889
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
@@ -10914,10 +10914,10 @@ function px({
10914
10914
  /* @__PURE__ */ u(y, { grow: !0, children: [
10915
10915
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
10916
10916
  field: a
10917
- }) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_min"), ...a }) }),
10917
+ }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
10918
10918
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
10919
10919
  field: a
10920
- }) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_max"), ...a }) })
10920
+ }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
10921
10921
  ] })
10922
10922
  ] }),
10923
10923
  /* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.y_axis.behavior"), labelPosition: "center" }),
@@ -11269,7 +11269,7 @@ const Ix = ({
11269
11269
  return /* @__PURE__ */ u(T, { children: [
11270
11270
  /* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.name`, control: t, render: ({
11271
11271
  field: p
11272
- }) => /* @__PURE__ */ r($, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
11272
+ }) => /* @__PURE__ */ r(V, { label: i("viz.funnel_chart.series_name"), ...p }) }) }),
11273
11273
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
11274
11274
  /* @__PURE__ */ r(f, { name: `series.${n}.level_name_data_key`, control: t, render: ({
11275
11275
  field: p
@@ -11288,13 +11288,13 @@ const Ix = ({
11288
11288
  width: "100%"
11289
11289
  }, children: [
11290
11290
  /* @__PURE__ */ r(k, { size: "sm", children: i("viz.funnel_chart.min_value") }),
11291
- /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(f, { name: `series.${n}.min.enable_value`, control: t, render: ({
11291
+ /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.min_value_checkbox_tip"), children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(f, { name: `series.${n}.min.enable_value`, control: t, render: ({
11292
11292
  field: g
11293
11293
  }) => /* @__PURE__ */ r(Z, { size: "xs", checked: g.value, onChange: (b) => g.onChange(b.currentTarget.checked) }) }) }) })
11294
11294
  ] }), ...p }) }),
11295
11295
  /* @__PURE__ */ r(f, { name: `series.${n}.min.size`, control: t, render: ({
11296
11296
  field: p
11297
- }) => /* @__PURE__ */ r($, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
11297
+ }) => /* @__PURE__ */ r(V, { placeholder: "0%", label: i("viz.funnel_chart.min_size"), ...p }) })
11298
11298
  ] }),
11299
11299
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
11300
11300
  /* @__PURE__ */ r(f, { name: `series.${n}.max.value`, control: t, render: ({
@@ -11305,13 +11305,13 @@ const Ix = ({
11305
11305
  width: "100%"
11306
11306
  }, children: [
11307
11307
  /* @__PURE__ */ r(k, { size: "sm", children: i("viz.funnel_chart.max_value") }),
11308
- /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(f, { name: `series.${n}.max.enable_value`, control: t, render: ({
11308
+ /* @__PURE__ */ r(re, { label: i("viz.funnel_chart.max_value_checkbox_tip"), children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(f, { name: `series.${n}.max.enable_value`, control: t, render: ({
11309
11309
  field: g
11310
11310
  }) => /* @__PURE__ */ r(Z, { size: "xs", checked: g.value, onChange: (b) => g.onChange(b.currentTarget.checked) }) }) }) })
11311
11311
  ] }), ...p }) }),
11312
11312
  /* @__PURE__ */ r(f, { name: `series.${n}.max.size`, control: t, render: ({
11313
11313
  field: p
11314
- }) => /* @__PURE__ */ r($, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
11314
+ }) => /* @__PURE__ */ r(V, { placeholder: "100%", label: i("viz.funnel_chart.max_size"), ...p }) })
11315
11315
  ] }),
11316
11316
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
11317
11317
  /* @__PURE__ */ r(f, { name: `series.${n}.orient`, control: t, render: ({
@@ -11334,7 +11334,7 @@ const Ix = ({
11334
11334
  /* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.position`, control: t, render: ({
11335
11335
  field: p
11336
11336
  }) => /* @__PURE__ */ r(Un, { label: i("chart.label_position.label"), options: d[c], ...p }) }),
11337
- /* @__PURE__ */ r(V, {})
11337
+ /* @__PURE__ */ r($, {})
11338
11338
  ] }),
11339
11339
  /* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: `series.${n}.axisLabel.overflow`, control: t, render: ({
11340
11340
  field: p
@@ -11392,7 +11392,7 @@ function Lx({
11392
11392
  /* @__PURE__ */ r(Mx, { control: i, watch: l })
11393
11393
  ] }) });
11394
11394
  }
11395
- const $x = {
11395
+ const Vx = {
11396
11396
  funnel_chart: {
11397
11397
  viz_name: "Funnel Chart",
11398
11398
  series_name: "Series Name",
@@ -11414,7 +11414,7 @@ const $x = {
11414
11414
  gap: "Gap",
11415
11415
  align: "Align"
11416
11416
  }
11417
- }, Vx = {
11417
+ }, $x = {
11418
11418
  funnel_chart: {
11419
11419
  viz_name: "漏斗图",
11420
11420
  series_name: "系列名称",
@@ -11438,10 +11438,10 @@ const $x = {
11438
11438
  }
11439
11439
  }, Px = [{
11440
11440
  lang: "en",
11441
- resources: $x
11441
+ resources: Vx
11442
11442
  }, {
11443
11443
  lang: "zh",
11444
- resources: Vx
11444
+ resources: $x
11445
11445
  }];
11446
11446
  function Ax(e) {
11447
11447
  return {
@@ -11538,7 +11538,7 @@ const Ox = {
11538
11538
  page: e,
11539
11539
  setPage: t,
11540
11540
  totalPages: n
11541
- }) => /* @__PURE__ */ r(Vr, { size: "xs", withControls: !1, siblings: 1, color: "gray", value: e, onChange: t, total: n }), qx = ({
11541
+ }) => /* @__PURE__ */ r($r, { size: "xs", withControls: !1, siblings: 1, color: "gray", value: e, onChange: t, total: n }), qx = ({
11542
11542
  page: e,
11543
11543
  setPage: t,
11544
11544
  totalPages: n
@@ -11550,7 +11550,7 @@ const Ox = {
11550
11550
  return /* @__PURE__ */ r(Ra, { size: "xs", value: e, onChange: (i) => {
11551
11551
  t(Number(i.currentTarget.value));
11552
11552
  }, data: a });
11553
- }, Nx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r(V, { sx: {
11553
+ }, Nx = (e) => e.totalPages <= 1 ? null : /* @__PURE__ */ r($, { sx: {
11554
11554
  position: "absolute",
11555
11555
  top: "calc(1rem + 5px)",
11556
11556
  right: "calc(1rem + 5px)",
@@ -11860,10 +11860,10 @@ const dr = ({
11860
11860
  /* @__PURE__ */ u(y, { grow: !0, children: [
11861
11861
  /* @__PURE__ */ r(f, { name: "visualMap.text.1", control: a, render: ({
11862
11862
  field: d
11863
- }) => /* @__PURE__ */ r($, { label: t("chart.visual_map.min_text"), ...d }) }),
11863
+ }) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.min_text"), ...d }) }),
11864
11864
  /* @__PURE__ */ r(f, { name: "visualMap.text.0", control: a, render: ({
11865
11865
  field: d
11866
- }) => /* @__PURE__ */ r($, { label: t("chart.visual_map.max_text"), ...d }) })
11866
+ }) => /* @__PURE__ */ r(V, { label: t("chart.visual_map.max_text"), ...d }) })
11867
11867
  ] }),
11868
11868
  /* @__PURE__ */ u(y, { grow: !0, children: [
11869
11869
  /* @__PURE__ */ r(f, { name: "visualMap.orient", control: a, render: ({
@@ -11905,7 +11905,7 @@ const dr = ({
11905
11905
  itemHeight: a
11906
11906
  } = e, o = t === "horizontal" ? n : a, {
11907
11907
  panel: l
11908
- } = $e(), s = Hr(e, l.variableValueMap);
11908
+ } = Ve(), s = Hr(e, l.variableValueMap);
11909
11909
  return /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(Ge, { echarts: Ne, option: {
11910
11910
  visualMap: s
11911
11911
  }, style: {
@@ -11950,7 +11950,7 @@ const dr = ({
11950
11950
  /* @__PURE__ */ r(mt.Dropdown, { children: /* @__PURE__ */ u(y, { wrap: "nowrap", gap: 8, children: [
11951
11951
  /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.value`, control: a, render: ({
11952
11952
  field: p
11953
- }) => /* @__PURE__ */ r($, { ...p, placeholder: n("chart.visual_map.min_value"), size: "xs", onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) }),
11953
+ }) => /* @__PURE__ */ r(V, { ...p, placeholder: n("chart.visual_map.min_value"), size: "xs", onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) }),
11954
11954
  /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.lower.symbol`, control: a, render: ({
11955
11955
  field: p
11956
11956
  }) => /* @__PURE__ */ r(F, { size: "xs", data: wo.lower, ...p, onChange: be((g) => p.onChange(g)) }) }),
@@ -11963,7 +11963,7 @@ const dr = ({
11963
11963
  }) => /* @__PURE__ */ r(F, { size: "xs", data: wo.upper, ...p, onChange: be((g) => p.onChange(g)) }) }),
11964
11964
  /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.upper.value`, control: a, render: ({
11965
11965
  field: p
11966
- }) => /* @__PURE__ */ r($, { ...p, size: "xs", placeholder: n("chart.visual_map.max_value"), onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) })
11966
+ }) => /* @__PURE__ */ r(V, { ...p, size: "xs", placeholder: n("chart.visual_map.max_value"), onChange: (g) => p.onChange(g.currentTarget.value), error: p.value !== "" && Number.isNaN(Number(p.value)) }) })
11967
11967
  ] }) })
11968
11968
  ] }) });
11969
11969
  }, tv = ({
@@ -11981,7 +11981,7 @@ const dr = ({
11981
11981
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(ev, { form: e, index: t }) }),
11982
11982
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.label`, control: a, render: ({
11983
11983
  field: o
11984
- }) => /* @__PURE__ */ r($, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
11984
+ }) => /* @__PURE__ */ r(V, { size: "xs", placeholder: "", ...o, onChange: (l) => o.onChange(l.currentTarget.value) }) }) }),
11985
11985
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(f, { name: `visualMap.pieces.${t}.color`, control: a, render: ({
11986
11986
  field: o
11987
11987
  }) => /* @__PURE__ */ r(cn, { label: i(""), placeholder: i("chart.color.label"), size: "xs", popoverProps: {
@@ -12087,7 +12087,7 @@ const dr = ({
12087
12087
  }], [n.language]), l = (s) => {
12088
12088
  switch (s) {
12089
12089
  case "continuous":
12090
- e.setValue("visualMap", Vs());
12090
+ e.setValue("visualMap", $s());
12091
12091
  break;
12092
12092
  case "piecewise":
12093
12093
  e.setValue("visualMap", mg());
@@ -12311,7 +12311,7 @@ function dv({
12311
12311
  groupedFullData: h
12312
12312
  } = iv(l, o);
12313
12313
  N(() => {
12314
- const x = Va(h).flat();
12314
+ const x = $a(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);
@@ -12338,7 +12338,7 @@ function uv({
12338
12338
  }, ...i }) }),
12339
12339
  /* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
12340
12340
  field: i
12341
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
12341
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12342
12342
  flex: 1
12343
12343
  }, ...i }) })
12344
12344
  ] }),
@@ -12353,7 +12353,7 @@ function uv({
12353
12353
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
12354
12354
  /* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
12355
12355
  field: i
12356
- }) => /* @__PURE__ */ r(ke, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
12356
+ }) => /* @__PURE__ */ r(Ce, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
12357
12357
  flexGrow: 1
12358
12358
  } }) }),
12359
12359
  /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
@@ -12388,7 +12388,7 @@ const pv = ({
12388
12388
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
12389
12389
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
12390
12390
  field: a
12391
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
12391
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
12392
12392
  flex: 1
12393
12393
  }, ...a }) }),
12394
12394
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -12453,7 +12453,7 @@ function fv({
12453
12453
  }, ...a }) }),
12454
12454
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
12455
12455
  field: a
12456
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
12456
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12457
12457
  flex: 1
12458
12458
  }, ...a }) })
12459
12459
  ] }),
@@ -12491,7 +12491,7 @@ function bv({
12491
12491
  }, ...a }) }),
12492
12492
  /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
12493
12493
  field: a
12494
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
12494
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
12495
12495
  flex: 1
12496
12496
  }, ...a }) })
12497
12497
  ] }),
@@ -12818,7 +12818,7 @@ const Mv = {
12818
12818
  label: "Click chart series"
12819
12819
  }
12820
12820
  }
12821
- }, $v = {
12821
+ }, Vv = {
12822
12822
  pareto_chart: {
12823
12823
  viz_name: "帕累托图",
12824
12824
  line_80_20: {
@@ -12832,12 +12832,12 @@ const Mv = {
12832
12832
  label: "点击柱或线"
12833
12833
  }
12834
12834
  }
12835
- }, Vv = [{
12835
+ }, $v = [{
12836
12836
  lang: "en",
12837
12837
  resources: Lv
12838
12838
  }, {
12839
12839
  lang: "zh",
12840
- resources: $v
12840
+ resources: Vv
12841
12841
  }], bc = {
12842
12842
  id: "builtin:echarts:click-echart:series",
12843
12843
  // use same id as cartesian's, but different payload
@@ -13252,7 +13252,7 @@ function Xv({
13252
13252
  /* @__PURE__ */ u(y, { grow: !0, children: [
13253
13253
  /* @__PURE__ */ r(f, { name: "bar.name", control: e, render: ({
13254
13254
  field: a
13255
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
13255
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
13256
13256
  flex: 1
13257
13257
  }, ...a }) }),
13258
13258
  /* @__PURE__ */ r(f, { name: "bar.nameAlignment", control: e, render: ({
@@ -13286,7 +13286,7 @@ function Zv({
13286
13286
  /* @__PURE__ */ u(y, { grow: !0, children: [
13287
13287
  /* @__PURE__ */ r(f, { name: "line.name", control: e, render: ({
13288
13288
  field: a
13289
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
13289
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
13290
13290
  flex: 1
13291
13291
  }, ...a }) }),
13292
13292
  /* @__PURE__ */ r(f, { name: "line.nameAlignment", control: e, render: ({
@@ -13370,7 +13370,7 @@ function nw({
13370
13370
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
13371
13371
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
13372
13372
  field: s
13373
- }) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
13373
+ }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
13374
13374
  flex: 1
13375
13375
  }, ...s }) }),
13376
13376
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
@@ -13381,7 +13381,7 @@ function nw({
13381
13381
  ] }),
13382
13382
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
13383
13383
  field: s
13384
- }) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
13384
+ }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
13385
13385
  flex: 1
13386
13386
  }, ...s }) }),
13387
13387
  /* @__PURE__ */ u(y, { grow: !0, children: [
@@ -13469,7 +13469,7 @@ function aw({
13469
13469
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
13470
13470
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
13471
13471
  field: a
13472
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
13472
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
13473
13473
  flex: 1
13474
13474
  }, ...a }) }),
13475
13475
  /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
@@ -13753,7 +13753,7 @@ const bw = {
13753
13753
  };
13754
13754
  },
13755
13755
  triggers: [bc],
13756
- translation: Vv
13756
+ translation: $v
13757
13757
  };
13758
13758
  function yw(e, t, n, a) {
13759
13759
  const i = a[n];
@@ -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 $a(o, [2, 0], i ? a.labelRect.x : a.labelRect.x + a.labelRect.width), {
13871
+ return Va(o, [2, 0], i ? a.labelRect.x : a.labelRect.x + a.labelRect.width), {
13872
13872
  labelLinePoints: o
13873
13873
  };
13874
13874
  },
@@ -14061,17 +14061,17 @@ function Lw(e) {
14061
14061
  const [t, n] = e;
14062
14062
  return [Number(t.replace("%", "")), Number(n.replace("%", ""))];
14063
14063
  }
14064
- function $w(e) {
14064
+ function Vw(e) {
14065
14065
  const [t, n] = e;
14066
14066
  return [Number.isFinite(t) ? `${t}%` : "", Number.isFinite(n) ? `${n}%` : ""];
14067
14067
  }
14068
- const Vw = ee(({
14068
+ const $w = ee(({
14069
14069
  label: e,
14070
14070
  value: t,
14071
14071
  onChange: n
14072
14072
  }, a) => {
14073
14073
  const [i, o] = Q(Lw(t)), l = ae((s) => {
14074
- n($w(s));
14074
+ n(Vw(s));
14075
14075
  }, [n]);
14076
14076
  return /* @__PURE__ */ u(T, { gap: 4, mt: 2, mb: "1rem", children: [
14077
14077
  /* @__PURE__ */ r("label", { className: "form-field-label required", children: e }),
@@ -14204,7 +14204,7 @@ const Ow = ({
14204
14204
  /* @__PURE__ */ u(W.Dropdown, { children: [
14205
14205
  /* @__PURE__ */ r(W.Label, { children: n("viz.pie_chart.color.map.click_to_apply_palette") }),
14206
14206
  /* @__PURE__ */ r(W.Divider, {}),
14207
- Rw.map((o) => /* @__PURE__ */ r(W.Item, { onClick: () => i(o.colors), children: /* @__PURE__ */ r(V, { h: 28, style: {
14207
+ Rw.map((o) => /* @__PURE__ */ r(W.Item, { onClick: () => i(o.colors), children: /* @__PURE__ */ r($, { h: 28, style: {
14208
14208
  backgroundImage: Ew(o.colors)
14209
14209
  } }) }, o.name))
14210
14210
  ] })
@@ -14265,7 +14265,7 @@ function qw({
14265
14265
  }, [i]);
14266
14266
  const [h] = s(["label_field", "value_field", "color_field", "color"]), {
14267
14267
  panel: p
14268
- } = $e(), g = z(() => {
14268
+ } = Ve(), g = z(() => {
14269
14269
  if (!h)
14270
14270
  return [];
14271
14271
  const b = gt(p.data, h);
@@ -14294,12 +14294,12 @@ function qw({
14294
14294
  }) => /* @__PURE__ */ r(uc, { label: a("chart.series_order.label"), ...b }) }),
14295
14295
  /* @__PURE__ */ r(f, { control: o, name: "radius", render: ({
14296
14296
  field: b
14297
- }) => /* @__PURE__ */ r(Vw, { label: a("viz.pie_chart.radius.label"), ...b }) }),
14297
+ }) => /* @__PURE__ */ r($w, { label: a("viz.pie_chart.radius.label"), ...b }) }),
14298
14298
  /* @__PURE__ */ r(A, { label: a("viz.pie_chart.others_sector.title"), labelPosition: "center", variant: "dashed" }),
14299
14299
  /* @__PURE__ */ u(y, { grow: !0, children: [
14300
14300
  /* @__PURE__ */ r(f, { control: o, name: "others_sector.label", render: ({
14301
14301
  field: b
14302
- }) => /* @__PURE__ */ r($, { size: "xs", label: a("viz.pie_chart.others_sector.label"), ...b, value: b.value ?? "" }) }),
14302
+ }) => /* @__PURE__ */ r(V, { size: "xs", label: a("viz.pie_chart.others_sector.label"), ...b, value: b.value ?? "" }) }),
14303
14303
  /* @__PURE__ */ r(f, { control: o, name: "others_sector.threshold", render: ({
14304
14304
  field: b
14305
14305
  }) => /* @__PURE__ */ r(ne, { size: "xs", label: a("viz.pie_chart.others_sector.threshold"), suffix: "%", ...b, value: b.value ?? "" }) })
@@ -14880,7 +14880,7 @@ function m0({
14880
14880
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", align: "top", children: [
14881
14881
  /* @__PURE__ */ r(f, { name: `dimensions.${t}.name`, control: e, render: ({
14882
14882
  field: a
14883
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
14883
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
14884
14884
  flex: 1
14885
14885
  }, ...a }) }),
14886
14886
  /* @__PURE__ */ r(f, { name: `dimensions.${t}.data_key`, control: e, render: ({
@@ -14898,7 +14898,7 @@ function m0({
14898
14898
  fieldState: i
14899
14899
  }) => {
14900
14900
  var o;
14901
- return /* @__PURE__ */ r($, { label: n("common.max"), required: !0, sx: {
14901
+ return /* @__PURE__ */ r(V, { label: n("common.max"), required: !0, sx: {
14902
14902
  flex: 1
14903
14903
  }, ...a, error: (o = i.error) == null ? void 0 : o.message });
14904
14904
  } })
@@ -15288,7 +15288,7 @@ function L0(e, t) {
15288
15288
  } = e.regression;
15289
15289
  return n ? M0(e, t) : I0(e, t);
15290
15290
  }
15291
- function $0(e) {
15291
+ function V0(e) {
15292
15292
  return Array.isArray(e) || (e = [e]), e.map((t) => ({
15293
15293
  marker: t.marker,
15294
15294
  label: t.seriesName,
@@ -15296,11 +15296,11 @@ function $0(e) {
15296
15296
  y: t.value[1]
15297
15297
  }));
15298
15298
  }
15299
- function V0(e) {
15299
+ function $0(e) {
15300
15300
  return me.getTooltip({
15301
15301
  trigger: "axis",
15302
15302
  formatter: (t) => {
15303
- const n = $0(t);
15303
+ const n = V0(t);
15304
15304
  return n.length === 0 ? "" : `
15305
15305
  <table style="width: auto">
15306
15306
  <thead>
@@ -15388,7 +15388,7 @@ function R0(e, t) {
15388
15388
  nameGap: 5
15389
15389
  }),
15390
15390
  series: [...n, ...a],
15391
- tooltip: V0(e),
15391
+ tooltip: $0(e),
15392
15392
  legend: {
15393
15393
  show: !0,
15394
15394
  type: "scroll",
@@ -15703,7 +15703,7 @@ function W0({
15703
15703
  return /* @__PURE__ */ u(T, { children: [
15704
15704
  /* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "regression.name", control: e, render: ({
15705
15705
  field: s
15706
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
15706
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
15707
15707
  flex: 1
15708
15708
  }, ...s }) }) }),
15709
15709
  /* @__PURE__ */ r(f, { name: "regression.group_by_key", control: e, render: ({
@@ -15736,7 +15736,7 @@ function U0({
15736
15736
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
15737
15737
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
15738
15738
  field: n
15739
- }) => /* @__PURE__ */ r($, { label: "X轴名称", sx: {
15739
+ }) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
15740
15740
  flex: 1
15741
15741
  }, ...n }) }),
15742
15742
  /* @__PURE__ */ r(f, { name: "x_axis.data_key", control: e, render: ({
@@ -15778,7 +15778,7 @@ function K0({
15778
15778
  return t(["y_axis", "regression.y_axis_data_key"]), /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
15779
15779
  /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
15780
15780
  field: n
15781
- }) => /* @__PURE__ */ r($, { label: "Y轴名称", sx: {
15781
+ }) => /* @__PURE__ */ r(V, { label: "Y轴名称", sx: {
15782
15782
  flex: 1
15783
15783
  }, ...n }) }),
15784
15784
  /* @__PURE__ */ r(f, { name: "regression.y_axis_data_key", control: e, render: ({
@@ -15958,7 +15958,7 @@ const r1 = {
15958
15958
  }) => {
15959
15959
  const {
15960
15960
  panel: t
15961
- } = $e(), {
15961
+ } = Ve(), {
15962
15962
  t: n
15963
15963
  } = _(), {
15964
15964
  value: a,
@@ -16545,7 +16545,7 @@ function L1({
16545
16545
  }
16546
16546
  };
16547
16547
  }
16548
- function $1({
16548
+ function V1({
16549
16549
  type: e,
16550
16550
  ...t
16551
16551
  }, n) {
@@ -16576,7 +16576,7 @@ function $1({
16576
16576
  }
16577
16577
  };
16578
16578
  }
16579
- function V1(e, t, n, a) {
16579
+ function $1(e, t, n, a) {
16580
16580
  return e.map((i) => {
16581
16581
  const o = i.orientation === "horizontal", l = o ? "yAxis" : "xAxis", s = o ? "insideEndTop" : "end";
16582
16582
  return {
@@ -16624,7 +16624,7 @@ function P1({
16624
16624
  yAxisIndex: 0,
16625
16625
  datasetIndex: 0,
16626
16626
  itemStyle: {
16627
- color: $1(t.color, n)
16627
+ color: V1(t.color, n)
16628
16628
  },
16629
16629
  symbolSize: L1(t.symbolSize, n),
16630
16630
  encode: {
@@ -16634,7 +16634,7 @@ function P1({
16634
16634
  };
16635
16635
  }
16636
16636
  function A1(e, t, n, a) {
16637
- return [P1(e, a)].concat(V1(e.reference_lines, n, a, t)).concat(M1({
16637
+ return [P1(e, a)].concat($1(e.reference_lines, n, a, t)).concat(M1({
16638
16638
  reference_areas: e.reference_areas,
16639
16639
  variableValueMap: a
16640
16640
  }));
@@ -16914,7 +16914,7 @@ const H1 = ee(({
16914
16914
  return /* @__PURE__ */ u(T, { children: [
16915
16915
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.content.label"), labelPosition: "right" }),
16916
16916
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
16917
- /* @__PURE__ */ r($, { label: l("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
16917
+ /* @__PURE__ */ r(V, { label: l("chart.reference_area.content.content_text"), value: e.content.text, onChange: (d) => c("content.text", d.currentTarget.value) }),
16918
16918
  /* @__PURE__ */ r(Un, { label: l("chart.reference_area.content.text_position"), value: e.label.position, onChange: (d) => c("label.position", d) })
16919
16919
  ] }),
16920
16920
  /* @__PURE__ */ r(A, { mb: -15, variant: "dashed", label: l("chart.reference_area.endpoint.labels"), labelPosition: "right" }),
@@ -17008,7 +17008,7 @@ function U1({
17008
17008
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
17009
17009
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
17010
17010
  field: s
17011
- }) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
17011
+ }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
17012
17012
  flex: 1
17013
17013
  }, ...s }) }),
17014
17014
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
@@ -17019,7 +17019,7 @@ function U1({
17019
17019
  ] }),
17020
17020
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
17021
17021
  field: s
17022
- }) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
17022
+ }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
17023
17023
  flex: 1
17024
17024
  }, ...s }) }),
17025
17025
  /* @__PURE__ */ u(y, { grow: !0, children: [
@@ -17104,7 +17104,7 @@ function K1({
17104
17104
  const Y1 = ({
17105
17105
  value: e,
17106
17106
  onChange: t
17107
- }) => /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
17107
+ }) => /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
17108
17108
  a && t(a);
17109
17109
  }, theme: "vs-dark", options: {
17110
17110
  minimap: {
@@ -17140,7 +17140,7 @@ const Y1 = ({
17140
17140
  h(cr.dynamic.func_content);
17141
17141
  };
17142
17142
  return /* @__PURE__ */ u(q, { children: [
17143
- /* @__PURE__ */ r(V, { sx: {
17143
+ /* @__PURE__ */ r($, { sx: {
17144
17144
  width: "50%"
17145
17145
  }, children: /* @__PURE__ */ r(L, { color: "grape", variant: "filled", leftSection: /* @__PURE__ */ r(en, { size: 16 }), mt: 24, onClick: i, sx: {
17146
17146
  flexGrow: 0
@@ -17267,7 +17267,7 @@ const rS = D(({
17267
17267
  }) => {
17268
17268
  const {
17269
17269
  panel: n
17270
- } = $e(), {
17270
+ } = Ve(), {
17271
17271
  t: a
17272
17272
  } = _();
17273
17273
  return /* @__PURE__ */ u(T, { children: [
@@ -17299,7 +17299,7 @@ const rS = D(({
17299
17299
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
17300
17300
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
17301
17301
  field: a
17302
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
17302
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
17303
17303
  flex: 1
17304
17304
  }, ...a }) }),
17305
17305
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -17383,7 +17383,7 @@ function lS({
17383
17383
  }, ...a }) }),
17384
17384
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
17385
17385
  field: a
17386
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
17386
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
17387
17387
  flex: 1
17388
17388
  }, ...a }) })
17389
17389
  ] }),
@@ -17420,7 +17420,7 @@ function sS({
17420
17420
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
17421
17421
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.name`, control: e, render: ({
17422
17422
  field: a
17423
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
17423
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
17424
17424
  flex: 1
17425
17425
  }, ...a }) }),
17426
17426
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.nameAlignment`, control: e, render: ({
@@ -17446,10 +17446,10 @@ function sS({
17446
17446
  /* @__PURE__ */ u(y, { grow: !0, children: [
17447
17447
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.min`, control: e, render: ({
17448
17448
  field: a
17449
- }) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_min"), ...a }) }),
17449
+ }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_min"), ...a }) }),
17450
17450
  /* @__PURE__ */ r(f, { name: `y_axes.${t}.max`, control: e, render: ({
17451
17451
  field: a
17452
- }) => /* @__PURE__ */ r($, { label: n("chart.y_axis.value_max"), ...a }) })
17452
+ }) => /* @__PURE__ */ r(V, { label: n("chart.y_axis.value_max"), ...a }) })
17453
17453
  ] })
17454
17454
  ] })
17455
17455
  ] });
@@ -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 && $a(t, "color.valueRange", n.map((a) => Number(a))), t;
17617
+ return n !== void 0 && Va(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>`;
@@ -17775,7 +17775,7 @@ const zS = D(({
17775
17775
  }, [n.current, h, p, g]), /* @__PURE__ */ r(rt, { className: "viz-stats", sx: {
17776
17776
  width: h,
17777
17777
  height: p
17778
- }, align: CS[s.vertical_align], direction: "row", children: /* @__PURE__ */ r(V, { className: "viz-stats--clickable-wrapper", sx: kS(i.length), onClick: b, children: /* @__PURE__ */ r(Gn, { ref: n, value: g, styles: {
17778
+ }, align: CS[s.vertical_align], direction: "row", children: /* @__PURE__ */ r($, { className: "viz-stats--clickable-wrapper", sx: kS(i.length), onClick: b, children: /* @__PURE__ */ r(Gn, { ref: n, value: g, styles: {
17779
17779
  root: {
17780
17780
  border: "none",
17781
17781
  maxWidth: h,
@@ -17815,7 +17815,7 @@ const zS = D(({
17815
17815
  }) => {
17816
17816
  const {
17817
17817
  panel: n
17818
- } = $e(), {
17818
+ } = Ve(), {
17819
17819
  t: a
17820
17820
  } = _(), i = R.useMemo(() => pe({}, e), [e]), {
17821
17821
  control: o,
@@ -17864,13 +17864,13 @@ const MS = {
17864
17864
  trigger: "点击文字"
17865
17865
  }
17866
17866
  }
17867
- }, $S = [{
17867
+ }, VS = [{
17868
17868
  lang: "en",
17869
17869
  resources: MS
17870
17870
  }, {
17871
17871
  lang: "zh",
17872
17872
  resources: LS
17873
- }], VS = {
17873
+ }], $S = {
17874
17874
  createConfig() {
17875
17875
  return {
17876
17876
  version: 5,
@@ -17884,7 +17884,7 @@ const MS = {
17884
17884
  viewRender: TS,
17885
17885
  configRender: IS,
17886
17886
  triggers: [Mc],
17887
- translation: $S
17887
+ translation: VS
17888
17888
  }, Mi = {
17889
17889
  label_key: "",
17890
17890
  value_key: "",
@@ -18105,10 +18105,10 @@ const HS = ({
18105
18105
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
18106
18106
  /* @__PURE__ */ r(f, { name: `levels.${t}.r0`, control: e, render: ({
18107
18107
  field: o
18108
- }) => /* @__PURE__ */ r($, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
18108
+ }) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.inside_radius"), placeholder: "0%", ...o }) }),
18109
18109
  /* @__PURE__ */ r(f, { name: `levels.${t}.r`, control: e, render: ({
18110
18110
  field: o
18111
- }) => /* @__PURE__ */ r($, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
18111
+ }) => /* @__PURE__ */ r(V, { label: n("viz.sunburst_chart.level.outside_radius"), placeholder: "50%", ...o }) })
18112
18112
  ] }),
18113
18113
  /* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.label.label_full"), labelPosition: "center" }),
18114
18114
  /* @__PURE__ */ r(f, { name: `levels.${t}.label.show_label_tolerance`, control: e, render: ({
@@ -18376,8 +18376,8 @@ function Lc() {
18376
18376
  page_size: 0
18377
18377
  };
18378
18378
  }
18379
- const $c = ["function text({ value, row_data }, utils) {", " return value", "}"].join(`
18380
- `), Vc = {
18379
+ const Vc = ["function text({ value, row_data }, utils) {", " return value", "}"].join(`
18380
+ `), $c = {
18381
18381
  columns: [],
18382
18382
  fontSize: "14px",
18383
18383
  highlightOnHover: !0,
@@ -18838,7 +18838,7 @@ function kC(e) {
18838
18838
  /* @__PURE__ */ r(wl, { children: "Use original data columns" }),
18839
18839
  " is enabled, you have to address trigger column by its data field"
18840
18840
  ] }) }),
18841
- /* @__PURE__ */ r($, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (h) => d(h.currentTarget.value) })
18841
+ /* @__PURE__ */ r(V, { label: t("viz.table.click_cell.column_data_field"), value: c.toString(), onChange: (h) => d(h.currentTarget.value) })
18842
18842
  ] }) : /* @__PURE__ */ r(F, { clearable: !1, data: o, label: t("viz.table.click_cell.choose_a_column"), value: c.toString(), onChange: d, comboboxProps: {
18843
18843
  zIndex: 340
18844
18844
  }, maxDropdownHeight: 500 });
@@ -18959,7 +18959,7 @@ const MC = (e) => {
18959
18959
  if (i === 0)
18960
18960
  return null;
18961
18961
  if (l === 0)
18962
- return /* @__PURE__ */ r(V, { className: e.info_bar, sx: {
18962
+ return /* @__PURE__ */ r($, { className: e.info_bar, sx: {
18963
18963
  height: 22
18964
18964
  }, children: /* @__PURE__ */ r(k, { ta: "right", pr: 6, size: "14px", c: "dimmed", fw: "normal", children: o("common.pagination.total_rows", {
18965
18965
  total: i
@@ -19058,7 +19058,7 @@ function Mo({
19058
19058
  getSortedRowModel: _p()
19059
19059
  }), {
19060
19060
  rows: de
19061
- } = U.getRowModel(), J = R.useRef(null), Ve = e.length, Xe = Ve > 0, Gt = Xe ? n - 22 : n, rn = Xe ? 22 : 0;
19061
+ } = U.getRowModel(), J = R.useRef(null), $e = e.length, Xe = $e > 0, Gt = Xe ? n - 22 : n, rn = Xe ? 22 : 0;
19062
19062
  return /* @__PURE__ */ u("div", { ref: J, style: {
19063
19063
  height: n,
19064
19064
  width: t,
@@ -19066,7 +19066,7 @@ function Mo({
19066
19066
  }, "data-enable-scrollbar": !0, className: p(h.root, {
19067
19067
  "table-highlight-on-hover": a.highlightOnHover
19068
19068
  }), children: [
19069
- /* @__PURE__ */ r(LC, { classes: h, pagination: M, totalRows: Ve, setPagination: P, pageCount: Y }),
19069
+ /* @__PURE__ */ r(LC, { classes: h, pagination: M, totalRows: $e, setPagination: P, pageCount: Y }),
19070
19070
  /* @__PURE__ */ u(w, { sx: {
19071
19071
  ...mC,
19072
19072
  maxHeight: Gt
@@ -19089,7 +19089,7 @@ function Lo() {
19089
19089
  } = _();
19090
19090
  return /* @__PURE__ */ r(k, { size: "sm", c: "gray", ta: "center", children: e("data.empty_data") });
19091
19091
  }
19092
- function $C({
19092
+ function VC({
19093
19093
  data: e,
19094
19094
  width: t,
19095
19095
  height: n,
@@ -19116,7 +19116,7 @@ function $C({
19116
19116
  const h = e[d];
19117
19117
  return !Array.isArray(h) || h.length === 0 ? /* @__PURE__ */ r(Lo, {}) : /* @__PURE__ */ r(Mo, { queryData: h, width: t, height: n, conf: a, context: i, instance: o });
19118
19118
  }
19119
- function VC({
19119
+ function $C({
19120
19120
  context: e,
19121
19121
  instance: t
19122
19122
  }) {
@@ -19126,7 +19126,7 @@ function VC({
19126
19126
  } = e.viewport, {
19127
19127
  value: o
19128
19128
  } = K(e.instanceData, "config");
19129
- return o ? /* @__PURE__ */ r($C, { data: n, width: i, height: a, conf: o, context: e, instance: t }) : null;
19129
+ return o ? /* @__PURE__ */ r(VC, { data: n, width: i, height: a, conf: o, context: e, instance: t }) : null;
19130
19130
  }
19131
19131
  const PC = {
19132
19132
  table: {
@@ -19234,8 +19234,8 @@ const PC = {
19234
19234
  }, c) => {
19235
19235
  const {
19236
19236
  panel: d
19237
- } = $e(), h = R.useMemo(() => d.queryOptions(a, o), [a, o]);
19238
- return h.length === 0 ? /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r($, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(F, { ref: c, label: e, description: n, data: h, value: a, onChange: be(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
19237
+ } = Ve(), h = R.useMemo(() => d.queryOptions(a, o), [a, o]);
19238
+ return h.length === 0 ? /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(V, { label: e, required: t, defaultValue: a, readOnly: !0, disabled: !0 }) }) : /* @__PURE__ */ r(F, { ref: c, label: e, description: n, data: h, value: a, onChange: be(i), required: t, sx: l, maxDropdownHeight: 500, ...s });
19239
19239
  })), OC = [{
19240
19240
  from: 0,
19241
19241
  to: 0
@@ -19303,7 +19303,7 @@ const NC = ee((e, t) => {
19303
19303
  }, h = () => {
19304
19304
  l(), c(e);
19305
19305
  }, p = () => {
19306
- c($c);
19306
+ c(Vc);
19307
19307
  };
19308
19308
  return N(() => {
19309
19309
  c(e);
@@ -19313,7 +19313,7 @@ const NC = ee((e, t) => {
19313
19313
  }, children: a("viz.table.column.custom_cell_content") }),
19314
19314
  /* @__PURE__ */ r(we, { size: 800, title: a("viz.table.column.custom_cell_content"), opened: i, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ u(T, { children: [
19315
19315
  /* @__PURE__ */ r(y, { justify: "flex-start", children: /* @__PURE__ */ r(Qs, {}) }),
19316
- /* @__PURE__ */ r(V, { sx: {
19316
+ /* @__PURE__ */ r($, { sx: {
19317
19317
  position: "relative"
19318
19318
  }, children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (g) => c(g ?? ""), theme: "vs-dark", options: {
19319
19319
  minimap: {
@@ -19343,7 +19343,7 @@ const NC = ee((e, t) => {
19343
19343
  /* @__PURE__ */ u(y, { grow: !0, children: [
19344
19344
  /* @__PURE__ */ r(f, { name: `columns.${t}.label`, control: e, render: ({
19345
19345
  field: l
19346
- }) => /* @__PURE__ */ r($, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
19346
+ }) => /* @__PURE__ */ r(V, { label: a("chart.label.label"), required: !0, id: `col-label-${t}`, sx: {
19347
19347
  flex: 1
19348
19348
  }, ...l }) }),
19349
19349
  /* @__PURE__ */ r(f, { name: `columns.${t}.value_field`, control: e, render: ({
@@ -19358,7 +19358,7 @@ const NC = ee((e, t) => {
19358
19358
  }, ...l }) }),
19359
19359
  i === vt.custom && /* @__PURE__ */ r(f, { name: `columns.${t}.func_content`, control: e, render: ({
19360
19360
  field: l
19361
- }) => /* @__PURE__ */ r(jC, { value: l.value ?? $c, onChange: (s) => l.onChange(s ?? "") }) })
19361
+ }) => /* @__PURE__ */ r(jC, { value: l.value ?? Vc, onChange: (s) => l.onChange(s ?? "") }) })
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: [
@@ -19400,7 +19400,7 @@ const NC = ee((e, t) => {
19400
19400
  return /* @__PURE__ */ u(q, { children: [
19401
19401
  /* @__PURE__ */ r(f, { name: "use_raw_columns", control: e, render: ({
19402
19402
  field: l
19403
- }) => /* @__PURE__ */ r(ke, { mt: 20, mb: 20, label: n("viz.table.column.use_original_data_columns"), checked: l.value, onChange: (s) => l.onChange(s.currentTarget.checked) }) }),
19403
+ }) => /* @__PURE__ */ r(Ce, { mt: 20, mb: 20, label: n("viz.table.column.use_original_data_columns"), checked: l.value, onChange: (s) => l.onChange(s.currentTarget.checked) }) }),
19404
19404
  o && /* @__PURE__ */ r(f, { name: "ignored_column_keys", control: e, render: ({
19405
19405
  field: l
19406
19406
  }) => /* @__PURE__ */ r(vl, { label: n("viz.table.column.ignore_columns_by_these_key"), placeholder: n("viz.table.column.separate_by_line_break"), autosize: !0, minRows: 2, maxRows: 10, ...l }) }),
@@ -19440,16 +19440,16 @@ function GC({
19440
19440
  }
19441
19441
  }, children: /* @__PURE__ */ r(f, { name: "fontSize", control: e, render: ({
19442
19442
  field: a
19443
- }) => /* @__PURE__ */ r($, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
19443
+ }) => /* @__PURE__ */ r(V, { label: n("style.font_size.label"), placeholder: n("style.font_size.placeholder"), required: !0, sx: {
19444
19444
  flex: 1
19445
19445
  }, ...a }) }) }),
19446
19446
  /* @__PURE__ */ u(y, { justify: "space-between", grow: !0, children: [
19447
19447
  /* @__PURE__ */ r(f, { name: "striped", control: e, render: ({
19448
19448
  field: a
19449
- }) => /* @__PURE__ */ r(ke, { label: n("viz.table.style.striped"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) }),
19449
+ }) => /* @__PURE__ */ r(Ce, { label: n("viz.table.style.striped"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) }),
19450
19450
  /* @__PURE__ */ r(f, { name: "highlightOnHover", control: e, render: ({
19451
19451
  field: a
19452
- }) => /* @__PURE__ */ r(ke, { label: n("viz.table.style.highlight_on_hover"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
19452
+ }) => /* @__PURE__ */ r(Ce, { label: n("viz.table.style.highlight_on_hover"), checked: a.value, onChange: (i) => a.onChange(i.currentTarget.checked) }) })
19453
19453
  ] })
19454
19454
  ] });
19455
19455
  }
@@ -19491,7 +19491,7 @@ function KC({
19491
19491
  } = _(), {
19492
19492
  value: n,
19493
19493
  set: a
19494
- } = K(e.instanceData, "config"), i = z(() => He({}, n, Vc), [n]), o = z(() => UC(i), [i]);
19494
+ } = K(e.instanceData, "config"), i = z(() => He({}, n, $c), [n]), o = z(() => UC(i), [i]);
19495
19495
  N(() => {
19496
19496
  !Fe(i, o) && (console.log("config malformed, resetting to defaults", i, o), a(o));
19497
19497
  }, [i, o]);
@@ -19535,23 +19535,23 @@ function KC({
19535
19535
  ] })
19536
19536
  ] });
19537
19537
  }
19538
- const $o = new dC(), Ca = {
19538
+ const Vo = new dC(), Ca = {
19539
19539
  createConfig() {
19540
19540
  return {
19541
- version: $o.VERSION,
19542
- config: Ae(Vc)
19541
+ version: Vo.VERSION,
19542
+ config: Ae($c)
19543
19543
  };
19544
19544
  },
19545
19545
  displayName: "viz.table.viz_name",
19546
19546
  displayGroup: "chart.groups.others",
19547
- migrator: $o,
19547
+ migrator: Vo,
19548
19548
  name: "table",
19549
- viewRender: VC,
19549
+ viewRender: $C,
19550
19550
  configRender: KC,
19551
19551
  triggers: [Li],
19552
19552
  translation: RC
19553
19553
  }, qc = ["function text({ data, variables, filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
19554
- `), $i = {
19554
+ `), Vi = {
19555
19555
  func_content: qc,
19556
19556
  horizontal_align: "left",
19557
19557
  font_size: "14px",
@@ -19560,7 +19560,7 @@ const $o = new dC(), Ca = {
19560
19560
  context: e
19561
19561
  }) => {
19562
19562
  const t = _e(), {
19563
- value: n = $i
19563
+ value: n = Vi
19564
19564
  } = K(e.instanceData, "config"), {
19565
19565
  variables: a
19566
19566
  } = e, i = e.data, {
@@ -19608,13 +19608,13 @@ function XC({
19608
19608
  s && n(s.label);
19609
19609
  }, [i]), /* @__PURE__ */ u(T, { gap: 0, mt: "sm", mb: "lg", children: [
19610
19610
  /* @__PURE__ */ r(k, { size: "sm", children: e }),
19611
- /* @__PURE__ */ r(V, { px: "1.5em", children: /* @__PURE__ */ r(Ku, { label: null, marks: hr, value: i, onChange: o, step: 25, ref: a }) })
19611
+ /* @__PURE__ */ r($, { px: "1.5em", children: /* @__PURE__ */ r(Ku, { label: null, marks: hr, value: i, onChange: o, step: 25, ref: a }) })
19612
19612
  ] });
19613
19613
  }
19614
19614
  const ZC = R.forwardRef(XC), JC = ({
19615
19615
  value: e,
19616
19616
  onChange: t
19617
- }) => /* @__PURE__ */ r(V, { sx: {
19617
+ }) => /* @__PURE__ */ r($, { sx: {
19618
19618
  position: "relative"
19619
19619
  }, children: /* @__PURE__ */ r(Qt, { height: "500px", defaultLanguage: "javascript", value: e, onChange: (a) => {
19620
19620
  a && t(a);
@@ -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, $i), [n]), o = z(() => {
19667
+ } = K(e.instanceData, "config"), i = z(() => He({}, n, Vi), [n]), o = z(() => {
19668
19668
  const {
19669
19669
  func_content: p,
19670
19670
  horizontal_align: g,
@@ -19704,7 +19704,7 @@ function tk({
19704
19704
  }) => /* @__PURE__ */ r(bi, { ...p }) }),
19705
19705
  /* @__PURE__ */ r(f, { name: "font_size", control: l, render: ({
19706
19706
  field: p
19707
- }) => /* @__PURE__ */ r($, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
19707
+ }) => /* @__PURE__ */ r(V, { label: t("style.font_size.label"), placeholder: t("style.font_size.placeholder"), sx: {
19708
19708
  flex: 1
19709
19709
  }, ...p }) }),
19710
19710
  /* @__PURE__ */ r(y, { justify: "space-between", grow: !0, sx: {
@@ -19763,7 +19763,7 @@ const ok = {
19763
19763
  createConfig() {
19764
19764
  return {
19765
19765
  version: 1,
19766
- config: Ae($i)
19766
+ config: Ae(Vi)
19767
19767
  };
19768
19768
  },
19769
19769
  translation: ak
@@ -19772,7 +19772,7 @@ const ok = {
19772
19772
  /* @__PURE__ */ r("path", { d: "M18.39 32.28H16.51V35.02H18.39V32.28Z", fill: "#9399A5" }),
19773
19773
  /* @__PURE__ */ r("path", { d: "M46.87 15H20.69C18.38 15 16.5 16.88 16.5 19.19V26.22H18.38V23.45H49.18V47.68H18.38V41.07H16.5V49.55H51.05V19.19C51.06 16.88 49.18 15 46.87 15ZM39.46 20.73C38.81 20.73 38.29 20.2 38.29 19.56C38.29 18.92 38.82 18.39 39.46 18.39C40.11 18.39 40.63 18.92 40.63 19.56C40.63 20.2 40.11 20.73 39.46 20.73ZM43.22 20.73C42.57 20.73 42.05 20.2 42.05 19.56C42.05 18.92 42.58 18.39 43.22 18.39C43.87 18.39 44.39 18.92 44.39 19.56C44.39 20.2 43.87 20.73 43.22 20.73ZM46.97 20.73C46.32 20.73 45.8 20.2 45.8 19.56C45.8 18.92 46.33 18.39 46.97 18.39C47.62 18.39 48.14 18.92 48.14 19.56C48.14 20.2 47.62 20.73 46.97 20.73Z", fill: "#9399A5" })
19774
19774
  ] });
19775
- function Vo(e, t) {
19775
+ function $o(e, t) {
19776
19776
  const n = C.get(e, t, "");
19777
19777
  if (n)
19778
19778
  throw new Error(n);
@@ -19815,9 +19815,9 @@ const ck = ({
19815
19815
  const c = n.startsWith("http") ? n : window.location.origin;
19816
19816
  return await sk(c, `/expert/v3/devtable/${a}`, s, {});
19817
19817
  } catch (c) {
19818
- throw Vo(c, "response.data.detail"), Vo(c, "response.data.error"), console.error(c), c;
19818
+ throw $o(c, "response.data.detail"), $o(c, "response.data.error"), console.error(c), c;
19819
19819
  }
19820
- }, Vi = {
19820
+ }, $i = {
19821
19821
  expertSystemURL: "",
19822
19822
  path: "",
19823
19823
  goal: "",
@@ -19828,7 +19828,7 @@ const ck = ({
19828
19828
  ...ri
19829
19829
  }, Po = ({
19830
19830
  message: e
19831
- }) => /* @__PURE__ */ r(V, { sx: ka, children: /* @__PURE__ */ r("div", { dangerouslySetInnerHTML: {
19831
+ }) => /* @__PURE__ */ r($, { sx: ka, 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, Vi), [t]), {
19859
+ } = K(e.instanceData, "config"), n = z(() => He({}, t, $i), [t]), {
19860
19860
  width: a,
19861
19861
  height: i
19862
19862
  } = e.viewport, o = e.data, {
@@ -19869,10 +19869,10 @@ function uk({
19869
19869
  }), {
19870
19870
  refreshDeps: [o, n]
19871
19871
  });
19872
- return !a || !i || !n ? null : c ? /* @__PURE__ */ r(V, { sx: {
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(V, { 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(V, { 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: 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: {
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, Vi), [t]), {
19885
+ } = K(e.instanceData, "config"), a = z(() => He({}, t, $i), [t]), {
19886
19886
  control: i,
19887
19887
  handleSubmit: o,
19888
19888
  watch: l,
@@ -19897,18 +19897,18 @@ function hk({
19897
19897
  /* @__PURE__ */ u(y, { grow: !0, children: [
19898
19898
  /* @__PURE__ */ r(f, { name: "expertSystemURL", control: i, render: ({
19899
19899
  field: d
19900
- }) => /* @__PURE__ */ r($, { label: "Expert System URL", ...d }) }),
19900
+ }) => /* @__PURE__ */ r(V, { label: "Expert System URL", ...d }) }),
19901
19901
  /* @__PURE__ */ r(f, { name: "path", control: i, render: ({
19902
19902
  field: d
19903
- }) => /* @__PURE__ */ r($, { label: "Path", required: !0, ...d }) })
19903
+ }) => /* @__PURE__ */ r(V, { label: "Path", required: !0, ...d }) })
19904
19904
  ] }),
19905
19905
  /* @__PURE__ */ u(y, { grow: !0, children: [
19906
19906
  /* @__PURE__ */ r(f, { name: "goal", control: i, render: ({
19907
19907
  field: d
19908
- }) => /* @__PURE__ */ r($, { label: "Goal", required: !0, ...d }) }),
19908
+ }) => /* @__PURE__ */ r(V, { label: "Goal", required: !0, ...d }) }),
19909
19909
  /* @__PURE__ */ r(f, { name: "question", control: i, render: ({
19910
19910
  field: d
19911
- }) => /* @__PURE__ */ r($, { label: "Question", required: !0, ...d }) })
19911
+ }) => /* @__PURE__ */ r(V, { label: "Question", required: !0, ...d }) })
19912
19912
  ] }),
19913
19913
  /* @__PURE__ */ r(A, { variant: "dashed", mt: 16, mb: 8 }),
19914
19914
  /* @__PURE__ */ r(L, { type: "submit", variant: "filled", color: "blue", leftSection: /* @__PURE__ */ r(fe, { size: 20 }), disabled: !s.isDirty, sx: {
@@ -19953,7 +19953,7 @@ const bk = {
19953
19953
  createConfig() {
19954
19954
  return {
19955
19955
  version: 1,
19956
- config: Ae(Vi)
19956
+ config: Ae($i)
19957
19957
  };
19958
19958
  },
19959
19959
  translation: gk
@@ -20208,7 +20208,7 @@ function Lk(e, t) {
20208
20208
  }))
20209
20209
  };
20210
20210
  }
20211
- function $k(e, t, n) {
20211
+ function Vk(e, t, n) {
20212
20212
  return e ? {
20213
20213
  type: "heatmap",
20214
20214
  name: "heatmap",
@@ -20223,7 +20223,7 @@ function $k(e, t, n) {
20223
20223
  data: i
20224
20224
  }));
20225
20225
  }
20226
- const Vk = (e) => ue(e, {
20226
+ const $k = (e) => ue(e, {
20227
20227
  output: "number",
20228
20228
  trimMantissa: !0,
20229
20229
  mantissa: 2,
@@ -20247,7 +20247,7 @@ function Pk({
20247
20247
  const g = j(p.data_key), b = i[p.name] ?? "";
20248
20248
  d.push({
20249
20249
  label: p.name,
20250
- value: Vk(C.get(h, g.columnKey, "")),
20250
+ value: $k(C.get(h, g.columnKey, "")),
20251
20251
  unit: b
20252
20252
  });
20253
20253
  }), d;
@@ -20335,7 +20335,7 @@ function Ok(e, t, n) {
20335
20335
  } = Ek(h), v = p <= 366;
20336
20336
  return {
20337
20337
  calendar: Ik(v, g, x),
20338
- series: $k(v, b, h),
20338
+ series: Vk(v, b, h),
20339
20339
  tooltip: Ak(e, t, s),
20340
20340
  visualMap: {
20341
20341
  ...i,
@@ -20452,7 +20452,7 @@ function Qk({
20452
20452
  }, ...a }) }),
20453
20453
  /* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
20454
20454
  field: a
20455
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
20455
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
20456
20456
  flex: 1
20457
20457
  }, ...a }) })
20458
20458
  ] }),
@@ -20476,7 +20476,7 @@ const Hk = ({
20476
20476
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
20477
20477
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
20478
20478
  field: a
20479
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
20479
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
20480
20480
  flex: 1
20481
20481
  }, ...a }) }),
20482
20482
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -21095,7 +21095,7 @@ function _2({
21095
21095
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
21096
21096
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.name`, control: e, render: ({
21097
21097
  field: s
21098
- }) => /* @__PURE__ */ r($, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
21098
+ }) => /* @__PURE__ */ r(V, { label: o("common.name"), placeholder: o("chart.reference_line.name_placeholder"), required: !0, sx: {
21099
21099
  flex: 1
21100
21100
  }, ...s }) }),
21101
21101
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.variable_key`, control: e, render: ({
@@ -21106,7 +21106,7 @@ function _2({
21106
21106
  ] }),
21107
21107
  /* @__PURE__ */ r(f, { name: `reference_lines.${t}.template`, control: e, render: ({
21108
21108
  field: s
21109
- }) => /* @__PURE__ */ r($, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
21109
+ }) => /* @__PURE__ */ r(V, { label: o("chart.content_template.label"), placeholder: o("chart.content_template.hint"), sx: {
21110
21110
  flex: 1
21111
21111
  }, ...s }) }),
21112
21112
  /* @__PURE__ */ u(y, { grow: !0, children: [
@@ -21189,7 +21189,7 @@ function v2({
21189
21189
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
21190
21190
  /* @__PURE__ */ r(f, { name: `series.${t}.stack`, control: e, render: ({
21191
21191
  field: s
21192
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
21192
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.stack"), placeholder: a("chart.series.bar.stack_hint"), sx: {
21193
21193
  flexGrow: 1
21194
21194
  }, ...s }) }),
21195
21195
  /* @__PURE__ */ r(f, { name: `series.${t}.barGap`, control: e, render: ({
@@ -21201,17 +21201,17 @@ function v2({
21201
21201
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
21202
21202
  /* @__PURE__ */ r(f, { name: `series.${t}.barMinWidth`, control: e, render: ({
21203
21203
  field: s
21204
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
21204
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.min"), disabled: o, sx: {
21205
21205
  flexGrow: 1
21206
21206
  }, ...s }) }),
21207
21207
  /* @__PURE__ */ r(f, { name: `series.${t}.barWidth`, control: e, render: ({
21208
21208
  field: s
21209
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.exact"), sx: {
21209
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.exact"), sx: {
21210
21210
  flexGrow: 1
21211
21211
  }, ...s }) }),
21212
21212
  /* @__PURE__ */ r(f, { name: `series.${t}.barMaxWidth`, control: e, render: ({
21213
21213
  field: s
21214
- }) => /* @__PURE__ */ r($, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
21214
+ }) => /* @__PURE__ */ r(V, { label: a("chart.series.bar.bar_width.max"), disabled: o, sx: {
21215
21215
  flexGrow: 1
21216
21216
  }, ...s }) })
21217
21217
  ] })
@@ -21232,7 +21232,7 @@ function w2({
21232
21232
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
21233
21233
  /* @__PURE__ */ r(f, { name: `series.${t}.name`, control: e, render: ({
21234
21234
  field: o
21235
- }) => /* @__PURE__ */ r($, { label: i("common.name"), required: !0, sx: {
21235
+ }) => /* @__PURE__ */ r(V, { label: i("common.name"), required: !0, sx: {
21236
21236
  flex: 1
21237
21237
  }, ...o }) }),
21238
21238
  /* @__PURE__ */ r(f, { name: `series.${t}.xAxisIndex`, control: e, render: ({
@@ -21329,7 +21329,7 @@ function k2({
21329
21329
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
21330
21330
  /* @__PURE__ */ r(f, { name: `x_axes.${t}.name`, control: e, render: ({
21331
21331
  field: a
21332
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
21332
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
21333
21333
  flex: 1
21334
21334
  }, ...a }) }),
21335
21335
  /* @__PURE__ */ r(f, { name: `x_axes.${t}.position`, control: e, render: ({
@@ -21349,10 +21349,10 @@ function k2({
21349
21349
  /* @__PURE__ */ u(y, { grow: !0, children: [
21350
21350
  /* @__PURE__ */ r(f, { name: `x_axes.${t}.min`, control: e, render: ({
21351
21351
  field: a
21352
- }) => /* @__PURE__ */ r($, { label: n("chart.x_axis.value_min"), ...a }) }),
21352
+ }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_min"), ...a }) }),
21353
21353
  /* @__PURE__ */ r(f, { name: `x_axes.${t}.max`, control: e, render: ({
21354
21354
  field: a
21355
- }) => /* @__PURE__ */ r($, { label: n("chart.x_axis.value_max"), ...a }) })
21355
+ }) => /* @__PURE__ */ r(V, { label: n("chart.x_axis.value_max"), ...a }) })
21356
21356
  ] })
21357
21357
  ] }),
21358
21358
  /* @__PURE__ */ r(A, { mb: -10, mt: 10, variant: "dashed", label: n("chart.x_axis.behavior"), labelPosition: "center" }),
@@ -21387,7 +21387,7 @@ function T2({
21387
21387
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
21388
21388
  /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
21389
21389
  field: a
21390
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
21390
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
21391
21391
  flex: 1
21392
21392
  }, ...a }) }),
21393
21393
  /* @__PURE__ */ r(f, { name: "y_axis.data_key", control: e, render: ({
@@ -21475,11 +21475,11 @@ const I2 = {
21475
21475
  }, {
21476
21476
  lang: "zh",
21477
21477
  resources: M2
21478
- }], $2 = {
21478
+ }], V2 = {
21479
21479
  id: "builtin:echarts:click-echart:series",
21480
21480
  displayName: "viz.cartesian_chart.click_series.label",
21481
21481
  nameRender: P2,
21482
- configRender: V2,
21482
+ configRender: $2,
21483
21483
  payload: [{
21484
21484
  name: "seriesType",
21485
21485
  description: "'line' | 'scatter' | 'bar'",
@@ -21506,7 +21506,7 @@ const I2 = {
21506
21506
  valueType: "object"
21507
21507
  }]
21508
21508
  };
21509
- function V2(e) {
21509
+ function $2(e) {
21510
21510
  return /* @__PURE__ */ r(q, {});
21511
21511
  }
21512
21512
  function P2(e) {
@@ -21599,7 +21599,7 @@ const O2 = {
21599
21599
  version: 3,
21600
21600
  config: C.cloneDeep(Ai)
21601
21601
  }),
21602
- triggers: [$2],
21602
+ triggers: [V2],
21603
21603
  translation: L2
21604
21604
  }, Ri = {
21605
21605
  x_axis: {
@@ -22295,7 +22295,7 @@ function s3({
22295
22295
  }, [h]), !s.data_key || !d || !h || !o || !l)
22296
22296
  return null;
22297
22297
  const b = Math.max(Tt(o), 300), x = Math.max(Dt(l), 370);
22298
- return /* @__PURE__ */ u(V, { pt: et.top, pr: et.right, pb: et.bottom, pl: et.left, sx: {
22298
+ return /* @__PURE__ */ u($, { pt: et.top, pr: et.right, pb: et.bottom, pl: et.left, sx: {
22299
22299
  overflow: "hidden",
22300
22300
  height: l,
22301
22301
  width: o
@@ -22311,7 +22311,7 @@ function c3({
22311
22311
  return t(["deviation"]), /* @__PURE__ */ u(T, { children: [
22312
22312
  /* @__PURE__ */ r(y, { grow: !0, wrap: "nowrap", children: /* @__PURE__ */ r(f, { name: "deviation.name", control: e, render: ({
22313
22313
  field: n
22314
- }) => /* @__PURE__ */ r($, { label: "指标名称", sx: {
22314
+ }) => /* @__PURE__ */ r(V, { label: "指标名称", sx: {
22315
22315
  flex: 1
22316
22316
  }, ...n }) }) }),
22317
22317
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
@@ -22338,7 +22338,7 @@ const d3 = ({
22338
22338
  return /* @__PURE__ */ r(T, { children: /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
22339
22339
  /* @__PURE__ */ r(f, { name: `metrics.${t}.name`, control: e, render: ({
22340
22340
  field: a
22341
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
22341
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
22342
22342
  flex: 1
22343
22343
  }, ...a }) }),
22344
22344
  /* @__PURE__ */ r(f, { name: `metrics.${t}.data_key`, control: e, render: ({
@@ -22390,7 +22390,7 @@ function h3({
22390
22390
  }, ...n }) }),
22391
22391
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
22392
22392
  field: n
22393
- }) => /* @__PURE__ */ r($, { label: "X轴名称", sx: {
22393
+ }) => /* @__PURE__ */ r(V, { label: "X轴名称", sx: {
22394
22394
  flex: 1
22395
22395
  }, ...n }) })
22396
22396
  ] }),
@@ -22666,7 +22666,7 @@ const Eo = ({
22666
22666
  }], [i.language]);
22667
22667
  return /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
22668
22668
  /* @__PURE__ */ r(F, { label: a("viz.merico_stats.metric.postfix_type.label"), data: d, value: e.type, onChange: s }),
22669
- e.type === "text" && /* @__PURE__ */ r($, { label: a("viz.merico_stats.metric.postfix_content"), value: e.value, onChange: (h) => {
22669
+ e.type === "text" && /* @__PURE__ */ r(V, { label: a("viz.merico_stats.metric.postfix_content"), value: e.value, onChange: (h) => {
22670
22670
  c(h.currentTarget.value);
22671
22671
  } }),
22672
22672
  e.type === "filter-option-label" && /* @__PURE__ */ r(F, { label: a("viz.merico_stats.metric.postfix_filter"), value: e.value, onChange: c, data: l })
@@ -22688,7 +22688,7 @@ function k3({
22688
22688
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
22689
22689
  /* @__PURE__ */ r(f, { name: `metrics.${t}.names.value`, control: e, render: ({
22690
22690
  field: o
22691
- }) => /* @__PURE__ */ r($, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
22691
+ }) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.metric_name"), required: !0, sx: {
22692
22692
  flex: 1
22693
22693
  }, ...o }) }),
22694
22694
  /* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.value`, control: e, render: ({
@@ -22700,7 +22700,7 @@ function k3({
22700
22700
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
22701
22701
  /* @__PURE__ */ r(f, { name: `metrics.${t}.names.basis`, control: e, render: ({
22702
22702
  field: o
22703
- }) => /* @__PURE__ */ r($, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
22703
+ }) => /* @__PURE__ */ r(V, { label: i("viz.merico_stats.metric.basis_name"), required: !0, sx: {
22704
22704
  flex: 1
22705
22705
  }, ...o }) }),
22706
22706
  /* @__PURE__ */ r(f, { name: `metrics.${t}.data_keys.basis`, control: e, render: ({
@@ -22853,14 +22853,14 @@ const M3 = {
22853
22853
  postfix_filter: "筛选器"
22854
22854
  }
22855
22855
  }
22856
- }, $3 = [{
22856
+ }, V3 = [{
22857
22857
  lang: "en",
22858
22858
  resources: M3
22859
22859
  }, {
22860
22860
  lang: "zh",
22861
22861
  resources: L3
22862
22862
  }];
22863
- class V3 extends Se {
22863
+ class $3 extends Se {
22864
22864
  constructor() {
22865
22865
  super(...arguments);
22866
22866
  B(this, "VERSION", 2);
@@ -22880,7 +22880,7 @@ class V3 extends Se {
22880
22880
  const P3 = {
22881
22881
  displayName: "viz.merico_stats.viz_name",
22882
22882
  displayGroup: "chart.groups.merico_suite",
22883
- migrator: new V3(),
22883
+ migrator: new $3(),
22884
22884
  name: "merico-stats",
22885
22885
  viewRender: S3,
22886
22886
  configRender: D3,
@@ -22888,7 +22888,7 @@ const P3 = {
22888
22888
  version: 2,
22889
22889
  config: Ei
22890
22890
  }),
22891
- translation: $3
22891
+ translation: V3
22892
22892
  }, Oi = {
22893
22893
  x_axis: {
22894
22894
  name: "",
@@ -22942,7 +22942,7 @@ function A3({
22942
22942
  }, ...i }) }),
22943
22943
  /* @__PURE__ */ r(f, { name: "heat_block.name", control: e, render: ({
22944
22944
  field: i
22945
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
22945
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
22946
22946
  flex: 1
22947
22947
  }, ...i }) })
22948
22948
  ] }),
@@ -22957,7 +22957,7 @@ function A3({
22957
22957
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
22958
22958
  /* @__PURE__ */ r(f, { name: "heat_block.label.show", control: e, render: ({
22959
22959
  field: i
22960
- }) => /* @__PURE__ */ r(ke, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
22960
+ }) => /* @__PURE__ */ r(Ce, { label: n("chart.heatmap.heatblock.show_label"), checked: i.value, onChange: (o) => i.onChange(o.currentTarget.checked), sx: {
22961
22961
  flexGrow: 1
22962
22962
  } }) }),
22963
22963
  /* @__PURE__ */ r(f, { name: "heat_block.label.fontSize", control: e, render: ({
@@ -22977,7 +22977,7 @@ const R3 = ({
22977
22977
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
22978
22978
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.name`, control: e, render: ({
22979
22979
  field: a
22980
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
22980
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
22981
22981
  flex: 1
22982
22982
  }, ...a }) }),
22983
22983
  /* @__PURE__ */ r(f, { name: `tooltip.metrics.${t}.data_key`, control: e, render: ({
@@ -23042,7 +23042,7 @@ function F3({
23042
23042
  }, ...a }) }),
23043
23043
  /* @__PURE__ */ r(f, { name: "x_axis.name", control: e, render: ({
23044
23044
  field: a
23045
- }) => /* @__PURE__ */ r($, { label: n("common.name"), sx: {
23045
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), sx: {
23046
23046
  flex: 1
23047
23047
  }, ...a }) })
23048
23048
  ] }),
@@ -23080,7 +23080,7 @@ function q3({
23080
23080
  }, ...a }) }),
23081
23081
  /* @__PURE__ */ r(f, { name: "y_axis.name", control: e, render: ({
23082
23082
  field: a
23083
- }) => /* @__PURE__ */ r($, { label: n("common.name"), required: !0, sx: {
23083
+ }) => /* @__PURE__ */ r(V, { label: n("common.name"), required: !0, sx: {
23084
23084
  flex: 1
23085
23085
  }, ...a }) })
23086
23086
  ] }),
@@ -23854,7 +23854,7 @@ const cz = {
23854
23854
  clearable: !0
23855
23855
  }
23856
23856
  );
23857
- }), $z = ({
23857
+ }), Vz = ({
23858
23858
  form: e
23859
23859
  }) => {
23860
23860
  const {
@@ -23869,7 +23869,7 @@ const cz = {
23869
23869
  }) => /* @__PURE__ */ r(Lz, { disabled: n, ...a }) })
23870
23870
  ] });
23871
23871
  };
23872
- function Vz({
23872
+ function $z({
23873
23873
  context: e
23874
23874
  }) {
23875
23875
  const {
@@ -23886,7 +23886,7 @@ function Vz({
23886
23886
  s(a);
23887
23887
  }, [a]), /* @__PURE__ */ u("form", { onSubmit: o(n), children: [
23888
23888
  /* @__PURE__ */ r(Ie, { canSubmit: l.isDirty }),
23889
- /* @__PURE__ */ r($z, { form: i })
23889
+ /* @__PURE__ */ r(Vz, { form: i })
23890
23890
  ] });
23891
23891
  }
23892
23892
  const Pz = {
@@ -23932,7 +23932,7 @@ const Oz = {
23932
23932
  migrator: new Ez(),
23933
23933
  name: "vizDashboardState",
23934
23934
  viewRender: Dz,
23935
- configRender: Vz,
23935
+ configRender: $z,
23936
23936
  createConfig: () => ({
23937
23937
  version: 1,
23938
23938
  config: Hc
@@ -23985,7 +23985,7 @@ 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, VS, 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], 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] = {
23989
23989
  displayName: t.displayName,
23990
23990
  displayGroup: t.displayGroup
23991
23991
  }, e), {}), Wc = () => ({
@@ -23996,17 +23996,17 @@ const Oz = {
23996
23996
  color: [...Fz, ...qz]
23997
23997
  }
23998
23998
  }), Ln = new Am(), ve = {
23999
- pluginManager: $t("pluginManager"),
24000
- vizManager: $t("vizManager"),
24001
- colorManager: $t("colorManager"),
24002
- panelAddonManager: $t("panelAddonManager"),
23999
+ pluginManager: Vt("pluginManager"),
24000
+ vizManager: Vt("vizManager"),
24001
+ colorManager: Vt("colorManager"),
24002
+ panelAddonManager: Vt("panelAddonManager"),
24003
24003
  instanceScope: {
24004
- panelModel: $t("panelModel"),
24005
- vizInstance: $t("vizInstance"),
24006
- interactionManager: $t("interactionManager"),
24007
- migrator: $t("migrator"),
24008
- operationManager: $t("operationManager"),
24009
- triggerManager: $t("triggerManager")
24004
+ panelModel: Vt("panelModel"),
24005
+ vizInstance: Vt("vizInstance"),
24006
+ interactionManager: Vt("interactionManager"),
24007
+ migrator: Vt("migrator"),
24008
+ operationManager: Vt("operationManager"),
24009
+ triggerManager: Vt("triggerManager")
24010
24010
  }
24011
24011
  }, qi = () => {
24012
24012
  try {
@@ -24063,13 +24063,13 @@ O.extend(Tp);
24063
24063
  O.extend(Dp);
24064
24064
  O.extend(Ip);
24065
24065
  O.extend(Mp);
24066
- O.extend(Vp);
24066
+ O.extend($p);
24067
24067
  O.extend(Pp);
24068
24068
  O.extend(Ap);
24069
24069
  O.extend(Rp);
24070
24070
  O.extend(Ep);
24071
24071
  O.extend(Lp);
24072
- O.extend($p);
24072
+ O.extend(Vp);
24073
24073
  O.extend(Op);
24074
24074
  O.extend(Fp);
24075
24075
  O.extend(qp);
@@ -24250,11 +24250,11 @@ class Hz {
24250
24250
  return this.getRequest("PUT", t);
24251
24251
  }
24252
24252
  }
24253
- const $n = new Qz();
24253
+ const Vn = new Qz();
24254
24254
  function Kc(e) {
24255
- $n.baseURL !== e.apiBaseURL && ($n.baseURL = e.apiBaseURL), e.app_id && ($n.app_id = e.app_id), e.app_secret && ($n.app_secret = e.app_secret), e.makeQueryENV && ($n.makeQueryENV = e.makeQueryENV);
24255
+ Vn.baseURL !== e.apiBaseURL && (Vn.baseURL = e.apiBaseURL), e.app_id && (Vn.app_id = e.app_id), e.app_secret && (Vn.app_secret = e.app_secret), e.makeQueryENV && (Vn.makeQueryENV = e.makeQueryENV);
24256
24256
  }
24257
- const Gz = new Hz($n), pt = Gz, Yc = m.model("MockContextMeta", {
24257
+ const Gz = new Hz(Vn), pt = Gz, Yc = m.model("MockContextMeta", {
24258
24258
  current: m.optional(m.frozen(), {})
24259
24259
  }).views((e) => ({
24260
24260
  get keys() {
@@ -24480,7 +24480,7 @@ const Zc = m.model("DBQueryMeta", {
24480
24480
  sql: m.string
24481
24481
  }).views((e) => ({
24482
24482
  get base() {
24483
- return Ce(e);
24483
+ return ke(e);
24484
24484
  },
24485
24485
  get valid() {
24486
24486
  return !!e.sql;
@@ -24575,7 +24575,7 @@ const Zc = m.model("DBQueryMeta", {
24575
24575
  }
24576
24576
  })).actions((e) => ({
24577
24577
  removeSelf() {
24578
- Ce(e, 2).removeFilter(e);
24578
+ ke(e, 2).removeFilter(e);
24579
24579
  },
24580
24580
  setDimension(t) {
24581
24581
  e.dimension = t ?? "", e.allEmpty && this.removeSelf();
@@ -24595,10 +24595,11 @@ const Zc = m.model("DBQueryMeta", {
24595
24595
  unit_variable: m.optional(m.string, ""),
24596
24596
  timezone: m.optional(m.string, "PRC"),
24597
24597
  stepKeyFormat: m.optional(m.string, "YYYY-MM-DD")
24598
- })
24598
+ }),
24599
+ useDefaultValues: m.optional(m.boolean, !1)
24599
24600
  }).views((e) => ({
24600
24601
  get query() {
24601
- return Ce(e);
24602
+ return ke(e);
24602
24603
  },
24603
24604
  get valid() {
24604
24605
  return !!e.id;
@@ -24610,15 +24611,17 @@ const Zc = m.model("DBQueryMeta", {
24610
24611
  filters: a,
24611
24612
  groupBys: i,
24612
24613
  timeQuery: o,
24613
- _type: l
24614
+ useDefaultValues: l,
24615
+ _type: s
24614
24616
  } = e;
24615
24617
  return Zt({
24616
24618
  id: t,
24617
24619
  type: n,
24618
- filters: a.map((s) => s.json),
24620
+ filters: a.map((c) => c.json),
24619
24621
  groupBys: i,
24620
24622
  timeQuery: o,
24621
- _type: l
24623
+ useDefaultValues: l,
24624
+ _type: s
24622
24625
  });
24623
24626
  },
24624
24627
  get usedFilterDimensionKeys() {
@@ -24639,7 +24642,7 @@ const Zc = m.model("DBQueryMeta", {
24639
24642
  }
24640
24643
  })).actions((e) => ({
24641
24644
  reset() {
24642
- e.filters.length = 0, e.groupBys.length = 0, e.timeQuery.enabled = !1, e.timeQuery.range_variable = "", e.timeQuery.unit_variable = "", "data" in e.query && (e.query.setData([]), e.query.setError(null));
24645
+ e.filters.length = 0, e.groupBys.length = 0, e.timeQuery.enabled = !1, e.timeQuery.range_variable = "", e.timeQuery.unit_variable = "", e.useDefaultValues = !1, "data" in e.query && (e.query.setData([]), e.query.setError(null));
24643
24646
  },
24644
24647
  setID(t) {
24645
24648
  t !== e.id && this.reset(), e.id = t;
@@ -24667,6 +24670,9 @@ const Zc = m.model("DBQueryMeta", {
24667
24670
  },
24668
24671
  setTimeQueryEnabled(t) {
24669
24672
  e.timeQuery.enabled = t, t ? e.groupBys.length > 1 && (e.groupBys.length = 0) : (e.timeQuery.range_variable = "", e.timeQuery.unit_variable = "");
24673
+ },
24674
+ setUseDefaultValues(t) {
24675
+ e.useDefaultValues = t;
24670
24676
  }
24671
24677
  })), n5 = () => td.create({
24672
24678
  _type: ie.MericoMetricSystem,
@@ -24679,7 +24685,8 @@ const Zc = m.model("DBQueryMeta", {
24679
24685
  unit_variable: "",
24680
24686
  timezone: "PRC",
24681
24687
  stepKeyFormat: "YYYY-MM-DD"
24682
- }
24688
+ },
24689
+ useDefaultValues: !1
24683
24690
  }), r5 = m.model("QueryMeta", {
24684
24691
  id: m.string,
24685
24692
  name: m.string,
@@ -25301,7 +25308,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25301
25308
  }
25302
25309
  },
25303
25310
  get filter() {
25304
- return Ce(e);
25311
+ return ke(e);
25305
25312
  },
25306
25313
  get dateStringsValue() {
25307
25314
  try {
@@ -25391,7 +25398,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25391
25398
  return Le(e).content;
25392
25399
  },
25393
25400
  get filter() {
25394
- return Ce(e);
25401
+ return ke(e);
25395
25402
  },
25396
25403
  get usingQuery() {
25397
25404
  return !!e.options_query_id;
@@ -25717,7 +25724,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
25717
25724
  /* @__PURE__ */ r(Z, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.select.required") }),
25718
25725
  /* @__PURE__ */ r(Dn, { filter: t })
25719
25726
  ] }),
25720
- /* @__PURE__ */ r($, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
25727
+ /* @__PURE__ */ r(V, { label: n("filter.widget.common.min_width"), value: a.min_width, onChange: (i) => a.setMinWidth(i.currentTarget.value), placeholder: "200px" }),
25721
25728
  /* @__PURE__ */ r(A, { label: n("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
25722
25729
  /* @__PURE__ */ r(Z, { checked: a.treeCheckStrictly, onChange: (i) => a.setTreeCheckStrictly(i.currentTarget.checked), label: n("filter.widget.tree_select.strictly") }),
25723
25730
  /* @__PURE__ */ r(na, { value: a.options_query_id, onChange: a.setOptionsQueryID }),
@@ -26158,7 +26165,7 @@ const c5 = m.model("FilterDateRangeConfigMeta", {
26158
26165
  /* @__PURE__ */ r(Z, { checked: n.required, onChange: (a) => n.setRequired(a.currentTarget.checked), label: t("filter.widget.select.required") }),
26159
26166
  /* @__PURE__ */ r(Dn, { filter: e })
26160
26167
  ] }),
26161
- /* @__PURE__ */ r($, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
26168
+ /* @__PURE__ */ r(V, { label: t("filter.widget.common.min_width"), value: n.min_width, onChange: (a) => n.setMinWidth(a.currentTarget.value), placeholder: "200px" }),
26162
26169
  /* @__PURE__ */ r(A, { label: t("filter.widget.common.fetch_options_from_datasource"), labelPosition: "center" }),
26163
26170
  /* @__PURE__ */ r(na, { value: n.options_query_id, onChange: n.setOptionsQueryID }),
26164
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") }),
@@ -26701,7 +26708,7 @@ const fd = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
26701
26708
  delay: 0
26702
26709
  }));
26703
26710
  }
26704
- })), $5 = () => yd.create({
26711
+ })), V5 = () => yd.create({
26705
26712
  _name: "tree-single-select",
26706
26713
  default_value: "",
26707
26714
  static_options: [],
@@ -26804,7 +26811,7 @@ const fd = m.compose("FilterConfigModel_BaseTreeSelect", m.model({
26804
26811
  e.config = L5();
26805
26812
  break;
26806
26813
  case H.TreeSingleSelect:
26807
- e.config = $5();
26814
+ e.config = V5();
26808
26815
  break;
26809
26816
  case H.TextInput:
26810
26817
  e.config = ud();
@@ -26842,7 +26849,7 @@ const _d = m.model("ViewDivisionConfig", {
26842
26849
  _name: t
26843
26850
  };
26844
26851
  }
26845
- })), V5 = () => _d.create({
26852
+ })), $5 = () => _d.create({
26846
26853
  _name: G.Division
26847
26854
  }), P5 = m.model("CustomModalTitleModel", {
26848
26855
  enabled: m.optional(m.boolean, !1),
@@ -26862,7 +26869,7 @@ const _d = m.model("ViewDivisionConfig", {
26862
26869
  const {
26863
26870
  enabled: t,
26864
26871
  func_content: n
26865
- } = e, a = Ce(e, 2), i = Le(e);
26872
+ } = e, a = ke(e, 2), i = Le(e);
26866
26873
  if (!t)
26867
26874
  return a.name;
26868
26875
  try {
@@ -27042,7 +27049,7 @@ const _d = m.model("ViewDivisionConfig", {
27042
27049
  if (e.type !== t) {
27043
27050
  switch (t) {
27044
27051
  case G.Division:
27045
- e.config = V5();
27052
+ e.config = $5();
27046
27053
  break;
27047
27054
  case G.Modal:
27048
27055
  e.config = A5();
@@ -27180,7 +27187,7 @@ const kd = m.compose("ViewRenderModel", O5, m.model({
27180
27187
  return this.tabView ? this.tabView.view_id ?? "" : "";
27181
27188
  },
27182
27189
  get contentModel() {
27183
- return Ce(e, 3);
27190
+ return ke(e, 3);
27184
27191
  },
27185
27192
  get panels() {
27186
27193
  if (e.type !== G.Tabs)
@@ -27498,12 +27505,12 @@ function Q5(e, t) {
27498
27505
  return console.error(a), Ld(e);
27499
27506
  }
27500
27507
  }
27501
- function $d(e, t) {
27508
+ function Vd(e, t) {
27502
27509
  var n;
27503
27510
  return (n = e.default_value_func) != null && n.trim() ? Q5(e, t) : Ld(e);
27504
27511
  }
27505
- function Vd(e, t) {
27506
- return e.reduce((n, a) => (n[a.key] = $d(a, t), n), {});
27512
+ function $d(e, t) {
27513
+ return e.reduce((n, a) => (n[a.key] = Vd(a, t), n), {});
27507
27514
  }
27508
27515
  function Pd(e, t) {
27509
27516
  const n = {};
@@ -27526,7 +27533,7 @@ const Ad = m.model("FiltersRenderModel", {
27526
27533
  return JSON.stringify(e.values);
27527
27534
  },
27528
27535
  get filter() {
27529
- return Ce(e);
27536
+ return ke(e);
27530
27537
  },
27531
27538
  get keysToTypes() {
27532
27539
  return e.current.reduce((t, n) => (t[n.key] = n.type, t), {});
@@ -27570,7 +27577,7 @@ const Ad = m.model("FiltersRenderModel", {
27570
27577
  });
27571
27578
  },
27572
27579
  get formattedDefaultValues() {
27573
- return Vd(this.json, this.contentModel.context);
27580
+ return $d(this.json, this.contentModel.context);
27574
27581
  },
27575
27582
  get firstID() {
27576
27583
  if (e.current.length !== 0)
@@ -27653,7 +27660,7 @@ function Rd(e, t, n, a) {
27653
27660
  const i = {
27654
27661
  ...n,
27655
27662
  ...t
27656
- }, o = Vd(e, i), l = Pd(a, o);
27663
+ }, o = $d(e, i), l = Pd(a, o);
27657
27664
  return {
27658
27665
  current: e,
27659
27666
  values: l
@@ -27895,7 +27902,7 @@ const K5 = r5.views((e) => ({
27895
27902
  };
27896
27903
  },
27897
27904
  get queries() {
27898
- return Ce(e, 2);
27905
+ return ke(e, 2);
27899
27906
  },
27900
27907
  get inUse() {
27901
27908
  return this.queries.isQueryInUse(e.id);
@@ -27906,7 +27913,7 @@ const K5 = r5.views((e) => ({
27906
27913
  const t = C.get(e, "config.sql", "");
27907
27914
  if (!t)
27908
27915
  return [];
27909
- const n = C.uniq(t.match(Vn.sqlSnippet)), a = C.uniq(t.match(Vn.filter)), i = C.uniq(t.match(Vn.context)), o = [];
27916
+ const n = C.uniq(t.match($n.sqlSnippet)), a = C.uniq(t.match($n.filter)), i = C.uniq(t.match($n.context)), o = [];
27910
27917
  return n.forEach((l) => {
27911
27918
  o.push({
27912
27919
  type: "sql_snippet",
@@ -27934,7 +27941,7 @@ const K5 = r5.views((e) => ({
27934
27941
  if (e.run_by.forEach((l) => n(l)), C.get(e.config, "react_to", []).forEach((l) => n(l)), !this.typedAsSQL)
27935
27942
  return t;
27936
27943
  const i = C.get(e, "config.sql", "");
27937
- return i && C.uniq(i.match(Vn.filter)).forEach((l) => n(l)), t;
27944
+ return i && C.uniq(i.match($n.filter)).forEach((l) => n(l)), t;
27938
27945
  },
27939
27946
  get metricQueryPayload() {
27940
27947
  if (e.type !== ie.MericoMetricSystem)
@@ -27961,7 +27968,7 @@ const K5 = r5.views((e) => ({
27961
27968
  filters: i,
27962
27969
  groupBys: a.groupBys
27963
27970
  };
27964
- if (!a.timeQuery.enabled)
27971
+ if (a.useDefaultValues && (o.useDefaultValues = !0), !a.timeQuery.enabled)
27965
27972
  return o;
27966
27973
  const {
27967
27974
  range_variable: l,
@@ -28067,7 +28074,7 @@ const K5 = r5.views((e) => ({
28067
28074
  e.controller = new AbortController(), e.state = "loading";
28068
28075
  try {
28069
28076
  const n = e.payload, a = e.config;
28070
- e.data = yield* Vt(G5({
28077
+ e.data = yield* $t(G5({
28071
28078
  payload: n,
28072
28079
  name: e.name,
28073
28080
  query: {
@@ -28102,7 +28109,7 @@ const K5 = r5.views((e) => ({
28102
28109
  } = e.json;
28103
28110
  let o = JSON.parse(e.httpConfigString);
28104
28111
  o = xr(e.datasource, o);
28105
- const l = yield* Vt(W5({
28112
+ const l = yield* $t(W5({
28106
28113
  type: n,
28107
28114
  key: a,
28108
28115
  configString: JSON.stringify(o),
@@ -28137,7 +28144,7 @@ const K5 = r5.views((e) => ({
28137
28144
  data: e.metricQueryPayload
28138
28145
  };
28139
28146
  o = xr(e.datasource, o);
28140
- const l = yield* Vt(U5({
28147
+ const l = yield* $t(U5({
28141
28148
  key: a,
28142
28149
  configString: JSON.stringify(o),
28143
28150
  name: e.name,
@@ -28220,7 +28227,7 @@ const K5 = r5.views((e) => ({
28220
28227
  return this.root.name;
28221
28228
  },
28222
28229
  get contentModel() {
28223
- return Ce(e, 1);
28230
+ return ke(e, 1);
28224
28231
  },
28225
28232
  get visibleQueryIDSet() {
28226
28233
  const {
@@ -28465,7 +28472,7 @@ const qd = m.model("LayoutsRenderModel", {
28465
28472
  }
28466
28473
  })), X5 = o5.views((e) => ({
28467
28474
  isADuplicatedKey(t) {
28468
- return !t || t === e.key ? !1 : !!Ce(e, 2).findByKey(t);
28475
+ return !t || t === e.key ? !1 : !!ke(e, 2).findByKey(t);
28469
28476
  }
28470
28477
  })), Nd = m.model("SQLSnippetsRenderModel", {
28471
28478
  current: m.optional(m.array(X5), [])
@@ -28555,7 +28562,7 @@ const eT = (e) => new J5(e), tT = ({
28555
28562
  border: "0.0625rem solid rgb(233, 236, 239)",
28556
28563
  boxShadow: "rgb(0 0 0 / 5%) 0px 0.0625rem 0.1875rem, rgb(0 0 0 / 5%) 0px 1.25rem 1.5625rem -0.3125rem, rgb(0 0 0 / 4%) 0px 0.625rem 0.625rem -0.3125rem"
28557
28564
  }
28558
- }, withArrow: !0, children: /* @__PURE__ */ r(V, { sx: {
28565
+ }, withArrow: !0, children: /* @__PURE__ */ r($, { sx: {
28559
28566
  height: "16px",
28560
28567
  alignSelf: "center"
28561
28568
  }, children: /* @__PURE__ */ r(Re, { size: 16, color: "gray" }) }) }), nT = D(({
@@ -28568,10 +28575,10 @@ const eT = (e) => new J5(e), tT = ({
28568
28575
  },
28569
28576
  value: o,
28570
28577
  onChange: l
28571
- }) => /* @__PURE__ */ u(V, { children: [
28578
+ }) => /* @__PURE__ */ u($, { children: [
28572
28579
  /* @__PURE__ */ r(k, { size: "sm", children: " " }),
28573
28580
  /* @__PURE__ */ r(Z, { label: /* @__PURE__ */ u(y, { wrap: "nowrap", justify: "space-between", align: "middle", gap: 6, children: [
28574
- /* @__PURE__ */ r(V, { sx: {
28581
+ /* @__PURE__ */ r($, { sx: {
28575
28582
  flexGrow: 1
28576
28583
  }, children: e }),
28577
28584
  /* @__PURE__ */ r(tT, { description: n, isDescriptionEmpty: a })
@@ -28696,7 +28703,7 @@ const eT = (e) => new J5(e), tT = ({
28696
28703
  /* @__PURE__ */ u(y, { justify: "flex-start", grow: !0, wrap: "nowrap", gap: 0, w: "288px", sx: {
28697
28704
  marginTop: "3px"
28698
28705
  }, children: [
28699
- /* @__PURE__ */ r(mt.Target, { children: /* @__PURE__ */ r($, { label: e, labelProps: {
28706
+ /* @__PURE__ */ r(mt.Target, { children: /* @__PURE__ */ r(V, { label: e, labelProps: {
28700
28707
  title: e
28701
28708
  }, required: t, leftSection: /* @__PURE__ */ r(Ch, { size: 16 }), placeholder: c("filter.widget.date_range.start_date"), readOnly: !0, disabled: s, value: x, onFocus: h, styles: jo(d), sx: {
28702
28709
  ".mantine-TextInput-label": {
@@ -28721,7 +28728,7 @@ const eT = (e) => new J5(e), tT = ({
28721
28728
  opacity: 0.6
28722
28729
  }
28723
28730
  } }) }),
28724
- /* @__PURE__ */ r($, { label: /* @__PURE__ */ r(y, { justify: "flex-end", children: /* @__PURE__ */ r(aT, { begin: g, end: b }) }), leftSection: /* @__PURE__ */ r(kh, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !g || s, value: v, onFocus: h, styles: jo(d), sx: {
28731
+ /* @__PURE__ */ r(V, { label: /* @__PURE__ */ r(y, { justify: "flex-end", children: /* @__PURE__ */ r(aT, { begin: g, end: b }) }), leftSection: /* @__PURE__ */ r(kh, { size: 16 }), placeholder: c("filter.widget.date_range.end_date"), readOnly: !0, disabled: !g || s, value: v, onFocus: h, styles: jo(d), sx: {
28725
28732
  ".mantine-Input-section": {
28726
28733
  transform: "translateX(-18px)"
28727
28734
  },
@@ -28985,11 +28992,11 @@ const eT = (e) => new J5(e), tT = ({
28985
28992
  }, v = g && (i == null ? void 0 : i.length) > 0, [I, M] = Q(""), P = z(() => {
28986
28993
  if (!I)
28987
28994
  return l;
28988
- const J = I.toLowerCase(), Ve = (Xe) => {
28995
+ const J = I.toLowerCase(), $e = (Xe) => {
28989
28996
  var Gt;
28990
28997
  return ((Gt = Xe.description) == null ? void 0 : Gt.toLowerCase().includes(J)) || Xe.label.toLowerCase().includes(J);
28991
28998
  };
28992
- return l.filter(Ve);
28999
+ return l.filter($e);
28993
29000
  }, [I, l]), E = z(() => new Set(l.map((J) => J.value)), [l]), Y = z(() => new Set(i), [i]), U = z(() => Y.size !== E.size ? !1 : Array.from(E).every((J) => Y.has(J)), [Y, E]), de = () => {
28994
29001
  if (U) {
28995
29002
  o([]);
@@ -29101,7 +29108,7 @@ function gT({
29101
29108
  value: n,
29102
29109
  onChange: a
29103
29110
  }) {
29104
- return /* @__PURE__ */ r($, { label: e, value: n || "", onChange: (i) => a(i.currentTarget.value), ...t, styles: {
29111
+ return /* @__PURE__ */ r(V, { label: e, value: n || "", onChange: (i) => a(i.currentTarget.value), ...t, styles: {
29105
29112
  input: {
29106
29113
  borderColor: "#e9ecef"
29107
29114
  }
@@ -29277,7 +29284,7 @@ const CT = ({
29277
29284
  t
29278
29285
  } = _(), n = he(), {
29279
29286
  panel: a
29280
- } = $e(), i = a.realQueryOptions, o = (s) => {
29287
+ } = Ve(), i = a.realQueryOptions, o = (s) => {
29281
29288
  n.editor.open(["_QUERIES_", s]);
29282
29289
  }, l = () => {
29283
29290
  n.editor.open(["_VIEWS_", e.id, "_PANELS_", a.id, "_TABS_", "Data"]);
@@ -29296,7 +29303,7 @@ const CT = ({
29296
29303
  } = _(), a = he(), i = oe(), o = zt(), {
29297
29304
  panel: l,
29298
29305
  downloadPanelScreenshot: s
29299
- } = $e(), {
29306
+ } = Ve(), {
29300
29307
  id: c
29301
29308
  } = l, {
29302
29309
  viewPanelInFullScreen: d,
@@ -29326,14 +29333,14 @@ const CT = ({
29326
29333
  }), M = R.useCallback(() => {
29327
29334
  d(c);
29328
29335
  }, [c, d]), P = !h && e.type !== G.Modal;
29329
- return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r(V, { sx: {
29336
+ return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ r($, { sx: {
29330
29337
  position: "absolute",
29331
29338
  top: 0,
29332
29339
  left: 0,
29333
29340
  right: 0,
29334
29341
  zIndex: 300
29335
29342
  }, title: t, children: /* @__PURE__ */ u(W, { withinPortal: !0, children: [
29336
- /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(V, { className: "panel-dropdown-target", sx: {
29343
+ /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r($, { className: "panel-dropdown-target", sx: {
29337
29344
  width: "100%"
29338
29345
  } }) }),
29339
29346
  /* @__PURE__ */ u(W.Dropdown, { children: [
@@ -29346,7 +29353,7 @@ const CT = ({
29346
29353
  /* @__PURE__ */ r(A, { label: n("common.actions.edit"), labelPosition: "center" }),
29347
29354
  /* @__PURE__ */ r(W.Item, { onClick: g, leftSection: /* @__PURE__ */ r(ja, { size: 14 }), children: n("panel.label") }),
29348
29355
  /* @__PURE__ */ r(W.Item, { onClick: b, leftSection: /* @__PURE__ */ r(Bn, { size: 14 }), children: n("panel.variable.labels") }),
29349
- /* @__PURE__ */ r(W.Item, { onClick: x, leftSection: /* @__PURE__ */ r($l, { size: 14 }), children: n("visualization.label") }),
29356
+ /* @__PURE__ */ r(W.Item, { onClick: x, leftSection: /* @__PURE__ */ r(Vl, { size: 14 }), children: n("visualization.label") }),
29350
29357
  /* @__PURE__ */ r(W.Item, { onClick: v, leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: n("interactions.label") }),
29351
29358
  /* @__PURE__ */ r(A, { label: n("common.actions.actions"), labelPosition: "center" }),
29352
29359
  /* @__PURE__ */ r(W.Item, { onClick: p, leftSection: /* @__PURE__ */ r(Ha, { size: 14 }), children: n("common.actions.duplicate") }),
@@ -29424,7 +29431,7 @@ function LT(e) {
29424
29431
  };
29425
29432
  }
29426
29433
  var Ud = /* @__PURE__ */ ((e) => (e.migrated = "migrated", e.nothingToMigrate = "nothingToMigrate", e.checkFailed = "checkFailed", e.migrationFailed = "migrationFailed", e))(Ud || {}), gr = /* @__PURE__ */ ((e) => (e.notStarted = "notStarted", e.inProgress = "inProgress", e.done = "done", e))(gr || {});
29427
- class $T {
29434
+ class VT {
29428
29435
  constructor(t) {
29429
29436
  B(this, "vizInstance");
29430
29437
  B(this, "operationManager");
@@ -29473,7 +29480,7 @@ class $T {
29473
29480
  return await this.operationManager.needMigration() || await this.triggerManager.needMigration();
29474
29481
  }
29475
29482
  }
29476
- class VT {
29483
+ class $T {
29477
29484
  getTriggerSchemaList() {
29478
29485
  return [];
29479
29486
  }
@@ -29543,7 +29550,7 @@ class RT {
29543
29550
  }
29544
29551
  const Ho = new RT(), Ir = class Ir {
29545
29552
  constructor() {
29546
- B(this, "triggerManager", new VT());
29553
+ B(this, "triggerManager", new $T());
29547
29554
  B(this, "operationManager", new AT());
29548
29555
  }
29549
29556
  getInteractionList() {
@@ -29570,7 +29577,7 @@ function Kd(e, t = !0) {
29570
29577
  return a.createScoped().provideFactory(ve.instanceScope.vizInstance, () => i.getOrCreateInstance(e)).provideFactory(ve.instanceScope.interactionManager, (l) => {
29571
29578
  const s = l.getRequired(ve.instanceScope.vizInstance);
29572
29579
  return t ? new nc(s, o, gi) : new Da();
29573
- }).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 $T(l));
29580
+ }).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));
29574
29581
  }, [e.viz.type, e.viz.conf, t]);
29575
29582
  }
29576
29583
  const Yd = {
@@ -29682,7 +29689,7 @@ const NT = D(function({
29682
29689
  w: a,
29683
29690
  h: i
29684
29691
  }), l = a > 0 && i > 0;
29685
- return /* @__PURE__ */ r("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ r(V, { sx: {
29692
+ return /* @__PURE__ */ r("div", { className: "viz-root", ref: n, children: /* @__PURE__ */ r($, { sx: {
29686
29693
  width: a,
29687
29694
  height: i,
29688
29695
  overflow: "hidden"
@@ -29692,7 +29699,7 @@ const NT = D(function({
29692
29699
  inEditMode: n
29693
29700
  } = Jt(Qr), a = e.getRequired(ve.panelAddonManager), {
29694
29701
  withAddon: i
29695
- } = Ui(), o = $m();
29702
+ } = Ui(), o = Vm();
29696
29703
  return !o || !i ? null : um(/* @__PURE__ */ r(q, { children: a.createPanelAddonNode({
29697
29704
  viz: t,
29698
29705
  isInEditMode: n
@@ -29733,12 +29740,12 @@ const NT = D(function({
29733
29740
  loading: e.dataLoading,
29734
29741
  errors: e.queryErrors,
29735
29742
  downloadPanelScreenshot: i
29736
- }, children: /* @__PURE__ */ r(V, { id: e.id, className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: a, p: 0, sx: {
29743
+ }, children: /* @__PURE__ */ r($, { id: e.id, className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, ref: a, p: 0, sx: {
29737
29744
  ...QT,
29738
29745
  ...t
29739
29746
  }, children: /* @__PURE__ */ u(s, { children: [
29740
29747
  l && /* @__PURE__ */ u(q, { children: [
29741
- /* @__PURE__ */ r(V, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(Wd, {}) }),
29748
+ /* @__PURE__ */ r($, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(Wd, {}) }),
29742
29749
  n,
29743
29750
  /* @__PURE__ */ r(MT, {})
29744
29751
  ] }),
@@ -29781,14 +29788,14 @@ const KT = D(({
29781
29788
  } = R.useContext(ra), c = R.useCallback(() => {
29782
29789
  l(o);
29783
29790
  }, [o, l]), d = !s && e.type !== G.Modal;
29784
- return UT(a.viz.type) ? /* @__PURE__ */ r(V, { sx: {
29791
+ return UT(a.viz.type) ? /* @__PURE__ */ r($, { sx: {
29785
29792
  position: "absolute",
29786
29793
  top: 0,
29787
29794
  left: 0,
29788
29795
  right: 0,
29789
29796
  zIndex: 300
29790
29797
  }, title: t, children: /* @__PURE__ */ u(W, { withinPortal: !0, children: [
29791
- /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(V, { className: "panel-dropdown-target" }) }),
29798
+ /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r($, { className: "panel-dropdown-target" }) }),
29792
29799
  /* @__PURE__ */ u(W.Dropdown, { children: [
29793
29800
  /* @__PURE__ */ r(W.Item, { onClick: a.refreshData, leftSection: /* @__PURE__ */ r(Ar, { size: 14 }), children: n("common.actions.refresh") }),
29794
29801
  /* @__PURE__ */ r(W.Item, { onClick: a.downloadData, leftSection: /* @__PURE__ */ r(or, { size: 14 }), children: n("common.actions.download_data") }),
@@ -29823,7 +29830,7 @@ const tu = D(({
29823
29830
  panel: n,
29824
29831
  exitFullScreen: a
29825
29832
  }) {
29826
- return /* @__PURE__ */ r(we, { opened: !0, fullScreen: !0, onClose: a, title: /* @__PURE__ */ r(L, { color: "blue", size: "xs", onClick: a, leftSection: /* @__PURE__ */ r(Vl, { size: 20 }), children: "Exit fullscreen" }), styles: XT, children: /* @__PURE__ */ r(y, { grow: !0, sx: {
29833
+ return /* @__PURE__ */ r(we, { opened: !0, fullScreen: !0, onClose: a, title: /* @__PURE__ */ r(L, { color: "blue", size: "xs", onClick: a, leftSection: /* @__PURE__ */ r($l, { size: 20 }), children: "Exit fullscreen" }), styles: XT, children: /* @__PURE__ */ r(y, { grow: !0, sx: {
29827
29834
  flexGrow: 1,
29828
29835
  flexShrink: 0
29829
29836
  }, children: /* @__PURE__ */ r(tu, { view: t, panel: n }) }) });
@@ -29955,7 +29962,7 @@ const o4 = D(({
29955
29962
  downloadScreenshot: i
29956
29963
  } = Yi(t);
29957
29964
  return /* @__PURE__ */ u(q, { children: [
29958
- /* @__PURE__ */ r(V, { ref: a, pt: 10, pb: 10, sx: n, children: e }),
29965
+ /* @__PURE__ */ r($, { ref: a, pt: 10, pb: 10, sx: n, children: e }),
29959
29966
  /* @__PURE__ */ r(o4, { downloadScreenshot: i })
29960
29967
  ] });
29961
29968
  }), ru = D(({
@@ -29969,7 +29976,7 @@ const o4 = D(({
29969
29976
  downloadScreenshot: s
29970
29977
  } = Yi(t);
29971
29978
  return /* @__PURE__ */ r(we, { size: a.width, centered: !0, opened: i, onClose: o, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
29972
- /* @__PURE__ */ r(V, { children: a.custom_modal_title.value }),
29979
+ /* @__PURE__ */ r($, { children: a.custom_modal_title.value }),
29973
29980
  /* @__PURE__ */ r(ru, { downloadScreenshot: s })
29974
29981
  ] }), trapFocus: !0, onDragStart: (c) => {
29975
29982
  c.stopPropagation();
@@ -30005,7 +30012,7 @@ const o4 = D(({
30005
30012
  }
30006
30013
  }, transitionProps: {
30007
30014
  duration: 0
30008
- }, children: /* @__PURE__ */ r(V, { ref: l, children: e }) });
30015
+ }, children: /* @__PURE__ */ r($, { ref: l, children: e }) });
30009
30016
  }), s4 = (e) => e.color ? {
30010
30017
  "&[data-active], &[data-active]:hover": {
30011
30018
  borderColor: e.color ? e.color : "..."
@@ -30051,9 +30058,9 @@ const o4 = D(({
30051
30058
  const a = oe().layouts, [i, o] = oh();
30052
30059
  return N(() => {
30053
30060
  a.setCurrentLayoutWrapperWidth(o.width);
30054
- }, [o.width]), /* @__PURE__ */ r(V, { sx: {
30061
+ }, [o.width]), /* @__PURE__ */ r($, { sx: {
30055
30062
  height: "100%"
30056
- }, ref: i, children: /* @__PURE__ */ r(V, { sx: {
30063
+ }, ref: i, children: /* @__PURE__ */ r($, { sx: {
30057
30064
  paddingBottom: "100px",
30058
30065
  background: "white",
30059
30066
  margin: "0 auto",
@@ -30088,13 +30095,13 @@ const h4 = D(({
30088
30095
  ref: o,
30089
30096
  downloadScreenshot: l
30090
30097
  } = Yi(t);
30091
- return /* @__PURE__ */ r(V, { sx: {
30098
+ return /* @__PURE__ */ r($, { sx: {
30092
30099
  height: "100%",
30093
30100
  "> div:not(.mantine-Modal-root)": {
30094
30101
  height: "100%"
30095
30102
  }
30096
30103
  }, children: /* @__PURE__ */ r(we, { size: n.width, opened: !0, onClose: C.noop, withCloseButton: !1, title: /* @__PURE__ */ u(y, { justify: "space-between", px: "1rem", h: "48px", children: [
30097
- /* @__PURE__ */ r(V, { children: n.custom_modal_title.value }),
30104
+ /* @__PURE__ */ r($, { children: n.custom_modal_title.value }),
30098
30105
  /* @__PURE__ */ r(ru, { downloadScreenshot: l })
30099
30106
  ] }), trapFocus: !0, onDragStart: (s) => {
30100
30107
  s.stopPropagation();
@@ -30135,7 +30142,7 @@ const h4 = D(({
30135
30142
  }
30136
30143
  }, withinPortal: !1, transitionProps: {
30137
30144
  duration: 0
30138
- }, children: /* @__PURE__ */ r(V, { ref: o, children: e }) }) });
30145
+ }, children: /* @__PURE__ */ r($, { ref: o, children: e }) }) });
30139
30146
  }), p4 = ({
30140
30147
  variant: e,
30141
30148
  orientation: t
@@ -30194,7 +30201,7 @@ const h4 = D(({
30194
30201
  return /* @__PURE__ */ u(S.Panel, { value: d.id, sx: {
30195
30202
  position: "relative"
30196
30203
  }, children: [
30197
- /* @__PURE__ */ u(V, { sx: {
30204
+ /* @__PURE__ */ u($, { sx: {
30198
30205
  position: "absolute",
30199
30206
  top: 0,
30200
30207
  left: 0,
@@ -30208,7 +30215,7 @@ const h4 = D(({
30208
30215
  position: "relative",
30209
30216
  zIndex: 200
30210
30217
  }, children: [
30211
- /* @__PURE__ */ r($, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
30218
+ /* @__PURE__ */ r(V, { label: t("view.component.tabs.tab.name"), required: !0, value: d.name, onChange: (g) => d.setName(g.currentTarget.value) }),
30212
30219
  /* @__PURE__ */ r(F, { label: t("view.label"), value: d.view_id, onChange: d.setViewID, data: i }),
30213
30220
  /* @__PURE__ */ r(ne, { label: t("view.component.tabs.tab.order"), required: !0, value: d.order, onChange: (g) => d.setOrder(g || 0), min: 0, max: 1e3, step: 1 }),
30214
30221
  /* @__PURE__ */ r(cn, { label: t("view.component.tabs.tab.color"), value: d.color, onChange: d.setColor, disabled: o.variant !== "default" }),
@@ -30245,12 +30252,12 @@ const h4 = D(({
30245
30252
  return /* @__PURE__ */ r(ra.Provider, { value: {
30246
30253
  viewPanelInFullScreen: C.noop,
30247
30254
  inFullScreen: !1
30248
- }, children: /* @__PURE__ */ r(V, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
30255
+ }, children: /* @__PURE__ */ r($, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
30249
30256
  background: a ? "transparent" : "#efefef"
30250
- }, children: /* @__PURE__ */ r(f4, { view: t, children: /* @__PURE__ */ u(V, { sx: {
30257
+ }, children: /* @__PURE__ */ r(f4, { view: t, children: /* @__PURE__ */ u($, { sx: {
30251
30258
  position: "relative"
30252
30259
  }, children: [
30253
- /* @__PURE__ */ r(V, { className: "dashboard-sticky-area", sx: {
30260
+ /* @__PURE__ */ r($, { className: "dashboard-sticky-area", sx: {
30254
30261
  position: "sticky",
30255
30262
  top: "0px"
30256
30263
  }, children: /* @__PURE__ */ r(Gd, { view: t }) }),
@@ -30271,14 +30278,14 @@ const h4 = D(({
30271
30278
  return /* @__PURE__ */ r(ra.Provider, { value: {
30272
30279
  viewPanelInFullScreen: i,
30273
30280
  inFullScreen: l
30274
- }, children: /* @__PURE__ */ u(V, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
30281
+ }, children: /* @__PURE__ */ u($, { className: "dashboard-view", "data-enable-scrollbar": !0, sx: {
30275
30282
  height: t.type === G.Modal ? "0 !important" : "100%"
30276
30283
  }, children: [
30277
30284
  l && /* @__PURE__ */ r(ZT, { view: t, panel: s, exitFullScreen: o }),
30278
- /* @__PURE__ */ r(d4, { view: t, children: /* @__PURE__ */ u(V, { sx: {
30285
+ /* @__PURE__ */ r(d4, { view: t, children: /* @__PURE__ */ u($, { sx: {
30279
30286
  position: "relative"
30280
30287
  }, children: [
30281
- !l && /* @__PURE__ */ r(V, { className: "dashboard-sticky-area", sx: {
30288
+ !l && /* @__PURE__ */ r($, { className: "dashboard-sticky-area", sx: {
30282
30289
  position: "sticky",
30283
30290
  top: "0px"
30284
30291
  }, children: /* @__PURE__ */ r(Gd, { view: t }) }),
@@ -30372,7 +30379,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30372
30379
  function t() {
30373
30380
  v4(e.current, Hi, (n, a) => {
30374
30381
  if (n === "setType") {
30375
- const i = $d(a.config.default_value, a.config);
30382
+ const i = Vd(a.config.default_value, a.config);
30376
30383
  e.setValueByKey(a.key, i), e.updatePreviewValues({
30377
30384
  ...e.previewValues,
30378
30385
  [a.key]: i
@@ -30477,7 +30484,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30477
30484
  const a = C.get(n, "value", "");
30478
30485
  if (!a)
30479
30486
  return;
30480
- const i = C.uniq(a.match(Vn.filter)), o = /* @__PURE__ */ new Set();
30487
+ const i = C.uniq(a.match($n.filter)), o = /* @__PURE__ */ new Set();
30481
30488
  i.forEach((l) => o.add(l)), t.set(n.key, o);
30482
30489
  }), t;
30483
30490
  }
@@ -30543,13 +30550,13 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30543
30550
  error: m.frozen()
30544
30551
  }).views((e) => ({
30545
30552
  get keywords() {
30546
- return Ce(e, 1);
30553
+ return ke(e, 1);
30547
30554
  },
30548
30555
  get keywordString() {
30549
30556
  const {
30550
30557
  table_name: t,
30551
30558
  table_schema: n
30552
- } = Ce(e, 1);
30559
+ } = ke(e, 1);
30553
30560
  return `${n}||${t}`;
30554
30561
  }
30555
30562
  })).views((e) => ({
@@ -30615,7 +30622,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30615
30622
  table_name: m.optional(m.string, "")
30616
30623
  }).views((e) => ({
30617
30624
  get dataSource() {
30618
- return Ce(e);
30625
+ return ke(e);
30619
30626
  },
30620
30627
  get key() {
30621
30628
  return this.dataSource.key;
@@ -30656,7 +30663,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30656
30663
  var n;
30657
30664
  (n = e.controllers.tables) == null || n.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
30658
30665
  try {
30659
- const a = yield* Vt(pt.structure(e.controllers.tables.signal)({
30666
+ const a = yield* $t(pt.structure(e.controllers.tables.signal)({
30660
30667
  query_type: "TABLES",
30661
30668
  type: e.sqlDataSourceType,
30662
30669
  key: e.key,
@@ -30685,7 +30692,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30685
30692
  var n;
30686
30693
  (n = e.controllers.columns) == null || n.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
30687
30694
  try {
30688
- e.columns.data = yield* Vt(pt.structure(e.controllers.columns.signal)({
30695
+ e.columns.data = yield* $t(pt.structure(e.controllers.columns.signal)({
30689
30696
  query_type: "COLUMNS",
30690
30697
  type: e.sqlDataSourceType,
30691
30698
  key: e.key,
@@ -30710,7 +30717,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30710
30717
  var n;
30711
30718
  (n = e.controllers.indexes) == null || n.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
30712
30719
  try {
30713
- e.indexes.data = yield* Vt(pt.structure(e.controllers.indexes.signal)({
30720
+ e.indexes.data = yield* $t(pt.structure(e.controllers.indexes.signal)({
30714
30721
  query_type: "INDEXES",
30715
30722
  type: e.sqlDataSourceType,
30716
30723
  key: e.key,
@@ -30737,7 +30744,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30737
30744
  const n = e.tableData;
30738
30745
  n.state = "loading";
30739
30746
  try {
30740
- n.data = yield* Vt(pt.structure(e.controllers.tableData.signal)({
30747
+ n.data = yield* $t(pt.structure(e.controllers.tableData.signal)({
30741
30748
  query_type: "DATA",
30742
30749
  type: e.sqlDataSourceType,
30743
30750
  key: e.key,
@@ -30752,7 +30759,7 @@ const w4 = m.compose("FiltersModel", Ad, m.model({
30752
30759
  }));
30753
30760
  const [{
30754
30761
  total: i
30755
- }] = yield* Vt(pt.structure(e.controllers.tableData.signal)({
30762
+ }] = yield* $t(pt.structure(e.controllers.tableData.signal)({
30756
30763
  query_type: "COUNT",
30757
30764
  type: e.sqlDataSourceType,
30758
30765
  key: e.key,
@@ -30839,7 +30846,7 @@ function au(e) {
30839
30846
  return a ? Ko[a] : n.dimension !== null ? Ko.dimension : "ERROR";
30840
30847
  });
30841
30848
  }
30842
- function $4(e) {
30849
+ function V4(e) {
30843
30850
  if (e.length === 0)
30844
30851
  return [];
30845
30852
  const t = au(e);
@@ -30869,7 +30876,7 @@ function $4(e) {
30869
30876
  })
30870
30877
  }));
30871
30878
  }
30872
- function V4(e) {
30879
+ function $4(e) {
30873
30880
  if (e.length === 0)
30874
30881
  return [];
30875
30882
  const t = au(e);
@@ -30912,7 +30919,7 @@ const A4 = m.model({
30912
30919
  return e.data !== null;
30913
30920
  },
30914
30921
  get mmInfo() {
30915
- return Ce(e);
30922
+ return ke(e);
30916
30923
  },
30917
30924
  get metricID() {
30918
30925
  return this.mmInfo.metricID;
@@ -30925,10 +30932,10 @@ const A4 = m.model({
30925
30932
  return (t = this.metric) == null ? void 0 : t.type;
30926
30933
  },
30927
30934
  get filterColOptions() {
30928
- return $4(e.filters);
30935
+ return V4(e.filters);
30929
30936
  },
30930
30937
  get groupByColOptions() {
30931
- return V4(e.groupBys);
30938
+ return $4(e.groupBys);
30932
30939
  },
30933
30940
  get flatGroupByColOptions() {
30934
30941
  const t = this.groupByColOptions, n = [];
@@ -30955,7 +30962,7 @@ const A4 = m.model({
30955
30962
  data: {
30956
30963
  key: e.mmInfo.key
30957
30964
  }
30958
- }), i = yield* Vt(pt.mericoMetricInfo(e.controller.signal)({
30965
+ }), i = yield* $t(pt.mericoMetricInfo(e.controller.signal)({
30959
30966
  key: e.mmInfo.key,
30960
30967
  query: JSON.stringify(a),
30961
30968
  ...e.mmInfo.additionalQueryInfo
@@ -30998,7 +31005,7 @@ const A4 = m.model({
30998
31005
  return Object.keys(e.data).length === 0;
30999
31006
  },
31000
31007
  get mmInfo() {
31001
- return Ce(e);
31008
+ return ke(e);
31002
31009
  }
31003
31010
  })).actions((e) => ({
31004
31011
  setKeyword(t) {
@@ -31019,7 +31026,7 @@ const A4 = m.model({
31019
31026
  params: {
31020
31027
  search: e.keyword
31021
31028
  }
31022
- }), a = yield* Vt(pt.mericoMetricInfo(e.controller.signal)({
31029
+ }), a = yield* $t(pt.mericoMetricInfo(e.controller.signal)({
31023
31030
  key: e.mmInfo.key,
31024
31031
  query: JSON.stringify(n),
31025
31032
  ...e.mmInfo.additionalQueryInfo
@@ -31057,7 +31064,7 @@ const A4 = m.model({
31057
31064
  return this.contentModel.getAdditionalQueryInfo("");
31058
31065
  },
31059
31066
  get dataSource() {
31060
- return Ce(e);
31067
+ return ke(e);
31061
31068
  },
31062
31069
  get key() {
31063
31070
  return this.dataSource.key;
@@ -31546,7 +31553,7 @@ const Y4 = m.model("EditorModel", {
31546
31553
  }
31547
31554
  })).actions((e) => ({
31548
31555
  removeSelf() {
31549
- Ce(e, 2).removeByID(e.id);
31556
+ ke(e, 2).removeByID(e.id);
31550
31557
  }
31551
31558
  })).actions((e) => ({
31552
31559
  moveToView(t, n) {
@@ -31834,14 +31841,14 @@ const n6 = m.model({
31834
31841
  return !Fe(se(e, t), se(e.origin, t));
31835
31842
  },
31836
31843
  get context() {
31837
- const t = Ce(e).context.current;
31844
+ const t = ke(e).context.current;
31838
31845
  return {
31839
31846
  ...e.mock_context.current,
31840
31847
  ...t
31841
31848
  };
31842
31849
  },
31843
31850
  get payloadForSQL() {
31844
- const t = Ce(e).globalSQLSnippets, n = {
31851
+ const t = ke(e).globalSQLSnippets, n = {
31845
31852
  context: this.context,
31846
31853
  filters: e.filters.valuesForPayload
31847
31854
  };
@@ -32053,7 +32060,7 @@ const n6 = m.model({
32053
32060
  if (!n.typedAsSQL)
32054
32061
  return;
32055
32062
  const a = n.config;
32056
- C.uniq(a.sql.match(Vn.sqlSnippet)).forEach((o) => {
32063
+ C.uniq(a.sql.match($n.sqlSnippet)).forEach((o) => {
32057
32064
  t.push({
32058
32065
  queryID: n.id,
32059
32066
  sqlSnippetKey: o,
@@ -32489,7 +32496,7 @@ const o6 = D(({
32489
32496
  fill: "rgb(173, 181, 189)",
32490
32497
  stroke: "none"
32491
32498
  }
32492
- }, children: /* @__PURE__ */ r($h, { size: 18 }) }) }),
32499
+ }, children: /* @__PURE__ */ r(Vh, { size: 18 }) }) }),
32493
32500
  /* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r(W.Item, { leftSection: /* @__PURE__ */ r(bt, { size: 14, color: "red" }), disabled: !o, onClick: i, children: t("common.actions.revert_changes") }) })
32494
32501
  ] })
32495
32502
  ] });
@@ -32513,7 +32520,7 @@ const o6 = D(({
32513
32520
  position: "relative"
32514
32521
  }, children: [
32515
32522
  /* @__PURE__ */ u(y, { children: [
32516
- /* @__PURE__ */ r(L, { size: "xs", color: i ? "red" : "green", leftSection: /* @__PURE__ */ r(Vl, { size: 20 }), onClick: o, children: /* @__PURE__ */ r(y, { gap: 4, children: /* @__PURE__ */ r(Mr, { i18nKey: "common.actions.end_editing", values: {
32523
+ /* @__PURE__ */ r(L, { size: "xs", color: i ? "red" : "green", leftSection: /* @__PURE__ */ r($l, { size: 20 }), onClick: o, children: /* @__PURE__ */ r(y, { gap: 4, children: /* @__PURE__ */ r(Mr, { i18nKey: "common.actions.end_editing", values: {
32517
32524
  name: a.name
32518
32525
  }, children: /* @__PURE__ */ r(k, { td: "underline", size: "xs", children: a.name }) }) }) }),
32519
32526
  /* @__PURE__ */ r(o6, { saveDashboardChanges: e })
@@ -32570,9 +32577,9 @@ const o6 = D(({
32570
32577
  return "Screen sizes should be unique by min width";
32571
32578
  }
32572
32579
  }
32573
- }), x = s("list"), v = p.map((J, Ve) => ({
32580
+ }), x = s("list"), v = p.map((J, $e) => ({
32574
32581
  ...J,
32575
- ...x[Ve]
32582
+ ...x[$e]
32576
32583
  })), I = () => {
32577
32584
  g({
32578
32585
  id: At(),
@@ -32582,11 +32589,11 @@ const o6 = D(({
32582
32589
  }, M = ({
32583
32590
  list: J
32584
32591
  }) => {
32585
- const Ve = J.filter((Xe) => Number.isFinite(Xe.breakpoint));
32586
- a.updateLayoutSetsInfo(Ve), e();
32592
+ const $e = J.filter((Xe) => Number.isFinite(Xe.breakpoint));
32593
+ a.updateLayoutSetsInfo($e), e();
32587
32594
  }, P = c(), E = z(() => {
32588
32595
  const J = {
32589
- list: P.list.filter((Ve) => !!Ve.name && Number.isFinite(Ve.breakpoint))
32596
+ list: P.list.filter(($e) => !!$e.name && Number.isFinite($e.breakpoint))
32590
32597
  };
32591
32598
  return !Fe(J, i);
32592
32599
  }, [P, i]), Y = (de = (U = h.errors.list) == null ? void 0 : U.root) == null ? void 0 : de.message;
@@ -32604,16 +32611,16 @@ const o6 = D(({
32604
32611
  /* @__PURE__ */ r(w.Th, {})
32605
32612
  ] }) }),
32606
32613
  /* @__PURE__ */ u(w.Tbody, { children: [
32607
- v.map((J, Ve) => /* @__PURE__ */ u(w.Tr, { children: [
32608
- /* @__PURE__ */ r(w.Th, { children: J.id === "basis" ? J.name : /* @__PURE__ */ r(f, { name: `list.${Ve}.name`, control: o, render: ({
32614
+ v.map((J, $e) => /* @__PURE__ */ u(w.Tr, { children: [
32615
+ /* @__PURE__ */ r(w.Th, { children: J.id === "basis" ? J.name : /* @__PURE__ */ r(f, { name: `list.${$e}.name`, control: o, render: ({
32609
32616
  field: Xe
32610
- }) => /* @__PURE__ */ r($, { size: "xs", label: "", required: !0, sx: {
32617
+ }) => /* @__PURE__ */ r(V, { size: "xs", label: "", required: !0, sx: {
32611
32618
  flex: 1
32612
32619
  }, ...Xe }) }) }),
32613
32620
  /* @__PURE__ */ r(w.Td, { children: J.id === "basis" ? /* @__PURE__ */ u(k, { size: "sm", ff: "monospace", children: [
32614
32621
  J.breakpoint,
32615
32622
  "px"
32616
- ] }) : /* @__PURE__ */ r(f, { name: `list.${Ve}.breakpoint`, control: o, render: ({
32623
+ ] }) : /* @__PURE__ */ r(f, { name: `list.${$e}.breakpoint`, control: o, render: ({
32617
32624
  field: Xe
32618
32625
  }) => /* @__PURE__ */ r(ne, { size: "xs", label: "", required: !0, max: 1e4, hideControls: !0, rightSection: /* @__PURE__ */ r(k, { size: "sm", c: "dimmed", children: "px" }), rightSectionProps: {
32619
32626
  style: {
@@ -32626,7 +32633,7 @@ const o6 = D(({
32626
32633
  paddingRight: "30px"
32627
32634
  }
32628
32635
  }, ...Xe }) }) }),
32629
- /* @__PURE__ */ r(w.Td, { children: J.id !== "basis" && /* @__PURE__ */ r(te, { mx: "auto", size: "xs", variant: "subtle", color: "red", onClick: () => b(Ve), children: /* @__PURE__ */ r(Pe, {}) }) })
32636
+ /* @__PURE__ */ r(w.Td, { children: J.id !== "basis" && /* @__PURE__ */ r(te, { mx: "auto", size: "xs", variant: "subtle", color: "red", onClick: () => b($e), children: /* @__PURE__ */ r(Pe, {}) }) })
32630
32637
  ] }, J.id)),
32631
32638
  /* @__PURE__ */ r(w.Tr, { style: {
32632
32639
  backgroundColor: "transparent"
@@ -32659,7 +32666,7 @@ const o6 = D(({
32659
32666
  return /* @__PURE__ */ u(q, { children: [
32660
32667
  /* @__PURE__ */ u(y, { children: [
32661
32668
  /* @__PURE__ */ u(W, { withArrow: !0, withinPortal: !0, zIndex: 320, trigger: "hover", children: [
32662
- /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", leftSection: /* @__PURE__ */ r(Vh, { size: 16 }), sx: {
32669
+ /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(L, { size: "xs", variant: "subtle", leftSection: /* @__PURE__ */ r($h, { size: 16 }), sx: {
32663
32670
  borderRadius: 0
32664
32671
  }, children: /* @__PURE__ */ u(y, { gap: 6, children: [
32665
32672
  /* @__PURE__ */ r(k, { size: "xs", fw: "normal", children: l.name }),
@@ -32719,7 +32726,7 @@ const o6 = D(({
32719
32726
  const {
32720
32727
  t
32721
32728
  } = _(), n = e.views;
32722
- return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
32729
+ return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32723
32730
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("view.labels") }),
32724
32731
  /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32725
32732
  /* @__PURE__ */ r(w.Th, { style: {
@@ -32739,7 +32746,7 @@ const o6 = D(({
32739
32746
  const {
32740
32747
  t
32741
32748
  } = _(), n = e.filters;
32742
- return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
32749
+ return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32743
32750
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("filter.labels") }),
32744
32751
  /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32745
32752
  /* @__PURE__ */ r(w.Th, { style: {
@@ -32759,7 +32766,7 @@ const o6 = D(({
32759
32766
  const {
32760
32767
  t
32761
32768
  } = _(), n = e.panels;
32762
- return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
32769
+ return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32763
32770
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("panel.labels") }),
32764
32771
  /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32765
32772
  /* @__PURE__ */ r(w.Th, { style: {
@@ -32780,7 +32787,7 @@ const o6 = D(({
32780
32787
  const {
32781
32788
  t
32782
32789
  } = _(), n = (a = e.definition) == null ? void 0 : a.queries;
32783
- return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
32790
+ return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32784
32791
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("query.labels") }),
32785
32792
  /* @__PURE__ */ r(aa, { headers: /* @__PURE__ */ u(w.Tr, { children: [
32786
32793
  /* @__PURE__ */ r(w.Th, { style: {
@@ -32807,7 +32814,7 @@ const o6 = D(({
32807
32814
  const {
32808
32815
  t
32809
32816
  } = _(), n = (a = e.definition) == null ? void 0 : a.sqlSnippets;
32810
- return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
32817
+ return !Array.isArray(n) || n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32811
32818
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("sql_snippet.labels") }),
32812
32819
  /* @__PURE__ */ r(Ue, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r(Er, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r(Ue.Item, { children: i.key }, i.key)) })
32813
32820
  ] });
@@ -32818,13 +32825,13 @@ const o6 = D(({
32818
32825
  const {
32819
32826
  t
32820
32827
  } = _(), n = Object.keys(((a = e.definition) == null ? void 0 : a.mock_context) ?? {});
32821
- return n.length === 0 ? null : /* @__PURE__ */ u(V, { children: [
32828
+ return n.length === 0 ? null : /* @__PURE__ */ u($, { children: [
32822
32829
  /* @__PURE__ */ r(k, { pl: 10, size: "sm", fw: 500, c: "dimmed", ta: "center", children: t("mock_context.label") }),
32823
32830
  /* @__PURE__ */ r(Ue, { size: "sm", pl: 10, ff: "monospace", icon: /* @__PURE__ */ r(Er, { size: 10 }), children: n.map((i) => /* @__PURE__ */ r(Ue.Item, { children: i }, i)) })
32824
32831
  ] });
32825
32832
  }, y6 = ({
32826
32833
  content: e
32827
- }) => e ? /* @__PURE__ */ u(V, { children: [
32834
+ }) => e ? /* @__PURE__ */ u($, { children: [
32828
32835
  /* @__PURE__ */ r(A, { mt: 20, mb: 10, variant: "dashed" }),
32829
32836
  /* @__PURE__ */ r(k, { ta: "left", c: "dimmed", size: "sm", children: "Preview" }),
32830
32837
  /* @__PURE__ */ u(T, { children: [
@@ -32910,7 +32917,7 @@ const x6 = D(({
32910
32917
  const [x] = c(["content"]), v = !x, I = (M = l == null ? void 0 : l.content) == null ? void 0 : M.message;
32911
32918
  return N(() => {
32912
32919
  !x || I ? n() : t();
32913
- }, [x, I]), /* @__PURE__ */ r(V, { mx: "auto", sx: {
32920
+ }, [x, I]), /* @__PURE__ */ r($, { mx: "auto", sx: {
32914
32921
  position: "relative"
32915
32922
  }, children: /* @__PURE__ */ u("form", { onSubmit: o(p), children: [
32916
32923
  /* @__PURE__ */ r(Zu, { label: a("import.json_file"), required: !0, value: g, onChange: b, error: (P = l == null ? void 0 : l.content) == null ? void 0 : P.message, sx: {
@@ -33000,7 +33007,7 @@ const x6 = D(({
33000
33007
  const {
33001
33008
  t: n
33002
33009
  } = _();
33003
- return /* @__PURE__ */ r(V, { className: "spotlight-custom-action-component", children: /* @__PURE__ */ u(y, { wrap: "nowrap", children: [
33010
+ return /* @__PURE__ */ r($, { className: "spotlight-custom-action-component", children: /* @__PURE__ */ u(y, { wrap: "nowrap", children: [
33004
33011
  /* @__PURE__ */ r(w6, { iconKey: e.iconKey, size: 14 }),
33005
33012
  /* @__PURE__ */ u("div", { style: {
33006
33013
  flex: 1
@@ -33021,7 +33028,7 @@ const x6 = D(({
33021
33028
  const {
33022
33029
  t: e,
33023
33030
  i18n: t
33024
- } = _(), n = $r(), a = he(), [i, o] = Q(""), l = z(() => a.editor.spotlightActionGroups.map((c) => ({
33031
+ } = _(), n = Vr(), a = he(), [i, o] = Q(""), l = z(() => a.editor.spotlightActionGroups.map((c) => ({
33025
33032
  group: e(c.group),
33026
33033
  keywords: [c.group, e(c.group)],
33027
33034
  actions: c.actions.map((d) => {
@@ -33117,7 +33124,7 @@ const x6 = D(({
33117
33124
  zIndex: 299,
33118
33125
  borderBottom: "1px solid #e9ecef",
33119
33126
  background: "rgba(233,236,239, 0.15)"
33120
- }, I6 = D(() => /* @__PURE__ */ r(V, { sx: D6, pl: {
33127
+ }, I6 = D(() => /* @__PURE__ */ r($, { sx: D6, pl: {
33121
33128
  base: 200,
33122
33129
  xs: 200,
33123
33130
  sm: 200,
@@ -33200,7 +33207,7 @@ function L6(e, t, n) {
33200
33207
  });
33201
33208
  }), a;
33202
33209
  }
33203
- function $6(e, t) {
33210
+ function V6(e, t) {
33204
33211
  const n = e.filters.keyLabelMap;
33205
33212
  return {
33206
33213
  edges: L6(e.panels.list, t, n),
@@ -33210,7 +33217,7 @@ function $6(e, t) {
33210
33217
  function cu(e, t, n) {
33211
33218
  return e * t + e * n;
33212
33219
  }
33213
- function V6(e, t, n) {
33220
+ function $6(e, t, n) {
33214
33221
  return e * t + (e - 1) * n;
33215
33222
  }
33216
33223
  const Tr = 25, Zi = 40, du = 25, Ji = 350, P6 = 150, A6 = 150, uu = 150, tl = 300, fr = 40, hu = 25, R6 = 300;
@@ -33269,7 +33276,7 @@ const O6 = {
33269
33276
  }, F6 = _4;
33270
33277
  function q6(e) {
33271
33278
  return e.current.map((n, a) => {
33272
- const i = V6(n.panelIDs.length, fr, hu) + Zi + du;
33279
+ const i = $6(n.panelIDs.length, fr, hu) + Zi + du;
33273
33280
  let o = [];
33274
33281
  return n.type === G.Tabs && (o = n.config.tabsInOrder.map((s) => s.view_id)), {
33275
33282
  id: n.id,
@@ -33386,7 +33393,7 @@ function U6(e) {
33386
33393
  const t = B6(e), n = C.keyBy(t, (c) => c.id), {
33387
33394
  edges: a,
33388
33395
  edgeNodes: i
33389
- } = $6(e, n), o = [...t, ...i], l = C.keyBy(o, (c) => c.id), s = {
33396
+ } = V6(e, n), o = [...t, ...i], l = C.keyBy(o, (c) => c.id), s = {
33390
33397
  edges: C.uniqBy(a, (c) => c.id),
33391
33398
  nodes: o,
33392
33399
  nodeMap: l
@@ -33455,7 +33462,7 @@ const Y6 = Bu(({
33455
33462
  const o = z(() => K6(e.interactions), [e.interactions]);
33456
33463
  return /* @__PURE__ */ u(q, { children: [
33457
33464
  /* @__PURE__ */ r(co, { type: "target", position: a, isConnectable: t }),
33458
- /* @__PURE__ */ r(V, { sx: {
33465
+ /* @__PURE__ */ r($, { sx: {
33459
33466
  position: "absolute",
33460
33467
  top: 0,
33461
33468
  right: 0
@@ -33537,7 +33544,7 @@ function tD({
33537
33544
  active: n,
33538
33545
  openSettings: a
33539
33546
  }) {
33540
- return /* @__PURE__ */ u(V, { sx: {
33547
+ return /* @__PURE__ */ u($, { sx: {
33541
33548
  position: "relative"
33542
33549
  }, children: [
33543
33550
  /* @__PURE__ */ r(Aa, { sx: (i) => ({
@@ -33571,7 +33578,7 @@ const nD = D(() => {
33571
33578
  } = _(), t = he(), n = oe(), a = ae((o) => () => n.views.setIDOfVIE(o), [n]), i = (o) => {
33572
33579
  t.editor.open(["_VIEWS_", o]);
33573
33580
  };
33574
- return /* @__PURE__ */ u(V, { sx: {
33581
+ return /* @__PURE__ */ u($, { sx: {
33575
33582
  position: "relative"
33576
33583
  }, children: [
33577
33584
  n.views.options.map((o) => /* @__PURE__ */ r(tD, { active: n.views.idOfVIE === o.value, name: o.label, onClick: a(o.value), openSettings: () => i(o.value) }, o.value)),
@@ -33738,7 +33745,7 @@ const nD = D(() => {
33738
33745
  /* @__PURE__ */ r(Z, { checked: a.required, onChange: (s) => a.setRequired(s.currentTarget.checked), label: n("filter.widget.select.required") }),
33739
33746
  /* @__PURE__ */ r(Dn, { filter: t })
33740
33747
  ] }),
33741
- /* @__PURE__ */ r($, { label: n("filter.widget.select.width"), description: n("filter.widget.multi_select.width_description"), value: a.min_width, onChange: (s) => a.setMinWidth(s.currentTarget.value), placeholder: "200px" }),
33748
+ /* @__PURE__ */ r(V, { label: n("filter.widget.select.width"), description: n("filter.widget.multi_select.width_description"), value: a.min_width, onChange: (s) => a.setMinWidth(s.currentTarget.value), placeholder: "200px" }),
33742
33749
  /* @__PURE__ */ r(A, { label: n("filter.widget.select.configure_options"), labelPosition: "center" }),
33743
33750
  /* @__PURE__ */ u(T, { gap: 10, sx: {
33744
33751
  position: "relative",
@@ -33764,12 +33771,12 @@ const nD = D(() => {
33764
33771
  o.map((s, c) => /* @__PURE__ */ u(rt, { gap: 10, sx: {
33765
33772
  position: "relative"
33766
33773
  }, pr: "40px", children: [
33767
- /* @__PURE__ */ r($, { label: n("common.label"), required: !0, value: a.static_options[c].label, onChange: (d) => {
33774
+ /* @__PURE__ */ r(V, { label: n("common.label"), required: !0, value: a.static_options[c].label, onChange: (d) => {
33768
33775
  a.static_options[c].setLabel(d.currentTarget.value);
33769
33776
  }, sx: {
33770
33777
  flexGrow: 1
33771
33778
  } }),
33772
- /* @__PURE__ */ r($, { label: n("common.value"), required: !0, value: a.static_options[c].value, onChange: (d) => {
33779
+ /* @__PURE__ */ r(V, { label: n("common.value"), required: !0, value: a.static_options[c].value, onChange: (d) => {
33773
33780
  a.static_options[c].setValue(d.currentTarget.value);
33774
33781
  }, sx: {
33775
33782
  flexGrow: 1
@@ -33870,12 +33877,12 @@ const nD = D(() => {
33870
33877
  a.map((o, l) => /* @__PURE__ */ u(rt, { gap: 10, sx: {
33871
33878
  position: "relative"
33872
33879
  }, pr: "40px", children: [
33873
- /* @__PURE__ */ r($, { label: t("common.label"), required: !0, value: e.static_options[l].label, onChange: (s) => {
33880
+ /* @__PURE__ */ r(V, { label: t("common.label"), required: !0, value: e.static_options[l].label, onChange: (s) => {
33874
33881
  e.static_options[l].setLabel(s.currentTarget.value);
33875
33882
  }, sx: {
33876
33883
  flexGrow: 1
33877
33884
  } }),
33878
- /* @__PURE__ */ r($, { label: t("common.value"), required: !0, value: e.static_options[l].value, onChange: (s) => {
33885
+ /* @__PURE__ */ r(V, { label: t("common.value"), required: !0, value: e.static_options[l].value, onChange: (s) => {
33879
33886
  e.static_options[l].setValue(s.currentTarget.value);
33880
33887
  }, sx: {
33881
33888
  flexGrow: 1
@@ -33900,7 +33907,7 @@ const nD = D(() => {
33900
33907
  /* @__PURE__ */ r(Z, { checked: n.clearable, onChange: (a) => n.setClearable(a.currentTarget.checked), label: t("filter.widget.select.clearable") }),
33901
33908
  /* @__PURE__ */ r(Dn, { filter: e })
33902
33909
  ] }),
33903
- /* @__PURE__ */ r($, { label: t("filter.widget.select.width"), value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
33910
+ /* @__PURE__ */ r(V, { label: t("filter.widget.select.width"), value: n.width, onChange: (a) => n.setWidth(a.currentTarget.value), placeholder: "200px" }),
33904
33911
  /* @__PURE__ */ r(A, { label: t("filter.widget.select.configure_options"), labelPosition: "center" }),
33905
33912
  /* @__PURE__ */ u(T, { gap: 10, sx: {
33906
33913
  position: "relative",
@@ -33937,12 +33944,12 @@ const nD = D(() => {
33937
33944
  } = _(), a = t.config;
33938
33945
  return /* @__PURE__ */ u(q, { children: [
33939
33946
  /* @__PURE__ */ u(y, { children: [
33940
- /* @__PURE__ */ r($, { label: n("filter.widget.text_input.default_value"), value: a.default_value, onChange: (i) => {
33947
+ /* @__PURE__ */ r(V, { label: n("filter.widget.text_input.default_value"), value: a.default_value, onChange: (i) => {
33941
33948
  a.setDefaultValue(i.currentTarget.value);
33942
33949
  }, sx: {
33943
33950
  flexGrow: 1
33944
33951
  } }),
33945
- /* @__PURE__ */ r(V, { mt: 22, children: /* @__PURE__ */ r(Dn, { filter: t }) })
33952
+ /* @__PURE__ */ r($, { mt: 22, children: /* @__PURE__ */ r(Dn, { filter: t }) })
33946
33953
  ] }),
33947
33954
  /* @__PURE__ */ r(Z, { checked: a.required, onChange: (i) => a.setRequired(i.currentTarget.checked), label: n("filter.widget.text_input.required") })
33948
33955
  ] });
@@ -33992,7 +33999,7 @@ const nD = D(() => {
33992
33999
  /* @__PURE__ */ r(S.Tab, { value: "config", children: t("common.titles.config") }),
33993
34000
  /* @__PURE__ */ r(S.Tab, { value: "usage", children: t("filter.usage.label") })
33994
34001
  ] }),
33995
- /* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r(V, { sx: {
34002
+ /* @__PURE__ */ r(S.Panel, { value: "config", children: /* @__PURE__ */ r($, { sx: {
33996
34003
  minWidth: "480px"
33997
34004
  }, children: /* @__PURE__ */ r(kt, { mt: 22, language: "json", withCopyButton: !1, code: JSON.stringify(e, null, 4) }) }) }),
33998
34005
  /* @__PURE__ */ r(S.Panel, { value: "usage", children: /* @__PURE__ */ r(hD, { filter: e }) })
@@ -34042,7 +34049,7 @@ const nD = D(() => {
34042
34049
  value: "date-range"
34043
34050
  }], [n.language]);
34044
34051
  return /* @__PURE__ */ u(y, { grow: !0, gap: 20, align: "top", children: [
34045
- /* @__PURE__ */ u(V, { w: 600, children: [
34052
+ /* @__PURE__ */ u($, { w: 600, children: [
34046
34053
  /* @__PURE__ */ r(k, { pb: "md", c: "gray", size: "sm", children: t("common.titles.edit") }),
34047
34054
  /* @__PURE__ */ u(T, { children: [
34048
34055
  /* @__PURE__ */ u(y, { wrap: "nowrap", children: [
@@ -34052,10 +34059,10 @@ const nD = D(() => {
34052
34059
  e.auto_submit_supported && /* @__PURE__ */ r(Z, { label: t("filter.field.auto_submit"), checked: e.auto_submit, onChange: (l) => e.setAutoSubmit(l.currentTarget.checked), mt: 22 })
34053
34060
  ] }),
34054
34061
  /* @__PURE__ */ r(Kt, { label: t("filter.field.visible_in"), data: a.views.options, value: [...e.visibleInViewsIDs], onChange: e.setVisibleInViewsIDs }),
34055
- /* @__PURE__ */ r($, { label: t("common.key"), placeholder: t("filter.field.key_placeholder"), required: !0, value: e.key, onChange: (l) => {
34062
+ /* @__PURE__ */ r(V, { label: t("common.key"), placeholder: t("filter.field.key_placeholder"), required: !0, value: e.key, onChange: (l) => {
34056
34063
  e.setKey(l.currentTarget.value);
34057
34064
  } }),
34058
- /* @__PURE__ */ r($, { label: t("common.label"), placeholder: t("filter.field.label_placeholder"), required: !0, value: e.label, onChange: (l) => {
34065
+ /* @__PURE__ */ r(V, { label: t("common.label"), placeholder: t("filter.field.label_placeholder"), required: !0, value: e.label, onChange: (l) => {
34059
34066
  e.setLabel(l.currentTarget.value);
34060
34067
  } }),
34061
34068
  /* @__PURE__ */ r(F, { label: t("filter.field.widget"), data: o, required: !0, value: e.type, onChange: e.setType, maxDropdownHeight: 500 }),
@@ -34104,7 +34111,7 @@ const nD = D(() => {
34104
34111
  zIndex: 320
34105
34112
  });
34106
34113
  }, children: t("filter.delete") }) }),
34107
- /* @__PURE__ */ r(V, { sx: {
34114
+ /* @__PURE__ */ r($, { sx: {
34108
34115
  flexGrow: 1,
34109
34116
  maxHeight: "calc(100% - 52px)",
34110
34117
  overflow: "auto"
@@ -34125,7 +34132,7 @@ const nD = D(() => {
34125
34132
  return /* @__PURE__ */ u(T, { sx: {
34126
34133
  height: "100%"
34127
34134
  }, gap: "sm", pb: "59px", children: [
34128
- /* @__PURE__ */ r(V, { pt: 9, pb: 8, sx: {
34135
+ /* @__PURE__ */ r($, { pt: 9, pb: 8, sx: {
34129
34136
  borderBottom: "1px solid #eee"
34130
34137
  }, children: /* @__PURE__ */ r(k, { size: "sm", px: "md", ta: "left", sx: {
34131
34138
  userSelect: "none",
@@ -34148,7 +34155,7 @@ const nD = D(() => {
34148
34155
  }
34149
34156
  )
34150
34157
  ] }) }),
34151
- /* @__PURE__ */ r(V, { sx: {
34158
+ /* @__PURE__ */ r($, { sx: {
34152
34159
  flexGrow: 1,
34153
34160
  overflow: "auto"
34154
34161
  }, children: /* @__PURE__ */ r(Z.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
@@ -34237,7 +34244,7 @@ const nD = D(() => {
34237
34244
  t: e
34238
34245
  } = _(), {
34239
34246
  panel: t
34240
- } = $e();
34247
+ } = Ve();
34241
34248
  return /* @__PURE__ */ r(ln, { label: e("panel.panel_description"), value: t.description, onChange: t.setDescription, styles: {
34242
34249
  root: {
34243
34250
  flexGrow: 1
@@ -34248,7 +34255,7 @@ const nD = D(() => {
34248
34255
  t: e
34249
34256
  } = _(), {
34250
34257
  panel: t
34251
- } = $e(), n = _e().layouts.findItemByPanelID(t.id), {
34258
+ } = Ve(), n = _e().layouts.findItemByPanelID(t.id), {
34252
34259
  style: a
34253
34260
  } = t;
34254
34261
  return /* @__PURE__ */ r(q, { children: /* @__PURE__ */ u(T, { gap: 20, children: [
@@ -34281,7 +34288,7 @@ const nD = D(() => {
34281
34288
  t: e
34282
34289
  } = _(), {
34283
34290
  panel: t
34284
- } = $e(), {
34291
+ } = Ve(), {
34285
34292
  name: n
34286
34293
  } = t, [a, i] = kl(n), o = n !== a, l = R.useCallback(() => {
34287
34294
  o && t.setName(a);
@@ -34298,14 +34305,14 @@ const nD = D(() => {
34298
34305
  ] }),
34299
34306
  /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", disabled: !o || s, onClick: l, children: /* @__PURE__ */ r(fe, { size: 18 }) })
34300
34307
  ] }),
34301
- /* @__PURE__ */ r($, { value: a, onChange: i, required: !0 })
34308
+ /* @__PURE__ */ r(V, { value: a, onChange: i, required: !0 })
34302
34309
  ] });
34303
34310
  }), SD = D(() => {
34304
34311
  const {
34305
34312
  t: e
34306
34313
  } = _(), {
34307
34314
  panel: t
34308
- } = $e();
34315
+ } = Ve();
34309
34316
  return /* @__PURE__ */ r(T, { gap: 6, mb: 10, children: /* @__PURE__ */ u(y, { pl: 6, justify: "flex-start", gap: 20, children: [
34310
34317
  /* @__PURE__ */ r(Z, { size: "sm", checked: t.title.show, onChange: (n) => t.title.setShow(n.currentTarget.checked), label: e("panel.show_title"), sx: {
34311
34318
  userSelect: "none"
@@ -34380,7 +34387,7 @@ function mu({
34380
34387
  columnResizeMode: "onChange",
34381
34388
  getCoreRowModel: Za()
34382
34389
  });
34383
- return e.length === 0 ? /* @__PURE__ */ r(V, { sx: {
34390
+ return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
34384
34391
  height: "5em"
34385
34392
  } }) : /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ u(w, { sx: kD, children: [
34386
34393
  /* @__PURE__ */ r(w.Thead, { children: n.getHeaderGroups().map((a) => /* @__PURE__ */ r(w.Tr, { children: a.headers.map((i) => /* @__PURE__ */ u(w.Th, { style: {
@@ -34431,7 +34438,7 @@ const zD = [{
34431
34438
  const d = s === 1 && l <= 10;
34432
34439
  return /* @__PURE__ */ u(y, { pt: 10, px: 10, justify: "space-between", children: [
34433
34440
  /* @__PURE__ */ u(y, { justify: "flex-start", children: [
34434
- s > 1 && /* @__PURE__ */ r(Vr, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
34441
+ s > 1 && /* @__PURE__ */ r($r, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
34435
34442
  control: {
34436
34443
  height: "30px"
34437
34444
  }
@@ -34462,7 +34469,7 @@ const zD = [{
34462
34469
  }, [e, n, i]);
34463
34470
  return /* @__PURE__ */ u(Te, { children: [
34464
34471
  /* @__PURE__ */ r(DD, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
34465
- /* @__PURE__ */ u(V, { py: 10, sx: {
34472
+ /* @__PURE__ */ u($, { py: 10, sx: {
34466
34473
  width: "100%",
34467
34474
  height: "calc(100% - 42px)",
34468
34475
  overflow: "auto",
@@ -34522,7 +34529,7 @@ const zD = [{
34522
34529
  /* @__PURE__ */ r(te, { variant: "subtle", color: "blue", disabled: s || h, onClick: d, children: /* @__PURE__ */ r(or, { size: 16 }) })
34523
34530
  ] })
34524
34531
  ] }),
34525
- /* @__PURE__ */ u(V, { pb: 20, sx: {
34532
+ /* @__PURE__ */ u($, { pb: 20, sx: {
34526
34533
  position: "relative",
34527
34534
  flexGrow: 1,
34528
34535
  overflow: "auto"
@@ -34536,7 +34543,7 @@ const zD = [{
34536
34543
  t
34537
34544
  } = _(), n = he(), a = oe(), {
34538
34545
  panel: i
34539
- } = $e(), [o, l] = Q(!1), s = (d) => {
34546
+ } = Ve(), [o, l] = Q(!1), s = (d) => {
34540
34547
  n.editor.setPath(["_QUERIES_", d]);
34541
34548
  }, c = i.queryIDs.length;
34542
34549
  return /* @__PURE__ */ u(q, { children: [
@@ -34550,18 +34557,18 @@ const zD = [{
34550
34557
  ] })
34551
34558
  ] })
34552
34559
  ] });
34553
- }), $D = D(() => {
34560
+ }), VD = D(() => {
34554
34561
  const {
34555
34562
  panel: e
34556
34563
  } = ot();
34557
34564
  return e.title.show ? /* @__PURE__ */ r(y, { grow: !0, justify: "center", className: "panel-title-wrapper", sx: {
34558
34565
  flexGrow: 1
34559
34566
  }, children: /* @__PURE__ */ r(k, { size: "sm", ta: "center", lineClamp: 1, className: "panel-title-text", children: e.title.show ? e.name : "" }) }) : null;
34560
- }), VD = D(() => {
34567
+ }), $D = D(() => {
34561
34568
  const {
34562
34569
  panel: e
34563
34570
  } = ot();
34564
- return /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(V, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, p: 0, sx: {
34571
+ return /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r($, { className: `panel-root ${e.title.show ? "panel-root--show-title" : ""}`, p: 0, sx: {
34565
34572
  border: "1px solid",
34566
34573
  borderColor: e.style.border.enabled ? "#e9ecef" : "transparent",
34567
34574
  flexGrow: 0,
@@ -34569,8 +34576,8 @@ const zD = [{
34569
34576
  width: "600px !important",
34570
34577
  height: "450px !important"
34571
34578
  }, children: /* @__PURE__ */ u(ms, { children: [
34572
- /* @__PURE__ */ r(V, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(Wd, {}) }),
34573
- /* @__PURE__ */ r($D, {}),
34579
+ /* @__PURE__ */ r($, { className: "panel-description-popover-wrapper", children: /* @__PURE__ */ r(Wd, {}) }),
34580
+ /* @__PURE__ */ r(VD, {}),
34574
34581
  /* @__PURE__ */ r(eu, { panel: e })
34575
34582
  ] }) }) });
34576
34583
  });
@@ -34627,7 +34634,7 @@ function ED() {
34627
34634
  description: l,
34628
34635
  id: s
34629
34636
  }
34630
- } = $e(), {
34637
+ } = Ve(), {
34631
34638
  vizManager: c
34632
34639
  } = Jt(nn), d = {
34633
34640
  name: i,
@@ -34649,7 +34656,7 @@ const OD = D(() => {
34649
34656
  panel: {
34650
34657
  viz: t
34651
34658
  }
34652
- } = $e(), {
34659
+ } = Ve(), {
34653
34660
  vizManager: n
34654
34661
  } = Jt(nn), a = R.useCallback((d) => {
34655
34662
  if (d === t.type)
@@ -34823,7 +34830,7 @@ class ND {
34823
34830
  function BD() {
34824
34831
  const {
34825
34832
  panel: e
34826
- } = $e();
34833
+ } = Ve();
34827
34834
  return Ft(() => new ND(e), [e]);
34828
34835
  }
34829
34836
  const jD = R.forwardRef(function({
@@ -34842,7 +34849,7 @@ const jD = R.forwardRef(function({
34842
34849
  border: "1px solid #e9ecef"
34843
34850
  }, children: [
34844
34851
  /* @__PURE__ */ u(y, { grow: !0, wrap: "nowrap", children: [
34845
- /* @__PURE__ */ r($, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
34852
+ /* @__PURE__ */ r(V, { label: o("common.name"), required: !0, value: t.name, onChange: (s) => l("name", s.currentTarget.value) }),
34846
34853
  /* @__PURE__ */ r(X, { label: o("common.data_field"), required: !0, value: t.data_field, onChange: (s) => l("data_field", s) })
34847
34854
  ] }),
34848
34855
  /* @__PURE__ */ r(Ci, { label: o("panel.variable.aggregation.label"), pt: 0, value: t.aggregation, onChange: (s) => l("aggregation", s), withFallback: !0 }),
@@ -34926,7 +34933,7 @@ const HD = D(({
34926
34933
  height: "100%",
34927
34934
  position: "relative"
34928
34935
  }, children: [
34929
- /* @__PURE__ */ r(V, { sx: {
34936
+ /* @__PURE__ */ r($, { sx: {
34930
34937
  maxWidth: "calc(100% - 610px - 10px)",
34931
34938
  height: "100%",
34932
34939
  overflow: "auto"
@@ -34937,8 +34944,8 @@ const HD = D(({
34937
34944
  flexGrow: 0,
34938
34945
  flexShrink: 0
34939
34946
  }, children: [
34940
- /* @__PURE__ */ r(VD, {}),
34941
- /* @__PURE__ */ r(V, { sx: {
34947
+ /* @__PURE__ */ r($D, {}),
34948
+ /* @__PURE__ */ r($, { sx: {
34942
34949
  flexGrow: 1
34943
34950
  }, children: /* @__PURE__ */ r(qD, {}) })
34944
34951
  ] })
@@ -34996,7 +35003,7 @@ const KD = D(({
34996
35003
  /* @__PURE__ */ r(S.Tab, { value: "Data", leftSection: /* @__PURE__ */ r(on, { size: 14 }), disabled: d, children: t("data.label") }),
34997
35004
  /* @__PURE__ */ r(S.Tab, { value: "Panel", leftSection: /* @__PURE__ */ r(ja, { size: 14 }), children: t("panel.label") }),
34998
35005
  /* @__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") }) }) }),
34999
- /* @__PURE__ */ r(S.Tab, { value: "Visualization", leftSection: /* @__PURE__ */ r($l, { 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") }) }) }),
35006
+ /* @__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") }) }) }),
35000
35007
  /* @__PURE__ */ r(S.Tab, { value: "Interactions", leftSection: /* @__PURE__ */ r(Qa, { size: 14 }), children: t("interactions.label") })
35001
35008
  ] }),
35002
35009
  /* @__PURE__ */ u(S.Panel, { value: "Data", children: [
@@ -35058,7 +35065,7 @@ const KD = D(({
35058
35065
  return /* @__PURE__ */ u(T, { sx: {
35059
35066
  height: "100%"
35060
35067
  }, gap: "sm", pb: "59px", children: [
35061
- /* @__PURE__ */ r(V, { pt: 9, pb: 8, sx: {
35068
+ /* @__PURE__ */ r($, { pt: 9, pb: 8, sx: {
35062
35069
  borderBottom: "1px solid #eee"
35063
35070
  }, children: /* @__PURE__ */ r(k, { px: "md", ta: "left", sx: {
35064
35071
  userSelect: "none",
@@ -35084,7 +35091,7 @@ const KD = D(({
35084
35091
  ] }),
35085
35092
  /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", color: "red", leftSection: /* @__PURE__ */ r(Pe, { size: 14 }), disabled: !i.content.hasUnusedQueries, onClick: l, children: e("query.delete_unused") })
35086
35093
  ] }),
35087
- /* @__PURE__ */ r(V, { sx: {
35094
+ /* @__PURE__ */ r($, { sx: {
35088
35095
  flexGrow: 1,
35089
35096
  overflow: "auto"
35090
35097
  }, children: /* @__PURE__ */ r(Z.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
@@ -35161,7 +35168,7 @@ const KD = D(({
35161
35168
  hover: !0,
35162
35169
  focus: !1,
35163
35170
  touch: !1
35164
- }, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r(V, { sx: {
35171
+ }, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r($, { sx: {
35165
35172
  alignSelf: "flex-end"
35166
35173
  }, children: /* @__PURE__ */ r(L, { disabled: !0, size: "xs", leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), children: t("query.delete") }) }) }) : /* @__PURE__ */ r(L, { color: "red", size: "xs", onClick: c, leftSection: /* @__PURE__ */ r(Pe, { size: 16 }), sx: {
35167
35174
  alignSelf: "flex-end"
@@ -35375,7 +35382,7 @@ const lI = D(({
35375
35382
  const t = e.dbInfo, {
35376
35383
  tables: n
35377
35384
  } = t;
35378
- return n.loading ? /* @__PURE__ */ r(gu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r(V, { h: "100%", sx: {
35385
+ return n.loading ? /* @__PURE__ */ r(gu, { height: "24px", lastWidth: "50%", count: 15 }) : /* @__PURE__ */ r($, { h: "100%", sx: {
35379
35386
  overflow: "auto",
35380
35387
  ".mantine-NavLink-label": {
35381
35388
  fontFamily: "monospace"
@@ -35385,7 +35392,7 @@ const lI = D(({
35385
35392
  }, active: t.table_name === o.table_name }, o.table_name)) }, a)) });
35386
35393
  }), sI = ({
35387
35394
  visible: e
35388
- }) => /* @__PURE__ */ r(V, { py: 10, sx: {
35395
+ }) => /* @__PURE__ */ r($, { py: 10, sx: {
35389
35396
  width: "100%",
35390
35397
  height: "100%",
35391
35398
  overflow: "hidden",
@@ -35422,7 +35429,7 @@ const lI = D(({
35422
35429
  } = e.dbInfo;
35423
35430
  return /* @__PURE__ */ u(y, { pt: 10, px: 10, justify: "space-between", children: [
35424
35431
  /* @__PURE__ */ u(y, { justify: "flex-start", children: [
35425
- n.maxPage > 1 && /* @__PURE__ */ r(Vr, { size: "sm", value: n.page, onChange: n.setPage, total: n.maxPage, withEdges: n.maxPage > 7, styles: {
35432
+ n.maxPage > 1 && /* @__PURE__ */ r($r, { size: "sm", value: n.page, onChange: n.setPage, total: n.maxPage, withEdges: n.maxPage > 7, styles: {
35426
35433
  control: {
35427
35434
  height: "30px"
35428
35435
  }
@@ -35441,7 +35448,7 @@ const lI = D(({
35441
35448
  const t = e.dbInfo.tableData;
35442
35449
  return t.maxPage === 0 ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: "This table is empty" }) : t.error ? /* @__PURE__ */ r(k, { mt: 20, c: "red", size: "md", ta: "center", ff: "monospace", children: t.error }) : t.page === 1 && t.loading ? /* @__PURE__ */ r(sI, { visible: !0 }) : /* @__PURE__ */ u(Te, { children: [
35443
35450
  /* @__PURE__ */ r(uI, { dataSource: e }),
35444
- /* @__PURE__ */ u(V, { py: 10, sx: {
35451
+ /* @__PURE__ */ u($, { py: 10, sx: {
35445
35452
  width: "100%",
35446
35453
  height: "calc(100% - 42px)",
35447
35454
  overflow: "auto",
@@ -35476,7 +35483,7 @@ const lI = D(({
35476
35483
  }, [n]), n.tables.error ? /* @__PURE__ */ r(k, { c: "red", size: "md", ta: "center", ff: "monospace", children: n.tables.error }) : /* @__PURE__ */ u(rt, { sx: {
35477
35484
  height: "100%"
35478
35485
  }, children: [
35479
- /* @__PURE__ */ r(V, { w: 300, sx: {
35486
+ /* @__PURE__ */ r($, { w: 300, sx: {
35480
35487
  flexGrow: 0,
35481
35488
  flexShrink: 0,
35482
35489
  position: "relative"
@@ -35535,7 +35542,7 @@ const lI = D(({
35535
35542
  to: "red"
35536
35543
  }, children: e.type })
35537
35544
  ] })
35538
- ] }), zIndex: 320, size: "96vw", styles: gI, children: /* @__PURE__ */ r(V, { sx: {
35545
+ ] }), zIndex: 320, size: "96vw", styles: gI, children: /* @__PURE__ */ r($, { sx: {
35539
35546
  height: "calc(100vh - 220px)"
35540
35547
  }, children: /* @__PURE__ */ r(mI, { dataSource: e }) }) }),
35541
35548
  /* @__PURE__ */ r(L, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
@@ -35605,7 +35612,7 @@ const lI = D(({
35605
35612
  key: e.key
35606
35613
  }), [a, e.type, e.key]);
35607
35614
  return /* @__PURE__ */ r(F, { size: t, data: l, label: /* @__PURE__ */ u(y, { justify: "space-between", children: [
35608
- /* @__PURE__ */ r(V, { children: n("data_source.label") }),
35615
+ /* @__PURE__ */ r($, { children: n("data_source.label") }),
35609
35616
  d && /* @__PURE__ */ r(fu, { dataSource: d, triggerButtonProps: {
35610
35617
  size: "compact-xs",
35611
35618
  px: 10
@@ -35646,7 +35653,7 @@ const lI = D(({
35646
35653
  width: "100%"
35647
35654
  }, children: [
35648
35655
  /* @__PURE__ */ r(A, { mb: -10, variant: "dashed", label: t("query.basics"), labelPosition: "center" }),
35649
- /* @__PURE__ */ r($, { placeholder: t("query.name_description"), label: t("query.name"), required: !0, sx: {
35656
+ /* @__PURE__ */ r(V, { placeholder: t("query.name_description"), label: t("query.name"), required: !0, sx: {
35650
35657
  flex: 1
35651
35658
  }, value: n, onChange: (o) => {
35652
35659
  a(o.currentTarget.value);
@@ -35803,8 +35810,8 @@ WHERE
35803
35810
  /* @__PURE__ */ r(w.Td, { children: t(l.type_label) }),
35804
35811
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ r(Rn, { size: "sm", component: "button", type: "button", onClick: () => a(l), children: l.label }) }),
35805
35812
  /* @__PURE__ */ r(w.Td, { children: /* @__PURE__ */ u(T, { align: "flex-start", justify: "flex-start", gap: 2, children: [
35806
- l.views.map((s) => /* @__PURE__ */ r(Rn, { size: "sm", component: "button", type: "button", onClick: () => i(s.id), children: /* @__PURE__ */ r(V, { children: s.label }) }, s.id)),
35807
- l.views.length === 0 && /* @__PURE__ */ r(V, { children: "--" })
35813
+ l.views.map((s) => /* @__PURE__ */ r(Rn, { size: "sm", component: "button", type: "button", onClick: () => i(s.id), children: /* @__PURE__ */ r($, { children: s.label }) }, s.id)),
35814
+ l.views.length === 0 && /* @__PURE__ */ r($, { children: "--" })
35808
35815
  ] }) })
35809
35816
  ] }, l.id)) })
35810
35817
  ] });
@@ -35823,7 +35830,7 @@ WHERE
35823
35830
  svg: {
35824
35831
  verticalAlign: "middle"
35825
35832
  }
35826
- }, children: l.map((s) => /* @__PURE__ */ r(Ue.Item, { icon: /* @__PURE__ */ r(V, { sx: {
35833
+ }, children: l.map((s) => /* @__PURE__ */ r(Ue.Item, { icon: /* @__PURE__ */ r($, { sx: {
35827
35834
  path: {
35828
35835
  fill: s.valid ? "rgb(18, 184, 134)" : "rgb(250, 82, 82)"
35829
35836
  }
@@ -35943,7 +35950,7 @@ WHERE
35943
35950
  /* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.pick_queries") }),
35944
35951
  /* @__PURE__ */ r(Kt, { data: n.queries.optionsWithoutTransform, value: [...a.dep_query_ids], onChange: a.setDependantQueryIDs, maxDropdownHeight: 800 }),
35945
35952
  /* @__PURE__ */ r(k, { size: "sm", children: t("query.transform.guide.write_function") }),
35946
- /* @__PURE__ */ r(V, { sx: {
35953
+ /* @__PURE__ */ r($, { sx: {
35947
35954
  flexGrow: 1
35948
35955
  }, children: /* @__PURE__ */ r(Cn, { label: "", value: e.pre_process, onChange: e.setPreProcess, defaultValue: DI.pre }) })
35949
35956
  ] });
@@ -36012,14 +36019,14 @@ WHERE
36012
36019
  /* @__PURE__ */ r("path", { d: "M6.66665 6.66699C7.03484 6.66699 7.33331 6.96547 7.33331 7.33366V11.3337C7.33331 11.7018 7.03484 12.0003 6.66665 12.0003C6.29846 12.0003 5.99998 11.7018 5.99998 11.3337V7.33366C5.99998 6.96547 6.29846 6.66699 6.66665 6.66699Z", fill: n }),
36013
36020
  /* @__PURE__ */ r("path", { d: "M9.99998 11.3337V7.33366C9.99998 6.96547 9.7015 6.66699 9.33331 6.66699C8.96512 6.66699 8.66665 6.96547 8.66665 7.33366V11.3337C8.66665 11.7018 8.96512 12.0003 9.33331 12.0003C9.7015 12.0003 9.99998 11.7018 9.99998 11.3337Z", fill: n }),
36014
36021
  /* @__PURE__ */ r("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M4.66665 3.33366V2.66699C4.66665 2.13656 4.87736 1.62785 5.25243 1.25278C5.62751 0.877706 6.13621 0.666992 6.66665 0.666992H9.33331C9.86375 0.666992 10.3725 0.877706 10.7475 1.25278C11.1226 1.62785 11.3333 2.13656 11.3333 2.66699V3.33366H14C14.3682 3.33366 14.6666 3.63214 14.6666 4.00033C14.6666 4.36852 14.3682 4.66699 14 4.66699H13.3333V13.3337C13.3333 13.8641 13.1226 14.3728 12.7475 14.7479C12.3725 15.1229 11.8637 15.3337 11.3333 15.3337H4.66665C4.13621 15.3337 3.62751 15.1229 3.25243 14.7479C2.87736 14.3728 2.66665 13.8641 2.66665 13.3337V4.66699H1.99998C1.63179 4.66699 1.33331 4.36852 1.33331 4.00033C1.33331 3.63214 1.63179 3.33366 1.99998 3.33366H4.66665ZM6.19524 2.19559C6.32027 2.07056 6.48984 2.00033 6.66665 2.00033H9.33331C9.51012 2.00033 9.67969 2.07056 9.80472 2.19559C9.92974 2.32061 9.99998 2.49018 9.99998 2.66699V3.33366H5.99998V2.66699C5.99998 2.49018 6.07022 2.32061 6.19524 2.19559ZM3.99998 4.66699V13.3337C3.99998 13.5105 4.07022 13.68 4.19524 13.8051C4.32027 13.9301 4.48984 14.0003 4.66665 14.0003H11.3333C11.5101 14.0003 11.6797 13.9301 11.8047 13.8051C11.9297 13.68 12 13.5105 12 13.3337V4.66699H3.99998Z", fill: n })
36015
- ] }), $I = ({
36022
+ ] }), VI = ({
36016
36023
  width: e,
36017
36024
  height: t
36018
36025
  }) => /* @__PURE__ */ u("svg", { viewBox: "0 0 18 18", fill: "none", width: e, height: t, children: [
36019
36026
  /* @__PURE__ */ r("path", { d: "M7.5 3.75C7.5 2.92157 8.17157 2.25 9 2.25C9.82843 2.25 10.5 2.92157 10.5 3.75C10.5 4.57843 9.82843 5.25 9 5.25C8.17157 5.25 7.5 4.57843 7.5 3.75Z", fill: "#3D3E45" }),
36020
36027
  /* @__PURE__ */ r("path", { d: "M7.5 9C7.5 8.17157 8.17157 7.5 9 7.5C9.82843 7.5 10.5 8.17157 10.5 9C10.5 9.82843 9.82843 10.5 9 10.5C8.17157 10.5 7.5 9.82843 7.5 9Z", fill: "#3D3E45" }),
36021
36028
  /* @__PURE__ */ r("path", { d: "M9 12.75C8.17157 12.75 7.5 13.4216 7.5 14.25C7.5 15.0784 8.17157 15.75 9 15.75C9.82843 15.75 10.5 15.0784 10.5 14.25C10.5 13.4216 9.82843 12.75 9 12.75Z", fill: "#3D3E45" })
36022
- ] }), VI = D(({
36029
+ ] }), $I = D(({
36023
36030
  queryModel: e
36024
36031
  }) => {
36025
36032
  const {
@@ -36051,8 +36058,8 @@ WHERE
36051
36058
  }), PI = D(({
36052
36059
  queryModel: e
36053
36060
  }) => /* @__PURE__ */ u(W, { shadow: "md", width: 120, trigger: "hover", children: [
36054
- /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(te, { variant: "subtle", "aria-label": "Settings", children: /* @__PURE__ */ r($I, { width: 18, height: 18 }) }) }),
36055
- /* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r(VI, { queryModel: e }) })
36061
+ /* @__PURE__ */ r(W.Target, { children: /* @__PURE__ */ r(te, { variant: "subtle", "aria-label": "Settings", children: /* @__PURE__ */ r(VI, { width: 18, height: 18 }) }) }),
36062
+ /* @__PURE__ */ r(W.Dropdown, { children: /* @__PURE__ */ r($I, { queryModel: e }) })
36056
36063
  ] })), AI = {
36057
36064
  width: "fit-content",
36058
36065
  minWidth: "100%",
@@ -36106,7 +36113,7 @@ function RI({
36106
36113
  columnResizeMode: "onChange",
36107
36114
  getCoreRowModel: Za()
36108
36115
  });
36109
- return e.length === 0 ? /* @__PURE__ */ r(V, { sx: {
36116
+ return e.length === 0 ? /* @__PURE__ */ r($, { sx: {
36110
36117
  height: "5em"
36111
36118
  } }) : /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ u(w, { sx: AI, stickyHeader: !0, stickyHeaderOffset: 0, children: [
36112
36119
  /* @__PURE__ */ r(w.Thead, { style: {
@@ -36174,7 +36181,7 @@ const EI = [{
36174
36181
  onChange: c
36175
36182
  }
36176
36183
  ),
36177
- s > 1 && /* @__PURE__ */ r(Vr, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
36184
+ s > 1 && /* @__PURE__ */ r($r, { size: "sm", value: t, onChange: n, total: s, withEdges: s > 7, styles: {
36178
36185
  control: {
36179
36186
  height: "30px"
36180
36187
  }
@@ -36199,7 +36206,7 @@ const EI = [{
36199
36206
  }
36200
36207
  }, children: [
36201
36208
  /* @__PURE__ */ r(FI, { data: e, page: n, setPage: a, limit: i, setLimit: o }),
36202
- /* @__PURE__ */ u(V, { sx: {
36209
+ /* @__PURE__ */ u($, { sx: {
36203
36210
  width: "100%",
36204
36211
  height: "calc(100% - 42px)",
36205
36212
  overflow: "auto",
@@ -36249,7 +36256,7 @@ const EI = [{
36249
36256
  /* @__PURE__ */ r(k, { size: "sm", fw: 500, children: "查询结果" }),
36250
36257
  /* @__PURE__ */ r(L, { size: "xs", variant: "transparent", color: "gray", leftSection: /* @__PURE__ */ r(or, { size: 16 }), disabled: a || l, onClick: o, children: "下载查询结果" })
36251
36258
  ] }),
36252
- /* @__PURE__ */ u(V, { sx: {
36259
+ /* @__PURE__ */ u($, { sx: {
36253
36260
  position: "relative",
36254
36261
  flexGrow: 1,
36255
36262
  overflow: "hidden"
@@ -36601,15 +36608,15 @@ const EI = [{
36601
36608
  t.setTimeQueryEnabled(!0);
36602
36609
  return;
36603
36610
  }
36604
- }, [i.requireTrendingReason, l]), i.supportTrending ? i.requireTrendingReason ? /* @__PURE__ */ r(re, { label: i.requireTrendingReason, children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(ke, { size: "xs", color: "red", checked: !0, readOnly: !0, styles: {
36611
+ }, [i.requireTrendingReason, l]), i.supportTrending ? i.requireTrendingReason ? /* @__PURE__ */ r(re, { label: i.requireTrendingReason, children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Ce, { size: "xs", color: "red", checked: !0, readOnly: !0, styles: {
36605
36612
  track: {
36606
36613
  cursor: "not-allowed"
36607
36614
  }
36608
- } }) }) }) : /* @__PURE__ */ r(ke, { size: "xs", color: "red", checked: l, onChange: (s) => t.setTimeQueryEnabled(s.currentTarget.checked), styles: {
36615
+ } }) }) }) : /* @__PURE__ */ r(Ce, { size: "xs", color: "red", checked: l, onChange: (s) => t.setTimeQueryEnabled(s.currentTarget.checked), styles: {
36609
36616
  track: {
36610
36617
  cursor: "pointer"
36611
36618
  }
36612
- } }) : /* @__PURE__ */ r(re, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(ke, { size: "xs", color: "red", disabled: !o }) }) });
36619
+ } }) : /* @__PURE__ */ r(re, { label: "由于指标未设定时序维度,所以不具备时间序列展示功能。", children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(Ce, { size: "xs", color: "red", disabled: !o }) }) });
36613
36620
  }), n8 = D(({
36614
36621
  queryModel: e
36615
36622
  }) => {
@@ -36713,7 +36720,10 @@ const EI = [{
36713
36720
  }) : h.push(p.value);
36714
36721
  }), t.setGroupBys(h);
36715
36722
  };
36716
- return /* @__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 });
36723
+ return /* @__PURE__ */ u(q, { children: [
36724
+ /* @__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 }),
36725
+ /* @__PURE__ */ r(Ce, { labelPosition: "left", label: "聚合维度为空时,自动补零", size: "sm", color: "red", checked: t.useDefaultValues, onChange: (c) => t.setUseDefaultValues(c.currentTarget.checked), disabled: l.length === 0 })
36726
+ ] });
36717
36727
  }), l8 = D(({
36718
36728
  queryModel: e
36719
36729
  }) => {
@@ -36767,7 +36777,7 @@ const EI = [{
36767
36777
  }) => {
36768
36778
  const t = e.metricQueryPayloadError;
36769
36779
  return t.length > 0 ? /* @__PURE__ */ u(ge, { shadow: "md", children: [
36770
- /* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r(V, { children: /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ll, { width: 14, height: 14, color: "rgb(173, 181, 189)" }), variant: "filled", color: "red", disabled: !0, children: "执行查询" }) }) }),
36780
+ /* @__PURE__ */ r(ge.Target, { children: /* @__PURE__ */ r($, { children: /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ll, { width: 14, height: 14, color: "rgb(173, 181, 189)" }), variant: "filled", color: "red", disabled: !0, children: "执行查询" }) }) }),
36771
36781
  /* @__PURE__ */ r(ge.Dropdown, { children: /* @__PURE__ */ r(Ue, { size: "xs", children: t.map((n) => /* @__PURE__ */ r(Ue.Item, { children: n }, n)) }) })
36772
36782
  ] }) : /* @__PURE__ */ r(L, { size: "xs", leftSection: /* @__PURE__ */ r(ll, { width: 14, height: 14 }), variant: "filled", color: "red", onClick: () => e.fetchData(!0), children: "执行查询" });
36773
36783
  }), h8 = ({
@@ -36847,7 +36857,7 @@ const EI = [{
36847
36857
  flexGrow: 0,
36848
36858
  flexShrink: 0
36849
36859
  }
36850
- }, children: /* @__PURE__ */ r($, { size: "xs", placeholder: t("query.name_description"), label: t("query.name"), value: e.name, onChange: (n) => {
36860
+ }, children: /* @__PURE__ */ r(V, { size: "xs", placeholder: t("query.name_description"), label: t("query.name"), value: e.name, onChange: (n) => {
36851
36861
  e.setName(n.currentTarget.value);
36852
36862
  }, styles: {
36853
36863
  root: {
@@ -36927,7 +36937,7 @@ const EI = [{
36927
36937
  /* @__PURE__ */ u(y, { sx: {
36928
36938
  alignItems: "end"
36929
36939
  }, gap: 40, children: [
36930
- /* @__PURE__ */ r($, { label: a(h ? "sql_snippet.key_occupied" : "sql_snippet.key"), value: l, onChange: (M) => {
36940
+ /* @__PURE__ */ r(V, { label: a(h ? "sql_snippet.key_occupied" : "sql_snippet.key"), value: l, onChange: (M) => {
36931
36941
  s(M.currentTarget.value);
36932
36942
  }, sx: {
36933
36943
  flexGrow: "1 !important"
@@ -37007,7 +37017,7 @@ const EI = [{
37007
37017
  return /* @__PURE__ */ u(T, { sx: {
37008
37018
  height: "100%"
37009
37019
  }, gap: "sm", pb: "59px", children: [
37010
- /* @__PURE__ */ r(V, { pt: 9, pb: 8, sx: {
37020
+ /* @__PURE__ */ r($, { pt: 9, pb: 8, sx: {
37011
37021
  borderBottom: "1px solid #eee"
37012
37022
  }, children: /* @__PURE__ */ r(k, { size: "sm", px: "md", ta: "left", sx: {
37013
37023
  userSelect: "none",
@@ -37033,7 +37043,7 @@ const EI = [{
37033
37043
  ] }),
37034
37044
  /* @__PURE__ */ r(L, { variant: "subtle", size: "xs", color: "red", leftSection: /* @__PURE__ */ r(Pe, { size: 14 }), disabled: !i.content.hasUnusedSQLSnippets, onClick: l, children: e("sql_snippet.delete_unused") })
37035
37045
  ] }),
37036
- /* @__PURE__ */ r(V, { sx: {
37046
+ /* @__PURE__ */ r($, { sx: {
37037
37047
  flexGrow: 1,
37038
37048
  overflow: "auto"
37039
37049
  }, children: /* @__PURE__ */ r(Z.Group, { size: "xs", value: t, onChange: n, children: /* @__PURE__ */ u(w, { fz: "sm", highlightOnHover: !0, sx: {
@@ -37104,13 +37114,13 @@ const EI = [{
37104
37114
  /* @__PURE__ */ r(A, { mt: 8, mb: 0, label: t("view.component.tabs.tabs_settings"), labelPosition: "center" }),
37105
37115
  /* @__PURE__ */ r(F, { label: t("common.tabs.variant.label"), value: o.variant, onChange: o.setVariant, data: a }),
37106
37116
  /* @__PURE__ */ r(F, { label: t("common.tabs.orientation.label"), value: o.orientation, onChange: o.setOrientation, data: i }),
37107
- /* @__PURE__ */ r(ke, { label: t("common.tabs.grow_tabs"), checked: o.grow, onChange: (l) => o.setGrow(l.currentTarget.checked) })
37117
+ /* @__PURE__ */ r(Ce, { label: t("common.tabs.grow_tabs"), checked: o.grow, onChange: (l) => o.setGrow(l.currentTarget.checked) })
37108
37118
  ] });
37109
37119
  }), w8 = ({
37110
37120
  disabled: e,
37111
37121
  value: t,
37112
37122
  onChange: n
37113
- }) => /* @__PURE__ */ u(V, { sx: {
37123
+ }) => /* @__PURE__ */ u($, { sx: {
37114
37124
  position: "relative"
37115
37125
  }, children: [
37116
37126
  e && /* @__PURE__ */ r(dn, { backgroundOpacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
@@ -37184,14 +37194,14 @@ const EI = [{
37184
37194
  return /* @__PURE__ */ u(T, { children: [
37185
37195
  /* @__PURE__ */ r(A, { mt: 8, label: t("view.component.modal.modal_settings"), labelPosition: "center" }),
37186
37196
  /* @__PURE__ */ u(rt, { gap: 10, children: [
37187
- /* @__PURE__ */ r($, { label: t("view.component.modal.title"), value: a, onChange: C.noop, disabled: !0, sx: {
37197
+ /* @__PURE__ */ r(V, { label: t("view.component.modal.title"), value: a, onChange: C.noop, disabled: !0, sx: {
37188
37198
  flexGrow: 1
37189
37199
  } }),
37190
37200
  /* @__PURE__ */ r(S8, { value: n.custom_modal_title, onChange: n.custom_modal_title.replace })
37191
37201
  ] }),
37192
37202
  /* @__PURE__ */ u(y, { grow: !0, children: [
37193
- /* @__PURE__ */ r($, { label: t("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
37194
- /* @__PURE__ */ r($, { label: t("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
37203
+ /* @__PURE__ */ r(V, { label: t("view.component.modal.width"), value: n.width, onChange: (i) => n.setWidth(i.currentTarget.value), placeholder: "600px / 50vw" }),
37204
+ /* @__PURE__ */ r(V, { label: t("view.component.modal.height"), value: n.height, onChange: (i) => n.setHeight(i.currentTarget.value), placeholder: "600px / 50vw" })
37195
37205
  ] })
37196
37206
  ] });
37197
37207
  }), k8 = D(({
@@ -37219,7 +37229,7 @@ const EI = [{
37219
37229
  return e ? /* @__PURE__ */ u(T, { sx: {
37220
37230
  position: "relative"
37221
37231
  }, children: [
37222
- /* @__PURE__ */ r($, { label: t("common.name"), value: e.name, onChange: (i) => {
37232
+ /* @__PURE__ */ r(V, { label: t("common.name"), value: e.name, onChange: (i) => {
37223
37233
  e.setName(i.currentTarget.value);
37224
37234
  } }),
37225
37235
  /* @__PURE__ */ r(F, { label: t("common.type"), comboboxProps: {
@@ -37267,7 +37277,7 @@ const EI = [{
37267
37277
  zIndex: 320
37268
37278
  });
37269
37279
  }, children: t("view.delete") }) }),
37270
- /* @__PURE__ */ r(V, { sx: {
37280
+ /* @__PURE__ */ r($, { sx: {
37271
37281
  flexGrow: 1,
37272
37282
  maxHeight: "calc(100% - 52px)",
37273
37283
  overflow: "auto"
@@ -37277,7 +37287,7 @@ const EI = [{
37277
37287
  height: "100%"
37278
37288
  }, p: "sm", children: /* @__PURE__ */ r(_u, {}) })), I8 = D(() => {
37279
37289
  const e = he().editor, t = e.path;
37280
- return q4(t) ? /* @__PURE__ */ r(D8, {}) : N4(t) ? /* @__PURE__ */ r(yD, {}) : B4(t) ? /* @__PURE__ */ r(bD, {}) : j4(t) ? /* @__PURE__ */ r(V, { 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(V, { p: "xs", pl: 20, children: /* @__PURE__ */ r(T8, { id: t[1] }) }) : Ia(t) ? /* @__PURE__ */ r(YD, { viewID: t[1], panelID: t[3] }) : /* @__PURE__ */ r(V, { children: e.path });
37290
+ 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 });
37281
37291
  }), M8 = D(() => /* @__PURE__ */ r(I8, {})), L8 = D(() => {
37282
37292
  const {
37283
37293
  t: e
@@ -37302,7 +37312,7 @@ const EI = [{
37302
37312
  justifyContent: "flex-start"
37303
37313
  }
37304
37314
  }, children: e("filter.add") });
37305
- }), $8 = D(({
37315
+ }), V8 = D(({
37306
37316
  parentID: e
37307
37317
  }) => {
37308
37318
  const {
@@ -37319,7 +37329,7 @@ const EI = [{
37319
37329
  justifyContent: "flex-start"
37320
37330
  }
37321
37331
  }, children: t("panel.add") });
37322
- }), V8 = D(() => {
37332
+ }), $8 = D(() => {
37323
37333
  const {
37324
37334
  t: e
37325
37335
  } = _(), t = he();
@@ -37415,7 +37425,7 @@ const EI = [{
37415
37425
  }), F8 = D(({
37416
37426
  action_type: e,
37417
37427
  parentID: t
37418
- }) => e === "_Add_A_Filter_" ? /* @__PURE__ */ r(L8, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r(P8, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ r(V8, {}) : e === "_Add_A_VIEW_" ? /* @__PURE__ */ r(A8, {}) : e === "_Add_A_PANEL_" ? /* @__PURE__ */ r($8, { parentID: t }) : e === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r(R8, {}) : e === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r(E8, {}) : e === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r(O8, {}) : null), wu = D(({
37428
+ }) => e === "_Add_A_Filter_" ? /* @__PURE__ */ r(L8, {}) : e === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ r(P8, {}) : e === "_Add_A_QUERY_" ? /* @__PURE__ */ r($8, {}) : e === "_Add_A_VIEW_" ? /* @__PURE__ */ r(A8, {}) : e === "_Add_A_PANEL_" ? /* @__PURE__ */ r(V8, { parentID: t }) : e === "_QUERIES_SETTINGS_" ? /* @__PURE__ */ r(R8, {}) : e === "_SQL_SNIPPETS_SETTINGS_" ? /* @__PURE__ */ r(E8, {}) : e === "_FILTERS_SETTINGS_" ? /* @__PURE__ */ r(O8, {}) : null), wu = D(({
37419
37429
  option: e
37420
37430
  }) => {
37421
37431
  var h;
@@ -37427,7 +37437,7 @@ const EI = [{
37427
37437
  }, [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);
37428
37438
  }), q8 = D(() => {
37429
37439
  const e = he();
37430
- return /* @__PURE__ */ r(V, { sx: {
37440
+ return /* @__PURE__ */ r($, { sx: {
37431
37441
  position: "relative"
37432
37442
  }, children: e.editor.navOptions.map((t) => /* @__PURE__ */ r(wu, { option: t }, t.value)) });
37433
37443
  }), N8 = D(() => {
@@ -37620,7 +37630,7 @@ const W8 = {
37620
37630
  }, styles: W8, children: [
37621
37631
  /* @__PURE__ */ r(M6, { onExit: h, saveDashboardChanges: I, headerSlot: s }),
37622
37632
  /* @__PURE__ */ r(rD, {}),
37623
- /* @__PURE__ */ r(Je.Main, { children: /* @__PURE__ */ r(V, { className: `${i} dashboard-root`, sx: {
37633
+ /* @__PURE__ */ r(Je.Main, { children: /* @__PURE__ */ r($, { className: `${i} dashboard-root`, sx: {
37624
37634
  position: "relative"
37625
37635
  }, children: v.content.views.visibleViews.map((E) => /* @__PURE__ */ r(b4, { view: E }, E.id)) }) })
37626
37636
  ] }),
@@ -37669,7 +37679,7 @@ const Su = m.model({
37669
37679
  return this.json.content;
37670
37680
  },
37671
37681
  get payloadForSQL() {
37672
- const t = Ce(e).context.current, n = Ce(e).globalSQLSnippets, a = {
37682
+ const t = ke(e).context.current, n = ke(e).globalSQLSnippets, a = {
37673
37683
  context: {
37674
37684
  ...e.mock_context.current,
37675
37685
  ...t
@@ -37683,7 +37693,7 @@ const Su = m.model({
37683
37693
  };
37684
37694
  },
37685
37695
  get payloadForViz() {
37686
- const t = Ce(e).context.current;
37696
+ const t = ke(e).context.current;
37687
37697
  return {
37688
37698
  context: {
37689
37699
  ...e.mock_context.current,
@@ -37879,8 +37889,8 @@ const Z8 = ({
37879
37889
  setFullScreenPanelID: l
37880
37890
  }, children: /* @__PURE__ */ r(Qr.Provider, { value: {
37881
37891
  inEditMode: !1
37882
- }, children: /* @__PURE__ */ r(V, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(nn.Provider, { value: v, children: /* @__PURE__ */ r(Gr, { configure: I, children: x.content.views.visibleViews.map((M) => /* @__PURE__ */ r(Xi, { view: M }, M.id)) }) }) }) }) }) }) }) }) }) }) }) });
37883
- }, sL = D(Z8), cL = () => Promise.resolve().then(() => Vm).then(({
37892
+ }, children: /* @__PURE__ */ r($, { className: `${a} dashboard-root`, children: /* @__PURE__ */ r(nn.Provider, { value: v, children: /* @__PURE__ */ r(Gr, { configure: I, children: x.content.views.visibleViews.map((M) => /* @__PURE__ */ r(Xi, { view: M }, M.id)) }) }) }) }) }) }) }) }) }) }) }) });
37893
+ }, sL = D(Z8), cL = () => Promise.resolve().then(() => $m).then(({
37884
37894
  version: e
37885
37895
  }) => (console.log(`[@devtable/dashboard] version: ${e}`), e));
37886
37896
  export {
@@ -37986,9 +37996,9 @@ export {
37986
37996
  h5 as createFilterSelectConfig,
37987
37997
  ud as createFilterTextInputConfig,
37988
37998
  L5 as createFilterTreeSelectConfig,
37989
- $5 as createFilterTreeSingleSelectConfig,
37999
+ V5 as createFilterTreeSingleSelectConfig,
37990
38000
  n5 as createMericoMetricQueryMetaConfig,
37991
- V5 as createViewDivisionConfig,
38001
+ $5 as createViewDivisionConfig,
37992
38002
  A5 as createViewModalConfig,
37993
38003
  E5 as createViewTabsConfig,
37994
38004
  Gz as facadeApiClient,
@@ -38012,7 +38022,7 @@ export {
38012
38022
  Ym as useDashboardThemeContext,
38013
38023
  oe as useEditContentModelContext,
38014
38024
  he as useEditDashboardContext,
38015
- $e as useEditPanelContext,
38025
+ Ve as useEditPanelContext,
38016
38026
  tg as useFullScreenPanelContext,
38017
38027
  Jm as useIsInEditPanelContext,
38018
38028
  Zm as useIsInRenderPanelContext,