@devtable/dashboard 8.55.0 → 8.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,14 +2,14 @@ var sl = Object.defineProperty;
2
2
  var cl = (e, t, r) => t in e ? sl(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
3
  var R = (e, t, r) => (cl(e, typeof t != "symbol" ? t + "" : t, r), r);
4
4
  import * as Un from "/Users/leto/Merico/merico-dev/table/node_modules/react/jsx-runtime.js";
5
- import { Box as V, Text as v, Button as D, Checkbox as K, Group as y, Tooltip as ee, MultiSelect as Et, Select as A, TextInput as I, createStyles as Nt, Stack as _, Badge as ln, CloseButton as dl, Modal as te, ActionIcon as $, Menu as He, Divider as L, Switch as ge, NumberInput as j, useMantineTheme as Ii, ColorInput as Xn, ColorSwatch as Bn, Slider as ul, Overlay as ut, Tabs as x, Center as Ct, CheckIcon as hl, MANTINE_SIZES as pl, SimpleGrid as yt, SegmentedControl as ml, Textarea as gl, Collapse as Kn, Table as ht, Accordion as lt, Popover as Vn, LoadingOverlay as pt, Flex as Bt, Paper as Zn, Code as ti, Alert as fl, Header as bl, ThemeIcon as Rn, HoverCard as Mn, List as ni, UnstyledButton as xl, Navbar as Ye, JsonInput as zi, Radio as ri, Skeleton as ii, NavLink as qn, Pagination as yl, Anchor as ai, AppShell as Li } from "@mantine/core";
5
+ import { Box as V, Text as v, Button as D, Checkbox as K, Group as y, Tooltip as ee, MultiSelect as Nt, Select as A, TextInput as I, createStyles as Bt, Stack as _, Badge as ln, CloseButton as dl, Modal as te, ActionIcon as $, Menu as He, Divider as L, Switch as ge, NumberInput as j, useMantineTheme as Ii, ColorInput as Xn, ColorSwatch as Bn, Slider as ul, Overlay as ht, Tabs as x, Center as Ct, CheckIcon as hl, MANTINE_SIZES as pl, SimpleGrid as yt, SegmentedControl as ml, Textarea as gl, Collapse as Kn, Table as pt, Accordion as st, Popover as Vn, LoadingOverlay as mt, Flex as qt, Paper as Zn, Code as ti, Alert as fl, Header as bl, ThemeIcon as Rn, HoverCard as Mn, List as ni, UnstyledButton as xl, Navbar as Ye, JsonInput as zi, Radio as ri, Skeleton as ii, NavLink as qn, Pagination as yl, Anchor as ai, AppShell as Li } from "@mantine/core";
6
6
  import { useModals as nt, ModalsProvider as Ai } from "@mantine/modals";
7
- import { useCreation as Me, usePrevious as vl, useBoolean as ve, useLatest as oi, useRequest as qt, useAsyncEffect as Wt } from "ahooks";
7
+ import { useCreation as Me, usePrevious as vl, useBoolean as ve, useLatest as oi, useRequest as Wt, useAsyncEffect as Gt } from "ahooks";
8
8
  import { observer as S } from "mobx-react-lite";
9
9
  import z, { useEffect as M, createContext as Vi, useMemo as k, forwardRef as ne, useState as N, useCallback as fe, useContext as Be, useRef as wl, createElement as pn, memo as _l } from "react";
10
- import C, { template as Jn, cloneDeepWith as Ri, get as H, isFunction as Cl, omit as ct, values as Mi, unset as Sl, isObject as Fi, set as er, orderBy as kl, last as Pi, defaults as ie, minBy as Tl, maxBy as Dl, cloneDeep as ce, isEqual as Z, defaultsDeep as re, keyBy as $i, merge as Il, isEmpty as tr, isNumber as zl, findLastIndex as Ll, isString as Oi, range as Al, throttle as Vl, pick as Ei } from "lodash";
10
+ import C, { template as Jn, cloneDeepWith as Ri, get as H, isFunction as Cl, omit as dt, values as Mi, unset as Sl, isObject as Fi, set as er, orderBy as kl, last as Pi, defaults as ie, minBy as Tl, maxBy as Dl, cloneDeep as ce, isEqual as Z, defaultsDeep as re, keyBy as $i, merge as Il, isEmpty as tr, isNumber as zl, findLastIndex as Ll, isString as Oi, range as Al, throttle as Vl, pick as Ei } from "lodash";
11
11
  import { useForm as oe, useWatch as Rl, Controller as b, useFieldArray as se } from "react-hook-form";
12
- import { IconInfoCircle as nr, IconPlus as rt, IconDeviceFloppy as Gt, IconBorderAll as Ml, IconTrash as vt, IconArrowDown as Fl, IconArrowUp as Pl, IconArrowsLeftRight as $l, IconVariable as Ol, IconCodeDots as El, IconFilter as Ni, IconCopy as Nl, IconDatabase as mn, IconBoxMultiple as Bi, IconArrowLeft as Bl, IconPlaylistAdd as ql, IconCode as Wl, IconDownload as Gl, IconRecycle as qi, IconAlertTriangle as li, IconCircleDashed as jl, IconCircleDot as Hl, IconCircleOff as Ql, IconAdjustments as Yl, IconLink as Ul, IconSettings as Xl, IconArrowCurveRight as Kl, IconX as Wi, IconEye as Zl, IconTable as Jl, IconColumns as es, IconPlayerSkipBack as ts } from "@tabler/icons";
12
+ import { IconInfoCircle as nr, IconPlus as rt, IconDeviceFloppy as jt, IconBorderAll as Ml, IconTrash as vt, IconArrowDown as Fl, IconArrowUp as Pl, IconArrowsLeftRight as $l, IconVariable as Ol, IconCodeDots as El, IconFilter as Ni, IconCopy as Nl, IconDatabase as mn, IconBoxMultiple as Bi, IconArrowLeft as Bl, IconPlaylistAdd as ql, IconCode as Wl, IconDownload as Gl, IconRecycle as qi, IconAlertTriangle as li, IconCircleDashed as jl, IconCircleDot as Hl, IconCircleOff as Ql, IconAdjustments as Yl, IconLink as Ul, IconSettings as Xl, IconArrowCurveRight as Kl, IconX as Wi, IconEye as Zl, IconTable as Jl, IconColumns as es, IconPlayerSkipBack as ts } from "@tabler/icons";
13
13
  import { Link as Gi, RichTextEditor as W, useRichTextEditorContext as ns } from "@mantine/tiptap";
14
14
  import { Color as ji } from "@tiptap/extension-color";
15
15
  import Hi from "@tiptap/extension-highlight";
@@ -27,13 +27,13 @@ import { useEditor as ra } from "@tiptap/react";
27
27
  import ia from "@tiptap/starter-kit";
28
28
  import { DateRangePicker as rs } from "@mantine/dates";
29
29
  import O from "dayjs";
30
- import { Calendar as is, InfoCircle as jt, Refresh as aa, Download as oa, ArrowsMaximize as as, Settings as la, Copy as os, Trash as Y, DeviceFloppy as Q, ArrowRight as Fn, PlaylistAdd as gn, Recycle as Xe, Plus as he, AlertCircle as ls, ArrowsMove as ss, ChevronDownRight as cs, ArrowLeft as ds, ChevronsUpRight as us, ArrowBarToRight as hs } from "tabler-icons-react";
30
+ import { Calendar as is, InfoCircle as Ht, Refresh as aa, Download as oa, ArrowsMaximize as as, Settings as la, Copy as os, Trash as Y, DeviceFloppy as Q, ArrowRight as Fn, PlaylistAdd as gn, Recycle as Xe, Plus as he, AlertCircle as ls, ArrowsMove as ss, ChevronDownRight as cs, ArrowLeft as ds, ChevronsUpRight as us, ArrowBarToRight as hs } from "tabler-icons-react";
31
31
  import { arrayToTree as ps } from "performant-array-to-tree";
32
32
  import ms, { SHOW_PARENT as gs } from "rc-tree-select";
33
33
  import sa, { WidthProvider as ca } from "react-grid-layout";
34
- import { observable as da, runInAction as Rt, toJS as it, reaction as Ee, makeAutoObservable as Ht } from "mobx";
34
+ import { observable as da, runInAction as Mt, toJS as it, reaction as Ee, makeAutoObservable as Qt } from "mobx";
35
35
  import si from "eventemitter2";
36
- import Ft, { random as fn } from "chroma-js";
36
+ import Pt, { random as fn } from "chroma-js";
37
37
  import "echarts-gl";
38
38
  import * as U from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/core.js";
39
39
  import { GridComponent as Fe, VisualMapComponent as rr, LegendComponent as Pe, TooltipComponent as $e, DataZoomComponent as Ke, MarkLineComponent as bn, MarkAreaComponent as ir, CalendarComponent as fs } from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/components.js";
@@ -41,7 +41,7 @@ import { CanvasRenderer as Ce } from "/Users/leto/Merico/merico-dev/table/node_m
41
41
  import Se from "/Users/leto/Merico/merico-dev/table/node_modules/echarts-for-react/lib/core.js";
42
42
  import X from "numbro";
43
43
  import { BoxplotChart as bs, BarChart as St, LineChart as kt, ScatterChart as xn, FunnelChart as xs, HeatmapChart as ua, PieChart as ys, RadarChart as vs, SunburstChart as ws } from "/Users/leto/Merico/merico-dev/table/node_modules/echarts/charts.js";
44
- import { useElementSize as Pt, randomId as dt, useClipboard as _s, useInputState as ha, useDisclosure as pa } from "@mantine/hooks";
44
+ import { useElementSize as $t, randomId as ut, useClipboard as _s, useInputState as ha, useDisclosure as pa } from "@mantine/hooks";
45
45
  import { showNotification as yn } from "@mantine/notifications";
46
46
  import * as Cs from "d3-array";
47
47
  import { quantile as nn } from "d3-array";
@@ -53,7 +53,7 @@ import { Prism as wt } from "@mantine/prism";
53
53
  import { flexRender as sn, createColumnHelper as ma, useReactTable as ga, getCoreRowModel as fa, getSortedRowModel as Ss } from "@tanstack/react-table";
54
54
  import { useVirtual as ks } from "react-virtual";
55
55
  import Je from "axios";
56
- import { types as f, getParent as Re, getRoot as pe, cast as Tt, addDisposer as et, addMiddleware as Ts, getType as Ds, isAlive as ci, flow as bt, toGenerator as st, detach as Is, clone as zs, getSnapshot as Oe, applySnapshot as ye, getParentOfType as di, castToSnapshot as ba } from "mobx-state-tree";
56
+ import { types as f, getParent as Re, getRoot as pe, cast as Tt, addDisposer as et, addMiddleware as Ts, getType as Ds, isAlive as ci, flow as bt, toGenerator as ct, detach as Is, clone as zs, getSnapshot as Oe, applySnapshot as ye, getParentOfType as di, castToSnapshot as ba } from "mobx-state-tree";
57
57
  import Ls from "jszip";
58
58
  import { saveAs as ar } from "file-saver";
59
59
  import xa from "crypto-js";
@@ -440,7 +440,7 @@ const sr = {
440
440
  layoutFrozen: !1,
441
441
  freezeLayout: C.noop,
442
442
  inEditMode: !1
443
- }, mt = z.createContext(vc), Sa = z.createContext({
443
+ }, gt = z.createContext(vc), Sa = z.createContext({
444
444
  panel: null,
445
445
  data: [],
446
446
  loading: !1
@@ -477,7 +477,7 @@ const Da = ne(({
477
477
  const a = P(), o = !!t.options_query_id, {
478
478
  state: l
479
479
  } = a.getDataStuffByID(t.options_query_id), s = l === "loading", d = t.min_width ? t.min_width : "200px", u = o ? s : !1;
480
- return /* @__PURE__ */ n(Et, { label: e, data: t.options, disabled: u, value: r, onChange: i, styles: {
480
+ return /* @__PURE__ */ n(Nt, { label: e, data: t.options, disabled: u, value: r, onChange: i, styles: {
481
481
  root: {
482
482
  minWidth: d,
483
483
  maxWidth: u ? d : "unset"
@@ -559,7 +559,7 @@ const Dc = ({
559
559
  ] }), Lc = ({
560
560
  onClick: e,
561
561
  ...t
562
- }) => /* @__PURE__ */ n(zc, { onClick: e, ...t }), Ac = Nt((e, {
562
+ }) => /* @__PURE__ */ n(zc, { onClick: e, ...t }), Ac = Bt((e, {
563
563
  radius: t = 4
564
564
  }) => ({
565
565
  root: {
@@ -995,7 +995,7 @@ function Pc(e) {
995
995
  const La = S(() => {
996
996
  const {
997
997
  freezeLayout: e
998
- } = z.useContext(mt), [t, r] = z.useState(!1), {
998
+ } = z.useContext(gt), [t, r] = z.useState(!1), {
999
999
  panel: i
1000
1000
  } = me();
1001
1001
  return z.useEffect(() => {
@@ -1012,7 +1012,7 @@ const La = S(() => {
1012
1012
  /* @__PURE__ */ n(ee, { label: "Click to see description", position: "top-start", withinPortal: !0, children: /* @__PURE__ */ n($, { variant: "subtle", color: "blue", onClick: () => r((a) => !a), sx: {
1013
1013
  verticalAlign: "baseline",
1014
1014
  cursor: "pointer"
1015
- }, children: /* @__PURE__ */ n(jt, { size: 20 }) }) })
1015
+ }, children: /* @__PURE__ */ n(Ht, { size: 20 }) }) })
1016
1016
  ] });
1017
1017
  }), $c = S(({
1018
1018
  view: e
@@ -1024,7 +1024,7 @@ const La = S(() => {
1024
1024
  query: o
1025
1025
  } = i, {
1026
1026
  inEditMode: l
1027
- } = z.useContext(mt), s = () => o == null ? void 0 : o.fetchData(), {
1027
+ } = z.useContext(gt), s = () => o == null ? void 0 : o.fetchData(), {
1028
1028
  viewPanelInFullScreen: d,
1029
1029
  inFullScreen: u
1030
1030
  } = z.useContext(lr), p = () => {
@@ -1090,7 +1090,7 @@ class xt {
1090
1090
  async deleteItem(t) {
1091
1091
  t === null && await this.root.deleteItem(this.path);
1092
1092
  const r = await this.root.getItem(this.path) || {};
1093
- await this.root.setItem(this.path, ct(r, t));
1093
+ await this.root.setItem(this.path, dt(r, t));
1094
1094
  }
1095
1095
  async getItem(t) {
1096
1096
  const r = await this.root.getItem(this.path);
@@ -1145,7 +1145,7 @@ class Aa {
1145
1145
  });
1146
1146
  }
1147
1147
  async deleteItem(t) {
1148
- Rt(() => {
1148
+ Mt(() => {
1149
1149
  Sl(this.rootRef.current, [t]);
1150
1150
  });
1151
1151
  }
@@ -1159,13 +1159,13 @@ class Aa {
1159
1159
  setItem(t, r) {
1160
1160
  if (t === null)
1161
1161
  if (Fi(r))
1162
- Rt(() => {
1162
+ Mt(() => {
1163
1163
  this.rootRef.current = r;
1164
1164
  });
1165
1165
  else
1166
1166
  throw new Error("Cannot set root value to non-object");
1167
1167
  else
1168
- Rt(() => {
1168
+ Mt(() => {
1169
1169
  er(this.rootRef.current, [t], r);
1170
1170
  });
1171
1171
  return Promise.resolve(this.getItem(t));
@@ -1256,7 +1256,7 @@ const Bc = (e) => {
1256
1256
  height: t.layout.h
1257
1257
  }
1258
1258
  }, d = o.viewRender;
1259
- return /* @__PURE__ */ n(d, { context: s, instance: l, ...ct(e, ["panel", "vizManager", "data"]) });
1259
+ return /* @__PURE__ */ n(d, { context: s, instance: l, ...dt(e, ["panel", "vizManager", "data"]) });
1260
1260
  }, qc = (e) => {
1261
1261
  const {
1262
1262
  vizManager: t,
@@ -1268,14 +1268,14 @@ const Bc = (e) => {
1268
1268
  ...Va(s, a, t, o),
1269
1269
  panelInfoEditor: i
1270
1270
  }, u = l.configRender;
1271
- return /* @__PURE__ */ n(u, { context: d, instance: s, ...ct(e, ["panel", "vizManager", "data", "panelInfoEditor"]) });
1271
+ return /* @__PURE__ */ n(u, { context: d, instance: s, ...dt(e, ["panel", "vizManager", "data", "panelInfoEditor"]) });
1272
1272
  }, Ra = (e, t) => {
1273
- const r = Ft.bezier(e), i = Ft.bezier(t);
1273
+ const r = Pt.bezier(e), i = Pt.bezier(t);
1274
1274
  return function(a) {
1275
1275
  return a < 50 ? r(a * 2 / 100).hex() : i((a - 50) * 2 / 100).hex();
1276
1276
  };
1277
1277
  }, Cn = (e) => {
1278
- const t = Ft.bezier(e);
1278
+ const t = Pt.bezier(e);
1279
1279
  return function(r) {
1280
1280
  return t(r / 100).hex();
1281
1281
  };
@@ -1315,7 +1315,7 @@ const Bc = (e) => {
1315
1315
  getColor: Cn(["#fff7f1", "darkorange", "#b60000"]),
1316
1316
  name: "orange",
1317
1317
  category: "sequential"
1318
- }, Ma = "@devtable/dashboard", dr = "8.55.0", Fa = "Apache-2.0", Pa = {
1318
+ }, Ma = "@devtable/dashboard", dr = "8.56.0", Fa = "Apache-2.0", Pa = {
1319
1319
  access: "public",
1320
1320
  registry: "https://registry.npmjs.org/"
1321
1321
  }, $a = [
@@ -2005,7 +2005,7 @@ const sd = [{
2005
2005
  )
2006
2006
  ] })
2007
2007
  ] });
2008
- }), gt = ne(({
2008
+ }), ft = ne(({
2009
2009
  value: e,
2010
2010
  onChange: t
2011
2011
  }, r) => {
@@ -2083,7 +2083,7 @@ const hr = {
2083
2083
  },
2084
2084
  color: "#228be6",
2085
2085
  reference_lines: []
2086
- }, $t = ne(function({
2086
+ }, Ot = ne(function({
2087
2087
  value: t,
2088
2088
  onChange: r,
2089
2089
  ...i
@@ -2348,7 +2348,7 @@ z.forwardRef(function({
2348
2348
  a && /* @__PURE__ */ n(Ya, { value: t, onChange: r })
2349
2349
  ] });
2350
2350
  });
2351
- const Qt = {
2351
+ const Yt = {
2352
2352
  type: "none",
2353
2353
  config: {}
2354
2354
  };
@@ -2360,7 +2360,7 @@ function xd(e, t) {
2360
2360
  const r = e[t], i = Number(r);
2361
2361
  return isFinite(i) ? i : 0;
2362
2362
  }
2363
- function Yt(e, t, r) {
2363
+ function Ut(e, t, r) {
2364
2364
  try {
2365
2365
  const i = e.map((a) => xd(a, t));
2366
2366
  switch (r.type) {
@@ -2403,13 +2403,13 @@ class yd {
2403
2403
  function vd(e) {
2404
2404
  return e === null ? "null" : e === void 0 ? "undefined" : Array.isArray(e) ? `Array(${e.length})` : e.toString();
2405
2405
  }
2406
- function Ut({
2406
+ function Dt({
2407
2407
  data_field: e,
2408
2408
  aggregation: t
2409
2409
  }, r) {
2410
- return Yt(r, e, t);
2410
+ return Ut(r, e, t);
2411
2411
  }
2412
- function ft({
2412
+ function ot({
2413
2413
  formatter: e
2414
2414
  }, t) {
2415
2415
  return ["string", "number"].includes(typeof t) ? X(t).format(e) : vd(t);
@@ -2434,7 +2434,7 @@ function Ua(e, t) {
2434
2434
  aggregation: a,
2435
2435
  size: o,
2436
2436
  weight: l
2437
- } = e, s = Yt(t, i, a), d = ft(e, s);
2437
+ } = e, s = Ut(t, i, a), d = ot(e, s);
2438
2438
  return /* @__PURE__ */ n(v, { sx: {
2439
2439
  fontSize: o,
2440
2440
  display: "inline"
@@ -2464,7 +2464,7 @@ function Sd(e) {
2464
2464
  function $n(e) {
2465
2465
  return Sd(e);
2466
2466
  }
2467
- function Ot(e, t, r) {
2467
+ function Et(e, t, r) {
2468
2468
  const i = _d(t, r), a = /^\{(.+)\}(.*)$/;
2469
2469
  return e.split("$").map((o) => {
2470
2470
  const l = a.exec(o);
@@ -2487,8 +2487,8 @@ function kd(e, t) {
2487
2487
  name: a,
2488
2488
  data_field: o,
2489
2489
  aggregation: l
2490
- } = i, s = Yt(t, o, l);
2491
- r[a] = ft(i, s);
2490
+ } = i, s = Ut(t, o, l);
2491
+ r[a] = ot(i, s);
2492
2492
  }), r;
2493
2493
  }
2494
2494
  function kn(e, t, r) {
@@ -2504,7 +2504,7 @@ function kn(e, t, r) {
2504
2504
  return `${s}${d}`;
2505
2505
  }).join("");
2506
2506
  }
2507
- function Dt({
2507
+ function It({
2508
2508
  enabled: e,
2509
2509
  func_content: t
2510
2510
  }) {
@@ -2607,8 +2607,8 @@ function Ld(e, t) {
2607
2607
  }
2608
2608
  function Ad(e, t, r) {
2609
2609
  const i = t.reduce((a, o) => {
2610
- const l = Ut(o, r);
2611
- return a[o.name] = ft(o, l), a;
2610
+ const l = Dt(o, r);
2611
+ return a[o.name] = ot(o, l), a;
2612
2612
  }, {});
2613
2613
  return e.map((a) => ({
2614
2614
  name: "refs",
@@ -2663,7 +2663,7 @@ function Vd({
2663
2663
  axisLabel: {
2664
2664
  ...i.axisLabel,
2665
2665
  ...p,
2666
- formatter: Dt(i.axisLabel.formatter)
2666
+ formatter: It(i.axisLabel.formatter)
2667
2667
  }
2668
2668
  }],
2669
2669
  yAxis: [{
@@ -2816,7 +2816,7 @@ const Pd = ({
2816
2816
  }) => /* @__PURE__ */ c(V, { sx: {
2817
2817
  position: "relative"
2818
2818
  }, children: [
2819
- e && /* @__PURE__ */ n(ut, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
2819
+ e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
2820
2820
  /* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
2821
2821
  a && r(a);
2822
2822
  }, theme: "vs-dark", options: {
@@ -2913,7 +2913,7 @@ const Pd = ({
2913
2913
  ] }),
2914
2914
  /* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: e, render: ({
2915
2915
  field: i
2916
- }) => /* @__PURE__ */ n(gt, { ...i }) })
2916
+ }) => /* @__PURE__ */ n(ft, { ...i }) })
2917
2917
  ] })), Od = ({
2918
2918
  control: e,
2919
2919
  data: t,
@@ -2996,7 +2996,7 @@ function Ed({
2996
2996
  ] }) });
2997
2997
  }
2998
2998
  function Nd(e) {
2999
- return ct(e, "variables");
2999
+ return dt(e, "variables");
3000
3000
  }
3001
3001
  function Bd(e) {
3002
3002
  const {
@@ -3410,7 +3410,7 @@ function lu(e) {
3410
3410
  function su(e) {
3411
3411
  return /* @__PURE__ */ n(v, { children: "Click chart's series" });
3412
3412
  }
3413
- const It = {
3413
+ const zt = {
3414
3414
  x_axis_scroll: !1,
3415
3415
  y_axis_scroll: !1,
3416
3416
  x_axis_slider: !1,
@@ -3446,7 +3446,7 @@ const It = {
3446
3446
  }],
3447
3447
  reference_lines: [],
3448
3448
  reference_areas: [],
3449
- dataZoom: It
3449
+ dataZoom: zt
3450
3450
  };
3451
3451
  function fr(e) {
3452
3452
  const t = [];
@@ -3699,7 +3699,7 @@ function vu({
3699
3699
  });
3700
3700
  const l = br(t, i, a), s = C.groupBy(l, "0");
3701
3701
  return Object.entries(s).map(([u, p]) => {
3702
- const m = Yt(p, "1", r);
3702
+ const m = Ut(p, "1", r);
3703
3703
  return [u, m];
3704
3704
  });
3705
3705
  }
@@ -3762,15 +3762,15 @@ function _u({
3762
3762
  y_axis_data_key: t,
3763
3763
  valueTypedXAxis: w
3764
3764
  }), ze;
3765
- const Lt = wu({
3765
+ const At = wu({
3766
3766
  group_by_key: o,
3767
3767
  data: T,
3768
3768
  x_axis_data_key: e,
3769
3769
  y_axis_data_key: t
3770
3770
  });
3771
- return Object.entries(Lt).map(([xe, At]) => {
3771
+ return Object.entries(At).map(([xe, Vt]) => {
3772
3772
  const ke = ce(ze);
3773
- return ke.name = xe, ke.color = void 0, ke.data = At, ke;
3773
+ return ke.name = xe, ke.color = void 0, ke.data = Vt, ke;
3774
3774
  });
3775
3775
  }
3776
3776
  function Cu(e, t, r, i, a, o, l) {
@@ -3785,7 +3785,7 @@ function Su(e, t) {
3785
3785
  axisValue: i,
3786
3786
  axisIndex: a
3787
3787
  } = r;
3788
- return Dt(t.x_axis.axisLabel.formatter)(i, a);
3788
+ return It(t.x_axis.axisLabel.formatter)(i, a);
3789
3789
  }
3790
3790
  function ku(e, t, r) {
3791
3791
  const i = t.reduce((a, {
@@ -3849,8 +3849,8 @@ function Tu(e) {
3849
3849
  function Du(e, t) {
3850
3850
  const r = {};
3851
3851
  return t.map((i) => {
3852
- const a = Ut(i, e);
3853
- r[i.name] = ft(i, a);
3852
+ const a = Dt(i, e);
3853
+ r[i.name] = ot(i, a);
3854
3854
  }), r;
3855
3855
  }
3856
3856
  function Iu(e, t) {
@@ -3870,7 +3870,7 @@ function Iu(e, t) {
3870
3870
  axisLabel: {
3871
3871
  ...a,
3872
3872
  ...o,
3873
- formatter: Dt(a.formatter)
3873
+ formatter: It(a.formatter)
3874
3874
  }
3875
3875
  }];
3876
3876
  }
@@ -4011,18 +4011,18 @@ function Ru({
4011
4011
  } = e.viewport, {
4012
4012
  ref: u,
4013
4013
  height: p
4014
- } = Pt(), {
4014
+ } = $t(), {
4015
4015
  ref: m,
4016
4016
  height: h
4017
- } = Pt(), g = z.useMemo(() => {
4017
+ } = $t(), g = z.useMemo(() => {
4018
4018
  const {
4019
4019
  stats: {
4020
4020
  templates: T
4021
4021
  }
4022
4022
  } = o;
4023
4023
  return {
4024
- top: Ot(T.top, a, l),
4025
- bottom: Ot(T.bottom, a, l)
4024
+ top: Et(T.top, a, l),
4025
+ bottom: Et(T.bottom, a, l)
4026
4026
  };
4027
4027
  }, [o, l]), w = Math.max(0, d - p - h);
4028
4028
  return /* @__PURE__ */ c(V, { children: [
@@ -4818,7 +4818,7 @@ function ih({
4818
4818
  }, ...s }) }),
4819
4819
  /* @__PURE__ */ n(b, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
4820
4820
  field: s
4821
- }) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: s.value ?? Qt, onChange: s.onChange, pt: 0 }) })
4821
+ }) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: s.value ?? Yt, onChange: s.onChange, pt: 0 }) })
4822
4822
  ] }),
4823
4823
  /* @__PURE__ */ n(y, { grow: !0, children: /* @__PURE__ */ n(b, { name: `series.${t}.group_by_key`, control: e, render: ({
4824
4824
  field: s
@@ -4867,7 +4867,7 @@ function ah({
4867
4867
  })), d = () => {
4868
4868
  const m = {
4869
4869
  type: "bar",
4870
- name: dt(),
4870
+ name: ut(),
4871
4871
  showSymbol: !1,
4872
4872
  symbolSize: yr.static,
4873
4873
  y_axis_data_key: "value",
@@ -4920,12 +4920,12 @@ function oh({
4920
4920
  return t("stats"), /* @__PURE__ */ n(_, { children: /* @__PURE__ */ c(_, { spacing: 0, children: [
4921
4921
  /* @__PURE__ */ n(b, { name: "stats.templates.top", control: e, render: ({
4922
4922
  field: r
4923
- }) => /* @__PURE__ */ n($t, { label: "Template for stats above the chart", py: "md", sx: {
4923
+ }) => /* @__PURE__ */ n(Ot, { label: "Template for stats above the chart", py: "md", sx: {
4924
4924
  flexGrow: 1
4925
4925
  }, ...r }) }),
4926
4926
  /* @__PURE__ */ n(b, { name: "stats.templates.bottom", control: e, render: ({
4927
4927
  field: r
4928
- }) => /* @__PURE__ */ n($t, { label: "Template for stats under the chart", py: "md", sx: {
4928
+ }) => /* @__PURE__ */ n(Ot, { label: "Template for stats under the chart", py: "md", sx: {
4929
4929
  flexGrow: 1
4930
4930
  }, ...r }) })
4931
4931
  ] }) });
@@ -4967,7 +4967,7 @@ function lh({
4967
4967
  ] }),
4968
4968
  /* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: t, render: ({
4969
4969
  field: i
4970
- }) => /* @__PURE__ */ n(gt, { ...i }) })
4970
+ }) => /* @__PURE__ */ n(ft, { ...i }) })
4971
4971
  ] });
4972
4972
  }
4973
4973
  const sh = [{
@@ -5134,8 +5134,8 @@ function hh({
5134
5134
  ] }) });
5135
5135
  }
5136
5136
  function ph(e) {
5137
- const t = ce(ct(e, "variables"));
5138
- return t.stats = ct(t.stats, "variables"), t;
5137
+ const t = ce(dt(e, "variables"));
5138
+ return t.stats = dt(t.stats, "variables"), t;
5139
5139
  }
5140
5140
  function mh(e) {
5141
5141
  const {
@@ -5155,7 +5155,7 @@ function mh(e) {
5155
5155
  }
5156
5156
  function gh(e) {
5157
5157
  const {
5158
- dataZoom: t = It,
5158
+ dataZoom: t = zt,
5159
5159
  ...r
5160
5160
  } = e;
5161
5161
  return {
@@ -5223,7 +5223,7 @@ function xh(e) {
5223
5223
  function yh(e) {
5224
5224
  const t = e.series.map((r) => {
5225
5225
  const {
5226
- aggregation_on_group: i = Qt
5226
+ aggregation_on_group: i = Yt
5227
5227
  } = r;
5228
5228
  return {
5229
5229
  ...r,
@@ -5238,7 +5238,7 @@ function yh(e) {
5238
5238
  function vh(e) {
5239
5239
  const t = e.series.map((r) => {
5240
5240
  const {
5241
- aggregation_on_value: i = Qt
5241
+ aggregation_on_value: i = Yt
5242
5242
  } = r;
5243
5243
  return {
5244
5244
  ...r,
@@ -5815,7 +5815,7 @@ const Nh = [{
5815
5815
  ] }),
5816
5816
  /* @__PURE__ */ n(y, { grow: !0, noWrap: !0, children: /* @__PURE__ */ n(b, { name: `series.${i}.axisLabel.overflow`, control: t, render: ({
5817
5817
  field: d
5818
- }) => /* @__PURE__ */ n(gt, { ...d }) }) })
5818
+ }) => /* @__PURE__ */ n(ft, { ...d }) }) })
5819
5819
  ] });
5820
5820
  }, Hh = ({
5821
5821
  control: e,
@@ -6392,7 +6392,7 @@ const mp = ({
6392
6392
  cursor: "default",
6393
6393
  userSelect: "none"
6394
6394
  }, children: [
6395
- /* @__PURE__ */ n(jt, { size: 14, color: "#888" }),
6395
+ /* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
6396
6396
  /* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
6397
6397
  ] }),
6398
6398
  /* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
@@ -6428,7 +6428,7 @@ const bp = ({
6428
6428
  }) => /* @__PURE__ */ c(V, { sx: {
6429
6429
  position: "relative"
6430
6430
  }, children: [
6431
- e && /* @__PURE__ */ n(ut, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
6431
+ e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
6432
6432
  /* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
6433
6433
  a && r(a);
6434
6434
  }, theme: "vs-dark", options: {
@@ -6515,7 +6515,7 @@ function yp({
6515
6515
  /* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
6516
6516
  /* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: t, render: ({
6517
6517
  field: i
6518
- }) => /* @__PURE__ */ n(gt, { ...i }) }),
6518
+ }) => /* @__PURE__ */ n(ft, { ...i }) }),
6519
6519
  /* @__PURE__ */ c(y, { grow: !0, noWrap: !0, children: [
6520
6520
  /* @__PURE__ */ n(b, { name: "x_axis.axisLabel.rotate", control: t, render: ({
6521
6521
  field: i
@@ -6572,7 +6572,7 @@ function wp({
6572
6572
  /* @__PURE__ */ n(L, { mb: -15, variant: "dashed", label: "Tick Label", labelPosition: "center" }),
6573
6573
  /* @__PURE__ */ n(b, { name: "y_axis.axisLabel.overflow", control: e, render: ({
6574
6574
  field: i
6575
- }) => /* @__PURE__ */ n(gt, { ...i }) }),
6575
+ }) => /* @__PURE__ */ n(ft, { ...i }) }),
6576
6576
  /* @__PURE__ */ c(y, { grow: !0, noWrap: !0, children: [
6577
6577
  /* @__PURE__ */ n(b, { name: "y_axis.axisLabel.rotate", control: e, render: ({
6578
6578
  field: i
@@ -6730,7 +6730,7 @@ const no = {
6730
6730
  nameAlignment: "right",
6731
6731
  color: "red"
6732
6732
  },
6733
- dataZoom: It,
6733
+ dataZoom: zt,
6734
6734
  markLine: no
6735
6735
  };
6736
6736
  function dn(e) {
@@ -6905,7 +6905,7 @@ function Mp(e) {
6905
6905
  axisLabel: {
6906
6906
  ...r,
6907
6907
  ...i,
6908
- formatter: Dt(r.formatter)
6908
+ formatter: It(r.formatter)
6909
6909
  }
6910
6910
  }];
6911
6911
  }
@@ -7163,7 +7163,7 @@ function jp({
7163
7163
  ] }),
7164
7164
  /* @__PURE__ */ n(b, { name: "x_axis.axisLabel.overflow", control: t, render: ({
7165
7165
  field: i
7166
- }) => /* @__PURE__ */ n(gt, { ...i }) })
7166
+ }) => /* @__PURE__ */ n(ft, { ...i }) })
7167
7167
  ] });
7168
7168
  }
7169
7169
  function Hp({
@@ -7235,7 +7235,7 @@ function Qp({
7235
7235
  }
7236
7236
  function Yp(e) {
7237
7237
  const {
7238
- dataZoom: t = It,
7238
+ dataZoom: t = zt,
7239
7239
  ...r
7240
7240
  } = e;
7241
7241
  return {
@@ -8207,7 +8207,7 @@ function Im({
8207
8207
  width: r - 190,
8208
8208
  height: u
8209
8209
  }, notMerge: !0, theme: "merico-light" }),
8210
- s && /* @__PURE__ */ n(ht, { mt: 20, fontSize: 12, sx: {
8210
+ s && /* @__PURE__ */ n(pt, { mt: 20, fontSize: 12, sx: {
8211
8211
  width: 180,
8212
8212
  border: "1px solid #999",
8213
8213
  td: {
@@ -8315,10 +8315,10 @@ function Am({
8315
8315
  /* @__PURE__ */ n(v, { children: "Chart Config" }),
8316
8316
  /* @__PURE__ */ n($, { type: "submit", mr: 5, variant: "filled", color: "blue", disabled: !m, children: /* @__PURE__ */ n(Q, { size: 20 }) })
8317
8317
  ] }),
8318
- /* @__PURE__ */ c(lt, { multiple: !0, defaultValue: ["Axis", "Regression"], children: [
8319
- /* @__PURE__ */ c(lt.Item, { value: "Axis", children: [
8320
- /* @__PURE__ */ n(lt.Control, { children: "Axis" }),
8321
- /* @__PURE__ */ c(lt.Panel, { children: [
8318
+ /* @__PURE__ */ c(st, { multiple: !0, defaultValue: ["Axis", "Regression"], children: [
8319
+ /* @__PURE__ */ c(st.Item, { value: "Axis", children: [
8320
+ /* @__PURE__ */ n(st.Control, { children: "Axis" }),
8321
+ /* @__PURE__ */ c(st.Panel, { children: [
8322
8322
  /* @__PURE__ */ c(y, { grow: !0, noWrap: !0, children: [
8323
8323
  /* @__PURE__ */ n(b, { name: "x_axis.name", control: o, render: ({
8324
8324
  field: h
@@ -8338,9 +8338,9 @@ function Am({
8338
8338
  }, ...h }) }) })
8339
8339
  ] })
8340
8340
  ] }),
8341
- /* @__PURE__ */ c(lt.Item, { value: "Regression", children: [
8342
- /* @__PURE__ */ n(lt.Control, { children: "Regression Line" }),
8343
- /* @__PURE__ */ n(lt.Panel, { children: /* @__PURE__ */ n(Lm, { control: o, watch: s, data: i }) })
8341
+ /* @__PURE__ */ c(st.Item, { value: "Regression", children: [
8342
+ /* @__PURE__ */ n(st.Control, { children: "Regression Line" }),
8343
+ /* @__PURE__ */ n(st.Panel, { children: /* @__PURE__ */ n(Lm, { control: o, watch: s, data: i }) })
8344
8344
  ] })
8345
8345
  ] })
8346
8346
  ] }) });
@@ -8439,7 +8439,7 @@ const Tr = ne(({
8439
8439
  }, children: [
8440
8440
  /* @__PURE__ */ c(y, { align: "center", children: [
8441
8441
  /* @__PURE__ */ n(v, { size: 14, fw: 500, children: i }),
8442
- /* @__PURE__ */ n($, { color: "blue", disabled: !p, onClick: u, children: /* @__PURE__ */ n(Gt, { size: 18 }) })
8442
+ /* @__PURE__ */ n($, { color: "blue", disabled: !p, onClick: u, children: /* @__PURE__ */ n(jt, { size: 18 }) })
8443
8443
  ] }),
8444
8444
  /* @__PURE__ */ c(W, { editor: d, styles: m, children: [
8445
8445
  /* @__PURE__ */ c(W.Toolbar, { sticky: !0, stickyOffset: 0, children: [
@@ -8652,7 +8652,7 @@ const oo = {
8652
8652
  },
8653
8653
  reference_lines: [],
8654
8654
  reference_areas: [],
8655
- dataZoom: It
8655
+ dataZoom: zt
8656
8656
  };
8657
8657
  function Bm(e) {
8658
8658
  const t = e.y_axes.some((a) => !!a.name);
@@ -8988,8 +8988,8 @@ const eg = {
8988
8988
  };
8989
8989
  function tg(e, t, r) {
8990
8990
  const i = r.reduce((u, p) => {
8991
- const m = Ut(p, t);
8992
- return u[p.name] = ft(p, m), u;
8991
+ const m = Dt(p, t);
8992
+ return u[p.name] = ot(p, m), u;
8993
8993
  }, {}), a = e.y_axes.reduce((u, {
8994
8994
  label_formatter: p
8995
8995
  }, m) => (u[m] = function(g) {
@@ -9066,18 +9066,18 @@ function rg({
9066
9066
  } = e.viewport, {
9067
9067
  ref: u,
9068
9068
  height: p
9069
- } = Pt(), {
9069
+ } = $t(), {
9070
9070
  ref: m,
9071
9071
  height: h
9072
- } = Pt(), g = z.useMemo(() => {
9072
+ } = $t(), g = z.useMemo(() => {
9073
9073
  const {
9074
9074
  stats: {
9075
9075
  templates: T
9076
9076
  }
9077
9077
  } = o;
9078
9078
  return {
9079
- top: Ot(T.top, a, l),
9080
- bottom: Ot(T.bottom, a, l)
9079
+ top: Et(T.top, a, l),
9080
+ bottom: Et(T.bottom, a, l)
9081
9081
  };
9082
9082
  }, [o, l]), w = Math.max(0, d - p - h);
9083
9083
  return /* @__PURE__ */ c(V, { children: [
@@ -9667,12 +9667,12 @@ function Tg({
9667
9667
  return t("stats"), /* @__PURE__ */ n(_, { children: /* @__PURE__ */ c(_, { spacing: 0, children: [
9668
9668
  /* @__PURE__ */ n(b, { name: "stats.templates.top", control: e, render: ({
9669
9669
  field: r
9670
- }) => /* @__PURE__ */ n($t, { label: "Template for stats above the chart", py: "md", sx: {
9670
+ }) => /* @__PURE__ */ n(Ot, { label: "Template for stats above the chart", py: "md", sx: {
9671
9671
  flexGrow: 1
9672
9672
  }, ...r }) }),
9673
9673
  /* @__PURE__ */ n(b, { name: "stats.templates.bottom", control: e, render: ({
9674
9674
  field: r
9675
- }) => /* @__PURE__ */ n($t, { label: "Template for stats under the chart", py: "md", sx: {
9675
+ }) => /* @__PURE__ */ n(Ot, { label: "Template for stats under the chart", py: "md", sx: {
9676
9676
  flexGrow: 1
9677
9677
  }, ...r }) })
9678
9678
  ] }) });
@@ -9727,7 +9727,7 @@ const Dg = ({
9727
9727
  cursor: "default",
9728
9728
  userSelect: "none"
9729
9729
  }, children: [
9730
- /* @__PURE__ */ n(jt, { size: 14, color: "#888" }),
9730
+ /* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
9731
9731
  /* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
9732
9732
  ] }),
9733
9733
  /* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
@@ -9763,7 +9763,7 @@ const Lg = ({
9763
9763
  }) => /* @__PURE__ */ c(V, { sx: {
9764
9764
  position: "relative"
9765
9765
  }, children: [
9766
- e && /* @__PURE__ */ n(ut, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
9766
+ e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
9767
9767
  /* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
9768
9768
  a && r(a);
9769
9769
  }, theme: "vs-dark", options: {
@@ -10046,7 +10046,7 @@ function Eg({
10046
10046
  }
10047
10047
  function Ng(e) {
10048
10048
  const {
10049
- dataZoom: t = It,
10049
+ dataZoom: t = zt,
10050
10050
  ...r
10051
10051
  } = e;
10052
10052
  return {
@@ -10212,7 +10212,7 @@ function Hg(e) {
10212
10212
  };
10213
10213
  }
10214
10214
  function Qg(e) {
10215
- return ct(e, ["variables"]);
10215
+ return dt(e, ["variables"]);
10216
10216
  }
10217
10217
  function Yg(e) {
10218
10218
  const t = ce(e), r = H(t, "color.valueRange");
@@ -10263,7 +10263,7 @@ const Xg = S(({
10263
10263
  } catch {
10264
10264
  return a;
10265
10265
  }
10266
- }, [t.filters.values, t.context.current, a]), s = k(() => Ot(l, i, e.data), [l, i, e.data, e]);
10266
+ }, [t.filters.values, t.context.current, a]), s = k(() => Et(l, i, e.data), [l, i, e.data, e]);
10267
10267
  return /* @__PURE__ */ n(v, { align: o, children: Object.values(s).map((d, u) => /* @__PURE__ */ n(z.Fragment, { children: d }, u)) });
10268
10268
  }), Kg = [{
10269
10269
  label: "Left",
@@ -10313,7 +10313,7 @@ function Zg({
10313
10313
  ] }),
10314
10314
  /* @__PURE__ */ n(b, { name: "template", control: a, render: ({
10315
10315
  field: m
10316
- }) => /* @__PURE__ */ n($t, { label: "Template", py: "md", sx: {
10316
+ }) => /* @__PURE__ */ n(Ot, { label: "Template", py: "md", sx: {
10317
10317
  flexGrow: 1
10318
10318
  }, ...m }) }),
10319
10319
  /* @__PURE__ */ n(b, { name: "align", control: a, render: ({
@@ -10472,8 +10472,8 @@ const sf = {
10472
10472
  };
10473
10473
  function cf(e, t, r) {
10474
10474
  r.reduce((o, l) => {
10475
- const s = Ut(l, t);
10476
- return o[l.name] = ft(l, s), o;
10475
+ const s = Dt(l, t);
10476
+ return o[l.name] = ot(l, s), o;
10477
10477
  }, {});
10478
10478
  const a = {
10479
10479
  series: {
@@ -10609,7 +10609,7 @@ const hf = [{
10609
10609
  cursor: "default",
10610
10610
  userSelect: "none"
10611
10611
  }, children: [
10612
- /* @__PURE__ */ n(jt, { size: 14, color: "#888" }),
10612
+ /* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
10613
10613
  /* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure ring style on each level" })
10614
10614
  ] }),
10615
10615
  /* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
@@ -10848,7 +10848,7 @@ function If(e) {
10848
10848
  } = E(e.trigger.triggerData, "config");
10849
10849
  return /* @__PURE__ */ n(v, { children: Df(r, t) });
10850
10850
  }
10851
- const zf = Nt((e) => ({
10851
+ const zf = Bt((e) => ({
10852
10852
  root: {
10853
10853
  overflow: "auto",
10854
10854
  position: "relative",
@@ -10977,7 +10977,7 @@ class Vf {
10977
10977
  }
10978
10978
  }
10979
10979
  }
10980
- const Rf = Nt((e, t) => ({
10980
+ const Rf = Bt((e, t) => ({
10981
10981
  content: {
10982
10982
  display: "flex",
10983
10983
  alignItems: "center",
@@ -10990,7 +10990,7 @@ const Rf = Nt((e, t) => ({
10990
10990
  }
10991
10991
  }));
10992
10992
  function Mf(e) {
10993
- return e ? Ft(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
10993
+ return e ? Pt(e).oklch()[0] > 0.7 ? "black" : "white" : "inherit";
10994
10994
  }
10995
10995
  function Ff(e) {
10996
10996
  const t = e.tableCellContext.bgColor;
@@ -11109,15 +11109,15 @@ function Wf({
11109
11109
  getSortedRowModel: Ss()
11110
11110
  }), {
11111
11111
  rows: de
11112
- } = B.getRowModel(), ze = z.useRef(null), Lt = ks({
11112
+ } = B.getRowModel(), ze = z.useRef(null), At = ks({
11113
11113
  parentRef: ze,
11114
11114
  size: de.length,
11115
11115
  estimateSize: fe(() => 28, []),
11116
11116
  overscan: 20
11117
11117
  }), {
11118
11118
  virtualItems: xe,
11119
- totalSize: At
11120
- } = Lt, ke = xe.length > 0 && ((Zr = xe == null ? void 0 : xe[0]) == null ? void 0 : Zr.start) || 0, Xr = xe.length > 0 ? At - (((Jr = xe == null ? void 0 : xe[xe.length - 1]) == null ? void 0 : Jr.end) || 0) : 0, An = de.length, Kr = An > 0, ol = Kr ? i - 22 : i, ll = Kr ? 22 : 0;
11119
+ totalSize: Vt
11120
+ } = At, ke = xe.length > 0 && ((Zr = xe == null ? void 0 : xe[0]) == null ? void 0 : Zr.start) || 0, Xr = xe.length > 0 ? Vt - (((Jr = xe == null ? void 0 : xe[xe.length - 1]) == null ? void 0 : Jr.end) || 0) : 0, An = de.length, Kr = An > 0, ol = Kr ? i - 22 : i, ll = Kr ? 22 : 0;
11121
11121
  return !Array.isArray(r) || r.length === 0 ? /* @__PURE__ */ n(v, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ c("div", { ref: ze, style: {
11122
11122
  height: i,
11123
11123
  width: a
@@ -11130,22 +11130,22 @@ function Wf({
11130
11130
  "Total: ",
11131
11131
  An
11132
11132
  ] }) }),
11133
- /* @__PURE__ */ c(ht, { sx: {
11133
+ /* @__PURE__ */ c(pt, { sx: {
11134
11134
  ...Lf,
11135
11135
  maxHeight: ol
11136
11136
  }, ...d, striped: o.striped, children: [
11137
11137
  /* @__PURE__ */ n("thead", { className: u.thead, style: {
11138
11138
  top: ll
11139
- }, children: B.getHeaderGroups().map((Te) => /* @__PURE__ */ n("tr", { children: Te.headers.map((ot) => /* @__PURE__ */ n("th", { style: {
11140
- width: ot.getSize()
11141
- }, children: /* @__PURE__ */ n(_f, { header: ot, cx: p }) }, ot.id)) }, Te.id)) }),
11139
+ }, children: B.getHeaderGroups().map((Te) => /* @__PURE__ */ n("tr", { children: Te.headers.map((lt) => /* @__PURE__ */ n("th", { style: {
11140
+ width: lt.getSize()
11141
+ }, children: /* @__PURE__ */ n(_f, { header: lt, cx: p }) }, lt.id)) }, Te.id)) }),
11142
11142
  /* @__PURE__ */ c("tbody", { children: [
11143
11143
  ke > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { style: {
11144
11144
  height: `${ke}px`
11145
11145
  } }) }),
11146
11146
  xe.map((Te) => {
11147
- const ot = de[Te.index];
11148
- return /* @__PURE__ */ n("tr", { children: ot.getVisibleCells().map((Le) => /* @__PURE__ */ n("td", { children: sn(Le.column.columnDef.cell, Le.getContext()) }, Le.id)) }, ot.id);
11147
+ const lt = de[Te.index];
11148
+ return /* @__PURE__ */ n("tr", { children: lt.getVisibleCells().map((Le) => /* @__PURE__ */ n("td", { children: sn(Le.column.columnDef.cell, Le.getContext()) }, Le.id)) }, lt.id);
11149
11149
  }),
11150
11150
  Xr > 0 && /* @__PURE__ */ n("tr", { children: /* @__PURE__ */ n("td", { style: {
11151
11151
  height: `${Xr}px`
@@ -11154,7 +11154,7 @@ function Wf({
11154
11154
  ] })
11155
11155
  ] });
11156
11156
  }
11157
- const mo = Nt(() => ({
11157
+ const mo = Bt(() => ({
11158
11158
  palette: {
11159
11159
  display: "flex",
11160
11160
  flexFlow: "row nowrap"
@@ -11192,7 +11192,7 @@ class jf {
11192
11192
  R(this, "steps", /* @__PURE__ */ new Map());
11193
11193
  R(this, "interpolation");
11194
11194
  R(this, "onChange");
11195
- Ht(this, {
11195
+ Qt(this, {
11196
11196
  steps: da
11197
11197
  }, {
11198
11198
  deep: !1
@@ -11245,7 +11245,7 @@ function Hf(e) {
11245
11245
  }, color: "dimmed", size: "sm", className: "palette-value--up palette-value", children: de }),
11246
11246
  /* @__PURE__ */ c(Vn, { width: 200, trapFocus: !0, opened: d, onClose: p, children: [
11247
11247
  /* @__PURE__ */ n(Vn.Target, { children: /* @__PURE__ */ n("div", { "data-testid": "palette-item-target", className: "palette-item", onClick: u, style: {
11248
- "--shadow-color": Ft(r).alpha(0.5).hex(),
11248
+ "--shadow-color": Pt(r).alpha(0.5).hex(),
11249
11249
  backgroundColor: r
11250
11250
  } }) }),
11251
11251
  /* @__PURE__ */ n(Vn.Dropdown, { children: /* @__PURE__ */ c(_, { children: [
@@ -11475,7 +11475,7 @@ const eb = ne((e, t) => {
11475
11475
  control: e,
11476
11476
  name: "columns"
11477
11477
  }), s = () => {
11478
- const u = dt();
11478
+ const u = ut();
11479
11479
  a({
11480
11480
  id: u,
11481
11481
  label: u,
@@ -11562,7 +11562,7 @@ function cb({
11562
11562
  id: r,
11563
11563
  ...i
11564
11564
  }) => ({
11565
- id: r ?? dt(),
11565
+ id: r ?? ut(),
11566
11566
  ...i
11567
11567
  }))
11568
11568
  };
@@ -11657,7 +11657,7 @@ class hb extends le {
11657
11657
  id: o,
11658
11658
  ...l
11659
11659
  }) => ({
11660
- id: o ?? dt(),
11660
+ id: o ?? ut(),
11661
11661
  ...l
11662
11662
  }))
11663
11663
  }
@@ -11696,20 +11696,23 @@ const jn = {
11696
11696
  value: r = Vr
11697
11697
  } = E(e.instanceData, "config"), {
11698
11698
  variables: i
11699
- } = e, {
11700
- func_content: a,
11701
- horizontal_align: o,
11702
- font_size: l,
11703
- font_weight: s
11704
- } = r, d = k(() => new Function(`return ${a}`)()({
11705
- data: e.data,
11706
- variables: i,
11699
+ } = e, a = e.data, {
11700
+ func_content: o,
11701
+ horizontal_align: l,
11702
+ font_size: s,
11703
+ font_weight: d
11704
+ } = r, u = k(() => i.reduce((m, h) => {
11705
+ const g = Dt(h, a);
11706
+ return m[h.name] = ot(h, g), m;
11707
+ }, {}), [i, a]), p = k(() => new Function(`return ${o}`)()({
11708
+ data: a,
11709
+ variables: u,
11707
11710
  filters: t.filters.values,
11708
11711
  context: t.context.current
11709
- }), [a, e.data, i, t.filters.values, t.context.current]);
11710
- return /* @__PURE__ */ n(v, { align: o, weight: s, sx: {
11711
- fontSize: l
11712
- }, children: d });
11712
+ }), [o, a, u, t.filters.values, t.context.current]);
11713
+ return /* @__PURE__ */ n(v, { align: l, weight: d, sx: {
11714
+ fontSize: s
11715
+ }, children: p });
11713
11716
  }), mb = ({
11714
11717
  value: e,
11715
11718
  onChange: t
@@ -11948,7 +11951,7 @@ function Sb({
11948
11951
  data: l,
11949
11952
  error: s,
11950
11953
  loading: d
11951
- } = qt(_b({
11954
+ } = Wt(_b({
11952
11955
  conf: r,
11953
11956
  data: o
11954
11957
  }), {
@@ -11957,7 +11960,7 @@ function Sb({
11957
11960
  return !i || !a || !r ? null : d ? /* @__PURE__ */ n(V, { sx: {
11958
11961
  position: "relative",
11959
11962
  height: a
11960
- }, children: /* @__PURE__ */ n(pt, { visible: !0 }) }) : s ? /* @__PURE__ */ n(V, { sx: Hn, "data-enable-scrollbar": !0, children: /* @__PURE__ */ n(Cb, { error: s, width: i, height: a }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ n(V, { sx: Hn, "data-enable-scrollbar": !0, children: l.replies.map((u, p) => /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: {
11963
+ }, children: /* @__PURE__ */ n(mt, { visible: !0 }) }) : s ? /* @__PURE__ */ n(V, { sx: Hn, "data-enable-scrollbar": !0, children: /* @__PURE__ */ n(Cb, { error: s, width: i, height: a }) }) : !l || !Array.isArray(l.replies) || l.replies.length === 0 ? null : /* @__PURE__ */ n(V, { sx: Hn, "data-enable-scrollbar": !0, children: l.replies.map((u, p) => /* @__PURE__ */ n("div", { dangerouslySetInnerHTML: {
11961
11964
  __html: u.interpretation.html
11962
11965
  } }, p)) });
11963
11966
  }
@@ -12421,7 +12424,7 @@ const Qb = ({
12421
12424
  cursor: "default",
12422
12425
  userSelect: "none"
12423
12426
  }, children: [
12424
- /* @__PURE__ */ n(jt, { size: 14, color: "#888" }),
12427
+ /* @__PURE__ */ n(Ht, { size: 14, color: "#888" }),
12425
12428
  /* @__PURE__ */ n(v, { size: 14, color: "#888", children: "Configure additional metrics to show in tooltip" })
12426
12429
  ] }),
12427
12430
  /* @__PURE__ */ n(L, { variant: "dashed", my: 10 }),
@@ -12651,7 +12654,7 @@ function lx({
12651
12654
  });
12652
12655
  const l = Fr(t, i, a), s = C.groupBy(l, "0");
12653
12656
  return Object.entries(s).map(([u, p]) => {
12654
- const m = Yt(p, "1", r);
12657
+ const m = Ut(p, "1", r);
12655
12658
  return [u, m];
12656
12659
  });
12657
12660
  }
@@ -12711,15 +12714,15 @@ function cx({
12711
12714
  value_data_key: t,
12712
12715
  valueTypedXAxis: w
12713
12716
  }), ze;
12714
- const Lt = sx({
12717
+ const At = sx({
12715
12718
  group_by_key: o,
12716
12719
  data: T,
12717
12720
  name_data_key: e.data_key,
12718
12721
  value_data_key: t
12719
12722
  });
12720
- return Object.entries(Lt).map(([xe, At]) => {
12723
+ return Object.entries(At).map(([xe, Vt]) => {
12721
12724
  const ke = ce(ze);
12722
- return ke.name = xe, ke.color = void 0, ke.data = At, ke;
12725
+ return ke.name = xe, ke.color = void 0, ke.data = Vt, ke;
12723
12726
  });
12724
12727
  }
12725
12728
  function dx(e, t, r, i, a, o, l) {
@@ -12736,7 +12739,7 @@ function ux(e, t) {
12736
12739
  axisValue: o,
12737
12740
  axisIndex: l
12738
12741
  } = r;
12739
- return a === "yAxis.category" ? i : Dt(t.y_axis.axisLabel.formatter)(o, l);
12742
+ return a === "yAxis.category" ? i : It(t.y_axis.axisLabel.formatter)(o, l);
12740
12743
  }
12741
12744
  function hx(e, t, r) {
12742
12745
  const i = t.reduce((a, {
@@ -12804,8 +12807,8 @@ function px(e) {
12804
12807
  function mx(e, t) {
12805
12808
  const r = {};
12806
12809
  return t.map((i) => {
12807
- const a = Ut(i, e);
12808
- r[i.name] = ft(i, a);
12810
+ const a = Dt(i, e);
12811
+ r[i.name] = ot(i, a);
12809
12812
  }), r;
12810
12813
  }
12811
12814
  function gx(e, t) {
@@ -12866,7 +12869,7 @@ function fx(e, t) {
12866
12869
  axisLabel: {
12867
12870
  ...a,
12868
12871
  ...o,
12869
- formatter: Dt(a.formatter)
12872
+ formatter: It(a.formatter)
12870
12873
  },
12871
12874
  z: 5
12872
12875
  }];
@@ -12940,7 +12943,7 @@ function yx() {
12940
12943
  hide_in_legend: !1,
12941
12944
  invisible: !1,
12942
12945
  label_position: "right",
12943
- aggregation_on_value: Qt,
12946
+ aggregation_on_value: Yt,
12944
12947
  xAxisIndex: "0"
12945
12948
  };
12946
12949
  }
@@ -13265,7 +13268,7 @@ function Ax({
13265
13268
  }, ...l }) }),
13266
13269
  /* @__PURE__ */ n(b, { name: `series.${t}.aggregation_on_value`, control: e, render: ({
13267
13270
  field: l
13268
- }) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: l.value ?? Qt, onChange: l.onChange, pt: 0 }) })
13271
+ }) => /* @__PURE__ */ n(Sn, { label: "Aggregation on Value", value: l.value ?? Yt, onChange: l.onChange, pt: 0 }) })
13269
13272
  ] }),
13270
13273
  /* @__PURE__ */ n(y, { grow: !0, children: /* @__PURE__ */ n(b, { name: `series.${t}.group_by_key`, control: e, render: ({
13271
13274
  field: l
@@ -13451,7 +13454,7 @@ function Px({
13451
13454
  }) => /* @__PURE__ */ n(Tn, { data: e, ...i }) }) }),
13452
13455
  /* @__PURE__ */ n(b, { name: "y_axis.axisLabel.overflow", control: t, render: ({
13453
13456
  field: i
13454
- }) => /* @__PURE__ */ n(gt, { ...i }) })
13457
+ }) => /* @__PURE__ */ n(ft, { ...i }) })
13455
13458
  ] });
13456
13459
  }
13457
13460
  function $x({
@@ -13583,7 +13586,7 @@ const Ex = {
13583
13586
  viz: [jn, Jg, yb, Om, wf, lm, Ex, id, Hd, Xh, Sp, ex, nm, Ih, jg, Cm, Rm, Db, ou],
13584
13587
  color: [...Nx, ...Bx]
13585
13588
  }
13586
- }), Vt = new Zc(), ae = {
13589
+ }), Rt = new Zc(), ae = {
13587
13590
  pluginManager: Qe("pluginManager"),
13588
13591
  vizManager: Qe("vizManager"),
13589
13592
  colorManager: Qe("colorManager"),
@@ -13597,18 +13600,18 @@ const Ex = {
13597
13600
  }
13598
13601
  }, $r = () => {
13599
13602
  try {
13600
- Vt.install(xo());
13603
+ Rt.install(xo());
13601
13604
  } catch {
13602
13605
  }
13603
- const e = new Nc(Vt), t = new Kc(Vt);
13606
+ const e = new Nc(Rt), t = new Kc(Rt);
13604
13607
  return {
13605
- pluginManager: Vt,
13608
+ pluginManager: Rt,
13606
13609
  vizManager: e,
13607
13610
  colorManager: t
13608
13611
  };
13609
13612
  }, Ge = Vi($r());
13610
13613
  try {
13611
- Vt.install(xo());
13614
+ Rt.install(xo());
13612
13615
  } catch {
13613
13616
  }
13614
13617
  function qx(e, t) {
@@ -13765,7 +13768,7 @@ const Jx = {
13765
13768
  };
13766
13769
  return /* @__PURE__ */ c(_, { spacing: 10, children: [
13767
13770
  /* @__PURE__ */ n(v, { children: "Mapping Rules" }),
13768
- Object.entries(a).map(([d, u]) => /* @__PURE__ */ c(Bt, { justify: "space-between", gap: 10, children: [
13771
+ Object.entries(a).map(([d, u]) => /* @__PURE__ */ c(qt, { justify: "space-between", gap: 10, children: [
13769
13772
  /* @__PURE__ */ n(I, { label: "Payload key", value: u, onChange: (p) => {
13770
13773
  o(d, p.currentTarget.value);
13771
13774
  }, sx: {
@@ -13817,7 +13820,7 @@ const ry = {
13817
13820
  label: s.label,
13818
13821
  value: s.key
13819
13822
  })), [t.filters.values]);
13820
- return /* @__PURE__ */ n(_, { spacing: 10, children: /* @__PURE__ */ n(Et, { label: "Select Filters to Clear", data: l, value: a, onChange: o }) });
13823
+ return /* @__PURE__ */ n(_, { spacing: 10, children: /* @__PURE__ */ n(Nt, { label: "Select Filters to Clear", data: l, value: a, onChange: o }) });
13821
13824
  });
13822
13825
  async function oy(e, t) {
13823
13826
  const i = (await t.operationData.getItem("config")).filter_keys;
@@ -14078,14 +14081,14 @@ class dy {
14078
14081
  R(this, "operation");
14079
14082
  R(this, "operationSchema");
14080
14083
  R(this, "variables", []);
14081
- this.operationManager = t, this.instance = r, Ht(this);
14084
+ this.operationManager = t, this.instance = r, Qt(this);
14082
14085
  }
14083
14086
  get schemaList() {
14084
14087
  return this.operationManager.getOperationSchemaList();
14085
14088
  }
14086
14089
  async configOperation(t, r) {
14087
14090
  const i = await this.operationManager.retrieveTrigger(t), a = this.operationManager.getOperationSchemaList().find((o) => o.id === (i == null ? void 0 : i.schemaRef));
14088
- Rt(() => {
14091
+ Mt(() => {
14089
14092
  this.operationId = t, this.operation = i, this.operationSchema = a, this.variables = r;
14090
14093
  });
14091
14094
  }
@@ -14135,7 +14138,7 @@ const gy = S((e) => {
14135
14138
  instance: l,
14136
14139
  variables: s
14137
14140
  } = e, d = Me(() => new dy(a, l), [a, l]);
14138
- return Wt(async () => {
14141
+ return Gt(async () => {
14139
14142
  await d.configOperation(o, s);
14140
14143
  }, [o, d]), uy(d) ? /* @__PURE__ */ c(F, { children: [
14141
14144
  /* @__PURE__ */ n(hy, { model: d, onClick: r }),
@@ -14152,14 +14155,14 @@ class fy {
14152
14155
  R(this, "trigger");
14153
14156
  R(this, "triggerSchema");
14154
14157
  R(this, "sampleData");
14155
- this.triggerManager = t, this.instance = r, Ht(this);
14158
+ this.triggerManager = t, this.instance = r, Qt(this);
14156
14159
  }
14157
14160
  get schemaList() {
14158
14161
  return this.triggerManager.getTriggerSchemaList();
14159
14162
  }
14160
14163
  async configTrigger(t, r) {
14161
14164
  const i = await this.triggerManager.retrieveTrigger(t), a = this.triggerManager.getTriggerSchemaList().find((o) => o.id === (i == null ? void 0 : i.schemaRef));
14162
- Rt(() => {
14165
+ Mt(() => {
14163
14166
  this.triggerId = t, this.trigger = i, this.triggerSchema = a, this.sampleData = r;
14164
14167
  });
14165
14168
  }
@@ -14222,7 +14225,7 @@ const yy = S(({
14222
14225
  });
14223
14226
  function Cy(e, t) {
14224
14227
  const [r, i] = N([]);
14225
- return Wt(async () => {
14228
+ return Gt(async () => {
14226
14229
  const a = await e.getInteractionList();
14227
14230
  i(a);
14228
14231
  }, [t, e]), r;
@@ -14239,7 +14242,7 @@ const Sy = S(({
14239
14242
  triggerRef: l,
14240
14243
  operationRef: s
14241
14244
  } = e, d = xy(t.triggerManager, r);
14242
- if (Wt(async () => {
14245
+ if (Gt(async () => {
14243
14246
  await d.configTrigger(l, i);
14244
14247
  }, [d, l, i]), d.isReady()) {
14245
14248
  const u = [...d.triggerSchema.payload, ...a];
@@ -14257,7 +14260,7 @@ const Sy = S(({
14257
14260
  sampleData: o,
14258
14261
  variables: l
14259
14262
  } = e, s = Cy(i, t), d = async () => {
14260
- const h = await i.triggerManager.createOrGetTrigger(dt(), i.triggerManager.getTriggerSchemaList()[0]), g = await i.operationManager.createOrGetOperation(dt(), i.operationManager.getOperationSchemaList()[0]);
14263
+ const h = await i.triggerManager.createOrGetTrigger(ut(), i.triggerManager.getTriggerSchemaList()[0]), g = await i.operationManager.createOrGetOperation(ut(), i.operationManager.getOperationSchemaList()[0]);
14261
14264
  await i.addInteraction(h, g), r((w) => w + 1);
14262
14265
  };
14263
14266
  async function u(h) {
@@ -14266,7 +14269,7 @@ const Sy = S(({
14266
14269
  const {
14267
14270
  data: p = 0,
14268
14271
  loading: m
14269
- } = qt(async () => {
14272
+ } = Wt(async () => {
14270
14273
  try {
14271
14274
  return (await i.triggerManager.getTriggerSchemaList()).length;
14272
14275
  } catch {
@@ -14274,7 +14277,7 @@ const Sy = S(({
14274
14277
  }
14275
14278
  });
14276
14279
  return /* @__PURE__ */ c(_, { children: [
14277
- /* @__PURE__ */ n(pt, { visible: m }),
14280
+ /* @__PURE__ */ n(mt, { visible: m }),
14278
14281
  p === 0 && /* @__PURE__ */ n(fl, { icon: /* @__PURE__ */ n(ls, { size: 16 }), title: "Unavailable", color: "gray", children: "This visualization does not have available interactions to choose from" }),
14279
14282
  s.map((h) => /* @__PURE__ */ n(Sy, { onRemove: u, instance: a, sampleData: o, variables: l, item: h, manager: e.interactionManager }, h.id)),
14280
14283
  /* @__PURE__ */ n(D, { style: {
@@ -14372,7 +14375,7 @@ function wo(e) {
14372
14375
  }
14373
14376
  function _o(e) {
14374
14377
  const [t, r] = N(!1), i = va().getRequired(ae.instanceScope.migrator);
14375
- return Wt(async () => {
14378
+ return Gt(async () => {
14376
14379
  const a = i.status === an.notStarted;
14377
14380
  r(i.status === an.done), i.status === an.notStarted && i.runMigration().then((o) => {
14378
14381
  o === vo.migrated && a && (e == null || e());
@@ -14399,7 +14402,7 @@ function zy({
14399
14402
  message: "Your plugin configuration has been migrated to the latest version"
14400
14403
  });
14401
14404
  });
14402
- return Wt(async () => {
14405
+ return Gt(async () => {
14403
14406
  await i.instanceData.setItem(null, r.viz.conf);
14404
14407
  }, [i, r.viz.type]), a ? /* @__PURE__ */ n(qc, { ...t }) : /* @__PURE__ */ n(v, { children: "Checking update..." });
14405
14408
  }
@@ -14411,7 +14414,7 @@ function Ly(e) {
14411
14414
  Co(r, t);
14412
14415
  const {
14413
14416
  inEditMode: i
14414
- } = Be(mt);
14417
+ } = Be(gt);
14415
14418
  return _o(() => {
14416
14419
  i && yn({
14417
14420
  title: `${t.title} - Updated`,
@@ -14457,7 +14460,7 @@ const Vy = ["richText", "button"], So = S(function({
14457
14460
  ref: s,
14458
14461
  width: d,
14459
14462
  height: u
14460
- } = Pt(), p = Ay(i, {
14463
+ } = $t(), p = Ay(i, {
14461
14464
  w: d,
14462
14465
  h: u
14463
14466
  });
@@ -14469,7 +14472,7 @@ const Vy = ["richText", "button"], So = S(function({
14469
14472
  return /* @__PURE__ */ n("div", { className: "viz-root", style: {
14470
14473
  height: t,
14471
14474
  position: "relative"
14472
- }, ref: s, children: /* @__PURE__ */ n(pt, { visible: a, exitTransitionDuration: 0 }) });
14475
+ }, ref: s, children: /* @__PURE__ */ n(mt, { visible: a, exitTransitionDuration: 0 }) });
14473
14476
  const h = !!o, g = !h && !!(l != null && l.stateMessage), w = !h && !g;
14474
14477
  return /* @__PURE__ */ c("div", { className: "viz-root", style: {
14475
14478
  height: t
@@ -14504,7 +14507,7 @@ const Er = S(function({
14504
14507
  }) {
14505
14508
  const i = P(), {
14506
14509
  inEditMode: a
14507
- } = Be(mt), {
14510
+ } = Be(gt), {
14508
14511
  data: o,
14509
14512
  state: l,
14510
14513
  error: s
@@ -14534,8 +14537,8 @@ const Py = z.forwardRef(({
14534
14537
  userSelect: "none",
14535
14538
  cursor: "grab",
14536
14539
  position: "absolute",
14537
- top: 0,
14538
- right: 0,
14540
+ top: 5,
14541
+ right: 5,
14539
14542
  zIndex: 400,
14540
14543
  "&:hover": {
14541
14544
  color: "#228be6"
@@ -14547,8 +14550,8 @@ const Py = z.forwardRef(({
14547
14550
  userSelect: "none",
14548
14551
  cursor: "nwse-resize",
14549
14552
  position: "absolute",
14550
- bottom: -5,
14551
- right: -5,
14553
+ bottom: 0,
14554
+ right: 0,
14552
14555
  zIndex: 400,
14553
14556
  "&:hover": {
14554
14557
  color: "#228be6"
@@ -14556,40 +14559,38 @@ const Py = z.forwardRef(({
14556
14559
  }, variant: "transparent", ...t, children: /* @__PURE__ */ n(cs, { size: 16 }) })), Oy = ca(sa), Ey = S(function({
14557
14560
  view: t,
14558
14561
  className: r = "layout",
14559
- rowHeight: i = 10,
14560
- isDraggable: a,
14561
- isResizable: o
14562
+ isDraggable: i,
14563
+ isResizable: a
14562
14564
  }) {
14563
- const l = P(), {
14564
- panels: s,
14565
- layouts: d
14566
- } = l.panels.panelsByIDs(t.panelIDs), u = z.useCallback((p) => {
14567
- p.forEach(({
14568
- i: m,
14569
- ...h
14565
+ const o = P(), {
14566
+ panels: l,
14567
+ layouts: s
14568
+ } = o.panels.panelsByIDs(t.panelIDs), d = z.useCallback((u) => {
14569
+ u.forEach(({
14570
+ i: p,
14571
+ ...m
14570
14572
  }) => {
14571
- const g = l.panels.findByID(m);
14572
- g && g.layout.set(h);
14573
+ const h = o.panels.findByID(p);
14574
+ h && h.layout.set(m);
14573
14575
  });
14574
- }, [l]);
14575
- return /* @__PURE__ */ n(Oy, { onLayoutChange: u, className: `dashboard-layout ${r}`, rowHeight: i, layout: d, isDraggable: a, isResizable: o, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ n($y, {}), children: s.map((p, m) => /* @__PURE__ */ c("div", { "data-grid": {
14576
- ...p.layout
14577
- }, style: {
14578
- position: "relative"
14579
- }, children: [
14580
- a && /* @__PURE__ */ n(Py, {}),
14581
- /* @__PURE__ */ n(Er, { view: t, panel: p })
14582
- ] }, p.id)) });
14576
+ }, [o]);
14577
+ return /* @__PURE__ */ n(Oy, { onLayoutChange: d, className: `dashboard-layout ${r}`, rowHeight: 1, margin: [0, 0], layout: s, isDraggable: i, isResizable: a, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ n($y, {}), children: l.map((u, p) => /* @__PURE__ */ c("div", { "data-grid": {
14578
+ ...u.layout
14579
+ }, className: "panel-grid-item", children: [
14580
+ i && /* @__PURE__ */ n(Py, {}),
14581
+ /* @__PURE__ */ n(Er, { view: t, panel: u })
14582
+ ] }, u.id)) });
14583
14583
  }), Ny = ca(sa), By = S(function({
14584
14584
  view: t,
14585
- className: r = "layout",
14586
- rowHeight: i = 10
14585
+ className: r = "layout"
14587
14586
  }) {
14588
14587
  const {
14589
- panels: a,
14590
- layouts: o
14588
+ panels: i,
14589
+ layouts: a
14591
14590
  } = P().panels.panelsByIDs(t.panelIDs);
14592
- return /* @__PURE__ */ n(Ny, { className: `dashboard-layout ${r}`, rowHeight: i, isDraggable: !1, isResizable: !1, layout: o, children: a.map((l) => /* @__PURE__ */ n("div", { "data-grid": l.layout, children: /* @__PURE__ */ n(Er, { view: t, panel: l }) }, l.id)) });
14591
+ return /* @__PURE__ */ n(Ny, { className: `dashboard-layout ${r}`, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: a, children: i.map((o) => /* @__PURE__ */ n("div", { "data-grid": {
14592
+ ...o.layout
14593
+ }, className: "panel-grid-item", children: /* @__PURE__ */ n(Er, { view: t, panel: o }) }, o.id)) });
14593
14594
  });
14594
14595
  var qy = /* @__PURE__ */ ((e) => (e.Use = "use", e.Edit = "edit", e))(qy || {}), G = /* @__PURE__ */ ((e) => (e.Division = "div", e.Modal = "modal", e.Tabs = "tabs", e))(G || {});
14595
14596
  const I1 = {
@@ -14690,7 +14691,7 @@ const Gy = S(({
14690
14691
  bottom: 0,
14691
14692
  zIndex: 200
14692
14693
  }, children: [
14693
- /* @__PURE__ */ n(ut, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
14694
+ /* @__PURE__ */ n(ht, { opacity: 0.8, color: "#FFF", blur: 10, zIndex: 100 }),
14694
14695
  /* @__PURE__ */ c(_, { mx: "auto", mt: 100, sx: {
14695
14696
  width: "300px",
14696
14697
  position: "relative",
@@ -15524,7 +15525,7 @@ function Oo(e) {
15524
15525
  }), $o + t.join(`
15525
15526
  `);
15526
15527
  }
15527
- const zt = {
15528
+ const Lt = {
15528
15529
  CryptoJS: xa,
15529
15530
  d3Array: Cs,
15530
15531
  dayjs: O,
@@ -15584,7 +15585,7 @@ const zt = {
15584
15585
  </table>
15585
15586
  `;
15586
15587
  function Cv(e, t) {
15587
- return new Function(`return ${e}`)()(t, zt);
15588
+ return new Function(`return ${e}`)()(t, Lt);
15588
15589
  }
15589
15590
  function Sv(e, t, r) {
15590
15591
  return {
@@ -15601,21 +15602,21 @@ function kv(e, t, r, i) {
15601
15602
  }
15602
15603
  function Tv(e, t) {
15603
15604
  try {
15604
- return new Function(`return ${e.config.processing.pre}`)()(t, zt);
15605
+ return new Function(`return ${e.config.processing.pre}`)()(t, Lt);
15605
15606
  } catch (r) {
15606
15607
  return console.error(r), t;
15607
15608
  }
15608
15609
  }
15609
15610
  function Dv(e, t) {
15610
15611
  try {
15611
- return new Function(`return ${e.config.processing.post}`)()(t, zt);
15612
+ return new Function(`return ${e.config.processing.post}`)()(t, Lt);
15612
15613
  } catch (r) {
15613
15614
  return console.error(r), t;
15614
15615
  }
15615
15616
  }
15616
15617
  function Iv(e, t) {
15617
15618
  try {
15618
- return new Function(`return ${e}`)()(t, zt);
15619
+ return new Function(`return ${e}`)()(t, Lt);
15619
15620
  } catch (r) {
15620
15621
  return console.error(r), t;
15621
15622
  }
@@ -15667,7 +15668,7 @@ function Lv({
15667
15668
  try {
15668
15669
  return new Function(`return ${t}`)()({
15669
15670
  sql: e
15670
- }, zt);
15671
+ }, Lt);
15671
15672
  } catch (r) {
15672
15673
  return console.error(r), e;
15673
15674
  }
@@ -15676,7 +15677,7 @@ function Av(e, t) {
15676
15677
  if (!e.trim())
15677
15678
  return t;
15678
15679
  try {
15679
- return new Function(`return ${e}`)()(t, zt);
15680
+ return new Function(`return ${e}`)()(t, Lt);
15680
15681
  } catch (r) {
15681
15682
  return console.error(r), t;
15682
15683
  }
@@ -15926,7 +15927,7 @@ const Mv = f.model("QueryModel", {
15926
15927
  sqlSnippets: a,
15927
15928
  filterValues: o
15928
15929
  } = pe(e).payloadForSQL;
15929
- e.data = yield* st(Vv({
15930
+ e.data = yield* ct(Vv({
15930
15931
  context: r,
15931
15932
  mock_context: i,
15932
15933
  sqlSnippets: a,
@@ -15953,7 +15954,7 @@ const Mv = f.model("QueryModel", {
15953
15954
  mock_context: i,
15954
15955
  filterValues: a
15955
15956
  } = pe(e).payloadForSQL;
15956
- e.data = yield* st(Rv({
15957
+ e.data = yield* ct(Rv({
15957
15958
  context: r,
15958
15959
  mock_context: i,
15959
15960
  query: e.json,
@@ -16356,7 +16357,7 @@ const Mv = f.model("QueryModel", {
16356
16357
  var r;
16357
16358
  (r = e.controllers.tables) == null || r.abort(), e.controllers.tables = new AbortController(), e.tables.state = "loading";
16358
16359
  try {
16359
- const i = yield* st(De.getRequest("POST", e.controllers.tables.signal)("/query", {
16360
+ const i = yield* ct(De.getRequest("POST", e.controllers.tables.signal)("/query", {
16360
16361
  type: e.type,
16361
16362
  key: e.key,
16362
16363
  query: e.tables.sql
@@ -16379,7 +16380,7 @@ const Mv = f.model("QueryModel", {
16379
16380
  var r;
16380
16381
  (r = e.controllers.columns) == null || r.abort(), e.controllers.columns = new AbortController(), e.columns.state = "loading";
16381
16382
  try {
16382
- e.columns.data = yield* st(De.getRequest("POST", e.controllers.columns.signal)("/query", {
16383
+ e.columns.data = yield* ct(De.getRequest("POST", e.controllers.columns.signal)("/query", {
16383
16384
  type: e.type,
16384
16385
  key: e.key,
16385
16386
  query: e.columns.sql
@@ -16398,7 +16399,7 @@ const Mv = f.model("QueryModel", {
16398
16399
  var r;
16399
16400
  (r = e.controllers.indexes) == null || r.abort(), e.controllers.indexes = new AbortController(), e.indexes.state = "loading";
16400
16401
  try {
16401
- e.indexes.data = yield* st(De.getRequest("POST", e.controllers.indexes.signal)("/query", {
16402
+ e.indexes.data = yield* ct(De.getRequest("POST", e.controllers.indexes.signal)("/query", {
16402
16403
  type: e.type,
16403
16404
  key: e.key,
16404
16405
  query: e.indexes.sql
@@ -16419,14 +16420,14 @@ const Mv = f.model("QueryModel", {
16419
16420
  const r = e.tableData;
16420
16421
  r.state = "loading";
16421
16422
  try {
16422
- r.data = yield* st(De.getRequest("POST", e.controllers.tableData.signal)("/query", {
16423
+ r.data = yield* ct(De.getRequest("POST", e.controllers.tableData.signal)("/query", {
16423
16424
  type: e.type,
16424
16425
  key: e.key,
16425
16426
  query: r.sql
16426
16427
  }, {}));
16427
16428
  const [{
16428
16429
  total: a
16429
- }] = yield* st(De.getRequest("POST", e.controllers.tableData.signal)("/query", {
16430
+ }] = yield* ct(De.getRequest("POST", e.controllers.tableData.signal)("/query", {
16430
16431
  type: e.type,
16431
16432
  key: e.key,
16432
16433
  query: r.countSql
@@ -16741,7 +16742,7 @@ class e0 {
16741
16742
  constructor(t) {
16742
16743
  R(this, "origin");
16743
16744
  R(this, "copy");
16744
- this.origin = t, this.copy = zs(t), Ht(this, {}, {
16745
+ this.origin = t, this.copy = zs(t), Qt(this, {}, {
16745
16746
  autoBind: !0,
16746
16747
  deep: !1
16747
16748
  });
@@ -17087,7 +17088,7 @@ const i0 = f.model("PanelsModel", {
17087
17088
  e.tabs.length = 0, e.tabs = Tt(t);
17088
17089
  },
17089
17090
  addTab() {
17090
- const t = dt(), r = {
17091
+ const t = ut(), r = {
17091
17092
  id: t,
17092
17093
  name: t,
17093
17094
  view_id: ""
@@ -17590,7 +17591,7 @@ const Ho = {
17590
17591
  ] }),
17591
17592
  /* @__PURE__ */ c(y, { spacing: 16, children: [
17592
17593
  /* @__PURE__ */ n(ee, { label: "Revert Changes", withinPortal: !0, children: /* @__PURE__ */ n($, { variant: "default", size: "md", disabled: !u, onClick: d, children: /* @__PURE__ */ n(qi, { size: 20, color: "red" }) }) }),
17593
- /* @__PURE__ */ n(D, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ n(Gt, { size: 18 }), onClick: e, disabled: !u, children: "Save Changes" })
17594
+ /* @__PURE__ */ n(D, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ n(jt, { size: 18 }), onClick: e, disabled: !u, children: "Save Changes" })
17594
17595
  ] })
17595
17596
  ] })
17596
17597
  ] }) });
@@ -17942,7 +17943,7 @@ const M0 = {
17942
17943
  }) => {
17943
17944
  const {
17944
17945
  freezeLayout: r
17945
- } = z.useContext(mt);
17946
+ } = z.useContext(gt);
17946
17947
  return z.useEffect(() => {
17947
17948
  r(e);
17948
17949
  }, [e]), /* @__PURE__ */ n(
@@ -18165,7 +18166,7 @@ const O0 = S(() => {
18165
18166
  minHeight: "50px"
18166
18167
  }, children: [
18167
18168
  t.usingQuery && /* @__PURE__ */ c(F, { children: [
18168
- /* @__PURE__ */ n(ut, { opacity: 0.8, color: "#000", sx: {
18169
+ /* @__PURE__ */ n(ht, { opacity: 0.8, color: "#000", sx: {
18169
18170
  left: "-5px",
18170
18171
  right: "-5px",
18171
18172
  top: "-5px",
@@ -18180,8 +18181,8 @@ const O0 = S(() => {
18180
18181
  width: "100%"
18181
18182
  }, children: /* @__PURE__ */ n(v, { color: "white", size: 16, children: "Using query" }) })
18182
18183
  ] }),
18183
- i.length > 0 && /* @__PURE__ */ n(Et, { label: "Default Selection", data: a, value: [...t.default_value], onChange: t.setDefaultValue }),
18184
- i.map((o, l) => /* @__PURE__ */ c(Bt, { gap: 10, sx: {
18184
+ i.length > 0 && /* @__PURE__ */ n(Nt, { label: "Default Selection", data: a, value: [...t.default_value], onChange: t.setDefaultValue }),
18185
+ i.map((o, l) => /* @__PURE__ */ c(qt, { gap: 10, sx: {
18185
18186
  position: "relative"
18186
18187
  }, pr: "40px", children: [
18187
18188
  /* @__PURE__ */ n(I, { label: "Label", required: !0, value: t.static_options[l].label, onChange: (s) => {
@@ -18230,7 +18231,7 @@ const O0 = S(() => {
18230
18231
  minHeight: "50px"
18231
18232
  }, children: [
18232
18233
  t.usingQuery && /* @__PURE__ */ c(F, { children: [
18233
- /* @__PURE__ */ n(ut, { opacity: 0.8, color: "#000", sx: {
18234
+ /* @__PURE__ */ n(ht, { opacity: 0.8, color: "#000", sx: {
18234
18235
  left: "-5px",
18235
18236
  right: "-5px",
18236
18237
  top: "-5px",
@@ -18246,7 +18247,7 @@ const O0 = S(() => {
18246
18247
  }, children: /* @__PURE__ */ n(v, { color: "white", size: 16, children: "Using query" }) })
18247
18248
  ] }),
18248
18249
  i.length > 0 && /* @__PURE__ */ n(A, { label: "Default Selection", data: a, value: t.default_value, onChange: t.setDefaultValue }),
18249
- i.map((o, l) => /* @__PURE__ */ c(Bt, { gap: 10, sx: {
18250
+ i.map((o, l) => /* @__PURE__ */ c(qt, { gap: 10, sx: {
18250
18251
  position: "relative"
18251
18252
  }, pr: "40px", children: [
18252
18253
  /* @__PURE__ */ n(I, { label: "Label", required: !0, value: t.static_options[l].label, onChange: (s) => {
@@ -18372,7 +18373,7 @@ const O0 = S(() => {
18372
18373
  ),
18373
18374
  t.auto_submit_supported && /* @__PURE__ */ n(K, { label: "Submit automatically", checked: t.auto_submit, onChange: (a) => t.setAutoSubmit(a.currentTarget.checked), mt: 22 })
18374
18375
  ] }),
18375
- /* @__PURE__ */ n(Et, { label: "Visible in...", data: r.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
18376
+ /* @__PURE__ */ n(Nt, { label: "Visible in...", data: r.views.options, value: [...t.visibleInViewsIDs], onChange: t.setVisibleInViewsIDs }),
18376
18377
  /* @__PURE__ */ n(I, { label: "Key", placeholder: "A unique key to refer", required: !0, value: t.key, onChange: (a) => {
18377
18378
  t.setKey(a.currentTarget.value);
18378
18379
  } }),
@@ -18578,7 +18579,7 @@ function Zo({
18578
18579
  });
18579
18580
  return e.length === 0 ? /* @__PURE__ */ n(V, { sx: {
18580
18581
  height: "5em"
18581
- } }) : /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ c(ht, { sx: lw, children: [
18582
+ } }) : /* @__PURE__ */ n(_e, { children: /* @__PURE__ */ c(pt, { sx: lw, children: [
18582
18583
  /* @__PURE__ */ n("thead", { children: r.getHeaderGroups().map((i) => /* @__PURE__ */ n("tr", { children: i.headers.map((a) => /* @__PURE__ */ c("th", { style: {
18583
18584
  width: a.getSize()
18584
18585
  }, children: [
@@ -18622,7 +18623,7 @@ const Jo = S(function({
18622
18623
  position: "relative",
18623
18624
  overflow: "auto"
18624
18625
  }, children: [
18625
- /* @__PURE__ */ n(pt, { visible: o }),
18626
+ /* @__PURE__ */ n(mt, { visible: o }),
18626
18627
  /* @__PURE__ */ n(ow, { queryID: t }),
18627
18628
  /* @__PURE__ */ n(Zo, { data: d })
18628
18629
  ] })
@@ -18736,7 +18737,7 @@ class uw {
18736
18737
  constructor(t) {
18737
18738
  R(this, "panel");
18738
18739
  R(this, "selected");
18739
- this.panel = t, Ht(this, {}, {
18740
+ this.panel = t, Qt(this, {}, {
18740
18741
  deep: !1,
18741
18742
  autoBind: !0
18742
18743
  });
@@ -18789,7 +18790,7 @@ const pw = z.forwardRef(function({
18789
18790
  /* @__PURE__ */ n(We, { value: t.formatter, onChange: (s) => l("formatter", s) }),
18790
18791
  a && /* @__PURE__ */ n(Ya, { value: t, onChange: r })
18791
18792
  ] });
18792
- }), el = Nt((e) => ({
18793
+ }), el = Bt((e) => ({
18793
18794
  root: {
18794
18795
  height: "100%",
18795
18796
  overflow: "hidden",
@@ -18841,7 +18842,7 @@ const pw = z.forwardRef(function({
18841
18842
  }, align: "start", children: [
18842
18843
  /* @__PURE__ */ c(_, { "data-testid": "variable-editor", align: "stretch", className: r.config, children: [
18843
18844
  /* @__PURE__ */ c(y, { position: "right", children: [
18844
- /* @__PURE__ */ n($, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ n(Gt, { size: 18 }) }),
18845
+ /* @__PURE__ */ n($, { variant: "filled", disabled: !t.changed, color: "primary", onClick: t.commit, children: /* @__PURE__ */ n(jt, { size: 18 }) }),
18845
18846
  /* @__PURE__ */ n($, { color: "red", onClick: () => e.uiModel.remove(e.variable), children: /* @__PURE__ */ n(vt, { size: 18 }) })
18846
18847
  ] }),
18847
18848
  /* @__PURE__ */ n(pw, { value: Oe(t.copy), onChange: t.update, data: i })
@@ -18993,7 +18994,7 @@ const Tw = S(() => {
18993
18994
  flexShrink: 0
18994
18995
  }, children: [
18995
18996
  /* @__PURE__ */ n(D, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ n(Wi, { size: 14 }), onClick: s, children: "Cancel" }),
18996
- /* @__PURE__ */ n(D, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ n(Gt, { size: 14 }), onClick: d, disabled: i === t, children: "Confirm" })
18997
+ /* @__PURE__ */ n(D, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ n(jt, { size: 14 }), onClick: d, disabled: i === t, children: "Confirm" })
18997
18998
  ] })
18998
18999
  ] }) })
18999
19000
  ] });
@@ -19079,7 +19080,7 @@ const Lw = S(({
19079
19080
  /* @__PURE__ */ n(x.Tab, { value: "Interactions", children: "Interactions" })
19080
19081
  ] }),
19081
19082
  /* @__PURE__ */ c(x.Panel, { value: "Data", children: [
19082
- /* @__PURE__ */ n(pt, { visible: p, exitTransitionDuration: 0 }),
19083
+ /* @__PURE__ */ n(mt, { visible: p, exitTransitionDuration: 0 }),
19083
19084
  /* @__PURE__ */ n(sw, {})
19084
19085
  ] }),
19085
19086
  /* @__PURE__ */ n(x.Panel, { value: "Panel", children: /* @__PURE__ */ n(Si, { children: /* @__PURE__ */ n(aw, {}) }) }),
@@ -19115,7 +19116,7 @@ const Lw = S(({
19115
19116
  }) => /* @__PURE__ */ c(_, { spacing: a, mt: 6, pl: o, children: [
19116
19117
  Array.from(new Array(i - 1), (l, s) => /* @__PURE__ */ n(ii, { width: e, height: r, radius: "xs" }, s)),
19117
19118
  /* @__PURE__ */ n(ii, { width: t, height: r, radius: "xs" })
19118
- ] }), Mt = ({
19119
+ ] }), Ft = ({
19119
19120
  value: e
19120
19121
  }) => e === null || e === "" ? null : /* @__PURE__ */ n(ee, { label: e, disabled: !e, multiline: !0, children: /* @__PURE__ */ n($, { children: /* @__PURE__ */ n(nr, { size: 14 }) }) }), Vw = ({
19121
19122
  column: e
@@ -19131,7 +19132,7 @@ const Lw = S(({
19131
19132
  const {
19132
19133
  columns: t
19133
19134
  } = e;
19134
- return t.loading ? /* @__PURE__ */ n(tl, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ c(ht, { highlightOnHover: !0, fontSize: 14, sx: {
19135
+ return t.loading ? /* @__PURE__ */ n(tl, { height: "24px", width: "100%", lastWidth: "100%", count: 20, pl: 6 }) : t.empty ? null : /* @__PURE__ */ c(pt, { highlightOnHover: !0, fontSize: 14, sx: {
19135
19136
  width: "auto",
19136
19137
  minWidth: "1000px",
19137
19138
  alignSelf: "flex-start",
@@ -19178,11 +19179,11 @@ const Lw = S(({
19178
19179
  /* @__PURE__ */ n("tbody", { children: t.data.map((r) => /* @__PURE__ */ c("tr", { children: [
19179
19180
  /* @__PURE__ */ n("td", { children: r.ordinal_position }),
19180
19181
  /* @__PURE__ */ n("td", { children: r.column_name }),
19181
- /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Mt, { value: r.column_comment }) }),
19182
+ /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: r.column_comment }) }),
19182
19183
  /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Vw, { column: r }) }),
19183
19184
  /* @__PURE__ */ n("td", { children: r.column_type }),
19184
19185
  /* @__PURE__ */ n("td", { children: r.is_nullable }),
19185
- /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Mt, { value: r.column_default }) })
19186
+ /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: r.column_default }) })
19186
19187
  ] }, r.column_name)) })
19187
19188
  ] });
19188
19189
  }), Mw = S(({
@@ -19191,7 +19192,7 @@ const Lw = S(({
19191
19192
  const {
19192
19193
  indexes: t
19193
19194
  } = e, r = t.data;
19194
- return /* @__PURE__ */ c(ht, { highlightOnHover: !0, fontSize: 14, sx: {
19195
+ return /* @__PURE__ */ c(pt, { highlightOnHover: !0, fontSize: 14, sx: {
19195
19196
  width: "auto",
19196
19197
  minWidth: "950px",
19197
19198
  alignSelf: "flex-start",
@@ -19239,7 +19240,7 @@ const Lw = S(({
19239
19240
  const {
19240
19241
  indexes: t
19241
19242
  } = e, r = t.data;
19242
- return /* @__PURE__ */ c(ht, { highlightOnHover: !0, fontSize: 14, sx: {
19243
+ return /* @__PURE__ */ c(pt, { highlightOnHover: !0, fontSize: 14, sx: {
19243
19244
  width: "auto",
19244
19245
  minWidth: "850px",
19245
19246
  alignSelf: "flex-start",
@@ -19281,9 +19282,9 @@ const Lw = S(({
19281
19282
  /* @__PURE__ */ n("td", { children: i.index_name }),
19282
19283
  /* @__PURE__ */ n("td", { children: i.index_algorithm }),
19283
19284
  /* @__PURE__ */ n("td", { children: i.is_unique ? "YES" : "NO" }),
19284
- /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Mt, { value: i.index_definition }) }),
19285
- /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Mt, { value: i.condition }) }),
19286
- /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Mt, { value: i.comment }) })
19285
+ /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: i.index_definition }) }),
19286
+ /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: i.condition }) }),
19287
+ /* @__PURE__ */ n("td", { children: /* @__PURE__ */ n(Ft, { value: i.comment }) })
19287
19288
  ] }, i.index_name)) })
19288
19289
  ] });
19289
19290
  }), Pw = S(({
@@ -19329,7 +19330,7 @@ const Ew = S(({
19329
19330
  height: "100%",
19330
19331
  overflow: "hidden",
19331
19332
  position: "relative"
19332
- }, children: /* @__PURE__ */ n(pt, { visible: e }) }), Bw = [{
19333
+ }, children: /* @__PURE__ */ n(mt, { visible: e }) }), Bw = [{
19333
19334
  label: "10",
19334
19335
  value: "10"
19335
19336
  }, {
@@ -19396,7 +19397,7 @@ const Ew = S(({
19396
19397
  overflow: "auto",
19397
19398
  position: "relative"
19398
19399
  }, children: [
19399
- /* @__PURE__ */ n(pt, { visible: t.loading, overlayBlur: 2 }),
19400
+ /* @__PURE__ */ n(mt, { visible: t.loading, overlayBlur: 2 }),
19400
19401
  /* @__PURE__ */ n(Zo, { data: t.data })
19401
19402
  ] })
19402
19403
  ] }));
@@ -19418,7 +19419,7 @@ const Ew = S(({
19418
19419
  e.loadTablesIfEmpty();
19419
19420
  }, [e]), e.tables.error ? /* @__PURE__ */ n(v, { color: "red", size: "md", align: "center", sx: {
19420
19421
  fontFamily: "monospace"
19421
- }, children: e.tables.error }) : /* @__PURE__ */ c(Bt, { sx: {
19422
+ }, children: e.tables.error }) : /* @__PURE__ */ c(qt, { sx: {
19422
19423
  height: "100%"
19423
19424
  }, children: [
19424
19425
  /* @__PURE__ */ n(V, { w: 300, sx: {
@@ -19497,7 +19498,7 @@ const Ew = S(({
19497
19498
  const r = P(), {
19498
19499
  data: i = [],
19499
19500
  loading: a
19500
- } = qt(Gr, {
19501
+ } = Wt(Gr, {
19501
19502
  refreshDeps: []
19502
19503
  }, []), o = k(() => i.map((u) => ({
19503
19504
  label: u.key,
@@ -19579,7 +19580,7 @@ const Ew = S(({
19579
19580
  e.setKey(r), e.setType(t);
19580
19581
  } }),
19581
19582
  /* @__PURE__ */ n(L, { mt: 10, mb: -10, variant: "dashed", label: "Conditions", labelPosition: "center" }),
19582
- /* @__PURE__ */ n(Et, { label: "Run query when these are truthy", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy }),
19583
+ /* @__PURE__ */ n(Nt, { label: "Run query when these are truthy", data: e.conditionOptions, value: [...e.run_by], onChange: e.setRunBy }),
19583
19584
  /* @__PURE__ */ n(L, { mt: 20, mb: 10, variant: "dashed" }),
19584
19585
  /* @__PURE__ */ n(Kw, { queryModel: e })
19585
19586
  ] }) }));
@@ -19645,7 +19646,7 @@ const e_ = ({
19645
19646
  /* @__PURE__ */ c(y, { position: "right", children: [
19646
19647
  /* @__PURE__ */ n(D, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ n(ts, { size: 16 }), children: "Reset to default" }),
19647
19648
  /* @__PURE__ */ n(D, { onClick: d, color: "red", size: "xs", disabled: !p, leftIcon: /* @__PURE__ */ n(qi, { size: 16 }), children: "Revert Changes" }),
19648
- /* @__PURE__ */ n(D, { size: "xs", onClick: s, disabled: !p, leftIcon: /* @__PURE__ */ n(Gt, { size: 16 }), children: "Confirm Changes" })
19649
+ /* @__PURE__ */ n(D, { size: "xs", onClick: s, disabled: !p, leftIcon: /* @__PURE__ */ n(jt, { size: 16 }), children: "Confirm Changes" })
19649
19650
  ] })
19650
19651
  ] }),
19651
19652
  /* @__PURE__ */ n(v, { size: 14, children: r }),
@@ -19824,7 +19825,7 @@ WHERE
19824
19825
  }, a = (o) => {
19825
19826
  r.setPath(["_VIEWS_", o]);
19826
19827
  };
19827
- return /* @__PURE__ */ n(_, { py: "sm", px: "md", children: /* @__PURE__ */ c(ht, { highlightOnHover: !0, sx: {
19828
+ return /* @__PURE__ */ n(_, { py: "sm", px: "md", children: /* @__PURE__ */ c(pt, { highlightOnHover: !0, sx: {
19828
19829
  tableLayout: "fixed"
19829
19830
  }, children: [
19830
19831
  /* @__PURE__ */ n("thead", { children: /* @__PURE__ */ c("tr", { children: [
@@ -20015,7 +20016,7 @@ WHERE
20015
20016
  }) => /* @__PURE__ */ c(V, { sx: {
20016
20017
  position: "relative"
20017
20018
  }, children: [
20018
- e && /* @__PURE__ */ n(ut, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
20019
+ e && /* @__PURE__ */ n(ht, { opacity: 0.6, color: "#fff", zIndex: 5, blur: 2 }),
20019
20020
  /* @__PURE__ */ n(Ie, { height: "500px", defaultLanguage: "javascript", value: t, onChange: (a) => {
20020
20021
  a && r(a);
20021
20022
  }, theme: "vs-dark", options: {
@@ -20080,7 +20081,7 @@ WHERE
20080
20081
  const t = e.config, r = t.custom_modal_title.value;
20081
20082
  return /* @__PURE__ */ c(_, { children: [
20082
20083
  /* @__PURE__ */ n(L, { mt: 8, label: "Modal settings", labelPosition: "center" }),
20083
- /* @__PURE__ */ c(Bt, { gap: 10, children: [
20084
+ /* @__PURE__ */ c(qt, { gap: 10, children: [
20084
20085
  /* @__PURE__ */ n(I, { label: "Modal Title", value: r, onChange: C.noop, disabled: !0, sx: {
20085
20086
  flexGrow: 1
20086
20087
  } }),
@@ -20442,7 +20443,7 @@ const H_ = {
20442
20443
  G_(o.monacoPath), To(o);
20443
20444
  const {
20444
20445
  data: u = []
20445
- } = qt(Gr), [p, m] = z.useState(!1), h = z.useMemo(() => Go(r, u, t), [r]);
20446
+ } = Wt(Gr), [p, m] = z.useState(!1), h = z.useMemo(() => Go(r, u, t), [r]);
20446
20447
  z.useImperativeHandle(d, () => h, [h]), ya(h, !0), z.useEffect(() => {
20447
20448
  h.context.replace(t);
20448
20449
  }, [t]), z.useEffect(() => {
@@ -20453,7 +20454,7 @@ const H_ = {
20453
20454
  const g = async () => {
20454
20455
  await i(h.json);
20455
20456
  }, w = Me($r, []), T = jo(w);
20456
- return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: h, children: /* @__PURE__ */ n(mt.Provider, { value: {
20457
+ return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: h, children: /* @__PURE__ */ n(gt.Provider, { value: {
20457
20458
  layoutFrozen: p,
20458
20459
  freezeLayout: m,
20459
20460
  inEditMode: !0
@@ -20476,7 +20477,7 @@ const V1 = S(({
20476
20477
  To(i);
20477
20478
  const {
20478
20479
  data: l = []
20479
- } = qt(Gr), s = z.useMemo(() => Go(t, l, e), [t]);
20480
+ } = Wt(Gr), s = z.useMemo(() => Go(t, l, e), [t]);
20480
20481
  ya(s, !1), z.useEffect(() => {
20481
20482
  s.context.replace(e);
20482
20483
  }, [e]), z.useEffect(() => {
@@ -20486,7 +20487,7 @@ const V1 = S(({
20486
20487
  return /* @__PURE__ */ n(Ai, { children: /* @__PURE__ */ n(_a, { value: s, children: /* @__PURE__ */ n(Ta.Provider, { value: {
20487
20488
  fullScreenPanelID: a,
20488
20489
  setFullScreenPanelID: o
20489
- }, children: /* @__PURE__ */ n(mt.Provider, { value: {
20490
+ }, children: /* @__PURE__ */ n(gt.Provider, { value: {
20490
20491
  layoutFrozen: !0,
20491
20492
  freezeLayout: C.noop,
20492
20493
  inEditMode: !1
@@ -20542,7 +20543,7 @@ export {
20542
20543
  wi as FilterModel,
20543
20544
  gv as FiltersModel,
20544
20545
  Ta as FullScreenPanelContext,
20545
- mt as LayoutStateContext,
20546
+ gt as LayoutStateContext,
20546
20547
  _a as ModelContextProvider,
20547
20548
  Er as Panel,
20548
20549
  ka as PanelContextProvider,