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