@databrainhq/plugin 0.17.9-beta.16 → 0.17.9-beta.17

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 (37) hide show
  1. package/dist/{Accordion-Bb74CQ-z.mjs → Accordion-DsORmK4r.mjs} +1 -1
  2. package/dist/{ChartCardOverlay-7PjIkbse.mjs → ChartCardOverlay-CyLHFHJa.mjs} +15 -12
  3. package/dist/{ChartNavigationProvider-CtSvd6kl.mjs → ChartNavigationProvider-I67YIHce.mjs} +1401 -1401
  4. package/dist/{CreateGlobalFilter-BqFhZ5_I.mjs → CreateGlobalFilter-Da6S3dnu.mjs} +2 -2
  5. package/dist/{CreateMetricV2-Bb5xNRY7.mjs → CreateMetricV2-RNLSJMxN.mjs} +21 -21
  6. package/dist/{HorizontalStackTable-Ci6XWwf-.mjs → HorizontalStackTable-Bg3wERrZ.mjs} +4 -4
  7. package/dist/{Loader-fiz_o6YC.mjs → Loader-BOT4ofJi.mjs} +1 -1
  8. package/dist/{ManageMetricsV2-qyk-SCcL.mjs → ManageMetricsV2-B0mbiFlY.mjs} +4 -4
  9. package/dist/{MetricCardV2-YINjQ5xk.mjs → MetricCardV2-A3PVcIkw.mjs} +10 -10
  10. package/dist/{NoDataFound-CVyRVkzK.mjs → NoDataFound-CEBF6MOr.mjs} +1 -1
  11. package/dist/{NoDataState-Dgm3tkCe.mjs → NoDataState-CmQQi1kw.mjs} +4 -4
  12. package/dist/{Panel-BpByQBce.mjs → Panel-DD-9FoTg.mjs} +1 -1
  13. package/dist/{PivotTableV2-DzIDJiSY.mjs → PivotTableV2-pWrTxupk.mjs} +2 -2
  14. package/dist/{PivotTableV3-B4UiH33n.mjs → PivotTableV3-B6QG_LCW.mjs} +4 -4
  15. package/dist/{Portal-CLz2zya_.mjs → Portal-B4Kj0rIP.mjs} +38 -38
  16. package/dist/{RadioButton-Dz-MsEbj.mjs → RadioButton-DpB36vSj.mjs} +44 -44
  17. package/dist/{ScheduleEmail-D85TAzI5.mjs → ScheduleEmail-gqxwqtp3.mjs} +7 -7
  18. package/dist/{TagInputField-CFrkMoTw.mjs → TagInputField-BbP-qWl4.mjs} +119 -110
  19. package/dist/{TextAreaField-B5Gxdaat.mjs → TextAreaField-C9qNJtxa.mjs} +10 -10
  20. package/dist/{charts-B3jV6aAX.mjs → charts-B2lwO2wF.mjs} +2 -2
  21. package/dist/{chevron-down-jFldnWcP.mjs → chevron-down-DYt-7zTT.mjs} +0 -0
  22. package/dist/{conditionalFormatting-ClTTstDV.mjs → conditionalFormatting-CrVixZL6.mjs} +1 -1
  23. package/dist/{createGlobalFilter.module-C1gmnqpy.mjs → createGlobalFilter.module-D9y4fUa6.mjs} +1 -1
  24. package/dist/{echarts-BwNzdyVe.mjs → echarts-CNq_XyLZ.mjs} +1 -1
  25. package/dist/{loading-state-CWZlWaOv.mjs → loading-state-CF_6fTCn.mjs} +3 -3
  26. package/dist/{metric.mutation-rX2iD9gk.mjs → metric.mutation-Bw7qZhLi.mjs} +37 -37
  27. package/dist/{pluginV3Request-CTFUezaJ.mjs → pluginV3Request-Ctr47kPo.mjs} +14 -14
  28. package/dist/{renderer-BQ-2Ksj0.mjs → renderer-BTvVu5ie.mjs} +6 -6
  29. package/dist/{timeseries-BeWDRXFD.mjs → timeseries-1uk9rCLq.mjs} +1 -1
  30. package/dist/{toTasteAppearance-xPVajb_2.mjs → toTasteAppearance-DyYAwtBW.mjs} +1 -1
  31. package/dist/{useGuesTokenUsageLog-R2_v2Wnd.mjs → useGuesTokenUsageLog-C98YQ6dU.mjs} +1 -1
  32. package/dist/{usePublishArchivedMetrics-C19AAeOY.mjs → usePublishArchivedMetrics-C3suEAda.mjs} +2 -2
  33. package/dist/{useQuery-xw_-DpE2.mjs → useQuery-BlfQIaBR.mjs} +1 -1
  34. package/dist/webcomponents.css +1 -1
  35. package/dist/webcomponents.es.js +1989 -1986
  36. package/dist/webcomponents.umd.js +146 -146
  37. package/package.json +1 -1
