@databrainhq/plugin 0.17.9-beta.66 → 0.17.9-beta.67

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 (134) hide show
  1. package/dist/{Accordion-ClM-DQNR.mjs → Accordion-HnV7Wa7d.mjs} +1 -1
  2. package/dist/{Axis-so_G8609.mjs → Axis-BoRILjw6.mjs} +25 -25
  3. package/dist/AxisBuilder-CbZA9BA5.mjs +556 -0
  4. package/dist/{AxisView-DbvR7xj2.mjs → AxisView-D1J-Vvd5.mjs} +46 -46
  5. package/dist/{CardChartSlot-WYOoFrPL.mjs → CardChartSlot-xCL70UFF.mjs} +6 -6
  6. package/dist/{Chart-C-M2BAGW.mjs → Chart-C8IUjDZP.mjs} +1249 -1444
  7. package/dist/{ChartTypePanel-CgnH37kj.mjs → ChartTypePanel-D33r24Vx.mjs} +8 -8
  8. package/dist/{CreateGlobalFilter-C9KQALHu.mjs → CreateGlobalFilter-CrZMQyeM.mjs} +2 -2
  9. package/dist/{CreateMetricV2-D669LmPA.mjs → CreateMetricV2-uIc0kSQ_.mjs} +12 -12
  10. package/dist/GridModel-BOILOnLN.mjs +39 -0
  11. package/dist/{HorizontalStackTable-E91Iuyzf.mjs → HorizontalStackTable-B_4q2iBG.mjs} +3 -3
  12. package/dist/{LineDraw-QEq0LGiV.mjs → LineDraw-C5CPD2fu.mjs} +75 -75
  13. package/dist/{ManageMetricsV2-C1d5KU_f.mjs → ManageMetricsV2-iTJys95Q.mjs} +3 -3
  14. package/dist/{MetricCardV2-C2eYo3s-.mjs → MetricCardV2-CBXvGrxI.mjs} +7 -7
  15. package/dist/{NoDataFound-ChW4me5m.mjs → NoDataFound-dLuw3_8M.mjs} +1 -1
  16. package/dist/{Panel-OH_Kxefy.mjs → Panel-DbS03Fa_.mjs} +1 -1
  17. package/dist/{PivotTableV2-D0GqqiiM.mjs → PivotTableV2-BGeyDx2h.mjs} +2 -2
  18. package/dist/{PivotTableV3-BdO_u5WS.mjs → PivotTableV3-q9Gs3DAq.mjs} +4 -4
  19. package/dist/{Portal-CV_NrBJ-.mjs → Portal-DSSDhg1M.mjs} +59 -59
  20. package/dist/{RadioButton-CVv2WrAN.mjs → RadioButton-DY7YeYgN.mjs} +1 -1
  21. package/dist/{RoamController-Dg9XZMbv.mjs → RoamController-kkduqIGv.mjs} +27 -27
  22. package/dist/{ScheduleEmail-BMgGc98g.mjs → ScheduleEmail-CRzbBNyX.mjs} +6 -6
  23. package/dist/{SearchMetricData-IL8DdG5T.mjs → SearchMetricData-Ba-UG9Xi.mjs} +162 -162
  24. package/dist/{SeriesData-BiofVRKp.mjs → SeriesData-t2ZM93xe.mjs} +153 -153
  25. package/dist/{SeriesDataSchema-DsLx8ATY.mjs → SeriesDataSchema-DbWmjBHq.mjs} +3 -3
  26. package/dist/{SortPanel-CsY3Go6z.mjs → SortPanel-CM4XEYFx.mjs} +10 -10
  27. package/dist/{SymbolDraw-B7bsdOGh.mjs → SymbolDraw-aWP4aFcT.mjs} +77 -77
  28. package/dist/{Table-V9qwq_A-.mjs → Table-CDvOpuYe.mjs} +249 -241
  29. package/dist/{TagInputField-BXcyiOOC.mjs → TagInputField-fGfjlIAp.mjs} +4 -4
  30. package/dist/{TextAreaField-Bg-Mn1xZ.mjs → TextAreaField-BdQ1n88e.mjs} +2 -2
  31. package/dist/{TimeSeriesSettings-DEBOcjxj.mjs → TimeSeriesSettings-BbF-feiK.mjs} +2 -2
  32. package/dist/View-HJXsM1pX.mjs +196 -0
  33. package/dist/{VisualMapping-C4H6uMDK.mjs → VisualMapping-BEacOIdS.mjs} +77 -77
  34. package/dist/{arrayToCsvString-D9jRf3H1.mjs → arrayToCsvString-Rjim3CLj.mjs} +1 -1
  35. package/dist/{axisAlignTicks-CA9tHLzi.mjs → axisAlignTicks-BDCH2l76.mjs} +21 -21
  36. package/dist/axisBand-B8HTljY9.mjs +434 -0
  37. package/dist/{axisDefault-nEWLSKin.mjs → axisDefault-BfDTCeDW.mjs} +12 -12
  38. package/dist/{axisHelper-B4ygrEAu.mjs → axisHelper-C92zjGrZ.mjs} +267 -267
  39. package/dist/{axisNiceTicks-ClubN7Tk.mjs → axisNiceTicks-DlIPQ7Bu.mjs} +13 -13
  40. package/dist/{bar-BB2qrFDC.mjs → bar-Dnd6DMeI.mjs} +2 -2
  41. package/dist/{barCommon-BArELGTY.mjs → barCommon--mFXSMxr.mjs} +14 -14
  42. package/dist/{barGrid-_f2rVIut.mjs → barGrid-BnZ3vF37.mjs} +36 -36
  43. package/dist/{base-Dsk4fQ1B.mjs → base-CqKr_o6m.mjs} +3 -3
  44. package/dist/{canvas-B9V5aHe8.mjs → canvas-MlE3EEgP.mjs} +2 -2
  45. package/dist/canvasLetterSpacing-C1X0nr1A.mjs +59 -0
  46. package/dist/canvasTeardown-BZnfPMIf.mjs +261 -0
  47. package/dist/{cardQueryError-DY_ZJaeH.mjs → cardQueryError-BvdXcZWj.mjs} +10 -10
  48. package/dist/{cartesianAxisHelper-DoeSPDFx.mjs → cartesianAxisHelper-Cj6QbGbq.mjs} +3 -3
  49. package/dist/{charts-DLkGIf3C.mjs → charts-TEuh7DBS.mjs} +1580 -1546
  50. package/dist/{conditionalFormatting-C-FdJ4PG.mjs → conditionalFormatting-jiDCWhx5.mjs} +1 -1
  51. package/dist/{createClipPathFromCoordSys-B4vAGE8Z.mjs → createClipPathFromCoordSys-D8WqA4dr.mjs} +13 -13
  52. package/dist/createDimensions-CnmSLhmZ.mjs +104 -0
  53. package/dist/{createGlobalFilter.module-Q1baYqNl.mjs → createGlobalFilter.module-BSLkPq6G.mjs} +1 -1
  54. package/dist/{createGraphFromNodeEdge-7WyfkrBe.mjs → createGraphFromNodeEdge-DCo8LkEe.mjs} +39 -39
  55. package/dist/createSeriesData-QC-rX5h7.mjs +101 -0
  56. package/dist/{createSeriesDataSimply-BxdEaPVX.mjs → createSeriesDataSimply-CKTp_DsX.mjs} +4 -4
  57. package/dist/{custom-DcvwBVj2.mjs → custom-DsYOLaUK.mjs} +2 -2
  58. package/dist/customGraphicKeyframeAnimation-Cfq3Ya3a.mjs +299 -0
  59. package/dist/data.cjs +1 -1
  60. package/dist/data.mjs +1 -1
  61. package/dist/{dataSample-Bp4H9kbC.mjs → dataSample-Cv8KVcHp.mjs} +2 -2
  62. package/dist/{dataStackHelper-8xSjPoGY.mjs → dataStackHelper-plaarSse.mjs} +2 -2
  63. package/dist/{echarts-CAoS6aE4.mjs → echarts-DSP9q-oP.mjs} +1596 -1596
  64. package/dist/{echarts-B6T0U8q9.mjs → extension-CjvfhuOl.mjs} +2460 -2415
  65. package/dist/{option-BVCp3H01.mjs → format-BdG1uTDw.mjs} +493 -463
  66. package/dist/{funnel-BPyzsZSL.mjs → funnel-BqvvHgIV.mjs} +2 -2
  67. package/dist/{gauge-3Wvva_32.mjs → gauge-D5uVlOTf.mjs} +2 -2
  68. package/dist/{graph-CExwwYVH.mjs → graph-D1H_pveT.mjs} +2 -2
  69. package/dist/{install-D5AxiliG.mjs → install-B2u2WICp.mjs} +249 -249
  70. package/dist/install-C94jvAIB.mjs +370 -0
  71. package/dist/{install-B1TqspfL.mjs → install-CD_nJllF.mjs} +151 -151
  72. package/dist/{install-DeQuODXS.mjs → install-CVI7EngB.mjs} +183 -183
  73. package/dist/{install-BWNipZtL.mjs → install-ClLUQImW.mjs} +164 -164
  74. package/dist/{install-BcuG0TzG.mjs → install-CqGJAjtU.mjs} +205 -205
  75. package/dist/{install-COuvnLYq.mjs → install-CqpZdmUs.mjs} +224 -225
  76. package/dist/{install-B35NwG74.mjs → install-CwLVKiaI.mjs} +448 -627
  77. package/dist/{install-fUIPAUHh.mjs → install-CxIyDAbo.mjs} +142 -142
  78. package/dist/install-D-uyYxzt.mjs +442 -0
  79. package/dist/{install-g1WKebGq.mjs → install-DxzoEvqo.mjs} +53 -54
  80. package/dist/{install-BOqmfLSu.mjs → install-UQOuGZ-3.mjs} +156 -156
  81. package/dist/install-YalZg5OB.mjs +208 -0
  82. package/dist/{install-COgFGhU1.mjs → install-gJJR8ost.mjs} +185 -185
  83. package/dist/{installCanvasRenderer-DZQl9WUm.mjs → installCanvasRenderer-CdQICtMz.mjs} +148 -148
  84. package/dist/installSVGRenderer-CM4phOH5.mjs +788 -0
  85. package/dist/installSimple-hwzmQHWx.mjs +562 -0
  86. package/dist/labelGuideHelper-Biiy5GEO.mjs +211 -0
  87. package/dist/{labelHelper-CWf3lqtb.mjs → labelHelper-CK2wFnD2.mjs} +9 -9
  88. package/dist/{labelLayoutHelper-gSQ2wxVR.mjs → labelLayoutHelper-BGT4km6s.mjs} +16 -16
  89. package/dist/{legacyContainLabel-C2O3qS_C.mjs → legacyContainLabel-BPPdU-_P.mjs} +1057 -1058
  90. package/dist/{line-Biu-eHDy.mjs → line-Bz3suzTe.mjs} +2 -2
  91. package/dist/{linkSeriesData-CmdFbU_o.mjs → linkSeriesData-oLBZWXeI.mjs} +15 -15
  92. package/dist/{metric.mutation-GQtohk1S.mjs → metric.mutation-Bp6C-gnS.mjs} +1 -1
  93. package/dist/parseGeoJson-CL1oJAFU.mjs +185 -0
  94. package/dist/{permissions-CH-WGA_H.mjs → permissions-RytJG009.mjs} +5 -5
  95. package/dist/{pie-BSGwMlDv.mjs → pie-8bHZZWij.mjs} +2 -2
  96. package/dist/{pluginV3Request-CCcbgHOL.mjs → pluginV3Request-B6J1iWdo.mjs} +1 -1
  97. package/dist/{points-QJPXYOtn.mjs → points-D4GPTJUM.mjs} +3 -3
  98. package/dist/{polar-DF62ToTw.mjs → polar-CDByVeuT.mjs} +2 -2
  99. package/dist/{radar-DUrDFixH.mjs → radar-Cm_0Z4n_.mjs} +2 -2
  100. package/dist/{renderer-CbYNXUJq.mjs → renderer-BC0h-JPJ.mjs} +2 -2
  101. package/dist/{roamHelper-CcGUDlj6.mjs → roamHelper-CfJQ0V8o.mjs} +15 -15
  102. package/dist/{sankey-DQjq16w_.mjs → sankey-B-88mGB1.mjs} +2 -2
  103. package/dist/{sausage-CnA_7NXH.mjs → sausage-MJyh9DcM.mjs} +1 -1
  104. package/dist/{scatter-Z9iXDwaa.mjs → scatter-CXYREtPk.mjs} +2 -2
  105. package/dist/{sectorHelper-BYk-RZi8.mjs → sectorHelper-BrGpww5p.mjs} +4 -4
  106. package/dist/{svg-BqqDtKe2.mjs → svg-BpzO9oa-.mjs} +2 -2
  107. package/dist/{theme-Cy9b23sj.mjs → theme-BYHowFGG.mjs} +137 -135
  108. package/dist/{timeseries-CDZ2lqd0.mjs → timeseries-D1_Havul.mjs} +1911 -1939
  109. package/dist/{toTasteAppearance-CcICPHaj.mjs → toTasteAppearance-DdC9S4xx.mjs} +13 -13
  110. package/dist/{treemap-C3cV5Iw-.mjs → treemap-BGu5cKFF.mjs} +2 -2
  111. package/dist/{useGuesTokenUsageLog-x2sDutRn.mjs → useGuesTokenUsageLog-BDOlwCKi.mjs} +1 -1
  112. package/dist/{usePublishArchivedMetrics-DJKjX-SL.mjs → usePublishArchivedMetrics-B9KYUf2j.mjs} +2 -2
  113. package/dist/{useQuery-wLcZUjCm.mjs → useQuery-8yPFyxSa.mjs} +1 -1
  114. package/dist/{vendor-Bq_K9DdP.mjs → vendor-BesI8vuE.mjs} +1 -1
  115. package/dist/webcomponents.css +1 -1
  116. package/dist/webcomponents.es.js +1487 -1460
  117. package/dist/webcomponents.umd.js +194 -184
  118. package/package.json +1 -1
  119. package/types/publicTypes.d.ts +4 -3
  120. package/dist/AxisBuilder-CIEw0VKH.mjs +0 -556
  121. package/dist/GridModel-DpfhksE5.mjs +0 -39
  122. package/dist/View-DuNXbS5E.mjs +0 -196
  123. package/dist/axisBand-CqPMsaju.mjs +0 -434
  124. package/dist/canvasTeardown-U1wBiiCe.mjs +0 -65
  125. package/dist/createDimensions-DYZprUlh.mjs +0 -104
  126. package/dist/createSeriesData-SCJKaSQ2.mjs +0 -101
  127. package/dist/customGraphicKeyframeAnimation-C5rfpbhk.mjs +0 -299
  128. package/dist/extension-dPyu9HSg.mjs +0 -52
  129. package/dist/install-DJXWoot7.mjs +0 -208
  130. package/dist/install-YCJIpIX5.mjs +0 -443
  131. package/dist/install-jnjEqKhO.mjs +0 -370
  132. package/dist/installSVGRenderer-DWwkDWs9.mjs +0 -788
  133. package/dist/installSimple-B0ty1uQ7.mjs +0 -562
  134. package/dist/labelGuideHelper-JZN7_bZa.mjs +0 -211
@@ -2,238 +2,43 @@ import * as e from "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { a as t, i as n, o as r, r as i, t as a } from "./rolldown-runtime-zXSK1Ut9.mjs";
5
- import { Ai as o, Cr as s, Ea as c, Gi as l, H as u, Lr as d, On as f, Qr as p, Sn as m, Sr as h, Va as g, Yt as _, _r as v, a as y, d as ee, eo as b, kn as x, l as S, la as C, mi as w, pi as T, so as E, y as D } from "./Portal-CV_NrBJ-.mjs";
6
- import { a as te, c as O, d as ne, h as re, i as ie, n as ae, o as k, r as A, s as j, t as oe, u as M } from "./toTasteAppearance-CcICPHaj.mjs";
7
- import { $ as se, A as ce, G as N, J as le, O as ue, Q as de, S as P, X as fe, Y as pe, Z as me } from "./option-BVCp3H01.mjs";
8
- import { g as he, m as ge, p as _e, r as ve, t as ye, y as be } from "./timeseries-CDZ2lqd0.mjs";
5
+ import { Ai as o, Cr as s, Ea as c, Gi as l, H as u, Lr as d, On as f, Qr as p, Sn as m, Sr as h, Va as g, Yt as _, _r as v, a as y, d as ee, eo as b, kn as x, l as S, la as C, mi as w, pi as T, so as E, y as D } from "./Portal-DSSDhg1M.mjs";
6
+ import { a as te, c as O, d as ne, h as re, i as ie, n as ae, o as k, r as A, s as j, t as oe, u as M } from "./toTasteAppearance-DdC9S4xx.mjs";
7
+ import { $ as se, C as ce, K as le, Q as ue, X as de, Y as fe, Z as N, et as pe, j as me, k as he } from "./format-BdG1uTDw.mjs";
8
+ import { h as ge, p as _e, r as ve, t as ye, v as be } from "./timeseries-D1_Havul.mjs";
9
9
  import { n as xe } from "./text-CSXb1-LG.mjs";
