@databrainhq/plugin 0.17.9-beta.42 → 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.
- package/dist/{Accordion-Dq9yGkaN.mjs → Accordion-Cy-5tB2k.mjs} +1 -1
- package/dist/{CardChartSlot-DCDxqKT5.mjs → CardChartSlot-M8R3rwEo.mjs} +5 -5
- package/dist/{Chart-S83JDc0R.mjs → Chart-DI9Q8DYD.mjs} +1309 -1306
- package/dist/{ChartTypePanel-BJc7Vzaa.mjs → ChartTypePanel-BBssCpRp.mjs} +8 -8
- package/dist/{CreateGlobalFilter-D7Yu8Bbc.mjs → CreateGlobalFilter-a_WfOG2W.mjs} +2 -2
- package/dist/{CreateMetricV2-ClByQA6L.mjs → CreateMetricV2-BkXcFrH_.mjs} +11 -11
- package/dist/{HorizontalStackTable-5L8XMPYP.mjs → HorizontalStackTable-BhoPbnKc.mjs} +3 -3
- package/dist/{ManageMetricsV2-DME7RGNB.mjs → ManageMetricsV2-BocEVzO8.mjs} +3 -3
- package/dist/{MetricCardV2-BjIGCXPE.mjs → MetricCardV2-iJxepSOH.mjs} +6 -6
- package/dist/{NoDataFound-DFUzcolL.mjs → NoDataFound-WonH_a0N.mjs} +1 -1
- package/dist/{Panel-b9YJPjCc.mjs → Panel-DRV42pAI.mjs} +1 -1
- package/dist/{PivotTableV2-DEnMqGHF.mjs → PivotTableV2-Dihz35k0.mjs} +2 -2
- package/dist/{PivotTableV3-CuWaCITG.mjs → PivotTableV3-C5WGgIum.mjs} +4 -4
- package/dist/{Portal-CU1vhja-.mjs → Portal-Cp67-BDB.mjs} +2 -2
- package/dist/{RadioButton-BVGreCMH.mjs → RadioButton-BnqOjYK0.mjs} +1 -1
- package/dist/{ScheduleEmail-IASbWvbk.mjs → ScheduleEmail-DZbdud7C.mjs} +6 -6
- package/dist/{SearchMetricData-DSW9vINh.mjs → SearchMetricData-C8O7Y7CG.mjs} +13 -13
- package/dist/{SortPanel-peNUBvGp.mjs → SortPanel-m7jYuXyi.mjs} +8 -8
- package/dist/{Table-0V_VyjSm.mjs → Table-CckCtD2_.mjs} +4 -4
- package/dist/{TagInputField-DPhEGa4O.mjs → TagInputField-CvJbfwSa.mjs} +4 -4
- package/dist/{TextAreaField-DI8lZKx_.mjs → TextAreaField-cCGBjB3y.mjs} +2 -2
- package/dist/{TimeSeriesSettings-k1AWmYn8.mjs → TimeSeriesSettings-C7aIRx2i.mjs} +2 -2
- package/dist/{cardQueryError-DfiqAzk_.mjs → cardQueryError-DwznQSq9.mjs} +9 -9
- package/dist/{conditionalFormatting-C-p0PAhW.mjs → conditionalFormatting-CS3fx5pm.mjs} +1 -1
- package/dist/{createGlobalFilter.module-C68lhQ7Q.mjs → createGlobalFilter.module-DDGfJPdK.mjs} +1 -1
- package/dist/data.cjs +1 -1
- package/dist/data.mjs +1 -1
- package/dist/{echarts-BwB8LLD3.mjs → echarts-C9zFEHXn.mjs} +2 -2
- package/dist/{metric.mutation-PYlF4Qa4.mjs → metric.mutation-BSjxRaPw.mjs} +1 -1
- package/dist/{permissions-D-jI6Dj7.mjs → permissions-R19Ru6hK.mjs} +5 -5
- package/dist/{pluginV3Request-YanepQxv.mjs → pluginV3Request-D_QKmnO_.mjs} +1 -1
- package/dist/{renderer-llhkDuqf.mjs → renderer-IXdlfK64.mjs} +1 -1
- package/dist/{timeseries-yv5rN1Ae.mjs → timeseries-DJvfDNcM.mjs} +1 -1
- package/dist/{toTasteAppearance-DYNodE_s.mjs → toTasteAppearance-y_fBMeqX.mjs} +3 -3
- package/dist/{useGuesTokenUsageLog-BYgybkZH.mjs → useGuesTokenUsageLog-Bqm0Oiv4.mjs} +1 -1
- package/dist/{usePublishArchivedMetrics-AmnmGUht.mjs → usePublishArchivedMetrics-B-SePnEf.mjs} +2 -2
- package/dist/{useQuery-BrC7s8wP.mjs → useQuery-BqW8Qb29.mjs} +1 -1
- package/dist/webcomponents.css +2 -2
- package/dist/webcomponents.es.js +25 -25
- package/dist/webcomponents.umd.js +5 -5
- 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-
|
|
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-
|
|
7
|
-
import { $ as j, A as M, G as
|
|
8
|
-
import { g as
|
|
9
|
-
import { n as
|
|
10
|
-
import { $ as
|
|
11
|
-
import { t as
|
|
12
|
-
import { t as
|
|
13
|
-
import { t as
|
|
14
|
-
import { n as
|
|
15
|
-
import { n as
|
|
16
|
-
import { n as
|
|
17
|
-
import { n as
|
|
18
|
-
import { t as
|
|
19
|
-
import { c as
|
|
20
|
-
import { t as
|
|
21
|
-
import { n as
|
|
22
|
-
import { a as
|
|
23
|
-
import { n as
|
|
24
|
-
import { a as
|
|
25
|
-
import { n as
|
|
26
|
-
import { t as
|
|
27
|
-
import { t as
|
|
28
|
-
import { t as
|
|
29
|
-
import { n as
|
|
30
|
-
import * as
|
|
31
|
-
import
|
|
32
|
-
import { Fragment as
|
|
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
|
|
35
|
-
createDimensions: () =>
|
|
36
|
-
createList: () =>
|
|
37
|
-
createScale: () =>
|
|
38
|
-
createSymbol: () =>
|
|
39
|
-
createTextStyle: () =>
|
|
40
|
-
dataStack: () =>
|
|
41
|
-
enableHoverEmphasis: () =>
|
|
42
|
-
getECData: () =>
|
|
43
|
-
getLayoutRect: () =>
|
|
44
|
-
mixinAxisModelCommonMethods: () =>
|
|
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
|
|
47
|
-
return
|
|
46
|
+
function pr(e) {
|
|
47
|
+
return kn(null, e);
|
|
48
48
|
}
|
|
49
|
-
var
|
|
50
|
-
isDimensionStacked:
|
|
51
|
-
enableDataStack:
|
|
52
|
-
getStackedDimension:
|
|
49
|
+
var mr = {
|
|
50
|
+
isDimensionStacked: jn,
|
|
51
|
+
enableDataStack: Mn,
|
|
52
|
+
getStackedDimension: An
|
|
53
53
|
};
|
|
54
|
-
function
|
|
54
|
+
function hr(e, t) {
|
|
55
55
|
var n = t;
|
|
56
|
-
t instanceof
|
|
57
|
-
var r =
|
|
58
|
-
return e[1] < e[0] && (e = e.slice().reverse()),
|
|
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
|
|
61
|
-
|
|
60
|
+
function gr(e) {
|
|
61
|
+
Ze(e, Fn);
|
|
62
62
|
}
|
|
63
|
-
function
|
|
64
|
-
return t ||= {},
|
|
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
|
|
69
|
-
MAX_SAFE_INTEGER: () =>
|
|
70
|
-
asc: () =>
|
|
71
|
-
getPercentWithPrecision: () =>
|
|
72
|
-
getPixelPrecision: () =>
|
|
73
|
-
getPrecision: () =>
|
|
74
|
-
getPrecisionSafe: () =>
|
|
75
|
-
isNumeric: () =>
|
|
76
|
-
isRadianAroundZero: () =>
|
|
77
|
-
linearMap: () =>
|
|
78
|
-
nice: () =>
|
|
79
|
-
numericToNumber: () =>
|
|
80
|
-
parseDate: () =>
|
|
81
|
-
parsePercent: () =>
|
|
82
|
-
quantile: () =>
|
|
83
|
-
quantity: () =>
|
|
84
|
-
quantityExponent: () =>
|
|
85
|
-
reformIntervals: () =>
|
|
86
|
-
remRadian: () =>
|
|
87
|
-
round: () =>
|
|
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
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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 =
|
|
151
|
-
return
|
|
146
|
+
var t = Me.extend(e);
|
|
147
|
+
return Me.registerClass(t), t;
|
|
152
148
|
}
|
|
153
149
|
function Cr(e) {
|
|
154
|
-
var t =
|
|
155
|
-
return
|
|
150
|
+
var t = qt.extend(e);
|
|
151
|
+
return qt.registerClass(t), t;
|
|
156
152
|
}
|
|
157
153
|
function wr(e) {
|
|
158
|
-
var t =
|
|
159
|
-
return
|
|
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
|
|
164
|
-
Axis: () =>
|
|
165
|
-
ChartView: () =>
|
|
166
|
-
ComponentModel: () =>
|
|
167
|
-
ComponentView: () =>
|
|
168
|
-
List: () =>
|
|
169
|
-
Model: () =>
|
|
170
|
-
PRIORITY: () =>
|
|
171
|
-
SeriesModel: () =>
|
|
172
|
-
color: () =>
|
|
173
|
-
connect: () =>
|
|
174
|
-
dataTool: () =>
|
|
175
|
-
dependencies: () =>
|
|
176
|
-
disConnect: () =>
|
|
177
|
-
disconnect: () =>
|
|
178
|
-
dispose: () =>
|
|
179
|
-
env: () =>
|
|
180
|
-
extendChartView: () =>
|
|
181
|
-
extendComponentModel: () =>
|
|
182
|
-
extendComponentView: () =>
|
|
183
|
-
extendSeriesModel: () =>
|
|
184
|
-
format: () =>
|
|
185
|
-
getCoordinateSystemDimensions: () =>
|
|
186
|
-
getInstanceByDom: () =>
|
|
187
|
-
getInstanceById: () =>
|
|
188
|
-
getMap: () =>
|
|
189
|
-
graphic: () =>
|
|
190
|
-
helper: () =>
|
|
191
|
-
init: () =>
|
|
192
|
-
innerDrawElementOnCanvas: () =>
|
|
193
|
-
matrix: () =>
|
|
194
|
-
number: () =>
|
|
195
|
-
parseGeoJSON: () =>
|
|
196
|
-
parseGeoJson: () =>
|
|
197
|
-
registerAction: () =>
|
|
198
|
-
registerCoordinateSystem: () =>
|
|
199
|
-
registerCustomSeries: () =>
|
|
200
|
-
registerLayout: () =>
|
|
201
|
-
registerLoading: () =>
|
|
202
|
-
registerLocale: () =>
|
|
203
|
-
registerMap: () =>
|
|
204
|
-
registerPostInit: () =>
|
|
205
|
-
registerPostUpdate: () =>
|
|
206
|
-
registerPreprocessor: () =>
|
|
207
|
-
registerProcessor: () =>
|
|
208
|
-
registerTheme: () =>
|
|
209
|
-
registerTransform: () =>
|
|
210
|
-
registerUpdateLifecycle: () =>
|
|
211
|
-
registerVisual: () =>
|
|
212
|
-
setCanvasCreator: () =>
|
|
213
|
-
setPlatformAPI: () =>
|
|
214
|
-
throttle: () =>
|
|
215
|
-
time: () =>
|
|
216
|
-
use: () =>
|
|
217
|
-
util: () =>
|
|
218
|
-
vector: () =>
|
|
219
|
-
version: () =>
|
|
220
|
-
zrUtil: () =>
|
|
221
|
-
zrender: () =>
|
|
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
|
|
225
|
+
function Dr(e) {
|
|
226
226
|
let t = e ? E[e] : void 0;
|
|
227
|
-
return t ?
|
|
227
|
+
return t ? P(t) : 200;
|
|
228
228
|
}
|
|
229
229
|
//#endregion
|
|
230
230
|
//#region src/charts/echarts6Compatibility.ts
|
|
231
|
-
var
|
|
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
|
-
}),
|
|
235
|
-
let t =
|
|
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
|
-
},
|
|
245
|
-
if (!
|
|
246
|
-
let t =
|
|
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 =
|
|
254
|
-
},
|
|
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
|
-
],
|
|
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
|
-
],
|
|
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
|
-
},
|
|
273
|
+
}, zr = (e) => {
|
|
274
274
|
let t = e.legendAppearance, n = e.legendSettings;
|
|
275
275
|
return {
|
|
276
276
|
show: t?.show ?? n?.show,
|
|
277
|
-
fixedPosition:
|
|
278
|
-
legendAppearance:
|
|
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:
|
|
281
|
+
fontSize: Rr(t?.fontSize) ?? Rr(n?.fontSize)
|
|
282
282
|
};
|
|
283
283
|
};
|
|
284
|
-
function
|
|
284
|
+
function Br(e) {
|
|
285
285
|
let { chartType: t, canvas: n, legendLabels: r } = e;
|
|
286
|
-
if (!t || !
|
|
287
|
-
let i =
|
|
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 =
|
|
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 =
|
|
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
|
|
314
|
+
var Vr = /* @__PURE__ */ new Set([
|
|
315
315
|
void 0,
|
|
316
316
|
"outside",
|
|
317
317
|
"outer"
|
|
318
|
-
]),
|
|
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
|
-
},
|
|
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
|
|
335
|
+
function Gr(e, t, n) {
|
|
336
336
|
let { chartType: r, canvas: i } = t;
|
|
337
|
-
if (!r || !
|
|
338
|
-
let a = e.filter(
|
|
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) =>
|
|
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(
|
|
347
|
-
fontSizePx:
|
|
348
|
-
leaderPx: (
|
|
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
|
|
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 ?
|
|
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 =
|
|
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 &&
|
|
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 &&
|
|
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
|
|
408
|
+
var qr = [
|
|
409
409
|
"top",
|
|
410
410
|
"left",
|
|
411
411
|
"right",
|
|
412
412
|
"bottom",
|
|
413
413
|
"inside"
|
|
414
|
-
],
|
|
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
|
-
],
|
|
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
|
-
],
|
|
431
|
+
], Xr = (e) => e != null, Zr = (e) => {
|
|
432
432
|
let t = e?.position;
|
|
433
|
-
if (t && t !== "hidden" &&
|
|
434
|
-
},
|
|
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 &&
|
|
438
|
-
},
|
|
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))
|
|
442
|
+
for (let [t, r] of Object.entries(e)) Xr(r) && (n[t] = r);
|
|
443
443
|
return n;
|
|
444
|
-
},
|
|
445
|
-
let n =
|
|
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
|
-
},
|
|
452
|
-
function
|
|
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
|
|
455
|
+
function Y(e, t) {
|
|
456
456
|
if (e === !1 || e == null) throw Error(t);
|
|
457
457
|
}
|
|
458
|
-
function
|
|
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
|
|
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
|
|
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
|
|
480
|
-
return
|
|
479
|
+
function si(e, t, n = "/") {
|
|
480
|
+
return ci(e, t, n, !1);
|
|
481
481
|
}
|
|
482
|
-
function
|
|
483
|
-
let a =
|
|
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 ??
|
|
486
|
-
for (let e = 0; s == null && e < o.length; ++e) s =
|
|
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
|
|
490
|
-
let t =
|
|
491
|
-
return
|
|
489
|
+
function li(e) {
|
|
490
|
+
let t = ui(e);
|
|
491
|
+
return fi(t), t;
|
|
492
492
|
}
|
|
493
|
-
function
|
|
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
|
-
|
|
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 =
|
|
506
|
-
e.children && e.children.length > 0 && (
|
|
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:
|
|
508
|
+
score: bi(l, e.index),
|
|
509
509
|
routesMeta: u.map((e, t) => {
|
|
510
|
-
let [n, r] =
|
|
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
|
|
521
|
+
else for (let n of di(e.path)) a(e, t, !0, n);
|
|
522
522
|
}), t;
|
|
523
523
|
}
|
|
524
|
-
function
|
|
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 =
|
|
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
|
|
533
|
-
e.sort((e, t) => e.score === t.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
|
|
536
|
-
function
|
|
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(
|
|
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
|
|
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
|
|
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 ?
|
|
551
|
-
if (!d && c && n && !r[r.length - 1].route.index && (d =
|
|
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:
|
|
559
|
-
pathnameBase:
|
|
558
|
+
pathname: X([a, d.pathname]),
|
|
559
|
+
pathnameBase: Ii(X([a, d.pathnameBase])),
|
|
560
560
|
route: f
|
|
561
|
-
}), d.pathnameBase !== "/" && (a =
|
|
561
|
+
}), d.pathnameBase !== "/" && (a = X([a, d.pathnameBase]));
|
|
562
562
|
}
|
|
563
563
|
return o;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
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] =
|
|
572
|
-
return
|
|
571
|
+
let [n, r] = Ti(e.path, e.caseSensitive, e.end);
|
|
572
|
+
return wi(e, t, n, r);
|
|
573
573
|
}
|
|
574
|
-
function
|
|
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 =
|
|
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 =
|
|
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
|
|
593
|
-
|
|
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
|
|
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
|
|
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
|
|
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
|
|
620
|
-
let { pathname: n, search: r = "", hash: i = "" } = typeof e == "string" ?
|
|
621
|
-
return n ? (n =
|
|
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:
|
|
624
|
-
hash:
|
|
623
|
+
search: Li(r),
|
|
624
|
+
hash: Ri(i)
|
|
625
625
|
};
|
|
626
626
|
}
|
|
627
|
-
function
|
|
628
|
-
let n =
|
|
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
|
|
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
|
|
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
|
|
640
|
-
let t =
|
|
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
|
|
643
|
+
function Ni(e, t, n, r = !1) {
|
|
644
644
|
let i;
|
|
645
|
-
typeof e == "string" ? 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 =
|
|
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
|
|
661
|
-
function
|
|
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
|
|
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
|
|
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
|
|
675
|
-
return
|
|
674
|
+
function Vi(e) {
|
|
675
|
+
return X(e.map((e) => e.route.path).filter(Boolean)) || "/";
|
|
676
676
|
}
|
|
677
|
-
var
|
|
678
|
-
function
|
|
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" || !
|
|
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 (
|
|
687
|
-
let e = new URL(window.location.href), r =
|
|
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
|
-
|
|
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
|
|
700
|
-
function
|
|
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("/"),
|
|
703
|
+
return new URL(e.createHref("/"), Wi);
|
|
704
704
|
} catch {
|
|
705
|
-
return
|
|
705
|
+
return Wi;
|
|
706
706
|
}
|
|
707
707
|
}
|
|
708
|
-
function
|
|
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
|
|
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
|
|
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 && !
|
|
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 || !
|
|
724
|
+
} else if (s && (i == null || !qi(e, i) || !Ki(i, a))) throw Error("External navigation is not allowed");
|
|
725
725
|
}
|
|
726
|
-
var
|
|
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
|
|
747
|
+
function Qi(e) {
|
|
748
748
|
try {
|
|
749
|
-
return
|
|
749
|
+
return Zi.includes(new URL(e).protocol);
|
|
750
750
|
} catch {
|
|
751
751
|
return !1;
|
|
752
752
|
}
|
|
753
753
|
}
|
|
754
|
-
var
|
|
755
|
-
|
|
756
|
-
var
|
|
757
|
-
|
|
758
|
-
var
|
|
759
|
-
function
|
|
760
|
-
return
|
|
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
|
|
763
|
-
|
|
764
|
-
var
|
|
765
|
-
|
|
766
|
-
var
|
|
767
|
-
|
|
768
|
-
var
|
|
769
|
-
|
|
770
|
-
var oa =
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
-
|
|
795
|
-
let { basename: n, navigator: r } =
|
|
796
|
-
return n !== "/" && (s = a === "/" ? n :
|
|
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
|
|
803
|
+
return H.useContext(oa) != null;
|
|
804
804
|
}
|
|
805
805
|
function ga() {
|
|
806
|
-
return
|
|
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
|
-
|
|
810
|
+
H.useContext(Z).static || H.useLayoutEffect(e);
|
|
811
811
|
}
|
|
812
812
|
function ya() {
|
|
813
|
-
let { isDataRoute: e } =
|
|
813
|
+
let { isDataRoute: e } = H.useContext(sa);
|
|
814
814
|
return e ? La() : ba();
|
|
815
815
|
}
|
|
816
816
|
function ba() {
|
|
817
|
-
|
|
818
|
-
let e =
|
|
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
|
-
}),
|
|
822
|
-
if (
|
|
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 =
|
|
828
|
-
e == null && t !== "/" && (c.pathname = c.pathname === "/" ? t :
|
|
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
|
-
|
|
837
|
+
H.createContext(null);
|
|
838
838
|
function xa(e, { relative: t } = {}) {
|
|
839
|
-
let { matches: n } =
|
|
840
|
-
return
|
|
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
|
-
|
|
849
|
-
let { navigator: r } =
|
|
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" ?
|
|
859
|
-
|
|
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 })) :
|
|
867
|
-
|
|
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:
|
|
871
|
-
pathnameBase: e.pathnameBase === "/" ? c :
|
|
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__ */
|
|
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 =
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
931
|
+
return this.context ? /* @__PURE__ */ H.createElement(Da, { error: e }, t) : t;
|
|
932
932
|
}
|
|
933
933
|
};
|
|
934
|
-
Ta.contextType =
|
|
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 } =
|
|
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 =
|
|
944
|
-
if (
|
|
945
|
-
if (
|
|
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__ */
|
|
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 =
|
|
962
|
-
return r && r.static && r.staticContext && (t.route.errorElement || t.route.ErrorBoundary) && (r.staticContext._deepestRenderedBoundaryId = t.route.id), /* @__PURE__ */
|
|
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
|
-
|
|
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:
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
1034
|
-
return
|
|
1033
|
+
let t = H.useContext($i);
|
|
1034
|
+
return Y(t, Aa(e)), t;
|
|
1035
1035
|
}
|
|
1036
1036
|
function Ma(e) {
|
|
1037
|
-
let t =
|
|
1038
|
-
return
|
|
1037
|
+
let t = H.useContext(ea);
|
|
1038
|
+
return Y(t, Aa(e)), t;
|
|
1039
1039
|
}
|
|
1040
1040
|
function Na(e) {
|
|
1041
|
-
let t =
|
|
1042
|
-
return
|
|
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
|
|
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 =
|
|
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 =
|
|
1056
|
+
let { router: e } = ja("useNavigate"), t = Pa("useNavigate"), n = H.useRef(!1);
|
|
1057
1057
|
return va(() => {
|
|
1058
1058
|
n.current = !0;
|
|
1059
|
-
}),
|
|
1060
|
-
|
|
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,
|
|
1068
|
+
!t && !Ra[e] && (Ra[e] = !0, ii(!1, n));
|
|
1069
1069
|
}
|
|
1070
|
-
|
|
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
|
-
|
|
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) ? (
|
|
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 ?
|
|
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 ?
|
|
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 &&
|
|
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 =
|
|
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 =
|
|
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 =
|
|
1241
|
+
var mo = H.createContext(void 0);
|
|
1242
1242
|
mo.displayName = "FrameworkContext";
|
|
1243
1243
|
function ho() {
|
|
1244
|
-
let e =
|
|
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 =
|
|
1249
|
-
|
|
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]),
|
|
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 =
|
|
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__ */
|
|
1309
|
+
}), n ? /* @__PURE__ */ H.createElement(bo, {
|
|
1310
1310
|
page: e,
|
|
1311
1311
|
matches: a,
|
|
1312
1312
|
...t
|
|
1313
|
-
}) : /* @__PURE__ */
|
|
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] =
|
|
1321
|
-
return
|
|
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 =
|
|
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__ */
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
1388
|
-
return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
|
|
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 =
|
|
1419
|
-
let { basename: h, navigator: g, useTransitions: _ } =
|
|
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 =
|
|
1424
|
-
h !== "/" && (e.pathname = e.pathname === "/" ? h :
|
|
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__ */
|
|
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__ */
|
|
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 =
|
|
1453
|
-
let u = xa(a, { relative: c.relative }), d = ga(), f =
|
|
1454
|
-
t || (_ = _.toLowerCase(), v = v ? v.toLowerCase() : null, g = g.toLowerCase()), 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__ */
|
|
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 =
|
|
1479
|
-
let { useTransitions: h } =
|
|
1480
|
-
return /* @__PURE__ */
|
|
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 ?
|
|
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 =
|
|
1510
|
-
return
|
|
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
|
|
1514
|
+
return H.useCallback((p) => {
|
|
1515
1515
|
if (Ja(p, t)) {
|
|
1516
1516
|
p.preventDefault();
|
|
1517
|
-
let t = n === void 0 ?
|
|
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 ?
|
|
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 } =
|
|
1547
|
-
return
|
|
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 } =
|
|
1582
|
-
|
|
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 :
|
|
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 =
|
|
1597
|
-
|
|
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 =
|
|
1601
|
-
return
|
|
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(), [
|
|
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
|
-
},
|
|
1620
|
+
}, pe = () => {
|
|
1621
1621
|
if (D) switch (D) {
|
|
1622
|
-
case "datasource": return /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1636
|
+
}), /* @__PURE__ */ q(To, {
|
|
1637
1637
|
to: "/configuration",
|
|
1638
|
-
children: /* @__PURE__ */
|
|
1639
|
-
className:
|
|
1640
|
-
children: [/* @__PURE__ */
|
|
1638
|
+
children: /* @__PURE__ */ J("div", {
|
|
1639
|
+
className: V.createBtn,
|
|
1640
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1641
1641
|
size: "sm",
|
|
1642
1642
|
name: "plus"
|
|
1643
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1666
|
-
className:
|
|
1665
|
+
}), /* @__PURE__ */ J("div", {
|
|
1666
|
+
className: V.createBtn,
|
|
1667
1667
|
onClick: O,
|
|
1668
|
-
children: [/* @__PURE__ */
|
|
1668
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1669
1669
|
size: "sm",
|
|
1670
1670
|
name: "plus"
|
|
1671
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1693
|
-
className:
|
|
1692
|
+
}), /* @__PURE__ */ J("div", {
|
|
1693
|
+
className: V.createBtn,
|
|
1694
1694
|
onClick: O,
|
|
1695
|
-
children: [/* @__PURE__ */
|
|
1695
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1696
1696
|
size: "sm",
|
|
1697
1697
|
name: "plus"
|
|
1698
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1737
|
-
className:
|
|
1736
|
+
}), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
|
|
1737
|
+
className: V.createBtn,
|
|
1738
1738
|
onClick: O,
|
|
1739
|
-
children: [/* @__PURE__ */
|
|
1739
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1740
1740
|
size: "sm",
|
|
1741
1741
|
name: "plus"
|
|
1742
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1764
|
-
className:
|
|
1763
|
+
}), S && /* @__PURE__ */ J("div", {
|
|
1764
|
+
className: V.createBtn,
|
|
1765
1765
|
onClick: O,
|
|
1766
|
-
children: [/* @__PURE__ */
|
|
1766
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1767
1767
|
size: "sm",
|
|
1768
1768
|
name: "plus"
|
|
1769
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1791
|
-
className:
|
|
1790
|
+
}), S === "DASHBOARD_CREATE" && /* @__PURE__ */ J("div", {
|
|
1791
|
+
className: V.createBtn,
|
|
1792
1792
|
onClick: O,
|
|
1793
|
-
children: [/* @__PURE__ */
|
|
1793
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1794
1794
|
size: "sm",
|
|
1795
1795
|
name: "plus"
|
|
1796
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1818
|
-
className:
|
|
1817
|
+
}), S && /* @__PURE__ */ J("div", {
|
|
1818
|
+
className: V.createBtn,
|
|
1819
1819
|
onClick: O,
|
|
1820
|
-
children: [/* @__PURE__ */
|
|
1820
|
+
children: [/* @__PURE__ */ q(m, {
|
|
1821
1821
|
size: "sm",
|
|
1822
1822
|
name: "plus"
|
|
1823
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
-
},
|
|
1914
|
+
}, me = () => {
|
|
1915
1915
|
if (D) switch (D) {
|
|
1916
|
-
case "datasource": return /* @__PURE__ */
|
|
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__ */
|
|
1919
|
+
/* @__PURE__ */ q(T, {
|
|
1920
1920
|
variant: "heading-2",
|
|
1921
1921
|
color: "primary",
|
|
1922
1922
|
children: "FAQs"
|
|
1923
1923
|
}),
|
|
1924
|
-
/* @__PURE__ */
|
|
1924
|
+
/* @__PURE__ */ q(Vn, {
|
|
1925
1925
|
header: "What is a Data Source?",
|
|
1926
|
-
isOpen:
|
|
1926
|
+
isOpen: N === "datasource",
|
|
1927
1927
|
setIsOpen: () => {
|
|
1928
|
-
|
|
1928
|
+
P((e) => e === "datasource" ? "" : "datasource");
|
|
1929
1929
|
},
|
|
1930
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
1940
|
+
/* @__PURE__ */ q(Vn, {
|
|
1941
1941
|
header: "How to set up a Data Source?",
|
|
1942
|
-
isOpen:
|
|
1942
|
+
isOpen: N === "datasource-setup",
|
|
1943
1943
|
setIsOpen: () => {
|
|
1944
|
-
|
|
1944
|
+
P((e) => e === "datasource-setup" ? "" : "datasource-setup");
|
|
1945
1945
|
},
|
|
1946
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
1967
|
+
children: /* @__PURE__ */ q(b, {
|
|
1968
1968
|
variant: "popover",
|
|
1969
|
-
leftIcon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
1985
|
+
/* @__PURE__ */ q(T, {
|
|
1986
1986
|
variant: "heading-2",
|
|
1987
1987
|
color: "primary",
|
|
1988
1988
|
children: "FAQs"
|
|
1989
1989
|
}),
|
|
1990
|
-
/* @__PURE__ */
|
|
1990
|
+
/* @__PURE__ */ q(Vn, {
|
|
1991
1991
|
header: "What are Data Apps?",
|
|
1992
|
-
isOpen:
|
|
1992
|
+
isOpen: N === "dataapp",
|
|
1993
1993
|
setIsOpen: () => {
|
|
1994
|
-
|
|
1994
|
+
P((e) => e === "dataapp" ? "" : "dataapp");
|
|
1995
1995
|
},
|
|
1996
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2006
|
+
/* @__PURE__ */ q(Vn, {
|
|
2007
2007
|
header: "How to set up a Data App?",
|
|
2008
|
-
isOpen:
|
|
2008
|
+
isOpen: N === "dataapp-setup",
|
|
2009
2009
|
setIsOpen: () => {
|
|
2010
|
-
|
|
2010
|
+
P((e) => e === "dataapp-setup" ? "" : "dataapp-setup");
|
|
2011
2011
|
},
|
|
2012
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2032
|
+
}), /* @__PURE__ */ q(To, {
|
|
2033
2033
|
target: "_blank",
|
|
2034
2034
|
to: "https://docs.usedatabrain.com/guides/datasources/create-a-data-app",
|
|
2035
|
-
children: /* @__PURE__ */
|
|
2035
|
+
children: /* @__PURE__ */ q(b, {
|
|
2036
2036
|
variant: "popover",
|
|
2037
|
-
leftIcon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2053
|
+
/* @__PURE__ */ q(T, {
|
|
2054
2054
|
variant: "heading-2",
|
|
2055
2055
|
color: "primary",
|
|
2056
2056
|
children: "FAQs"
|
|
2057
2057
|
}),
|
|
2058
|
-
/* @__PURE__ */
|
|
2058
|
+
/* @__PURE__ */ q(Vn, {
|
|
2059
2059
|
header: "What is a Data Mart?",
|
|
2060
|
-
isOpen:
|
|
2060
|
+
isOpen: N === "datamart",
|
|
2061
2061
|
setIsOpen: () => {
|
|
2062
|
-
|
|
2062
|
+
P((e) => e === "datamart" ? "" : "datamart");
|
|
2063
2063
|
},
|
|
2064
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2074
|
+
/* @__PURE__ */ q(Vn, {
|
|
2075
2075
|
header: "How to set up a Data Mart?",
|
|
2076
|
-
isOpen:
|
|
2076
|
+
isOpen: N === "datamart-setup",
|
|
2077
2077
|
setIsOpen: () => {
|
|
2078
|
-
|
|
2078
|
+
P((e) => e === "datamart-setup" ? "" : "datamart-setup");
|
|
2079
2079
|
},
|
|
2080
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2100
|
+
}), /* @__PURE__ */ q(To, {
|
|
2101
2101
|
target: "_blank",
|
|
2102
2102
|
to: "https://docs.usedatabrain.com/guides/datasources/create-a-datamart",
|
|
2103
|
-
children: /* @__PURE__ */
|
|
2103
|
+
children: /* @__PURE__ */ q(b, {
|
|
2104
2104
|
variant: "popover",
|
|
2105
|
-
leftIcon: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2121
|
+
/* @__PURE__ */ q(T, {
|
|
2122
2122
|
variant: "heading-2",
|
|
2123
2123
|
color: "primary",
|
|
2124
2124
|
children: "FAQs"
|
|
2125
2125
|
}),
|
|
2126
|
-
/* @__PURE__ */
|
|
2126
|
+
/* @__PURE__ */ q(Vn, {
|
|
2127
2127
|
header: "What is a Semantic Layer?",
|
|
2128
|
-
isOpen:
|
|
2128
|
+
isOpen: N === "semantic",
|
|
2129
2129
|
setIsOpen: () => {
|
|
2130
|
-
|
|
2130
|
+
P((e) => e === "semantic" ? "" : "semantic");
|
|
2131
2131
|
},
|
|
2132
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2142
|
+
/* @__PURE__ */ q(Vn, {
|
|
2143
2143
|
header: "How to set up a Semantic Layer?",
|
|
2144
|
-
isOpen:
|
|
2144
|
+
isOpen: N === "semantic-setup",
|
|
2145
2145
|
setIsOpen: () => {
|
|
2146
|
-
|
|
2146
|
+
P((e) => e === "semantic-setup" ? "" : "semantic-setup");
|
|
2147
2147
|
},
|
|
2148
|
-
content: /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2168
|
+
}), /* @__PURE__ */ q(To, {
|
|
2169
2169
|
target: "_blank",
|
|
2170
2170
|
to: "https://docs.usedatabrain.com/guides/datasources/semantic-layer",
|
|
2171
|
-
children: /* @__PURE__ */
|
|
2171
|
+
children: /* @__PURE__ */ q(b, {
|
|
2172
2172
|
variant: "popover",
|
|
2173
|
-
leftIcon: /* @__PURE__ */
|
|
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
|
-
},
|
|
2190
|
-
return
|
|
2191
|
-
p && f &&
|
|
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__ */
|
|
2196
|
-
ref:
|
|
2197
|
-
className: `${
|
|
2195
|
+
}, [f]), /* @__PURE__ */ J(dr, { children: [/* @__PURE__ */ J("div", {
|
|
2196
|
+
ref: he,
|
|
2197
|
+
className: `${V[`container-${n}`]} ${a}`,
|
|
2198
2198
|
children: [
|
|
2199
|
-
c ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2207
|
-
className:
|
|
2208
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
2216
|
-
className: `${
|
|
2217
|
-
children: [/* @__PURE__ */
|
|
2218
|
-
className: `${
|
|
2219
|
-
children: /* @__PURE__ */
|
|
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 ?
|
|
2222
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
2242
|
-
className:
|
|
2243
|
-
children: (h ? t : t.slice(0,
|
|
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: `${
|
|
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 =
|
|
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 =
|
|
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__ */
|
|
2260
|
+
return /* @__PURE__ */ q("td", {
|
|
2261
2261
|
colSpan: r.colSpan,
|
|
2262
|
-
className: `${
|
|
2263
|
-
children: /* @__PURE__ */
|
|
2264
|
-
className:
|
|
2265
|
-
children: i === 0 && l || r.columnKey?.toLowerCase() === "type" ? /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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]),
|
|
2282
|
+
navigator.clipboard.writeText(t[r.columnKey]), de(t[r.columnKey]), setTimeout(() => de(""), 1700);
|
|
2283
2283
|
},
|
|
2284
|
-
leftIcon: /* @__PURE__ */
|
|
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:
|
|
2290
|
-
})] }) : t[r.columnKey]) || "-", i === e.length - 1 && u ? /* @__PURE__ */
|
|
2291
|
-
buttonContent: /* @__PURE__ */
|
|
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__ */
|
|
2293
|
+
leftIcon: /* @__PURE__ */ q(m, { name: "kebab-menu-vertical" })
|
|
2294
2294
|
}),
|
|
2295
2295
|
menuWidth: "120px",
|
|
2296
2296
|
position: "bottom",
|
|
2297
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
2304
|
+
leftIcon: /* @__PURE__ */ q(m, { name: "pencil-simple" }),
|
|
2305
2305
|
children: "Edit"
|
|
2306
|
-
}), /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
2325
|
-
t.length >
|
|
2326
|
-
className:
|
|
2327
|
-
children: /* @__PURE__ */
|
|
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: () =>
|
|
2331
|
-
children: [/* @__PURE__ */
|
|
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__ */
|
|
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 =
|
|
2409
|
-
let i =
|
|
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] =
|
|
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 =
|
|
2425
|
-
|
|
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 =
|
|
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] =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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:
|
|
2492
|
-
getFilteredRowModel:
|
|
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 =
|
|
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,
|
|
2503
|
-
|
|
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
|
|
2507
|
-
return
|
|
2506
|
+
let ue = (e, t) => t?.includes(e) ? Q.badge : "";
|
|
2507
|
+
return U(() => {
|
|
2508
2508
|
r?.isEnableColumnFilter || O.resetColumnFilters();
|
|
2509
|
-
}, [O, r?.isEnableColumnFilter]),
|
|
2509
|
+
}, [O, r?.isEnableColumnFilter]), U(() => {
|
|
2510
2510
|
b(Object.keys(oe[0] || {}));
|
|
2511
|
-
}, [oe[0]]), /* @__PURE__ */
|
|
2511
|
+
}, [oe[0]]), /* @__PURE__ */ q("div", {
|
|
2512
2512
|
className: `${Q.container} ${i}`,
|
|
2513
|
-
children: /* @__PURE__ */
|
|
2513
|
+
children: /* @__PURE__ */ q("div", {
|
|
2514
2514
|
className: Q.previewTable,
|
|
2515
|
-
children: /* @__PURE__ */
|
|
2515
|
+
children: /* @__PURE__ */ J("div", {
|
|
2516
2516
|
className: `${Q.tableData} ${Q.noBorder}`,
|
|
2517
2517
|
children: [
|
|
2518
|
-
t && !e?.length ? /* @__PURE__ */
|
|
2519
|
-
!!w?.length && /* @__PURE__ */
|
|
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__ */
|
|
2522
|
+
children: /* @__PURE__ */ q("table", {
|
|
2523
2523
|
className: Q.table,
|
|
2524
|
-
children: /* @__PURE__ */
|
|
2525
|
-
M > 0 ? /* @__PURE__ */
|
|
2526
|
-
colSpan:
|
|
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__ */
|
|
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
|
-
|
|
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) ? "-" :
|
|
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__ */
|
|
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(),
|
|
2564
|
+
p?.click && o && (e.preventDefault(), $n(s, c));
|
|
2565
2565
|
},
|
|
2566
2566
|
onContextMenu: (t) => {
|
|
2567
|
-
p?.contextmenu && o ? (t.preventDefault(),
|
|
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__ */
|
|
2574
|
+
!!r && /* @__PURE__ */ q("div", {
|
|
2575
2575
|
style: {
|
|
2576
2576
|
...te,
|
|
2577
2577
|
...v
|
|
2578
2578
|
},
|
|
2579
|
-
children: a() === "" ? /* @__PURE__ */
|
|
2579
|
+
children: a() === "" ? /* @__PURE__ */ q(dr, {}) : /* @__PURE__ */ J("span", {
|
|
2580
2580
|
"data-testid": "cell-content",
|
|
2581
|
-
className: `${i ? Q.wrapText : Q.truncateText} ${
|
|
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__ */
|
|
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:
|
|
2602
|
+
children: Jn(e.column.columnDef.cell, e.getContext())
|
|
2603
2603
|
}),
|
|
2604
|
-
e.column.getCanResize() ? /* @__PURE__ */
|
|
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
|
-
|
|
2638
|
-
colSpan:
|
|
2637
|
+
ce > 0 ? /* @__PURE__ */ q("tr", { children: /* @__PURE__ */ q("td", {
|
|
2638
|
+
colSpan: le,
|
|
2639
2639
|
style: {
|
|
2640
|
-
height: `${
|
|
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__ */
|
|
2648
|
+
!e?.length && !t && !n.length && /* @__PURE__ */ J("div", {
|
|
2649
2649
|
className: Q.noData,
|
|
2650
2650
|
children: [
|
|
2651
|
-
/* @__PURE__ */
|
|
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__ */
|
|
2657
|
+
/* @__PURE__ */ q(T, {
|
|
2658
2658
|
variant: "heading-3",
|
|
2659
2659
|
children: "No data tables queried"
|
|
2660
2660
|
}),
|
|
2661
|
-
/* @__PURE__ */
|
|
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__ */
|
|
2667
|
+
n && /* @__PURE__ */ q("div", {
|
|
2668
2668
|
className: Q.error,
|
|
2669
|
-
children: /* @__PURE__ */
|
|
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 = (
|
|
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 = (
|
|
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:
|
|
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 =
|
|
3035
|
-
this.echarts.dispose(this.ele),
|
|
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 =
|
|
3040
|
+
let t = nr(this.ele);
|
|
3041
3041
|
try {
|
|
3042
3042
|
super.componentDidUpdate(e);
|
|
3043
3043
|
} finally {
|
|
3044
|
-
let e = new Set(
|
|
3045
|
-
|
|
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 =
|
|
3050
|
+
let e = nr(this.ele);
|
|
3051
3051
|
try {
|
|
3052
3052
|
super.componentWillUnmount();
|
|
3053
3053
|
} finally {
|
|
3054
|
-
|
|
3054
|
+
rr(e);
|
|
3055
3055
|
}
|
|
3056
3056
|
}
|
|
3057
|
-
}, ls =
|
|
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__ */
|
|
3060
|
-
children: /* @__PURE__ */
|
|
3059
|
+
fallback: /* @__PURE__ */ q(tr, {}),
|
|
3060
|
+
children: /* @__PURE__ */ q(ls, {
|
|
3061
3061
|
...e,
|
|
3062
3062
|
ref: t
|
|
3063
3063
|
})
|
|
3064
3064
|
})), $ = {
|
|
3065
|
-
container: "
|
|
3066
|
-
borderLessContainer: "
|
|
3067
|
-
label: "
|
|
3068
|
-
sync: "
|
|
3069
|
-
chartClickAction: "
|
|
3070
|
-
comparisonDiv: "
|
|
3071
|
-
comparisonValue: "
|
|
3072
|
-
positiveComparisonText: "
|
|
3073
|
-
negativeComparisonText: "
|
|
3074
|
-
comparisonPeriod: "
|
|
3075
|
-
valueContainer: "
|
|
3076
|
-
leftAlign: "
|
|
3077
|
-
rightAlign: "
|
|
3078
|
-
singleValue: "
|
|
3079
|
-
subHeader: "
|
|
3080
|
-
error: "
|
|
3081
|
-
errorpara: "
|
|
3082
|
-
buttonText: "
|
|
3083
|
-
chartDiv: "
|
|
3084
|
-
chartUnavailable: "
|
|
3085
|
-
noChart: "
|
|
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__ */
|
|
3088
|
+
return /* @__PURE__ */ J("div", {
|
|
3089
3089
|
className: $.chartUnavailable,
|
|
3090
|
-
children: [/* @__PURE__ */
|
|
3090
|
+
children: [/* @__PURE__ */ q("img", {
|
|
3091
3091
|
src: r,
|
|
3092
3092
|
alt: "chart-not-available",
|
|
3093
3093
|
className: $.noChart
|
|
3094
|
-
}), /* @__PURE__ */
|
|
3094
|
+
}), /* @__PURE__ */ J("div", {
|
|
3095
3095
|
className: "dbn:flex dbn:flex-col dbn:gap-1 dbn:items-center",
|
|
3096
|
-
children: [/* @__PURE__ */
|
|
3096
|
+
children: [/* @__PURE__ */ q(T, {
|
|
3097
3097
|
variant: "sec-heading-4",
|
|
3098
3098
|
color: "primary",
|
|
3099
3099
|
children: t
|
|
3100
|
-
}), /* @__PURE__ */
|
|
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 =
|
|
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__ */
|
|
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__ */
|
|
3120
|
+
}), vs = (e) => /* @__PURE__ */ q(_s, {
|
|
3121
3121
|
surface: "table",
|
|
3122
|
-
children: /* @__PURE__ */
|
|
3123
|
-
}), ys = (e) => /* @__PURE__ */
|
|
3122
|
+
children: /* @__PURE__ */ q(fs, { ...e })
|
|
3123
|
+
}), ys = (e) => /* @__PURE__ */ q(_s, {
|
|
3124
3124
|
surface: "stack table",
|
|
3125
|
-
children: /* @__PURE__ */
|
|
3126
|
-
}), bs = (e) => /* @__PURE__ */
|
|
3125
|
+
children: /* @__PURE__ */ q(ps, { ...e })
|
|
3126
|
+
}), bs = (e) => /* @__PURE__ */ q(_s, {
|
|
3127
3127
|
surface: "pivot table",
|
|
3128
|
-
children: /* @__PURE__ */
|
|
3129
|
-
}), xs = (e) => /* @__PURE__ */
|
|
3128
|
+
children: /* @__PURE__ */ q(ms, { ...e })
|
|
3129
|
+
}), xs = (e) => /* @__PURE__ */ q(_s, {
|
|
3130
3130
|
surface: "pivot table",
|
|
3131
|
-
children: /* @__PURE__ */
|
|
3132
|
-
}), Ss = (e) => /* @__PURE__ */
|
|
3131
|
+
children: /* @__PURE__ */ q(hs, { ...e })
|
|
3132
|
+
}), Ss = (e) => /* @__PURE__ */ q(_s, {
|
|
3133
3133
|
surface: "pivot table",
|
|
3134
|
-
children: /* @__PURE__ */
|
|
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 =
|
|
3181
|
-
let [ee, x] =
|
|
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 =
|
|
3206
|
+
]), ie = W(() => {
|
|
3207
3207
|
if (!e) return "empty";
|
|
3208
|
-
let t =
|
|
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
|
-
|
|
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
|
-
}, []),
|
|
3216
|
+
}, []), U(() => {
|
|
3217
3217
|
(e || t) && a?.();
|
|
3218
|
-
}, [e, t]),
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
3265
|
-
O.current = { maxFraction:
|
|
3266
|
-
let
|
|
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
|
-
}, [
|
|
3279
|
-
|
|
3280
|
-
let e = S.current,
|
|
3281
|
-
if (!e || !
|
|
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
|
|
3283
|
+
let n = () => {
|
|
3284
3284
|
if (e.clientWidth <= 0 || e.clientHeight <= 0) return;
|
|
3285
|
-
let { memo:
|
|
3286
|
-
|
|
3285
|
+
let { memo: n } = ws(t, e, 30, D.current, {
|
|
3286
|
+
...O.current,
|
|
3287
|
+
capPx: k
|
|
3288
|
+
});
|
|
3289
|
+
D.current = n;
|
|
3287
3290
|
};
|
|
3288
|
-
|
|
3289
|
-
let
|
|
3290
|
-
return
|
|
3291
|
-
|
|
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
|
-
|
|
3299
|
-
|
|
3301
|
+
A,
|
|
3302
|
+
le.value
|
|
3300
3303
|
]);
|
|
3301
|
-
let { alignmentClass:
|
|
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__ */
|
|
3311
|
+
return /* @__PURE__ */ J("div", {
|
|
3309
3312
|
className: `${i} ${r ? $.borderLessContainer : $.container}`,
|
|
3310
3313
|
style: { background: t?.metricCardColor || "" },
|
|
3311
3314
|
children: [
|
|
3312
|
-
/* @__PURE__ */
|
|
3315
|
+
/* @__PURE__ */ J("div", {
|
|
3313
3316
|
ref: S,
|
|
3314
|
-
className: `${$.valueContainer} ${
|
|
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:
|
|
3321
|
+
height: le.value,
|
|
3319
3322
|
minHeight: 0
|
|
3320
3323
|
},
|
|
3321
3324
|
"data-testid": `valueContainer-${ie}`,
|
|
3322
|
-
children: [/* @__PURE__ */
|
|
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
|
-
}),
|
|
3339
|
-
className: `dbn:w-full dbn:flex dbn:flex-col ${
|
|
3340
|
-
children: /* @__PURE__ */
|
|
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__ */
|
|
3348
|
+
children: /* @__PURE__ */ q("div", {
|
|
3346
3349
|
style: ne,
|
|
3347
3350
|
onClick: () => {
|
|
3348
|
-
n &&
|
|
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
|
-
|
|
3361
|
+
M && /* @__PURE__ */ J("div", {
|
|
3359
3362
|
className: $.comparisonDiv,
|
|
3360
3363
|
style: {
|
|
3361
3364
|
background: t?.metricCardColor || "",
|
|
3362
|
-
height:
|
|
3365
|
+
height: le.comparison,
|
|
3363
3366
|
flexShrink: 0
|
|
3364
3367
|
},
|
|
3365
|
-
children: [t?.comparisonTimePeriod && /* @__PURE__ */
|
|
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__ */
|
|
3371
|
+
}), /* @__PURE__ */ q("div", {
|
|
3369
3372
|
style: E,
|
|
3370
3373
|
className: $.comparisonValue,
|
|
3371
|
-
children: /* @__PURE__ */
|
|
3374
|
+
children: /* @__PURE__ */ J("span", {
|
|
3372
3375
|
style: E,
|
|
3373
|
-
className:
|
|
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":
|
|
3378
|
+
"data-comparison-reading": j,
|
|
3376
3379
|
children: [
|
|
3377
|
-
|
|
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
|
-
|
|
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
|
-
|
|
3399
|
+
ce && /* @__PURE__ */ q("div", {
|
|
3397
3400
|
ref: w,
|
|
3398
3401
|
style: {
|
|
3399
3402
|
width: "100%",
|
|
3400
|
-
height:
|
|
3403
|
+
height: le.trend,
|
|
3401
3404
|
minHeight: 0
|
|
3402
3405
|
},
|
|
3403
|
-
children: /* @__PURE__ */
|
|
3406
|
+
children: /* @__PURE__ */ q(us, {
|
|
3404
3407
|
ref: T,
|
|
3405
3408
|
style: {
|
|
3406
3409
|
width: "100%",
|
|
3407
3410
|
height: "100%"
|
|
3408
3411
|
},
|
|
3409
|
-
option:
|
|
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__ */
|
|
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 =
|
|
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) =>
|
|
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 =
|
|
3567
|
-
let l =
|
|
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 =
|
|
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__ */
|
|
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 =
|
|
3589
|
-
let
|
|
3590
|
-
|
|
3591
|
-
}, []), [
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
}, [
|
|
3595
|
-
let
|
|
3596
|
-
mapping: A(
|
|
3597
|
-
chartOptions:
|
|
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:
|
|
3602
|
+
enabled: ge()
|
|
3600
3603
|
}) : null, [
|
|
3601
|
-
|
|
3602
|
-
|
|
3604
|
+
Fe,
|
|
3605
|
+
F,
|
|
3603
3606
|
t
|
|
3604
|
-
]),
|
|
3605
|
-
if (!
|
|
3606
|
-
let e = re(
|
|
3607
|
-
...se(
|
|
3608
|
-
tooltipSettings: ne(
|
|
3609
|
-
categoryField:
|
|
3610
|
-
chartZoom:
|
|
3611
|
-
percentageSize:
|
|
3612
|
-
repulsion:
|
|
3613
|
-
isUseAsDifference:
|
|
3614
|
-
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(
|
|
3619
|
+
return k(e, oe(L.data, Le));
|
|
3617
3620
|
}, [
|
|
3618
|
-
|
|
3621
|
+
L,
|
|
3619
3622
|
M,
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3623
|
-
]),
|
|
3624
|
-
if (
|
|
3623
|
+
F,
|
|
3624
|
+
Ee?.tooltip,
|
|
3625
|
+
Le
|
|
3626
|
+
]), ze = L ? _() : !1, Be = W(() => {
|
|
3627
|
+
if (Fe && L) return O(F);
|
|
3625
3628
|
}, [
|
|
3626
|
-
|
|
3627
|
-
|
|
3628
|
-
|
|
3629
|
-
]),
|
|
3630
|
-
|
|
3631
|
-
|
|
3632
|
-
|
|
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
|
-
]), [
|
|
3636
|
-
|
|
3637
|
-
}, []),
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
}, [
|
|
3641
|
-
|
|
3642
|
-
}, [
|
|
3643
|
-
let
|
|
3644
|
-
if (
|
|
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()),
|
|
3647
|
-
isDashboard:
|
|
3648
|
-
chartOptions:
|
|
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:
|
|
3654
|
+
geoJsonData: He,
|
|
3652
3655
|
isPythonMode: S,
|
|
3653
3656
|
chartHeight: E,
|
|
3654
3657
|
chartAppearance: M,
|
|
3655
|
-
chartRef:
|
|
3656
|
-
chartGridWidth:
|
|
3657
|
-
chartWidth:
|
|
3658
|
-
metricCardColor:
|
|
3659
|
-
language:
|
|
3660
|
-
translationDictionary:
|
|
3661
|
-
drilldownCols:
|
|
3662
|
-
isEnableDrillDown:
|
|
3663
|
-
dateFilter:
|
|
3664
|
-
chartFontSettings:
|
|
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
|
-
|
|
3670
|
+
L,
|
|
3668
3671
|
t,
|
|
3669
|
-
nt,
|
|
3670
3672
|
rt,
|
|
3671
3673
|
it,
|
|
3672
|
-
|
|
3674
|
+
at,
|
|
3675
|
+
He,
|
|
3673
3676
|
g,
|
|
3674
3677
|
T,
|
|
3675
3678
|
te,
|
|
3676
3679
|
E,
|
|
3677
3680
|
M,
|
|
3678
|
-
|
|
3679
|
-
|
|
3680
|
-
|
|
3681
|
-
|
|
3681
|
+
Ke,
|
|
3682
|
+
Xe,
|
|
3683
|
+
Qe,
|
|
3684
|
+
ce,
|
|
3685
|
+
xe,
|
|
3682
3686
|
be,
|
|
3683
|
-
ye,
|
|
3684
|
-
Se,
|
|
3685
3687
|
Ce,
|
|
3686
3688
|
we,
|
|
3687
|
-
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
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:
|
|
3695
|
-
advancedOptions:
|
|
3696
|
-
chartOptions:
|
|
3697
|
+
options: z,
|
|
3698
|
+
advancedOptions: ft,
|
|
3699
|
+
chartOptions: F
|
|
3697
3700
|
});
|
|
3698
|
-
|
|
3701
|
+
pt.current = {
|
|
3699
3702
|
events: r,
|
|
3700
|
-
options:
|
|
3701
|
-
advancedOptions:
|
|
3702
|
-
chartOptions:
|
|
3703
|
+
options: z,
|
|
3704
|
+
advancedOptions: ft,
|
|
3705
|
+
chartOptions: F
|
|
3703
3706
|
};
|
|
3704
|
-
let
|
|
3707
|
+
let mt = r ? Object.keys(r).sort().join("|") : "", ht = G({
|
|
3705
3708
|
shape: "",
|
|
3706
3709
|
windows: {}
|
|
3707
|
-
}),
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3711
|
-
|
|
3712
|
-
]),
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
]),
|
|
3717
|
-
let
|
|
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
|
-
(
|
|
3722
|
+
(mt ? mt.split("|") : []).forEach((t) => {
|
|
3720
3723
|
e[t] = (...e) => {
|
|
3721
|
-
let n =
|
|
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 && (
|
|
3731
|
+
Object.keys(r).length && (ht.current.windows = r), t?.(...e);
|
|
3729
3732
|
}, e;
|
|
3730
|
-
}, [
|
|
3731
|
-
...
|
|
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:
|
|
3738
|
+
optionsObj: pt.current.options,
|
|
3736
3739
|
params: e,
|
|
3737
|
-
chartIds:
|
|
3740
|
+
chartIds: vt.current
|
|
3738
3741
|
});
|
|
3739
3742
|
}
|
|
3740
|
-
}), [
|
|
3741
|
-
...
|
|
3743
|
+
}), [_t]), bt = W(() => ({
|
|
3744
|
+
..._t,
|
|
3742
3745
|
legendselectchanged: (e, t) => {
|
|
3743
3746
|
Ws({
|
|
3744
3747
|
echartsInstance: t,
|
|
3745
|
-
optionsObj:
|
|
3748
|
+
optionsObj: pt.current.advancedOptions,
|
|
3746
3749
|
params: e,
|
|
3747
|
-
isGantt:
|
|
3748
|
-
chartIds:
|
|
3750
|
+
isGantt: pt.current.chartOptions?.chartType === h.gantt,
|
|
3751
|
+
chartIds: vt.current
|
|
3749
3752
|
});
|
|
3750
3753
|
}
|
|
3751
|
-
}), [
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
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
|
-
|
|
3759
|
+
U(() => () => {
|
|
3757
3760
|
let e = window;
|
|
3758
|
-
e?.chartSelections &&
|
|
3761
|
+
e?.chartSelections && vt.current.forEach((t) => {
|
|
3759
3762
|
delete e.chartSelections[t];
|
|
3760
|
-
}),
|
|
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 [
|
|
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(
|
|
3774
|
-
|
|
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
|
-
|
|
3777
|
-
|
|
3779
|
+
F?.xAxis,
|
|
3780
|
+
F.chartType
|
|
3778
3781
|
]);
|
|
3779
|
-
|
|
3780
|
-
if (
|
|
3781
|
-
let e =
|
|
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 =
|
|
3787
|
+
let n = de({
|
|
3785
3788
|
cssWidth: t.width,
|
|
3786
3789
|
cssHeight: t.height,
|
|
3787
3790
|
devicePixelRatio: window.devicePixelRatio,
|
|
3788
|
-
liveCharts:
|
|
3789
|
-
purpose:
|
|
3791
|
+
liveCharts: fe(),
|
|
3792
|
+
purpose: ke ? "export" : "live"
|
|
3790
3793
|
});
|
|
3791
|
-
return
|
|
3794
|
+
return Me((e) => e === n ? e : n), !0;
|
|
3792
3795
|
}, n = t();
|
|
3793
3796
|
if (typeof ResizeObserver != "function") {
|
|
3794
|
-
n ||
|
|
3797
|
+
n || Me(de({
|
|
3795
3798
|
cssWidth: 0,
|
|
3796
3799
|
cssHeight: 0,
|
|
3797
3800
|
devicePixelRatio: window.devicePixelRatio,
|
|
3798
|
-
liveCharts:
|
|
3799
|
-
purpose:
|
|
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
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
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 =
|
|
3814
|
-
t && !e ? e =
|
|
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(
|
|
3819
|
+
return n.observe(I, {
|
|
3817
3820
|
childList: !0,
|
|
3818
3821
|
subtree: !0
|
|
3819
3822
|
}), t(), () => {
|
|
3820
3823
|
n.disconnect(), e?.();
|
|
3821
3824
|
};
|
|
3822
|
-
}, [
|
|
3823
|
-
let
|
|
3825
|
+
}, [L, I]);
|
|
3826
|
+
let Ft = W(() => je === null ? null : {
|
|
3824
3827
|
renderer: l?.opts?.renderer || "canvas",
|
|
3825
|
-
devicePixelRatio:
|
|
3826
|
-
}, [l?.opts?.renderer,
|
|
3827
|
-
|
|
3828
|
-
if (!
|
|
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(
|
|
3834
|
-
|
|
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 = () =>
|
|
3839
|
-
e ? (t ? n("usa") : import("./usa-s6QiUwFP.mjs").then((e) => e.default)).then(
|
|
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
|
-
}, [
|
|
3842
|
-
let
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
isDashboard:
|
|
3846
|
-
chartOptions:
|
|
3847
|
-
data:
|
|
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:
|
|
3851
|
-
translationDictionary:
|
|
3852
|
-
dateFilter:
|
|
3853
|
-
chartRef: l?.ref ??
|
|
3854
|
-
chartGridWidth:
|
|
3855
|
-
chartWidth:
|
|
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
|
-
|
|
3859
|
-
|
|
3861
|
+
L,
|
|
3862
|
+
F,
|
|
3860
3863
|
i,
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
ye,
|
|
3864
|
+
Lt,
|
|
3865
|
+
nt,
|
|
3864
3866
|
be,
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
+
xe,
|
|
3868
|
+
Te,
|
|
3869
|
+
N
|
|
3867
3870
|
]);
|
|
3868
|
-
let
|
|
3871
|
+
let Rt = G({
|
|
3869
3872
|
upperLimit: 10,
|
|
3870
3873
|
lowerLimit: 0,
|
|
3871
3874
|
key: ""
|
|
3872
3875
|
});
|
|
3873
|
-
|
|
3874
|
-
if (!
|
|
3875
|
-
let e = `${
|
|
3876
|
-
|
|
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 =
|
|
3884
|
+
let n = Rt.current, r = setInterval(() => {
|
|
3882
3885
|
if (n.upperLimit >= t.length) {
|
|
3883
|
-
|
|
3884
|
-
...e ??
|
|
3886
|
+
st((e) => ({
|
|
3887
|
+
...e ?? pt.current.options,
|
|
3885
3888
|
animation: !1
|
|
3886
3889
|
})), clearInterval(r);
|
|
3887
3890
|
return;
|
|
3888
3891
|
}
|
|
3889
|
-
let e =
|
|
3890
|
-
isDashboard:
|
|
3891
|
-
chartOptions:
|
|
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:
|
|
3896
|
-
language:
|
|
3897
|
-
dateFilter:
|
|
3898
|
-
chartRef: l?.ref ??
|
|
3899
|
-
chartGridWidth:
|
|
3900
|
-
chartWidth:
|
|
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
|
-
|
|
3905
|
+
st(a), n.upperLimit += 10, n.lowerLimit += 5;
|
|
3903
3906
|
}, 1e3);
|
|
3904
3907
|
return () => clearInterval(r);
|
|
3905
3908
|
}
|
|
3906
3909
|
}, [
|
|
3907
|
-
|
|
3908
|
-
|
|
3910
|
+
L,
|
|
3911
|
+
F,
|
|
3909
3912
|
t,
|
|
3910
|
-
|
|
3913
|
+
Lt,
|
|
3911
3914
|
i,
|
|
3912
|
-
|
|
3915
|
+
nt,
|
|
3916
|
+
xe,
|
|
3913
3917
|
be,
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
P
|
|
3918
|
+
Te,
|
|
3919
|
+
N
|
|
3917
3920
|
]);
|
|
3918
|
-
let
|
|
3919
|
-
|
|
3920
|
-
if (
|
|
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 ??
|
|
3923
|
-
if (e && !s.includes(
|
|
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 &&
|
|
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
|
-
!
|
|
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
|
-
|
|
3936
|
-
|
|
3937
|
-
]),
|
|
3938
|
-
if (
|
|
3938
|
+
F,
|
|
3939
|
+
L
|
|
3940
|
+
]), U(() => {
|
|
3941
|
+
if (L || !z) return;
|
|
3939
3942
|
let e = setTimeout(() => {
|
|
3940
|
-
let e = (l?.ref ??
|
|
3941
|
-
if (e && !s.includes(
|
|
3942
|
-
let n = e?.getWidth() || 0, r = e?.getHeight() || 0, i =
|
|
3943
|
-
if (c.includes(
|
|
3944
|
-
if (
|
|
3945
|
-
let e = ((
|
|
3946
|
-
w.includes(
|
|
3947
|
-
let i =
|
|
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(
|
|
3950
|
-
} : e) :
|
|
3952
|
+
left: w.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
|
|
3953
|
+
} : e) : z?.dataZoom;
|
|
3951
3954
|
t = {
|
|
3952
|
-
...
|
|
3955
|
+
...z,
|
|
3953
3956
|
grid: {
|
|
3954
|
-
...
|
|
3955
|
-
left: `${(
|
|
3956
|
-
right: `${(
|
|
3957
|
+
...z?.grid,
|
|
3958
|
+
left: `${(F?.margins?.marginLeft || 0) + e}%`,
|
|
3959
|
+
right: `${(F?.margins?.marginRight || 0) + r}%`
|
|
3957
3960
|
},
|
|
3958
|
-
...
|
|
3961
|
+
...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: i } : {}
|
|
3959
3962
|
};
|
|
3960
3963
|
} else {
|
|
3961
|
-
let e =
|
|
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(
|
|
3964
|
-
} : e) :
|
|
3966
|
+
left: w.includes(F?.legendSettings?.fixedPosition || "") ? Ct : 5
|
|
3967
|
+
} : e) : z?.dataZoom;
|
|
3965
3968
|
t = {
|
|
3966
|
-
...
|
|
3969
|
+
...z,
|
|
3967
3970
|
grid: {
|
|
3968
|
-
...
|
|
3969
|
-
...w.includes(
|
|
3970
|
-
left: `${(
|
|
3971
|
-
right: `${
|
|
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
|
-
...
|
|
3974
|
-
left: `${
|
|
3975
|
-
right: `${(
|
|
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
|
-
...
|
|
3979
|
-
...s ? { series:
|
|
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:
|
|
3987
|
+
color: z.colors[t]
|
|
3985
3988
|
}
|
|
3986
3989
|
})) } : {}
|
|
3987
3990
|
};
|
|
3988
3991
|
}
|
|
3989
|
-
} else if ((l?.ref ??
|
|
3990
|
-
let e =
|
|
3991
|
-
u.includes(
|
|
3992
|
-
let s =
|
|
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(
|
|
3995
|
-
} : e) :
|
|
3997
|
+
bottom: u.includes(F?.legendSettings?.fixedPosition || "") ? Tt : 5
|
|
3998
|
+
} : e) : z?.dataZoom;
|
|
3996
3999
|
t = {
|
|
3997
|
-
...
|
|
4000
|
+
...z,
|
|
3998
4001
|
grid: {
|
|
3999
|
-
...
|
|
4000
|
-
top: `${(
|
|
4001
|
-
bottom: `${(
|
|
4002
|
-
...w.includes(
|
|
4003
|
-
left: `${(
|
|
4004
|
-
right: `${
|
|
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
|
-
...
|
|
4007
|
-
left: `${
|
|
4008
|
-
right: `${(
|
|
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
|
-
...
|
|
4014
|
+
...F?.customSettings?.chartZoom?.isZoomEnabled ? { dataZoom: s } : {}
|
|
4012
4015
|
};
|
|
4013
4016
|
} else {
|
|
4014
|
-
let e =
|
|
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:
|
|
4019
|
+
bottom: Tt
|
|
4017
4020
|
} : e) : null;
|
|
4018
|
-
if (
|
|
4019
|
-
let a = ((
|
|
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
|
-
...
|
|
4022
|
-
...
|
|
4024
|
+
...z,
|
|
4025
|
+
...F?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
|
|
4023
4026
|
grid: {
|
|
4024
|
-
...
|
|
4025
|
-
left: `${(
|
|
4026
|
-
right: `${(
|
|
4027
|
+
...z?.grid,
|
|
4028
|
+
left: `${(F?.margins?.marginLeft || 0) + a}%`,
|
|
4029
|
+
right: `${(F?.margins?.marginRight || 0) + o}%`,
|
|
4027
4030
|
...f ? {
|
|
4028
|
-
top: `${(
|
|
4029
|
-
bottom: `${(
|
|
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 =
|
|
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
|
-
...
|
|
4037
|
-
...
|
|
4039
|
+
...z,
|
|
4040
|
+
...F?.customSettings?.chartZoom?.isZoomEnabled && e ? { dataZoom: i } : {},
|
|
4038
4041
|
grid: {
|
|
4039
|
-
...
|
|
4040
|
-
left: `${(
|
|
4041
|
-
right: `${
|
|
4042
|
+
...z?.grid,
|
|
4043
|
+
left: `${(F?.margins?.marginLeft || 0) + c}%`,
|
|
4044
|
+
right: `${F?.margins?.marginRight || 0}%`,
|
|
4042
4045
|
...f ? {
|
|
4043
|
-
top: `${(
|
|
4044
|
-
bottom: `${(
|
|
4046
|
+
top: `${(F?.margins?.marginTop || 0) + g}%`,
|
|
4047
|
+
bottom: `${(F?.margins?.marginBottom || 0) + _ + (p ? r : 0)}%`
|
|
4045
4048
|
} : {}
|
|
4046
4049
|
},
|
|
4047
|
-
...s ? { series:
|
|
4050
|
+
...s ? { series: z?.series?.map((e, t) => ({
|
|
4048
4051
|
...e,
|
|
4049
4052
|
barWidth: o,
|
|
4050
4053
|
itemStyle: {
|
|
4051
4054
|
...e.itemStyle,
|
|
4052
|
-
color:
|
|
4055
|
+
color: z.colors[t]
|
|
4053
4056
|
}
|
|
4054
4057
|
})) } : {}
|
|
4055
4058
|
};
|
|
4056
4059
|
}
|
|
4057
4060
|
}
|
|
4058
|
-
} else t =
|
|
4059
|
-
e && s.includes(
|
|
4060
|
-
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:
|
|
4068
|
+
legendSettings: F?.legendSettings,
|
|
4066
4069
|
legendAppearance: M?.chartLegend,
|
|
4067
4070
|
outsideLabels: !0
|
|
4068
|
-
}) ?? t),
|
|
4071
|
+
}) ?? t), dt(t);
|
|
4069
4072
|
}, 100);
|
|
4070
4073
|
return () => clearTimeout(e);
|
|
4071
4074
|
}, [
|
|
4072
|
-
|
|
4075
|
+
L,
|
|
4073
4076
|
l?.ref,
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4077
|
+
z,
|
|
4078
|
+
F,
|
|
4079
|
+
Ct,
|
|
4080
|
+
Tt,
|
|
4081
|
+
Dt,
|
|
4079
4082
|
M?.chartLegend
|
|
4080
|
-
]),
|
|
4081
|
-
if (
|
|
4082
|
-
let e =
|
|
4083
|
-
if (!e || typeof IntersectionObserver != "function") return
|
|
4084
|
-
|
|
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
|
-
|
|
4089
|
+
Vt.current &&= (clearInterval(Vt.current), void 0);
|
|
4087
4090
|
};
|
|
4088
4091
|
let t = () => {
|
|
4089
|
-
|
|
4090
|
-
|
|
4092
|
+
Vt.current ||= setInterval(() => {
|
|
4093
|
+
lt(Bt.current ? z.geoOption : z.barOption), Bt.current = !Bt.current;
|
|
4091
4094
|
}, 2e3);
|
|
4092
4095
|
}, n = () => {
|
|
4093
|
-
|
|
4096
|
+
Vt.current &&= (clearInterval(Vt.current), void 0);
|
|
4094
4097
|
};
|
|
4095
|
-
|
|
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
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
+
F.chartType,
|
|
4107
|
+
L,
|
|
4108
|
+
z
|
|
4106
4109
|
]);
|
|
4107
|
-
let { ref:
|
|
4108
|
-
|
|
4109
|
-
if (!
|
|
4110
|
-
let e = [], n = new Set(
|
|
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[
|
|
4113
|
-
}),
|
|
4115
|
+
n.has(t[F.xAxis || ""]) || e.push(t);
|
|
4116
|
+
}), At(e);
|
|
4114
4117
|
}
|
|
4115
|
-
}, [
|
|
4116
|
-
let
|
|
4117
|
-
name:
|
|
4118
|
-
columnKey:
|
|
4118
|
+
}, [Pt, L]);
|
|
4119
|
+
let Wt = W(() => [{
|
|
4120
|
+
name: F?.xAxis,
|
|
4121
|
+
columnKey: F?.xAxis,
|
|
4119
4122
|
colSpan: 1,
|
|
4120
|
-
columnCell: (e) => e[
|
|
4123
|
+
columnCell: (e) => e[F?.xAxis || ""]
|
|
4121
4124
|
}, {
|
|
4122
|
-
name:
|
|
4123
|
-
columnKey:
|
|
4125
|
+
name: F?.yAxisList?.[0],
|
|
4126
|
+
columnKey: F?.yAxisList?.[0],
|
|
4124
4127
|
colSpan: 1,
|
|
4125
|
-
columnCell: (e) => e[
|
|
4126
|
-
}], [
|
|
4127
|
-
|
|
4128
|
-
if (!
|
|
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(
|
|
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(
|
|
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
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
|
|
4147
|
-
]),
|
|
4148
|
-
let e = (l?.ref ??
|
|
4149
|
-
if (!e || !
|
|
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
|
-
|
|
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
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
+
R,
|
|
4169
|
+
F?.labelSettings?.wrapText,
|
|
4170
|
+
F?.chartType
|
|
4168
4171
|
]);
|
|
4169
|
-
let
|
|
4170
|
-
if (
|
|
4171
|
-
let e =
|
|
4172
|
-
|
|
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__ */
|
|
4184
|
+
children: /* @__PURE__ */ q(x, {
|
|
4182
4185
|
surface: "chart",
|
|
4183
|
-
fallback: /* @__PURE__ */
|
|
4186
|
+
fallback: /* @__PURE__ */ q("div", {
|
|
4184
4187
|
className: "dbn:w-full dbn:h-full",
|
|
4185
4188
|
"aria-hidden": !0
|
|
4186
4189
|
}),
|
|
4187
|
-
children: /* @__PURE__ */
|
|
4188
|
-
type:
|
|
4189
|
-
data:
|
|
4190
|
-
answerLineInput:
|
|
4191
|
-
minHeight:
|
|
4192
|
-
applyDensity:
|
|
4193
|
-
appearance:
|
|
4194
|
-
adminTheme:
|
|
4195
|
-
colorBy:
|
|
4196
|
-
valueFormatter:
|
|
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(
|
|
4202
|
+
onEvents: Is(L.type === "singleValue" ? Ps(r, l) : r, l?.ref),
|
|
4200
4203
|
className: d
|
|
4201
4204
|
})
|
|
4202
4205
|
})
|
|
4203
4206
|
});
|
|
4204
|
-
} else
|
|
4205
|
-
chartType:
|
|
4206
|
-
text:
|
|
4207
|
-
}) : !
|
|
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(
|
|
4215
|
-
return e &&
|
|
4216
|
-
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 && !
|
|
4219
|
-
...
|
|
4220
|
-
value:
|
|
4221
|
-
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:
|
|
4224
|
-
trendLineOptions:
|
|
4226
|
+
comparisonValue: z.comparisonValue,
|
|
4227
|
+
trendLineOptions: z.trendLineOptions,
|
|
4225
4228
|
events: r,
|
|
4226
|
-
originalValue:
|
|
4227
|
-
variables:
|
|
4228
|
-
language:
|
|
4229
|
-
translationDictionary:
|
|
4230
|
-
setHoverSubHeader:
|
|
4231
|
-
renderOpts:
|
|
4232
|
-
}) :
|
|
4233
|
-
...
|
|
4234
|
-
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
|
-
...
|
|
4240
|
-
...
|
|
4242
|
+
...z.tableSettings,
|
|
4243
|
+
...ke ? {
|
|
4241
4244
|
textWrap: {
|
|
4242
4245
|
isEnable: !0,
|
|
4243
|
-
columns:
|
|
4246
|
+
columns: F?.yAxisList
|
|
4244
4247
|
},
|
|
4245
4248
|
enableTableSearch: !1
|
|
4246
4249
|
} : {}
|
|
4247
4250
|
},
|
|
4248
4251
|
className: d,
|
|
4249
|
-
stackCols:
|
|
4250
|
-
colors:
|
|
4251
|
-
showLabels:
|
|
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:
|
|
4257
|
-
barWidth:
|
|
4258
|
-
labelPosition:
|
|
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(
|
|
4265
|
+
].includes(F?.labelSettings?.position) ? F?.labelSettings?.position : "bottom"
|
|
4263
4266
|
},
|
|
4264
|
-
renderOpts:
|
|
4265
|
-
}) :
|
|
4266
|
-
chartFieldFormats:
|
|
4267
|
-
yAxisList:
|
|
4268
|
-
...
|
|
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:
|
|
4275
|
+
data: z.data,
|
|
4273
4276
|
error: "",
|
|
4274
4277
|
isLoading: !1,
|
|
4275
4278
|
tableSettings: {
|
|
4276
|
-
...
|
|
4277
|
-
...
|
|
4279
|
+
...z.tableSettings,
|
|
4280
|
+
...ke ? {
|
|
4278
4281
|
textWrap: {
|
|
4279
4282
|
isEnable: !0,
|
|
4280
|
-
columns:
|
|
4283
|
+
columns: F?.yAxisList,
|
|
4281
4284
|
headerWrap: !0,
|
|
4282
4285
|
enableLineBreaks: !0
|
|
4283
4286
|
},
|
|
4284
4287
|
enableTableSearch: !1
|
|
4285
4288
|
} : {}
|
|
4286
4289
|
},
|
|
4287
|
-
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:
|
|
4298
|
-
isShowFullScreenEnabled: p && !
|
|
4300
|
+
isMetricCard: ue,
|
|
4301
|
+
isShowFullScreenEnabled: p && !we,
|
|
4299
4302
|
metricId: m,
|
|
4300
4303
|
onMaximize: v,
|
|
4301
4304
|
dropdownZindex: l?.dropdownZindex,
|
|
4302
|
-
externalGlobalFilter:
|
|
4303
|
-
setExternalGlobalFilter:
|
|
4304
|
-
language:
|
|
4305
|
-
translationDictionary:
|
|
4305
|
+
externalGlobalFilter: P,
|
|
4306
|
+
setExternalGlobalFilter: he,
|
|
4307
|
+
language: be,
|
|
4308
|
+
translationDictionary: xe,
|
|
4306
4309
|
isDisableChartActions: !l?.chartClickConfig?.isEnable,
|
|
4307
|
-
onDownloadData:
|
|
4308
|
-
isDownloading:
|
|
4309
|
-
}) :
|
|
4310
|
-
...
|
|
4310
|
+
onDownloadData: De,
|
|
4311
|
+
isDownloading: Oe
|
|
4312
|
+
}) : F.chartType === h.trendAnalyzer ? /* @__PURE__ */ q(Bo, {
|
|
4313
|
+
...Ut,
|
|
4311
4314
|
events: r,
|
|
4312
|
-
data:
|
|
4315
|
+
data: z.data,
|
|
4313
4316
|
error: "",
|
|
4314
4317
|
isLoading: !1,
|
|
4315
4318
|
tableSettings: {
|
|
4316
|
-
...
|
|
4317
|
-
...
|
|
4319
|
+
...z.tableSettings,
|
|
4320
|
+
...ke ? {
|
|
4318
4321
|
textWrap: {
|
|
4319
4322
|
isEnable: !0,
|
|
4320
|
-
columns:
|
|
4323
|
+
columns: F?.yAxisList,
|
|
4321
4324
|
headerWrap: !0,
|
|
4322
4325
|
enableLineBreaks: !0
|
|
4323
4326
|
},
|
|
4324
4327
|
enableTableSearch: !1
|
|
4325
4328
|
} : {}
|
|
4326
4329
|
},
|
|
4327
|
-
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:
|
|
4338
|
-
isShowFullScreenEnabled: p && !
|
|
4340
|
+
isMetricCard: ue,
|
|
4341
|
+
isShowFullScreenEnabled: p && !we,
|
|
4339
4342
|
onMaximize: v,
|
|
4340
4343
|
dropdownZindex: l?.dropdownZindex,
|
|
4341
|
-
externalGlobalFilter:
|
|
4342
|
-
setExternalGlobalFilter:
|
|
4343
|
-
language:
|
|
4344
|
-
translationDictionary:
|
|
4344
|
+
externalGlobalFilter: P,
|
|
4345
|
+
setExternalGlobalFilter: he,
|
|
4346
|
+
language: be,
|
|
4347
|
+
translationDictionary: xe,
|
|
4345
4348
|
isDisableChartActions: !l?.chartClickConfig?.isEnable,
|
|
4346
|
-
onDownloadData:
|
|
4347
|
-
isDownloading:
|
|
4348
|
-
}) :
|
|
4349
|
-
...
|
|
4349
|
+
onDownloadData: De,
|
|
4350
|
+
isDownloading: Oe
|
|
4351
|
+
}) : F.chartType === h.pivot ? /* @__PURE__ */ q(bs, {
|
|
4352
|
+
...Ut,
|
|
4350
4353
|
data: t,
|
|
4351
|
-
pivotTableSettings:
|
|
4352
|
-
tableSettings:
|
|
4353
|
-
}) :
|
|
4354
|
-
columns:
|
|
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:
|
|
4357
|
-
values:
|
|
4359
|
+
rows: z?.pivotTableSettings2?.dimensions || [],
|
|
4360
|
+
values: z?.pivotTableSettings2?.measures || [],
|
|
4358
4361
|
onChartReady: l?.onChartReady,
|
|
4359
|
-
headerSettings:
|
|
4360
|
-
measures:
|
|
4361
|
-
isEnableStripedRows:
|
|
4362
|
-
dimensions:
|
|
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:
|
|
4367
|
-
numberFormatter:
|
|
4368
|
-
formatColumns:
|
|
4369
|
-
suffix:
|
|
4370
|
-
prefix:
|
|
4371
|
-
formatterOptions:
|
|
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:
|
|
4374
|
-
isEnableAllSort:
|
|
4375
|
-
tableSettings:
|
|
4376
|
-
} }) :
|
|
4377
|
-
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:
|
|
4382
|
+
rows: z?.pivotTableSettings3?.rows || [],
|
|
4380
4383
|
onChartReady: l?.onChartReady,
|
|
4381
|
-
headerSettings:
|
|
4382
|
-
measures:
|
|
4383
|
-
isEnableStripedRows:
|
|
4384
|
-
dimensions:
|
|
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:
|
|
4389
|
-
numberFormatter:
|
|
4390
|
-
formatColumns:
|
|
4391
|
-
suffix:
|
|
4392
|
-
prefix:
|
|
4393
|
-
formatterOptions:
|
|
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:
|
|
4397
|
-
aggregateType:
|
|
4398
|
-
showAllLevels:
|
|
4399
|
-
showNonPivotColumns:
|
|
4400
|
-
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:
|
|
4403
|
-
calculatedColumns:
|
|
4404
|
-
hiddenColumns:
|
|
4405
|
-
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(
|
|
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:
|
|
4421
|
+
option: St,
|
|
4419
4422
|
className: d,
|
|
4420
|
-
key:
|
|
4421
|
-
ref: l?.ref ??
|
|
4422
|
-
onEvents:
|
|
4423
|
-
notMerge: Vs(
|
|
4424
|
-
opts:
|
|
4425
|
-
}) :
|
|
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:
|
|
4432
|
-
...
|
|
4434
|
+
option: Nr({
|
|
4435
|
+
...ct || z?.geoOption,
|
|
4433
4436
|
animation: !0
|
|
4434
4437
|
}),
|
|
4435
4438
|
className: d,
|
|
4436
|
-
onEvents:
|
|
4439
|
+
onEvents: _t,
|
|
4437
4440
|
notMerge: !0,
|
|
4438
|
-
opts:
|
|
4441
|
+
opts: Ft
|
|
4439
4442
|
}) : [
|
|
4440
4443
|
h.gaugeV2,
|
|
4441
4444
|
h.linearGaugeV2,
|
|
4442
4445
|
h.progressBarV2,
|
|
4443
4446
|
h.funnelV2
|
|
4444
|
-
].includes(
|
|
4445
|
-
ref:
|
|
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
|
-
}) :
|
|
4448
|
-
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(
|
|
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: [
|
|
4456
|
+
children: [Pt && kt?.length ? /* @__PURE__ */ J(b, {
|
|
4454
4457
|
variant: "popover",
|
|
4455
|
-
onClick: () =>
|
|
4458
|
+
onClick: () => Mt(!jt),
|
|
4456
4459
|
className: $.buttonText,
|
|
4457
|
-
children: ["Go To Geo ",
|
|
4458
|
-
}) : null,
|
|
4459
|
-
data:
|
|
4460
|
-
headers:
|
|
4461
|
-
}) : /* @__PURE__ */
|
|
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:
|
|
4467
|
+
height: zt && (E || 0) >= 6 ? "100px" : zt && !E ? "40%" : "100%"
|
|
4465
4468
|
},
|
|
4466
4469
|
...Bs(l),
|
|
4467
|
-
option:
|
|
4468
|
-
...
|
|
4470
|
+
option: F.customSettings?.chartZoom?.isZoomEnabled ? {
|
|
4471
|
+
...xt,
|
|
4469
4472
|
animation: !0
|
|
4470
4473
|
} : {
|
|
4471
|
-
...
|
|
4474
|
+
...xt,
|
|
4472
4475
|
animation: !1
|
|
4473
4476
|
},
|
|
4474
4477
|
className: d,
|
|
4475
|
-
ref: l?.ref ??
|
|
4476
|
-
onEvents:
|
|
4478
|
+
ref: l?.ref ?? R,
|
|
4479
|
+
onEvents: _t,
|
|
4477
4480
|
notMerge: !0,
|
|
4478
|
-
opts:
|
|
4481
|
+
opts: Ft
|
|
4479
4482
|
})]
|
|
4480
|
-
}) : /* @__PURE__ */
|
|
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:
|
|
4486
|
+
children: ue ? /* @__PURE__ */ q(Ks, {
|
|
4484
4487
|
chartHeight: E,
|
|
4485
|
-
hasDecreasedHeight:
|
|
4488
|
+
hasDecreasedHeight: zt,
|
|
4486
4489
|
config: l,
|
|
4487
|
-
chartOptions:
|
|
4488
|
-
options:
|
|
4490
|
+
chartOptions: F,
|
|
4491
|
+
options: xt,
|
|
4489
4492
|
className: d,
|
|
4490
|
-
onEvents:
|
|
4491
|
-
chartRef: l?.ref ??
|
|
4492
|
-
renderOpts:
|
|
4493
|
-
}) : /* @__PURE__ */
|
|
4493
|
+
onEvents: bt,
|
|
4494
|
+
chartRef: l?.ref ?? R,
|
|
4495
|
+
renderOpts: Ft
|
|
4496
|
+
}) : /* @__PURE__ */ ar(us, {
|
|
4494
4497
|
style: {
|
|
4495
4498
|
width: "100%",
|
|
4496
|
-
height:
|
|
4499
|
+
height: zt && (E || 0) >= 6 ? "100px" : zt && !E ? "40%" : "100%"
|
|
4497
4500
|
},
|
|
4498
4501
|
...Bs(l),
|
|
4499
|
-
option:
|
|
4500
|
-
...
|
|
4502
|
+
option: F.customSettings?.chartZoom?.isZoomEnabled ? {
|
|
4503
|
+
...xt,
|
|
4501
4504
|
animation: !0
|
|
4502
4505
|
} : {
|
|
4503
|
-
...
|
|
4506
|
+
...xt,
|
|
4504
4507
|
animation: !1
|
|
4505
4508
|
},
|
|
4506
4509
|
className: d,
|
|
4507
|
-
key:
|
|
4508
|
-
onEvents:
|
|
4509
|
-
ref: l?.ref ??
|
|
4510
|
-
notMerge: Vs(
|
|
4511
|
-
opts:
|
|
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__ */
|
|
4516
|
-
ref:
|
|
4517
|
-
...
|
|
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:
|
|
4528
|
+
children: Gt
|
|
4526
4529
|
});
|
|
4527
4530
|
});
|
|
4528
4531
|
//#endregion
|
|
4529
|
-
export {
|
|
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 };
|