@sisense/sdk-ui-vue 2.14.0 → 2.16.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 +424 -34
- package/dist/ai.js +1345 -1070
- package/dist/index.cjs +1 -1
- package/dist/index.js +839 -659
- package/dist/packages/sdk-ui-vue/src/components/charts/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/components/charts/pivot-table.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/charts/streamgraph-chart.d.ts +182 -0
- package/dist/packages/sdk-ui-vue/src/components/widgets/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/components/widgets/pivot-table-widget.d.ts +208 -0
- package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-execute-pivot-query.d.ts +43 -0
- package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +1 -1
- package/dist/use-tracking-2e23927e.cjs +3089 -0
- package/dist/{use-tracking-6619ee21.js → use-tracking-becee384.js} +67778 -58508
- package/package.json +2 -2
- package/dist/use-tracking-217b1709.cjs +0 -1078
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { s as It,
|
|
2
|
-
import {
|
|
3
|
-
import { defineComponent as
|
|
4
|
-
const
|
|
1
|
+
import { s as It, e as ln, a as b, N as cn, O as dn, U as fn, A as pn, P as gn, E as hn, L as mn, F as yn, B as bn, b as Sn, $ as On, W as vn, R as xn, j as Cn, y as wn, H as Dn, c as jn, z as Pn, I as Fn, Y as An, d as Ln, Q as En, f as Nn, g as Rn, h as Tn, i as Mn, r as U, k as Fe, l as $n, m as Qe, n as _t, o as In, p as _n, q as kn, t as kt, u as Bt, S as it, v as Ut, w as xe, x as qt, C as Bn, D as q, G as V, J as M, K as E, M as O, X as Vt, T as Un, V as Je, Z as qn, _ as le, a0 as Vn, a1 as ce, a2 as de, a3 as Wn, a4 as Hn, a5 as Kn, a6 as zn, a7 as X, a8 as Gn, a9 as Qn, aa as Jn, ab as Yn, ac as Xn, ad as Zn, 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 ot, an as or, ao as ur, 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 Z, aA as W } from "./use-tracking-becee384.js";
|
|
2
|
+
import { aD as Ou, aB as vu, aC as xu, aE as Cu, aF as wu } from "./use-tracking-becee384.js";
|
|
3
|
+
import { defineComponent as m, watch as N, toRefs as j, ref as B, onBeforeUnmount as fe, createApp as Sr, computed as Ve, openBlock as Or, createElementBlock as vr, renderSlot as Re, createVNode as ut, unref as R, createElementVNode as xr } from "vue";
|
|
4
|
+
const Cr = m({
|
|
5
5
|
props: {
|
|
6
6
|
/**
|
|
7
7
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
|
@@ -41,7 +41,7 @@ const Or = y({
|
|
|
41
41
|
}
|
|
42
42
|
},
|
|
43
43
|
setup: (e, { slots: t }) => It(ln, e, t, [])
|
|
44
|
-
}),
|
|
44
|
+
}), vo = m({
|
|
45
45
|
props: {
|
|
46
46
|
/**
|
|
47
47
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
|
@@ -108,7 +108,7 @@ const Or = y({
|
|
|
108
108
|
onDataPointsSelected: Function
|
|
109
109
|
},
|
|
110
110
|
setup: (e) => b(cn, e)
|
|
111
|
-
}),
|
|
111
|
+
}), xo = m({
|
|
112
112
|
props: {
|
|
113
113
|
/**
|
|
114
114
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
|
@@ -175,7 +175,7 @@ const Or = y({
|
|
|
175
175
|
styleOptions: Object
|
|
176
176
|
},
|
|
177
177
|
setup: (e) => b(dn, e)
|
|
178
|
-
}),
|
|
178
|
+
}), Co = m({
|
|
179
179
|
props: {
|
|
180
180
|
/**
|
|
181
181
|
* {@inheritDoc @sisense/sdk-ui!CalendarHeatmapChartProps.dataOptions}
|
|
@@ -242,7 +242,7 @@ const Or = y({
|
|
|
242
242
|
onDataPointsSelected: Function
|
|
243
243
|
},
|
|
244
244
|
setup: (e) => b(fn, e)
|
|
245
|
-
}),
|
|
245
|
+
}), wo = m({
|
|
246
246
|
props: {
|
|
247
247
|
/**
|
|
248
248
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
|
@@ -309,7 +309,7 @@ const Or = y({
|
|
|
309
309
|
styleOptions: Object
|
|
310
310
|
},
|
|
311
311
|
setup: (e) => b(pn, e)
|
|
312
|
-
}),
|
|
312
|
+
}), Do = m({
|
|
313
313
|
props: {
|
|
314
314
|
/**
|
|
315
315
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
|
@@ -376,7 +376,7 @@ const Or = y({
|
|
|
376
376
|
styleOptions: Object
|
|
377
377
|
},
|
|
378
378
|
setup: (e) => b(gn, e)
|
|
379
|
-
}),
|
|
379
|
+
}), jo = m({
|
|
380
380
|
props: {
|
|
381
381
|
/**
|
|
382
382
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
|
@@ -443,7 +443,7 @@ const Or = y({
|
|
|
443
443
|
styleOptions: Object
|
|
444
444
|
},
|
|
445
445
|
setup: (e) => b(hn, e)
|
|
446
|
-
}),
|
|
446
|
+
}), Po = m({
|
|
447
447
|
props: {
|
|
448
448
|
/**
|
|
449
449
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
|
@@ -510,7 +510,7 @@ const Or = y({
|
|
|
510
510
|
styleOptions: Object
|
|
511
511
|
},
|
|
512
512
|
setup: (e) => b(mn, e)
|
|
513
|
-
}),
|
|
513
|
+
}), Fo = m({
|
|
514
514
|
props: {
|
|
515
515
|
/**
|
|
516
516
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
|
@@ -577,7 +577,7 @@ const Or = y({
|
|
|
577
577
|
styleOptions: Object
|
|
578
578
|
},
|
|
579
579
|
setup: (e) => b(yn, e)
|
|
580
|
-
}),
|
|
580
|
+
}), Ao = m({
|
|
581
581
|
props: {
|
|
582
582
|
/**
|
|
583
583
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
|
@@ -616,7 +616,7 @@ const Or = y({
|
|
|
616
616
|
onDataReady: Function
|
|
617
617
|
},
|
|
618
618
|
setup: (e) => b(bn, e)
|
|
619
|
-
}),
|
|
619
|
+
}), Lo = m({
|
|
620
620
|
props: {
|
|
621
621
|
/**
|
|
622
622
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
|
@@ -655,7 +655,7 @@ const Or = y({
|
|
|
655
655
|
styleOptions: Object
|
|
656
656
|
},
|
|
657
657
|
setup: (e) => b(Sn, e)
|
|
658
|
-
}),
|
|
658
|
+
}), Eo = m({
|
|
659
659
|
props: {
|
|
660
660
|
/**
|
|
661
661
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
|
@@ -722,7 +722,7 @@ const Or = y({
|
|
|
722
722
|
styleOptions: Object
|
|
723
723
|
},
|
|
724
724
|
setup: (e) => b(On, e)
|
|
725
|
-
}),
|
|
725
|
+
}), No = m({
|
|
726
726
|
props: {
|
|
727
727
|
/**
|
|
728
728
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
|
@@ -789,7 +789,7 @@ const Or = y({
|
|
|
789
789
|
styleOptions: Object
|
|
790
790
|
},
|
|
791
791
|
setup: (e) => b(vn, e)
|
|
792
|
-
}),
|
|
792
|
+
}), Ro = m({
|
|
793
793
|
props: {
|
|
794
794
|
/**
|
|
795
795
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
|
@@ -856,7 +856,7 @@ const Or = y({
|
|
|
856
856
|
styleOptions: Object
|
|
857
857
|
},
|
|
858
858
|
setup: (e) => b(xn, e)
|
|
859
|
-
}),
|
|
859
|
+
}), To = m({
|
|
860
860
|
props: {
|
|
861
861
|
/**
|
|
862
862
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
|
@@ -905,7 +905,7 @@ const Or = y({
|
|
|
905
905
|
onDataReady: Function
|
|
906
906
|
},
|
|
907
907
|
setup: (e) => b(Cn, e)
|
|
908
|
-
}),
|
|
908
|
+
}), Mo = m({
|
|
909
909
|
props: {
|
|
910
910
|
/**
|
|
911
911
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
|
@@ -985,7 +985,7 @@ const Or = y({
|
|
|
985
985
|
refreshCounter: Number
|
|
986
986
|
},
|
|
987
987
|
setup: (e) => b(wn, e)
|
|
988
|
-
}),
|
|
988
|
+
}), $o = m({
|
|
989
989
|
props: {
|
|
990
990
|
/**
|
|
991
991
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
|
@@ -1051,8 +1051,8 @@ const Or = y({
|
|
|
1051
1051
|
*/
|
|
1052
1052
|
onDataPointsSelected: Function
|
|
1053
1053
|
},
|
|
1054
|
-
setup: (e) => b(
|
|
1055
|
-
}),
|
|
1054
|
+
setup: (e) => b(Dn, e)
|
|
1055
|
+
}), Io = m({
|
|
1056
1056
|
props: {
|
|
1057
1057
|
/**
|
|
1058
1058
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
|
@@ -1100,8 +1100,8 @@ const Or = y({
|
|
|
1100
1100
|
*/
|
|
1101
1101
|
onDataPointClick: Function
|
|
1102
1102
|
},
|
|
1103
|
-
setup: (e) => b(
|
|
1104
|
-
}),
|
|
1103
|
+
setup: (e) => b(jn, e)
|
|
1104
|
+
}), _o = m({
|
|
1105
1105
|
props: {
|
|
1106
1106
|
/**
|
|
1107
1107
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
|
@@ -1149,8 +1149,75 @@ const Or = y({
|
|
|
1149
1149
|
*/
|
|
1150
1150
|
onDataPointClick: Object
|
|
1151
1151
|
},
|
|
1152
|
-
setup: (e) => b(
|
|
1153
|
-
}),
|
|
1152
|
+
setup: (e) => b(Pn, e)
|
|
1153
|
+
}), ko = m({
|
|
1154
|
+
props: {
|
|
1155
|
+
/**
|
|
1156
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataOptions}
|
|
1157
|
+
*
|
|
1158
|
+
* @category Chart
|
|
1159
|
+
*/
|
|
1160
|
+
dataOptions: {
|
|
1161
|
+
type: Object,
|
|
1162
|
+
required: !0
|
|
1163
|
+
},
|
|
1164
|
+
/**
|
|
1165
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.dataSet}
|
|
1166
|
+
*
|
|
1167
|
+
* @category Data
|
|
1168
|
+
*/
|
|
1169
|
+
dataSet: [String, Object],
|
|
1170
|
+
/**
|
|
1171
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.filters}
|
|
1172
|
+
*
|
|
1173
|
+
* @category Data
|
|
1174
|
+
*/
|
|
1175
|
+
filters: [Object, Array],
|
|
1176
|
+
/**
|
|
1177
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.highlights}
|
|
1178
|
+
*
|
|
1179
|
+
* @category Data
|
|
1180
|
+
*/
|
|
1181
|
+
highlights: Array,
|
|
1182
|
+
/**
|
|
1183
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.styleOptions}
|
|
1184
|
+
*
|
|
1185
|
+
* @category Chart
|
|
1186
|
+
*/
|
|
1187
|
+
styleOptions: Object,
|
|
1188
|
+
/**
|
|
1189
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onBeforeRender}
|
|
1190
|
+
*
|
|
1191
|
+
* @category Callbacks
|
|
1192
|
+
*/
|
|
1193
|
+
onBeforeRender: Function,
|
|
1194
|
+
/**
|
|
1195
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataReady}
|
|
1196
|
+
*
|
|
1197
|
+
* @category Callbacks
|
|
1198
|
+
*/
|
|
1199
|
+
onDataReady: Function,
|
|
1200
|
+
/**
|
|
1201
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointClick}
|
|
1202
|
+
*
|
|
1203
|
+
* @category Callbacks
|
|
1204
|
+
*/
|
|
1205
|
+
onDataPointClick: Function,
|
|
1206
|
+
/**
|
|
1207
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointContextMenu}
|
|
1208
|
+
*
|
|
1209
|
+
* @category Callbacks
|
|
1210
|
+
*/
|
|
1211
|
+
onDataPointContextMenu: Function,
|
|
1212
|
+
/**
|
|
1213
|
+
* {@inheritDoc @sisense/sdk-ui!StreamgraphChartProps.onDataPointsSelected}
|
|
1214
|
+
*
|
|
1215
|
+
* @category Callbacks
|
|
1216
|
+
*/
|
|
1217
|
+
onDataPointsSelected: Function
|
|
1218
|
+
},
|
|
1219
|
+
setup: (e) => b(Fn, e)
|
|
1220
|
+
}), Bo = m({
|
|
1154
1221
|
props: {
|
|
1155
1222
|
/**
|
|
1156
1223
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
|
@@ -1216,8 +1283,8 @@ const Or = y({
|
|
|
1216
1283
|
*/
|
|
1217
1284
|
styleOptions: Object
|
|
1218
1285
|
},
|
|
1219
|
-
setup: (e) => b(
|
|
1220
|
-
}),
|
|
1286
|
+
setup: (e) => b(An, e)
|
|
1287
|
+
}), Uo = m({
|
|
1221
1288
|
props: {
|
|
1222
1289
|
/**
|
|
1223
1290
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
|
@@ -1277,8 +1344,8 @@ const Or = y({
|
|
|
1277
1344
|
*/
|
|
1278
1345
|
onEdit: Function
|
|
1279
1346
|
},
|
|
1280
|
-
setup: (e) => b(
|
|
1281
|
-
}),
|
|
1347
|
+
setup: (e) => b(Ln, e)
|
|
1348
|
+
}), qo = m({
|
|
1282
1349
|
props: {
|
|
1283
1350
|
/**
|
|
1284
1351
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
|
@@ -1325,8 +1392,8 @@ const Or = y({
|
|
|
1325
1392
|
*/
|
|
1326
1393
|
onEdit: Function
|
|
1327
1394
|
},
|
|
1328
|
-
setup: (e) => b(
|
|
1329
|
-
}),
|
|
1395
|
+
setup: (e) => b(En, e)
|
|
1396
|
+
}), Vo = m({
|
|
1330
1397
|
props: {
|
|
1331
1398
|
/**
|
|
1332
1399
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
|
@@ -1366,8 +1433,8 @@ const Or = y({
|
|
|
1366
1433
|
*/
|
|
1367
1434
|
onEdit: Function
|
|
1368
1435
|
},
|
|
1369
|
-
setup: (e) => b(
|
|
1370
|
-
}),
|
|
1436
|
+
setup: (e) => b(Nn, e)
|
|
1437
|
+
}), Wo = m({
|
|
1371
1438
|
props: {
|
|
1372
1439
|
/**
|
|
1373
1440
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
|
@@ -1412,8 +1479,8 @@ const Or = y({
|
|
|
1412
1479
|
*/
|
|
1413
1480
|
onEdit: Function
|
|
1414
1481
|
},
|
|
1415
|
-
setup: (e) => b(
|
|
1416
|
-
}),
|
|
1482
|
+
setup: (e) => b(Rn, e)
|
|
1483
|
+
}), Ho = m({
|
|
1417
1484
|
props: {
|
|
1418
1485
|
/**
|
|
1419
1486
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
|
@@ -1443,7 +1510,7 @@ const Or = y({
|
|
|
1443
1510
|
onEdit: Function
|
|
1444
1511
|
},
|
|
1445
1512
|
setup: (e) => b(Tn, e)
|
|
1446
|
-
}),
|
|
1513
|
+
}), Ko = m({
|
|
1447
1514
|
props: {
|
|
1448
1515
|
/**
|
|
1449
1516
|
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
|
@@ -1474,8 +1541,8 @@ const Or = y({
|
|
|
1474
1541
|
required: !0
|
|
1475
1542
|
}
|
|
1476
1543
|
},
|
|
1477
|
-
setup: (e) => b(
|
|
1478
|
-
}),
|
|
1544
|
+
setup: (e) => b(Mn, e)
|
|
1545
|
+
}), wr = {
|
|
1479
1546
|
type: "logger",
|
|
1480
1547
|
log(e) {
|
|
1481
1548
|
this.output("log", e);
|
|
@@ -1490,14 +1557,14 @@ const Or = y({
|
|
|
1490
1557
|
console && console[e] && console[e].apply(console, t);
|
|
1491
1558
|
}
|
|
1492
1559
|
};
|
|
1493
|
-
class
|
|
1560
|
+
class Ce {
|
|
1494
1561
|
constructor(t) {
|
|
1495
1562
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1496
1563
|
this.init(t, n);
|
|
1497
1564
|
}
|
|
1498
1565
|
init(t) {
|
|
1499
1566
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1500
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
|
1567
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || wr, this.options = n, this.debug = n.debug;
|
|
1501
1568
|
}
|
|
1502
1569
|
log() {
|
|
1503
1570
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
|
@@ -1523,16 +1590,16 @@ class Se {
|
|
|
1523
1590
|
return s && !this.debug ? null : (typeof t[0] == "string" && (t[0] = `${r}${this.prefix} ${t[0]}`), this.logger[n](t));
|
|
1524
1591
|
}
|
|
1525
1592
|
create(t) {
|
|
1526
|
-
return new
|
|
1593
|
+
return new Ce(this.logger, {
|
|
1527
1594
|
prefix: `${this.prefix}:${t}:`,
|
|
1528
1595
|
...this.options
|
|
1529
1596
|
});
|
|
1530
1597
|
}
|
|
1531
1598
|
clone(t) {
|
|
1532
|
-
return t = t || this.options, t.prefix = t.prefix || this.prefix, new
|
|
1599
|
+
return t = t || this.options, t.prefix = t.prefix || this.prefix, new Ce(this.logger, t);
|
|
1533
1600
|
}
|
|
1534
1601
|
}
|
|
1535
|
-
var _ = new
|
|
1602
|
+
var _ = new Ce();
|
|
1536
1603
|
class Ae {
|
|
1537
1604
|
constructor() {
|
|
1538
1605
|
this.observers = {};
|
|
@@ -1571,7 +1638,7 @@ function ie() {
|
|
|
1571
1638
|
function lt(e) {
|
|
1572
1639
|
return e == null ? "" : "" + e;
|
|
1573
1640
|
}
|
|
1574
|
-
function
|
|
1641
|
+
function Dr(e, t, n) {
|
|
1575
1642
|
e.forEach((r) => {
|
|
1576
1643
|
t[r] && (n[r] = t[r]);
|
|
1577
1644
|
});
|
|
@@ -1602,14 +1669,14 @@ function ct(e, t, n) {
|
|
|
1602
1669
|
} = Ye(e, t, Object);
|
|
1603
1670
|
r[s] = n;
|
|
1604
1671
|
}
|
|
1605
|
-
function
|
|
1672
|
+
function jr(e, t, n, r) {
|
|
1606
1673
|
const {
|
|
1607
1674
|
obj: s,
|
|
1608
1675
|
k: i
|
|
1609
1676
|
} = Ye(e, t, Object);
|
|
1610
1677
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
|
1611
1678
|
}
|
|
1612
|
-
function
|
|
1679
|
+
function we(e, t) {
|
|
1613
1680
|
const {
|
|
1614
1681
|
obj: n,
|
|
1615
1682
|
k: r
|
|
@@ -1617,19 +1684,19 @@ function Oe(e, t) {
|
|
|
1617
1684
|
if (n)
|
|
1618
1685
|
return n[r];
|
|
1619
1686
|
}
|
|
1620
|
-
function
|
|
1621
|
-
const r =
|
|
1622
|
-
return r !== void 0 ? r :
|
|
1687
|
+
function Pr(e, t, n) {
|
|
1688
|
+
const r = we(e, n);
|
|
1689
|
+
return r !== void 0 ? r : we(t, n);
|
|
1623
1690
|
}
|
|
1624
|
-
function
|
|
1691
|
+
function Wt(e, t, n) {
|
|
1625
1692
|
for (const r in t)
|
|
1626
|
-
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]) :
|
|
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]) : Wt(e[r], t[r], n) : e[r] = t[r]);
|
|
1627
1694
|
return e;
|
|
1628
1695
|
}
|
|
1629
|
-
function
|
|
1696
|
+
function J(e) {
|
|
1630
1697
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
|
1631
1698
|
}
|
|
1632
|
-
var
|
|
1699
|
+
var Fr = {
|
|
1633
1700
|
"&": "&",
|
|
1634
1701
|
"<": "<",
|
|
1635
1702
|
">": ">",
|
|
@@ -1637,13 +1704,13 @@ var Pr = {
|
|
|
1637
1704
|
"'": "'",
|
|
1638
1705
|
"/": "/"
|
|
1639
1706
|
};
|
|
1640
|
-
function
|
|
1641
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
|
1707
|
+
function Ar(e) {
|
|
1708
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => Fr[t]) : e;
|
|
1642
1709
|
}
|
|
1643
|
-
const
|
|
1644
|
-
function
|
|
1710
|
+
const Lr = [" ", ",", "?", "!", ";"];
|
|
1711
|
+
function Er(e, t, n) {
|
|
1645
1712
|
t = t || "", n = n || "";
|
|
1646
|
-
const r =
|
|
1713
|
+
const r = Lr.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
|
1647
1714
|
if (r.length === 0)
|
|
1648
1715
|
return !0;
|
|
1649
1716
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
|
@@ -1654,7 +1721,7 @@ function Fr(e, t, n) {
|
|
|
1654
1721
|
}
|
|
1655
1722
|
return i;
|
|
1656
1723
|
}
|
|
1657
|
-
function
|
|
1724
|
+
function De(e, t) {
|
|
1658
1725
|
let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : ".";
|
|
1659
1726
|
if (!e)
|
|
1660
1727
|
return;
|
|
@@ -1680,13 +1747,13 @@ function ve(e, t) {
|
|
|
1680
1747
|
return u[o];
|
|
1681
1748
|
}
|
|
1682
1749
|
const c = r.slice(i + a).join(n);
|
|
1683
|
-
return c ?
|
|
1750
|
+
return c ? De(u, c, n) : void 0;
|
|
1684
1751
|
}
|
|
1685
1752
|
s = s[r[i]];
|
|
1686
1753
|
}
|
|
1687
1754
|
return s;
|
|
1688
1755
|
}
|
|
1689
|
-
function
|
|
1756
|
+
function je(e) {
|
|
1690
1757
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
|
1691
1758
|
}
|
|
1692
1759
|
class dt extends Ae {
|
|
@@ -1709,8 +1776,8 @@ class dt extends Ae {
|
|
|
1709
1776
|
const i = s.keySeparator !== void 0 ? s.keySeparator : this.options.keySeparator, a = s.ignoreJSONStructure !== void 0 ? s.ignoreJSONStructure : this.options.ignoreJSONStructure;
|
|
1710
1777
|
let o = [t, n];
|
|
1711
1778
|
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("."));
|
|
1712
|
-
const u =
|
|
1713
|
-
return u || !a || typeof r != "string" ? u :
|
|
1779
|
+
const u = we(this.data, o);
|
|
1780
|
+
return u || !a || typeof r != "string" ? u : De(this.data && this.data[t] && this.data[t][n], r, i);
|
|
1714
1781
|
}
|
|
1715
1782
|
addResource(t, n, r, s) {
|
|
1716
1783
|
let i = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
@@ -1735,8 +1802,8 @@ class dt extends Ae {
|
|
|
1735
1802
|
silent: !1
|
|
1736
1803
|
}, o = [t, n];
|
|
1737
1804
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
|
1738
|
-
let u =
|
|
1739
|
-
s ?
|
|
1805
|
+
let u = we(this.data, o) || {};
|
|
1806
|
+
s ? Wt(u, r, i) : u = {
|
|
1740
1807
|
...u,
|
|
1741
1808
|
...r
|
|
1742
1809
|
}, ct(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
|
@@ -1763,7 +1830,7 @@ class dt extends Ae {
|
|
|
1763
1830
|
return this.data;
|
|
1764
1831
|
}
|
|
1765
1832
|
}
|
|
1766
|
-
var
|
|
1833
|
+
var Ht = {
|
|
1767
1834
|
processors: {},
|
|
1768
1835
|
addPostProcessor(e) {
|
|
1769
1836
|
this.processors[e.name] = e;
|
|
@@ -1775,10 +1842,10 @@ var Wt = {
|
|
|
1775
1842
|
}
|
|
1776
1843
|
};
|
|
1777
1844
|
const ft = {};
|
|
1778
|
-
class
|
|
1845
|
+
class Pe extends Ae {
|
|
1779
1846
|
constructor(t) {
|
|
1780
1847
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
1781
|
-
super(),
|
|
1848
|
+
super(), Dr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = _.create("translator");
|
|
1782
1849
|
}
|
|
1783
1850
|
changeLanguage(t) {
|
|
1784
1851
|
t && (this.language = t);
|
|
@@ -1797,7 +1864,7 @@ class Ce extends Ae {
|
|
|
1797
1864
|
r === void 0 && (r = ":");
|
|
1798
1865
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
|
1799
1866
|
let i = n.ns || this.options.defaultNS || [];
|
|
1800
|
-
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
|
1867
|
+
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Er(t, r, s);
|
|
1801
1868
|
if (a && !o) {
|
|
1802
1869
|
const u = t.match(this.interpolator.nestingRegexp);
|
|
1803
1870
|
if (u && u.length > 0)
|
|
@@ -1844,8 +1911,8 @@ class Ce extends Ae {
|
|
|
1844
1911
|
}
|
|
1845
1912
|
const f = this.resolve(t, n);
|
|
1846
1913
|
let l = f && f.res;
|
|
1847
|
-
const g = f && f.usedKey || a, p = f && f.exactUsedKey || a,
|
|
1848
|
-
if (w && l && (typeof l != "string" && typeof l != "boolean" && typeof l != "number") && h.indexOf(
|
|
1914
|
+
const g = f && f.usedKey || a, p = f && f.exactUsedKey || a, y = Object.prototype.toString.apply(l), h = ["[object Number]", "[object Function]", "[object RegExp]"], x = n.joinArrays !== void 0 ? n.joinArrays : this.options.joinArrays, w = !this.i18nFormat || this.i18nFormat.handleAsObject;
|
|
1915
|
+
if (w && l && (typeof l != "string" && typeof l != "boolean" && typeof l != "number") && h.indexOf(y) < 0 && !(typeof x == "string" && y === "[object Array]")) {
|
|
1849
1916
|
if (!n.returnObjects && !this.options.returnObjects) {
|
|
1850
1917
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
|
1851
1918
|
const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, l, {
|
|
@@ -1855,27 +1922,27 @@ class Ce extends Ae {
|
|
|
1855
1922
|
return s ? (f.res = C, f) : C;
|
|
1856
1923
|
}
|
|
1857
1924
|
if (i) {
|
|
1858
|
-
const C =
|
|
1859
|
-
for (const
|
|
1860
|
-
if (Object.prototype.hasOwnProperty.call(l,
|
|
1861
|
-
const
|
|
1862
|
-
A[
|
|
1925
|
+
const C = y === "[object Array]", A = C ? [] : {}, $ = C ? p : g;
|
|
1926
|
+
for (const F in l)
|
|
1927
|
+
if (Object.prototype.hasOwnProperty.call(l, F)) {
|
|
1928
|
+
const pe = `${$}${i}${F}`;
|
|
1929
|
+
A[F] = this.translate(pe, {
|
|
1863
1930
|
...n,
|
|
1864
1931
|
joinArrays: !1,
|
|
1865
1932
|
ns: o
|
|
1866
|
-
}), A[
|
|
1933
|
+
}), A[F] === pe && (A[F] = l[F]);
|
|
1867
1934
|
}
|
|
1868
1935
|
l = A;
|
|
1869
1936
|
}
|
|
1870
|
-
} else if (w && typeof x == "string" &&
|
|
1937
|
+
} else if (w && typeof x == "string" && y === "[object Array]")
|
|
1871
1938
|
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
|
1872
1939
|
else {
|
|
1873
1940
|
let C = !1, A = !1;
|
|
1874
|
-
const $ = n.count !== void 0 && typeof n.count != "string",
|
|
1941
|
+
const $ = n.count !== void 0 && typeof n.count != "string", F = Pe.hasDefaultValue(n), pe = $ ? this.pluralResolver.getSuffix(c, n.count, n) : "", on = n.ordinal && $ ? this.pluralResolver.getSuffix(c, n.count, {
|
|
1875
1942
|
ordinal: !1
|
|
1876
|
-
}) : "", ne = n[`defaultValue${
|
|
1877
|
-
!this.isValidLookup(l) &&
|
|
1878
|
-
const un = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && A ? void 0 : l, re =
|
|
1943
|
+
}) : "", ne = n[`defaultValue${pe}`] || n[`defaultValue${on}`] || n.defaultValue;
|
|
1944
|
+
!this.isValidLookup(l) && F && (C = !0, l = ne), this.isValidLookup(l) || (A = !0, l = a);
|
|
1945
|
+
const un = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && A ? void 0 : l, re = F && ne !== l && this.options.updateMissing;
|
|
1879
1946
|
if (A || C || re) {
|
|
1880
1947
|
if (this.logger.log(re ? "updateKey" : "missingKey", c, u, a, re ? ne : l), i) {
|
|
1881
1948
|
const L = this.resolve(a, {
|
|
@@ -1885,19 +1952,19 @@ class Ce extends Ae {
|
|
|
1885
1952
|
L && L.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.");
|
|
1886
1953
|
}
|
|
1887
1954
|
let se = [];
|
|
1888
|
-
const
|
|
1889
|
-
if (this.options.saveMissingTo === "fallback" &&
|
|
1890
|
-
for (let L = 0; L <
|
|
1891
|
-
se.push(
|
|
1955
|
+
const ge = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
|
1956
|
+
if (this.options.saveMissingTo === "fallback" && ge && ge[0])
|
|
1957
|
+
for (let L = 0; L < ge.length; L++)
|
|
1958
|
+
se.push(ge[L]);
|
|
1892
1959
|
else
|
|
1893
1960
|
this.options.saveMissingTo === "all" ? se = this.languageUtils.toResolveHierarchy(n.lng || this.language) : se.push(n.lng || this.language);
|
|
1894
|
-
const nt = (L,
|
|
1895
|
-
const st =
|
|
1896
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(L, u,
|
|
1961
|
+
const nt = (L, Q, rt) => {
|
|
1962
|
+
const st = F && rt !== l ? rt : un;
|
|
1963
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(L, u, Q, st, re, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(L, u, Q, st, re, n), this.emit("missingKey", L, u, Q, l);
|
|
1897
1964
|
};
|
|
1898
1965
|
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? se.forEach((L) => {
|
|
1899
|
-
this.pluralResolver.getSuffixes(L, n).forEach((
|
|
1900
|
-
nt([L], a +
|
|
1966
|
+
this.pluralResolver.getSuffixes(L, n).forEach((Q) => {
|
|
1967
|
+
nt([L], a + Q, n[`defaultValue${Q}`] || ne);
|
|
1901
1968
|
});
|
|
1902
1969
|
}) : nt(se, a, ne));
|
|
1903
1970
|
}
|
|
@@ -1943,7 +2010,7 @@ class Ce extends Ae {
|
|
|
1943
2010
|
}, r)), r.interpolation && this.interpolator.reset();
|
|
1944
2011
|
}
|
|
1945
2012
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
|
1946
|
-
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t =
|
|
2013
|
+
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t = Ht.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
|
1947
2014
|
i18nResolved: s,
|
|
1948
2015
|
...r
|
|
1949
2016
|
} : r, this)), t;
|
|
@@ -1957,9 +2024,9 @@ class Ce extends Ae {
|
|
|
1957
2024
|
s = d;
|
|
1958
2025
|
let f = c.namespaces;
|
|
1959
2026
|
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
|
1960
|
-
const l = n.count !== void 0 && typeof n.count != "string", g = l && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "",
|
|
2027
|
+
const l = n.count !== void 0 && typeof n.count != "string", g = l && !n.ordinal && n.count === 0 && this.pluralResolver.shouldUseIntlApi(), p = n.context !== void 0 && (typeof n.context == "string" || typeof n.context == "number") && n.context !== "", y = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
|
1961
2028
|
f.forEach((h) => {
|
|
1962
|
-
this.isValidLookup(r) || (o = h, !ft[`${
|
|
2029
|
+
this.isValidLookup(r) || (o = h, !ft[`${y[0]}-${h}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (ft[`${y[0]}-${h}`] = !0, this.logger.warn(`key "${s}" for languages "${y.join(", ")}" won't get resolved as namespace "${o}" was not yet loaded`, "This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")), y.forEach((x) => {
|
|
1963
2030
|
if (this.isValidLookup(r))
|
|
1964
2031
|
return;
|
|
1965
2032
|
a = x;
|
|
@@ -1971,13 +2038,13 @@ class Ce extends Ae {
|
|
|
1971
2038
|
l && (C = this.pluralResolver.getSuffix(x, n.count, n));
|
|
1972
2039
|
const A = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
|
1973
2040
|
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d + A)), p) {
|
|
1974
|
-
const
|
|
1975
|
-
w.push(
|
|
2041
|
+
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 + A));
|
|
1976
2043
|
}
|
|
1977
2044
|
}
|
|
1978
|
-
let
|
|
1979
|
-
for (;
|
|
1980
|
-
this.isValidLookup(r) || (i =
|
|
2045
|
+
let D;
|
|
2046
|
+
for (; D = w.pop(); )
|
|
2047
|
+
this.isValidLookup(r) || (i = D, r = this.getResource(x, h, D, n));
|
|
1981
2048
|
}));
|
|
1982
2049
|
});
|
|
1983
2050
|
}), {
|
|
@@ -2003,7 +2070,7 @@ class Ce extends Ae {
|
|
|
2003
2070
|
return !1;
|
|
2004
2071
|
}
|
|
2005
2072
|
}
|
|
2006
|
-
function
|
|
2073
|
+
function Te(e) {
|
|
2007
2074
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
2008
2075
|
}
|
|
2009
2076
|
class pt {
|
|
@@ -2011,13 +2078,13 @@ class pt {
|
|
|
2011
2078
|
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = _.create("languageUtils");
|
|
2012
2079
|
}
|
|
2013
2080
|
getScriptPartFromCode(t) {
|
|
2014
|
-
if (t =
|
|
2081
|
+
if (t = je(t), !t || t.indexOf("-") < 0)
|
|
2015
2082
|
return null;
|
|
2016
2083
|
const n = t.split("-");
|
|
2017
2084
|
return n.length === 2 || (n.pop(), n[n.length - 1].toLowerCase() === "x") ? null : this.formatLanguageCode(n.join("-"));
|
|
2018
2085
|
}
|
|
2019
2086
|
getLanguagePartFromCode(t) {
|
|
2020
|
-
if (t =
|
|
2087
|
+
if (t = je(t), !t || t.indexOf("-") < 0)
|
|
2021
2088
|
return t;
|
|
2022
2089
|
const n = t.split("-");
|
|
2023
2090
|
return this.formatLanguageCode(n[0]);
|
|
@@ -2026,7 +2093,7 @@ class pt {
|
|
|
2026
2093
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
|
2027
2094
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
|
2028
2095
|
let r = t.split("-");
|
|
2029
|
-
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] =
|
|
2096
|
+
return this.options.lowerCaseLng ? r = r.map((s) => s.toLowerCase()) : r.length === 2 ? (r[0] = r[0].toLowerCase(), r[1] = r[1].toUpperCase(), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Te(r[1].toLowerCase()))) : r.length === 3 && (r[0] = r[0].toLowerCase(), r[1].length === 2 && (r[1] = r[1].toUpperCase()), r[0] !== "sgn" && r[2].length === 2 && (r[2] = r[2].toUpperCase()), n.indexOf(r[1].toLowerCase()) > -1 && (r[1] = Te(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Te(r[2].toLowerCase()))), r.join("-");
|
|
2030
2097
|
}
|
|
2031
2098
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
|
2032
2099
|
}
|
|
@@ -2075,7 +2142,7 @@ class pt {
|
|
|
2075
2142
|
}), s;
|
|
2076
2143
|
}
|
|
2077
2144
|
}
|
|
2078
|
-
let
|
|
2145
|
+
let Nr = [{
|
|
2079
2146
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
|
2080
2147
|
nr: [1, 2],
|
|
2081
2148
|
fc: 1
|
|
@@ -2167,7 +2234,7 @@ let Ar = [{
|
|
|
2167
2234
|
lngs: ["he", "iw"],
|
|
2168
2235
|
nr: [1, 2, 20, 21],
|
|
2169
2236
|
fc: 22
|
|
2170
|
-
}],
|
|
2237
|
+
}], Rr = {
|
|
2171
2238
|
1: function(e) {
|
|
2172
2239
|
return +(e > 1);
|
|
2173
2240
|
},
|
|
@@ -2235,7 +2302,7 @@ let Ar = [{
|
|
|
2235
2302
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
|
2236
2303
|
}
|
|
2237
2304
|
};
|
|
2238
|
-
const
|
|
2305
|
+
const Tr = ["v1", "v2", "v3"], Mr = ["v4"], gt = {
|
|
2239
2306
|
zero: 0,
|
|
2240
2307
|
one: 1,
|
|
2241
2308
|
two: 2,
|
|
@@ -2243,21 +2310,21 @@ const Er = ["v1", "v2", "v3"], Nr = ["v4"], gt = {
|
|
|
2243
2310
|
many: 4,
|
|
2244
2311
|
other: 5
|
|
2245
2312
|
};
|
|
2246
|
-
function
|
|
2313
|
+
function $r() {
|
|
2247
2314
|
const e = {};
|
|
2248
|
-
return
|
|
2315
|
+
return Nr.forEach((t) => {
|
|
2249
2316
|
t.lngs.forEach((n) => {
|
|
2250
2317
|
e[n] = {
|
|
2251
2318
|
numbers: t.nr,
|
|
2252
|
-
plurals:
|
|
2319
|
+
plurals: Rr[t.fc]
|
|
2253
2320
|
};
|
|
2254
2321
|
});
|
|
2255
2322
|
}), e;
|
|
2256
2323
|
}
|
|
2257
|
-
class
|
|
2324
|
+
class Ir {
|
|
2258
2325
|
constructor(t) {
|
|
2259
2326
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2260
|
-
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON ||
|
|
2327
|
+
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON || Mr.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 = $r();
|
|
2261
2328
|
}
|
|
2262
2329
|
addRule(t, n) {
|
|
2263
2330
|
this.rules[t] = n;
|
|
@@ -2266,7 +2333,7 @@ class Rr {
|
|
|
2266
2333
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
2267
2334
|
if (this.shouldUseIntlApi())
|
|
2268
2335
|
try {
|
|
2269
|
-
return new Intl.PluralRules(
|
|
2336
|
+
return new Intl.PluralRules(je(t), {
|
|
2270
2337
|
type: n.ordinal ? "ordinal" : "cardinal"
|
|
2271
2338
|
});
|
|
2272
2339
|
} catch {
|
|
@@ -2301,14 +2368,14 @@ class Rr {
|
|
|
2301
2368
|
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();
|
|
2302
2369
|
}
|
|
2303
2370
|
shouldUseIntlApi() {
|
|
2304
|
-
return !
|
|
2371
|
+
return !Tr.includes(this.options.compatibilityJSON);
|
|
2305
2372
|
}
|
|
2306
2373
|
}
|
|
2307
2374
|
function ht(e, t, n) {
|
|
2308
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
|
2309
|
-
return !i && s && typeof n == "string" && (i =
|
|
2375
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Pr(e, t, n);
|
|
2376
|
+
return !i && s && typeof n == "string" && (i = De(e, n, r), i === void 0 && (i = De(t, n, r))), i;
|
|
2310
2377
|
}
|
|
2311
|
-
class
|
|
2378
|
+
class _r {
|
|
2312
2379
|
constructor() {
|
|
2313
2380
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2314
2381
|
this.logger = _.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
|
@@ -2319,7 +2386,7 @@ class Mr {
|
|
|
2319
2386
|
escapeValue: !0
|
|
2320
2387
|
});
|
|
2321
2388
|
const n = t.interpolation;
|
|
2322
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
|
2389
|
+
this.escape = n.escape !== void 0 ? n.escape : Ar, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? J(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? J(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 ? J(n.nestingPrefix) : n.nestingPrefixEscaped || J("$t("), this.nestingSuffix = n.nestingSuffix ? J(n.nestingSuffix) : n.nestingSuffixEscaped || J(")"), 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();
|
|
2323
2390
|
}
|
|
2324
2391
|
reset() {
|
|
2325
2392
|
this.options && this.init(this.options);
|
|
@@ -2347,7 +2414,7 @@ class Mr {
|
|
|
2347
2414
|
interpolationkey: p
|
|
2348
2415
|
}) : w;
|
|
2349
2416
|
}
|
|
2350
|
-
const
|
|
2417
|
+
const y = p.split(this.formatSeparator), h = y.shift().trim(), x = y.join(this.formatSeparator).trim();
|
|
2351
2418
|
return this.format(ht(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), x, r, {
|
|
2352
2419
|
...s,
|
|
2353
2420
|
...n,
|
|
@@ -2364,18 +2431,18 @@ class Mr {
|
|
|
2364
2431
|
safeValue: (p) => this.escapeValue ? c(this.escape(p)) : c(p)
|
|
2365
2432
|
}].forEach((p) => {
|
|
2366
2433
|
for (o = 0; i = p.regex.exec(t); ) {
|
|
2367
|
-
const
|
|
2368
|
-
if (a = d(
|
|
2434
|
+
const y = i[1].trim();
|
|
2435
|
+
if (a = d(y), a === void 0)
|
|
2369
2436
|
if (typeof f == "function") {
|
|
2370
2437
|
const x = f(t, i, s);
|
|
2371
2438
|
a = typeof x == "string" ? x : "";
|
|
2372
|
-
} else if (s && Object.prototype.hasOwnProperty.call(s,
|
|
2439
|
+
} else if (s && Object.prototype.hasOwnProperty.call(s, y))
|
|
2373
2440
|
a = "";
|
|
2374
2441
|
else if (l) {
|
|
2375
2442
|
a = i[0];
|
|
2376
2443
|
continue;
|
|
2377
2444
|
} else
|
|
2378
|
-
this.logger.warn(`missed to pass in variable ${
|
|
2445
|
+
this.logger.warn(`missed to pass in variable ${y} for interpolating ${t}`), a = "";
|
|
2379
2446
|
else
|
|
2380
2447
|
typeof a != "string" && !this.useRawValueToEscape && (a = lt(a));
|
|
2381
2448
|
const h = p.safeValue(a);
|
|
@@ -2400,8 +2467,8 @@ class Mr {
|
|
|
2400
2467
|
...c,
|
|
2401
2468
|
...a
|
|
2402
2469
|
});
|
|
2403
|
-
} catch (
|
|
2404
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`,
|
|
2470
|
+
} catch (y) {
|
|
2471
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, y), `${u}${d}${l}`;
|
|
2405
2472
|
}
|
|
2406
2473
|
return delete a.defaultValue, u;
|
|
2407
2474
|
}
|
|
@@ -2425,7 +2492,7 @@ class Mr {
|
|
|
2425
2492
|
return t;
|
|
2426
2493
|
}
|
|
2427
2494
|
}
|
|
2428
|
-
function
|
|
2495
|
+
function kr(e) {
|
|
2429
2496
|
let t = e.toLowerCase().trim();
|
|
2430
2497
|
const n = {};
|
|
2431
2498
|
if (e.indexOf("(") > -1) {
|
|
@@ -2449,10 +2516,10 @@ function Y(e) {
|
|
|
2449
2516
|
return function(r, s, i) {
|
|
2450
2517
|
const a = s + JSON.stringify(i);
|
|
2451
2518
|
let o = t[a];
|
|
2452
|
-
return o || (o = e(
|
|
2519
|
+
return o || (o = e(je(s), i), t[a] = o), o(r);
|
|
2453
2520
|
};
|
|
2454
2521
|
}
|
|
2455
|
-
class
|
|
2522
|
+
class Br {
|
|
2456
2523
|
constructor() {
|
|
2457
2524
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
2458
2525
|
this.logger = _.create("formatter"), this.options = t, this.formats = {
|
|
@@ -2507,7 +2574,7 @@ class Ir {
|
|
|
2507
2574
|
const {
|
|
2508
2575
|
formatName: c,
|
|
2509
2576
|
formatOptions: d
|
|
2510
|
-
} =
|
|
2577
|
+
} = kr(u);
|
|
2511
2578
|
if (this.formats[c]) {
|
|
2512
2579
|
let f = o;
|
|
2513
2580
|
try {
|
|
@@ -2527,10 +2594,10 @@ class Ir {
|
|
|
2527
2594
|
}, t);
|
|
2528
2595
|
}
|
|
2529
2596
|
}
|
|
2530
|
-
function
|
|
2597
|
+
function Ur(e, t) {
|
|
2531
2598
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
|
2532
2599
|
}
|
|
2533
|
-
class
|
|
2600
|
+
class qr extends Ae {
|
|
2534
2601
|
constructor(t, n, r) {
|
|
2535
2602
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
|
2536
2603
|
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);
|
|
@@ -2561,7 +2628,7 @@ class kr extends Ae {
|
|
|
2561
2628
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
|
2562
2629
|
const o = {};
|
|
2563
2630
|
this.queue.forEach((u) => {
|
|
2564
|
-
|
|
2631
|
+
jr(u.loaded, [i], a), Ur(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
|
2565
2632
|
o[c] || (o[c] = {});
|
|
2566
2633
|
const d = u.loaded[c];
|
|
2567
2634
|
d.length && d.forEach((f) => {
|
|
@@ -2726,9 +2793,9 @@ function mt() {
|
|
|
2726
2793
|
function yt(e) {
|
|
2727
2794
|
return typeof e.ns == "string" && (e.ns = [e.ns]), typeof e.fallbackLng == "string" && (e.fallbackLng = [e.fallbackLng]), typeof e.fallbackNS == "string" && (e.fallbackNS = [e.fallbackNS]), e.supportedLngs && e.supportedLngs.indexOf("cimode") < 0 && (e.supportedLngs = e.supportedLngs.concat(["cimode"])), e;
|
|
2728
2795
|
}
|
|
2729
|
-
function
|
|
2796
|
+
function he() {
|
|
2730
2797
|
}
|
|
2731
|
-
function
|
|
2798
|
+
function Vr(e) {
|
|
2732
2799
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
|
2733
2800
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
|
2734
2801
|
});
|
|
@@ -2738,7 +2805,7 @@ class ae extends Ae {
|
|
|
2738
2805
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
|
2739
2806
|
if (super(), this.options = yt(t), this.services = {}, this.logger = _, this.modules = {
|
|
2740
2807
|
external: []
|
|
2741
|
-
},
|
|
2808
|
+
}, Vr(this), n && !this.isInitialized && !t.isClone) {
|
|
2742
2809
|
if (!this.options.initImmediate)
|
|
2743
2810
|
return this.init(t, n), this;
|
|
2744
2811
|
setTimeout(() => {
|
|
@@ -2765,29 +2832,29 @@ class ae extends Ae {
|
|
|
2765
2832
|
if (!this.options.isClone) {
|
|
2766
2833
|
this.modules.logger ? _.init(i(this.modules.logger), this.options) : _.init(null, this.options);
|
|
2767
2834
|
let d;
|
|
2768
|
-
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d =
|
|
2835
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = Br);
|
|
2769
2836
|
const f = new pt(this.options);
|
|
2770
2837
|
this.store = new dt(this.options.resources, this.options);
|
|
2771
2838
|
const l = this.services;
|
|
2772
|
-
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new
|
|
2839
|
+
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Ir(f, {
|
|
2773
2840
|
prepend: this.options.pluralSeparator,
|
|
2774
2841
|
compatibilityJSON: this.options.compatibilityJSON,
|
|
2775
2842
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
|
2776
|
-
}), 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
|
|
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 _r(this.options), l.utils = {
|
|
2777
2844
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
|
2778
|
-
}, l.backendConnector = new
|
|
2779
|
-
for (var p = arguments.length,
|
|
2780
|
-
|
|
2781
|
-
t.emit(g, ...
|
|
2782
|
-
}), 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
|
|
2783
|
-
for (var p = arguments.length,
|
|
2784
|
-
|
|
2785
|
-
t.emit(g, ...
|
|
2845
|
+
}, l.backendConnector = new qr(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
|
2846
|
+
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2847
|
+
y[h - 1] = arguments[h];
|
|
2848
|
+
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 Pe(this.services, this.options), this.translator.on("*", function(g) {
|
|
2850
|
+
for (var p = arguments.length, y = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
|
2851
|
+
y[h - 1] = arguments[h];
|
|
2852
|
+
t.emit(g, ...y);
|
|
2786
2853
|
}), this.modules.external.forEach((g) => {
|
|
2787
2854
|
g.init && g.init(this);
|
|
2788
2855
|
});
|
|
2789
2856
|
}
|
|
2790
|
-
if (this.format = this.options.interpolation.format, r || (r =
|
|
2857
|
+
if (this.format = this.options.interpolation.format, r || (r = he), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
|
2791
2858
|
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
|
2792
2859
|
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
|
2793
2860
|
}
|
|
@@ -2811,7 +2878,7 @@ class ae extends Ae {
|
|
|
2811
2878
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), u;
|
|
2812
2879
|
}
|
|
2813
2880
|
loadResources(t) {
|
|
2814
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
2881
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he;
|
|
2815
2882
|
const s = typeof t == "string" ? t : this.language;
|
|
2816
2883
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
|
2817
2884
|
if (s && s.toLowerCase() === "cimode")
|
|
@@ -2831,7 +2898,7 @@ class ae extends Ae {
|
|
|
2831
2898
|
}
|
|
2832
2899
|
reloadResources(t, n, r) {
|
|
2833
2900
|
const s = ie();
|
|
2834
|
-
return t || (t = this.languages), n || (n = this.options.ns), r || (r =
|
|
2901
|
+
return t || (t = this.languages), n || (n = this.options.ns), r || (r = he), this.services.backendConnector.reload(t, n, (i) => {
|
|
2835
2902
|
s.resolve(), r(i);
|
|
2836
2903
|
}), s;
|
|
2837
2904
|
}
|
|
@@ -2840,7 +2907,7 @@ class ae extends Ae {
|
|
|
2840
2907
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
|
2841
2908
|
if (!t.type)
|
|
2842
2909
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
|
2843
|
-
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" &&
|
|
2910
|
+
return t.type === "backend" && (this.modules.backend = t), (t.type === "logger" || t.log && t.warn && t.error) && (this.modules.logger = t), t.type === "languageDetector" && (this.modules.languageDetector = t), t.type === "i18nFormat" && (this.modules.i18nFormat = t), t.type === "postProcessor" && Ht.addPostProcessor(t), t.type === "formatter" && (this.modules.formatter = t), t.type === "3rdParty" && this.modules.external.push(t), this;
|
|
2844
2911
|
}
|
|
2845
2912
|
setResolvedLanguage(t) {
|
|
2846
2913
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
|
@@ -2949,7 +3016,7 @@ class ae extends Ae {
|
|
|
2949
3016
|
return new ae(t, n);
|
|
2950
3017
|
}
|
|
2951
3018
|
cloneInstance() {
|
|
2952
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
|
3019
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : he;
|
|
2953
3020
|
const r = t.forkResourceStore;
|
|
2954
3021
|
r && delete t.forkResourceStore;
|
|
2955
3022
|
const s = {
|
|
@@ -2963,7 +3030,7 @@ class ae extends Ae {
|
|
|
2963
3030
|
...this.services
|
|
2964
3031
|
}, i.services.utils = {
|
|
2965
3032
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
|
2966
|
-
}, r && (i.store = new dt(this.store.data, s), i.services.resourceStore = i.store), i.translator = new
|
|
3033
|
+
}, r && (i.store = new dt(this.store.data, s), i.services.resourceStore = i.store), i.translator = new Pe(i.services, s), i.translator.on("*", function(o) {
|
|
2967
3034
|
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
|
2968
3035
|
c[d - 1] = arguments[d];
|
|
2969
3036
|
i.emit(o, ...c);
|
|
@@ -2981,42 +3048,42 @@ class ae extends Ae {
|
|
|
2981
3048
|
};
|
|
2982
3049
|
}
|
|
2983
3050
|
}
|
|
2984
|
-
const
|
|
2985
|
-
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
const
|
|
3051
|
+
const P = ae.createInstance();
|
|
3052
|
+
P.createInstance = ae.createInstance;
|
|
3053
|
+
P.createInstance;
|
|
3054
|
+
P.dir;
|
|
3055
|
+
P.init;
|
|
3056
|
+
P.loadResources;
|
|
3057
|
+
P.reloadResources;
|
|
3058
|
+
P.use;
|
|
3059
|
+
P.changeLanguage;
|
|
3060
|
+
P.getFixedT;
|
|
3061
|
+
P.t;
|
|
3062
|
+
P.exists;
|
|
3063
|
+
P.setDefaultNamespace;
|
|
3064
|
+
P.hasLoadedNamespace;
|
|
3065
|
+
P.loadNamespaces;
|
|
3066
|
+
P.loadLanguages;
|
|
3067
|
+
const Wr = {
|
|
3001
3068
|
error: "Error"
|
|
3002
|
-
},
|
|
3069
|
+
}, Hr = {
|
|
3003
3070
|
error: "Помилка"
|
|
3004
|
-
}, bt = "common",
|
|
3005
|
-
en:
|
|
3006
|
-
uk:
|
|
3007
|
-
}, I =
|
|
3071
|
+
}, bt = "common", Kr = {
|
|
3072
|
+
en: Wr,
|
|
3073
|
+
uk: Hr
|
|
3074
|
+
}, I = P.createInstance({
|
|
3008
3075
|
defaultNS: bt,
|
|
3009
|
-
resources:
|
|
3076
|
+
resources: Gr(Kr, bt),
|
|
3010
3077
|
lng: "en",
|
|
3011
3078
|
fallbackLng: "en"
|
|
3012
3079
|
}), Kt = {
|
|
3013
3080
|
i18nextInstance: I,
|
|
3014
3081
|
initPromise: I.init().then(() => I)
|
|
3015
|
-
},
|
|
3016
|
-
|
|
3017
|
-
const
|
|
3018
|
-
if (
|
|
3019
|
-
return
|
|
3082
|
+
}, me = /* @__PURE__ */ new Map();
|
|
3083
|
+
me.set("common", Kt);
|
|
3084
|
+
const zr = (e) => {
|
|
3085
|
+
if (me.has(e.namespace))
|
|
3086
|
+
return me.get(e.namespace);
|
|
3020
3087
|
if (e.plugins)
|
|
3021
3088
|
for (const i of e.plugins)
|
|
3022
3089
|
I.use(i);
|
|
@@ -3035,17 +3102,17 @@ const Hr = (e) => {
|
|
|
3035
3102
|
const r = e.language || "en";
|
|
3036
3103
|
I.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
|
3037
3104
|
const s = { initPromise: n, i18nextInstance: t };
|
|
3038
|
-
return
|
|
3105
|
+
return me.set(e.namespace, s), s;
|
|
3039
3106
|
};
|
|
3040
|
-
function
|
|
3107
|
+
function Gr(e, t) {
|
|
3041
3108
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
|
3042
3109
|
[t]: e[r]
|
|
3043
3110
|
}, n), {});
|
|
3044
3111
|
}
|
|
3045
|
-
function
|
|
3112
|
+
function Qr(e) {
|
|
3046
3113
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
|
3047
3114
|
}
|
|
3048
|
-
const
|
|
3115
|
+
const Jr = {
|
|
3049
3116
|
errors: {
|
|
3050
3117
|
measure: {
|
|
3051
3118
|
unsupportedType: "Unsupported measure type",
|
|
@@ -3071,7 +3138,7 @@ const zr = {
|
|
|
3071
3138
|
},
|
|
3072
3139
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
|
3073
3140
|
}
|
|
3074
|
-
},
|
|
3141
|
+
}, Yr = {
|
|
3075
3142
|
errors: {
|
|
3076
3143
|
measure: {
|
|
3077
3144
|
unsupportedType: "Непідтримуваний тип measure",
|
|
@@ -3097,19 +3164,19 @@ const zr = {
|
|
|
3097
3164
|
},
|
|
3098
3165
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
|
3099
3166
|
}
|
|
3100
|
-
},
|
|
3101
|
-
en:
|
|
3102
|
-
uk:
|
|
3167
|
+
}, Xr = "sdkData", Zr = {
|
|
3168
|
+
en: Jr,
|
|
3169
|
+
uk: Yr
|
|
3103
3170
|
};
|
|
3104
|
-
function
|
|
3105
|
-
return
|
|
3106
|
-
resource:
|
|
3171
|
+
function es() {
|
|
3172
|
+
return zr({
|
|
3173
|
+
resource: Zr,
|
|
3107
3174
|
language: "en",
|
|
3108
|
-
namespace:
|
|
3175
|
+
namespace: Xr
|
|
3109
3176
|
});
|
|
3110
3177
|
}
|
|
3111
|
-
|
|
3112
|
-
function
|
|
3178
|
+
es();
|
|
3179
|
+
function ts() {
|
|
3113
3180
|
this.__data__ = [], this.size = 0;
|
|
3114
3181
|
}
|
|
3115
3182
|
function zt(e, t) {
|
|
@@ -3121,22 +3188,22 @@ function Le(e, t) {
|
|
|
3121
3188
|
return n;
|
|
3122
3189
|
return -1;
|
|
3123
3190
|
}
|
|
3124
|
-
var
|
|
3125
|
-
function
|
|
3191
|
+
var ns = Array.prototype, rs = ns.splice;
|
|
3192
|
+
function ss(e) {
|
|
3126
3193
|
var t = this.__data__, n = Le(t, e);
|
|
3127
3194
|
if (n < 0)
|
|
3128
3195
|
return !1;
|
|
3129
3196
|
var r = t.length - 1;
|
|
3130
|
-
return n == r ? t.pop() :
|
|
3197
|
+
return n == r ? t.pop() : rs.call(t, n, 1), --this.size, !0;
|
|
3131
3198
|
}
|
|
3132
|
-
function
|
|
3199
|
+
function is(e) {
|
|
3133
3200
|
var t = this.__data__, n = Le(t, e);
|
|
3134
3201
|
return n < 0 ? void 0 : t[n][1];
|
|
3135
3202
|
}
|
|
3136
|
-
function
|
|
3203
|
+
function as(e) {
|
|
3137
3204
|
return Le(this.__data__, e) > -1;
|
|
3138
3205
|
}
|
|
3139
|
-
function
|
|
3206
|
+
function os(e, t) {
|
|
3140
3207
|
var n = this.__data__, r = Le(n, e);
|
|
3141
3208
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
3142
3209
|
}
|
|
@@ -3147,38 +3214,38 @@ function k(e) {
|
|
|
3147
3214
|
this.set(r[0], r[1]);
|
|
3148
3215
|
}
|
|
3149
3216
|
}
|
|
3150
|
-
k.prototype.clear =
|
|
3151
|
-
k.prototype.delete =
|
|
3152
|
-
k.prototype.get =
|
|
3153
|
-
k.prototype.has =
|
|
3154
|
-
k.prototype.set =
|
|
3155
|
-
function
|
|
3217
|
+
k.prototype.clear = ts;
|
|
3218
|
+
k.prototype.delete = ss;
|
|
3219
|
+
k.prototype.get = is;
|
|
3220
|
+
k.prototype.has = as;
|
|
3221
|
+
k.prototype.set = os;
|
|
3222
|
+
function us() {
|
|
3156
3223
|
this.__data__ = new k(), this.size = 0;
|
|
3157
3224
|
}
|
|
3158
|
-
function
|
|
3225
|
+
function ls(e) {
|
|
3159
3226
|
var t = this.__data__, n = t.delete(e);
|
|
3160
3227
|
return this.size = t.size, n;
|
|
3161
3228
|
}
|
|
3162
|
-
function
|
|
3229
|
+
function cs(e) {
|
|
3163
3230
|
return this.__data__.get(e);
|
|
3164
3231
|
}
|
|
3165
|
-
function
|
|
3232
|
+
function ds(e) {
|
|
3166
3233
|
return this.__data__.has(e);
|
|
3167
3234
|
}
|
|
3168
|
-
var
|
|
3169
|
-
const Me =
|
|
3235
|
+
var fs = U["__core-js_shared__"];
|
|
3236
|
+
const Me = fs;
|
|
3170
3237
|
var St = function() {
|
|
3171
3238
|
var e = /[^.]+$/.exec(Me && Me.keys && Me.keys.IE_PROTO || "");
|
|
3172
3239
|
return e ? "Symbol(src)_1." + e : "";
|
|
3173
3240
|
}();
|
|
3174
|
-
function
|
|
3241
|
+
function ps(e) {
|
|
3175
3242
|
return !!St && St in e;
|
|
3176
3243
|
}
|
|
3177
|
-
var
|
|
3244
|
+
var gs = Function.prototype, hs = gs.toString;
|
|
3178
3245
|
function z(e) {
|
|
3179
3246
|
if (e != null) {
|
|
3180
3247
|
try {
|
|
3181
|
-
return
|
|
3248
|
+
return hs.call(e);
|
|
3182
3249
|
} catch {
|
|
3183
3250
|
}
|
|
3184
3251
|
try {
|
|
@@ -3188,51 +3255,51 @@ function z(e) {
|
|
|
3188
3255
|
}
|
|
3189
3256
|
return "";
|
|
3190
3257
|
}
|
|
3191
|
-
var
|
|
3192
|
-
"^" +
|
|
3258
|
+
var ms = /[\\^$.*+?()[\]{}|]/g, ys = /^\[object .+?Constructor\]$/, bs = Function.prototype, Ss = Object.prototype, Os = bs.toString, vs = Ss.hasOwnProperty, xs = RegExp(
|
|
3259
|
+
"^" + Os.call(vs).replace(ms, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
3193
3260
|
);
|
|
3194
|
-
function
|
|
3195
|
-
if (!
|
|
3261
|
+
function Cs(e) {
|
|
3262
|
+
if (!Fe(e) || ps(e))
|
|
3196
3263
|
return !1;
|
|
3197
|
-
var t =
|
|
3264
|
+
var t = $n(e) ? xs : ys;
|
|
3198
3265
|
return t.test(z(e));
|
|
3199
3266
|
}
|
|
3200
|
-
function
|
|
3267
|
+
function ws(e, t) {
|
|
3201
3268
|
return e == null ? void 0 : e[t];
|
|
3202
3269
|
}
|
|
3203
3270
|
function G(e, t) {
|
|
3204
|
-
var n =
|
|
3205
|
-
return
|
|
3271
|
+
var n = ws(e, t);
|
|
3272
|
+
return Cs(n) ? n : void 0;
|
|
3206
3273
|
}
|
|
3207
|
-
var
|
|
3208
|
-
const oe =
|
|
3209
|
-
var
|
|
3210
|
-
const ue =
|
|
3211
|
-
function
|
|
3274
|
+
var Ds = G(U, "Map");
|
|
3275
|
+
const oe = Ds;
|
|
3276
|
+
var js = G(Object, "create");
|
|
3277
|
+
const ue = js;
|
|
3278
|
+
function Ps() {
|
|
3212
3279
|
this.__data__ = ue ? ue(null) : {}, this.size = 0;
|
|
3213
3280
|
}
|
|
3214
|
-
function
|
|
3281
|
+
function Fs(e) {
|
|
3215
3282
|
var t = this.has(e) && delete this.__data__[e];
|
|
3216
3283
|
return this.size -= t ? 1 : 0, t;
|
|
3217
3284
|
}
|
|
3218
|
-
var
|
|
3219
|
-
function
|
|
3285
|
+
var As = "__lodash_hash_undefined__", Ls = Object.prototype, Es = Ls.hasOwnProperty;
|
|
3286
|
+
function Ns(e) {
|
|
3220
3287
|
var t = this.__data__;
|
|
3221
3288
|
if (ue) {
|
|
3222
3289
|
var n = t[e];
|
|
3223
|
-
return n ===
|
|
3290
|
+
return n === As ? void 0 : n;
|
|
3224
3291
|
}
|
|
3225
|
-
return
|
|
3292
|
+
return Es.call(t, e) ? t[e] : void 0;
|
|
3226
3293
|
}
|
|
3227
|
-
var
|
|
3228
|
-
function
|
|
3294
|
+
var Rs = Object.prototype, Ts = Rs.hasOwnProperty;
|
|
3295
|
+
function Ms(e) {
|
|
3229
3296
|
var t = this.__data__;
|
|
3230
|
-
return ue ? t[e] !== void 0 :
|
|
3297
|
+
return ue ? t[e] !== void 0 : Ts.call(t, e);
|
|
3231
3298
|
}
|
|
3232
|
-
var
|
|
3233
|
-
function
|
|
3299
|
+
var $s = "__lodash_hash_undefined__";
|
|
3300
|
+
function Is(e, t) {
|
|
3234
3301
|
var n = this.__data__;
|
|
3235
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = ue && t === void 0 ?
|
|
3302
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = ue && t === void 0 ? $s : t, this;
|
|
3236
3303
|
}
|
|
3237
3304
|
function K(e) {
|
|
3238
3305
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -3241,37 +3308,37 @@ function K(e) {
|
|
|
3241
3308
|
this.set(r[0], r[1]);
|
|
3242
3309
|
}
|
|
3243
3310
|
}
|
|
3244
|
-
K.prototype.clear =
|
|
3245
|
-
K.prototype.delete =
|
|
3246
|
-
K.prototype.get =
|
|
3247
|
-
K.prototype.has =
|
|
3248
|
-
K.prototype.set =
|
|
3249
|
-
function
|
|
3311
|
+
K.prototype.clear = Ps;
|
|
3312
|
+
K.prototype.delete = Fs;
|
|
3313
|
+
K.prototype.get = Ns;
|
|
3314
|
+
K.prototype.has = Ms;
|
|
3315
|
+
K.prototype.set = Is;
|
|
3316
|
+
function _s() {
|
|
3250
3317
|
this.size = 0, this.__data__ = {
|
|
3251
3318
|
hash: new K(),
|
|
3252
3319
|
map: new (oe || k)(),
|
|
3253
3320
|
string: new K()
|
|
3254
3321
|
};
|
|
3255
3322
|
}
|
|
3256
|
-
function
|
|
3323
|
+
function ks(e) {
|
|
3257
3324
|
var t = typeof e;
|
|
3258
3325
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
3259
3326
|
}
|
|
3260
3327
|
function Ee(e, t) {
|
|
3261
3328
|
var n = e.__data__;
|
|
3262
|
-
return
|
|
3329
|
+
return ks(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
3263
3330
|
}
|
|
3264
|
-
function
|
|
3331
|
+
function Bs(e) {
|
|
3265
3332
|
var t = Ee(this, e).delete(e);
|
|
3266
3333
|
return this.size -= t ? 1 : 0, t;
|
|
3267
3334
|
}
|
|
3268
|
-
function
|
|
3335
|
+
function Us(e) {
|
|
3269
3336
|
return Ee(this, e).get(e);
|
|
3270
3337
|
}
|
|
3271
|
-
function
|
|
3338
|
+
function qs(e) {
|
|
3272
3339
|
return Ee(this, e).has(e);
|
|
3273
3340
|
}
|
|
3274
|
-
function
|
|
3341
|
+
function Vs(e, t) {
|
|
3275
3342
|
var n = Ee(this, e), r = n.size;
|
|
3276
3343
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
3277
3344
|
}
|
|
@@ -3282,17 +3349,17 @@ function ee(e) {
|
|
|
3282
3349
|
this.set(r[0], r[1]);
|
|
3283
3350
|
}
|
|
3284
3351
|
}
|
|
3285
|
-
ee.prototype.clear =
|
|
3286
|
-
ee.prototype.delete =
|
|
3287
|
-
ee.prototype.get =
|
|
3288
|
-
ee.prototype.has =
|
|
3289
|
-
ee.prototype.set =
|
|
3290
|
-
var
|
|
3291
|
-
function
|
|
3352
|
+
ee.prototype.clear = _s;
|
|
3353
|
+
ee.prototype.delete = Bs;
|
|
3354
|
+
ee.prototype.get = Us;
|
|
3355
|
+
ee.prototype.has = qs;
|
|
3356
|
+
ee.prototype.set = Vs;
|
|
3357
|
+
var Ws = 200;
|
|
3358
|
+
function Hs(e, t) {
|
|
3292
3359
|
var n = this.__data__;
|
|
3293
3360
|
if (n instanceof k) {
|
|
3294
3361
|
var r = n.__data__;
|
|
3295
|
-
if (!oe || r.length <
|
|
3362
|
+
if (!oe || r.length < Ws - 1)
|
|
3296
3363
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
3297
3364
|
n = this.__data__ = new ee(r);
|
|
3298
3365
|
}
|
|
@@ -3302,24 +3369,24 @@ function te(e) {
|
|
|
3302
3369
|
var t = this.__data__ = new k(e);
|
|
3303
3370
|
this.size = t.size;
|
|
3304
3371
|
}
|
|
3305
|
-
te.prototype.clear =
|
|
3306
|
-
te.prototype.delete =
|
|
3307
|
-
te.prototype.get =
|
|
3308
|
-
te.prototype.has =
|
|
3309
|
-
te.prototype.set =
|
|
3310
|
-
function
|
|
3372
|
+
te.prototype.clear = us;
|
|
3373
|
+
te.prototype.delete = ls;
|
|
3374
|
+
te.prototype.get = cs;
|
|
3375
|
+
te.prototype.has = ds;
|
|
3376
|
+
te.prototype.set = Hs;
|
|
3377
|
+
function Ks(e, t) {
|
|
3311
3378
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
|
3312
3379
|
;
|
|
3313
3380
|
return e;
|
|
3314
3381
|
}
|
|
3315
|
-
var
|
|
3382
|
+
var zs = function() {
|
|
3316
3383
|
try {
|
|
3317
3384
|
var e = G(Object, "defineProperty");
|
|
3318
3385
|
return e({}, "", {}), e;
|
|
3319
3386
|
} catch {
|
|
3320
3387
|
}
|
|
3321
3388
|
}();
|
|
3322
|
-
const Ot =
|
|
3389
|
+
const Ot = zs;
|
|
3323
3390
|
function Gt(e, t, n) {
|
|
3324
3391
|
t == "__proto__" && Ot ? Ot(e, t, {
|
|
3325
3392
|
configurable: !0,
|
|
@@ -3328,59 +3395,59 @@ function Gt(e, t, n) {
|
|
|
3328
3395
|
writable: !0
|
|
3329
3396
|
}) : e[t] = n;
|
|
3330
3397
|
}
|
|
3331
|
-
var
|
|
3332
|
-
function
|
|
3398
|
+
var Gs = Object.prototype, Qs = Gs.hasOwnProperty;
|
|
3399
|
+
function Qt(e, t, n) {
|
|
3333
3400
|
var r = e[t];
|
|
3334
|
-
(!(
|
|
3401
|
+
(!(Qs.call(e, t) && zt(r, n)) || n === void 0 && !(t in e)) && Gt(e, t, n);
|
|
3335
3402
|
}
|
|
3336
3403
|
function Ne(e, t, n, r) {
|
|
3337
3404
|
var s = !n;
|
|
3338
3405
|
n || (n = {});
|
|
3339
3406
|
for (var i = -1, a = t.length; ++i < a; ) {
|
|
3340
3407
|
var o = t[i], u = r ? r(n[o], e[o], o, n, e) : void 0;
|
|
3341
|
-
u === void 0 && (u = e[o]), s ? Gt(n, o, u) :
|
|
3408
|
+
u === void 0 && (u = e[o]), s ? Gt(n, o, u) : Qt(n, o, u);
|
|
3342
3409
|
}
|
|
3343
3410
|
return n;
|
|
3344
3411
|
}
|
|
3345
|
-
function
|
|
3346
|
-
return e && Ne(t,
|
|
3412
|
+
function Js(e, t) {
|
|
3413
|
+
return e && Ne(t, Qe(t), e);
|
|
3347
3414
|
}
|
|
3348
|
-
function
|
|
3415
|
+
function Ys(e) {
|
|
3349
3416
|
var t = [];
|
|
3350
3417
|
if (e != null)
|
|
3351
3418
|
for (var n in Object(e))
|
|
3352
3419
|
t.push(n);
|
|
3353
3420
|
return t;
|
|
3354
3421
|
}
|
|
3355
|
-
var
|
|
3356
|
-
function
|
|
3357
|
-
if (!
|
|
3358
|
-
return
|
|
3422
|
+
var Xs = Object.prototype, Zs = Xs.hasOwnProperty;
|
|
3423
|
+
function ei(e) {
|
|
3424
|
+
if (!Fe(e))
|
|
3425
|
+
return Ys(e);
|
|
3359
3426
|
var t = _t(e), n = [];
|
|
3360
3427
|
for (var r in e)
|
|
3361
|
-
r == "constructor" && (t || !
|
|
3428
|
+
r == "constructor" && (t || !Zs.call(e, r)) || n.push(r);
|
|
3362
3429
|
return n;
|
|
3363
3430
|
}
|
|
3364
|
-
function
|
|
3365
|
-
return
|
|
3431
|
+
function Xe(e) {
|
|
3432
|
+
return In(e) ? _n(e, !0) : ei(e);
|
|
3366
3433
|
}
|
|
3367
|
-
function
|
|
3368
|
-
return e && Ne(t,
|
|
3434
|
+
function ti(e, t) {
|
|
3435
|
+
return e && Ne(t, Xe(t), e);
|
|
3369
3436
|
}
|
|
3370
|
-
var
|
|
3371
|
-
function
|
|
3437
|
+
var Jt = typeof exports == "object" && exports && !exports.nodeType && exports, vt = Jt && typeof module == "object" && module && !module.nodeType && module, ni = vt && vt.exports === Jt, xt = ni ? U.Buffer : void 0, Ct = xt ? xt.allocUnsafe : void 0;
|
|
3438
|
+
function ri(e, t) {
|
|
3372
3439
|
if (t)
|
|
3373
3440
|
return e.slice();
|
|
3374
3441
|
var n = e.length, r = Ct ? Ct(n) : new e.constructor(n);
|
|
3375
3442
|
return e.copy(r), r;
|
|
3376
3443
|
}
|
|
3377
|
-
function
|
|
3444
|
+
function si(e, t) {
|
|
3378
3445
|
var n = -1, r = e.length;
|
|
3379
3446
|
for (t || (t = Array(r)); ++n < r; )
|
|
3380
3447
|
t[n] = e[n];
|
|
3381
3448
|
return t;
|
|
3382
3449
|
}
|
|
3383
|
-
function
|
|
3450
|
+
function ii(e, t) {
|
|
3384
3451
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
|
3385
3452
|
var a = e[n];
|
|
3386
3453
|
t(a, n, e) && (i[s++] = a);
|
|
@@ -3390,210 +3457,210 @@ function ni(e, t) {
|
|
|
3390
3457
|
function Yt() {
|
|
3391
3458
|
return [];
|
|
3392
3459
|
}
|
|
3393
|
-
var
|
|
3394
|
-
return e == null ? [] : (e = Object(e),
|
|
3395
|
-
return
|
|
3460
|
+
var ai = Object.prototype, oi = ai.propertyIsEnumerable, wt = Object.getOwnPropertySymbols, ui = wt ? function(e) {
|
|
3461
|
+
return e == null ? [] : (e = Object(e), ii(wt(e), function(t) {
|
|
3462
|
+
return oi.call(e, t);
|
|
3396
3463
|
}));
|
|
3397
3464
|
} : Yt;
|
|
3398
|
-
const
|
|
3399
|
-
function
|
|
3400
|
-
return Ne(e,
|
|
3465
|
+
const Ze = ui;
|
|
3466
|
+
function li(e, t) {
|
|
3467
|
+
return Ne(e, Ze(e), t);
|
|
3401
3468
|
}
|
|
3402
|
-
function
|
|
3469
|
+
function Xt(e, t) {
|
|
3403
3470
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
|
3404
3471
|
e[s + n] = t[n];
|
|
3405
3472
|
return e;
|
|
3406
3473
|
}
|
|
3407
|
-
var
|
|
3408
|
-
const
|
|
3409
|
-
var
|
|
3474
|
+
var ci = kn(Object.getPrototypeOf, Object);
|
|
3475
|
+
const Zt = ci;
|
|
3476
|
+
var di = Object.getOwnPropertySymbols, fi = di ? function(e) {
|
|
3410
3477
|
for (var t = []; e; )
|
|
3411
|
-
|
|
3478
|
+
Xt(t, Ze(e)), e = Zt(e);
|
|
3412
3479
|
return t;
|
|
3413
3480
|
} : Yt;
|
|
3414
|
-
const en =
|
|
3415
|
-
function
|
|
3481
|
+
const en = fi;
|
|
3482
|
+
function pi(e, t) {
|
|
3416
3483
|
return Ne(e, en(e), t);
|
|
3417
3484
|
}
|
|
3418
3485
|
function tn(e, t, n) {
|
|
3419
3486
|
var r = t(e);
|
|
3420
|
-
return kt(e) ? r :
|
|
3487
|
+
return kt(e) ? r : Xt(r, n(e));
|
|
3421
3488
|
}
|
|
3422
|
-
function
|
|
3423
|
-
return tn(e,
|
|
3489
|
+
function gi(e) {
|
|
3490
|
+
return tn(e, Qe, Ze);
|
|
3424
3491
|
}
|
|
3425
|
-
function
|
|
3426
|
-
return tn(e,
|
|
3492
|
+
function hi(e) {
|
|
3493
|
+
return tn(e, Xe, en);
|
|
3427
3494
|
}
|
|
3428
|
-
var
|
|
3429
|
-
const
|
|
3430
|
-
var
|
|
3431
|
-
const
|
|
3432
|
-
var
|
|
3433
|
-
const Ke =
|
|
3434
|
-
var
|
|
3435
|
-
const ze =
|
|
3436
|
-
var
|
|
3437
|
-
(
|
|
3438
|
-
var t = Bt(e), n = t ==
|
|
3495
|
+
var mi = G(U, "DataView");
|
|
3496
|
+
const We = mi;
|
|
3497
|
+
var yi = G(U, "Promise");
|
|
3498
|
+
const He = yi;
|
|
3499
|
+
var bi = G(U, "Set");
|
|
3500
|
+
const Ke = bi;
|
|
3501
|
+
var Si = G(U, "WeakMap");
|
|
3502
|
+
const ze = Si;
|
|
3503
|
+
var Dt = "[object Map]", Oi = "[object Object]", jt = "[object Promise]", Pt = "[object Set]", Ft = "[object WeakMap]", At = "[object DataView]", vi = z(We), xi = z(oe), Ci = z(He), wi = z(Ke), Di = z(ze), H = Bt;
|
|
3504
|
+
(We && H(new We(new ArrayBuffer(1))) != At || oe && H(new oe()) != Dt || He && H(He.resolve()) != jt || Ke && H(new Ke()) != Pt || ze && H(new ze()) != Ft) && (H = function(e) {
|
|
3505
|
+
var t = Bt(e), n = t == Oi ? e.constructor : void 0, r = n ? z(n) : "";
|
|
3439
3506
|
if (r)
|
|
3440
3507
|
switch (r) {
|
|
3441
|
-
case
|
|
3508
|
+
case vi:
|
|
3442
3509
|
return At;
|
|
3443
|
-
case
|
|
3444
|
-
return Pt;
|
|
3445
|
-
case Oi:
|
|
3510
|
+
case xi:
|
|
3446
3511
|
return Dt;
|
|
3447
|
-
case
|
|
3512
|
+
case Ci:
|
|
3448
3513
|
return jt;
|
|
3449
|
-
case
|
|
3514
|
+
case wi:
|
|
3515
|
+
return Pt;
|
|
3516
|
+
case Di:
|
|
3450
3517
|
return Ft;
|
|
3451
3518
|
}
|
|
3452
3519
|
return t;
|
|
3453
3520
|
});
|
|
3454
|
-
const et =
|
|
3455
|
-
var
|
|
3456
|
-
function
|
|
3521
|
+
const et = H;
|
|
3522
|
+
var ji = Object.prototype, Pi = ji.hasOwnProperty;
|
|
3523
|
+
function Fi(e) {
|
|
3457
3524
|
var t = e.length, n = new e.constructor(t);
|
|
3458
|
-
return t && typeof e[0] == "string" &&
|
|
3525
|
+
return t && typeof e[0] == "string" && Pi.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
|
3459
3526
|
}
|
|
3460
|
-
var
|
|
3461
|
-
const Lt =
|
|
3527
|
+
var Ai = U.Uint8Array;
|
|
3528
|
+
const Lt = Ai;
|
|
3462
3529
|
function tt(e) {
|
|
3463
3530
|
var t = new e.constructor(e.byteLength);
|
|
3464
3531
|
return new Lt(t).set(new Lt(e)), t;
|
|
3465
3532
|
}
|
|
3466
|
-
function
|
|
3533
|
+
function Li(e, t) {
|
|
3467
3534
|
var n = t ? tt(e.buffer) : e.buffer;
|
|
3468
3535
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
|
3469
3536
|
}
|
|
3470
|
-
var
|
|
3471
|
-
function
|
|
3472
|
-
var t = new e.constructor(e.source,
|
|
3537
|
+
var Ei = /\w*$/;
|
|
3538
|
+
function Ni(e) {
|
|
3539
|
+
var t = new e.constructor(e.source, Ei.exec(e));
|
|
3473
3540
|
return t.lastIndex = e.lastIndex, t;
|
|
3474
3541
|
}
|
|
3475
3542
|
var Et = it ? it.prototype : void 0, Nt = Et ? Et.valueOf : void 0;
|
|
3476
|
-
function
|
|
3543
|
+
function Ri(e) {
|
|
3477
3544
|
return Nt ? Object(Nt.call(e)) : {};
|
|
3478
3545
|
}
|
|
3479
|
-
function
|
|
3546
|
+
function Ti(e, t) {
|
|
3480
3547
|
var n = t ? tt(e.buffer) : e.buffer;
|
|
3481
3548
|
return new e.constructor(n, e.byteOffset, e.length);
|
|
3482
3549
|
}
|
|
3483
|
-
var
|
|
3484
|
-
function
|
|
3550
|
+
var Mi = "[object Boolean]", $i = "[object Date]", Ii = "[object Map]", _i = "[object Number]", ki = "[object RegExp]", Bi = "[object Set]", Ui = "[object String]", qi = "[object Symbol]", Vi = "[object ArrayBuffer]", Wi = "[object DataView]", Hi = "[object Float32Array]", Ki = "[object Float64Array]", zi = "[object Int8Array]", Gi = "[object Int16Array]", Qi = "[object Int32Array]", Ji = "[object Uint8Array]", Yi = "[object Uint8ClampedArray]", Xi = "[object Uint16Array]", Zi = "[object Uint32Array]";
|
|
3551
|
+
function ea(e, t, n) {
|
|
3485
3552
|
var r = e.constructor;
|
|
3486
3553
|
switch (t) {
|
|
3487
|
-
case
|
|
3554
|
+
case Vi:
|
|
3488
3555
|
return tt(e);
|
|
3489
|
-
case
|
|
3490
|
-
case
|
|
3556
|
+
case Mi:
|
|
3557
|
+
case $i:
|
|
3491
3558
|
return new r(+e);
|
|
3492
|
-
case Ui:
|
|
3493
|
-
return ji(e, n);
|
|
3494
|
-
case qi:
|
|
3495
|
-
case Vi:
|
|
3496
|
-
case Hi:
|
|
3497
3559
|
case Wi:
|
|
3560
|
+
return Li(e, n);
|
|
3561
|
+
case Hi:
|
|
3498
3562
|
case Ki:
|
|
3499
3563
|
case zi:
|
|
3500
3564
|
case Gi:
|
|
3501
|
-
case Ji:
|
|
3502
3565
|
case Qi:
|
|
3503
|
-
|
|
3504
|
-
case
|
|
3566
|
+
case Ji:
|
|
3567
|
+
case Yi:
|
|
3568
|
+
case Xi:
|
|
3569
|
+
case Zi:
|
|
3570
|
+
return Ti(e, n);
|
|
3571
|
+
case Ii:
|
|
3505
3572
|
return new r();
|
|
3506
|
-
case Mi:
|
|
3507
3573
|
case _i:
|
|
3574
|
+
case Ui:
|
|
3508
3575
|
return new r(e);
|
|
3509
|
-
case $i:
|
|
3510
|
-
return Ai(e);
|
|
3511
|
-
case Ii:
|
|
3512
|
-
return new r();
|
|
3513
3576
|
case ki:
|
|
3514
|
-
return
|
|
3577
|
+
return Ni(e);
|
|
3578
|
+
case Bi:
|
|
3579
|
+
return new r();
|
|
3580
|
+
case qi:
|
|
3581
|
+
return Ri(e);
|
|
3515
3582
|
}
|
|
3516
3583
|
}
|
|
3517
|
-
var
|
|
3584
|
+
var Rt = Object.create, ta = function() {
|
|
3518
3585
|
function e() {
|
|
3519
3586
|
}
|
|
3520
3587
|
return function(t) {
|
|
3521
|
-
if (!
|
|
3588
|
+
if (!Fe(t))
|
|
3522
3589
|
return {};
|
|
3523
|
-
if (
|
|
3524
|
-
return
|
|
3590
|
+
if (Rt)
|
|
3591
|
+
return Rt(t);
|
|
3525
3592
|
e.prototype = t;
|
|
3526
3593
|
var n = new e();
|
|
3527
3594
|
return e.prototype = void 0, n;
|
|
3528
3595
|
};
|
|
3529
3596
|
}();
|
|
3530
|
-
const
|
|
3531
|
-
function
|
|
3532
|
-
return typeof e.constructor == "function" && !_t(e) ?
|
|
3597
|
+
const na = ta;
|
|
3598
|
+
function ra(e) {
|
|
3599
|
+
return typeof e.constructor == "function" && !_t(e) ? na(Zt(e)) : {};
|
|
3533
3600
|
}
|
|
3534
|
-
var
|
|
3535
|
-
function
|
|
3536
|
-
return Ut(e) && et(e) ==
|
|
3601
|
+
var sa = "[object Map]";
|
|
3602
|
+
function ia(e) {
|
|
3603
|
+
return Ut(e) && et(e) == sa;
|
|
3537
3604
|
}
|
|
3538
|
-
var
|
|
3539
|
-
const
|
|
3540
|
-
var
|
|
3541
|
-
function
|
|
3542
|
-
return Ut(e) && et(e) ==
|
|
3605
|
+
var Tt = xe && xe.isMap, aa = Tt ? qt(Tt) : ia;
|
|
3606
|
+
const oa = aa;
|
|
3607
|
+
var ua = "[object Set]";
|
|
3608
|
+
function la(e) {
|
|
3609
|
+
return Ut(e) && et(e) == ua;
|
|
3543
3610
|
}
|
|
3544
|
-
var Mt =
|
|
3545
|
-
const
|
|
3546
|
-
var
|
|
3547
|
-
v[nn] = v[
|
|
3548
|
-
v[
|
|
3549
|
-
function
|
|
3550
|
-
var a, o = t &
|
|
3611
|
+
var Mt = xe && xe.isSet, ca = Mt ? qt(Mt) : la;
|
|
3612
|
+
const da = ca;
|
|
3613
|
+
var fa = 1, pa = 2, ga = 4, nn = "[object Arguments]", ha = "[object Array]", ma = "[object Boolean]", ya = "[object Date]", ba = "[object Error]", rn = "[object Function]", Sa = "[object GeneratorFunction]", Oa = "[object Map]", va = "[object Number]", sn = "[object Object]", xa = "[object RegExp]", Ca = "[object Set]", wa = "[object String]", Da = "[object Symbol]", ja = "[object WeakMap]", Pa = "[object ArrayBuffer]", Fa = "[object DataView]", Aa = "[object Float32Array]", La = "[object Float64Array]", Ea = "[object Int8Array]", Na = "[object Int16Array]", Ra = "[object Int32Array]", Ta = "[object Uint8Array]", Ma = "[object Uint8ClampedArray]", $a = "[object Uint16Array]", Ia = "[object Uint32Array]", v = {};
|
|
3614
|
+
v[nn] = v[ha] = v[Pa] = v[Fa] = v[ma] = v[ya] = v[Aa] = v[La] = v[Ea] = v[Na] = v[Ra] = v[Oa] = v[va] = v[sn] = v[xa] = v[Ca] = v[wa] = v[Da] = v[Ta] = v[Ma] = v[$a] = v[Ia] = !0;
|
|
3615
|
+
v[ba] = v[rn] = v[ja] = !1;
|
|
3616
|
+
function ye(e, t, n, r, s, i) {
|
|
3617
|
+
var a, o = t & fa, u = t & pa, c = t & ga;
|
|
3551
3618
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
|
3552
3619
|
return a;
|
|
3553
|
-
if (!
|
|
3620
|
+
if (!Fe(e))
|
|
3554
3621
|
return e;
|
|
3555
3622
|
var d = kt(e);
|
|
3556
3623
|
if (d) {
|
|
3557
|
-
if (a =
|
|
3558
|
-
return
|
|
3624
|
+
if (a = Fi(e), !o)
|
|
3625
|
+
return si(e, a);
|
|
3559
3626
|
} else {
|
|
3560
|
-
var f = et(e), l = f == rn || f ==
|
|
3561
|
-
if (
|
|
3562
|
-
return
|
|
3627
|
+
var f = et(e), l = f == rn || f == Sa;
|
|
3628
|
+
if (Bn(e))
|
|
3629
|
+
return ri(e, o);
|
|
3563
3630
|
if (f == sn || f == nn || l && !s) {
|
|
3564
|
-
if (a = u || l ? {} :
|
|
3565
|
-
return u ?
|
|
3631
|
+
if (a = u || l ? {} : ra(e), !o)
|
|
3632
|
+
return u ? pi(e, ti(a, e)) : li(e, Js(a, e));
|
|
3566
3633
|
} else {
|
|
3567
3634
|
if (!v[f])
|
|
3568
3635
|
return s ? e : {};
|
|
3569
|
-
a =
|
|
3636
|
+
a = ea(e, f, o);
|
|
3570
3637
|
}
|
|
3571
3638
|
}
|
|
3572
3639
|
i || (i = new te());
|
|
3573
3640
|
var g = i.get(e);
|
|
3574
3641
|
if (g)
|
|
3575
3642
|
return g;
|
|
3576
|
-
i.set(e, a),
|
|
3577
|
-
a.add(
|
|
3578
|
-
}) :
|
|
3579
|
-
a.set(x,
|
|
3643
|
+
i.set(e, a), da(e) ? e.forEach(function(h) {
|
|
3644
|
+
a.add(ye(h, t, n, h, e, i));
|
|
3645
|
+
}) : oa(e) && e.forEach(function(h, x) {
|
|
3646
|
+
a.set(x, ye(h, t, n, x, e, i));
|
|
3580
3647
|
});
|
|
3581
|
-
var p = c ? u ?
|
|
3582
|
-
return
|
|
3583
|
-
|
|
3648
|
+
var p = c ? u ? hi : gi : u ? Xe : Qe, y = d ? void 0 : p(e);
|
|
3649
|
+
return Ks(y || e, function(h, x) {
|
|
3650
|
+
y && (x = h, h = e[x]), Qt(a, x, ye(h, t, n, x, e, i));
|
|
3584
3651
|
}), a;
|
|
3585
3652
|
}
|
|
3586
|
-
var
|
|
3587
|
-
function
|
|
3588
|
-
return
|
|
3653
|
+
var _a = 1, ka = 4;
|
|
3654
|
+
function Ba(e) {
|
|
3655
|
+
return ye(e, _a | ka);
|
|
3589
3656
|
}
|
|
3590
|
-
function
|
|
3657
|
+
function Ua(e) {
|
|
3591
3658
|
return Buffer.from(e).toString("utf8");
|
|
3592
3659
|
}
|
|
3593
|
-
function
|
|
3660
|
+
function qa(e) {
|
|
3594
3661
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
|
3595
3662
|
}
|
|
3596
|
-
function
|
|
3663
|
+
function Va() {
|
|
3597
3664
|
return "UNSUPPORTED";
|
|
3598
3665
|
}
|
|
3599
3666
|
typeof Buffer < "u" && Buffer.from;
|
|
@@ -3749,32 +3816,32 @@ var ke;
|
|
|
3749
3816
|
})(ke = ke || (ke = {}));
|
|
3750
3817
|
function Ge(e, t = []) {
|
|
3751
3818
|
try {
|
|
3752
|
-
return e == null ? String(e) : typeof e == "string" ? `'${
|
|
3819
|
+
return e == null ? String(e) : typeof e == "string" ? `'${Qr(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => Ge(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}: ${Ge(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
|
3753
3820
|
} catch (n) {
|
|
3754
3821
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
|
3755
3822
|
}
|
|
3756
3823
|
}
|
|
3757
|
-
function
|
|
3824
|
+
function Wa(e) {
|
|
3758
3825
|
let t = e.length;
|
|
3759
3826
|
for (; t > 0 && e[t - 1] === void 0; )
|
|
3760
3827
|
t--;
|
|
3761
3828
|
return e.slice(0, t);
|
|
3762
3829
|
}
|
|
3763
|
-
function
|
|
3830
|
+
function Ha(e, t) {
|
|
3764
3831
|
return function(n) {
|
|
3765
3832
|
return function(...r) {
|
|
3766
|
-
const s =
|
|
3833
|
+
const s = Wa(r), i = s.length, a = s.map((c) => Ge(c, ["guid"])).filter((c, d) => !(["", "{ }", "{}", "undefined", "null"].includes(c) && d === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
|
3767
3834
|
return u.composeCode = o, u;
|
|
3768
3835
|
};
|
|
3769
3836
|
};
|
|
3770
3837
|
}
|
|
3771
3838
|
function $t(e, t) {
|
|
3772
|
-
return
|
|
3839
|
+
return Ha("filterFactory.logic", t)(e);
|
|
3773
3840
|
}
|
|
3774
|
-
function
|
|
3841
|
+
function Ka(e) {
|
|
3775
3842
|
return e && e.__serializable === "MembersFilter";
|
|
3776
3843
|
}
|
|
3777
|
-
function
|
|
3844
|
+
function za(e) {
|
|
3778
3845
|
return e && e.__serializable === "CascadingFilter";
|
|
3779
3846
|
}
|
|
3780
3847
|
var Be;
|
|
@@ -3800,56 +3867,56 @@ var Be;
|
|
|
3800
3867
|
right: t(r)
|
|
3801
3868
|
}), "or");
|
|
3802
3869
|
})(Be = Be || (Be = {}));
|
|
3803
|
-
var
|
|
3870
|
+
var be;
|
|
3804
3871
|
(function(e) {
|
|
3805
3872
|
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
|
3806
|
-
})(
|
|
3807
|
-
var
|
|
3873
|
+
})(be = be || (be = {}));
|
|
3874
|
+
var Se;
|
|
3808
3875
|
(function(e) {
|
|
3809
3876
|
e.PERIOD = "PERIOD", e.DATE_RANGE = "DATE_RANGE";
|
|
3810
|
-
})(
|
|
3811
|
-
var
|
|
3877
|
+
})(Se = Se || (Se = {}));
|
|
3878
|
+
var Oe;
|
|
3812
3879
|
(function(e) {
|
|
3813
3880
|
e.NUMERIC_RANGE = "NUMERIC_RANGE";
|
|
3814
|
-
})(
|
|
3815
|
-
var
|
|
3881
|
+
})(Oe = Oe || (Oe = {}));
|
|
3882
|
+
var ve;
|
|
3816
3883
|
(function(e) {
|
|
3817
3884
|
e.YEARS = "years", e.QUARTERS = "quarters", e.MONTHS = "months", e.WEEKS = "weeks", e.DAYS = "days", e.HOURS = "hours", e.MINUTES = "minutes";
|
|
3818
|
-
})(
|
|
3885
|
+
})(ve = ve || (ve = {}));
|
|
3819
3886
|
var Ue;
|
|
3820
3887
|
(function(e) {
|
|
3821
3888
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
|
3822
3889
|
})(Ue = Ue || (Ue = {}));
|
|
3823
|
-
const
|
|
3824
|
-
[
|
|
3890
|
+
const T = Object.assign(Object.assign(Object.assign({}, be), Se), Oe), Ga = {
|
|
3891
|
+
[T.INCLUDE_ALL]: {
|
|
3825
3892
|
all: !0,
|
|
3826
|
-
filterType:
|
|
3893
|
+
filterType: T.INCLUDE_ALL
|
|
3827
3894
|
},
|
|
3828
|
-
[
|
|
3895
|
+
[T.PERIOD]: {
|
|
3829
3896
|
last: { count: 1, offset: 1 },
|
|
3830
3897
|
isNotCurrentPeriod: !0,
|
|
3831
|
-
filterType:
|
|
3898
|
+
filterType: T.PERIOD
|
|
3832
3899
|
},
|
|
3833
|
-
[
|
|
3834
|
-
filterType:
|
|
3900
|
+
[T.DATE_RANGE]: {
|
|
3901
|
+
filterType: T.DATE_RANGE
|
|
3835
3902
|
},
|
|
3836
|
-
[
|
|
3837
|
-
filterType:
|
|
3903
|
+
[T.NUMERIC_RANGE]: {
|
|
3904
|
+
filterType: T.NUMERIC_RANGE
|
|
3838
3905
|
},
|
|
3839
|
-
[
|
|
3906
|
+
[T.CONDITION]: {
|
|
3840
3907
|
explicit: !1,
|
|
3841
3908
|
multiSelection: !0,
|
|
3842
3909
|
exclude: { members: [] },
|
|
3843
|
-
filterType:
|
|
3910
|
+
filterType: T.CONDITION
|
|
3844
3911
|
},
|
|
3845
|
-
[
|
|
3912
|
+
[T.SPECIFIC_ITEMS]: {
|
|
3846
3913
|
explicit: !0,
|
|
3847
3914
|
multiSelection: !0,
|
|
3848
3915
|
members: [],
|
|
3849
|
-
filterType:
|
|
3916
|
+
filterType: T.SPECIFIC_ITEMS
|
|
3850
3917
|
}
|
|
3851
3918
|
};
|
|
3852
|
-
|
|
3919
|
+
Ga.INCLUDE_ALL, ve.YEARS;
|
|
3853
3920
|
var qe;
|
|
3854
3921
|
(function(e) {
|
|
3855
3922
|
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";
|
|
@@ -3868,16 +3935,16 @@ const an = (e) => {
|
|
|
3868
3935
|
return { left: c, right: d, operator: "AND" };
|
|
3869
3936
|
}
|
|
3870
3937
|
function r(a) {
|
|
3871
|
-
return a && (
|
|
3938
|
+
return a && (Qa(a) ? za(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));
|
|
3872
3939
|
}
|
|
3873
|
-
const s =
|
|
3940
|
+
const s = Ba(e), i = r(s);
|
|
3874
3941
|
return { filters: Array.from(t), relations: i };
|
|
3875
3942
|
};
|
|
3876
|
-
function
|
|
3943
|
+
function Qa(e) {
|
|
3877
3944
|
return "config" in e && "guid" in e.config;
|
|
3878
3945
|
}
|
|
3879
3946
|
S.TextAttribute, S.NumericAttribute, S.DateLevel;
|
|
3880
|
-
const
|
|
3947
|
+
const zo = (e) => {
|
|
3881
3948
|
const [t, n] = q(Vt, {
|
|
3882
3949
|
isLoading: !0,
|
|
3883
3950
|
isError: !1,
|
|
@@ -3899,14 +3966,14 @@ const Vo = (e) => {
|
|
|
3899
3966
|
offset: l,
|
|
3900
3967
|
ungroup: g,
|
|
3901
3968
|
onBeforeQuery: p
|
|
3902
|
-
} = O(e), { filters:
|
|
3969
|
+
} = O(e), { filters: y, relations: h } = an(c);
|
|
3903
3970
|
n({ type: "loading" });
|
|
3904
|
-
const x = await
|
|
3971
|
+
const x = await Un(
|
|
3905
3972
|
{
|
|
3906
3973
|
dataSource: a,
|
|
3907
3974
|
dimensions: o,
|
|
3908
3975
|
measures: u,
|
|
3909
|
-
filters:
|
|
3976
|
+
filters: y,
|
|
3910
3977
|
filterRelations: h,
|
|
3911
3978
|
highlights: d,
|
|
3912
3979
|
count: f,
|
|
@@ -3914,22 +3981,22 @@ const Vo = (e) => {
|
|
|
3914
3981
|
ungroup: g
|
|
3915
3982
|
},
|
|
3916
3983
|
i,
|
|
3917
|
-
{ onBeforeQuery:
|
|
3984
|
+
{ onBeforeQuery: Je(p) }
|
|
3918
3985
|
);
|
|
3919
3986
|
n({ type: "success", data: x });
|
|
3920
3987
|
} catch (a) {
|
|
3921
3988
|
n({ type: "error", error: a });
|
|
3922
3989
|
}
|
|
3923
3990
|
};
|
|
3924
|
-
return
|
|
3925
|
-
[...
|
|
3991
|
+
return N(
|
|
3992
|
+
[...E(e), r],
|
|
3926
3993
|
() => {
|
|
3927
3994
|
const { app: i } = r.value, { enabled: a } = O(e);
|
|
3928
3995
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
3929
3996
|
},
|
|
3930
3997
|
{ immediate: !0 }
|
|
3931
|
-
),
|
|
3932
|
-
},
|
|
3998
|
+
), j(t.value);
|
|
3999
|
+
}, Go = (e) => {
|
|
3933
4000
|
const t = B(void 0), n = B(void 0);
|
|
3934
4001
|
M("useExecuteQueryByWidgetId");
|
|
3935
4002
|
const [r, s] = q(Vt, {
|
|
@@ -3942,11 +4009,11 @@ const Vo = (e) => {
|
|
|
3942
4009
|
}), i = V(), a = async (o) => {
|
|
3943
4010
|
try {
|
|
3944
4011
|
s({ type: "loading" });
|
|
3945
|
-
const { filters: u, ...c } = O(e), { filters: d } = an(
|
|
4012
|
+
const { filters: u, ...c } = O(e), { filters: d } = an(Je(u)), {
|
|
3946
4013
|
data: f,
|
|
3947
4014
|
query: l,
|
|
3948
4015
|
pivotQuery: g
|
|
3949
|
-
} = await
|
|
4016
|
+
} = await qn({
|
|
3950
4017
|
...c,
|
|
3951
4018
|
filters: d,
|
|
3952
4019
|
app: o
|
|
@@ -3956,23 +4023,23 @@ const Vo = (e) => {
|
|
|
3956
4023
|
s({ type: "error", error: u });
|
|
3957
4024
|
}
|
|
3958
4025
|
};
|
|
3959
|
-
return
|
|
3960
|
-
[...
|
|
4026
|
+
return N(
|
|
4027
|
+
[...E(e), i],
|
|
3961
4028
|
() => {
|
|
3962
4029
|
const { app: o } = i.value, { enabled: u } = O(e);
|
|
3963
4030
|
!o || !(u === void 0 || u === !0) || a(o);
|
|
3964
4031
|
},
|
|
3965
4032
|
{ immediate: !0 }
|
|
3966
4033
|
), {
|
|
3967
|
-
...
|
|
4034
|
+
...j(r.value),
|
|
3968
4035
|
query: t,
|
|
3969
4036
|
pivotQuery: n
|
|
3970
4037
|
};
|
|
3971
|
-
},
|
|
4038
|
+
}, Qo = (e) => {
|
|
3972
4039
|
M("useExecuteCsvQuery");
|
|
3973
|
-
const t = new
|
|
3974
|
-
|
|
3975
|
-
]), [n, r] =
|
|
4040
|
+
const t = new le(Vn, [
|
|
4041
|
+
ce()
|
|
4042
|
+
]), [n, r] = de({
|
|
3976
4043
|
isLoading: !0,
|
|
3977
4044
|
isError: !1,
|
|
3978
4045
|
isSuccess: !1,
|
|
@@ -3982,16 +4049,35 @@ const Vo = (e) => {
|
|
|
3982
4049
|
});
|
|
3983
4050
|
return t.subscribe((s) => {
|
|
3984
4051
|
r(s);
|
|
3985
|
-
}), t.run(O(e)),
|
|
4052
|
+
}), t.run(O(e)), N([...E(e)], () => {
|
|
3986
4053
|
t.run(O(e));
|
|
3987
|
-
}),
|
|
4054
|
+
}), fe(() => {
|
|
3988
4055
|
t.destroy();
|
|
3989
|
-
}),
|
|
3990
|
-
},
|
|
4056
|
+
}), j(n.value);
|
|
4057
|
+
}, Jo = (e) => {
|
|
4058
|
+
M("useExecutePivotQuery");
|
|
4059
|
+
const t = new le(Wn, [
|
|
4060
|
+
ce()
|
|
4061
|
+
]), [n, r] = de({
|
|
4062
|
+
isLoading: !0,
|
|
4063
|
+
isError: !1,
|
|
4064
|
+
isSuccess: !1,
|
|
4065
|
+
status: "loading",
|
|
4066
|
+
error: void 0,
|
|
4067
|
+
data: void 0
|
|
4068
|
+
});
|
|
4069
|
+
return t.subscribe((s) => {
|
|
4070
|
+
r(s);
|
|
4071
|
+
}), t.run(O(e)), N([...E(e)], () => {
|
|
4072
|
+
t.run(O(e));
|
|
4073
|
+
}), fe(() => {
|
|
4074
|
+
t.destroy();
|
|
4075
|
+
}), j(n.value);
|
|
4076
|
+
}, Yo = (e) => {
|
|
3991
4077
|
M("useExecuteCustomWidgetQuery");
|
|
3992
|
-
const t = new
|
|
3993
|
-
|
|
3994
|
-
]), [n, r] =
|
|
4078
|
+
const t = new le(Hn, [
|
|
4079
|
+
ce()
|
|
4080
|
+
]), [n, r] = de({
|
|
3995
4081
|
data: void 0,
|
|
3996
4082
|
isLoading: !0,
|
|
3997
4083
|
isError: !1,
|
|
@@ -4001,17 +4087,17 @@ const Vo = (e) => {
|
|
|
4001
4087
|
});
|
|
4002
4088
|
return t.subscribe((s) => {
|
|
4003
4089
|
r(s);
|
|
4004
|
-
}), t.run(O(e)),
|
|
4090
|
+
}), t.run(O(e)), N([...E(e)], () => {
|
|
4005
4091
|
t.run(O(e));
|
|
4006
|
-
}),
|
|
4092
|
+
}), fe(() => {
|
|
4007
4093
|
t.destroy();
|
|
4008
|
-
}),
|
|
4009
|
-
},
|
|
4094
|
+
}), j(n.value);
|
|
4095
|
+
}, Xo = (e) => {
|
|
4010
4096
|
M("useGetFilterMembers");
|
|
4011
4097
|
const { filter: t, parentFilters: n = [] } = O(e), r = {
|
|
4012
4098
|
selectedMembers: [],
|
|
4013
4099
|
allMembers: [],
|
|
4014
|
-
...
|
|
4100
|
+
...Ka(t) ? {
|
|
4015
4101
|
excludeMembers: t.config.excludeMembers,
|
|
4016
4102
|
enableMultiSelection: t.config.enableMultiSelection,
|
|
4017
4103
|
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
|
@@ -4020,7 +4106,7 @@ const Vo = (e) => {
|
|
|
4020
4106
|
enableMultiSelection: !1,
|
|
4021
4107
|
hasBackgroundFilter: !1
|
|
4022
4108
|
}
|
|
4023
|
-
}, s = new
|
|
4109
|
+
}, s = new le(Kn, [ce()]), [i, a] = de({
|
|
4024
4110
|
isLoading: !0,
|
|
4025
4111
|
isError: !1,
|
|
4026
4112
|
isSuccess: !1,
|
|
@@ -4030,14 +4116,14 @@ const Vo = (e) => {
|
|
|
4030
4116
|
});
|
|
4031
4117
|
return s.subscribe((o) => {
|
|
4032
4118
|
a(o);
|
|
4033
|
-
}), s.run(O(e)),
|
|
4119
|
+
}), s.run(O(e)), N([...E(e)], () => {
|
|
4034
4120
|
s.run(O(e));
|
|
4035
|
-
}),
|
|
4121
|
+
}), fe(() => {
|
|
4036
4122
|
s.destroy();
|
|
4037
|
-
}),
|
|
4038
|
-
},
|
|
4123
|
+
}), j(i.value);
|
|
4124
|
+
}, Zo = (e) => {
|
|
4039
4125
|
M("useGetDashboardModel");
|
|
4040
|
-
const [t, n] = q(
|
|
4126
|
+
const [t, n] = q(X, {
|
|
4041
4127
|
isLoading: !0,
|
|
4042
4128
|
isError: !1,
|
|
4043
4129
|
isSuccess: !1,
|
|
@@ -4047,7 +4133,7 @@ const Vo = (e) => {
|
|
|
4047
4133
|
}), r = V(), s = async (a) => {
|
|
4048
4134
|
try {
|
|
4049
4135
|
n({ type: "loading" });
|
|
4050
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = O(e), d = await
|
|
4136
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = O(e), d = await Gn(a.httpClient, o, {
|
|
4051
4137
|
includeWidgets: u,
|
|
4052
4138
|
includeFilters: c
|
|
4053
4139
|
});
|
|
@@ -4056,19 +4142,19 @@ const Vo = (e) => {
|
|
|
4056
4142
|
n({ type: "error", error: o });
|
|
4057
4143
|
}
|
|
4058
4144
|
};
|
|
4059
|
-
|
|
4060
|
-
[...
|
|
4145
|
+
N(
|
|
4146
|
+
[...E(e), r],
|
|
4061
4147
|
() => {
|
|
4062
4148
|
const { app: a } = r.value, { enabled: o } = O(e);
|
|
4063
4149
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4064
4150
|
},
|
|
4065
4151
|
{ immediate: !0 }
|
|
4066
4152
|
);
|
|
4067
|
-
const i =
|
|
4068
|
-
return
|
|
4069
|
-
},
|
|
4153
|
+
const i = j(t.value);
|
|
4154
|
+
return j(zn(i));
|
|
4155
|
+
}, eu = (e) => {
|
|
4070
4156
|
M("useGetDashboardModels");
|
|
4071
|
-
const [t, n] = q(
|
|
4157
|
+
const [t, n] = q(X, {
|
|
4072
4158
|
isLoading: !0,
|
|
4073
4159
|
isError: !1,
|
|
4074
4160
|
isSuccess: !1,
|
|
@@ -4078,25 +4164,25 @@ const Vo = (e) => {
|
|
|
4078
4164
|
}), r = V(), s = async (a) => {
|
|
4079
4165
|
try {
|
|
4080
4166
|
n({ type: "loading" });
|
|
4081
|
-
const o = O(e), u = await
|
|
4167
|
+
const o = O(e), u = await Jn(a.httpClient, o);
|
|
4082
4168
|
n({ type: "success", data: u });
|
|
4083
4169
|
} catch (o) {
|
|
4084
4170
|
n({ type: "error", error: o });
|
|
4085
4171
|
}
|
|
4086
4172
|
};
|
|
4087
|
-
|
|
4088
|
-
[...
|
|
4173
|
+
N(
|
|
4174
|
+
[...E(e), r],
|
|
4089
4175
|
() => {
|
|
4090
4176
|
const { app: a } = r.value, { enabled: o } = O(e);
|
|
4091
4177
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4092
4178
|
},
|
|
4093
4179
|
{ immediate: !0 }
|
|
4094
4180
|
);
|
|
4095
|
-
const i =
|
|
4096
|
-
return
|
|
4097
|
-
},
|
|
4181
|
+
const i = j(t.value);
|
|
4182
|
+
return j(Qn(i));
|
|
4183
|
+
}, tu = (e) => {
|
|
4098
4184
|
M("useGetSharedFormula");
|
|
4099
|
-
const [t, n] = q(
|
|
4185
|
+
const [t, n] = q(X, {
|
|
4100
4186
|
isLoading: !0,
|
|
4101
4187
|
isError: !1,
|
|
4102
4188
|
isSuccess: !1,
|
|
@@ -4107,27 +4193,27 @@ const Vo = (e) => {
|
|
|
4107
4193
|
n({ type: "loading" });
|
|
4108
4194
|
const { dataSource: o, name: u, oid: c } = O(e);
|
|
4109
4195
|
let d = Promise.resolve(null);
|
|
4110
|
-
c ? d =
|
|
4196
|
+
c ? d = Xn(c, a) : u && o && (d = Zn(u, o, a)), d.then((f) => {
|
|
4111
4197
|
n({ type: "success", data: f });
|
|
4112
4198
|
}).catch((f) => {
|
|
4113
4199
|
n({ type: "error", error: f });
|
|
4114
4200
|
});
|
|
4115
4201
|
};
|
|
4116
|
-
|
|
4117
|
-
[...
|
|
4202
|
+
N(
|
|
4203
|
+
[...E(e), r],
|
|
4118
4204
|
() => {
|
|
4119
4205
|
const { app: a } = r.value, { enabled: o } = O(e);
|
|
4120
4206
|
!a || !(o === void 0 || o === !0) || s(a);
|
|
4121
4207
|
},
|
|
4122
4208
|
{ immediate: !0 }
|
|
4123
4209
|
);
|
|
4124
|
-
const i =
|
|
4125
|
-
return
|
|
4126
|
-
|
|
4210
|
+
const i = j(t.value);
|
|
4211
|
+
return j(
|
|
4212
|
+
Yn(i)
|
|
4127
4213
|
);
|
|
4128
|
-
},
|
|
4214
|
+
}, nu = (e) => {
|
|
4129
4215
|
M("useGetWidgetModel");
|
|
4130
|
-
const [t, n] = q(
|
|
4216
|
+
const [t, n] = q(X, {
|
|
4131
4217
|
isLoading: !0,
|
|
4132
4218
|
isError: !1,
|
|
4133
4219
|
isSuccess: !1,
|
|
@@ -4137,23 +4223,23 @@ const Vo = (e) => {
|
|
|
4137
4223
|
}), r = V(), s = async (i) => {
|
|
4138
4224
|
try {
|
|
4139
4225
|
n({ type: "loading" });
|
|
4140
|
-
const { dashboardOid: a, widgetOid: o } = O(e), u = await
|
|
4226
|
+
const { dashboardOid: a, widgetOid: o } = O(e), u = await er(i.httpClient, a, o);
|
|
4141
4227
|
n({ type: "success", data: u });
|
|
4142
4228
|
} catch (a) {
|
|
4143
4229
|
n({ type: "error", error: a });
|
|
4144
4230
|
}
|
|
4145
4231
|
};
|
|
4146
|
-
return
|
|
4147
|
-
[...
|
|
4232
|
+
return N(
|
|
4233
|
+
[...E(e), r],
|
|
4148
4234
|
() => {
|
|
4149
4235
|
const { app: i } = r.value, { enabled: a } = O(e);
|
|
4150
4236
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4151
4237
|
},
|
|
4152
4238
|
{ immediate: !0 }
|
|
4153
|
-
),
|
|
4154
|
-
},
|
|
4239
|
+
), j(t.value);
|
|
4240
|
+
}, ru = (e) => {
|
|
4155
4241
|
M("useGetHierarchyModels");
|
|
4156
|
-
const [t, n] = q(
|
|
4242
|
+
const [t, n] = q(X, {
|
|
4157
4243
|
isLoading: !0,
|
|
4158
4244
|
isError: !1,
|
|
4159
4245
|
isSuccess: !1,
|
|
@@ -4163,22 +4249,22 @@ const Vo = (e) => {
|
|
|
4163
4249
|
}), r = V(), s = async (i) => {
|
|
4164
4250
|
try {
|
|
4165
4251
|
n({ type: "loading" });
|
|
4166
|
-
const a = await
|
|
4252
|
+
const a = await tr(i.httpClient, O(e));
|
|
4167
4253
|
n({ type: "success", data: a });
|
|
4168
4254
|
} catch (a) {
|
|
4169
4255
|
n({ type: "error", error: a });
|
|
4170
4256
|
}
|
|
4171
4257
|
};
|
|
4172
|
-
return
|
|
4173
|
-
[...
|
|
4258
|
+
return N(
|
|
4259
|
+
[...E(e), r],
|
|
4174
4260
|
() => {
|
|
4175
4261
|
const { app: i } = r.value, { enabled: a } = O(e);
|
|
4176
4262
|
!i || !(a === void 0 || a === !0) || s(i);
|
|
4177
4263
|
},
|
|
4178
4264
|
{ immediate: !0 }
|
|
4179
|
-
),
|
|
4180
|
-
},
|
|
4181
|
-
const [r, s] = q(
|
|
4265
|
+
), j(t.value);
|
|
4266
|
+
}, su = (e, t, n) => {
|
|
4267
|
+
const [r, s] = q(X, {
|
|
4182
4268
|
isLoading: !0,
|
|
4183
4269
|
isError: !1,
|
|
4184
4270
|
isSuccess: !1,
|
|
@@ -4188,7 +4274,7 @@ const Vo = (e) => {
|
|
|
4188
4274
|
}), i = V(), a = async (o) => {
|
|
4189
4275
|
try {
|
|
4190
4276
|
s({ type: "loading" });
|
|
4191
|
-
const u =
|
|
4277
|
+
const u = Je(e), c = t ? O(t) : {}, d = n ? O(n) : {}, f = {
|
|
4192
4278
|
requestConfig: d.requestConfig ? O(d.requestConfig) : {},
|
|
4193
4279
|
skipTrackingParam: !0
|
|
4194
4280
|
}, l = await o.call(
|
|
@@ -4201,19 +4287,19 @@ const Vo = (e) => {
|
|
|
4201
4287
|
s({ type: "error", error: u });
|
|
4202
4288
|
}
|
|
4203
4289
|
};
|
|
4204
|
-
return
|
|
4205
|
-
[...
|
|
4290
|
+
return N(
|
|
4291
|
+
[...E(e, t, n), i],
|
|
4206
4292
|
() => {
|
|
4207
4293
|
const { app: o } = i.value, u = O(n || {}).enabled;
|
|
4208
4294
|
!o || !(u === void 0 || u === !0) || a(o.httpClient);
|
|
4209
4295
|
},
|
|
4210
4296
|
{ immediate: !0 }
|
|
4211
|
-
),
|
|
4297
|
+
), j(r.value);
|
|
4212
4298
|
};
|
|
4213
|
-
function
|
|
4299
|
+
function Ja(e, t) {
|
|
4214
4300
|
const n = document.createElement("div");
|
|
4215
4301
|
n.style.width = "100%", n.style.height = "100%";
|
|
4216
|
-
const r =
|
|
4302
|
+
const r = Sr(e, t);
|
|
4217
4303
|
return r.mount(n), {
|
|
4218
4304
|
element: n,
|
|
4219
4305
|
app: r,
|
|
@@ -4222,8 +4308,8 @@ function za(e, t) {
|
|
|
4222
4308
|
}
|
|
4223
4309
|
};
|
|
4224
4310
|
}
|
|
4225
|
-
const
|
|
4226
|
-
const e =
|
|
4311
|
+
const iu = () => {
|
|
4312
|
+
const e = nr();
|
|
4227
4313
|
return {
|
|
4228
4314
|
/**
|
|
4229
4315
|
* Registers a new custom widget.
|
|
@@ -4233,8 +4319,8 @@ const eu = () => {
|
|
|
4233
4319
|
*/
|
|
4234
4320
|
registerCustomWidget: (t, n) => {
|
|
4235
4321
|
const r = (s) => {
|
|
4236
|
-
const i =
|
|
4237
|
-
return
|
|
4322
|
+
const i = Ja(n, s);
|
|
4323
|
+
return rr(
|
|
4238
4324
|
i.element,
|
|
4239
4325
|
() => i.destroy()
|
|
4240
4326
|
);
|
|
@@ -4252,16 +4338,16 @@ const eu = () => {
|
|
|
4252
4338
|
*/
|
|
4253
4339
|
hasCustomWidget: (t) => e.value.customWidgetsMap.has(t)
|
|
4254
4340
|
};
|
|
4255
|
-
},
|
|
4341
|
+
}, au = (e, t = {}) => {
|
|
4256
4342
|
M("useComposedDashboard");
|
|
4257
|
-
const n = new
|
|
4258
|
-
|
|
4259
|
-
]), [r, s] =
|
|
4343
|
+
const n = new le(sr, [
|
|
4344
|
+
ce()
|
|
4345
|
+
]), [r, s] = de(O(e));
|
|
4260
4346
|
n.subscribe(({ dashboard: o }) => {
|
|
4261
4347
|
s(o);
|
|
4262
|
-
}), n.run(O(e), t),
|
|
4348
|
+
}), n.run(O(e), t), N([...E(e)], () => {
|
|
4263
4349
|
n.run(O(e), t);
|
|
4264
|
-
}),
|
|
4350
|
+
}), fe(() => {
|
|
4265
4351
|
n.destroy();
|
|
4266
4352
|
});
|
|
4267
4353
|
const i = at(n, "setFilters"), a = at(n, "setWidgetsLayout");
|
|
@@ -4270,7 +4356,7 @@ const eu = () => {
|
|
|
4270
4356
|
setFilters: i,
|
|
4271
4357
|
setWidgetsLayout: a
|
|
4272
4358
|
};
|
|
4273
|
-
},
|
|
4359
|
+
}, Ya = m({
|
|
4274
4360
|
props: {
|
|
4275
4361
|
/**
|
|
4276
4362
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
|
@@ -4288,8 +4374,8 @@ const eu = () => {
|
|
|
4288
4374
|
*/
|
|
4289
4375
|
position: Object
|
|
4290
4376
|
},
|
|
4291
|
-
setup: (e, { slots: t }) => It(
|
|
4292
|
-
}),
|
|
4377
|
+
setup: (e, { slots: t }) => It(ir, e, t, [])
|
|
4378
|
+
}), Xa = ({
|
|
4293
4379
|
drilldownPaths: e,
|
|
4294
4380
|
initialDimension: t
|
|
4295
4381
|
}) => {
|
|
@@ -4298,23 +4384,23 @@ const eu = () => {
|
|
|
4298
4384
|
"Initial dimension has to be specified to use drilldown with custom components"
|
|
4299
4385
|
);
|
|
4300
4386
|
const n = B([]), r = B(), s = B([]), i = B([]), a = Ve(() => [
|
|
4301
|
-
|
|
4387
|
+
ar(t),
|
|
4302
4388
|
...n.value.map(({ nextDimension: l }) => l)
|
|
4303
4389
|
]), o = Ve(
|
|
4304
4390
|
() => e.value.filter((l) => {
|
|
4305
4391
|
if (S.isAttribute(l)) {
|
|
4306
|
-
const
|
|
4392
|
+
const y = l;
|
|
4307
4393
|
return a.value.every(
|
|
4308
|
-
(h) => !ot(h,
|
|
4394
|
+
(h) => !ot(h, y)
|
|
4309
4395
|
);
|
|
4310
4396
|
}
|
|
4311
4397
|
const p = l;
|
|
4312
4398
|
return a.value.every(
|
|
4313
|
-
(
|
|
4399
|
+
(y, h) => ot(y, p.levels[h])
|
|
4314
4400
|
);
|
|
4315
4401
|
})
|
|
4316
4402
|
), u = (l, g, p) => {
|
|
4317
|
-
n.value =
|
|
4403
|
+
n.value = or(
|
|
4318
4404
|
n.value,
|
|
4319
4405
|
l,
|
|
4320
4406
|
g,
|
|
@@ -4325,7 +4411,7 @@ const eu = () => {
|
|
|
4325
4411
|
}, d = () => {
|
|
4326
4412
|
n.value = [], f();
|
|
4327
4413
|
}, f = () => {
|
|
4328
|
-
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g =
|
|
4414
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = ur(
|
|
4329
4415
|
n.value,
|
|
4330
4416
|
t,
|
|
4331
4417
|
l
|
|
@@ -4342,7 +4428,7 @@ const eu = () => {
|
|
|
4342
4428
|
sliceDrilldownSelections: c,
|
|
4343
4429
|
clearDrilldownSelections: d
|
|
4344
4430
|
};
|
|
4345
|
-
},
|
|
4431
|
+
}, Za = m({
|
|
4346
4432
|
props: {
|
|
4347
4433
|
/**
|
|
4348
4434
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
|
@@ -4378,11 +4464,11 @@ const eu = () => {
|
|
|
4378
4464
|
},
|
|
4379
4465
|
setup: () => {
|
|
4380
4466
|
}
|
|
4381
|
-
}),
|
|
4467
|
+
}), eo = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, to = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, ou = /* @__PURE__ */ m({
|
|
4382
4468
|
__name: "drilldown-widget",
|
|
4383
|
-
props:
|
|
4469
|
+
props: Za.props,
|
|
4384
4470
|
setup(e) {
|
|
4385
|
-
const t = e, { drilldownPaths: n, initialDimension: r, config: s } =
|
|
4471
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = j(t), i = B(null), a = B([]), {
|
|
4386
4472
|
drilldownFilters: o,
|
|
4387
4473
|
// computed
|
|
4388
4474
|
drilldownDimension: u,
|
|
@@ -4394,65 +4480,65 @@ const eu = () => {
|
|
|
4394
4480
|
selectDrilldown: f,
|
|
4395
4481
|
sliceDrilldownSelections: l,
|
|
4396
4482
|
clearDrilldownSelections: g
|
|
4397
|
-
} =
|
|
4483
|
+
} = Xa({
|
|
4398
4484
|
drilldownPaths: n,
|
|
4399
4485
|
initialDimension: r.value
|
|
4400
|
-
}), p = (
|
|
4401
|
-
f(a.value,
|
|
4402
|
-
},
|
|
4403
|
-
const
|
|
4486
|
+
}), p = (D) => {
|
|
4487
|
+
f(a.value, D);
|
|
4488
|
+
}, y = Ve(() => {
|
|
4489
|
+
const D = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
|
4404
4490
|
return [
|
|
4405
|
-
|
|
4406
|
-
|
|
4491
|
+
lr(a.value, u.value),
|
|
4492
|
+
cr(
|
|
4407
4493
|
d.value,
|
|
4408
4494
|
u.value,
|
|
4409
4495
|
p,
|
|
4410
|
-
|
|
4496
|
+
D
|
|
4411
4497
|
)
|
|
4412
4498
|
];
|
|
4413
|
-
}), h = (
|
|
4414
|
-
i.value =
|
|
4415
|
-
}, x = (
|
|
4416
|
-
a.value =
|
|
4499
|
+
}), h = (D) => {
|
|
4500
|
+
i.value = D;
|
|
4501
|
+
}, x = (D) => {
|
|
4502
|
+
a.value = D;
|
|
4417
4503
|
}, w = () => {
|
|
4418
4504
|
i.value = null;
|
|
4419
4505
|
};
|
|
4420
|
-
return (
|
|
4421
|
-
|
|
4422
|
-
contextMenuProps: { position: i.value, itemSections:
|
|
4506
|
+
return (D, C) => (Or(), vr("div", eo, [
|
|
4507
|
+
Re(D.$slots, "contextMenu", {
|
|
4508
|
+
contextMenuProps: { position: i.value, itemSections: y.value, closeContextMenu: w }
|
|
4423
4509
|
}, () => [
|
|
4424
|
-
ut(
|
|
4510
|
+
ut(R(Ya), {
|
|
4425
4511
|
position: i.value,
|
|
4426
|
-
itemSections:
|
|
4512
|
+
itemSections: y.value,
|
|
4427
4513
|
closeContextMenu: w
|
|
4428
4514
|
}, null, 8, ["position", "itemSections"])
|
|
4429
4515
|
]),
|
|
4430
|
-
|
|
4516
|
+
Re(D.$slots, "breadcrumbs", {
|
|
4431
4517
|
drilldownBreadcrumbsProps: {
|
|
4432
|
-
clearDrilldownSelections:
|
|
4433
|
-
sliceDrilldownSelections:
|
|
4434
|
-
drilldownFiltersDisplayValues:
|
|
4435
|
-
drilldownDimension:
|
|
4518
|
+
clearDrilldownSelections: R(g),
|
|
4519
|
+
sliceDrilldownSelections: R(l),
|
|
4520
|
+
drilldownFiltersDisplayValues: R(c),
|
|
4521
|
+
drilldownDimension: R(u)
|
|
4436
4522
|
}
|
|
4437
4523
|
}, () => [
|
|
4438
|
-
ut(
|
|
4439
|
-
"clear-drilldown-selections":
|
|
4440
|
-
"slice-drilldown-selections":
|
|
4441
|
-
"filters-display-values":
|
|
4442
|
-
"current-dimension":
|
|
4524
|
+
ut(R(Cr), {
|
|
4525
|
+
"clear-drilldown-selections": R(g),
|
|
4526
|
+
"slice-drilldown-selections": R(l),
|
|
4527
|
+
"filters-display-values": R(c),
|
|
4528
|
+
"current-dimension": R(u)
|
|
4443
4529
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
|
4444
4530
|
]),
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
drilldownFilters:
|
|
4448
|
-
drilldownDimension:
|
|
4531
|
+
xr("div", to, [
|
|
4532
|
+
Re(D.$slots, "chart", {
|
|
4533
|
+
drilldownFilters: R(o),
|
|
4534
|
+
drilldownDimension: R(u),
|
|
4449
4535
|
onDataPointsSelected: x,
|
|
4450
4536
|
onContextMenu: h
|
|
4451
4537
|
})
|
|
4452
4538
|
])
|
|
4453
4539
|
]));
|
|
4454
4540
|
}
|
|
4455
|
-
}),
|
|
4541
|
+
}), uu = m({
|
|
4456
4542
|
props: {
|
|
4457
4543
|
/**
|
|
4458
4544
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
|
@@ -4587,8 +4673,8 @@ const eu = () => {
|
|
|
4587
4673
|
*/
|
|
4588
4674
|
onDataReady: Function
|
|
4589
4675
|
},
|
|
4590
|
-
setup: (e) => b(
|
|
4591
|
-
}),
|
|
4676
|
+
setup: (e) => b(dr, e)
|
|
4677
|
+
}), lu = m({
|
|
4592
4678
|
props: {
|
|
4593
4679
|
/** @internal */
|
|
4594
4680
|
bottomSlot: Object,
|
|
@@ -4699,8 +4785,8 @@ const eu = () => {
|
|
|
4699
4785
|
*/
|
|
4700
4786
|
onDataReady: Function
|
|
4701
4787
|
},
|
|
4702
|
-
setup: (e) => b(
|
|
4703
|
-
}),
|
|
4788
|
+
setup: (e) => b(fr, e)
|
|
4789
|
+
}), cu = m({
|
|
4704
4790
|
props: {
|
|
4705
4791
|
bottomSlot: Object,
|
|
4706
4792
|
dataOptions: {
|
|
@@ -4715,8 +4801,99 @@ const eu = () => {
|
|
|
4715
4801
|
topSlot: Object,
|
|
4716
4802
|
widgetStyleOptions: Object
|
|
4717
4803
|
},
|
|
4718
|
-
setup: (e) => b(
|
|
4719
|
-
}),
|
|
4804
|
+
setup: (e) => b(pr, e)
|
|
4805
|
+
}), du = m({
|
|
4806
|
+
props: {
|
|
4807
|
+
/**
|
|
4808
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataOptions}
|
|
4809
|
+
*
|
|
4810
|
+
* @category Chart
|
|
4811
|
+
*/
|
|
4812
|
+
dataOptions: {
|
|
4813
|
+
type: Object,
|
|
4814
|
+
required: !0
|
|
4815
|
+
},
|
|
4816
|
+
/**
|
|
4817
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.dataSource}
|
|
4818
|
+
*
|
|
4819
|
+
* @category Data
|
|
4820
|
+
*/
|
|
4821
|
+
dataSource: [String, Object],
|
|
4822
|
+
/**
|
|
4823
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.description}
|
|
4824
|
+
*
|
|
4825
|
+
* @category Widget
|
|
4826
|
+
*/
|
|
4827
|
+
description: String,
|
|
4828
|
+
/**
|
|
4829
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.filters}
|
|
4830
|
+
*
|
|
4831
|
+
* @category Data
|
|
4832
|
+
*/
|
|
4833
|
+
filters: [Object, Array],
|
|
4834
|
+
/**
|
|
4835
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.styleOptions}
|
|
4836
|
+
*
|
|
4837
|
+
* @category Widget
|
|
4838
|
+
*/
|
|
4839
|
+
styleOptions: Object,
|
|
4840
|
+
/**
|
|
4841
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.title}
|
|
4842
|
+
*
|
|
4843
|
+
* @category Widget
|
|
4844
|
+
*/
|
|
4845
|
+
title: String,
|
|
4846
|
+
/**
|
|
4847
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.topSlot}
|
|
4848
|
+
*
|
|
4849
|
+
* @category Widget
|
|
4850
|
+
* @internal
|
|
4851
|
+
*/
|
|
4852
|
+
topSlot: Object,
|
|
4853
|
+
/**
|
|
4854
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.bottomSlot}
|
|
4855
|
+
*
|
|
4856
|
+
* @category Widget
|
|
4857
|
+
* @internal
|
|
4858
|
+
*/
|
|
4859
|
+
bottomSlot: Object,
|
|
4860
|
+
/**
|
|
4861
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.highlights}
|
|
4862
|
+
*
|
|
4863
|
+
* @category Data
|
|
4864
|
+
*/
|
|
4865
|
+
highlights: Array,
|
|
4866
|
+
/**
|
|
4867
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.onDataPointClick}
|
|
4868
|
+
*
|
|
4869
|
+
* @category Callbacks
|
|
4870
|
+
* @internal
|
|
4871
|
+
*/
|
|
4872
|
+
onDataPointClick: Function,
|
|
4873
|
+
/**
|
|
4874
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.onDataPointContextMenu}
|
|
4875
|
+
*
|
|
4876
|
+
* @category Callbacks
|
|
4877
|
+
* @internal
|
|
4878
|
+
*/
|
|
4879
|
+
onDataPointContextMenu: Function,
|
|
4880
|
+
/**
|
|
4881
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.onDataCellFormat}
|
|
4882
|
+
*
|
|
4883
|
+
* @category Callbacks
|
|
4884
|
+
* @internal
|
|
4885
|
+
*/
|
|
4886
|
+
onDataCellFormat: Function,
|
|
4887
|
+
/**
|
|
4888
|
+
* {@inheritDoc @sisense/sdk-ui!PivotTableWidgetProps.onHeaderCellFormat}
|
|
4889
|
+
*
|
|
4890
|
+
* @category Callbacks
|
|
4891
|
+
* @internal
|
|
4892
|
+
*/
|
|
4893
|
+
onHeaderCellFormat: Function
|
|
4894
|
+
},
|
|
4895
|
+
setup: (e) => b(gr, e)
|
|
4896
|
+
}), fu = m({
|
|
4720
4897
|
props: {
|
|
4721
4898
|
/**
|
|
4722
4899
|
* Unique identifier of the widget
|
|
@@ -4841,8 +5018,8 @@ const eu = () => {
|
|
|
4841
5018
|
*/
|
|
4842
5019
|
onDataPointsSelected: Function
|
|
4843
5020
|
},
|
|
4844
|
-
setup: (e) => b(
|
|
4845
|
-
}),
|
|
5021
|
+
setup: (e) => b(hr, e)
|
|
5022
|
+
}), pu = m({
|
|
4846
5023
|
props: {
|
|
4847
5024
|
/**
|
|
4848
5025
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
|
@@ -4856,8 +5033,8 @@ const eu = () => {
|
|
|
4856
5033
|
*/
|
|
4857
5034
|
config: Object
|
|
4858
5035
|
},
|
|
4859
|
-
setup: (e) => b(
|
|
4860
|
-
}),
|
|
5036
|
+
setup: (e) => b(mr, e)
|
|
5037
|
+
}), gu = m({
|
|
4861
5038
|
props: {
|
|
4862
5039
|
/**
|
|
4863
5040
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
|
@@ -4895,110 +5072,113 @@ const eu = () => {
|
|
|
4895
5072
|
*/
|
|
4896
5073
|
styleOptions: Object
|
|
4897
5074
|
},
|
|
4898
|
-
setup: (e) => b(
|
|
5075
|
+
setup: (e) => b(yr, e)
|
|
4899
5076
|
});
|
|
4900
|
-
function
|
|
4901
|
-
return
|
|
5077
|
+
function no(e) {
|
|
5078
|
+
return br.toDashboardProps(e);
|
|
4902
5079
|
}
|
|
4903
|
-
const
|
|
5080
|
+
const hu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4904
5081
|
__proto__: null,
|
|
4905
|
-
toDashboardProps:
|
|
4906
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
5082
|
+
toDashboardProps: no
|
|
5083
|
+
}, Symbol.toStringTag, { value: "Module" })), ro = (e, t) => Z.replaceFilters(e, t), so = (e, t) => Z.addFilter(e, t), io = (e, t) => Z.addFilters(e, t), ao = (e, t, n) => Z.replaceFilter(
|
|
4907
5084
|
e,
|
|
4908
5085
|
t,
|
|
4909
5086
|
n
|
|
4910
|
-
),
|
|
5087
|
+
), oo = (e, t) => Z.removeFilter(e, t), uo = (e, t) => Z.removeFilters(e, t), mu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4911
5088
|
__proto__: null,
|
|
4912
|
-
addFilter:
|
|
4913
|
-
addFilters:
|
|
4914
|
-
removeFilter:
|
|
4915
|
-
removeFilters:
|
|
4916
|
-
replaceFilter:
|
|
4917
|
-
replaceFilters:
|
|
4918
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
4919
|
-
function uo(e) {
|
|
4920
|
-
return H.toChartProps(e);
|
|
4921
|
-
}
|
|
4922
|
-
function lo(e) {
|
|
4923
|
-
return H.toTableProps(e);
|
|
4924
|
-
}
|
|
4925
|
-
function co(e) {
|
|
4926
|
-
return H.toPivotTableProps(e);
|
|
4927
|
-
}
|
|
5089
|
+
addFilter: so,
|
|
5090
|
+
addFilters: io,
|
|
5091
|
+
removeFilter: oo,
|
|
5092
|
+
removeFilters: uo,
|
|
5093
|
+
replaceFilter: ao,
|
|
5094
|
+
replaceFilters: ro
|
|
5095
|
+
}, Symbol.toStringTag, { value: "Module" })), lo = (e) => W.toExecuteQueryParams(e), co = (e) => W.toExecutePivotQueryParams(e);
|
|
4928
5096
|
function fo(e) {
|
|
4929
|
-
return
|
|
5097
|
+
return W.toChartProps(e);
|
|
4930
5098
|
}
|
|
4931
5099
|
function po(e) {
|
|
4932
|
-
return
|
|
5100
|
+
return W.toTableProps(e);
|
|
4933
5101
|
}
|
|
4934
5102
|
function go(e) {
|
|
4935
|
-
return
|
|
5103
|
+
return W.toPivotTableProps(e);
|
|
5104
|
+
}
|
|
5105
|
+
function ho(e) {
|
|
5106
|
+
return W.toChartWidgetProps(e);
|
|
5107
|
+
}
|
|
5108
|
+
function mo(e) {
|
|
5109
|
+
return W.toPivotTableWidgetProps(e);
|
|
5110
|
+
}
|
|
5111
|
+
function yo(e) {
|
|
5112
|
+
return W.toTextWidgetProps(e);
|
|
4936
5113
|
}
|
|
4937
|
-
const
|
|
5114
|
+
const yu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4938
5115
|
__proto__: null,
|
|
4939
|
-
toChartProps:
|
|
4940
|
-
toChartWidgetProps:
|
|
4941
|
-
toExecutePivotQueryParams:
|
|
4942
|
-
toExecuteQueryParams:
|
|
4943
|
-
toPivotTableProps:
|
|
4944
|
-
toPivotTableWidgetProps:
|
|
4945
|
-
toTableProps:
|
|
4946
|
-
toTextWidgetProps:
|
|
5116
|
+
toChartProps: fo,
|
|
5117
|
+
toChartWidgetProps: ho,
|
|
5118
|
+
toExecutePivotQueryParams: co,
|
|
5119
|
+
toExecuteQueryParams: lo,
|
|
5120
|
+
toPivotTableProps: go,
|
|
5121
|
+
toPivotTableWidgetProps: mo,
|
|
5122
|
+
toTableProps: po,
|
|
5123
|
+
toTextWidgetProps: yo
|
|
4947
5124
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
4948
5125
|
export {
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4952
|
-
|
|
4953
|
-
|
|
4954
|
-
|
|
4955
|
-
|
|
4956
|
-
|
|
4957
|
-
|
|
4958
|
-
|
|
4959
|
-
|
|
4960
|
-
|
|
4961
|
-
|
|
4962
|
-
|
|
4963
|
-
|
|
4964
|
-
|
|
4965
|
-
|
|
4966
|
-
|
|
4967
|
-
|
|
4968
|
-
|
|
4969
|
-
|
|
4970
|
-
|
|
4971
|
-
|
|
4972
|
-
|
|
4973
|
-
|
|
4974
|
-
|
|
4975
|
-
|
|
4976
|
-
|
|
4977
|
-
|
|
4978
|
-
|
|
4979
|
-
|
|
4980
|
-
|
|
4981
|
-
|
|
4982
|
-
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
Zo as
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5126
|
+
vo as AreaChart,
|
|
5127
|
+
Bo as AreaRangeChart,
|
|
5128
|
+
Io as AreamapChart,
|
|
5129
|
+
xo as BarChart,
|
|
5130
|
+
$o as BoxplotChart,
|
|
5131
|
+
Co as CalendarHeatmapChart,
|
|
5132
|
+
Mo as Chart,
|
|
5133
|
+
uu as ChartWidget,
|
|
5134
|
+
wo as ColumnChart,
|
|
5135
|
+
Ya as ContextMenu,
|
|
5136
|
+
Vo as CriteriaFilterTile,
|
|
5137
|
+
Ou as CustomWidgetsProvider,
|
|
5138
|
+
gu as Dashboard,
|
|
5139
|
+
pu as DashboardById,
|
|
5140
|
+
Uo as DateRangeFilterTile,
|
|
5141
|
+
Cr as DrilldownBreadcrumbs,
|
|
5142
|
+
ou as DrilldownWidget,
|
|
5143
|
+
Ho as FilterTile,
|
|
5144
|
+
Ko as FiltersPanel,
|
|
5145
|
+
Do as FunnelChart,
|
|
5146
|
+
To as IndicatorChart,
|
|
5147
|
+
jo as LineChart,
|
|
5148
|
+
qo as MemberFilterTile,
|
|
5149
|
+
Po as PieChart,
|
|
5150
|
+
Lo as PivotTable,
|
|
5151
|
+
du as PivotTableWidget,
|
|
5152
|
+
Ro as PolarChart,
|
|
5153
|
+
Wo as RelativeDateFilterTile,
|
|
5154
|
+
Fo as ScatterChart,
|
|
5155
|
+
_o as ScattermapChart,
|
|
5156
|
+
vu as SisenseContextProvider,
|
|
5157
|
+
ko as StreamgraphChart,
|
|
5158
|
+
No as SunburstChart,
|
|
5159
|
+
Ao as Table,
|
|
5160
|
+
cu as TableWidget,
|
|
5161
|
+
xu as ThemeProvider,
|
|
5162
|
+
Eo as TreemapChart,
|
|
5163
|
+
fu as Widget,
|
|
5164
|
+
lu as WidgetById,
|
|
5165
|
+
Cu as boxWhiskerProcessResult,
|
|
5166
|
+
mu as dashboardHelpers,
|
|
5167
|
+
hu as dashboardModelTranslator,
|
|
5168
|
+
wu as extractDimensionsAndMeasures,
|
|
5169
|
+
au as useComposedDashboard,
|
|
5170
|
+
iu as useCustomWidgets,
|
|
5171
|
+
Qo as useExecuteCsvQuery,
|
|
5172
|
+
Yo as useExecuteCustomWidgetQuery,
|
|
5173
|
+
Jo as useExecutePivotQuery,
|
|
5174
|
+
zo as useExecuteQuery,
|
|
5175
|
+
Go as useExecuteQueryByWidgetId,
|
|
5176
|
+
su as useFetch,
|
|
5177
|
+
Zo as useGetDashboardModel,
|
|
5178
|
+
eu as useGetDashboardModels,
|
|
5179
|
+
Xo as useGetFilterMembers,
|
|
5180
|
+
ru as useGetHierarchyModels,
|
|
5181
|
+
tu as useGetSharedFormula,
|
|
5182
|
+
nu as useGetWidgetModel,
|
|
5183
|
+
yu as widgetModelTranslator
|
|
5004
5184
|
};
|