@@ -36,9 +36,9 @@ var t = {
36
36
  })
37
37
  });
38
38
  }, a = {
39
- root: "_root_l478k_6",
40
- indicator: "_indicator_l478k_19",
41
- "loading-appear": "_loading-appear_l478k_1"
39
+ root: "_root_lhbxg_6",
40
+ indicator: "_indicator_lhbxg_19",
41
+ "loading-appear": "_loading-appear_lhbxg_1"
42
42
  }, o = ({ label: e = "Loading", delayMs: t = 300, size: r = 16, minHeight: o, className: s, "data-testid": c = "loading-state" }) => /* @__PURE__ */ (0, n.jsx)("div", {
43
43
  className: [a.root, s].filter(Boolean).join(" "),
44
44
  style: {
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Bt as e, Gt as t, Jt as n, Kt as r, Nt as i, Ot as a, Pt as o, Rt as s, Ut as c, Vt as l, Wt as u, Yt as d, a as f, an as p, c as ee, g as m, h, i as g, kt as te, m as ne, n as re, o as ie, on as ae, p as oe, r as se, s as ce, t as le, u as ue, zt as de } from "./pluginV3Request-CTFUezaJ.mjs";
4
+ import { At as e, Bt as t, Ft as n, Gt as r, Ht as i, Kt as a, Pt as o, Vt as s, Wt as c, Xt as l, Yt as u, _ as d, a as f, c as p, d as ee, g as m, h, i as g, kt as te, l as ne, m as re, n as ie, o as ae, on as oe, qt as se, r as ce, sn as le, t as ue, zt as de } from "./pluginV3Request-Ctr47kPo.mjs";
5
5
  import { t as fe } from "./jsx-runtime-B0EUnyJj.mjs";
6
6
  import * as _ from "react";
7
7
  //#region ../../../node_modules/.pnpm/@tanstack+react-query@5.103.2_react@19.3.0/node_modules/@tanstack/react-query/build/modern/QueryClientProvider.js
@@ -894,12 +894,12 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
894
894
  ...n ? {} : { "X-Plugin-Token": t.token || "" },
895
895
  "X-Plugin-Origin": window.location.host,
896
896
  ...t.isFrontend ? { "X-Dbn-Secret": t.clientId } : {},
897
- ...t.isFrontend ? { "X-Dbn-token": re() || "" } : {},
898
- ...le() || {}
897
+ ...t.isFrontend ? { "X-Dbn-token": ie() || "" } : {},
898
+ ...ue() || {}
899
899
  }
900
900
  };
901
901
  t.data && (r.body = JSON.stringify(t.data));
