@databrainhq/plugin 0.17.9-beta.96 → 0.17.9-beta.98

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.
Files changed (40) hide show
  1. package/dist/{Accordion-DadO2kaB.mjs → Accordion-B84WBOUW.mjs} +1 -1
  2. package/dist/{CardChartSlot-Cj5kED9g.mjs → CardChartSlot-DStCcvAL.mjs} +5 -5
  3. package/dist/{Chart-BgWPlm6E.mjs → Chart-C15_Dbms.mjs} +894 -893
  4. package/dist/{ChartTypePanel-b8_W5H5i.mjs → ChartTypePanel-Mg85Q1V3.mjs} +8 -8
  5. package/dist/{CreateGlobalFilter-Y36CIK6U.mjs → CreateGlobalFilter-DODOATkJ.mjs} +2 -2
  6. package/dist/{CreateMetricV2-CRyLd8DR.mjs → CreateMetricV2-BYKN9YJZ.mjs} +195 -174
  7. package/dist/{HorizontalStackTable-QcgFX57L.mjs → HorizontalStackTable-DAY1syOG.mjs} +3 -3
  8. package/dist/{ManageMetricsV2-DpuqIwaN.mjs → ManageMetricsV2-BhA5kGfD.mjs} +3 -3
  9. package/dist/{MetricCardV2-CAIR-NQF.mjs → MetricCardV2-CBfEr4Hv.mjs} +7 -7
  10. package/dist/{NoDataFound-ID-Hz4Xk.mjs → NoDataFound-CvXe5eQf.mjs} +1 -1
  11. package/dist/{Panel-Cv-q5MKX.mjs → Panel-DfHWPGPV.mjs} +1 -1
  12. package/dist/{PivotTableV2-DF5EZOsw.mjs → PivotTableV2-dzOJ2Ssd.mjs} +2 -2
  13. package/dist/{PivotTableV3-CADTUHEp.mjs → PivotTableV3-Bzk_wSPn.mjs} +4 -4
  14. package/dist/{Portal-zmXP1DOk.mjs → Portal-CksDpDKE.mjs} +88 -67
  15. package/dist/{RadioButton-CMhlAJ3m.mjs → RadioButton-41Y3WwWg.mjs} +1 -1
  16. package/dist/{ScheduleEmail-C6qKwdkh.mjs → ScheduleEmail-CwOoSzLj.mjs} +6 -6
  17. package/dist/{SearchMetricData-DNXVBctX.mjs → SearchMetricData-BsAIaGhl.mjs} +13 -13
  18. package/dist/{SortPanel-h-jshCFv.mjs → SortPanel-C4Rado5C.mjs} +8 -8
  19. package/dist/{Table-DUTrrpk1.mjs → Table-DmjBmf06.mjs} +4 -4
  20. package/dist/{TagInputField-ByuVdtat.mjs → TagInputField-DSOJcDBw.mjs} +4 -4
  21. package/dist/{TextAreaField-KxwybBfV.mjs → TextAreaField-_n4oXhpa.mjs} +2 -2
  22. package/dist/{TimeSeriesSettings-BZgVgSx7.mjs → TimeSeriesSettings-B18VY4vw.mjs} +2 -2
  23. package/dist/{clickActions-CdqPho-B.mjs → clickActions-CctatSU9.mjs} +9 -9
  24. package/dist/{conditionalFormatting-CWu1xP3E.mjs → conditionalFormatting-BaiXDwRE.mjs} +1 -1
  25. package/dist/{createGlobalFilter.module-CZ0MigLg.mjs → createGlobalFilter.module-DpOQMHe-.mjs} +1 -1
  26. package/dist/{crossPointer-B-UENsVN.mjs → crossPointer-CBJM9eha.mjs} +3 -3
  27. package/dist/data.cjs +1 -1
  28. package/dist/data.mjs +1 -1
  29. package/dist/{metric.mutation-bEJ8tJY9.mjs → metric.mutation-DX8KWn5k.mjs} +1 -1
  30. package/dist/{pluginV3Request-BLvkR95v.mjs → pluginV3Request-C6MkiXjs.mjs} +2 -2
  31. package/dist/{renderer-LrlLgTUV.mjs → renderer-DjtgPYuC.mjs} +1 -1
  32. package/dist/{timeseries-B2KLqQ6t.mjs → timeseries-kzuw-5Py.mjs} +1 -1
  33. package/dist/{useGuesTokenUsageLog-inGvEGNw.mjs → useGuesTokenUsageLog-DZGQdS98.mjs} +1 -1
  34. package/dist/{useLoadingDeadline-B2KChskz.mjs → useLoadingDeadline-DOy4c7dG.mjs} +6 -6
  35. package/dist/{usePublishArchivedMetrics-DfszU94h.mjs → usePublishArchivedMetrics-CpLNL5Pa.mjs} +2 -2
  36. package/dist/{useQuery-DapJDqtY.mjs → useQuery-BTu1Gmz1.mjs} +1 -1
  37. package/dist/webcomponents-styles.es.js +1 -1
  38. package/dist/webcomponents.es.js +1056 -1035
  39. package/dist/webcomponents.umd.js +208 -193
  40. package/package.json +1 -1
@@ -2,25 +2,25 @@ import * as e from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { a as t, i as n, o as r, r as i, t as a } from "./rolldown-runtime-zXSK1Ut9.mjs";
5
- import { An as o, Cn as s, Ga as c, Mi as l, Oa as u, Tr as d, V as f, Xt as p, a as m, co as h, d as g, da as _, ei as v, et as y, gi as ee, hi as b, ho as x, kn as S, l as C, qi as w, wr as T, yr as te, zr as ne } from "./Portal-zmXP1DOk.mjs";
6
- import { g as re, l as E, r as ie, t as ae, u as D, v as oe, w as O, x as k } from "./timeseries-B2KLqQ6t.mjs";
5
+ import { An as o, Cn as s, Ga as c, Mi as l, Oa as u, Tr as d, V as f, Xt as p, a as m, co as h, d as g, da as _, ei as v, et as y, gi as ee, hi as b, ho as x, kn as S, l as C, qi as w, wr as T, yr as te, zr as ne } from "./Portal-CksDpDKE.mjs";
6
+ import { g as re, l as E, r as ie, t as ae, u as D, v as oe, w as O, x as k } from "./timeseries-kzuw-5Py.mjs";
7
7
  import { $ as A, C as j, K as M, Q as se, X as ce, Y as le, Z as ue, et as de, j as N, k as P } from "./format-q49rlYCT.mjs";
8
- import { E as F, O as fe, T as pe, a as me, i as he, k as ge, n as _e, o as ve, r as ye, s as be, t as xe } from "./crossPointer-B-UENsVN.mjs";
8
+ import { E as F, O as fe, T as pe, a as me, i as he, k as ge, n as _e, o as ve, r as ye, s as be, t as xe } from "./crossPointer-CBJM9eha.mjs";
9
9
  import { n as Se } from "./text-CSXb1-LG.mjs";
10
10
  import { l as Ce, n as we, o as Te } from "./canvasTeardown-CyzHZCRj.mjs";
11
- import { t as I } from "./NoDataFound-ID-Hz4Xk.mjs";
12
- import { n as Ee, t as De } from "./Accordion-DadO2kaB.mjs";
11
+ import { t as I } from "./NoDataFound-CvXe5eQf.mjs";
12
+ import { n as Ee, t as De } from "./Accordion-B84WBOUW.mjs";
13
13
  import { a as Oe, i as ke } from "./tslib.es6-D1gkTN1m.mjs";
14
- import { n as L, r as Ae, t as je } from "./virtualRowScroll-D65ht4Df.mjs";
15
- import { a as Me, i as Ne, n as Pe, o as Fe, r as Ie, t as Le } from "./dist-AOZRb92r.mjs";
16
- import { n as R, r as Re } from "./cardActions-KAyfWH7u.mjs";
17
- import { t as ze } from "./conditionalFormatting-CWu1xP3E.mjs";
18
- import { t as Be } from "./Loader-DoUwkcO5.mjs";
19
- import { t as z } from "./list.module-DHbay5il.mjs";
20
- import Ve, { createElement as He, forwardRef as Ue, lazy as B, useCallback as We, useEffect as V, useLayoutEffect as Ge, useMemo as H, useRef as U, useState as W, useSyncExternalStore as Ke } from "react";
21
- import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
14
+ import { n as L, r as R, t as Ae } from "./virtualRowScroll-D65ht4Df.mjs";
15
+ import { a as je, i as Me, n as Ne, o as Pe, r as Fe, t as Ie } from "./dist-AOZRb92r.mjs";
16
+ import { n as z, r as Le } from "./cardActions-KAyfWH7u.mjs";
17
+ import { t as Re } from "./conditionalFormatting-BaiXDwRE.mjs";
18
+ import { t as ze } from "./Loader-DoUwkcO5.mjs";
19
+ import { t as B } from "./list.module-DHbay5il.mjs";
20
+ import Be, { createElement as Ve, forwardRef as He, lazy as V, useCallback as Ue, useEffect as H, useLayoutEffect as We, useMemo as U, useRef as W, useState as G, useSyncExternalStore as Ge } from "react";
21
+ import { Fragment as K, jsx as q, jsxs as J } from "react/jsx-runtime";
22
22
  // src/theme/themeDefaults.ts
