@databrainhq/plugin 0.17.9-beta.43 → 0.17.9-beta.44

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 (41) hide show
  1. package/dist/{Accordion-BJZvSJH0.mjs → Accordion-Cy-5tB2k.mjs} +1 -1
  2. package/dist/{CardChartSlot-Dud3b4Kr.mjs → CardChartSlot-M8R3rwEo.mjs} +5 -5
  3. package/dist/{Chart-blMtDZFn.mjs → Chart-DI9Q8DYD.mjs} +1309 -1306
  4. package/dist/{ChartTypePanel-DnC9CWZC.mjs → ChartTypePanel-BBssCpRp.mjs} +8 -8
  5. package/dist/{CreateGlobalFilter-DhLJ5PWY.mjs → CreateGlobalFilter-a_WfOG2W.mjs} +2 -2
  6. package/dist/{CreateMetricV2-DL4xFvJu.mjs → CreateMetricV2-BkXcFrH_.mjs} +11 -11
  7. package/dist/{HorizontalStackTable-B19brjYy.mjs → HorizontalStackTable-BhoPbnKc.mjs} +3 -3
  8. package/dist/{ManageMetricsV2-DW7wJio8.mjs → ManageMetricsV2-BocEVzO8.mjs} +3 -3
  9. package/dist/{MetricCardV2-vhJAdNKr.mjs → MetricCardV2-iJxepSOH.mjs} +6 -6
  10. package/dist/{NoDataFound-CnyRZvTR.mjs → NoDataFound-WonH_a0N.mjs} +1 -1
  11. package/dist/{Panel-3RWyWgXh.mjs → Panel-DRV42pAI.mjs} +1 -1
  12. package/dist/{PivotTableV2-DxhqS1OY.mjs → PivotTableV2-Dihz35k0.mjs} +2 -2
  13. package/dist/{PivotTableV3-DiuBQ5n-.mjs → PivotTableV3-C5WGgIum.mjs} +4 -4
  14. package/dist/{Portal-BTLYpyGw.mjs → Portal-Cp67-BDB.mjs} +2 -2
  15. package/dist/{RadioButton-BAt6TrDa.mjs → RadioButton-BnqOjYK0.mjs} +1 -1
  16. package/dist/{ScheduleEmail-WseIH8Ki.mjs → ScheduleEmail-DZbdud7C.mjs} +6 -6
  17. package/dist/{SearchMetricData-Cb9Qoj8m.mjs → SearchMetricData-C8O7Y7CG.mjs} +13 -13
  18. package/dist/{SortPanel-CQtFcmqH.mjs → SortPanel-m7jYuXyi.mjs} +8 -8
  19. package/dist/{Table-C9dfHqkF.mjs → Table-CckCtD2_.mjs} +4 -4
  20. package/dist/{TagInputField-e4XjIUp8.mjs → TagInputField-CvJbfwSa.mjs} +4 -4
  21. package/dist/{TextAreaField-BuqrfbMv.mjs → TextAreaField-cCGBjB3y.mjs} +2 -2
  22. package/dist/{TimeSeriesSettings-dViQrRep.mjs → TimeSeriesSettings-C7aIRx2i.mjs} +2 -2
  23. package/dist/{cardQueryError-Db3b9m0J.mjs → cardQueryError-DwznQSq9.mjs} +9 -9
  24. package/dist/{conditionalFormatting-Bai27hUw.mjs → conditionalFormatting-CS3fx5pm.mjs} +1 -1
  25. package/dist/{createGlobalFilter.module-p78NO3er.mjs → createGlobalFilter.module-DDGfJPdK.mjs} +1 -1
  26. package/dist/data.cjs +1 -1
  27. package/dist/data.mjs +1 -1
  28. package/dist/{echarts-DrNH41dX.mjs → echarts-C9zFEHXn.mjs} +2 -2
  29. package/dist/{metric.mutation-BeFEs0dM.mjs → metric.mutation-BSjxRaPw.mjs} +1 -1
  30. package/dist/{permissions-DvvBRF0v.mjs → permissions-R19Ru6hK.mjs} +5 -5
  31. package/dist/{pluginV3Request-Dm2TklEY.mjs → pluginV3Request-D_QKmnO_.mjs} +1 -1
  32. package/dist/{renderer-Dz4fjFqK.mjs → renderer-IXdlfK64.mjs} +1 -1
  33. package/dist/{timeseries-CtIFSr0j.mjs → timeseries-DJvfDNcM.mjs} +1 -1
  34. package/dist/{toTasteAppearance-DfYdBD4D.mjs → toTasteAppearance-y_fBMeqX.mjs} +3 -3
  35. package/dist/{useGuesTokenUsageLog-PAVor9-b.mjs → useGuesTokenUsageLog-Bqm0Oiv4.mjs} +1 -1
  36. package/dist/{usePublishArchivedMetrics-CaewX5Kw.mjs → usePublishArchivedMetrics-B-SePnEf.mjs} +2 -2
  37. package/dist/{useQuery-D-AVPpCT.mjs → useQuery-BqW8Qb29.mjs} +1 -1
  38. package/dist/webcomponents.css +1 -1
  39. package/dist/webcomponents.es.js +25 -25
  40. package/dist/webcomponents.umd.js +4 -4
  41. package/package.json +1 -1
@@ -2,237 +2,237 @@ import "react";
2
2
  import "react-dom";
3
3
  import "react-dom/client";
4
4
  import { a as e, i as t, o as n, r, t as i } from "./rolldown-runtime-C1JUX4Ur.mjs";