902
- let i = `${window.dbn?.proxyAuthUrl || window.dbn?.baseUrl || ue}${e}`;
902
+ let i = `${window.dbn?.proxyAuthUrl || window.dbn?.baseUrl || ee}${e}`;
903
903
  if (K("fetch-request-start", {
904
904
  path: e,
905
905
  method: t.method,
@@ -946,7 +946,7 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
946
946
  else t.signal && (r.signal = t.signal);
947
947
  let c;
948
948
  try {
949
- c = g(e) ? await ie({
949
+ c = g(e) ? await ae({
950
950
  path: e,
951
951
  method: t.method,
952
952
  data: t.data,
@@ -963,7 +963,7 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
963
963
  requestUrl: i,
964
964
  timeoutMs: t.timeoutMs
965
965
  }), new pt(t.timeoutMs);
966
- if (se(r)) throw r;
966
+ if (ce(r)) throw r;
967
967
  K("fetch-request-network-error", {
968
968
  path: e,
969
969
  method: t.method,
@@ -1057,16 +1057,16 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
1057
1057
  }), l.data;
1058
1058
  }, bt = () => V({
1059
1059
  mutationKey: [c],
1060
- mutationFn: ({ data: e, token: t, encryptedClientId: n, isFrontendApp: r }) => $(u, {
1060
+ mutationFn: ({ data: e, token: t, encryptedClientId: n, isFrontendApp: i }) => $(r, {
1061
1061
  method: "POST",
1062
1062
  data: e,
1063
- isFrontend: r,
1063
+ isFrontend: i,
1064
1064
  token: t,
1065
1065
  clientId: n
1066
1066
  })
1067
1067
  }), xt = () => V({
1068
- mutationKey: [e],
1069
- mutationFn: ({ data: e, token: t, encryptedClientId: n, isFrontendApp: r }) => $(l, {
1068
+ mutationKey: [s],
1069
+ mutationFn: ({ data: e, token: t, encryptedClientId: n, isFrontendApp: r }) => $(i, {
1070
1070
  method: "POST",
1071
1071
  data: e,
1072
1072
  isFrontend: r,
@@ -1074,57 +1074,57 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
1074
1074
  clientId: n
1075
1075
  })
1076
1076
  }), St = () => V({
1077
- mutationKey: [s],
1078
- mutationFn: ({ data: e, token: t, encryptedClientId: n, isFrontendApp: r }) => $(de, {
1077
+ mutationKey: [de],
1078
+ mutationFn: ({ data: e, token: n, encryptedClientId: r, isFrontendApp: i }) => $(t, {
1079
1079
  method: "POST",
1080
1080
  data: e,
1081
- isFrontend: r,
1082
- token: t,
1083
- clientId: n
1081
+ isFrontend: i,
1082
+ token: n,
1083
+ clientId: r
1084
1084
  })
1085
1085
  }), Ct = () => V({
1086
- mutationKey: [i],
1087
- mutationFn: ({ data: e, token: t }) => $(o, {
1086
+ mutationKey: [o],
1087
+ mutationFn: ({ data: e, token: t }) => $(n, {
1088
1088
  method: "POST",
1089
1089
  data: e,
1090
1090
  token: t
1091
1091
  })
1092
1092
  }), wt = () => V({
1093
- mutationKey: [n],
1094
- mutationFn: ({ data: e, token: t }) => $(d, {
1093
+ mutationKey: [u],
1094
+ mutationFn: ({ data: e, token: t }) => $(l, {
1095
1095
  method: "POST",
1096
1096
  data: e,
1097
1097
  token: t
1098
1098
  })
1099
1099
  }), Tt = () => V({
1100
- mutationKey: [ce],
1101
- mutationFn: ({ data: e, token: t }) => $(ee, {
1100
+ mutationKey: [p],
1101
+ mutationFn: ({ data: e, token: t }) => $(ne, {
1102
1102
  method: "POST",
1103
1103
  data: e,
1104
1104
  token: t
1105
1105
  })
1106
1106
  }), Et = () => V({
1107
- mutationKey: [t],
1108
- mutationFn: ({ data: e, token: t, clientId: n, isFrontendApp: i }) => $(r, {
1107
+ mutationKey: [a],
1108
+ mutationFn: ({ data: e, token: t, clientId: n, isFrontendApp: r }) => $(se, {
1109
1109
  method: "POST",
1110
1110
  data: e,
1111
- isFrontend: i,
1111
+ isFrontend: r,
1112
1112
  clientId: n,
1113
1113
  token: t
1114
1114
  })
1115
1115
  }), Dt = () => V({
1116
- mutationKey: [a],
1117
- mutationFn: ({ data: e, token: t, clientId: n, isFrontendApp: r, signal: i }) => $(te, {
1116
+ mutationKey: [te],
1117
+ mutationFn: ({ data: t, token: n, clientId: r, isFrontendApp: i, signal: a }) => $(e, {
1118
1118
  method: "POST",
1119
- data: e,
1120
- isFrontend: r,
1121
- clientId: n,
1122
- token: t,
1123
- signal: i
1119
+ data: t,
1120
+ isFrontend: i,
1121
+ clientId: r,
1122
+ token: n,
1123
+ signal: a
1124
1124
  })
1125
1125
  }), Ot = () => V({
1126
- mutationKey: [oe],
1127
- mutationFn: ({ data: e, token: t, clientId: n, isFrontendApp: r, signal: i }) => $(ne, {
1126
+ mutationKey: [re],
1127
+ mutationFn: ({ data: e, token: t, clientId: n, isFrontendApp: r, signal: i }) => $(h, {
1128
1128
  method: "POST",
1129
1129
  data: e,
1130
1130
  isFrontend: r,
@@ -1133,12 +1133,12 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
1133
1133
  signal: i
1134
1134
  })
1135
1135
  }), kt = () => V({
1136
- mutationKey: [p],
1136
+ mutationKey: [oe],
1137
1137
  meta: {
1138
1138
  subject: "The AI summary",
1139
1139
  action: "load"
1140
1140
  },
1141
- mutationFn: ({ data: e, isFrontendApp: t, clientId: n, token: r, signal: i }) => $(ae, {
1141
+ mutationFn: ({ data: e, isFrontendApp: t, clientId: n, token: r, signal: i }) => $(le, {
1142
1142
  method: "POST",
1143
1143
  data: e,
1144
1144
  isFrontend: t,
@@ -1148,8 +1148,8 @@ var Re = "dbnDebug", ze = "dbn-debug", Be = "dbnDrillDebug", Ve = "dbn-drill-deb
1148
1148
  signal: i
1149
1149
  })
1150
1150
  }), At = () => V({
1151
- mutationKey: [h],
1152
- mutationFn: ({ data: e, isFrontendApp: t, clientId: n, token: r }) => $(m, {
1151
+ mutationKey: [m],
1152
+ mutationFn: ({ data: e, isFrontendApp: t, clientId: n, token: r }) => $(d, {
1153
1153
  method: "POST",
1154
1154
  data: e,
1155
1155
  isFrontend: t,
@@ -17,28 +17,28 @@ var e = "ref_token", t = "https://api.usedatabrain.com", n = t, r = null, i = (e
17
17
  return a === null ? (typeof e == "string" && e.trim(), r = null, n = t, n) : (r !== null && r !== a && console.warn(`[databrain] two embeds on this page asked for different base-url values ("${r}" then "${a}"). The API origin is page-global, so the last one wins for BOTH. Render them on separate pages if they must differ.`), r = a, n = a, n);
18
18
  }, o = "/api/v2/dashboard", s = "/api/v2/metric", c = "/api/v3/metric", l = "dashboardData", u = `${o}/embeddedMetric`, d = "embeddedMetric", f = `${s}/layout`, p = "dashboardLayout";
19
19
  `${o}`;
20
- var ee = `${o}/scheduledReportV2`, te = "dashboardScheduledReportV2", ne = `${s}/saveLayout`, re = "saveLayout", ie = `${o}/saveScheduleReport`, ae = "saveScheduleReport", oe = `${o}/deleteScheduleReport`, se = "deleteScheduleReport", ce = `${o}/createMetric`, le = "createMetric", ue = `${o}/updateMetric`, de = "updateMetric", fe = `${o}/updateAdminMetric`, m = "updateAdminMetric", h = `${o}/generateMetric`, g = "generateMetric", _ = `${o}/datasetMetricCreation`, v = "datasetMetricCreation", y = `${o}/previewTable`, b = "previewTable", x = `${o}/generatetMetricData`, S = "/generatetMetricData", C = `${o}/getOpenaiChatResponse`, w = "getOpenaiChatResponse";
20
+ var ee = `${o}/scheduledReportV2`, te = "dashboardScheduledReportV2", ne = `${s}/saveLayout`, re = "saveLayout", ie = `${o}/saveScheduleReport`, ae = "saveScheduleReport", oe = `${o}/deleteScheduleReport`, se = "deleteScheduleReport", ce = `${o}/createMetric`, le = "createMetric", ue = `${o}/updateMetric`, de = "updateMetric", fe = `${o}/updateAdminMetric`, pe = "updateAdminMetric", m = `${o}/generateMetric`, h = "generateMetric", g = `${o}/datasetMetricCreation`, _ = "datasetMetricCreation", v = `${o}/previewTable`, y = "previewTable", b = `${o}/generatetMetricData`, x = "/generatetMetricData", S = `${o}/getOpenaiChatResponse`, C = "getOpenaiChatResponse";
21
21
  `${o}`;
22
- var T = `${o}/createDashboardFilterView`, E = "createDashboardFilterView", D = `${o}/deleteDashboardFilterView`, O = "deleteDashboardFilterView", k = `${o}/updateDashboardFilters`, A = "updateDashboardFilters", j = `${o}/updateMetricFilterAlias`, M = "updateMetricFilterAlias", N = `${o}/updateDashboardFilterAlias`, P = "updateDashboardFilterAlias", F = `${o}/getDashboardFilterView`, I = "getDashboardFilterView", L = `${o}/getTheme`, R = "getTheme";
22
+ var w = `${o}/createDashboardFilterView`, T = "createDashboardFilterView", E = `${o}/deleteDashboardFilterView`, D = "deleteDashboardFilterView", O = `${o}/updateDashboardFilters`, k = "updateDashboardFilters", A = `${o}/updateMetricFilterAlias`, j = "updateMetricFilterAlias", M = `${o}/updateDashboardFilterAlias`, N = "updateDashboardFilterAlias", P = `${o}/getDashboardFilterView`, F = "getDashboardFilterView", I = `${o}/getTheme`, L = "getTheme";
23
23
  `${s}`;
24
- var z = `${c}/query`, B = "query", V = `${c}/datasetMetricCreation`, pe = "newDatasetMetricCreation", me = `${c}/generateDataReport`, he = "generateDataReport", ge = `${c}/chatQuery`, _e = "chatQuery", ve = `${c}/getDashboardScreenshot`, ye = `${s}/rawDownloadSettings`, be = "rawDownloadSettings";
24
+ var R = `${c}/query`, z = "query", B = `${c}/datasetMetricCreation`, me = "newDatasetMetricCreation", he = `${c}/generateDataReport`, ge = "generateDataReport", _e = `${c}/chatQuery`, ve = "chatQuery", ye = `${c}/getDashboardScreenshot`, be = `${s}/rawDownloadSettings`, xe = "rawDownloadSettings";
25
25
  `${s}`;
26
- var xe = `${s}/underlyingData`, Se = "underlyingData", Ce = `${s}/invokeShareCsv`, we = "invokeShareCsv", Te = `${c}/markArchived`, Ee = "markArchived", De = `${c}/column`, Oe = "column";
26
+ var Se = `${s}/underlyingData`, Ce = "underlyingData", we = `${s}/invokeShareCsv`, Te = "invokeShareCsv", Ee = `${c}/markArchived`, De = "markArchived", Oe = `${c}/column`, ke = "column";
27
27
  `${c}`;
28
- var ke = `${c}/addClientGalleryMetrics`, Ae = "addClientGalleryMetrics", je = `${c}/publishMetrics`, Me = "publishMetrics";
28
+ var Ae = `${c}/addClientGalleryMetrics`, je = "addClientGalleryMetrics", Me = `${c}/publishMetrics`, Ne = "publishMetrics";
29
29
  `${s}`, `${s}`;
30
- var Ne = `${c}/download-csv`, Pe = `${c}/downloadDashboardMetrics`, Fe = "IS_LOADING", H = "DATA_LOADED", Ie = `${c}/summarizeMetric`, Le = "summarizeMetric", Re = `${c}/createGuestTokenUsageLog`, ze = "createGuestTokenUsageLog", Be = "ENTER_FULL_SCREEN_MODE", Ve = "EXIT_FULL_SCREEN_MODE", He = "ENTER_SCHEDULED_REPORT_MODE", Ue = "SAVE_SCHEDULED_REPORT", We = "EXIT_SCHEDULED_REPORT_MODE", Ge = "ENTER_CUSTOMIZE_LAYOUT_MODE", Ke = "EXIT_CUSTOMIZE_LAYOUT_MODE", qe = "SAVE_LAYOUT", Je = "ENTER_MANAGE_METRICS_MODE", Ye = "ENTER_METRICS_GALLERY_MODE", Xe = "EXIT_MANAGE_METRICS_MODE", Ze = "EXIT_METRICS_GALLERY_MODE", Qe = "SAVE_MANAGE_METRICS", $e = "SAVE_CLIENT_GALLERY_METRICS", et = "ARCHIVE_METRIC", tt = "DOWNLOAD_METRIC", nt = "DOWNLOAD_METRIC_WITHOUT_FILTERS", rt = "SAVE_METRIC_PNG", it = "METRIC_FILTER_APPLIED", at = "DASHBOARD_FILTER_APPLIED", ot = "CREATE_METRIC", st = "UPDATE_METRIC", ct = "ENTER_CREATE_METRIC", lt = "ENTER_EDIT_METRIC", ut = "DATASET_SEARCH_FOCUSED", dt = "DATASET_TABLE_SELECTED", ft = "COLUMN_DRAGGED_TO_DIMENSIONS", pt = "COLUMN_DRAGGED_TO_MEASURES", mt = "COLUMN_AGGREGATE_CHANGED", ht = "CHART_TYPE_CHANGED", gt = "START_DOWNLOAD_ALL_METRICS", _t = "DOWNLOAD_ALL_METRICS", vt = "START_DASHBOARD_PDF", yt = "EXPORT_DASHBOARD_PDF", U = /* @__PURE__ */ new Set(), W = /* @__PURE__ */ new Set(), G = () => {
30
+ var Pe = `${c}/download-csv`, Fe = `${c}/downloadDashboardMetrics`, Ie = "IS_LOADING", V = "DATA_LOADED", Le = `${c}/summarizeMetric`, Re = "summarizeMetric", ze = `${c}/createGuestTokenUsageLog`, Be = "createGuestTokenUsageLog", Ve = "ENTER_FULL_SCREEN_MODE", He = "EXIT_FULL_SCREEN_MODE", Ue = "ENTER_SCHEDULED_REPORT_MODE", We = "SAVE_SCHEDULED_REPORT", Ge = "EXIT_SCHEDULED_REPORT_MODE", Ke = "ENTER_CUSTOMIZE_LAYOUT_MODE", qe = "EXIT_CUSTOMIZE_LAYOUT_MODE", Je = "SAVE_LAYOUT", Ye = "ENTER_MANAGE_METRICS_MODE", Xe = "ENTER_METRICS_GALLERY_MODE", Ze = "EXIT_MANAGE_METRICS_MODE", Qe = "EXIT_METRICS_GALLERY_MODE", $e = "SAVE_MANAGE_METRICS", et = "SAVE_CLIENT_GALLERY_METRICS", tt = "ARCHIVE_METRIC", nt = "DOWNLOAD_METRIC", rt = "DOWNLOAD_METRIC_WITHOUT_FILTERS", it = "SAVE_METRIC_PNG", at = "METRIC_FILTER_APPLIED", ot = "DASHBOARD_FILTER_APPLIED", st = "CREATE_METRIC", ct = "UPDATE_METRIC", lt = "ENTER_CREATE_METRIC", ut = "ENTER_EDIT_METRIC", dt = "DATASET_SEARCH_FOCUSED", ft = "DATASET_TABLE_SELECTED", pt = "COLUMN_DRAGGED_TO_DIMENSIONS", mt = "COLUMN_DRAGGED_TO_MEASURES", ht = "COLUMN_AGGREGATE_CHANGED", gt = "CHART_TYPE_CHANGED", _t = "START_DOWNLOAD_ALL_METRICS", vt = "DOWNLOAD_ALL_METRICS", yt = "START_DASHBOARD_PDF", bt = "EXPORT_DASHBOARD_PDF", H = /* @__PURE__ */ new Set(), U = /* @__PURE__ */ new Set(), W = () => {
31
31
  let e = null;
32
- return U.forEach((t) => {
32
+ return H.forEach((t) => {
33
33
  if (!e) try {
34
34
  let n = t();
35
35
  n && (e = n);
36
36
  } catch {}
37
37
  }), e;
38
- }, bt = () => U.size > 0 || W.size > 0, xt = async () => {
39
- let e = G();
38
+ }, xt = () => H.size > 0 || U.size > 0, G = async () => {
39
+ let e = W();
40
40
  if (e) return e;
41
- for (let e of W) try {
41
+ for (let e of U) try {
42
42
  let t = await e();
43
43
  if (t) return t;
44
44
  } catch {}
@@ -60,9 +60,9 @@ var Ne = `${c}/download-csv`, Pe = `${c}/downloadDashboardMetrics`, Fe = "IS_LOA
60
60
  super(t ? `The v3 plugin request failed (${e}): ${t}` : `The v3 plugin request failed with status ${e}`), this.name = "PluginV3ResponseError", this.status = e;
61
61
  }
62
62
  }, St = (e) => e instanceof K || e instanceof q || e instanceof J, Y = (e) => e instanceof DOMException && e.name === "AbortError" || e?.name === "AbortError", X = (e) => /^\/api\/v3\/(dashboard|metric)(?:\/|$)/.test(e), Z = () => {
63
- let t = G();
64
- return t || bt() ? t : typeof localStorage > "u" ? null : localStorage.getItem(e);
65
- }, Ct = async () => Z() ?? xt(), Q = () => {
63
+ let t = W();
64
+ return t || xt() ? t : typeof localStorage > "u" ? null : localStorage.getItem(e);
65
+ }, Ct = async () => Z() ?? G(), Q = () => {
66
66
  let e = window?.dbn?.proxyAuthUrl || "", t = window?.dbn?.proxyAuthKey || "";
67
67
  return window?.dbn?.isEnableProxyAuth ? {
68
68
  "X-Proxy-Auth-key": t,
@@ -141,4 +141,4 @@ var Ne = `${c}/download-csv`, Pe = `${c}/downloadDashboardMetrics`, Fe = "IS_LOA
141
141
  return p;
142
142
  };
143
143
  //#endregion
144
- export { k as $, ot as $t, u as A, Fe as At, b as B, Se as Bt, v as C, Ve as Ct, oe as D, yt as Dt, se as E, We as Et, S as F, B as Ft, ie as G, pe as Gt, re as H, ve as Ht, x as I, ye as It, L as J, Me as Jt, ee as K, V as Kt, f as L, be as Lt, at as M, it as Mt, g as N, Ee as Nt, O, he as Ot, h as P, Te as Pt, A as Q, Qe as Qt, p as R, we as Rt, T as S, Ke as St, l as T, Ze as Tt, ne as U, Oe as Ut, y as V, xe as Vt, ae as W, De as Wt, m as X, $e as Xt, R as Y, je as Yt, fe as Z, qe as Zt, w as _, lt as _t, St as a, Le as an, ue as at, ce as b, Ye as bt, ke as c, st as cn, H as ct, et as d, tt as dt, rt as en, P as et, ht as f, nt as ft, Re as g, Ge as gt, ze as h, ct as ht, X as i, gt as in, de as it, d as j, Ne as jt, D as k, me as kt, mt as l, a as ln, _t as lt, ge as m, pt as mt, Z as n, ut as nn, M as nt, Dt as o, Ie as on, F as ot, _e as p, ft as pt, te as q, z as qt, Y as r, vt as rn, j as rt, Ae as s, dt as sn, I as st, Q as t, Ue as tn, N as tt, n as u, Pe as ut, C as v, Be as vt, _ as w, Xe as wt, E as x, He as xt, le as y, Je as yt, o as z, Ce as zt };
144
+ export { k as $, $e as $t, E as A, he as At, o as B, we as Bt, w as C, qe as Ct, se as D, Ge as Dt, l as E, Qe as Et, m as F, Ee as Ft, ae as G, Oe as Gt, v as H, Se as Ht, x as I, z as It, te as J, R as Jt, ie as K, me as Kt, b as L, be as Lt, d as M, Pe as Mt, ot as N, at as Nt, oe as O, bt as Ot, h as P, De as Pt, fe as Q, Je as Qt, f as R, xe as Rt, T as S, Ue as St, g as T, Ze as Tt, re as U, ye as Ut, y as V, Ce as Vt, ne as W, ke as Wt, L as X, Me as Xt, I as Y, Ne as Yt, pe as Z, et as Zt, ze as _, Ke as _t, St as a, _t as an, de as at, le as b, Ye as bt, je as c, ft as cn, F as ct, n as d, Fe as dt, st as en, O as et, tt as f, nt as ft, Be as g, lt as gt, _e as h, mt as ht, X as i, yt as in, A as it, u as j, Ie as jt, D as k, ge as kt, Ae as l, ct as ln, V as lt, ve as m, pt as mt, Z as n, We as nn, M as nt, Dt as o, Re as on, ue as ot, gt as p, rt as pt, ee as q, B as qt, Y as r, dt as rn, j as rt, G as s, Le as sn, P as st, Q as t, it as tn, N as tt, ht as u, a as un, vt as ut, C as v, ut as vt, _ as w, He as wt, ce as x, Xe as xt, S as y, Ve as yt, p as z, Te as zt };
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { t as e, u as t } from "./pluginV3Request-CTFUezaJ.mjs";
4
+ import { d as e, t } from "./pluginV3Request-Ctr47kPo.mjs";
5
5
  import { t as n } from "./jsx-runtime-B0EUnyJj.mjs";
6
6
  import { n as r } from "./guestAuth-DALo3ysE.mjs";
7
7
  import { a as i, c as a, i as o, l as s, n as c, o as l, r as u, s as d, t as f } from "./config-Zn0r0gva.mjs";
@@ -522,14 +522,14 @@ var b = ".dbn-sandbox-frame{border:0;width:100%;display:block}", ee = () => {
522
522
  if (t) for (let n of [...t]) try {
523
523
  n(e);
524
524
  } catch {}
525
- }, W = () => !!(typeof window < "u" && window.dbn?.isEnableProxyAuth), Me = (e) => {
526
- let n = typeof window > "u" ? void 0 : window.dbn, r = e || n?.proxyAuthUrl || n?.baseUrl || t;
525
+ }, W = () => !!(typeof window < "u" && window.dbn?.isEnableProxyAuth), Me = (t) => {
526
+ let n = typeof window > "u" ? void 0 : window.dbn, r = t || n?.proxyAuthUrl || n?.baseUrl || e;
527
527
  return String(r).replace(/\/+$/, "");
528
- }, Ne = (e, t) => `${Me(t)}/api/v2/embed/custom-charts/${encodeURIComponent(e)}`, Pe = (t, n) => {
528
+ }, Ne = (e, t) => `${Me(t)}/api/v2/embed/custom-charts/${encodeURIComponent(e)}`, Pe = (e, n) => {
529
529
  let r = {
530
530
  Accept: "application/json",
531
- ...W() ? {} : { "X-Plugin-Token": t ?? "" },
532
- ...e() ?? {}
531
+ ...W() ? {} : { "X-Plugin-Token": e ?? "" },
532
+ ...t() ?? {}
533
533
  };
534
534
  return typeof window < "u" && window.location?.host && (r["X-Plugin-Origin"] = window.location.host), n && (r["If-None-Match"] = n), r;
535
535
  }, Fe = (e, t) => {
@@ -2,7 +2,7 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { r as e } from "./rolldown-runtime-C1JUX4Ur.mjs";
5
- import { Bi as t, Ca as n, Cr as r, Ir as i, Kr as a, Qr as o, Zr as s, c, dt as l, ii as u, mi as d, ri as f, rr as p, sr as m, ti as h, tr as g, vi as _, vr as v, xa as y, yr as b } from "./Portal-CLz2zya_.mjs";
5
+ import { Bi as t, Ca as n, Cr as r, Ir as i, Kr as a, Qr as o, Zr as s, c, dt as l, ii as u, mi as d, ri as f, rr as p, sr as m, ti as h, tr as g, vi as _, vr as v, xa as y, yr as b } from "./Portal-B4Kj0rIP.mjs";
6
6
  import { L as x, P as S, b as C, r as w } from "./option-B23v5EFw.mjs";
7
7
  import { a as T, o as E } from "./text-CtrvkDIo.mjs";
8
8
  import { a as D, i as O, n as k, r as A, t as j } from "./transformData-ow-ma1SZ.mjs";
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { tr as e } from "./Portal-CLz2zya_.mjs";
4
+ import { tr as e } from "./Portal-B4Kj0rIP.mjs";
5
5
  //#region src/charts/isChartsV2Enabled.ts
6
6
  var t = "dbnCharts", n = "@dbn:chartsV2";
7
7
  function r() {
@@ -1,7 +1,7 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { n as e } from "./metric.mutation-rX2iD9gk.mjs";
4
+ import { n as e } from "./metric.mutation-Bw7qZhLi.mjs";
5
5
  //#region src/hooks/useGuesTokenUsageLog.ts
6
6
  var t = () => {
7
7
  let { mutateAsync: t } = e();
@@ -1,8 +1,8 @@
1
1
  import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
- import { Qt as e } from "./pluginV3Request-CTFUezaJ.mjs";
5
- import { u as t } from "./metric.mutation-rX2iD9gk.mjs";
4
+ import { $t as e } from "./pluginV3Request-Ctr47kPo.mjs";
5
+ import { u as t } from "./metric.mutation-Bw7qZhLi.mjs";
6
6
  import { useCallback as n } from "react";
7
7
  //#region src/hooks/usePublishArchivedMetrics.ts
8
8
  var r = (r, i) => {
@@ -2,7 +2,7 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { t as e } from "./jsx-runtime-B0EUnyJj.mjs";
5
- import { B as t, F as n, G as r, H as i, I as a, N as o, P as s, Q as c, R as l, U as u, V as d, W as f, Y as p, at as m, ct as h, et as g, it as _, nt as v, ot as y, rt as b, tt as x, z as S } from "./metric.mutation-rX2iD9gk.mjs";
5
+ import { B as t, F as n, G as r, H as i, I as a, N as o, P as s, Q as c, R as l, U as u, V as d, W as f, Y as p, at as m, ct as h, et as g, it as _, nt as v, ot as y, rt as b, tt as x, z as S } from "./metric.mutation-Bw7qZhLi.mjs";
6
6
  import * as C from "react";
7
7
  //#region ../../../node_modules/.pnpm/@tanstack+query-core@5.103.2/node_modules/@tanstack/query-core/build/modern/infiniteQueryBehavior.js
8
8
  function w(e) {