@databrainhq/plugin 0.17.9-beta.30 → 0.17.9-beta.31

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 (42) hide show
  1. package/dist/{Accordion-D3DbH3Cx.mjs → Accordion-BhLebRAm.mjs} +32 -25
  2. package/dist/{Chart-7AGA9h2g.mjs → Chart-BLXiGOie.mjs} +361 -361
  3. package/dist/{CreateGlobalFilter-oHjA0P9O.mjs → CreateGlobalFilter-DJ75cI8r.mjs} +200 -200
  4. package/dist/{CreateMetricV2-BGDt9B3L.mjs → CreateMetricV2-DNSbMIqg.mjs} +20 -20
  5. package/dist/{DraggableItem-7fQUo0x4.mjs → DraggableItem-HJ4Wt8qx.mjs} +11 -11
  6. package/dist/{HorizontalStackTable-CH68bWy3.mjs → HorizontalStackTable-DadBH16u.mjs} +17 -17
  7. package/dist/{ManageMetricsV2-tyQYXoAT.mjs → ManageMetricsV2-DQ0F-Sxo.mjs} +3 -3
  8. package/dist/{MetricCardV2-C2n6LzkA.mjs → MetricCardV2-ndXX9kcc.mjs} +1251 -1170
  9. package/dist/{NoDataFound-N3gF0Pse.mjs → NoDataFound-C6lIIOZF.mjs} +1 -1
  10. package/dist/{NoDataState-C6hX-CHr.mjs → NoDataState-Dx5ksEt-.mjs} +2 -2
  11. package/dist/{Panel-BeWefwKs.mjs → Panel-oW--_1YF.mjs} +1 -1
  12. package/dist/{PivotTableV2-De4TXsMc.mjs → PivotTableV2-BufQEGso.mjs} +2 -2
  13. package/dist/{PivotTableV3-2nzDp4Nc.mjs → PivotTableV3-DwleqfW7.mjs} +4 -4
  14. package/dist/{Portal-C4N01WKg.mjs → Portal-CuJ3yA9x.mjs} +1222 -1200
  15. package/dist/{RadioButton-DvzkXfzO.mjs → RadioButton-BagXnWOk.mjs} +1 -1
  16. package/dist/{ScheduleEmail-PEzbadHC.mjs → ScheduleEmail-C_H0_DNM.mjs} +220 -220
  17. package/dist/{SearchMetricData-CxmDM20t.mjs → SearchMetricData-DPWkvX0c.mjs} +237 -237
  18. package/dist/{SortPanel-DQjM_vyk.mjs → SortPanel-DctP-Eyd.mjs} +110 -110
  19. package/dist/{Table-CvDTChaZ.mjs → Table-BSKvdU4q.mjs} +4 -4
  20. package/dist/{TagInputField-C9M_Ip9e.mjs → TagInputField-B09tGuSM.mjs} +6 -6
  21. package/dist/{TextAreaField-Q78INHKO.mjs → TextAreaField-CLmioFXe.mjs} +113 -113
  22. package/dist/{TimeSeriesSettings-C8lvzgja.mjs → TimeSeriesSettings-BS9LodDk.mjs} +2 -2
  23. package/dist/{cardQueryError-3MGl4pbM.mjs → cardQueryError-Jo2LkSBF.mjs} +810 -790
  24. package/dist/{chevron-down-Dxhk-Tao.mjs → chevron-down-CTH4bR6n.mjs} +107 -106
  25. package/dist/{conditionalFormatting-BuG_4wOq.mjs → conditionalFormatting-BU6BaaPb.mjs} +1 -1
  26. package/dist/{createGlobalFilter.module-DisUwLsO.mjs → createGlobalFilter.module-Cw_A7yeo.mjs} +1 -1
  27. package/dist/data.cjs +1 -1
  28. package/dist/data.mjs +1 -1
  29. package/dist/{echarts-BE7AhqVy.mjs → echarts-Dw5Z2Ho-.mjs} +2 -2
  30. package/dist/{metric.mutation-BRWn1UMi.mjs → metric.mutation-cOoqy5Bi.mjs} +1 -1
  31. package/dist/{permissions-B5UHxn_4.mjs → permissions-CxZW60Bd.mjs} +289 -261
  32. package/dist/{pluginV3Request-Dfy8fkbS.mjs → pluginV3Request-CQzo3G0-.mjs} +1 -1
  33. package/dist/{renderer-qB-6Euan.mjs → renderer-D1fTygev.mjs} +1 -1
  34. package/dist/{timeseries-Clp-TrGQ.mjs → timeseries-D_nzmvUF.mjs} +1347 -1304
  35. package/dist/{toTasteAppearance-cIHX7fPm.mjs → toTasteAppearance-C4jy9fG3.mjs} +1 -1
  36. package/dist/{useGuesTokenUsageLog-BtooXte_.mjs → useGuesTokenUsageLog-BgjAaf3E.mjs} +1 -1
  37. package/dist/{usePublishArchivedMetrics-CM4KQARj.mjs → usePublishArchivedMetrics-CM7fUNzL.mjs} +2 -2
  38. package/dist/{useQuery-D3fpbSfw.mjs → useQuery-DhtsBbBi.mjs} +1 -1
  39. package/dist/webcomponents.css +2 -2
  40. package/dist/webcomponents.es.js +483 -459
  41. package/dist/webcomponents.umd.js +153 -153
  42. package/package.json +1 -1
@@ -2,13 +2,13 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { a as e, i as t, o as n, r, t as i } from "./rolldown-runtime-C1JUX4Ur.mjs";
5
- import { $r as a, Ai as o, Ia as s, L as c, Lr as l, Qr as u, Rt as d, Sr as f, Ua as p, _n as m, a as h, dn as g, fr as _, hi as v, l as y, m as b, pr as ee, qi as x, sr as te, u as S, ua as C, vn as w, wa as T } from "./Portal-C4N01WKg.mjs";
6
- import { i as ne, n as re, r as ie, t as ae } from "./toTasteAppearance-cIHX7fPm.mjs";
7
- import { $ as oe, A as E, G as D, J as O, O as k, Q as A, S as j, X as M, Y as se, Z as ce } from "./option-DX8yNc39.mjs";
8
- import { a as le, i as ue, n as de, o as fe, r as pe } from "./chevron-down-Dxhk-Tao.mjs";
9
- import { _ as me, m as he, p as ge, r as _e, t as ve } from "./timeseries-Clp-TrGQ.mjs";
10
- import { n as N } from "./text-CtrvkDIo.mjs";
11
- import { $ as P, $r as ye, Ar as be, C as xe, Cs as Se, D as Ce, Do as we, Dr as Te, E as Ee, Ec as F, Er as I, Fc as De, Fs as Oe, Ft as ke, Gt as Ae, Hi as je, Ii as Me, Ka as Ne, Kr as L, L as Pe, Ln as Fe, M as Ie, Nc as Le, O as Re, Oo as ze, Or as Be, Pi as Ve, Qa as He, Qr as Ue, Rc as We, S as Ge, So as Ke, T as R, Tc as qe, Vc as Je, Vr as Ye, Wa as Xe, Wc as Ze, Xa as Qe, Xc as $e, Xn as et, Xr as tt, Ya as nt, Yr as z, Za as rt, Zr as it, _ as at, _r as ot, a as st, ai as ct, b as lt, bc as ut, bo as dt, br as ft, c as pt, d as mt, dc as ht, dr as gt, ei as _t, el as vt, eo as yt, er as bt, et as xt, f as St, fc as Ct, fi as wt, fr as Tt, g as Et, gc as Dt, go as Ot, h as kt, hc as At, ho as jt, i as Mt, ii as Nt, it as Pt, jr as Ft, kc as It, l as Lt, lc as Rt, m as zt, mo as Bt, n as Vt, ni as Ht, no as Ut, nt as Wt, o as Gt, oi as Kt, p as qt, po as Jt, qn as Yt, qr as Xt, r as Zt, ri as Qt, ro as $t, rs as en, s as tn, t as nn, ti as rn, tl as an, u as on, ur as sn, v as cn, vc as ln, vn as un, vo as dn, vr as fn, w as pn, wc as mn, wo as hn, x as gn, xc as _n, xo as vn, xr as yn, y as bn, yo as xn, zc as Sn, zi as Cn } from "./echarts-CrmHGsP0.mjs";
5
+ import { $r as a, Ai as o, Ia as s, L as c, Lr as l, Qr as u, Rt as d, Sr as f, Ua as p, _n as m, a as h, cr as g, dn as _, hi as v, l as y, m as b, nr as ee, qi as x, sr as S, u as C, ua as w, vn as T, wa as E } from "./Portal-CuJ3yA9x.mjs";
6
+ import { i as te, n as ne, r as re, t as ie } from "./toTasteAppearance-C4jy9fG3.mjs";
7
+ import { $ as ae, A as D, G as O, J as k, O as A, Q as j, S as M, X as N, Y as oe, Z as se } from "./option-DX8yNc39.mjs";
8
+ import { a as ce, i as le, n as ue, o as de, r as fe } from "./chevron-down-CTH4bR6n.mjs";
9
+ import { m as pe, p as me, r as he, t as ge, v as _e } from "./timeseries-D_nzmvUF.mjs";
10
+ import { n as P } from "./text-CtrvkDIo.mjs";
11
+ import { $ as ve, $r as ye, Ar as be, C as xe, Cs as Se, D as Ce, Do as we, Dr as Te, E as Ee, Ec as F, Er as I, Fc as De, Fs as Oe, Ft as ke, Gt as Ae, Hi as je, Ii as Me, Ka as Ne, Kr as L, L as Pe, Ln as Fe, M as Ie, Nc as Le, O as Re, Oo as ze, Or as Be, Pi as Ve, Qa as He, Qr as Ue, Rc as We, S as Ge, So as Ke, T as R, Tc as qe, Vc as Je, Vr as Ye, Wa as Xe, Wc as Ze, Xa as Qe, Xc as $e, Xn as et, Xr as tt, Ya as nt, Yr as z, Za as rt, Zr as it, _ as at, _r as ot, a as st, ai as ct, b as lt, bc as ut, bo as dt, br as ft, c as pt, d as mt, dc as ht, dr as gt, ei as _t, el as vt, eo as yt, er as bt, et as xt, f as St, fc as Ct, fi as wt, fr as Tt, g as Et, gc as Dt, go as Ot, h as kt, hc as At, ho as jt, i as Mt, ii as Nt, it as Pt, jr as Ft, kc as It, l as Lt, lc as Rt, m as zt, mo as Bt, n as Vt, ni as Ht, no as Ut, nt as Wt, o as Gt, oi as Kt, p as qt, po as Jt, qn as Yt, qr as Xt, r as Zt, ri as Qt, ro as $t, rs as en, s as tn, t as nn, ti as rn, tl as an, u as on, ur as sn, v as cn, vc as ln, vn as un, vo as dn, vr as fn, w as pn, wc as mn, wo as hn, x as gn, xc as _n, xo as vn, xr as yn, y as bn, yo as xn, zc as Sn, zi as Cn } from "./echarts-CrmHGsP0.mjs";
12
12
  import { t as wn } from "./SeriesData-Bv5A1N4c.mjs";
13
13
  import { t as Tn } from "./createDimensions-S6mCgFoA.mjs";
14
14
  import { t as En } from "./createSeriesData-Be6hvJRM.mjs";
@@ -19,11 +19,11 @@ import { n as Pn } from "./axisNiceTicks-CggqNl9O.mjs";
19
19
  import { t as Fn } from "./extension-CLVYoN7B.mjs";
20
20
  import { c as In } from "./install-C_kPiY2Z.mjs";
21
21
  import { n as Ln } from "./cardActions-BLBLsjcd.mjs";
22
- import { t as B } from "./NoDataFound-N3gF0Pse.mjs";
23
- import { n as Rn, t as zn } from "./Accordion-D3DbH3Cx.mjs";
22
+ import { t as B } from "./NoDataFound-C6lIIOZF.mjs";
23
+ import { n as Rn, t as zn } from "./Accordion-BhLebRAm.mjs";
24
24
  import { n as Bn, t as Vn } from "./esm-B2ERA78g.mjs";
25
25
  import { a as Hn, i as Un, n as Wn, o as Gn, r as Kn, t as qn } from "./dist-DHNl58qD.mjs";
26
- import { t as Jn } from "./conditionalFormatting-BuG_4wOq.mjs";
26
+ import { t as Jn } from "./conditionalFormatting-BU6BaaPb.mjs";
27
27
  import { t as Yn } from "./Loader-CHJMbWv0.mjs";
28
28
  import { t as V } from "./list.module-DmT9azvq.mjs";
29
29
  import { n as Xn, o as Zn } from "./canvasTeardown-CyI2ZHcq.mjs";
