@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
@@ -100,39 +100,39 @@ import "react-dom";
100
100
  import "react-dom/client";
101
101
  import { o as e } from "./rolldown-runtime-C1JUX4Ur.mjs";
102
102
  import { a as t, c as n, i as r, l as i, n as a, r as o, t as s } from "./cardStates-DiUMQ7_o.mjs";
103
- import { Ft as c, Kt as l, Ot as u, Pt as d, St as f, a as p, c as m, cn as h, ct as g, dn as _, en as v, et as y, ft as b, g as x, gt as S, h as C, ht as w, in as T, kt as E, mt as D, n as O, pn as ee, pt as k, t as A, zt as te } from "./pluginV3Request-Dfy8fkbS.mjs";
104
- import { $ as j, H as M, J as N, K as P, U as ne, at as re, c as F, et as I, nt as L, o as ie, ot as ae, rt as oe, s as se, st as ce, t as le } from "./metric.mutation-BRWn1UMi.mjs";
105
- import { Aa as ue, An as de, Ar as fe, B as R, Ba as pe, Bi as me, Br as he, C as ge, Ca as _e, Ci as ve, Cn as ye, Cr as be, Di as xe, Dn as Se, Dr as Ce, Ea as we, Ei as Te, En as Ee, Et as De, F as Oe, Fa as ke, Fi as Ae, Ft as je, G as Me, Ga as Ne, Gn as Pe, Gt as Fe, H as z, Hn as Ie, Ia as B, J as Le, Jn as Re, Jt as ze, Ka as Be, Kt as Ve, L as He, La as Ue, Ln as We, Lr as Ge, Mn as Ke, Mr as qe, N as Je, Ni as Ye, Nn as Xe, Nr as Ze, Nt as Qe, Oi as $e, On as et, Or as tt, Ot as nt, P as rt, Pa as it, Pn as at, Pr as ot, Q as st, Qi as ct, Qt as lt, R as ut, Ra as dt, Ri as ft, Rt as pt, S as mt, Sn as ht, St as gt, T as _t, Tr as vt, U as yt, Ua as V, Ut as bt, V as xt, Va as St, Vi as Ct, W as wt, Wa as Tt, Wr as Et, Wt as Dt, X as Ot, Xi as kt, Xn as At, Xt as jt, Yr as Mt, Zi as Nt, Zn as Pt, Zr as H, Zt as Ft, _ as It, _i as Lt, _r as Rt, _t as zt, a as Bt, aa as Vt, an as Ht, at as Ut, b as Wt, bn as Gt, br as Kt, cn as qt, cr as U, d as Jt, da as Yt, di as Xt, dn as Zt, ea as Qt, ei as $t, f as en, fa as tn, fr as W, gi as nn, gt as rn, h as an, ha as on, ht as sn, i as cn, ii as ln, jr as un, kn as dn, kr as fn, kt as pn, l as mn, m as hn, n as gn, ni as _n, nn as vn, nt as yn, o as bn, oi as xn, ot as Sn, p as Cn, pr as wn, q as Tn, qa as En, r as Dn, ri as On, rn as kn, rt as An, si as jn, sr as Mn, st as Nn, t as Pn, ti as Fn, tt as In, u as Ln, ui as Rn, ut as zn, v as Bn, vi as Vn, vr as Hn, vt as Un, w as Wn, wa as G, wi as Gn, x as Kn, xn as qn, y as Jn, yi as Yn, yn as Xn, yt as Zn, z as Qn, zr as $n, zt as er } from "./Portal-C4N01WKg.mjs";
103
+ import { Ft as c, Kt as l, Ot as u, Pt as d, St as f, a as p, c as m, cn as h, ct as g, dn as _, en as v, et as y, ft as b, g as x, gt as S, h as C, ht as w, in as T, kt as E, mt as D, n as O, pn as ee, pt as k, t as A, zt as te } from "./pluginV3Request-CQzo3G0-.mjs";
104
+ import { $ as j, H as M, J as N, K as P, U as ne, at as re, c as F, et as I, nt as L, o as ie, ot as ae, rt as oe, s as se, st as ce, t as le } from "./metric.mutation-cOoqy5Bi.mjs";
105
+ import { Aa as ue, An as de, Ar as fe, B as R, Ba as pe, Bi as me, Br as he, C as ge, Ca as _e, Ci as ve, Cn as ye, Cr as be, Di as xe, Dn as Se, Dr as Ce, Ea as we, Ei as Te, En as Ee, Et as De, F as Oe, Fa as ke, Fi as Ae, Ft as je, G as Me, Ga as Ne, Gn as Pe, Gt as Fe, H as z, Hn as Ie, Ia as B, J as Le, Jn as Re, Jt as ze, Ka as Be, Kt as Ve, L as He, La as Ue, Ln as We, Lr as Ge, Mn as Ke, Mr as qe, N as Je, Ni as Ye, Nn as Xe, Nr as Ze, Nt as Qe, Oi as $e, On as et, Or as tt, Ot as nt, P as rt, Pa as it, Pn as at, Pr as ot, Q as st, Qi as ct, Qt as lt, R as ut, Ra as dt, Ri as ft, Rt as pt, S as mt, Sn as ht, St as gt, T as _t, Tr as vt, U as yt, Ua as V, Ut as bt, V as xt, Va as St, Vi as Ct, W as wt, Wa as Tt, Wr as Et, Wt as Dt, X as Ot, Xi as kt, Xn as At, Xt as jt, Yr as Mt, Zi as Nt, Zn as Pt, Zr as H, Zt as Ft, _ as It, _i as Lt, _r as Rt, _t as zt, a as Bt, aa as Vt, an as Ht, at as Ut, b as Wt, bn as Gt, br as Kt, cn as qt, cr as U, d as Jt, da as Yt, di as Xt, dn as Zt, ea as Qt, ei as $t, f as en, fa as tn, gi as nn, gt as rn, h as an, ha as on, ht as sn, i as cn, ii as ln, jr as un, kn as dn, kr as fn, kt as pn, l as mn, m as hn, n as gn, ni as _n, nn as vn, nr as yn, nt as bn, o as xn, oi as Sn, ot as Cn, p as wn, q as Tn, qa as En, r as Dn, ri as On, rn as kn, rr as An, rt as jn, si as Mn, sr as W, st as Nn, t as Pn, ti as Fn, tt as In, u as Ln, ui as Rn, ut as zn, v as Bn, vi as Vn, vr as Hn, vt as Un, w as Wn, wa as G, wi as Gn, x as Kn, xn as qn, y as Jn, yi as Yn, yn as Xn, yt as Zn, z as Qn, zr as $n, zt as er } from "./Portal-CuJ3yA9x.mjs";
106
106
  import { t as tr } from "./guestAuth-DALo3ysE.mjs";
107
- import { _ as nr, f as rr, h as ir, m as ar, n as or, p as sr, r as cr, t as lr, v as ur, y as dr } from "./TagInputField-C9M_Ip9e.mjs";
108
- import { i as fr } from "./toTasteAppearance-cIHX7fPm.mjs";
107
+ import { _ as nr, f as rr, h as ir, m as ar, n as or, p as sr, r as cr, t as lr, v as ur, y as dr } from "./TagInputField-B09tGuSM.mjs";
108
+ import { i as fr } from "./toTasteAppearance-C4jy9fG3.mjs";
109
109
  import { q as pr } from "./option-DX8yNc39.mjs";
110
110
  import { i as mr, o as hr, r as gr, s as _r, t as vr } from "./contrast-CSSalhs_.mjs";
111
- import { a as yr } from "./chevron-down-Dxhk-Tao.mjs";
112
- import { i as br, l as xr, t as Sr } from "./timeseries-Clp-TrGQ.mjs";
113
- import { C as Cr, E as wr, S as Tr, _ as Er, b as Dr, g as Or, t as kr, w as Ar, x as jr } from "./TextAreaField-Q78INHKO.mjs";
111
+ import { a as yr } from "./chevron-down-CTH4bR6n.mjs";
112
+ import { i as br, l as xr, t as Sr } from "./timeseries-D_nzmvUF.mjs";
113
+ import { C as Cr, E as wr, S as Tr, _ as Er, b as Dr, g as Or, t as kr, w as Ar, x as jr } from "./TextAreaField-CLmioFXe.mjs";
114
114
  import { t as Mr } from "./arrayToCsvString-Cb1t-QbR.mjs";
115
115
  import { l as Nr, m as Pr, p as Fr, r as Ir, s as Lr } from "./text-CtrvkDIo.mjs";
116
- import { a as Rr, i as zr, n as Br, o as Vr, s as Hr, t as Ur } from "./permissions-B5UHxn_4.mjs";
117
- import { C as Wr, _ as Gr, d as Kr, f as qr, g as Jr, h as Yr, n as Xr, r as Zr, t as Qr, v as $r } from "./DraggableItem-7fQUo0x4.mjs";
118
- import { r as ei, t as ti } from "./Chart-7AGA9h2g.mjs";
116
+ import { a as Rr, i as zr, n as Br, o as Vr, s as Hr, t as Ur } from "./permissions-CxZW60Bd.mjs";
117
+ import { C as Wr, _ as Gr, d as Kr, f as qr, g as Jr, h as Yr, n as Xr, r as Zr, t as Qr, v as $r } from "./DraggableItem-HJ4Wt8qx.mjs";
118
+ import { r as ei, t as ti } from "./Chart-BLXiGOie.mjs";
119
119
  import { a as ni, t as ri } from "./transformData-ow-ma1SZ.mjs";
120
- import { a as ii, c as ai, i as oi, l as si, n as ci, o as li } from "./RadioButton-DvzkXfzO.mjs";
121
- import { $ as ui, F as di, G as fi, I as pi, J as mi, K as hi, L as gi, M as _i, N as vi, P as yi, Q as bi, R as xi, U as Si, W as Ci, X as wi, Y as Ti, Z as Ei, a as Di, c as Oi, et as ki, f as Ai, i as ji, l as Mi, m as Ni, n as Pi, p as Fi, q as Ii, r as Li, s as Ri, t as zi, w as Bi, z as Vi } from "./cardQueryError-3MGl4pbM.mjs";
120
+ import { a as ii, c as ai, i as oi, l as si, n as ci, o as li } from "./RadioButton-BagXnWOk.mjs";
121
+ import { $ as ui, F as di, G as fi, I as pi, J as mi, K as hi, L as gi, M as _i, N as vi, P as yi, Q as bi, R as xi, U as Si, W as Ci, X as wi, Y as Ti, Z as Ei, a as Di, c as Oi, et as ki, f as Ai, i as ji, l as Mi, m as Ni, n as Pi, p as Fi, q as Ii, r as Li, s as Ri, t as zi, w as Bi, z as Vi } from "./cardQueryError-Jo2LkSBF.mjs";
122
122
  import { n as Hi, t as Ui } from "./cardActions-BLBLsjcd.mjs";
123
123
  import { t as Wi } from "./loading-state-C-J1F-xq.mjs";
124
- import { t as Gi } from "./useGuesTokenUsageLog-BtooXte_.mjs";
125
- import { c as Ki, i as qi, l as Ji, n as Yi, o as Xi, r as Zi, s as Qi, t as $i } from "./SortPanel-DQjM_vyk.mjs";
126
- import { a as ea, i as ta, o as na, r as ra, s as ia, t as aa } from "./Table-CvDTChaZ.mjs";
127
- import { t as oa } from "./NoDataFound-N3gF0Pse.mjs";
124
+ import { t as Gi } from "./useGuesTokenUsageLog-BgjAaf3E.mjs";
125
+ import { c as Ki, i as qi, l as Ji, n as Yi, o as Xi, r as Zi, s as Qi, t as $i } from "./SortPanel-DctP-Eyd.mjs";
126
+ import { a as ea, i as ta, o as na, r as ra, s as ia, t as aa } from "./Table-BSKvdU4q.mjs";
127
+ import { t as oa } from "./NoDataFound-C6lIIOZF.mjs";
128
128
  import "./No_data-BIO-IPxg.mjs";
129
- import { t as sa } from "./Panel-BeWefwKs.mjs";
129
+ import { t as sa } from "./Panel-oW--_1YF.mjs";
130
130
  import { t as ca } from "./Switch-CqsadJBs.mjs";
131
131
  import { t as la } from "./shadowContainer-D8nRNNvv.mjs";
132
132
  import { t as ua } from "./Loader-CHJMbWv0.mjs";
133
133
  import { t as da } from "./dist-C0uxSp1k.mjs";
134
- import { n as fa, r as pa, t as ma } from "./createGlobalFilter.module-DisUwLsO.mjs";
135
- import { n as ha, r as ga, t as _a } from "./usePublishArchivedMetrics-CM4KQARj.mjs";
134
+ import { n as fa, r as pa, t as ma } from "./createGlobalFilter.module-Cw_A7yeo.mjs";
135
+ import { n as ha, r as ga, t as _a } from "./usePublishArchivedMetrics-CM7fUNzL.mjs";
136
136
  import * as va from "react";
137
137
  import ya, { Suspense as ba, createContext as xa, createElement as Sa, lazy as Ca, useCallback as wa, useContext as Ta, useEffect as K, useId as Ea, useLayoutEffect as Da, useMemo as q, useRef as J, useState as Y, useSyncExternalStore as Oa } from "react";
138
138
  import { createRoot as ka } from "react-dom/client";