10
- import { $ as Se, $r as Ce, Ar as we, C as Te, Cs as Ee, D as De, Do as Oe, Dr as ke, E as F, Ec as I, Er as Ae, Fc as je, Fs as Me, Ft as Ne, Gt as Pe, Hi as Fe, Ii as Ie, Ka as L, Kr as Le, L as Re, Ln as ze, M as Be, Nc as Ve, O as He, Oo as Ue, Or as We, Pi as Ge, Qa as Ke, Qr as qe, Rc as Je, S as Ye, So as R, T as Xe, Tc as Ze, Vc as Qe, Vr as $e, Wa as et, Wc as tt, Xa as nt, Xc as rt, Xn as it, Xr as at, Ya as z, Yr as ot, Za as st, Zr as ct, _ as lt, _r as ut, a as dt, ai as ft, b as pt, bc as mt, bo as ht, br as gt, c as _t, d as vt, dc as yt, dr as bt, ei as xt, el as St, eo as Ct, er as wt, et as B, f as Tt, fc as Et, fi as Dt, fr as Ot, g as kt, gc as At, go as jt, h as Mt, hc as Nt, ho as Pt, i as Ft, ii as It, it as Lt, jr as Rt, kc as zt, l as Bt, lc as Vt, m as Ht, mo as Ut, n as Wt, ni as Gt, no as Kt, nt as qt, o as Jt, oi as Yt, p as Xt, po as Zt, qn as Qt, qr as $t, r as en, ri as tn, ro as nn, rs as rn, s as an, t as on, ti as sn, tl as cn, u as ln, ur as un, v as dn, vc as fn, vn as pn, vo as mn, vr as hn, w as gn, wc as _n, wo as vn, x as yn, xc as bn, xo as xn, xr as Sn, y as Cn, yo as wn, zc as Tn, zi as En } from "./echarts-B6T0U8q9.mjs";
11
- import { t as Dn } from "./SeriesData-BiofVRKp.mjs";
12
- import { t as On } from "./createDimensions-DYZprUlh.mjs";
13
- import { t as kn } from "./createSeriesData-SCJKaSQ2.mjs";
14
- import { n as An, r as jn, t as Mn } from "./dataStackHelper-8xSjPoGY.mjs";
15
- import { n as Nn, t as Pn } from "./axisHelper-B4ygrEAu.mjs";
16
- import { n as Fn, t as In } from "./Axis-so_G8609.mjs";
17
- import { n as Ln } from "./axisNiceTicks-ClubN7Tk.mjs";
18
- import { t as Rn } from "./extension-dPyu9HSg.mjs";
19
- import { c as zn } from "./install-B35NwG74.mjs";
20
- import { t as V } from "./NoDataFound-ChW4me5m.mjs";
21
- import { n as Bn, t as Vn } from "./Accordion-ClM-DQNR.mjs";
22
- import { a as Hn, i as Un } from "./tslib.es6-D1gkTN1m.mjs";
23
- import { n as Wn, t as Gn } from "./esm-COBpFXvV.mjs";
24
- import { a as Kn, i as qn, n as Jn, o as Yn, r as Xn, t as Zn } from "./dist-FcU2f2u-.mjs";
25
- import { n as Qn, r as $n } from "./cardActions-KAyfWH7u.mjs";
26
- import { t as er } from "./conditionalFormatting-C-FdJ4PG.mjs";
27
- import { t as tr } from "./Loader-DoUwkcO5.mjs";
28
- import { t as H } from "./list.module-DHbay5il.mjs";
29
- import { n as nr, o as rr } from "./canvasTeardown-U1wBiiCe.mjs";
30
- import ir, { createElement as ar, forwardRef as or, lazy as sr, useCallback as cr, useEffect as U, useLayoutEffect as lr, useMemo as W, useRef as G, useState as K, useSyncExternalStore as ur } from "react";
31
- import { Fragment as dr, jsx as q, jsxs as J } from "react/jsx-runtime";
32
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/helper.js
33
- var fr = /* @__PURE__ */ i({
34
- createDimensions: () => On,
35
- createList: () => pr,
36
- createScale: () => hr,
37
- createSymbol: () => Re,
38
- createTextStyle: () => _r,
39
- dataStack: () => mr,
40
- enableHoverEmphasis: () => Dt,
41
- getECData: () => Ge,
42
- getLayoutRect: () => Pe,
43
- mixinAxisModelCommonMethods: () => gr
44
- });
45
- function pr(e) {
46
- return kn(null, e);
47
- }
48
- var mr = {
49
- isDimensionStacked: jn,
50
- enableDataStack: Mn,
51
- getStackedDimension: An
52
- };
53
- function hr(e, t) {
54
- var n = t;
55
- t instanceof it || (n = new it(t));
56
- var r = Nn(n), i = Pn(n, r, !1);
57
- return e[1] < e[0] && (e = e.slice().reverse()), Ln(i, n, null, null, e), i;
58
- }
59
- function gr(e) {
60
- Qe(e, Fn);
61
- }
62
- function _r(e, t) {
63
- return t ||= {}, wt(e, null, null, t.state !== "normal");
64
- }
65
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/number.js
66
- var vr = /* @__PURE__ */ i({
67
- MAX_SAFE_INTEGER: () => et,
68
- asc: () => L,
69
- getPercentWithPrecision: () => z,
70
- getPixelPrecision: () => nt,
71
- getPrecision: () => st,
72
- getPrecisionSafe: () => Ke,
73
- isNumeric: () => Ct,
74
- isRadianAroundZero: () => Kt,
75
- linearMap: () => nn,
76
- nice: () => Zt,
77
- numericToNumber: () => Ut,
78
- parseDate: () => Pt,
79
- parsePercent: () => jt,
80
- quantile: () => mn,
81
- quantity: () => wn,
82
- quantityExponent: () => ht,
83
- reformIntervals: () => xn,
84
- remRadian: () => R,
85
- round: () => vn
86
- }), yr = /* @__PURE__ */ i({
87
- format: () => pn,
88
- parse: () => Pt,
89
- roundTime: () => ze
90
- }), br = /* @__PURE__ */ i({
91
- Arc: () => qe,
92
- BezierCurve: () => Ce,
93
- BoundingRect: () => Ee,
94
- Circle: () => Yt,
95
- CompoundPath: () => ct,
96
- Ellipse: () => ft,
97
- Group: () => Ue,
98
- Image: () => Fe,
99
- IncrementalDisplayable: () => $t,
100
- Line: () => xt,
101
- LinearGradient: () => at,
102
- Polygon: () => Gt,
103
- Polyline: () => sn,
104
- RadialGradient: () => ot,
105
- Rect: () => En,
106
- Ring: () => tn,
107
- Sector: () => It,
108
- Text: () => Ie,
109
- clipPointsByRect: () => un,
110
- clipRectByRect: () => bt,
111
- createIcon: () => Ot,
112
- extendPath: () => ut,
113
- extendShape: () => hn,
114
- getShapeClass: () => gt,
115
- getTransform: () => Sn,
116
- initProps: () => $e,
117
- makeImage: () => Ae,
118
- makePath: () => ke,
119
- mergePath: () => We,
120
- registerShape: () => we,
121
- resizePath: () => Rt,
122
- updateProps: () => Le
123
- }), xr = /* @__PURE__ */ i({
124
- bind: () => yt,
125
- clone: () => Et,
126
- curry: () => Nt,
127
- defaults: () => At,
128
- each: () => fn,
129
- extend: () => mt,
130
- filter: () => bn,
131
- indexOf: () => _n,
132
- inherits: () => Ze,
133
- isArray: () => I,
134
- isFunction: () => zt,
135
- isObject: () => Ve,
136
- isString: () => je,
137
- map: () => Je,
138
- merge: () => Tn,
139
- reduce: () => tt
140
- });
141
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api.js
142
- function Sr(e) {
143
- var t = Ne.extend(e);
144
- return Ne.registerClass(t), t;
145
- }
146
- function Cr(e) {
147
- var t = qt.extend(e);
148
- return qt.registerClass(t), t;
149
- }
150
- function wr(e) {
151
- var t = Lt.extend(e);
152
- return Lt.registerClass(t), t;
153
- }
154
- function Tr(e) {
155
- var t = B.extend(e);
156
- return B.registerClass(t), t;
157
- }
158
- // ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/core.js
159
- var Er = /* @__PURE__ */ i({
160
- Axis: () => In,
161
- ChartView: () => B,
162
- ComponentModel: () => Ne,
163
- ComponentView: () => qt,
164
- List: () => Dn,
165
- Model: () => it,
166
- PRIORITY: () => on,
167
- SeriesModel: () => Lt,
168
- color: () => rn,
169
- connect: () => Wt,
170
- dataTool: () => en,
171
- dependencies: () => Ft,
172
- disConnect: () => dt,
173
- disconnect: () => Jt,
174
- dispose: () => an,
175
- env: () => cn,
176
- extendChartView: () => Tr,
177
- extendComponentModel: () => Sr,
178
- extendComponentView: () => Cr,
179
- extendSeriesModel: () => wr,
180
- format: () => ge,
181
- getCoordinateSystemDimensions: () => _t,
182
- getInstanceByDom: () => Bt,
183
- getInstanceById: () => ln,
184
- getMap: () => vt,
185
- graphic: () => br,
186
- helper: () => fr,
187
- init: () => Tt,
188
- innerDrawElementOnCanvas: () => Be,
189
- matrix: () => Me,
190
- number: () => vr,
191
- parseGeoJSON: () => zn,
192
- parseGeoJson: () => zn,
193
- registerAction: () => Xt,
194
- registerCoordinateSystem: () => Ht,
195
- registerCustomSeries: () => Mt,
196
- registerLayout: () => kt,
197
- registerLoading: () => lt,
198
- registerLocale: () => Qt,
199
- registerMap: () => dn,
200
- registerPostInit: () => Cn,
201
- registerPostUpdate: () => pt,
202
- registerPreprocessor: () => yn,
203
- registerProcessor: () => Ye,
204
- registerTheme: () => Te,
205
- registerTransform: () => gn,
206
- registerUpdateLifecycle: () => Xe,
207
- registerVisual: () => F,
208
- setCanvasCreator: () => De,
209
- setPlatformAPI: () => St,
210
- throttle: () => Se,
211
- time: () => yr,
212
- use: () => Rn,
213
- util: () => xr,
214
- vector: () => Vt,
215
- version: () => He,
216
- zrUtil: () => rt,
217
- zrender: () => Oe
218
- }), Dr = (e) => e.endsWith("center") && e.startsWith("left") ? "dbn:text-left" : e.endsWith("center") && e.startsWith("right") ? "dbn:text-right" : e.endsWith("center") ? "dbn:text-center" : e.endsWith("right") ? "dbn:text-right" : "dbn:text-left", Or = ({ customSettings: e, children: t }) => {
10
+ import { l as Se, n as Ce, o as we } from "./canvasTeardown-BZnfPMIf.mjs";
11
+ import { t as P } from "./NoDataFound-dLuw3_8M.mjs";
12
+ import { n as Te, t as F } from "./Accordion-HnV7Wa7d.mjs";
13
+ import { a as Ee, i as De } from "./tslib.es6-D1gkTN1m.mjs";
14
+ import { n as Oe, t as ke } from "./esm-COBpFXvV.mjs";
15
+ import { a as I, i as L, n as Ae, o as je, r as Me, t as Ne } from "./dist-FcU2f2u-.mjs";
16
+ import { n as Pe, r as Fe } from "./cardActions-KAyfWH7u.mjs";
17
+ import { t as Ie } from "./conditionalFormatting-jiDCWhx5.mjs";
18
+ import { t as Le } from "./Loader-DoUwkcO5.mjs";
19
+ import { t as R } from "./list.module-DHbay5il.mjs";
20
+ import Re, { createElement as ze, forwardRef as Be, lazy as Ve, useCallback as He, useEffect as z, useLayoutEffect as Ue, useMemo as B, useRef as V, useState as H, useSyncExternalStore as We } from "react";
21
+ import { Fragment as Ge, jsx as U, jsxs as W } from "react/jsx-runtime";
22
+ // src/charts/ChartTitleCaption.tsx
23
+ var Ke = (e) => e.endsWith("center") && e.startsWith("left") ? "dbn:text-left" : e.endsWith("center") && e.startsWith("right") ? "dbn:text-right" : e.endsWith("center") ? "dbn:text-center" : e.endsWith("right") ? "dbn:text-right" : "dbn:text-left", qe = ({ customSettings: e, children: t }) => {
219
24
  let n = e?.chartTitle?.trim(), r = e?.chartDesc?.trim();
220
- if (!e?.enableTitleDesc || !n && !r) return /* @__PURE__ */ q(dr, { children: t });
221
- let i = e.titlePosition || "top-left", a = /* @__PURE__ */ J("div", {
222
- className: `dbn:shrink-0 dbn:px-1 dbn:py-1 dbn:break-words ${Dr(i)}`,
25
+ if (!e?.enableTitleDesc || !n && !r) return /* @__PURE__ */ U(Ge, { children: t });
26
+ let i = e.titlePosition || "top-left", a = /* @__PURE__ */ W("div", {
27
+ className: `dbn:shrink-0 dbn:px-1 dbn:py-1 dbn:break-words ${Ke(i)}`,
223
28
  "data-testid": "chart-title-caption",
224
- children: [n ? /* @__PURE__ */ q("p", {
29
+ children: [n ? /* @__PURE__ */ U("p", {
225
30
  className: "dbn:m-0 dbn:text-sm dbn:font-semibold dbn:leading-snug",
226
31
  children: n
227
- }) : null, r ? /* @__PURE__ */ q("p", {
32
+ }) : null, r ? /* @__PURE__ */ U("p", {
228
33
  className: "dbn:m-0 dbn:whitespace-pre-line dbn:text-xs dbn:leading-snug dbn:opacity-70",
229
34
  children: r
230
35
  }) : null]
231
36
  }), o = i.startsWith("bottom");
232
- return /* @__PURE__ */ J("div", {
37
+ return /* @__PURE__ */ W("div", {
233
38
  className: "dbn:flex dbn:h-full dbn:w-full dbn:min-h-0 dbn:flex-col",
234
39
  children: [
235
40
  o ? null : a,
236
- /* @__PURE__ */ q("div", {
41
+ /* @__PURE__ */ U("div", {
237
42
  className: "dbn:min-h-0 dbn:w-full dbn:flex-1",
238
43
  children: t
239
44
  }),
@@ -242,16 +47,16 @@ var Er = /* @__PURE__ */ i({
242
47
  });
243
48
  };
244
49
  // src/charts/chartMinHeight.ts
245
- function kr(e) {
50
+ function Je(e) {
246
51
  let t = e ? O[e] : void 0;
247
- return t ? fe(t) : 200;
52
+ return t ? N(t) : 200;
248
53
  }
249
54
  // src/charts/echarts6Compatibility.ts
250
- var Ar = /* @__PURE__ */ new WeakMap(), jr = (e) => typeof e == "object" && !!e && !Array.isArray(e), Mr = (e, t) => Array.isArray(e) ? e.map((e) => jr(e) ? t(e) : e) : jr(e) ? t(e) : e, Nr = (e) => ({
55
+ var Ye = /* @__PURE__ */ new WeakMap(), Xe = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ze = (e, t) => Array.isArray(e) ? e.map((e) => Xe(e) ? t(e) : e) : Xe(e) ? t(e) : e, Qe = (e) => ({
251
56
  ...e,
252
57
  outerBoundsMode: e.outerBoundsMode === void 0 ? "none" : e.outerBoundsMode
253
- }), Pr = (e) => {
254
- let t = jr(e.axisLabel) ? e.axisLabel : {};
58
+ }), $e = (e) => {
59
+ let t = Xe(e.axisLabel) ? e.axisLabel : {};
255
60
  return {
256
61
  ...e,
257
62
  containShape: e.containShape !== void 0 && e.containShape,
@@ -260,21 +65,21 @@ var Ar = /* @__PURE__ */ new WeakMap(), jr = (e) => typeof e == "object" && !!e
260
65
  nameMoveOverlap: t.nameMoveOverlap !== void 0 && t.nameMoveOverlap
261
66
  }
262
67
  };
263
- }, Fr = (e) => {
264
- if (!jr(e)) return e;
265
- let t = Ar.get(e);
68
+ }, et = (e) => {
69
+ if (!Xe(e)) return e;
70
+ let t = Ye.get(e);
266
71
  if (t !== void 0) return t;
267
72
  let n = {
268
73
  ...e,
269
74
  legacyViewCoordSysCenterBase: e.legacyViewCoordSysCenterBase === void 0 || e.legacyViewCoordSysCenterBase,
270
75
  richInheritPlainLabel: e.richInheritPlainLabel !== void 0 && e.richInheritPlainLabel
271
76
  };
272
- return e.grid !== void 0 && (n.grid = Mr(e.grid, Nr)), e.xAxis !== void 0 && (n.xAxis = Mr(e.xAxis, Pr)), e.yAxis !== void 0 && (n.yAxis = Mr(e.yAxis, Pr)), Ar.set(e, n), n;
273
- }, Ir = [
77
+ return e.grid !== void 0 && (n.grid = Ze(e.grid, Qe)), e.xAxis !== void 0 && (n.xAxis = Ze(e.xAxis, $e)), e.yAxis !== void 0 && (n.yAxis = Ze(e.yAxis, $e)), Ye.set(e, n), n;
78
+ }, tt = [
274
79
  g.pie,
275
80
  g.doughnut,
276
81
  g.rose
277
- ], Lr = [
82
+ ], nt = [
278
83
  "top-left",
279
84
  "top-center",
280
85
  "top-right",
@@ -283,29 +88,29 @@ var Ar = /* @__PURE__ */ new WeakMap(), jr = (e) => typeof e == "object" && !!e
283
88
  "bottom-right",
284
89
  "left",
285
90
  "right"
286
- ], Rr = (e) => e && Lr.includes(e) ? e : void 0, zr = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Br = (e) => {
91
+ ], rt = (e) => e && nt.includes(e) ? e : void 0, G = (e) => e === "horizontal" || e === "vertical" ? e : void 0, it = (e) => {
287
92
  if (typeof e == "number" && Number.isFinite(e)) return e;
288
93
  if (typeof e == "string" && e.trim() !== "") {
289
94
  let t = Number(e);
290
95
  return Number.isFinite(t) ? t : void 0;
291
96
  }
292
- }, Vr = (e) => {
97
+ }, at = (e) => {
293
98
  let t = e.legendAppearance, n = e.legendSettings;
294
99
  return {
295
100
  show: t?.show ?? n?.show,
296
- fixedPosition: Rr(t?.fixedPosition ?? n?.fixedPosition),
297
- legendAppearance: zr(t?.legendAppearance ?? n?.position),
101
+ fixedPosition: rt(t?.fixedPosition ?? n?.fixedPosition),
102
+ legendAppearance: G(t?.legendAppearance ?? n?.position),
298
103
  disableLegendScrolling: t?.disableLegendScrolling ?? n?.disableScroll,
299
104
  truncateLegend: t?.truncateLegend ?? n?.truncateLegendValue,
300
- fontSize: Br(t?.fontSize) ?? Br(n?.fontSize)
105
+ fontSize: it(t?.fontSize) ?? it(n?.fontSize)
301
106
  };
302
107
  };
303
- function Hr(e) {
108
+ function ot(e) {
304
109
  let { chartType: t, canvas: n, legendLabels: r } = e;
305
- if (!t || !Ir.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
306
- let i = Vr(e);
110
+ if (!t || !tt.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
111
+ let i = at(e);
307
112
  if (i.show === !1) return null;
308
- let a = N({
113
+ let a = le({
309
114
  labels: r,
310
115
  layout: n,
311
116
  legend: i,
@@ -313,7 +118,7 @@ function Hr(e) {
313
118
  directLabelling: !0
314
119
  });
315
120
  if (!a.show) return null;
316
- let o = ue({
121
+ let o = he({
317
122
  legendRoom: !0,
318
123
  layout: n,
319
124
  outsideLabels: e.outsideLabels !== !1,
@@ -330,14 +135,14 @@ function Hr(e) {
330
135
  insetRightPx: a.reserveRightPx
331
136
  };
332
137
  }
333
- var Ur = /* @__PURE__ */ new Set([
138
+ var st = /* @__PURE__ */ new Set([
334
139
  void 0,
335
140
  "outside",
336
141
  "outer"
337
- ]), Wr = (e) => {
142
+ ]), ct = (e) => {
338
143
  let t = Array.isArray(e) ? e[e.length - 1] : e, n = /^(\d+(?:\.\d+)?)%$/.exec(String(t ?? "").trim());
339
144
  return n ? Number(n[1]) / 100 : 0;
340
- }, Gr = (e) => !!e?.label?.show && Ur.has(e.label.position), Kr = (e) => {
145
+ }, lt = (e) => !!e?.label?.show && st.has(e.label.position), ut = (e) => {
341
146
  let t = Array.isArray(e.data) ? e.data : [], n = e.label?.formatter;
342
147
  return t.flatMap((e) => {
343
148
  let t = e && typeof e == "object" ? e : {}, r = String(t.name ?? "");
@@ -351,20 +156,20 @@ var Ur = /* @__PURE__ */ new Set([
351
156
  return r.split("\n");
352
157
  });
353
158
  };
354
- function qr(e, t, n) {
159
+ function dt(e, t, n) {
355
160
  let { chartType: r, canvas: i } = t;
356
- if (!r || !Ir.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
357
- let a = e.filter(Gr);
161
+ if (!r || !tt.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
162
+ let a = e.filter(lt);
358
163
  if (a.length === 0 || n.centerX !== void 0 && !/%$/.test(n.centerX)) return null;
359
- let o = Math.max(...e.map((e) => Wr(e?.radius))), s = a[0], c = P({
164
+ let o = Math.max(...e.map((e) => ct(e?.radius))), s = a[0], c = ce({
360
165
  layout: i,
361
166
  outerRadius: o * n.scale,
362
167
  centerX: n.centerX,
363
168
  insetLeftPx: n.insetLeftPx,
364
169
  insetRightPx: n.insetRightPx,
365
- labelLines: a.flatMap(Kr),
366
- fontSizePx: Br(s.label?.fontSize),
367
- leaderPx: (Br(s.labelLine?.length) ?? 10) + (Br(s.labelLine?.length2) ?? 20)
170
+ labelLines: a.flatMap(ut),
171
+ fontSizePx: it(s.label?.fontSize),
172
+ leaderPx: (it(s.labelLine?.length) ?? 10) + (it(s.labelLine?.length2) ?? 20)
368
173
  });
369
174
  return c.mode === "hidden" ? {
370
175
  hide: !0,
@@ -374,21 +179,21 @@ function qr(e, t, n) {
374
179
  radiusScale: c.radiusScale
375
180
  };
376
181
  }
377
- function Jr(e, t) {
182
+ function ft(e, t) {
378
183
  if (!e) return e;
379
184
  let n = e.series;
380
185
  if (!Array.isArray(n) || n.length === 0) return e;
381
- let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? Hr({
186
+ let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? ot({
382
187
  ...t,
383
188
  legendLabels: i
384
- }) : null, o = a && !(a.center[0] === "50%" && a.center[1] === "50%" && a.radiusScale >= 1 && (e.legend?.type ?? "scroll") === a.legendType) ? a : null, s = n[0]?.center, c = qr(n, t, {
189
+ }) : null, o = a && !(a.center[0] === "50%" && a.center[1] === "50%" && a.radiusScale >= 1 && (e.legend?.type ?? "scroll") === a.legendType) ? a : null, s = n[0]?.center, c = dt(n, t, {
385
190
  centerX: o ? o.center[0] : Array.isArray(s) ? String(s[0]) : void 0,
386
191
  scale: o ? o.radiusScale : 1,
387
192
  insetLeftPx: o?.insetLeftPx ?? 0,
388
193
  insetRightPx: o?.insetRightPx ?? 0
389
194
  });
390
195
  if (!o && !c) return e;
391
- let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && Gr(e)), d = u ? l * .82 : l;
196
+ let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && lt(e)), d = u ? l * .82 : l;
392
197
  return {
393
198
  ...e,
394
199
  ...o ? { legend: {
@@ -408,8 +213,8 @@ function Jr(e, t) {
408
213
  ...e,
409
214
  ...o ? { center: o.center } : {},
410
215
  ...u ? { center: [(o?.center ?? e.center ?? ["50%", "50%"])[0], "44%"] } : {},
411
- ...e.radius !== void 0 && d < 1 ? { radius: ce(e.radius, d) } : {},
412
- ...c?.hide && Gr(e) ? {
216
+ ...e.radius !== void 0 && d < 1 ? { radius: me(e.radius, d) } : {},
217
+ ...c?.hide && lt(e) ? {
413
218
  label: {
414
219
  ...e.label,
415
220
  show: !1
@@ -423,13 +228,13 @@ function Jr(e, t) {
423
228
  };
424
229
  }
425
230
  // src/charts/withMetricChartAppearance.ts
426
- var Yr = [
231
+ var pt = [
427
232
  "top",
428
233
  "left",
429
234
  "right",
430
235
  "bottom",
431
236
  "inside"
432
- ], Xr = [
237
+ ], mt = [
433
238
  "top-left",
434
239
  "top-center",
435
240
  "top-right",
@@ -438,7 +243,7 @@ var Yr = [
438
243
  "bottom-left",
439
244
  "bottom-center",
440
245
  "bottom-right"
441
- ], Zr = [
246
+ ], K = [
442
247
  "circle",
443
248
  "rect",
444
249
  "roundRect",
@@ -446,34 +251,34 @@ var Yr = [
446
251
  "diamond",
447
252
  "arrow",
448
253
  "none"
449
- ], Qr = (e) => e != null, $r = (e) => {
254
+ ], ht = (e) => e != null, gt = (e) => {
450
255
  let t = e?.position;
451
- if (t && t !== "hidden" && Yr.includes(t)) return { position: t };
452
- }, ei = (e) => {
256
+ if (t && t !== "hidden" && pt.includes(t)) return { position: t };
257
+ }, _t = (e) => {
453
258
  if (!e) return;
454
259
  let t = p.legendSettings ?? {}, n = {};
455
- return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && Xr.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && Zr.includes(e.legendShape) && (n.legendShape = e.legendShape), Qr(e.truncateLegendValue) && e.truncateLegendValue !== t.truncateLegendValue && (n.truncateLegend = e.truncateLegendValue), e.disableScroll === !0 && (n.disableLegendScrolling = !0), e.customise === !0 && (n.enableVariablePosition = !0, n.top = e.top, n.left = e.left), Object.keys(n).length ? n : void 0;
456
- }, ti = (e, t) => {
260
+ return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && mt.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && K.includes(e.legendShape) && (n.legendShape = e.legendShape), ht(e.truncateLegendValue) && e.truncateLegendValue !== t.truncateLegendValue && (n.truncateLegend = e.truncateLegendValue), e.disableScroll === !0 && (n.disableLegendScrolling = !0), e.customise === !0 && (n.enableVariablePosition = !0, n.top = e.top, n.left = e.left), Object.keys(n).length ? n : void 0;
261
+ }, vt = (e, t) => {
457
262
  if (!t) return e;
458
263
  if (!e) return t;
459
264
  let n = { ...t };
460
- for (let [t, r] of Object.entries(e)) Qr(r) && (n[t] = r);
265
+ for (let [t, r] of Object.entries(e)) ht(r) && (n[t] = r);
461
266
  return n;
462
- }, ni = (e, t) => {
463
- let n = ti(e?.chartLabel, $r(t?.labelSettings)), r = ti(e?.chartLegend, ei(t?.legendSettings));
267
+ }, yt = (e, t) => {
268
+ let n = vt(e?.chartLabel, gt(t?.labelSettings)), r = vt(e?.chartLegend, _t(t?.legendSettings));
464
269
  return n === e?.chartLabel && r === e?.chartLegend ? e : {
465
270
  ...e,
466
271
  ...n ? { chartLabel: n } : {},
467
272
  ...r ? { chartLegend: r } : {}
468
273
  };
469
- }, ri = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, ii = /^[\\/]{2}/;
470
- function ai(e, t) {
274
+ }, bt = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, xt = /^[\\/]{2}/;
275
+ function St(e, t) {
471
276
  return t + e.replace(/\\/g, "/");
472
277
  }
473
- function Y(e, t) {
278
+ function q(e, t) {
474
279
  if (e === !1 || e == null) throw Error(t);
475
280
  }
476
- function oi(e, t) {
281
+ function J(e, t) {
477
282
  if (!e) {
478
283
  typeof console < "u" && console.warn(t);
479
284
  try {
@@ -481,10 +286,10 @@ function oi(e, t) {
481
286
  } catch {}
482
287
  }
483
288
  }
484
- function si({ pathname: e = "/", search: t = "", hash: n = "" }) {
289
+ function Ct({ pathname: e = "/", search: t = "", hash: n = "" }) {
485
290
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
486
291
  }
487
- function ci(e) {
292
+ function wt(e) {
488
293
  let t = {};
489
294
  if (e) {
490
295
  let n = e.indexOf("#");
@@ -494,21 +299,21 @@ function ci(e) {
494
299
  }
495
300
  return t;
496
301
  }
497
- function li(e, t, n = "/") {
498
- return ui(e, t, n, !1);
302
+ function Tt(e, t, n = "/") {
303
+ return Et(e, t, n, !1);
499
304
  }
500
- function ui(e, t, n, r, i) {
501
- let a = ki((typeof t == "string" ? ci(t) : t).pathname || "/", n);
305
+ function Et(e, t, n, r, i) {
306
+ let a = Y((typeof t == "string" ? wt(t) : t).pathname || "/", n);
502
307
  if (a == null) return null;
503
- let o = i ?? di(e), s = null, c = Oi(a);
504
- for (let e = 0; s == null && e < o.length; ++e) s = wi(o[e], c, r);
308
+ let o = i ?? Dt(e), s = null, c = Wt(a);
309
+ for (let e = 0; s == null && e < o.length; ++e) s = Bt(o[e], c, r);
505
310
  return s;
506
311
  }
507
- function di(e) {
508
- let t = fi(e);
509
- return mi(t), t;
312
+ function Dt(e) {
313
+ let t = Ot(e);
314
+ return At(t), t;
510
315
  }
511
- function fi(e, t = [], n = [], r = "", i = !1) {
316
+ function Ot(e, t = [], n = [], r = "", i = !1) {
512
317
  let a = (e, a, o = i, s) => {
513
318
  let c = {
514
319
  relativePath: s === void 0 ? e.path || "" : s,
@@ -518,14 +323,14 @@ function fi(e, t = [], n = [], r = "", i = !1) {
518
323
  };
519
324
  if (c.relativePath.startsWith("/")) {
520
325
  if (!c.relativePath.startsWith(r) && o) return;
521
- Y(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
326
+ q(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
522
327
  }
523
328
  let l = X([r, c.relativePath]), u = n.concat(c);
524
- e.children && e.children.length > 0 && (Y(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), fi(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
329
+ e.children && e.children.length > 0 && (q(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), Ot(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
525
330
  path: l,
526
- score: Si(l, e.index),
331
+ score: Rt(l, e.index),
527
332
  routesMeta: u.map((e, t) => {
528
- let [n, r] = Di(e.relativePath, e.caseSensitive, t === u.length - 1);
333
+ let [n, r] = Ut(e.relativePath, e.caseSensitive, t === u.length - 1);
529
334
  return {
530
335
  ...e,
531
336
  matcher: n,
@@ -536,37 +341,37 @@ function fi(e, t = [], n = [], r = "", i = !1) {
536
341
  };
537
342
  return e.forEach((e, t) => {
538
343
  if (e.path === "" || !e.path?.includes("?")) a(e, t);
539
- else for (let n of pi(e.path)) a(e, t, !0, n);
344
+ else for (let n of kt(e.path)) a(e, t, !0, n);
540
345
  }), t;
541
346
  }
542
- function pi(e) {
347
+ function kt(e) {
543
348
  let t = e.split("/");
544
349
  if (t.length === 0) return [];
545
350
  let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
546
351
  if (r.length === 0) return i ? [a, ""] : [a];
547
- let o = pi(r.join("/")), s = [];
352
+ let o = kt(r.join("/")), s = [];
548
353
  return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
549
354
  }
550
- function mi(e) {
551
- e.sort((e, t) => e.score === t.score ? Ci(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
355
+ function At(e) {
356
+ e.sort((e, t) => e.score === t.score ? zt(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
552
357
  }
553
- var hi = /^:[\w-]+$/, gi = 3, _i = 2, vi = 1, yi = 10, bi = -2, xi = (e) => e === "*";
554
- function Si(e, t) {
358
+ var jt = /^:[\w-]+$/, Mt = 3, Nt = 2, Pt = 1, Ft = 10, It = -2, Lt = (e) => e === "*";
359
+ function Rt(e, t) {
555
360
  let n = e.split("/"), r = n.length;
556
- return n.some(xi) && (r += bi), t && (r += _i), n.filter((e) => !xi(e)).reduce((e, t) => e + (hi.test(t) ? gi : t === "" ? vi : yi), r);
361
+ return n.some(Lt) && (r += It), t && (r += Nt), n.filter((e) => !Lt(e)).reduce((e, t) => e + (jt.test(t) ? Mt : t === "" ? Pt : Ft), r);
557
362
  }
558
- function Ci(e, t) {
363
+ function zt(e, t) {
559
364
  return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
560
365
  }
561
- function wi(e, t, n = !1) {
366
+ function Bt(e, t, n = !1) {
562
367
  let { routesMeta: r } = e, i = {}, a = "/", o = [];
563
368
  for (let e = 0; e < r.length; ++e) {
564
369
  let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
565
370
  path: s.relativePath,
566
371
  caseSensitive: s.caseSensitive,
567
372
  end: c
568
- }, d = s.matcher && s.compiledParams ? Ei(u, l, s.matcher, s.compiledParams) : Ti(u, l), f = s.route;
569
- if (!d && c && n && !r[r.length - 1].route.index && (d = Ti({
373
+ }, d = s.matcher && s.compiledParams ? Ht(u, l, s.matcher, s.compiledParams) : Vt(u, l), f = s.route;
374
+ if (!d && c && n && !r[r.length - 1].route.index && (d = Vt({
570
375
  path: s.relativePath,
571
376
  caseSensitive: s.caseSensitive,
572
377
  end: !1
@@ -574,30 +379,30 @@ function wi(e, t, n = !1) {
574
379
  Object.assign(i, d.params), o.push({
575
380
  params: i,
576
381
  pathname: X([a, d.pathname]),
577
- pathnameBase: Ri(X([a, d.pathnameBase])),
382
+ pathnameBase: $t(X([a, d.pathnameBase])),
578
383
  route: f
579
384
  }), d.pathnameBase !== "/" && (a = X([a, d.pathnameBase]));
580
385
  }
581
386
  return o;
582
387
  }
583
- function Ti(e, t) {
388
+ function Vt(e, t) {
584
389
  typeof e == "string" && (e = {
585
390
  path: e,
586
391
  caseSensitive: !1,
587
392
  end: !0
588
393
  });
589
- let [n, r] = Di(e.path, e.caseSensitive, e.end);
590
- return Ei(e, t, n, r);
394
+ let [n, r] = Ut(e.path, e.caseSensitive, e.end);
395
+ return Ht(e, t, n, r);
591
396
  }
592
- function Ei(e, t, n, r) {
397
+ function Ht(e, t, n, r) {
593
398
  let i = t.match(n);
594
399
  if (!i) return null;
595
- let a = i[0], o = Li(a, 1), s = i.slice(1);
400
+ let a = i[0], o = Qt(a, 1), s = i.slice(1);
596
401
  return {
597
402
  params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
598
403
  if (t === "*") {
599
404
  let e = s[r] || "";
600
- o = Li(a.slice(0, a.length - e.length), 1);
405
+ o = Qt(a.slice(0, a.length - e.length), 1);
601
406
  }
602
407
  let i = s[r];
603
408
  return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -607,8 +412,8 @@ function Ei(e, t, n, r) {
607
412
  pattern: e
608
413
  };
609
414
  }
610
- function Di(e, t = !1, n = !0) {
611
- oi(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
415
+ function Ut(e, t = !1, n = !0) {
416
+ J(e === "*" || !e.endsWith("*") || e.endsWith("/*"), `Route path "${e}" will be treated as if it were "${e.replace(/\*$/, "/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/, "/*")}".`);
612
417
  let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
613
418
  if (r.push({
614
419
  paramName: t,
@@ -621,46 +426,46 @@ function Di(e, t = !1, n = !0) {
621
426
  }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
622
427
  return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
623
428
  }
624
- function Oi(e) {
429
+ function Wt(e) {
625
430
  try {
626
431
  return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
627
432
  } catch (t) {
628
- return oi(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
433
+ return J(!1, `The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`), e;
629
434
  }
630
435
  }
631
- function ki(e, t) {
436
+ function Y(e, t) {
632
437
  if (t === "/") return e;
633
438
  if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
634
439
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
635
440
  return r && r !== "/" ? null : e.slice(n) || "/";
636
441
  }
637
- function Ai(e, t = "/") {
638
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? ci(e) : e, a;
639
- return n ? (n = Ii(n), a = n.startsWith("/") || n.startsWith("\\") ? ji(n.substring(1), "/") : ji(n, t)) : a = t, {
442
+ function Gt(e, t = "/") {
443
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? wt(e) : e, a;
444
+ return n ? (n = Zt(n), a = n.startsWith("/") || n.startsWith("\\") ? Kt(n.substring(1), "/") : Kt(n, t)) : a = t, {
640
445
  pathname: a,
641
- search: zi(r),
642
- hash: Bi(i)
446
+ search: en(r),
447
+ hash: tn(i)
643
448
  };
644
449
  }
645
- function ji(e, t) {
646
- let n = Li(t).split("/");
450
+ function Kt(e, t) {
451
+ let n = Qt(t).split("/");
647
452
  return e.split("/").forEach((e) => {
648
453
  e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
649
454
  }), n.length > 1 ? n.join("/") : "/";
650
455
  }
651
- function Mi(e, t, n, r) {
456
+ function qt(e, t, n, r) {
652
457
  return `Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`;
653
458
  }
654
- function Ni(e) {
459
+ function Jt(e) {
655
460
  return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
656
461
  }
657
- function Pi(e) {
658
- let t = Ni(e);
462
+ function Yt(e) {
463
+ let t = Jt(e);
659
464
  return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
660
465
  }
661
- function Fi(e, t, n, r = !1) {
466
+ function Xt(e, t, n, r = !1) {
662
467
  let i;
663
- typeof e == "string" ? i = ci(e) : (i = { ...e }, Y(!i.pathname || !i.pathname.includes("?"), Mi("?", "pathname", "search", i)), Y(!i.pathname || !i.pathname.includes("#"), Mi("#", "pathname", "hash", i)), Y(!i.search || !i.search.includes("#"), Mi("#", "search", "hash", i)));
468
+ typeof e == "string" ? i = wt(e) : (i = { ...e }, q(!i.pathname || !i.pathname.includes("?"), qt("?", "pathname", "search", i)), q(!i.pathname || !i.pathname.includes("#"), qt("#", "pathname", "hash", i)), q(!i.search || !i.search.includes("#"), qt("#", "search", "hash", i)));
664
469
  let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
665
470
  if (o == null) s = n;
666
471
  else {
@@ -672,40 +477,40 @@ function Fi(e, t, n, r = !1) {
672
477
  }
673
478
  s = e >= 0 ? t[e] : "/";
674
479
  }
675
- let c = Ai(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
480
+ let c = Gt(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
676
481
  return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
677
482
  }
678
- var Ii = (e) => e.replace(/[\\/]{2,}/g, "/"), X = (e) => Ii(e.join("/"));
679
- function Li(e, t = 0) {
483
+ var Zt = (e) => e.replace(/[\\/]{2,}/g, "/"), X = (e) => Zt(e.join("/"));
484
+ function Qt(e, t = 0) {
680
485
  let n = e.length;
681
486
  for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
682
487
  return n === e.length ? e : e.slice(0, n);
683
488
  }
684
- var Ri = (e) => Li(e).replace(/^\/*/, "/"), zi = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Bi = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Vi = class {
489
+ var $t = (e) => Qt(e).replace(/^\/*/, "/"), en = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, tn = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, nn = class {
685
490
  constructor(e, t, n, r = !1) {
686
491
  this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
687
492
  }
688
493
  };
689
- function Hi(e) {
494
+ function rn(e) {
690
495
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
691
496
  }
692
- function Ui(e) {
497
+ function an(e) {
693
498
  return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
694
499
  }
695
- var Wi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
696
- function Gi(e, t) {
500
+ var on = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
501
+ function sn(e, t) {
697
502
  let n = e;
698
- if (typeof n != "string" || !ri.test(n)) return {
503
+ if (typeof n != "string" || !bt.test(n)) return {
699
504
  absoluteURL: void 0,
700
505
  isExternal: !1,
701
506
  to: n
702
507
  };
703
508
  let r = n, i = !1;
704
- if (Wi) try {
705
- let e = new URL(window.location.href), r = ii.test(n) ? new URL(ai(n, e.protocol)) : new URL(n), a = ki(r.pathname, t);
509
+ if (on) try {
510
+ let e = new URL(window.location.href), r = xt.test(n) ? new URL(St(n, e.protocol)) : new URL(n), a = Y(r.pathname, t);
706
511
  r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
707
512
  } catch {
708
- oi(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
513
+ J(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
709
514
  }
710
515
  return {
711
516
  absoluteURL: r,
@@ -714,43 +519,43 @@ function Gi(e, t) {
714
519
  };
715
520
  }
716
521
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
717
- var Ki = new URL("http://localhost");
718
- function qi(e) {
522
+ var cn = new URL("http://localhost");
523
+ function ln(e) {
719
524
  if (e.createURL) return e.createURL("/");
720
525
  try {
721
- return new URL(e.createHref("/"), Ki);
526
+ return new URL(e.createHref("/"), cn);
722
527
  } catch {
723
- return Ki;
528
+ return cn;
724
529
  }
725
530
  }
726
- function Ji(e, t) {
531
+ function un(e, t) {
727
532
  return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
728
533
  }
729
- function Yi(e, t) {
534
+ function dn(e, t) {
730
535
  if (e.startsWith("//")) return !0;
731
536
  let n = t.protocol.toLowerCase();
732
537
  return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
733
538
  }
734
- function Xi(e, t, n, r) {
539
+ function fn(e, t, n, r) {
735
540
  let i = null;
736
541
  try {
737
542
  i = e == null ? null : new URL(e, n);
738
543
  } catch {}
739
- let a = new URL(t, n), o = i != null && !Ji(i, n), s = !Ji(a, n);
544
+ let a = new URL(t, n), o = i != null && !un(i, n), s = !un(a, n);
740
545
  if (r === "reject") {
741
546
  if (o || s) throw Error("External navigation is not allowed");
742
- } else if (s && (i == null || !Yi(e, i) || !Ji(i, a))) throw Error("External navigation is not allowed");
547
+ } else if (s && (i == null || !dn(e, i) || !un(i, a))) throw Error("External navigation is not allowed");
743
548
  }
744
- var Zi = [
549
+ var pn = [
745
550
  "POST",
746
551
  "PUT",
747
552
  "PATCH",
748
553
  "DELETE"
749
554
  ];
750
- new Set(Zi);
751
- var Qi = ["GET", ...Zi];
752
- new Set(Qi);
753
- var $i = [
555
+ new Set(pn);
556
+ var mn = ["GET", ...pn];
557
+ new Set(mn);
558
+ var hn = [
754
559
  "about:",
755
560
  "blob:",
756
561
  "chrome:",
@@ -762,88 +567,88 @@ var $i = [
762
567
  "filesystem:",
763
568
  "javascript:"
764
569
  ];
765
- function ea(e) {
570
+ function gn(e) {
766
571
  try {
767
- return $i.includes(new URL(e).protocol);
572
+ return hn.includes(new URL(e).protocol);
768
573
  } catch {
769
574
  return !1;
770
575
  }
771
576
  }
772
- var ta = e.createContext(null);
773
- ta.displayName = "DataRouter";
774
- var na = e.createContext(null);
775
- na.displayName = "DataRouterState";
776
- var ra = e.createContext(!1);
777
- function ia() {
778
- return e.useContext(ra);
577
+ var _n = e.createContext(null);
578
+ _n.displayName = "DataRouter";
579
+ var vn = e.createContext(null);
580
+ vn.displayName = "DataRouterState";
581
+ var yn = e.createContext(!1);
582
+ function bn() {
583
+ return e.useContext(yn);
779
584
  }
780
- var aa = e.createContext({ isTransitioning: !1 });
781
- aa.displayName = "ViewTransition";
782
- var oa = e.createContext(/* @__PURE__ */ new Map());
783
- oa.displayName = "Fetchers";
784
- var sa = e.createContext(null);
785
- sa.displayName = "Await";
585
+ var xn = e.createContext({ isTransitioning: !1 });
586
+ xn.displayName = "ViewTransition";
587
+ var Sn = e.createContext(/* @__PURE__ */ new Map());
588
+ Sn.displayName = "Fetchers";
589
+ var Cn = e.createContext(null);
590
+ Cn.displayName = "Await";
786
591
  var Z = e.createContext(null);
787
592
  Z.displayName = "Navigation";
788
- var ca = e.createContext(null);
789
- ca.displayName = "Location";
790
- var la = e.createContext({
593
+ var wn = e.createContext(null);
594
+ wn.displayName = "Location";
595
+ var Tn = e.createContext({
791
596
  outlet: null,
792
597
  matches: [],
793
598
  isDataRoute: !1
794
599
  });
795
- la.displayName = "Route";
796
- var ua = e.createContext(null);
797
- ua.displayName = "RouteError";
798
- var da = "REACT_ROUTER_ERROR", fa = "REDIRECT", pa = "ROUTE_ERROR_RESPONSE";
799
- function ma(e) {
800
- if (e.startsWith(`${da}:${fa}:{`)) try {
600
+ Tn.displayName = "Route";
601
+ var En = e.createContext(null);
602
+ En.displayName = "RouteError";
603
+ var Dn = "REACT_ROUTER_ERROR", On = "REDIRECT", kn = "ROUTE_ERROR_RESPONSE";
604
+ function An(e) {
605
+ if (e.startsWith(`${Dn}:${On}:{`)) try {
801
606
  let t = JSON.parse(e.slice(28));
802
607
  if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string" && typeof t.location == "string" && typeof t.reloadDocument == "boolean" && typeof t.replace == "boolean") return t;
803
608
  } catch {}
804
609
  }
805
- function ha(e) {
806
- if (e.startsWith(`${da}:${pa}:{`)) try {
610
+ function jn(e) {
611
+ if (e.startsWith(`${Dn}:${kn}:{`)) try {
807
612
  let t = JSON.parse(e.slice(40));
808
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Vi(t.status, t.statusText, t.data);
613
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new nn(t.status, t.statusText, t.data);
809
614
  } catch {}
810
615
  }
811
- function ga(t, { relative: n } = {}) {
812
- Y(_a(), "useHref() may be used only in the context of a <Router> component.");
813
- let { basename: r, navigator: i } = e.useContext(Z), { hash: a, pathname: o, search: s } = Ca(t, { relative: n }), c = o;
616
+ function Mn(t, { relative: n } = {}) {
617
+ q(Nn(), "useHref() may be used only in the context of a <Router> component.");
618
+ let { basename: r, navigator: i } = e.useContext(Z), { hash: a, pathname: o, search: s } = zn(t, { relative: n }), c = o;
814
619
  return r !== "/" && (c = o === "/" ? r : X([r, o])), i.createHref({
815
620
  pathname: c,
816
621
  search: s,
817
622
  hash: a
818
623
  });
819
624
  }
820
- function _a() {
821
- return e.useContext(ca) != null;
625
+ function Nn() {
626
+ return e.useContext(wn) != null;
822
627
  }
823
- function va() {
824
- return Y(_a(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(ca).location;
628
+ function Pn() {
629
+ return q(Nn(), "useLocation() may be used only in the context of a <Router> component."), e.useContext(wn).location;
825
630
  }
826
- var ya = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
827
- function ba(t) {
631
+ var Fn = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
632
+ function In(t) {
828
633
  e.useContext(Z).static || e.useLayoutEffect(t);
829
634
  }
830
- function xa() {
831
- let { isDataRoute: t } = e.useContext(la);
832
- return t ? za() : Sa();
635
+ function Ln() {
636
+ let { isDataRoute: t } = e.useContext(Tn);
637
+ return t ? tr() : Rn();
833
638
  }
834
- function Sa() {
835
- Y(_a(), "useNavigate() may be used only in the context of a <Router> component.");
836
- let t = e.useContext(ta), { basename: n, navigator: r } = e.useContext(Z), { matches: i } = e.useContext(la), { pathname: a } = va(), o = JSON.stringify(Pi(i)), s = e.useRef(!1);
837
- return ba(() => {
639
+ function Rn() {
640
+ q(Nn(), "useNavigate() may be used only in the context of a <Router> component.");
641
+ let t = e.useContext(_n), { basename: n, navigator: r } = e.useContext(Z), { matches: i } = e.useContext(Tn), { pathname: a } = Pn(), o = JSON.stringify(Yt(i)), s = e.useRef(!1);
642
+ return In(() => {
838
643
  s.current = !0;
839
644
  }), e.useCallback((e, i = {}) => {
840
- if (oi(s.current, ya), !s.current) return;
645
+ if (J(s.current, Fn), !s.current) return;
841
646
  if (typeof e == "number") {
842
647
  r.go(e);
843
648
  return;
844
649
  }
845
- let c = Fi(e, JSON.parse(o), a, i.relative === "path");
846
- t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : X([n, c.pathname])), Xi(typeof e == "string" ? e : si(e), r.createHref(c), qi(r), "reject"), (i.replace ? r.replace : r.push)(c, i.state, i);
650
+ let c = Xt(e, JSON.parse(o), a, i.relative === "path");
651
+ t == null && n !== "/" && (c.pathname = c.pathname === "/" ? n : X([n, c.pathname])), fn(typeof e == "string" ? e : Ct(e), r.createHref(c), ln(r), "reject"), (i.replace ? r.replace : r.push)(c, i.state, i);
847
652
  }, [
848
653
  n,
849
654
  r,
@@ -853,42 +658,42 @@ function Sa() {
853
658
  ]);
854
659
  }
855
660
  e.createContext(null);
856
- function Ca(t, { relative: n } = {}) {
857
- let { matches: r } = e.useContext(la), { pathname: i } = va(), a = JSON.stringify(Pi(r));
858
- return e.useMemo(() => Fi(t, JSON.parse(a), i, n === "path"), [
661
+ function zn(t, { relative: n } = {}) {
662
+ let { matches: r } = e.useContext(Tn), { pathname: i } = Pn(), a = JSON.stringify(Yt(r));
663
+ return e.useMemo(() => Xt(t, JSON.parse(a), i, n === "path"), [
859
664
  t,
860
665
  a,
861
666
  i,
862
667
  n
863
668
  ]);
864
669
  }
865
- function wa(t, n, r) {
866
- Y(_a(), "useRoutes() may be used only in the context of a <Router> component.");
867
- let { navigator: i } = e.useContext(Z), { matches: a } = e.useContext(la), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
670
+ function Bn(t, n, r) {
671
+ q(Nn(), "useRoutes() may be used only in the context of a <Router> component.");
672
+ let { navigator: i } = e.useContext(Z), { matches: a } = e.useContext(Tn), o = a[a.length - 1], s = o ? o.params : {}, c = o ? o.pathname : "/", l = o ? o.pathnameBase : "/", u = o && o.route;
868
673
  {
869
674
  let e = u && u.path || "";
870
- Va(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
675
+ rr(c, !u || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${c}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
871
676
 
872
677
  Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" : `${e}/*`}">.`);
873
678
  }
874
- let d = va(), f;
679
+ let d = Pn(), f;
875
680
  if (n) {
876
- let e = typeof n == "string" ? ci(n) : n;
877
- Y(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
681
+ let e = typeof n == "string" ? wt(n) : n;
682
+ q(l === "/" || e.pathname?.startsWith(l), `When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${l}" but pathname "${e.pathname}" was given in the \`location\` prop.`), f = e;
878
683
  } else f = d;
879
684
  let p = f.pathname || "/", m = p;
880
685
  if (l !== "/") {
881
686
  let e = l.replace(/^\//, "").split("/");
882
687
  m = "/" + p.replace(/^\//, "").split("/").slice(e.length).join("/");
883
688
  }
884
- let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : li(t, { pathname: m });
885
- oi(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), oi(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
886
- let g = ja(h && h.map((e) => Object.assign({}, e, {
689
+ let h = r && r.state.matches.length ? r.state.matches.map((e) => Object.assign(e, { route: r.manifest[e.route.id] || e.route })) : Tt(t, { pathname: m });
690
+ J(u || h != null, `No routes matched location "${f.pathname}${f.search}${f.hash}" `), J(h == null || h[h.length - 1].route.element !== void 0 || h[h.length - 1].route.Component !== void 0 || h[h.length - 1].route.lazy !== void 0, `Matched leaf route at location "${f.pathname}${f.search}${f.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);
691
+ let g = qn(h && h.map((e) => Object.assign({}, e, {
887
692
  params: Object.assign({}, s, e.params),
888
693
  pathname: X([l, i.encodeLocation ? i.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
889
694
  pathnameBase: e.pathnameBase === "/" ? l : X([l, i.encodeLocation ? i.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
890
695
  })), a, r);
891
- return n && g ? /* @__PURE__ */ e.createElement(ca.Provider, { value: {
696
+ return n && g ? /* @__PURE__ */ e.createElement(wn.Provider, { value: {
892
697
  location: {
893
698
  pathname: "/",
894
699
  search: "",
@@ -901,8 +706,8 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
901
706
  navigationType: "POP"
902
707
  } }, g) : g;
903
708
  }
904
- function Ta() {
905
- let t = Ra(), n = Hi(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
709
+ function Vn() {
710
+ let t = er(), n = rn(t) ? `${t.status} ${t.statusText}` : t instanceof Error ? t.message : JSON.stringify(t), r = t instanceof Error ? t.stack : null, i = "rgba(200,200,200, 0.5)", a = {
906
711
  padding: "0.5rem",
907
712
  backgroundColor: i
908
713
  }, o = {
@@ -911,7 +716,7 @@ function Ta() {
911
716
  }, s = null;
912
717
  return console.error("Error handled by React Router default ErrorBoundary:", t), s = /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ e.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ e.createElement("code", { style: o }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ e.createElement("code", { style: o }, "errorElement"), " prop on your route.")), /* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ e.createElement("h3", { style: { fontStyle: "italic" } }, n), r ? /* @__PURE__ */ e.createElement("pre", { style: a }, r) : null, s);
913
718
  }
914
- var Ea = /* @__PURE__ */ e.createElement(Ta, null), Da = class extends e.Component {
719
+ var Hn = /* @__PURE__ */ e.createElement(Vn, null), Un = class extends e.Component {
915
720
  constructor(e) {
916
721
  super(e), this.state = {
917
722
  location: e.location,
@@ -939,32 +744,32 @@ var Ea = /* @__PURE__ */ e.createElement(Ta, null), Da = class extends e.Compone
939
744
  render() {
940
745
  let t = this.state.error;
941
746
  if (this.context && typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
942
- let e = ha(t.digest);
747
+ let e = jn(t.digest);
943
748
  e && (t = e);
944
749
  }
945
- let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(la.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(ua.Provider, {
750
+ let n = t === void 0 ? this.props.children : /* @__PURE__ */ e.createElement(Tn.Provider, { value: this.props.routeContext }, /* @__PURE__ */ e.createElement(En.Provider, {
946
751
  value: t,
947
752
  children: this.props.component
948
753
  }));
949
- return this.context ? /* @__PURE__ */ e.createElement(ka, { error: t }, n) : n;
754
+ return this.context ? /* @__PURE__ */ e.createElement(Gn, { error: t }, n) : n;
950
755
  }
951
756
  };
952
- Da.contextType = ra;
953
- var Oa = /* @__PURE__ */ new WeakMap();
954
- function ka({ children: t, error: n }) {
757
+ Un.contextType = yn;
758
+ var Wn = /* @__PURE__ */ new WeakMap();
759
+ function Gn({ children: t, error: n }) {
955
760
  let { basename: r, navigator: i } = e.useContext(Z);
956
761
  if (typeof n == "object" && n && "digest" in n && typeof n.digest == "string") {
957
- let t = ma(n.digest);
762
+ let t = An(n.digest);
958
763
  if (t) {
959
- let a = Oa.get(n);
764
+ let a = Wn.get(n);
960
765
  if (a) throw a;
961
- let o = Gi(t.location, r), s = o.absoluteURL || o.to;
962
- if (Xi(t.location, s, qi(i), "allow-explicit"), ea(s)) throw Error("Invalid redirect location");
963
- if (Wi && !Oa.get(n)) {
766
+ let o = sn(t.location, r), s = o.absoluteURL || o.to;
767
+ if (fn(t.location, s, ln(i), "allow-explicit"), gn(s)) throw Error("Invalid redirect location");
768
+ if (on && !Wn.get(n)) {
964
769
  if (o.isExternal || t.reloadDocument) window.location.href = s;
965
770
  else {
966
771
  let e = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(o.to, { replace: t.replace }));
967
- throw Oa.set(n, e), e;
772
+ throw Wn.set(n, e), e;
968
773
  }
969
774
  }
970
775
  return /* @__PURE__ */ e.createElement("meta", {
@@ -975,11 +780,11 @@ function ka({ children: t, error: n }) {
975
780
  }
976
781
  return t;
977
782
  }
978
- function Aa({ routeContext: t, match: n, children: r }) {
979
- let i = e.useContext(ta);
980
- return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(la.Provider, { value: t }, r);
783
+ function Kn({ routeContext: t, match: n, children: r }) {
784
+ let i = e.useContext(_n);
785
+ return i && i.static && i.staticContext && (n.route.errorElement || n.route.ErrorBoundary) && (i.staticContext._deepestRenderedBoundaryId = n.route.id), /* @__PURE__ */ e.createElement(Tn.Provider, { value: t }, r);
981
786
  }
982
- function ja(t, n = [], r) {
787
+ function qn(t, n = [], r) {
983
788
  let i = r?.state;
984
789
  if (t == null) {
985
790
  if (!i) return null;
@@ -990,7 +795,7 @@ function ja(t, n = [], r) {
990
795
  let a = t, o = i?.errors;
991
796
  if (o != null) {
992
797
  let e = a.findIndex((e) => e.route.id && o?.[e.route.id] !== void 0);
993
- Y(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
798
+ q(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(o).join(",")}`), a = a.slice(0, Math.min(a.length, e + 1));
994
799
  }
995
800
  let s = !1, c = -1;
996
801
  if (r && i) {
@@ -1010,16 +815,16 @@ function ja(t, n = [], r) {
1010
815
  l(e, {
1011
816
  location: i.location,
1012
817
  params: i.matches?.[0]?.params ?? {},
1013
- pattern: Ui(i.matches),
818
+ pattern: an(i.matches),
1014
819
  errorInfo: t
1015
820
  });
1016
821
  } : void 0;
1017
822
  return a.reduceRight((t, r, l) => {
1018
823
  let d, f = !1, p = null, m = null;
1019
- i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Ea, s && (c < 0 && l === 0 ? (Va("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
824
+ i && (d = o && r.route.id ? o[r.route.id] : void 0, p = r.route.errorElement || Hn, s && (c < 0 && l === 0 ? (rr("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), f = !0, m = null) : c === l && (f = !0, m = r.route.hydrateFallbackElement || null)));
1020
825
  let h = n.concat(a.slice(0, l + 1)), g = () => {
1021
826
  let n;
1022
- return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Aa, {
827
+ return n = d ? p : f ? m : r.route.Component ? /* @__PURE__ */ e.createElement(r.route.Component, null) : r.route.element ? r.route.element : t, /* @__PURE__ */ e.createElement(Kn, {
1023
828
  match: r,
1024
829
  routeContext: {
1025
830
  outlet: t,
@@ -1029,7 +834,7 @@ function ja(t, n = [], r) {
1029
834
  children: n
1030
835
  });
1031
836
  };
1032
- return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(Da, {
837
+ return i && (r.route.ErrorBoundary || r.route.errorElement || l === 0) ? /* @__PURE__ */ e.createElement(Un, {
1033
838
  location: i.location,
1034
839
  revalidation: i.revalidation,
1035
840
  component: p,
@@ -1044,50 +849,50 @@ function ja(t, n = [], r) {
1044
849
  }) : g();
1045
850
  }, null);
1046
851
  }
1047
- function Ma(e) {
852
+ function Jn(e) {
1048
853
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1049
854
  }
1050
- function Na(t) {
1051
- let n = e.useContext(ta);
1052
- return Y(n, Ma(t)), n;
855
+ function Yn(t) {
856
+ let n = e.useContext(_n);
857
+ return q(n, Jn(t)), n;
1053
858
  }
1054
- function Pa(t) {
1055
- let n = e.useContext(na);
1056
- return Y(n, Ma(t)), n;
859
+ function Xn(t) {
860
+ let n = e.useContext(vn);
861
+ return q(n, Jn(t)), n;
1057
862
  }
1058
- function Fa(t) {
1059
- let n = e.useContext(la);
1060
- return Y(n, Ma(t)), n;
863
+ function Zn(t) {
864
+ let n = e.useContext(Tn);
865
+ return q(n, Jn(t)), n;
1061
866
  }
1062
- function Ia(e) {
1063
- let t = Fa(e), n = t.matches[t.matches.length - 1];
1064
- return Y(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
867
+ function Qn(e) {
868
+ let t = Zn(e), n = t.matches[t.matches.length - 1];
869
+ return q(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1065
870
  }
1066
- function La() {
1067
- return Ia("useRouteId");
871
+ function $n() {
872
+ return Qn("useRouteId");
1068
873
  }
1069
- function Ra() {
1070
- let t = e.useContext(ua), n = Pa("useRouteError"), r = Ia("useRouteError");
874
+ function er() {
875
+ let t = e.useContext(En), n = Xn("useRouteError"), r = Qn("useRouteError");
1071
876
  return t === void 0 ? n.errors?.[r] : t;
1072
877
  }
1073
- function za() {
1074
- let { router: t } = Na("useNavigate"), n = Ia("useNavigate"), r = e.useRef(!1);
1075
- return ba(() => {
878
+ function tr() {
879
+ let { router: t } = Yn("useNavigate"), n = Qn("useNavigate"), r = e.useRef(!1);
880
+ return In(() => {
1076
881
  r.current = !0;
1077
882
  }), e.useCallback(async (e, i = {}) => {
1078
- oi(r.current, ya), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
883
+ J(r.current, Fn), r.current && (typeof e == "number" ? await t.navigate(e) : await t.navigate(e, {
1079
884
  fromRouteId: n,
1080
885
  ...i
1081
886
  }));
1082
887
  }, [t, n]);
1083
888
  }
1084
- var Ba = {};
1085
- function Va(e, t, n) {
1086
- !t && !Ba[e] && (Ba[e] = !0, oi(!1, n));
889
+ var nr = {};
890
+ function rr(e, t, n) {
891
+ !t && !nr[e] && (nr[e] = !0, J(!1, n));
1087
892
  }
1088
- e.memo(Ha);
1089
- function Ha({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
1090
- return wa(e, void 0, {
893
+ e.memo(ir);
894
+ function ir({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
895
+ return Bn(e, void 0, {
1091
896
  manifest: t,
1092
897
  state: r,
1093
898
  isStatic: i,
@@ -1096,60 +901,60 @@ function Ha({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
1096
901
  });
1097
902
  }
1098
903
  e.Component;
1099
- var Ua = "get", Wa = "application/x-www-form-urlencoded";
1100
- function Ga(e) {
904
+ var ar = "get", or = "application/x-www-form-urlencoded";
905
+ function sr(e) {
1101
906
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
1102
907
  }
1103
- function Ka(e) {
1104
- return Ga(e) && e.tagName.toLowerCase() === "button";
908
+ function cr(e) {
909
+ return sr(e) && e.tagName.toLowerCase() === "button";
1105
910
  }
1106
- function qa(e) {
1107
- return Ga(e) && e.tagName.toLowerCase() === "form";
911
+ function lr(e) {
912
+ return sr(e) && e.tagName.toLowerCase() === "form";
1108
913
  }
1109
- function Ja(e) {
1110
- return Ga(e) && e.tagName.toLowerCase() === "input";
914
+ function ur(e) {
915
+ return sr(e) && e.tagName.toLowerCase() === "input";
1111
916
  }
1112
- function Ya(e) {
917
+ function dr(e) {
1113
918
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey);
1114
919
  }
1115
- function Xa(e, t) {
1116
- return e.button === 0 && (!t || t === "_self") && !Ya(e);
920
+ function fr(e, t) {
921
+ return e.button === 0 && (!t || t === "_self") && !dr(e);
1117
922
  }
1118
- var Za = null;
1119
- function Qa() {
1120
- if (Za === null) try {
1121
- new FormData(document.createElement("form"), 0), Za = !1;
923
+ var pr = null;
924
+ function mr() {
925
+ if (pr === null) try {
926
+ new FormData(document.createElement("form"), 0), pr = !1;
1122
927
  } catch {
1123
- Za = !0;
928
+ pr = !0;
1124
929
  }
1125
- return Za;
930
+ return pr;
1126
931
  }
1127
- var $a = /* @__PURE__ */ new Set([
932
+ var hr = /* @__PURE__ */ new Set([
1128
933
  "application/x-www-form-urlencoded",
1129
934
  "multipart/form-data",
1130
935
  "text/plain"
1131
936
  ]);
1132
- function eo(e) {
1133
- return e != null && !$a.has(e) ? (oi(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wa}"`), null) : e;
937
+ function gr(e) {
938
+ return e != null && !hr.has(e) ? (J(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${or}"`), null) : e;
1134
939
  }
1135
- function to(e, t) {
940
+ function _r(e, t) {
1136
941
  let n, r, i, a, o;
1137
- if (qa(e)) {
942
+ if (lr(e)) {
1138
943
  let o = e.getAttribute("action");
1139
- r = o ? ki(o, t) : null, n = e.getAttribute("method") || Ua, i = eo(e.getAttribute("enctype")) || Wa, a = new FormData(e);
1140
- } else if (Ka(e) || Ja(e) && (e.type === "submit" || e.type === "image")) {
944
+ r = o ? Y(o, t) : null, n = e.getAttribute("method") || ar, i = gr(e.getAttribute("enctype")) || or, a = new FormData(e);
945
+ } else if (cr(e) || ur(e) && (e.type === "submit" || e.type === "image")) {
1141
946
  let o = e.form;
1142
947
  if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
1143
948
  let s = e.getAttribute("formaction") || o.getAttribute("action");
1144
- if (r = s ? ki(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Ua, i = eo(e.getAttribute("formenctype")) || eo(o.getAttribute("enctype")) || Wa, a = new FormData(o, e), !Qa()) {
949
+ if (r = s ? Y(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || ar, i = gr(e.getAttribute("formenctype")) || gr(o.getAttribute("enctype")) || or, a = new FormData(o, e), !mr()) {
1145
950
  let { name: t, type: n, value: r } = e;
1146
951
  if (n === "image") {
1147
952
  let e = t ? `${t}.` : "";
1148
953
  a.append(`${e}x`, "0"), a.append(`${e}y`, "0");
1149
954
  } else t && a.append(t, r);
1150
955
  }
1151
- } else if (Ga(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
1152
- else n = Ua, r = null, i = Wa, o = e;
956
+ } else if (sr(e)) throw Error("Cannot submit element that is not <form>, <button>, or <input type=\"submit|image\">");
957
+ else n = ar, r = null, i = or, o = e;
1153
958
  return a && i === "text/plain" && (o = a, a = void 0), {
1154
959
  action: r,
1155
960
  method: n.toLowerCase(),
@@ -1159,14 +964,14 @@ function to(e, t) {
1159
964
  };
1160
965
  }
1161
966
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
1162
- function no(e, t) {
967
+ function vr(e, t) {
1163
968
  if (e === !1 || e == null) throw Error(t);
1164
969
  }
1165
- function ro(e, t, n, r) {
970
+ function yr(e, t, n, r) {
1166
971
  let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
1167
- return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && ki(i.pathname, t) === "/" ? `${Li(t)}/_root.${r}` : `${Li(i.pathname)}.${r}`, i;
972
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && Y(i.pathname, t) === "/" ? `${Qt(t)}/_root.${r}` : `${Qt(i.pathname)}.${r}`, i;
1168
973
  }
1169
- async function io(e, t) {
974
+ async function br(e, t) {
1170
975
  if (e.id in t) return t[e.id];
1171
976
  try {
1172
977
  let n = await import(
@@ -1179,21 +984,21 @@ async function io(e, t) {
1179
984
  return console.error(`Error loading route module \`${e.module}\`, reloading page...`), console.error(t), window.__reactRouterContext && window.__reactRouterContext.isSpaMode, window.location.reload(), new Promise(() => {});
1180
985
  }
1181
986
  }
1182
- function ao(e) {
987
+ function xr(e) {
1183
988
  return e != null && typeof e.page == "string";
1184
989
  }
1185
- function oo(e) {
990
+ function Sr(e) {
1186
991
  return e == null ? !1 : e.href == null ? e.rel === "preload" && typeof e.imageSrcSet == "string" && typeof e.imageSizes == "string" : typeof e.rel == "string" && typeof e.href == "string";
1187
992
  }
1188
- async function so(e, t, n) {
1189
- return po((await Promise.all(e.map(async (e) => {
993
+ async function Cr(e, t, n) {
994
+ return Or((await Promise.all(e.map(async (e) => {
1190
995
  let r = t.routes[e.route.id];
1191
996
  if (r) {
1192
- let e = await io(r, n);
997
+ let e = await br(r, n);
1193
998
  return e.links ? e.links() : [];
1194
999
  }
1195
1000
  return [];
1196
- }))).flat(1).filter(oo).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
1001
+ }))).flat(1).filter(Sr).filter((e) => e.rel === "stylesheet" || e.rel === "preload").map((e) => e.rel === "stylesheet" ? {
1197
1002
  ...e,
1198
1003
  rel: "prefetch",
1199
1004
  as: "style"
@@ -1202,7 +1007,7 @@ async function so(e, t, n) {
1202
1007
  rel: "prefetch"
1203
1008
  }));
1204
1009
  }
1205
- function co(e, t, n, r, i, a) {
1010
+ function wr(e, t, n, r, i, a) {
1206
1011
  let o = (e, t) => !n[t] || e.route.id !== n[t].route.id, s = (e, t) => n[t].pathname !== e.pathname || n[t].route.path?.endsWith("*") && n[t].params["*"] !== e.params["*"];
1207
1012
  return a === "assets" ? t.filter((e, t) => o(e, t) || s(e, t)) : a === "data" ? t.filter((t, a) => {
1208
1013
  let c = r.routes[t.route.id];
@@ -1221,49 +1026,49 @@ function co(e, t, n, r, i, a) {
1221
1026
  return !0;
1222
1027
  }) : [];
1223
1028
  }
1224
- function lo(e, t, { includeHydrateFallback: n } = {}) {
1225
- return uo(e.map((e) => {
1029
+ function Tr(e, t, { includeHydrateFallback: n } = {}) {
1030
+ return Er(e.map((e) => {
1226
1031
  let r = t.routes[e.route.id];
1227
1032
  if (!r) return [];
1228
1033
  let i = [r.module];
1229
1034
  return r.clientActionModule && (i = i.concat(r.clientActionModule)), r.clientLoaderModule && (i = i.concat(r.clientLoaderModule)), n && r.hydrateFallbackModule && (i = i.concat(r.hydrateFallbackModule)), r.imports && (i = i.concat(r.imports)), i;
1230
1035
  }).flat(1));
1231
1036
  }
1232
- function uo(e) {
1037
+ function Er(e) {
1233
1038
  return [...new Set(e)];
1234
1039
  }
1235
- function fo(e) {
1040
+ function Dr(e) {
1236
1041
  let t = {}, n = Object.keys(e).sort();
1237
1042
  for (let r of n) t[r] = e[r];
1238
1043
  return t;
1239
1044
  }
1240
- function po(e, t) {
1045
+ function Or(e, t) {
1241
1046
  let n = /* @__PURE__ */ new Set(), r = new Set(t);
1242
1047
  return e.reduce((e, i) => {
1243
- if (t && !ao(i) && i.as === "script" && i.href && r.has(i.href)) return e;
1244
- let a = JSON.stringify(fo(i));
1048
+ if (t && !xr(i) && i.as === "script" && i.href && r.has(i.href)) return e;
1049
+ let a = JSON.stringify(Dr(i));
1245
1050
  return n.has(a) || (n.add(a), e.push({
1246
1051
  key: a,
1247
1052
  link: i
1248
1053
  })), e;
1249
1054
  }, []);
1250
1055
  }
1251
- function mo() {
1252
- let t = e.useContext(ta);
1253
- return no(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
1056
+ function kr() {
1057
+ let t = e.useContext(_n);
1058
+ return vr(t, "You must render this element inside a <DataRouterContext.Provider> element"), t;
1254
1059
  }
1255
- function ho() {
1256
- let t = e.useContext(na);
1257
- return no(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
1060
+ function Ar() {
1061
+ let t = e.useContext(vn);
1062
+ return vr(t, "You must render this element inside a <DataRouterStateContext.Provider> element"), t;
1258
1063
  }
1259
- var go = e.createContext(void 0);
1260
- go.displayName = "FrameworkContext";
1261
- function _o() {
1262
- let t = e.useContext(go);
1263
- return no(t, "You must render this element inside a <HydratedRouter> element"), t;
1064
+ var jr = e.createContext(void 0);
1065
+ jr.displayName = "FrameworkContext";
1066
+ function Mr() {
1067
+ let t = e.useContext(jr);
1068
+ return vr(t, "You must render this element inside a <HydratedRouter> element"), t;
1264
1069
  }
1265
- function vo(t, n) {
1266
- let r = e.useContext(go), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
1070
+ function Nr(t, n) {
1071
+ let r = e.useContext(jr), [i, a] = e.useState(!1), [o, s] = e.useState(!1), { onFocus: c, onBlur: l, onMouseEnter: u, onMouseLeave: d, onTouchStart: f } = n, p = e.useRef(null);
1267
1072
  e.useEffect(() => {
1268
1073
  if (t === "render" && s(!0), t === "viewport") {
1269
1074
  let e = new IntersectionObserver((e) => {
@@ -1294,11 +1099,11 @@ function vo(t, n) {
1294
1099
  o,
1295
1100
  p,
1296
1101
  {
1297
- onFocus: yo(c, m),
1298
- onBlur: yo(l, h),
1299
- onMouseEnter: yo(u, m),
1300
- onMouseLeave: yo(d, h),
1301
- onTouchStart: yo(f, m)
1102
+ onFocus: Pr(c, m),
1103
+ onBlur: Pr(l, h),
1104
+ onMouseEnter: Pr(u, m),
1105
+ onMouseLeave: Pr(d, h),
1106
+ onTouchStart: Pr(f, m)
1302
1107
  }
1303
1108
  ] : [
1304
1109
  o,
@@ -1310,13 +1115,13 @@ function vo(t, n) {
1310
1115
  {}
1311
1116
  ];
1312
1117
  }
1313
- function yo(e, t) {
1118
+ function Pr(e, t) {
1314
1119
  return (n) => {
1315
1120
  e && e(n), n.defaultPrevented || t(n);
1316
1121
  };
1317
1122
  }
1318
- function bo({ page: t, ...n }) {
1319
- let r = ia(), { nonce: i } = _o(), { router: a } = mo(), o = e.useMemo(() => li(a.routes, t, a.basename), [
1123
+ function Fr({ page: t, ...n }) {
1124
+ let r = bn(), { nonce: i } = Mr(), { router: a } = kr(), o = e.useMemo(() => Tt(a.routes, t, a.basename), [
1320
1125
  a.routes,
1321
1126
  t,
1322
1127
  a.basename
@@ -1324,21 +1129,21 @@ function bo({ page: t, ...n }) {
1324
1129
  return o ? (n.nonce == null && i && (n = {
1325
1130
  ...n,
1326
1131
  nonce: i
1327
- }), r ? /* @__PURE__ */ e.createElement(So, {
1132
+ }), r ? /* @__PURE__ */ e.createElement(Lr, {
1328
1133
  page: t,
1329
1134
  matches: o,
1330
1135
  ...n
1331
- }) : /* @__PURE__ */ e.createElement(Co, {
1136
+ }) : /* @__PURE__ */ e.createElement(Rr, {
1332
1137
  page: t,
1333
1138
  matches: o,
1334
1139
  ...n
1335
1140
  })) : null;
1336
1141
  }
1337
- function xo(t) {
1338
- let { manifest: n, routeModules: r } = _o(), [i, a] = e.useState([]);
1142
+ function Ir(t) {
1143
+ let { manifest: n, routeModules: r } = Mr(), [i, a] = e.useState([]);
1339
1144
  return e.useEffect(() => {
1340
1145
  let e = !1;
1341
- return so(t, n, r).then((t) => {
1146
+ return Cr(t, n, r).then((t) => {
1342
1147
  e || a(t);
1343
1148
  }), () => {
1344
1149
  e = !0;
@@ -1349,10 +1154,10 @@ function xo(t) {
1349
1154
  r
1350
1155
  ]), i;
1351
1156
  }
1352
- function So({ page: t, matches: n, ...r }) {
1353
- let i = va(), { future: a } = _o(), { basename: o } = mo(), s = e.useMemo(() => {
1157
+ function Lr({ page: t, matches: n, ...r }) {
1158
+ let i = Pn(), { future: a } = Mr(), { basename: o } = kr(), s = e.useMemo(() => {
1354
1159
  if (t === i.pathname + i.search + i.hash) return [];
1355
- let e = ro(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
1160
+ let e = yr(t, o, a.v8_trailingSlashAwareDataRequests, "rsc"), r = !1, s = [];
1356
1161
  for (let e of n) typeof e.route.shouldRevalidate == "function" ? r = !0 : s.push(e.route.id);
1357
1162
  return r && s.length > 0 && e.searchParams.set("_routes", s.join(",")), [e.pathname + e.search];
1358
1163
  }, [
@@ -1370,14 +1175,14 @@ function So({ page: t, matches: n, ...r }) {
1370
1175
  ...r
1371
1176
  })));
1372
1177
  }
1373
- function Co({ page: t, matches: n, ...r }) {
1374
- let i = va(), { future: a, manifest: o, routeModules: s } = _o(), { basename: c } = mo(), { loaderData: l, matches: u } = ho(), d = e.useMemo(() => co(t, n, u, o, i, "data"), [
1178
+ function Rr({ page: t, matches: n, ...r }) {
1179
+ let i = Pn(), { future: a, manifest: o, routeModules: s } = Mr(), { basename: c } = kr(), { loaderData: l, matches: u } = Ar(), d = e.useMemo(() => wr(t, n, u, o, i, "data"), [
1375
1180
  t,
1376
1181
  n,
1377
1182
  u,
1378
1183
  o,
1379
1184
  i
1380
- ]), f = e.useMemo(() => co(t, n, u, o, i, "assets"), [
1185
+ ]), f = e.useMemo(() => wr(t, n, u, o, i, "assets"), [
1381
1186
  t,
1382
1187
  n,
1383
1188
  u,
@@ -1390,7 +1195,7 @@ function Co({ page: t, matches: n, ...r }) {
1390
1195
  let n = o.routes[t.route.id];
1391
1196
  n && n.hasLoader && (!d.some((e) => e.route.id === t.route.id) && t.route.id in l && s[t.route.id]?.shouldRevalidate || n.hasClientLoader ? r = !0 : e.add(t.route.id));
1392
1197
  }), e.size === 0) return [];
1393
- let u = ro(t, c, a.v8_trailingSlashAwareDataRequests, "data");
1198
+ let u = yr(t, c, a.v8_trailingSlashAwareDataRequests, "data");
1394
1199
  return r && e.size > 0 && u.searchParams.set("_routes", n.filter((t) => e.has(t.route.id)).map((e) => e.route.id).join(",")), [u.pathname + u.search];
1395
1200
  }, [
1396
1201
  c,
@@ -1402,7 +1207,7 @@ function Co({ page: t, matches: n, ...r }) {
1402
1207
  n,
1403
1208
  t,
1404
1209
  s
1405
- ]), m = e.useMemo(() => lo(f, o), [f, o]), h = xo(f);
1210
+ ]), m = e.useMemo(() => Tr(f, o), [f, o]), h = Ir(f);
1406
1211
  return /* @__PURE__ */ e.createElement(e.Fragment, null, p.map((t) => /* @__PURE__ */ e.createElement("link", {
1407
1212
  key: t,
1408
1213
  rel: "prefetch",
@@ -1421,7 +1226,7 @@ function Co({ page: t, matches: n, ...r }) {
1421
1226
  crossOrigin: n.crossOrigin ?? r.crossOrigin
1422
1227
  })));
1423
1228
  }
1424
- function wo(...e) {
1229
+ function zr(...e) {
1425
1230
  return (t) => {
1426
1231
  e.forEach((e) => {
1427
1232
  typeof e == "function" ? e(t) : e != null && (e.current = t);
@@ -1429,19 +1234,19 @@ function wo(...e) {
1429
1234
  };
1430
1235
  }
1431
1236
  e.Component;
1432
- var To = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1237
+ var Br = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1433
1238
  try {
1434
- To && (window.__reactRouterVersion = "7.18.4");
1239
+ Br && (window.__reactRouterVersion = "7.18.4");
1435
1240
  } catch {}
1436
- var Eo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
1437
- let { basename: g, navigator: _, useTransitions: v } = e.useContext(Z), y = typeof u == "string" && ri.test(u), ee = Gi(u, g);
1241
+ var Vr = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r = "none", relative: i, reloadDocument: a, replace: o, mask: s, state: c, target: l, to: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) {
1242
+ let { basename: g, navigator: _, useTransitions: v } = e.useContext(Z), y = typeof u == "string" && bt.test(u), ee = sn(u, g);
1438
1243
  u = ee.to;
1439
- let b = ga(u, { relative: i }), x = va(), S = null;
1244
+ let b = Mn(u, { relative: i }), x = Pn(), S = null;
1440
1245
  if (s) {
1441
- let e = Fi(s, [], x.mask ? x.mask.pathname : "/", !0);
1246
+ let e = Xt(s, [], x.mask ? x.mask.pathname : "/", !0);
1442
1247
  g !== "/" && (e.pathname = e.pathname === "/" ? g : X([g, e.pathname])), S = _.createHref(e);
1443
1248
  }
1444
- let [C, w, T] = vo(r, m), E = jo(u, {
1249
+ let [C, w, T] = Nr(r, m), E = Kr(u, {
1445
1250
  replace: o,
1446
1251
  mask: s,
1447
1252
  state: c,
@@ -1460,16 +1265,16 @@ var Eo = e.forwardRef(function({ onClick: t, discover: n = "render", prefetch: r
1460
1265
  ...T,
1461
1266
  href: (te ? S : void 0) || ee.absoluteURL || b,
1462
1267
  onClick: te ? D : t,
1463
- ref: wo(h, w),
1268
+ ref: zr(h, w),
1464
1269
  target: l,
1465
1270
  "data-discover": !y && n === "render" ? "true" : void 0
1466
1271
  });
1467
- return C && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, O, /* @__PURE__ */ e.createElement(bo, { page: b })) : O;
1272
+ return C && !y ? /* @__PURE__ */ e.createElement(e.Fragment, null, O, /* @__PURE__ */ e.createElement(Fr, { page: b })) : O;
1468
1273
  });
1469
- Eo.displayName = "Link";
1470
- var Do = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
1471
- let d = Ca(o, { relative: l.relative }), f = va(), p = e.useContext(na), { navigator: m, basename: h } = e.useContext(Z), g = p != null && Io(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1472
- n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = ki(y, h) || y);
1274
+ Vr.displayName = "Link";
1275
+ var Hr = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n = !1, className: r = "", end: i = !1, style: a, to: o, viewTransition: s, children: c, ...l }, u) {
1276
+ let d = zn(o, { relative: l.relative }), f = Pn(), p = e.useContext(vn), { navigator: m, basename: h } = e.useContext(Z), g = p != null && Zr(d) && s === !0, _ = m.encodeLocation ? m.encodeLocation(d).pathname : d.pathname, v = f.pathname, y = p && p.navigation && p.navigation.location ? p.navigation.location.pathname : null;
1277
+ n || (v = v.toLowerCase(), y = y ? y.toLowerCase() : null, _ = _.toLowerCase()), y && h && (y = Y(y, h) || y);
1473
1278
  let ee = _ !== "/" && _.endsWith("/") ? _.length - 1 : _.length, b = v === _ || !i && v.startsWith(_) && v.charAt(ee) === "/", x = y != null && (y === _ || !i && y.startsWith(_) && y.charAt(_.length) === "/"), S = {
1474
1279
  isActive: b,
1475
1280
  isPending: x,
@@ -1482,7 +1287,7 @@ var Do = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
1482
1287
  g ? "transitioning" : null
1483
1288
  ].filter(Boolean).join(" ");
1484
1289
  let T = typeof a == "function" ? a(S) : a;
1485
- return /* @__PURE__ */ e.createElement(Eo, {
1290
+ return /* @__PURE__ */ e.createElement(Vr, {
1486
1291
  ...l,
1487
1292
  "aria-current": C,
1488
1293
  className: w,
@@ -1492,9 +1297,9 @@ var Do = e.forwardRef(function({ "aria-current": t = "page", caseSensitive: n =
1492
1297
  viewTransition: s
1493
1298
  }, typeof c == "function" ? c(S) : c);
1494
1299
  });
1495
- Do.displayName = "NavLink";
1496
- var Oo = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = Ua, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
1497
- let { useTransitions: g } = e.useContext(Z), _ = Po(), v = Fo(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", ee = typeof c == "string" && ri.test(c);
1300
+ Hr.displayName = "NavLink";
1301
+ var Ur = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, reloadDocument: i, replace: a, state: o, method: s = ar, action: c, onSubmit: l, relative: u, preventScrollReset: d, viewTransition: f, defaultShouldRevalidate: p, ...m }, h) => {
1302
+ let { useTransitions: g } = e.useContext(Z), _ = Yr(), v = Xr(c, { relative: u }), y = s.toLowerCase() === "get" ? "get" : "post", ee = typeof c == "string" && bt.test(c);
1498
1303
  return /* @__PURE__ */ e.createElement("form", {
1499
1304
  ref: h,
1500
1305
  method: y,
@@ -1519,20 +1324,20 @@ var Oo = e.forwardRef(({ discover: t = "render", fetcherKey: n, navigate: r, rel
1519
1324
  "data-discover": !ee && t === "render" ? "true" : void 0
1520
1325
  });
1521
1326
  });
1522
- Oo.displayName = "Form";
1523
- function ko(e) {
1327
+ Ur.displayName = "Form";
1328
+ function Wr(e) {
1524
1329
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1525
1330
  }
1526
- function Ao(t) {
1527
- let n = e.useContext(ta);
1528
- return Y(n, ko(t)), n;
1331
+ function Gr(t) {
1332
+ let n = e.useContext(_n);
1333
+ return q(n, Wr(t)), n;
1529
1334
  }
1530
- function jo(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
1531
- let d = xa(), f = va(), p = Ca(t, { relative: s });
1335
+ function Kr(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o, relative: s, viewTransition: c, defaultShouldRevalidate: l, useTransitions: u } = {}) {
1336
+ let d = Ln(), f = Pn(), p = zn(t, { relative: s });
1532
1337
  return e.useCallback((m) => {
1533
- if (Xa(m, n)) {
1338
+ if (fr(m, n)) {
1534
1339
  m.preventDefault();
1535
- let n = r === void 0 ? si(f) === si(p) : r, h = () => d(t, {
1340
+ let n = r === void 0 ? Ct(f) === Ct(p) : r, h = () => d(t, {
1536
1341
  replace: n,
1537
1342
  mask: i,
1538
1343
  state: a,
@@ -1559,13 +1364,13 @@ function jo(t, { target: n, replace: r, mask: i, state: a, preventScrollReset: o
1559
1364
  u
1560
1365
  ]);
1561
1366
  }
1562
- var Mo = 0, No = () => `__${String(++Mo)}__`;
1563
- function Po() {
1564
- let { router: t } = Ao("useSubmit"), { basename: n } = e.useContext(Z), r = La(), i = t.fetch, a = t.navigate;
1367
+ var qr = 0, Jr = () => `__${String(++qr)}__`;
1368
+ function Yr() {
1369
+ let { router: t } = Gr("useSubmit"), { basename: n } = e.useContext(Z), r = $n(), i = t.fetch, a = t.navigate;
1565
1370
  return e.useCallback(async (e, t = {}) => {
1566
- let { action: o, method: s, encType: c, formData: l, body: u } = to(e, n);
1371
+ let { action: o, method: s, encType: c, formData: l, body: u } = _r(e, n);
1567
1372
  if (t.navigate === !1) {
1568
- let e = t.fetcherKey || No();
1373
+ let e = t.fetcherKey || Jr();
1569
1374
  await i(e, r, t.action || o, {
1570
1375
  defaultShouldRevalidate: t.defaultShouldRevalidate,
1571
1376
  preventScrollReset: t.preventScrollReset,
@@ -1595,10 +1400,10 @@ function Po() {
1595
1400
  r
1596
1401
  ]);
1597
1402
  }
1598
- function Fo(t, { relative: n } = {}) {
1599
- let { basename: r } = e.useContext(Z), i = e.useContext(la);
1600
- Y(i, "useFormAction must be used inside a RouteContext");
1601
- let [a] = i.matches.slice(-1), o = { ...Ca(t || ".", { relative: n }) }, s = va();
1403
+ function Xr(t, { relative: n } = {}) {
1404
+ let { basename: r } = e.useContext(Z), i = e.useContext(Tn);
1405
+ q(i, "useFormAction must be used inside a RouteContext");
1406
+ let [a] = i.matches.slice(-1), o = { ...zn(t || ".", { relative: n }) }, s = Pn();
1602
1407
  if (t == null) {
1603
1408
  o.search = s.search;
1604
1409
  let e = new URLSearchParams(o.search), t = e.getAll("index");
@@ -1608,19 +1413,19 @@ function Fo(t, { relative: n } = {}) {
1608
1413
  o.search = n ? `?${n}` : "";
1609
1414
  }
1610
1415
  }
1611
- return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : X([r, o.pathname])), si(o);
1416
+ return (!t || t === ".") && a.route.index && (o.search = o.search ? o.search.replace(/^\?/, "?index&") : "?index"), r !== "/" && (o.pathname = o.pathname === "/" ? r : X([r, o.pathname])), Ct(o);
1612
1417
  }
1613
- function Io(t, { relative: n } = {}) {
1614
- let r = e.useContext(aa);
1615
- Y(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1616
- let { basename: i } = Ao("useViewTransitionState"), a = Ca(t, { relative: n });
1418
+ function Zr(t, { relative: n } = {}) {
1419
+ let r = e.useContext(xn);
1420
+ q(r != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1421
+ let { basename: i } = Gr("useViewTransitionState"), a = zn(t, { relative: n });
1617
1422
  if (!r.isTransitioning) return !1;
1618
- let o = ki(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = ki(r.nextLocation.pathname, i) || r.nextLocation.pathname;
1619
- return Ti(a.pathname, s) != null || Ti(a.pathname, o) != null;
1423
+ let o = Y(r.currentLocation.pathname, i) || r.currentLocation.pathname, s = Y(r.nextLocation.pathname, i) || r.nextLocation.pathname;
1424
+ return Vt(a.pathname, s) != null || Vt(a.pathname, o) != null;
1620
1425
  }
1621
1426
  // src/components/List/index.tsx
1622
- var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: m, isEnableSelectAll: g, onSelectAll: _, onDeselectAll: v, isAllSelected: x, parent: S, extraValues: C, extraHeaderText: w, onTourClick: T, onRowClick: te, onRowHover: O, onMouseOut: ne, buttonContent: re, noDataSubHeading: ie, isDatasourceList: ae, stateKey: k, onCreate: A, isDemoDatasource: j, isOpenInNewTab: oe, noDataProps: M }) => {
1623
- let se = xa(), [ce, N] = K(o), [le, ue] = K(""), [de, P] = K(""), fe = (e) => {
1427
+ var Qr = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: o = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: m, isEnableSelectAll: g, onSelectAll: _, onDeselectAll: v, isAllSelected: x, parent: S, extraValues: C, extraHeaderText: w, onTourClick: T, onRowClick: te, onRowHover: O, onMouseOut: ne, buttonContent: re, noDataSubHeading: ie, isDatasourceList: ae, stateKey: k, onCreate: A, isDemoDatasource: j, isOpenInNewTab: oe, noDataProps: M }) => {
1428
+ let se = Ln(), [ce, le] = H(o), [ue, de] = H(""), [fe, N] = H(""), pe = (e) => {
1624
1429
  if (S) switch (S) {
1625
1430
  case "DASHBOARD":
1626
1431
  case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${C?.workspaceId}${C?.dataMartId ? `&dmId=${C?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
@@ -1634,14 +1439,14 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1634
1439
  default: return null;
1635
1440
  }
1636
1441
  return null;
1637
- }, pe = () => {
1442
+ }, me = () => {
1638
1443
  if (k) switch (k) {
1639
- case "datasource": return /* @__PURE__ */ q("div", {
1444
+ case "datasource": return /* @__PURE__ */ U("div", {
1640
1445
  className: "dbn:flex dbn:justify-center dbn:items-center",
1641
1446
  style: { height: "270px" },
1642
- children: /* @__PURE__ */ J("div", {
1447
+ children: /* @__PURE__ */ W("div", {
1643
1448
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1644
- children: [/* @__PURE__ */ q(V, {
1449
+ children: [/* @__PURE__ */ U(P, {
1645
1450
  message: "No datasources connected.",
1646
1451
  subText: "Add a datasource to start building your dashboard.",
1647
1452
  height: "80px",
@@ -1650,14 +1455,14 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1650
1455
  subTextGap: "6px",
1651
1456
  msgVariant: "sec-heading-4",
1652
1457
  isNoDatasourceConnected: !0
1653
- }), /* @__PURE__ */ q(Do, {
1458
+ }), /* @__PURE__ */ U(Hr, {
1654
1459
  to: "/configuration",
1655
- children: /* @__PURE__ */ J("div", {
1656
- className: H.createBtn,
1657
- children: [/* @__PURE__ */ q(h, {
1460
+ children: /* @__PURE__ */ W("div", {
1461
+ className: R.createBtn,
1462
+ children: [/* @__PURE__ */ U(h, {
1658
1463
  size: "sm",
1659
1464
  name: "plus"
1660
- }), /* @__PURE__ */ q(E, {
1465
+ }), /* @__PURE__ */ U(E, {
1661
1466
  variant: "btn",
1662
1467
  children: "Datasource"
1663
1468
  })]
@@ -1665,12 +1470,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1665
1470
  })]
1666
1471
  })
1667
1472
  });
1668
- case "datamart": return /* @__PURE__ */ q("div", {
1473
+ case "datamart": return /* @__PURE__ */ U("div", {
1669
1474
  className: "dbn:flex dbn:justify-center dbn:items-center",
1670
1475
  style: { height: "270px" },
1671
- children: /* @__PURE__ */ J("div", {
1476
+ children: /* @__PURE__ */ W("div", {
1672
1477
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1673
- children: [/* @__PURE__ */ q(V, {
1478
+ children: [/* @__PURE__ */ U(P, {
1674
1479
  message: "No Data Marts yet.",
1675
1480
  subText: "Create your first Data Mart to get started.",
1676
1481
  height: "80px",
@@ -1679,25 +1484,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1679
1484
  subTextGap: "6px",
1680
1485
  msgVariant: "sec-heading-4",
1681
1486
  isNoDatamart: !0
1682
- }), /* @__PURE__ */ J("div", {
1683
- className: H.createBtn,
1487
+ }), /* @__PURE__ */ W("div", {
1488
+ className: R.createBtn,
1684
1489
  onClick: A,
1685
- children: [/* @__PURE__ */ q(h, {
1490
+ children: [/* @__PURE__ */ U(h, {
1686
1491
  size: "sm",
1687
1492
  name: "plus"
1688
- }), /* @__PURE__ */ q(E, {
1493
+ }), /* @__PURE__ */ U(E, {
1689
1494
  variant: "btn",
1690
1495
  children: "Data Mart"
1691
1496
  })]
1692
1497
  })]
1693
1498
  })
1694
1499
  });
1695
- case "dataapp": return /* @__PURE__ */ q("div", {
1500
+ case "dataapp": return /* @__PURE__ */ U("div", {
1696
1501
  className: "dbn:flex dbn:justify-center dbn:items-center",
1697
1502
  style: { height: "270px" },
1698
- children: /* @__PURE__ */ J("div", {
1503
+ children: /* @__PURE__ */ W("div", {
1699
1504
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1700
- children: [/* @__PURE__ */ q(V, {
1505
+ children: [/* @__PURE__ */ U(P, {
1701
1506
  message: "No Data Apps yet.",
1702
1507
  subText: "Create your first Data App to get started.",
1703
1508
  height: "80px",
@@ -1706,25 +1511,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1706
1511
  subTextGap: "6px",
1707
1512
  msgVariant: "sec-heading-4",
1708
1513
  isNoDatamart: !0
1709
- }), /* @__PURE__ */ J("div", {
1710
- className: H.createBtn,
1514
+ }), /* @__PURE__ */ W("div", {
1515
+ className: R.createBtn,
1711
1516
  onClick: A,
1712
- children: [/* @__PURE__ */ q(h, {
1517
+ children: [/* @__PURE__ */ U(h, {
1713
1518
  size: "sm",
1714
1519
  name: "plus"
1715
- }), /* @__PURE__ */ q(E, {
1520
+ }), /* @__PURE__ */ U(E, {
1716
1521
  variant: "btn",
1717
1522
  children: "Data App"
1718
1523
  })]
1719
1524
  })]
1720
1525
  })
1721
1526
  });
1722
- case "semantic": return /* @__PURE__ */ q("div", {
1527
+ case "semantic": return /* @__PURE__ */ U("div", {
1723
1528
  className: "dbn:flex dbn:justify-center dbn:items-center",
1724
1529
  style: { height: "270px" },
1725
- children: /* @__PURE__ */ q("div", {
1530
+ children: /* @__PURE__ */ U("div", {
1726
1531
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1727
- children: /* @__PURE__ */ q(V, {
1532
+ children: /* @__PURE__ */ U(P, {
1728
1533
  message: "No Semantic Layer yet.",
1729
1534
  subText: "Create a Data Mart to load your Semantic Layer.",
1730
1535
  height: "80px",
@@ -1736,12 +1541,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1736
1541
  })
1737
1542
  })
1738
1543
  });
1739
- case "dashboard": return /* @__PURE__ */ q("div", {
1544
+ case "dashboard": return /* @__PURE__ */ U("div", {
1740
1545
  className: "dbn:flex dbn:justify-center dbn:items-center",
1741
1546
  style: { height: j ? "200px" : "calc(100% - 50px)" },
1742
- children: /* @__PURE__ */ J("div", {
1547
+ children: /* @__PURE__ */ W("div", {
1743
1548
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1744
- children: [/* @__PURE__ */ q(V, {
1549
+ children: [/* @__PURE__ */ U(P, {
1745
1550
  message: "No dashboards here yet.",
1746
1551
  subText: "Create your first dashboard to get started.",
1747
1552
  height: j ? "0px" : "140px",
@@ -1750,25 +1555,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1750
1555
  subTextGap: "6px",
1751
1556
  msgVariant: "sec-heading-4",
1752
1557
  isNoDashboard: !0
1753
- }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1754
- className: H.createBtn,
1558
+ }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ W("div", {
1559
+ className: R.createBtn,
1755
1560
  onClick: A,
1756
- children: [/* @__PURE__ */ q(h, {
1561
+ children: [/* @__PURE__ */ U(h, {
1757
1562
  size: "sm",
1758
1563
  name: "plus"
1759
- }), /* @__PURE__ */ q(E, {
1564
+ }), /* @__PURE__ */ U(E, {
1760
1565
  variant: "btn",
1761
1566
  children: "Dashboard"
1762
1567
  })]
1763
1568
  })]
1764
1569
  })
1765
1570
  });
1766
- case "metric": return /* @__PURE__ */ q("div", {
1571
+ case "metric": return /* @__PURE__ */ U("div", {
1767
1572
  className: "dbn:flex dbn:justify-center dbn:items-center",
1768
1573
  style: { height: j ? "200px" : "calc(100% - 50px)" },
1769
- children: /* @__PURE__ */ J("div", {
1574
+ children: /* @__PURE__ */ W("div", {
1770
1575
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1771
- children: [/* @__PURE__ */ q(V, {
1576
+ children: [/* @__PURE__ */ U(P, {
1772
1577
  message: "No metrics here yet.",
1773
1578
  subText: "Start by adding a metric to build your dashboard.",
1774
1579
  height: j ? "0px" : "140px",
@@ -1777,25 +1582,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1777
1582
  subTextGap: "6px",
1778
1583
  msgVariant: "sec-heading-4",
1779
1584
  isNoMetric: !0
1780
- }), S && /* @__PURE__ */ J("div", {
1781
- className: H.createBtn,
1585
+ }), S && /* @__PURE__ */ W("div", {
1586
+ className: R.createBtn,
1782
1587
  onClick: A,
1783
- children: [/* @__PURE__ */ q(h, {
1588
+ children: [/* @__PURE__ */ U(h, {
1784
1589
  size: "sm",
1785
1590
  name: "plus"
1786
- }), /* @__PURE__ */ q(E, {
1591
+ }), /* @__PURE__ */ U(E, {
1787
1592
  variant: "btn",
1788
1593
  children: "Metric"
1789
1594
  })]
1790
1595
  })]
1791
1596
  })
1792
1597
  });
1793
- case "dashboard-search": return /* @__PURE__ */ q("div", {
1598
+ case "dashboard-search": return /* @__PURE__ */ U("div", {
1794
1599
  className: "dbn:flex dbn:justify-center dbn:items-center",
1795
1600
  style: { height: j ? "200px" : "calc(100% - 50px)" },
1796
- children: /* @__PURE__ */ J("div", {
1601
+ children: /* @__PURE__ */ W("div", {
1797
1602
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1798
- children: [/* @__PURE__ */ q(V, {
1603
+ children: [/* @__PURE__ */ U(P, {
1799
1604
  message: "No results found.",
1800
1605
  subText: "Try adjusting your search or create a new dashboard.",
1801
1606
  height: j ? "0px" : "140px",
@@ -1804,25 +1609,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1804
1609
  subTextGap: "6px",
1805
1610
  msgVariant: "sec-heading-4",
1806
1611
  isNoMatchedMetric: !0
1807
- }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1808
- className: H.createBtn,
1612
+ }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ W("div", {
1613
+ className: R.createBtn,
1809
1614
  onClick: A,
1810
- children: [/* @__PURE__ */ q(h, {
1615
+ children: [/* @__PURE__ */ U(h, {
1811
1616
  size: "sm",
1812
1617
  name: "plus"
1813
- }), /* @__PURE__ */ q(E, {
1618
+ }), /* @__PURE__ */ U(E, {
1814
1619
  variant: "btn",
1815
1620
  children: "Dashboard"
1816
1621
  })]
1817
1622
  })]
1818
1623
  })
1819
1624
  });
1820
- case "metric-search": return /* @__PURE__ */ q("div", {
1625
+ case "metric-search": return /* @__PURE__ */ U("div", {
1821
1626
  className: "dbn:flex dbn:justify-center dbn:items-center",
1822
1627
  style: { height: j ? "200px" : "calc(100% - 50px)" },
1823
- children: /* @__PURE__ */ J("div", {
1628
+ children: /* @__PURE__ */ W("div", {
1824
1629
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1825
- children: [/* @__PURE__ */ q(V, {
1630
+ children: [/* @__PURE__ */ U(P, {
1826
1631
  message: "No results found.",
1827
1632
  subText: "Try adjusting your search or create a new metric.",
1828
1633
  height: j ? "0px" : "140px",
@@ -1831,25 +1636,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1831
1636
  subTextGap: "6px",
1832
1637
  msgVariant: "sec-heading-4",
1833
1638
  isNoMatchedMetric: !0
1834
- }), S && /* @__PURE__ */ J("div", {
1835
- className: H.createBtn,
1639
+ }), S && /* @__PURE__ */ W("div", {
1640
+ className: R.createBtn,
1836
1641
  onClick: A,
1837
- children: [/* @__PURE__ */ q(h, {
1642
+ children: [/* @__PURE__ */ U(h, {
1838
1643
  size: "sm",
1839
1644
  name: "plus"
1840
- }), /* @__PURE__ */ q(E, {
1645
+ }), /* @__PURE__ */ U(E, {
1841
1646
  variant: "btn",
1842
1647
  children: "Metric"
1843
1648
  })]
1844
1649
  })]
1845
1650
  })
1846
1651
  });
1847
- case "datasource-search": return /* @__PURE__ */ q("div", {
1652
+ case "datasource-search": return /* @__PURE__ */ U("div", {
1848
1653
  className: "dbn:flex dbn:justify-center dbn:items-center",
1849
1654
  style: { height: "350px" },
1850
- children: /* @__PURE__ */ q("div", {
1655
+ children: /* @__PURE__ */ U("div", {
1851
1656
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1852
- children: /* @__PURE__ */ q(V, {
1657
+ children: /* @__PURE__ */ U(P, {
1853
1658
  message: "No results found.",
1854
1659
  subText: "Try adjusting your search or create a new datasource.",
1855
1660
  height: "140px",
@@ -1861,12 +1666,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1861
1666
  })
1862
1667
  })
1863
1668
  });
1864
- case "datamart-search": return /* @__PURE__ */ q("div", {
1669
+ case "datamart-search": return /* @__PURE__ */ U("div", {
1865
1670
  className: "dbn:flex dbn:justify-center dbn:items-center",
1866
1671
  style: { height: "350px" },
1867
- children: /* @__PURE__ */ q("div", {
1672
+ children: /* @__PURE__ */ U("div", {
1868
1673
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1869
- children: /* @__PURE__ */ q(V, {
1674
+ children: /* @__PURE__ */ U(P, {
1870
1675
  message: "No results found.",
1871
1676
  subText: "Try adjusting your search or create a new datamart.",
1872
1677
  height: "140px",
@@ -1878,12 +1683,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1878
1683
  })
1879
1684
  })
1880
1685
  });
1881
- case "dataapp-search": return /* @__PURE__ */ q("div", {
1686
+ case "dataapp-search": return /* @__PURE__ */ U("div", {
1882
1687
  className: "dbn:flex dbn:justify-center dbn:items-center",
1883
1688
  style: { height: "350px" },
1884
- children: /* @__PURE__ */ q("div", {
1689
+ children: /* @__PURE__ */ U("div", {
1885
1690
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1886
- children: /* @__PURE__ */ q(V, {
1691
+ children: /* @__PURE__ */ U(P, {
1887
1692
  message: "No results found.",
1888
1693
  subText: "Try adjusting your search or create a new dataapp.",
1889
1694
  height: "140px",
@@ -1895,12 +1700,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1895
1700
  })
1896
1701
  })
1897
1702
  });
1898
- case "semantic-search": return /* @__PURE__ */ q("div", {
1703
+ case "semantic-search": return /* @__PURE__ */ U("div", {
1899
1704
  className: "dbn:flex dbn:justify-center dbn:items-center",
1900
1705
  style: { height: "350px" },
1901
- children: /* @__PURE__ */ q("div", {
1706
+ children: /* @__PURE__ */ U("div", {
1902
1707
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1903
- children: /* @__PURE__ */ q(V, {
1708
+ children: /* @__PURE__ */ U(P, {
1904
1709
  message: "No results found.",
1905
1710
  subText: "Try adjusting your search or create a new Data Mart to load its Semantic Layer.",
1906
1711
  height: "140px",
@@ -1912,10 +1717,10 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1912
1717
  })
1913
1718
  })
1914
1719
  });
1915
- case "embeds-search": return /* @__PURE__ */ q("div", {
1720
+ case "embeds-search": return /* @__PURE__ */ U("div", {
1916
1721
  className: "dbn:flex dbn:justify-center dbn:items-center",
1917
1722
  style: { height: "250px" },
1918
- children: /* @__PURE__ */ q(V, {
1723
+ children: /* @__PURE__ */ U(P, {
1919
1724
  message: "No results found.",
1920
1725
  subText: "Try adjusting your search or add a new embed.",
1921
1726
  height: "100px",
@@ -1928,25 +1733,25 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1928
1733
  default: return null;
1929
1734
  }
1930
1735
  return null;
1931
- }, me = () => {
1736
+ }, he = () => {
1932
1737
  if (k) switch (k) {
1933
- case "datasource": return /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1738
+ case "datasource": return /* @__PURE__ */ W(Ge, { children: [/* @__PURE__ */ U("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ W("div", {
1934
1739
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
1935
1740
  children: [
1936
- /* @__PURE__ */ q(E, {
1741
+ /* @__PURE__ */ U(E, {
1937
1742
  variant: "heading-2",
1938
1743
  color: "primary",
1939
1744
  children: "FAQs"
1940
1745
  }),
1941
- /* @__PURE__ */ q(Vn, {
1746
+ /* @__PURE__ */ U(F, {
1942
1747
  header: "What is a Data Source?",
1943
- isOpen: de === "datasource",
1748
+ isOpen: fe === "datasource",
1944
1749
  setIsOpen: () => {
1945
- P((e) => e === "datasource" ? "" : "datasource");
1750
+ N((e) => e === "datasource" ? "" : "datasource");
1946
1751
  },
1947
- content: /* @__PURE__ */ q("div", {
1752
+ content: /* @__PURE__ */ U("div", {
1948
1753
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
1949
- children: /* @__PURE__ */ q(E, {
1754
+ children: /* @__PURE__ */ U(E, {
1950
1755
  variant: "faq-content",
1951
1756
  color: "light",
1952
1757
  children: "A connection point for integrating and monitoring all your data in one place."
@@ -1954,20 +1759,20 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1954
1759
  }),
1955
1760
  width: "100%"
1956
1761
  }, "datasource"),
1957
- /* @__PURE__ */ q(Vn, {
1762
+ /* @__PURE__ */ U(F, {
1958
1763
  header: "How to set up a Data Source?",
1959
- isOpen: de === "datasource-setup",
1764
+ isOpen: fe === "datasource-setup",
1960
1765
  setIsOpen: () => {
1961
- P((e) => e === "datasource-setup" ? "" : "datasource-setup");
1766
+ N((e) => e === "datasource-setup" ? "" : "datasource-setup");
1962
1767
  },
1963
- content: /* @__PURE__ */ J("div", {
1768
+ content: /* @__PURE__ */ W("div", {
1964
1769
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-end dbn:-top-3 dbn:relative",
1965
- children: [/* @__PURE__ */ J(E, {
1770
+ children: [/* @__PURE__ */ W(E, {
1966
1771
  variant: "faq-content",
1967
1772
  color: "light",
1968
1773
  children: [
1969
1774
  "To connect your Data follow these steps ",
1970
- /* @__PURE__ */ q("br", {}),
1775
+ /* @__PURE__ */ U("br", {}),
1971
1776
  "+ Datasource ",
1972
1777
  ">",
1973
1778
  " Select your Datasource ",
@@ -1978,12 +1783,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1978
1783
  ">",
1979
1784
  " Save"
1980
1785
  ]
1981
- }), /* @__PURE__ */ q(Do, {
1786
+ }), /* @__PURE__ */ U(Hr, {
1982
1787
  target: "_blank",
1983
1788
  to: "https://docs.usedatabrain.com/guides/onboarding-and-configuration/add-a-data-source",
1984
- children: /* @__PURE__ */ q(b, {
1789
+ children: /* @__PURE__ */ U(b, {
1985
1790
  variant: "popover",
1986
- leftIcon: /* @__PURE__ */ q(h, {
1791
+ leftIcon: /* @__PURE__ */ U(h, {
1987
1792
  name: "new-window",
1988
1793
  color: "cta"
1989
1794
  }),
@@ -1996,23 +1801,23 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1996
1801
  }, "datasource-setup")
1997
1802
  ]
1998
1803
  })] });
1999
- case "dataapp": return /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1804
+ case "dataapp": return /* @__PURE__ */ W(Ge, { children: [/* @__PURE__ */ U("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ W("div", {
2000
1805
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2001
1806
  children: [
2002
- /* @__PURE__ */ q(E, {
1807
+ /* @__PURE__ */ U(E, {
2003
1808
  variant: "heading-2",
2004
1809
  color: "primary",
2005
1810
  children: "FAQs"
2006
1811
  }),
2007
- /* @__PURE__ */ q(Vn, {
1812
+ /* @__PURE__ */ U(F, {
2008
1813
  header: "What are Data Apps?",
2009
- isOpen: de === "dataapp",
1814
+ isOpen: fe === "dataapp",
2010
1815
  setIsOpen: () => {
2011
- P((e) => e === "dataapp" ? "" : "dataapp");
1816
+ N((e) => e === "dataapp" ? "" : "dataapp");
2012
1817
  },
2013
- content: /* @__PURE__ */ q("div", {
1818
+ content: /* @__PURE__ */ U("div", {
2014
1819
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2015
- children: /* @__PURE__ */ q(E, {
1820
+ children: /* @__PURE__ */ U(E, {
2016
1821
  variant: "faq-content",
2017
1822
  color: "light",
2018
1823
  children: "Tools for embedding dashboards and metrics on your site, enabling centralized monitoring."
@@ -2020,20 +1825,20 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2020
1825
  }),
2021
1826
  width: "100%"
2022
1827
  }, "dataapp"),
2023
- /* @__PURE__ */ q(Vn, {
1828
+ /* @__PURE__ */ U(F, {
2024
1829
  header: "How to set up a Data App?",
2025
- isOpen: de === "dataapp-setup",
1830
+ isOpen: fe === "dataapp-setup",
2026
1831
  setIsOpen: () => {
2027
- P((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
1832
+ N((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
2028
1833
  },
2029
- content: /* @__PURE__ */ J("div", {
1834
+ content: /* @__PURE__ */ W("div", {
2030
1835
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2031
- children: [/* @__PURE__ */ J(E, {
1836
+ children: [/* @__PURE__ */ W(E, {
2032
1837
  variant: "faq-content",
2033
1838
  color: "light",
2034
1839
  children: [
2035
1840
  "To connect your data follow these steps ",
2036
- /* @__PURE__ */ q("br", {}),
1841
+ /* @__PURE__ */ U("br", {}),
2037
1842
  "+ Data App",
2038
1843
  " ",
2039
1844
  ">",
@@ -2046,12 +1851,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2046
1851
  ">",
2047
1852
  " Save"
2048
1853
  ]
2049
- }), /* @__PURE__ */ q(Do, {
1854
+ }), /* @__PURE__ */ U(Hr, {
2050
1855
  target: "_blank",
2051
1856
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-data-app",
2052
- children: /* @__PURE__ */ q(b, {
1857
+ children: /* @__PURE__ */ U(b, {
2053
1858
  variant: "popover",
2054
- leftIcon: /* @__PURE__ */ q(h, {
1859
+ leftIcon: /* @__PURE__ */ U(h, {
2055
1860
  name: "new-window",
2056
1861
  color: "cta"
2057
1862
  }),
@@ -2064,23 +1869,23 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2064
1869
  }, "dataapp-setup")
2065
1870
  ]
2066
1871
  })] });
2067
- case "datamart": return /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1872
+ case "datamart": return /* @__PURE__ */ W(Ge, { children: [/* @__PURE__ */ U("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ W("div", {
2068
1873
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2069
1874
  children: [
2070
- /* @__PURE__ */ q(E, {
1875
+ /* @__PURE__ */ U(E, {
2071
1876
  variant: "heading-2",
2072
1877
  color: "primary",
2073
1878
  children: "FAQs"
2074
1879
  }),
2075
- /* @__PURE__ */ q(Vn, {
1880
+ /* @__PURE__ */ U(F, {
2076
1881
  header: "What is a Data Mart?",
2077
- isOpen: de === "datamart",
1882
+ isOpen: fe === "datamart",
2078
1883
  setIsOpen: () => {
2079
- P((e) => e === "datamart" ? "" : "datamart");
1884
+ N((e) => e === "datamart" ? "" : "datamart");
2080
1885
  },
2081
- content: /* @__PURE__ */ q("div", {
1886
+ content: /* @__PURE__ */ U("div", {
2082
1887
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2083
- children: /* @__PURE__ */ q(E, {
1888
+ children: /* @__PURE__ */ U(E, {
2084
1889
  variant: "faq-content",
2085
1890
  color: "light",
2086
1891
  children: "A focused subset of data, optimized to speed up insights and streamline workflows."
@@ -2088,20 +1893,20 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2088
1893
  }),
2089
1894
  width: "100%"
2090
1895
  }, "datamart"),
2091
- /* @__PURE__ */ q(Vn, {
1896
+ /* @__PURE__ */ U(F, {
2092
1897
  header: "How to set up a Data Mart?",
2093
- isOpen: de === "datamart-setup",
1898
+ isOpen: fe === "datamart-setup",
2094
1899
  setIsOpen: () => {
2095
- P((e) => e === "datamart-setup" ? "" : "datamart-setup");
1900
+ N((e) => e === "datamart-setup" ? "" : "datamart-setup");
2096
1901
  },
2097
- content: /* @__PURE__ */ J("div", {
1902
+ content: /* @__PURE__ */ W("div", {
2098
1903
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2099
- children: [/* @__PURE__ */ J(E, {
1904
+ children: [/* @__PURE__ */ W(E, {
2100
1905
  variant: "faq-content",
2101
1906
  color: "light",
2102
1907
  children: [
2103
1908
  "To create your Data Mart follow these steps ",
2104
- /* @__PURE__ */ q("br", {}),
1909
+ /* @__PURE__ */ U("br", {}),
2105
1910
  "+ Data Mart ",
2106
1911
  ">",
2107
1912
  " Select your Datasource ",
@@ -2114,12 +1919,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2114
1919
  ">",
2115
1920
  " Save"
2116
1921
  ]
2117
- }), /* @__PURE__ */ q(Do, {
1922
+ }), /* @__PURE__ */ U(Hr, {
2118
1923
  target: "_blank",
2119
1924
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-datamart",
2120
- children: /* @__PURE__ */ q(b, {
1925
+ children: /* @__PURE__ */ U(b, {
2121
1926
  variant: "popover",
2122
- leftIcon: /* @__PURE__ */ q(h, {
1927
+ leftIcon: /* @__PURE__ */ U(h, {
2123
1928
  name: "new-window",
2124
1929
  color: "cta"
2125
1930
  }),
@@ -2132,23 +1937,23 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2132
1937
  }, "datamart-setup")
2133
1938
  ]
2134
1939
  })] });
2135
- case "semantic": return /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ q("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ J("div", {
1940
+ case "semantic": return /* @__PURE__ */ W(Ge, { children: [/* @__PURE__ */ U("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ W("div", {
2136
1941
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2137
1942
  children: [
2138
- /* @__PURE__ */ q(E, {
1943
+ /* @__PURE__ */ U(E, {
2139
1944
  variant: "heading-2",
2140
1945
  color: "primary",
2141
1946
  children: "FAQs"
2142
1947
  }),
2143
- /* @__PURE__ */ q(Vn, {
1948
+ /* @__PURE__ */ U(F, {
2144
1949
  header: "What is a Semantic Layer?",
2145
- isOpen: de === "semantic",
1950
+ isOpen: fe === "semantic",
2146
1951
  setIsOpen: () => {
2147
- P((e) => e === "semantic" ? "" : "semantic");
1952
+ N((e) => e === "semantic" ? "" : "semantic");
2148
1953
  },
2149
- content: /* @__PURE__ */ q("div", {
1954
+ content: /* @__PURE__ */ U("div", {
2150
1955
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2151
- children: /* @__PURE__ */ q(E, {
1956
+ children: /* @__PURE__ */ U(E, {
2152
1957
  variant: "faq-content",
2153
1958
  color: "light",
2154
1959
  children: "An enhancement layer for Data Marts that adds context and relationships for accurate, natural language queries."
@@ -2156,20 +1961,20 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2156
1961
  }),
2157
1962
  width: "100%"
2158
1963
  }, "semantic"),
2159
- /* @__PURE__ */ q(Vn, {
1964
+ /* @__PURE__ */ U(F, {
2160
1965
  header: "How to set up a Semantic Layer?",
2161
- isOpen: de === "semantic-setup",
1966
+ isOpen: fe === "semantic-setup",
2162
1967
  setIsOpen: () => {
2163
- P((e) => e === "semantic-setup" ? "" : "semantic-setup");
1968
+ N((e) => e === "semantic-setup" ? "" : "semantic-setup");
2164
1969
  },
2165
- content: /* @__PURE__ */ J("div", {
1970
+ content: /* @__PURE__ */ W("div", {
2166
1971
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2167
- children: [/* @__PURE__ */ J(E, {
1972
+ children: [/* @__PURE__ */ W(E, {
2168
1973
  variant: "faq-content",
2169
1974
  color: "light",
2170
1975
  children: [
2171
1976
  "To set up your Semantic Layer follow these steps ",
2172
- /* @__PURE__ */ q("br", {}),
1977
+ /* @__PURE__ */ U("br", {}),
2173
1978
  "Select your Data Mart ",
2174
1979
  ">",
2175
1980
  " Enter Table and Column Info",
@@ -2182,12 +1987,12 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2182
1987
  ">",
2183
1988
  " Save"
2184
1989
  ]
2185
- }), /* @__PURE__ */ q(Do, {
1990
+ }), /* @__PURE__ */ U(Hr, {
2186
1991
  target: "_blank",
2187
1992
  to: "https://docs.usedatabrain.com/guides/datasources/semantic-layer",
2188
- children: /* @__PURE__ */ q(b, {
1993
+ children: /* @__PURE__ */ U(b, {
2189
1994
  variant: "popover",
2190
- leftIcon: /* @__PURE__ */ q(h, {
1995
+ leftIcon: /* @__PURE__ */ U(h, {
2191
1996
  name: "new-window",
2192
1997
  color: "cta"
2193
1998
  }),
@@ -2203,70 +2008,70 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2203
2008
  default: return null;
2204
2009
  }
2205
2010
  return null;
2206
- }, he = G(null);
2207
- return U(() => {
2208
- p && f && he.current && he.current.scrollTo({
2011
+ }, ge = V(null);
2012
+ return z(() => {
2013
+ p && f && ge.current && ge.current.scrollTo({
2209
2014
  top: 0,
2210
2015
  behavior: "auto"
2211
2016
  });
2212
- }, [f]), /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ J("div", {
2213
- ref: he,
2214
- className: `${H[`container-${n}`]} ${a}`,
2017
+ }, [f]), /* @__PURE__ */ W(Ge, { children: [/* @__PURE__ */ W("div", {
2018
+ ref: ge,
2019
+ className: `${R[`container-${n}`]} ${a}`,
2215
2020
  children: [
2216
- c ? /* @__PURE__ */ q("div", {
2021
+ c ? /* @__PURE__ */ U("div", {
2217
2022
  className: "dbn:my-5 dbn:w-full dbn:flex dbn:items-center dbn:justify-end",
2218
- children: /* @__PURE__ */ q(y, {
2023
+ children: /* @__PURE__ */ U(y, {
2219
2024
  variant: "table",
2220
2025
  tableRows: 4
2221
2026
  })
2222
2027
  }) : null,
2223
- !c && t.length === 0 && !k ? /* @__PURE__ */ q("div", {
2224
- className: H.noData,
2225
- children: /* @__PURE__ */ q(V, {
2028
+ !c && t.length === 0 && !k ? /* @__PURE__ */ U("div", {
2029
+ className: R.noData,
2030
+ children: /* @__PURE__ */ U(P, {
2226
2031
  message: r,
2227
2032
  subText: ie,
2228
2033
  children: re,
2229
2034
  ...M
2230
2035
  })
2231
2036
  }) : null,
2232
- !c && (t.length || k) ? /* @__PURE__ */ J("table", {
2233
- className: `${H.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2234
- children: [/* @__PURE__ */ q("thead", {
2235
- className: `${H[`headers-${n}`]} ${t.length === 0 ? H[`headers-${n}-nodata`] : ""} dbn:z-50`,
2236
- children: /* @__PURE__ */ q("tr", { children: e?.map((t, n) => /* @__PURE__ */ J("th", {
2037
+ !c && (t.length || k) ? /* @__PURE__ */ W("table", {
2038
+ className: `${R.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2039
+ children: [/* @__PURE__ */ U("thead", {
2040
+ className: `${R[`headers-${n}`]} ${t.length === 0 ? R[`headers-${n}-nodata`] : ""} dbn:z-50`,
2041
+ children: /* @__PURE__ */ U("tr", { children: e?.map((t, n) => /* @__PURE__ */ W("th", {
2237
2042
  colSpan: t.colSpan,
2238
- className: `${w ? H.headerCol2 : H.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2239
- children: [/* @__PURE__ */ J("span", {
2043
+ className: `${w ? R.headerCol2 : R.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2044
+ children: [/* @__PURE__ */ W("span", {
2240
2045
  className: `${g && n === 0 ? "dbn:flex dbn:gap-2" : ""}`,
2241
- children: [n === 0 && g ? /* @__PURE__ */ q(ee, {
2046
+ children: [n === 0 && g ? /* @__PURE__ */ U(ee, {
2242
2047
  id: `${t?.name?.replaceAll(" ", "-")?.toLowerCase()}-header-checkbox`,
2243
2048
  onChange: (e) => {
2244
2049
  e.target.checked ? _?.() : v?.();
2245
2050
  },
2246
2051
  checked: x
2247
- }) : null, /* @__PURE__ */ q(E, {
2052
+ }) : null, /* @__PURE__ */ U(E, {
2248
2053
  variant: "sec-heading-6",
2249
2054
  color: "gray",
2250
2055
  children: t.headerCell || t.name
2251
2056
  })]
2252
- }), n === e.length - 1 && w ? /* @__PURE__ */ q(E, {
2057
+ }), n === e.length - 1 && w ? /* @__PURE__ */ U(E, {
2253
2058
  variant: "body-text-3",
2254
2059
  color: "cta",
2255
2060
  children: w
2256
2061
  }) : null]
2257
2062
  }, t.name)) })
2258
- }), /* @__PURE__ */ q("tbody", {
2259
- className: H.body,
2260
- children: (m ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ q("tr", {
2063
+ }), /* @__PURE__ */ U("tbody", {
2064
+ className: R.body,
2065
+ children: (m ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ U("tr", {
2261
2066
  "data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
2262
- className: `${H[`row-${n}`]} ${S || T || O || te ? "dbn:cursor-pointer" : ""}`,
2067
+ className: `${R[`row-${n}`]} ${S || T || O || te ? "dbn:cursor-pointer" : ""}`,
2263
2068
  onClick: (e) => {
2264
2069
  T && T(t), te && te(t);
2265
- let n = fe(t);
2070
+ let n = pe(t);
2266
2071
  n && ((e.ctrlKey || e.metaKey) && oe ? window.open(n, "_blank") : k ? se(n, { state: { [k]: t } }) : se(n));
2267
2072
  },
2268
2073
  onContextMenu: (e) => {
2269
- let n = fe(t);
2074
+ let n = pe(t);
2270
2075
  n && oe && (e.preventDefault(), window.open(n, "_blank"));
2271
2076
  },
2272
2077
  "data-test-title": "table-rows",
@@ -2274,60 +2079,60 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2274
2079
  onMouseOut: () => ne?.(),
2275
2080
  children: e?.map((r, i) => {
2276
2081
  let a = r.columnKey === "invitationToken" && !!t[r.columnKey];
2277
- return /* @__PURE__ */ q("td", {
2082
+ return /* @__PURE__ */ U("td", {
2278
2083
  colSpan: r.colSpan,
2279
- className: `${H.col} ${H[`col-${n}`]}`,
2280
- children: /* @__PURE__ */ q("div", {
2281
- className: H[`col-${n}-cell`],
2282
- children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ J("div", {
2084
+ className: `${R.col} ${R[`col-${n}`]}`,
2085
+ children: /* @__PURE__ */ U("div", {
2086
+ className: R[`col-${n}-cell`],
2087
+ children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ W("div", {
2283
2088
  className: "dbn:flex dbn:gap-2",
2284
- children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(s, {
2089
+ children: [(t?.type || t?.dbName) && /* @__PURE__ */ U(s, {
2285
2090
  name: r.columnKey?.toLowerCase() === "type" ? t.type?.toString() : t.dbName?.toString()?.toLowerCase(),
2286
2091
  width: 20
2287
2092
  }), r.columnKey?.toLowerCase() === "name" && (t.name === null || t.name === void 0) && t.dbName?.toString()?.toLowerCase() === "awss3" ? "Demo Datasource" : (r.columnCell ? r.columnCell(t) : t[r.columnKey]) || "-"]
2288
- }) : /* @__PURE__ */ J("div", {
2093
+ }) : /* @__PURE__ */ W("div", {
2289
2094
  className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
2290
- children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ q(E, {
2095
+ children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ W(Ge, { children: [/* @__PURE__ */ U(E, {
2291
2096
  variant: "body-text-2",
2292
2097
  className: "dbn:text-xs",
2293
2098
  children: "XXXX"
2294
- }), /* @__PURE__ */ q(b, {
2099
+ }), /* @__PURE__ */ U(b, {
2295
2100
  "data-testid": "invitation-copy",
2296
2101
  variant: "tertiary",
2297
2102
  type: "button",
2298
2103
  onClick: () => {
2299
- navigator.clipboard.writeText(t[r.columnKey]), ue(t[r.columnKey]), setTimeout(() => ue(""), 1700);
2104
+ navigator.clipboard.writeText(t[r.columnKey]), de(t[r.columnKey]), setTimeout(() => de(""), 1700);
2300
2105
  },
2301
- leftIcon: /* @__PURE__ */ q(h, {
2106
+ leftIcon: /* @__PURE__ */ U(h, {
2302
2107
  name: "copy",
2303
2108
  size: "xs"
2304
2109
  }),
2305
2110
  className: "dbn:p-0 dbn:pl-1 dbn:text-xs dbn:gap-1",
2306
- children: le === t[r.columnKey] ? "Copied" : "Copy"
2307
- })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ J(D, {
2308
- buttonContent: /* @__PURE__ */ q(b, {
2111
+ children: ue === t[r.columnKey] ? "Copied" : "Copy"
2112
+ })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ W(D, {
2113
+ buttonContent: /* @__PURE__ */ U(b, {
2309
2114
  variant: "popover",
2310
- leftIcon: /* @__PURE__ */ q(h, { name: "kebab-menu-vertical" })
2115
+ leftIcon: /* @__PURE__ */ U(h, { name: "kebab-menu-vertical" })
2311
2116
  }),
2312
2117
  menuWidth: "120px",
2313
2118
  position: "bottom",
2314
- children: [/* @__PURE__ */ q(b, {
2119
+ children: [/* @__PURE__ */ U(b, {
2315
2120
  variant: "popover",
2316
2121
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2317
2122
  onClick: () => d?.({
2318
2123
  action: "edit",
2319
2124
  id: t.id
2320
2125
  }),
2321
- leftIcon: /* @__PURE__ */ q(h, { name: "pencil-simple" }),
2126
+ leftIcon: /* @__PURE__ */ U(h, { name: "pencil-simple" }),
2322
2127
  children: "Edit"
2323
- }), /* @__PURE__ */ q(b, {
2128
+ }), /* @__PURE__ */ U(b, {
2324
2129
  variant: "popover",
2325
2130
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2326
2131
  onClick: () => d?.({
2327
2132
  action: "delete",
2328
2133
  id: t.id
2329
2134
  }),
2330
- leftIcon: /* @__PURE__ */ q(h, { name: "delete" }),
2135
+ leftIcon: /* @__PURE__ */ U(h, { name: "delete" }),
2331
2136
  children: "Delete"
2332
2137
  })]
2333
2138
  }) : null]
@@ -2338,18 +2143,18 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2338
2143
  }, `row-${r}`))
2339
2144
  })]
2340
2145
  }) : null,
2341
- !c && t.length === 0 && k ? /* @__PURE__ */ q(dr, { children: pe() }) : null,
2342
- t.length > ce && !m ? /* @__PURE__ */ q("div", {
2343
- className: H.loadMore,
2344
- children: /* @__PURE__ */ J(b, {
2146
+ !c && t.length === 0 && k ? /* @__PURE__ */ U(Ge, { children: me() }) : null,
2147
+ t.length > ce && !m ? /* @__PURE__ */ U("div", {
2148
+ className: R.loadMore,
2149
+ children: /* @__PURE__ */ W(b, {
2345
2150
  type: "button",
2346
2151
  variant: "tertiary",
2347
- onClick: () => N((e) => e + o),
2348
- children: [/* @__PURE__ */ q(h, { name: "arrow-down" }), /* @__PURE__ */ q("span", { children: i })]
2152
+ onClick: () => le((e) => e + o),
2153
+ children: [/* @__PURE__ */ U(h, { name: "arrow-down" }), /* @__PURE__ */ U("span", { children: i })]
2349
2154
  })
2350
2155
  }) : null
2351
2156
  ]
2352
- }), t.length === 0 && k && /* @__PURE__ */ q(dr, { children: me() })] });
2157
+ }), t.length === 0 && k && /* @__PURE__ */ U(Ge, { children: he() })] });
2353
2158
  }, Q = {
2354
2159
  "table-loader-container": "_table-loader-container_o1h6j_8",
2355
2160
  tableData: "_tableData_o1h6j_21",
@@ -2422,27 +2227,27 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2422
2227
  "col-view-primary-cell": "_col-view-primary-cell_o1h6j_269",
2423
2228
  link: "_link_o1h6j_273",
2424
2229
  textLineBreak: "_textLineBreak_o1h6j_277"
2425
- }, Ro = qn(), zo = (e, t, n, r) => {
2426
- let i = Wn(e.getValue(t), n);
2230
+ }, $r = L(), ei = (e, t, n, r) => {
2231
+ let i = Oe(e.getValue(t), n);
2427
2232
  return r({ itemRank: i }), i.passed;
2428
- }, Bo = (e, t, n) => {
2233
+ }, ti = (e, t, n) => {
2429
2234
  let r = e.getValue(t);
2430
2235
  return String(r)?.toLowerCase().includes(String(n)?.toLowerCase());
2431
- }, Vo = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, Ho = ({ data: e, isLoading: t, error: n, tableSettings: r, className: i = "", onColumnSizingChange: a, onChartReady: o, isExternalChart: s, paginationInfo: c = {
2236
+ }, ni = (e) => e?.textWrap?.isEnable ? 48 : e?.lineGap === "small" ? 36 : e?.lineGap === "large" ? 44 : 40, ri = ({ data: e, isLoading: t, error: n, tableSettings: r, className: i = "", onColumnSizingChange: a, onChartReady: o, isExternalChart: s, paginationInfo: c = {
2432
2237
  limit: 10,
2433
2238
  offset: 0,
2434
2239
  totalRecords: 10
2435
2240
  }, externalGlobalFilter: l, setExternalGlobalFilter: u, headerAlignment: d = "center", events: p, language: m, translationDictionary: h, isMetricCard: g, isDisableChartActions: _ }) => {
2436
- let [v, ee] = K([]), [b, S] = K(","), C = (e) => {
2241
+ let [v, ee] = H([]), [b, S] = H(","), C = (e) => {
2437
2242
  let t = {};
2438
2243
  return Object.keys(e).sort().forEach((n) => {
2439
2244
  t[n] = e[n];
2440
2245
  }), t;
2441
- }, w = W(() => r?.isSortAlphabetically ? e?.map((e) => C(e)) : e, [e, r?.isSortAlphabetically]);
2442
- U(() => {
2246
+ }, w = B(() => r?.isSortAlphabetically ? e?.map((e) => C(e)) : e, [e, r?.isSortAlphabetically]);
2247
+ z(() => {
2443
2248
  r?.badgeSeparator ? S(r.badgeSeparator) : S(",");
2444
2249
  }, [r?.badgeSeparator]);
2445
- let T = W(() => {
2250
+ let T = B(() => {
2446
2251
  let e = "2.5rem";
2447
2252
  return r?.textWrap?.isEnable ? e = "auto" : r?.lineGap === "small" ? e = "36px" : r?.lineGap === "medium" ? e = "40px" : r?.lineGap === "large" && (e = "44px"), {
2448
2253
  width: "100%",
@@ -2466,11 +2271,11 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2466
2271
  };
2467
2272
  if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
2468
2273
  if (n && Object.keys(n).includes(e)) return { color: n[e] };
2469
- }, [te, O] = K(r?.columnSizing), ne = G(null), re = W(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? x(w, r?.isEnableTranspose) : w, [
2274
+ }, [te, O] = H(r?.columnSizing), ne = V(null), re = B(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? x(w, r?.isEnableTranspose) : w, [
2470
2275
  e,
2471
2276
  w,
2472
2277
  r?.isEnableTranspose
2473
- ]), ie = W(() => !m || !h ? re : re?.map((e) => {
2278
+ ]), ie = B(() => !m || !h ? re : re?.map((e) => {
2474
2279
  let t = {};
2475
2280
  for (let n in e) {
2476
2281
  let r = f({
@@ -2489,9 +2294,9 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2489
2294
  re,
2490
2295
  m,
2491
2296
  h
2492
- ]), ae = W(() => ie, [ie]), k = W(() => {
2297
+ ]), ae = B(() => ie, [ie]), k = B(() => {
2493
2298
  let e = Object.keys(ie[0] || {});
2494
- return r?.showColumnFilter && (e = v), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => Ro.accessor(e, {
2299
+ return r?.showColumnFilter && (e = v), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => $r.accessor(e, {
2495
2300
  header: () => e,
2496
2301
  cell: (t) => {
2497
2302
  let n = t.row.original[e];
@@ -2499,48 +2304,48 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2499
2304
  },
2500
2305
  enableResizing: !0
2501
2306
  }));
2502
- }, [ie[0], v]), A = Xn({
2307
+ }, [ie[0], v]), A = Me({
2503
2308
  data: ae,
2504
2309
  columns: k,
2505
2310
  state: { ...te ? { columnSizing: te } : {} },
2506
- filterFns: { fuzzy: zo },
2507
- globalFilterFn: Bo,
2508
- getCoreRowModel: Kn(),
2509
- getFilteredRowModel: Yn(),
2311
+ filterFns: { fuzzy: ei },
2312
+ globalFilterFn: ti,
2313
+ getCoreRowModel: I(),
2314
+ getFilteredRowModel: je(),
2510
2315
  debugTable: !1,
2511
2316
  enableColumnResizing: !0,
2512
2317
  columnResizeMode: "onChange",
2513
2318
  onColumnSizingChange: O
2514
- }), j = A.getSortedRowModel().rows, oe = Gn({
2319
+ }), j = A.getSortedRowModel().rows, oe = ke({
2515
2320
  count: j.length,
2516
2321
  getScrollElement: () => ne.current,
2517
- estimateSize: () => Vo(r),
2322
+ estimateSize: () => ni(r),
2518
2323
  overscan: 12
2519
- }), M = oe.getVirtualItems(), se = M.length ? M[0].start : 0, ce = M.length ? oe.getTotalSize() - M[M.length - 1].end : 0, N = A.getVisibleLeafColumns().length || 1;
2520
- U(() => {
2324
+ }), M = oe.getVirtualItems(), se = M.length ? M[0].start : 0, ce = M.length ? oe.getTotalSize() - M[M.length - 1].end : 0, le = A.getVisibleLeafColumns().length || 1;
2325
+ z(() => {
2521
2326
  A.getIsSomeColumnsVisible() && o?.();
2522
2327
  }, [A.getIsSomeColumnsVisible()]);
2523
- let le = (e, t) => t?.includes(e) ? Q.badge : "";
2524
- return U(() => {
2328
+ let ue = (e, t) => t?.includes(e) ? Q.badge : "";
2329
+ return z(() => {
2525
2330
  r?.isEnableColumnFilter || A.resetColumnFilters();
2526
- }, [A, r?.isEnableColumnFilter]), U(() => {
2331
+ }, [A, r?.isEnableColumnFilter]), z(() => {
2527
2332
  ee(Object.keys(ie[0] || {}));
2528
- }, [ie[0]]), /* @__PURE__ */ q("div", {
2333
+ }, [ie[0]]), /* @__PURE__ */ U("div", {
2529
2334
  className: `${Q.container} ${i}`,
2530
- children: /* @__PURE__ */ q("div", {
2335
+ children: /* @__PURE__ */ U("div", {
2531
2336
  className: Q.previewTable,
2532
- children: /* @__PURE__ */ J("div", {
2337
+ children: /* @__PURE__ */ W("div", {
2533
2338
  className: `${Q.tableData} ${Q.noBorder}`,
2534
2339
  children: [
2535
- t && !e?.length ? /* @__PURE__ */ q(y, { variant: "table" }) : null,
2536
- !!w?.length && /* @__PURE__ */ q(Zn, {
2340
+ t && !e?.length ? /* @__PURE__ */ U(y, { variant: "table" }) : null,
2341
+ !!w?.length && /* @__PURE__ */ U(Ne, {
2537
2342
  style: { height: "100%" },
2538
2343
  scrollableNodeProps: { ref: ne },
2539
- children: /* @__PURE__ */ q("table", {
2344
+ children: /* @__PURE__ */ U("table", {
2540
2345
  className: Q.table,
2541
- children: /* @__PURE__ */ J("tbody", { children: [
2542
- se > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2543
- colSpan: N,
2346
+ children: /* @__PURE__ */ W("tbody", { children: [
2347
+ se > 0 ? /* @__PURE__ */ U("tr", { children: /* @__PURE__ */ U("td", {
2348
+ colSpan: le,
2544
2349
  style: {
2545
2350
  height: `${se}px`,
2546
2351
  padding: 0,
@@ -2549,7 +2354,7 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2549
2354
  }) }) : null,
2550
2355
  M?.map((e) => {
2551
2356
  let t = j[e.index];
2552
- return t ? /* @__PURE__ */ q("tr", {
2357
+ return t ? /* @__PURE__ */ U("tr", {
2553
2358
  ref: oe.measureElement,
2554
2359
  "data-index": e.index,
2555
2360
  "data-testid": `table-row-${t.id}`,
@@ -2562,8 +2367,8 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2562
2367
  },
2563
2368
  children: t.getVisibleCells()?.map((e, t) => {
2564
2369
  let n = "";
2565
- le(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(b) && n?.toString()?.split(b));
2566
- let i = r?.textWrap?.isEnable && r?.textWrap?.columns?.includes(e.column.id), a = () => r?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null) ? "" : r?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null) ? "-" : Jn(e.column.columnDef.cell, e.getContext()), o = g && !_ && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = er({
2370
+ ue(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(b) && n?.toString()?.split(b));
2371
+ let i = r?.textWrap?.isEnable && r?.textWrap?.columns?.includes(e.column.id), a = () => r?.replaceNullValuesWithEmpty && (e?.getValue() === "null" || e?.getValue() === null) ? "" : r?.replaceNullValues && (e?.getValue() === "null" || e?.getValue() === null) ? "-" : Ae(e.column.columnDef.cell, e.getContext()), o = g && !_ && r?.chartAction?.isEnableCustomRedirection ? r?.chartAction?.clickValues?.find((t) => t.text === e?.getValue()?.toString()) : null, s = o?.link, c = o?.isOpenInNewTab, l = Ie({
2567
2372
  rules: r?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
2568
2373
  value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue()
2569
2374
  }), u = l?.prefix || "", d = l?.suffix || "", f = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? D(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, m = "", h = (f?.isApplyBadgeColor || !(f?.isApplyBgColor || !f?.badgeColor)) && !!Object.keys(l)?.length;
@@ -2573,29 +2378,29 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2573
2378
  let { backgroundColor: e, ...t } = l;
2574
2379
  v = t;
2575
2380
  }
2576
- return /* @__PURE__ */ J("td", {
2381
+ return /* @__PURE__ */ W("td", {
2577
2382
  "data-testid": e.id,
2578
2383
  className: `${Q.tableRowCol}`,
2579
2384
  title: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : `${e.getValue()}`,
2580
2385
  onClick: (e) => {
2581
- p?.click && o && (e.preventDefault(), $n(s, c));
2386
+ p?.click && o && (e.preventDefault(), Fe(s, c));
2582
2387
  },
2583
2388
  onContextMenu: (t) => {
2584
- p?.contextmenu && o ? (t.preventDefault(), $n(s, c)) : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2389
+ p?.contextmenu && o ? (t.preventDefault(), Fe(s, c)) : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2585
2390
  },
2586
2391
  style: {
2587
2392
  position: "relative",
2588
2393
  width: `${e.column.getSize() / A.getTotalSize() * 100}%`
2589
2394
  },
2590
2395
  children: [
2591
- !!r && /* @__PURE__ */ q("div", {
2396
+ !!r && /* @__PURE__ */ U("div", {
2592
2397
  style: {
2593
2398
  ...T,
2594
2399
  ...v
2595
2400
  },
2596
- children: a() === "" ? /* @__PURE__ */ q(dr, {}) : /* @__PURE__ */ J("span", {
2401
+ children: a() === "" ? /* @__PURE__ */ U(Ge, {}) : /* @__PURE__ */ W("span", {
2597
2402
  "data-testid": "cell-content",
2598
- className: `${i ? Q.wrapText : Q.truncateText} ${le(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2403
+ className: `${i ? Q.wrapText : Q.truncateText} ${ue(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2599
2404
  style: {
2600
2405
  fontFamily: r?.contentFont,
2601
2406
  color: r?.contentColor || "var(--dbn-typography-colorPrimary, #222c3a)",
@@ -2610,15 +2415,15 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2610
2415
  ]
2611
2416
  })
2612
2417
  }),
2613
- !r && /* @__PURE__ */ q("div", {
2418
+ !r && /* @__PURE__ */ U("div", {
2614
2419
  style: {
2615
2420
  textAlign: "center",
2616
2421
  width: "100%"
2617
2422
  },
2618
2423
  className: Q.truncateText,
2619
- children: Jn(e.column.columnDef.cell, e.getContext())
2424
+ children: Ae(e.column.columnDef.cell, e.getContext())
2620
2425
  }),
2621
- e.column.getCanResize() ? /* @__PURE__ */ q("div", {
2426
+ e.column.getCanResize() ? /* @__PURE__ */ U("div", {
2622
2427
  className: "resizer",
2623
2428
  style: {
2624
2429
  position: "absolute",
@@ -2651,8 +2456,8 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2651
2456
  })
2652
2457
  }, t.id) : null;
2653
2458
  }),
2654
- ce > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2655
- colSpan: N,
2459
+ ce > 0 ? /* @__PURE__ */ U("tr", { children: /* @__PURE__ */ U("td", {
2460
+ colSpan: le,
2656
2461
  style: {
2657
2462
  height: `${ce}px`,
2658
2463
  padding: 0,
@@ -2662,40 +2467,40 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2662
2467
  ] })
2663
2468
  })
2664
2469
  }),
2665
- !e?.length && !t && !n.length && /* @__PURE__ */ J("div", {
2470
+ !e?.length && !t && !n.length && /* @__PURE__ */ W("div", {
2666
2471
  className: Q.noData,
2667
2472
  children: [
2668
- /* @__PURE__ */ q("img", {
2473
+ /* @__PURE__ */ U("img", {
2669
2474
  src: "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20500%20500'%3e%3cdefs%3e%3cstyle%3e.cls-1{stroke:%23182c60;}.cls-1,.cls-2{fill:none;strokeLinecap:round;strokeLinejoin:round;}.cls-3{fill:%235865f6;opacity:.1;}.cls-4{fill:%23f2f3f4;}.cls-5{fill:%23c1c7c9;}.cls-6{fill:%23182c60;}.cls-2{stroke:%235865f6;strokeWidth:4px;}%3c/style%3e%3c/defs%3e%3cpath%20class='cls-3'%20d='m271.11%20179.72-.09%2020.33s.19%204.05.38%204.52.75%201.88%201.41%202.35%201.27.99%202.21%201.32%201.18.61%202.64.61%2022.68.05%2022.68.05z'/%3e%3cline%20class='cls-1'%20x1='203.71'%20y1='208.01'%20x2='234.92'%20y2='208.01'/%3e%3cline%20class='cls-2'%20x1='203.71'%20y1='197.34'%20x2='248.04'%20y2='197.34'/%3e%3crect%20class='cls-1'%20x='202.3'%20y='230.36'%20width='89.95'%20height='62.67'%20rx='3.21'%20ry='3.21'/%3e%3cg%3e%3cpath%20class='cls-1'%20d='M300.49%20208.99v99.99c0%203.55-2.88%206.43-6.43%206.43h-93.23c-3.55%200-6.43-2.88-6.43-6.43V185.91c0-3.55%202.88-6.43%206.43-6.43h70.29'/%3e%3cpath%20class='cls-1'%20d='M271.15%20179.48v22.91c0%203.55%202.88%206.43%206.43%206.43h22.91s-29.34-29.48-29.34-29.34Z'/%3e%3c/g%3e%3cpath%20class='cls-1'%20d='M305.49%20213.99v99.99c0%203.55-2.88%206.43-6.43%206.43h-93.23c-2.95%200-5.43-1.98-6.19-4.69'/%3e%3cpath%20class='cls-1'%20d='M305.49%20213.82s-2.13-2.14-5.24-5.26'/%3e%3cpath%20class='cls-6'%20d='M199.54%20315.53s.28%201.04.66%201.6.56%201.08%201.32%201.69%202.12%201.46%202.4%201.51%202.73.24%203.86.19%2020.38-.09%2020.38-.09h23.67s17.04-.05%2017.04-.05l17.69.14%2012.75-.14s1.98-.19%202.78-.71%201.65-1.04%202.12-1.84%201.22-1.84%201.27-2.35.14-14.4.14-14.4l-.19-11.62.09-11.95v-22.12s-.05-18.12-.05-18.12v-23.34s-5.04-5.22-5.04-5.22l.05%2025.6.14%2028.99-.05%2013.84-.05%209.74v10.4s0%209.79%200%209.79c0%200%20.19%203.06-.47%204.09s-1.36%202.35-2.21%202.96-2.07%201.18-4.71%201.22-14.87.05-14.87.05l-21.79-.05h-16.05l-25.88.05-15.01.14Z'/%3e%3cline%20class='cls-1'%20x1='202.63'%20y1='239.03'%20x2='292.01'%20y2='239.03'/%3e%3cline%20class='cls-1'%20x1='219.5'%20y1='230.61'%20x2='219.79'%20y2='293.09'/%3e%3cline%20class='cls-1'%20x1='237.76'%20y1='230.53'%20x2='238.05'%20y2='293'/%3e%3cline%20class='cls-1'%20x1='256.02'%20y1='230.45'%20x2='256.31'%20y2='292.92'/%3e%3cline%20class='cls-1'%20x1='274.28'%20y1='230.36'%20x2='274.57'%20y2='292.84'/%3e%3cg%3e%3crect%20class='cls-5'%20x='206.17'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='224.23'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='242.69'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='260.62'%20y='232.79'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-5'%20x='278.83'%20y='232.79'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='244.08'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='244.08'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='252.55'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='252.55'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='261.02'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='261.02'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='269.49'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='269.49'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='277.96'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='277.96'%20width='8.47'%20height='4'/%3e%3c/g%3e%3cg%3e%3crect%20class='cls-4'%20x='206.17'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='224.23'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='242.69'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='260.62'%20y='286.43'%20width='8.47'%20height='4'/%3e%3crect%20class='cls-4'%20x='278.83'%20y='286.43'%20width='8.47'%20height='4'/%3e%3c/g%3e%3c/svg%3e",
2670
2475
  alt: "no-data",
2671
2476
  width: "400px",
2672
2477
  height: "400px"
2673
2478
  }),
2674
- /* @__PURE__ */ q(E, {
2479
+ /* @__PURE__ */ U(E, {
2675
2480
  variant: "heading-3",
2676
2481
  children: "No data tables queried"
2677
2482
  }),
2678
- /* @__PURE__ */ q(E, {
2483
+ /* @__PURE__ */ U(E, {
2679
2484
  variant: "body-text-2",
2680
2485
  children: "Type your query and input fields beside to generate results and explore data"
2681
2486
  })
2682
2487
  ]
2683
2488
  }),
2684
- n && /* @__PURE__ */ q("div", {
2489
+ n && /* @__PURE__ */ U("div", {
2685
2490
  className: Q.error,
2686
- children: /* @__PURE__ */ q(E, { children: n })
2491
+ children: /* @__PURE__ */ U(E, { children: n })
2687
2492
  })
2688
2493
  ]
2689
2494
  })
2690
2495
  })
2691
2496
  });
2692
- }, Uo = /* @__PURE__ */ a(((e) => {
2497
+ }, ii = /* @__PURE__ */ a(((e) => {
2693
2498
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0;
2694
2499
  var t = 1;
2695
2500
  e.default = function() {
2696
2501
  return `${t++}`;
2697
2502
  };
2698
- })), Wo = /* @__PURE__ */ a(((e) => {
2503
+ })), ai = /* @__PURE__ */ a(((e) => {
2699
2504
  Object.defineProperty(e, "__esModule", { value: !0 }), e.default = void 0, e.default = function(e) {
2700
2505
  var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 60, n = null;
2701
2506
  return function() {
@@ -2705,11 +2510,11 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2705
2510
  }, t);
2706
2511
  };
2707
2512
  };
2708
- })), Go = /* @__PURE__ */ a(((e) => {
2513
+ })), oi = /* @__PURE__ */ a(((e) => {
2709
2514
  Object.defineProperty(e, "__esModule", { value: !0 }), e.SizeSensorId = e.SensorTabIndex = e.SensorClassName = void 0, e.SizeSensorId = "size-sensor-id", e.SensorClassName = "size-sensor-object", e.SensorTabIndex = "-1";
2710
- })), Ko = /* @__PURE__ */ a(((e) => {
2515
+ })), si = /* @__PURE__ */ a(((e) => {
2711
2516
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createSensor = void 0;
2712
- var t = r(Wo()), n = Go();
2517
+ var t = r(ai()), n = oi();
2713
2518
  function r(e) {
2714
2519
  return e && e.__esModule ? e : { default: e };
2715
2520
  }
@@ -2739,9 +2544,9 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2739
2544
  }
2740
2545
  };
2741
2546
  };
2742
- })), qo = /* @__PURE__ */ a(((e) => {
2547
+ })), ci = /* @__PURE__ */ a(((e) => {
2743
2548
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createSensor = void 0;
2744
- var t = Go(), n = r(Wo());
2549
+ var t = oi(), n = r(ai());
2745
2550
  function r(e) {
2746
2551
  return e && e.__esModule ? e : { default: e };
2747
2552
  }
@@ -2768,13 +2573,13 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2768
2573
  }
2769
2574
  };
2770
2575
  };
2771
- })), Jo = /* @__PURE__ */ a(((e) => {
2576
+ })), li = /* @__PURE__ */ a(((e) => {
2772
2577
  Object.defineProperty(e, "__esModule", { value: !0 }), e.createSensor = void 0;
2773
- var t = Ko(), n = qo();
2578
+ var t = si(), n = ci();
2774
2579
  e.createSensor = typeof ResizeObserver < "u" ? n.createSensor : t.createSensor;
2775
- })), Yo = /* @__PURE__ */ a(((e) => {
2580
+ })), ui = /* @__PURE__ */ a(((e) => {
2776
2581
  Object.defineProperty(e, "__esModule", { value: !0 }), e.removeSensor = e.getSensor = e.Sensors = void 0;
2777
- var t = i(Uo()), n = Jo(), r = Go();
2582
+ var t = i(ii()), n = li(), r = oi();
2778
2583
  function i(e) {
2779
2584
  return e && e.__esModule ? e : { default: e };
2780
2585
  }
@@ -2795,9 +2600,9 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2795
2600
  var t = e.element.getAttribute(r.SizeSensorId);
2796
2601
  e.destroy(), o(t);
2797
2602
  };
2798
- })), Xo = /* @__PURE__ */ a(((e) => {
2603
+ })), di = /* @__PURE__ */ a(((e) => {
2799
2604
  Object.defineProperty(e, "__esModule", { value: !0 }), e.ver = e.clear = e.bind = void 0;
2800
- var t = Yo();
2605
+ var t = ui();
2801
2606
  e.bind = function(e, n) {
2802
2607
  var r = (0, t.getSensor)(e);
2803
2608
  return r.bind(n), function() {
@@ -2807,7 +2612,7 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2807
2612
  var n = (0, t.getSensor)(e);
2808
2613
  (0, t.removeSensor)(n);
2809
2614
  }, e.ver = "1.0.3";
2810
- })), Zo = /* @__PURE__ */ a(((e) => {
2615
+ })), fi = /* @__PURE__ */ a(((e) => {
2811
2616
  Object.defineProperty(e, "__esModule", { value: !0 }), e.pick = void 0;
2812
2617
  function t(e, t) {
2813
2618
  var n = {};
@@ -2816,19 +2621,19 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2816
2621
  }), n;
2817
2622
  }
2818
2623
  e.pick = t;
2819
- })), Qo = /* @__PURE__ */ a(((e) => {
2624
+ })), pi = /* @__PURE__ */ a(((e) => {
2820
2625
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isFunction = void 0;
2821
2626
  function t(e) {
2822
2627
  return typeof e == "function";
2823
2628
  }
2824
2629
  e.isFunction = t;
2825
- })), $o = /* @__PURE__ */ a(((e) => {
2630
+ })), mi = /* @__PURE__ */ a(((e) => {
2826
2631
  Object.defineProperty(e, "__esModule", { value: !0 }), e.isString = void 0;
2827
2632
  function t(e) {
2828
2633
  return typeof e == "string";
2829
2634
  }
2830
2635
  e.isString = t;
2831
- })), es = /* @__PURE__ */ a(((e, t) => {
2636
+ })), hi = /* @__PURE__ */ a(((e, t) => {
2832
2637
  t.exports = function e(t, n) {
2833
2638
  if (t === n) return !0;
2834
2639
  if (t && n && typeof t == "object" && typeof n == "object") {
@@ -2852,11 +2657,11 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2852
2657
  }
2853
2658
  return t !== t && n !== n;
2854
2659
  };
2855
- })), ts = /* @__PURE__ */ a(((e) => {
2856
- Object.defineProperty(e, "__esModule", { value: !0 }), e.isEqual = void 0, e.isEqual = (Un(), t(Hn)).__importDefault(es()).default;
2857
- })), ns = /* @__PURE__ */ r((/* @__PURE__ */ a(((e) => {
2660
+ })), gi = /* @__PURE__ */ a(((e) => {
2661
+ Object.defineProperty(e, "__esModule", { value: !0 }), e.isEqual = void 0, e.isEqual = (De(), t(Ee)).__importDefault(hi()).default;
2662
+ })), _i = /* @__PURE__ */ r((/* @__PURE__ */ a(((e) => {
2858
2663
  Object.defineProperty(e, "__esModule", { value: !0 });
2859
- var r = (Un(), t(Hn)), i = r.__importStar(n("react")), a = Xo(), o = Zo(), s = Qo(), c = $o(), l = ts();
2664
+ var r = (De(), t(Ee)), i = r.__importStar(n("react")), a = di(), o = fi(), s = pi(), c = mi(), l = gi();
2860
2665
  e.default = function(e) {
2861
2666
  r.__extends(t, e);
2862
2667
  function t(t) {
@@ -2994,7 +2799,7 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2994
2799
  }, s));
2995
2800
  }, t;
2996
2801
  }(i.PureComponent);
2997
- })))()), rs = /* @__PURE__ */ new Set([
2802
+ })))()), vi = /* @__PURE__ */ new Set([
2998
2803
  "serif",
2999
2804
  "sans-serif",
3000
2805
  "monospace",
@@ -3008,72 +2813,72 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3008
2813
  "inherit",
3009
2814
  "initial",
3010
2815
  "unset"
3011
- ]), is = 5, as = 1200, os = (e) => {
2816
+ ]), yi = 5, bi = 1200, xi = (e) => {
3012
2817
  let t = /* @__PURE__ */ new Set(), n = (e, r) => {
3013
- if (!(!e || typeof e != "object" || r > is)) {
2818
+ if (!(!e || typeof e != "object" || r > yi)) {
3014
2819
  if (Array.isArray(e)) for (let t of e) n(t, r + 1);
3015
2820
  else for (let [i, a] of Object.entries(e)) if (i !== "data" && i !== "dataset") {
3016
2821
  if (i === "fontFamily" && typeof a == "string") for (let e of a.split(",")) {
3017
2822
  let n = e.trim().replace(/^['"]|['"]$/g, "");
3018
- n && !rs.has(n.toLowerCase()) && t.add(n);
2823
+ n && !vi.has(n.toLowerCase()) && t.add(n);
3019
2824
  }
3020
2825
  else n(a, r + 1);
3021
2826
  }
3022
2827
  }
3023
2828
  };
3024
2829
  return n(e, 0), [...t];
3025
- }, ss = /* @__PURE__ */ new Map(), cs = (e) => {
3026
- let t = ss.get(e);
2830
+ }, Si = /* @__PURE__ */ new Map(), Ci = (e) => {
2831
+ let t = Si.get(e);
3027
2832
  if (t) return t;
3028
2833
  let n = typeof document > "u" ? void 0 : document.fonts, r = typeof n?.load == "function" ? Promise.all([n.load(`12px "${e}"`), n.load(`600 12px "${e}"`)]).catch(() => void 0) : Promise.resolve();
3029
- return ss.set(e, r), r;
3030
- }, ls = (e) => {
3031
- let t = os(e);
2834
+ return Si.set(e, r), r;
2835
+ }, wi = (e) => {
2836
+ let t = xi(e);
3032
2837
  return t.length ? new Promise((e) => {
3033
- let n = setTimeout(e, as);
3034
- Promise.all(t.map(cs)).then(() => {
2838
+ let n = setTimeout(e, bi);
2839
+ Promise.all(t.map(Ci)).then(() => {
3035
2840
  clearTimeout(n), e();
3036
2841
  });
3037
2842
  }) : Promise.resolve();
3038
- }, us = class extends ns.default {
2843
+ }, Ti = class extends _i.default {
3039
2844
  unmounted = !1;
3040
2845
  constructor(e) {
3041
2846
  super({
3042
2847
  ...e,
3043
- echarts: Er
2848
+ echarts: Se
3044
2849
  });
3045
2850
  }
3046
2851
  async initEchartsInstance() {
3047
- await ls(this.props.option);
2852
+ await wi(this.props.option);
3048
2853
  let e = this.echarts.init(this.ele, this.props.theme, this.props.opts);
3049
2854
  return this.unmounted && setTimeout(() => {
3050
- let e = nr(this.ele);
3051
- this.echarts.dispose(this.ele), rr(e);
2855
+ let e = Ce(this.ele);
2856
+ this.echarts.dispose(this.ele), we(e);
3052
2857
  }, 0), e;
3053
2858
  }
3054
2859
  componentDidUpdate(e) {
3055
2860
  if (!this.getEchartsInstance()) return;
3056
- let t = nr(this.ele);
2861
+ let t = Ce(this.ele);
3057
2862
  try {
3058
2863
  super.componentDidUpdate(e);
3059
2864
  } finally {
3060
- let e = new Set(nr(this.ele));
3061
- rr(t.filter((t) => !e.has(t)));
2865
+ let e = new Set(Ce(this.ele));
2866
+ we(t.filter((t) => !e.has(t)));
3062
2867
  }
3063
2868
  }
3064
2869
  componentWillUnmount() {
3065
2870
  this.unmounted = !0;
3066
- let e = nr(this.ele);
2871
+ let e = Ce(this.ele);
3067
2872
  try {
3068
2873
  super.componentWillUnmount();
3069
2874
  } finally {
3070
- rr(e);
2875
+ we(e);
3071
2876
  }
3072
2877
  }
3073
- }, ds = sr(async () => (await import("./echarts-CAoS6aE4.mjs"), { default: us })), fs = or((e, t) => /* @__PURE__ */ q(S, {
2878
+ }, Ei = Ve(async () => (await import("./echarts-DSP9q-oP.mjs"), { default: Ti })), Di = Be((e, t) => /* @__PURE__ */ U(S, {
3074
2879
  surface: "chart",
3075
- fallback: /* @__PURE__ */ q(tr, {}),
3076
- children: /* @__PURE__ */ q(ds, {
2880
+ fallback: /* @__PURE__ */ U(Le, {}),
2881
+ children: /* @__PURE__ */ U(Ei, {
3077
2882
  ...e,
3078
2883
  ref: t
3079
2884
  })
@@ -3099,30 +2904,30 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3099
2904
  chartDiv: "_chartDiv_1tjfq_72",
3100
2905
  chartUnavailable: "_chartUnavailable_1tjfq_76",
3101
2906
  noChart: "_noChart_1tjfq_80"
3102
- }, ps = ({ chartType: e, text: t = "This chart is no longer available.", subText: n }) => {
2907
+ }, Oi = ({ chartType: e, text: t = "This chart is no longer available.", subText: n }) => {
3103
2908
  let r = C.flatMap((e) => e.value)?.find((t) => t.name?.toLowerCase() === e)?.disabledIcon;
3104
- return /* @__PURE__ */ J("div", {
2909
+ return /* @__PURE__ */ W("div", {
3105
2910
  className: $.chartUnavailable,
3106
- children: [/* @__PURE__ */ q("img", {
2911
+ children: [/* @__PURE__ */ U("img", {
3107
2912
  src: r,
3108
2913
  alt: "chart-not-available",
3109
2914
  className: $.noChart
3110
- }), /* @__PURE__ */ J("div", {
2915
+ }), /* @__PURE__ */ W("div", {
3111
2916
  className: "dbn:flex dbn:flex-col dbn:gap-1 dbn:items-center",
3112
- children: [/* @__PURE__ */ q(E, {
2917
+ children: [/* @__PURE__ */ U(E, {
3113
2918
  variant: "sec-heading-4",
3114
2919
  color: "primary",
3115
2920
  children: t
3116
- }), /* @__PURE__ */ q(E, {
2921
+ }), /* @__PURE__ */ U(E, {
3117
2922
  variant: "body-text-3",
3118
2923
  color: "gray",
3119
2924
  children: n
3120
2925
  })]
3121
2926
  })]
3122
2927
  });
3123
- }, ms = sr(async () => ({ default: (await import("./Table-V9qwq_A-.mjs").then((e) => e.n)).Table })), hs = sr(async () => ({ default: (await import("./HorizontalStackTable-E91Iuyzf.mjs")).HorizontalStackTable })), gs = sr(async () => ({ default: (await import("./PivotTable-D-YRi9kI.mjs")).default })), _s = sr(async () => ({ default: (await import("./PivotTableV2-D0GqqiiM.mjs")).PivotTableV2 })), vs = sr(() => import("./PivotTableV3-BdO_u5WS.mjs")), ys = ({ children: e, surface: t }) => /* @__PURE__ */ q(S, {
2928
+ }, ki = Ve(async () => ({ default: (await import("./Table-CDvOpuYe.mjs").then((e) => e.n)).Table })), Ai = Ve(async () => ({ default: (await import("./HorizontalStackTable-B_4q2iBG.mjs")).HorizontalStackTable })), ji = Ve(async () => ({ default: (await import("./PivotTable-D-YRi9kI.mjs")).default })), Mi = Ve(async () => ({ default: (await import("./PivotTableV2-BGeyDx2h.mjs")).PivotTableV2 })), Ni = Ve(() => import("./PivotTableV3-q9Gs3DAq.mjs")), Pi = ({ children: e, surface: t }) => /* @__PURE__ */ U(S, {
3124
2929
  surface: t,
3125
- fallback: /* @__PURE__ */ J("div", {
2930
+ fallback: /* @__PURE__ */ W("div", {
3126
2931
  className: "dbn:flex dbn:h-full dbn:min-h-32 dbn:items-center dbn:justify-center",
3127
2932
  "aria-label": `Loading ${t}`,
3128
2933
  role: "status",
@@ -3133,24 +2938,24 @@ var Lo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3133
2938
  ]
3134
2939
  }),
3135
2940
  children: e
3136
- }), bs = (e) => /* @__PURE__ */ q(ys, {
2941
+ }), Fi = (e) => /* @__PURE__ */ U(Pi, {
3137
2942
  surface: "table",
3138
- children: /* @__PURE__ */ q(ms, { ...e })
3139
- }), xs = (e) => /* @__PURE__ */ q(ys, {
2943
+ children: /* @__PURE__ */ U(ki, { ...e })
2944
+ }), Ii = (e) => /* @__PURE__ */ U(Pi, {
3140
2945
  surface: "stack table",
3141
- children: /* @__PURE__ */ q(hs, { ...e })
3142
- }), Ss = (e) => /* @__PURE__ */ q(ys, {
2946
+ children: /* @__PURE__ */ U(Ai, { ...e })
2947
+ }), Li = (e) => /* @__PURE__ */ U(Pi, {
3143
2948
  surface: "pivot table",
3144
- children: /* @__PURE__ */ q(gs, { ...e })
3145
- }), Cs = (e) => /* @__PURE__ */ q(ys, {
2949
+ children: /* @__PURE__ */ U(ji, { ...e })
2950
+ }), Ri = (e) => /* @__PURE__ */ U(Pi, {
3146
2951
  surface: "pivot table",
3147
- children: /* @__PURE__ */ q(_s, { ...e })
3148
- }), ws = (e) => /* @__PURE__ */ q(ys, {
2952
+ children: /* @__PURE__ */ U(Mi, { ...e })
2953
+ }), zi = (e) => /* @__PURE__ */ U(Pi, {
3149
2954
  surface: "pivot table",
3150
- children: /* @__PURE__ */ q(vs, { ...e })
2955
+ children: /* @__PURE__ */ U(Ni, { ...e })
3151
2956
  });
3152
2957
  // src/components/Chart/singleValueDelta.ts
3153
- function Ts(e) {
2958
+ function Bi(e) {
3154
2959
  if (e == null) return "none";
3155
2960
  let t = String(e).trim();
3156
2961
  if (!t || /nan|infinity/i.test(t)) return "none";
@@ -3159,7 +2964,7 @@ function Ts(e) {
3159
2964
  let r = Number(n[0]);
3160
2965
  return Number.isFinite(r) ? r > 0 ? "up" : r < 0 ? "down" : "flat" : "none";
3161
2966
  }
3162
- var Es = (e, t, n, r, i) => {
2967
+ var Vi = (e, t, n, r, i) => {
3163
2968
  let a = n || 30, o = t.clientWidth, s = t.clientHeight, c = i ? Math.max(a, Math.min(i.capPx ?? 96, Math.floor((s > 0 ? s : 0) * i.maxFraction))) : a;
3164
2969
  if (r && r.w === o && r.h === s && r.base === a && r.max === c && e.style.fontSize === `${r.px}px`) return {
3165
2970
  memo: r,
@@ -3192,8 +2997,8 @@ var Es = (e, t, n, r, i) => {
3192
2997
  },
3193
2998
  wrote: !0
3194
2999
  };
3195
- }, Ds = ir.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: s, events: c, originalValue: l, variables: d, language: p, translationDictionary: g, setHoverSubHeader: v, onChartClickWithMetric: y, renderOpts: ee }) => {
3196
- let [b, x] = K(""), S = G(null), C = G(null), w = G(null), T = G(null), { valueFont: E, subHeaderFont: D, changeVariableFont: te, changeIconSize: O } = W(() => {
3000
+ }, Hi = Re.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: s, events: c, originalValue: l, variables: d, language: p, translationDictionary: g, setHoverSubHeader: v, onChartClickWithMetric: y, renderOpts: ee }) => {
3001
+ let [b, x] = H(""), S = V(null), C = V(null), w = V(null), T = V(null), { valueFont: E, subHeaderFont: D, changeVariableFont: te, changeIconSize: O } = B(() => {
3197
3002
  let e = {
3198
3003
  fontSize: `${t?.subHeaderFontSize || 14}px`,
3199
3004
  fontWeight: t?.subHeaderFontWeight || "400",
@@ -3218,26 +3023,26 @@ var Es = (e, t, n, r, i) => {
3218
3023
  t?.subHeaderFontColor,
3219
3024
  t?.fontSize,
3220
3025
  b
3221
- ]), ne = W(() => {
3026
+ ]), ne = B(() => {
3222
3027
  if (!e) return "empty";
3223
3028
  let t = xe(e.toString());
3224
3029
  return t.length === 0 ? "empty-empty" : `${`${t.slice(0, 4)}-${t.slice(-4)}`.toLowerCase()}-${_(6)}`;
3225
3030
  }, [e]);
3226
- U(() => {
3031
+ z(() => {
3227
3032
  let e = new ResizeObserver(() => {
3228
3033
  T?.current?.getEchartsInstance()?.resize();
3229
3034
  });
3230
3035
  return w?.current && e?.observe(w?.current), () => e?.disconnect();
3231
- }, []), U(() => {
3036
+ }, []), z(() => {
3232
3037
  (e || t) && a?.();
3233
- }, [e, t]), U(() => {
3038
+ }, [e, t]), z(() => {
3234
3039
  let e = !1;
3235
3040
  if (t?.conditionalFormatter?.length && l) {
3236
3041
  let n = t?.conditionalFormatter?.filter((e) => !e?.type || e?.type === "range"), r = t?.conditionalFormatter?.filter((e) => e?.type === "string");
3237
3042
  if (typeof l == "number" && n?.length && n?.forEach((n) => {
3238
3043
  (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(l) && n?.max >= Number(l) && (x(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3239
3044
  }), typeof l == "string" && r?.length) {
3240
- let n = er({
3045
+ let n = Ie({
3241
3046
  rules: r?.map((e) => ({
3242
3047
  operator: e?.operator || "isEqualTo",
3243
3048
  styles: e?.color,
@@ -3254,11 +3059,11 @@ var Es = (e, t, n, r, i) => {
3254
3059
  t?.fontColor,
3255
3060
  l
3256
3061
  ]);
3257
- let re = W(() => t?.isEnableTruncate ? ve(e.toString(), t?.truncateValue || 0) : e, [
3062
+ let re = B(() => t?.isEnableTruncate ? ve(e.toString(), t?.truncateValue || 0) : e, [
3258
3063
  e,
3259
3064
  t?.isEnableTruncate,
3260
3065
  t?.truncateValue
3261
- ]), ie = W(() => t?.prefix ? f({
3066
+ ]), ie = B(() => t?.prefix ? f({
3262
3067
  text: m(t?.prefix || "^^^^^", d),
3263
3068
  selectedLanguage: p,
3264
3069
  translationDictionary: g
@@ -3267,7 +3072,7 @@ var Es = (e, t, n, r, i) => {
3267
3072
  t?.prefix,
3268
3073
  p,
3269
3074
  g
3270
- ]), ae = W(() => t?.suffix ? f({
3075
+ ]), ae = B(() => t?.suffix ? f({
3271
3076
  text: m(t?.suffix || "^^^^^", d),
3272
3077
  selectedLanguage: p,
3273
3078
  translationDictionary: g
@@ -3276,9 +3081,9 @@ var Es = (e, t, n, r, i) => {
3276
3081
  t?.suffix,
3277
3082
  p,
3278
3083
  g
3279
- ]), k = G(null), A = G({ maxFraction: .6 }), j = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, oe = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3084
+ ]), k = V(null), A = V({ maxFraction: .6 }), j = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, oe = B(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3280
3085
  A.current = { maxFraction: oe ? .42 : .6 };
3281
- let M = W(() => Ts(o), [o]), se = M !== "none", ce = se && !!s, N = W(() => se ? ce ? {
3086
+ let M = B(() => Bi(o), [o]), se = M !== "none", ce = se && !!s, le = B(() => se ? ce ? {
3282
3087
  value: "50%",
3283
3088
  comparison: "18%",
3284
3089
  trend: "32%"
@@ -3291,13 +3096,13 @@ var Es = (e, t, n, r, i) => {
3291
3096
  comparison: "0%",
3292
3097
  trend: "0%"
3293
3098
  }, [se, ce]);
3294
- U(() => {
3099
+ z(() => {
3295
3100
  let e = S.current, t = C.current;
3296
3101
  if (!e || !t) return;
3297
3102
  k.current = null;
3298
3103
  let n = () => {
3299
3104
  if (e.clientWidth <= 0 || e.clientHeight <= 0) return;
3300
- let { memo: n } = Es(t, e, 30, k.current, {
3105
+ let { memo: n } = Vi(t, e, 30, k.current, {
3301
3106
  ...A.current,
3302
3107
  capPx: j
3303
3108
  });
@@ -3314,30 +3119,30 @@ var Es = (e, t, n, r, i) => {
3314
3119
  ie,
3315
3120
  ae,
3316
3121
  oe,
3317
- N.value
3122
+ le.value
3318
3123
  ]);
3319
- let { alignmentClass: le, subAlignmentClass: ue } = W(() => {
3124
+ let { alignmentClass: ue, subAlignmentClass: de } = B(() => {
3320
3125
  let e = t?.alignment === "left" ? $.leftAlign : t?.alignment === "right" ? $.rightAlign : "", n = t?.subHeaderAlignment === "left" ? $.leftAlign : t?.subHeaderAlignment === "right" ? $.rightAlign : "";
3321
3126
  return {
3322
3127
  alignmentClass: e || "",
3323
3128
  subAlignmentClass: n || ""
3324
3129
  };
3325
3130
  }, [t?.alignment, t?.subHeaderAlignment]);
3326
- return /* @__PURE__ */ J("div", {
3131
+ return /* @__PURE__ */ W("div", {
3327
3132
  className: `${i} ${r ? $.borderLessContainer : $.container}`,
3328
3133
  style: { background: t?.metricCardColor || "" },
3329
3134
  children: [
3330
- /* @__PURE__ */ J("div", {
3135
+ /* @__PURE__ */ W("div", {
3331
3136
  ref: S,
3332
- className: `${$.valueContainer} ${oe ? "dbn:mt-1 dbn:justify-start" : ""} ${le} `,
3137
+ className: `${$.valueContainer} ${oe ? "dbn:mt-1 dbn:justify-start" : ""} ${ue} `,
3333
3138
  onContextMenu: (e) => e.preventDefault(),
3334
3139
  style: {
3335
3140
  background: t?.metricCardColor || "",
3336
- height: N.value,
3141
+ height: le.value,
3337
3142
  minHeight: 0
3338
3143
  },
3339
3144
  "data-testid": `valueContainer-${ne}`,
3340
- children: [/* @__PURE__ */ J("div", {
3145
+ children: [/* @__PURE__ */ W("div", {
3341
3146
  ref: C,
3342
3147
  style: E,
3343
3148
  onClick: (e) => {
@@ -3353,17 +3158,17 @@ var Es = (e, t, n, r, i) => {
3353
3158
  re,
3354
3159
  ae
3355
3160
  ]
3356
- }), oe && /* @__PURE__ */ q("div", {
3357
- className: `dbn:w-full dbn:flex dbn:flex-col ${ue}`,
3358
- children: /* @__PURE__ */ q(u, {
3161
+ }), oe && /* @__PURE__ */ U("div", {
3162
+ className: `dbn:w-full dbn:flex dbn:flex-col ${de}`,
3163
+ children: /* @__PURE__ */ U(u, {
3359
3164
  text: t?.displayText,
3360
3165
  position: "bottom",
3361
3166
  isSingleLineTxt: !1,
3362
3167
  className: "dbn:max-w-full",
3363
- children: /* @__PURE__ */ q("div", {
3168
+ children: /* @__PURE__ */ U("div", {
3364
3169
  style: D,
3365
3170
  onClick: () => {
3366
- n && Qn(n, t?.displayText || "");
3171
+ n && Pe(n, t?.displayText || "");
3367
3172
  },
3368
3173
  className: $.subHeader,
3369
3174
  onMouseEnter: () => v?.(!0),
@@ -3373,32 +3178,32 @@ var Es = (e, t, n, r, i) => {
3373
3178
  })
3374
3179
  })]
3375
3180
  }),
3376
- se && /* @__PURE__ */ J("div", {
3181
+ se && /* @__PURE__ */ W("div", {
3377
3182
  className: $.comparisonDiv,
3378
3183
  style: {
3379
3184
  background: t?.metricCardColor || "",
3380
- height: N.comparison,
3185
+ height: le.comparison,
3381
3186
  flexShrink: 0
3382
3187
  },
3383
- children: [t?.comparisonTimePeriod && /* @__PURE__ */ J("span", {
3188
+ children: [t?.comparisonTimePeriod && /* @__PURE__ */ W("span", {
3384
3189
  className: $.comparisonPeriod,
3385
3190
  children: ["vs", t?.comparisonMapValue ? ` ${t?.comparisonMapValue}` : ` Last ${t.comparisonTimePeriod} ${t.comparisonTimeGrain}`]
3386
- }), /* @__PURE__ */ q("div", {
3191
+ }), /* @__PURE__ */ U("div", {
3387
3192
  style: te,
3388
3193
  className: $.comparisonValue,
3389
- children: /* @__PURE__ */ J("span", {
3194
+ children: /* @__PURE__ */ W("span", {
3390
3195
  style: te,
3391
3196
  className: M === "flat" ? $.comparisonPeriod : M === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3392
3197
  "data-testid": "legacy-kpi-comparison",
3393
3198
  "data-comparison-reading": M,
3394
3199
  children: [
3395
- M === "up" && /* @__PURE__ */ q(h, {
3200
+ M === "up" && /* @__PURE__ */ U(h, {
3396
3201
  name: "arrow-up-2",
3397
3202
  color: t?.upVariant === "danger" ? "warning-badge-txt" : "success-badge-txt",
3398
3203
  width: O,
3399
3204
  height: O
3400
3205
  }),
3401
- M === "down" && /* @__PURE__ */ q(h, {
3206
+ M === "down" && /* @__PURE__ */ U(h, {
3402
3207
  name: "arrow-down-2",
3403
3208
  color: t?.downVariant === "success" ? "success-badge-txt" : "warning-badge-txt",
3404
3209
  width: O,
@@ -3411,20 +3216,20 @@ var Es = (e, t, n, r, i) => {
3411
3216
  })
3412
3217
  })]
3413
3218
  }),
3414
- ce && /* @__PURE__ */ q("div", {
3219
+ ce && /* @__PURE__ */ U("div", {
3415
3220
  ref: w,
3416
3221
  style: {
3417
3222
  width: "100%",
3418
- height: N.trend,
3223
+ height: le.trend,
3419
3224
  minHeight: 0
3420
3225
  },
3421
- children: /* @__PURE__ */ q(fs, {
3226
+ children: /* @__PURE__ */ U(Di, {
3422
3227
  ref: T,
3423
3228
  style: {
3424
3229
  width: "100%",
3425
3230
  height: "100%"
3426
3231
  },
3427
- option: Fr(s),
3232
+ option: et(s),
3428
3233
  theme: "v5",
3429
3234
  notMerge: !0,
3430
3235
  opts: ee
@@ -3432,11 +3237,11 @@ var Es = (e, t, n, r, i) => {
3432
3237
  })
3433
3238
  ]
3434
3239
  });
3435
- }), Os = (e, t) => {
3240
+ }), Ui = (e, t) => {
3436
3241
  if (!e) return "";
3437
3242
  let n = e.xAxis?.[0] ?? e.xAxis ?? {}, r = e.yAxis?.[0] ?? e.yAxis ?? {}, i = (Array.isArray(n?.data) ? n.data.length : 0) || (Array.isArray(r?.data) ? r.data.length : 0), a = Array.isArray(e.series) ? e.series.length : 0, o = Array.isArray(e.series?.[0]?.data) ? e.series[0].data.length : 0;
3438
3243
  return `${t ?? ""}|${i}|${a}|${o}`;
3439
- }, ks = (e) => {
3244
+ }, Wi = (e) => {
3440
3245
  let t = {};
3441
3246
  try {
3442
3247
  let n = e?.getOption?.()?.dataZoom;
@@ -3451,9 +3256,9 @@ var Es = (e, t, n, r, i) => {
3451
3256
  });
3452
3257
  } catch {}
3453
3258
  return t;
3454
- }, As = (e, t, n) => {
3259
+ }, Gi = (e, t, n) => {
3455
3260
  if (!e || !Array.isArray(e.dataZoom)) return e;
3456
- let r = Os(e, t);
3261
+ let r = Ui(e, t);
3457
3262
  return n.shape === r ? Object.keys(n.windows).length ? {
3458
3263
  ...e,
3459
3264
  dataZoom: e.dataZoom.map((e, t) => {
@@ -3464,13 +3269,13 @@ var Es = (e, t, n, r, i) => {
3464
3269
  };
3465
3270
  })
3466
3271
  } : e : (n.shape = r, n.windows = {}, e);
3467
- }, js = /* @__PURE__ */ i({ Chart: () => Ys }), Ms = async () => {
3468
- let e = await import("./charts-DLkGIf3C.mjs").then((e) => e.t), t = e.DbnChart, { buildAnswerLine: n } = e;
3469
- return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ q(t, {
3272
+ }, Ki = /* @__PURE__ */ i({ Chart: () => ua }), qi = async () => {
3273
+ let e = await import("./charts-TEuh7DBS.mjs").then((e) => e.t), t = e.DbnChart, { buildAnswerLine: n } = e;
3274
+ return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ U(t, {
3470
3275
  ...r,
3471
3276
  answerLine: e ? n(e) : null
3472
3277
  }) };
3473
- }, Ns = null, Ps = null, Fs = sr(() => (Ps ??= Ms().then((e) => (Ns = e.default, e)), Ps)), Is = (e, t) => {
3278
+ }, Ji = null, Yi = null, Xi = Ve(() => (Yi ??= qi().then((e) => (Ji = e.default, e)), Yi)), Zi = (e, t) => {
3474
3279
  let n = t?.onChartClickWithMetric, r = t?.chartClickConfig?.isEnable ? e?.click : e?.contextmenu;
3475
3280
  if (!n && !r) return;
3476
3281
  let i = () => {
@@ -3480,8 +3285,8 @@ var Es = (e, t, n, r, i) => {
3480
3285
  click: i,
3481
3286
  contextmenu: i
3482
3287
  };
3483
- }, Ls = (e) => typeof e == "object" && !!e && "current" in e, Rs = (e, t) => {
3484
- if (!Ls(t)) return e;
3288
+ }, Qi = (e) => typeof e == "object" && !!e && "current" in e, $i = (e, t) => {
3289
+ if (!Qi(t)) return e;
3485
3290
  let n = e?.finished;
3486
3291
  return {
3487
3292
  ...e ?? {},
@@ -3491,7 +3296,7 @@ var Es = (e, t, n, r, i) => {
3491
3296
  r && (t.current = { getEchartsInstance: () => r.isDisposed?.() ? void 0 : r });
3492
3297
  }
3493
3298
  };
3494
- }, zs = (e) => q(Ns || Fs, { ...e }), Bs = /* @__PURE__ */ new Set([
3299
+ }, ea = (e) => U(Ji || Xi, { ...e }), ta = /* @__PURE__ */ new Set([
3495
3300
  "echarts",
3496
3301
  "option",
3497
3302
  "theme",
@@ -3512,27 +3317,27 @@ var Es = (e, t, n, r, i) => {
3512
3317
  "tabIndex",
3513
3318
  "ref",
3514
3319
  "key"
3515
- ]), Vs = (e) => e.startsWith("data-") || e.startsWith("aria-"), Hs = (e) => {
3320
+ ]), na = (e) => e.startsWith("data-") || e.startsWith("aria-"), ra = (e) => {
3516
3321
  if (!e) return { theme: "v5" };
3517
3322
  let t = { theme: "v5" };
3518
- for (let n of Object.keys(e)) (Bs.has(n) || Vs(n)) && (t[n] = e[n]);
3323
+ for (let n of Object.keys(e)) (ta.has(n) || na(n)) && (t[n] = e[n]);
3519
3324
  return t;
3520
- }, Us = (e) => e !== g.treeMap, Ws = (e, t) => {
3325
+ }, ia = (e) => e !== g.treeMap, aa = (e, t) => {
3521
3326
  if (e !== g.treeMap) return e;
3522
3327
  try {
3523
3328
  return `${e}:${JSON.stringify(t)}`;
3524
3329
  } catch {
3525
3330
  return e;
3526
3331
  }
3527
- }, Gs = (e, t, n = 0) => {
3332
+ }, oa = (e, t, n = 0) => {
3528
3333
  if (e === t) return !0;
3529
3334
  if (n > 8) return !1;
3530
3335
  if (typeof e == "function" && typeof t == "function") return !0;
3531
3336
  if (typeof e != "object" || typeof t != "object" || e === null || t === null || Array.isArray(e) !== Array.isArray(t)) return !1;
3532
- if (Array.isArray(e)) return e.length === t.length && e.every((e, r) => Gs(e, t[r], n + 1));
3337
+ if (Array.isArray(e)) return e.length === t.length && e.every((e, r) => oa(e, t[r], n + 1));
3533
3338
  let r = (e) => (t) => e[t] !== void 0 && typeof e[t] != "function", i = Object.keys(e).filter(r(e)), a = Object.keys(t).filter(r(t));
3534
- return i.length === a.length && i.every((r) => Object.hasOwn(t, r) && Gs(e[r], t[r], n + 1));
3535
- }, Ks = ({ echartsInstance: e, optionsObj: t, params: n, isGantt: r, chartIds: i }) => {
3339
+ return i.length === a.length && i.every((r) => Object.hasOwn(t, r) && oa(e[r], t[r], n + 1));
3340
+ }, sa = ({ echartsInstance: e, optionsObj: t, params: n, isGantt: r, chartIds: i }) => {
3536
3341
  if (!e || e.isDisposed() || !n?.name) return;
3537
3342
  let a = e?.id || "default-chart";
3538
3343
  i?.add(a);
@@ -3569,7 +3374,7 @@ var Es = (e, t, n, r, i) => {
3569
3374
  } catch (e) {
3570
3375
  console.error("Failed to update chart options", e);
3571
3376
  }
3572
- }, qs = (e, t) => {
3377
+ }, ca = (e, t) => {
3573
3378
  let n = e?.xAxis, r = t?.[0];
3574
3379
  if (!n || !r || typeof r != "object" || n in r) return e;
3575
3380
  let i = n.toLowerCase(), a = Object.keys(r).find((e) => e.toLowerCase() === i);
@@ -3577,239 +3382,239 @@ var Es = (e, t, n, r, i) => {
3577
3382
  ...e,
3578
3383
  xAxis: a
3579
3384
  } : e;
3580
- }, Js = ir.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3581
- let l = ir.useMemo(() => ({
3385
+ }, la = Re.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3386
+ let l = Re.useMemo(() => ({
3582
3387
  width: "100%",
3583
3388
  height: t && (e || 0) >= 6 ? "100px" : t && !e ? "40%" : "100%"
3584
- }), [e, t]), u = ir.useMemo(() => Fr(r.customSettings?.chartZoom?.isZoomEnabled ? {
3389
+ }), [e, t]), u = Re.useMemo(() => et(r.customSettings?.chartZoom?.isZoomEnabled ? {
3585
3390
  ...i,
3586
3391
  animation: !0
3587
3392
  } : {
3588
3393
  ...i,
3589
3394
  animation: !1
3590
3395
  }), [r, i]);
3591
- return /* @__PURE__ */ ar(fs, {
3396
+ return /* @__PURE__ */ ze(Di, {
3592
3397
  style: l,
3593
- ...Hs(n),
3398
+ ...ra(n),
3594
3399
  option: u,
3595
3400
  className: a,
3596
- key: Ws(r.chartType, u),
3401
+ key: aa(r.chartType, u),
3597
3402
  onEvents: o,
3598
3403
  ref: s,
3599
- notMerge: Us(r.chartType),
3404
+ notMerge: ia(r.chartType),
3600
3405
  opts: c
3601
3406
  });
3602
- }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !Gs(e.config, t.config) || !Gs(e.chartOptions, t.chartOptions))), Ys = ir.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: a, config: s, className: u, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: h, onMaximize: _, onDrillPivotTable: y, pivotDrillState: ee, isPythonMode: x, seriesName: C = "", isSortReversed: E, chartHeight: D, chartAppearance: O, metricCardColor: ce, isMetricCard: N, isDashboard: ue, externalGlobalFilter: P, setExternalGlobalFilter: fe, variables: ge, language: ve, translationDictionary: xe, setHoverSubHeader: Se, drilldownCols: Ce, isEnableDrillDown: we, dateFilter: Te, chartFontSettings: Ee, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3603
- let F = W(() => M(qs(e, t), t), [e, t]), [I, Ae] = K(null), [je, Me] = K(null), Ne = ur(se, le, le), Pe = cr((e) => {
3407
+ }, (e, t) => !(e.chartHeight !== t.chartHeight || e.hasDecreasedHeight !== t.hasDecreasedHeight || e.className !== t.className || e.options !== t.options || e.renderOpts !== t.renderOpts || e.onEvents !== t.onEvents || !oa(e.config, t.config) || !oa(e.chartOptions, t.chartOptions))), ua = Re.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: a, config: s, className: u, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: h, onMaximize: _, onDrillPivotTable: y, pivotDrillState: ee, isPythonMode: x, seriesName: C = "", isSortReversed: E, chartHeight: D, chartAppearance: O, metricCardColor: ce, isMetricCard: le, isDashboard: N, externalGlobalFilter: me, setExternalGlobalFilter: he, variables: ve, language: xe, translationDictionary: Se, setHoverSubHeader: Ce, drilldownCols: we, isEnableDrillDown: P, dateFilter: F, chartFontSettings: Ee, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3408
+ let I = B(() => M(ca(e, t), t), [e, t]), [L, Ae] = H(null), [je, Me] = H(null), Ne = We(pe, fe, fe), Pe = He((e) => {
3604
3409
  Ae((t) => t === e ? t : e);
3605
- }, []), [Fe, Ie] = K(() => re(null));
3606
- lr(() => {
3607
- Ie(re(I));
3608
- }, [I]);
3609
- let L = W(() => Fe ? A({
3610
- mapping: ne(F, t),
3611
- chartOptions: F,
3410
+ }, []), [Fe, Ie] = H(() => re(null));
3411
+ Ue(() => {
3412
+ Ie(re(L));
3413
+ }, [L]);
3414
+ let R = B(() => Fe ? A({
3415
+ mapping: ne(I, t),
3416
+ chartOptions: I,
3612
3417
  rows: t,
3613
3418
  enabled: _e()
3614
3419
  }) : null, [
3615
3420
  Fe,
3616
- F,
3421
+ I,
3617
3422
  t
3618
- ]), Le = L ? _e() : !1, Re = W(() => {
3619
- if (!L) return null;
3620
- let e = ie(ni(O, F), {
3621
- ...k(F.customSettings),
3622
- tooltipSettings: te(F?.tooltipSettings, Ee?.tooltip),
3623
- categoryField: L?.type === "gaugeV2" ? null : F?.xAxis,
3624
- chartZoom: F.customSettings?.chartZoom,
3625
- percentageSize: F.percentageSize,
3626
- repulsion: F.customSettings?.repulsion,
3627
- isUseAsDifference: F.waterfallSettings?.isUseAsDifference,
3628
- hideNullValues: F.customSettings?.hideNullValues
3423
+ ]), Re = R ? _e() : !1, Be = B(() => {
3424
+ if (!R) return null;
3425
+ let e = ie(yt(O, I), {
3426
+ ...k(I.customSettings),
3427
+ tooltipSettings: te(I?.tooltipSettings, Ee?.tooltip),
3428
+ categoryField: R?.type === "gaugeV2" ? null : I?.xAxis,
3429
+ chartZoom: I.customSettings?.chartZoom,
3430
+ percentageSize: I.percentageSize,
3431
+ repulsion: I.customSettings?.repulsion,
3432
+ isUseAsDifference: I.waterfallSettings?.isUseAsDifference,
3433
+ hideNullValues: I.customSettings?.hideNullValues
3629
3434
  });
3630
- return oe(e, ae(L.data, Le));
3435
+ return oe(e, ae(R.data, Re));
3631
3436
  }, [
3632
- L,
3437
+ R,
3633
3438
  O,
3634
- F,
3439
+ I,
3635
3440
  Ee?.tooltip,
3636
- Le
3637
- ]), ze = L ? v() : !1, Be = W(() => {
3638
- if (Fe && L) return j(F);
3441
+ Re
3442
+ ]), Ve = R ? v() : !1, Ge = B(() => {
3443
+ if (Fe && R) return j(I);
3639
3444
  }, [
3640
3445
  Fe,
3641
- L,
3642
- F
3643
- ]), Ve = W(() => !Fe || !L ? null : Bn(F, t, n), [
3446
+ R,
3447
+ I
3448
+ ]), Ke = B(() => !Fe || !R ? null : Te(I, t, n), [
3644
3449
  Fe,
3645
- L,
3646
- F,
3450
+ R,
3451
+ I,
3647
3452
  t,
3648
3453
  n
3649
- ]), [He, Ue] = K(), [We, Ge] = K(!1), Ke = G(null), [qe, Je] = K(null), Ye = cr((e) => {
3650
- Ke.current = e, Je(e);
3651
- }, []), R = G(null), [Xe, Ze] = K(0), [Qe, $e] = K(0), et = G(Xe), tt = G(Qe), nt = be(F);
3652
- U(() => {
3653
- et.current = Xe;
3654
- }, [Xe]), U(() => {
3655
- tt.current = Qe;
3656
- }, [Qe]);
3657
- let rt = W(() => JSON.stringify(Ee), [Ee]), it = W(() => JSON.stringify(F), [F]), at = W(() => JSON.stringify(i), [i]), z = W(() => {
3658
- if (L) return null;
3454
+ ]), [Ye, Xe] = H(), [Ze, Qe] = H(!1), $e = V(null), [tt, nt] = H(null), rt = He((e) => {
3455
+ $e.current = e, nt(e);
3456
+ }, []), G = V(null), [it, at] = H(0), [ot, st] = H(0), ct = V(it), lt = V(ot), ut = be(I);
3457
+ z(() => {
3458
+ ct.current = it;
3459
+ }, [it]), z(() => {
3460
+ lt.current = ot;
3461
+ }, [ot]);
3462
+ let dt = B(() => JSON.stringify(Ee), [Ee]), pt = B(() => JSON.stringify(I), [I]), mt = B(() => JSON.stringify(i), [i]), K = B(() => {
3463
+ if (R) return null;
3659
3464
  let e = t;
3660
3465
  return h === "ascending" && (e = [...t].sort((e, t) => e[C] - t[C])), h === "descending" && (e = [...t].sort((e, t) => t[C] - e[C])), E && (e = [...e].reverse()), ye({
3661
- isDashboard: ue,
3662
- chartOptions: F,
3466
+ isDashboard: N,
3467
+ chartOptions: I,
3663
3468
  data: e,
3664
3469
  colors: i,
3665
- geoJsonData: He,
3470
+ geoJsonData: Ye,
3666
3471
  isPythonMode: x,
3667
3472
  chartHeight: D,
3668
3473
  chartAppearance: O,
3669
- chartRef: Ke,
3670
- chartGridWidth: Xe,
3671
- chartWidth: Qe,
3474
+ chartRef: $e,
3475
+ chartGridWidth: it,
3476
+ chartWidth: ot,
3672
3477
  metricCardColor: ce,
3673
- language: ve,
3674
- translationDictionary: xe,
3675
- drilldownCols: Ce,
3676
- isEnableDrillDown: we,
3677
- dateFilter: Te,
3478
+ language: xe,
3479
+ translationDictionary: Se,
3480
+ drilldownCols: we,
3481
+ isEnableDrillDown: P,
3482
+ dateFilter: F,
3678
3483
  chartFontSettings: Ee
3679
3484
  });
3680
3485
  }, [
3681
- L,
3486
+ R,
3682
3487
  t,
3683
- rt,
3684
- it,
3685
- at,
3686
- He,
3488
+ dt,
3489
+ pt,
3490
+ mt,
3491
+ Ye,
3687
3492
  h,
3688
3493
  C,
3689
3494
  E,
3690
3495
  D,
3691
3496
  O,
3692
- Ke,
3693
- Xe,
3694
- Qe,
3497
+ $e,
3498
+ it,
3499
+ ot,
3695
3500
  ce,
3501
+ Se,
3696
3502
  xe,
3697
- ve,
3698
- Ce,
3699
3503
  we,
3700
- Te,
3701
- ue
3702
- ]), [ot, st] = K(), [ct, lt] = K(), [ut, dt] = K(), ft = ut ?? z;
3703
- lr(() => {
3704
- dt(void 0);
3705
- }, [z]);
3706
- let pt = G({
3504
+ P,
3505
+ F,
3506
+ N
3507
+ ]), [ht, gt] = H(), [_t, vt] = H(), [bt, xt] = H(), St = bt ?? K;
3508
+ Ue(() => {
3509
+ xt(void 0);
3510
+ }, [K]);
3511
+ let q = V({
3707
3512
  events: r,
3708
- options: z,
3709
- advancedOptions: ft,
3710
- chartOptions: F
3513
+ options: K,
3514
+ advancedOptions: St,
3515
+ chartOptions: I
3711
3516
  });
3712
- pt.current = {
3517
+ q.current = {
3713
3518
  events: r,
3714
- options: z,
3715
- advancedOptions: ft,
3716
- chartOptions: F
3519
+ options: K,
3520
+ advancedOptions: St,
3521
+ chartOptions: I
3717
3522
  };
3718
- let mt = r ? Object.keys(r).sort().join("|") : "", ht = G({
3523
+ let J = r ? Object.keys(r).sort().join("|") : "", Ct = V({
3719
3524
  shape: "",
3720
3525
  windows: {}
3721
- }), gt = m || F?.chartType;
3722
- U(() => {}, [
3723
- L,
3724
- Re,
3725
- gt
3726
- ]), U(() => {}, [
3727
- L,
3728
- z,
3729
- gt
3730
- ]), U(() => {});
3731
- let _t = W(() => {
3526
+ }), wt = m || I?.chartType;
3527
+ z(() => {}, [
3528
+ R,
3529
+ Be,
3530
+ wt
3531
+ ]), z(() => {}, [
3532
+ R,
3533
+ K,
3534
+ wt
3535
+ ]), z(() => {});
3536
+ let Tt = B(() => {
3732
3537
  let e = {};
3733
- (mt ? mt.split("|") : []).forEach((t) => {
3538
+ (J ? J.split("|") : []).forEach((t) => {
3734
3539
  e[t] = (...e) => {
3735
- let n = pt.current.events?.[t];
3540
+ let n = q.current.events?.[t];
3736
3541
  n?.(...e);
3737
3542
  };
3738
3543
  });
3739
3544
  let t = e.datazoom;
3740
3545
  return e.datazoom = (...e) => {
3741
- let n = e[1], r = ks(n);
3742
- Object.keys(r).length && (ht.current.windows = r), t?.(...e);
3546
+ let n = e[1], r = Wi(n);
3547
+ Object.keys(r).length && (Ct.current.windows = r), t?.(...e);
3743
3548
  }, e;
3744
- }, [mt]), vt = G(/* @__PURE__ */ new Set()), yt = W(() => ({
3745
- ..._t,
3549
+ }, [J]), Et = V(/* @__PURE__ */ new Set()), Dt = B(() => ({
3550
+ ...Tt,
3746
3551
  legendselectchanged: (e, t) => {
3747
- Ks({
3552
+ sa({
3748
3553
  echartsInstance: t,
3749
- optionsObj: pt.current.options,
3554
+ optionsObj: q.current.options,
3750
3555
  params: e,
3751
- chartIds: vt.current
3556
+ chartIds: Et.current
3752
3557
  });
3753
3558
  }
3754
- }), [_t]), bt = W(() => ({
3755
- ..._t,
3559
+ }), [Tt]), Ot = B(() => ({
3560
+ ...Tt,
3756
3561
  legendselectchanged: (e, t) => {
3757
- Ks({
3562
+ sa({
3758
3563
  echartsInstance: t,
3759
- optionsObj: pt.current.advancedOptions,
3564
+ optionsObj: q.current.advancedOptions,
3760
3565
  params: e,
3761
- isGantt: pt.current.chartOptions?.chartType === g.gantt,
3762
- chartIds: vt.current
3566
+ isGantt: q.current.chartOptions?.chartType === g.gantt,
3567
+ chartIds: Et.current
3763
3568
  });
3764
3569
  }
3765
- }), [_t]), xt = W(() => Fr(As(ft, F?.chartType, ht.current)), [ft, F?.chartType]), St = W(() => Fr(As(ot ?? z, F?.chartType, ht.current)), [
3766
- ot,
3767
- z,
3768
- F?.chartType
3570
+ }), [Tt]), kt = B(() => et(Gi(St, I?.chartType, Ct.current)), [St, I?.chartType]), At = B(() => et(Gi(ht ?? K, I?.chartType, Ct.current)), [
3571
+ ht,
3572
+ K,
3573
+ I?.chartType
3769
3574
  ]);
3770
- U(() => () => {
3575
+ z(() => () => {
3771
3576
  let e = window;
3772
- e?.chartSelections && vt.current.forEach((t) => {
3577
+ e?.chartSelections && Et.current.forEach((t) => {
3773
3578
  delete e.chartSelections[t];
3774
- }), vt.current.clear(), pt.current = {
3579
+ }), Et.current.clear(), q.current = {
3775
3580
  events: void 0,
3776
3581
  options: void 0,
3777
3582
  advancedOptions: void 0,
3778
3583
  chartOptions: void 0
3779
3584
  };
3780
3585
  }, []);
3781
- let [Ct, wt] = K(0), [B, Tt] = K(0), [Et, Dt] = K(0), [Ot, kt] = K([]), [At, jt] = K(!1), Mt = W(() => [
3586
+ let [jt, Mt] = H(0), [Nt, Pt] = H(0), [Ft, It] = H(0), [Lt, Rt] = H([]), [zt, Bt] = H(!1), Vt = B(() => [
3782
3587
  g.indianMap,
3783
3588
  g.geoBarMap,
3784
3589
  g.geoMap,
3785
3590
  g.geoScatterMap,
3786
3591
  g.worldMap
3787
- ].includes(F.chartType), [F.chartType]), Nt = W(() => [g.worldMap, g.indianMap].includes(F?.chartType || "") && He && t.length && F?.xAxis, [
3788
- He,
3592
+ ].includes(I.chartType), [I.chartType]), Ht = B(() => [g.worldMap, g.indianMap].includes(I?.chartType || "") && Ye && t.length && I?.xAxis, [
3593
+ Ye,
3789
3594
  t.length,
3790
- F?.xAxis,
3791
- F.chartType
3595
+ I?.xAxis,
3596
+ I.chartType
3792
3597
  ]);
3793
- lr(() => {
3794
- if (L || !I) return;
3795
- let e = I.parentElement ?? I, t = () => {
3598
+ Ue(() => {
3599
+ if (R || !L) return;
3600
+ let e = L.parentElement ?? L, t = () => {
3796
3601
  let t = e.getBoundingClientRect();
3797
3602
  if (t.width <= 0 || t.height <= 0) return !1;
3798
- let n = de({
3603
+ let n = se({
3799
3604
  cssWidth: t.width,
3800
3605
  cssHeight: t.height,
3801
3606
  devicePixelRatio: window.devicePixelRatio,
3802
- liveCharts: pe(),
3607
+ liveCharts: de(),
3803
3608
  purpose: ke ? "export" : "live"
3804
3609
  });
3805
3610
  return Me((e) => e === n ? e : n), !0;
3806
3611
  }, n = t();
3807
3612
  if (typeof ResizeObserver != "function") {
3808
- n || Me(de({
3613
+ n || Me(se({
3809
3614
  cssWidth: 0,
3810
3615
  cssHeight: 0,
3811
3616
  devicePixelRatio: window.devicePixelRatio,
3812
- liveCharts: pe(),
3617
+ liveCharts: de(),
3813
3618
  purpose: ke ? "export" : "live"
3814
3619
  }));
3815
3620
  return;
@@ -3817,128 +3622,128 @@ var Es = (e, t, n, r, i) => {
3817
3622
  let r = new ResizeObserver(t);
3818
3623
  return r.observe(e), () => r.disconnect();
3819
3624
  }, [
3820
- L,
3625
+ R,
3821
3626
  ke,
3822
- I,
3627
+ L,
3823
3628
  Ne
3824
- ]), U(() => {
3825
- if (L || !I || typeof MutationObserver != "function") return;
3629
+ ]), z(() => {
3630
+ if (R || !L || typeof MutationObserver != "function") return;
3826
3631
  let e = null, t = () => {
3827
- let t = I.querySelector("canvas") !== null;
3828
- t && !e ? e = me() : !t && e && (e(), e = null);
3632
+ let t = L.querySelector("canvas") !== null;
3633
+ t && !e ? e = ue() : !t && e && (e(), e = null);
3829
3634
  }, n = new MutationObserver(t);
3830
- return n.observe(I, {
3635
+ return n.observe(L, {
3831
3636
  childList: !0,
3832
3637
  subtree: !0
3833
3638
  }), t(), () => {
3834
3639
  n.disconnect(), e?.();
3835
3640
  };
3836
- }, [L, I]);
3837
- let Pt = W(() => je === null ? null : {
3641
+ }, [R, L]);
3642
+ let Ut = B(() => je === null ? null : {
3838
3643
  renderer: s?.opts?.renderer || "canvas",
3839
3644
  devicePixelRatio: je
3840
- }, [s?.opts?.renderer, je]), Ft = W(() => Ws(F.chartType, ft), [ft, F.chartType]);
3841
- U(() => {
3842
- if (!L && Mt) {
3645
+ }, [s?.opts?.renderer, je]), Wt = B(() => aa(I.chartType, St), [St, I.chartType]);
3646
+ z(() => {
3647
+ if (!R && Vt) {
3843
3648
  let e = [
3844
3649
  g.geoBarMap,
3845
3650
  g.geoMap,
3846
3651
  g.geoScatterMap
3847
- ].includes(F.chartType);
3848
- Ue(null), Ge(!1);
3652
+ ].includes(I.chartType);
3653
+ Xe(null), Qe(!1);
3849
3654
  let t = window.dbn?.geoJsonBaseUrl, n = (e) => fetch(`${t.replace(/\/+$/, "")}/${e}.json`).then((e) => {
3850
3655
  if (!e.ok) throw Error(`Geo outline fetch failed: ${e.status}`);
3851
3656
  return e.json();
3852
- }), r = () => Ge(!0);
3853
- e ? (t ? n("usa") : import("./usa-DtnpZ1zb.mjs").then((e) => e.default)).then(Ue).catch(r) : F?.chartType === g.indianMap ? (t ? n("india") : import("./india-75EpARPk.mjs").then((e) => e.default)).then(Ue).catch(r) : (t ? n("world") : import("./world-DN5GUvkD.mjs").then((e) => e.default)).then(Ue).catch(r);
3657
+ }), r = () => Qe(!0);
3658
+ e ? (t ? n("usa") : import("./usa-DtnpZ1zb.mjs").then((e) => e.default)).then(Xe).catch(r) : I?.chartType === g.indianMap ? (t ? n("india") : import("./india-75EpARPk.mjs").then((e) => e.default)).then(Xe).catch(r) : (t ? n("world") : import("./world-DN5GUvkD.mjs").then((e) => e.default)).then(Xe).catch(r);
3854
3659
  }
3855
- }, [F.chartType, L]);
3856
- let It = W(() => F.customSettings?.showDynamicBehaviour ? he(t, F) : t, [t, F]);
3857
- U(() => {
3858
- L || F.customSettings?.showDynamicBehaviour && !nt && F.chartType && st(ye({
3859
- isDashboard: ue,
3860
- chartOptions: F,
3861
- data: It.slice(0, 10),
3660
+ }, [I.chartType, R]);
3661
+ let Y = B(() => I.customSettings?.showDynamicBehaviour ? ge(t, I) : t, [t, I]);
3662
+ z(() => {
3663
+ R || I.customSettings?.showDynamicBehaviour && !ut && I.chartType && gt(ye({
3664
+ isDashboard: N,
3665
+ chartOptions: I,
3666
+ data: Y.slice(0, 10),
3862
3667
  colors: i,
3863
3668
  isPythonMode: x,
3864
- language: ve,
3865
- translationDictionary: xe,
3866
- dateFilter: Te,
3867
- chartRef: s?.ref ?? R,
3868
- chartGridWidth: et.current,
3869
- chartWidth: tt.current
3669
+ language: xe,
3670
+ translationDictionary: Se,
3671
+ dateFilter: F,
3672
+ chartRef: s?.ref ?? G,
3673
+ chartGridWidth: ct.current,
3674
+ chartWidth: lt.current
3870
3675
  }));
3871
3676
  }, [
3872
- L,
3873
- F,
3677
+ R,
3678
+ I,
3874
3679
  i,
3875
- It,
3876
- nt,
3877
- ve,
3680
+ Y,
3681
+ ut,
3878
3682
  xe,
3879
- Te,
3880
- ue
3683
+ Se,
3684
+ F,
3685
+ N
3881
3686
  ]);
3882
- let Lt = G({
3687
+ let Gt = V({
3883
3688
  upperLimit: 10,
3884
3689
  lowerLimit: 0,
3885
3690
  key: ""
3886
3691
  });
3887
- U(() => {
3888
- if (!L && F.customSettings?.showDynamicBehaviour && !nt) {
3889
- let e = `${F.chartType || ""}|${t.length}`;
3890
- Lt.current.key !== e && (Lt.current = {
3692
+ z(() => {
3693
+ if (!R && I.customSettings?.showDynamicBehaviour && !ut) {
3694
+ let e = `${I.chartType || ""}|${t.length}`;
3695
+ Gt.current.key !== e && (Gt.current = {
3891
3696
  upperLimit: 10,
3892
3697
  lowerLimit: 0,
3893
3698
  key: e
3894
3699
  });
3895
- let n = Lt.current, r = setInterval(() => {
3700
+ let n = Gt.current, r = setInterval(() => {
3896
3701
  if (n.upperLimit >= t.length) {
3897
- st((e) => ({
3898
- ...e ?? pt.current.options,
3702
+ gt((e) => ({
3703
+ ...e ?? q.current.options,
3899
3704
  animation: !1
3900
3705
  })), clearInterval(r);
3901
3706
  return;
3902
3707
  }
3903
- let e = It.slice(n.lowerLimit, n.upperLimit + 10), a = ye({
3904
- isDashboard: ue,
3905
- chartOptions: F,
3708
+ let e = Y.slice(n.lowerLimit, n.upperLimit + 10), a = ye({
3709
+ isDashboard: N,
3710
+ chartOptions: I,
3906
3711
  data: e,
3907
3712
  colors: i,
3908
3713
  isPythonMode: x,
3909
- translationDictionary: xe,
3910
- language: ve,
3911
- dateFilter: Te,
3912
- chartRef: s?.ref ?? R,
3913
- chartGridWidth: et.current,
3914
- chartWidth: tt.current
3714
+ translationDictionary: Se,
3715
+ language: xe,
3716
+ dateFilter: F,
3717
+ chartRef: s?.ref ?? G,
3718
+ chartGridWidth: ct.current,
3719
+ chartWidth: lt.current
3915
3720
  });
3916
- st(a), n.upperLimit += 10, n.lowerLimit += 5;
3721
+ gt(a), n.upperLimit += 10, n.lowerLimit += 5;
3917
3722
  }, 1e3);
3918
3723
  return () => clearInterval(r);
3919
3724
  }
3920
3725
  }, [
3921
- L,
3922
- F,
3726
+ R,
3727
+ I,
3923
3728
  t,
3924
- It,
3729
+ Y,
3925
3730
  i,
3926
- nt,
3731
+ ut,
3732
+ Se,
3927
3733
  xe,
3928
- ve,
3929
- Te,
3930
- ue
3734
+ F,
3735
+ N
3931
3736
  ]);
3932
- let Rt = W(() => [g.linearGauge, g.progressBar].includes(F?.chartType), [F.chartType]), zt = G(!0), Bt = G(void 0);
3933
- U(() => {
3934
- if (L) return;
3737
+ let Kt = B(() => [g.linearGauge, g.progressBar].includes(I?.chartType), [I.chartType]), qt = V(!0), Jt = V(void 0);
3738
+ z(() => {
3739
+ if (R) return;
3935
3740
  let e = setTimeout(() => {
3936
- let e = (s?.ref ?? R)?.current?.getEchartsInstance();
3937
- if (e && !c.includes(F?.chartType || "")) try {
3741
+ let e = (s?.ref ?? G)?.current?.getEchartsInstance();
3742
+ if (e && !c.includes(I?.chartType || "")) try {
3938
3743
  let t = e._componentsViews?.find((e) => e?.type === "grid")?.__model?.coordinateSystem?._rect;
3939
- t && F?.labelSettings?.wrapText && Ze(t?.width), t?.width && Dt(t.width);
3744
+ t && I?.labelSettings?.wrapText && at(t?.width), t?.width && It(t.width);
3940
3745
  let n = e._componentsViews?.find((e) => e?.type === "legend.scroll" || e?.type === "legend.plain"), r = n?._backgroundEl?.shape?.width || 0, i = n?._backgroundEl?.shape?.height || 0;
3941
- !F?.legendSettings?.customise && F?.legendSettings?.show ? (wt(r), Tt(i)) : (wt(0), Tt(0));
3746
+ !I?.legendSettings?.customise && I?.legendSettings?.show ? (Mt(r), Pt(i)) : (Mt(0), Pt(0));
3942
3747
  } catch (e) {
3943
3748
  console.error("Error accessing chart properties:", e);
3944
3749
  }
@@ -3946,167 +3751,167 @@ var Es = (e, t, n, r, i) => {
3946
3751
  return () => clearTimeout(e);
3947
3752
  }, [
3948
3753
  s?.ref,
3949
- F,
3950
- L
3951
- ]), U(() => {
3952
- if (L || !z) return;
3754
+ I,
3755
+ R
3756
+ ]), z(() => {
3757
+ if (R || !K) return;
3953
3758
  let e = setTimeout(() => {
3954
- let e = (s?.ref ?? R)?.current?.getEchartsInstance(), t = z;
3955
- if (e && !c.includes(F?.chartType || "")) {
3956
- let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = z?.xAxis?.[0]?.data?.length || z?.xAxis?.data?.length || 0, a = Et / i * .7 / z?.series?.length, c = [g.bar].includes(F?.chartType) && (F?.isDynamicSeries && F?.seriesField !== "ungrouped" || F?.seriesField !== "ungrouped"), u = F?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(F?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, f = F?.legendSettings?.disableScroll, p = F?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(F?.customSettings?.chartZoom?.zoomAxis || ""), m = p ? 40 : 0, h = 0, _ = 0;
3957
- if (l.includes(F?.legendSettings?.fixedPosition || "") && (h = B / r * 100 || 0), d.includes(F?.legendSettings?.fixedPosition || "") && (_ = B / r * 100 || 0), (s?.ref ?? R)?.current && F?.legendSettings?.position === "vertical" && w.includes(F?.legendSettings?.fixedPosition || "") && F?.chartType !== g.horizontalCombo) {
3958
- if (F?.chartType === g.combo || F?.chartType === g.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3959
- let e = ((z?.leftOffset + 5 || 0) + u) / n * 100, r = (z?.rightOffset + 5 || 0) / n * 100;
3960
- T.includes(F?.legendSettings?.fixedPosition || "") && (r = (z?.rightOffset + 5 || 0) / n * 100, e = (Ct + (z?.leftOffset + 5 || 0)) / n * 100), o.includes(F?.legendSettings?.fixedPosition || "") && (r = (Ct + (z?.rightOffset + 5 || 0)) / n * 100, e = (z?.leftOffset + 5 || 0) / n * 100);
3961
- let i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
3759
+ let e = (s?.ref ?? G)?.current?.getEchartsInstance(), t = K;
3760
+ if (e && !c.includes(I?.chartType || "")) {
3761
+ let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = K?.xAxis?.[0]?.data?.length || K?.xAxis?.data?.length || 0, a = Ft / i * .7 / K?.series?.length, c = [g.bar].includes(I?.chartType) && (I?.isDynamicSeries && I?.seriesField !== "ungrouped" || I?.seriesField !== "ungrouped"), u = I?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(I?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, f = I?.legendSettings?.disableScroll, p = I?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(I?.customSettings?.chartZoom?.zoomAxis || ""), m = p ? 40 : 0, h = 0, _ = 0;
3762
+ if (l.includes(I?.legendSettings?.fixedPosition || "") && (h = Nt / r * 100 || 0), d.includes(I?.legendSettings?.fixedPosition || "") && (_ = Nt / r * 100 || 0), (s?.ref ?? G)?.current && I?.legendSettings?.position === "vertical" && w.includes(I?.legendSettings?.fixedPosition || "") && I?.chartType !== g.horizontalCombo) {
3763
+ if (I?.chartType === g.combo || I?.chartType === g.timeSeries && I?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3764
+ let e = ((K?.leftOffset + 5 || 0) + u) / n * 100, r = (K?.rightOffset + 5 || 0) / n * 100;
3765
+ T.includes(I?.legendSettings?.fixedPosition || "") && (r = (K?.rightOffset + 5 || 0) / n * 100, e = (jt + (K?.leftOffset + 5 || 0)) / n * 100), o.includes(I?.legendSettings?.fixedPosition || "") && (r = (jt + (K?.rightOffset + 5 || 0)) / n * 100, e = (K?.leftOffset + 5 || 0) / n * 100);
3766
+ let i = I?.customSettings?.chartZoom?.isZoomEnabled ? K?.dataZoom?.map((e) => e.orient === "vertical" ? {
3962
3767
  ...e,
3963
- left: T.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
3964
- } : e) : z?.dataZoom;
3768
+ left: T.includes(I?.legendSettings?.fixedPosition || "") ? jt : 5
3769
+ } : e) : K?.dataZoom;
3965
3770
  t = {
3966
- ...z,
3771
+ ...K,
3967
3772
  grid: {
3968
- ...z?.grid,
3969
- left: `${(F?.margins?.marginLeft || 0) + e}%`,
3970
- right: `${(F?.margins?.marginRight || 0) + r}%`
3773
+ ...K?.grid,
3774
+ left: `${(I?.margins?.marginLeft || 0) + e}%`,
3775
+ right: `${(I?.margins?.marginRight || 0) + r}%`
3971
3776
  },
3972
- ...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: i } : {}
3777
+ ...I?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: i } : {}
3973
3778
  };
3974
3779
  } else {
3975
- let e = Ct / n * 100, r = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
3780
+ let e = jt / n * 100, r = I?.customSettings?.chartZoom?.isZoomEnabled ? K?.dataZoom?.map((e) => e.orient === "vertical" ? {
3976
3781
  ...e,
3977
- left: T.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
3978
- } : e) : z?.dataZoom;
3782
+ left: T.includes(I?.legendSettings?.fixedPosition || "") ? jt : 5
3783
+ } : e) : K?.dataZoom;
3979
3784
  t = {
3980
- ...z,
3785
+ ...K,
3981
3786
  grid: {
3982
- ...z?.grid,
3983
- ...T.includes(F?.legendSettings?.fixedPosition || "") ? {
3984
- left: `${(F?.margins?.marginLeft || 0) + e}%`,
3985
- right: `${F?.margins?.marginRight || 0}%`
3787
+ ...K?.grid,
3788
+ ...T.includes(I?.legendSettings?.fixedPosition || "") ? {
3789
+ left: `${(I?.margins?.marginLeft || 0) + e}%`,
3790
+ right: `${I?.margins?.marginRight || 0}%`
3986
3791
  } : {},
3987
- ...F?.legendSettings?.position && o.includes(F?.legendSettings?.fixedPosition || "") ? {
3988
- left: `${F?.margins?.marginLeft || 0}%`,
3989
- right: `${(F?.margins?.marginRight || 0) + e}%`
3792
+ ...I?.legendSettings?.position && o.includes(I?.legendSettings?.fixedPosition || "") ? {
3793
+ left: `${I?.margins?.marginLeft || 0}%`,
3794
+ right: `${(I?.margins?.marginRight || 0) + e}%`
3990
3795
  } : {}
3991
3796
  },
3992
- ...F?.customSettings?.chartZoom?.isZoomEnabled && T.includes(F?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
3993
- ...c ? { series: z?.series?.map((e, t) => ({
3797
+ ...I?.customSettings?.chartZoom?.isZoomEnabled && T.includes(I?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
3798
+ ...c ? { series: K?.series?.map((e, t) => ({
3994
3799
  ...e,
3995
3800
  barWidth: a,
3996
3801
  itemStyle: {
3997
3802
  ...e.itemStyle,
3998
- color: z.colors[t]
3803
+ color: K.colors[t]
3999
3804
  }
4000
3805
  })) } : {}
4001
3806
  };
4002
3807
  }
4003
- } else if ((s?.ref ?? R)?.current && F?.chartType === g.horizontalCombo) {
4004
- let e = Ct / n * 100, i = (z?.bottomOffset || 0) / r * 100, a = (z?.topOffset || 0) / r * 100;
4005
- d.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = (z?.topOffset + 5 || 0) / r * 100, i = ((B || 25) + (z?.bottomOffset + 5 || 0)) / r * 100), l.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (a = ((B || 25) + (z?.topOffset + 5 || 0)) / r * 100, i = (z?.bottomOffset + 5 || 0) / r * 100);
4006
- let s = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3808
+ } else if ((s?.ref ?? G)?.current && I?.chartType === g.horizontalCombo) {
3809
+ let e = jt / n * 100, i = (K?.bottomOffset || 0) / r * 100, a = (K?.topOffset || 0) / r * 100;
3810
+ d.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "horizontal" && (a = (K?.topOffset + 5 || 0) / r * 100, i = ((Nt || 25) + (K?.bottomOffset + 5 || 0)) / r * 100), l.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "horizontal" && (a = ((Nt || 25) + (K?.topOffset + 5 || 0)) / r * 100, i = (K?.bottomOffset + 5 || 0) / r * 100);
3811
+ let s = I?.customSettings?.chartZoom?.isZoomEnabled ? K?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4007
3812
  ...e,
4008
- bottom: d.includes(F?.legendSettings?.fixedPosition || "") ? B : 5
4009
- } : e) : z?.dataZoom;
3813
+ bottom: d.includes(I?.legendSettings?.fixedPosition || "") ? Nt : 5
3814
+ } : e) : K?.dataZoom;
4010
3815
  t = {
4011
- ...z,
3816
+ ...K,
4012
3817
  grid: {
4013
- ...z?.grid,
4014
- top: `${(F?.margins?.marginTop || 0) + a}%`,
4015
- bottom: `${(F?.margins?.marginBottom || 0) + i + (p ? 5 : 0)}%`,
4016
- ...T.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
4017
- left: `${(F?.margins?.marginLeft || 0) + e}%`,
4018
- right: `${F?.margins?.marginRight || 0}%`
3818
+ ...K?.grid,
3819
+ top: `${(I?.margins?.marginTop || 0) + a}%`,
3820
+ bottom: `${(I?.margins?.marginBottom || 0) + i + (p ? 5 : 0)}%`,
3821
+ ...T.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "vertical" ? {
3822
+ left: `${(I?.margins?.marginLeft || 0) + e}%`,
3823
+ right: `${I?.margins?.marginRight || 0}%`
4019
3824
  } : {},
4020
- ...F?.legendSettings?.position && o.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
4021
- left: `${F?.margins?.marginLeft || 0}%`,
4022
- right: `${(F?.margins?.marginRight || 0) + e}%`
3825
+ ...I?.legendSettings?.position && o.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "vertical" ? {
3826
+ left: `${I?.margins?.marginLeft || 0}%`,
3827
+ right: `${(I?.margins?.marginRight || 0) + e}%`
4023
3828
  } : {}
4024
3829
  },
4025
- ...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: s } : {}
3830
+ ...I?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: s } : {}
4026
3831
  };
4027
3832
  } else {
4028
- let e = F?.legendSettings?.position === "horizontal" && d.includes(F?.legendSettings?.fixedPosition || ""), r = e && (m + B) / n * 100 || 0, i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3833
+ let e = I?.legendSettings?.position === "horizontal" && d.includes(I?.legendSettings?.fixedPosition || ""), r = e && (m + Nt) / n * 100 || 0, i = I?.customSettings?.chartZoom?.isZoomEnabled ? K?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4029
3834
  ...e,
4030
- bottom: B
3835
+ bottom: Nt
4031
3836
  } : e) : null;
4032
- if (F?.chartType === g.combo || F?.chartType === g.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
4033
- let a = ((z?.leftOffset || 0) + u) / n * 100, o = (z?.rightOffset || 0) / n * 100;
3837
+ if (I?.chartType === g.combo || I?.chartType === g.timeSeries && I?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3838
+ let a = ((K?.leftOffset || 0) + u) / n * 100, o = (K?.rightOffset || 0) / n * 100;
4034
3839
  t = {
4035
- ...z,
4036
- ...F?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
3840
+ ...K,
3841
+ ...I?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4037
3842
  grid: {
4038
- ...z?.grid,
4039
- left: `${(F?.margins?.marginLeft || 0) + a}%`,
4040
- right: `${(F?.margins?.marginRight || 0) + o}%`,
3843
+ ...K?.grid,
3844
+ left: `${(I?.margins?.marginLeft || 0) + a}%`,
3845
+ right: `${(I?.margins?.marginRight || 0) + o}%`,
4041
3846
  ...f ? {
4042
- top: `${(F?.margins?.marginTop || 0) + h}%`,
4043
- bottom: `${(F?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
3847
+ top: `${(I?.margins?.marginTop || 0) + h}%`,
3848
+ bottom: `${(I?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
4044
3849
  } : {}
4045
3850
  }
4046
3851
  };
4047
3852
  } else {
4048
- let o = F?.labelSettings?.YAxisStyle?.axisName ? (F?.labelSettings?.YAxisStyle?.axisPadding || 0) / n * 100 : 0, s = o > 0 ? o / 2 : 0;
3853
+ let o = I?.labelSettings?.YAxisStyle?.axisName ? (I?.labelSettings?.YAxisStyle?.axisPadding || 0) / n * 100 : 0, s = o > 0 ? o / 2 : 0;
4049
3854
  t = {
4050
- ...z,
4051
- ...F?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
3855
+ ...K,
3856
+ ...I?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4052
3857
  grid: {
4053
- ...z?.grid,
4054
- left: `${(F?.margins?.marginLeft || 0) + s}%`,
4055
- right: `${F?.margins?.marginRight || 0}%`,
3858
+ ...K?.grid,
3859
+ left: `${(I?.margins?.marginLeft || 0) + s}%`,
3860
+ right: `${I?.margins?.marginRight || 0}%`,
4056
3861
  ...f ? {
4057
- top: `${(F?.margins?.marginTop || 0) + h}%`,
4058
- bottom: `${(F?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
3862
+ top: `${(I?.margins?.marginTop || 0) + h}%`,
3863
+ bottom: `${(I?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
4059
3864
  } : {}
4060
3865
  },
4061
- ...c ? { series: z?.series?.map((e, t) => ({
3866
+ ...c ? { series: K?.series?.map((e, t) => ({
4062
3867
  ...e,
4063
3868
  barWidth: a,
4064
3869
  itemStyle: {
4065
3870
  ...e.itemStyle,
4066
- color: z.colors[t]
3871
+ color: K.colors[t]
4067
3872
  }
4068
3873
  })) } : {}
4069
3874
  };
4070
3875
  }
4071
3876
  }
4072
- } else t = z;
4073
- e && c.includes(F?.chartType || "") && (t = Jr(t, {
4074
- chartType: F?.chartType,
3877
+ } else t = K;
3878
+ e && c.includes(I?.chartType || "") && (t = ft(t, {
3879
+ chartType: I?.chartType,
4075
3880
  canvas: {
4076
3881
  width: e.getWidth?.() || 0,
4077
3882
  height: e.getHeight?.() || 0
4078
3883
  },
4079
- legendSettings: F?.legendSettings,
3884
+ legendSettings: I?.legendSettings,
4080
3885
  legendAppearance: O?.chartLegend,
4081
3886
  outsideLabels: !0
4082
- }) ?? t), dt(t);
3887
+ }) ?? t), xt(t);
4083
3888
  }, 100);
4084
3889
  return () => clearTimeout(e);
4085
3890
  }, [
4086
- L,
3891
+ R,
4087
3892
  s?.ref,
4088
- z,
4089
- F,
4090
- Ct,
4091
- B,
4092
- Et,
3893
+ K,
3894
+ I,
3895
+ jt,
3896
+ Nt,
3897
+ Ft,
4093
3898
  O?.chartLegend
4094
- ]), U(() => {
4095
- if (L || !z || (Bt.current &&= (clearInterval(Bt.current), void 0), F.chartType !== g.geoBarMap)) return;
4096
- let e = Ke.current;
4097
- if (!e || typeof IntersectionObserver != "function") return zt.current = !0, Bt.current = setInterval(() => {
4098
- lt(zt.current ? z.geoOption : z.barOption), zt.current = !zt.current;
3899
+ ]), z(() => {
3900
+ if (R || !K || (Jt.current &&= (clearInterval(Jt.current), void 0), I.chartType !== g.geoBarMap)) return;
3901
+ let e = $e.current;
3902
+ if (!e || typeof IntersectionObserver != "function") return qt.current = !0, Jt.current = setInterval(() => {
3903
+ vt(qt.current ? K.geoOption : K.barOption), qt.current = !qt.current;
4099
3904
  }, 2e3), () => {
4100
- Bt.current &&= (clearInterval(Bt.current), void 0);
3905
+ Jt.current &&= (clearInterval(Jt.current), void 0);
4101
3906
  };
4102
3907
  let t = () => {
4103
- Bt.current ||= setInterval(() => {
4104
- lt(zt.current ? z.geoOption : z.barOption), zt.current = !zt.current;
3908
+ Jt.current ||= setInterval(() => {
3909
+ vt(qt.current ? K.geoOption : K.barOption), qt.current = !qt.current;
4105
3910
  }, 2e3);
4106
3911
  }, n = () => {
4107
- Bt.current &&= (clearInterval(Bt.current), void 0);
3912
+ Jt.current &&= (clearInterval(Jt.current), void 0);
4108
3913
  };
4109
- zt.current = !0;
3914
+ qt.current = !0;
4110
3915
  let r = new IntersectionObserver(([e]) => {
4111
3916
  e?.isIntersecting ? t() : n();
4112
3917
  }, { threshold: 0 });
@@ -4114,57 +3919,57 @@ var Es = (e, t, n, r, i) => {
4114
3919
  r.disconnect(), n();
4115
3920
  };
4116
3921
  }, [
4117
- F.chartType,
4118
- L,
4119
- z
3922
+ I.chartType,
3923
+ R,
3924
+ K
4120
3925
  ]);
4121
- let { ref: Vt, ...Ht } = s || {};
4122
- U(() => {
4123
- if (!L && Nt) {
4124
- let e = [], n = new Set(He?.features?.map((e) => e.properties.name));
3926
+ let { ref: Yt, ...Xt } = s || {};
3927
+ z(() => {
3928
+ if (!R && Ht) {
3929
+ let e = [], n = new Set(Ye?.features?.map((e) => e.properties.name));
4125
3930
  t.forEach((t) => {
4126
- n.has(t[F.xAxis || ""]) || e.push(t);
4127
- }), kt(e);
3931
+ n.has(t[I.xAxis || ""]) || e.push(t);
3932
+ }), Rt(e);
4128
3933
  }
4129
- }, [Nt, L]);
4130
- let Ut = W(() => [{
4131
- name: F?.xAxis,
4132
- columnKey: F?.xAxis,
3934
+ }, [Ht, R]);
3935
+ let Zt = B(() => [{
3936
+ name: I?.xAxis,
3937
+ columnKey: I?.xAxis,
4133
3938
  colSpan: 1,
4134
- columnCell: (e) => e[F?.xAxis || ""]
3939
+ columnCell: (e) => e[I?.xAxis || ""]
4135
3940
  }, {
4136
- name: F?.yAxisList?.[0],
4137
- columnKey: F?.yAxisList?.[0],
3941
+ name: I?.yAxisList?.[0],
3942
+ columnKey: I?.yAxisList?.[0],
4138
3943
  colSpan: 1,
4139
- columnCell: (e) => e[F?.yAxisList?.[0] || ""] || "0"
4140
- }], [F?.xAxis, F?.yAxisList]);
4141
- U(() => {
4142
- if (!L && (qe && [
3944
+ columnCell: (e) => e[I?.yAxisList?.[0] || ""] || "0"
3945
+ }], [I?.xAxis, I?.yAxisList]);
3946
+ z(() => {
3947
+ if (!R && (tt && [
4143
3948
  g.gaugeV2,
4144
3949
  g.linearGaugeV2,
4145
3950
  g.progressBarV2,
4146
3951
  g.funnelV2
4147
- ].includes(F.chartType) && z?.drawD3Chart && z?.drawD3Chart(), ![
3952
+ ].includes(I.chartType) && K?.drawD3Chart && K?.drawD3Chart(), ![
4148
3953
  g.gaugeV2,
4149
3954
  g.linearGaugeV2,
4150
3955
  g.progressBarV2,
4151
3956
  g.funnelV2
4152
- ].includes(F.chartType))) {
3957
+ ].includes(I.chartType))) {
4153
3958
  let e = document.querySelector("#dbn-portal");
4154
3959
  (document.querySelector("#chartContainer #gaugeContainer") || e?.shadowRoot?.querySelector("#chartContainer #gaugeContainer"))?.remove(), (document.querySelector("#chartContainer #gaugeV2") || e?.shadowRoot?.querySelector("#chartContainer #gaugeV2"))?.remove(), (document.querySelector("#chartContainer #lineargauge") || e?.shadowRoot?.querySelector("#chartContainer #lineargauge"))?.remove(), (document.querySelector("#chartContainer #progressBar") || e?.shadowRoot?.querySelector("#chartContainer #progressBar"))?.remove(), (document.querySelector("#chartContainer #funnelContainer") || e?.shadowRoot?.querySelector("#chartContainer #funnelContainer"))?.remove();
4155
3960
  }
4156
3961
  }, [
4157
- L,
4158
- qe,
4159
- F.chartType,
4160
- z?.drawD3Chart
4161
- ]), U(() => {
4162
- let e = (s?.ref ?? R)?.current?.getEchartsInstance?.();
4163
- if (!e || !F?.labelSettings?.wrapText) return;
3962
+ R,
3963
+ tt,
3964
+ I.chartType,
3965
+ K?.drawD3Chart
3966
+ ]), z(() => {
3967
+ let e = (s?.ref ?? G)?.current?.getEchartsInstance?.();
3968
+ if (!e || !I?.labelSettings?.wrapText) return;
4164
3969
  let t, n = () => {
4165
3970
  clearTimeout(t), t = setTimeout(() => {
4166
3971
  let t = e.getWidth?.() || 0;
4167
- $e((e) => e === t ? e : t);
3972
+ st((e) => e === t ? e : t);
4168
3973
  }, 150);
4169
3974
  };
4170
3975
  n();
@@ -4176,14 +3981,14 @@ var Es = (e, t, n, r, i) => {
4176
3981
  };
4177
3982
  }, [
4178
3983
  s?.ref,
4179
- R,
4180
- F?.labelSettings?.wrapText,
4181
- F?.chartType
3984
+ G,
3985
+ I?.labelSettings?.wrapText,
3986
+ I?.chartType
4182
3987
  ]);
4183
- let Wt;
4184
- if (L) {
4185
- let e = kr(F.chartType), t = Rt && (D || 0) >= 6 ? Math.min(100, e) : typeof D == "number" && D > 0 ? Math.max(e, D * 24) : e;
4186
- Wt = /* @__PURE__ */ q("div", {
3988
+ let X;
3989
+ if (R) {
3990
+ let e = Je(I.chartType), t = Kt && (D || 0) >= 6 ? Math.min(100, e) : typeof D == "number" && D > 0 ? Math.max(e, D * 24) : e;
3991
+ X = /* @__PURE__ */ U("div", {
4187
3992
  style: {
4188
3993
  width: "100%",
4189
3994
  height: "100%",
@@ -4192,116 +3997,116 @@ var Es = (e, t, n, r, i) => {
4192
3997
  flexDirection: "column",
4193
3998
  alignSelf: "stretch"
4194
3999
  },
4195
- children: /* @__PURE__ */ q(Or, {
4196
- customSettings: F.customSettings,
4197
- children: /* @__PURE__ */ q(S, {
4000
+ children: /* @__PURE__ */ U(qe, {
4001
+ customSettings: I.customSettings,
4002
+ children: /* @__PURE__ */ U(S, {
4198
4003
  surface: "chart",
4199
- fallback: /* @__PURE__ */ q("div", {
4004
+ fallback: /* @__PURE__ */ U("div", {
4200
4005
  className: "dbn:w-full dbn:h-full",
4201
4006
  "aria-hidden": !0
4202
4007
  }),
4203
- children: /* @__PURE__ */ q(zs, {
4204
- type: L.type,
4205
- data: L.data,
4206
- answerLineInput: Ve,
4207
- minHeight: Rt ? void 0 : 0,
4208
- applyDensity: ze,
4209
- appearance: Re ?? void 0,
4008
+ children: /* @__PURE__ */ U(ea, {
4009
+ type: R.type,
4010
+ data: R.data,
4011
+ answerLineInput: Ke,
4012
+ minHeight: Kt ? void 0 : 0,
4013
+ applyDensity: Ve,
4014
+ appearance: Be ?? void 0,
4210
4015
  adminTheme: Ee,
4211
- colorBy: L.colorBy,
4212
- valueFormatter: Be,
4016
+ colorBy: R.colorBy,
4017
+ valueFormatter: Ge,
4213
4018
  chartColors: a === !1 ? void 0 : i,
4214
4019
  renderer: s?.opts?.renderer,
4215
- onEvents: Rs(L.type === "singleValue" ? Is(r, s) : r, s?.ref),
4020
+ onEvents: $i(R.type === "singleValue" ? Zi(r, s) : r, s?.ref),
4216
4021
  className: u
4217
4022
  })
4218
4023
  })
4219
4024
  })
4220
4025
  });
4221
- } else Wt = F.chartType === g.radar ? /* @__PURE__ */ q(ps, {
4222
- chartType: F.chartType,
4026
+ } else X = I.chartType === g.radar ? /* @__PURE__ */ U(Oi, {
4027
+ chartType: I.chartType,
4223
4028
  text: Fe ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4224
- }) : !z || Pt === null ? null : (() => {
4029
+ }) : !K || Ut === null ? null : (() => {
4225
4030
  let e = [
4226
4031
  g.indianMap,
4227
4032
  g.geoBarMap,
4228
4033
  g.geoMap,
4229
4034
  g.geoScatterMap,
4230
4035
  g.worldMap
4231
- ].includes(F.chartType);
4232
- return e && We ? /* @__PURE__ */ q(ps, {
4233
- chartType: F.chartType,
4036
+ ].includes(I.chartType);
4037
+ return e && Ze ? /* @__PURE__ */ U(Oi, {
4038
+ chartType: I.chartType,
4234
4039
  text: "Could not load the map outline. Check your connection and try again."
4235
- }) : e && !He ? /* @__PURE__ */ q(tr, {}) : F.chartType === g.singleValue ? /* @__PURE__ */ q(Ds, {
4236
- ...Ht,
4237
- value: z.value,
4238
- settings: z.settings,
4040
+ }) : e && !Ye ? /* @__PURE__ */ U(Le, {}) : I.chartType === g.singleValue ? /* @__PURE__ */ U(Hi, {
4041
+ ...Xt,
4042
+ value: K.value,
4043
+ settings: K.settings,
4239
4044
  className: u,
4240
- comparisonValue: z.comparisonValue,
4241
- trendLineOptions: z.trendLineOptions,
4045
+ comparisonValue: K.comparisonValue,
4046
+ trendLineOptions: K.trendLineOptions,
4242
4047
  events: r,
4243
- originalValue: z?.originalValue,
4244
- variables: ge,
4245
- language: ve,
4246
- translationDictionary: xe,
4247
- setHoverSubHeader: Se,
4248
- renderOpts: Pt
4249
- }) : F.chartType === g.horizontalStackTable ? /* @__PURE__ */ q(xs, {
4250
- ...Ht,
4251
- data: z.data,
4048
+ originalValue: K?.originalValue,
4049
+ variables: ve,
4050
+ language: xe,
4051
+ translationDictionary: Se,
4052
+ setHoverSubHeader: Ce,
4053
+ renderOpts: Ut
4054
+ }) : I.chartType === g.horizontalStackTable ? /* @__PURE__ */ U(Ii, {
4055
+ ...Xt,
4056
+ data: K.data,
4252
4057
  rawData: t,
4253
4058
  error: "",
4254
4059
  isLoading: !1,
4255
4060
  tableSettings: {
4256
- ...z.tableSettings,
4061
+ ...K.tableSettings,
4257
4062
  ...ke ? {
4258
4063
  textWrap: {
4259
4064
  isEnable: !0,
4260
- columns: F?.yAxisList
4065
+ columns: I?.yAxisList
4261
4066
  },
4262
4067
  enableTableSearch: !1
4263
4068
  } : {}
4264
4069
  },
4265
4070
  className: u,
4266
- stackCols: F.stackTableCols || [],
4267
- colors: z.colors,
4268
- showLabels: F.customSettings?.showStackLabels,
4071
+ stackCols: I.stackTableCols || [],
4072
+ colors: K.colors,
4073
+ showLabels: I.customSettings?.showStackLabels,
4269
4074
  onChangePage: s?.onChangePage,
4270
4075
  setChartSettings: s?.setChartSettings,
4271
4076
  dropdownZindex: s?.dropdownZindex,
4272
4077
  additionalSettings: {
4273
- barRadius: F?.customSettings?.barRadius,
4274
- barWidth: F?.customSettings?.barWidth,
4275
- labelPosition: F?.labelSettings?.position && [
4078
+ barRadius: I?.customSettings?.barRadius,
4079
+ barWidth: I?.customSettings?.barWidth,
4080
+ labelPosition: I?.labelSettings?.position && [
4276
4081
  "inside",
4277
4082
  "right",
4278
4083
  "bottom"
4279
- ].includes(F?.labelSettings?.position) ? F?.labelSettings?.position : "bottom"
4084
+ ].includes(I?.labelSettings?.position) ? I?.labelSettings?.position : "bottom"
4280
4085
  },
4281
- renderOpts: Pt
4282
- }) : F.chartType === g.table ? /* @__PURE__ */ q(bs, {
4283
- chartFieldFormats: F.customSettings?.chartFieldFormats,
4284
- yAxisList: F?.yAxisList || [],
4285
- ...Ht,
4086
+ renderOpts: Ut
4087
+ }) : I.chartType === g.table ? /* @__PURE__ */ U(Fi, {
4088
+ chartFieldFormats: I.customSettings?.chartFieldFormats,
4089
+ yAxisList: I?.yAxisList || [],
4090
+ ...Xt,
4286
4091
  onChangePaginationColumnFilters: s?.onChangePaginationColumnFilters,
4287
4092
  tableColumnFilters: s?.tableColumnFilters,
4288
4093
  events: r,
4289
- data: z.data,
4094
+ data: K.data,
4290
4095
  error: "",
4291
4096
  isLoading: !1,
4292
4097
  tableSettings: {
4293
- ...z.tableSettings,
4098
+ ...K.tableSettings,
4294
4099
  ...ke ? {
4295
4100
  textWrap: {
4296
4101
  isEnable: !0,
4297
- columns: F?.yAxisList,
4102
+ columns: I?.yAxisList,
4298
4103
  headerWrap: !0,
4299
4104
  enableLineBreaks: !0
4300
4105
  },
4301
4106
  enableTableSearch: !1
4302
4107
  } : {}
4303
4108
  },
4304
- dateColumns: F?.dateColumns,
4109
+ dateColumns: I?.dateColumns,
4305
4110
  className: u,
4306
4111
  isExternalChart: s?.isExternalChart,
4307
4112
  isFullScreenChart: s?.isFullScreenChart,
@@ -4311,37 +4116,37 @@ var Es = (e, t, n, r, i) => {
4311
4116
  paginationInfo: s?.paginationInfo,
4312
4117
  setChartSettings: s?.setChartSettings,
4313
4118
  isShowFullScreen: f,
4314
- isMetricCard: N,
4315
- isShowFullScreenEnabled: p && !we,
4119
+ isMetricCard: le,
4120
+ isShowFullScreenEnabled: p && !P,
4316
4121
  metricId: m,
4317
4122
  onMaximize: _,
4318
4123
  dropdownZindex: s?.dropdownZindex,
4319
- externalGlobalFilter: P,
4320
- setExternalGlobalFilter: fe,
4321
- language: ve,
4322
- translationDictionary: xe,
4124
+ externalGlobalFilter: me,
4125
+ setExternalGlobalFilter: he,
4126
+ language: xe,
4127
+ translationDictionary: Se,
4323
4128
  isDisableChartActions: !s?.chartClickConfig?.isEnable,
4324
4129
  onDownloadData: De,
4325
4130
  isDownloading: Oe
4326
- }) : F.chartType === g.trendAnalyzer ? /* @__PURE__ */ q(Ho, {
4327
- ...Ht,
4131
+ }) : I.chartType === g.trendAnalyzer ? /* @__PURE__ */ U(ri, {
4132
+ ...Xt,
4328
4133
  events: r,
4329
- data: z.data,
4134
+ data: K.data,
4330
4135
  error: "",
4331
4136
  isLoading: !1,
4332
4137
  tableSettings: {
4333
- ...z.tableSettings,
4138
+ ...K.tableSettings,
4334
4139
  ...ke ? {
4335
4140
  textWrap: {
4336
4141
  isEnable: !0,
4337
- columns: F?.yAxisList,
4142
+ columns: I?.yAxisList,
4338
4143
  headerWrap: !0,
4339
4144
  enableLineBreaks: !0
4340
4145
  },
4341
4146
  enableTableSearch: !1
4342
4147
  } : {}
4343
4148
  },
4344
- dateColumns: F?.dateColumns,
4149
+ dateColumns: I?.dateColumns,
4345
4150
  className: u,
4346
4151
  isExternalChart: s?.isExternalChart,
4347
4152
  isFullScreenChart: s?.isFullScreenChart,
@@ -4351,187 +4156,187 @@ var Es = (e, t, n, r, i) => {
4351
4156
  paginationInfo: s?.paginationInfo,
4352
4157
  setChartSettings: s?.setChartSettings,
4353
4158
  isShowFullScreen: f,
4354
- isMetricCard: N,
4355
- isShowFullScreenEnabled: p && !we,
4159
+ isMetricCard: le,
4160
+ isShowFullScreenEnabled: p && !P,
4356
4161
  onMaximize: _,
4357
4162
  dropdownZindex: s?.dropdownZindex,
4358
- externalGlobalFilter: P,
4359
- setExternalGlobalFilter: fe,
4360
- language: ve,
4361
- translationDictionary: xe,
4163
+ externalGlobalFilter: me,
4164
+ setExternalGlobalFilter: he,
4165
+ language: xe,
4166
+ translationDictionary: Se,
4362
4167
  isDisableChartActions: !s?.chartClickConfig?.isEnable,
4363
4168
  onDownloadData: De,
4364
4169
  isDownloading: Oe
4365
- }) : F.chartType === g.pivot ? /* @__PURE__ */ q(Ss, {
4366
- ...Ht,
4170
+ }) : I.chartType === g.pivot ? /* @__PURE__ */ U(Li, {
4171
+ ...Xt,
4367
4172
  data: t,
4368
- pivotTableSettings: z.pivotTableSettings,
4369
- tableSettings: z?.tableSettings
4370
- }) : F.chartType === g.pivotV2 ? /* @__PURE__ */ q(Cs, { props: {
4371
- columns: z?.pivotTableSettings2?.headers || [],
4173
+ pivotTableSettings: K.pivotTableSettings,
4174
+ tableSettings: K?.tableSettings
4175
+ }) : I.chartType === g.pivotV2 ? /* @__PURE__ */ U(Ri, { props: {
4176
+ columns: K?.pivotTableSettings2?.headers || [],
4372
4177
  data: t || [],
4373
- rows: z?.pivotTableSettings2?.dimensions || [],
4374
- values: z?.pivotTableSettings2?.measures || [],
4178
+ rows: K?.pivotTableSettings2?.dimensions || [],
4179
+ values: K?.pivotTableSettings2?.measures || [],
4375
4180
  onChartReady: s?.onChartReady,
4376
- headerSettings: z?.pivotTableSettings2?.headerSettings,
4377
- measures: z?.pivotTableSettings2?.aggregates || [],
4378
- isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4379
- dimensions: z?.pivotTableSettings2?.dims || [],
4181
+ headerSettings: K?.pivotTableSettings2?.headerSettings,
4182
+ measures: K?.pivotTableSettings2?.aggregates || [],
4183
+ isEnableStripedRows: K?.pivotTableSettings2?.isEnableStripedRows,
4184
+ dimensions: K?.pivotTableSettings2?.dims || [],
4380
4185
  onDrillPivotTable: y,
4381
4186
  pivotDrillState: ee,
4382
4187
  formatSettings: {
4383
- isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
4384
- numberFormatter: F?.tableSettings?.tableFormatter,
4385
- formatColumns: F?.tableSettings?.formattedColumns,
4386
- suffix: F?.tableSettings?.tableSuffix,
4387
- prefix: F?.tableSettings?.tablePrefix,
4388
- formatterOptions: F?.tableSettings?.tableNumberFormatter
4188
+ isEnableFormatting: I?.tableSettings?.isEnableNumberFormatting,
4189
+ numberFormatter: I?.tableSettings?.tableFormatter,
4190
+ formatColumns: I?.tableSettings?.formattedColumns,
4191
+ suffix: I?.tableSettings?.tableSuffix,
4192
+ prefix: I?.tableSettings?.tablePrefix,
4193
+ formatterOptions: I?.tableSettings?.tableNumberFormatter
4389
4194
  },
4390
- isEnableTableSort: F?.tableSettings?.enableSorting,
4391
- isEnableAllSort: F?.tableSettings?.isEnableAllSort,
4392
- tableSettings: z?.tableSettings
4393
- } }) : F.chartType === g.pivotV3 ? /* @__PURE__ */ q(ws, { props: {
4394
- columns: z?.pivotTableSettings3?.columns || [],
4195
+ isEnableTableSort: I?.tableSettings?.enableSorting,
4196
+ isEnableAllSort: I?.tableSettings?.isEnableAllSort,
4197
+ tableSettings: K?.tableSettings
4198
+ } }) : I.chartType === g.pivotV3 ? /* @__PURE__ */ U(zi, { props: {
4199
+ columns: K?.pivotTableSettings3?.columns || [],
4395
4200
  data: t || [],
4396
- rows: z?.pivotTableSettings3?.rows || [],
4201
+ rows: K?.pivotTableSettings3?.rows || [],
4397
4202
  onChartReady: s?.onChartReady,
4398
- headerSettings: z?.pivotTableSettings3?.headerSettings,
4399
- measures: z?.pivotTableSettings3?.aggregates || [],
4400
- isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4401
- dimensions: z?.pivotTableSettings3?.dims || [],
4203
+ headerSettings: K?.pivotTableSettings3?.headerSettings,
4204
+ measures: K?.pivotTableSettings3?.aggregates || [],
4205
+ isEnableStripedRows: K?.pivotTableSettings2?.isEnableStripedRows,
4206
+ dimensions: K?.pivotTableSettings3?.dims || [],
4402
4207
  onDrillPivotTable: y,
4403
4208
  pivotDrillState: ee,
4404
4209
  formatSettings: {
4405
- isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
4406
- numberFormatter: F?.tableSettings?.tableFormatter,
4407
- formatColumns: F?.tableSettings?.formattedColumns,
4408
- suffix: F?.tableSettings?.tableSuffix,
4409
- prefix: F?.tableSettings?.tablePrefix,
4410
- formatterOptions: F?.tableSettings?.tableNumberFormatter
4210
+ isEnableFormatting: I?.tableSettings?.isEnableNumberFormatting,
4211
+ numberFormatter: I?.tableSettings?.tableFormatter,
4212
+ formatColumns: I?.tableSettings?.formattedColumns,
4213
+ suffix: I?.tableSettings?.tableSuffix,
4214
+ prefix: I?.tableSettings?.tablePrefix,
4215
+ formatterOptions: I?.tableSettings?.tableNumberFormatter
4411
4216
  },
4412
4217
  aggregatedRowSettings: {
4413
- isAggregatedRow: z?.pivotTableSettings3?.isAggregatedRow,
4414
- aggregateType: z?.pivotTableSettings3?.aggregateType,
4415
- showAllLevels: z?.pivotTableSettings3?.isShowAllLevels,
4416
- showNonPivotColumns: z?.pivotTableSettings3?.isShowNonPivotColumns,
4417
- isReplaceParentOnExpand: z?.pivotTableSettings3?.isReplaceParentOnExpand
4218
+ isAggregatedRow: K?.pivotTableSettings3?.isAggregatedRow,
4219
+ aggregateType: K?.pivotTableSettings3?.aggregateType,
4220
+ showAllLevels: K?.pivotTableSettings3?.isShowAllLevels,
4221
+ showNonPivotColumns: K?.pivotTableSettings3?.isShowNonPivotColumns,
4222
+ isReplaceParentOnExpand: K?.pivotTableSettings3?.isReplaceParentOnExpand
4418
4223
  },
4419
- tableSettings: z?.tableSettings,
4420
- calculatedColumns: z?.pivotTableSettings3?.calculatedColumns || [],
4421
- hiddenColumns: z?.pivotTableSettings3?.hiddenColumns || [],
4422
- orderedColumns: z?.pivotTableSettings3?.orderedColumns || []
4224
+ tableSettings: K?.tableSettings,
4225
+ calculatedColumns: K?.pivotTableSettings3?.calculatedColumns || [],
4226
+ hiddenColumns: K?.pivotTableSettings3?.hiddenColumns || [],
4227
+ orderedColumns: K?.pivotTableSettings3?.orderedColumns || []
4423
4228
  } }) : [
4424
4229
  g.bar,
4425
4230
  g.line,
4426
4231
  g.area,
4427
4232
  g.stackedArea,
4428
4233
  g.timeSeries
4429
- ].includes(F.chartType) && F.customSettings?.showDynamicBehaviour && !nt ? /* @__PURE__ */ ar(fs, {
4234
+ ].includes(I.chartType) && I.customSettings?.showDynamicBehaviour && !ut ? /* @__PURE__ */ ze(Di, {
4430
4235
  style: {
4431
4236
  width: "100%",
4432
4237
  height: "100%"
4433
4238
  },
4434
- ...Hs(s),
4435
- option: St,
4239
+ ...ra(s),
4240
+ option: At,
4436
4241
  className: u,
4437
- key: Ft,
4438
- ref: s?.ref ?? R,
4439
- onEvents: yt,
4440
- notMerge: Us(F.chartType),
4441
- opts: Pt
4442
- }) : F.chartType === g.geoBarMap ? /* @__PURE__ */ q(fs, {
4242
+ key: Wt,
4243
+ ref: s?.ref ?? G,
4244
+ onEvents: Dt,
4245
+ notMerge: ia(I.chartType),
4246
+ opts: Ut
4247
+ }) : I.chartType === g.geoBarMap ? /* @__PURE__ */ U(Di, {
4443
4248
  style: {
4444
4249
  width: "100%",
4445
4250
  height: "100%"
4446
4251
  },
4447
- ...Hs(s),
4448
- option: Fr({
4449
- ...ct || z?.geoOption,
4252
+ ...ra(s),
4253
+ option: et({
4254
+ ..._t || K?.geoOption,
4450
4255
  animation: !0
4451
4256
  }),
4452
4257
  className: u,
4453
- onEvents: _t,
4258
+ onEvents: Tt,
4454
4259
  notMerge: !0,
4455
- opts: Pt
4260
+ opts: Ut
4456
4261
  }) : [
4457
4262
  g.gaugeV2,
4458
4263
  g.linearGaugeV2,
4459
4264
  g.progressBarV2,
4460
4265
  g.funnelV2
4461
- ].includes(F.chartType) ? /* @__PURE__ */ q("div", {
4462
- ref: Ye,
4266
+ ].includes(I.chartType) ? /* @__PURE__ */ U("div", {
4267
+ ref: rt,
4463
4268
  className: "dbn:w-full dbn:h-full dbn:flex dbn:flex-col"
4464
- }) : F?.chartType === g.gauge ? /* @__PURE__ */ q(ps, {
4465
- chartType: F?.chartType,
4269
+ }) : I?.chartType === g.gauge ? /* @__PURE__ */ U(Oi, {
4270
+ chartType: I?.chartType,
4466
4271
  subText: "Please use the Gauge V2 chart instead."
4467
- }) : [g.worldMap, g.indianMap].includes(F.chartType) ? /* @__PURE__ */ J("div", {
4272
+ }) : [g.worldMap, g.indianMap].includes(I.chartType) ? /* @__PURE__ */ W("div", {
4468
4273
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4469
4274
  id: "chartContainer",
4470
- children: [Nt && Ot?.length ? /* @__PURE__ */ J(b, {
4275
+ children: [Ht && Lt?.length ? /* @__PURE__ */ W(b, {
4471
4276
  variant: "popover",
4472
- onClick: () => jt(!At),
4277
+ onClick: () => Bt(!zt),
4473
4278
  className: $.buttonText,
4474
- children: ["Go To Geo ", At ? "Map >" : "Table >"]
4475
- }) : null, At ? /* @__PURE__ */ q(Lo, {
4476
- data: Ot,
4477
- headers: Ut
4478
- }) : /* @__PURE__ */ q(fs, {
4279
+ children: ["Go To Geo ", zt ? "Map >" : "Table >"]
4280
+ }) : null, zt ? /* @__PURE__ */ U(Qr, {
4281
+ data: Lt,
4282
+ headers: Zt
4283
+ }) : /* @__PURE__ */ U(Di, {
4479
4284
  style: {
4480
4285
  width: "100%",
4481
- height: Rt && (D || 0) >= 6 ? "100px" : Rt && !D ? "40%" : "100%"
4286
+ height: Kt && (D || 0) >= 6 ? "100px" : Kt && !D ? "40%" : "100%"
4482
4287
  },
4483
- ...Hs(s),
4484
- option: F.customSettings?.chartZoom?.isZoomEnabled ? {
4485
- ...xt,
4288
+ ...ra(s),
4289
+ option: I.customSettings?.chartZoom?.isZoomEnabled ? {
4290
+ ...kt,
4486
4291
  animation: !0
4487
4292
  } : {
4488
- ...xt,
4293
+ ...kt,
4489
4294
  animation: !1
4490
4295
  },
4491
4296
  className: u,
4492
- ref: s?.ref ?? R,
4493
- onEvents: _t,
4297
+ ref: s?.ref ?? G,
4298
+ onEvents: Tt,
4494
4299
  notMerge: !0,
4495
- opts: Pt
4300
+ opts: Ut
4496
4301
  })]
4497
- }) : /* @__PURE__ */ q("div", {
4302
+ }) : /* @__PURE__ */ U("div", {
4498
4303
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4499
4304
  id: "chartContainer",
4500
- children: N ? /* @__PURE__ */ q(Js, {
4305
+ children: le ? /* @__PURE__ */ U(la, {
4501
4306
  chartHeight: D,
4502
- hasDecreasedHeight: Rt,
4307
+ hasDecreasedHeight: Kt,
4503
4308
  config: s,
4504
- chartOptions: F,
4505
- options: xt,
4309
+ chartOptions: I,
4310
+ options: kt,
4506
4311
  className: u,
4507
- onEvents: bt,
4508
- chartRef: s?.ref ?? R,
4509
- renderOpts: Pt
4510
- }) : /* @__PURE__ */ ar(fs, {
4312
+ onEvents: Ot,
4313
+ chartRef: s?.ref ?? G,
4314
+ renderOpts: Ut
4315
+ }) : /* @__PURE__ */ ze(Di, {
4511
4316
  style: {
4512
4317
  width: "100%",
4513
- height: Rt && (D || 0) >= 6 ? "100px" : Rt && !D ? "40%" : "100%"
4318
+ height: Kt && (D || 0) >= 6 ? "100px" : Kt && !D ? "40%" : "100%"
4514
4319
  },
4515
- ...Hs(s),
4516
- option: F.customSettings?.chartZoom?.isZoomEnabled ? {
4517
- ...xt,
4320
+ ...ra(s),
4321
+ option: I.customSettings?.chartZoom?.isZoomEnabled ? {
4322
+ ...kt,
4518
4323
  animation: !0
4519
4324
  } : {
4520
- ...xt,
4325
+ ...kt,
4521
4326
  animation: !1
4522
4327
  },
4523
4328
  className: u,
4524
- key: Ft,
4525
- onEvents: bt,
4526
- ref: s?.ref ?? R,
4527
- notMerge: Us(F.chartType),
4528
- opts: Pt
4329
+ key: Wt,
4330
+ onEvents: Ot,
4331
+ ref: s?.ref ?? G,
4332
+ notMerge: ia(I.chartType),
4333
+ opts: Ut
4529
4334
  })
4530
4335
  });
4531
4336
  })();
4532
- return /* @__PURE__ */ q("div", {
4337
+ return /* @__PURE__ */ U("div", {
4533
4338
  ref: Pe,
4534
- ...L ? {
4339
+ ...R ? {
4535
4340
  "data-chart-engine": "v2",
4536
4341
  className: u,
4537
4342
  style: {
@@ -4539,7 +4344,7 @@ var Es = (e, t, n, r, i) => {
4539
4344
  height: "100%"
4540
4345
  }
4541
4346
  } : { style: { display: "contents" } },
4542
- children: Wt
4347
+ children: X
4543
4348
  });
4544
4349
  });
4545
- export { Sr as a, xr as c, vr as d, fr as f, Tr as i, br as l, js as n, Cr as o, bs as r, wr as s, Ys as t, yr as u };
4350
+ export { Ki as n, Fi as r, ua as t };