@devtable/dashboard 10.9.2 → 10.9.4

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 bu = Object.defineProperty;
2
2
  var yu = (t, e, n) => e in t ? bu(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var Y = (t, e, n) => (yu(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import z, { useEffect as W, useState as K, useCallback as ot, useMemo as M, forwardRef as Se, createElement as Xr, useContext as Ot, useRef as Js, createContext as Zs, memo as xu } from "react";
5
- import { Text as C, Select as P, Stack as S, Group as w, TextInput as A, Button as $, Box as V, Switch as Je, NumberInput as le, Divider as R, Paper as Vo, Code as rs, Modal as De, Tabs as g, ActionIcon as Q, LoadingOverlay as Cn, Alert as el, useMantineTheme as tl, ColorInput as No, ColorSwatch as ji, Slider as vu, Overlay as on, Checkbox as we, Center as Sn, CheckIcon as wu, MANTINE_SIZES as _u, SimpleGrid as tn, Tooltip as Ve, SegmentedControl as Cu, HoverCard as rt, Anchor as Gi, Textarea as Su, Collapse as Bo, Table as Ft, NativeSelect as nl, Flex as Nn, MultiSelect as sr, createStyles as Bn, Popover as Mi, Badge as lr, CloseButton as rl, Menu as He, Header as ku, ThemeIcon as $i, List as is, UnstyledButton as Tu, Navbar as Bt, JsonInput as il, Drawer as Du, Radio as os, Skeleton as as, NavLink as Yi, Pagination as Iu, AppShell as ol } from "@mantine/core";
5
+ import { Text as C, Select as P, Stack as S, Group as w, TextInput as A, Button as $, Box as V, Switch as Je, NumberInput as le, Divider as R, Paper as Vo, Code as rs, Modal as Ie, Tabs as g, ActionIcon as Q, LoadingOverlay as Cn, Alert as el, useMantineTheme as tl, ColorInput as No, ColorSwatch as ji, Slider as vu, Overlay as on, Checkbox as we, Center as Sn, CheckIcon as wu, MANTINE_SIZES as _u, SimpleGrid as tn, Tooltip as Ve, SegmentedControl as Cu, HoverCard as rt, Anchor as Gi, Textarea as Su, Collapse as Bo, Table as Ft, NativeSelect as nl, Flex as Nn, MultiSelect as sr, createStyles as Bn, Popover as Mi, Badge as lr, CloseButton as rl, Menu as He, Header as ku, ThemeIcon as $i, List as is, UnstyledButton as Tu, Navbar as Bt, JsonInput as il, Drawer as Du, Radio as os, Skeleton as as, NavLink as Yi, Pagination as Iu, AppShell as ol } from "@mantine/core";
6
6
  import { useModals as Gt, ModalsProvider as al } from "@mantine/modals";
7
7
  import { useBoolean as et, useCreation as Tt, useAsyncEffect as gr, useRequest as xn, useLatest as ss, usePrevious as Mu } from "ahooks";
8
8
  import { toJS as an, reaction as kt, makeAutoObservable as br, observable as sl, runInAction as rr } from "mobx";
9
9
  import { observer as D } from "mobx-react-lite";
10
10
  import ll from "crypto-js";
11
11
  import Z from "dayjs";
12
- import k, { template as qo, cloneDeepWith as cl, get as de, isEqual as Ce, orderBy as $u, last as dl, omit as vn, values as ul, unset as zu, isObject as hl, set as Wo, isFunction as Lu, defaults as Ne, minBy as Au, maxBy as Eu, cloneDeep as Qe, throttle as Ru, defaultsDeep as Ie, keyBy as Ou, isEmpty as pl, isNumber as Fu, findLastIndex as Pu, isString as fl, range as Vu, pick as ml } from "lodash";
12
+ import k, { template as qo, cloneDeepWith as cl, get as de, isEqual as Ce, orderBy as $u, last as dl, omit as vn, values as ul, unset as zu, isObject as hl, set as Wo, isFunction as Lu, defaults as Ne, minBy as Au, maxBy as Eu, cloneDeep as Qe, throttle as Ru, defaultsDeep as Me, keyBy as Ou, isEmpty as pl, isNumber as Fu, findLastIndex as Pu, isString as fl, range as Vu, pick as ml } from "lodash";
13
13
  import ce from "numbro";
14
14
  import * as Nu from "d3-array";
15
15
  import { quantile as zr } from "d3-array";
@@ -200,14 +200,14 @@ function mp() {
200
200
  }
201
201
  return null;
202
202
  }
203
- var Me = Object.assign, Ye = 0, ke, Fe, Le, Xe, gt, un, wr;
203
+ var $e = Object.assign, Ye = 0, ke, Fe, Te, Xe, gt, un, wr;
204
204
  function _r() {
205
205
  }
206
206
  _r.__reactDisabledLog = !0;
207
207
  function _i() {
208
208
  {
209
209
  if (Ye === 0) {
210
- ke = console.log, Fe = console.info, Le = console.warn, Xe = console.error, gt = console.group, un = console.groupCollapsed, wr = console.groupEnd;
210
+ ke = console.log, Fe = console.info, Te = console.warn, Xe = console.error, gt = console.group, un = console.groupCollapsed, wr = console.groupEnd;
211
211
  var _ = {
212
212
  configurable: !0,
213
213
  enumerable: !0,
@@ -236,25 +236,25 @@ function mp() {
236
236
  writable: !0
237
237
  };
238
238
  Object.defineProperties(console, {
239
- log: Me({}, _, {
239
+ log: $e({}, _, {
240
240
  value: ke
241
241
  }),
242
- info: Me({}, _, {
242
+ info: $e({}, _, {
243
243
  value: Fe
244
244
  }),
245
- warn: Me({}, _, {
246
- value: Le
245
+ warn: $e({}, _, {
246
+ value: Te
247
247
  }),
248
- error: Me({}, _, {
248
+ error: $e({}, _, {
249
249
  value: Xe
250
250
  }),
251
- group: Me({}, _, {
251
+ group: $e({}, _, {
252
252
  value: gt
253
253
  }),
254
- groupCollapsed: Me({}, _, {
254
+ groupCollapsed: $e({}, _, {
255
255
  value: un
256
256
  }),
257
- groupEnd: Me({}, _, {
257
+ groupEnd: $e({}, _, {
258
258
  value: wr
259
259
  })
260
260
  });
@@ -950,7 +950,7 @@ const kp = {
950
950
  freezeLayout: k.noop,
951
951
  inEditMode: !1
952
952
  }, In = z.createContext(kp), ec = z.createContext(null), tc = ec.Provider;
953
- function ze() {
953
+ function Le() {
954
954
  const t = z.useContext(ec);
955
955
  if (!t)
956
956
  throw new Error("Please use ModelContextProvider");
@@ -1073,9 +1073,9 @@ const rc = b.model("FilterConfigModel_Checkbox", {
1073
1073
  description: "",
1074
1074
  default_value: !1
1075
1075
  });
1076
- var $e = /* @__PURE__ */ ((t) => (t.Postgresql = "postgresql", t.MySQL = "mysql", t.HTTP = "http", t))($e || {}), Ue = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Ue || {});
1076
+ var ze = /* @__PURE__ */ ((t) => (t.Postgresql = "postgresql", t.MySQL = "mysql", t.HTTP = "http", t))(ze || {}), Ue = /* @__PURE__ */ ((t) => (t.Select = "select", t.MultiSelect = "multi-select", t.TreeSelect = "tree-select", t.TextInput = "text-input", t.Checkbox = "checkbox", t.DateRange = "date-range", t))(Ue || {});
1077
1077
  b.model({
1078
- type: b.enumeration("DataSourceType", [$e.Postgresql, $e.MySQL, $e.HTTP]),
1078
+ type: b.enumeration("DataSourceType", [ze.Postgresql, ze.MySQL, ze.HTTP]),
1079
1079
  key: b.string,
1080
1080
  sql: b.string
1081
1081
  });
@@ -1716,7 +1716,7 @@ function pc(t) {
1716
1716
  const Bp = b.model("QueryModel", {
1717
1717
  id: b.string,
1718
1718
  name: b.string,
1719
- type: b.enumeration("DataSourceType", [$e.Postgresql, $e.MySQL, $e.HTTP]),
1719
+ type: b.enumeration("DataSourceType", [ze.Postgresql, ze.MySQL, ze.HTTP]),
1720
1720
  key: b.string,
1721
1721
  sql: b.string,
1722
1722
  pre_process: b.optional(b.string, ""),
@@ -1725,7 +1725,7 @@ const Bp = b.model("QueryModel", {
1725
1725
  react_to: b.optional(b.array(b.string), [])
1726
1726
  }).views((t) => ({
1727
1727
  get valid() {
1728
- return t.id && t.type && t.key && t.name ? t.type === $e.HTTP ? !!t.pre_process : !!t.sql : !1;
1728
+ return t.id && t.type && t.key && t.name ? t.type === ze.HTTP ? !!t.pre_process : !!t.sql : !1;
1729
1729
  },
1730
1730
  get json() {
1731
1731
  const {
@@ -1867,10 +1867,10 @@ const Hp = b.compose("QueryModel", Bp, b.model({
1867
1867
  return Qo(t.sql, e);
1868
1868
  },
1869
1869
  get typedAsSQL() {
1870
- return [$e.Postgresql, $e.MySQL].includes(t.type);
1870
+ return [ze.Postgresql, ze.MySQL].includes(t.type);
1871
1871
  },
1872
1872
  get typedAsHTTP() {
1873
- return [$e.HTTP].includes(t.type);
1873
+ return [ze.HTTP].includes(t.type);
1874
1874
  },
1875
1875
  get datasource() {
1876
1876
  const {
@@ -2158,13 +2158,13 @@ const Hp = b.compose("QueryModel", Bp, b.model({
2158
2158
  table_name: r,
2159
2159
  table_schema: o
2160
2160
  } = e;
2161
- if (n === $e.MySQL)
2161
+ if (n === ze.MySQL)
2162
2162
  return `
2163
2163
  SELECT ordinal_position, column_key, column_name, column_type, is_nullable, column_default, column_comment
2164
2164
  FROM information_schema.columns
2165
2165
  WHERE table_name = '${r}' AND table_schema = '${o}'
2166
2166
  `;
2167
- if (n === $e.Postgresql) {
2167
+ if (n === ze.Postgresql) {
2168
2168
  const a = `'${o}.${r}'::regclass`;
2169
2169
  return `
2170
2170
  SELECT
@@ -2204,7 +2204,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
2204
2204
  table_name: r,
2205
2205
  table_schema: o
2206
2206
  } = e;
2207
- return n === $e.MySQL ? `
2207
+ return n === ze.MySQL ? `
2208
2208
  SELECT
2209
2209
  sub_part AS index_length,
2210
2210
  index_name AS index_name,
@@ -2217,7 +2217,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
2217
2217
  table_name = '${r}' AND table_schema = '${o}'
2218
2218
  ORDER BY
2219
2219
  seq_in_index ASC;
2220
- ` : n === $e.Postgresql ? `
2220
+ ` : n === ze.Postgresql ? `
2221
2221
  SELECT
2222
2222
  ix.relname AS index_name,
2223
2223
  upper(am.amname) AS index_algorithm,
@@ -2254,7 +2254,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
2254
2254
  },
2255
2255
  get sql() {
2256
2256
  const e = it(t, 1).type;
2257
- return e === $e.MySQL || e === $e.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
2257
+ return e === ze.MySQL || e === ze.Postgresql ? "SELECT table_schema, table_name, table_type FROM information_schema.tables ORDER BY table_schema, table_name" : "";
2258
2258
  }
2259
2259
  })), tf = b.model({
2260
2260
  page: b.optional(b.number, 1),
@@ -2327,7 +2327,7 @@ const Hp = b.compose("QueryModel", Bp, b.model({
2327
2327
  }
2328
2328
  })), nf = b.model("DataSourceModel", {
2329
2329
  id: b.string,
2330
- type: b.enumeration("DataSourceType", [$e.HTTP, $e.MySQL, $e.Postgresql]),
2330
+ type: b.enumeration("DataSourceType", [ze.HTTP, ze.MySQL, ze.Postgresql]),
2331
2331
  key: b.string,
2332
2332
  config: b.frozen(),
2333
2333
  tables: b.optional(ef, {}),
@@ -3024,7 +3024,7 @@ class Zo {
3024
3024
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
3025
3025
  }
3026
3026
  }
3027
- const yc = "10.9.2", Cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3027
+ const yc = "10.9.4", Cf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3028
3028
  __proto__: null,
3029
3029
  version: yc
3030
3030
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3782,7 +3782,7 @@ const Wf = D((t) => {
3782
3782
  await c.configOperation(a, l);
3783
3783
  }, [a, c]), Vf(c) ? /* @__PURE__ */ u(G, { children: [
3784
3784
  /* @__PURE__ */ i(Nf, { model: c, onClick: n }),
3785
- /* @__PURE__ */ i(De, { size: 600, opened: e, onClose: r, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3785
+ /* @__PURE__ */ i(Ie, { size: 600, opened: e, onClose: r, title: "Operation Settings", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3786
3786
  /* @__PURE__ */ i(qf, { model: c }),
3787
3787
  /* @__PURE__ */ u(g, { defaultValue: "settings", children: [
3788
3788
  /* @__PURE__ */ u(g.List, { children: [
@@ -3861,7 +3861,7 @@ const Hf = D(({
3861
3861
  setFalse: r
3862
3862
  }] = et(!1), o = t.model;
3863
3863
  return /* @__PURE__ */ u(G, { children: [
3864
- /* @__PURE__ */ i(De, { opened: e, onClose: r, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3864
+ /* @__PURE__ */ i(Ie, { opened: e, onClose: r, title: "Setup Trigger", zIndex: 320, children: /* @__PURE__ */ u(S, { children: [
3865
3865
  /* @__PURE__ */ i(Qf, { model: o }),
3866
3866
  /* @__PURE__ */ i(Uf, { model: o }),
3867
3867
  /* @__PURE__ */ i(Cc, { title: "Payload", variables: o.triggerSchema.payload })
@@ -4911,7 +4911,7 @@ const Om = ({
4911
4911
  /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
4912
4912
  flexGrow: 0
4913
4913
  }, children: "Customize Label" }),
4914
- /* @__PURE__ */ i(De, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
4914
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
4915
4915
  /* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
4916
4916
  /* @__PURE__ */ i(Om, { value: s.func_content, onChange: h, disabled: !s.enabled }),
4917
4917
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -5364,7 +5364,7 @@ const ra = {
5364
5364
  instance: e
5365
5365
  }), r = Mt(n.triggerManager, Dc.id), o = re(), {
5366
5366
  value: a
5367
- } = X(t.instanceData, "config"), s = M(() => Ie({}, a, ra), [a]), {
5367
+ } = X(t.instanceData, "config"), s = M(() => Me({}, a, ra), [a]), {
5368
5368
  content: l,
5369
5369
  horizontal_align: c,
5370
5370
  vertical_align: d,
@@ -5454,7 +5454,7 @@ function cg({
5454
5454
  const {
5455
5455
  value: e,
5456
5456
  set: n
5457
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, ra), [e]), o = r;
5457
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, ra), [e]), o = r;
5458
5458
  W(() => {
5459
5459
  !Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
5460
5460
  }, [r, o]);
@@ -6144,7 +6144,7 @@ function Rg(t, e, n) {
6144
6144
  legend: bg(s),
6145
6145
  dataZoom: aa(t.dataZoom)
6146
6146
  };
6147
- return Ie({}, c, Eg);
6147
+ return Me({}, c, Eg);
6148
6148
  }
6149
6149
  function vs(t) {
6150
6150
  const e = t.getModel(), n = e.getSeries().map((r) => {
@@ -6849,7 +6849,7 @@ const Jg = ({
6849
6849
  }, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
6850
6850
  flexGrow: 0
6851
6851
  }, children: "Setup" }) }),
6852
- /* @__PURE__ */ i(De, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
6852
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
6853
6853
  /* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
6854
6854
  /* @__PURE__ */ i(Jg, { value: a.func_content, onChange: d }),
6855
6855
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -7413,7 +7413,7 @@ function yb({
7413
7413
  set: n
7414
7414
  } = X(t.instanceData, "config"), {
7415
7415
  variables: r
7416
- } = t, o = M(() => Ie({}, e, oa), [e]), {
7416
+ } = t, o = M(() => Me({}, e, oa), [e]), {
7417
7417
  control: a,
7418
7418
  handleSubmit: s,
7419
7419
  watch: l,
@@ -8641,7 +8641,7 @@ const fy = ({
8641
8641
  }, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
8642
8642
  flexGrow: 0
8643
8643
  }, children: "Setup" }) }),
8644
- /* @__PURE__ */ i(De, { size: 800, title: "Setup dynamic value", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
8644
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic value", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
8645
8645
  /* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
8646
8646
  /* @__PURE__ */ i(fy, { value: a.value, onChange: d }),
8647
8647
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -8817,7 +8817,7 @@ function Cy(t, e, n) {
8817
8817
  grid: cy(t),
8818
8818
  visualMap: xy(t, r)
8819
8819
  };
8820
- return Ie({}, s, _y);
8820
+ return Me({}, s, _y);
8821
8821
  }
8822
8822
  function Sy(t) {
8823
8823
  return /* @__PURE__ */ i(G, {});
@@ -9130,7 +9130,7 @@ const Ly = ({
9130
9130
  /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
9131
9131
  flexGrow: 0
9132
9132
  }, children: "Customize Label" }),
9133
- /* @__PURE__ */ i(De, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
9133
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
9134
9134
  /* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
9135
9135
  /* @__PURE__ */ i(Ly, { value: s.func_content, onChange: h, disabled: !s.enabled }),
9136
9136
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -9253,7 +9253,7 @@ function Fy({
9253
9253
  const {
9254
9254
  value: e,
9255
9255
  set: n
9256
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, ha), [e]), o = M(() => k.cloneDeep(r), [r]);
9256
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, ha), [e]), o = M(() => k.cloneDeep(r), [r]);
9257
9257
  W(() => {
9258
9258
  !Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
9259
9259
  }, [r, o]);
@@ -10410,7 +10410,7 @@ function $x({
10410
10410
  const {
10411
10411
  value: e,
10412
10412
  set: n
10413
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, fa), [e]), o = M(() => k.clone(r), [r]), {
10413
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, fa), [e]), o = M(() => k.clone(r), [r]), {
10414
10414
  control: a,
10415
10415
  handleSubmit: s,
10416
10416
  watch: l,
@@ -10711,7 +10711,7 @@ function qx({
10711
10711
  });
10712
10712
  }, [s, l, o]), d = M(() => ({
10713
10713
  click: c
10714
- }), [c]), p = M(() => Bx(Ie({}, t, pi), e), [t, e]);
10714
+ }), [c]), p = M(() => Bx(Me({}, t, pi), e), [t, e]);
10715
10715
  return !n || !r ? null : /* @__PURE__ */ i(ut, { echarts: ye, option: p, style: {
10716
10716
  width: n,
10717
10717
  height: r
@@ -10837,7 +10837,7 @@ function Yx({
10837
10837
  const {
10838
10838
  value: e,
10839
10839
  set: n
10840
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, pi), [e]), {
10840
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, pi), [e]), {
10841
10841
  control: o,
10842
10842
  handleSubmit: a,
10843
10843
  watch: s,
@@ -11221,7 +11221,7 @@ function sv(t, e) {
11221
11221
  data: n.map((a) => a.name)
11222
11222
  }
11223
11223
  };
11224
- return Ie({}, o, av);
11224
+ return Me({}, o, av);
11225
11225
  }
11226
11226
  function fi(t, e, n) {
11227
11227
  return 1 - (1 - t) * (e - 1) / (e - n - 1);
@@ -11482,7 +11482,7 @@ function bv({
11482
11482
  ...x,
11483
11483
  [f.columnKey]: Number(x[f.columnKey])
11484
11484
  });
11485
- }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = M(() => sv(Ie({}, e, ma), o), [e, o]), s = Js(null), l = (c) => {
11485
+ }, [t.data, e == null ? void 0 : e.regression.y_axis_data_key]), a = M(() => sv(Me({}, e, ma), o), [e, o]), s = Js(null), l = (c) => {
11486
11486
  s.current = c;
11487
11487
  };
11488
11488
  return !n || !r || !e ? null : /* @__PURE__ */ u(V, { sx: {
@@ -11616,7 +11616,7 @@ const vv = ({
11616
11616
  /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: a, sx: {
11617
11617
  flexGrow: 0
11618
11618
  }, children: n }),
11619
- /* @__PURE__ */ i(De, { size: 800, title: "Customize label content", opened: o, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: o && /* @__PURE__ */ u(S, { children: [
11619
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: o, onClose: s, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: o && /* @__PURE__ */ u(S, { children: [
11620
11620
  /* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: l.enabled, onChange: (x) => d(x.currentTarget.checked) }),
11621
11621
  /* @__PURE__ */ i(vv, { value: l.func_content, onChange: f, disabled: !l.enabled }),
11622
11622
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -13553,7 +13553,7 @@ mr.prototype = Object.create(Error.prototype);
13553
13553
  mr.prototype.constructor = mr;
13554
13554
  mr.prototype.name = "TransformError";
13555
13555
  const Oi = /* @__PURE__ */ Object.create(null);
13556
- class Te {
13556
+ class De {
13557
13557
  /**
13558
13558
  Initialize a selection with the head and anchor and ranges. If no
13559
13559
  ranges are given, constructs a single range across `$anchor` and
@@ -13717,7 +13717,7 @@ class Te {
13717
13717
  return je.between(this.$anchor, this.$head).getBookmark();
13718
13718
  }
13719
13719
  }
13720
- Te.prototype.visible = !0;
13720
+ De.prototype.visible = !0;
13721
13721
  class Nv {
13722
13722
  /**
13723
13723
  Create a range.
@@ -13730,7 +13730,7 @@ let $s = !1;
13730
13730
  function zs(t) {
13731
13731
  !$s && !t.parent.inlineContent && ($s = !0, console.warn("TextSelection endpoint not pointing into a node with inline content (" + t.parent.type.name + ")"));
13732
13732
  }
13733
- class je extends Te {
13733
+ class je extends De {
13734
13734
  /**
13735
13735
  Construct a text selection between the given points.
13736
13736
  */
@@ -13747,7 +13747,7 @@ class je extends Te {
13747
13747
  map(e, n) {
13748
13748
  let r = e.resolve(n.map(this.head));
13749
13749
  if (!r.parent.inlineContent)
13750
- return Te.near(r);
13750
+ return De.near(r);
13751
13751
  let o = e.resolve(n.map(this.anchor));
13752
13752
  return new je(o.parent.inlineContent ? o : r, r);
13753
13753
  }
@@ -13792,16 +13792,16 @@ class je extends Te {
13792
13792
  static between(e, n, r) {
13793
13793
  let o = e.pos - n.pos;
13794
13794
  if ((!r || o) && (r = o >= 0 ? 1 : -1), !n.parent.inlineContent) {
13795
- let a = Te.findFrom(n, r, !0) || Te.findFrom(n, -r, !0);
13795
+ let a = De.findFrom(n, r, !0) || De.findFrom(n, -r, !0);
13796
13796
  if (a)
13797
13797
  n = a.$head;
13798
13798
  else
13799
- return Te.near(n, r);
13799
+ return De.near(n, r);
13800
13800
  }
13801
- return e.parent.inlineContent || (o == 0 ? e = n : (e = (Te.findFrom(e, -r, !0) || Te.findFrom(e, r, !0)).$anchor, e.pos < n.pos != o < 0 && (e = n))), new je(e, n);
13801
+ return e.parent.inlineContent || (o == 0 ? e = n : (e = (De.findFrom(e, -r, !0) || De.findFrom(e, r, !0)).$anchor, e.pos < n.pos != o < 0 && (e = n))), new je(e, n);
13802
13802
  }
13803
13803
  }
13804
- Te.jsonID("text", je);
13804
+ De.jsonID("text", je);
13805
13805
  class bi {
13806
13806
  constructor(e, n) {
13807
13807
  this.anchor = e, this.head = n;
@@ -13813,7 +13813,7 @@ class bi {
13813
13813
  return je.between(e.resolve(this.anchor), e.resolve(this.head));
13814
13814
  }
13815
13815
  }
13816
- class mt extends Te {
13816
+ class mt extends De {
13817
13817
  /**
13818
13818
  Create a node selection. Does not verify the validity of its
13819
13819
  argument.
@@ -13824,7 +13824,7 @@ class mt extends Te {
13824
13824
  }
13825
13825
  map(e, n) {
13826
13826
  let { deleted: r, pos: o } = n.mapResult(this.anchor), a = e.resolve(o);
13827
- return r ? Te.near(a) : new mt(a);
13827
+ return r ? De.near(a) : new mt(a);
13828
13828
  }
13829
13829
  content() {
13830
13830
  return new ve(fe.from(this.node), 0, 0);
@@ -13861,7 +13861,7 @@ class mt extends Te {
13861
13861
  }
13862
13862
  }
13863
13863
  mt.prototype.visible = !1;
13864
- Te.jsonID("node", mt);
13864
+ De.jsonID("node", mt);
13865
13865
  class ya {
13866
13866
  constructor(e) {
13867
13867
  this.anchor = e;
@@ -13872,10 +13872,10 @@ class ya {
13872
13872
  }
13873
13873
  resolve(e) {
13874
13874
  let n = e.resolve(this.anchor), r = n.nodeAfter;
13875
- return r && mt.isSelectable(r) ? new mt(n) : Te.near(n);
13875
+ return r && mt.isSelectable(r) ? new mt(n) : De.near(n);
13876
13876
  }
13877
13877
  }
13878
- class Wt extends Te {
13878
+ class Wt extends De {
13879
13879
  /**
13880
13880
  Create an all-selection over the given document.
13881
13881
  */
@@ -13885,7 +13885,7 @@ class Wt extends Te {
13885
13885
  replace(e, n = ve.empty) {
13886
13886
  if (n == ve.empty) {
13887
13887
  e.delete(0, e.doc.content.size);
13888
- let r = Te.atStart(e.doc);
13888
+ let r = De.atStart(e.doc);
13889
13889
  r.eq(e.selection) || e.setSelection(r);
13890
13890
  } else
13891
13891
  super.replace(e, n);
@@ -13909,7 +13909,7 @@ class Wt extends Te {
13909
13909
  return Bv;
13910
13910
  }
13911
13911
  }
13912
- Te.jsonID("all", Wt);
13912
+ De.jsonID("all", Wt);
13913
13913
  const Bv = {
13914
13914
  map() {
13915
13915
  return this;
@@ -13945,7 +13945,7 @@ function Ls(t, e, n) {
13945
13945
  let a = t.mapping.maps[r], s;
13946
13946
  a.forEach((l, c, d, p) => {
13947
13947
  s == null && (s = p);
13948
- }), t.setSelection(Te.near(t.doc.resolve(s), n));
13948
+ }), t.setSelection(De.near(t.doc.resolve(s), n));
13949
13949
  }
13950
13950
  function As(t, e) {
13951
13951
  return !e || !t ? t : t.bind(e);
@@ -13964,7 +13964,7 @@ new Ir("doc", {
13964
13964
  }
13965
13965
  }), new Ir("selection", {
13966
13966
  init(t, e) {
13967
- return t.selection || Te.atStart(e.doc);
13967
+ return t.selection || De.atStart(e.doc);
13968
13968
  },
13969
13969
  apply(t) {
13970
13970
  return t.selection;
@@ -14346,7 +14346,7 @@ function bn(t = 0, e = 0, n = 0) {
14346
14346
  function c0(t, e = null) {
14347
14347
  if (!e)
14348
14348
  return null;
14349
- const n = Te.atStart(t), r = Te.atEnd(t);
14349
+ const n = De.atStart(t), r = De.atEnd(t);
14350
14350
  if (e === "start" || e === !0)
14351
14351
  return n;
14352
14352
  if (e === "end")
@@ -14413,7 +14413,7 @@ function p0(t, e, n) {
14413
14413
  let s = 0;
14414
14414
  a.forEach((l, c, d, p) => {
14415
14415
  s === 0 && (s = p);
14416
- }), t.setSelection(Te.near(t.doc.resolve(s), n));
14416
+ }), t.setSelection(De.near(t.doc.resolve(s), n));
14417
14417
  }
14418
14418
  const f0 = (t) => t.toString().startsWith("<"), m0 = (t, e, n) => ({ tr: r, dispatch: o, editor: a }) => {
14419
14419
  if (o) {
@@ -14966,7 +14966,7 @@ Rt.create({
14966
14966
  () => s.undoInputRule(),
14967
14967
  // maybe convert first text block node to default node
14968
14968
  () => s.command(({ tr: l }) => {
14969
- const { selection: c, doc: d } = l, { empty: p, $anchor: h } = c, { pos: f, parent: m } = h, x = Te.atStart(d).from === f;
14969
+ const { selection: c, doc: d } = l, { empty: p, $anchor: h } = c, { pos: f, parent: m } = h, x = De.atStart(d).from === f;
14970
14970
  return !p || !x || !m.type.isTextblock || m.textContent.length ? !1 : s.clearNodes();
14971
14971
  }),
14972
14972
  () => s.deleteSelection(),
@@ -15018,7 +15018,7 @@ Rt.create({
15018
15018
  appendTransaction: (t, e, n) => {
15019
15019
  if (!(t.some((x) => x.docChanged) && !e.doc.eq(n.doc)))
15020
15020
  return;
15021
- const { empty: o, from: a, to: s } = e.selection, l = Te.atStart(e.doc).from, c = Te.atEnd(e.doc).to;
15021
+ const { empty: o, from: a, to: s } = e.selection, l = De.atStart(e.doc).from, c = De.atEnd(e.doc).to;
15022
15022
  if (o || !(a === l && s === c) || !(n.doc.textBetween(0, n.doc.content.size, " ", " ").length === 0))
15023
15023
  return;
15024
15024
  const h = n.tr, f = nd({
@@ -15615,15 +15615,15 @@ function Iw({
15615
15615
  x_axis: t,
15616
15616
  scatter: e
15617
15617
  }, n) {
15618
- const r = H(t.data_key), o = H(e.y_data_key);
15618
+ const r = H(t.data_key), o = H(e.y_data_key), a = H(e.name_data_key);
15619
15619
  return {
15620
15620
  label: {
15621
15621
  show: !!e.label_position,
15622
15622
  position: e.label_position,
15623
15623
  ...Qt(e.label_overflow.label),
15624
15624
  formatter: ({
15625
- value: a
15626
- }) => a[e.name_data_key]
15625
+ value: s
15626
+ }) => s[a.columnKey]
15627
15627
  },
15628
15628
  type: "scatter",
15629
15629
  name: "",
@@ -15847,7 +15847,7 @@ function Ow(t, e, n) {
15847
15847
  legend: Cw(),
15848
15848
  dataZoom: aa(t.dataZoom)
15849
15849
  };
15850
- return Ie({}, l, Rw);
15850
+ return Me({}, l, Rw);
15851
15851
  }
15852
15852
  ye.use([Ht, Wn, jn, ri, xt, vt, wt, dt, ti, Go]);
15853
15853
  function Vs(t) {
@@ -16256,7 +16256,7 @@ const Yw = ({
16256
16256
  }, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
16257
16257
  flexGrow: 0
16258
16258
  }, children: "Setup" }) }),
16259
- /* @__PURE__ */ i(De, { size: 800, title: "Setup dynamic color", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
16259
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic color", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
16260
16260
  /* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
16261
16261
  /* @__PURE__ */ i(Yw, { value: a.func_content, onChange: d }),
16262
16262
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -16378,7 +16378,7 @@ const Yw = ({
16378
16378
  }, children: /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: r, sx: {
16379
16379
  flexGrow: 0
16380
16380
  }, children: "Setup" }) }),
16381
- /* @__PURE__ */ i(De, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
16381
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Setup dynamic size", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
16382
16382
  /* @__PURE__ */ i(R, { mt: 10, mb: -10, label: "Dynamic by a custom function", labelPosition: "center", variant: "dashed" }),
16383
16383
  /* @__PURE__ */ i(Zw, { value: a.func_content, onChange: d }),
16384
16384
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -16681,7 +16681,7 @@ const h_ = ({
16681
16681
  /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
16682
16682
  flexGrow: 0
16683
16683
  }, children: "Customize Label" }),
16684
- /* @__PURE__ */ i(De, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
16684
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Customize label content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
16685
16685
  /* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: s.enabled, onChange: (m) => c(m.currentTarget.checked) }),
16686
16686
  /* @__PURE__ */ i(h_, { value: s.func_content, onChange: h, disabled: !s.enabled }),
16687
16687
  /* @__PURE__ */ u(w, { position: "apart", children: [
@@ -16868,7 +16868,7 @@ function w_({
16868
16868
  set: n
16869
16869
  } = X(t.instanceData, "config"), {
16870
16870
  variables: r
16871
- } = t, o = M(() => Ie({}, e, Ca), [e]), a = M(() => v_(o), [o]);
16871
+ } = t, o = M(() => Me({}, e, Ca), [e]), a = M(() => v_(o), [o]);
16872
16872
  W(() => {
16873
16873
  !Ce(o, a) && (console.log("config malformed, resetting to defaults", o, a), n(a));
16874
16874
  }, [o, a]);
@@ -17268,7 +17268,7 @@ function N_({
17268
17268
  const {
17269
17269
  value: e,
17270
17270
  set: n
17271
- } = X(t.instanceData, "config"), r = z.useMemo(() => Ie({}, e, Sa), [e]), {
17271
+ } = X(t.instanceData, "config"), r = z.useMemo(() => Me({}, e, Sa), [e]), {
17272
17272
  control: o,
17273
17273
  handleSubmit: a,
17274
17274
  watch: s,
@@ -17482,7 +17482,7 @@ function K_(t, e, n) {
17482
17482
  },
17483
17483
  tooltip: Q_()
17484
17484
  };
17485
- return Ie({}, o, U_);
17485
+ return Me({}, o, U_);
17486
17486
  }
17487
17487
  ye.use([Oh, dt]);
17488
17488
  function X_({
@@ -17658,7 +17658,7 @@ function rC({
17658
17658
  const {
17659
17659
  value: e,
17660
17660
  set: n
17661
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, ka), [e]), o = M(() => k.clone(r), [r]), {
17661
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, ka), [e]), o = M(() => k.clone(r), [r]), {
17662
17662
  control: a,
17663
17663
  handleSubmit: s,
17664
17664
  watch: l,
@@ -17857,7 +17857,7 @@ const cC = {
17857
17857
  /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
17858
17858
  flexGrow: 0
17859
17859
  }, children: "Edit Content" }),
17860
- /* @__PURE__ */ i(De, { size: 800, title: "Text content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
17860
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Text content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
17861
17861
  /* @__PURE__ */ i(uC, { value: s, onChange: l }),
17862
17862
  /* @__PURE__ */ u(w, { position: "apart", children: [
17863
17863
  /* @__PURE__ */ i($, { onClick: p, color: "red", leftIcon: /* @__PURE__ */ i(It, { size: 20 }), children: "Rest" }),
@@ -17884,7 +17884,7 @@ function fC({
17884
17884
  const {
17885
17885
  value: e,
17886
17886
  set: n
17887
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, Ta), [e]), o = M(() => {
17887
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, Ta), [e]), o = M(() => {
17888
17888
  const {
17889
17889
  func_content: f,
17890
17890
  horizontal_align: m,
@@ -18067,7 +18067,7 @@ function wC({
18067
18067
  }) {
18068
18068
  const {
18069
18069
  value: e
18070
- } = X(t.instanceData, "config"), n = M(() => Ie({}, e, Da), [e]), {
18070
+ } = X(t.instanceData, "config"), n = M(() => Me({}, e, Da), [e]), {
18071
18071
  width: r,
18072
18072
  height: o
18073
18073
  } = t.viewport, a = t.data, {
@@ -18093,7 +18093,7 @@ function _C({
18093
18093
  const {
18094
18094
  value: e,
18095
18095
  set: n
18096
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, Da), [e]), {
18096
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, Da), [e]), {
18097
18097
  control: o,
18098
18098
  handleSubmit: a,
18099
18099
  watch: s,
@@ -18358,7 +18358,7 @@ function FC(t, e, n) {
18358
18358
  visualMap: AC(t, d, r),
18359
18359
  legend: IC(d, c)
18360
18360
  };
18361
- return Ie({}, p, EC);
18361
+ return Me({}, p, EC);
18362
18362
  }
18363
18363
  function PC(t) {
18364
18364
  return /* @__PURE__ */ i(G, {});
@@ -18617,7 +18617,7 @@ function UC({
18617
18617
  const {
18618
18618
  value: e,
18619
18619
  set: n
18620
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, Ia), [e]), o = M(() => k.cloneDeep(r), [r]);
18620
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, Ia), [e]), o = M(() => k.cloneDeep(r), [r]);
18621
18621
  W(() => {
18622
18622
  !Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
18623
18623
  }, [r, o]);
@@ -20412,7 +20412,7 @@ function nS(t, e, n) {
20412
20412
  }],
20413
20413
  legend: Z1(c)
20414
20414
  };
20415
- return Ie({}, d, eS);
20415
+ return Me({}, d, eS);
20416
20416
  }
20417
20417
  const rS = {
20418
20418
  input: {
@@ -20989,7 +20989,7 @@ function kS({
20989
20989
  set: n
20990
20990
  } = X(t.instanceData, "config"), {
20991
20991
  variables: r
20992
- } = t, o = M(() => Ie({}, e, za), [e]), {
20992
+ } = t, o = M(() => Me({}, e, za), [e]), {
20993
20993
  control: a,
20994
20994
  handleSubmit: s,
20995
20995
  watch: l,
@@ -21808,7 +21808,7 @@ function xk({
21808
21808
  context: t,
21809
21809
  instance: e
21810
21810
  }) {
21811
- var Me, Ye;
21811
+ var $e, Ye;
21812
21812
  const n = t.data, {
21813
21813
  height: r,
21814
21814
  width: o
@@ -21832,22 +21832,24 @@ function xk({
21832
21832
  label: ke,
21833
21833
  value_field: ke,
21834
21834
  value_type: Ct.string,
21835
- align: "left"
21835
+ align: "left",
21836
+ width: "",
21837
+ cellBackgroundColor: ""
21836
21838
  })) : c, [l, c, f]), x = yk({
21837
21839
  getColIndex: ot((ke) => m.indexOf(ke.column.columnDef.meta), [m]),
21838
21840
  vizManager: t.vizManager,
21839
21841
  instance: e
21840
21842
  }), v = M(() => {
21841
21843
  const ke = Dl();
21842
- return m.map((Le) => {
21843
- const Xe = H(Le.value_field);
21844
+ return m.map((Te) => {
21845
+ const Xe = H(Te.value_field);
21844
21846
  return ke.accessor(Xe.columnKey, {
21845
- cell: (gt) => /* @__PURE__ */ i(bk, { tableCellContext: x(gt.cell), value: gt.getValue(), type: Le.value_type, ...Le }),
21846
- header: Le.label,
21847
+ cell: (gt) => /* @__PURE__ */ i(bk, { tableCellContext: x(gt.cell), value: gt.getValue(), type: Te.value_type, ...Te }),
21848
+ header: Te.label,
21847
21849
  enableSorting: !0,
21848
- meta: Le,
21849
- size: Le.width,
21850
- minSize: Le.width
21850
+ meta: Te,
21851
+ size: typeof Te.width == "number" ? Te.width : void 0,
21852
+ minSize: typeof Te.width == "number" ? Te.width : void 0
21851
21853
  });
21852
21854
  });
21853
21855
  }, [m, x]), [T, I] = K([]), L = Il({
@@ -21869,8 +21871,8 @@ function xk({
21869
21871
  }), {
21870
21872
  virtualItems: O,
21871
21873
  totalSize: E
21872
- } = N, U = O.length > 0 && ((Me = O == null ? void 0 : O[0]) == null ? void 0 : Me.start) || 0, ne = O.length > 0 ? E - (((Ye = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ye.end) || 0) : 0, ee = B.length, ie = ee > 0, me = ie ? r - 22 : r, ge = ie ? 22 : 0;
21873
- return !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: j, style: {
21874
+ } = N, U = O.length > 0 && (($e = O == null ? void 0 : O[0]) == null ? void 0 : $e.start) || 0, ne = O.length > 0 ? E - (((Ye = O == null ? void 0 : O[O.length - 1]) == null ? void 0 : Ye.end) || 0) : 0, ee = B.length, ie = ee > 0, me = ie ? r - 22 : r, ge = ie ? 22 : 0;
21875
+ return s ? !Array.isArray(f) || f.length === 0 ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: "Empty Data" }) : /* @__PURE__ */ u("div", { ref: j, style: {
21874
21876
  height: r,
21875
21877
  width: o
21876
21878
  }, "data-enable-scrollbar": !0, className: h(p.root, {
@@ -21897,14 +21899,14 @@ function xk({
21897
21899
  } }) }),
21898
21900
  O.map((ke) => {
21899
21901
  const Fe = B[ke.index];
21900
- return /* @__PURE__ */ i("tr", { children: Fe.getVisibleCells().map((Le) => /* @__PURE__ */ i("td", { children: Vr(Le.column.columnDef.cell, Le.getContext()) }, Le.id)) }, Fe.id);
21902
+ return /* @__PURE__ */ i("tr", { children: Fe.getVisibleCells().map((Te) => /* @__PURE__ */ i("td", { children: Vr(Te.column.columnDef.cell, Te.getContext()) }, Te.id)) }, Fe.id);
21901
21903
  }),
21902
21904
  ne > 0 && /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { style: {
21903
21905
  height: `${ne}px`
21904
21906
  } }) })
21905
21907
  ] })
21906
21908
  ] })
21907
- ] });
21909
+ ] }) : /* @__PURE__ */ i(C, { color: "red", align: "center", children: "ID Field is not set, can't render a table without it" });
21908
21910
  }
21909
21911
  const vd = Bn(() => ({
21910
21912
  palette: {
@@ -22058,7 +22060,7 @@ const Ck = D(({
22058
22060
  };
22059
22061
  return /* @__PURE__ */ u(G, { children: [
22060
22062
  /* @__PURE__ */ i($, { variant: "outline", onClick: d, children: l == null ? void 0 : l.displayName }),
22061
- /* @__PURE__ */ i(De, { size: 508, title: "Setup color interpolation", opened: c, onClose: p, zIndex: 320, children: c && /* @__PURE__ */ u(S, { "data-testid": "color-interpolation-modal", children: [
22063
+ /* @__PURE__ */ i(Ie, { size: 508, title: "Setup color interpolation", opened: c, onClose: p, zIndex: 320, children: c && /* @__PURE__ */ u(S, { "data-testid": "color-interpolation-modal", children: [
22062
22064
  /* @__PURE__ */ i(P, { label: "Color style", value: a.interpolation, data: h, onChange: f }),
22063
22065
  /* @__PURE__ */ i(Sk, { steps: a.steps, interpolation: l, onChange: x }),
22064
22066
  /* @__PURE__ */ u(w, { position: "right", children: [
@@ -22138,7 +22140,7 @@ const $k = Se((t, e) => {
22138
22140
  /* @__PURE__ */ i($, { variant: "filled", mt: 24, onClick: o, sx: {
22139
22141
  flexGrow: 0
22140
22142
  }, children: "Custom Cell Content" }),
22141
- /* @__PURE__ */ i(De, { size: 800, title: "Custom cell content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
22143
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Custom cell content", opened: r, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: r && /* @__PURE__ */ u(S, { children: [
22142
22144
  /* @__PURE__ */ i(V, { sx: {
22143
22145
  position: "relative"
22144
22146
  }, children: /* @__PURE__ */ i(ht, { height: "500px", defaultLanguage: "javascript", value: s, onChange: (h) => l(h ?? ""), theme: "vs-dark", options: {
@@ -22245,7 +22247,8 @@ const $k = Se((t, e) => {
22245
22247
  label: c,
22246
22248
  align: "center",
22247
22249
  value_field: "",
22248
- value_type: Ct.string
22250
+ value_type: Ct.string,
22251
+ width: ""
22249
22252
  });
22250
22253
  };
22251
22254
  e("columns");
@@ -22253,27 +22256,23 @@ const $k = Se((t, e) => {
22253
22256
  return /* @__PURE__ */ u(G, { children: [
22254
22257
  /* @__PURE__ */ i(y, { name: "use_raw_columns", control: t, render: ({
22255
22258
  field: c
22256
- }) => /* @__PURE__ */ i(Je, { mt: 20, label: "Use Original Data Columns", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }),
22257
- /* @__PURE__ */ i(R, { mt: 20, mb: 10, variant: "dashed" }),
22258
- !l && /* @__PURE__ */ u(S, { children: [
22259
- /* @__PURE__ */ i(C, { my: 0, children: "Custom Columns" }),
22260
- /* @__PURE__ */ u(g, { defaultValue: "0", styles: {
22261
- tab: {
22262
- paddingTop: "0px",
22263
- paddingBottom: "0px"
22264
- },
22265
- panel: {
22266
- padding: "0px",
22267
- paddingTop: "6px"
22268
- }
22269
- }, children: [
22270
- /* @__PURE__ */ u(g.List, { children: [
22271
- n.map((c, d) => /* @__PURE__ */ i(g.Tab, { value: d.toString(), children: d + 1 }, c.id)),
22272
- /* @__PURE__ */ i(g.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ i(Ge, { size: 18, color: "#228be6" }) })
22273
- ] }),
22274
- n.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(Ok, { control: t, watch: e, index: d, column: c, remove: o }, d) }, c.id))
22275
- ] })
22276
- ] })
22259
+ }) => /* @__PURE__ */ i(Je, { mt: 20, mb: 20, label: "Use Original Data Columns", checked: c.value, onChange: (d) => c.onChange(d.currentTarget.checked) }) }),
22260
+ !l && /* @__PURE__ */ i(S, { children: /* @__PURE__ */ u(g, { defaultValue: "0", styles: {
22261
+ tab: {
22262
+ paddingTop: "0px",
22263
+ paddingBottom: "0px"
22264
+ },
22265
+ panel: {
22266
+ padding: "0px",
22267
+ paddingTop: "6px"
22268
+ }
22269
+ }, children: [
22270
+ /* @__PURE__ */ u(g.List, { children: [
22271
+ n.map((c, d) => /* @__PURE__ */ i(g.Tab, { value: d.toString(), children: d + 1 }, c.id)),
22272
+ /* @__PURE__ */ i(g.Tab, { onClick: s, value: "add", children: /* @__PURE__ */ i(Ge, { size: 18, color: "#228be6" }) })
22273
+ ] }),
22274
+ n.map((c, d) => /* @__PURE__ */ i(g.Panel, { value: d.toString(), children: /* @__PURE__ */ i(Ok, { control: t, watch: e, index: d, column: c, remove: o }, d) }, c.id))
22275
+ ] }) })
22277
22276
  ] });
22278
22277
  };
22279
22278
  function Pk({
@@ -22337,7 +22336,7 @@ function Nk({
22337
22336
  const {
22338
22337
  value: e,
22339
22338
  set: n
22340
- } = X(t.instanceData, "config"), r = M(() => Ie({}, e, Xo), [e]), o = M(() => Vk(r), [r]);
22339
+ } = X(t.instanceData, "config"), r = M(() => Me({}, e, Xo), [e]), o = M(() => Vk(r), [r]);
22341
22340
  W(() => {
22342
22341
  !Ce(r, o) && (console.log("config malformed, resetting to defaults", r, o), n(o));
22343
22342
  }, [r, o]);
@@ -22373,15 +22372,17 @@ function Nk({
22373
22372
  }
22374
22373
  }, children: [
22375
22374
  /* @__PURE__ */ u(g.List, { children: [
22376
- /* @__PURE__ */ i(g.Tab, { value: "Data", children: "Data" }),
22377
- /* @__PURE__ */ i(g.Tab, { value: "Style", children: "Style" }),
22378
- /* @__PURE__ */ i(g.Tab, { value: "Columns", children: "Columns" })
22375
+ /* @__PURE__ */ i(g.Tab, { value: "Columns", children: "Columns" }),
22376
+ /* @__PURE__ */ i(g.Tab, { value: "Style", children: "Style" })
22379
22377
  ] }),
22380
- /* @__PURE__ */ i(g.Panel, { value: "Data", children: /* @__PURE__ */ i(y, { name: "id_field", control: a, render: ({
22381
- field: f
22382
- }) => /* @__PURE__ */ i(J, { label: "ID Field", required: !0, ...f }) }) }),
22383
- /* @__PURE__ */ i(g.Panel, { value: "Style", children: /* @__PURE__ */ i(Pk, { control: a, watch: l }) }),
22384
- /* @__PURE__ */ i(g.Panel, { value: "Columns", children: /* @__PURE__ */ i(Fk, { control: a, watch: l }) })
22378
+ /* @__PURE__ */ u(g.Panel, { value: "Columns", children: [
22379
+ /* @__PURE__ */ i(y, { name: "id_field", control: a, render: ({
22380
+ field: f
22381
+ }) => /* @__PURE__ */ i(J, { label: "ID Field", required: !0, ...f }) }),
22382
+ /* @__PURE__ */ i(R, { mt: 20, mb: 10, variant: "dashed" }),
22383
+ /* @__PURE__ */ i(Fk, { control: a, watch: l })
22384
+ ] }),
22385
+ /* @__PURE__ */ i(g.Panel, { value: "Style", children: /* @__PURE__ */ i(Pk, { control: a, watch: l }) })
22385
22386
  ] })
22386
22387
  ] });
22387
22388
  }
@@ -22422,10 +22423,25 @@ function qk(t, {
22422
22423
  throw console.error("[Migration failed]", n), n;
22423
22424
  }
22424
22425
  }
22425
- class Wk extends Oe {
22426
+ function Wk(t) {
22427
+ const {
22428
+ columns: e,
22429
+ ...n
22430
+ } = t;
22431
+ return {
22432
+ ...n,
22433
+ columns: e.map((r) => ({
22434
+ ...r,
22435
+ align: r.align ?? "left",
22436
+ cellBackgroundColor: r.cellBackgroundColor ?? "",
22437
+ width: r.width ?? ""
22438
+ }))
22439
+ };
22440
+ }
22441
+ class jk extends Oe {
22426
22442
  constructor() {
22427
22443
  super(...arguments);
22428
- Y(this, "VERSION", 4);
22444
+ Y(this, "VERSION", 5);
22429
22445
  }
22430
22446
  configVersions() {
22431
22447
  this.version(1, (n) => ({
@@ -22458,24 +22474,28 @@ class Wk extends Oe {
22458
22474
  ...n,
22459
22475
  version: 4,
22460
22476
  config: qk(n.config, r)
22477
+ })), this.version(5, (n) => ({
22478
+ ...n,
22479
+ version: 5,
22480
+ config: Wk(n.config)
22461
22481
  }));
22462
22482
  }
22463
22483
  }
22464
22484
  const eo = {
22465
22485
  createConfig() {
22466
22486
  return {
22467
- version: 4,
22487
+ version: 5,
22468
22488
  config: Qe(Xo)
22469
22489
  };
22470
22490
  },
22471
22491
  displayName: "Table",
22472
22492
  displayGroup: "Others",
22473
- migrator: new Wk(),
22493
+ migrator: new jk(),
22474
22494
  name: "table",
22475
22495
  viewRender: xk,
22476
22496
  configRender: Nk,
22477
22497
  triggers: [Ea]
22478
- }, jk = b.model("PanelLayoutModel", {
22498
+ }, Gk = b.model("PanelLayoutModel", {
22479
22499
  x: b.number,
22480
22500
  y: b.maybeNull(b.number),
22481
22501
  // https://github.com/merico-dev/table/issues/814
@@ -22512,7 +22532,7 @@ const eo = {
22512
22532
  } = e;
22513
22533
  t.x = n, t.y = r, t.w = o, t.h = a, t.moved = !!s, t.static = !!e.static;
22514
22534
  }
22515
- })), Gk = b.model("PanelStyleBorderModel", {
22535
+ })), Yk = b.model("PanelStyleBorderModel", {
22516
22536
  enabled: b.boolean
22517
22537
  }).views((t) => ({
22518
22538
  get json() {
@@ -22527,8 +22547,8 @@ const eo = {
22527
22547
  setEnabled(e) {
22528
22548
  t.enabled = e;
22529
22549
  }
22530
- })), Yk = b.model("PanelStyleModel", {
22531
- border: Gk
22550
+ })), Hk = b.model("PanelStyleModel", {
22551
+ border: Yk
22532
22552
  }).views((t) => ({
22533
22553
  get json() {
22534
22554
  const {
@@ -22538,7 +22558,7 @@ const eo = {
22538
22558
  border: e.json
22539
22559
  };
22540
22560
  }
22541
- })).actions((t) => ({})), Hk = b.model("PanelVizModel", {
22561
+ })).actions((t) => ({})), Qk = b.model("PanelVizModel", {
22542
22562
  type: b.string,
22543
22563
  conf: b.frozen()
22544
22564
  }).views((t) => ({
@@ -22555,14 +22575,14 @@ const eo = {
22555
22575
  setConf(e) {
22556
22576
  t.conf = e;
22557
22577
  }
22558
- })), Qk = b.model({
22578
+ })), Uk = b.model({
22559
22579
  id: b.string,
22560
22580
  title: b.string,
22561
22581
  description: b.string,
22562
- layout: jk,
22582
+ layout: Gk,
22563
22583
  queryIDs: b.array(b.string),
22564
- viz: Hk,
22565
- style: Yk,
22584
+ viz: Qk,
22585
+ style: Hk,
22566
22586
  variables: b.optional(b.array(lf), [])
22567
22587
  }).views((t) => ({
22568
22588
  // FIXME: 'contentModel' implicitly has return type 'any' because it does not have a return type annotation and is referenced directly or indirectly in one of its return expressions.ts(7023)
@@ -22661,7 +22681,7 @@ const eo = {
22661
22681
  Ae(t).content.queries.downloadDataByQueryIDs(t.queryIDs);
22662
22682
  }
22663
22683
  }));
22664
- function Uk(t) {
22684
+ function Kk(t) {
22665
22685
  return {
22666
22686
  id: t,
22667
22687
  layout: {
@@ -22685,8 +22705,8 @@ function Uk(t) {
22685
22705
  }
22686
22706
  };
22687
22707
  }
22688
- const Kk = b.model("PanelsModel", {
22689
- list: b.optional(b.array(Qk), [])
22708
+ const Xk = b.model("PanelsModel", {
22709
+ list: b.optional(b.array(Uk), [])
22690
22710
  }).views((t) => ({
22691
22711
  get json() {
22692
22712
  return t.list.map((e) => e.json);
@@ -22773,20 +22793,20 @@ const Kk = b.model("PanelsModel", {
22773
22793
  t.list.splice(e, 1, n);
22774
22794
  }
22775
22795
  }));
22776
- var Xk = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(Xk || {}), se = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(se || {});
22777
- const fL = {
22796
+ var Jk = /* @__PURE__ */ ((t) => (t.Use = "use", t.Edit = "edit", t))(Jk || {}), se = /* @__PURE__ */ ((t) => (t.Division = "div", t.Modal = "modal", t.Tabs = "tabs", t))(se || {});
22797
+ const mL = {
22778
22798
  div: "Division",
22779
22799
  tabs: "Tabs",
22780
22800
  modal: "Modal"
22781
- }, Jk = {
22801
+ }, Zk = {
22782
22802
  div: "rgba(255, 0, 0, 0.2)",
22783
22803
  modal: "rgba(0, 0, 0, 0.2)",
22784
22804
  tabs: "rgba(255, 200, 100, 0.4)"
22785
- }, mL = {
22805
+ }, gL = {
22786
22806
  div: "#ff4000",
22787
22807
  modal: "#000",
22788
22808
  tabs: "#ffad18"
22789
- }, gL = {
22809
+ }, bL = {
22790
22810
  definition: {
22791
22811
  sqlSnippets: [],
22792
22812
  queries: [],
@@ -22815,13 +22835,13 @@ const Cd = b.model("ViewModel_Division", {
22815
22835
  _name: e
22816
22836
  };
22817
22837
  }
22818
- })).actions((t) => ({})), Zk = () => Cd.create({
22838
+ })).actions((t) => ({})), eT = () => Cd.create({
22819
22839
  _name: se.Division
22820
22840
  }), to = {
22821
22841
  enabled: !1,
22822
22842
  func_content: ["function text({ filters, context}) {", " // your code goes here", ' return "text"', "}"].join(`
22823
22843
  `)
22824
- }, eT = b.model("CustomModalTitleModel", {
22844
+ }, tT = b.model("CustomModalTitleModel", {
22825
22845
  enabled: b.optional(b.boolean, !1),
22826
22846
  func_content: b.optional(b.string, "")
22827
22847
  }).views((t) => ({
@@ -22869,7 +22889,7 @@ const Cd = b.model("ViewModel_Division", {
22869
22889
  _name: b.literal(se.Modal),
22870
22890
  width: b.string,
22871
22891
  height: b.string,
22872
- custom_modal_title: b.optional(eT, to)
22892
+ custom_modal_title: b.optional(tT, to)
22873
22893
  }).views((t) => ({
22874
22894
  get json() {
22875
22895
  const {
@@ -22892,11 +22912,11 @@ const Cd = b.model("ViewModel_Division", {
22892
22912
  setHeight(e) {
22893
22913
  t.height = e;
22894
22914
  }
22895
- })), tT = () => Sd.create({
22915
+ })), nT = () => Sd.create({
22896
22916
  _name: se.Modal,
22897
22917
  width: "90vw",
22898
22918
  height: "90vh"
22899
- }), nT = b.model("ViewModel_Tabs_Tab", {
22919
+ }), rT = b.model("ViewModel_Tabs_Tab", {
22900
22920
  id: b.identifier,
22901
22921
  name: b.string,
22902
22922
  view_id: b.string,
@@ -22928,7 +22948,7 @@ const Cd = b.model("ViewModel_Division", {
22928
22948
  }
22929
22949
  })), kd = b.model("ViewModel_Tabs", {
22930
22950
  _name: b.literal(se.Modal),
22931
- tabs: b.optional(b.array(nT), []),
22951
+ tabs: b.optional(b.array(rT), []),
22932
22952
  variant: b.optional(b.enumeration("variant", ["default", "outline", "pills"]), "default"),
22933
22953
  orientation: b.optional(b.enumeration("orientation", ["horizontal", "vertical"]), "horizontal"),
22934
22954
  grow: b.optional(b.boolean, !1)
@@ -22973,10 +22993,10 @@ const Cd = b.model("ViewModel_Division", {
22973
22993
  removeTab(e) {
22974
22994
  t.tabs.splice(e, 1);
22975
22995
  }
22976
- })), rT = () => kd.create({
22996
+ })), iT = () => kd.create({
22977
22997
  _name: se.Modal,
22978
22998
  tabs: []
22979
- }), iT = b.model({
22999
+ }), oT = b.model({
22980
23000
  id: b.identifier,
22981
23001
  name: b.string,
22982
23002
  type: b.enumeration("EViewComponentType", [se.Division, se.Modal, se.Tabs]),
@@ -23006,13 +23026,13 @@ const Cd = b.model("ViewModel_Division", {
23006
23026
  if (t.type !== e) {
23007
23027
  switch (e) {
23008
23028
  case se.Division:
23009
- t.config = Zk();
23029
+ t.config = eT();
23010
23030
  break;
23011
23031
  case se.Modal:
23012
- t.config = tT();
23032
+ t.config = nT();
23013
23033
  break;
23014
23034
  case se.Tabs:
23015
- t.config = rT();
23035
+ t.config = iT();
23016
23036
  break;
23017
23037
  }
23018
23038
  t.type = e;
@@ -23025,8 +23045,8 @@ const Cd = b.model("ViewModel_Division", {
23025
23045
  const n = t.panelIDs.filter((r) => r !== e);
23026
23046
  t.panelIDs.length = 0, t.panelIDs.push(...n);
23027
23047
  }
23028
- })).actions((t) => ({})), oT = b.model("ViewsModel", {
23029
- current: b.optional(b.array(iT), []),
23048
+ })).actions((t) => ({})), aT = b.model("ViewsModel", {
23049
+ current: b.optional(b.array(oT), []),
23030
23050
  visibleViewIDs: b.array(b.string),
23031
23051
  idOfVIE: b.string
23032
23052
  // VIE: view in edit
@@ -23149,7 +23169,7 @@ function Td(t) {
23149
23169
  function Gs(t, e, n, r) {
23150
23170
  return t.reduce((o, a) => (o[a[e]] = Ho(a[n], r), o), {});
23151
23171
  }
23152
- const aT = b.model({
23172
+ const sT = b.model({
23153
23173
  id: b.string,
23154
23174
  name: b.string,
23155
23175
  dashboard_id: b.string,
@@ -23160,8 +23180,8 @@ const aT = b.model({
23160
23180
  filters: Fp,
23161
23181
  queries: Qp,
23162
23182
  sqlSnippets: Kp,
23163
- views: oT,
23164
- panels: Kk,
23183
+ views: aT,
23184
+ panels: Xk,
23165
23185
  mock_context: sf,
23166
23186
  /**
23167
23187
  * this field should be excluded from snapshot
@@ -23299,7 +23319,7 @@ const aT = b.model({
23299
23319
  addANewPanel(e) {
23300
23320
  var r;
23301
23321
  const n = (/* @__PURE__ */ new Date()).getTime().toString();
23302
- t.panels.append(Uk(n)), (r = t.views.findByID(e)) == null || r.appendPanelID(n);
23322
+ t.panels.append(Kk(n)), (r = t.views.findByID(e)) == null || r.appendPanelID(n);
23303
23323
  }
23304
23324
  })).actions((t) => ({
23305
23325
  // FIXME: https://github.com/merico-dev/table/issues/440
@@ -23333,7 +23353,7 @@ const aT = b.model({
23333
23353
  } = o;
23334
23354
  t.id = n, t.name = r, t.version = a, st(t.filters.current, s), st(t.views.current, Td(l).current), st(t.panels.list, c), st(t.queries.current, d), st(t.sqlSnippets.current, p), t.mock_context.current = h;
23335
23355
  }
23336
- })), Ra = b.snapshotProcessor(aT, {
23356
+ })), Ra = b.snapshotProcessor(sT, {
23337
23357
  preProcessor(t) {
23338
23358
  return {
23339
23359
  ...t,
@@ -23350,10 +23370,10 @@ const aT = b.model({
23350
23370
  }, t);
23351
23371
  }
23352
23372
  });
23353
- function bL(t, e) {
23373
+ function yL(t, e) {
23354
23374
  e.filters && st(t.filters.current, e.filters);
23355
23375
  }
23356
- function sT({
23376
+ function lT({
23357
23377
  id: t,
23358
23378
  name: e,
23359
23379
  dashboard_id: n,
@@ -23397,14 +23417,14 @@ function sT({
23397
23417
  }
23398
23418
  });
23399
23419
  }
23400
- const lT = b.model({
23420
+ const cT = b.model({
23401
23421
  id: b.string,
23402
23422
  content: b.string,
23403
23423
  create_time: b.string,
23404
23424
  update_time: b.string,
23405
23425
  is_preset: b.boolean
23406
- }), cT = b.model("GlobalSQLSnippetsModel", {
23407
- list: b.optional(b.array(lT), [])
23426
+ }), dT = b.model("GlobalSQLSnippetsModel", {
23427
+ list: b.optional(b.array(cT), [])
23408
23428
  }).views((t) => ({
23409
23429
  find(e) {
23410
23430
  return t.list.find((n) => n.id === e);
@@ -23419,14 +23439,14 @@ const lT = b.model({
23419
23439
  replace(e) {
23420
23440
  t.list.length = 0, t.list.push(...e);
23421
23441
  }
23422
- })), dT = b.model({
23442
+ })), uT = b.model({
23423
23443
  id: b.identifier,
23424
23444
  name: b.string,
23425
23445
  group: b.string,
23426
23446
  content: Ra,
23427
23447
  content_id: b.string,
23428
23448
  datasources: rf,
23429
- globalSQLSnippets: cT,
23449
+ globalSQLSnippets: dT,
23430
23450
  context: Xp,
23431
23451
  editor: af
23432
23452
  }).views((t) => ({
@@ -23458,12 +23478,12 @@ function Dd({
23458
23478
  group: n,
23459
23479
  content_id: r
23460
23480
  }, o, a, s, l) {
23461
- return dT.create({
23481
+ return uT.create({
23462
23482
  id: t,
23463
23483
  name: e,
23464
23484
  group: n,
23465
23485
  content_id: r,
23466
- content: sT(o),
23486
+ content: lT(o),
23467
23487
  datasources: {
23468
23488
  list: a
23469
23489
  },
@@ -23484,10 +23504,10 @@ function wi(t) {
23484
23504
  function Id() {
23485
23505
  return z.useContext(no);
23486
23506
  }
23487
- const uT = {
23507
+ const hT = {
23488
23508
  viewPanelInFullScreen: k.noop,
23489
23509
  inFullScreen: !1
23490
- }, Oa = z.createContext(uT), hT = ({
23510
+ }, Oa = z.createContext(hT), pT = ({
23491
23511
  description: t,
23492
23512
  isDescriptionEmpty: e
23493
23513
  }) => e ? null : /* @__PURE__ */ i(Ve, { color: "white", label: /* @__PURE__ */ i(yi, { value: t, styles: {
@@ -23505,7 +23525,7 @@ const uT = {
23505
23525
  }, withArrow: !0, children: /* @__PURE__ */ i(V, { sx: {
23506
23526
  height: "16px",
23507
23527
  alignSelf: "center"
23508
- }, children: /* @__PURE__ */ i(qn, { size: 16, color: "gray" }) }) }), pT = D(({
23528
+ }, children: /* @__PURE__ */ i(qn, { size: 16, color: "gray" }) }) }), fT = D(({
23509
23529
  label: t,
23510
23530
  config: {
23511
23531
  default_value: e,
@@ -23521,7 +23541,7 @@ const uT = {
23521
23541
  /* @__PURE__ */ i(V, { sx: {
23522
23542
  flexGrow: 1
23523
23543
  }, children: t }),
23524
- /* @__PURE__ */ i(hT, { description: n, isDescriptionEmpty: r })
23544
+ /* @__PURE__ */ i(pT, { description: n, isDescriptionEmpty: r })
23525
23545
  ] }), checked: a || !1, onChange: (l) => s(l.currentTarget.checked), ...o, pt: ".4em", styles: {
23526
23546
  input: {
23527
23547
  borderColor: "#e9ecef"
@@ -23561,7 +23581,7 @@ const uT = {
23561
23581
  ...a
23562
23582
  }
23563
23583
  );
23564
- }), fT = Bn((t, {
23584
+ }), mT = Bn((t, {
23565
23585
  radius: e = 4
23566
23586
  }) => ({
23567
23587
  root: {
@@ -23728,7 +23748,7 @@ const uT = {
23728
23748
  }
23729
23749
  })), $d = ({
23730
23750
  errorMessage: t
23731
- }) => t ? /* @__PURE__ */ i(C, { color: "red", size: 12, children: t }) : /* @__PURE__ */ i(C, { color: "dimmed", size: 12, children: "Not found" }), mT = ({
23751
+ }) => t ? /* @__PURE__ */ i(C, { color: "red", size: 12, children: t }) : /* @__PURE__ */ i(C, { color: "dimmed", size: 12, children: "Not found" }), gT = ({
23732
23752
  disabled: t,
23733
23753
  // styling props
23734
23754
  classNames: e,
@@ -23746,7 +23766,7 @@ const uT = {
23746
23766
  const {
23747
23767
  classes: h,
23748
23768
  cx: f
23749
- } = fT({
23769
+ } = mT({
23750
23770
  radius: o
23751
23771
  }, {
23752
23772
  name: "MultiSelectWidget",
@@ -23774,7 +23794,7 @@ const uT = {
23774
23794
  j.description && /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: j.description })
23775
23795
  ] }) }) }, j.value)) })
23776
23796
  ] });
23777
- }, gT = D(({
23797
+ }, bT = D(({
23778
23798
  label: t,
23779
23799
  config: e,
23780
23800
  value: n,
@@ -23784,20 +23804,20 @@ const uT = {
23784
23804
  state: s,
23785
23805
  error: l
23786
23806
  } = o.getDataStuffByID(e.options_query_id), c = s === "loading", d = e.min_width ? e.min_width : "200px", p = a ? c : !1, h = (f) => r(f, !1);
23787
- return /* @__PURE__ */ i(mT, { label: t, options: e.options, style: {
23807
+ return /* @__PURE__ */ i(gT, { label: t, options: e.options, style: {
23788
23808
  minWidth: "160px",
23789
23809
  width: d,
23790
23810
  maxWidth: p ? d : "unset",
23791
23811
  borderColor: "#e9ecef"
23792
23812
  }, disabled: p, value: n, onChange: h, errorMessage: l });
23793
- }), bT = Se(({
23813
+ }), yT = Se(({
23794
23814
  label: t,
23795
23815
  description: e,
23796
23816
  ...n
23797
23817
  }, r) => /* @__PURE__ */ i("div", { ref: r, ...n, children: /* @__PURE__ */ i(w, { noWrap: !0, children: /* @__PURE__ */ u("div", { children: [
23798
23818
  /* @__PURE__ */ i(C, { size: "sm", "data-role": "label", children: t }),
23799
23819
  /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", "data-role": "description", children: e })
23800
- ] }) }) })), yT = D(({
23820
+ ] }) }) })), xT = D(({
23801
23821
  label: t,
23802
23822
  config: e,
23803
23823
  value: n,
@@ -23827,9 +23847,9 @@ const uT = {
23827
23847
  ".mantine-Select-item[data-selected] .mantine-Text-root[data-role=description]": {
23828
23848
  color: "rgba(255,255,255,.7)"
23829
23849
  }
23830
- }, itemComponent: bT });
23850
+ }, itemComponent: yT });
23831
23851
  });
23832
- function xT({
23852
+ function vT({
23833
23853
  label: t,
23834
23854
  config: e,
23835
23855
  value: n,
@@ -23841,10 +23861,10 @@ function xT({
23841
23861
  }
23842
23862
  } });
23843
23863
  }
23844
- const vT = ({
23864
+ const wT = ({
23845
23865
  rotate: t,
23846
23866
  onClick: e
23847
- }) => /* @__PURE__ */ i("svg", { onClick: e, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${t})`, children: /* @__PURE__ */ i("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), wT = ({
23867
+ }) => /* @__PURE__ */ i("svg", { onClick: e, className: "caret-icon", viewBox: "0 0 1024 1024", focusable: "false", "data-icon": "caret-down", width: "14px", height: "14px", fill: "currentColor", "aria-hidden": "true", transform: `rotate(${t})`, children: /* @__PURE__ */ i("path", { d: "M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z" }) }), _T = ({
23848
23868
  expanded: t,
23849
23869
  isLeaf: e,
23850
23870
  value: n,
@@ -23853,17 +23873,17 @@ const vT = ({
23853
23873
  }) => (n === "0-0-value" && console.log(o), e ? /* @__PURE__ */ i("span", { style: {
23854
23874
  width: "14px",
23855
23875
  display: "inline-block"
23856
- } }) : /* @__PURE__ */ i(vT, { rotate: t ? "0" : "-90", onClick: r, ...o })), _T = ({
23876
+ } }) : /* @__PURE__ */ i(wT, { rotate: t ? "0" : "-90", onClick: r, ...o })), CT = ({
23857
23877
  onClick: t
23858
23878
  }) => /* @__PURE__ */ u("svg", { onClick: t, className: "checkbox-icon", width: "16", height: "16", viewBox: "0 0 24 24", stroke: "currentColor", strokeWidth: "2", fill: "none", strokeLinecap: "round", strokeLinejoin: "round", children: [
23859
23879
  /* @__PURE__ */ i("path", { stroke: "none", d: "M0 0h24v24H0z", fill: "none" }),
23860
23880
  /* @__PURE__ */ i("rect", { className: "border", x: "4", y: "4", width: "16", height: "16", rx: "2" }),
23861
23881
  /* @__PURE__ */ i("rect", { className: "checkmark-indeterminate", x: "8", y: "8", width: "8", height: "8", rx: "2", stroke: "none" }),
23862
23882
  /* @__PURE__ */ i("path", { className: "checkmark-checked", d: "M9 12l2 2l4 -4" })
23863
- ] }), CT = ({
23883
+ ] }), ST = ({
23864
23884
  onClick: t,
23865
23885
  ...e
23866
- }) => /* @__PURE__ */ i(_T, { onClick: t, ...e }), ST = Bn((t, {
23886
+ }) => /* @__PURE__ */ i(CT, { onClick: t, ...e }), kT = Bn((t, {
23867
23887
  radius: e = 4
23868
23888
  }) => ({
23869
23889
  root: {
@@ -24103,7 +24123,7 @@ const vT = ({
24103
24123
  }
24104
24124
  }
24105
24125
  }
24106
- })), kT = ({
24126
+ })), TT = ({
24107
24127
  disabled: t,
24108
24128
  // styling props
24109
24129
  classNames: e,
@@ -24121,7 +24141,7 @@ const vT = ({
24121
24141
  const {
24122
24142
  classes: h,
24123
24143
  cx: f
24124
- } = ST({
24144
+ } = kT({
24125
24145
  radius: o
24126
24146
  }, {
24127
24147
  name: "FilterTreeSelectWidget",
@@ -24149,8 +24169,8 @@ const vT = ({
24149
24169
  style: a,
24150
24170
  treeLine: !0,
24151
24171
  clearIcon: () => /* @__PURE__ */ i(rl, {}),
24152
- switcherIcon: wT,
24153
- treeIcon: CT,
24172
+ switcherIcon: _T,
24173
+ treeIcon: ST,
24154
24174
  maxTagTextLength: 10,
24155
24175
  value: l,
24156
24176
  treeData: d,
@@ -24165,7 +24185,7 @@ const vT = ({
24165
24185
  }
24166
24186
  )
24167
24187
  ] });
24168
- }, TT = D(({
24188
+ }, DT = D(({
24169
24189
  label: t,
24170
24190
  config: e,
24171
24191
  value: n,
@@ -24177,7 +24197,7 @@ const vT = ({
24177
24197
  errorMessage: s
24178
24198
  } = e, l = e.min_width ? e.min_width : "200px", d = !!e.options_query_id ? a : !1;
24179
24199
  return /* @__PURE__ */ i(
24180
- kT,
24200
+ TT,
24181
24201
  {
24182
24202
  disabled: d,
24183
24203
  style: {
@@ -24193,7 +24213,7 @@ const vT = ({
24193
24213
  label: t
24194
24214
  }
24195
24215
  );
24196
- }), DT = D(({
24216
+ }), IT = D(({
24197
24217
  filter: {
24198
24218
  type: t,
24199
24219
  config: e,
@@ -24204,24 +24224,24 @@ const vT = ({
24204
24224
  }) => {
24205
24225
  switch (t) {
24206
24226
  case "select":
24207
- return /* @__PURE__ */ i(yT, { ...r, ...o, config: e });
24227
+ return /* @__PURE__ */ i(xT, { ...r, ...o, config: e });
24208
24228
  case "multi-select":
24209
- return /* @__PURE__ */ i(gT, { ...r, ...o, config: e });
24229
+ return /* @__PURE__ */ i(bT, { ...r, ...o, config: e });
24210
24230
  case "tree-select":
24211
- return /* @__PURE__ */ i(TT, { ...r, ...o, config: e });
24231
+ return /* @__PURE__ */ i(DT, { ...r, ...o, config: e });
24212
24232
  case "text-input":
24213
- return /* @__PURE__ */ i(xT, { ...r, ...o, config: e });
24233
+ return /* @__PURE__ */ i(vT, { ...r, ...o, config: e });
24214
24234
  case "date-range":
24215
24235
  return /* @__PURE__ */ i(Md, { ...r, ...o, config: e });
24216
24236
  case "checkbox":
24217
- return /* @__PURE__ */ i(pT, { ...r, ...o, config: e });
24237
+ return /* @__PURE__ */ i(fT, { ...r, ...o, config: e });
24218
24238
  default:
24219
24239
  return null;
24220
24240
  }
24221
24241
  }), zd = D(z.forwardRef(({
24222
24242
  filter: t,
24223
24243
  ...e
24224
- }, n) => /* @__PURE__ */ i("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(DT, { filter: t, formFieldProps: e }) }) }))), Ld = D(function({
24244
+ }, n) => /* @__PURE__ */ i("div", { className: "filter-root", ref: n, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(IT, { filter: t, formFieldProps: e }) }) }))), Ld = D(function({
24225
24245
  view: e
24226
24246
  }) {
24227
24247
  const n = re(), {
@@ -24259,7 +24279,7 @@ const vT = ({
24259
24279
  }, children: /* @__PURE__ */ i($, { color: "blue", size: "sm", type: "submit", disabled: p, children: "Search" }) })
24260
24280
  ] }) });
24261
24281
  });
24262
- function IT(t) {
24282
+ function MT(t) {
24263
24283
  return t ? ["<p><br></p>", "<p></p>"].includes(t) : !0;
24264
24284
  }
24265
24285
  const Ad = D(() => {
@@ -24270,8 +24290,8 @@ const Ad = D(() => {
24270
24290
  } = tt();
24271
24291
  return z.useEffect(() => {
24272
24292
  t(e);
24273
- }, [e]), IT(r.description) ? null : /* @__PURE__ */ u(G, { children: [
24274
- /* @__PURE__ */ i(De, { opened: e, onClose: () => n(!1), title: r.title, withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ i(yi, { value: r.description, styles: {
24293
+ }, [e]), MT(r.description) ? null : /* @__PURE__ */ u(G, { children: [
24294
+ /* @__PURE__ */ i(Ie, { opened: e, onClose: () => n(!1), title: r.title, withCloseButton: !1, withinPortal: !0, zIndex: 310, children: /* @__PURE__ */ i(yi, { value: r.description, styles: {
24275
24295
  root: {
24276
24296
  border: "none"
24277
24297
  },
@@ -24284,10 +24304,10 @@ const Ad = D(() => {
24284
24304
  cursor: "pointer"
24285
24305
  }, children: /* @__PURE__ */ i(Tn, { size: 20 }) }) })
24286
24306
  ] });
24287
- }), MT = D(({
24307
+ }), $T = D(({
24288
24308
  view: t
24289
24309
  }) => {
24290
- const e = ze(), n = re(), r = Gt(), {
24310
+ const e = Le(), n = re(), r = Gt(), {
24291
24311
  panel: o
24292
24312
  } = tt(), {
24293
24313
  id: a
@@ -24338,7 +24358,7 @@ const Ad = D(() => {
24338
24358
  ] })
24339
24359
  ] })
24340
24360
  ] }) }) });
24341
- }), $T = D(({
24361
+ }), zT = D(({
24342
24362
  panel: t
24343
24363
  }) => /* @__PURE__ */ u(S, { children: [
24344
24364
  t.queryErrors.map((e, n) => /* @__PURE__ */ i(C, { color: "red", size: "md", align: "center", sx: {
@@ -24347,7 +24367,7 @@ const Ad = D(() => {
24347
24367
  t.queryStateMessages.map((e, n) => /* @__PURE__ */ i(C, { color: "gray", align: "center", children: e }, `${n}-${e}`))
24348
24368
  ] }));
24349
24369
  var Ed = /* @__PURE__ */ ((t) => (t.migrated = "migrated", t.nothingToMigrate = "nothingToMigrate", t.checkFailed = "checkFailed", t.migrationFailed = "migrationFailed", t))(Ed || {}), Fr = /* @__PURE__ */ ((t) => (t.notStarted = "notStarted", t.inProgress = "inProgress", t.done = "done", t))(Fr || {});
24350
- class zT {
24370
+ class LT {
24351
24371
  constructor(e) {
24352
24372
  Y(this, "vizInstance");
24353
24373
  Y(this, "operationManager");
@@ -24405,7 +24425,7 @@ function Rd(t) {
24405
24425
  return n.createScoped().provideFactory(qe.instanceScope.vizInstance, () => r.getOrCreateInstance(t)).provideFactory(qe.instanceScope.interactionManager, (a) => {
24406
24426
  const s = a.getRequired(qe.instanceScope.vizInstance);
24407
24427
  return new Aa(s, o, vi);
24408
- }).provideFactory(qe.instanceScope.operationManager, (a) => a.getRequired(qe.instanceScope.interactionManager).operationManager).provideFactory(qe.instanceScope.triggerManager, (a) => a.getRequired(qe.instanceScope.interactionManager).triggerManager).provideValue(qe.instanceScope.panelModel, e).provideFactory(qe.instanceScope.migrator, (a) => new zT(a));
24428
+ }).provideFactory(qe.instanceScope.operationManager, (a) => a.getRequired(qe.instanceScope.interactionManager).operationManager).provideFactory(qe.instanceScope.triggerManager, (a) => a.getRequired(qe.instanceScope.interactionManager).triggerManager).provideValue(qe.instanceScope.panelModel, e).provideFactory(qe.instanceScope.migrator, (a) => new LT(a));
24409
24429
  }, [t.viz.type, t.viz.conf]);
24410
24430
  }
24411
24431
  function Od(t) {
@@ -24425,7 +24445,7 @@ function Fd(t, e) {
24425
24445
  t(r);
24426
24446
  })), [t, e.viz.type]), n;
24427
24447
  }
24428
- function LT({
24448
+ function AT({
24429
24449
  setVizConf: t,
24430
24450
  ...e
24431
24451
  }) {
@@ -24441,7 +24461,7 @@ function LT({
24441
24461
  await r.instanceData.setItem(null, n.viz.conf);
24442
24462
  }, [r, n.viz.type]), o ? /* @__PURE__ */ i(mf, { ...e }) : /* @__PURE__ */ i(C, { children: "Checking update..." });
24443
24463
  }
24444
- function AT(t) {
24464
+ function ET(t) {
24445
24465
  const {
24446
24466
  panel: e,
24447
24467
  setVizConf: n
@@ -24457,7 +24477,7 @@ function AT(t) {
24457
24477
  });
24458
24478
  }) ? /* @__PURE__ */ i(ff, { ...t }) : /* @__PURE__ */ i(C, { children: "Checking update" });
24459
24479
  }
24460
- function ET(t, e) {
24480
+ function RT(t, e) {
24461
24481
  const {
24462
24482
  vizManager: n
24463
24483
  } = Ot(Pt), {
@@ -24478,19 +24498,19 @@ function ET(t, e) {
24478
24498
  layout: e
24479
24499
  }, p = Rd(d);
24480
24500
  try {
24481
- return n.resolveComponent(r.type), /* @__PURE__ */ i(wi, { configure: p, children: /* @__PURE__ */ i(AT, { setVizConf: r.setConf, panel: d, data: t, variables: c, vizManager: n }) });
24501
+ return n.resolveComponent(r.type), /* @__PURE__ */ i(wi, { configure: p, children: /* @__PURE__ */ i(ET, { setVizConf: r.setConf, panel: d, data: t, variables: c, vizManager: n }) });
24482
24502
  } catch (h) {
24483
24503
  return console.info(de(h, "message")), null;
24484
24504
  }
24485
24505
  }
24486
- const RT = D(function({
24506
+ const OT = D(function({
24487
24507
  data: e
24488
24508
  }) {
24489
24509
  const {
24490
24510
  ref: n,
24491
24511
  width: r,
24492
24512
  height: o
24493
- } = cr(), a = ET(e, {
24513
+ } = cr(), a = RT(e, {
24494
24514
  w: r,
24495
24515
  h: o
24496
24516
  }), s = r > 0 && o > 0;
@@ -24504,10 +24524,10 @@ const RT = D(function({
24504
24524
  width: "100%"
24505
24525
  }, children: [
24506
24526
  /* @__PURE__ */ i(Cn, { visible: t.dataLoading, exitTransitionDuration: 0 }),
24507
- !t.canRenderViz && /* @__PURE__ */ i($T, { panel: t }),
24508
- t.canRenderViz && /* @__PURE__ */ i(RT, { data: t.data })
24527
+ !t.canRenderViz && /* @__PURE__ */ i(zT, { panel: t }),
24528
+ t.canRenderViz && /* @__PURE__ */ i(OT, { data: t.data })
24509
24529
  ] }));
24510
- const OT = D(function() {
24530
+ const FT = D(function() {
24511
24531
  const {
24512
24532
  panel: e
24513
24533
  } = tt(), {
@@ -24517,20 +24537,20 @@ const OT = D(function() {
24517
24537
  flexGrow: 1
24518
24538
  }, children: /* @__PURE__ */ i(C, { align: "center", lineClamp: 1, weight: "bold", children: n }) }) : null;
24519
24539
  });
24520
- function FT(t) {
24540
+ function PT(t) {
24521
24541
  return !["richText", "button"].includes(t);
24522
24542
  }
24523
- const PT = {
24543
+ const VT = {
24524
24544
  border: "1px solid #e9ecef"
24525
- }, VT = {
24545
+ }, NT = {
24526
24546
  border: "1px dashed transparent",
24527
24547
  transition: "border-color 300ms ease",
24528
24548
  "&:hover": {
24529
24549
  borderColor: "#e9ecef"
24530
24550
  }
24531
24551
  };
24532
- function NT(t, e) {
24533
- return t.style.border.enabled ? PT : e ? VT : {
24552
+ function BT(t, e) {
24553
+ return t.style.border.enabled ? VT : e ? NT : {
24534
24554
  border: "1px dashed transparent"
24535
24555
  };
24536
24556
  }
@@ -24540,7 +24560,7 @@ const Fa = D(function({
24540
24560
  }) {
24541
24561
  const {
24542
24562
  inEditMode: r
24543
- } = Ot(In), o = e.title ? "calc(100% - 25px - 5px)" : "100%", a = NT(e, r), l = FT(e.viz.type) || r;
24563
+ } = Ot(In), o = e.title ? "calc(100% - 25px - 5px)" : "100%", a = BT(e, r), l = PT(e.viz.type) || r;
24544
24564
  return /* @__PURE__ */ i(vc, { value: {
24545
24565
  panel: e,
24546
24566
  data: e.data,
@@ -24556,12 +24576,12 @@ const Fa = D(function({
24556
24576
  height: 28,
24557
24577
  zIndex: 310
24558
24578
  }, children: /* @__PURE__ */ i(Ad, {}) }),
24559
- l && /* @__PURE__ */ i(MT, { view: n }),
24560
- /* @__PURE__ */ i(OT, {}),
24579
+ l && /* @__PURE__ */ i($T, { view: n }),
24580
+ /* @__PURE__ */ i(FT, {}),
24561
24581
  /* @__PURE__ */ i(Pd, { panel: e, height: o })
24562
24582
  ] }) });
24563
24583
  });
24564
- const BT = z.forwardRef(({
24584
+ const qT = z.forwardRef(({
24565
24585
  h: t
24566
24586
  }, e) => /* @__PURE__ */ i(Q, { ref: e, className: "react-grid-customDragHandle", sx: {
24567
24587
  userSelect: "none",
@@ -24573,7 +24593,7 @@ const BT = z.forwardRef(({
24573
24593
  "&:hover": {
24574
24594
  color: "#228be6"
24575
24595
  }
24576
- }, variant: "transparent", children: /* @__PURE__ */ i(Dh, { size: 16 }) })), qT = z.forwardRef(({
24596
+ }, variant: "transparent", children: /* @__PURE__ */ i(Dh, { size: 16 }) })), WT = z.forwardRef(({
24577
24597
  handleAxis: t,
24578
24598
  ...e
24579
24599
  }, n) => /* @__PURE__ */ i(Q, { ref: n, className: "react-grid-customResizeHandle", sx: {
@@ -24586,7 +24606,7 @@ const BT = z.forwardRef(({
24586
24606
  "&:hover": {
24587
24607
  color: "#228be6"
24588
24608
  }
24589
- }, variant: "transparent", ...e, children: /* @__PURE__ */ i(Ih, { size: 16 }) })), WT = Ul(Ql), jT = D(({
24609
+ }, variant: "transparent", ...e, children: /* @__PURE__ */ i(Ih, { size: 16 }) })), jT = Ul(Ql), GT = D(({
24590
24610
  view: t,
24591
24611
  className: e = "layout"
24592
24612
  }) => {
@@ -24604,13 +24624,13 @@ const BT = z.forwardRef(({
24604
24624
  }, [n]), s = (l, c, d, p) => {
24605
24625
  d.h < 30 && (d.h = 30, p.h = 30), d.w < 4 && (d.w = 4, p.w = 4);
24606
24626
  };
24607
- return /* @__PURE__ */ i(WT, { onLayoutChange: a, className: `dashboard-layout ${e}`, rowHeight: 1, cols: 36, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, layout: o, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ i(qT, {}), onResize: s, children: r.map((l, c) => /* @__PURE__ */ u("div", { "data-grid": {
24627
+ return /* @__PURE__ */ i(jT, { onLayoutChange: a, className: `dashboard-layout ${e}`, rowHeight: 1, cols: 36, margin: [0, 0], isBounded: !0, isDraggable: !0, isResizable: !0, layout: o, draggableHandle: ".react-grid-customDragHandle", resizeHandle: /* @__PURE__ */ i(WT, {}), onResize: s, children: r.map((l, c) => /* @__PURE__ */ u("div", { "data-grid": {
24608
24628
  ...l.layout
24609
24629
  }, className: "panel-grid-item", children: [
24610
- /* @__PURE__ */ i(BT, { h: l.layout.h }),
24630
+ /* @__PURE__ */ i(qT, { h: l.layout.h }),
24611
24631
  /* @__PURE__ */ i(Fa, { view: t, panel: l })
24612
24632
  ] }, l.id)) });
24613
- }), GT = Ul(Ql), YT = D(function({
24633
+ }), YT = Ul(Ql), HT = D(function({
24614
24634
  view: e,
24615
24635
  className: n = "layout"
24616
24636
  }) {
@@ -24618,16 +24638,16 @@ const BT = z.forwardRef(({
24618
24638
  panels: r,
24619
24639
  layouts: o
24620
24640
  } = re().panels.panelsByIDs(e.panelIDs);
24621
- return /* @__PURE__ */ i(GT, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: o, children: r.map((a) => /* @__PURE__ */ i("div", { "data-grid": {
24641
+ return /* @__PURE__ */ i(YT, { className: `dashboard-layout ${n}`, cols: 36, rowHeight: 1, margin: [0, 0], isDraggable: !1, isResizable: !1, layout: o, children: r.map((a) => /* @__PURE__ */ i("div", { "data-grid": {
24622
24642
  ...a.layout
24623
24643
  }, className: "panel-grid-item", children: /* @__PURE__ */ i(Fa, { view: e, panel: a }) }, a.id)) });
24624
- }), HT = D(({
24644
+ }), QT = D(({
24625
24645
  children: t
24626
24646
  }) => /* @__PURE__ */ i(V, { pt: 10, pb: 100, children: t }));
24627
24647
  function Ys(t) {
24628
24648
  return t.replace(/(vw|vh)/, "%");
24629
24649
  }
24630
- const QT = D(({
24650
+ const UT = D(({
24631
24651
  children: t,
24632
24652
  view: e
24633
24653
  }) => {
@@ -24643,7 +24663,7 @@ const QT = D(({
24643
24663
  "> div:not(.mantine-Modal-root)": {
24644
24664
  height: "100%"
24645
24665
  }
24646
- }, children: /* @__PURE__ */ i(De, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: n.custom_modal_title.value, trapFocus: !0, onDragStart: (a) => {
24666
+ }, children: /* @__PURE__ */ i(Ie, { size: n.width, opened: !0, onClose: k.noop, withCloseButton: !1, title: n.custom_modal_title.value, trapFocus: !0, onDragStart: (a) => {
24647
24667
  a.stopPropagation();
24648
24668
  }, styles: {
24649
24669
  root: {
@@ -24673,7 +24693,7 @@ const QT = D(({
24673
24693
  }, withinPortal: !1, transitionProps: {
24674
24694
  duration: 0
24675
24695
  }, children: t }) });
24676
- }), UT = ({
24696
+ }), KT = ({
24677
24697
  variant: t,
24678
24698
  orientation: e
24679
24699
  }) => {
@@ -24690,11 +24710,11 @@ const QT = D(({
24690
24710
  marginLeft: "auto",
24691
24711
  marginRight: "auto"
24692
24712
  }), n;
24693
- }, KT = (t) => t.color ? {
24713
+ }, XT = (t) => t.color ? {
24694
24714
  "&[data-active], &[data-active]:hover": {
24695
24715
  borderColor: t.color ? t.color : "..."
24696
24716
  }
24697
- } : {}, XT = D(({
24717
+ } : {}, JT = D(({
24698
24718
  children: t,
24699
24719
  view: e
24700
24720
  }) => {
@@ -24714,9 +24734,9 @@ const QT = D(({
24714
24734
  zIndex: 320
24715
24735
  }), l = a.tabs.length === 0;
24716
24736
  return /* @__PURE__ */ u(V, { className: "preview-view-tabs", children: [
24717
- /* @__PURE__ */ u(g, { variant: a.variant, orientation: a.orientation, defaultValue: a.tabs.length > 0 ? a.tabs[0].id : "0", styles: UT(a), children: [
24737
+ /* @__PURE__ */ u(g, { variant: a.variant, orientation: a.orientation, defaultValue: a.tabs.length > 0 ? a.tabs[0].id : "0", styles: KT(a), children: [
24718
24738
  /* @__PURE__ */ u(g.List, { grow: a.grow, children: [
24719
- a.tabs.map((c) => /* @__PURE__ */ i(g.Tab, { value: c.id, sx: KT(c), children: c.name ?? c.id }, c.id)),
24739
+ a.tabs.map((c) => /* @__PURE__ */ i(g.Tab, { value: c.id, sx: XT(c), children: c.name ?? c.id }, c.id)),
24720
24740
  /* @__PURE__ */ i(g.Tab, { onClick: a.addTab, value: "add", className: "add-a-tab", children: /* @__PURE__ */ i(Ge, { size: 18, color: "#228be6" }) })
24721
24741
  ] }),
24722
24742
  a.tabs.map((c, d) => {
@@ -24757,35 +24777,35 @@ const QT = D(({
24757
24777
  ] }),
24758
24778
  t
24759
24779
  ] });
24760
- }), JT = D(({
24780
+ }), ZT = D(({
24761
24781
  view: t,
24762
24782
  children: e
24763
24783
  }) => {
24764
24784
  switch (t.type) {
24765
24785
  case se.Modal:
24766
- return /* @__PURE__ */ i(QT, { view: t, children: e });
24786
+ return /* @__PURE__ */ i(UT, { view: t, children: e });
24767
24787
  case se.Tabs:
24768
- return /* @__PURE__ */ i(XT, { view: t, children: e });
24788
+ return /* @__PURE__ */ i(JT, { view: t, children: e });
24769
24789
  case se.Division:
24770
24790
  default:
24771
- return /* @__PURE__ */ i(HT, { children: e });
24791
+ return /* @__PURE__ */ i(QT, { children: e });
24772
24792
  }
24773
- }), ZT = D(function({
24793
+ }), eD = D(function({
24774
24794
  view: e
24775
24795
  }) {
24776
24796
  return /* @__PURE__ */ i(Oa.Provider, { value: {
24777
24797
  viewPanelInFullScreen: k.noop,
24778
24798
  inFullScreen: !1
24779
- }, children: /* @__PURE__ */ i(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(JT, { view: e, children: /* @__PURE__ */ u(V, { sx: {
24799
+ }, children: /* @__PURE__ */ i(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: /* @__PURE__ */ i(ZT, { view: e, children: /* @__PURE__ */ u(V, { sx: {
24780
24800
  position: "relative"
24781
24801
  }, children: [
24782
24802
  /* @__PURE__ */ i(V, { className: "dashboard-sticky-area", sx: {
24783
24803
  position: "sticky",
24784
24804
  top: "0px"
24785
24805
  }, children: /* @__PURE__ */ i(Ld, { view: e }) }),
24786
- /* @__PURE__ */ i(jT, { view: e })
24806
+ /* @__PURE__ */ i(GT, { view: e })
24787
24807
  ] }) }) }) });
24788
- }), eD = {
24808
+ }), tD = {
24789
24809
  modal: {
24790
24810
  display: "flex",
24791
24811
  flexDirection: "column",
@@ -24795,17 +24815,17 @@ const QT = D(({
24795
24815
  display: "flex",
24796
24816
  height: "calc(100vh - 88px)"
24797
24817
  }
24798
- }, tD = D(function({
24818
+ }, nD = D(function({
24799
24819
  view: e,
24800
24820
  panel: n,
24801
24821
  exitFullScreen: r
24802
24822
  }) {
24803
- return /* @__PURE__ */ i(De, { opened: !0, fullScreen: !0, onClose: r, title: /* @__PURE__ */ i($, { color: "blue", size: "xs", onClick: r, leftIcon: /* @__PURE__ */ i(Mh, { size: 20 }), children: "Exit fullscreen" }), styles: eD, children: /* @__PURE__ */ i(w, { grow: !0, sx: {
24823
+ return /* @__PURE__ */ i(Ie, { opened: !0, fullScreen: !0, onClose: r, title: /* @__PURE__ */ i($, { color: "blue", size: "xs", onClick: r, leftIcon: /* @__PURE__ */ i(Mh, { size: 20 }), children: "Exit fullscreen" }), styles: tD, children: /* @__PURE__ */ i(w, { grow: !0, sx: {
24804
24824
  flexGrow: 1,
24805
24825
  flexShrink: 0
24806
24826
  }, children: /* @__PURE__ */ i(Fa, { view: e, panel: n }) }) });
24807
24827
  });
24808
- function nD(t, e, n) {
24828
+ function rD(t, e, n) {
24809
24829
  const {
24810
24830
  panels: r
24811
24831
  } = re(), o = t.id === "Main", [a, s] = z.useState(() => o && r.findByID(e) ? e : null), l = z.useCallback((h) => {
@@ -24820,14 +24840,14 @@ function nD(t, e, n) {
24820
24840
  fullScreenPanel: d
24821
24841
  };
24822
24842
  }
24823
- const rD = D(({
24843
+ const iD = D(({
24824
24844
  children: t
24825
- }) => /* @__PURE__ */ i(V, { children: t })), iD = D(({
24845
+ }) => /* @__PURE__ */ i(V, { children: t })), oD = D(({
24826
24846
  children: t,
24827
24847
  view: e
24828
24848
  }) => {
24829
24849
  const n = re(), r = e.config, o = n.views.visibleViewIDs.includes(e.id), a = () => n.views.rmVisibleViewID(e.id);
24830
- return /* @__PURE__ */ i(De, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: r.custom_modal_title.value, trapFocus: !0, onDragStart: (s) => {
24850
+ return /* @__PURE__ */ i(Ie, { size: r.width, centered: !0, opened: o, onClose: a, withCloseButton: !1, title: r.custom_modal_title.value, trapFocus: !0, onDragStart: (s) => {
24831
24851
  s.stopPropagation();
24832
24852
  }, styles: {
24833
24853
  content: {
@@ -24840,11 +24860,11 @@ const rD = D(({
24840
24860
  }, transitionProps: {
24841
24861
  duration: 0
24842
24862
  }, children: t });
24843
- }), oD = (t) => t.color ? {
24863
+ }), aD = (t) => t.color ? {
24844
24864
  "&[data-active], &[data-active]:hover": {
24845
24865
  borderColor: t.color ? t.color : "..."
24846
24866
  }
24847
- } : {}, aD = D(({
24867
+ } : {}, sD = D(({
24848
24868
  children: t,
24849
24869
  view: e
24850
24870
  }) => {
@@ -24855,7 +24875,7 @@ const rD = D(({
24855
24875
  padding: r.orientation === "horizontal" ? "16px 0px" : "0"
24856
24876
  }
24857
24877
  }, keepMounted: !1, children: [
24858
- /* @__PURE__ */ i(g.List, { grow: r.grow, children: r.tabs.map((o) => /* @__PURE__ */ i(g.Tab, { value: o.id, sx: oD(o), disabled: !o.view_id, children: o.name ?? o.id }, o.id)) }),
24878
+ /* @__PURE__ */ i(g.List, { grow: r.grow, children: r.tabs.map((o) => /* @__PURE__ */ i(g.Tab, { value: o.id, sx: aD(o), disabled: !o.view_id, children: o.name ?? o.id }, o.id)) }),
24859
24879
  r.tabs.map((o) => {
24860
24880
  const a = n.views.findByID(o.view_id);
24861
24881
  return a ? /* @__PURE__ */ i(g.Panel, { value: o.id, children: /* @__PURE__ */ i(Pa, { view: a }) }, o.id) : null;
@@ -24863,18 +24883,18 @@ const rD = D(({
24863
24883
  ] }),
24864
24884
  t
24865
24885
  ] });
24866
- }), sD = D(({
24886
+ }), lD = D(({
24867
24887
  view: t,
24868
24888
  children: e
24869
24889
  }) => {
24870
24890
  switch (t.type) {
24871
24891
  case se.Modal:
24872
- return /* @__PURE__ */ i(iD, { view: t, children: e });
24892
+ return /* @__PURE__ */ i(oD, { view: t, children: e });
24873
24893
  case se.Tabs:
24874
- return /* @__PURE__ */ i(aD, { view: t, children: e });
24894
+ return /* @__PURE__ */ i(sD, { view: t, children: e });
24875
24895
  case se.Division:
24876
24896
  default:
24877
- return /* @__PURE__ */ i(rD, { children: e });
24897
+ return /* @__PURE__ */ i(iD, { children: e });
24878
24898
  }
24879
24899
  }), Pa = D(function({
24880
24900
  view: e
@@ -24887,30 +24907,30 @@ const rD = D(({
24887
24907
  exitFullScreen: a,
24888
24908
  inFullScreen: s,
24889
24909
  fullScreenPanel: l
24890
- } = nD(e, n, r);
24910
+ } = rD(e, n, r);
24891
24911
  return /* @__PURE__ */ i(Oa.Provider, { value: {
24892
24912
  viewPanelInFullScreen: o,
24893
24913
  inFullScreen: s
24894
24914
  }, children: /* @__PURE__ */ u(V, { className: "dashboard-view", "data-enable-scrollbar": !0, children: [
24895
- s && /* @__PURE__ */ i(tD, { view: e, panel: l, exitFullScreen: a }),
24896
- /* @__PURE__ */ i(sD, { view: e, children: /* @__PURE__ */ u(V, { sx: {
24915
+ s && /* @__PURE__ */ i(nD, { view: e, panel: l, exitFullScreen: a }),
24916
+ /* @__PURE__ */ i(lD, { view: e, children: /* @__PURE__ */ u(V, { sx: {
24897
24917
  position: "relative"
24898
24918
  }, children: [
24899
24919
  !s && /* @__PURE__ */ i(V, { className: "dashboard-sticky-area", sx: {
24900
24920
  position: "sticky",
24901
24921
  top: "0px"
24902
24922
  }, children: /* @__PURE__ */ i(Ld, { view: e }) }),
24903
- !s && /* @__PURE__ */ i(YT, { view: e })
24923
+ !s && /* @__PURE__ */ i(HT, { view: e })
24904
24924
  ] }) })
24905
24925
  ] }) });
24906
24926
  });
24907
24927
  function Vd(t) {
24908
24928
  return z.useCallback((e) => e.provideValue(qe.pluginManager, t.pluginManager).provideValue(qe.vizManager, t.vizManager).provideValue(qe.colorManager, t.colorManager), []);
24909
24929
  }
24910
- const lD = D(({
24930
+ const cD = D(({
24911
24931
  headerMenuItems: t = null
24912
24932
  }) => {
24913
- const e = ze(), n = re(), r = () => {
24933
+ const e = Le(), n = re(), r = () => {
24914
24934
  const o = JSON.stringify(n.json, null, 2), a = `${e.name}__${n.name}`;
24915
24935
  Np(a, o);
24916
24936
  };
@@ -24922,7 +24942,7 @@ const lD = D(({
24922
24942
  t
24923
24943
  ] })
24924
24944
  ] });
24925
- }), cD = D(({
24945
+ }), dD = D(({
24926
24946
  saveDashboardChanges: t
24927
24947
  }) => {
24928
24948
  const e = Gt(), n = re(), r = () => {
@@ -24962,12 +24982,12 @@ const lD = D(({
24962
24982
  /* @__PURE__ */ i(He.Dropdown, { children: /* @__PURE__ */ i(He.Item, { icon: /* @__PURE__ */ i(wl, { size: 14, color: "red" }), disabled: !o, onClick: r, children: "Revert Changes" }) })
24963
24983
  ] })
24964
24984
  ] });
24965
- }), dD = D(({
24985
+ }), uD = D(({
24966
24986
  saveDashboardChanges: t,
24967
24987
  headerSlot: e = null,
24968
24988
  headerMenuItems: n
24969
24989
  }) => {
24970
- const r = lp(), o = ze(), a = () => {
24990
+ const r = lp(), o = Le(), a = () => {
24971
24991
  r(`/dashboard/${o.id}`);
24972
24992
  }, s = Gt(), l = () => {
24973
24993
  s.openConfirmModal({
@@ -25000,16 +25020,16 @@ const lD = D(({
25000
25020
  "End Editing",
25001
25021
  /* @__PURE__ */ i(C, { td: "underline", children: o.name })
25002
25022
  ] }) }),
25003
- /* @__PURE__ */ i(cD, { saveDashboardChanges: t })
25023
+ /* @__PURE__ */ i(dD, { saveDashboardChanges: t })
25004
25024
  ] }),
25005
25025
  /* @__PURE__ */ u(w, { position: "right", sx: {
25006
25026
  flexGrow: 1
25007
25027
  }, children: [
25008
25028
  e,
25009
- /* @__PURE__ */ i(lD, { headerMenuItems: n })
25029
+ /* @__PURE__ */ i(cD, { headerMenuItems: n })
25010
25030
  ] })
25011
25031
  ] }) });
25012
- }), uD = {
25032
+ }), hD = {
25013
25033
  position: "fixed",
25014
25034
  top: 60,
25015
25035
  // height of mantine-header
@@ -25019,9 +25039,9 @@ const lD = D(({
25019
25039
  zIndex: 299,
25020
25040
  borderBottom: "1px solid #e9ecef",
25021
25041
  background: "rgba(233,236,239, 0.15)"
25022
- }, hD = D(() => {
25042
+ }, pD = D(() => {
25023
25043
  const t = re();
25024
- return /* @__PURE__ */ i(V, { sx: uD, pl: {
25044
+ return /* @__PURE__ */ i(V, { sx: hD, pl: {
25025
25045
  base: 200,
25026
25046
  xs: 200,
25027
25047
  sm: 200,
@@ -25042,11 +25062,11 @@ const lD = D(({
25042
25062
  /* @__PURE__ */ i(V, {}),
25043
25063
  /* @__PURE__ */ i(V, {})
25044
25064
  ] }) });
25045
- }), pD = D((t) => /* @__PURE__ */ u(G, { children: [
25046
- /* @__PURE__ */ i(dD, { ...t }),
25047
- /* @__PURE__ */ i(hD, {})
25065
+ }), fD = D((t) => /* @__PURE__ */ u(G, { children: [
25066
+ /* @__PURE__ */ i(uD, { ...t }),
25067
+ /* @__PURE__ */ i(pD, {})
25048
25068
  ] }));
25049
- function fD(t, e, n) {
25069
+ function mD(t, e, n) {
25050
25070
  const r = [];
25051
25071
  return t.filter((o) => "__INTERACTIONS" in o.viz.conf).forEach((o, a) => {
25052
25072
  const s = e[o.id];
@@ -25108,21 +25128,21 @@ function fD(t, e, n) {
25108
25128
  });
25109
25129
  }), r;
25110
25130
  }
25111
- function mD(t, e) {
25131
+ function gD(t, e) {
25112
25132
  const n = t.filters.keyLabelMap;
25113
25133
  return {
25114
- edges: fD(t.panels.list, e, n),
25134
+ edges: mD(t.panels.list, e, n),
25115
25135
  edgeNodes: []
25116
25136
  };
25117
25137
  }
25118
25138
  function Nd(t, e, n) {
25119
25139
  return t * e + t * n;
25120
25140
  }
25121
- function gD(t, e, n) {
25141
+ function bD(t, e, n) {
25122
25142
  return t * e + (t - 1) * n;
25123
25143
  }
25124
- const Ur = 25, Va = 40, Bd = 25, Na = 350, bD = 150, yD = 150, qd = 150, Hs = 300, Pr = 40, Wd = 25, xD = 300;
25125
- function vD(t, e) {
25144
+ const Ur = 25, Va = 40, Bd = 25, Na = 350, yD = 150, xD = 150, qd = 150, Hs = 300, Pr = 40, Wd = 25, vD = 300;
25145
+ function wD(t, e) {
25126
25146
  const n = k.keyBy(e, (o) => o.id), r = [];
25127
25147
  return t.current.forEach((o, a) => {
25128
25148
  o.panelIDs.forEach((s, l) => {
@@ -25170,14 +25190,14 @@ function vD(t, e) {
25170
25190
  });
25171
25191
  }), r;
25172
25192
  }
25173
- const wD = {
25193
+ const _D = {
25174
25194
  [se.Division]: "Div",
25175
25195
  [se.Modal]: "Modal",
25176
25196
  [se.Tabs]: "Tabs"
25177
- }, _D = Jk;
25178
- function CD(t) {
25197
+ }, CD = Zk;
25198
+ function SD(t) {
25179
25199
  return t.current.map((n, r) => {
25180
- const o = gD(n.panelIDs.length, Pr, Wd) + Va + Bd;
25200
+ const o = bD(n.panelIDs.length, Pr, Wd) + Va + Bd;
25181
25201
  let a = [];
25182
25202
  return n.type === se.Tabs && (a = n.config.tabs.map((l) => l.view_id)), {
25183
25203
  id: n.id,
@@ -25187,7 +25207,7 @@ function CD(t) {
25187
25207
  _sub_view_ids: [],
25188
25208
  _tab_view_ids: a,
25189
25209
  data: {
25190
- label: `${wD[n.type]}:${n.name}`
25210
+ label: `${_D[n.type]}:${n.name}`
25191
25211
  },
25192
25212
  position: {
25193
25213
  x: 0,
@@ -25197,14 +25217,14 @@ function CD(t) {
25197
25217
  targetPosition: St.Left,
25198
25218
  className: "light",
25199
25219
  style: {
25200
- backgroundColor: _D[n.type],
25220
+ backgroundColor: CD[n.type],
25201
25221
  width: Na,
25202
25222
  height: o
25203
25223
  }
25204
25224
  };
25205
25225
  });
25206
25226
  }
25207
- function SD(t) {
25227
+ function kD(t) {
25208
25228
  const e = k.keyBy(t, (n) => n.id);
25209
25229
  t.forEach((n) => {
25210
25230
  n._node_type !== "view-root" || n._view_type !== se.Tabs || n._tab_view_ids.forEach((r) => {
@@ -25212,13 +25232,13 @@ function SD(t) {
25212
25232
  });
25213
25233
  });
25214
25234
  }
25215
- function kD(t) {
25216
- const e = CD(t.views);
25217
- SD(e);
25218
- const n = vD(t.views, t.panels.list);
25235
+ function TD(t) {
25236
+ const e = SD(t.views);
25237
+ kD(e);
25238
+ const n = wD(t.views, t.panels.list);
25219
25239
  return [...e, ...n];
25220
25240
  }
25221
- function TD({
25241
+ function DD({
25222
25242
  nodeMap: t,
25223
25243
  nodes: e,
25224
25244
  edges: n
@@ -25232,7 +25252,7 @@ function TD({
25232
25252
  }, Va));
25233
25253
  });
25234
25254
  }
25235
- function DD({
25255
+ function ID({
25236
25256
  nodeMap: t,
25237
25257
  nodes: e,
25238
25258
  edges: n
@@ -25245,7 +25265,7 @@ function DD({
25245
25265
  s._node_type !== "view-root" || a._node_type !== "view-root" || (a._view_level += 1 + s._view_level, s._sub_view_ids.push(a.id));
25246
25266
  }), e.sort((r, o) => r._node_type === "view-root" && o._node_type === "view-root" ? r._view_level - o._view_level : r._node_type !== "view-root" && o._node_type !== "view-root" ? 0 : r._node_type === "view-root" ? -1 : 1);
25247
25267
  }
25248
- function ID({
25268
+ function MD({
25249
25269
  nodeMap: t,
25250
25270
  nodes: e,
25251
25271
  edges: n
@@ -25257,13 +25277,13 @@ function ID({
25257
25277
  const a = t[o.source], s = t[o.target];
25258
25278
  if (a && s && a.parentNode) {
25259
25279
  const l = t[a.parentNode], c = l.position.x, d = Number(k.get(s, "style.height", 0)), p = Number(l.style.width);
25260
- s.position.x = c + p + xD, l._view_level === 0 && s._sub_view_ids.length === 0 && (a.sourcePosition = St.Left, s.targetPosition = St.Right, s.position.x *= -1);
25280
+ s.position.x = c + p + vD, l._view_level === 0 && s._sub_view_ids.length === 0 && (a.sourcePosition = St.Left, s.targetPosition = St.Right, s.position.x *= -1);
25261
25281
  const f = s.position.x, m = k.get(r, f, 0);
25262
25282
  s.position.y = m, r[f] = m + d + qd;
25263
25283
  }
25264
25284
  });
25265
25285
  }
25266
- function MD({
25286
+ function $D({
25267
25287
  nodeMap: t,
25268
25288
  nodes: e,
25269
25289
  edges: n
@@ -25272,10 +25292,10 @@ function MD({
25272
25292
  n.forEach((s) => {
25273
25293
  r.add(s.source), o.add(s.target);
25274
25294
  }), e.filter((s) => s._node_type !== "view-root" || s.id === "Main" || s.parentNode ? !1 : !r.has(s.id) && !o.has(s.id)).forEach((s, l) => {
25275
- s.position.x = Nd(l, Na, yD), s.position.y = 0 - bD - qd;
25295
+ s.position.x = Nd(l, Na, xD), s.position.y = 0 - yD - qd;
25276
25296
  });
25277
25297
  }
25278
- function $D({
25298
+ function zD({
25279
25299
  nodeMap: t,
25280
25300
  nodes: e,
25281
25301
  edges: n
@@ -25285,28 +25305,28 @@ function $D({
25285
25305
  nodes: e,
25286
25306
  edges: n
25287
25307
  };
25288
- return MD(r), DD(r), TD(r), ID(r), {
25308
+ return $D(r), ID(r), DD(r), MD(r), {
25289
25309
  nodes: e,
25290
25310
  edges: n
25291
25311
  };
25292
25312
  }
25293
- function zD(t) {
25294
- const e = kD(t), n = k.keyBy(e, (c) => c.id), {
25313
+ function LD(t) {
25314
+ const e = TD(t), n = k.keyBy(e, (c) => c.id), {
25295
25315
  edges: r,
25296
25316
  edgeNodes: o
25297
- } = mD(t, n), a = [...e, ...o], s = k.keyBy(a, (c) => c.id), l = {
25317
+ } = gD(t, n), a = [...e, ...o], s = k.keyBy(a, (c) => c.id), l = {
25298
25318
  edges: k.uniqBy(r, (c) => c.id),
25299
25319
  nodes: a,
25300
25320
  nodeMap: s
25301
25321
  };
25302
- return $D(l);
25322
+ return zD(l);
25303
25323
  }
25304
25324
  const qi = {
25305
25325
  "builtin:op:open-link": /* @__PURE__ */ i($i, { color: "blue", size: 20, radius: "xl", children: /* @__PURE__ */ i(sh, { size: 14 }) }),
25306
25326
  "builtin:op:set_filter_values": /* @__PURE__ */ i($i, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ i(lh, { size: 14 }) }),
25307
25327
  "builtin:op:clear_filter_values": /* @__PURE__ */ i($i, { color: "orange", size: 20, radius: "xl", children: /* @__PURE__ */ i(ch, { size: 14 }) })
25308
25328
  };
25309
- function LD(t) {
25329
+ function AD(t) {
25310
25330
  const e = [];
25311
25331
  return t.forEach((n) => {
25312
25332
  switch (n.schemaRef) {
@@ -25353,14 +25373,14 @@ function LD(t) {
25353
25373
  }
25354
25374
  }), e;
25355
25375
  }
25356
- const AD = xu(({
25376
+ const ED = xu(({
25357
25377
  data: t,
25358
25378
  isConnectable: e,
25359
25379
  sourcePosition: n = St.Right,
25360
25380
  targetPosition: r = St.Left,
25361
25381
  ...o
25362
25382
  }) => {
25363
- const a = M(() => LD(t.interactions), [t.interactions]);
25383
+ const a = M(() => AD(t.interactions), [t.interactions]);
25364
25384
  return /* @__PURE__ */ u(G, { children: [
25365
25385
  /* @__PURE__ */ i(ps, { type: "target", position: r, isConnectable: e }),
25366
25386
  /* @__PURE__ */ i(V, { sx: {
@@ -25375,19 +25395,19 @@ const AD = xu(({
25375
25395
  /* @__PURE__ */ i(ps, { type: "source", position: n, isConnectable: e })
25376
25396
  ] });
25377
25397
  });
25378
- const ED = {
25379
- interaction: AD
25380
- }, RD = D(() => {
25398
+ const RD = {
25399
+ interaction: ED
25400
+ }, OD = D(() => {
25381
25401
  const t = re(), {
25382
25402
  edges: e,
25383
25403
  nodes: n
25384
- } = zD(t);
25385
- return /* @__PURE__ */ u(cp, { nodes: n, edges: e, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes: ED, children: [
25404
+ } = LD(t);
25405
+ return /* @__PURE__ */ u(cp, { nodes: n, edges: e, onNodesChange: k.noop, onEdgesChange: k.noop, onConnect: k.noop, className: "interactions-viewer", fitView: !0, nodeTypes: RD, children: [
25386
25406
  /* @__PURE__ */ i(dp, {}),
25387
25407
  /* @__PURE__ */ i(up, {}),
25388
25408
  /* @__PURE__ */ i(hp, {})
25389
25409
  ] });
25390
- }), OD = D(({
25410
+ }), FD = D(({
25391
25411
  opened: t,
25392
25412
  close: e
25393
25413
  }) => {
@@ -25397,7 +25417,7 @@ const ED = {
25397
25417
  return z.useEffect(() => {
25398
25418
  n(t);
25399
25419
  }, [t]), /* @__PURE__ */ i(
25400
- De,
25420
+ Ie,
25401
25421
  {
25402
25422
  size: "96vw",
25403
25423
  opened: t,
@@ -25416,10 +25436,10 @@ const ED = {
25416
25436
  }
25417
25437
  },
25418
25438
  zIndex: 300,
25419
- children: /* @__PURE__ */ i(RD, {})
25439
+ children: /* @__PURE__ */ i(OD, {})
25420
25440
  }
25421
25441
  );
25422
- }), FD = {
25442
+ }), PD = {
25423
25443
  "> button": {
25424
25444
  "&:first-of-type": {
25425
25445
  borderTopRightRadius: 0,
@@ -25441,7 +25461,7 @@ const ED = {
25441
25461
  }
25442
25462
  }
25443
25463
  };
25444
- function PD({
25464
+ function VD({
25445
25465
  onClick: t,
25446
25466
  name: e,
25447
25467
  active: n,
@@ -25475,14 +25495,14 @@ function PD({
25475
25495
  }, children: /* @__PURE__ */ i(dh, { size: 16 }) }) })
25476
25496
  ] });
25477
25497
  }
25478
- const VD = D(() => {
25479
- const t = ze(), e = re(), n = ot((o) => () => e.views.setIDOfVIE(o), [e]), r = (o) => {
25498
+ const ND = D(() => {
25499
+ const t = Le(), e = re(), n = ot((o) => () => e.views.setIDOfVIE(o), [e]), r = (o) => {
25480
25500
  t.editor.open(["_VIEWS_", o]);
25481
25501
  };
25482
25502
  return /* @__PURE__ */ u(V, { sx: {
25483
25503
  position: "relative"
25484
25504
  }, children: [
25485
- e.views.options.map((o) => /* @__PURE__ */ i(PD, { active: e.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
25505
+ e.views.options.map((o) => /* @__PURE__ */ i(VD, { active: e.views.idOfVIE === o.value, name: o.label, onClick: n(o.value), openSettings: () => r(o.value) }, o.value)),
25486
25506
  /* @__PURE__ */ i(R, { variant: "dashed" }),
25487
25507
  /* @__PURE__ */ i($, { variant: "subtle", rightIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: e.views.addARandomNewView, sx: {
25488
25508
  width: "100%",
@@ -25493,8 +25513,8 @@ const VD = D(() => {
25493
25513
  }
25494
25514
  }, children: "Add a View" })
25495
25515
  ] });
25496
- }), ND = D(() => {
25497
- const t = ze(), e = re(), n = () => {
25516
+ }), BD = D(() => {
25517
+ const t = Le(), e = re(), n = () => {
25498
25518
  if (!e.queries.firstID) {
25499
25519
  t.editor.open(["_QUERIES_", ""]);
25500
25520
  return;
@@ -25517,7 +25537,7 @@ const VD = D(() => {
25517
25537
  }, zIndex: 299, children: [
25518
25538
  /* @__PURE__ */ u(Bt.Section, { children: [
25519
25539
  /* @__PURE__ */ u(w, { grow: !0, spacing: 0, sx: {
25520
- ...FD,
25540
+ ...PD,
25521
25541
  button: {
25522
25542
  borderWidth: 0,
25523
25543
  borderBottomWidth: 1,
@@ -25534,7 +25554,7 @@ const VD = D(() => {
25534
25554
  height: "30px"
25535
25555
  }, onClick: s, children: /* @__PURE__ */ i(uh, { size: 18 }) }) })
25536
25556
  ] }),
25537
- /* @__PURE__ */ i(OD, { opened: o, close: l })
25557
+ /* @__PURE__ */ i(FD, { opened: o, close: l })
25538
25558
  ] }),
25539
25559
  /* @__PURE__ */ i(Bt.Section, { py: 5, sx: {
25540
25560
  borderBottom: "1px solid #eee"
@@ -25544,12 +25564,12 @@ const VD = D(() => {
25544
25564
  }, children: "Views" }) }),
25545
25565
  /* @__PURE__ */ i(Bt.Section, { grow: !0, sx: {
25546
25566
  overflow: "auto"
25547
- }, children: /* @__PURE__ */ i(VD, {}) }),
25567
+ }, children: /* @__PURE__ */ i(ND, {}) }),
25548
25568
  /* @__PURE__ */ i(Bt.Section, { children: /* @__PURE__ */ i(w, { grow: !0, p: "md", pt: "sm", sx: {
25549
25569
  borderTop: "1px solid #eee"
25550
25570
  }, children: /* @__PURE__ */ i($, { size: "xs", leftIcon: /* @__PURE__ */ i(hh, { size: 20 }), onClick: () => t.editor.open([]), children: "Settings" }) }) })
25551
25571
  ] });
25552
- }), BD = D(function({
25572
+ }), qD = D(function({
25553
25573
  config: e
25554
25574
  }) {
25555
25575
  return /* @__PURE__ */ u(G, { children: [
@@ -25561,7 +25581,7 @@ const VD = D(() => {
25561
25581
  }
25562
25582
  } })
25563
25583
  ] });
25564
- }), qD = [{
25584
+ }), WD = [{
25565
25585
  label: "2022",
25566
25586
  value: "YYYY"
25567
25587
  }, {
@@ -25576,7 +25596,7 @@ const VD = D(() => {
25576
25596
  }, {
25577
25597
  label: "2022-01-01",
25578
25598
  value: "YYYY-MM-DD"
25579
- }], WD = D(function({
25599
+ }], jD = D(function({
25580
25600
  config: e
25581
25601
  }) {
25582
25602
  return /* @__PURE__ */ u(G, { children: [
@@ -25585,7 +25605,7 @@ const VD = D(() => {
25585
25605
  /* @__PURE__ */ i(we, { checked: e.clearable, onChange: (n) => e.setClearable(n.currentTarget.checked), disabled: e.max_days > 0, label: "Clearable" }),
25586
25606
  /* @__PURE__ */ i(we, { checked: e.allowSingleDateInRange, onChange: (n) => e.setAllowSingleDateInRange(n.currentTarget.checked), label: "Allow choosing 1 day" })
25587
25607
  ] }),
25588
- /* @__PURE__ */ i(P, { data: qD, label: "Display Format", value: e.inputFormat, onChange: e.setInputFormat }),
25608
+ /* @__PURE__ */ i(P, { data: WD, label: "Display Format", value: e.inputFormat, onChange: e.setInputFormat }),
25589
25609
  /* @__PURE__ */ i(
25590
25610
  Md,
25591
25611
  {
@@ -25612,7 +25632,7 @@ const VD = D(() => {
25612
25632
  return /* @__PURE__ */ i(P, { label: "Pick a query", data: r, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
25613
25633
  flexGrow: 1
25614
25634
  }, disabled: o, error: o ? "You need to add a query in Data Settings" : void 0 });
25615
- }), jD = `
25635
+ }), GD = `
25616
25636
  // row
25617
25637
  {
25618
25638
  label: string;
@@ -25623,9 +25643,9 @@ const VD = D(() => {
25623
25643
  const [t, e] = K(!1);
25624
25644
  return /* @__PURE__ */ u(G, { children: [
25625
25645
  /* @__PURE__ */ i($, { variant: "subtle", compact: !0, onClick: () => e((n) => !n), children: t ? "Close" : "Click to see expected data structure" }),
25626
- /* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children: jD }) })
25646
+ /* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children: GD }) })
25627
25647
  ] });
25628
- }, GD = D(function({
25648
+ }, YD = D(function({
25629
25649
  config: e
25630
25650
  }) {
25631
25651
  const n = () => {
@@ -25686,7 +25706,7 @@ const VD = D(() => {
25686
25706
  /* @__PURE__ */ i(Ba, { value: e.options_query_id, onChange: e.setOptionsQueryID }),
25687
25707
  /* @__PURE__ */ i(jd, {})
25688
25708
  ] });
25689
- }), YD = D(function({
25709
+ }), HD = D(function({
25690
25710
  config: e
25691
25711
  }) {
25692
25712
  const n = () => {
@@ -25751,7 +25771,7 @@ const VD = D(() => {
25751
25771
  /* @__PURE__ */ i(Ba, { value: e.options_query_id, onChange: e.setOptionsQueryID }),
25752
25772
  /* @__PURE__ */ i(jd, {})
25753
25773
  ] });
25754
- }), HD = D(function({
25774
+ }), QD = D(function({
25755
25775
  config: e
25756
25776
  }) {
25757
25777
  return /* @__PURE__ */ u(G, { children: [
@@ -25760,7 +25780,7 @@ const VD = D(() => {
25760
25780
  } }),
25761
25781
  /* @__PURE__ */ i(we, { checked: e.required, onChange: (n) => e.setRequired(n.currentTarget.checked), label: "Required" })
25762
25782
  ] });
25763
- }), QD = `
25783
+ }), UD = `
25764
25784
  // row
25765
25785
  {
25766
25786
  label: string;
@@ -25768,13 +25788,13 @@ const VD = D(() => {
25768
25788
  parent_value: string;
25769
25789
  description?: string;
25770
25790
  }
25771
- `, UD = () => {
25791
+ `, KD = () => {
25772
25792
  const [t, e] = K(!1);
25773
25793
  return /* @__PURE__ */ u(G, { children: [
25774
25794
  /* @__PURE__ */ i($, { variant: "subtle", compact: !0, onClick: () => e((n) => !n), children: t ? "Close" : "Click to see expected data structure" }),
25775
- /* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children: QD }) })
25795
+ /* @__PURE__ */ i(Bo, { in: t, children: /* @__PURE__ */ i(_n, { language: "typescript", noCopy: !0, colorScheme: "dark", children: UD }) })
25776
25796
  ] });
25777
- }, KD = D(function({
25797
+ }, XD = D(function({
25778
25798
  config: e
25779
25799
  }) {
25780
25800
  return /* @__PURE__ */ u(G, { children: [
@@ -25782,9 +25802,9 @@ const VD = D(() => {
25782
25802
  /* @__PURE__ */ i(R, { label: "Fetch options from database", labelPosition: "center" }),
25783
25803
  /* @__PURE__ */ i(le, { value: e.default_selection_count, onChange: e.setDefaultSelectionCount, label: "Select first N options by default" }),
25784
25804
  /* @__PURE__ */ i(Ba, { value: e.options_query_id, onChange: e.setOptionsQueryID }),
25785
- /* @__PURE__ */ i(UD, {})
25805
+ /* @__PURE__ */ i(KD, {})
25786
25806
  ] });
25787
- }), XD = D(function({
25807
+ }), JD = D(function({
25788
25808
  filter: e
25789
25809
  }) {
25790
25810
  const [n, r] = z.useState(e.plainDefaultValue);
@@ -25798,14 +25818,14 @@ const VD = D(() => {
25798
25818
  /* @__PURE__ */ i(C, { pt: "lg", pb: "md", color: "gray", children: "Config" }),
25799
25819
  /* @__PURE__ */ i(_n, { language: "json", colorScheme: "dark", noCopy: !0, children: JSON.stringify(e, null, 4) })
25800
25820
  ] });
25801
- }), JD = {
25802
- select: YD,
25803
- "multi-select": GD,
25804
- "tree-select": KD,
25805
- "text-input": HD,
25806
- checkbox: BD,
25807
- "date-range": WD
25808
- }, ZD = [{
25821
+ }), ZD = {
25822
+ select: HD,
25823
+ "multi-select": YD,
25824
+ "tree-select": XD,
25825
+ "text-input": QD,
25826
+ checkbox: qD,
25827
+ "date-range": jD
25828
+ }, eI = [{
25809
25829
  label: "Select",
25810
25830
  value: "select"
25811
25831
  }, {
@@ -25823,10 +25843,10 @@ const VD = D(() => {
25823
25843
  }, {
25824
25844
  label: "Date Range",
25825
25845
  value: "date-range"
25826
- }], eI = D(function({
25846
+ }], tI = D(function({
25827
25847
  filter: e
25828
25848
  }) {
25829
- const n = re(), r = z.useMemo(() => JD[e.type], [e.type]);
25849
+ const n = re(), r = z.useMemo(() => ZD[e.type], [e.type]);
25830
25850
  return /* @__PURE__ */ u(w, { grow: !0, spacing: 20, align: "top", children: [
25831
25851
  /* @__PURE__ */ u(V, { sx: {
25832
25852
  maxWidth: "600px"
@@ -25856,16 +25876,16 @@ const VD = D(() => {
25856
25876
  /* @__PURE__ */ i(A, { label: "Label", placeholder: "Label for this field", required: !0, value: e.label, onChange: (o) => {
25857
25877
  e.setLabel(o.currentTarget.value);
25858
25878
  } }),
25859
- /* @__PURE__ */ i(P, { label: "Widget", data: ZD, required: !0, value: e.type, onChange: e.setType }),
25879
+ /* @__PURE__ */ i(P, { label: "Widget", data: eI, required: !0, value: e.type, onChange: e.setType }),
25860
25880
  /* @__PURE__ */ i(r, { config: e.config })
25861
25881
  ] })
25862
25882
  ] }),
25863
- /* @__PURE__ */ i(XD, { filter: e })
25883
+ /* @__PURE__ */ i(JD, { filter: e })
25864
25884
  ] });
25865
- }), tI = D(({
25885
+ }), nI = D(({
25866
25886
  id: t
25867
25887
  }) => {
25868
- const e = Gt(), n = ze(), r = re();
25888
+ const e = Gt(), n = Le(), r = re();
25869
25889
  if (t === "")
25870
25890
  return null;
25871
25891
  const o = r.filters.findByID(t);
@@ -25903,9 +25923,9 @@ const VD = D(() => {
25903
25923
  flexGrow: 1,
25904
25924
  maxHeight: "calc(100% - 52px)",
25905
25925
  overflow: "auto"
25906
- }, children: /* @__PURE__ */ i(eI, { filter: o }) })
25926
+ }, children: /* @__PURE__ */ i(tI, { filter: o }) })
25907
25927
  ] });
25908
- }), nI = D(() => {
25928
+ }), rI = D(() => {
25909
25929
  const t = re(), [e, n] = K(() => JSON.stringify(t.mock_context.current, null, 4)), r = () => {
25910
25930
  try {
25911
25931
  t.mock_context.replace(JSON.parse(e));
@@ -25956,7 +25976,7 @@ const VD = D(() => {
25956
25976
  }, disabled: !o, onClick: r, children: /* @__PURE__ */ i(be, { size: 20 }) })
25957
25977
  ] })
25958
25978
  ] });
25959
- }), rI = D(() => {
25979
+ }), iI = D(() => {
25960
25980
  const {
25961
25981
  panel: t
25962
25982
  } = tt();
@@ -25965,14 +25985,14 @@ const VD = D(() => {
25965
25985
  flexGrow: 1
25966
25986
  }
25967
25987
  } });
25968
- }), iI = D(() => {
25988
+ }), oI = D(() => {
25969
25989
  const {
25970
25990
  panel: t
25971
25991
  } = tt(), {
25972
25992
  style: e
25973
25993
  } = t;
25974
25994
  return /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(Je, { label: "Border", checked: e.border.enabled, onChange: (n) => e.border.setEnabled(n.currentTarget.checked) }) });
25975
- }), oI = D(() => {
25995
+ }), aI = D(() => {
25976
25996
  const {
25977
25997
  panel: t
25978
25998
  } = tt(), {
@@ -25993,18 +26013,18 @@ const VD = D(() => {
25993
26013
  }
25994
26014
  } });
25995
26015
  });
25996
- function aI() {
26016
+ function sI() {
25997
26017
  return /* @__PURE__ */ u(S, { sx: {
25998
26018
  height: "100%"
25999
26019
  }, children: [
26000
26020
  /* @__PURE__ */ i(R, { label: "Style", labelPosition: "center", variant: "dashed" }),
26001
- /* @__PURE__ */ i(iI, {}),
26002
- /* @__PURE__ */ i(R, { label: "Info", labelPosition: "center", variant: "dashed" }),
26003
26021
  /* @__PURE__ */ i(oI, {}),
26004
- /* @__PURE__ */ i(rI, {})
26022
+ /* @__PURE__ */ i(R, { label: "Info", labelPosition: "center", variant: "dashed" }),
26023
+ /* @__PURE__ */ i(aI, {}),
26024
+ /* @__PURE__ */ i(iI, {})
26005
26025
  ] });
26006
26026
  }
26007
- const sI = ({
26027
+ const lI = ({
26008
26028
  queryID: t
26009
26029
  }) => {
26010
26030
  const e = re(), {
@@ -26014,7 +26034,7 @@ const sI = ({
26014
26034
  return n === "loading" ? null : r ? /* @__PURE__ */ i(C, { color: "red", size: "md", align: "center", sx: {
26015
26035
  fontFamily: "monospace"
26016
26036
  }, children: r }) : o != null && o.stateMessage ? /* @__PURE__ */ i(C, { color: "gray", align: "center", children: o.stateMessage }) : null;
26017
- }, lI = {
26037
+ }, cI = {
26018
26038
  width: "fit-content",
26019
26039
  minWidth: "100%",
26020
26040
  tableLayout: "fixed",
@@ -26065,7 +26085,7 @@ function Gd({
26065
26085
  });
26066
26086
  return t.length === 0 ? /* @__PURE__ */ i(V, { sx: {
26067
26087
  height: "5em"
26068
- } }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(Ft, { sx: lI, children: [
26088
+ } }) : /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ u(Ft, { sx: cI, children: [
26069
26089
  /* @__PURE__ */ i("thead", { children: n.getHeaderGroups().map((r) => /* @__PURE__ */ i("tr", { children: r.headers.map((o) => /* @__PURE__ */ u("th", { style: {
26070
26090
  width: o.getSize()
26071
26091
  }, children: [
@@ -26112,12 +26132,12 @@ const ro = D(function({
26112
26132
  overflow: "auto"
26113
26133
  }, children: [
26114
26134
  /* @__PURE__ */ i(Cn, { visible: s }),
26115
- /* @__PURE__ */ i(sI, { queryID: e }),
26135
+ /* @__PURE__ */ i(lI, { queryID: e }),
26116
26136
  /* @__PURE__ */ i(Gd, { data: d })
26117
26137
  ] })
26118
26138
  ] });
26119
- }), cI = D(function() {
26120
- const e = ze(), n = re(), {
26139
+ }), dI = D(function() {
26140
+ const e = Le(), n = re(), {
26121
26141
  panel: r
26122
26142
  } = tt(), [o, a] = K(!1), s = (l) => {
26123
26143
  e.editor.setPath(["_QUERIES_", l]);
@@ -26133,7 +26153,7 @@ const ro = D(function({
26133
26153
  ] })
26134
26154
  ] })
26135
26155
  ] });
26136
- }), dI = D(() => {
26156
+ }), uI = D(() => {
26137
26157
  const {
26138
26158
  panel: t
26139
26159
  } = tt();
@@ -26184,7 +26204,7 @@ const ro = D(function({
26184
26204
  average: !1
26185
26205
  }
26186
26206
  };
26187
- class uI {
26207
+ class hI {
26188
26208
  constructor(e) {
26189
26209
  Y(this, "panel");
26190
26210
  Y(this, "selected");
@@ -26215,11 +26235,11 @@ class uI {
26215
26235
  }
26216
26236
  }
26217
26237
  }
26218
- function hI() {
26238
+ function pI() {
26219
26239
  const {
26220
26240
  panel: t
26221
26241
  } = tt();
26222
- return Tt(() => new uI(t), [t]);
26242
+ return Tt(() => new hI(t), [t]);
26223
26243
  }
26224
26244
  const Yd = Bn((t) => ({
26225
26245
  root: {
@@ -26251,7 +26271,7 @@ const Yd = Bn((t) => ({
26251
26271
  overflow: "auto",
26252
26272
  paddingRight: 10
26253
26273
  }
26254
- })), pI = z.forwardRef(function({
26274
+ })), fI = z.forwardRef(function({
26255
26275
  value: e,
26256
26276
  onChange: n,
26257
26277
  data: r,
@@ -26271,18 +26291,18 @@ const Yd = Bn((t) => ({
26271
26291
  /* @__PURE__ */ i(_t, { value: e.formatter, onChange: (l) => s("formatter", l) }),
26272
26292
  o && /* @__PURE__ */ i(kc, { value: e, onChange: n })
26273
26293
  ] });
26274
- }), fI = (t) => {
26294
+ }), mI = (t) => {
26275
26295
  const {
26276
26296
  uiModel: e
26277
26297
  } = t;
26278
26298
  return /* @__PURE__ */ i(S, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ i($, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
26279
- }, mI = D(fI), gI = ({
26299
+ }, gI = D(mI), bI = ({
26280
26300
  variable: t,
26281
26301
  data: e
26282
26302
  }) => /* @__PURE__ */ i(w, { style: {
26283
26303
  minHeight: 0,
26284
26304
  height: "calc(100% - 68px)"
26285
- }, children: /* @__PURE__ */ i(Vo, { withBorder: !0, p: "md", children: Tc(t, e) }) }), bI = D(gI), yI = (t) => {
26305
+ }, children: /* @__PURE__ */ i(Vo, { withBorder: !0, p: "md", children: Tc(t, e) }) }), yI = D(bI), xI = (t) => {
26286
26306
  const e = Tt(() => df(t.variable), [t.variable]), {
26287
26307
  classes: n
26288
26308
  } = Yd(), {
@@ -26296,23 +26316,23 @@ const Yd = Bn((t) => ({
26296
26316
  /* @__PURE__ */ i(Q, { variant: "filled", disabled: !e.changed, color: "primary", onClick: e.commit, children: /* @__PURE__ */ i(kn, { size: 18 }) }),
26297
26317
  /* @__PURE__ */ i(Q, { color: "red", onClick: () => t.uiModel.remove(t.variable), children: /* @__PURE__ */ i(Pn, { size: 18 }) })
26298
26318
  ] }),
26299
- /* @__PURE__ */ i(pI, { value: At(e.copy), onChange: e.update, data: r })
26319
+ /* @__PURE__ */ i(fI, { value: At(e.copy), onChange: e.update, data: r })
26300
26320
  ] }),
26301
- /* @__PURE__ */ i(bI, { variable: At(e.copy), data: r })
26321
+ /* @__PURE__ */ i(yI, { variable: At(e.copy), data: r })
26302
26322
  ] });
26303
- }, xI = D(yI), vI = () => {
26304
- const t = hI(), {
26323
+ }, vI = D(xI), wI = () => {
26324
+ const t = pI(), {
26305
26325
  classes: e
26306
26326
  } = Yd();
26307
26327
  return /* @__PURE__ */ u(w, { className: e.root, noWrap: !0, align: "start", children: [
26308
26328
  /* @__PURE__ */ i(Vo, { withBorder: !0, p: "md", className: "var-list-container", children: /* @__PURE__ */ u(S, { justify: "space-between", children: [
26309
26329
  /* @__PURE__ */ i(V, { className: "var-list-actions", children: /* @__PURE__ */ i($, { variant: "light", size: "sm", onClick: t.addNew, fullWidth: !0, children: "Add Variable" }) }),
26310
- /* @__PURE__ */ i(mI, { uiModel: t })
26330
+ /* @__PURE__ */ i(gI, { uiModel: t })
26311
26331
  ] }) }),
26312
- t.selected ? /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(xI, { uiModel: t, variable: t.selected }) }) : /* @__PURE__ */ i("span", { children: "Select or create a new variable on right side" })
26332
+ t.selected ? /* @__PURE__ */ i(G, { children: /* @__PURE__ */ i(vI, { uiModel: t, variable: t.selected }) }) : /* @__PURE__ */ i("span", { children: "Select or create a new variable on right side" })
26313
26333
  ] });
26314
- }, wI = D(vI);
26315
- function _I() {
26334
+ }, _I = D(wI);
26335
+ function CI() {
26316
26336
  const {
26317
26337
  vizManager: t
26318
26338
  } = Ot(Pt);
@@ -26325,7 +26345,7 @@ function _I() {
26325
26345
  return k.orderBy(e, [(n) => n.group, (n) => n.label], ["asc", "asc"]);
26326
26346
  }, [t]);
26327
26347
  }
26328
- const CI = D(({
26348
+ const SI = D(({
26329
26349
  value: t,
26330
26350
  submit: e
26331
26351
  }) => {
@@ -26333,17 +26353,17 @@ const CI = D(({
26333
26353
  W(() => {
26334
26354
  r(t);
26335
26355
  }, [t]);
26336
- const o = _I();
26356
+ const o = CI();
26337
26357
  return /* @__PURE__ */ i(P, { label: "Visualization", value: n, searchable: !0, onChange: r, data: o, rightSection: /* @__PURE__ */ i(Q, { disabled: !(t !== n), onClick: () => e(n), children: /* @__PURE__ */ i(be, { size: 20 }) }), maxDropdownHeight: 600 });
26338
26358
  }), Qs = [];
26339
- function SI(t, e) {
26359
+ function kI(t, e) {
26340
26360
  try {
26341
26361
  return t.resolveComponent(e).createConfig();
26342
26362
  } catch {
26343
26363
  return null;
26344
26364
  }
26345
26365
  }
26346
- function kI() {
26366
+ function TI() {
26347
26367
  const {
26348
26368
  data: t,
26349
26369
  panel: {
@@ -26373,12 +26393,12 @@ function kI() {
26373
26393
  setTitle: l
26374
26394
  }, x = Rd(f);
26375
26395
  try {
26376
- return h.resolveComponent(f.viz.type), /* @__PURE__ */ i(wi, { configure: x, children: /* @__PURE__ */ i(LT, { variables: e, setVizConf: n.setConf, panel: f, panelInfoEditor: m, vizManager: h, data: t }) });
26396
+ return h.resolveComponent(f.viz.type), /* @__PURE__ */ i(wi, { configure: x, children: /* @__PURE__ */ i(AT, { variables: e, setVizConf: n.setConf, panel: f, panelInfoEditor: m, vizManager: h, data: t }) });
26377
26397
  } catch (v) {
26378
26398
  return console.info(de(v, "message")), null;
26379
26399
  }
26380
26400
  }
26381
- const TI = D(() => {
26401
+ const DI = D(() => {
26382
26402
  const {
26383
26403
  data: t,
26384
26404
  panel: {
@@ -26389,7 +26409,7 @@ const TI = D(() => {
26389
26409
  } = Ot(Pt), r = z.useCallback((d) => {
26390
26410
  if (d === e.type)
26391
26411
  return;
26392
- const p = SI(n, d);
26412
+ const p = kI(n, d);
26393
26413
  e.setType(d), e.setConf(p || {});
26394
26414
  }, [e.type]), o = (d) => {
26395
26415
  try {
@@ -26400,7 +26420,7 @@ const TI = D(() => {
26400
26420
  }, a = z.useMemo(() => {
26401
26421
  var d;
26402
26422
  return (d = Qs.find((p) => p.value === e.type)) == null ? void 0 : d.Panel;
26403
- }, [e.type, Qs]), s = kI(), l = a ? Xr(a, {
26423
+ }, [e.type, Qs]), s = TI(), l = a ? Xr(a, {
26404
26424
  data: t,
26405
26425
  conf: e.conf,
26406
26426
  setConf: e.setConf
@@ -26409,7 +26429,7 @@ const TI = D(() => {
26409
26429
  height: "100%",
26410
26430
  overflow: "hidden"
26411
26431
  }, children: [
26412
- /* @__PURE__ */ i(CI, { submit: r, value: e.type }),
26432
+ /* @__PURE__ */ i(SI, { submit: r, value: e.type }),
26413
26433
  /* @__PURE__ */ u(ct, { children: [
26414
26434
  /* @__PURE__ */ i(S, { pb: 10, sx: {
26415
26435
  flexGrow: 1,
@@ -26419,7 +26439,7 @@ const TI = D(() => {
26419
26439
  !c && /* @__PURE__ */ i(il, { minRows: 20, label: "Config", value: JSON.stringify(e.conf, null, 2), onChange: o })
26420
26440
  ] })
26421
26441
  ] });
26422
- }), DI = D(({
26442
+ }), II = D(({
26423
26443
  panel: t,
26424
26444
  sourceViewID: e
26425
26445
  }) => {
@@ -26435,7 +26455,7 @@ const TI = D(() => {
26435
26455
  };
26436
26456
  return /* @__PURE__ */ u(G, { children: [
26437
26457
  /* @__PURE__ */ i($, { size: "xs", variant: "subtle", color: "blue", onClick: s, leftIcon: /* @__PURE__ */ i(xl, { size: 14 }), children: "Move into Another View" }),
26438
- /* @__PURE__ */ i(De, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
26458
+ /* @__PURE__ */ i(Ie, { opened: a, onClose: l, title: "Move panel into another view", zIndex: 320, children: /* @__PURE__ */ u(S, { sx: {
26439
26459
  maxHeight: "calc(100vh - 185px)",
26440
26460
  overflow: "hidden"
26441
26461
  }, children: [
@@ -26453,7 +26473,7 @@ const TI = D(() => {
26453
26473
  ] })
26454
26474
  ] }) })
26455
26475
  ] });
26456
- }), II = {
26476
+ }), MI = {
26457
26477
  root: {
26458
26478
  flexGrow: 1,
26459
26479
  width: "100%",
@@ -26476,15 +26496,15 @@ const TI = D(() => {
26476
26496
  height: "100%",
26477
26497
  overflow: "auto"
26478
26498
  }, children: t }),
26479
- /* @__PURE__ */ i(dI, {})
26499
+ /* @__PURE__ */ i(uI, {})
26480
26500
  ] });
26481
- function MI(t) {
26501
+ function $I(t) {
26482
26502
  return !["richText", "button"].includes(t);
26483
26503
  }
26484
- const $I = D(({
26504
+ const zI = D(({
26485
26505
  panel: t
26486
26506
  }) => {
26487
- const e = Gt(), n = ze(), r = re(), [o, a] = K("Data"), s = t.queries, c = MI(t.viz.type) && t.dataLoading, d = c || t.queryErrors.length > 0 || t.queryStateMessages.length > 0 || s.length === 0, p = n.editor.path[1];
26507
+ const e = Gt(), n = Le(), r = re(), [o, a] = K("Data"), s = t.queries, c = $I(t.viz.type) && t.dataLoading, d = c || t.queryErrors.length > 0 || t.queryStateMessages.length > 0 || s.length === 0, p = n.editor.path[1];
26488
26508
  W(() => {
26489
26509
  a((m) => d && m === "Visualization" ? "Data" : m);
26490
26510
  }, [t.id, d]);
@@ -26519,11 +26539,11 @@ const $I = D(({
26519
26539
  " "
26520
26540
  ] }),
26521
26541
  /* @__PURE__ */ u(w, { position: "right", noWrap: !0, children: [
26522
- /* @__PURE__ */ i(DI, { panel: t, sourceViewID: p }),
26542
+ /* @__PURE__ */ i(II, { panel: t, sourceViewID: p }),
26523
26543
  /* @__PURE__ */ i($, { size: "xs", variant: "subtle", color: "red", onClick: f, leftIcon: /* @__PURE__ */ i(Pn, { size: 14 }), children: "Delete This Panel" })
26524
26544
  ] })
26525
26545
  ] }),
26526
- /* @__PURE__ */ u(g, { value: o, onTabChange: a, keepMounted: !1, styles: II, children: [
26546
+ /* @__PURE__ */ u(g, { value: o, onTabChange: a, keepMounted: !1, styles: MI, children: [
26527
26547
  /* @__PURE__ */ u(g.List, { children: [
26528
26548
  /* @__PURE__ */ i(g.Tab, { value: "Data", disabled: c, children: "Data" }),
26529
26549
  /* @__PURE__ */ i(g.Tab, { value: "Panel", children: "Panel" }),
@@ -26533,15 +26553,15 @@ const $I = D(({
26533
26553
  ] }),
26534
26554
  /* @__PURE__ */ u(g.Panel, { value: "Data", children: [
26535
26555
  /* @__PURE__ */ i(Cn, { visible: c, exitTransitionDuration: 0 }),
26536
- /* @__PURE__ */ i(cI, {})
26556
+ /* @__PURE__ */ i(dI, {})
26537
26557
  ] }),
26538
- /* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(aI, {}) }) }),
26539
- /* @__PURE__ */ i(g.Panel, { value: "Variables", children: /* @__PURE__ */ i(wI, {}) }),
26540
- /* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(TI, {}) }) }) }),
26558
+ /* @__PURE__ */ i(g.Panel, { value: "Panel", children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(sI, {}) }) }),
26559
+ /* @__PURE__ */ i(g.Panel, { value: "Variables", children: /* @__PURE__ */ i(_I, {}) }),
26560
+ /* @__PURE__ */ i(g.Panel, { value: "Visualization", children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(Us, { children: /* @__PURE__ */ i(DI, {}) }) }) }),
26541
26561
  /* @__PURE__ */ i(g.Panel, { value: "Interactions", children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(tm, {}) }) })
26542
26562
  ] })
26543
26563
  ] });
26544
- }), zI = D(({
26564
+ }), LI = D(({
26545
26565
  viewID: t,
26546
26566
  panelID: e
26547
26567
  }) => {
@@ -26553,7 +26573,7 @@ const $I = D(({
26553
26573
  "] is not found"
26554
26574
  ] });
26555
26575
  const o = n.panels.findByID(e);
26556
- return o ? /* @__PURE__ */ i($I, { panel: o }) : /* @__PURE__ */ u(C, { size: 14, children: [
26576
+ return o ? /* @__PURE__ */ i(zI, { panel: o }) : /* @__PURE__ */ u(C, { size: 14, children: [
26557
26577
  "Panel by ID[",
26558
26578
  e,
26559
26579
  "] is not found"
@@ -26570,7 +26590,7 @@ const $I = D(({
26570
26590
  /* @__PURE__ */ i(as, { width: e, height: n, radius: "xs" })
26571
26591
  ] }), ar = ({
26572
26592
  value: t
26573
- }) => t === null || t === "" ? null : /* @__PURE__ */ i(Ve, { label: t, disabled: !t, multiline: !0, children: /* @__PURE__ */ i(Q, { children: /* @__PURE__ */ i(qn, { size: 14 }) }) }), LI = ({
26593
+ }) => t === null || t === "" ? null : /* @__PURE__ */ i(Ve, { label: t, disabled: !t, multiline: !0, children: /* @__PURE__ */ i(Q, { children: /* @__PURE__ */ i(qn, { size: 14 }) }) }), AI = ({
26574
26594
  column: t
26575
26595
  }) => {
26576
26596
  const {
@@ -26578,7 +26598,7 @@ const $I = D(({
26578
26598
  column_key_text: n
26579
26599
  } = t;
26580
26600
  return e ? /* @__PURE__ */ i(Ve, { label: n, disabled: !n, children: /* @__PURE__ */ i(lr, { children: e }) }) : null;
26581
- }, AI = D(({
26601
+ }, EI = D(({
26582
26602
  dataSource: t
26583
26603
  }) => {
26584
26604
  const {
@@ -26632,13 +26652,13 @@ const $I = D(({
26632
26652
  /* @__PURE__ */ i("td", { children: n.ordinal_position }),
26633
26653
  /* @__PURE__ */ i("td", { children: n.column_name }),
26634
26654
  /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(ar, { value: n.column_comment }) }),
26635
- /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(LI, { column: n }) }),
26655
+ /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(AI, { column: n }) }),
26636
26656
  /* @__PURE__ */ i("td", { children: n.column_type }),
26637
26657
  /* @__PURE__ */ i("td", { children: n.is_nullable }),
26638
26658
  /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(ar, { value: n.column_default }) })
26639
26659
  ] }, n.column_name)) })
26640
26660
  ] });
26641
- }), EI = D(({
26661
+ }), RI = D(({
26642
26662
  dataSource: t
26643
26663
  }) => {
26644
26664
  const {
@@ -26686,7 +26706,7 @@ const $I = D(({
26686
26706
  /* @__PURE__ */ i("td", { children: r.column_name })
26687
26707
  ] }, r.index_name)) })
26688
26708
  ] });
26689
- }), RI = D(({
26709
+ }), OI = D(({
26690
26710
  dataSource: t
26691
26711
  }) => {
26692
26712
  const {
@@ -26739,29 +26759,29 @@ const $I = D(({
26739
26759
  /* @__PURE__ */ i("td", { children: /* @__PURE__ */ i(ar, { value: r.comment }) })
26740
26760
  ] }, r.index_name)) })
26741
26761
  ] });
26742
- }), OI = D(({
26762
+ }), FI = D(({
26743
26763
  dataSource: t
26744
26764
  }) => {
26745
26765
  const {
26746
26766
  indexes: e
26747
26767
  } = t;
26748
- return e.loading || e.empty ? null : t.type === $e.MySQL ? /* @__PURE__ */ i(EI, { dataSource: t }) : t.type === $e.Postgresql ? /* @__PURE__ */ i(RI, { dataSource: t }) : null;
26749
- }), FI = D(({
26768
+ return e.loading || e.empty ? null : t.type === ze.MySQL ? /* @__PURE__ */ i(RI, { dataSource: t }) : t.type === ze.Postgresql ? /* @__PURE__ */ i(OI, { dataSource: t }) : null;
26769
+ }), PI = D(({
26750
26770
  dataSource: t
26751
26771
  }) => /* @__PURE__ */ u(S, { spacing: 40, pt: 10, sx: {
26752
26772
  flexGrow: 1,
26753
26773
  overflow: "auto",
26754
26774
  position: "relative"
26755
26775
  }, children: [
26756
- /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(AI, { dataSource: t }) }),
26757
- /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(OI, { dataSource: t }) })
26776
+ /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(EI, { dataSource: t }) }),
26777
+ /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(FI, { dataSource: t }) })
26758
26778
  ] }));
26759
- function PI({
26779
+ function VI({
26760
26780
  table_type: t
26761
26781
  }) {
26762
26782
  return t === "VIEW" ? /* @__PURE__ */ i(Sl, { size: 14 }) : t === "BASE TABLE" ? /* @__PURE__ */ i(fh, { size: 14 }) : null;
26763
26783
  }
26764
- const VI = D(({
26784
+ const NI = D(({
26765
26785
  dataSource: t
26766
26786
  }) => {
26767
26787
  const {
@@ -26772,17 +26792,17 @@ const VI = D(({
26772
26792
  ".mantine-NavLink-label": {
26773
26793
  fontFamily: "monospace"
26774
26794
  }
26775
- }, children: Object.entries(e.data).map(([n, r]) => /* @__PURE__ */ i(Yi, { label: n, icon: /* @__PURE__ */ i(Jr, { size: 14 }), defaultOpened: t.table_schema === n, pl: 0, childrenOffset: 14, children: r.map((o) => /* @__PURE__ */ i(Yi, { label: o.table_name, icon: /* @__PURE__ */ i(PI, { table_type: o.table_type }), onClick: () => {
26795
+ }, children: Object.entries(e.data).map(([n, r]) => /* @__PURE__ */ i(Yi, { label: n, icon: /* @__PURE__ */ i(Jr, { size: 14 }), defaultOpened: t.table_schema === n, pl: 0, childrenOffset: 14, children: r.map((o) => /* @__PURE__ */ i(Yi, { label: o.table_name, icon: /* @__PURE__ */ i(VI, { table_type: o.table_type }), onClick: () => {
26776
26796
  t.setKeywords(n, o.table_name);
26777
26797
  }, active: t.table_name === o.table_name }, o.table_name)) }, n)) });
26778
- }), NI = ({
26798
+ }), BI = ({
26779
26799
  visible: t
26780
26800
  }) => /* @__PURE__ */ i(V, { py: 10, sx: {
26781
26801
  width: "100%",
26782
26802
  height: "100%",
26783
26803
  overflow: "hidden",
26784
26804
  position: "relative"
26785
- }, children: /* @__PURE__ */ i(Cn, { visible: t }) }), BI = [{
26805
+ }, children: /* @__PURE__ */ i(Cn, { visible: t }) }), qI = [{
26786
26806
  label: "10",
26787
26807
  value: "10"
26788
26808
  }, {
@@ -26794,7 +26814,7 @@ const VI = D(({
26794
26814
  }, {
26795
26815
  label: "100",
26796
26816
  value: "100"
26797
- }], qI = {
26817
+ }], WI = {
26798
26818
  icon: {
26799
26819
  width: "50px",
26800
26820
  textAlign: "center"
@@ -26804,7 +26824,7 @@ const VI = D(({
26804
26824
  paddingLeft: "50px"
26805
26825
  }
26806
26826
  }
26807
- }, WI = D(({
26827
+ }, jI = D(({
26808
26828
  dataSource: t
26809
26829
  }) => {
26810
26830
  const {
@@ -26822,8 +26842,8 @@ const VI = D(({
26822
26842
  {
26823
26843
  icon: /* @__PURE__ */ i(C, { ta: "center", color: "dimmed", size: 14, children: "Limit" }),
26824
26844
  size: "xs",
26825
- styles: qI,
26826
- data: BI,
26845
+ styles: WI,
26846
+ data: qI,
26827
26847
  value: String(e.limit),
26828
26848
  onChange: (n) => e.setLimit(Number(n))
26829
26849
  }
@@ -26835,7 +26855,7 @@ const VI = D(({
26835
26855
  " rows"
26836
26856
  ] }) })
26837
26857
  ] });
26838
- }), jI = D(({
26858
+ }), GI = D(({
26839
26859
  dataSource: t
26840
26860
  }) => {
26841
26861
  const e = t.tableData;
@@ -26843,8 +26863,8 @@ const VI = D(({
26843
26863
  fontFamily: "monospace"
26844
26864
  }, children: "This table is empty" }) : e.error ? /* @__PURE__ */ i(C, { mt: 20, color: "red", size: "md", align: "center", sx: {
26845
26865
  fontFamily: "monospace"
26846
- }, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ i(NI, { visible: !0 }) : /* @__PURE__ */ u(ct, { children: [
26847
- /* @__PURE__ */ i(WI, { dataSource: t }),
26866
+ }, children: e.error }) : e.page === 1 && e.loading ? /* @__PURE__ */ i(BI, { visible: !0 }) : /* @__PURE__ */ u(ct, { children: [
26867
+ /* @__PURE__ */ i(jI, { dataSource: t }),
26848
26868
  /* @__PURE__ */ u(V, { py: 10, sx: {
26849
26869
  width: "100%",
26850
26870
  height: "calc(100% - 42px)",
@@ -26855,7 +26875,7 @@ const VI = D(({
26855
26875
  /* @__PURE__ */ i(Gd, { data: e.data })
26856
26876
  ] })
26857
26877
  ] });
26858
- }), GI = {
26878
+ }), YI = {
26859
26879
  root: {
26860
26880
  flexGrow: 1,
26861
26881
  overflow: "auto",
@@ -26867,7 +26887,7 @@ const VI = D(({
26867
26887
  tab: {
26868
26888
  minWidth: 120
26869
26889
  }
26870
- }, YI = D(({
26890
+ }, HI = D(({
26871
26891
  dataSource: t
26872
26892
  }) => (W(() => {
26873
26893
  t.loadTablesIfEmpty();
@@ -26880,20 +26900,20 @@ const VI = D(({
26880
26900
  flexGrow: 0,
26881
26901
  flexShrink: 0,
26882
26902
  position: "relative"
26883
- }, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(VI, { dataSource: t }) }) }),
26884
- /* @__PURE__ */ u(g, { defaultValue: "structure", styles: GI, children: [
26903
+ }, children: /* @__PURE__ */ i(ct, { children: /* @__PURE__ */ i(NI, { dataSource: t }) }) }),
26904
+ /* @__PURE__ */ u(g, { defaultValue: "structure", styles: YI, children: [
26885
26905
  /* @__PURE__ */ u(g.List, { children: [
26886
26906
  /* @__PURE__ */ i(g.Tab, { value: "structure", icon: /* @__PURE__ */ i(mh, { size: 14 }), children: "Structure" }),
26887
26907
  /* @__PURE__ */ i(g.Tab, { value: "data", icon: /* @__PURE__ */ i(Jr, { size: 14 }), children: "Data" })
26888
26908
  ] }),
26889
- /* @__PURE__ */ i(g.Panel, { value: "structure", children: /* @__PURE__ */ i(FI, { dataSource: t }) }),
26909
+ /* @__PURE__ */ i(g.Panel, { value: "structure", children: /* @__PURE__ */ i(PI, { dataSource: t }) }),
26890
26910
  /* @__PURE__ */ i(g.Panel, { value: "data", sx: {
26891
26911
  width: "100%",
26892
26912
  height: "calc(100% - 36px)",
26893
26913
  overflow: "hidden"
26894
- }, children: /* @__PURE__ */ i(jI, { dataSource: t }) })
26914
+ }, children: /* @__PURE__ */ i(GI, { dataSource: t }) })
26895
26915
  ] })
26896
- ] }))), HI = {
26916
+ ] }))), QI = {
26897
26917
  modal: {
26898
26918
  paddingLeft: "0px !important",
26899
26919
  paddingRight: "0px !important"
@@ -26916,7 +26936,7 @@ const VI = D(({
26916
26936
  }) => {
26917
26937
  const [n, r] = K(!1);
26918
26938
  return t.type === "http" ? null : /* @__PURE__ */ u(G, { children: [
26919
- /* @__PURE__ */ i(De, { opened: n, onClose: () => r(!1), title: /* @__PURE__ */ u(w, { position: "apart", sx: {
26939
+ /* @__PURE__ */ i(Ie, { opened: n, onClose: () => r(!1), title: /* @__PURE__ */ u(w, { position: "apart", sx: {
26920
26940
  flexGrow: 1
26921
26941
  }, children: [
26922
26942
  /* @__PURE__ */ i(C, { fw: 500, children: "Explorer Data Source" }),
@@ -26930,27 +26950,27 @@ const VI = D(({
26930
26950
  to: "red"
26931
26951
  }, children: t.type })
26932
26952
  ] })
26933
- ] }), zIndex: 320, size: "96vw", styles: HI, children: /* @__PURE__ */ i(V, { sx: {
26953
+ ] }), zIndex: 320, size: "96vw", styles: QI, children: /* @__PURE__ */ i(V, { sx: {
26934
26954
  height: "calc(100vh - 220px)"
26935
- }, children: /* @__PURE__ */ i(YI, { dataSource: t }) }) }),
26955
+ }, children: /* @__PURE__ */ i(HI, { dataSource: t }) }) }),
26936
26956
  /* @__PURE__ */ i($, { variant: "subtle", onClick: () => r(!0), px: 16, styles: {
26937
26957
  inner: {
26938
26958
  justifyContent: "flex-start"
26939
26959
  }
26940
26960
  }, ...e, children: "See Table Structure" })
26941
26961
  ] });
26942
- }), QI = Se(({
26962
+ }), UI = Se(({
26943
26963
  label: t,
26944
26964
  type: e,
26945
26965
  ...n
26946
26966
  }, r) => /* @__PURE__ */ u(w, { position: "apart", ref: r, ...n, children: [
26947
26967
  /* @__PURE__ */ i(C, { children: t }),
26948
26968
  /* @__PURE__ */ i(C, { children: e })
26949
- ] })), UI = D(({
26969
+ ] })), KI = D(({
26950
26970
  value: t,
26951
26971
  onChange: e
26952
26972
  }) => {
26953
- const n = ze(), {
26973
+ const n = Le(), {
26954
26974
  data: r = [],
26955
26975
  loading: o
26956
26976
  } = xn(Uo, {
@@ -26972,7 +26992,7 @@ const VI = D(({
26972
26992
  size: "xs",
26973
26993
  px: 10
26974
26994
  } })
26975
- ] }), itemComponent: QI, rightSection: c ? /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", children: c.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 280, styles: {
26995
+ ] }), itemComponent: UI, rightSection: c ? /* @__PURE__ */ i(C, { size: "xs", color: "dimmed", children: c.type }) : void 0, rightSectionWidth: 85, maxDropdownHeight: 280, styles: {
26976
26996
  root: {
26977
26997
  flex: 1
26978
26998
  },
@@ -26988,10 +27008,10 @@ const VI = D(({
26988
27008
  }
26989
27009
  }
26990
27010
  }, disabled: o, value: t.key, onChange: l });
26991
- }), KI = (t) => {
27011
+ }), XI = (t) => {
26992
27012
  const {
26993
27013
  queryModel: e
26994
- } = t, n = ze(), r = re(), a = r.findQueryUsage(e.id).length > 0, s = Gt(), l = () => {
27014
+ } = t, n = Le(), r = re(), a = r.findQueryUsage(e.id).length > 0, s = Gt(), l = () => {
26995
27015
  s.openConfirmModal({
26996
27016
  title: "Delete this query?",
26997
27017
  labels: {
@@ -27017,7 +27037,7 @@ const VI = D(({
27017
27037
  }, children: "Delete this Query" }) }) : /* @__PURE__ */ i($, { color: "red", size: "xs", onClick: l, leftIcon: /* @__PURE__ */ i(Pn, { size: 16 }), sx: {
27018
27038
  alignSelf: "flex-end"
27019
27039
  }, children: "Delete this Query" });
27020
- }, XI = D(KI), JI = D(({
27040
+ }, JI = D(XI), ZI = D(({
27021
27041
  queryModel: t
27022
27042
  }) => {
27023
27043
  const [e, n] = K(t.name);
@@ -27036,7 +27056,7 @@ const VI = D(({
27036
27056
  }, rightSection: /* @__PURE__ */ i(Q, { variant: "filled", color: "blue", size: "sm", onClick: () => t.setName(e), disabled: e === t.name, children: /* @__PURE__ */ i(kn, { size: 16 }) }), onBlur: () => {
27037
27057
  t.setName(e);
27038
27058
  } }),
27039
- /* @__PURE__ */ i(UI, { value: {
27059
+ /* @__PURE__ */ i(KI, { value: {
27040
27060
  type: t.type,
27041
27061
  key: t.key
27042
27062
  }, onChange: ({
@@ -27049,16 +27069,16 @@ const VI = D(({
27049
27069
  /* @__PURE__ */ i(sr, { label: "Run query when these are truthy", placeholder: "Always run this query on load", data: t.conditionOptions, value: [...t.run_by], onChange: t.setRunBy }),
27050
27070
  t.typedAsHTTP && /* @__PURE__ */ i(sr, { label: "Re-run query when these changed", placeholder: "Leave it empty to never re-run this query", data: t.conditionOptions, value: [...t.react_to], onChange: t.setReactTo }),
27051
27071
  /* @__PURE__ */ i(R, { mt: 20, mb: 10, variant: "dashed" }),
27052
- /* @__PURE__ */ i(XI, { queryModel: t })
27072
+ /* @__PURE__ */ i(JI, { queryModel: t })
27053
27073
  ] }) });
27054
27074
  });
27055
- function ZI() {
27075
+ function eM() {
27056
27076
  const [t, {
27057
27077
  open: e,
27058
27078
  close: n
27059
27079
  }] = Tl(!1);
27060
27080
  return /* @__PURE__ */ u(G, { children: [
27061
- /* @__PURE__ */ i(De, { opened: t, onClose: n, title: "About FunctionUtils", zIndex: 320, children: /* @__PURE__ */ i(yi, { value: yp, styles: {
27081
+ /* @__PURE__ */ i(Ie, { opened: t, onClose: n, title: "About FunctionUtils", zIndex: 320, children: /* @__PURE__ */ i(yi, { value: yp, styles: {
27062
27082
  root: {
27063
27083
  border: "none"
27064
27084
  },
@@ -27072,7 +27092,7 @@ function ZI() {
27072
27092
  /* @__PURE__ */ i($, { variant: "light", color: "violet", size: "xs", onClick: e, leftIcon: /* @__PURE__ */ i(qn, { size: 16 }), children: "About parameter 'utils'" })
27073
27093
  ] });
27074
27094
  }
27075
- const eM = ({
27095
+ const tM = ({
27076
27096
  value: t,
27077
27097
  onChange: e
27078
27098
  }) => /* @__PURE__ */ i(V, { sx: {
@@ -27113,7 +27133,7 @@ const eM = ({
27113
27133
  flexShrink: 0,
27114
27134
  flexGrow: 0
27115
27135
  }, children: [
27116
- /* @__PURE__ */ i(w, { position: "left", children: /* @__PURE__ */ i(ZI, {}) }),
27136
+ /* @__PURE__ */ i(w, { position: "left", children: /* @__PURE__ */ i(eM, {}) }),
27117
27137
  /* @__PURE__ */ u(w, { position: "right", children: [
27118
27138
  /* @__PURE__ */ i($, { onClick: d, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ i(gh, { size: 16 }), children: "Reset to default" }),
27119
27139
  /* @__PURE__ */ i($, { onClick: c, color: "red", size: "xs", disabled: !p, leftIcon: /* @__PURE__ */ i(wl, { size: 16 }), children: "Revert Changes" }),
@@ -27121,10 +27141,10 @@ const eM = ({
27121
27141
  ] })
27122
27142
  ] }),
27123
27143
  /* @__PURE__ */ i(C, { size: 14, children: n }),
27124
- /* @__PURE__ */ i(eM, { value: a, onChange: s })
27144
+ /* @__PURE__ */ i(tM, { value: a, onChange: s })
27125
27145
  ] });
27126
27146
  });
27127
- function tM({
27147
+ function nM({
27128
27148
  content: t
27129
27149
  }) {
27130
27150
  return /* @__PURE__ */ u(rt, { width: "60vw", shadow: "md", children: [
@@ -27132,8 +27152,8 @@ function tM({
27132
27152
  /* @__PURE__ */ i(rt.Dropdown, { children: /* @__PURE__ */ i(_n, { language: "sql", noCopy: !0, withLineNumbers: !0, children: t }) })
27133
27153
  ] });
27134
27154
  }
27135
- const nM = D(() => {
27136
- const e = [...ze().globalSQLSnippets.list];
27155
+ const rM = D(() => {
27156
+ const e = [...Le().globalSQLSnippets.list];
27137
27157
  return e.length === 0 ? null : /* @__PURE__ */ u(Ft, { horizontalSpacing: "xs", verticalSpacing: "xs", fontSize: "sm", highlightOnHover: !0, children: [
27138
27158
  /* @__PURE__ */ i("thead", { children: /* @__PURE__ */ u("tr", { children: [
27139
27159
  /* @__PURE__ */ i("th", { children: "Key" }),
@@ -27146,11 +27166,11 @@ const nM = D(() => {
27146
27166
  } = n;
27147
27167
  return /* @__PURE__ */ u("tr", { children: [
27148
27168
  /* @__PURE__ */ i("td", { children: r }),
27149
- /* @__PURE__ */ i("td", { width: 200, children: /* @__PURE__ */ i(tM, { content: o }) })
27169
+ /* @__PURE__ */ i("td", { width: 200, children: /* @__PURE__ */ i(nM, { content: o }) })
27150
27170
  ] }, r);
27151
27171
  }) })
27152
27172
  ] });
27153
- }), rM = `
27173
+ }), iM = `
27154
27174
  -- You may reference query variables in SQL or VizConfig.
27155
27175
  SELECT *
27156
27176
  FROM commit
@@ -27167,7 +27187,7 @@ WHERE
27167
27187
  showSQLSnippets: e = !0,
27168
27188
  sx: n = {}
27169
27189
  }) {
27170
- const r = ze(), o = re(), a = r.context.current, s = (() => {
27190
+ const r = Le(), o = re(), a = r.context.current, s = (() => {
27171
27191
  const l = {
27172
27192
  context: {
27173
27193
  ...o.mock_context.current,
@@ -27188,19 +27208,19 @@ WHERE
27188
27208
  ] }),
27189
27209
  /* @__PURE__ */ i(g.Panel, { value: "guide", pt: "xs", children: /* @__PURE__ */ i(_n, { language: "sql", sx: {
27190
27210
  width: "100%"
27191
- }, noCopy: !0, colorScheme: "dark", children: rM }) }),
27211
+ }, noCopy: !0, colorScheme: "dark", children: iM }) }),
27192
27212
  /* @__PURE__ */ i(g.Panel, { value: "local_query_vars", pt: "xs", children: /* @__PURE__ */ i(_n, { language: "json", sx: {
27193
27213
  width: "100%"
27194
27214
  }, noCopy: !0, colorScheme: "dark", children: s }) }),
27195
27215
  /* @__PURE__ */ i(g.Panel, { value: "global_sql_snippets", pt: "xs", children: /* @__PURE__ */ u(S, { spacing: 10, children: [
27196
27216
  /* @__PURE__ */ i(el, { icon: /* @__PURE__ */ i(ds, { size: 16 }), title: "Global SQL Snippets", children: "SQL snippets worth sharing between dashboards are managed in System Settings by admins." }),
27197
- /* @__PURE__ */ i(nM, {})
27217
+ /* @__PURE__ */ i(rM, {})
27198
27218
  ] }) })
27199
27219
  ] }) });
27200
27220
  }), qa = D(() => {
27201
27221
  const [t, e] = K(!1);
27202
27222
  return /* @__PURE__ */ u(G, { children: [
27203
- /* @__PURE__ */ i(De, { opened: t, onClose: () => e(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ i(Ud, {}) }),
27223
+ /* @__PURE__ */ i(Ie, { opened: t, onClose: () => e(!1), title: "Query Variables", zIndex: 320, size: "800px", children: /* @__PURE__ */ i(Ud, {}) }),
27204
27224
  /* @__PURE__ */ i($, { variant: "subtle", onClick: () => e(!0), px: 16, styles: {
27205
27225
  inner: {
27206
27226
  justifyContent: "flex-start"
@@ -27212,7 +27232,7 @@ WHERE
27212
27232
  `),
27213
27233
  post: ["function process_result(res, utils) {", " // your code goes here", " return data", "}"].join(`
27214
27234
  `)
27215
- }, iM = D(({
27235
+ }, oM = D(({
27216
27236
  queryModel: t
27217
27237
  }) => t.typedAsHTTP ? /* @__PURE__ */ u(g, { defaultValue: "pre_process", orientation: "vertical", sx: {
27218
27238
  flexGrow: 1
@@ -27226,11 +27246,11 @@ WHERE
27226
27246
  position: "relative"
27227
27247
  }, p: "sm", children: /* @__PURE__ */ i(Kr, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: Ks.pre }) }),
27228
27248
  /* @__PURE__ */ i(g.Panel, { value: "post_process", p: "sm", children: /* @__PURE__ */ i(Kr, { label: "", value: t.post_process, onChange: t.setPostProcess, defaultValue: Ks.post }) })
27229
- ] }) : null), oM = D(({
27249
+ ] }) : null), aM = D(({
27230
27250
  queryID: t,
27231
27251
  usage: e
27232
27252
  }) => {
27233
- const n = ze().editor, r = (a) => {
27253
+ const n = Le().editor, r = (a) => {
27234
27254
  if (a.type === "filter") {
27235
27255
  n.setPath(["_FILTERS_", a.id]);
27236
27256
  return;
@@ -27286,7 +27306,7 @@ WHERE
27286
27306
  readOnly: s || !e,
27287
27307
  "semanticHighlighting.enabled": !0
27288
27308
  } });
27289
- }, aM = ({
27309
+ }, sM = ({
27290
27310
  value: t,
27291
27311
  height: e = "200px",
27292
27312
  defaultLanguage: n = "sql"
@@ -27299,17 +27319,17 @@ WHERE
27299
27319
  enabled: !1
27300
27320
  },
27301
27321
  readOnly: !0
27302
- } }), sM = D(({
27322
+ } }), lM = D(({
27303
27323
  value: t
27304
27324
  }) => {
27305
27325
  const n = re().payloadForSQL, r = z.useMemo(() => Qo(t, n), [t, n]);
27306
- return /* @__PURE__ */ i(aM, { height: "100%", value: r });
27326
+ return /* @__PURE__ */ i(sM, { height: "100%", value: r });
27307
27327
  }), Xs = {
27308
27328
  pre: ["function process_request({ context, filters, sql }, utils) {", " // modify and return sql", " return sql", "}"].join(`
27309
27329
  `),
27310
27330
  post: ["function process_result(data, utils) {", " // process data and return the result", " return data", "}"].join(`
27311
27331
  `)
27312
- }, lM = D(({
27332
+ }, cM = D(({
27313
27333
  queryModel: t
27314
27334
  }) => {
27315
27335
  const [e, n] = z.useState(t.sql);
@@ -27342,7 +27362,7 @@ WHERE
27342
27362
  /* @__PURE__ */ i(g.Panel, { value: "Edit", sx: {
27343
27363
  position: "relative"
27344
27364
  }, p: "sm", children: /* @__PURE__ */ i(Wa, { height: "100%", value: e, onChange: n, theme: "sql-dark", defaultLanguage: "sql" }) }),
27345
- /* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(sM, { value: t.sql }) }),
27365
+ /* @__PURE__ */ i(g.Panel, { value: "Preview", p: 0, pl: 4, children: /* @__PURE__ */ i(lM, { value: t.sql }) }),
27346
27366
  /* @__PURE__ */ i(g.Panel, { value: "pre_process", sx: {
27347
27367
  position: "relative"
27348
27368
  }, p: "sm", children: /* @__PURE__ */ i(Kr, { label: "", value: t.pre_process, onChange: t.setPreProcess, defaultValue: Xs.pre }) }),
@@ -27352,7 +27372,7 @@ WHERE
27352
27372
  height: "calc(100% - 44px)",
27353
27373
  // Tabs.List
27354
27374
  padding: 0
27355
- }, cM = D(({
27375
+ }, dM = D(({
27356
27376
  queryModel: t
27357
27377
  }) => {
27358
27378
  const e = re(), n = M(() => t.datasource ? t.typedAsHTTP ? "HTTP" : "SQL" : "Configurations", [t.datasource, t.typedAsHTTP]), [r, o] = K(n);
@@ -27372,13 +27392,13 @@ WHERE
27372
27392
  /* @__PURE__ */ i(g.Tab, { value: "Data", disabled: !t.datasource, children: /* @__PURE__ */ i(Ve, { label: "Need to pick a Data Source first", disabled: t.datasource, withinPortal: !0, children: /* @__PURE__ */ i(C, { children: "Data" }) }) }),
27373
27393
  /* @__PURE__ */ i(g.Tab, { value: "Usage", disabled: s, children: /* @__PURE__ */ i(Ve, { label: "This query is not used for any filter or panel", disabled: !s, withinPortal: !0, children: /* @__PURE__ */ i(C, { children: "Usage" }) }) })
27374
27394
  ] }),
27375
- /* @__PURE__ */ i(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ i(JI, { queryModel: t }) }),
27395
+ /* @__PURE__ */ i(g.Panel, { value: "Configurations", pt: 0, p: 0, children: /* @__PURE__ */ i(ZI, { queryModel: t }) }),
27376
27396
  t.typedAsSQL && /* @__PURE__ */ i(g.Panel, { value: "SQL", sx: $r, children: /* @__PURE__ */ i(S, { sx: {
27377
27397
  height: "100%"
27378
- }, children: /* @__PURE__ */ i(lM, { queryModel: t }) }) }),
27398
+ }, children: /* @__PURE__ */ i(cM, { queryModel: t }) }) }),
27379
27399
  t.typedAsHTTP && /* @__PURE__ */ i(g.Panel, { value: "HTTP", sx: $r, children: /* @__PURE__ */ i(S, { sx: {
27380
27400
  height: "100%"
27381
- }, children: /* @__PURE__ */ i(iM, { queryModel: t }) }) }),
27401
+ }, children: /* @__PURE__ */ i(oM, { queryModel: t }) }) }),
27382
27402
  /* @__PURE__ */ i(g.Panel, { value: "Data", sx: {
27383
27403
  ...$r,
27384
27404
  overflow: "hidden"
@@ -27386,21 +27406,21 @@ WHERE
27386
27406
  /* @__PURE__ */ i(g.Panel, { value: "Usage", sx: {
27387
27407
  ...$r,
27388
27408
  overflow: "hidden"
27389
- }, children: /* @__PURE__ */ i(oM, { queryID: t.id, usage: a }) })
27409
+ }, children: /* @__PURE__ */ i(aM, { queryID: t.id, usage: a }) })
27390
27410
  ] }) });
27391
- }), dM = D(({
27411
+ }), uM = D(({
27392
27412
  id: t
27393
27413
  }) => {
27394
27414
  const n = re().queries.findByID(t);
27395
27415
  return t === "" ? null : n ? /* @__PURE__ */ i(S, { sx: {
27396
27416
  height: "100%"
27397
- }, spacing: "sm", children: /* @__PURE__ */ i(cM, { queryModel: n }) }) : /* @__PURE__ */ i(C, { size: 14, color: "red", children: "Invalid Query ID" });
27398
- }), uM = D(({
27417
+ }, spacing: "sm", children: /* @__PURE__ */ i(dM, { queryModel: n }) }) : /* @__PURE__ */ i(C, { size: 14, color: "red", children: "Invalid Query ID" });
27418
+ }), hM = D(({
27399
27419
  value: t
27400
27420
  }) => {
27401
27421
  const n = re().payloadForSQL, r = M(() => Qo(t, n), [t, n]);
27402
27422
  return /* @__PURE__ */ i(Wa, { height: "100%", value: r });
27403
- }), hM = D(({
27423
+ }), pM = D(({
27404
27424
  item: t,
27405
27425
  remove: e,
27406
27426
  onKeyChanged: n
@@ -27472,13 +27492,13 @@ WHERE
27472
27492
  }, children: /* @__PURE__ */ i(be, { size: 18 }) })
27473
27493
  ] }),
27474
27494
  /* @__PURE__ */ i(g.Panel, { value: "SQL", pt: "sm", children: /* @__PURE__ */ i(Wa, { height: "100%", value: p, onChange: h, defaultLanguage: "sql", theme: "sql-dark" }) }),
27475
- /* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(uM, { value: p }) })
27495
+ /* @__PURE__ */ i(g.Panel, { value: "Preview", pt: "sm", children: /* @__PURE__ */ i(hM, { value: p }) })
27476
27496
  ] })
27477
27497
  ] });
27478
- }), pM = D(({
27498
+ }), fM = D(({
27479
27499
  id: t
27480
27500
  }) => {
27481
- const e = ze(), n = re(), r = M(() => n.sqlSnippets.findByKey(t), [t]);
27501
+ const e = Le(), n = re(), r = M(() => n.sqlSnippets.findByKey(t), [t]);
27482
27502
  if (!t)
27483
27503
  return null;
27484
27504
  if (!r)
@@ -27490,17 +27510,17 @@ WHERE
27490
27510
  const o = () => {
27491
27511
  e.editor.setPath(["_SQL_SNIPPETS_", ""]);
27492
27512
  };
27493
- return /* @__PURE__ */ i(hM, { item: r, remove: () => {
27513
+ return /* @__PURE__ */ i(pM, { item: r, remove: () => {
27494
27514
  n.sqlSnippets.removeByKey(t), o();
27495
27515
  }, onKeyChanged: (l) => {
27496
27516
  e.editor.setPath(["_SQL_SNIPPETS_", l]);
27497
27517
  } });
27498
- }), fM = D(({
27518
+ }), mM = D(({
27499
27519
  view: t
27500
27520
  }) => !t || t.type !== se.Division ? null : /* @__PURE__ */ u(S, { children: [
27501
27521
  /* @__PURE__ */ i(R, { mt: 8, mb: 0, label: "Division settings", labelPosition: "center" }),
27502
27522
  /* @__PURE__ */ i(C, { align: "center", size: "xs", color: "dimmed", children: "Under construction" })
27503
- ] })), mM = [{
27523
+ ] })), gM = [{
27504
27524
  value: "default",
27505
27525
  label: "Default"
27506
27526
  }, {
@@ -27509,13 +27529,13 @@ WHERE
27509
27529
  }, {
27510
27530
  value: "pills",
27511
27531
  label: "Pills"
27512
- }], gM = [{
27532
+ }], bM = [{
27513
27533
  value: "horizontal",
27514
27534
  label: "Horizontal"
27515
27535
  }, {
27516
27536
  value: "vertical",
27517
27537
  label: "Vertical"
27518
- }], bM = D(({
27538
+ }], yM = D(({
27519
27539
  view: t
27520
27540
  }) => {
27521
27541
  if (!t || t.type !== se.Tabs)
@@ -27523,11 +27543,11 @@ WHERE
27523
27543
  const e = t.config;
27524
27544
  return /* @__PURE__ */ u(S, { children: [
27525
27545
  /* @__PURE__ */ i(R, { mt: 8, mb: 0, label: "Tabs settings", labelPosition: "center" }),
27526
- /* @__PURE__ */ i(P, { label: "Variant", value: e.variant, onChange: e.setVariant, data: mM }),
27527
- /* @__PURE__ */ i(P, { label: "Orientation", value: e.orientation, onChange: e.setOrientation, data: gM }),
27546
+ /* @__PURE__ */ i(P, { label: "Variant", value: e.variant, onChange: e.setVariant, data: gM }),
27547
+ /* @__PURE__ */ i(P, { label: "Orientation", value: e.orientation, onChange: e.setOrientation, data: bM }),
27528
27548
  /* @__PURE__ */ i(Je, { label: "Grow Tabs", checked: e.grow, onChange: (n) => e.setGrow(n.currentTarget.checked) })
27529
27549
  ] });
27530
- }), yM = ({
27550
+ }), xM = ({
27531
27551
  disabled: t,
27532
27552
  value: e,
27533
27553
  onChange: n
@@ -27543,7 +27563,7 @@ WHERE
27543
27563
  },
27544
27564
  readOnly: t
27545
27565
  } })
27546
- ] }), xM = ({
27566
+ ] }), vM = ({
27547
27567
  value: t,
27548
27568
  onChange: e
27549
27569
  }) => {
@@ -27579,9 +27599,9 @@ WHERE
27579
27599
  /* @__PURE__ */ i(Q, { size: "lg", color: "blue", variant: "filled", mt: 26, onClick: r, sx: {
27580
27600
  flexGrow: 0
27581
27601
  }, children: /* @__PURE__ */ i(Ll, { size: 14 }) }),
27582
- /* @__PURE__ */ i(De, { size: 800, title: "Customize modal title", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
27602
+ /* @__PURE__ */ i(Ie, { size: 800, title: "Customize modal title", opened: n, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: n && /* @__PURE__ */ u(S, { children: [
27583
27603
  /* @__PURE__ */ i(we, { mt: 10, label: "Enabled", checked: a.enabled, onChange: (f) => l(f.currentTarget.checked) }),
27584
- /* @__PURE__ */ i(yM, { value: a.func_content, onChange: p, disabled: !a.enabled }),
27604
+ /* @__PURE__ */ i(xM, { value: a.func_content, onChange: p, disabled: !a.enabled }),
27585
27605
  /* @__PURE__ */ u(w, { position: "apart", children: [
27586
27606
  /* @__PURE__ */ i($, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ i(It, { size: 20 }), children: "Rest" }),
27587
27607
  /* @__PURE__ */ u(w, { position: "right", children: [
@@ -27591,7 +27611,7 @@ WHERE
27591
27611
  ] })
27592
27612
  ] }) })
27593
27613
  ] });
27594
- }, vM = D(({
27614
+ }, wM = D(({
27595
27615
  view: t
27596
27616
  }) => {
27597
27617
  if (!t || t.type !== se.Modal)
@@ -27603,20 +27623,20 @@ WHERE
27603
27623
  /* @__PURE__ */ i(A, { label: "Modal Title", value: n, onChange: k.noop, disabled: !0, sx: {
27604
27624
  flexGrow: 1
27605
27625
  } }),
27606
- /* @__PURE__ */ i(xM, { value: e.custom_modal_title, onChange: e.custom_modal_title.replace })
27626
+ /* @__PURE__ */ i(vM, { value: e.custom_modal_title, onChange: e.custom_modal_title.replace })
27607
27627
  ] }),
27608
27628
  /* @__PURE__ */ u(w, { grow: !0, children: [
27609
27629
  /* @__PURE__ */ i(A, { label: "Width", value: e.width, onChange: (r) => e.setWidth(r.currentTarget.value), placeholder: "600px / 50vw" }),
27610
27630
  /* @__PURE__ */ i(A, { label: "Height", value: e.height, onChange: (r) => e.setHeight(r.currentTarget.value), placeholder: "600px / 50vw" })
27611
27631
  ] })
27612
27632
  ] });
27613
- }), wM = D(({
27633
+ }), _M = D(({
27614
27634
  view: t
27615
27635
  }) => /* @__PURE__ */ u(G, { children: [
27616
- /* @__PURE__ */ i(fM, { view: t }),
27617
- /* @__PURE__ */ i(vM, { view: t }),
27618
- /* @__PURE__ */ i(bM, { view: t })
27619
- ] })), _M = [{
27636
+ /* @__PURE__ */ i(mM, { view: t }),
27637
+ /* @__PURE__ */ i(wM, { view: t }),
27638
+ /* @__PURE__ */ i(yM, { view: t })
27639
+ ] })), CM = [{
27620
27640
  label: "Division",
27621
27641
  value: se.Division
27622
27642
  }, {
@@ -27625,7 +27645,7 @@ WHERE
27625
27645
  }, {
27626
27646
  label: "Tabs",
27627
27647
  value: se.Tabs
27628
- }], CM = D(({
27648
+ }], SM = D(({
27629
27649
  view: t
27630
27650
  }) => t ? /* @__PURE__ */ u(S, { sx: {
27631
27651
  position: "relative"
@@ -27633,12 +27653,12 @@ WHERE
27633
27653
  /* @__PURE__ */ i(A, { label: "Name", value: t.name, onChange: (e) => {
27634
27654
  t.setName(e.currentTarget.value);
27635
27655
  } }),
27636
- /* @__PURE__ */ i(P, { label: "Type", withinPortal: !0, zIndex: 320, value: t.type, onChange: t.setType, data: _M }),
27637
- /* @__PURE__ */ i(wM, { view: t })
27638
- ] }) : null), SM = D(({
27656
+ /* @__PURE__ */ i(P, { label: "Type", withinPortal: !0, zIndex: 320, value: t.type, onChange: t.setType, data: CM }),
27657
+ /* @__PURE__ */ i(_M, { view: t })
27658
+ ] }) : null), kM = D(({
27639
27659
  id: t
27640
27660
  }) => {
27641
- const e = Gt(), n = ze(), r = re();
27661
+ const e = Gt(), n = Le(), r = re();
27642
27662
  if (t === "")
27643
27663
  return null;
27644
27664
  const o = r.views.findByID(t);
@@ -27673,37 +27693,37 @@ WHERE
27673
27693
  flexGrow: 1,
27674
27694
  maxHeight: "calc(100% - 52px)",
27675
27695
  overflow: "auto"
27676
- }, children: /* @__PURE__ */ i(CM, { view: o }) })
27696
+ }, children: /* @__PURE__ */ i(SM, { view: o }) })
27677
27697
  ] });
27678
27698
  });
27679
- function kM(t) {
27699
+ function TM(t) {
27680
27700
  return t.length === 1 && t[0] === "_QUERY_VARS_";
27681
27701
  }
27682
- function TM(t) {
27702
+ function DM(t) {
27683
27703
  return t.length === 1 && t[0] === "_MOCK_CONTEXT_";
27684
27704
  }
27685
- function DM(t) {
27705
+ function IM(t) {
27686
27706
  return t.length === 2 && t[0] === "_FILTERS_";
27687
27707
  }
27688
- function IM(t) {
27708
+ function MM(t) {
27689
27709
  return t.length === 2 && t[0] === "_SQL_SNIPPETS_";
27690
27710
  }
27691
- function MM(t) {
27711
+ function $M(t) {
27692
27712
  return t.length === 2 && t[0] === "_QUERIES_";
27693
27713
  }
27694
- function $M(t) {
27714
+ function zM(t) {
27695
27715
  return t.length === 2 && t[0] === "_VIEWS_";
27696
27716
  }
27697
- function zM(t) {
27717
+ function LM(t) {
27698
27718
  return t.length === 4 && t[0] === "_VIEWS_" && t[2] === "_PANELS_";
27699
27719
  }
27700
- const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27720
+ const AM = D(() => /* @__PURE__ */ i(S, { sx: {
27701
27721
  height: "100%"
27702
- }, p: "sm", children: /* @__PURE__ */ i(Ud, {}) })), AM = D(() => {
27703
- const t = ze().editor, e = t.path;
27704
- return kM(e) ? /* @__PURE__ */ i(LM, {}) : TM(e) ? /* @__PURE__ */ i(nI, {}) : DM(e) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(tI, { id: e[1] }) }) : IM(e) ? /* @__PURE__ */ i(pM, { id: e[1] }) : MM(e) ? /* @__PURE__ */ i(dM, { id: e[1] }) : $M(e) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(SM, { id: e[1] }) }) : zM(e) ? /* @__PURE__ */ i(zI, { viewID: e[1], panelID: e[3] }) : /* @__PURE__ */ i(V, { children: t.path });
27705
- }), EM = D(() => /* @__PURE__ */ i(AM, {})), RM = D(() => {
27706
- const t = ze();
27722
+ }, p: "sm", children: /* @__PURE__ */ i(Ud, {}) })), EM = D(() => {
27723
+ const t = Le().editor, e = t.path;
27724
+ return TM(e) ? /* @__PURE__ */ i(AM, {}) : DM(e) ? /* @__PURE__ */ i(rI, {}) : IM(e) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(nI, { id: e[1] }) }) : MM(e) ? /* @__PURE__ */ i(fM, { id: e[1] }) : $M(e) ? /* @__PURE__ */ i(uM, { id: e[1] }) : zM(e) ? /* @__PURE__ */ i(V, { p: "xs", pl: 20, children: /* @__PURE__ */ i(kM, { id: e[1] }) }) : LM(e) ? /* @__PURE__ */ i(LI, { viewID: e[1], panelID: e[3] }) : /* @__PURE__ */ i(V, { children: t.path });
27725
+ }), RM = D(() => /* @__PURE__ */ i(EM, {})), OM = D(() => {
27726
+ const t = Le();
27707
27727
  return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
27708
27728
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
27709
27729
  id: n,
@@ -27724,7 +27744,7 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27724
27744
  justifyContent: "flex-start"
27725
27745
  }
27726
27746
  }, children: "Add a Filter" });
27727
- }), OM = D(({
27747
+ }), FM = D(({
27728
27748
  parentID: t
27729
27749
  }) => {
27730
27750
  const e = re();
@@ -27739,13 +27759,13 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27739
27759
  justifyContent: "flex-start"
27740
27760
  }
27741
27761
  }, children: "Add a Panel" }) : null;
27742
- }), FM = D(() => {
27743
- const t = ze();
27762
+ }), PM = D(() => {
27763
+ const t = Le();
27744
27764
  return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
27745
27765
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
27746
27766
  id: n,
27747
27767
  name: n,
27748
- type: $e.Postgresql,
27768
+ type: ze.Postgresql,
27749
27769
  key: "",
27750
27770
  sql: ""
27751
27771
  };
@@ -27758,8 +27778,8 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27758
27778
  justifyContent: "flex-start"
27759
27779
  }
27760
27780
  }, children: "Add a Query" });
27761
- }), PM = D(() => {
27762
- const t = ze();
27781
+ }), VM = D(() => {
27782
+ const t = Le();
27763
27783
  return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => {
27764
27784
  const n = (/* @__PURE__ */ new Date()).getTime().toString(), r = {
27765
27785
  key: n,
@@ -27774,7 +27794,7 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27774
27794
  justifyContent: "flex-start"
27775
27795
  }
27776
27796
  }, children: "Add a SQL Snippet" });
27777
- }), VM = D(() => {
27797
+ }), NM = D(() => {
27778
27798
  const t = re();
27779
27799
  return /* @__PURE__ */ i($, { variant: "subtle", leftIcon: /* @__PURE__ */ i(Yt, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: t.views.addARandomNewView, sx: {
27780
27800
  width: "100%",
@@ -27784,24 +27804,24 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27784
27804
  justifyContent: "flex-start"
27785
27805
  }
27786
27806
  }, children: "Add a View" });
27787
- }), NM = D(({
27807
+ }), BM = D(({
27788
27808
  action_type: t,
27789
27809
  parentID: e
27790
- }) => (re(), t === "_Add_A_Filter_" ? /* @__PURE__ */ i(RM, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ i(PM, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ i(FM, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ i(VM, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ i(OM, { parentID: e }) : null)), Kd = D(({
27810
+ }) => (re(), t === "_Add_A_Filter_" ? /* @__PURE__ */ i(OM, {}) : t === "_Add_A_SQL_SNIPPET_" ? /* @__PURE__ */ i(VM, {}) : t === "_Add_A_QUERY_" ? /* @__PURE__ */ i(PM, {}) : t === "_Add_A_VIEW_" ? /* @__PURE__ */ i(NM, {}) : t === "_Add_A_PANEL_" ? /* @__PURE__ */ i(FM, { parentID: e }) : null)), Kd = D(({
27791
27811
  option: t
27792
27812
  }) => {
27793
27813
  var d;
27794
- const e = ze().editor, n = e.isOptionActive, r = n(e.path, t), o = e.isOptionOpened, a = e.navigate, s = o(t), [l, c] = K(s);
27814
+ const e = Le().editor, n = e.isOptionActive, r = n(e.path, t), o = e.isOptionOpened, a = e.navigate, s = o(t), [l, c] = K(s);
27795
27815
  return W(() => {
27796
27816
  c(s);
27797
- }, [s]), /* @__PURE__ */ i(Yi, { active: r, defaultOpened: s, opened: l, onChange: c, label: t.label, onClick: () => a(t), icon: t.Icon ? /* @__PURE__ */ i(t.Icon, { size: 18 }) : null, children: (d = t.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(NM, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Kd, { option: p }, p.value)) }, t.label);
27798
- }), BM = D(() => {
27799
- const t = ze();
27817
+ }, [s]), /* @__PURE__ */ i(Yi, { active: r, defaultOpened: s, opened: l, onChange: c, label: t.label, onClick: () => a(t), icon: t.Icon ? /* @__PURE__ */ i(t.Icon, { size: 18 }) : null, children: (d = t.children) == null ? void 0 : d.map((p) => p._type === "ACTION" ? /* @__PURE__ */ i(BM, { action_type: p._action_type, parentID: p.parentID }, `_ADD_${p.value}_`) : /* @__PURE__ */ i(Kd, { option: p }, p.value)) }, t.label);
27818
+ }), qM = D(() => {
27819
+ const t = Le();
27800
27820
  return /* @__PURE__ */ i(V, { sx: {
27801
27821
  position: "relative"
27802
27822
  }, children: t.editor.navOptions.map((e) => /* @__PURE__ */ i(Kd, { option: e }, e.value)) });
27803
- }), qM = D(() => {
27804
- const t = ze();
27823
+ }), WM = D(() => {
27824
+ const t = Le();
27805
27825
  return /* @__PURE__ */ u(Bt, { p: 0, width: {
27806
27826
  base: 200,
27807
27827
  xs: 200,
@@ -27820,12 +27840,12 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27820
27840
  }, children: "Settings" }) }),
27821
27841
  /* @__PURE__ */ i(Bt.Section, { grow: !0, sx: {
27822
27842
  overflow: "auto"
27823
- }, children: /* @__PURE__ */ i(BM, {}) }),
27843
+ }, children: /* @__PURE__ */ i(qM, {}) }),
27824
27844
  /* @__PURE__ */ i(Bt.Section, { children: /* @__PURE__ */ i(w, { grow: !0, p: "md", pt: "sm", sx: {
27825
27845
  borderTop: "1px solid #eee"
27826
27846
  }, children: /* @__PURE__ */ i($, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ i(Cl, { size: 18 }), onClick: () => t.editor.close(), children: "Close" }) }) })
27827
27847
  ] });
27828
- }), WM = {
27848
+ }), jM = {
27829
27849
  root: {
27830
27850
  height: "100vh",
27831
27851
  display: "flex",
@@ -27846,22 +27866,22 @@ const LM = D(() => /* @__PURE__ */ i(S, { sx: {
27846
27866
  paddingTop: 0,
27847
27867
  height: "100vh"
27848
27868
  }
27849
- }, jM = D(() => {
27850
- const t = ze().editor;
27851
- return /* @__PURE__ */ i(De, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
27869
+ }, GM = D(() => {
27870
+ const t = Le().editor;
27871
+ return /* @__PURE__ */ i(Ie, { onClose: () => t.setSettingsOpen(!1), closeOnEscape: !1, closeOnClickOutside: !1, opened: t.settings_open, fullScreen: !0, title: null, transitionProps: {
27852
27872
  duration: 0
27853
27873
  }, withCloseButton: !1, withinPortal: !0, zIndex: 300, styles: {
27854
27874
  body: {
27855
27875
  padding: "0 !important"
27856
27876
  }
27857
- }, children: /* @__PURE__ */ i(ol, { padding: 0, navbar: /* @__PURE__ */ i(qM, {}), styles: WM, children: /* @__PURE__ */ i(EM, {}) }) });
27858
- }), GM = (t) => t.replace(/([^:])(\/\/+)/g, "$1/");
27859
- function YM(t) {
27877
+ }, children: /* @__PURE__ */ i(ol, { padding: 0, navbar: /* @__PURE__ */ i(WM, {}), styles: jM, children: /* @__PURE__ */ i(RM, {}) }) });
27878
+ }), YM = (t) => t.replace(/([^:])(\/\/+)/g, "$1/");
27879
+ function HM(t) {
27860
27880
  W(() => {
27861
27881
  if (Li.__getMonacoInstance())
27862
27882
  return;
27863
27883
  console.log("loading monaco for @devtable/dashboard");
27864
- const n = GM(t);
27884
+ const n = YM(t);
27865
27885
  Li.config({
27866
27886
  paths: {
27867
27887
  vs: n
@@ -27870,7 +27890,7 @@ function YM(t) {
27870
27890
  }, []);
27871
27891
  }
27872
27892
  Rc();
27873
- const HM = {
27893
+ const QM = {
27874
27894
  root: {
27875
27895
  height: "100vh",
27876
27896
  display: "flex",
@@ -27888,7 +27908,7 @@ const HM = {
27888
27908
  // main header & sub header
27889
27909
  height: "100vh"
27890
27910
  }
27891
- }, QM = ({
27911
+ }, UM = ({
27892
27912
  context: t,
27893
27913
  dashboard: e,
27894
27914
  content: n,
@@ -27899,7 +27919,7 @@ const HM = {
27899
27919
  headerSlot: l,
27900
27920
  headerMenuItems: c
27901
27921
  }, d) => {
27902
- YM(a.monacoPath), Kl(a);
27922
+ HM(a.monacoPath), Kl(a);
27903
27923
  const {
27904
27924
  data: p = []
27905
27925
  } = xn(Uo), {
@@ -27922,14 +27942,14 @@ const HM = {
27922
27942
  freezeLayout: m,
27923
27943
  inEditMode: !0
27924
27944
  }, children: /* @__PURE__ */ i(Pt.Provider, { value: T, children: /* @__PURE__ */ u(wi, { configure: I, children: [
27925
- /* @__PURE__ */ i(ol, { padding: 0, header: /* @__PURE__ */ i(pD, { saveDashboardChanges: v, headerSlot: l, headerMenuItems: c }), navbar: /* @__PURE__ */ i(ND, {}), styles: HM, children: /* @__PURE__ */ i(V, { className: `${o} dashboard-root`, sx: {
27945
+ /* @__PURE__ */ i(ol, { padding: 0, header: /* @__PURE__ */ i(fD, { saveDashboardChanges: v, headerSlot: l, headerMenuItems: c }), navbar: /* @__PURE__ */ i(BD, {}), styles: QM, children: /* @__PURE__ */ i(V, { className: `${o} dashboard-root`, sx: {
27926
27946
  position: "relative"
27927
- }, children: x.content.views.visibleViews.map((L) => /* @__PURE__ */ i(ZT, { view: L }, L.id)) }) }),
27928
- /* @__PURE__ */ i(jM, {})
27947
+ }, children: x.content.views.visibleViews.map((L) => /* @__PURE__ */ i(eD, { view: L }, L.id)) }) }),
27948
+ /* @__PURE__ */ i(GM, {})
27929
27949
  ] }) }) }) }) }) });
27930
- }, yL = D(Se(QM));
27950
+ }, xL = D(Se(UM));
27931
27951
  Rc();
27932
- const xL = D(({
27952
+ const vL = D(({
27933
27953
  context: t,
27934
27954
  dashboard: e,
27935
27955
  content: n,
@@ -27961,7 +27981,7 @@ const xL = D(({
27961
27981
  inEditMode: !1
27962
27982
  }, children: /* @__PURE__ */ i(V, { className: `${r} dashboard-root`, children: /* @__PURE__ */ i(Pt.Provider, { value: p, children: /* @__PURE__ */ i(wi, { configure: h, children: d.content.views.visibleViews.map((f) => /* @__PURE__ */ i(Pa, { view: f }, f.id)) }) }) }) }) }) }) }) });
27963
27983
  });
27964
- var io = {}, UM = {
27984
+ var io = {}, KM = {
27965
27985
  get exports() {
27966
27986
  return io;
27967
27987
  },
@@ -28016,9 +28036,9 @@ var io = {}, UM = {
28016
28036
  };
28017
28037
  };
28018
28038
  });
28019
- })(UM);
28020
- const KM = io;
28021
- var oo = {}, XM = {
28039
+ })(KM);
28040
+ const XM = io;
28041
+ var oo = {}, JM = {
28022
28042
  get exports() {
28023
28043
  return oo;
28024
28044
  },
@@ -28040,9 +28060,9 @@ var oo = {}, XM = {
28040
28060
  };
28041
28061
  };
28042
28062
  });
28043
- })(XM);
28044
- const JM = oo;
28045
- var ao = {}, ZM = {
28063
+ })(JM);
28064
+ const ZM = oo;
28065
+ var ao = {}, e$ = {
28046
28066
  get exports() {
28047
28067
  return ao;
28048
28068
  },
@@ -28091,9 +28111,9 @@ var ao = {}, ZM = {
28091
28111
  };
28092
28112
  };
28093
28113
  });
28094
- })(ZM);
28095
- const e$ = ao;
28096
- var so = {}, t$ = {
28114
+ })(e$);
28115
+ const t$ = ao;
28116
+ var so = {}, n$ = {
28097
28117
  get exports() {
28098
28118
  return so;
28099
28119
  },
@@ -28116,9 +28136,9 @@ var so = {}, t$ = {
28116
28136
  };
28117
28137
  };
28118
28138
  });
28119
- })(t$);
28120
- const n$ = so;
28121
- var lo = {}, r$ = {
28139
+ })(n$);
28140
+ const r$ = so;
28141
+ var lo = {}, i$ = {
28122
28142
  get exports() {
28123
28143
  return lo;
28124
28144
  },
@@ -28138,9 +28158,9 @@ var lo = {}, r$ = {
28138
28158
  };
28139
28159
  };
28140
28160
  });
28141
- })(r$);
28142
- const i$ = lo;
28143
- var co = {}, o$ = {
28161
+ })(i$);
28162
+ const o$ = lo;
28163
+ var co = {}, a$ = {
28144
28164
  get exports() {
28145
28165
  return co;
28146
28166
  },
@@ -28214,8 +28234,8 @@ var co = {}, o$ = {
28214
28234
  T = v, I = l && l.formats;
28215
28235
  for (var L = (v = T.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(ne, ee, ie) {
28216
28236
  var me = ie && ie.toUpperCase();
28217
- return ee || I[ie] || n[ie] || I[me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge, Me, Ye) {
28218
- return Me || Ye.slice(1);
28237
+ return ee || I[ie] || n[ie] || I[me].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(ge, $e, Ye) {
28238
+ return $e || Ye.slice(1);
28219
28239
  });
28220
28240
  })).match(r), B = L.length, j = 0; j < B; j += 1) {
28221
28241
  var N = L[j], O = m[N], E = O && O[0], U = O && O[1];
@@ -28227,15 +28247,15 @@ var co = {}, o$ = {
28227
28247
  if (typeof ge == "string")
28228
28248
  me += ge.length;
28229
28249
  else {
28230
- var Me = ge.regex, Ye = ge.parser, ke = ne.slice(me), Fe = Me.exec(ke)[0];
28250
+ var $e = ge.regex, Ye = ge.parser, ke = ne.slice(me), Fe = $e.exec(ke)[0];
28231
28251
  Ye.call(ee, Fe), ne = ne.replace(Fe, "");
28232
28252
  }
28233
28253
  }
28234
- return function(Le) {
28235
- var Xe = Le.afternoon;
28254
+ return function(Te) {
28255
+ var Xe = Te.afternoon;
28236
28256
  if (Xe !== void 0) {
28237
- var gt = Le.hours;
28238
- Xe ? gt < 12 && (Le.hours += 12) : gt === 12 && (Le.hours = 0), delete Le.afternoon;
28257
+ var gt = Te.hours;
28258
+ Xe ? gt < 12 && (Te.hours += 12) : gt === 12 && (Te.hours = 0), delete Te.afternoon;
28239
28259
  }
28240
28260
  }(ee), ee;
28241
28261
  };
@@ -28249,36 +28269,36 @@ var co = {}, o$ = {
28249
28269
  var U = E[1];
28250
28270
  if (typeof U == "string") {
28251
28271
  var ne = E[2] === !0, ee = E[3] === !0, ie = ne || ee, me = E[2];
28252
- ee && (me = E[2]), l = this.$locale(), !ne && me && (l = I.Ls[me]), this.$d = function(ke, Fe, Le) {
28272
+ ee && (me = E[2]), l = this.$locale(), !ne && me && (l = I.Ls[me]), this.$d = function(ke, Fe, Te) {
28253
28273
  try {
28254
28274
  if (["x", "X"].indexOf(Fe) > -1)
28255
28275
  return new Date((Fe === "X" ? 1e3 : 1) * ke);
28256
28276
  var Xe = x(Fe)(ke), gt = Xe.year, un = Xe.month, wr = Xe.day, _r = Xe.hours, _i = Xe.minutes, Ci = Xe.seconds, Un = Xe.milliseconds, Mn = Xe.zone, Ut = /* @__PURE__ */ new Date(), hn = wr || (gt || un ? 1 : Ut.getDate()), Kt = gt || Ut.getFullYear(), $n = 0;
28257
28277
  gt && !un || ($n = un > 0 ? un - 1 : Ut.getMonth());
28258
28278
  var zn = _r || 0, Kn = _i || 0, Xn = Ci || 0, Xt = Un || 0;
28259
- return Mn ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt + 60 * Mn.offset * 1e3)) : Le ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt)) : new Date(Kt, $n, hn, zn, Kn, Xn, Xt);
28279
+ return Mn ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt + 60 * Mn.offset * 1e3)) : Te ? new Date(Date.UTC(Kt, $n, hn, zn, Kn, Xn, Xt)) : new Date(Kt, $n, hn, zn, Kn, Xn, Xt);
28260
28280
  } catch {
28261
28281
  return /* @__PURE__ */ new Date("");
28262
28282
  }
28263
28283
  }(N, U, O), this.init(), me && me !== !0 && (this.$L = this.locale(me).$L), ie && N != this.format(U) && (this.$d = /* @__PURE__ */ new Date("")), l = {};
28264
28284
  } else if (U instanceof Array)
28265
- for (var ge = U.length, Me = 1; Me <= ge; Me += 1) {
28266
- E[1] = U[Me - 1];
28285
+ for (var ge = U.length, $e = 1; $e <= ge; $e += 1) {
28286
+ E[1] = U[$e - 1];
28267
28287
  var Ye = I.apply(this, E);
28268
28288
  if (Ye.isValid()) {
28269
28289
  this.$d = Ye.$d, this.$L = Ye.$L, this.init();
28270
28290
  break;
28271
28291
  }
28272
- Me === ge && (this.$d = /* @__PURE__ */ new Date(""));
28292
+ $e === ge && (this.$d = /* @__PURE__ */ new Date(""));
28273
28293
  }
28274
28294
  else
28275
28295
  B.call(this, j);
28276
28296
  };
28277
28297
  };
28278
28298
  });
28279
- })(o$);
28280
- const a$ = co;
28281
- var uo = {}, s$ = {
28299
+ })(a$);
28300
+ const s$ = co;
28301
+ var uo = {}, l$ = {
28282
28302
  get exports() {
28283
28303
  return uo;
28284
28304
  },
@@ -28297,9 +28317,9 @@ var uo = {}, s$ = {
28297
28317
  };
28298
28318
  };
28299
28319
  });
28300
- })(s$);
28301
- const l$ = uo;
28302
- var ho = {}, c$ = {
28320
+ })(l$);
28321
+ const c$ = uo;
28322
+ var ho = {}, d$ = {
28303
28323
  get exports() {
28304
28324
  return ho;
28305
28325
  },
@@ -28361,7 +28381,7 @@ var ho = {}, c$ = {
28361
28381
  this.$d.weeks && (ne += 7 * this.$d.weeks);
28362
28382
  var ee = B(ne, "D"), ie = B(this.$d.hours, "H"), me = B(this.$d.minutes, "M"), ge = this.$d.seconds || 0;
28363
28383
  this.$d.milliseconds && (ge += this.$d.milliseconds / 1e3);
28364
- var Me = B(ge, "S"), Ye = E.negative || U.negative || ee.negative || ie.negative || me.negative || Me.negative, ke = ie.format || me.format || Me.format ? "T" : "", Fe = (Ye ? "-" : "") + "P" + E.format + U.format + ee.format + ke + ie.format + me.format + Me.format;
28384
+ var $e = B(ge, "S"), Ye = E.negative || U.negative || ee.negative || ie.negative || me.negative || $e.negative, ke = ie.format || me.format || $e.format ? "T" : "", Fe = (Ye ? "-" : "") + "P" + E.format + U.format + ee.format + ke + ie.format + me.format + $e.format;
28365
28385
  return Fe === "P" || Fe === "-P" ? "P0D" : Fe;
28366
28386
  }, O.toJSON = function() {
28367
28387
  return this.toISOString();
@@ -28434,9 +28454,9 @@ var ho = {}, c$ = {
28434
28454
  };
28435
28455
  };
28436
28456
  });
28437
- })(c$);
28438
- const d$ = ho;
28439
- var po = {}, u$ = {
28457
+ })(d$);
28458
+ const u$ = ho;
28459
+ var po = {}, h$ = {
28440
28460
  get exports() {
28441
28461
  return po;
28442
28462
  },
@@ -28455,9 +28475,9 @@ var po = {}, u$ = {
28455
28475
  };
28456
28476
  };
28457
28477
  });
28458
- })(u$);
28459
- const h$ = po;
28460
- var fo = {}, p$ = {
28478
+ })(h$);
28479
+ const p$ = po;
28480
+ var fo = {}, f$ = {
28461
28481
  get exports() {
28462
28482
  return fo;
28463
28483
  },
@@ -28475,9 +28495,9 @@ var fo = {}, p$ = {
28475
28495
  };
28476
28496
  };
28477
28497
  });
28478
- })(p$);
28479
- const f$ = fo;
28480
- var mo = {}, m$ = {
28498
+ })(f$);
28499
+ const m$ = fo;
28500
+ var mo = {}, g$ = {
28481
28501
  get exports() {
28482
28502
  return mo;
28483
28503
  },
@@ -28495,9 +28515,9 @@ var mo = {}, m$ = {
28495
28515
  };
28496
28516
  };
28497
28517
  });
28498
- })(m$);
28499
- const g$ = mo;
28500
- var go = {}, b$ = {
28518
+ })(g$);
28519
+ const b$ = mo;
28520
+ var go = {}, y$ = {
28501
28521
  get exports() {
28502
28522
  return go;
28503
28523
  },
@@ -28531,9 +28551,9 @@ var go = {}, b$ = {
28531
28551
  };
28532
28552
  };
28533
28553
  });
28534
- })(b$);
28535
- const y$ = go;
28536
- var bo = {}, x$ = {
28554
+ })(y$);
28555
+ const x$ = go;
28556
+ var bo = {}, v$ = {
28537
28557
  get exports() {
28538
28558
  return bo;
28539
28559
  },
@@ -28552,9 +28572,9 @@ var bo = {}, x$ = {
28552
28572
  };
28553
28573
  };
28554
28574
  });
28555
- })(x$);
28556
- const v$ = bo;
28557
- var yo = {}, w$ = {
28575
+ })(v$);
28576
+ const w$ = bo;
28577
+ var yo = {}, _$ = {
28558
28578
  get exports() {
28559
28579
  return yo;
28560
28580
  },
@@ -28572,9 +28592,9 @@ var yo = {}, w$ = {
28572
28592
  };
28573
28593
  };
28574
28594
  });
28575
- })(w$);
28576
- const _$ = yo;
28577
- var xo = {}, C$ = {
28595
+ })(_$);
28596
+ const C$ = yo;
28597
+ var xo = {}, S$ = {
28578
28598
  get exports() {
28579
28599
  return xo;
28580
28600
  },
@@ -28592,9 +28612,9 @@ var xo = {}, C$ = {
28592
28612
  };
28593
28613
  };
28594
28614
  });
28595
- })(C$);
28596
- const S$ = xo;
28597
- var vo = {}, k$ = {
28615
+ })(S$);
28616
+ const k$ = xo;
28617
+ var vo = {}, T$ = {
28598
28618
  get exports() {
28599
28619
  return vo;
28600
28620
  },
@@ -28613,9 +28633,9 @@ var vo = {}, k$ = {
28613
28633
  };
28614
28634
  };
28615
28635
  });
28616
- })(k$);
28617
- const T$ = vo;
28618
- var wo = {}, D$ = {
28636
+ })(T$);
28637
+ const D$ = vo;
28638
+ var wo = {}, I$ = {
28619
28639
  get exports() {
28620
28640
  return wo;
28621
28641
  },
@@ -28634,9 +28654,9 @@ var wo = {}, D$ = {
28634
28654
  };
28635
28655
  };
28636
28656
  });
28637
- })(D$);
28638
- const I$ = wo;
28639
- var _o = {}, M$ = {
28657
+ })(I$);
28658
+ const M$ = wo;
28659
+ var _o = {}, $$ = {
28640
28660
  get exports() {
28641
28661
  return _o;
28642
28662
  },
@@ -28655,9 +28675,9 @@ var _o = {}, M$ = {
28655
28675
  };
28656
28676
  };
28657
28677
  });
28658
- })(M$);
28659
- const $$ = _o;
28660
- var Co = {}, z$ = {
28678
+ })($$);
28679
+ const z$ = _o;
28680
+ var Co = {}, L$ = {
28661
28681
  get exports() {
28662
28682
  return Co;
28663
28683
  },
@@ -28740,9 +28760,9 @@ var Co = {}, z$ = {
28740
28760
  };
28741
28761
  };
28742
28762
  });
28743
- })(z$);
28744
- const L$ = Co;
28745
- var So = {}, A$ = {
28763
+ })(L$);
28764
+ const A$ = Co;
28765
+ var So = {}, E$ = {
28746
28766
  get exports() {
28747
28767
  return So;
28748
28768
  },
@@ -28771,9 +28791,9 @@ var So = {}, A$ = {
28771
28791
  };
28772
28792
  };
28773
28793
  });
28774
- })(A$);
28775
- const E$ = So;
28776
- var ko = {}, R$ = {
28794
+ })(E$);
28795
+ const R$ = So;
28796
+ var ko = {}, O$ = {
28777
28797
  get exports() {
28778
28798
  return ko;
28779
28799
  },
@@ -28804,9 +28824,9 @@ var ko = {}, R$ = {
28804
28824
  };
28805
28825
  };
28806
28826
  });
28807
- })(R$);
28808
- const O$ = ko;
28809
- var To = {}, F$ = {
28827
+ })(O$);
28828
+ const F$ = ko;
28829
+ var To = {}, P$ = {
28810
28830
  get exports() {
28811
28831
  return To;
28812
28832
  },
@@ -28855,9 +28875,9 @@ var To = {}, F$ = {
28855
28875
  };
28856
28876
  };
28857
28877
  });
28858
- })(F$);
28859
- const P$ = To;
28860
- var Do = {}, V$ = {
28878
+ })(P$);
28879
+ const V$ = To;
28880
+ var Do = {}, N$ = {
28861
28881
  get exports() {
28862
28882
  return Do;
28863
28883
  },
@@ -28876,9 +28896,9 @@ var Do = {}, V$ = {
28876
28896
  });
28877
28897
  };
28878
28898
  });
28879
- })(V$);
28880
- const N$ = Do;
28881
- var Io = {}, B$ = {
28899
+ })(N$);
28900
+ const B$ = Do;
28901
+ var Io = {}, q$ = {
28882
28902
  get exports() {
28883
28903
  return Io;
28884
28904
  },
@@ -28913,9 +28933,9 @@ var Io = {}, B$ = {
28913
28933
  });
28914
28934
  };
28915
28935
  });
28916
- })(B$);
28917
- const q$ = Io;
28918
- var Mo = {}, W$ = {
28936
+ })(q$);
28937
+ const W$ = Io;
28938
+ var Mo = {}, j$ = {
28919
28939
  get exports() {
28920
28940
  return Mo;
28921
28941
  },
@@ -28948,9 +28968,9 @@ var Mo = {}, W$ = {
28948
28968
  };
28949
28969
  };
28950
28970
  });
28951
- })(W$);
28952
- const j$ = Mo;
28953
- var $o = {}, G$ = {
28971
+ })(j$);
28972
+ const G$ = Mo;
28973
+ var $o = {}, Y$ = {
28954
28974
  get exports() {
28955
28975
  return $o;
28956
28976
  },
@@ -28999,9 +29019,9 @@ var $o = {}, G$ = {
28999
29019
  };
29000
29020
  };
29001
29021
  });
29002
- })(G$);
29003
- const Y$ = $o;
29004
- var zo = {}, H$ = {
29022
+ })(Y$);
29023
+ const H$ = $o;
29024
+ var zo = {}, Q$ = {
29005
29025
  get exports() {
29006
29026
  return zo;
29007
29027
  },
@@ -29070,9 +29090,9 @@ var zo = {}, H$ = {
29070
29090
  };
29071
29091
  };
29072
29092
  });
29073
- })(H$);
29074
- const Q$ = zo;
29075
- var Lo = {}, U$ = {
29093
+ })(Q$);
29094
+ const U$ = zo;
29095
+ var Lo = {}, K$ = {
29076
29096
  get exports() {
29077
29097
  return Lo;
29078
29098
  },
@@ -29090,9 +29110,9 @@ var Lo = {}, U$ = {
29090
29110
  };
29091
29111
  };
29092
29112
  });
29093
- })(U$);
29094
- const K$ = Lo;
29095
- var Ao = {}, X$ = {
29113
+ })(K$);
29114
+ const X$ = Lo;
29115
+ var Ao = {}, J$ = {
29096
29116
  get exports() {
29097
29117
  return Ao;
29098
29118
  },
@@ -29110,9 +29130,9 @@ var Ao = {}, X$ = {
29110
29130
  };
29111
29131
  };
29112
29132
  });
29113
- })(X$);
29114
- const J$ = Ao;
29115
- var Eo = {}, Z$ = {
29133
+ })(J$);
29134
+ const Z$ = Ao;
29135
+ var Eo = {}, ez = {
29116
29136
  get exports() {
29117
29137
  return Eo;
29118
29138
  },
@@ -29134,9 +29154,9 @@ var Eo = {}, Z$ = {
29134
29154
  };
29135
29155
  };
29136
29156
  });
29137
- })(Z$);
29138
- const ez = Eo;
29139
- var Ro = {}, tz = {
29157
+ })(ez);
29158
+ const tz = Eo;
29159
+ var Ro = {}, nz = {
29140
29160
  get exports() {
29141
29161
  return Ro;
29142
29162
  },
@@ -29223,9 +29243,9 @@ var Ro = {}, tz = {
29223
29243
  };
29224
29244
  };
29225
29245
  });
29226
- })(tz);
29227
- const nz = Ro;
29228
- var Oo = {}, rz = {
29246
+ })(nz);
29247
+ const rz = Ro;
29248
+ var Oo = {}, iz = {
29229
29249
  get exports() {
29230
29250
  return Oo;
29231
29251
  },
@@ -29244,9 +29264,9 @@ var Oo = {}, rz = {
29244
29264
  };
29245
29265
  };
29246
29266
  });
29247
- })(rz);
29248
- const iz = Oo;
29249
- var Fo = {}, oz = {
29267
+ })(iz);
29268
+ const oz = Oo;
29269
+ var Fo = {}, az = {
29250
29270
  get exports() {
29251
29271
  return Fo;
29252
29272
  },
@@ -29277,9 +29297,9 @@ var Fo = {}, oz = {
29277
29297
  };
29278
29298
  };
29279
29299
  });
29280
- })(oz);
29281
- const az = Fo;
29282
- var Po = {}, sz = {
29300
+ })(az);
29301
+ const sz = Fo;
29302
+ var Po = {}, lz = {
29283
29303
  get exports() {
29284
29304
  return Po;
29285
29305
  },
@@ -29298,55 +29318,55 @@ var Po = {}, sz = {
29298
29318
  };
29299
29319
  };
29300
29320
  });
29301
- })(sz);
29302
- const lz = Po;
29303
- Z.extend(KM);
29304
- Z.extend(JM);
29305
- Z.extend(e$);
29306
- Z.extend(n$);
29307
- Z.extend(i$);
29308
- Z.extend(a$);
29309
- Z.extend(l$);
29310
- Z.extend(d$);
29311
- Z.extend(h$);
29312
- Z.extend(f$);
29313
- Z.extend(g$);
29314
- Z.extend(_$);
29315
- Z.extend(S$);
29316
- Z.extend(T$);
29317
- Z.extend(I$);
29318
- Z.extend($$);
29319
- Z.extend(y$);
29320
- Z.extend(v$);
29321
- Z.extend(L$);
29322
- Z.extend(E$);
29323
- Z.extend(O$);
29324
- Z.extend(P$);
29325
- Z.extend(N$);
29326
- Z.extend(q$);
29327
- Z.extend(j$);
29328
- Z.extend(Y$);
29329
- Z.extend(Q$);
29330
- Z.extend(K$);
29331
- Z.extend(J$);
29332
- Z.extend(ez);
29333
- Z.extend(nz);
29334
- Z.extend(az);
29335
- Z.extend(lz);
29336
- Z.extend(iz);
29321
+ })(lz);
29322
+ const cz = Po;
29323
+ Z.extend(XM);
29324
+ Z.extend(ZM);
29325
+ Z.extend(t$);
29326
+ Z.extend(r$);
29327
+ Z.extend(o$);
29328
+ Z.extend(s$);
29329
+ Z.extend(c$);
29330
+ Z.extend(u$);
29331
+ Z.extend(p$);
29332
+ Z.extend(m$);
29333
+ Z.extend(b$);
29334
+ Z.extend(C$);
29335
+ Z.extend(k$);
29336
+ Z.extend(D$);
29337
+ Z.extend(M$);
29338
+ Z.extend(z$);
29339
+ Z.extend(x$);
29340
+ Z.extend(w$);
29341
+ Z.extend(A$);
29342
+ Z.extend(R$);
29343
+ Z.extend(F$);
29344
+ Z.extend(V$);
29345
+ Z.extend(B$);
29346
+ Z.extend(W$);
29347
+ Z.extend(G$);
29348
+ Z.extend(H$);
29349
+ Z.extend(U$);
29350
+ Z.extend(X$);
29351
+ Z.extend(Z$);
29352
+ Z.extend(tz);
29353
+ Z.extend(rz);
29354
+ Z.extend(sz);
29355
+ Z.extend(cz);
29356
+ Z.extend(oz);
29337
29357
  Z.tz.setDefault("UTC");
29338
- const vL = () => Promise.resolve().then(() => Cf).then(({
29358
+ const wL = () => Promise.resolve().then(() => Cf).then(({
29339
29359
  version: t
29340
29360
  }) => (console.log(`[@devtable/dashboard] version: ${t}`), t));
29341
29361
  export {
29342
29362
  Ra as ContentModel,
29343
29363
  Zl as ContentModelContextProvider,
29344
29364
  Xp as ContextModel,
29345
- yL as DashboardEditor,
29365
+ xL as DashboardEditor,
29346
29366
  _d as DashboardFilterType,
29347
- Xk as DashboardMode,
29348
- dT as DashboardModel,
29349
- ZT as DashboardViewEditor,
29367
+ Jk as DashboardMode,
29368
+ uT as DashboardModel,
29369
+ eD as DashboardViewEditor,
29350
29370
  Pa as DashboardViewRender,
29351
29371
  se as EViewComponentType,
29352
29372
  gs as FilterModel,
@@ -29356,29 +29376,29 @@ export {
29356
29376
  tc as ModelContextProvider,
29357
29377
  Fa as Panel,
29358
29378
  vc as PanelContextProvider,
29359
- Qk as PanelModel,
29360
- Kk as PanelsModel,
29379
+ Uk as PanelModel,
29380
+ Xk as PanelsModel,
29361
29381
  Qp as QueriesModel,
29362
29382
  Hp as QueryModel,
29363
- xL as ReadOnlyDashboard,
29383
+ vL as ReadOnlyDashboard,
29364
29384
  Up as SQLSnippetModel,
29365
29385
  Kp as SQLSnippetsModel,
29366
- Jk as ViewComponentTypeBackground,
29367
- mL as ViewComponentTypeColor,
29368
- fL as ViewComponentTypeName,
29369
- iT as ViewModel,
29370
- oT as ViewsModel,
29371
- bL as applyPartialDashboard,
29372
- sT as createContentModel,
29386
+ Zk as ViewComponentTypeBackground,
29387
+ gL as ViewComponentTypeColor,
29388
+ mL as ViewComponentTypeName,
29389
+ oT as ViewModel,
29390
+ aT as ViewsModel,
29391
+ yL as applyPartialDashboard,
29392
+ lT as createContentModel,
29373
29393
  Dd as createDashboardModel,
29374
29394
  Td as createDashboardViewsModel,
29375
29395
  Pp as getInitialFiltersPayload,
29376
- Uk as getNewPanel,
29377
- vL as getVersion,
29378
- gL as initialDashboardContent,
29396
+ Kk as getNewPanel,
29397
+ wL as getVersion,
29398
+ bL as initialDashboardContent,
29379
29399
  re as useContentModelContext,
29380
29400
  Mf as useFullScreenPanelContext,
29381
- ze as useModelContext,
29401
+ Le as useModelContext,
29382
29402
  tt as usePanelContext,
29383
29403
  Vd as useTopLevelServices
29384
29404
  };