23
- var qe = [
23
+ var Ke = [
24
24
  {
25
25
  name: "Default",
26
26
  colors: [
@@ -161,33 +161,33 @@ var qe = [
161
161
  "#1d9ab9"
162
162
  ]
163
163
  }
164
- ], Je = "Default", Ye = "medium", Xe = "none", Ze = (e) => typeof e == "string" && e.trim() === "0" ? Xe : e, Qe = "var(--dbn-shadow-primary, 0 0 5px 0 rgba(0, 0, 0, 0.3))", J = (e) => {
164
+ ], qe = "Default", Je = "medium", Ye = "none", Xe = (e) => typeof e == "string" && e.trim() === "0" ? Ye : e, Ze = "var(--dbn-shadow-primary, 0 0 5px 0 rgba(0, 0, 0, 0.3))", Y = (e) => {
165
165
  let t = typeof e == "string" ? e.trim() : "";
166
- return t && t !== "none" ? `${t}, ${Qe}` : Qe;
167
- }, $e = "16px", et = "12px", tt = "12px", nt = "1.5cqw", rt = /^\d+(?:\.\d+)?$/, it = (e) => {
166
+ return t && t !== "none" ? `${t}, ${Ze}` : Ze;
167
+ }, Qe = "16px", $e = "12px", et = "12px", tt = "1.5cqw", nt = /^\d+(?:\.\d+)?$/, rt = (e) => {
168
168
  if (typeof e == "number") return Number.isFinite(e) ? `${e}px` : "";
169
169
  if (typeof e != "string") return "";
170
170
  let t = e.trim();
171
- return t ? rt.test(t) ? `${t}px` : t : "";
172
- }, at = (e) => e === !0 || e === "true", ot = (e) => at(e?.cardCustomization?.responsiveFontScaling), st = 1100, ct = /^(\d+(?:\.\d+)?)px$/, Y = ({ authored: e, fallback: t, minimum: n, isScalingEnabled: r }) => {
173
- let i = it(e) || t;
171
+ return t ? nt.test(t) ? `${t}px` : t : "";
172
+ }, it = (e) => e === !0 || e === "true", at = (e) => it(e?.cardCustomization?.responsiveFontScaling), ot = 1100, st = /^(\d+(?:\.\d+)?)px$/, X = ({ authored: e, fallback: t, minimum: n, isScalingEnabled: r }) => {
173
+ let i = rt(e) || t;
174
174
  if (!r) return i;
175
- let a = ct.exec(i);
176
- return a ? `clamp(min(${n}, ${i}), ${Number((Number(a[1]) * 100 / st).toFixed(4))}cqw, ${i})` : `clamp(${n}, ${nt}, ${i})`;
177
- }, lt = (e) => Y({
175
+ let a = st.exec(i);
176
+ return a ? `clamp(min(${n}, ${i}), ${Number((Number(a[1]) * 100 / ot).toFixed(4))}cqw, ${i})` : `clamp(${n}, ${tt}, ${i})`;
177
+ }, ct = (e) => X({
178
178
  authored: e?.cardTitle?.fontSize,
179
- fallback: $e,
180
- minimum: tt,
181
- isScalingEnabled: ot(e)
182
- }), ut = (e) => Y({
179
+ fallback: Qe,
180
+ minimum: et,
181
+ isScalingEnabled: at(e)
182
+ }), lt = (e) => X({
183
183
  authored: e?.cardDescription?.fontSize,
184
- fallback: et,
184
+ fallback: $e,
185
185
  minimum: "8px",
186
- isScalingEnabled: ot(e)
187
- }), dt = () => qe.map((e) => ({
186
+ isScalingEnabled: at(e)
187
+ }), ut = () => Ke.map((e) => ({
188
188
  name: e.name,
189
189
  colors: [...e.colors]
190
- })), ft = () => ({
190
+ })), dt = () => ({
191
191
  header: {
192
192
  fontFamily: "",
193
193
  fontSize: 14,
@@ -213,7 +213,7 @@ var qe = [
213
213
  borderColor: "#e4e4e7"
214
214
  },
215
215
  override: !1
216
- }), pt = () => ({
216
+ }), ft = () => ({
217
217
  header: {
218
218
  fontColor: "#18181b",
219
219
  bgColor: "#f4f4f5",
@@ -224,11 +224,11 @@ var qe = [
224
224
  fontColor: "#52525b",
225
225
  fontSize: 14,
226
226
  fontWeight: "500",
227
- lineGap: Ye
227
+ lineGap: Je
228
228
  },
229
229
  override: !1,
230
230
  autoPagination: !1
231
- }), mt = () => ({
231
+ }), pt = () => ({
232
232
  header: {
233
233
  fontColor: "#18181b",
234
234
  bgColor: "#f4f4f5",
@@ -239,9 +239,9 @@ var qe = [
239
239
  fontColor: "#52525b",
240
240
  fontSize: 14,
241
241
  fontWeight: "500",
242
- lineGap: Ye
242
+ lineGap: Je
243
243
  }
244
- }), ht = () => ({
244
+ }), mt = () => ({
245
245
  general: {
246
246
  name: "",
247
247
  fontFamily: "sans-serif",
@@ -258,7 +258,7 @@ var qe = [
258
258
  metricCardColor: "#ffffff",
259
259
  horizontalGap: 12,
260
260
  verticalGap: 12,
261
- underlyingData: mt()
261
+ underlyingData: pt()
262
262
  },
263
263
  cardTitle: {
264
264
  fontSize: "14px",
@@ -282,19 +282,19 @@ var qe = [
282
282
  responsiveFontScaling: !1
283
283
  },
284
284
  chart: {
285
- selected: Je,
286
- paletteOptions: [Je],
287
- palettes: dt(),
285
+ selected: qe,
286
+ paletteOptions: [qe],
287
+ palettes: ut(),
288
288
  fontColor: "#18181b",
289
289
  letterSpacing: "0px",
290
290
  chartSettingsOverride: !1,
291
- tooltip: ft(),
292
- tableSettings: pt()
291
+ tooltip: dt(),
292
+ tableSettings: ft()
293
293
  }
294
294
  });
295
- ht();
295
+ mt();
296
296
  // src/types/app.ts
297
- var gt = [
297
+ var ht = [
298
298
  "Inter",
299
299
  "Roboto",
300
300
  "Open Sans",
@@ -303,60 +303,60 @@ var gt = [
303
303
  "Nunito Sans",
304
304
  "Source Sans Pro",
305
305
  "IBM Plex Sans"
306
- ], _t = "Inter";
307
- function vt(e) {
306
+ ], gt = "Inter";
307
+ function _t(e) {
308
308
  return typeof e == "string" && e.trim() ? e : void 0;
309
309
  }
310
- var yt = [
310
+ var vt = [
311
311
  "light",
312
312
  "dark",
313
313
  "system",
314
314
  "theme"
315
315
  ];
316
- function bt(e) {
317
- return yt.includes(e) ? e : void 0;
316
+ function yt(e) {
317
+ return vt.includes(e) ? e : void 0;
318
318
  }
319
- function xt(e) {
319
+ function bt(e) {
320
320
  return e === "light" || e === "dark" ? e : void 0;
321
321
  }
322
- function St(e) {
322
+ function xt(e) {
323
323
  return e?.general?.isSystemMode === !0;
324
324
  }
325
- function Ct(e, t) {
326
- return e === "system" ? !0 : e === "light" || e === "dark" ? !1 : St(t);
325
+ function St(e, t) {
326
+ return e === "system" ? !0 : e === "light" || e === "dark" ? !1 : xt(t);
327
327
  }
328
- function wt(e) {
329
- return St(e) ? "system" : xt(e?.general?.mode);
328
+ function Ct(e) {
329
+ return xt(e) ? "system" : bt(e?.general?.mode);
330
330
  }
331
- function Tt(e) {
332
- return bt(e.explicitColorScheme) || bt(e.optionsColorScheme) || wt(e.adminThemeOptions) || wt(e.namedTheme) || xt(e.productPreviewScheme) || "light";
331
+ function wt(e) {
332
+ return yt(e.explicitColorScheme) || yt(e.optionsColorScheme) || Ct(e.adminThemeOptions) || Ct(e.namedTheme) || bt(e.productPreviewScheme) || "light";
333
333
  }
334
- function Et(e, t) {
334
+ function Tt(e, t) {
335
335
  if (e === "dark") return "dark";
336
336
  if (e === "light") return "light";
337
337
  if (e === "system") return t.systemPrefersDark ? "dark" : "light";
338
- let n = wt(t.adminThemeOptions) ?? wt(t.namedTheme);
338
+ let n = Ct(t.adminThemeOptions) ?? Ct(t.namedTheme);
339
339
  return n === "system" ? t.systemPrefersDark ? "dark" : "light" : n ?? "light";
340
340
  }
341
- function Dt(e) {
341
+ function Et(e) {
342
342
  let t = e.chartAppearance && typeof e.chartAppearance == "object" ? e.chartAppearance.fontFamily : void 0;
343
- return vt(e.adminThemeOptions?.general?.fontFamily) ?? vt(e.namedTheme?.general?.fontFamily) ?? vt(t) ?? _t;
343
+ return _t(e.adminThemeOptions?.general?.fontFamily) ?? _t(e.namedTheme?.general?.fontFamily) ?? _t(t) ?? gt;
344
344
  }
345
- function Ot(e) {
346
- let t = Tt(e), n = Et(t, e), r = Dt(e);
345
+ function Dt(e) {
346
+ let t = wt(e), n = Tt(t, e), r = Et(e);
347
347
  return {
348
348
  colorScheme: t,
349
349
  mode: n,
350
350
  fontFamily: r,
351
- isCuratedFont: gt.includes(r),
351
+ isCuratedFont: ht.includes(r),
352
352
  appliedTheme: e.adminThemeOptions ?? e.namedTheme
353
353
  };
354
354
  }
355
- var kt = "color-scheme", At = (e) => {
355
+ var Ot = "color-scheme", kt = (e) => {
356
356
  let { appliedTheme: t, mode: n } = e;
357
357
  if (!t) {
358
358
  if (n === "light") return;
359
- let e = ht();
359
+ let e = mt();
360
360
  return {
361
361
  ...e,
362
362
  general: {
@@ -365,50 +365,50 @@ var kt = "color-scheme", At = (e) => {
365
365
  }
366
366
  };
367
367
  }
368
- return (xt(t.general?.mode) ?? "light") === n ? t : {
368
+ return (bt(t.general?.mode) ?? "light") === n ? t : {
369
369
  ...t,
370
370
  general: {
371
371
  ...t.general,
372
372
  mode: n
373
373
  }
374
374
  };
375
- }, jt = /* @__PURE__ */ new Set();
376
- function Mt(e) {
377
- return yt.includes(e);
375
+ }, At = /* @__PURE__ */ new Set();
376
+ function jt(e) {
377
+ return vt.includes(e);
378
378
  }
379
- function Nt(e, t = "color-scheme") {
379
+ function Mt(e, t = "color-scheme") {
380
380
  if (typeof e != "string") return;
381
381
  let n = e.trim();
382
382
  if (!n) return;
383
- if (Mt(n)) return n;
383
+ if (jt(n)) return n;
384
384
  let r = `${t}:${n}`;
385
- jt.has(r) || (jt.add(r), console.warn(`[databrain] Ignoring invalid ${t} value "${n}". Expected one of: ${yt.join(", ")}.`));
385
+ At.has(r) || (At.add(r), console.warn(`[databrain] Ignoring invalid ${t} value "${n}". Expected one of: ${vt.join(", ")}.`));
386
386
  }
387
387
  // src/theme/useHostColorScheme.ts
388
- var Pt = (e) => {
388
+ var Nt = (e) => {
389
389
  if (typeof getComputedStyle == "function") return getComputedStyle(e).colorScheme.toLowerCase().split(/\s+/).find((e) => e === "light" || e === "dark");
390
+ }, Pt = (e) => {
391
+ if (e) return Mt(e.getAttribute("color-scheme")) ?? Nt(e);
390
392
  }, Ft = (e) => {
391
- if (e) return Nt(e.getAttribute("color-scheme")) ?? Pt(e);
392
- }, It = (e) => {
393
393
  let t = [], n = e;
394
394
  for (; n;) t.push(n), n = n.parentElement;
395
395
  return t;
396
- }, Lt = () => {
397
- let [e, t] = W(null), [n, r] = W(void 0);
398
- return V(() => {
396
+ }, It = () => {
397
+ let [e, t] = G(null), [n, r] = G(void 0);
398
+ return H(() => {
399
399
  if (!e) return;
400
400
  let t = e.getRootNode(), n = t instanceof ShadowRoot ? t.host : null;
401
401
  if (!n) {
402
402
  r(void 0);
403
403
  return;
404
404
  }
405
- let i = () => r(Ft(n));
405
+ let i = () => r(Pt(n));
406
406
  if (i(), typeof MutationObserver != "function") return;
407
407
  let a = new MutationObserver(i);
408
- for (let e of It(n)) a.observe(e, {
408
+ for (let e of Ft(n)) a.observe(e, {
409
409
  attributes: !0,
410
410
  attributeFilter: [
411
- kt,
411
+ Ot,
412
412
  "class",
413
413
  "style"
414
414
  ]
@@ -418,25 +418,25 @@ var Pt = (e) => {
418
418
  anchorRef: t,
419
419
  colorScheme: n
420
420
  };
421
- }, Rt = (e) => e.endsWith("center") && e.startsWith("left") ? "dbn:text-left" : e.endsWith("center") && e.startsWith("right") ? "dbn:text-right" : e.endsWith("center") ? "dbn:text-center" : e.endsWith("right") ? "dbn:text-right" : "dbn:text-left", zt = ({ customSettings: e, children: t }) => {
421
+ }, Lt = (e) => e.endsWith("center") && e.startsWith("left") ? "dbn:text-left" : e.endsWith("center") && e.startsWith("right") ? "dbn:text-right" : e.endsWith("center") ? "dbn:text-center" : e.endsWith("right") ? "dbn:text-right" : "dbn:text-left", Rt = ({ customSettings: e, children: t }) => {
422
422
  let n = e?.chartTitle?.trim(), r = e?.chartDesc?.trim();
423
- if (!e?.enableTitleDesc || !n && !r) return /* @__PURE__ */ K(G, { children: t });
424
- let i = e.titlePosition || "top-left", a = /* @__PURE__ */ q("div", {
425
- className: `dbn:shrink-0 dbn:px-1 dbn:py-1 dbn:break-words ${Rt(i)}`,
423
+ if (!e?.enableTitleDesc || !n && !r) return /* @__PURE__ */ q(K, { children: t });
424
+ let i = e.titlePosition || "top-left", a = /* @__PURE__ */ J("div", {
425
+ className: `dbn:shrink-0 dbn:px-1 dbn:py-1 dbn:break-words ${Lt(i)}`,
426
426
  "data-testid": "chart-title-caption",
427
- children: [n ? /* @__PURE__ */ K("p", {
427
+ children: [n ? /* @__PURE__ */ q("p", {
428
428
  className: "dbn:m-0 dbn:text-sm dbn:font-semibold dbn:leading-snug",
429
429
  children: n
430
- }) : null, r ? /* @__PURE__ */ K("p", {
430
+ }) : null, r ? /* @__PURE__ */ q("p", {
431
431
  className: "dbn:m-0 dbn:whitespace-pre-line dbn:text-xs dbn:leading-snug dbn:opacity-70",
432
432
  children: r
433
433
  }) : null]
434
434
  }), o = i.startsWith("bottom");
435
- return /* @__PURE__ */ q("div", {
435
+ return /* @__PURE__ */ J("div", {
436
436
  className: "dbn:flex dbn:h-full dbn:w-full dbn:min-h-0 dbn:flex-col",
437
437
  children: [
438
438
  o ? null : a,
439
- /* @__PURE__ */ K("div", {
439
+ /* @__PURE__ */ q("div", {
440
440
  className: "dbn:min-h-0 dbn:w-full dbn:flex-1",
441
441
  children: t
442
442
  }),
@@ -445,16 +445,16 @@ var Pt = (e) => {
445
445
  });
446
446
  };
447
447
  // src/charts/chartMinHeight.ts
448
- function Bt(e) {
448
+ function zt(e) {
449
449
  let t = e ? F[e] : void 0;
450
450
  return t ? ue(t) : 200;
451
451
  }
452
452
  // src/charts/echarts6Compatibility.ts
453
- var Vt = /* @__PURE__ */ new WeakMap(), Ht = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ut = (e, t) => Array.isArray(e) ? e.map((e) => Ht(e) ? t(e) : e) : Ht(e) ? t(e) : e, Wt = (e) => ({
453
+ var Bt = /* @__PURE__ */ new WeakMap(), Vt = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ht = (e, t) => Array.isArray(e) ? e.map((e) => Vt(e) ? t(e) : e) : Vt(e) ? t(e) : e, Ut = (e) => ({
454
454
  ...e,
455
455
  outerBoundsMode: e.outerBoundsMode === void 0 ? "none" : e.outerBoundsMode
456
- }), Gt = (e) => {
457
- let t = Ht(e.axisLabel) ? e.axisLabel : {};
456
+ }), Wt = (e) => {
457
+ let t = Vt(e.axisLabel) ? e.axisLabel : {};
458
458
  return {
459
459
  ...e,
460
460
  containShape: e.containShape !== void 0 && e.containShape,
@@ -463,21 +463,21 @@ var Vt = /* @__PURE__ */ new WeakMap(), Ht = (e) => typeof e == "object" && !!e
463
463
  nameMoveOverlap: t.nameMoveOverlap !== void 0 && t.nameMoveOverlap
464
464
  }
465
465
  };
466
- }, Kt = (e) => {
467
- if (!Ht(e)) return e;
468
- let t = Vt.get(e);
466
+ }, Gt = (e) => {
467
+ if (!Vt(e)) return e;
468
+ let t = Bt.get(e);
469
469
  if (t !== void 0) return t;
470
470
  let n = {
471
471
  ...e,
472
472
  legacyViewCoordSysCenterBase: e.legacyViewCoordSysCenterBase === void 0 || e.legacyViewCoordSysCenterBase,
473
473
  richInheritPlainLabel: e.richInheritPlainLabel !== void 0 && e.richInheritPlainLabel
474
474
  };
475
- return e.grid !== void 0 && (n.grid = Ut(e.grid, Wt)), e.xAxis !== void 0 && (n.xAxis = Ut(e.xAxis, Gt)), e.yAxis !== void 0 && (n.yAxis = Ut(e.yAxis, Gt)), Vt.set(e, n), n;
476
- }, qt = [
475
+ return e.grid !== void 0 && (n.grid = Ht(e.grid, Ut)), e.xAxis !== void 0 && (n.xAxis = Ht(e.xAxis, Wt)), e.yAxis !== void 0 && (n.yAxis = Ht(e.yAxis, Wt)), Bt.set(e, n), n;
476
+ }, Kt = [
477
477
  c.pie,
478
478
  c.doughnut,
479
479
  c.rose
480
- ], Jt = [
480
+ ], qt = [
481
481
  "top-left",
482
482
  "top-center",
483
483
  "top-right",
@@ -486,27 +486,27 @@ var Vt = /* @__PURE__ */ new WeakMap(), Ht = (e) => typeof e == "object" && !!e
486
486
  "bottom-right",
487
487
  "left",
488
488
  "right"
489
- ], Yt = (e) => e && Jt.includes(e) ? e : void 0, Xt = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Zt = (e) => {
489
+ ], Jt = (e) => e && qt.includes(e) ? e : void 0, Yt = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Xt = (e) => {
490
490
  if (typeof e == "number" && Number.isFinite(e)) return e;
491
491
  if (typeof e == "string" && e.trim() !== "") {
492
492
  let t = Number(e);
493
493
  return Number.isFinite(t) ? t : void 0;
494
494
  }
495
- }, Qt = (e) => {
495
+ }, Zt = (e) => {
496
496
  let t = e.legendAppearance, n = e.legendSettings;
497
497
  return {
498
498
  show: t?.show ?? n?.show,
499
- fixedPosition: Yt(t?.fixedPosition ?? n?.fixedPosition),
500
- legendAppearance: Xt(t?.legendAppearance ?? n?.position),
499
+ fixedPosition: Jt(t?.fixedPosition ?? n?.fixedPosition),
500
+ legendAppearance: Yt(t?.legendAppearance ?? n?.position),
501
501
  disableLegendScrolling: t?.disableLegendScrolling ?? n?.disableScroll,
502
502
  truncateLegend: t?.truncateLegend ?? n?.truncateLegendValue,
503
- fontSize: Zt(t?.fontSize) ?? Zt(n?.fontSize)
503
+ fontSize: Xt(t?.fontSize) ?? Xt(n?.fontSize)
504
504
  };
505
505
  };
506
- function $t(e) {
506
+ function Qt(e) {
507
507
  let { chartType: t, canvas: n, legendLabels: r } = e;
508
- if (!t || !qt.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
509
- let i = Qt(e);
508
+ if (!t || !Kt.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
509
+ let i = Zt(e);
510
510
  if (i.show === !1) return null;
511
511
  let a = M({
512
512
  labels: r,
@@ -533,14 +533,14 @@ function $t(e) {
533
533
  insetRightPx: a.reserveRightPx
534
534
  };
535
535
  }
536
- var en = /* @__PURE__ */ new Set([
536
+ var $t = /* @__PURE__ */ new Set([
537
537
  void 0,
538
538
  "outside",
539
539
  "outer"
540
- ]), tn = (e) => {
540
+ ]), en = (e) => {
541
541
  let t = Array.isArray(e) ? e[e.length - 1] : e, n = /^(\d+(?:\.\d+)?)%$/.exec(String(t ?? "").trim());
542
542
  return n ? Number(n[1]) / 100 : 0;
543
- }, nn = (e) => !!e?.label?.show && en.has(e.label.position), rn = (e) => {
543
+ }, tn = (e) => !!e?.label?.show && $t.has(e.label.position), nn = (e) => {
544
544
  let t = Array.isArray(e.data) ? e.data : [], n = e.label?.formatter;
545
545
  return t.flatMap((e) => {
546
546
  let t = e && typeof e == "object" ? e : {}, r = String(t.name ?? "");
@@ -554,20 +554,20 @@ var en = /* @__PURE__ */ new Set([
554
554
  return r.split("\n");
555
555
  });
556
556
  };
557
- function an(e, t, n) {
557
+ function rn(e, t, n) {
558
558
  let { chartType: r, canvas: i } = t;
559
- if (!r || !qt.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
560
- let a = e.filter(nn);
559
+ if (!r || !Kt.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
560
+ let a = e.filter(tn);
561
561
  if (a.length === 0 || n.centerX !== void 0 && !/%$/.test(n.centerX)) return null;
562
- let o = Math.max(...e.map((e) => tn(e?.radius))), s = a[0], c = j({
562
+ let o = Math.max(...e.map((e) => en(e?.radius))), s = a[0], c = j({
563
563
  layout: i,
564
564
  outerRadius: o * n.scale,
565
565
  centerX: n.centerX,
566
566
  insetLeftPx: n.insetLeftPx,
567
567
  insetRightPx: n.insetRightPx,
568
- labelLines: a.flatMap(rn),
569
- fontSizePx: Zt(s.label?.fontSize),
570
- leaderPx: (Zt(s.labelLine?.length) ?? 10) + (Zt(s.labelLine?.length2) ?? 20)
568
+ labelLines: a.flatMap(nn),
569
+ fontSizePx: Xt(s.label?.fontSize),
570
+ leaderPx: (Xt(s.labelLine?.length) ?? 10) + (Xt(s.labelLine?.length2) ?? 20)
571
571
  });
572
572
  return c.mode === "hidden" ? {
573
573
  hide: !0,
@@ -577,21 +577,21 @@ function an(e, t, n) {
577
577
  radiusScale: c.radiusScale
578
578
  };
579
579
  }
580
- function on(e, t) {
580
+ function an(e, t) {
581
581
  if (!e) return e;
582
582
  let n = e.series;
583
583
  if (!Array.isArray(n) || n.length === 0) return e;
584
- let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? $t({
584
+ let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? Qt({
585
585
  ...t,
586
586
  legendLabels: i
587
- }) : null, o = a && !(a.center[0] === "50%" && a.center[1] === "50%" && a.radiusScale >= 1 && (e.legend?.type ?? "scroll") === a.legendType) ? a : null, s = n[0]?.center, c = an(n, t, {
587
+ }) : null, o = a && !(a.center[0] === "50%" && a.center[1] === "50%" && a.radiusScale >= 1 && (e.legend?.type ?? "scroll") === a.legendType) ? a : null, s = n[0]?.center, c = rn(n, t, {
588
588
  centerX: o ? o.center[0] : Array.isArray(s) ? String(s[0]) : void 0,
589
589
  scale: o ? o.radiusScale : 1,
590
590
  insetLeftPx: o?.insetLeftPx ?? 0,
591
591
  insetRightPx: o?.insetRightPx ?? 0
592
592
  });
593
593
  if (!o && !c) return e;
594
- let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && nn(e)), d = u ? l * .82 : l;
594
+ let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && tn(e)), d = u ? l * .82 : l;
595
595
  return {
596
596
  ...e,
597
597
  ...o ? { legend: {
@@ -612,7 +612,7 @@ function on(e, t) {
612
612
  ...o ? { center: o.center } : {},
613
613
  ...u ? { center: [(o?.center ?? e.center ?? ["50%", "50%"])[0], "44%"] } : {},
614
614
  ...e.radius !== void 0 && d < 1 ? { radius: N(e.radius, d) } : {},
615
- ...c?.hide && nn(e) ? {
615
+ ...c?.hide && tn(e) ? {
616
616
  label: {
617
617
  ...e.label,
618
618
  show: !1
@@ -626,13 +626,13 @@ function on(e, t) {
626
626
  };
627
627
  }
628
628
  // src/charts/withMetricChartAppearance.ts
629
- var sn = [
629
+ var on = [
630
630
  "top",
631
631
  "left",
632
632
  "right",
633
633
  "bottom",
634
634
  "inside"
635
- ], cn = [
635
+ ], sn = [
636
636
  "top-left",
637
637
  "top-center",
638
638
  "top-right",
@@ -641,7 +641,7 @@ var sn = [
641
641
  "bottom-left",
642
642
  "bottom-center",
643
643
  "bottom-right"
644
- ], ln = [
644
+ ], cn = [
645
645
  "circle",
646
646
  "rect",
647
647
  "roundRect",
@@ -649,34 +649,34 @@ var sn = [
649
649
  "diamond",
650
650
  "arrow",
651
651
  "none"
652
- ], un = (e) => e != null, dn = (e) => {
652
+ ], ln = (e) => e != null, un = (e) => {
653
653
  let t = e?.position;
654
- if (t && t !== "hidden" && sn.includes(t)) return { position: t };
655
- }, fn = (e) => {
654
+ if (t && t !== "hidden" && on.includes(t)) return { position: t };
655
+ }, dn = (e) => {
656
656
  if (!e) return;
657
657
  let t = v.legendSettings ?? {}, n = {};
658
- return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && cn.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && ln.includes(e.legendShape) && (n.legendShape = e.legendShape), un(e.truncateLegendValue) && e.truncateLegendValue !== t.truncateLegendValue && (n.truncateLegend = e.truncateLegendValue), e.disableScroll === !0 && (n.disableLegendScrolling = !0), e.customise === !0 && (n.enableVariablePosition = !0, n.top = e.top, n.left = e.left), Object.keys(n).length ? n : void 0;
659
- }, pn = (e, t) => {
658
+ return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && sn.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && cn.includes(e.legendShape) && (n.legendShape = e.legendShape), ln(e.truncateLegendValue) && e.truncateLegendValue !== t.truncateLegendValue && (n.truncateLegend = e.truncateLegendValue), e.disableScroll === !0 && (n.disableLegendScrolling = !0), e.customise === !0 && (n.enableVariablePosition = !0, n.top = e.top, n.left = e.left), Object.keys(n).length ? n : void 0;
659
+ }, fn = (e, t) => {
660
660
  if (!t) return e;
661
661
  if (!e) return t;
662
662
  let n = { ...t };
663
- for (let [t, r] of Object.entries(e)) un(r) && (n[t] = r);
663
+ for (let [t, r] of Object.entries(e)) ln(r) && (n[t] = r);
664
664
  return n;
665
- }, mn = (e, t) => {
666
- let n = pn(e?.chartLabel, dn(t?.labelSettings)), r = pn(e?.chartLegend, fn(t?.legendSettings));
665
+ }, pn = (e, t) => {
666
+ let n = fn(e?.chartLabel, un(t?.labelSettings)), r = fn(e?.chartLegend, dn(t?.legendSettings));
667
667
  return n === e?.chartLabel && r === e?.chartLegend ? e : {
668
668
  ...e,
669
669
  ...n ? { chartLabel: n } : {},
670
670
  ...r ? { chartLegend: r } : {}
671
671
  };
672
- }, hn = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, gn = /^[\\/]{2}/;
673
- function _n(e, t) {
672
+ }, mn = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, hn = /^[\\/]{2}/;
673
+ function gn(e, t) {
674
674
  return t + e.replace(/\\/g, "/");
675
675
  }
676
- function X(e, t) {
676
+ function Z(e, t) {
677
677
  if (e === !1 || e == null) throw Error(t);
678
678
  }
679
- function vn(e, t) {
679
+ function _n(e, t) {
680
680
  if (!e) {
681
681
  typeof console < "u" && console.warn(t);
682
682
  try {
@@ -684,10 +684,10 @@ function vn(e, t) {
684
684
  } catch {}
685
685
  }
686
686
  }
687
- function yn({ pathname: e = "/", search: t = "", hash: n = "" }) {
687
+ function vn({ pathname: e = "/", search: t = "", hash: n = "" }) {
688
688
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
689
689
  }
690
- function bn(e) {
690
+ function yn(e) {
691
691
  let t = {};
692
692
  if (e) {
693
693
  let n = e.indexOf("#");
@@ -697,21 +697,21 @@ function bn(e) {
697
697
  }
698
698
  return t;
699
699
  }
700
- function xn(e, t, n = "/") {
701
- return Sn(e, t, n, !1);
700
+ function bn(e, t, n = "/") {
701
+ return xn(e, t, n, !1);
702
702
  }
703
- function Sn(e, t, n, r, i) {
704
- let a = Vn((typeof t == "string" ? bn(t) : t).pathname || "/", n);
703
+ function xn(e, t, n, r, i) {
704
+ let a = Bn((typeof t == "string" ? yn(t) : t).pathname || "/", n);
705
705
  if (a == null) return null;
706
- let o = i ?? Cn(e), s = null, c = Bn(a);
707
- for (let e = 0; s == null && e < o.length; ++e) s = In(o[e], c, r);
706
+ let o = i ?? Sn(e), s = null, c = zn(a);
707
+ for (let e = 0; s == null && e < o.length; ++e) s = Fn(o[e], c, r);
708
708
  return s;
709
709
  }
710
- function Cn(e) {
711
- let t = wn(e);
712
- return En(t), t;
710
+ function Sn(e) {
711
+ let t = Cn(e);
712
+ return Tn(t), t;
713
713
  }
714
- function wn(e, t = [], n = [], r = "", i = !1) {
714
+ function Cn(e, t = [], n = [], r = "", i = !1) {
715
715
  let a = (e, a, o = i, s) => {
716
716
  let c = {
717
717
  relativePath: s === void 0 ? e.path || "" : s,
@@ -721,14 +721,14 @@ function wn(e, t = [], n = [], r = "", i = !1) {
721
721
  };
722
722
  if (c.relativePath.startsWith("/")) {
723
723
  if (!c.relativePath.startsWith(r) && o) return;
724
- X(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
724
+ Z(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
725
725
  }
726
- let l = Yn([r, c.relativePath]), u = n.concat(c);
727
- e.children && e.children.length > 0 && (X(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), wn(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
726
+ let l = Jn([r, c.relativePath]), u = n.concat(c);
727
+ e.children && e.children.length > 0 && (Z(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Cn(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
728
728
  path: l,
729
- score: Pn(l, e.index),
729
+ score: Nn(l, e.index),
730
730
  routesMeta: u.map((e, t) => {
731
- let [n, r] = zn(e.relativePath, e.caseSensitive, t === u.length - 1);
731
+ let [n, r] = Rn(e.relativePath, e.caseSensitive, t === u.length - 1);
732
732
  return {
733
733
  ...e,
734
734
  matcher: n,
@@ -739,68 +739,68 @@ function wn(e, t = [], n = [], r = "", i = !1) {
739
739
  };
740
740
  return e.forEach((e, t) => {
741
741
  if (e.path === "" || !e.path?.includes("?")) a(e, t);
742
- else for (let n of Tn(e.path)) a(e, t, !0, n);
742
+ else for (let n of wn(e.path)) a(e, t, !0, n);
743
743
  }), t;
744
744
  }
745
- function Tn(e) {
745
+ function wn(e) {
746
746
  let t = e.split("/");
747
747
  if (t.length === 0) return [];
748
748
  let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
749
749
  if (r.length === 0) return i ? [a, ""] : [a];
750
- let o = Tn(r.join("/")), s = [];
750
+ let o = wn(r.join("/")), s = [];
751
751
  return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
752
752
  }
753
- function En(e) {
754
- e.sort((e, t) => e.score === t.score ? Fn(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
753
+ function Tn(e) {
754
+ e.sort((e, t) => e.score === t.score ? Pn(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
755
755
  }
756
- var Dn = /^:[\w-]+$/, On = 3, kn = 2, An = 1, jn = 10, Mn = -2, Nn = (e) => e === "*";
757
- function Pn(e, t) {
756
+ var En = /^:[\w-]+$/, Dn = 3, On = 2, kn = 1, An = 10, jn = -2, Mn = (e) => e === "*";
757
+ function Nn(e, t) {
758
758
  let n = e.split("/"), r = n.length;
759
- return n.some(Nn) && (r += Mn), t && (r += kn), n.filter((e) => !Nn(e)).reduce((e, t) => e + (Dn.test(t) ? On : t === "" ? An : jn), r);
759
+ return n.some(Mn) && (r += jn), t && (r += On), n.filter((e) => !Mn(e)).reduce((e, t) => e + (En.test(t) ? Dn : t === "" ? kn : An), r);
760
760
  }
761
- function Fn(e, t) {
761
+ function Pn(e, t) {
762
762
  return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
763
763
  }
764
- function In(e, t, n = !1) {
764
+ function Fn(e, t, n = !1) {
765
765
  let { routesMeta: r } = e, i = {}, a = "/", o = [];
766
766
  for (let e = 0; e < r.length; ++e) {
767
767
  let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
768
768
  path: s.relativePath,
769
769
  caseSensitive: s.caseSensitive,
770
770
  end: c
771
- }, d = s.matcher && s.compiledParams ? Rn(u, l, s.matcher, s.compiledParams) : Ln(u, l), f = s.route;
772
- if (!d && c && n && !r[r.length - 1].route.index && (d = Ln({
771
+ }, d = s.matcher && s.compiledParams ? Ln(u, l, s.matcher, s.compiledParams) : In(u, l), f = s.route;
772
+ if (!d && c && n && !r[r.length - 1].route.index && (d = In({
773
773
  path: s.relativePath,
774
774
  caseSensitive: s.caseSensitive,
775
775
  end: !1
776
776
  }, l)), !d) return null;
777
777
  Object.assign(i, d.params), o.push({
778
778
  params: i,
779
- pathname: Yn([a, d.pathname]),
780
- pathnameBase: Zn(Yn([a, d.pathnameBase])),
779
+ pathname: Jn([a, d.pathname]),
780
+ pathnameBase: Xn(Jn([a, d.pathnameBase])),
781
781
  route: f
782
- }), d.pathnameBase !== "/" && (a = Yn([a, d.pathnameBase]));
782
+ }), d.pathnameBase !== "/" && (a = Jn([a, d.pathnameBase]));
783
783
  }
784
784
  return o;
785
785
  }
786
- function Ln(e, t) {
786
+ function In(e, t) {
787
787
  typeof e == "string" && (e = {
788
788
  path: e,
789
789
  caseSensitive: !1,
790
790
  end: !0
791
791
  });
792
- let [n, r] = zn(e.path, e.caseSensitive, e.end);
793
- return Rn(e, t, n, r);
792
+ let [n, r] = Rn(e.path, e.caseSensitive, e.end);
793
+ return Ln(e, t, n, r);
794
794
  }
795
- function Rn(e, t, n, r) {
795
+ function Ln(e, t, n, r) {
796
796
  let i = t.match(n);
797
797
  if (!i) return null;
798
- let a = i[0], o = Xn(a, 1), s = i.slice(1);
798
+ let a = i[0], o = Yn(a, 1), s = i.slice(1);
799
799
  return {
800
800
  params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
801
801
  if (t === "*") {
802
802
  let e = s[r] || "";
803
- o = Xn(a.slice(0, a.length - e.length), 1);
803
+ o = Yn(a.slice(0, a.length - e.length), 1);
804
804
  }
805
805
  let i = s[r];
806
806
  return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -810,8 +810,8 @@ function Rn(e, t, n, r) {
810
810
  pattern: e
811
811
  };
812
812
  }
813
- function zn(e, t = !1, n = !0) {
814
- vn(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
813
+ function Rn(e, t = !1, n = !0) {
814
+ _n(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
815
815
  let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
816
816
  if (r.push({
817
817
  paramName: t,
@@ -824,46 +824,46 @@ function zn(e, t = !1, n = !0) {
824
824
  }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
825
825
  return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
826
826
  }
827
- function Bn(e) {
827
+ function zn(e) {
828
828
  try {
829
829
  return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
830
830
  } catch (t) {
831
- return vn(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
831
+ return _n(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
832
832
  }
833
833
  }
834
- function Vn(e, t) {
834
+ function Bn(e, t) {
835
835
  if (t === "/") return e;
836
836
  if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
837
837
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
838
838
  return r && r !== "/" ? null : e.slice(n) || "/";
839
839
  }
840
- function Hn(e, t = "/") {
841
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? bn(e) : e, a;
842
- return n ? (n = Jn(n), a = n.startsWith("/") || n.startsWith("\\") ? Un(n.substring(1), "/") : Un(n, t)) : a = t, {
840
+ function Vn(e, t = "/") {
841
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? yn(e) : e, a;
842
+ return n ? (n = qn(n), a = n.startsWith("/") || n.startsWith("\\") ? Hn(n.substring(1), "/") : Hn(n, t)) : a = t, {
843
843
  pathname: a,
844
- search: Qn(r),
845
- hash: $n(i)
844
+ search: Zn(r),
845
+ hash: Qn(i)
846
846
  };
847
847
  }
848
- function Un(e, t) {
849
- let n = Xn(t).split("/");
848
+ function Hn(e, t) {
849
+ let n = Yn(t).split("/");
850
850
  return e.split("/").forEach((e) => {
851
851
  e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
852
852
  }), n.length > 1 ? n.join("/") : "/";
853
853
  }
854
- function Wn(e, t, n, r) {
854
+ function Un(e, t, n, r) {
855
855
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
856
856
  }
857
- function Gn(e) {
857
+ function Wn(e) {
858
858
  return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
859
859
  }
860
- function Kn(e) {
861
- let t = Gn(e);
860
+ function Gn(e) {
861
+ let t = Wn(e);
862
862
  return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
863
863
  }
864
- function qn(e, t, n, r = !1) {
864
+ function Kn(e, t, n, r = !1) {
865
865
  let i;
866
- typeof e == "string" ? i = bn(e) : (i = { ...e }, X(!i.pathname || !i.pathname.includes("?"), Wn("?", "pathname", "search", i)), X(!i.pathname || !i.pathname.includes("#"), Wn("#", "pathname", "hash", i)), X(!i.search || !i.search.includes("#"), Wn("#", "search", "hash", i)));
866
+ typeof e == "string" ? i = yn(e) : (i = { ...e }, Z(!i.pathname || !i.pathname.includes("?"), Un("?", "pathname", "search", i)), Z(!i.pathname || !i.pathname.includes("#"), Un("#", "pathname", "hash", i)), Z(!i.search || !i.search.includes("#"), Un("#", "search", "hash", i)));
867
867
  let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
868
868
  if (o == null) s = n;
869
869
  else {
@@ -875,40 +875,40 @@ function qn(e, t, n, r = !1) {
875
875
  }
876
876
  s = e >= 0 ? t[e] : "/";
877
877
  }
878
- let c = Hn(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
878
+ let c = Vn(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
879
879
  return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
880
880
  }
881
- var Jn = (e) => e.replace(/[\\/]{2,}/g, "/"), Yn = (e) => Jn(e.join("/"));
882
- function Xn(e, t = 0) {
881
+ var qn = (e) => e.replace(/[\\/]{2,}/g, "/"), Jn = (e) => qn(e.join("/"));
882
+ function Yn(e, t = 0) {
883
883
  let n = e.length;
884
884
  for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
885
885
  return n === e.length ? e : e.slice(0, n);
886
886
  }
887
- var Zn = (e) => Xn(e).replace(/^\/*/, "/"), Qn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, $n = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, er = class {
887
+ var Xn = (e) => Yn(e).replace(/^\/*/, "/"), Zn = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Qn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, $n = class {
888
888
  constructor(e, t, n, r = !1) {
889
889
  this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
890
890
  }
891
891
  };
892
- function tr(e) {
892
+ function er(e) {
893
893
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
894
894
  }
895
- function nr(e) {
896
- return Yn(e.map((e) => e.route.path).filter(Boolean)) || "/";
895
+ function tr(e) {
896
+ return Jn(e.map((e) => e.route.path).filter(Boolean)) || "/";
897
897
  }
898
- var rr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
899
- function ir(e, t) {
898
+ var nr = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
899
+ function rr(e, t) {
900
900
  let n = e;
901
- if (typeof n != "string" || !hn.test(n)) return {
901
+ if (typeof n != "string" || !mn.test(n)) return {
902
902
  absoluteURL: void 0,
903
903
  isExternal: !1,
904
904
  to: n
905
905
  };
906
906
  let r = n, i = !1;
907
- if (rr) try {
908
- let e = new URL(window.location.href), r = gn.test(n) ? new URL(_n(n, e.protocol)) : new URL(n), a = Vn(r.pathname, t);
907
+ if (nr) try {
908
+ let e = new URL(window.location.href), r = hn.test(n) ? new URL(gn(n, e.protocol)) : new URL(n), a = Bn(r.pathname, t);
909
909
  r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
910
910
  } catch {
911
- vn(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
911
+ _n(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
912
912
  }
913
913
  return {
914
914
  absoluteURL: r,
@@ -917,43 +917,43 @@ function ir(e, t) {
917
917
  };
918
918
  }
919
919
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
920
- var ar = new URL("http://localhost");
921
- function or(e) {
920
+ var ir = new URL("http://localhost");
921
+ function ar(e) {
922
922
  if (e.createURL) return e.createURL("/");
923
923
  try {
924
- return new URL(e.createHref("/"), ar);
924
+ return new URL(e.createHref("/"), ir);
925
925
  } catch {
926
- return ar;
926
+ return ir;
927
927
  }
928
928
  }
929
- function sr(e, t) {
929
+ function or(e, t) {
930
930
  return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
931
931
  }
932
- function cr(e, t) {
932
+ function sr(e, t) {
933
933
  if (e.startsWith("//")) return !0;
934
934
  let n = t.protocol.toLowerCase();
935
935
  return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
936
936
  }
937
- function lr(e, t, n, r) {
937
+ function cr(e, t, n, r) {
938
938
  let i = null;
939
939
  try {
940
940
  i = e == null ? null : new URL(e, n);
941
941
  } catch {}
942
- let a = new URL(t, n), o = i != null && !sr(i, n), s = !sr(a, n);
942
+ let a = new URL(t, n), o = i != null && !or(i, n), s = !or(a, n);
943
943
  if (r === "reject") {
944
944
  if (o || s) throw Error("External navigation is not allowed");
945
- } else if (s && (i == null || !cr(e, i) || !sr(i, a))) throw Error("External navigation is not allowed");
945
+ } else if (s && (i == null || !sr(e, i) || !or(i, a))) throw Error("External navigation is not allowed");
946
946
  }
947
- var ur = [
947
+ var lr = [
948
948
  "POST",
949
949
  "PUT",
950
950
  "PATCH",
951
951
  "DELETE"
952
952
  ];
953
+ new Set(lr);
954
+ var ur = ["GET", ...lr];
953
955
  new Set(ur);
954
- var dr = ["GET", ...ur];
955
- new Set(dr);
956
- var fr = [
956
+ var dr = [
957
957
  "about:",
958
958
  "blob:",
959
959
  "chrome:",
@@ -965,29 +965,29 @@ var fr = [
965
965
  "filesystem:",
966
966
  "javascript:"
967
967
  ];
968
- function pr(e) {
968
+ function fr(e) {
969
969
  try {
970
- return fr.includes(new URL(e).protocol);
970
+ return dr.includes(new URL(e).protocol);
971
971
  } catch {
972
972
  return !1;
973
973
  }
974
974
  }
975
+ var pr = e.createContext(null);
976
+ pr.displayName = "DataRouter";
975
977
  var mr = e.createContext(null);
976
- mr.displayName = "DataRouter";
977
- var hr = e.createContext(null);
978
- hr.displayName = "DataRouterState";
979
- var gr = e.createContext(!1);
980
- function _r() {
981
- return e.useContext(gr);
978
+ mr.displayName = "DataRouterState";
979
+ var hr = e.createContext(!1);
980
+ function gr() {
981
+ return e.useContext(hr);
982
982
  }
983
- var vr = e.createContext({ isTransitioning: !1 });
984
- vr.displayName = "ViewTransition";
985
- var yr = e.createContext(/* @__PURE__ */ new Map());
986
- yr.displayName = "Fetchers";
983
+ var _r = e.createContext({ isTransitioning: !1 });
984
+ _r.displayName = "ViewTransition";
985
+ var vr = e.createContext(/* @__PURE__ */ new Map());
986
+ vr.displayName = "Fetchers";
987
+ var yr = e.createContext(null);
988
+ yr.displayName = "Await";
987
989
  var br = e.createContext(null);
988
- br.displayName = "Await";
989
- var Z = e.createContext(null);
990
- Z.displayName = "Navigation";
990
+ br.displayName = "Navigation";
991
991
  var xr = e.createContext(null);
992
992
  xr.displayName = "Location";
993
993
  var Sr = e.createContext({
@@ -1008,13 +1008,13 @@ function Dr(e) {
1008
1008
  function Or(e) {
1009
1009
  if (e.startsWith(`${wr}:${Er}:{`)) try {
1010
1010
  let t = JSON.parse(e.slice(40));
1011
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new er(t.status, t.statusText, t.data);
1011
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new $n(t.status, t.statusText, t.data);
1012
1012
  } catch {}
1013
1013
  }
1014
1014
  function kr(t, { relative: n } = {}) {
1015
- X(Ar(), "useHref() may be used only in the context of a <Router> component.");
1016
- let { basename: r, navigator: i } = e.useContext(Z), { hash: a, pathname: o, search: s } = Ir(t, { relative: n }), c = o;
1017
- return r !== "/" && (c = o === "/" ? r : Yn([r, o])), i.createHref({
1015
+ Z(Ar(), "useHref() may be used only in the context of a <Router> component.");
1016
+ let { basename: r, navigator: i } = e.useContext(br), { hash: a, pathname: o, search: s } = Ir(t, { relative: n }), c = o;
1017
+ return r !== "/" && (c = o === "/" ? r : Jn([r, o])), i.createHref({
1018
1018
  pathname: c,
1019
1019
  search: s,
1020
1020
  hash: a
@@ -1024,29 +1024,29 @@ function Ar() {
1024
1024
  return e.useContext(xr) != null;
1025
1025
  }
1026
1026
  function jr() {
1027
- return X(Ar(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(xr).location;
1027
+ return Z(Ar(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(xr).location;
1028
1028
  }
1029
1029
  var Mr = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
1030
1030
  function Nr(t) {
1031
- e.useContext(Z).static || e.useLayoutEffect(t);
1031
+ e.useContext(br).static || e.useLayoutEffect(t);
1032
1032
  }
1033
1033
  function Pr() {
1034
1034
  let { isDataRoute: t } = e.useContext(Sr);
1035
1035
  return t ? Qr() : Fr();
1036
1036
  }
1037
1037
  function Fr() {
1038
- X(Ar(), "useNavigate() may be used only in the context of a <Router> component.");
1039
- let t = e.useContext(mr), { basename: n, navigator: r } = e.useContext(Z), { matches: i } = e.useContext(Sr), { pathname: a } = jr(), o = JSON.stringify(Kn(i)), s = e.useRef(!1);
1038
+ Z(Ar(), "useNavigate() may be used only in the context of a <Router> component.");
1039
+ let t = e.useContext(pr), { basename: n, navigator: r } = e.useContext(br), { matches: i } = e.useContext(Sr), { pathname: a } = jr(), o = JSON.stringify(Gn(i)), s = e.useRef(!1);
1040
1040
  return Nr(() => {
1041
1041
  s.current = !0;
1042
1042
  }), e.useCallback((e, i = {}) => {
1043
- if (vn(s.current, Mr), !s.current) return;
1043
+ if (_n(s.current, Mr), !s.current) return;
1044
1044
  if (typeof e == "number") {
1045
1045
  r.go(e);
1046
1046
  return;
1047
1047
  }
1048
- let c = qn(e, JSON.parse(o), a, i.relative === "path");
1049
- t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : Yn([n, c.pathname])), lr(typeof e == "string" ? e : yn(e), r.createHref(c), or(r), "reject"), (i.replace ? r.replace : r.push)(c, i.state, i);
1048
+ let c = Kn(e, JSON.parse(o), a, i.relative === "path");
1049
+ t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : Jn([n, c.pathname])), cr(typeof e == "string" ? e : vn(e), r.createHref(c), ar(r), "reject"), (i.replace ? r.replace : r.push)(c, i.state, i);
1050
1050
  }, [
1051
1051
  n,
1052
1052
  r,
@@ -1057,8 +1057,8 @@ function Fr() {
1057
1057
  }
1058
1058
  e.createContext(null);
1059
1059
  function Ir(t, { relative: n } = {}) {
1060
- let { matches: r } = e.useContext(Sr), { pathname: i } = jr(), a = JSON.stringify(Kn(r));
1061
- return e.useMemo(() => qn(t, JSON.parse(a), i, n === "path"), [
1060
+ let { matches: r } = e.useContext(Sr), { pathname: i } = jr(), a = JSON.stringify(Gn(r));
1061
+ return e.useMemo(() => Kn(t, JSON.parse(a), i, n === "path"), [
1062
1062
  t,
1063
1063
  a,
1064
1064
  i,
@@ -1066,8 +1066,8 @@ function Ir(t, { relative: n } = {}) {
1066
1066
  ]);
1067
1067
  }
1068
1068
  function Lr(t, n, r) {
1069
- X(Ar(), "useRoutes() may be used only in the context of a <Router> component.");
1070
- let { navigator: i } = e.useContext(Z), { matches: a } = e.useContext(Sr), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
1069
+ Z(Ar(), "useRoutes() may be used only in the context of a <Router> component.");
1070
+ let { navigator: i } = e.useContext(br), { matches: a } = e.useContext(Sr), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
1071
1071
  {
1072
1072
  let e = u && u.path || "";
1073
1073
  ei(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
@@ -1076,20 +1076,20 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
1076
1076
  }
1077
1077
  let d = jr(), f;
1078
1078
  if (n) {
1079
- let e = typeof n == "string" ? bn(n) : n;
1080
- X(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
1079
+ let e = typeof n == "string" ? yn(n) : n;
1080
+ Z(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
1081
1081
  } else f = d;
1082
1082
  let p = f.pathname || "/", m = p;
1083
1083
  if (l !== "/") {
1084
1084
  let e = l.replace(/^\//, "").split("/");
1085
1085
  m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
1086
1086
  }
1087
- let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : xn(t, { pathname: m });
1088
- vn(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), vn(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
1087
+ let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : bn(t, { pathname: m });
1088
+ _n(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), _n(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
1089
1089
  let g = Wr(h && h.map((e) => Object.assign({}, e, {
1090
1090
  params: Object.assign({}, s, e.params),
1091
- pathname: Yn([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
1092
- pathnameBase: e.pathnameBase === "/" ? l : Yn([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
1091
+ pathname: Jn([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
1092
+ pathnameBase: e.pathnameBase === "/" ? l : Jn([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
1093
1093
  })), a, r);
1094
1094
  return n && g ? /* @__PURE__ */ e.createElement(xr.Provider, { value: {
1095
1095
  location: {
@@ -1105,7 +1105,7 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
1105
1105
  } }, g) : g;
1106
1106
  }
1107
1107
  function Rr() {
1108
- let t = Zr(), n = tr(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
1108
+ let t = Zr(), n = er(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
1109
1109
  padding: "0.5rem",
1110
1110
  backgroundColor: i
1111
1111
  }, o = {
@@ -1152,18 +1152,18 @@ var zr = /* @__PURE__ */ e.createElement(Rr, null), Br = class extends e.Compone
1152
1152
  return this.context ? /* @__PURE__ */ e.createElement(Hr, { error: t }, n) : n;
1153
1153
  }
1154
1154
  };
1155
- Br.contextType = gr;
1155
+ Br.contextType = hr;
1156
1156
  var Vr = /* @__PURE__ */ new WeakMap();
1157
1157
  function Hr({ children: t, error: n }) {
1158
- let { basename: r, navigator: i } = e.useContext(Z);
1158
+ let { basename: r, navigator: i } = e.useContext(br);
1159
1159
  if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
1160
1160
  let t = Dr(n.digest);
1161
1161
  if (t) {
1162
1162
  let a = Vr.get(n);
1163
1163
  if (a) throw a;
1164
- let o = ir(t.location, r), s = o.absoluteURL || o.to;
1165
- if (lr(t.location, s, or(i), "allow-explicit"), pr(s)) throw Error("Invalid redirect location");
1166
- if (rr && !Vr.get(n)) {
1164
+ let o = rr(t.location, r), s = o.absoluteURL || o.to;
1165
+ if (cr(t.location, s, ar(i), "allow-explicit"), fr(s)) throw Error("Invalid redirect location");
1166
+ if (nr && !Vr.get(n)) {
1167
1167
  if (o.isExternal || t.reloadDocument) window.location.href = s;
1168
1168
  else {
1169
1169
  let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: t.replace }));
@@ -1179,7 +1179,7 @@ function Hr({ children: t, error: n }) {
1179
1179
  return t;
1180
1180
  }
1181
1181
  function Ur({ routeContext: t, match: n, children: r }) {
1182
- let i = e.useContext(mr);
1182
+ let i = e.useContext(pr);
1183
1183
  return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Sr.Provider, { value: t }, r);
1184
1184
  }
1185
1185
  function Wr(t, n = [], r) {
@@ -1193,7 +1193,7 @@ function Wr(t, n = [], r) {
1193
1193
  let a = t, o = i?.errors;
1194
1194
  if (o != null) {
1195
1195
  let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
1196
- X(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
1196
+ Z(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
1197
1197
  }
1198
1198
  let s = !1, c = -1;
1199
1199
  if (r && i) {
@@ -1213,7 +1213,7 @@ function Wr(t, n = [], r) {
1213
1213
  l(e, {
1214
1214
  location: i.location,
1215
1215
  params: i.matches?.[0]?.params ?? {},
1216
- pattern: nr(i.matches),
1216
+ pattern: tr(i.matches),
1217
1217
  errorInfo: t
1218
1218
  });
1219
1219
  } : void 0;
@@ -1251,20 +1251,20 @@ function Gr(e) {
1251
1251
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1252
1252
  }
1253
1253
  function Kr(t) {
1254
- let n = e.useContext(mr);
1255
- return X(n, Gr(t)), n;
1254
+ let n = e.useContext(pr);
1255
+ return Z(n, Gr(t)), n;
1256
1256
  }
1257
1257
  function qr(t) {
1258
- let n = e.useContext(hr);
1259
- return X(n, Gr(t)), n;
1258
+ let n = e.useContext(mr);
1259
+ return Z(n, Gr(t)), n;
1260
1260
  }
1261
1261
  function Jr(t) {
1262
1262
  let n = e.useContext(Sr);
1263
- return X(n, Gr(t)), n;
1263
+ return Z(n, Gr(t)), n;
1264
1264
  }
1265
1265
  function Yr(e) {
1266
1266
  let t = Jr(e), n = t.matches[t.matches.length - 1];
1267
- return X(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1267
+ return Z(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1268
1268
  }
1269
1269
  function Xr() {
1270
1270
  return Yr("useRouteId");
@@ -1278,7 +1278,7 @@ function Qr() {
1278
1278
  return Nr(() => {
1279
1279
  r.current = !0;
1280
1280
  }), e.useCallback(async (e, i = {}) => {
1281
- vn(r.current, Mr), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
1281
+ _n(r.current, Mr), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
1282
1282
  fromRouteId: n,
1283
1283
  ...i
1284
1284
  }));
@@ -1286,7 +1286,7 @@ function Qr() {
1286
1286
  }
1287
1287
  var $r = {};
1288
1288
  function ei(e, t, n) {
1289
- !t && !$r[e] && ($r[e] = !0, vn(!1, n));
1289
+ !t && !$r[e] && ($r[e] = !0, _n(!1, n));
1290
1290
  }
1291
1291
  e.memo(ti);
1292
1292
  function ti({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
@@ -1333,18 +1333,18 @@ var fi = /* @__PURE__ */ new Set([
1333
1333
  "text/plain"
1334
1334
  ]);
1335
1335
  function pi(e) {
1336
- return e != null && !fi.has(e) ? (vn(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ri}"`), null) : e;
1336
+ return e != null && !fi.has(e) ? (_n(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${ri}"`), null) : e;
1337
1337
  }
1338
1338
  function mi(e, t) {
1339
1339
  let n, r, i, a, o;
1340
1340
  if (oi(e)) {
1341
1341
  let o = e.getAttribute("action");
1342
- r = o ? Vn(o, t) : null, n = e.getAttribute("method") || ni, i = pi(e.getAttribute("enctype")) || ri, a = new FormData(e);
1342
+ r = o ? Bn(o, t) : null, n = e.getAttribute("method") || ni, i = pi(e.getAttribute("enctype")) || ri, a = new FormData(e);
1343
1343
  } else if (ai(e) || si(e) && (e.type === "submit" || e.type === "image")) {
1344
1344
  let o = e.form;
1345
1345
  if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
1346
1346
  let s = e.getAttribute("formaction") || o.getAttribute("action");
1347
- if (r = s ? Vn(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || ni, i = pi(e.getAttribute("formenctype")) || pi(o.getAttribute("enctype")) || ri, a = new FormData(o, e), !di()) {
1347
+ if (r = s ? Bn(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || ni, i = pi(e.getAttribute("formenctype")) || pi(o.getAttribute("enctype")) || ri, a = new FormData(o, e), !di()) {
1348
1348
  let { name: t, type: n, value: r } = e;
1349
1349
  if (n === "image") {
1350
1350
  let e = t ? `${t}.` : "";
@@ -1367,7 +1367,7 @@ function hi(e, t) {
1367
1367
  }
1368
1368
  function gi(e, t, n, r) {
1369
1369
  let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
1370
- return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && Vn(i.pathname, t) === "/" ? `${Xn(t)}/_root.${r}` : `${Xn(i.pathname)}.${r}`, i;
1370
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && Bn(i.pathname, t) === "/" ? `${Yn(t)}/_root.${r}` : `${Yn(i.pathname)}.${r}`, i;
1371
1371
  }
1372
1372
  async function _i(e, t) {
1373
1373
  if (e.id in t) return t[e.id];
@@ -1452,11 +1452,11 @@ function Ti(e, t) {
1452
1452
  }, []);
1453
1453
  }
1454
1454
  function Ei() {
1455
- let t = e.useContext(mr);
1455
+ let t = e.useContext(pr);
1456
1456
  return hi(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
1457
1457
  }
1458
1458
  function Di() {
1459
- let t = e.useContext(hr);
1459
+ let t = e.useContext(mr);
1460
1460
  return hi(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
1461
1461
  }
1462
1462
  var Oi = e.createContext(void 0);
@@ -1519,7 +1519,7 @@ function ji(e, t) {
1519
1519
  };
1520
1520
  }
1521
1521
  function Mi({ page: t, ...n }) {
1522
- let r = _r(), { nonce: i } = ki(), { router: a } = Ei(), o = e.useMemo(() => xn(a.routes, t, a.basename), [
1522
+ let r = gr(), { nonce: i } = ki(), { router: a } = Ei(), o = e.useMemo(() => bn(a.routes, t, a.basename), [
1523
1523
  a.routes,
1524
1524
  t,
1525
1525
  a.basename
@@ -1637,12 +1637,12 @@ try {
1637
1637
  Li && (window.__reactRouterVersion = "7.18.4");
1638
1638
  } catch {}
1639
1639
  var Ri = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
1640
- let { basename: g, navigator: _, useTransitions: v } = e.useContext(Z), y = typeof u == "string" && hn.test(u), ee = ir(u, g);
1640
+ let { basename: g, navigator: _, useTransitions: v } = e.useContext(br), y = typeof u == "string" && mn.test(u), ee = rr(u, g);
1641
1641
  u = ee.to;
1642
1642
  let b = kr(u, { relative: i }), x = jr(), S = null;
1643
1643
  if (s) {
1644
- let e = qn(s, [], x.mask ? x.mask.pathname : "/", !0);
1645
- g !== "/" && (e.pathname = e.pathname === "/" ? g : Yn([g, e.pathname])), S = _.createHref(e);
1644
+ let e = Kn(s, [], x.mask ? x.mask.pathname : "/", !0);
1645
+ g !== "/" && (e.pathname = e.pathname === "/" ? g : Jn([g, e.pathname])), S = _.createHref(e);
1646
1646
  }
1647
1647
  let [C, w, T] = Ai(r, m), te = Ui(u, {
1648
1648
  replace: o,
@@ -1671,8 +1671,8 @@ var Ri = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r
1671
1671
  });
1672
1672
  Ri.displayName = "Link";
1673
1673
  var zi = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
1674
- let d = Ir(o, { relative: l.relative }), f = jr(), p = e.useContext(hr), { navigator: m, basename: h } = e.useContext(Z), g = p != null && Ji(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1675
- n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = Vn(y, h) || y);
1674
+ let d = Ir(o, { relative: l.relative }), f = jr(), p = e.useContext(mr), { navigator: m, basename: h } = e.useContext(br), g = p != null && Ji(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1675
+ n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = Bn(y, h) || y);
1676
1676
  let ee = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, b = v === _ || !i && v.startsWith(_) && v.charAt(ee) === "/", x = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), S = {
1677
1677
  isActive: b,
1678
1678
  isPending: x,
@@ -1697,7 +1697,7 @@ var zi = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
1697
1697
  });
1698
1698
  zi.displayName = "NavLink";
1699
1699
  var Bi = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = ni, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
1700
- let { useTransitions: g } = e.useContext(Z), _ = Ki(), v = qi(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", ee = typeof c == "string" && hn.test(c);
1700
+ let { useTransitions: g } = e.useContext(br), _ = Ki(), v = qi(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", ee = typeof c == "string" && mn.test(c);
1701
1701
  return /* @__PURE__ */ e.createElement("form", {
1702
1702
  ref: h,
1703
1703
  method: y,
@@ -1727,15 +1727,15 @@ function Vi(e) {
1727
1727
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1728
1728
  }
1729
1729
  function Hi(t) {
1730
- let n = e.useContext(mr);
1731
- return X(n, Vi(t)), n;
1730
+ let n = e.useContext(pr);
1731
+ return Z(n, Vi(t)), n;
1732
1732
  }
1733
1733
  function Ui(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
1734
1734
  let d = Pr(), f = jr(), p = Ir(t, { relative: s });
1735
1735
  return e.useCallback((m) => {
1736
1736
  if (li(m, n)) {
1737
1737
  m.preventDefault();
1738
- let n = r === void 0 ? yn(f) === yn(p) : r, h = () => d(t, {
1738
+ let n = r === void 0 ? vn(f) === vn(p) : r, h = () => d(t, {
1739
1739
  replace: n,
1740
1740
  mask: i,
1741
1741
  state: a,
@@ -1764,7 +1764,7 @@ function Ui(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o
1764
1764
  }
1765
1765
  var Wi = 0, Gi = () => `__${String(++Wi)}__`;
1766
1766
  function Ki() {
1767
- let { router: t } = Hi("useSubmit"), { basename: n } = e.useContext(Z), r = Xr(), i = t.fetch, a = t.navigate;
1767
+ let { router: t } = Hi("useSubmit"), { basename: n } = e.useContext(br), r = Xr(), i = t.fetch, a = t.navigate;
1768
1768
  return e.useCallback(async (e, t = {}) => {
1769
1769
  let { action: o, method: s, encType: c, formData: l, body: u } = mi(e, n);
1770
1770
  if (t.navigate === !1) {
@@ -1799,8 +1799,8 @@ function Ki() {
1799
1799
  ]);
1800
1800
  }
1801
1801
  function qi(t, { relative: n } = {}) {
1802
- let { basename: r } = e.useContext(Z), i = e.useContext(Sr);
1803
- X(i, "useFormAction must be used inside a RouteContext");
1802
+ let { basename: r } = e.useContext(br), i = e.useContext(Sr);
1803
+ Z(i, "useFormAction must be used inside a RouteContext");
1804
1804
  let [a] = i.matches.slice(-1), o = { ...Ir(t || ".", { relative: n }) }, s = jr();
1805
1805
  if (t == null) {
1806
1806
  o.search = s.search;
@@ -1811,19 +1811,19 @@ function qi(t, { relative: n } = {}) {
1811
1811
  o.search = n ? `?${n}` : "";
1812
1812
  }
1813
1813
  }
1814
- return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : Yn([r, o.pathname])), yn(o);
1814
+ return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : Jn([r, o.pathname])), vn(o);
1815
1815
  }
1816
1816
  function Ji(t, { relative: n } = {}) {
1817
- let r = e.useContext(vr);
1818
- X(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1817
+ let r = e.useContext(_r);
1818
+ Z(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1819
1819
  let { basename: i } = Hi("useViewTransitionState"), a = Ir(t, { relative: n });
1820
1820
  if (!r.isTransitioning) return !1;
1821
- let o = Vn(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = Vn(r.nextLocation.pathname, i) || r.nextLocation.pathname;
1822
- return Ln(a.pathname, s) != null || Ln(a.pathname, o) != null;
1821
+ let o = Bn(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = Bn(r.nextLocation.pathname, i) || r.nextLocation.pathname;
1822
+ return In(a.pathname, s) != null || In(a.pathname, o) != null;
1823
1823
  }
1824
1824
  // src/components/List/index.tsx
1825
1825
  var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: s = !1, showLogo: c, isShowOptions: l, setValue: u, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: _, isEnableSelectAll: v, onSelectAll: ee, onDeselectAll: b, isAllSelected: S, parent: C, extraValues: w, extraHeaderText: te, onTourClick: ne, onRowClick: re, onRowHover: E, onMouseOut: ie, buttonContent: ae, noDataSubHeading: D, isDatasourceList: oe, stateKey: O, onCreate: k, isDemoDatasource: A, isOpenInNewTab: j, noDataProps: M }) => {
1826
- let se = Pr(), [ce, le] = W(o), [ue, de] = W(""), [N, P] = W(""), F = (e) => {
1826
+ let se = Pr(), [ce, le] = G(o), [ue, de] = G(""), [N, P] = G(""), F = (e) => {
1827
1827
  if (C) switch (C) {
1828
1828
  case "DASHBOARD":
1829
1829
  case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${w?.workspaceId}${w?.dataMartId ? `&dmId=${w?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
@@ -1839,12 +1839,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1839
1839
  return null;
1840
1840
  }, fe = () => {
1841
1841
  if (O) switch (O) {
1842
- case "datasource": return /* @__PURE__ */ K("div", {
1842
+ case "datasource": return /* @__PURE__ */ q("div", {
1843
1843
  className: "dbn:flex dbn:justify-center dbn:items-center",
1844
1844
  style: { height: "270px" },
1845
- children: /* @__PURE__ */ q("div", {
1845
+ children: /* @__PURE__ */ J("div", {
1846
1846
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1847
- children: [/* @__PURE__ */ K(I, {
1847
+ children: [/* @__PURE__ */ q(I, {
1848
1848
  message: "No datasources connected.",
1849
1849
  subText: "Add a datasource to start building your dashboard.",
1850
1850
  height: "80px",
@@ -1853,14 +1853,14 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1853
1853
  subTextGap: "6px",
1854
1854
  msgVariant: "sec-heading-4",
1855
1855
  isNoDatasourceConnected: !0
1856
- }), /* @__PURE__ */ K(zi, {
1856
+ }), /* @__PURE__ */ q(zi, {
1857
1857
  to: "/configuration",
1858
- children: /* @__PURE__ */ q("div", {
1859
- className: z.createBtn,
1860
- children: [/* @__PURE__ */ K(T, {
1858
+ children: /* @__PURE__ */ J("div", {
1859
+ className: B.createBtn,
1860
+ children: [/* @__PURE__ */ q(T, {
1861
1861
  size: "sm",
1862
1862
  name: "plus"
1863
- }), /* @__PURE__ */ K(x, {
1863
+ }), /* @__PURE__ */ q(x, {
1864
1864
  variant: "btn",
1865
1865
  children: "Datasource"
1866
1866
  })]
@@ -1868,12 +1868,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1868
1868
  })]
1869
1869
  })
1870
1870
  });
1871
- case "datamart": return /* @__PURE__ */ K("div", {
1871
+ case "datamart": return /* @__PURE__ */ q("div", {
1872
1872
  className: "dbn:flex dbn:justify-center dbn:items-center",
1873
1873
  style: { height: "270px" },
1874
- children: /* @__PURE__ */ q("div", {
1874
+ children: /* @__PURE__ */ J("div", {
1875
1875
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1876
- children: [/* @__PURE__ */ K(I, {
1876
+ children: [/* @__PURE__ */ q(I, {
1877
1877
  message: "No Data Marts yet.",
1878
1878
  subText: "Create your first Data Mart to get started.",
1879
1879
  height: "80px",
@@ -1882,25 +1882,25 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1882
1882
  subTextGap: "6px",
1883
1883
  msgVariant: "sec-heading-4",
1884
1884
  isNoDatamart: !0
1885
- }), /* @__PURE__ */ q("div", {
1886
- className: z.createBtn,
1885
+ }), /* @__PURE__ */ J("div", {
1886
+ className: B.createBtn,
1887
1887
  onClick: k,
1888
- children: [/* @__PURE__ */ K(T, {
1888
+ children: [/* @__PURE__ */ q(T, {
1889
1889
  size: "sm",
1890
1890
  name: "plus"
1891
- }), /* @__PURE__ */ K(x, {
1891
+ }), /* @__PURE__ */ q(x, {
1892
1892
  variant: "btn",
1893
1893
  children: "Data Mart"
1894
1894
  })]
1895
1895
  })]
1896
1896
  })
1897
1897
  });
1898
- case "dataapp": return /* @__PURE__ */ K("div", {
1898
+ case "dataapp": return /* @__PURE__ */ q("div", {
1899
1899
  className: "dbn:flex dbn:justify-center dbn:items-center",
1900
1900
  style: { height: "270px" },
1901
- children: /* @__PURE__ */ q("div", {
1901
+ children: /* @__PURE__ */ J("div", {
1902
1902
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1903
- children: [/* @__PURE__ */ K(I, {
1903
+ children: [/* @__PURE__ */ q(I, {
1904
1904
  message: "No Data Apps yet.",
1905
1905
  subText: "Create your first Data App to get started.",
1906
1906
  height: "80px",
@@ -1909,25 +1909,25 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1909
1909
  subTextGap: "6px",
1910
1910
  msgVariant: "sec-heading-4",
1911
1911
  isNoDatamart: !0
1912
- }), /* @__PURE__ */ q("div", {
1913
- className: z.createBtn,
1912
+ }), /* @__PURE__ */ J("div", {
1913
+ className: B.createBtn,
1914
1914
  onClick: k,
1915
- children: [/* @__PURE__ */ K(T, {
1915
+ children: [/* @__PURE__ */ q(T, {
1916
1916
  size: "sm",
1917
1917
  name: "plus"
1918
- }), /* @__PURE__ */ K(x, {
1918
+ }), /* @__PURE__ */ q(x, {
1919
1919
  variant: "btn",
1920
1920
  children: "Data App"
1921
1921
  })]
1922
1922
  })]
1923
1923
  })
1924
1924
  });
1925
- case "semantic": return /* @__PURE__ */ K("div", {
1925
+ case "semantic": return /* @__PURE__ */ q("div", {
1926
1926
  className: "dbn:flex dbn:justify-center dbn:items-center",
1927
1927
  style: { height: "270px" },
1928
- children: /* @__PURE__ */ K("div", {
1928
+ children: /* @__PURE__ */ q("div", {
1929
1929
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1930
- children: /* @__PURE__ */ K(I, {
1930
+ children: /* @__PURE__ */ q(I, {
1931
1931
  message: "No Semantic Layer yet.",
1932
1932
  subText: "Create a Data Mart to load your Semantic Layer.",
1933
1933
  height: "80px",
@@ -1939,12 +1939,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1939
1939
  })
1940
1940
  })
1941
1941
  });
1942
- case "dashboard": return /* @__PURE__ */ K("div", {
1942
+ case "dashboard": return /* @__PURE__ */ q("div", {
1943
1943
  className: "dbn:flex dbn:justify-center dbn:items-center",
1944
1944
  style: { height: A ? "200px" : "calc(100% - 50px)" },
1945
- children: /* @__PURE__ */ q("div", {
1945
+ children: /* @__PURE__ */ J("div", {
1946
1946
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1947
- children: [/* @__PURE__ */ K(I, {
1947
+ children: [/* @__PURE__ */ q(I, {
1948
1948
  message: "No dashboards here yet.",
1949
1949
  subText: "Create your first dashboard to get started.",
1950
1950
  height: A ? "0px" : "140px",
@@ -1953,25 +1953,25 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1953
1953
  subTextGap: "6px",
1954
1954
  msgVariant: "sec-heading-4",
1955
1955
  isNoDashboard: !0
1956
- }), C === "DASHBOARD_CREATE" && /* @__PURE__ */ q("div", {
1957
- className: z.createBtn,
1956
+ }), C === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1957
+ className: B.createBtn,
1958
1958
  onClick: k,
1959
- children: [/* @__PURE__ */ K(T, {
1959
+ children: [/* @__PURE__ */ q(T, {
1960
1960
  size: "sm",
1961
1961
  name: "plus"
1962
- }), /* @__PURE__ */ K(x, {
1962
+ }), /* @__PURE__ */ q(x, {
1963
1963
  variant: "btn",
1964
1964
  children: "Dashboard"
1965
1965
  })]
1966
1966
  })]
1967
1967
  })
1968
1968
  });
1969
- case "metric": return /* @__PURE__ */ K("div", {
1969
+ case "metric": return /* @__PURE__ */ q("div", {
1970
1970
  className: "dbn:flex dbn:justify-center dbn:items-center",
1971
1971
  style: { height: A ? "200px" : "calc(100% - 50px)" },
1972
- children: /* @__PURE__ */ q("div", {
1972
+ children: /* @__PURE__ */ J("div", {
1973
1973
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1974
- children: [/* @__PURE__ */ K(I, {
1974
+ children: [/* @__PURE__ */ q(I, {
1975
1975
  message: "No metrics here yet.",
1976
1976
  subText: "Start by adding a metric to build your dashboard.",
1977
1977
  height: A ? "0px" : "140px",
@@ -1980,25 +1980,25 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1980
1980
  subTextGap: "6px",
1981
1981
  msgVariant: "sec-heading-4",
1982
1982
  isNoMetric: !0
1983
- }), C && /* @__PURE__ */ q("div", {
1984
- className: z.createBtn,
1983
+ }), C && /* @__PURE__ */ J("div", {
1984
+ className: B.createBtn,
1985
1985
  onClick: k,
1986
- children: [/* @__PURE__ */ K(T, {
1986
+ children: [/* @__PURE__ */ q(T, {
1987
1987
  size: "sm",
1988
1988
  name: "plus"
1989
- }), /* @__PURE__ */ K(x, {
1989
+ }), /* @__PURE__ */ q(x, {
1990
1990
  variant: "btn",
1991
1991
  children: "Metric"
1992
1992
  })]
1993
1993
  })]
1994
1994
  })
1995
1995
  });
1996
- case "dashboard-search": return /* @__PURE__ */ K("div", {
1996
+ case "dashboard-search": return /* @__PURE__ */ q("div", {
1997
1997
  className: "dbn:flex dbn:justify-center dbn:items-center",
1998
1998
  style: { height: A ? "200px" : "calc(100% - 50px)" },
1999
- children: /* @__PURE__ */ q("div", {
1999
+ children: /* @__PURE__ */ J("div", {
2000
2000
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
2001
- children: [/* @__PURE__ */ K(I, {
2001
+ children: [/* @__PURE__ */ q(I, {
2002
2002
  message: "No results found.",
2003
2003
  subText: "Try adjusting your search or create a new dashboard.",
2004
2004
  height: A ? "0px" : "140px",
@@ -2007,25 +2007,25 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2007
2007
  subTextGap: "6px",
2008
2008
  msgVariant: "sec-heading-4",
2009
2009
  isNoMatchedMetric: !0
2010
- }), C === "DASHBOARD_CREATE" && /* @__PURE__ */ q("div", {
2011
- className: z.createBtn,
2010
+ }), C === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
2011
+ className: B.createBtn,
2012
2012
  onClick: k,
2013
- children: [/* @__PURE__ */ K(T, {
2013
+ children: [/* @__PURE__ */ q(T, {
2014
2014
  size: "sm",
2015
2015
  name: "plus"
2016
- }), /* @__PURE__ */ K(x, {
2016
+ }), /* @__PURE__ */ q(x, {
2017
2017
  variant: "btn",
2018
2018
  children: "Dashboard"
2019
2019
  })]
2020
2020
  })]
2021
2021
  })
2022
2022
  });
2023
- case "metric-search": return /* @__PURE__ */ K("div", {
2023
+ case "metric-search": return /* @__PURE__ */ q("div", {
2024
2024
  className: "dbn:flex dbn:justify-center dbn:items-center",
2025
2025
  style: { height: A ? "200px" : "calc(100% - 50px)" },
2026
- children: /* @__PURE__ */ q("div", {
2026
+ children: /* @__PURE__ */ J("div", {
2027
2027
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
2028
- children: [/* @__PURE__ */ K(I, {
2028
+ children: [/* @__PURE__ */ q(I, {
2029
2029
  message: "No results found.",
2030
2030
  subText: "Try adjusting your search or create a new metric.",
2031
2031
  height: A ? "0px" : "140px",
@@ -2034,25 +2034,25 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2034
2034
  subTextGap: "6px",
2035
2035
  msgVariant: "sec-heading-4",
2036
2036
  isNoMatchedMetric: !0
2037
- }), C && /* @__PURE__ */ q("div", {
2038
- className: z.createBtn,
2037
+ }), C && /* @__PURE__ */ J("div", {
2038
+ className: B.createBtn,
2039
2039
  onClick: k,
2040
- children: [/* @__PURE__ */ K(T, {
2040
+ children: [/* @__PURE__ */ q(T, {
2041
2041
  size: "sm",
2042
2042
  name: "plus"
2043
- }), /* @__PURE__ */ K(x, {
2043
+ }), /* @__PURE__ */ q(x, {
2044
2044
  variant: "btn",
2045
2045
  children: "Metric"
2046
2046
  })]
2047
2047
  })]
2048
2048
  })
2049
2049
  });
2050
- case "datasource-search": return /* @__PURE__ */ K("div", {
2050
+ case "datasource-search": return /* @__PURE__ */ q("div", {
2051
2051
  className: "dbn:flex dbn:justify-center dbn:items-center",
2052
2052
  style: { height: "350px" },
2053
- children: /* @__PURE__ */ K("div", {
2053
+ children: /* @__PURE__ */ q("div", {
2054
2054
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
2055
- children: /* @__PURE__ */ K(I, {
2055
+ children: /* @__PURE__ */ q(I, {
2056
2056
  message: "No results found.",
2057
2057
  subText: "Try adjusting your search or create a new datasource.",
2058
2058
  height: "140px",
@@ -2064,12 +2064,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2064
2064
  })
2065
2065
  })
2066
2066
  });
2067
- case "datamart-search": return /* @__PURE__ */ K("div", {
2067
+ case "datamart-search": return /* @__PURE__ */ q("div", {
2068
2068
  className: "dbn:flex dbn:justify-center dbn:items-center",
2069
2069
  style: { height: "350px" },
2070
- children: /* @__PURE__ */ K("div", {
2070
+ children: /* @__PURE__ */ q("div", {
2071
2071
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
2072
- children: /* @__PURE__ */ K(I, {
2072
+ children: /* @__PURE__ */ q(I, {
2073
2073
  message: "No results found.",
2074
2074
  subText: "Try adjusting your search or create a new datamart.",
2075
2075
  height: "140px",
@@ -2081,12 +2081,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2081
2081
  })
2082
2082
  })
2083
2083
  });
2084
- case "dataapp-search": return /* @__PURE__ */ K("div", {
2084
+ case "dataapp-search": return /* @__PURE__ */ q("div", {
2085
2085
  className: "dbn:flex dbn:justify-center dbn:items-center",
2086
2086
  style: { height: "350px" },
2087
- children: /* @__PURE__ */ K("div", {
2087
+ children: /* @__PURE__ */ q("div", {
2088
2088
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
2089
- children: /* @__PURE__ */ K(I, {
2089
+ children: /* @__PURE__ */ q(I, {
2090
2090
  message: "No results found.",
2091
2091
  subText: "Try adjusting your search or create a new dataapp.",
2092
2092
  height: "140px",
@@ -2098,12 +2098,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2098
2098
  })
2099
2099
  })
2100
2100
  });
2101
- case "semantic-search": return /* @__PURE__ */ K("div", {
2101
+ case "semantic-search": return /* @__PURE__ */ q("div", {
2102
2102
  className: "dbn:flex dbn:justify-center dbn:items-center",
2103
2103
  style: { height: "350px" },
2104
- children: /* @__PURE__ */ K("div", {
2104
+ children: /* @__PURE__ */ q("div", {
2105
2105
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
2106
- children: /* @__PURE__ */ K(I, {
2106
+ children: /* @__PURE__ */ q(I, {
2107
2107
  message: "No results found.",
2108
2108
  subText: "Try adjusting your search or create a new Data Mart to load its Semantic Layer.",
2109
2109
  height: "140px",
@@ -2115,10 +2115,10 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2115
2115
  })
2116
2116
  })
2117
2117
  });
2118
- case "embeds-search": return /* @__PURE__ */ K("div", {
2118
+ case "embeds-search": return /* @__PURE__ */ q("div", {
2119
2119
  className: "dbn:flex dbn:justify-center dbn:items-center",
2120
2120
  style: { height: "250px" },
2121
- children: /* @__PURE__ */ K(I, {
2121
+ children: /* @__PURE__ */ q(I, {
2122
2122
  message: "No results found.",
2123
2123
  subText: "Try adjusting your search or add a new embed.",
2124
2124
  height: "100px",
@@ -2133,23 +2133,23 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2133
2133
  return null;
2134
2134
  }, pe = () => {
2135
2135
  if (O) switch (O) {
2136
- case "datasource": return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ q("div", {
2136
+ case "datasource": return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2137
2137
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2138
2138
  children: [
2139
- /* @__PURE__ */ K(x, {
2139
+ /* @__PURE__ */ q(x, {
2140
2140
  variant: "heading-2",
2141
2141
  color: "primary",
2142
2142
  children: "FAQs"
2143
2143
  }),
2144
- /* @__PURE__ */ K(De, {
2144
+ /* @__PURE__ */ q(De, {
2145
2145
  header: "What is a Data Source?",
2146
2146
  isOpen: N === "datasource",
2147
2147
  setIsOpen: () => {
2148
2148
  P((e) => e === "datasource" ? "" : "datasource");
2149
2149
  },
2150
- content: /* @__PURE__ */ K("div", {
2150
+ content: /* @__PURE__ */ q("div", {
2151
2151
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2152
- children: /* @__PURE__ */ K(x, {
2152
+ children: /* @__PURE__ */ q(x, {
2153
2153
  variant: "faq-content",
2154
2154
  color: "light",
2155
2155
  children: "A connection point for integrating and monitoring all your data in one place."
@@ -2157,20 +2157,20 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2157
2157
  }),
2158
2158
  width: "100%"
2159
2159
  }, "datasource"),
2160
- /* @__PURE__ */ K(De, {
2160
+ /* @__PURE__ */ q(De, {
2161
2161
  header: "How to set up a Data Source?",
2162
2162
  isOpen: N === "datasource-setup",
2163
2163
  setIsOpen: () => {
2164
2164
  P((e) => e === "datasource-setup" ? "" : "datasource-setup");
2165
2165
  },
2166
- content: /* @__PURE__ */ q("div", {
2166
+ content: /* @__PURE__ */ J("div", {
2167
2167
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-end dbn:-top-3 dbn:relative",
2168
- children: [/* @__PURE__ */ q(x, {
2168
+ children: [/* @__PURE__ */ J(x, {
2169
2169
  variant: "faq-content",
2170
2170
  color: "light",
2171
2171
  children: [
2172
2172
  "To connect your Data follow these steps ",
2173
- /* @__PURE__ */ K("br", {}),
2173
+ /* @__PURE__ */ q("br", {}),
2174
2174
  "+ Datasource ",
2175
2175
  ">",
2176
2176
  " Select your Datasource ",
@@ -2181,12 +2181,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2181
2181
  ">",
2182
2182
  " Save"
2183
2183
  ]
2184
- }), /* @__PURE__ */ K(zi, {
2184
+ }), /* @__PURE__ */ q(zi, {
2185
2185
  target: "_blank",
2186
2186
  to: "https://docs.usedatabrain.com/guides/onboarding-and-configuration/add-a-data-source",
2187
- children: /* @__PURE__ */ K(h, {
2187
+ children: /* @__PURE__ */ q(h, {
2188
2188
  variant: "popover",
2189
- leftIcon: /* @__PURE__ */ K(T, {
2189
+ leftIcon: /* @__PURE__ */ q(T, {
2190
2190
  name: "new-window",
2191
2191
  color: "cta"
2192
2192
  }),
@@ -2199,23 +2199,23 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2199
2199
  }, "datasource-setup")
2200
2200
  ]
2201
2201
  })] });
2202
- case "dataapp": return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ q("div", {
2202
+ case "dataapp": return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2203
2203
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2204
2204
  children: [
2205
- /* @__PURE__ */ K(x, {
2205
+ /* @__PURE__ */ q(x, {
2206
2206
  variant: "heading-2",
2207
2207
  color: "primary",
2208
2208
  children: "FAQs"
2209
2209
  }),
2210
- /* @__PURE__ */ K(De, {
2210
+ /* @__PURE__ */ q(De, {
2211
2211
  header: "What are Data Apps?",
2212
2212
  isOpen: N === "dataapp",
2213
2213
  setIsOpen: () => {
2214
2214
  P((e) => e === "dataapp" ? "" : "dataapp");
2215
2215
  },
2216
- content: /* @__PURE__ */ K("div", {
2216
+ content: /* @__PURE__ */ q("div", {
2217
2217
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2218
- children: /* @__PURE__ */ K(x, {
2218
+ children: /* @__PURE__ */ q(x, {
2219
2219
  variant: "faq-content",
2220
2220
  color: "light",
2221
2221
  children: "Tools for embedding dashboards and metrics on your site, enabling centralized monitoring."
@@ -2223,20 +2223,20 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2223
2223
  }),
2224
2224
  width: "100%"
2225
2225
  }, "dataapp"),
2226
- /* @__PURE__ */ K(De, {
2226
+ /* @__PURE__ */ q(De, {
2227
2227
  header: "How to set up a Data App?",
2228
2228
  isOpen: N === "dataapp-setup",
2229
2229
  setIsOpen: () => {
2230
2230
  P((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
2231
2231
  },
2232
- content: /* @__PURE__ */ q("div", {
2232
+ content: /* @__PURE__ */ J("div", {
2233
2233
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2234
- children: [/* @__PURE__ */ q(x, {
2234
+ children: [/* @__PURE__ */ J(x, {
2235
2235
  variant: "faq-content",
2236
2236
  color: "light",
2237
2237
  children: [
2238
2238
  "To connect your data follow these steps ",
2239
- /* @__PURE__ */ K("br", {}),
2239
+ /* @__PURE__ */ q("br", {}),
2240
2240
  "+ Data App",
2241
2241
  " ",
2242
2242
  ">",
@@ -2249,12 +2249,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2249
2249
  ">",
2250
2250
  " Save"
2251
2251
  ]
2252
- }), /* @__PURE__ */ K(zi, {
2252
+ }), /* @__PURE__ */ q(zi, {
2253
2253
  target: "_blank",
2254
2254
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-data-app",
2255
- children: /* @__PURE__ */ K(h, {
2255
+ children: /* @__PURE__ */ q(h, {
2256
2256
  variant: "popover",
2257
- leftIcon: /* @__PURE__ */ K(T, {
2257
+ leftIcon: /* @__PURE__ */ q(T, {
2258
2258
  name: "new-window",
2259
2259
  color: "cta"
2260
2260
  }),
@@ -2267,23 +2267,23 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2267
2267
  }, "dataapp-setup")
2268
2268
  ]
2269
2269
  })] });
2270
- case "datamart": return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ q("div", {
2270
+ case "datamart": return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2271
2271
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2272
2272
  children: [
2273
- /* @__PURE__ */ K(x, {
2273
+ /* @__PURE__ */ q(x, {
2274
2274
  variant: "heading-2",
2275
2275
  color: "primary",
2276
2276
  children: "FAQs"
2277
2277
  }),
2278
- /* @__PURE__ */ K(De, {
2278
+ /* @__PURE__ */ q(De, {
2279
2279
  header: "What is a Data Mart?",
2280
2280
  isOpen: N === "datamart",
2281
2281
  setIsOpen: () => {
2282
2282
  P((e) => e === "datamart" ? "" : "datamart");
2283
2283
  },
2284
- content: /* @__PURE__ */ K("div", {
2284
+ content: /* @__PURE__ */ q("div", {
2285
2285
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2286
- children: /* @__PURE__ */ K(x, {
2286
+ children: /* @__PURE__ */ q(x, {
2287
2287
  variant: "faq-content",
2288
2288
  color: "light",
2289
2289
  children: "A focused subset of data, optimized to speed up insights and streamline workflows."
@@ -2291,20 +2291,20 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2291
2291
  }),
2292
2292
  width: "100%"
2293
2293
  }, "datamart"),
2294
- /* @__PURE__ */ K(De, {
2294
+ /* @__PURE__ */ q(De, {
2295
2295
  header: "How to set up a Data Mart?",
2296
2296
  isOpen: N === "datamart-setup",
2297
2297
  setIsOpen: () => {
2298
2298
  P((e) => e === "datamart-setup" ? "" : "datamart-setup");
2299
2299
  },
2300
- content: /* @__PURE__ */ q("div", {
2300
+ content: /* @__PURE__ */ J("div", {
2301
2301
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2302
- children: [/* @__PURE__ */ q(x, {
2302
+ children: [/* @__PURE__ */ J(x, {
2303
2303
  variant: "faq-content",
2304
2304
  color: "light",
2305
2305
  children: [
2306
2306
  "To create your Data Mart follow these steps ",
2307
- /* @__PURE__ */ K("br", {}),
2307
+ /* @__PURE__ */ q("br", {}),
2308
2308
  "+ Data Mart ",
2309
2309
  ">",
2310
2310
  " Select your Datasource ",
@@ -2317,12 +2317,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2317
2317
  ">",
2318
2318
  " Save"
2319
2319
  ]
2320
- }), /* @__PURE__ */ K(zi, {
2320
+ }), /* @__PURE__ */ q(zi, {
2321
2321
  target: "_blank",
2322
2322
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-datamart",
2323
- children: /* @__PURE__ */ K(h, {
2323
+ children: /* @__PURE__ */ q(h, {
2324
2324
  variant: "popover",
2325
- leftIcon: /* @__PURE__ */ K(T, {
2325
+ leftIcon: /* @__PURE__ */ q(T, {
2326
2326
  name: "new-window",
2327
2327
  color: "cta"
2328
2328
  }),
@@ -2335,23 +2335,23 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2335
2335
  }, "datamart-setup")
2336
2336
  ]
2337
2337
  })] });
2338
- case "semantic": return /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ q("div", {
2338
+ case "semantic": return /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
2339
2339
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2340
2340
  children: [
2341
- /* @__PURE__ */ K(x, {
2341
+ /* @__PURE__ */ q(x, {
2342
2342
  variant: "heading-2",
2343
2343
  color: "primary",
2344
2344
  children: "FAQs"
2345
2345
  }),
2346
- /* @__PURE__ */ K(De, {
2346
+ /* @__PURE__ */ q(De, {
2347
2347
  header: "What is a Semantic Layer?",
2348
2348
  isOpen: N === "semantic",
2349
2349
  setIsOpen: () => {
2350
2350
  P((e) => e === "semantic" ? "" : "semantic");
2351
2351
  },
2352
- content: /* @__PURE__ */ K("div", {
2352
+ content: /* @__PURE__ */ q("div", {
2353
2353
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2354
- children: /* @__PURE__ */ K(x, {
2354
+ children: /* @__PURE__ */ q(x, {
2355
2355
  variant: "faq-content",
2356
2356
  color: "light",
2357
2357
  children: "An enhancement layer for Data Marts that adds context and relationships for accurate, natural language queries."
@@ -2359,20 +2359,20 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2359
2359
  }),
2360
2360
  width: "100%"
2361
2361
  }, "semantic"),
2362
- /* @__PURE__ */ K(De, {
2362
+ /* @__PURE__ */ q(De, {
2363
2363
  header: "How to set up a Semantic Layer?",
2364
2364
  isOpen: N === "semantic-setup",
2365
2365
  setIsOpen: () => {
2366
2366
  P((e) => e === "semantic-setup" ? "" : "semantic-setup");
2367
2367
  },
2368
- content: /* @__PURE__ */ q("div", {
2368
+ content: /* @__PURE__ */ J("div", {
2369
2369
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2370
- children: [/* @__PURE__ */ q(x, {
2370
+ children: [/* @__PURE__ */ J(x, {
2371
2371
  variant: "faq-content",
2372
2372
  color: "light",
2373
2373
  children: [
2374
2374
  "To set up your Semantic Layer follow these steps ",
2375
- /* @__PURE__ */ K("br", {}),
2375
+ /* @__PURE__ */ q("br", {}),
2376
2376
  "Select your Data Mart ",
2377
2377
  ">",
2378
2378
  " Enter Table and Column Info",
@@ -2385,12 +2385,12 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2385
2385
  ">",
2386
2386
  " Save"
2387
2387
  ]
2388
- }), /* @__PURE__ */ K(zi, {
2388
+ }), /* @__PURE__ */ q(zi, {
2389
2389
  target: "_blank",
2390
2390
  to: "https://docs.usedatabrain.com/guides/datasources/semantic-layer",
2391
- children: /* @__PURE__ */ K(h, {
2391
+ children: /* @__PURE__ */ q(h, {
2392
2392
  variant: "popover",
2393
- leftIcon: /* @__PURE__ */ K(T, {
2393
+ leftIcon: /* @__PURE__ */ q(T, {
2394
2394
  name: "new-window",
2395
2395
  color: "cta"
2396
2396
  }),
@@ -2406,63 +2406,63 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2406
2406
  default: return null;
2407
2407
  }
2408
2408
  return null;
2409
- }, me = U(null);
2410
- return V(() => {
2409
+ }, me = W(null);
2410
+ return H(() => {
2411
2411
  p && f && me.current && me.current.scrollTo({
2412
2412
  top: 0,
2413
2413
  behavior: "auto"
2414
2414
  });
2415
- }, [f]), /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ q("div", {
2415
+ }, [f]), /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ J("div", {
2416
2416
  ref: me,
2417
- className: `${z[`container-${n}`]} ${a}`,
2417
+ className: `${B[`container-${n}`]} ${a}`,
2418
2418
  children: [
2419
- s ? /* @__PURE__ */ K("div", {
2419
+ s ? /* @__PURE__ */ q("div", {
2420
2420
  className: "dbn:my-5 dbn:w-full dbn:flex dbn:items-center dbn:justify-end",
2421
- children: /* @__PURE__ */ K(m, {
2421
+ children: /* @__PURE__ */ q(m, {
2422
2422
  variant: "table",
2423
2423
  tableRows: 4
2424
2424
  })
2425
2425
  }) : null,
2426
- !s && t.length === 0 && !O ? /* @__PURE__ */ K("div", {
2427
- className: z.noData,
2428
- children: /* @__PURE__ */ K(I, {
2426
+ !s && t.length === 0 && !O ? /* @__PURE__ */ q("div", {
2427
+ className: B.noData,
2428
+ children: /* @__PURE__ */ q(I, {
2429
2429
  message: r,
2430
2430
  subText: D,
2431
2431
  children: ae,
2432
2432
  ...M
2433
2433
  })
2434
2434
  }) : null,
2435
- !s && (t.length || O) ? /* @__PURE__ */ q("table", {
2436
- className: `${z.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2437
- children: [/* @__PURE__ */ K("thead", {
2438
- className: `${z[`headers-${n}`]} ${t.length === 0 ? z[`headers-${n}-nodata`] : ""} dbn:z-50`,
2439
- children: /* @__PURE__ */ K("tr", { children: e?.map((t, n) => /* @__PURE__ */ q("th", {
2435
+ !s && (t.length || O) ? /* @__PURE__ */ J("table", {
2436
+ className: `${B.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2437
+ children: [/* @__PURE__ */ q("thead", {
2438
+ className: `${B[`headers-${n}`]} ${t.length === 0 ? B[`headers-${n}-nodata`] : ""} dbn:z-50`,
2439
+ children: /* @__PURE__ */ q("tr", { children: e?.map((t, n) => /* @__PURE__ */ J("th", {
2440
2440
  colSpan: t.colSpan,
2441
- className: `${te ? z.headerCol2 : z.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2442
- children: [/* @__PURE__ */ q("span", {
2441
+ className: `${te ? B.headerCol2 : B.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2442
+ children: [/* @__PURE__ */ J("span", {
2443
2443
  className: `${v && n === 0 ? "dbn:flex dbn:gap-2" : ""}`,
2444
- children: [n === 0 && v ? /* @__PURE__ */ K(g, {
2444
+ children: [n === 0 && v ? /* @__PURE__ */ q(g, {
2445
2445
  id: `${t?.name?.replaceAll(" ", "-")?.toLowerCase()}-header-checkbox`,
2446
2446
  onChange: (e) => {
2447
2447
  e.target.checked ? ee?.() : b?.();
2448
2448
  },
2449
2449
  checked: S
2450
- }) : null, /* @__PURE__ */ K(x, {
2450
+ }) : null, /* @__PURE__ */ q(x, {
2451
2451
  variant: "sec-heading-6",
2452
2452
  color: "gray",
2453
2453
  children: t.headerCell || t.name
2454
2454
  })]
2455
- }), n === e.length - 1 && te ? /* @__PURE__ */ K(x, {
2455
+ }), n === e.length - 1 && te ? /* @__PURE__ */ q(x, {
2456
2456
  variant: "body-text-3",
2457
2457
  color: "cta",
2458
2458
  children: te
2459
2459
  }) : null]
2460
2460
  }, t.name)) })
2461
- }), /* @__PURE__ */ K("tbody", {
2462
- className: z.body,
2463
- children: (_ ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ K("tr", {
2461
+ }), /* @__PURE__ */ q("tbody", {
2462
+ className: B.body,
2463
+ children: (_ ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ q("tr", {
2464
2464
  "data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
2465
- className: `${z[`row-${n}`]} ${C || ne || E || re ? "dbn:cursor-pointer" : ""}`,
2465
+ className: `${B[`row-${n}`]} ${C || ne || E || re ? "dbn:cursor-pointer" : ""}`,
2466
2466
  onClick: (e) => {
2467
2467
  ne && ne(t), re && re(t);
2468
2468
  let n = F(t);
@@ -2477,60 +2477,60 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2477
2477
  onMouseOut: () => ie?.(),
2478
2478
  children: e?.map((r, i) => {
2479
2479
  let a = r.columnKey === "invitationToken" && !!t[r.columnKey];
2480
- return /* @__PURE__ */ K("td", {
2480
+ return /* @__PURE__ */ q("td", {
2481
2481
  colSpan: r.colSpan,
2482
- className: `${z.col} ${z[`col-${n}`]}`,
2483
- children: /* @__PURE__ */ K("div", {
2484
- className: z[`col-${n}-cell`],
2485
- children: i === 0 && c || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ q("div", {
2482
+ className: `${B.col} ${B[`col-${n}`]}`,
2483
+ children: /* @__PURE__ */ q("div", {
2484
+ className: B[`col-${n}-cell`],
2485
+ children: i === 0 && c || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ J("div", {
2486
2486
  className: "dbn:flex dbn:gap-2",
2487
- children: [(t?.type || t?.dbName) && /* @__PURE__ */ K(d, {
2487
+ children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(d, {
2488
2488
  name: r.columnKey?.toLowerCase() === "type" ? t.type?.toString() : t.dbName?.toString()?.toLowerCase(),
2489
2489
  width: 20
2490
2490
  }), r.columnKey?.toLowerCase() === "name" && (t.name === null || t.name === void 0) && t.dbName?.toString()?.toLowerCase() === "awss3" ? "Demo Datasource" : (r.columnCell ? r.columnCell(t) : t[r.columnKey]) || "-"]
2491
- }) : /* @__PURE__ */ q("div", {
2491
+ }) : /* @__PURE__ */ J("div", {
2492
2492
  className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
2493
- children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ q(G, { children: [/* @__PURE__ */ K(x, {
2493
+ children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ J(K, { children: [/* @__PURE__ */ q(x, {
2494
2494
  variant: "body-text-2",
2495
2495
  className: "dbn:text-xs",
2496
2496
  children: "XXXX"
2497
- }), /* @__PURE__ */ K(h, {
2497
+ }), /* @__PURE__ */ q(h, {
2498
2498
  "data-testid": "invitation-copy",
2499
2499
  variant: "tertiary",
2500
2500
  type: "button",
2501
2501
  onClick: () => {
2502
2502
  navigator.clipboard.writeText(t[r.columnKey]), de(t[r.columnKey]), setTimeout(() => de(""), 1700);
2503
2503
  },
2504
- leftIcon: /* @__PURE__ */ K(T, {
2504
+ leftIcon: /* @__PURE__ */ q(T, {
2505
2505
  name: "copy",
2506
2506
  size: "xs"
2507
2507
  }),
2508
2508
  className: "dbn:p-0 dbn:pl-1 dbn:text-xs dbn:gap-1",
2509
2509
  children: ue === t[r.columnKey] ? "Copied" : "Copy"
2510
- })] }) : t[r.columnKey]) || "-", i === e.length - 1 && l ? /* @__PURE__ */ q(y, {
2511
- buttonContent: /* @__PURE__ */ K(h, {
2510
+ })] }) : t[r.columnKey]) || "-", i === e.length - 1 && l ? /* @__PURE__ */ J(y, {
2511
+ buttonContent: /* @__PURE__ */ q(h, {
2512
2512
  variant: "popover",
2513
- leftIcon: /* @__PURE__ */ K(T, { name: "kebab-menu-vertical" })
2513
+ leftIcon: /* @__PURE__ */ q(T, { name: "kebab-menu-vertical" })
2514
2514
  }),
2515
2515
  menuWidth: "120px",
2516
2516
  position: "bottom",
2517
- children: [/* @__PURE__ */ K(h, {
2517
+ children: [/* @__PURE__ */ q(h, {
2518
2518
  variant: "popover",
2519
2519
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2520
2520
  onClick: () => u?.({
2521
2521
  action: "edit",
2522
2522
  id: t.id
2523
2523
  }),
2524
- leftIcon: /* @__PURE__ */ K(T, { name: "pencil-simple" }),
2524
+ leftIcon: /* @__PURE__ */ q(T, { name: "pencil-simple" }),
2525
2525
  children: "Edit"
2526
- }), /* @__PURE__ */ K(h, {
2526
+ }), /* @__PURE__ */ q(h, {
2527
2527
  variant: "popover",
2528
2528
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2529
2529
  onClick: () => u?.({
2530
2530
  action: "delete",
2531
2531
  id: t.id
2532
2532
  }),
2533
- leftIcon: /* @__PURE__ */ K(T, { name: "delete" }),
2533
+ leftIcon: /* @__PURE__ */ q(T, { name: "delete" }),
2534
2534
  children: "Delete"
2535
2535
  })]
2536
2536
  }) : null]
@@ -2541,18 +2541,18 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2541
2541
  }, `row-${r}`))
2542
2542
  })]
2543
2543
  }) : null,
2544
- !s && t.length === 0 && O ? /* @__PURE__ */ K(G, { children: fe() }) : null,
2545
- t.length > ce && !_ ? /* @__PURE__ */ K("div", {
2546
- className: z.loadMore,
2547
- children: /* @__PURE__ */ q(h, {
2544
+ !s && t.length === 0 && O ? /* @__PURE__ */ q(K, { children: fe() }) : null,
2545
+ t.length > ce && !_ ? /* @__PURE__ */ q("div", {
2546
+ className: B.loadMore,
2547
+ children: /* @__PURE__ */ J(h, {
2548
2548
  type: "button",
2549
2549
  variant: "tertiary",
2550
2550
  onClick: () => le((e) => e + o),
2551
- children: [/* @__PURE__ */ K(T, { name: "arrow-down" }), /* @__PURE__ */ K("span", { children: i })]
2551
+ children: [/* @__PURE__ */ q(T, { name: "arrow-down" }), /* @__PURE__ */ q("span", { children: i })]
2552
2552
  })
2553
2553
  }) : null
2554
2554
  ]
2555
- }), t.length === 0 && O && /* @__PURE__ */ K(G, { children: pe() })] });
2555
+ }), t.length === 0 && O && /* @__PURE__ */ q(K, { children: pe() })] });
2556
2556
  }, Q = {
2557
2557
  "table-loader-container": "_table-loader-container_o1h6j_8",
2558
2558
  tableData: "_tableData_o1h6j_21",
@@ -2625,8 +2625,8 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2625
2625
  "col-view-primary-cell": "_col-view-primary-cell_o1h6j_269",
2626
2626
  link: "_link_o1h6j_273",
2627
2627
  textLineBreak: "_textLineBreak_o1h6j_277"
2628
- }, Xi = Ne(), Zi = (e, t, n, r) => {
2629
- let i = Ae(e.getValue(t), n);
2628
+ }, Xi = Me(), Zi = (e, t, n, r) => {
2629
+ let i = R(e.getValue(t), n);
2630
2630
  return r({ itemRank: i }), i.passed;
2631
2631
  }, Qi = (e, t, n) => {
2632
2632
  let r = e.getValue(t);
@@ -2636,16 +2636,16 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2636
2636
  offset: 0,
2637
2637
  totalRecords: 10
2638
2638
  }, externalGlobalFilter: u, setExternalGlobalFilter: d, headerAlignment: f = "center", events: p, language: h, translationDictionary: g, isMetricCard: _, isDisableChartActions: v }) => {
2639
- let [y, ee] = W([]), [b, C] = W(","), w = (e) => {
2639
+ let [y, ee] = G([]), [b, C] = G(","), w = (e) => {
2640
2640
  let t = {};
2641
2641
  return Object.keys(e).sort().forEach((n) => {
2642
2642
  t[n] = e[n];
2643
2643
  }), t;
2644
- }, T = H(() => r?.isSortAlphabetically ? e?.map((e) => w(e)) : e, [e, r?.isSortAlphabetically]);
2645
- V(() => {
2644
+ }, T = U(() => r?.isSortAlphabetically ? e?.map((e) => w(e)) : e, [e, r?.isSortAlphabetically]);
2645
+ H(() => {
2646
2646
  r?.badgeSeparator ? C(r.badgeSeparator) : C(",");
2647
2647
  }, [r?.badgeSeparator]);
2648
- let te = H(() => {
2648
+ let te = U(() => {
2649
2649
  let e = "2.5rem";
2650
2650
  return r?.textWrap?.isEnable ? e = "auto" : r?.lineGap === "small" ? e = "36px" : r?.lineGap === "medium" ? e = "40px" : r?.lineGap === "large" && (e = "44px"), {
2651
2651
  width: "100%",
@@ -2669,11 +2669,11 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2669
2669
  };
2670
2670
  if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
2671
2671
  if (n && Object.keys(n).includes(e)) return { color: n[e] };
2672
- }, [re, E] = W(r?.columnSizing), ie = U(null), ae = H(() => !e || !T || !Array.isArray(e) || !Array.isArray(T) ? [] : r?.isEnableTranspose ? o(T, r?.isEnableTranspose) : T, [
2672
+ }, [re, E] = G(r?.columnSizing), ie = W(null), ae = U(() => !e || !T || !Array.isArray(e) || !Array.isArray(T) ? [] : r?.isEnableTranspose ? o(T, r?.isEnableTranspose) : T, [
2673
2673
  e,
2674
2674
  T,
2675
2675
  r?.isEnableTranspose
2676
- ]), D = H(() => !h || !g ? ae : ae?.map((e) => {
2676
+ ]), D = U(() => !h || !g ? ae : ae?.map((e) => {
2677
2677
  let t = {};
2678
2678
  for (let n in e) {
2679
2679
  let r = S({
@@ -2692,7 +2692,7 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2692
2692
  ae,
2693
2693
  h,
2694
2694
  g
2695
- ]), oe = H(() => D, [D]), O = H(() => {
2695
+ ]), oe = U(() => D, [D]), O = U(() => {
2696
2696
  let e = Object.keys(D[0] || {});
2697
2697
  return r?.showColumnFilter && (e = y), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => Xi.accessor(e, {
2698
2698
  header: () => e,
@@ -2702,14 +2702,14 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2702
2702
  },
2703
2703
  enableResizing: !0
2704
2704
  }));
2705
- }, [D[0], y]), k = Ie({
2705
+ }, [D[0], y]), k = Fe({
2706
2706
  data: oe,
2707
2707
  columns: O,
2708
2708
  state: { ...re ? { columnSizing: re } : {} },
2709
2709
  filterFns: { fuzzy: Zi },
2710
2710
  globalFilterFn: Qi,
2711
- getCoreRowModel: Me(),
2712
- getFilteredRowModel: Fe(),
2711
+ getCoreRowModel: je(),
2712
+ getFilteredRowModel: Pe(),
2713
2713
  debugTable: !1,
2714
2714
  enableColumnResizing: !0,
2715
2715
  columnResizeMode: "onChange",
@@ -2720,31 +2720,31 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2720
2720
  estimateSize: () => $i(r),
2721
2721
  overscan: 12
2722
2722
  });
2723
- j.shouldAdjustScrollPositionOnItemSizeChange = je;
2723
+ j.shouldAdjustScrollPositionOnItemSizeChange = Ae;
2724
2724
  let M = j.getVirtualItems(), se = M.length ? M[0].start : 0, ce = M.length ? j.getTotalSize() - M[M.length - 1].end : 0, le = k.getVisibleLeafColumns().length || 1;
2725
- V(() => {
2725
+ H(() => {
2726
2726
  k.getIsSomeColumnsVisible() && s?.();
2727
2727
  }, [k.getIsSomeColumnsVisible()]);
2728
2728
  let ue = (e, t) => t?.includes(e) ? Q.badge : "";
2729
- return V(() => {
2729
+ return H(() => {
2730
2730
  r?.isEnableColumnFilter || k.resetColumnFilters();
2731
- }, [k, r?.isEnableColumnFilter]), V(() => {
2731
+ }, [k, r?.isEnableColumnFilter]), H(() => {
2732
2732
  ee(Object.keys(D[0] || {}));
2733
- }, [D[0]]), /* @__PURE__ */ K("div", {
2733
+ }, [D[0]]), /* @__PURE__ */ q("div", {
2734
2734
  className: `${Q.container} ${i}`,
2735
- children: /* @__PURE__ */ K("div", {
2735
+ children: /* @__PURE__ */ q("div", {
2736
2736
  className: Q.previewTable,
2737
- children: /* @__PURE__ */ q("div", {
2737
+ children: /* @__PURE__ */ J("div", {
2738
2738
  className: `${Q.tableData} ${Q.noBorder}`,
2739
2739
  children: [
2740
- t && !e?.length ? /* @__PURE__ */ K(m, { variant: "table" }) : null,
2741
- !!T?.length && /* @__PURE__ */ K(Le, {
2740
+ t && !e?.length ? /* @__PURE__ */ q(m, { variant: "table" }) : null,
2741
+ !!T?.length && /* @__PURE__ */ q(Ie, {
2742
2742
  style: { height: "100%" },
2743
2743
  scrollableNodeProps: { ref: ie },
2744
- children: /* @__PURE__ */ K("table", {
2744
+ children: /* @__PURE__ */ q("table", {
2745
2745
  className: Q.table,
2746
- children: /* @__PURE__ */ q("tbody", { children: [
2747
- se > 0 ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
2746
+ children: /* @__PURE__ */ J("tbody", { children: [
2747
+ se > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2748
2748
  colSpan: le,
2749
2749
  style: {
2750
2750
  height: `${se}px`,
@@ -2754,7 +2754,7 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2754
2754
  }) }) : null,
2755
2755
  M?.map((e) => {
2756
2756
  let t = A[e.index];
2757
- return t ? /* @__PURE__ */ K("tr", {
2757
+ return t ? /* @__PURE__ */ q("tr", {
2758
2758
  ref: j.measureElement,
2759
2759
  "data-index": e.index,
2760
2760
  "data-testid": `table-row-${t.id}`,
@@ -2768,7 +2768,7 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2768
2768
  children: t.getVisibleCells()?.map((e, t) => {
2769
2769
  let n = "";
2770
2770
  ue(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(b) && n?.toString()?.split(b));
2771
- let i = r?.textWrap?.isEnable && r?.textWrap?.columns?.includes(e.column.id), a = () => r?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null) ? "" : r?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null) ? "-" : Pe(e.column.columnDef.cell, e.getContext()), o = _ && !v && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = ze({
2771
+ let i = r?.textWrap?.isEnable && r?.textWrap?.columns?.includes(e.column.id), a = () => r?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null) ? "" : r?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null) ? "-" : Ne(e.column.columnDef.cell, e.getContext()), o = _ && !v && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = Re({
2772
2772
  rules: r?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
2773
2773
  value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue()
2774
2774
  }), u = l?.prefix || "", d = l?.suffix || "", f = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? ne(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, m = "", h = (f?.isApplyBadgeColor || !(f?.isApplyBgColor || !f?.badgeColor)) && !!Object.keys(l)?.length;
@@ -2778,27 +2778,27 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2778
2778
  let { backgroundColor: e, ...t } = l;
2779
2779
  g = t;
2780
2780
  }
2781
- return /* @__PURE__ */ q("td", {
2781
+ return /* @__PURE__ */ J("td", {
2782
2782
  "data-testid": e.id,
2783
2783
  className: `${Q.tableRowCol}`,
2784
2784
  title: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : `${e.getValue()}`,
2785
2785
  onClick: (e) => {
2786
- p?.click && o && (e.preventDefault(), Re(s, c));
2786
+ p?.click && o && (e.preventDefault(), Le(s, c));
2787
2787
  },
2788
2788
  onContextMenu: (t) => {
2789
- p?.contextmenu && o ? (t.preventDefault(), Re(s, c)) : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2789
+ p?.contextmenu && o ? (t.preventDefault(), Le(s, c)) : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2790
2790
  },
2791
2791
  style: {
2792
2792
  position: "relative",
2793
2793
  width: `${e.column.getSize() / k.getTotalSize() * 100}%`
2794
2794
  },
2795
2795
  children: [
2796
- !!r && /* @__PURE__ */ K("div", {
2796
+ !!r && /* @__PURE__ */ q("div", {
2797
2797
  style: {
2798
2798
  ...te,
2799
2799
  ...g
2800
2800
  },
2801
- children: a() === "" ? /* @__PURE__ */ K(G, {}) : /* @__PURE__ */ q("span", {
2801
+ children: a() === "" ? /* @__PURE__ */ q(K, {}) : /* @__PURE__ */ J("span", {
2802
2802
  "data-testid": "cell-content",
2803
2803
  className: `${i ? Q.wrapText : Q.truncateText} ${ue(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2804
2804
  style: {
@@ -2815,15 +2815,15 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2815
2815
  ]
2816
2816
  })
2817
2817
  }),
2818
- !r && /* @__PURE__ */ K("div", {
2818
+ !r && /* @__PURE__ */ q("div", {
2819
2819
  style: {
2820
2820
  textAlign: "center",
2821
2821
  width: "100%"
2822
2822
  },
2823
2823
  className: Q.truncateText,
2824
- children: Pe(e.column.columnDef.cell, e.getContext())
2824
+ children: Ne(e.column.columnDef.cell, e.getContext())
2825
2825
  }),
2826
- e.column.getCanResize() ? /* @__PURE__ */ K("div", {
2826
+ e.column.getCanResize() ? /* @__PURE__ */ q("div", {
2827
2827
  className: "resizer",
2828
2828
  style: {
2829
2829
  position: "absolute",
@@ -2856,7 +2856,7 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2856
2856
  })
2857
2857
  }, t.id) : null;
2858
2858
  }),
2859
- ce > 0 ? /* @__PURE__ */ K("tr", { children: /* @__PURE__ */ K("td", {
2859
+ ce > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2860
2860
  colSpan: le,
2861
2861
  style: {
2862
2862
  height: `${ce}px`,
@@ -2867,28 +2867,28 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2867
2867
  ] })
2868
2868
  })
2869
2869
  }),
2870
- !e?.length && !t && !n.length && /* @__PURE__ */ q("div", {
2870
+ !e?.length && !t && !n.length && /* @__PURE__ */ J("div", {
2871
2871
  className: Q.noData,
2872
2872
  children: [
2873
- /* @__PURE__ */ K("img", {
2873
+ /* @__PURE__ */ q("img", {
2874
2874
  src: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20500'%3e%3cdefs%3e%3cstyle%3e.cls-1{stroke:%23182c60;}.cls-1,.cls-2{fill:none;strokeLinecap:round;strokeLinejoin:round;}.cls-3{fill:%235865f6;opacity:.1;}.cls-4{fill:%23f2f3f4;}.cls-5{fill:%23c1c7c9;}.cls-6{fill:%23182c60;}.cls-2{stroke:%235865f6;strokeWidth:4px;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-3'%20d='m271.11%20179.72-.09%2020.33s.19%204.05.38%204.52.75%201.88%201.41%202.35%201.27.99%202.21%201.32%201.18.61%202.64.61%2022.68.05%2022.68.05z'/%3e%3cline%20class='cls-1'%20x1='203.71'%20y1='208.01'%20x2='234.92'%20y2='208.01'/%3e%3cline%20class='cls-2'%20x1='203.71'%20y1='197.34'%20x2='248.04'%20y2='197.34'/%3e%3crect%20class='cls-1'%20x='202.3'%20y='230.36'%20width='89.95'%20height='62.67'%20rx='3.21'%20ry='3.21'/%3e%3cg%3e%3cpath%20class='cls-1'%20d='M300.49%20208.99v99.99c0%203.55-2.88%206.43-6.43%206.43h-93.23c-3.55%200-6.43-2.88-6.43-6.43V185.91c0-3.55%202.88-6.43%206.43-6.43h70.29'/%3e%3cpath%20class='cls-1'%20d='M271.15%20179.48v22.91c0%203.55%202.88%206.43%206.43%206.43h22.91s-29.34-29.48-29.34-29.34Z'/%3e%3c/g%3e%3cpath%20class='cls-1'%20d='M305.49%20213.99v99.99c0%203.55-2.88%206.43-6.43%206.43h-93.23c-2.95%200-5.43-1.98-6.19-4.69'/%3e%3cpath%20class='cls-1'%20d='M305.49%20213.82s-2.13-2.14-5.24-5.26'/%3e%3cpath%20class='cls-6'%20d='M199.54%20315.53s.28%201.04.66%201.6.56%201.08%201.32%201.69%202.12%201.46%202.4%201.51%202.73.24%203.86.19%2020.38-.09%2020.38-.09h23.67s17.04-.05%2017.04-.05l17.69.14%2012.75-.14s1.98-.19%202.78-.71%201.65-1.04%202.12-1.84%201.22-1.84%201.27-2.35.14-14.4.14-14.4l-.19-11.62.09-11.95v-22.12s-.05-18.12-.05-18.12v-23.34s-5.04-5.22-5.04-5.22l.05%2025.6.14%2028.99-.05%2013.84-.05%209.74v10.4s0%209.79%200%209.79c0%200%20.19%203.06-.47%204.09s-1.36%202.35-2.21%202.96-2.07%201.18-4.71%201.22-14.87.05-14.87.05l-21.79-.05h-16.05l-25.88.05-15.01.14Z'/%3e%3cline%20class='cls-1'%20x1='202.63'%20y1='239.03'%20x2='292.01'%20y2='239.03'/%3e%3cline%20class='cls-1'%20x1='219.5'%20y1='230.61'%20x2='219.79'%20y2='293.09'/%3e%3cline%20class='cls-1'%20x1='237.76'%20y1='230.53'%20x2='238.05'%20y2='293'/%3e%3cline%20class='cls-1'%20x1='256.02'%20y1='230.45'%20x2='256.31'%20y2='292.92'/%3e%3cline%20class='cls-1'%20x1='274.28'%20y1='230.36'%20x2='274.57'%20y2='292.84'/%3e%3cg%3e%3crect%20class='cls-5'%20x='206.17'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='224.23'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='242.69'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='260.62'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='278.83'%20y='232.79'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='244.08'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='252.55'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='261.02'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='269.49'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='277.96'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='286.43'%20width='8.47'%20height='4'/%3e%3c/g%3e%3c/svg%3e",
2875
2875
  alt: "no-data",
2876
2876
  width: "400px",
2877
2877
  height: "400px"
2878
2878
  }),
2879
- /* @__PURE__ */ K(x, {
2879
+ /* @__PURE__ */ q(x, {
2880
2880
  variant: "heading-3",
2881
2881
  children: "No data tables queried"
2882
2882
  }),
2883
- /* @__PURE__ */ K(x, {
2883
+ /* @__PURE__ */ q(x, {
2884
2884
  variant: "body-text-2",
2885
2885
  children: "Type your query and input fields beside to generate results and explore data"
2886
2886
  })
2887
2887
  ]
2888
2888
  }),
2889
- n && /* @__PURE__ */ K("div", {
2889
+ n && /* @__PURE__ */ q("div", {
2890
2890
  className: Q.error,
2891
- children: /* @__PURE__ */ K(x, { children: n })
2891
+ children: /* @__PURE__ */ q(x, { children: n })
2892
2892
  })
2893
2893
  ]
2894
2894
  })
@@ -3272,10 +3272,10 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3272
3272
  Te(e);
3273
3273
  }
3274
3274
  }
3275
- }, Ca = B(async () => (await import("./echarts-C667f0qR.mjs"), { default: Sa })), wa = Ue((e, t) => /* @__PURE__ */ K(C, {
3275
+ }, Ca = V(async () => (await import("./echarts-C667f0qR.mjs"), { default: Sa })), wa = He((e, t) => /* @__PURE__ */ q(C, {
3276
3276
  surface: "chart",
3277
- fallback: /* @__PURE__ */ K(Be, {}),
3278
- children: /* @__PURE__ */ K(Ca, {
3277
+ fallback: /* @__PURE__ */ q(ze, {}),
3278
+ children: /* @__PURE__ */ q(Ca, {
3279
3279
  ...e,
3280
3280
  ref: t
3281
3281
  })
@@ -3304,28 +3304,28 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3304
3304
  noChart: "_noChart_vqajm_86"
3305
3305
  }, Ta = ({ chartType: e, text: t = "This chart is no longer available.", subText: n }) => {
3306
3306
  let r = _.flatMap((e) => e.value)?.find((t) => t.name?.toLowerCase() === e)?.disabledIcon;
3307
- return /* @__PURE__ */ q("div", {
3307
+ return /* @__PURE__ */ J("div", {
3308
3308
  className: $.chartUnavailable,
3309
- children: [/* @__PURE__ */ K("img", {
3309
+ children: [/* @__PURE__ */ q("img", {
3310
3310
  src: r,
3311
3311
  alt: "chart-not-available",
3312
3312
  className: $.noChart
3313
- }), /* @__PURE__ */ q("div", {
3313
+ }), /* @__PURE__ */ J("div", {
3314
3314
  className: "dbn:flex dbn:flex-col dbn:gap-1 dbn:items-center",
3315
- children: [/* @__PURE__ */ K(x, {
3315
+ children: [/* @__PURE__ */ q(x, {
3316
3316
  variant: "sec-heading-4",
3317
3317
  color: "primary",
3318
3318
  children: t
3319
- }), /* @__PURE__ */ K(x, {
3319
+ }), /* @__PURE__ */ q(x, {
3320
3320
  variant: "body-text-3",
3321
3321
  color: "gray",
3322
3322
  children: n
3323
3323
  })]
3324
3324
  })]
3325
3325
  });
3326
- }, Ea = B(async () => ({ default: (await import("./Table-DUTrrpk1.mjs").then((e) => e.n)).Table })), Da = B(async () => ({ default: (await import("./HorizontalStackTable-QcgFX57L.mjs")).HorizontalStackTable })), Oa = B(async () => ({ default: (await import("./PivotTable-HL2JMR1s.mjs")).default })), ka = B(async () => ({ default: (await import("./PivotTableV2-DF5EZOsw.mjs")).PivotTableV2 })), Aa = B(() => import("./PivotTableV3-CADTUHEp.mjs")), ja = ({ children: e, surface: t }) => /* @__PURE__ */ K(C, {
3326
+ }, Ea = V(async () => ({ default: (await import("./Table-DmjBmf06.mjs").then((e) => e.n)).Table })), Da = V(async () => ({ default: (await import("./HorizontalStackTable-DAY1syOG.mjs")).HorizontalStackTable })), Oa = V(async () => ({ default: (await import("./PivotTable-HL2JMR1s.mjs")).default })), ka = V(async () => ({ default: (await import("./PivotTableV2-dzOJ2Ssd.mjs")).PivotTableV2 })), Aa = V(() => import("./PivotTableV3-Bzk_wSPn.mjs")), ja = ({ children: e, surface: t }) => /* @__PURE__ */ q(C, {
3327
3327
  surface: t,
3328
- fallback: /* @__PURE__ */ q("div", {
3328
+ fallback: /* @__PURE__ */ J("div", {
3329
3329
  className: "dbn:flex dbn:h-full dbn:min-h-32 dbn:items-center dbn:justify-center",
3330
3330
  "aria-label": `Loading ${t}`,
3331
3331
  role: "status",
@@ -3336,21 +3336,21 @@ var Yi = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3336
3336
  ]
3337
3337
  }),
3338
3338
  children: e
3339
- }), Ma = (e) => /* @__PURE__ */ K(ja, {
3339
+ }), Ma = (e) => /* @__PURE__ */ q(ja, {
3340
3340
  surface: "table",
3341
- children: /* @__PURE__ */ K(Ea, { ...e })
3342
- }), Na = (e) => /* @__PURE__ */ K(ja, {
3341
+ children: /* @__PURE__ */ q(Ea, { ...e })
3342
+ }), Na = (e) => /* @__PURE__ */ q(ja, {
3343
3343
  surface: "stack table",
3344
- children: /* @__PURE__ */ K(Da, { ...e })
3345
- }), Pa = (e) => /* @__PURE__ */ K(ja, {
3344
+ children: /* @__PURE__ */ q(Da, { ...e })
3345
+ }), Pa = (e) => /* @__PURE__ */ q(ja, {
3346
3346
  surface: "pivot table",
3347
- children: /* @__PURE__ */ K(Oa, { ...e })
3348
- }), Fa = (e) => /* @__PURE__ */ K(ja, {
3347
+ children: /* @__PURE__ */ q(Oa, { ...e })
3348
+ }), Fa = (e) => /* @__PURE__ */ q(ja, {
3349
3349
  surface: "pivot table",
3350
- children: /* @__PURE__ */ K(ka, { ...e })
3351
- }), Ia = (e) => /* @__PURE__ */ K(ja, {
3350
+ children: /* @__PURE__ */ q(ka, { ...e })
3351
+ }), Ia = (e) => /* @__PURE__ */ q(ja, {
3352
3352
  surface: "pivot table",
3353
- children: /* @__PURE__ */ K(Aa, { ...e })
3353
+ children: /* @__PURE__ */ q(Aa, { ...e })
3354
3354
  });
3355
3355
  // src/components/Chart/singleValueDelta.ts
3356
3356
  function La(e) {
@@ -3395,12 +3395,12 @@ var Ra = (e, t, n, r, i) => {
3395
3395
  },
3396
3396
  wrote: !0
3397
3397
  };
3398
- }, za = Ve.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: c, events: l, originalValue: u, variables: d, language: m, translationDictionary: h, setHoverSubHeader: g, onChartClickWithMetric: _, isChartActionEnabled: v, renderOpts: y }) => {
3399
- let [ee, b] = W(""), x = U(null), [C, w] = W({
3398
+ }, za = Be.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: c, events: l, originalValue: u, variables: d, language: m, translationDictionary: h, setHoverSubHeader: g, onChartClickWithMetric: _, isChartActionEnabled: v, renderOpts: y }) => {
3399
+ let [ee, b] = G(""), x = W(null), [C, w] = G({
3400
3400
  background: "",
3401
3401
  isOptedOut: !1
3402
- }), { anchorRef: te, colorScheme: ne } = Lt();
3403
- Ge(() => {
3402
+ }), { anchorRef: te, colorScheme: ne } = It();
3403
+ We(() => {
3404
3404
  let e = () => {
3405
3405
  let e = E(x.current);
3406
3406
  w((t) => t.background === e.background && t.isOptedOut === e.isOptedOut ? t : e);
@@ -3416,7 +3416,7 @@ var Ra = (e, t, n, r, i) => {
3416
3416
  ]
3417
3417
  }), () => t.disconnect();
3418
3418
  }, [t?.metricCardColor, ne]);
3419
- let re = U(null), ae = U(null), oe = U(null), { valueFont: O, subHeaderFont: k, changeVariableFont: A, changeIconSize: j } = H(() => {
3419
+ let re = W(null), ae = W(null), oe = W(null), { valueFont: O, subHeaderFont: k, changeVariableFont: A, changeIconSize: j } = U(() => {
3420
3420
  let e = {
3421
3421
  fontSize: `${t?.subHeaderFontSize || 14}px`,
3422
3422
  fontWeight: t?.subHeaderFontWeight || "400",
@@ -3442,26 +3442,26 @@ var Ra = (e, t, n, r, i) => {
3442
3442
  t?.fontSize,
3443
3443
  C,
3444
3444
  ee
3445
- ]), M = H(() => {
3445
+ ]), M = U(() => {
3446
3446
  if (!e) return "empty";
3447
3447
  let t = Se(e.toString());
3448
3448
  return t.length === 0 ? "empty-empty" : `${`${t.slice(0, 4)}-${t.slice(-4)}`.toLowerCase()}-${p(6)}`;
3449
3449
  }, [e]);
3450
- V(() => {
3450
+ H(() => {
3451
3451
  let e = new ResizeObserver(() => {
3452
3452
  oe?.current?.getEchartsInstance()?.resize();
3453
3453
  });
3454
3454
  return ae?.current && e?.observe(ae?.current), () => e?.disconnect();
3455
- }, []), V(() => {
3455
+ }, []), H(() => {
3456
3456
  (e || t) && a?.();
3457
- }, [e, t]), V(() => {
3457
+ }, [e, t]), H(() => {
3458
3458
  let e = !1;
3459
3459
  if (t?.conditionalFormatter?.length && u) {
3460
3460
  let n = t?.conditionalFormatter?.filter((e) => !e?.type || e?.type === "range"), r = t?.conditionalFormatter?.filter((e) => e?.type === "string");
3461
3461
  if (typeof u == "number" && n?.length && n?.forEach((n) => {
3462
3462
  (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(u) && n?.max >= Number(u) && (b(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3463
3463
  }), typeof u == "string" && r?.length) {
3464
- let n = ze({
3464
+ let n = Re({
3465
3465
  rules: r?.map((e) => ({
3466
3466
  operator: e?.operator || "isEqualTo",
3467
3467
  styles: e?.color,
@@ -3478,11 +3478,11 @@ var Ra = (e, t, n, r, i) => {
3478
3478
  t?.fontColor,
3479
3479
  u
3480
3480
  ]);
3481
- let se = H(() => t?.isEnableTruncate ? ie(e.toString(), t?.truncateValue || 0) : e, [
3481
+ let se = U(() => t?.isEnableTruncate ? ie(e.toString(), t?.truncateValue || 0) : e, [
3482
3482
  e,
3483
3483
  t?.isEnableTruncate,
3484
3484
  t?.truncateValue
3485
- ]), ce = H(() => t?.prefix ? S({
3485
+ ]), ce = U(() => t?.prefix ? S({
3486
3486
  text: s(t?.prefix || "^^^^^", d),
3487
3487
  selectedLanguage: m,
3488
3488
  translationDictionary: h
@@ -3491,7 +3491,7 @@ var Ra = (e, t, n, r, i) => {
3491
3491
  t?.prefix,
3492
3492
  m,
3493
3493
  h
3494
- ]), le = H(() => t?.suffix ? S({
3494
+ ]), le = U(() => t?.suffix ? S({
3495
3495
  text: s(t?.suffix || "^^^^^", d),
3496
3496
  selectedLanguage: m,
3497
3497
  translationDictionary: h
@@ -3500,9 +3500,9 @@ var Ra = (e, t, n, r, i) => {
3500
3500
  t?.suffix,
3501
3501
  m,
3502
3502
  h
3503
- ]), ue = U(null), de = U({ maxFraction: .6 }), N = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, P = H(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3503
+ ]), ue = W(null), de = W({ maxFraction: .6 }), N = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, P = U(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3504
3504
  de.current = { maxFraction: P ? .42 : .6 };
3505
- let F = H(() => La(o), [o]), fe = F !== "none", pe = fe && !!c, me = H(() => fe ? pe ? {
3505
+ let F = U(() => La(o), [o]), fe = F !== "none", pe = fe && !!c, me = U(() => fe ? pe ? {
3506
3506
  value: "50%",
3507
3507
  comparison: "18%",
3508
3508
  trend: "32%"
@@ -3515,7 +3515,7 @@ var Ra = (e, t, n, r, i) => {
3515
3515
  comparison: "0%",
3516
3516
  trend: "0%"
3517
3517
  }, [fe, pe]);
3518
- V(() => {
3518
+ H(() => {
3519
3519
  let e = x.current, t = re.current;
3520
3520
  if (!e || !t) return;
3521
3521
  ue.current = null;
@@ -3540,7 +3540,7 @@ var Ra = (e, t, n, r, i) => {
3540
3540
  P,
3541
3541
  me.value
3542
3542
  ]);
3543
- let { alignmentClass: he, subAlignmentClass: ge } = H(() => {
3543
+ let { alignmentClass: he, subAlignmentClass: ge } = U(() => {
3544
3544
  let e = t?.alignment === "left" ? $.leftAlign : t?.alignment === "right" ? $.rightAlign : "", n = t?.subHeaderAlignment === "left" ? $.leftAlign : t?.subHeaderAlignment === "right" ? $.rightAlign : "";
3545
3545
  return {
3546
3546
  alignmentClass: e || "",
@@ -3549,12 +3549,12 @@ var Ra = (e, t, n, r, i) => {
3549
3549
  }, [t?.alignment, t?.subHeaderAlignment]), _e = v ?? !!(_ || n?.isEnable), ve = () => {
3550
3550
  _e && (_ ? _() : n?.isEnable ? l?.click() : l?.contextmenu());
3551
3551
  };
3552
- return /* @__PURE__ */ q("div", {
3552
+ return /* @__PURE__ */ J("div", {
3553
3553
  className: `${i} ${r ? $.borderLessContainer : $.container}`,
3554
3554
  style: { background: t?.metricCardColor || "" },
3555
3555
  ref: te,
3556
3556
  children: [
3557
- /* @__PURE__ */ q("div", {
3557
+ /* @__PURE__ */ J("div", {
3558
3558
  ref: x,
3559
3559
  className: `${$.valueContainer} ${P ? "dbn:mt-1 dbn:justify-start" : ""} ${he} `,
3560
3560
  onContextMenu: (e) => e.preventDefault(),
@@ -3564,7 +3564,7 @@ var Ra = (e, t, n, r, i) => {
3564
3564
  minHeight: 0
3565
3565
  },
3566
3566
  "data-testid": `valueContainer-${M}`,
3567
- children: [/* @__PURE__ */ q("div", {
3567
+ children: [/* @__PURE__ */ J("div", {
3568
3568
  ref: re,
3569
3569
  style: O,
3570
3570
  onClick: ve,
@@ -3576,17 +3576,17 @@ var Ra = (e, t, n, r, i) => {
3576
3576
  se,
3577
3577
  le
3578
3578
  ]
3579
- }), P && /* @__PURE__ */ K("div", {
3579
+ }), P && /* @__PURE__ */ q("div", {
3580
3580
  className: `dbn:w-full dbn:flex dbn:flex-col ${ge}`,
3581
- children: /* @__PURE__ */ K(f, {
3581
+ children: /* @__PURE__ */ q(f, {
3582
3582
  text: t?.displayText,
3583
3583
  position: "bottom",
3584
3584
  isSingleLineTxt: !1,
3585
3585
  className: "dbn:max-w-full",
3586
- children: /* @__PURE__ */ K("div", {
3586
+ children: /* @__PURE__ */ q("div", {
3587
3587
  style: k,
3588
3588
  onClick: () => {
3589
- n && R(n, t?.displayText || "");
3589
+ n && z(n, t?.displayText || "");
3590
3590
  },
3591
3591
  className: $.subHeader,
3592
3592
  onMouseEnter: () => g?.(!0),
@@ -3596,32 +3596,32 @@ var Ra = (e, t, n, r, i) => {
3596
3596
  })
3597
3597
  })]
3598
3598
  }),
3599
- fe && /* @__PURE__ */ q("div", {
3599
+ fe && /* @__PURE__ */ J("div", {
3600
3600
  className: $.comparisonDiv,
3601
3601
  style: {
3602
3602
  background: t?.metricCardColor || "",
3603
3603
  height: me.comparison,
3604
3604
  flexShrink: 0
3605
3605
  },
3606
- children: [t?.comparisonTimePeriod && /* @__PURE__ */ q("span", {
3606
+ children: [t?.comparisonTimePeriod && /* @__PURE__ */ J("span", {
3607
3607
  className: $.comparisonPeriod,
3608
3608
  children: ["vs", t?.comparisonMapValue ? ` ${t?.comparisonMapValue}` : ` Last ${t.comparisonTimePeriod} ${t.comparisonTimeGrain}`]
3609
- }), /* @__PURE__ */ K("div", {
3609
+ }), /* @__PURE__ */ q("div", {
3610
3610
  style: A,
3611
3611
  className: $.comparisonValue,
3612
- children: /* @__PURE__ */ q("span", {
3612
+ children: /* @__PURE__ */ J("span", {
3613
3613
  style: A,
3614
3614
  className: F === "flat" ? $.comparisonPeriod : F === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3615
3615
  "data-testid": "legacy-kpi-comparison",
3616
3616
  "data-comparison-reading": F,
3617
3617
  children: [
3618
- F === "up" && /* @__PURE__ */ K(T, {
3618
+ F === "up" && /* @__PURE__ */ q(T, {
3619
3619
  name: "arrow-up-2",
3620
3620
  color: t?.upVariant === "danger" ? "warning-badge-txt" : "success-badge-txt",
3621
3621
  width: j,
3622
3622
  height: j
3623
3623
  }),
3624
- F === "down" && /* @__PURE__ */ K(T, {
3624
+ F === "down" && /* @__PURE__ */ q(T, {
3625
3625
  name: "arrow-down-2",
3626
3626
  color: t?.downVariant === "success" ? "success-badge-txt" : "warning-badge-txt",
3627
3627
  width: j,
@@ -3634,20 +3634,20 @@ var Ra = (e, t, n, r, i) => {
3634
3634
  })
3635
3635
  })]
3636
3636
  }),
3637
- pe && /* @__PURE__ */ K("div", {
3637
+ pe && /* @__PURE__ */ q("div", {
3638
3638
  ref: ae,
3639
3639
  style: {
3640
3640
  width: "100%",
3641
3641
  height: me.trend,
3642
3642
  minHeight: 0
3643
3643
  },
3644
- children: /* @__PURE__ */ K(wa, {
3644
+ children: /* @__PURE__ */ q(wa, {
3645
3645
  ref: oe,
3646
3646
  style: {
3647
3647
  width: "100%",
3648
3648
  height: "100%"
3649
3649
  },
3650
- option: Kt(c),
3650
+ option: Gt(c),
3651
3651
  theme: "v5",
3652
3652
  notMerge: !0,
3653
3653
  opts: y
@@ -3689,11 +3689,11 @@ var Ra = (e, t, n, r, i) => {
3689
3689
  } : e : (n.shape = r, n.windows = {}, e);
3690
3690
  }, Ua = /* @__PURE__ */ i({ Chart: () => so }), Wa = async () => {
3691
3691
  let e = await import("./charts-BfKyYVQ3.mjs").then((e) => e.t), t = e.DbnChart, { buildAnswerLine: n } = e;
3692
- return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ K(t, {
3692
+ return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ q(t, {
3693
3693
  ...r,
3694
3694
  answerLine: e ? n(e) : null
3695
3695
  }) };
3696
- }, Ga = null, Ka = null, qa = B(() => (Ka ??= Wa().then((e) => (Ga = e.default, e)), Ka)), Ja = (e, t) => {
3696
+ }, Ga = null, Ka = null, qa = V(() => (Ka ??= Wa().then((e) => (Ga = e.default, e)), Ka)), Ja = (e, t) => {
3697
3697
  let n = t?.onChartClickWithMetric, r = t?.chartClickConfig?.isEnable ? e?.click : e?.contextmenu;
3698
3698
  if (!n && !r) return;
3699
3699
  let i = () => {
@@ -3714,7 +3714,7 @@ var Ra = (e, t, n, r, i) => {
3714
3714
  r && (t.current = { getEchartsInstance: () => r.isDisposed?.() ? void 0 : r });
3715
3715
  }
3716
3716
  };
3717
- }, Za = (e) => K(Ga || qa, { ...e }), Qa = /* @__PURE__ */ new Set([
3717
+ }, Za = (e) => q(Ga || qa, { ...e }), Qa = /* @__PURE__ */ new Set([
3718
3718
  "echarts",
3719
3719
  "option",
3720
3720
  "theme",
@@ -3800,18 +3800,18 @@ var Ra = (e, t, n, r, i) => {
3800
3800
  ...e,
3801
3801
  xAxis: a
3802
3802
  } : e;
3803
- }, oo = Ve.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3804
- let l = Ve.useMemo(() => ({
3803
+ }, oo = Be.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3804
+ let l = Be.useMemo(() => ({
3805
3805
  width: "100%",
3806
3806
  height: t && (e || 0) >= 6 ? "100px" : t && !e ? "40%" : "100%"
3807
- }), [e, t]), u = Ve.useMemo(() => Kt(r.customSettings?.chartZoom?.isZoomEnabled ? {
3807
+ }), [e, t]), u = Be.useMemo(() => Gt(r.customSettings?.chartZoom?.isZoomEnabled ? {
3808
3808
  ...i,
3809
3809
  animation: !0
3810
3810
  } : {
3811
3811
  ...i,
3812
3812
  animation: !1
3813
3813
  }), [r, i]);
3814
- return /* @__PURE__ */ He(wa, {
3814
+ return /* @__PURE__ */ Ve(wa, {
3815
3815
  style: l,
3816
3816
  ...eo(n),
3817
3817
  option: u,
@@ -3822,28 +3822,28 @@ var Ra = (e, t, n, r, i) => {
3822
3822
  notMerge: to(r.chartType),
3823
3823
  opts: c
3824
3824
  });
3825
- }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !ro(e.config, t.config) || !ro(e.chartOptions, t.chartOptions))), so = Ve.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: a, config: o, className: s, isShowFullScreen: d, isShowFullScreenEnabled: f, metricId: p, sortOrder: m, onMaximize: g, onDrillPivotTable: _, pivotDrillState: v, isPythonMode: y, seriesName: x = "", isSortReversed: S, chartHeight: T, chartAppearance: E, metricCardColor: ie, isMetricCard: D, isDashboard: j, externalGlobalFilter: M, setExternalGlobalFilter: ue, variables: N, language: P, translationDictionary: F, setHoverSubHeader: Se, drilldownCols: Ce, isEnableDrillDown: we, dateFilter: Te, chartFontSettings: I, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3826
- let L = H(() => fe(ao(e, t), t), [e, t]), [Ae, je] = W(null), [Me, Ne] = W(null), Pe = Ke(de, le, le), Fe = We((e) => {
3827
- je((t) => t === e ? t : e);
3828
- }, []), [Ie, Le] = W(() => O(null));
3829
- Ge(() => {
3830
- Le(O(Ae));
3831
- }, [Ae]);
3832
- let R = H(() => Ie ? he({
3825
+ }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !ro(e.config, t.config) || !ro(e.chartOptions, t.chartOptions))), so = Be.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: a, config: o, className: s, isShowFullScreen: d, isShowFullScreenEnabled: f, metricId: p, sortOrder: m, onMaximize: g, onDrillPivotTable: _, pivotDrillState: v, isPythonMode: y, seriesName: x = "", isSortReversed: S, chartHeight: T, chartAppearance: E, metricCardColor: ie, isMetricCard: D, isDashboard: j, externalGlobalFilter: M, setExternalGlobalFilter: ue, variables: N, language: P, translationDictionary: F, setHoverSubHeader: Se, drilldownCols: Ce, isEnableDrillDown: we, dateFilter: Te, chartFontSettings: I, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3826
+ let L = U(() => fe(ao(e, t), t), [e, t]), [R, Ae] = G(null), [je, Me] = G(null), Ne = Ge(de, le, le), Pe = Ue((e) => {
3827
+ Ae((t) => t === e ? t : e);
3828
+ }, []), [Fe, Ie] = G(() => O(null));
3829
+ We(() => {
3830
+ Ie(O(R));
3831
+ }, [R]);
3832
+ let z = U(() => Fe ? he({
3833
3833
  mapping: ge(L, t),
3834
3834
  chartOptions: L,
3835
3835
  rows: t,
3836
3836
  enabled: re()
3837
3837
  }) : null, [
3838
- Ie,
3838
+ Fe,
3839
3839
  L,
3840
3840
  t
3841
- ]), Re = R ? re() : !1, ze = H(() => {
3842
- if (!R) return null;
3843
- let e = me(mn(E, L), {
3841
+ ]), Le = z ? re() : !1, Re = U(() => {
3842
+ if (!z) return null;
3843
+ let e = me(pn(E, L), {
3844
3844
  ...be(L.customSettings),
3845
3845
  tooltipSettings: ve(L?.tooltipSettings, I?.tooltip),
3846
- categoryField: R?.type === "gaugeV2" ? null : L?.xAxis,
3846
+ categoryField: z?.type === "gaugeV2" ? null : L?.xAxis,
3847
3847
  chartZoom: L.customSettings?.chartZoom,
3848
3848
  percentageSize: L.percentageSize,
3849
3849
  repulsion: L.customSettings?.repulsion,
@@ -3854,48 +3854,48 @@ var Ra = (e, t, n, r, i) => {
3854
3854
  themeTooltip: I?.tooltip,
3855
3855
  axisVisibility: L.customSettings
3856
3856
  });
3857
- return _e(e, ye(R.data, Re));
3857
+ return _e(e, ye(z.data, Le));
3858
3858
  }, [
3859
- R,
3859
+ z,
3860
3860
  E,
3861
3861
  L,
3862
3862
  I?.tooltip,
3863
- Re
3864
- ]), z = R ? te() : !1, Ve = H(() => {
3865
- if (Ie && R) return pe(L);
3863
+ Le
3864
+ ]), B = z ? te() : !1, Be = U(() => {
3865
+ if (Fe && z) return pe(L);
3866
3866
  }, [
3867
- Ie,
3868
- R,
3867
+ Fe,
3868
+ z,
3869
3869
  L
3870
- ]), Ue = H(() => !Ie || !R ? null : Ee(L, t, n), [
3871
- Ie,
3872
- R,
3870
+ ]), He = U(() => !Fe || !z ? null : Ee(L, t, n), [
3871
+ Fe,
3872
+ z,
3873
3873
  L,
3874
3874
  t,
3875
3875
  n
3876
- ]), [B, G] = W(), [qe, Je] = W(!1), Ye = U(null), [Xe, Ze] = W(null), Qe = We((e) => {
3877
- Ye.current = e, Ze(e);
3878
- }, []), J = U(null), [$e, et] = W(0), [tt, nt] = W(0), rt = U($e), it = U(tt), at = k(L);
3879
- V(() => {
3880
- rt.current = $e;
3881
- }, [$e]), V(() => {
3882
- it.current = tt;
3883
- }, [tt]);
3884
- let ot = H(() => JSON.stringify(I), [I]), st = H(() => JSON.stringify(L), [L]), ct = H(() => JSON.stringify(i), [i]), Y = H(() => {
3885
- if (R) return null;
3876
+ ]), [V, K] = G(), [Ke, qe] = G(!1), Je = W(null), [Ye, Xe] = G(null), Ze = Ue((e) => {
3877
+ Je.current = e, Xe(e);
3878
+ }, []), Y = W(null), [Qe, $e] = G(0), [et, tt] = G(0), nt = W(Qe), rt = W(et), it = k(L);
3879
+ H(() => {
3880
+ nt.current = Qe;
3881
+ }, [Qe]), H(() => {
3882
+ rt.current = et;
3883
+ }, [et]);
3884
+ let at = U(() => JSON.stringify(I), [I]), ot = U(() => JSON.stringify(L), [L]), st = U(() => JSON.stringify(i), [i]), X = U(() => {
3885
+ if (z) return null;
3886
3886
  let e = t;
3887
3887
  return m === "ascending" && (e = [...t].sort((e, t) => e[x] - t[x])), m === "descending" && (e = [...t].sort((e, t) => t[x] - e[x])), S && (e = [...e].reverse()), ae({
3888
3888
  isDashboard: j,
3889
3889
  chartOptions: L,
3890
3890
  data: e,
3891
3891
  colors: i,
3892
- geoJsonData: B,
3892
+ geoJsonData: V,
3893
3893
  isPythonMode: y,
3894
3894
  chartHeight: T,
3895
3895
  chartAppearance: E,
3896
- chartRef: Ye,
3897
- chartGridWidth: $e,
3898
- chartWidth: tt,
3896
+ chartRef: Je,
3897
+ chartGridWidth: Qe,
3898
+ chartWidth: et,
3899
3899
  metricCardColor: ie,
3900
3900
  language: P,
3901
3901
  translationDictionary: F,
@@ -3905,20 +3905,20 @@ var Ra = (e, t, n, r, i) => {
3905
3905
  chartFontSettings: I
3906
3906
  });
3907
3907
  }, [
3908
- R,
3908
+ z,
3909
3909
  t,
3910
+ at,
3910
3911
  ot,
3911
3912
  st,
3912
- ct,
3913
- B,
3913
+ V,
3914
3914
  m,
3915
3915
  x,
3916
3916
  S,
3917
3917
  T,
3918
3918
  E,
3919
- Ye,
3920
- $e,
3921
- tt,
3919
+ Je,
3920
+ Qe,
3921
+ et,
3922
3922
  ie,
3923
3923
  F,
3924
3924
  P,
@@ -3926,100 +3926,100 @@ var Ra = (e, t, n, r, i) => {
3926
3926
  we,
3927
3927
  Te,
3928
3928
  j
3929
- ]), [lt, ut] = W(), [dt, ft] = W(), [pt, mt] = W(), ht = pt ?? Y;
3930
- Ge(() => {
3931
- mt(void 0);
3932
- }, [Y]);
3933
- let gt = U({
3929
+ ]), [ct, lt] = G(), [ut, dt] = G(), [ft, pt] = G(), mt = ft ?? X;
3930
+ We(() => {
3931
+ pt(void 0);
3932
+ }, [X]);
3933
+ let ht = W({
3934
3934
  events: r,
3935
- options: Y,
3936
- advancedOptions: ht,
3935
+ options: X,
3936
+ advancedOptions: mt,
3937
3937
  chartOptions: L
3938
3938
  });
3939
- gt.current = {
3939
+ ht.current = {
3940
3940
  events: r,
3941
- options: Y,
3942
- advancedOptions: ht,
3941
+ options: X,
3942
+ advancedOptions: mt,
3943
3943
  chartOptions: L
3944
3944
  };
3945
- let _t = r ? Object.keys(r).sort().join("|") : "", vt = U({
3945
+ let gt = r ? Object.keys(r).sort().join("|") : "", _t = W({
3946
3946
  shape: "",
3947
3947
  windows: {}
3948
- }), yt = p || L?.chartType;
3949
- V(() => {}, [
3950
- R,
3951
- ze,
3952
- yt
3953
- ]), V(() => {}, [
3954
- R,
3955
- Y,
3956
- yt
3957
- ]), V(() => {});
3958
- let bt = H(() => {
3948
+ }), vt = p || L?.chartType;
3949
+ H(() => {}, [
3950
+ z,
3951
+ Re,
3952
+ vt
3953
+ ]), H(() => {}, [
3954
+ z,
3955
+ X,
3956
+ vt
3957
+ ]), H(() => {});
3958
+ let yt = U(() => {
3959
3959
  let e = {};
3960
- (_t ? _t.split("|") : []).forEach((t) => {
3960
+ (gt ? gt.split("|") : []).forEach((t) => {
3961
3961
  e[t] = (...e) => {
3962
- let n = gt.current.events?.[t];
3962
+ let n = ht.current.events?.[t];
3963
3963
  n?.(...e);
3964
3964
  };
3965
3965
  });
3966
3966
  let t = e.datazoom;
3967
3967
  return e.datazoom = (...e) => {
3968
3968
  let n = e[1], r = Va(n);
3969
- Object.keys(r).length && (vt.current.windows = r), t?.(...e);
3969
+ Object.keys(r).length && (_t.current.windows = r), t?.(...e);
3970
3970
  }, e;
3971
- }, [_t]), xt = U(/* @__PURE__ */ new Set()), St = H(() => ({
3972
- ...bt,
3971
+ }, [gt]), bt = W(/* @__PURE__ */ new Set()), xt = U(() => ({
3972
+ ...yt,
3973
3973
  legendselectchanged: (e, t) => {
3974
3974
  io({
3975
3975
  echartsInstance: t,
3976
- optionsObj: gt.current.options,
3976
+ optionsObj: ht.current.options,
3977
3977
  params: e,
3978
- chartIds: xt.current
3978
+ chartIds: bt.current
3979
3979
  });
3980
3980
  }
3981
- }), [bt]), Ct = H(() => ({
3982
- ...bt,
3981
+ }), [yt]), St = U(() => ({
3982
+ ...yt,
3983
3983
  legendselectchanged: (e, t) => {
3984
3984
  io({
3985
3985
  echartsInstance: t,
3986
- optionsObj: gt.current.advancedOptions,
3986
+ optionsObj: ht.current.advancedOptions,
3987
3987
  params: e,
3988
- isGantt: gt.current.chartOptions?.chartType === c.gantt,
3989
- chartIds: xt.current
3988
+ isGantt: ht.current.chartOptions?.chartType === c.gantt,
3989
+ chartIds: bt.current
3990
3990
  });
3991
3991
  }
3992
- }), [bt]), wt = H(() => Kt(Ha(ht, L?.chartType, vt.current)), [ht, L?.chartType]), Tt = H(() => Kt(Ha(lt ?? Y, L?.chartType, vt.current)), [
3993
- lt,
3994
- Y,
3992
+ }), [yt]), Ct = U(() => Gt(Ha(mt, L?.chartType, _t.current)), [mt, L?.chartType]), wt = U(() => Gt(Ha(ct ?? X, L?.chartType, _t.current)), [
3993
+ ct,
3994
+ X,
3995
3995
  L?.chartType
3996
3996
  ]);
3997
- V(() => () => {
3997
+ H(() => () => {
3998
3998
  let e = window;
3999
- e?.chartSelections && xt.current.forEach((t) => {
3999
+ e?.chartSelections && bt.current.forEach((t) => {
4000
4000
  delete e.chartSelections[t];
4001
- }), xt.current.clear(), gt.current = {
4001
+ }), bt.current.clear(), ht.current = {
4002
4002
  events: void 0,
4003
4003
  options: void 0,
4004
4004
  advancedOptions: void 0,
4005
4005
  chartOptions: void 0
4006
4006
  };
4007
4007
  }, []);
4008
- let [Et, Dt] = W(0), [Ot, kt] = W(0), [At, jt] = W(0), [Mt, Nt] = W([]), [Pt, Ft] = W(!1), It = H(() => [
4008
+ let [Tt, Et] = G(0), [Dt, Ot] = G(0), [kt, At] = G(0), [jt, Mt] = G([]), [Nt, Pt] = G(!1), Ft = U(() => [
4009
4009
  c.indianMap,
4010
4010
  c.geoBarMap,
4011
4011
  c.geoMap,
4012
4012
  c.geoScatterMap,
4013
4013
  c.worldMap
4014
- ].includes(L.chartType), [L.chartType]), Lt = H(() => [c.worldMap, c.indianMap].includes(L?.chartType || "") && B && t.length && L?.xAxis, [
4015
- B,
4014
+ ].includes(L.chartType), [L.chartType]), It = U(() => [c.worldMap, c.indianMap].includes(L?.chartType || "") && V && t.length && L?.xAxis, [
4015
+ V,
4016
4016
  t.length,
4017
4017
  L?.xAxis,
4018
4018
  L.chartType
4019
4019
  ]);
4020
- Ge(() => {
4021
- if (R || !Ae) return;
4022
- let e = Ae.parentElement ?? Ae, t = () => {
4020
+ We(() => {
4021
+ if (z || !R) return;
4022
+ let e = R.parentElement ?? R, t = () => {
4023
4023
  let t = e.getBoundingClientRect();
4024
4024
  if (t.width <= 0 || t.height <= 0) return !1;
4025
4025
  let n = A({
@@ -4029,10 +4029,10 @@ var Ra = (e, t, n, r, i) => {
4029
4029
  liveCharts: ce(),
4030
4030
  purpose: ke ? "export" : "live"
4031
4031
  });
4032
- return Ne((e) => e === n ? e : n), !0;
4032
+ return Me((e) => e === n ? e : n), !0;
4033
4033
  }, n = t();
4034
4034
  if (typeof ResizeObserver != "function") {
4035
- n || Ne(A({
4035
+ n || Me(A({
4036
4036
  cssWidth: 0,
4037
4037
  cssHeight: 0,
4038
4038
  devicePixelRatio: window.devicePixelRatio,
@@ -4044,90 +4044,90 @@ var Ra = (e, t, n, r, i) => {
4044
4044
  let r = new ResizeObserver(t);
4045
4045
  return r.observe(e), () => r.disconnect();
4046
4046
  }, [
4047
- R,
4047
+ z,
4048
4048
  ke,
4049
- Ae,
4050
- Pe
4051
- ]), V(() => {
4052
- if (R || !Ae || typeof MutationObserver != "function") return;
4049
+ R,
4050
+ Ne
4051
+ ]), H(() => {
4052
+ if (z || !R || typeof MutationObserver != "function") return;
4053
4053
  let e = null, t = () => {
4054
- let t = Ae.querySelector("canvas") !== null;
4054
+ let t = R.querySelector("canvas") !== null;
4055
4055
  t && !e ? e = se() : !t && e && (e(), e = null);
4056
4056
  }, n = new MutationObserver(t);
4057
- return n.observe(Ae, {
4057
+ return n.observe(R, {
4058
4058
  childList: !0,
4059
4059
  subtree: !0
4060
4060
  }), t(), () => {
4061
4061
  n.disconnect(), e?.();
4062
4062
  };
4063
- }, [R, Ae]);
4064
- let Rt = H(() => Me === null ? null : {
4063
+ }, [z, R]);
4064
+ let Lt = U(() => je === null ? null : {
4065
4065
  renderer: o?.opts?.renderer || "canvas",
4066
- devicePixelRatio: Me
4067
- }, [o?.opts?.renderer, Me]), Vt = H(() => no(L.chartType, ht), [ht, L.chartType]);
4068
- V(() => {
4069
- if (!R && It) {
4066
+ devicePixelRatio: je
4067
+ }, [o?.opts?.renderer, je]), Bt = U(() => no(L.chartType, mt), [mt, L.chartType]);
4068
+ H(() => {
4069
+ if (!z && Ft) {
4070
4070
  let e = [
4071
4071
  c.geoBarMap,
4072
4072
  c.geoMap,
4073
4073
  c.geoScatterMap
4074
4074
  ].includes(L.chartType);
4075
- G(null), Je(!1);
4075
+ K(null), qe(!1);
4076
4076
  let t = window.dbn?.geoJsonBaseUrl, n = (e) => fetch(`${t.replace(/\/+$/, "")}/${e}.json`).then((e) => {
4077
4077
  if (!e.ok) throw Error(`Geo outline fetch failed: ${e.status}`);
4078
4078
  return e.json();
4079
- }), r = () => Je(!0);
4080
- e ? (t ? n("usa") : import("./usa-DtnpZ1zb.mjs").then((e) => e.default)).then(G).catch(r) : L?.chartType === c.indianMap ? (t ? n("india") : import("./india-75EpARPk.mjs").then((e) => e.default)).then(G).catch(r) : (t ? n("world") : import("./world-DN5GUvkD.mjs").then((e) => e.default)).then(G).catch(r);
4079
+ }), r = () => qe(!0);
4080
+ e ? (t ? n("usa") : import("./usa-DtnpZ1zb.mjs").then((e) => e.default)).then(K).catch(r) : L?.chartType === c.indianMap ? (t ? n("india") : import("./india-75EpARPk.mjs").then((e) => e.default)).then(K).catch(r) : (t ? n("world") : import("./world-DN5GUvkD.mjs").then((e) => e.default)).then(K).catch(r);
4081
4081
  }
4082
- }, [L.chartType, R]);
4083
- let Ht = H(() => L.customSettings?.showDynamicBehaviour ? oe(t, L) : t, [t, L]);
4084
- V(() => {
4085
- R || L.customSettings?.showDynamicBehaviour && !at && L.chartType && ut(ae({
4082
+ }, [L.chartType, z]);
4083
+ let Vt = U(() => L.customSettings?.showDynamicBehaviour ? oe(t, L) : t, [t, L]);
4084
+ H(() => {
4085
+ z || L.customSettings?.showDynamicBehaviour && !it && L.chartType && lt(ae({
4086
4086
  isDashboard: j,
4087
4087
  chartOptions: L,
4088
- data: Ht.slice(0, 10),
4088
+ data: Vt.slice(0, 10),
4089
4089
  colors: i,
4090
4090
  isPythonMode: y,
4091
4091
  language: P,
4092
4092
  translationDictionary: F,
4093
4093
  dateFilter: Te,
4094
- chartRef: o?.ref ?? J,
4095
- chartGridWidth: rt.current,
4096
- chartWidth: it.current
4094
+ chartRef: o?.ref ?? Y,
4095
+ chartGridWidth: nt.current,
4096
+ chartWidth: rt.current
4097
4097
  }));
4098
4098
  }, [
4099
- R,
4099
+ z,
4100
4100
  L,
4101
4101
  i,
4102
- Ht,
4103
- at,
4102
+ Vt,
4103
+ it,
4104
4104
  P,
4105
4105
  F,
4106
4106
  Te,
4107
4107
  j
4108
4108
  ]);
4109
- let Ut = U({
4109
+ let Ht = W({
4110
4110
  upperLimit: 10,
4111
4111
  lowerLimit: 0,
4112
4112
  key: ""
4113
4113
  });
4114
- V(() => {
4115
- if (!R && L.customSettings?.showDynamicBehaviour && !at) {
4114
+ H(() => {
4115
+ if (!z && L.customSettings?.showDynamicBehaviour && !it) {
4116
4116
  let e = `${L.chartType || ""}|${t.length}`;
4117
- Ut.current.key !== e && (Ut.current = {
4117
+ Ht.current.key !== e && (Ht.current = {
4118
4118
  upperLimit: 10,
4119
4119
  lowerLimit: 0,
4120
4120
  key: e
4121
4121
  });
4122
- let n = Ut.current, r = setInterval(() => {
4122
+ let n = Ht.current, r = setInterval(() => {
4123
4123
  if (n.upperLimit >= t.length) {
4124
- ut((e) => ({
4125
- ...e ?? gt.current.options,
4124
+ lt((e) => ({
4125
+ ...e ?? ht.current.options,
4126
4126
  animation: !1
4127
4127
  })), clearInterval(r);
4128
4128
  return;
4129
4129
  }
4130
- let e = Ht.slice(n.lowerLimit, n.upperLimit + 10), a = ae({
4130
+ let e = Vt.slice(n.lowerLimit, n.upperLimit + 10), a = ae({
4131
4131
  isDashboard: j,
4132
4132
  chartOptions: L,
4133
4133
  data: e,
@@ -4136,36 +4136,36 @@ var Ra = (e, t, n, r, i) => {
4136
4136
  translationDictionary: F,
4137
4137
  language: P,
4138
4138
  dateFilter: Te,
4139
- chartRef: o?.ref ?? J,
4140
- chartGridWidth: rt.current,
4141
- chartWidth: it.current
4139
+ chartRef: o?.ref ?? Y,
4140
+ chartGridWidth: nt.current,
4141
+ chartWidth: rt.current
4142
4142
  });
4143
- ut(a), n.upperLimit += 10, n.lowerLimit += 5;
4143
+ lt(a), n.upperLimit += 10, n.lowerLimit += 5;
4144
4144
  }, 1e3);
4145
4145
  return () => clearInterval(r);
4146
4146
  }
4147
4147
  }, [
4148
- R,
4148
+ z,
4149
4149
  L,
4150
4150
  t,
4151
- Ht,
4151
+ Vt,
4152
4152
  i,
4153
- at,
4153
+ it,
4154
4154
  F,
4155
4155
  P,
4156
4156
  Te,
4157
4157
  j
4158
4158
  ]);
4159
- let Wt = H(() => [c.linearGauge, c.progressBar].includes(L?.chartType), [L.chartType]), Gt = U(!0), qt = U(void 0);
4160
- V(() => {
4161
- if (R) return;
4159
+ let Ut = U(() => [c.linearGauge, c.progressBar].includes(L?.chartType), [L.chartType]), Wt = W(!0), Kt = W(void 0);
4160
+ H(() => {
4161
+ if (z) return;
4162
4162
  let e = setTimeout(() => {
4163
- let e = (o?.ref ?? J)?.current?.getEchartsInstance();
4163
+ let e = (o?.ref ?? Y)?.current?.getEchartsInstance();
4164
4164
  if (e && !u.includes(L?.chartType || "")) try {
4165
4165
  let t = e._componentsViews?.find((e) => e?.type === "grid")?.__model?.coordinateSystem?._rect;
4166
- t && L?.labelSettings?.wrapText && et(t?.width), t?.width && jt(t.width);
4166
+ t && L?.labelSettings?.wrapText && $e(t?.width), t?.width && At(t.width);
4167
4167
  let n = e._componentsViews?.find((e) => e?.type === "legend.scroll" || e?.type === "legend.plain"), r = n?._backgroundEl?.shape?.width || 0, i = n?._backgroundEl?.shape?.height || 0;
4168
- !L?.legendSettings?.customise && L?.legendSettings?.show ? (Dt(r), kt(i)) : (Dt(0), kt(0));
4168
+ !L?.legendSettings?.customise && L?.legendSettings?.show ? (Et(r), Ot(i)) : (Et(0), Ot(0));
4169
4169
  } catch (e) {
4170
4170
  console.error("Error accessing chart properties:", e);
4171
4171
  }
@@ -4174,39 +4174,39 @@ var Ra = (e, t, n, r, i) => {
4174
4174
  }, [
4175
4175
  o?.ref,
4176
4176
  L,
4177
- R
4178
- ]), V(() => {
4179
- if (R || !Y) return;
4177
+ z
4178
+ ]), H(() => {
4179
+ if (z || !X) return;
4180
4180
  let e = setTimeout(() => {
4181
- let e = (o?.ref ?? J)?.current?.getEchartsInstance(), t = Y;
4181
+ let e = (o?.ref ?? Y)?.current?.getEchartsInstance(), t = X;
4182
4182
  if (e && !u.includes(L?.chartType || "")) {
4183
- let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = Y?.xAxis?.[0]?.data?.length || Y?.xAxis?.data?.length || 0, a = At / i * .7 / Y?.series?.length, s = [c.bar].includes(L?.chartType) && (L?.isDynamicSeries && L?.seriesField !== "ungrouped" || L?.seriesField !== "ungrouped"), u = L?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(L?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, d = L?.legendSettings?.disableScroll, f = L?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(L?.customSettings?.chartZoom?.zoomAxis || ""), p = f ? 40 : 0, m = 0, h = 0;
4184
- if (w.includes(L?.legendSettings?.fixedPosition || "") && (m = Ot / r * 100 || 0), ne.includes(L?.legendSettings?.fixedPosition || "") && (h = Ot / r * 100 || 0), (o?.ref ?? J)?.current && L?.legendSettings?.position === "vertical" && ee.includes(L?.legendSettings?.fixedPosition || "") && L?.chartType !== c.horizontalCombo) {
4183
+ let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = X?.xAxis?.[0]?.data?.length || X?.xAxis?.data?.length || 0, a = kt / i * .7 / X?.series?.length, s = [c.bar].includes(L?.chartType) && (L?.isDynamicSeries && L?.seriesField !== "ungrouped" || L?.seriesField !== "ungrouped"), u = L?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(L?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, d = L?.legendSettings?.disableScroll, f = L?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(L?.customSettings?.chartZoom?.zoomAxis || ""), p = f ? 40 : 0, m = 0, h = 0;
4184
+ if (w.includes(L?.legendSettings?.fixedPosition || "") && (m = Dt / r * 100 || 0), ne.includes(L?.legendSettings?.fixedPosition || "") && (h = Dt / r * 100 || 0), (o?.ref ?? Y)?.current && L?.legendSettings?.position === "vertical" && ee.includes(L?.legendSettings?.fixedPosition || "") && L?.chartType !== c.horizontalCombo) {
4185
4185
  if (L?.chartType === c.combo || L?.chartType === c.timeSeries && L?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
4186
- let e = ((Y?.leftOffset + 5 || 0) + u) / n * 100, r = (Y?.rightOffset + 5 || 0) / n * 100;
4187
- b.includes(L?.legendSettings?.fixedPosition || "") && (r = (Y?.rightOffset + 5 || 0) / n * 100, e = (Et + (Y?.leftOffset + 5 || 0)) / n * 100), l.includes(L?.legendSettings?.fixedPosition || "") && (r = (Et + (Y?.rightOffset + 5 || 0)) / n * 100, e = (Y?.leftOffset + 5 || 0) / n * 100);
4188
- let i = L?.customSettings?.chartZoom?.isZoomEnabled ? Y?.dataZoom?.map((e) => e.orient === "vertical" ? {
4186
+ let e = ((X?.leftOffset + 5 || 0) + u) / n * 100, r = (X?.rightOffset + 5 || 0) / n * 100;
4187
+ b.includes(L?.legendSettings?.fixedPosition || "") && (r = (X?.rightOffset + 5 || 0) / n * 100, e = (Tt + (X?.leftOffset + 5 || 0)) / n * 100), l.includes(L?.legendSettings?.fixedPosition || "") && (r = (Tt + (X?.rightOffset + 5 || 0)) / n * 100, e = (X?.leftOffset + 5 || 0) / n * 100);
4188
+ let i = L?.customSettings?.chartZoom?.isZoomEnabled ? X?.dataZoom?.map((e) => e.orient === "vertical" ? {
4189
4189
  ...e,
4190
- left: b.includes(L?.legendSettings?.fixedPosition || "") ? Et : 5
4191
- } : e) : Y?.dataZoom;
4190
+ left: b.includes(L?.legendSettings?.fixedPosition || "") ? Tt : 5
4191
+ } : e) : X?.dataZoom;
4192
4192
  t = {
4193
- ...Y,
4193
+ ...X,
4194
4194
  grid: {
4195
- ...Y?.grid,
4195
+ ...X?.grid,
4196
4196
  left: `${(L?.margins?.marginLeft || 0) + e}%`,
4197
4197
  right: `${(L?.margins?.marginRight || 0) + r}%`
4198
4198
  },
4199
4199
  ...L?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: i } : {}
4200
4200
  };
4201
4201
  } else {
4202
- let e = Et / n * 100, r = L?.customSettings?.chartZoom?.isZoomEnabled ? Y?.dataZoom?.map((e) => e.orient === "vertical" ? {
4202
+ let e = Tt / n * 100, r = L?.customSettings?.chartZoom?.isZoomEnabled ? X?.dataZoom?.map((e) => e.orient === "vertical" ? {
4203
4203
  ...e,
4204
- left: b.includes(L?.legendSettings?.fixedPosition || "") ? Et : 5
4205
- } : e) : Y?.dataZoom;
4204
+ left: b.includes(L?.legendSettings?.fixedPosition || "") ? Tt : 5
4205
+ } : e) : X?.dataZoom;
4206
4206
  t = {
4207
- ...Y,
4207
+ ...X,
4208
4208
  grid: {
4209
- ...Y?.grid,
4209
+ ...X?.grid,
4210
4210
  ...b.includes(L?.legendSettings?.fixedPosition || "") ? {
4211
4211
  left: `${(L?.margins?.marginLeft || 0) + e}%`,
4212
4212
  right: `${L?.margins?.marginRight || 0}%`
@@ -4217,27 +4217,27 @@ var Ra = (e, t, n, r, i) => {
4217
4217
  } : {}
4218
4218
  },
4219
4219
  ...L?.customSettings?.chartZoom?.isZoomEnabled && b.includes(L?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
4220
- ...s ? { series: Y?.series?.map((e, t) => ({
4220
+ ...s ? { series: X?.series?.map((e, t) => ({
4221
4221
  ...e,
4222
4222
  barWidth: a,
4223
4223
  itemStyle: {
4224
4224
  ...e.itemStyle,
4225
- color: Y.colors[t]
4225
+ color: X.colors[t]
4226
4226
  }
4227
4227
  })) } : {}
4228
4228
  };
4229
4229
  }
4230
- } else if ((o?.ref ?? J)?.current && L?.chartType === c.horizontalCombo) {
4231
- let e = Et / n * 100, i = (Y?.bottomOffset || 0) / r * 100, a = (Y?.topOffset || 0) / r * 100;
4232
- ne.includes(L?.legendSettings?.fixedPosition || "") && L?.legendSettings?.position === "horizontal" && (a = (Y?.topOffset + 5 || 0) / r * 100, i = ((Ot || 25) + (Y?.bottomOffset + 5 || 0)) / r * 100), w.includes(L?.legendSettings?.fixedPosition || "") && L?.legendSettings?.position === "horizontal" && (a = ((Ot || 25) + (Y?.topOffset + 5 || 0)) / r * 100, i = (Y?.bottomOffset + 5 || 0) / r * 100);
4233
- let o = L?.customSettings?.chartZoom?.isZoomEnabled ? Y?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4230
+ } else if ((o?.ref ?? Y)?.current && L?.chartType === c.horizontalCombo) {
4231
+ let e = Tt / n * 100, i = (X?.bottomOffset || 0) / r * 100, a = (X?.topOffset || 0) / r * 100;
4232
+ ne.includes(L?.legendSettings?.fixedPosition || "") && L?.legendSettings?.position === "horizontal" && (a = (X?.topOffset + 5 || 0) / r * 100, i = ((Dt || 25) + (X?.bottomOffset + 5 || 0)) / r * 100), w.includes(L?.legendSettings?.fixedPosition || "") && L?.legendSettings?.position === "horizontal" && (a = ((Dt || 25) + (X?.topOffset + 5 || 0)) / r * 100, i = (X?.bottomOffset + 5 || 0) / r * 100);
4233
+ let o = L?.customSettings?.chartZoom?.isZoomEnabled ? X?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4234
4234
  ...e,
4235
- bottom: ne.includes(L?.legendSettings?.fixedPosition || "") ? Ot : 5
4236
- } : e) : Y?.dataZoom;
4235
+ bottom: ne.includes(L?.legendSettings?.fixedPosition || "") ? Dt : 5
4236
+ } : e) : X?.dataZoom;
4237
4237
  t = {
4238
- ...Y,
4238
+ ...X,
4239
4239
  grid: {
4240
- ...Y?.grid,
4240
+ ...X?.grid,
4241
4241
  top: `${(L?.margins?.marginTop || 0) + a}%`,
4242
4242
  bottom: `${(L?.margins?.marginBottom || 0) + i + (f ? 5 : 0)}%`,
4243
4243
  ...b.includes(L?.legendSettings?.fixedPosition || "") && L?.legendSettings?.position === "vertical" ? {
@@ -4252,17 +4252,17 @@ var Ra = (e, t, n, r, i) => {
4252
4252
  ...L?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: o } : {}
4253
4253
  };
4254
4254
  } else {
4255
- let e = L?.legendSettings?.position === "horizontal" && ne.includes(L?.legendSettings?.fixedPosition || ""), r = e && (p + Ot) / n * 100 || 0, i = L?.customSettings?.chartZoom?.isZoomEnabled ? Y?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4255
+ let e = L?.legendSettings?.position === "horizontal" && ne.includes(L?.legendSettings?.fixedPosition || ""), r = e && (p + Dt) / n * 100 || 0, i = L?.customSettings?.chartZoom?.isZoomEnabled ? X?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4256
4256
  ...e,
4257
- bottom: Ot
4257
+ bottom: Dt
4258
4258
  } : e) : null;
4259
4259
  if (L?.chartType === c.combo || L?.chartType === c.timeSeries && L?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
4260
- let a = ((Y?.leftOffset || 0) + u) / n * 100, o = (Y?.rightOffset || 0) / n * 100;
4260
+ let a = ((X?.leftOffset || 0) + u) / n * 100, o = (X?.rightOffset || 0) / n * 100;
4261
4261
  t = {
4262
- ...Y,
4262
+ ...X,
4263
4263
  ...L?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4264
4264
  grid: {
4265
- ...Y?.grid,
4265
+ ...X?.grid,
4266
4266
  left: `${(L?.margins?.marginLeft || 0) + a}%`,
4267
4267
  right: `${(L?.margins?.marginRight || 0) + o}%`,
4268
4268
  ...d ? {
@@ -4274,10 +4274,10 @@ var Ra = (e, t, n, r, i) => {
4274
4274
  } else {
4275
4275
  let o = L?.labelSettings?.YAxisStyle?.axisName ? (L?.labelSettings?.YAxisStyle?.axisPadding || 0) / n * 100 : 0, c = o > 0 ? o / 2 : 0;
4276
4276
  t = {
4277
- ...Y,
4277
+ ...X,
4278
4278
  ...L?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4279
4279
  grid: {
4280
- ...Y?.grid,
4280
+ ...X?.grid,
4281
4281
  left: `${(L?.margins?.marginLeft || 0) + c}%`,
4282
4282
  right: `${L?.margins?.marginRight || 0}%`,
4283
4283
  ...d ? {
@@ -4285,19 +4285,19 @@ var Ra = (e, t, n, r, i) => {
4285
4285
  bottom: `${(L?.margins?.marginBottom || 0) + h + (f ? r : 0)}%`
4286
4286
  } : {}
4287
4287
  },
4288
- ...s ? { series: Y?.series?.map((e, t) => ({
4288
+ ...s ? { series: X?.series?.map((e, t) => ({
4289
4289
  ...e,
4290
4290
  barWidth: a,
4291
4291
  itemStyle: {
4292
4292
  ...e.itemStyle,
4293
- color: Y.colors[t]
4293
+ color: X.colors[t]
4294
4294
  }
4295
4295
  })) } : {}
4296
4296
  };
4297
4297
  }
4298
4298
  }
4299
- } else t = Y;
4300
- e && u.includes(L?.chartType || "") && (t = on(t, {
4299
+ } else t = X;
4300
+ e && u.includes(L?.chartType || "") && (t = an(t, {
4301
4301
  chartType: L?.chartType,
4302
4302
  canvas: {
4303
4303
  width: e.getWidth?.() || 0,
@@ -4306,34 +4306,34 @@ var Ra = (e, t, n, r, i) => {
4306
4306
  legendSettings: L?.legendSettings,
4307
4307
  legendAppearance: E?.chartLegend,
4308
4308
  outsideLabels: !0
4309
- }) ?? t), mt(t);
4309
+ }) ?? t), pt(t);
4310
4310
  }, 100);
4311
4311
  return () => clearTimeout(e);
4312
4312
  }, [
4313
- R,
4313
+ z,
4314
4314
  o?.ref,
4315
- Y,
4315
+ X,
4316
4316
  L,
4317
- Et,
4318
- Ot,
4319
- At,
4317
+ Tt,
4318
+ Dt,
4319
+ kt,
4320
4320
  E?.chartLegend
4321
- ]), V(() => {
4322
- if (R || !Y || (qt.current &&= (clearInterval(qt.current), void 0), L.chartType !== c.geoBarMap)) return;
4323
- let e = Ye.current;
4324
- if (!e || typeof IntersectionObserver != "function") return Gt.current = !0, qt.current = setInterval(() => {
4325
- ft(Gt.current ? Y.geoOption : Y.barOption), Gt.current = !Gt.current;
4321
+ ]), H(() => {
4322
+ if (z || !X || (Kt.current &&= (clearInterval(Kt.current), void 0), L.chartType !== c.geoBarMap)) return;
4323
+ let e = Je.current;
4324
+ if (!e || typeof IntersectionObserver != "function") return Wt.current = !0, Kt.current = setInterval(() => {
4325
+ dt(Wt.current ? X.geoOption : X.barOption), Wt.current = !Wt.current;
4326
4326
  }, 2e3), () => {
4327
- qt.current &&= (clearInterval(qt.current), void 0);
4327
+ Kt.current &&= (clearInterval(Kt.current), void 0);
4328
4328
  };
4329
4329
  let t = () => {
4330
- qt.current ||= setInterval(() => {
4331
- ft(Gt.current ? Y.geoOption : Y.barOption), Gt.current = !Gt.current;
4330
+ Kt.current ||= setInterval(() => {
4331
+ dt(Wt.current ? X.geoOption : X.barOption), Wt.current = !Wt.current;
4332
4332
  }, 2e3);
4333
4333
  }, n = () => {
4334
- qt.current &&= (clearInterval(qt.current), void 0);
4334
+ Kt.current &&= (clearInterval(Kt.current), void 0);
4335
4335
  };
4336
- Gt.current = !0;
4336
+ Wt.current = !0;
4337
4337
  let r = new IntersectionObserver(([e]) => {
4338
4338
  e?.isIntersecting ? t() : n();
4339
4339
  }, { threshold: 0 });
@@ -4342,19 +4342,19 @@ var Ra = (e, t, n, r, i) => {
4342
4342
  };
4343
4343
  }, [
4344
4344
  L.chartType,
4345
- R,
4346
- Y
4345
+ z,
4346
+ X
4347
4347
  ]);
4348
- let { ref: Jt, ...Yt } = o || {};
4349
- V(() => {
4350
- if (!R && Lt) {
4351
- let e = [], n = new Set(B?.features?.map((e) => e.properties.name));
4348
+ let { ref: qt, ...Jt } = o || {};
4349
+ H(() => {
4350
+ if (!z && It) {
4351
+ let e = [], n = new Set(V?.features?.map((e) => e.properties.name));
4352
4352
  t.forEach((t) => {
4353
4353
  n.has(t[L.xAxis || ""]) || e.push(t);
4354
- }), Nt(e);
4354
+ }), Mt(e);
4355
4355
  }
4356
- }, [Lt, R]);
4357
- let Xt = H(() => [{
4356
+ }, [It, z]);
4357
+ let Yt = U(() => [{
4358
4358
  name: L?.xAxis,
4359
4359
  columnKey: L?.xAxis,
4360
4360
  colSpan: 1,
@@ -4365,33 +4365,34 @@ var Ra = (e, t, n, r, i) => {
4365
4365
  colSpan: 1,
4366
4366
  columnCell: (e) => e[L?.yAxisList?.[0] || ""] || "0"
4367
4367
  }], [L?.xAxis, L?.yAxisList]);
4368
- V(() => {
4369
- if (!R && (Xe && [
4368
+ H(() => {
4369
+ if (!z && (Ye && [
4370
4370
  c.gaugeV2,
4371
4371
  c.linearGaugeV2,
4372
4372
  c.progressBarV2,
4373
4373
  c.funnelV2
4374
- ].includes(L.chartType) && Y?.drawD3Chart && Y?.drawD3Chart(), ![
4374
+ ].includes(L.chartType) && X?.drawD3Chart && X?.drawD3Chart(), ![
4375
4375
  c.gaugeV2,
4376
4376
  c.linearGaugeV2,
4377
4377
  c.progressBarV2,
4378
4378
  c.funnelV2
4379
4379
  ].includes(L.chartType))) {
4380
4380
  let e = document.querySelector("#dbn-portal");
4381
- (document.querySelector("#chartContainer #gaugeContainer") || e?.shadowRoot?.querySelector("#chartContainer #gaugeContainer"))?.remove(), (document.querySelector("#chartContainer #gaugeV2") || e?.shadowRoot?.querySelector("#chartContainer #gaugeV2"))?.remove(), (document.querySelector("#chartContainer #lineargauge") || e?.shadowRoot?.querySelector("#chartContainer #lineargauge"))?.remove(), (document.querySelector("#chartContainer #progressBar") || e?.shadowRoot?.querySelector("#chartContainer #progressBar"))?.remove(), (document.querySelector("#chartContainer #funnelContainer") || e?.shadowRoot?.querySelector("#chartContainer #funnelContainer"))?.remove();
4381
+ (R?.querySelector("#chartContainer #gaugeContainer") || document.querySelector("#chartContainer #gaugeContainer") || e?.shadowRoot?.querySelector("#chartContainer #gaugeContainer"))?.remove(), (R?.querySelector("#chartContainer #gaugeV2") || document.querySelector("#chartContainer #gaugeV2") || e?.shadowRoot?.querySelector("#chartContainer #gaugeV2"))?.remove(), (R?.querySelector("#chartContainer #lineargauge") || document.querySelector("#chartContainer #lineargauge") || e?.shadowRoot?.querySelector("#chartContainer #lineargauge"))?.remove(), (R?.querySelector("#chartContainer #progressBar") || document.querySelector("#chartContainer #progressBar") || e?.shadowRoot?.querySelector("#chartContainer #progressBar"))?.remove(), (R?.querySelector("#chartContainer #funnelContainer") || document.querySelector("#chartContainer #funnelContainer") || e?.shadowRoot?.querySelector("#chartContainer #funnelContainer"))?.remove();
4382
4382
  }
4383
4383
  }, [
4384
+ z,
4385
+ Ye,
4384
4386
  R,
4385
- Xe,
4386
4387
  L.chartType,
4387
- Y?.drawD3Chart
4388
- ]), V(() => {
4389
- let e = (o?.ref ?? J)?.current?.getEchartsInstance?.();
4388
+ X?.drawD3Chart
4389
+ ]), H(() => {
4390
+ let e = (o?.ref ?? Y)?.current?.getEchartsInstance?.();
4390
4391
  if (!e || !L?.labelSettings?.wrapText) return;
4391
4392
  let t, n = () => {
4392
4393
  clearTimeout(t), t = setTimeout(() => {
4393
4394
  let t = e.getWidth?.() || 0;
4394
- nt((e) => e === t ? e : t);
4395
+ tt((e) => e === t ? e : t);
4395
4396
  }, 150);
4396
4397
  };
4397
4398
  n();
@@ -4403,14 +4404,14 @@ var Ra = (e, t, n, r, i) => {
4403
4404
  };
4404
4405
  }, [
4405
4406
  o?.ref,
4406
- J,
4407
+ Y,
4407
4408
  L?.labelSettings?.wrapText,
4408
4409
  L?.chartType
4409
4410
  ]);
4410
- let Zt;
4411
- if (R) {
4412
- let e = Bt(L.chartType), t = Wt && (T || 0) >= 6 ? Math.min(100, e) : typeof T == "number" && T > 0 ? Math.max(e, T * 24) : e;
4413
- Zt = /* @__PURE__ */ K("div", {
4411
+ let Xt;
4412
+ if (z) {
4413
+ let e = zt(L.chartType), t = Ut && (T || 0) >= 6 ? Math.min(100, e) : typeof T == "number" && T > 0 ? Math.max(e, T * 24) : e;
4414
+ Xt = /* @__PURE__ */ q("div", {
4414
4415
  style: {
4415
4416
  width: "100%",
4416
4417
  height: "100%",
@@ -4419,36 +4420,36 @@ var Ra = (e, t, n, r, i) => {
4419
4420
  flexDirection: "column",
4420
4421
  alignSelf: "stretch"
4421
4422
  },
4422
- children: /* @__PURE__ */ K(zt, {
4423
+ children: /* @__PURE__ */ q(Rt, {
4423
4424
  customSettings: L.customSettings,
4424
- children: /* @__PURE__ */ K(C, {
4425
+ children: /* @__PURE__ */ q(C, {
4425
4426
  surface: "chart",
4426
- fallback: /* @__PURE__ */ K("div", {
4427
+ fallback: /* @__PURE__ */ q("div", {
4427
4428
  className: "dbn:w-full dbn:h-full",
4428
4429
  "aria-hidden": !0
4429
4430
  }),
4430
- children: /* @__PURE__ */ K(Za, {
4431
- type: R.type,
4432
- data: R.data,
4433
- answerLineInput: Ue,
4434
- minHeight: Wt ? void 0 : 0,
4435
- applyDensity: z,
4436
- appearance: ze ?? void 0,
4431
+ children: /* @__PURE__ */ q(Za, {
4432
+ type: z.type,
4433
+ data: z.data,
4434
+ answerLineInput: He,
4435
+ minHeight: Ut ? void 0 : 0,
4436
+ applyDensity: B,
4437
+ appearance: Re ?? void 0,
4437
4438
  adminTheme: I,
4438
- colorBy: R.colorBy,
4439
- valueFormatter: Ve,
4439
+ colorBy: z.colorBy,
4440
+ valueFormatter: Be,
4440
4441
  chartColors: a === !1 ? void 0 : i,
4441
4442
  renderer: o?.opts?.renderer,
4442
- onEvents: Xa(R.type === "singleValue" ? Ja(r, o) : r, o?.ref),
4443
+ onEvents: Xa(z.type === "singleValue" ? Ja(r, o) : r, o?.ref),
4443
4444
  className: s
4444
4445
  })
4445
4446
  })
4446
4447
  })
4447
4448
  });
4448
- } else Zt = L.chartType === c.radar ? /* @__PURE__ */ K(Ta, {
4449
+ } else Xt = L.chartType === c.radar ? /* @__PURE__ */ q(Ta, {
4449
4450
  chartType: L.chartType,
4450
- text: Ie ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4451
- }) : !Y || Rt === null ? null : (() => {
4451
+ text: Fe ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4452
+ }) : !X || Lt === null ? null : (() => {
4452
4453
  let e = [
4453
4454
  c.indianMap,
4454
4455
  c.geoBarMap,
@@ -4456,31 +4457,31 @@ var Ra = (e, t, n, r, i) => {
4456
4457
  c.geoScatterMap,
4457
4458
  c.worldMap
4458
4459
  ].includes(L.chartType);
4459
- return e && qe ? /* @__PURE__ */ K(Ta, {
4460
+ return e && Ke ? /* @__PURE__ */ q(Ta, {
4460
4461
  chartType: L.chartType,
4461
4462
  text: "Could not load the map outline. Check your connection and try again."
4462
- }) : e && !B ? /* @__PURE__ */ K(Be, {}) : L.chartType === c.singleValue ? /* @__PURE__ */ K(za, {
4463
- ...Yt,
4464
- value: Y.value,
4465
- settings: Y.settings,
4463
+ }) : e && !V ? /* @__PURE__ */ q(ze, {}) : L.chartType === c.singleValue ? /* @__PURE__ */ q(za, {
4464
+ ...Jt,
4465
+ value: X.value,
4466
+ settings: X.settings,
4466
4467
  className: s,
4467
- comparisonValue: Y.comparisonValue,
4468
- trendLineOptions: Y.trendLineOptions,
4468
+ comparisonValue: X.comparisonValue,
4469
+ trendLineOptions: X.trendLineOptions,
4469
4470
  events: r,
4470
- originalValue: Y?.originalValue,
4471
+ originalValue: X?.originalValue,
4471
4472
  variables: N,
4472
4473
  language: P,
4473
4474
  translationDictionary: F,
4474
4475
  setHoverSubHeader: Se,
4475
- renderOpts: Rt
4476
- }) : L.chartType === c.horizontalStackTable ? /* @__PURE__ */ K(Na, {
4477
- ...Yt,
4478
- data: Y.data,
4476
+ renderOpts: Lt
4477
+ }) : L.chartType === c.horizontalStackTable ? /* @__PURE__ */ q(Na, {
4478
+ ...Jt,
4479
+ data: X.data,
4479
4480
  rawData: t,
4480
4481
  error: "",
4481
4482
  isLoading: !1,
4482
4483
  tableSettings: {
4483
- ...Y.tableSettings,
4484
+ ...X.tableSettings,
4484
4485
  ...ke ? {
4485
4486
  textWrap: {
4486
4487
  isEnable: !0,
@@ -4491,7 +4492,7 @@ var Ra = (e, t, n, r, i) => {
4491
4492
  },
4492
4493
  className: s,
4493
4494
  stackCols: L.stackTableCols || [],
4494
- colors: Y.colors,
4495
+ colors: X.colors,
4495
4496
  showLabels: L.customSettings?.showStackLabels,
4496
4497
  onChangePage: o?.onChangePage,
4497
4498
  setChartSettings: o?.setChartSettings,
@@ -4505,19 +4506,19 @@ var Ra = (e, t, n, r, i) => {
4505
4506
  "bottom"
4506
4507
  ].includes(L?.labelSettings?.position) ? L?.labelSettings?.position : "bottom"
4507
4508
  },
4508
- renderOpts: Rt
4509
- }) : L.chartType === c.table ? /* @__PURE__ */ K(Ma, {
4509
+ renderOpts: Lt
4510
+ }) : L.chartType === c.table ? /* @__PURE__ */ q(Ma, {
4510
4511
  chartFieldFormats: L.customSettings?.chartFieldFormats,
4511
4512
  yAxisList: L?.yAxisList || [],
4512
- ...Yt,
4513
+ ...Jt,
4513
4514
  onChangePaginationColumnFilters: o?.onChangePaginationColumnFilters,
4514
4515
  tableColumnFilters: o?.tableColumnFilters,
4515
4516
  events: r,
4516
- data: Y.data,
4517
+ data: X.data,
4517
4518
  error: "",
4518
4519
  isLoading: !1,
4519
4520
  tableSettings: {
4520
- ...Y.tableSettings,
4521
+ ...X.tableSettings,
4521
4522
  ...ke ? {
4522
4523
  textWrap: {
4523
4524
  isEnable: !0,
@@ -4550,14 +4551,14 @@ var Ra = (e, t, n, r, i) => {
4550
4551
  isDisableChartActions: !o?.chartClickConfig?.isEnable,
4551
4552
  onDownloadData: De,
4552
4553
  isDownloading: Oe
4553
- }) : L.chartType === c.trendAnalyzer ? /* @__PURE__ */ K(ea, {
4554
- ...Yt,
4554
+ }) : L.chartType === c.trendAnalyzer ? /* @__PURE__ */ q(ea, {
4555
+ ...Jt,
4555
4556
  events: r,
4556
- data: Y.data,
4557
+ data: X.data,
4557
4558
  error: "",
4558
4559
  isLoading: !1,
4559
4560
  tableSettings: {
4560
- ...Y.tableSettings,
4561
+ ...X.tableSettings,
4561
4562
  ...ke ? {
4562
4563
  textWrap: {
4563
4564
  isEnable: !0,
@@ -4589,21 +4590,21 @@ var Ra = (e, t, n, r, i) => {
4589
4590
  isDisableChartActions: !o?.chartClickConfig?.isEnable,
4590
4591
  onDownloadData: De,
4591
4592
  isDownloading: Oe
4592
- }) : L.chartType === c.pivot ? /* @__PURE__ */ K(Pa, {
4593
- ...Yt,
4593
+ }) : L.chartType === c.pivot ? /* @__PURE__ */ q(Pa, {
4594
+ ...Jt,
4594
4595
  data: t,
4595
- pivotTableSettings: Y.pivotTableSettings,
4596
- tableSettings: Y?.tableSettings
4597
- }) : L.chartType === c.pivotV2 ? /* @__PURE__ */ K(Fa, { props: {
4598
- columns: Y?.pivotTableSettings2?.headers || [],
4596
+ pivotTableSettings: X.pivotTableSettings,
4597
+ tableSettings: X?.tableSettings
4598
+ }) : L.chartType === c.pivotV2 ? /* @__PURE__ */ q(Fa, { props: {
4599
+ columns: X?.pivotTableSettings2?.headers || [],
4599
4600
  data: t || [],
4600
- rows: Y?.pivotTableSettings2?.dimensions || [],
4601
- values: Y?.pivotTableSettings2?.measures || [],
4601
+ rows: X?.pivotTableSettings2?.dimensions || [],
4602
+ values: X?.pivotTableSettings2?.measures || [],
4602
4603
  onChartReady: o?.onChartReady,
4603
- headerSettings: Y?.pivotTableSettings2?.headerSettings,
4604
- measures: Y?.pivotTableSettings2?.aggregates || [],
4605
- isEnableStripedRows: Y?.pivotTableSettings2?.isEnableStripedRows,
4606
- dimensions: Y?.pivotTableSettings2?.dims || [],
4604
+ headerSettings: X?.pivotTableSettings2?.headerSettings,
4605
+ measures: X?.pivotTableSettings2?.aggregates || [],
4606
+ isEnableStripedRows: X?.pivotTableSettings2?.isEnableStripedRows,
4607
+ dimensions: X?.pivotTableSettings2?.dims || [],
4607
4608
  onDrillPivotTable: _,
4608
4609
  pivotDrillState: v,
4609
4610
  formatSettings: {
@@ -4616,16 +4617,16 @@ var Ra = (e, t, n, r, i) => {
4616
4617
  },
4617
4618
  isEnableTableSort: L?.tableSettings?.enableSorting,
4618
4619
  isEnableAllSort: L?.tableSettings?.isEnableAllSort,
4619
- tableSettings: Y?.tableSettings
4620
- } }) : L.chartType === c.pivotV3 ? /* @__PURE__ */ K(Ia, { props: {
4621
- columns: Y?.pivotTableSettings3?.columns || [],
4620
+ tableSettings: X?.tableSettings
4621
+ } }) : L.chartType === c.pivotV3 ? /* @__PURE__ */ q(Ia, { props: {
4622
+ columns: X?.pivotTableSettings3?.columns || [],
4622
4623
  data: t || [],
4623
- rows: Y?.pivotTableSettings3?.rows || [],
4624
+ rows: X?.pivotTableSettings3?.rows || [],
4624
4625
  onChartReady: o?.onChartReady,
4625
- headerSettings: Y?.pivotTableSettings3?.headerSettings,
4626
- measures: Y?.pivotTableSettings3?.aggregates || [],
4627
- isEnableStripedRows: Y?.pivotTableSettings2?.isEnableStripedRows,
4628
- dimensions: Y?.pivotTableSettings3?.dims || [],
4626
+ headerSettings: X?.pivotTableSettings3?.headerSettings,
4627
+ measures: X?.pivotTableSettings3?.aggregates || [],
4628
+ isEnableStripedRows: X?.pivotTableSettings2?.isEnableStripedRows,
4629
+ dimensions: X?.pivotTableSettings3?.dims || [],
4629
4630
  onDrillPivotTable: _,
4630
4631
  pivotDrillState: v,
4631
4632
  formatSettings: {
@@ -4637,128 +4638,128 @@ var Ra = (e, t, n, r, i) => {
4637
4638
  formatterOptions: L?.tableSettings?.tableNumberFormatter
4638
4639
  },
4639
4640
  aggregatedRowSettings: {
4640
- isAggregatedRow: Y?.pivotTableSettings3?.isAggregatedRow,
4641
- aggregateType: Y?.pivotTableSettings3?.aggregateType,
4642
- showAllLevels: Y?.pivotTableSettings3?.isShowAllLevels,
4643
- showNonPivotColumns: Y?.pivotTableSettings3?.isShowNonPivotColumns,
4644
- isReplaceParentOnExpand: Y?.pivotTableSettings3?.isReplaceParentOnExpand
4641
+ isAggregatedRow: X?.pivotTableSettings3?.isAggregatedRow,
4642
+ aggregateType: X?.pivotTableSettings3?.aggregateType,
4643
+ showAllLevels: X?.pivotTableSettings3?.isShowAllLevels,
4644
+ showNonPivotColumns: X?.pivotTableSettings3?.isShowNonPivotColumns,
4645
+ isReplaceParentOnExpand: X?.pivotTableSettings3?.isReplaceParentOnExpand
4645
4646
  },
4646
- tableSettings: Y?.tableSettings,
4647
- calculatedColumns: Y?.pivotTableSettings3?.calculatedColumns || [],
4648
- hiddenColumns: Y?.pivotTableSettings3?.hiddenColumns || [],
4649
- orderedColumns: Y?.pivotTableSettings3?.orderedColumns || []
4647
+ tableSettings: X?.tableSettings,
4648
+ calculatedColumns: X?.pivotTableSettings3?.calculatedColumns || [],
4649
+ hiddenColumns: X?.pivotTableSettings3?.hiddenColumns || [],
4650
+ orderedColumns: X?.pivotTableSettings3?.orderedColumns || []
4650
4651
  } }) : [
4651
4652
  c.bar,
4652
4653
  c.line,
4653
4654
  c.area,
4654
4655
  c.stackedArea,
4655
4656
  c.timeSeries
4656
- ].includes(L.chartType) && L.customSettings?.showDynamicBehaviour && !at ? /* @__PURE__ */ He(wa, {
4657
+ ].includes(L.chartType) && L.customSettings?.showDynamicBehaviour && !it ? /* @__PURE__ */ Ve(wa, {
4657
4658
  style: {
4658
4659
  width: "100%",
4659
4660
  height: "100%"
4660
4661
  },
4661
4662
  ...eo(o),
4662
- option: Tt,
4663
+ option: wt,
4663
4664
  className: s,
4664
- key: Vt,
4665
- ref: o?.ref ?? J,
4666
- onEvents: St,
4665
+ key: Bt,
4666
+ ref: o?.ref ?? Y,
4667
+ onEvents: xt,
4667
4668
  notMerge: to(L.chartType),
4668
- opts: Rt
4669
- }) : L.chartType === c.geoBarMap ? /* @__PURE__ */ K(wa, {
4669
+ opts: Lt
4670
+ }) : L.chartType === c.geoBarMap ? /* @__PURE__ */ q(wa, {
4670
4671
  style: {
4671
4672
  width: "100%",
4672
4673
  height: "100%"
4673
4674
  },
4674
4675
  ...eo(o),
4675
- option: Kt({
4676
- ...dt || Y?.geoOption,
4676
+ option: Gt({
4677
+ ...ut || X?.geoOption,
4677
4678
  animation: !0
4678
4679
  }),
4679
4680
  className: s,
4680
- onEvents: bt,
4681
+ onEvents: yt,
4681
4682
  notMerge: !0,
4682
- opts: Rt
4683
+ opts: Lt
4683
4684
  }) : [
4684
4685
  c.gaugeV2,
4685
4686
  c.linearGaugeV2,
4686
4687
  c.progressBarV2,
4687
4688
  c.funnelV2
4688
- ].includes(L.chartType) ? /* @__PURE__ */ K("div", {
4689
- ref: Qe,
4689
+ ].includes(L.chartType) ? /* @__PURE__ */ q("div", {
4690
+ ref: Ze,
4690
4691
  className: "dbn:w-full dbn:h-full dbn:flex dbn:flex-col"
4691
- }) : L?.chartType === c.gauge ? /* @__PURE__ */ K(Ta, {
4692
+ }) : L?.chartType === c.gauge ? /* @__PURE__ */ q(Ta, {
4692
4693
  chartType: L?.chartType,
4693
4694
  subText: "Please use the Gauge V2 chart instead."
4694
- }) : [c.worldMap, c.indianMap].includes(L.chartType) ? /* @__PURE__ */ q("div", {
4695
+ }) : [c.worldMap, c.indianMap].includes(L.chartType) ? /* @__PURE__ */ J("div", {
4695
4696
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4696
4697
  id: "chartContainer",
4697
- children: [Lt && Mt?.length ? /* @__PURE__ */ q(h, {
4698
+ children: [It && jt?.length ? /* @__PURE__ */ J(h, {
4698
4699
  variant: "popover",
4699
- onClick: () => Ft(!Pt),
4700
+ onClick: () => Pt(!Nt),
4700
4701
  className: $.buttonText,
4701
- children: ["Go To Geo ", Pt ? "Map >" : "Table >"]
4702
- }) : null, Pt ? /* @__PURE__ */ K(Yi, {
4703
- data: Mt,
4704
- headers: Xt
4705
- }) : /* @__PURE__ */ K(wa, {
4702
+ children: ["Go To Geo ", Nt ? "Map >" : "Table >"]
4703
+ }) : null, Nt ? /* @__PURE__ */ q(Yi, {
4704
+ data: jt,
4705
+ headers: Yt
4706
+ }) : /* @__PURE__ */ q(wa, {
4706
4707
  style: {
4707
4708
  width: "100%",
4708
- height: Wt && (T || 0) >= 6 ? "100px" : Wt && !T ? "40%" : "100%"
4709
+ height: Ut && (T || 0) >= 6 ? "100px" : Ut && !T ? "40%" : "100%"
4709
4710
  },
4710
4711
  ...eo(o),
4711
4712
  option: L.customSettings?.chartZoom?.isZoomEnabled ? {
4712
- ...wt,
4713
+ ...Ct,
4713
4714
  animation: !0
4714
4715
  } : {
4715
- ...wt,
4716
+ ...Ct,
4716
4717
  animation: !1
4717
4718
  },
4718
4719
  className: s,
4719
- ref: o?.ref ?? J,
4720
- onEvents: bt,
4720
+ ref: o?.ref ?? Y,
4721
+ onEvents: yt,
4721
4722
  notMerge: !0,
4722
- opts: Rt
4723
+ opts: Lt
4723
4724
  })]
4724
- }) : /* @__PURE__ */ K("div", {
4725
+ }) : /* @__PURE__ */ q("div", {
4725
4726
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4726
4727
  id: "chartContainer",
4727
- children: D ? /* @__PURE__ */ K(oo, {
4728
+ children: D ? /* @__PURE__ */ q(oo, {
4728
4729
  chartHeight: T,
4729
- hasDecreasedHeight: Wt,
4730
+ hasDecreasedHeight: Ut,
4730
4731
  config: o,
4731
4732
  chartOptions: L,
4732
- options: wt,
4733
+ options: Ct,
4733
4734
  className: s,
4734
- onEvents: Ct,
4735
- chartRef: o?.ref ?? J,
4736
- renderOpts: Rt
4737
- }) : /* @__PURE__ */ He(wa, {
4735
+ onEvents: St,
4736
+ chartRef: o?.ref ?? Y,
4737
+ renderOpts: Lt
4738
+ }) : /* @__PURE__ */ Ve(wa, {
4738
4739
  style: {
4739
4740
  width: "100%",
4740
- height: Wt && (T || 0) >= 6 ? "100px" : Wt && !T ? "40%" : "100%"
4741
+ height: Ut && (T || 0) >= 6 ? "100px" : Ut && !T ? "40%" : "100%"
4741
4742
  },
4742
4743
  ...eo(o),
4743
4744
  option: L.customSettings?.chartZoom?.isZoomEnabled ? {
4744
- ...wt,
4745
+ ...Ct,
4745
4746
  animation: !0
4746
4747
  } : {
4747
- ...wt,
4748
+ ...Ct,
4748
4749
  animation: !1
4749
4750
  },
4750
4751
  className: s,
4751
- key: Vt,
4752
- onEvents: Ct,
4753
- ref: o?.ref ?? J,
4752
+ key: Bt,
4753
+ onEvents: St,
4754
+ ref: o?.ref ?? Y,
4754
4755
  notMerge: to(L.chartType),
4755
- opts: Rt
4756
+ opts: Lt
4756
4757
  })
4757
4758
  });
4758
4759
  })();
4759
- return /* @__PURE__ */ K("div", {
4760
- ref: Fe,
4761
- ...R ? {
4760
+ return /* @__PURE__ */ q("div", {
4761
+ ref: Pe,
4762
+ ...z ? {
4762
4763
  "data-chart-engine": "v2",
4763
4764
  className: s,
4764
4765
  style: {
@@ -4766,7 +4767,7 @@ var Ra = (e, t, n, r, i) => {
4766
4767
  height: "100%"
4767
4768
  }
4768
4769
  } : { style: { display: "contents" } },
4769
- children: Zt
4770
+ children: Xt
4770
4771
  });
4771
4772
  });
4772
- export { Nt as a, Ot as c, ut as d, Ze as f, Lt as i, Ye as l, Ua as n, At as o, lt as p, Ma as r, Ct as s, so as t, J as u };
4773
+ export { Mt as a, Dt as c, lt as d, Xe as f, It as i, Je as l, Ua as n, kt as o, ct as p, Ma as r, St as s, so as t, Y as u };