@devtable/dashboard 13.16.0 → 13.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ var xh = Object.defineProperty;
2
2
  var gh = (t, e, n) => e in t ? xh(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n;
3
3
  var N = (t, e, n) => (gh(t, typeof e != "symbol" ? e + "" : e, n), n);
4
4
  import L, { forwardRef as re, useState as H, useEffect as B, useCallback as Ne, useMemo as C, createElement as gs, useContext as Kt, useRef as fs, createContext as ol, memo as fh } from "react";
5
- import { TextInput as D, Text as w, Box as M, Button as I, HoverCard as Te, Group as b, Select as O, Stack as S, Overlay as Zn, Modal as Se, Checkbox as ee, Divider as E, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as X, MultiSelect as Gn, Paper as bh, Code as so, Tabs as _, LoadingOverlay as In, Alert as vr, ColorSwatch as di, createStyles as jr, Popover as Bn, Tooltip as me, CloseButton as wr, Center as an, Collapse as kr, useMantineTheme as ll, CheckIcon as yh, MANTINE_SIZES as _h, SimpleGrid as vn, NativeSelect as cl, SegmentedControl as vh, Anchor as rs, Menu as J, UnstyledButton as dl, Badge as rn, ColorInput as Qn, Textarea as ul, Mark as hl, Slider as jh, Flex as Jt, Affix as wh, Header as kh, List as ct, FileInput as Sh, ThemeIcon as Ys, Navbar as Gt, JsonInput as ml, Pagination as pl, Drawer as Ch, Accordion as qr, Radio as io, Skeleton as ao, NavLink as ui, AppShell as xl } from "@mantine/core";
5
+ import { TextInput as D, Text as w, Box as M, Button as T, HoverCard as Te, Group as b, Select as O, Stack as S, Overlay as Zn, Modal as Se, Checkbox as ee, Divider as E, NumberInput as oe, Switch as qe, Table as Pe, ActionIcon as X, MultiSelect as Gn, Paper as bh, Code as so, Tabs as _, LoadingOverlay as In, Alert as vr, ColorSwatch as di, createStyles as jr, Popover as Bn, Tooltip as me, CloseButton as wr, Center as an, Collapse as kr, useMantineTheme as ll, CheckIcon as yh, MANTINE_SIZES as _h, SimpleGrid as vn, NativeSelect as cl, SegmentedControl as vh, Anchor as rs, Menu as J, UnstyledButton as dl, Badge as rn, ColorInput as Qn, Textarea as ul, Mark as hl, Slider as jh, Flex as Jt, Affix as wh, Header as kh, List as ct, FileInput as Sh, ThemeIcon as Ys, Navbar as Gt, JsonInput as ml, Pagination as pl, Drawer as Ch, Accordion as qr, Radio as io, Skeleton as ao, NavLink as ui, AppShell as xl } from "@mantine/core";
6
6
  import { useModals as Pt, ModalsProvider as gl } from "@mantine/modals";
7
7
  import { useBoolean as st, useCreation as kt, useAsyncEffect as Sr, useRequest as kn, useLatest as oo, usePrevious as zh, useWhyDidYouUpdate as fl } from "ahooks";
8
8
  import { toJS as Xt, observable as bl, runInAction as ur, reaction as tt, makeAutoObservable as Cr } from "mobx";
@@ -147,7 +147,7 @@ var go;
147
147
  function bx() {
148
148
  return go || (go = 1, process.env.NODE_ENV !== "production" && function() {
149
149
  var t = L, e = Symbol.for("react.element"), n = Symbol.for("react.portal"), s = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), a = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), l = Symbol.for("react.context"), c = Symbol.for("react.forward_ref"), d = Symbol.for("react.suspense"), u = Symbol.for("react.suspense_list"), h = Symbol.for("react.memo"), m = Symbol.for("react.lazy"), x = Symbol.for("react.offscreen"), f = Symbol.iterator, v = "@@iterator";
150
- function T(j) {
150
+ function I(j) {
151
151
  if (j === null || typeof j != "object")
152
152
  return null;
153
153
  var A = f && j[f] || j[v];
@@ -646,7 +646,7 @@ Check the top-level render call using <` + q + ">.");
646
646
  else if (Us(j))
647
647
  j._store && (j._store.validated = !0);
648
648
  else if (j) {
649
- var de = T(j);
649
+ var de = I(j);
650
650
  if (typeof de == "function" && de !== j.entries)
651
651
  for (var fe = de.call(j), ce; !(ce = fe.next()).done; )
652
652
  Us(ce.value) && eo(ce.value, A);
@@ -1376,7 +1376,7 @@ class He extends L.Component {
1376
1376
  };
1377
1377
  return /* @__PURE__ */ r.jsxs(M, { children: [
1378
1378
  /* @__PURE__ */ r.jsx(w, { size: "xs", children: (e = this.state.error) == null ? void 0 : e.message }),
1379
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
1379
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", mx: "auto", compact: !0, sx: {
1380
1380
  display: "block"
1381
1381
  }, onClick: n, children: "Retry" })
1382
1382
  ] });
@@ -1743,7 +1743,7 @@ class Vi {
1743
1743
  }), this.instanceRegistry.clear(), this.factoryRegistry.clear();
1744
1744
  }
1745
1745
  }
1746
- const xc = "13.16.0", hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1746
+ const xc = "13.17.0", hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1747
1747
  __proto__: null,
1748
1748
  version: xc
1749
1749
  }, Symbol.toStringTag, { value: "Module" }));
@@ -1938,7 +1938,7 @@ function gg({
1938
1938
  z: F(l)
1939
1939
  }), [a, o, l]), {
1940
1940
  min: v,
1941
- max: T
1941
+ max: I
1942
1942
  } = C(() => {
1943
1943
  const P = Ah(h, (Y) => Y[f.columnKey]), V = $h(h, (Y) => Y[f.columnKey]);
1944
1944
  return {
@@ -1952,7 +1952,7 @@ function gg({
1952
1952
  show: !0,
1953
1953
  dimension: 2,
1954
1954
  min: v,
1955
- max: T,
1955
+ max: I,
1956
1956
  inRange: {
1957
1957
  color: ["#313695", "#4575b4", "#74add1", "#abd9e9", "#e0f3f8", "#ffffbf", "#fee090", "#fdae61", "#f46d43", "#d73027", "#a50026"]
1958
1958
  }
@@ -2140,7 +2140,7 @@ function wg({
2140
2140
  ] }),
2141
2141
  /* @__PURE__ */ r.jsx(b, { position: "center", mt: "xl", grow: !0, sx: {
2142
2142
  width: "60%"
2143
- }, mx: "auto", children: /* @__PURE__ */ r.jsxs(I, { color: "blue", type: "submit", children: [
2143
+ }, mx: "auto", children: /* @__PURE__ */ r.jsxs(T, { color: "blue", type: "submit", children: [
2144
2144
  /* @__PURE__ */ r.jsx(Yt, { size: 20 }),
2145
2145
  /* @__PURE__ */ r.jsx(w, { ml: "md", children: "Save" })
2146
2146
  ] }) })
@@ -2274,43 +2274,43 @@ const Tt = re(({
2274
2274
  B(() => {
2275
2275
  d(t);
2276
2276
  }, [t]);
2277
- const u = (T) => {
2277
+ const u = (I) => {
2278
2278
  d({
2279
2279
  ...c,
2280
- enabled: T
2280
+ enabled: I
2281
2281
  });
2282
2282
  }, h = () => {
2283
2283
  l();
2284
2284
  const {
2285
- enabled: T,
2285
+ enabled: I,
2286
2286
  func_content: R
2287
2287
  } = c, P = {
2288
- enabled: T,
2288
+ enabled: I,
2289
2289
  func_content: R
2290
2290
  };
2291
2291
  d(P), e(P);
2292
2292
  }, m = () => {
2293
2293
  l(), d(t);
2294
- }, x = (T) => {
2294
+ }, x = (I) => {
2295
2295
  d((R) => ({
2296
2296
  ...R,
2297
- func_content: T
2297
+ func_content: I
2298
2298
  }));
2299
2299
  }, f = () => {
2300
2300
  x(Ue().func_content);
2301
2301
  }, v = n ?? i("chart.axis.customize_label");
2302
2302
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
2303
- /* @__PURE__ */ r.jsx(I, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: o, sx: {
2303
+ /* @__PURE__ */ r.jsx(T, { variant: "filled", color: "grape", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: o, sx: {
2304
2304
  flexGrow: 0
2305
2305
  }, children: v }),
2306
2306
  /* @__PURE__ */ r.jsx(Se, { size: 800, title: v, opened: a, onClose: l, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: a && /* @__PURE__ */ r.jsxs(S, { children: [
2307
- /* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (T) => u(T.currentTarget.checked) }),
2307
+ /* @__PURE__ */ r.jsx(ee, { mt: 10, label: i("common.enabled"), checked: c.enabled, onChange: (I) => u(I.currentTarget.checked) }),
2308
2308
  /* @__PURE__ */ r.jsx(Dg, { value: c.func_content, onChange: x, disabled: !c.enabled }),
2309
2309
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
2310
- /* @__PURE__ */ r.jsx(I, { onClick: f, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: i("common.actions.reset_to_default") }),
2310
+ /* @__PURE__ */ r.jsx(T, { onClick: f, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: i("common.actions.reset_to_default") }),
2311
2311
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
2312
- /* @__PURE__ */ r.jsx(I, { onClick: m, variant: "subtle", children: i("common.actions.cancel") }),
2313
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: h, children: i("common.actions.save") })
2312
+ /* @__PURE__ */ r.jsx(T, { onClick: m, variant: "subtle", children: i("common.actions.cancel") }),
2313
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: h, children: i("common.actions.save") })
2314
2314
  ] })
2315
2315
  ] })
2316
2316
  ] }) })
@@ -3124,7 +3124,7 @@ const df = z(({
3124
3124
  const {
3125
3125
  t: n
3126
3126
  } = y(), s = (i = t.operationSchema) == null ? void 0 : i.displayName;
3127
- return /* @__PURE__ */ r.jsx(I, { variant: "outline", onClick: e, children: n(s) });
3127
+ return /* @__PURE__ */ r.jsx(T, { variant: "outline", onClick: e, children: n(s) });
3128
3128
  }), uf = z(({
3129
3129
  model: t
3130
3130
  }) => {
@@ -3216,7 +3216,7 @@ const ff = z(({
3216
3216
  instance: t.instance,
3217
3217
  sampleData: t.sampleData
3218
3218
  };
3219
- return /* @__PURE__ */ r.jsx(I, { variant: "outline", onClick: e, children: gs(n, s) });
3219
+ return /* @__PURE__ */ r.jsx(T, { variant: "outline", onClick: e, children: gs(n, s) });
3220
3220
  }), bf = z(({
3221
3221
  model: t
3222
3222
  }) => {
@@ -3315,7 +3315,7 @@ const jf = z(({
3315
3315
  /* @__PURE__ */ r.jsx(In, { visible: m }),
3316
3316
  h === 0 && /* @__PURE__ */ r.jsx(vr, { icon: /* @__PURE__ */ r.jsx(fm, { size: 16 }), title: e("interactions.unavailable"), color: "gray", children: e("interactions.unavailable_reason") }),
3317
3317
  c.map((x) => /* @__PURE__ */ r.jsx(jf, { onRemove: u, instance: a, sampleData: o, variables: l, item: x, manager: t.interactionManager }, x.id)),
3318
- /* @__PURE__ */ r.jsx(I, { style: {
3318
+ /* @__PURE__ */ r.jsx(T, { style: {
3319
3319
  width: "fit-content"
3320
3320
  }, onClick: () => d(), disabled: h === 0, children: e("interactions.add") })
3321
3321
  ] });
@@ -3555,7 +3555,7 @@ function Pf(t, e, n) {
3555
3555
  left: o[1].offset,
3556
3556
  center: (o[1].offset + o[1].width) / 2,
3557
3557
  right: o[1].width
3558
- }, T = {
3558
+ }, I = {
3559
3559
  type: "group",
3560
3560
  children: []
3561
3561
  }, R = [
@@ -3598,12 +3598,12 @@ function Pf(t, e, n) {
3598
3598
  lineWidth: a
3599
3599
  };
3600
3600
  return R.forEach((V) => {
3601
- T.children.push({
3601
+ I.children.push({
3602
3602
  type: "line",
3603
3603
  shape: V,
3604
3604
  style: P
3605
3605
  });
3606
- }), T.children.push({
3606
+ }), I.children.push({
3607
3607
  type: "rect",
3608
3608
  shape: {
3609
3609
  x: f.q1[0] + v.left,
@@ -3616,7 +3616,7 @@ function Pf(t, e, n) {
3616
3616
  stroke: i,
3617
3617
  lineWidth: a
3618
3618
  }
3619
- }), T;
3619
+ }), I;
3620
3620
  }
3621
3621
  function Of(t, e) {
3622
3622
  const {
@@ -3941,13 +3941,13 @@ function Zf({
3941
3941
  vizManager: t.vizManager,
3942
3942
  instance: e
3943
3943
  }), u = mt(d.triggerManager, Dc.id), h = Rn(a, c.x_axis.data_key), m = Ne((v) => {
3944
- const T = k.get(h, v.name, {
3944
+ const I = k.get(h, v.name, {
3945
3945
  error: "rowData is not found"
3946
3946
  });
3947
3947
  u.forEach((R) => {
3948
3948
  d.runInteraction(R.id, {
3949
3949
  ...v,
3950
- rowData: T
3950
+ rowData: I
3951
3951
  });
3952
3952
  });
3953
3953
  }, [h, u, d]), x = C(() => ({
@@ -4148,7 +4148,7 @@ function rb(t) {
4148
4148
  } = Pc(), [l, c] = H(_o(a)), [d, {
4149
4149
  setTrue: u,
4150
4150
  setFalse: h
4151
- }] = st(!1), m = i % 2 === 1, x = m && a != null, f = !m && a != null, v = `map ${a} to color ${i}`, T = () => {
4151
+ }] = st(!1), m = i % 2 === 1, x = m && a != null, f = !m && a != null, v = `map ${a} to color ${i}`, I = () => {
4152
4152
  c(_o(a)), h();
4153
4153
  }, R = () => {
4154
4154
  h(), n == null || n(Number(l));
@@ -4171,7 +4171,7 @@ function rb(t) {
4171
4171
  backgroundColor: s
4172
4172
  } }) }),
4173
4173
  /* @__PURE__ */ r.jsxs(Bn.Dropdown, { children: [
4174
- /* @__PURE__ */ r.jsx(me, { withinPortal: !0, zIndex: 340, label: e("common.actions.close"), children: /* @__PURE__ */ r.jsx(wr, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: T, style: {
4174
+ /* @__PURE__ */ r.jsx(me, { withinPortal: !0, zIndex: 340, label: e("common.actions.close"), children: /* @__PURE__ */ r.jsx(wr, { "data-testid": "palette-item-cancel", size: "sm", color: "gray", onClick: I, style: {
4175
4175
  position: "absolute",
4176
4176
  top: "0.5em",
4177
4177
  right: "0.8em"
@@ -4182,8 +4182,8 @@ function rb(t) {
4182
4182
  c(K);
4183
4183
  }, error: l && Y }),
4184
4184
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
4185
- /* @__PURE__ */ r.jsx(I, { variant: "light", color: "red", size: "xs", onClick: P, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), children: e("common.actions.delete") }),
4186
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: R, disabled: Y, children: e("common.actions.save") })
4185
+ /* @__PURE__ */ r.jsx(T, { variant: "light", color: "red", size: "xs", onClick: P, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), children: e("common.actions.delete") }),
4186
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), "data-testid": "palette-item-ok", size: "xs", onClick: R, disabled: Y, children: e("common.actions.save") })
4187
4187
  ] })
4188
4188
  ] })
4189
4189
  ] })
@@ -4230,7 +4230,7 @@ const sb = z(({
4230
4230
  const v = () => {
4231
4231
  m(), i == null || i(Xt(l));
4232
4232
  };
4233
- function T(P) {
4233
+ function I(P) {
4234
4234
  c((V) => ({
4235
4235
  ...V,
4236
4236
  steps: P
@@ -4240,13 +4240,13 @@ const sb = z(({
4240
4240
  m(), c(s);
4241
4241
  };
4242
4242
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
4243
- /* @__PURE__ */ r.jsx(I, { variant: "outline", onClick: h, children: e(d == null ? void 0 : d.displayName) }),
4243
+ /* @__PURE__ */ r.jsx(T, { variant: "outline", onClick: h, children: e(d == null ? void 0 : d.displayName) }),
4244
4244
  /* @__PURE__ */ r.jsx(Se, { size: 508, title: e("style.color.interpolation.setup"), opened: u, onClose: m, zIndex: 320, children: u && /* @__PURE__ */ r.jsxs(S, { "data-testid": "color-interpolation-modal", children: [
4245
4245
  /* @__PURE__ */ r.jsx(O, { label: e("style.color.interpolation.palette.label"), value: l.interpolation, data: x, onChange: f, withinPortal: !0, zIndex: 340, maxDropdownHeight: 500 }),
4246
- /* @__PURE__ */ r.jsx(ib, { steps: l.steps, interpolation: d, onChange: T }),
4246
+ /* @__PURE__ */ r.jsx(ib, { steps: l.steps, interpolation: d, onChange: I }),
4247
4247
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
4248
- /* @__PURE__ */ r.jsx(I, { onClick: R, variant: "subtle", children: e("common.actions.cancel") }),
4249
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: v, children: e("common.actions.save") })
4248
+ /* @__PURE__ */ r.jsx(T, { onClick: R, variant: "subtle", children: e("common.actions.cancel") }),
4249
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: v, children: e("common.actions.save") })
4250
4250
  ] })
4251
4251
  ] }) })
4252
4252
  ] });
@@ -4348,29 +4348,29 @@ const sb = z(({
4348
4348
  } = ys({
4349
4349
  control: t,
4350
4350
  name: n
4351
- }), m = e(n), x = d.map((v, T) => ({
4351
+ }), m = e(n), x = d.map((v, I) => ({
4352
4352
  ...v,
4353
- ...m[T]
4353
+ ...m[I]
4354
4354
  })), f = () => {
4355
4355
  u(s());
4356
4356
  };
4357
4357
  return /* @__PURE__ */ r.jsxs(_, { defaultValue: "0", styles: db, children: [
4358
4358
  /* @__PURE__ */ r.jsxs(_.List, { children: [
4359
- x.map((v, T) => /* @__PURE__ */ r.jsx(_.Tab, { value: T.toString(), children: l(v, T) }, v.id)),
4359
+ x.map((v, I) => /* @__PURE__ */ r.jsx(_.Tab, { value: I.toString(), children: l(v, I) }, v.id)),
4360
4360
  /* @__PURE__ */ r.jsx(_.Tab, { onClick: f, value: "add", children: /* @__PURE__ */ r.jsx(me, { label: a, children: /* @__PURE__ */ r.jsx(an, { children: /* @__PURE__ */ r.jsx(Ct, { size: 18, color: "#228be6" }) }) }) })
4361
4361
  ] }),
4362
- x.map((v, T) => /* @__PURE__ */ r.jsx(_.Panel, { value: T.toString(), children: /* @__PURE__ */ r.jsxs(S, { children: [
4362
+ x.map((v, I) => /* @__PURE__ */ r.jsx(_.Panel, { value: I.toString(), children: /* @__PURE__ */ r.jsxs(S, { children: [
4363
4363
  i({
4364
4364
  field: v,
4365
- index: T
4365
+ index: I
4366
4366
  }),
4367
4367
  /* @__PURE__ */ r.jsx(E, { mb: -10, mt: 10, variant: "dashed" }),
4368
- /* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), color: "red", variant: "light", onClick: () => h(T), sx: {
4368
+ /* @__PURE__ */ r.jsx(T, { leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), color: "red", variant: "light", onClick: () => h(I), sx: {
4369
4369
  top: 15,
4370
4370
  right: 5
4371
4371
  }, disabled: c == null ? void 0 : c({
4372
4372
  field: v,
4373
- index: T,
4373
+ index: I,
4374
4374
  fields: x
4375
4375
  }), children: o })
4376
4376
  ] }) }, v.id))
@@ -4634,7 +4634,7 @@ function yb({
4634
4634
  toggle: s
4635
4635
  }] = on(!1);
4636
4636
  return /* @__PURE__ */ r.jsxs(M, { children: [
4637
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", w: "100%", compact: !0, onClick: s, leftIcon: n ? /* @__PURE__ */ r.jsx(km, { size: 14 }) : /* @__PURE__ */ r.jsx(Sm, { size: 14 }), children: e(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
4637
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", w: "100%", compact: !0, onClick: s, leftIcon: n ? /* @__PURE__ */ r.jsx(km, { size: 14 }) : /* @__PURE__ */ r.jsx(Sm, { size: 14 }), children: e(n ? "numbro.format.preview.close" : "numbro.format.preview.open") }),
4638
4638
  /* @__PURE__ */ r.jsx(kr, { in: n, children: n && /* @__PURE__ */ r.jsxs(Pe, { highlightOnHover: !0, sx: {
4639
4639
  tableLayout: "fixed"
4640
4640
  }, children: [
@@ -5116,7 +5116,7 @@ const Hi = {
5116
5116
  height: m,
5117
5117
  justifyContent: $b[c],
5118
5118
  alignItems: Pb[d]
5119
- }, children: /* @__PURE__ */ r.jsx(I, { ...u, onClick: f, children: Di(l)(x) }) });
5119
+ }, children: /* @__PURE__ */ r.jsx(T, { ...u, onClick: f, children: Di(l)(x) }) });
5120
5120
  }), Fb = ({
5121
5121
  value: t,
5122
5122
  onChange: e,
@@ -5644,7 +5644,7 @@ function cy({
5644
5644
  symbolSize: h,
5645
5645
  hide_in_legend: m,
5646
5646
  ...x
5647
- }, f, v, T, R) {
5647
+ }, f, v, I, R) {
5648
5648
  const P = e.type !== "category", V = {
5649
5649
  label: {
5650
5650
  show: !!i,
@@ -5656,7 +5656,7 @@ function cy({
5656
5656
  yAxisIndex: s,
5657
5657
  stack: c,
5658
5658
  color: d,
5659
- symbolSize: ly(h, v, t, T),
5659
+ symbolSize: ly(h, v, t, I),
5660
5660
  hide_in_legend: m,
5661
5661
  labelLayout: {
5662
5662
  hideOverlap: !0
@@ -5962,22 +5962,22 @@ function jy({
5962
5962
  } = xr(), x = L.useMemo(() => {
5963
5963
  const {
5964
5964
  stats: {
5965
- templates: T
5965
+ templates: I
5966
5966
  }
5967
5967
  } = a;
5968
5968
  return {
5969
- top: br(T.top, i, o),
5970
- bottom: br(T.bottom, i, o)
5969
+ top: br(I.top, i, o),
5970
+ bottom: br(I.bottom, i, o)
5971
5971
  };
5972
5972
  }, [a, o]), f = Math.max(0, It(c) - u - m), v = zt(l);
5973
5973
  return /* @__PURE__ */ r.jsxs(it, { width: l, height: c, children: [
5974
5974
  /* @__PURE__ */ r.jsx(w, { ref: d, align: "left", size: "xs", pl: "sm", sx: {
5975
5975
  display: jo(a.stats.templates.top) ? "block" : "none"
5976
- }, children: Object.values(x.top).map((T, R) => /* @__PURE__ */ r.jsx(L.Fragment, { children: T }, R)) }),
5976
+ }, children: Object.values(x.top).map((I, R) => /* @__PURE__ */ r.jsx(L.Fragment, { children: I }, R)) }),
5977
5977
  /* @__PURE__ */ r.jsx(vy, { variables: i, width: v, height: f, data: o, conf: a, interactionManager: n }),
5978
5978
  /* @__PURE__ */ r.jsx(w, { ref: h, align: "left", size: "xs", pl: "sm", sx: {
5979
5979
  display: jo(a.stats.templates.bottom) ? "block" : "none"
5980
- }, children: Object.values(x.bottom).map((T, R) => /* @__PURE__ */ r.jsx(L.Fragment, { children: T }, R)) })
5980
+ }, children: Object.values(x.bottom).map((I, R) => /* @__PURE__ */ r.jsx(L.Fragment, { children: I }, R)) })
5981
5981
  ] });
5982
5982
  }
5983
5983
  function wy({
@@ -6416,17 +6416,17 @@ const Ty = ({
6416
6416
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
6417
6417
  /* @__PURE__ */ r.jsx(M, { sx: {
6418
6418
  width: "50%"
6419
- }, children: /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
6419
+ }, children: /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", mt: 24, onClick: i, sx: {
6420
6420
  flexGrow: 0
6421
6421
  }, leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), children: n("chart.symbol_size.setup.label") }) }),
6422
6422
  /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("chart.symbol_size.setup.title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(S, { children: [
6423
6423
  /* @__PURE__ */ r.jsx(E, { mt: 10, mb: -10, label: n("chart.symbol_size.setup.description"), labelPosition: "center", variant: "dashed" }),
6424
6424
  /* @__PURE__ */ r.jsx(Ty, { value: o.func_content, onChange: u }),
6425
6425
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
6426
- /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
6426
+ /* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
6427
6427
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
6428
- /* @__PURE__ */ r.jsx(I, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
6429
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
6428
+ /* @__PURE__ */ r.jsx(T, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
6429
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
6430
6430
  ] })
6431
6431
  ] })
6432
6432
  ] }) })
@@ -8735,7 +8735,7 @@ class Hy {
8735
8735
  createChain(e, n = !0) {
8736
8736
  const { rawCommands: s, editor: i, state: a } = this, { view: o } = i, l = [], c = !!e, d = e || a.tr, u = () => (!c && n && !d.getMeta("preventDispatch") && !this.hasCustomState && o.dispatch(d), l.every((m) => m === !0)), h = {
8737
8737
  ...Object.fromEntries(Object.entries(s).map(([m, x]) => [m, (...v) => {
8738
- const T = this.buildProps(d, n), R = x(...v)(T);
8738
+ const I = this.buildProps(d, n), R = x(...v)(I);
8739
8739
  return l.push(R), h;
8740
8740
  }])),
8741
8741
  run: u
@@ -9231,10 +9231,10 @@ function W_(t, e, n = {}) {
9231
9231
  const l = [];
9232
9232
  if (i.forEach(({ $from: h, $to: m }) => {
9233
9233
  const x = h.pos, f = m.pos;
9234
- t.doc.nodesBetween(x, f, (v, T) => {
9234
+ t.doc.nodesBetween(x, f, (v, I) => {
9235
9235
  if (!v.isText && !v.marks.length)
9236
9236
  return;
9237
- const R = Math.max(x, T), P = Math.min(f, T + v.nodeSize), V = P - R;
9237
+ const R = Math.max(x, I), P = Math.min(f, I + v.nodeSize), V = P - R;
9238
9238
  o += V, l.push(...v.marks.map((Y) => ({
9239
9239
  mark: Y,
9240
9240
  from: R,
@@ -9350,8 +9350,8 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9350
9350
  attrs: u
9351
9351
  }
9352
9352
  ] : void 0), f && (e.split(e.mapping.map(l.pos), 1, x), m && !h && !l.parentOffset && l.parent.type !== m)) {
9353
- const v = e.mapping.map(l.before()), T = e.doc.resolve(v);
9354
- l.node(-1).canReplaceWith(T.index(), T.index() + 1, m) && e.setNodeMarkup(e.mapping.map(l.before()), m);
9353
+ const v = e.mapping.map(l.before()), I = e.doc.resolve(v);
9354
+ l.node(-1).canReplaceWith(I.index(), I.index() + 1, m) && e.setNodeMarkup(e.mapping.map(l.before()), m);
9355
9355
  }
9356
9356
  t && Ao(n, i.extensionManager.splittableMarks), e.scrollIntoView();
9357
9357
  }
@@ -9369,14 +9369,14 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9369
9369
  if (l.depth === 2 || l.node(-3).type !== o || l.index(-2) !== l.node(-2).childCount - 1)
9370
9370
  return !1;
9371
9371
  if (s) {
9372
- let T = ue.empty;
9372
+ let I = ue.empty;
9373
9373
  const R = l.index(-1) ? 1 : l.index(-2) ? 2 : 3;
9374
9374
  for (let Z = l.depth - R; Z >= l.depth - 3; Z -= 1)
9375
- T = ue.from(l.node(Z).copy(T));
9375
+ I = ue.from(l.node(Z).copy(I));
9376
9376
  const P = l.indexAfter(-1) < l.node(-2).childCount ? 1 : l.indexAfter(-2) < l.node(-3).childCount ? 2 : 3, V = es(h, l.node().type.name, l.node().attrs), Y = ((a = o.contentMatch.defaultType) === null || a === void 0 ? void 0 : a.createAndFill(V)) || void 0;
9377
- T = T.append(ue.from(o.createAndFill(null, Y) || void 0));
9377
+ I = I.append(ue.from(o.createAndFill(null, Y) || void 0));
9378
9378
  const te = l.before(l.depth - (R - 1));
9379
- e.replace(te, l.after(-P), new ge(T, 4 - R, 0));
9379
+ e.replace(te, l.after(-P), new ge(I, 4 - R, 0));
9380
9380
  let K = -1;
9381
9381
  e.doc.nodesBetween(te, e.doc.content.size, (Z, we) => {
9382
9382
  if (K > -1)
@@ -9395,7 +9395,7 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9395
9395
  if (!Zr(e.doc, l.pos, 2))
9396
9396
  return !1;
9397
9397
  if (s) {
9398
- const { selection: T, storedMarks: R } = n, { splittableMarks: P } = i.extensionManager, V = R || T.$to.parentOffset && T.$from.marks();
9398
+ const { selection: I, storedMarks: R } = n, { splittableMarks: P } = i.extensionManager, V = R || I.$to.parentOffset && I.$from.marks();
9399
9399
  if (e.split(l.pos, 2, v).scrollIntoView(), !V || !s)
9400
9400
  return !0;
9401
9401
  const Y = V.filter((te) => P.includes(te.type.name));
@@ -9421,7 +9421,7 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9421
9421
  const i = t.doc.nodeAt(s);
9422
9422
  return n.node.type === (i == null ? void 0 : i.type) && Kc(t.doc, s) && t.join(s), !0;
9423
9423
  }, ev = (t, e, n, s = {}) => ({ editor: i, tr: a, state: o, dispatch: l, chain: c, commands: d, can: u }) => {
9424
- const { extensions: h, splittableMarks: m } = i.extensionManager, x = Ke(t, o.schema), f = Ke(e, o.schema), { selection: v, storedMarks: T } = o, { $from: R, $to: P } = v, V = R.blockRange(P), Y = T || v.$to.parentOffset && v.$from.marks();
9424
+ const { extensions: h, splittableMarks: m } = i.extensionManager, x = Ke(t, o.schema), f = Ke(e, o.schema), { selection: v, storedMarks: I } = o, { $from: R, $to: P } = v, V = R.blockRange(P), Y = I || v.$to.parentOffset && v.$from.marks();
9425
9425
  if (!V)
9426
9426
  return !1;
9427
9427
  const te = ia((K) => Eo(K.type.name, h))(v);
@@ -9476,7 +9476,7 @@ const X_ = ({ keepMarks: t = !0 } = {}) => ({ tr: e, state: n, dispatch: s, edit
9476
9476
  return !0;
9477
9477
  if (u && o) {
9478
9478
  let { from: m, to: x } = l;
9479
- const f = (a = d.marks().find((T) => T.type === c)) === null || a === void 0 ? void 0 : a.attrs, v = td(d, c, f);
9479
+ const f = (a = d.marks().find((I) => I.type === c)) === null || a === void 0 ? void 0 : a.attrs, v = td(d, c, f);
9480
9480
  v && (m = v.from, x = v.to), n.removeMark(m, x, c);
9481
9481
  } else
9482
9482
  h.forEach((m) => {
@@ -9804,7 +9804,7 @@ function ad() {
9804
9804
  }
9805
9805
  }
9806
9806
  } }) }),
9807
- /* @__PURE__ */ r.jsx(I, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 16 }), children: t("function_utils.trigger_text") })
9807
+ /* @__PURE__ */ r.jsx(T, { variant: "light", color: "violet", size: "xs", onClick: n, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 16 }), children: t("function_utils.trigger_text") })
9808
9808
  ] });
9809
9809
  }
9810
9810
  const xv = ({
@@ -9859,9 +9859,9 @@ const xv = ({
9859
9859
  }, children: [
9860
9860
  /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(ad, {}) }),
9861
9861
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
9862
- /* @__PURE__ */ r.jsx(I, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Dl, { size: 16 }), children: a("common.actions.reset_to_default") }),
9863
- /* @__PURE__ */ r.jsx(I, { onClick: d, color: "red", size: "xs", disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 16 }), children: a("common.actions.revert_changes") }),
9864
- /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", onClick: c, disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), children: a("common.actions.save_changes") })
9862
+ /* @__PURE__ */ r.jsx(T, { onClick: u, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Dl, { size: 16 }), children: a("common.actions.reset_to_default") }),
9863
+ /* @__PURE__ */ r.jsx(T, { onClick: d, color: "red", size: "xs", disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 16 }), children: a("common.actions.revert_changes") }),
9864
+ /* @__PURE__ */ r.jsx(T, { color: "green", size: "xs", onClick: c, disabled: !h, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), children: a("common.actions.save_changes") })
9865
9865
  ] })
9866
9866
  ] }),
9867
9867
  /* @__PURE__ */ r.jsx(w, { size: 14, children: n }),
@@ -9886,7 +9886,7 @@ const xv = ({
9886
9886
  i,
9887
9887
  /* @__PURE__ */ r.jsx(M, { h: 600, children: /* @__PURE__ */ r.jsx(Yn, { value: e, onChange: n, defaultValue: l, label: s }) })
9888
9888
  ] }),
9889
- /* @__PURE__ */ r.jsx(I, { onClick: u, ...o, children: a })
9889
+ /* @__PURE__ */ r.jsx(T, { onClick: u, ...o, children: a })
9890
9890
  ] });
9891
9891
  });
9892
9892
  function gv({
@@ -11758,10 +11758,10 @@ function Cj({
11758
11758
  }
11759
11759
  }, x = [u, h, m], f = s[`${l}---${c}`];
11760
11760
  return f && t.tooltip.metrics.forEach((v) => {
11761
- const T = F(v.data_key);
11761
+ const I = F(v.data_key);
11762
11762
  x.push({
11763
11763
  label: v.name,
11764
- value: Sj(k.get(f, T.columnKey, "")),
11764
+ value: Sj(k.get(f, I.columnKey, "")),
11765
11765
  style: {
11766
11766
  label: "",
11767
11767
  value: ""
@@ -11959,17 +11959,17 @@ const Dj = ({
11959
11959
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
11960
11960
  /* @__PURE__ */ r.jsx(M, { sx: {
11961
11961
  width: "50%"
11962
- }, children: /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
11962
+ }, children: /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
11963
11963
  flexGrow: 0
11964
11964
  }, children: n("chart.number_or_dynamic_value.dynamic.setup") }) }),
11965
11965
  /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("chart.number_or_dynamic_value.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(S, { children: [
11966
11966
  /* @__PURE__ */ r.jsx(E, { mt: 10, mb: -10, label: n("chart.number_or_dynamic_value.dynamic.guide"), labelPosition: "center", variant: "dashed" }),
11967
11967
  /* @__PURE__ */ r.jsx(Dj, { value: o.value, onChange: u }),
11968
11968
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
11969
- /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
11969
+ /* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
11970
11970
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
11971
- /* @__PURE__ */ r.jsx(I, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
11972
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
11971
+ /* @__PURE__ */ r.jsx(T, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
11972
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
11973
11973
  ] })
11974
11974
  ] })
11975
11975
  ] }) })
@@ -12319,7 +12319,7 @@ function Wj(t, e, n, s, i) {
12319
12319
  }, {}), o = $j(t.visualMap, a), {
12320
12320
  min: l,
12321
12321
  max: c
12322
- } = o, d = vj(t), u = jj(t), h = F(t.x_axis.data_key), m = F(t.y_axis.data_key), x = F(t.heat_block.data_key), f = k.uniq(e[h.queryID].map((V) => V[h.columnKey])), v = k.uniq(e[h.queryID].map((V) => V[m.columnKey])), T = e[h.queryID].map((V) => {
12322
+ } = o, d = vj(t), u = jj(t), h = F(t.x_axis.data_key), m = F(t.y_axis.data_key), x = F(t.heat_block.data_key), f = k.uniq(e[h.queryID].map((V) => V[h.columnKey])), v = k.uniq(e[h.queryID].map((V) => V[m.columnKey])), I = e[h.queryID].map((V) => {
12323
12323
  const Y = k.get(V, h.columnKey), te = k.get(V, m.columnKey), K = k.get(V, x.columnKey), Z = {
12324
12324
  value: [Y, te, K]
12325
12325
  }, {
@@ -12333,7 +12333,7 @@ function Wj(t, e, n, s, i) {
12333
12333
  return {
12334
12334
  xAxis: Ij(t, f, d.x_axis, R),
12335
12335
  yAxis: Tj(t, v, d.y_axis, R),
12336
- series: kj(t, T, R),
12336
+ series: kj(t, I, R),
12337
12337
  tooltip: zj(t, e, d, u),
12338
12338
  grid: wj(t),
12339
12339
  visualMap: o
@@ -13253,8 +13253,8 @@ function Iw({
13253
13253
  const v = k.get(h, f.name, {
13254
13254
  error: "rowData is not found"
13255
13255
  });
13256
- u.forEach((T) => {
13257
- d.runInteraction(T.id, {
13256
+ u.forEach((I) => {
13257
+ d.runInteraction(I.id, {
13258
13258
  ...f,
13259
13259
  rowData: v
13260
13260
  });
@@ -13355,7 +13355,7 @@ const Mw = (t, e) => `
13355
13355
  i18n: e
13356
13356
  } = y(), [n, s] = H(!1), i = C(() => Mw(t("viz.pareto_chart.line_80_20.param_section_note_1"), t("viz.pareto_chart.line_80_20.param_section_note_2")), [e.language]);
13357
13357
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
13358
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", compact: !0, onClick: () => s((a) => !a), children: t(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
13358
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", compact: !0, onClick: () => s((a) => !a), children: t(n ? "common.actions.close" : "viz.pareto_chart.line_80_20.click_to_see_params") }),
13359
13359
  /* @__PURE__ */ r.jsx(kr, { in: n, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: i }) })
13360
13360
  ] });