5
- import { Ai as a, Cr as o, Ea as s, Gi as c, H as l, Lr as u, On as d, Qr as f, Sn as p, Sr as m, Va as h, Yt as g, _r as _, a as v, d as y, eo as b, kn as ee, l as x, la as S, mi as C, pi as w, so as T, y as te } from "./Portal-BTLYpyGw.mjs";
6
- import { a as ne, c as E, i as re, l as ie, m as ae, n as oe, o as se, r as D, s as O, t as k, u as A } from "./toTasteAppearance-DfYdBD4D.mjs";
7
- import { $ as j, A as M, G as N, J as ce, O as le, Q as ue, S as P, X as F, Y as de, Z as fe } from "./option-B1zeYJnm.mjs";
8
- import { g as pe, m as me, p as he, r as ge, t as _e, y as ve } from "./timeseries-CtIFSr0j.mjs";
9
- import { n as ye } from "./text-CtrvkDIo.mjs";
10
- import { $ as be, $r as xe, Ar as Se, C as Ce, Cs as we, D as Te, Do as Ee, Dr as De, E as Oe, Ec as I, Er as L, Fc as ke, Fs as Ae, Ft as je, Gt as Me, Hi as Ne, Ii as Pe, Ka as Fe, Kr as R, L as Ie, Ln as Le, M as Re, Nc as ze, O as Be, Oo as Ve, Or as He, Pi as Ue, Qa as We, Qr as Ge, Rc as Ke, S as qe, So as Je, T as z, Tc as Ye, Vc as Xe, Vr as Ze, Wa as Qe, Wc as $e, Xa as et, Xc as tt, Xn as nt, Xr as rt, Ya as it, Yr as B, Za as at, Zr as ot, _ as st, _r as ct, a as lt, ai as ut, b as dt, bc as ft, bo as pt, br as mt, c as ht, d as gt, dc as _t, dr as vt, ei as yt, el as bt, eo as xt, er as St, et as Ct, f as wt, fc as Tt, fi as Et, fr as Dt, g as Ot, gc as kt, go as At, h as jt, hc as Mt, ho as Nt, i as Pt, ii as Ft, it as It, jr as Lt, kc as Rt, l as zt, lc as Bt, m as Vt, mo as Ht, n as Ut, ni as Wt, no as Gt, nt as Kt, o as qt, oi as Jt, p as Yt, po as Xt, qn as Zt, qr as Qt, r as $t, ri as en, ro as tn, rs as nn, s as rn, t as an, ti as on, tl as sn, u as cn, ur as ln, v as un, vc as dn, vn as fn, vo as pn, vr as mn, w as hn, wc as gn, wo as _n, x as vn, xc as yn, xo as bn, xr as xn, y as Sn, yo as Cn, zc as wn, zi as Tn } from "./echarts-CrmHGsP0.mjs";
11
- import { t as En } from "./SeriesData-Bv5A1N4c.mjs";
12
- import { t as Dn } from "./createDimensions-S6mCgFoA.mjs";
13
- import { t as On } from "./createSeriesData-Be6hvJRM.mjs";
14
- import { n as kn, r as An, t as jn } from "./dataStackHelper-Dd9_z38I.mjs";
15
- import { n as Mn, t as Nn } from "./axisHelper-tGz65klr.mjs";
16
- import { n as Pn, t as Fn } from "./Axis-9fJG6_xT.mjs";
17
- import { n as In } from "./axisNiceTicks-CggqNl9O.mjs";
18
- import { t as Ln } from "./extension-CLVYoN7B.mjs";
19
- import { c as Rn } from "./install-C_kPiY2Z.mjs";
20
- import { t as V } from "./NoDataFound-CnyRZvTR.mjs";
21
- import { n as zn, t as Bn } from "./Accordion-BJZvSJH0.mjs";
22
- import { a as Vn, i as Hn } from "./tslib.es6-D6qdqxsl.mjs";
23
- import { n as Un, t as Wn } from "./esm-B2ERA78g.mjs";
24
- import { a as Gn, i as Kn, n as qn, o as Jn, r as Yn, t as Xn } from "./dist-DHNl58qD.mjs";
25
- import { n as Zn, r as Qn } from "./cardActions-DEbl3R_a.mjs";
26
- import { t as $n } from "./conditionalFormatting-Bai27hUw.mjs";
27
- import { t as er } from "./Loader-CHJMbWv0.mjs";
28
- import { t as H } from "./list.module-DmT9azvq.mjs";
29
- import { n as tr, o as nr } from "./canvasTeardown-CyI2ZHcq.mjs";
30
- import * as U from "react";
31
- import rr, { createElement as ir, forwardRef as ar, lazy as or, useCallback as sr, useEffect as W, useLayoutEffect as cr, useMemo as G, useRef as K, useState as q, useSyncExternalStore as lr } from "react";
32
- import { Fragment as ur, jsx as J, jsxs as Y } from "react/jsx-runtime";
5
+ import { Ai as a, Cr as o, Ea as s, Gi as c, H as l, Lr as u, On as d, Qr as f, Sn as p, Sr as m, Va as h, Yt as g, _r as _, a as v, d as y, eo as b, kn as ee, l as x, la as S, mi as C, pi as w, so as T, y as te } from "./Portal-Cp67-BDB.mjs";
6
+ import { a as ne, c as E, i as re, l as ie, m as ae, n as oe, o as se, r as D, s as O, t as k, u as A } from "./toTasteAppearance-y_fBMeqX.mjs";
7
+ import { $ as j, A as M, G as ce, J as le, O as ue, Q as de, S as N, X as P, Y as fe, Z as pe } from "./option-B1zeYJnm.mjs";
8
+ import { g as me, m as he, p as ge, r as _e, t as ve, y as ye } from "./timeseries-DJvfDNcM.mjs";
9
+ import { n as be } from "./text-CtrvkDIo.mjs";
10
+ import { $ as xe, $r as Se, Ar as Ce, C as we, Cs as Te, D as Ee, Do as De, Dr as Oe, E as ke, Ec as F, Er as I, Fc as Ae, Fs as je, Ft as Me, Gt as Ne, Hi as Pe, Ii as Fe, Ka as Ie, Kr as L, L as Le, Ln as Re, M as ze, Nc as Be, O as Ve, Oo as He, Or as Ue, Pi as We, Qa as Ge, Qr as Ke, Rc as qe, S as Je, So as Ye, T as R, Tc as Xe, Vc as Ze, Vr as Qe, Wa as $e, Wc as et, Xa as tt, Xc as nt, Xn as rt, Xr as it, Ya as at, Yr as z, Za as ot, Zr as st, _ as ct, _r as lt, a as ut, ai as dt, b as ft, bc as pt, bo as mt, br as ht, c as gt, d as _t, dc as vt, dr as yt, ei as bt, el as xt, eo as St, er as Ct, et as wt, 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-CrmHGsP0.mjs";
11
+ import { t as Dn } from "./SeriesData-Bv5A1N4c.mjs";
12
+ import { t as On } from "./createDimensions-S6mCgFoA.mjs";
13
+ import { t as kn } from "./createSeriesData-Be6hvJRM.mjs";
14
+ import { n as An, r as jn, t as Mn } from "./dataStackHelper-Dd9_z38I.mjs";
15
+ import { n as Nn, t as Pn } from "./axisHelper-tGz65klr.mjs";
16
+ import { n as Fn, t as In } from "./Axis-9fJG6_xT.mjs";
17
+ import { n as Ln } from "./axisNiceTicks-CggqNl9O.mjs";
18
+ import { t as Rn } from "./extension-CLVYoN7B.mjs";
19
+ import { c as zn } from "./install-C_kPiY2Z.mjs";
20
+ import { t as B } from "./NoDataFound-WonH_a0N.mjs";
21
+ import { n as Bn, t as Vn } from "./Accordion-Cy-5tB2k.mjs";
22
+ import { a as Hn, i as Un } from "./tslib.es6-D6qdqxsl.mjs";
23
+ import { n as Wn, t as Gn } from "./esm-B2ERA78g.mjs";
24
+ import { a as Kn, i as qn, n as Jn, o as Yn, r as Xn, t as Zn } from "./dist-DHNl58qD.mjs";
25
+ import { n as Qn, r as $n } from "./cardActions-DEbl3R_a.mjs";
26
+ import { t as er } from "./conditionalFormatting-CS3fx5pm.mjs";
27
+ import { t as tr } from "./Loader-CHJMbWv0.mjs";
28
+ import { t as V } from "./list.module-DmT9azvq.mjs";
29
+ import { n as nr, o as rr } from "./canvasTeardown-CyI2ZHcq.mjs";
30
+ import * as H from "react";
31
+ 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";
32
+ import { Fragment as dr, jsx as q, jsxs as J } from "react/jsx-runtime";
33
33
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/helper.js
34
- var dr = /* @__PURE__ */ r({
35
- createDimensions: () => Dn,
36
- createList: () => fr,
37
- createScale: () => mr,
38
- createSymbol: () => Ie,
39
- createTextStyle: () => gr,
40
- dataStack: () => pr,
41
- enableHoverEmphasis: () => Et,
42
- getECData: () => Ue,
43
- getLayoutRect: () => Me,
44
- mixinAxisModelCommonMethods: () => hr
34
+ var fr = /* @__PURE__ */ r({
35
+ createDimensions: () => On,
36
+ createList: () => pr,
37
+ createScale: () => hr,
38
+ createSymbol: () => Le,
39
+ createTextStyle: () => _r,
40
+ dataStack: () => mr,
41
+ enableHoverEmphasis: () => Dt,
42
+ getECData: () => We,
43
+ getLayoutRect: () => Ne,
44
+ mixinAxisModelCommonMethods: () => gr
45
45
  });
46
- function fr(e) {
47
- return On(null, e);
46
+ function pr(e) {
47
+ return kn(null, e);
48
48
  }
49
- var pr = {
50
- isDimensionStacked: An,
51
- enableDataStack: jn,
52
- getStackedDimension: kn
49
+ var mr = {
50
+ isDimensionStacked: jn,
51
+ enableDataStack: Mn,
52
+ getStackedDimension: An
53
53
  };
54
- function mr(e, t) {
54
+ function hr(e, t) {
55
55
  var n = t;
56
- t instanceof nt || (n = new nt(t));
57
- var r = Mn(n), i = Nn(n, r, !1);
58
- return e[1] < e[0] && (e = e.slice().reverse()), In(i, n, null, null, e), i;
56
+ t instanceof rt || (n = new rt(t));
57
+ var r = Nn(n), i = Pn(n, r, !1);
58
+ return e[1] < e[0] && (e = e.slice().reverse()), Ln(i, n, null, null, e), i;
59
59
  }
60
- function hr(e) {
61
- Xe(e, Pn);
60
+ function gr(e) {
61
+ Ze(e, Fn);
62
62
  }
63
- function gr(e, t) {
64
- return t ||= {}, St(e, null, null, t.state !== "normal");
63
+ function _r(e, t) {
64
+ return t ||= {}, Ct(e, null, null, t.state !== "normal");
65
65
  }
66
66
  //#endregion
67
67
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api/number.js
68
- var _r = /* @__PURE__ */ r({
69
- MAX_SAFE_INTEGER: () => Qe,
70
- asc: () => Fe,
71
- getPercentWithPrecision: () => it,
72
- getPixelPrecision: () => et,
73
- getPrecision: () => at,
74
- getPrecisionSafe: () => We,
75
- isNumeric: () => xt,
76
- isRadianAroundZero: () => Gt,
77
- linearMap: () => tn,
78
- nice: () => Xt,
79
- numericToNumber: () => Ht,
80
- parseDate: () => Nt,
81
- parsePercent: () => At,
82
- quantile: () => pn,
83
- quantity: () => Cn,
84
- quantityExponent: () => pt,
85
- reformIntervals: () => bn,
86
- remRadian: () => Je,
87
- round: () => _n
88
- }), vr = /* @__PURE__ */ r({
89
- format: () => fn,
90
- parse: () => Nt,
91
- roundTime: () => Le
68
+ var vr = /* @__PURE__ */ r({
69
+ MAX_SAFE_INTEGER: () => $e,
70
+ asc: () => Ie,
71
+ getPercentWithPrecision: () => at,
72
+ getPixelPrecision: () => tt,
73
+ getPrecision: () => ot,
74
+ getPrecisionSafe: () => Ge,
75
+ isNumeric: () => St,
76
+ isRadianAroundZero: () => Kt,
77
+ linearMap: () => nn,
78
+ nice: () => Zt,
79
+ numericToNumber: () => Ut,
80
+ parseDate: () => Pt,
81
+ parsePercent: () => jt,
82
+ quantile: () => mn,
83
+ quantity: () => wn,
84
+ quantityExponent: () => mt,
85
+ reformIntervals: () => xn,
86
+ remRadian: () => Ye,
87
+ round: () => vn
92
88
  }), yr = /* @__PURE__ */ r({
93
- Arc: () => Ge,
94
- BezierCurve: () => xe,
95
- BoundingRect: () => we,
96
- Circle: () => Jt,
97
- CompoundPath: () => ot,
98
- Ellipse: () => ut,
99
- Group: () => Ve,
100
- Image: () => Ne,
101
- IncrementalDisplayable: () => Qt,
102
- Line: () => yt,
103
- LinearGradient: () => rt,
104
- Polygon: () => Wt,
105
- Polyline: () => on,
106
- RadialGradient: () => B,
107
- Rect: () => Tn,
108
- Ring: () => en,
109
- Sector: () => Ft,
110
- Text: () => Pe,
111
- clipPointsByRect: () => ln,
112
- clipRectByRect: () => vt,
113
- createIcon: () => Dt,
114
- extendPath: () => ct,
115
- extendShape: () => mn,
116
- getShapeClass: () => mt,
117
- getTransform: () => xn,
118
- initProps: () => Ze,
119
- makeImage: () => L,
120
- makePath: () => De,
121
- mergePath: () => He,
122
- registerShape: () => Se,
123
- resizePath: () => Lt,
124
- updateProps: () => R
89
+ format: () => pn,
90
+ parse: () => Pt,
91
+ roundTime: () => Re
125
92
  }), br = /* @__PURE__ */ r({
126
- bind: () => _t,
127
- clone: () => Tt,
128
- curry: () => Mt,
129
- defaults: () => kt,
130
- each: () => dn,
131
- extend: () => ft,
132
- filter: () => yn,
133
- indexOf: () => gn,
134
- inherits: () => Ye,
135
- isArray: () => I,
136
- isFunction: () => Rt,
137
- isObject: () => ze,
138
- isString: () => ke,
139
- map: () => Ke,
140
- merge: () => wn,
141
- reduce: () => $e
93
+ Arc: () => Ke,
94
+ BezierCurve: () => Se,
95
+ BoundingRect: () => Te,
96
+ Circle: () => Yt,
97
+ CompoundPath: () => st,
98
+ Ellipse: () => dt,
99
+ Group: () => He,
100
+ Image: () => Pe,
101
+ IncrementalDisplayable: () => $t,
102
+ Line: () => bt,
103
+ LinearGradient: () => it,
104
+ Polygon: () => Gt,
105
+ Polyline: () => sn,
106
+ RadialGradient: () => z,
107
+ Rect: () => En,
108
+ Ring: () => tn,
109
+ Sector: () => It,
110
+ Text: () => Fe,
111
+ clipPointsByRect: () => un,
112
+ clipRectByRect: () => yt,
113
+ createIcon: () => Ot,
114
+ extendPath: () => lt,
115
+ extendShape: () => hn,
116
+ getShapeClass: () => ht,
117
+ getTransform: () => Sn,
118
+ initProps: () => Qe,
119
+ makeImage: () => I,
120
+ makePath: () => Oe,
121
+ mergePath: () => Ue,
122
+ registerShape: () => Ce,
123
+ resizePath: () => Rt,
124
+ updateProps: () => L
125
+ }), xr = /* @__PURE__ */ r({
126
+ bind: () => vt,
127
+ clone: () => Et,
128
+ curry: () => Nt,
129
+ defaults: () => At,
130
+ each: () => fn,
131
+ extend: () => pt,
132
+ filter: () => bn,
133
+ indexOf: () => _n,
134
+ inherits: () => Xe,
135
+ isArray: () => F,
136
+ isFunction: () => zt,
137
+ isObject: () => Be,
138
+ isString: () => Ae,
139
+ map: () => qe,
140
+ merge: () => Tn,
141
+ reduce: () => et
142
142
  });
143
143
  //#endregion
144
144
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/lib/export/api.js
145
- function xr(e) {
146
- var t = je.extend(e);
147
- return je.registerClass(t), t;
148
- }
149
145
  function Sr(e) {
150
- var t = Kt.extend(e);
151
- return Kt.registerClass(t), t;
146
+ var t = Me.extend(e);
147
+ return Me.registerClass(t), t;
152
148
  }
153
149
  function Cr(e) {
154
- var t = It.extend(e);
155
- return It.registerClass(t), t;
150
+ var t = qt.extend(e);
151
+ return qt.registerClass(t), t;
156
152
  }
157
153
  function wr(e) {
158
- var t = Ct.extend(e);
159
- return Ct.registerClass(t), t;
154
+ var t = Lt.extend(e);
155
+ return Lt.registerClass(t), t;
156
+ }
157
+ function Tr(e) {
158
+ var t = wt.extend(e);
159
+ return wt.registerClass(t), t;
160
160
  }
161
161
  //#endregion
162
162
  //#region ../../../node_modules/.pnpm/echarts@6.1.0/node_modules/echarts/core.js
163
- var Tr = /* @__PURE__ */ r({
164
- Axis: () => Fn,
165
- ChartView: () => Ct,
166
- ComponentModel: () => je,
167
- ComponentView: () => Kt,
168
- List: () => En,
169
- Model: () => nt,
170
- PRIORITY: () => an,
171
- SeriesModel: () => It,
172
- color: () => nn,
173
- connect: () => Ut,
174
- dataTool: () => $t,
175
- dependencies: () => Pt,
176
- disConnect: () => lt,
177
- disconnect: () => qt,
178
- dispose: () => rn,
179
- env: () => sn,
180
- extendChartView: () => wr,
181
- extendComponentModel: () => xr,
182
- extendComponentView: () => Sr,
183
- extendSeriesModel: () => Cr,
184
- format: () => me,
185
- getCoordinateSystemDimensions: () => ht,
186
- getInstanceByDom: () => zt,
187
- getInstanceById: () => cn,
188
- getMap: () => gt,
189
- graphic: () => yr,
190
- helper: () => dr,
191
- init: () => wt,
192
- innerDrawElementOnCanvas: () => Re,
193
- matrix: () => Ae,
194
- number: () => _r,
195
- parseGeoJSON: () => Rn,
196
- parseGeoJson: () => Rn,
197
- registerAction: () => Yt,
198
- registerCoordinateSystem: () => Vt,
199
- registerCustomSeries: () => jt,
200
- registerLayout: () => Ot,
201
- registerLoading: () => st,
202
- registerLocale: () => Zt,
203
- registerMap: () => un,
204
- registerPostInit: () => Sn,
205
- registerPostUpdate: () => dt,
206
- registerPreprocessor: () => vn,
207
- registerProcessor: () => qe,
208
- registerTheme: () => Ce,
209
- registerTransform: () => hn,
210
- registerUpdateLifecycle: () => z,
211
- registerVisual: () => Oe,
212
- setCanvasCreator: () => Te,
213
- setPlatformAPI: () => bt,
214
- throttle: () => be,
215
- time: () => vr,
216
- use: () => Ln,
217
- util: () => br,
218
- vector: () => Bt,
219
- version: () => Be,
220
- zrUtil: () => tt,
221
- zrender: () => Ee
163
+ var Er = /* @__PURE__ */ r({
164
+ Axis: () => In,
165
+ ChartView: () => wt,
166
+ ComponentModel: () => Me,
167
+ ComponentView: () => qt,
168
+ List: () => Dn,
169
+ Model: () => rt,
170
+ PRIORITY: () => on,
171
+ SeriesModel: () => Lt,
172
+ color: () => rn,
173
+ connect: () => Wt,
174
+ dataTool: () => en,
175
+ dependencies: () => Ft,
176
+ disConnect: () => ut,
177
+ disconnect: () => Jt,
178
+ dispose: () => an,
179
+ env: () => cn,
180
+ extendChartView: () => Tr,
181
+ extendComponentModel: () => Sr,
182
+ extendComponentView: () => Cr,
183
+ extendSeriesModel: () => wr,
184
+ format: () => he,
185
+ getCoordinateSystemDimensions: () => gt,
186
+ getInstanceByDom: () => Bt,
187
+ getInstanceById: () => ln,
188
+ getMap: () => _t,
189
+ graphic: () => br,
190
+ helper: () => fr,
191
+ init: () => Tt,
192
+ innerDrawElementOnCanvas: () => ze,
193
+ matrix: () => je,
194
+ number: () => vr,
195
+ parseGeoJSON: () => zn,
196
+ parseGeoJson: () => zn,
197
+ registerAction: () => Xt,
198
+ registerCoordinateSystem: () => Ht,
199
+ registerCustomSeries: () => Mt,
200
+ registerLayout: () => kt,
201
+ registerLoading: () => ct,
202
+ registerLocale: () => Qt,
203
+ registerMap: () => dn,
204
+ registerPostInit: () => Cn,
205
+ registerPostUpdate: () => ft,
206
+ registerPreprocessor: () => yn,
207
+ registerProcessor: () => Je,
208
+ registerTheme: () => we,
209
+ registerTransform: () => gn,
210
+ registerUpdateLifecycle: () => R,
211
+ registerVisual: () => ke,
212
+ setCanvasCreator: () => Ee,
213
+ setPlatformAPI: () => xt,
214
+ throttle: () => xe,
215
+ time: () => yr,
216
+ use: () => Rn,
217
+ util: () => xr,
218
+ vector: () => Vt,
219
+ version: () => Ve,
220
+ zrUtil: () => nt,
221
+ zrender: () => De
222
222
  });
223
223
  //#endregion
224
224
  //#region src/charts/chartMinHeight.ts
225
- function Er(e) {
225
+ function Dr(e) {
226
226
  let t = e ? E[e] : void 0;
227
- return t ? F(t) : 200;
227
+ return t ? P(t) : 200;
228
228
  }
229
229
  //#endregion
230
230
  //#region src/charts/echarts6Compatibility.ts
231
- var Dr = /* @__PURE__ */ new WeakMap(), Or = (e) => typeof e == "object" && !!e && !Array.isArray(e), kr = (e, t) => Array.isArray(e) ? e.map((e) => Or(e) ? t(e) : e) : Or(e) ? t(e) : e, Ar = (e) => ({
231
+ var Or = /* @__PURE__ */ new WeakMap(), kr = (e) => typeof e == "object" && !!e && !Array.isArray(e), Ar = (e, t) => Array.isArray(e) ? e.map((e) => kr(e) ? t(e) : e) : kr(e) ? t(e) : e, jr = (e) => ({
232
232
  ...e,
233
233
  outerBoundsMode: e.outerBoundsMode === void 0 ? "none" : e.outerBoundsMode
234
- }), jr = (e) => {
235
- let t = Or(e.axisLabel) ? e.axisLabel : {};
234
+ }), Mr = (e) => {
235
+ let t = kr(e.axisLabel) ? e.axisLabel : {};
236
236
  return {
237
237
  ...e,
238
238
  containShape: e.containShape !== void 0 && e.containShape,
@@ -241,21 +241,21 @@ var Dr = /* @__PURE__ */ new WeakMap(), Or = (e) => typeof e == "object" && !!e
241
241
  nameMoveOverlap: t.nameMoveOverlap !== void 0 && t.nameMoveOverlap
242
242
  }
243
243
  };
244
- }, Mr = (e) => {
245
- if (!Or(e)) return e;
246
- let t = Dr.get(e);
244
+ }, Nr = (e) => {
245
+ if (!kr(e)) return e;
246
+ let t = Or.get(e);
247
247
  if (t !== void 0) return t;
248
248
  let n = {
249
249
  ...e,
250
250
  legacyViewCoordSysCenterBase: e.legacyViewCoordSysCenterBase === void 0 || e.legacyViewCoordSysCenterBase,
251
251
  richInheritPlainLabel: e.richInheritPlainLabel !== void 0 && e.richInheritPlainLabel
252
252
  };
253
- return e.grid !== void 0 && (n.grid = kr(e.grid, Ar)), e.xAxis !== void 0 && (n.xAxis = kr(e.xAxis, jr)), e.yAxis !== void 0 && (n.yAxis = kr(e.yAxis, jr)), Dr.set(e, n), n;
254
- }, Nr = [
253
+ return e.grid !== void 0 && (n.grid = Ar(e.grid, jr)), e.xAxis !== void 0 && (n.xAxis = Ar(e.xAxis, Mr)), e.yAxis !== void 0 && (n.yAxis = Ar(e.yAxis, Mr)), Or.set(e, n), n;
254
+ }, Pr = [
255
255
  h.pie,
256
256
  h.doughnut,
257
257
  h.rose
258
- ], Pr = [
258
+ ], Fr = [
259
259
  "top-left",
260
260
  "top-center",
261
261
  "top-right",
@@ -264,29 +264,29 @@ var Dr = /* @__PURE__ */ new WeakMap(), Or = (e) => typeof e == "object" && !!e
264
264
  "bottom-right",
265
265
  "left",
266
266
  "right"
267
- ], Fr = (e) => e && Pr.includes(e) ? e : void 0, Ir = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Lr = (e) => {
267
+ ], Ir = (e) => e && Fr.includes(e) ? e : void 0, Lr = (e) => e === "horizontal" || e === "vertical" ? e : void 0, Rr = (e) => {
268
268
  if (typeof e == "number" && Number.isFinite(e)) return e;
269
269
  if (typeof e == "string" && e.trim() !== "") {
270
270
  let t = Number(e);
271
271
  return Number.isFinite(t) ? t : void 0;
272
272
  }
273
- }, Rr = (e) => {
273
+ }, zr = (e) => {
274
274
  let t = e.legendAppearance, n = e.legendSettings;
275
275
  return {
276
276
  show: t?.show ?? n?.show,
277
- fixedPosition: Fr(t?.fixedPosition ?? n?.fixedPosition),
278
- legendAppearance: Ir(t?.legendAppearance ?? n?.position),
277
+ fixedPosition: Ir(t?.fixedPosition ?? n?.fixedPosition),
278
+ legendAppearance: Lr(t?.legendAppearance ?? n?.position),
279
279
  disableLegendScrolling: t?.disableLegendScrolling ?? n?.disableScroll,
280
280
  truncateLegend: t?.truncateLegend ?? n?.truncateLegendValue,
281
- fontSize: Lr(t?.fontSize) ?? Lr(n?.fontSize)
281
+ fontSize: Rr(t?.fontSize) ?? Rr(n?.fontSize)
282
282
  };
283
283
  };
284
- function zr(e) {
284
+ function Br(e) {
285
285
  let { chartType: t, canvas: n, legendLabels: r } = e;
286
- if (!t || !Nr.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
287
- let i = Rr(e);
286
+ if (!t || !Pr.includes(t) || !n || !(n.width > 0) || !(n.height > 0) || !r || r.length === 0) return null;
287
+ let i = zr(e);
288
288
  if (i.show === !1) return null;
289
- let a = N({
289
+ let a = ce({
290
290
  labels: r,
291
291
  layout: n,
292
292
  legend: i,
@@ -294,7 +294,7 @@ function zr(e) {
294
294
  directLabelling: !0
295
295
  });
296
296
  if (!a.show) return null;
297
- let o = le({
297
+ let o = ue({
298
298
  legendRoom: !0,
299
299
  layout: n,
300
300
  outsideLabels: e.outsideLabels !== !1,
@@ -311,14 +311,14 @@ function zr(e) {
311
311
  insetRightPx: a.reserveRightPx
312
312
  };
313
313
  }
314
- var Br = /* @__PURE__ */ new Set([
314
+ var Vr = /* @__PURE__ */ new Set([
315
315
  void 0,
316
316
  "outside",
317
317
  "outer"
318
- ]), Vr = (e) => {
318
+ ]), Hr = (e) => {
319
319
  let t = Array.isArray(e) ? e[e.length - 1] : e, n = /^(\d+(?:\.\d+)?)%$/.exec(String(t ?? "").trim());
320
320
  return n ? Number(n[1]) / 100 : 0;
321
- }, Hr = (e) => !!e?.label?.show && Br.has(e.label.position), Ur = (e) => {
321
+ }, Ur = (e) => !!e?.label?.show && Vr.has(e.label.position), Wr = (e) => {
322
322
  let t = Array.isArray(e.data) ? e.data : [], n = e.label?.formatter;
323
323
  return t.flatMap((e) => {
324
324
  let t = e && typeof e == "object" ? e : {}, r = String(t.name ?? "");
@@ -332,20 +332,20 @@ var Br = /* @__PURE__ */ new Set([
332
332
  return r.split("\n");
333
333
  });
334
334
  };
335
- function Wr(e, t, n) {
335
+ function Gr(e, t, n) {
336
336
  let { chartType: r, canvas: i } = t;
337
- if (!r || !Nr.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
338
- let a = e.filter(Hr);
337
+ if (!r || !Pr.includes(r) || !i || !(i.width > 0) || !(i.height > 0)) return null;
338
+ let a = e.filter(Ur);
339
339
  if (a.length === 0 || n.centerX !== void 0 && !/%$/.test(n.centerX)) return null;
340
- let o = Math.max(...e.map((e) => Vr(e?.radius))), s = a[0], c = P({
340
+ let o = Math.max(...e.map((e) => Hr(e?.radius))), s = a[0], c = N({
341
341
  layout: i,
342
342
  outerRadius: o * n.scale,
343
343
  centerX: n.centerX,
344
344
  insetLeftPx: n.insetLeftPx,
345
345
  insetRightPx: n.insetRightPx,
346
- labelLines: a.flatMap(Ur),
347
- fontSizePx: Lr(s.label?.fontSize),
348
- leaderPx: (Lr(s.labelLine?.length) ?? 10) + (Lr(s.labelLine?.length2) ?? 20)
346
+ labelLines: a.flatMap(Wr),
347
+ fontSizePx: Rr(s.label?.fontSize),
348
+ leaderPx: (Rr(s.labelLine?.length) ?? 10) + (Rr(s.labelLine?.length2) ?? 20)
349
349
  });
350
350
  return c.mode === "hidden" ? {
351
351
  hide: !0,
@@ -355,21 +355,21 @@ function Wr(e, t, n) {
355
355
  radiusScale: c.radiusScale
356
356
  };
357
357
  }
358
- function Gr(e, t) {
358
+ function Kr(e, t) {
359
359
  if (!e) return e;
360
360
  let n = e.series;
361
361
  if (!Array.isArray(n) || n.length === 0) return e;
362
- let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? zr({
362
+ let r = e.legend?.data, i = Array.isArray(r) ? r.flat(2).filter((e) => e != null).map(String) : [], a = i.length > 0 ? Br({
363
363
  ...t,
364
364
  legendLabels: i
365
- }) : 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 = Wr(n, t, {
365
+ }) : 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 = Gr(n, t, {
366
366
  centerX: o ? o.center[0] : Array.isArray(s) ? String(s[0]) : void 0,
367
367
  scale: o ? o.radiusScale : 1,
368
368
  insetLeftPx: o?.insetLeftPx ?? 0,
369
369
  insetRightPx: o?.insetRightPx ?? 0
370
370
  });
371
371
  if (!o && !c) return e;
372
- let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && Hr(e)), d = u ? l * .82 : l;
372
+ let l = (o?.radiusScale ?? 1) * (c?.radiusScale ?? 1), u = !!c?.hide && e.legend?.show === !1 && n.some((e) => e && Ur(e)), d = u ? l * .82 : l;
373
373
  return {
374
374
  ...e,
375
375
  ...o ? { legend: {
@@ -390,7 +390,7 @@ function Gr(e, t) {
390
390
  ...o ? { center: o.center } : {},
391
391
  ...u ? { center: [(o?.center ?? e.center ?? ["50%", "50%"])[0], "44%"] } : {},
392
392
  ...e.radius !== void 0 && d < 1 ? { radius: M(e.radius, d) } : {},
393
- ...c?.hide && Hr(e) ? {
393
+ ...c?.hide && Ur(e) ? {
394
394
  label: {
395
395
  ...e.label,
396
396
  show: !1
@@ -405,13 +405,13 @@ function Gr(e, t) {
405
405
  }
406
406
  //#endregion
407
407
  //#region src/charts/withMetricChartAppearance.ts
408
- var Kr = [
408
+ var qr = [
409
409
  "top",
410
410
  "left",
411
411
  "right",
412
412
  "bottom",
413
413
  "inside"
414
- ], qr = [
414
+ ], Jr = [
415
415
  "top-left",
416
416
  "top-center",
417
417
  "top-right",
@@ -420,7 +420,7 @@ var Kr = [
420
420
  "bottom-left",
421
421
  "bottom-center",
422
422
  "bottom-right"
423
- ], Jr = [
423
+ ], Yr = [
424
424
  "circle",
425
425
  "rect",
426
426
  "roundRect",
@@ -428,34 +428,34 @@ var Kr = [
428
428
  "diamond",
429
429
  "arrow",
430
430
  "none"
431
- ], Yr = (e) => e != null, Xr = (e) => {
431
+ ], Xr = (e) => e != null, Zr = (e) => {
432
432
  let t = e?.position;
433
- if (t && t !== "hidden" && Kr.includes(t)) return { position: t };
434
- }, Zr = (e) => {
433
+ if (t && t !== "hidden" && qr.includes(t)) return { position: t };
434
+ }, Qr = (e) => {
435
435
  if (!e) return;
436
436
  let t = f.legendSettings ?? {}, n = {};
437
- return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && qr.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && Jr.includes(e.legendShape) && (n.legendShape = e.legendShape), Yr(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;
438
- }, Qr = (e, t) => {
437
+ return e.show === !1 && (n.show = !1), e.fixedPosition && e.fixedPosition !== t.fixedPosition && Jr.includes(e.fixedPosition) && (n.fixedPosition = e.fixedPosition), e.position === "vertical" && (n.legendAppearance = "vertical"), e.legendShape && e.legendShape !== t.legendShape && Yr.includes(e.legendShape) && (n.legendShape = e.legendShape), Xr(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;
438
+ }, $r = (e, t) => {
439
439
  if (!t) return e;
440
440
  if (!e) return t;
441
441
  let n = { ...t };
442
- for (let [t, r] of Object.entries(e)) Yr(r) && (n[t] = r);
442
+ for (let [t, r] of Object.entries(e)) Xr(r) && (n[t] = r);
443
443
  return n;
444
- }, $r = (e, t) => {
445
- let n = Qr(e?.chartLabel, Xr(t?.labelSettings)), r = Qr(e?.chartLegend, Zr(t?.legendSettings));
444
+ }, ei = (e, t) => {
445
+ let n = $r(e?.chartLabel, Zr(t?.labelSettings)), r = $r(e?.chartLegend, Qr(t?.legendSettings));
446
446
  return n === e?.chartLabel && r === e?.chartLegend ? e : {
447
447
  ...e,
448
448
  ...n ? { chartLabel: n } : {},
449
449
  ...r ? { chartLegend: r } : {}
450
450
  };
451
- }, ei = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, ti = /^[\\/]{2}/;
452
- function ni(e, t) {
451
+ }, ti = /^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i, ni = /^[\\/]{2}/;
452
+ function ri(e, t) {
453
453
  return t + e.replace(/\\/g, "/");
454
454
  }
455
- function X(e, t) {
455
+ function Y(e, t) {
456
456
  if (e === !1 || e == null) throw Error(t);
457
457
  }
458
- function ri(e, t) {
458
+ function ii(e, t) {
459
459
  if (!e) {
460
460
  typeof console < "u" && console.warn(t);
461
461
  try {
@@ -463,10 +463,10 @@ function ri(e, t) {
463
463
  } catch {}
464
464
  }
465
465
  }
466
- function ii({ pathname: e = "/", search: t = "", hash: n = "" }) {
466
+ function ai({ pathname: e = "/", search: t = "", hash: n = "" }) {
467
467
  return t && t !== "?" && (e += t.charAt(0) === "?" ? t : "?" + t), n && n !== "#" && (e += n.charAt(0) === "#" ? n : "#" + n), e;
468
468
  }
469
- function ai(e) {
469
+ function oi(e) {
470
470
  let t = {};
471
471
  if (e) {
472
472
  let n = e.indexOf("#");
@@ -476,21 +476,21 @@ function ai(e) {
476
476
  }
477
477
  return t;
478
478
  }
479
- function oi(e, t, n = "/") {
480
- return si(e, t, n, !1);
479
+ function si(e, t, n = "/") {
480
+ return ci(e, t, n, !1);
481
481
  }
482
- function si(e, t, n, r, i) {
483
- let a = Ei((typeof t == "string" ? ai(t) : t).pathname || "/", n);
482
+ function ci(e, t, n, r, i) {
483
+ let a = Di((typeof t == "string" ? oi(t) : t).pathname || "/", n);
484
484
  if (a == null) return null;
485
- let o = i ?? ci(e), s = null, c = Ti(a);
486
- for (let e = 0; s == null && e < o.length; ++e) s = xi(o[e], c, r);
485
+ let o = i ?? li(e), s = null, c = Ei(a);
486
+ for (let e = 0; s == null && e < o.length; ++e) s = Si(o[e], c, r);
487
487
  return s;
488
488
  }
489
- function ci(e) {
490
- let t = li(e);
491
- return di(t), t;
489
+ function li(e) {
490
+ let t = ui(e);
491
+ return fi(t), t;
492
492
  }
493
- function li(e, t = [], n = [], r = "", i = !1) {
493
+ function ui(e, t = [], n = [], r = "", i = !1) {
494
494
  let a = (e, a, o = i, s) => {
495
495
  let c = {
496
496
  relativePath: s === void 0 ? e.path || "" : s,
@@ -500,14 +500,14 @@ function li(e, t = [], n = [], r = "", i = !1) {
500
500
  };
501
501
  if (c.relativePath.startsWith("/")) {
502
502
  if (!c.relativePath.startsWith(r) && o) return;
503
- X(c.relativePath.startsWith(r), `Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`), c.relativePath = c.relativePath.slice(r.length);
503
+ 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);
504
504
  }
505
- let l = Z([r, c.relativePath]), u = n.concat(c);
506
- e.children && e.children.length > 0 && (X(e.index !== !0, `Index routes must not have child routes. Please remove all child routes from route path "${l}".`), li(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
505
+ let l = X([r, c.relativePath]), u = n.concat(c);
506
+ 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}".`), ui(e.children, t, u, l, o)), (e.path != null || e.index) && t.push({
507
507
  path: l,
508
- score: yi(l, e.index),
508
+ score: bi(l, e.index),
509
509
  routesMeta: u.map((e, t) => {
510
- let [n, r] = wi(e.relativePath, e.caseSensitive, t === u.length - 1);
510
+ let [n, r] = Ti(e.relativePath, e.caseSensitive, t === u.length - 1);
511
511
  return {
512
512
  ...e,
513
513
  matcher: n,
@@ -518,68 +518,68 @@ function li(e, t = [], n = [], r = "", i = !1) {
518
518
  };
519
519
  return e.forEach((e, t) => {
520
520
  if (e.path === "" || !e.path?.includes("?")) a(e, t);
521
- else for (let n of ui(e.path)) a(e, t, !0, n);
521
+ else for (let n of di(e.path)) a(e, t, !0, n);
522
522
  }), t;
523
523
  }
524
- function ui(e) {
524
+ function di(e) {
525
525
  let t = e.split("/");
526
526
  if (t.length === 0) return [];
527
527
  let [n, ...r] = t, i = n.endsWith("?"), a = n.replace(/\?$/, "");
528
528
  if (r.length === 0) return i ? [a, ""] : [a];
529
- let o = ui(r.join("/")), s = [];
529
+ let o = di(r.join("/")), s = [];
530
530
  return s.push(...o.map((e) => e === "" ? a : [a, e].join("/"))), i && s.push(...o), s.map((t) => e.startsWith("/") && t === "" ? "/" : t);
531
531
  }
532
- function di(e) {
533
- e.sort((e, t) => e.score === t.score ? bi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
532
+ function fi(e) {
533
+ e.sort((e, t) => e.score === t.score ? xi(e.routesMeta.map((e) => e.childrenIndex), t.routesMeta.map((e) => e.childrenIndex)) : t.score - e.score);
534
534
  }
535
- var fi = /^:[\w-]+$/, pi = 3, mi = 2, hi = 1, gi = 10, _i = -2, vi = (e) => e === "*";
536
- function yi(e, t) {
535
+ var pi = /^:[\w-]+$/, mi = 3, hi = 2, gi = 1, _i = 10, vi = -2, yi = (e) => e === "*";
536
+ function bi(e, t) {
537
537
  let n = e.split("/"), r = n.length;
538
- return n.some(vi) && (r += _i), t && (r += mi), n.filter((e) => !vi(e)).reduce((e, t) => e + (fi.test(t) ? pi : t === "" ? hi : gi), r);
538
+ return n.some(yi) && (r += vi), t && (r += hi), n.filter((e) => !yi(e)).reduce((e, t) => e + (pi.test(t) ? mi : t === "" ? gi : _i), r);
539
539
  }
540
- function bi(e, t) {
540
+ function xi(e, t) {
541
541
  return e.length === t.length && e.slice(0, -1).every((e, n) => e === t[n]) ? e[e.length - 1] - t[t.length - 1] : 0;
542
542
  }
543
- function xi(e, t, n = !1) {
543
+ function Si(e, t, n = !1) {
544
544
  let { routesMeta: r } = e, i = {}, a = "/", o = [];
545
545
  for (let e = 0; e < r.length; ++e) {
546
546
  let s = r[e], c = e === r.length - 1, l = a === "/" ? t : t.slice(a.length) || "/", u = {
547
547
  path: s.relativePath,
548
548
  caseSensitive: s.caseSensitive,
549
549
  end: c
550
- }, d = s.matcher && s.compiledParams ? Ci(u, l, s.matcher, s.compiledParams) : Si(u, l), f = s.route;
551
- if (!d && c && n && !r[r.length - 1].route.index && (d = Si({
550
+ }, d = s.matcher && s.compiledParams ? wi(u, l, s.matcher, s.compiledParams) : Ci(u, l), f = s.route;
551
+ if (!d && c && n && !r[r.length - 1].route.index && (d = Ci({
552
552
  path: s.relativePath,
553
553
  caseSensitive: s.caseSensitive,
554
554
  end: !1
555
555
  }, l)), !d) return null;
556
556
  Object.assign(i, d.params), o.push({
557
557
  params: i,
558
- pathname: Z([a, d.pathname]),
559
- pathnameBase: Fi(Z([a, d.pathnameBase])),
558
+ pathname: X([a, d.pathname]),
559
+ pathnameBase: Ii(X([a, d.pathnameBase])),
560
560
  route: f
561
- }), d.pathnameBase !== "/" && (a = Z([a, d.pathnameBase]));
561
+ }), d.pathnameBase !== "/" && (a = X([a, d.pathnameBase]));
562
562
  }
563
563
  return o;
564
564
  }
565
- function Si(e, t) {
565
+ function Ci(e, t) {
566
566
  typeof e == "string" && (e = {
567
567
  path: e,
568
568
  caseSensitive: !1,
569
569
  end: !0
570
570
  });
571
- let [n, r] = wi(e.path, e.caseSensitive, e.end);
572
- return Ci(e, t, n, r);
571
+ let [n, r] = Ti(e.path, e.caseSensitive, e.end);
572
+ return wi(e, t, n, r);
573
573
  }
574
- function Ci(e, t, n, r) {
574
+ function wi(e, t, n, r) {
575
575
  let i = t.match(n);
576
576
  if (!i) return null;
577
- let a = i[0], o = Pi(a, 1), s = i.slice(1);
577
+ let a = i[0], o = Fi(a, 1), s = i.slice(1);
578
578
  return {
579
579
  params: r.reduce((e, { paramName: t, isOptional: n }, r) => {
580
580
  if (t === "*") {
581
581
  let e = s[r] || "";
582
- o = Pi(a.slice(0, a.length - e.length), 1);
582
+ o = Fi(a.slice(0, a.length - e.length), 1);
583
583
  }
584
584
  let i = s[r];
585
585
  return e[t] = n && !i ? void 0 : (i || "").replace(/%2F/g, "/"), e;
@@ -589,8 +589,8 @@ function Ci(e, t, n, r) {
589
589
  pattern: e
590
590
  };
591
591
  }
592
- function wi(e, t = !1, n = !0) {
593
- ri(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(/\*$/, "/*")}".`);
592
+ function Ti(e, t = !1, n = !0) {
593
+ ii(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(/\*$/, "/*")}".`);
594
594
  let r = [], i = "^" + e.replace(/\/*\*?$/, "").replace(/^\/*/, "/").replace(/[\\.*+^${}|()[\]]/g, "\\$&").replace(/\/:([\w-]+)(\?)?/g, (e, t, n, i, a) => {
595
595
  if (r.push({
596
596
  paramName: t,
@@ -603,46 +603,46 @@ function wi(e, t = !1, n = !0) {
603
603
  }).replace(/\/([\w-]+)\?(\/|$)/g, "(/$1)?$2");
604
604
  return e.endsWith("*") ? (r.push({ paramName: "*" }), i += e === "*" || e === "/*" ? "(.*)$" : "(?:\\/(.+)|\\/*)$") : n ? i += "\\/*$" : e !== "" && e !== "/" && (i += "(?:(?=\\/|$))"), [new RegExp(i, t ? void 0 : "i"), r];
605
605
  }
606
- function Ti(e) {
606
+ function Ei(e) {
607
607
  try {
608
608
  return e.split("/").map((e) => decodeURIComponent(e).replace(/\//g, "%2F")).join("/");
609
609
  } catch (t) {
610
- return ri(!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;
610
+ return ii(!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;
611
611
  }
612
612
  }
613
- function Ei(e, t) {
613
+ function Di(e, t) {
614
614
  if (t === "/") return e;
615
615
  if (!e.toLowerCase().startsWith(t.toLowerCase())) return null;
616
616
  let n = t.endsWith("/") ? t.length - 1 : t.length, r = e.charAt(n);
617
617
  return r && r !== "/" ? null : e.slice(n) || "/";
618
618
  }
619
- function Di(e, t = "/") {
620
- let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? ai(e) : e, a;
621
- return n ? (n = Ni(n), a = n.startsWith("/") || n.startsWith("\\") ? Oi(n.substring(1), "/") : Oi(n, t)) : a = t, {
619
+ function Oi(e, t = "/") {
620
+ let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ? oi(e) : e, a;
621
+ return n ? (n = Pi(n), a = n.startsWith("/") || n.startsWith("\\") ? ki(n.substring(1), "/") : ki(n, t)) : a = t, {
622
622
  pathname: a,
623
- search: Ii(r),
624
- hash: Li(i)
623
+ search: Li(r),
624
+ hash: Ri(i)
625
625
  };
626
626
  }
627
- function Oi(e, t) {
628
- let n = Pi(t).split("/");
627
+ function ki(e, t) {
628
+ let n = Fi(t).split("/");
629
629
  return e.split("/").forEach((e) => {
630
630
  e === ".." ? n.length > 1 && n.pop() : e !== "." && n.push(e);
631
631
  }), n.length > 1 ? n.join("/") : "/";
632
632
  }
633
- function ki(e, t, n, r) {
633
+ function Ai(e, t, n, r) {
634
634
  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.`;
635
635
  }
636
- function Ai(e) {
636
+ function ji(e) {
637
637
  return e.filter((e, t) => t === 0 || e.route.path && e.route.path.length > 0);
638
638
  }
639
- function ji(e) {
640
- let t = Ai(e);
639
+ function Mi(e) {
640
+ let t = ji(e);
641
641
  return t.map((e, n) => n === t.length - 1 ? e.pathname : e.pathnameBase);
642
642
  }
643
- function Mi(e, t, n, r = !1) {
643
+ function Ni(e, t, n, r = !1) {
644
644
  let i;
645
- typeof e == "string" ? i = ai(e) : (i = { ...e }, X(!i.pathname || !i.pathname.includes("?"), ki("?", "pathname", "search", i)), X(!i.pathname || !i.pathname.includes("#"), ki("#", "pathname", "hash", i)), X(!i.search || !i.search.includes("#"), ki("#", "search", "hash", i)));
645
+ typeof e == "string" ? i = oi(e) : (i = { ...e }, Y(!i.pathname || !i.pathname.includes("?"), Ai("?", "pathname", "search", i)), Y(!i.pathname || !i.pathname.includes("#"), Ai("#", "pathname", "hash", i)), Y(!i.search || !i.search.includes("#"), Ai("#", "search", "hash", i)));
646
646
  let a = e === "" || i.pathname === "", o = a ? "/" : i.pathname, s;
647
647
  if (o == null) s = n;
648
648
  else {
@@ -654,40 +654,40 @@ function Mi(e, t, n, r = !1) {
654
654
  }
655
655
  s = e >= 0 ? t[e] : "/";
656
656
  }
657
- let c = Di(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
657
+ let c = Oi(i, s), l = o && o !== "/" && o.endsWith("/"), u = (a || o === ".") && n.endsWith("/");
658
658
  return !c.pathname.endsWith("/") && (l || u) && (c.pathname += "/"), c;
659
659
  }
660
- var Ni = (e) => e.replace(/[\\/]{2,}/g, "/"), Z = (e) => Ni(e.join("/"));
661
- function Pi(e, t = 0) {
660
+ var Pi = (e) => e.replace(/[\\/]{2,}/g, "/"), X = (e) => Pi(e.join("/"));
661
+ function Fi(e, t = 0) {
662
662
  let n = e.length;
663
663
  for (; n > t && e.charCodeAt(n - 1) === 47;) n--;
664
664
  return n === e.length ? e : e.slice(0, n);
665
665
  }
666
- var Fi = (e) => Pi(e).replace(/^\/*/, "/"), Ii = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Li = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, Ri = class {
666
+ var Ii = (e) => Fi(e).replace(/^\/*/, "/"), Li = (e) => !e || e === "?" ? "" : e.startsWith("?") ? e : "?" + e, Ri = (e) => !e || e === "#" ? "" : e.startsWith("#") ? e : "#" + e, zi = class {
667
667
  constructor(e, t, n, r = !1) {
668
668
  this.status = e, this.statusText = t || "", this.internal = r, n instanceof Error ? (this.data = n.toString(), this.error = n) : this.data = n;
669
669
  }
670
670
  };
671
- function zi(e) {
671
+ function Bi(e) {
672
672
  return e != null && typeof e.status == "number" && typeof e.statusText == "string" && typeof e.internal == "boolean" && "data" in e;
673
673
  }
674
- function Bi(e) {
675
- return Z(e.map((e) => e.route.path).filter(Boolean)) || "/";
674
+ function Vi(e) {
675
+ return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
676
676
  }
677
- var Vi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
678
- function Hi(e, t) {
677
+ var Hi = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
678
+ function Ui(e, t) {
679
679
  let n = e;
680
- if (typeof n != "string" || !ei.test(n)) return {
680
+ if (typeof n != "string" || !ti.test(n)) return {
681
681
  absoluteURL: void 0,
682
682
  isExternal: !1,
683
683
  to: n
684
684
  };
685
685
  let r = n, i = !1;
686
- if (Vi) try {
687
- let e = new URL(window.location.href), r = ti.test(n) ? new URL(ni(n, e.protocol)) : new URL(n), a = Ei(r.pathname, t);
686
+ if (Hi) try {
687
+ let e = new URL(window.location.href), r = ni.test(n) ? new URL(ri(n, e.protocol)) : new URL(n), a = Di(r.pathname, t);
688
688
  r.origin === e.origin && a != null ? n = a + r.search + r.hash : i = !0;
689
689
  } catch {
690
- ri(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
690
+ ii(!1, `<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`);
691
691
  }
692
692
  return {
693
693
  absoluteURL: r,
@@ -696,43 +696,43 @@ function Hi(e, t) {
696
696
  };
697
697
  }
698
698
  Object.getOwnPropertyNames(Object.prototype).sort().join("\0");
699
- var Ui = new URL("http://localhost");
700
- function Wi(e) {
699
+ var Wi = new URL("http://localhost");
700
+ function Gi(e) {
701
701
  if (e.createURL) return e.createURL("/");
702
702
  try {
703
- return new URL(e.createHref("/"), Ui);
703
+ return new URL(e.createHref("/"), Wi);
704
704
  } catch {
705
- return Ui;
705
+ return Wi;
706
706
  }
707
707
  }
708
- function Gi(e, t) {
708
+ function Ki(e, t) {
709
709
  return e.origin === t.origin && (e.origin !== "null" || e.protocol === t.protocol && e.host === t.host);
710
710
  }
711
- function Ki(e, t) {
711
+ function qi(e, t) {
712
712
  if (e.startsWith("//")) return !0;
713
713
  let n = t.protocol.toLowerCase();
714
714
  return e.toLowerCase().startsWith(n) ? t.host === "" || e.slice(n.length).startsWith("//") : !1;
715
715
  }
716
- function qi(e, t, n, r) {
716
+ function Ji(e, t, n, r) {
717
717
  let i = null;
718
718
  try {
719
719
  i = e == null ? null : new URL(e, n);
720
720
  } catch {}
721
- let a = new URL(t, n), o = i != null && !Gi(i, n), s = !Gi(a, n);
721
+ let a = new URL(t, n), o = i != null && !Ki(i, n), s = !Ki(a, n);
722
722
  if (r === "reject") {
723
723
  if (o || s) throw Error("External navigation is not allowed");
724
- } else if (s && (i == null || !Ki(e, i) || !Gi(i, a))) throw Error("External navigation is not allowed");
724
+ } else if (s && (i == null || !qi(e, i) || !Ki(i, a))) throw Error("External navigation is not allowed");
725
725
  }
726
- var Ji = [
726
+ var Yi = [
727
727
  "POST",
728
728
  "PUT",
729
729
  "PATCH",
730
730
  "DELETE"
731
731
  ];
732
- new Set(Ji);
733
- var Yi = ["GET", ...Ji];
734
732
  new Set(Yi);
735
- var Xi = [
733
+ var Xi = ["GET", ...Yi];
734
+ new Set(Xi);
735
+ var Zi = [
736
736
  "about:",
737
737
  "blob:",
738
738
  "chrome:",
@@ -744,38 +744,38 @@ var Xi = [
744
744
  "filesystem:",
745
745
  "javascript:"
746
746
  ];
747
- function Zi(e) {
747
+ function Qi(e) {
748
748
  try {
749
- return Xi.includes(new URL(e).protocol);
749
+ return Zi.includes(new URL(e).protocol);
750
750
  } catch {
751
751
  return !1;
752
752
  }
753
753
  }
754
- var Qi = U.createContext(null);
755
- Qi.displayName = "DataRouter";
756
- var $i = U.createContext(null);
757
- $i.displayName = "DataRouterState";
758
- var ea = U.createContext(!1);
759
- function ta() {
760
- return U.useContext(ea);
754
+ var $i = H.createContext(null);
755
+ $i.displayName = "DataRouter";
756
+ var ea = H.createContext(null);
757
+ ea.displayName = "DataRouterState";
758
+ var ta = H.createContext(!1);
759
+ function na() {
760
+ return H.useContext(ta);
761
761
  }
762
- var na = U.createContext({ isTransitioning: !1 });
763
- na.displayName = "ViewTransition";
764
- var ra = U.createContext(/* @__PURE__ */ new Map());
765
- ra.displayName = "Fetchers";
766
- var ia = U.createContext(null);
767
- ia.displayName = "Await";
768
- var aa = U.createContext(null);
769
- aa.displayName = "Navigation";
770
- var oa = U.createContext(null);
762
+ var ra = H.createContext({ isTransitioning: !1 });
763
+ ra.displayName = "ViewTransition";
764
+ var ia = H.createContext(/* @__PURE__ */ new Map());
765
+ ia.displayName = "Fetchers";
766
+ var aa = H.createContext(null);
767
+ aa.displayName = "Await";
768
+ var Z = H.createContext(null);
769
+ Z.displayName = "Navigation";
770
+ var oa = H.createContext(null);
771
771
  oa.displayName = "Location";
772
- var sa = U.createContext({
772
+ var sa = H.createContext({
773
773
  outlet: null,
774
774
  matches: [],
775
775
  isDataRoute: !1
776
776
  });
777
777
  sa.displayName = "Route";
778
- var ca = U.createContext(null);
778
+ var ca = H.createContext(null);
779
779
  ca.displayName = "RouteError";
780
780
  var la = "REACT_ROUTER_ERROR", ua = "REDIRECT", da = "ROUTE_ERROR_RESPONSE";
781
781
  function fa(e) {
@@ -787,45 +787,45 @@ function fa(e) {
787
787
  function pa(e) {
788
788
  if (e.startsWith(`${la}:${da}:{`)) try {
789
789
  let t = JSON.parse(e.slice(40));
790
- if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new Ri(t.status, t.statusText, t.data);
790
+ if (typeof t == "object" && t && typeof t.status == "number" && typeof t.statusText == "string") return new zi(t.status, t.statusText, t.data);
791
791
  } catch {}
792
792
  }
793
793
  function ma(e, { relative: t } = {}) {
794
- X(ha(), "useHref() may be used only in the context of a <Router> component.");
795
- let { basename: n, navigator: r } = U.useContext(aa), { hash: i, pathname: a, search: o } = xa(e, { relative: t }), s = a;
796
- return n !== "/" && (s = a === "/" ? n : Z([n, a])), r.createHref({
794
+ Y(ha(), "useHref() may be used only in the context of a <Router> component.");
795
+ let { basename: n, navigator: r } = H.useContext(Z), { hash: i, pathname: a, search: o } = xa(e, { relative: t }), s = a;
796
+ return n !== "/" && (s = a === "/" ? n : X([n, a])), r.createHref({
797
797
  pathname: s,
798
798
  search: o,
799
799
  hash: i
800
800
  });
801
801
  }
802
802
  function ha() {
803
- return U.useContext(oa) != null;
803
+ return H.useContext(oa) != null;
804
804
  }
805
805
  function ga() {
806
- return X(ha(), "useLocation() may be used only in the context of a <Router> component."), U.useContext(oa).location;
806
+ return Y(ha(), "useLocation() may be used only in the context of a <Router> component."), H.useContext(oa).location;
807
807
  }
808
808
  var _a = "You should call navigate() in a React.useEffect(), not when your component is first rendered.";
809
809
  function va(e) {
810
- U.useContext(aa).static || U.useLayoutEffect(e);
810
+ H.useContext(Z).static || H.useLayoutEffect(e);
811
811
  }
812
812
  function ya() {
813
- let { isDataRoute: e } = U.useContext(sa);
813
+ let { isDataRoute: e } = H.useContext(sa);
814
814
  return e ? La() : ba();
815
815
  }
816
816
  function ba() {
817
- X(ha(), "useNavigate() may be used only in the context of a <Router> component.");
818
- let e = U.useContext(Qi), { basename: t, navigator: n } = U.useContext(aa), { matches: r } = U.useContext(sa), { pathname: i } = ga(), a = JSON.stringify(ji(r)), o = U.useRef(!1);
817
+ Y(ha(), "useNavigate() may be used only in the context of a <Router> component.");
818
+ let e = H.useContext($i), { basename: t, navigator: n } = H.useContext(Z), { matches: r } = H.useContext(sa), { pathname: i } = ga(), a = JSON.stringify(Mi(r)), o = H.useRef(!1);
819
819
  return va(() => {
820
820
  o.current = !0;
821
- }), U.useCallback((r, s = {}) => {
822
- if (ri(o.current, _a), !o.current) return;
821
+ }), H.useCallback((r, s = {}) => {
822
+ if (ii(o.current, _a), !o.current) return;
823
823
  if (typeof r == "number") {
824
824
  n.go(r);
825
825
  return;
826
826
  }
827
- let c = Mi(r, JSON.parse(a), i, s.relative === "path");
828
- e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : Z([t, c.pathname])), qi(typeof r == "string" ? r : ii(r), n.createHref(c), Wi(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
827
+ let c = Ni(r, JSON.parse(a), i, s.relative === "path");
828
+ e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t : X([t, c.pathname])), Ji(typeof r == "string" ? r : ai(r), n.createHref(c), Gi(n), "reject"), (s.replace ? n.replace : n.push)(c, s.state, s);
829
829
  }, [
830
830
  t,
831
831
  n,
@@ -834,10 +834,10 @@ function ba() {
834
834
  e
835
835
  ]);
836
836
  }
837
- U.createContext(null);
837
+ H.createContext(null);
838
838
  function xa(e, { relative: t } = {}) {
839
- let { matches: n } = U.useContext(sa), { pathname: r } = ga(), i = JSON.stringify(ji(n));
840
- return U.useMemo(() => Mi(e, JSON.parse(i), r, t === "path"), [
839
+ let { matches: n } = H.useContext(sa), { pathname: r } = ga(), i = JSON.stringify(Mi(n));
840
+ return H.useMemo(() => Ni(e, JSON.parse(i), r, t === "path"), [
841
841
  e,
842
842
  i,
843
843
  r,
@@ -845,8 +845,8 @@ function xa(e, { relative: t } = {}) {
845
845
  ]);
846
846
  }
847
847
  function Sa(e, t, n) {
848
- X(ha(), "useRoutes() may be used only in the context of a <Router> component.");
849
- let { navigator: r } = U.useContext(aa), { matches: i } = U.useContext(sa), a = i[i.length - 1], o = a ? a.params : {}, s = a ? a.pathname : "/", c = a ? a.pathnameBase : "/", l = a && a.route;
848
+ Y(ha(), "useRoutes() may be used only in the context of a <Router> component.");
849
+ let { navigator: r } = H.useContext(Z), { matches: i } = H.useContext(sa), a = i[i.length - 1], o = a ? a.params : {}, s = a ? a.pathname : "/", c = a ? a.pathnameBase : "/", l = a && a.route;
850
850
  {
851
851
  let e = l && l.path || "";
852
852
  za(s, !l || e.endsWith("*") || e.endsWith("*?"), `You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (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.
@@ -855,22 +855,22 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
855
855
  }
856
856
  let u = ga(), d;
857
857
  if (t) {
858
- let e = typeof t == "string" ? ai(t) : t;
859
- X(c === "/" || e.pathname?.startsWith(c), `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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`), d = e;
858
+ let e = typeof t == "string" ? oi(t) : t;
859
+ Y(c === "/" || e.pathname?.startsWith(c), `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 "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`), d = e;
860
860
  } else d = u;
861
861
  let f = d.pathname || "/", p = f;
862
862
  if (c !== "/") {
863
863
  let e = c.replace(/^\//, "").split("/");
864
864
  p = "/" + f.replace(/^\//, "").split("/").slice(e.length).join("/");
865
865
  }
866
- let m = n && n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : oi(e, { pathname: p });
867
- ri(l || m != null, `No routes matched location "${d.pathname}${d.search}${d.hash}" `), ri(m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0, `Matched leaf route at location "${d.pathname}${d.search}${d.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.`);
866
+ let m = n && n.state.matches.length ? n.state.matches.map((e) => Object.assign(e, { route: n.manifest[e.route.id] || e.route })) : si(e, { pathname: p });
867
+ ii(l || m != null, `No routes matched location "${d.pathname}${d.search}${d.hash}" `), ii(m == null || m[m.length - 1].route.element !== void 0 || m[m.length - 1].route.Component !== void 0 || m[m.length - 1].route.lazy !== void 0, `Matched leaf route at location "${d.pathname}${d.search}${d.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.`);
868
868
  let h = ka(m && m.map((e) => Object.assign({}, e, {
869
869
  params: Object.assign({}, o, e.params),
870
- pathname: Z([c, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
871
- pathnameBase: e.pathnameBase === "/" ? c : Z([c, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
870
+ pathname: X([c, r.encodeLocation ? r.encodeLocation(e.pathname.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathname]),
871
+ pathnameBase: e.pathnameBase === "/" ? c : X([c, r.encodeLocation ? r.encodeLocation(e.pathnameBase.replace(/%/g, "%25").replace(/\?/g, "%3F").replace(/#/g, "%23")).pathname : e.pathnameBase])
872
872
  })), i, n);
873
- return t && h ? /* @__PURE__ */ U.createElement(oa.Provider, { value: {
873
+ return t && h ? /* @__PURE__ */ H.createElement(oa.Provider, { value: {
874
874
  location: {
875
875
  pathname: "/",
876
876
  search: "",
@@ -884,16 +884,16 @@ Please change the parent <Route path="${e}"> to <Route path="${e === "/" ? "*" :
884
884
  } }, h) : h;
885
885
  }
886
886
  function Ca() {
887
- let e = Ia(), t = zi(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", i = {
887
+ let e = Ia(), t = Bi(e) ? `${e.status} ${e.statusText}` : e instanceof Error ? e.message : JSON.stringify(e), n = e instanceof Error ? e.stack : null, r = "rgba(200,200,200, 0.5)", i = {
888
888
  padding: "0.5rem",
889
889
  backgroundColor: r
890
890
  }, a = {
891
891
  padding: "2px 4px",
892
892
  backgroundColor: r
893
893
  }, o = null;
894
- return console.error("Error handled by React Router default ErrorBoundary:", e), o = /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ U.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ U.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ U.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ U.createElement(U.Fragment, null, /* @__PURE__ */ U.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ U.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ U.createElement("pre", { style: i }, n) : null, o);
894
+ return console.error("Error handled by React Router default ErrorBoundary:", e), o = /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("p", null, "💿 Hey developer 👋"), /* @__PURE__ */ H.createElement("p", null, "You can provide a way better UX than this when your app throws errors by providing your own ", /* @__PURE__ */ H.createElement("code", { style: a }, "ErrorBoundary"), " or", " ", /* @__PURE__ */ H.createElement("code", { style: a }, "errorElement"), " prop on your route.")), /* @__PURE__ */ H.createElement(H.Fragment, null, /* @__PURE__ */ H.createElement("h2", null, "Unexpected Application Error!"), /* @__PURE__ */ H.createElement("h3", { style: { fontStyle: "italic" } }, t), n ? /* @__PURE__ */ H.createElement("pre", { style: i }, n) : null, o);
895
895
  }
896
- var wa = /* @__PURE__ */ U.createElement(Ca, null), Ta = class extends U.Component {
896
+ var wa = /* @__PURE__ */ H.createElement(Ca, null), Ta = class extends H.Component {
897
897
  constructor(e) {
898
898
  super(e), this.state = {
899
899
  location: e.location,
@@ -924,32 +924,32 @@ var wa = /* @__PURE__ */ U.createElement(Ca, null), Ta = class extends U.Compone
924
924
  let t = pa(e.digest);
925
925
  t && (e = t);
926
926
  }
927
- let t = e === void 0 ? this.props.children : /* @__PURE__ */ U.createElement(sa.Provider, { value: this.props.routeContext }, /* @__PURE__ */ U.createElement(ca.Provider, {
927
+ let t = e === void 0 ? this.props.children : /* @__PURE__ */ H.createElement(sa.Provider, { value: this.props.routeContext }, /* @__PURE__ */ H.createElement(ca.Provider, {
928
928
  value: e,
929
929
  children: this.props.component
930
930
  }));
931
- return this.context ? /* @__PURE__ */ U.createElement(Da, { error: e }, t) : t;
931
+ return this.context ? /* @__PURE__ */ H.createElement(Da, { error: e }, t) : t;
932
932
  }
933
933
  };
934
- Ta.contextType = ea;
934
+ Ta.contextType = ta;
935
935
  var Ea = /* @__PURE__ */ new WeakMap();
936
936
  function Da({ children: e, error: t }) {
937
- let { basename: n, navigator: r } = U.useContext(aa);
937
+ let { basename: n, navigator: r } = H.useContext(Z);
938
938
  if (typeof t == "object" && t && "digest" in t && typeof t.digest == "string") {
939
939
  let e = fa(t.digest);
940
940
  if (e) {
941
941
  let i = Ea.get(t);
942
942
  if (i) throw i;
943
- let a = Hi(e.location, n), o = a.absoluteURL || a.to;
944
- if (qi(e.location, o, Wi(r), "allow-explicit"), Zi(o)) throw Error("Invalid redirect location");
945
- if (Vi && !Ea.get(t)) {
943
+ let a = Ui(e.location, n), o = a.absoluteURL || a.to;
944
+ if (Ji(e.location, o, Gi(r), "allow-explicit"), Qi(o)) throw Error("Invalid redirect location");
945
+ if (Hi && !Ea.get(t)) {
946
946
  if (a.isExternal || e.reloadDocument) window.location.href = o;
947
947
  else {
948
948
  let n = Promise.resolve().then(() => window.__reactRouterDataRouter.navigate(a.to, { replace: e.replace }));
949
949
  throw Ea.set(t, n), n;
950
950
  }
951
951
  }
952
- return /* @__PURE__ */ U.createElement("meta", {
952
+ return /* @__PURE__ */ H.createElement("meta", {
953
953
  httpEquiv: "refresh",
954
954
  content: `0;url=${o}`
955
955
  });
@@ -958,8 +958,8 @@ function Da({ children: e, error: t }) {
958
958
  return e;
959
959
  }
960
960
  function Oa({ routeContext: e, match: t, children: n }) {
961
- let r = U.useContext(Qi);
962
- return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ U.createElement(sa.Provider, { value: e }, n);
961
+ let r = H.useContext($i);
962
+ return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */ H.createElement(sa.Provider, { value: e }, n);
963
963
  }
964
964
  function ka(e, t = [], n) {
965
965
  let r = n?.state;
@@ -972,7 +972,7 @@ function ka(e, t = [], n) {
972
972
  let i = e, a = r?.errors;
973
973
  if (a != null) {
974
974
  let e = i.findIndex((e) => e.route.id && a?.[e.route.id] !== void 0);
975
- X(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
975
+ Y(e >= 0, `Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`), i = i.slice(0, Math.min(i.length, e + 1));
976
976
  }
977
977
  let o = !1, s = -1;
978
978
  if (n && r) {
@@ -992,7 +992,7 @@ function ka(e, t = [], n) {
992
992
  c(e, {
993
993
  location: r.location,
994
994
  params: r.matches?.[0]?.params ?? {},
995
- pattern: Bi(r.matches),
995
+ pattern: Vi(r.matches),
996
996
  errorInfo: t
997
997
  });
998
998
  } : void 0;
@@ -1001,7 +1001,7 @@ function ka(e, t = [], n) {
1001
1001
  r && (u = a && n.route.id ? a[n.route.id] : void 0, f = n.route.errorElement || wa, o && (s < 0 && c === 0 ? (za("route-fallback", !1, "No `HydrateFallback` element provided to render during initial hydration"), d = !0, p = null) : s === c && (d = !0, p = n.route.hydrateFallbackElement || null)));
1002
1002
  let m = t.concat(i.slice(0, c + 1)), h = () => {
1003
1003
  let t;
1004
- return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ U.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ U.createElement(Oa, {
1004
+ return t = u ? f : d ? p : n.route.Component ? /* @__PURE__ */ H.createElement(n.route.Component, null) : n.route.element ? n.route.element : e, /* @__PURE__ */ H.createElement(Oa, {
1005
1005
  match: n,
1006
1006
  routeContext: {
1007
1007
  outlet: e,
@@ -1011,7 +1011,7 @@ function ka(e, t = [], n) {
1011
1011
  children: t
1012
1012
  });
1013
1013
  };
1014
- return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ U.createElement(Ta, {
1014
+ return r && (n.route.ErrorBoundary || n.route.errorElement || c === 0) ? /* @__PURE__ */ H.createElement(Ta, {
1015
1015
  location: r.location,
1016
1016
  revalidation: r.revalidation,
1017
1017
  component: f,
@@ -1030,34 +1030,34 @@ function Aa(e) {
1030
1030
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1031
1031
  }
1032
1032
  function ja(e) {
1033
- let t = U.useContext(Qi);
1034
- return X(t, Aa(e)), t;
1033
+ let t = H.useContext($i);
1034
+ return Y(t, Aa(e)), t;
1035
1035
  }
1036
1036
  function Ma(e) {
1037
- let t = U.useContext($i);
1038
- return X(t, Aa(e)), t;
1037
+ let t = H.useContext(ea);
1038
+ return Y(t, Aa(e)), t;
1039
1039
  }
1040
1040
  function Na(e) {
1041
- let t = U.useContext(sa);
1042
- return X(t, Aa(e)), t;
1041
+ let t = H.useContext(sa);
1042
+ return Y(t, Aa(e)), t;
1043
1043
  }
1044
1044
  function Pa(e) {
1045
1045
  let t = Na(e), n = t.matches[t.matches.length - 1];
1046
- return X(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1046
+ return Y(n.route.id, `${e} can only be used on routes that contain a unique "id"`), n.route.id;
1047
1047
  }
1048
1048
  function Fa() {
1049
1049
  return Pa("useRouteId");
1050
1050
  }
1051
1051
  function Ia() {
1052
- let e = U.useContext(ca), t = Ma("useRouteError"), n = Pa("useRouteError");
1052
+ let e = H.useContext(ca), t = Ma("useRouteError"), n = Pa("useRouteError");
1053
1053
  return e === void 0 ? t.errors?.[n] : e;
1054
1054
  }
1055
1055
  function La() {
1056
- let { router: e } = ja("useNavigate"), t = Pa("useNavigate"), n = U.useRef(!1);
1056
+ let { router: e } = ja("useNavigate"), t = Pa("useNavigate"), n = H.useRef(!1);
1057
1057
  return va(() => {
1058
1058
  n.current = !0;
1059
- }), U.useCallback(async (r, i = {}) => {
1060
- ri(n.current, _a), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
1059
+ }), H.useCallback(async (r, i = {}) => {
1060
+ ii(n.current, _a), n.current && (typeof r == "number" ? await e.navigate(r) : await e.navigate(r, {
1061
1061
  fromRouteId: t,
1062
1062
  ...i
1063
1063
  }));
@@ -1065,9 +1065,9 @@ function La() {
1065
1065
  }
1066
1066
  var Ra = {};
1067
1067
  function za(e, t, n) {
1068
- !t && !Ra[e] && (Ra[e] = !0, ri(!1, n));
1068
+ !t && !Ra[e] && (Ra[e] = !0, ii(!1, n));
1069
1069
  }
1070
- U.memo(Ba);
1070
+ H.memo(Ba);
1071
1071
  function Ba({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError: a }) {
1072
1072
  return Sa(e, void 0, {
1073
1073
  manifest: t,
@@ -1077,7 +1077,7 @@ function Ba({ routes: e, manifest: t, future: n, state: r, isStatic: i, onError:
1077
1077
  future: n
1078
1078
  });
1079
1079
  }
1080
- U.Component;
1080
+ H.Component;
1081
1081
  var Va = "get", Ha = "application/x-www-form-urlencoded";
1082
1082
  function Ua(e) {
1083
1083
  return typeof HTMLElement < "u" && e instanceof HTMLElement;
@@ -1112,18 +1112,18 @@ var Za = /* @__PURE__ */ new Set([
1112
1112
  "text/plain"
1113
1113
  ]);
1114
1114
  function Qa(e) {
1115
- return e != null && !Za.has(e) ? (ri(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ha}"`), null) : e;
1115
+ return e != null && !Za.has(e) ? (ii(!1, `"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Ha}"`), null) : e;
1116
1116
  }
1117
1117
  function $a(e, t) {
1118
1118
  let n, r, i, a, o;
1119
1119
  if (Ga(e)) {
1120
1120
  let o = e.getAttribute("action");
1121
- r = o ? Ei(o, t) : null, n = e.getAttribute("method") || Va, i = Qa(e.getAttribute("enctype")) || Ha, a = new FormData(e);
1121
+ r = o ? Di(o, t) : null, n = e.getAttribute("method") || Va, i = Qa(e.getAttribute("enctype")) || Ha, a = new FormData(e);
1122
1122
  } else if (Wa(e) || Ka(e) && (e.type === "submit" || e.type === "image")) {
1123
1123
  let o = e.form;
1124
1124
  if (o == null) throw Error("Cannot submit a <button> or <input type=\"submit\"> without a <form>");
1125
1125
  let s = e.getAttribute("formaction") || o.getAttribute("action");
1126
- if (r = s ? Ei(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Va, i = Qa(e.getAttribute("formenctype")) || Qa(o.getAttribute("enctype")) || Ha, a = new FormData(o, e), !Xa()) {
1126
+ if (r = s ? Di(s, t) : null, n = e.getAttribute("formmethod") || o.getAttribute("method") || Va, i = Qa(e.getAttribute("formenctype")) || Qa(o.getAttribute("enctype")) || Ha, a = new FormData(o, e), !Xa()) {
1127
1127
  let { name: t, type: n, value: r } = e;
1128
1128
  if (n === "image") {
1129
1129
  let e = t ? `${t}.` : "";
@@ -1146,7 +1146,7 @@ function eo(e, t) {
1146
1146
  }
1147
1147
  function to(e, t, n, r) {
1148
1148
  let i = typeof e == "string" ? new URL(e, typeof window > "u" ? "server://singlefetch/" : window.location.origin) : e;
1149
- return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && Ei(i.pathname, t) === "/" ? `${Pi(t)}/_root.${r}` : `${Pi(i.pathname)}.${r}`, i;
1149
+ return i.pathname = n ? i.pathname.endsWith("/") ? `${i.pathname}_.${r}` : `${i.pathname}.${r}` : i.pathname === "/" ? `_root.${r}` : t && Di(i.pathname, t) === "/" ? `${Fi(t)}/_root.${r}` : `${Fi(i.pathname)}.${r}`, i;
1150
1150
  }
1151
1151
  async function no(e, t) {
1152
1152
  if (e.id in t) return t[e.id];
@@ -1231,22 +1231,22 @@ function uo(e, t) {
1231
1231
  }, []);
1232
1232
  }
1233
1233
  function fo() {
1234
- let e = U.useContext(Qi);
1234
+ let e = H.useContext($i);
1235
1235
  return eo(e, "You must render this element inside a <DataRouterContext.Provider> element"), e;
1236
1236
  }
1237
1237
  function po() {
1238
- let e = U.useContext($i);
1238
+ let e = H.useContext(ea);
1239
1239
  return eo(e, "You must render this element inside a <DataRouterStateContext.Provider> element"), e;
1240
1240
  }
1241
- var mo = U.createContext(void 0);
1241
+ var mo = H.createContext(void 0);
1242
1242
  mo.displayName = "FrameworkContext";
1243
1243
  function ho() {
1244
- let e = U.useContext(mo);
1244
+ let e = H.useContext(mo);
1245
1245
  return eo(e, "You must render this element inside a <HydratedRouter> element"), e;
1246
1246
  }
1247
1247
  function go(e, t) {
1248
- let n = U.useContext(mo), [r, i] = U.useState(!1), [a, o] = U.useState(!1), { onFocus: s, onBlur: c, onMouseEnter: l, onMouseLeave: u, onTouchStart: d } = t, f = U.useRef(null);
1249
- U.useEffect(() => {
1248
+ let n = H.useContext(mo), [r, i] = H.useState(!1), [a, o] = H.useState(!1), { onFocus: s, onBlur: c, onMouseEnter: l, onMouseLeave: u, onTouchStart: d } = t, f = H.useRef(null);
1249
+ H.useEffect(() => {
1250
1250
  if (e === "render" && o(!0), e === "viewport") {
1251
1251
  let e = new IntersectionObserver((e) => {
1252
1252
  e.forEach((e) => {
@@ -1257,7 +1257,7 @@ function go(e, t) {
1257
1257
  e.disconnect();
1258
1258
  };
1259
1259
  }
1260
- }, [e]), U.useEffect(() => {
1260
+ }, [e]), H.useEffect(() => {
1261
1261
  if (r) {
1262
1262
  let e = setTimeout(() => {
1263
1263
  o(!0);
@@ -1298,7 +1298,7 @@ function _o(e, t) {
1298
1298
  };
1299
1299
  }
1300
1300
  function vo({ page: e, ...t }) {
1301
- let n = ta(), { nonce: r } = ho(), { router: i } = fo(), a = U.useMemo(() => oi(i.routes, e, i.basename), [
1301
+ let n = na(), { nonce: r } = ho(), { router: i } = fo(), a = H.useMemo(() => si(i.routes, e, i.basename), [
1302
1302
  i.routes,
1303
1303
  e,
1304
1304
  i.basename
@@ -1306,19 +1306,19 @@ function vo({ page: e, ...t }) {
1306
1306
  return a ? (t.nonce == null && r && (t = {
1307
1307
  ...t,
1308
1308
  nonce: r
1309
- }), n ? /* @__PURE__ */ U.createElement(bo, {
1309
+ }), n ? /* @__PURE__ */ H.createElement(bo, {
1310
1310
  page: e,
1311
1311
  matches: a,
1312
1312
  ...t
1313
- }) : /* @__PURE__ */ U.createElement(xo, {
1313
+ }) : /* @__PURE__ */ H.createElement(xo, {
1314
1314
  page: e,
1315
1315
  matches: a,
1316
1316
  ...t
1317
1317
  })) : null;
1318
1318
  }
1319
1319
  function yo(e) {
1320
- let { manifest: t, routeModules: n } = ho(), [r, i] = U.useState([]);
1321
- return U.useEffect(() => {
1320
+ let { manifest: t, routeModules: n } = ho(), [r, i] = H.useState([]);
1321
+ return H.useEffect(() => {
1322
1322
  let r = !1;
1323
1323
  return ao(e, t, n).then((e) => {
1324
1324
  r || i(e);
@@ -1332,7 +1332,7 @@ function yo(e) {
1332
1332
  ]), r;
1333
1333
  }
1334
1334
  function bo({ page: e, matches: t, ...n }) {
1335
- let r = ga(), { future: i } = ho(), { basename: a } = fo(), o = U.useMemo(() => {
1335
+ let r = ga(), { future: i } = ho(), { basename: a } = fo(), o = H.useMemo(() => {
1336
1336
  if (e === r.pathname + r.search + r.hash) return [];
1337
1337
  let n = to(e, a, i.v8_trailingSlashAwareDataRequests, "rsc"), o = !1, s = [];
1338
1338
  for (let e of t) typeof e.route.shouldRevalidate == "function" ? o = !0 : s.push(e.route.id);
@@ -1344,7 +1344,7 @@ function bo({ page: e, matches: t, ...n }) {
1344
1344
  r,
1345
1345
  t
1346
1346
  ]);
1347
- return /* @__PURE__ */ U.createElement(U.Fragment, null, o.map((e) => /* @__PURE__ */ U.createElement("link", {
1347
+ return /* @__PURE__ */ H.createElement(H.Fragment, null, o.map((e) => /* @__PURE__ */ H.createElement("link", {
1348
1348
  key: e,
1349
1349
  rel: "prefetch",
1350
1350
  as: "fetch",
@@ -1353,19 +1353,19 @@ function bo({ page: e, matches: t, ...n }) {
1353
1353
  })));
1354
1354
  }
1355
1355
  function xo({ page: e, matches: t, ...n }) {
1356
- let r = ga(), { future: i, manifest: a, routeModules: o } = ho(), { basename: s } = fo(), { loaderData: c, matches: l } = po(), u = U.useMemo(() => oo(e, t, l, a, r, "data"), [
1356
+ let r = ga(), { future: i, manifest: a, routeModules: o } = ho(), { basename: s } = fo(), { loaderData: c, matches: l } = po(), u = H.useMemo(() => oo(e, t, l, a, r, "data"), [
1357
1357
  e,
1358
1358
  t,
1359
1359
  l,
1360
1360
  a,
1361
1361
  r
1362
- ]), d = U.useMemo(() => oo(e, t, l, a, r, "assets"), [
1362
+ ]), d = H.useMemo(() => oo(e, t, l, a, r, "assets"), [
1363
1363
  e,
1364
1364
  t,
1365
1365
  l,
1366
1366
  a,
1367
1367
  r
1368
- ]), f = U.useMemo(() => {
1368
+ ]), f = H.useMemo(() => {
1369
1369
  if (e === r.pathname + r.search + r.hash) return [];
1370
1370
  let n = /* @__PURE__ */ new Set(), l = !1;
1371
1371
  if (t.forEach((e) => {
@@ -1384,19 +1384,19 @@ function xo({ page: e, matches: t, ...n }) {
1384
1384
  t,
1385
1385
  e,
1386
1386
  o
1387
- ]), p = U.useMemo(() => so(d, a), [d, a]), m = yo(d);
1388
- return /* @__PURE__ */ U.createElement(U.Fragment, null, f.map((e) => /* @__PURE__ */ U.createElement("link", {
1387
+ ]), p = H.useMemo(() => so(d, a), [d, a]), m = yo(d);
1388
+ return /* @__PURE__ */ H.createElement(H.Fragment, null, f.map((e) => /* @__PURE__ */ H.createElement("link", {
1389
1389
  key: e,
1390
1390
  rel: "prefetch",
1391
1391
  as: "fetch",
1392
1392
  href: e,
1393
1393
  ...n
1394
- })), p.map((e) => /* @__PURE__ */ U.createElement("link", {
1394
+ })), p.map((e) => /* @__PURE__ */ H.createElement("link", {
1395
1395
  key: e,
1396
1396
  rel: "modulepreload",
1397
1397
  href: e,
1398
1398
  ...n
1399
- })), m.map(({ key: e, link: t }) => /* @__PURE__ */ U.createElement("link", {
1399
+ })), m.map(({ key: e, link: t }) => /* @__PURE__ */ H.createElement("link", {
1400
1400
  key: e,
1401
1401
  nonce: n.nonce,
1402
1402
  ...t,
@@ -1410,18 +1410,18 @@ function So(...e) {
1410
1410
  });
1411
1411
  };
1412
1412
  }
1413
- U.Component;
1413
+ H.Component;
1414
1414
  var Co = typeof window < "u" && window.document !== void 0 && window.document.createElement !== void 0;
1415
1415
  try {
1416
1416
  Co && (window.__reactRouterVersion = "7.18.4");
1417
1417
  } catch {}
1418
- var wo = U.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n = "none", relative: r, reloadDocument: i, replace: a, mask: o, state: s, target: c, to: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) {
1419
- let { basename: h, navigator: g, useTransitions: _ } = U.useContext(aa), v = typeof l == "string" && ei.test(l), y = Hi(l, h);
1418
+ var wo = H.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n = "none", relative: r, reloadDocument: i, replace: a, mask: o, state: s, target: c, to: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) {
1419
+ let { basename: h, navigator: g, useTransitions: _ } = H.useContext(Z), v = typeof l == "string" && ti.test(l), y = Ui(l, h);
1420
1420
  l = y.to;
1421
1421
  let b = ma(l, { relative: r }), ee = ga(), x = null;
1422
1422
  if (o) {
1423
- let e = Mi(o, [], ee.mask ? ee.mask.pathname : "/", !0);
1424
- h !== "/" && (e.pathname = e.pathname === "/" ? h : Z([h, e.pathname])), x = g.createHref(e);
1423
+ let e = Ni(o, [], ee.mask ? ee.mask.pathname : "/", !0);
1424
+ h !== "/" && (e.pathname = e.pathname === "/" ? h : X([h, e.pathname])), x = g.createHref(e);
1425
1425
  }
1426
1426
  let [S, C, w] = go(n, p), T = ko(l, {
1427
1427
  replace: a,
@@ -1437,7 +1437,7 @@ var wo = U.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n
1437
1437
  function te(t) {
1438
1438
  e && e(t), t.defaultPrevented || T(t);
1439
1439
  }
1440
- let ne = !(y.isExternal || i), E = /* @__PURE__ */ U.createElement("a", {
1440
+ let ne = !(y.isExternal || i), E = /* @__PURE__ */ H.createElement("a", {
1441
1441
  ...p,
1442
1442
  ...w,
1443
1443
  href: (ne ? x : void 0) || y.absoluteURL || b,
@@ -1446,12 +1446,12 @@ var wo = U.forwardRef(function({ onClick: e, discover: t = "render", prefetch: n
1446
1446
  target: c,
1447
1447
  "data-discover": !v && t === "render" ? "true" : void 0
1448
1448
  });
1449
- return S && !v ? /* @__PURE__ */ U.createElement(U.Fragment, null, E, /* @__PURE__ */ U.createElement(vo, { page: b })) : E;
1449
+ return S && !v ? /* @__PURE__ */ H.createElement(H.Fragment, null, E, /* @__PURE__ */ H.createElement(vo, { page: b })) : E;
1450
1450
  });
1451
1451
  wo.displayName = "Link";
1452
- var To = U.forwardRef(function({ "aria-current": e = "page", caseSensitive: t = !1, className: n = "", end: r = !1, style: i, to: a, viewTransition: o, children: s, ...c }, l) {
1453
- let u = xa(a, { relative: c.relative }), d = ga(), f = U.useContext($i), { navigator: p, basename: m } = U.useContext(aa), h = f != null && Po(u) && o === !0, g = p.encodeLocation ? p.encodeLocation(u).pathname : u.pathname, _ = d.pathname, v = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
1454
- t || (_ = _.toLowerCase(), v = v ? v.toLowerCase() : null, g = g.toLowerCase()), v && m && (v = Ei(v, m) || v);
1452
+ var To = H.forwardRef(function({ "aria-current": e = "page", caseSensitive: t = !1, className: n = "", end: r = !1, style: i, to: a, viewTransition: o, children: s, ...c }, l) {
1453
+ let u = xa(a, { relative: c.relative }), d = ga(), f = H.useContext(ea), { navigator: p, basename: m } = H.useContext(Z), h = f != null && Po(u) && o === !0, g = p.encodeLocation ? p.encodeLocation(u).pathname : u.pathname, _ = d.pathname, v = f && f.navigation && f.navigation.location ? f.navigation.location.pathname : null;
1454
+ t || (_ = _.toLowerCase(), v = v ? v.toLowerCase() : null, g = g.toLowerCase()), v && m && (v = Di(v, m) || v);
1455
1455
  let y = g !== "/" && g.endsWith("/") ? g.length - 1 : g.length, b = _ === g || !r && _.startsWith(g) && _.charAt(y) === "/", ee = v != null && (v === g || !r && v.startsWith(g) && v.charAt(g.length) === "/"), x = {
1456
1456
  isActive: b,
1457
1457
  isPending: ee,
@@ -1464,7 +1464,7 @@ var To = U.forwardRef(function({ "aria-current": e = "page", caseSensitive: t =
1464
1464
  h ? "transitioning" : null
1465
1465
  ].filter(Boolean).join(" ");
1466
1466
  let w = typeof i == "function" ? i(x) : i;
1467
- return /* @__PURE__ */ U.createElement(wo, {
1467
+ return /* @__PURE__ */ H.createElement(wo, {
1468
1468
  ...c,
1469
1469
  "aria-current": S,
1470
1470
  className: C,
@@ -1475,9 +1475,9 @@ var To = U.forwardRef(function({ "aria-current": e = "page", caseSensitive: t =
1475
1475
  }, typeof s == "function" ? s(x) : s);
1476
1476
  });
1477
1477
  To.displayName = "NavLink";
1478
- var Eo = U.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, reloadDocument: r, replace: i, state: a, method: o = Va, action: s, onSubmit: c, relative: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) => {
1479
- let { useTransitions: h } = U.useContext(aa), g = Mo(), _ = No(s, { relative: l }), v = o.toLowerCase() === "get" ? "get" : "post", y = typeof s == "string" && ei.test(s);
1480
- return /* @__PURE__ */ U.createElement("form", {
1478
+ var Eo = H.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, reloadDocument: r, replace: i, state: a, method: o = Va, action: s, onSubmit: c, relative: l, preventScrollReset: u, viewTransition: d, defaultShouldRevalidate: f, ...p }, m) => {
1479
+ let { useTransitions: h } = H.useContext(Z), g = Mo(), _ = No(s, { relative: l }), v = o.toLowerCase() === "get" ? "get" : "post", y = typeof s == "string" && ti.test(s);
1480
+ return /* @__PURE__ */ H.createElement("form", {
1481
1481
  ref: m,
1482
1482
  method: v,
1483
1483
  action: _,
@@ -1495,7 +1495,7 @@ var Eo = U.forwardRef(({ discover: e = "render", fetcherKey: t, navigate: n, rel
1495
1495
  viewTransition: d,
1496
1496
  defaultShouldRevalidate: f
1497
1497
  });
1498
- h && n !== !1 ? U.startTransition(() => p()) : p();
1498
+ h && n !== !1 ? H.startTransition(() => p()) : p();
1499
1499
  },
1500
1500
  ...p,
1501
1501
  "data-discover": !y && e === "render" ? "true" : void 0
@@ -1506,15 +1506,15 @@ function Do(e) {
1506
1506
  return `${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`;
1507
1507
  }
1508
1508
  function Oo(e) {
1509
- let t = U.useContext(Qi);
1510
- return X(t, Do(e)), t;
1509
+ let t = H.useContext($i);
1510
+ return Y(t, Do(e)), t;
1511
1511
  }
1512
1512
  function ko(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a, relative: o, viewTransition: s, defaultShouldRevalidate: c, useTransitions: l } = {}) {
1513
1513
  let u = ya(), d = ga(), f = xa(e, { relative: o });
1514
- return U.useCallback((p) => {
1514
+ return H.useCallback((p) => {
1515
1515
  if (Ja(p, t)) {
1516
1516
  p.preventDefault();
1517
- let t = n === void 0 ? ii(d) === ii(f) : n, m = () => u(e, {
1517
+ let t = n === void 0 ? ai(d) === ai(f) : n, m = () => u(e, {
1518
1518
  replace: t,
1519
1519
  mask: r,
1520
1520
  state: i,
@@ -1523,7 +1523,7 @@ function ko(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a
1523
1523
  viewTransition: s,
1524
1524
  defaultShouldRevalidate: c
1525
1525
  });
1526
- l ? U.startTransition(() => m()) : m();
1526
+ l ? H.startTransition(() => m()) : m();
1527
1527
  }
1528
1528
  }, [
1529
1529
  d,
@@ -1543,8 +1543,8 @@ function ko(e, { target: t, replace: n, mask: r, state: i, preventScrollReset: a
1543
1543
  }
1544
1544
  var Ao = 0, jo = () => `__${String(++Ao)}__`;
1545
1545
  function Mo() {
1546
- let { router: e } = Oo("useSubmit"), { basename: t } = U.useContext(aa), n = Fa(), r = e.fetch, i = e.navigate;
1547
- return U.useCallback(async (e, a = {}) => {
1546
+ let { router: e } = Oo("useSubmit"), { basename: t } = H.useContext(Z), n = Fa(), r = e.fetch, i = e.navigate;
1547
+ return H.useCallback(async (e, a = {}) => {
1548
1548
  let { action: o, method: s, encType: c, formData: l, body: u } = $a(e, t);
1549
1549
  if (a.navigate === !1) {
1550
1550
  let e = a.fetcherKey || jo();
@@ -1578,8 +1578,8 @@ function Mo() {
1578
1578
  ]);
1579
1579
  }
1580
1580
  function No(e, { relative: t } = {}) {
1581
- let { basename: n } = U.useContext(aa), r = U.useContext(sa);
1582
- X(r, "useFormAction must be used inside a RouteContext");
1581
+ let { basename: n } = H.useContext(Z), r = H.useContext(sa);
1582
+ Y(r, "useFormAction must be used inside a RouteContext");
1583
1583
  let [i] = r.matches.slice(-1), a = { ...xa(e || ".", { relative: t }) }, o = ga();
1584
1584
  if (e == null) {
1585
1585
  a.search = o.search;
@@ -1590,20 +1590,20 @@ function No(e, { relative: t } = {}) {
1590
1590
  a.search = n ? `?${n}` : "";
1591
1591
  }
1592
1592
  }
1593
- return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (a.pathname = a.pathname === "/" ? n : Z([n, a.pathname])), ii(a);
1593
+ return (!e || e === ".") && i.route.index && (a.search = a.search ? a.search.replace(/^\?/, "?index&") : "?index"), n !== "/" && (a.pathname = a.pathname === "/" ? n : X([n, a.pathname])), ai(a);
1594
1594
  }
1595
1595
  function Po(e, { relative: t } = {}) {
1596
- let n = U.useContext(na);
1597
- X(n != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1596
+ let n = H.useContext(ra);
1597
+ Y(n != null, "`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");
1598
1598
  let { basename: r } = Oo("useViewTransitionState"), i = xa(e, { relative: t });
1599
1599
  if (!n.isTransitioning) return !1;
1600
- let a = Ei(n.currentLocation.pathname, r) || n.currentLocation.pathname, o = Ei(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1601
- return Si(i.pathname, o) != null || Si(i.pathname, a) != null;
1600
+ let a = Di(n.currentLocation.pathname, r) || n.currentLocation.pathname, o = Di(n.nextLocation.pathname, r) || n.nextLocation.pathname;
1601
+ return Ci(i.pathname, o) != null || Ci(i.pathname, a) != null;
1602
1602
  }
1603
1603
  //#endregion
1604
1604
  //#region src/components/List/index.tsx
1605
1605
  var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Data Available", loadMoreText: i = "See More", className: a = "", initialLimit: s = 5, isDataLoading: c = !1, showLogo: l, isShowOptions: u, setValue: d, currentPage: f = 1, isEnableScrollToTop: p, isDisableMoreOption: h, isEnableSelectAll: g, onSelectAll: _, onDeselectAll: ee, isAllSelected: x, parent: S, extraValues: C, extraHeaderText: w, onTourClick: ne, onRowClick: E, onRowHover: re, onMouseOut: ie, buttonContent: ae, noDataSubHeading: oe, isDatasourceList: se, stateKey: D, onCreate: O, isDemoDatasource: k, isOpenInNewTab: A, noDataProps: j }) => {
1606
- let M = ya(), [N, ce] = q(s), [le, ue] = q(""), [P, F] = q(""), de = (e) => {
1606
+ let M = ya(), [ce, le] = K(s), [ue, de] = K(""), [N, P] = K(""), fe = (e) => {
1607
1607
  if (S) switch (S) {
1608
1608
  case "DASHBOARD":
1609
1609
  case "DASHBOARD_CREATE": return `/externalDashboard/${e.id}/?wid=${C?.workspaceId}${C?.dataMartId ? `&dmId=${C?.dataMartId}` : ""}${e?.createdBy ? `&createdByClient=${e?.createdBy}` : ""}`;
@@ -1617,14 +1617,14 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1617
1617
  default: return null;
1618
1618
  }
1619
1619
  return null;
1620
- }, fe = () => {
1620
+ }, pe = () => {
1621
1621
  if (D) switch (D) {
1622
- case "datasource": return /* @__PURE__ */ J("div", {
1622
+ case "datasource": return /* @__PURE__ */ q("div", {
1623
1623
  className: "dbn:flex dbn:justify-center dbn:items-center",
1624
1624
  style: { height: "270px" },
1625
- children: /* @__PURE__ */ Y("div", {
1625
+ children: /* @__PURE__ */ J("div", {
1626
1626
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1627
- children: [/* @__PURE__ */ J(V, {
1627
+ children: [/* @__PURE__ */ q(B, {
1628
1628
  message: "No datasources connected.",
1629
1629
  subText: "Add a datasource to start building your dashboard.",
1630
1630
  height: "80px",
@@ -1633,14 +1633,14 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1633
1633
  subTextGap: "6px",
1634
1634
  msgVariant: "sec-heading-4",
1635
1635
  isNoDatasourceConnected: !0
1636
- }), /* @__PURE__ */ J(To, {
1636
+ }), /* @__PURE__ */ q(To, {
1637
1637
  to: "/configuration",
1638
- children: /* @__PURE__ */ Y("div", {
1639
- className: H.createBtn,
1640
- children: [/* @__PURE__ */ J(m, {
1638
+ children: /* @__PURE__ */ J("div", {
1639
+ className: V.createBtn,
1640
+ children: [/* @__PURE__ */ q(m, {
1641
1641
  size: "sm",
1642
1642
  name: "plus"
1643
- }), /* @__PURE__ */ J(T, {
1643
+ }), /* @__PURE__ */ q(T, {
1644
1644
  variant: "btn",
1645
1645
  children: "Datasource"
1646
1646
  })]
@@ -1648,12 +1648,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1648
1648
  })]
1649
1649
  })
1650
1650
  });
1651
- case "datamart": return /* @__PURE__ */ J("div", {
1651
+ case "datamart": return /* @__PURE__ */ q("div", {
1652
1652
  className: "dbn:flex dbn:justify-center dbn:items-center",
1653
1653
  style: { height: "270px" },
1654
- children: /* @__PURE__ */ Y("div", {
1654
+ children: /* @__PURE__ */ J("div", {
1655
1655
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1656
- children: [/* @__PURE__ */ J(V, {
1656
+ children: [/* @__PURE__ */ q(B, {
1657
1657
  message: "No Data Marts yet.",
1658
1658
  subText: "Create your first Data Mart to get started.",
1659
1659
  height: "80px",
@@ -1662,25 +1662,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1662
1662
  subTextGap: "6px",
1663
1663
  msgVariant: "sec-heading-4",
1664
1664
  isNoDatamart: !0
1665
- }), /* @__PURE__ */ Y("div", {
1666
- className: H.createBtn,
1665
+ }), /* @__PURE__ */ J("div", {
1666
+ className: V.createBtn,
1667
1667
  onClick: O,
1668
- children: [/* @__PURE__ */ J(m, {
1668
+ children: [/* @__PURE__ */ q(m, {
1669
1669
  size: "sm",
1670
1670
  name: "plus"
1671
- }), /* @__PURE__ */ J(T, {
1671
+ }), /* @__PURE__ */ q(T, {
1672
1672
  variant: "btn",
1673
1673
  children: "Data Mart"
1674
1674
  })]
1675
1675
  })]
1676
1676
  })
1677
1677
  });
1678
- case "dataapp": return /* @__PURE__ */ J("div", {
1678
+ case "dataapp": return /* @__PURE__ */ q("div", {
1679
1679
  className: "dbn:flex dbn:justify-center dbn:items-center",
1680
1680
  style: { height: "270px" },
1681
- children: /* @__PURE__ */ Y("div", {
1681
+ children: /* @__PURE__ */ J("div", {
1682
1682
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1683
- children: [/* @__PURE__ */ J(V, {
1683
+ children: [/* @__PURE__ */ q(B, {
1684
1684
  message: "No Data Apps yet.",
1685
1685
  subText: "Create your first Data App to get started.",
1686
1686
  height: "80px",
@@ -1689,25 +1689,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1689
1689
  subTextGap: "6px",
1690
1690
  msgVariant: "sec-heading-4",
1691
1691
  isNoDatamart: !0
1692
- }), /* @__PURE__ */ Y("div", {
1693
- className: H.createBtn,
1692
+ }), /* @__PURE__ */ J("div", {
1693
+ className: V.createBtn,
1694
1694
  onClick: O,
1695
- children: [/* @__PURE__ */ J(m, {
1695
+ children: [/* @__PURE__ */ q(m, {
1696
1696
  size: "sm",
1697
1697
  name: "plus"
1698
- }), /* @__PURE__ */ J(T, {
1698
+ }), /* @__PURE__ */ q(T, {
1699
1699
  variant: "btn",
1700
1700
  children: "Data App"
1701
1701
  })]
1702
1702
  })]
1703
1703
  })
1704
1704
  });
1705
- case "semantic": return /* @__PURE__ */ J("div", {
1705
+ case "semantic": return /* @__PURE__ */ q("div", {
1706
1706
  className: "dbn:flex dbn:justify-center dbn:items-center",
1707
1707
  style: { height: "270px" },
1708
- children: /* @__PURE__ */ J("div", {
1708
+ children: /* @__PURE__ */ q("div", {
1709
1709
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1710
- children: /* @__PURE__ */ J(V, {
1710
+ children: /* @__PURE__ */ q(B, {
1711
1711
  message: "No Semantic Layer yet.",
1712
1712
  subText: "Create a Data Mart to load your Semantic Layer.",
1713
1713
  height: "80px",
@@ -1719,12 +1719,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1719
1719
  })
1720
1720
  })
1721
1721
  });
1722
- case "dashboard": return /* @__PURE__ */ J("div", {
1722
+ case "dashboard": return /* @__PURE__ */ q("div", {
1723
1723
  className: "dbn:flex dbn:justify-center dbn:items-center",
1724
1724
  style: { height: k ? "200px" : "calc(100% - 50px)" },
1725
- children: /* @__PURE__ */ Y("div", {
1725
+ children: /* @__PURE__ */ J("div", {
1726
1726
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1727
- children: [/* @__PURE__ */ J(V, {
1727
+ children: [/* @__PURE__ */ q(B, {
1728
1728
  message: "No dashboards here yet.",
1729
1729
  subText: "Create your first dashboard to get started.",
1730
1730
  height: k ? "0px" : "140px",
@@ -1733,25 +1733,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1733
1733
  subTextGap: "6px",
1734
1734
  msgVariant: "sec-heading-4",
1735
1735
  isNoDashboard: !0
1736
- }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ Y("div", {
1737
- className: H.createBtn,
1736
+ }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1737
+ className: V.createBtn,
1738
1738
  onClick: O,
1739
- children: [/* @__PURE__ */ J(m, {
1739
+ children: [/* @__PURE__ */ q(m, {
1740
1740
  size: "sm",
1741
1741
  name: "plus"
1742
- }), /* @__PURE__ */ J(T, {
1742
+ }), /* @__PURE__ */ q(T, {
1743
1743
  variant: "btn",
1744
1744
  children: "Dashboard"
1745
1745
  })]
1746
1746
  })]
1747
1747
  })
1748
1748
  });
1749
- case "metric": return /* @__PURE__ */ J("div", {
1749
+ case "metric": return /* @__PURE__ */ q("div", {
1750
1750
  className: "dbn:flex dbn:justify-center dbn:items-center",
1751
1751
  style: { height: k ? "200px" : "calc(100% - 50px)" },
1752
- children: /* @__PURE__ */ Y("div", {
1752
+ children: /* @__PURE__ */ J("div", {
1753
1753
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1754
- children: [/* @__PURE__ */ J(V, {
1754
+ children: [/* @__PURE__ */ q(B, {
1755
1755
  message: "No metrics here yet.",
1756
1756
  subText: "Start by adding a metric to build your dashboard.",
1757
1757
  height: k ? "0px" : "140px",
@@ -1760,25 +1760,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1760
1760
  subTextGap: "6px",
1761
1761
  msgVariant: "sec-heading-4",
1762
1762
  isNoMetric: !0
1763
- }), S && /* @__PURE__ */ Y("div", {
1764
- className: H.createBtn,
1763
+ }), S && /* @__PURE__ */ J("div", {
1764
+ className: V.createBtn,
1765
1765
  onClick: O,
1766
- children: [/* @__PURE__ */ J(m, {
1766
+ children: [/* @__PURE__ */ q(m, {
1767
1767
  size: "sm",
1768
1768
  name: "plus"
1769
- }), /* @__PURE__ */ J(T, {
1769
+ }), /* @__PURE__ */ q(T, {
1770
1770
  variant: "btn",
1771
1771
  children: "Metric"
1772
1772
  })]
1773
1773
  })]
1774
1774
  })
1775
1775
  });
1776
- case "dashboard-search": return /* @__PURE__ */ J("div", {
1776
+ case "dashboard-search": return /* @__PURE__ */ q("div", {
1777
1777
  className: "dbn:flex dbn:justify-center dbn:items-center",
1778
1778
  style: { height: k ? "200px" : "calc(100% - 50px)" },
1779
- children: /* @__PURE__ */ Y("div", {
1779
+ children: /* @__PURE__ */ J("div", {
1780
1780
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1781
- children: [/* @__PURE__ */ J(V, {
1781
+ children: [/* @__PURE__ */ q(B, {
1782
1782
  message: "No results found.",
1783
1783
  subText: "Try adjusting your search or create a new dashboard.",
1784
1784
  height: k ? "0px" : "140px",
@@ -1787,25 +1787,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1787
1787
  subTextGap: "6px",
1788
1788
  msgVariant: "sec-heading-4",
1789
1789
  isNoMatchedMetric: !0
1790
- }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ Y("div", {
1791
- className: H.createBtn,
1790
+ }), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
1791
+ className: V.createBtn,
1792
1792
  onClick: O,
1793
- children: [/* @__PURE__ */ J(m, {
1793
+ children: [/* @__PURE__ */ q(m, {
1794
1794
  size: "sm",
1795
1795
  name: "plus"
1796
- }), /* @__PURE__ */ J(T, {
1796
+ }), /* @__PURE__ */ q(T, {
1797
1797
  variant: "btn",
1798
1798
  children: "Dashboard"
1799
1799
  })]
1800
1800
  })]
1801
1801
  })
1802
1802
  });
1803
- case "metric-search": return /* @__PURE__ */ J("div", {
1803
+ case "metric-search": return /* @__PURE__ */ q("div", {
1804
1804
  className: "dbn:flex dbn:justify-center dbn:items-center",
1805
1805
  style: { height: k ? "200px" : "calc(100% - 50px)" },
1806
- children: /* @__PURE__ */ Y("div", {
1806
+ children: /* @__PURE__ */ J("div", {
1807
1807
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1808
- children: [/* @__PURE__ */ J(V, {
1808
+ children: [/* @__PURE__ */ q(B, {
1809
1809
  message: "No results found.",
1810
1810
  subText: "Try adjusting your search or create a new metric.",
1811
1811
  height: k ? "0px" : "140px",
@@ -1814,25 +1814,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1814
1814
  subTextGap: "6px",
1815
1815
  msgVariant: "sec-heading-4",
1816
1816
  isNoMatchedMetric: !0
1817
- }), S && /* @__PURE__ */ Y("div", {
1818
- className: H.createBtn,
1817
+ }), S && /* @__PURE__ */ J("div", {
1818
+ className: V.createBtn,
1819
1819
  onClick: O,
1820
- children: [/* @__PURE__ */ J(m, {
1820
+ children: [/* @__PURE__ */ q(m, {
1821
1821
  size: "sm",
1822
1822
  name: "plus"
1823
- }), /* @__PURE__ */ J(T, {
1823
+ }), /* @__PURE__ */ q(T, {
1824
1824
  variant: "btn",
1825
1825
  children: "Metric"
1826
1826
  })]
1827
1827
  })]
1828
1828
  })
1829
1829
  });
1830
- case "datasource-search": return /* @__PURE__ */ J("div", {
1830
+ case "datasource-search": return /* @__PURE__ */ q("div", {
1831
1831
  className: "dbn:flex dbn:justify-center dbn:items-center",
1832
1832
  style: { height: "350px" },
1833
- children: /* @__PURE__ */ J("div", {
1833
+ children: /* @__PURE__ */ q("div", {
1834
1834
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1835
- children: /* @__PURE__ */ J(V, {
1835
+ children: /* @__PURE__ */ q(B, {
1836
1836
  message: "No results found.",
1837
1837
  subText: "Try adjusting your search or create a new datasource.",
1838
1838
  height: "140px",
@@ -1844,12 +1844,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1844
1844
  })
1845
1845
  })
1846
1846
  });
1847
- case "datamart-search": return /* @__PURE__ */ J("div", {
1847
+ case "datamart-search": return /* @__PURE__ */ q("div", {
1848
1848
  className: "dbn:flex dbn:justify-center dbn:items-center",
1849
1849
  style: { height: "350px" },
1850
- children: /* @__PURE__ */ J("div", {
1850
+ children: /* @__PURE__ */ q("div", {
1851
1851
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1852
- children: /* @__PURE__ */ J(V, {
1852
+ children: /* @__PURE__ */ q(B, {
1853
1853
  message: "No results found.",
1854
1854
  subText: "Try adjusting your search or create a new datamart.",
1855
1855
  height: "140px",
@@ -1861,12 +1861,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1861
1861
  })
1862
1862
  })
1863
1863
  });
1864
- case "dataapp-search": return /* @__PURE__ */ J("div", {
1864
+ case "dataapp-search": return /* @__PURE__ */ q("div", {
1865
1865
  className: "dbn:flex dbn:justify-center dbn:items-center",
1866
1866
  style: { height: "350px" },
1867
- children: /* @__PURE__ */ J("div", {
1867
+ children: /* @__PURE__ */ q("div", {
1868
1868
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1869
- children: /* @__PURE__ */ J(V, {
1869
+ children: /* @__PURE__ */ q(B, {
1870
1870
  message: "No results found.",
1871
1871
  subText: "Try adjusting your search or create a new dataapp.",
1872
1872
  height: "140px",
@@ -1878,12 +1878,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1878
1878
  })
1879
1879
  })
1880
1880
  });
1881
- case "semantic-search": return /* @__PURE__ */ J("div", {
1881
+ case "semantic-search": return /* @__PURE__ */ q("div", {
1882
1882
  className: "dbn:flex dbn:justify-center dbn:items-center",
1883
1883
  style: { height: "350px" },
1884
- children: /* @__PURE__ */ J("div", {
1884
+ children: /* @__PURE__ */ q("div", {
1885
1885
  className: "dbn:flex dbn:flex-col dbn:gap-6 dbn:justify-center dbn:items-center",
1886
- children: /* @__PURE__ */ J(V, {
1886
+ children: /* @__PURE__ */ q(B, {
1887
1887
  message: "No results found.",
1888
1888
  subText: "Try adjusting your search or create a new Data Mart to load its Semantic Layer.",
1889
1889
  height: "140px",
@@ -1895,10 +1895,10 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1895
1895
  })
1896
1896
  })
1897
1897
  });
1898
- case "embeds-search": return /* @__PURE__ */ J("div", {
1898
+ case "embeds-search": return /* @__PURE__ */ q("div", {
1899
1899
  className: "dbn:flex dbn:justify-center dbn:items-center",
1900
1900
  style: { height: "250px" },
1901
- children: /* @__PURE__ */ J(V, {
1901
+ children: /* @__PURE__ */ q(B, {
1902
1902
  message: "No results found.",
1903
1903
  subText: "Try adjusting your search or add a new embed.",
1904
1904
  height: "100px",
@@ -1911,25 +1911,25 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1911
1911
  default: return null;
1912
1912
  }
1913
1913
  return null;
1914
- }, pe = () => {
1914
+ }, me = () => {
1915
1915
  if (D) switch (D) {
1916
- case "datasource": return /* @__PURE__ */ Y(ur, { children: [/* @__PURE__ */ J("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ Y("div", {
1916
+ 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", {
1917
1917
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
1918
1918
  children: [
1919
- /* @__PURE__ */ J(T, {
1919
+ /* @__PURE__ */ q(T, {
1920
1920
  variant: "heading-2",
1921
1921
  color: "primary",
1922
1922
  children: "FAQs"
1923
1923
  }),
1924
- /* @__PURE__ */ J(Bn, {
1924
+ /* @__PURE__ */ q(Vn, {
1925
1925
  header: "What is a Data Source?",
1926
- isOpen: P === "datasource",
1926
+ isOpen: N === "datasource",
1927
1927
  setIsOpen: () => {
1928
- F((e) => e === "datasource" ? "" : "datasource");
1928
+ P((e) => e === "datasource" ? "" : "datasource");
1929
1929
  },
1930
- content: /* @__PURE__ */ J("div", {
1930
+ content: /* @__PURE__ */ q("div", {
1931
1931
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
1932
- children: /* @__PURE__ */ J(T, {
1932
+ children: /* @__PURE__ */ q(T, {
1933
1933
  variant: "faq-content",
1934
1934
  color: "light",
1935
1935
  children: "A connection point for integrating and monitoring all your data in one place."
@@ -1937,20 +1937,20 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1937
1937
  }),
1938
1938
  width: "100%"
1939
1939
  }, "datasource"),
1940
- /* @__PURE__ */ J(Bn, {
1940
+ /* @__PURE__ */ q(Vn, {
1941
1941
  header: "How to set up a Data Source?",
1942
- isOpen: P === "datasource-setup",
1942
+ isOpen: N === "datasource-setup",
1943
1943
  setIsOpen: () => {
1944
- F((e) => e === "datasource-setup" ? "" : "datasource-setup");
1944
+ P((e) => e === "datasource-setup" ? "" : "datasource-setup");
1945
1945
  },
1946
- content: /* @__PURE__ */ Y("div", {
1946
+ content: /* @__PURE__ */ J("div", {
1947
1947
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-end dbn:-top-3 dbn:relative",
1948
- children: [/* @__PURE__ */ Y(T, {
1948
+ children: [/* @__PURE__ */ J(T, {
1949
1949
  variant: "faq-content",
1950
1950
  color: "light",
1951
1951
  children: [
1952
1952
  "To connect your Data follow these steps ",
1953
- /* @__PURE__ */ J("br", {}),
1953
+ /* @__PURE__ */ q("br", {}),
1954
1954
  "+ Datasource ",
1955
1955
  ">",
1956
1956
  " Select your Datasource ",
@@ -1961,12 +1961,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1961
1961
  ">",
1962
1962
  " Save"
1963
1963
  ]
1964
- }), /* @__PURE__ */ J(To, {
1964
+ }), /* @__PURE__ */ q(To, {
1965
1965
  target: "_blank",
1966
1966
  to: "https://docs.usedatabrain.com/guides/onboarding-and-configuration/add-a-data-source",
1967
- children: /* @__PURE__ */ J(b, {
1967
+ children: /* @__PURE__ */ q(b, {
1968
1968
  variant: "popover",
1969
- leftIcon: /* @__PURE__ */ J(m, {
1969
+ leftIcon: /* @__PURE__ */ q(m, {
1970
1970
  name: "new-window",
1971
1971
  color: "cta"
1972
1972
  }),
@@ -1979,23 +1979,23 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
1979
1979
  }, "datasource-setup")
1980
1980
  ]
1981
1981
  })] });
1982
- case "dataapp": return /* @__PURE__ */ Y(ur, { children: [/* @__PURE__ */ J("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ Y("div", {
1982
+ 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", {
1983
1983
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
1984
1984
  children: [
1985
- /* @__PURE__ */ J(T, {
1985
+ /* @__PURE__ */ q(T, {
1986
1986
  variant: "heading-2",
1987
1987
  color: "primary",
1988
1988
  children: "FAQs"
1989
1989
  }),
1990
- /* @__PURE__ */ J(Bn, {
1990
+ /* @__PURE__ */ q(Vn, {
1991
1991
  header: "What are Data Apps?",
1992
- isOpen: P === "dataapp",
1992
+ isOpen: N === "dataapp",
1993
1993
  setIsOpen: () => {
1994
- F((e) => e === "dataapp" ? "" : "dataapp");
1994
+ P((e) => e === "dataapp" ? "" : "dataapp");
1995
1995
  },
1996
- content: /* @__PURE__ */ J("div", {
1996
+ content: /* @__PURE__ */ q("div", {
1997
1997
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
1998
- children: /* @__PURE__ */ J(T, {
1998
+ children: /* @__PURE__ */ q(T, {
1999
1999
  variant: "faq-content",
2000
2000
  color: "light",
2001
2001
  children: "Tools for embedding dashboards and metrics on your site, enabling centralized monitoring."
@@ -2003,20 +2003,20 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2003
2003
  }),
2004
2004
  width: "100%"
2005
2005
  }, "dataapp"),
2006
- /* @__PURE__ */ J(Bn, {
2006
+ /* @__PURE__ */ q(Vn, {
2007
2007
  header: "How to set up a Data App?",
2008
- isOpen: P === "dataapp-setup",
2008
+ isOpen: N === "dataapp-setup",
2009
2009
  setIsOpen: () => {
2010
- F((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
2010
+ P((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
2011
2011
  },
2012
- content: /* @__PURE__ */ Y("div", {
2012
+ content: /* @__PURE__ */ J("div", {
2013
2013
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2014
- children: [/* @__PURE__ */ Y(T, {
2014
+ children: [/* @__PURE__ */ J(T, {
2015
2015
  variant: "faq-content",
2016
2016
  color: "light",
2017
2017
  children: [
2018
2018
  "To connect your data follow these steps ",
2019
- /* @__PURE__ */ J("br", {}),
2019
+ /* @__PURE__ */ q("br", {}),
2020
2020
  "+ Data App",
2021
2021
  " ",
2022
2022
  ">",
@@ -2029,12 +2029,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2029
2029
  ">",
2030
2030
  " Save"
2031
2031
  ]
2032
- }), /* @__PURE__ */ J(To, {
2032
+ }), /* @__PURE__ */ q(To, {
2033
2033
  target: "_blank",
2034
2034
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-data-app",
2035
- children: /* @__PURE__ */ J(b, {
2035
+ children: /* @__PURE__ */ q(b, {
2036
2036
  variant: "popover",
2037
- leftIcon: /* @__PURE__ */ J(m, {
2037
+ leftIcon: /* @__PURE__ */ q(m, {
2038
2038
  name: "new-window",
2039
2039
  color: "cta"
2040
2040
  }),
@@ -2047,23 +2047,23 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2047
2047
  }, "dataapp-setup")
2048
2048
  ]
2049
2049
  })] });
2050
- case "datamart": return /* @__PURE__ */ Y(ur, { children: [/* @__PURE__ */ J("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ Y("div", {
2050
+ 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", {
2051
2051
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2052
2052
  children: [
2053
- /* @__PURE__ */ J(T, {
2053
+ /* @__PURE__ */ q(T, {
2054
2054
  variant: "heading-2",
2055
2055
  color: "primary",
2056
2056
  children: "FAQs"
2057
2057
  }),
2058
- /* @__PURE__ */ J(Bn, {
2058
+ /* @__PURE__ */ q(Vn, {
2059
2059
  header: "What is a Data Mart?",
2060
- isOpen: P === "datamart",
2060
+ isOpen: N === "datamart",
2061
2061
  setIsOpen: () => {
2062
- F((e) => e === "datamart" ? "" : "datamart");
2062
+ P((e) => e === "datamart" ? "" : "datamart");
2063
2063
  },
2064
- content: /* @__PURE__ */ J("div", {
2064
+ content: /* @__PURE__ */ q("div", {
2065
2065
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2066
- children: /* @__PURE__ */ J(T, {
2066
+ children: /* @__PURE__ */ q(T, {
2067
2067
  variant: "faq-content",
2068
2068
  color: "light",
2069
2069
  children: "A focused subset of data, optimized to speed up insights and streamline workflows."
@@ -2071,20 +2071,20 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2071
2071
  }),
2072
2072
  width: "100%"
2073
2073
  }, "datamart"),
2074
- /* @__PURE__ */ J(Bn, {
2074
+ /* @__PURE__ */ q(Vn, {
2075
2075
  header: "How to set up a Data Mart?",
2076
- isOpen: P === "datamart-setup",
2076
+ isOpen: N === "datamart-setup",
2077
2077
  setIsOpen: () => {
2078
- F((e) => e === "datamart-setup" ? "" : "datamart-setup");
2078
+ P((e) => e === "datamart-setup" ? "" : "datamart-setup");
2079
2079
  },
2080
- content: /* @__PURE__ */ Y("div", {
2080
+ content: /* @__PURE__ */ J("div", {
2081
2081
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2082
- children: [/* @__PURE__ */ Y(T, {
2082
+ children: [/* @__PURE__ */ J(T, {
2083
2083
  variant: "faq-content",
2084
2084
  color: "light",
2085
2085
  children: [
2086
2086
  "To create your Data Mart follow these steps ",
2087
- /* @__PURE__ */ J("br", {}),
2087
+ /* @__PURE__ */ q("br", {}),
2088
2088
  "+ Data Mart ",
2089
2089
  ">",
2090
2090
  " Select your Datasource ",
@@ -2097,12 +2097,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2097
2097
  ">",
2098
2098
  " Save"
2099
2099
  ]
2100
- }), /* @__PURE__ */ J(To, {
2100
+ }), /* @__PURE__ */ q(To, {
2101
2101
  target: "_blank",
2102
2102
  to: "https://docs.usedatabrain.com/guides/datasources/create-a-datamart",
2103
- children: /* @__PURE__ */ J(b, {
2103
+ children: /* @__PURE__ */ q(b, {
2104
2104
  variant: "popover",
2105
- leftIcon: /* @__PURE__ */ J(m, {
2105
+ leftIcon: /* @__PURE__ */ q(m, {
2106
2106
  name: "new-window",
2107
2107
  color: "cta"
2108
2108
  }),
@@ -2115,23 +2115,23 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2115
2115
  }, "datamart-setup")
2116
2116
  ]
2117
2117
  })] });
2118
- case "semantic": return /* @__PURE__ */ Y(ur, { children: [/* @__PURE__ */ J("div", { className: "dbn:w-full dbn:h-0.5 dbn:border-b dbn:border-secondary" }), /* @__PURE__ */ Y("div", {
2118
+ 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", {
2119
2119
  className: "dbn:w-full dbn:flex dbn:flex-col dbn:gap-4 dbn:pb-5",
2120
2120
  children: [
2121
- /* @__PURE__ */ J(T, {
2121
+ /* @__PURE__ */ q(T, {
2122
2122
  variant: "heading-2",
2123
2123
  color: "primary",
2124
2124
  children: "FAQs"
2125
2125
  }),
2126
- /* @__PURE__ */ J(Bn, {
2126
+ /* @__PURE__ */ q(Vn, {
2127
2127
  header: "What is a Semantic Layer?",
2128
- isOpen: P === "semantic",
2128
+ isOpen: N === "semantic",
2129
2129
  setIsOpen: () => {
2130
- F((e) => e === "semantic" ? "" : "semantic");
2130
+ P((e) => e === "semantic" ? "" : "semantic");
2131
2131
  },
2132
- content: /* @__PURE__ */ J("div", {
2132
+ content: /* @__PURE__ */ q("div", {
2133
2133
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2134
- children: /* @__PURE__ */ J(T, {
2134
+ children: /* @__PURE__ */ q(T, {
2135
2135
  variant: "faq-content",
2136
2136
  color: "light",
2137
2137
  children: "An enhancement layer for Data Marts that adds context and relationships for accurate, natural language queries."
@@ -2139,20 +2139,20 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2139
2139
  }),
2140
2140
  width: "100%"
2141
2141
  }, "semantic"),
2142
- /* @__PURE__ */ J(Bn, {
2142
+ /* @__PURE__ */ q(Vn, {
2143
2143
  header: "How to set up a Semantic Layer?",
2144
- isOpen: P === "semantic-setup",
2144
+ isOpen: N === "semantic-setup",
2145
2145
  setIsOpen: () => {
2146
- F((e) => e === "semantic-setup" ? "" : "semantic-setup");
2146
+ P((e) => e === "semantic-setup" ? "" : "semantic-setup");
2147
2147
  },
2148
- content: /* @__PURE__ */ Y("div", {
2148
+ content: /* @__PURE__ */ J("div", {
2149
2149
  className: "dbn:w-full dbn:px-5 dbn:flex dbn:justify-between dbn:items-start dbn:-top-3 dbn:relative",
2150
- children: [/* @__PURE__ */ Y(T, {
2150
+ children: [/* @__PURE__ */ J(T, {
2151
2151
  variant: "faq-content",
2152
2152
  color: "light",
2153
2153
  children: [
2154
2154
  "To set up your Semantic Layer follow these steps ",
2155
- /* @__PURE__ */ J("br", {}),
2155
+ /* @__PURE__ */ q("br", {}),
2156
2156
  "Select your Data Mart ",
2157
2157
  ">",
2158
2158
  " Enter Table and Column Info",
@@ -2165,12 +2165,12 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2165
2165
  ">",
2166
2166
  " Save"
2167
2167
  ]
2168
- }), /* @__PURE__ */ J(To, {
2168
+ }), /* @__PURE__ */ q(To, {
2169
2169
  target: "_blank",
2170
2170
  to: "https://docs.usedatabrain.com/guides/datasources/semantic-layer",
2171
- children: /* @__PURE__ */ J(b, {
2171
+ children: /* @__PURE__ */ q(b, {
2172
2172
  variant: "popover",
2173
- leftIcon: /* @__PURE__ */ J(m, {
2173
+ leftIcon: /* @__PURE__ */ q(m, {
2174
2174
  name: "new-window",
2175
2175
  color: "cta"
2176
2176
  }),
@@ -2186,70 +2186,70 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2186
2186
  default: return null;
2187
2187
  }
2188
2188
  return null;
2189
- }, me = K(null);
2190
- return W(() => {
2191
- p && f && me.current && me.current.scrollTo({
2189
+ }, he = G(null);
2190
+ return U(() => {
2191
+ p && f && he.current && he.current.scrollTo({
2192
2192
  top: 0,
2193
2193
  behavior: "auto"
2194
2194
  });
2195
- }, [f]), /* @__PURE__ */ Y(ur, { children: [/* @__PURE__ */ Y("div", {
2196
- ref: me,
2197
- className: `${H[`container-${n}`]} ${a}`,
2195
+ }, [f]), /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ J("div", {
2196
+ ref: he,
2197
+ className: `${V[`container-${n}`]} ${a}`,
2198
2198
  children: [
2199
- c ? /* @__PURE__ */ J("div", {
2199
+ c ? /* @__PURE__ */ q("div", {
2200
2200
  className: "dbn:my-5 dbn:w-full dbn:flex dbn:items-center dbn:justify-end",
2201
- children: /* @__PURE__ */ J(v, {
2201
+ children: /* @__PURE__ */ q(v, {
2202
2202
  variant: "table",
2203
2203
  tableRows: 4
2204
2204
  })
2205
2205
  }) : null,
2206
- !c && t.length === 0 && !D ? /* @__PURE__ */ J("div", {
2207
- className: H.noData,
2208
- children: /* @__PURE__ */ J(V, {
2206
+ !c && t.length === 0 && !D ? /* @__PURE__ */ q("div", {
2207
+ className: V.noData,
2208
+ children: /* @__PURE__ */ q(B, {
2209
2209
  message: r,
2210
2210
  subText: oe,
2211
2211
  children: ae,
2212
2212
  ...j
2213
2213
  })
2214
2214
  }) : null,
2215
- !c && (t.length || D) ? /* @__PURE__ */ Y("table", {
2216
- className: `${H.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2217
- children: [/* @__PURE__ */ J("thead", {
2218
- className: `${H[`headers-${n}`]} ${t.length === 0 ? H[`headers-${n}-nodata`] : ""} dbn:z-50`,
2219
- children: /* @__PURE__ */ J("tr", { children: e?.map((t, n) => /* @__PURE__ */ Y("th", {
2215
+ !c && (t.length || D) ? /* @__PURE__ */ J("table", {
2216
+ className: `${V.table} ${t.length > 0 ? "" : "dbn:h-0"}`,
2217
+ children: [/* @__PURE__ */ q("thead", {
2218
+ className: `${V[`headers-${n}`]} ${t.length === 0 ? V[`headers-${n}-nodata`] : ""} dbn:z-50`,
2219
+ children: /* @__PURE__ */ q("tr", { children: e?.map((t, n) => /* @__PURE__ */ J("th", {
2220
2220
  colSpan: t.colSpan,
2221
- className: `${w ? H.headerCol2 : H.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2222
- children: [/* @__PURE__ */ Y("span", {
2221
+ className: `${w ? V.headerCol2 : V.headerCol} ${t.columnKey?.toLowerCase() === "actions" ? "dbn:w-[250px]" : ""}`,
2222
+ children: [/* @__PURE__ */ J("span", {
2223
2223
  className: `${g && n === 0 ? "dbn:flex dbn:gap-2" : ""}`,
2224
- children: [n === 0 && g ? /* @__PURE__ */ J(y, {
2224
+ children: [n === 0 && g ? /* @__PURE__ */ q(y, {
2225
2225
  id: `${t?.name?.replaceAll(" ", "-")?.toLowerCase()}-header-checkbox`,
2226
2226
  onChange: (e) => {
2227
2227
  e.target.checked ? _?.() : ee?.();
2228
2228
  },
2229
2229
  checked: x
2230
- }) : null, /* @__PURE__ */ J(T, {
2230
+ }) : null, /* @__PURE__ */ q(T, {
2231
2231
  variant: "sec-heading-6",
2232
2232
  color: "gray",
2233
2233
  children: t.headerCell || t.name
2234
2234
  })]
2235
- }), n === e.length - 1 && w ? /* @__PURE__ */ J(T, {
2235
+ }), n === e.length - 1 && w ? /* @__PURE__ */ q(T, {
2236
2236
  variant: "body-text-3",
2237
2237
  color: "cta",
2238
2238
  children: w
2239
2239
  }) : null]
2240
2240
  }, t.name)) })
2241
- }), /* @__PURE__ */ J("tbody", {
2242
- className: H.body,
2243
- children: (h ? t : t.slice(0, N))?.map((t, r) => /* @__PURE__ */ J("tr", {
2241
+ }), /* @__PURE__ */ q("tbody", {
2242
+ className: V.body,
2243
+ children: (h ? t : t.slice(0, ce))?.map((t, r) => /* @__PURE__ */ q("tr", {
2244
2244
  "data-testid": `row-${t?.name ?? t?.metric?.name ?? t?.companyRole?.name ?? t?.email?.split("@")?.[0]}`,
2245
- className: `${H[`row-${n}`]} ${S || ne || re || E ? "dbn:cursor-pointer" : ""}`,
2245
+ className: `${V[`row-${n}`]} ${S || ne || re || E ? "dbn:cursor-pointer" : ""}`,
2246
2246
  onClick: (e) => {
2247
2247
  ne && ne(t), E && E(t);
2248
- let n = de(t);
2248
+ let n = fe(t);
2249
2249
  n && ((e.ctrlKey || e.metaKey) && A ? window.open(n, "_blank") : D ? M(n, { state: { [D]: t } }) : M(n));
2250
2250
  },
2251
2251
  onContextMenu: (e) => {
2252
- let n = de(t);
2252
+ let n = fe(t);
2253
2253
  n && A && (e.preventDefault(), window.open(n, "_blank"));
2254
2254
  },
2255
2255
  "data-test-title": "table-rows",
@@ -2257,60 +2257,60 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2257
2257
  onMouseOut: () => ie?.(),
2258
2258
  children: e?.map((r, i) => {
2259
2259
  let a = r.columnKey === "invitationToken" && !!t[r.columnKey];
2260
- return /* @__PURE__ */ J("td", {
2260
+ return /* @__PURE__ */ q("td", {
2261
2261
  colSpan: r.colSpan,
2262
- className: `${H.col} ${H[`col-${n}`]}`,
2263
- children: /* @__PURE__ */ J("div", {
2264
- className: H[`col-${n}-cell`],
2265
- children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ Y("div", {
2262
+ className: `${V.col} ${V[`col-${n}`]}`,
2263
+ children: /* @__PURE__ */ q("div", {
2264
+ className: V[`col-${n}-cell`],
2265
+ children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */ J("div", {
2266
2266
  className: "dbn:flex dbn:gap-2",
2267
- children: [(t?.type || t?.dbName) && /* @__PURE__ */ J(o, {
2267
+ children: [(t?.type || t?.dbName) && /* @__PURE__ */ q(o, {
2268
2268
  name: r.columnKey?.toLowerCase() === "type" ? t.type?.toString() : t.dbName?.toString()?.toLowerCase(),
2269
2269
  width: 20
2270
2270
  }), 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]) || "-"]
2271
- }) : /* @__PURE__ */ Y("div", {
2271
+ }) : /* @__PURE__ */ J("div", {
2272
2272
  className: "dbn:w-full dbn:flex dbn:items-center dbn:justify-between",
2273
- children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ Y(ur, { children: [/* @__PURE__ */ J(T, {
2273
+ children: [(r.columnCell ? r.columnCell(t) : a ? /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ q(T, {
2274
2274
  variant: "body-text-2",
2275
2275
  className: "dbn:text-xs",
2276
2276
  children: "XXXX"
2277
- }), /* @__PURE__ */ J(b, {
2277
+ }), /* @__PURE__ */ q(b, {
2278
2278
  "data-testid": "invitation-copy",
2279
2279
  variant: "tertiary",
2280
2280
  type: "button",
2281
2281
  onClick: () => {
2282
- navigator.clipboard.writeText(t[r.columnKey]), ue(t[r.columnKey]), setTimeout(() => ue(""), 1700);
2282
+ navigator.clipboard.writeText(t[r.columnKey]), de(t[r.columnKey]), setTimeout(() => de(""), 1700);
2283
2283
  },
2284
- leftIcon: /* @__PURE__ */ J(m, {
2284
+ leftIcon: /* @__PURE__ */ q(m, {
2285
2285
  name: "copy",
2286
2286
  size: "xs"
2287
2287
  }),
2288
2288
  className: "dbn:p-0 dbn:pl-1 dbn:text-xs dbn:gap-1",
2289
- children: le === t[r.columnKey] ? "Copied" : "Copy"
2290
- })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ Y(te, {
2291
- buttonContent: /* @__PURE__ */ J(b, {
2289
+ children: ue === t[r.columnKey] ? "Copied" : "Copy"
2290
+ })] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */ J(te, {
2291
+ buttonContent: /* @__PURE__ */ q(b, {
2292
2292
  variant: "popover",
2293
- leftIcon: /* @__PURE__ */ J(m, { name: "kebab-menu-vertical" })
2293
+ leftIcon: /* @__PURE__ */ q(m, { name: "kebab-menu-vertical" })
2294
2294
  }),
2295
2295
  menuWidth: "120px",
2296
2296
  position: "bottom",
2297
- children: [/* @__PURE__ */ J(b, {
2297
+ children: [/* @__PURE__ */ q(b, {
2298
2298
  variant: "popover",
2299
2299
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2300
2300
  onClick: () => d?.({
2301
2301
  action: "edit",
2302
2302
  id: t.id
2303
2303
  }),
2304
- leftIcon: /* @__PURE__ */ J(m, { name: "pencil-simple" }),
2304
+ leftIcon: /* @__PURE__ */ q(m, { name: "pencil-simple" }),
2305
2305
  children: "Edit"
2306
- }), /* @__PURE__ */ J(b, {
2306
+ }), /* @__PURE__ */ q(b, {
2307
2307
  variant: "popover",
2308
2308
  className: "dbn:p-2 dbn:flex dbn:justify-start dbn:w-full dbn:hover:bg-gray",
2309
2309
  onClick: () => d?.({
2310
2310
  action: "delete",
2311
2311
  id: t.id
2312
2312
  }),
2313
- leftIcon: /* @__PURE__ */ J(m, { name: "delete" }),
2313
+ leftIcon: /* @__PURE__ */ q(m, { name: "delete" }),
2314
2314
  children: "Delete"
2315
2315
  })]
2316
2316
  }) : null]
@@ -2321,18 +2321,18 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2321
2321
  }, `row-${r}`))
2322
2322
  })]
2323
2323
  }) : null,
2324
- !c && t.length === 0 && D ? /* @__PURE__ */ J(ur, { children: fe() }) : null,
2325
- t.length > N && !h ? /* @__PURE__ */ J("div", {
2326
- className: H.loadMore,
2327
- children: /* @__PURE__ */ Y(b, {
2324
+ !c && t.length === 0 && D ? /* @__PURE__ */ q(dr, { children: pe() }) : null,
2325
+ t.length > ce && !h ? /* @__PURE__ */ q("div", {
2326
+ className: V.loadMore,
2327
+ children: /* @__PURE__ */ J(b, {
2328
2328
  type: "button",
2329
2329
  variant: "tertiary",
2330
- onClick: () => ce((e) => e + s),
2331
- children: [/* @__PURE__ */ J(m, { name: "arrow-down" }), /* @__PURE__ */ J("span", { children: i })]
2330
+ onClick: () => le((e) => e + s),
2331
+ children: [/* @__PURE__ */ q(m, { name: "arrow-down" }), /* @__PURE__ */ q("span", { children: i })]
2332
2332
  })
2333
2333
  }) : null
2334
2334
  ]
2335
- }), t.length === 0 && D && /* @__PURE__ */ J(ur, { children: pe() })] });
2335
+ }), t.length === 0 && D && /* @__PURE__ */ q(dr, { children: me() })] });
2336
2336
  }, Q = {
2337
2337
  "table-loader-container": "_table-loader-container_o1h6j_8",
2338
2338
  tableData: "_tableData_o1h6j_21",
@@ -2405,8 +2405,8 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2405
2405
  "col-view-primary-cell": "_col-view-primary-cell_o1h6j_269",
2406
2406
  link: "_link_o1h6j_273",
2407
2407
  textLineBreak: "_textLineBreak_o1h6j_277"
2408
- }, Io = Kn(), Lo = (e, t, n, r) => {
2409
- let i = Un(e.getValue(t), n);
2408
+ }, Io = qn(), Lo = (e, t, n, r) => {
2409
+ let i = Wn(e.getValue(t), n);
2410
2410
  return r({ itemRank: i }), i.passed;
2411
2411
  }, Ro = (e, t, n) => {
2412
2412
  let r = e.getValue(t);
@@ -2416,16 +2416,16 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2416
2416
  offset: 0,
2417
2417
  totalRecords: 10
2418
2418
  }, externalGlobalFilter: l, setExternalGlobalFilter: u, headerAlignment: f = "center", events: p, language: m, translationDictionary: h, isMetricCard: g, isDisableChartActions: _ }) => {
2419
- let [y, b] = q([]), [x, S] = q(","), C = (e) => {
2419
+ let [y, b] = K([]), [x, S] = K(","), C = (e) => {
2420
2420
  let t = {};
2421
2421
  return Object.keys(e).sort().forEach((n) => {
2422
2422
  t[n] = e[n];
2423
2423
  }), t;
2424
- }, w = G(() => r?.isSortAlphabetically ? e?.map((e) => C(e)) : e, [e, r?.isSortAlphabetically]);
2425
- W(() => {
2424
+ }, w = W(() => r?.isSortAlphabetically ? e?.map((e) => C(e)) : e, [e, r?.isSortAlphabetically]);
2425
+ U(() => {
2426
2426
  r?.badgeSeparator ? S(r.badgeSeparator) : S(",");
2427
2427
  }, [r?.badgeSeparator]);
2428
- let te = G(() => {
2428
+ let te = W(() => {
2429
2429
  let e = "2.5rem";
2430
2430
  return r?.textWrap?.isEnable ? e = "auto" : r?.lineGap === "small" ? e = "36px" : r?.lineGap === "medium" ? e = "40px" : r?.lineGap === "large" && (e = "44px"), {
2431
2431
  width: "100%",
@@ -2449,11 +2449,11 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2449
2449
  };
2450
2450
  if (t && Object.keys(t).includes(e)) return { backgroundColor: t[e] };
2451
2451
  if (n && Object.keys(n).includes(e)) return { color: n[e] };
2452
- }, [E, re] = q(r?.columnSizing), ie = K(null), ae = G(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? ee(w, r?.isEnableTranspose) : w, [
2452
+ }, [E, re] = K(r?.columnSizing), ie = G(null), ae = W(() => !e || !w || !Array.isArray(e) || !Array.isArray(w) ? [] : r?.isEnableTranspose ? ee(w, r?.isEnableTranspose) : w, [
2453
2453
  e,
2454
2454
  w,
2455
2455
  r?.isEnableTranspose
2456
- ]), oe = G(() => !m || !h ? ae : ae?.map((e) => {
2456
+ ]), oe = W(() => !m || !h ? ae : ae?.map((e) => {
2457
2457
  let t = {};
2458
2458
  for (let n in e) {
2459
2459
  let r = d({
@@ -2472,7 +2472,7 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2472
2472
  ae,
2473
2473
  m,
2474
2474
  h
2475
- ]), se = G(() => oe, [oe]), D = G(() => {
2475
+ ]), se = W(() => oe, [oe]), D = W(() => {
2476
2476
  let e = Object.keys(oe[0] || {});
2477
2477
  return r?.showColumnFilter && (e = y), r?.isEnableViewDetails && (e = [...e, "View Details"]), r?.hiddenColumns?.length && (e = e?.filter((e) => !r?.hiddenColumns?.includes(e))), e?.map((e) => Io.accessor(e, {
2478
2478
  header: () => e,
@@ -2482,48 +2482,48 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2482
2482
  },
2483
2483
  enableResizing: !0
2484
2484
  }));
2485
- }, [oe[0], y]), O = Yn({
2485
+ }, [oe[0], y]), O = Xn({
2486
2486
  data: se,
2487
2487
  columns: D,
2488
2488
  state: { ...E ? { columnSizing: E } : {} },
2489
2489
  filterFns: { fuzzy: Lo },
2490
2490
  globalFilterFn: Ro,
2491
- getCoreRowModel: Gn(),
2492
- getFilteredRowModel: Jn(),
2491
+ getCoreRowModel: Kn(),
2492
+ getFilteredRowModel: Yn(),
2493
2493
  debugTable: !1,
2494
2494
  enableColumnResizing: !0,
2495
2495
  columnResizeMode: "onChange",
2496
2496
  onColumnSizingChange: re
2497
- }), k = O.getSortedRowModel().rows, A = Wn({
2497
+ }), k = O.getSortedRowModel().rows, A = Gn({
2498
2498
  count: k.length,
2499
2499
  getScrollElement: () => ie.current,
2500
2500
  estimateSize: () => zo(r),
2501
2501
  overscan: 12
2502
- }), j = A.getVirtualItems(), M = j.length ? j[0].start : 0, N = j.length ? A.getTotalSize() - j[j.length - 1].end : 0, ce = O.getVisibleLeafColumns().length || 1;
2503
- W(() => {
2502
+ }), j = A.getVirtualItems(), M = j.length ? j[0].start : 0, ce = j.length ? A.getTotalSize() - j[j.length - 1].end : 0, le = O.getVisibleLeafColumns().length || 1;
2503
+ U(() => {
2504
2504
  O.getIsSomeColumnsVisible() && o?.();
2505
2505
  }, [O.getIsSomeColumnsVisible()]);
2506
- let le = (e, t) => t?.includes(e) ? Q.badge : "";
2507
- return W(() => {
2506
+ let ue = (e, t) => t?.includes(e) ? Q.badge : "";
2507
+ return U(() => {
2508
2508
  r?.isEnableColumnFilter || O.resetColumnFilters();
2509
- }, [O, r?.isEnableColumnFilter]), W(() => {
2509
+ }, [O, r?.isEnableColumnFilter]), U(() => {
2510
2510
  b(Object.keys(oe[0] || {}));
2511
- }, [oe[0]]), /* @__PURE__ */ J("div", {
2511
+ }, [oe[0]]), /* @__PURE__ */ q("div", {
2512
2512
  className: `${Q.container} ${i}`,
2513
- children: /* @__PURE__ */ J("div", {
2513
+ children: /* @__PURE__ */ q("div", {
2514
2514
  className: Q.previewTable,
2515
- children: /* @__PURE__ */ Y("div", {
2515
+ children: /* @__PURE__ */ J("div", {
2516
2516
  className: `${Q.tableData} ${Q.noBorder}`,
2517
2517
  children: [
2518
- t && !e?.length ? /* @__PURE__ */ J(v, { variant: "table" }) : null,
2519
- !!w?.length && /* @__PURE__ */ J(Xn, {
2518
+ t && !e?.length ? /* @__PURE__ */ q(v, { variant: "table" }) : null,
2519
+ !!w?.length && /* @__PURE__ */ q(Zn, {
2520
2520
  style: { height: "100%" },
2521
2521
  scrollableNodeProps: { ref: ie },
2522
- children: /* @__PURE__ */ J("table", {
2522
+ children: /* @__PURE__ */ q("table", {
2523
2523
  className: Q.table,
2524
- children: /* @__PURE__ */ Y("tbody", { children: [
2525
- M > 0 ? /* @__PURE__ */ J("tr", { children: /* @__PURE__ */ J("td", {
2526
- colSpan: ce,
2524
+ children: /* @__PURE__ */ J("tbody", { children: [
2525
+ M > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2526
+ colSpan: le,
2527
2527
  style: {
2528
2528
  height: `${M}px`,
2529
2529
  padding: 0,
@@ -2532,7 +2532,7 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2532
2532
  }) }) : null,
2533
2533
  j?.map((e) => {
2534
2534
  let t = k[e.index];
2535
- return t ? /* @__PURE__ */ J("tr", {
2535
+ return t ? /* @__PURE__ */ q("tr", {
2536
2536
  ref: A.measureElement,
2537
2537
  "data-index": e.index,
2538
2538
  "data-testid": `table-row-${t.id}`,
@@ -2545,8 +2545,8 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2545
2545
  },
2546
2546
  children: t.getVisibleCells()?.map((e, t) => {
2547
2547
  let n = "";
2548
- le(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(x) && n?.toString()?.split(x));
2549
- 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) ? "-" : qn(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 = $n({
2548
+ ue(e.column.id, r?.badgeColumns) && (n = typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue(), n?.toString()?.includes(x) && n?.toString()?.split(x));
2549
+ 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({
2550
2550
  rules: r?.conditionalFormatting?.find(({ columnName: t }) => t === e?.column?.id)?.rules || [],
2551
2551
  value: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : e.getValue()
2552
2552
  }), u = l?.prefix || "", d = l?.suffix || "", f = !Object.keys(l)?.length && r?.badgeColumns?.includes(e.column.id) ? ne(e.column.id, r?.badgeColors, r?.badgeTextColors) : l, m = "", h = (f?.isApplyBadgeColor || !(f?.isApplyBgColor || !f?.badgeColor)) && !!Object.keys(l)?.length;
@@ -2556,29 +2556,29 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2556
2556
  let { backgroundColor: e, ...t } = l;
2557
2557
  v = t;
2558
2558
  }
2559
- return /* @__PURE__ */ Y("td", {
2559
+ return /* @__PURE__ */ J("td", {
2560
2560
  "data-testid": e.id,
2561
2561
  className: `${Q.tableRowCol}`,
2562
2562
  title: typeof e.getValue() == "object" ? JSON.stringify(e.getValue()) : `${e.getValue()}`,
2563
2563
  onClick: (e) => {
2564
- p?.click && o && (e.preventDefault(), Qn(s, c));
2564
+ p?.click && o && (e.preventDefault(), $n(s, c));
2565
2565
  },
2566
2566
  onContextMenu: (t) => {
2567
- p?.contextmenu && o ? (t.preventDefault(), Qn(s, c)) : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2567
+ p?.contextmenu && o ? (t.preventDefault(), $n(s, c)) : typeof e.getValue() == "string" && p?.contextmenu({ name: `${e.getValue()}` });
2568
2568
  },
2569
2569
  style: {
2570
2570
  position: "relative",
2571
2571
  width: `${e.column.getSize() / O.getTotalSize() * 100}%`
2572
2572
  },
2573
2573
  children: [
2574
- !!r && /* @__PURE__ */ J("div", {
2574
+ !!r && /* @__PURE__ */ q("div", {
2575
2575
  style: {
2576
2576
  ...te,
2577
2577
  ...v
2578
2578
  },
2579
- children: a() === "" ? /* @__PURE__ */ J(ur, {}) : /* @__PURE__ */ Y("span", {
2579
+ children: a() === "" ? /* @__PURE__ */ q(dr, {}) : /* @__PURE__ */ J("span", {
2580
2580
  "data-testid": "cell-content",
2581
- className: `${i ? Q.wrapText : Q.truncateText} ${le(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2581
+ className: `${i ? Q.wrapText : Q.truncateText} ${ue(e.column.id, r.badgeColumns) || h ? Q.badge : ""} ${o ? Q.link : ""} ${i && r?.textWrap?.enableLineBreaks ? Q.textLineBreak : ""}`,
2582
2582
  style: {
2583
2583
  fontFamily: r?.contentFont,
2584
2584
  color: r?.contentColor || "var(--dbn-typography-colorPrimary, #222c3a)",
@@ -2593,15 +2593,15 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2593
2593
  ]
2594
2594
  })
2595
2595
  }),
2596
- !r && /* @__PURE__ */ J("div", {
2596
+ !r && /* @__PURE__ */ q("div", {
2597
2597
  style: {
2598
2598
  textAlign: "center",
2599
2599
  width: "100%"
2600
2600
  },
2601
2601
  className: Q.truncateText,
2602
- children: qn(e.column.columnDef.cell, e.getContext())
2602
+ children: Jn(e.column.columnDef.cell, e.getContext())
2603
2603
  }),
2604
- e.column.getCanResize() ? /* @__PURE__ */ J("div", {
2604
+ e.column.getCanResize() ? /* @__PURE__ */ q("div", {
2605
2605
  className: "resizer",
2606
2606
  style: {
2607
2607
  position: "absolute",
@@ -2634,10 +2634,10 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2634
2634
  })
2635
2635
  }, t.id) : null;
2636
2636
  }),
2637
- N > 0 ? /* @__PURE__ */ J("tr", { children: /* @__PURE__ */ J("td", {
2638
- colSpan: ce,
2637
+ ce > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
2638
+ colSpan: le,
2639
2639
  style: {
2640
- height: `${N}px`,
2640
+ height: `${ce}px`,
2641
2641
  padding: 0,
2642
2642
  border: 0
2643
2643
  }
@@ -2645,28 +2645,28 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2645
2645
  ] })
2646
2646
  })
2647
2647
  }),
2648
- !e?.length && !t && !n.length && /* @__PURE__ */ Y("div", {
2648
+ !e?.length && !t && !n.length && /* @__PURE__ */ J("div", {
2649
2649
  className: Q.noData,
2650
2650
  children: [
2651
- /* @__PURE__ */ J("img", {
2651
+ /* @__PURE__ */ q("img", {
2652
2652
  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",
2653
2653
  alt: "no-data",
2654
2654
  width: "400px",
2655
2655
  height: "400px"
2656
2656
  }),
2657
- /* @__PURE__ */ J(T, {
2657
+ /* @__PURE__ */ q(T, {
2658
2658
  variant: "heading-3",
2659
2659
  children: "No data tables queried"
2660
2660
  }),
2661
- /* @__PURE__ */ J(T, {
2661
+ /* @__PURE__ */ q(T, {
2662
2662
  variant: "body-text-2",
2663
2663
  children: "Type your query and input fields beside to generate results and explore data"
2664
2664
  })
2665
2665
  ]
2666
2666
  }),
2667
- n && /* @__PURE__ */ J("div", {
2667
+ n && /* @__PURE__ */ q("div", {
2668
2668
  className: Q.error,
2669
- children: /* @__PURE__ */ J(T, { children: n })
2669
+ children: /* @__PURE__ */ q(T, { children: n })
2670
2670
  })
2671
2671
  ]
2672
2672
  })
@@ -2836,10 +2836,10 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
2836
2836
  return t !== t && n !== n;
2837
2837
  };
2838
2838
  })), $o = /* @__PURE__ */ i(((t) => {
2839
- Object.defineProperty(t, "__esModule", { value: !0 }), t.isEqual = void 0, t.isEqual = (Hn(), e(Vn)).__importDefault(Qo()).default;
2839
+ Object.defineProperty(t, "__esModule", { value: !0 }), t.isEqual = void 0, t.isEqual = (Un(), e(Hn)).__importDefault(Qo()).default;
2840
2840
  })), es = /* @__PURE__ */ n((/* @__PURE__ */ i(((n) => {
2841
2841
  Object.defineProperty(n, "__esModule", { value: !0 });
2842
- var r = (Hn(), e(Vn)), i = r.__importStar(t("react")), a = Jo(), o = Yo(), s = Xo(), c = Zo(), l = $o();
2842
+ var r = (Un(), e(Hn)), i = r.__importStar(t("react")), a = Jo(), o = Yo(), s = Xo(), c = Zo(), l = $o();
2843
2843
  n.default = function(e) {
2844
2844
  r.__extends(t, e);
2845
2845
  function t(t) {
@@ -3024,89 +3024,89 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3024
3024
  constructor(e) {
3025
3025
  super({
3026
3026
  ...e,
3027
- echarts: Tr
3027
+ echarts: Er
3028
3028
  });
3029
3029
  }
3030
3030
  async initEchartsInstance() {
3031
3031
  await ss(this.props.option);
3032
3032
  let e = this.echarts.init(this.ele, this.props.theme, this.props.opts);
3033
3033
  return this.unmounted && setTimeout(() => {
3034
- let e = tr(this.ele);
3035
- this.echarts.dispose(this.ele), nr(e);
3034
+ let e = nr(this.ele);
3035
+ this.echarts.dispose(this.ele), rr(e);
3036
3036
  }, 0), e;
3037
3037
  }
3038
3038
  componentDidUpdate(e) {
3039
3039
  if (!this.getEchartsInstance()) return;
3040
- let t = tr(this.ele);
3040
+ let t = nr(this.ele);
3041
3041
  try {
3042
3042
  super.componentDidUpdate(e);
3043
3043
  } finally {
3044
- let e = new Set(tr(this.ele));
3045
- nr(t.filter((t) => !e.has(t)));
3044
+ let e = new Set(nr(this.ele));
3045
+ rr(t.filter((t) => !e.has(t)));
3046
3046
  }
3047
3047
  }
3048
3048
  componentWillUnmount() {
3049
3049
  this.unmounted = !0;
3050
- let e = tr(this.ele);
3050
+ let e = nr(this.ele);
3051
3051
  try {
3052
3052
  super.componentWillUnmount();
3053
3053
  } finally {
3054
- nr(e);
3054
+ rr(e);
3055
3055
  }
3056
3056
  }
3057
- }, ls = or(async () => (await import("./echarts-DrNH41dX.mjs"), { default: cs })), us = ar((e, t) => /* @__PURE__ */ J(x, {
3057
+ }, ls = sr(async () => (await import("./echarts-C9zFEHXn.mjs"), { default: cs })), us = or((e, t) => /* @__PURE__ */ q(x, {
3058
3058
  surface: "chart",
3059
- fallback: /* @__PURE__ */ J(er, {}),
3060
- children: /* @__PURE__ */ J(ls, {
3059
+ fallback: /* @__PURE__ */ q(tr, {}),
3060
+ children: /* @__PURE__ */ q(ls, {
3061
3061
  ...e,
3062
3062
  ref: t
3063
3063
  })
3064
3064
  })), $ = {
3065
- container: "_container_1pb84_8",
3066
- borderLessContainer: "_borderLessContainer_1pb84_11",
3067
- label: "_label_1pb84_14",
3068
- sync: "_sync_1pb84_17",
3069
- chartClickAction: "_chartClickAction_1pb84_20",
3070
- comparisonDiv: "_comparisonDiv_1pb84_24",
3071
- comparisonValue: "_comparisonValue_1pb84_28",
3072
- positiveComparisonText: "_positiveComparisonText_1pb84_32",
3073
- negativeComparisonText: "_negativeComparisonText_1pb84_35",
3074
- comparisonPeriod: "_comparisonPeriod_1pb84_38",
3075
- valueContainer: "_valueContainer_1pb84_41",
3076
- leftAlign: "_leftAlign_1pb84_44",
3077
- rightAlign: "_rightAlign_1pb84_47",
3078
- singleValue: "_singleValue_1pb84_50",
3079
- subHeader: "_subHeader_1pb84_53",
3080
- error: "_error_1pb84_56",
3081
- errorpara: "_errorpara_1pb84_59",
3082
- buttonText: "_buttonText_1pb84_63",
3083
- chartDiv: "_chartDiv_1pb84_69",
3084
- chartUnavailable: "_chartUnavailable_1pb84_73",
3085
- noChart: "_noChart_1pb84_77"
3065
+ container: "_container_1tjfq_8",
3066
+ borderLessContainer: "_borderLessContainer_1tjfq_12",
3067
+ label: "_label_1tjfq_15",
3068
+ sync: "_sync_1tjfq_18",
3069
+ chartClickAction: "_chartClickAction_1tjfq_21",
3070
+ comparisonDiv: "_comparisonDiv_1tjfq_25",
3071
+ comparisonValue: "_comparisonValue_1tjfq_29",
3072
+ positiveComparisonText: "_positiveComparisonText_1tjfq_33",
3073
+ negativeComparisonText: "_negativeComparisonText_1tjfq_36",
3074
+ comparisonPeriod: "_comparisonPeriod_1tjfq_39",
3075
+ valueContainer: "_valueContainer_1tjfq_42",
3076
+ leftAlign: "_leftAlign_1tjfq_45",
3077
+ rightAlign: "_rightAlign_1tjfq_48",
3078
+ singleValue: "_singleValue_1tjfq_51",
3079
+ subHeader: "_subHeader_1tjfq_56",
3080
+ error: "_error_1tjfq_59",
3081
+ errorpara: "_errorpara_1tjfq_62",
3082
+ buttonText: "_buttonText_1tjfq_66",
3083
+ chartDiv: "_chartDiv_1tjfq_72",
3084
+ chartUnavailable: "_chartUnavailable_1tjfq_76",
3085
+ noChart: "_noChart_1tjfq_80"
3086
3086
  }, ds = ({ chartType: e, text: t = "This chart is no longer available.", subText: n }) => {
3087
3087
  let r = S.flatMap((e) => e.value)?.find((t) => t.name?.toLowerCase() === e)?.disabledIcon;
3088
- return /* @__PURE__ */ Y("div", {
3088
+ return /* @__PURE__ */ J("div", {
3089
3089
  className: $.chartUnavailable,
3090
- children: [/* @__PURE__ */ J("img", {
3090
+ children: [/* @__PURE__ */ q("img", {
3091
3091
  src: r,
3092
3092
  alt: "chart-not-available",
3093
3093
  className: $.noChart
3094
- }), /* @__PURE__ */ Y("div", {
3094
+ }), /* @__PURE__ */ J("div", {
3095
3095
  className: "dbn:flex dbn:flex-col dbn:gap-1 dbn:items-center",
3096
- children: [/* @__PURE__ */ J(T, {
3096
+ children: [/* @__PURE__ */ q(T, {
3097
3097
  variant: "sec-heading-4",
3098
3098
  color: "primary",
3099
3099
  children: t
3100
- }), /* @__PURE__ */ J(T, {
3100
+ }), /* @__PURE__ */ q(T, {
3101
3101
  variant: "body-text-3",
3102
3102
  color: "gray",
3103
3103
  children: n
3104
3104
  })]
3105
3105
  })]
3106
3106
  });
3107
- }, fs = or(async () => ({ default: (await import("./Table-C9dfHqkF.mjs").then((e) => e.n)).Table })), ps = or(async () => ({ default: (await import("./HorizontalStackTable-B19brjYy.mjs")).HorizontalStackTable })), ms = or(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), hs = or(async () => ({ default: (await import("./PivotTableV2-DxhqS1OY.mjs")).PivotTableV2 })), gs = or(() => import("./PivotTableV3-DiuBQ5n-.mjs")), _s = ({ children: e, surface: t }) => /* @__PURE__ */ J(x, {
3107
+ }, fs = sr(async () => ({ default: (await import("./Table-CckCtD2_.mjs").then((e) => e.n)).Table })), ps = sr(async () => ({ default: (await import("./HorizontalStackTable-BhoPbnKc.mjs")).HorizontalStackTable })), ms = sr(async () => ({ default: (await import("./PivotTable-5UaGFGcV.mjs")).default })), hs = sr(async () => ({ default: (await import("./PivotTableV2-Dihz35k0.mjs")).PivotTableV2 })), gs = sr(() => import("./PivotTableV3-C5WGgIum.mjs")), _s = ({ children: e, surface: t }) => /* @__PURE__ */ q(x, {
3108
3108
  surface: t,
3109
- fallback: /* @__PURE__ */ Y("div", {
3109
+ fallback: /* @__PURE__ */ J("div", {
3110
3110
  className: "dbn:flex dbn:h-full dbn:min-h-32 dbn:items-center dbn:justify-center",
3111
3111
  "aria-label": `Loading ${t}`,
3112
3112
  role: "status",
@@ -3117,21 +3117,21 @@ var Fo = ({ headers: e, data: t, variant: n = "primary", noDataText: r = "No Dat
3117
3117
  ]
3118
3118
  }),
3119
3119
  children: e
3120
- }), vs = (e) => /* @__PURE__ */ J(_s, {
3120
+ }), vs = (e) => /* @__PURE__ */ q(_s, {
3121
3121
  surface: "table",
3122
- children: /* @__PURE__ */ J(fs, { ...e })
3123
- }), ys = (e) => /* @__PURE__ */ J(_s, {
3122
+ children: /* @__PURE__ */ q(fs, { ...e })
3123
+ }), ys = (e) => /* @__PURE__ */ q(_s, {
3124
3124
  surface: "stack table",
3125
- children: /* @__PURE__ */ J(ps, { ...e })
3126
- }), bs = (e) => /* @__PURE__ */ J(_s, {
3125
+ children: /* @__PURE__ */ q(ps, { ...e })
3126
+ }), bs = (e) => /* @__PURE__ */ q(_s, {
3127
3127
  surface: "pivot table",
3128
- children: /* @__PURE__ */ J(ms, { ...e })
3129
- }), xs = (e) => /* @__PURE__ */ J(_s, {
3128
+ children: /* @__PURE__ */ q(ms, { ...e })
3129
+ }), xs = (e) => /* @__PURE__ */ q(_s, {
3130
3130
  surface: "pivot table",
3131
- children: /* @__PURE__ */ J(hs, { ...e })
3132
- }), Ss = (e) => /* @__PURE__ */ J(_s, {
3131
+ children: /* @__PURE__ */ q(hs, { ...e })
3132
+ }), Ss = (e) => /* @__PURE__ */ q(_s, {
3133
3133
  surface: "pivot table",
3134
- children: /* @__PURE__ */ J(gs, { ...e })
3134
+ children: /* @__PURE__ */ q(gs, { ...e })
3135
3135
  });
3136
3136
  //#endregion
3137
3137
  //#region src/components/Chart/singleValueDelta.ts
@@ -3177,8 +3177,8 @@ var ws = (e, t, n, r, i) => {
3177
3177
  },
3178
3178
  wrote: !0
3179
3179
  };
3180
- }, Ts = rr.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: s, events: c, originalValue: u, variables: f, language: h, translationDictionary: _, setHoverSubHeader: v, onChartClickWithMetric: y, renderOpts: b }) => {
3181
- let [ee, x] = q(""), S = K(null), C = K(null), w = K(null), T = K(null), { valueFont: te, subHeaderFont: ne, changeVariableFont: E, changeIconSize: re } = G(() => {
3180
+ }, Ts = ir.memo(({ value: e, settings: t, chartClickConfig: n, hideBorder: r, className: i = "", onChartReady: a, comparisonValue: o, trendLineOptions: s, events: c, originalValue: u, variables: f, language: h, translationDictionary: _, setHoverSubHeader: v, onChartClickWithMetric: y, renderOpts: b }) => {
3181
+ let [ee, x] = K(""), S = G(null), C = G(null), w = G(null), T = G(null), { valueFont: te, subHeaderFont: ne, changeVariableFont: E, changeIconSize: re } = W(() => {
3182
3182
  let e = {
3183
3183
  fontSize: `${t?.subHeaderFontSize || 14}px`,
3184
3184
  fontWeight: t?.subHeaderFontWeight || "400",
@@ -3203,26 +3203,26 @@ var ws = (e, t, n, r, i) => {
3203
3203
  t?.subHeaderFontColor,
3204
3204
  t?.fontSize,
3205
3205
  ee
3206
- ]), ie = G(() => {
3206
+ ]), ie = W(() => {
3207
3207
  if (!e) return "empty";
3208
- let t = ye(e.toString());
3208
+ let t = be(e.toString());
3209
3209
  return t.length === 0 ? "empty-empty" : `${`${t.slice(0, 4)}-${t.slice(-4)}`.toLowerCase()}-${g(6)}`;
3210
3210
  }, [e]);
3211
- W(() => {
3211
+ U(() => {
3212
3212
  let e = new ResizeObserver(() => {
3213
3213
  T?.current?.getEchartsInstance()?.resize();
3214
3214
  });
3215
3215
  return w?.current && e?.observe(w?.current), () => e?.disconnect();
3216
- }, []), W(() => {
3216
+ }, []), U(() => {
3217
3217
  (e || t) && a?.();
3218
- }, [e, t]), W(() => {
3218
+ }, [e, t]), U(() => {
3219
3219
  let e = !1;
3220
3220
  if (t?.conditionalFormatter?.length && u) {
3221
3221
  let n = t?.conditionalFormatter?.filter((e) => !e?.type || e?.type === "range"), r = t?.conditionalFormatter?.filter((e) => e?.type === "string");
3222
3222
  if (typeof u == "number" && n?.length && n?.forEach((n) => {
3223
3223
  (!n?.type || n.type === "range") && n?.min?.toString() && n?.max && n.min <= Number(u) && n?.max >= Number(u) && (x(n?.color ?? t?.fontColor ?? "var(--dbn-txt-primary, #252525)"), e = !0);
3224
3224
  }), typeof u == "string" && r?.length) {
3225
- let n = $n({
3225
+ let n = er({
3226
3226
  rules: r?.map((e) => ({
3227
3227
  operator: e?.operator || "isEqualTo",
3228
3228
  styles: e?.color,
@@ -3239,11 +3239,11 @@ var ws = (e, t, n, r, i) => {
3239
3239
  t?.fontColor,
3240
3240
  u
3241
3241
  ]);
3242
- let ae = G(() => t?.isEnableTruncate ? ge(e.toString(), t?.truncateValue || 0) : e, [
3242
+ let ae = W(() => t?.isEnableTruncate ? _e(e.toString(), t?.truncateValue || 0) : e, [
3243
3243
  e,
3244
3244
  t?.isEnableTruncate,
3245
3245
  t?.truncateValue
3246
- ]), oe = G(() => t?.prefix ? d({
3246
+ ]), oe = W(() => t?.prefix ? d({
3247
3247
  text: p(t?.prefix || "^^^^^", f),
3248
3248
  selectedLanguage: h,
3249
3249
  translationDictionary: _
@@ -3252,7 +3252,7 @@ var ws = (e, t, n, r, i) => {
3252
3252
  t?.prefix,
3253
3253
  h,
3254
3254
  _
3255
- ]), se = G(() => t?.suffix ? d({
3255
+ ]), se = W(() => t?.suffix ? d({
3256
3256
  text: p(t?.suffix || "^^^^^", f),
3257
3257
  selectedLanguage: h,
3258
3258
  translationDictionary: _
@@ -3261,9 +3261,9 @@ var ws = (e, t, n, r, i) => {
3261
3261
  t?.suffix,
3262
3262
  h,
3263
3263
  _
3264
- ]), D = K(null), O = K({ maxFraction: .6 }), k = G(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3265
- O.current = { maxFraction: k ? .42 : .6 };
3266
- let A = G(() => Cs(o), [o]), j = A !== "none", M = j && !!s, N = G(() => j ? M ? {
3264
+ ]), D = G(null), O = G({ maxFraction: .6 }), k = typeof t?.fontSize == "number" && Number.isFinite(t.fontSize) && t.fontSize > 0 ? Math.min(96, Math.max(30, t.fontSize)) : void 0, A = W(() => t?.subHeaderShow && !!t?.displayText?.trim(), [t?.subHeaderShow, t?.displayText]);
3265
+ O.current = { maxFraction: A ? .42 : .6 };
3266
+ let j = W(() => Cs(o), [o]), M = j !== "none", ce = M && !!s, le = W(() => M ? ce ? {
3267
3267
  value: "50%",
3268
3268
  comparison: "18%",
3269
3269
  trend: "32%"
@@ -3275,51 +3275,54 @@ var ws = (e, t, n, r, i) => {
3275
3275
  value: "100%",
3276
3276
  comparison: "0%",
3277
3277
  trend: "0%"
3278
- }, [j, M]);
3279
- W(() => {
3280
- let e = S.current, n = C.current;
3281
- if (!e || !n) return;
3278
+ }, [M, ce]);
3279
+ U(() => {
3280
+ let e = S.current, t = C.current;
3281
+ if (!e || !t) return;
3282
3282
  D.current = null;
3283
- let r = () => {
3283
+ let n = () => {
3284
3284
  if (e.clientWidth <= 0 || e.clientHeight <= 0) return;
3285
- let { memo: r } = ws(n, e, t?.fontSize || 0, D.current, t?.fontSize ? void 0 : O.current);
3286
- D.current = r;
3285
+ let { memo: n } = ws(t, e, 30, D.current, {
3286
+ ...O.current,
3287
+ capPx: k
3288
+ });
3289
+ D.current = n;
3287
3290
  };
3288
- r();
3289
- let i = new ResizeObserver(r);
3290
- return i.observe(e), window.addEventListener("resize", r), () => {
3291
- i.disconnect(), window.removeEventListener("resize", r);
3291
+ n();
3292
+ let r = new ResizeObserver(n);
3293
+ return r.observe(e), window.addEventListener("resize", n), () => {
3294
+ r.disconnect(), window.removeEventListener("resize", n);
3292
3295
  };
3293
3296
  }, [
3294
3297
  t?.fontSize,
3295
3298
  ae,
3296
3299
  oe,
3297
3300
  se,
3298
- k,
3299
- N.value
3301
+ A,
3302
+ le.value
3300
3303
  ]);
3301
- let { alignmentClass: ce, subAlignmentClass: le } = G(() => {
3304
+ let { alignmentClass: ue, subAlignmentClass: de } = W(() => {
3302
3305
  let e = t?.alignment === "left" ? $.leftAlign : t?.alignment === "right" ? $.rightAlign : "", n = t?.subHeaderAlignment === "left" ? $.leftAlign : t?.subHeaderAlignment === "right" ? $.rightAlign : "";
3303
3306
  return {
3304
3307
  alignmentClass: e || "",
3305
3308
  subAlignmentClass: n || ""
3306
3309
  };
3307
3310
  }, [t?.alignment, t?.subHeaderAlignment]);
3308
- return /* @__PURE__ */ Y("div", {
3311
+ return /* @__PURE__ */ J("div", {
3309
3312
  className: `${i} ${r ? $.borderLessContainer : $.container}`,
3310
3313
  style: { background: t?.metricCardColor || "" },
3311
3314
  children: [
3312
- /* @__PURE__ */ Y("div", {
3315
+ /* @__PURE__ */ J("div", {
3313
3316
  ref: S,
3314
- className: `${$.valueContainer} ${k ? "dbn:mt-1 dbn:justify-start" : ""} ${ce} `,
3317
+ className: `${$.valueContainer} ${A ? "dbn:mt-1 dbn:justify-start" : ""} ${ue} `,
3315
3318
  onContextMenu: (e) => e.preventDefault(),
3316
3319
  style: {
3317
3320
  background: t?.metricCardColor || "",
3318
- height: N.value,
3321
+ height: le.value,
3319
3322
  minHeight: 0
3320
3323
  },
3321
3324
  "data-testid": `valueContainer-${ie}`,
3322
- children: [/* @__PURE__ */ Y("div", {
3325
+ children: [/* @__PURE__ */ J("div", {
3323
3326
  ref: C,
3324
3327
  style: te,
3325
3328
  onClick: (e) => {
@@ -3335,17 +3338,17 @@ var ws = (e, t, n, r, i) => {
3335
3338
  ae,
3336
3339
  se
3337
3340
  ]
3338
- }), k && /* @__PURE__ */ J("div", {
3339
- className: `dbn:w-full dbn:flex dbn:flex-col ${le}`,
3340
- children: /* @__PURE__ */ J(l, {
3341
+ }), A && /* @__PURE__ */ q("div", {
3342
+ className: `dbn:w-full dbn:flex dbn:flex-col ${de}`,
3343
+ children: /* @__PURE__ */ q(l, {
3341
3344
  text: t?.displayText,
3342
3345
  position: "bottom",
3343
3346
  isSingleLineTxt: !1,
3344
3347
  className: "dbn:max-w-full",
3345
- children: /* @__PURE__ */ J("div", {
3348
+ children: /* @__PURE__ */ q("div", {
3346
3349
  style: ne,
3347
3350
  onClick: () => {
3348
- n && Zn(n, t?.displayText || "");
3351
+ n && Qn(n, t?.displayText || "");
3349
3352
  },
3350
3353
  className: $.subHeader,
3351
3354
  onMouseEnter: () => v?.(!0),
@@ -3355,32 +3358,32 @@ var ws = (e, t, n, r, i) => {
3355
3358
  })
3356
3359
  })]
3357
3360
  }),
3358
- j && /* @__PURE__ */ Y("div", {
3361
+ M && /* @__PURE__ */ J("div", {
3359
3362
  className: $.comparisonDiv,
3360
3363
  style: {
3361
3364
  background: t?.metricCardColor || "",
3362
- height: N.comparison,
3365
+ height: le.comparison,
3363
3366
  flexShrink: 0
3364
3367
  },
3365
- children: [t?.comparisonTimePeriod && /* @__PURE__ */ Y("span", {
3368
+ children: [t?.comparisonTimePeriod && /* @__PURE__ */ J("span", {
3366
3369
  className: $.comparisonPeriod,
3367
3370
  children: ["vs", t?.comparisonMapValue ? ` ${t?.comparisonMapValue}` : ` Last ${t.comparisonTimePeriod} ${t.comparisonTimeGrain}`]
3368
- }), /* @__PURE__ */ J("div", {
3371
+ }), /* @__PURE__ */ q("div", {
3369
3372
  style: E,
3370
3373
  className: $.comparisonValue,
3371
- children: /* @__PURE__ */ Y("span", {
3374
+ children: /* @__PURE__ */ J("span", {
3372
3375
  style: E,
3373
- className: A === "flat" ? $.comparisonPeriod : A === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3376
+ className: j === "flat" ? $.comparisonPeriod : j === "up" ? t?.upVariant && t?.upVariant === "danger" ? $.negativeComparisonText : $.positiveComparisonText : t?.downVariant && t?.downVariant === "success" ? $.positiveComparisonText : $.negativeComparisonText,
3374
3377
  "data-testid": "legacy-kpi-comparison",
3375
- "data-comparison-reading": A,
3378
+ "data-comparison-reading": j,
3376
3379
  children: [
3377
- A === "up" && /* @__PURE__ */ J(m, {
3380
+ j === "up" && /* @__PURE__ */ q(m, {
3378
3381
  name: "arrow-up-2",
3379
3382
  color: t?.upVariant === "danger" ? "warning-badge-txt" : "success-badge-txt",
3380
3383
  width: re,
3381
3384
  height: re
3382
3385
  }),
3383
- A === "down" && /* @__PURE__ */ J(m, {
3386
+ j === "down" && /* @__PURE__ */ q(m, {
3384
3387
  name: "arrow-down-2",
3385
3388
  color: t?.downVariant === "success" ? "success-badge-txt" : "warning-badge-txt",
3386
3389
  width: re,
@@ -3393,20 +3396,20 @@ var ws = (e, t, n, r, i) => {
3393
3396
  })
3394
3397
  })]
3395
3398
  }),
3396
- M && /* @__PURE__ */ J("div", {
3399
+ ce && /* @__PURE__ */ q("div", {
3397
3400
  ref: w,
3398
3401
  style: {
3399
3402
  width: "100%",
3400
- height: N.trend,
3403
+ height: le.trend,
3401
3404
  minHeight: 0
3402
3405
  },
3403
- children: /* @__PURE__ */ J(us, {
3406
+ children: /* @__PURE__ */ q(us, {
3404
3407
  ref: T,
3405
3408
  style: {
3406
3409
  width: "100%",
3407
3410
  height: "100%"
3408
3411
  },
3409
- option: Mr(s),
3412
+ option: Nr(s),
3410
3413
  theme: "v5",
3411
3414
  notMerge: !0,
3412
3415
  opts: b
@@ -3448,11 +3451,11 @@ var ws = (e, t, n, r, i) => {
3448
3451
  } : e : (n.shape = r, n.windows = {}, e);
3449
3452
  }, ks = /* @__PURE__ */ r({ Chart: () => qs }), As = async () => {
3450
3453
  let e = await import("./charts-kg5_u0Op.mjs").then((e) => e.t), t = e.DbnChart, { buildAnswerLine: n } = e;
3451
- return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ J(t, {
3454
+ return { default: ({ answerLineInput: e, ...r }) => /* @__PURE__ */ q(t, {
3452
3455
  ...r,
3453
3456
  answerLine: e ? n(e) : null
3454
3457
  }) };
3455
- }, js = null, Ms = null, Ns = or(() => (Ms ??= As().then((e) => (js = e.default, e)), Ms)), Ps = (e, t) => {
3458
+ }, js = null, Ms = null, Ns = sr(() => (Ms ??= As().then((e) => (js = e.default, e)), Ms)), Ps = (e, t) => {
3456
3459
  let n = t?.onChartClickWithMetric, r = t?.chartClickConfig?.isEnable ? e?.click : e?.contextmenu;
3457
3460
  if (!n && !r) return;
3458
3461
  let i = () => {
@@ -3477,7 +3480,7 @@ var ws = (e, t, n, r, i) => {
3477
3480
  r && (t.current = { getEchartsInstance: () => r.isDisposed?.() ? void 0 : r });
3478
3481
  }
3479
3482
  };
3480
- }, Ls = (e) => J(js || Ns, { ...e }), Rs = /* @__PURE__ */ new Set([
3483
+ }, Ls = (e) => q(js || Ns, { ...e }), Rs = /* @__PURE__ */ new Set([
3481
3484
  "echarts",
3482
3485
  "option",
3483
3486
  "theme",
@@ -3563,18 +3566,18 @@ var ws = (e, t, n, r, i) => {
3563
3566
  ...e,
3564
3567
  xAxis: a
3565
3568
  } : e;
3566
- }, Ks = rr.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3567
- let l = rr.useMemo(() => ({
3569
+ }, Ks = ir.memo(({ chartHeight: e, hasDecreasedHeight: t, config: n, chartOptions: r, options: i, className: a, onEvents: o, chartRef: s, renderOpts: c }) => {
3570
+ let l = ir.useMemo(() => ({
3568
3571
  width: "100%",
3569
3572
  height: t && (e || 0) >= 6 ? "100px" : t && !e ? "40%" : "100%"
3570
- }), [e, t]), u = rr.useMemo(() => Mr(r.customSettings?.chartZoom?.isZoomEnabled ? {
3573
+ }), [e, t]), u = ir.useMemo(() => Nr(r.customSettings?.chartZoom?.isZoomEnabled ? {
3571
3574
  ...i,
3572
3575
  animation: !0
3573
3576
  } : {
3574
3577
  ...i,
3575
3578
  animation: !1
3576
3579
  }), [r, i]);
3577
- return /* @__PURE__ */ ir(us, {
3580
+ return /* @__PURE__ */ ar(us, {
3578
3581
  style: l,
3579
3582
  ...Bs(n),
3580
3583
  option: u,
@@ -3585,346 +3588,346 @@ var ws = (e, t, n, r, i) => {
3585
3588
  notMerge: Vs(r.chartType),
3586
3589
  opts: c
3587
3590
  });
3588
- }, (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 || !Us(e.config, t.config) || !Us(e.chartOptions, t.chartOptions))), qs = rr.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: o, config: l, className: d, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: g, onMaximize: v, onDrillPivotTable: y, pivotDrillState: ee, isPythonMode: S, seriesName: T = "", isSortReversed: te, chartHeight: E, chartAppearance: M, metricCardColor: N, isMetricCard: le, isDashboard: P, externalGlobalFilter: F, setExternalGlobalFilter: me, variables: ge, language: ye, translationDictionary: be, setHoverSubHeader: xe, drilldownCols: Se, isEnableDrillDown: Ce, dateFilter: we, chartFontSettings: Te, downloadData: Ee, isDownloading: De, generatingPdf: Oe }) => {
3589
- let I = G(() => ie(Gs(e, t), t), [e, t]), [L, ke] = q(null), [Ae, je] = q(null), Me = lr(j, ce, ce), Ne = sr((e) => {
3590
- ke((t) => t === e ? t : e);
3591
- }, []), [Pe, Fe] = q(() => ae(null));
3592
- cr(() => {
3593
- Fe(ae(L));
3594
- }, [L]);
3595
- let R = G(() => Pe ? D({
3596
- mapping: A(I, t),
3597
- chartOptions: I,
3591
+ }, (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 || !Us(e.config, t.config) || !Us(e.chartOptions, t.chartOptions))), qs = ir.memo(({ chartOptions: e, data: t, title: n, events: r, colors: i, areChartColorsExplicit: o, config: l, className: d, isShowFullScreen: f, isShowFullScreenEnabled: p, metricId: m, sortOrder: g, onMaximize: v, onDrillPivotTable: y, pivotDrillState: ee, isPythonMode: S, seriesName: T = "", isSortReversed: te, chartHeight: E, chartAppearance: M, metricCardColor: ce, isMetricCard: ue, isDashboard: N, externalGlobalFilter: P, setExternalGlobalFilter: he, variables: _e, language: be, translationDictionary: xe, setHoverSubHeader: Se, drilldownCols: Ce, isEnableDrillDown: we, dateFilter: Te, chartFontSettings: Ee, downloadData: De, isDownloading: Oe, generatingPdf: ke }) => {
3592
+ let F = W(() => ie(Gs(e, t), t), [e, t]), [I, Ae] = K(null), [je, Me] = K(null), Ne = ur(j, le, le), Pe = cr((e) => {
3593
+ Ae((t) => t === e ? t : e);
3594
+ }, []), [Fe, Ie] = K(() => ae(null));
3595
+ lr(() => {
3596
+ Ie(ae(I));
3597
+ }, [I]);
3598
+ let L = W(() => Fe ? D({
3599
+ mapping: A(F, t),
3600
+ chartOptions: F,
3598
3601
  rows: t,
3599
- enabled: he()
3602
+ enabled: ge()
3600
3603
  }) : null, [
3601
- Pe,
3602
- I,
3604
+ Fe,
3605
+ F,
3603
3606
  t
3604
- ]), Ie = R ? he() : !1, Le = G(() => {
3605
- if (!R) return null;
3606
- let e = re($r(M, I), {
3607
- ...se(I.customSettings),
3608
- tooltipSettings: ne(I?.tooltipSettings, Te?.tooltip),
3609
- categoryField: R?.type === "gaugeV2" ? null : I?.xAxis,
3610
- chartZoom: I.customSettings?.chartZoom,
3611
- percentageSize: I.percentageSize,
3612
- repulsion: I.customSettings?.repulsion,
3613
- isUseAsDifference: I.waterfallSettings?.isUseAsDifference,
3614
- hideNullValues: I.customSettings?.hideNullValues
3607
+ ]), Le = L ? ge() : !1, Re = W(() => {
3608
+ if (!L) return null;
3609
+ let e = re(ei(M, F), {
3610
+ ...se(F.customSettings),
3611
+ tooltipSettings: ne(F?.tooltipSettings, Ee?.tooltip),
3612
+ categoryField: L?.type === "gaugeV2" ? null : F?.xAxis,
3613
+ chartZoom: F.customSettings?.chartZoom,
3614
+ percentageSize: F.percentageSize,
3615
+ repulsion: F.customSettings?.repulsion,
3616
+ isUseAsDifference: F.waterfallSettings?.isUseAsDifference,
3617
+ hideNullValues: F.customSettings?.hideNullValues
3615
3618
  });
3616
- return k(e, oe(R.data, Ie));
3619
+ return k(e, oe(L.data, Le));
3617
3620
  }, [
3618
- R,
3621
+ L,
3619
3622
  M,
3620
- I,
3621
- Te?.tooltip,
3622
- Ie
3623
- ]), Re = R ? _() : !1, ze = G(() => {
3624
- if (Pe && R) return O(I);
3623
+ F,
3624
+ Ee?.tooltip,
3625
+ Le
3626
+ ]), ze = L ? _() : !1, Be = W(() => {
3627
+ if (Fe && L) return O(F);
3625
3628
  }, [
3626
- Pe,
3627
- R,
3628
- I
3629
- ]), Be = G(() => !Pe || !R ? null : zn(I, t, n), [
3630
- Pe,
3631
- R,
3632
- I,
3629
+ Fe,
3630
+ L,
3631
+ F
3632
+ ]), Ve = W(() => !Fe || !L ? null : Bn(F, t, n), [
3633
+ Fe,
3634
+ L,
3635
+ F,
3633
3636
  t,
3634
3637
  n
3635
- ]), [Ve, He] = q(), [Ue, We] = q(!1), Ge = K(null), [Ke, qe] = q(null), Je = sr((e) => {
3636
- Ge.current = e, qe(e);
3637
- }, []), z = K(null), [Ye, Xe] = q(0), [Ze, Qe] = q(0), $e = K(Ye), et = K(Ze), tt = ve(I);
3638
- W(() => {
3639
- $e.current = Ye;
3640
- }, [Ye]), W(() => {
3641
- et.current = Ze;
3642
- }, [Ze]);
3643
- let nt = G(() => JSON.stringify(Te), [Te]), rt = G(() => JSON.stringify(I), [I]), it = G(() => JSON.stringify(i), [i]), B = G(() => {
3644
- if (R) return null;
3638
+ ]), [He, Ue] = K(), [We, Ge] = K(!1), Ke = G(null), [qe, Je] = K(null), Ye = cr((e) => {
3639
+ Ke.current = e, Je(e);
3640
+ }, []), R = G(null), [Xe, Ze] = K(0), [Qe, $e] = K(0), et = G(Xe), tt = G(Qe), nt = ye(F);
3641
+ U(() => {
3642
+ et.current = Xe;
3643
+ }, [Xe]), U(() => {
3644
+ tt.current = Qe;
3645
+ }, [Qe]);
3646
+ let rt = W(() => JSON.stringify(Ee), [Ee]), it = W(() => JSON.stringify(F), [F]), at = W(() => JSON.stringify(i), [i]), z = W(() => {
3647
+ if (L) return null;
3645
3648
  let e = t;
3646
- return g === "ascending" && (e = [...t].sort((e, t) => e[T] - t[T])), g === "descending" && (e = [...t].sort((e, t) => t[T] - e[T])), te && (e = [...e].reverse()), _e({
3647
- isDashboard: P,
3648
- chartOptions: I,
3649
+ return g === "ascending" && (e = [...t].sort((e, t) => e[T] - t[T])), g === "descending" && (e = [...t].sort((e, t) => t[T] - e[T])), te && (e = [...e].reverse()), ve({
3650
+ isDashboard: N,
3651
+ chartOptions: F,
3649
3652
  data: e,
3650
3653
  colors: i,
3651
- geoJsonData: Ve,
3654
+ geoJsonData: He,
3652
3655
  isPythonMode: S,
3653
3656
  chartHeight: E,
3654
3657
  chartAppearance: M,
3655
- chartRef: Ge,
3656
- chartGridWidth: Ye,
3657
- chartWidth: Ze,
3658
- metricCardColor: N,
3659
- language: ye,
3660
- translationDictionary: be,
3661
- drilldownCols: Se,
3662
- isEnableDrillDown: Ce,
3663
- dateFilter: we,
3664
- chartFontSettings: Te
3658
+ chartRef: Ke,
3659
+ chartGridWidth: Xe,
3660
+ chartWidth: Qe,
3661
+ metricCardColor: ce,
3662
+ language: be,
3663
+ translationDictionary: xe,
3664
+ drilldownCols: Ce,
3665
+ isEnableDrillDown: we,
3666
+ dateFilter: Te,
3667
+ chartFontSettings: Ee
3665
3668
  });
3666
3669
  }, [
3667
- R,
3670
+ L,
3668
3671
  t,
3669
- nt,
3670
3672
  rt,
3671
3673
  it,
3672
- Ve,
3674
+ at,
3675
+ He,
3673
3676
  g,
3674
3677
  T,
3675
3678
  te,
3676
3679
  E,
3677
3680
  M,
3678
- Ge,
3679
- Ye,
3680
- Ze,
3681
- N,
3681
+ Ke,
3682
+ Xe,
3683
+ Qe,
3684
+ ce,
3685
+ xe,
3682
3686
  be,
3683
- ye,
3684
- Se,
3685
3687
  Ce,
3686
3688
  we,
3687
- P
3688
- ]), [at, ot] = q(), [st, ct] = q(), [lt, ut] = q(), dt = lt ?? B;
3689
- cr(() => {
3690
- ut(void 0);
3691
- }, [B]);
3692
- let ft = K({
3689
+ Te,
3690
+ N
3691
+ ]), [ot, st] = K(), [ct, lt] = K(), [ut, dt] = K(), ft = ut ?? z;
3692
+ lr(() => {
3693
+ dt(void 0);
3694
+ }, [z]);
3695
+ let pt = G({
3693
3696
  events: r,
3694
- options: B,
3695
- advancedOptions: dt,
3696
- chartOptions: I
3697
+ options: z,
3698
+ advancedOptions: ft,
3699
+ chartOptions: F
3697
3700
  });
3698
- ft.current = {
3701
+ pt.current = {
3699
3702
  events: r,
3700
- options: B,
3701
- advancedOptions: dt,
3702
- chartOptions: I
3703
+ options: z,
3704
+ advancedOptions: ft,
3705
+ chartOptions: F
3703
3706
  };
3704
- let pt = r ? Object.keys(r).sort().join("|") : "", mt = K({
3707
+ let mt = r ? Object.keys(r).sort().join("|") : "", ht = G({
3705
3708
  shape: "",
3706
3709
  windows: {}
3707
- }), ht = m || I?.chartType;
3708
- W(() => {}, [
3709
- R,
3710
- Le,
3711
- ht
3712
- ]), W(() => {}, [
3713
- R,
3714
- B,
3715
- ht
3716
- ]), W(() => {});
3717
- let gt = G(() => {
3710
+ }), gt = m || F?.chartType;
3711
+ U(() => {}, [
3712
+ L,
3713
+ Re,
3714
+ gt
3715
+ ]), U(() => {}, [
3716
+ L,
3717
+ z,
3718
+ gt
3719
+ ]), U(() => {});
3720
+ let _t = W(() => {
3718
3721
  let e = {};
3719
- (pt ? pt.split("|") : []).forEach((t) => {
3722
+ (mt ? mt.split("|") : []).forEach((t) => {
3720
3723
  e[t] = (...e) => {
3721
- let n = ft.current.events?.[t];
3724
+ let n = pt.current.events?.[t];
3722
3725
  n?.(...e);
3723
3726
  };
3724
3727
  });
3725
3728
  let t = e.datazoom;
3726
3729
  return e.datazoom = (...e) => {
3727
3730
  let n = e[1], r = Ds(n);
3728
- Object.keys(r).length && (mt.current.windows = r), t?.(...e);
3731
+ Object.keys(r).length && (ht.current.windows = r), t?.(...e);
3729
3732
  }, e;
3730
- }, [pt]), _t = K(/* @__PURE__ */ new Set()), vt = G(() => ({
3731
- ...gt,
3733
+ }, [mt]), vt = G(/* @__PURE__ */ new Set()), yt = W(() => ({
3734
+ ..._t,
3732
3735
  legendselectchanged: (e, t) => {
3733
3736
  Ws({
3734
3737
  echartsInstance: t,
3735
- optionsObj: ft.current.options,
3738
+ optionsObj: pt.current.options,
3736
3739
  params: e,
3737
- chartIds: _t.current
3740
+ chartIds: vt.current
3738
3741
  });
3739
3742
  }
3740
- }), [gt]), yt = G(() => ({
3741
- ...gt,
3743
+ }), [_t]), bt = W(() => ({
3744
+ ..._t,
3742
3745
  legendselectchanged: (e, t) => {
3743
3746
  Ws({
3744
3747
  echartsInstance: t,
3745
- optionsObj: ft.current.advancedOptions,
3748
+ optionsObj: pt.current.advancedOptions,
3746
3749
  params: e,
3747
- isGantt: ft.current.chartOptions?.chartType === h.gantt,
3748
- chartIds: _t.current
3750
+ isGantt: pt.current.chartOptions?.chartType === h.gantt,
3751
+ chartIds: vt.current
3749
3752
  });
3750
3753
  }
3751
- }), [gt]), bt = G(() => Mr(Os(dt, I?.chartType, mt.current)), [dt, I?.chartType]), xt = G(() => Mr(Os(at ?? B, I?.chartType, mt.current)), [
3752
- at,
3753
- B,
3754
- I?.chartType
3754
+ }), [_t]), xt = W(() => Nr(Os(ft, F?.chartType, ht.current)), [ft, F?.chartType]), St = W(() => Nr(Os(ot ?? z, F?.chartType, ht.current)), [
3755
+ ot,
3756
+ z,
3757
+ F?.chartType
3755
3758
  ]);
3756
- W(() => () => {
3759
+ U(() => () => {
3757
3760
  let e = window;
3758
- e?.chartSelections && _t.current.forEach((t) => {
3761
+ e?.chartSelections && vt.current.forEach((t) => {
3759
3762
  delete e.chartSelections[t];
3760
- }), _t.current.clear(), ft.current = {
3763
+ }), vt.current.clear(), pt.current = {
3761
3764
  events: void 0,
3762
3765
  options: void 0,
3763
3766
  advancedOptions: void 0,
3764
3767
  chartOptions: void 0
3765
3768
  };
3766
3769
  }, []);
3767
- let [St, Ct] = q(0), [wt, Tt] = q(0), [Et, Dt] = q(0), [Ot, kt] = q([]), [At, jt] = q(!1), Mt = G(() => [
3770
+ let [Ct, wt] = K(0), [Tt, Et] = K(0), [Dt, Ot] = K(0), [kt, At] = K([]), [jt, Mt] = K(!1), Nt = W(() => [
3768
3771
  h.indianMap,
3769
3772
  h.geoBarMap,
3770
3773
  h.geoMap,
3771
3774
  h.geoScatterMap,
3772
3775
  h.worldMap
3773
- ].includes(I.chartType), [I.chartType]), Nt = G(() => [h.worldMap, h.indianMap].includes(I?.chartType || "") && Ve && t.length && I?.xAxis, [
3774
- Ve,
3776
+ ].includes(F.chartType), [F.chartType]), Pt = W(() => [h.worldMap, h.indianMap].includes(F?.chartType || "") && He && t.length && F?.xAxis, [
3777
+ He,
3775
3778
  t.length,
3776
- I?.xAxis,
3777
- I.chartType
3779
+ F?.xAxis,
3780
+ F.chartType
3778
3781
  ]);
3779
- cr(() => {
3780
- if (R || !L) return;
3781
- let e = L.parentElement ?? L, t = () => {
3782
+ lr(() => {
3783
+ if (L || !I) return;
3784
+ let e = I.parentElement ?? I, t = () => {
3782
3785
  let t = e.getBoundingClientRect();
3783
3786
  if (t.width <= 0 || t.height <= 0) return !1;
3784
- let n = ue({
3787
+ let n = de({
3785
3788
  cssWidth: t.width,
3786
3789
  cssHeight: t.height,
3787
3790
  devicePixelRatio: window.devicePixelRatio,
3788
- liveCharts: de(),
3789
- purpose: Oe ? "export" : "live"
3791
+ liveCharts: fe(),
3792
+ purpose: ke ? "export" : "live"
3790
3793
  });
3791
- return je((e) => e === n ? e : n), !0;
3794
+ return Me((e) => e === n ? e : n), !0;
3792
3795
  }, n = t();
3793
3796
  if (typeof ResizeObserver != "function") {
3794
- n || je(ue({
3797
+ n || Me(de({
3795
3798
  cssWidth: 0,
3796
3799
  cssHeight: 0,
3797
3800
  devicePixelRatio: window.devicePixelRatio,
3798
- liveCharts: de(),
3799
- purpose: Oe ? "export" : "live"
3801
+ liveCharts: fe(),
3802
+ purpose: ke ? "export" : "live"
3800
3803
  }));
3801
3804
  return;
3802
3805
  }
3803
3806
  let r = new ResizeObserver(t);
3804
3807
  return r.observe(e), () => r.disconnect();
3805
3808
  }, [
3806
- R,
3807
- Oe,
3808
3809
  L,
3809
- Me
3810
- ]), W(() => {
3811
- if (R || !L || typeof MutationObserver != "function") return;
3810
+ ke,
3811
+ I,
3812
+ Ne
3813
+ ]), U(() => {
3814
+ if (L || !I || typeof MutationObserver != "function") return;
3812
3815
  let e = null, t = () => {
3813
- let t = L.querySelector("canvas") !== null;
3814
- t && !e ? e = fe() : !t && e && (e(), e = null);
3816
+ let t = I.querySelector("canvas") !== null;
3817
+ t && !e ? e = pe() : !t && e && (e(), e = null);
3815
3818
  }, n = new MutationObserver(t);
3816
- return n.observe(L, {
3819
+ return n.observe(I, {
3817
3820
  childList: !0,
3818
3821
  subtree: !0
3819
3822
  }), t(), () => {
3820
3823
  n.disconnect(), e?.();
3821
3824
  };
3822
- }, [R, L]);
3823
- let Pt = G(() => Ae === null ? null : {
3825
+ }, [L, I]);
3826
+ let Ft = W(() => je === null ? null : {
3824
3827
  renderer: l?.opts?.renderer || "canvas",
3825
- devicePixelRatio: Ae
3826
- }, [l?.opts?.renderer, Ae]), Ft = G(() => Hs(I.chartType, dt), [dt, I.chartType]);
3827
- W(() => {
3828
- if (!R && Mt) {
3828
+ devicePixelRatio: je
3829
+ }, [l?.opts?.renderer, je]), It = W(() => Hs(F.chartType, ft), [ft, F.chartType]);
3830
+ U(() => {
3831
+ if (!L && Nt) {
3829
3832
  let e = [
3830
3833
  h.geoBarMap,
3831
3834
  h.geoMap,
3832
3835
  h.geoScatterMap
3833
- ].includes(I.chartType);
3834
- He(null), We(!1);
3836
+ ].includes(F.chartType);
3837
+ Ue(null), Ge(!1);
3835
3838
  let t = window.dbn?.geoJsonBaseUrl, n = (e) => fetch(`${t.replace(/\/+$/, "")}/${e}.json`).then((e) => {
3836
3839
  if (!e.ok) throw Error(`Geo outline fetch failed: ${e.status}`);
3837
3840
  return e.json();
3838
- }), r = () => We(!0);
3839
- e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(He).catch(r) : I?.chartType === h.indianMap ? (t ? n("india") : import("./india-D6s43bBg.mjs").then((e) => e.default)).then(He).catch(r) : (t ? n("world") : import("./world-CY-Yxrxs.mjs").then((e) => e.default)).then(He).catch(r);
3841
+ }), r = () => Ge(!0);
3842
+ e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(Ue).catch(r) : F?.chartType === h.indianMap ? (t ? n("india") : import("./india-D6s43bBg.mjs").then((e) => e.default)).then(Ue).catch(r) : (t ? n("world") : import("./world-CY-Yxrxs.mjs").then((e) => e.default)).then(Ue).catch(r);
3840
3843
  }
3841
- }, [I.chartType, R]);
3842
- let It = G(() => I.customSettings?.showDynamicBehaviour ? pe(t, I) : t, [t, I]);
3843
- W(() => {
3844
- R || I.customSettings?.showDynamicBehaviour && !tt && I.chartType && ot(_e({
3845
- isDashboard: P,
3846
- chartOptions: I,
3847
- data: It.slice(0, 10),
3844
+ }, [F.chartType, L]);
3845
+ let Lt = W(() => F.customSettings?.showDynamicBehaviour ? me(t, F) : t, [t, F]);
3846
+ U(() => {
3847
+ L || F.customSettings?.showDynamicBehaviour && !nt && F.chartType && st(ve({
3848
+ isDashboard: N,
3849
+ chartOptions: F,
3850
+ data: Lt.slice(0, 10),
3848
3851
  colors: i,
3849
3852
  isPythonMode: S,
3850
- language: ye,
3851
- translationDictionary: be,
3852
- dateFilter: we,
3853
- chartRef: l?.ref ?? z,
3854
- chartGridWidth: $e.current,
3855
- chartWidth: et.current
3853
+ language: be,
3854
+ translationDictionary: xe,
3855
+ dateFilter: Te,
3856
+ chartRef: l?.ref ?? R,
3857
+ chartGridWidth: et.current,
3858
+ chartWidth: tt.current
3856
3859
  }));
3857
3860
  }, [
3858
- R,
3859
- I,
3861
+ L,
3862
+ F,
3860
3863
  i,
3861
- It,
3862
- tt,
3863
- ye,
3864
+ Lt,
3865
+ nt,
3864
3866
  be,
3865
- we,
3866
- P
3867
+ xe,
3868
+ Te,
3869
+ N
3867
3870
  ]);
3868
- let Lt = K({
3871
+ let Rt = G({
3869
3872
  upperLimit: 10,
3870
3873
  lowerLimit: 0,
3871
3874
  key: ""
3872
3875
  });
3873
- W(() => {
3874
- if (!R && I.customSettings?.showDynamicBehaviour && !tt) {
3875
- let e = `${I.chartType || ""}|${t.length}`;
3876
- Lt.current.key !== e && (Lt.current = {
3876
+ U(() => {
3877
+ if (!L && F.customSettings?.showDynamicBehaviour && !nt) {
3878
+ let e = `${F.chartType || ""}|${t.length}`;
3879
+ Rt.current.key !== e && (Rt.current = {
3877
3880
  upperLimit: 10,
3878
3881
  lowerLimit: 0,
3879
3882
  key: e
3880
3883
  });
3881
- let n = Lt.current, r = setInterval(() => {
3884
+ let n = Rt.current, r = setInterval(() => {
3882
3885
  if (n.upperLimit >= t.length) {
3883
- ot((e) => ({
3884
- ...e ?? ft.current.options,
3886
+ st((e) => ({
3887
+ ...e ?? pt.current.options,
3885
3888
  animation: !1
3886
3889
  })), clearInterval(r);
3887
3890
  return;
3888
3891
  }
3889
- let e = It.slice(n.lowerLimit, n.upperLimit + 10), a = _e({
3890
- isDashboard: P,
3891
- chartOptions: I,
3892
+ let e = Lt.slice(n.lowerLimit, n.upperLimit + 10), a = ve({
3893
+ isDashboard: N,
3894
+ chartOptions: F,
3892
3895
  data: e,
3893
3896
  colors: i,
3894
3897
  isPythonMode: S,
3895
- translationDictionary: be,
3896
- language: ye,
3897
- dateFilter: we,
3898
- chartRef: l?.ref ?? z,
3899
- chartGridWidth: $e.current,
3900
- chartWidth: et.current
3898
+ translationDictionary: xe,
3899
+ language: be,
3900
+ dateFilter: Te,
3901
+ chartRef: l?.ref ?? R,
3902
+ chartGridWidth: et.current,
3903
+ chartWidth: tt.current
3901
3904
  });
3902
- ot(a), n.upperLimit += 10, n.lowerLimit += 5;
3905
+ st(a), n.upperLimit += 10, n.lowerLimit += 5;
3903
3906
  }, 1e3);
3904
3907
  return () => clearInterval(r);
3905
3908
  }
3906
3909
  }, [
3907
- R,
3908
- I,
3910
+ L,
3911
+ F,
3909
3912
  t,
3910
- It,
3913
+ Lt,
3911
3914
  i,
3912
- tt,
3915
+ nt,
3916
+ xe,
3913
3917
  be,
3914
- ye,
3915
- we,
3916
- P
3918
+ Te,
3919
+ N
3917
3920
  ]);
3918
- let Rt = G(() => [h.linearGauge, h.progressBar].includes(I?.chartType), [I.chartType]), zt = K(!0), Bt = K(void 0);
3919
- W(() => {
3920
- if (R) return;
3921
+ let zt = W(() => [h.linearGauge, h.progressBar].includes(F?.chartType), [F.chartType]), Bt = G(!0), Vt = G(void 0);
3922
+ U(() => {
3923
+ if (L) return;
3921
3924
  let e = setTimeout(() => {
3922
- let e = (l?.ref ?? z)?.current?.getEchartsInstance();
3923
- if (e && !s.includes(I?.chartType || "")) try {
3925
+ let e = (l?.ref ?? R)?.current?.getEchartsInstance();
3926
+ if (e && !s.includes(F?.chartType || "")) try {
3924
3927
  let t = e._componentsViews?.find((e) => e?.type === "grid")?.__model?.coordinateSystem?._rect;
3925
- t && I?.labelSettings?.wrapText && Xe(t?.width), t?.width && Dt(t.width);
3928
+ t && F?.labelSettings?.wrapText && Ze(t?.width), t?.width && Ot(t.width);
3926
3929
  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;
3927
- !I?.legendSettings?.customise && I?.legendSettings?.show ? (Ct(r), Tt(i)) : (Ct(0), Tt(0));
3930
+ !F?.legendSettings?.customise && F?.legendSettings?.show ? (wt(r), Et(i)) : (wt(0), Et(0));
3928
3931
  } catch (e) {
3929
3932
  console.error("Error accessing chart properties:", e);
3930
3933
  }
@@ -3932,167 +3935,167 @@ var ws = (e, t, n, r, i) => {
3932
3935
  return () => clearTimeout(e);
3933
3936
  }, [
3934
3937
  l?.ref,
3935
- I,
3936
- R
3937
- ]), W(() => {
3938
- if (R || !B) return;
3938
+ F,
3939
+ L
3940
+ ]), U(() => {
3941
+ if (L || !z) return;
3939
3942
  let e = setTimeout(() => {
3940
- let e = (l?.ref ?? z)?.current?.getEchartsInstance(), t = B;
3941
- if (e && !s.includes(I?.chartType || "")) {
3942
- let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = B?.xAxis?.[0]?.data?.length || B?.xAxis?.data?.length || 0, o = Et / i * .7 / B?.series?.length, s = [h.bar].includes(I?.chartType) && (I?.isDynamicSeries && I?.seriesField !== "ungrouped" || I?.seriesField !== "ungrouped"), d = 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, g = 0, _ = 0;
3943
- if (c.includes(I?.legendSettings?.fixedPosition || "") && (g = wt / r * 100 || 0), u.includes(I?.legendSettings?.fixedPosition || "") && (_ = wt / r * 100 || 0), (l?.ref ?? z)?.current && I?.legendSettings?.position === "vertical" && C.includes(I?.legendSettings?.fixedPosition || "") && I?.chartType !== h.horizontalCombo) {
3944
- if (I?.chartType === h.combo || I?.chartType === h.timeSeries && I?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3945
- let e = ((B?.leftOffset + 5 || 0) + d) / n * 100, r = (B?.rightOffset + 5 || 0) / n * 100;
3946
- w.includes(I?.legendSettings?.fixedPosition || "") && (r = (B?.rightOffset + 5 || 0) / n * 100, e = (St + (B?.leftOffset + 5 || 0)) / n * 100), a.includes(I?.legendSettings?.fixedPosition || "") && (r = (St + (B?.rightOffset + 5 || 0)) / n * 100, e = (B?.leftOffset + 5 || 0) / n * 100);
3947
- let i = I?.customSettings?.chartZoom?.isZoomEnabled ? B?.dataZoom?.map((e) => e.orient === "vertical" ? {
3943
+ let e = (l?.ref ?? R)?.current?.getEchartsInstance(), t = z;
3944
+ if (e && !s.includes(F?.chartType || "")) {
3945
+ let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i = z?.xAxis?.[0]?.data?.length || z?.xAxis?.data?.length || 0, o = Dt / i * .7 / z?.series?.length, s = [h.bar].includes(F?.chartType) && (F?.isDynamicSeries && F?.seriesField !== "ungrouped" || F?.seriesField !== "ungrouped"), d = F?.customSettings?.chartZoom?.isZoomEnabled && ["xy", "y"].includes(F?.customSettings?.chartZoom?.zoomAxis || "") ? 40 : 0, f = F?.legendSettings?.disableScroll, p = F?.customSettings?.chartZoom?.isZoomEnabled && ["x", "xy"].includes(F?.customSettings?.chartZoom?.zoomAxis || ""), m = p ? 40 : 0, g = 0, _ = 0;
3946
+ if (c.includes(F?.legendSettings?.fixedPosition || "") && (g = Tt / r * 100 || 0), u.includes(F?.legendSettings?.fixedPosition || "") && (_ = Tt / r * 100 || 0), (l?.ref ?? R)?.current && F?.legendSettings?.position === "vertical" && C.includes(F?.legendSettings?.fixedPosition || "") && F?.chartType !== h.horizontalCombo) {
3947
+ if (F?.chartType === h.combo || F?.chartType === h.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
3948
+ let e = ((z?.leftOffset + 5 || 0) + d) / n * 100, r = (z?.rightOffset + 5 || 0) / n * 100;
3949
+ w.includes(F?.legendSettings?.fixedPosition || "") && (r = (z?.rightOffset + 5 || 0) / n * 100, e = (Ct + (z?.leftOffset + 5 || 0)) / n * 100), a.includes(F?.legendSettings?.fixedPosition || "") && (r = (Ct + (z?.rightOffset + 5 || 0)) / n * 100, e = (z?.leftOffset + 5 || 0) / n * 100);
3950
+ let i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
3948
3951
  ...e,
3949
- left: w.includes(I?.legendSettings?.fixedPosition || "") ? St : 5
3950
- } : e) : B?.dataZoom;
3952
+ left: w.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
3953
+ } : e) : z?.dataZoom;
3951
3954
  t = {
3952
- ...B,
3955
+ ...z,
3953
3956
  grid: {
3954
- ...B?.grid,
3955
- left: `${(I?.margins?.marginLeft || 0) + e}%`,
3956
- right: `${(I?.margins?.marginRight || 0) + r}%`
3957
+ ...z?.grid,
3958
+ left: `${(F?.margins?.marginLeft || 0) + e}%`,
3959
+ right: `${(F?.margins?.marginRight || 0) + r}%`
3957
3960
  },
3958
- ...I?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: i } : {}
3961
+ ...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: i } : {}
3959
3962
  };
3960
3963
  } else {
3961
- let e = St / n * 100, r = I?.customSettings?.chartZoom?.isZoomEnabled ? B?.dataZoom?.map((e) => e.orient === "vertical" ? {
3964
+ let e = Ct / n * 100, r = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "vertical" ? {
3962
3965
  ...e,
3963
- left: w.includes(I?.legendSettings?.fixedPosition || "") ? St : 5
3964
- } : e) : B?.dataZoom;
3966
+ left: w.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
3967
+ } : e) : z?.dataZoom;
3965
3968
  t = {
3966
- ...B,
3969
+ ...z,
3967
3970
  grid: {
3968
- ...B?.grid,
3969
- ...w.includes(I?.legendSettings?.fixedPosition || "") ? {
3970
- left: `${(I?.margins?.marginLeft || 0) + e}%`,
3971
- right: `${I?.margins?.marginRight || 0}%`
3971
+ ...z?.grid,
3972
+ ...w.includes(F?.legendSettings?.fixedPosition || "") ? {
3973
+ left: `${(F?.margins?.marginLeft || 0) + e}%`,
3974
+ right: `${F?.margins?.marginRight || 0}%`
3972
3975
  } : {},
3973
- ...I?.legendSettings?.position && a.includes(I?.legendSettings?.fixedPosition || "") ? {
3974
- left: `${I?.margins?.marginLeft || 0}%`,
3975
- right: `${(I?.margins?.marginRight || 0) + e}%`
3976
+ ...F?.legendSettings?.position && a.includes(F?.legendSettings?.fixedPosition || "") ? {
3977
+ left: `${F?.margins?.marginLeft || 0}%`,
3978
+ right: `${(F?.margins?.marginRight || 0) + e}%`
3976
3979
  } : {}
3977
3980
  },
3978
- ...I?.customSettings?.chartZoom?.isZoomEnabled && w.includes(I?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
3979
- ...s ? { series: B?.series?.map((e, t) => ({
3981
+ ...F?.customSettings?.chartZoom?.isZoomEnabled && w.includes(F?.legendSettings?.fixedPosition || "") ? { dataZoom: r } : {},
3982
+ ...s ? { series: z?.series?.map((e, t) => ({
3980
3983
  ...e,
3981
3984
  barWidth: o,
3982
3985
  itemStyle: {
3983
3986
  ...e.itemStyle,
3984
- color: B.colors[t]
3987
+ color: z.colors[t]
3985
3988
  }
3986
3989
  })) } : {}
3987
3990
  };
3988
3991
  }
3989
- } else if ((l?.ref ?? z)?.current && I?.chartType === h.horizontalCombo) {
3990
- let e = St / n * 100, i = (B?.bottomOffset || 0) / r * 100, o = (B?.topOffset || 0) / r * 100;
3991
- u.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "horizontal" && (o = (B?.topOffset + 5 || 0) / r * 100, i = ((wt || 25) + (B?.bottomOffset + 5 || 0)) / r * 100), c.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "horizontal" && (o = ((wt || 25) + (B?.topOffset + 5 || 0)) / r * 100, i = (B?.bottomOffset + 5 || 0) / r * 100);
3992
- let s = I?.customSettings?.chartZoom?.isZoomEnabled ? B?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3992
+ } else if ((l?.ref ?? R)?.current && F?.chartType === h.horizontalCombo) {
3993
+ let e = Ct / n * 100, i = (z?.bottomOffset || 0) / r * 100, o = (z?.topOffset || 0) / r * 100;
3994
+ u.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (o = (z?.topOffset + 5 || 0) / r * 100, i = ((Tt || 25) + (z?.bottomOffset + 5 || 0)) / r * 100), c.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "horizontal" && (o = ((Tt || 25) + (z?.topOffset + 5 || 0)) / r * 100, i = (z?.bottomOffset + 5 || 0) / r * 100);
3995
+ let s = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
3993
3996
  ...e,
3994
- bottom: u.includes(I?.legendSettings?.fixedPosition || "") ? wt : 5
3995
- } : e) : B?.dataZoom;
3997
+ bottom: u.includes(F?.legendSettings?.fixedPosition || "") ? Tt : 5
3998
+ } : e) : z?.dataZoom;
3996
3999
  t = {
3997
- ...B,
4000
+ ...z,
3998
4001
  grid: {
3999
- ...B?.grid,
4000
- top: `${(I?.margins?.marginTop || 0) + o}%`,
4001
- bottom: `${(I?.margins?.marginBottom || 0) + i + (p ? 5 : 0)}%`,
4002
- ...w.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "vertical" ? {
4003
- left: `${(I?.margins?.marginLeft || 0) + e}%`,
4004
- right: `${I?.margins?.marginRight || 0}%`
4002
+ ...z?.grid,
4003
+ top: `${(F?.margins?.marginTop || 0) + o}%`,
4004
+ bottom: `${(F?.margins?.marginBottom || 0) + i + (p ? 5 : 0)}%`,
4005
+ ...w.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
4006
+ left: `${(F?.margins?.marginLeft || 0) + e}%`,
4007
+ right: `${F?.margins?.marginRight || 0}%`
4005
4008
  } : {},
4006
- ...I?.legendSettings?.position && a.includes(I?.legendSettings?.fixedPosition || "") && I?.legendSettings?.position === "vertical" ? {
4007
- left: `${I?.margins?.marginLeft || 0}%`,
4008
- right: `${(I?.margins?.marginRight || 0) + e}%`
4009
+ ...F?.legendSettings?.position && a.includes(F?.legendSettings?.fixedPosition || "") && F?.legendSettings?.position === "vertical" ? {
4010
+ left: `${F?.margins?.marginLeft || 0}%`,
4011
+ right: `${(F?.margins?.marginRight || 0) + e}%`
4009
4012
  } : {}
4010
4013
  },
4011
- ...I?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: s } : {}
4014
+ ...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: s } : {}
4012
4015
  };
4013
4016
  } else {
4014
- let e = I?.legendSettings?.position === "horizontal" && u.includes(I?.legendSettings?.fixedPosition || ""), r = e && (m + wt) / n * 100 || 0, i = I?.customSettings?.chartZoom?.isZoomEnabled ? B?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4017
+ let e = F?.legendSettings?.position === "horizontal" && u.includes(F?.legendSettings?.fixedPosition || ""), r = e && (m + Tt) / n * 100 || 0, i = F?.customSettings?.chartZoom?.isZoomEnabled ? z?.dataZoom?.map((e) => e.orient === "horizontal" ? {
4015
4018
  ...e,
4016
- bottom: wt
4019
+ bottom: Tt
4017
4020
  } : e) : null;
4018
- if (I?.chartType === h.combo || I?.chartType === h.timeSeries && I?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
4019
- let a = ((B?.leftOffset || 0) + d) / n * 100, o = (B?.rightOffset || 0) / n * 100;
4021
+ if (F?.chartType === h.combo || F?.chartType === h.timeSeries && F?.timeSeriesSettings?.seriesType?.[0]?.type === "combo") {
4022
+ let a = ((z?.leftOffset || 0) + d) / n * 100, o = (z?.rightOffset || 0) / n * 100;
4020
4023
  t = {
4021
- ...B,
4022
- ...I?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4024
+ ...z,
4025
+ ...F?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4023
4026
  grid: {
4024
- ...B?.grid,
4025
- left: `${(I?.margins?.marginLeft || 0) + a}%`,
4026
- right: `${(I?.margins?.marginRight || 0) + o}%`,
4027
+ ...z?.grid,
4028
+ left: `${(F?.margins?.marginLeft || 0) + a}%`,
4029
+ right: `${(F?.margins?.marginRight || 0) + o}%`,
4027
4030
  ...f ? {
4028
- top: `${(I?.margins?.marginTop || 0) + g}%`,
4029
- bottom: `${(I?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
4031
+ top: `${(F?.margins?.marginTop || 0) + g}%`,
4032
+ bottom: `${(F?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
4030
4033
  } : {}
4031
4034
  }
4032
4035
  };
4033
4036
  } else {
4034
- let a = I?.labelSettings?.YAxisStyle?.axisName ? (I?.labelSettings?.YAxisStyle?.axisPadding || 0) / n * 100 : 0, c = a > 0 ? a / 2 : 0;
4037
+ let a = F?.labelSettings?.YAxisStyle?.axisName ? (F?.labelSettings?.YAxisStyle?.axisPadding || 0) / n * 100 : 0, c = a > 0 ? a / 2 : 0;
4035
4038
  t = {
4036
- ...B,
4037
- ...I?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4039
+ ...z,
4040
+ ...F?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
4038
4041
  grid: {
4039
- ...B?.grid,
4040
- left: `${(I?.margins?.marginLeft || 0) + c}%`,
4041
- right: `${I?.margins?.marginRight || 0}%`,
4042
+ ...z?.grid,
4043
+ left: `${(F?.margins?.marginLeft || 0) + c}%`,
4044
+ right: `${F?.margins?.marginRight || 0}%`,
4042
4045
  ...f ? {
4043
- top: `${(I?.margins?.marginTop || 0) + g}%`,
4044
- bottom: `${(I?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
4046
+ top: `${(F?.margins?.marginTop || 0) + g}%`,
4047
+ bottom: `${(F?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
4045
4048
  } : {}
4046
4049
  },
4047
- ...s ? { series: B?.series?.map((e, t) => ({
4050
+ ...s ? { series: z?.series?.map((e, t) => ({
4048
4051
  ...e,
4049
4052
  barWidth: o,
4050
4053
  itemStyle: {
4051
4054
  ...e.itemStyle,
4052
- color: B.colors[t]
4055
+ color: z.colors[t]
4053
4056
  }
4054
4057
  })) } : {}
4055
4058
  };
4056
4059
  }
4057
4060
  }
4058
- } else t = B;
4059
- e && s.includes(I?.chartType || "") && (t = Gr(t, {
4060
- chartType: I?.chartType,
4061
+ } else t = z;
4062
+ e && s.includes(F?.chartType || "") && (t = Kr(t, {
4063
+ chartType: F?.chartType,
4061
4064
  canvas: {
4062
4065
  width: e.getWidth?.() || 0,
4063
4066
  height: e.getHeight?.() || 0
4064
4067
  },
4065
- legendSettings: I?.legendSettings,
4068
+ legendSettings: F?.legendSettings,
4066
4069
  legendAppearance: M?.chartLegend,
4067
4070
  outsideLabels: !0
4068
- }) ?? t), ut(t);
4071
+ }) ?? t), dt(t);
4069
4072
  }, 100);
4070
4073
  return () => clearTimeout(e);
4071
4074
  }, [
4072
- R,
4075
+ L,
4073
4076
  l?.ref,
4074
- B,
4075
- I,
4076
- St,
4077
- wt,
4078
- Et,
4077
+ z,
4078
+ F,
4079
+ Ct,
4080
+ Tt,
4081
+ Dt,
4079
4082
  M?.chartLegend
4080
- ]), W(() => {
4081
- if (R || !B || (Bt.current &&= (clearInterval(Bt.current), void 0), I.chartType !== h.geoBarMap)) return;
4082
- let e = Ge.current;
4083
- if (!e || typeof IntersectionObserver != "function") return zt.current = !0, Bt.current = setInterval(() => {
4084
- ct(zt.current ? B.geoOption : B.barOption), zt.current = !zt.current;
4083
+ ]), U(() => {
4084
+ if (L || !z || (Vt.current &&= (clearInterval(Vt.current), void 0), F.chartType !== h.geoBarMap)) return;
4085
+ let e = Ke.current;
4086
+ if (!e || typeof IntersectionObserver != "function") return Bt.current = !0, Vt.current = setInterval(() => {
4087
+ lt(Bt.current ? z.geoOption : z.barOption), Bt.current = !Bt.current;
4085
4088
  }, 2e3), () => {
4086
- Bt.current &&= (clearInterval(Bt.current), void 0);
4089
+ Vt.current &&= (clearInterval(Vt.current), void 0);
4087
4090
  };
4088
4091
  let t = () => {
4089
- Bt.current ||= setInterval(() => {
4090
- ct(zt.current ? B.geoOption : B.barOption), zt.current = !zt.current;
4092
+ Vt.current ||= setInterval(() => {
4093
+ lt(Bt.current ? z.geoOption : z.barOption), Bt.current = !Bt.current;
4091
4094
  }, 2e3);
4092
4095
  }, n = () => {
4093
- Bt.current &&= (clearInterval(Bt.current), void 0);
4096
+ Vt.current &&= (clearInterval(Vt.current), void 0);
4094
4097
  };
4095
- zt.current = !0;
4098
+ Bt.current = !0;
4096
4099
  let r = new IntersectionObserver(([e]) => {
4097
4100
  e?.isIntersecting ? t() : n();
4098
4101
  }, { threshold: 0 });
@@ -4100,57 +4103,57 @@ var ws = (e, t, n, r, i) => {
4100
4103
  r.disconnect(), n();
4101
4104
  };
4102
4105
  }, [
4103
- I.chartType,
4104
- R,
4105
- B
4106
+ F.chartType,
4107
+ L,
4108
+ z
4106
4109
  ]);
4107
- let { ref: Vt, ...Ht } = l || {};
4108
- W(() => {
4109
- if (!R && Nt) {
4110
- let e = [], n = new Set(Ve?.features?.map((e) => e.properties.name));
4110
+ let { ref: Ht, ...Ut } = l || {};
4111
+ U(() => {
4112
+ if (!L && Pt) {
4113
+ let e = [], n = new Set(He?.features?.map((e) => e.properties.name));
4111
4114
  t.forEach((t) => {
4112
- n.has(t[I.xAxis || ""]) || e.push(t);
4113
- }), kt(e);
4115
+ n.has(t[F.xAxis || ""]) || e.push(t);
4116
+ }), At(e);
4114
4117
  }
4115
- }, [Nt, R]);
4116
- let Ut = G(() => [{
4117
- name: I?.xAxis,
4118
- columnKey: I?.xAxis,
4118
+ }, [Pt, L]);
4119
+ let Wt = W(() => [{
4120
+ name: F?.xAxis,
4121
+ columnKey: F?.xAxis,
4119
4122
  colSpan: 1,
4120
- columnCell: (e) => e[I?.xAxis || ""]
4123
+ columnCell: (e) => e[F?.xAxis || ""]
4121
4124
  }, {
4122
- name: I?.yAxisList?.[0],
4123
- columnKey: I?.yAxisList?.[0],
4125
+ name: F?.yAxisList?.[0],
4126
+ columnKey: F?.yAxisList?.[0],
4124
4127
  colSpan: 1,
4125
- columnCell: (e) => e[I?.yAxisList?.[0] || ""] || "0"
4126
- }], [I?.xAxis, I?.yAxisList]);
4127
- W(() => {
4128
- if (!R && (Ke && [
4128
+ columnCell: (e) => e[F?.yAxisList?.[0] || ""] || "0"
4129
+ }], [F?.xAxis, F?.yAxisList]);
4130
+ U(() => {
4131
+ if (!L && (qe && [
4129
4132
  h.gaugeV2,
4130
4133
  h.linearGaugeV2,
4131
4134
  h.progressBarV2,
4132
4135
  h.funnelV2
4133
- ].includes(I.chartType) && B?.drawD3Chart && B?.drawD3Chart(), ![
4136
+ ].includes(F.chartType) && z?.drawD3Chart && z?.drawD3Chart(), ![
4134
4137
  h.gaugeV2,
4135
4138
  h.linearGaugeV2,
4136
4139
  h.progressBarV2,
4137
4140
  h.funnelV2
4138
- ].includes(I.chartType))) {
4141
+ ].includes(F.chartType))) {
4139
4142
  let e = document.querySelector("#dbn-portal");
4140
4143
  (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();
4141
4144
  }
4142
4145
  }, [
4143
- R,
4144
- Ke,
4145
- I.chartType,
4146
- B?.drawD3Chart
4147
- ]), W(() => {
4148
- let e = (l?.ref ?? z)?.current?.getEchartsInstance?.();
4149
- if (!e || !I?.labelSettings?.wrapText) return;
4146
+ L,
4147
+ qe,
4148
+ F.chartType,
4149
+ z?.drawD3Chart
4150
+ ]), U(() => {
4151
+ let e = (l?.ref ?? R)?.current?.getEchartsInstance?.();
4152
+ if (!e || !F?.labelSettings?.wrapText) return;
4150
4153
  let t, n = () => {
4151
4154
  clearTimeout(t), t = setTimeout(() => {
4152
4155
  let t = e.getWidth?.() || 0;
4153
- Qe((e) => e === t ? e : t);
4156
+ $e((e) => e === t ? e : t);
4154
4157
  }, 150);
4155
4158
  };
4156
4159
  n();
@@ -4162,14 +4165,14 @@ var ws = (e, t, n, r, i) => {
4162
4165
  };
4163
4166
  }, [
4164
4167
  l?.ref,
4165
- z,
4166
- I?.labelSettings?.wrapText,
4167
- I?.chartType
4168
+ R,
4169
+ F?.labelSettings?.wrapText,
4170
+ F?.chartType
4168
4171
  ]);
4169
- let Wt;
4170
- if (R) {
4171
- let e = Er(I.chartType), t = Rt && (E || 0) >= 6 ? Math.min(100, e) : typeof E == "number" && E > 0 ? Math.max(e, E * 24) : e;
4172
- Wt = /* @__PURE__ */ J("div", {
4172
+ let Gt;
4173
+ if (L) {
4174
+ let e = Dr(F.chartType), t = zt && (E || 0) >= 6 ? Math.min(100, e) : typeof E == "number" && E > 0 ? Math.max(e, E * 24) : e;
4175
+ Gt = /* @__PURE__ */ q("div", {
4173
4176
  style: {
4174
4177
  width: "100%",
4175
4178
  height: "100%",
@@ -4178,113 +4181,113 @@ var ws = (e, t, n, r, i) => {
4178
4181
  flexDirection: "column",
4179
4182
  alignSelf: "stretch"
4180
4183
  },
4181
- children: /* @__PURE__ */ J(x, {
4184
+ children: /* @__PURE__ */ q(x, {
4182
4185
  surface: "chart",
4183
- fallback: /* @__PURE__ */ J("div", {
4186
+ fallback: /* @__PURE__ */ q("div", {
4184
4187
  className: "dbn:w-full dbn:h-full",
4185
4188
  "aria-hidden": !0
4186
4189
  }),
4187
- children: /* @__PURE__ */ J(Ls, {
4188
- type: R.type,
4189
- data: R.data,
4190
- answerLineInput: Be,
4191
- minHeight: Rt ? void 0 : 0,
4192
- applyDensity: Re,
4193
- appearance: Le ?? void 0,
4194
- adminTheme: Te,
4195
- colorBy: R.colorBy,
4196
- valueFormatter: ze,
4190
+ children: /* @__PURE__ */ q(Ls, {
4191
+ type: L.type,
4192
+ data: L.data,
4193
+ answerLineInput: Ve,
4194
+ minHeight: zt ? void 0 : 0,
4195
+ applyDensity: ze,
4196
+ appearance: Re ?? void 0,
4197
+ adminTheme: Ee,
4198
+ colorBy: L.colorBy,
4199
+ valueFormatter: Be,
4197
4200
  chartColors: o === !1 ? void 0 : i,
4198
4201
  renderer: l?.opts?.renderer,
4199
- onEvents: Is(R.type === "singleValue" ? Ps(r, l) : r, l?.ref),
4202
+ onEvents: Is(L.type === "singleValue" ? Ps(r, l) : r, l?.ref),
4200
4203
  className: d
4201
4204
  })
4202
4205
  })
4203
4206
  });
4204
- } else Wt = I.chartType === h.radar ? /* @__PURE__ */ J(ds, {
4205
- chartType: I.chartType,
4206
- text: Pe ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4207
- }) : !B || Pt === null ? null : (() => {
4207
+ } else Gt = F.chartType === h.radar ? /* @__PURE__ */ q(ds, {
4208
+ chartType: F.chartType,
4209
+ text: Fe ? "Radar needs one category and at least three measures." : "Radar requires the new chart engine."
4210
+ }) : !z || Ft === null ? null : (() => {
4208
4211
  let e = [
4209
4212
  h.indianMap,
4210
4213
  h.geoBarMap,
4211
4214
  h.geoMap,
4212
4215
  h.geoScatterMap,
4213
4216
  h.worldMap
4214
- ].includes(I.chartType);
4215
- return e && Ue ? /* @__PURE__ */ J(ds, {
4216
- chartType: I.chartType,
4217
+ ].includes(F.chartType);
4218
+ return e && We ? /* @__PURE__ */ q(ds, {
4219
+ chartType: F.chartType,
4217
4220
  text: "Could not load the map outline. Check your connection and try again."
4218
- }) : e && !Ve ? /* @__PURE__ */ J(er, {}) : I.chartType === h.singleValue ? /* @__PURE__ */ J(Ts, {
4219
- ...Ht,
4220
- value: B.value,
4221
- settings: B.settings,
4221
+ }) : e && !He ? /* @__PURE__ */ q(tr, {}) : F.chartType === h.singleValue ? /* @__PURE__ */ q(Ts, {
4222
+ ...Ut,
4223
+ value: z.value,
4224
+ settings: z.settings,
4222
4225
  className: d,
4223
- comparisonValue: B.comparisonValue,
4224
- trendLineOptions: B.trendLineOptions,
4226
+ comparisonValue: z.comparisonValue,
4227
+ trendLineOptions: z.trendLineOptions,
4225
4228
  events: r,
4226
- originalValue: B?.originalValue,
4227
- variables: ge,
4228
- language: ye,
4229
- translationDictionary: be,
4230
- setHoverSubHeader: xe,
4231
- renderOpts: Pt
4232
- }) : I.chartType === h.horizontalStackTable ? /* @__PURE__ */ J(ys, {
4233
- ...Ht,
4234
- data: B.data,
4229
+ originalValue: z?.originalValue,
4230
+ variables: _e,
4231
+ language: be,
4232
+ translationDictionary: xe,
4233
+ setHoverSubHeader: Se,
4234
+ renderOpts: Ft
4235
+ }) : F.chartType === h.horizontalStackTable ? /* @__PURE__ */ q(ys, {
4236
+ ...Ut,
4237
+ data: z.data,
4235
4238
  rawData: t,
4236
4239
  error: "",
4237
4240
  isLoading: !1,
4238
4241
  tableSettings: {
4239
- ...B.tableSettings,
4240
- ...Oe ? {
4242
+ ...z.tableSettings,
4243
+ ...ke ? {
4241
4244
  textWrap: {
4242
4245
  isEnable: !0,
4243
- columns: I?.yAxisList
4246
+ columns: F?.yAxisList
4244
4247
  },
4245
4248
  enableTableSearch: !1
4246
4249
  } : {}
4247
4250
  },
4248
4251
  className: d,
4249
- stackCols: I.stackTableCols || [],
4250
- colors: B.colors,
4251
- showLabels: I.customSettings?.showStackLabels,
4252
+ stackCols: F.stackTableCols || [],
4253
+ colors: z.colors,
4254
+ showLabels: F.customSettings?.showStackLabels,
4252
4255
  onChangePage: l?.onChangePage,
4253
4256
  setChartSettings: l?.setChartSettings,
4254
4257
  dropdownZindex: l?.dropdownZindex,
4255
4258
  additionalSettings: {
4256
- barRadius: I?.customSettings?.barRadius,
4257
- barWidth: I?.customSettings?.barWidth,
4258
- labelPosition: I?.labelSettings?.position && [
4259
+ barRadius: F?.customSettings?.barRadius,
4260
+ barWidth: F?.customSettings?.barWidth,
4261
+ labelPosition: F?.labelSettings?.position && [
4259
4262
  "inside",
4260
4263
  "right",
4261
4264
  "bottom"
4262
- ].includes(I?.labelSettings?.position) ? I?.labelSettings?.position : "bottom"
4265
+ ].includes(F?.labelSettings?.position) ? F?.labelSettings?.position : "bottom"
4263
4266
  },
4264
- renderOpts: Pt
4265
- }) : I.chartType === h.table ? /* @__PURE__ */ J(vs, {
4266
- chartFieldFormats: I.customSettings?.chartFieldFormats,
4267
- yAxisList: I?.yAxisList || [],
4268
- ...Ht,
4267
+ renderOpts: Ft
4268
+ }) : F.chartType === h.table ? /* @__PURE__ */ q(vs, {
4269
+ chartFieldFormats: F.customSettings?.chartFieldFormats,
4270
+ yAxisList: F?.yAxisList || [],
4271
+ ...Ut,
4269
4272
  onChangePaginationColumnFilters: l?.onChangePaginationColumnFilters,
4270
4273
  tableColumnFilters: l?.tableColumnFilters,
4271
4274
  events: r,
4272
- data: B.data,
4275
+ data: z.data,
4273
4276
  error: "",
4274
4277
  isLoading: !1,
4275
4278
  tableSettings: {
4276
- ...B.tableSettings,
4277
- ...Oe ? {
4279
+ ...z.tableSettings,
4280
+ ...ke ? {
4278
4281
  textWrap: {
4279
4282
  isEnable: !0,
4280
- columns: I?.yAxisList,
4283
+ columns: F?.yAxisList,
4281
4284
  headerWrap: !0,
4282
4285
  enableLineBreaks: !0
4283
4286
  },
4284
4287
  enableTableSearch: !1
4285
4288
  } : {}
4286
4289
  },
4287
- dateColumns: I?.dateColumns,
4290
+ dateColumns: F?.dateColumns,
4288
4291
  className: d,
4289
4292
  isExternalChart: l?.isExternalChart,
4290
4293
  isFullScreenChart: l?.isFullScreenChart,
@@ -4294,37 +4297,37 @@ var ws = (e, t, n, r, i) => {
4294
4297
  paginationInfo: l?.paginationInfo,
4295
4298
  setChartSettings: l?.setChartSettings,
4296
4299
  isShowFullScreen: f,
4297
- isMetricCard: le,
4298
- isShowFullScreenEnabled: p && !Ce,
4300
+ isMetricCard: ue,
4301
+ isShowFullScreenEnabled: p && !we,
4299
4302
  metricId: m,
4300
4303
  onMaximize: v,
4301
4304
  dropdownZindex: l?.dropdownZindex,
4302
- externalGlobalFilter: F,
4303
- setExternalGlobalFilter: me,
4304
- language: ye,
4305
- translationDictionary: be,
4305
+ externalGlobalFilter: P,
4306
+ setExternalGlobalFilter: he,
4307
+ language: be,
4308
+ translationDictionary: xe,
4306
4309
  isDisableChartActions: !l?.chartClickConfig?.isEnable,
4307
- onDownloadData: Ee,
4308
- isDownloading: De
4309
- }) : I.chartType === h.trendAnalyzer ? /* @__PURE__ */ J(Bo, {
4310
- ...Ht,
4310
+ onDownloadData: De,
4311
+ isDownloading: Oe
4312
+ }) : F.chartType === h.trendAnalyzer ? /* @__PURE__ */ q(Bo, {
4313
+ ...Ut,
4311
4314
  events: r,
4312
- data: B.data,
4315
+ data: z.data,
4313
4316
  error: "",
4314
4317
  isLoading: !1,
4315
4318
  tableSettings: {
4316
- ...B.tableSettings,
4317
- ...Oe ? {
4319
+ ...z.tableSettings,
4320
+ ...ke ? {
4318
4321
  textWrap: {
4319
4322
  isEnable: !0,
4320
- columns: I?.yAxisList,
4323
+ columns: F?.yAxisList,
4321
4324
  headerWrap: !0,
4322
4325
  enableLineBreaks: !0
4323
4326
  },
4324
4327
  enableTableSearch: !1
4325
4328
  } : {}
4326
4329
  },
4327
- dateColumns: I?.dateColumns,
4330
+ dateColumns: F?.dateColumns,
4328
4331
  className: d,
4329
4332
  isExternalChart: l?.isExternalChart,
4330
4333
  isFullScreenChart: l?.isFullScreenChart,
@@ -4334,187 +4337,187 @@ var ws = (e, t, n, r, i) => {
4334
4337
  paginationInfo: l?.paginationInfo,
4335
4338
  setChartSettings: l?.setChartSettings,
4336
4339
  isShowFullScreen: f,
4337
- isMetricCard: le,
4338
- isShowFullScreenEnabled: p && !Ce,
4340
+ isMetricCard: ue,
4341
+ isShowFullScreenEnabled: p && !we,
4339
4342
  onMaximize: v,
4340
4343
  dropdownZindex: l?.dropdownZindex,
4341
- externalGlobalFilter: F,
4342
- setExternalGlobalFilter: me,
4343
- language: ye,
4344
- translationDictionary: be,
4344
+ externalGlobalFilter: P,
4345
+ setExternalGlobalFilter: he,
4346
+ language: be,
4347
+ translationDictionary: xe,
4345
4348
  isDisableChartActions: !l?.chartClickConfig?.isEnable,
4346
- onDownloadData: Ee,
4347
- isDownloading: De
4348
- }) : I.chartType === h.pivot ? /* @__PURE__ */ J(bs, {
4349
- ...Ht,
4349
+ onDownloadData: De,
4350
+ isDownloading: Oe
4351
+ }) : F.chartType === h.pivot ? /* @__PURE__ */ q(bs, {
4352
+ ...Ut,
4350
4353
  data: t,
4351
- pivotTableSettings: B.pivotTableSettings,
4352
- tableSettings: B?.tableSettings
4353
- }) : I.chartType === h.pivotV2 ? /* @__PURE__ */ J(xs, { props: {
4354
- columns: B?.pivotTableSettings2?.headers || [],
4354
+ pivotTableSettings: z.pivotTableSettings,
4355
+ tableSettings: z?.tableSettings
4356
+ }) : F.chartType === h.pivotV2 ? /* @__PURE__ */ q(xs, { props: {
4357
+ columns: z?.pivotTableSettings2?.headers || [],
4355
4358
  data: t || [],
4356
- rows: B?.pivotTableSettings2?.dimensions || [],
4357
- values: B?.pivotTableSettings2?.measures || [],
4359
+ rows: z?.pivotTableSettings2?.dimensions || [],
4360
+ values: z?.pivotTableSettings2?.measures || [],
4358
4361
  onChartReady: l?.onChartReady,
4359
- headerSettings: B?.pivotTableSettings2?.headerSettings,
4360
- measures: B?.pivotTableSettings2?.aggregates || [],
4361
- isEnableStripedRows: B?.pivotTableSettings2?.isEnableStripedRows,
4362
- dimensions: B?.pivotTableSettings2?.dims || [],
4362
+ headerSettings: z?.pivotTableSettings2?.headerSettings,
4363
+ measures: z?.pivotTableSettings2?.aggregates || [],
4364
+ isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4365
+ dimensions: z?.pivotTableSettings2?.dims || [],
4363
4366
  onDrillPivotTable: y,
4364
4367
  pivotDrillState: ee,
4365
4368
  formatSettings: {
4366
- isEnableFormatting: I?.tableSettings?.isEnableNumberFormatting,
4367
- numberFormatter: I?.tableSettings?.tableFormatter,
4368
- formatColumns: I?.tableSettings?.formattedColumns,
4369
- suffix: I?.tableSettings?.tableSuffix,
4370
- prefix: I?.tableSettings?.tablePrefix,
4371
- formatterOptions: I?.tableSettings?.tableNumberFormatter
4369
+ isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
4370
+ numberFormatter: F?.tableSettings?.tableFormatter,
4371
+ formatColumns: F?.tableSettings?.formattedColumns,
4372
+ suffix: F?.tableSettings?.tableSuffix,
4373
+ prefix: F?.tableSettings?.tablePrefix,
4374
+ formatterOptions: F?.tableSettings?.tableNumberFormatter
4372
4375
  },
4373
- isEnableTableSort: I?.tableSettings?.enableSorting,
4374
- isEnableAllSort: I?.tableSettings?.isEnableAllSort,
4375
- tableSettings: B?.tableSettings
4376
- } }) : I.chartType === h.pivotV3 ? /* @__PURE__ */ J(Ss, { props: {
4377
- columns: B?.pivotTableSettings3?.columns || [],
4376
+ isEnableTableSort: F?.tableSettings?.enableSorting,
4377
+ isEnableAllSort: F?.tableSettings?.isEnableAllSort,
4378
+ tableSettings: z?.tableSettings
4379
+ } }) : F.chartType === h.pivotV3 ? /* @__PURE__ */ q(Ss, { props: {
4380
+ columns: z?.pivotTableSettings3?.columns || [],
4378
4381
  data: t || [],
4379
- rows: B?.pivotTableSettings3?.rows || [],
4382
+ rows: z?.pivotTableSettings3?.rows || [],
4380
4383
  onChartReady: l?.onChartReady,
4381
- headerSettings: B?.pivotTableSettings3?.headerSettings,
4382
- measures: B?.pivotTableSettings3?.aggregates || [],
4383
- isEnableStripedRows: B?.pivotTableSettings2?.isEnableStripedRows,
4384
- dimensions: B?.pivotTableSettings3?.dims || [],
4384
+ headerSettings: z?.pivotTableSettings3?.headerSettings,
4385
+ measures: z?.pivotTableSettings3?.aggregates || [],
4386
+ isEnableStripedRows: z?.pivotTableSettings2?.isEnableStripedRows,
4387
+ dimensions: z?.pivotTableSettings3?.dims || [],
4385
4388
  onDrillPivotTable: y,
4386
4389
  pivotDrillState: ee,
4387
4390
  formatSettings: {
4388
- isEnableFormatting: I?.tableSettings?.isEnableNumberFormatting,
4389
- numberFormatter: I?.tableSettings?.tableFormatter,
4390
- formatColumns: I?.tableSettings?.formattedColumns,
4391
- suffix: I?.tableSettings?.tableSuffix,
4392
- prefix: I?.tableSettings?.tablePrefix,
4393
- formatterOptions: I?.tableSettings?.tableNumberFormatter
4391
+ isEnableFormatting: F?.tableSettings?.isEnableNumberFormatting,
4392
+ numberFormatter: F?.tableSettings?.tableFormatter,
4393
+ formatColumns: F?.tableSettings?.formattedColumns,
4394
+ suffix: F?.tableSettings?.tableSuffix,
4395
+ prefix: F?.tableSettings?.tablePrefix,
4396
+ formatterOptions: F?.tableSettings?.tableNumberFormatter
4394
4397
  },
4395
4398
  aggregatedRowSettings: {
4396
- isAggregatedRow: B?.pivotTableSettings3?.isAggregatedRow,
4397
- aggregateType: B?.pivotTableSettings3?.aggregateType,
4398
- showAllLevels: B?.pivotTableSettings3?.isShowAllLevels,
4399
- showNonPivotColumns: B?.pivotTableSettings3?.isShowNonPivotColumns,
4400
- isReplaceParentOnExpand: B?.pivotTableSettings3?.isReplaceParentOnExpand
4399
+ isAggregatedRow: z?.pivotTableSettings3?.isAggregatedRow,
4400
+ aggregateType: z?.pivotTableSettings3?.aggregateType,
4401
+ showAllLevels: z?.pivotTableSettings3?.isShowAllLevels,
4402
+ showNonPivotColumns: z?.pivotTableSettings3?.isShowNonPivotColumns,
4403
+ isReplaceParentOnExpand: z?.pivotTableSettings3?.isReplaceParentOnExpand
4401
4404
  },
4402
- tableSettings: B?.tableSettings,
4403
- calculatedColumns: B?.pivotTableSettings3?.calculatedColumns || [],
4404
- hiddenColumns: B?.pivotTableSettings3?.hiddenColumns || [],
4405
- orderedColumns: B?.pivotTableSettings3?.orderedColumns || []
4405
+ tableSettings: z?.tableSettings,
4406
+ calculatedColumns: z?.pivotTableSettings3?.calculatedColumns || [],
4407
+ hiddenColumns: z?.pivotTableSettings3?.hiddenColumns || [],
4408
+ orderedColumns: z?.pivotTableSettings3?.orderedColumns || []
4406
4409
  } }) : [
4407
4410
  h.bar,
4408
4411
  h.line,
4409
4412
  h.area,
4410
4413
  h.stackedArea,
4411
4414
  h.timeSeries
4412
- ].includes(I.chartType) && I.customSettings?.showDynamicBehaviour && !tt ? /* @__PURE__ */ ir(us, {
4415
+ ].includes(F.chartType) && F.customSettings?.showDynamicBehaviour && !nt ? /* @__PURE__ */ ar(us, {
4413
4416
  style: {
4414
4417
  width: "100%",
4415
4418
  height: "100%"
4416
4419
  },
4417
4420
  ...Bs(l),
4418
- option: xt,
4421
+ option: St,
4419
4422
  className: d,
4420
- key: Ft,
4421
- ref: l?.ref ?? z,
4422
- onEvents: vt,
4423
- notMerge: Vs(I.chartType),
4424
- opts: Pt
4425
- }) : I.chartType === h.geoBarMap ? /* @__PURE__ */ J(us, {
4423
+ key: It,
4424
+ ref: l?.ref ?? R,
4425
+ onEvents: yt,
4426
+ notMerge: Vs(F.chartType),
4427
+ opts: Ft
4428
+ }) : F.chartType === h.geoBarMap ? /* @__PURE__ */ q(us, {
4426
4429
  style: {
4427
4430
  width: "100%",
4428
4431
  height: "100%"
4429
4432
  },
4430
4433
  ...Bs(l),
4431
- option: Mr({
4432
- ...st || B?.geoOption,
4434
+ option: Nr({
4435
+ ...ct || z?.geoOption,
4433
4436
  animation: !0
4434
4437
  }),
4435
4438
  className: d,
4436
- onEvents: gt,
4439
+ onEvents: _t,
4437
4440
  notMerge: !0,
4438
- opts: Pt
4441
+ opts: Ft
4439
4442
  }) : [
4440
4443
  h.gaugeV2,
4441
4444
  h.linearGaugeV2,
4442
4445
  h.progressBarV2,
4443
4446
  h.funnelV2
4444
- ].includes(I.chartType) ? /* @__PURE__ */ J("div", {
4445
- ref: Je,
4447
+ ].includes(F.chartType) ? /* @__PURE__ */ q("div", {
4448
+ ref: Ye,
4446
4449
  className: "dbn:w-full dbn:h-full dbn:flex dbn:flex-col"
4447
- }) : I?.chartType === h.gauge ? /* @__PURE__ */ J(ds, {
4448
- chartType: I?.chartType,
4450
+ }) : F?.chartType === h.gauge ? /* @__PURE__ */ q(ds, {
4451
+ chartType: F?.chartType,
4449
4452
  subText: "Please use the Gauge V2 chart instead."
4450
- }) : [h.worldMap, h.indianMap].includes(I.chartType) ? /* @__PURE__ */ Y("div", {
4453
+ }) : [h.worldMap, h.indianMap].includes(F.chartType) ? /* @__PURE__ */ J("div", {
4451
4454
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4452
4455
  id: "chartContainer",
4453
- children: [Nt && Ot?.length ? /* @__PURE__ */ Y(b, {
4456
+ children: [Pt && kt?.length ? /* @__PURE__ */ J(b, {
4454
4457
  variant: "popover",
4455
- onClick: () => jt(!At),
4458
+ onClick: () => Mt(!jt),
4456
4459
  className: $.buttonText,
4457
- children: ["Go To Geo ", At ? "Map >" : "Table >"]
4458
- }) : null, At ? /* @__PURE__ */ J(Fo, {
4459
- data: Ot,
4460
- headers: Ut
4461
- }) : /* @__PURE__ */ J(us, {
4460
+ children: ["Go To Geo ", jt ? "Map >" : "Table >"]
4461
+ }) : null, jt ? /* @__PURE__ */ q(Fo, {
4462
+ data: kt,
4463
+ headers: Wt
4464
+ }) : /* @__PURE__ */ q(us, {
4462
4465
  style: {
4463
4466
  width: "100%",
4464
- height: Rt && (E || 0) >= 6 ? "100px" : Rt && !E ? "40%" : "100%"
4467
+ height: zt && (E || 0) >= 6 ? "100px" : zt && !E ? "40%" : "100%"
4465
4468
  },
4466
4469
  ...Bs(l),
4467
- option: I.customSettings?.chartZoom?.isZoomEnabled ? {
4468
- ...bt,
4470
+ option: F.customSettings?.chartZoom?.isZoomEnabled ? {
4471
+ ...xt,
4469
4472
  animation: !0
4470
4473
  } : {
4471
- ...bt,
4474
+ ...xt,
4472
4475
  animation: !1
4473
4476
  },
4474
4477
  className: d,
4475
- ref: l?.ref ?? z,
4476
- onEvents: gt,
4478
+ ref: l?.ref ?? R,
4479
+ onEvents: _t,
4477
4480
  notMerge: !0,
4478
- opts: Pt
4481
+ opts: Ft
4479
4482
  })]
4480
- }) : /* @__PURE__ */ J("div", {
4483
+ }) : /* @__PURE__ */ q("div", {
4481
4484
  className: "dbn:w-full dbn:h-full dbn:relative dbn:flex dbn:gap-3 dbn:flex-col dbn:items-end dbn:justify-center",
4482
4485
  id: "chartContainer",
4483
- children: le ? /* @__PURE__ */ J(Ks, {
4486
+ children: ue ? /* @__PURE__ */ q(Ks, {
4484
4487
  chartHeight: E,
4485
- hasDecreasedHeight: Rt,
4488
+ hasDecreasedHeight: zt,
4486
4489
  config: l,
4487
- chartOptions: I,
4488
- options: bt,
4490
+ chartOptions: F,
4491
+ options: xt,
4489
4492
  className: d,
4490
- onEvents: yt,
4491
- chartRef: l?.ref ?? z,
4492
- renderOpts: Pt
4493
- }) : /* @__PURE__ */ ir(us, {
4493
+ onEvents: bt,
4494
+ chartRef: l?.ref ?? R,
4495
+ renderOpts: Ft
4496
+ }) : /* @__PURE__ */ ar(us, {
4494
4497
  style: {
4495
4498
  width: "100%",
4496
- height: Rt && (E || 0) >= 6 ? "100px" : Rt && !E ? "40%" : "100%"
4499
+ height: zt && (E || 0) >= 6 ? "100px" : zt && !E ? "40%" : "100%"
4497
4500
  },
4498
4501
  ...Bs(l),
4499
- option: I.customSettings?.chartZoom?.isZoomEnabled ? {
4500
- ...bt,
4502
+ option: F.customSettings?.chartZoom?.isZoomEnabled ? {
4503
+ ...xt,
4501
4504
  animation: !0
4502
4505
  } : {
4503
- ...bt,
4506
+ ...xt,
4504
4507
  animation: !1
4505
4508
  },
4506
4509
  className: d,
4507
- key: Ft,
4508
- onEvents: yt,
4509
- ref: l?.ref ?? z,
4510
- notMerge: Vs(I.chartType),
4511
- opts: Pt
4510
+ key: It,
4511
+ onEvents: bt,
4512
+ ref: l?.ref ?? R,
4513
+ notMerge: Vs(F.chartType),
4514
+ opts: Ft
4512
4515
  })
4513
4516
  });
4514
4517
  })();
4515
- return /* @__PURE__ */ J("div", {
4516
- ref: Ne,
4517
- ...R ? {
4518
+ return /* @__PURE__ */ q("div", {
4519
+ ref: Pe,
4520
+ ...L ? {
4518
4521
  "data-chart-engine": "v2",
4519
4522
  className: d,
4520
4523
  style: {
@@ -4522,8 +4525,8 @@ var ws = (e, t, n, r, i) => {
4522
4525
  height: "100%"
4523
4526
  }
4524
4527
  } : { style: { display: "contents" } },
4525
- children: Wt
4528
+ children: Gt
4526
4529
  });
4527
4530
  });
4528
4531
  //#endregion
4529
- export { xr as a, br as c, _r as d, dr as f, wr as i, yr as l, ks as n, Sr as o, vs as r, Cr as s, qs as t, vr as u };
4532
+ export { Sr as a, xr as c, vr as d, fr as f, Tr as i, br as l, ks as n, Cr as o, vs as r, wr as s, qs as t, yr as u };