@@ -7405,7 +7405,7 @@ var Kl = {
7405
7405
  disableAutoClose: ["custom", "custom date"].includes(h?.range?.toLowerCase() || ""),
7406
7406
  children: e.datatype === "date" && _.labelType?.toLowerCase() === "custom" && !(h?.fromDate && h?.toDate) ? /* @__PURE__ */ Z("div", {
7407
7407
  className: Ou.customContainer,
7408
- children: /* @__PURE__ */ Z(bn, {
7408
+ children: /* @__PURE__ */ Z(xn, {
7409
7409
  datePickerFormat: i?.datePickerFormat,
7410
7410
  label: "Date Range",
7411
7411
  hideDatePickerOptions: s,
@@ -7499,7 +7499,7 @@ var Kl = {
7499
7499
  disableAutoClose: ["custom", "custom date"].includes(h?.range?.toLowerCase() || ""),
7500
7500
  children: e.datatype === "date" && (g?.value)?.toLowerCase() === "custom" && !(g?.startDate && g?.endDate) ? /* @__PURE__ */ Z("div", {
7501
7501
  className: Ou.customContainer,
7502
- children: /* @__PURE__ */ Z(bn, {
7502
+ children: /* @__PURE__ */ Z(xn, {
7503
7503
  datePickerFormat: i?.datePickerFormat,
7504
7504
  label: "Date Range",
7505
7505
  hideDatePickerOptions: s,
@@ -7779,7 +7779,7 @@ var Kl = {
7779
7779
  value: c || ""
7780
7780
  }, y = (e?.options).find((t) => t.name === e?.value);
7781
7781
  return o ? /* @__PURE__ */ Q(X, { children: [
7782
- p && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(bn, {
7782
+ p && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(xn, {
7783
7783
  datePickerFormat: t?.datePickerFormat,
7784
7784
  label: e.clientLabel || e.name,
7785
7785
  hideDatePickerOptions: r,
@@ -7797,18 +7797,18 @@ var Kl = {
7797
7797
  minDate: p?.restrictionDateFrom ? Ft(p?.restrictionDateFrom, !0) : p?.minDate,
7798
7798
  maxDate: p?.restrictionDateTo ? Ft(p?.restrictionDateTo) : p?.maxDate,
7799
7799
  defaultValues: p?.startDate && p?.endDate && e?.value ? {
7800
- startDate: U(p?.startDate),
7801
- endDate: U(p?.endDate),
7800
+ startDate: An(p?.startDate),
7801
+ endDate: An(p?.endDate),
7802
7802
  timeGrainValue: p?.timeGrainValue || ""
7803
7803
  } : void 0,
7804
7804
  defaultOption: h && h?.startDate && h?.endDate && a?.value ? {
7805
- startDate: U(h?.startDate),
7806
- endDate: U(h?.endDate),
7805
+ startDate: An(h?.startDate),
7806
+ endDate: An(h?.endDate),
7807
7807
  timeGrainValue: h?.timeGrainValue || "",
7808
7808
  value: ""
7809
7809
  } : void 0
7810
7810
  }) }),
7811
- m && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(bn, {
7811
+ m && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(xn, {
7812
7812
  datePickerFormat: t?.datePickerFormat,
7813
7813
  label: e.clientLabel || e.name,
7814
7814
  hideDatePickerOptions: r,
@@ -7832,16 +7832,16 @@ var Kl = {
7832
7832
  maxDate: m?.restrictionDateTo ? Ft(m?.restrictionDateTo) : m?.maxDate,
7833
7833
  maxTime: m?.restrictionDateTo?.startTime,
7834
7834
  defaultValues: m?.startDate && m?.endDate && e?.value ? {
7835
- startDate: U(m?.startDate),
7836
- endDate: U(m?.endDate),
7835
+ startDate: An(m?.startDate),
7836
+ endDate: An(m?.endDate),
7837
7837
  startTime: m?.startTime,
7838
7838
  endTime: m?.endTime,
7839
7839
  isTimeFilter: !0,
7840
7840
  timeGrainValue: m?.timeGrainValue || ""
7841
7841
  } : void 0,
7842
7842
  defaultOption: g?.startDate && g?.endDate && a?.value ? {
7843
- startDate: U(g.startDate),
7844
- endDate: U(g.endDate),
7843
+ startDate: An(g.startDate),
7844
+ endDate: An(g.endDate),
7845
7845
  startTime: g.startTime,
7846
7846
  endTime: g.endTime,
7847
7847
  isTimeFilter: !0,
@@ -7849,7 +7849,7 @@ var Kl = {
7849
7849
  value: ""
7850
7850
  } : void 0
7851
7851
  }) }),
7852
- d && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(bn, {
7852
+ d && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(xn, {
7853
7853
  datePickerFormat: t?.datePickerFormat,
7854
7854
  label: e.clientLabel || e.name,
7855
7855
  hideDatePickerOptions: r,
@@ -7868,13 +7868,13 @@ var Kl = {
7868
7868
  minDate: d?.restrictionDateFrom ? Ft(d?.restrictionDateFrom, !0) : d?.minDate,
7869
7869
  maxDate: d?.restrictionDateTo ? Ft(d?.restrictionDateTo) : d?.maxDate,
7870
7870
  defaultValues: d?.startDate && d?.endDate && e?.value ? {
7871
- startDate: U(d?.startDate),
7872
- endDate: U(d?.endDate),
7871
+ startDate: An(d?.startDate),
7872
+ endDate: An(d?.endDate),
7873
7873
  timeGrainValue: d?.timeGrainValue || ""
7874
7874
  } : void 0,
7875
7875
  defaultOption: f && f?.startDate && f?.endDate ? {
7876
- startDate: U(f?.startDate),
7877
- endDate: U(f?.endDate),
7876
+ startDate: An(f?.startDate),
7877
+ endDate: An(f?.endDate),
7878
7878
  timeGrainValue: f?.timeGrainValue || "",
7879
7879
  value: ""
7880
7880
  } : void 0
@@ -7902,7 +7902,7 @@ var Kl = {
7902
7902
  isAllowSorting: e?.isAllowSorting,
7903
7903
  disableAutoClose: ["custom", "custom date"].includes(y?.range?.toLowerCase() || ""),
7904
7904
  isSearchEnabled: !0,
7905
- children: [e.datatype === "date" && y?.range?.toLowerCase() === "custom date" && /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(bn, {
7905
+ children: [e.datatype === "date" && y?.range?.toLowerCase() === "custom date" && /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(xn, {
7906
7906
  datePickerFormat: t?.datePickerFormat,
7907
7907
  label: e.clientLabel || e.name,
7908
7908
  hideDatePickerOptions: r,
@@ -7919,13 +7919,13 @@ var Kl = {
7919
7919
  minDate: y?.restrictionDateFrom ? Ft(y?.restrictionDateFrom, !0) : y?.minDate,
7920
7920
  maxDate: y?.restrictionDateTo ? Ft(y?.restrictionDateTo) : y?.maxDate,
7921
7921
  defaultValues: y?.startDate && y?.endDate ? {
7922
- startDate: U(y?.startDate),
7923
- endDate: U(y?.endDate),
7922
+ startDate: An(y?.startDate),
7923
+ endDate: An(y?.endDate),
7924
7924
  timeGrainValue: ""
7925
7925
  } : void 0
7926
7926
  }) }), e.datatype === "date" && y?.range?.toLowerCase() === "custom" && !(y?.fromDate && y?.toDate) ? /* @__PURE__ */ Z("div", {
7927
7927
  className: Ou.customContainer,
7928
- children: /* @__PURE__ */ Z(bn, {
7928
+ children: /* @__PURE__ */ Z(xn, {
7929
7929
  datePickerFormat: t?.datePickerFormat,
7930
7930
  isEnableSingleDate: y?.isSingleDate,
7931
7931
  label: Un({
@@ -7950,8 +7950,8 @@ var Kl = {
7950
7950
  maxDate: y?.restrictionDateTo ? Ft(y?.restrictionDateTo) : y?.maxDate,
7951
7951
  maxTime: y?.restrictionDateTo?.startTime,
7952
7952
  defaultValues: y?.startDate && y?.endDate ? {
7953
- startDate: U(y?.startDate),
7954
- endDate: U(y?.endDate),
7953
+ startDate: An(y?.startDate),
7954
+ endDate: An(y?.endDate),
7955
7955
  startTime: y?.startTime,
7956
7956
  endTime: y?.endTime,
7957
7957
  isTimeFilter: y?.isTimeFilter,
@@ -7976,7 +7976,7 @@ var Kl = {
7976
7976
  value: l || ""
7977
7977
  }, b = d.find((t) => t?.value === e?.value), x = d?.some((e) => ["custom", "custom date"].includes(e?.range?.toLowerCase() || ""));
7978
7978
  return o ? /* @__PURE__ */ Q(X, { children: [
7979
- m && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(bn, {
7979
+ m && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(xn, {
7980
7980
  datePickerFormat: t?.datePickerFormat,
7981
7981
  label: e.clientLabel || e.name,
7982
7982
  isMetricFilter: i,
@@ -7992,20 +7992,20 @@ var Kl = {
7992
7992
  }, void 0, t?.timeGrainValue);
7993
7993
  },
7994
7994
  defaultValues: m?.startDate && m?.endDate && e?.value ? {
7995
- startDate: U(m?.startDate),
7996
- endDate: U(m?.endDate),
7995
+ startDate: An(m?.startDate),
7996
+ endDate: An(m?.endDate),
7997
7997
  timeGrainValue: m?.timeGrainValue || ""
7998
7998
  } : void 0,
7999
7999
  minDate: m?.restrictionDateFrom ? Ft(m?.restrictionDateFrom, !0) : m?.minDate,
8000
8000
  maxDate: m?.restrictionDateTo ? Ft(m?.restrictionDateTo) : m?.maxDate,
8001
8001
  defaultOption: g && g?.startDate && g?.endDate && a?.value ? {
8002
- startDate: U(g?.startDate),
8003
- endDate: U(g?.endDate),
8002
+ startDate: An(g?.startDate),
8003
+ endDate: An(g?.endDate),
8004
8004
  timeGrainValue: g?.timeGrainValue || "",
8005
8005
  value: ""
8006
8006
  } : void 0
8007
8007
  }) }),
8008
- h && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(bn, {
8008
+ h && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(xn, {
8009
8009
  datePickerFormat: t?.datePickerFormat,
8010
8010
  label: e.clientLabel || e.name,
8011
8011
  isMetricFilter: i,
@@ -8025,8 +8025,8 @@ var Kl = {
8025
8025
  }, void 0, t?.timeGrainValue);
8026
8026
  },
8027
8027
  defaultValues: h?.startDate && h?.endDate && e?.value ? {
8028
- startDate: U(h?.startDate),
8029
- endDate: U(h?.endDate),
8028
+ startDate: An(h?.startDate),
8029
+ endDate: An(h?.endDate),
8030
8030
  startTime: h?.startTime,
8031
8031
  endTime: h?.endTime,
8032
8032
  isTimeFilter: !0,
@@ -8037,8 +8037,8 @@ var Kl = {
8037
8037
  maxDate: h?.restrictionDateTo ? Ft(h?.restrictionDateTo) : h?.maxDate,
8038
8038
  maxTime: h?.restrictionDateTo?.startTime,
8039
8039
  defaultOption: _?.startDate && _?.endDate && a?.value ? {
8040
- startDate: U(_.startDate),
8041
- endDate: U(_.endDate),
8040
+ startDate: An(_.startDate),
8041
+ endDate: An(_.endDate),
8042
8042
  startTime: _.startTime,
8043
8043
  endTime: _.endTime,
8044
8044
  isTimeFilter: !0,
@@ -8046,7 +8046,7 @@ var Kl = {
8046
8046
  value: ""
8047
8047
  } : void 0
8048
8048
  }) }),
8049
- f && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(bn, {
8049
+ f && /* @__PURE__ */ Z("div", { children: /* @__PURE__ */ Z(xn, {
8050
8050
  datePickerFormat: t?.datePickerFormat,
8051
8051
  label: e.clientLabel || e.name,
8052
8052
  isMetricFilter: i,
@@ -8063,15 +8063,15 @@ var Kl = {
8063
8063
  }, void 0, t?.timeGrainValue);
8064
8064
  },
8065
8065
  defaultValues: f?.startDate && f?.endDate && e?.value ? {
8066
- startDate: U(f?.startDate),
8067
- endDate: U(f?.endDate),
8066
+ startDate: An(f?.startDate),
8067
+ endDate: An(f?.endDate),
8068
8068
  timeGrainValue: f?.timeGrainValue || ""
8069
8069
  } : void 0,
8070
8070
  minDate: f?.restrictionDateFrom ? Ft(f?.restrictionDateFrom, !0) : f?.minDate,
8071
8071
  maxDate: f?.restrictionDateTo ? Ft(f?.restrictionDateTo) : f?.maxDate,
8072
8072
  defaultOption: p && p?.startDate && p?.endDate ? {
8073
- startDate: U(p?.startDate),
8074
- endDate: U(p?.endDate),
8073
+ startDate: An(p?.startDate),
8074
+ endDate: An(p?.endDate),
8075
8075
  timeGrainValue: p?.timeGrainValue || "",
8076
8076
  value: ""
8077
8077
  } : void 0
@@ -8103,7 +8103,7 @@ var Kl = {
8103
8103
  isSearchEnabled: !0,
8104
8104
  children: e.datatype === "date" && b?.range?.toLowerCase() === "custom" && !(b?.fromDate && b?.toDate) ? /* @__PURE__ */ Z("div", {
8105
8105
  className: Ou.customContainer,
8106
- children: /* @__PURE__ */ Z(bn, {
8106
+ children: /* @__PURE__ */ Z(xn, {
8107
8107
  datePickerFormat: t?.datePickerFormat,
8108
8108
  isEnableSingleDate: b?.isSingleDate,
8109
8109
  label: Un({
@@ -8127,8 +8127,8 @@ var Kl = {
8127
8127
  maxDate: b?.restrictionDateTo ? Ft(b?.restrictionDateTo) : b?.maxDate,
8128
8128
  maxTime: b?.restrictionDateTo?.startTime,
8129
8129
  defaultValues: b?.startDate && b?.endDate ? {
8130
- startDate: U(b?.startDate),
8131
- endDate: U(b?.endDate),
8130
+ startDate: An(b?.startDate),
8131
+ endDate: An(b?.endDate),
8132
8132
  startTime: b?.startTime,
8133
8133
  endTime: b?.endTime,
8134
8134
  isTimeFilter: b?.isTimeFilter,
@@ -8343,7 +8343,7 @@ var Kl = {
8343
8343
  menuZIndex: 999999999999
8344
8344
  });
8345
8345
  }, Ru = (e) => {
8346
- let { rlsConditions: t, externalMetricId: n, token: r } = e, { data: i, refetch: a } = ke(), o = An(), [s, c] = Y(!1), [l, u] = Y(""), [d, f] = Y(!1), [p, m] = Y(!1), h = Bn(t), g = !!i?.isAllowedToRenameMetricFilters && !!n && !!h, _ = wa(() => {
8346
+ let { rlsConditions: t, externalMetricId: n, token: r } = e, { data: i, refetch: a } = ke(), o = jn(), [s, c] = Y(!1), [l, u] = Y(""), [d, f] = Y(!1), [p, m] = Y(!1), h = Bn(t), g = !!i?.isAllowedToRenameMetricFilters && !!n && !!h, _ = wa(() => {
8347
8347
  c(!1), u(""), m(!1);
8348
8348
  }, []), v = wa(async () => {
8349
8349
  let e = l.trim(), s = t?.clientLabel || t?.name || "";
@@ -8511,11 +8511,11 @@ var zu = "data:image/svg+xml,%3csvg%20width='56'%20height='59'%20viewBox='0%200%
8511
8511
  };
8512
8512
  }
8513
8513
  }, [c]);
8514
- let D = () => /* @__PURE__ */ Q(Cn, {
8514
+ let D = () => /* @__PURE__ */ Q(wn, {
8515
8515
  direction: "col",
8516
8516
  className: "dbn:gap-2 dbn:w-full dbn:h-[90%] dbn:grow dbn:text-sm",
8517
8517
  alignItems: "center",
8518
- children: [E ? /* @__PURE__ */ Z(Cn, {
8518
+ children: [E ? /* @__PURE__ */ Z(wn, {
8519
8519
  alignItems: "center",
8520
8520
  justify: "end",
8521
8521
  className: "dbn:w-full",
@@ -9780,7 +9780,7 @@ var zu = "data:image/svg+xml,%3csvg%20width='56'%20height='59'%20viewBox='0%200%
9780
9780
  children: "Drag and Drop your Measures here"
9781
9781
  }) : null
9782
9782
  ]
9783
- }), /* @__PURE__ */ Z(Cn, {
9783
+ }), /* @__PURE__ */ Z(wn, {
9784
9784
  alignItems: "center",
9785
9785
  justify: "center",
9786
9786
  children: /* @__PURE__ */ Z(Xi, { props: {
@@ -10214,7 +10214,7 @@ var zu = "data:image/svg+xml,%3csvg%20width='56'%20height='59'%20viewBox='0%200%
10214
10214
  buttonWidth: "100%",
10215
10215
  menuWidth: "100%",
10216
10216
  menuZIndex: 9999999
10217
- }), /* @__PURE__ */ Z(bn, {
10217
+ }), /* @__PURE__ */ Z(xn, {
10218
10218
  label: e.customType?.value === "singleDate" ? Lt : Vn,
10219
10219
  isEnableSingleDate: e.customType?.value === "singleDate",
10220
10220
  defaultValues: e.customDate?.startDate && e.customDate?.endDate ? {
@@ -10554,7 +10554,7 @@ var zu = "data:image/svg+xml,%3csvg%20width='56'%20height='59'%20viewBox='0%200%
10554
10554
  }) : null,
10555
10555
  C ? /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z("div", {
10556
10556
  className: "dbn:mt-1",
10557
- children: /* @__PURE__ */ Z(Sn, {
10557
+ children: /* @__PURE__ */ Z(Cn, {
10558
10558
  label: "Default Value",
10559
10559
  defaultValues: c.rangeDefaultValue,
10560
10560
  onChange: (e) => l((t) => ({
@@ -10574,7 +10574,7 @@ var zu = "data:image/svg+xml,%3csvg%20width='56'%20height='59'%20viewBox='0%200%
10574
10574
  }) : null] }) : null,
10575
10575
  w && c.dateVariant.value === "selection" ? /* @__PURE__ */ Z("div", {
10576
10576
  className: "dbn:mt-1",
10577
- children: /* @__PURE__ */ Z(bn, {
10577
+ children: /* @__PURE__ */ Z(xn, {
10578
10578
  label: "Default Value",
10579
10579
  hideDatePickerOptions: ["Life Time"],
10580
10580
  isEnableSingleDate: c.dateSelectionType.value === "singleDate",
@@ -11836,17 +11836,17 @@ var Pf = (e) => s, Ff = () => {
11836
11836
  isOpen: r,
11837
11837
  onClose: () => i(!1),
11838
11838
  zIndex: 9999999999999,
11839
- customHeader: /* @__PURE__ */ Q(Cn, {
11839
+ customHeader: /* @__PURE__ */ Q(wn, {
11840
11840
  className: "dbn:w-full",
11841
11841
  justify: "between",
11842
- children: [/* @__PURE__ */ Q(Cn, {
11842
+ children: [/* @__PURE__ */ Q(wn, {
11843
11843
  direction: "col",
11844
11844
  className: "dbn:gap-1 dbn:min-w-0",
11845
11845
  children: [/* @__PURE__ */ Q("span", { children: ["Underlying Data", e ? `: ${e}` : ""] }), t ? /* @__PURE__ */ Q("span", {
11846
11846
  className: "dbn:text-sm dbn:opacity-70",
11847
11847
  children: [Bi(t).map(({ label: e, value: t }) => `${e}: ${t}`).join(", "), t.measure?.formatted ? ` (${t.measure.label || t.measure.columnName || "Value"}: ${t.measure.formatted})` : ""]
11848
11848
  }) : null]
11849
- }), /* @__PURE__ */ Q(Cn, {
11849
+ }), /* @__PURE__ */ Q(wn, {
11850
11850
  className: "dbn:gap-3",
11851
11851
  alignItems: "center",
11852
11852
  children: [
@@ -11858,7 +11858,7 @@ var Pf = (e) => s, Ff = () => {
11858
11858
  placeholder: "Search",
11859
11859
  style: { maxWidth: "249px" }
11860
11860
  }),
11861
- /* @__PURE__ */ Z(Mm, {
11861
+ /* @__PURE__ */ Z(Nm, {
11862
11862
  menuWidth: "260px",
11863
11863
  items: Te,
11864
11864
  buttonContent: /* @__PURE__ */ Z(He, {
@@ -11963,7 +11963,7 @@ var Pf = (e) => s, Ff = () => {
11963
11963
  !b.length && !S && w ? /* @__PURE__ */ Z("div", {
11964
11964
  className: If.loading,
11965
11965
  role: "alert",
11966
- children: /* @__PURE__ */ Q(Cn, {
11966
+ children: /* @__PURE__ */ Q(wn, {
11967
11967
  direction: "col",
11968
11968
  alignItems: "center",
11969
11969
  className: "dbn:gap-2",
@@ -12133,7 +12133,7 @@ var Pf = (e) => s, Ff = () => {
12133
12133
  n && o === "metricSummary" ? /* @__PURE__ */ Q("div", {
12134
12134
  className: "dbn:flex dbn:flex-col dbn:items-center dbn:justify-center dbn:gap-2",
12135
12135
  children: [
12136
- /* @__PURE__ */ Z(wn, {
12136
+ /* @__PURE__ */ Z(U, {
12137
12137
  name: "noSummary",
12138
12138
  width: 60
12139
12139
  }),
@@ -12223,7 +12223,7 @@ var Pf = (e) => s, Ff = () => {
12223
12223
  let dt = q(() => ({
12224
12224
  ...e,
12225
12225
  filters: e?.filters?.filter((e) => !e?.restrictedMetrics?.some((e) => e.value === i?.id))
12226
- }), [e, i]), ft = J(null), [pt, mt] = Y(!1), [ht, gt] = Y([]), { dataDb: vt, getUnderlyingData: yt, handleChartClick: bt, columnName: xt, setShowChartPopup: St, isShowChartPopup: Ct, isQueryLoading: wt, isMetricUpdating: Tt, chartParams: Dt, underlyingDataPoint: Ot, onChangeFilterValue: kt, onDrillDown: At, drillDownSettings: jt, drilledLevel: Mt, drillBlockedNotice: Nt, filterNotAppliedNotice: Pt, dimensions: H, setTableLimit: Ft, isEnableNextBtn: It, isEnablePrevBtn: Lt, paginationInfo: Rt, onChangePage: zt, isExternalChart: Bt, onDrillLevelClick: Vt, metricFilters: Ht, filterValues: Ut, dynamicOptions: Wt, isSingleValueNull: Gt, isEnableZoom: Kt, containerRef: qt, chartSettings: U, variables: Jt, setChartSettings: Yt, leftPositionedMetricFilters: Xt, rightPositionedMetricFilters: Zt, savedMetricFilters: Qt, updateFilter: $t, drillType: en, drillFilters: tn, underlyingDataColumnMetadata: nn, underlyingDataDrillFilters: rn, tableResultsDownloadData: an, rlsConditions: on, setRlsConditions: sn, appliedMetricFilters: cn, pivotHeaderOptions: ln, pivotDrillState: un, onDrillPivotTable: dn, legendData: fn, timeseriesDimension: pn, isPythonMode: mn, sortOrder: hn, setSortOrder: gn, isNotFirstRender: _n, setNotFirstRender: yn, isSorted: bn, isInavlidForSort: xn, onAddComparison: Sn, groupedRlsConditions: Cn, dataMartRelationships: wn, elementSummary: Tn, elementSummaryError: En, elementSummaryEmpty: Dn, isLoadingSummary: On, stopSummary: kn, queryPermissionDenied: An, metricName: jn, longDescription: Nn, footNote: Pn, description: Fn, drilldownCols: In, switchMeasureOptions: Ln, metricExpressionResult: Rn, dateFilter: zn, tableColumnFilters: Bn, onChangePaginationColumnFilters: Vn, queryError: Hn, refetchMetricData: Un, customSwitchXAxis: Wn, truncationNotice: Gn } = Ai({
12226
+ }), [e, i]), ft = J(null), [pt, mt] = Y(!1), [ht, gt] = Y([]), { dataDb: vt, getUnderlyingData: yt, handleChartClick: bt, columnName: xt, setShowChartPopup: St, isShowChartPopup: Ct, isQueryLoading: wt, isMetricUpdating: Tt, chartParams: Dt, underlyingDataPoint: Ot, onChangeFilterValue: kt, onDrillDown: At, drillDownSettings: jt, drilledLevel: Mt, drillBlockedNotice: Nt, filterNotAppliedNotice: Pt, dimensions: H, setTableLimit: Ft, isEnableNextBtn: It, isEnablePrevBtn: Lt, paginationInfo: Rt, onChangePage: zt, isExternalChart: Bt, onDrillLevelClick: Vt, metricFilters: Ht, filterValues: Ut, dynamicOptions: Wt, isSingleValueNull: Gt, isEnableZoom: Kt, containerRef: qt, chartSettings: U, variables: Jt, setChartSettings: Yt, leftPositionedMetricFilters: Xt, rightPositionedMetricFilters: Zt, savedMetricFilters: Qt, updateFilter: $t, drillType: en, drillFilters: tn, underlyingDataColumnMetadata: nn, underlyingDataDrillFilters: rn, tableResultsDownloadData: an, rlsConditions: on, setRlsConditions: sn, appliedMetricFilters: cn, pivotHeaderOptions: ln, pivotDrillState: un, onDrillPivotTable: dn, legendData: fn, timeseriesDimension: pn, isPythonMode: mn, sortOrder: hn, setSortOrder: gn, isNotFirstRender: _n, setNotFirstRender: bn, isSorted: xn, isInavlidForSort: Sn, onAddComparison: Cn, groupedRlsConditions: wn, dataMartRelationships: Tn, elementSummary: En, elementSummaryError: Dn, elementSummaryEmpty: On, isLoadingSummary: kn, stopSummary: An, queryPermissionDenied: jn, metricName: Mn, longDescription: Nn, footNote: Pn, description: Fn, drilldownCols: In, switchMeasureOptions: Ln, metricExpressionResult: Rn, dateFilter: zn, tableColumnFilters: Bn, onChangePaginationColumnFilters: Vn, queryError: Hn, refetchMetricData: Un, customSwitchXAxis: Wn, truncationNotice: Gn } = Ai({
12227
12227
  token: lt,
12228
12228
  dataMartTables: at,
12229
12229
  setMetricMetadata: $e,
@@ -12379,12 +12379,12 @@ var Pf = (e) => s, Ff = () => {
12379
12379
  Gt
12380
12380
  ]), ir = q(() => zi(st === "column" ? "column" : "join"), [st]), ar = q(() => {
12381
12381
  if (ot) return n(ir);
12382
- if (Hn && !An) return Pi(Hn);
12382
+ if (Hn && !jn) return Pi(Hn);
12383
12383
  }, [
12384
12384
  ot,
12385
12385
  ir,
12386
12386
  Hn,
12387
- An
12387
+ jn
12388
12388
  ]);
12389
12389
  Be("card", ar, { metricId: i?.metricId ?? i?.id });
12390
12390
  let or = !!jt?.configV2?.levels?.find((e) => e?.isEnable)?.filters?.length, { emptyCard: sr } = ui(), [cr, lr] = Y({});
@@ -12456,7 +12456,7 @@ var Pf = (e) => s, Ff = () => {
12456
12456
  query: i?.query,
12457
12457
  metricId: i?.id,
12458
12458
  filters: [...Ar, ...dt?.filters || []]
12459
- }), Nr = !!kt && Ar.length > 0 || !!Re, Pr = Mn(), Fr = Pf(i), Ir = wa(() => {
12459
+ }), Nr = !!kt && Ar.length > 0 || !!Re, Pr = yn(), Fr = Pf(i), Ir = wa(() => {
12460
12460
  kt && Ar.forEach((e) => {
12461
12461
  Array.isArray(e.value) ? kt(e.name, "", void 0, void 0, []) : kt(e.name, "");
12462
12462
  }), Re?.(), Un();
@@ -12467,7 +12467,7 @@ var Pf = (e) => s, Ff = () => {
12467
12467
  Un
12468
12468
  ]), Lr = {
12469
12469
  data: [],
12470
- fileName: jn,
12470
+ fileName: Mn,
12471
12471
  companyIntegrationId: i?.companyIntegrationId,
12472
12472
  integrationName: i?.integrationName,
12473
12473
  isPythonMode: mn,
@@ -12493,7 +12493,7 @@ var Pf = (e) => s, Ff = () => {
12493
12493
  children: /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(W, { name: "download" }) })
12494
12494
  }, Rr = {
12495
12495
  data: [],
12496
- fileName: jn,
12496
+ fileName: Mn,
12497
12497
  companyIntegrationId: i?.companyIntegrationId,
12498
12498
  integrationName: i?.integrationName,
12499
12499
  isPythonMode: mn,
@@ -12596,11 +12596,11 @@ var Pf = (e) => s, Ff = () => {
12596
12596
  className: `${$.metricTitle} ${U?.metricCardSettings?.isEnableTitleWrap ? "dbn:block" : "dbn:truncate"} dbn-metric-card-title ${i?.isMetric ? "" : "dbn:w-full dbn-metric-element-title"}`,
12597
12597
  children: U?.metricCardSettings?.isDisableTitle ? /* @__PURE__ */ Z("span", {
12598
12598
  className: ra.hoverHint,
12599
- children: d ? d(jn) : jn
12600
- }) : d ? d(jn) : jn
12599
+ children: d ? d(Mn) : Mn
12600
+ }) : d ? d(Mn) : Mn
12601
12601
  }),
12602
12602
  Nn && /* @__PURE__ */ Z(Oe, {
12603
- title: jn,
12603
+ title: Mn,
12604
12604
  html: Nn,
12605
12605
  setHoverLongDesc: De
12606
12606
  }),
@@ -12638,11 +12638,11 @@ var Pf = (e) => s, Ff = () => {
12638
12638
  appliedMetricFilters: cn
12639
12639
  });
12640
12640
  },
12641
- children: jn
12642
- }) : jn
12641
+ children: Mn
12642
+ }) : Mn
12643
12643
  }),
12644
12644
  Nn && /* @__PURE__ */ Z(Oe, {
12645
- title: jn,
12645
+ title: Mn,
12646
12646
  html: Nn,
12647
12647
  setHoverLongDesc: De
12648
12648
  }),
@@ -12673,7 +12673,7 @@ var Pf = (e) => s, Ff = () => {
12673
12673
  },
12674
12674
  children: Xe && (M || i?.isMetric && !Qn) ? /* @__PURE__ */ Z("span", {
12675
12675
  className: ra.cardControl,
12676
- children: Xe(M ? jn : i)
12676
+ children: Xe(M ? Mn : i)
12677
12677
  }) : null
12678
12678
  })]
12679
12679
  }),
@@ -12701,7 +12701,7 @@ var Pf = (e) => s, Ff = () => {
12701
12701
  })
12702
12702
  }) : null, /* @__PURE__ */ Z("div", {
12703
12703
  className: Qn ? "dbn:h-9 dbn:w-9" : "",
12704
- children: Or && /* @__PURE__ */ Z(Mm, {
12704
+ children: Or && /* @__PURE__ */ Z(Nm, {
12705
12705
  menuWidth: "260px",
12706
12706
  buttonVariant: "icon",
12707
12707
  buttonIcon: /* @__PURE__ */ Z("span", {
@@ -12732,7 +12732,7 @@ var Pf = (e) => s, Ff = () => {
12732
12732
  seriesField: U?.seriesField || "",
12733
12733
  isFiscal: ze === "ind"
12734
12734
  },
12735
- fileName: jn,
12735
+ fileName: Mn,
12736
12736
  onServerEvent: be,
12737
12737
  companyIntegrationId: i?.companyIntegrationId,
12738
12738
  integrationName: i?.integrationName,
@@ -12766,7 +12766,7 @@ var Pf = (e) => s, Ff = () => {
12766
12766
  seriesField: U?.seriesField || "",
12767
12767
  isFiscal: ze === "ind"
12768
12768
  },
12769
- fileName: jn,
12769
+ fileName: Mn,
12770
12770
  onServerEvent: be,
12771
12771
  isDownloadWithoutFilters: !0,
12772
12772
  companyIntegrationId: i?.companyIntegrationId,
@@ -12887,14 +12887,14 @@ var Pf = (e) => s, Ff = () => {
12887
12887
  variant: "primary",
12888
12888
  className: "cta-primary",
12889
12889
  onClick: () => {
12890
- Sn();
12890
+ Cn();
12891
12891
  },
12892
12892
  children: "Add Comparison"
12893
12893
  })
12894
12894
  ]
12895
- }), Cn && U?.isEnableComparisonFilter && [G.line].includes(U?.chartType) && Object.keys(Cn)?.map((e) => /* @__PURE__ */ Q("div", {
12895
+ }), wn && U?.isEnableComparisonFilter && [G.line].includes(U?.chartType) && Object.keys(wn)?.map((e) => /* @__PURE__ */ Q("div", {
12896
12896
  className: `${$.metricFilters}`,
12897
- children: [Cn?.[e]?.map((e, t) => /* @__PURE__ */ Z(Ru, {
12897
+ children: [wn?.[e]?.map((e, t) => /* @__PURE__ */ Z(Ru, {
12898
12898
  externalMetricId: i?.rlsConditions?.length ? i?.id : void 0,
12899
12899
  encryptedClientId: M ? P || "" : o || "",
12900
12900
  isFrontendApp: M,
@@ -12918,7 +12918,7 @@ var Pf = (e) => s, Ff = () => {
12918
12918
  leftIcon: /* @__PURE__ */ Z(W, { name: "cross" }),
12919
12919
  className: "dbn:h-9 dbn:flex dbn:items-center dbn:justify-center dbn:px-2 dbn:w-full dbn:border dbn:border-secondary dbn:rounded-md",
12920
12920
  onClick: () => {
12921
- Sn(!0);
12921
+ Cn(!0);
12922
12922
  },
12923
12923
  title: "Remove comparison"
12924
12924
  })]
@@ -13128,8 +13128,8 @@ var Pf = (e) => s, Ff = () => {
13128
13128
  wt ? null : /* @__PURE__ */ Q(X, { children: [
13129
13129
  !(nr?.tableSettings?.isEnableColumnFilter && nr?.tableSettings?.isServerSidePagination) && (er ? rr ? /* @__PURE__ */ Z(al, {
13130
13130
  hasActiveFilters: jr,
13131
- state: An ? "permission-denied" : ot || Hn ? "error" : "empty",
13132
- widgetName: jn,
13131
+ state: jn ? "permission-denied" : ot || Hn ? "error" : "empty",
13132
+ widgetName: Mn,
13133
13133
  chartType: U?.chartType,
13134
13134
  noDataImg: fe,
13135
13135
  errorMessage: qn,
@@ -13137,7 +13137,7 @@ var Pf = (e) => s, Ff = () => {
13137
13137
  ...ar,
13138
13138
  detail: void 0
13139
13139
  } : ar,
13140
- onRetry: An || qn || ar?.retryable === !1 ? void 0 : () => {
13140
+ onRetry: jn || qn || ar?.retryable === !1 ? void 0 : () => {
13141
13141
  ot || Un();
13142
13142
  },
13143
13143
  answerLine: Pr && jr ? Fr.title : sr,
@@ -13171,7 +13171,7 @@ var Pf = (e) => s, Ff = () => {
13171
13171
  G.pivotV3,
13172
13172
  G.gauge
13173
13173
  ].includes(U?.chartType) || U?.chartType === G.gauge && i?.clickActions?.chart?.isEnable) && !Ve ? /* @__PURE__ */ Z(Mp, {
13174
- metricTitle: jn,
13174
+ metricTitle: Mn,
13175
13175
  point: Ot,
13176
13176
  isDownloadEnabled: !!S,
13177
13177
  disableDownloadUnderlyingDataNoFilters: Ye,
@@ -13182,7 +13182,7 @@ var Pf = (e) => s, Ff = () => {
13182
13182
  isOpen: Ct,
13183
13183
  setOpen: St,
13184
13184
  isAllowedToSeeUnderlyingData: de,
13185
- isInavlidForSort: xn,
13185
+ isInavlidForSort: Sn,
13186
13186
  isGaugeChart: U?.chartType === G.gauge,
13187
13187
  value: Dt?.name,
13188
13188
  columnName: xt,
@@ -13206,7 +13206,7 @@ var Pf = (e) => s, Ff = () => {
13206
13206
  filteredRawCsvDownloadButtonProps: Rr
13207
13207
  }) : null,
13208
13208
  Zn && Yn ? /* @__PURE__ */ Z(zf, {
13209
- metricTitle: jn,
13209
+ metricTitle: Mn,
13210
13210
  isShowUnderlyingData: Yn,
13211
13211
  setShowUnderlyingData: Xn,
13212
13212
  columnName: void 0,
@@ -13225,7 +13225,7 @@ var Pf = (e) => s, Ff = () => {
13225
13225
  }) : null,
13226
13226
  !ot && (vt?.length || nr?.tableSettings?.isEnableColumnFilter && nr?.tableSettings?.isServerSidePagination) && !Gt ? /* @__PURE__ */ Z(ti, {
13227
13227
  isDashboard: !0,
13228
- title: jn,
13228
+ title: Mn,
13229
13229
  generatingPdf: tt,
13230
13230
  dateFilter: zn,
13231
13231
  language: Me,
@@ -13241,7 +13241,7 @@ var Pf = (e) => s, Ff = () => {
13241
13241
  chartFontSettings: Ue,
13242
13242
  sortOrder: hn,
13243
13243
  seriesName: Dt?.seriesName,
13244
- isSortReversed: bn && [G.row, G.horizontalStack].includes(U?.chartType || ""),
13244
+ isSortReversed: xn && [G.row, G.horizontalStack].includes(U?.chartType || ""),
13245
13245
  chartHeight: ie,
13246
13246
  data: vt,
13247
13247
  isShowFullScreen: !(!a || w || z),
@@ -13328,7 +13328,7 @@ var Pf = (e) => s, Ff = () => {
13328
13328
  hideBorder: !0,
13329
13329
  chartClickConfig: i?.clickActions.chart,
13330
13330
  onChartReady: () => {
13331
- yn(!0);
13331
+ bn(!0);
13332
13332
  },
13333
13333
  opts: { renderer: m },
13334
13334
  onChangePage: zt,
@@ -13361,22 +13361,22 @@ var Pf = (e) => s, Ff = () => {
13361
13361
  ]
13362
13362
  })]
13363
13363
  }),
13364
- !On && !i?.isMetric && !U?.chartType && (i?.elementSettings?.textBox?.text || Tn || En || i?.elementSettings?.elementType?.value === "metricExpression") && !wt ? /* @__PURE__ */ Z("div", {
13364
+ !kn && !i?.isMetric && !U?.chartType && (i?.elementSettings?.textBox?.text || En || Dn || i?.elementSettings?.elementType?.value === "metricExpression") && !wt ? /* @__PURE__ */ Z("div", {
13365
13365
  className: "dbn:w-full dbn:h-[95%] dbn-chart dbn:overflow-auto",
13366
- children: er && Jn === "metricSummary" && !Tn && (Dn || En) ? /* @__PURE__ */ Z(Qf, {
13367
- empty: Dn,
13366
+ children: er && Jn === "metricSummary" && !En && (On || Dn) ? /* @__PURE__ */ Z(Qf, {
13367
+ empty: On,
13368
13368
  textColor: Cr
13369
13369
  }) : /* @__PURE__ */ Z(Yf, {
13370
13370
  elementSettings: i?.elementSettings?.textBox,
13371
- elementSummary: Tn,
13372
- elementSummaryError: En,
13371
+ elementSummary: En,
13372
+ elementSummaryError: Dn,
13373
13373
  elementSummarySettings: i?.elementSettings?.summary,
13374
13374
  metricExpressionResult: Rn,
13375
13375
  metricExpressionSettings: i?.elementSettings?.metricExpression,
13376
13376
  elementType: Jn
13377
13377
  })
13378
13378
  }) : null,
13379
- !On && !wt && !i?.isMetric && i?.elementSettings?.summary?.metricList?.length && !(i?.elementSettings?.textBox?.text || Tn || En) ? er ? /* @__PURE__ */ Z("div", {
13379
+ !kn && !wt && !i?.isMetric && i?.elementSettings?.summary?.metricList?.length && !(i?.elementSettings?.textBox?.text || En || Dn) ? er ? /* @__PURE__ */ Z("div", {
13380
13380
  className: "dbn:w-full dbn:h-full",
13381
13381
  children: /* @__PURE__ */ Z(al, {
13382
13382
  hasActiveFilters: jr,
@@ -13401,7 +13401,7 @@ var Pf = (e) => s, Ff = () => {
13401
13401
  })]
13402
13402
  })
13403
13403
  }) : null,
13404
- On ? /* @__PURE__ */ Q("div", {
13404
+ kn ? /* @__PURE__ */ Q("div", {
13405
13405
  className: "dbn:w-full dbn:h-full dbn:flex dbn:flex-col",
13406
13406
  children: [/* @__PURE__ */ Z("div", {
13407
13407
  className: "dbn:flex-1 dbn:min-h-0",
@@ -13419,7 +13419,7 @@ var Pf = (e) => s, Ff = () => {
13419
13419
  variant: "popover",
13420
13420
  type: "button",
13421
13421
  className: "dbn:px-2 dbn:text-xs dbn:hover:underline dbn:hover:underline-offset-4",
13422
- onClick: () => kn?.(),
13422
+ onClick: () => An?.(),
13423
13423
  children: "Stop"
13424
13424
  })]
13425
13425
  })]
@@ -13468,7 +13468,7 @@ var Pf = (e) => s, Ff = () => {
13468
13468
  })
13469
13469
  }) : null,
13470
13470
  wt && !_n && !le ? /* @__PURE__ */ Z(Zf, {
13471
- metricName: jn,
13471
+ metricName: Mn,
13472
13472
  isTitleHidden: Dr ? !!(L || U?.metricCardSettings?.isDisableTitle) : !!(L ?? U?.metricCardSettings?.isDisableTitle),
13473
13473
  isTitleWrapped: !!U?.metricCardSettings?.isEnableTitleWrap,
13474
13474
  isFrontendHeader: Dr,
@@ -13594,7 +13594,7 @@ var tp = "100% 0px", np = "[data-dbn-card-window=\"managed\"]", rp = (e) => {
13594
13594
  className: da("h-full w-full", r),
13595
13595
  "aria-hidden": "true"
13596
13596
  });
13597
- }, bp = () => import("./MetricCardV2-C2n6LzkA.mjs"), xp = va.lazy(bp), Sp = () => {
13597
+ }, bp = () => import("./MetricCardV2-ndXX9kcc.mjs"), xp = va.lazy(bp), Sp = () => {
13598
13598
  bp().catch(() => {});
13599
13599
  }, Cp = (e) => {
13600
13600
  let { isSectionActive: t } = jf();
@@ -13831,7 +13831,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
13831
13831
  })]
13832
13832
  }), r ? /* @__PURE__ */ Z(Bt, { variant: "list" }) : /* @__PURE__ */ Z("div", {
13833
13833
  className: "dbn:h-[90%] dbn:w-full dbn:overflow-auto",
13834
- children: n?.split("\n").length ? /* @__PURE__ */ Q(Cn, {
13834
+ children: n?.split("\n").length ? /* @__PURE__ */ Q(wn, {
13835
13835
  direction: "col",
13836
13836
  className: "dbn:gap-2",
13837
13837
  children: [n?.split("\n")?.map((e) => /* @__PURE__ */ Z(V, { children: e }, e)), /* @__PURE__ */ Z(B, {
@@ -13889,7 +13889,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
13889
13889
  noTruncate: !0,
13890
13890
  children: "This action can't be undone."
13891
13891
  })]
13892
- }) : /* @__PURE__ */ Q(Cn, {
13892
+ }) : /* @__PURE__ */ Q(wn, {
13893
13893
  direction: "col",
13894
13894
  className: "dbn:gap-4",
13895
13895
  children: [
@@ -13898,7 +13898,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
13898
13898
  noTruncate: !0,
13899
13899
  children: "Deleting this metric will permanently remove it from all dashboards and the metrics list. This action is irreversible. If you need to recover this metric, please do so before proceeding."
13900
13900
  }),
13901
- /* @__PURE__ */ Q(Cn, {
13901
+ /* @__PURE__ */ Q(wn, {
13902
13902
  direction: "col",
13903
13903
  className: "dbn:gap-2",
13904
13904
  children: [/* @__PURE__ */ Z(V, {
@@ -13934,7 +13934,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
13934
13934
  ]
13935
13935
  })]
13936
13936
  }),
13937
- /* @__PURE__ */ Q(Cn, {
13937
+ /* @__PURE__ */ Q(wn, {
13938
13938
  direction: "col",
13939
13939
  className: "dbn:gap-2",
13940
13940
  children: [/* @__PURE__ */ Q(V, {
@@ -14717,7 +14717,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
14717
14717
  })
14718
14718
  }] : []
14719
14719
  ], [v, y] = Y(!1);
14720
- return /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(Mm, {
14720
+ return /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z(Nm, {
14721
14721
  menuWidth: "260px",
14722
14722
  items: _,
14723
14723
  buttonContent: /* @__PURE__ */ Z(He, {
@@ -14777,7 +14777,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
14777
14777
  De,
14778
14778
  E,
14779
14779
  h
14780
- ]), { refetchMetricData: $e, queryError: et, dataDb: tt, drillDownSettings: nt, variables: rt, getUnderlyingData: it, handleChartClick: at, columnName: ot, setShowChartPopup: st, isShowChartPopup: ct, isQueryLoading: lt, chartParams: ut, underlyingDataPoint: dt, onChangeFilterValue: ft, queryPermissionDenied: pt, onDrillDown: mt, drilledLevel: ht, drillBlockedNotice: gt, filterNotAppliedNotice: vt, dimensions: yt, setTableLimit: bt, isEnableNextBtn: St, isEnablePrevBtn: Ct, paginationInfo: wt, onChangePage: Tt, isExternalChart: Et, onDrillLevelClick: Dt, metricFilters: Ot, filterValues: kt, dynamicOptions: At, isSingleValueNull: Mt, isEnableZoom: Nt, containerRef: Pt, chartSettings: H, setChartSettings: Ft, leftPositionedMetricFilters: It, rightPositionedMetricFilters: Lt, savedMetricFilters: Rt, updateFilter: zt, drillFilters: Vt, underlyingDataColumnMetadata: Ht, underlyingDataDrillFilters: Ut, drillType: Wt, tableResultsDownloadData: Gt, filterCsvColumns: Kt, rlsConditions: qt, appliedMetricFilters: U, pivotHeaderOptions: Jt, pivotDrillState: Yt, onDrillPivotTable: Xt, legendData: Qt, timeseriesDimension: $t, isPythonMode: tn, isSorted: nn, isInavlidForSort: rn, sortOrder: an, setSortOrder: on, isNotFirstRender: sn, onAddComparison: cn, groupedRlsConditions: ln, onGenerateMetricSummary: un, summary: dn, setSummary: fn, setNotFirstRender: pn, dataMartRelationships: mn, onChartChange: hn, isCompareValue: gn, isShowChartPropertyPanel: _n, setShowChartPropertyPanel: yn, columnList: bn, metricName: xn, drilldownCols: Sn, switchMeasureOptions: Cn, dateFilter: wn, enabledCharts: Tn, tableColumnFilters: En, onChangePaginationColumnFilters: Dn, customSwitchXAxis: On } = Ai({
14780
+ ]), { refetchMetricData: $e, queryError: et, dataDb: tt, drillDownSettings: nt, variables: rt, getUnderlyingData: it, handleChartClick: at, columnName: ot, setShowChartPopup: st, isShowChartPopup: ct, isQueryLoading: lt, chartParams: ut, underlyingDataPoint: dt, onChangeFilterValue: ft, queryPermissionDenied: pt, onDrillDown: mt, drilledLevel: ht, drillBlockedNotice: gt, filterNotAppliedNotice: vt, dimensions: yt, setTableLimit: bt, isEnableNextBtn: St, isEnablePrevBtn: Ct, paginationInfo: wt, onChangePage: Tt, isExternalChart: Et, onDrillLevelClick: Dt, metricFilters: Ot, filterValues: kt, dynamicOptions: At, isSingleValueNull: Mt, isEnableZoom: Nt, containerRef: Pt, chartSettings: H, setChartSettings: Ft, leftPositionedMetricFilters: It, rightPositionedMetricFilters: Lt, savedMetricFilters: Rt, updateFilter: zt, drillFilters: Vt, underlyingDataColumnMetadata: Ht, underlyingDataDrillFilters: Ut, drillType: Wt, tableResultsDownloadData: Gt, filterCsvColumns: Kt, rlsConditions: qt, appliedMetricFilters: U, pivotHeaderOptions: Jt, pivotDrillState: Yt, onDrillPivotTable: Xt, legendData: Qt, timeseriesDimension: $t, isPythonMode: tn, isSorted: nn, isInavlidForSort: rn, sortOrder: an, setSortOrder: on, isNotFirstRender: sn, onAddComparison: cn, groupedRlsConditions: ln, onGenerateMetricSummary: un, summary: dn, setSummary: fn, setNotFirstRender: pn, dataMartRelationships: mn, onChartChange: hn, isCompareValue: gn, isShowChartPropertyPanel: _n, setShowChartPropertyPanel: bn, columnList: xn, metricName: Sn, drilldownCols: Cn, switchMeasureOptions: wn, dateFilter: Tn, enabledCharts: En, tableColumnFilters: Dn, onChangePaginationColumnFilters: On, customSwitchXAxis: kn } = Ai({
14781
14781
  dataMartTables: De,
14782
14782
  viewMetricData: Ee,
14783
14783
  datasourceId: le,
@@ -14810,7 +14810,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
14810
14810
  drillType: Ke.drillType,
14811
14811
  underlyingDataDrillFilters: Ke.underlyingDataDrillFilters,
14812
14812
  crossDashboardFilters: Ye
14813
- }), { updateExternalMetric: kn, error: An, isLoading: jn, onPublishMetric: Nn } = Dr({
14813
+ }), { updateExternalMetric: An, error: jn, isLoading: Mn, onPublishMetric: Nn } = Dr({
14814
14814
  onServerEvent: oe,
14815
14815
  onSuccess: async () => {
14816
14816
  Ge(!1), f(), Oe?.();
@@ -14992,7 +14992,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
14992
14992
  let nr = (e) => {
14993
14993
  let t = e?.value;
14994
14994
  return Array.isArray(t) ? t.length > 0 : typeof t == "string" ? t.trim() !== "" : t != null;
14995
- }, rr = (Ot ?? []).filter((e) => e && !e.isHiddenInUi && nr(e)), ir = rr.length > 0 || !!Xe?.filters?.length || (qt ?? []).some((e) => e.isAppFilter && e.isAddOnMetrics && nr({ value: x?.values?.[e.name] ?? e.value })), ar = !!ft && rr.length > 0 || !!O, or = Mn(), sr = Pf(t), { emptyCard: cr } = ui(), lr = q(() => et && !pt ? Pi(et) : void 0, [et, pt]);
14995
+ }, rr = (Ot ?? []).filter((e) => e && !e.isHiddenInUi && nr(e)), ir = rr.length > 0 || !!Xe?.filters?.length || (qt ?? []).some((e) => e.isAppFilter && e.isAddOnMetrics && nr({ value: x?.values?.[e.name] ?? e.value })), ar = !!ft && rr.length > 0 || !!O, or = yn(), sr = Pf(t), { emptyCard: cr } = ui(), lr = q(() => et && !pt ? Pi(et) : void 0, [et, pt]);
14996
14996
  Be("card", lr, { metricId: t?.metricId ?? t?.id });
14997
14997
  let ur = wa(() => {
14998
14998
  ft && rr.forEach((e) => {
@@ -15007,7 +15007,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15007
15007
  return /* @__PURE__ */ Q("div", {
15008
15008
  ref: tr,
15009
15009
  role: "dialog",
15010
- "aria-label": xn || "Metric fullscreen view",
15010
+ "aria-label": Sn || "Metric fullscreen view",
15011
15011
  tabIndex: -1,
15012
15012
  className: `${Hf.fullScreen} ${ae ? Hf.fitFull : Hf.screen}`,
15013
15013
  children: [
@@ -15032,7 +15032,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15032
15032
  }),
15033
15033
  /* @__PURE__ */ Z(V, {
15034
15034
  variant: "body-text-1",
15035
- children: xn
15035
+ children: Sn
15036
15036
  }),
15037
15037
  Ze ? /* @__PURE__ */ Z(en, {
15038
15038
  text: "Global Filters are applied.",
@@ -15074,7 +15074,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15074
15074
  variant: "popover",
15075
15075
  type: "button",
15076
15076
  onClick: () => {
15077
- un(), yn(!1), Ie(!1);
15077
+ un(), bn(!1), Ie(!1);
15078
15078
  },
15079
15079
  "aria-label": "AI insights",
15080
15080
  leftIcon: /* @__PURE__ */ Z(He, {
@@ -15137,7 +15137,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15137
15137
  disableDownloadPng: se?.toString() ? se : !1,
15138
15138
  data: (Un ? Kt(Le) : Gt) || [],
15139
15139
  chartRef: je,
15140
- metricName: xn,
15140
+ metricName: Sn,
15141
15141
  onRawCsvData: () => Fe(!0),
15142
15142
  chartOptions: H,
15143
15143
  companyIntegrationId: t.companyIntegrationId,
@@ -15169,7 +15169,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15169
15169
  onClick: () => {
15170
15170
  Nn?.(t);
15171
15171
  },
15172
- isDisabled: jn,
15172
+ isDisabled: Mn,
15173
15173
  "aria-label": t?.isPublished ? "Make metric private" : "Publish metric",
15174
15174
  leftIcon: /* @__PURE__ */ Z("div", {
15175
15175
  className: er ? "" : Hf.backButton,
@@ -15220,7 +15220,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15220
15220
  className: "dbn:w-full dbn:flex dbn:flex-wrap dbn:items-center dbn:gap-2",
15221
15221
  children: [
15222
15222
  H?.dynamicXAxis?.isEnabled ? /* @__PURE__ */ Z(Je, {
15223
- options: [...H?.dynamicXAxis?.options || [], ...H?.dynamicXAxis?.isEnableCustomFields && On || []],
15223
+ options: [...H?.dynamicXAxis?.options || [], ...H?.dynamicXAxis?.isEnableCustomFields && kn || []],
15224
15224
  onChange: (e) => Ft((t) => ({
15225
15225
  ...t,
15226
15226
  dynamicXAxis: {
@@ -15276,7 +15276,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15276
15276
  menuZIndex: 999999999999
15277
15277
  }) : null,
15278
15278
  H?.customSettings?.isEnableSwitchMeasure ? /* @__PURE__ */ Z(Je, {
15279
- options: Cn,
15279
+ options: wn,
15280
15280
  onChange: (e) => Ft((t) => ({
15281
15281
  ...t,
15282
15282
  sankeyValues: [
@@ -15482,7 +15482,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15482
15482
  G.pivotV3,
15483
15483
  G.gauge
15484
15484
  ].includes(H?.chartType) || H.chartType === G.gauge && t.clickActions.chart.isEnable ? /* @__PURE__ */ Z(Mp, {
15485
- metricTitle: xn,
15485
+ metricTitle: Sn,
15486
15486
  point: dt,
15487
15487
  isDownloadEnabled: !!((A || (ce ?? !0)) && In),
15488
15488
  disableDownloadUnderlyingDataNoFilters: Te,
@@ -15563,7 +15563,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15563
15563
  !(zn?.tableSettings?.isEnableColumnFilter && zn?.tableSettings?.isServerSidePagination) && (Bn ? Vn ? /* @__PURE__ */ Z(al, {
15564
15564
  hasActiveFilters: ir,
15565
15565
  state: pt ? "permission-denied" : et ? "error" : "empty",
15566
- widgetName: xn,
15566
+ widgetName: Sn,
15567
15567
  chartType: H?.chartType,
15568
15568
  error: lr,
15569
15569
  onRetry: pt || lr?.retryable === !1 ? void 0 : () => $e(),
@@ -15612,10 +15612,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15612
15612
  }) : null,
15613
15613
  (!lt || sn) && (tt?.length || zn?.tableSettings?.isEnableColumnFilter && zn?.tableSettings?.isServerSidePagination) && !Mt ? /* @__PURE__ */ Z(ti, {
15614
15614
  isDashboard: !0,
15615
- dateFilter: wn,
15615
+ dateFilter: Tn,
15616
15616
  language: fe,
15617
15617
  translationDictionary: R,
15618
- drilldownCols: Sn,
15618
+ drilldownCols: Cn,
15619
15619
  variables: rt,
15620
15620
  isPythonMode: tn,
15621
15621
  onDrillPivotTable: Xt,
@@ -15653,8 +15653,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15653
15653
  className: [G.table, G.trendAnalyzer].includes(H?.chartType || "") ? "" : Hf.chart,
15654
15654
  isEnableDrillDown: t.drillDownSettings?.isEnableGroupBy,
15655
15655
  config: {
15656
- tableColumnFilters: En,
15657
- onChangePaginationColumnFilters: Dn,
15656
+ tableColumnFilters: Dn,
15657
+ onChangePaginationColumnFilters: On,
15658
15658
  ref: je,
15659
15659
  chartClickConfig: t.clickActions?.chart,
15660
15660
  onColumnSizingChange: (e) => Ft((t) => ({
@@ -15688,8 +15688,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15688
15688
  "data-testid": "table-view-chart",
15689
15689
  className: "dbn:flex-1 dbn:border dbn:border-secondary dbn:rounded-2xl dbn:p-6",
15690
15690
  children: /* @__PURE__ */ Z(ei, {
15691
- onChangePaginationColumnFilters: Dn,
15692
- tableColumnFilters: En,
15691
+ onChangePaginationColumnFilters: On,
15692
+ tableColumnFilters: Dn,
15693
15693
  language: fe,
15694
15694
  translationDictionary: R,
15695
15695
  data: Gn,
@@ -15738,28 +15738,28 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15738
15738
  z ? /* @__PURE__ */ Z(kr, { chartTypePanelProps: {
15739
15739
  selectedChart: H.chartType,
15740
15740
  onChartChange: hn,
15741
- enabledCharts: Tn,
15741
+ enabledCharts: En,
15742
15742
  allowedChartTypes: i,
15743
15743
  isOpen: z,
15744
15744
  onClose: () => Ie(!1),
15745
15745
  zIndex: 9999999999,
15746
15746
  inline: !0,
15747
15747
  onClickSettings: () => {
15748
- Ie(!1), yn(!0);
15748
+ Ie(!1), bn(!0);
15749
15749
  }
15750
15750
  } }) : null,
15751
15751
  _n ? /* @__PURE__ */ Z("div", {
15752
15752
  className: Hf.chartPanelContainer,
15753
15753
  children: /* @__PURE__ */ Z(Up, {
15754
15754
  isOpen: _n,
15755
- onClose: () => yn(!1),
15755
+ onClose: () => bn(!1),
15756
15756
  zIndex: 9999999999,
15757
15757
  chartSettings: H,
15758
15758
  setChartSettings: Ft,
15759
- columnList: bn,
15759
+ columnList: xn,
15760
15760
  inline: !0,
15761
15761
  onClickBack: () => {
15762
- yn(!1), Ie(!0);
15762
+ bn(!1), Ie(!0);
15763
15763
  }
15764
15764
  })
15765
15765
  }) : null,
@@ -15810,9 +15810,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15810
15810
  zIndex: 9999999999,
15811
15811
  children: /* @__PURE__ */ Z(Ar, {
15812
15812
  onCancel: () => Ge(!1),
15813
- onSubmit: kn,
15814
- error: An,
15815
- isCreatingMetric: jn,
15813
+ onSubmit: An,
15814
+ error: jn,
15815
+ isCreatingMetric: Mn,
15816
15816
  defaultValues: {
15817
15817
  name: t.name,
15818
15818
  description: t.description,
@@ -15840,8 +15840,32 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15840
15840
  gridDisplay: "_gridDisplay_4ztnv_36",
15841
15841
  gridDisplay2: "_gridDisplay2_4ztnv_40",
15842
15842
  flexDisplay: "_flexDisplay_4ztnv_44"
15843
- }, qp = ({ props: { metricList: e, mainMetricItem: t, metricCardColor: n, isAllowedToChangeLayout: r, isMobileScreen: i, isShadowDisableOnHover: a, disableMetricCardBorder: o, isAllowedToUpdateMetrics: s, isEditLayoutEnabled: c, isHoverLongDesc: l, setOpenElementPanel: u, setUpdateElement: d, isEnableEmailRawCsvDownload: p, setRawCsvModal: m, language: h, translationDictionary: g, datasourceId: _, metricStore: v, setHoverLongDesc: y, setHoverSubHeader: b, setPopupOpen: x, setMetricStore: S, setDownloadMetrics: C, isAllClient: w, clientColumnType: T, noDataImg: E, isAllowedToSeeUnderlyingData: D, chartAppearance: O, hideDatePickerOptions: ee, isDisableMetricLoader: k, onServerEvent: A, workspaceId: te, token: j, userProvidedDashboardId: M, downloadMetrics: N, dropdownTheme: P, underlyingTheme: ne, optionsIcon: re, disableFullscreen: F, enableTitleClickFullscreen: I, setFullScreenModal: L, client: ie, chartColors: ae, isChartColorsExplicit: oe, globalFilters: se, companyTenancyType: ce, appFilters: le, params: ue, isAllowedToDeleteMetrics: de, setArchiveModal: fe, setCrossDashboardFilters: R, crossDashboardFilters: pe, enableCrossFilterBeforeDrill: me, enableMultiMetricFilters: he, enableDownloadCsv: ge, parentHeight: _e, parentWidth: ve, filters: ye, scrollToTop: be, calendarType: xe, isDisableClick: Se, bgColor: Ce, chartFontSettings: we, disableDownloadDataNoFilters: Te = !1, disableDownloadUnderlyingDataNoFilters: Ee = !1, setMetricMetadata: De, viewMetricData: Oe, generatingPdf: Ae, dataMartTables: Me, onEditMetric: Ne, chartClickFunction: Pe, onMetricFiltersChange: Fe, drillUrlState: z, pdfMetricFilters: Ie } }) => {
15844
- let { data: Le } = ke(), Re = Le?.clientSubsetData, [ze, Be] = Y([]), { metricsLayout: Ve, chartHeights: He } = q(() => {
15843
+ }, qp = (e, t) => {
15844
+ let n = [
15845
+ e.originalLabel,
15846
+ e.label,
15847
+ e.name
15848
+ ].filter((e) => !!e);
15849
+ for (let e of n) {
15850
+ let n = t.indexOf(e);
15851
+ if (n >= 0) return n;
15852
+ }
15853
+ return -1;
15854
+ }, Jp = ({ props: { metricList: e, mainMetricItem: t, metricCardColor: n, isAllowedToChangeLayout: r, isMobileScreen: i, isShadowDisableOnHover: a, disableMetricCardBorder: o, isAllowedToUpdateMetrics: s, isEditLayoutEnabled: c, isHoverLongDesc: l, setOpenElementPanel: u, setUpdateElement: d, isEnableEmailRawCsvDownload: p, setRawCsvModal: m, language: h, translationDictionary: g, datasourceId: _, metricStore: v, setHoverLongDesc: y, setHoverSubHeader: b, setPopupOpen: x, setMetricStore: S, setDownloadMetrics: C, isAllClient: w, clientColumnType: T, noDataImg: E, isAllowedToSeeUnderlyingData: D, chartAppearance: O, hideDatePickerOptions: ee, isDisableMetricLoader: k, onServerEvent: A, workspaceId: te, token: j, userProvidedDashboardId: M, downloadMetrics: N, dropdownTheme: P, underlyingTheme: ne, optionsIcon: re, disableFullscreen: F, enableTitleClickFullscreen: I, setFullScreenModal: L, client: ie, chartColors: ae, isChartColorsExplicit: oe, globalFilters: se, companyTenancyType: ce, appFilters: le, params: ue, isAllowedToDeleteMetrics: de, setArchiveModal: fe, setCrossDashboardFilters: R, crossDashboardFilters: pe, enableCrossFilterBeforeDrill: me, enableMultiMetricFilters: he, enableDownloadCsv: ge, parentHeight: _e, parentWidth: ve, filters: ye, scrollToTop: be, calendarType: xe, isDisableClick: Se, bgColor: Ce, chartFontSettings: we, disableDownloadDataNoFilters: Te = !1, disableDownloadUnderlyingDataNoFilters: Ee = !1, setMetricMetadata: De, viewMetricData: Oe, generatingPdf: Ae, dataMartTables: Me, onEditMetric: Ne, chartClickFunction: Pe, onMetricFiltersChange: Fe, drillUrlState: z, pdfMetricFilters: Ie } }) => {
15855
+ let { data: Le } = ke(), Re = Le?.clientSubsetData, ze = q(() => {
15856
+ let e = Le?.externalDashboard?.dashboardFiltersLayout;
15857
+ return Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
15858
+ }, [Le?.externalDashboard?.dashboardFiltersLayout]), Be = q(() => [...ye].sort((e, t) => {
15859
+ let n = qp(e, ze), r = qp(t, ze);
15860
+ if (n >= 0 && r < 0) return -1;
15861
+ if (n < 0 && r >= 0) return 1;
15862
+ if (n >= 0 && r >= 0) {
15863
+ let e = n - r;
15864
+ if (e !== 0) return e;
15865
+ }
15866
+ let i = e.label || e.originalLabel || e.name, a = t.label || t.originalLabel || t.name, o = i.localeCompare(a, void 0, { sensitivity: "base" });
15867
+ return o === 0 ? e.name.localeCompare(t.name, void 0, { sensitivity: "base" }) : o;
15868
+ }), [ye, ze]), [Ve, He] = Y([]), { metricsLayout: Ue, chartHeights: We } = q(() => {
15845
15869
  let n = [];
15846
15870
  return {
15847
15871
  metricsLayout: [t, ...e].map((r) => {
@@ -15876,17 +15900,17 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15876
15900
  e,
15877
15901
  _e,
15878
15902
  ve
15879
- ]), Ue = q(() => [...Ve].sort((e, t) => e.y === t.y ? e.x - t.x : e.y - t.y), [Ve]), We = q(() => fr(null) ? { "data-dbn-card-box": "" } : void 0, []), Ge = q(() => [t, ...e].map((e, _e) => {
15880
- let ve = e?.datasetMetricSettings?.configuration?.table?.joins || [], ye = e?.datasetMetricSettings?.configuration, ke = Re?.relationships || [], Le = !!e?.datasetMetricSettings, Be = li({
15903
+ ]), Ge = q(() => [...Ue].sort((e, t) => e.y === t.y ? e.x - t.x : e.y - t.y), [Ue]), Ke = q(() => fr(null) ? { "data-dbn-card-box": "" } : void 0, []), qe = q(() => [t, ...e].map((e, _e) => {
15904
+ let ve = e?.datasetMetricSettings?.configuration?.table?.joins || [], ye = e?.datasetMetricSettings?.configuration, ke = Re?.relationships || [], Le = !!e?.datasetMetricSettings, ze = li({
15881
15905
  metric: e,
15882
15906
  principal: { isAllClient: w },
15883
15907
  tenancyLevel: ce
15884
- }).isClientOwned, Ue = Le && Be && !si(ve, ke, e?.isCreatedByClient, ce, e?.integrationName, ye?.table), Ge = Re?.tableList, Ke = Le && Be && !ai(ye, Ge, e?.isCreatedByClient, ce, e?.integrationName), qe = He.find((t) => t.id === e?.id)?.height, Je = e.isMetric, Ye = t?.chartOptions?.mergedCards || [], Xe = !!e?.elementSettings?.isDisableCardAppearance, Ze = (!Je && !Xe || Je) && !n ? "dbn-white" : "", Qe = r ? Kp["MetricList-wrapper-move"] : "", $e = o ? "dbn:border-0" : "", et = !Je && !Xe || Je ? "dbn-metric-card-container" : "", tt = `${Kp["MetricList-wrapper"]} ${Ze} ${Qe} ${$e} ${et} dbn:shadow-none !important`, nt = () => {
15908
+ }).isClientOwned, Be = Le && ze && !si(ve, ke, e?.isCreatedByClient, ce, e?.integrationName, ye?.table), He = Re?.tableList, Ge = Le && ze && !ai(ye, He, e?.isCreatedByClient, ce, e?.integrationName), qe = We.find((t) => t.id === e?.id)?.height, Je = e.isMetric, Ye = t?.chartOptions?.mergedCards || [], Xe = !!e?.elementSettings?.isDisableCardAppearance, Ze = (!Je && !Xe || Je) && !n ? "dbn-white" : "", Qe = r ? Kp["MetricList-wrapper-move"] : "", $e = o ? "dbn:border-0" : "", et = !Je && !Xe || Je ? "dbn-metric-card-container" : "", tt = `${Kp["MetricList-wrapper"]} ${Ze} ${Qe} ${$e} ${et} dbn:shadow-none !important`, nt = () => {
15885
15909
  !Je && s && !c && (u(!0), d(e));
15886
15910
  }, rt = {
15887
15911
  cursor: "auto",
15888
15912
  backgroundColor: Ce,
15889
- zIndex: l ? Ve.length - _e : 10,
15913
+ zIndex: l ? Ue.length - _e : 10,
15890
15914
  maxWidth: "100%"
15891
15915
  }, it = (e, t) => {
15892
15916
  C(t ? (n) => [...n, {
@@ -15924,12 +15948,12 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15924
15948
  style: rt,
15925
15949
  onClick: nt,
15926
15950
  "data-testid": `${e?.name?.toLowerCase().replaceAll(" ", "-")}-card`,
15927
- ...We,
15951
+ ...Ke,
15928
15952
  children: /* @__PURE__ */ Z(ep, {
15929
15953
  token: j,
15930
15954
  userProvidedDashboardId: M,
15931
- isJoinMismatch: Ue || Ke,
15932
- mismatchReason: Ue ? "join" : Ke ? "column" : void 0,
15955
+ isJoinMismatch: Be || Ge,
15956
+ mismatchReason: Be ? "join" : Ge ? "column" : void 0,
15933
15957
  dataMartTables: Me,
15934
15958
  viewMetricData: Oe,
15935
15959
  setMetricMetadata: De,
@@ -15991,7 +16015,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
15991
16015
  isDashboardChartColorsExplicit: oe,
15992
16016
  globalFilters: {
15993
16017
  tableName: se?.tableName || "",
15994
- filters: [...se?.filters || [], ...ze?.filter((e) => e?.value)?.map((e) => je(e))]
16018
+ filters: [...se?.filters || [], ...Ve?.filter((e) => e?.value)?.map((e) => je(e))]
15995
16019
  },
15996
16020
  param: ue?.find((t) => t.metricId === e.metricId),
15997
16021
  appFilters: le?.find((t) => t.metricId === e.metricId),
@@ -16020,15 +16044,15 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16020
16044
  Te,
16021
16045
  Ee,
16022
16046
  t,
16023
- Ue,
16047
+ Ge,
16024
16048
  e,
16025
- He,
16049
+ We,
16026
16050
  n,
16027
16051
  Ce,
16028
16052
  r,
16029
16053
  o,
16030
16054
  l,
16031
- Ve.length,
16055
+ Ue.length,
16032
16056
  p,
16033
16057
  h,
16034
16058
  g,
@@ -16062,7 +16086,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16062
16086
  oe,
16063
16087
  se?.tableName,
16064
16088
  se?.filters,
16065
- ze,
16089
+ Ve,
16066
16090
  ue,
16067
16091
  le,
16068
16092
  ce,
@@ -16086,8 +16110,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16086
16110
  Fe,
16087
16111
  M,
16088
16112
  Ie,
16089
- We
16090
- ]), Ke = q(() => t?.chartOptions?.isNewLayout, [t?.chartOptions?.isNewLayout]);
16113
+ Ke
16114
+ ]), Je = q(() => t?.chartOptions?.isNewLayout, [t?.chartOptions?.isNewLayout]);
16091
16115
  return /* @__PURE__ */ Q(X, { children: [!!ye?.length && /* @__PURE__ */ Z("div", {
16092
16116
  className: "dbn:w-full dbn:flex dbn:gap-2 dbn:p-2 dbn:items-end dbn:z-[19] dbn:justify-start",
16093
16117
  children: /* @__PURE__ */ Z(Ut, {
@@ -16098,11 +16122,11 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16098
16122
  isEditLayoutEnabled: !1,
16099
16123
  clientColumnType: T,
16100
16124
  hideDatePickerOptions: [],
16101
- appliedfilters: ze,
16102
- setAppliedFilters: Be,
16125
+ appliedfilters: Ve,
16126
+ setAppliedFilters: He,
16103
16127
  filters: [{
16104
16128
  tableName: "",
16105
- columns: ye
16129
+ columns: Be
16106
16130
  }],
16107
16131
  internal: {
16108
16132
  isInternal: !0,
@@ -16121,7 +16145,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16121
16145
  datasourceId: _
16122
16146
  })
16123
16147
  }), /* @__PURE__ */ Z(Dn, {
16124
- layouts: { lg: Ue },
16148
+ layouts: { lg: Ge },
16125
16149
  rowHeight: 30,
16126
16150
  breakpoints: {
16127
16151
  lg: 1800,
@@ -16131,11 +16155,11 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16131
16155
  xxs: 0
16132
16156
  },
16133
16157
  cols: {
16134
- lg: Ke && ve || 12,
16135
- md: Ke && ve || 12,
16136
- sm: Ke && ve || 12,
16137
- xs: Ke && ve || 4,
16138
- xxs: Ke && ve || 2
16158
+ lg: Je && ve || 12,
16159
+ md: Je && ve || 12,
16160
+ sm: Je && ve || 12,
16161
+ xs: Je && ve || 4,
16162
+ xxs: Je && ve || 2
16139
16163
  },
16140
16164
  margin: [10, 10],
16141
16165
  containerPadding: [0, 0],
@@ -16143,9 +16167,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16143
16167
  isDraggable: !1,
16144
16168
  isDroppable: !1,
16145
16169
  isResizable: !1,
16146
- children: Ge
16170
+ children: qe
16147
16171
  }, c ? "reset" : "default")] });
16148
- }, Jp = ({ createElementPanelProps: { isOpen: e, onClose: t, element: n, clientId: r, companyId: i, externalDashboardId: a, userProvidedDashboardId: o, onServerEvent: s, refetchDashboardData: c } }) => {
16172
+ }, Yp = ({ createElementPanelProps: { isOpen: e, onClose: t, element: n, clientId: r, companyId: i, externalDashboardId: a, userProvidedDashboardId: o, onServerEvent: s, refetchDashboardData: c } }) => {
16149
16173
  let [l, u] = Y(!1), [d, f] = Y(!1), { updateExternalMetric: p, error: m, isLoading: h, setValue: g, watch: _, register: v, handleSubmit: y, reset: b, control: x } = Dr({
16150
16174
  onSuccess: async () => {
16151
16175
  t(), c?.();
@@ -16490,7 +16514,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16490
16514
  children: "Add link"
16491
16515
  })] })]
16492
16516
  })] });
16493
- }, Yp = "#18181B", Xp = "#FFFFFF", Zp = (e, t, n) => Math.min(Math.max(e, t), n), Qp = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth", $p = (e) => {
16517
+ }, Xp = "#18181B", Zp = "#FFFFFF", Qp = (e, t, n) => Math.min(Math.max(e, t), n), $p = () => window.matchMedia?.("(prefers-reduced-motion: reduce)").matches ? "auto" : "smooth", em = (e) => {
16494
16518
  let t = e.trim().match(/^#([0-9a-f]{3,8})$/i)?.[1];
16495
16519
  if (!t) return null;
16496
16520
  if (t.length === 3 || t.length === 4) {
@@ -16498,45 +16522,45 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16498
16522
  return `#${e}${e}${n}${n}${r}${r}`;
16499
16523
  }
16500
16524
  return t.length >= 6 ? `#${t.slice(0, 6)}` : null;
16501
- }, em = (e) => {
16525
+ }, tm = (e) => {
16502
16526
  let t = e.trim().match(/^rgba?\(\s*([\d.]+)[\s,]+([\d.]+)[\s,]+([\d.]+)/i);
16503
16527
  if (!t) return null;
16504
16528
  let n = (e) => Math.min(Math.max(Math.round(Number(e)), 0), 255).toString(16).padStart(2, "0");
16505
16529
  return `#${n(t[1])}${n(t[2])}${n(t[3])}`;
16506
- }, tm = (e) => {
16530
+ }, nm = (e) => {
16507
16531
  if (!e) return null;
16508
- let t = $p(e) ?? em(e);
16532
+ let t = em(e) ?? tm(e);
16509
16533
  if (t) return t;
16510
16534
  if (typeof document > "u") return null;
16511
16535
  let n = document.createElement("span");
16512
16536
  if (n.style.color = e, !n.style.color) return null;
16513
16537
  n.style.display = "none", document.body.appendChild(n);
16514
16538
  let r = window.getComputedStyle(n).color;
16515
- return n.remove(), em(r);
16516
- }, nm = (e) => {
16539
+ return n.remove(), tm(r);
16540
+ }, rm = (e) => {
16517
16541
  let t = e.startsWith("#") ? e.slice(1) : e, n = parseInt(t, 16), r = n >> 16 & 255, i = n >> 8 & 255, a = n & 255;
16518
16542
  return .299 * r + .587 * i + .114 * a < 128;
16519
- }, rm = (e, { headerFollowsDashboardTheme: t = !1 } = {}) => {
16520
- let n = tm(e), r = nm(n ?? Xp), i = r ? Xp : Yp;
16543
+ }, im = (e, { headerFollowsDashboardTheme: t = !1 } = {}) => {
16544
+ let n = nm(e), r = rm(n ?? Zp), i = r ? Zp : Xp;
16521
16545
  return {
16522
16546
  isDark: r,
16523
16547
  accent: i,
16524
- surface: n ?? Xp,
16525
- headerProgressAccent: t ? i : Yp
16548
+ surface: n ?? Zp,
16549
+ headerProgressAccent: t ? i : Xp
16526
16550
  };
16527
- }, im = (e, t) => {
16551
+ }, am = (e, t) => {
16528
16552
  let n = new Map(t.map((e) => [e.i, e])), r = new Set(e.map((e) => e.i));
16529
16553
  return [...e.map((e) => n.get(e.i) ?? e), ...t.filter((e) => !r.has(e.i))];
16530
- }, am = (e, t) => e.length === t.length && e.every((e, n) => {
16554
+ }, om = (e, t) => e.length === t.length && e.every((e, n) => {
16531
16555
  let r = t[n];
16532
16556
  return e.i === r?.i && e.x === r.x && e.y === r.y && e.w === r.w && e.h === r.h;
16533
- }), om = (e, t) => e.x < t.x + t.w && e.x + e.w > t.x && e.y < t.y + t.h && e.y + e.h > t.y, sm = (e, t, n = /* @__PURE__ */ new Set()) => {
16557
+ }), sm = (e, t) => e.x < t.x + t.w && e.x + e.w > t.x && e.y < t.y + t.h && e.y + e.h > t.y, cm = (e, t, n = /* @__PURE__ */ new Set()) => {
16534
16558
  let r = e.map((e) => {
16535
16559
  let n = Math.max(1, Math.min(e.w, t));
16536
16560
  return {
16537
16561
  ...e,
16538
16562
  w: n,
16539
- x: Zp(e.x, 0, t - n),
16563
+ x: Qp(e.x, 0, t - n),
16540
16564
  y: Math.max(e.y, 0)
16541
16565
  };
16542
16566
  }), i = /* @__PURE__ */ new Map(), a = r.filter((e) => n.has(e.i));
@@ -16549,17 +16573,17 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16549
16573
  ...t,
16550
16574
  y: t.y - 1
16551
16575
  };
16552
- if (a.some((t) => om(e, t))) break;
16576
+ if (a.some((t) => sm(e, t))) break;
16553
16577
  --t.y;
16554
16578
  }
16555
- for (; a.some((e) => om(t, e));) t.y += 1;
16579
+ for (; a.some((e) => sm(t, e));) t.y += 1;
16556
16580
  a.push(t), i.set(t.i, t);
16557
16581
  }), r.map((e) => i.get(e.i) ?? e);
16558
- }, cm = (e, t) => {
16582
+ }, lm = (e, t) => {
16559
16583
  let n = new Map(e.map((e) => [e.i, e])), r = Math.max(...e.map((e) => e.y + e.h), 1);
16560
16584
  return t.every((e) => n.has(e.id)) ? r : Math.max(r, t.length, 1);
16561
- }, lm = (e, t, n) => {
16562
- let r = new Map(e.map((e) => [e.i, e])), i = cm(e, t);
16585
+ }, um = (e, t, n) => {
16586
+ let r = new Map(e.map((e) => [e.i, e])), i = lm(e, t);
16563
16587
  return t.map((e, t) => {
16564
16588
  let a = r.get(e.id), o = a?.x ?? 0, s = a?.y ?? t, c = a?.w ?? n, l = a?.h ?? 1;
16565
16589
  return {
@@ -16572,8 +16596,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16572
16596
  height: Math.max(3, l / i * 148)
16573
16597
  };
16574
16598
  });
16575
- }, um = ({ initialColumns: e, initialLayout: t, onLayoutChange: n }) => {
16576
- let [r, i] = Y([]), [a, o] = Y(e), s = q(() => new Set(r.map((e) => e.i)), [r]), c = q(() => sm(im(t, r), a, s), [
16599
+ }, dm = ({ initialColumns: e, initialLayout: t, onLayoutChange: n }) => {
16600
+ let [r, i] = Y([]), [a, o] = Y(e), s = q(() => new Set(r.map((e) => e.i)), [r]), c = q(() => cm(am(t, r), a, s), [
16577
16601
  t,
16578
16602
  a,
16579
16603
  s,
@@ -16585,12 +16609,12 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16585
16609
  }, []),
16586
16610
  handleLayoutChange: wa((e, t) => {
16587
16611
  let r = [...e];
16588
- i((e) => am(e, r) ? e : r), n?.(r, t);
16612
+ i((e) => om(e, r) ? e : r), n?.(r, t);
16589
16613
  }, [n]),
16590
16614
  minimapLayout: c,
16591
16615
  minimapLayoutColumns: a
16592
16616
  };
16593
- }, dm = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), fm = (e) => {
16617
+ }, fm = (e, t) => e.length === t.length && e.every((e, n) => e === t[n]), pm = (e) => {
16594
16618
  let t = e.ownerDocument?.defaultView;
16595
16619
  if (!t?.getComputedStyle) return 0;
16596
16620
  let n = 0;
@@ -16602,38 +16626,38 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16602
16626
  });
16603
16627
  let r = e.clientHeight / 2;
16604
16628
  return r > 0 ? Math.min(n, r) : n;
16605
- }, pm = (e) => {
16629
+ }, mm = (e) => {
16606
16630
  e.tabIndex < 0 && !e.hasAttribute("tabindex") && e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: !0 });
16607
16631
  let t = e.ownerDocument?.activeElement ?? null;
16608
16632
  if (t === e || e.contains(t)) return !0;
16609
16633
  e.setAttribute("tabindex", "-1"), e.focus({ preventScroll: !0 });
16610
16634
  let n = e.ownerDocument?.activeElement ?? null;
16611
16635
  return n === e || e.contains(n);
16612
- }, mm = (e, t) => {
16613
- let n = t.getBoundingClientRect().top, r = e.getBoundingClientRect().top, i = Math.max(t.scrollHeight - t.clientHeight, 0), a = t.scrollTop + (r - n) - fm(t) - 16;
16636
+ }, hm = (e, t) => {
16637
+ let n = t.getBoundingClientRect().top, r = e.getBoundingClientRect().top, i = Math.max(t.scrollHeight - t.clientHeight, 0), a = t.scrollTop + (r - n) - pm(t) - 16;
16614
16638
  return {
16615
16639
  desired: a,
16616
16640
  maxScrollTop: i,
16617
- top: Zp(a, 0, i)
16641
+ top: Qp(a, 0, i)
16618
16642
  };
16619
- }, hm = (e, t, { isFirstAttempt: n = !0 } = {}) => {
16643
+ }, gm = (e, t, { isFirstAttempt: n = !0 } = {}) => {
16620
16644
  if (!t || typeof t.scrollTo != "function") return e.scrollIntoView({
16621
- behavior: Qp(),
16645
+ behavior: $p(),
16622
16646
  block: "start"
16623
16647
  }), !0;
16624
- let { desired: r, maxScrollTop: i, top: a } = mm(e, t);
16648
+ let { desired: r, maxScrollTop: i, top: a } = hm(e, t);
16625
16649
  return (n || Math.abs(t.scrollTop - a) > 1) && t.scrollTo({
16626
16650
  behavior: "auto",
16627
16651
  top: a
16628
16652
  }), r <= i + 1;
16629
- }, gm = ({ metrics: e, layout: t, layoutColumns: n, dataLimit: r, setDataLimit: i, scrollContainerRef: a, getMetricElement: o }) => {
16653
+ }, _m = ({ metrics: e, layout: t, layoutColumns: n, dataLimit: r, setDataLimit: i, scrollContainerRef: a, getMetricElement: o }) => {
16630
16654
  let [s, c] = Y([]), [l, u] = Y(null), [d, f] = Y(!1), [p, m] = Y(!1), [h, g] = Y(!1), _ = J(null), v = J(null), y = J(/* @__PURE__ */ new Set()), b = J([]), x = J(/* @__PURE__ */ new Map()), S = J(/* @__PURE__ */ new Map()), C = J(null), w = J(null), T = q(() => e.map((e) => e.id), [e]), E = q(() => new Map(T.map((e, t) => [e, t])), [T]), D = wa((e) => {
16631
16655
  if (o) return o(e);
16632
16656
  let t = a.current, n = t?.ownerDocument.getElementById(e) ?? null;
16633
16657
  return n && t?.contains(n) ? n : null;
16634
16658
  }, [o, a]), O = wa(() => {
16635
16659
  let e = Array.from(y.current).map((e) => E.get(e)).filter((e) => e !== void 0).sort((e, t) => e - t);
16636
- dm(b.current, e) || (b.current = e, c(e));
16660
+ fm(b.current, e) || (b.current = e, c(e));
16637
16661
  }, [E]), ee = J(O);
16638
16662
  K(() => {
16639
16663
  ee.current = O;
@@ -16643,8 +16667,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16643
16667
  let n = x.current.get(e) ?? D(e);
16644
16668
  if (!n) return !1;
16645
16669
  t && (k.current = 0);
16646
- let r = hm(n, a.current, { isFirstAttempt: t });
16647
- return k.current += 1, r || k.current >= 6 ? (pm(n), w.current = null, u((t) => t === e ? null : t), r) : (A.current = requestAnimationFrame(() => {
16670
+ let r = gm(n, a.current, { isFirstAttempt: t });
16671
+ return k.current += 1, r || k.current >= 6 ? (mm(n), w.current = null, u((t) => t === e ? null : t), r) : (A.current = requestAnimationFrame(() => {
16648
16672
  A.current = null, w.current === e && te.current(e, { isFirstAttempt: !1 });
16649
16673
  }), !1);
16650
16674
  }, [D, a]);
@@ -16733,7 +16757,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16733
16757
  M,
16734
16758
  i,
16735
16759
  j
16736
- ]), P = q(() => lm(t, e, n), [
16760
+ ]), P = q(() => um(t, e, n), [
16737
16761
  t,
16738
16762
  n,
16739
16763
  e
@@ -16750,7 +16774,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16750
16774
  distance: Infinity
16751
16775
  });
16752
16776
  i.node && N(i.node.index);
16753
- }, [N, P]), re = s[0], F = s.at(-1), I = re === void 0 || F === void 0 ? `1-${Math.min(r, e.length)}` : `${re + 1}-${F + 1}`, L = P.filter((e) => s.includes(e.index)), ie = L.length ? Math.min(...L.map((e) => e.y)) : 6, ae = Zp((L.length ? Math.max(...L.map((e) => e.y + e.height)) : 22) - ie, 16, 148), oe = Zp(ie, 6, 154 - ae), se = re === void 0 || F === void 0 ? 0 : F - re + 1, ce = Math.max(e.length - se, 1), le = re === void 0 || F === void 0 ? 0 : F === e.length - 1 ? 1 : Zp(re / ce, 0, 1), ue = wa(() => {
16777
+ }, [N, P]), re = s[0], F = s.at(-1), I = re === void 0 || F === void 0 ? `1-${Math.min(r, e.length)}` : `${re + 1}-${F + 1}`, L = P.filter((e) => s.includes(e.index)), ie = L.length ? Math.min(...L.map((e) => e.y)) : 6, ae = Qp((L.length ? Math.max(...L.map((e) => e.y + e.height)) : 22) - ie, 16, 148), oe = Qp(ie, 6, 154 - ae), se = re === void 0 || F === void 0 ? 0 : F - re + 1, ce = Math.max(e.length - se, 1), le = re === void 0 || F === void 0 ? 0 : F === e.length - 1 ? 1 : Qp(re / ce, 0, 1), ue = wa(() => {
16754
16778
  v.current && window.clearTimeout(v.current), v.current = window.setTimeout(() => m(!1), 900);
16755
16779
  }, []);
16756
16780
  return {
@@ -16774,7 +16798,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16774
16798
  visibleIndexes: s,
16775
16799
  visibleRange: I
16776
16800
  };
16777
- }, _m = {
16801
+ }, vm = {
16778
16802
  rail: "_rail_1lugz_9",
16779
16803
  panel: "_panel_1lugz_17",
16780
16804
  panelVisible: "_panelVisible_1lugz_24",
@@ -16782,8 +16806,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16782
16806
  map: "_map_1lugz_38",
16783
16807
  nodeButton: "_nodeButton_1lugz_47",
16784
16808
  headerProgress: "_headerProgress_1lugz_63"
16785
- }, vm = ({ metrics: e, layout: t, layoutColumns: n, dataLimit: r, setDataLimit: i, getMetricElement: a, scrollContainerRef: o, railContainerRef: s, headerProgressContainerRef: c, theme: l, headerFollowsDashboardTheme: u = !1 }) => {
16786
- let { headerProgress: d, hold: f, isExpanded: p, isPortalReady: m, isVisible: h, jumpToMetric: g, jumpToNearestNode: _, mapNodes: v, release: y, viewportHeight: b, viewportY: x, visibleIndexes: S, visibleRange: C } = gm({
16809
+ }, ym = ({ metrics: e, layout: t, layoutColumns: n, dataLimit: r, setDataLimit: i, getMetricElement: a, scrollContainerRef: o, railContainerRef: s, headerProgressContainerRef: c, theme: l, headerFollowsDashboardTheme: u = !1 }) => {
16810
+ let { headerProgress: d, hold: f, isExpanded: p, isPortalReady: m, isVisible: h, jumpToMetric: g, jumpToNearestNode: _, mapNodes: v, release: y, viewportHeight: b, viewportY: x, visibleIndexes: S, visibleRange: C } = _m({
16787
16811
  dataLimit: r,
16788
16812
  getMetricElement: a,
16789
16813
  layout: t,
@@ -16799,21 +16823,21 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16799
16823
  e.preventDefault();
16800
16824
  };
16801
16825
  if (!e.length) return null;
16802
- let { accent: E, headerProgressAccent: D, isDark: O, surface: ee } = rm(l?.backgroundColor, { headerFollowsDashboardTheme: u }), k = {
16826
+ let { accent: E, headerProgressAccent: D, isDark: O, surface: ee } = im(l?.backgroundColor, { headerFollowsDashboardTheme: u }), k = {
16803
16827
  backgroundColor: ee,
16804
16828
  borderRadius: "4px"
16805
16829
  }, A = /* @__PURE__ */ Z("div", {
16806
- className: _m.rail,
16830
+ className: vm.rail,
16807
16831
  onBlur: y,
16808
16832
  onFocus: f,
16809
16833
  onMouseEnter: f,
16810
16834
  onMouseLeave: y,
16811
16835
  children: /* @__PURE__ */ Z("aside", {
16812
16836
  "aria-label": "Dashboard minimap",
16813
- className: `dbn:border dbn:border-secondary dbn:bg-white ${_m.panel} ${h || p ? _m.panelVisible : _m.panelHidden}`,
16837
+ className: `dbn:border dbn:border-secondary dbn:bg-white ${vm.panel} ${h || p ? vm.panelVisible : vm.panelHidden}`,
16814
16838
  style: k,
16815
16839
  children: /* @__PURE__ */ Q("div", {
16816
- className: _m.map,
16840
+ className: vm.map,
16817
16841
  onClick: w,
16818
16842
  onDragStart: T,
16819
16843
  children: [/* @__PURE__ */ Q("svg", {
@@ -16868,7 +16892,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16868
16892
  ]
16869
16893
  }), v.map((e) => /* @__PURE__ */ Z("button", {
16870
16894
  "aria-label": e.label,
16871
- className: _m.nodeButton,
16895
+ className: vm.nodeButton,
16872
16896
  onClick: (t) => {
16873
16897
  t.stopPropagation(), g(e.index);
16874
16898
  },
@@ -16885,7 +16909,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16885
16909
  })
16886
16910
  }), te = /* @__PURE__ */ Z("div", {
16887
16911
  "aria-hidden": "true",
16888
- className: _m.headerProgress,
16912
+ className: vm.headerProgress,
16889
16913
  style: {
16890
16914
  backgroundColor: D,
16891
16915
  boxShadow: `0 0 0 1px ${D}`,
@@ -16909,25 +16933,25 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16909
16933
  m && s.current ? Aa(A, s.current) : null,
16910
16934
  m && c?.current ? Aa(te, c.current) : null
16911
16935
  ] });
16912
- }, ym = "data-dbn-scroll-lock", bm = "data-dbn-scroll-lock-overflow", xm = (e) => Number(e.getAttribute(ym)) || 0, Sm = (e) => {
16913
- let t = xm(e);
16914
- t === 0 && (e.setAttribute(bm, e.style.overflow), e.style.overflow = "hidden"), e.setAttribute(ym, String(t + 1));
16915
- }, Cm = (e) => {
16916
- let t = xm(e);
16936
+ }, bm = "data-dbn-scroll-lock", xm = "data-dbn-scroll-lock-overflow", Sm = (e) => Number(e.getAttribute(bm)) || 0, Cm = (e) => {
16937
+ let t = Sm(e);
16938
+ t === 0 && (e.setAttribute(xm, e.style.overflow), e.style.overflow = "hidden"), e.setAttribute(bm, String(t + 1));
16939
+ }, wm = (e) => {
16940
+ let t = Sm(e);
16917
16941
  if (t !== 0) {
16918
16942
  if (t > 1) {
16919
- e.setAttribute(ym, String(t - 1));
16943
+ e.setAttribute(bm, String(t - 1));
16920
16944
  return;
16921
16945
  }
16922
- e.style.overflow = e.getAttribute(bm) ?? "", e.removeAttribute(bm), e.removeAttribute(ym);
16946
+ e.style.overflow = e.getAttribute(xm) ?? "", e.removeAttribute(xm), e.removeAttribute(bm);
16923
16947
  }
16924
- }, wm = (e) => {
16948
+ }, Tm = (e) => {
16925
16949
  K(() => {
16926
16950
  if (!e) return;
16927
16951
  let { body: t } = document;
16928
- return Sm(t), () => Cm(t);
16952
+ return Cm(t), () => wm(t);
16929
16953
  }, [e]);
16930
- }, Tm = {
16954
+ }, Em = {
16931
16955
  "MetricList-container": "_MetricList-container_28oqy_8",
16932
16956
  "MetricList-container-type": "_MetricList-container-type_28oqy_13",
16933
16957
  "MetricList-wrapper": "_MetricList-wrapper_28oqy_16",
@@ -16939,11 +16963,11 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
16939
16963
  gridDisplay2: "_gridDisplay2_28oqy_46",
16940
16964
  flexDisplay: "_flexDisplay_28oqy_50",
16941
16965
  mergedCard: "_mergedCard_28oqy_54"
16942
- }, Em = (e, t) => !!(t && e?.clientDeletedMetrics?.some((e) => e?.clientId === t)), Dm = (e, t) => {
16966
+ }, Dm = (e, t) => !!(t && e?.clientDeletedMetrics?.some((e) => e?.clientId === t)), Om = (e, t) => {
16943
16967
  if (!e?.length) return !1;
16944
16968
  let n = new Set((t ?? []).map((e) => e?.id));
16945
16969
  return e.every((e) => n.has(e?.id));
16946
- }, Om = ({ allMetricsLoaded: e, loadedCardMetadata: t, isShowNoDataFoundScreen: n, hasMismatchedMetric: r, hasArchivedMetrics: i }) => !(!e || t?.some((e) => e?.isDataFound) || !n || r || i), km = ({ customMessages: e, onCreateMetric: t, externalDashboardClientId: n, userIdentifier: r, noDataFoundSvg: i, isShowNoDataFoundScreen: a, chartColors: o, isChartColorsExplicit: s, globalFilters: c, onClearAllFilters: l, dataLimit: u, client: d, companyId: p, isAllowedToUpdateMetrics: m, isAllowedToDeleteMetrics: h, isAllowedToChangeLayout: g, isAllowedToSeeUnderlyingData: _, externalDashboardMetrics: v, isMetricListLoading: y, breakpoint: b, layoutCols: x, layout: S, params: w, companyTenancyType: T = "TABLE", externalDashboardId: E, externalDashboardPk: D, sharingSettingsId: O, appFilters: ee, isHideChartSettings: k, isHideTablePreview: A, enableDownloadCsv: te, enableEmailCsv: j, enableMultiMetricFilters: M, disableFullscreen: N, enableTitleClickFullscreen: P, enableAdhocDrill: ne, enableExcludeFilter: re, enableCrossFilter: F, enableCrossFilterBeforeDrill: I, dropdownTheme: L, underlyingTheme: ie, optionsIcon: ae, token: oe, workspaceId: se, clientColumnType: ce, isShowLoader: le, isEditLayoutEnabled: de, isEnableMetricSummary: fe, hideDatePickerOptions: R, chartAppearance: pe, isAllClient: me, gridMargin: he, isDisableMetricLoader: ge, isShadowDisableOnHover: _e, noDataImg: ve, metricCardColor: be, shouldFitFullScreen: xe, mergedMetrics: Se, metricIndex: Ce, setRowMetrics: we, onServerEvent: Te, disableDownloadPng: Ee, disableMetricCardBorder: De, isMobileScreen: Oe, isAllowToDownloadMetrics: Ae, chartColumns: je, datasourceId: Me, language: Ne, translationDictionary: Pe, metricMergedFilters: Fe, fullScreenModal: z, setFullScreenModal: Ie, calendarType: Le, isDisableClick: Re, onEditMetric: ze, isDataApp: Be, chartFontSettings: Ve, saveDashLayout: He, disableDownloadDataNoFilters: Ue = !1, disableDownloadUnderlyingDataNoFilters: We = !1, rules: Ge = [], setMetricMetadata: Ke, viewMetricData: qe, generatingPdf: Je, dataMartTables: Ye, refetchDashboardData: Xe, setShowSettingsBtn: Ze, chartClickFunction: Qe, allowedChartTypes: $e, onMetricFiltersChange: et, drillUrlState: tt, pdfMetricFilters: nt, setDataLimit: rt, scrollContainerRef: it, minimapRailContainerRef: at, minimapHeaderProgressContainerRef: ot, minimapTheme: st, isShowDashboardMinimap: ct }) => {
16970
+ }, km = ({ allMetricsLoaded: e, loadedCardMetadata: t, isShowNoDataFoundScreen: n, hasMismatchedMetric: r, hasArchivedMetrics: i }) => !(!e || t?.some((e) => e?.isDataFound) || !n || r || i), Am = ({ customMessages: e, onCreateMetric: t, externalDashboardClientId: n, userIdentifier: r, noDataFoundSvg: i, isShowNoDataFoundScreen: a, chartColors: o, isChartColorsExplicit: s, globalFilters: c, onClearAllFilters: l, dataLimit: u, client: d, companyId: p, isAllowedToUpdateMetrics: m, isAllowedToDeleteMetrics: h, isAllowedToChangeLayout: g, isAllowedToSeeUnderlyingData: _, externalDashboardMetrics: v, isMetricListLoading: y, breakpoint: b, layoutCols: x, layout: S, params: w, companyTenancyType: T = "TABLE", externalDashboardId: E, externalDashboardPk: D, sharingSettingsId: O, appFilters: ee, isHideChartSettings: k, isHideTablePreview: A, enableDownloadCsv: te, enableEmailCsv: j, enableMultiMetricFilters: M, disableFullscreen: N, enableTitleClickFullscreen: P, enableAdhocDrill: ne, enableExcludeFilter: re, enableCrossFilter: F, enableCrossFilterBeforeDrill: I, dropdownTheme: L, underlyingTheme: ie, optionsIcon: ae, token: oe, workspaceId: se, clientColumnType: ce, isShowLoader: le, isEditLayoutEnabled: de, isEnableMetricSummary: fe, hideDatePickerOptions: R, chartAppearance: pe, isAllClient: me, gridMargin: he, isDisableMetricLoader: ge, isShadowDisableOnHover: _e, noDataImg: ve, metricCardColor: be, shouldFitFullScreen: xe, mergedMetrics: Se, metricIndex: Ce, setRowMetrics: we, onServerEvent: Te, disableDownloadPng: Ee, disableMetricCardBorder: De, isMobileScreen: Oe, isAllowToDownloadMetrics: Ae, chartColumns: je, datasourceId: Me, language: Ne, translationDictionary: Pe, metricMergedFilters: Fe, fullScreenModal: z, setFullScreenModal: Ie, calendarType: Le, isDisableClick: Re, onEditMetric: ze, isDataApp: Be, chartFontSettings: Ve, saveDashLayout: He, disableDownloadDataNoFilters: Ue = !1, disableDownloadUnderlyingDataNoFilters: We = !1, rules: Ge = [], setMetricMetadata: Ke, viewMetricData: qe, generatingPdf: Je, dataMartTables: Ye, refetchDashboardData: Xe, setShowSettingsBtn: Ze, chartClickFunction: Qe, allowedChartTypes: $e, onMetricFiltersChange: et, drillUrlState: tt, pdfMetricFilters: nt, setDataLimit: rt, scrollContainerRef: it, minimapRailContainerRef: at, minimapHeaderProgressContainerRef: ot, minimapTheme: st, isShowDashboardMinimap: ct }) => {
16947
16971
  let ut = q(() => ({
16948
16972
  emptyCard: e?.emptyCard,
16949
16973
  emptyMetricList: e?.emptyMetricList
@@ -17063,7 +17087,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17063
17087
  }
17064
17088
  } : e.externalMetric;
17065
17089
  }), [v, je]), sn = q(() => on?.filter((e) => !!e?.clientArchivedMetrics?.length), [on]), ln = q(() => {
17066
- let e = on?.filter((e) => !e?.clientArchivedMetrics?.length), t = e?.filter((e) => (!e.isCreatedByClient || e.isCreatedByClient && !e.clientId) && !Em(e, d) && !Se?.includes(e?.id) && !an?.includes(e?.id)), n = e?.filter((e) => e.isCreatedByClient && !!e.clientId && Op({
17090
+ let e = on?.filter((e) => !e?.clientArchivedMetrics?.length), t = e?.filter((e) => (!e.isCreatedByClient || e.isCreatedByClient && !e.clientId) && !Dm(e, d) && !Se?.includes(e?.id) && !an?.includes(e?.id)), n = e?.filter((e) => e.isCreatedByClient && !!e.clientId && Op({
17067
17091
  clientId: d,
17068
17092
  isAllClient: me,
17069
17093
  metric: e
@@ -17183,7 +17207,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17183
17207
  ...t,
17184
17208
  rlsConditions: Jt(Yt(t), t)
17185
17209
  };
17186
- })?.filter((e) => e), le = A?.length || !!j.length, ue = !!e?.elementSettings?.isDisableCardAppearance, fe = !O && !ue || O ? "dbn-metric-card-container" : "", he = e?.chartOptions?.chartType === G.singleValue && e?.chartOptions?.customSettings?.isEnableSingleValueBgColor, ye = he && e?.chartOptions?.customSettings?.singleValueBgColor || "", xe = (!O && !ue || O) && !be && !ye ? "dbn-white" : "", Se = g ? Tm["MetricList-wrapper-move"] : "", Ce = k.length && !Oe ? `dbn-metric-card ${k.length < 2 ? Tm.gridDisplay : Tm.gridDisplay2} ${_e ? "" : Tm.isShowShadow}` : Tm.flexDisplay, we = De ? "dbn:border-0" : "", Ee = `${Tm["MetricList-wrapper"]} ${fe} ${xe} ${Se} ${Ce} ${we} dbn-card-element`, ke = `${Tm["MetricList-wrapper"]} ${fe} ${xe} ${Se} ${we} ${Tm.mergedCard} dbn-card-element`, Ae = () => {
17210
+ })?.filter((e) => e), le = A?.length || !!j.length, ue = !!e?.elementSettings?.isDisableCardAppearance, fe = !O && !ue || O ? "dbn-metric-card-container" : "", he = e?.chartOptions?.chartType === G.singleValue && e?.chartOptions?.customSettings?.isEnableSingleValueBgColor, ye = he && e?.chartOptions?.customSettings?.singleValueBgColor || "", xe = (!O && !ue || O) && !be && !ye ? "dbn-white" : "", Se = g ? Em["MetricList-wrapper-move"] : "", Ce = k.length && !Oe ? `dbn-metric-card ${k.length < 2 ? Em.gridDisplay : Em.gridDisplay2} ${_e ? "" : Em.isShowShadow}` : Em.flexDisplay, we = De ? "dbn:border-0" : "", Ee = `${Em["MetricList-wrapper"]} ${fe} ${xe} ${Se} ${Ce} ${we} dbn-card-element`, ke = `${Em["MetricList-wrapper"]} ${fe} ${xe} ${Se} ${we} ${Em.mergedCard} dbn-card-element`, Ae = () => {
17187
17211
  !O && m && !de && (Ht(!0), Bt(e));
17188
17212
  }, je = !O && !!j?.every((e) => !e?.isMetric) && ue, z;
17189
17213
  z = e?.elementSettings?.elementType?.value ? e?.elementSettings?.elementType?.value : !e?.elementSettings?.elementType?.value && e?.elementSettings?.summary?.metricList?.length ? "metricSummary" : "customTextBox";
@@ -17228,7 +17252,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17228
17252
  ref: (t) => jt(e.id, t),
17229
17253
  style: Ge,
17230
17254
  ...Cn,
17231
- children: /* @__PURE__ */ Z(qp, { props: {
17255
+ children: /* @__PURE__ */ Z(Jp, { props: {
17232
17256
  setMetricMetadata: Ke,
17233
17257
  disableDownloadDataNoFilters: Ue,
17234
17258
  disableDownloadUnderlyingDataNoFilters: We,
@@ -17480,7 +17504,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17480
17504
  Cn,
17481
17505
  Nt
17482
17506
  ]);
17483
- wm(!(N && !z?.isClickOnChart || !z?.show || !z?.metric) && !xe);
17507
+ Tm(!(N && !z?.isClickOnChart || !z?.show || !z?.metric) && !xe);
17484
17508
  let [Tn, En] = Y("");
17485
17509
  K(() => {
17486
17510
  if (i) {
@@ -17502,8 +17526,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17502
17526
  tenancyLevel: T
17503
17527
  }).isClientOwned && !ai(n, e, t?.isCreatedByClient, T, t?.integrationName);
17504
17528
  }), n = new Set((vn ?? []).map((e) => e?.id)), r = new Set(yt), i = (_t ?? []).filter((e) => n.has(e?.id) && r.has(e?.id));
17505
- return Om({
17506
- allMetricsLoaded: Dm(vn, i),
17529
+ return km({
17530
+ allMetricsLoaded: Om(vn, i),
17507
17531
  loadedCardMetadata: i,
17508
17532
  isShowNoDataFoundScreen: a,
17509
17533
  hasMismatchedMetric: t,
@@ -17574,7 +17598,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17574
17598
  bn,
17575
17599
  dn,
17576
17600
  He
17577
- ]), { handleBreakpointChange: Nn, handleLayoutChange: Fn, minimapLayout: In, minimapLayoutColumns: Ln } = um({
17601
+ ]), { handleBreakpointChange: Nn, handleLayoutChange: Fn, minimapLayout: In, minimapLayoutColumns: Ln } = dm({
17578
17602
  initialColumns: x?.lg || 12,
17579
17603
  initialLayout: hn,
17580
17604
  onLayoutChange: Mn
@@ -17589,7 +17613,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17589
17613
  ]), /* @__PURE__ */ Z(bi.Provider, {
17590
17614
  value: ut,
17591
17615
  children: dn.length && pn.length && !On ? /* @__PURE__ */ Q(X, { children: [
17592
- !Je && ct && !xt && rt && it && at && /* @__PURE__ */ Z(vm, {
17616
+ !Je && ct && !xt && rt && it && at && /* @__PURE__ */ Z(ym, {
17593
17617
  dataLimit: u,
17594
17618
  getMetricElement: Mt,
17595
17619
  headerFollowsDashboardTheme: !0,
@@ -17603,7 +17627,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17603
17627
  theme: st
17604
17628
  }),
17605
17629
  /* @__PURE__ */ Q("div", {
17606
- className: `${Tm["MetricList-container"]} ${Tm["MetricList-container-type"]}`,
17630
+ className: `${Em["MetricList-container"]} ${Em["MetricList-container-type"]}`,
17607
17631
  id: "metric-list-container",
17608
17632
  style: xt ? { minHeight: "100px" } : {},
17609
17633
  children: [/* @__PURE__ */ Z(Nf, {
@@ -17831,7 +17855,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17831
17855
  }),
17832
17856
  sharingSettingsId: O
17833
17857
  }),
17834
- /* @__PURE__ */ Z(Jp, { createElementPanelProps: {
17858
+ /* @__PURE__ */ Z(Yp, { createElementPanelProps: {
17835
17859
  onServerEvent: Te,
17836
17860
  refetchDashboardData: Xe,
17837
17861
  isOpen: Vt,
@@ -17845,9 +17869,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17845
17869
  userProvidedDashboardId: E
17846
17870
  } })
17847
17871
  ] }) : /* @__PURE__ */ Z(X, { children: !y && !On ? /* @__PURE__ */ Z("div", {
17848
- className: Tm["noMetric-container"],
17872
+ className: Em["noMetric-container"],
17849
17873
  children: /* @__PURE__ */ Z("div", {
17850
- className: Tm["noMetric-wrapper"],
17874
+ className: Em["noMetric-wrapper"],
17851
17875
  children: sn.length ? /* @__PURE__ */ Z(V, {
17852
17876
  variant: "heading-4",
17853
17877
  children: "All metrics are currently hidden"
@@ -17869,7 +17893,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17869
17893
  })
17870
17894
  })
17871
17895
  }) : /* @__PURE__ */ Z("div", {
17872
- className: Tm["alt-container"],
17896
+ className: Em["alt-container"],
17873
17897
  children: i ? /* @__PURE__ */ Z(X, { children: /* @__PURE__ */ Z("img", {
17874
17898
  src: Tn,
17875
17899
  alt: "no data svg"
@@ -17885,7 +17909,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17885
17909
  })
17886
17910
  }) })
17887
17911
  });
17888
- }, Am = {
17912
+ }, jm = {
17889
17913
  outlined: "_outlined_1wfvw_8",
17890
17914
  normal: "_normal_1wfvw_12",
17891
17915
  buttonText: "_buttonText_1wfvw_16",
@@ -17896,48 +17920,48 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17896
17920
  menuItemRightIcon: "_menuItemRightIcon_1wfvw_33",
17897
17921
  menuItemText: "_menuItemText_1wfvw_37",
17898
17922
  searchTab: "_searchTab_1wfvw_41"
17899
- }, jm = ({ buttonVariant: e = "outlined-text", buttonIcon: t, buttonText: n, buttonWidth: r }) => e === "icon" ? /* @__PURE__ */ Z("div", {
17900
- className: Am.normal,
17923
+ }, Mm = ({ buttonVariant: e = "outlined-text", buttonIcon: t, buttonText: n, buttonWidth: r }) => e === "icon" ? /* @__PURE__ */ Z("div", {
17924
+ className: jm.normal,
17901
17925
  style: { width: r },
17902
17926
  children: t || /* @__PURE__ */ Z(W, {
17903
17927
  name: "chevron-down",
17904
17928
  size: "xl"
17905
17929
  })
17906
17930
  }) : e === "outlined-icon" ? /* @__PURE__ */ Z("div", {
17907
- className: Am.outlined,
17931
+ className: jm.outlined,
17908
17932
  style: { width: r },
17909
17933
  children: t || /* @__PURE__ */ Z(W, {
17910
17934
  name: "chevron-down",
17911
17935
  size: "xl"
17912
17936
  })
17913
17937
  }) : e === "outlined-text-with-icon" ? /* @__PURE__ */ Q("div", {
17914
- className: Am.outlined,
17938
+ className: jm.outlined,
17915
17939
  style: { width: r },
17916
17940
  children: [/* @__PURE__ */ Z("span", {
17917
- className: Am.buttonText,
17941
+ className: jm.buttonText,
17918
17942
  children: n
17919
17943
  }), t || /* @__PURE__ */ Z(W, {
17920
17944
  name: "chevron-down",
17921
17945
  size: "xl"
17922
17946
  })]
17923
17947
  }) : e === "text-with-icon" ? /* @__PURE__ */ Q("div", {
17924
- className: Am.normal,
17948
+ className: jm.normal,
17925
17949
  style: { width: r },
17926
17950
  children: [/* @__PURE__ */ Z("span", {
17927
- className: Am.buttonText,
17951
+ className: jm.buttonText,
17928
17952
  children: n
17929
17953
  }), t || /* @__PURE__ */ Z(W, {
17930
17954
  name: "chevron-down",
17931
17955
  size: "xl"
17932
17956
  })]
17933
17957
  }) : /* @__PURE__ */ Z("div", {
17934
- className: Am.outlined,
17958
+ className: jm.outlined,
17935
17959
  style: { width: r },
17936
17960
  children: /* @__PURE__ */ Z("span", {
17937
- className: Am.buttonText,
17961
+ className: jm.buttonText,
17938
17962
  children: n
17939
17963
  })
17940
- }), Mm = ({ buttonVariant: e = "outlined-text", buttonIcon: t, buttonText: n, offset: r, position: i = "bottom-start", menuWidth: a, buttonWidth: o, buttonContent: s, items: c, children: l, disableAutoClose: u, zIndex: d, getIsOpen: f, isSearchEnabled: p, isDisabled: m }) => {
17964
+ }), Nm = ({ buttonVariant: e = "outlined-text", buttonIcon: t, buttonText: n, offset: r, position: i = "bottom-start", menuWidth: a, buttonWidth: o, buttonContent: s, items: c, children: l, disableAutoClose: u, zIndex: d, getIsOpen: f, isSearchEnabled: p, isDisabled: m }) => {
17941
17965
  let [h, g] = Y(""), _ = q(() => {
17942
17966
  let e = [...c].sort((e, t) => e.isActive && !t.isActive ? -1 : !e.isActive && t.isActive ? 1 : 0);
17943
17967
  return h ? e.filter((e) => e.name.toString()?.toLowerCase().includes(h?.toLowerCase())).sort((e, t) => {
@@ -17948,7 +17972,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17948
17972
  }) || [] : e;
17949
17973
  }, [h, c]);
17950
17974
  return /* @__PURE__ */ Q(hn, {
17951
- buttonContent: s || /* @__PURE__ */ Z(jm, {
17975
+ buttonContent: s || /* @__PURE__ */ Z(Mm, {
17952
17976
  buttonVariant: e,
17953
17977
  buttonIcon: t,
17954
17978
  buttonText: n,
@@ -17963,7 +17987,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17963
17987
  isDisabled: m,
17964
17988
  children: [
17965
17989
  p && /* @__PURE__ */ Z("div", {
17966
- className: Am.searchTab,
17990
+ className: jm.searchTab,
17967
17991
  children: /* @__PURE__ */ Z(gn, {
17968
17992
  setSearchKeyword: g,
17969
17993
  placeholder: "Search",
@@ -17971,22 +17995,22 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17971
17995
  })
17972
17996
  }),
17973
17997
  /* @__PURE__ */ Z("ul", {
17974
- className: Am.menu,
17998
+ className: jm.menu,
17975
17999
  children: _?.map((e) => /* @__PURE__ */ Z("li", {
17976
18000
  "data-testid": e?.name?.toLowerCase().replaceAll(" ", "-").concat("-listItem"),
17977
- className: `${Am.menuItem} ${e.isActive ? Am.activeItem : ""}`,
18001
+ className: `${jm.menuItem} ${e.isActive ? jm.activeItem : ""}`,
17978
18002
  onClick: () => e.onClick?.(e.name),
17979
18003
  children: e.content || /* @__PURE__ */ Q(X, { children: [
17980
18004
  /* @__PURE__ */ Z("span", {
17981
- className: Am.menuItemLeftIcon,
18005
+ className: jm.menuItemLeftIcon,
17982
18006
  children: e.leftIcon
17983
18007
  }),
17984
18008
  /* @__PURE__ */ Z("span", {
17985
- className: Am.menuItemText,
18009
+ className: jm.menuItemText,
17986
18010
  children: e.name
17987
18011
  }),
17988
18012
  /* @__PURE__ */ Z("span", {
17989
- className: Am.menuItemRightIcon,
18013
+ className: jm.menuItemRightIcon,
17990
18014
  children: e.rightIcon
17991
18015
  })
17992
18016
  ] })
@@ -17995,13 +18019,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
17995
18019
  l
17996
18020
  ]
17997
18021
  });
17998
- }, Nm = {
18022
+ }, Pm = {
17999
18023
  autoCompleteInput: "_autoCompleteInput_1eyp3_8",
18000
18024
  autoCompleteItem: "_autoCompleteItem_1eyp3_12",
18001
18025
  dropdownMenu: "_dropdownMenu_1eyp3_16",
18002
18026
  collapseButton: "_collapseButton_1eyp3_20",
18003
18027
  listContainer: "_listContainer_1eyp3_25"
18004
- }, Pm = /(?:starts\s+with|ends\s+with)(?:\s+(\w+))?/i, Fm = RegExp(`(?:${Gn?.map((e) => e.synonyms).flat().join("|")}|not like|like)(?:\\s+(\\w+))+`, "i"), Im = RegExp(`(?:${jn?.map((e) => e.synonymns).flat().join("|")})(?:\\s+(\\w+))+`, "i"), Lm = ({ label: e, selectedOption: t, setSelectedOptions: n, options: r, isDisabled: i, placeholder: a, functionOptions: o, onChangeHelperFunction: s, onChangeAlias: c, position: l = "bottom", setKeyWords: u, isSaveKeyword: d, setSaveKeyword: f, onSubmitSearch: p, setSearchQuestion: m }) => {
18028
+ }, Fm = /(?:starts\s+with|ends\s+with)(?:\s+(\w+))?/i, Im = RegExp(`(?:${Gn?.map((e) => e.synonyms).flat().join("|")}|not like|like)(?:\\s+(\\w+))+`, "i"), Lm = RegExp(`(?:${Mn?.map((e) => e.synonymns).flat().join("|")})(?:\\s+(\\w+))+`, "i"), Rm = ({ label: e, selectedOption: t, setSelectedOptions: n, options: r, isDisabled: i, placeholder: a, functionOptions: o, onChangeHelperFunction: s, onChangeAlias: c, position: l = "bottom", setKeyWords: u, isSaveKeyword: d, setSaveKeyword: f, onSubmitSearch: p, setSearchQuestion: m }) => {
18005
18029
  let [h, g] = Y(""), [_, v] = Y(""), [y, b] = Y(!1), [x, S] = Y(), C = Jt(h, 200), [w, T] = Y(10), [E, D] = Y(), [O, ee] = Y([]), [k, A] = Y(), [te, j] = Y(!1), [M, N] = Y(!1), P = J(null), ne = J(null), re = J(null), [F, I] = Y([]), L = J(null), ie = J(null), ae = q(() => r?.map((e) => {
18006
18030
  let t = e.synonyms?.length ? e?.synonyms?.map((t) => {
18007
18031
  let n = t?.toLowerCase().replace(" ", "\\s+"), r = e.columnSynonyms?.map((e) => `${e}\\s+${n}|${n}\\s+${e}`) || [];
@@ -18027,7 +18051,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18027
18051
  filteredOptions: oe,
18028
18052
  keywords: []
18029
18053
  };
18030
- let e = C.match(Im), t = e ? null : C.match(Pm), n = C.match(Fm), r = t && Gn[0].synonyms.includes(t?.[0]), i = t && Gn[1].synonyms.includes(t?.[0]), a = Gr(C), { keywords: o, questionKeys: s, groupKeywords: c, ascKeywords: l, descKeywords: u, numberKeywords: d } = Kr(a, !!e), f = !!s.length || !!t, p = !!c.length, m = !!l.length, h = !!u.length, g = m || h, _ = !!(n || t), v = Wr(d), y = g ? m ? "ASC" : "DESC" : void 0;
18054
+ let e = C.match(Lm), t = e ? null : C.match(Fm), n = C.match(Im), r = t && Gn[0].synonyms.includes(t?.[0]), i = t && Gn[1].synonyms.includes(t?.[0]), a = Gr(C), { keywords: o, questionKeys: s, groupKeywords: c, ascKeywords: l, descKeywords: u, numberKeywords: d } = Kr(a, !!e), f = !!s.length || !!t, p = !!c.length, m = !!l.length, h = !!u.length, g = m || h, _ = !!(n || t), v = Wr(d), y = g ? m ? "ASC" : "DESC" : void 0;
18031
18055
  if (!o.length) return {
18032
18056
  filteredOptions: $r({
18033
18057
  columnOptions: oe,
@@ -18162,10 +18186,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18162
18186
  },
18163
18187
  children: [/* @__PURE__ */ Q("div", {
18164
18188
  ref: ie,
18165
- className: `${Nm.listContainer} ${te ? "dbn:relative dbn:h-min dbn:z-elevated dbn:border dbn:border-dashed dbn:border-secondary dbn:rounded-lg dbn:m-2" : "dbn:h-full dbn:overflow-y-auto dbn:z-base"}`,
18189
+ className: `${Pm.listContainer} ${te ? "dbn:relative dbn:h-min dbn:z-elevated dbn:border dbn:border-dashed dbn:border-secondary dbn:rounded-lg dbn:m-2" : "dbn:h-full dbn:overflow-y-auto dbn:z-base"}`,
18166
18190
  children: [
18167
18191
  M ? /* @__PURE__ */ Z("div", {
18168
- className: Nm.collapseButton,
18192
+ className: Pm.collapseButton,
18169
18193
  children: te ? /* @__PURE__ */ Z("div", {
18170
18194
  tabIndex: 0,
18171
18195
  role: "button",
@@ -18360,7 +18384,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18360
18384
  onChange: (e) => {
18361
18385
  e.preventDefault(), b(!0), g(e.target.value);
18362
18386
  },
18363
- className: `${i ? "dbn:cursor-not-allowed" : ""} ${Nm.autoCompleteInput} `,
18387
+ className: `${i ? "dbn:cursor-not-allowed" : ""} ${Pm.autoCompleteInput} `,
18364
18388
  placeholder: a,
18365
18389
  disabled: i,
18366
18390
  onKeyDown: (e) => {
@@ -18386,7 +18410,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18386
18410
  id: "autoCompleteInput",
18387
18411
  ref: P
18388
18412
  }), y && se?.length ? /* @__PURE__ */ Q("div", {
18389
- className: Nm.dropdownMenu,
18413
+ className: Pm.dropdownMenu,
18390
18414
  ref: ne,
18391
18415
  style: l === "bottom" ? { top: "3rem" } : { bottom: "3rem" },
18392
18416
  children: [se?.slice(0, w)?.map((e) => /* @__PURE__ */ Q("span", {
@@ -18394,7 +18418,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18394
18418
  de && pe(e);
18395
18419
  },
18396
18420
  id: "autoCompleteItem",
18397
- className: `${Nm.autoCompleteItem} ${E?.column?.alias === e.alias ? "dbn:bg-gray" : ""} ${e.isDisable ? "dbn:cursor-not-allowed" : ""}`,
18421
+ className: `${Pm.autoCompleteItem} ${E?.column?.alias === e.alias ? "dbn:bg-gray" : ""} ${e.isDisable ? "dbn:cursor-not-allowed" : ""}`,
18398
18422
  children: [/* @__PURE__ */ Z("span", {
18399
18423
  className: "dbn:w-[10%]",
18400
18424
  children: e.configType === "AGGREGATE" ? /* @__PURE__ */ Z(Xr, { datatype: "number" }) : e.configType === "FILTER" ? /* @__PURE__ */ Z(W, { name: "funnel" }) : /* @__PURE__ */ Z(Xr, { datatype: e.datatype })
@@ -18417,10 +18441,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18417
18441
  })]
18418
18442
  })
18419
18443
  })] });
18420
- }, Rm = Ca(() => import("./SearchMetricData-CxmDM20t.mjs").then((e) => ({ default: e.SearchMetricData }))), zm = (e) => /* @__PURE__ */ Z(ba, {
18444
+ }, zm = Ca(() => import("./SearchMetricData-DPWkvX0c.mjs").then((e) => ({ default: e.SearchMetricData }))), Bm = (e) => /* @__PURE__ */ Z(ba, {
18421
18445
  fallback: null,
18422
- children: /* @__PURE__ */ Z(Rm, { ...e })
18423
- }), Bm = {
18446
+ children: /* @__PURE__ */ Z(zm, { ...e })
18447
+ }), Vm = {
18424
18448
  manageMetricCard: "_manageMetricCard_g7m0a_8",
18425
18449
  borderPrimary: "_borderPrimary_g7m0a_12",
18426
18450
  manageMetricContainer: "_manageMetricContainer_g7m0a_16",
@@ -18428,7 +18452,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18428
18452
  metricName: "_metricName_g7m0a_24",
18429
18453
  chart: "_chart_g7m0a_28",
18430
18454
  manageButton: "_manageButton_g7m0a_32"
18431
- }, Vm = ({ metricItem: e, client: t, colors: i, companyTenancyType: a, isInternalApp: o, isFrontendApp: s, guestToken: c, encryptedClient: l, workspaceId: u, chartAppearance: d, datasourceId: f, language: p, translationDictionary: m, dataMartTables: h, token: g, param: _, globalFilters: v = {
18455
+ }, Hm = ({ metricItem: e, client: t, colors: i, companyTenancyType: a, isInternalApp: o, isFrontendApp: s, guestToken: c, encryptedClient: l, workspaceId: u, chartAppearance: d, datasourceId: f, language: p, translationDictionary: m, dataMartTables: h, token: g, param: _, globalFilters: v = {
18432
18456
  tableName: "",
18433
18457
  filters: []
18434
18458
  } }) => {
@@ -18479,9 +18503,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18479
18503
  T
18480
18504
  ]), M = q(() => A ? n(A, { fallback: "This metric couldn't load." }) : void 0, [A]), N = M ? r(M) : "";
18481
18505
  return Be("metric_list", M, { metricId: e?.metricId ?? e?.id }), /* @__PURE__ */ Z("div", {
18482
- className: Bm.cardContainer,
18506
+ className: Vm.cardContainer,
18483
18507
  children: e?.isMetric ? /* @__PURE__ */ Z("div", {
18484
- className: Bm.chart,
18508
+ className: Vm.chart,
18485
18509
  children: x ? /* @__PURE__ */ Z("div", {
18486
18510
  className: "dbn:w-full dbn:h-full dbn:py-4",
18487
18511
  children: /* @__PURE__ */ Z(Bt, { height: "full" })
@@ -18556,45 +18580,45 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18556
18580
  })
18557
18581
  })
18558
18582
  });
18559
- }, Hm = {
18583
+ }, Um = {
18560
18584
  container: "_container_l3hvo_8",
18561
18585
  label: "_label_l3hvo_12",
18562
18586
  action: "_action_l3hvo_18"
18563
- }, Um = (e) => {
18587
+ }, Wm = (e) => {
18564
18588
  let t = Math.max(0, Math.round(e));
18565
18589
  if (t < 60) return `${t} sec`;
18566
18590
  let n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), i = t % 60, a = [];
18567
18591
  return n && a.push(`${n} hr`), r && a.push(`${r} min`), i && a.push(`${i} sec`), a.join(" ");
18568
- }, Wm = ({ refreshSeconds: e, isPaused: t, onTogglePause: n, onRefreshNow: r, isRefreshing: i = !1, className: a }) => {
18592
+ }, Gm = ({ refreshSeconds: e, isPaused: t, onTogglePause: n, onRefreshNow: r, isRefreshing: i = !1, className: a }) => {
18569
18593
  if (!e || e <= 0) return null;
18570
- let o = Um(e);
18594
+ let o = Wm(e);
18571
18595
  return /* @__PURE__ */ Q("div", {
18572
- className: `${Hm.container} ${a || ""}`,
18596
+ className: `${Um.container} ${a || ""}`,
18573
18597
  "aria-live": "polite",
18574
18598
  "data-dbn-auto-refresh": t ? "paused" : "running",
18575
18599
  children: [
18576
18600
  /* @__PURE__ */ Z("span", {
18577
- className: Hm.label,
18601
+ className: Um.label,
18578
18602
  children: t ? "Auto-refresh paused. The cards below stay as they are." : `This dashboard refreshes its data every ${o}.`
18579
18603
  }),
18580
18604
  /* @__PURE__ */ Z(B, {
18581
18605
  variant: "popover",
18582
18606
  type: "button",
18583
- className: Hm.action,
18607
+ className: Um.action,
18584
18608
  onClick: n,
18585
18609
  children: t ? "Resume auto-refresh" : "Pause auto-refresh"
18586
18610
  }),
18587
18611
  r ? /* @__PURE__ */ Z(B, {
18588
18612
  variant: "popover",
18589
18613
  type: "button",
18590
- className: Hm.action,
18614
+ className: Um.action,
18591
18615
  isDisabled: i,
18592
18616
  onClick: r,
18593
18617
  children: i ? "Refreshing" : "Refresh now"
18594
18618
  }) : null
18595
18619
  ]
18596
18620
  });
18597
- }, Gm = {
18621
+ }, Km = {
18598
18622
  generateMetricModal: "_generateMetricModal_1hqhq_8",
18599
18623
  generateMetricModalHeader: "_generateMetricModalHeader_1hqhq_12",
18600
18624
  generateMetricQuery: "_generateMetricQuery_1hqhq_16",
@@ -18604,7 +18628,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18604
18628
  loaderContainer: "_loaderContainer_1hqhq_29",
18605
18629
  chartWrapper: "_chartWrapper_1hqhq_33",
18606
18630
  sqlPopUp: "_sqlPopUp_1hqhq_37"
18607
- }, Km = "table", qm = (e, t) => e?.customSettings?.chartTypeSource ?? t, Jm = ({ generated: e, current: t, source: n, gateOn: r = !0 }) => e ? r ? n === "human" ? {
18631
+ }, qm = "table", Jm = (e, t) => e?.customSettings?.chartTypeSource ?? t, Ym = ({ generated: e, current: t, source: n, gateOn: r = !0 }) => e ? r ? n === "human" ? {
18608
18632
  chartType: t,
18609
18633
  source: n
18610
18634
  } : {
@@ -18616,16 +18640,16 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18616
18640
  } : {
18617
18641
  chartType: t,
18618
18642
  source: n
18619
- }, Ym = (e, { gateOn: t, source: n }) => t ? {
18643
+ }, Xm = (e, { gateOn: t, source: n }) => t ? {
18620
18644
  ...e || {},
18621
18645
  chartTypeSource: n
18622
- } : e, Xm = (e) => {
18646
+ } : e, Zm = (e) => {
18623
18647
  let t = {
18624
- chartType: Km,
18648
+ chartType: qm,
18625
18649
  dimensions: e.dimensions,
18626
18650
  measures: e.measures
18627
18651
  };
18628
- if (!Mn() || !e.rows.length) return t;
18652
+ if (!yn() || !e.rows.length) return t;
18629
18653
  let n = Pt(e.rows, e.columnMeta, {
18630
18654
  dimensions: e.dimensions,
18631
18655
  measures: e.measures
@@ -18636,7 +18660,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18636
18660
  measures: o.length ? o : e.measures,
18637
18661
  defaults: n
18638
18662
  };
18639
- }, Zm = (e, t = []) => {
18663
+ }, Qm = (e, t = []) => {
18640
18664
  let n = new Set(t.filter((e) => e?.name).map((e) => e.name));
18641
18665
  return e.filter((e) => ["ASC", "DESC"].includes(e?.defaultSort || "")).map((e) => {
18642
18666
  let t = Ze.includes(e?.helperFunction || ""), n = Dt([e])?.dimensions?.[0];
@@ -18652,7 +18676,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18652
18676
  formattedColumn: t && e ? n : void 0
18653
18677
  };
18654
18678
  }).filter((e) => e?.name && !n.has(e.name));
18655
- }, Qm = (e = [], t = []) => [...e, ...Zm(t, e)], $m = (e) => {
18679
+ }, $m = (e = [], t = []) => [...e, ...Qm(t, e)], eh = (e) => {
18656
18680
  let { clientId: t, companyId: n, externalDashboardId: r, isLiveMode: i, metric: a, setShowMetricCreateModal: o, userProvidedDashboardId: s, clientColumnType: c, datasourceId: l, databaseName: u, onServerEvent: d, refetchDashboardData: f } = e, [p, m] = Y({
18657
18681
  data: [],
18658
18682
  error: "",
@@ -18705,9 +18729,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18705
18729
  return [];
18706
18730
  }, Fe = ({ chartType: e, chartDimensions: t, chartMetrics: n, chartAggregateColumns: r, configAggregates: i, chartTypeSource: a }) => {
18707
18731
  if (e) {
18708
- let e = Mn();
18732
+ let e = yn();
18709
18733
  b((t) => {
18710
- let n = Ym(t.customSettings, {
18734
+ let n = Xm(t.customSettings, {
18711
18735
  gateOn: e,
18712
18736
  source: a ?? "human"
18713
18737
  });
@@ -18929,7 +18953,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18929
18953
  column: e,
18930
18954
  table: A
18931
18955
  },
18932
- synonyms: jn?.flatMap((e) => e.synonymns),
18956
+ synonyms: Mn?.flatMap((e) => e.synonymns),
18933
18957
  filterMethod: "=",
18934
18958
  filterType: "default",
18935
18959
  filterValue: {},
@@ -18984,7 +19008,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
18984
19008
  label: e.label || "",
18985
19009
  defaultSort: e.defaultSort || null
18986
19010
  };
18987
- }), l = xn?.map((t) => ({
19011
+ }), l = Sn?.map((t) => ({
18988
19012
  alias: ht(t.alias(e.name), _?.name || ""),
18989
19013
  configType: "FILTER",
18990
19014
  datatype: e.dataType,
@@ -19070,7 +19094,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19070
19094
  i.push(e);
19071
19095
  }
19072
19096
  if (t.configType === "FILTER") {
19073
- let e = t.keyword ? t.keyword?.toLowerCase().trim().split(" ")?.filter((e) => !me.includes(e) && e) : [], n = Rn.includes(t.datatype?.toLowerCase()) || t?.datatype?.toLowerCase()?.startsWith("decimal") || t?.datatype?.toLowerCase()?.startsWith("numeric"), i = jn.find((t) => e.some((e) => t.synonymns.includes(e)))?.value || "", a = e.find((e) => Number(e)) || 0, o = t.filterType === "custom" ? {
19097
+ let e = t.keyword ? t.keyword?.toLowerCase().trim().split(" ")?.filter((e) => !me.includes(e) && e) : [], n = Rn.includes(t.datatype?.toLowerCase()) || t?.datatype?.toLowerCase()?.startsWith("decimal") || t?.datatype?.toLowerCase()?.startsWith("numeric"), i = Mn.find((t) => e.some((e) => t.synonymns.includes(e)))?.value || "", a = e.find((e) => Number(e)) || 0, o = t.filterType === "custom" ? {
19074
19098
  alias: t.name,
19075
19099
  columnName: t.sql,
19076
19100
  dataType: "CUSTOM",
@@ -19094,7 +19118,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19094
19118
  parentAlias: t.parentAlias,
19095
19119
  dataType: t.filterValue?.timeValue ? "TIME_COLUMN" : t.datatype,
19096
19120
  type: t.filterValue?.timeValue ? "time" : "default",
19097
- value: xn.find((e) => e.value === t.filterMethod) ? "" : n ? Number(a) : t.filterValue?.stringValue || t.filterValue?.stringArray || t.filterValue?.timeValue || t.filterValue?.numberArray || t.filterValue?.numberValue || "",
19121
+ value: Sn.find((e) => e.value === t.filterMethod) ? "" : n ? Number(a) : t.filterValue?.stringValue || t.filterValue?.stringArray || t.filterValue?.timeValue || t.filterValue?.numberArray || t.filterValue?.numberValue || "",
19098
19122
  relationOperator: t.relationOperator
19099
19123
  };
19100
19124
  r.push(o);
@@ -19139,7 +19163,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19139
19163
  ...L,
19140
19164
  dimensions: e,
19141
19165
  aggregates: n,
19142
- orders: Qm(i, j.filter((e) => e.configType !== "FILTER")),
19166
+ orders: $m(i, j.filter((e) => e.configType !== "FILTER")),
19143
19167
  table: {
19144
19168
  alias: B,
19145
19169
  id: A?.id,
@@ -19193,7 +19217,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19193
19217
  isLoading: !1,
19194
19218
  query: r
19195
19219
  }), E(ze(i?.groupbyColumnList));
19196
- let t = Ne(j.filter((e) => e.configType === "AGGREGATE")), o = Xm({
19220
+ let t = Ne(j.filter((e) => e.configType === "AGGREGATE")), o = Zm({
19197
19221
  rows: e,
19198
19222
  dimensions: Ne(j.filter((e) => e.configType === "DIMENSION")),
19199
19223
  measures: t,
@@ -19201,10 +19225,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19201
19225
  name: _?.name?.toLowerCase() === "redshift" ? e.alias?.toLowerCase() : e.alias,
19202
19226
  dataType: e.datatype
19203
19227
  }))
19204
- }), s = Jm({
19228
+ }), s = Ym({
19205
19229
  generated: o.chartType,
19206
19230
  current: y.chartType,
19207
- source: qm(y, a ? "human" : "default"),
19231
+ source: Jm(y, a ? "human" : "default"),
19208
19232
  gateOn: !!o.defaults
19209
19233
  });
19210
19234
  Fe({
@@ -19596,8 +19620,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19596
19620
  setRef: I,
19597
19621
  pivotDrillState: p
19598
19622
  };
19599
- }, eh = ({ clientId: e, companyId: t, externalDashboardId: n, isLiveMode: r, isShowMetricCreateModal: i, setShowMetricCreateModal: a, userProvidedDashboardId: o, workspaceId: s, chartColors: c, metric: l, metricData: u, variant: d, clientColumnType: f, datasourceId: p, tenancyType: m, onServerEvent: h, refetchDashboardData: g, saveDashLayout: _ }) => {
19600
- let { isDisableSaveBtn: v, setShowSaveMetricModal: y, generateMetricState: b, chartTabType: x, chartSettings: S, onColumnSizingChange: C, chartRef: w, isCreatingMetric: T, isShowSaveMetricModal: E, saveError: D, updateExternalMetric: O, createExternalMetric: ee, tableList: k, selectedMainTable: A, setSelectedMainTable: te, selectedColumns: j, setSelectedColumns: M, autoCompleteDropdownOptions: N, onSubmitSearch: P, setChartFields: ne, functionOptions: re, onChangeHelperFunction: F, onChangeAlias: I, chartOptions: L, isShowChartType: ie, setShowChartType: ae, enabledCharts: oe, setChartSettings: se, isRef: ce, setRef: le, pivotDrillState: ue } = $m({
19623
+ }, th = ({ clientId: e, companyId: t, externalDashboardId: n, isLiveMode: r, isShowMetricCreateModal: i, setShowMetricCreateModal: a, userProvidedDashboardId: o, workspaceId: s, chartColors: c, metric: l, metricData: u, variant: d, clientColumnType: f, datasourceId: p, tenancyType: m, onServerEvent: h, refetchDashboardData: g, saveDashLayout: _ }) => {
19624
+ let { isDisableSaveBtn: v, setShowSaveMetricModal: y, generateMetricState: b, chartTabType: x, chartSettings: S, onColumnSizingChange: C, chartRef: w, isCreatingMetric: T, isShowSaveMetricModal: E, saveError: D, updateExternalMetric: O, createExternalMetric: ee, tableList: k, selectedMainTable: A, setSelectedMainTable: te, selectedColumns: j, setSelectedColumns: M, autoCompleteDropdownOptions: N, onSubmitSearch: P, setChartFields: ne, functionOptions: re, onChangeHelperFunction: F, onChangeAlias: I, chartOptions: L, isShowChartType: ie, setShowChartType: ae, enabledCharts: oe, setChartSettings: se, isRef: ce, setRef: le, pivotDrillState: ue } = eh({
19601
19625
  clientId: e,
19602
19626
  companyId: t,
19603
19627
  isLiveMode: r,
@@ -19618,10 +19642,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19618
19642
  saveDashLayout: _
19619
19643
  });
19620
19644
  return /* @__PURE__ */ Q("div", {
19621
- className: Gm.generateMetricModal,
19645
+ className: Km.generateMetricModal,
19622
19646
  children: [
19623
19647
  /* @__PURE__ */ Z("div", {
19624
- className: Gm.generateMetricModalHeader,
19648
+ className: Km.generateMetricModalHeader,
19625
19649
  children: /* @__PURE__ */ Z(Cu, {
19626
19650
  heading: l ? "Update Metric" : "Create Metric",
19627
19651
  setShowMetricCreateModal: a,
@@ -19630,9 +19654,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19630
19654
  })
19631
19655
  }),
19632
19656
  /* @__PURE__ */ Q("div", {
19633
- className: Gm.generateMetricQuery,
19657
+ className: Km.generateMetricQuery,
19634
19658
  children: [/* @__PURE__ */ Q("form", {
19635
- className: Gm.generateMetricQueryForm,
19659
+ className: Km.generateMetricQueryForm,
19636
19660
  onSubmit: (e) => e.preventDefault(),
19637
19661
  children: [/* @__PURE__ */ Q("div", {
19638
19662
  className: "dbn:flex dbn:gap-4 dbn:items-center",
@@ -19655,7 +19679,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19655
19679
  menuWidth: "100%"
19656
19680
  }), /* @__PURE__ */ Z("div", {
19657
19681
  className: "dbn:w-[800px]",
19658
- children: /* @__PURE__ */ Z(Lm, {
19682
+ children: /* @__PURE__ */ Z(Rm, {
19659
19683
  selectedOption: j,
19660
19684
  setSelectedOptions: M,
19661
19685
  options: N,
@@ -19709,10 +19733,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19709
19733
  })]
19710
19734
  }),
19711
19735
  /* @__PURE__ */ Q("div", {
19712
- className: Gm.generateMetricChart,
19736
+ className: Km.generateMetricChart,
19713
19737
  children: [
19714
19738
  x === "INIT" && /* @__PURE__ */ Q("div", {
19715
- className: Gm.metricChartEmpty,
19739
+ className: Km.metricChartEmpty,
19716
19740
  children: [
19717
19741
  /* @__PURE__ */ Z("img", {
19718
19742
  src: "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='264'%20height='206'%20fill='none'%20viewBox='0%200%20264%20206'%3e%3cpath%20fill='%23F1F2F7'%20d='M142.93%200a102%20102%200%200%200-63.85%2022.37H50.76a6.72%206.72%200%200%200%200%2013.42h18.63a6.72%206.72%200%200%201%200%2013.42H31.14a6.72%206.72%200%200%200%200%2013.42h17.37a103%20103%200%200%200-8.15%2040.27%20104%20104%200%200%200%202.23%2021.44%20562%20562%200%200%201%2039.98-4.63l1.06.96.99-1.12c16.79-1.31%2034.4-2%2052.58-2%2038.62%200%2074.76%203.14%20105.66%208.62a103%20103%200%200%200%202.63-23.27C245.49%2046.07%20199.57%200%20142.93%200M10.83%2048.9H6.78A6.83%206.83%200%200%200%200%2055.75a6.83%206.83%200%200%200%206.78%206.84h4.05a6.83%206.83%200%200%200%206.77-6.84%206.83%206.83%200%200%200-6.77-6.85'/%3e%3cpath%20fill='%23E8EBF2'%20d='M264%20151.6c0%203.66-3%206.66-6.69%206.66H214.6a6.67%206.67%200%200%200%200%2013.34h7.94a6.67%206.67%200%200%201%200%2013.34h-18.25a102.3%20102.3%200%200%201-61.53%2020.45%20102.5%20102.5%200%200%201-100.3-80.94c12.61-1.93%2026-3.48%2039.97-4.6l1.05.95.99-1.11c16.78-1.3%2034.4-2%2052.57-2%2038.6%200%2074.74%203.13%20105.63%208.57a101%20101%200%200%201-6.3%2018.67h20.94a6.67%206.67%200%200%201%206.69%206.66'/%3e%3cpath%20fill='%23E0E2EE'%20d='M244.5%20109.9a107%20107%200%200%201-2.36%2016.27c-30.86-5.59-66.95-8.8-105.51-8.8-18.15%200-35.75.72-52.52%202.05l11.63-13.47%2018.09%2011.8L138.3%20111l42.12%206.39%2018.29-6.39%204.63%206.39%2011.05-8.2%2010.33%209.46L241%20105.63zm-162.35%209.67a566%20566%200%200%200-39.96%204.64q-.65-3.06-1.11-6.2l21.62-16.3z'/%3e%3cpath%20fill='%23E1E3EF'%20d='M242.55%20184.85a6.87%206.87%200%200%201-6.84-6.85%206.87%206.87%200%200%201%206.84-6.84%206.87%206.87%200%200%201%206.85%206.84%206.87%206.87%200%200%201-6.85%206.85'/%3e%3crect%20width='111'%20height='86'%20x='91'%20y='50'%20fill='%23fff'%20rx='10'/%3e%3cpath%20fill='%23F1F2F7'%20d='M97.13%2064.96h98.74c1.83%200%203.3-2.72%203.3-6.08s-1.47-6.08-3.3-6.08H97.13c-1.83%200-3.3%202.72-3.3%206.08s1.47%206.08%203.3%206.08'/%3e%3cpath%20fill='%23D0D4DA'%20d='M99.58%2087.73h5.21c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62h-5.21c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61m0-13.76h36.5c.9%200%201.62-.73%201.62-1.62s-.73-1.61-1.63-1.61H99.58c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m43.44%200h6.95a1.61%201.61%200%201%200%20.01-3.23h-6.96a1.61%201.61%200%201%200%200%203.23m29.55%200h20.85c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-20.85c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m0%2010.53c-.43%200-.85.18-1.16.48a1.6%201.6%200%200%200%200%202.28%201.64%201.64%200%200%200%202.3%200%201.61%201.61%200%200%200-1.14-2.76m1.15%2014.24a1.65%201.65%200%200%200-2.3%200%201.6%201.6%200%200%200%200%202.28%201.64%201.64%200%200%200%202.3%200%201.6%201.6%200%200%200%200-2.28m-1.15%2013.29c-.43%200-.85.18-1.16.48s-.47.71-.47%201.14a1.6%201.6%200%200%200%201.63%201.61%201.61%201.61%200%201%200%200-3.23m6.95%200a1.64%201.64%200%200%200-1.63%201.62%201.6%201.6%200%200%200%201.63%201.61%201.61%201.61%200%200%200%201.15-2.75c-.3-.3-.72-.48-1.15-.48m-6.95%2013.77a1.61%201.61%200%200%200-1.15%202.75%201.64%201.64%200%200%200%202.3%200%201.61%201.61%200%200%200-1.15-2.75m6.95%200a1.61%201.61%200%200%200-1.15%202.75%201.64%201.64%200%200%200%202.3%200%201.6%201.6%200%200%200%200-2.28c-.3-.3-.72-.47-1.15-.47m8.1-13.3a1.65%201.65%200%200%200-2.3%200%201.6%201.6%200%200%200%201.15%202.76%201.61%201.61%200%200%200%201.15-2.75m-6.95-27.53a1.64%201.64%200%200%200-2.3%200%201.6%201.6%200%200%200%200%202.28%201.64%201.64%200%200%200%202.3%200%201.6%201.6%200%200%200%200-2.28M104.8%20125.8h-5.22c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62h5.21c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61m-5.21-24.3h5.21c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-5.21c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m5.22%2010.53h-5.22c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61h5.21c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62m33.02%200h-3.47c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61h3.47c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62m-3.47%2017h3.47c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-3.47c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m3.47-30.76h-3.47c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62h3.47c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61m-3.47-10.54h3.47c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62h-3.47c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61m10.42%200h6.95c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62h-6.95c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61m12.17%2010.54h-12.17c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62h12.17c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61m-8.69%2013.76h-3.48c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61h3.48c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62m-3.48%2017h6.95c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-6.95c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62'/%3e%3cpath%20fill='%23D0D4DA'%20d='M193.42%2050.1H99.58A8.55%208.55%200%200%200%2091%2058.58v68.82c0%204.69%203.85%208.5%208.58%208.5h93.84a8.55%208.55%200%200%200%208.58-8.5V58.6c0-4.69-3.85-8.5-8.58-8.5m-64.4%2068.82v-10.54h34.97v10.54zm34.97%203.22v10.54H129v-10.54zm34.75-55.06v10.54h-31.5V67.08zM164%2080.85v10.54h-35V80.85zm-38.24%2010.54h-31.5V80.85h31.5zm0%203.22v10.54h-31.5V94.61zm3.26%200H164v10.54h-35zm38.23%200h31.5v10.54h-31.5zm0-3.22V80.85h31.5v10.54zM164%2077.62H94.26V67.08h69.73zm-69.73%2030.76h31.5v10.54h-31.5zm72.98%200h31.5v10.54h-31.5zM99.58%2053.32h93.84a5.3%205.3%200%200%201%205.32%205.27v5.27H94.26v-5.27a5.3%205.3%200%200%201%205.32-5.27m-5.32%2074.1v-5.28h31.5v10.54H99.57a5.3%205.3%200%200%201-5.32-5.27m99.16%205.26h-26.18v-10.54h31.5v5.27a5.3%205.3%200%200%201-5.32%205.27'/%3e%3crect%20width='111'%20height='86'%20x='68'%20y='76'%20fill='%23fff'%20rx='10'/%3e%3cpath%20fill='%23F1F2F7'%20d='M74.13%2090.96h98.74c1.83%200%203.3-2.72%203.3-6.08s-1.47-6.08-3.3-6.08H74.13c-1.83%200-3.3%202.72-3.3%206.08s1.47%206.08%203.3%206.08'/%3e%3cpath%20fill='%23D0D4DA'%20d='M76.58%20113.73h5.21c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62h-5.21c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61m0-13.76h36.5c.9%200%201.62-.73%201.62-1.62s-.73-1.61-1.63-1.61H76.58c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m43.44%200h6.95a1.61%201.61%200%201%200%20.01-3.23h-6.96a1.61%201.61%200%201%200%200%203.23m29.55%200h20.85c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-20.85c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m0%2010.53c-.43%200-.85.18-1.16.48a1.6%201.6%200%200%200%200%202.28%201.64%201.64%200%200%200%202.3%200%201.61%201.61%200%200%200-1.14-2.76m1.15%2014.24a1.65%201.65%200%200%200-2.3%200%201.6%201.6%200%200%200%200%202.28%201.64%201.64%200%200%200%202.3%200%201.6%201.6%200%200%200%200-2.28m-1.15%2013.29c-.43%200-.85.18-1.16.48s-.47.71-.47%201.14a1.6%201.6%200%200%200%201.63%201.61%201.61%201.61%200%201%200%200-3.23m6.95%200a1.64%201.64%200%200%200-1.63%201.62%201.6%201.6%200%200%200%201.63%201.61%201.61%201.61%200%200%200%201.15-2.75c-.3-.3-.72-.48-1.15-.48m-6.95%2013.77a1.61%201.61%200%200%200-1.15%202.75%201.64%201.64%200%200%200%202.3%200%201.61%201.61%200%200%200-1.15-2.75m6.95%200a1.61%201.61%200%200%200-1.15%202.75%201.64%201.64%200%200%200%202.3%200%201.6%201.6%200%200%200%200-2.28c-.3-.3-.72-.47-1.15-.47m8.1-13.3a1.65%201.65%200%200%200-2.3%200%201.6%201.6%200%200%200%201.15%202.76%201.61%201.61%200%200%200%201.15-2.75m-6.95-27.53a1.64%201.64%200%200%200-2.3%200%201.6%201.6%200%200%200%200%202.28%201.64%201.64%200%200%200%202.3%200%201.6%201.6%200%200%200%200-2.28M81.8%20151.8h-5.22c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62h5.21c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61m-5.21-24.3h5.21c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-5.21c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62m5.22%2010.53h-5.22c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61h5.21c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62m33.02%200h-3.48c-.9%200-1.62.73-1.62%201.62s.73%201.61%201.63%201.61h3.47c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62m-3.47%2017h3.47c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-3.48a1.61%201.61%200%201%200%20.01%203.23m3.47-30.76h-3.48a1.61%201.61%200%201%200%20.01%203.23h3.47c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61m-3.47-10.54h3.47c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62h-3.48c-.9%200-1.62.73-1.62%201.62s.73%201.61%201.63%201.61m10.42%200h6.95c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62h-6.95c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61m12.17%2010.54h-12.17c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62h12.17c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61m-8.69%2013.76h-3.48c-.9%200-1.63.73-1.63%201.62s.73%201.61%201.63%201.61h3.48c.9%200%201.63-.72%201.63-1.61s-.73-1.62-1.63-1.62m-3.48%2017h6.95c.9%200%201.63-.73%201.63-1.62s-.73-1.61-1.63-1.61h-6.95c-.9%200-1.63.72-1.63%201.61s.73%201.62%201.63%201.62'/%3e%3cpath%20fill='%23D0D4DA'%20d='M170.42%2076.1H76.58A8.55%208.55%200%200%200%2068%2084.58v68.82c0%204.69%203.85%208.5%208.58%208.5h93.84a8.55%208.55%200%200%200%208.58-8.5V84.6c0-4.69-3.85-8.5-8.58-8.5m-64.4%2068.82v-10.54h34.97v10.54zm34.97%203.22v10.54H106v-10.54zm34.75-55.06v10.54h-31.5V93.08zM141%20106.85v10.54h-35v-10.54zm-38.24%2010.54h-31.5v-10.54h31.5zm0%203.22v10.54h-31.5v-10.54zm3.26%200H141v10.54h-35zm38.23%200h31.5v10.54h-31.5zm0-3.22v-10.54h31.5v10.54zM141%20103.62H71.26V93.08h69.73zm-69.73%2030.76h31.5v10.54h-31.5zm72.98%200h31.5v10.54h-31.5zM76.58%2079.32h93.84a5.3%205.3%200%200%201%205.32%205.27v5.27H71.26v-5.27a5.3%205.3%200%200%201%205.32-5.27m-5.32%2074.1v-5.28h31.5v10.54H76.57a5.3%205.3%200%200%201-5.32-5.27m99.16%205.26h-26.18v-10.54h31.5v5.27a5.3%205.3%200%200%201-5.32%205.27'/%3e%3c/svg%3e",
@@ -19727,7 +19751,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19727
19751
  children: "No Data"
19728
19752
  }),
19729
19753
  /* @__PURE__ */ Z("div", {
19730
- className: Gm.chartButton,
19754
+ className: Km.chartButton,
19731
19755
  children: /* @__PURE__ */ Z(V, {
19732
19756
  variant: "body-text-2",
19733
19757
  children: "Enter Your Query to Visualize "
@@ -19736,11 +19760,11 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19736
19760
  ]
19737
19761
  }),
19738
19762
  x === "LOADING" && /* @__PURE__ */ Z("div", {
19739
- className: Gm.LoaderContainer,
19763
+ className: Km.LoaderContainer,
19740
19764
  children: /* @__PURE__ */ Z(ua, {})
19741
19765
  }),
19742
19766
  x === "CHART" && /* @__PURE__ */ Z("div", {
19743
- className: Gm.chartWrapper,
19767
+ className: Km.chartWrapper,
19744
19768
  children: /* @__PURE__ */ Z(ti, {
19745
19769
  variables: {},
19746
19770
  pivotDrillState: ue,
@@ -19791,12 +19815,12 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19791
19815
  })
19792
19816
  ]
19793
19817
  });
19794
- }, th = () => ({
19818
+ }, nh = () => ({
19795
19819
  clientIdPlaceholder: kt,
19796
19820
  hasDatabaseNamePlaceholder: Se,
19797
19821
  hasTenantPredicate: et,
19798
19822
  tenantPredicateRegex: de
19799
- }), nh = (e) => _d(e, th()), rh = (e, t) => {
19823
+ }), rh = (e) => _d(e, nh()), ih = (e, t) => {
19800
19824
  let { mutate: n, isPending: r } = le();
19801
19825
  return {
19802
19826
  onSaveGalleryMetrics: wa((r, i) => {
@@ -19809,7 +19833,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19809
19833
  }, [e]),
19810
19834
  isLoading: r
19811
19835
  };
19812
- }, ih = 100, ah = 1e3, oh = ({ itemCount: e, initialCount: t, incrementCount: n, resetKey: r, isActive: i = !0 }) => {
19836
+ }, ah = 100, oh = 1e3, sh = ({ itemCount: e, initialCount: t, incrementCount: n, resetKey: r, isActive: i = !0 }) => {
19813
19837
  let [a, o] = Y(null), [s, c] = Y({
19814
19838
  resetKey: r,
19815
19839
  isActive: i,
@@ -19833,7 +19857,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19833
19857
  count: Math.min(m + n, e)
19834
19858
  });
19835
19859
  };
19836
- a ? (f(!0), u.current = setTimeout(o, ah)) : o();
19860
+ a ? (f(!0), u.current = setTimeout(o, oh)) : o();
19837
19861
  }, [
19838
19862
  h,
19839
19863
  i,
@@ -19866,7 +19890,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19866
19890
  clearTimeout(u.current), u.current = void 0;
19867
19891
  }, []);
19868
19892
  let v = wa(() => {
19869
- !a || a.clientHeight <= 0 || a.clientWidth <= 0 || a.scrollHeight - a.scrollTop - a.clientHeight < ih && _(!0);
19893
+ !a || a.clientHeight <= 0 || a.clientWidth <= 0 || a.scrollHeight - a.scrollTop - a.clientHeight < ah && _(!0);
19870
19894
  }, [a, _]);
19871
19895
  return K(() => {
19872
19896
  if (!a || !i || !h) return;
@@ -19892,7 +19916,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19892
19916
  hasMore: h,
19893
19917
  isLoadingMore: i && !p && h && d
19894
19918
  };
19895
- }, sh = {
19919
+ }, ch = {
19896
19920
  manageMetricCard: "_manageMetricCard_g7m0a_8",
19897
19921
  borderPrimary: "_borderPrimary_g7m0a_12",
19898
19922
  manageMetricContainer: "_manageMetricContainer_g7m0a_16",
@@ -19900,7 +19924,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19900
19924
  metricName: "_metricName_g7m0a_24",
19901
19925
  chart: "_chart_g7m0a_28",
19902
19926
  manageButton: "_manageButton_g7m0a_32"
19903
- }, ch = ({ verdict: e, isGateOn: t }) => {
19927
+ }, lh = ({ verdict: e, isGateOn: t }) => {
19904
19928
  if (!t || !e) return null;
19905
19929
  let n = e.status === "all-client" || e.status === "rejected" && e.findings.every((e) => e.code === "ALL_CLIENT_UNACKNOWLEDGED");
19906
19930
  return e.status !== "rejected" && !n ? null : /* @__PURE__ */ Z("div", {
@@ -19914,7 +19938,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19914
19938
  children: n ? "Shows every customer’s data" : "Not limited to one customer"
19915
19939
  })
19916
19940
  });
19917
- }, lh = ({ metric: e }) => ga(e) ? /* @__PURE__ */ Z("div", {
19941
+ }, uh = ({ metric: e }) => ga(e) ? /* @__PURE__ */ Z("div", {
19918
19942
  className: "dbn:pt-1",
19919
19943
  "data-testid": `unpublished-notice-${e?.id}`,
19920
19944
  children: /* @__PURE__ */ Z(V, {
@@ -19922,7 +19946,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19922
19946
  color: "primary",
19923
19947
  children: ha
19924
19948
  })
19925
- }) : null, uh = ({ props: { metricList: e, token: t, client: n, companyTenancyType: r, workspaceId: i, chartAppearance: a, colors: o, isOpenModal: s, setOpenModal: c, onServerEvent: l, datasourceId: u, language: d, translationDictionary: f, externalDashboardId: p, companyId: m } }) => {
19949
+ }) : null, dh = ({ props: { metricList: e, token: t, client: n, companyTenancyType: r, workspaceId: i, chartAppearance: a, colors: o, isOpenModal: s, setOpenModal: c, onServerEvent: l, datasourceId: u, language: d, translationDictionary: f, externalDashboardId: p, companyId: m } }) => {
19926
19950
  let [h, g] = Y([]), [_, v] = Y(""), [y, b] = Y(null), x = h.join("|"), S = y === x;
19927
19951
  K(() => {
19928
19952
  if (e?.length) {
@@ -19930,10 +19954,10 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19930
19954
  g(t);
19931
19955
  }
19932
19956
  }, [e]);
19933
- let { onSaveGalleryMetrics: C, isLoading: w } = rh(t, l), { saveLogsAsync: T } = Gi(), D = q(() => {
19957
+ let { onSaveGalleryMetrics: C, isLoading: w } = ih(t, l), { saveLogsAsync: T } = Gi(), D = q(() => {
19934
19958
  let t = /* @__PURE__ */ new Map();
19935
19959
  return (e ?? []).forEach((e) => {
19936
- e?.id && t.set(e.id, nh({
19960
+ e?.id && t.set(e.id, rh({
19937
19961
  metric: e,
19938
19962
  datamart: { tenancyLevel: r },
19939
19963
  acknowledgedAllClient: S
@@ -19948,7 +19972,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19948
19972
  let r = t ?? !n.includes(e), i = n.filter((t) => t !== e);
19949
19973
  return r ? [...i, e] : i;
19950
19974
  });
19951
- }, j = q(() => _ ? e?.filter((e) => e?.clientGalleryMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(_?.toLowerCase())) : e?.filter((e) => e?.clientGalleryMetrics?.length), [e, _]), M = q(() => _ ? e?.filter((e) => !e?.clientGalleryMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(_?.toLowerCase())) : e?.filter((e) => !e?.clientGalleryMetrics?.length), [e, _]), { containerRef: N, handleScroll: P, visibleCount: ne, isLoadingMore: re } = oh({
19975
+ }, j = q(() => _ ? e?.filter((e) => e?.clientGalleryMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(_?.toLowerCase())) : e?.filter((e) => e?.clientGalleryMetrics?.length), [e, _]), M = q(() => _ ? e?.filter((e) => !e?.clientGalleryMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(_?.toLowerCase())) : e?.filter((e) => !e?.clientGalleryMetrics?.length), [e, _]), { containerRef: N, handleScroll: P, visibleCount: ne, isLoadingMore: re } = sh({
19952
19976
  initialCount: 4,
19953
19977
  incrementCount: 4,
19954
19978
  itemCount: (M?.length || 0) + (j?.length || 0),
@@ -19965,15 +19989,15 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19965
19989
  l?.(E), c(!1);
19966
19990
  },
19967
19991
  headerTitle: "Metrics Gallery",
19968
- children: [/* @__PURE__ */ Q(Cn, {
19969
- className: sh.manageMetricContainer,
19992
+ children: [/* @__PURE__ */ Q(wn, {
19993
+ className: ch.manageMetricContainer,
19970
19994
  direction: "col",
19971
19995
  children: [
19972
19996
  /* @__PURE__ */ Z(gn, {
19973
19997
  setSearchKeyword: v,
19974
19998
  className: "dbn:w-full"
19975
19999
  }),
19976
- /* @__PURE__ */ Q(Cn, {
20000
+ /* @__PURE__ */ Q(wn, {
19977
20001
  containerRef: N,
19978
20002
  onScroll: P,
19979
20003
  direction: "row",
@@ -19982,13 +20006,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
19982
20006
  F?.map((e) => {
19983
20007
  let s = h?.includes(e?.id);
19984
20008
  return /* @__PURE__ */ Q("button", {
19985
- className: `${sh.manageMetricCard} ${s ? `dbn-manage-metric-card ${sh.borderPrimary}` : ""}`,
20009
+ className: `${ch.manageMetricCard} ${s ? `dbn-manage-metric-card ${ch.borderPrimary}` : ""}`,
19986
20010
  "aria-pressed": s,
19987
20011
  onClick: () => te(e.id),
19988
20012
  type: "button",
19989
20013
  "data-testid": `manageCard-${e?.name?.toLowerCase().replaceAll(" ", "-")}`,
19990
20014
  children: [
19991
- /* @__PURE__ */ Q(Cn, {
20015
+ /* @__PURE__ */ Q(wn, {
19992
20016
  direction: "row",
19993
20017
  className: "dbn:justify-between dbn:items-center",
19994
20018
  children: [/* @__PURE__ */ Z("div", {
@@ -20006,16 +20030,16 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20006
20030
  }
20007
20031
  })]
20008
20032
  }),
20009
- /* @__PURE__ */ Z(ch, {
20033
+ /* @__PURE__ */ Z(lh, {
20010
20034
  verdict: D.get(e?.id),
20011
20035
  isGateOn: !0
20012
20036
  }),
20013
- /* @__PURE__ */ Z(lh, { metric: e }),
20037
+ /* @__PURE__ */ Z(uh, { metric: e }),
20014
20038
  /* @__PURE__ */ Z("div", {
20015
20039
  className: "dbn:w-full dbn:h-[90%]",
20016
20040
  id: e.id,
20017
20041
  style: { pointerEvents: "none" },
20018
- children: /* @__PURE__ */ Z(Vm, {
20042
+ children: /* @__PURE__ */ Z(Hm, {
20019
20043
  token: t,
20020
20044
  language: d,
20021
20045
  translationDictionary: f,
@@ -20036,13 +20060,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20036
20060
  I?.map((e) => {
20037
20061
  let s = h?.includes(e?.id);
20038
20062
  return /* @__PURE__ */ Q("button", {
20039
- className: `${sh.manageMetricCard} ${s ? `dbn-manage-metric-card ${sh.borderPrimary}` : ""}`,
20063
+ className: `${ch.manageMetricCard} ${s ? `dbn-manage-metric-card ${ch.borderPrimary}` : ""}`,
20040
20064
  "aria-pressed": s,
20041
20065
  onClick: () => te(e.id),
20042
20066
  type: "button",
20043
20067
  "data-testid": `manageCard-${e?.name?.toLowerCase().replaceAll(" ", "-")}`,
20044
20068
  children: [
20045
- /* @__PURE__ */ Q(Cn, {
20069
+ /* @__PURE__ */ Q(wn, {
20046
20070
  direction: "row",
20047
20071
  className: "dbn:justify-between dbn:items-center",
20048
20072
  children: [/* @__PURE__ */ Z("div", {
@@ -20060,16 +20084,16 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20060
20084
  }
20061
20085
  })]
20062
20086
  }),
20063
- /* @__PURE__ */ Z(ch, {
20087
+ /* @__PURE__ */ Z(lh, {
20064
20088
  verdict: D.get(e?.id),
20065
20089
  isGateOn: !0
20066
20090
  }),
20067
- /* @__PURE__ */ Z(lh, { metric: e }),
20091
+ /* @__PURE__ */ Z(uh, { metric: e }),
20068
20092
  /* @__PURE__ */ Z("div", {
20069
20093
  className: "dbn:w-full dbn:h-[90%]",
20070
20094
  id: e.id,
20071
20095
  style: { pointerEvents: "none" },
20072
- children: /* @__PURE__ */ Z(Vm, {
20096
+ children: /* @__PURE__ */ Z(Hm, {
20073
20097
  token: t,
20074
20098
  language: d,
20075
20099
  translationDictionary: f,
@@ -20087,7 +20111,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20087
20111
  ]
20088
20112
  }, e?.id);
20089
20113
  }),
20090
- re && /* @__PURE__ */ Z(Cn, {
20114
+ re && /* @__PURE__ */ Z(wn, {
20091
20115
  className: "dbn:w-full dbn:pb-6",
20092
20116
  children: /* @__PURE__ */ Z(ua, {})
20093
20117
  })
@@ -20156,17 +20180,17 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20156
20180
  children: "Save"
20157
20181
  })] })]
20158
20182
  });
20159
- }, dh = ({ clientId: e, tableName: t, tenancyLevel: n }) => n !== "DATABASE" || !e || !t ? t || "" : `${e}.${We(t).name}`, fh = ({ applyOnTables: e, clientId: t, tenancyLevel: n }) => e?.map((e) => ({
20183
+ }, fh = ({ clientId: e, tableName: t, tenancyLevel: n }) => n !== "DATABASE" || !e || !t ? t || "" : `${e}.${We(t).name}`, ph = ({ applyOnTables: e, clientId: t, tenancyLevel: n }) => e?.map((e) => ({
20160
20184
  ...e,
20161
- tableName: dh({
20185
+ tableName: fh({
20162
20186
  clientId: t,
20163
20187
  tableName: e.tableName,
20164
20188
  tenancyLevel: n
20165
20189
  })
20166
- })), ph = (e, t) => Array.isArray(e) ? e : e && typeof e == "object" ? Object.entries(e).map(([e, n]) => ({
20190
+ })), mh = (e, t) => Array.isArray(e) ? e : e && typeof e == "object" ? Object.entries(e).map(([e, n]) => ({
20167
20191
  id: e,
20168
20192
  [t]: n
20169
- })) : [], mh = (e) => ph(e, "xAxisSettings"), hh = (e) => ph(e, "yAxisSettings"), gh = ({ hasToken: e, isLoading: t, error: n, isLoaded: r, onServerEvent: i }) => {
20193
+ })) : [], hh = (e) => mh(e, "xAxisSettings"), gh = (e) => mh(e, "yAxisSettings"), _h = ({ hasToken: e, isLoading: t, error: n, isLoaded: r, onServerEvent: i }) => {
20170
20194
  K(() => {
20171
20195
  e ? n ? i?.(n) : t ? i?.(d) : r && i?.(b) : i?.("INVALID_TOKEN");
20172
20196
  }, [
@@ -20176,13 +20200,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20176
20200
  r,
20177
20201
  i
20178
20202
  ]);
20179
- }, _h = (e, t) => {
20203
+ }, vh = (e, t) => {
20180
20204
  if (e.current) return e.current;
20181
20205
  let n = Promise.resolve().then(t).finally(() => {
20182
20206
  e.current === n && (e.current = null);
20183
20207
  });
20184
20208
  return e.current = n, n;
20185
- }, vh = (e) => Qn.sanitize(e, {
20209
+ }, yh = (e) => Qn.sanitize(e, {
20186
20210
  ALLOWED_TAGS: [
20187
20211
  "svg",
20188
20212
  "path",
@@ -20231,9 +20255,9 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20231
20255
  ],
20232
20256
  ALLOW_DATA_ATTR: !1,
20233
20257
  RETURN_TRUSTED_TYPE: !1
20234
- }), yh = "localStorageValueSet", bh = "dbn:embed-config", xh = (e) => {
20235
- document.dispatchEvent(new CustomEvent(yh, { detail: e })), document.dispatchEvent(new CustomEvent(bh, { detail: e }));
20236
- }, Sh = va.lazy(() => import("./CreateMetricV2-BGDt9B3L.mjs")), Ch = ({ shouldFitFullScreen: e }) => /* @__PURE__ */ Z("div", {
20258
+ }), bh = "localStorageValueSet", xh = "dbn:embed-config", Sh = (e) => {
20259
+ document.dispatchEvent(new CustomEvent(bh, { detail: e })), document.dispatchEvent(new CustomEvent(xh, { detail: e }));
20260
+ }, Ch = va.lazy(() => import("./CreateMetricV2-DNSbMIqg.mjs")), wh = ({ shouldFitFullScreen: e }) => /* @__PURE__ */ Z("div", {
20237
20261
  "data-dbn-ui": "v2",
20238
20262
  "data-dbn-embed-v2": "create-metric-loading",
20239
20263
  style: { display: "contents" },
@@ -20242,13 +20266,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20242
20266
  className: da(e ? "absolute" : "fixed", "inset-0 z-(--dbn-zIndex-overlay,9999) flex items-center justify-center bg-(--background)"),
20243
20267
  children: /* @__PURE__ */ Z(ua, {})
20244
20268
  })
20245
- }), wh = (e) => {
20269
+ }), Th = (e) => {
20246
20270
  let { isSectionActive: t } = jf();
20247
20271
  return t("embed_ui_v2_create_metric") ? /* @__PURE__ */ Z(va.Suspense, {
20248
- fallback: e.isShowMetricCreateModal ? /* @__PURE__ */ Z(Ch, { shouldFitFullScreen: e.shouldFitFullScreen }) : null,
20249
- children: /* @__PURE__ */ Z(Sh, { ...e })
20272
+ fallback: e.isShowMetricCreateModal ? /* @__PURE__ */ Z(wh, { shouldFitFullScreen: e.shouldFitFullScreen }) : null,
20273
+ children: /* @__PURE__ */ Z(Ch, { ...e })
20250
20274
  }) : /* @__PURE__ */ Z(lf, { ...e });
20251
- }, Th = ({ props: { metricList: e, token: t, client: n, companyTenancyType: r, workspaceId: i, chartAppearance: a, colors: o, isOpenModal: s, setOpenModal: c, onServerEvent: l, datasourceId: d, language: f, translationDictionary: p, externalDashboardId: m, companyId: h, refetchDashboardData: g, globalFilters: _, params: v } }) => {
20275
+ }, Eh = ({ props: { metricList: e, token: t, client: n, companyTenancyType: r, workspaceId: i, chartAppearance: a, colors: o, isOpenModal: s, setOpenModal: c, onServerEvent: l, datasourceId: d, language: f, translationDictionary: p, externalDashboardId: m, companyId: h, refetchDashboardData: g, globalFilters: _, params: v } }) => {
20252
20276
  let [y, b] = Y([]), [x, S] = Y("");
20253
20277
  K(() => {
20254
20278
  if (e?.length) {
@@ -20256,7 +20280,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20256
20280
  b(t);
20257
20281
  }
20258
20282
  }, [e]);
20259
- let { onSaveManageMetrics: C, isLoading: w } = _a(t, l), { saveLogsAsync: T } = Gi(), E = q(() => x ? e?.filter((e) => !e?.clientArchivedMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(x?.toLowerCase())) : e?.filter((e) => !e?.clientArchivedMetrics?.length), [e, x]), D = q(() => x ? e?.filter((e) => e?.clientArchivedMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(x?.toLowerCase())) : e?.filter((e) => e?.clientArchivedMetrics?.length), [e, x]), { containerRef: O, handleScroll: ee, visibleCount: k, isLoadingMore: A } = oh({
20283
+ let { onSaveManageMetrics: C, isLoading: w } = _a(t, l), { saveLogsAsync: T } = Gi(), E = q(() => x ? e?.filter((e) => !e?.clientArchivedMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(x?.toLowerCase())) : e?.filter((e) => !e?.clientArchivedMetrics?.length), [e, x]), D = q(() => x ? e?.filter((e) => e?.clientArchivedMetrics?.length)?.filter((e) => e?.name?.toLowerCase()?.includes(x?.toLowerCase())) : e?.filter((e) => e?.clientArchivedMetrics?.length), [e, x]), { containerRef: O, handleScroll: ee, visibleCount: k, isLoadingMore: A } = sh({
20260
20284
  initialCount: 4,
20261
20285
  incrementCount: 4,
20262
20286
  itemCount: (D?.length || 0) + (E?.length || 0),
@@ -20273,13 +20297,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20273
20297
  l?.(u), c(!1);
20274
20298
  },
20275
20299
  headerTitle: "Manage Metrics",
20276
- children: [/* @__PURE__ */ Q(Cn, {
20277
- className: Bm.manageMetricContainer,
20300
+ children: [/* @__PURE__ */ Q(wn, {
20301
+ className: Vm.manageMetricContainer,
20278
20302
  direction: "col",
20279
20303
  children: [/* @__PURE__ */ Z(gn, {
20280
20304
  setSearchKeyword: S,
20281
20305
  className: "dbn:w-full"
20282
- }), /* @__PURE__ */ Q(Cn, {
20306
+ }), /* @__PURE__ */ Q(wn, {
20283
20307
  containerRef: O,
20284
20308
  onScroll: ee,
20285
20309
  direction: "row",
@@ -20288,13 +20312,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20288
20312
  te?.map((e) => {
20289
20313
  let s = y?.includes(e?.id);
20290
20314
  return /* @__PURE__ */ Q("div", {
20291
- className: `${Bm.manageMetricCard} ${s ? `dbn-manage-metric-card ${Bm.borderPrimary}` : ""}`,
20315
+ className: `${Vm.manageMetricCard} ${s ? `dbn-manage-metric-card ${Vm.borderPrimary}` : ""}`,
20292
20316
  onClick: () => {
20293
20317
  b(s ? (t) => t.filter((t) => t !== e?.id) : (t) => [...t?.filter((t) => t !== e?.id), e?.id]);
20294
20318
  },
20295
20319
  "data-testid": `manageCard-${e?.name?.toLowerCase().replaceAll(" ", "-")}`,
20296
20320
  children: [
20297
- /* @__PURE__ */ Q(Cn, {
20321
+ /* @__PURE__ */ Q(wn, {
20298
20322
  direction: "row",
20299
20323
  className: "dbn:justify-between dbn:items-center",
20300
20324
  children: [/* @__PURE__ */ Z("div", {
@@ -20321,7 +20345,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20321
20345
  className: "dbn:w-full dbn:h-[90%]",
20322
20346
  id: e.id,
20323
20347
  style: { pointerEvents: "none" },
20324
- children: /* @__PURE__ */ Z(Vm, {
20348
+ children: /* @__PURE__ */ Z(Hm, {
20325
20349
  token: t,
20326
20350
  language: f,
20327
20351
  translationDictionary: p,
@@ -20344,13 +20368,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20344
20368
  j?.map((e) => {
20345
20369
  let s = y?.includes(e?.id);
20346
20370
  return /* @__PURE__ */ Q("div", {
20347
- className: `${Bm.manageMetricCard} ${s ? `dbn-manage-metric-card ${Bm.borderPrimary}` : ""}`,
20371
+ className: `${Vm.manageMetricCard} ${s ? `dbn-manage-metric-card ${Vm.borderPrimary}` : ""}`,
20348
20372
  onClick: () => {
20349
20373
  b(s ? (t) => t.filter((t) => t !== e?.id) : (t) => [...t?.filter((t) => t !== e?.id), e?.id]);
20350
20374
  },
20351
20375
  "data-testid": `manageCard-${e?.name?.toLowerCase().replaceAll(" ", "-")}`,
20352
20376
  children: [
20353
- /* @__PURE__ */ Q(Cn, {
20377
+ /* @__PURE__ */ Q(wn, {
20354
20378
  direction: "row",
20355
20379
  className: "dbn:justify-between dbn:items-center",
20356
20380
  children: [/* @__PURE__ */ Z("div", {
@@ -20377,7 +20401,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20377
20401
  className: "dbn:w-full dbn:h-[90%]",
20378
20402
  id: e.id,
20379
20403
  style: { pointerEvents: "none" },
20380
- children: /* @__PURE__ */ Z(Vm, {
20404
+ children: /* @__PURE__ */ Z(Hm, {
20381
20405
  token: t,
20382
20406
  language: f,
20383
20407
  translationDictionary: p,
@@ -20397,7 +20421,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20397
20421
  ]
20398
20422
  }, e?.id);
20399
20423
  }),
20400
- A && /* @__PURE__ */ Z(Cn, {
20424
+ A && /* @__PURE__ */ Z(wn, {
20401
20425
  className: "dbn:w-full dbn:pb-6",
20402
20426
  children: /* @__PURE__ */ Z(ua, {})
20403
20427
  })
@@ -20432,11 +20456,11 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20432
20456
  children: "Save"
20433
20457
  })] })]
20434
20458
  }) });
20435
- }, Eh = va.lazy(() => import("./ManageMetricsV2-tyQYXoAT.mjs")), Dh = ({ props: e }) => {
20459
+ }, Dh = va.lazy(() => import("./ManageMetricsV2-DQ0F-Sxo.mjs")), Oh = ({ props: e }) => {
20436
20460
  let { isSectionActive: t } = jf();
20437
20461
  return t("embed_ui_v2_metric_cards") ? /* @__PURE__ */ Z(va.Suspense, {
20438
20462
  fallback: null,
20439
- children: /* @__PURE__ */ Z(Eh, {
20463
+ children: /* @__PURE__ */ Z(Dh, {
20440
20464
  client: e.client,
20441
20465
  companyId: e.companyId,
20442
20466
  externalDashboardId: e.externalDashboardId,
@@ -20447,8 +20471,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
20447
20471
  setOpenModal: e.setOpenModal,
20448
20472
  token: e.token
20449
20473
  })
20450
- }) : /* @__PURE__ */ Z(Th, { props: e });
20451
- }, Oh = {
20474
+ }) : /* @__PURE__ */ Z(Eh, { props: e });
20475
+ }, kh = {
20452
20476
  "dbn-dashboard": "_dbn-dashboard_qblzt_1",
20453
20477
  "dbn-metric": "_dbn-metric_qblzt_1",
20454
20478
  "dbn-portal": "_dbn-portal_qblzt_1",
@@ -21005,16 +21029,16 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21005
21029
  "export-top-left": "_export-top-left_qblzt_102",
21006
21030
  "export-top-right": "_export-top-right_qblzt_105",
21007
21031
  pulse: "_pulse_qblzt_1"
21008
- }, kh = (e) => !!e && typeof e == "object" && !Array.isArray(e) && "startDate" in e && "endDate" in e, Ah = (e) => !!e && typeof e == "object" && !Array.isArray(e) && "min" in e && "max" in e, jh = (e) => e == null || e === "" ? !1 : Array.isArray(e) ? e.length > 0 : kh(e) ? !!(e.startDate || e.endDate) : !Ah(e) || e.min !== null || e.max !== null, Mh = (e) => typeof e == "string" ? Ke(e) : e, Nh = (e) => e instanceof Date ? e.toISOString() : typeof e == "string" ? Mh(e) : Array.isArray(e) ? e.map(Nh) : kh(e) ? {
21009
- startDate: Nh(e.startDate),
21010
- endDate: Nh(e.endDate)
21011
- } : e, Ph = ({ dashboardId: e, filters: t }) => {
21032
+ }, Ah = (e) => !!e && typeof e == "object" && !Array.isArray(e) && "startDate" in e && "endDate" in e, jh = (e) => !!e && typeof e == "object" && !Array.isArray(e) && "min" in e && "max" in e, Mh = (e) => e == null || e === "" ? !1 : Array.isArray(e) ? e.length > 0 : Ah(e) ? !!(e.startDate || e.endDate) : !jh(e) || e.min !== null || e.max !== null, Nh = (e) => typeof e == "string" ? Ke(e) : e, Ph = (e) => e instanceof Date ? e.toISOString() : typeof e == "string" ? Nh(e) : Array.isArray(e) ? e.map(Ph) : Ah(e) ? {
21033
+ startDate: Ph(e.startDate),
21034
+ endDate: Ph(e.endDate)
21035
+ } : e, Fh = ({ dashboardId: e, filters: t }) => {
21012
21036
  let n = [], r = {}, i = /* @__PURE__ */ new Set();
21013
21037
  return (Array.isArray(t) ? t : []).forEach((e) => {
21014
21038
  let t = e?.label?.trim();
21015
- if (!t || i.has(t) || !jh(e?.value)) return;
21039
+ if (!t || i.has(t) || !Mh(e?.value)) return;
21016
21040
  i.add(t);
21017
- let a = Nh(e?.value);
21041
+ let a = Ph(e?.value);
21018
21042
  n.push({
21019
21043
  label: t,
21020
21044
  column: e?.column,
@@ -21026,7 +21050,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21026
21050
  filters: n,
21027
21051
  globalFilterOptions: r
21028
21052
  };
21029
- }, Fh = ({ isDashboardReady: e, hasLayoutAction: t, hasDownloadAction: n, hasPdfAction: r, hasManageMetricsAction: i, hasGalleryAction: a }) => e && (t || n || r || i || a), Ih = Ca(async () => ({ default: (await import("./Portal-C4N01WKg.mjs").then((e) => e.g)).GlobalFilters })), Lh = Ca(async () => ({ default: (await import("./CreateGlobalFilter-oHjA0P9O.mjs")).CreateGlobalFilter })), Rh = ({ children: e, surface: t }) => /* @__PURE__ */ Z(mn, {
21053
+ }, Ih = ({ isDashboardReady: e, hasLayoutAction: t, hasDownloadAction: n, hasPdfAction: r, hasManageMetricsAction: i, hasGalleryAction: a }) => e && (t || n || r || i || a), Lh = Ca(async () => ({ default: (await import("./Portal-CuJ3yA9x.mjs").then((e) => e.g)).GlobalFilters })), Rh = Ca(async () => ({ default: (await import("./CreateGlobalFilter-DJ75cI8r.mjs")).CreateGlobalFilter })), zh = ({ children: e, surface: t }) => /* @__PURE__ */ Z(mn, {
21030
21054
  surface: t,
21031
21055
  fallback: /* @__PURE__ */ Q("div", {
21032
21056
  className: "dbn:flex dbn:min-h-12 dbn:w-full dbn:items-center dbn:justify-center",
@@ -21039,13 +21063,13 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21039
21063
  ]
21040
21064
  }),
21041
21065
  children: e
21042
- }), zh = (e) => /* @__PURE__ */ Z(Rh, {
21066
+ }), Bh = (e) => /* @__PURE__ */ Z(zh, {
21043
21067
  surface: "dashboard filters",
21044
- children: /* @__PURE__ */ Z(Ih, { ...e })
21045
- }), Bh = (e) => /* @__PURE__ */ Z(Rh, {
21046
- surface: "filter editor",
21047
21068
  children: /* @__PURE__ */ Z(Lh, { ...e })
21048
- }), Vh = Ca(() => import("./ScheduleEmail-PEzbadHC.mjs")), Hh = ({ props: e }) => /* @__PURE__ */ Z(mn, {
21069
+ }), Vh = (e) => /* @__PURE__ */ Z(zh, {
21070
+ surface: "filter editor",
21071
+ children: /* @__PURE__ */ Z(Rh, { ...e })
21072
+ }), Hh = Ca(() => import("./ScheduleEmail-C_H0_DNM.mjs")), Uh = ({ props: e }) => /* @__PURE__ */ Z(mn, {
21049
21073
  surface: "schedule-email",
21050
21074
  fallback: /* @__PURE__ */ Z("div", {
21051
21075
  className: "dbn:flex dbn:min-h-32 dbn:items-center dbn:justify-center dbn:p-4",
@@ -21053,8 +21077,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21053
21077
  role: "status",
21054
21078
  children: "Loading schedule settings..."
21055
21079
  }),
21056
- children: /* @__PURE__ */ Z(Vh, { props: e })
21057
- }), Uh = ({ sharingSettingsId: e, isAllowedToEmailReports: t, disableScheduleEmailReports: n, showDashboardActions: r, surface: i }) => n ? {
21080
+ children: /* @__PURE__ */ Z(Hh, { props: e })
21081
+ }), Wh = ({ sharingSettingsId: e, isAllowedToEmailReports: t, disableScheduleEmailReports: n, showDashboardActions: r, surface: i }) => n ? {
21058
21082
  available: !1,
21059
21083
  reason: "DISABLED_BY_OPTION"
21060
21084
  } : e ? t ? i === "header" && !r ? {
@@ -21066,17 +21090,17 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21066
21090
  } : {
21067
21091
  available: !1,
21068
21092
  reason: "SMTP_NOT_CONFIGURED"
21069
- }, Wh = {
21093
+ }, Gh = {
21070
21094
  DISABLED_BY_OPTION: "The host page sets disableScheduleEmailReports: true in the dbn-dashboard options.",
21071
21095
  SMTP_NOT_CONFIGURED: "Set up SMTP in Settings > Embed & Distribution > Email Settings, then allow end users to schedule email reports on the embed.",
21072
21096
  EMBED_TOGGLE_OFF: "Turn on 'Allow end users to schedule email reports' in the embed access settings, or set permissions.isAllowEmailReports in the guest token.",
21073
21097
  DASHBOARD_ACTIONS_HIDDEN: "Pass showDashboardActions: true in the dbn-dashboard options to show the action row."
21074
- }, Gh = /* @__PURE__ */ new Set(), Kh = (e) => {
21075
- Gh.has(e) || (Gh.add(e), console.info(`[Databrain embed] schedule report hidden: ${e}. ${Wh[e]}`), P("dashboard.schedule_report_hidden", { reason: e }));
21076
- }, qh = (e) => {
21098
+ }, Kh = /* @__PURE__ */ new Set(), qh = (e) => {
21099
+ Kh.has(e) || (Kh.add(e), console.info(`[Databrain embed] schedule report hidden: ${e}. ${Gh[e]}`), P("dashboard.schedule_report_hidden", { reason: e }));
21100
+ }, Jh = (e) => {
21077
21101
  let t = e?.position === "absolute", n = e?.top?.toString() || e?.bottom?.toString() || e?.left?.toString() || e?.right?.toString();
21078
21102
  return t && n;
21079
- }, Jh = [
21103
+ }, Yh = [
21080
21104
  "#5470c6",
21081
21105
  "#91cc75",
21082
21106
  "#fac858",
@@ -21086,7 +21110,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21086
21110
  "#fc8452",
21087
21111
  "#9a60b4",
21088
21112
  "#ea7ccc"
21089
- ], Yh = ya.memo(({ options: e, theme: t, adminThemeOption: n, customMessages: r, themeName: i, setAdminTheme: a, dashboardId: o, globalFilterOptions: s, onServerEvent: c, noDataImg: l, noDataFoundSvg: u, customContent: d, customSettingsBtn: f, chartColumns: p, language: m, translationDictionary: h, hideDashboardFilters: g, calendarType: _ = "default", componentToken: v, customChartSettings: y, chartClickFunction: b, filterStateFunction: x, configId: S }) => {
21113
+ ], Xh = ya.memo(({ options: e, theme: t, adminThemeOption: n, customMessages: r, themeName: i, setAdminTheme: a, dashboardId: o, globalFilterOptions: s, onServerEvent: c, noDataImg: l, noDataFoundSvg: u, customContent: d, customSettingsBtn: f, chartColumns: p, language: m, translationDictionary: h, hideDashboardFilters: g, calendarType: _ = "default", componentToken: v, customChartSettings: y, chartClickFunction: b, filterStateFunction: x, configId: S }) => {
21090
21114
  let C = new URLSearchParams(window.location.search), w = C.get("isDbn"), T = S || C.get("configId"), E = C.get("embed"), [D, O] = Y(window.location.search), ee = J(pi(window.location.search, e?.legacyUrlState ? void 0 : o)), [k, A] = Y({}), j = wa((e, t) => {
21091
21115
  A((n) => {
21092
21116
  if (!t) {
@@ -21170,7 +21194,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21170
21194
  tableName: "",
21171
21195
  filters: []
21172
21196
  });
21173
- }, []), [kt, jt] = Y(!1), [Mt, Nt] = Y(), [Pt, H] = Y(), [Ft, Lt] = Y(""), Rt = yn(), zt = In(), Bt = J(new URLSearchParams(window.location.search).has("pdfGlobalFilters") || new URLSearchParams(window.location.search).has("pdfMetricFilters") || new URLSearchParams(window.location.search).has("pdfAxisSettings")), Vt = q(() => {
21197
+ }, []), [kt, jt] = Y(!1), [Mt, Nt] = Y(), [Pt, H] = Y(), [Ft, Lt] = Y(""), Rt = bn(), zt = In(), Bt = J(new URLSearchParams(window.location.search).has("pdfGlobalFilters") || new URLSearchParams(window.location.search).has("pdfMetricFilters") || new URLSearchParams(window.location.search).has("pdfAxisSettings")), Vt = q(() => {
21174
21198
  let e = new URLSearchParams(window.location.search).get("pdfMetricFilters");
21175
21199
  if (e) try {
21176
21200
  let t = JSON.parse(atob(e));
@@ -21236,7 +21260,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21236
21260
  K(() => (window.addEventListener("resize", fn), () => window.removeEventListener("resize", fn)), []);
21237
21261
  let pn = q(() => (vt.width >= 800 && Fe(!1), vt.width < 800), [vt.width]);
21238
21262
  K(() => {
21239
- xh({
21263
+ Sh({
21240
21264
  ishideSidebar: !N?.isShowSideBar,
21241
21265
  config: N?.config,
21242
21266
  dashboardId: o,
@@ -21249,18 +21273,18 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21249
21273
  N?.externalDashboard?.id,
21250
21274
  o,
21251
21275
  T
21252
- ]), gh({
21276
+ ]), _h({
21253
21277
  hasToken: !!L || !!window?.dbn?.isEnableProxyAuth,
21254
21278
  isLoading: P,
21255
21279
  error: re,
21256
21280
  isLoaded: !!N?.externalDashboard?.id,
21257
21281
  onServerEvent: c
21258
21282
  });
21259
- let mn = ne(), [gn, _n] = Y(!1), [vn, bn] = Y(!1), xn = J(null), Sn = wa(() => xn.current ? xn.current : (bn(!0), _h(xn, async () => {
21283
+ let mn = ne(), [gn, _n] = Y(!1), [vn, yn] = Y(!1), xn = J(null), Sn = wa(() => xn.current ? xn.current : (yn(!0), vh(xn, async () => {
21260
21284
  try {
21261
21285
  await Promise.all([mn.invalidateQueries({ queryKey: [te] }), F?.()]);
21262
21286
  } finally {
21263
- bn(!1);
21287
+ yn(!1);
21264
21288
  }
21265
21289
  })), [mn, F]);
21266
21290
  K(() => {
@@ -21358,7 +21382,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21358
21382
  };
21359
21383
  };
21360
21384
  return (N?.externalDashboard?.filters?.map((n) => {
21361
- let a = dh({
21385
+ let a = fh({
21362
21386
  clientId: N?.clientId,
21363
21387
  tableName: n?.tableName,
21364
21388
  tenancyLevel: N?.companyTenancyType
@@ -21383,7 +21407,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21383
21407
  originalLabel: t?.label,
21384
21408
  renameFilterKey: It(n, t),
21385
21409
  selectedTable: t?.selectedTable || a,
21386
- applyOnTables: fh({
21410
+ applyOnTables: ph({
21387
21411
  applyOnTables: t?.applyOnTables,
21388
21412
  clientId: N?.clientId,
21389
21413
  tenancyLevel: N?.companyTenancyType
@@ -21500,7 +21524,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21500
21524
  o,
21501
21525
  Nn
21502
21526
  ]), K(() => {
21503
- typeof x == "function" && x(Ph({
21527
+ typeof x == "function" && x(Fh({
21504
21528
  dashboardId: o,
21505
21529
  filters: Jn(Et?.filters || [], (kn || []).flatMap((e) => e?.columns || []))
21506
21530
  }));
@@ -21578,7 +21602,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21578
21602
  de,
21579
21603
  dn?.length
21580
21604
  ]);
21581
- let Bn = q(() => Ur(N, e), [N, e]), Vn = Bn.canCustomizeLayout, Hn = Bn.canCreateMetric, Un = q(() => Uh({
21605
+ let Bn = q(() => Ur(N, e), [N, e]), Vn = Bn.canCustomizeLayout, Hn = Bn.canCreateMetric, Un = q(() => Wh({
21582
21606
  sharingSettingsId: N?.sharingSettingsId,
21583
21607
  isAllowedToEmailReports: N?.isAllowedToEmailReports,
21584
21608
  disableScheduleEmailReports: e?.disableScheduleEmailReports,
@@ -21591,7 +21615,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21591
21615
  N?.isAllowedToEmailReports
21592
21616
  ]), Wn = Un.available, G = !!N?.externalDashboard?.id;
21593
21617
  K(() => {
21594
- w || !G || P || re || Un.reason && Kh(Un.reason);
21618
+ w || !G || P || re || Un.reason && qh(Un.reason);
21595
21619
  }, [
21596
21620
  w,
21597
21621
  G,
@@ -21633,8 +21657,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21633
21657
  N?.isAllClient,
21634
21658
  Qn
21635
21659
  ]), tr = q(() => {
21636
- let n = !!t?.manageMetricsStyle && qh(t.manageMetricsStyle), r = !pn && Bn.canManageMetrics && !n;
21637
- return Fh({
21660
+ let n = !!t?.manageMetricsStyle && Jh(t.manageMetricsStyle), r = !pn && Bn.canManageMetrics && !n;
21661
+ return Ih({
21638
21662
  isDashboardReady: ve,
21639
21663
  hasLayoutAction: !(pn || !Bn.canCustomizeLayout),
21640
21664
  hasDownloadAction: !!(Ye && (N?.isAllowToDownloadAllMetrics || e?.enableDownloadAllMetrics)),
@@ -21654,7 +21678,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21654
21678
  er.length
21655
21679
  ]), nr = q(() => Qn?.filter((e) => e?.datasetMetricSettings?.metricImportMode === "GALLERY") || [], [Qn?.length]), rr = q(() => vt?.width > 800 && dn?.flatMap((e) => e?.externalMetric?.chartOptions?.mergedCards?.map((e) => e.value))?.filter((e) => !!e) || [], [dn, vt.width]);
21656
21680
  K(() => {
21657
- oe.current && (Bn.canCreateMetric && N?.metricCreationMode === "DRAG_DROP" && (oe.current.onClickCreateMetric = () => ue(!0)), Bn.canManageMetrics && dn?.length && (!t?.manageMetricsStyle || t?.manageMetricsStyle && !qh(t?.manageMetricsStyle)) && (oe.current.onClickManageMetrics = () => he(!0)), Uh({
21681
+ oe.current && (Bn.canCreateMetric && N?.metricCreationMode === "DRAG_DROP" && (oe.current.onClickCreateMetric = () => ue(!0)), Bn.canManageMetrics && dn?.length && (!t?.manageMetricsStyle || t?.manageMetricsStyle && !Jh(t?.manageMetricsStyle)) && (oe.current.onClickManageMetrics = () => he(!0)), Wh({
21658
21682
  sharingSettingsId: N?.sharingSettingsId,
21659
21683
  isAllowedToEmailReports: N?.isAllowedToEmailReports,
21660
21684
  disableScheduleEmailReports: e?.disableScheduleEmailReports,
@@ -21903,8 +21927,8 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21903
21927
  let e = Yn ? kr : void 0;
21904
21928
  return Ht ? {
21905
21929
  metricViewFilters: e?.metricViewFilters || [],
21906
- xAxisSettings: [...mh(Ht.xAxisSettings), ...e?.xAxisSettings || []],
21907
- yAxisSettings: [...hh(Ht.yAxisSettings), ...e?.yAxisSettings || []]
21930
+ xAxisSettings: [...hh(Ht.xAxisSettings), ...e?.xAxisSettings || []],
21931
+ yAxisSettings: [...gh(Ht.yAxisSettings), ...e?.yAxisSettings || []]
21908
21932
  } : e;
21909
21933
  }, [
21910
21934
  Yn,
@@ -21939,7 +21963,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21939
21963
  isMobileModal: !0,
21940
21964
  headerTitle: "Dashboard Filters",
21941
21965
  keepMounted: !0,
21942
- children: /* @__PURE__ */ Z(zh, {
21966
+ children: /* @__PURE__ */ Z(Bh, {
21943
21967
  encryptedClientId: "",
21944
21968
  isMobileView: pn,
21945
21969
  selectedViewOption: ut,
@@ -21990,7 +22014,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
21990
22014
  }))
21991
22015
  }
21992
22016
  })
21993
- }) : /* @__PURE__ */ Z(zh, {
22017
+ }) : /* @__PURE__ */ Z(Bh, {
21994
22018
  encryptedClientId: "",
21995
22019
  selectedViewOption: ut,
21996
22020
  setSelectViewOption: dt,
@@ -22042,7 +22066,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22042
22066
  }) : null, [Vr, Hr] = Y("");
22043
22067
  return K(() => {
22044
22068
  if (f?.iconSvg) {
22045
- let e = vh(f?.iconSvg), t = new Blob([e], { type: "image/svg+xml" }), n = URL.createObjectURL(t);
22069
+ let e = yh(f?.iconSvg), t = new Blob([e], { type: "image/svg+xml" }), n = URL.createObjectURL(t);
22046
22070
  return Hr(n), () => {
22047
22071
  URL.revokeObjectURL(n);
22048
22072
  };
@@ -22056,21 +22080,21 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22056
22080
  /* @__PURE__ */ Q("div", {
22057
22081
  className: "dbn:relative dbn:h-full dbn:w-full",
22058
22082
  children: [/* @__PURE__ */ Q("div", {
22059
- className: `${Oh["embedDashboard-container"]} dbn-dashboard ${e?.shouldFitFullScreen && (tt?.show || le) ? "dbn:overflow-hidden" : ""}`,
22083
+ className: `${kh["embedDashboard-container"]} dbn-dashboard ${e?.shouldFitFullScreen && (tt?.show || le) ? "dbn:overflow-hidden" : ""}`,
22060
22084
  style: { pointerEvents: Oe ? "none" : void 0 },
22061
22085
  ref: oe,
22062
22086
  children: [
22063
22087
  N?.externalDashboard?.id && !P && !re && /* @__PURE__ */ Q(X, { children: [
22064
22088
  !Sr && !Hn && !Vn && !Wn && !Gn && !tr || !e?.showDashboardActions ? null : !w && /* @__PURE__ */ Q("div", {
22065
- className: `${Oh["embedDashboard-header"]} ${Sr ? Oh.justifyBetween : Oh.justifyEnd}`,
22089
+ className: `${kh["embedDashboard-header"]} ${Sr ? kh.justifyBetween : kh.justifyEnd}`,
22066
22090
  style: Ee ? { pointerEvents: "none" } : {},
22067
22091
  children: [
22068
22092
  Sr ? /* @__PURE__ */ Z("h1", {
22069
- className: Oh.dashboardName,
22093
+ className: kh.dashboardName,
22070
22094
  children: N.externalDashboard.name || "Dashboard"
22071
22095
  }) : null,
22072
22096
  /* @__PURE__ */ Z("div", {
22073
- className: Oh["embedDashboard-header-buttons"],
22097
+ className: kh["embedDashboard-header-buttons"],
22074
22098
  children: wt.isEnabled && !pn ? /* @__PURE__ */ Q("div", {
22075
22099
  className: "dbn:flex dbn:gap-4 dbn:items-center",
22076
22100
  children: [e?.dashboardSpacing?.hide ? null : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(hn, {
@@ -22278,7 +22302,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22278
22302
  children: "Export As PDF"
22279
22303
  })
22280
22304
  }),
22281
- !pn && Bn.canManageMetrics && !!er?.length && (!t?.manageMetricsStyle || t?.manageMetricsStyle && !qh(t?.manageMetricsStyle)) && /* @__PURE__ */ Z("div", {
22305
+ !pn && Bn.canManageMetrics && !!er?.length && (!t?.manageMetricsStyle || t?.manageMetricsStyle && !Jh(t?.manageMetricsStyle)) && /* @__PURE__ */ Z("div", {
22282
22306
  className: "dbn:hover:bg-gray-3 dbn:rounded-md",
22283
22307
  children: /* @__PURE__ */ Z(B, {
22284
22308
  variant: "tertiary",
@@ -22293,7 +22317,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22293
22317
  children: d ? d() : "Manage Metrics"
22294
22318
  })
22295
22319
  }),
22296
- !pn && Bn.canManageMetrics && !!N.externalDashboardMetrics?.filter((e) => e?.externalMetric?.datasetMetricSettings?.metricImportMode === "GALLERY").length && (!t?.manageMetricsStyle || t?.manageMetricsStyle && !qh(t?.manageMetricsStyle)) && /* @__PURE__ */ Z("div", {
22320
+ !pn && Bn.canManageMetrics && !!N.externalDashboardMetrics?.filter((e) => e?.externalMetric?.datasetMetricSettings?.metricImportMode === "GALLERY").length && (!t?.manageMetricsStyle || t?.manageMetricsStyle && !Jh(t?.manageMetricsStyle)) && /* @__PURE__ */ Z("div", {
22297
22321
  className: "dbn:hover:bg-gray-3 dbn:rounded-md",
22298
22322
  children: /* @__PURE__ */ Z(B, {
22299
22323
  variant: "tertiary",
@@ -22342,7 +22366,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22342
22366
  onClick: () => it(!0),
22343
22367
  className: "cta-tertiary",
22344
22368
  children: /* @__PURE__ */ Z(W, { name: "magnifying-glass" })
22345
- }), /* @__PURE__ */ Z(Pn, { children: rt && /* @__PURE__ */ Z(eh, {
22369
+ }), /* @__PURE__ */ Z(Pn, { children: rt && /* @__PURE__ */ Z(th, {
22346
22370
  saveDashLayout: Dr,
22347
22371
  onServerEvent: c,
22348
22372
  refetchDashboardData: F,
@@ -22356,7 +22380,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22356
22380
  companyId: N.companyId,
22357
22381
  isLiveMode: !1,
22358
22382
  externalDashboardId: N.externalDashboard.id,
22359
- chartColors: e?.chartColors ?? Cn ?? Jh,
22383
+ chartColors: e?.chartColors ?? Cn ?? Yh,
22360
22384
  isShowMetricCreateModal: rt,
22361
22385
  setShowMetricCreateModal: it,
22362
22386
  workspaceId: N.workspace?.id,
@@ -22372,7 +22396,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22372
22396
  }),
22373
22397
  className: "cta-primary",
22374
22398
  children: "Chat with your Data"
22375
- }), /* @__PURE__ */ Z(Pn, { children: ot && /* @__PURE__ */ Z(zm, { config: {
22399
+ }), /* @__PURE__ */ Z(Pn, { children: ot && /* @__PURE__ */ Z(Bm, { config: {
22376
22400
  saveDashLayout: Dr,
22377
22401
  onServerEvent: c,
22378
22402
  refetchDashboardData: F,
@@ -22384,22 +22408,22 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22384
22408
  dashboardIds: [N.externalDashboard.id],
22385
22409
  token: L,
22386
22410
  workspaceId: N.workspace?.id,
22387
- themeChartColors: e?.chartColors ?? Cn ?? Jh,
22411
+ themeChartColors: e?.chartColors ?? Cn ?? Yh,
22388
22412
  setSearchGenerateMetricModal: st,
22389
22413
  clientId: N.clientId
22390
22414
  } }) })] })
22391
22415
  ] })
22392
22416
  }),
22393
22417
  /* @__PURE__ */ Z("div", {
22394
- className: Oh.minimapHeaderProgressContainer,
22418
+ className: kh.minimapHeaderProgressContainer,
22395
22419
  ref: ce
22396
22420
  })
22397
22421
  ]
22398
22422
  }),
22399
22423
  !e?.showDashboardActions && wt.isEnabled ? /* @__PURE__ */ Z("div", {
22400
- className: `${Oh["embedDashboard-header"]} ${Oh.justifyEnd}`,
22424
+ className: `${kh["embedDashboard-header"]} ${kh.justifyEnd}`,
22401
22425
  children: /* @__PURE__ */ Z("div", {
22402
- className: Oh["embedDashboard-header-buttons"],
22426
+ className: kh["embedDashboard-header-buttons"],
22403
22427
  children: /* @__PURE__ */ Q("div", {
22404
22428
  className: "dbn:flex dbn:gap-4 dbn:items-center",
22405
22429
  children: [e?.dashboardSpacing?.hide ? null : /* @__PURE__ */ Q(X, { children: [/* @__PURE__ */ Z(hn, {
@@ -22497,25 +22521,25 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22497
22521
  })
22498
22522
  }) : null,
22499
22523
  e?.isStickyDashboardFilters && yr ? /* @__PURE__ */ Z("div", {
22500
- className: `${Oh["embedDashboard-stickyFilters"]} dbn-selectBox ${vr ? "" : "dbn:hidden"}`,
22524
+ className: `${kh["embedDashboard-stickyFilters"]} dbn-selectBox ${vr ? "" : "dbn:hidden"}`,
22501
22525
  children: Br()
22502
22526
  }) : null,
22503
22527
  /* @__PURE__ */ Q("div", {
22504
- className: `${Oh["embedDashboard-wrapper"]} ${e?.isStickyDashboardFilters && vr ? "dbn:pt-0" : ""}`,
22528
+ className: `${kh["embedDashboard-wrapper"]} ${e?.isStickyDashboardFilters && vr ? "dbn:pt-0" : ""}`,
22505
22529
  style: e?.dashboardPadding ? { padding: e?.dashboardPadding } : {},
22506
22530
  children: [
22507
22531
  !e?.isStickyDashboardFilters && yr ? /* @__PURE__ */ Z("div", {
22508
22532
  className: vr ? "" : "dbn:hidden",
22509
22533
  children: Br()
22510
22534
  }) : null,
22511
- /* @__PURE__ */ Z(Wm, {
22535
+ /* @__PURE__ */ Z(Gm, {
22512
22536
  refreshSeconds: N?.refreshTime,
22513
22537
  isPaused: gn,
22514
22538
  onTogglePause: () => _n((e) => !e),
22515
22539
  onRefreshNow: () => void Sn(),
22516
22540
  isRefreshing: vn
22517
22541
  }),
22518
- /* @__PURE__ */ Z(km, {
22542
+ /* @__PURE__ */ Z(Am, {
22519
22543
  drillUrlState: M,
22520
22544
  customMessages: r,
22521
22545
  onCreateMetric: !pn && Bn.canCreateMetric ? N.metricCreationMode === "DRAG_DROP" ? () => {
@@ -22612,7 +22636,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22612
22636
  onClearAllFilters: Ot,
22613
22637
  breakpoint: t?.breakpoint,
22614
22638
  layoutCols: t?.metricLayoutCols,
22615
- chartColors: e?.chartColors ?? Cn ?? Jh,
22639
+ chartColors: e?.chartColors ?? Cn ?? Yh,
22616
22640
  isChartColorsExplicit: !!e?.chartColors?.length || !!Cn?.length,
22617
22641
  params: Array.isArray(N.rlsSettings) ? N.rlsSettings : [],
22618
22642
  companyTenancyType: N.companyTenancyType,
@@ -22640,7 +22664,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22640
22664
  onMetricFiltersChange: Nr,
22641
22665
  pdfMetricFilters: Vt
22642
22666
  }, `metrics-${dn?.length}-${Jt?.length}`),
22643
- /* @__PURE__ */ Z(Dh, { props: {
22667
+ /* @__PURE__ */ Z(Oh, { props: {
22644
22668
  companyId: N?.companyId,
22645
22669
  externalDashboardId: N?.externalDashboard?.externalDashboardId,
22646
22670
  language: m,
@@ -22652,7 +22676,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22652
22676
  companyTenancyType: N.companyTenancyType,
22653
22677
  workspaceId: N.workspace?.id,
22654
22678
  chartAppearance: e?.chartAppearance,
22655
- colors: e?.chartColors ?? Cn ?? Jh,
22679
+ colors: e?.chartColors ?? Cn ?? Yh,
22656
22680
  isOpenModal: me,
22657
22681
  setOpenModal: he,
22658
22682
  onServerEvent: c,
@@ -22660,7 +22684,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22660
22684
  globalFilters: Et,
22661
22685
  params: Array.isArray(N.rlsSettings) ? N.rlsSettings : []
22662
22686
  } }),
22663
- /* @__PURE__ */ Z(uh, { props: {
22687
+ /* @__PURE__ */ Z(dh, { props: {
22664
22688
  companyId: N?.companyId,
22665
22689
  externalDashboardId: N?.externalDashboard?.externalDashboardId,
22666
22690
  language: m,
@@ -22672,12 +22696,12 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22672
22696
  companyTenancyType: N.companyTenancyType,
22673
22697
  workspaceId: N.workspace?.id,
22674
22698
  chartAppearance: e?.chartAppearance,
22675
- colors: e?.chartColors ?? Cn ?? Jh,
22699
+ colors: e?.chartColors ?? Cn ?? Yh,
22676
22700
  isOpenModal: ge,
22677
22701
  setOpenModal: _e,
22678
22702
  onServerEvent: c
22679
22703
  } }),
22680
- be ? /* @__PURE__ */ Z(Hh, { props: {
22704
+ be ? /* @__PURE__ */ Z(Uh, { props: {
22681
22705
  chartOptions: $n,
22682
22706
  isShowSettings: !0,
22683
22707
  setShowSettings: xe,
@@ -22686,7 +22710,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22686
22710
  isEmbed: !0,
22687
22711
  externalDashboardId: N?.externalDashboard?.id
22688
22712
  } }) : null,
22689
- e?.shouldFitFullScreen ? le && /* @__PURE__ */ Z(wh, {
22713
+ e?.shouldFitFullScreen ? le && /* @__PURE__ */ Z(Th, {
22690
22714
  filters: ir,
22691
22715
  isIncrementalJoin: N.isIncrementalJoin,
22692
22716
  onServerEvent: c,
@@ -22702,7 +22726,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22702
22726
  companyId: N.companyId,
22703
22727
  isLiveMode: !1,
22704
22728
  externalDashboardId: N.externalDashboard.id,
22705
- chartColors: e?.chartColors ?? y?.chartColors?.defaultValue ?? Cn ?? Jh,
22729
+ chartColors: e?.chartColors ?? y?.chartColors?.defaultValue ?? Cn ?? Yh,
22706
22730
  colorPalettes: e?.chartPaletteOptions ?? wn,
22707
22731
  isShowMetricCreateModal: le,
22708
22732
  setShowMetricCreateModal: ue,
@@ -22713,7 +22737,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22713
22737
  showAllChartSettings: e?.showAllChartSettings,
22714
22738
  showChartClickSettings: e?.showChartClickSettings,
22715
22739
  allowedChartTypes: e?.allowedChartTypes
22716
- }) : /* @__PURE__ */ Z(Pn, { children: le && /* @__PURE__ */ Z(wh, {
22740
+ }) : /* @__PURE__ */ Z(Pn, { children: le && /* @__PURE__ */ Z(Th, {
22717
22741
  filters: ir,
22718
22742
  isIncrementalJoin: N?.isIncrementalJoin,
22719
22743
  onServerEvent: c,
@@ -22729,7 +22753,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22729
22753
  companyId: N.companyId,
22730
22754
  isLiveMode: !1,
22731
22755
  externalDashboardId: N.externalDashboard.id,
22732
- chartColors: e?.chartColors ?? y?.chartColors?.defaultValue ?? Cn ?? Jh,
22756
+ chartColors: e?.chartColors ?? y?.chartColors?.defaultValue ?? Cn ?? Yh,
22733
22757
  colorPalettes: e?.chartPaletteOptions ?? wn,
22734
22758
  isShowMetricCreateModal: le,
22735
22759
  setShowMetricCreateModal: ue,
@@ -22744,7 +22768,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22744
22768
  })
22745
22769
  ] }),
22746
22770
  !L && !window?.dbn?.isEnableProxyAuth && !P ? /* @__PURE__ */ Z("div", {
22747
- className: Oh["alt-container"],
22771
+ className: kh["alt-container"],
22748
22772
  children: /* @__PURE__ */ Z(al, {
22749
22773
  state: "error",
22750
22774
  widgetName: "Dashboard",
@@ -22752,11 +22776,11 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22752
22776
  })
22753
22777
  }) : null,
22754
22778
  P && !e?.disableMainLoader && /* @__PURE__ */ Z("div", {
22755
- className: Oh["alt-container"],
22779
+ className: kh["alt-container"],
22756
22780
  children: /* @__PURE__ */ Z(ua, {})
22757
22781
  }),
22758
22782
  !!(L || window?.dbn?.isEnableProxyAuth) && !P && !N?.externalDashboard?.id && re && /* @__PURE__ */ Z("div", {
22759
- className: Oh["alt-container"],
22783
+ className: kh["alt-container"],
22760
22784
  children: /* @__PURE__ */ Z(al, {
22761
22785
  state: "error",
22762
22786
  widgetName: "Dashboard",
@@ -22780,7 +22804,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22780
22804
  },
22781
22805
  headerTitle: "Dashboard Filters",
22782
22806
  size: "xl",
22783
- children: /* @__PURE__ */ Z(Bh, {
22807
+ children: /* @__PURE__ */ Z(Vh, {
22784
22808
  dashboard: N?.externalDashboard ? {
22785
22809
  ...N.externalDashboard,
22786
22810
  filters: N.externalDashboard.filters
@@ -22847,7 +22871,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22847
22871
  })
22848
22872
  }) : null,
22849
22873
  e?.exportMsgPosition !== "hidden" && (Fr || Rr || zr) ? /* @__PURE__ */ Z("div", {
22850
- className: `dbn:absolute dbn:z-[9999999] ${Oh[`export-${e?.exportMsgPosition ?? "bottom-right"}`]}`,
22874
+ className: `dbn:absolute dbn:z-[9999999] ${kh[`export-${e?.exportMsgPosition ?? "bottom-right"}`]}`,
22851
22875
  children: /* @__PURE__ */ Z("div", {
22852
22876
  className: `dbn:w-max dbn:flex dbn:items-center dbn:justify-center dbn:gap-1 dbn:p-2 dbn:rounded-md ${["bottom-left", "top-left"].includes(e?.exportMsgPosition ?? "") ? "dbn:border-r-4" : [
22853
22877
  "bottom",
@@ -22874,7 +22898,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22874
22898
  })
22875
22899
  }) : null,
22876
22900
  e?.exportMsgPosition !== "hidden" && qe ? /* @__PURE__ */ Z("div", {
22877
- className: `dbn:absolute dbn:z-[9999999] ${Oh[`export-${e?.exportMsgPosition ?? "bottom-right"}`]}`,
22901
+ className: `dbn:absolute dbn:z-[9999999] ${kh[`export-${e?.exportMsgPosition ?? "bottom-right"}`]}`,
22878
22902
  children: /* @__PURE__ */ Q("div", {
22879
22903
  role: "status",
22880
22904
  className: "dbn:max-w-[320px] dbn:flex dbn:items-start dbn:justify-center dbn:gap-1 dbn:p-2 dbn:rounded-md dbn:bg-red-100 dbn:border-l-4 dbn:border-alert",
@@ -22890,7 +22914,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22890
22914
  })
22891
22915
  }) : null
22892
22916
  ] });
22893
- }), Xh = ({ token: e, options: t, theme: n, dashboardId: r, isHideChartSettings: i, isHideTablePreview: a, isStickyDashboardFilters: o, enableDownloadAllMetrics: s, enableDownloadAllPdf: c, enableDownloadCsv: l, enableEmailCsv: u, enableMultiMetricFilters: d, disableFullscreen: f, enableTitleClickFullscreen: p, enableAdhocDrill: m, enableExcludeFilter: h, enableCrossFilter: g, enableChartDashboardNavigation: _, optionsIcon: v, settingsIcon: y, adminThemeOptions: b, customMessages: x, themeName: S, globalFilterOptions: C, handleServerEvent: w, onSupportClick: T, supportLabel: E, chartClickFunction: D, noDataImg: O, noDataFoundSvg: ee, manageMetricsBtnContent: k, disableDownloadPng: A, longDescriptionConfig: te, chartColumns: j, language: M, translationDictionary: N, hideDashboardFilters: P, calendarType: ne = "default", customChartSettings: re, uiVersion: F, embedFlags: ie, dataDbnUi: ae, configId: se, filterStateFunction: ce, debug: le }) => {
22917
+ }), Zh = ({ token: e, options: t, theme: n, dashboardId: r, isHideChartSettings: i, isHideTablePreview: a, isStickyDashboardFilters: o, enableDownloadAllMetrics: s, enableDownloadAllPdf: c, enableDownloadCsv: l, enableEmailCsv: u, enableMultiMetricFilters: d, disableFullscreen: f, enableTitleClickFullscreen: p, enableAdhocDrill: m, enableExcludeFilter: h, enableCrossFilter: g, enableChartDashboardNavigation: _, optionsIcon: v, settingsIcon: y, adminThemeOptions: b, customMessages: x, themeName: S, globalFilterOptions: C, handleServerEvent: w, onSupportClick: T, supportLabel: E, chartClickFunction: D, noDataImg: O, noDataFoundSvg: ee, manageMetricsBtnContent: k, disableDownloadPng: A, longDescriptionConfig: te, chartColumns: j, language: M, translationDictionary: N, hideDashboardFilters: P, calendarType: ne = "default", customChartSettings: re, uiVersion: F, embedFlags: ie, dataDbnUi: ae, configId: se, filterStateFunction: ce, debug: le }) => {
22894
22918
  let [ue, de] = Y(), { ref: fe, target: R } = Ne(Wo(ae), { dashboardId: r });
22895
22919
  oe(le);
22896
22920
  let pe = J(void 0);
@@ -22966,7 +22990,7 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
22966
22990
  token: e,
22967
22991
  dashboardId: r,
22968
22992
  configId: he() || "",
22969
- children: /* @__PURE__ */ Z(Yh, {
22993
+ children: /* @__PURE__ */ Z(Xh, {
22970
22994
  componentToken: e,
22971
22995
  calendarType: ne,
22972
22996
  options: {
@@ -23037,12 +23061,12 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
23037
23061
  })
23038
23062
  })
23039
23063
  })] });
23040
- }, Zh = [
23064
+ }, Qh = [
23041
23065
  "light",
23042
23066
  "dark",
23043
23067
  "system",
23044
23068
  "theme"
23045
- ], Qh = (e) => typeof e == "object" && !!e && !Array.isArray(e), $h = (e) => e != null && e !== "", eg = (e) => typeof e == "string" ? JSON.stringify(e) : Array.isArray(e) ? "an array" : typeof e, tg = (e, t) => {
23069
+ ], $h = (e) => typeof e == "object" && !!e && !Array.isArray(e), eg = (e) => e != null && e !== "", tg = (e) => typeof e == "string" ? JSON.stringify(e) : Array.isArray(e) ? "an array" : typeof e, ng = (e, t) => {
23046
23070
  let n = [], r = (t, r) => n.push({
23047
23071
  prop: t,
23048
23072
  message: `<${e}> "${t}" ${r}`
@@ -23054,41 +23078,41 @@ var Np = ({ isOpen: e, onClose: t, report: n, isLoading: r, subText: i, zIndex:
23054
23078
  "themeName"
23055
23079
  ]) {
23056
23080
  let n = t[e];
23057
- $h(n) && typeof n != "string" && r(e, `must be a string, got ${eg(n)}.`);
23081
+ eg(n) && typeof n != "string" && r(e, `must be a string, got ${tg(n)}.`);
23058
23082
  }
23059
23083
  let i = t.colorScheme;
23060
- $h(i) && !Zh.includes(i) && r("colorScheme", `must be one of ${Zh.join(", ")}, got ${eg(i)}. The value is ignored.`);
23084
+ eg(i) && !Qh.includes(i) && r("colorScheme", `must be one of ${Qh.join(", ")}, got ${tg(i)}. The value is ignored.`);
23061
23085
  for (let e of [
23062
23086
  "options",
23063
23087
  "theme",
23064
23088
  "customMessages"
23065
23089
  ]) {
23066
23090
  let n = t[e];
23067
- $h(n) && !Qh(n) && r(e, `must be a JSON object, got ${eg(n)}. The value is ignored.`);
23091
+ eg(n) && !$h(n) && r(e, `must be a JSON object, got ${tg(n)}. The value is ignored.`);
23068
23092
  }
23069
23093
  let a = t.adminThemeOptions;
23070
- if ($h(a)) {
23071
- if (!Qh(a)) r("adminThemeOptions", `must be a JSON object, got ${eg(a)}. The value is ignored.`);
23094
+ if (eg(a)) {
23095
+ if (!$h(a)) r("adminThemeOptions", `must be a JSON object, got ${tg(a)}. The value is ignored.`);
23072
23096
  else for (let e of Ws(a).issues) r("adminThemeOptions", `field ${e.path || "(root)"} was ${e.problem === "coerced" ? "converted to a valid CSS value" : "invalid and was dropped"}.`);
23073
23097
  }
23074
23098
  return n;
23075
- }, ng = /* @__PURE__ */ new Set(), rg = (e, t) => {
23099
+ }, rg = /* @__PURE__ */ new Set(), ig = (e, t) => {
23076
23100
  let n = (n) => (K(() => {
23077
- for (let e of tg(t, n)) ng.has(e.message) || (ng.add(e.message), console.error(`[databrain] ${e.message}`));
23101
+ for (let e of ng(t, n)) rg.has(e.message) || (rg.add(e.message), console.error(`[databrain] ${e.message}`));
23078
23102
  }, [n]), Sa(e, n));
23079
23103
  return n.displayName = `withPublicPropsCheck(${t})`, n;
23080
- }, ig = rg(Xh, "dbn-dashboard"), ag = rg($l, "dbn-metric");
23104
+ }, ag = ig(Zh, "dbn-dashboard"), og = ig($l, "dbn-metric");
23081
23105
  i("viewer");
23082
- var og = (e) => {
23106
+ var sg = (e) => {
23083
23107
  let t = e.getAttribute("base-url"), n = ee(t);
23084
23108
  I("web-component-base-url", {
23085
23109
  requested: t,
23086
23110
  inEffect: n
23087
23111
  });
23088
- }, sg = (e, t, n) => {
23112
+ }, cg = (e, t, n) => {
23089
23113
  if (typeof n != "string" || !n.trim()) return `${e}: no ${t.canonical} was set. Use the ${t.label} id from the Embeds page.`;
23090
23114
  if (/\s/.test(n.trim())) return `${e}: ${t.canonical} "${n}" looks like a name, not an id. Use the ${t.label} id from the Embeds page.`;
23091
- }, cg = (e, t, n) => class extends e {
23115
+ }, lg = (e, t, n) => class extends e {
23092
23116
  static get observedAttributes() {
23093
23117
  let t = e.observedAttributes ?? [];
23094
23118
  return n ? [...t, n.alias] : t;
@@ -23106,7 +23130,7 @@ var og = (e) => {
23106
23130
  }
23107
23131
  attributeChangedCallback(e, t, r) {
23108
23132
  if (!this.isClearingId) {
23109
- if (e === "base-url" && og(this), n && e === n.canonical && r === null) {
23133
+ if (e === "base-url" && sg(this), n && e === n.canonical && r === null) {
23110
23134
  let e = this.getAttribute(n.alias);
23111
23135
  e ? super.attributeChangedCallback?.(n.canonical, t, e) : this.clearId(n);
23112
23136
  return;
@@ -23119,7 +23143,7 @@ var og = (e) => {
23119
23143
  }
23120
23144
  }
23121
23145
  connectedCallback() {
23122
- oe(this.getAttribute("debug") ?? void 0), og(this), I("web-component-connected", {
23146
+ oe(this.getAttribute("debug") ?? void 0), sg(this), I("web-component-connected", {
23123
23147
  tag: t,
23124
23148
  attributeNames: this.getAttributeNames(),
23125
23149
  hasShadowRoot: !!this.shadowRoot
@@ -23127,13 +23151,13 @@ var og = (e) => {
23127
23151
  }
23128
23152
  warnOnIdProblem(e) {
23129
23153
  if (!this.isConnected) return;
23130
- let n = this[e.prop], r = sg(t, e, n);
23154
+ let n = this[e.prop], r = cg(t, e, n);
23131
23155
  r && r !== this.lastIdWarning && (this.lastIdWarning = r, console.warn(r));
23132
23156
  }
23133
23157
  disconnectedCallback() {
23134
23158
  I("web-component-disconnected", { tag: t }), super.disconnectedCallback();
23135
23159
  }
23136
- }, lg = Ka(ig, {
23160
+ }, ug = Ka(ag, {
23137
23161
  props: {
23138
23162
  token: "string",
23139
23163
  dashboardId: "string",
@@ -23186,13 +23210,13 @@ var og = (e) => {
23186
23210
  },
23187
23211
  shadow: "open"
23188
23212
  });
23189
- customElements.get("dbn-dashboard") || customElements.define("dbn-dashboard", cg(lg, "dbn-dashboard", {
23213
+ customElements.get("dbn-dashboard") || customElements.define("dbn-dashboard", lg(ug, "dbn-dashboard", {
23190
23214
  canonical: "dashboard-id",
23191
23215
  alias: "dashboardid",
23192
23216
  prop: "dashboardId",
23193
23217
  label: "dashboard"
23194
23218
  }));
23195
- var ug = Ka(ag, {
23219
+ var dg = Ka(og, {
23196
23220
  props: {
23197
23221
  token: "string",
23198
23222
  metricId: "string",
@@ -23245,11 +23269,11 @@ var ug = Ka(ag, {
23245
23269
  },
23246
23270
  shadow: "open"
23247
23271
  });
23248
- customElements.get("dbn-metric") || customElements.define("dbn-metric", cg(ug, "dbn-metric", {
23272
+ customElements.get("dbn-metric") || customElements.define("dbn-metric", lg(dg, "dbn-metric", {
23249
23273
  canonical: "metric-id",
23250
23274
  alias: "metricid",
23251
23275
  prop: "metricId",
23252
23276
  label: "metric"
23253
23277
  }));
23254
23278
  //#endregion
23255
- export { og as applyHostBaseUrl, sg as describeIdAttributeProblem };
23279
+ export { sg as applyHostBaseUrl, cg as describeIdAttributeProblem };