13361
13361
  };
@@ -14300,8 +14300,8 @@ function y0({
14300
14300
  const {
14301
14301
  queryID: h,
14302
14302
  columnKey: m
14303
- } = F(t.series_name_key), x = k.keyBy(e[h], m), f = t.additional_series.reduce((v, T) => {
14304
- const R = F(T.name_key), P = k.keyBy(e[R.queryID], R.columnKey);
14303
+ } = F(t.series_name_key), x = k.keyBy(e[h], m), f = t.additional_series.reduce((v, I) => {
14304
+ const R = F(I.name_key), P = k.keyBy(e[R.queryID], R.columnKey);
14305
14305
  return {
14306
14306
  ...v,
14307
14307
  ...P
@@ -15124,7 +15124,7 @@ function Z0({
15124
15124
  t: n
15125
15125
  } = y();
15126
15126
  return /* @__PURE__ */ r.jsxs(Te, { shadow: "md", withinPortal: !0, zIndex: 320, children: [
15127
- /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
15127
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: n("viz.regression_chart.regression_info") }) }),
15128
15128
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(He, { children: /* @__PURE__ */ r.jsx(X0, { conf: t, queryData: e }) }) })
15129
15129
  ] });
15130
15130
  }
@@ -16525,16 +16525,16 @@ const Kk = ({
16525
16525
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
16526
16526
  /* @__PURE__ */ r.jsx(M, { sx: {
16527
16527
  width: "50%"
16528
- }, children: /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
16528
+ }, children: /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: i, sx: {
16529
16529
  flexGrow: 0
16530
16530
  }, children: n("viz.scatter_chart.color.dynamic.setup") }) }),