@@ -182,7 +182,7 @@ var Sr = /* @__PURE__ */ r({
182
182
  extendComponentModel: () => vr,
183
183
  extendComponentView: () => yr,
184
184
  extendSeriesModel: () => br,
185
- format: () => he,
185
+ format: () => pe,
186
186
  getCoordinateSystemDimensions: () => pt,
187
187
  getInstanceByDom: () => Lt,
188
188
  getInstanceById: () => on,
@@ -212,7 +212,7 @@ var Sr = /* @__PURE__ */ r({
212
212
  registerVisual: () => Ee,
213
213
  setCanvasCreator: () => Ce,
214
214
  setPlatformAPI: () => vt,
215
- throttle: () => P,
215
+ throttle: () => ve,
216
216
  time: () => hr,
217
217
  use: () => Fn,
218
218
  util: () => _r,
@@ -224,8 +224,8 @@ var Sr = /* @__PURE__ */ r({
224
224
  //#endregion
225
225
  //#region src/charts/chartMinHeight.ts
226
226
  function Cr(e) {
227
- let t = e ? le[e] : void 0;
228
- return t ? M(t) : 200;
227
+ let t = e ? ce[e] : void 0;
228
+ return t ? N(t) : 200;
229
229
  }
230
230
  //#endregion
231
231
  //#region src/charts/echarts6Compatibility.ts
@@ -253,9 +253,9 @@ var wr = /* @__PURE__ */ new WeakMap(), Tr = (e) => typeof e == "object" && !!e
253
253
  };
254
254
  return e.grid !== void 0 && (n.grid = Er(e.grid, Dr)), e.xAxis !== void 0 && (n.xAxis = Er(e.xAxis, Or)), e.yAxis !== void 0 && (n.yAxis = Er(e.yAxis, Or)), wr.set(e, n), n;
255
255
  }, Ar = [
256
- T.pie,
257
- T.doughnut,
258
- T.rose
256
+ E.pie,
257
+ E.doughnut,
258
+ E.rose
259
259
  ], jr = [
260
260
  "top-left",
261
261
  "top-center",
@@ -287,7 +287,7 @@ function Ir(e) {
287
287
  if (!t || !Ar.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
288
288
  let i = Fr(e);
289
289
  if (i.show === !1) return null;
290
- let a = D({
290
+ let a = O({
291
291
  labels: r,
292
292
  layout: n,
293
293
  legend: i,
@@ -295,7 +295,7 @@ function Ir(e) {
295
295
  directLabelling: !0
296
296
  });
297
297
  if (!a.show) return null;
298
- let o = k({
298
+ let o = A({
299
299
  legendRoom: !0,
300
300
  layout: n,
301
301
  outsideLabels: e.outsideLabels !== !1,
@@ -338,7 +338,7 @@ function Vr(e, t, n) {
338
338
  if (!r || !Ar.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
339
339
  let a = e.filter(zr);
340
340
  if (a.length === 0 || n.centerX !== void 0 && !/%$/.test(n.centerX)) return null;
341
- let o = Math.max(...e.map((e) => Rr(e?.radius))), s = a[0], c = j({
341
+ let o = Math.max(...e.map((e) => Rr(e?.radius))), s = a[0], c = M({
342
342
  layout: i,
343
343
  outerRadius: o * n.scale,
344
344
  centerX: n.centerX,
@@ -390,7 +390,7 @@ function Hr(e, t) {
390
390
  ...e,
391
391
  ...o ? { center: o.center } : {},
392
392
  ...u ? { center: [(o?.center ?? e.center ?? ["50%", "50%"])[0], "44%"] } : {},
393
- ...e.radius !== void 0 && d < 1 ? { radius: E(e.radius, d) } : {},
393
+ ...e.radius !== void 0 && d < 1 ? { radius: D(e.radius, d) } : {},
394
394
  ...c?.hide && zr(e) ? {
395
395
  label: {
396
396
  ...e.label,
@@ -1424,7 +1424,7 @@ var bo = H.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n
1424
1424
  let e = ki(o, [], ee.mask ? ee.mask.pathname : "/", !0);
1425
1425
  h !== "/" && (e.pathname = e.pathname === "/" ? h : X([h, e.pathname])), x = g.createHref(e);
1426
1426
  }
1427
- let [te, S, C] = fo(n, p), w = To(l, {
1427
+ let [S, C, w] = fo(n, p), T = To(l, {
1428
1428
  replace: a,
1429
1429
  mask: o,
1430
1430
  state: s,
@@ -1435,19 +1435,19 @@ var bo = H.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n
1435
1435
  defaultShouldRevalidate: f,
1436
1436
  useTransitions: _
1437
1437
  });
1438
- function T(t) {
1439
- e && e(t), t.defaultPrevented || w(t);
1438
+ function E(t) {
1439
+ e && e(t), t.defaultPrevented || T(t);
1440
1440
  }
1441
- let ne = !(y.isExternal || i), re = /* @__PURE__ */ H.createElement("a", {
1441
+ let te = !(y.isExternal || i), ne = /* @__PURE__ */ H.createElement("a", {
1442
1442
  ...p,
1443
- ...C,
1444
- href: (ne ? x : void 0) || y.absoluteURL || b,
1445
- onClick: ne ? T : e,
1446
- ref: vo(m, S),
1443
+ ...w,
1444
+ href: (te ? x : void 0) || y.absoluteURL || b,
1445
+ onClick: te ? E : e,
1446
+ ref: vo(m, C),
1447
1447
  target: c,
1448
1448
  "data-discover": !v && t === "render" ? "true" : void 0
1449
1449
  });
1450
- return te && !v ? /* @__PURE__ */ H.createElement(H.Fragment, null, re, /* @__PURE__ */ H.createElement(mo, { page: b })) : re;
1450
+ return S && !v ? /* @__PURE__ */ H.createElement(H.Fragment, null, ne, /* @__PURE__ */ H.createElement(mo, { page: b })) : ne;
1451
1451
  });
1452
1452
  bo.displayName = "Link";
1453
1453
  var xo = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t = !1, className: n = "", end: r = !1, style: i, to: a, viewTransition: o, children: s, ...c }, l) {
@@ -1457,20 +1457,20 @@ var xo = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t =
1457
1457
  isActive: b,
1458
1458
  isPending: ee,
1459
1459
  isTransitioning: h
1460
- }, te = b ? e : void 0, S;
1461
- S = typeof n == "function" ? n(x) : [
1460
+ }, S = b ? e : void 0, C;
1461
+ C = typeof n == "function" ? n(x) : [
1462
1462
  n,
1463
1463
  b ? "active" : null,
1464
1464
  ee ? "pending" : null,
1465
1465
  h ? "transitioning" : null
1466
1466
  ].filter(Boolean).join(" ");
1467
- let C = typeof i == "function" ? i(x) : i;
1467
+ let w = typeof i == "function" ? i(x) : i;
1468
1468
  return /* @__PURE__ */ H.createElement(bo, {
1469
1469
  ...c,
1470
- "aria-current": te,
1471
- className: S,
1470
+ "aria-current": S,
1471
+ className: C,
1472
1472
  ref: l,
1473
- style: C,
1473
+ style: w,
1474
1474
  to: a,
1475
1475
  viewTransition: o
1476
1476
  }, typeof s == "function" ? s(x) : s);
@@ -1603,12 +1603,12 @@ function Ao(e, { relative: t } = {}) {
1603
1603
  }
1604
1604
  //#endregion
1605
1605
  //#region src/components/List/index.tsx
1606
- var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: m, isDisableMoreOption: g, isEnableSelectAll: v, onSelectAll: y, onDeselectAll: x, isAllSelected: te, parent: C, extraValues: w, extraHeaderText: T, onTourClick: ne, onRowClick: re, onRowHover: ie, onMouseOut: ae, buttonContent: oe, noDataSubHeading: E, isDatasourceList: D, stateKey: O, onCreate: k, isDemoDatasource: A, isOpenInNewTab: j, noDataProps: M }) => {
1607
- let se = ha(), [ce, le] = K(o), [ue, de] = K(""), [fe, pe] = K(""), me = (e) => {
1608
- if (C) switch (C) {
1606
+ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: m, isDisableMoreOption: _, isEnableSelectAll: v, onSelectAll: y, onDeselectAll: ee, isAllSelected: x, parent: w, extraValues: T, extraHeaderText: E, onTourClick: te, onRowClick: ne, onRowHover: re, onMouseOut: ie, buttonContent: ae, noDataSubHeading: D, isDatasourceList: O, stateKey: k, onCreate: A, isDemoDatasource: j, isOpenInNewTab: M, noDataProps: N }) => {
1607
+ let oe = ha(), [se, ce] = K(o), [le, ue] = K(""), [de, fe] = K(""), pe = (e) => {
1608
+ if (w) switch (w) {
1609
1609
  case "DASHBOARD":
1610
- case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${w?.workspaceId}${w?.dataMartId ? `&dmId=${w?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
1611
- case "METRIC": return `/metric/${e?.metric?.id}/?wid=${e?.workspaceId}${w?.dataMartId ? `&dmId=${w?.dataMartId}` : ""}${e?.dashboardId ? `&dashboardId=${e?.dashboardId}` : ""}&client=${e?.metric?.clientId}&parent=homepage&isPublished=${e?.isPublished}`;
1610
+ case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${T?.workspaceId}${T?.dataMartId ? `&dmId=${T?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
1611
+ case "METRIC": return `/metric/${e?.metric?.id}/?wid=${e?.workspaceId}${T?.dataMartId ? `&dmId=${T?.dataMartId}` : ""}${e?.dashboardId ? `&dashboardId=${e?.dashboardId}` : ""}&client=${e?.metric?.clientId}&parent=homepage&isPublished=${e?.isPublished}`;
1612
1612
  case "DATASOURCE": return `/integration/${e.integrationId}?id=${e.id}`;
1613
1613
  case "DATAAPP": return `embedInfo/${e.id}`;
1614
1614
  case "DASHBOARD_EMBED_ACCESS": return e?.embedType === "dashboard" ? `embedAccessControl/${e?.id}?dataAppId=${e?.dataAppId}&wid=${e?.workspaceId}` : null;
@@ -1618,8 +1618,8 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1618
1618
  default: return null;
1619
1619
  }
1620
1620
  return null;
1621
- }, he = () => {
1622
- if (O) switch (O) {
1621
+ }, me = () => {
1622
+ if (k) switch (k) {
1623
1623
  case "datasource": return /* @__PURE__ */ q("div", {
1624
1624
  className: "dbn:flex dbn:justify-center dbn:items-center",
1625
1625
  style: { height: "270px" },
@@ -1638,7 +1638,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1638
1638
  to: "/configuration",
1639
1639
  children: /* @__PURE__ */ J("div", {
1640
1640
  className: V.createBtn,
1641
- children: [/* @__PURE__ */ q(_, {
1641
+ children: [/* @__PURE__ */ q(S, {
1642
1642
  size: "sm",
1643
1643
  name: "plus"
1644
1644
  }), /* @__PURE__ */ q(p, {
@@ -1665,8 +1665,8 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1665
1665
  isNoDatamart: !0
1666
1666
  }), /* @__PURE__ */ J("div", {
1667
1667
  className: V.createBtn,
1668
- onClick: k,
1669
- children: [/* @__PURE__ */ q(_, {
1668
+ onClick: A,
1669
+ children: [/* @__PURE__ */ q(S, {
1670
1670
  size: "sm",
1671
1671
  name: "plus"
1672
1672
  }), /* @__PURE__ */ q(p, {
@@ -1692,8 +1692,8 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1692
1692
  isNoDatamart: !0
1693
1693
  }), /* @__PURE__ */ J("div", {
1694
1694
  className: V.createBtn,
1695
- onClick: k,
1696
- children: [/* @__PURE__ */ q(_, {
1695
+ onClick: A,
1696
+ children: [/* @__PURE__ */ q(S, {
1697
1697
  size: "sm",
1698
1698
  name: "plus"
1699
1699
  }), /* @__PURE__ */ q(p, {
@@ -1722,22 +1722,22 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1722
1722
  });
1723
1723
  case "dashboard": return /* @__PURE__ */ q("div", {
1724
1724
  className: "dbn:flex dbn:justify-center dbn:items-center",
1725
- style: { height: A ? "200px" : "calc(100% - 50px)" },
1725
+ style: { height: j ? "200px" : "calc(100% - 50px)" },
1726
1726
  children: /* @__PURE__ */ J("div", {
1727
1727
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1728
1728
  children: [/* @__PURE__ */ q(B, {
1729
1729
  message: "No dashboards here yet.",
1730
1730
  subText: "Create your first dashboard to get started.",
1731
- height: A ? "0px" : "140px",
1731
+ height: j ? "0px" : "140px",
1732
1732
  width: "216px",
1733
1733
  msgGap: "24px",
1734
1734
  subTextGap: "6px",
1735
1735
  msgVariant: "sec-heading-4",
1736
1736
  isNoDashboard: !0
1737
- }), C === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1737
+ }), w === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1738
1738
  className: V.createBtn,
1739
- onClick: k,
1740
- children: [/* @__PURE__ */ q(_, {
1739
+ onClick: A,
1740
+ children: [/* @__PURE__ */ q(S, {
1741
1741
  size: "sm",
1742
1742
  name: "plus"
1743
1743
  }), /* @__PURE__ */ q(p, {
@@ -1749,22 +1749,22 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1749
1749
  });
1750
1750
  case "metric": return /* @__PURE__ */ q("div", {
1751
1751
  className: "dbn:flex dbn:justify-center dbn:items-center",
1752
- style: { height: A ? "200px" : "calc(100% - 50px)" },
1752
+ style: { height: j ? "200px" : "calc(100% - 50px)" },
1753
1753
  children: /* @__PURE__ */ J("div", {
1754
1754
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1755
1755
  children: [/* @__PURE__ */ q(B, {
1756
1756
  message: "No metrics here yet.",
1757
1757
  subText: "Start by adding a metric to build your dashboard.",
1758
- height: A ? "0px" : "140px",
1758
+ height: j ? "0px" : "140px",
1759
1759
  width: "216px",
1760
1760
  msgGap: "24px",
1761
1761
  subTextGap: "6px",
1762
1762
  msgVariant: "sec-heading-4",
1763
1763
  isNoMetric: !0
1764
- }), C && /* @__PURE__ */ J("div", {
1764
+ }), w && /* @__PURE__ */ J("div", {
1765
1765
  className: V.createBtn,
1766
- onClick: k,
1767
- children: [/* @__PURE__ */ q(_, {
1766
+ onClick: A,
1767
+ children: [/* @__PURE__ */ q(S, {
1768
1768
  size: "sm",
1769
1769
  name: "plus"
1770
1770
  }), /* @__PURE__ */ q(p, {
@@ -1776,22 +1776,22 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1776
1776
  });
1777
1777
  case "dashboard-search": return /* @__PURE__ */ q("div", {
1778
1778
  className: "dbn:flex dbn:justify-center dbn:items-center",
1779
- style: { height: A ? "200px" : "calc(100% - 50px)" },
1779
+ style: { height: j ? "200px" : "calc(100% - 50px)" },
1780
1780
  children: /* @__PURE__ */ J("div", {
1781
1781
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1782
1782
  children: [/* @__PURE__ */ q(B, {
1783
1783
  message: "No results found.",
1784
1784
  subText: "Try adjusting your search or create a new dashboard.",
1785
- height: A ? "0px" : "140px",
1785
+ height: j ? "0px" : "140px",
1786
1786
  width: "216px",
1787
1787
  msgGap: "24px",
1788
1788
  subTextGap: "6px",
1789
1789
  msgVariant: "sec-heading-4",
1790
1790
  isNoMatchedMetric: !0
1791
- }), C === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1791
+ }), w === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1792
1792
  className: V.createBtn,
1793
- onClick: k,
1794
- children: [/* @__PURE__ */ q(_, {
1793
+ onClick: A,
1794
+ children: [/* @__PURE__ */ q(S, {
1795
1795
  size: "sm",
1796
1796
  name: "plus"
1797
1797
  }), /* @__PURE__ */ q(p, {
@@ -1803,22 +1803,22 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1803
1803
  });
1804
1804
  case "metric-search": return /* @__PURE__ */ q("div", {
1805
1805
  className: "dbn:flex dbn:justify-center dbn:items-center",
1806
- style: { height: A ? "200px" : "calc(100% - 50px)" },
1806
+ style: { height: j ? "200px" : "calc(100% - 50px)" },
1807
1807
  children: /* @__PURE__ */ J("div", {
1808
1808
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1809
1809
  children: [/* @__PURE__ */ q(B, {
1810
1810
  message: "No results found.",
1811
1811
  subText: "Try adjusting your search or create a new metric.",
1812
- height: A ? "0px" : "140px",
1812
+ height: j ? "0px" : "140px",
1813
1813
  width: "216px",
1814
1814
  msgGap: "24px",
1815
1815
  subTextGap: "6px",
1816
1816
  msgVariant: "sec-heading-4",
1817
1817
  isNoMatchedMetric: !0
1818
- }), C && /* @__PURE__ */ J("div", {
1818
+ }), w && /* @__PURE__ */ J("div", {
1819
1819
  className: V.createBtn,
1820
- onClick: k,
1821
- children: [/* @__PURE__ */ q(_, {
1820
+ onClick: A,
1821
+ children: [/* @__PURE__ */ q(S, {
1822
1822
  size: "sm",
1823
1823
  name: "plus"
1824
1824
  }), /* @__PURE__ */ q(p, {
@@ -1912,8 +1912,8 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1912
1912
  default: return null;
1913
1913
  }
1914
1914
  return null;
1915
- }, ge = () => {
1916
- if (O) switch (O) {
1915
+ }, he = () => {
1916
+ if (k) switch (k) {
1917
1917
  case "datasource": return /* @__PURE__ */ J(sr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1918
1918
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
1919
1919
  children: [
@@ -1924,9 +1924,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1924
1924
  }),
1925
1925
  /* @__PURE__ */ q(zn, {
1926
1926
  header: "What is a Data Source?",
1927
- isOpen: fe === "datasource",
1927
+ isOpen: de === "datasource",
1928
1928
  setIsOpen: () => {
1929
- pe((e) => e === "datasource" ? "" : "datasource");
1929
+ fe((e) => e === "datasource" ? "" : "datasource");
1930
1930
  },
1931
1931
  content: /* @__PURE__ */ q("div", {
1932
1932
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -1940,9 +1940,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1940
1940
  }, "datasource"),
1941
1941
  /* @__PURE__ */ q(zn, {
1942
1942
  header: "How to set up a Data Source?",
1943
- isOpen: fe === "datasource-setup",
1943
+ isOpen: de === "datasource-setup",
1944
1944
  setIsOpen: () => {
1945
- pe((e) => e === "datasource-setup" ? "" : "datasource-setup");
1945
+ fe((e) => e === "datasource-setup" ? "" : "datasource-setup");
1946
1946
  },
1947
1947
  content: /* @__PURE__ */ J("div", {
1948
1948
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-end dbn:-top-3 dbn:relative",
@@ -1967,7 +1967,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1967
1967
  to: "https://docs.usedatabrain.com/guides/onboarding-and-configuration/add-a-data-source",
1968
1968
  children: /* @__PURE__ */ q(s, {
1969
1969
  variant: "popover",
1970
- leftIcon: /* @__PURE__ */ q(_, {
1970
+ leftIcon: /* @__PURE__ */ q(S, {
1971
1971
  name: "new-window",
1972
1972
  color: "cta"
1973
1973
  }),
@@ -1990,9 +1990,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1990
1990
  }),
1991
1991
  /* @__PURE__ */ q(zn, {
1992
1992
  header: "What are Data Apps?",
1993
- isOpen: fe === "dataapp",
1993
+ isOpen: de === "dataapp",
1994
1994
  setIsOpen: () => {
1995
- pe((e) => e === "dataapp" ? "" : "dataapp");
1995
+ fe((e) => e === "dataapp" ? "" : "dataapp");
1996
1996
  },
1997
1997
  content: /* @__PURE__ */ q("div", {
1998
1998
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -2006,9 +2006,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2006
2006
  }, "dataapp"),
2007
2007
  /* @__PURE__ */ q(zn, {
2008
2008
  header: "How to set up a Data App?",
2009
- isOpen: fe === "dataapp-setup",
2009
+ isOpen: de === "dataapp-setup",
2010
2010
  setIsOpen: () => {
2011
- pe((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
2011
+ fe((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
2012
2012
  },
2013
2013
  content: /* @__PURE__ */ J("div", {
2014
2014
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -2035,7 +2035,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2035
2035
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-data-app",
2036
2036
  children: /* @__PURE__ */ q(s, {
2037
2037
  variant: "popover",
2038
- leftIcon: /* @__PURE__ */ q(_, {
2038
+ leftIcon: /* @__PURE__ */ q(S, {
2039
2039
  name: "new-window",
2040
2040
  color: "cta"
2041
2041
  }),
@@ -2058,9 +2058,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2058
2058
  }),
2059
2059
  /* @__PURE__ */ q(zn, {
2060
2060
  header: "What is a Data Mart?",
2061
- isOpen: fe === "datamart",
2061
+ isOpen: de === "datamart",
2062
2062
  setIsOpen: () => {
2063
- pe((e) => e === "datamart" ? "" : "datamart");
2063
+ fe((e) => e === "datamart" ? "" : "datamart");
2064
2064
  },
2065
2065
  content: /* @__PURE__ */ q("div", {
2066
2066
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -2074,9 +2074,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2074
2074
  }, "datamart"),
2075
2075
  /* @__PURE__ */ q(zn, {
2076
2076
  header: "How to set up a Data Mart?",
2077
- isOpen: fe === "datamart-setup",
2077
+ isOpen: de === "datamart-setup",
2078
2078
  setIsOpen: () => {
2079
- pe((e) => e === "datamart-setup" ? "" : "datamart-setup");
2079
+ fe((e) => e === "datamart-setup" ? "" : "datamart-setup");
2080
2080
  },
2081
2081
  content: /* @__PURE__ */ J("div", {
2082
2082
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -2103,7 +2103,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2103
2103
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-datamart",
2104
2104
  children: /* @__PURE__ */ q(s, {
2105
2105
  variant: "popover",
2106
- leftIcon: /* @__PURE__ */ q(_, {
2106
+ leftIcon: /* @__PURE__ */ q(S, {
2107
2107
  name: "new-window",
2108
2108
  color: "cta"
2109
2109
  }),
@@ -2126,9 +2126,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2126
2126
  }),
2127
2127
  /* @__PURE__ */ q(zn, {
2128
2128
  header: "What is a Semantic Layer?",
2129
- isOpen: fe === "semantic",
2129
+ isOpen: de === "semantic",
2130
2130
  setIsOpen: () => {
2131
- pe((e) => e === "semantic" ? "" : "semantic");
2131
+ fe((e) => e === "semantic" ? "" : "semantic");
2132
2132
  },
2133
2133
  content: /* @__PURE__ */ q("div", {
2134
2134
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -2142,9 +2142,9 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2142
2142
  }, "semantic"),
2143
2143
  /* @__PURE__ */ q(zn, {
2144
2144
  header: "How to set up a Semantic Layer?",
2145
- isOpen: fe === "semantic-setup",
2145
+ isOpen: de === "semantic-setup",
2146
2146
  setIsOpen: () => {
2147
- pe((e) => e === "semantic-setup" ? "" : "semantic-setup");
2147
+ fe((e) => e === "semantic-setup" ? "" : "semantic-setup");
2148
2148
  },
2149
2149
  content: /* @__PURE__ */ J("div", {
2150
2150
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
@@ -2171,7 +2171,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2171
2171
  to: "https://docs.usedatabrain.com/guides/datasources/semantic-layer",
2172
2172
  children: /* @__PURE__ */ q(s, {
2173
2173
  variant: "popover",
2174
- leftIcon: /* @__PURE__ */ q(_, {
2174
+ leftIcon: /* @__PURE__ */ q(S, {
2175
2175
  name: "new-window",
2176
2176
  color: "cta"
2177
2177
  }),
@@ -2187,14 +2187,14 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2187
2187
  default: return null;
2188
2188
  }
2189
2189
  return null;
2190
- }, _e = G(null);
2190
+ }, ge = G(null);
2191
2191
  return U(() => {
2192
- m && f && _e.current && _e.current.scrollTo({
2192
+ m && f && ge.current && ge.current.scrollTo({
2193
2193
  top: 0,
2194
2194
  behavior: "auto"
2195
2195
  });
2196
2196
  }, [f]), /* @__PURE__ */ J(sr, { children: [/* @__PURE__ */ J("div", {
2197
- ref: _e,
2197
+ ref: ge,
2198
2198
  className: `${V[`container-${n}`]} ${a}`,
2199
2199
  children: [
2200
2200
  c ? /* @__PURE__ */ q("div", {
@@ -2204,58 +2204,58 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2204
2204
  tableRows: 4
2205
2205
  })
2206
2206
  }) : null,
2207
- !c && t.length === 0 && !O ? /* @__PURE__ */ q("div", {
2207
+ !c && t.length === 0 && !k ? /* @__PURE__ */ q("div", {
2208
2208
  className: V.noData,
2209
2209
  children: /* @__PURE__ */ q(B, {
2210
2210
  message: r,
2211
- subText: E,
2212
- children: oe,
2213
- ...M
2211
+ subText: D,
2212
+ children: ae,
2213
+ ...N
2214
2214
  })
2215
2215
  }) : null,
2216
- !c && (t.length || O) ? /* @__PURE__ */ J("table", {
2216
+ !c && (t.length || k) ? /* @__PURE__ */ J("table", {
2217
2217
  className: `${V.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2218
2218
  children: [/* @__PURE__ */ q("thead", {
2219
2219
  className: `${V[`headers-${n}`]} ${t.length === 0 ? V[`headers-${n}-nodata`] : ""} dbn:z-50`,
2220
2220
  children: /* @__PURE__ */ q("tr", { children: e?.map((t, n) => /* @__PURE__ */ J("th", {
2221
2221
  colSpan: t.colSpan,
2222
- className: `${T ? V.headerCol2 : V.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2222
+ className: `${E ? V.headerCol2 : V.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2223
2223
  children: [/* @__PURE__ */ J("span", {
2224
2224
  className: `${v && n === 0 ? "dbn:flex dbn:gap-2" : ""}`,
2225
- children: [n === 0 && v ? /* @__PURE__ */ q(S, {
2225
+ children: [n === 0 && v ? /* @__PURE__ */ q(C, {
2226
2226
  id: `${t?.name?.replaceAll(" ", "-")?.toLowerCase()}-header-checkbox`,
2227
2227
  onChange: (e) => {
2228
- e.target.checked ? y?.() : x?.();
2228
+ e.target.checked ? y?.() : ee?.();
2229
2229
  },
2230
- checked: te
2230
+ checked: x
2231
2231
  }) : null, /* @__PURE__ */ q(p, {
2232
2232
  variant: "sec-heading-6",
2233
2233
  color: "gray",
2234
2234
  children: t.headerCell || t.name
2235
2235
  })]
2236
- }), n === e.length - 1 && T ? /* @__PURE__ */ q(p, {
2236
+ }), n === e.length - 1 && E ? /* @__PURE__ */ q(p, {
2237
2237
  variant: "body-text-3",
2238
2238
  color: "cta",
2239
- children: T
2239
+ children: E
2240
2240
  }) : null]
2241
2241
  }, t.name)) })
2242
2242
  }), /* @__PURE__ */ q("tbody", {
2243
2243
  className: V.body,
2244
- children: (g ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ q("tr", {
2244
+ children: (_ ? t : t.slice(0, se))?.map((t, r) => /* @__PURE__ */ q("tr", {
2245
2245
  "data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
2246
- className: `${V[`row-${n}`]} ${C || ne || ie || re ? "dbn:cursor-pointer" : ""}`,
2246
+ className: `${V[`row-${n}`]} ${w || te || re || ne ? "dbn:cursor-pointer" : ""}`,
2247
2247
  onClick: (e) => {
2248
- ne && ne(t), re && re(t);
2249
- let n = me(t);
2250
- n && ((e.ctrlKey || e.metaKey) && j ? window.open(n, "_blank") : O ? se(n, { state: { [O]: t } }) : se(n));
2248
+ te && te(t), ne && ne(t);
2249
+ let n = pe(t);
2250
+ n && ((e.ctrlKey || e.metaKey) && M ? window.open(n, "_blank") : k ? oe(n, { state: { [k]: t } }) : oe(n));
2251
2251
  },
2252
2252
  onContextMenu: (e) => {
2253
- let n = me(t);
2254
- n && j && (e.preventDefault(), window.open(n, "_blank"));
2253
+ let n = pe(t);
2254
+ n && M && (e.preventDefault(), window.open(n, "_blank"));
2255
2255
  },
2256
2256
  "data-test-title": "table-rows",
2257
- onMouseOver: () => ie?.(t),
2258
- onMouseOut: () => ae?.(),
2257
+ onMouseOver: () => re?.(t),
2258
+ onMouseOut: () => ie?.(),
2259
2259
  children: e?.map((r, i) => {
2260
2260
  let a = r.columnKey === "invitationToken" && !!t[r.columnKey];
2261
2261
  return /* @__PURE__ */ q("td", {
@@ -2265,7 +2265,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2265
2265
  className: V[`col-${n}-cell`],
2266
2266
  children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ J("div", {
2267
2267
  className: "dbn:flex dbn:gap-2",
2268
- children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(ee, {
2268
+ children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(g, {
2269
2269
  name: r.columnKey?.toLowerCase() === "type" ? t.type?.toString() : t.dbName?.toString()?.toLowerCase(),
2270
2270
  width: 20
2271
2271
  }), 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]) || "-"]
@@ -2280,18 +2280,18 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2280
2280
  variant: "tertiary",
2281
2281
  type: "button",
2282
2282
  onClick: () => {
2283
- navigator.clipboard.writeText(t[r.columnKey]), de(t[r.columnKey]), setTimeout(() => de(""), 1700);
2283
+ navigator.clipboard.writeText(t[r.columnKey]), ue(t[r.columnKey]), setTimeout(() => ue(""), 1700);
2284
2284
  },
2285
- leftIcon: /* @__PURE__ */ q(_, {
2285
+ leftIcon: /* @__PURE__ */ q(S, {
2286
2286
  name: "copy",
2287
2287
  size: "xs"
2288
2288
  }),
2289
2289
  className: "dbn:p-0 dbn:pl-1 dbn:text-xs dbn:gap-1",
2290
- children: ue === t[r.columnKey] ? "Copied" : "Copy"
2290
+ children: le === t[r.columnKey] ? "Copied" : "Copy"
2291
2291
  })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ J(b, {
2292
2292
  buttonContent: /* @__PURE__ */ q(s, {
2293
2293
  variant: "popover",
2294
- leftIcon: /* @__PURE__ */ q(_, { name: "kebab-menu-vertical" })
2294
+ leftIcon: /* @__PURE__ */ q(S, { name: "kebab-menu-vertical" })
2295
2295
  }),
2296
2296
  menuWidth: "120px",
2297
2297
  position: "bottom",
@@ -2302,7 +2302,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2302
2302
  action: "edit",
2303
2303
  id: t.id
2304
2304
  }),
2305
- leftIcon: /* @__PURE__ */ q(_, { name: "pencil-simple" }),
2305
+ leftIcon: /* @__PURE__ */ q(S, { name: "pencil-simple" }),
2306
2306
  children: "Edit"
2307
2307
  }), /* @__PURE__ */ q(s, {
2308
2308
  variant: "popover",
@@ -2311,7 +2311,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2311
2311
  action: "delete",
2312
2312
  id: t.id
2313
2313
  }),
2314
- leftIcon: /* @__PURE__ */ q(_, { name: "delete" }),
2314
+ leftIcon: /* @__PURE__ */ q(S, { name: "delete" }),
2315
2315
  children: "Delete"
2316
2316
  })]
2317
2317
  }) : null]
@@ -2322,18 +2322,18 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2322
2322
  }, `row-${r}`))
2323
2323
  })]
2324
2324
  }) : null,
2325
- !c && t.length === 0 && O ? /* @__PURE__ */ q(sr, { children: he() }) : null,
2326
- t.length > ce && !g ? /* @__PURE__ */ q("div", {
2325
+ !c && t.length === 0 && k ? /* @__PURE__ */ q(sr, { children: me() }) : null,
2326
+ t.length > se && !_ ? /* @__PURE__ */ q("div", {
2327
2327
  className: V.loadMore,
2328
2328
  children: /* @__PURE__ */ J(s, {
2329
2329
  type: "button",
2330
2330
  variant: "tertiary",
2331
- onClick: () => le((e) => e + o),
2332
- children: [/* @__PURE__ */ q(_, { name: "arrow-down" }), /* @__PURE__ */ q("span", { children: i })]
2331
+ onClick: () => ce((e) => e + o),
2332
+ children: [/* @__PURE__ */ q(S, { name: "arrow-down" }), /* @__PURE__ */ q("span", { children: i })]
2333
2333
  })
2334
2334
  }) : null
2335
2335
  ]
2336
- }), t.length === 0 && O && /* @__PURE__ */ q(sr, { children: ge() })] });
2336
+ }), t.length === 0 && k && /* @__PURE__ */ q(sr, { children: he() })] });
2337
2337
  }, Q = {
2338
2338
  "table-loader-container": "_table-loader-container_o1h6j_8",
2339
2339
  tableData: "_tableData_o1h6j_21",
@@ -2417,16 +2417,16 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2417
2417
  offset: 0,
2418
2418
  totalRecords: 10
2419
2419
  }, externalGlobalFilter: l, setExternalGlobalFilter: u, headerAlignment: d = "center", events: f, language: g, translationDictionary: _, isMetricCard: v, isDisableChartActions: y }) => {
2420
- let [b, ee] = K([]), [x, te] = K(","), S = (e) => {
2420
+ let [b, ee] = K([]), [x, S] = K(","), C = (e) => {
2421
2421
  let t = {};
2422
2422
  return Object.keys(e).sort().forEach((n) => {
2423
2423
  t[n] = e[n];
2424
2424
  }), t;
2425
- }, C = W(() => r?.isSortAlphabetically ? e?.map((e) => S(e)) : e, [e, r?.isSortAlphabetically]);
2425
+ }, w = W(() => r?.isSortAlphabetically ? e?.map((e) => C(e)) : e, [e, r?.isSortAlphabetically]);
2426
2426
  U(() => {
2427
- r?.badgeSeparator ? te(r.badgeSeparator) : te(",");
2427
+ r?.badgeSeparator ? S(r.badgeSeparator) : S(",");
2428
2428
  }, [r?.badgeSeparator]);
2429
- let T = W(() => {
2429
+ let E = W(() => {
2430
2430
  let e = "2.5rem";
2431
2431
  return r?.textWrap?.isEnable ? e = "auto" : r?.lineGap === "small" ? e = "36px" : r?.lineGap === "medium" ? e = "40px" : r?.lineGap === "large" && (e = "44px"), {
2432
2432
  width: "100%",
@@ -2443,18 +2443,18 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2443
2443
  r?.contentAlignment,
2444
2444
  r?.textWrap?.isEnable,
2445
2445
  r?.contentFontSize
2446
- ]), ne = (e, t, n) => {
2446
+ ]), te = (e, t, n) => {
2447
2447
  if (t && n && Object.keys(t).includes(e) && Object.keys(n).includes(e)) return {
2448
2448
  backgroundColor: t[e],
2449
2449
  color: n[e]
2450
2450
  };
2451
2451
  if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
2452
2452
  if (n && Object.keys(n).includes(e)) return { color: n[e] };
2453
- }, [re, ie] = K(r?.columnSizing), ae = G(null), oe = W(() => !e || !C || !Array.isArray(e) || !Array.isArray(C) ? [] : r?.isEnableTranspose ? w(C, r?.isEnableTranspose) : C, [
2453
+ }, [ne, re] = K(r?.columnSizing), ie = G(null), ae = W(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? T(w, r?.isEnableTranspose) : w, [
2454
2454
  e,
2455
- C,
2455
+ w,
2456
2456
  r?.isEnableTranspose
2457
- ]), E = W(() => !g || !_ ? oe : oe?.map((e) => {
2457
+ ]), D = W(() => !g || !_ ? ae : ae?.map((e) => {
2458
2458
  let t = {};
2459
2459
  for (let n in e) {
2460
2460
  let r = m({
@@ -2470,11 +2470,11 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2470
2470
  }
2471
2471
  return t;
2472
2472
  }), [
2473
- oe,
2473
+ ae,
2474
2474
  g,
2475
2475
  _
2476
- ]), D = W(() => E, [E]), O = W(() => {
2477
- let e = Object.keys(E[0] || {});
2476
+ ]), O = W(() => D, [D]), k = W(() => {
2477
+ let e = Object.keys(D[0] || {});
2478
2478
  return r?.showColumnFilter && (e = b), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => Mo.accessor(e, {
2479
2479
  header: () => e,
2480
2480
  cell: (t) => {
@@ -2483,10 +2483,10 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2483
2483
  },
2484
2484
  enableResizing: !0
2485
2485
  }));
2486
- }, [E[0], b]), k = Kn({
2487
- data: D,
2488
- columns: O,
2489
- state: { ...re ? { columnSizing: re } : {} },
2486
+ }, [D[0], b]), A = Kn({
2487
+ data: O,
2488
+ columns: k,
2489
+ state: { ...ne ? { columnSizing: ne } : {} },
2490
2490
  filterFns: { fuzzy: No },
2491
2491
  globalFilterFn: Po,
2492
2492
  getCoreRowModel: Hn(),
@@ -2494,22 +2494,22 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2494
2494
  debugTable: !1,
2495
2495
  enableColumnResizing: !0,
2496
2496
  columnResizeMode: "onChange",
2497
- onColumnSizingChange: ie
2498
- }), A = k.getSortedRowModel().rows, j = Vn({
2499
- count: A.length,
2500
- getScrollElement: () => ae.current,
2497
+ onColumnSizingChange: re
2498
+ }), j = A.getSortedRowModel().rows, M = Vn({
2499
+ count: j.length,
2500
+ getScrollElement: () => ie.current,
2501
2501
  estimateSize: () => Fo(r),
2502
2502
  overscan: 12
2503
- }), 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;
2503
+ }), N = M.getVirtualItems(), oe = N.length ? N[0].start : 0, se = N.length ? M.getTotalSize() - N[N.length - 1].end : 0, ce = A.getVisibleLeafColumns().length || 1;
2504
2504
  U(() => {
2505
- k.getIsSomeColumnsVisible() && o?.();
2506
- }, [k.getIsSomeColumnsVisible()]);
2507
- let ue = (e, t) => t?.includes(e) ? Q.badge : "";
2505
+ A.getIsSomeColumnsVisible() && o?.();
2506
+ }, [A.getIsSomeColumnsVisible()]);
2507
+ let le = (e, t) => t?.includes(e) ? Q.badge : "";
2508
2508
  return U(() => {
2509
- r?.isEnableColumnFilter || k.resetColumnFilters();
2510
- }, [k, r?.isEnableColumnFilter]), U(() => {
2511
- ee(Object.keys(E[0] || {}));
2512
- }, [E[0]]), /* @__PURE__ */ q("div", {
2509
+ r?.isEnableColumnFilter || A.resetColumnFilters();
2510
+ }, [A, r?.isEnableColumnFilter]), U(() => {
2511
+ ee(Object.keys(D[0] || {}));
2512
+ }, [D[0]]), /* @__PURE__ */ q("div", {
2513
2513
  className: `${Q.container} ${i}`,
2514
2514
  children: /* @__PURE__ */ q("div", {
2515
2515
  className: Q.previewTable,
@@ -2517,24 +2517,24 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2517
2517
  className: `${Q.tableData} ${Q.noBorder}`,
2518
2518
  children: [
2519
2519
  t && !e?.length ? /* @__PURE__ */ q(h, { variant: "table" }) : null,
2520
- !!C?.length && /* @__PURE__ */ q(qn, {
2520
+ !!w?.length && /* @__PURE__ */ q(qn, {
2521
2521
  style: { height: "100%" },
2522
- scrollableNodeProps: { ref: ae },
2522
+ scrollableNodeProps: { ref: ie },
2523
2523
  children: /* @__PURE__ */ q("table", {
2524
2524
  className: Q.table,
2525
2525
  children: /* @__PURE__ */ J("tbody", { children: [
2526
- se > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2527
- colSpan: le,
2526
+ oe > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2527
+ colSpan: ce,
2528
2528
  style: {
2529
- height: `${se}px`,
2529
+ height: `${oe}px`,
2530
2530
  padding: 0,
2531
2531
  border: 0
2532
2532
  }
2533
2533
  }) }) : null,
2534
- M?.map((e) => {
2535
- let t = A[e.index];
2534
+ N?.map((e) => {
2535
+ let t = j[e.index];
2536
2536
  return t ? /* @__PURE__ */ q("tr", {
2537
- ref: j.measureElement,
2537
+ ref: M.measureElement,
2538
2538
  "data-index": e.index,
2539
2539
  "data-testid": `table-row-${t.id}`,
2540
2540
  style: f?.click ? { cursor: "pointer" } : void 0,
@@ -2546,12 +2546,12 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2546
2546
  },
2547
2547
  children: t.getVisibleCells()?.map((e, t) => {
2548
2548
  let n = "";
2549
- ue(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(x) && n?.toString()?.split(x));
2549
+ le(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(x) && n?.toString()?.split(x));
2550
2550
  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) ? "-" : Wn(e.column.columnDef.cell, e.getContext()), o = v && !y && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = Jn({
2551
2551
  rules: r?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
2552
2552
  value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue()
2553
- }), u = l?.prefix || "", d = l?.suffix || "", p = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? ne(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, m = "", h = (p?.isApplyBadgeColor || !(p?.isApplyBgColor || !p?.badgeColor)) && !!Object.keys(l)?.length;
2554
- h ? m = p?.badgeColor : r?.badgeColumns?.includes(e.column.id) && (m = ne(e.column.id, r?.badgeColors, r?.badgeTextColors)?.backgroundColor);
2553
+ }), u = l?.prefix || "", d = l?.suffix || "", p = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? te(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, m = "", h = (p?.isApplyBadgeColor || !(p?.isApplyBgColor || !p?.badgeColor)) && !!Object.keys(l)?.length;
2554
+ h ? m = p?.badgeColor : r?.badgeColumns?.includes(e.column.id) && (m = te(e.column.id, r?.badgeColors, r?.badgeTextColors)?.backgroundColor);
2555
2555
  let g = l;
2556
2556
  if (l && "backgroundColor" in l && h) {
2557
2557
  let { backgroundColor: e, ...t } = l;
@@ -2569,17 +2569,17 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2569
2569
  },
2570
2570
  style: {
2571
2571
  position: "relative",
2572
- width: `${e.column.getSize() / k.getTotalSize() * 100}%`
2572
+ width: `${e.column.getSize() / A.getTotalSize() * 100}%`
2573
2573
  },
2574
2574
  children: [
2575
2575
  !!r && /* @__PURE__ */ q("div", {
2576
2576
  style: {
2577
- ...T,
2577
+ ...E,
2578
2578
  ...g
2579
2579
  },
2580
2580
  children: a() === "" ? /* @__PURE__ */ q(sr, {}) : /* @__PURE__ */ J("span", {
2581
2581
  "data-testid": "cell-content",
2582
- className: `${i ? Q.wrapText : Q.truncateText} ${ue(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2582
+ className: `${i ? Q.wrapText : Q.truncateText} ${le(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2583
2583
  style: {
2584
2584
  fontFamily: r?.contentFont,
2585
2585
  color: r?.contentColor || "var(--dbn-typography-colorPrimary, #222c3a)",
@@ -2620,7 +2620,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2620
2620
  t.preventDefault();
2621
2621
  let n = t.clientX, r = e.column.getSize(), i = (t) => {
2622
2622
  let i = Math.max(30, r + t.clientX - n);
2623
- k.setColumnSizing((t) => ({
2623
+ A.setColumnSizing((t) => ({
2624
2624
  ...t,
2625
2625
  [e.column.id]: i
2626
2626
  }));
@@ -2635,10 +2635,10 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2635
2635
  })
2636
2636
  }, t.id) : null;
2637
2637
  }),
2638
- ce > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2639
- colSpan: le,
2638
+ se > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2639
+ colSpan: ce,
2640
2640
  style: {
2641
- height: `${ce}px`,
2641
+ height: `${se}px`,
2642
2642
  padding: 0,
2643
2643
  border: 0
2644
2644
  }
@@ -3000,7 +3000,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3000
3000
  Zn(e);
3001
3001
  }
3002
3002
  }
3003
- }, Qo = rr(async () => (await import("./echarts-BE7AhqVy.mjs"), { default: Zo })), $o = nr((e, t) => /* @__PURE__ */ q(y, {
3003
+ }, Qo = rr(async () => (await import("./echarts-Dw5Z2Ho-.mjs"), { default: Zo })), $o = nr((e, t) => /* @__PURE__ */ q(y, {
3004
3004
  surface: "chart",
3005
3005
  fallback: /* @__PURE__ */ q(Yn, {}),
3006
3006
  children: /* @__PURE__ */ q(Qo, {
@@ -3050,7 +3050,7 @@ var jo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3050
3050
  })]
3051
3051
  })]
3052
3052
  });
3053
- }, ts = rr(async () => ({ default: (await import("./Table-CvDTChaZ.mjs").then((e) => e.n)).Table })), ns = rr(async () => ({ default: (await import("./HorizontalStackTable-CH68bWy3.mjs")).HorizontalStackTable })), rs = rr(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), is = rr(async () => ({ default: (await import("./PivotTableV2-De4TXsMc.mjs")).PivotTableV2 })), as = rr(() => import("./PivotTableV3-2nzDp4Nc.mjs")), os = ({ children: e, surface: t }) => /* @__PURE__ */ q(y, {
3053
+ }, ts = rr(async () => ({ default: (await import("./Table-BSKvdU4q.mjs").then((e) => e.n)).Table })), ns = rr(async () => ({ default: (await import("./HorizontalStackTable-DadBH16u.mjs")).HorizontalStackTable })), rs = rr(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), is = rr(async () => ({ default: (await import("./PivotTableV2-BufQEGso.mjs")).PivotTableV2 })), as = rr(() => import("./PivotTableV3-DwleqfW7.mjs")), os = ({ children: e, surface: t }) => /* @__PURE__ */ q(y, {
3054
3054
  surface: t,
3055
3055
  fallback: /* @__PURE__ */ J("div", {
3056
3056
  className: "dbn:flex dbn:h-full dbn:min-h-32 dbn:items-center dbn:justify-center",
@@ -3123,8 +3123,8 @@ var ps = (e, t, n, r, i) => {
3123
3123
  },
3124
3124
  wrote: !0
3125
3125
  };
3126
- }, ms = er.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: s, events: l, originalValue: u, variables: f, language: p, translationDictionary: h, setHoverSubHeader: v, onChartClickWithMetric: y, renderOpts: b }) => {
3127
- let [ee, x] = K(""), te = G(null), S = G(null), C = G(null), w = G(null), { valueFont: T, subHeaderFont: ne, changeVariableFont: re, changeIconSize: ie } = W(() => {
3126
+ }, ms = er.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: s, events: l, originalValue: u, variables: f, language: p, translationDictionary: h, setHoverSubHeader: g, onChartClickWithMetric: v, renderOpts: y }) => {
3127
+ let [b, ee] = K(""), x = G(null), C = G(null), w = G(null), T = G(null), { valueFont: E, subHeaderFont: te, changeVariableFont: ne, changeIconSize: re } = W(() => {
3128
3128
  let e = {
3129
3129
  fontSize: `${t?.subHeaderFontSize || 14}px`,
3130
3130
  fontWeight: t?.subHeaderFontWeight || "400",
@@ -3133,7 +3133,7 @@ var ps = (e, t, n, r, i) => {
3133
3133
  return {
3134
3134
  valueFont: {
3135
3135
  fontSize: `${t?.fontSize || 30}px`,
3136
- color: ee
3136
+ color: b
3137
3137
  },
3138
3138
  subHeaderFont: e,
3139
3139
  changeVariableFont: {
@@ -3148,17 +3148,17 @@ var ps = (e, t, n, r, i) => {
3148
3148
  t?.subHeaderFontWeight,
3149
3149
  t?.subHeaderFontColor,
3150
3150
  t?.fontSize,
3151
- ee
3152
- ]), ae = W(() => {
3151
+ b
3152
+ ]), ie = W(() => {
3153
3153
  if (!e) return "empty";
3154
- let t = N(e.toString());
3154
+ let t = P(e.toString());
3155
3155
  return t.length === 0 ? "empty-empty" : `${`${t.slice(0, 4)}-${t.slice(-4)}`.toLowerCase()}-${d(6)}`;
3156
3156
  }, [e]);
3157
3157
  U(() => {
3158
3158
  let e = new ResizeObserver(() => {
3159
- w?.current?.getEchartsInstance()?.resize();
3159
+ T?.current?.getEchartsInstance()?.resize();
3160
3160
  });
3161
- return C?.current && e?.observe(C?.current), () => e?.disconnect();
3161
+ return w?.current && e?.observe(w?.current), () => e?.disconnect();
3162
3162
  }, []), U(() => {
3163
3163
  (e || t) && a?.();
3164
3164
  }, [e, t]), U(() => {
@@ -3166,7 +3166,7 @@ var ps = (e, t, n, r, i) => {
3166
3166
  if (t?.conditionalFormatter?.length && u) {
3167
3167
  let n = t?.conditionalFormatter?.filter((e) => !e?.type || e?.type === "range"), r = t?.conditionalFormatter?.filter((e) => e?.type === "string");
3168
3168
  if (typeof u == "number" && n?.length && n?.forEach((n) => {
3169
- (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(u) && n?.max >= Number(u) && (x(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3169
+ (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(u) && n?.max >= Number(u) && (ee(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3170
3170
  }), typeof u == "string" && r?.length) {
3171
3171
  let n = Jn({
3172
3172
  rules: r?.map((e) => ({
@@ -3176,21 +3176,21 @@ var ps = (e, t, n, r, i) => {
3176
3176
  })),
3177
3177
  value: u
3178
3178
  });
3179
- n && typeof n != "object" && (x(n ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3179
+ n && typeof n != "object" && (ee(n ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3180
3180
  }
3181
3181
  }
3182
- e || x(t?.fontColor || "var(--dbn-txt-primary, #252525)");
3182
+ e || ee(t?.fontColor || "var(--dbn-txt-primary, #252525)");
3183
3183
  }, [
3184
3184
  t?.conditionalFormatter,
3185
3185
  t?.fontColor,
3186
3186
  u
3187
3187
  ]);
3188
- let oe = W(() => t?.isEnableTruncate ? _e(e.toString(), t?.truncateValue || 0) : e, [
3188
+ let ae = W(() => t?.isEnableTruncate ? he(e.toString(), t?.truncateValue || 0) : e, [
3189
3189
  e,
3190
3190
  t?.isEnableTruncate,
3191
3191
  t?.truncateValue
3192
- ]), E = W(() => t?.prefix ? m({
3193
- text: g(t?.prefix || "^^^^^", f),
3192
+ ]), D = W(() => t?.prefix ? m({
3193
+ text: _(t?.prefix || "^^^^^", f),
3194
3194
  selectedLanguage: p,
3195
3195
  translationDictionary: h
3196
3196
  }) : "", [
@@ -3198,8 +3198,8 @@ var ps = (e, t, n, r, i) => {
3198
3198
  t?.prefix,
3199
3199
  p,
3200
3200
  h
3201
- ]), D = W(() => t?.suffix ? m({
3202
- text: g(t?.suffix || "^^^^^", f),
3201
+ ]), O = W(() => t?.suffix ? m({
3202
+ text: _(t?.suffix || "^^^^^", f),
3203
3203
  selectedLanguage: p,
3204
3204
  translationDictionary: h
3205
3205
  }) : "", [
@@ -3207,9 +3207,9 @@ var ps = (e, t, n, r, i) => {
3207
3207
  t?.suffix,
3208
3208
  p,
3209
3209
  h
3210
- ]), O = G(null), k = G({ maxFraction: .6 }), A = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3211
- k.current = { maxFraction: A ? .42 : .6 };
3212
- let j = W(() => fs(o), [o]), M = j !== "none", se = M && !!s, ce = W(() => M ? se ? {
3210
+ ]), k = G(null), A = G({ maxFraction: .6 }), j = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3211
+ A.current = { maxFraction: j ? .42 : .6 };
3212
+ let M = W(() => fs(o), [o]), N = M !== "none", oe = N && !!s, se = W(() => N ? oe ? {
3213
3213
  value: "50%",
3214
3214
  comparison: "18%",
3215
3215
  trend: "32%"
@@ -3221,15 +3221,15 @@ var ps = (e, t, n, r, i) => {
3221
3221
  value: "100%",
3222
3222
  comparison: "0%",
3223
3223
  trend: "0%"
3224
- }, [M, se]);
3224
+ }, [N, oe]);
3225
3225
  U(() => {
3226
- let e = te.current, n = S.current;
3226
+ let e = x.current, n = C.current;
3227
3227
  if (!e || !n) return;
3228
- O.current = null;
3228
+ k.current = null;
3229
3229
  let r = () => {
3230
3230
  if (e.clientWidth <= 0 || e.clientHeight <= 0) return;
3231
- let { memo: r } = ps(n, e, t?.fontSize || 0, O.current, t?.fontSize ? void 0 : k.current);
3232
- O.current = r;
3231
+ let { memo: r } = ps(n, e, t?.fontSize || 0, k.current, t?.fontSize ? void 0 : A.current);
3232
+ k.current = r;
3233
3233
  };
3234
3234
  r();
3235
3235
  let i = new ResizeObserver(r);
@@ -3238,13 +3238,13 @@ var ps = (e, t, n, r, i) => {
3238
3238
  };
3239
3239
  }, [
3240
3240
  t?.fontSize,
3241
- oe,
3242
- E,
3241
+ ae,
3243
3242
  D,
3244
- A,
3245
- ce.value
3243
+ O,
3244
+ j,
3245
+ se.value
3246
3246
  ]);
3247
- let { alignmentClass: le, subAlignmentClass: ue } = W(() => {
3247
+ let { alignmentClass: ce, subAlignmentClass: le } = W(() => {
3248
3248
  let e = t?.alignment === "left" ? $.leftAlign : t?.alignment === "right" ? $.rightAlign : "", n = t?.subHeaderAlignment === "left" ? $.leftAlign : t?.subHeaderAlignment === "right" ? $.rightAlign : "";
3249
3249
  return {
3250
3250
  alignmentClass: e || "",
@@ -3256,81 +3256,81 @@ var ps = (e, t, n, r, i) => {
3256
3256
  style: { background: t?.metricCardColor || "" },
3257
3257
  children: [
3258
3258
  /* @__PURE__ */ J("div", {
3259
- ref: te,
3260
- className: `${$.valueContainer} ${A ? "dbn:mt-1 dbn:justify-start" : ""} ${le} `,
3259
+ ref: x,
3260
+ className: `${$.valueContainer} ${j ? "dbn:mt-1 dbn:justify-start" : ""} ${ce} `,
3261
3261
  onContextMenu: (e) => e.preventDefault(),
3262
3262
  style: {
3263
3263
  background: t?.metricCardColor || "",
3264
- height: ce.value,
3264
+ height: se.value,
3265
3265
  minHeight: 0
3266
3266
  },
3267
- "data-testid": `valueContainer-${ae}`,
3267
+ "data-testid": `valueContainer-${ie}`,
3268
3268
  children: [/* @__PURE__ */ J("div", {
3269
- ref: S,
3270
- style: T,
3269
+ ref: C,
3270
+ style: E,
3271
3271
  onClick: (e) => {
3272
- y ? y() : n?.isEnable ? l?.click() : l?.contextmenu();
3272
+ v ? v() : n?.isEnable ? l?.click() : l?.contextmenu();
3273
3273
  },
3274
3274
  onContextMenu: (e) => {
3275
- y ? y() : n?.isEnable ? l?.click() : l?.contextmenu();
3275
+ v ? v() : n?.isEnable ? l?.click() : l?.contextmenu();
3276
3276
  },
3277
3277
  className: `${n?.isEnable ? $.chartClickAction : ""} ${$.singleValue}`,
3278
- "data-testid": `singleValue-${ae}`,
3278
+ "data-testid": `singleValue-${ie}`,
3279
3279
  children: [
3280
- E,
3281
- oe,
3282
- D
3280
+ D,
3281
+ ae,
3282
+ O
3283
3283
  ]
3284
- }), A && /* @__PURE__ */ q("div", {
3285
- className: `dbn:w-full dbn:flex dbn:flex-col ${ue}`,
3284
+ }), j && /* @__PURE__ */ q("div", {
3285
+ className: `dbn:w-full dbn:flex dbn:flex-col ${le}`,
3286
3286
  children: /* @__PURE__ */ q(c, {
3287
3287
  text: t?.displayText,
3288
3288
  position: "bottom",
3289
3289
  isSingleLineTxt: !1,
3290
3290
  className: "dbn:max-w-full",
3291
3291
  children: /* @__PURE__ */ q("div", {
3292
- style: ne,
3292
+ style: te,
3293
3293
  onClick: () => {
3294
3294
  n && Ln(n, t?.displayText || "");
3295
3295
  },
3296
3296
  className: $.subHeader,
3297
- onMouseEnter: () => v?.(!0),
3298
- onMouseLeave: () => v?.(!1),
3297
+ onMouseEnter: () => g?.(!0),
3298
+ onMouseLeave: () => g?.(!1),
3299
3299
  children: t?.displayText
3300
3300
  })
3301
3301
  })
3302
3302
  })]
3303
3303
  }),
3304
- M && /* @__PURE__ */ J("div", {
3304
+ N && /* @__PURE__ */ J("div", {
3305
3305
  className: $.comparisonDiv,
3306
3306
  style: {
3307
3307
  background: t?.metricCardColor || "",
3308
- height: ce.comparison,
3308
+ height: se.comparison,
3309
3309
  flexShrink: 0
3310
3310
  },
3311
3311
  children: [t?.comparisonTimePeriod && /* @__PURE__ */ J("span", {
3312
3312
  className: $.comparisonPeriod,
3313
3313
  children: ["vs", t?.comparisonMapValue ? ` ${t?.comparisonMapValue}` : ` Last ${t.comparisonTimePeriod} ${t.comparisonTimeGrain}`]
3314
3314
  }), /* @__PURE__ */ q("div", {
3315
- style: re,
3315
+ style: ne,
3316
3316
  className: $.comparisonValue,
3317
3317
  children: /* @__PURE__ */ J("span", {
3318
- style: re,
3319
- className: j === "flat" ? $.comparisonPeriod : j === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3318
+ style: ne,
3319
+ className: M === "flat" ? $.comparisonPeriod : M === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3320
3320
  "data-testid": "legacy-kpi-comparison",
3321
- "data-comparison-reading": j,
3321
+ "data-comparison-reading": M,
3322
3322
  children: [
3323
- j === "up" && /* @__PURE__ */ q(_, {
3323
+ M === "up" && /* @__PURE__ */ q(S, {
3324
3324
  name: "arrow-up-2",
3325
3325
  color: t?.upVariant === "danger" ? "warning-badge-txt" : "success-badge-txt",
3326
- width: ie,
3327
- height: ie
3326
+ width: re,
3327
+ height: re
3328
3328
  }),
3329
- j === "down" && /* @__PURE__ */ q(_, {
3329
+ M === "down" && /* @__PURE__ */ q(S, {
3330
3330
  name: "arrow-down-2",
3331
3331
  color: t?.downVariant === "success" ? "success-badge-txt" : "warning-badge-txt",
3332
- width: ie,
3333
- height: ie
3332
+ width: re,
3333
+ height: re
3334
3334
  }),
3335
3335
  o,
3336
3336
  " ",
@@ -3339,15 +3339,15 @@ var ps = (e, t, n, r, i) => {
3339
3339
  })
3340
3340
  })]
3341
3341
  }),
3342
- se && /* @__PURE__ */ q("div", {
3343
- ref: C,
3342
+ oe && /* @__PURE__ */ q("div", {
3343
+ ref: w,
3344
3344
  style: {
3345
3345
  width: "100%",
3346
- height: ce.trend,
3346
+ height: se.trend,
3347
3347
  minHeight: 0
3348
3348
  },
3349
3349
  children: /* @__PURE__ */ q($o, {
3350
- ref: w,
3350
+ ref: T,
3351
3351
  style: {
3352
3352
  width: "100%",
3353
3353
  height: "100%"
@@ -3355,7 +3355,7 @@ var ps = (e, t, n, r, i) => {
3355
3355
  option: kr(s),
3356
3356
  theme: "v5",
3357
3357
  notMerge: !0,
3358
- opts: b
3358
+ opts: y
3359
3359
  })
3360
3360
  })
3361
3361
  ]
@@ -3449,8 +3449,8 @@ var ps = (e, t, n, r, i) => {
3449
3449
  let t = { theme: "v5" };
3450
3450
  for (let n of Object.keys(e)) (Ds.has(n) || Os(n)) && (t[n] = e[n]);
3451
3451
  return t;
3452
- }, As = (e) => e !== T.treeMap, js = (e, t) => {
3453
- if (e !== T.treeMap) return e;
3452
+ }, As = (e) => e !== E.treeMap, js = (e, t) => {
3453
+ if (e !== E.treeMap) return e;
3454
3454
  try {
3455
3455
  return `${e}:${JSON.stringify(t)}`;
3456
3456
  } catch {
@@ -3531,26 +3531,26 @@ var ps = (e, t, n, r, i) => {
3531
3531
  notMerge: As(r.chartType),
3532
3532
  opts: c
3533
3533
  });
3534
- }, (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 || !Ms(e.config, t.config) || !Ms(e.chartOptions, t.chartOptions))), Is = er.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: c, config: l, className: d, isShowFullScreen: p, isShowFullScreenEnabled: m, metricId: h, sortOrder: g, onMaximize: _, onDrillPivotTable: b, pivotDrillState: ee, isPythonMode: x, seriesName: S = "", isSortReversed: w, chartHeight: E, chartAppearance: D, metricCardColor: k, isMetricCard: j, isDashboard: M, externalGlobalFilter: le, setExternalGlobalFilter: he, variables: _e, language: N, translationDictionary: P, setHoverSubHeader: ye, drilldownCols: be, isEnableDrillDown: xe, dateFilter: Se, chartFontSettings: Ce, downloadData: we, isDownloading: Te, generatingPdf: Ee }) => {
3535
- let F = W(() => Ps(e, t), [e, t]), [I, De] = K(null), [Oe, ke] = K(null), Ae = or(oe, O, O), je = ir((e) => {
3534
+ }, (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 || !Ms(e.config, t.config) || !Ms(e.chartOptions, t.chartOptions))), Is = er.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: c, config: l, className: d, isShowFullScreen: p, isShowFullScreenEnabled: m, metricId: h, sortOrder: g, onMaximize: _, onDrillPivotTable: b, pivotDrillState: x, isPythonMode: S, seriesName: C = "", isSortReversed: T, chartHeight: D, chartAppearance: O, metricCardColor: A, isMetricCard: M, isDashboard: N, externalGlobalFilter: ce, setExternalGlobalFilter: pe, variables: he, language: P, translationDictionary: ve, setHoverSubHeader: ye, drilldownCols: be, isEnableDrillDown: xe, dateFilter: Se, chartFontSettings: Ce, downloadData: we, isDownloading: Te, generatingPdf: Ee }) => {
3535
+ let F = W(() => Ps(e, t), [e, t]), [I, De] = K(null), [Oe, ke] = K(null), Ae = or(ae, k, k), je = ir((e) => {
3536
3536
  De((t) => t === e ? t : e);
3537
- }, []), [Me, Ne] = K(() => ne(null));
3537
+ }, []), [Me, Ne] = K(() => te(null));
3538
3538
  ar(() => {
3539
- Ne(ne(I));
3539
+ Ne(te(I));
3540
3540
  }, [I]);
3541
- let L = W(() => Me ? ie({
3542
- mapping: fe(F, t),
3541
+ let L = W(() => Me ? re({
3542
+ mapping: de(F, t),
3543
3543
  chartOptions: F,
3544
3544
  rows: t,
3545
- enabled: ge()
3545
+ enabled: me()
3546
3546
  }) : null, [
3547
3547
  Me,
3548
3548
  F,
3549
3549
  t
3550
- ]), Pe = L ? ge() : !1, Fe = W(() => {
3550
+ ]), Pe = L ? me() : !1, Fe = W(() => {
3551
3551
  if (!L) return null;
3552
- let e = de(Xr(D, F), {
3553
- ...pe(F.customSettings),
3552
+ let e = ue(Xr(O, F), {
3553
+ ...fe(F.customSettings),
3554
3554
  tooltipSettings: F?.tooltipSettings,
3555
3555
  categoryField: L?.type === "gaugeV2" ? null : F?.xAxis,
3556
3556
  chartZoom: F.customSettings?.chartZoom,
@@ -3559,14 +3559,14 @@ var ps = (e, t, n, r, i) => {
3559
3559
  isUseAsDifference: F.waterfallSettings?.isUseAsDifference,
3560
3560
  hideNullValues: F.customSettings?.hideNullValues
3561
3561
  });
3562
- return ae(e, re(L.data, Pe));
3562
+ return ie(e, ne(L.data, Pe));
3563
3563
  }, [
3564
3564
  L,
3565
- D,
3565
+ O,
3566
3566
  F,
3567
3567
  Pe
3568
- ]), Ie = L ? te() : !1, Le = W(() => {
3569
- if (Me && L) return ue(F);
3568
+ ]), Ie = L ? ee() : !1, Le = W(() => {
3569
+ if (Me && L) return le(F);
3570
3570
  }, [
3571
3571
  Me,
3572
3572
  L,
@@ -3579,7 +3579,7 @@ var ps = (e, t, n, r, i) => {
3579
3579
  n
3580
3580
  ]), [ze, Be] = K(), [Ve, He] = K(!1), Ue = G(null), [We, Ge] = K(null), Ke = ir((e) => {
3581
3581
  Ue.current = e, Ge(e);
3582
- }, []), R = G(null), [qe, Je] = K(0), [Ye, Xe] = K(0), Ze = G(qe), Qe = G(Ye), $e = me(F);
3582
+ }, []), R = G(null), [qe, Je] = K(0), [Ye, Xe] = K(0), Ze = G(qe), Qe = G(Ye), $e = _e(F);
3583
3583
  U(() => {
3584
3584
  Ze.current = qe;
3585
3585
  }, [qe]), U(() => {
@@ -3588,21 +3588,21 @@ var ps = (e, t, n, r, i) => {
3588
3588
  let et = W(() => JSON.stringify(Ce), [Ce]), tt = W(() => JSON.stringify(F), [F]), nt = W(() => JSON.stringify(i), [i]), z = W(() => {
3589
3589
  if (L) return null;
3590
3590
  let e = t;
3591
- return g === "ascending" && (e = [...t].sort((e, t) => e[S] - t[S])), g === "descending" && (e = [...t].sort((e, t) => t[S] - e[S])), w && (e = [...e].reverse()), ve({
3592
- isDashboard: M,
3591
+ return g === "ascending" && (e = [...t].sort((e, t) => e[C] - t[C])), g === "descending" && (e = [...t].sort((e, t) => t[C] - e[C])), T && (e = [...e].reverse()), ge({
3592
+ isDashboard: N,
3593
3593
  chartOptions: F,
3594
3594
  data: e,
3595
3595
  colors: i,
3596
3596
  geoJsonData: ze,
3597
- isPythonMode: x,
3598
- chartHeight: E,
3599
- chartAppearance: D,
3597
+ isPythonMode: S,
3598
+ chartHeight: D,
3599
+ chartAppearance: O,
3600
3600
  chartRef: Ue,
3601
3601
  chartGridWidth: qe,
3602
3602
  chartWidth: Ye,
3603
- metricCardColor: k,
3604
- language: N,
3605
- translationDictionary: P,
3603
+ metricCardColor: A,
3604
+ language: P,
3605
+ translationDictionary: ve,
3606
3606
  drilldownCols: be,
3607
3607
  isEnableDrillDown: xe,
3608
3608
  dateFilter: Se,
@@ -3616,20 +3616,20 @@ var ps = (e, t, n, r, i) => {
3616
3616
  nt,
3617
3617
  ze,
3618
3618
  g,
3619
- S,
3620
- w,
3621
- E,
3619
+ C,
3620
+ T,
3622
3621
  D,
3622
+ O,
3623
3623
  Ue,
3624
3624
  qe,
3625
3625
  Ye,
3626
- k,
3626
+ A,
3627
+ ve,
3627
3628
  P,
3628
- N,
3629
3629
  be,
3630
3630
  xe,
3631
3631
  Se,
3632
- M
3632
+ N
3633
3633
  ]), [rt, it] = K(), [at, ot] = K(), [st, ct] = K(), lt = st ?? z;
3634
3634
  ar(() => {
3635
3635
  ct(void 0);
@@ -3689,7 +3689,7 @@ var ps = (e, t, n, r, i) => {
3689
3689
  echartsInstance: t,
3690
3690
  optionsObj: ut.current.advancedOptions,
3691
3691
  params: e,
3692
- isGantt: ut.current.chartOptions?.chartType === T.gantt,
3692
+ isGantt: ut.current.chartOptions?.chartType === E.gantt,
3693
3693
  chartIds: ht.current
3694
3694
  });
3695
3695
  }
@@ -3710,12 +3710,12 @@ var ps = (e, t, n, r, i) => {
3710
3710
  };
3711
3711
  }, []);
3712
3712
  let [bt, xt] = K(0), [St, Ct] = K(0), [wt, Tt] = K(0), [Et, Dt] = K([]), [Ot, kt] = K(!1), At = W(() => [
3713
- T.indianMap,
3714
- T.geoBarMap,
3715
- T.geoMap,
3716
- T.geoScatterMap,
3717
- T.worldMap
3718
- ].includes(F.chartType), [F.chartType]), jt = W(() => [T.worldMap, T.indianMap].includes(F?.chartType || "") && ze && t.length && F?.xAxis, [
3713
+ E.indianMap,
3714
+ E.geoBarMap,
3715
+ E.geoMap,
3716
+ E.geoScatterMap,
3717
+ E.worldMap
3718
+ ].includes(F.chartType), [F.chartType]), jt = W(() => [E.worldMap, E.indianMap].includes(F?.chartType || "") && ze && t.length && F?.xAxis, [
3719
3719
  ze,
3720
3720
  t.length,
3721
3721
  F?.xAxis,
@@ -3726,21 +3726,21 @@ var ps = (e, t, n, r, i) => {
3726
3726
  let e = I.parentElement ?? I, t = () => {
3727
3727
  let t = e.getBoundingClientRect();
3728
3728
  if (t.width <= 0 || t.height <= 0) return !1;
3729
- let n = A({
3729
+ let n = j({
3730
3730
  cssWidth: t.width,
3731
3731
  cssHeight: t.height,
3732
3732
  devicePixelRatio: window.devicePixelRatio,
3733
- liveCharts: se(),
3733
+ liveCharts: oe(),
3734
3734
  purpose: Ee ? "export" : "live"
3735
3735
  });
3736
3736
  return ke((e) => e === n ? e : n), !0;
3737
3737
  }, n = t();
3738
3738
  if (typeof ResizeObserver != "function") {
3739
- n || ke(A({
3739
+ n || ke(j({
3740
3740
  cssWidth: 0,
3741
3741
  cssHeight: 0,
3742
3742
  devicePixelRatio: window.devicePixelRatio,
3743
- liveCharts: se(),
3743
+ liveCharts: oe(),
3744
3744
  purpose: Ee ? "export" : "live"
3745
3745
  }));
3746
3746
  return;
@@ -3756,7 +3756,7 @@ var ps = (e, t, n, r, i) => {
3756
3756
  if (L || !I || typeof MutationObserver != "function") return;
3757
3757
  let e = null, t = () => {
3758
3758
  let t = I.querySelector("canvas") !== null;
3759
- t && !e ? e = ce() : !t && e && (e(), e = null);
3759
+ t && !e ? e = se() : !t && e && (e(), e = null);
3760
3760
  }, n = new MutationObserver(t);
3761
3761
  return n.observe(I, {
3762
3762
  childList: !0,
@@ -3772,26 +3772,26 @@ var ps = (e, t, n, r, i) => {
3772
3772
  U(() => {
3773
3773
  if (!L && At) {
3774
3774
  let e = [
3775
- T.geoBarMap,
3776
- T.geoMap,
3777
- T.geoScatterMap
3775
+ E.geoBarMap,
3776
+ E.geoMap,
3777
+ E.geoScatterMap
3778
3778
  ].includes(F.chartType);
3779
3779
  Be(null), He(!1);
3780
3780
  let t = window.dbn?.geoJsonBaseUrl, n = (e) => fetch(`${t.replace(/\/+$/, "")}/${e}.json`).then((e) => {
3781
3781
  if (!e.ok) throw Error(`Geo outline fetch failed: ${e.status}`);
3782
3782
  return e.json();
3783
3783
  }), r = () => He(!0);
3784
- e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(Be).catch(r) : F?.chartType === T.indianMap ? (t ? n("india") : import("./india-D6s43bBg.mjs").then((e) => e.default)).then(Be).catch(r) : (t ? n("world") : import("./world-CY-Yxrxs.mjs").then((e) => e.default)).then(Be).catch(r);
3784
+ e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(Be).catch(r) : F?.chartType === E.indianMap ? (t ? n("india") : import("./india-D6s43bBg.mjs").then((e) => e.default)).then(Be).catch(r) : (t ? n("world") : import("./world-CY-Yxrxs.mjs").then((e) => e.default)).then(Be).catch(r);
3785
3785
  }
3786
3786
  }, [F.chartType, L]), U(() => {
3787
- L || F.customSettings?.showDynamicBehaviour && !$e && F.chartType && it(ve({
3788
- isDashboard: M,
3787
+ L || F.customSettings?.showDynamicBehaviour && !$e && F.chartType && it(ge({
3788
+ isDashboard: N,
3789
3789
  chartOptions: F,
3790
3790
  data: t.slice(0, 10),
3791
3791
  colors: i,
3792
- isPythonMode: x,
3793
- language: N,
3794
- translationDictionary: P,
3792
+ isPythonMode: S,
3793
+ language: P,
3794
+ translationDictionary: ve,
3795
3795
  dateFilter: Se,
3796
3796
  chartRef: l?.ref ?? R,
3797
3797
  chartGridWidth: Ze.current,
@@ -3803,10 +3803,10 @@ var ps = (e, t, n, r, i) => {
3803
3803
  i,
3804
3804
  t,
3805
3805
  $e,
3806
- N,
3807
3806
  P,
3807
+ ve,
3808
3808
  Se,
3809
- M
3809
+ N
3810
3810
  ]);
3811
3811
  let Pt = G({
3812
3812
  upperLimit: 10,
@@ -3829,14 +3829,14 @@ var ps = (e, t, n, r, i) => {
3829
3829
  })), clearInterval(r);
3830
3830
  return;
3831
3831
  }
3832
- let e = t.slice(n.lowerLimit, n.upperLimit + 10), a = ve({
3833
- isDashboard: M,
3832
+ let e = t.slice(n.lowerLimit, n.upperLimit + 10), a = ge({
3833
+ isDashboard: N,
3834
3834
  chartOptions: F,
3835
3835
  data: e,
3836
3836
  colors: i,
3837
- isPythonMode: x,
3838
- translationDictionary: P,
3839
- language: N,
3837
+ isPythonMode: S,
3838
+ translationDictionary: ve,
3839
+ language: P,
3840
3840
  dateFilter: Se,
3841
3841
  chartRef: l?.ref ?? R,
3842
3842
  chartGridWidth: Ze.current,
@@ -3852,17 +3852,17 @@ var ps = (e, t, n, r, i) => {
3852
3852
  t,
3853
3853
  i,
3854
3854
  $e,
3855
+ ve,
3855
3856
  P,
3856
- N,
3857
3857
  Se,
3858
- M
3858
+ N
3859
3859
  ]);
3860
- let Ft = W(() => [T.linearGauge, T.progressBar].includes(F?.chartType), [F.chartType]), It = G(!0), Lt = G(void 0);
3860
+ let Ft = W(() => [E.linearGauge, E.progressBar].includes(F?.chartType), [F.chartType]), It = G(!0), Lt = G(void 0);
3861
3861
  U(() => {
3862
3862
  if (L) return;
3863
3863
  let e = setTimeout(() => {
3864
3864
  let e = (l?.ref ?? R)?.current?.getEchartsInstance();
3865
- if (e && !C.includes(F?.chartType || "")) try {
3865
+ if (e && !w.includes(F?.chartType || "")) try {
3866
3866
  let t = e._componentsViews?.find((e) => e?.type === "grid")?.__model?.coordinateSystem?._rect;
3867
3867
  t && F?.labelSettings?.wrapText && Je(t?.width), t?.width && Tt(t.width);
3868
3868
  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;
@@ -3880,10 +3880,10 @@ var ps = (e, t, n, r, i) => {
3880
3880
  if (L || !z) return;
3881
3881
  let e = setTimeout(() => {
3882
3882
  let e = (l?.ref ?? R)?.current?.getEchartsInstance(), t = z;
3883
- if (e && !C.includes(F?.chartType || "")) {
3884
- let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = z?.xAxis?.[0]?.data?.length || z?.xAxis?.data?.length || 0, s = wt / i * .7 / z?.series?.length, c = [T.bar].includes(F?.chartType) && (F?.isDynamicSeries && F?.seriesField !== "ungrouped" || F?.seriesField !== "ungrouped"), d = F?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(F?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, p = F?.legendSettings?.disableScroll, m = F?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(F?.customSettings?.chartZoom?.zoomAxis || ""), h = m ? 40 : 0, g = 0, _ = 0;
3885
- if (o.includes(F?.legendSettings?.fixedPosition || "") && (g = St / r * 100 || 0), f.includes(F?.legendSettings?.fixedPosition || "") && (_ = St / r * 100 || 0), (l?.ref ?? R)?.current && F?.legendSettings?.position === "vertical" && a.includes(F?.legendSettings?.fixedPosition || "") && F?.chartType !== T.horizontalCombo) {
3886
- if (F?.chartType === T.combo || F?.chartType === T.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3883
+ if (e && !w.includes(F?.chartType || "")) {
3884
+ let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = z?.xAxis?.[0]?.data?.length || z?.xAxis?.data?.length || 0, s = wt / i * .7 / z?.series?.length, c = [E.bar].includes(F?.chartType) && (F?.isDynamicSeries && F?.seriesField !== "ungrouped" || F?.seriesField !== "ungrouped"), d = F?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(F?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, p = F?.legendSettings?.disableScroll, m = F?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(F?.customSettings?.chartZoom?.zoomAxis || ""), h = m ? 40 : 0, g = 0, _ = 0;
3885
+ if (o.includes(F?.legendSettings?.fixedPosition || "") && (g = St / r * 100 || 0), f.includes(F?.legendSettings?.fixedPosition || "") && (_ = St / r * 100 || 0), (l?.ref ?? R)?.current && F?.legendSettings?.position === "vertical" && a.includes(F?.legendSettings?.fixedPosition || "") && F?.chartType !== E.horizontalCombo) {
3886
+ if (F?.chartType === E.combo || F?.chartType === E.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3887
3887
  let e = ((z?.leftOffset + 5 || 0) + d) / n * 100, r = (z?.rightOffset + 5 || 0) / n * 100;
3888
3888
  u.includes(F?.legendSettings?.fixedPosition || "") && (r = (z?.rightOffset + 5 || 0) / n * 100, e = (bt + (z?.leftOffset + 5 || 0)) / n * 100), v.includes(F?.legendSettings?.fixedPosition || "") && (r = (bt + (z?.rightOffset + 5 || 0)) / n * 100, e = (z?.leftOffset + 5 || 0) / n * 100);
3889
3889
  let i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
@@ -3928,7 +3928,7 @@ var ps = (e, t, n, r, i) => {
3928
3928
  })) } : {}
3929
3929
  };
3930
3930
  }
3931
- } else if ((l?.ref ?? R)?.current && F?.chartType === T.horizontalCombo) {
3931
+ } else if ((l?.ref ?? R)?.current && F?.chartType === E.horizontalCombo) {
3932
3932
  let e = bt / n * 100, i = (z?.bottomOffset || 0) / r * 100, a = (z?.topOffset || 0) / r * 100;
3933
3933
  f.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = (z?.topOffset + 5 || 0) / r * 100, i = ((St || 25) + (z?.bottomOffset + 5 || 0)) / r * 100), o.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = ((St || 25) + (z?.topOffset + 5 || 0)) / r * 100, i = (z?.bottomOffset + 5 || 0) / r * 100);
3934
3934
  let s = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
@@ -3957,7 +3957,7 @@ var ps = (e, t, n, r, i) => {
3957
3957
  ...e,
3958
3958
  bottom: St
3959
3959
  } : e) : null;
3960
- if (F?.chartType === T.combo || F?.chartType === T.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3960
+ if (F?.chartType === E.combo || F?.chartType === E.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3961
3961
  let a = ((z?.leftOffset || 0) + d) / n * 100, o = (z?.rightOffset || 0) / n * 100;
3962
3962
  t = {
3963
3963
  ...z,
@@ -3998,14 +3998,14 @@ var ps = (e, t, n, r, i) => {
3998
3998
  }
3999
3999
  }
4000
4000
  } else t = z;
4001
- e && C.includes(F?.chartType || "") && (t = Hr(t, {
4001
+ e && w.includes(F?.chartType || "") && (t = Hr(t, {
4002
4002
  chartType: F?.chartType,
4003
4003
  canvas: {
4004
4004
  width: e.getWidth?.() || 0,
4005
4005
  height: e.getHeight?.() || 0
4006
4006
  },
4007
4007
  legendSettings: F?.legendSettings,
4008
- legendAppearance: D?.chartLegend,
4008
+ legendAppearance: O?.chartLegend,
4009
4009
  outsideLabels: !0
4010
4010
  }) ?? t), ct(t);
4011
4011
  }, 100);
@@ -4018,9 +4018,9 @@ var ps = (e, t, n, r, i) => {
4018
4018
  bt,
4019
4019
  St,
4020
4020
  wt,
4021
- D?.chartLegend
4021
+ O?.chartLegend
4022
4022
  ]), U(() => {
4023
- if (L || !z || (Lt.current &&= (clearInterval(Lt.current), void 0), F.chartType !== T.geoBarMap)) return;
4023
+ if (L || !z || (Lt.current &&= (clearInterval(Lt.current), void 0), F.chartType !== E.geoBarMap)) return;
4024
4024
  let e = Ue.current;
4025
4025
  if (!e || typeof IntersectionObserver != "function") return It.current = !0, Lt.current = setInterval(() => {
4026
4026
  ot(It.current ? z.geoOption : z.barOption), It.current = !It.current;
@@ -4068,15 +4068,15 @@ var ps = (e, t, n, r, i) => {
4068
4068
  }], [F?.xAxis, F?.yAxisList]);
4069
4069
  U(() => {
4070
4070
  if (!L && (We && [
4071
- T.gaugeV2,
4072
- T.linearGaugeV2,
4073
- T.progressBarV2,
4074
- T.funnelV2
4071
+ E.gaugeV2,
4072
+ E.linearGaugeV2,
4073
+ E.progressBarV2,
4074
+ E.funnelV2
4075
4075
  ].includes(F.chartType) && z?.drawD3Chart && z?.drawD3Chart(), ![
4076
- T.gaugeV2,
4077
- T.linearGaugeV2,
4078
- T.progressBarV2,
4079
- T.funnelV2
4076
+ E.gaugeV2,
4077
+ E.linearGaugeV2,
4078
+ E.progressBarV2,
4079
+ E.funnelV2
4080
4080
  ].includes(F.chartType))) {
4081
4081
  let e = document.querySelector("#dbn-portal");
4082
4082
  (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();
@@ -4110,7 +4110,7 @@ var ps = (e, t, n, r, i) => {
4110
4110
  ]);
4111
4111
  let Vt;
4112
4112
  if (L) {
4113
- let e = Cr(F.chartType), t = Ft && (E || 0) >= 6 ? Math.min(100, e) : typeof E == "number" && E > 0 ? Math.max(e, E * 24) : e;
4113
+ let e = Cr(F.chartType), t = Ft && (D || 0) >= 6 ? Math.min(100, e) : typeof D == "number" && D > 0 ? Math.max(e, D * 24) : e;
4114
4114
  Vt = /* @__PURE__ */ q("div", {
4115
4115
  style: {
4116
4116
  width: "100%",
@@ -4142,21 +4142,21 @@ var ps = (e, t, n, r, i) => {
4142
4142
  })
4143
4143
  })
4144
4144
  });
4145
- } else Vt = F.chartType === T.radar ? /* @__PURE__ */ q(es, {
4145
+ } else Vt = F.chartType === E.radar ? /* @__PURE__ */ q(es, {
4146
4146
  chartType: F.chartType,
4147
4147
  text: Me ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4148
4148
  }) : !z || Mt === null ? null : (() => {
4149
4149
  let e = [
4150
- T.indianMap,
4151
- T.geoBarMap,
4152
- T.geoMap,
4153
- T.geoScatterMap,
4154
- T.worldMap
4150
+ E.indianMap,
4151
+ E.geoBarMap,
4152
+ E.geoMap,
4153
+ E.geoScatterMap,
4154
+ E.worldMap
4155
4155
  ].includes(F.chartType);
4156
4156
  return e && Ve ? /* @__PURE__ */ q(es, {
4157
4157
  chartType: F.chartType,
4158
4158
  text: "Could not load the map outline. Check your connection and try again."
4159
- }) : e && !ze ? /* @__PURE__ */ q(Yn, {}) : F.chartType === T.singleValue ? /* @__PURE__ */ q(ms, {
4159
+ }) : e && !ze ? /* @__PURE__ */ q(Yn, {}) : F.chartType === E.singleValue ? /* @__PURE__ */ q(ms, {
4160
4160
  ...zt,
4161
4161
  value: z.value,
4162
4162
  settings: z.settings,
@@ -4165,12 +4165,12 @@ var ps = (e, t, n, r, i) => {
4165
4165
  trendLineOptions: z.trendLineOptions,
4166
4166
  events: r,
4167
4167
  originalValue: z?.originalValue,
4168
- variables: _e,
4169
- language: N,
4170
- translationDictionary: P,
4168
+ variables: he,
4169
+ language: P,
4170
+ translationDictionary: ve,
4171
4171
  setHoverSubHeader: ye,
4172
4172
  renderOpts: Mt
4173
- }) : F.chartType === T.horizontalStackTable ? /* @__PURE__ */ q(cs, {
4173
+ }) : F.chartType === E.horizontalStackTable ? /* @__PURE__ */ q(cs, {
4174
4174
  ...zt,
4175
4175
  data: z.data,
4176
4176
  rawData: t,
@@ -4203,7 +4203,7 @@ var ps = (e, t, n, r, i) => {
4203
4203
  ].includes(F?.labelSettings?.position) ? F?.labelSettings?.position : "bottom"
4204
4204
  },
4205
4205
  renderOpts: Mt
4206
- }) : F.chartType === T.table ? /* @__PURE__ */ q(ss, {
4206
+ }) : F.chartType === E.table ? /* @__PURE__ */ q(ss, {
4207
4207
  chartFieldFormats: F.customSettings?.chartFieldFormats,
4208
4208
  yAxisList: F?.yAxisList || [],
4209
4209
  ...zt,
@@ -4235,19 +4235,19 @@ var ps = (e, t, n, r, i) => {
4235
4235
  paginationInfo: l?.paginationInfo,
4236
4236
  setChartSettings: l?.setChartSettings,
4237
4237
  isShowFullScreen: p,
4238
- isMetricCard: j,
4238
+ isMetricCard: M,
4239
4239
  isShowFullScreenEnabled: m && !xe,
4240
4240
  metricId: h,
4241
4241
  onMaximize: _,
4242
4242
  dropdownZindex: l?.dropdownZindex,
4243
- externalGlobalFilter: le,
4244
- setExternalGlobalFilter: he,
4245
- language: N,
4246
- translationDictionary: P,
4243
+ externalGlobalFilter: ce,
4244
+ setExternalGlobalFilter: pe,
4245
+ language: P,
4246
+ translationDictionary: ve,
4247
4247
  isDisableChartActions: !l?.chartClickConfig?.isEnable,
4248
4248
  onDownloadData: we,
4249
4249
  isDownloading: Te
4250
- }) : F.chartType === T.trendAnalyzer ? /* @__PURE__ */ q(Io, {
4250
+ }) : F.chartType === E.trendAnalyzer ? /* @__PURE__ */ q(Io, {
4251
4251
  ...zt,
4252
4252
  events: r,
4253
4253
  data: z.data,
@@ -4275,23 +4275,23 @@ var ps = (e, t, n, r, i) => {
4275
4275
  paginationInfo: l?.paginationInfo,
4276
4276
  setChartSettings: l?.setChartSettings,
4277
4277
  isShowFullScreen: p,
4278
- isMetricCard: j,
4278
+ isMetricCard: M,
4279
4279
  isShowFullScreenEnabled: m && !xe,
4280
4280
  onMaximize: _,
4281
4281
  dropdownZindex: l?.dropdownZindex,
4282
- externalGlobalFilter: le,
4283
- setExternalGlobalFilter: he,
4284
- language: N,
4285
- translationDictionary: P,
4282
+ externalGlobalFilter: ce,
4283
+ setExternalGlobalFilter: pe,
4284
+ language: P,
4285
+ translationDictionary: ve,
4286
4286
  isDisableChartActions: !l?.chartClickConfig?.isEnable,
4287
4287
  onDownloadData: we,
4288
4288
  isDownloading: Te
4289
- }) : F.chartType === T.pivot ? /* @__PURE__ */ q(ls, {
4289
+ }) : F.chartType === E.pivot ? /* @__PURE__ */ q(ls, {
4290
4290
  ...zt,
4291
4291
  data: t,
4292
4292
  pivotTableSettings: z.pivotTableSettings,
4293
4293
  tableSettings: z?.tableSettings
4294
- }) : F.chartType === T.pivotV2 ? /* @__PURE__ */ q(us, { props: {
4294
+ }) : F.chartType === E.pivotV2 ? /* @__PURE__ */ q(us, { props: {
4295
4295
  columns: z?.pivotTableSettings2?.headers || [],
4296
4296
  data: t || [],
4297
4297
  rows: z?.pivotTableSettings2?.dimensions || [],
@@ -4302,7 +4302,7 @@ var ps = (e, t, n, r, i) => {
4302
4302
  isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4303
4303
  dimensions: z?.pivotTableSettings2?.dims || [],
4304
4304
  onDrillPivotTable: b,
4305
- pivotDrillState: ee,
4305
+ pivotDrillState: x,
4306
4306
  formatSettings: {
4307
4307
  isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
4308
4308
  numberFormatter: F?.tableSettings?.tableFormatter,
@@ -4314,7 +4314,7 @@ var ps = (e, t, n, r, i) => {
4314
4314
  isEnableTableSort: F?.tableSettings?.enableSorting,
4315
4315
  isEnableAllSort: F?.tableSettings?.isEnableAllSort,
4316
4316
  tableSettings: z?.tableSettings
4317
- } }) : F.chartType === T.pivotV3 ? /* @__PURE__ */ q(ds, { props: {
4317
+ } }) : F.chartType === E.pivotV3 ? /* @__PURE__ */ q(ds, { props: {
4318
4318
  columns: z?.pivotTableSettings3?.columns || [],
4319
4319
  data: t || [],
4320
4320
  rows: z?.pivotTableSettings3?.rows || [],
@@ -4324,7 +4324,7 @@ var ps = (e, t, n, r, i) => {
4324
4324
  isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4325
4325
  dimensions: z?.pivotTableSettings3?.dims || [],
4326
4326
  onDrillPivotTable: b,
4327
- pivotDrillState: ee,
4327
+ pivotDrillState: x,
4328
4328
  formatSettings: {
4329
4329
  isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
4330
4330
  numberFormatter: F?.tableSettings?.tableFormatter,
@@ -4345,11 +4345,11 @@ var ps = (e, t, n, r, i) => {
4345
4345
  hiddenColumns: z?.pivotTableSettings3?.hiddenColumns || [],
4346
4346
  orderedColumns: z?.pivotTableSettings3?.orderedColumns || []
4347
4347
  } }) : [
4348
- T.bar,
4349
- T.line,
4350
- T.area,
4351
- T.stackedArea,
4352
- T.timeSeries
4348
+ E.bar,
4349
+ E.line,
4350
+ E.area,
4351
+ E.stackedArea,
4352
+ E.timeSeries
4353
4353
  ].includes(F.chartType) && F.customSettings?.showDynamicBehaviour && !$e ? /* @__PURE__ */ tr($o, {
4354
4354
  style: {
4355
4355
  width: "100%",
@@ -4363,7 +4363,7 @@ var ps = (e, t, n, r, i) => {
4363
4363
  onEvents: gt,
4364
4364
  notMerge: As(F.chartType),
4365
4365
  opts: Mt
4366
- }) : F.chartType === T.geoBarMap ? /* @__PURE__ */ q($o, {
4366
+ }) : F.chartType === E.geoBarMap ? /* @__PURE__ */ q($o, {
4367
4367
  style: {
4368
4368
  width: "100%",
4369
4369
  height: "100%"
@@ -4378,17 +4378,17 @@ var ps = (e, t, n, r, i) => {
4378
4378
  notMerge: !0,
4379
4379
  opts: Mt
4380
4380
  }) : [
4381
- T.gaugeV2,
4382
- T.linearGaugeV2,
4383
- T.progressBarV2,
4384
- T.funnelV2
4381
+ E.gaugeV2,
4382
+ E.linearGaugeV2,
4383
+ E.progressBarV2,
4384
+ E.funnelV2
4385
4385
  ].includes(F.chartType) ? /* @__PURE__ */ q("div", {
4386
4386
  ref: Ke,
4387
4387
  className: "dbn:w-full dbn:h-full dbn:flex dbn:flex-col"
4388
- }) : F?.chartType === T.gauge ? /* @__PURE__ */ q(es, {
4388
+ }) : F?.chartType === E.gauge ? /* @__PURE__ */ q(es, {
4389
4389
  chartType: F?.chartType,
4390
4390
  subText: "Please use the Gauge V2 chart instead."
4391
- }) : [T.worldMap, T.indianMap].includes(F.chartType) ? /* @__PURE__ */ J("div", {
4391
+ }) : [E.worldMap, E.indianMap].includes(F.chartType) ? /* @__PURE__ */ J("div", {
4392
4392
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4393
4393
  id: "chartContainer",
4394
4394
  children: [jt && Et?.length ? /* @__PURE__ */ J(s, {
@@ -4402,7 +4402,7 @@ var ps = (e, t, n, r, i) => {
4402
4402
  }) : /* @__PURE__ */ q($o, {
4403
4403
  style: {
4404
4404
  width: "100%",
4405
- height: Ft && (E || 0) >= 6 ? "100px" : Ft && !E ? "40%" : "100%"
4405
+ height: Ft && (D || 0) >= 6 ? "100px" : Ft && !D ? "40%" : "100%"
4406
4406
  },
4407
4407
  ...ks(l),
4408
4408
  option: F.customSettings?.chartZoom?.isZoomEnabled ? {
@@ -4421,8 +4421,8 @@ var ps = (e, t, n, r, i) => {
4421
4421
  }) : /* @__PURE__ */ q("div", {
4422
4422
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4423
4423
  id: "chartContainer",
4424
- children: j ? /* @__PURE__ */ q(Fs, {
4425
- chartHeight: E,
4424
+ children: M ? /* @__PURE__ */ q(Fs, {
4425
+ chartHeight: D,
4426
4426
  hasDecreasedHeight: Ft,
4427
4427
  config: l,
4428
4428
  chartOptions: F,
@@ -4434,7 +4434,7 @@ var ps = (e, t, n, r, i) => {
4434
4434
  }) : /* @__PURE__ */ tr($o, {
4435
4435
  style: {
4436
4436
  width: "100%",
4437
- height: Ft && (E || 0) >= 6 ? "100px" : Ft && !E ? "40%" : "100%"
4437
+ height: Ft && (D || 0) >= 6 ? "100px" : Ft && !D ? "40%" : "100%"
4438
4438
  },
4439
4439
  ...ks(l),
4440
4440
  option: F.customSettings?.chartZoom?.isZoomEnabled ? {