@feedmepos/mf-report 5.27.35 → 5.27.36
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/{App-4_GHdc0c.js → App-CHT3iF-7.js} +4 -4
- package/dist/{DateRangeSelect-Cvxqh6KE.js → DateRangeSelect-D2772bgT.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-FvTBswXI.js → Default.vue_vue_type_script_setup_true_lang-CArSG8Z_.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-PhthswCX.js → DynamicWidget.vue_vue_type_script_setup_true_lang-RABMoQ3F.js} +949 -879
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CoI3PFYF.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js} +3886 -3841
- package/dist/InsightView-KYbGpFKj.js +689 -0
- package/dist/{Integration-BmtzVBU8.js → Integration-CocbSCYz.js} +3 -3
- package/dist/{Integrations-FKTHYjkY.js → Integrations-DaKi0pnt.js} +2 -2
- package/dist/{Layout-Dn9c-gMi.js → Layout-p1hYeFa3.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-H1iroFEV.js → MenuTab.vue_vue_type_script_setup_true_lang-DG-9RjS_.js} +49 -46
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-cPTLcF06.js → NavigationTab.vue_vue_type_script_setup_true_lang-By2GxyK2.js} +3 -3
- package/dist/{OverviewView-DQs-PWBo.js → OverviewView-CfmhSHLj.js} +4 -4
- package/dist/{Report-gLUTNmHm.js → Report-tUyaWEtI.js} +3 -3
- package/dist/ReportEditor-BUXYZXMs.js +2032 -0
- package/dist/ReportView-BwrLb4jX.js +331 -0
- package/dist/{Setting-zldr38s7.js → Setting-DApgIt2e.js} +11 -11
- package/dist/{Template-nAGq9Il6.js → Template-Cte2kk4J.js} +3 -3
- package/dist/TileEditor-DPUludYa.js +4154 -0
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-CC-xGpBd.js +257 -0
- package/dist/{TransitionFade-Cq7jxuTO.js → TransitionFade-DszPGM-J.js} +4 -4
- package/dist/{app-L5Gs2RN0.js → app-CwM9HM2R.js} +3577 -3371
- package/dist/app.js +1 -1
- package/dist/assets/{formatChartData.worker-GhwszhPe.js → formatChartData.worker-Ci7ZpIYk.js} +6 -6
- package/dist/assets/{processTableData.worker-C4hgpe0l.js → processTableData.worker-C2Ubh_e0.js} +6 -6
- package/dist/style.css +1 -1
- package/dist/{useRestaurantPermission-D9GFgNLW.js → useRestaurantPermission-BQ0MKNOz.js} +1 -1
- package/package.json +2 -2
- package/dist/InsightView-D8Jpwge7.js +0 -664
- package/dist/ReportEditor-kp63cCQT.js +0 -1831
- package/dist/ReportView-0m23WbFa.js +0 -311
- package/dist/TileEditor-CcwBUuaS.js +0 -4093
- package/dist/TileGrid.vue_vue_type_script_setup_true_lang-707n8i-y.js +0 -154
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { computed as c, defineComponent as Ae, ref as P, watch as Le, onMounted as
|
|
2
|
-
import { W as
|
|
3
|
-
import { l as
|
|
4
|
-
import { d as
|
|
5
|
-
import { storeToRefs as
|
|
6
|
-
import { detectLocale as
|
|
7
|
-
import { C as
|
|
8
|
-
import { useBreakpoints as
|
|
9
|
-
import { u as mt, _ as
|
|
1
|
+
import { computed as c, defineComponent as Ae, ref as P, watch as Le, onMounted as zt, onBeforeUnmount as Co, resolveComponent as fe, createBlock as de, openBlock as K, Transition as ia, withCtx as De, createElementBlock as le, createCommentVNode as he, createElementVNode as Y, unref as i, normalizeStyle as Pe, withModifiers as un, toDisplayString as Ce, createVNode as pe, Fragment as Ne, renderList as ft, normalizeClass as Ie, nextTick as xo, mergeModels as Oe, useModel as Ue, renderSlot as ot, h as nn, createSlots as ua, resolveDynamicComponent as wo, toRaw as ca, markRaw as da, createTextVNode as fa, onUnmounted as _o, withDirectives as ma, vShow as pa } from "vue";
|
|
2
|
+
import { W as E, x as ha, S as Bt, y as Rt, z as ga, F as At, e as on, A as xn, B as So, b as va, E as ya, G as ba, H as Ca, R as bt, J as xa } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DzZP-ANz.js";
|
|
3
|
+
import { l as cn, a as fn, u as ko } from "./app-CwM9HM2R.js";
|
|
4
|
+
import { d as kn } from "./DateRangeSelect-D2772bgT.js";
|
|
5
|
+
import { storeToRefs as Nt } from "pinia";
|
|
6
|
+
import { detectLocale as Vn } from "@feedmepos/mf-common";
|
|
7
|
+
import { C as Tn } from "./chart-DDDh8zNk.js";
|
|
8
|
+
import { useBreakpoints as Ht, useSnackbar as Nn, components as wa } from "@feedmepos/ui-library";
|
|
9
|
+
import { u as mt, _ as To } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
10
10
|
import { r as ut } from "./i18n-CI_sQ5d_.js";
|
|
11
|
-
import { _ as
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
const
|
|
11
|
+
import { _ as Zn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
12
|
+
var Vt = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e.progress = "PROGRESS", e))(Vt || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), Ln = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Dn || {}), In = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(In || {}), Pn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Pn || {}), Mn = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(Mn || {}), xe = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(xe || {});
|
|
13
|
+
E.Circular, E.Table, E.BarChart, E.LineChart, E.StackBarChart, E.ClusteredStackBarChart, E.StackLineChart, E.Scorecard, E.Spacer;
|
|
14
|
+
const _a = [
|
|
15
15
|
{
|
|
16
|
-
type:
|
|
16
|
+
type: E.Circular,
|
|
17
17
|
showLabel: !1,
|
|
18
18
|
// TODO: temporarily removed show label as it has no function
|
|
19
19
|
showDrillDimension: !0,
|
|
@@ -21,14 +21,14 @@ const ba = [
|
|
|
21
21
|
showSearchBar: !1
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
|
-
type:
|
|
24
|
+
type: E.Table,
|
|
25
25
|
showLabel: !1,
|
|
26
26
|
showDrillDimension: !0,
|
|
27
27
|
showRollup: !0,
|
|
28
28
|
showSearchBar: !0
|
|
29
29
|
},
|
|
30
30
|
{
|
|
31
|
-
type:
|
|
31
|
+
type: E.BarChart,
|
|
32
32
|
showLabel: !1,
|
|
33
33
|
// TODO: temporarily removed show label as it has no function
|
|
34
34
|
showDrillDimension: !0,
|
|
@@ -36,7 +36,7 @@ const ba = [
|
|
|
36
36
|
showSearchBar: !1
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
type:
|
|
39
|
+
type: E.LineChart,
|
|
40
40
|
showLabel: !1,
|
|
41
41
|
// TODO: temporarily removed show label as it has no function
|
|
42
42
|
showDrillDimension: !0,
|
|
@@ -44,7 +44,7 @@ const ba = [
|
|
|
44
44
|
showSearchBar: !1
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
type:
|
|
47
|
+
type: E.StackBarChart,
|
|
48
48
|
showLabel: !1,
|
|
49
49
|
// TODO: temporarily removed show label as it has no function
|
|
50
50
|
showDrillDimension: !0,
|
|
@@ -52,7 +52,7 @@ const ba = [
|
|
|
52
52
|
showSearchBar: !1
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
type:
|
|
55
|
+
type: E.ClusteredStackBarChart,
|
|
56
56
|
showLabel: !1,
|
|
57
57
|
// TODO: temporarily removed show label as it has no function
|
|
58
58
|
showDrillDimension: !0,
|
|
@@ -60,7 +60,7 @@ const ba = [
|
|
|
60
60
|
showSearchBar: !1
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
type:
|
|
63
|
+
type: E.StackLineChart,
|
|
64
64
|
showLabel: !1,
|
|
65
65
|
// TODO: temporarily removed show label as it has no function
|
|
66
66
|
showDrillDimension: !0,
|
|
@@ -68,35 +68,35 @@ const ba = [
|
|
|
68
68
|
showSearchBar: !1
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
|
-
type:
|
|
71
|
+
type: E.Scorecard,
|
|
72
72
|
showLabel: !1,
|
|
73
73
|
showDrillDimension: !1,
|
|
74
74
|
showRollup: !1,
|
|
75
75
|
showSearchBar: !1
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
|
-
type:
|
|
78
|
+
type: E.Spacer,
|
|
79
79
|
showLabel: !1,
|
|
80
80
|
showDrillDimension: !1,
|
|
81
81
|
showRollup: !1,
|
|
82
82
|
showSearchBar: !1
|
|
83
83
|
}
|
|
84
84
|
];
|
|
85
|
-
function
|
|
85
|
+
function Sa(e, t) {
|
|
86
86
|
switch (e) {
|
|
87
|
-
case
|
|
88
|
-
case
|
|
89
|
-
case
|
|
90
|
-
case
|
|
91
|
-
case
|
|
87
|
+
case E.BarChart:
|
|
88
|
+
case E.LineChart:
|
|
89
|
+
case E.StackBarChart:
|
|
90
|
+
case E.ClusteredStackBarChart:
|
|
91
|
+
case E.StackLineChart:
|
|
92
92
|
return Array.isArray(t == null ? void 0 : t.datasets) && Array.isArray(t == null ? void 0 : t.xAxis) && t.datasets.length > 0 && t.xAxis.length > 0;
|
|
93
|
-
case
|
|
93
|
+
case E.Table:
|
|
94
94
|
return Array.isArray(t == null ? void 0 : t.rows) && Array.isArray(t == null ? void 0 : t.columns) && t.rows.length > 0 && t.columns.length > 0;
|
|
95
|
-
case
|
|
95
|
+
case E.Circular:
|
|
96
96
|
return Array.isArray(t == null ? void 0 : t.datasets) && t.datasets.length > 0;
|
|
97
|
-
case
|
|
97
|
+
case E.Scorecard:
|
|
98
98
|
return !0;
|
|
99
|
-
case
|
|
99
|
+
case E.Spacer:
|
|
100
100
|
return !0;
|
|
101
101
|
}
|
|
102
102
|
}
|
|
@@ -112,14 +112,14 @@ const wt = [
|
|
|
112
112
|
"#8358D4",
|
|
113
113
|
"#9B5046"
|
|
114
114
|
];
|
|
115
|
-
function
|
|
115
|
+
function Lo(e) {
|
|
116
116
|
const t = Math.max(1, Math.floor(e));
|
|
117
117
|
return Array.from({ length: t }, (n, o) => {
|
|
118
118
|
const a = wt[o % wt.length], r = Math.floor(o / wt.length);
|
|
119
|
-
return r === 0 ? a :
|
|
119
|
+
return r === 0 ? a : mn(a, Math.min(0.18 * r, 0.72));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const Ss = wt.map(() => "solid");
|
|
123
123
|
function Ct({
|
|
124
124
|
datasetIndex: e,
|
|
125
125
|
label: t
|
|
@@ -127,13 +127,13 @@ function Ct({
|
|
|
127
127
|
const n = typeof t == "string" ? t.trim().toLowerCase().replace(/\s+/g, " ") : "";
|
|
128
128
|
return `${e}:${n}`;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function ka(e) {
|
|
131
131
|
return e === "dashed" || e === "dotted" ? e : "solid";
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function Ta(e, t = !1) {
|
|
134
134
|
if (e == null)
|
|
135
135
|
return t ? [5, 5] : void 0;
|
|
136
|
-
const n =
|
|
136
|
+
const n = ka(e);
|
|
137
137
|
if (n === "dashed")
|
|
138
138
|
return [8, 6];
|
|
139
139
|
if (n === "dotted")
|
|
@@ -150,7 +150,7 @@ function Be({
|
|
|
150
150
|
const a = Number.isFinite(n) ? Number(n) : 0;
|
|
151
151
|
return a <= 0 ? e : t ? e >= a ? (e - a) % a : Math.max(0, (e - 1 + a) % a) : e % a;
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function Do({
|
|
154
154
|
datasets: e,
|
|
155
155
|
datasetIndex: t
|
|
156
156
|
}) {
|
|
@@ -173,12 +173,12 @@ function ko({
|
|
|
173
173
|
return l;
|
|
174
174
|
return t;
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function Wt({
|
|
177
177
|
datasets: e,
|
|
178
178
|
datasetIndex: t
|
|
179
179
|
}) {
|
|
180
180
|
var a;
|
|
181
|
-
const n =
|
|
181
|
+
const n = Do({
|
|
182
182
|
datasets: e,
|
|
183
183
|
datasetIndex: t
|
|
184
184
|
});
|
|
@@ -191,12 +191,12 @@ function Ht({
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
195
|
-
function
|
|
194
|
+
const La = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
195
|
+
function $t(e) {
|
|
196
196
|
if (!e)
|
|
197
197
|
return null;
|
|
198
198
|
const t = e.trim();
|
|
199
|
-
if (!
|
|
199
|
+
if (!La.test(t))
|
|
200
200
|
return null;
|
|
201
201
|
if (t.length === 4) {
|
|
202
202
|
const [, n, o, a] = t;
|
|
@@ -204,37 +204,37 @@ function Nt(e) {
|
|
|
204
204
|
}
|
|
205
205
|
return t.toUpperCase();
|
|
206
206
|
}
|
|
207
|
-
function
|
|
208
|
-
const t =
|
|
207
|
+
function Da(e) {
|
|
208
|
+
const t = $t(e) ?? "#000000";
|
|
209
209
|
return {
|
|
210
210
|
red: Number.parseInt(t.slice(1, 3), 16),
|
|
211
211
|
green: Number.parseInt(t.slice(3, 5), 16),
|
|
212
212
|
blue: Number.parseInt(t.slice(5, 7), 16)
|
|
213
213
|
};
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function Io(e) {
|
|
216
216
|
const t = Math.max(
|
|
217
217
|
wt.length,
|
|
218
218
|
Array.isArray(e) ? e.length : 0
|
|
219
|
-
), n =
|
|
220
|
-
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, a) =>
|
|
219
|
+
), n = Lo(t);
|
|
220
|
+
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, a) => $t(e[a]) ?? o);
|
|
221
221
|
}
|
|
222
|
-
function
|
|
223
|
-
const { red: n, green: o, blue: a } =
|
|
222
|
+
function Po(e, t) {
|
|
223
|
+
const { red: n, green: o, blue: a } = Da(e);
|
|
224
224
|
return `rgba(${n}, ${o}, ${a}, ${t})`;
|
|
225
225
|
}
|
|
226
|
-
function
|
|
227
|
-
const n =
|
|
226
|
+
function mn(e, t) {
|
|
227
|
+
const n = $t(e) ?? "#000000", o = (a) => {
|
|
228
228
|
const r = Number.parseInt(n.slice(a, a + 2), 16);
|
|
229
229
|
return Math.round(r + (255 - r) * t).toString(16).padStart(2, "0").toUpperCase();
|
|
230
230
|
};
|
|
231
231
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
232
232
|
}
|
|
233
|
-
const
|
|
234
|
-
function
|
|
235
|
-
return
|
|
233
|
+
const Ia = 0.25, Mo = 0.7;
|
|
234
|
+
function Bo(e) {
|
|
235
|
+
return mn(e, Ia);
|
|
236
236
|
}
|
|
237
|
-
function
|
|
237
|
+
function Qn(e) {
|
|
238
238
|
return Math.min(0.55 + (e - 1) * 0.18, 0.95);
|
|
239
239
|
}
|
|
240
240
|
function Je({
|
|
@@ -243,9 +243,9 @@ function Je({
|
|
|
243
243
|
opacity: n,
|
|
244
244
|
customColors: o
|
|
245
245
|
}) {
|
|
246
|
-
const a =
|
|
246
|
+
const a = Io(o), r = a[e % a.length], l = t ? Bo(r) : r;
|
|
247
247
|
let u = typeof n == "number" ? n : 1;
|
|
248
|
-
return t && (u = u *
|
|
248
|
+
return t && (u = u * Mo), Po(l, u);
|
|
249
249
|
}
|
|
250
250
|
function St({
|
|
251
251
|
fallbackIndex: e,
|
|
@@ -264,11 +264,11 @@ function Tt({
|
|
|
264
264
|
colorMode: u,
|
|
265
265
|
customColors: f
|
|
266
266
|
}) {
|
|
267
|
-
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, D = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, W = l !== !1, C = e * m + D, v = u === "clustered" ?
|
|
267
|
+
const m = Number.isInteger(n) && Number(n) > 0 ? Number(n) : 1, D = Number.isInteger(t) && Number(t) >= 0 ? Number(t) : 0, W = l !== !1, C = e * m + D, v = u === "clustered" ? Lo(Math.max(wt.length, e + 1)) : Io(f), h = $t(r == null ? void 0 : r[e * m]) ?? v[e % v.length], L = W && D > 0 ? mn(h, Qn(D)) : $t(r == null ? void 0 : r[C]) ?? (D > 0 ? mn(h, Qn(D)) : h), I = o ? Bo(L) : L;
|
|
268
268
|
let A = typeof a == "number" ? a : 1;
|
|
269
|
-
return o && (A = A *
|
|
269
|
+
return o && (A = A * Mo), Po(I, A);
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function Ao(e, t, n) {
|
|
272
272
|
if (e === "" || t === "")
|
|
273
273
|
return null;
|
|
274
274
|
let o = (f) => f == null ? void 0 : f.replace(/,/g, "");
|
|
@@ -278,13 +278,13 @@ function Po(e, t, n) {
|
|
|
278
278
|
return null;
|
|
279
279
|
let l = 0;
|
|
280
280
|
r === 0 ? a === 0 ? l = 0 : l = 1 : l = (a - r) / r;
|
|
281
|
-
const u =
|
|
281
|
+
const u = Pa(l);
|
|
282
282
|
return {
|
|
283
283
|
value: isNaN(l) ? "" : `${(l * 100).toFixed(0)}%`,
|
|
284
284
|
icon: u
|
|
285
285
|
};
|
|
286
286
|
}
|
|
287
|
-
function
|
|
287
|
+
function Pa(e) {
|
|
288
288
|
return e > 0 ? {
|
|
289
289
|
name: "moving",
|
|
290
290
|
color: "#1F7735",
|
|
@@ -299,19 +299,19 @@ function Ta(e) {
|
|
|
299
299
|
tailwind: "fm-color-neutral-gray-100"
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
const
|
|
303
|
-
function
|
|
304
|
-
return
|
|
302
|
+
const Ma = "en-US";
|
|
303
|
+
function Fo() {
|
|
304
|
+
return Vn() || Ma;
|
|
305
305
|
}
|
|
306
306
|
function dt(e) {
|
|
307
307
|
if (e == null || e === "")
|
|
308
308
|
return "";
|
|
309
309
|
const t = String(e), n = Number(t);
|
|
310
310
|
if (isNaN(n)) return t;
|
|
311
|
-
const [o, a] = t.split("."), r = new Intl.NumberFormat(
|
|
311
|
+
const [o, a] = t.split("."), r = new Intl.NumberFormat(Fo()).format(Number(o));
|
|
312
312
|
return a !== void 0 ? `${r}.${a}` : r;
|
|
313
313
|
}
|
|
314
|
-
function
|
|
314
|
+
function eo(e, t) {
|
|
315
315
|
if (e == null || e === "")
|
|
316
316
|
return "";
|
|
317
317
|
const n = typeof e == "string" ? e.replace(/,/g, "") : e, o = Number(n);
|
|
@@ -319,17 +319,17 @@ function Jn(e, t) {
|
|
|
319
319
|
return typeof e == "string" ? e : "";
|
|
320
320
|
if (Math.abs(o) < 1e3)
|
|
321
321
|
return String(o);
|
|
322
|
-
const a =
|
|
322
|
+
const a = Fo();
|
|
323
323
|
return new Intl.NumberFormat(a, {
|
|
324
324
|
notation: "compact",
|
|
325
325
|
compactDisplay: "short",
|
|
326
326
|
maximumFractionDigits: 1
|
|
327
327
|
}).format(o).replace(/K$/, "k");
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function Ot(e) {
|
|
330
330
|
return Object.entries(e).map(([t, n]) => `${t}:${n}`).join(";");
|
|
331
331
|
}
|
|
332
|
-
function
|
|
332
|
+
function Ro(e) {
|
|
333
333
|
return {
|
|
334
334
|
mode: "index",
|
|
335
335
|
intersect: !1,
|
|
@@ -365,7 +365,7 @@ function Bo(e) {
|
|
|
365
365
|
titleMarginBottom: 6
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const Ba = Ot({
|
|
369
369
|
display: "block",
|
|
370
370
|
padding: "0",
|
|
371
371
|
background: "none",
|
|
@@ -376,7 +376,7 @@ const Da = Wt({
|
|
|
376
376
|
cursor: "pointer",
|
|
377
377
|
"text-align": "left",
|
|
378
378
|
"pointer-events": "auto"
|
|
379
|
-
}),
|
|
379
|
+
}), Aa = {
|
|
380
380
|
"font-size": "13px",
|
|
381
381
|
"font-weight": "600",
|
|
382
382
|
color: "#111827",
|
|
@@ -384,7 +384,7 @@ const Da = Wt({
|
|
|
384
384
|
"white-space": "normal",
|
|
385
385
|
"word-break": "break-word",
|
|
386
386
|
"overflow-wrap": "anywhere"
|
|
387
|
-
},
|
|
387
|
+
}, Fa = Ot({
|
|
388
388
|
display: "flex",
|
|
389
389
|
"align-items": "flex-start",
|
|
390
390
|
"font-size": "13px",
|
|
@@ -394,13 +394,13 @@ const Da = Wt({
|
|
|
394
394
|
"line-height": "1.35",
|
|
395
395
|
margin: "0 0 3px",
|
|
396
396
|
overflow: "hidden"
|
|
397
|
-
}),
|
|
397
|
+
}), Ra = Ot({
|
|
398
398
|
flex: "1 1 auto",
|
|
399
399
|
"min-width": "0",
|
|
400
400
|
"white-space": "normal",
|
|
401
401
|
"word-break": "break-word",
|
|
402
402
|
"overflow-wrap": "anywhere"
|
|
403
|
-
}),
|
|
403
|
+
}), Va = {
|
|
404
404
|
display: "inline-block",
|
|
405
405
|
width: "10px",
|
|
406
406
|
height: "10px",
|
|
@@ -409,7 +409,7 @@ const Da = Wt({
|
|
|
409
409
|
"box-sizing": "border-box",
|
|
410
410
|
"margin-right": "8px",
|
|
411
411
|
flex: "0 0 auto"
|
|
412
|
-
},
|
|
412
|
+
}, Na = {
|
|
413
413
|
display: "inline-block",
|
|
414
414
|
width: "10px",
|
|
415
415
|
height: "10px",
|
|
@@ -420,9 +420,9 @@ const Da = Wt({
|
|
|
420
420
|
"margin-right": "8px",
|
|
421
421
|
flex: "0 0 auto"
|
|
422
422
|
};
|
|
423
|
-
function
|
|
423
|
+
function $a() {
|
|
424
424
|
return {
|
|
425
|
-
...
|
|
425
|
+
...Ro(),
|
|
426
426
|
mode: "nearest",
|
|
427
427
|
intersect: !0,
|
|
428
428
|
usePointStyle: !0,
|
|
@@ -434,8 +434,8 @@ function Fa() {
|
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
const
|
|
438
|
-
function
|
|
437
|
+
const za = "rgba(0, 0, 0, 0.3)";
|
|
438
|
+
function to(e) {
|
|
439
439
|
if (typeof document > "u" || typeof window > "u")
|
|
440
440
|
return;
|
|
441
441
|
const t = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -446,11 +446,11 @@ function Zn(e) {
|
|
|
446
446
|
);
|
|
447
447
|
n && (n.__onViewportChange && (window.removeEventListener("scroll", n.__onViewportChange, !0), window.removeEventListener("resize", n.__onViewportChange)), n.remove());
|
|
448
448
|
}
|
|
449
|
-
function
|
|
449
|
+
function wn(e, t, n, o) {
|
|
450
450
|
const { left: a, right: r, top: l, bottom: u } = n;
|
|
451
|
-
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle =
|
|
451
|
+
e.save(), e.beginPath(), e.lineWidth = 1, e.strokeStyle = za, e.setLineDash([5, 5]), t ? (e.moveTo(a, o), e.lineTo(r, o)) : (e.moveTo(o, l), e.lineTo(o, u)), e.stroke(), e.restore();
|
|
452
452
|
}
|
|
453
|
-
function
|
|
453
|
+
function Ha(e, t) {
|
|
454
454
|
if (typeof document > "u")
|
|
455
455
|
return;
|
|
456
456
|
const n = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -464,14 +464,14 @@ function Va(e, t) {
|
|
|
464
464
|
const a = Number(t ? o.dataset.caretY : o.dataset.caretX);
|
|
465
465
|
return Number.isFinite(a) ? a : void 0;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function Wa(e, t, n) {
|
|
468
468
|
var h;
|
|
469
469
|
if (!n)
|
|
470
470
|
return;
|
|
471
471
|
const o = ((h = e.options) == null ? void 0 : h.indexAxis) === "y", a = e.tooltip, r = (a == null ? void 0 : a.getActiveElements()) ?? [];
|
|
472
472
|
if (r.length === 0) {
|
|
473
|
-
const L =
|
|
474
|
-
L !== void 0 &&
|
|
473
|
+
const L = Ha(e, o);
|
|
474
|
+
L !== void 0 && wn(e.ctx, o, e.chartArea, L);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
477
477
|
const l = e.scales.x, u = e.scales.y;
|
|
@@ -482,20 +482,20 @@ function Na(e, t, n) {
|
|
|
482
482
|
return;
|
|
483
483
|
if (t === "bar") {
|
|
484
484
|
const I = (o ? u : l).getPixelForValue(f.index);
|
|
485
|
-
|
|
485
|
+
wn(e.ctx, o, e.chartArea, I);
|
|
486
486
|
return;
|
|
487
487
|
}
|
|
488
488
|
if (!f.element)
|
|
489
489
|
return;
|
|
490
490
|
const m = f.element, D = o ? u : l, W = o ? m.y : m.x, C = D.getPixelForValue(f.index), v = W ?? C;
|
|
491
|
-
|
|
491
|
+
wn(e.ctx, o, e.chartArea, v);
|
|
492
492
|
}
|
|
493
|
-
function
|
|
493
|
+
function Ut(e) {
|
|
494
494
|
let t = !1, n = !1;
|
|
495
495
|
return {
|
|
496
496
|
id: "crosshair",
|
|
497
497
|
afterDatasetsDraw: (o) => {
|
|
498
|
-
|
|
498
|
+
Wa(o, e, n);
|
|
499
499
|
},
|
|
500
500
|
afterEvent: (o, a) => {
|
|
501
501
|
n = a.inChartArea === !0;
|
|
@@ -509,33 +509,33 @@ function Ot(e) {
|
|
|
509
509
|
t && (o.ctx.restore(), t = !1);
|
|
510
510
|
},
|
|
511
511
|
beforeDestroy: (o) => {
|
|
512
|
-
|
|
512
|
+
to(o);
|
|
513
513
|
},
|
|
514
514
|
afterDestroy: (o) => {
|
|
515
|
-
|
|
515
|
+
to(o);
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
const
|
|
520
|
-
let
|
|
521
|
-
const
|
|
522
|
-
function
|
|
523
|
-
window.dispatchEvent(new Event(
|
|
519
|
+
const Oa = Number.POSITIVE_INFINITY, Bn = 2, Ua = 1, Ka = 0.2, Xa = 120, Ya = 320, Ea = 24, { breakpoints: xt } = Ht(), $n = "report-v5:locationchange";
|
|
520
|
+
let no = !1;
|
|
521
|
+
const qa = "report.widget.comparisonTooltip";
|
|
522
|
+
function oo() {
|
|
523
|
+
window.dispatchEvent(new Event($n));
|
|
524
524
|
}
|
|
525
|
-
function
|
|
526
|
-
if (
|
|
525
|
+
function Ga() {
|
|
526
|
+
if (no)
|
|
527
527
|
return;
|
|
528
|
-
|
|
528
|
+
no = !0;
|
|
529
529
|
const e = window.history.pushState.bind(window.history), t = window.history.replaceState.bind(window.history);
|
|
530
530
|
window.history.pushState = function(...o) {
|
|
531
531
|
const a = e(...o);
|
|
532
|
-
return
|
|
532
|
+
return oo(), a;
|
|
533
533
|
}, window.history.replaceState = function(...o) {
|
|
534
534
|
const a = t(...o);
|
|
535
|
-
return
|
|
535
|
+
return oo(), a;
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function ja(e, t) {
|
|
539
539
|
const n = t.split(".");
|
|
540
540
|
let o = e;
|
|
541
541
|
for (const a of n) {
|
|
@@ -545,106 +545,106 @@ function Ya(e, t) {
|
|
|
545
545
|
}
|
|
546
546
|
return typeof o == "string" ? o : void 0;
|
|
547
547
|
}
|
|
548
|
-
function
|
|
549
|
-
const t = `${
|
|
550
|
-
return
|
|
548
|
+
function zn(e) {
|
|
549
|
+
const t = `${qa}.${e}`, n = Vn(), o = cn[n];
|
|
550
|
+
return ja(o, t) ?? t;
|
|
551
551
|
}
|
|
552
|
-
function
|
|
553
|
-
return
|
|
552
|
+
function Vo() {
|
|
553
|
+
return zn("viewBreakdown");
|
|
554
554
|
}
|
|
555
|
-
function
|
|
556
|
-
return
|
|
555
|
+
function ao() {
|
|
556
|
+
return zn("current");
|
|
557
557
|
}
|
|
558
|
-
function
|
|
559
|
-
return
|
|
558
|
+
function ro() {
|
|
559
|
+
return zn("compared");
|
|
560
560
|
}
|
|
561
|
-
function
|
|
561
|
+
function an(e, t) {
|
|
562
562
|
const n = e.trim();
|
|
563
563
|
return n.length === 0 ? t : `${n} · ${t}`;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ja(e, t, n, o) {
|
|
566
566
|
var m;
|
|
567
|
-
const a =
|
|
567
|
+
const a = Za(e), r = (a == null ? void 0 : a[0]) ?? "", l = a == null ? void 0 : a[1], u = t.some((D) => No(D)), f = typeof n == "number" ? (m = o == null ? void 0 : o[n]) == null ? void 0 : m.trim() : void 0;
|
|
568
568
|
return l ? {
|
|
569
|
-
firstTitle:
|
|
570
|
-
secondTitle:
|
|
569
|
+
firstTitle: an(r, ao()),
|
|
570
|
+
secondTitle: an(l, ro())
|
|
571
571
|
} : u ? {
|
|
572
|
-
firstTitle:
|
|
573
|
-
secondTitle:
|
|
572
|
+
firstTitle: an(r, ao()),
|
|
573
|
+
secondTitle: an(
|
|
574
574
|
f && f.length > 0 ? f : r,
|
|
575
|
-
|
|
575
|
+
ro()
|
|
576
576
|
)
|
|
577
577
|
} : {
|
|
578
578
|
firstTitle: r
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function Za(e) {
|
|
582
582
|
return e == null ? null : typeof e != "string" ? [] : e.split("#").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function No(e) {
|
|
585
585
|
return e.dash === !0 || e.isCompare === !0;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Qa(e) {
|
|
588
588
|
return typeof e.label == "string" ? e.label : "N/A";
|
|
589
589
|
}
|
|
590
|
-
function
|
|
590
|
+
function $o(e, t) {
|
|
591
591
|
let n;
|
|
592
592
|
return Array.isArray(e.data) && t < e.data.length && (n = e.data[t]), typeof n != "number" ? NaN : n;
|
|
593
593
|
}
|
|
594
|
-
function
|
|
594
|
+
function er(e, t) {
|
|
595
595
|
return `${e}: ${isNaN(t) ? "" : t.toLocaleString()}`;
|
|
596
596
|
}
|
|
597
|
-
function
|
|
597
|
+
function tr(e, t) {
|
|
598
598
|
return e.type === "bar" ? !0 : t === "bar";
|
|
599
599
|
}
|
|
600
|
-
function
|
|
601
|
-
const o =
|
|
602
|
-
return n ?
|
|
600
|
+
function nr(e, t, n) {
|
|
601
|
+
const o = Ft(e.borderColor, t) || Ft(e.color, t), a = Ft(e.backgroundColor, t), r = Ft(e.pointBorderColor, t), l = Ft(e.pointBackgroundColor, t);
|
|
602
|
+
return n ? lo(a, l, o, r) : lo(o, r, a, l);
|
|
603
603
|
}
|
|
604
|
-
function
|
|
604
|
+
function or(e) {
|
|
605
605
|
return e.trim().toLowerCase();
|
|
606
606
|
}
|
|
607
|
-
function
|
|
607
|
+
function Ft(e, t) {
|
|
608
608
|
if (typeof e == "string") return e;
|
|
609
609
|
if (Array.isArray(e)) {
|
|
610
610
|
const n = e[t];
|
|
611
611
|
return typeof n == "string" ? n : void 0;
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
|
-
function
|
|
614
|
+
function ar(e) {
|
|
615
615
|
if (typeof e != "string") return "#9ca3af";
|
|
616
616
|
const t = e.trim();
|
|
617
617
|
return /^[-#(),.%\sa-zA-Z0-9]+$/.test(t) ? t : "#9ca3af";
|
|
618
618
|
}
|
|
619
|
-
function
|
|
619
|
+
function rr(e) {
|
|
620
620
|
const t = e.replace(/\s+/g, "").toLowerCase();
|
|
621
621
|
return !!(t === "transparent" || /^rgba\([^)]*,0(?:\.0+)?\)$/.test(t) || /^hsla\([^)]*,0(?:\.0+)?\)$/.test(t) || t === "#0000" || t === "#00000000");
|
|
622
622
|
}
|
|
623
|
-
function
|
|
623
|
+
function lo(...e) {
|
|
624
624
|
for (const t of e) {
|
|
625
625
|
if (!t) continue;
|
|
626
|
-
const n =
|
|
627
|
-
if (!
|
|
626
|
+
const n = ar(t);
|
|
627
|
+
if (!rr(n))
|
|
628
628
|
return n;
|
|
629
629
|
}
|
|
630
630
|
return "#9ca3af";
|
|
631
631
|
}
|
|
632
|
-
function
|
|
632
|
+
function lr(e) {
|
|
633
633
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0;
|
|
634
|
-
return Number.isFinite(
|
|
634
|
+
return Number.isFinite($o(t, n));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function An(e) {
|
|
637
637
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
638
638
|
}
|
|
639
|
-
function
|
|
639
|
+
function sr(e) {
|
|
640
640
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
641
|
-
return Number.isFinite(t) ? Math.max(
|
|
641
|
+
return Number.isFinite(t) ? Math.max(Bn, Math.floor(t)) : Oa;
|
|
642
642
|
}
|
|
643
|
-
function
|
|
643
|
+
function ir(e) {
|
|
644
644
|
return e <= 0 ? 320 : xt.value.xs || xt.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : xt.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : xt.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
645
645
|
}
|
|
646
|
-
function
|
|
647
|
-
const n = window.innerHeight, o =
|
|
646
|
+
function Hn(e, t) {
|
|
647
|
+
const n = window.innerHeight, o = ir(n), a = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, r = Math.max(120, Math.min(o, a));
|
|
648
648
|
e.style.maxHeight = `${r}px`;
|
|
649
649
|
}
|
|
650
650
|
function ct() {
|
|
@@ -653,37 +653,37 @@ function ct() {
|
|
|
653
653
|
function _t(e) {
|
|
654
654
|
return e.dataset.pinned === "true";
|
|
655
655
|
}
|
|
656
|
-
function
|
|
656
|
+
function zo(e, t) {
|
|
657
657
|
if (t) {
|
|
658
658
|
e.dataset.pinned = "true";
|
|
659
659
|
return;
|
|
660
660
|
}
|
|
661
661
|
delete e.dataset.pinned;
|
|
662
662
|
}
|
|
663
|
-
function
|
|
663
|
+
function Ho(e) {
|
|
664
664
|
return {
|
|
665
|
-
maxTooltipItems:
|
|
665
|
+
maxTooltipItems: sr(e == null ? void 0 : e.maxTooltipItems)
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function ur(e) {
|
|
669
669
|
e.__lastPhoneTapAt = void 0, e.__lastPhoneTapX = void 0, e.__lastPhoneTapY = void 0, e.__lastPhoneTapDatasetIndex = void 0, e.__lastPhoneTapDataIndex = void 0;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
671
|
+
function cr(e, t, n, o, a, r) {
|
|
672
672
|
e.__lastPhoneTapAt = o, e.__lastPhoneTapX = t, e.__lastPhoneTapY = n, e.__lastPhoneTapDatasetIndex = a, e.__lastPhoneTapDataIndex = r;
|
|
673
673
|
}
|
|
674
|
-
function
|
|
674
|
+
function dr(e, t, n) {
|
|
675
675
|
return e.__lastPhoneTapDatasetIndex === t && e.__lastPhoneTapDataIndex === n;
|
|
676
676
|
}
|
|
677
|
-
function
|
|
677
|
+
function fr(e, t, n, o) {
|
|
678
678
|
if (!Number.isFinite(e.__lastPhoneTapAt) || !Number.isFinite(e.__lastPhoneTapX) || !Number.isFinite(e.__lastPhoneTapY))
|
|
679
679
|
return !1;
|
|
680
680
|
const a = o - e.__lastPhoneTapAt;
|
|
681
|
-
if (a < 0 || a >
|
|
681
|
+
if (a < 0 || a > Ya)
|
|
682
682
|
return !1;
|
|
683
683
|
const r = t - e.__lastPhoneTapX, l = n - e.__lastPhoneTapY;
|
|
684
|
-
return Math.hypot(r, l) <=
|
|
684
|
+
return Math.hypot(r, l) <= Ea;
|
|
685
685
|
}
|
|
686
|
-
function
|
|
686
|
+
function so(e) {
|
|
687
687
|
return {
|
|
688
688
|
text: `${e.datasetLabel}: ${0 .toLocaleString()}`,
|
|
689
689
|
color: "#cbd5e1",
|
|
@@ -693,24 +693,24 @@ function ao(e) {
|
|
|
693
693
|
matchingKey: e.matchingKey
|
|
694
694
|
};
|
|
695
695
|
}
|
|
696
|
-
function
|
|
697
|
-
return
|
|
698
|
-
...
|
|
696
|
+
function mr(e) {
|
|
697
|
+
return Ot({
|
|
698
|
+
...Aa,
|
|
699
699
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
700
700
|
});
|
|
701
701
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
704
|
-
...e ?
|
|
702
|
+
function pr(e, t) {
|
|
703
|
+
return Ot({
|
|
704
|
+
...e ? Va : Na,
|
|
705
705
|
background: t
|
|
706
706
|
});
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
return `<button type="button" data-tooltip-full-details="true" style="${
|
|
708
|
+
function hr(e) {
|
|
709
|
+
return `<button type="button" data-tooltip-full-details="true" style="${Ba}">${An(e)}</button>`;
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function Wo(e, t, n, o, a, r, l, u, f) {
|
|
712
712
|
var _;
|
|
713
|
-
const { firstTitle: m, secondTitle: D } =
|
|
713
|
+
const { firstTitle: m, secondTitle: D } = Ja(
|
|
714
714
|
(_ = e[0]) == null ? void 0 : _.label,
|
|
715
715
|
r,
|
|
716
716
|
l,
|
|
@@ -722,18 +722,18 @@ function $o(e, t, n, o, a, r, l, u, f) {
|
|
|
722
722
|
const $ = S ?? {};
|
|
723
723
|
if ($.isSpacer === !0 || typeof $.xAxisIndex == "number" && $.xAxisIndex !== l)
|
|
724
724
|
return;
|
|
725
|
-
const
|
|
725
|
+
const q = Qa($), O = $o($, l);
|
|
726
726
|
if (!Number.isFinite(O))
|
|
727
727
|
return;
|
|
728
|
-
const j =
|
|
729
|
-
text:
|
|
730
|
-
color:
|
|
728
|
+
const j = tr($, u), G = {
|
|
729
|
+
text: er(q, O),
|
|
730
|
+
color: nr($, l, j),
|
|
731
731
|
isBar: j,
|
|
732
732
|
value: O,
|
|
733
|
-
datasetLabel:
|
|
734
|
-
matchingKey:
|
|
733
|
+
datasetLabel: q,
|
|
734
|
+
matchingKey: or(q)
|
|
735
735
|
};
|
|
736
|
-
if (D &&
|
|
736
|
+
if (D && No($)) {
|
|
737
737
|
C.push(G);
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
@@ -750,13 +750,13 @@ function $o(e, t, n, o, a, r, l, u, f) {
|
|
|
750
750
|
});
|
|
751
751
|
const I = D ? h.map((S) => {
|
|
752
752
|
const x = L.get(S.matchingKey);
|
|
753
|
-
return !x || x.length === 0 ?
|
|
754
|
-
}) : [], A = W.length > h.length || C.length > I.length, B = (S, x = !1) => `<div style="${
|
|
755
|
-
const x =
|
|
756
|
-
return `<div style="${
|
|
753
|
+
return !x || x.length === 0 ? so(S) : x.shift() ?? so(S);
|
|
754
|
+
}) : [], A = W.length > h.length || C.length > I.length, B = (S, x = !1) => `<div style="${mr(x)}">${An(S)}</div>`, J = (S) => {
|
|
755
|
+
const x = pr(S.isBar, S.color);
|
|
756
|
+
return `<div style="${Fa}"><span style="${x}"></span><span style="${Ra}">${An(S.text)}</span></div>`;
|
|
757
757
|
};
|
|
758
758
|
let k = "";
|
|
759
|
-
m.length > 0 && (k += B(m)), k += h.map((S) => J(S)).join(""), D && I.length > 0 && (k += B(D, k.length > 0), k += I.map((S) => J(S)).join("")), a && A && (k +=
|
|
759
|
+
m.length > 0 && (k += B(m)), k += h.map((S) => J(S)).join(""), D && I.length > 0 && (k += B(D, k.length > 0), k += I.map((S) => J(S)).join("")), a && A && (k += hr(n));
|
|
760
760
|
const V = [
|
|
761
761
|
{
|
|
762
762
|
title: m,
|
|
@@ -773,11 +773,11 @@ function $o(e, t, n, o, a, r, l, u, f) {
|
|
|
773
773
|
hasCollapsedValues: A
|
|
774
774
|
};
|
|
775
775
|
}
|
|
776
|
-
function
|
|
777
|
-
return e.scrollHeight - e.clientHeight >
|
|
776
|
+
function io(e) {
|
|
777
|
+
return e.scrollHeight - e.clientHeight > Ua;
|
|
778
778
|
}
|
|
779
|
-
function
|
|
780
|
-
const D =
|
|
779
|
+
function rn(e, t, n, o, a, r, l, u, f, m) {
|
|
780
|
+
const D = Wo(
|
|
781
781
|
t,
|
|
782
782
|
n,
|
|
783
783
|
o,
|
|
@@ -788,12 +788,12 @@ function on(e, t, n, o, a, r, l, u, f, m) {
|
|
|
788
788
|
f,
|
|
789
789
|
m
|
|
790
790
|
);
|
|
791
|
-
return e.innerHTML !== D.html && (e.innerHTML = D.html,
|
|
791
|
+
return e.innerHTML !== D.html && (e.innerHTML = D.html, Ir(e)), D;
|
|
792
792
|
}
|
|
793
|
-
function
|
|
793
|
+
function gr(e, t, n, o, a, r, l, u, f, m) {
|
|
794
794
|
if (Number.isFinite(a))
|
|
795
795
|
return {
|
|
796
|
-
markup:
|
|
796
|
+
markup: rn(
|
|
797
797
|
e,
|
|
798
798
|
t,
|
|
799
799
|
n,
|
|
@@ -807,8 +807,8 @@ function fr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
807
807
|
),
|
|
808
808
|
maxTooltipItems: a
|
|
809
809
|
};
|
|
810
|
-
const D = Math.max(
|
|
811
|
-
let W = D, C =
|
|
810
|
+
const D = Math.max(Bn, t.length);
|
|
811
|
+
let W = D, C = rn(
|
|
812
812
|
e,
|
|
813
813
|
t,
|
|
814
814
|
n,
|
|
@@ -820,14 +820,14 @@ function fr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
820
820
|
f,
|
|
821
821
|
m
|
|
822
822
|
);
|
|
823
|
-
if (!
|
|
823
|
+
if (!io(e))
|
|
824
824
|
return {
|
|
825
825
|
markup: C,
|
|
826
826
|
maxTooltipItems: D
|
|
827
827
|
};
|
|
828
|
-
let v =
|
|
828
|
+
let v = Bn, h = D;
|
|
829
829
|
for (; v <= h; ) {
|
|
830
|
-
const I = Math.floor((v + h) / 2), A =
|
|
830
|
+
const I = Math.floor((v + h) / 2), A = rn(
|
|
831
831
|
e,
|
|
832
832
|
t,
|
|
833
833
|
n,
|
|
@@ -839,14 +839,14 @@ function fr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
839
839
|
f,
|
|
840
840
|
m
|
|
841
841
|
);
|
|
842
|
-
if (
|
|
842
|
+
if (io(e)) {
|
|
843
843
|
h = I - 1;
|
|
844
844
|
continue;
|
|
845
845
|
}
|
|
846
846
|
W = I, C = A, v = I + 1;
|
|
847
847
|
}
|
|
848
848
|
return {
|
|
849
|
-
markup: W === D ? C :
|
|
849
|
+
markup: W === D ? C : rn(
|
|
850
850
|
e,
|
|
851
851
|
t,
|
|
852
852
|
n,
|
|
@@ -861,7 +861,7 @@ function fr(e, t, n, o, a, r, l, u, f, m) {
|
|
|
861
861
|
maxTooltipItems: W
|
|
862
862
|
};
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function uo(e, t) {
|
|
865
865
|
const n = Math.max(0, Math.min(1, t)), o = e.trim();
|
|
866
866
|
if (o.startsWith("#")) {
|
|
867
867
|
const l = o.slice(1), u = l.length === 3 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length === 4 ? `${l[0]}${l[0]}${l[1]}${l[1]}${l[2]}${l[2]}` : l.length >= 6 ? l.slice(0, 6) : "";
|
|
@@ -888,12 +888,12 @@ function lo(e, t) {
|
|
|
888
888
|
}
|
|
889
889
|
return e;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
892
|
-
return typeof e == "string" ?
|
|
893
|
-
(n) => typeof n == "string" ?
|
|
891
|
+
function ln(e, t) {
|
|
892
|
+
return typeof e == "string" ? uo(e, t) : Array.isArray(e) ? e.map(
|
|
893
|
+
(n) => typeof n == "string" ? uo(n, t) : n
|
|
894
894
|
) : e;
|
|
895
895
|
}
|
|
896
|
-
function
|
|
896
|
+
function vr(e) {
|
|
897
897
|
e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
|
|
898
898
|
borderColor: Reflect.get(e, "borderColor"),
|
|
899
899
|
backgroundColor: Reflect.get(e, "backgroundColor"),
|
|
@@ -901,19 +901,19 @@ function mr(e) {
|
|
|
901
901
|
pointBackgroundColor: Reflect.get(e, "pointBackgroundColor")
|
|
902
902
|
});
|
|
903
903
|
}
|
|
904
|
-
function
|
|
904
|
+
function yr(e) {
|
|
905
905
|
const t = e.__tooltipOriginalStyle;
|
|
906
906
|
t && (Reflect.set(e, "borderColor", t.borderColor), Reflect.set(e, "backgroundColor", t.backgroundColor), Reflect.set(e, "pointBorderColor", t.pointBorderColor), Reflect.set(e, "pointBackgroundColor", t.pointBackgroundColor));
|
|
907
907
|
}
|
|
908
|
-
function
|
|
908
|
+
function br(e, t) {
|
|
909
909
|
const n = e.__tooltipOriginalStyle;
|
|
910
|
-
n && (Reflect.set(e, "borderColor",
|
|
910
|
+
n && (Reflect.set(e, "borderColor", ln(n.borderColor, t)), Reflect.set(e, "backgroundColor", ln(n.backgroundColor, t)), Reflect.set(e, "pointBorderColor", ln(n.pointBorderColor, t)), Reflect.set(
|
|
911
911
|
e,
|
|
912
912
|
"pointBackgroundColor",
|
|
913
|
-
|
|
913
|
+
ln(n.pointBackgroundColor, t)
|
|
914
914
|
));
|
|
915
915
|
}
|
|
916
|
-
function
|
|
916
|
+
function Fn(e) {
|
|
917
917
|
var o;
|
|
918
918
|
if (!e || typeof e != "object")
|
|
919
919
|
return !1;
|
|
@@ -923,13 +923,13 @@ function Bn(e) {
|
|
|
923
923
|
const n = t.canvas;
|
|
924
924
|
return !(n != null && (!n.isConnected || !n.ownerDocument));
|
|
925
925
|
}
|
|
926
|
-
function
|
|
927
|
-
if (!
|
|
926
|
+
function dn(e, t) {
|
|
927
|
+
if (!Fn(e))
|
|
928
928
|
return;
|
|
929
929
|
const n = e.data.datasets;
|
|
930
930
|
if (n.length !== 0) {
|
|
931
931
|
if (n.forEach((o, a) => {
|
|
932
|
-
|
|
932
|
+
vr(o), !t || a === t.datasetIndex ? yr(o) : br(o, Ka);
|
|
933
933
|
}), typeof e.setActiveElements == "function")
|
|
934
934
|
try {
|
|
935
935
|
t ? e.setActiveElements([
|
|
@@ -948,9 +948,9 @@ function un(e, t) {
|
|
|
948
948
|
}
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
|
-
function
|
|
951
|
+
function Oo(e) {
|
|
952
952
|
const t = e, n = t == null ? void 0 : t.chart;
|
|
953
|
-
if (
|
|
953
|
+
if (Fn(n))
|
|
954
954
|
return n;
|
|
955
955
|
const o = t == null ? void 0 : t.$el;
|
|
956
956
|
if (!o)
|
|
@@ -958,20 +958,20 @@ function zo(e) {
|
|
|
958
958
|
const a = o.querySelector("canvas");
|
|
959
959
|
if (!(a instanceof HTMLCanvasElement))
|
|
960
960
|
return null;
|
|
961
|
-
const r =
|
|
962
|
-
return
|
|
961
|
+
const r = Tn.getChart(a);
|
|
962
|
+
return Fn(r) ? r : null;
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function Cr(e) {
|
|
965
965
|
const t = window.getComputedStyle(e);
|
|
966
966
|
return [t.overflow, t.overflowX, t.overflowY].some((o) => o !== "visible");
|
|
967
967
|
}
|
|
968
|
-
function
|
|
968
|
+
function Wn(e) {
|
|
969
969
|
let t = e.parentElement ?? e, n = t;
|
|
970
970
|
for (; n && n.parentElement && n.parentElement !== document.body && n.parentElement !== document.documentElement; )
|
|
971
|
-
|
|
971
|
+
Cr(n) && (t = n.parentElement), n = n.parentElement;
|
|
972
972
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
973
973
|
}
|
|
974
|
-
function
|
|
974
|
+
function On(e, t, n, o, a, r, l = "center", u = !1) {
|
|
975
975
|
const f = t.getBoundingClientRect(), m = n.getBoundingClientRect(), D = n.scrollLeft, W = n.scrollTop, C = n.clientWidth, v = n.clientHeight, h = e;
|
|
976
976
|
(!Number.isFinite(h.__cachedWidth) || !Number.isFinite(h.__cachedHeight) || h.__measurementHostWidth !== C || h.__measurementHostHeight !== v) && (h.__cachedWidth = e.offsetWidth, h.__cachedHeight = e.offsetHeight, h.__measurementHostWidth = C, h.__measurementHostHeight = v);
|
|
977
977
|
const I = h.__cachedWidth ?? e.offsetWidth, A = h.__cachedHeight ?? e.offsetHeight, B = 8, J = f.left - m.left + D + o, k = f.top - m.top + W + a, V = u ? l === "left" ? J - I - B : J + B : l === "left" ? J - I - B : l === "right" ? J + B : J - I / 2, _ = u ? k + B : r ? k - A / 2 : k + B, S = D + B;
|
|
@@ -981,15 +981,15 @@ function Hn(e, t, n, o, a, r, l = "center", u = !1) {
|
|
|
981
981
|
const y = $.getBoundingClientRect().bottom - m.top + W + B;
|
|
982
982
|
x = Math.max(x, y);
|
|
983
983
|
}
|
|
984
|
-
const
|
|
984
|
+
const q = Math.max(S, D + C - I - B), O = Math.max(x, W + v - A - B), j = Math.round(Math.min(Math.max(S, V), q)), G = Math.round(Math.min(Math.max(x, _), O));
|
|
985
985
|
h.__lastLeftPx === j && h.__lastTopPx === G || (h.__lastLeftPx = j, h.__lastTopPx = G, e.style.left = `${j}px`, e.style.top = `${G}px`);
|
|
986
986
|
}
|
|
987
|
-
function
|
|
987
|
+
function Uo(e) {
|
|
988
988
|
return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
|
|
989
989
|
}
|
|
990
|
-
function
|
|
990
|
+
function xr(e, t, n, o, a, r, l) {
|
|
991
991
|
const u = t.getBoundingClientRect(), f = o - u.left, m = a - u.top;
|
|
992
|
-
!Number.isFinite(f) || !Number.isFinite(m) || (e.dataset.cursorCanvasX = String(f), e.dataset.cursorCanvasY = String(m), e.dataset.caretX = String(f), e.dataset.caretY = String(m), e.dataset.anchorDirection = l,
|
|
992
|
+
!Number.isFinite(f) || !Number.isFinite(m) || (e.dataset.cursorCanvasX = String(f), e.dataset.cursorCanvasY = String(m), e.dataset.caretX = String(f), e.dataset.caretY = String(m), e.dataset.anchorDirection = l, On(
|
|
993
993
|
e,
|
|
994
994
|
t,
|
|
995
995
|
n,
|
|
@@ -1000,86 +1000,86 @@ function vr(e, t, n, o, a, r, l) {
|
|
|
1000
1000
|
!0
|
|
1001
1001
|
));
|
|
1002
1002
|
}
|
|
1003
|
-
function
|
|
1003
|
+
function wr(e) {
|
|
1004
1004
|
const t = document.createElement("div");
|
|
1005
|
-
return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0",
|
|
1005
|
+
return t.id = e, t.dataset.comparisonTooltip = "true", t.style.background = "linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86))", t.style.border = "1px solid rgba(255, 255, 255, 0.58)", t.style.borderRadius = "10px", t.style.boxShadow = "0 8px 24px rgba(15, 23, 42, 0.18)", t.style.color = "#111827", t.style.left = "0", t.style.opacity = "0", Hn(t), t.style.maxWidth = "min(360px, calc(100% - 16px))", t.style.overflow = "hidden", t.style.padding = "8px 10px", t.style.pointerEvents = "none", t.style.position = "absolute", t.style.textAlign = "left", t.style.top = "0", t.style.transform = "none", t.style.willChange = "left, top", t.style.whiteSpace = "normal", t.style.wordBreak = "normal", t.style.overflowWrap = "normal", t.style.zIndex = "10", t;
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function _r(e) {
|
|
1008
1008
|
e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1011
|
-
e.__onNavigationChange && (window.removeEventListener(
|
|
1010
|
+
function Sr(e) {
|
|
1011
|
+
e.__onNavigationChange && (window.removeEventListener($n, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
|
|
1012
1012
|
}
|
|
1013
|
-
function
|
|
1013
|
+
function kr(e) {
|
|
1014
1014
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
1015
1015
|
}
|
|
1016
|
-
function
|
|
1017
|
-
kt(e),
|
|
1016
|
+
function Un(e, t) {
|
|
1017
|
+
kt(e), Ko(e), _r(e), Sr(e), kr(e), e.__onDetailsClick && e.removeEventListener("click", e.__onDetailsClick), e.__onTooltipPointerEnter && e.removeEventListener("pointerenter", e.__onTooltipPointerEnter), e.__onTooltipPointerLeave && e.removeEventListener("pointerleave", e.__onTooltipPointerLeave), t && e.__onCanvasPointerEnter && t.removeEventListener("pointerenter", e.__onCanvasPointerEnter), t && e.__onCanvasPointerMove && t.removeEventListener("pointermove", e.__onCanvasPointerMove), t && e.__onCanvasPointerLeave && t.removeEventListener("pointerleave", e.__onCanvasPointerLeave), t && e.__onCanvasClick && t.removeEventListener("click", e.__onCanvasClick), t && e.__onCanvasPointerUp && t.removeEventListener("pointerup", e.__onCanvasPointerUp), e.remove();
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1020
|
-
e.__onNavigationChange || (
|
|
1019
|
+
function Tr(e, t, n) {
|
|
1020
|
+
e.__onNavigationChange || (Ga(), e.__onNavigationChange = () => {
|
|
1021
1021
|
if (!n.isConnected) {
|
|
1022
|
-
|
|
1022
|
+
Un(e, n);
|
|
1023
1023
|
return;
|
|
1024
1024
|
}
|
|
1025
1025
|
je(e, t, !0);
|
|
1026
|
-
}, window.addEventListener(
|
|
1026
|
+
}, window.addEventListener($n, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
|
|
1027
1027
|
}
|
|
1028
|
-
function
|
|
1028
|
+
function Lr(e, t) {
|
|
1029
1029
|
e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
|
|
1030
|
-
t.isConnected ||
|
|
1030
|
+
t.isConnected || Un(e, t);
|
|
1031
1031
|
}), e.__disconnectObserver.observe(document.body, {
|
|
1032
1032
|
childList: !0,
|
|
1033
1033
|
subtree: !0
|
|
1034
1034
|
}));
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1036
|
+
function Dr(e, t, n) {
|
|
1037
1037
|
Array.from(
|
|
1038
1038
|
e.querySelectorAll('[data-comparison-tooltip="true"]')
|
|
1039
1039
|
).forEach((a) => {
|
|
1040
|
-
a.id !== t &&
|
|
1040
|
+
a.id !== t && Un(a, n);
|
|
1041
1041
|
});
|
|
1042
1042
|
}
|
|
1043
1043
|
function kt(e) {
|
|
1044
1044
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
1045
1045
|
}
|
|
1046
|
-
function
|
|
1046
|
+
function Ko(e) {
|
|
1047
1047
|
typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1049
|
+
function Ir(e) {
|
|
1050
1050
|
e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1052
|
+
function co(e, t, n, o, a) {
|
|
1053
1053
|
const r = t.getBoundingClientRect(), l = o - r.left, u = a - r.top;
|
|
1054
1054
|
!Number.isFinite(l) || !Number.isFinite(u) || (e.dataset.cursorCanvasX = String(l), e.dataset.cursorCanvasY = String(u), e.dataset.caretX = String(l), e.dataset.caretY = String(u), e.__pendingCursorClientX = o, e.__pendingCursorClientY = a, typeof e.__cursorRafId != "number" && (e.__cursorRafId = window.requestAnimationFrame(() => {
|
|
1055
1055
|
e.__cursorRafId = void 0;
|
|
1056
1056
|
const f = e.__pendingCursorClientX, m = e.__pendingCursorClientY;
|
|
1057
1057
|
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(f) || !Number.isFinite(m))
|
|
1058
1058
|
return;
|
|
1059
|
-
const D =
|
|
1060
|
-
e.parentElement !== D && D.appendChild(e),
|
|
1059
|
+
const D = Wn(t);
|
|
1060
|
+
e.parentElement !== D && D.appendChild(e), xr(
|
|
1061
1061
|
e,
|
|
1062
1062
|
t,
|
|
1063
1063
|
D,
|
|
1064
1064
|
f,
|
|
1065
1065
|
m,
|
|
1066
1066
|
n,
|
|
1067
|
-
|
|
1067
|
+
Uo(e)
|
|
1068
1068
|
);
|
|
1069
1069
|
})));
|
|
1070
1070
|
}
|
|
1071
1071
|
function je(e, t, n = !1) {
|
|
1072
|
-
_t(e) && !n || (kt(e),
|
|
1072
|
+
_t(e) && !n || (kt(e), Ko(e), zo(e, !1), ur(e), e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, e.__detailsPayload = void 0, e.__lastLeftPx = void 0, e.__lastTopPx = void 0, delete e.dataset.cursorCanvasX, delete e.dataset.cursorCanvasY, e.__isTooltipHovered = !1, e.style.pointerEvents = "none", e.style.opacity = "0", dn(t));
|
|
1073
1073
|
}
|
|
1074
|
-
function
|
|
1074
|
+
function pn(e, t, n = Xa) {
|
|
1075
1075
|
e.__isTooltipHovered || (kt(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
1076
1076
|
e.__isTooltipHovered || je(e, t);
|
|
1077
1077
|
}, n));
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1080
|
-
const { maxTooltipItems: r } =
|
|
1079
|
+
function Pr(e, t, n, o, a) {
|
|
1080
|
+
const { maxTooltipItems: r } = Ho(a);
|
|
1081
1081
|
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (l) => {
|
|
1082
|
-
if (!(ct() && _t(e)) && (
|
|
1082
|
+
if (!(ct() && _t(e)) && (co(
|
|
1083
1083
|
e,
|
|
1084
1084
|
t,
|
|
1085
1085
|
o,
|
|
@@ -1094,7 +1094,7 @@ function Tr(e, t, n, o, a) {
|
|
|
1094
1094
|
}, t.addEventListener("pointerenter", e.__onCanvasPointerEnter, {
|
|
1095
1095
|
passive: !0
|
|
1096
1096
|
})), e.__onCanvasPointerMove || (e.__onCanvasPointerMove = (l) => {
|
|
1097
|
-
ct() && _t(e) ||
|
|
1097
|
+
ct() && _t(e) || co(
|
|
1098
1098
|
e,
|
|
1099
1099
|
t,
|
|
1100
1100
|
o,
|
|
@@ -1104,7 +1104,7 @@ function Tr(e, t, n, o, a) {
|
|
|
1104
1104
|
}, t.addEventListener("pointermove", e.__onCanvasPointerMove, {
|
|
1105
1105
|
passive: !0
|
|
1106
1106
|
})), e.__onCanvasPointerLeave || (e.__onCanvasPointerLeave = () => {
|
|
1107
|
-
ct() && _t(e) ||
|
|
1107
|
+
ct() && _t(e) || pn(e, n);
|
|
1108
1108
|
}, t.addEventListener("pointerleave", e.__onCanvasPointerLeave, {
|
|
1109
1109
|
passive: !0
|
|
1110
1110
|
})), e.__onCanvasClick || (e.__onCanvasClick = (l) => {
|
|
@@ -1112,15 +1112,15 @@ function Tr(e, t, n, o, a) {
|
|
|
1112
1112
|
if (ct() || !(a != null && a.onViewFullDetails) || !e.__detailsPayload || e.style.opacity !== "1")
|
|
1113
1113
|
return;
|
|
1114
1114
|
const u = (B) => {
|
|
1115
|
-
var S, x, $,
|
|
1115
|
+
var S, x, $, q;
|
|
1116
1116
|
if (B.length === 0)
|
|
1117
1117
|
return !1;
|
|
1118
1118
|
const J = (S = B.find(
|
|
1119
1119
|
(O) => typeof O.dataIndex == "number"
|
|
1120
|
-
)) == null ? void 0 : S.dataIndex, k = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], V = ($ = n == null ? void 0 : n.config) == null ? void 0 : $.type, _ =
|
|
1120
|
+
)) == null ? void 0 : S.dataIndex, k = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], V = ($ = n == null ? void 0 : n.config) == null ? void 0 : $.type, _ = Wo(
|
|
1121
1121
|
B,
|
|
1122
1122
|
o,
|
|
1123
|
-
(a == null ? void 0 : a.viewFullDetailsLabel) ??
|
|
1123
|
+
(a == null ? void 0 : a.viewFullDetailsLabel) ?? Vo(),
|
|
1124
1124
|
r,
|
|
1125
1125
|
!0,
|
|
1126
1126
|
k,
|
|
@@ -1128,7 +1128,7 @@ function Tr(e, t, n, o, a) {
|
|
|
1128
1128
|
V,
|
|
1129
1129
|
a == null ? void 0 : a.comparisonXAxis
|
|
1130
1130
|
).detailsPayload;
|
|
1131
|
-
return (
|
|
1131
|
+
return (q = a.onViewFullDetails) == null || q.call(a, _, n), je(e, n), !0;
|
|
1132
1132
|
}, f = ((I = n == null ? void 0 : n.tooltip) == null ? void 0 : I.dataPoints) ?? [];
|
|
1133
1133
|
if (u(f))
|
|
1134
1134
|
return;
|
|
@@ -1189,16 +1189,16 @@ function Tr(e, t, n, o, a) {
|
|
|
1189
1189
|
je(e, n, !0);
|
|
1190
1190
|
return;
|
|
1191
1191
|
}
|
|
1192
|
-
const v = C[0], h =
|
|
1192
|
+
const v = C[0], h = dr(
|
|
1193
1193
|
e,
|
|
1194
1194
|
v.datasetIndex,
|
|
1195
1195
|
v.index
|
|
1196
|
-
), L = Number.isFinite(e.__lastPhoneTapAt), I = h &&
|
|
1196
|
+
), L = Number.isFinite(e.__lastPhoneTapAt), I = h && fr(e, l.offsetX, l.offsetY, l.timeStamp);
|
|
1197
1197
|
if (L && !I && h) {
|
|
1198
1198
|
je(e, n, !0);
|
|
1199
1199
|
return;
|
|
1200
1200
|
}
|
|
1201
|
-
|
|
1201
|
+
zo(e, !0), kt(e), e.dataset.cursorCanvasX = String(l.offsetX), e.dataset.cursorCanvasY = String(l.offsetY), e.dataset.caretX = String(l.offsetX), e.dataset.caretY = String(l.offsetY), f.setActiveElements(C, {
|
|
1202
1202
|
x: l.offsetX,
|
|
1203
1203
|
y: l.offsetY
|
|
1204
1204
|
});
|
|
@@ -1211,7 +1211,7 @@ function Tr(e, t, n, o, a) {
|
|
|
1211
1211
|
a.onViewFullDetails(e.__detailsPayload, n), je(e, n);
|
|
1212
1212
|
return;
|
|
1213
1213
|
}
|
|
1214
|
-
|
|
1214
|
+
cr(
|
|
1215
1215
|
e,
|
|
1216
1216
|
l.offsetX,
|
|
1217
1217
|
l.offsetY,
|
|
@@ -1229,20 +1229,20 @@ function Tr(e, t, n, o, a) {
|
|
|
1229
1229
|
}, e.addEventListener("click", e.__onDetailsClick)), e.__onTooltipPointerEnter || (e.__onTooltipPointerEnter = () => {
|
|
1230
1230
|
e.__isTooltipHovered = !0, kt(e);
|
|
1231
1231
|
}, e.addEventListener("pointerenter", e.__onTooltipPointerEnter)), e.__onTooltipPointerLeave || (e.__onTooltipPointerLeave = () => {
|
|
1232
|
-
e.__isTooltipHovered = !1,
|
|
1232
|
+
e.__isTooltipHovered = !1, pn(e, n);
|
|
1233
1233
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
1234
1234
|
}
|
|
1235
|
-
function
|
|
1235
|
+
function Mr(e, t, n) {
|
|
1236
1236
|
e.__onViewportChange || (e.__onViewportChange = () => {
|
|
1237
1237
|
if (e.style.opacity !== "1")
|
|
1238
1238
|
return;
|
|
1239
|
-
const o = Number(e.dataset.caretX), a = Number(e.dataset.caretY), r =
|
|
1239
|
+
const o = Number(e.dataset.caretX), a = Number(e.dataset.caretY), r = Uo(e);
|
|
1240
1240
|
if (!Number.isFinite(o) || !Number.isFinite(a)) {
|
|
1241
1241
|
e.style.opacity = "0";
|
|
1242
1242
|
return;
|
|
1243
1243
|
}
|
|
1244
|
-
const l =
|
|
1245
|
-
e.parentElement !== l && l.appendChild(e),
|
|
1244
|
+
const l = Wn(t);
|
|
1245
|
+
e.parentElement !== l && l.appendChild(e), Hn(e, l), On(
|
|
1246
1246
|
e,
|
|
1247
1247
|
t,
|
|
1248
1248
|
l,
|
|
@@ -1259,8 +1259,8 @@ function Lr(e, t, n) {
|
|
|
1259
1259
|
passive: !0
|
|
1260
1260
|
}));
|
|
1261
1261
|
}
|
|
1262
|
-
function
|
|
1263
|
-
const { maxTooltipItems: n } =
|
|
1262
|
+
function Br(e, t) {
|
|
1263
|
+
const { maxTooltipItems: n } = Ho(t);
|
|
1264
1264
|
return ({ chart: o, tooltip: a }) => {
|
|
1265
1265
|
var j, G, F, y;
|
|
1266
1266
|
if (typeof document > "u" || typeof window > "u")
|
|
@@ -1268,25 +1268,25 @@ function Dr(e, t) {
|
|
|
1268
1268
|
const r = o == null ? void 0 : o.canvas;
|
|
1269
1269
|
if (!(r instanceof HTMLCanvasElement))
|
|
1270
1270
|
return;
|
|
1271
|
-
const l =
|
|
1271
|
+
const l = Wn(r), u = `comparison-tooltip-${String(o.id)}`;
|
|
1272
1272
|
let f = document.querySelector(`#${u}`);
|
|
1273
|
-
if (f || (f =
|
|
1273
|
+
if (f || (f = wr(u)), f.parentElement !== l && l.appendChild(f), Hn(f, l), Mr(f, r, e), Tr(f, o, r), Lr(f, r), Pr(f, r, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
|
|
1274
1274
|
if (ct() && _t(f))
|
|
1275
1275
|
return;
|
|
1276
|
-
t != null && t.onViewFullDetails ?
|
|
1276
|
+
t != null && t.onViewFullDetails ? pn(f, o) : je(f, o);
|
|
1277
1277
|
return;
|
|
1278
1278
|
}
|
|
1279
1279
|
const m = (a == null ? void 0 : a.dataPoints) ?? [];
|
|
1280
1280
|
if (m.length === 0) {
|
|
1281
1281
|
if (ct() && _t(f))
|
|
1282
1282
|
return;
|
|
1283
|
-
t != null && t.onViewFullDetails ?
|
|
1283
|
+
t != null && t.onViewFullDetails ? pn(f, o) : je(f, o);
|
|
1284
1284
|
return;
|
|
1285
1285
|
}
|
|
1286
|
-
|
|
1287
|
-
const D = (t == null ? void 0 : t.viewFullDetailsLabel) ??
|
|
1286
|
+
Dr(l, u, r), kt(f);
|
|
1287
|
+
const D = (t == null ? void 0 : t.viewFullDetailsLabel) ?? Vo(), W = !!(t != null && t.onViewFullDetails), C = (j = m.find((b) => typeof b.dataIndex == "number")) == null ? void 0 : j.dataIndex, v = ((G = o == null ? void 0 : o.data) == null ? void 0 : G.datasets) ?? [], h = (F = o == null ? void 0 : o.config) == null ? void 0 : F.type, {
|
|
1288
1288
|
markup: { detailsPayload: L, hasCollapsedValues: I }
|
|
1289
|
-
} =
|
|
1289
|
+
} = gr(
|
|
1290
1290
|
f,
|
|
1291
1291
|
m,
|
|
1292
1292
|
e,
|
|
@@ -1312,29 +1312,29 @@ function Dr(e, t) {
|
|
|
1312
1312
|
return M;
|
|
1313
1313
|
const z = Number.isFinite(S) ? S : B, re = Math.abs(b - z);
|
|
1314
1314
|
return Math.abs(M - z) > re ? M : b;
|
|
1315
|
-
}, Number.NaN) : Number.NaN, $ = J,
|
|
1316
|
-
|
|
1315
|
+
}, Number.NaN) : Number.NaN, $ = J, q = k, O = e ? Number.isFinite(S) && Number.isFinite(x) && x < S ? "left" : "right" : "center";
|
|
1316
|
+
On(
|
|
1317
1317
|
f,
|
|
1318
1318
|
r,
|
|
1319
1319
|
l,
|
|
1320
1320
|
$,
|
|
1321
|
-
|
|
1321
|
+
q,
|
|
1322
1322
|
e,
|
|
1323
1323
|
O,
|
|
1324
1324
|
!0
|
|
1325
|
-
), f.dataset.caretX = String($), f.dataset.caretY = String(
|
|
1325
|
+
), f.dataset.caretX = String($), f.dataset.caretY = String(q), f.dataset.anchorDirection = O, f.style.opacity = "1";
|
|
1326
1326
|
};
|
|
1327
1327
|
}
|
|
1328
|
-
function
|
|
1328
|
+
function Rn(e = !1, t) {
|
|
1329
1329
|
return {
|
|
1330
|
-
...
|
|
1330
|
+
...Ro(e ? "y" : "x"),
|
|
1331
1331
|
enabled: !1,
|
|
1332
|
-
filter:
|
|
1333
|
-
external:
|
|
1332
|
+
filter: lr,
|
|
1333
|
+
external: Br(e, t)
|
|
1334
1334
|
};
|
|
1335
1335
|
}
|
|
1336
|
-
const
|
|
1337
|
-
function
|
|
1336
|
+
const fo = "en-US";
|
|
1337
|
+
function mo(e, t) {
|
|
1338
1338
|
const n = t.split(".");
|
|
1339
1339
|
let o = e;
|
|
1340
1340
|
for (const a of n) {
|
|
@@ -1344,11 +1344,11 @@ function uo(e, t) {
|
|
|
1344
1344
|
}
|
|
1345
1345
|
return typeof o == "string" ? o : void 0;
|
|
1346
1346
|
}
|
|
1347
|
-
function
|
|
1348
|
-
const e =
|
|
1349
|
-
return `(${
|
|
1347
|
+
function Ar() {
|
|
1348
|
+
const e = Vn(), t = "report.widget.legend.comparison";
|
|
1349
|
+
return `(${mo(cn[e] ?? cn[fo], t) ?? mo(cn[fo], t) ?? "Comparison"})`;
|
|
1350
1350
|
}
|
|
1351
|
-
function
|
|
1351
|
+
function Xo(e) {
|
|
1352
1352
|
function o(C, v, h) {
|
|
1353
1353
|
if (C.measureText(v).width <= h) return v;
|
|
1354
1354
|
const L = "…";
|
|
@@ -1364,13 +1364,13 @@ function Oo(e) {
|
|
|
1364
1364
|
return (h ?? v).trim();
|
|
1365
1365
|
}
|
|
1366
1366
|
function r(C) {
|
|
1367
|
-
const v = a(C), h =
|
|
1367
|
+
const v = a(C), h = eo(v);
|
|
1368
1368
|
return h.length > 0 ? h : v;
|
|
1369
1369
|
}
|
|
1370
1370
|
function l(C, v) {
|
|
1371
1371
|
const h = C == null ? "" : String(C).trim();
|
|
1372
1372
|
if (h.length === 0) return h;
|
|
1373
|
-
const L =
|
|
1373
|
+
const L = Ar();
|
|
1374
1374
|
return h.endsWith(` ${L}`) || h.endsWith(L) ? h : (v == null ? void 0 : v.dash) === !0 || (v == null ? void 0 : v.isCompare) === !0 ? `${h} ${L}` : h;
|
|
1375
1375
|
}
|
|
1376
1376
|
const u = c(() => ({
|
|
@@ -1386,7 +1386,7 @@ function Oo(e) {
|
|
|
1386
1386
|
const v = C.chart.data.datasets[C.datasetIndex];
|
|
1387
1387
|
return v.borderColor ? Array.isArray(v.borderColor) ? v.borderColor[C.dataIndex] : v.borderColor : v.backgroundColor ? Array.isArray(v.backgroundColor) ? v.backgroundColor[C.dataIndex] : v.backgroundColor : "#000";
|
|
1388
1388
|
},
|
|
1389
|
-
formatter: (C) =>
|
|
1389
|
+
formatter: (C) => eo(C)
|
|
1390
1390
|
})), f = c(() => ({
|
|
1391
1391
|
display: e.showX,
|
|
1392
1392
|
position: e.xPosition,
|
|
@@ -1517,16 +1517,16 @@ function Oo(e) {
|
|
|
1517
1517
|
})), W = c(() => e.isTransposed);
|
|
1518
1518
|
return { datalabels: u, xCfg: f, yCfg: m, isTransposed: W, legend: D };
|
|
1519
1519
|
}
|
|
1520
|
-
const
|
|
1520
|
+
const Fr = {
|
|
1521
1521
|
key: 0,
|
|
1522
1522
|
class: "pointer-events-none fixed inset-0 z-[120] flex justify-end"
|
|
1523
|
-
},
|
|
1523
|
+
}, Rr = ["aria-label"], Vr = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, Nr = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, $r = { class: "flex items-center gap-1.5" }, zr = {
|
|
1524
1524
|
key: 0,
|
|
1525
1525
|
class: "pb-2 fm-typo-en-body-lg-600 text-fm-color-typo-primary"
|
|
1526
|
-
},
|
|
1526
|
+
}, Hr = ["onMouseenter", "onFocus"], Wr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, Or = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, Ur = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, Kr = {
|
|
1527
1527
|
key: 1,
|
|
1528
1528
|
class: "flex justify-center px-2 pt-2"
|
|
1529
|
-
},
|
|
1529
|
+
}, po = 500, Xr = 320, sn = 30, Kt = /* @__PURE__ */ Ae({
|
|
1530
1530
|
__name: "TooltipDetailSidesheet",
|
|
1531
1531
|
props: {
|
|
1532
1532
|
modelValue: { type: Boolean },
|
|
@@ -1534,7 +1534,7 @@ const Pr = {
|
|
|
1534
1534
|
},
|
|
1535
1535
|
emits: ["update:modelValue", "value-hover", "value-leave"],
|
|
1536
1536
|
setup(e, { emit: t }) {
|
|
1537
|
-
const n = e, o = t, { t: a } = mt(), r = P(null), l = P(
|
|
1537
|
+
const n = e, o = t, { t: a } = mt(), r = P(null), l = P(po), u = P(!1), f = P({}), m = c({
|
|
1538
1538
|
get: () => n.modelValue,
|
|
1539
1539
|
set: (F) => o("update:modelValue", F)
|
|
1540
1540
|
}), D = c(() => {
|
|
@@ -1542,7 +1542,7 @@ const Pr = {
|
|
|
1542
1542
|
return (((F = n.detailsPayload) == null ? void 0 : F.sections) ?? []).filter((y) => y.values.length > 0);
|
|
1543
1543
|
}), W = c(
|
|
1544
1544
|
() => D.value.map((F, y) => {
|
|
1545
|
-
const b = A(F.title, y), R = Math.min(f.value[b] ??
|
|
1545
|
+
const b = A(F.title, y), R = Math.min(f.value[b] ?? sn, F.values.length);
|
|
1546
1546
|
return {
|
|
1547
1547
|
...F,
|
|
1548
1548
|
key: b,
|
|
@@ -1573,24 +1573,24 @@ const Pr = {
|
|
|
1573
1573
|
}
|
|
1574
1574
|
function B() {
|
|
1575
1575
|
f.value = D.value.reduce(
|
|
1576
|
-
(F, y, b) => (F[A(y.title, b)] =
|
|
1576
|
+
(F, y, b) => (F[A(y.title, b)] = sn, F),
|
|
1577
1577
|
{}
|
|
1578
1578
|
);
|
|
1579
1579
|
}
|
|
1580
1580
|
function J(F) {
|
|
1581
1581
|
f.value = {
|
|
1582
1582
|
...f.value,
|
|
1583
|
-
[F]: (f.value[F] ??
|
|
1583
|
+
[F]: (f.value[F] ?? sn) + sn
|
|
1584
1584
|
};
|
|
1585
1585
|
}
|
|
1586
1586
|
function k() {
|
|
1587
1587
|
I(), m.value = !1;
|
|
1588
1588
|
}
|
|
1589
1589
|
function V() {
|
|
1590
|
-
return typeof window > "u" ?
|
|
1590
|
+
return typeof window > "u" ? po : Math.floor(window.innerWidth * 0.94);
|
|
1591
1591
|
}
|
|
1592
1592
|
function _(F) {
|
|
1593
|
-
const y = V(), b = Math.min(
|
|
1593
|
+
const y = V(), b = Math.min(Xr, y);
|
|
1594
1594
|
return Math.min(y, Math.max(b, Math.floor(F)));
|
|
1595
1595
|
}
|
|
1596
1596
|
function S(F) {
|
|
@@ -1602,7 +1602,7 @@ const Pr = {
|
|
|
1602
1602
|
function $(F) {
|
|
1603
1603
|
u.value && S(F.clientX);
|
|
1604
1604
|
}
|
|
1605
|
-
function
|
|
1605
|
+
function q(F) {
|
|
1606
1606
|
m.value && (u.value = !0, S(F.clientX), document.addEventListener("pointermove", $), document.addEventListener("pointerup", x), document.addEventListener("pointercancel", x));
|
|
1607
1607
|
}
|
|
1608
1608
|
function O() {
|
|
@@ -1623,13 +1623,13 @@ const Pr = {
|
|
|
1623
1623
|
}
|
|
1624
1624
|
return Le([D, m], () => {
|
|
1625
1625
|
m.value && B();
|
|
1626
|
-
}),
|
|
1626
|
+
}), zt(() => {
|
|
1627
1627
|
l.value = _(l.value), B(), document.addEventListener("pointerdown", j, !0), document.addEventListener("keydown", G), window.addEventListener("resize", O);
|
|
1628
|
-
}),
|
|
1628
|
+
}), Co(() => {
|
|
1629
1629
|
x(), document.removeEventListener("pointerdown", j, !0), document.removeEventListener("keydown", G), window.removeEventListener("resize", O);
|
|
1630
1630
|
}), (F, y) => {
|
|
1631
1631
|
const b = fe("FmButton");
|
|
1632
|
-
return
|
|
1632
|
+
return K(), de(ia, {
|
|
1633
1633
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1634
1634
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1635
1635
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1638,7 +1638,7 @@ const Pr = {
|
|
|
1638
1638
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1639
1639
|
}, {
|
|
1640
1640
|
default: De(() => [
|
|
1641
|
-
m.value ? (
|
|
1641
|
+
m.value ? (K(), le("div", Fr, [
|
|
1642
1642
|
Y("div", {
|
|
1643
1643
|
ref_key: "panelRef",
|
|
1644
1644
|
ref: r,
|
|
@@ -1650,11 +1650,11 @@ const Pr = {
|
|
|
1650
1650
|
}, [
|
|
1651
1651
|
Y("div", {
|
|
1652
1652
|
class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
|
|
1653
|
-
onPointerdown:
|
|
1653
|
+
onPointerdown: un(q, ["prevent"])
|
|
1654
1654
|
}, null, 32),
|
|
1655
|
-
Y("div",
|
|
1656
|
-
Y("div",
|
|
1657
|
-
Y("div",
|
|
1655
|
+
Y("div", Vr, [
|
|
1656
|
+
Y("div", Nr, Ce(i(a)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1657
|
+
Y("div", $r, [
|
|
1658
1658
|
pe(b, {
|
|
1659
1659
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1660
1660
|
variant: "tertiary",
|
|
@@ -1668,12 +1668,12 @@ const Pr = {
|
|
|
1668
1668
|
class: "flex flex-1 flex-col gap-4 overflow-y-auto px-4 py-4 sm:px-5",
|
|
1669
1669
|
onMouseleave: I
|
|
1670
1670
|
}, [
|
|
1671
|
-
(
|
|
1671
|
+
(K(!0), le(Ne, null, ft(W.value, (R, T) => (K(), le("div", {
|
|
1672
1672
|
key: R.key,
|
|
1673
1673
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1674
1674
|
}, [
|
|
1675
|
-
R.title ? (
|
|
1676
|
-
(
|
|
1675
|
+
R.title ? (K(), le("p", zr, Ce(R.title), 1)) : he("", !0),
|
|
1676
|
+
(K(!0), le(Ne, null, ft(R.visibleValues, (M, z) => (K(), le("button", {
|
|
1677
1677
|
key: `${M.text}-${z}`,
|
|
1678
1678
|
type: "button",
|
|
1679
1679
|
class: "fm-typo-en-body-lg-400 text-fm-color-typo-primary flex w-full items-start justify-between gap-3 bg-transparent px-2 py-1.5 text-left transition-colors hover:bg-fm-color-opacity-sm focus-visible:bg-fm-color-opacity-sm focus-visible:outline-none",
|
|
@@ -1682,7 +1682,7 @@ const Pr = {
|
|
|
1682
1682
|
onMouseleave: I,
|
|
1683
1683
|
onBlur: I
|
|
1684
1684
|
}, [
|
|
1685
|
-
Y("span",
|
|
1685
|
+
Y("span", Wr, [
|
|
1686
1686
|
Y("span", {
|
|
1687
1687
|
class: Ie([
|
|
1688
1688
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
@@ -1690,11 +1690,11 @@ const Pr = {
|
|
|
1690
1690
|
]),
|
|
1691
1691
|
style: Pe({ backgroundColor: M.color })
|
|
1692
1692
|
}, null, 6),
|
|
1693
|
-
Y("span",
|
|
1693
|
+
Y("span", Or, Ce(h(M)), 1)
|
|
1694
1694
|
]),
|
|
1695
|
-
Y("span",
|
|
1696
|
-
], 40,
|
|
1697
|
-
R.hasMore ? (
|
|
1695
|
+
Y("span", Ur, Ce(v(M)), 1)
|
|
1696
|
+
], 40, Hr))), 128)),
|
|
1697
|
+
R.hasMore ? (K(), le("div", Kr, [
|
|
1698
1698
|
pe(b, {
|
|
1699
1699
|
class: "w-full",
|
|
1700
1700
|
variant: "tertiary",
|
|
@@ -1702,24 +1702,24 @@ const Pr = {
|
|
|
1702
1702
|
label: `${i(a)("report.widget.legend.viewMore")} (${R.remainingCount})`,
|
|
1703
1703
|
onClick: (M) => J(R.key)
|
|
1704
1704
|
}, null, 8, ["label", "onClick"])
|
|
1705
|
-
])) :
|
|
1705
|
+
])) : he("", !0)
|
|
1706
1706
|
]))), 128))
|
|
1707
1707
|
], 32)
|
|
1708
|
-
], 12,
|
|
1709
|
-
])) :
|
|
1708
|
+
], 12, Rr)
|
|
1709
|
+
])) : he("", !0)
|
|
1710
1710
|
]),
|
|
1711
1711
|
_: 1
|
|
1712
1712
|
});
|
|
1713
1713
|
};
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), Yr = {
|
|
1716
1716
|
type: "button",
|
|
1717
1717
|
class: "inline-flex cursor-pointer select-none items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4]",
|
|
1718
1718
|
style: { fontSize: "var(--legend-font-size)" }
|
|
1719
|
-
},
|
|
1719
|
+
}, Er = ["aria-pressed", "onClick"], qr = ["title"], Gr = {
|
|
1720
1720
|
key: 0,
|
|
1721
1721
|
class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
|
|
1722
|
-
},
|
|
1722
|
+
}, jr = 36, ho = 2, go = 16, Jr = 50, Zr = 6, Qr = /* @__PURE__ */ Ae({
|
|
1723
1723
|
__name: "ChartLegendPanel",
|
|
1724
1724
|
props: {
|
|
1725
1725
|
chartRef: {},
|
|
@@ -1746,7 +1746,7 @@ const Pr = {
|
|
|
1746
1746
|
), $ = c(() => ({
|
|
1747
1747
|
height: `${Math.max(0, I.value)}px`,
|
|
1748
1748
|
transform: `translateY(${Math.max(0, A.value)}px)`
|
|
1749
|
-
})),
|
|
1749
|
+
})), q = c(() => typeof n.textColor == "string" && n.textColor.trim().length > 0 ? n.textColor : "#6b6b6b"), O = c(() => typeof n.fontSize == "number" && Number.isFinite(n.fontSize) && n.fontSize > 0 ? n.fontSize : 12);
|
|
1750
1750
|
function j(s) {
|
|
1751
1751
|
G({ height: s, width: 0 });
|
|
1752
1752
|
}
|
|
@@ -1762,7 +1762,7 @@ const Pr = {
|
|
|
1762
1762
|
S != null && (window.clearTimeout(S), S = null);
|
|
1763
1763
|
}
|
|
1764
1764
|
function y() {
|
|
1765
|
-
const s =
|
|
1765
|
+
const s = Oo(
|
|
1766
1766
|
n.chartRef
|
|
1767
1767
|
);
|
|
1768
1768
|
if (s)
|
|
@@ -1774,7 +1774,7 @@ const Pr = {
|
|
|
1774
1774
|
const N = g.querySelector("canvas");
|
|
1775
1775
|
if (!(N instanceof HTMLCanvasElement))
|
|
1776
1776
|
continue;
|
|
1777
|
-
const U =
|
|
1777
|
+
const U = Tn.getChart(N);
|
|
1778
1778
|
if (U)
|
|
1779
1779
|
return U;
|
|
1780
1780
|
}
|
|
@@ -1806,8 +1806,8 @@ const Pr = {
|
|
|
1806
1806
|
I.value = 0, A.value = 0;
|
|
1807
1807
|
return;
|
|
1808
1808
|
}
|
|
1809
|
-
const U = p,
|
|
1810
|
-
I.value =
|
|
1809
|
+
const U = p, ee = Math.max(18, Math.round(p / d * U)), oe = Math.max(0, U - ee), X = Math.max(1, d - p), ce = Math.round(g / X * oe);
|
|
1810
|
+
I.value = ee, A.value = ce;
|
|
1811
1811
|
}
|
|
1812
1812
|
function M() {
|
|
1813
1813
|
T();
|
|
@@ -1816,8 +1816,8 @@ const Pr = {
|
|
|
1816
1816
|
const p = v.value, d = C.value;
|
|
1817
1817
|
if (!p || !d || !L.value)
|
|
1818
1818
|
return;
|
|
1819
|
-
const g = d.getBoundingClientRect(), N = s.clientY - g.top, U = Math.max(0, N - I.value / 2),
|
|
1820
|
-
p.scrollTop = oe *
|
|
1819
|
+
const g = d.getBoundingClientRect(), N = s.clientY - g.top, U = Math.max(0, N - I.value / 2), ee = Math.max(1, p.clientHeight - I.value), oe = Math.min(1, U / ee), X = Math.max(0, p.scrollHeight - p.clientHeight);
|
|
1820
|
+
p.scrollTop = oe * X, T();
|
|
1821
1821
|
}
|
|
1822
1822
|
function re(s) {
|
|
1823
1823
|
L.value && (B.value = !0, J.value = s.clientY, k.value = A.value);
|
|
@@ -1828,8 +1828,8 @@ const Pr = {
|
|
|
1828
1828
|
const p = v.value;
|
|
1829
1829
|
if (!p)
|
|
1830
1830
|
return;
|
|
1831
|
-
const d = s.clientY - J.value, g = Math.max(1, p.clientHeight - I.value), U = Math.min(g, Math.max(0, k.value + d)) / g,
|
|
1832
|
-
p.scrollTop = U *
|
|
1831
|
+
const d = s.clientY - J.value, g = Math.max(1, p.clientHeight - I.value), U = Math.min(g, Math.max(0, k.value + d)) / g, ee = Math.max(0, p.scrollHeight - p.clientHeight);
|
|
1832
|
+
p.scrollTop = U * ee, T();
|
|
1833
1833
|
}
|
|
1834
1834
|
function H() {
|
|
1835
1835
|
B.value && (B.value = !1);
|
|
@@ -1860,9 +1860,9 @@ const Pr = {
|
|
|
1860
1860
|
return s;
|
|
1861
1861
|
const p = (N = n.chartRef) == null ? void 0 : N.$el;
|
|
1862
1862
|
if (p instanceof HTMLElement) {
|
|
1863
|
-
const
|
|
1864
|
-
if (
|
|
1865
|
-
return
|
|
1863
|
+
const ee = (U = p.closest(".chart-layout")) == null ? void 0 : U.parentElement;
|
|
1864
|
+
if (ee instanceof HTMLElement)
|
|
1865
|
+
return ee;
|
|
1866
1866
|
}
|
|
1867
1867
|
return null;
|
|
1868
1868
|
}
|
|
@@ -1874,12 +1874,12 @@ const Pr = {
|
|
|
1874
1874
|
const p = Number(s.getBoundingClientRect().width);
|
|
1875
1875
|
return Number.isFinite(p) && p > 0 ? p : null;
|
|
1876
1876
|
}
|
|
1877
|
-
function
|
|
1877
|
+
function me() {
|
|
1878
1878
|
const s = te();
|
|
1879
1879
|
if (s) {
|
|
1880
|
-
const
|
|
1881
|
-
if (Number.isFinite(
|
|
1882
|
-
return
|
|
1880
|
+
const ee = Number(s.getBoundingClientRect().height);
|
|
1881
|
+
if (Number.isFinite(ee) && ee > 0)
|
|
1882
|
+
return ee;
|
|
1883
1883
|
}
|
|
1884
1884
|
const p = Z();
|
|
1885
1885
|
if (!p)
|
|
@@ -1890,9 +1890,9 @@ const Pr = {
|
|
|
1890
1890
|
function ye() {
|
|
1891
1891
|
const s = te();
|
|
1892
1892
|
if (s) {
|
|
1893
|
-
const
|
|
1894
|
-
if (Number.isFinite(
|
|
1895
|
-
return
|
|
1893
|
+
const ee = Number(s.getBoundingClientRect().width);
|
|
1894
|
+
if (Number.isFinite(ee) && ee > 0)
|
|
1895
|
+
return ee;
|
|
1896
1896
|
}
|
|
1897
1897
|
const p = Z();
|
|
1898
1898
|
if (!p)
|
|
@@ -1901,11 +1901,11 @@ const Pr = {
|
|
|
1901
1901
|
return Number.isFinite(U) && U > 0 ? U : null;
|
|
1902
1902
|
}
|
|
1903
1903
|
function ne() {
|
|
1904
|
-
const s = y(), p = Number(s == null ? void 0 : s.height), d =
|
|
1904
|
+
const s = y(), p = Number(s == null ? void 0 : s.height), d = me();
|
|
1905
1905
|
if (_.value)
|
|
1906
|
-
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p -
|
|
1906
|
+
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p - go)) : d != null ? Math.max(0, Math.floor(d - go)) : 120;
|
|
1907
1907
|
if (d != null) {
|
|
1908
|
-
const g = d * 0.3, N = d -
|
|
1908
|
+
const g = d * 0.3, N = d - jr, U = Math.min(g, N);
|
|
1909
1909
|
return Math.max(0, Math.floor(U));
|
|
1910
1910
|
}
|
|
1911
1911
|
return Number.isFinite(p) && p > 0 ? Math.max(0, Math.floor(p * 0.3)) : 120;
|
|
@@ -1913,19 +1913,19 @@ const Pr = {
|
|
|
1913
1913
|
function we() {
|
|
1914
1914
|
var U;
|
|
1915
1915
|
if (_.value) {
|
|
1916
|
-
const
|
|
1917
|
-
if (
|
|
1918
|
-
return Math.max(0, Math.floor(
|
|
1919
|
-
const oe = y(),
|
|
1920
|
-
return Number.isFinite(
|
|
1916
|
+
const ee = ye();
|
|
1917
|
+
if (ee != null)
|
|
1918
|
+
return Math.max(0, Math.floor(ee * 0.3));
|
|
1919
|
+
const oe = y(), X = Number(oe == null ? void 0 : oe.width);
|
|
1920
|
+
return Number.isFinite(X) && X > 0 ? Math.max(0, Math.floor(X * 0.3)) : 180;
|
|
1921
1921
|
}
|
|
1922
1922
|
const s = ie();
|
|
1923
1923
|
if (s != null)
|
|
1924
1924
|
return Math.max(0, Math.floor(s * 0.3));
|
|
1925
1925
|
const p = y(), d = Number(p == null ? void 0 : p.width), g = Number(((U = W.value) == null ? void 0 : U.getBoundingClientRect().width) ?? 0);
|
|
1926
1926
|
if (Number.isFinite(d) && d > 0) {
|
|
1927
|
-
const
|
|
1928
|
-
return Math.max(0, Math.floor(
|
|
1927
|
+
const ee = d + (Number.isFinite(g) ? g : 0);
|
|
1928
|
+
return Math.max(0, Math.floor(ee * 0.3));
|
|
1929
1929
|
}
|
|
1930
1930
|
const N = ye();
|
|
1931
1931
|
return N != null ? Math.max(0, Math.floor(N * 0.3)) : 180;
|
|
@@ -1933,32 +1933,32 @@ const Pr = {
|
|
|
1933
1933
|
function _e(s, p) {
|
|
1934
1934
|
const d = n.chartColorBinding;
|
|
1935
1935
|
if (d) {
|
|
1936
|
-
const U = typeof s.datasetIndex == "number" ? s.datasetIndex : p,
|
|
1936
|
+
const U = typeof s.datasetIndex == "number" ? s.datasetIndex : p, ee = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : Math.max(1, Number(l.value.length));
|
|
1937
1937
|
if (d === xe.breakdown) {
|
|
1938
|
-
const
|
|
1938
|
+
const X = St({
|
|
1939
1939
|
fallbackIndex: U,
|
|
1940
|
-
metricCount:
|
|
1940
|
+
metricCount: ee
|
|
1941
1941
|
}), ce = Be({
|
|
1942
1942
|
datasetIndex: U,
|
|
1943
|
-
metricCount:
|
|
1943
|
+
metricCount: ee,
|
|
1944
1944
|
mode: xe.metric
|
|
1945
1945
|
});
|
|
1946
1946
|
return Tt({
|
|
1947
|
-
breakdownIndex:
|
|
1947
|
+
breakdownIndex: X,
|
|
1948
1948
|
metricIndex: ce,
|
|
1949
|
-
metricCount:
|
|
1949
|
+
metricCount: ee,
|
|
1950
1950
|
breakdownColors: n.chartBreakdownColors,
|
|
1951
1951
|
useSecondaryMetricShades: n.chartUseSecondaryMetricShades,
|
|
1952
1952
|
customColors: n.chartColors
|
|
1953
1953
|
});
|
|
1954
1954
|
}
|
|
1955
1955
|
if (d === xe.metric) {
|
|
1956
|
-
const
|
|
1956
|
+
const X = Be({
|
|
1957
1957
|
datasetIndex: U,
|
|
1958
|
-
metricCount:
|
|
1958
|
+
metricCount: ee,
|
|
1959
1959
|
mode: xe.metric
|
|
1960
1960
|
});
|
|
1961
|
-
return Je({ index:
|
|
1961
|
+
return Je({ index: X, customColors: n.chartColors });
|
|
1962
1962
|
}
|
|
1963
1963
|
const oe = typeof s.index == "number" ? s.index : U;
|
|
1964
1964
|
return Je({ index: oe, customColors: n.chartColors });
|
|
@@ -1980,14 +1980,14 @@ const Pr = {
|
|
|
1980
1980
|
return s;
|
|
1981
1981
|
const p = Number.isInteger(n.metricCount) && Number(n.metricCount) > 0 ? Number(n.metricCount) : 1;
|
|
1982
1982
|
return [...s.map((g, N) => {
|
|
1983
|
-
const U = typeof g.datasetIndex == "number" ? g.datasetIndex : N,
|
|
1983
|
+
const U = typeof g.datasetIndex == "number" ? g.datasetIndex : N, ee = St({
|
|
1984
1984
|
fallbackIndex: U,
|
|
1985
1985
|
metricCount: p
|
|
1986
1986
|
});
|
|
1987
1987
|
return {
|
|
1988
1988
|
item: g,
|
|
1989
1989
|
originalIndex: N,
|
|
1990
|
-
breakdownIndex:
|
|
1990
|
+
breakdownIndex: ee
|
|
1991
1991
|
};
|
|
1992
1992
|
})].sort((g, N) => g.breakdownIndex !== N.breakdownIndex ? g.breakdownIndex - N.breakdownIndex : g.originalIndex - N.originalIndex).map((g) => g.item);
|
|
1993
1993
|
}
|
|
@@ -1996,33 +1996,33 @@ const Pr = {
|
|
|
1996
1996
|
return s;
|
|
1997
1997
|
const p = /* @__PURE__ */ new Map(), d = [];
|
|
1998
1998
|
for (const g of s) {
|
|
1999
|
-
const N = typeof g.index == "number", U = g.datasetIndex,
|
|
2000
|
-
if (!
|
|
1999
|
+
const N = typeof g.index == "number", U = g.datasetIndex, ee = typeof U == "number" && !N, oe = typeof g.text == "string" ? g.text.trim() : "";
|
|
2000
|
+
if (!ee || !oe) {
|
|
2001
2001
|
d.push(g);
|
|
2002
2002
|
continue;
|
|
2003
2003
|
}
|
|
2004
|
-
const
|
|
2004
|
+
const X = oe.toLowerCase(), ce = p.get(X);
|
|
2005
2005
|
if (ce == null) {
|
|
2006
2006
|
d.push({
|
|
2007
2007
|
...g,
|
|
2008
2008
|
datasetIndexes: [U],
|
|
2009
2009
|
datasetKeys: typeof g.datasetKey == "string" && g.datasetKey.trim().length > 0 ? [g.datasetKey] : []
|
|
2010
|
-
}), p.set(
|
|
2010
|
+
}), p.set(X, d.length - 1);
|
|
2011
2011
|
continue;
|
|
2012
2012
|
}
|
|
2013
2013
|
const ve = d[ce];
|
|
2014
2014
|
if (!ve)
|
|
2015
2015
|
continue;
|
|
2016
|
-
const
|
|
2016
|
+
const Q = new Set(
|
|
2017
2017
|
Array.isArray(ve.datasetIndexes) ? ve.datasetIndexes : typeof ve.datasetIndex == "number" ? [ve.datasetIndex] : []
|
|
2018
2018
|
);
|
|
2019
|
-
|
|
2019
|
+
Q.add(U);
|
|
2020
2020
|
const ae = new Set(
|
|
2021
2021
|
Array.isArray(ve.datasetKeys) ? ve.datasetKeys : typeof ve.datasetKey == "string" && ve.datasetKey.trim().length > 0 ? [ve.datasetKey] : []
|
|
2022
2022
|
);
|
|
2023
2023
|
typeof g.datasetKey == "string" && g.datasetKey.trim().length > 0 && ae.add(g.datasetKey), d[ce] = {
|
|
2024
2024
|
...ve,
|
|
2025
|
-
datasetIndexes: Array.from(
|
|
2025
|
+
datasetIndexes: Array.from(Q).sort((ge, be) => ge - be),
|
|
2026
2026
|
datasetKeys: Array.from(ae),
|
|
2027
2027
|
hidden: ve.hidden === !0 && g.hidden === !0
|
|
2028
2028
|
};
|
|
@@ -2030,7 +2030,7 @@ const Pr = {
|
|
|
2030
2030
|
return d;
|
|
2031
2031
|
}
|
|
2032
2032
|
function Lt(s) {
|
|
2033
|
-
var
|
|
2033
|
+
var X, ce, ve, Q, ae, ge;
|
|
2034
2034
|
const p = s == null ? void 0 : s.legend;
|
|
2035
2035
|
if (typeof (p == null ? void 0 : p.buildLabels) == "function")
|
|
2036
2036
|
try {
|
|
@@ -2040,16 +2040,16 @@ const Pr = {
|
|
|
2040
2040
|
const d = Fe(p == null ? void 0 : p.legendItems);
|
|
2041
2041
|
if (d.length > 0)
|
|
2042
2042
|
return d;
|
|
2043
|
-
const g = (ce = (
|
|
2043
|
+
const g = (ce = (X = s == null ? void 0 : s.options) == null ? void 0 : X.plugins) == null ? void 0 : ce.legend, N = g == null ? void 0 : g.labels, U = N == null ? void 0 : N.generateLabels, ee = (ge = (ae = (Q = (ve = Tn.defaults) == null ? void 0 : ve.plugins) == null ? void 0 : Q.legend) == null ? void 0 : ae.labels) == null ? void 0 : ge.generateLabels;
|
|
2044
2044
|
let oe = Fe(
|
|
2045
2045
|
typeof U == "function" ? U(s) : []
|
|
2046
2046
|
);
|
|
2047
|
-
return oe.length === 0 && typeof
|
|
2047
|
+
return oe.length === 0 && typeof ee == "function" && (oe = Fe(ee(s))), typeof (N == null ? void 0 : N.filter) == "function" && (oe = oe.filter((be) => N.filter(be, s.data))), typeof (N == null ? void 0 : N.sort) == "function" && (oe = [...oe].sort((be, Re) => N.sort(be, Re, s.data))), (g == null ? void 0 : g.reverse) === !0 && (oe = [...oe].reverse()), oe;
|
|
2048
2048
|
}
|
|
2049
2049
|
function ht(s) {
|
|
2050
2050
|
var d;
|
|
2051
2051
|
return (Array.isArray((d = s == null ? void 0 : s.data) == null ? void 0 : d.datasets) ? s.data.datasets : []).map((g, N) => {
|
|
2052
|
-
const U = Se((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)),
|
|
2052
|
+
const U = Se((g == null ? void 0 : g.borderColor) ?? (g == null ? void 0 : g.backgroundColor)), ee = Ct({
|
|
2053
2053
|
datasetIndex: N,
|
|
2054
2054
|
label: g == null ? void 0 : g.label
|
|
2055
2055
|
});
|
|
@@ -2058,8 +2058,8 @@ const Pr = {
|
|
|
2058
2058
|
fillStyle: U,
|
|
2059
2059
|
strokeStyle: U,
|
|
2060
2060
|
datasetIndex: N,
|
|
2061
|
-
datasetKey:
|
|
2062
|
-
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
|
|
2061
|
+
datasetKey: ee,
|
|
2062
|
+
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(ee) : typeof s.isDatasetVisible == "function" ? !s.isDatasetVisible(N) : !1
|
|
2063
2063
|
};
|
|
2064
2064
|
});
|
|
2065
2065
|
}
|
|
@@ -2074,33 +2074,33 @@ const Pr = {
|
|
|
2074
2074
|
function lt(s, p) {
|
|
2075
2075
|
if (!Array.isArray(s) || s.length === 0)
|
|
2076
2076
|
return [];
|
|
2077
|
-
const d = s, g = d[0], N = Array.isArray(g == null ? void 0 : g.labels) ? g.labels : [], U = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [],
|
|
2078
|
-
return d.length === 1 && Array.isArray(oe) && oe.length > 1 ? oe.map((
|
|
2079
|
-
text:
|
|
2080
|
-
fillStyle: Se(
|
|
2081
|
-
strokeStyle: Se(
|
|
2077
|
+
const d = s, g = d[0], N = Array.isArray(g == null ? void 0 : g.labels) ? g.labels : [], U = Array.isArray(p == null ? void 0 : p.metrics) ? p.metrics : [], ee = N.length > 0 ? N : U, oe = g == null ? void 0 : g.backgroundColor;
|
|
2078
|
+
return d.length === 1 && Array.isArray(oe) && oe.length > 1 ? oe.map((X, ce) => ({
|
|
2079
|
+
text: ee[ce] == null || String(ee[ce]).trim().length === 0 ? `Series ${ce + 1}` : String(ee[ce]),
|
|
2080
|
+
fillStyle: Se(X),
|
|
2081
|
+
strokeStyle: Se(X),
|
|
2082
2082
|
datasetIndex: 0,
|
|
2083
2083
|
index: ce,
|
|
2084
2084
|
hidden: Ze(ce)
|
|
2085
|
-
})) : d.map((
|
|
2085
|
+
})) : d.map((X, ce) => ({
|
|
2086
2086
|
datasetKey: Ct({
|
|
2087
2087
|
datasetIndex: ce,
|
|
2088
|
-
label:
|
|
2088
|
+
label: X == null ? void 0 : X.label
|
|
2089
2089
|
}),
|
|
2090
|
-
text: rt.value(
|
|
2090
|
+
text: rt.value(X == null ? void 0 : X.label, X),
|
|
2091
2091
|
fillStyle: Se(
|
|
2092
|
-
(
|
|
2092
|
+
(X == null ? void 0 : X.color) ?? (X == null ? void 0 : X.borderColor) ?? (X == null ? void 0 : X.backgroundColor) ?? (X == null ? void 0 : X.pointBackgroundColor)
|
|
2093
2093
|
),
|
|
2094
2094
|
strokeStyle: Se(
|
|
2095
|
-
(
|
|
2095
|
+
(X == null ? void 0 : X.color) ?? (X == null ? void 0 : X.borderColor) ?? (X == null ? void 0 : X.backgroundColor) ?? (X == null ? void 0 : X.pointBorderColor)
|
|
2096
2096
|
),
|
|
2097
2097
|
datasetIndex: ce,
|
|
2098
2098
|
hidden: Array.isArray(n.hiddenDatasetKeys) ? n.hiddenDatasetKeys.includes(
|
|
2099
2099
|
Ct({
|
|
2100
2100
|
datasetIndex: ce,
|
|
2101
|
-
label:
|
|
2101
|
+
label: X == null ? void 0 : X.label
|
|
2102
2102
|
})
|
|
2103
|
-
) : !!(
|
|
2103
|
+
) : !!(X != null && X.hidden)
|
|
2104
2104
|
}));
|
|
2105
2105
|
}
|
|
2106
2106
|
function vt() {
|
|
@@ -2115,46 +2115,46 @@ const Pr = {
|
|
|
2115
2115
|
const s = h.value;
|
|
2116
2116
|
return s ? Math.ceil(s.getBoundingClientRect().width) : 0;
|
|
2117
2117
|
}
|
|
2118
|
-
function
|
|
2118
|
+
function Gt() {
|
|
2119
2119
|
const s = h.value;
|
|
2120
2120
|
return s ? Math.ceil(s.getBoundingClientRect().height) : 0;
|
|
2121
2121
|
}
|
|
2122
|
-
function
|
|
2123
|
-
var
|
|
2122
|
+
function jt(s, p) {
|
|
2123
|
+
var Q;
|
|
2124
2124
|
const d = v.value;
|
|
2125
2125
|
if (!d || s.length === 0)
|
|
2126
2126
|
return 0;
|
|
2127
|
-
const g = Math.max(0, p -
|
|
2127
|
+
const g = Math.max(0, p - ho), N = window.getComputedStyle(d);
|
|
2128
2128
|
if (N.flexDirection.startsWith("column")) {
|
|
2129
|
-
const ae = Number.parseFloat(N.rowGap || N.gap || "0") || 0,
|
|
2129
|
+
const ae = Number.parseFloat(N.rowGap || N.gap || "0") || 0, ge = Gt();
|
|
2130
2130
|
let be = 0, Re = 0;
|
|
2131
2131
|
for (let He = 0; He < s.length; He += 1) {
|
|
2132
2132
|
const We = s[He];
|
|
2133
2133
|
if (!We)
|
|
2134
2134
|
continue;
|
|
2135
|
-
const Me = be + (Re > 0 ? ae : 0) + We.offsetHeight, Ye = s.length - (He + 1) > 0 ? ae +
|
|
2135
|
+
const Me = be + (Re > 0 ? ae : 0) + We.offsetHeight, Ye = s.length - (He + 1) > 0 ? ae + ge : 0;
|
|
2136
2136
|
if (Me + Ye > g)
|
|
2137
2137
|
break;
|
|
2138
2138
|
be = Me, Re += 1;
|
|
2139
2139
|
}
|
|
2140
2140
|
return Re > 0 ? Re : 1;
|
|
2141
2141
|
}
|
|
2142
|
-
const
|
|
2143
|
-
(ae) => ae.offsetTop -
|
|
2142
|
+
const ee = ((Q = s[0]) == null ? void 0 : Q.offsetTop) ?? 0, oe = s.filter(
|
|
2143
|
+
(ae) => ae.offsetTop - ee + ae.offsetHeight <= g
|
|
2144
2144
|
);
|
|
2145
2145
|
if (oe.length === 0)
|
|
2146
2146
|
return 0;
|
|
2147
2147
|
if (oe.length >= s.length)
|
|
2148
2148
|
return oe.length;
|
|
2149
|
-
const
|
|
2150
|
-
if (
|
|
2149
|
+
const X = st();
|
|
2150
|
+
if (X <= 0)
|
|
2151
2151
|
return Math.max(1, oe.length - 1);
|
|
2152
2152
|
const ce = Number.parseFloat(N.columnGap || N.gap || "0") || 0, ve = d.clientWidth;
|
|
2153
2153
|
for (let ae = oe.length; ae > 0; ae -= 1) {
|
|
2154
|
-
const
|
|
2154
|
+
const ge = oe.slice(0, ae), be = ge[ge.length - 1];
|
|
2155
2155
|
if (!be)
|
|
2156
2156
|
continue;
|
|
2157
|
-
if (be.offsetLeft + be.offsetWidth + ce +
|
|
2157
|
+
if (be.offsetLeft + be.offsetWidth + ce + X <= ve)
|
|
2158
2158
|
return ae;
|
|
2159
2159
|
}
|
|
2160
2160
|
return 1;
|
|
@@ -2172,19 +2172,19 @@ const Pr = {
|
|
|
2172
2172
|
m.value = !1, D.value = 0, u.value = 0, b(), T();
|
|
2173
2173
|
return;
|
|
2174
2174
|
}
|
|
2175
|
-
const d = Array.from(new Set(p.map((ae) => ae.offsetTop))).sort((ae,
|
|
2175
|
+
const d = Array.from(new Set(p.map((ae) => ae.offsetTop))).sort((ae, ge) => ae - ge), g = !f.value && l.value.length > p.length, N = !f.value && !g, U = N || D.value <= 0 ? ne() : D.value;
|
|
2176
2176
|
if ((N || D.value <= 0) && (D.value = U), g) {
|
|
2177
2177
|
const ae = ne();
|
|
2178
2178
|
if (ae > 0 && (D.value = ae), window.getComputedStyle(s).flexDirection.startsWith("column") && u.value < l.value.length) {
|
|
2179
|
-
const Re = Math.max(0, D.value -
|
|
2179
|
+
const Re = Math.max(0, D.value - ho), He = s.scrollHeight;
|
|
2180
2180
|
if (He + 1 < Re) {
|
|
2181
2181
|
const We = p.map((Ve) => Ve.offsetHeight).filter((Ve) => Number.isFinite(Ve) && Ve > 0), Me = We.length > 0 ? We.reduce((Ve, Ye) => Ve + Ye, 0) / We.length : 0;
|
|
2182
2182
|
if (Me > 0) {
|
|
2183
|
-
const Ve = window.getComputedStyle(s), Ye = Number.parseFloat(Ve.rowGap || Ve.gap || "0") || 0,
|
|
2184
|
-
if (
|
|
2183
|
+
const Ve = window.getComputedStyle(s), Ye = Number.parseFloat(Ve.rowGap || Ve.gap || "0") || 0, Qt = Math.max(1, Me + Ye), yn = Re - He, en = Math.floor(yn / Qt);
|
|
2184
|
+
if (en > 0) {
|
|
2185
2185
|
u.value = Math.min(
|
|
2186
2186
|
l.value.length,
|
|
2187
|
-
u.value +
|
|
2187
|
+
u.value + en
|
|
2188
2188
|
), Ke();
|
|
2189
2189
|
return;
|
|
2190
2190
|
}
|
|
@@ -2194,11 +2194,11 @@ const Pr = {
|
|
|
2194
2194
|
m.value = !0, b(), T();
|
|
2195
2195
|
return;
|
|
2196
2196
|
}
|
|
2197
|
-
const
|
|
2198
|
-
(N || u.value <= 0) && (u.value = Math.max(0,
|
|
2197
|
+
const ee = d[0] ?? 0, oe = d[d.length - 1] ?? ee, X = p.filter((ae) => ae.offsetTop === oe), ce = Math.max(...X.map((ae) => ae.offsetHeight), 0), ve = Math.max(0, oe - ee + ce), Q = jt(p, U);
|
|
2198
|
+
(N || u.value <= 0) && (u.value = Math.max(0, Q)), m.value = ve > U, b(), T();
|
|
2199
2199
|
}
|
|
2200
2200
|
function Ke() {
|
|
2201
|
-
|
|
2201
|
+
xo(() => {
|
|
2202
2202
|
Dt(), window.requestAnimationFrame(() => {
|
|
2203
2203
|
Dt(), R(), T();
|
|
2204
2204
|
});
|
|
@@ -2206,7 +2206,7 @@ const Pr = {
|
|
|
2206
2206
|
}
|
|
2207
2207
|
const It = c(() => {
|
|
2208
2208
|
const s = {
|
|
2209
|
-
"--legend-text-color":
|
|
2209
|
+
"--legend-text-color": q.value,
|
|
2210
2210
|
"--legend-font-size": `${O.value}px`
|
|
2211
2211
|
}, p = ne();
|
|
2212
2212
|
if (_.value) {
|
|
@@ -2261,7 +2261,7 @@ const Pr = {
|
|
|
2261
2261
|
const d = Array.isArray(n.legendUpdateKey) && n.legendUpdateKey.length > 0 || !Array.isArray(n.legendUpdateKey) && !!n.legendUpdateKey;
|
|
2262
2262
|
l.value.length === 0 && !(p.length > 0 || d) && j(0), Ke();
|
|
2263
2263
|
}
|
|
2264
|
-
function
|
|
2264
|
+
function Jt(s) {
|
|
2265
2265
|
return Array.isArray(s.datasetIndexes) && s.datasetIndexes.length > 0 ? s.datasetIndexes.filter((p) => Number.isInteger(p)) : typeof s.datasetIndex == "number" ? [s.datasetIndex] : [];
|
|
2266
2266
|
}
|
|
2267
2267
|
function ke(s, p) {
|
|
@@ -2280,34 +2280,34 @@ const Pr = {
|
|
|
2280
2280
|
} : d
|
|
2281
2281
|
);
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function hn(s, p, d) {
|
|
2284
2284
|
var N;
|
|
2285
2285
|
typeof s.setDatasetVisibility == "function" ? s.setDatasetVisibility(p, d) : d && typeof s.show == "function" ? s.show(p) : !d && typeof s.hide == "function" && s.hide(p);
|
|
2286
2286
|
const g = Array.isArray((N = s == null ? void 0 : s.data) == null ? void 0 : N.datasets) ? s.data.datasets[p] : null;
|
|
2287
2287
|
g && typeof g == "object" && (g.hidden = !d);
|
|
2288
2288
|
}
|
|
2289
|
-
function
|
|
2290
|
-
var
|
|
2289
|
+
function gn(s, p) {
|
|
2290
|
+
var ee;
|
|
2291
2291
|
if (typeof s.toggleDataVisibility == "function") {
|
|
2292
2292
|
s.toggleDataVisibility(p);
|
|
2293
2293
|
return;
|
|
2294
2294
|
}
|
|
2295
|
-
const d = Array.isArray((
|
|
2295
|
+
const d = Array.isArray((ee = s == null ? void 0 : s.data) == null ? void 0 : ee.datasets) ? s.data.datasets[0] : null, g = Array.isArray(d == null ? void 0 : d.data) ? d.data : [];
|
|
2296
2296
|
if (p < 0 || p >= g.length)
|
|
2297
2297
|
return;
|
|
2298
2298
|
const N = typeof s.getDatasetMeta == "function" ? s.getDatasetMeta(0) : null, U = Array.isArray(N == null ? void 0 : N.data) ? N.data[p] : null;
|
|
2299
2299
|
U && typeof U.hidden == "boolean" && (U.hidden = !U.hidden);
|
|
2300
2300
|
}
|
|
2301
|
-
function
|
|
2301
|
+
function Zt(s = 0) {
|
|
2302
2302
|
Pt();
|
|
2303
2303
|
const p = y(), d = l.value.length > 0;
|
|
2304
|
-
if (p || d || s >=
|
|
2304
|
+
if (p || d || s >= Zr) {
|
|
2305
2305
|
F();
|
|
2306
2306
|
return;
|
|
2307
2307
|
}
|
|
2308
2308
|
F(), S = window.setTimeout(() => {
|
|
2309
|
-
|
|
2310
|
-
},
|
|
2309
|
+
Zt(s + 1);
|
|
2310
|
+
}, Jr);
|
|
2311
2311
|
}
|
|
2312
2312
|
function Xe(s, p) {
|
|
2313
2313
|
var ve;
|
|
@@ -2317,21 +2317,21 @@ const Pr = {
|
|
|
2317
2317
|
o("toggleDataPointVisibility", { itemIndex: U });
|
|
2318
2318
|
return;
|
|
2319
2319
|
}
|
|
2320
|
-
d && (
|
|
2321
|
-
const
|
|
2320
|
+
d && (gn(d, U), d.update());
|
|
2321
|
+
const Q = d && typeof d.getDataVisibility == "function" ? !d.getDataVisibility(U) : s.hidden !== !0;
|
|
2322
2322
|
Mt(
|
|
2323
2323
|
(ae) => typeof ae.index == "number" ? ae.index === U : ae.datasetIndex === s.datasetIndex && ae.text === s.text,
|
|
2324
|
-
|
|
2324
|
+
Q
|
|
2325
2325
|
);
|
|
2326
2326
|
return;
|
|
2327
2327
|
}
|
|
2328
|
-
const oe =
|
|
2328
|
+
const oe = Jt(s), X = ke(s, oe);
|
|
2329
2329
|
if (Array.isArray(n.hiddenDatasetKeys) && oe.length > 0) {
|
|
2330
|
-
oe.forEach((
|
|
2330
|
+
oe.forEach((Q, ae) => {
|
|
2331
2331
|
o("toggleDatasetVisibility", {
|
|
2332
|
-
datasetIndex:
|
|
2333
|
-
datasetKey:
|
|
2334
|
-
datasetIndex:
|
|
2332
|
+
datasetIndex: Q,
|
|
2333
|
+
datasetKey: X[ae] ?? Ct({
|
|
2334
|
+
datasetIndex: Q,
|
|
2335
2335
|
label: s.text
|
|
2336
2336
|
})
|
|
2337
2337
|
});
|
|
@@ -2341,39 +2341,39 @@ const Pr = {
|
|
|
2341
2341
|
const ce = vt();
|
|
2342
2342
|
if (!d) {
|
|
2343
2343
|
if (oe.length > 0) {
|
|
2344
|
-
const
|
|
2344
|
+
const Q = s.hidden !== !0;
|
|
2345
2345
|
oe.forEach((ae) => {
|
|
2346
|
-
const
|
|
2347
|
-
|
|
2346
|
+
const ge = ce[ae];
|
|
2347
|
+
ge && typeof ge == "object" && (ge.hidden = Q);
|
|
2348
2348
|
}), Mt(
|
|
2349
2349
|
(ae) => ze(ae, 0) === ze(s, 0),
|
|
2350
|
-
|
|
2350
|
+
Q
|
|
2351
2351
|
);
|
|
2352
2352
|
}
|
|
2353
2353
|
return;
|
|
2354
2354
|
}
|
|
2355
2355
|
if (oe.length > 0) {
|
|
2356
2356
|
const ae = !oe.every(
|
|
2357
|
-
(
|
|
2357
|
+
(ge) => typeof d.isDatasetVisible == "function" ? d.isDatasetVisible(ge) : s.hidden !== !0
|
|
2358
2358
|
);
|
|
2359
|
-
oe.forEach((
|
|
2360
|
-
|
|
2361
|
-
const be = ce[
|
|
2359
|
+
oe.forEach((ge) => {
|
|
2360
|
+
hn(d, ge, ae);
|
|
2361
|
+
const be = ce[ge];
|
|
2362
2362
|
be && typeof be == "object" && (be.hidden = !ae);
|
|
2363
2363
|
}), d.update(), Mt(
|
|
2364
|
-
(
|
|
2364
|
+
(ge) => ze(ge, 0) === ze(s, 0),
|
|
2365
2365
|
!ae
|
|
2366
2366
|
);
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
|
-
function
|
|
2369
|
+
function vn() {
|
|
2370
2370
|
f.value = !0, Ke();
|
|
2371
2371
|
}
|
|
2372
2372
|
function et() {
|
|
2373
2373
|
f.value = !1, v.value && (v.value.scrollTop = 0), Ke();
|
|
2374
2374
|
}
|
|
2375
|
-
return
|
|
2376
|
-
|
|
2375
|
+
return zt(() => {
|
|
2376
|
+
Zt(), window.addEventListener("mousemove", se), window.addEventListener("mouseup", H);
|
|
2377
2377
|
}), Le(
|
|
2378
2378
|
() => [
|
|
2379
2379
|
n.enabled,
|
|
@@ -2385,9 +2385,9 @@ const Pr = {
|
|
|
2385
2385
|
() => {
|
|
2386
2386
|
Pt();
|
|
2387
2387
|
}
|
|
2388
|
-
),
|
|
2388
|
+
), Co(() => {
|
|
2389
2389
|
B.value = !1, F(), G({ height: 0, width: 0 }), window.removeEventListener("mousemove", se), window.removeEventListener("mouseup", H);
|
|
2390
|
-
}), (s, p) => V.value ? (
|
|
2390
|
+
}), (s, p) => V.value ? (K(), le("div", {
|
|
2391
2391
|
key: 0,
|
|
2392
2392
|
ref_key: "legendPanelRef",
|
|
2393
2393
|
ref: W,
|
|
@@ -2408,7 +2408,7 @@ const Pr = {
|
|
|
2408
2408
|
ref: h,
|
|
2409
2409
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2410
2410
|
}, [
|
|
2411
|
-
Y("button",
|
|
2411
|
+
Y("button", Yr, Ce(i(a)("report.widget.legend.viewMore")), 1)
|
|
2412
2412
|
], 512),
|
|
2413
2413
|
Y("ul", {
|
|
2414
2414
|
ref_key: "legendListRef",
|
|
@@ -2419,7 +2419,7 @@ const Pr = {
|
|
|
2419
2419
|
style: Pe(it.value),
|
|
2420
2420
|
onScroll: M
|
|
2421
2421
|
}, [
|
|
2422
|
-
(
|
|
2422
|
+
(K(!0), le(Ne, null, ft(Qe.value, (d, g) => (K(), le("li", {
|
|
2423
2423
|
key: ze(d, g),
|
|
2424
2424
|
class: Ie(["chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto", {
|
|
2425
2425
|
"opacity-45": d.hidden
|
|
@@ -2430,13 +2430,13 @@ const Pr = {
|
|
|
2430
2430
|
type: "button",
|
|
2431
2431
|
class: Ie(["inline-flex max-w-full items-center gap-1.5 border-none bg-transparent p-0", { "justify-start text-left": _.value }]),
|
|
2432
2432
|
"aria-pressed": d.hidden === !0 ? "false" : "true",
|
|
2433
|
-
onClick:
|
|
2433
|
+
onClick: un((N) => Xe(d, g), ["stop"])
|
|
2434
2434
|
}, [
|
|
2435
|
-
n.usePointStyle !== !1 ? (
|
|
2435
|
+
n.usePointStyle !== !1 ? (K(), le("span", {
|
|
2436
2436
|
key: 0,
|
|
2437
2437
|
class: "h-5 w-5 shrink-0 rounded-full",
|
|
2438
2438
|
style: Pe({ backgroundColor: _e(d, g) })
|
|
2439
|
-
}, null, 4)) : (
|
|
2439
|
+
}, null, 4)) : (K(), le("span", {
|
|
2440
2440
|
key: 1,
|
|
2441
2441
|
class: "h-5 w-5 shrink-0 rounded-sm border border-solid border-gray-300",
|
|
2442
2442
|
style: Pe({
|
|
@@ -2451,19 +2451,19 @@ const Pr = {
|
|
|
2451
2451
|
"line-through": d.hidden
|
|
2452
2452
|
}]),
|
|
2453
2453
|
title: d.text ?? ""
|
|
2454
|
-
}, Ce(d.text), 11,
|
|
2455
|
-
], 10,
|
|
2454
|
+
}, Ce(d.text), 11, qr)
|
|
2455
|
+
], 10, Er)
|
|
2456
2456
|
], 2))), 128)),
|
|
2457
|
-
m.value ? (
|
|
2457
|
+
m.value ? (K(), le("li", Gr, [
|
|
2458
2458
|
Y("button", {
|
|
2459
2459
|
type: "button",
|
|
2460
2460
|
class: "inline-flex max-w-full cursor-pointer select-none underline items-center gap-1 rounded px-1 py-0.5 border-none bg-transparent text-fm-color-system-info-300 leading-[1.4] transition-colors hover:bg-black/5",
|
|
2461
2461
|
style: { fontSize: "var(--legend-font-size)" },
|
|
2462
|
-
onClick: p[0] || (p[0] =
|
|
2462
|
+
onClick: p[0] || (p[0] = un((d) => f.value ? et() : vn(), ["stop"]))
|
|
2463
2463
|
}, Ce(f.value ? i(a)("report.widget.legend.viewLess") : i(a)("report.widget.legend.viewMore")), 1)
|
|
2464
|
-
])) :
|
|
2464
|
+
])) : he("", !0)
|
|
2465
2465
|
], 38),
|
|
2466
|
-
x.value ? (
|
|
2466
|
+
x.value ? (K(), le("div", {
|
|
2467
2467
|
key: 0,
|
|
2468
2468
|
class: "absolute top-0 right-0 h-full w-2 rounded-full bg-transparent",
|
|
2469
2469
|
onMousedown: z
|
|
@@ -2471,29 +2471,29 @@ const Pr = {
|
|
|
2471
2471
|
Y("div", {
|
|
2472
2472
|
class: "absolute left-0 w-full rounded-full bg-gray-500/60 cursor-pointer hover:bg-gray-500/85",
|
|
2473
2473
|
style: Pe($.value),
|
|
2474
|
-
onMousedown:
|
|
2474
|
+
onMousedown: un(re, ["stop"])
|
|
2475
2475
|
}, null, 36)
|
|
2476
|
-
], 32)) :
|
|
2476
|
+
], 32)) : he("", !0)
|
|
2477
2477
|
], 512)
|
|
2478
|
-
], 6)) :
|
|
2478
|
+
], 6)) : he("", !0);
|
|
2479
2479
|
}
|
|
2480
|
-
}), $e = /* @__PURE__ */
|
|
2481
|
-
function
|
|
2482
|
-
const { t: n } = mt(), { breakpoints: o } =
|
|
2480
|
+
}), $e = /* @__PURE__ */ To(Qr, [["__scopeId", "data-v-706fa016"]]);
|
|
2481
|
+
function el(e, t) {
|
|
2482
|
+
const { t: n } = mt(), { breakpoints: o } = Ht(), a = P(!1), r = P(null), l = P(null);
|
|
2483
2483
|
function u() {
|
|
2484
|
-
return
|
|
2484
|
+
return Oo(e.value) ?? l.value;
|
|
2485
2485
|
}
|
|
2486
2486
|
function f(v) {
|
|
2487
|
-
a.value = v, !v && (r.value = null,
|
|
2487
|
+
a.value = v, !v && (r.value = null, dn(u()), l.value = null);
|
|
2488
2488
|
}
|
|
2489
2489
|
function m(v, h) {
|
|
2490
2490
|
r.value = v, l.value = h ?? u(), a.value = !0;
|
|
2491
2491
|
}
|
|
2492
2492
|
function D(v) {
|
|
2493
|
-
|
|
2493
|
+
dn(u(), v.focusTarget);
|
|
2494
2494
|
}
|
|
2495
2495
|
function W() {
|
|
2496
|
-
|
|
2496
|
+
dn(u());
|
|
2497
2497
|
}
|
|
2498
2498
|
const C = c(() => ({
|
|
2499
2499
|
viewFullDetailsLabel: o.value.xs || o.value.sm ? n("report.widget.comparisonTooltip.doubleClickViewBreakdown") : n("report.widget.comparisonTooltip.viewBreakdown"),
|
|
@@ -2510,7 +2510,7 @@ function jr(e, t) {
|
|
|
2510
2510
|
handleTooltipDetailsLeave: W
|
|
2511
2511
|
};
|
|
2512
2512
|
}
|
|
2513
|
-
function
|
|
2513
|
+
function tl(e) {
|
|
2514
2514
|
const t = P([]), n = c(() => new Set(t.value));
|
|
2515
2515
|
function o(l, u) {
|
|
2516
2516
|
return Ct({
|
|
@@ -2544,7 +2544,7 @@ function Jr(e) {
|
|
|
2544
2544
|
toggleDatasetVisibility: r
|
|
2545
2545
|
};
|
|
2546
2546
|
}
|
|
2547
|
-
function
|
|
2547
|
+
function Xt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
2548
2548
|
const o = c(() => t.value.maxTooltipItems), {
|
|
2549
2549
|
isTooltipDetailsSheetOpen: a,
|
|
2550
2550
|
tooltipDetailsPayload: r,
|
|
@@ -2552,14 +2552,14 @@ function Kt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2552
2552
|
handleTooltipDetailsSheetVisibility: u,
|
|
2553
2553
|
handleTooltipDetailsHover: f,
|
|
2554
2554
|
handleTooltipDetailsLeave: m
|
|
2555
|
-
} =
|
|
2555
|
+
} = el(e, {
|
|
2556
2556
|
maxTooltipItems: o,
|
|
2557
2557
|
comparisonXAxis: c(() => {
|
|
2558
2558
|
var x;
|
|
2559
2559
|
return (x = t.value.data) == null ? void 0 : x.comparisonXAxis;
|
|
2560
2560
|
})
|
|
2561
|
-
}), { datalabels: D, xCfg: W, yCfg: C, isTransposed: v, legend: h } =
|
|
2562
|
-
() =>
|
|
2561
|
+
}), { datalabels: D, xCfg: W, yCfg: C, isTransposed: v, legend: h } = Xo(t.value), L = c(
|
|
2562
|
+
() => Rn(t.value.isTransposed === !0, l.value)
|
|
2563
2563
|
), I = c(() => {
|
|
2564
2564
|
const x = h.value.position;
|
|
2565
2565
|
return !x || x === "top" || x === "bottom" || x === "left" || x === "right";
|
|
@@ -2567,7 +2567,7 @@ function Kt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2567
2567
|
() => A.value === "left" || A.value === "right"
|
|
2568
2568
|
), J = c(
|
|
2569
2569
|
() => A.value === "top" || A.value === "left"
|
|
2570
|
-
), { hiddenDatasetKeys: k, isDatasetHidden: V, toggleDatasetVisibility: _ } =
|
|
2570
|
+
), { hiddenDatasetKeys: k, isDatasetHidden: V, toggleDatasetVisibility: _ } = tl(n), S = c(() => n.value.map((x, $) => ({
|
|
2571
2571
|
...x,
|
|
2572
2572
|
hidden: V(x, $)
|
|
2573
2573
|
})));
|
|
@@ -2592,28 +2592,28 @@ function Kt({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2592
2592
|
datasets: S
|
|
2593
2593
|
};
|
|
2594
2594
|
}
|
|
2595
|
-
const
|
|
2596
|
-
function
|
|
2595
|
+
const vo = /* @__PURE__ */ new WeakMap();
|
|
2596
|
+
function Yo(e) {
|
|
2597
2597
|
return typeof e == "number" && Number.isFinite(e);
|
|
2598
2598
|
}
|
|
2599
|
-
function
|
|
2600
|
-
return e.map((t) =>
|
|
2599
|
+
function Yt(e) {
|
|
2600
|
+
return e.map((t) => Yo(t) ? t : null);
|
|
2601
2601
|
}
|
|
2602
|
-
function
|
|
2602
|
+
function Kn(e) {
|
|
2603
2603
|
return e.reduce((t, n, o) => (n === null && t.push(o), t), []);
|
|
2604
2604
|
}
|
|
2605
|
-
function
|
|
2605
|
+
function Et(e, t) {
|
|
2606
2606
|
const n = e[t];
|
|
2607
2607
|
if (!n || n.xAxisIndex === void 0)
|
|
2608
2608
|
return t;
|
|
2609
|
-
let o =
|
|
2609
|
+
let o = vo.get(e);
|
|
2610
2610
|
return o || (o = /* @__PURE__ */ new Map(), e.forEach((a, r) => {
|
|
2611
2611
|
o.has(a.name) || o.set(a.name, r);
|
|
2612
|
-
}),
|
|
2612
|
+
}), vo.set(e, o)), o.get(n.name) ?? t;
|
|
2613
2613
|
}
|
|
2614
|
-
function
|
|
2614
|
+
function qt(e, t, n) {
|
|
2615
2615
|
return e.some((o) => o.xAxisIndex !== void 0) ? e.filter(
|
|
2616
|
-
(o) => o.xAxisIndex === void 0 ||
|
|
2616
|
+
(o) => o.xAxisIndex === void 0 || Yo(o.values[0]) || (n == null ? void 0 : n.preserveNullableValues) === !0 && o.values[0] === null
|
|
2617
2617
|
).map((o) => o.xAxisIndex === void 0 ? o : {
|
|
2618
2618
|
...o,
|
|
2619
2619
|
values: Array.from(
|
|
@@ -2622,7 +2622,7 @@ function Et(e, t, n) {
|
|
|
2622
2622
|
)
|
|
2623
2623
|
}) : e;
|
|
2624
2624
|
}
|
|
2625
|
-
const
|
|
2625
|
+
const nl = { class: "widget-content" }, _n = 1, yo = "rgba(0, 0, 0, 0)", ol = /* @__PURE__ */ Ae({
|
|
2626
2626
|
__name: "WidgetBarchart",
|
|
2627
2627
|
props: /* @__PURE__ */ Oe({
|
|
2628
2628
|
tileIndex: {}
|
|
@@ -2641,29 +2641,29 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2641
2641
|
}), r = c(
|
|
2642
2642
|
() => o.value.some((T) => T.xAxisIndex !== void 0)
|
|
2643
2643
|
), l = c(
|
|
2644
|
-
() =>
|
|
2644
|
+
() => qt(o.value, a.value.length, {
|
|
2645
2645
|
preserveNullableValues: t.value.hasNullableMetric
|
|
2646
2646
|
})
|
|
2647
2647
|
), u = c(() => !r.value && a.value.length === 1 && o.value.length > 1 && o.value.every((T) => T.values.length === 1 && T.isCompare !== !0)), f = c(() => u.value ? o.value.map((T) => T.name) : a.value), m = c(() => ({
|
|
2648
2648
|
categories: f.value
|
|
2649
|
-
})), D = c(() => !r.value && a.value.length === 1 && o.value.some((T) => T.isCompare === !0)), W =
|
|
2649
|
+
})), D = c(() => !r.value && a.value.length === 1 && o.value.some((T) => T.isCompare === !0)), W = Ut("bar");
|
|
2650
2650
|
function C(T) {
|
|
2651
2651
|
return {
|
|
2652
2652
|
label: `__comparison_gap__${T}`,
|
|
2653
2653
|
data: [0],
|
|
2654
|
-
backgroundColor:
|
|
2655
|
-
borderColor:
|
|
2654
|
+
backgroundColor: yo,
|
|
2655
|
+
borderColor: yo,
|
|
2656
2656
|
minBarLength: 0,
|
|
2657
|
-
barPercentage:
|
|
2657
|
+
barPercentage: _n,
|
|
2658
2658
|
isSpacer: !0
|
|
2659
2659
|
};
|
|
2660
2660
|
}
|
|
2661
2661
|
const v = c(() => o.value.length > 0 ? [
|
|
2662
2662
|
...l.value.map((T, M) => {
|
|
2663
|
-
const z =
|
|
2663
|
+
const z = Wt({
|
|
2664
2664
|
datasets: l.value,
|
|
2665
2665
|
datasetIndex: M
|
|
2666
|
-
}), re = r.value ?
|
|
2666
|
+
}), re = r.value ? Et(l.value, z) : z, se = Be({
|
|
2667
2667
|
datasetIndex: re,
|
|
2668
2668
|
isCompare: !1,
|
|
2669
2669
|
metricCount: t.value.metricCount,
|
|
@@ -2681,19 +2681,19 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2681
2681
|
const te = t.value.chartColorBinding === xe.breakdown, ie = St({
|
|
2682
2682
|
fallbackIndex: re,
|
|
2683
2683
|
metricCount: t.value.metricCount
|
|
2684
|
-
}),
|
|
2684
|
+
}), me = Yt(Z);
|
|
2685
2685
|
return {
|
|
2686
2686
|
label: T.name,
|
|
2687
|
-
data:
|
|
2687
|
+
data: me,
|
|
2688
2688
|
xAxisIndex: T.xAxisIndex,
|
|
2689
|
-
emptyValueIndexes: t.value.hasNullableMetric ? T.xAxisIndex === void 0 ?
|
|
2689
|
+
emptyValueIndexes: t.value.hasNullableMetric ? T.xAxisIndex === void 0 ? Kn(Z) : Z[T.xAxisIndex] === null ? [T.xAxisIndex] : void 0 : void 0,
|
|
2690
2690
|
dash: !!T.isCompare,
|
|
2691
2691
|
// A SQL row only owns one X-axis bucket. Skip its generated nulls in
|
|
2692
2692
|
// every other bucket so an earlier date cannot reserve a bar slot
|
|
2693
2693
|
// ahead of the current date's SQL-sorted rows.
|
|
2694
2694
|
skipNull: r.value,
|
|
2695
2695
|
minBarLength: void 0,
|
|
2696
|
-
barPercentage: D.value ?
|
|
2696
|
+
barPercentage: D.value ? _n : void 0,
|
|
2697
2697
|
backgroundColor: te ? Tt({
|
|
2698
2698
|
breakdownIndex: ie,
|
|
2699
2699
|
metricIndex: H,
|
|
@@ -2722,13 +2722,13 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2722
2722
|
isTransposed: S,
|
|
2723
2723
|
legend: x,
|
|
2724
2724
|
useCustomLegend: $,
|
|
2725
|
-
legendPosition:
|
|
2725
|
+
legendPosition: q,
|
|
2726
2726
|
isLegendSide: O,
|
|
2727
2727
|
isLegendBeforeChart: j,
|
|
2728
2728
|
hiddenDatasetKeys: G,
|
|
2729
2729
|
toggleDatasetVisibility: F,
|
|
2730
2730
|
datasets: y
|
|
2731
|
-
} =
|
|
2731
|
+
} = Xt({
|
|
2732
2732
|
chartRef: n,
|
|
2733
2733
|
model: t,
|
|
2734
2734
|
baseDatasets: v
|
|
@@ -2739,7 +2739,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2739
2739
|
return y.value.forEach((M, z) => {
|
|
2740
2740
|
T.push({
|
|
2741
2741
|
...M,
|
|
2742
|
-
barPercentage:
|
|
2742
|
+
barPercentage: _n
|
|
2743
2743
|
});
|
|
2744
2744
|
const re = y.value[z + 1];
|
|
2745
2745
|
M.dash === !0 && re && T.push(C(z));
|
|
@@ -2756,19 +2756,19 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2756
2756
|
return (T, M) => {
|
|
2757
2757
|
var re, se, H, Z, te, ie;
|
|
2758
2758
|
const z = fe("FmBarChart");
|
|
2759
|
-
return
|
|
2760
|
-
Y("div",
|
|
2759
|
+
return K(), le(Ne, null, [
|
|
2760
|
+
Y("div", nl, [
|
|
2761
2761
|
ot(T.$slots, "menu"),
|
|
2762
2762
|
Y("div", {
|
|
2763
2763
|
class: Ie(["chart-layout", {
|
|
2764
2764
|
"chart-layout--side": i($) && (i(x).display ?? !1) && i(O)
|
|
2765
2765
|
}])
|
|
2766
2766
|
}, [
|
|
2767
|
-
i($) && (i(x).display ?? !1) && i(j) ? (
|
|
2767
|
+
i($) && (i(x).display ?? !1) && i(j) ? (K(), de($e, {
|
|
2768
2768
|
key: 0,
|
|
2769
2769
|
"chart-ref": n.value,
|
|
2770
2770
|
enabled: i(x).display ?? !1,
|
|
2771
|
-
position: i(
|
|
2771
|
+
position: i(q),
|
|
2772
2772
|
"text-color": (re = i(x).labels) == null ? void 0 : re.color,
|
|
2773
2773
|
"font-size": (H = (se = i(x).labels) == null ? void 0 : se.font) == null ? void 0 : H.size,
|
|
2774
2774
|
"legend-update-key": i(y),
|
|
@@ -2780,7 +2780,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2780
2780
|
"metric-count": t.value.metricCount,
|
|
2781
2781
|
"hidden-dataset-keys": i(G),
|
|
2782
2782
|
onToggleDatasetVisibility: i(F)
|
|
2783
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
2783
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
2784
2784
|
pe(z, {
|
|
2785
2785
|
ref_key: "chartRef",
|
|
2786
2786
|
ref: n,
|
|
@@ -2796,11 +2796,11 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2796
2796
|
plugins: [i(W)],
|
|
2797
2797
|
"maintain-aspect-ratio": !1
|
|
2798
2798
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
2799
|
-
i($) && (i(x).display ?? !1) && !i(j) ? (
|
|
2799
|
+
i($) && (i(x).display ?? !1) && !i(j) ? (K(), de($e, {
|
|
2800
2800
|
key: 1,
|
|
2801
2801
|
"chart-ref": n.value,
|
|
2802
2802
|
enabled: i(x).display ?? !1,
|
|
2803
|
-
position: i(
|
|
2803
|
+
position: i(q),
|
|
2804
2804
|
"text-color": (Z = i(x).labels) == null ? void 0 : Z.color,
|
|
2805
2805
|
"font-size": (ie = (te = i(x).labels) == null ? void 0 : te.font) == null ? void 0 : ie.size,
|
|
2806
2806
|
"legend-update-key": i(y),
|
|
@@ -2812,10 +2812,10 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2812
2812
|
"metric-count": t.value.metricCount,
|
|
2813
2813
|
"hidden-dataset-keys": i(G),
|
|
2814
2814
|
onToggleDatasetVisibility: i(F)
|
|
2815
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
2815
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0)
|
|
2816
2816
|
], 2)
|
|
2817
2817
|
]),
|
|
2818
|
-
pe(
|
|
2818
|
+
pe(Kt, {
|
|
2819
2819
|
"model-value": i(h),
|
|
2820
2820
|
"details-payload": i(L),
|
|
2821
2821
|
"onUpdate:modelValue": i(I),
|
|
@@ -2825,7 +2825,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2825
2825
|
], 64);
|
|
2826
2826
|
};
|
|
2827
2827
|
}
|
|
2828
|
-
}),
|
|
2828
|
+
}), al = { class: "widget-content" }, rl = /* @__PURE__ */ Ae({
|
|
2829
2829
|
__name: "WidgetCircular",
|
|
2830
2830
|
props: /* @__PURE__ */ Oe({
|
|
2831
2831
|
tileIndex: {}
|
|
@@ -2835,7 +2835,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2835
2835
|
}),
|
|
2836
2836
|
emits: ["update:modelValue"],
|
|
2837
2837
|
setup(e) {
|
|
2838
|
-
const t = Ue(e, "modelValue"), { breakpoints: n } =
|
|
2838
|
+
const t = Ue(e, "modelValue"), { breakpoints: n } = Ht(), o = P(null), a = P([]), { datalabels: r, legend: l } = Xo(t.value), u = c(() => {
|
|
2839
2839
|
const V = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((_) => _.name) : [];
|
|
2840
2840
|
return V.length > 0 ? V : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((_) => String(_)) : [];
|
|
2841
2841
|
}), f = c(() => {
|
|
@@ -2878,7 +2878,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2878
2878
|
return typeof V == "string" && V.trim().length > 0 ? V : t.value.legendColor ?? "#6b6b6b";
|
|
2879
2879
|
}), A = c(() => m.value), B = c(() => ({
|
|
2880
2880
|
display: !1
|
|
2881
|
-
})), J =
|
|
2881
|
+
})), J = $a();
|
|
2882
2882
|
function k({ itemIndex: V }) {
|
|
2883
2883
|
if (a.value.includes(V)) {
|
|
2884
2884
|
a.value = a.value.filter(
|
|
@@ -2890,14 +2890,14 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2890
2890
|
}
|
|
2891
2891
|
return (V, _) => {
|
|
2892
2892
|
const S = fe("FmPieChart");
|
|
2893
|
-
return
|
|
2893
|
+
return K(), le("div", al, [
|
|
2894
2894
|
ot(V.$slots, "menu"),
|
|
2895
2895
|
Y("div", {
|
|
2896
2896
|
class: Ie(["chart-layout", {
|
|
2897
2897
|
"chart-layout--side": C.value && h.value
|
|
2898
2898
|
}])
|
|
2899
2899
|
}, [
|
|
2900
|
-
C.value && L.value ? (
|
|
2900
|
+
C.value && L.value ? (K(), de($e, {
|
|
2901
2901
|
key: 0,
|
|
2902
2902
|
"chart-ref": o.value,
|
|
2903
2903
|
enabled: W.value,
|
|
@@ -2913,7 +2913,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2913
2913
|
"metric-count": t.value.metricCount,
|
|
2914
2914
|
"hidden-data-point-indexes": a.value,
|
|
2915
2915
|
onToggleDataPointVisibility: k
|
|
2916
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) :
|
|
2916
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : he("", !0),
|
|
2917
2917
|
pe(S, {
|
|
2918
2918
|
ref_key: "chartRef",
|
|
2919
2919
|
ref: o,
|
|
@@ -2927,7 +2927,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2927
2927
|
datalabels: i(r),
|
|
2928
2928
|
"maintain-aspect-ratio": !1
|
|
2929
2929
|
}, null, 8, ["datasets", "metrics", "tooltip", "legend", "datalabels"]),
|
|
2930
|
-
C.value && !L.value ? (
|
|
2930
|
+
C.value && !L.value ? (K(), de($e, {
|
|
2931
2931
|
key: 1,
|
|
2932
2932
|
"chart-ref": o.value,
|
|
2933
2933
|
enabled: W.value,
|
|
@@ -2943,15 +2943,15 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2943
2943
|
"metric-count": t.value.metricCount,
|
|
2944
2944
|
"hidden-data-point-indexes": a.value,
|
|
2945
2945
|
onToggleDataPointVisibility: k
|
|
2946
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) :
|
|
2946
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-data-point-indexes"])) : he("", !0)
|
|
2947
2947
|
], 2)
|
|
2948
2948
|
]);
|
|
2949
2949
|
};
|
|
2950
2950
|
}
|
|
2951
|
-
}),
|
|
2951
|
+
}), ll = { class: "h-full flex flex-col gap-2 justify-end" }, sl = { class: "flex flex-wrap gap-x-4 gap-y-2" }, il = { class: "flex items-center gap-1" }, ul = ["title"], cl = { class: "fm-typo-en-body-lg-600" }, dl = {
|
|
2952
2952
|
class: "flex w-full h-3 shrink-0 rounded-full overflow-hidden",
|
|
2953
2953
|
style: { "background-color": "#f2f2f7" }
|
|
2954
|
-
},
|
|
2954
|
+
}, fl = /* @__PURE__ */ Ae({
|
|
2955
2955
|
__name: "ScorecardStackedBar",
|
|
2956
2956
|
props: {
|
|
2957
2957
|
dimensions: {},
|
|
@@ -2971,13 +2971,13 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2971
2971
|
};
|
|
2972
2972
|
});
|
|
2973
2973
|
});
|
|
2974
|
-
return (o, a) => (
|
|
2975
|
-
Y("div",
|
|
2976
|
-
(
|
|
2974
|
+
return (o, a) => (K(), le("div", ll, [
|
|
2975
|
+
Y("div", sl, [
|
|
2976
|
+
(K(!0), le(Ne, null, ft(n.value, (r, l) => (K(), le("div", {
|
|
2977
2977
|
key: l,
|
|
2978
2978
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2979
2979
|
}, [
|
|
2980
|
-
Y("div",
|
|
2980
|
+
Y("div", il, [
|
|
2981
2981
|
Y("span", {
|
|
2982
2982
|
class: "inline-block w-3 h-3 rounded-sm shrink-0",
|
|
2983
2983
|
style: Pe({ backgroundColor: r.color })
|
|
@@ -2985,29 +2985,29 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
2985
2985
|
Y("p", {
|
|
2986
2986
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
|
|
2987
2987
|
title: r.label
|
|
2988
|
-
}, Ce(r.label), 9,
|
|
2988
|
+
}, Ce(r.label), 9, ul)
|
|
2989
2989
|
]),
|
|
2990
|
-
Y("p",
|
|
2990
|
+
Y("p", cl, Ce(r.display), 1)
|
|
2991
2991
|
]))), 128))
|
|
2992
2992
|
]),
|
|
2993
|
-
Y("div",
|
|
2994
|
-
(
|
|
2993
|
+
Y("div", dl, [
|
|
2994
|
+
(K(!0), le(Ne, null, ft(n.value, (r, l) => (K(), le("div", {
|
|
2995
2995
|
key: l,
|
|
2996
2996
|
style: Pe({ width: `${r.width}%`, backgroundColor: r.color })
|
|
2997
2997
|
}, null, 4))), 128))
|
|
2998
2998
|
])
|
|
2999
2999
|
]));
|
|
3000
3000
|
}
|
|
3001
|
-
}),
|
|
3001
|
+
}), ml = { class: "flex flex-col h-full" }, pl = { class: "fm-typo-en-title-md-600" }, hl = { class: "flex gap-2 mt-2" }, gl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, vl = {
|
|
3002
3002
|
key: 0,
|
|
3003
3003
|
class: "mt-auto pt-4"
|
|
3004
|
-
},
|
|
3004
|
+
}, yl = { class: "flex justify-between gap-2 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, bl = { class: "text-right" }, Cl = ["aria-valuenow", "aria-valuetext"], xl = { class: "mt-1 text-fm-color-typo-secondary fm-typo-en-body-sm-600" }, wl = {
|
|
3005
3005
|
key: 1,
|
|
3006
3006
|
class: "grow min-h-0 mt-2"
|
|
3007
|
-
},
|
|
3007
|
+
}, _l = {
|
|
3008
3008
|
key: 2,
|
|
3009
3009
|
class: "mt-2"
|
|
3010
|
-
},
|
|
3010
|
+
}, Sl = /* @__PURE__ */ Ae({
|
|
3011
3011
|
__name: "WidgetScorecard",
|
|
3012
3012
|
props: {
|
|
3013
3013
|
modelValue: { required: !0 },
|
|
@@ -3015,13 +3015,13 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3015
3015
|
},
|
|
3016
3016
|
emits: ["update:modelValue"],
|
|
3017
3017
|
setup(e) {
|
|
3018
|
-
const t = Ue(e, "modelValue"), { t: n } = mt(), { compareDateRange: o, defaultDateSetting: a } =
|
|
3018
|
+
const t = Ue(e, "modelValue"), { t: n } = mt(), { compareDateRange: o, defaultDateSetting: a } = Nt(fn()), { country: r } = ko(), l = c(() => {
|
|
3019
3019
|
var O;
|
|
3020
3020
|
return ((O = t.value.data) == null ? void 0 : O.value) || "";
|
|
3021
3021
|
}), u = c(() => dt(l.value)), f = c(
|
|
3022
3022
|
() => {
|
|
3023
3023
|
var O, j;
|
|
3024
|
-
return ((j = (O = t.value.data) == null ? void 0 : O.sparkline) == null ? void 0 : j.type) ===
|
|
3024
|
+
return ((j = (O = t.value.data) == null ? void 0 : O.sparkline) == null ? void 0 : j.type) === Vt.progress;
|
|
3025
3025
|
}
|
|
3026
3026
|
), m = c(() => t.value.sparklineTargetValue);
|
|
3027
3027
|
function D(O) {
|
|
@@ -3047,15 +3047,15 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3047
3047
|
return !Number.isFinite(O) || j == null || j <= 0 ? "" : dt(Math.max(j - O, 0));
|
|
3048
3048
|
}), B = c(() => {
|
|
3049
3049
|
const { data: O } = t.value;
|
|
3050
|
-
return O != null && O.comparison ?
|
|
3050
|
+
return O != null && O.comparison ? Ao(l.value, O.comparison, r) : null;
|
|
3051
3051
|
});
|
|
3052
3052
|
function J(O) {
|
|
3053
3053
|
switch (O) {
|
|
3054
|
-
case
|
|
3054
|
+
case Vt.bar:
|
|
3055
3055
|
return "bar";
|
|
3056
|
-
case
|
|
3056
|
+
case Vt.stackedBar:
|
|
3057
3057
|
return "stacked";
|
|
3058
|
-
case
|
|
3058
|
+
case Vt.line:
|
|
3059
3059
|
default:
|
|
3060
3060
|
return "line";
|
|
3061
3061
|
}
|
|
@@ -3076,14 +3076,14 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3076
3076
|
color: "#36a2eb"
|
|
3077
3077
|
}))), x = c(
|
|
3078
3078
|
() => S.value.map((O) => ({ ...O, backgroundColor: "rgba(54,162,235,0.25)" }))
|
|
3079
|
-
), $ = c(() =>
|
|
3079
|
+
), $ = c(() => Rn(!1)), q = c(() => Rn(!1));
|
|
3080
3080
|
return (O, j) => {
|
|
3081
3081
|
var T;
|
|
3082
3082
|
const G = fe("FmIcon"), F = fe("FmChip"), y = fe("FmTooltip"), b = fe("FmLineChart"), R = fe("FmBarChart");
|
|
3083
|
-
return
|
|
3083
|
+
return K(), le("div", ml, [
|
|
3084
3084
|
ot(O.$slots, "menu"),
|
|
3085
|
-
Y("p",
|
|
3086
|
-
Y("div",
|
|
3085
|
+
Y("p", pl, Ce(u.value), 1),
|
|
3086
|
+
Y("div", hl, [
|
|
3087
3087
|
pe(y, {
|
|
3088
3088
|
disabled: B.value === null,
|
|
3089
3089
|
placement: "right",
|
|
@@ -3093,11 +3093,11 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3093
3093
|
content: De(() => {
|
|
3094
3094
|
var M;
|
|
3095
3095
|
return [
|
|
3096
|
-
Y("span",
|
|
3096
|
+
Y("span", gl, Ce(`vs. ${(M = i(a).defaultCompareType) == null ? void 0 : M.split("_").join(" ")}`), 1)
|
|
3097
3097
|
];
|
|
3098
3098
|
}),
|
|
3099
3099
|
default: De(() => [
|
|
3100
|
-
B.value ? (
|
|
3100
|
+
B.value ? (K(), de(F, {
|
|
3101
3101
|
key: 0,
|
|
3102
3102
|
icon: B.value.icon.name,
|
|
3103
3103
|
class: Ie(`bg-${B.value.icon.tailwind}`),
|
|
@@ -3114,8 +3114,8 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3114
3114
|
}, Ce(B.value.value), 5)
|
|
3115
3115
|
]),
|
|
3116
3116
|
_: 1
|
|
3117
|
-
}, 8, ["icon", "class"])) :
|
|
3118
|
-
i(o).endDate != null && i(o).startDate != null && B.value === null ? (
|
|
3117
|
+
}, 8, ["icon", "class"])) : he("", !0),
|
|
3118
|
+
i(o).endDate != null && i(o).startDate != null && B.value === null ? (K(), de(F, {
|
|
3119
3119
|
key: 1,
|
|
3120
3120
|
class: "invisible pointer-events-none",
|
|
3121
3121
|
"aria-hidden": "true",
|
|
@@ -3129,17 +3129,17 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3129
3129
|
j[0] || (j[0] = Y("p", { class: "fm-typo-en-body-md-600" }, " ", -1))
|
|
3130
3130
|
]),
|
|
3131
3131
|
_: 1
|
|
3132
|
-
})) :
|
|
3132
|
+
})) : he("", !0)
|
|
3133
3133
|
]),
|
|
3134
3134
|
_: 1
|
|
3135
3135
|
}, 8, ["disabled"])
|
|
3136
3136
|
]),
|
|
3137
|
-
f.value ? (
|
|
3138
|
-
Y("div",
|
|
3137
|
+
f.value ? (K(), le("div", vl, [
|
|
3138
|
+
Y("div", yl, [
|
|
3139
3139
|
Y("span", {
|
|
3140
3140
|
class: Ie(W.value === null ? "" : "text-fm-color-primary-500")
|
|
3141
3141
|
}, Ce(h.value), 3),
|
|
3142
|
-
Y("span",
|
|
3142
|
+
Y("span", bl, Ce(u.value) + " / " + Ce(L.value), 1)
|
|
3143
3143
|
]),
|
|
3144
3144
|
Y("div", {
|
|
3145
3145
|
class: "h-8 mt-1 overflow-hidden rounded-full bg-fm-color-neutral-gray-100",
|
|
@@ -3153,10 +3153,10 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3153
3153
|
class: "h-full rounded-full bg-[#36A2EB] transition-[width] duration-300",
|
|
3154
3154
|
style: Pe({ width: `${C.value}%` })
|
|
3155
3155
|
}, null, 4)
|
|
3156
|
-
], 8,
|
|
3157
|
-
Y("p",
|
|
3158
|
-
])) : k.value ? (
|
|
3159
|
-
J(k.value.type) === "line" ? (
|
|
3156
|
+
], 8, Cl),
|
|
3157
|
+
Y("p", xl, Ce(I.value), 1)
|
|
3158
|
+
])) : k.value ? (K(), le("div", wl, [
|
|
3159
|
+
J(k.value.type) === "line" ? (K(), de(b, {
|
|
3160
3160
|
key: 0,
|
|
3161
3161
|
class: "sparkline sparkline-chart",
|
|
3162
3162
|
datasets: x.value,
|
|
@@ -3169,7 +3169,7 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3169
3169
|
"x-cfg": { display: !1 },
|
|
3170
3170
|
tooltip: $.value,
|
|
3171
3171
|
"maintain-aspect-ratio": !1
|
|
3172
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : J(k.value.type) === "bar" ? (
|
|
3172
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : J(k.value.type) === "bar" ? (K(), de(R, {
|
|
3173
3173
|
key: 1,
|
|
3174
3174
|
class: "sparkline sparkline-chart",
|
|
3175
3175
|
datasets: S.value,
|
|
@@ -3180,15 +3180,15 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3180
3180
|
"x-axis": { categories: k.value.dimensions },
|
|
3181
3181
|
"y-cfg": _.value,
|
|
3182
3182
|
"x-cfg": { display: !1 },
|
|
3183
|
-
tooltip:
|
|
3183
|
+
tooltip: q.value,
|
|
3184
3184
|
"maintain-aspect-ratio": !1
|
|
3185
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (
|
|
3185
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (K(), de(fl, {
|
|
3186
3186
|
key: 2,
|
|
3187
3187
|
dimensions: k.value.dimensions,
|
|
3188
3188
|
values: ((T = k.value.datasets[0]) == null ? void 0 : T.values) ?? [],
|
|
3189
3189
|
"percent-of-total": k.value.percentOfTotal === !0
|
|
3190
3190
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3191
|
-
])) : (
|
|
3191
|
+
])) : (K(), le("div", _l, j[1] || (j[1] = [
|
|
3192
3192
|
Y("div", { class: "sparkline" }, [
|
|
3193
3193
|
Y("div", { class: "flex flex-col gap-8" }, [
|
|
3194
3194
|
Y("div"),
|
|
@@ -3200,15 +3200,15 @@ const Zr = { class: "widget-content" }, xn = 1, ho = "rgba(0, 0, 0, 0)", Qr = /*
|
|
|
3200
3200
|
]);
|
|
3201
3201
|
};
|
|
3202
3202
|
}
|
|
3203
|
-
}),
|
|
3204
|
-
function
|
|
3203
|
+
}), kl = {};
|
|
3204
|
+
function Tl(e, t) {
|
|
3205
3205
|
const n = fe("FmMenuDivider");
|
|
3206
|
-
return
|
|
3206
|
+
return K(), de(n);
|
|
3207
3207
|
}
|
|
3208
|
-
const
|
|
3208
|
+
const Ll = /* @__PURE__ */ To(kl, [["render", Tl]]), Dl = "/assets/processTableData.worker-C2Ubh_e0.js", Il = { class: "flex h-full flex-col" }, Pl = { class: "my-4 shrink-0" }, Ml = {
|
|
3209
3209
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3210
3210
|
style: { backgroundColor: "#f9f9f9" }
|
|
3211
|
-
},
|
|
3211
|
+
}, Bl = { class: "font-bold" }, Al = { class: "text-fm-color-neutral-gray-300" }, Fl = /* @__PURE__ */ Ae({
|
|
3212
3212
|
__name: "WidgetTable",
|
|
3213
3213
|
props: /* @__PURE__ */ Oe({
|
|
3214
3214
|
tileIndex: {}
|
|
@@ -3218,7 +3218,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3218
3218
|
}),
|
|
3219
3219
|
emits: ["update:modelValue"],
|
|
3220
3220
|
setup(e) {
|
|
3221
|
-
const { t, te: n } = mt(), o = Ue(e, "modelValue"), { country: a } =
|
|
3221
|
+
const { t, te: n } = mt(), o = Ue(e, "modelValue"), { country: a } = ko(), { clearTileSorts: r, setTileSorts: l } = ha(), u = Nn(), f = e, m = P([]), D = P(null), W = c(() => {
|
|
3222
3222
|
var y;
|
|
3223
3223
|
return ((y = o.value.data) == null ? void 0 : y.columns) || [{ label: "", key: "" }];
|
|
3224
3224
|
}), C = c(() => {
|
|
@@ -3299,14 +3299,14 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3299
3299
|
} : (b.includes("#") && !b.startsWith("#") && (b = b.split("#")[0]), {
|
|
3300
3300
|
main: b,
|
|
3301
3301
|
comparison: y == null ? void 0 : y.comparison,
|
|
3302
|
-
difference:
|
|
3302
|
+
difference: Ao(y.main, y.comparison, i(a))
|
|
3303
3303
|
});
|
|
3304
3304
|
}
|
|
3305
|
-
|
|
3305
|
+
zt(() => {
|
|
3306
3306
|
r();
|
|
3307
3307
|
});
|
|
3308
3308
|
const x = P([]);
|
|
3309
|
-
let $ = 0,
|
|
3309
|
+
let $ = 0, q;
|
|
3310
3310
|
function O() {
|
|
3311
3311
|
var M;
|
|
3312
3312
|
if (!((M = o.value) != null && M.data)) {
|
|
@@ -3325,15 +3325,15 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3325
3325
|
rows: b,
|
|
3326
3326
|
columns: R,
|
|
3327
3327
|
filter: B.value ?? "",
|
|
3328
|
-
globalSorts:
|
|
3328
|
+
globalSorts: ca(m.value).map((z) => ({
|
|
3329
3329
|
key: z.key,
|
|
3330
3330
|
type: z.type
|
|
3331
3331
|
})),
|
|
3332
3332
|
grandTotalPosition: k.value,
|
|
3333
3333
|
pageSize: V.value
|
|
3334
3334
|
};
|
|
3335
|
-
|
|
3336
|
-
y === $ && (z != null && z.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(z.error), x.value = []) : x.value =
|
|
3335
|
+
ga(Dl, T).then((z) => {
|
|
3336
|
+
y === $ && (z != null && z.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(z.error), x.value = []) : x.value = da(z.data || []));
|
|
3337
3337
|
});
|
|
3338
3338
|
}
|
|
3339
3339
|
Le(
|
|
@@ -3358,7 +3358,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3358
3358
|
Le(
|
|
3359
3359
|
() => j.value,
|
|
3360
3360
|
() => {
|
|
3361
|
-
clearTimeout(
|
|
3361
|
+
clearTimeout(q), q = setTimeout(O, 200);
|
|
3362
3362
|
},
|
|
3363
3363
|
{ immediate: !0 }
|
|
3364
3364
|
);
|
|
@@ -3378,7 +3378,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3378
3378
|
accessorKey: b.key,
|
|
3379
3379
|
header: () => {
|
|
3380
3380
|
const H = fe("FmIcon");
|
|
3381
|
-
return
|
|
3381
|
+
return nn(
|
|
3382
3382
|
"button",
|
|
3383
3383
|
{
|
|
3384
3384
|
type: "button",
|
|
@@ -3386,12 +3386,12 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3386
3386
|
onClick: () => G(b.key)
|
|
3387
3387
|
},
|
|
3388
3388
|
[
|
|
3389
|
-
|
|
3389
|
+
nn(
|
|
3390
3390
|
"span",
|
|
3391
3391
|
{ class: `${b.type === "NUMERIC" ? "text-right" : ""} whitespace-nowrap` },
|
|
3392
3392
|
T
|
|
3393
3393
|
),
|
|
3394
|
-
|
|
3394
|
+
nn(H, {
|
|
3395
3395
|
name: se,
|
|
3396
3396
|
color: z ? "primary" : "neutral-gray-400",
|
|
3397
3397
|
size: "sm",
|
|
@@ -3402,9 +3402,9 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3402
3402
|
);
|
|
3403
3403
|
},
|
|
3404
3404
|
cell: (H) => {
|
|
3405
|
-
var ie,
|
|
3406
|
-
const Z = S(H.getValue()), te = (
|
|
3407
|
-
return
|
|
3405
|
+
var ie, me;
|
|
3406
|
+
const Z = S(H.getValue()), te = (me = (ie = H == null ? void 0 : H.row) == null ? void 0 : ie.original) == null ? void 0 : me.isRollup;
|
|
3407
|
+
return nn(
|
|
3408
3408
|
"div",
|
|
3409
3409
|
{
|
|
3410
3410
|
class: [
|
|
@@ -3425,8 +3425,8 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3425
3425
|
});
|
|
3426
3426
|
return (y, b) => {
|
|
3427
3427
|
const R = fe("FmTable");
|
|
3428
|
-
return
|
|
3429
|
-
Y("div",
|
|
3428
|
+
return K(), le("div", Il, [
|
|
3429
|
+
Y("div", Pl, [
|
|
3430
3430
|
ot(y.$slots, "menu")
|
|
3431
3431
|
]),
|
|
3432
3432
|
pe(R, {
|
|
@@ -3441,17 +3441,17 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3441
3441
|
class: "scrollbar-hide-table min-h-0 flex-1",
|
|
3442
3442
|
"pin-header-row": !0,
|
|
3443
3443
|
"auto-reset-page-index": !0
|
|
3444
|
-
},
|
|
3444
|
+
}, ua({ _: 2 }, [
|
|
3445
3445
|
k.value ? {
|
|
3446
3446
|
name: "pin-top",
|
|
3447
3447
|
fn: De(() => [
|
|
3448
|
-
(
|
|
3448
|
+
(K(), de(wo(k.value === i(Ge).bottom ? "tfoot" : "tbody"), null, {
|
|
3449
3449
|
default: De(() => [
|
|
3450
|
-
Y("tr",
|
|
3451
|
-
(
|
|
3450
|
+
Y("tr", Ml, [
|
|
3451
|
+
(K(!0), le(Ne, null, ft(_.value, (T, M) => {
|
|
3452
3452
|
var z;
|
|
3453
|
-
return
|
|
3454
|
-
key: `${i(
|
|
3453
|
+
return K(), le("td", {
|
|
3454
|
+
key: `${i(Rt)()}_${M}`,
|
|
3455
3455
|
class: "text-fm-color-typo-primary px-16",
|
|
3456
3456
|
style: Pe({
|
|
3457
3457
|
...L(),
|
|
@@ -3467,8 +3467,8 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3467
3467
|
]),
|
|
3468
3468
|
style: Pe(L())
|
|
3469
3469
|
}, [
|
|
3470
|
-
Y("p",
|
|
3471
|
-
Y("p",
|
|
3470
|
+
Y("p", Bl, Ce(T.rowType === "NUMERIC" ? i(dt)(T.main) : T.main), 1),
|
|
3471
|
+
Y("p", Al, Ce(T.comparison ? T.rowType === "NUMERIC" ? `(${i(dt)(T.comparison)})` : `(${T.comparison})` : ""), 1)
|
|
3472
3472
|
], 6)
|
|
3473
3473
|
], 4);
|
|
3474
3474
|
}), 128))
|
|
@@ -3483,7 +3483,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3483
3483
|
]);
|
|
3484
3484
|
};
|
|
3485
3485
|
}
|
|
3486
|
-
}),
|
|
3486
|
+
}), Rl = { class: "widget-content" }, Vl = /* @__PURE__ */ Ae({
|
|
3487
3487
|
__name: "WidgetStackBarChart",
|
|
3488
3488
|
props: /* @__PURE__ */ Oe({
|
|
3489
3489
|
tileIndex: {}
|
|
@@ -3504,10 +3504,10 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3504
3504
|
}), l = c(
|
|
3505
3505
|
() => r.value.some((T) => T.xAxisIndex !== void 0)
|
|
3506
3506
|
), u = c(
|
|
3507
|
-
() =>
|
|
3507
|
+
() => qt(r.value, o.value.length, {
|
|
3508
3508
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3509
3509
|
})
|
|
3510
|
-
), f =
|
|
3510
|
+
), f = Ut("bar"), m = c(() => t.value.stackBarOverlap === !0), D = c(() => m.value === !1), W = c(() => ({
|
|
3511
3511
|
...S.value,
|
|
3512
3512
|
stacked: D.value
|
|
3513
3513
|
})), C = c(() => ({
|
|
@@ -3528,10 +3528,10 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3528
3528
|
const L = c(() => {
|
|
3529
3529
|
if (r.value.length > 0) {
|
|
3530
3530
|
const T = u.value.map((M, z) => {
|
|
3531
|
-
const re =
|
|
3531
|
+
const re = Wt({
|
|
3532
3532
|
datasets: u.value,
|
|
3533
3533
|
datasetIndex: z
|
|
3534
|
-
}), se = l.value ?
|
|
3534
|
+
}), se = l.value ? Et(u.value, re) : re, H = Be({
|
|
3535
3535
|
datasetIndex: se,
|
|
3536
3536
|
isCompare: !1,
|
|
3537
3537
|
metricCount: t.value.metricCount,
|
|
@@ -3549,14 +3549,14 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3549
3549
|
colorIndex: H,
|
|
3550
3550
|
breakdownIndex: te
|
|
3551
3551
|
});
|
|
3552
|
-
let
|
|
3553
|
-
const ye =
|
|
3552
|
+
let me = M.values;
|
|
3553
|
+
const ye = Yt(me);
|
|
3554
3554
|
return {
|
|
3555
3555
|
dataset: {
|
|
3556
3556
|
label: M.name,
|
|
3557
3557
|
data: ye,
|
|
3558
3558
|
xAxisIndex: M.xAxisIndex,
|
|
3559
|
-
emptyValueIndexes: t.value.hasNullableMetric ? M.xAxisIndex === void 0 ?
|
|
3559
|
+
emptyValueIndexes: t.value.hasNullableMetric ? M.xAxisIndex === void 0 ? Kn(me) : me[M.xAxisIndex] === null ? [M.xAxisIndex] : void 0 : void 0,
|
|
3560
3560
|
dash: !!M.isCompare,
|
|
3561
3561
|
skipNull: l.value,
|
|
3562
3562
|
minBarLength: void 0,
|
|
@@ -3592,7 +3592,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3592
3592
|
xCfg: S,
|
|
3593
3593
|
yCfg: x,
|
|
3594
3594
|
isTransposed: $,
|
|
3595
|
-
legend:
|
|
3595
|
+
legend: q,
|
|
3596
3596
|
useCustomLegend: O,
|
|
3597
3597
|
legendPosition: j,
|
|
3598
3598
|
isLegendSide: G,
|
|
@@ -3600,7 +3600,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3600
3600
|
hiddenDatasetKeys: y,
|
|
3601
3601
|
toggleDatasetVisibility: b,
|
|
3602
3602
|
datasets: R
|
|
3603
|
-
} =
|
|
3603
|
+
} = Xt({
|
|
3604
3604
|
chartRef: n,
|
|
3605
3605
|
model: t,
|
|
3606
3606
|
baseDatasets: L
|
|
@@ -3608,21 +3608,21 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3608
3608
|
return (T, M) => {
|
|
3609
3609
|
var re, se, H, Z, te, ie;
|
|
3610
3610
|
const z = fe("FmBarChart");
|
|
3611
|
-
return
|
|
3612
|
-
Y("div",
|
|
3611
|
+
return K(), le(Ne, null, [
|
|
3612
|
+
Y("div", Rl, [
|
|
3613
3613
|
ot(T.$slots, "menu"),
|
|
3614
3614
|
Y("div", {
|
|
3615
3615
|
class: Ie(["chart-layout", {
|
|
3616
|
-
"chart-layout--side": i(O) && (i(
|
|
3616
|
+
"chart-layout--side": i(O) && (i(q).display ?? !1) && i(G)
|
|
3617
3617
|
}])
|
|
3618
3618
|
}, [
|
|
3619
|
-
i(O) && (i(
|
|
3619
|
+
i(O) && (i(q).display ?? !1) && i(F) ? (K(), de($e, {
|
|
3620
3620
|
key: 0,
|
|
3621
3621
|
"chart-ref": n.value,
|
|
3622
|
-
enabled: i(
|
|
3622
|
+
enabled: i(q).display ?? !1,
|
|
3623
3623
|
position: i(j),
|
|
3624
|
-
"text-color": (re = i(
|
|
3625
|
-
"font-size": (H = (se = i(
|
|
3624
|
+
"text-color": (re = i(q).labels) == null ? void 0 : re.color,
|
|
3625
|
+
"font-size": (H = (se = i(q).labels) == null ? void 0 : se.font) == null ? void 0 : H.size,
|
|
3626
3626
|
"legend-update-key": i(R),
|
|
3627
3627
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3628
3628
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3632,7 +3632,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3632
3632
|
"metric-count": t.value.metricCount,
|
|
3633
3633
|
"hidden-dataset-keys": i(y),
|
|
3634
3634
|
onToggleDatasetVisibility: i(b)
|
|
3635
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3635
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
3636
3636
|
pe(z, {
|
|
3637
3637
|
ref_key: "chartRef",
|
|
3638
3638
|
ref: n,
|
|
@@ -3649,13 +3649,13 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3649
3649
|
datalabels: i(_),
|
|
3650
3650
|
"maintain-aspect-ratio": !1
|
|
3651
3651
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3652
|
-
i(O) && (i(
|
|
3652
|
+
i(O) && (i(q).display ?? !1) && !i(F) ? (K(), de($e, {
|
|
3653
3653
|
key: 1,
|
|
3654
3654
|
"chart-ref": n.value,
|
|
3655
|
-
enabled: i(
|
|
3655
|
+
enabled: i(q).display ?? !1,
|
|
3656
3656
|
position: i(j),
|
|
3657
|
-
"text-color": (Z = i(
|
|
3658
|
-
"font-size": (ie = (te = i(
|
|
3657
|
+
"text-color": (Z = i(q).labels) == null ? void 0 : Z.color,
|
|
3658
|
+
"font-size": (ie = (te = i(q).labels) == null ? void 0 : te.font) == null ? void 0 : ie.size,
|
|
3659
3659
|
"legend-update-key": i(R),
|
|
3660
3660
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3661
3661
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3665,10 +3665,10 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3665
3665
|
"metric-count": t.value.metricCount,
|
|
3666
3666
|
"hidden-dataset-keys": i(y),
|
|
3667
3667
|
onToggleDatasetVisibility: i(b)
|
|
3668
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3668
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0)
|
|
3669
3669
|
], 2)
|
|
3670
3670
|
]),
|
|
3671
|
-
pe(
|
|
3671
|
+
pe(Kt, {
|
|
3672
3672
|
"model-value": i(I),
|
|
3673
3673
|
"details-payload": i(A),
|
|
3674
3674
|
"onUpdate:modelValue": i(B),
|
|
@@ -3678,7 +3678,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3678
3678
|
], 64);
|
|
3679
3679
|
};
|
|
3680
3680
|
}
|
|
3681
|
-
}),
|
|
3681
|
+
}), Nl = { class: "widget-content" }, Sn = 1, bo = "rgba(0, 0, 0, 0)", $l = /* @__PURE__ */ Ae({
|
|
3682
3682
|
__name: "WidgetClusteredStackBarchart",
|
|
3683
3683
|
props: /* @__PURE__ */ Oe({
|
|
3684
3684
|
tileIndex: {}
|
|
@@ -3699,11 +3699,11 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3699
3699
|
}), l = c(
|
|
3700
3700
|
() => r.value.some((H) => H.xAxisIndex !== void 0)
|
|
3701
3701
|
), u = c(
|
|
3702
|
-
() =>
|
|
3702
|
+
() => qt(r.value, o.value.length, {
|
|
3703
3703
|
preserveNullableValues: t.value.hasNullableMetric
|
|
3704
3704
|
})
|
|
3705
|
-
), f =
|
|
3706
|
-
...
|
|
3705
|
+
), f = Ut("bar"), m = c(() => t.value.stackBarOverlap === !0), D = c(() => m.value === !1), W = c(() => !l.value && o.value.length === 1 && r.value.some((H) => H.isCompare === !0)), C = c(() => ({
|
|
3706
|
+
...q.value,
|
|
3707
3707
|
stacked: D.value
|
|
3708
3708
|
})), v = c(() => ({
|
|
3709
3709
|
...O.value,
|
|
@@ -3732,8 +3732,8 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3732
3732
|
colorIndex: Z
|
|
3733
3733
|
}) {
|
|
3734
3734
|
var ye;
|
|
3735
|
-
const te = t.value.chartColorBinding === xe.metric ? Z : H, ie = (ye = t.value.chartColorLayers) == null ? void 0 : ye[te],
|
|
3736
|
-
return Number.isInteger(
|
|
3735
|
+
const te = t.value.chartColorBinding === xe.metric ? Z : H, ie = (ye = t.value.chartColorLayers) == null ? void 0 : ye[te], me = Number(ie);
|
|
3736
|
+
return Number.isInteger(me) && me > 0 ? me : te + 1;
|
|
3737
3737
|
}
|
|
3738
3738
|
function A(H) {
|
|
3739
3739
|
return {
|
|
@@ -3742,10 +3742,10 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3742
3742
|
data: [0],
|
|
3743
3743
|
grouped: !0,
|
|
3744
3744
|
stack: `__comparison_gap__${H}`,
|
|
3745
|
-
backgroundColor:
|
|
3746
|
-
borderColor:
|
|
3745
|
+
backgroundColor: bo,
|
|
3746
|
+
borderColor: bo,
|
|
3747
3747
|
minBarLength: 0,
|
|
3748
|
-
barPercentage:
|
|
3748
|
+
barPercentage: Sn,
|
|
3749
3749
|
isSpacer: !0
|
|
3750
3750
|
};
|
|
3751
3751
|
}
|
|
@@ -3762,13 +3762,13 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3762
3762
|
const { clusterKey: we, metricLabel: _e } = h(ne.name);
|
|
3763
3763
|
te.has(we) || te.set(we, te.size), Z.has(_e) || Z.set(_e, Z.size);
|
|
3764
3764
|
}
|
|
3765
|
-
const ie = Math.max(Z.size, 1),
|
|
3765
|
+
const ie = Math.max(Z.size, 1), me = t.value.chartColorBinding === xe.breakdown, ye = t.value.chartUseSecondaryMetricShades !== !1;
|
|
3766
3766
|
return H.map((ne) => {
|
|
3767
3767
|
var st;
|
|
3768
|
-
const we =
|
|
3768
|
+
const we = Wt({
|
|
3769
3769
|
datasets: u.value,
|
|
3770
3770
|
datasetIndex: ne.index
|
|
3771
|
-
}), _e = l.value ?
|
|
3771
|
+
}), _e = l.value ? Et(u.value, we) : we, Se = Do({
|
|
3772
3772
|
datasets: u.value,
|
|
3773
3773
|
datasetIndex: ne.index
|
|
3774
3774
|
}), Ze = Be({
|
|
@@ -3781,7 +3781,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3781
3781
|
isCompare: !1,
|
|
3782
3782
|
metricCount: ie,
|
|
3783
3783
|
mode: xe.breakdown
|
|
3784
|
-
}), rt = Z.get(ht) ?? 0, lt =
|
|
3784
|
+
}), rt = Z.get(ht) ?? 0, lt = me ? Tt({
|
|
3785
3785
|
breakdownIndex: gt,
|
|
3786
3786
|
metricIndex: rt,
|
|
3787
3787
|
metricCount: ie,
|
|
@@ -3796,17 +3796,17 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3796
3796
|
}), vt = I({
|
|
3797
3797
|
datasetIndex: _e,
|
|
3798
3798
|
colorIndex: Ze
|
|
3799
|
-
}), ze =
|
|
3799
|
+
}), ze = Yt(ne.values);
|
|
3800
3800
|
return {
|
|
3801
3801
|
label: ne.name,
|
|
3802
3802
|
tooltipLabel: `${Fe} - ${at}`,
|
|
3803
3803
|
data: ze,
|
|
3804
3804
|
xAxisIndex: ne.source.xAxisIndex,
|
|
3805
|
-
emptyValueIndexes: t.value.hasNullableMetric ? ne.source.xAxisIndex === void 0 ?
|
|
3805
|
+
emptyValueIndexes: t.value.hasNullableMetric ? ne.source.xAxisIndex === void 0 ? Kn(ne.values) : ne.values[ne.source.xAxisIndex] === null ? [ne.source.xAxisIndex] : void 0 : void 0,
|
|
3806
3806
|
dash: !!ne.source.isCompare,
|
|
3807
3807
|
skipNull: l.value,
|
|
3808
3808
|
minBarLength: void 0,
|
|
3809
|
-
barPercentage: W.value ?
|
|
3809
|
+
barPercentage: W.value ? Sn : void 0,
|
|
3810
3810
|
grouped: !0,
|
|
3811
3811
|
order: m.value ? vt : void 0,
|
|
3812
3812
|
stack: ne.source.isCompare ? `${Fe}__compare` : `${Fe}__main`,
|
|
@@ -3821,7 +3821,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3821
3821
|
handleTooltipDetailsLeave: S,
|
|
3822
3822
|
comparisonTooltip: x,
|
|
3823
3823
|
datalabels: $,
|
|
3824
|
-
xCfg:
|
|
3824
|
+
xCfg: q,
|
|
3825
3825
|
yCfg: O,
|
|
3826
3826
|
isTransposed: j,
|
|
3827
3827
|
legend: G,
|
|
@@ -3832,7 +3832,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3832
3832
|
hiddenDatasetKeys: T,
|
|
3833
3833
|
toggleDatasetVisibility: M,
|
|
3834
3834
|
datasets: z
|
|
3835
|
-
} =
|
|
3835
|
+
} = Xt({
|
|
3836
3836
|
chartRef: n,
|
|
3837
3837
|
model: t,
|
|
3838
3838
|
baseDatasets: B
|
|
@@ -3843,7 +3843,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3843
3843
|
return z.value.forEach((Z, te) => {
|
|
3844
3844
|
H.push({
|
|
3845
3845
|
...Z,
|
|
3846
|
-
barPercentage:
|
|
3846
|
+
barPercentage: Sn
|
|
3847
3847
|
});
|
|
3848
3848
|
const ie = z.value[te + 1];
|
|
3849
3849
|
Z.dash === !0 && ie && H.push(A(te));
|
|
@@ -3858,23 +3858,23 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3858
3858
|
}
|
|
3859
3859
|
}));
|
|
3860
3860
|
return (H, Z) => {
|
|
3861
|
-
var ie,
|
|
3861
|
+
var ie, me, ye, ne, we, _e;
|
|
3862
3862
|
const te = fe("FmBarChart");
|
|
3863
|
-
return
|
|
3864
|
-
Y("div",
|
|
3863
|
+
return K(), le(Ne, null, [
|
|
3864
|
+
Y("div", Nl, [
|
|
3865
3865
|
ot(H.$slots, "menu"),
|
|
3866
3866
|
Y("div", {
|
|
3867
3867
|
class: Ie(["chart-layout", {
|
|
3868
3868
|
"chart-layout--side": i(F) && (i(G).display ?? !1) && i(b)
|
|
3869
3869
|
}])
|
|
3870
3870
|
}, [
|
|
3871
|
-
i(F) && (i(G).display ?? !1) && i(R) ? (
|
|
3871
|
+
i(F) && (i(G).display ?? !1) && i(R) ? (K(), de($e, {
|
|
3872
3872
|
key: 0,
|
|
3873
3873
|
"chart-ref": n.value,
|
|
3874
3874
|
enabled: i(G).display ?? !1,
|
|
3875
3875
|
position: i(y),
|
|
3876
3876
|
"text-color": (ie = i(G).labels) == null ? void 0 : ie.color,
|
|
3877
|
-
"font-size": (ye = (
|
|
3877
|
+
"font-size": (ye = (me = i(G).labels) == null ? void 0 : me.font) == null ? void 0 : ye.size,
|
|
3878
3878
|
"legend-update-key": i(z),
|
|
3879
3879
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
3880
3880
|
"chart-color-binding": t.value.chartColorBinding,
|
|
@@ -3884,7 +3884,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3884
3884
|
"metric-count": t.value.metricCount,
|
|
3885
3885
|
"hidden-dataset-keys": i(T),
|
|
3886
3886
|
onToggleDatasetVisibility: i(M)
|
|
3887
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3887
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
3888
3888
|
pe(te, {
|
|
3889
3889
|
ref_key: "chartRef",
|
|
3890
3890
|
ref: n,
|
|
@@ -3901,7 +3901,7 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3901
3901
|
datalabels: i($),
|
|
3902
3902
|
"maintain-aspect-ratio": !1
|
|
3903
3903
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "stacked", "legend", "tooltip", "plugins", "datalabels"]),
|
|
3904
|
-
i(F) && (i(G).display ?? !1) && !i(R) ? (
|
|
3904
|
+
i(F) && (i(G).display ?? !1) && !i(R) ? (K(), de($e, {
|
|
3905
3905
|
key: 1,
|
|
3906
3906
|
"chart-ref": n.value,
|
|
3907
3907
|
enabled: i(G).display ?? !1,
|
|
@@ -3917,10 +3917,10 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3917
3917
|
"metric-count": t.value.metricCount,
|
|
3918
3918
|
"hidden-dataset-keys": i(T),
|
|
3919
3919
|
onToggleDatasetVisibility: i(M)
|
|
3920
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
3920
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0)
|
|
3921
3921
|
], 2)
|
|
3922
3922
|
]),
|
|
3923
|
-
pe(
|
|
3923
|
+
pe(Kt, {
|
|
3924
3924
|
"model-value": i(J),
|
|
3925
3925
|
"details-payload": i(k),
|
|
3926
3926
|
"onUpdate:modelValue": i(V),
|
|
@@ -3931,23 +3931,23 @@ const _l = /* @__PURE__ */ _o(xl, [["render", wl]]), Sl = "/assets/processTableD
|
|
|
3931
3931
|
};
|
|
3932
3932
|
}
|
|
3933
3933
|
});
|
|
3934
|
-
function
|
|
3934
|
+
function zl(e) {
|
|
3935
3935
|
const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
|
|
3936
|
-
return
|
|
3936
|
+
return Ta(t, n);
|
|
3937
3937
|
}
|
|
3938
|
-
function
|
|
3938
|
+
function Eo(e = "report-line-style-plugin") {
|
|
3939
3939
|
return {
|
|
3940
3940
|
id: e,
|
|
3941
3941
|
beforeDatasetsUpdate(t) {
|
|
3942
3942
|
var o;
|
|
3943
3943
|
(((o = t == null ? void 0 : t.data) == null ? void 0 : o.datasets) ?? []).forEach((a) => {
|
|
3944
3944
|
const r = a;
|
|
3945
|
-
Reflect.set(r, "borderDash",
|
|
3945
|
+
Reflect.set(r, "borderDash", zl(r));
|
|
3946
3946
|
});
|
|
3947
3947
|
}
|
|
3948
3948
|
};
|
|
3949
3949
|
}
|
|
3950
|
-
const
|
|
3950
|
+
const Hl = { class: "widget-content" }, Wl = /* @__PURE__ */ Ae({
|
|
3951
3951
|
__name: "WidgetStackLineChart",
|
|
3952
3952
|
props: /* @__PURE__ */ Oe({
|
|
3953
3953
|
tileIndex: {}
|
|
@@ -3965,22 +3965,22 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
3965
3965
|
return ((b = t.value.data) == null ? void 0 : b.datasets) ?? [];
|
|
3966
3966
|
}), r = c(
|
|
3967
3967
|
() => a.value.some((b) => b.xAxisIndex !== void 0)
|
|
3968
|
-
), l = c(() =>
|
|
3968
|
+
), l = c(() => qt(a.value, o.value.length)), u = c(
|
|
3969
3969
|
() => !r.value && o.value.length === 1 && a.value.length > 0 && a.value.every((b) => b.values.length === 1)
|
|
3970
3970
|
), f = c(() => u.value ? ["", o.value[0], ""] : o.value), m = c(() => ({
|
|
3971
3971
|
categories: f.value
|
|
3972
3972
|
})), D = c(() => ({
|
|
3973
3973
|
display: !1
|
|
3974
|
-
})), W =
|
|
3974
|
+
})), W = Ut("line"), C = Eo("report-line-style-plugin-stack-line"), v = c(() => a.value.length > 0 ? [
|
|
3975
3975
|
...l.value.map((b, R) => {
|
|
3976
3976
|
var ne;
|
|
3977
|
-
const T =
|
|
3977
|
+
const T = Wt({
|
|
3978
3978
|
datasets: l.value,
|
|
3979
3979
|
datasetIndex: R
|
|
3980
|
-
}), M = r.value ?
|
|
3980
|
+
}), M = r.value ? Et(l.value, T) : T;
|
|
3981
3981
|
let z = b.values;
|
|
3982
3982
|
u.value && (z = [NaN, z[0], NaN]);
|
|
3983
|
-
const re =
|
|
3983
|
+
const re = Yt(z), se = Be({
|
|
3984
3984
|
datasetIndex: M,
|
|
3985
3985
|
isCompare: !1,
|
|
3986
3986
|
metricCount: t.value.metricCount,
|
|
@@ -3995,11 +3995,11 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
3995
3995
|
isCompare: b.isCompare,
|
|
3996
3996
|
metricCount: t.value.metricCount,
|
|
3997
3997
|
mode: t.value.lineStyleBinding
|
|
3998
|
-
}), te = (ne = t.value.lineStyles) == null ? void 0 : ne[Z], ie = t.value.chartColorBinding === xe.breakdown,
|
|
3998
|
+
}), te = (ne = t.value.lineStyles) == null ? void 0 : ne[Z], ie = t.value.chartColorBinding === xe.breakdown, me = St({
|
|
3999
3999
|
fallbackIndex: M,
|
|
4000
4000
|
metricCount: t.value.metricCount
|
|
4001
4001
|
}), ye = ie ? Tt({
|
|
4002
|
-
breakdownIndex:
|
|
4002
|
+
breakdownIndex: me,
|
|
4003
4003
|
metricIndex: H,
|
|
4004
4004
|
metricCount: t.value.metricCount,
|
|
4005
4005
|
isCompare: b.isCompare,
|
|
@@ -4038,13 +4038,13 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4038
4038
|
isTransposed: S,
|
|
4039
4039
|
legend: x,
|
|
4040
4040
|
useCustomLegend: $,
|
|
4041
|
-
legendPosition:
|
|
4041
|
+
legendPosition: q,
|
|
4042
4042
|
isLegendSide: O,
|
|
4043
4043
|
isLegendBeforeChart: j,
|
|
4044
4044
|
hiddenDatasetKeys: G,
|
|
4045
4045
|
toggleDatasetVisibility: F,
|
|
4046
4046
|
datasets: y
|
|
4047
|
-
} =
|
|
4047
|
+
} = Xt({
|
|
4048
4048
|
chartRef: n,
|
|
4049
4049
|
model: t,
|
|
4050
4050
|
baseDatasets: v
|
|
@@ -4052,19 +4052,19 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4052
4052
|
return (b, R) => {
|
|
4053
4053
|
var M, z, re, se, H, Z;
|
|
4054
4054
|
const T = fe("FmLineChart");
|
|
4055
|
-
return
|
|
4056
|
-
Y("div",
|
|
4055
|
+
return K(), le(Ne, null, [
|
|
4056
|
+
Y("div", Hl, [
|
|
4057
4057
|
ot(b.$slots, "menu"),
|
|
4058
4058
|
Y("div", {
|
|
4059
4059
|
class: Ie(["chart-layout", {
|
|
4060
4060
|
"chart-layout--side": i($) && (i(x).display ?? !1) && i(O)
|
|
4061
4061
|
}])
|
|
4062
4062
|
}, [
|
|
4063
|
-
i($) && (i(x).display ?? !1) && i(j) ? (
|
|
4063
|
+
i($) && (i(x).display ?? !1) && i(j) ? (K(), de($e, {
|
|
4064
4064
|
key: 0,
|
|
4065
4065
|
"chart-ref": n.value,
|
|
4066
4066
|
enabled: i(x).display ?? !1,
|
|
4067
|
-
position: i(
|
|
4067
|
+
position: i(q),
|
|
4068
4068
|
"text-color": (M = i(x).labels) == null ? void 0 : M.color,
|
|
4069
4069
|
"font-size": (re = (z = i(x).labels) == null ? void 0 : z.font) == null ? void 0 : re.size,
|
|
4070
4070
|
"legend-update-key": i(y),
|
|
@@ -4076,7 +4076,7 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4076
4076
|
"metric-count": t.value.metricCount,
|
|
4077
4077
|
"hidden-dataset-keys": i(G),
|
|
4078
4078
|
onToggleDatasetVisibility: i(F)
|
|
4079
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
4079
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0),
|
|
4080
4080
|
pe(T, {
|
|
4081
4081
|
ref_key: "chartRef",
|
|
4082
4082
|
ref: n,
|
|
@@ -4093,11 +4093,11 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4093
4093
|
datalabels: i(k),
|
|
4094
4094
|
"maintain-aspect-ratio": !1
|
|
4095
4095
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "plugins", "datalabels"]),
|
|
4096
|
-
i($) && (i(x).display ?? !1) && !i(j) ? (
|
|
4096
|
+
i($) && (i(x).display ?? !1) && !i(j) ? (K(), de($e, {
|
|
4097
4097
|
key: 1,
|
|
4098
4098
|
"chart-ref": n.value,
|
|
4099
4099
|
enabled: i(x).display ?? !1,
|
|
4100
|
-
position: i(
|
|
4100
|
+
position: i(q),
|
|
4101
4101
|
"text-color": (se = i(x).labels) == null ? void 0 : se.color,
|
|
4102
4102
|
"font-size": (Z = (H = i(x).labels) == null ? void 0 : H.font) == null ? void 0 : Z.size,
|
|
4103
4103
|
"legend-update-key": i(y),
|
|
@@ -4109,10 +4109,10 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4109
4109
|
"metric-count": t.value.metricCount,
|
|
4110
4110
|
"hidden-dataset-keys": i(G),
|
|
4111
4111
|
onToggleDatasetVisibility: i(F)
|
|
4112
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) :
|
|
4112
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "use-point-style", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "onToggleDatasetVisibility"])) : he("", !0)
|
|
4113
4113
|
], 2)
|
|
4114
4114
|
]),
|
|
4115
|
-
pe(
|
|
4115
|
+
pe(Kt, {
|
|
4116
4116
|
"model-value": i(h),
|
|
4117
4117
|
"details-payload": i(L),
|
|
4118
4118
|
"onUpdate:modelValue": i(I),
|
|
@@ -4122,7 +4122,63 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4122
4122
|
], 64);
|
|
4123
4123
|
};
|
|
4124
4124
|
}
|
|
4125
|
-
}),
|
|
4125
|
+
}), Xn = "data:image/svg+xml;base64,";
|
|
4126
|
+
function qo(e) {
|
|
4127
|
+
return e.startsWith(Xn);
|
|
4128
|
+
}
|
|
4129
|
+
function Ol(e) {
|
|
4130
|
+
if (!e.trim()) return "";
|
|
4131
|
+
const t = new TextEncoder().encode(e);
|
|
4132
|
+
let n = "";
|
|
4133
|
+
for (const o of t) n += String.fromCharCode(o);
|
|
4134
|
+
return `${Xn}${btoa(n)}`;
|
|
4135
|
+
}
|
|
4136
|
+
function ks(e) {
|
|
4137
|
+
if (!qo(e)) return e;
|
|
4138
|
+
try {
|
|
4139
|
+
const t = atob(e.slice(Xn.length));
|
|
4140
|
+
return new TextDecoder().decode(Uint8Array.from(t, (n) => n.charCodeAt(0)));
|
|
4141
|
+
} catch {
|
|
4142
|
+
return "";
|
|
4143
|
+
}
|
|
4144
|
+
}
|
|
4145
|
+
const Ul = ["src"], Kl = /* @__PURE__ */ Ae({
|
|
4146
|
+
__name: "TitleIcon",
|
|
4147
|
+
props: {
|
|
4148
|
+
icon: {},
|
|
4149
|
+
type: {},
|
|
4150
|
+
size: {}
|
|
4151
|
+
},
|
|
4152
|
+
setup(e) {
|
|
4153
|
+
const t = e, n = c(
|
|
4154
|
+
() => ({
|
|
4155
|
+
[At.Small]: 16,
|
|
4156
|
+
[At.Medium]: 20,
|
|
4157
|
+
[At.Large]: 24,
|
|
4158
|
+
[At.ExtraLarge]: 32
|
|
4159
|
+
})[t.size ?? At.Small]
|
|
4160
|
+
), o = c(
|
|
4161
|
+
() => t.type ?? (t.icon.trim().startsWith("<svg") ? on.Custom : on.Material)
|
|
4162
|
+
), a = c(() => o.value !== on.Custom || !t.icon.trim() ? "" : qo(t.icon) ? t.icon : Ol(t.icon));
|
|
4163
|
+
return (r, l) => {
|
|
4164
|
+
const u = fe("FmIcon");
|
|
4165
|
+
return o.value === i(on).Material && r.icon ? (K(), de(u, {
|
|
4166
|
+
key: 0,
|
|
4167
|
+
name: r.icon,
|
|
4168
|
+
size: r.size ?? "sm",
|
|
4169
|
+
class: "shrink-0",
|
|
4170
|
+
"aria-hidden": "true"
|
|
4171
|
+
}, null, 8, ["name", "size"])) : a.value ? (K(), le("img", {
|
|
4172
|
+
key: 1,
|
|
4173
|
+
src: a.value,
|
|
4174
|
+
class: "title-icon shrink-0",
|
|
4175
|
+
style: Pe({ width: `${n.value}px`, height: `${n.value}px` }),
|
|
4176
|
+
alt: "",
|
|
4177
|
+
"aria-hidden": "true"
|
|
4178
|
+
}, null, 12, Ul)) : he("", !0);
|
|
4179
|
+
};
|
|
4180
|
+
}
|
|
4181
|
+
}), Yn = [
|
|
4126
4182
|
"col-span-1",
|
|
4127
4183
|
"col-span-2",
|
|
4128
4184
|
"col-span-3",
|
|
@@ -4136,29 +4192,29 @@ const Vl = { class: "widget-content" }, Nl = /* @__PURE__ */ Ae({
|
|
|
4136
4192
|
"col-span-11",
|
|
4137
4193
|
"col-span-12"
|
|
4138
4194
|
];
|
|
4139
|
-
function
|
|
4195
|
+
function Xl(e) {
|
|
4140
4196
|
return Math.min(12, e);
|
|
4141
4197
|
}
|
|
4142
|
-
function
|
|
4198
|
+
function Yl(e) {
|
|
4143
4199
|
return Math.min(12, e * 2);
|
|
4144
4200
|
}
|
|
4145
|
-
function
|
|
4201
|
+
function El(e) {
|
|
4146
4202
|
return Math.min(12, e * 3);
|
|
4147
4203
|
}
|
|
4148
|
-
function
|
|
4149
|
-
return
|
|
4204
|
+
function ql(e) {
|
|
4205
|
+
return Yn[Xl(e) - 1];
|
|
4150
4206
|
}
|
|
4151
|
-
function
|
|
4152
|
-
return
|
|
4207
|
+
function Gl(e) {
|
|
4208
|
+
return Yn[Yl(e) - 1];
|
|
4153
4209
|
}
|
|
4154
|
-
function
|
|
4155
|
-
return
|
|
4210
|
+
function jl(e) {
|
|
4211
|
+
return Yn[El(e) - 1];
|
|
4156
4212
|
}
|
|
4157
|
-
const
|
|
4158
|
-
function
|
|
4159
|
-
return (t === "SCORECARD" ?
|
|
4213
|
+
const Jl = 150, Zl = 200;
|
|
4214
|
+
function Ql(e, t) {
|
|
4215
|
+
return (t === "SCORECARD" ? Zl : Jl) * e;
|
|
4160
4216
|
}
|
|
4161
|
-
const
|
|
4217
|
+
const es = { class: "widget-content" }, ts = /* @__PURE__ */ Ae({
|
|
4162
4218
|
__name: "WidgetLinechart",
|
|
4163
4219
|
props: /* @__PURE__ */ Oe({
|
|
4164
4220
|
tileIndex: {}
|
|
@@ -4176,19 +4232,19 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4176
4232
|
return ((R = t.value.data) == null ? void 0 : R.xAxis) ?? [];
|
|
4177
4233
|
}), r = c(
|
|
4178
4234
|
() => o.value.some((R) => R.xAxisIndex !== void 0)
|
|
4179
|
-
), l = c(() =>
|
|
4235
|
+
), l = c(() => qt(o.value, a.value.length)), u = c(() => !r.value && a.value.length === 1 && o.value.length > 1 && o.value.every((R) => R.values.length === 1 && R.isCompare !== !0)), f = c(
|
|
4180
4236
|
() => !r.value && a.value.length === 1 && o.value.length > 0 && o.value.every((R) => R.values.length === 1)
|
|
4181
4237
|
), m = c(() => u.value ? o.value.map((R) => R.name) : f.value ? ["", a.value[0], ""] : a.value), D = c(() => ({
|
|
4182
4238
|
categories: m.value
|
|
4183
4239
|
})), W = c(() => ({
|
|
4184
4240
|
display: !1
|
|
4185
|
-
})), C =
|
|
4241
|
+
})), C = Ut("line"), v = Eo("report-line-style-plugin-line"), h = c(() => o.value.length > 0 ? [
|
|
4186
4242
|
...l.value.map((R, T) => {
|
|
4187
4243
|
var Se;
|
|
4188
|
-
const M =
|
|
4244
|
+
const M = Wt({
|
|
4189
4245
|
datasets: l.value,
|
|
4190
4246
|
datasetIndex: T
|
|
4191
|
-
}), z = r.value ?
|
|
4247
|
+
}), z = r.value ? Et(l.value, M) : M, re = Be({
|
|
4192
4248
|
datasetIndex: z,
|
|
4193
4249
|
isCompare: !1,
|
|
4194
4250
|
metricCount: t.value.metricCount,
|
|
@@ -4214,11 +4270,11 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4214
4270
|
useSecondaryMetricShades: t.value.chartUseSecondaryMetricShades,
|
|
4215
4271
|
customColors: t.value.chartColors
|
|
4216
4272
|
}) : H;
|
|
4217
|
-
let
|
|
4218
|
-
u.value ?
|
|
4273
|
+
let me = R.values;
|
|
4274
|
+
u.value ? me = l.value.map(
|
|
4219
4275
|
(Ze, Fe) => Fe === T ? R.values[0] : NaN
|
|
4220
|
-
) : f.value && (
|
|
4221
|
-
const ye =
|
|
4276
|
+
) : f.value && (me = [NaN, me[0], NaN]);
|
|
4277
|
+
const ye = Yt(me), ne = f.value || u.value, we = Be({
|
|
4222
4278
|
datasetIndex: T,
|
|
4223
4279
|
isCompare: R.isCompare,
|
|
4224
4280
|
metricCount: t.value.metricCount,
|
|
@@ -4250,14 +4306,14 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4250
4306
|
yCfg: S,
|
|
4251
4307
|
isTransposed: x,
|
|
4252
4308
|
legend: $,
|
|
4253
|
-
useCustomLegend:
|
|
4309
|
+
useCustomLegend: q,
|
|
4254
4310
|
legendPosition: O,
|
|
4255
4311
|
isLegendSide: j,
|
|
4256
4312
|
isLegendBeforeChart: G,
|
|
4257
4313
|
hiddenDatasetKeys: F,
|
|
4258
4314
|
toggleDatasetVisibility: y,
|
|
4259
4315
|
datasets: b
|
|
4260
|
-
} =
|
|
4316
|
+
} = Xt({
|
|
4261
4317
|
chartRef: n,
|
|
4262
4318
|
model: t,
|
|
4263
4319
|
baseDatasets: h
|
|
@@ -4265,15 +4321,15 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4265
4321
|
return (R, T) => {
|
|
4266
4322
|
var z, re, se, H, Z, te;
|
|
4267
4323
|
const M = fe("FmLineChart");
|
|
4268
|
-
return
|
|
4269
|
-
Y("div",
|
|
4324
|
+
return K(), le(Ne, null, [
|
|
4325
|
+
Y("div", es, [
|
|
4270
4326
|
ot(R.$slots, "menu"),
|
|
4271
4327
|
Y("div", {
|
|
4272
4328
|
class: Ie(["chart-layout", {
|
|
4273
|
-
"chart-layout--side": i(
|
|
4329
|
+
"chart-layout--side": i(q) && (i($).display ?? !1) && i(j)
|
|
4274
4330
|
}])
|
|
4275
4331
|
}, [
|
|
4276
|
-
i(
|
|
4332
|
+
i(q) && (i($).display ?? !1) && i(G) ? (K(), de($e, {
|
|
4277
4333
|
key: 0,
|
|
4278
4334
|
"chart-ref": n.value,
|
|
4279
4335
|
enabled: i($).display ?? !1,
|
|
@@ -4289,7 +4345,7 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4289
4345
|
"hidden-dataset-keys": i(F),
|
|
4290
4346
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4291
4347
|
onToggleDatasetVisibility: i(y)
|
|
4292
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) :
|
|
4348
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : he("", !0),
|
|
4293
4349
|
pe(M, {
|
|
4294
4350
|
ref_key: "chartRef",
|
|
4295
4351
|
ref: n,
|
|
@@ -4305,7 +4361,7 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4305
4361
|
plugins: [i(C), i(v)],
|
|
4306
4362
|
"maintain-aspect-ratio": !1
|
|
4307
4363
|
}, null, 8, ["datasets", "x-axis", "x-cfg", "y-cfg", "transpose", "legend", "tooltip", "datalabels", "plugins"]),
|
|
4308
|
-
i(
|
|
4364
|
+
i(q) && (i($).display ?? !1) && !i(G) ? (K(), de($e, {
|
|
4309
4365
|
key: 1,
|
|
4310
4366
|
"chart-ref": n.value,
|
|
4311
4367
|
enabled: i($).display ?? !1,
|
|
@@ -4321,10 +4377,10 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4321
4377
|
"hidden-dataset-keys": i(F),
|
|
4322
4378
|
"use-point-style": t.value.usePointStyle ?? !0,
|
|
4323
4379
|
onToggleDatasetVisibility: i(y)
|
|
4324
|
-
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) :
|
|
4380
|
+
}, null, 8, ["chart-ref", "enabled", "position", "text-color", "font-size", "legend-update-key", "chart-color-binding", "chart-colors", "chart-breakdown-colors", "chart-use-secondary-metric-shades", "metric-count", "hidden-dataset-keys", "use-point-style", "onToggleDatasetVisibility"])) : he("", !0)
|
|
4325
4381
|
], 2)
|
|
4326
4382
|
]),
|
|
4327
|
-
pe(
|
|
4383
|
+
pe(Kt, {
|
|
4328
4384
|
"model-value": i(L),
|
|
4329
4385
|
"details-payload": i(I),
|
|
4330
4386
|
"onUpdate:modelValue": i(A),
|
|
@@ -4334,7 +4390,7 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4334
4390
|
], 64);
|
|
4335
4391
|
};
|
|
4336
4392
|
}
|
|
4337
|
-
}),
|
|
4393
|
+
}), ns = { class: "flex flex-col gap-16" }, os = { class: "flex flex-row" }, as = /* @__PURE__ */ Ae({
|
|
4338
4394
|
__name: "PdfOrientationDialog",
|
|
4339
4395
|
props: /* @__PURE__ */ Oe({
|
|
4340
4396
|
reportType: {},
|
|
@@ -4345,7 +4401,7 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4345
4401
|
}),
|
|
4346
4402
|
emits: ["update:modelValue"],
|
|
4347
4403
|
setup(e) {
|
|
4348
|
-
const { t } = mt(), { FmForm: n } =
|
|
4404
|
+
const { t } = mt(), { FmForm: n } = wa, o = e, a = P(), r = Ue(e, "modelValue"), l = P(!0), u = P(!1), f = Nn(), { selectedLocationIds: m, dateRange: D, timeRange: W } = Nt(fn()), C = P(xn.PORTRAIT);
|
|
4349
4405
|
function v() {
|
|
4350
4406
|
var L;
|
|
4351
4407
|
(L = a.value) == null || L.validateInputs();
|
|
@@ -4353,7 +4409,7 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4353
4409
|
async function h() {
|
|
4354
4410
|
u.value = !0;
|
|
4355
4411
|
try {
|
|
4356
|
-
o.index != null && await
|
|
4412
|
+
o.index != null && await So({
|
|
4357
4413
|
reportType: o.reportType,
|
|
4358
4414
|
index: o.index,
|
|
4359
4415
|
orientationTypes: [C.value],
|
|
@@ -4370,14 +4426,14 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4370
4426
|
}
|
|
4371
4427
|
return (L, I) => {
|
|
4372
4428
|
const A = fe("FmRadio"), B = fe("FmRadioGroup"), J = fe("FmButton"), k = fe("FmDialog");
|
|
4373
|
-
return
|
|
4429
|
+
return K(), de(k, {
|
|
4374
4430
|
modelValue: r.value,
|
|
4375
4431
|
"onUpdate:modelValue": I[2] || (I[2] = (V) => r.value = V),
|
|
4376
4432
|
overlay: !0,
|
|
4377
4433
|
"z-index": 10
|
|
4378
4434
|
}, {
|
|
4379
4435
|
"dialog-header": De(() => I[3] || (I[3] = [
|
|
4380
|
-
|
|
4436
|
+
fa("Select Orientation")
|
|
4381
4437
|
])),
|
|
4382
4438
|
default: De(() => [
|
|
4383
4439
|
pe(i(n), {
|
|
@@ -4386,25 +4442,25 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4386
4442
|
onValidationSuccess: h
|
|
4387
4443
|
}, {
|
|
4388
4444
|
default: De(() => [
|
|
4389
|
-
Y("div",
|
|
4445
|
+
Y("div", ns, [
|
|
4390
4446
|
pe(B, {
|
|
4391
4447
|
modelValue: C.value,
|
|
4392
4448
|
"onUpdate:modelValue": I[0] || (I[0] = (V) => C.value = V)
|
|
4393
4449
|
}, {
|
|
4394
4450
|
default: De(() => [
|
|
4395
4451
|
pe(A, {
|
|
4396
|
-
value: i(
|
|
4452
|
+
value: i(xn).PORTRAIT,
|
|
4397
4453
|
label: i(t)("report.common.portrait")
|
|
4398
4454
|
}, null, 8, ["value", "label"]),
|
|
4399
4455
|
pe(A, {
|
|
4400
|
-
value: i(
|
|
4456
|
+
value: i(xn).LANDSCAPE,
|
|
4401
4457
|
label: i(t)("report.common.landscape")
|
|
4402
4458
|
}, null, 8, ["value", "label"])
|
|
4403
4459
|
]),
|
|
4404
4460
|
_: 1
|
|
4405
4461
|
}, 8, ["modelValue"])
|
|
4406
4462
|
]),
|
|
4407
|
-
Y("div",
|
|
4463
|
+
Y("div", os, [
|
|
4408
4464
|
I[4] || (I[4] = Y("div", { class: "grow" }, null, -1)),
|
|
4409
4465
|
pe(J, {
|
|
4410
4466
|
label: i(t)("report.common.cancel"),
|
|
@@ -4428,8 +4484,8 @@ const El = { class: "widget-content" }, ql = /* @__PURE__ */ Ae({
|
|
|
4428
4484
|
};
|
|
4429
4485
|
}
|
|
4430
4486
|
});
|
|
4431
|
-
function
|
|
4432
|
-
const { breakpoints: t } =
|
|
4487
|
+
function rs(e) {
|
|
4488
|
+
const { breakpoints: t } = Ht(), { containerRef: n, isTable: o = P(!0) } = e;
|
|
4433
4489
|
let a = P(1), r = null, l = null, u = null, f = null, m = null, D = null;
|
|
4434
4490
|
function W() {
|
|
4435
4491
|
return n.value ? n.value.querySelector("table") : null;
|
|
@@ -4439,8 +4495,8 @@ function Zl(e) {
|
|
|
4439
4495
|
const _ = [];
|
|
4440
4496
|
n.value && n.value.querySelectorAll("div,section,main,article,aside").forEach(($) => {
|
|
4441
4497
|
if ($.scrollWidth > $.clientWidth) {
|
|
4442
|
-
const
|
|
4443
|
-
(
|
|
4498
|
+
const q = window.getComputedStyle($);
|
|
4499
|
+
(q.overflowX === "auto" || q.overflowX === "scroll") && _.push($);
|
|
4444
4500
|
}
|
|
4445
4501
|
});
|
|
4446
4502
|
let S = (x = n.value) == null ? void 0 : x.parentElement;
|
|
@@ -4478,10 +4534,10 @@ function Zl(e) {
|
|
|
4478
4534
|
}
|
|
4479
4535
|
function h(_, S) {
|
|
4480
4536
|
const x = _.querySelectorAll("th, td"), $ = S.querySelectorAll("th, td");
|
|
4481
|
-
x.forEach((
|
|
4537
|
+
x.forEach((q, O) => {
|
|
4482
4538
|
const j = $[O];
|
|
4483
4539
|
if (!j) return;
|
|
4484
|
-
const G =
|
|
4540
|
+
const G = q, F = window.getComputedStyle(G);
|
|
4485
4541
|
Object.assign(j.style, {
|
|
4486
4542
|
width: `${G.offsetWidth}px`,
|
|
4487
4543
|
minWidth: `${G.offsetWidth}px`,
|
|
@@ -4562,14 +4618,14 @@ function Zl(e) {
|
|
|
4562
4618
|
}
|
|
4563
4619
|
function J() {
|
|
4564
4620
|
if (!u) return;
|
|
4565
|
-
const _ =
|
|
4621
|
+
const _ = kn(() => v(), 100), S = () => {
|
|
4566
4622
|
if (u && r) {
|
|
4567
4623
|
const x = r.querySelector("thead");
|
|
4568
4624
|
x && h(u, x), I();
|
|
4569
4625
|
}
|
|
4570
4626
|
};
|
|
4571
4627
|
D = new MutationObserver((x) => {
|
|
4572
|
-
x.some((
|
|
4628
|
+
x.some((q) => q.type === "childList" ? q.addedNodes.length > 0 || q.removedNodes.length > 0 : !1) ? _() : S();
|
|
4573
4629
|
}), D.observe(u, {
|
|
4574
4630
|
childList: !0,
|
|
4575
4631
|
subtree: !0,
|
|
@@ -4599,19 +4655,19 @@ function Zl(e) {
|
|
|
4599
4655
|
r && (r.style.top = `${a.value}px`, I());
|
|
4600
4656
|
}), Le(n, () => {
|
|
4601
4657
|
n.value && o.value && setTimeout(v, 100);
|
|
4602
|
-
}),
|
|
4658
|
+
}), zt(() => {
|
|
4603
4659
|
o.value && setTimeout(v, 100);
|
|
4604
|
-
}),
|
|
4660
|
+
}), _o(() => {
|
|
4605
4661
|
k();
|
|
4606
4662
|
}), { refresh: V, cleanup: k };
|
|
4607
4663
|
}
|
|
4608
|
-
function
|
|
4664
|
+
function ls(e) {
|
|
4609
4665
|
let t, n, o, a;
|
|
4610
4666
|
switch (e) {
|
|
4611
|
-
case
|
|
4667
|
+
case E.Table:
|
|
4612
4668
|
t = [], n = !1, o = Ge.top;
|
|
4613
4669
|
break;
|
|
4614
|
-
case
|
|
4670
|
+
case E.ClusteredStackBarChart:
|
|
4615
4671
|
a = !0;
|
|
4616
4672
|
break;
|
|
4617
4673
|
}
|
|
@@ -4638,26 +4694,26 @@ function Ql(e) {
|
|
|
4638
4694
|
joinDatasources: t
|
|
4639
4695
|
};
|
|
4640
4696
|
}
|
|
4641
|
-
function
|
|
4697
|
+
function Ts(e, t) {
|
|
4642
4698
|
let n = 1, o = 1;
|
|
4643
4699
|
switch (e) {
|
|
4644
|
-
case
|
|
4700
|
+
case E.Scorecard:
|
|
4645
4701
|
n = 1, o = 2;
|
|
4646
4702
|
break;
|
|
4647
|
-
case
|
|
4648
|
-
case
|
|
4649
|
-
case
|
|
4650
|
-
case
|
|
4651
|
-
case
|
|
4703
|
+
case E.BarChart:
|
|
4704
|
+
case E.StackBarChart:
|
|
4705
|
+
case E.ClusteredStackBarChart:
|
|
4706
|
+
case E.LineChart:
|
|
4707
|
+
case E.StackLineChart:
|
|
4652
4708
|
n = 4, o = 6;
|
|
4653
4709
|
break;
|
|
4654
|
-
case
|
|
4710
|
+
case E.Table:
|
|
4655
4711
|
n = 4, o = 12;
|
|
4656
4712
|
break;
|
|
4657
|
-
case
|
|
4713
|
+
case E.Circular:
|
|
4658
4714
|
n = 4, o = 4;
|
|
4659
4715
|
break;
|
|
4660
|
-
case
|
|
4716
|
+
case E.Spacer:
|
|
4661
4717
|
n = 0, o = 12;
|
|
4662
4718
|
break;
|
|
4663
4719
|
}
|
|
@@ -4669,18 +4725,18 @@ function vs(e, t) {
|
|
|
4669
4725
|
widget: {
|
|
4670
4726
|
title: t || "New widget",
|
|
4671
4727
|
type: e,
|
|
4672
|
-
config:
|
|
4728
|
+
config: ls(e)
|
|
4673
4729
|
}
|
|
4674
4730
|
};
|
|
4675
4731
|
}
|
|
4676
|
-
function
|
|
4732
|
+
function Ls(e, t) {
|
|
4677
4733
|
return e.filter((n, o) => o !== t);
|
|
4678
4734
|
}
|
|
4679
|
-
function
|
|
4735
|
+
function ss(e) {
|
|
4680
4736
|
const t = [e.schemaName, e.name];
|
|
4681
4737
|
return "option" in e && e.option && t.push(e.option), "aggregation" in e && e.aggregation && t.push(e.aggregation), t.push(e.label.replace(/[^\p{L}\p{N}_]+/gu, "")), t.join("_").toLowerCase();
|
|
4682
4738
|
}
|
|
4683
|
-
function
|
|
4739
|
+
function is(e, t, n = []) {
|
|
4684
4740
|
var h, L, I, A, B, J;
|
|
4685
4741
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4686
4742
|
return [];
|
|
@@ -4707,9 +4763,9 @@ function ts(e, t, n = []) {
|
|
|
4707
4763
|
}).filter((k) => k != null);
|
|
4708
4764
|
const D = e.columns.reduce((k, V, _) => (String((V == null ? void 0 : V.type) ?? (V == null ? void 0 : V.dataType) ?? "").toUpperCase() === "STRING" && k.push(_), k), []), C = r.reduce(
|
|
4709
4765
|
(k, V, _) => {
|
|
4710
|
-
var x, $,
|
|
4766
|
+
var x, $, q, O;
|
|
4711
4767
|
return String(
|
|
4712
|
-
(($ = (x = e.columns) == null ? void 0 : x[_]) == null ? void 0 : $.type) ?? ((O = (
|
|
4768
|
+
(($ = (x = e.columns) == null ? void 0 : x[_]) == null ? void 0 : $.type) ?? ((O = (q = e.columns) == null ? void 0 : q[_]) == null ? void 0 : O.dataType) ?? ""
|
|
4713
4769
|
).toUpperCase() === "STRING" && k.push(_), k;
|
|
4714
4770
|
},
|
|
4715
4771
|
[]
|
|
@@ -4721,16 +4777,19 @@ function ts(e, t, n = []) {
|
|
|
4721
4777
|
return (V = k == null ? void 0 : k.cells) == null ? void 0 : V[v];
|
|
4722
4778
|
}).filter((k) => k != null);
|
|
4723
4779
|
}
|
|
4724
|
-
const
|
|
4780
|
+
const us = {
|
|
4725
4781
|
key: 0,
|
|
4726
4782
|
class: "h-full"
|
|
4727
|
-
},
|
|
4783
|
+
}, cs = {
|
|
4784
|
+
key: 0,
|
|
4785
|
+
class: "flex min-w-0 items-center gap-1"
|
|
4786
|
+
}, ds = {
|
|
4728
4787
|
key: 1,
|
|
4729
4788
|
class: "grow"
|
|
4730
|
-
},
|
|
4789
|
+
}, fs = {
|
|
4731
4790
|
key: 2,
|
|
4732
4791
|
class: "flex"
|
|
4733
|
-
},
|
|
4792
|
+
}, Ds = /* @__PURE__ */ Ae({
|
|
4734
4793
|
__name: "DynamicWidget",
|
|
4735
4794
|
props: /* @__PURE__ */ Oe({
|
|
4736
4795
|
reportId: {
|
|
@@ -4770,13 +4829,13 @@ const ns = {
|
|
|
4770
4829
|
}),
|
|
4771
4830
|
emits: /* @__PURE__ */ Oe(["update:table-response"], ["update:modelValue"]),
|
|
4772
4831
|
setup(e, { emit: t }) {
|
|
4773
|
-
const n = P(!0), o = Ue(e, "modelValue"), a = t, r = o.value.widget.config, { t: l, te: u, locale: f } = mt(), m = e, D = P(null), W = c(() => o.value.widget.type ===
|
|
4832
|
+
const n = P(!0), o = Ue(e, "modelValue"), a = t, r = o.value.widget.config, { t: l, te: u, locale: f } = mt(), m = e, D = P(null), W = c(() => o.value.widget.type === E.Table), C = c(() => {
|
|
4774
4833
|
var w;
|
|
4775
4834
|
return (w = D.value) == null ? void 0 : w.$el;
|
|
4776
|
-
}), { refresh: v } =
|
|
4835
|
+
}), { refresh: v } = rs({
|
|
4777
4836
|
containerRef: C,
|
|
4778
4837
|
isTable: W
|
|
4779
|
-
}), h = P(r.rollup), L = P(
|
|
4838
|
+
}), h = P(r.rollup), L = P(Rt()), I = P(r.drillDimension), A = c(() => {
|
|
4780
4839
|
if (Me.value.length > 0) {
|
|
4781
4840
|
const w = Me.value.findIndex(
|
|
4782
4841
|
(ue) => ue.value === I.value
|
|
@@ -4788,62 +4847,62 @@ const ns = {
|
|
|
4788
4847
|
() => A.value != Me.value.length - 1
|
|
4789
4848
|
), k = P(r.showTitle ?? !0), V = P(r.titleFontSize ?? 14), _ = P(r.titleBold ?? !1), S = P(r.titleItalic ?? !1), x = P(r.titleUnderline ?? !1), $ = P(
|
|
4790
4849
|
Array.isArray(r.chartColors) ? [...r.chartColors] : void 0
|
|
4791
|
-
),
|
|
4850
|
+
), q = P(
|
|
4792
4851
|
Array.isArray(r.chartColorLayers) ? [...r.chartColorLayers] : void 0
|
|
4793
4852
|
), O = P(
|
|
4794
4853
|
Array.isArray(r.chartBreakdownColors) ? [...r.chartBreakdownColors] : void 0
|
|
4795
4854
|
), j = P(r.chartUseSecondaryMetricShades ?? !0), G = P(r.chartColorBinding), F = P(
|
|
4796
4855
|
Array.isArray(r.lineStyles) ? [...r.lineStyles] : void 0
|
|
4797
|
-
), y = P(r.lineStyleBinding), b = P(r.showLabel ?? !1), R = P(r.labelAlign ??
|
|
4856
|
+
), y = P(r.lineStyleBinding), b = P(r.showLabel ?? !1), R = P(r.labelAlign ?? Dn.center), T = P(r.labelAnchor ?? Ln.center), M = P(r.labelRotation ?? 0), z = P(r.labelOffset ?? 0), re = P(r.labelFontSize ?? 12), se = c(
|
|
4798
4857
|
() => {
|
|
4799
4858
|
var w;
|
|
4800
|
-
return ((w = Xe.value) == null ? void 0 : w.showSearchBar) === !0 && (
|
|
4859
|
+
return ((w = Xe.value) == null ? void 0 : w.showSearchBar) === !0 && (Q.value.config.showSearchBar ?? !0);
|
|
4801
4860
|
}
|
|
4802
|
-
), H = P(r.showX ?? !0), Z = P(r.xPosition ??
|
|
4803
|
-
() => m.customScreenWidth === void 0 ?
|
|
4861
|
+
), H = P(r.showX ?? !0), Z = P(r.xPosition ?? In.bottom), te = P(r.showXGrid ?? !1), ie = P(r.showXTick ?? !0), me = P(r.xTickFontSize ?? 12), ye = P(r.showXTitle ?? !1), ne = P(r.xTitle ?? ""), we = P(r.xTitleFontSize ?? 12), _e = P(r.showY ?? !0), Se = P(r.yPosition ?? Pn.left), Ze = P(r.showYGrid ?? !1), Fe = P(r.showYTick ?? !0), at = P(r.yTickFontSize ?? 12), pt = P(r.showYTitle ?? !1), Lt = P(r.yTitle ?? ""), ht = P(r.yTitleFontSize ?? 12), gt = P(r.showLegend ?? void 0), rt = P(r.legendPosition ?? Mn.top), lt = P(r.usePointStyle ?? !0), vt = P(r.legendFontSize), ze = P(r.legendColor ?? "#6b6b6b"), st = P(r.maxTooltipItems), Gt = P(r.stackBarOverlap ?? !1), jt = P(r.rowHeight ?? null), Dt = P(r.colWidths ?? null), Ke = P(!1), It = P(""), { breakpoints: Qe, getBreakpointsBoundary: it } = Ht(), Pt = P(), Jt = P(window.innerWidth), ke = c(
|
|
4862
|
+
() => m.customScreenWidth === void 0 ? Jt.value : m.customScreenWidth
|
|
4804
4863
|
), Mt = c(
|
|
4805
4864
|
() => (ke == null ? void 0 : ke.value) > it("xs")[1] && (ke == null ? void 0 : ke.value) <= it("sm")[1]
|
|
4806
|
-
),
|
|
4865
|
+
), hn = c(
|
|
4807
4866
|
() => (ke == null ? void 0 : ke.value) > it("sm")[1] && (ke == null ? void 0 : ke.value) <= it("md")[1]
|
|
4808
|
-
),
|
|
4867
|
+
), gn = c(() => (ke == null ? void 0 : ke.value) > it("md")[1]), Zt = c(() => {
|
|
4809
4868
|
const w = o.value.size.width;
|
|
4810
|
-
return
|
|
4869
|
+
return gn.value || hn.value ? ql(w) : Mt.value ? Gl(w) : jl(w);
|
|
4811
4870
|
}), Xe = c(
|
|
4812
|
-
() =>
|
|
4813
|
-
),
|
|
4871
|
+
() => _a.find((w) => w.type === o.value.widget.type)
|
|
4872
|
+
), vn = c(
|
|
4814
4873
|
() => {
|
|
4815
4874
|
var w, ue, Te;
|
|
4816
4875
|
return k.value || se.value || (((w = Xe.value) == null ? void 0 : w.showLabel) ?? !1) || (((ue = Xe.value) == null ? void 0 : ue.showDrillDimension) ?? !1) && Me.value.length > 0 || (((Te = Xe.value) == null ? void 0 : Te.showRollup) ?? !1) && We.value.length > 0;
|
|
4817
4876
|
}
|
|
4818
|
-
), et =
|
|
4819
|
-
|
|
4877
|
+
), et = kn(async () => {
|
|
4878
|
+
Jt.value = window.innerWidth, Pt.value = jo(), L.value = Rt(), await xo(), v();
|
|
4820
4879
|
}), s = c(() => {
|
|
4821
|
-
if (
|
|
4880
|
+
if (Sa(Q.value.type, p.value))
|
|
4822
4881
|
switch (o.value.widget.type) {
|
|
4823
|
-
case
|
|
4824
|
-
return
|
|
4825
|
-
case
|
|
4826
|
-
return
|
|
4827
|
-
case
|
|
4882
|
+
case E.BarChart:
|
|
4883
|
+
return ol;
|
|
4884
|
+
case E.StackBarChart:
|
|
4885
|
+
return Vl;
|
|
4886
|
+
case E.ClusteredStackBarChart:
|
|
4887
|
+
return $l;
|
|
4888
|
+
case E.LineChart:
|
|
4889
|
+
return ts;
|
|
4890
|
+
case E.StackLineChart:
|
|
4891
|
+
return Wl;
|
|
4892
|
+
case E.Circular:
|
|
4893
|
+
return rl;
|
|
4894
|
+
case E.Scorecard:
|
|
4895
|
+
return Sl;
|
|
4896
|
+
case E.Spacer:
|
|
4897
|
+
return Ll;
|
|
4898
|
+
case E.Table:
|
|
4828
4899
|
return Fl;
|
|
4829
|
-
case q.LineChart:
|
|
4830
|
-
return ql;
|
|
4831
|
-
case q.StackLineChart:
|
|
4832
|
-
return Nl;
|
|
4833
|
-
case q.Circular:
|
|
4834
|
-
return tl;
|
|
4835
|
-
case q.Scorecard:
|
|
4836
|
-
return Cl;
|
|
4837
|
-
case q.Spacer:
|
|
4838
|
-
return _l;
|
|
4839
|
-
case q.Table:
|
|
4840
|
-
return Pl;
|
|
4841
4900
|
default:
|
|
4842
|
-
return
|
|
4901
|
+
return Zn;
|
|
4843
4902
|
}
|
|
4844
4903
|
else
|
|
4845
|
-
return
|
|
4846
|
-
}), p = P(null), { selectedLocationIds: d, dateRange: g, compareDateRange: N, timeRange: U } =
|
|
4904
|
+
return Zn;
|
|
4905
|
+
}), p = P(null), { selectedLocationIds: d, dateRange: g, compareDateRange: N, timeRange: U } = Nt(fn()), ee = va(), { globalFilters: oe, lastAppliedTileFilterIds: X } = Nt(ee), { businessDataVersion: ce } = Nt(fn()), ve = P(!0), Q = c(() => {
|
|
4847
4906
|
const w = JSON.parse(JSON.stringify(o.value.widget));
|
|
4848
4907
|
return {
|
|
4849
4908
|
...w,
|
|
@@ -4856,10 +4915,10 @@ const ns = {
|
|
|
4856
4915
|
};
|
|
4857
4916
|
}), ae = c(() => {
|
|
4858
4917
|
var Te;
|
|
4859
|
-
const w = ((Te =
|
|
4860
|
-
if (!
|
|
4918
|
+
const w = ((Te = Q.value.config.metrics) == null ? void 0 : Te.length) ?? 0;
|
|
4919
|
+
if (!Q.value.config.isBlend)
|
|
4861
4920
|
return w;
|
|
4862
|
-
const ue = (
|
|
4921
|
+
const ue = (Q.value.config.joinDatasources ?? []).reduce(
|
|
4863
4922
|
(Ee, tt) => {
|
|
4864
4923
|
var nt;
|
|
4865
4924
|
return Ee + (((nt = tt.metrics) == null ? void 0 : nt.length) ?? 0);
|
|
@@ -4867,9 +4926,9 @@ const ns = {
|
|
|
4867
4926
|
0
|
|
4868
4927
|
);
|
|
4869
4928
|
return w + ue;
|
|
4870
|
-
}),
|
|
4871
|
-
|
|
4872
|
-
...
|
|
4929
|
+
}), ge = c(() => [
|
|
4930
|
+
Q.value.config,
|
|
4931
|
+
...Q.value.config.isBlend ? Q.value.config.joinDatasources ?? [] : []
|
|
4873
4932
|
].some((ue) => {
|
|
4874
4933
|
var Te;
|
|
4875
4934
|
return (Te = ue.metrics) == null ? void 0 : Te.some((Ee) => Ee.nullable);
|
|
@@ -4883,12 +4942,12 @@ const ns = {
|
|
|
4883
4942
|
titleItalic: S.value,
|
|
4884
4943
|
titleUnderline: x.value,
|
|
4885
4944
|
chartColors: $.value,
|
|
4886
|
-
chartColorLayers:
|
|
4945
|
+
chartColorLayers: q.value,
|
|
4887
4946
|
chartBreakdownColors: O.value,
|
|
4888
4947
|
chartUseSecondaryMetricShades: j.value,
|
|
4889
4948
|
chartColorBinding: G.value,
|
|
4890
4949
|
metricCount: ae.value,
|
|
4891
|
-
hasNullableMetric:
|
|
4950
|
+
hasNullableMetric: ge.value,
|
|
4892
4951
|
lineStyles: F.value,
|
|
4893
4952
|
lineStyleBinding: y.value,
|
|
4894
4953
|
showLabel: b.value,
|
|
@@ -4901,7 +4960,7 @@ const ns = {
|
|
|
4901
4960
|
xPosition: Z.value,
|
|
4902
4961
|
showXGrid: te.value,
|
|
4903
4962
|
showXTick: ie.value,
|
|
4904
|
-
xTickFontSize:
|
|
4963
|
+
xTickFontSize: me.value,
|
|
4905
4964
|
showXTitle: ye.value,
|
|
4906
4965
|
xTitle: ne.value,
|
|
4907
4966
|
xTitleFontSize: we.value,
|
|
@@ -4913,41 +4972,41 @@ const ns = {
|
|
|
4913
4972
|
showYTitle: pt.value,
|
|
4914
4973
|
yTitleFontSize: ht.value,
|
|
4915
4974
|
yTickFontSize: at.value,
|
|
4916
|
-
isTransposed:
|
|
4975
|
+
isTransposed: Q.value.config.isTransposed,
|
|
4917
4976
|
showLegend: gt.value,
|
|
4918
4977
|
legendPosition: rt.value,
|
|
4919
4978
|
usePointStyle: lt.value,
|
|
4920
4979
|
legendFontSize: vt.value,
|
|
4921
4980
|
legendColor: ze.value,
|
|
4922
4981
|
maxTooltipItems: st.value,
|
|
4923
|
-
stackBarOverlap:
|
|
4982
|
+
stackBarOverlap: Gt.value
|
|
4924
4983
|
};
|
|
4925
4984
|
}
|
|
4926
4985
|
function Re() {
|
|
4927
4986
|
return {
|
|
4928
4987
|
data: p.value,
|
|
4929
4988
|
filterText: It.value,
|
|
4930
|
-
rollupPosition:
|
|
4931
|
-
grandTotalLabel:
|
|
4932
|
-
rowHeight:
|
|
4989
|
+
rollupPosition: Q.value.config.rollupPosition,
|
|
4990
|
+
grandTotalLabel: Q.value.config.grandTotalLabel,
|
|
4991
|
+
rowHeight: jt.value,
|
|
4933
4992
|
colWidths: Dt.value
|
|
4934
4993
|
};
|
|
4935
4994
|
}
|
|
4936
4995
|
const He = c(() => {
|
|
4937
|
-
switch (
|
|
4938
|
-
case
|
|
4996
|
+
switch (Q.value.type) {
|
|
4997
|
+
case E.Table:
|
|
4939
4998
|
return Re();
|
|
4940
|
-
case
|
|
4941
|
-
case
|
|
4942
|
-
case
|
|
4943
|
-
case
|
|
4944
|
-
case
|
|
4945
|
-
case
|
|
4999
|
+
case E.BarChart:
|
|
5000
|
+
case E.LineChart:
|
|
5001
|
+
case E.StackBarChart:
|
|
5002
|
+
case E.ClusteredStackBarChart:
|
|
5003
|
+
case E.StackLineChart:
|
|
5004
|
+
case E.Circular:
|
|
4946
5005
|
return be();
|
|
4947
|
-
case
|
|
5006
|
+
case E.Scorecard:
|
|
4948
5007
|
return {
|
|
4949
5008
|
data: p.value,
|
|
4950
|
-
sparklineTargetValue:
|
|
5009
|
+
sparklineTargetValue: Q.value.config.sparklineTargetValue
|
|
4951
5010
|
};
|
|
4952
5011
|
default:
|
|
4953
5012
|
return { data: p.value };
|
|
@@ -4967,10 +5026,10 @@ const ns = {
|
|
|
4967
5026
|
}
|
|
4968
5027
|
return [];
|
|
4969
5028
|
}), Me = c(() => {
|
|
4970
|
-
const { config: w } =
|
|
5029
|
+
const { config: w } = Q.value;
|
|
4971
5030
|
return w.isDrillable ? w.dimensions.map((ue) => ({
|
|
4972
5031
|
label: ut(l, u, ue.label, "other"),
|
|
4973
|
-
value:
|
|
5032
|
+
value: ss(ue)
|
|
4974
5033
|
})) : [];
|
|
4975
5034
|
}), Ve = c(
|
|
4976
5035
|
() => `${(d.value || []).join("|")}|${JSON.stringify(g.value)}|${JSON.stringify(
|
|
@@ -4985,7 +5044,7 @@ const ns = {
|
|
|
4985
5044
|
Le(
|
|
4986
5045
|
() => o.value.widget.config,
|
|
4987
5046
|
(w) => {
|
|
4988
|
-
h.value = w.rollup, k.value = w.showTitle ?? !0, V.value = w.titleFontSize ?? 14, _.value = w.titleBold ?? !1, S.value = w.titleItalic ?? !1, x.value = w.titleUnderline ?? !1, $.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0,
|
|
5047
|
+
h.value = w.rollup, k.value = w.showTitle ?? !0, V.value = w.titleFontSize ?? 14, _.value = w.titleBold ?? !1, S.value = w.titleItalic ?? !1, x.value = w.titleUnderline ?? !1, $.value = Array.isArray(w.chartColors) ? [...w.chartColors] : void 0, q.value = Array.isArray(w.chartColorLayers) ? [...w.chartColorLayers] : void 0, O.value = Array.isArray(w.chartBreakdownColors) ? [...w.chartBreakdownColors] : void 0, j.value = w.chartUseSecondaryMetricShades ?? !0, G.value = w.chartColorBinding, F.value = Array.isArray(w.lineStyles) ? [...w.lineStyles] : void 0, y.value = w.lineStyleBinding, b.value = w.showLabel ?? !1, R.value = w.labelAlign ?? Dn.center, T.value = w.labelAnchor ?? Ln.center, M.value = w.labelRotation ?? 0, z.value = w.labelOffset ?? 0, re.value = w.labelFontSize ?? 12, H.value = w.showX ?? !0, Z.value = w.xPosition ?? In.bottom, te.value = w.showXGrid ?? !1, ie.value = w.showXTick ?? !0, me.value = w.xTickFontSize ?? 12, ye.value = w.showXTitle ?? !1, ne.value = w.xTitle ?? "", we.value = w.xTitleFontSize ?? 12, _e.value = w.showY ?? !0, Se.value = w.yPosition ?? Pn.left, Ze.value = w.showYGrid ?? !1, Fe.value = w.showYTick ?? !0, at.value = w.yTickFontSize ?? 12, pt.value = w.showYTitle ?? !1, Lt.value = w.yTitle ?? "", ht.value = w.yTitleFontSize ?? 12, gt.value = w.showLegend ?? void 0, rt.value = w.legendPosition ?? Mn.top, lt.value = w.usePointStyle ?? !0, vt.value = w.legendFontSize, ze.value = w.legendColor ?? "#6b6b6b", st.value = w.maxTooltipItems, Gt.value = w.stackBarOverlap ?? !1, jt.value = w.rowHeight ?? null, Dt.value = w.colWidths ?? null, L.value = Rt();
|
|
4989
5048
|
},
|
|
4990
5049
|
{ deep: !0, immediate: !0 }
|
|
4991
5050
|
), Le(
|
|
@@ -5002,18 +5061,18 @@ const ns = {
|
|
|
5002
5061
|
}), Le(
|
|
5003
5062
|
Ve,
|
|
5004
5063
|
(w, ue) => {
|
|
5005
|
-
ue !== void 0 && w !== ue && Ye.value.length > 0 &&
|
|
5064
|
+
ue !== void 0 && w !== ue && Ye.value.length > 0 && En();
|
|
5006
5065
|
},
|
|
5007
5066
|
{ flush: "pre" }
|
|
5008
5067
|
), Le(
|
|
5009
5068
|
() => o.value,
|
|
5010
5069
|
(w, ue) => {
|
|
5011
|
-
!m.isTileEditor || !w || ue !== void 0 &&
|
|
5070
|
+
!m.isTileEditor || !w || ue !== void 0 && En();
|
|
5012
5071
|
},
|
|
5013
5072
|
{ deep: !0, flush: "pre" }
|
|
5014
5073
|
), Le(
|
|
5015
5074
|
[
|
|
5016
|
-
() =>
|
|
5075
|
+
() => Q.value,
|
|
5017
5076
|
() => g.value,
|
|
5018
5077
|
() => U.value,
|
|
5019
5078
|
() => N.value,
|
|
@@ -5021,13 +5080,13 @@ const ns = {
|
|
|
5021
5080
|
() => ce.value
|
|
5022
5081
|
],
|
|
5023
5082
|
() => {
|
|
5024
|
-
m.isEditingStyle ||
|
|
5083
|
+
m.isEditingStyle || bn();
|
|
5025
5084
|
},
|
|
5026
5085
|
{ deep: !0, flush: "post" }
|
|
5027
5086
|
), Le(
|
|
5028
|
-
() =>
|
|
5087
|
+
() => X.value,
|
|
5029
5088
|
(w) => {
|
|
5030
|
-
m.isEditingStyle || w.includes(o.value.id) &&
|
|
5089
|
+
m.isEditingStyle || w.includes(o.value.id) && bn();
|
|
5031
5090
|
},
|
|
5032
5091
|
{ flush: "post" }
|
|
5033
5092
|
), Le(
|
|
@@ -5036,176 +5095,184 @@ const ns = {
|
|
|
5036
5095
|
et();
|
|
5037
5096
|
},
|
|
5038
5097
|
{ deep: !0 }
|
|
5039
|
-
),
|
|
5040
|
-
et(), Qe.value.sm || Qe.value.md || Qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", et)) : addEventListener("resize", et),
|
|
5041
|
-
}),
|
|
5098
|
+
), zt(() => {
|
|
5099
|
+
et(), Qe.value.sm || Qe.value.md || Qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), addEventListener("change", et)) : addEventListener("resize", et), bn();
|
|
5100
|
+
}), _o(() => {
|
|
5042
5101
|
Qe.value.sm || Qe.value.md || Qe.value.xs ? (console.log("Ignoring resize event due to keyboard"), removeEventListener("change", et)) : removeEventListener("resize", et);
|
|
5043
5102
|
});
|
|
5044
|
-
const
|
|
5045
|
-
setWidgetResult:
|
|
5046
|
-
startWidgetResultLoading:
|
|
5047
|
-
finishWidgetResultLoading:
|
|
5048
|
-
clearAllWidgetResults:
|
|
5049
|
-
} =
|
|
5050
|
-
let
|
|
5051
|
-
async function
|
|
5103
|
+
const Qt = Nn(), {
|
|
5104
|
+
setWidgetResult: yn,
|
|
5105
|
+
startWidgetResultLoading: en,
|
|
5106
|
+
finishWidgetResultLoading: Go,
|
|
5107
|
+
clearAllWidgetResults: En
|
|
5108
|
+
} = ya();
|
|
5109
|
+
let tn;
|
|
5110
|
+
async function bn() {
|
|
5052
5111
|
if (!m.isEditingStyle) {
|
|
5053
|
-
if (
|
|
5054
|
-
|
|
5112
|
+
if (Q.value.config.schemaNames.length <= 0 && !(Q.value.config.dimensions.length <= 0 || Q.value.config.metrics.length <= 0)) {
|
|
5113
|
+
Qt.open({
|
|
5055
5114
|
message: "schema must not be empty and dimension or metrics must have at least 1 column",
|
|
5056
5115
|
type: "info"
|
|
5057
5116
|
}), n.value = !1;
|
|
5058
5117
|
return;
|
|
5059
5118
|
}
|
|
5060
|
-
|
|
5119
|
+
en();
|
|
5061
5120
|
try {
|
|
5062
|
-
n.value = !0,
|
|
5063
|
-
const w =
|
|
5064
|
-
|
|
5121
|
+
n.value = !0, tn && tn.abort(), tn = new AbortController();
|
|
5122
|
+
const w = tn.signal, ue = ce.value, Te = await kn(
|
|
5123
|
+
ba,
|
|
5065
5124
|
500
|
|
5066
5125
|
)({
|
|
5067
|
-
widget:
|
|
5126
|
+
widget: Q.value,
|
|
5068
5127
|
signal: w,
|
|
5069
5128
|
tileId: o.value.id
|
|
5070
5129
|
});
|
|
5071
5130
|
if (ce.value === ue) {
|
|
5072
5131
|
p.value = Te;
|
|
5073
5132
|
const Ee = [
|
|
5074
|
-
...
|
|
5075
|
-
...(
|
|
5133
|
+
...Q.value.config.dimensions,
|
|
5134
|
+
...(Q.value.config.joinDatasources ?? []).flatMap((tt) => tt.dimensions ?? [])
|
|
5076
5135
|
];
|
|
5077
5136
|
Ye.value.length > 0 && Ye.value.forEach((tt) => {
|
|
5078
|
-
const nt =
|
|
5079
|
-
|
|
5080
|
-
}), L.value =
|
|
5137
|
+
const nt = is(Te, tt, Ee), Cn = Array.from(new Set(nt));
|
|
5138
|
+
yn(Ca(tt, m.reportId), Cn);
|
|
5139
|
+
}), L.value = Rt(), setTimeout(() => v(), 100);
|
|
5081
5140
|
}
|
|
5082
5141
|
n.value = !1;
|
|
5083
5142
|
} catch (w) {
|
|
5084
|
-
w.code !== "ERR_CANCELED" && (p.value = null,
|
|
5143
|
+
w.code !== "ERR_CANCELED" && (p.value = null, Qt.open({ message: `Invalid chart ${Q.value.type}`, type: "error" }), console.log(w), n.value = !1);
|
|
5085
5144
|
} finally {
|
|
5086
|
-
|
|
5145
|
+
Go();
|
|
5087
5146
|
}
|
|
5088
5147
|
}
|
|
5089
5148
|
}
|
|
5090
|
-
function
|
|
5149
|
+
function jo() {
|
|
5091
5150
|
if (o.value.widget.type !== "SPACER")
|
|
5092
|
-
return `${
|
|
5151
|
+
return `${Ql(o.value.size.height, o.value.widget.type)}px`;
|
|
5093
5152
|
}
|
|
5094
|
-
function
|
|
5153
|
+
function Jo() {
|
|
5095
5154
|
const w = A.value - 1;
|
|
5096
5155
|
w >= 0 && (I.value = Me.value[w].value);
|
|
5097
5156
|
}
|
|
5098
|
-
function
|
|
5157
|
+
function Zo() {
|
|
5099
5158
|
const w = A.value + 1;
|
|
5100
5159
|
w >= 0 && w < Me.value.length && (I.value = Me.value[w].value);
|
|
5101
5160
|
}
|
|
5102
|
-
const
|
|
5103
|
-
label:
|
|
5161
|
+
const qn = P(bt.EXCEL), Gn = P(), Qo = Object.values(bt).map((w) => ({
|
|
5162
|
+
label: xa(w),
|
|
5104
5163
|
value: w,
|
|
5105
5164
|
onClick: async () => {
|
|
5106
|
-
w === bt.EXCEL || w === bt.PDFFULLSIZE || w === bt.PDFRECEIPT ? await
|
|
5165
|
+
w === bt.EXCEL || w === bt.PDFFULLSIZE || w === bt.PDFRECEIPT ? await So({
|
|
5107
5166
|
reportType: w,
|
|
5108
5167
|
index: m.index,
|
|
5109
5168
|
isCombinedLocationLayout: ve.value,
|
|
5110
5169
|
timeRange: U.value,
|
|
5111
5170
|
dateRange: g.value,
|
|
5112
5171
|
locationIds: d.value
|
|
5113
|
-
}) : w === bt.PDF && (
|
|
5172
|
+
}) : w === bt.PDF && (qn.value = w, Gn.value = m.index, Ke.value = !0);
|
|
5114
5173
|
}
|
|
5115
|
-
})),
|
|
5174
|
+
})), ea = m.flat || Q.value.type === E.Spacer ? "flat" : "outlined", ta = Q.value.type === E.Spacer ? "p-0" : "p-16", na = c(() => m.flat ? "w-full" : Zt.value);
|
|
5116
5175
|
return (w, ue) => {
|
|
5117
|
-
const Te = fe("FmTooltip"), Ee = fe("FmSearch"), tt = fe("FmCheckbox"), nt = fe("FmButton"),
|
|
5118
|
-
return
|
|
5176
|
+
const Te = fe("FmTooltip"), Ee = fe("FmSearch"), tt = fe("FmCheckbox"), nt = fe("FmButton"), Cn = fe("FmSelect"), oa = fe("FmMenuItem"), aa = fe("FmMenu"), ra = fe("FmForm"), la = fe("FmCircularProgress"), sa = fe("FmCard");
|
|
5177
|
+
return K(), de(sa, {
|
|
5119
5178
|
ref_key: "tileCard",
|
|
5120
5179
|
ref: D,
|
|
5121
|
-
class: Ie(`${
|
|
5122
|
-
variant: i(
|
|
5180
|
+
class: Ie(`${na.value} ${i(ta)}`),
|
|
5181
|
+
variant: i(ea),
|
|
5123
5182
|
style: Pe({ height: Pt.value })
|
|
5124
5183
|
}, {
|
|
5125
5184
|
default: De(() => [
|
|
5126
|
-
pe(
|
|
5185
|
+
pe(as, {
|
|
5127
5186
|
modelValue: Ke.value,
|
|
5128
5187
|
"onUpdate:modelValue": ue[0] || (ue[0] = (yt) => Ke.value = yt),
|
|
5129
|
-
"report-type":
|
|
5130
|
-
index:
|
|
5188
|
+
"report-type": qn.value,
|
|
5189
|
+
index: Gn.value
|
|
5131
5190
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
5132
|
-
n.value ? (
|
|
5133
|
-
(
|
|
5191
|
+
n.value ? (K(), de(la, { key: 1 })) : (K(), le("div", us, [
|
|
5192
|
+
(K(), de(wo(s.value), {
|
|
5134
5193
|
key: L.value,
|
|
5135
5194
|
modelValue: He.value,
|
|
5136
5195
|
"onUpdate:modelValue": ue[4] || (ue[4] = (yt) => He.value = yt),
|
|
5137
5196
|
"tile-index": m.index
|
|
5138
5197
|
}, {
|
|
5139
5198
|
menu: De(() => [
|
|
5140
|
-
|
|
5199
|
+
vn.value ? (K(), de(ra, {
|
|
5141
5200
|
key: 0,
|
|
5142
5201
|
class: "flex items-center gap-2"
|
|
5143
5202
|
}, {
|
|
5144
5203
|
default: De(() => {
|
|
5145
|
-
var yt,
|
|
5204
|
+
var yt, jn, Jn;
|
|
5146
5205
|
return [
|
|
5147
5206
|
pe(Te, {
|
|
5148
5207
|
variant: "plain",
|
|
5149
5208
|
placement: "right",
|
|
5150
|
-
content:
|
|
5209
|
+
content: Q.value.description,
|
|
5151
5210
|
"hide-arrow": !0,
|
|
5152
|
-
disabled: !
|
|
5211
|
+
disabled: !Q.value.description,
|
|
5153
5212
|
"z-index": 99
|
|
5154
5213
|
}, {
|
|
5155
5214
|
default: De(() => [
|
|
5156
|
-
k.value !== !1 ? (
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5215
|
+
k.value !== !1 ? (K(), le("div", cs, [
|
|
5216
|
+
Q.value.type === i(E).Scorecard && Q.value.config.titleIcon !== "" ? (K(), de(Kl, {
|
|
5217
|
+
key: 0,
|
|
5218
|
+
icon: Q.value.config.titleIcon || "",
|
|
5219
|
+
type: Q.value.config.titleIconType,
|
|
5220
|
+
size: Q.value.config.titleIconSize
|
|
5221
|
+
}, null, 8, ["icon", "type", "size"])) : he("", !0),
|
|
5222
|
+
Y("p", {
|
|
5223
|
+
style: Pe({
|
|
5224
|
+
fontSize: V.value + "px",
|
|
5225
|
+
fontWeight: _.value ? "bold" : "normal",
|
|
5226
|
+
fontStyle: S.value ? "italic" : "normal",
|
|
5227
|
+
paddingRight: S.value ? "4px" : "0px",
|
|
5228
|
+
textDecoration: x.value ? "underline" : "none"
|
|
5229
|
+
}),
|
|
5230
|
+
class: Ie(["line-clamp-1", [
|
|
5231
|
+
_.value ? "" : "text-fm-color-typo-secondary",
|
|
5232
|
+
V.value <= 18 ? "fm-typo-en-body-md-400" : "",
|
|
5233
|
+
Q.value.description ? "border-b-2 border-dashed border-gray-300" : ""
|
|
5234
|
+
]])
|
|
5235
|
+
}, Ce(i(ut)(i(l), i(u), Q.value.title, "other")), 7)
|
|
5236
|
+
])) : he("", !0)
|
|
5170
5237
|
]),
|
|
5171
5238
|
_: 1
|
|
5172
5239
|
}, 8, ["content", "disabled"]),
|
|
5173
|
-
se.value ? (
|
|
5240
|
+
se.value ? (K(), de(Ee, {
|
|
5174
5241
|
key: 0,
|
|
5175
5242
|
modelValue: It.value,
|
|
5176
5243
|
"onUpdate:modelValue": ue[1] || (ue[1] = (qe) => It.value = qe),
|
|
5177
5244
|
class: "grow"
|
|
5178
|
-
}, null, 8, ["modelValue"])) : (
|
|
5179
|
-
|
|
5245
|
+
}, null, 8, ["modelValue"])) : (K(), le("div", ds)),
|
|
5246
|
+
ma(pe(tt, {
|
|
5180
5247
|
modelValue: b.value,
|
|
5181
5248
|
"onUpdate:modelValue": ue[2] || (ue[2] = (qe) => b.value = qe),
|
|
5182
5249
|
label: "Label",
|
|
5183
5250
|
value: !1
|
|
5184
5251
|
}, null, 8, ["modelValue"]), [
|
|
5185
|
-
[
|
|
5252
|
+
[pa, (yt = Xe.value) == null ? void 0 : yt.showLabel]
|
|
5186
5253
|
]),
|
|
5187
|
-
(
|
|
5254
|
+
(jn = Xe.value) != null && jn.showDrillDimension && Me.value.length > 0 ? (K(), le("div", fs, [
|
|
5188
5255
|
pe(nt, {
|
|
5189
5256
|
icon: "arrow_upward",
|
|
5190
5257
|
variant: "tertiary",
|
|
5191
5258
|
disabled: !B.value,
|
|
5192
|
-
onClick:
|
|
5259
|
+
onClick: Jo
|
|
5193
5260
|
}, null, 8, ["disabled"]),
|
|
5194
5261
|
pe(nt, {
|
|
5195
5262
|
icon: "arrow_downward",
|
|
5196
5263
|
variant: "tertiary",
|
|
5197
5264
|
disabled: !J.value,
|
|
5198
|
-
onClick:
|
|
5265
|
+
onClick: Zo
|
|
5199
5266
|
}, null, 8, ["disabled"])
|
|
5200
|
-
])) :
|
|
5201
|
-
(
|
|
5267
|
+
])) : he("", !0),
|
|
5268
|
+
(Jn = Xe.value) != null && Jn.showRollup && We.value.length > 0 ? (K(), de(Cn, {
|
|
5202
5269
|
key: `rollup-${i(f)}`,
|
|
5203
5270
|
modelValue: h.value,
|
|
5204
5271
|
"onUpdate:modelValue": ue[3] || (ue[3] = (qe) => h.value = qe),
|
|
5205
5272
|
class: "w-[150px]",
|
|
5206
5273
|
items: We.value
|
|
5207
|
-
}, null, 8, ["modelValue", "items"])) :
|
|
5208
|
-
m.hideExport ?
|
|
5274
|
+
}, null, 8, ["modelValue", "items"])) : he("", !0),
|
|
5275
|
+
m.hideExport ? he("", !0) : (K(), de(aa, {
|
|
5209
5276
|
key: 4,
|
|
5210
5277
|
shift: !0
|
|
5211
5278
|
}, {
|
|
@@ -5216,7 +5283,7 @@ const ns = {
|
|
|
5216
5283
|
})
|
|
5217
5284
|
]),
|
|
5218
5285
|
default: De(() => [
|
|
5219
|
-
(
|
|
5286
|
+
(K(!0), le(Ne, null, ft(i(Qo), (qe) => (K(), de(oa, {
|
|
5220
5287
|
key: qe.value,
|
|
5221
5288
|
label: qe.label,
|
|
5222
5289
|
onClick: qe.onClick
|
|
@@ -5227,7 +5294,7 @@ const ns = {
|
|
|
5227
5294
|
];
|
|
5228
5295
|
}),
|
|
5229
5296
|
_: 1
|
|
5230
|
-
})) :
|
|
5297
|
+
})) : he("", !0)
|
|
5231
5298
|
]),
|
|
5232
5299
|
_: 1
|
|
5233
5300
|
}, 8, ["modelValue", "tile-index"]))
|
|
@@ -5239,20 +5306,23 @@ const ns = {
|
|
|
5239
5306
|
}
|
|
5240
5307
|
});
|
|
5241
5308
|
export {
|
|
5242
|
-
|
|
5309
|
+
Dn as L,
|
|
5243
5310
|
Ge as R,
|
|
5244
5311
|
xe as S,
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5312
|
+
Kl as _,
|
|
5313
|
+
Ds as a,
|
|
5314
|
+
Gl as b,
|
|
5315
|
+
ql as c,
|
|
5316
|
+
ks as d,
|
|
5317
|
+
Ol as e,
|
|
5318
|
+
jl as f,
|
|
5319
|
+
ss as g,
|
|
5320
|
+
Ls as h,
|
|
5321
|
+
Ts as i,
|
|
5322
|
+
ls as j,
|
|
5323
|
+
Ln as k,
|
|
5324
|
+
wt as l,
|
|
5325
|
+
Lo as m,
|
|
5326
|
+
Ss as n,
|
|
5327
|
+
Ql as t
|
|
5258
5328
|
};
|