@feedmepos/mf-report 5.27.30 → 5.27.31-beta.0
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-JSn8-WOL.js → App-D1-CDchN.js} +39 -39
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-CECvIq-3.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-Cmp_yPJP.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CCNr-LfB.js → Default.vue_vue_type_script_setup_true_lang-Bq7qg72a.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DOmAQ8R-.js → DynamicWidget.vue_vue_type_script_setup_true_lang-2QpffaN6.js} +307 -308
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-CsiqgyJ3.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-htOL0ICf.js} +2 -2
- package/dist/{InsightView-D2Wg7-D-.js → InsightView-CqheDIX4.js} +4 -4
- package/dist/{Integration-DobHR0Ze.js → Integration-B1_tzUsA.js} +3 -3
- package/dist/{Integrations-Cg5r8is7.js → Integrations-D1neTKCQ.js} +2 -2
- package/dist/{Layout-DNoyS3w3.js → Layout-DCXULUSC.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-DJYJVoGs.js → MenuTab.vue_vue_type_script_setup_true_lang-BDwtuOdD.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-BYtqoVXC.js → NavigationTab.vue_vue_type_script_setup_true_lang-BLnVS2_a.js} +3 -3
- package/dist/{OverviewView-D8J5qVAo.js → OverviewView-BflVMdc1.js} +4 -4
- package/dist/{Report-BlyDrleN.js → Report-BpFTuc76.js} +3 -3
- package/dist/{ReportEditor-7oGk3LwA.js → ReportEditor-D_AQqm7e.js} +6 -6
- package/dist/{ReportView-GFX5Kixp.js → ReportView-DqzKIMPQ.js} +6 -6
- package/dist/{Setting-BtEZJlne.js → Setting-CrSp7Aq7.js} +3 -3
- package/dist/{Template-C3PyEw-X.js → Template-CA-taJn1.js} +3 -3
- package/dist/{TileEditor-DpfZbID8.js → TileEditor-CFhpvXml.js} +5 -5
- package/dist/{TileGrid.vue_vue_type_script_setup_true_lang-1nf-8VJu.js → TileGrid.vue_vue_type_script_setup_true_lang-CoC7Wh-7.js} +1 -1
- package/dist/{TransitionFade-C1pF2CT9.js → TransitionFade-BGyaaxM7.js} +4 -4
- package/dist/{app-C-3cvSLw.js → app-Dh3z_GM7.js} +13 -13
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-C_gQOsAi.js → useRestaurantPermission-CIGAn4oM.js} +1 -1
- package/package.json +1 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { computed as h, defineComponent as Ae, ref as M, watch as Te, onMounted as Vt, onBeforeUnmount as vo, resolveComponent as fe, createBlock as me, openBlock as K, Transition as
|
|
2
|
-
import { W as X, w as
|
|
3
|
-
import { i as ln, a as cn, u as wo } from "./app-
|
|
4
|
-
import { d as _n } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
1
|
+
import { computed as h, defineComponent as Ae, ref as M, watch as Te, onMounted as Vt, onBeforeUnmount as vo, resolveComponent as fe, createBlock as me, openBlock as K, Transition as aa, withCtx as Le, createElementBlock as ie, createCommentVNode as ge, createElementVNode as G, unref as i, normalizeStyle as Me, withModifiers as rn, toDisplayString as Ie, createVNode as he, Fragment as Ve, renderList as dt, normalizeClass as De, nextTick as yo, mergeModels as Oe, useModel as Ue, renderSlot as ot, h as en, createSlots as ra, resolveDynamicComponent as bo, toRaw as la, markRaw as sa, createTextVNode as ia, onUnmounted as Co, withDirectives as ua, vShow as ca } from "vue";
|
|
2
|
+
import { W as X, w as da, S as Mt, x as At, y as fa, z as bn, A as xo, b as ma, B as ha, E as pa, F as ga, R as yt, G as va } from "./GlobalFilterSelect.vue_vue_type_script_setup_true_lang-htOL0ICf.js";
|
|
3
|
+
import { i as ln, a as cn, u as wo } from "./app-Dh3z_GM7.js";
|
|
4
|
+
import { d as _n } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-Cmp_yPJP.js";
|
|
5
5
|
import { storeToRefs as Ft } from "pinia";
|
|
6
6
|
import { detectLocale as Fn } from "@feedmepos/mf-common";
|
|
7
7
|
import { C as Sn } from "./chart-DDDh8zNk.js";
|
|
8
|
-
import { useBreakpoints as $t, useSnackbar as Rn, components as
|
|
8
|
+
import { useBreakpoints as $t, useSnackbar as Rn, components as ya } from "@feedmepos/ui-library";
|
|
9
9
|
import { u as ft, _ as _o } from "./_plugin-vue_export-helper-onplcgja.js";
|
|
10
10
|
import { r as ut } from "./i18n-CI_sQ5d_.js";
|
|
11
11
|
import { _ as Gn } from "./SelectComponent.vue_vue_type_script_setup_true_lang-CGbb3b5G.js";
|
|
12
12
|
var sn = /* @__PURE__ */ ((e) => (e.line = "LINECHART", e.bar = "BARCHART", e.stackedBar = "STACKBARCHART", e))(sn || {}), Ge = /* @__PURE__ */ ((e) => (e.top = "TOP", e.bottom = "BOTTOM", e))(Ge || {}), kn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e))(kn || {}), Tn = /* @__PURE__ */ ((e) => (e.start = "start", e.center = "center", e.end = "end", e.left = "left", e.right = "right", e.top = "top", e.bottom = "bottom", e))(Tn || {}), Ln = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e))(Ln || {}), Dn = /* @__PURE__ */ ((e) => (e.right = "right", e.left = "left", e))(Dn || {}), In = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.right = "right", e.left = "left", e.chartArea = "chartArea", e))(In || {}), Ce = /* @__PURE__ */ ((e) => (e.series = "SERIES", e.metric = "METRIC", e.breakdown = "BREAKDOWN", e))(Ce || {});
|
|
13
13
|
X.Circular, X.Table, X.BarChart, X.LineChart, X.StackBarChart, X.ClusteredStackBarChart, X.StackLineChart, X.Scorecard, X.Spacer;
|
|
14
|
-
const
|
|
14
|
+
const ba = [
|
|
15
15
|
{
|
|
16
16
|
type: X.Circular,
|
|
17
17
|
showLabel: !1,
|
|
@@ -82,7 +82,7 @@ const Ca = [
|
|
|
82
82
|
showSearchBar: !1
|
|
83
83
|
}
|
|
84
84
|
];
|
|
85
|
-
function
|
|
85
|
+
function Ca(e, t) {
|
|
86
86
|
switch (e) {
|
|
87
87
|
case X.BarChart:
|
|
88
88
|
case X.LineChart:
|
|
@@ -119,7 +119,7 @@ function So(e) {
|
|
|
119
119
|
return r === 0 ? a : dn(a, Math.min(0.18 * r, 0.72));
|
|
120
120
|
});
|
|
121
121
|
}
|
|
122
|
-
const
|
|
122
|
+
const ds = xt.map(() => "solid");
|
|
123
123
|
function bt({
|
|
124
124
|
datasetIndex: e,
|
|
125
125
|
label: t
|
|
@@ -127,13 +127,13 @@ function bt({
|
|
|
127
127
|
const n = typeof t == "string" ? t.trim().toLowerCase().replace(/\s+/g, " ") : "";
|
|
128
128
|
return `${e}:${n}`;
|
|
129
129
|
}
|
|
130
|
-
function
|
|
130
|
+
function xa(e) {
|
|
131
131
|
return e === "dashed" || e === "dotted" ? e : "solid";
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function wa(e, t = !1) {
|
|
134
134
|
if (e == null)
|
|
135
135
|
return t ? [5, 5] : void 0;
|
|
136
|
-
const n =
|
|
136
|
+
const n = xa(e);
|
|
137
137
|
if (n === "dashed")
|
|
138
138
|
return [8, 6];
|
|
139
139
|
if (n === "dotted")
|
|
@@ -191,12 +191,12 @@ function zt({
|
|
|
191
191
|
}
|
|
192
192
|
return n;
|
|
193
193
|
}
|
|
194
|
-
const
|
|
194
|
+
const _a = /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/;
|
|
195
195
|
function Nt(e) {
|
|
196
196
|
if (!e)
|
|
197
197
|
return null;
|
|
198
198
|
const t = e.trim();
|
|
199
|
-
if (!
|
|
199
|
+
if (!_a.test(t))
|
|
200
200
|
return null;
|
|
201
201
|
if (t.length === 4) {
|
|
202
202
|
const [, n, o, a] = t;
|
|
@@ -204,7 +204,7 @@ function Nt(e) {
|
|
|
204
204
|
}
|
|
205
205
|
return t.toUpperCase();
|
|
206
206
|
}
|
|
207
|
-
function
|
|
207
|
+
function Sa(e) {
|
|
208
208
|
const t = Nt(e) ?? "#000000";
|
|
209
209
|
return {
|
|
210
210
|
red: Number.parseInt(t.slice(1, 3), 16),
|
|
@@ -220,7 +220,7 @@ function To(e) {
|
|
|
220
220
|
return !Array.isArray(e) || e.length === 0 ? n : n.map((o, a) => Nt(e[a]) ?? o);
|
|
221
221
|
}
|
|
222
222
|
function Lo(e, t) {
|
|
223
|
-
const { red: n, green: o, blue: a } =
|
|
223
|
+
const { red: n, green: o, blue: a } = Sa(e);
|
|
224
224
|
return `rgba(${n}, ${o}, ${a}, ${t})`;
|
|
225
225
|
}
|
|
226
226
|
function dn(e, t) {
|
|
@@ -230,9 +230,9 @@ function dn(e, t) {
|
|
|
230
230
|
};
|
|
231
231
|
return `#${o(1)}${o(3)}${o(5)}`;
|
|
232
232
|
}
|
|
233
|
-
const
|
|
233
|
+
const ka = 0.25, Do = 0.7;
|
|
234
234
|
function Io(e) {
|
|
235
|
-
return dn(e,
|
|
235
|
+
return dn(e, ka);
|
|
236
236
|
}
|
|
237
237
|
function jn(e) {
|
|
238
238
|
return Math.min(0.55 + (e - 1) * 0.18, 0.95);
|
|
@@ -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 = Ta(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 Ta(e) {
|
|
288
288
|
return e > 0 ? {
|
|
289
289
|
name: "moving",
|
|
290
290
|
color: "#1F7735",
|
|
@@ -299,9 +299,9 @@ function La(e) {
|
|
|
299
299
|
tailwind: "fm-color-neutral-gray-100"
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const La = "en-US";
|
|
303
303
|
function Mo() {
|
|
304
|
-
return Fn() ||
|
|
304
|
+
return Fn() || La;
|
|
305
305
|
}
|
|
306
306
|
function Rt(e) {
|
|
307
307
|
if (e == null || e === "")
|
|
@@ -365,7 +365,7 @@ function Bo(e) {
|
|
|
365
365
|
titleMarginBottom: 6
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
|
-
const
|
|
368
|
+
const Da = Ht({
|
|
369
369
|
display: "block",
|
|
370
370
|
padding: "0",
|
|
371
371
|
background: "none",
|
|
@@ -376,7 +376,7 @@ const Ia = Ht({
|
|
|
376
376
|
cursor: "pointer",
|
|
377
377
|
"text-align": "left",
|
|
378
378
|
"pointer-events": "auto"
|
|
379
|
-
}),
|
|
379
|
+
}), Ia = {
|
|
380
380
|
"font-size": "13px",
|
|
381
381
|
"font-weight": "600",
|
|
382
382
|
color: "#111827",
|
|
@@ -384,7 +384,7 @@ const Ia = Ht({
|
|
|
384
384
|
"white-space": "normal",
|
|
385
385
|
"word-break": "break-word",
|
|
386
386
|
"overflow-wrap": "anywhere"
|
|
387
|
-
},
|
|
387
|
+
}, Pa = Ht({
|
|
388
388
|
display: "flex",
|
|
389
389
|
"align-items": "flex-start",
|
|
390
390
|
"font-size": "13px",
|
|
@@ -394,13 +394,13 @@ const Ia = Ht({
|
|
|
394
394
|
"line-height": "1.35",
|
|
395
395
|
margin: "0 0 3px",
|
|
396
396
|
overflow: "hidden"
|
|
397
|
-
}),
|
|
397
|
+
}), Ma = Ht({
|
|
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
|
+
}), Ba = {
|
|
404
404
|
display: "inline-block",
|
|
405
405
|
width: "10px",
|
|
406
406
|
height: "10px",
|
|
@@ -409,7 +409,7 @@ const Ia = Ht({
|
|
|
409
409
|
"box-sizing": "border-box",
|
|
410
410
|
"margin-right": "8px",
|
|
411
411
|
flex: "0 0 auto"
|
|
412
|
-
},
|
|
412
|
+
}, Aa = {
|
|
413
413
|
display: "inline-block",
|
|
414
414
|
width: "10px",
|
|
415
415
|
height: "10px",
|
|
@@ -420,7 +420,7 @@ const Ia = Ht({
|
|
|
420
420
|
"margin-right": "8px",
|
|
421
421
|
flex: "0 0 auto"
|
|
422
422
|
};
|
|
423
|
-
function
|
|
423
|
+
function Fa() {
|
|
424
424
|
return {
|
|
425
425
|
...Bo(),
|
|
426
426
|
mode: "nearest",
|
|
@@ -434,7 +434,7 @@ function Ra() {
|
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
436
|
}
|
|
437
|
-
const
|
|
437
|
+
const Ra = "rgba(0, 0, 0, 0.3)";
|
|
438
438
|
function Zn(e) {
|
|
439
439
|
if (typeof document > "u" || typeof window > "u")
|
|
440
440
|
return;
|
|
@@ -448,9 +448,9 @@ function Zn(e) {
|
|
|
448
448
|
}
|
|
449
449
|
function Cn(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 = Ra, 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 Na(e, t) {
|
|
454
454
|
if (typeof document > "u")
|
|
455
455
|
return;
|
|
456
456
|
const n = String((e == null ? void 0 : e.id) ?? "");
|
|
@@ -464,13 +464,13 @@ 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 Va(e, t, n) {
|
|
468
468
|
var p;
|
|
469
469
|
if (!n)
|
|
470
470
|
return;
|
|
471
471
|
const o = ((p = e.options) == null ? void 0 : p.indexAxis) === "y", a = e.tooltip, r = (a == null ? void 0 : a.getActiveElements()) ?? [];
|
|
472
472
|
if (r.length === 0) {
|
|
473
|
-
const L =
|
|
473
|
+
const L = Na(e, o);
|
|
474
474
|
L !== void 0 && Cn(e.ctx, o, e.chartArea, L);
|
|
475
475
|
return;
|
|
476
476
|
}
|
|
@@ -495,7 +495,7 @@ function Wt(e) {
|
|
|
495
495
|
return {
|
|
496
496
|
id: "crosshair",
|
|
497
497
|
afterDatasetsDraw: (o) => {
|
|
498
|
-
|
|
498
|
+
Va(o, e, n);
|
|
499
499
|
},
|
|
500
500
|
afterEvent: (o, a) => {
|
|
501
501
|
n = a.inChartArea === !0;
|
|
@@ -516,13 +516,13 @@ function Wt(e) {
|
|
|
516
516
|
}
|
|
517
517
|
};
|
|
518
518
|
}
|
|
519
|
-
const
|
|
519
|
+
const $a = Number.POSITIVE_INFINITY, Pn = 2, za = 1, Ha = 0.2, Wa = 120, Oa = 320, Ua = 24, { breakpoints: Ct } = $t(), Nn = "report-v5:locationchange";
|
|
520
520
|
let Qn = !1;
|
|
521
|
-
const
|
|
521
|
+
const Ka = "report.widget.comparisonTooltip";
|
|
522
522
|
function eo() {
|
|
523
523
|
window.dispatchEvent(new Event(Nn));
|
|
524
524
|
}
|
|
525
|
-
function
|
|
525
|
+
function Xa() {
|
|
526
526
|
if (Qn)
|
|
527
527
|
return;
|
|
528
528
|
Qn = !0;
|
|
@@ -535,7 +535,7 @@ function Ya() {
|
|
|
535
535
|
return eo(), a;
|
|
536
536
|
};
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function Ya(e, t) {
|
|
539
539
|
const n = t.split(".");
|
|
540
540
|
let o = e;
|
|
541
541
|
for (const a of n) {
|
|
@@ -546,8 +546,8 @@ function Ea(e, t) {
|
|
|
546
546
|
return typeof o == "string" ? o : void 0;
|
|
547
547
|
}
|
|
548
548
|
function Vn(e) {
|
|
549
|
-
const t = `${
|
|
550
|
-
return
|
|
549
|
+
const t = `${Ka}.${e}`, n = Fn(), o = ln[n];
|
|
550
|
+
return Ya(o, t) ?? t;
|
|
551
551
|
}
|
|
552
552
|
function Ao() {
|
|
553
553
|
return Vn("viewBreakdown");
|
|
@@ -562,9 +562,9 @@ function tn(e, t) {
|
|
|
562
562
|
const n = e.trim();
|
|
563
563
|
return n.length === 0 ? t : `${n} · ${t}`;
|
|
564
564
|
}
|
|
565
|
-
function
|
|
565
|
+
function Ea(e, t, n, o) {
|
|
566
566
|
var f;
|
|
567
|
-
const a =
|
|
567
|
+
const a = qa(e), r = (a == null ? void 0 : a[0]) ?? "", l = a == null ? void 0 : a[1], u = t.some((w) => Fo(w)), c = typeof n == "number" ? (f = o == null ? void 0 : o[n]) == null ? void 0 : f.trim() : void 0;
|
|
568
568
|
return l ? {
|
|
569
569
|
firstTitle: tn(r, to()),
|
|
570
570
|
secondTitle: tn(l, no())
|
|
@@ -578,34 +578,30 @@ function qa(e, t, n, o) {
|
|
|
578
578
|
firstTitle: r
|
|
579
579
|
};
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function qa(e) {
|
|
582
582
|
return e == null ? null : typeof e != "string" ? [] : e.split("#").map((t) => t.trim()).filter((t) => t.length > 0);
|
|
583
583
|
}
|
|
584
584
|
function Fo(e) {
|
|
585
585
|
return e.dash === !0 || e.isCompare === !0;
|
|
586
586
|
}
|
|
587
|
-
function
|
|
587
|
+
function Ga(e) {
|
|
588
588
|
return typeof e.label == "string" ? e.label : "N/A";
|
|
589
589
|
}
|
|
590
590
|
function Ro(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
|
|
595
|
-
var n;
|
|
596
|
-
return ((n = e.emptyValueIndexes) == null ? void 0 : n.includes(t)) === !0;
|
|
597
|
-
}
|
|
598
|
-
function Ja(e, t) {
|
|
594
|
+
function ja(e, t) {
|
|
599
595
|
return `${e}: ${isNaN(t) ? "" : t.toLocaleString()}`;
|
|
600
596
|
}
|
|
601
|
-
function
|
|
597
|
+
function Ja(e, t) {
|
|
602
598
|
return e.type === "bar" ? !0 : t === "bar";
|
|
603
599
|
}
|
|
604
|
-
function
|
|
600
|
+
function Za(e, t, n) {
|
|
605
601
|
const o = Bt(e.borderColor, t) || Bt(e.color, t), a = Bt(e.backgroundColor, t), r = Bt(e.pointBorderColor, t), l = Bt(e.pointBackgroundColor, t);
|
|
606
602
|
return n ? oo(a, l, o, r) : oo(o, r, a, l);
|
|
607
603
|
}
|
|
608
|
-
function
|
|
604
|
+
function Qa(e) {
|
|
609
605
|
return e.trim().toLowerCase();
|
|
610
606
|
}
|
|
611
607
|
function Bt(e, t) {
|
|
@@ -615,40 +611,40 @@ function Bt(e, t) {
|
|
|
615
611
|
return typeof n == "string" ? n : void 0;
|
|
616
612
|
}
|
|
617
613
|
}
|
|
618
|
-
function
|
|
614
|
+
function er(e) {
|
|
619
615
|
if (typeof e != "string") return "#9ca3af";
|
|
620
616
|
const t = e.trim();
|
|
621
617
|
return /^[-#(),.%\sa-zA-Z0-9]+$/.test(t) ? t : "#9ca3af";
|
|
622
618
|
}
|
|
623
|
-
function
|
|
619
|
+
function tr(e) {
|
|
624
620
|
const t = e.replace(/\s+/g, "").toLowerCase();
|
|
625
621
|
return !!(t === "transparent" || /^rgba\([^)]*,0(?:\.0+)?\)$/.test(t) || /^hsla\([^)]*,0(?:\.0+)?\)$/.test(t) || t === "#0000" || t === "#00000000");
|
|
626
622
|
}
|
|
627
623
|
function oo(...e) {
|
|
628
624
|
for (const t of e) {
|
|
629
625
|
if (!t) continue;
|
|
630
|
-
const n =
|
|
631
|
-
if (!
|
|
626
|
+
const n = er(t);
|
|
627
|
+
if (!tr(n))
|
|
632
628
|
return n;
|
|
633
629
|
}
|
|
634
630
|
return "#9ca3af";
|
|
635
631
|
}
|
|
636
|
-
function
|
|
632
|
+
function nr(e) {
|
|
637
633
|
const t = e.dataset, n = typeof e.dataIndex == "number" ? e.dataIndex : 0;
|
|
638
|
-
return Number.isFinite(Ro(t, n))
|
|
634
|
+
return Number.isFinite(Ro(t, n));
|
|
639
635
|
}
|
|
640
636
|
function Mn(e) {
|
|
641
637
|
return e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/\"/g, """).replace(/'/g, "'");
|
|
642
638
|
}
|
|
643
|
-
function
|
|
639
|
+
function or(e) {
|
|
644
640
|
const t = typeof e == "number" ? e : typeof e == "string" ? Number(e) : Number.NaN;
|
|
645
|
-
return Number.isFinite(t) ? Math.max(Pn, Math.floor(t)) :
|
|
641
|
+
return Number.isFinite(t) ? Math.max(Pn, Math.floor(t)) : $a;
|
|
646
642
|
}
|
|
647
|
-
function
|
|
643
|
+
function ar(e) {
|
|
648
644
|
return e <= 0 ? 320 : Ct.value.xs || Ct.value.sm || e <= 640 ? Math.max(160, Math.floor(e * 0.38)) : Ct.value.md || e <= 900 ? Math.max(200, Math.floor(e * 0.46)) : Ct.value.lg || e <= 1200 ? Math.max(240, Math.floor(e * 0.54)) : Math.max(280, Math.floor(e * 0.62));
|
|
649
645
|
}
|
|
650
646
|
function $n(e, t) {
|
|
651
|
-
const n = window.innerHeight, o =
|
|
647
|
+
const n = window.innerHeight, o = ar(n), a = t ? Math.max(120, t.clientHeight - 16) : Number.POSITIVE_INFINITY, r = Math.max(120, Math.min(o, a));
|
|
652
648
|
e.style.maxHeight = `${r}px`;
|
|
653
649
|
}
|
|
654
650
|
function ct() {
|
|
@@ -657,35 +653,35 @@ function ct() {
|
|
|
657
653
|
function wt(e) {
|
|
658
654
|
return e.dataset.pinned === "true";
|
|
659
655
|
}
|
|
660
|
-
function
|
|
656
|
+
function No(e, t) {
|
|
661
657
|
if (t) {
|
|
662
658
|
e.dataset.pinned = "true";
|
|
663
659
|
return;
|
|
664
660
|
}
|
|
665
661
|
delete e.dataset.pinned;
|
|
666
662
|
}
|
|
667
|
-
function
|
|
663
|
+
function Vo(e) {
|
|
668
664
|
return {
|
|
669
|
-
maxTooltipItems:
|
|
665
|
+
maxTooltipItems: or(e == null ? void 0 : e.maxTooltipItems)
|
|
670
666
|
};
|
|
671
667
|
}
|
|
672
|
-
function
|
|
668
|
+
function rr(e) {
|
|
673
669
|
e.__lastPhoneTapAt = void 0, e.__lastPhoneTapX = void 0, e.__lastPhoneTapY = void 0, e.__lastPhoneTapDatasetIndex = void 0, e.__lastPhoneTapDataIndex = void 0;
|
|
674
670
|
}
|
|
675
|
-
function
|
|
671
|
+
function lr(e, t, n, o, a, r) {
|
|
676
672
|
e.__lastPhoneTapAt = o, e.__lastPhoneTapX = t, e.__lastPhoneTapY = n, e.__lastPhoneTapDatasetIndex = a, e.__lastPhoneTapDataIndex = r;
|
|
677
673
|
}
|
|
678
|
-
function
|
|
674
|
+
function sr(e, t, n) {
|
|
679
675
|
return e.__lastPhoneTapDatasetIndex === t && e.__lastPhoneTapDataIndex === n;
|
|
680
676
|
}
|
|
681
|
-
function
|
|
677
|
+
function ir(e, t, n, o) {
|
|
682
678
|
if (!Number.isFinite(e.__lastPhoneTapAt) || !Number.isFinite(e.__lastPhoneTapX) || !Number.isFinite(e.__lastPhoneTapY))
|
|
683
679
|
return !1;
|
|
684
680
|
const a = o - e.__lastPhoneTapAt;
|
|
685
|
-
if (a < 0 || a >
|
|
681
|
+
if (a < 0 || a > Oa)
|
|
686
682
|
return !1;
|
|
687
683
|
const r = t - e.__lastPhoneTapX, l = n - e.__lastPhoneTapY;
|
|
688
|
-
return Math.hypot(r, l) <=
|
|
684
|
+
return Math.hypot(r, l) <= Ua;
|
|
689
685
|
}
|
|
690
686
|
function ao(e) {
|
|
691
687
|
return {
|
|
@@ -697,24 +693,24 @@ function ao(e) {
|
|
|
697
693
|
matchingKey: e.matchingKey
|
|
698
694
|
};
|
|
699
695
|
}
|
|
700
|
-
function
|
|
696
|
+
function ur(e) {
|
|
701
697
|
return Ht({
|
|
702
|
-
...
|
|
698
|
+
...Ia,
|
|
703
699
|
margin: `${e ? "8px" : "0"} 0 4px`
|
|
704
700
|
});
|
|
705
701
|
}
|
|
706
|
-
function
|
|
702
|
+
function cr(e, t) {
|
|
707
703
|
return Ht({
|
|
708
|
-
...e ?
|
|
704
|
+
...e ? Ba : Aa,
|
|
709
705
|
background: t
|
|
710
706
|
});
|
|
711
707
|
}
|
|
712
|
-
function
|
|
713
|
-
return `<button type="button" data-tooltip-full-details="true" style="${
|
|
708
|
+
function dr(e) {
|
|
709
|
+
return `<button type="button" data-tooltip-full-details="true" style="${Da}">${Mn(e)}</button>`;
|
|
714
710
|
}
|
|
715
|
-
function
|
|
711
|
+
function $o(e, t, n, o, a, r, l, u, c) {
|
|
716
712
|
var k;
|
|
717
|
-
const { firstTitle: f, secondTitle: w } =
|
|
713
|
+
const { firstTitle: f, secondTitle: w } = Ea(
|
|
718
714
|
(k = e[0]) == null ? void 0 : k.label,
|
|
719
715
|
r,
|
|
720
716
|
l,
|
|
@@ -726,16 +722,16 @@ function zo(e, t, n, o, a, r, l, u, c) {
|
|
|
726
722
|
const V = T ?? {};
|
|
727
723
|
if (V.isSpacer === !0 || typeof V.xAxisIndex == "number" && V.xAxisIndex !== l)
|
|
728
724
|
return;
|
|
729
|
-
const Y =
|
|
730
|
-
if (!Number.isFinite(ae)
|
|
725
|
+
const Y = Ga(V), ae = Ro(V, l);
|
|
726
|
+
if (!Number.isFinite(ae))
|
|
731
727
|
return;
|
|
732
|
-
const re =
|
|
733
|
-
text:
|
|
734
|
-
color:
|
|
728
|
+
const re = Ja(V, u), q = {
|
|
729
|
+
text: ja(Y, ae),
|
|
730
|
+
color: Za(V, l, re),
|
|
735
731
|
isBar: re,
|
|
736
732
|
value: ae,
|
|
737
733
|
datasetLabel: Y,
|
|
738
|
-
matchingKey:
|
|
734
|
+
matchingKey: Qa(Y)
|
|
739
735
|
};
|
|
740
736
|
if (w && Fo(V)) {
|
|
741
737
|
C.push(q);
|
|
@@ -755,12 +751,12 @@ function zo(e, t, n, o, a, r, l, u, c) {
|
|
|
755
751
|
const P = w ? p.map((T) => {
|
|
756
752
|
const x = L.get(T.matchingKey);
|
|
757
753
|
return !x || x.length === 0 ? ao(T) : x.shift() ?? ao(T);
|
|
758
|
-
}) : [], S = W.length > p.length || C.length > P.length, A = (T, x = !1) => `<div style="${
|
|
759
|
-
const x =
|
|
760
|
-
return `<div style="${
|
|
754
|
+
}) : [], S = W.length > p.length || C.length > P.length, A = (T, x = !1) => `<div style="${ur(x)}">${Mn(T)}</div>`, E = (T) => {
|
|
755
|
+
const x = cr(T.isBar, T.color);
|
|
756
|
+
return `<div style="${Pa}"><span style="${x}"></span><span style="${Ma}">${Mn(T.text)}</span></div>`;
|
|
761
757
|
};
|
|
762
758
|
let I = "";
|
|
763
|
-
f.length > 0 && (I += A(f)), I += p.map((T) => E(T)).join(""), w && P.length > 0 && (I += A(w, I.length > 0), I += P.map((T) => E(T)).join("")), a && S && (I +=
|
|
759
|
+
f.length > 0 && (I += A(f)), I += p.map((T) => E(T)).join(""), w && P.length > 0 && (I += A(w, I.length > 0), I += P.map((T) => E(T)).join("")), a && S && (I += dr(n));
|
|
764
760
|
const F = [
|
|
765
761
|
{
|
|
766
762
|
title: f,
|
|
@@ -778,10 +774,10 @@ function zo(e, t, n, o, a, r, l, u, c) {
|
|
|
778
774
|
};
|
|
779
775
|
}
|
|
780
776
|
function ro(e) {
|
|
781
|
-
return e.scrollHeight - e.clientHeight >
|
|
777
|
+
return e.scrollHeight - e.clientHeight > za;
|
|
782
778
|
}
|
|
783
779
|
function nn(e, t, n, o, a, r, l, u, c, f) {
|
|
784
|
-
const w =
|
|
780
|
+
const w = $o(
|
|
785
781
|
t,
|
|
786
782
|
n,
|
|
787
783
|
o,
|
|
@@ -792,9 +788,9 @@ function nn(e, t, n, o, a, r, l, u, c, f) {
|
|
|
792
788
|
c,
|
|
793
789
|
f
|
|
794
790
|
);
|
|
795
|
-
return e.innerHTML !== w.html && (e.innerHTML = w.html,
|
|
791
|
+
return e.innerHTML !== w.html && (e.innerHTML = w.html, kr(e)), w;
|
|
796
792
|
}
|
|
797
|
-
function
|
|
793
|
+
function fr(e, t, n, o, a, r, l, u, c, f) {
|
|
798
794
|
if (Number.isFinite(a))
|
|
799
795
|
return {
|
|
800
796
|
markup: nn(
|
|
@@ -897,7 +893,7 @@ function on(e, t) {
|
|
|
897
893
|
(n) => typeof n == "string" ? lo(n, t) : n
|
|
898
894
|
) : e;
|
|
899
895
|
}
|
|
900
|
-
function
|
|
896
|
+
function mr(e) {
|
|
901
897
|
e.__tooltipOriginalStyle || (e.__tooltipOriginalStyle = {
|
|
902
898
|
borderColor: Reflect.get(e, "borderColor"),
|
|
903
899
|
backgroundColor: Reflect.get(e, "backgroundColor"),
|
|
@@ -905,11 +901,11 @@ function hr(e) {
|
|
|
905
901
|
pointBackgroundColor: Reflect.get(e, "pointBackgroundColor")
|
|
906
902
|
});
|
|
907
903
|
}
|
|
908
|
-
function
|
|
904
|
+
function hr(e) {
|
|
909
905
|
const t = e.__tooltipOriginalStyle;
|
|
910
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));
|
|
911
907
|
}
|
|
912
|
-
function
|
|
908
|
+
function pr(e, t) {
|
|
913
909
|
const n = e.__tooltipOriginalStyle;
|
|
914
910
|
n && (Reflect.set(e, "borderColor", on(n.borderColor, t)), Reflect.set(e, "backgroundColor", on(n.backgroundColor, t)), Reflect.set(e, "pointBorderColor", on(n.pointBorderColor, t)), Reflect.set(
|
|
915
911
|
e,
|
|
@@ -933,7 +929,7 @@ function un(e, t) {
|
|
|
933
929
|
const n = e.data.datasets;
|
|
934
930
|
if (n.length !== 0) {
|
|
935
931
|
if (n.forEach((o, a) => {
|
|
936
|
-
|
|
932
|
+
mr(o), !t || a === t.datasetIndex ? hr(o) : pr(o, Ha);
|
|
937
933
|
}), typeof e.setActiveElements == "function")
|
|
938
934
|
try {
|
|
939
935
|
t ? e.setActiveElements([
|
|
@@ -952,7 +948,7 @@ function un(e, t) {
|
|
|
952
948
|
}
|
|
953
949
|
}
|
|
954
950
|
}
|
|
955
|
-
function
|
|
951
|
+
function zo(e) {
|
|
956
952
|
const t = e, n = t == null ? void 0 : t.chart;
|
|
957
953
|
if (Bn(n))
|
|
958
954
|
return n;
|
|
@@ -965,14 +961,14 @@ function Ho(e) {
|
|
|
965
961
|
const r = Sn.getChart(a);
|
|
966
962
|
return Bn(r) ? r : null;
|
|
967
963
|
}
|
|
968
|
-
function
|
|
964
|
+
function gr(e) {
|
|
969
965
|
const t = window.getComputedStyle(e);
|
|
970
966
|
return [t.overflow, t.overflowX, t.overflowY].some((o) => o !== "visible");
|
|
971
967
|
}
|
|
972
968
|
function zn(e) {
|
|
973
969
|
let t = e.parentElement ?? e, n = t;
|
|
974
970
|
for (; n && n.parentElement && n.parentElement !== document.body && n.parentElement !== document.documentElement; )
|
|
975
|
-
|
|
971
|
+
gr(n) && (t = n.parentElement), n = n.parentElement;
|
|
976
972
|
return window.getComputedStyle(t).position === "static" && (t.style.position = "relative"), t;
|
|
977
973
|
}
|
|
978
974
|
function Hn(e, t, n, o, a, r, l = "center", u = !1) {
|
|
@@ -988,10 +984,10 @@ function Hn(e, t, n, o, a, r, l = "center", u = !1) {
|
|
|
988
984
|
const Y = Math.max(T, w + C - P - A), ae = Math.max(x, W + g - S - A), re = Math.round(Math.min(Math.max(T, F), Y)), q = Math.round(Math.min(Math.max(x, k), ae));
|
|
989
985
|
p.__lastLeftPx === re && p.__lastTopPx === q || (p.__lastLeftPx = re, p.__lastTopPx = q, e.style.left = `${re}px`, e.style.top = `${q}px`);
|
|
990
986
|
}
|
|
991
|
-
function
|
|
987
|
+
function Ho(e) {
|
|
992
988
|
return e.dataset.anchorDirection === "left" ? "left" : e.dataset.anchorDirection === "right" ? "right" : "center";
|
|
993
989
|
}
|
|
994
|
-
function
|
|
990
|
+
function vr(e, t, n, o, a, r, l) {
|
|
995
991
|
const u = t.getBoundingClientRect(), c = o - u.left, f = a - u.top;
|
|
996
992
|
!Number.isFinite(c) || !Number.isFinite(f) || (e.dataset.cursorCanvasX = String(c), e.dataset.cursorCanvasY = String(f), e.dataset.caretX = String(c), e.dataset.caretY = String(f), e.dataset.anchorDirection = l, Hn(
|
|
997
993
|
e,
|
|
@@ -1004,24 +1000,24 @@ function yr(e, t, n, o, a, r, l) {
|
|
|
1004
1000
|
!0
|
|
1005
1001
|
));
|
|
1006
1002
|
}
|
|
1007
|
-
function
|
|
1003
|
+
function yr(e) {
|
|
1008
1004
|
const t = document.createElement("div");
|
|
1009
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", $n(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;
|
|
1010
1006
|
}
|
|
1011
|
-
function
|
|
1007
|
+
function br(e) {
|
|
1012
1008
|
e.__onViewportChange && (window.removeEventListener("scroll", e.__onViewportChange, !0), window.removeEventListener("resize", e.__onViewportChange));
|
|
1013
1009
|
}
|
|
1014
|
-
function
|
|
1010
|
+
function Cr(e) {
|
|
1015
1011
|
e.__onNavigationChange && (window.removeEventListener(Nn, e.__onNavigationChange), window.removeEventListener("popstate", e.__onNavigationChange), window.removeEventListener("hashchange", e.__onNavigationChange), window.removeEventListener("beforeunload", e.__onNavigationChange));
|
|
1016
1012
|
}
|
|
1017
|
-
function
|
|
1013
|
+
function xr(e) {
|
|
1018
1014
|
e.__disconnectObserver && (e.__disconnectObserver.disconnect(), e.__disconnectObserver = void 0);
|
|
1019
1015
|
}
|
|
1020
1016
|
function Wn(e, t) {
|
|
1021
|
-
St(e),
|
|
1017
|
+
St(e), Wo(e), br(e), Cr(e), xr(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();
|
|
1022
1018
|
}
|
|
1023
|
-
function
|
|
1024
|
-
e.__onNavigationChange || (
|
|
1019
|
+
function wr(e, t, n) {
|
|
1020
|
+
e.__onNavigationChange || (Xa(), e.__onNavigationChange = () => {
|
|
1025
1021
|
if (!n.isConnected) {
|
|
1026
1022
|
Wn(e, n);
|
|
1027
1023
|
return;
|
|
@@ -1029,7 +1025,7 @@ function _r(e, t, n) {
|
|
|
1029
1025
|
je(e, t, !0);
|
|
1030
1026
|
}, window.addEventListener(Nn, e.__onNavigationChange), window.addEventListener("popstate", e.__onNavigationChange), window.addEventListener("hashchange", e.__onNavigationChange), window.addEventListener("beforeunload", e.__onNavigationChange));
|
|
1031
1027
|
}
|
|
1032
|
-
function
|
|
1028
|
+
function _r(e, t) {
|
|
1033
1029
|
e.__disconnectObserver || document.body && (e.__disconnectObserver = new MutationObserver(() => {
|
|
1034
1030
|
t.isConnected || Wn(e, t);
|
|
1035
1031
|
}), e.__disconnectObserver.observe(document.body, {
|
|
@@ -1037,7 +1033,7 @@ function Sr(e, t) {
|
|
|
1037
1033
|
subtree: !0
|
|
1038
1034
|
}));
|
|
1039
1035
|
}
|
|
1040
|
-
function
|
|
1036
|
+
function Sr(e, t, n) {
|
|
1041
1037
|
Array.from(
|
|
1042
1038
|
e.querySelectorAll('[data-comparison-tooltip="true"]')
|
|
1043
1039
|
).forEach((a) => {
|
|
@@ -1047,10 +1043,10 @@ function kr(e, t, n) {
|
|
|
1047
1043
|
function St(e) {
|
|
1048
1044
|
typeof e.__hideTimeoutId == "number" && (window.clearTimeout(e.__hideTimeoutId), e.__hideTimeoutId = void 0);
|
|
1049
1045
|
}
|
|
1050
|
-
function
|
|
1046
|
+
function Wo(e) {
|
|
1051
1047
|
typeof e.__cursorRafId == "number" && (window.cancelAnimationFrame(e.__cursorRafId), e.__cursorRafId = void 0);
|
|
1052
1048
|
}
|
|
1053
|
-
function
|
|
1049
|
+
function kr(e) {
|
|
1054
1050
|
e.__cachedWidth = void 0, e.__cachedHeight = void 0, e.__measurementHostWidth = void 0, e.__measurementHostHeight = void 0;
|
|
1055
1051
|
}
|
|
1056
1052
|
function so(e, t, n, o, a) {
|
|
@@ -1061,27 +1057,27 @@ function so(e, t, n, o, a) {
|
|
|
1061
1057
|
if (e.__pendingCursorClientX = void 0, e.__pendingCursorClientY = void 0, !Number.isFinite(c) || !Number.isFinite(f))
|
|
1062
1058
|
return;
|
|
1063
1059
|
const w = zn(t);
|
|
1064
|
-
e.parentElement !== w && w.appendChild(e),
|
|
1060
|
+
e.parentElement !== w && w.appendChild(e), vr(
|
|
1065
1061
|
e,
|
|
1066
1062
|
t,
|
|
1067
1063
|
w,
|
|
1068
1064
|
c,
|
|
1069
1065
|
f,
|
|
1070
1066
|
n,
|
|
1071
|
-
|
|
1067
|
+
Ho(e)
|
|
1072
1068
|
);
|
|
1073
1069
|
})));
|
|
1074
1070
|
}
|
|
1075
1071
|
function je(e, t, n = !1) {
|
|
1076
|
-
wt(e) && !n || (St(e),
|
|
1072
|
+
wt(e) && !n || (St(e), Wo(e), No(e, !1), rr(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", un(t));
|
|
1077
1073
|
}
|
|
1078
|
-
function fn(e, t, n =
|
|
1074
|
+
function fn(e, t, n = Wa) {
|
|
1079
1075
|
e.__isTooltipHovered || (St(e), e.__hideTimeoutId = window.setTimeout(() => {
|
|
1080
1076
|
e.__isTooltipHovered || je(e, t);
|
|
1081
1077
|
}, n));
|
|
1082
1078
|
}
|
|
1083
|
-
function
|
|
1084
|
-
const { maxTooltipItems: r } =
|
|
1079
|
+
function Tr(e, t, n, o, a) {
|
|
1080
|
+
const { maxTooltipItems: r } = Vo(a);
|
|
1085
1081
|
e.__onCanvasPointerEnter || (e.__onCanvasPointerEnter = (l) => {
|
|
1086
1082
|
if (!(ct() && wt(e)) && (so(
|
|
1087
1083
|
e,
|
|
@@ -1121,7 +1117,7 @@ function Lr(e, t, n, o, a) {
|
|
|
1121
1117
|
return !1;
|
|
1122
1118
|
const E = (T = A.find(
|
|
1123
1119
|
(ae) => typeof ae.dataIndex == "number"
|
|
1124
|
-
)) == null ? void 0 : T.dataIndex, I = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], F = (V = n == null ? void 0 : n.config) == null ? void 0 : V.type, k =
|
|
1120
|
+
)) == null ? void 0 : T.dataIndex, I = ((x = n == null ? void 0 : n.data) == null ? void 0 : x.datasets) ?? [], F = (V = n == null ? void 0 : n.config) == null ? void 0 : V.type, k = $o(
|
|
1125
1121
|
A,
|
|
1126
1122
|
o,
|
|
1127
1123
|
(a == null ? void 0 : a.viewFullDetailsLabel) ?? Ao(),
|
|
@@ -1193,16 +1189,16 @@ function Lr(e, t, n, o, a) {
|
|
|
1193
1189
|
je(e, n, !0);
|
|
1194
1190
|
return;
|
|
1195
1191
|
}
|
|
1196
|
-
const g = C[0], p =
|
|
1192
|
+
const g = C[0], p = sr(
|
|
1197
1193
|
e,
|
|
1198
1194
|
g.datasetIndex,
|
|
1199
1195
|
g.index
|
|
1200
|
-
), L = Number.isFinite(e.__lastPhoneTapAt), P = p &&
|
|
1196
|
+
), L = Number.isFinite(e.__lastPhoneTapAt), P = p && ir(e, l.offsetX, l.offsetY, l.timeStamp);
|
|
1201
1197
|
if (L && !P && p) {
|
|
1202
1198
|
je(e, n, !0);
|
|
1203
1199
|
return;
|
|
1204
1200
|
}
|
|
1205
|
-
|
|
1201
|
+
No(e, !0), St(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), c.setActiveElements(C, {
|
|
1206
1202
|
x: l.offsetX,
|
|
1207
1203
|
y: l.offsetY
|
|
1208
1204
|
});
|
|
@@ -1215,7 +1211,7 @@ function Lr(e, t, n, o, a) {
|
|
|
1215
1211
|
a.onViewFullDetails(e.__detailsPayload, n), je(e, n);
|
|
1216
1212
|
return;
|
|
1217
1213
|
}
|
|
1218
|
-
|
|
1214
|
+
lr(
|
|
1219
1215
|
e,
|
|
1220
1216
|
l.offsetX,
|
|
1221
1217
|
l.offsetY,
|
|
@@ -1236,11 +1232,11 @@ function Lr(e, t, n, o, a) {
|
|
|
1236
1232
|
e.__isTooltipHovered = !1, fn(e, n);
|
|
1237
1233
|
}, e.addEventListener("pointerleave", e.__onTooltipPointerLeave)));
|
|
1238
1234
|
}
|
|
1239
|
-
function
|
|
1235
|
+
function Lr(e, t, n) {
|
|
1240
1236
|
e.__onViewportChange || (e.__onViewportChange = () => {
|
|
1241
1237
|
if (e.style.opacity !== "1")
|
|
1242
1238
|
return;
|
|
1243
|
-
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 = Ho(e);
|
|
1244
1240
|
if (!Number.isFinite(o) || !Number.isFinite(a)) {
|
|
1245
1241
|
e.style.opacity = "0";
|
|
1246
1242
|
return;
|
|
@@ -1263,8 +1259,8 @@ function Dr(e, t, n) {
|
|
|
1263
1259
|
passive: !0
|
|
1264
1260
|
}));
|
|
1265
1261
|
}
|
|
1266
|
-
function
|
|
1267
|
-
const { maxTooltipItems: n } =
|
|
1262
|
+
function Dr(e, t) {
|
|
1263
|
+
const { maxTooltipItems: n } = Vo(t);
|
|
1268
1264
|
return ({ chart: o, tooltip: a }) => {
|
|
1269
1265
|
var re, q, N, y;
|
|
1270
1266
|
if (typeof document > "u" || typeof window > "u")
|
|
@@ -1274,7 +1270,7 @@ function Ir(e, t) {
|
|
|
1274
1270
|
return;
|
|
1275
1271
|
const l = zn(r), u = `comparison-tooltip-${String(o.id)}`;
|
|
1276
1272
|
let c = document.querySelector(`#${u}`);
|
|
1277
|
-
if (c || (c =
|
|
1273
|
+
if (c || (c = yr(u)), c.parentElement !== l && l.appendChild(c), $n(c, l), Lr(c, r, e), wr(c, o, r), _r(c, r), Tr(c, r, o, e, t), ((a == null ? void 0 : a.opacity) ?? 0) === 0) {
|
|
1278
1274
|
if (ct() && wt(c))
|
|
1279
1275
|
return;
|
|
1280
1276
|
t != null && t.onViewFullDetails ? fn(c, o) : je(c, o);
|
|
@@ -1287,10 +1283,10 @@ function Ir(e, t) {
|
|
|
1287
1283
|
t != null && t.onViewFullDetails ? fn(c, o) : je(c, o);
|
|
1288
1284
|
return;
|
|
1289
1285
|
}
|
|
1290
|
-
|
|
1286
|
+
Sr(l, u, r), St(c);
|
|
1291
1287
|
const w = (t == null ? void 0 : t.viewFullDetailsLabel) ?? Ao(), W = !!(t != null && t.onViewFullDetails), C = (re = f.find((b) => typeof b.dataIndex == "number")) == null ? void 0 : re.dataIndex, g = ((q = o == null ? void 0 : o.data) == null ? void 0 : q.datasets) ?? [], p = (N = o == null ? void 0 : o.config) == null ? void 0 : N.type, {
|
|
1292
1288
|
markup: { detailsPayload: L, hasCollapsedValues: P }
|
|
1293
|
-
} =
|
|
1289
|
+
} = fr(
|
|
1294
1290
|
c,
|
|
1295
1291
|
f,
|
|
1296
1292
|
e,
|
|
@@ -1333,8 +1329,8 @@ function An(e = !1, t) {
|
|
|
1333
1329
|
return {
|
|
1334
1330
|
...Bo(e ? "y" : "x"),
|
|
1335
1331
|
enabled: !1,
|
|
1336
|
-
filter:
|
|
1337
|
-
external:
|
|
1332
|
+
filter: nr,
|
|
1333
|
+
external: Dr(e, t)
|
|
1338
1334
|
};
|
|
1339
1335
|
}
|
|
1340
1336
|
const io = "en-US";
|
|
@@ -1348,11 +1344,11 @@ function uo(e, t) {
|
|
|
1348
1344
|
}
|
|
1349
1345
|
return typeof o == "string" ? o : void 0;
|
|
1350
1346
|
}
|
|
1351
|
-
function
|
|
1347
|
+
function Ir() {
|
|
1352
1348
|
const e = Fn(), t = "report.widget.legend.comparison";
|
|
1353
1349
|
return `(${uo(ln[e] ?? ln[io], t) ?? uo(ln[io], t) ?? "Comparison"})`;
|
|
1354
1350
|
}
|
|
1355
|
-
function
|
|
1351
|
+
function Oo(e) {
|
|
1356
1352
|
function o(C, g, p) {
|
|
1357
1353
|
if (C.measureText(g).width <= p) return g;
|
|
1358
1354
|
const L = "…";
|
|
@@ -1374,7 +1370,7 @@ function Uo(e) {
|
|
|
1374
1370
|
function l(C, g) {
|
|
1375
1371
|
const p = C == null ? "" : String(C).trim();
|
|
1376
1372
|
if (p.length === 0) return p;
|
|
1377
|
-
const L =
|
|
1373
|
+
const L = Ir();
|
|
1378
1374
|
return p.endsWith(` ${L}`) || p.endsWith(L) ? p : (g == null ? void 0 : g.dash) === !0 || (g == null ? void 0 : g.isCompare) === !0 ? `${p} ${L}` : p;
|
|
1379
1375
|
}
|
|
1380
1376
|
const u = h(() => ({
|
|
@@ -1521,16 +1517,16 @@ function Uo(e) {
|
|
|
1521
1517
|
})), W = h(() => e.isTransposed);
|
|
1522
1518
|
return { datalabels: u, xCfg: c, yCfg: f, isTransposed: W, legend: w };
|
|
1523
1519
|
}
|
|
1524
|
-
const
|
|
1520
|
+
const Pr = {
|
|
1525
1521
|
key: 0,
|
|
1526
1522
|
class: "pointer-events-none fixed inset-0 z-[120] flex justify-end"
|
|
1527
|
-
},
|
|
1523
|
+
}, Mr = ["aria-label"], Br = { class: "relative z-20 flex shrink-0 items-center bg-fm-color-neutral-white justify-between sm:px-5" }, Ar = { class: "fm-typo-en-title-sm-600 text-fm-color-typo-primary min-w-0 flex-1 pr-3" }, Fr = { class: "flex items-center gap-1.5" }, Rr = {
|
|
1528
1524
|
key: 0,
|
|
1529
1525
|
class: "pb-2 fm-typo-en-body-lg-600 text-fm-color-typo-primary"
|
|
1530
|
-
},
|
|
1526
|
+
}, Nr = ["onMouseenter", "onFocus"], Vr = { class: "min-w-0 flex flex-1 items-center gap-2.5 pr-2" }, $r = { class: "min-w-0 break-all text-fm-color-typo-secondary" }, zr = { class: "fm-typo-en-body-lg-600 text-fm-color-typo-secondary shrink-0 text-right tabular-nums" }, Hr = {
|
|
1531
1527
|
key: 1,
|
|
1532
1528
|
class: "flex justify-center px-2 pt-2"
|
|
1533
|
-
}, co = 500,
|
|
1529
|
+
}, co = 500, Wr = 320, an = 30, Ot = /* @__PURE__ */ Ae({
|
|
1534
1530
|
__name: "TooltipDetailSidesheet",
|
|
1535
1531
|
props: {
|
|
1536
1532
|
modelValue: { type: Boolean },
|
|
@@ -1594,7 +1590,7 @@ const Mr = {
|
|
|
1594
1590
|
return typeof window > "u" ? co : Math.floor(window.innerWidth * 0.94);
|
|
1595
1591
|
}
|
|
1596
1592
|
function k(N) {
|
|
1597
|
-
const y = F(), b = Math.min(
|
|
1593
|
+
const y = F(), b = Math.min(Wr, y);
|
|
1598
1594
|
return Math.min(y, Math.max(b, Math.floor(N)));
|
|
1599
1595
|
}
|
|
1600
1596
|
function T(N) {
|
|
@@ -1633,7 +1629,7 @@ const Mr = {
|
|
|
1633
1629
|
x(), document.removeEventListener("pointerdown", re, !0), document.removeEventListener("keydown", q), window.removeEventListener("resize", ae);
|
|
1634
1630
|
}), (N, y) => {
|
|
1635
1631
|
const b = fe("FmButton");
|
|
1636
|
-
return K(), me(
|
|
1632
|
+
return K(), me(aa, {
|
|
1637
1633
|
"enter-active-class": "transform transition duration-200 ease-out",
|
|
1638
1634
|
"enter-from-class": "translate-x-full opacity-0",
|
|
1639
1635
|
"enter-to-class": "translate-x-0 opacity-100",
|
|
@@ -1642,7 +1638,7 @@ const Mr = {
|
|
|
1642
1638
|
"leave-to-class": "translate-x-full opacity-0"
|
|
1643
1639
|
}, {
|
|
1644
1640
|
default: Le(() => [
|
|
1645
|
-
f.value ? (K(), ie("div",
|
|
1641
|
+
f.value ? (K(), ie("div", Pr, [
|
|
1646
1642
|
G("div", {
|
|
1647
1643
|
ref_key: "panelRef",
|
|
1648
1644
|
ref: r,
|
|
@@ -1656,9 +1652,9 @@ const Mr = {
|
|
|
1656
1652
|
class: "absolute left-0 top-0 z-40 h-full w-3 -translate-x-1/2 cursor-ew-resize",
|
|
1657
1653
|
onPointerdown: rn(Y, ["prevent"])
|
|
1658
1654
|
}, null, 32),
|
|
1659
|
-
G("div",
|
|
1660
|
-
G("div",
|
|
1661
|
-
G("div",
|
|
1655
|
+
G("div", Br, [
|
|
1656
|
+
G("div", Ar, Ie(i(a)("report.widget.comparisonTooltip.fullBreakdownTitle")), 1),
|
|
1657
|
+
G("div", Fr, [
|
|
1662
1658
|
he(b, {
|
|
1663
1659
|
class: "relative z-30 h-9 w-9 shrink-0",
|
|
1664
1660
|
variant: "tertiary",
|
|
@@ -1676,7 +1672,7 @@ const Mr = {
|
|
|
1676
1672
|
key: R.key,
|
|
1677
1673
|
class: "flex flex-col gap-2 rounded-2xl bg-fm-color-neutral-white/45 py-3"
|
|
1678
1674
|
}, [
|
|
1679
|
-
R.title ? (K(), ie("p",
|
|
1675
|
+
R.title ? (K(), ie("p", Rr, Ie(R.title), 1)) : ge("", !0),
|
|
1680
1676
|
(K(!0), ie(Ve, null, dt(R.visibleValues, (B, z) => (K(), ie("button", {
|
|
1681
1677
|
key: `${B.text}-${z}`,
|
|
1682
1678
|
type: "button",
|
|
@@ -1686,7 +1682,7 @@ const Mr = {
|
|
|
1686
1682
|
onMouseleave: P,
|
|
1687
1683
|
onBlur: P
|
|
1688
1684
|
}, [
|
|
1689
|
-
G("span",
|
|
1685
|
+
G("span", Vr, [
|
|
1690
1686
|
G("span", {
|
|
1691
1687
|
class: De([
|
|
1692
1688
|
"inline-block h-3 w-3 shrink-0 box-border",
|
|
@@ -1694,11 +1690,11 @@ const Mr = {
|
|
|
1694
1690
|
]),
|
|
1695
1691
|
style: Me({ backgroundColor: B.color })
|
|
1696
1692
|
}, null, 6),
|
|
1697
|
-
G("span",
|
|
1693
|
+
G("span", $r, Ie(p(B)), 1)
|
|
1698
1694
|
]),
|
|
1699
|
-
G("span",
|
|
1700
|
-
], 40,
|
|
1701
|
-
R.hasMore ? (K(), ie("div",
|
|
1695
|
+
G("span", zr, Ie(g(B)), 1)
|
|
1696
|
+
], 40, Nr))), 128)),
|
|
1697
|
+
R.hasMore ? (K(), ie("div", Hr, [
|
|
1702
1698
|
he(b, {
|
|
1703
1699
|
class: "w-full",
|
|
1704
1700
|
variant: "tertiary",
|
|
@@ -1709,21 +1705,21 @@ const Mr = {
|
|
|
1709
1705
|
])) : ge("", !0)
|
|
1710
1706
|
]))), 128))
|
|
1711
1707
|
], 32)
|
|
1712
|
-
], 12,
|
|
1708
|
+
], 12, Mr)
|
|
1713
1709
|
])) : ge("", !0)
|
|
1714
1710
|
]),
|
|
1715
1711
|
_: 1
|
|
1716
1712
|
});
|
|
1717
1713
|
};
|
|
1718
1714
|
}
|
|
1719
|
-
}),
|
|
1715
|
+
}), Or = {
|
|
1720
1716
|
type: "button",
|
|
1721
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]",
|
|
1722
1718
|
style: { fontSize: "var(--legend-font-size)" }
|
|
1723
|
-
},
|
|
1719
|
+
}, Ur = ["aria-pressed", "onClick"], Kr = ["title"], Xr = {
|
|
1724
1720
|
key: 0,
|
|
1725
1721
|
class: "chart-legend-item relative z-[2] inline-flex max-w-full cursor-pointer select-none pointer-events-auto"
|
|
1726
|
-
},
|
|
1722
|
+
}, Yr = 36, fo = 2, mo = 16, Er = 50, qr = 6, Gr = /* @__PURE__ */ Ae({
|
|
1727
1723
|
__name: "ChartLegendPanel",
|
|
1728
1724
|
props: {
|
|
1729
1725
|
chartRef: {},
|
|
@@ -1766,7 +1762,7 @@ const Mr = {
|
|
|
1766
1762
|
T != null && (window.clearTimeout(T), T = null);
|
|
1767
1763
|
}
|
|
1768
1764
|
function y() {
|
|
1769
|
-
const s =
|
|
1765
|
+
const s = zo(
|
|
1770
1766
|
n.chartRef
|
|
1771
1767
|
);
|
|
1772
1768
|
if (s)
|
|
@@ -1909,7 +1905,7 @@ const Mr = {
|
|
|
1909
1905
|
if (k.value)
|
|
1910
1906
|
return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m - mo)) : d != null ? Math.max(0, Math.floor(d - mo)) : 120;
|
|
1911
1907
|
if (d != null) {
|
|
1912
|
-
const v = d * 0.3, $ = d -
|
|
1908
|
+
const v = d * 0.3, $ = d - Yr, O = Math.min(v, $);
|
|
1913
1909
|
return Math.max(0, Math.floor(O));
|
|
1914
1910
|
}
|
|
1915
1911
|
return Number.isFinite(m) && m > 0 ? Math.max(0, Math.floor(m * 0.3)) : 120;
|
|
@@ -2305,13 +2301,13 @@ const Mr = {
|
|
|
2305
2301
|
function jt(s = 0) {
|
|
2306
2302
|
It();
|
|
2307
2303
|
const m = y(), d = l.value.length > 0;
|
|
2308
|
-
if (m || d || s >=
|
|
2304
|
+
if (m || d || s >= qr) {
|
|
2309
2305
|
N();
|
|
2310
2306
|
return;
|
|
2311
2307
|
}
|
|
2312
2308
|
N(), T = window.setTimeout(() => {
|
|
2313
2309
|
jt(s + 1);
|
|
2314
|
-
},
|
|
2310
|
+
}, Er);
|
|
2315
2311
|
}
|
|
2316
2312
|
function Xe(s, m) {
|
|
2317
2313
|
var ve;
|
|
@@ -2412,7 +2408,7 @@ const Mr = {
|
|
|
2412
2408
|
ref: p,
|
|
2413
2409
|
class: "absolute invisible pointer-events-none left-0 top-0 z-[2] inline-flex max-w-full select-none"
|
|
2414
2410
|
}, [
|
|
2415
|
-
G("button",
|
|
2411
|
+
G("button", Or, Ie(i(a)("report.widget.legend.viewMore")), 1)
|
|
2416
2412
|
], 512),
|
|
2417
2413
|
G("ul", {
|
|
2418
2414
|
ref_key: "legendListRef",
|
|
@@ -2455,10 +2451,10 @@ const Mr = {
|
|
|
2455
2451
|
"line-through": d.hidden
|
|
2456
2452
|
}]),
|
|
2457
2453
|
title: d.text ?? ""
|
|
2458
|
-
}, Ie(d.text), 11,
|
|
2459
|
-
], 10,
|
|
2454
|
+
}, Ie(d.text), 11, Kr)
|
|
2455
|
+
], 10, Ur)
|
|
2460
2456
|
], 2))), 128)),
|
|
2461
|
-
f.value ? (K(), ie("li",
|
|
2457
|
+
f.value ? (K(), ie("li", Xr, [
|
|
2462
2458
|
G("button", {
|
|
2463
2459
|
type: "button",
|
|
2464
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",
|
|
@@ -2481,11 +2477,11 @@ const Mr = {
|
|
|
2481
2477
|
], 512)
|
|
2482
2478
|
], 6)) : ge("", !0);
|
|
2483
2479
|
}
|
|
2484
|
-
}), $e = /* @__PURE__ */ _o(
|
|
2485
|
-
function
|
|
2480
|
+
}), $e = /* @__PURE__ */ _o(Gr, [["__scopeId", "data-v-706fa016"]]);
|
|
2481
|
+
function jr(e, t) {
|
|
2486
2482
|
const { t: n } = ft(), { breakpoints: o } = $t(), a = M(!1), r = M(null), l = M(null);
|
|
2487
2483
|
function u() {
|
|
2488
|
-
return
|
|
2484
|
+
return zo(e.value) ?? l.value;
|
|
2489
2485
|
}
|
|
2490
2486
|
function c(g) {
|
|
2491
2487
|
a.value = g, !g && (r.value = null, un(u()), l.value = null);
|
|
@@ -2514,7 +2510,7 @@ function Jr(e, t) {
|
|
|
2514
2510
|
handleTooltipDetailsLeave: W
|
|
2515
2511
|
};
|
|
2516
2512
|
}
|
|
2517
|
-
function
|
|
2513
|
+
function Jr(e) {
|
|
2518
2514
|
const t = M([]), n = h(() => new Set(t.value));
|
|
2519
2515
|
function o(l, u) {
|
|
2520
2516
|
return bt({
|
|
@@ -2556,13 +2552,13 @@ function Ut({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2556
2552
|
handleTooltipDetailsSheetVisibility: u,
|
|
2557
2553
|
handleTooltipDetailsHover: c,
|
|
2558
2554
|
handleTooltipDetailsLeave: f
|
|
2559
|
-
} =
|
|
2555
|
+
} = jr(e, {
|
|
2560
2556
|
maxTooltipItems: o,
|
|
2561
2557
|
comparisonXAxis: h(() => {
|
|
2562
2558
|
var x;
|
|
2563
2559
|
return (x = t.value.data) == null ? void 0 : x.comparisonXAxis;
|
|
2564
2560
|
})
|
|
2565
|
-
}), { datalabels: w, xCfg: W, yCfg: C, isTransposed: g, legend: p } =
|
|
2561
|
+
}), { datalabels: w, xCfg: W, yCfg: C, isTransposed: g, legend: p } = Oo(t.value), L = h(
|
|
2566
2562
|
() => An(t.value.isTransposed === !0, l.value)
|
|
2567
2563
|
), P = h(() => {
|
|
2568
2564
|
const x = p.value.position;
|
|
@@ -2571,7 +2567,7 @@ function Ut({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2571
2567
|
() => S.value === "left" || S.value === "right"
|
|
2572
2568
|
), E = h(
|
|
2573
2569
|
() => S.value === "top" || S.value === "left"
|
|
2574
|
-
), { hiddenDatasetKeys: I, isDatasetHidden: F, toggleDatasetVisibility: k } =
|
|
2570
|
+
), { hiddenDatasetKeys: I, isDatasetHidden: F, toggleDatasetVisibility: k } = Jr(n), T = h(() => n.value.map((x, V) => ({
|
|
2575
2571
|
...x,
|
|
2576
2572
|
hidden: F(x, V)
|
|
2577
2573
|
})));
|
|
@@ -2597,11 +2593,11 @@ function Ut({ chartRef: e, model: t, baseDatasets: n }) {
|
|
|
2597
2593
|
};
|
|
2598
2594
|
}
|
|
2599
2595
|
const ho = /* @__PURE__ */ new WeakMap();
|
|
2600
|
-
function
|
|
2596
|
+
function Uo(e) {
|
|
2601
2597
|
return typeof e == "number" && Number.isFinite(e);
|
|
2602
2598
|
}
|
|
2603
2599
|
function Kt(e) {
|
|
2604
|
-
return e.map((t) =>
|
|
2600
|
+
return e.map((t) => Uo(t) ? t : null);
|
|
2605
2601
|
}
|
|
2606
2602
|
function On(e) {
|
|
2607
2603
|
return e.reduce((t, n, o) => (n === null && t.push(o), t), []);
|
|
@@ -2617,7 +2613,7 @@ function Xt(e, t) {
|
|
|
2617
2613
|
}
|
|
2618
2614
|
function Yt(e, t, n) {
|
|
2619
2615
|
return e.some((o) => o.xAxisIndex !== void 0) ? e.filter(
|
|
2620
|
-
(o) => o.xAxisIndex === void 0 ||
|
|
2616
|
+
(o) => o.xAxisIndex === void 0 || Uo(o.values[0]) || (n == null ? void 0 : n.preserveNullableValues) === !0 && o.values[0] === null
|
|
2621
2617
|
).map((o) => o.xAxisIndex === void 0 ? o : {
|
|
2622
2618
|
...o,
|
|
2623
2619
|
values: Array.from(
|
|
@@ -2626,7 +2622,7 @@ function Yt(e, t, n) {
|
|
|
2626
2622
|
)
|
|
2627
2623
|
}) : e;
|
|
2628
2624
|
}
|
|
2629
|
-
const
|
|
2625
|
+
const Zr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", Qr = /* @__PURE__ */ Ae({
|
|
2630
2626
|
__name: "WidgetBarchart",
|
|
2631
2627
|
props: /* @__PURE__ */ Oe({
|
|
2632
2628
|
tileIndex: {}
|
|
@@ -2692,7 +2688,10 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2692
2688
|
xAxisIndex: D.xAxisIndex,
|
|
2693
2689
|
emptyValueIndexes: t.value.hasNullableMetric ? D.xAxisIndex === void 0 ? On(j) : j[D.xAxisIndex] === null ? [D.xAxisIndex] : void 0 : void 0,
|
|
2694
2690
|
dash: !!D.isCompare,
|
|
2695
|
-
|
|
2691
|
+
// A SQL row only owns one X-axis bucket. Skip its generated nulls in
|
|
2692
|
+
// every other bucket so an earlier date cannot reserve a bar slot
|
|
2693
|
+
// ahead of the current date's SQL-sorted rows.
|
|
2694
|
+
skipNull: r.value,
|
|
2696
2695
|
minBarLength: void 0,
|
|
2697
2696
|
barPercentage: w.value ? xn : void 0,
|
|
2698
2697
|
backgroundColor: Z ? kt({
|
|
@@ -2758,7 +2757,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2758
2757
|
var oe, le, H, j, Z, se;
|
|
2759
2758
|
const z = fe("FmBarChart");
|
|
2760
2759
|
return K(), ie(Ve, null, [
|
|
2761
|
-
G("div",
|
|
2760
|
+
G("div", Zr, [
|
|
2762
2761
|
ot(D.$slots, "menu"),
|
|
2763
2762
|
G("div", {
|
|
2764
2763
|
class: De(["chart-layout", {
|
|
@@ -2826,7 +2825,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2826
2825
|
], 64);
|
|
2827
2826
|
};
|
|
2828
2827
|
}
|
|
2829
|
-
}),
|
|
2828
|
+
}), el = { class: "widget-content" }, tl = /* @__PURE__ */ Ae({
|
|
2830
2829
|
__name: "WidgetCircular",
|
|
2831
2830
|
props: /* @__PURE__ */ Oe({
|
|
2832
2831
|
tileIndex: {}
|
|
@@ -2836,7 +2835,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2836
2835
|
}),
|
|
2837
2836
|
emits: ["update:modelValue"],
|
|
2838
2837
|
setup(e) {
|
|
2839
|
-
const t = Ue(e, "modelValue"), { breakpoints: n } = $t(), o = M(null), a = M([]), { datalabels: r, legend: l } =
|
|
2838
|
+
const t = Ue(e, "modelValue"), { breakpoints: n } = $t(), o = M(null), a = M([]), { datalabels: r, legend: l } = Oo(t.value), u = h(() => {
|
|
2840
2839
|
const F = Array.isArray(t.value.data.datasets) ? t.value.data.datasets.map((k) => k.name) : [];
|
|
2841
2840
|
return F.length > 0 ? F : Array.isArray(t.value.data.metrics) ? t.value.data.metrics.map((k) => String(k)) : [];
|
|
2842
2841
|
}), c = h(() => {
|
|
@@ -2879,7 +2878,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2879
2878
|
return typeof F == "string" && F.trim().length > 0 ? F : t.value.legendColor ?? "#6b6b6b";
|
|
2880
2879
|
}), S = h(() => f.value), A = h(() => ({
|
|
2881
2880
|
display: !1
|
|
2882
|
-
})), E =
|
|
2881
|
+
})), E = Fa();
|
|
2883
2882
|
function I({ itemIndex: F }) {
|
|
2884
2883
|
if (a.value.includes(F)) {
|
|
2885
2884
|
a.value = a.value.filter(
|
|
@@ -2891,7 +2890,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2891
2890
|
}
|
|
2892
2891
|
return (F, k) => {
|
|
2893
2892
|
const T = fe("FmPieChart");
|
|
2894
|
-
return K(), ie("div",
|
|
2893
|
+
return K(), ie("div", el, [
|
|
2895
2894
|
ot(F.$slots, "menu"),
|
|
2896
2895
|
G("div", {
|
|
2897
2896
|
class: De(["chart-layout", {
|
|
@@ -2949,10 +2948,10 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2949
2948
|
]);
|
|
2950
2949
|
};
|
|
2951
2950
|
}
|
|
2952
|
-
}),
|
|
2951
|
+
}), nl = { class: "h-full flex flex-col gap-2 justify-end" }, ol = { class: "flex flex-wrap gap-x-4 gap-y-2" }, al = { class: "flex items-center gap-1" }, rl = ["title"], ll = { class: "fm-typo-en-body-lg-600" }, sl = {
|
|
2953
2952
|
class: "flex w-full h-3 shrink-0 rounded-full overflow-hidden",
|
|
2954
2953
|
style: { "background-color": "#f2f2f7" }
|
|
2955
|
-
},
|
|
2954
|
+
}, il = /* @__PURE__ */ Ae({
|
|
2956
2955
|
__name: "ScorecardStackedBar",
|
|
2957
2956
|
props: {
|
|
2958
2957
|
dimensions: {},
|
|
@@ -2972,13 +2971,13 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2972
2971
|
};
|
|
2973
2972
|
});
|
|
2974
2973
|
});
|
|
2975
|
-
return (o, a) => (K(), ie("div",
|
|
2976
|
-
G("div",
|
|
2974
|
+
return (o, a) => (K(), ie("div", nl, [
|
|
2975
|
+
G("div", ol, [
|
|
2977
2976
|
(K(!0), ie(Ve, null, dt(n.value, (r, l) => (K(), ie("div", {
|
|
2978
2977
|
key: l,
|
|
2979
2978
|
class: "flex flex-col gap-1 flex-1 min-w-[80px]"
|
|
2980
2979
|
}, [
|
|
2981
|
-
G("div",
|
|
2980
|
+
G("div", al, [
|
|
2982
2981
|
G("span", {
|
|
2983
2982
|
class: "inline-block w-3 h-3 rounded-sm shrink-0",
|
|
2984
2983
|
style: Me({ backgroundColor: r.color })
|
|
@@ -2986,12 +2985,12 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2986
2985
|
G("p", {
|
|
2987
2986
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary truncate",
|
|
2988
2987
|
title: r.label
|
|
2989
|
-
}, Ie(r.label), 9,
|
|
2988
|
+
}, Ie(r.label), 9, rl)
|
|
2990
2989
|
]),
|
|
2991
|
-
G("p",
|
|
2990
|
+
G("p", ll, Ie(r.display), 1)
|
|
2992
2991
|
]))), 128))
|
|
2993
2992
|
]),
|
|
2994
|
-
G("div",
|
|
2993
|
+
G("div", sl, [
|
|
2995
2994
|
(K(!0), ie(Ve, null, dt(n.value, (r, l) => (K(), ie("div", {
|
|
2996
2995
|
key: l,
|
|
2997
2996
|
style: Me({ width: `${r.width}%`, backgroundColor: r.color })
|
|
@@ -2999,13 +2998,13 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
2999
2998
|
])
|
|
3000
2999
|
]));
|
|
3001
3000
|
}
|
|
3002
|
-
}),
|
|
3001
|
+
}), ul = { class: "flex flex-col h-full" }, cl = { class: "fm-typo-en-title-md-600" }, dl = { class: "flex gap-2 mt-2" }, fl = { class: "fm-typo-en-body-md-600 text-fm-color-typo-primary" }, ml = {
|
|
3003
3002
|
key: 0,
|
|
3004
3003
|
class: "grow min-h-0 mt-2"
|
|
3005
|
-
},
|
|
3004
|
+
}, hl = {
|
|
3006
3005
|
key: 1,
|
|
3007
3006
|
class: "mt-2"
|
|
3008
|
-
},
|
|
3007
|
+
}, pl = /* @__PURE__ */ Ae({
|
|
3009
3008
|
__name: "WidgetScorecard",
|
|
3010
3009
|
props: {
|
|
3011
3010
|
modelValue: { required: !0 },
|
|
@@ -3051,10 +3050,10 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
3051
3050
|
return (S, A) => {
|
|
3052
3051
|
var x;
|
|
3053
3052
|
const E = fe("FmIcon"), I = fe("FmChip"), F = fe("FmTooltip"), k = fe("FmLineChart"), T = fe("FmBarChart");
|
|
3054
|
-
return K(), ie("div",
|
|
3053
|
+
return K(), ie("div", ul, [
|
|
3055
3054
|
ot(S.$slots, "menu"),
|
|
3056
|
-
G("p",
|
|
3057
|
-
G("div",
|
|
3055
|
+
G("p", cl, Ie(u.value), 1),
|
|
3056
|
+
G("div", dl, [
|
|
3058
3057
|
he(F, {
|
|
3059
3058
|
disabled: c.value === null,
|
|
3060
3059
|
placement: "right",
|
|
@@ -3064,7 +3063,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
3064
3063
|
content: Le(() => {
|
|
3065
3064
|
var V;
|
|
3066
3065
|
return [
|
|
3067
|
-
G("span",
|
|
3066
|
+
G("span", fl, Ie(`vs. ${(V = i(a).defaultCompareType) == null ? void 0 : V.split("_").join(" ")}`), 1)
|
|
3068
3067
|
];
|
|
3069
3068
|
}),
|
|
3070
3069
|
default: Le(() => [
|
|
@@ -3105,7 +3104,7 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
3105
3104
|
_: 1
|
|
3106
3105
|
}, 8, ["disabled"])
|
|
3107
3106
|
]),
|
|
3108
|
-
w.value ? (K(), ie("div",
|
|
3107
|
+
w.value ? (K(), ie("div", ml, [
|
|
3109
3108
|
f(w.value.type) === "line" ? (K(), me(k, {
|
|
3110
3109
|
key: 0,
|
|
3111
3110
|
class: "sparkline sparkline-chart",
|
|
@@ -3132,13 +3131,13 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
3132
3131
|
"x-cfg": { display: !1 },
|
|
3133
3132
|
tooltip: P.value,
|
|
3134
3133
|
"maintain-aspect-ratio": !1
|
|
3135
|
-
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (K(), me(
|
|
3134
|
+
}, null, 8, ["datasets", "x-axis", "y-cfg", "tooltip"])) : (K(), me(il, {
|
|
3136
3135
|
key: 2,
|
|
3137
3136
|
dimensions: w.value.dimensions,
|
|
3138
3137
|
values: ((x = w.value.datasets[0]) == null ? void 0 : x.values) ?? [],
|
|
3139
3138
|
"percent-of-total": w.value.percentOfTotal === !0
|
|
3140
3139
|
}, null, 8, ["dimensions", "values", "percent-of-total"]))
|
|
3141
|
-
])) : (K(), ie("div",
|
|
3140
|
+
])) : (K(), ie("div", hl, A[1] || (A[1] = [
|
|
3142
3141
|
G("div", { class: "sparkline" }, [
|
|
3143
3142
|
G("div", { class: "flex flex-col gap-8" }, [
|
|
3144
3143
|
G("div"),
|
|
@@ -3150,15 +3149,15 @@ const Qr = { class: "widget-content" }, xn = 1, po = "rgba(0, 0, 0, 0)", el = /*
|
|
|
3150
3149
|
]);
|
|
3151
3150
|
};
|
|
3152
3151
|
}
|
|
3153
|
-
}),
|
|
3154
|
-
function
|
|
3152
|
+
}), gl = {};
|
|
3153
|
+
function vl(e, t) {
|
|
3155
3154
|
const n = fe("FmMenuDivider");
|
|
3156
3155
|
return K(), me(n);
|
|
3157
3156
|
}
|
|
3158
|
-
const
|
|
3157
|
+
const yl = /* @__PURE__ */ _o(gl, [["render", vl]]), bl = "/assets/processTableData.worker-CKjQzarL.js", Cl = { class: "flex h-full flex-col" }, xl = { class: "my-4 shrink-0" }, wl = {
|
|
3159
3158
|
class: "border-b border-fm-color-neutral-gray-100 hover:bg-fm-color-opacity-sm",
|
|
3160
3159
|
style: { backgroundColor: "#f9f9f9" }
|
|
3161
|
-
},
|
|
3160
|
+
}, _l = { class: "font-bold" }, Sl = { class: "text-fm-color-neutral-gray-300" }, kl = /* @__PURE__ */ Ae({
|
|
3162
3161
|
__name: "WidgetTable",
|
|
3163
3162
|
props: /* @__PURE__ */ Oe({
|
|
3164
3163
|
tileIndex: {}
|
|
@@ -3168,7 +3167,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3168
3167
|
}),
|
|
3169
3168
|
emits: ["update:modelValue"],
|
|
3170
3169
|
setup(e) {
|
|
3171
|
-
const { t, te: n } = ft(), o = Ue(e, "modelValue"), { country: a } = wo(), { clearTileSorts: r, setTileSorts: l } =
|
|
3170
|
+
const { t, te: n } = ft(), o = Ue(e, "modelValue"), { country: a } = wo(), { clearTileSorts: r, setTileSorts: l } = da(), u = Rn(), c = e, f = M([]), w = M(null), W = h(() => {
|
|
3172
3171
|
var y;
|
|
3173
3172
|
return ((y = o.value.data) == null ? void 0 : y.columns) || [{ label: "", key: "" }];
|
|
3174
3173
|
}), C = h(() => {
|
|
@@ -3275,15 +3274,15 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3275
3274
|
rows: b,
|
|
3276
3275
|
columns: R,
|
|
3277
3276
|
filter: A.value ?? "",
|
|
3278
|
-
globalSorts:
|
|
3277
|
+
globalSorts: la(f.value).map((z) => ({
|
|
3279
3278
|
key: z.key,
|
|
3280
3279
|
type: z.type
|
|
3281
3280
|
})),
|
|
3282
3281
|
grandTotalPosition: I.value,
|
|
3283
3282
|
pageSize: F.value
|
|
3284
3283
|
};
|
|
3285
|
-
|
|
3286
|
-
y === V && (z != null && z.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(z.error), x.value = []) : x.value =
|
|
3284
|
+
fa(bl, D).then((z) => {
|
|
3285
|
+
y === V && (z != null && z.error ? (u.open({ message: "Failed to process table data. Please retry.", type: "error" }), console.log(z.error), x.value = []) : x.value = sa(z.data || []));
|
|
3287
3286
|
});
|
|
3288
3287
|
}
|
|
3289
3288
|
Te(
|
|
@@ -3375,8 +3374,8 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3375
3374
|
});
|
|
3376
3375
|
return (y, b) => {
|
|
3377
3376
|
const R = fe("FmTable");
|
|
3378
|
-
return K(), ie("div",
|
|
3379
|
-
G("div",
|
|
3377
|
+
return K(), ie("div", Cl, [
|
|
3378
|
+
G("div", xl, [
|
|
3380
3379
|
ot(y.$slots, "menu")
|
|
3381
3380
|
]),
|
|
3382
3381
|
he(R, {
|
|
@@ -3391,13 +3390,13 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3391
3390
|
class: "scrollbar-hide-table min-h-0 flex-1",
|
|
3392
3391
|
"pin-header-row": !0,
|
|
3393
3392
|
"auto-reset-page-index": !0
|
|
3394
|
-
},
|
|
3393
|
+
}, ra({ _: 2 }, [
|
|
3395
3394
|
I.value ? {
|
|
3396
3395
|
name: "pin-top",
|
|
3397
3396
|
fn: Le(() => [
|
|
3398
3397
|
(K(), me(bo(I.value === i(Ge).bottom ? "tfoot" : "tbody"), null, {
|
|
3399
3398
|
default: Le(() => [
|
|
3400
|
-
G("tr",
|
|
3399
|
+
G("tr", wl, [
|
|
3401
3400
|
(K(!0), ie(Ve, null, dt(k.value, (D, B) => {
|
|
3402
3401
|
var z;
|
|
3403
3402
|
return K(), ie("td", {
|
|
@@ -3417,8 +3416,8 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3417
3416
|
]),
|
|
3418
3417
|
style: Me(L())
|
|
3419
3418
|
}, [
|
|
3420
|
-
G("p",
|
|
3421
|
-
G("p",
|
|
3419
|
+
G("p", _l, Ie(D.rowType === "NUMERIC" ? i(Rt)(D.main) : D.main), 1),
|
|
3420
|
+
G("p", Sl, Ie(D.comparison ? D.rowType === "NUMERIC" ? `(${i(Rt)(D.comparison)})` : `(${D.comparison})` : ""), 1)
|
|
3422
3421
|
], 6)
|
|
3423
3422
|
], 4);
|
|
3424
3423
|
}), 128))
|
|
@@ -3433,7 +3432,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3433
3432
|
]);
|
|
3434
3433
|
};
|
|
3435
3434
|
}
|
|
3436
|
-
}),
|
|
3435
|
+
}), Tl = { class: "widget-content" }, Ll = /* @__PURE__ */ Ae({
|
|
3437
3436
|
__name: "WidgetStackBarChart",
|
|
3438
3437
|
props: /* @__PURE__ */ Oe({
|
|
3439
3438
|
tileIndex: {}
|
|
@@ -3508,7 +3507,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3508
3507
|
xAxisIndex: B.xAxisIndex,
|
|
3509
3508
|
emptyValueIndexes: t.value.hasNullableMetric ? B.xAxisIndex === void 0 ? On(de) : de[B.xAxisIndex] === null ? [B.xAxisIndex] : void 0 : void 0,
|
|
3510
3509
|
dash: !!B.isCompare,
|
|
3511
|
-
skipNull: l.value
|
|
3510
|
+
skipNull: l.value,
|
|
3512
3511
|
minBarLength: void 0,
|
|
3513
3512
|
grouped: f.value ? !1 : void 0,
|
|
3514
3513
|
order: f.value ? se : void 0,
|
|
@@ -3559,7 +3558,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3559
3558
|
var oe, le, H, j, Z, se;
|
|
3560
3559
|
const z = fe("FmBarChart");
|
|
3561
3560
|
return K(), ie(Ve, null, [
|
|
3562
|
-
G("div",
|
|
3561
|
+
G("div", Tl, [
|
|
3563
3562
|
ot(D.$slots, "menu"),
|
|
3564
3563
|
G("div", {
|
|
3565
3564
|
class: De(["chart-layout", {
|
|
@@ -3628,7 +3627,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3628
3627
|
], 64);
|
|
3629
3628
|
};
|
|
3630
3629
|
}
|
|
3631
|
-
}),
|
|
3630
|
+
}), Dl = { class: "widget-content" }, wn = 1, go = "rgba(0, 0, 0, 0)", Il = /* @__PURE__ */ Ae({
|
|
3632
3631
|
__name: "WidgetClusteredStackBarchart",
|
|
3633
3632
|
props: /* @__PURE__ */ Oe({
|
|
3634
3633
|
tileIndex: {}
|
|
@@ -3754,7 +3753,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3754
3753
|
xAxisIndex: Q.source.xAxisIndex,
|
|
3755
3754
|
emptyValueIndexes: t.value.hasNullableMetric ? Q.source.xAxisIndex === void 0 ? On(Q.values) : Q.values[Q.source.xAxisIndex] === null ? [Q.source.xAxisIndex] : void 0 : void 0,
|
|
3756
3755
|
dash: !!Q.source.isCompare,
|
|
3757
|
-
skipNull: l.value
|
|
3756
|
+
skipNull: l.value,
|
|
3758
3757
|
minBarLength: void 0,
|
|
3759
3758
|
barPercentage: W.value ? wn : void 0,
|
|
3760
3759
|
grouped: !0,
|
|
@@ -3811,7 +3810,7 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3811
3810
|
var se, de, ye, Q, xe, we;
|
|
3812
3811
|
const Z = fe("FmBarChart");
|
|
3813
3812
|
return K(), ie(Ve, null, [
|
|
3814
|
-
G("div",
|
|
3813
|
+
G("div", Dl, [
|
|
3815
3814
|
ot(H.$slots, "menu"),
|
|
3816
3815
|
G("div", {
|
|
3817
3816
|
class: De(["chart-layout", {
|
|
@@ -3881,23 +3880,23 @@ const bl = /* @__PURE__ */ _o(vl, [["render", yl]]), Cl = "/assets/processTableD
|
|
|
3881
3880
|
};
|
|
3882
3881
|
}
|
|
3883
3882
|
});
|
|
3884
|
-
function
|
|
3883
|
+
function Pl(e) {
|
|
3885
3884
|
const t = Reflect.get(e, "lineStyle"), n = Reflect.get(e, "dash") === !0;
|
|
3886
|
-
return
|
|
3885
|
+
return wa(t, n);
|
|
3887
3886
|
}
|
|
3888
|
-
function
|
|
3887
|
+
function Ko(e = "report-line-style-plugin") {
|
|
3889
3888
|
return {
|
|
3890
3889
|
id: e,
|
|
3891
3890
|
beforeDatasetsUpdate(t) {
|
|
3892
3891
|
var o;
|
|
3893
3892
|
(((o = t == null ? void 0 : t.data) == null ? void 0 : o.datasets) ?? []).forEach((a) => {
|
|
3894
3893
|
const r = a;
|
|
3895
|
-
Reflect.set(r, "borderDash",
|
|
3894
|
+
Reflect.set(r, "borderDash", Pl(r));
|
|
3896
3895
|
});
|
|
3897
3896
|
}
|
|
3898
3897
|
};
|
|
3899
3898
|
}
|
|
3900
|
-
const
|
|
3899
|
+
const Ml = { class: "widget-content" }, Bl = /* @__PURE__ */ Ae({
|
|
3901
3900
|
__name: "WidgetStackLineChart",
|
|
3902
3901
|
props: /* @__PURE__ */ Oe({
|
|
3903
3902
|
tileIndex: {}
|
|
@@ -3921,7 +3920,7 @@ const Bl = { class: "widget-content" }, Al = /* @__PURE__ */ Ae({
|
|
|
3921
3920
|
categories: c.value
|
|
3922
3921
|
})), w = h(() => ({
|
|
3923
3922
|
display: !1
|
|
3924
|
-
})), W = Wt("line"), C =
|
|
3923
|
+
})), W = Wt("line"), C = Ko("report-line-style-plugin-stack-line"), g = h(() => a.value.length > 0 ? [
|
|
3925
3924
|
...l.value.map((b, R) => {
|
|
3926
3925
|
var Q;
|
|
3927
3926
|
const D = zt({
|
|
@@ -4003,7 +4002,7 @@ const Bl = { class: "widget-content" }, Al = /* @__PURE__ */ Ae({
|
|
|
4003
4002
|
var B, z, oe, le, H, j;
|
|
4004
4003
|
const D = fe("FmLineChart");
|
|
4005
4004
|
return K(), ie(Ve, null, [
|
|
4006
|
-
G("div",
|
|
4005
|
+
G("div", Ml, [
|
|
4007
4006
|
ot(b.$slots, "menu"),
|
|
4008
4007
|
G("div", {
|
|
4009
4008
|
class: De(["chart-layout", {
|
|
@@ -4086,29 +4085,29 @@ const Bl = { class: "widget-content" }, Al = /* @__PURE__ */ Ae({
|
|
|
4086
4085
|
"col-span-11",
|
|
4087
4086
|
"col-span-12"
|
|
4088
4087
|
];
|
|
4089
|
-
function
|
|
4088
|
+
function Al(e) {
|
|
4090
4089
|
return Math.min(12, e);
|
|
4091
4090
|
}
|
|
4092
|
-
function
|
|
4091
|
+
function Fl(e) {
|
|
4093
4092
|
return Math.min(12, e * 2);
|
|
4094
4093
|
}
|
|
4095
|
-
function
|
|
4094
|
+
function Rl(e) {
|
|
4096
4095
|
return Math.min(12, e * 3);
|
|
4097
4096
|
}
|
|
4097
|
+
function Nl(e) {
|
|
4098
|
+
return Un[Al(e) - 1];
|
|
4099
|
+
}
|
|
4098
4100
|
function Vl(e) {
|
|
4099
4101
|
return Un[Fl(e) - 1];
|
|
4100
4102
|
}
|
|
4101
4103
|
function $l(e) {
|
|
4102
4104
|
return Un[Rl(e) - 1];
|
|
4103
4105
|
}
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
+
const zl = 150, Hl = 200;
|
|
4107
|
+
function Wl(e, t) {
|
|
4108
|
+
return (t === "SCORECARD" ? Hl : zl) * e;
|
|
4106
4109
|
}
|
|
4107
|
-
const
|
|
4108
|
-
function Ol(e, t) {
|
|
4109
|
-
return (t === "SCORECARD" ? Wl : Hl) * e;
|
|
4110
|
-
}
|
|
4111
|
-
const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
4110
|
+
const Ol = { class: "widget-content" }, Ul = /* @__PURE__ */ Ae({
|
|
4112
4111
|
__name: "WidgetLinechart",
|
|
4113
4112
|
props: /* @__PURE__ */ Oe({
|
|
4114
4113
|
tileIndex: {}
|
|
@@ -4132,7 +4131,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4132
4131
|
categories: f.value
|
|
4133
4132
|
})), W = h(() => ({
|
|
4134
4133
|
display: !1
|
|
4135
|
-
})), C = Wt("line"), g =
|
|
4134
|
+
})), C = Wt("line"), g = Ko("report-line-style-plugin-line"), p = h(() => o.value.length > 0 ? [
|
|
4136
4135
|
...l.value.map((R, D) => {
|
|
4137
4136
|
var _e;
|
|
4138
4137
|
const B = zt({
|
|
@@ -4216,7 +4215,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4216
4215
|
var z, oe, le, H, j, Z;
|
|
4217
4216
|
const B = fe("FmLineChart");
|
|
4218
4217
|
return K(), ie(Ve, null, [
|
|
4219
|
-
G("div",
|
|
4218
|
+
G("div", Ol, [
|
|
4220
4219
|
ot(R.$slots, "menu"),
|
|
4221
4220
|
G("div", {
|
|
4222
4221
|
class: De(["chart-layout", {
|
|
@@ -4284,7 +4283,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4284
4283
|
], 64);
|
|
4285
4284
|
};
|
|
4286
4285
|
}
|
|
4287
|
-
}),
|
|
4286
|
+
}), Kl = { class: "flex flex-col gap-16" }, Xl = { class: "flex flex-row" }, Yl = /* @__PURE__ */ Ae({
|
|
4288
4287
|
__name: "PdfOrientationDialog",
|
|
4289
4288
|
props: /* @__PURE__ */ Oe({
|
|
4290
4289
|
reportType: {},
|
|
@@ -4295,7 +4294,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4295
4294
|
}),
|
|
4296
4295
|
emits: ["update:modelValue"],
|
|
4297
4296
|
setup(e) {
|
|
4298
|
-
const { t } = ft(), { FmForm: n } =
|
|
4297
|
+
const { t } = ft(), { FmForm: n } = ya, o = e, a = M(), r = Ue(e, "modelValue"), l = M(!0), u = M(!1), c = Rn(), { selectedLocationIds: f, dateRange: w, timeRange: W } = Ft(cn()), C = M(bn.PORTRAIT);
|
|
4299
4298
|
function g() {
|
|
4300
4299
|
var L;
|
|
4301
4300
|
(L = a.value) == null || L.validateInputs();
|
|
@@ -4327,7 +4326,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4327
4326
|
"z-index": 10
|
|
4328
4327
|
}, {
|
|
4329
4328
|
"dialog-header": Le(() => P[3] || (P[3] = [
|
|
4330
|
-
|
|
4329
|
+
ia("Select Orientation")
|
|
4331
4330
|
])),
|
|
4332
4331
|
default: Le(() => [
|
|
4333
4332
|
he(i(n), {
|
|
@@ -4336,7 +4335,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4336
4335
|
onValidationSuccess: p
|
|
4337
4336
|
}, {
|
|
4338
4337
|
default: Le(() => [
|
|
4339
|
-
G("div",
|
|
4338
|
+
G("div", Kl, [
|
|
4340
4339
|
he(A, {
|
|
4341
4340
|
modelValue: C.value,
|
|
4342
4341
|
"onUpdate:modelValue": P[0] || (P[0] = (F) => C.value = F)
|
|
@@ -4354,7 +4353,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4354
4353
|
_: 1
|
|
4355
4354
|
}, 8, ["modelValue"])
|
|
4356
4355
|
]),
|
|
4357
|
-
G("div",
|
|
4356
|
+
G("div", Xl, [
|
|
4358
4357
|
P[4] || (P[4] = G("div", { class: "grow" }, null, -1)),
|
|
4359
4358
|
he(E, {
|
|
4360
4359
|
label: i(t)("report.common.cancel"),
|
|
@@ -4378,7 +4377,7 @@ const Ul = { class: "widget-content" }, Kl = /* @__PURE__ */ Ae({
|
|
|
4378
4377
|
};
|
|
4379
4378
|
}
|
|
4380
4379
|
});
|
|
4381
|
-
function
|
|
4380
|
+
function El(e) {
|
|
4382
4381
|
const { breakpoints: t } = $t(), { containerRef: n, isTable: o = M(!0) } = e;
|
|
4383
4382
|
let a = M(1), r = null, l = null, u = null, c = null, f = null, w = null;
|
|
4384
4383
|
function W() {
|
|
@@ -4555,7 +4554,7 @@ function ql(e) {
|
|
|
4555
4554
|
I();
|
|
4556
4555
|
}), { refresh: F, cleanup: I };
|
|
4557
4556
|
}
|
|
4558
|
-
function
|
|
4557
|
+
function ql(e) {
|
|
4559
4558
|
let t, n, o, a;
|
|
4560
4559
|
switch (e) {
|
|
4561
4560
|
case X.Table:
|
|
@@ -4587,7 +4586,7 @@ function Gl(e) {
|
|
|
4587
4586
|
joinDatasources: t
|
|
4588
4587
|
};
|
|
4589
4588
|
}
|
|
4590
|
-
function
|
|
4589
|
+
function fs(e, t) {
|
|
4591
4590
|
let n = 1, o = 1;
|
|
4592
4591
|
switch (e) {
|
|
4593
4592
|
case X.Scorecard:
|
|
@@ -4618,18 +4617,18 @@ function ms(e, t) {
|
|
|
4618
4617
|
widget: {
|
|
4619
4618
|
title: t || "New widget",
|
|
4620
4619
|
type: e,
|
|
4621
|
-
config:
|
|
4620
|
+
config: ql(e)
|
|
4622
4621
|
}
|
|
4623
4622
|
};
|
|
4624
4623
|
}
|
|
4625
|
-
function
|
|
4624
|
+
function ms(e, t) {
|
|
4626
4625
|
return e.filter((n, o) => o !== t);
|
|
4627
4626
|
}
|
|
4628
|
-
function
|
|
4627
|
+
function Gl(e) {
|
|
4629
4628
|
const t = [e.schemaName, e.name];
|
|
4630
4629
|
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();
|
|
4631
4630
|
}
|
|
4632
|
-
function
|
|
4631
|
+
function jl(e, t, n = []) {
|
|
4633
4632
|
var p, L, P, S, A, E;
|
|
4634
4633
|
if (!e || !Array.isArray(e.columns) || !Array.isArray(e.rows))
|
|
4635
4634
|
return [];
|
|
@@ -4670,16 +4669,16 @@ function Jl(e, t, n = []) {
|
|
|
4670
4669
|
return (F = I == null ? void 0 : I.cells) == null ? void 0 : F[g];
|
|
4671
4670
|
}).filter((I) => I != null);
|
|
4672
4671
|
}
|
|
4673
|
-
const
|
|
4672
|
+
const Jl = {
|
|
4674
4673
|
key: 0,
|
|
4675
4674
|
class: "h-full"
|
|
4676
|
-
},
|
|
4675
|
+
}, Zl = {
|
|
4677
4676
|
key: 1,
|
|
4678
4677
|
class: "grow"
|
|
4679
|
-
},
|
|
4678
|
+
}, Ql = {
|
|
4680
4679
|
key: 2,
|
|
4681
4680
|
class: "flex"
|
|
4682
|
-
},
|
|
4681
|
+
}, hs = /* @__PURE__ */ Ae({
|
|
4683
4682
|
__name: "DynamicWidget",
|
|
4684
4683
|
props: /* @__PURE__ */ Oe({
|
|
4685
4684
|
reportId: {
|
|
@@ -4722,7 +4721,7 @@ const Zl = {
|
|
|
4722
4721
|
const n = M(!0), o = Ue(e, "modelValue"), a = t, r = o.value.widget.config, { t: l, te: u, locale: c } = ft(), f = e, w = M(null), W = h(() => o.value.widget.type === X.Table), C = h(() => {
|
|
4723
4722
|
var _;
|
|
4724
4723
|
return (_ = w.value) == null ? void 0 : _.$el;
|
|
4725
|
-
}), { refresh: g } =
|
|
4724
|
+
}), { refresh: g } = El({
|
|
4726
4725
|
containerRef: C,
|
|
4727
4726
|
isTable: W
|
|
4728
4727
|
}), p = M(r.rollup), L = M(At()), P = M(r.drillDimension), S = h(() => {
|
|
@@ -4756,43 +4755,43 @@ const Zl = {
|
|
|
4756
4755
|
() => (Se == null ? void 0 : Se.value) > it("sm")[1] && (Se == null ? void 0 : Se.value) <= it("md")[1]
|
|
4757
4756
|
), hn = h(() => (Se == null ? void 0 : Se.value) > it("md")[1]), jt = h(() => {
|
|
4758
4757
|
const _ = o.value.size.width;
|
|
4759
|
-
return hn.value || mn.value ?
|
|
4758
|
+
return hn.value || mn.value ? Nl(_) : Pt.value ? Vl(_) : $l(_);
|
|
4760
4759
|
}), Xe = h(
|
|
4761
|
-
() =>
|
|
4760
|
+
() => ba.find((_) => _.type === o.value.widget.type)
|
|
4762
4761
|
), pn = h(
|
|
4763
4762
|
() => {
|
|
4764
4763
|
var _, ue, ke;
|
|
4765
4764
|
return I.value || le.value || (((_ = Xe.value) == null ? void 0 : _.showLabel) ?? !1) || (((ue = Xe.value) == null ? void 0 : ue.showDrillDimension) ?? !1) && Pe.value.length > 0 || (((ke = Xe.value) == null ? void 0 : ke.showRollup) ?? !1) && We.value.length > 0;
|
|
4766
4765
|
}
|
|
4767
4766
|
), et = _n(async () => {
|
|
4768
|
-
Gt.value = window.innerWidth, It.value =
|
|
4767
|
+
Gt.value = window.innerWidth, It.value = Yo(), L.value = At(), await yo(), g();
|
|
4769
4768
|
}), s = h(() => {
|
|
4770
|
-
if (
|
|
4769
|
+
if (Ca(te.value.type, m.value))
|
|
4771
4770
|
switch (o.value.widget.type) {
|
|
4772
4771
|
case X.BarChart:
|
|
4773
|
-
return
|
|
4772
|
+
return Qr;
|
|
4774
4773
|
case X.StackBarChart:
|
|
4775
|
-
return
|
|
4774
|
+
return Ll;
|
|
4776
4775
|
case X.ClusteredStackBarChart:
|
|
4777
|
-
return
|
|
4776
|
+
return Il;
|
|
4778
4777
|
case X.LineChart:
|
|
4779
|
-
return
|
|
4778
|
+
return Ul;
|
|
4780
4779
|
case X.StackLineChart:
|
|
4781
|
-
return
|
|
4780
|
+
return Bl;
|
|
4782
4781
|
case X.Circular:
|
|
4783
|
-
return
|
|
4782
|
+
return tl;
|
|
4784
4783
|
case X.Scorecard:
|
|
4785
|
-
return
|
|
4784
|
+
return pl;
|
|
4786
4785
|
case X.Spacer:
|
|
4787
|
-
return
|
|
4786
|
+
return yl;
|
|
4788
4787
|
case X.Table:
|
|
4789
|
-
return
|
|
4788
|
+
return kl;
|
|
4790
4789
|
default:
|
|
4791
4790
|
return Gn;
|
|
4792
4791
|
}
|
|
4793
4792
|
else
|
|
4794
4793
|
return Gn;
|
|
4795
|
-
}), m = M(null), { selectedLocationIds: d, dateRange: v, compareDateRange: $, timeRange: O } = Ft(cn()), J =
|
|
4794
|
+
}), m = M(null), { selectedLocationIds: d, dateRange: v, compareDateRange: $, timeRange: O } = Ft(cn()), J = ma(), { globalFilters: ee, lastAppliedTileFilterIds: U } = Ft(J), { businessDataVersion: ce } = Ft(cn()), ve = M(!0), te = h(() => {
|
|
4796
4795
|
const _ = JSON.parse(JSON.stringify(o.value.widget));
|
|
4797
4796
|
return {
|
|
4798
4797
|
..._,
|
|
@@ -4914,7 +4913,7 @@ const Zl = {
|
|
|
4914
4913
|
const { config: _ } = te.value;
|
|
4915
4914
|
return _.isDrillable ? _.dimensions.map((ue) => ({
|
|
4916
4915
|
label: ut(l, u, ue.label, "other"),
|
|
4917
|
-
value:
|
|
4916
|
+
value: Gl(ue)
|
|
4918
4917
|
})) : [];
|
|
4919
4918
|
}), Ne = h(
|
|
4920
4919
|
() => `${(d.value || []).join("|")}|${JSON.stringify(v.value)}|${JSON.stringify(
|
|
@@ -4988,9 +4987,9 @@ const Zl = {
|
|
|
4988
4987
|
const Jt = Rn(), {
|
|
4989
4988
|
setWidgetResult: gn,
|
|
4990
4989
|
startWidgetResultLoading: Zt,
|
|
4991
|
-
finishWidgetResultLoading:
|
|
4990
|
+
finishWidgetResultLoading: Xo,
|
|
4992
4991
|
clearAllWidgetResults: Kn
|
|
4993
|
-
} =
|
|
4992
|
+
} = ha();
|
|
4994
4993
|
let Qt;
|
|
4995
4994
|
async function vn() {
|
|
4996
4995
|
if (!f.isEditingStyle) {
|
|
@@ -5005,7 +5004,7 @@ const Zl = {
|
|
|
5005
5004
|
try {
|
|
5006
5005
|
n.value = !0, Qt && Qt.abort(), Qt = new AbortController();
|
|
5007
5006
|
const _ = Qt.signal, ue = ce.value, ke = await _n(
|
|
5008
|
-
|
|
5007
|
+
pa,
|
|
5009
5008
|
500
|
|
5010
5009
|
)({
|
|
5011
5010
|
widget: te.value,
|
|
@@ -5019,32 +5018,32 @@ const Zl = {
|
|
|
5019
5018
|
...(te.value.config.joinDatasources ?? []).flatMap((tt) => tt.dimensions ?? [])
|
|
5020
5019
|
];
|
|
5021
5020
|
Ye.value.length > 0 && Ye.value.forEach((tt) => {
|
|
5022
|
-
const nt =
|
|
5023
|
-
gn(
|
|
5021
|
+
const nt = jl(ke, tt, Ee), yn = Array.from(new Set(nt));
|
|
5022
|
+
gn(ga(tt, f.reportId), yn);
|
|
5024
5023
|
}), L.value = At(), setTimeout(() => g(), 100);
|
|
5025
5024
|
}
|
|
5026
5025
|
n.value = !1;
|
|
5027
5026
|
} catch (_) {
|
|
5028
5027
|
_.code !== "ERR_CANCELED" && (m.value = null, Jt.open({ message: `Invalid chart ${te.value.type}`, type: "error" }), console.log(_), n.value = !1);
|
|
5029
5028
|
} finally {
|
|
5030
|
-
|
|
5029
|
+
Xo();
|
|
5031
5030
|
}
|
|
5032
5031
|
}
|
|
5033
5032
|
}
|
|
5034
|
-
function
|
|
5033
|
+
function Yo() {
|
|
5035
5034
|
if (o.value.widget.type !== "SPACER")
|
|
5036
|
-
return `${
|
|
5035
|
+
return `${Wl(o.value.size.height, o.value.widget.type)}px`;
|
|
5037
5036
|
}
|
|
5038
|
-
function
|
|
5037
|
+
function Eo() {
|
|
5039
5038
|
const _ = S.value - 1;
|
|
5040
5039
|
_ >= 0 && (P.value = Pe.value[_].value);
|
|
5041
5040
|
}
|
|
5042
|
-
function
|
|
5041
|
+
function qo() {
|
|
5043
5042
|
const _ = S.value + 1;
|
|
5044
5043
|
_ >= 0 && _ < Pe.value.length && (P.value = Pe.value[_].value);
|
|
5045
5044
|
}
|
|
5046
|
-
const Xn = M(yt.EXCEL), Yn = M(),
|
|
5047
|
-
label:
|
|
5045
|
+
const Xn = M(yt.EXCEL), Yn = M(), Go = Object.values(yt).map((_) => ({
|
|
5046
|
+
label: va(_),
|
|
5048
5047
|
value: _,
|
|
5049
5048
|
onClick: async () => {
|
|
5050
5049
|
_ === yt.EXCEL || _ === yt.PDFFULLSIZE || _ === yt.PDFRECEIPT ? await xo({
|
|
@@ -5056,24 +5055,24 @@ const Zl = {
|
|
|
5056
5055
|
locationIds: d.value
|
|
5057
5056
|
}) : _ === yt.PDF && (Xn.value = _, Yn.value = f.index, Ke.value = !0);
|
|
5058
5057
|
}
|
|
5059
|
-
})),
|
|
5058
|
+
})), jo = f.flat || te.value.type === X.Spacer ? "flat" : "outlined", Jo = te.value.type === X.Spacer ? "p-0" : "p-16", Zo = h(() => f.flat ? "w-full" : jt.value);
|
|
5060
5059
|
return (_, ue) => {
|
|
5061
|
-
const ke = fe("FmTooltip"), Ee = fe("FmSearch"), tt = fe("FmCheckbox"), nt = fe("FmButton"), yn = fe("FmSelect"),
|
|
5062
|
-
return K(), me(
|
|
5060
|
+
const ke = fe("FmTooltip"), Ee = fe("FmSearch"), tt = fe("FmCheckbox"), nt = fe("FmButton"), yn = fe("FmSelect"), Qo = fe("FmMenuItem"), ea = fe("FmMenu"), ta = fe("FmForm"), na = fe("FmCircularProgress"), oa = fe("FmCard");
|
|
5061
|
+
return K(), me(oa, {
|
|
5063
5062
|
ref_key: "tileCard",
|
|
5064
5063
|
ref: w,
|
|
5065
|
-
class: De(`${
|
|
5066
|
-
variant: i(
|
|
5064
|
+
class: De(`${Zo.value} ${i(Jo)}`),
|
|
5065
|
+
variant: i(jo),
|
|
5067
5066
|
style: Me({ height: It.value })
|
|
5068
5067
|
}, {
|
|
5069
5068
|
default: Le(() => [
|
|
5070
|
-
he(
|
|
5069
|
+
he(Yl, {
|
|
5071
5070
|
modelValue: Ke.value,
|
|
5072
5071
|
"onUpdate:modelValue": ue[0] || (ue[0] = (vt) => Ke.value = vt),
|
|
5073
5072
|
"report-type": Xn.value,
|
|
5074
5073
|
index: Yn.value
|
|
5075
5074
|
}, null, 8, ["modelValue", "report-type", "index"]),
|
|
5076
|
-
n.value ? (K(), me(
|
|
5075
|
+
n.value ? (K(), me(na, { key: 1 })) : (K(), ie("div", Jl, [
|
|
5077
5076
|
(K(), me(bo(s.value), {
|
|
5078
5077
|
key: L.value,
|
|
5079
5078
|
modelValue: He.value,
|
|
@@ -5081,7 +5080,7 @@ const Zl = {
|
|
|
5081
5080
|
"tile-index": f.index
|
|
5082
5081
|
}, {
|
|
5083
5082
|
menu: Le(() => [
|
|
5084
|
-
pn.value ? (K(), me(
|
|
5083
|
+
pn.value ? (K(), me(ta, {
|
|
5085
5084
|
key: 0,
|
|
5086
5085
|
class: "flex items-center gap-2"
|
|
5087
5086
|
}, {
|
|
@@ -5119,27 +5118,27 @@ const Zl = {
|
|
|
5119
5118
|
modelValue: Dt.value,
|
|
5120
5119
|
"onUpdate:modelValue": ue[1] || (ue[1] = (qe) => Dt.value = qe),
|
|
5121
5120
|
class: "grow"
|
|
5122
|
-
}, null, 8, ["modelValue"])) : (K(), ie("div",
|
|
5123
|
-
|
|
5121
|
+
}, null, 8, ["modelValue"])) : (K(), ie("div", Zl)),
|
|
5122
|
+
ua(he(tt, {
|
|
5124
5123
|
modelValue: b.value,
|
|
5125
5124
|
"onUpdate:modelValue": ue[2] || (ue[2] = (qe) => b.value = qe),
|
|
5126
5125
|
label: "Label",
|
|
5127
5126
|
value: !1
|
|
5128
5127
|
}, null, 8, ["modelValue"]), [
|
|
5129
|
-
[
|
|
5128
|
+
[ca, (vt = Xe.value) == null ? void 0 : vt.showLabel]
|
|
5130
5129
|
]),
|
|
5131
|
-
(En = Xe.value) != null && En.showDrillDimension && Pe.value.length > 0 ? (K(), ie("div",
|
|
5130
|
+
(En = Xe.value) != null && En.showDrillDimension && Pe.value.length > 0 ? (K(), ie("div", Ql, [
|
|
5132
5131
|
he(nt, {
|
|
5133
5132
|
icon: "arrow_upward",
|
|
5134
5133
|
variant: "tertiary",
|
|
5135
5134
|
disabled: !A.value,
|
|
5136
|
-
onClick:
|
|
5135
|
+
onClick: Eo
|
|
5137
5136
|
}, null, 8, ["disabled"]),
|
|
5138
5137
|
he(nt, {
|
|
5139
5138
|
icon: "arrow_downward",
|
|
5140
5139
|
variant: "tertiary",
|
|
5141
5140
|
disabled: !E.value,
|
|
5142
|
-
onClick:
|
|
5141
|
+
onClick: qo
|
|
5143
5142
|
}, null, 8, ["disabled"])
|
|
5144
5143
|
])) : ge("", !0),
|
|
5145
5144
|
(qn = Xe.value) != null && qn.showRollup && We.value.length > 0 ? (K(), me(yn, {
|
|
@@ -5149,7 +5148,7 @@ const Zl = {
|
|
|
5149
5148
|
class: "w-[150px]",
|
|
5150
5149
|
items: We.value
|
|
5151
5150
|
}, null, 8, ["modelValue", "items"])) : ge("", !0),
|
|
5152
|
-
f.hideExport ? ge("", !0) : (K(), me(
|
|
5151
|
+
f.hideExport ? ge("", !0) : (K(), me(ea, {
|
|
5153
5152
|
key: 4,
|
|
5154
5153
|
shift: !0
|
|
5155
5154
|
}, {
|
|
@@ -5160,7 +5159,7 @@ const Zl = {
|
|
|
5160
5159
|
})
|
|
5161
5160
|
]),
|
|
5162
5161
|
default: Le(() => [
|
|
5163
|
-
(K(!0), ie(Ve, null, dt(i(
|
|
5162
|
+
(K(!0), ie(Ve, null, dt(i(Go), (qe) => (K(), me(Qo, {
|
|
5164
5163
|
key: qe.value,
|
|
5165
5164
|
label: qe.label,
|
|
5166
5165
|
onClick: qe.onClick
|
|
@@ -5186,17 +5185,17 @@ export {
|
|
|
5186
5185
|
Tn as L,
|
|
5187
5186
|
Ge as R,
|
|
5188
5187
|
Ce as S,
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5188
|
+
hs as _,
|
|
5189
|
+
Vl as a,
|
|
5190
|
+
$l as b,
|
|
5191
|
+
Nl as c,
|
|
5192
|
+
ql as d,
|
|
5194
5193
|
kn as e,
|
|
5195
5194
|
xt as f,
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5195
|
+
Gl as g,
|
|
5196
|
+
ms as h,
|
|
5197
|
+
fs as i,
|
|
5199
5198
|
So as j,
|
|
5200
|
-
|
|
5201
|
-
|
|
5199
|
+
ds as k,
|
|
5200
|
+
Wl as t
|
|
5202
5201
|
};
|