16531
16531
  /* @__PURE__ */ r.jsx(Se, { size: 800, title: n("viz.scatter_chart.color.dynamic.setup_title"), opened: s, onClose: a, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: s && /* @__PURE__ */ r.jsxs(S, { children: [
16532
16532
  /* @__PURE__ */ r.jsx(Kk, { value: o.func_content, onChange: u }),
16533
16533
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
16534
- /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
16534
+ /* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.reset_to_default") }),
16535
16535
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
16536
- /* @__PURE__ */ r.jsx(I, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
16537
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
16536
+ /* @__PURE__ */ r.jsx(T, { onClick: d, variant: "subtle", children: n("common.actions.cancel") }),
16537
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: c, children: n("common.actions.save") })
16538
16538
  ] })
16539
16539
  ] })
16540
16540
  ] }) })
@@ -17328,7 +17328,7 @@ const LS = {
17328
17328
  }, [i.payloadForSQL, c]), f = C(() => br(x, l, t.data), [x, l, t.data, t]), v = C(() => l.reduce((P, V) => {
17329
17329
  const Y = qt(V, o);
17330
17330
  return P[V.name] = ut(V, Y), P;
17331
- }, {}), [o, l]), T = Ne(() => {
17331
+ }, {}), [o, l]), I = Ne(() => {
17332
17332
  s.forEach((P) => {
17333
17333
  n.runInteraction(P.id, {
17334
17334
  variables: v
@@ -17345,7 +17345,7 @@ const LS = {
17345
17345
  height: m,
17346
17346
  justifyContent: LS[d],
17347
17347
  alignItems: RS[u]
17348
- }, children: /* @__PURE__ */ r.jsx(M, { sx: R, onClick: T, children: Object.values(f).map((P, V) => /* @__PURE__ */ r.jsx(L.Fragment, { children: P }, V)) }) });
17348
+ }, children: /* @__PURE__ */ r.jsx(M, { sx: R, onClick: I, children: Object.values(f).map((P, V) => /* @__PURE__ */ r.jsx(L.Fragment, { children: P }, V)) }) });
17349
17349
  });
17350
17350
  function AS({
17351
17351
  context: t
@@ -18364,10 +18364,10 @@ function No({
18364
18364
  minSize: typeof Ee.width == "number" ? Ee.width : void 0
18365
18365
  });
18366
18366
  });
