@sisense/sdk-ui-vue 2.16.1 → 2.18.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/ai.cjs +79 -79
- package/dist/ai.js +53 -53
- package/dist/index.cjs +1 -1
- package/dist/index.js +735 -695
- package/dist/packages/sdk-ui-vue/src/components/charts/pivot-table.d.ts +48 -15
- package/dist/packages/sdk-ui-vue/src/components/widgets/pivot-table-widget.d.ts +46 -9
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +4 -4
- package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-jtd-widget.d.ts +85 -0
- package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/utilities/widget-model-translator.d.ts +26 -1
- package/dist/{use-tracking-13883d10.js → use-tracking-6074c5d5.js} +94402 -89624
- package/dist/use-tracking-8c41e6ec.cjs +3092 -0
- package/package.json +2 -2
- package/dist/use-tracking-9d38eeb8.cjs +0 -3089
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as It,
|
|
2
|
-
import {
|
|
3
|
-
import { defineComponent as m, watch as
|
|
4
|
-
const
|
|
1
|
+
import { s as It, h as ln, a as b, b as cn, w as dn, O as fn, m as pn, x as gn, g as hn, y as mn, _ as yn, E as bn, c as Sn, S as On, T as vn, C as xn, k as Cn, d as wn, e as Pn, M as Dn, D as jn, v as Fn, A as An, r as En, f as Ln, i as Nn, l as Rn, j as Tn, Z as Mn, n as q, o as Fe, p as $n, q as Je, t as _t, u as In, z as _n, B as kn, F as kt, G as Bt, H as it, I as Ut, J as xe, K as qt, L as Bn, N as W, P as V, Q as R, R as A, U as S, V as Wt, W as Un, X as Qe, Y as qn, $ as Z, a0 as Wn, a1 as X, a2 as fe, a3 as Vn, a4 as Hn, a5 as Kn, a6 as Gn, a7 as ee, a8 as zn, a9 as Jn, aa as Qn, ab as Yn, ac as Zn, ad as Xn, ae as er, af as tr, ag as nr, ah as rr, ai as sr, aj as at, ak as ir, al as ar, am as or, an as ur, ao as ot, ap as lr, aq as cr, ar as dr, as as fr, at as pr, au as gr, av as hr, aw as mr, ax as yr, ay as br, az as Sr, aA as Or, aB as te, aC as B } from "./use-tracking-6074c5d5.js";
|
|
2
|
+
import { aF as Pu, aD as Du, aE as ju, aG as Fu, aH as Au } from "./use-tracking-6074c5d5.js";
|
|
3
|
+
import { defineComponent as m, watch as E, toRefs as D, ref as k, onBeforeUnmount as ne, createApp as vr, toValue as xr, computed as We, openBlock as Cr, createElementBlock as wr, renderSlot as Re, createVNode as ut, unref as T, createElementVNode as Pr } from "vue";
|
|
4
|
+
const Dr = m({
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
7
7
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -41,7 +41,7 @@ const Cr = m({
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup: (e, { slots: t }) => It(ln, e, t, [])
|
|
44
|
-
}),
|
|
44
|
+
}), Po = m({
|
|
45
45
|
props: {
|
|
46
46
|
/**
|
|
47
47
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -108,7 +108,7 @@ const Cr = m({
|
|
|
108
108
|
onDataPointsSelected: Function
|
|
109
109
|
},
|
|
110
110
|
setup: (e) => b(cn, e)
|
|
111
|
-
}),
|
|
111
|
+
}), Do = m({
|
|
112
112
|
props: {
|
|
113
113
|
/**
|
|
114
114
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -175,7 +175,7 @@ const Cr = m({
|
|
|
175
175
|
styleOptions: Object
|
|
176
176
|
},
|
|
177
177
|
setup: (e) => b(dn, e)
|
|
178
|
-
}),
|
|
178
|
+
}), jo = m({
|
|
179
179
|
props: {
|
|
180
180
|
/**
|
|
181
181
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -242,7 +242,7 @@ const Cr = m({
|
|
|
242
242
|
onDataPointsSelected: Function
|
|
243
243
|
},
|
|
244
244
|
setup: (e) => b(fn, e)
|
|
245
|
-
}),
|
|
245
|
+
}), Fo = m({
|
|
246
246
|
props: {
|
|
247
247
|
/**
|
|
248
248
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -309,7 +309,7 @@ const Cr = m({
|
|
|
309
309
|
styleOptions: Object
|
|
310
310
|
},
|
|
311
311
|
setup: (e) => b(pn, e)
|
|
312
|
-
}),
|
|
312
|
+
}), Ao = m({
|
|
313
313
|
props: {
|
|
314
314
|
/**
|
|
315
315
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -376,7 +376,7 @@ const Cr = m({
|
|
|
376
376
|
styleOptions: Object
|
|
377
377
|
},
|
|
378
378
|
setup: (e) => b(gn, e)
|
|
379
|
-
}),
|
|
379
|
+
}), Eo = m({
|
|
380
380
|
props: {
|
|
381
381
|
/**
|
|
382
382
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -443,7 +443,7 @@ const Cr = m({
|
|
|
443
443
|
styleOptions: Object
|
|
444
444
|
},
|
|
445
445
|
setup: (e) => b(hn, e)
|
|
446
|
-
}),
|
|
446
|
+
}), Lo = m({
|
|
447
447
|
props: {
|
|
448
448
|
/**
|
|
449
449
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -510,7 +510,7 @@ const Cr = m({
|
|
|
510
510
|
styleOptions: Object
|
|
511
511
|
},
|
|
512
512
|
setup: (e) => b(mn, e)
|
|
513
|
-
}),
|
|
513
|
+
}), No = m({
|
|
514
514
|
props: {
|
|
515
515
|
/**
|
|
516
516
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -577,7 +577,7 @@ const Cr = m({
|
|
|
577
577
|
styleOptions: Object
|
|
578
578
|
},
|
|
579
579
|
setup: (e) => b(yn, e)
|
|
580
|
-
}),
|
|
580
|
+
}), Ro = m({
|
|
581
581
|
props: {
|
|
582
582
|
/**
|
|
583
583
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -616,7 +616,7 @@ const Cr = m({
|
|
|
616
616
|
onDataReady: Function
|
|
617
617
|
},
|
|
618
618
|
setup: (e) => b(bn, e)
|
|
619
|
-
}),
|
|
619
|
+
}), To = m({
|
|
620
620
|
props: {
|
|
621
621
|
/**
|
|
622
622
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -652,10 +652,22 @@ const Cr = m({
|
|
|
652
652
|
*
|
|
653
653
|
* @category Representation
|
|
654
654
|
*/
|
|
655
|
-
styleOptions: Object
|
|
655
|
+
styleOptions: Object,
|
|
656
|
+
/**
|
|
657
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.onDataPointClick}
|
|
658
|
+
*
|
|
659
|
+
* @category Callbacks
|
|
660
|
+
*/
|
|
661
|
+
onDataPointClick: Function,
|
|
662
|
+
/**
|
|
663
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.onDataPointContextMenu}
|
|
664
|
+
*
|
|
665
|
+
* @category Callbacks
|
|
666
|
+
*/
|
|
667
|
+
onDataPointContextMenu: Function
|
|
656
668
|
},
|
|
657
669
|
setup: (e) => b(Sn, e)
|
|
658
|
-
}),
|
|
670
|
+
}), Mo = m({
|
|
659
671
|
props: {
|
|
660
672
|
/**
|
|
661
673
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -722,7 +734,7 @@ const Cr = m({
|
|
|
722
734
|
styleOptions: Object
|
|
723
735
|
},
|
|
724
736
|
setup: (e) => b(On, e)
|
|
725
|
-
}),
|
|
737
|
+
}), $o = m({
|
|
726
738
|
props: {
|
|
727
739
|
/**
|
|
728
740
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -789,7 +801,7 @@ const Cr = m({
|
|
|
789
801
|
styleOptions: Object
|
|
790
802
|
},
|
|
791
803
|
setup: (e) => b(vn, e)
|
|
792
|
-
}),
|
|
804
|
+
}), Io = m({
|
|
793
805
|
props: {
|
|
794
806
|
/**
|
|
795
807
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -856,7 +868,7 @@ const Cr = m({
|
|
|
856
868
|
styleOptions: Object
|
|
857
869
|
},
|
|
858
870
|
setup: (e) => b(xn, e)
|
|
859
|
-
}),
|
|
871
|
+
}), _o = m({
|
|
860
872
|
props: {
|
|
861
873
|
/**
|
|
862
874
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -905,7 +917,7 @@ const Cr = m({
|
|
|
905
917
|
onDataReady: Function
|
|
906
918
|
},
|
|
907
919
|
setup: (e) => b(Cn, e)
|
|
908
|
-
}),
|
|
920
|
+
}), ko = m({
|
|
909
921
|
props: {
|
|
910
922
|
/**
|
|
911
923
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -985,7 +997,7 @@ const Cr = m({
|
|
|
985
997
|
refreshCounter: Number
|
|
986
998
|
},
|
|
987
999
|
setup: (e) => b(wn, e)
|
|
988
|
-
}),
|
|
1000
|
+
}), Bo = m({
|
|
989
1001
|
props: {
|
|
990
1002
|
/**
|
|
991
1003
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1051,8 +1063,8 @@ const Cr = m({
|
|
|
1051
1063
|
*/
|
|
1052
1064
|
onDataPointsSelected: Function
|
|
1053
1065
|
},
|
|
1054
|
-
setup: (e) => b(
|
|
1055
|
-
}),
|
|
1066
|
+
setup: (e) => b(Pn, e)
|
|
1067
|
+
}), Uo = m({
|
|
1056
1068
|
props: {
|
|
1057
1069
|
/**
|
|
1058
1070
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1100,8 +1112,8 @@ const Cr = m({
|
|
|
1100
1112
|
*/
|
|
1101
1113
|
onDataPointClick: Function
|
|
1102
1114
|
},
|
|
1103
|
-
setup: (e) => b(
|
|
1104
|
-
}),
|
|
1115
|
+
setup: (e) => b(Dn, e)
|
|
1116
|
+
}), qo = m({
|
|
1105
1117
|
props: {
|
|
1106
1118
|
/**
|
|
1107
1119
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1149,8 +1161,8 @@ const Cr = m({
|
|
|
1149
1161
|
*/
|
|
1150
1162
|
onDataPointClick: Object
|
|
1151
1163
|
},
|
|
1152
|
-
setup: (e) => b(
|
|
1153
|
-
}),
|
|
1164
|
+
setup: (e) => b(jn, e)
|
|
1165
|
+
}), Wo = m({
|
|
1154
1166
|
props: {
|
|
1155
1167
|
/**
|
|
1156
1168
|
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
@@ -1217,7 +1229,7 @@ const Cr = m({
|
|
|
1217
1229
|
onDataPointsSelected: Function
|
|
1218
1230
|
},
|
|
1219
1231
|
setup: (e) => b(Fn, e)
|
|
1220
|
-
}),
|
|
1232
|
+
}), Vo = m({
|
|
1221
1233
|
props: {
|
|
1222
1234
|
/**
|
|
1223
1235
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1284,7 +1296,7 @@ const Cr = m({
|
|
|
1284
1296
|
styleOptions: Object
|
|
1285
1297
|
},
|
|
1286
1298
|
setup: (e) => b(An, e)
|
|
1287
|
-
}),
|
|
1299
|
+
}), Ho = m({
|
|
1288
1300
|
props: {
|
|
1289
1301
|
/**
|
|
1290
1302
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1344,8 +1356,8 @@ const Cr = m({
|
|
|
1344
1356
|
*/
|
|
1345
1357
|
onEdit: Function
|
|
1346
1358
|
},
|
|
1347
|
-
setup: (e) => b(
|
|
1348
|
-
}),
|
|
1359
|
+
setup: (e) => b(En, e)
|
|
1360
|
+
}), Ko = m({
|
|
1349
1361
|
props: {
|
|
1350
1362
|
/**
|
|
1351
1363
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1392,8 +1404,8 @@ const Cr = m({
|
|
|
1392
1404
|
*/
|
|
1393
1405
|
onEdit: Function
|
|
1394
1406
|
},
|
|
1395
|
-
setup: (e) => b(
|
|
1396
|
-
}),
|
|
1407
|
+
setup: (e) => b(Ln, e)
|
|
1408
|
+
}), Go = m({
|
|
1397
1409
|
props: {
|
|
1398
1410
|
/**
|
|
1399
1411
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1434,7 +1446,7 @@ const Cr = m({
|
|
|
1434
1446
|
onEdit: Function
|
|
1435
1447
|
},
|
|
1436
1448
|
setup: (e) => b(Nn, e)
|
|
1437
|
-
}),
|
|
1449
|
+
}), zo = m({
|
|
1438
1450
|
props: {
|
|
1439
1451
|
/**
|
|
1440
1452
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1480,7 +1492,7 @@ const Cr = m({
|
|
|
1480
1492
|
onEdit: Function
|
|
1481
1493
|
},
|
|
1482
1494
|
setup: (e) => b(Rn, e)
|
|
1483
|
-
}),
|
|
1495
|
+
}), Jo = m({
|
|
1484
1496
|
props: {
|
|
1485
1497
|
/**
|
|
1486
1498
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1510,7 +1522,7 @@ const Cr = m({
|
|
|
1510
1522
|
onEdit: Function
|
|
1511
1523
|
},
|
|
1512
1524
|
setup: (e) => b(Tn, e)
|
|
1513
|
-
}),
|
|
1525
|
+
}), Qo = m({
|
|
1514
1526
|
props: {
|
|
1515
1527
|
/**
|
|
1516
1528
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1542,7 +1554,7 @@ const Cr = m({
|
|
|
1542
1554
|
}
|
|
1543
1555
|
},
|
|
1544
1556
|
setup: (e) => b(Mn, e)
|
|
1545
|
-
}),
|
|
1557
|
+
}), jr = {
|
|
1546
1558
|
type: "logger",
|
|
1547
1559
|
log(e) {
|
|
1548
1560
|
this.output("log", e);
|
|
@@ -1564,7 +1576,7 @@ class Ce {
|
|
|
1564
1576
|
}
|
|
1565
1577
|
init(t) {
|
|
1566
1578
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1567
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
1579
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || jr, this.options = n, this.debug = n.debug;
|
|
1568
1580
|
}
|
|
1569
1581
|
log() {
|
|
1570
1582
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
@@ -1628,7 +1640,7 @@ class Ae {
|
|
|
1628
1640
|
});
|
|
1629
1641
|
}
|
|
1630
1642
|
}
|
|
1631
|
-
function
|
|
1643
|
+
function ue() {
|
|
1632
1644
|
let e, t;
|
|
1633
1645
|
const n = new Promise((r, s) => {
|
|
1634
1646
|
e = r, t = s;
|
|
@@ -1638,7 +1650,7 @@ function ie() {
|
|
|
1638
1650
|
function lt(e) {
|
|
1639
1651
|
return e == null ? "" : "" + e;
|
|
1640
1652
|
}
|
|
1641
|
-
function
|
|
1653
|
+
function Fr(e, t, n) {
|
|
1642
1654
|
e.forEach((r) => {
|
|
1643
1655
|
t[r] && (n[r] = t[r]);
|
|
1644
1656
|
});
|
|
@@ -1669,7 +1681,7 @@ function ct(e, t, n) {
|
|
|
1669
1681
|
} = Ye(e, t, Object);
|
|
1670
1682
|
r[s] = n;
|
|
1671
1683
|
}
|
|
1672
|
-
function
|
|
1684
|
+
function Ar(e, t, n, r) {
|
|
1673
1685
|
const {
|
|
1674
1686
|
obj: s,
|
|
1675
1687
|
k: i
|
|
@@ -1684,19 +1696,19 @@ function we(e, t) {
|
|
|
1684
1696
|
if (n)
|
|
1685
1697
|
return n[r];
|
|
1686
1698
|
}
|
|
1687
|
-
function
|
|
1699
|
+
function Er(e, t, n) {
|
|
1688
1700
|
const r = we(e, n);
|
|
1689
1701
|
return r !== void 0 ? r : we(t, n);
|
|
1690
1702
|
}
|
|
1691
|
-
function
|
|
1703
|
+
function Vt(e, t, n) {
|
|
1692
1704
|
for (const r in t)
|
|
1693
|
-
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) :
|
|
1705
|
+
r !== "__proto__" && r !== "constructor" && (r in e ? typeof e[r] == "string" || e[r] instanceof String || typeof t[r] == "string" || t[r] instanceof String ? n && (e[r] = t[r]) : Vt(e[r], t[r], n) : e[r] = t[r]);
|
|
1694
1706
|
return e;
|
|
1695
1707
|
}
|
|
1696
|
-
function
|
|
1708
|
+
function Q(e) {
|
|
1697
1709
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1698
1710
|
}
|
|
1699
|
-
var
|
|
1711
|
+
var Lr = {
|
|
1700
1712
|
"&": "&",
|
|
1701
1713
|
"<": "<",
|
|
1702
1714
|
">": ">",
|
|
@@ -1704,13 +1716,13 @@ var Fr = {
|
|
|
1704
1716
|
"'": "'",
|
|
1705
1717
|
"/": "/"
|
|
1706
1718
|
};
|
|
1707
|
-
function
|
|
1708
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
|
1719
|
+
function Nr(e) {
|
|
1720
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Lr[t]) : e;
|
|
1709
1721
|
}
|
|
1710
|
-
const
|
|
1711
|
-
function
|
|
1722
|
+
const Rr = [" ", ",", "?", "!", ";"];
|
|
1723
|
+
function Tr(e, t, n) {
|
|
1712
1724
|
t = t || "", n = n || "";
|
|
1713
|
-
const r =
|
|
1725
|
+
const r = Rr.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
1714
1726
|
if (r.length === 0)
|
|
1715
1727
|
return !0;
|
|
1716
1728
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
@@ -1721,7 +1733,7 @@ function Er(e, t, n) {
|
|
|
1721
1733
|
}
|
|
1722
1734
|
return i;
|
|
1723
1735
|
}
|
|
1724
|
-
function
|
|
1736
|
+
function Pe(e, t) {
|
|
1725
1737
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
1726
1738
|
if (!e)
|
|
1727
1739
|
return;
|
|
@@ -1747,13 +1759,13 @@ function De(e, t) {
|
|
|
1747
1759
|
return u[o];
|
|
1748
1760
|
}
|
|
1749
1761
|
const c = r.slice(i + a).join(n);
|
|
1750
|
-
return c ?
|
|
1762
|
+
return c ? Pe(u, c, n) : void 0;
|
|
1751
1763
|
}
|
|
1752
1764
|
s = s[r[i]];
|
|
1753
1765
|
}
|
|
1754
1766
|
return s;
|
|
1755
1767
|
}
|
|
1756
|
-
function
|
|
1768
|
+
function De(e) {
|
|
1757
1769
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
1758
1770
|
}
|
|
1759
1771
|
class dt extends Ae {
|
|
@@ -1777,7 +1789,7 @@ class dt extends Ae {
|
|
|
1777
1789
|
let o = [t, n];
|
|
1778
1790
|
r && typeof r != "string" && (o = o.concat(r)), r && typeof r == "string" && (o = o.concat(i ? r.split(i) : r)), t.indexOf(".") > -1 && (o = t.split("."));
|
|
1779
1791
|
const u = we(this.data, o);
|
|
1780
|
-
return u || !a || typeof r != "string" ? u :
|
|
1792
|
+
return u || !a || typeof r != "string" ? u : Pe(this.data && this.data[t] && this.data[t][n], r, i);
|
|
1781
1793
|
}
|
|
1782
1794
|
addResource(t, n, r, s) {
|
|
1783
1795
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -1803,7 +1815,7 @@ class dt extends Ae {
|
|
|
1803
1815
|
}, o = [t, n];
|
|
1804
1816
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
|
1805
1817
|
let u = we(this.data, o) || {};
|
|
1806
|
-
s ?
|
|
1818
|
+
s ? Vt(u, r, i) : u = {
|
|
1807
1819
|
...u,
|
|
1808
1820
|
...r
|
|
1809
1821
|
}, ct(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
|
@@ -1842,10 +1854,10 @@ var Ht = {
|
|
|
1842
1854
|
}
|
|
1843
1855
|
};
|
|
1844
1856
|
const ft = {};
|
|
1845
|
-
class
|
|
1857
|
+
class je extends Ae {
|
|
1846
1858
|
constructor(t) {
|
|
1847
1859
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1848
|
-
super(),
|
|
1860
|
+
super(), Fr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = _.create("translator");
|
|
1849
1861
|
}
|
|
1850
1862
|
changeLanguage(t) {
|
|
1851
1863
|
t && (this.language = t);
|
|
@@ -1864,7 +1876,7 @@ class Pe extends Ae {
|
|
|
1864
1876
|
r === void 0 && (r = ":");
|
|
1865
1877
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
1866
1878
|
let i = n.ns || this.options.defaultNS || [];
|
|
1867
|
-
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
1879
|
+
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Tr(t, r, s);
|
|
1868
1880
|
if (a && !o) {
|
|
1869
1881
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
1870
1882
|
if (u && u.length > 0)
|
|
@@ -1922,53 +1934,53 @@ class Pe extends Ae {
|
|
|
1922
1934
|
return s ? (f.res = C, f) : C;
|
|
1923
1935
|
}
|
|
1924
1936
|
if (i) {
|
|
1925
|
-
const C = y === "[object Array]",
|
|
1937
|
+
const C = y === "[object Array]", L = C ? [] : {}, $ = C ? p : g;
|
|
1926
1938
|
for (const F in l)
|
|
1927
1939
|
if (Object.prototype.hasOwnProperty.call(l, F)) {
|
|
1928
1940
|
const pe = `${$}${i}${F}`;
|
|
1929
|
-
|
|
1941
|
+
L[F] = this.translate(pe, {
|
|
1930
1942
|
...n,
|
|
1931
1943
|
joinArrays: !1,
|
|
1932
1944
|
ns: o
|
|
1933
|
-
}),
|
|
1945
|
+
}), L[F] === pe && (L[F] = l[F]);
|
|
1934
1946
|
}
|
|
1935
|
-
l =
|
|
1947
|
+
l = L;
|
|
1936
1948
|
}
|
|
1937
1949
|
} else if (w && typeof x == "string" && y === "[object Array]")
|
|
1938
1950
|
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
|
1939
1951
|
else {
|
|
1940
|
-
let C = !1,
|
|
1941
|
-
const $ = n.count !== void 0 && typeof n.count != "string", F =
|
|
1952
|
+
let C = !1, L = !1;
|
|
1953
|
+
const $ = n.count !== void 0 && typeof n.count != "string", F = je.hasDefaultValue(n), pe = $ ? this.pluralResolver.getSuffix(c, n.count, n) : "", on = n.ordinal && $ ? this.pluralResolver.getSuffix(c, n.count, {
|
|
1942
1954
|
ordinal: !1
|
|
1943
|
-
}) : "",
|
|
1944
|
-
!this.isValidLookup(l) && F && (C = !0, l =
|
|
1945
|
-
const un = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) &&
|
|
1946
|
-
if (
|
|
1947
|
-
if (this.logger.log(
|
|
1948
|
-
const
|
|
1955
|
+
}) : "", ie = n[`defaultValue${pe}`] || n[`defaultValue${on}`] || n.defaultValue;
|
|
1956
|
+
!this.isValidLookup(l) && F && (C = !0, l = ie), this.isValidLookup(l) || (L = !0, l = a);
|
|
1957
|
+
const un = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && L ? void 0 : l, ae = F && ie !== l && this.options.updateMissing;
|
|
1958
|
+
if (L || C || ae) {
|
|
1959
|
+
if (this.logger.log(ae ? "updateKey" : "missingKey", c, u, a, ae ? ie : l), i) {
|
|
1960
|
+
const N = this.resolve(a, {
|
|
1949
1961
|
...n,
|
|
1950
1962
|
keySeparator: !1
|
|
1951
1963
|
});
|
|
1952
|
-
|
|
1964
|
+
N && N.res && this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.");
|
|
1953
1965
|
}
|
|
1954
|
-
let
|
|
1966
|
+
let oe = [];
|
|
1955
1967
|
const ge = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
1956
1968
|
if (this.options.saveMissingTo === "fallback" && ge && ge[0])
|
|
1957
|
-
for (let
|
|
1958
|
-
|
|
1969
|
+
for (let N = 0; N < ge.length; N++)
|
|
1970
|
+
oe.push(ge[N]);
|
|
1959
1971
|
else
|
|
1960
|
-
this.options.saveMissingTo === "all" ?
|
|
1961
|
-
const nt = (
|
|
1972
|
+
this.options.saveMissingTo === "all" ? oe = this.languageUtils.toResolveHierarchy(n.lng || this.language) : oe.push(n.lng || this.language);
|
|
1973
|
+
const nt = (N, J, rt) => {
|
|
1962
1974
|
const st = F && rt !== l ? rt : un;
|
|
1963
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
|
1975
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(N, u, J, st, ae, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(N, u, J, st, ae, n), this.emit("missingKey", N, u, J, l);
|
|
1964
1976
|
};
|
|
1965
|
-
this.options.saveMissing && (this.options.saveMissingPlurals && $ ?
|
|
1966
|
-
this.pluralResolver.getSuffixes(
|
|
1967
|
-
nt([
|
|
1977
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? oe.forEach((N) => {
|
|
1978
|
+
this.pluralResolver.getSuffixes(N, n).forEach((J) => {
|
|
1979
|
+
nt([N], a + J, n[`defaultValue${J}`] || ie);
|
|
1968
1980
|
});
|
|
1969
|
-
}) : nt(
|
|
1981
|
+
}) : nt(oe, a, ie));
|
|
1970
1982
|
}
|
|
1971
|
-
l = this.extendTranslation(l, t, n, f, r),
|
|
1983
|
+
l = this.extendTranslation(l, t, n, f, r), L && l === a && this.options.appendNamespaceToMissingKey && (l = `${u}:${a}`), (L || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, C ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
|
|
1972
1984
|
}
|
|
1973
1985
|
return s ? (f.res = l, f) : l;
|
|
1974
1986
|
}
|
|
@@ -2036,15 +2048,15 @@ class Pe extends Ae {
|
|
|
2036
2048
|
else {
|
|
2037
2049
|
let C;
|
|
2038
2050
|
l && (C = this.pluralResolver.getSuffix(x, n.count, n));
|
|
2039
|
-
const
|
|
2040
|
-
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d +
|
|
2051
|
+
const L = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
2052
|
+
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d + L)), p) {
|
|
2041
2053
|
const F = `${d}${this.options.contextSeparator}${n.context}`;
|
|
2042
|
-
w.push(F), l && (w.push(F + C), n.ordinal && C.indexOf($) === 0 && w.push(F + C.replace($, this.options.pluralSeparator)), g && w.push(F +
|
|
2054
|
+
w.push(F), l && (w.push(F + C), n.ordinal && C.indexOf($) === 0 && w.push(F + C.replace($, this.options.pluralSeparator)), g && w.push(F + L));
|
|
2043
2055
|
}
|
|
2044
2056
|
}
|
|
2045
|
-
let
|
|
2046
|
-
for (;
|
|
2047
|
-
this.isValidLookup(r) || (i =
|
|
2057
|
+
let P;
|
|
2058
|
+
for (; P = w.pop(); )
|
|
2059
|
+
this.isValidLookup(r) || (i = P, r = this.getResource(x, h, P, n));
|
|
2048
2060
|
}));
|
|
2049
2061
|
});
|
|
2050
2062
|
}), {
|
|
@@ -2078,13 +2090,13 @@ class pt {
|
|
|
2078
2090
|
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = _.create("languageUtils");
|
|
2079
2091
|
}
|
|
2080
2092
|
getScriptPartFromCode(t) {
|
|
2081
|
-
if (t =
|
|
2093
|
+
if (t = De(t), !t || t.indexOf("-") < 0)
|
|
2082
2094
|
return null;
|
|
2083
2095
|
const n = t.split("-");
|
|
2084
2096
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
2085
2097
|
}
|
|
2086
2098
|
getLanguagePartFromCode(t) {
|
|
2087
|
-
if (t =
|
|
2099
|
+
if (t = De(t), !t || t.indexOf("-") < 0)
|
|
2088
2100
|
return t;
|
|
2089
2101
|
const n = t.split("-");
|
|
2090
2102
|
return this.formatLanguageCode(n[0]);
|
|
@@ -2142,7 +2154,7 @@ class pt {
|
|
|
2142
2154
|
}), s;
|
|
2143
2155
|
}
|
|
2144
2156
|
}
|
|
2145
|
-
let
|
|
2157
|
+
let Mr = [{
|
|
2146
2158
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2147
2159
|
nr: [1, 2],
|
|
2148
2160
|
fc: 1
|
|
@@ -2234,7 +2246,7 @@ let Nr = [{
|
|
|
2234
2246
|
lngs: ["he", "iw"],
|
|
2235
2247
|
nr: [1, 2, 20, 21],
|
|
2236
2248
|
fc: 22
|
|
2237
|
-
}],
|
|
2249
|
+
}], $r = {
|
|
2238
2250
|
1: function(e) {
|
|
2239
2251
|
return +(e > 1);
|
|
2240
2252
|
},
|
|
@@ -2302,7 +2314,7 @@ let Nr = [{
|
|
|
2302
2314
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
2303
2315
|
}
|
|
2304
2316
|
};
|
|
2305
|
-
const
|
|
2317
|
+
const Ir = ["v1", "v2", "v3"], _r = ["v4"], gt = {
|
|
2306
2318
|
zero: 0,
|
|
2307
2319
|
one: 1,
|
|
2308
2320
|
two: 2,
|
|
@@ -2310,21 +2322,21 @@ const Tr = ["v1", "v2", "v3"], Mr = ["v4"], gt = {
|
|
|
2310
2322
|
many: 4,
|
|
2311
2323
|
other: 5
|
|
2312
2324
|
};
|
|
2313
|
-
function
|
|
2325
|
+
function kr() {
|
|
2314
2326
|
const e = {};
|
|
2315
|
-
return
|
|
2327
|
+
return Mr.forEach((t) => {
|
|
2316
2328
|
t.lngs.forEach((n) => {
|
|
2317
2329
|
e[n] = {
|
|
2318
2330
|
numbers: t.nr,
|
|
2319
|
-
plurals:
|
|
2331
|
+
plurals: $r[t.fc]
|
|
2320
2332
|
};
|
|
2321
2333
|
});
|
|
2322
2334
|
}), e;
|
|
2323
2335
|
}
|
|
2324
|
-
class
|
|
2336
|
+
class Br {
|
|
2325
2337
|
constructor(t) {
|
|
2326
2338
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2327
|
-
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
2339
|
+
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON || _r.includes(this.options.compatibilityJSON)) && (typeof Intl > "u" || !Intl.PluralRules) && (this.options.compatibilityJSON = "v3", this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")), this.rules = kr();
|
|
2328
2340
|
}
|
|
2329
2341
|
addRule(t, n) {
|
|
2330
2342
|
this.rules[t] = n;
|
|
@@ -2333,7 +2345,7 @@ class Ir {
|
|
|
2333
2345
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2334
2346
|
if (this.shouldUseIntlApi())
|
|
2335
2347
|
try {
|
|
2336
|
-
return new Intl.PluralRules(
|
|
2348
|
+
return new Intl.PluralRules(De(t), {
|
|
2337
2349
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
2338
2350
|
});
|
|
2339
2351
|
} catch {
|
|
@@ -2368,14 +2380,14 @@ class Ir {
|
|
|
2368
2380
|
return this.options.compatibilityJSON === "v1" ? s === 1 ? "" : typeof s == "number" ? `_plural_${s.toString()}` : i() : this.options.compatibilityJSON === "v2" || this.options.simplifyPluralSuffix && t.numbers.length === 2 && t.numbers[0] === 1 ? i() : this.options.prepend && r.toString() ? this.options.prepend + r.toString() : r.toString();
|
|
2369
2381
|
}
|
|
2370
2382
|
shouldUseIntlApi() {
|
|
2371
|
-
return !
|
|
2383
|
+
return !Ir.includes(this.options.compatibilityJSON);
|
|
2372
2384
|
}
|
|
2373
2385
|
}
|
|
2374
2386
|
function ht(e, t, n) {
|
|
2375
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
|
2376
|
-
return !i && s && typeof n == "string" && (i =
|
|
2387
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Er(e, t, n);
|
|
2388
|
+
return !i && s && typeof n == "string" && (i = Pe(e, n, r), i === void 0 && (i = Pe(t, n, r))), i;
|
|
2377
2389
|
}
|
|
2378
|
-
class
|
|
2390
|
+
class Ur {
|
|
2379
2391
|
constructor() {
|
|
2380
2392
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2381
2393
|
this.logger = _.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
@@ -2386,7 +2398,7 @@ class _r {
|
|
|
2386
2398
|
escapeValue: !0
|
|
2387
2399
|
});
|
|
2388
2400
|
const n = t.interpolation;
|
|
2389
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
|
2401
|
+
this.escape = n.escape !== void 0 ? n.escape : Nr, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? Q(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? Q(n.suffix) : n.suffixEscaped || "}}", this.formatSeparator = n.formatSeparator ? n.formatSeparator : n.formatSeparator || ",", this.unescapePrefix = n.unescapeSuffix ? "" : n.unescapePrefix || "-", this.unescapeSuffix = this.unescapePrefix ? "" : n.unescapeSuffix || "", this.nestingPrefix = n.nestingPrefix ? Q(n.nestingPrefix) : n.nestingPrefixEscaped || Q("$t("), this.nestingSuffix = n.nestingSuffix ? Q(n.nestingSuffix) : n.nestingSuffixEscaped || Q(")"), this.nestingOptionsSeparator = n.nestingOptionsSeparator ? n.nestingOptionsSeparator : n.nestingOptionsSeparator || ",", this.maxReplaces = n.maxReplaces ? n.maxReplaces : 1e3, this.alwaysFormat = n.alwaysFormat !== void 0 ? n.alwaysFormat : !1, this.resetRegExp();
|
|
2390
2402
|
}
|
|
2391
2403
|
reset() {
|
|
2392
2404
|
this.options && this.init(this.options);
|
|
@@ -2492,7 +2504,7 @@ class _r {
|
|
|
2492
2504
|
return t;
|
|
2493
2505
|
}
|
|
2494
2506
|
}
|
|
2495
|
-
function
|
|
2507
|
+
function qr(e) {
|
|
2496
2508
|
let t = e.toLowerCase().trim();
|
|
2497
2509
|
const n = {};
|
|
2498
2510
|
if (e.indexOf("(") > -1) {
|
|
@@ -2516,10 +2528,10 @@ function Y(e) {
|
|
|
2516
2528
|
return function(r, s, i) {
|
|
2517
2529
|
const a = s + JSON.stringify(i);
|
|
2518
2530
|
let o = t[a];
|
|
2519
|
-
return o || (o = e(
|
|
2531
|
+
return o || (o = e(De(s), i), t[a] = o), o(r);
|
|
2520
2532
|
};
|
|
2521
2533
|
}
|
|
2522
|
-
class
|
|
2534
|
+
class Wr {
|
|
2523
2535
|
constructor() {
|
|
2524
2536
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2525
2537
|
this.logger = _.create("formatter"), this.options = t, this.formats = {
|
|
@@ -2574,7 +2586,7 @@ class Br {
|
|
|
2574
2586
|
const {
|
|
2575
2587
|
formatName: c,
|
|
2576
2588
|
formatOptions: d
|
|
2577
|
-
} =
|
|
2589
|
+
} = qr(u);
|
|
2578
2590
|
if (this.formats[c]) {
|
|
2579
2591
|
let f = o;
|
|
2580
2592
|
try {
|
|
@@ -2594,10 +2606,10 @@ class Br {
|
|
|
2594
2606
|
}, t);
|
|
2595
2607
|
}
|
|
2596
2608
|
}
|
|
2597
|
-
function
|
|
2609
|
+
function Vr(e, t) {
|
|
2598
2610
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2599
2611
|
}
|
|
2600
|
-
class
|
|
2612
|
+
class Hr extends Ae {
|
|
2601
2613
|
constructor(t, n, r) {
|
|
2602
2614
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
2603
2615
|
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger = _.create("backendConnector"), this.waitingReads = [], this.maxParallelReads = s.maxParallelReads || 10, this.readingCalls = 0, this.maxRetries = s.maxRetries >= 0 ? s.maxRetries : 5, this.retryTimeout = s.retryTimeout >= 1 ? s.retryTimeout : 350, this.state = {}, this.queue = [], this.backend && this.backend.init && this.backend.init(r, s.backend, s);
|
|
@@ -2628,7 +2640,7 @@ class qr extends Ae {
|
|
|
2628
2640
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
|
2629
2641
|
const o = {};
|
|
2630
2642
|
this.queue.forEach((u) => {
|
|
2631
|
-
|
|
2643
|
+
Ar(u.loaded, [i], a), Vr(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
2632
2644
|
o[c] || (o[c] = {});
|
|
2633
2645
|
const d = u.loaded[c];
|
|
2634
2646
|
d.length && d.forEach((f) => {
|
|
@@ -2795,17 +2807,17 @@ function yt(e) {
|
|
|
2795
2807
|
}
|
|
2796
2808
|
function he() {
|
|
2797
2809
|
}
|
|
2798
|
-
function
|
|
2810
|
+
function Kr(e) {
|
|
2799
2811
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
2800
2812
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
2801
2813
|
});
|
|
2802
2814
|
}
|
|
2803
|
-
class
|
|
2815
|
+
class le extends Ae {
|
|
2804
2816
|
constructor() {
|
|
2805
2817
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2806
2818
|
if (super(), this.options = yt(t), this.services = {}, this.logger = _, this.modules = {
|
|
2807
2819
|
external: []
|
|
2808
|
-
},
|
|
2820
|
+
}, Kr(this), n && !this.isInitialized && !t.isClone) {
|
|
2809
2821
|
if (!this.options.initImmediate)
|
|
2810
2822
|
return this.init(t, n), this;
|
|
2811
2823
|
setTimeout(() => {
|
|
@@ -2832,21 +2844,21 @@ class ae extends Ae {
|
|
|
2832
2844
|
if (!this.options.isClone) {
|
|
2833
2845
|
this.modules.logger ? _.init(i(this.modules.logger), this.options) : _.init(null, this.options);
|
|
2834
2846
|
let d;
|
|
2835
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
2847
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Wr);
|
|
2836
2848
|
const f = new pt(this.options);
|
|
2837
2849
|
this.store = new dt(this.options.resources, this.options);
|
|
2838
2850
|
const l = this.services;
|
|
2839
|
-
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new
|
|
2851
|
+
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Br(f, {
|
|
2840
2852
|
prepend: this.options.pluralSeparator,
|
|
2841
2853
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
2842
2854
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2843
|
-
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new
|
|
2855
|
+
}), d && (!this.options.interpolation.format || this.options.interpolation.format === s.interpolation.format) && (l.formatter = i(d), l.formatter.init(l, this.options), this.options.interpolation.format = l.formatter.format.bind(l.formatter)), l.interpolator = new Ur(this.options), l.utils = {
|
|
2844
2856
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2845
|
-
}, l.backendConnector = new
|
|
2857
|
+
}, l.backendConnector = new Hr(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
|
2846
2858
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2847
2859
|
y[h - 1] = arguments[h];
|
|
2848
2860
|
t.emit(g, ...y);
|
|
2849
|
-
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new
|
|
2861
|
+
}), this.modules.languageDetector && (l.languageDetector = i(this.modules.languageDetector), l.languageDetector.init && l.languageDetector.init(l, this.options.detection, this.options)), this.modules.i18nFormat && (l.i18nFormat = i(this.modules.i18nFormat), l.i18nFormat.init && l.i18nFormat.init(this)), this.translator = new je(this.services, this.options), this.translator.on("*", function(g) {
|
|
2850
2862
|
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2851
2863
|
y[h - 1] = arguments[h];
|
|
2852
2864
|
t.emit(g, ...y);
|
|
@@ -2867,7 +2879,7 @@ class ae extends Ae {
|
|
|
2867
2879
|
return t.store[d](...arguments), t;
|
|
2868
2880
|
};
|
|
2869
2881
|
});
|
|
2870
|
-
const u =
|
|
2882
|
+
const u = ue(), c = () => {
|
|
2871
2883
|
const d = (f, l) => {
|
|
2872
2884
|
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(l), r(f, l);
|
|
2873
2885
|
};
|
|
@@ -2897,7 +2909,7 @@ class ae extends Ae {
|
|
|
2897
2909
|
r(null);
|
|
2898
2910
|
}
|
|
2899
2911
|
reloadResources(t, n, r) {
|
|
2900
|
-
const s =
|
|
2912
|
+
const s = ue();
|
|
2901
2913
|
return t || (t = this.languages), n || (n = this.options.ns), r || (r = he), this.services.backendConnector.reload(t, n, (i) => {
|
|
2902
2914
|
s.resolve(), r(i);
|
|
2903
2915
|
}), s;
|
|
@@ -2922,7 +2934,7 @@ class ae extends Ae {
|
|
|
2922
2934
|
changeLanguage(t, n) {
|
|
2923
2935
|
var r = this;
|
|
2924
2936
|
this.isLanguageChangingTo = t;
|
|
2925
|
-
const s =
|
|
2937
|
+
const s = ue();
|
|
2926
2938
|
this.emit("languageChanging", t);
|
|
2927
2939
|
const i = (u) => {
|
|
2928
2940
|
this.language = u, this.languages = this.services.languageUtils.toResolveHierarchy(u), this.resolvedLanguage = void 0, this.setResolvedLanguage(u);
|
|
@@ -2990,7 +3002,7 @@ class ae extends Ae {
|
|
|
2990
3002
|
return !!(this.hasResourceBundle(r, t) || !this.services.backendConnector.backend || this.options.resources && !this.options.partialBundledLanguages || a(r, t) && (!s || a(i, t)));
|
|
2991
3003
|
}
|
|
2992
3004
|
loadNamespaces(t, n) {
|
|
2993
|
-
const r =
|
|
3005
|
+
const r = ue();
|
|
2994
3006
|
return this.options.ns ? (typeof t == "string" && (t = [t]), t.forEach((s) => {
|
|
2995
3007
|
this.options.ns.indexOf(s) < 0 && this.options.ns.push(s);
|
|
2996
3008
|
}), this.loadResources((s) => {
|
|
@@ -2998,7 +3010,7 @@ class ae extends Ae {
|
|
|
2998
3010
|
}), r) : (n && n(), Promise.resolve());
|
|
2999
3011
|
}
|
|
3000
3012
|
loadLanguages(t, n) {
|
|
3001
|
-
const r =
|
|
3013
|
+
const r = ue();
|
|
3002
3014
|
typeof t == "string" && (t = [t]);
|
|
3003
3015
|
const s = this.options.preload || [], i = t.filter((a) => s.indexOf(a) < 0);
|
|
3004
3016
|
return i.length ? (this.options.preload = s.concat(i), this.loadResources((a) => {
|
|
@@ -3013,7 +3025,7 @@ class ae extends Ae {
|
|
|
3013
3025
|
}
|
|
3014
3026
|
static createInstance() {
|
|
3015
3027
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
3016
|
-
return new
|
|
3028
|
+
return new le(t, n);
|
|
3017
3029
|
}
|
|
3018
3030
|
cloneInstance() {
|
|
3019
3031
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he;
|
|
@@ -3023,14 +3035,14 @@ class ae extends Ae {
|
|
|
3023
3035
|
...this.options,
|
|
3024
3036
|
...t,
|
|
3025
3037
|
isClone: !0
|
|
3026
|
-
}, i = new
|
|
3038
|
+
}, i = new le(s);
|
|
3027
3039
|
return (t.debug !== void 0 || t.prefix !== void 0) && (i.logger = i.logger.clone(t)), ["store", "services", "language"].forEach((o) => {
|
|
3028
3040
|
i[o] = this[o];
|
|
3029
3041
|
}), i.services = {
|
|
3030
3042
|
...this.services
|
|
3031
3043
|
}, i.services.utils = {
|
|
3032
3044
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
3033
|
-
}, r && (i.store = new dt(this.store.data, s), i.services.resourceStore = i.store), i.translator = new
|
|
3045
|
+
}, r && (i.store = new dt(this.store.data, s), i.services.resourceStore = i.store), i.translator = new je(i.services, s), i.translator.on("*", function(o) {
|
|
3034
3046
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
|
3035
3047
|
c[d - 1] = arguments[d];
|
|
3036
3048
|
i.emit(o, ...c);
|
|
@@ -3048,32 +3060,32 @@ class ae extends Ae {
|
|
|
3048
3060
|
};
|
|
3049
3061
|
}
|
|
3050
3062
|
}
|
|
3051
|
-
const
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
const
|
|
3063
|
+
const j = le.createInstance();
|
|
3064
|
+
j.createInstance = le.createInstance;
|
|
3065
|
+
j.createInstance;
|
|
3066
|
+
j.dir;
|
|
3067
|
+
j.init;
|
|
3068
|
+
j.loadResources;
|
|
3069
|
+
j.reloadResources;
|
|
3070
|
+
j.use;
|
|
3071
|
+
j.changeLanguage;
|
|
3072
|
+
j.getFixedT;
|
|
3073
|
+
j.t;
|
|
3074
|
+
j.exists;
|
|
3075
|
+
j.setDefaultNamespace;
|
|
3076
|
+
j.hasLoadedNamespace;
|
|
3077
|
+
j.loadNamespaces;
|
|
3078
|
+
j.loadLanguages;
|
|
3079
|
+
const Gr = {
|
|
3068
3080
|
error: "Error"
|
|
3069
|
-
},
|
|
3081
|
+
}, zr = {
|
|
3070
3082
|
error: "Помилка"
|
|
3071
|
-
}, bt = "common",
|
|
3072
|
-
en:
|
|
3073
|
-
uk:
|
|
3074
|
-
}, I =
|
|
3083
|
+
}, bt = "common", Jr = {
|
|
3084
|
+
en: Gr,
|
|
3085
|
+
uk: zr
|
|
3086
|
+
}, I = j.createInstance({
|
|
3075
3087
|
defaultNS: bt,
|
|
3076
|
-
resources:
|
|
3088
|
+
resources: Yr(Jr, bt),
|
|
3077
3089
|
lng: "en",
|
|
3078
3090
|
fallbackLng: "en"
|
|
3079
3091
|
}), Kt = {
|
|
@@ -3081,7 +3093,7 @@ const Wr = {
|
|
|
3081
3093
|
initPromise: I.init().then(() => I)
|
|
3082
3094
|
}, me = /* @__PURE__ */ new Map();
|
|
3083
3095
|
me.set("common", Kt);
|
|
3084
|
-
const
|
|
3096
|
+
const Qr = (e) => {
|
|
3085
3097
|
if (me.has(e.namespace))
|
|
3086
3098
|
return me.get(e.namespace);
|
|
3087
3099
|
if (e.plugins)
|
|
@@ -3104,15 +3116,15 @@ const zr = (e) => {
|
|
|
3104
3116
|
const s = { initPromise: n, i18nextInstance: t };
|
|
3105
3117
|
return me.set(e.namespace, s), s;
|
|
3106
3118
|
};
|
|
3107
|
-
function
|
|
3119
|
+
function Yr(e, t) {
|
|
3108
3120
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3109
3121
|
[t]: e[r]
|
|
3110
3122
|
}, n), {});
|
|
3111
3123
|
}
|
|
3112
|
-
function
|
|
3124
|
+
function Zr(e) {
|
|
3113
3125
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
|
3114
3126
|
}
|
|
3115
|
-
const
|
|
3127
|
+
const Xr = {
|
|
3116
3128
|
errors: {
|
|
3117
3129
|
measure: {
|
|
3118
3130
|
unsupportedType: "Unsupported measure type",
|
|
@@ -3138,7 +3150,7 @@ const Jr = {
|
|
|
3138
3150
|
},
|
|
3139
3151
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
|
3140
3152
|
}
|
|
3141
|
-
},
|
|
3153
|
+
}, es = {
|
|
3142
3154
|
errors: {
|
|
3143
3155
|
measure: {
|
|
3144
3156
|
unsupportedType: "Непідтримуваний тип measure",
|
|
@@ -3164,88 +3176,88 @@ const Jr = {
|
|
|
3164
3176
|
},
|
|
3165
3177
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
|
3166
3178
|
}
|
|
3167
|
-
},
|
|
3168
|
-
en:
|
|
3169
|
-
uk:
|
|
3179
|
+
}, ts = "sdkData", ns = {
|
|
3180
|
+
en: Xr,
|
|
3181
|
+
uk: es
|
|
3170
3182
|
};
|
|
3171
|
-
function
|
|
3172
|
-
return
|
|
3173
|
-
resource:
|
|
3183
|
+
function rs() {
|
|
3184
|
+
return Qr({
|
|
3185
|
+
resource: ns,
|
|
3174
3186
|
language: "en",
|
|
3175
|
-
namespace:
|
|
3187
|
+
namespace: ts
|
|
3176
3188
|
});
|
|
3177
3189
|
}
|
|
3178
|
-
|
|
3179
|
-
function
|
|
3190
|
+
rs();
|
|
3191
|
+
function ss() {
|
|
3180
3192
|
this.__data__ = [], this.size = 0;
|
|
3181
3193
|
}
|
|
3182
|
-
function
|
|
3194
|
+
function Gt(e, t) {
|
|
3183
3195
|
return e === t || e !== e && t !== t;
|
|
3184
3196
|
}
|
|
3185
|
-
function
|
|
3197
|
+
function Ee(e, t) {
|
|
3186
3198
|
for (var n = e.length; n--; )
|
|
3187
|
-
if (
|
|
3199
|
+
if (Gt(e[n][0], t))
|
|
3188
3200
|
return n;
|
|
3189
3201
|
return -1;
|
|
3190
3202
|
}
|
|
3191
|
-
var
|
|
3192
|
-
function
|
|
3193
|
-
var t = this.__data__, n =
|
|
3203
|
+
var is = Array.prototype, as = is.splice;
|
|
3204
|
+
function os(e) {
|
|
3205
|
+
var t = this.__data__, n = Ee(t, e);
|
|
3194
3206
|
if (n < 0)
|
|
3195
3207
|
return !1;
|
|
3196
3208
|
var r = t.length - 1;
|
|
3197
|
-
return n == r ? t.pop() :
|
|
3209
|
+
return n == r ? t.pop() : as.call(t, n, 1), --this.size, !0;
|
|
3198
3210
|
}
|
|
3199
|
-
function
|
|
3200
|
-
var t = this.__data__, n =
|
|
3211
|
+
function us(e) {
|
|
3212
|
+
var t = this.__data__, n = Ee(t, e);
|
|
3201
3213
|
return n < 0 ? void 0 : t[n][1];
|
|
3202
3214
|
}
|
|
3203
|
-
function
|
|
3204
|
-
return
|
|
3215
|
+
function ls(e) {
|
|
3216
|
+
return Ee(this.__data__, e) > -1;
|
|
3205
3217
|
}
|
|
3206
|
-
function
|
|
3207
|
-
var n = this.__data__, r =
|
|
3218
|
+
function cs(e, t) {
|
|
3219
|
+
var n = this.__data__, r = Ee(n, e);
|
|
3208
3220
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
3209
3221
|
}
|
|
3210
|
-
function
|
|
3222
|
+
function U(e) {
|
|
3211
3223
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3212
3224
|
for (this.clear(); ++t < n; ) {
|
|
3213
3225
|
var r = e[t];
|
|
3214
3226
|
this.set(r[0], r[1]);
|
|
3215
3227
|
}
|
|
3216
3228
|
}
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
function
|
|
3223
|
-
this.__data__ = new
|
|
3229
|
+
U.prototype.clear = ss;
|
|
3230
|
+
U.prototype.delete = os;
|
|
3231
|
+
U.prototype.get = us;
|
|
3232
|
+
U.prototype.has = ls;
|
|
3233
|
+
U.prototype.set = cs;
|
|
3234
|
+
function ds() {
|
|
3235
|
+
this.__data__ = new U(), this.size = 0;
|
|
3224
3236
|
}
|
|
3225
|
-
function
|
|
3237
|
+
function fs(e) {
|
|
3226
3238
|
var t = this.__data__, n = t.delete(e);
|
|
3227
3239
|
return this.size = t.size, n;
|
|
3228
3240
|
}
|
|
3229
|
-
function
|
|
3241
|
+
function ps(e) {
|
|
3230
3242
|
return this.__data__.get(e);
|
|
3231
3243
|
}
|
|
3232
|
-
function
|
|
3244
|
+
function gs(e) {
|
|
3233
3245
|
return this.__data__.has(e);
|
|
3234
3246
|
}
|
|
3235
|
-
var
|
|
3236
|
-
const Me =
|
|
3247
|
+
var hs = q["__core-js_shared__"];
|
|
3248
|
+
const Me = hs;
|
|
3237
3249
|
var St = function() {
|
|
3238
3250
|
var e = /[^.]+$/.exec(Me && Me.keys && Me.keys.IE_PROTO || "");
|
|
3239
3251
|
return e ? "Symbol(src)_1." + e : "";
|
|
3240
3252
|
}();
|
|
3241
|
-
function
|
|
3253
|
+
function ms(e) {
|
|
3242
3254
|
return !!St && St in e;
|
|
3243
3255
|
}
|
|
3244
|
-
var
|
|
3245
|
-
function
|
|
3256
|
+
var ys = Function.prototype, bs = ys.toString;
|
|
3257
|
+
function G(e) {
|
|
3246
3258
|
if (e != null) {
|
|
3247
3259
|
try {
|
|
3248
|
-
return
|
|
3260
|
+
return bs.call(e);
|
|
3249
3261
|
} catch {
|
|
3250
3262
|
}
|
|
3251
3263
|
try {
|
|
@@ -3255,51 +3267,51 @@ function z(e) {
|
|
|
3255
3267
|
}
|
|
3256
3268
|
return "";
|
|
3257
3269
|
}
|
|
3258
|
-
var
|
|
3259
|
-
"^" +
|
|
3270
|
+
var Ss = /[\\^$.*+?()[\]{}|]/g, Os = /^\[object .+?Constructor\]$/, vs = Function.prototype, xs = Object.prototype, Cs = vs.toString, ws = xs.hasOwnProperty, Ps = RegExp(
|
|
3271
|
+
"^" + Cs.call(ws).replace(Ss, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3260
3272
|
);
|
|
3261
|
-
function
|
|
3262
|
-
if (!Fe(e) ||
|
|
3273
|
+
function Ds(e) {
|
|
3274
|
+
if (!Fe(e) || ms(e))
|
|
3263
3275
|
return !1;
|
|
3264
|
-
var t = $n(e) ?
|
|
3265
|
-
return t.test(
|
|
3276
|
+
var t = $n(e) ? Ps : Os;
|
|
3277
|
+
return t.test(G(e));
|
|
3266
3278
|
}
|
|
3267
|
-
function
|
|
3279
|
+
function js(e, t) {
|
|
3268
3280
|
return e == null ? void 0 : e[t];
|
|
3269
3281
|
}
|
|
3270
|
-
function
|
|
3271
|
-
var n =
|
|
3272
|
-
return
|
|
3282
|
+
function z(e, t) {
|
|
3283
|
+
var n = js(e, t);
|
|
3284
|
+
return Ds(n) ? n : void 0;
|
|
3273
3285
|
}
|
|
3274
|
-
var
|
|
3275
|
-
const
|
|
3276
|
-
var
|
|
3277
|
-
const
|
|
3278
|
-
function
|
|
3279
|
-
this.__data__ =
|
|
3286
|
+
var Fs = z(q, "Map");
|
|
3287
|
+
const ce = Fs;
|
|
3288
|
+
var As = z(Object, "create");
|
|
3289
|
+
const de = As;
|
|
3290
|
+
function Es() {
|
|
3291
|
+
this.__data__ = de ? de(null) : {}, this.size = 0;
|
|
3280
3292
|
}
|
|
3281
|
-
function
|
|
3293
|
+
function Ls(e) {
|
|
3282
3294
|
var t = this.has(e) && delete this.__data__[e];
|
|
3283
3295
|
return this.size -= t ? 1 : 0, t;
|
|
3284
3296
|
}
|
|
3285
|
-
var
|
|
3286
|
-
function
|
|
3297
|
+
var Ns = "__lodash_hash_undefined__", Rs = Object.prototype, Ts = Rs.hasOwnProperty;
|
|
3298
|
+
function Ms(e) {
|
|
3287
3299
|
var t = this.__data__;
|
|
3288
|
-
if (
|
|
3300
|
+
if (de) {
|
|
3289
3301
|
var n = t[e];
|
|
3290
|
-
return n ===
|
|
3302
|
+
return n === Ns ? void 0 : n;
|
|
3291
3303
|
}
|
|
3292
|
-
return
|
|
3304
|
+
return Ts.call(t, e) ? t[e] : void 0;
|
|
3293
3305
|
}
|
|
3294
|
-
var
|
|
3295
|
-
function
|
|
3306
|
+
var $s = Object.prototype, Is = $s.hasOwnProperty;
|
|
3307
|
+
function _s(e) {
|
|
3296
3308
|
var t = this.__data__;
|
|
3297
|
-
return
|
|
3309
|
+
return de ? t[e] !== void 0 : Is.call(t, e);
|
|
3298
3310
|
}
|
|
3299
|
-
var
|
|
3300
|
-
function
|
|
3311
|
+
var ks = "__lodash_hash_undefined__";
|
|
3312
|
+
function Bs(e, t) {
|
|
3301
3313
|
var n = this.__data__;
|
|
3302
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
3314
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = de && t === void 0 ? ks : t, this;
|
|
3303
3315
|
}
|
|
3304
3316
|
function K(e) {
|
|
3305
3317
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -3308,86 +3320,86 @@ function K(e) {
|
|
|
3308
3320
|
this.set(r[0], r[1]);
|
|
3309
3321
|
}
|
|
3310
3322
|
}
|
|
3311
|
-
K.prototype.clear =
|
|
3312
|
-
K.prototype.delete =
|
|
3313
|
-
K.prototype.get =
|
|
3314
|
-
K.prototype.has =
|
|
3315
|
-
K.prototype.set =
|
|
3316
|
-
function
|
|
3323
|
+
K.prototype.clear = Es;
|
|
3324
|
+
K.prototype.delete = Ls;
|
|
3325
|
+
K.prototype.get = Ms;
|
|
3326
|
+
K.prototype.has = _s;
|
|
3327
|
+
K.prototype.set = Bs;
|
|
3328
|
+
function Us() {
|
|
3317
3329
|
this.size = 0, this.__data__ = {
|
|
3318
3330
|
hash: new K(),
|
|
3319
|
-
map: new (
|
|
3331
|
+
map: new (ce || U)(),
|
|
3320
3332
|
string: new K()
|
|
3321
3333
|
};
|
|
3322
3334
|
}
|
|
3323
|
-
function
|
|
3335
|
+
function qs(e) {
|
|
3324
3336
|
var t = typeof e;
|
|
3325
3337
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3326
3338
|
}
|
|
3327
|
-
function
|
|
3339
|
+
function Le(e, t) {
|
|
3328
3340
|
var n = e.__data__;
|
|
3329
|
-
return
|
|
3341
|
+
return qs(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
3330
3342
|
}
|
|
3331
|
-
function
|
|
3332
|
-
var t =
|
|
3343
|
+
function Ws(e) {
|
|
3344
|
+
var t = Le(this, e).delete(e);
|
|
3333
3345
|
return this.size -= t ? 1 : 0, t;
|
|
3334
3346
|
}
|
|
3335
|
-
function
|
|
3336
|
-
return
|
|
3347
|
+
function Vs(e) {
|
|
3348
|
+
return Le(this, e).get(e);
|
|
3337
3349
|
}
|
|
3338
|
-
function
|
|
3339
|
-
return
|
|
3350
|
+
function Hs(e) {
|
|
3351
|
+
return Le(this, e).has(e);
|
|
3340
3352
|
}
|
|
3341
|
-
function
|
|
3342
|
-
var n =
|
|
3353
|
+
function Ks(e, t) {
|
|
3354
|
+
var n = Le(this, e), r = n.size;
|
|
3343
3355
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
3344
3356
|
}
|
|
3345
|
-
function
|
|
3357
|
+
function re(e) {
|
|
3346
3358
|
var t = -1, n = e == null ? 0 : e.length;
|
|
3347
3359
|
for (this.clear(); ++t < n; ) {
|
|
3348
3360
|
var r = e[t];
|
|
3349
3361
|
this.set(r[0], r[1]);
|
|
3350
3362
|
}
|
|
3351
3363
|
}
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
var
|
|
3358
|
-
function
|
|
3364
|
+
re.prototype.clear = Us;
|
|
3365
|
+
re.prototype.delete = Ws;
|
|
3366
|
+
re.prototype.get = Vs;
|
|
3367
|
+
re.prototype.has = Hs;
|
|
3368
|
+
re.prototype.set = Ks;
|
|
3369
|
+
var Gs = 200;
|
|
3370
|
+
function zs(e, t) {
|
|
3359
3371
|
var n = this.__data__;
|
|
3360
|
-
if (n instanceof
|
|
3372
|
+
if (n instanceof U) {
|
|
3361
3373
|
var r = n.__data__;
|
|
3362
|
-
if (!
|
|
3374
|
+
if (!ce || r.length < Gs - 1)
|
|
3363
3375
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
3364
|
-
n = this.__data__ = new
|
|
3376
|
+
n = this.__data__ = new re(r);
|
|
3365
3377
|
}
|
|
3366
3378
|
return n.set(e, t), this.size = n.size, this;
|
|
3367
3379
|
}
|
|
3368
|
-
function
|
|
3369
|
-
var t = this.__data__ = new
|
|
3380
|
+
function se(e) {
|
|
3381
|
+
var t = this.__data__ = new U(e);
|
|
3370
3382
|
this.size = t.size;
|
|
3371
3383
|
}
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
|
|
3377
|
-
function
|
|
3384
|
+
se.prototype.clear = ds;
|
|
3385
|
+
se.prototype.delete = fs;
|
|
3386
|
+
se.prototype.get = ps;
|
|
3387
|
+
se.prototype.has = gs;
|
|
3388
|
+
se.prototype.set = zs;
|
|
3389
|
+
function Js(e, t) {
|
|
3378
3390
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
3379
3391
|
;
|
|
3380
3392
|
return e;
|
|
3381
3393
|
}
|
|
3382
|
-
var
|
|
3394
|
+
var Qs = function() {
|
|
3383
3395
|
try {
|
|
3384
|
-
var e =
|
|
3396
|
+
var e = z(Object, "defineProperty");
|
|
3385
3397
|
return e({}, "", {}), e;
|
|
3386
3398
|
} catch {
|
|
3387
3399
|
}
|
|
3388
3400
|
}();
|
|
3389
|
-
const Ot =
|
|
3390
|
-
function
|
|
3401
|
+
const Ot = Qs;
|
|
3402
|
+
function zt(e, t, n) {
|
|
3391
3403
|
t == "__proto__" && Ot ? Ot(e, t, {
|
|
3392
3404
|
configurable: !0,
|
|
3393
3405
|
enumerable: !0,
|
|
@@ -3395,59 +3407,59 @@ function Gt(e, t, n) {
|
|
|
3395
3407
|
writable: !0
|
|
3396
3408
|
}) : e[t] = n;
|
|
3397
3409
|
}
|
|
3398
|
-
var
|
|
3399
|
-
function
|
|
3410
|
+
var Ys = Object.prototype, Zs = Ys.hasOwnProperty;
|
|
3411
|
+
function Jt(e, t, n) {
|
|
3400
3412
|
var r = e[t];
|
|
3401
|
-
(!(
|
|
3413
|
+
(!(Zs.call(e, t) && Gt(r, n)) || n === void 0 && !(t in e)) && zt(e, t, n);
|
|
3402
3414
|
}
|
|
3403
3415
|
function Ne(e, t, n, r) {
|
|
3404
3416
|
var s = !n;
|
|
3405
3417
|
n || (n = {});
|
|
3406
3418
|
for (var i = -1, a = t.length; ++i < a; ) {
|
|
3407
3419
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
3408
|
-
u === void 0 && (u = e[o]), s ?
|
|
3420
|
+
u === void 0 && (u = e[o]), s ? zt(n, o, u) : Jt(n, o, u);
|
|
3409
3421
|
}
|
|
3410
3422
|
return n;
|
|
3411
3423
|
}
|
|
3412
|
-
function
|
|
3413
|
-
return e && Ne(t,
|
|
3424
|
+
function Xs(e, t) {
|
|
3425
|
+
return e && Ne(t, Je(t), e);
|
|
3414
3426
|
}
|
|
3415
|
-
function
|
|
3427
|
+
function ei(e) {
|
|
3416
3428
|
var t = [];
|
|
3417
3429
|
if (e != null)
|
|
3418
3430
|
for (var n in Object(e))
|
|
3419
3431
|
t.push(n);
|
|
3420
3432
|
return t;
|
|
3421
3433
|
}
|
|
3422
|
-
var
|
|
3423
|
-
function
|
|
3434
|
+
var ti = Object.prototype, ni = ti.hasOwnProperty;
|
|
3435
|
+
function ri(e) {
|
|
3424
3436
|
if (!Fe(e))
|
|
3425
|
-
return
|
|
3437
|
+
return ei(e);
|
|
3426
3438
|
var t = _t(e), n = [];
|
|
3427
3439
|
for (var r in e)
|
|
3428
|
-
r == "constructor" && (t || !
|
|
3440
|
+
r == "constructor" && (t || !ni.call(e, r)) || n.push(r);
|
|
3429
3441
|
return n;
|
|
3430
3442
|
}
|
|
3431
|
-
function
|
|
3432
|
-
return In(e) ? _n(e, !0) :
|
|
3443
|
+
function Ze(e) {
|
|
3444
|
+
return In(e) ? _n(e, !0) : ri(e);
|
|
3433
3445
|
}
|
|
3434
|
-
function
|
|
3435
|
-
return e && Ne(t,
|
|
3446
|
+
function si(e, t) {
|
|
3447
|
+
return e && Ne(t, Ze(t), e);
|
|
3436
3448
|
}
|
|
3437
|
-
var
|
|
3438
|
-
function
|
|
3449
|
+
var Qt = typeof exports == "object" && exports && !exports.nodeType && exports, vt = Qt && typeof module == "object" && module && !module.nodeType && module, ii = vt && vt.exports === Qt, xt = ii ? q.Buffer : void 0, Ct = xt ? xt.allocUnsafe : void 0;
|
|
3450
|
+
function ai(e, t) {
|
|
3439
3451
|
if (t)
|
|
3440
3452
|
return e.slice();
|
|
3441
3453
|
var n = e.length, r = Ct ? Ct(n) : new e.constructor(n);
|
|
3442
3454
|
return e.copy(r), r;
|
|
3443
3455
|
}
|
|
3444
|
-
function
|
|
3456
|
+
function oi(e, t) {
|
|
3445
3457
|
var n = -1, r = e.length;
|
|
3446
3458
|
for (t || (t = Array(r)); ++n < r; )
|
|
3447
3459
|
t[n] = e[n];
|
|
3448
3460
|
return t;
|
|
3449
3461
|
}
|
|
3450
|
-
function
|
|
3462
|
+
function ui(e, t) {
|
|
3451
3463
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
|
3452
3464
|
var a = e[n];
|
|
3453
3465
|
t(a, n, e) && (i[s++] = a);
|
|
@@ -3457,131 +3469,131 @@ function ii(e, t) {
|
|
|
3457
3469
|
function Yt() {
|
|
3458
3470
|
return [];
|
|
3459
3471
|
}
|
|
3460
|
-
var
|
|
3461
|
-
return e == null ? [] : (e = Object(e),
|
|
3462
|
-
return
|
|
3472
|
+
var li = Object.prototype, ci = li.propertyIsEnumerable, wt = Object.getOwnPropertySymbols, di = wt ? function(e) {
|
|
3473
|
+
return e == null ? [] : (e = Object(e), ui(wt(e), function(t) {
|
|
3474
|
+
return ci.call(e, t);
|
|
3463
3475
|
}));
|
|
3464
3476
|
} : Yt;
|
|
3465
|
-
const
|
|
3466
|
-
function
|
|
3467
|
-
return Ne(e,
|
|
3477
|
+
const Xe = di;
|
|
3478
|
+
function fi(e, t) {
|
|
3479
|
+
return Ne(e, Xe(e), t);
|
|
3468
3480
|
}
|
|
3469
|
-
function
|
|
3481
|
+
function Zt(e, t) {
|
|
3470
3482
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
3471
3483
|
e[s + n] = t[n];
|
|
3472
3484
|
return e;
|
|
3473
3485
|
}
|
|
3474
|
-
var
|
|
3475
|
-
const
|
|
3476
|
-
var
|
|
3486
|
+
var pi = kn(Object.getPrototypeOf, Object);
|
|
3487
|
+
const Xt = pi;
|
|
3488
|
+
var gi = Object.getOwnPropertySymbols, hi = gi ? function(e) {
|
|
3477
3489
|
for (var t = []; e; )
|
|
3478
|
-
|
|
3490
|
+
Zt(t, Xe(e)), e = Xt(e);
|
|
3479
3491
|
return t;
|
|
3480
3492
|
} : Yt;
|
|
3481
|
-
const en =
|
|
3482
|
-
function
|
|
3493
|
+
const en = hi;
|
|
3494
|
+
function mi(e, t) {
|
|
3483
3495
|
return Ne(e, en(e), t);
|
|
3484
3496
|
}
|
|
3485
3497
|
function tn(e, t, n) {
|
|
3486
3498
|
var r = t(e);
|
|
3487
|
-
return kt(e) ? r :
|
|
3499
|
+
return kt(e) ? r : Zt(r, n(e));
|
|
3488
3500
|
}
|
|
3489
|
-
function
|
|
3490
|
-
return tn(e,
|
|
3501
|
+
function yi(e) {
|
|
3502
|
+
return tn(e, Je, Xe);
|
|
3491
3503
|
}
|
|
3492
|
-
function
|
|
3493
|
-
return tn(e,
|
|
3504
|
+
function bi(e) {
|
|
3505
|
+
return tn(e, Ze, en);
|
|
3494
3506
|
}
|
|
3495
|
-
var
|
|
3496
|
-
const
|
|
3497
|
-
var
|
|
3498
|
-
const He =
|
|
3499
|
-
var
|
|
3500
|
-
const Ke =
|
|
3501
|
-
var
|
|
3502
|
-
const
|
|
3503
|
-
var
|
|
3504
|
-
(
|
|
3505
|
-
var t = Bt(e), n = t ==
|
|
3507
|
+
var Si = z(q, "DataView");
|
|
3508
|
+
const Ve = Si;
|
|
3509
|
+
var Oi = z(q, "Promise");
|
|
3510
|
+
const He = Oi;
|
|
3511
|
+
var vi = z(q, "Set");
|
|
3512
|
+
const Ke = vi;
|
|
3513
|
+
var xi = z(q, "WeakMap");
|
|
3514
|
+
const Ge = xi;
|
|
3515
|
+
var Pt = "[object Map]", Ci = "[object Object]", Dt = "[object Promise]", jt = "[object Set]", Ft = "[object WeakMap]", At = "[object DataView]", wi = G(Ve), Pi = G(ce), Di = G(He), ji = G(Ke), Fi = G(Ge), H = Bt;
|
|
3516
|
+
(Ve && H(new Ve(new ArrayBuffer(1))) != At || ce && H(new ce()) != Pt || He && H(He.resolve()) != Dt || Ke && H(new Ke()) != jt || Ge && H(new Ge()) != Ft) && (H = function(e) {
|
|
3517
|
+
var t = Bt(e), n = t == Ci ? e.constructor : void 0, r = n ? G(n) : "";
|
|
3506
3518
|
if (r)
|
|
3507
3519
|
switch (r) {
|
|
3508
|
-
case vi:
|
|
3509
|
-
return At;
|
|
3510
|
-
case xi:
|
|
3511
|
-
return Dt;
|
|
3512
|
-
case Ci:
|
|
3513
|
-
return jt;
|
|
3514
3520
|
case wi:
|
|
3521
|
+
return At;
|
|
3522
|
+
case Pi:
|
|
3515
3523
|
return Pt;
|
|
3516
3524
|
case Di:
|
|
3525
|
+
return Dt;
|
|
3526
|
+
case ji:
|
|
3527
|
+
return jt;
|
|
3528
|
+
case Fi:
|
|
3517
3529
|
return Ft;
|
|
3518
3530
|
}
|
|
3519
3531
|
return t;
|
|
3520
3532
|
});
|
|
3521
3533
|
const et = H;
|
|
3522
|
-
var
|
|
3523
|
-
function
|
|
3534
|
+
var Ai = Object.prototype, Ei = Ai.hasOwnProperty;
|
|
3535
|
+
function Li(e) {
|
|
3524
3536
|
var t = e.length, n = new e.constructor(t);
|
|
3525
|
-
return t && typeof e[0] == "string" &&
|
|
3537
|
+
return t && typeof e[0] == "string" && Ei.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
3526
3538
|
}
|
|
3527
|
-
var
|
|
3528
|
-
const
|
|
3539
|
+
var Ni = q.Uint8Array;
|
|
3540
|
+
const Et = Ni;
|
|
3529
3541
|
function tt(e) {
|
|
3530
3542
|
var t = new e.constructor(e.byteLength);
|
|
3531
|
-
return new
|
|
3543
|
+
return new Et(t).set(new Et(e)), t;
|
|
3532
3544
|
}
|
|
3533
|
-
function
|
|
3545
|
+
function Ri(e, t) {
|
|
3534
3546
|
var n = t ? tt(e.buffer) : e.buffer;
|
|
3535
3547
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
3536
3548
|
}
|
|
3537
|
-
var
|
|
3538
|
-
function
|
|
3539
|
-
var t = new e.constructor(e.source,
|
|
3549
|
+
var Ti = /\w*$/;
|
|
3550
|
+
function Mi(e) {
|
|
3551
|
+
var t = new e.constructor(e.source, Ti.exec(e));
|
|
3540
3552
|
return t.lastIndex = e.lastIndex, t;
|
|
3541
3553
|
}
|
|
3542
|
-
var
|
|
3543
|
-
function
|
|
3554
|
+
var Lt = it ? it.prototype : void 0, Nt = Lt ? Lt.valueOf : void 0;
|
|
3555
|
+
function $i(e) {
|
|
3544
3556
|
return Nt ? Object(Nt.call(e)) : {};
|
|
3545
3557
|
}
|
|
3546
|
-
function
|
|
3558
|
+
function Ii(e, t) {
|
|
3547
3559
|
var n = t ? tt(e.buffer) : e.buffer;
|
|
3548
3560
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
3549
3561
|
}
|
|
3550
|
-
var
|
|
3551
|
-
function
|
|
3562
|
+
var _i = "[object Boolean]", ki = "[object Date]", Bi = "[object Map]", Ui = "[object Number]", qi = "[object RegExp]", Wi = "[object Set]", Vi = "[object String]", Hi = "[object Symbol]", Ki = "[object ArrayBuffer]", Gi = "[object DataView]", zi = "[object Float32Array]", Ji = "[object Float64Array]", Qi = "[object Int8Array]", Yi = "[object Int16Array]", Zi = "[object Int32Array]", Xi = "[object Uint8Array]", ea = "[object Uint8ClampedArray]", ta = "[object Uint16Array]", na = "[object Uint32Array]";
|
|
3563
|
+
function ra(e, t, n) {
|
|
3552
3564
|
var r = e.constructor;
|
|
3553
3565
|
switch (t) {
|
|
3554
|
-
case
|
|
3566
|
+
case Ki:
|
|
3555
3567
|
return tt(e);
|
|
3556
|
-
case
|
|
3557
|
-
case
|
|
3568
|
+
case _i:
|
|
3569
|
+
case ki:
|
|
3558
3570
|
return new r(+e);
|
|
3559
|
-
case Wi:
|
|
3560
|
-
return Li(e, n);
|
|
3561
|
-
case Hi:
|
|
3562
|
-
case Ki:
|
|
3563
|
-
case zi:
|
|
3564
3571
|
case Gi:
|
|
3565
|
-
|
|
3572
|
+
return Ri(e, n);
|
|
3573
|
+
case zi:
|
|
3566
3574
|
case Ji:
|
|
3575
|
+
case Qi:
|
|
3567
3576
|
case Yi:
|
|
3568
|
-
case Xi:
|
|
3569
3577
|
case Zi:
|
|
3570
|
-
|
|
3571
|
-
case
|
|
3578
|
+
case Xi:
|
|
3579
|
+
case ea:
|
|
3580
|
+
case ta:
|
|
3581
|
+
case na:
|
|
3582
|
+
return Ii(e, n);
|
|
3583
|
+
case Bi:
|
|
3572
3584
|
return new r();
|
|
3573
|
-
case _i:
|
|
3574
3585
|
case Ui:
|
|
3586
|
+
case Vi:
|
|
3575
3587
|
return new r(e);
|
|
3576
|
-
case ki:
|
|
3577
|
-
return Ni(e);
|
|
3578
|
-
case Bi:
|
|
3579
|
-
return new r();
|
|
3580
3588
|
case qi:
|
|
3581
|
-
return
|
|
3589
|
+
return Mi(e);
|
|
3590
|
+
case Wi:
|
|
3591
|
+
return new r();
|
|
3592
|
+
case Hi:
|
|
3593
|
+
return $i(e);
|
|
3582
3594
|
}
|
|
3583
3595
|
}
|
|
3584
|
-
var Rt = Object.create,
|
|
3596
|
+
var Rt = Object.create, sa = function() {
|
|
3585
3597
|
function e() {
|
|
3586
3598
|
}
|
|
3587
3599
|
return function(t) {
|
|
@@ -3594,73 +3606,73 @@ var Rt = Object.create, ta = function() {
|
|
|
3594
3606
|
return e.prototype = void 0, n;
|
|
3595
3607
|
};
|
|
3596
3608
|
}();
|
|
3597
|
-
const
|
|
3598
|
-
function
|
|
3599
|
-
return typeof e.constructor == "function" && !_t(e) ?
|
|
3609
|
+
const ia = sa;
|
|
3610
|
+
function aa(e) {
|
|
3611
|
+
return typeof e.constructor == "function" && !_t(e) ? ia(Xt(e)) : {};
|
|
3600
3612
|
}
|
|
3601
|
-
var
|
|
3602
|
-
function
|
|
3603
|
-
return Ut(e) && et(e) ==
|
|
3613
|
+
var oa = "[object Map]";
|
|
3614
|
+
function ua(e) {
|
|
3615
|
+
return Ut(e) && et(e) == oa;
|
|
3604
3616
|
}
|
|
3605
|
-
var Tt = xe && xe.isMap,
|
|
3606
|
-
const
|
|
3607
|
-
var
|
|
3608
|
-
function
|
|
3609
|
-
return Ut(e) && et(e) ==
|
|
3617
|
+
var Tt = xe && xe.isMap, la = Tt ? qt(Tt) : ua;
|
|
3618
|
+
const ca = la;
|
|
3619
|
+
var da = "[object Set]";
|
|
3620
|
+
function fa(e) {
|
|
3621
|
+
return Ut(e) && et(e) == da;
|
|
3610
3622
|
}
|
|
3611
|
-
var Mt = xe && xe.isSet,
|
|
3612
|
-
const
|
|
3613
|
-
var
|
|
3614
|
-
v[nn] = v[
|
|
3615
|
-
v[
|
|
3623
|
+
var Mt = xe && xe.isSet, pa = Mt ? qt(Mt) : fa;
|
|
3624
|
+
const ga = pa;
|
|
3625
|
+
var ha = 1, ma = 2, ya = 4, nn = "[object Arguments]", ba = "[object Array]", Sa = "[object Boolean]", Oa = "[object Date]", va = "[object Error]", rn = "[object Function]", xa = "[object GeneratorFunction]", Ca = "[object Map]", wa = "[object Number]", sn = "[object Object]", Pa = "[object RegExp]", Da = "[object Set]", ja = "[object String]", Fa = "[object Symbol]", Aa = "[object WeakMap]", Ea = "[object ArrayBuffer]", La = "[object DataView]", Na = "[object Float32Array]", Ra = "[object Float64Array]", Ta = "[object Int8Array]", Ma = "[object Int16Array]", $a = "[object Int32Array]", Ia = "[object Uint8Array]", _a = "[object Uint8ClampedArray]", ka = "[object Uint16Array]", Ba = "[object Uint32Array]", v = {};
|
|
3626
|
+
v[nn] = v[ba] = v[Ea] = v[La] = v[Sa] = v[Oa] = v[Na] = v[Ra] = v[Ta] = v[Ma] = v[$a] = v[Ca] = v[wa] = v[sn] = v[Pa] = v[Da] = v[ja] = v[Fa] = v[Ia] = v[_a] = v[ka] = v[Ba] = !0;
|
|
3627
|
+
v[va] = v[rn] = v[Aa] = !1;
|
|
3616
3628
|
function ye(e, t, n, r, s, i) {
|
|
3617
|
-
var a, o = t &
|
|
3629
|
+
var a, o = t & ha, u = t & ma, c = t & ya;
|
|
3618
3630
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
|
3619
3631
|
return a;
|
|
3620
3632
|
if (!Fe(e))
|
|
3621
3633
|
return e;
|
|
3622
3634
|
var d = kt(e);
|
|
3623
3635
|
if (d) {
|
|
3624
|
-
if (a =
|
|
3625
|
-
return
|
|
3636
|
+
if (a = Li(e), !o)
|
|
3637
|
+
return oi(e, a);
|
|
3626
3638
|
} else {
|
|
3627
|
-
var f = et(e), l = f == rn || f ==
|
|
3639
|
+
var f = et(e), l = f == rn || f == xa;
|
|
3628
3640
|
if (Bn(e))
|
|
3629
|
-
return
|
|
3641
|
+
return ai(e, o);
|
|
3630
3642
|
if (f == sn || f == nn || l && !s) {
|
|
3631
|
-
if (a = u || l ? {} :
|
|
3632
|
-
return u ?
|
|
3643
|
+
if (a = u || l ? {} : aa(e), !o)
|
|
3644
|
+
return u ? mi(e, si(a, e)) : fi(e, Xs(a, e));
|
|
3633
3645
|
} else {
|
|
3634
3646
|
if (!v[f])
|
|
3635
3647
|
return s ? e : {};
|
|
3636
|
-
a =
|
|
3648
|
+
a = ra(e, f, o);
|
|
3637
3649
|
}
|
|
3638
3650
|
}
|
|
3639
|
-
i || (i = new
|
|
3651
|
+
i || (i = new se());
|
|
3640
3652
|
var g = i.get(e);
|
|
3641
3653
|
if (g)
|
|
3642
3654
|
return g;
|
|
3643
|
-
i.set(e, a),
|
|
3655
|
+
i.set(e, a), ga(e) ? e.forEach(function(h) {
|
|
3644
3656
|
a.add(ye(h, t, n, h, e, i));
|
|
3645
|
-
}) :
|
|
3657
|
+
}) : ca(e) && e.forEach(function(h, x) {
|
|
3646
3658
|
a.set(x, ye(h, t, n, x, e, i));
|
|
3647
3659
|
});
|
|
3648
|
-
var p = c ? u ?
|
|
3649
|
-
return
|
|
3650
|
-
y && (x = h, h = e[x]),
|
|
3660
|
+
var p = c ? u ? bi : yi : u ? Ze : Je, y = d ? void 0 : p(e);
|
|
3661
|
+
return Js(y || e, function(h, x) {
|
|
3662
|
+
y && (x = h, h = e[x]), Jt(a, x, ye(h, t, n, x, e, i));
|
|
3651
3663
|
}), a;
|
|
3652
3664
|
}
|
|
3653
|
-
var
|
|
3654
|
-
function
|
|
3655
|
-
return ye(e,
|
|
3665
|
+
var Ua = 1, qa = 4;
|
|
3666
|
+
function Wa(e) {
|
|
3667
|
+
return ye(e, Ua | qa);
|
|
3656
3668
|
}
|
|
3657
|
-
function
|
|
3669
|
+
function Va(e) {
|
|
3658
3670
|
return Buffer.from(e).toString("utf8");
|
|
3659
3671
|
}
|
|
3660
|
-
function
|
|
3672
|
+
function Ha(e) {
|
|
3661
3673
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
|
3662
3674
|
}
|
|
3663
|
-
function
|
|
3675
|
+
function Ka() {
|
|
3664
3676
|
return "UNSUPPORTED";
|
|
3665
3677
|
}
|
|
3666
3678
|
typeof Buffer < "u" && Buffer.from;
|
|
@@ -3668,7 +3680,7 @@ var $e;
|
|
|
3668
3680
|
(function(e) {
|
|
3669
3681
|
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
|
3670
3682
|
})($e = $e || ($e = {}));
|
|
3671
|
-
const
|
|
3683
|
+
const O = {
|
|
3672
3684
|
Measure: "measure",
|
|
3673
3685
|
MeasureTemplate: "measuretemplate",
|
|
3674
3686
|
BaseMeasure: "basemeasure",
|
|
@@ -3691,7 +3703,7 @@ const S = {
|
|
|
3691
3703
|
* @returns true if the object or type is a metadata element
|
|
3692
3704
|
*/
|
|
3693
3705
|
isMetadata(e) {
|
|
3694
|
-
return
|
|
3706
|
+
return O.isMeasure(e) || O.isDimension(e) || O.isAttribute(e) || O.isFilter(e);
|
|
3695
3707
|
},
|
|
3696
3708
|
/**
|
|
3697
3709
|
* Checks whether the given object or type is a measure template
|
|
@@ -3700,7 +3712,7 @@ const S = {
|
|
|
3700
3712
|
* @returns true if the object or type is a measure template
|
|
3701
3713
|
*/
|
|
3702
3714
|
isMeasureTemplate(e) {
|
|
3703
|
-
return e ? typeof e == "string" ? e.toLowerCase() ===
|
|
3715
|
+
return e ? typeof e == "string" ? e.toLowerCase() === O.MeasureTemplate : e.agg === "*" || e.aggregation === "*" || e.type && e.type.toLowerCase() === O.MeasureTemplate : !1;
|
|
3704
3716
|
},
|
|
3705
3717
|
/**
|
|
3706
3718
|
* Checks whether the given object or type is a base measure
|
|
@@ -3709,7 +3721,7 @@ const S = {
|
|
|
3709
3721
|
* @returns true if the object or type is a base measure
|
|
3710
3722
|
*/
|
|
3711
3723
|
isBaseMeasure(e) {
|
|
3712
|
-
return e ? typeof e == "string" ? e.toLowerCase() ===
|
|
3724
|
+
return e ? typeof e == "string" ? e.toLowerCase() === O.BaseMeasure : (e.agg || e.aggregation) && (e.attribute || e.jaql || e.dim || e.expression) && !this.isMeasureTemplate(e) : !1;
|
|
3713
3725
|
},
|
|
3714
3726
|
/**
|
|
3715
3727
|
* Checks whether the given object or type is a measure - of any type
|
|
@@ -3722,7 +3734,7 @@ const S = {
|
|
|
3722
3734
|
return !1;
|
|
3723
3735
|
if (typeof e == "string") {
|
|
3724
3736
|
const t = e;
|
|
3725
|
-
return t.toLowerCase() ===
|
|
3737
|
+
return t.toLowerCase() === O.Measure || t.toLowerCase() === O.BaseMeasure || t.toLowerCase() === O.MeasureTemplate || t.toLowerCase() === O.CalculatedMeasure;
|
|
3726
3738
|
}
|
|
3727
3739
|
return this.isBaseMeasure(e) || this.isCalculatedMeasure(e) || this.isMeasureTemplate(e);
|
|
3728
3740
|
},
|
|
@@ -3733,7 +3745,7 @@ const S = {
|
|
|
3733
3745
|
* @returns true if the object or type is a calculated measure
|
|
3734
3746
|
*/
|
|
3735
3747
|
isCalculatedMeasure(e) {
|
|
3736
|
-
return e ? typeof e == "string" ? e.toLowerCase() ===
|
|
3748
|
+
return e ? typeof e == "string" ? e.toLowerCase() === O.CalculatedMeasure : (e.expression || e.formula) && e.context : !1;
|
|
3737
3749
|
},
|
|
3738
3750
|
/**
|
|
3739
3751
|
* Checks whether the given object or type is a date dimension
|
|
@@ -3742,7 +3754,7 @@ const S = {
|
|
|
3742
3754
|
* @returns true if the object or type is a date dimension
|
|
3743
3755
|
*/
|
|
3744
3756
|
isDateDimension(e) {
|
|
3745
|
-
return e ? typeof e == "string" ? e.toLowerCase() ===
|
|
3757
|
+
return e ? typeof e == "string" ? e.toLowerCase() === O.DateDimension : (e.dim || e.expression) && e.level : !1;
|
|
3746
3758
|
},
|
|
3747
3759
|
/**
|
|
3748
3760
|
* Checks whether the given object or type is a text dimension
|
|
@@ -3751,7 +3763,7 @@ const S = {
|
|
|
3751
3763
|
* @returns true if the object or type is a text dimension
|
|
3752
3764
|
*/
|
|
3753
3765
|
isTextDimension(e) {
|
|
3754
|
-
return e && typeof e == "string" ? e.toLowerCase() ===
|
|
3766
|
+
return e && typeof e == "string" ? e.toLowerCase() === O.TextDimension : !1;
|
|
3755
3767
|
},
|
|
3756
3768
|
/**
|
|
3757
3769
|
* Checks whether the given object or type is a numeric dimension
|
|
@@ -3760,7 +3772,7 @@ const S = {
|
|
|
3760
3772
|
* @returns true if the object or type is a numeric dimension
|
|
3761
3773
|
*/
|
|
3762
3774
|
isNumericDimension(e) {
|
|
3763
|
-
return e && typeof e == "string" ? e.toLowerCase() ===
|
|
3775
|
+
return e && typeof e == "string" ? e.toLowerCase() === O.NumericDimension : !1;
|
|
3764
3776
|
},
|
|
3765
3777
|
/**
|
|
3766
3778
|
* Checks whether the given object or type is a dimension - of any type
|
|
@@ -3771,7 +3783,7 @@ const S = {
|
|
|
3771
3783
|
isDimension(e) {
|
|
3772
3784
|
if (e && typeof e == "object" && (e = e.type), typeof e == "string") {
|
|
3773
3785
|
const t = e;
|
|
3774
|
-
return t.toLowerCase() ===
|
|
3786
|
+
return t.toLowerCase() === O.DateDimension || t.toLowerCase() === O.Dimension || t.toLowerCase() === O.TextDimension || t.toLowerCase() === O.NumericDimension;
|
|
3775
3787
|
}
|
|
3776
3788
|
return !1;
|
|
3777
3789
|
},
|
|
@@ -3784,7 +3796,7 @@ const S = {
|
|
|
3784
3796
|
isAttribute(e) {
|
|
3785
3797
|
if (typeof e == "string") {
|
|
3786
3798
|
const t = e;
|
|
3787
|
-
return t.toLowerCase() ===
|
|
3799
|
+
return t.toLowerCase() === O.Attribute || t.toLowerCase() === O.TextAttribute || t.toLowerCase() === O.NumericAttribute || t.toLowerCase() === O.DateLevel;
|
|
3788
3800
|
}
|
|
3789
3801
|
return e && e.type ? this.isAttribute(e.type) : !1;
|
|
3790
3802
|
},
|
|
@@ -3797,7 +3809,7 @@ const S = {
|
|
|
3797
3809
|
isFilter(e) {
|
|
3798
3810
|
if (e && typeof e == "object" && (e = e.type), typeof e == "string") {
|
|
3799
3811
|
const t = e;
|
|
3800
|
-
return t.toLowerCase() ===
|
|
3812
|
+
return t.toLowerCase() === O.Filter || t.toLowerCase() === O.DimensionFilter || t.toLowerCase() === O.MeasureFilter;
|
|
3801
3813
|
}
|
|
3802
3814
|
return !1;
|
|
3803
3815
|
}
|
|
@@ -3814,34 +3826,34 @@ var ke;
|
|
|
3814
3826
|
(function(e) {
|
|
3815
3827
|
e.PRE = "pre", e.POST = "post";
|
|
3816
3828
|
})(ke = ke || (ke = {}));
|
|
3817
|
-
function
|
|
3829
|
+
function ze(e, t = []) {
|
|
3818
3830
|
try {
|
|
3819
|
-
return e == null ? String(e) : typeof e == "string" ? `'${
|
|
3831
|
+
return e == null ? String(e) : typeof e == "string" ? `'${Zr(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => ze(n, t)).join(", ")}]` : typeof e == "object" && e !== null ? "composeCode" in e ? e.composeCode : `{ ${Object.entries(e).filter(([r]) => !t.includes(r)).map(([r, s]) => `${/[^a-zA-Z0-9_$]/.test(r) ? `'${r}'` : r}: ${ze(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
|
3820
3832
|
} catch (n) {
|
|
3821
3833
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
|
3822
3834
|
}
|
|
3823
3835
|
}
|
|
3824
|
-
function
|
|
3836
|
+
function Ga(e) {
|
|
3825
3837
|
let t = e.length;
|
|
3826
3838
|
for (; t > 0 && e[t - 1] === void 0; )
|
|
3827
3839
|
t--;
|
|
3828
3840
|
return e.slice(0, t);
|
|
3829
3841
|
}
|
|
3830
|
-
function
|
|
3842
|
+
function za(e, t) {
|
|
3831
3843
|
return function(n) {
|
|
3832
3844
|
return function(...r) {
|
|
3833
|
-
const s =
|
|
3845
|
+
const s = Ga(r), i = s.length, a = s.map((c) => ze(c, ["guid"])).filter((c, d) => !(["", "{ }", "{}", "undefined", "null"].includes(c) && d === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
|
3834
3846
|
return u.composeCode = o, u;
|
|
3835
3847
|
};
|
|
3836
3848
|
};
|
|
3837
3849
|
}
|
|
3838
3850
|
function $t(e, t) {
|
|
3839
|
-
return
|
|
3851
|
+
return za("filterFactory.logic", t)(e);
|
|
3840
3852
|
}
|
|
3841
|
-
function
|
|
3853
|
+
function Ja(e) {
|
|
3842
3854
|
return e && e.__serializable === "MembersFilter";
|
|
3843
3855
|
}
|
|
3844
|
-
function
|
|
3856
|
+
function Qa(e) {
|
|
3845
3857
|
return e && e.__serializable === "CascadingFilter";
|
|
3846
3858
|
}
|
|
3847
3859
|
var Be;
|
|
@@ -3887,36 +3899,36 @@ var Ue;
|
|
|
3887
3899
|
(function(e) {
|
|
3888
3900
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
|
3889
3901
|
})(Ue = Ue || (Ue = {}));
|
|
3890
|
-
const
|
|
3891
|
-
[
|
|
3902
|
+
const M = Object.assign(Object.assign(Object.assign({}, be), Se), Oe), Ya = {
|
|
3903
|
+
[M.INCLUDE_ALL]: {
|
|
3892
3904
|
all: !0,
|
|
3893
|
-
filterType:
|
|
3905
|
+
filterType: M.INCLUDE_ALL
|
|
3894
3906
|
},
|
|
3895
|
-
[
|
|
3907
|
+
[M.PERIOD]: {
|
|
3896
3908
|
last: { count: 1, offset: 1 },
|
|
3897
3909
|
isNotCurrentPeriod: !0,
|
|
3898
|
-
filterType:
|
|
3910
|
+
filterType: M.PERIOD
|
|
3899
3911
|
},
|
|
3900
|
-
[
|
|
3901
|
-
filterType:
|
|
3912
|
+
[M.DATE_RANGE]: {
|
|
3913
|
+
filterType: M.DATE_RANGE
|
|
3902
3914
|
},
|
|
3903
|
-
[
|
|
3904
|
-
filterType:
|
|
3915
|
+
[M.NUMERIC_RANGE]: {
|
|
3916
|
+
filterType: M.NUMERIC_RANGE
|
|
3905
3917
|
},
|
|
3906
|
-
[
|
|
3918
|
+
[M.CONDITION]: {
|
|
3907
3919
|
explicit: !1,
|
|
3908
3920
|
multiSelection: !0,
|
|
3909
3921
|
exclude: { members: [] },
|
|
3910
|
-
filterType:
|
|
3922
|
+
filterType: M.CONDITION
|
|
3911
3923
|
},
|
|
3912
|
-
[
|
|
3924
|
+
[M.SPECIFIC_ITEMS]: {
|
|
3913
3925
|
explicit: !0,
|
|
3914
3926
|
multiSelection: !0,
|
|
3915
3927
|
members: [],
|
|
3916
|
-
filterType:
|
|
3928
|
+
filterType: M.SPECIFIC_ITEMS
|
|
3917
3929
|
}
|
|
3918
3930
|
};
|
|
3919
|
-
|
|
3931
|
+
Ya.INCLUDE_ALL, ve.YEARS;
|
|
3920
3932
|
var qe;
|
|
3921
3933
|
(function(e) {
|
|
3922
3934
|
e.IS = "members", e.IS_NOT = "exclude", e.IS_WITHIN = "isWithin", e.TOP = "top", e.BOTTOM = "bottom", e.AFTER = "after", e.BEFORE = "before", e.STARTS_WITH = "startsWith", e.DOESNT_START_WITH = "doesntStartWith", e.ENDS_WITH = "endsWith", e.DOESNT_END_WITH = "doesntEndWith", e.CONTAINS = "contains", e.DOESNT_CONTAIN = "doesntContain", e.EQUALS = "equals", e.DOESNT_EQUAL = "doesntEqual", e.IS_EMPTY = "isEmpty", e.IS_NOT_EMPTY = "isNotEmpty", e.GREATER_THAN = "fromNotEqual", e.GREATER_THAN_OR_EQUAL = "from", e.LESS_THAN = "toNotEqual", e.LESS_THAN_OR_EQUAL = "to", e.BETWEEN = "between", e.IS_NOT_BETWEEN = "isNotBetween", e.MULTIPLE_CONDITION = "multipleCondition", e.NONE = "none";
|
|
@@ -3935,17 +3947,17 @@ const an = (e) => {
|
|
|
3935
3947
|
return { left: c, right: d, operator: "AND" };
|
|
3936
3948
|
}
|
|
3937
3949
|
function r(a) {
|
|
3938
|
-
return a && (
|
|
3950
|
+
return a && (Za(a) ? Qa(a) ? n(a.filters) : (t.add(a), { instanceid: a.config.guid }) : ("left" in a && (a.left = r(a.left)), "right" in a && (a.right = r(a.right)), "composeCode" in a && delete a.composeCode, a));
|
|
3939
3951
|
}
|
|
3940
|
-
const s =
|
|
3952
|
+
const s = Wa(e), i = r(s);
|
|
3941
3953
|
return { filters: Array.from(t), relations: i };
|
|
3942
3954
|
};
|
|
3943
|
-
function
|
|
3955
|
+
function Za(e) {
|
|
3944
3956
|
return "config" in e && "guid" in e.config;
|
|
3945
3957
|
}
|
|
3946
|
-
|
|
3947
|
-
const
|
|
3948
|
-
const [t, n] =
|
|
3958
|
+
O.TextAttribute, O.NumericAttribute, O.DateLevel;
|
|
3959
|
+
const Yo = (e) => {
|
|
3960
|
+
const [t, n] = W(Wt, {
|
|
3949
3961
|
isLoading: !0,
|
|
3950
3962
|
isError: !1,
|
|
3951
3963
|
isSuccess: !1,
|
|
@@ -3953,7 +3965,7 @@ const zo = (e) => {
|
|
|
3953
3965
|
error: void 0,
|
|
3954
3966
|
data: void 0
|
|
3955
3967
|
}), r = V();
|
|
3956
|
-
|
|
3968
|
+
R("useExecuteQuery");
|
|
3957
3969
|
const s = async (i) => {
|
|
3958
3970
|
try {
|
|
3959
3971
|
const {
|
|
@@ -3966,7 +3978,7 @@ const zo = (e) => {
|
|
|
3966
3978
|
offset: l,
|
|
3967
3979
|
ungroup: g,
|
|
3968
3980
|
onBeforeQuery: p
|
|
3969
|
-
} =
|
|
3981
|
+
} = S(e), { filters: y, relations: h } = an(c);
|
|
3970
3982
|
n({ type: "loading" });
|
|
3971
3983
|
const x = await Un(
|
|
3972
3984
|
{
|
|
@@ -3981,25 +3993,25 @@ const zo = (e) => {
|
|
|
3981
3993
|
ungroup: g
|
|
3982
3994
|
},
|
|
3983
3995
|
i,
|
|
3984
|
-
{ onBeforeQuery:
|
|
3996
|
+
{ onBeforeQuery: Qe(p) }
|
|
3985
3997
|
);
|
|
3986
3998
|
n({ type: "success", data: x });
|
|
3987
3999
|
} catch (a) {
|
|
3988
4000
|
n({ type: "error", error: a });
|
|
3989
4001
|
}
|
|
3990
4002
|
};
|
|
3991
|
-
return
|
|
3992
|
-
[...
|
|
4003
|
+
return E(
|
|
4004
|
+
[...A(e), r],
|
|
3993
4005
|
() => {
|
|
3994
|
-
const { app: i } = r.value, { enabled: a } =
|
|
4006
|
+
const { app: i } = r.value, { enabled: a } = S(e);
|
|
3995
4007
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
3996
4008
|
},
|
|
3997
4009
|
{ immediate: !0 }
|
|
3998
|
-
),
|
|
3999
|
-
},
|
|
4000
|
-
const t =
|
|
4001
|
-
|
|
4002
|
-
const [r, s] =
|
|
4010
|
+
), D(t.value);
|
|
4011
|
+
}, Zo = (e) => {
|
|
4012
|
+
const t = k(void 0), n = k(void 0);
|
|
4013
|
+
R("useExecuteQueryByWidgetId");
|
|
4014
|
+
const [r, s] = W(Wt, {
|
|
4003
4015
|
isLoading: !0,
|
|
4004
4016
|
isError: !1,
|
|
4005
4017
|
isSuccess: !1,
|
|
@@ -4009,7 +4021,7 @@ const zo = (e) => {
|
|
|
4009
4021
|
}), i = V(), a = async (o) => {
|
|
4010
4022
|
try {
|
|
4011
4023
|
s({ type: "loading" });
|
|
4012
|
-
const { filters: u, ...c } =
|
|
4024
|
+
const { filters: u, ...c } = S(e), { filters: d } = an(Qe(u)), {
|
|
4013
4025
|
data: f,
|
|
4014
4026
|
query: l,
|
|
4015
4027
|
pivotQuery: g
|
|
@@ -4023,23 +4035,23 @@ const zo = (e) => {
|
|
|
4023
4035
|
s({ type: "error", error: u });
|
|
4024
4036
|
}
|
|
4025
4037
|
};
|
|
4026
|
-
return
|
|
4027
|
-
[...
|
|
4038
|
+
return E(
|
|
4039
|
+
[...A(e), i],
|
|
4028
4040
|
() => {
|
|
4029
|
-
const { app: o } = i.value, { enabled: u } =
|
|
4041
|
+
const { app: o } = i.value, { enabled: u } = S(e);
|
|
4030
4042
|
!o || !(u === void 0 || u === !0) || a(o);
|
|
4031
4043
|
},
|
|
4032
4044
|
{ immediate: !0 }
|
|
4033
4045
|
), {
|
|
4034
|
-
...
|
|
4046
|
+
...D(r.value),
|
|
4035
4047
|
query: t,
|
|
4036
4048
|
pivotQuery: n
|
|
4037
4049
|
};
|
|
4038
|
-
},
|
|
4039
|
-
|
|
4040
|
-
const t = new
|
|
4041
|
-
|
|
4042
|
-
]), [n, r] =
|
|
4050
|
+
}, Xo = (e) => {
|
|
4051
|
+
R("useExecuteCsvQuery");
|
|
4052
|
+
const t = new Z(Wn, [
|
|
4053
|
+
X()
|
|
4054
|
+
]), [n, r] = fe({
|
|
4043
4055
|
isLoading: !0,
|
|
4044
4056
|
isError: !1,
|
|
4045
4057
|
isSuccess: !1,
|
|
@@ -4049,16 +4061,16 @@ const zo = (e) => {
|
|
|
4049
4061
|
});
|
|
4050
4062
|
return t.subscribe((s) => {
|
|
4051
4063
|
r(s);
|
|
4052
|
-
}), t.run(
|
|
4053
|
-
t.run(
|
|
4054
|
-
}),
|
|
4064
|
+
}), t.run(S(e)), E([...A(e)], () => {
|
|
4065
|
+
t.run(S(e));
|
|
4066
|
+
}), ne(() => {
|
|
4055
4067
|
t.destroy();
|
|
4056
|
-
}),
|
|
4057
|
-
},
|
|
4058
|
-
|
|
4059
|
-
const t = new
|
|
4060
|
-
|
|
4061
|
-
]), [n, r] =
|
|
4068
|
+
}), D(n.value);
|
|
4069
|
+
}, eu = (e) => {
|
|
4070
|
+
R("useExecutePivotQuery");
|
|
4071
|
+
const t = new Z(Vn, [
|
|
4072
|
+
X()
|
|
4073
|
+
]), [n, r] = fe({
|
|
4062
4074
|
isLoading: !0,
|
|
4063
4075
|
isError: !1,
|
|
4064
4076
|
isSuccess: !1,
|
|
@@ -4068,16 +4080,16 @@ const zo = (e) => {
|
|
|
4068
4080
|
});
|
|
4069
4081
|
return t.subscribe((s) => {
|
|
4070
4082
|
r(s);
|
|
4071
|
-
}), t.run(
|
|
4072
|
-
t.run(
|
|
4073
|
-
}),
|
|
4083
|
+
}), t.run(S(e)), E([...A(e)], () => {
|
|
4084
|
+
t.run(S(e));
|
|
4085
|
+
}), ne(() => {
|
|
4074
4086
|
t.destroy();
|
|
4075
|
-
}),
|
|
4076
|
-
},
|
|
4077
|
-
|
|
4078
|
-
const t = new
|
|
4079
|
-
|
|
4080
|
-
]), [n, r] =
|
|
4087
|
+
}), D(n.value);
|
|
4088
|
+
}, tu = (e) => {
|
|
4089
|
+
R("useExecuteCustomWidgetQuery");
|
|
4090
|
+
const t = new Z(Hn, [
|
|
4091
|
+
X()
|
|
4092
|
+
]), [n, r] = fe({
|
|
4081
4093
|
data: void 0,
|
|
4082
4094
|
isLoading: !0,
|
|
4083
4095
|
isError: !1,
|
|
@@ -4087,17 +4099,17 @@ const zo = (e) => {
|
|
|
4087
4099
|
});
|
|
4088
4100
|
return t.subscribe((s) => {
|
|
4089
4101
|
r(s);
|
|
4090
|
-
}), t.run(
|
|
4091
|
-
t.run(
|
|
4092
|
-
}),
|
|
4102
|
+
}), t.run(S(e)), E([...A(e)], () => {
|
|
4103
|
+
t.run(S(e));
|
|
4104
|
+
}), ne(() => {
|
|
4093
4105
|
t.destroy();
|
|
4094
|
-
}),
|
|
4095
|
-
},
|
|
4096
|
-
|
|
4097
|
-
const { filter: t, parentFilters: n = [] } =
|
|
4106
|
+
}), D(n.value);
|
|
4107
|
+
}, nu = (e) => {
|
|
4108
|
+
R("useGetFilterMembers");
|
|
4109
|
+
const { filter: t, parentFilters: n = [] } = S(e), r = {
|
|
4098
4110
|
selectedMembers: [],
|
|
4099
4111
|
allMembers: [],
|
|
4100
|
-
...
|
|
4112
|
+
...Ja(t) ? {
|
|
4101
4113
|
excludeMembers: t.config.excludeMembers,
|
|
4102
4114
|
enableMultiSelection: t.config.enableMultiSelection,
|
|
4103
4115
|
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
|
@@ -4106,24 +4118,25 @@ const zo = (e) => {
|
|
|
4106
4118
|
enableMultiSelection: !1,
|
|
4107
4119
|
hasBackgroundFilter: !1
|
|
4108
4120
|
}
|
|
4109
|
-
}, s = new
|
|
4121
|
+
}, s = new Z(Kn, [X()]), [i, a] = fe({
|
|
4110
4122
|
isLoading: !0,
|
|
4111
4123
|
isError: !1,
|
|
4112
4124
|
isSuccess: !1,
|
|
4113
4125
|
status: "loading",
|
|
4114
4126
|
error: void 0,
|
|
4115
|
-
data: r
|
|
4127
|
+
data: r,
|
|
4128
|
+
isAllItemsLoaded: !1
|
|
4116
4129
|
});
|
|
4117
4130
|
return s.subscribe((o) => {
|
|
4118
4131
|
a(o);
|
|
4119
|
-
}), s.run(
|
|
4120
|
-
s.run(
|
|
4121
|
-
}),
|
|
4132
|
+
}), s.run(S(e)), E([...A(e)], () => {
|
|
4133
|
+
s.run(S(e));
|
|
4134
|
+
}), ne(() => {
|
|
4122
4135
|
s.destroy();
|
|
4123
|
-
}),
|
|
4124
|
-
},
|
|
4125
|
-
|
|
4126
|
-
const [t, n] =
|
|
4136
|
+
}), D(i.value);
|
|
4137
|
+
}, ru = (e) => {
|
|
4138
|
+
R("useGetDashboardModel");
|
|
4139
|
+
const [t, n] = W(ee, {
|
|
4127
4140
|
isLoading: !0,
|
|
4128
4141
|
isError: !1,
|
|
4129
4142
|
isSuccess: !1,
|
|
@@ -4133,7 +4146,7 @@ const zo = (e) => {
|
|
|
4133
4146
|
}), r = V(), s = async (a) => {
|
|
4134
4147
|
try {
|
|
4135
4148
|
n({ type: "loading" });
|
|
4136
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } =
|
|
4149
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = S(e), d = await zn(a.httpClient, o, {
|
|
4137
4150
|
includeWidgets: u,
|
|
4138
4151
|
includeFilters: c
|
|
4139
4152
|
});
|
|
@@ -4142,19 +4155,19 @@ const zo = (e) => {
|
|
|
4142
4155
|
n({ type: "error", error: o });
|
|
4143
4156
|
}
|
|
4144
4157
|
};
|
|
4145
|
-
|
|
4146
|
-
[...
|
|
4158
|
+
E(
|
|
4159
|
+
[...A(e), r],
|
|
4147
4160
|
() => {
|
|
4148
|
-
const { app: a } = r.value, { enabled: o } =
|
|
4161
|
+
const { app: a } = r.value, { enabled: o } = S(e);
|
|
4149
4162
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4150
4163
|
},
|
|
4151
4164
|
{ immediate: !0 }
|
|
4152
4165
|
);
|
|
4153
|
-
const i =
|
|
4154
|
-
return
|
|
4155
|
-
},
|
|
4156
|
-
|
|
4157
|
-
const [t, n] =
|
|
4166
|
+
const i = D(t.value);
|
|
4167
|
+
return D(Gn(i));
|
|
4168
|
+
}, su = (e) => {
|
|
4169
|
+
R("useGetDashboardModels");
|
|
4170
|
+
const [t, n] = W(ee, {
|
|
4158
4171
|
isLoading: !0,
|
|
4159
4172
|
isError: !1,
|
|
4160
4173
|
isSuccess: !1,
|
|
@@ -4164,25 +4177,25 @@ const zo = (e) => {
|
|
|
4164
4177
|
}), r = V(), s = async (a) => {
|
|
4165
4178
|
try {
|
|
4166
4179
|
n({ type: "loading" });
|
|
4167
|
-
const o =
|
|
4180
|
+
const o = S(e), u = await Qn(a.httpClient, o);
|
|
4168
4181
|
n({ type: "success", data: u });
|
|
4169
4182
|
} catch (o) {
|
|
4170
4183
|
n({ type: "error", error: o });
|
|
4171
4184
|
}
|
|
4172
4185
|
};
|
|
4173
|
-
|
|
4174
|
-
[...
|
|
4186
|
+
E(
|
|
4187
|
+
[...A(e), r],
|
|
4175
4188
|
() => {
|
|
4176
|
-
const { app: a } = r.value, { enabled: o } =
|
|
4189
|
+
const { app: a } = r.value, { enabled: o } = S(e);
|
|
4177
4190
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4178
4191
|
},
|
|
4179
4192
|
{ immediate: !0 }
|
|
4180
4193
|
);
|
|
4181
|
-
const i =
|
|
4182
|
-
return
|
|
4183
|
-
},
|
|
4184
|
-
|
|
4185
|
-
const [t, n] =
|
|
4194
|
+
const i = D(t.value);
|
|
4195
|
+
return D(Jn(i));
|
|
4196
|
+
}, iu = (e) => {
|
|
4197
|
+
R("useGetSharedFormula");
|
|
4198
|
+
const [t, n] = W(ee, {
|
|
4186
4199
|
isLoading: !0,
|
|
4187
4200
|
isError: !1,
|
|
4188
4201
|
isSuccess: !1,
|
|
@@ -4191,29 +4204,29 @@ const zo = (e) => {
|
|
|
4191
4204
|
data: void 0
|
|
4192
4205
|
}), r = V(), s = (a) => {
|
|
4193
4206
|
n({ type: "loading" });
|
|
4194
|
-
const { dataSource: o, name: u, oid: c } =
|
|
4207
|
+
const { dataSource: o, name: u, oid: c } = S(e);
|
|
4195
4208
|
let d = Promise.resolve(null);
|
|
4196
|
-
c ? d =
|
|
4209
|
+
c ? d = Zn(c, a) : u && o && (d = Xn(u, o, a)), d.then((f) => {
|
|
4197
4210
|
n({ type: "success", data: f });
|
|
4198
4211
|
}).catch((f) => {
|
|
4199
4212
|
n({ type: "error", error: f });
|
|
4200
4213
|
});
|
|
4201
4214
|
};
|
|
4202
|
-
|
|
4203
|
-
[...
|
|
4215
|
+
E(
|
|
4216
|
+
[...A(e), r],
|
|
4204
4217
|
() => {
|
|
4205
|
-
const { app: a } = r.value, { enabled: o } =
|
|
4218
|
+
const { app: a } = r.value, { enabled: o } = S(e);
|
|
4206
4219
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4207
4220
|
},
|
|
4208
4221
|
{ immediate: !0 }
|
|
4209
4222
|
);
|
|
4210
|
-
const i =
|
|
4211
|
-
return
|
|
4223
|
+
const i = D(t.value);
|
|
4224
|
+
return D(
|
|
4212
4225
|
Yn(i)
|
|
4213
4226
|
);
|
|
4214
|
-
},
|
|
4215
|
-
|
|
4216
|
-
const [t, n] =
|
|
4227
|
+
}, au = (e) => {
|
|
4228
|
+
R("useGetWidgetModel");
|
|
4229
|
+
const [t, n] = W(ee, {
|
|
4217
4230
|
isLoading: !0,
|
|
4218
4231
|
isError: !1,
|
|
4219
4232
|
isSuccess: !1,
|
|
@@ -4223,23 +4236,23 @@ const zo = (e) => {
|
|
|
4223
4236
|
}), r = V(), s = async (i) => {
|
|
4224
4237
|
try {
|
|
4225
4238
|
n({ type: "loading" });
|
|
4226
|
-
const { dashboardOid: a, widgetOid: o } =
|
|
4239
|
+
const { dashboardOid: a, widgetOid: o } = S(e), u = await er(i.httpClient, a, o);
|
|
4227
4240
|
n({ type: "success", data: u });
|
|
4228
4241
|
} catch (a) {
|
|
4229
4242
|
n({ type: "error", error: a });
|
|
4230
4243
|
}
|
|
4231
4244
|
};
|
|
4232
|
-
return
|
|
4233
|
-
[...
|
|
4245
|
+
return E(
|
|
4246
|
+
[...A(e), r],
|
|
4234
4247
|
() => {
|
|
4235
|
-
const { app: i } = r.value, { enabled: a } =
|
|
4248
|
+
const { app: i } = r.value, { enabled: a } = S(e);
|
|
4236
4249
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4237
4250
|
},
|
|
4238
4251
|
{ immediate: !0 }
|
|
4239
|
-
),
|
|
4240
|
-
},
|
|
4241
|
-
|
|
4242
|
-
const [t, n] =
|
|
4252
|
+
), D(t.value);
|
|
4253
|
+
}, ou = (e) => {
|
|
4254
|
+
R("useGetHierarchyModels");
|
|
4255
|
+
const [t, n] = W(ee, {
|
|
4243
4256
|
isLoading: !0,
|
|
4244
4257
|
isError: !1,
|
|
4245
4258
|
isSuccess: !1,
|
|
@@ -4249,22 +4262,22 @@ const zo = (e) => {
|
|
|
4249
4262
|
}), r = V(), s = async (i) => {
|
|
4250
4263
|
try {
|
|
4251
4264
|
n({ type: "loading" });
|
|
4252
|
-
const a = await tr(i.httpClient,
|
|
4265
|
+
const a = await tr(i.httpClient, S(e));
|
|
4253
4266
|
n({ type: "success", data: a });
|
|
4254
4267
|
} catch (a) {
|
|
4255
4268
|
n({ type: "error", error: a });
|
|
4256
4269
|
}
|
|
4257
4270
|
};
|
|
4258
|
-
return
|
|
4259
|
-
[...
|
|
4271
|
+
return E(
|
|
4272
|
+
[...A(e), r],
|
|
4260
4273
|
() => {
|
|
4261
|
-
const { app: i } = r.value, { enabled: a } =
|
|
4274
|
+
const { app: i } = r.value, { enabled: a } = S(e);
|
|
4262
4275
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4263
4276
|
},
|
|
4264
4277
|
{ immediate: !0 }
|
|
4265
|
-
),
|
|
4266
|
-
},
|
|
4267
|
-
const [r, s] =
|
|
4278
|
+
), D(t.value);
|
|
4279
|
+
}, uu = (e, t, n) => {
|
|
4280
|
+
const [r, s] = W(ee, {
|
|
4268
4281
|
isLoading: !0,
|
|
4269
4282
|
isError: !1,
|
|
4270
4283
|
isSuccess: !1,
|
|
@@ -4274,8 +4287,8 @@ const zo = (e) => {
|
|
|
4274
4287
|
}), i = V(), a = async (o) => {
|
|
4275
4288
|
try {
|
|
4276
4289
|
s({ type: "loading" });
|
|
4277
|
-
const u =
|
|
4278
|
-
requestConfig: d.requestConfig ?
|
|
4290
|
+
const u = Qe(e), c = t ? S(t) : {}, d = n ? S(n) : {}, f = {
|
|
4291
|
+
requestConfig: d.requestConfig ? S(d.requestConfig) : {},
|
|
4279
4292
|
skipTrackingParam: !0
|
|
4280
4293
|
}, l = await o.call(
|
|
4281
4294
|
o.url + u,
|
|
@@ -4287,19 +4300,19 @@ const zo = (e) => {
|
|
|
4287
4300
|
s({ type: "error", error: u });
|
|
4288
4301
|
}
|
|
4289
4302
|
};
|
|
4290
|
-
return
|
|
4291
|
-
[...
|
|
4303
|
+
return E(
|
|
4304
|
+
[...A(e, t, n), i],
|
|
4292
4305
|
() => {
|
|
4293
|
-
const { app: o } = i.value, u =
|
|
4306
|
+
const { app: o } = i.value, u = S(n || {}).enabled;
|
|
4294
4307
|
!o || !(u === void 0 || u === !0) || a(o.httpClient);
|
|
4295
4308
|
},
|
|
4296
4309
|
{ immediate: !0 }
|
|
4297
|
-
),
|
|
4310
|
+
), D(r.value);
|
|
4298
4311
|
};
|
|
4299
|
-
function
|
|
4312
|
+
function Xa(e, t) {
|
|
4300
4313
|
const n = document.createElement("div");
|
|
4301
4314
|
n.style.width = "100%", n.style.height = "100%";
|
|
4302
|
-
const r =
|
|
4315
|
+
const r = vr(e, t);
|
|
4303
4316
|
return r.mount(n), {
|
|
4304
4317
|
element: n,
|
|
4305
4318
|
app: r,
|
|
@@ -4308,7 +4321,7 @@ function Ja(e, t) {
|
|
|
4308
4321
|
}
|
|
4309
4322
|
};
|
|
4310
4323
|
}
|
|
4311
|
-
const
|
|
4324
|
+
const lu = () => {
|
|
4312
4325
|
const e = nr();
|
|
4313
4326
|
return {
|
|
4314
4327
|
/**
|
|
@@ -4319,7 +4332,7 @@ const iu = () => {
|
|
|
4319
4332
|
*/
|
|
4320
4333
|
registerCustomWidget: (t, n) => {
|
|
4321
4334
|
const r = (s) => {
|
|
4322
|
-
const i =
|
|
4335
|
+
const i = Xa(n, s);
|
|
4323
4336
|
return rr(
|
|
4324
4337
|
i.element,
|
|
4325
4338
|
() => i.destroy()
|
|
@@ -4338,16 +4351,16 @@ const iu = () => {
|
|
|
4338
4351
|
*/
|
|
4339
4352
|
hasCustomWidget: (t) => e.value.customWidgetsMap.has(t)
|
|
4340
4353
|
};
|
|
4341
|
-
},
|
|
4342
|
-
|
|
4343
|
-
const n = new
|
|
4344
|
-
|
|
4345
|
-
]), [r, s] =
|
|
4354
|
+
}, cu = (e, t = {}) => {
|
|
4355
|
+
R("useComposedDashboard");
|
|
4356
|
+
const n = new Z(sr, [
|
|
4357
|
+
X()
|
|
4358
|
+
]), [r, s] = fe(S(e));
|
|
4346
4359
|
n.subscribe(({ dashboard: o }) => {
|
|
4347
4360
|
s(o);
|
|
4348
|
-
}), n.run(
|
|
4349
|
-
n.run(
|
|
4350
|
-
}),
|
|
4361
|
+
}), n.run(S(e), t), E([...A(e)], () => {
|
|
4362
|
+
n.run(S(e), t);
|
|
4363
|
+
}), ne(() => {
|
|
4351
4364
|
n.destroy();
|
|
4352
4365
|
});
|
|
4353
4366
|
const i = at(n, "setFilters"), a = at(n, "setWidgetsLayout");
|
|
@@ -4356,7 +4369,25 @@ const iu = () => {
|
|
|
4356
4369
|
setFilters: i,
|
|
4357
4370
|
setWidgetsLayout: a
|
|
4358
4371
|
};
|
|
4359
|
-
},
|
|
4372
|
+
}, du = (e, t) => {
|
|
4373
|
+
R("useJtdWidget");
|
|
4374
|
+
const n = new Z(ir, [
|
|
4375
|
+
X(),
|
|
4376
|
+
ar()
|
|
4377
|
+
]), r = k(null);
|
|
4378
|
+
n.subscribe((i) => {
|
|
4379
|
+
r.value = i;
|
|
4380
|
+
});
|
|
4381
|
+
const s = () => {
|
|
4382
|
+
const i = xr(e), a = S(t);
|
|
4383
|
+
n.run(i, a);
|
|
4384
|
+
};
|
|
4385
|
+
return s(), E([...A(e), ...A(t)], () => {
|
|
4386
|
+
s();
|
|
4387
|
+
}), ne(() => {
|
|
4388
|
+
n.destroy();
|
|
4389
|
+
}), r;
|
|
4390
|
+
}, eo = m({
|
|
4360
4391
|
props: {
|
|
4361
4392
|
/**
|
|
4362
4393
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -4374,8 +4405,8 @@ const iu = () => {
|
|
|
4374
4405
|
*/
|
|
4375
4406
|
position: Object
|
|
4376
4407
|
},
|
|
4377
|
-
setup: (e, { slots: t }) => It(
|
|
4378
|
-
}),
|
|
4408
|
+
setup: (e, { slots: t }) => It(or, e, t, [])
|
|
4409
|
+
}), to = ({
|
|
4379
4410
|
drilldownPaths: e,
|
|
4380
4411
|
initialDimension: t
|
|
4381
4412
|
}) => {
|
|
@@ -4383,12 +4414,12 @@ const iu = () => {
|
|
|
4383
4414
|
throw new Error(
|
|
4384
4415
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
4385
4416
|
);
|
|
4386
|
-
const n =
|
|
4387
|
-
|
|
4417
|
+
const n = k([]), r = k(), s = k([]), i = k([]), a = We(() => [
|
|
4418
|
+
ur(t),
|
|
4388
4419
|
...n.value.map(({ nextDimension: l }) => l)
|
|
4389
|
-
]), o =
|
|
4420
|
+
]), o = We(
|
|
4390
4421
|
() => e.value.filter((l) => {
|
|
4391
|
-
if (
|
|
4422
|
+
if (O.isAttribute(l)) {
|
|
4392
4423
|
const y = l;
|
|
4393
4424
|
return a.value.every(
|
|
4394
4425
|
(h) => !ot(h, y)
|
|
@@ -4400,7 +4431,7 @@ const iu = () => {
|
|
|
4400
4431
|
);
|
|
4401
4432
|
})
|
|
4402
4433
|
), u = (l, g, p) => {
|
|
4403
|
-
n.value =
|
|
4434
|
+
n.value = lr(
|
|
4404
4435
|
n.value,
|
|
4405
4436
|
l,
|
|
4406
4437
|
g,
|
|
@@ -4411,7 +4442,7 @@ const iu = () => {
|
|
|
4411
4442
|
}, d = () => {
|
|
4412
4443
|
n.value = [], f();
|
|
4413
4444
|
}, f = () => {
|
|
4414
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
|
4445
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = cr(
|
|
4415
4446
|
n.value,
|
|
4416
4447
|
t,
|
|
4417
4448
|
l
|
|
@@ -4428,7 +4459,7 @@ const iu = () => {
|
|
|
4428
4459
|
sliceDrilldownSelections: c,
|
|
4429
4460
|
clearDrilldownSelections: d
|
|
4430
4461
|
};
|
|
4431
|
-
},
|
|
4462
|
+
}, no = m({
|
|
4432
4463
|
props: {
|
|
4433
4464
|
/**
|
|
4434
4465
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -4464,11 +4495,11 @@ const iu = () => {
|
|
|
4464
4495
|
},
|
|
4465
4496
|
setup: () => {
|
|
4466
4497
|
}
|
|
4467
|
-
}),
|
|
4498
|
+
}), ro = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, so = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, fu = /* @__PURE__ */ m({
|
|
4468
4499
|
__name: "drilldown-widget",
|
|
4469
|
-
props:
|
|
4500
|
+
props: no.props,
|
|
4470
4501
|
setup(e) {
|
|
4471
|
-
const t = e, { drilldownPaths: n, initialDimension: r, config: s } =
|
|
4502
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = D(t), i = k(null), a = k([]), {
|
|
4472
4503
|
drilldownFilters: o,
|
|
4473
4504
|
// computed
|
|
4474
4505
|
drilldownDimension: u,
|
|
@@ -4480,65 +4511,65 @@ const iu = () => {
|
|
|
4480
4511
|
selectDrilldown: f,
|
|
4481
4512
|
sliceDrilldownSelections: l,
|
|
4482
4513
|
clearDrilldownSelections: g
|
|
4483
|
-
} =
|
|
4514
|
+
} = to({
|
|
4484
4515
|
drilldownPaths: n,
|
|
4485
4516
|
initialDimension: r.value
|
|
4486
|
-
}), p = (
|
|
4487
|
-
f(a.value,
|
|
4488
|
-
}, y =
|
|
4489
|
-
const
|
|
4517
|
+
}), p = (P) => {
|
|
4518
|
+
f(a.value, P);
|
|
4519
|
+
}, y = We(() => {
|
|
4520
|
+
const P = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
|
4490
4521
|
return [
|
|
4491
|
-
|
|
4492
|
-
|
|
4522
|
+
dr(a.value, u.value),
|
|
4523
|
+
fr(
|
|
4493
4524
|
d.value,
|
|
4494
4525
|
u.value,
|
|
4495
4526
|
p,
|
|
4496
|
-
|
|
4527
|
+
P
|
|
4497
4528
|
)
|
|
4498
4529
|
];
|
|
4499
|
-
}), h = (
|
|
4500
|
-
i.value =
|
|
4501
|
-
}, x = (
|
|
4502
|
-
a.value =
|
|
4530
|
+
}), h = (P) => {
|
|
4531
|
+
i.value = P;
|
|
4532
|
+
}, x = (P) => {
|
|
4533
|
+
a.value = P;
|
|
4503
4534
|
}, w = () => {
|
|
4504
4535
|
i.value = null;
|
|
4505
4536
|
};
|
|
4506
|
-
return (
|
|
4507
|
-
Re(
|
|
4537
|
+
return (P, C) => (Cr(), wr("div", ro, [
|
|
4538
|
+
Re(P.$slots, "contextMenu", {
|
|
4508
4539
|
contextMenuProps: { position: i.value, itemSections: y.value, closeContextMenu: w }
|
|
4509
4540
|
}, () => [
|
|
4510
|
-
ut(
|
|
4541
|
+
ut(T(eo), {
|
|
4511
4542
|
position: i.value,
|
|
4512
4543
|
itemSections: y.value,
|
|
4513
4544
|
closeContextMenu: w
|
|
4514
4545
|
}, null, 8, ["position", "itemSections"])
|
|
4515
4546
|
]),
|
|
4516
|
-
Re(
|
|
4547
|
+
Re(P.$slots, "breadcrumbs", {
|
|
4517
4548
|
drilldownBreadcrumbsProps: {
|
|
4518
|
-
clearDrilldownSelections:
|
|
4519
|
-
sliceDrilldownSelections:
|
|
4520
|
-
drilldownFiltersDisplayValues:
|
|
4521
|
-
drilldownDimension:
|
|
4549
|
+
clearDrilldownSelections: T(g),
|
|
4550
|
+
sliceDrilldownSelections: T(l),
|
|
4551
|
+
drilldownFiltersDisplayValues: T(c),
|
|
4552
|
+
drilldownDimension: T(u)
|
|
4522
4553
|
}
|
|
4523
4554
|
}, () => [
|
|
4524
|
-
ut(
|
|
4525
|
-
"clear-drilldown-selections":
|
|
4526
|
-
"slice-drilldown-selections":
|
|
4527
|
-
"filters-display-values":
|
|
4528
|
-
"current-dimension":
|
|
4555
|
+
ut(T(Dr), {
|
|
4556
|
+
"clear-drilldown-selections": T(g),
|
|
4557
|
+
"slice-drilldown-selections": T(l),
|
|
4558
|
+
"filters-display-values": T(c),
|
|
4559
|
+
"current-dimension": T(u)
|
|
4529
4560
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
4530
4561
|
]),
|
|
4531
|
-
|
|
4532
|
-
Re(
|
|
4533
|
-
drilldownFilters:
|
|
4534
|
-
drilldownDimension:
|
|
4562
|
+
Pr("div", so, [
|
|
4563
|
+
Re(P.$slots, "chart", {
|
|
4564
|
+
drilldownFilters: T(o),
|
|
4565
|
+
drilldownDimension: T(u),
|
|
4535
4566
|
onDataPointsSelected: x,
|
|
4536
4567
|
onContextMenu: h
|
|
4537
4568
|
})
|
|
4538
4569
|
])
|
|
4539
4570
|
]));
|
|
4540
4571
|
}
|
|
4541
|
-
}),
|
|
4572
|
+
}), pu = m({
|
|
4542
4573
|
props: {
|
|
4543
4574
|
/**
|
|
4544
4575
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -4673,8 +4704,8 @@ const iu = () => {
|
|
|
4673
4704
|
*/
|
|
4674
4705
|
onDataReady: Function
|
|
4675
4706
|
},
|
|
4676
|
-
setup: (e) => b(
|
|
4677
|
-
}),
|
|
4707
|
+
setup: (e) => b(pr, e)
|
|
4708
|
+
}), gu = m({
|
|
4678
4709
|
props: {
|
|
4679
4710
|
/** @internal */
|
|
4680
4711
|
bottomSlot: Object,
|
|
@@ -4785,8 +4816,8 @@ const iu = () => {
|
|
|
4785
4816
|
*/
|
|
4786
4817
|
onDataReady: Function
|
|
4787
4818
|
},
|
|
4788
|
-
setup: (e) => b(
|
|
4789
|
-
}),
|
|
4819
|
+
setup: (e) => b(gr, e)
|
|
4820
|
+
}), hu = m({
|
|
4790
4821
|
props: {
|
|
4791
4822
|
bottomSlot: Object,
|
|
4792
4823
|
dataOptions: {
|
|
@@ -4801,8 +4832,8 @@ const iu = () => {
|
|
|
4801
4832
|
topSlot: Object,
|
|
4802
4833
|
widgetStyleOptions: Object
|
|
4803
4834
|
},
|
|
4804
|
-
setup: (e) => b(
|
|
4805
|
-
}),
|
|
4835
|
+
setup: (e) => b(hr, e)
|
|
4836
|
+
}), mu = m({
|
|
4806
4837
|
props: {
|
|
4807
4838
|
/**
|
|
4808
4839
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
@@ -4837,6 +4868,12 @@ const iu = () => {
|
|
|
4837
4868
|
* @category Widget
|
|
4838
4869
|
*/
|
|
4839
4870
|
styleOptions: Object,
|
|
4871
|
+
/**
|
|
4872
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.drilldownOptions}
|
|
4873
|
+
*
|
|
4874
|
+
* @category Widget
|
|
4875
|
+
*/
|
|
4876
|
+
drilldownOptions: Object,
|
|
4840
4877
|
/**
|
|
4841
4878
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.title}
|
|
4842
4879
|
*
|
|
@@ -4867,14 +4904,12 @@ const iu = () => {
|
|
|
4867
4904
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.onDataPointClick}
|
|
4868
4905
|
*
|
|
4869
4906
|
* @category Callbacks
|
|
4870
|
-
* @internal
|
|
4871
4907
|
*/
|
|
4872
4908
|
onDataPointClick: Function,
|
|
4873
4909
|
/**
|
|
4874
4910
|
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.onDataPointContextMenu}
|
|
4875
4911
|
*
|
|
4876
4912
|
* @category Callbacks
|
|
4877
|
-
* @internal
|
|
4878
4913
|
*/
|
|
4879
4914
|
onDataPointContextMenu: Function,
|
|
4880
4915
|
/**
|
|
@@ -4892,8 +4927,8 @@ const iu = () => {
|
|
|
4892
4927
|
*/
|
|
4893
4928
|
onHeaderCellFormat: Function
|
|
4894
4929
|
},
|
|
4895
|
-
setup: (e) => b(
|
|
4896
|
-
}),
|
|
4930
|
+
setup: (e) => b(mr, e)
|
|
4931
|
+
}), yu = m({
|
|
4897
4932
|
props: {
|
|
4898
4933
|
/**
|
|
4899
4934
|
* Unique identifier of the widget
|
|
@@ -5018,8 +5053,8 @@ const iu = () => {
|
|
|
5018
5053
|
*/
|
|
5019
5054
|
onDataPointsSelected: Function
|
|
5020
5055
|
},
|
|
5021
|
-
setup: (e) => b(
|
|
5022
|
-
}),
|
|
5056
|
+
setup: (e) => b(yr, e)
|
|
5057
|
+
}), bu = m({
|
|
5023
5058
|
props: {
|
|
5024
5059
|
/**
|
|
5025
5060
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -5033,8 +5068,8 @@ const iu = () => {
|
|
|
5033
5068
|
*/
|
|
5034
5069
|
config: Object
|
|
5035
5070
|
},
|
|
5036
|
-
setup: (e) => b(
|
|
5037
|
-
}),
|
|
5071
|
+
setup: (e) => b(br, e)
|
|
5072
|
+
}), Su = m({
|
|
5038
5073
|
props: {
|
|
5039
5074
|
/**
|
|
5040
5075
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -5072,113 +5107,118 @@ const iu = () => {
|
|
|
5072
5107
|
*/
|
|
5073
5108
|
styleOptions: Object
|
|
5074
5109
|
},
|
|
5075
|
-
setup: (e) => b(
|
|
5110
|
+
setup: (e) => b(Sr, e)
|
|
5076
5111
|
});
|
|
5077
|
-
function
|
|
5078
|
-
return
|
|
5112
|
+
function io(e) {
|
|
5113
|
+
return Or.toDashboardProps(e);
|
|
5079
5114
|
}
|
|
5080
|
-
const
|
|
5115
|
+
const Ou = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5081
5116
|
__proto__: null,
|
|
5082
|
-
toDashboardProps:
|
|
5083
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5117
|
+
toDashboardProps: io
|
|
5118
|
+
}, Symbol.toStringTag, { value: "Module" })), ao = (e, t) => te.replaceFilters(e, t), oo = (e, t) => te.addFilter(e, t), uo = (e, t) => te.addFilters(e, t), lo = (e, t, n) => te.replaceFilter(
|
|
5084
5119
|
e,
|
|
5085
5120
|
t,
|
|
5086
5121
|
n
|
|
5087
|
-
),
|
|
5122
|
+
), co = (e, t) => te.removeFilter(e, t), fo = (e, t) => te.removeFilters(e, t), vu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5088
5123
|
__proto__: null,
|
|
5089
|
-
addFilter:
|
|
5090
|
-
addFilters:
|
|
5091
|
-
removeFilter:
|
|
5092
|
-
removeFilters:
|
|
5093
|
-
replaceFilter:
|
|
5094
|
-
replaceFilters:
|
|
5095
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5096
|
-
function fo(e) {
|
|
5097
|
-
return W.toChartProps(e);
|
|
5098
|
-
}
|
|
5099
|
-
function po(e) {
|
|
5100
|
-
return W.toTableProps(e);
|
|
5101
|
-
}
|
|
5102
|
-
function go(e) {
|
|
5103
|
-
return W.toPivotTableProps(e);
|
|
5104
|
-
}
|
|
5124
|
+
addFilter: oo,
|
|
5125
|
+
addFilters: uo,
|
|
5126
|
+
removeFilter: co,
|
|
5127
|
+
removeFilters: fo,
|
|
5128
|
+
replaceFilter: lo,
|
|
5129
|
+
replaceFilters: ao
|
|
5130
|
+
}, Symbol.toStringTag, { value: "Module" })), po = (e) => B.toExecuteQueryParams(e), go = (e) => B.toExecutePivotQueryParams(e);
|
|
5105
5131
|
function ho(e) {
|
|
5106
|
-
return
|
|
5132
|
+
return B.toChartProps(e);
|
|
5107
5133
|
}
|
|
5108
5134
|
function mo(e) {
|
|
5109
|
-
return
|
|
5135
|
+
return B.toTableProps(e);
|
|
5110
5136
|
}
|
|
5111
5137
|
function yo(e) {
|
|
5112
|
-
return
|
|
5138
|
+
return B.toPivotTableProps(e);
|
|
5139
|
+
}
|
|
5140
|
+
function bo(e) {
|
|
5141
|
+
return B.toChartWidgetProps(e);
|
|
5142
|
+
}
|
|
5143
|
+
function So(e) {
|
|
5144
|
+
return B.toPivotTableWidgetProps(e);
|
|
5145
|
+
}
|
|
5146
|
+
function Oo(e) {
|
|
5147
|
+
return B.toTextWidgetProps(e);
|
|
5148
|
+
}
|
|
5149
|
+
function vo(e) {
|
|
5150
|
+
return B.toWidgetProps(e);
|
|
5113
5151
|
}
|
|
5114
|
-
const
|
|
5152
|
+
const xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5115
5153
|
__proto__: null,
|
|
5116
|
-
toChartProps:
|
|
5117
|
-
toChartWidgetProps:
|
|
5118
|
-
toExecutePivotQueryParams:
|
|
5119
|
-
toExecuteQueryParams:
|
|
5120
|
-
toPivotTableProps:
|
|
5121
|
-
toPivotTableWidgetProps:
|
|
5122
|
-
toTableProps:
|
|
5123
|
-
toTextWidgetProps:
|
|
5154
|
+
toChartProps: ho,
|
|
5155
|
+
toChartWidgetProps: bo,
|
|
5156
|
+
toExecutePivotQueryParams: go,
|
|
5157
|
+
toExecuteQueryParams: po,
|
|
5158
|
+
toPivotTableProps: yo,
|
|
5159
|
+
toPivotTableWidgetProps: So,
|
|
5160
|
+
toTableProps: mo,
|
|
5161
|
+
toTextWidgetProps: Oo,
|
|
5162
|
+
toWidgetProps: vo
|
|
5124
5163
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
5125
5164
|
export {
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5136
|
-
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5140
|
-
|
|
5141
|
-
|
|
5142
|
-
|
|
5143
|
-
|
|
5144
|
-
|
|
5145
|
-
|
|
5146
|
-
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5175
|
-
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5165
|
+
Po as AreaChart,
|
|
5166
|
+
Vo as AreaRangeChart,
|
|
5167
|
+
Uo as AreamapChart,
|
|
5168
|
+
Do as BarChart,
|
|
5169
|
+
Bo as BoxplotChart,
|
|
5170
|
+
jo as CalendarHeatmapChart,
|
|
5171
|
+
ko as Chart,
|
|
5172
|
+
pu as ChartWidget,
|
|
5173
|
+
Fo as ColumnChart,
|
|
5174
|
+
eo as ContextMenu,
|
|
5175
|
+
Go as CriteriaFilterTile,
|
|
5176
|
+
Pu as CustomWidgetsProvider,
|
|
5177
|
+
Su as Dashboard,
|
|
5178
|
+
bu as DashboardById,
|
|
5179
|
+
Ho as DateRangeFilterTile,
|
|
5180
|
+
Dr as DrilldownBreadcrumbs,
|
|
5181
|
+
fu as DrilldownWidget,
|
|
5182
|
+
Jo as FilterTile,
|
|
5183
|
+
Qo as FiltersPanel,
|
|
5184
|
+
Ao as FunnelChart,
|
|
5185
|
+
_o as IndicatorChart,
|
|
5186
|
+
Eo as LineChart,
|
|
5187
|
+
Ko as MemberFilterTile,
|
|
5188
|
+
Lo as PieChart,
|
|
5189
|
+
To as PivotTable,
|
|
5190
|
+
mu as PivotTableWidget,
|
|
5191
|
+
Io as PolarChart,
|
|
5192
|
+
zo as RelativeDateFilterTile,
|
|
5193
|
+
No as ScatterChart,
|
|
5194
|
+
qo as ScattermapChart,
|
|
5195
|
+
Du as SisenseContextProvider,
|
|
5196
|
+
Wo as StreamgraphChart,
|
|
5197
|
+
$o as SunburstChart,
|
|
5198
|
+
Ro as Table,
|
|
5199
|
+
hu as TableWidget,
|
|
5200
|
+
ju as ThemeProvider,
|
|
5201
|
+
Mo as TreemapChart,
|
|
5202
|
+
yu as Widget,
|
|
5203
|
+
gu as WidgetById,
|
|
5204
|
+
Fu as boxWhiskerProcessResult,
|
|
5205
|
+
vu as dashboardHelpers,
|
|
5206
|
+
Ou as dashboardModelTranslator,
|
|
5207
|
+
Au as extractDimensionsAndMeasures,
|
|
5208
|
+
cu as useComposedDashboard,
|
|
5209
|
+
lu as useCustomWidgets,
|
|
5210
|
+
Xo as useExecuteCsvQuery,
|
|
5211
|
+
tu as useExecuteCustomWidgetQuery,
|
|
5212
|
+
eu as useExecutePivotQuery,
|
|
5213
|
+
Yo as useExecuteQuery,
|
|
5214
|
+
Zo as useExecuteQueryByWidgetId,
|
|
5215
|
+
uu as useFetch,
|
|
5216
|
+
ru as useGetDashboardModel,
|
|
5217
|
+
su as useGetDashboardModels,
|
|
5218
|
+
nu as useGetFilterMembers,
|
|
5219
|
+
ou as useGetHierarchyModels,
|
|
5220
|
+
iu as useGetSharedFormula,
|
|
5221
|
+
au as useGetWidgetModel,
|
|
5222
|
+
du as useJtdWidget,
|
|
5223
|
+
xu as widgetModelTranslator
|
|
5184
5224
|
};
|