18367
- }, [x, f]), [T, R] = H([]), P = ec({
18367
+ }, [x, f]), [I, R] = H([]), P = ec({
18368
18368
  data: t,
18369
18369
  state: {
18370
- sorting: T
18370
+ sorting: I
18371
18371
  },
18372
18372
  onSortingChange: R,
18373
18373
  columns: v,
@@ -18490,14 +18490,14 @@ const A1 = re((t, e) => {
18490
18490
  } = y(), {
18491
18491
  colorManager: s
18492
18492
  } = Kt(Nt), [i, a] = H(Td(t.value)), [o, l] = H(R1(s, t.value)), c = oo(o), [d, u] = H(E1(s, t.value)), h = oo(d), m = (v) => {
18493
- var T, R, P;
18494
- a(v || "none"), v === "static" ? (T = t.onChange) == null || T.call(t, c.current) : v === "none" || !v ? (R = t.onChange) == null || R.call(t, "none") : (P = t.onChange) == null || P.call(t, h.current);
18493
+ var I, R, P;
18494
+ a(v || "none"), v === "static" ? (I = t.onChange) == null || I.call(t, c.current) : v === "none" || !v ? (R = t.onChange) == null || R.call(t, "none") : (P = t.onChange) == null || P.call(t, h.current);
18495
18495
  }, x = (v) => {
18496
- var T;
18497
- l(v), (T = t.onChange) == null || T.call(t, v);
18496
+ var I;
18497
+ l(v), (I = t.onChange) == null || I.call(t, v);
18498
18498
  }, f = (v) => {
18499
- var T;
18500
- u(v), (T = t.onChange) == null || T.call(t, v);
18499
+ var I;
18500
+ u(v), (I = t.onChange) == null || I.call(t, v);
18501
18501
  };
18502
18502
  return /* @__PURE__ */ r.jsxs(S, { align: "stretch", children: [
18503
18503
  /* @__PURE__ */ r.jsx(ob, { label: n("viz.table.column.cell_background"), value: i || "none", onChange: m }),
@@ -18536,7 +18536,7 @@ const A1 = re((t, e) => {
18536
18536
  return B(() => {
18537
18537
  c(t);
18538
18538
  }, [t]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
18539
- /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
18539
+ /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
18540
18540
  flexGrow: 0
18541
18541
  }, children: s("viz.table.column.custom_cell_content") }),
18542
18542
  /* @__PURE__ */ r.jsx(Se, { size: 800, title: s("viz.table.column.custom_cell_content"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(S, { children: [
@@ -18549,10 +18549,10 @@ const A1 = re((t, e) => {
18549
18549
  }
18550
18550
  } }) }),
18551
18551
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
18552
- /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
18552
+ /* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
18553
18553
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
18554
- /* @__PURE__ */ r.jsx(I, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
18555
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: d, children: s("common.actions.save") })
18554
+ /* @__PURE__ */ r.jsx(T, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
18555
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: d, children: s("common.actions.save") })
18556
18556
  ] })
18557
18557
  ] })
18558
18558
  ] }) })
@@ -18605,7 +18605,7 @@ const A1 = re((t, e) => {
18605
18605
  field: c
18606
18606
  }) => /* @__PURE__ */ r.jsx(A1, { ...c }) }),
18607
18607
  /* @__PURE__ */ r.jsx(E, { mb: 4, mt: 12, variant: "dashed" }),
18608
- /* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: a("viz.table.column.delete") })
18608
+ /* @__PURE__ */ r.jsx(T, { leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), color: "red", variant: "light", onClick: () => s(e), children: a("viz.table.column.delete") })
18609
18609
  ] });
18610
18610
  }, F1 = ({
18611
18611
  control: t,
@@ -19094,16 +19094,16 @@ const Md = L.forwardRef(Z1), eC = ({
19094
19094
  return B(() => {
19095
19095
  c(t);
19096
19096
  }, [t]), /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
19097
- /* @__PURE__ */ r.jsx(I, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
19097
+ /* @__PURE__ */ r.jsx(T, { color: "grape", variant: "filled", leftIcon: /* @__PURE__ */ r.jsx(ln, { size: 16 }), mt: 24, onClick: a, sx: {
19098
19098
  flexGrow: 0
19099
19099
  }, children: s("viz.text.content.edit") }),
19100
19100
  /* @__PURE__ */ r.jsx(Se, { size: 800, title: s("viz.text.content.label"), opened: i, onClose: o, closeOnClickOutside: !1, withCloseButton: !1, zIndex: 320, children: i && /* @__PURE__ */ r.jsxs(S, { children: [
19101
19101
  /* @__PURE__ */ r.jsx(eC, { value: l, onChange: c }),
19102
19102
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
19103
- /* @__PURE__ */ r.jsx(I, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
19103
+ /* @__PURE__ */ r.jsx(T, { onClick: h, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: s("common.actions.reset_to_default") }),
19104
19104
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
19105
- /* @__PURE__ */ r.jsx(I, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
19106
- /* @__PURE__ */ r.jsx(I, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: d, children: s("common.actions.save_changes") })
19105
+ /* @__PURE__ */ r.jsx(T, { onClick: u, variant: "subtle", children: s("common.actions.cancel") }),
19106
+ /* @__PURE__ */ r.jsx(T, { color: "green", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), onClick: d, children: s("common.actions.save_changes") })
19107
19107
  ] })
19108
19108
  ] })
19109
19109
  ] }) })
@@ -19122,13 +19122,13 @@ function nC({
19122
19122
  func_content: x,
19123
19123
  horizontal_align: f,
19124
19124
  font_size: v,
19125
- font_weight: T
19125
+ font_weight: I
19126
19126
  } = i;
19127
19127
  return {
19128
19128
  func_content: x,
19129
19129
  horizontal_align: f,
19130
19130
  font_size: v,
19131
- font_weight: T
19131
+ font_weight: I
19132
19132
  };
19133
19133
  }, [i]);
19134
19134
  B(() => {
@@ -19368,7 +19368,7 @@ function mC({
19368
19368
  }) => /* @__PURE__ */ r.jsx(D, { label: "Question", required: !0, ...h }) })
19369
19369
  ] }),
19370
19370
  /* @__PURE__ */ r.jsx(E, { variant: "dashed", mt: 16, mb: 8 }),
19371
- /* @__PURE__ */ r.jsx(I, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 20 }), disabled: !u, sx: {
19371
+ /* @__PURE__ */ r.jsx(T, { type: "submit", variant: "filled", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Yt, { size: 20 }), disabled: !u, sx: {
19372
19372
  alignSelf: "flex-end"
19373
19373
  }, children: "Submit Changes" })
19374
19374
  ] }) });
@@ -20229,7 +20229,7 @@ function lz({
20229
20229
  invisible: u,
20230
20230
  id: h,
20231
20231
  ...m
20232
- }, x, f, v, T, R) {
20232
+ }, x, f, v, I, R) {
20233
20233
  const P = {
20234
20234
  label: {
20235
20235
  show: !!s,
@@ -21211,7 +21211,7 @@ function Vz(t, e, n, s) {
21211
21211
  x,
21212
21212
  percentage: f,
21213
21213
  count: v,
21214
- sum: T
21214
+ sum: I
21215
21215
  } = Fz(m);
21216
21216
  return `
21217
21217
  <table style="width: auto">
@@ -21244,7 +21244,7 @@ function Vz(t, e, n, s) {
21244
21244
  </tr>
21245
21245
  <tr>
21246
21246
  <th style="text-align: right;">总数</th>
21247
- <td style="text-align: left; padding: 0 1em;">${T}</td>
21247
+ <td style="text-align: left; padding: 0 1em;">${I}</td>
21248
21248
  </tr>
21249
21249
  </tbody>
21250
21250
  </table>
@@ -21574,7 +21574,7 @@ const Xz = {
21574
21574
  };
21575
21575
  function tI() {
21576
21576
  return /* @__PURE__ */ r.jsxs(Te, { width: 400, shadow: "md", children: [
21577
- /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: "指标说明" }) }),
21577
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", compact: !0, leftIcon: /* @__PURE__ */ r.jsx(Mn, { size: 14 }), children: "指标说明" }) }),
21578
21578
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(Pe, { fontSize: 14, sx: eI, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
21579
21579
  /* @__PURE__ */ r.jsxs("tr", { children: [
21580
21580
  /* @__PURE__ */ r.jsx("th", { children: "估算偏差" }),
@@ -22623,10 +22623,10 @@ function WI({
22623
22623
  }
22624
22624
  }, x = [u, h, m], f = s[`${l}---${c}`];
22625
22625
  return f && t.tooltip.metrics.forEach((v) => {
22626
- const T = F(v.data_key);
22626
+ const I = F(v.data_key);
22627
22627
  x.push({
22628
22628
  label: v.name,
22629
- value: BI(k.get(f, T.columnKey, "")),
22629
+ value: BI(k.get(f, I.columnKey, "")),
22630
22630
  style: {
22631
22631
  label: "",
22632
22632
  value: ""
@@ -23250,7 +23250,7 @@ const dT = ({
23250
23250
  key: c,
23251
23251
  value: d,
23252
23252
  getRange: u
23253
- }) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(I, { compact: !0, size: "xs", variant: "subtle", onClick: s(u), children: e(`filter.widget.date_range.shortcut.${o}.${a ? "full." : ""}${c}`) }) }, c))
23253
+ }) => /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { compact: !0, size: "xs", variant: "subtle", onClick: s(u), children: e(`filter.widget.date_range.shortcut.${o}.${a ? "full." : ""}${c}`) }) }, c))
23254
23254
  ] }, o)) }) })
23255
23255
  ] });
23256
23256
  }, Yo = (t) => ({
@@ -23548,8 +23548,8 @@ const dT = ({
23548
23548
  classNames: e,
23549
23549
  styles: n,
23550
23550
  unstyled: s
23551
- }), [v, T] = H(!1), R = (K) => {
23552
- T(K);
23551
+ }), [v, I] = H(!1), R = (K) => {
23552
+ I(K);
23553
23553
  }, P = v && (l == null ? void 0 : l.length) > 0, [V, Y] = H(""), te = C(() => {
23554
23554
  if (!V)
23555
23555
  return d;
@@ -23950,9 +23950,9 @@ const bT = ({
23950
23950
  classNames: e,
23951
23951
  styles: n,
23952
23952
  unstyled: s
23953
- }), [T, R] = H(!1), P = (Y) => {
23953
+ }), [I, R] = H(!1), P = (Y) => {
23954
23954
  R(Y);
23955
- }, V = T && (l == null ? void 0 : l.length) > 0;
23955
+ }, V = I && (l == null ? void 0 : l.length) > 0;
23956
23956
  return /* @__PURE__ */ r.jsxs(S, { spacing: 3, children: [
23957
23957
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
23958
23958
  /* @__PURE__ */ r.jsxs(w, { className: f.label, children: [
@@ -24055,7 +24055,7 @@ const bT = ({
24055
24055
  type: s,
24056
24056
  ...i
24057
24057
  } = e;
24058
- return /* @__PURE__ */ r.jsx(I, { color: "blue", size: "sm", type: "submit", ...i, disabled: t || i.disabled, children: n });
24058
+ return /* @__PURE__ */ r.jsx(T, { color: "blue", size: "sm", type: "submit", ...i, disabled: t || i.disabled, children: n });
24059
24059
  };
24060
24060
  function IT(t) {
24061
24061
  const e = le();
@@ -24071,7 +24071,7 @@ const TT = ({
24071
24071
  const {
24072
24072
  t: n
24073
24073
  } = y();
24074
- return /* @__PURE__ */ r.jsx(b, { position: "right", ml: -4, mt: -4, mb: t ? 4 : 0, children: /* @__PURE__ */ r.jsx(I, { size: "xs", compact: !0, variant: "subtle", color: t ? "gray" : "blue", leftIcon: t ? /* @__PURE__ */ r.jsx(Rm, { size: 14 }) : /* @__PURE__ */ r.jsx(Em, { size: 14 }), onClick: e, children: n(t ? "filter.hide_filters" : "filter.show_filters") }) });
24074
+ return /* @__PURE__ */ r.jsx(b, { position: "right", ml: -4, mt: -4, mb: t ? 4 : 0, children: /* @__PURE__ */ r.jsx(T, { size: "xs", compact: !0, variant: "subtle", color: t ? "gray" : "blue", leftIcon: t ? /* @__PURE__ */ r.jsx(Rm, { size: 14 }) : /* @__PURE__ */ r.jsx(Em, { size: 14 }), onClick: e, children: n(t ? "filter.hide_filters" : "filter.show_filters") }) });
24075
24075
  }, Vd = z(function({
24076
24076
  view: e
24077
24077
  }) {
@@ -24094,8 +24094,8 @@ const TT = ({
24094
24094
  const d = i.filters.visibleInView(e.id), u = C(() => d.every((f) => f.should_auto_submit), [d]), h = C(() => d.filter((f) => k.get(f, "config.required", !1)), [d]), m = C(() => h.length === 0 ? !1 : h.some((f) => !f.requiredAndPass(c[f.key])), [c, h]);
24095
24095
  if (d.length === 0)
24096
24096
  return null;
24097
- const x = (f, v) => (T, R) => {
24098
- v(T), (f.should_auto_submit || R) && i.filters.setValueByKey(f.key, T);
24097
+ const x = (f, v) => (I, R) => {
24098
+ v(I), (f.should_auto_submit || R) && i.filters.setValueByKey(f.key, I);
24099
24099
  };
24100
24100
  return /* @__PURE__ */ r.jsxs("form", { onSubmit: o(i.filters.setValues), children: [
24101
24101
  /* @__PURE__ */ r.jsx(TT, { opened: n, toggle: s }),
@@ -25505,9 +25505,21 @@ const su = p.compose("ViewRenderModel", tD, p.model({
25505
25505
  const e = t.config;
25506
25506
  return e.tabs.length > 0 ? k.minBy(e.tabs, (s) => s.order).id : "";
25507
25507
  },
25508
+ get tabs() {
25509
+ return t.config.tabs;
25510
+ },
25511
+ get tabInfo() {
25512
+ const e = this.tabs.find((n) => n.id === t.tab);
25513
+ return e ? {
25514
+ id: e.id,
25515
+ name: e.name
25516
+ } : null;
25517
+ },
25518
+ get tabView() {
25519
+ return t.type !== W.Tabs ? null : this.tabs.find((e) => e.id === t.tab);
25520
+ },
25508
25521
  get tabViewID() {
25509
- var n;
25510
- return t.type !== W.Tabs ? "" : ((n = t.config.tabs.find((s) => s.id === t.tab)) == null ? void 0 : n.view_id) ?? "";
25522
+ return this.tabView ? this.tabView.view_id ?? "" : "";
25511
25523
  },
25512
25524
  get contentModel() {
25513
25525
  return Re(t, 3);
@@ -25548,6 +25560,10 @@ const su = p.compose("ViewRenderModel", tD, p.model({
25548
25560
  setTab(e) {
25549
25561
  t.tab = e ?? "";
25550
25562
  },
25563
+ setTabByTabInfo(e) {
25564
+ const n = t.tabs.find((s) => s.id === e.id);
25565
+ n && (t.tab = n.id);
25566
+ },
25551
25567
  afterCreate() {
25552
25568
  bt(t, tt(() => t.defaultTab, (e) => this.setTab(e), {
25553
25569
  fireImmediately: !0,
@@ -25581,6 +25597,13 @@ const su = p.compose("ViewRenderModel", tD, p.model({
25581
25597
  return t.current.filter(({
25582
25598
  id: n
25583
25599
  }) => e.has(n));
25600
+ },
25601
+ get firstVisibleTabsView() {
25602
+ return this.visibleViews.find((e) => e.type === W.Tabs);
25603
+ },
25604
+ get firstVisibleTabsViewActiveTab() {
25605
+ const e = this.firstVisibleTabsView;
25606
+ return e ? e.tabInfo : null;
25584
25607
  }
25585
25608
  })).actions((t) => ({
25586
25609
  appendToVisibles(e) {
@@ -25589,25 +25612,32 @@ const su = p.compose("ViewRenderModel", tD, p.model({
25589
25612
  rmVisibleViewID(e) {
25590
25613
  const n = t.visibleViewIDs.findIndex((s) => s === e);
25591
25614
  n !== -1 && t.visibleViewIDs.splice(n, 1);
25615
+ },
25616
+ setFirstVisibleTabsViewActiveTab(e) {
25617
+ if (!e)
25618
+ return;
25619
+ const n = t.firstVisibleTabsView;
25620
+ n && n.setTabByTabInfo(e);
25592
25621
  }
25593
25622
  }));
25594
- function sD(t) {
25595
- const e = t.length > 0 ? [t[0].id] : [];
25596
- return {
25597
- current: t.map((s) => {
25598
- const {
25599
- _name: i = s.type
25600
- } = s.config;
25601
- return {
25602
- ...s,
25603
- config: {
25604
- ...s.config,
25605
- _name: i
25606
- },
25607
- panelIDs: s.panelIDs
25608
- };
25609
- }),
25610
- visibleViewIDs: e
25623
+ function sD(t, e) {
25624
+ const n = t.length > 0 ? [t[0].id] : [], s = t.map((i) => {
25625
+ const {
25626
+ _name: a = i.type
25627
+ } = i.config;
25628
+ return {
25629
+ ...i,
25630
+ tab: "",
25631
+ config: {
25632
+ ...i.config,
25633
+ _name: a
25634
+ },
25635
+ panelIDs: i.panelIDs
25636
+ };
25637
+ });
25638
+ return e && (s[0].tab = e.id), {
25639
+ current: s,
25640
+ visibleViewIDs: n
25611
25641
  };
25612
25642
  }
25613
25643
  const iD = new Mp({
@@ -26878,7 +26908,7 @@ const Su = z(({
26878
26908
  panel: n,
26879
26909
  exitFullScreen: s
26880
26910
  }) {
26881
- return /* @__PURE__ */ r.jsx(Se, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(I, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(ym, { size: 20 }), children: "Exit fullscreen" }), styles: RD, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
26911
+ return /* @__PURE__ */ r.jsx(Se, { opened: !0, fullScreen: !0, onClose: s, title: /* @__PURE__ */ r.jsx(T, { color: "blue", size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(ym, { size: 20 }), children: "Exit fullscreen" }), styles: RD, children: /* @__PURE__ */ r.jsx(b, { grow: !0, sx: {
26882
26912
  flexGrow: 1,
26883
26913
  flexShrink: 0
26884
26914
  }, children: /* @__PURE__ */ r.jsx(Su, { view: e, panel: n }) }) });
@@ -27263,13 +27293,13 @@ const UD = z(({
27263
27293
  /* @__PURE__ */ r.jsx(O, { label: "View", value: c.view_id, onChange: c.setViewID, data: i }),
27264
27294
  /* @__PURE__ */ r.jsx(oe, { label: e("view.component.tabs.tab.order"), required: !0, value: c.order, onChange: (h) => c.setOrder(h || 0), min: 0, max: 1e3, step: 1 }),
27265
27295
  /* @__PURE__ */ r.jsx(Qn, { label: e("view.component.tabs.tab.color"), value: c.color, onChange: c.setColor, disabled: a.variant !== "default" }),
27266
- u && /* @__PURE__ */ r.jsx(I, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(Pm, { size: 18 }), gradient: {
27296
+ u && /* @__PURE__ */ r.jsx(T, { mt: 20, variant: "gradient", leftIcon: /* @__PURE__ */ r.jsx(Pm, { size: 18 }), gradient: {
27267
27297
  from: "cyan",
27268
27298
  to: "indigo"
27269
27299
  }, onClick: () => s.views.setIDOfVIE(u.id), children: e("view.component.tabs.tab.switch_to_view", {
27270
27300
  name: u.name
27271
27301
  }) }),
27272
- /* @__PURE__ */ r.jsx(I, { mt: 20, variant: "subtle", color: "red", onClick: () => o(d), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), children: e("view.component.tabs.tab.delete") })
27302
+ /* @__PURE__ */ r.jsx(T, { mt: 20, variant: "subtle", color: "red", onClick: () => o(d), disabled: l, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), children: e("view.component.tabs.tab.delete") })
27273
27303
  ] })
27274
27304
  ] }),
27275
27305
  u && /* @__PURE__ */ r.jsx(Da, { view: u })
@@ -28558,23 +28588,23 @@ const _M = p.model({
28558
28588
  t.views.appendMultiple(m);
28559
28589
  }
28560
28590
  if (Array.isArray(o)) {
28561
- const m = (v, T) => t.layouts.breakpointNameRecord[v] === T;
28591
+ const m = (v, I) => t.layouts.breakpointNameRecord[v] === I;
28562
28592
  let x = [];
28563
28593
  const f = o.filter((v) => m(v.name, v.breakpoint));
28564
28594
  f.forEach((v) => {
28565
- v.id === "basis" && (x = v.list), v.list.forEach((T) => {
28566
- const R = u.get(T.panelID);
28567
- T.id = Ht(), T.panelID = R;
28595
+ v.id === "basis" && (x = v.list), v.list.forEach((I) => {
28596
+ const R = u.get(I.panelID);
28597
+ I.id = Ht(), I.panelID = R;
28568
28598
  });
28569
28599
  }), t.layouts.list.forEach((v) => {
28570
- const T = f.find((R) => R.name === v.name && R.breakpoint === v.breakpoint);
28571
- if (!T) {
28600
+ const I = f.find((R) => R.name === v.name && R.breakpoint === v.breakpoint);
28601
+ if (!I) {
28572
28602
  x.forEach((R) => {
28573
28603
  v.addLayout(R);
28574
28604
  });
28575
28605
  return;
28576
28606
  }
28577
- T.list.forEach((R) => {
28607
+ I.list.forEach((R) => {
28578
28608
  v.addLayout(R);
28579
28609
  });
28580
28610
  });
@@ -30696,7 +30726,7 @@ const CM = z(({
30696
30726
  });
30697
30727
  }, a = s.changed;
30698
30728
  return /* @__PURE__ */ r.jsxs(b, { spacing: 0, children: [
30699
- /* @__PURE__ */ r.jsx(I, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), onClick: t, disabled: !a, sx: {
30729
+ /* @__PURE__ */ r.jsx(T, { color: "green", variant: "filled", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), onClick: t, disabled: !a, sx: {
30700
30730
  borderTopRightRadius: 0,
30701
30731
  borderBottomRightRadius: 0
30702
30732
  }, children: e("common.actions.save_changes") }),
@@ -30733,7 +30763,7 @@ const CM = z(({
30733
30763
  position: "relative"
30734
30764
  }, children: [
30735
30765
  /* @__PURE__ */ r.jsxs(b, { children: [
30736
- /* @__PURE__ */ r.jsx(I, { size: "xs", color: i ? "red" : "green", leftIcon: /* @__PURE__ */ r.jsx(qm, { size: 20 }), onClick: a, children: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(_s, { i18nKey: "common.actions.end_editing", values: {
30766
+ /* @__PURE__ */ r.jsx(T, { size: "xs", color: i ? "red" : "green", leftIcon: /* @__PURE__ */ r.jsx(qm, { size: 20 }), onClick: a, children: /* @__PURE__ */ r.jsx(b, { spacing: 4, children: /* @__PURE__ */ r.jsxs(_s, { i18nKey: "common.actions.end_editing", values: {
30737
30767
  name: s.name
30738
30768
  }, children: [
30739
30769
  "End Editing ",
@@ -30756,10 +30786,10 @@ const CM = z(({
30756
30786
  const {
30757
30787
  t
30758
30788
  } = y(), e = le(), n = ((i = e.views.VIE) == null ? void 0 : i.type) === W.Tabs, s = () => e.addANewPanel(e.views.idOfVIE);
30759
- return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(co, { size: 20 }), sx: {
30789
+ return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(co, { size: 20 }), sx: {
30760
30790
  ...Zo,
30761
30791
  transform: "none !important"
30762
- }, children: t("panel.add") }) }) : /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(co, { size: 20 }), sx: {
30792
+ }, children: t("panel.add") }) }) : /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(co, { size: 20 }), sx: {
30763
30793
  ...Zo,
30764
30794
  background: "rgb(231, 245, 255)"
30765
30795
  }, children: t("panel.add") });
@@ -30798,7 +30828,7 @@ const CM = z(({
30798
30828
  }), f = l("list"), v = h.map((Z, we) => ({
30799
30829
  ...Z,
30800
30830
  ...f[we]
30801
- })), T = () => {
30831
+ })), I = () => {
30802
30832
  m({
30803
30833
  id: Ht(),
30804
30834
  name: "",
@@ -30858,15 +30888,15 @@ const CM = z(({
30858
30888
  backgroundColor: "transparent"
30859
30889
  }, children: /* @__PURE__ */ r.jsx("td", { colSpan: 3, style: {
30860
30890
  padding: "0"
30861
- }, children: /* @__PURE__ */ r.jsx(me, { label: e("breakpoint.add"), children: /* @__PURE__ */ r.jsx(X, { variant: "subtle", size: "md", color: "blue", onClick: T, sx: {
30891
+ }, children: /* @__PURE__ */ r.jsx(me, { label: e("breakpoint.add"), children: /* @__PURE__ */ r.jsx(X, { variant: "subtle", size: "md", color: "blue", onClick: I, sx: {
30862
30892
  width: "100%"
30863
30893
  }, children: /* @__PURE__ */ r.jsx(Ct, { size: 18 }) }) }) }) })
30864
30894
  ] })
30865
30895
  ] }),
30866
30896
  /* @__PURE__ */ r.jsx(w, { mt: 6, ta: "right", size: "xs", color: "red", children: Y ?? " " }),
30867
30897
  /* @__PURE__ */ r.jsxs(b, { mt: 6, position: "apart", children: [
30868
- /* @__PURE__ */ r.jsx(I, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 18 }), disabled: !V, children: e("common.actions.revert") }),
30869
- /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", type: "submit", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), disabled: !V, children: e("common.actions.save_changes") })
30898
+ /* @__PURE__ */ r.jsx(T, { color: "orange", size: "xs", onClick: () => d(), leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 18 }), disabled: !V, children: e("common.actions.revert") }),
30899
+ /* @__PURE__ */ r.jsx(T, { color: "green", size: "xs", type: "submit", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), disabled: !V, children: e("common.actions.save_changes") })
30870
30900
  ] })
30871
30901
  ] }) });
30872
30902
  }), DM = z(() => {
@@ -30885,7 +30915,7 @@ const CM = z(({
30885
30915
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
30886
30916
  /* @__PURE__ */ r.jsxs(b, { children: [
30887
30917
  /* @__PURE__ */ r.jsxs(J, { withArrow: !0, withinPortal: !0, zIndex: 320, trigger: "hover", children: [
30888
- /* @__PURE__ */ r.jsx(J.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Nm, { size: 16 }), sx: {
30918
+ /* @__PURE__ */ r.jsx(J.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Nm, { size: 16 }), sx: {
30889
30919
  borderRadius: 0
30890
30920
  }, children: /* @__PURE__ */ r.jsxs(b, { spacing: 6, children: [
30891
30921
  /* @__PURE__ */ r.jsx(w, { size: "xs", fw: "normal", children: o.name }),
@@ -30923,10 +30953,10 @@ const CM = z(({
30923
30953
  var a;
30924
30954
  return (a = e.views.VIE) == null ? void 0 : a.downloadSchema();
30925
30955
  };
30926
- return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(zn, { size: 16 }), sx: {
30956
+ return n ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(zn, { size: 16 }), sx: {
30927
30957
  ...el,
30928
30958
  transform: "none !important"
30929
- }, children: t("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(zn, { size: 16 }), sx: {
30959
+ }, children: t("view.download_schema") }) }) : /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "blue", radius: 0, size: "xs", onClick: s, leftIcon: /* @__PURE__ */ r.jsx(zn, { size: 16 }), sx: {
30930
30960
  ...el
30931
30961
  // background: 'rgb(231, 245, 255)',
30932
30962
  }, children: t("view.download_schema") });
@@ -31133,16 +31163,16 @@ const VM = z(({
31133
31163
  }));
31134
31164
  };
31135
31165
  }, [m]);
31136
- const [f] = c(["content"]), v = !f, T = (R = o == null ? void 0 : o.content) == null ? void 0 : R.message;
31166
+ const [f] = c(["content"]), v = !f, I = (R = o == null ? void 0 : o.content) == null ? void 0 : R.message;
31137
31167
  return B(() => {
31138
- !f || T ? n() : e();
31139
- }, [f, T]), /* @__PURE__ */ r.jsx(M, { mx: "auto", sx: {
31168
+ !f || I ? n() : e();
31169
+ }, [f, I]), /* @__PURE__ */ r.jsx(M, { mx: "auto", sx: {
31140
31170
  position: "relative"
31141
31171
  }, children: /* @__PURE__ */ r.jsxs("form", { onSubmit: a(h), children: [
31142
31172
  /* @__PURE__ */ r.jsx(Sh, { label: s("import.json_file"), required: !0, value: m, onChange: x, error: (P = o == null ? void 0 : o.content) == null ? void 0 : P.message, sx: {
31143
31173
  maxWidth: 500
31144
31174
  } }),
31145
- T ? /* @__PURE__ */ r.jsx(Pe, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
31175
+ I ? /* @__PURE__ */ r.jsx(Pe, { fontSize: 12, mt: 10, children: /* @__PURE__ */ r.jsxs("tbody", { children: [
31146
31176
  /* @__PURE__ */ r.jsxs("tr", { children: [
31147
31177
  /* @__PURE__ */ r.jsx("th", { children: s("import.this_dashboard") }),
31148
31178
  /* @__PURE__ */ r.jsx("td", { children: hn })
@@ -31155,7 +31185,7 @@ const VM = z(({
31155
31185
  ] })
31156
31186
  ] }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
31157
31187
  /* @__PURE__ */ r.jsx(OM, { content: f }),
31158
- /* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(I, { type: "submit", color: "green", disabled: v, children: s("common.actions.confirm") }) })
31188
+ /* @__PURE__ */ r.jsx(b, { position: "right", my: "md", children: /* @__PURE__ */ r.jsx(T, { type: "submit", color: "green", disabled: v, children: s("common.actions.confirm") }) })
31159
31189
  ] })
31160
31190
  ] }) });
31161
31191
  }), tl = {
@@ -31175,11 +31205,11 @@ const VM = z(({
31175
31205
  setTrue: a,
31176
31206
  setFalse: o
31177
31207
  }] = st(!1), c = ((d = he().content.views.VIE) == null ? void 0 : d.type) === W.Tabs;
31178
- return c ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(I, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(uo, { size: 16 }), sx: {
31208
+ return c ? /* @__PURE__ */ r.jsx(me, { label: t("common.choose_a_tab_first"), children: /* @__PURE__ */ r.jsx(T, { variant: "outline", color: "gray", radius: 0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(uo, { size: 16 }), sx: {
31179
31209
  ...tl,
31180
31210
  transform: "none !important"
31181
31211
  }, children: t("import.label") }) }) : /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
31182
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || e, onClick: n, leftIcon: /* @__PURE__ */ r.jsx(uo, { size: 16 }), sx: {
31212
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", color: "blue", radius: 0, size: "xs", disabled: c || e, onClick: n, leftIcon: /* @__PURE__ */ r.jsx(uo, { size: 16 }), sx: {
31183
31213
  ...tl
31184
31214
  // background: 'rgb(231, 245, 255)',
31185
31215
  }, children: t("import.label") }),
@@ -31258,18 +31288,18 @@ function GM(t, e, n) {
31258
31288
  case "builtin:op:set_filter_values":
31259
31289
  o.type = "interaction", o.data.interactions.push({
31260
31290
  schemaRef: m,
31261
- filters: Object.keys(f.dictionary).map((T) => ({
31262
- key: T,
31263
- label: n[T]
31291
+ filters: Object.keys(f.dictionary).map((I) => ({
31292
+ key: I,
31293
+ label: n[I]
31264
31294
  }))
31265
31295
  });
31266
31296
  return;
31267
31297
  case "builtin:op:clear_filter_values":
31268
31298
  o.type = "interaction", o.data.interactions.push({
31269
31299
  schemaRef: m,
31270
- filters: f.filter_keys.map((T) => ({
31271
- key: T,
31272
- label: n[T]
31300
+ filters: f.filter_keys.map((I) => ({
31301
+ key: I,
31302
+ label: n[I]
31273
31303
  }))
31274
31304
  });
31275
31305
  return;
@@ -31655,7 +31685,7 @@ const gL = z(() => {
31655
31685
  }, children: [
31656
31686
  n.views.options.map((a) => /* @__PURE__ */ r.jsx(xL, { active: n.views.idOfVIE === a.value, name: a.label, onClick: s(a.value), openSettings: () => i(a.value) }, a.value)),
31657
31687
  /* @__PURE__ */ r.jsx(E, { variant: "dashed" }),
31658
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: n.views.addARandomNewView, sx: {
31688
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", color: "blue", onClick: n.views.addARandomNewView, sx: {
31659
31689
  width: "100%",
31660
31690
  borderRadius: 0
31661
31691
  }, styles: {
@@ -31720,7 +31750,7 @@ const gL = z(() => {
31720
31750
  }, children: /* @__PURE__ */ r.jsx(gL, {}) }),
31721
31751
  /* @__PURE__ */ r.jsx(Gt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
31722
31752
  borderTop: "1px solid #eee"
31723
- }, children: /* @__PURE__ */ r.jsx(I, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Tr, { size: 20 }), onClick: () => e.editor.open([]), children: t("common.titles.settings") }) }) })
31753
+ }, children: /* @__PURE__ */ r.jsx(T, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Tr, { size: 20 }), onClick: () => e.editor.open([]), children: t("common.titles.settings") }) }) })
31724
31754
  ] });
31725
31755
  }), bL = {
31726
31756
  [be.Checkbox]: "true",
@@ -31832,7 +31862,7 @@ const gL = z(() => {
31832
31862
  };
31833
31863
  return /* @__PURE__ */ r.jsx(O, { label: /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
31834
31864
  /* @__PURE__ */ r.jsx(w, { children: n("filter.widget.common.use_query_data_as_options") }),
31835
- t && /* @__PURE__ */ r.jsx(I, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(mi, { size: 16 }), variant: "subtle", color: "blue", onClick: () => l(t), children: n("query.open") })
31865
+ t && /* @__PURE__ */ r.jsx(T, { size: "xs", leftIcon: /* @__PURE__ */ r.jsx(mi, { size: 16 }), variant: "subtle", color: "blue", onClick: () => l(t), children: n("query.open") })
31836
31866
  ] }), data: a, value: t, onChange: e, allowDeselect: !1, clearable: !0, sx: {
31837
31867
  flexGrow: 1
31838
31868
  }, disabled: o, error: o ? "You need to add a query in Data Settings" : void 0, styles: {
@@ -31852,7 +31882,7 @@ const gL = z(() => {
31852
31882
  t
31853
31883
  } = y(), [e, n] = H(!1);
31854
31884
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
31855
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
31885
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
31856
31886
  /* @__PURE__ */ r.jsx(kr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: wL }) })
31857
31887
  ] });
31858
31888
  }, kL = z(function({
@@ -31913,7 +31943,7 @@ const gL = z(() => {
31913
31943
  right: 5
31914
31944
  }, children: /* @__PURE__ */ r.jsx(Ot, { size: 16 }) })
31915
31945
  ] }, c)),
31916
- /* @__PURE__ */ r.jsx(I, { mt: 10, size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(vs, { size: 20 }), onClick: i, sx: {
31946
+ /* @__PURE__ */ r.jsx(T, { mt: 10, size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(vs, { size: 20 }), onClick: i, sx: {
31917
31947
  width: "50%"
31918
31948
  }, mx: "auto", children: n("common.actions.add_an_option") })
31919
31949
  ] }),
@@ -31985,7 +32015,7 @@ const gL = z(() => {
31985
32015
  right: 5
31986
32016
  }, children: /* @__PURE__ */ r.jsx(Ot, { size: 16 }) })
31987
32017
  ] }, d)),
31988
- /* @__PURE__ */ r.jsx(I, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(vs, { size: 20 }), onClick: a, sx: {
32018
+ /* @__PURE__ */ r.jsx(T, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(vs, { size: 20 }), onClick: a, sx: {
31989
32019
  width: "50%"
31990
32020
  }, mx: "auto", children: n("common.actions.add_an_option") })
31991
32021
  ] }),
@@ -32024,7 +32054,7 @@ const gL = z(() => {
32024
32054
  t
32025
32055
  } = y(), [e, n] = H(!1);
32026
32056
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
32027
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
32057
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", compact: !0, onClick: () => n((s) => !s), children: t(e ? "common.actions.close" : "filter.widget.common.see_data_structure") }),
32028
32058
  /* @__PURE__ */ r.jsx(kr, { in: e, children: /* @__PURE__ */ r.jsx(sn, { language: "typescript", noCopy: !0, colorScheme: "dark", children: zL }) })
32029
32059
  ] });
32030
32060
  }, TL = z(function({
@@ -32170,7 +32200,7 @@ const gL = z(() => {
32170
32200
  maxWidth: "1100px",
32171
32201
  height: "100vh"
32172
32202
  }, spacing: "sm", pb: 30, children: [
32173
- /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), onClick: l, children: e("filter.delete") }) }),
32203
+ /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), onClick: l, children: e("filter.delete") }) }),
32174
32204
  /* @__PURE__ */ r.jsx(M, { sx: {
32175
32205
  flexGrow: 1,
32176
32206
  maxHeight: "calc(100% - 52px)",
@@ -32199,12 +32229,12 @@ const gL = z(() => {
32199
32229
  cursor: "default"
32200
32230
  }, children: t("filter.manage") }) }),
32201
32231
  /* @__PURE__ */ r.jsx(Jt, { justify: "space-between", align: "center", px: 12, children: /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
32202
- /* @__PURE__ */ r.jsxs(I.Group, { children: [
32203
- /* @__PURE__ */ r.jsx(I, { variant: "default", size: "xs", onClick: l, children: t("common.actions.select_all") }),
32204
- /* @__PURE__ */ r.jsx(I, { variant: "default", size: "xs", onClick: c, children: t("common.actions.clear_selection") })
32232
+ /* @__PURE__ */ r.jsxs(T.Group, { children: [
32233
+ /* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: l, children: t("common.actions.select_all") }),
32234
+ /* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: c, children: t("common.actions.clear_selection") })
32205
32235
  ] }),
32206
32236
  /* @__PURE__ */ r.jsx(
32207
- I,
32237
+ T,
32208
32238
  {
32209
32239
  size: "xs",
32210
32240
  color: "blue",
@@ -32246,7 +32276,7 @@ const gL = z(() => {
32246
32276
  /* @__PURE__ */ r.jsx("td", { children: d.label }),
32247
32277
  /* @__PURE__ */ r.jsx("td", { children: d.key }),
32248
32278
  /* @__PURE__ */ r.jsx("td", { children: t(xn[d.type]) }),
32249
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", onClick: () => i(d.id), children: t("common.actions.open") }) })
32279
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", onClick: () => i(d.id), children: t("common.actions.open") }) })
32250
32280
  ] }, d.id)) })
32251
32281
  ] }) }) })
32252
32282
  ] });
@@ -32610,7 +32640,7 @@ const BL = [{
32610
32640
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
32611
32641
  /* @__PURE__ */ r.jsx(Ch, { opened: a, onClose: () => o(!1), title: e("panel.settings.choose_queries"), padding: "xl", size: 500, zIndex: 320, children: /* @__PURE__ */ r.jsx(ee.Group, { value: [...i.queryIDs], onChange: i.setQueryIDs, children: /* @__PURE__ */ r.jsx(S, { spacing: "lg", children: s.queries.options.map((d) => /* @__PURE__ */ r.jsx(ee, { label: d.label, value: d.value }, d.value)) }) }) }),
32612
32642
  /* @__PURE__ */ r.jsxs(S, { spacing: 6, children: [
32613
- /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(I, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Um, { size: 16 }), onClick: () => o(!0), children: e(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
32643
+ /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(T, { variant: "light", size: "sm", leftIcon: /* @__PURE__ */ r.jsx(Um, { size: 16 }), onClick: () => o(!0), children: e(c === 0 ? "panel.settings.need_to_choose_queries" : "panel.settings.choose_queries") }) }),
32614
32644
  c === 1 && /* @__PURE__ */ r.jsx(Ii, { id: i.queryIDs[0], moreActions: /* @__PURE__ */ r.jsx(me, { label: e("query.open"), children: /* @__PURE__ */ r.jsx(X, { variant: "subtle", color: "blue", onClick: () => l(i.queryIDs[0]), children: /* @__PURE__ */ r.jsx(mi, { size: 16 }) }) }) }),
32615
32645
  c > 1 && /* @__PURE__ */ r.jsxs(_, { defaultValue: i.queryIDs[0], children: [
32616
32646
  /* @__PURE__ */ r.jsx(_.List, { children: i.queries.map((d) => /* @__PURE__ */ r.jsx(_.Tab, { value: d.id, children: d.name }, d.id)) }),
@@ -32871,7 +32901,7 @@ const tR = L.forwardRef(eR), nR = L.forwardRef(function({
32871
32901
  /* @__PURE__ */ r.jsx(qr.Control, { icon: /* @__PURE__ */ r.jsx(w, { size: "xl", children: "🖼️" }), children: o("style.label") }),
32872
32902
  /* @__PURE__ */ r.jsx(qr.Panel, { children: /* @__PURE__ */ r.jsx(nR, { value: e, onChange: n }) })
32873
32903
  ] }) }),
32874
- /* @__PURE__ */ r.jsx(I, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), color: "red", variant: "light", onClick: i, children: o("panel.variable.delete") })
32904
+ /* @__PURE__ */ r.jsx(T, { mt: 20, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), color: "red", variant: "light", onClick: i, children: o("panel.variable.delete") })
32875
32905
  ] });
32876
32906
  }), sR = z((t) => {
32877
32907
  const {
@@ -32879,8 +32909,8 @@ const tR = L.forwardRef(eR), nR = L.forwardRef(function({
32879
32909
  } = y(), n = kt(() => pD(t.variable), [t.variable]), s = () => t.uiModel.remove(t.variable);
32880
32910
  return /* @__PURE__ */ r.jsxs(S, { "data-testid": "variable-editor", align: "stretch", children: [
32881
32911
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
32882
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 18 }), children: e("common.actions.revert_changes") }),
32883
- /* @__PURE__ */ r.jsx(I, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), children: e("common.actions.save_changes") })
32912
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", disabled: !n.changed, color: "red", onClick: n.reset, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 18 }), children: e("common.actions.revert_changes") }),
32913
+ /* @__PURE__ */ r.jsx(T, { variant: "filled", size: "xs", disabled: !n.changed, color: "green", onClick: n.commit, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 18 }), children: e("common.actions.save_changes") })
32884
32914
  ] }),
32885
32915
  /* @__PURE__ */ r.jsx(rR, { value: Lt(n.copy), onChange: n.update, remove: s })
32886
32916
  ] });
@@ -32889,7 +32919,7 @@ z((t) => {
32889
32919
  const {
32890
32920
  uiModel: e
32891
32921
  } = t;
32892
- return /* @__PURE__ */ r.jsx(S, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(I, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
32922
+ return /* @__PURE__ */ r.jsx(S, { className: "var-list", children: e.variables.map((n) => /* @__PURE__ */ r.jsx(T, { variant: e.selected === n ? "filled" : "subtle", color: "gray", onClick: () => e.select(n), children: n.name }, n.name)) });
32893
32923
  });
32894
32924
  const iR = z(({
32895
32925
  model: t
@@ -32899,7 +32929,7 @@ const iR = z(({
32899
32929
  } = y();
32900
32930
  return /* @__PURE__ */ r.jsx(Zn, { color: "#fff", opacity: 1, sx: {
32901
32931
  position: "absolute"
32902
- }, children: /* @__PURE__ */ r.jsx(I, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 16 }), onClick: t.addNew, sx: {
32932
+ }, children: /* @__PURE__ */ r.jsx(T, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 16 }), onClick: t.addNew, sx: {
32903
32933
  flexGrow: 0,
32904
32934
  flexShrink: 0,
32905
32935
  alignSelf: "flex-end",
@@ -32915,7 +32945,7 @@ const iR = z(({
32915
32945
  /* @__PURE__ */ r.jsx(O, { label: t("panel.variable.labels"), data: e.variableOptions, value: (n = e.selected) == null ? void 0 : n.name, onChange: e.selectByName, maxDropdownHeight: 600, sx: {
32916
32946
  flexGrow: 1
32917
32947
  } }),
32918
- /* @__PURE__ */ r.jsx(I, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 16 }), onClick: e.addNew, sx: {
32948
+ /* @__PURE__ */ r.jsx(T, { variant: "light", size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 16 }), onClick: e.addNew, sx: {
32919
32949
  flexGrow: 0,
32920
32950
  flexShrink: 0,
32921
32951
  alignSelf: "flex-end",
@@ -33057,7 +33087,7 @@ const hR = z(() => {
33057
33087
  t.moveToView(e, i), c();
33058
33088
  };
33059
33089
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
33060
- /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(Rl, { size: 14 }), children: n("panel.settings.change_view") }),
33090
+ /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: "blue", onClick: l, leftIcon: /* @__PURE__ */ r.jsx(Rl, { size: 14 }), children: n("panel.settings.change_view") }),
33061
33091
  /* @__PURE__ */ r.jsx(Se, { opened: o, onClose: c, title: n("panel.settings.change_view_title"), zIndex: 320, children: /* @__PURE__ */ r.jsxs(S, { sx: {
33062
33092
  maxHeight: "calc(100vh - 185px)",
33063
33093
  overflow: "hidden"
@@ -33071,8 +33101,8 @@ const hR = z(() => {
33071
33101
  flexGrow: 0,
33072
33102
  flexShrink: 0
33073
33103
  }, children: [
33074
- /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Al, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
33075
- /* @__PURE__ */ r.jsx(I, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 14 }), onClick: d, disabled: i === e, children: n("common.actions.confirm") })
33104
+ /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Al, { size: 14 }), onClick: c, children: n("common.actions.cancel") }),
33105
+ /* @__PURE__ */ r.jsx(T, { size: "xs", color: "blue", leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 14 }), onClick: d, disabled: i === e, children: n("common.actions.confirm") })
33076
33106
  ] })
33077
33107
  ] }) })
33078
33108
  ] });
@@ -33157,7 +33187,7 @@ const gR = z(({
33157
33187
  /* @__PURE__ */ r.jsx(w, { pt: 9, pb: 8, children: t.name }),
33158
33188
  /* @__PURE__ */ r.jsxs(b, { position: "right", noWrap: !0, children: [
33159
33189
  /* @__PURE__ */ r.jsx(mR, { panel: t, sourceViewID: h }),
33160
- /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: "red", onClick: x, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), children: e("panel.delete") })
33190
+ /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: "red", onClick: x, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), children: e("panel.delete") })
33161
33191
  ] })
33162
33192
  ] }),
33163
33193
  /* @__PURE__ */ r.jsxs(_, { value: a, onTabChange: o, keepMounted: !1, styles: pR, children: [
@@ -33233,12 +33263,12 @@ const gR = z(({
33233
33263
  }, children: t("query.manage") }) }),
33234
33264
  /* @__PURE__ */ r.jsxs(Jt, { justify: "space-between", align: "center", px: 12, children: [
33235
33265
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
33236
- /* @__PURE__ */ r.jsxs(I.Group, { children: [
33237
- /* @__PURE__ */ r.jsx(I, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
33238
- /* @__PURE__ */ r.jsx(I, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
33266
+ /* @__PURE__ */ r.jsxs(T.Group, { children: [
33267
+ /* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
33268
+ /* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
33239
33269
  ] }),
33240
33270
  /* @__PURE__ */ r.jsx(
33241
- I,
33271
+ T,
33242
33272
  {
33243
33273
  size: "xs",
33244
33274
  color: "blue",
@@ -33249,7 +33279,7 @@ const gR = z(({
33249
33279
  }
33250
33280
  )
33251
33281
  ] }),
33252
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), disabled: !i.content.hasUnusedQueries, onClick: o, children: t("query.delete_unused") })
33282
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), disabled: !i.content.hasUnusedQueries, onClick: o, children: t("query.delete_unused") })
33253
33283
  ] }),
33254
33284
  /* @__PURE__ */ r.jsx(M, { sx: {
33255
33285
  flexGrow: 1,
@@ -33297,7 +33327,7 @@ const gR = z(({
33297
33327
  fontWeight: x === 0 ? "bold" : "normal",
33298
33328
  textAlign: "center"
33299
33329
  }, children: x }),
33300
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", onClick: () => a(m.id), children: t("common.actions.open") }) })
33330
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", onClick: () => a(m.id), children: t("common.actions.open") }) })
33301
33331
  ] }, m.id);
33302
33332
  }) })
33303
33333
  ] }) }) })
@@ -33330,7 +33360,7 @@ const gR = z(({
33330
33360
  touch: !1
33331
33361
  }, withinPortal: !0, zIndex: 320, position: "top-end", children: /* @__PURE__ */ r.jsx(M, { sx: {
33332
33362
  alignSelf: "flex-end"
33333
- }, children: /* @__PURE__ */ r.jsx(I, { disabled: !0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), children: e("query.delete") }) }) }) : /* @__PURE__ */ r.jsx(I, { color: "red", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), sx: {
33363
+ }, children: /* @__PURE__ */ r.jsx(T, { disabled: !0, size: "xs", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), children: e("query.delete") }) }) }) : /* @__PURE__ */ r.jsx(T, { color: "red", size: "xs", onClick: c, leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 16 }), sx: {
33334
33364
  alignSelf: "flex-end"
33335
33365
  }, children: e("query.delete") });
33336
33366
  }, _R = z(yR), Fu = ({
@@ -33715,7 +33745,7 @@ const IR = z(({
33715
33745
  ] }), zIndex: 320, size: "96vw", styles: $R, children: /* @__PURE__ */ r.jsx(M, { sx: {
33716
33746
  height: "calc(100vh - 220px)"
33717
33747
  }, children: /* @__PURE__ */ r.jsx(AR, { dataSource: t }) }) }),
33718
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
33748
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", onClick: () => i(!0), px: 16, styles: {
33719
33749
  inner: {
33720
33750
  justifyContent: "flex-start"
33721
33751
  }
@@ -33919,7 +33949,7 @@ WHERE
33919
33949
  } = y(), [e, n] = H(!1);
33920
33950
  return /* @__PURE__ */ r.jsxs(r.Fragment, { children: [
33921
33951
  /* @__PURE__ */ r.jsx(Se, { opened: e, onClose: () => n(!1), title: t("query_variable.labels"), zIndex: 320, size: "800px", children: /* @__PURE__ */ r.jsx(qu, {}) }),
33922
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
33952
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", onClick: () => n(!0), px: 16, styles: {
33923
33953
  inner: {
33924
33954
  justifyContent: "flex-start"
33925
33955
  }
@@ -34018,7 +34048,7 @@ WHERE
34018
34048
  t: e
34019
34049
  } = y(), n = C(() => k.groupBy(t.dependencies, "type"), [t.dependencies]), s = C(() => t.dependencies.some((a) => !a.valid), [t.dependencies]), i = t.dependencies.length > 0;
34020
34050
  return i ? /* @__PURE__ */ r.jsxs(Te, { withinPortal: !0, zIndex: 340, shadow: "md", disabled: !i, children: [
34021
- /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(El, { size: 16 }) : /* @__PURE__ */ r.jsx(ep, { size: 16 }), children: e("query.dependency.label") }) }),
34051
+ /* @__PURE__ */ r.jsx(Te.Target, { children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: s ? "red" : "green", disabled: !i, leftIcon: s ? /* @__PURE__ */ r.jsx(El, { size: 16 }) : /* @__PURE__ */ r.jsx(ep, { size: 16 }), children: e("query.dependency.label") }) }),
34022
34052
  /* @__PURE__ */ r.jsx(Te.Dropdown, { children: /* @__PURE__ */ r.jsx(ct, { spacing: "md", size: 14, listStyleType: "none", children: Object.entries(n).map(([a, o]) => /* @__PURE__ */ r.jsxs(ct.Item, { children: [
34023
34053
  /* @__PURE__ */ r.jsx(w, { fw: "bold", ff: "monospace", children: e(`${a}.label`) }),
34024
34054
  /* @__PURE__ */ r.jsx(ct, { withPadding: !0, size: 14, sx: {
@@ -34032,7 +34062,7 @@ WHERE
34032
34062
  }
34033
34063
  }, children: /* @__PURE__ */ r.jsx(Ei, { size: 12 }) }), children: l.key }, l.key)) })
34034
34064
  ] }, a)) }) })
34035
- ] }) : /* @__PURE__ */ r.jsx(me, { label: e("query.dependency.has_none"), children: /* @__PURE__ */ r.jsx(I, { size: "xs", variant: "subtle", color: "gray", leftIcon: /* @__PURE__ */ r.jsx(Zm, { size: 16, style: {
34065
+ ] }) : /* @__PURE__ */ r.jsx(me, { label: e("query.dependency.has_none"), children: /* @__PURE__ */ r.jsx(T, { size: "xs", variant: "subtle", color: "gray", leftIcon: /* @__PURE__ */ r.jsx(Zm, { size: 16, style: {
34036
34066
  transform: "rotate(180deg)"
34037
34067
  } }), sx: {
34038
34068
  transform: "none !important"
@@ -34062,9 +34092,9 @@ WHERE
34062
34092
  }, children: [
34063
34093
  /* @__PURE__ */ r.jsx(b, { position: "left", children: /* @__PURE__ */ r.jsx(GR, { queryModel: t }) }),
34064
34094
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
34065
- /* @__PURE__ */ r.jsx(I, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Dl, { size: 16 }), children: e("common.actions.reset_to_default") }),
34066
- /* @__PURE__ */ r.jsx(I, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 16 }), children: e("common.actions.revert_changes") }),
34067
- /* @__PURE__ */ r.jsx(I, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), children: e("common.actions.save_changes") })
34095
+ /* @__PURE__ */ r.jsx(T, { onClick: o, size: "xs", variant: "default", leftIcon: /* @__PURE__ */ r.jsx(Dl, { size: 16 }), children: e("common.actions.reset_to_default") }),
34096
+ /* @__PURE__ */ r.jsx(T, { onClick: a, color: "red", size: "xs", disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(zr, { size: 16 }), children: e("common.actions.revert_changes") }),
34097
+ /* @__PURE__ */ r.jsx(T, { color: "green", size: "xs", onClick: i, disabled: !l, leftIcon: /* @__PURE__ */ r.jsx(Oe, { size: 16 }), children: e("common.actions.save_changes") })
34068
34098
  ] })
34069
34099
  ] }),
34070
34100
  /* @__PURE__ */ r.jsx(Aa, { height: "100%", value: n, onChange: s, theme: "sql-dark", defaultLanguage: "sql" })
@@ -34213,7 +34243,7 @@ WHERE
34213
34243
  B(() => {
34214
34244
  l(t.key), m(t.value);
34215
34245
  }, [t]);
34216
- const f = h !== t.value, v = Pt(), T = () => {
34246
+ const f = h !== t.value, v = Pt(), I = () => {
34217
34247
  v.openConfirmModal({
34218
34248
  title: `${s("sql_snippet.delete")}?`,
34219
34249
  labels: {
@@ -34250,7 +34280,7 @@ WHERE
34250
34280
  error: u
34251
34281
  }
34252
34282
  ),
34253
- /* @__PURE__ */ r.jsx(I, { leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), color: "red", variant: "light", onClick: T, children: s("sql_snippet.delete") })
34283
+ /* @__PURE__ */ r.jsx(T, { leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), color: "red", variant: "light", onClick: I, children: s("sql_snippet.delete") })
34254
34284
  ] }),
34255
34285
  /* @__PURE__ */ r.jsxs(_, { value: i, onTabChange: a, sx: {
34256
34286
  flexGrow: 1
@@ -34333,12 +34363,12 @@ WHERE
34333
34363
  }, children: t("sql_snippet.manage") }) }),
34334
34364
  /* @__PURE__ */ r.jsxs(Jt, { justify: "space-between", align: "center", px: 12, children: [
34335
34365
  /* @__PURE__ */ r.jsxs(b, { position: "left", children: [
34336
- /* @__PURE__ */ r.jsxs(I.Group, { children: [
34337
- /* @__PURE__ */ r.jsx(I, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
34338
- /* @__PURE__ */ r.jsx(I, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
34366
+ /* @__PURE__ */ r.jsxs(T.Group, { children: [
34367
+ /* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: d, children: t("common.actions.select_all") }),
34368
+ /* @__PURE__ */ r.jsx(T, { variant: "default", size: "xs", onClick: u, children: t("common.actions.clear_selection") })
34339
34369
  ] }),
34340
34370
  /* @__PURE__ */ r.jsx(
34341
- I,
34371
+ T,
34342
34372
  {
34343
34373
  size: "xs",
34344
34374
  color: "blue",
@@ -34349,7 +34379,7 @@ WHERE
34349
34379
  }
34350
34380
  )
34351
34381
  ] }),
34352
- /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), disabled: !i.content.hasUnusedSQLSnippets, onClick: o, children: t("sql_snippet.delete_unused") })
34382
+ /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Et, { size: 14 }), disabled: !i.content.hasUnusedSQLSnippets, onClick: o, children: t("sql_snippet.delete_unused") })
34353
34383
  ] }),
34354
34384
  /* @__PURE__ */ r.jsx(M, { sx: {
34355
34385
  flexGrow: 1,
@@ -34386,7 +34416,7 @@ WHERE
34386
34416
  fontWeight: x === 0 ? "bold" : "normal",
34387
34417
  textAlign: "center"
34388
34418
  }, children: x }),
34389
- /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(I, { variant: "subtle", size: "xs", onClick: () => a(m.key), children: t("common.actions.open") }) })
34419
+ /* @__PURE__ */ r.jsx("td", { children: /* @__PURE__ */ r.jsx(T, { variant: "subtle", size: "xs", onClick: () => a(m.key), children: t("common.actions.open") }) })
34390
34420
  ] }, m.key);
34391
34421
  }) })
34392
34422
  ] }) }) })
@@ -34485,10 +34515,10 @@ WHERE
34485
34515
  /* @__PURE__ */ r.jsx(ee, { mt: 10, label: n("common.enabled"), checked: o.enabled, onChange: (x) => c(x.currentTarget.checked) }),
34486
34516
  /* @__PURE__ */ r.jsx(oE, { value: o.func_content, onChange: h, disabled: !o.enabled }),
34487
34517
  /* @__PURE__ */ r.jsxs(b, { position: "apart", children: [
34488
- /* @__PURE__ */ r.jsx(I, { onClick: m, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.revert") }),
34518
+ /* @__PURE__ */ r.jsx(T, { onClick: m, color: "red", leftIcon: /* @__PURE__ */ r.jsx(Dn, { size: 20 }), children: n("common.actions.revert") }),
34489
34519
  /* @__PURE__ */ r.jsxs(b, { position: "right", children: [
34490
- /* @__PURE__ */ r.jsx(I, { onClick: u, variant: "subtle", children: n("common.actions.cancel") }),
34491
- /* @__PURE__ */ r.jsx(I, { onClick: d, children: n("common.actions.save") })
34520
+ /* @__PURE__ */ r.jsx(T, { onClick: u, variant: "subtle", children: n("common.actions.cancel") }),
34521
+ /* @__PURE__ */ r.jsx(T, { onClick: d, children: n("common.actions.save") })
34492
34522
  ] })
34493
34523
  ] })
34494
34524
  ] }) })
@@ -34581,7 +34611,7 @@ WHERE
34581
34611
  maxWidth: "600px",
34582
34612
  height: "100%"
34583
34613
  }, spacing: "sm", children: [
34584
- /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), onClick: l, children: e("view.delete") }) }),
34614
+ /* @__PURE__ */ r.jsx(b, { position: "right", pt: 10, children: /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Ot, { size: 16 }), onClick: l, children: e("view.delete") }) }),
34585
34615
  /* @__PURE__ */ r.jsx(M, { sx: {
34586
34616
  flexGrow: 1,
34587
34617
  maxHeight: "calc(100% - 52px)",
@@ -34640,7 +34670,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34640
34670
  };
34641
34671
  e.content.filters.append(i), e.editor.setPath(["_FILTERS_", s]);
34642
34672
  };
34643
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
34673
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
34644
34674
  width: "100%",
34645
34675
  borderRadius: 0
34646
34676
  }, styles: {
@@ -34657,7 +34687,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34657
34687
  if (!t)
34658
34688
  return null;
34659
34689
  const s = n.views.findByID(t);
34660
- return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => n.addANewPanel(s.id), sx: {
34690
+ return !s || s.type === W.Tabs ? null : /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: () => n.addANewPanel(s.id), sx: {
34661
34691
  width: "100%",
34662
34692
  borderRadius: 0
34663
34693
  }, styles: {
@@ -34678,7 +34708,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34678
34708
  };
34679
34709
  e.content.queries.append(i), e.editor.setPath(["_QUERIES_", s]);
34680
34710
  };
34681
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
34711
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
34682
34712
  width: "100%",
34683
34713
  borderRadius: 0
34684
34714
  }, styles: {
@@ -34696,7 +34726,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34696
34726
  };
34697
34727
  e.content.sqlSnippets.append(i), e.editor.setPath(["_SQL_SNIPPETS_", s]);
34698
34728
  };
34699
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
34729
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: n, sx: {
34700
34730
  width: "100%",
34701
34731
  borderRadius: 0
34702
34732
  }, styles: {
@@ -34708,7 +34738,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34708
34738
  const {
34709
34739
  t
34710
34740
  } = y(), e = le();
34711
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
34741
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", leftIcon: /* @__PURE__ */ r.jsx(Ct, { size: 14 }), size: "sm", px: "xs", mb: 10, color: "blue", onClick: e.views.addARandomNewView, sx: {
34712
34742
  width: "100%",
34713
34743
  borderRadius: 0
34714
34744
  }, styles: {
@@ -34720,7 +34750,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34720
34750
  const {
34721
34751
  t
34722
34752
  } = y(), e = he();
34723
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_QUERIES_"]), sx: {
34753
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_QUERIES_"]), sx: {
34724
34754
  width: "100%",
34725
34755
  borderRadius: 0,
34726
34756
  fontWeight: "normal"
@@ -34733,7 +34763,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34733
34763
  const {
34734
34764
  t
34735
34765
  } = y(), e = he();
34736
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_SQL_SNIPPETS_"]), sx: {
34766
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_SQL_SNIPPETS_"]), sx: {
34737
34767
  width: "100%",
34738
34768
  borderRadius: 0,
34739
34769
  fontWeight: "normal"
@@ -34746,7 +34776,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34746
34776
  const {
34747
34777
  t
34748
34778
  } = y(), e = he();
34749
- return /* @__PURE__ */ r.jsx(I, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_FILTERS_"]), sx: {
34779
+ return /* @__PURE__ */ r.jsx(T, { variant: "subtle", rightIcon: /* @__PURE__ */ r.jsx(Tr, { size: 14 }), size: "sm", px: 12, mb: 0, color: "blue", onClick: () => e.editor.setPath(["_FILTERS_"]), sx: {
34750
34780
  width: "100%",
34751
34781
  borderRadius: 0,
34752
34782
  fontWeight: "normal"
@@ -34801,7 +34831,7 @@ const wE = z(() => /* @__PURE__ */ r.jsx(S, { sx: {
34801
34831
  }, children: /* @__PURE__ */ r.jsx(AE, {}) }),
34802
34832
  /* @__PURE__ */ r.jsx(Gt.Section, { children: /* @__PURE__ */ r.jsx(b, { grow: !0, p: "md", pt: "sm", sx: {
34803
34833
  borderTop: "1px solid #eee"
34804
- }, children: /* @__PURE__ */ r.jsx(I, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Al, { size: 18 }), onClick: () => e.editor.close(), children: t("common.actions.close") }) }) })
34834
+ }, children: /* @__PURE__ */ r.jsx(T, { size: "xs", color: "red", leftIcon: /* @__PURE__ */ r.jsx(Al, { size: 18 }), onClick: () => e.editor.close(), children: t("common.actions.close") }) }) })
34805
34835
  ] });
34806
34836
  }), PE = {
34807
34837
  root: {
@@ -34905,7 +34935,7 @@ const qE = {
34905
34935
  }, [c, v.content.filters.patchValues]), L.useEffect(() => tt(() => Xt(v.json), (V) => {
34906
34936
  o == null || o(V);
34907
34937
  }), [v]);
34908
- const T = async () => {
34938
+ const I = async () => {
34909
34939
  await s(v.json, v.content.json);
34910
34940
  }, R = kt(ka, []), P = Lu(R);
34911
34941
  return fl("@devtable/dashboard editor", {
@@ -34926,7 +34956,7 @@ const qE = {
34926
34956
  }, children: /* @__PURE__ */ r.jsx(fc, { value: v, children: /* @__PURE__ */ r.jsx(jc, { value: v.content, children: /* @__PURE__ */ r.jsx(Ni.Provider, { value: {
34927
34957
  inEditMode: !0
34928
34958
  }, children: /* @__PURE__ */ r.jsx(Nt.Provider, { value: R, children: /* @__PURE__ */ r.jsxs(Os, { configure: P, children: [
34929
- /* @__PURE__ */ r.jsx(xl, { padding: 0, header: /* @__PURE__ */ r.jsx(WM, { onExit: u, saveDashboardChanges: T, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(fL, {}), styles: qE, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
34959
+ /* @__PURE__ */ r.jsx(xl, { padding: 0, header: /* @__PURE__ */ r.jsx(WM, { onExit: u, saveDashboardChanges: I, headerSlot: l }), navbar: /* @__PURE__ */ r.jsx(fL, {}), styles: qE, children: /* @__PURE__ */ r.jsx(M, { className: `${i} dashboard-root`, sx: {
34930
34960
  position: "relative"
34931
34961
  }, children: v.content.views.visibleViews.map((V) => /* @__PURE__ */ r.jsx(ZD, { view: V }, V.id)) }) }),
34932
34962
  /* @__PURE__ */ r.jsx(OE, {})
@@ -35042,19 +35072,19 @@ function BE({
35042
35072
  create_time: s,
35043
35073
  update_time: i,
35044
35074
  content: a
35045
- }, o, l) {
35075
+ }, o, l, c) {
35046
35076
  if (!a)
35047
35077
  throw new Error("unexpected null content when creating a content model");
35048
35078
  const {
35049
- version: c,
35050
- filters: d,
35051
- views: u,
35052
- panels: h,
35053
- layouts: m,
35079
+ version: d,
35080
+ filters: u,
35081
+ views: h,
35082
+ panels: m,
35083
+ layouts: x,
35054
35084
  definition: {
35055
- queries: x,
35056
- sqlSnippets: f,
35057
- mock_context: v = {}
35085
+ queries: f,
35086
+ sqlSnippets: v,
35087
+ mock_context: I = {}
35058
35088
  }
35059
35089
  } = a;
35060
35090
  return Bu.create({
@@ -35063,18 +35093,18 @@ function BE({
35063
35093
  dashboard_id: n,
35064
35094
  create_time: s,
35065
35095
  update_time: i,
35066
- version: c,
35067
- filters: mu(d, o, v, l),
35068
- queries: dD(x),
35069
- sqlSnippets: hD(f),
35070
- mock_context: Nd(v),
35071
- views: sD(u),
35096
+ version: d,
35097
+ filters: mu(u, o, I, l),
35098
+ queries: dD(f),
35099
+ sqlSnippets: hD(v),
35100
+ mock_context: Nd(I),
35101
+ views: sD(h, c),
35072
35102
  panels: {
35073
- list: h
35103
+ list: m
35074
35104
  },
35075
35105
  layouts: {
35076
- list: m,
35077
- currentBreakpoint: m[0].id
35106
+ list: x,
35107
+ currentBreakpoint: x[0].id
35078
35108
  }
35079
35109
  });
35080
35110
  }
@@ -35093,13 +35123,13 @@ function GE({
35093
35123
  name: e,
35094
35124
  group: n,
35095
35125
  content_id: s
35096
- }, i, a, o, l, c) {
35126
+ }, i, a, o, l, c, d) {
35097
35127
  return WE.create({
35098
35128
  id: t,
35099
35129
  name: e,
35100
35130
  group: n,
35101
35131
  content_id: s,
35102
- content: BE(i, l, c),
35132
+ content: BE(i, l, c, d),
35103
35133
  datasources: {
35104
35134
  list: a
35105
35135
  },
@@ -35121,26 +35151,32 @@ const QE = ({
35121
35151
  setFullScreenPanelID: o,
35122
35152
  filterValues: l,
35123
35153
  onFilterValuesChange: c,
35124
- lang: d
35154
+ activeTab: d,
35155
+ onActiveTabChange: u,
35156
+ lang: h
35125
35157
  }) => {
35126
35158
  oc(i);
35127
35159
  const {
35128
- data: u = []
35160
+ data: m = []
35129
35161
  } = kn(Fi), {
35130
- data: h = []
35131
- } = kn(uc), m = L.useMemo(() => GE(e, n, u, h, t, l ?? {}), [e, n]);
35132
- Mu(m.content, !1), L.useEffect(() => {
35133
- m.context.replace(t);
35162
+ data: x = []
35163
+ } = kn(uc), f = L.useMemo(() => GE(e, n, m, x, t, l ?? {}, d ?? null), [e, n, d]);
35164
+ Mu(f.content, !1), L.useEffect(() => {
35165
+ f.context.replace(t);
35134
35166
  }, [t]), L.useEffect(() => {
35135
- m.datasources.replace(u);
35136
- }, [u]), L.useEffect(() => {
35137
- m.globalSQLSnippets.replace(h);
35138
- }, [h]), L.useEffect(() => {
35139
- c == null || c(m.content.filters.values);
35140
- }, [c, m.content.filters.values]), L.useEffect(() => {
35141
- l && m.content.filters.patchValues(l);
35142
- }, [l, m.content.filters.patchValues]);
35143
- const x = kt(ka, []), f = Lu(x);
35167
+ f.datasources.replace(m);
35168
+ }, [m]), L.useEffect(() => {
35169
+ f.globalSQLSnippets.replace(x);
35170
+ }, [x]), L.useEffect(() => {
35171
+ c == null || c(f.content.filters.values);
35172
+ }, [c, f.content.filters.values]), L.useEffect(() => {
35173
+ l && f.content.filters.patchValues(l);
35174
+ }, [l, f.content.filters.patchValues]), L.useEffect(() => {
35175
+ u == null || u(f.content.views.firstVisibleTabsViewActiveTab);
35176
+ }, [u, f.content.views.firstVisibleTabsViewActiveTab]), L.useEffect(() => {
35177
+ d && f.content.views.setFirstVisibleTabsViewActiveTab(d);
35178
+ }, [d, f.content.views.setFirstVisibleTabsViewActiveTab]);
35179
+ const v = kt(ka, []), I = Lu(v);
35144
35180
  return fl("@devtable/dashboard render", {
35145
35181
  context: t,
35146
35182
  dashboard: e,
@@ -35151,15 +35187,17 @@ const QE = ({
35151
35187
  setFullScreenPanelID: o,
35152
35188
  filterValues: l,
35153
35189
  onFilterValuesChange: c,
35154
- lang: d
35155
- }), /* @__PURE__ */ r.jsx(Du, { lang: d, children: /* @__PURE__ */ r.jsx(gl, { children: /* @__PURE__ */ r.jsx(Ic, { children: /* @__PURE__ */ r.jsx(_c, { value: {
35190
+ activeTab: d,
35191
+ onActiveTabChange: u,
35192
+ lang: h
35193
+ }), /* @__PURE__ */ r.jsx(Du, { lang: h, children: /* @__PURE__ */ r.jsx(gl, { children: /* @__PURE__ */ r.jsx(Ic, { children: /* @__PURE__ */ r.jsx(_c, { value: {
35156
35194
  searchButtonProps: i.searchButtonProps
35157
- }, children: /* @__PURE__ */ r.jsx(fc, { value: m, children: /* @__PURE__ */ r.jsx(jc, { value: m.content, children: /* @__PURE__ */ r.jsx(zc.Provider, { value: {
35195
+ }, children: /* @__PURE__ */ r.jsx(fc, { value: f, children: /* @__PURE__ */ r.jsx(jc, { value: f.content, children: /* @__PURE__ */ r.jsx(zc.Provider, { value: {
35158
35196
  fullScreenPanelID: a,
35159
35197
  setFullScreenPanelID: o
35160
35198
  }, children: /* @__PURE__ */ r.jsx(Ni.Provider, { value: {
35161
35199
  inEditMode: !1
35162
- }, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Nt.Provider, { value: x, children: /* @__PURE__ */ r.jsx(Os, { configure: f, children: m.content.views.visibleViews.map((v) => /* @__PURE__ */ r.jsx(Da, { view: v }, v.id)) }) }) }) }) }) }) }) }) }) }) });
35200
+ }, children: /* @__PURE__ */ r.jsx(M, { className: `${s} dashboard-root`, children: /* @__PURE__ */ r.jsx(Nt.Provider, { value: v, children: /* @__PURE__ */ r.jsx(Os, { configure: I, children: f.content.views.visibleViews.map((R) => /* @__PURE__ */ r.jsx(Da, { view: R }, R.id)) }) }) }) }) }) }) }) }) }) }) });
35163
35201
  }, G2 = z(QE);
35164
35202
  $.extend(Lp);
35165
35203
  $.extend(Rp);