@sisense/sdk-ui-vue 2.3.0 → 2.4.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 +23 -22
- package/dist/ai.js +642 -543
- package/dist/index.cjs +1 -1
- package/dist/index.js +935 -805
- package/dist/packages/sdk-ui-vue/src/components/charts/chart.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard-by-id.d.ts +2 -6
- package/dist/packages/sdk-ui-vue/src/components/dashboard/dashboard.d.ts +2 -6
- package/dist/packages/sdk-ui-vue/src/components/dashboard/index.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/components/filters/filters-panel.d.ts +106 -0
- package/dist/packages/sdk-ui-vue/src/components/filters/index.d.ts +1 -0
- package/dist/packages/sdk-ui-vue/src/components/widgets/chart-widget.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/components/widgets/index.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget-by-id.d.ts +2 -2
- package/dist/packages/sdk-ui-vue/src/components/widgets/widget.d.ts +13 -13
- package/dist/packages/sdk-ui-vue/src/composables/index.d.ts +4 -1
- package/dist/packages/sdk-ui-vue/src/composables/use-custom-widgets.d.ts +46 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-execute-custom-widget-query.d.ts +45 -0
- package/dist/packages/sdk-ui-vue/src/composables/use-get-filter-members.d.ts +46 -0
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/custom-widgets-context-connector.d.ts +8 -0
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/index.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/helpers/dynamic-renderer.d.ts +16 -0
- package/dist/packages/sdk-ui-vue/src/helpers/setup-helper.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/lib.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/providers/custom-widgets-provider/custom-widgets-context.d.ts +12 -0
- package/dist/packages/sdk-ui-vue/src/providers/{plugins-provider/plugins-provider.d.ts → custom-widgets-provider/custom-widgets-provider.d.ts} +3 -3
- package/dist/packages/sdk-ui-vue/src/providers/custom-widgets-provider/index.d.ts +2 -0
- package/dist/packages/sdk-ui-vue/src/providers/index.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/sdk-ui-core-exports.d.ts +1 -1
- package/dist/packages/sdk-ui-vue/src/types/index.d.ts +0 -1
- package/dist/use-tracking-522444fb.cjs +1073 -0
- package/dist/{use-tracking-594f296b.js → use-tracking-d5f179d9.js} +38192 -38020
- package/package.json +2 -2
- package/dist/packages/sdk-ui-vue/src/composables/use-plugins.d.ts +0 -4
- package/dist/packages/sdk-ui-vue/src/helpers/context-connectors/plugins-context-connector.d.ts +0 -8
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/index.d.ts +0 -2
- package/dist/packages/sdk-ui-vue/src/providers/plugins-provider/plugins-context.d.ts +0 -10
- package/dist/packages/sdk-ui-vue/src/types/dashboard-config.d.ts +0 -24
- package/dist/use-tracking-58ebfa35.cjs +0 -1073
package/dist/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { defineComponent as y, watch as
|
2
|
-
import { s as
|
3
|
-
import {
|
4
|
-
const
|
1
|
+
import { defineComponent as y, watch as T, toRefs as A, ref as B, onBeforeUnmount as De, createApp as dn, computed as We, openBlock as fn, createElementBlock as pn, renderSlot as Re, createVNode as at, unref as E, createElementVNode as gn } from "vue";
|
2
|
+
import { s as _t, W as hn, a as S, N as mn, L as yn, A as bn, O as Sn, E as On, I as vn, P as xn, q as Cn, c as wn, j as Dn, z as jn, R as Pn, F as An, x as Fn, b as Ln, B as En, H as Nn, Y as Tn, S as Rn, d as Mn, M as $n, T as In, e as _n, f as kn, r as U, i as je, g as Bn, k as Qe, h as kt, l as Un, m as qn, o as Vn, n as Bt, p as Ut, t as ot, u as qt, v as Se, w as Vt, y as Wn, C as q, D as V, G as M, J as R, K as O, Q as Wt, Z as Kn, U as Ye, V as Hn, X as Pe, _ as Gn, $ as Ae, a0 as Fe, a1 as zn, a2 as Jn, a3 as Qn, a4 as X, a5 as Yn, a6 as Zn, a7 as Xn, a8 as er, a9 as tr, aa as nr, ab as rr, ac as sr, ad as ir, ae as ar, af as or, ag as ut, ah as ur, ai as lr, aj as lt, ak as cr, al as dr, am as fr, an as pr, ao as gr, ap as hr, aq as mr, ar as yr, as as br, at as Sr, au as Or, av as ee, aw as W } from "./use-tracking-d5f179d9.js";
|
3
|
+
import { az as gu, ax as hu, ay as mu, aA as yu, aB as bu } from "./use-tracking-d5f179d9.js";
|
4
|
+
const vr = y({
|
5
5
|
props: {
|
6
6
|
/**
|
7
7
|
* {@inheritDoc @sisense/sdk-ui!DrilldownBreadcrumbsProps.clearDrilldownSelections}
|
@@ -40,8 +40,8 @@ const hr = y({
|
|
40
40
|
required: !0
|
41
41
|
}
|
42
42
|
},
|
43
|
-
setup: (e, { slots: t }) =>
|
44
|
-
}),
|
43
|
+
setup: (e, { slots: t }) => _t(hn, e, t, [])
|
44
|
+
}), So = y({
|
45
45
|
props: {
|
46
46
|
/**
|
47
47
|
* {@inheritDoc @sisense/sdk-ui!AreaChartProps.dataOptions}
|
@@ -107,8 +107,8 @@ const hr = y({
|
|
107
107
|
*/
|
108
108
|
onDataPointsSelected: Function
|
109
109
|
},
|
110
|
-
setup: (e) => S(
|
111
|
-
}),
|
110
|
+
setup: (e) => S(mn, e)
|
111
|
+
}), Oo = y({
|
112
112
|
props: {
|
113
113
|
/**
|
114
114
|
* {@inheritDoc @sisense/sdk-ui!BarChartProps.dataOptions}
|
@@ -174,8 +174,8 @@ const hr = y({
|
|
174
174
|
*/
|
175
175
|
styleOptions: Object
|
176
176
|
},
|
177
|
-
setup: (e) => S(
|
178
|
-
}),
|
177
|
+
setup: (e) => S(yn, e)
|
178
|
+
}), vo = y({
|
179
179
|
props: {
|
180
180
|
/**
|
181
181
|
* {@inheritDoc @sisense/sdk-ui!ColumnChartProps.dataOptions}
|
@@ -241,8 +241,8 @@ const hr = y({
|
|
241
241
|
*/
|
242
242
|
styleOptions: Object
|
243
243
|
},
|
244
|
-
setup: (e) => S(
|
245
|
-
}),
|
244
|
+
setup: (e) => S(bn, e)
|
245
|
+
}), xo = y({
|
246
246
|
props: {
|
247
247
|
/**
|
248
248
|
* {@inheritDoc @sisense/sdk-ui!FunnelChartProps.dataOptions}
|
@@ -308,8 +308,8 @@ const hr = y({
|
|
308
308
|
*/
|
309
309
|
styleOptions: Object
|
310
310
|
},
|
311
|
-
setup: (e) => S(
|
312
|
-
}),
|
311
|
+
setup: (e) => S(Sn, e)
|
312
|
+
}), Co = y({
|
313
313
|
props: {
|
314
314
|
/**
|
315
315
|
* {@inheritDoc @sisense/sdk-ui!LineChartProps.dataOptions}
|
@@ -375,8 +375,8 @@ const hr = y({
|
|
375
375
|
*/
|
376
376
|
styleOptions: Object
|
377
377
|
},
|
378
|
-
setup: (e) => S(
|
379
|
-
}),
|
378
|
+
setup: (e) => S(On, e)
|
379
|
+
}), wo = y({
|
380
380
|
props: {
|
381
381
|
/**
|
382
382
|
* {@inheritDoc @sisense/sdk-ui!PieChartProps.dataOptions}
|
@@ -442,8 +442,8 @@ const hr = y({
|
|
442
442
|
*/
|
443
443
|
styleOptions: Object
|
444
444
|
},
|
445
|
-
setup: (e) => S(
|
446
|
-
}),
|
445
|
+
setup: (e) => S(vn, e)
|
446
|
+
}), Do = y({
|
447
447
|
props: {
|
448
448
|
/**
|
449
449
|
* {@inheritDoc @sisense/sdk-ui!ScatterChartProps.dataOptions}
|
@@ -509,8 +509,8 @@ const hr = y({
|
|
509
509
|
*/
|
510
510
|
styleOptions: Object
|
511
511
|
},
|
512
|
-
setup: (e) => S(
|
513
|
-
}),
|
512
|
+
setup: (e) => S(xn, e)
|
513
|
+
}), jo = y({
|
514
514
|
props: {
|
515
515
|
/**
|
516
516
|
* {@inheritDoc @sisense/sdk-ui!TableProps.dataOptions}
|
@@ -548,8 +548,8 @@ const hr = y({
|
|
548
548
|
*/
|
549
549
|
onDataReady: Function
|
550
550
|
},
|
551
|
-
setup: (e) => S(
|
552
|
-
}),
|
551
|
+
setup: (e) => S(Cn, e)
|
552
|
+
}), Po = y({
|
553
553
|
props: {
|
554
554
|
/**
|
555
555
|
* {@inheritDoc @sisense/sdk-ui!PivotTableProps.dataOptions}
|
@@ -587,8 +587,8 @@ const hr = y({
|
|
587
587
|
*/
|
588
588
|
styleOptions: Object
|
589
589
|
},
|
590
|
-
setup: (e) => S(
|
591
|
-
}),
|
590
|
+
setup: (e) => S(wn, e)
|
591
|
+
}), Ao = y({
|
592
592
|
props: {
|
593
593
|
/**
|
594
594
|
* {@inheritDoc @sisense/sdk-ui!TreemapChartProps.dataOptions}
|
@@ -654,8 +654,8 @@ const hr = y({
|
|
654
654
|
*/
|
655
655
|
styleOptions: Object
|
656
656
|
},
|
657
|
-
setup: (e) => S(
|
658
|
-
}),
|
657
|
+
setup: (e) => S(Dn, e)
|
658
|
+
}), Fo = y({
|
659
659
|
props: {
|
660
660
|
/**
|
661
661
|
* {@inheritDoc @sisense/sdk-ui!SunburstChartProps.dataOptions}
|
@@ -721,8 +721,8 @@ const hr = y({
|
|
721
721
|
*/
|
722
722
|
styleOptions: Object
|
723
723
|
},
|
724
|
-
setup: (e) => S(
|
725
|
-
}),
|
724
|
+
setup: (e) => S(jn, e)
|
725
|
+
}), Lo = y({
|
726
726
|
props: {
|
727
727
|
/**
|
728
728
|
* {@inheritDoc @sisense/sdk-ui!PolarChartProps.dataOptions}
|
@@ -788,8 +788,8 @@ const hr = y({
|
|
788
788
|
*/
|
789
789
|
styleOptions: Object
|
790
790
|
},
|
791
|
-
setup: (e) => S(
|
792
|
-
}),
|
791
|
+
setup: (e) => S(Pn, e)
|
792
|
+
}), Eo = y({
|
793
793
|
props: {
|
794
794
|
/**
|
795
795
|
* {@inheritDoc @sisense/sdk-ui!IndicatorChartProps.dataOptions}
|
@@ -837,8 +837,8 @@ const hr = y({
|
|
837
837
|
*/
|
838
838
|
onDataReady: Function
|
839
839
|
},
|
840
|
-
setup: (e) => S(
|
841
|
-
}),
|
840
|
+
setup: (e) => S(An, e)
|
841
|
+
}), No = y({
|
842
842
|
props: {
|
843
843
|
/**
|
844
844
|
* {@inheritDoc @sisense/sdk-ui!ChartProps.chartType}
|
@@ -917,8 +917,8 @@ const hr = y({
|
|
917
917
|
*/
|
918
918
|
refreshCounter: Number
|
919
919
|
},
|
920
|
-
setup: (e) => S(
|
921
|
-
}),
|
920
|
+
setup: (e) => S(Fn, e)
|
921
|
+
}), To = y({
|
922
922
|
props: {
|
923
923
|
/**
|
924
924
|
* {@inheritDoc @sisense/sdk-ui!BoxplotChartProps.dataOptions}
|
@@ -984,8 +984,8 @@ const hr = y({
|
|
984
984
|
*/
|
985
985
|
onDataPointsSelected: Function
|
986
986
|
},
|
987
|
-
setup: (e) => S(
|
988
|
-
}),
|
987
|
+
setup: (e) => S(Ln, e)
|
988
|
+
}), Ro = y({
|
989
989
|
props: {
|
990
990
|
/**
|
991
991
|
* {@inheritDoc @sisense/sdk-ui!AreamapChartProps.dataOptions}
|
@@ -1033,8 +1033,8 @@ const hr = y({
|
|
1033
1033
|
*/
|
1034
1034
|
onDataPointClick: Function
|
1035
1035
|
},
|
1036
|
-
setup: (e) => S(
|
1037
|
-
}),
|
1036
|
+
setup: (e) => S(En, e)
|
1037
|
+
}), Mo = y({
|
1038
1038
|
props: {
|
1039
1039
|
/**
|
1040
1040
|
* {@inheritDoc @sisense/sdk-ui!ScattermapChartProps.dataOptions}
|
@@ -1082,8 +1082,8 @@ const hr = y({
|
|
1082
1082
|
*/
|
1083
1083
|
onDataPointClick: Object
|
1084
1084
|
},
|
1085
|
-
setup: (e) => S(
|
1086
|
-
}),
|
1085
|
+
setup: (e) => S(Nn, e)
|
1086
|
+
}), $o = y({
|
1087
1087
|
props: {
|
1088
1088
|
/**
|
1089
1089
|
* {@inheritDoc @sisense/sdk-ui!AreaRangeChartProps.dataOptions}
|
@@ -1149,8 +1149,8 @@ const hr = y({
|
|
1149
1149
|
*/
|
1150
1150
|
styleOptions: Object
|
1151
1151
|
},
|
1152
|
-
setup: (e) => S(
|
1153
|
-
}),
|
1152
|
+
setup: (e) => S(Tn, e)
|
1153
|
+
}), Io = y({
|
1154
1154
|
props: {
|
1155
1155
|
/**
|
1156
1156
|
* {@inheritDoc @sisense/sdk-ui!DateRangeFilterTileProps.attribute}
|
@@ -1210,8 +1210,8 @@ const hr = y({
|
|
1210
1210
|
*/
|
1211
1211
|
onEdit: Function
|
1212
1212
|
},
|
1213
|
-
setup: (e) => S(
|
1214
|
-
}),
|
1213
|
+
setup: (e) => S(Rn, e)
|
1214
|
+
}), _o = y({
|
1215
1215
|
props: {
|
1216
1216
|
/**
|
1217
1217
|
* {@inheritDoc @sisense/sdk-ui!MemberFilterTileProps.attribute}
|
@@ -1258,8 +1258,8 @@ const hr = y({
|
|
1258
1258
|
*/
|
1259
1259
|
onEdit: Function
|
1260
1260
|
},
|
1261
|
-
setup: (e) => S(
|
1262
|
-
}),
|
1261
|
+
setup: (e) => S(Mn, e)
|
1262
|
+
}), ko = y({
|
1263
1263
|
props: {
|
1264
1264
|
/**
|
1265
1265
|
* {@inheritDoc @sisense/sdk-ui!CriteriaFilterTileProps.arrangement}
|
@@ -1299,8 +1299,8 @@ const hr = y({
|
|
1299
1299
|
*/
|
1300
1300
|
onEdit: Function
|
1301
1301
|
},
|
1302
|
-
setup: (e) => S(
|
1303
|
-
}),
|
1302
|
+
setup: (e) => S($n, e)
|
1303
|
+
}), Bo = y({
|
1304
1304
|
props: {
|
1305
1305
|
/**
|
1306
1306
|
* {@inheritDoc @sisense/sdk-ui!RelativeDateFilterTileProps.title}
|
@@ -1345,8 +1345,8 @@ const hr = y({
|
|
1345
1345
|
*/
|
1346
1346
|
onEdit: Function
|
1347
1347
|
},
|
1348
|
-
setup: (e) => S(
|
1349
|
-
}),
|
1348
|
+
setup: (e) => S(In, e)
|
1349
|
+
}), Uo = y({
|
1350
1350
|
props: {
|
1351
1351
|
/**
|
1352
1352
|
* {@inheritDoc @sisense/sdk-ui!FilterTileProps.filter}
|
@@ -1375,8 +1375,40 @@ const hr = y({
|
|
1375
1375
|
*/
|
1376
1376
|
onEdit: Function
|
1377
1377
|
},
|
1378
|
-
setup: (e) => S(
|
1379
|
-
}),
|
1378
|
+
setup: (e) => S(_n, e)
|
1379
|
+
}), qo = y({
|
1380
|
+
props: {
|
1381
|
+
/**
|
1382
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.filters}
|
1383
|
+
*/
|
1384
|
+
filters: {
|
1385
|
+
type: [Array, Object],
|
1386
|
+
required: !0
|
1387
|
+
},
|
1388
|
+
/**
|
1389
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.defaultDataSource}
|
1390
|
+
*/
|
1391
|
+
defaultDataSource: [String, Object],
|
1392
|
+
/**
|
1393
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.dataSources}
|
1394
|
+
*
|
1395
|
+
* @internal
|
1396
|
+
*/
|
1397
|
+
dataSources: Array,
|
1398
|
+
/**
|
1399
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.config}
|
1400
|
+
*/
|
1401
|
+
config: Object,
|
1402
|
+
/**
|
1403
|
+
* {@inheritDoc @sisense/sdk-ui!FiltersPanelProps.onFiltersChange}
|
1404
|
+
*/
|
1405
|
+
onFiltersChange: {
|
1406
|
+
type: Function,
|
1407
|
+
required: !0
|
1408
|
+
}
|
1409
|
+
},
|
1410
|
+
setup: (e) => S(kn, e)
|
1411
|
+
}), xr = {
|
1380
1412
|
type: "logger",
|
1381
1413
|
log(e) {
|
1382
1414
|
this.output("log", e);
|
@@ -1398,7 +1430,7 @@ class Oe {
|
|
1398
1430
|
}
|
1399
1431
|
init(t) {
|
1400
1432
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1401
|
-
this.prefix = n.prefix || "i18next:", this.logger = t ||
|
1433
|
+
this.prefix = n.prefix || "i18next:", this.logger = t || xr, this.options = n, this.debug = n.debug;
|
1402
1434
|
}
|
1403
1435
|
log() {
|
1404
1436
|
for (var t = arguments.length, n = new Array(t), r = 0; r < t; r++)
|
@@ -1433,8 +1465,8 @@ class Oe {
|
|
1433
1465
|
return t = t || this.options, t.prefix = t.prefix || this.prefix, new Oe(this.logger, t);
|
1434
1466
|
}
|
1435
1467
|
}
|
1436
|
-
var
|
1437
|
-
class
|
1468
|
+
var _ = new Oe();
|
1469
|
+
class Le {
|
1438
1470
|
constructor() {
|
1439
1471
|
this.observers = {};
|
1440
1472
|
}
|
@@ -1469,15 +1501,15 @@ function ae() {
|
|
1469
1501
|
});
|
1470
1502
|
return n.resolve = e, n.reject = t, n;
|
1471
1503
|
}
|
1472
|
-
function
|
1504
|
+
function ct(e) {
|
1473
1505
|
return e == null ? "" : "" + e;
|
1474
1506
|
}
|
1475
|
-
function
|
1507
|
+
function Cr(e, t, n) {
|
1476
1508
|
e.forEach((r) => {
|
1477
1509
|
t[r] && (n[r] = t[r]);
|
1478
1510
|
});
|
1479
1511
|
}
|
1480
|
-
function
|
1512
|
+
function Ze(e, t, n) {
|
1481
1513
|
function r(a) {
|
1482
1514
|
return a && a.indexOf("###") > -1 ? a.replace(/###/g, ".") : a;
|
1483
1515
|
}
|
@@ -1496,41 +1528,41 @@ function Ge(e, t, n) {
|
|
1496
1528
|
k: r(i.shift())
|
1497
1529
|
};
|
1498
1530
|
}
|
1499
|
-
function
|
1531
|
+
function dt(e, t, n) {
|
1500
1532
|
const {
|
1501
1533
|
obj: r,
|
1502
1534
|
k: s
|
1503
|
-
} =
|
1535
|
+
} = Ze(e, t, Object);
|
1504
1536
|
r[s] = n;
|
1505
1537
|
}
|
1506
|
-
function
|
1538
|
+
function wr(e, t, n, r) {
|
1507
1539
|
const {
|
1508
1540
|
obj: s,
|
1509
1541
|
k: i
|
1510
|
-
} =
|
1542
|
+
} = Ze(e, t, Object);
|
1511
1543
|
s[i] = s[i] || [], r && (s[i] = s[i].concat(n)), r || s[i].push(n);
|
1512
1544
|
}
|
1513
1545
|
function ve(e, t) {
|
1514
1546
|
const {
|
1515
1547
|
obj: n,
|
1516
1548
|
k: r
|
1517
|
-
} =
|
1549
|
+
} = Ze(e, t);
|
1518
1550
|
if (n)
|
1519
1551
|
return n[r];
|
1520
1552
|
}
|
1521
|
-
function
|
1553
|
+
function Dr(e, t, n) {
|
1522
1554
|
const r = ve(e, n);
|
1523
1555
|
return r !== void 0 ? r : ve(t, n);
|
1524
1556
|
}
|
1525
|
-
function
|
1557
|
+
function Kt(e, t, n) {
|
1526
1558
|
for (const r in t)
|
1527
|
-
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]) :
|
1559
|
+
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]) : Kt(e[r], t[r], n) : e[r] = t[r]);
|
1528
1560
|
return e;
|
1529
1561
|
}
|
1530
1562
|
function Y(e) {
|
1531
1563
|
return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, "\\$&");
|
1532
1564
|
}
|
1533
|
-
var
|
1565
|
+
var jr = {
|
1534
1566
|
"&": "&",
|
1535
1567
|
"<": "<",
|
1536
1568
|
">": ">",
|
@@ -1538,13 +1570,13 @@ var Or = {
|
|
1538
1570
|
"'": "'",
|
1539
1571
|
"/": "/"
|
1540
1572
|
};
|
1541
|
-
function
|
1542
|
-
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) =>
|
1573
|
+
function Pr(e) {
|
1574
|
+
return typeof e == "string" ? e.replace(/[&<>"'\/]/g, (t) => jr[t]) : e;
|
1543
1575
|
}
|
1544
|
-
const
|
1545
|
-
function
|
1576
|
+
const Ar = [" ", ",", "?", "!", ";"];
|
1577
|
+
function Fr(e, t, n) {
|
1546
1578
|
t = t || "", n = n || "";
|
1547
|
-
const r =
|
1579
|
+
const r = Ar.filter((a) => t.indexOf(a) < 0 && n.indexOf(a) < 0);
|
1548
1580
|
if (r.length === 0)
|
1549
1581
|
return !0;
|
1550
1582
|
const s = new RegExp(`(${r.map((a) => a === "?" ? "\\?" : a).join("|")})`);
|
@@ -1590,7 +1622,7 @@ function xe(e, t) {
|
|
1590
1622
|
function Ce(e) {
|
1591
1623
|
return e && e.indexOf("_") > 0 ? e.replace("_", "-") : e;
|
1592
1624
|
}
|
1593
|
-
class
|
1625
|
+
class ft extends Le {
|
1594
1626
|
constructor(t) {
|
1595
1627
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
1596
1628
|
ns: ["translation"],
|
@@ -1619,7 +1651,7 @@ class ut extends je {
|
|
1619
1651
|
};
|
1620
1652
|
const a = i.keySeparator !== void 0 ? i.keySeparator : this.options.keySeparator;
|
1621
1653
|
let o = [t, n];
|
1622
|
-
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n),
|
1654
|
+
r && (o = o.concat(a ? r.split(a) : r)), t.indexOf(".") > -1 && (o = t.split("."), s = n, n = o[1]), this.addNamespaces(n), dt(this.data, o, s), i.silent || this.emit("added", t, n, r, s);
|
1623
1655
|
}
|
1624
1656
|
addResources(t, n, r) {
|
1625
1657
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {
|
@@ -1637,10 +1669,10 @@ class ut extends je {
|
|
1637
1669
|
}, o = [t, n];
|
1638
1670
|
t.indexOf(".") > -1 && (o = t.split("."), s = r, r = n, n = o[1]), this.addNamespaces(n);
|
1639
1671
|
let u = ve(this.data, o) || {};
|
1640
|
-
s ?
|
1672
|
+
s ? Kt(u, r, i) : u = {
|
1641
1673
|
...u,
|
1642
1674
|
...r
|
1643
|
-
},
|
1675
|
+
}, dt(this.data, o, u), a.silent || this.emit("added", t, n, r);
|
1644
1676
|
}
|
1645
1677
|
removeResourceBundle(t, n) {
|
1646
1678
|
this.hasResourceBundle(t, n) && delete this.data[t][n], this.removeNamespaces(n), this.emit("removed", t, n);
|
@@ -1664,7 +1696,7 @@ class ut extends je {
|
|
1664
1696
|
return this.data;
|
1665
1697
|
}
|
1666
1698
|
}
|
1667
|
-
var
|
1699
|
+
var Ht = {
|
1668
1700
|
processors: {},
|
1669
1701
|
addPostProcessor(e) {
|
1670
1702
|
this.processors[e.name] = e;
|
@@ -1675,11 +1707,11 @@ var Wt = {
|
|
1675
1707
|
}), t;
|
1676
1708
|
}
|
1677
1709
|
};
|
1678
|
-
const
|
1679
|
-
class we extends
|
1710
|
+
const pt = {};
|
1711
|
+
class we extends Le {
|
1680
1712
|
constructor(t) {
|
1681
1713
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
1682
|
-
super(),
|
1714
|
+
super(), Cr(["resourceStore", "languageUtils", "pluralResolver", "interpolator", "backendConnector", "i18nFormat", "utils"], t, this), this.options = n, this.options.keySeparator === void 0 && (this.options.keySeparator = "."), this.logger = _.create("translator");
|
1683
1715
|
}
|
1684
1716
|
changeLanguage(t) {
|
1685
1717
|
t && (this.language = t);
|
@@ -1698,7 +1730,7 @@ class we extends je {
|
|
1698
1730
|
r === void 0 && (r = ":");
|
1699
1731
|
const s = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator;
|
1700
1732
|
let i = n.ns || this.options.defaultNS || [];
|
1701
|
-
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !
|
1733
|
+
const a = r && t.indexOf(r) > -1, o = !this.options.userDefinedKeySeparator && !n.keySeparator && !this.options.userDefinedNsSeparator && !n.nsSeparator && !Fr(t, r, s);
|
1702
1734
|
if (a && !o) {
|
1703
1735
|
const u = t.match(this.interpolator.nestingRegexp);
|
1704
1736
|
if (u && u.length > 0)
|
@@ -1723,17 +1755,17 @@ class we extends je {
|
|
1723
1755
|
const s = n.returnDetails !== void 0 ? n.returnDetails : this.options.returnDetails, i = n.keySeparator !== void 0 ? n.keySeparator : this.options.keySeparator, {
|
1724
1756
|
key: a,
|
1725
1757
|
namespaces: o
|
1726
|
-
} = this.extractFromKey(t[t.length - 1], n), u = o[o.length - 1], c = n.lng || this.language,
|
1758
|
+
} = this.extractFromKey(t[t.length - 1], n), u = o[o.length - 1], c = n.lng || this.language, d = n.appendNamespaceToCIMode || this.options.appendNamespaceToCIMode;
|
1727
1759
|
if (c && c.toLowerCase() === "cimode") {
|
1728
|
-
if (
|
1729
|
-
const
|
1760
|
+
if (d) {
|
1761
|
+
const C = n.nsSeparator || this.options.nsSeparator;
|
1730
1762
|
return s ? {
|
1731
|
-
res: `${u}${
|
1763
|
+
res: `${u}${C}${a}`,
|
1732
1764
|
usedKey: a,
|
1733
1765
|
exactUsedKey: a,
|
1734
1766
|
usedLng: c,
|
1735
1767
|
usedNS: u
|
1736
|
-
} : `${u}${
|
1768
|
+
} : `${u}${C}${a}`;
|
1737
1769
|
}
|
1738
1770
|
return s ? {
|
1739
1771
|
res: a,
|
@@ -1743,68 +1775,68 @@ class we extends je {
|
|
1743
1775
|
usedNS: u
|
1744
1776
|
} : a;
|
1745
1777
|
}
|
1746
|
-
const
|
1747
|
-
let l =
|
1748
|
-
const g =
|
1749
|
-
if (w && l && (typeof l != "string" && typeof l != "boolean" && typeof l != "number") && h.indexOf(m) < 0 && !(typeof
|
1778
|
+
const f = this.resolve(t, n);
|
1779
|
+
let l = f && f.res;
|
1780
|
+
const g = f && f.usedKey || a, p = f && f.exactUsedKey || a, m = 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;
|
1781
|
+
if (w && l && (typeof l != "string" && typeof l != "boolean" && typeof l != "number") && h.indexOf(m) < 0 && !(typeof x == "string" && m === "[object Array]")) {
|
1750
1782
|
if (!n.returnObjects && !this.options.returnObjects) {
|
1751
1783
|
this.options.returnedObjectHandler || this.logger.warn("accessing an object - but returnObjects options is not enabled!");
|
1752
|
-
const
|
1784
|
+
const C = this.options.returnedObjectHandler ? this.options.returnedObjectHandler(g, l, {
|
1753
1785
|
...n,
|
1754
1786
|
ns: o
|
1755
1787
|
}) : `key '${a} (${this.language})' returned an object instead of string.`;
|
1756
|
-
return s ? (
|
1788
|
+
return s ? (f.res = C, f) : C;
|
1757
1789
|
}
|
1758
1790
|
if (i) {
|
1759
|
-
const
|
1791
|
+
const C = m === "[object Array]", F = C ? [] : {}, $ = C ? p : g;
|
1760
1792
|
for (const P in l)
|
1761
1793
|
if (Object.prototype.hasOwnProperty.call(l, P)) {
|
1762
|
-
const ce = `${
|
1763
|
-
|
1794
|
+
const ce = `${$}${i}${P}`;
|
1795
|
+
F[P] = this.translate(ce, {
|
1764
1796
|
...n,
|
1765
1797
|
joinArrays: !1,
|
1766
1798
|
ns: o
|
1767
|
-
}),
|
1799
|
+
}), F[P] === ce && (F[P] = l[P]);
|
1768
1800
|
}
|
1769
|
-
l =
|
1801
|
+
l = F;
|
1770
1802
|
}
|
1771
|
-
} else if (w && typeof
|
1772
|
-
l = l.join(
|
1803
|
+
} else if (w && typeof x == "string" && m === "[object Array]")
|
1804
|
+
l = l.join(x), l && (l = this.extendTranslation(l, t, n, r));
|
1773
1805
|
else {
|
1774
|
-
let
|
1775
|
-
const
|
1806
|
+
let C = !1, F = !1;
|
1807
|
+
const $ = n.count !== void 0 && typeof n.count != "string", P = we.hasDefaultValue(n), ce = $ ? this.pluralResolver.getSuffix(c, n.count, n) : "", ln = n.ordinal && $ ? this.pluralResolver.getSuffix(c, n.count, {
|
1776
1808
|
ordinal: !1
|
1777
|
-
}) : "", re = n[`defaultValue${ce}`] || n[`defaultValue${
|
1778
|
-
!this.isValidLookup(l) && P && (
|
1779
|
-
const
|
1780
|
-
if (
|
1809
|
+
}) : "", re = n[`defaultValue${ce}`] || n[`defaultValue${ln}`] || n.defaultValue;
|
1810
|
+
!this.isValidLookup(l) && P && (C = !0, l = re), this.isValidLookup(l) || (F = !0, l = a);
|
1811
|
+
const cn = (n.missingKeyNoValueFallbackToKey || this.options.missingKeyNoValueFallbackToKey) && F ? void 0 : l, se = P && re !== l && this.options.updateMissing;
|
1812
|
+
if (F || C || se) {
|
1781
1813
|
if (this.logger.log(se ? "updateKey" : "missingKey", c, u, a, se ? re : l), i) {
|
1782
|
-
const
|
1814
|
+
const L = this.resolve(a, {
|
1783
1815
|
...n,
|
1784
1816
|
keySeparator: !1
|
1785
1817
|
});
|
1786
|
-
|
1818
|
+
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.");
|
1787
1819
|
}
|
1788
1820
|
let ie = [];
|
1789
|
-
const
|
1790
|
-
if (this.options.saveMissingTo === "fallback" &&
|
1791
|
-
for (let
|
1792
|
-
ie.push(
|
1821
|
+
const de = this.languageUtils.getFallbackCodes(this.options.fallbackLng, n.lng || this.language);
|
1822
|
+
if (this.options.saveMissingTo === "fallback" && de && de[0])
|
1823
|
+
for (let L = 0; L < de.length; L++)
|
1824
|
+
ie.push(de[L]);
|
1793
1825
|
else
|
1794
1826
|
this.options.saveMissingTo === "all" ? ie = this.languageUtils.toResolveHierarchy(n.lng || this.language) : ie.push(n.lng || this.language);
|
1795
|
-
const
|
1796
|
-
const
|
1797
|
-
this.options.missingKeyHandler ? this.options.missingKeyHandler(
|
1827
|
+
const rt = (L, Q, st) => {
|
1828
|
+
const it = P && st !== l ? st : cn;
|
1829
|
+
this.options.missingKeyHandler ? this.options.missingKeyHandler(L, u, Q, it, se, n) : this.backendConnector && this.backendConnector.saveMissing && this.backendConnector.saveMissing(L, u, Q, it, se, n), this.emit("missingKey", L, u, Q, l);
|
1798
1830
|
};
|
1799
|
-
this.options.saveMissing && (this.options.saveMissingPlurals &&
|
1800
|
-
this.pluralResolver.getSuffixes(
|
1801
|
-
|
1831
|
+
this.options.saveMissing && (this.options.saveMissingPlurals && $ ? ie.forEach((L) => {
|
1832
|
+
this.pluralResolver.getSuffixes(L, n).forEach((Q) => {
|
1833
|
+
rt([L], a + Q, n[`defaultValue${Q}`] || re);
|
1802
1834
|
});
|
1803
|
-
}) :
|
1835
|
+
}) : rt(ie, a, re));
|
1804
1836
|
}
|
1805
|
-
l = this.extendTranslation(l, t, n,
|
1837
|
+
l = this.extendTranslation(l, t, n, f, r), F && l === a && this.options.appendNamespaceToMissingKey && (l = `${u}:${a}`), (F || C) && this.options.parseMissingKeyHandler && (this.options.compatibilityAPI !== "v1" ? l = this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey ? `${u}:${a}` : a, C ? l : void 0) : l = this.options.parseMissingKeyHandler(l));
|
1806
1838
|
}
|
1807
|
-
return s ? (
|
1839
|
+
return s ? (f.res = l, f) : l;
|
1808
1840
|
}
|
1809
1841
|
extendTranslation(t, n, r, s, i) {
|
1810
1842
|
var a = this;
|
@@ -1824,18 +1856,18 @@ class we extends je {
|
|
1824
1856
|
}
|
1825
1857
|
});
|
1826
1858
|
const c = typeof t == "string" && (r && r.interpolation && r.interpolation.skipOnVariables !== void 0 ? r.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables);
|
1827
|
-
let
|
1859
|
+
let d;
|
1828
1860
|
if (c) {
|
1829
1861
|
const l = t.match(this.interpolator.nestingRegexp);
|
1830
|
-
|
1862
|
+
d = l && l.length;
|
1831
1863
|
}
|
1832
|
-
let
|
1833
|
-
if (this.options.interpolation.defaultVariables && (
|
1864
|
+
let f = r.replace && typeof r.replace != "string" ? r.replace : r;
|
1865
|
+
if (this.options.interpolation.defaultVariables && (f = {
|
1834
1866
|
...this.options.interpolation.defaultVariables,
|
1835
|
-
...
|
1836
|
-
}), t = this.interpolator.interpolate(t,
|
1867
|
+
...f
|
1868
|
+
}), t = this.interpolator.interpolate(t, f, r.lng || this.language, r), c) {
|
1837
1869
|
const l = t.match(this.interpolator.nestingRegexp), g = l && l.length;
|
1838
|
-
|
1870
|
+
d < g && (r.nest = !1);
|
1839
1871
|
}
|
1840
1872
|
!r.lng && this.options.compatibilityAPI !== "v1" && s && s.res && (r.lng = s.usedLng), r.nest !== !1 && (t = this.interpolator.nest(t, function() {
|
1841
1873
|
for (var l = arguments.length, g = new Array(l), p = 0; p < l; p++)
|
@@ -1844,7 +1876,7 @@ class we extends je {
|
|
1844
1876
|
}, r)), r.interpolation && this.interpolator.reset();
|
1845
1877
|
}
|
1846
1878
|
const o = r.postProcess || this.options.postProcess, u = typeof o == "string" ? [o] : o;
|
1847
|
-
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t =
|
1879
|
+
return t != null && u && u.length && r.applyPostProcessor !== !1 && (t = Ht.handle(u, t, n, this.options && this.options.postProcessPassResolved ? {
|
1848
1880
|
i18nResolved: s,
|
1849
1881
|
...r
|
1850
1882
|
} : r, this)), t;
|
@@ -1854,31 +1886,31 @@ class we extends je {
|
|
1854
1886
|
return typeof t == "string" && (t = [t]), t.forEach((u) => {
|
1855
1887
|
if (this.isValidLookup(r))
|
1856
1888
|
return;
|
1857
|
-
const c = this.extractFromKey(u, n),
|
1858
|
-
s =
|
1859
|
-
let
|
1860
|
-
this.options.fallbackNS && (
|
1889
|
+
const c = this.extractFromKey(u, n), d = c.key;
|
1890
|
+
s = d;
|
1891
|
+
let f = c.namespaces;
|
1892
|
+
this.options.fallbackNS && (f = f.concat(this.options.fallbackNS));
|
1861
1893
|
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 !== "", m = n.lngs ? n.lngs : this.languageUtils.toResolveHierarchy(n.lng || this.language, n.fallbackLng);
|
1862
|
-
|
1863
|
-
this.isValidLookup(r) || (o = h, !
|
1894
|
+
f.forEach((h) => {
|
1895
|
+
this.isValidLookup(r) || (o = h, !pt[`${m[0]}-${h}`] && this.utils && this.utils.hasLoadedNamespace && !this.utils.hasLoadedNamespace(o) && (pt[`${m[0]}-${h}`] = !0, this.logger.warn(`key "${s}" for languages "${m.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!!!")), m.forEach((x) => {
|
1864
1896
|
if (this.isValidLookup(r))
|
1865
1897
|
return;
|
1866
|
-
a =
|
1867
|
-
const w = [
|
1898
|
+
a = x;
|
1899
|
+
const w = [d];
|
1868
1900
|
if (this.i18nFormat && this.i18nFormat.addLookupKeys)
|
1869
|
-
this.i18nFormat.addLookupKeys(w,
|
1901
|
+
this.i18nFormat.addLookupKeys(w, d, x, h, n);
|
1870
1902
|
else {
|
1871
|
-
let
|
1872
|
-
l && (
|
1873
|
-
const
|
1874
|
-
if (l && (w.push(
|
1875
|
-
const P = `${
|
1876
|
-
w.push(P), l && (w.push(P +
|
1903
|
+
let C;
|
1904
|
+
l && (C = this.pluralResolver.getSuffix(x, n.count, n));
|
1905
|
+
const F = `${this.options.pluralSeparator}zero`, $ = `${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;
|
1906
|
+
if (l && (w.push(d + C), n.ordinal && C.indexOf($) === 0 && w.push(d + C.replace($, this.options.pluralSeparator)), g && w.push(d + F)), p) {
|
1907
|
+
const P = `${d}${this.options.contextSeparator}${n.context}`;
|
1908
|
+
w.push(P), l && (w.push(P + C), n.ordinal && C.indexOf($) === 0 && w.push(P + C.replace($, this.options.pluralSeparator)), g && w.push(P + F));
|
1877
1909
|
}
|
1878
1910
|
}
|
1879
1911
|
let D;
|
1880
1912
|
for (; D = w.pop(); )
|
1881
|
-
this.isValidLookup(r) || (i = D, r = this.getResource(
|
1913
|
+
this.isValidLookup(r) || (i = D, r = this.getResource(x, h, D, n));
|
1882
1914
|
}));
|
1883
1915
|
});
|
1884
1916
|
}), {
|
@@ -1904,12 +1936,12 @@ class we extends je {
|
|
1904
1936
|
return !1;
|
1905
1937
|
}
|
1906
1938
|
}
|
1907
|
-
function
|
1939
|
+
function Me(e) {
|
1908
1940
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
1909
1941
|
}
|
1910
|
-
class
|
1942
|
+
class gt {
|
1911
1943
|
constructor(t) {
|
1912
|
-
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger =
|
1944
|
+
this.options = t, this.supportedLngs = this.options.supportedLngs || !1, this.logger = _.create("languageUtils");
|
1913
1945
|
}
|
1914
1946
|
getScriptPartFromCode(t) {
|
1915
1947
|
if (t = Ce(t), !t || t.indexOf("-") < 0)
|
@@ -1927,7 +1959,7 @@ class ct {
|
|
1927
1959
|
if (typeof t == "string" && t.indexOf("-") > -1) {
|
1928
1960
|
const n = ["hans", "hant", "latn", "cyrl", "cans", "mong", "arab"];
|
1929
1961
|
let r = t.split("-");
|
1930
|
-
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] =
|
1962
|
+
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] = Me(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] = Me(r[1].toLowerCase())), n.indexOf(r[2].toLowerCase()) > -1 && (r[2] = Me(r[2].toLowerCase()))), r.join("-");
|
1931
1963
|
}
|
1932
1964
|
return this.options.cleanCode || this.options.lowerCaseLng ? t.toLowerCase() : t;
|
1933
1965
|
}
|
@@ -1976,7 +2008,7 @@ class ct {
|
|
1976
2008
|
}), s;
|
1977
2009
|
}
|
1978
2010
|
}
|
1979
|
-
let
|
2011
|
+
let Lr = [{
|
1980
2012
|
lngs: ["ach", "ak", "am", "arn", "br", "fil", "gun", "ln", "mfe", "mg", "mi", "oc", "pt", "pt-BR", "tg", "tl", "ti", "tr", "uz", "wa"],
|
1981
2013
|
nr: [1, 2],
|
1982
2014
|
fc: 1
|
@@ -2068,7 +2100,7 @@ let wr = [{
|
|
2068
2100
|
lngs: ["he", "iw"],
|
2069
2101
|
nr: [1, 2, 20, 21],
|
2070
2102
|
fc: 22
|
2071
|
-
}],
|
2103
|
+
}], Er = {
|
2072
2104
|
1: function(e) {
|
2073
2105
|
return +(e > 1);
|
2074
2106
|
},
|
@@ -2136,7 +2168,7 @@ let wr = [{
|
|
2136
2168
|
return e == 1 ? 0 : e == 2 ? 1 : (e < 0 || e > 10) && e % 10 == 0 ? 2 : 3;
|
2137
2169
|
}
|
2138
2170
|
};
|
2139
|
-
const
|
2171
|
+
const Nr = ["v1", "v2", "v3"], Tr = ["v4"], ht = {
|
2140
2172
|
zero: 0,
|
2141
2173
|
one: 1,
|
2142
2174
|
two: 2,
|
@@ -2144,21 +2176,21 @@ const jr = ["v1", "v2", "v3"], Pr = ["v4"], ft = {
|
|
2144
2176
|
many: 4,
|
2145
2177
|
other: 5
|
2146
2178
|
};
|
2147
|
-
function
|
2179
|
+
function Rr() {
|
2148
2180
|
const e = {};
|
2149
|
-
return
|
2181
|
+
return Lr.forEach((t) => {
|
2150
2182
|
t.lngs.forEach((n) => {
|
2151
2183
|
e[n] = {
|
2152
2184
|
numbers: t.nr,
|
2153
|
-
plurals:
|
2185
|
+
plurals: Er[t.fc]
|
2154
2186
|
};
|
2155
2187
|
});
|
2156
2188
|
}), e;
|
2157
2189
|
}
|
2158
|
-
class
|
2190
|
+
class Mr {
|
2159
2191
|
constructor(t) {
|
2160
2192
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2161
|
-
this.languageUtils = t, this.options = n, this.logger =
|
2193
|
+
this.languageUtils = t, this.options = n, this.logger = _.create("pluralResolver"), (!this.options.compatibilityJSON || Tr.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 = Rr();
|
2162
2194
|
}
|
2163
2195
|
addRule(t, n) {
|
2164
2196
|
this.rules[t] = n;
|
@@ -2187,7 +2219,7 @@ class Fr {
|
|
2187
2219
|
getSuffixes(t) {
|
2188
2220
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
2189
2221
|
const r = this.getRule(t, n);
|
2190
|
-
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) =>
|
2222
|
+
return r ? this.shouldUseIntlApi() ? r.resolvedOptions().pluralCategories.sort((s, i) => ht[s] - ht[i]).map((s) => `${this.options.prepend}${n.ordinal ? `ordinal${this.options.prepend}` : ""}${s}`) : r.numbers.map((s) => this.getSuffix(t, s, n)) : [];
|
2191
2223
|
}
|
2192
2224
|
getSuffix(t, n) {
|
2193
2225
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
@@ -2202,17 +2234,17 @@ class Fr {
|
|
2202
2234
|
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();
|
2203
2235
|
}
|
2204
2236
|
shouldUseIntlApi() {
|
2205
|
-
return !
|
2237
|
+
return !Nr.includes(this.options.compatibilityJSON);
|
2206
2238
|
}
|
2207
2239
|
}
|
2208
|
-
function
|
2209
|
-
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i =
|
2240
|
+
function mt(e, t, n) {
|
2241
|
+
let r = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : ".", s = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : !0, i = Dr(e, t, n);
|
2210
2242
|
return !i && s && typeof n == "string" && (i = xe(e, n, r), i === void 0 && (i = xe(t, n, r))), i;
|
2211
2243
|
}
|
2212
|
-
class
|
2244
|
+
class $r {
|
2213
2245
|
constructor() {
|
2214
2246
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
2215
|
-
this.logger =
|
2247
|
+
this.logger = _.create("interpolator"), this.options = t, this.format = t.interpolation && t.interpolation.format || ((n) => n), this.init(t);
|
2216
2248
|
}
|
2217
2249
|
init() {
|
2218
2250
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
@@ -2220,7 +2252,7 @@ class Lr {
|
|
2220
2252
|
escapeValue: !0
|
2221
2253
|
});
|
2222
2254
|
const n = t.interpolation;
|
2223
|
-
this.escape = n.escape !== void 0 ? n.escape :
|
2255
|
+
this.escape = n.escape !== void 0 ? n.escape : Pr, this.escapeValue = n.escapeValue !== void 0 ? n.escapeValue : !0, this.useRawValueToEscape = n.useRawValueToEscape !== void 0 ? n.useRawValueToEscape : !1, this.prefix = n.prefix ? Y(n.prefix) : n.prefixEscaped || "{{", this.suffix = n.suffix ? Y(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 ? Y(n.nestingPrefix) : n.nestingPrefixEscaped || Y("$t("), this.nestingSuffix = n.nestingSuffix ? Y(n.nestingSuffix) : n.nestingSuffixEscaped || Y(")"), 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();
|
2224
2256
|
}
|
2225
2257
|
reset() {
|
2226
2258
|
this.options && this.init(this.options);
|
@@ -2239,24 +2271,24 @@ class Lr {
|
|
2239
2271
|
function c(p) {
|
2240
2272
|
return p.replace(/\$/g, "$$$$");
|
2241
2273
|
}
|
2242
|
-
const
|
2274
|
+
const d = (p) => {
|
2243
2275
|
if (p.indexOf(this.formatSeparator) < 0) {
|
2244
|
-
const w =
|
2276
|
+
const w = mt(n, u, p, this.options.keySeparator, this.options.ignoreJSONStructure);
|
2245
2277
|
return this.alwaysFormat ? this.format(w, void 0, r, {
|
2246
2278
|
...s,
|
2247
2279
|
...n,
|
2248
2280
|
interpolationkey: p
|
2249
2281
|
}) : w;
|
2250
2282
|
}
|
2251
|
-
const m = p.split(this.formatSeparator), h = m.shift().trim(),
|
2252
|
-
return this.format(
|
2283
|
+
const m = p.split(this.formatSeparator), h = m.shift().trim(), x = m.join(this.formatSeparator).trim();
|
2284
|
+
return this.format(mt(n, u, h, this.options.keySeparator, this.options.ignoreJSONStructure), x, r, {
|
2253
2285
|
...s,
|
2254
2286
|
...n,
|
2255
2287
|
interpolationkey: h
|
2256
2288
|
});
|
2257
2289
|
};
|
2258
2290
|
this.resetRegExp();
|
2259
|
-
const
|
2291
|
+
const f = s && s.missingInterpolationHandler || this.options.missingInterpolationHandler, l = s && s.interpolation && s.interpolation.skipOnVariables !== void 0 ? s.interpolation.skipOnVariables : this.options.interpolation.skipOnVariables;
|
2260
2292
|
return [{
|
2261
2293
|
regex: this.regexpUnescape,
|
2262
2294
|
safeValue: (p) => c(p)
|
@@ -2266,10 +2298,10 @@ class Lr {
|
|
2266
2298
|
}].forEach((p) => {
|
2267
2299
|
for (o = 0; i = p.regex.exec(t); ) {
|
2268
2300
|
const m = i[1].trim();
|
2269
|
-
if (a =
|
2270
|
-
if (typeof
|
2271
|
-
const
|
2272
|
-
a = typeof
|
2301
|
+
if (a = d(m), a === void 0)
|
2302
|
+
if (typeof f == "function") {
|
2303
|
+
const x = f(t, i, s);
|
2304
|
+
a = typeof x == "string" ? x : "";
|
2273
2305
|
} else if (s && Object.prototype.hasOwnProperty.call(s, m))
|
2274
2306
|
a = "";
|
2275
2307
|
else if (l) {
|
@@ -2278,7 +2310,7 @@ class Lr {
|
|
2278
2310
|
} else
|
2279
2311
|
this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`), a = "";
|
2280
2312
|
else
|
2281
|
-
typeof a != "string" && !this.useRawValueToEscape && (a =
|
2313
|
+
typeof a != "string" && !this.useRawValueToEscape && (a = ct(a));
|
2282
2314
|
const h = p.safeValue(a);
|
2283
2315
|
if (t = t.replace(i[0], h), l ? (p.regex.lastIndex += a.length, p.regex.lastIndex -= i[0].length) : p.regex.lastIndex = 0, o++, o >= this.maxReplaces)
|
2284
2316
|
break;
|
@@ -2288,12 +2320,12 @@ class Lr {
|
|
2288
2320
|
nest(t, n) {
|
2289
2321
|
let r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, s, i, a;
|
2290
2322
|
function o(u, c) {
|
2291
|
-
const
|
2292
|
-
if (u.indexOf(
|
2323
|
+
const d = this.nestingOptionsSeparator;
|
2324
|
+
if (u.indexOf(d) < 0)
|
2293
2325
|
return u;
|
2294
|
-
const
|
2295
|
-
let l = `{${
|
2296
|
-
u =
|
2326
|
+
const f = u.split(new RegExp(`${d}[ ]*{`));
|
2327
|
+
let l = `{${f[1]}`;
|
2328
|
+
u = f[0], l = this.interpolate(l, a);
|
2297
2329
|
const g = l.match(/'/g), p = l.match(/"/g);
|
2298
2330
|
(g && g.length % 2 === 0 && !p || p.length % 2 !== 0) && (l = l.replace(/'/g, '"'));
|
2299
2331
|
try {
|
@@ -2302,7 +2334,7 @@ class Lr {
|
|
2302
2334
|
...a
|
2303
2335
|
});
|
2304
2336
|
} catch (m) {
|
2305
|
-
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, m), `${u}${
|
2337
|
+
return this.logger.warn(`failed parsing options string in nesting for key ${u}`, m), `${u}${d}${l}`;
|
2306
2338
|
}
|
2307
2339
|
return delete a.defaultValue, u;
|
2308
2340
|
}
|
@@ -2313,12 +2345,12 @@ class Lr {
|
|
2313
2345
|
}, a = a.replace && typeof a.replace != "string" ? a.replace : a, a.applyPostProcessor = !1, delete a.defaultValue;
|
2314
2346
|
let c = !1;
|
2315
2347
|
if (s[0].indexOf(this.formatSeparator) !== -1 && !/{.*}/.test(s[1])) {
|
2316
|
-
const
|
2317
|
-
s[1] =
|
2348
|
+
const d = s[1].split(this.formatSeparator).map((f) => f.trim());
|
2349
|
+
s[1] = d.shift(), u = d, c = !0;
|
2318
2350
|
}
|
2319
2351
|
if (i = n(o.call(this, s[1].trim(), a), a), i && s[0] === t && typeof i != "string")
|
2320
2352
|
return i;
|
2321
|
-
typeof i != "string" && (i =
|
2353
|
+
typeof i != "string" && (i = ct(i)), i || (this.logger.warn(`missed to resolve ${s[1]} for nesting ${t}`), i = ""), c && (i = u.reduce((d, f) => this.format(d, f, r.lng, {
|
2322
2354
|
...r,
|
2323
2355
|
interpolationkey: s[1].trim()
|
2324
2356
|
}), i.trim())), t = t.replace(s[0], i), this.regexp.lastIndex = 0;
|
@@ -2326,7 +2358,7 @@ class Lr {
|
|
2326
2358
|
return t;
|
2327
2359
|
}
|
2328
2360
|
}
|
2329
|
-
function
|
2361
|
+
function Ir(e) {
|
2330
2362
|
let t = e.toLowerCase().trim();
|
2331
2363
|
const n = {};
|
2332
2364
|
if (e.indexOf("(") > -1) {
|
@@ -2353,10 +2385,10 @@ function Z(e) {
|
|
2353
2385
|
return o || (o = e(Ce(s), i), t[a] = o), o(r);
|
2354
2386
|
};
|
2355
2387
|
}
|
2356
|
-
class
|
2388
|
+
class _r {
|
2357
2389
|
constructor() {
|
2358
2390
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
2359
|
-
this.logger =
|
2391
|
+
this.logger = _.create("formatter"), this.options = t, this.formats = {
|
2360
2392
|
number: Z((n, r) => {
|
2361
2393
|
const s = new Intl.NumberFormat(n, {
|
2362
2394
|
...r
|
@@ -2407,43 +2439,43 @@ class Nr {
|
|
2407
2439
|
return n.split(this.formatSeparator).reduce((o, u) => {
|
2408
2440
|
const {
|
2409
2441
|
formatName: c,
|
2410
|
-
formatOptions:
|
2411
|
-
} =
|
2442
|
+
formatOptions: d
|
2443
|
+
} = Ir(u);
|
2412
2444
|
if (this.formats[c]) {
|
2413
|
-
let
|
2445
|
+
let f = o;
|
2414
2446
|
try {
|
2415
2447
|
const l = s && s.formatParams && s.formatParams[s.interpolationkey] || {}, g = l.locale || l.lng || s.locale || s.lng || r;
|
2416
|
-
|
2417
|
-
...
|
2448
|
+
f = this.formats[c](o, g, {
|
2449
|
+
...d,
|
2418
2450
|
...s,
|
2419
2451
|
...l
|
2420
2452
|
});
|
2421
2453
|
} catch (l) {
|
2422
2454
|
this.logger.warn(l);
|
2423
2455
|
}
|
2424
|
-
return
|
2456
|
+
return f;
|
2425
2457
|
} else
|
2426
2458
|
this.logger.warn(`there was no format function for ${c}`);
|
2427
2459
|
return o;
|
2428
2460
|
}, t);
|
2429
2461
|
}
|
2430
2462
|
}
|
2431
|
-
function
|
2463
|
+
function kr(e, t) {
|
2432
2464
|
e.pending[t] !== void 0 && (delete e.pending[t], e.pendingCount--);
|
2433
2465
|
}
|
2434
|
-
class
|
2466
|
+
class Br extends Le {
|
2435
2467
|
constructor(t, n, r) {
|
2436
2468
|
let s = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : {};
|
2437
|
-
super(), this.backend = t, this.store = n, this.services = r, this.languageUtils = r.languageUtils, this.options = s, this.logger =
|
2469
|
+
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);
|
2438
2470
|
}
|
2439
2471
|
queueLoad(t, n, r, s) {
|
2440
2472
|
const i = {}, a = {}, o = {}, u = {};
|
2441
2473
|
return t.forEach((c) => {
|
2442
|
-
let
|
2443
|
-
n.forEach((
|
2444
|
-
const l = `${c}|${
|
2445
|
-
!r.reload && this.store.hasResourceBundle(c,
|
2446
|
-
}),
|
2474
|
+
let d = !0;
|
2475
|
+
n.forEach((f) => {
|
2476
|
+
const l = `${c}|${f}`;
|
2477
|
+
!r.reload && this.store.hasResourceBundle(c, f) ? this.state[l] = 2 : this.state[l] < 0 || (this.state[l] === 1 ? a[l] === void 0 && (a[l] = !0) : (this.state[l] = 1, d = !1, a[l] === void 0 && (a[l] = !0), i[l] === void 0 && (i[l] = !0), u[f] === void 0 && (u[f] = !0)));
|
2478
|
+
}), d || (o[c] = !0);
|
2447
2479
|
}), (Object.keys(i).length || Object.keys(a).length) && this.queue.push({
|
2448
2480
|
pending: a,
|
2449
2481
|
pendingCount: Object.keys(a).length,
|
@@ -2462,11 +2494,11 @@ class Rr extends je {
|
|
2462
2494
|
n && this.emit("failedLoading", i, a, n), r && this.store.addResourceBundle(i, a, r), this.state[t] = n ? -1 : 2;
|
2463
2495
|
const o = {};
|
2464
2496
|
this.queue.forEach((u) => {
|
2465
|
-
|
2497
|
+
wr(u.loaded, [i], a), kr(u, t), n && u.errors.push(n), u.pendingCount === 0 && !u.done && (Object.keys(u.loaded).forEach((c) => {
|
2466
2498
|
o[c] || (o[c] = {});
|
2467
|
-
const
|
2468
|
-
|
2469
|
-
o[c][
|
2499
|
+
const d = u.loaded[c];
|
2500
|
+
d.length && d.forEach((f) => {
|
2501
|
+
o[c][f] === void 0 && (o[c][f] = !0);
|
2470
2502
|
});
|
2471
2503
|
}), u.done = !0, u.errors.length ? u.callback(u.errors) : u.callback());
|
2472
2504
|
}), this.emit("loaded", o), this.queue = this.queue.filter((u) => !u.done);
|
@@ -2487,23 +2519,23 @@ class Rr extends je {
|
|
2487
2519
|
return;
|
2488
2520
|
}
|
2489
2521
|
this.readingCalls++;
|
2490
|
-
const o = (c,
|
2522
|
+
const o = (c, d) => {
|
2491
2523
|
if (this.readingCalls--, this.waitingReads.length > 0) {
|
2492
|
-
const
|
2493
|
-
this.read(
|
2524
|
+
const f = this.waitingReads.shift();
|
2525
|
+
this.read(f.lng, f.ns, f.fcName, f.tried, f.wait, f.callback);
|
2494
2526
|
}
|
2495
|
-
if (c &&
|
2527
|
+
if (c && d && s < this.maxRetries) {
|
2496
2528
|
setTimeout(() => {
|
2497
2529
|
this.read.call(this, t, n, r, s + 1, i * 2, a);
|
2498
2530
|
}, i);
|
2499
2531
|
return;
|
2500
2532
|
}
|
2501
|
-
a(c,
|
2533
|
+
a(c, d);
|
2502
2534
|
}, u = this.backend[r].bind(this.backend);
|
2503
2535
|
if (u.length === 2) {
|
2504
2536
|
try {
|
2505
2537
|
const c = u(t, n);
|
2506
|
-
c && typeof c.then == "function" ? c.then((
|
2538
|
+
c && typeof c.then == "function" ? c.then((d) => o(null, d)).catch(o) : o(null, c);
|
2507
2539
|
} catch (c) {
|
2508
2540
|
o(c);
|
2509
2541
|
}
|
@@ -2553,10 +2585,10 @@ class Rr extends je {
|
|
2553
2585
|
}, c = this.backend.create.bind(this.backend);
|
2554
2586
|
if (c.length < 6)
|
2555
2587
|
try {
|
2556
|
-
let
|
2557
|
-
c.length === 5 ?
|
2558
|
-
} catch (
|
2559
|
-
o(
|
2588
|
+
let d;
|
2589
|
+
c.length === 5 ? d = c(t, n, r, s, u) : d = c(t, n, r, s), d && typeof d.then == "function" ? d.then((f) => o(null, f)).catch(o) : o(null, d);
|
2590
|
+
} catch (d) {
|
2591
|
+
o(d);
|
2560
2592
|
}
|
2561
2593
|
else
|
2562
2594
|
c(t, n, r, s, o, u);
|
@@ -2565,7 +2597,7 @@ class Rr extends je {
|
|
2565
2597
|
}
|
2566
2598
|
}
|
2567
2599
|
}
|
2568
|
-
function
|
2600
|
+
function yt() {
|
2569
2601
|
return {
|
2570
2602
|
debug: !1,
|
2571
2603
|
initImmediate: !0,
|
@@ -2624,22 +2656,22 @@ function pt() {
|
|
2624
2656
|
}
|
2625
2657
|
};
|
2626
2658
|
}
|
2627
|
-
function
|
2659
|
+
function bt(e) {
|
2628
2660
|
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;
|
2629
2661
|
}
|
2630
|
-
function
|
2662
|
+
function fe() {
|
2631
2663
|
}
|
2632
|
-
function
|
2664
|
+
function Ur(e) {
|
2633
2665
|
Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((n) => {
|
2634
2666
|
typeof e[n] == "function" && (e[n] = e[n].bind(e));
|
2635
2667
|
});
|
2636
2668
|
}
|
2637
|
-
class oe extends
|
2669
|
+
class oe extends Le {
|
2638
2670
|
constructor() {
|
2639
2671
|
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 ? arguments[1] : void 0;
|
2640
|
-
if (super(), this.options =
|
2672
|
+
if (super(), this.options = bt(t), this.services = {}, this.logger = _, this.modules = {
|
2641
2673
|
external: []
|
2642
|
-
},
|
2674
|
+
}, Ur(this), n && !this.isInitialized && !t.isClone) {
|
2643
2675
|
if (!this.options.initImmediate)
|
2644
2676
|
return this.init(t, n), this;
|
2645
2677
|
setTimeout(() => {
|
@@ -2651,32 +2683,32 @@ class oe extends je {
|
|
2651
2683
|
var t = this;
|
2652
2684
|
let n = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = arguments.length > 1 ? arguments[1] : void 0;
|
2653
2685
|
typeof n == "function" && (r = n, n = {}), !n.defaultNS && n.defaultNS !== !1 && n.ns && (typeof n.ns == "string" ? n.defaultNS = n.ns : n.ns.indexOf("translation") < 0 && (n.defaultNS = n.ns[0]));
|
2654
|
-
const s =
|
2686
|
+
const s = yt();
|
2655
2687
|
this.options = {
|
2656
2688
|
...s,
|
2657
2689
|
...this.options,
|
2658
|
-
...
|
2690
|
+
...bt(n)
|
2659
2691
|
}, this.options.compatibilityAPI !== "v1" && (this.options.interpolation = {
|
2660
2692
|
...s.interpolation,
|
2661
2693
|
...this.options.interpolation
|
2662
2694
|
}), n.keySeparator !== void 0 && (this.options.userDefinedKeySeparator = n.keySeparator), n.nsSeparator !== void 0 && (this.options.userDefinedNsSeparator = n.nsSeparator);
|
2663
|
-
function i(
|
2664
|
-
return
|
2695
|
+
function i(d) {
|
2696
|
+
return d ? typeof d == "function" ? new d() : d : null;
|
2665
2697
|
}
|
2666
2698
|
if (!this.options.isClone) {
|
2667
|
-
this.modules.logger ?
|
2668
|
-
let
|
2669
|
-
this.modules.formatter ?
|
2670
|
-
const
|
2671
|
-
this.store = new
|
2699
|
+
this.modules.logger ? _.init(i(this.modules.logger), this.options) : _.init(null, this.options);
|
2700
|
+
let d;
|
2701
|
+
this.modules.formatter ? d = this.modules.formatter : typeof Intl < "u" && (d = _r);
|
2702
|
+
const f = new gt(this.options);
|
2703
|
+
this.store = new ft(this.options.resources, this.options);
|
2672
2704
|
const l = this.services;
|
2673
|
-
l.logger =
|
2705
|
+
l.logger = _, l.resourceStore = this.store, l.languageUtils = f, l.pluralResolver = new Mr(f, {
|
2674
2706
|
prepend: this.options.pluralSeparator,
|
2675
2707
|
compatibilityJSON: this.options.compatibilityJSON,
|
2676
2708
|
simplifyPluralSuffix: this.options.simplifyPluralSuffix
|
2677
|
-
}),
|
2709
|
+
}), 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 = {
|
2678
2710
|
hasLoadedNamespace: this.hasLoadedNamespace.bind(this)
|
2679
|
-
}, l.backendConnector = new
|
2711
|
+
}, l.backendConnector = new Br(i(this.modules.backend), l.resourceStore, l, this.options), l.backendConnector.on("*", function(g) {
|
2680
2712
|
for (var p = arguments.length, m = new Array(p > 1 ? p - 1 : 0), h = 1; h < p; h++)
|
2681
2713
|
m[h - 1] = arguments[h];
|
2682
2714
|
t.emit(g, ...m);
|
@@ -2688,31 +2720,31 @@ class oe extends je {
|
|
2688
2720
|
g.init && g.init(this);
|
2689
2721
|
});
|
2690
2722
|
}
|
2691
|
-
if (this.format = this.options.interpolation.format, r || (r =
|
2692
|
-
const
|
2693
|
-
|
2723
|
+
if (this.format = this.options.interpolation.format, r || (r = fe), this.options.fallbackLng && !this.services.languageDetector && !this.options.lng) {
|
2724
|
+
const d = this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);
|
2725
|
+
d.length > 0 && d[0] !== "dev" && (this.options.lng = d[0]);
|
2694
2726
|
}
|
2695
|
-
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((
|
2696
|
-
this[
|
2697
|
-
return t.store[
|
2727
|
+
!this.services.languageDetector && !this.options.lng && this.logger.warn("init: no languageDetector is used and no lng is defined"), ["getResource", "hasResourceBundle", "getResourceBundle", "getDataByLanguage"].forEach((d) => {
|
2728
|
+
this[d] = function() {
|
2729
|
+
return t.store[d](...arguments);
|
2698
2730
|
};
|
2699
|
-
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((
|
2700
|
-
this[
|
2701
|
-
return t.store[
|
2731
|
+
}), ["addResource", "addResources", "addResourceBundle", "removeResourceBundle"].forEach((d) => {
|
2732
|
+
this[d] = function() {
|
2733
|
+
return t.store[d](...arguments), t;
|
2702
2734
|
};
|
2703
2735
|
});
|
2704
2736
|
const u = ae(), c = () => {
|
2705
|
-
const
|
2706
|
-
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(l), r(
|
2737
|
+
const d = (f, l) => {
|
2738
|
+
this.isInitialized && !this.initializedStoreOnce && this.logger.warn("init: i18next is already initialized. You should call init just once!"), this.isInitialized = !0, this.options.isClone || this.logger.log("initialized", this.options), this.emit("initialized", this.options), u.resolve(l), r(f, l);
|
2707
2739
|
};
|
2708
2740
|
if (this.languages && this.options.compatibilityAPI !== "v1" && !this.isInitialized)
|
2709
|
-
return
|
2710
|
-
this.changeLanguage(this.options.lng,
|
2741
|
+
return d(null, this.t.bind(this));
|
2742
|
+
this.changeLanguage(this.options.lng, d);
|
2711
2743
|
};
|
2712
2744
|
return this.options.resources || !this.options.initImmediate ? c() : setTimeout(c, 0), u;
|
2713
2745
|
}
|
2714
2746
|
loadResources(t) {
|
2715
|
-
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
2747
|
+
let r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : fe;
|
2716
2748
|
const s = typeof t == "string" ? t : this.language;
|
2717
2749
|
if (typeof t == "function" && (r = t), !this.options.resources || this.options.partialBundledLanguages) {
|
2718
2750
|
if (s && s.toLowerCase() === "cimode")
|
@@ -2732,7 +2764,7 @@ class oe extends je {
|
|
2732
2764
|
}
|
2733
2765
|
reloadResources(t, n, r) {
|
2734
2766
|
const s = ae();
|
2735
|
-
return t || (t = this.languages), n || (n = this.options.ns), r || (r =
|
2767
|
+
return t || (t = this.languages), n || (n = this.options.ns), r || (r = fe), this.services.backendConnector.reload(t, n, (i) => {
|
2736
2768
|
s.resolve(), r(i);
|
2737
2769
|
}), s;
|
2738
2770
|
}
|
@@ -2741,7 +2773,7 @@ class oe extends je {
|
|
2741
2773
|
throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");
|
2742
2774
|
if (!t.type)
|
2743
2775
|
throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");
|
2744
|
-
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" &&
|
2776
|
+
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;
|
2745
2777
|
}
|
2746
2778
|
setResolvedLanguage(t) {
|
2747
2779
|
if (!(!t || !this.languages) && !(["cimode", "dev"].indexOf(t) > -1))
|
@@ -2769,8 +2801,8 @@ class oe extends je {
|
|
2769
2801
|
}, o = (u) => {
|
2770
2802
|
!t && !u && this.services.languageDetector && (u = []);
|
2771
2803
|
const c = typeof u == "string" ? u : this.services.languageUtils.getBestMatchFromCodes(u);
|
2772
|
-
c && (this.language || i(c), this.translator.language || this.translator.changeLanguage(c), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(c)), this.loadResources(c, (
|
2773
|
-
a(
|
2804
|
+
c && (this.language || i(c), this.translator.language || this.translator.changeLanguage(c), this.services.languageDetector && this.services.languageDetector.cacheUserLanguage && this.services.languageDetector.cacheUserLanguage(c)), this.loadResources(c, (d) => {
|
2805
|
+
a(d, c);
|
2774
2806
|
});
|
2775
2807
|
};
|
2776
2808
|
return !t && this.services.languageDetector && !this.services.languageDetector.async ? o(this.services.languageDetector.detect()) : !t && this.services.languageDetector && this.services.languageDetector.async ? this.services.languageDetector.detect.length === 0 ? this.services.languageDetector.detect().then(o) : this.services.languageDetector.detect(o) : o(t), s;
|
@@ -2780,9 +2812,9 @@ class oe extends je {
|
|
2780
2812
|
const i = function(a, o) {
|
2781
2813
|
let u;
|
2782
2814
|
if (typeof o != "object") {
|
2783
|
-
for (var c = arguments.length,
|
2784
|
-
f
|
2785
|
-
u = s.options.overloadTranslationOptionHandler([a, o].concat(
|
2815
|
+
for (var c = arguments.length, d = new Array(c > 2 ? c - 2 : 0), f = 2; f < c; f++)
|
2816
|
+
d[f - 2] = arguments[f];
|
2817
|
+
u = s.options.overloadTranslationOptionHandler([a, o].concat(d));
|
2786
2818
|
} else
|
2787
2819
|
u = {
|
2788
2820
|
...o
|
@@ -2842,7 +2874,7 @@ class oe extends je {
|
|
2842
2874
|
dir(t) {
|
2843
2875
|
if (t || (t = this.resolvedLanguage || (this.languages && this.languages.length > 0 ? this.languages[0] : this.language)), !t)
|
2844
2876
|
return "rtl";
|
2845
|
-
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new
|
2877
|
+
const n = ["ar", "shu", "sqr", "ssh", "xaa", "yhd", "yud", "aao", "abh", "abv", "acm", "acq", "acw", "acx", "acy", "adf", "ads", "aeb", "aec", "afb", "ajp", "apc", "apd", "arb", "arq", "ars", "ary", "arz", "auz", "avl", "ayh", "ayl", "ayn", "ayp", "bbz", "pga", "he", "iw", "ps", "pbt", "pbu", "pst", "prp", "prd", "ug", "ur", "ydd", "yds", "yih", "ji", "yi", "hbo", "men", "xmn", "fa", "jpr", "peo", "pes", "prs", "dv", "sam", "ckb"], r = this.services && this.services.languageUtils || new gt(yt());
|
2846
2878
|
return n.indexOf(r.getLanguagePartFromCode(t)) > -1 || t.toLowerCase().indexOf("-arab") > 1 ? "rtl" : "ltr";
|
2847
2879
|
}
|
2848
2880
|
static createInstance() {
|
@@ -2850,7 +2882,7 @@ class oe extends je {
|
|
2850
2882
|
return new oe(t, n);
|
2851
2883
|
}
|
2852
2884
|
cloneInstance() {
|
2853
|
-
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] :
|
2885
|
+
let t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : fe;
|
2854
2886
|
const r = t.forkResourceStore;
|
2855
2887
|
r && delete t.forkResourceStore;
|
2856
2888
|
const s = {
|
@@ -2864,9 +2896,9 @@ class oe extends je {
|
|
2864
2896
|
...this.services
|
2865
2897
|
}, i.services.utils = {
|
2866
2898
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
2867
|
-
}, r && (i.store = new
|
2868
|
-
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0),
|
2869
|
-
c[
|
2899
|
+
}, r && (i.store = new ft(this.store.data, s), i.services.resourceStore = i.store), i.translator = new we(i.services, s), i.translator.on("*", function(o) {
|
2900
|
+
for (var u = arguments.length, c = new Array(u > 1 ? u - 1 : 0), d = 1; d < u; d++)
|
2901
|
+
c[d - 1] = arguments[d];
|
2870
2902
|
i.emit(o, ...c);
|
2871
2903
|
}), i.init(s, n), i.translator.options = s, i.translator.backendConnector.services.utils = {
|
2872
2904
|
hasLoadedNamespace: i.hasLoadedNamespace.bind(i)
|
@@ -2898,55 +2930,55 @@ j.setDefaultNamespace;
|
|
2898
2930
|
j.hasLoadedNamespace;
|
2899
2931
|
j.loadNamespaces;
|
2900
2932
|
j.loadLanguages;
|
2901
|
-
const
|
2933
|
+
const qr = {
|
2902
2934
|
error: "Error"
|
2903
|
-
},
|
2935
|
+
}, Vr = {
|
2904
2936
|
error: "Помилка"
|
2905
|
-
},
|
2906
|
-
en:
|
2907
|
-
uk:
|
2908
|
-
},
|
2909
|
-
defaultNS:
|
2910
|
-
resources:
|
2937
|
+
}, St = "common", Wr = {
|
2938
|
+
en: qr,
|
2939
|
+
uk: Vr
|
2940
|
+
}, I = j.createInstance({
|
2941
|
+
defaultNS: St,
|
2942
|
+
resources: Hr(Wr, St),
|
2911
2943
|
lng: "en",
|
2912
2944
|
fallbackLng: "en"
|
2913
|
-
}),
|
2914
|
-
i18nextInstance:
|
2915
|
-
initPromise:
|
2945
|
+
}), Gt = {
|
2946
|
+
i18nextInstance: I,
|
2947
|
+
initPromise: I.init().then(() => I)
|
2916
2948
|
}, pe = /* @__PURE__ */ new Map();
|
2917
|
-
pe.set("common",
|
2918
|
-
const
|
2949
|
+
pe.set("common", Gt);
|
2950
|
+
const Kr = (e) => {
|
2919
2951
|
if (pe.has(e.namespace))
|
2920
2952
|
return pe.get(e.namespace);
|
2921
2953
|
if (e.plugins)
|
2922
2954
|
for (const i of e.plugins)
|
2923
|
-
|
2955
|
+
I.use(i);
|
2924
2956
|
Object.keys(e.resource).forEach((i) => {
|
2925
|
-
|
2957
|
+
I.addResourceBundle(i, e.namespace, e.resource[i]);
|
2926
2958
|
});
|
2927
|
-
const t =
|
2959
|
+
const t = I.cloneInstance({
|
2928
2960
|
defaultNS: e.namespace
|
2929
2961
|
});
|
2930
|
-
let n =
|
2962
|
+
let n = Gt.initPromise.then(() => t);
|
2931
2963
|
t.on("languageChanged", (i) => {
|
2932
|
-
|
2933
|
-
}),
|
2964
|
+
I.language !== i && I.changeLanguage(i);
|
2965
|
+
}), I.on("languageChanged", (i) => {
|
2934
2966
|
t.language !== i && t.changeLanguage(i);
|
2935
2967
|
});
|
2936
2968
|
const r = e.language || "en";
|
2937
|
-
|
2969
|
+
I.language !== r && (n = n.then(() => t.changeLanguage(r)).then(() => t));
|
2938
2970
|
const s = { initPromise: n, i18nextInstance: t };
|
2939
2971
|
return pe.set(e.namespace, s), s;
|
2940
2972
|
};
|
2941
|
-
function
|
2973
|
+
function Hr(e, t) {
|
2942
2974
|
return Object.keys(e).reduce((n, r) => (n[r] = {
|
2943
2975
|
[t]: e[r]
|
2944
2976
|
}, n), {});
|
2945
2977
|
}
|
2946
|
-
function
|
2978
|
+
function Gr(e) {
|
2947
2979
|
return e && e.replace(new RegExp("(?<!\\\\)'", "g"), "\\'");
|
2948
2980
|
}
|
2949
|
-
const
|
2981
|
+
const zr = {
|
2950
2982
|
errors: {
|
2951
2983
|
measure: {
|
2952
2984
|
unsupportedType: "Unsupported measure type",
|
@@ -2972,7 +3004,7 @@ const qr = {
|
|
2972
3004
|
},
|
2973
3005
|
unsupportedDimensionalElement: "Unsupported dimensional element type"
|
2974
3006
|
}
|
2975
|
-
},
|
3007
|
+
}, Jr = {
|
2976
3008
|
errors: {
|
2977
3009
|
measure: {
|
2978
3010
|
unsupportedType: "Непідтримуваний тип measure",
|
@@ -2998,47 +3030,47 @@ const qr = {
|
|
2998
3030
|
},
|
2999
3031
|
unsupportedDimensionalElement: "Непідтримуваний тип елемента"
|
3000
3032
|
}
|
3001
|
-
},
|
3002
|
-
en:
|
3003
|
-
uk:
|
3033
|
+
}, Qr = "sdkData", Yr = {
|
3034
|
+
en: zr,
|
3035
|
+
uk: Jr
|
3004
3036
|
};
|
3005
|
-
function
|
3006
|
-
return
|
3007
|
-
resource:
|
3037
|
+
function Zr() {
|
3038
|
+
return Kr({
|
3039
|
+
resource: Yr,
|
3008
3040
|
language: "en",
|
3009
|
-
namespace:
|
3041
|
+
namespace: Qr
|
3010
3042
|
});
|
3011
3043
|
}
|
3012
|
-
|
3013
|
-
function
|
3044
|
+
Zr();
|
3045
|
+
function Xr() {
|
3014
3046
|
this.__data__ = [], this.size = 0;
|
3015
3047
|
}
|
3016
|
-
function
|
3048
|
+
function zt(e, t) {
|
3017
3049
|
return e === t || e !== e && t !== t;
|
3018
3050
|
}
|
3019
|
-
function
|
3051
|
+
function Ee(e, t) {
|
3020
3052
|
for (var n = e.length; n--; )
|
3021
|
-
if (
|
3053
|
+
if (zt(e[n][0], t))
|
3022
3054
|
return n;
|
3023
3055
|
return -1;
|
3024
3056
|
}
|
3025
|
-
var
|
3026
|
-
function
|
3027
|
-
var t = this.__data__, n =
|
3057
|
+
var es = Array.prototype, ts = es.splice;
|
3058
|
+
function ns(e) {
|
3059
|
+
var t = this.__data__, n = Ee(t, e);
|
3028
3060
|
if (n < 0)
|
3029
3061
|
return !1;
|
3030
3062
|
var r = t.length - 1;
|
3031
|
-
return n == r ? t.pop() :
|
3063
|
+
return n == r ? t.pop() : ts.call(t, n, 1), --this.size, !0;
|
3032
3064
|
}
|
3033
|
-
function
|
3034
|
-
var t = this.__data__, n =
|
3065
|
+
function rs(e) {
|
3066
|
+
var t = this.__data__, n = Ee(t, e);
|
3035
3067
|
return n < 0 ? void 0 : t[n][1];
|
3036
3068
|
}
|
3037
|
-
function
|
3038
|
-
return
|
3069
|
+
function ss(e) {
|
3070
|
+
return Ee(this.__data__, e) > -1;
|
3039
3071
|
}
|
3040
|
-
function
|
3041
|
-
var n = this.__data__, r =
|
3072
|
+
function is(e, t) {
|
3073
|
+
var n = this.__data__, r = Ee(n, e);
|
3042
3074
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
3043
3075
|
}
|
3044
3076
|
function k(e) {
|
@@ -3048,38 +3080,38 @@ function k(e) {
|
|
3048
3080
|
this.set(r[0], r[1]);
|
3049
3081
|
}
|
3050
3082
|
}
|
3051
|
-
k.prototype.clear =
|
3052
|
-
k.prototype.delete =
|
3053
|
-
k.prototype.get =
|
3054
|
-
k.prototype.has =
|
3055
|
-
k.prototype.set =
|
3056
|
-
function
|
3083
|
+
k.prototype.clear = Xr;
|
3084
|
+
k.prototype.delete = ns;
|
3085
|
+
k.prototype.get = rs;
|
3086
|
+
k.prototype.has = ss;
|
3087
|
+
k.prototype.set = is;
|
3088
|
+
function as() {
|
3057
3089
|
this.__data__ = new k(), this.size = 0;
|
3058
3090
|
}
|
3059
|
-
function
|
3091
|
+
function os(e) {
|
3060
3092
|
var t = this.__data__, n = t.delete(e);
|
3061
3093
|
return this.size = t.size, n;
|
3062
3094
|
}
|
3063
|
-
function
|
3095
|
+
function us(e) {
|
3064
3096
|
return this.__data__.get(e);
|
3065
3097
|
}
|
3066
|
-
function
|
3098
|
+
function ls(e) {
|
3067
3099
|
return this.__data__.has(e);
|
3068
3100
|
}
|
3069
|
-
var
|
3070
|
-
const
|
3071
|
-
var
|
3072
|
-
var e = /[^.]+$/.exec(
|
3101
|
+
var cs = U["__core-js_shared__"];
|
3102
|
+
const $e = cs;
|
3103
|
+
var Ot = function() {
|
3104
|
+
var e = /[^.]+$/.exec($e && $e.keys && $e.keys.IE_PROTO || "");
|
3073
3105
|
return e ? "Symbol(src)_1." + e : "";
|
3074
3106
|
}();
|
3075
|
-
function
|
3076
|
-
return !!
|
3107
|
+
function ds(e) {
|
3108
|
+
return !!Ot && Ot in e;
|
3077
3109
|
}
|
3078
|
-
var
|
3079
|
-
function
|
3110
|
+
var fs = Function.prototype, ps = fs.toString;
|
3111
|
+
function z(e) {
|
3080
3112
|
if (e != null) {
|
3081
3113
|
try {
|
3082
|
-
return
|
3114
|
+
return ps.call(e);
|
3083
3115
|
} catch {
|
3084
3116
|
}
|
3085
3117
|
try {
|
@@ -3089,91 +3121,91 @@ function G(e) {
|
|
3089
3121
|
}
|
3090
3122
|
return "";
|
3091
3123
|
}
|
3092
|
-
var
|
3093
|
-
"^" +
|
3124
|
+
var gs = /[\\^$.*+?()[\]{}|]/g, hs = /^\[object .+?Constructor\]$/, ms = Function.prototype, ys = Object.prototype, bs = ms.toString, Ss = ys.hasOwnProperty, Os = RegExp(
|
3125
|
+
"^" + bs.call(Ss).replace(gs, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
3094
3126
|
);
|
3095
|
-
function
|
3096
|
-
if (!
|
3127
|
+
function vs(e) {
|
3128
|
+
if (!je(e) || ds(e))
|
3097
3129
|
return !1;
|
3098
|
-
var t =
|
3099
|
-
return t.test(
|
3130
|
+
var t = Bn(e) ? Os : hs;
|
3131
|
+
return t.test(z(e));
|
3100
3132
|
}
|
3101
|
-
function
|
3133
|
+
function xs(e, t) {
|
3102
3134
|
return e == null ? void 0 : e[t];
|
3103
3135
|
}
|
3104
3136
|
function J(e, t) {
|
3105
|
-
var n =
|
3106
|
-
return
|
3137
|
+
var n = xs(e, t);
|
3138
|
+
return vs(n) ? n : void 0;
|
3107
3139
|
}
|
3108
|
-
var
|
3109
|
-
const ue =
|
3110
|
-
var
|
3111
|
-
const le =
|
3112
|
-
function
|
3140
|
+
var Cs = J(U, "Map");
|
3141
|
+
const ue = Cs;
|
3142
|
+
var ws = J(Object, "create");
|
3143
|
+
const le = ws;
|
3144
|
+
function Ds() {
|
3113
3145
|
this.__data__ = le ? le(null) : {}, this.size = 0;
|
3114
3146
|
}
|
3115
|
-
function
|
3147
|
+
function js(e) {
|
3116
3148
|
var t = this.has(e) && delete this.__data__[e];
|
3117
3149
|
return this.size -= t ? 1 : 0, t;
|
3118
3150
|
}
|
3119
|
-
var
|
3120
|
-
function
|
3151
|
+
var Ps = "__lodash_hash_undefined__", As = Object.prototype, Fs = As.hasOwnProperty;
|
3152
|
+
function Ls(e) {
|
3121
3153
|
var t = this.__data__;
|
3122
3154
|
if (le) {
|
3123
3155
|
var n = t[e];
|
3124
|
-
return n ===
|
3156
|
+
return n === Ps ? void 0 : n;
|
3125
3157
|
}
|
3126
|
-
return
|
3158
|
+
return Fs.call(t, e) ? t[e] : void 0;
|
3127
3159
|
}
|
3128
|
-
var
|
3129
|
-
function
|
3160
|
+
var Es = Object.prototype, Ns = Es.hasOwnProperty;
|
3161
|
+
function Ts(e) {
|
3130
3162
|
var t = this.__data__;
|
3131
|
-
return le ? t[e] !== void 0 :
|
3163
|
+
return le ? t[e] !== void 0 : Ns.call(t, e);
|
3132
3164
|
}
|
3133
|
-
var
|
3134
|
-
function
|
3165
|
+
var Rs = "__lodash_hash_undefined__";
|
3166
|
+
function Ms(e, t) {
|
3135
3167
|
var n = this.__data__;
|
3136
|
-
return this.size += this.has(e) ? 0 : 1, n[e] = le && t === void 0 ?
|
3168
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = le && t === void 0 ? Rs : t, this;
|
3137
3169
|
}
|
3138
|
-
function
|
3170
|
+
function G(e) {
|
3139
3171
|
var t = -1, n = e == null ? 0 : e.length;
|
3140
3172
|
for (this.clear(); ++t < n; ) {
|
3141
3173
|
var r = e[t];
|
3142
3174
|
this.set(r[0], r[1]);
|
3143
3175
|
}
|
3144
3176
|
}
|
3145
|
-
|
3146
|
-
|
3147
|
-
|
3148
|
-
|
3149
|
-
|
3150
|
-
function
|
3177
|
+
G.prototype.clear = Ds;
|
3178
|
+
G.prototype.delete = js;
|
3179
|
+
G.prototype.get = Ls;
|
3180
|
+
G.prototype.has = Ts;
|
3181
|
+
G.prototype.set = Ms;
|
3182
|
+
function $s() {
|
3151
3183
|
this.size = 0, this.__data__ = {
|
3152
|
-
hash: new
|
3184
|
+
hash: new G(),
|
3153
3185
|
map: new (ue || k)(),
|
3154
|
-
string: new
|
3186
|
+
string: new G()
|
3155
3187
|
};
|
3156
3188
|
}
|
3157
|
-
function
|
3189
|
+
function Is(e) {
|
3158
3190
|
var t = typeof e;
|
3159
3191
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
3160
3192
|
}
|
3161
|
-
function
|
3193
|
+
function Ne(e, t) {
|
3162
3194
|
var n = e.__data__;
|
3163
|
-
return
|
3195
|
+
return Is(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
3164
3196
|
}
|
3165
|
-
function
|
3166
|
-
var t =
|
3197
|
+
function _s(e) {
|
3198
|
+
var t = Ne(this, e).delete(e);
|
3167
3199
|
return this.size -= t ? 1 : 0, t;
|
3168
3200
|
}
|
3169
|
-
function
|
3170
|
-
return
|
3201
|
+
function ks(e) {
|
3202
|
+
return Ne(this, e).get(e);
|
3171
3203
|
}
|
3172
|
-
function
|
3173
|
-
return
|
3204
|
+
function Bs(e) {
|
3205
|
+
return Ne(this, e).has(e);
|
3174
3206
|
}
|
3175
|
-
function
|
3176
|
-
var n =
|
3207
|
+
function Us(e, t) {
|
3208
|
+
var n = Ne(this, e), r = n.size;
|
3177
3209
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
3178
3210
|
}
|
3179
3211
|
function te(e) {
|
@@ -3183,17 +3215,17 @@ function te(e) {
|
|
3183
3215
|
this.set(r[0], r[1]);
|
3184
3216
|
}
|
3185
3217
|
}
|
3186
|
-
te.prototype.clear =
|
3187
|
-
te.prototype.delete =
|
3188
|
-
te.prototype.get =
|
3189
|
-
te.prototype.has =
|
3190
|
-
te.prototype.set =
|
3191
|
-
var
|
3192
|
-
function
|
3218
|
+
te.prototype.clear = $s;
|
3219
|
+
te.prototype.delete = _s;
|
3220
|
+
te.prototype.get = ks;
|
3221
|
+
te.prototype.has = Bs;
|
3222
|
+
te.prototype.set = Us;
|
3223
|
+
var qs = 200;
|
3224
|
+
function Vs(e, t) {
|
3193
3225
|
var n = this.__data__;
|
3194
3226
|
if (n instanceof k) {
|
3195
3227
|
var r = n.__data__;
|
3196
|
-
if (!ue || r.length <
|
3228
|
+
if (!ue || r.length < qs - 1)
|
3197
3229
|
return r.push([e, t]), this.size = ++n.size, this;
|
3198
3230
|
n = this.__data__ = new te(r);
|
3199
3231
|
}
|
@@ -3203,38 +3235,38 @@ function ne(e) {
|
|
3203
3235
|
var t = this.__data__ = new k(e);
|
3204
3236
|
this.size = t.size;
|
3205
3237
|
}
|
3206
|
-
ne.prototype.clear =
|
3207
|
-
ne.prototype.delete =
|
3208
|
-
ne.prototype.get =
|
3209
|
-
ne.prototype.has =
|
3210
|
-
ne.prototype.set =
|
3211
|
-
function
|
3238
|
+
ne.prototype.clear = as;
|
3239
|
+
ne.prototype.delete = os;
|
3240
|
+
ne.prototype.get = us;
|
3241
|
+
ne.prototype.has = ls;
|
3242
|
+
ne.prototype.set = Vs;
|
3243
|
+
function Ws(e, t) {
|
3212
3244
|
for (var n = -1, r = e == null ? 0 : e.length; ++n < r && t(e[n], n, e) !== !1; )
|
3213
3245
|
;
|
3214
3246
|
return e;
|
3215
3247
|
}
|
3216
|
-
var
|
3248
|
+
var Ks = function() {
|
3217
3249
|
try {
|
3218
3250
|
var e = J(Object, "defineProperty");
|
3219
3251
|
return e({}, "", {}), e;
|
3220
3252
|
} catch {
|
3221
3253
|
}
|
3222
3254
|
}();
|
3223
|
-
const
|
3255
|
+
const vt = Ks;
|
3224
3256
|
function Jt(e, t, n) {
|
3225
|
-
t == "__proto__" &&
|
3257
|
+
t == "__proto__" && vt ? vt(e, t, {
|
3226
3258
|
configurable: !0,
|
3227
3259
|
enumerable: !0,
|
3228
3260
|
value: n,
|
3229
3261
|
writable: !0
|
3230
3262
|
}) : e[t] = n;
|
3231
3263
|
}
|
3232
|
-
var
|
3264
|
+
var Hs = Object.prototype, Gs = Hs.hasOwnProperty;
|
3233
3265
|
function Qt(e, t, n) {
|
3234
3266
|
var r = e[t];
|
3235
|
-
(!(
|
3267
|
+
(!(Gs.call(e, t) && zt(r, n)) || n === void 0 && !(t in e)) && Jt(e, t, n);
|
3236
3268
|
}
|
3237
|
-
function
|
3269
|
+
function Te(e, t, n, r) {
|
3238
3270
|
var s = !n;
|
3239
3271
|
n || (n = {});
|
3240
3272
|
for (var i = -1, a = t.length; ++i < a; ) {
|
@@ -3243,45 +3275,45 @@ function Fe(e, t, n, r) {
|
|
3243
3275
|
}
|
3244
3276
|
return n;
|
3245
3277
|
}
|
3246
|
-
function
|
3247
|
-
return e &&
|
3278
|
+
function zs(e, t) {
|
3279
|
+
return e && Te(t, Qe(t), e);
|
3248
3280
|
}
|
3249
|
-
function
|
3281
|
+
function Js(e) {
|
3250
3282
|
var t = [];
|
3251
3283
|
if (e != null)
|
3252
3284
|
for (var n in Object(e))
|
3253
3285
|
t.push(n);
|
3254
3286
|
return t;
|
3255
3287
|
}
|
3256
|
-
var
|
3257
|
-
function
|
3258
|
-
if (!
|
3259
|
-
return
|
3260
|
-
var t =
|
3288
|
+
var Qs = Object.prototype, Ys = Qs.hasOwnProperty;
|
3289
|
+
function Zs(e) {
|
3290
|
+
if (!je(e))
|
3291
|
+
return Js(e);
|
3292
|
+
var t = kt(e), n = [];
|
3261
3293
|
for (var r in e)
|
3262
|
-
r == "constructor" && (t || !
|
3294
|
+
r == "constructor" && (t || !Ys.call(e, r)) || n.push(r);
|
3263
3295
|
return n;
|
3264
3296
|
}
|
3265
|
-
function
|
3266
|
-
return
|
3297
|
+
function Xe(e) {
|
3298
|
+
return Un(e) ? qn(e, !0) : Zs(e);
|
3267
3299
|
}
|
3268
|
-
function
|
3269
|
-
return e &&
|
3300
|
+
function Xs(e, t) {
|
3301
|
+
return e && Te(t, Xe(t), e);
|
3270
3302
|
}
|
3271
|
-
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports,
|
3272
|
-
function
|
3303
|
+
var Yt = typeof exports == "object" && exports && !exports.nodeType && exports, xt = Yt && typeof module == "object" && module && !module.nodeType && module, ei = xt && xt.exports === Yt, Ct = ei ? U.Buffer : void 0, wt = Ct ? Ct.allocUnsafe : void 0;
|
3304
|
+
function ti(e, t) {
|
3273
3305
|
if (t)
|
3274
3306
|
return e.slice();
|
3275
|
-
var n = e.length, r =
|
3307
|
+
var n = e.length, r = wt ? wt(n) : new e.constructor(n);
|
3276
3308
|
return e.copy(r), r;
|
3277
3309
|
}
|
3278
|
-
function
|
3310
|
+
function ni(e, t) {
|
3279
3311
|
var n = -1, r = e.length;
|
3280
3312
|
for (t || (t = Array(r)); ++n < r; )
|
3281
3313
|
t[n] = e[n];
|
3282
3314
|
return t;
|
3283
3315
|
}
|
3284
|
-
function
|
3316
|
+
function ri(e, t) {
|
3285
3317
|
for (var n = -1, r = e == null ? 0 : e.length, s = 0, i = []; ++n < r; ) {
|
3286
3318
|
var a = e[n];
|
3287
3319
|
t(a, n, e) && (i[s++] = a);
|
@@ -3291,217 +3323,217 @@ function Ys(e, t) {
|
|
3291
3323
|
function Zt() {
|
3292
3324
|
return [];
|
3293
3325
|
}
|
3294
|
-
var
|
3295
|
-
return e == null ? [] : (e = Object(e),
|
3296
|
-
return
|
3326
|
+
var si = Object.prototype, ii = si.propertyIsEnumerable, Dt = Object.getOwnPropertySymbols, ai = Dt ? function(e) {
|
3327
|
+
return e == null ? [] : (e = Object(e), ri(Dt(e), function(t) {
|
3328
|
+
return ii.call(e, t);
|
3297
3329
|
}));
|
3298
3330
|
} : Zt;
|
3299
|
-
const
|
3300
|
-
function
|
3301
|
-
return
|
3331
|
+
const et = ai;
|
3332
|
+
function oi(e, t) {
|
3333
|
+
return Te(e, et(e), t);
|
3302
3334
|
}
|
3303
3335
|
function Xt(e, t) {
|
3304
3336
|
for (var n = -1, r = t.length, s = e.length; ++n < r; )
|
3305
3337
|
e[s + n] = t[n];
|
3306
3338
|
return e;
|
3307
3339
|
}
|
3308
|
-
var
|
3309
|
-
const en =
|
3310
|
-
var
|
3340
|
+
var ui = Vn(Object.getPrototypeOf, Object);
|
3341
|
+
const en = ui;
|
3342
|
+
var li = Object.getOwnPropertySymbols, ci = li ? function(e) {
|
3311
3343
|
for (var t = []; e; )
|
3312
|
-
Xt(t,
|
3344
|
+
Xt(t, et(e)), e = en(e);
|
3313
3345
|
return t;
|
3314
3346
|
} : Zt;
|
3315
|
-
const tn =
|
3316
|
-
function
|
3317
|
-
return
|
3347
|
+
const tn = ci;
|
3348
|
+
function di(e, t) {
|
3349
|
+
return Te(e, tn(e), t);
|
3318
3350
|
}
|
3319
3351
|
function nn(e, t, n) {
|
3320
3352
|
var r = t(e);
|
3321
|
-
return
|
3353
|
+
return Bt(e) ? r : Xt(r, n(e));
|
3322
3354
|
}
|
3323
|
-
function
|
3324
|
-
return nn(e,
|
3355
|
+
function fi(e) {
|
3356
|
+
return nn(e, Qe, et);
|
3325
3357
|
}
|
3326
|
-
function
|
3327
|
-
return nn(e,
|
3358
|
+
function pi(e) {
|
3359
|
+
return nn(e, Xe, tn);
|
3328
3360
|
}
|
3329
|
-
var
|
3330
|
-
const
|
3331
|
-
var
|
3332
|
-
const
|
3333
|
-
var
|
3334
|
-
const
|
3335
|
-
var
|
3336
|
-
const
|
3337
|
-
var
|
3338
|
-
(
|
3339
|
-
var t =
|
3361
|
+
var gi = J(U, "DataView");
|
3362
|
+
const Ke = gi;
|
3363
|
+
var hi = J(U, "Promise");
|
3364
|
+
const He = hi;
|
3365
|
+
var mi = J(U, "Set");
|
3366
|
+
const Ge = mi;
|
3367
|
+
var yi = J(U, "WeakMap");
|
3368
|
+
const ze = yi;
|
3369
|
+
var jt = "[object Map]", bi = "[object Object]", Pt = "[object Promise]", At = "[object Set]", Ft = "[object WeakMap]", Lt = "[object DataView]", Si = z(Ke), Oi = z(ue), vi = z(He), xi = z(Ge), Ci = z(ze), K = Ut;
|
3370
|
+
(Ke && K(new Ke(new ArrayBuffer(1))) != Lt || ue && K(new ue()) != jt || He && K(He.resolve()) != Pt || Ge && K(new Ge()) != At || ze && K(new ze()) != Ft) && (K = function(e) {
|
3371
|
+
var t = Ut(e), n = t == bi ? e.constructor : void 0, r = n ? z(n) : "";
|
3340
3372
|
if (r)
|
3341
3373
|
switch (r) {
|
3342
|
-
case
|
3374
|
+
case Si:
|
3375
|
+
return Lt;
|
3376
|
+
case Oi:
|
3343
3377
|
return jt;
|
3344
|
-
case
|
3345
|
-
return
|
3346
|
-
case
|
3347
|
-
return
|
3348
|
-
case
|
3349
|
-
return
|
3350
|
-
case yi:
|
3351
|
-
return Dt;
|
3378
|
+
case vi:
|
3379
|
+
return Pt;
|
3380
|
+
case xi:
|
3381
|
+
return At;
|
3382
|
+
case Ci:
|
3383
|
+
return Ft;
|
3352
3384
|
}
|
3353
3385
|
return t;
|
3354
3386
|
});
|
3355
|
-
const
|
3356
|
-
var
|
3357
|
-
function
|
3387
|
+
const tt = K;
|
3388
|
+
var wi = Object.prototype, Di = wi.hasOwnProperty;
|
3389
|
+
function ji(e) {
|
3358
3390
|
var t = e.length, n = new e.constructor(t);
|
3359
|
-
return t && typeof e[0] == "string" &&
|
3391
|
+
return t && typeof e[0] == "string" && Di.call(e, "index") && (n.index = e.index, n.input = e.input), n;
|
3360
3392
|
}
|
3361
|
-
var
|
3362
|
-
const
|
3363
|
-
function
|
3393
|
+
var Pi = U.Uint8Array;
|
3394
|
+
const Et = Pi;
|
3395
|
+
function nt(e) {
|
3364
3396
|
var t = new e.constructor(e.byteLength);
|
3365
|
-
return new
|
3397
|
+
return new Et(t).set(new Et(e)), t;
|
3366
3398
|
}
|
3367
|
-
function
|
3368
|
-
var n = t ?
|
3399
|
+
function Ai(e, t) {
|
3400
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
3369
3401
|
return new e.constructor(n, e.byteOffset, e.byteLength);
|
3370
3402
|
}
|
3371
|
-
var
|
3372
|
-
function
|
3373
|
-
var t = new e.constructor(e.source,
|
3403
|
+
var Fi = /\w*$/;
|
3404
|
+
function Li(e) {
|
3405
|
+
var t = new e.constructor(e.source, Fi.exec(e));
|
3374
3406
|
return t.lastIndex = e.lastIndex, t;
|
3375
3407
|
}
|
3376
|
-
var
|
3377
|
-
function
|
3378
|
-
return
|
3408
|
+
var Nt = ot ? ot.prototype : void 0, Tt = Nt ? Nt.valueOf : void 0;
|
3409
|
+
function Ei(e) {
|
3410
|
+
return Tt ? Object(Tt.call(e)) : {};
|
3379
3411
|
}
|
3380
|
-
function
|
3381
|
-
var n = t ?
|
3412
|
+
function Ni(e, t) {
|
3413
|
+
var n = t ? nt(e.buffer) : e.buffer;
|
3382
3414
|
return new e.constructor(n, e.byteOffset, e.length);
|
3383
3415
|
}
|
3384
|
-
var
|
3385
|
-
function
|
3416
|
+
var Ti = "[object Boolean]", Ri = "[object Date]", Mi = "[object Map]", $i = "[object Number]", Ii = "[object RegExp]", _i = "[object Set]", ki = "[object String]", Bi = "[object Symbol]", Ui = "[object ArrayBuffer]", qi = "[object DataView]", Vi = "[object Float32Array]", Wi = "[object Float64Array]", Ki = "[object Int8Array]", Hi = "[object Int16Array]", Gi = "[object Int32Array]", zi = "[object Uint8Array]", Ji = "[object Uint8ClampedArray]", Qi = "[object Uint16Array]", Yi = "[object Uint32Array]";
|
3417
|
+
function Zi(e, t, n) {
|
3386
3418
|
var r = e.constructor;
|
3387
3419
|
switch (t) {
|
3388
|
-
case $i:
|
3389
|
-
return Ze(e);
|
3390
|
-
case Pi:
|
3391
|
-
case Ai:
|
3392
|
-
return new r(+e);
|
3393
|
-
case Mi:
|
3394
|
-
return xi(e, n);
|
3395
|
-
case Ii:
|
3396
|
-
case _i:
|
3397
|
-
case ki:
|
3398
|
-
case Bi:
|
3399
3420
|
case Ui:
|
3421
|
+
return nt(e);
|
3422
|
+
case Ti:
|
3423
|
+
case Ri:
|
3424
|
+
return new r(+e);
|
3400
3425
|
case qi:
|
3426
|
+
return Ai(e, n);
|
3401
3427
|
case Vi:
|
3428
|
+
case Wi:
|
3402
3429
|
case Ki:
|
3403
3430
|
case Hi:
|
3404
|
-
|
3405
|
-
case
|
3431
|
+
case Gi:
|
3432
|
+
case zi:
|
3433
|
+
case Ji:
|
3434
|
+
case Qi:
|
3435
|
+
case Yi:
|
3436
|
+
return Ni(e, n);
|
3437
|
+
case Mi:
|
3406
3438
|
return new r();
|
3407
|
-
case
|
3408
|
-
case
|
3439
|
+
case $i:
|
3440
|
+
case ki:
|
3409
3441
|
return new r(e);
|
3410
|
-
case
|
3411
|
-
return
|
3412
|
-
case
|
3442
|
+
case Ii:
|
3443
|
+
return Li(e);
|
3444
|
+
case _i:
|
3413
3445
|
return new r();
|
3414
|
-
case
|
3415
|
-
return
|
3446
|
+
case Bi:
|
3447
|
+
return Ei(e);
|
3416
3448
|
}
|
3417
3449
|
}
|
3418
|
-
var
|
3450
|
+
var Rt = Object.create, Xi = function() {
|
3419
3451
|
function e() {
|
3420
3452
|
}
|
3421
3453
|
return function(t) {
|
3422
|
-
if (!
|
3454
|
+
if (!je(t))
|
3423
3455
|
return {};
|
3424
|
-
if (
|
3425
|
-
return
|
3456
|
+
if (Rt)
|
3457
|
+
return Rt(t);
|
3426
3458
|
e.prototype = t;
|
3427
3459
|
var n = new e();
|
3428
3460
|
return e.prototype = void 0, n;
|
3429
3461
|
};
|
3430
3462
|
}();
|
3431
|
-
const
|
3432
|
-
function
|
3433
|
-
return typeof e.constructor == "function" && !
|
3463
|
+
const ea = Xi;
|
3464
|
+
function ta(e) {
|
3465
|
+
return typeof e.constructor == "function" && !kt(e) ? ea(en(e)) : {};
|
3434
3466
|
}
|
3435
|
-
var
|
3436
|
-
function
|
3437
|
-
return
|
3467
|
+
var na = "[object Map]";
|
3468
|
+
function ra(e) {
|
3469
|
+
return qt(e) && tt(e) == na;
|
3438
3470
|
}
|
3439
|
-
var
|
3440
|
-
const
|
3441
|
-
var
|
3442
|
-
function
|
3443
|
-
return
|
3471
|
+
var Mt = Se && Se.isMap, sa = Mt ? Vt(Mt) : ra;
|
3472
|
+
const ia = sa;
|
3473
|
+
var aa = "[object Set]";
|
3474
|
+
function oa(e) {
|
3475
|
+
return qt(e) && tt(e) == aa;
|
3444
3476
|
}
|
3445
|
-
var
|
3446
|
-
const
|
3447
|
-
var
|
3448
|
-
|
3449
|
-
|
3477
|
+
var $t = Se && Se.isSet, ua = $t ? Vt($t) : oa;
|
3478
|
+
const la = ua;
|
3479
|
+
var ca = 1, da = 2, fa = 4, rn = "[object Arguments]", pa = "[object Array]", ga = "[object Boolean]", ha = "[object Date]", ma = "[object Error]", sn = "[object Function]", ya = "[object GeneratorFunction]", ba = "[object Map]", Sa = "[object Number]", an = "[object Object]", Oa = "[object RegExp]", va = "[object Set]", xa = "[object String]", Ca = "[object Symbol]", wa = "[object WeakMap]", Da = "[object ArrayBuffer]", ja = "[object DataView]", Pa = "[object Float32Array]", Aa = "[object Float64Array]", Fa = "[object Int8Array]", La = "[object Int16Array]", Ea = "[object Int32Array]", Na = "[object Uint8Array]", Ta = "[object Uint8ClampedArray]", Ra = "[object Uint16Array]", Ma = "[object Uint32Array]", v = {};
|
3480
|
+
v[rn] = v[pa] = v[Da] = v[ja] = v[ga] = v[ha] = v[Pa] = v[Aa] = v[Fa] = v[La] = v[Ea] = v[ba] = v[Sa] = v[an] = v[Oa] = v[va] = v[xa] = v[Ca] = v[Na] = v[Ta] = v[Ra] = v[Ma] = !0;
|
3481
|
+
v[ma] = v[sn] = v[wa] = !1;
|
3450
3482
|
function ge(e, t, n, r, s, i) {
|
3451
|
-
var a, o = t &
|
3483
|
+
var a, o = t & ca, u = t & da, c = t & fa;
|
3452
3484
|
if (n && (a = s ? n(e, r, s, i) : n(e)), a !== void 0)
|
3453
3485
|
return a;
|
3454
|
-
if (!
|
3486
|
+
if (!je(e))
|
3455
3487
|
return e;
|
3456
|
-
var
|
3457
|
-
if (
|
3458
|
-
if (a =
|
3459
|
-
return
|
3488
|
+
var d = Bt(e);
|
3489
|
+
if (d) {
|
3490
|
+
if (a = ji(e), !o)
|
3491
|
+
return ni(e, a);
|
3460
3492
|
} else {
|
3461
|
-
var
|
3462
|
-
if (
|
3463
|
-
return
|
3464
|
-
if (
|
3465
|
-
if (a = u || l ? {} :
|
3466
|
-
return u ?
|
3493
|
+
var f = tt(e), l = f == sn || f == ya;
|
3494
|
+
if (Wn(e))
|
3495
|
+
return ti(e, o);
|
3496
|
+
if (f == an || f == rn || l && !s) {
|
3497
|
+
if (a = u || l ? {} : ta(e), !o)
|
3498
|
+
return u ? di(e, Xs(a, e)) : oi(e, zs(a, e));
|
3467
3499
|
} else {
|
3468
|
-
if (!
|
3500
|
+
if (!v[f])
|
3469
3501
|
return s ? e : {};
|
3470
|
-
a =
|
3502
|
+
a = Zi(e, f, o);
|
3471
3503
|
}
|
3472
3504
|
}
|
3473
3505
|
i || (i = new ne());
|
3474
3506
|
var g = i.get(e);
|
3475
3507
|
if (g)
|
3476
3508
|
return g;
|
3477
|
-
i.set(e, a),
|
3509
|
+
i.set(e, a), la(e) ? e.forEach(function(h) {
|
3478
3510
|
a.add(ge(h, t, n, h, e, i));
|
3479
|
-
}) :
|
3480
|
-
a.set(
|
3511
|
+
}) : ia(e) && e.forEach(function(h, x) {
|
3512
|
+
a.set(x, ge(h, t, n, x, e, i));
|
3481
3513
|
});
|
3482
|
-
var p = c ? u ?
|
3483
|
-
return
|
3484
|
-
m && (
|
3514
|
+
var p = c ? u ? pi : fi : u ? Xe : Qe, m = d ? void 0 : p(e);
|
3515
|
+
return Ws(m || e, function(h, x) {
|
3516
|
+
m && (x = h, h = e[x]), Qt(a, x, ge(h, t, n, x, e, i));
|
3485
3517
|
}), a;
|
3486
3518
|
}
|
3487
|
-
var
|
3488
|
-
function
|
3489
|
-
return ge(e,
|
3519
|
+
var $a = 1, Ia = 4;
|
3520
|
+
function _a(e) {
|
3521
|
+
return ge(e, $a | Ia);
|
3490
3522
|
}
|
3491
|
-
function
|
3523
|
+
function ka(e) {
|
3492
3524
|
return Buffer.from(e).toString("utf8");
|
3493
3525
|
}
|
3494
|
-
function
|
3526
|
+
function Ba(e) {
|
3495
3527
|
return String.fromCharCode.apply(null, new Uint16Array(e));
|
3496
3528
|
}
|
3497
|
-
function
|
3529
|
+
function Ua() {
|
3498
3530
|
return "UNSUPPORTED";
|
3499
3531
|
}
|
3500
3532
|
typeof Buffer < "u" && Buffer.from;
|
3501
|
-
var
|
3533
|
+
var Ie;
|
3502
3534
|
(function(e) {
|
3503
3535
|
e[e.None = 0] = "None", e[e.Ascending = 1] = "Ascending", e[e.Descending = 2] = "Descending";
|
3504
|
-
})(
|
3536
|
+
})(Ie = Ie || (Ie = {}));
|
3505
3537
|
const b = {
|
3506
3538
|
Measure: "measure",
|
3507
3539
|
MeasureTemplate: "measuretemplate",
|
@@ -3636,43 +3668,43 @@ const b = {
|
|
3636
3668
|
return !1;
|
3637
3669
|
}
|
3638
3670
|
};
|
3639
|
-
var
|
3671
|
+
var _e;
|
3640
3672
|
(function(e) {
|
3641
3673
|
e.TEXT = "text", e.NUMERIC = "numeric", e.DATETIME = "datetime";
|
3642
|
-
})(
|
3643
|
-
var
|
3674
|
+
})(_e = _e || (_e = {}));
|
3675
|
+
var ke;
|
3644
3676
|
(function(e) {
|
3645
3677
|
e.ASC = "asc", e.DESC = "desc";
|
3646
|
-
})(
|
3647
|
-
var
|
3678
|
+
})(ke = ke || (ke = {}));
|
3679
|
+
var Be;
|
3648
3680
|
(function(e) {
|
3649
3681
|
e.PRE = "pre", e.POST = "post";
|
3650
|
-
})(
|
3651
|
-
function
|
3682
|
+
})(Be = Be || (Be = {}));
|
3683
|
+
function Je(e, t = []) {
|
3652
3684
|
try {
|
3653
|
-
return e == null ? String(e) : typeof e == "string" ? `'${
|
3685
|
+
return e == null ? String(e) : typeof e == "string" ? `'${Gr(e)}'` : typeof e == "number" || typeof e == "boolean" ? String(e) : e instanceof Date ? `new Date('${e.toISOString()}')` : Array.isArray(e) ? `[${e.map((n) => Je(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}: ${Je(s, t)}`).join(", ")} }` : JSON.stringify(e);
|
3654
3686
|
} catch (n) {
|
3655
3687
|
return console.error(n, JSON.stringify(e, null, 2)), JSON.stringify(e);
|
3656
3688
|
}
|
3657
3689
|
}
|
3658
|
-
function
|
3690
|
+
function qa(e) {
|
3659
3691
|
let t = e.length;
|
3660
3692
|
for (; t > 0 && e[t - 1] === void 0; )
|
3661
3693
|
t--;
|
3662
3694
|
return e.slice(0, t);
|
3663
3695
|
}
|
3664
|
-
function
|
3696
|
+
function Va(e, t) {
|
3665
3697
|
return function(n) {
|
3666
3698
|
return function(...r) {
|
3667
|
-
const s =
|
3699
|
+
const s = qa(r), i = s.length, a = s.map((c) => Je(c, ["guid"])).filter((c, d) => !(["", "{ }", "[]", "undefined", "null"].includes(c) && d === i - 1)).join(", "), o = `${e}.${t ?? n.name}(${a})`, u = n(...r);
|
3668
3700
|
return u.composeCode = o, u;
|
3669
3701
|
};
|
3670
3702
|
};
|
3671
3703
|
}
|
3672
|
-
function
|
3673
|
-
return
|
3704
|
+
function It(e, t) {
|
3705
|
+
return Va("filterFactory.logic", t)(e);
|
3674
3706
|
}
|
3675
|
-
const
|
3707
|
+
const on = {
|
3676
3708
|
logicalAttribute: "logicalAttribute",
|
3677
3709
|
members: "members",
|
3678
3710
|
exclude: "exclude",
|
@@ -3685,32 +3717,35 @@ const _a = {
|
|
3685
3717
|
cascading: "cascading",
|
3686
3718
|
advanced: "advanced"
|
3687
3719
|
};
|
3688
|
-
function
|
3689
|
-
return "filterType" in e && e.filterType ===
|
3720
|
+
function Wa(e) {
|
3721
|
+
return "filterType" in e && e.filterType === on.members;
|
3722
|
+
}
|
3723
|
+
function Ka(e) {
|
3724
|
+
return "filterType" in e && e.filterType === on.cascading;
|
3690
3725
|
}
|
3691
|
-
const
|
3726
|
+
const H = (e) => {
|
3692
3727
|
if (Array.isArray(e)) {
|
3693
3728
|
const [t, ...n] = e;
|
3694
|
-
return n.length === 0 ?
|
3729
|
+
return n.length === 0 ? H(t) : {
|
3695
3730
|
operator: "AND",
|
3696
|
-
left:
|
3697
|
-
right:
|
3731
|
+
left: H(t),
|
3732
|
+
right: H(n)
|
3698
3733
|
};
|
3699
3734
|
}
|
3700
3735
|
return e;
|
3701
3736
|
};
|
3702
|
-
var
|
3737
|
+
var Ue;
|
3703
3738
|
(function(e) {
|
3704
|
-
e.and =
|
3739
|
+
e.and = It((t, n) => ({
|
3705
3740
|
operator: "AND",
|
3706
|
-
left:
|
3707
|
-
right:
|
3708
|
-
}), "and"), e.or =
|
3741
|
+
left: H(t),
|
3742
|
+
right: H(n)
|
3743
|
+
}), "and"), e.or = It((t, n) => ({
|
3709
3744
|
operator: "OR",
|
3710
|
-
left:
|
3711
|
-
right:
|
3745
|
+
left: H(t),
|
3746
|
+
right: H(n)
|
3712
3747
|
}), "or");
|
3713
|
-
})(
|
3748
|
+
})(Ue = Ue || (Ue = {}));
|
3714
3749
|
var he;
|
3715
3750
|
(function(e) {
|
3716
3751
|
e.INCLUDE_ALL = "INCLUDE_ALL", e.ADVANCED = "ADVANCED", e.INVALID = "INVALID", e.CONDITION = "CONDITION", e.SPECIFIC_ITEMS = "SPECIFIC_ITEMS";
|
@@ -3727,11 +3762,11 @@ var be;
|
|
3727
3762
|
(function(e) {
|
3728
3763
|
e.YEARS = "years", e.QUARTERS = "quarters", e.MONTHS = "months", e.WEEKS = "weeks", e.DAYS = "days", e.HOURS = "hours", e.MINUTES = "minutes";
|
3729
3764
|
})(be = be || (be = {}));
|
3730
|
-
var
|
3765
|
+
var qe;
|
3731
3766
|
(function(e) {
|
3732
3767
|
e.DATE_TIME = "datetime", e.NUMERIC = "numeric", e.TEXT = "text";
|
3733
|
-
})(
|
3734
|
-
const N = Object.assign(Object.assign(Object.assign({}, he), me), ye),
|
3768
|
+
})(qe = qe || (qe = {}));
|
3769
|
+
const N = Object.assign(Object.assign(Object.assign({}, he), me), ye), Ha = {
|
3735
3770
|
[N.INCLUDE_ALL]: {
|
3736
3771
|
all: !0,
|
3737
3772
|
filterType: N.INCLUDE_ALL
|
@@ -3760,12 +3795,12 @@ const N = Object.assign(Object.assign(Object.assign({}, he), me), ye), Ba = {
|
|
3760
3795
|
filterType: N.SPECIFIC_ITEMS
|
3761
3796
|
}
|
3762
3797
|
};
|
3763
|
-
|
3764
|
-
var
|
3798
|
+
Ha.INCLUDE_ALL, be.YEARS;
|
3799
|
+
var Ve;
|
3765
3800
|
(function(e) {
|
3766
3801
|
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";
|
3767
|
-
})(
|
3768
|
-
const
|
3802
|
+
})(Ve = Ve || (Ve = {}));
|
3803
|
+
const un = (e) => {
|
3769
3804
|
if (!e)
|
3770
3805
|
return { filters: void 0, relations: void 0 };
|
3771
3806
|
if (Array.isArray(e))
|
@@ -3775,21 +3810,21 @@ const on = (e) => {
|
|
3775
3810
|
const [o, ...u] = a;
|
3776
3811
|
if (t.add(o), !u.length)
|
3777
3812
|
return r({ instanceid: o.config.guid });
|
3778
|
-
const c = r(o),
|
3779
|
-
return { left: c, right:
|
3813
|
+
const c = r(o), d = n(u);
|
3814
|
+
return { left: c, right: d, operator: "AND" };
|
3780
3815
|
}
|
3781
3816
|
function r(a) {
|
3782
|
-
return a && (
|
3817
|
+
return a && (Ga(a) ? Ka(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));
|
3783
3818
|
}
|
3784
|
-
const s =
|
3819
|
+
const s = _a(e), i = r(s);
|
3785
3820
|
return { filters: Array.from(t), relations: i };
|
3786
3821
|
};
|
3787
|
-
function
|
3822
|
+
function Ga(e) {
|
3788
3823
|
return "config" in e && "guid" in e.config;
|
3789
3824
|
}
|
3790
3825
|
b.TextAttribute, b.NumericAttribute, b.DateLevel;
|
3791
|
-
const
|
3792
|
-
const [t, n] = q(
|
3826
|
+
const Vo = (e) => {
|
3827
|
+
const [t, n] = q(Wt, {
|
3793
3828
|
isLoading: !0,
|
3794
3829
|
isError: !1,
|
3795
3830
|
isSuccess: !1,
|
@@ -3797,7 +3832,7 @@ const $o = (e) => {
|
|
3797
3832
|
error: void 0,
|
3798
3833
|
data: void 0
|
3799
3834
|
}), r = V();
|
3800
|
-
|
3835
|
+
M("useExecuteQuery");
|
3801
3836
|
const s = async (i) => {
|
3802
3837
|
try {
|
3803
3838
|
const {
|
@@ -3805,45 +3840,45 @@ const $o = (e) => {
|
|
3805
3840
|
dimensions: o,
|
3806
3841
|
measures: u,
|
3807
3842
|
filters: c,
|
3808
|
-
highlights:
|
3809
|
-
count:
|
3843
|
+
highlights: d,
|
3844
|
+
count: f,
|
3810
3845
|
offset: l,
|
3811
3846
|
ungroup: g,
|
3812
3847
|
onBeforeQuery: p
|
3813
|
-
} =
|
3848
|
+
} = O(e), { filters: m, relations: h } = un(c);
|
3814
3849
|
n({ type: "loading" });
|
3815
|
-
const
|
3850
|
+
const x = await Kn(
|
3816
3851
|
{
|
3817
3852
|
dataSource: a,
|
3818
3853
|
dimensions: o,
|
3819
3854
|
measures: u,
|
3820
3855
|
filters: m,
|
3821
3856
|
filterRelations: h,
|
3822
|
-
highlights:
|
3823
|
-
count:
|
3857
|
+
highlights: d,
|
3858
|
+
count: f,
|
3824
3859
|
offset: l,
|
3825
3860
|
ungroup: g
|
3826
3861
|
},
|
3827
3862
|
i,
|
3828
|
-
{ onBeforeQuery:
|
3863
|
+
{ onBeforeQuery: Ye(p) }
|
3829
3864
|
);
|
3830
|
-
n({ type: "success", data:
|
3865
|
+
n({ type: "success", data: x });
|
3831
3866
|
} catch (a) {
|
3832
3867
|
n({ type: "error", error: a });
|
3833
3868
|
}
|
3834
3869
|
};
|
3835
|
-
return
|
3836
|
-
[...
|
3870
|
+
return T(
|
3871
|
+
[...R(e), r],
|
3837
3872
|
() => {
|
3838
|
-
const { app: i } = r.value, { enabled: a } =
|
3873
|
+
const { app: i } = r.value, { enabled: a } = O(e);
|
3839
3874
|
!i || !(a === void 0 || a === !0) || s(i);
|
3840
3875
|
},
|
3841
3876
|
{ immediate: !0 }
|
3842
|
-
),
|
3843
|
-
},
|
3877
|
+
), A(t.value);
|
3878
|
+
}, Wo = (e) => {
|
3844
3879
|
const t = B(void 0), n = B(void 0);
|
3845
|
-
|
3846
|
-
const [r, s] = q(
|
3880
|
+
M("useExecuteQueryByWidgetId");
|
3881
|
+
const [r, s] = q(Wt, {
|
3847
3882
|
isLoading: !0,
|
3848
3883
|
isError: !1,
|
3849
3884
|
isSuccess: !1,
|
@@ -3853,37 +3888,37 @@ const $o = (e) => {
|
|
3853
3888
|
}), i = V(), a = async (o) => {
|
3854
3889
|
try {
|
3855
3890
|
s({ type: "loading" });
|
3856
|
-
const { filters: u, ...c } =
|
3857
|
-
data:
|
3891
|
+
const { filters: u, ...c } = O(e), { filters: d } = un(Ye(u)), {
|
3892
|
+
data: f,
|
3858
3893
|
query: l,
|
3859
3894
|
pivotQuery: g
|
3860
|
-
} = await
|
3895
|
+
} = await Hn({
|
3861
3896
|
...c,
|
3862
|
-
filters:
|
3897
|
+
filters: d,
|
3863
3898
|
app: o
|
3864
3899
|
});
|
3865
|
-
s({ type: "success", data:
|
3900
|
+
s({ type: "success", data: f }), t.value = l, n.value = g;
|
3866
3901
|
} catch (u) {
|
3867
3902
|
s({ type: "error", error: u });
|
3868
3903
|
}
|
3869
3904
|
};
|
3870
|
-
return
|
3871
|
-
[...
|
3905
|
+
return T(
|
3906
|
+
[...R(e), i],
|
3872
3907
|
() => {
|
3873
|
-
const { app: o } = i.value, { enabled: u } =
|
3908
|
+
const { app: o } = i.value, { enabled: u } = O(e);
|
3874
3909
|
!o || !(u === void 0 || u === !0) || a(o);
|
3875
3910
|
},
|
3876
3911
|
{ immediate: !0 }
|
3877
3912
|
), {
|
3878
|
-
...
|
3913
|
+
...A(r.value),
|
3879
3914
|
query: t,
|
3880
3915
|
pivotQuery: n
|
3881
3916
|
};
|
3882
|
-
},
|
3883
|
-
|
3884
|
-
const t = new
|
3885
|
-
|
3886
|
-
]), [n, r] =
|
3917
|
+
}, Ko = (e) => {
|
3918
|
+
M("useExecuteCsvQuery");
|
3919
|
+
const t = new Pe(Gn, [
|
3920
|
+
Ae()
|
3921
|
+
]), [n, r] = Fe({
|
3887
3922
|
isLoading: !0,
|
3888
3923
|
isError: !1,
|
3889
3924
|
isSuccess: !1,
|
@@ -3893,13 +3928,61 @@ const $o = (e) => {
|
|
3893
3928
|
});
|
3894
3929
|
return t.subscribe((s) => {
|
3895
3930
|
r(s);
|
3896
|
-
}), t.run(
|
3897
|
-
t.run(
|
3898
|
-
}),
|
3931
|
+
}), t.run(O(e)), T([...R(e)], () => {
|
3932
|
+
t.run(O(e));
|
3933
|
+
}), De(() => {
|
3934
|
+
t.destroy();
|
3935
|
+
}), A(n.value);
|
3936
|
+
}, Ho = (e) => {
|
3937
|
+
M("useExecuteCustomWidgetQuery");
|
3938
|
+
const t = new Pe(zn, [
|
3939
|
+
Ae()
|
3940
|
+
]), [n, r] = Fe({
|
3941
|
+
data: void 0,
|
3942
|
+
isLoading: !0,
|
3943
|
+
isError: !1,
|
3944
|
+
isSuccess: !1,
|
3945
|
+
status: "loading",
|
3946
|
+
error: void 0
|
3947
|
+
});
|
3948
|
+
return t.subscribe((s) => {
|
3949
|
+
r(s);
|
3950
|
+
}), t.run(O(e)), T([...R(e)], () => {
|
3951
|
+
t.run(O(e));
|
3952
|
+
}), De(() => {
|
3899
3953
|
t.destroy();
|
3900
|
-
}),
|
3901
|
-
},
|
3902
|
-
|
3954
|
+
}), A(n.value);
|
3955
|
+
}, Go = (e) => {
|
3956
|
+
M("useGetFilterMembers");
|
3957
|
+
const { filter: t, parentFilters: n = [] } = O(e), r = {
|
3958
|
+
selectedMembers: [],
|
3959
|
+
allMembers: [],
|
3960
|
+
...Wa(t) ? {
|
3961
|
+
excludeMembers: t.config.excludeMembers,
|
3962
|
+
enableMultiSelection: t.config.enableMultiSelection,
|
3963
|
+
hasBackgroundFilter: !!t.config.backgroundFilter && n.length === 0
|
3964
|
+
} : {
|
3965
|
+
excludeMembers: !1,
|
3966
|
+
enableMultiSelection: !1,
|
3967
|
+
hasBackgroundFilter: !1
|
3968
|
+
}
|
3969
|
+
}, s = new Pe(Jn, [Ae()]), [i, a] = Fe({
|
3970
|
+
isLoading: !0,
|
3971
|
+
isError: !1,
|
3972
|
+
isSuccess: !1,
|
3973
|
+
status: "loading",
|
3974
|
+
error: void 0,
|
3975
|
+
data: r
|
3976
|
+
});
|
3977
|
+
return s.subscribe((o) => {
|
3978
|
+
a(o);
|
3979
|
+
}), s.run(O(e)), T([...R(e)], () => {
|
3980
|
+
s.run(O(e));
|
3981
|
+
}), De(() => {
|
3982
|
+
s.destroy();
|
3983
|
+
}), A(i.value);
|
3984
|
+
}, zo = (e) => {
|
3985
|
+
M("useGetDashboardModel");
|
3903
3986
|
const [t, n] = q(X, {
|
3904
3987
|
isLoading: !0,
|
3905
3988
|
isError: !1,
|
@@ -3910,27 +3993,27 @@ const $o = (e) => {
|
|
3910
3993
|
}), r = V(), s = async (a) => {
|
3911
3994
|
try {
|
3912
3995
|
n({ type: "loading" });
|
3913
|
-
const { dashboardOid: o, includeWidgets: u, includeFilters: c } =
|
3996
|
+
const { dashboardOid: o, includeWidgets: u, includeFilters: c } = O(e), d = await Yn(a.httpClient, o, {
|
3914
3997
|
includeWidgets: u,
|
3915
3998
|
includeFilters: c
|
3916
3999
|
});
|
3917
|
-
n({ type: "success", data:
|
4000
|
+
n({ type: "success", data: d });
|
3918
4001
|
} catch (o) {
|
3919
4002
|
n({ type: "error", error: o });
|
3920
4003
|
}
|
3921
4004
|
};
|
3922
|
-
|
3923
|
-
[...
|
4005
|
+
T(
|
4006
|
+
[...R(e), r],
|
3924
4007
|
() => {
|
3925
|
-
const { app: a } = r.value, { enabled: o } =
|
4008
|
+
const { app: a } = r.value, { enabled: o } = O(e);
|
3926
4009
|
!a || !(o === void 0 || o === !0) || s(a);
|
3927
4010
|
},
|
3928
4011
|
{ immediate: !0 }
|
3929
4012
|
);
|
3930
|
-
const i =
|
3931
|
-
return
|
3932
|
-
},
|
3933
|
-
|
4013
|
+
const i = A(t.value);
|
4014
|
+
return A(Qn(i));
|
4015
|
+
}, Jo = (e) => {
|
4016
|
+
M("useGetDashboardModels");
|
3934
4017
|
const [t, n] = q(X, {
|
3935
4018
|
isLoading: !0,
|
3936
4019
|
isError: !1,
|
@@ -3941,24 +4024,24 @@ const $o = (e) => {
|
|
3941
4024
|
}), r = V(), s = async (a) => {
|
3942
4025
|
try {
|
3943
4026
|
n({ type: "loading" });
|
3944
|
-
const o =
|
4027
|
+
const o = O(e), u = await Xn(a.httpClient, o);
|
3945
4028
|
n({ type: "success", data: u });
|
3946
4029
|
} catch (o) {
|
3947
4030
|
n({ type: "error", error: o });
|
3948
4031
|
}
|
3949
4032
|
};
|
3950
|
-
|
3951
|
-
[...
|
4033
|
+
T(
|
4034
|
+
[...R(e), r],
|
3952
4035
|
() => {
|
3953
|
-
const { app: a } = r.value, { enabled: o } =
|
4036
|
+
const { app: a } = r.value, { enabled: o } = O(e);
|
3954
4037
|
!a || !(o === void 0 || o === !0) || s(a);
|
3955
4038
|
},
|
3956
4039
|
{ immediate: !0 }
|
3957
4040
|
);
|
3958
|
-
const i =
|
3959
|
-
return
|
3960
|
-
},
|
3961
|
-
|
4041
|
+
const i = A(t.value);
|
4042
|
+
return A(Zn(i));
|
4043
|
+
}, Qo = (e) => {
|
4044
|
+
M("useGetSharedFormula");
|
3962
4045
|
const [t, n] = q(X, {
|
3963
4046
|
isLoading: !0,
|
3964
4047
|
isError: !1,
|
@@ -3968,28 +4051,28 @@ const $o = (e) => {
|
|
3968
4051
|
data: void 0
|
3969
4052
|
}), r = V(), s = (a) => {
|
3970
4053
|
n({ type: "loading" });
|
3971
|
-
const { dataSource: o, name: u, oid: c } =
|
3972
|
-
let
|
3973
|
-
c ?
|
3974
|
-
n({ type: "success", data:
|
3975
|
-
}).catch((
|
3976
|
-
n({ type: "error", error:
|
4054
|
+
const { dataSource: o, name: u, oid: c } = O(e);
|
4055
|
+
let d = Promise.resolve(null);
|
4056
|
+
c ? d = tr(c, a) : u && o && (d = nr(u, o, a)), d.then((f) => {
|
4057
|
+
n({ type: "success", data: f });
|
4058
|
+
}).catch((f) => {
|
4059
|
+
n({ type: "error", error: f });
|
3977
4060
|
});
|
3978
4061
|
};
|
3979
|
-
|
3980
|
-
[...
|
4062
|
+
T(
|
4063
|
+
[...R(e), r],
|
3981
4064
|
() => {
|
3982
|
-
const { app: a } = r.value, { enabled: o } =
|
4065
|
+
const { app: a } = r.value, { enabled: o } = O(e);
|
3983
4066
|
!a || !(o === void 0 || o === !0) || s(a);
|
3984
4067
|
},
|
3985
4068
|
{ immediate: !0 }
|
3986
4069
|
);
|
3987
|
-
const i =
|
3988
|
-
return
|
3989
|
-
|
4070
|
+
const i = A(t.value);
|
4071
|
+
return A(
|
4072
|
+
er(i)
|
3990
4073
|
);
|
3991
|
-
},
|
3992
|
-
|
4074
|
+
}, Yo = (e) => {
|
4075
|
+
M("useGetWidgetModel");
|
3993
4076
|
const [t, n] = q(X, {
|
3994
4077
|
isLoading: !0,
|
3995
4078
|
isError: !1,
|
@@ -4000,22 +4083,22 @@ const $o = (e) => {
|
|
4000
4083
|
}), r = V(), s = async (i) => {
|
4001
4084
|
try {
|
4002
4085
|
n({ type: "loading" });
|
4003
|
-
const { dashboardOid: a, widgetOid: o } =
|
4086
|
+
const { dashboardOid: a, widgetOid: o } = O(e), u = await rr(i.httpClient, a, o);
|
4004
4087
|
n({ type: "success", data: u });
|
4005
4088
|
} catch (a) {
|
4006
4089
|
n({ type: "error", error: a });
|
4007
4090
|
}
|
4008
4091
|
};
|
4009
|
-
return
|
4010
|
-
[...
|
4092
|
+
return T(
|
4093
|
+
[...R(e), r],
|
4011
4094
|
() => {
|
4012
|
-
const { app: i } = r.value, { enabled: a } =
|
4095
|
+
const { app: i } = r.value, { enabled: a } = O(e);
|
4013
4096
|
!i || !(a === void 0 || a === !0) || s(i);
|
4014
4097
|
},
|
4015
4098
|
{ immediate: !0 }
|
4016
|
-
),
|
4017
|
-
},
|
4018
|
-
|
4099
|
+
), A(t.value);
|
4100
|
+
}, Zo = (e) => {
|
4101
|
+
M("useGetHierarchyModels");
|
4019
4102
|
const [t, n] = q(X, {
|
4020
4103
|
isLoading: !0,
|
4021
4104
|
isError: !1,
|
@@ -4026,21 +4109,21 @@ const $o = (e) => {
|
|
4026
4109
|
}), r = V(), s = async (i) => {
|
4027
4110
|
try {
|
4028
4111
|
n({ type: "loading" });
|
4029
|
-
const a = await
|
4112
|
+
const a = await sr(i.httpClient, O(e));
|
4030
4113
|
n({ type: "success", data: a });
|
4031
4114
|
} catch (a) {
|
4032
4115
|
n({ type: "error", error: a });
|
4033
4116
|
}
|
4034
4117
|
};
|
4035
|
-
return
|
4036
|
-
[...
|
4118
|
+
return T(
|
4119
|
+
[...R(e), r],
|
4037
4120
|
() => {
|
4038
|
-
const { app: i } = r.value, { enabled: a } =
|
4121
|
+
const { app: i } = r.value, { enabled: a } = O(e);
|
4039
4122
|
!i || !(a === void 0 || a === !0) || s(i);
|
4040
4123
|
},
|
4041
4124
|
{ immediate: !0 }
|
4042
|
-
),
|
4043
|
-
},
|
4125
|
+
), A(t.value);
|
4126
|
+
}, Xo = (e, t, n) => {
|
4044
4127
|
const [r, s] = q(X, {
|
4045
4128
|
isLoading: !0,
|
4046
4129
|
isError: !1,
|
@@ -4051,46 +4134,89 @@ const $o = (e) => {
|
|
4051
4134
|
}), i = V(), a = async (o) => {
|
4052
4135
|
try {
|
4053
4136
|
s({ type: "loading" });
|
4054
|
-
const u =
|
4055
|
-
requestConfig:
|
4137
|
+
const u = Ye(e), c = t ? O(t) : {}, d = n ? O(n) : {}, f = {
|
4138
|
+
requestConfig: d.requestConfig ? O(d.requestConfig) : {},
|
4056
4139
|
skipTrackingParam: !0
|
4057
4140
|
}, l = await o.call(
|
4058
4141
|
o.url + u,
|
4059
4142
|
c,
|
4060
|
-
|
4143
|
+
f
|
4061
4144
|
);
|
4062
4145
|
s({ type: "success", data: l });
|
4063
4146
|
} catch (u) {
|
4064
4147
|
s({ type: "error", error: u });
|
4065
4148
|
}
|
4066
4149
|
};
|
4067
|
-
return
|
4068
|
-
[...
|
4150
|
+
return T(
|
4151
|
+
[...R(e, t, n), i],
|
4069
4152
|
() => {
|
4070
|
-
const { app: o } = i.value, u =
|
4153
|
+
const { app: o } = i.value, u = O(n || {}).enabled;
|
4071
4154
|
!o || !(u === void 0 || u === !0) || a(o.httpClient);
|
4072
4155
|
},
|
4073
4156
|
{ immediate: !0 }
|
4074
|
-
),
|
4075
|
-
}
|
4076
|
-
|
4077
|
-
const n =
|
4078
|
-
|
4079
|
-
|
4157
|
+
), A(r.value);
|
4158
|
+
};
|
4159
|
+
function za(e, t) {
|
4160
|
+
const n = document.createElement("div");
|
4161
|
+
n.style.width = "100%", n.style.height = "100%";
|
4162
|
+
const r = dn(e, t);
|
4163
|
+
return r.mount(n), {
|
4164
|
+
element: n,
|
4165
|
+
app: r,
|
4166
|
+
destroy: () => {
|
4167
|
+
n.remove(), r.unmount();
|
4168
|
+
}
|
4169
|
+
};
|
4170
|
+
}
|
4171
|
+
const eu = () => {
|
4172
|
+
const e = ir();
|
4173
|
+
return {
|
4174
|
+
/**
|
4175
|
+
* Registers a new custom widget.
|
4176
|
+
*
|
4177
|
+
* @param customWidgetType - The unique identifier for the custom widget type.
|
4178
|
+
* @param customWidget - The custom widget component to register.
|
4179
|
+
*/
|
4180
|
+
registerCustomWidget: (t, n) => {
|
4181
|
+
const r = (s) => {
|
4182
|
+
const i = za(n, s);
|
4183
|
+
return ar(
|
4184
|
+
i.element,
|
4185
|
+
() => i.destroy()
|
4186
|
+
);
|
4187
|
+
};
|
4188
|
+
e.value.customWidgetsMap.has(t) || e.value.customWidgetsMap.set(
|
4189
|
+
t,
|
4190
|
+
r
|
4191
|
+
);
|
4192
|
+
},
|
4193
|
+
/**
|
4194
|
+
* Checks if a custom widget is registered.
|
4195
|
+
*
|
4196
|
+
* @param customWidgetType - The type of the custom widget.
|
4197
|
+
* @returns True if the custom widget is registered, false otherwise.
|
4198
|
+
*/
|
4199
|
+
hasCustomWidget: (t) => e.value.customWidgetsMap.has(t)
|
4200
|
+
};
|
4201
|
+
}, tu = (e, t = {}) => {
|
4202
|
+
M("useComposedDashboard");
|
4203
|
+
const n = new Pe(or, [
|
4204
|
+
Ae()
|
4205
|
+
]), [r, s] = Fe(O(e));
|
4080
4206
|
n.subscribe(({ dashboard: o }) => {
|
4081
4207
|
s(o);
|
4082
|
-
}), n.run(
|
4083
|
-
n.run(
|
4084
|
-
}),
|
4208
|
+
}), n.run(O(e), t), T([...R(e)], () => {
|
4209
|
+
n.run(O(e), t);
|
4210
|
+
}), De(() => {
|
4085
4211
|
n.destroy();
|
4086
4212
|
});
|
4087
|
-
const i =
|
4213
|
+
const i = ut(n, "setFilters"), a = ut(n, "setWidgetsLayout");
|
4088
4214
|
return {
|
4089
4215
|
dashboard: r,
|
4090
4216
|
setFilters: i,
|
4091
4217
|
setWidgetsLayout: a
|
4092
4218
|
};
|
4093
|
-
},
|
4219
|
+
}, Ja = y({
|
4094
4220
|
props: {
|
4095
4221
|
/**
|
4096
4222
|
* {@inheritDoc @sisense/sdk-ui!ContextMenuProps.closeContextMenu}
|
@@ -4108,8 +4234,8 @@ const $o = (e) => {
|
|
4108
4234
|
*/
|
4109
4235
|
position: Object
|
4110
4236
|
},
|
4111
|
-
setup: (e, { slots: t }) =>
|
4112
|
-
}),
|
4237
|
+
setup: (e, { slots: t }) => _t(ur, e, t, [])
|
4238
|
+
}), Qa = ({
|
4113
4239
|
drilldownPaths: e,
|
4114
4240
|
initialDimension: t
|
4115
4241
|
}) => {
|
@@ -4117,42 +4243,42 @@ const $o = (e) => {
|
|
4117
4243
|
throw new Error(
|
4118
4244
|
"Initial dimension has to be specified to use drilldown with custom components"
|
4119
4245
|
);
|
4120
|
-
const n = B([]), r = B(), s = B([]), i = B([]), a =
|
4121
|
-
|
4246
|
+
const n = B([]), r = B(), s = B([]), i = B([]), a = We(() => [
|
4247
|
+
lr(t),
|
4122
4248
|
...n.value.map(({ nextDimension: l }) => l)
|
4123
|
-
]), o =
|
4249
|
+
]), o = We(
|
4124
4250
|
() => e.value.filter((l) => {
|
4125
4251
|
if (b.isAttribute(l)) {
|
4126
4252
|
const m = l;
|
4127
4253
|
return a.value.every(
|
4128
|
-
(h) => !
|
4254
|
+
(h) => !lt(h, m)
|
4129
4255
|
);
|
4130
4256
|
}
|
4131
4257
|
const p = l;
|
4132
4258
|
return a.value.every(
|
4133
|
-
(m, h) =>
|
4259
|
+
(m, h) => lt(m, p.levels[h])
|
4134
4260
|
);
|
4135
4261
|
})
|
4136
4262
|
), u = (l, g, p) => {
|
4137
|
-
n.value =
|
4263
|
+
n.value = cr(
|
4138
4264
|
n.value,
|
4139
4265
|
l,
|
4140
4266
|
g,
|
4141
4267
|
p
|
4142
|
-
),
|
4268
|
+
), f();
|
4143
4269
|
}, c = (l) => {
|
4144
|
-
n.value = n.value.slice(0, l),
|
4145
|
-
}, f = () => {
|
4146
|
-
n.value = [], d();
|
4270
|
+
n.value = n.value.slice(0, l), f();
|
4147
4271
|
}, d = () => {
|
4148
|
-
|
4272
|
+
n.value = [], f();
|
4273
|
+
}, f = () => {
|
4274
|
+
const l = (p) => p === "drilldown.breadcrumbsAllSuffix" ? "All" : p, g = dr(
|
4149
4275
|
n.value,
|
4150
4276
|
t,
|
4151
4277
|
l
|
4152
4278
|
);
|
4153
4279
|
r.value = g.drilldownDimension, s.value = g.drilldownFilters, i.value = g.drilldownFiltersDisplayValues;
|
4154
4280
|
};
|
4155
|
-
return
|
4281
|
+
return f(), {
|
4156
4282
|
drilldownSelections: n,
|
4157
4283
|
availableDrilldownPaths: o,
|
4158
4284
|
drilldownDimension: r,
|
@@ -4160,9 +4286,9 @@ const $o = (e) => {
|
|
4160
4286
|
drilldownFiltersDisplayValues: i,
|
4161
4287
|
selectDrilldown: u,
|
4162
4288
|
sliceDrilldownSelections: c,
|
4163
|
-
clearDrilldownSelections:
|
4289
|
+
clearDrilldownSelections: d
|
4164
4290
|
};
|
4165
|
-
},
|
4291
|
+
}, Ya = y({
|
4166
4292
|
props: {
|
4167
4293
|
/**
|
4168
4294
|
* {@inheritDoc @sisense/sdk-ui!DrilldownWidgetProps.config}
|
@@ -4198,33 +4324,33 @@ const $o = (e) => {
|
|
4198
4324
|
},
|
4199
4325
|
setup: () => {
|
4200
4326
|
}
|
4201
|
-
}),
|
4327
|
+
}), Za = { style: { display: "flex", "flex-direction": "column", height: "100%" } }, Xa = { style: { "flex-grow": "1", "min-wdith": "0", "min-height": "0" } }, nu = /* @__PURE__ */ y({
|
4202
4328
|
__name: "drilldown-widget",
|
4203
|
-
props:
|
4329
|
+
props: Ya.props,
|
4204
4330
|
setup(e) {
|
4205
|
-
const t = e, { drilldownPaths: n, initialDimension: r, config: s } =
|
4331
|
+
const t = e, { drilldownPaths: n, initialDimension: r, config: s } = A(t), i = B(null), a = B([]), {
|
4206
4332
|
drilldownFilters: o,
|
4207
4333
|
// computed
|
4208
4334
|
drilldownDimension: u,
|
4209
4335
|
// computed
|
4210
4336
|
drilldownFiltersDisplayValues: c,
|
4211
4337
|
// computed
|
4212
|
-
availableDrilldownPaths:
|
4338
|
+
availableDrilldownPaths: d,
|
4213
4339
|
// computed
|
4214
|
-
selectDrilldown:
|
4340
|
+
selectDrilldown: f,
|
4215
4341
|
sliceDrilldownSelections: l,
|
4216
4342
|
clearDrilldownSelections: g
|
4217
|
-
} =
|
4343
|
+
} = Qa({
|
4218
4344
|
drilldownPaths: n,
|
4219
4345
|
initialDimension: r.value
|
4220
4346
|
}), p = (D) => {
|
4221
|
-
|
4222
|
-
}, m =
|
4223
|
-
const D = (
|
4347
|
+
f(a.value, D);
|
4348
|
+
}, m = We(() => {
|
4349
|
+
const D = (C) => C === "drilldown.drillMenuItem" ? "Drill" : C;
|
4224
4350
|
return [
|
4225
|
-
|
4226
|
-
|
4227
|
-
|
4351
|
+
fr(a.value, u.value),
|
4352
|
+
pr(
|
4353
|
+
d.value,
|
4228
4354
|
u.value,
|
4229
4355
|
p,
|
4230
4356
|
D
|
@@ -4232,22 +4358,22 @@ const $o = (e) => {
|
|
4232
4358
|
];
|
4233
4359
|
}), h = (D) => {
|
4234
4360
|
i.value = D;
|
4235
|
-
},
|
4361
|
+
}, x = (D) => {
|
4236
4362
|
a.value = D;
|
4237
4363
|
}, w = () => {
|
4238
4364
|
i.value = null;
|
4239
4365
|
};
|
4240
|
-
return (D,
|
4241
|
-
|
4366
|
+
return (D, C) => (fn(), pn("div", Za, [
|
4367
|
+
Re(D.$slots, "contextMenu", {
|
4242
4368
|
contextMenuProps: { position: i.value, itemSections: m.value, closeContextMenu: w }
|
4243
4369
|
}, () => [
|
4244
|
-
|
4370
|
+
at(E(Ja), {
|
4245
4371
|
position: i.value,
|
4246
4372
|
itemSections: m.value,
|
4247
4373
|
closeContextMenu: w
|
4248
4374
|
}, null, 8, ["position", "itemSections"])
|
4249
4375
|
]),
|
4250
|
-
|
4376
|
+
Re(D.$slots, "breadcrumbs", {
|
4251
4377
|
drilldownBreadcrumbsProps: {
|
4252
4378
|
clearDrilldownSelections: E(g),
|
4253
4379
|
sliceDrilldownSelections: E(l),
|
@@ -4255,24 +4381,24 @@ const $o = (e) => {
|
|
4255
4381
|
drilldownDimension: E(u)
|
4256
4382
|
}
|
4257
4383
|
}, () => [
|
4258
|
-
|
4384
|
+
at(E(vr), {
|
4259
4385
|
"clear-drilldown-selections": E(g),
|
4260
4386
|
"slice-drilldown-selections": E(l),
|
4261
4387
|
"filters-display-values": E(c),
|
4262
4388
|
"current-dimension": E(u)
|
4263
4389
|
}, null, 8, ["clear-drilldown-selections", "slice-drilldown-selections", "filters-display-values", "current-dimension"])
|
4264
4390
|
]),
|
4265
|
-
|
4266
|
-
|
4391
|
+
gn("div", Xa, [
|
4392
|
+
Re(D.$slots, "chart", {
|
4267
4393
|
drilldownFilters: E(o),
|
4268
4394
|
drilldownDimension: E(u),
|
4269
|
-
onDataPointsSelected:
|
4395
|
+
onDataPointsSelected: x,
|
4270
4396
|
onContextMenu: h
|
4271
4397
|
})
|
4272
4398
|
])
|
4273
4399
|
]));
|
4274
4400
|
}
|
4275
|
-
}),
|
4401
|
+
}), ru = y({
|
4276
4402
|
props: {
|
4277
4403
|
/**
|
4278
4404
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.bottomSlot}
|
@@ -4407,8 +4533,8 @@ const $o = (e) => {
|
|
4407
4533
|
*/
|
4408
4534
|
onDataReady: Function
|
4409
4535
|
},
|
4410
|
-
setup: (e) => S(
|
4411
|
-
}),
|
4536
|
+
setup: (e) => S(gr, e)
|
4537
|
+
}), su = y({
|
4412
4538
|
props: {
|
4413
4539
|
/** @internal */
|
4414
4540
|
bottomSlot: Object,
|
@@ -4519,8 +4645,8 @@ const $o = (e) => {
|
|
4519
4645
|
*/
|
4520
4646
|
onDataReady: Function
|
4521
4647
|
},
|
4522
|
-
setup: (e) => S(
|
4523
|
-
}),
|
4648
|
+
setup: (e) => S(hr, e)
|
4649
|
+
}), iu = y({
|
4524
4650
|
props: {
|
4525
4651
|
bottomSlot: Object,
|
4526
4652
|
dataOptions: {
|
@@ -4535,8 +4661,8 @@ const $o = (e) => {
|
|
4535
4661
|
topSlot: Object,
|
4536
4662
|
widgetStyleOptions: Object
|
4537
4663
|
},
|
4538
|
-
setup: (e) => S(
|
4539
|
-
}),
|
4664
|
+
setup: (e) => S(mr, e)
|
4665
|
+
}), au = y({
|
4540
4666
|
props: {
|
4541
4667
|
/**
|
4542
4668
|
* Unique identifier of the widget
|
@@ -4563,11 +4689,11 @@ const $o = (e) => {
|
|
4563
4689
|
*/
|
4564
4690
|
chartType: String,
|
4565
4691
|
/**
|
4566
|
-
* {@inheritDoc @sisense/sdk-ui!
|
4692
|
+
* {@inheritDoc @sisense/sdk-ui!CustomWidgetProps.customWidgetType}
|
4567
4693
|
*
|
4568
4694
|
* @category Widget
|
4569
4695
|
*/
|
4570
|
-
|
4696
|
+
customWidgetType: String,
|
4571
4697
|
/**
|
4572
4698
|
* {@inheritDoc @sisense/sdk-ui!ChartWidgetProps.dataSource}
|
4573
4699
|
*
|
@@ -4661,8 +4787,8 @@ const $o = (e) => {
|
|
4661
4787
|
*/
|
4662
4788
|
onDataPointsSelected: Function
|
4663
4789
|
},
|
4664
|
-
setup: (e) => S(
|
4665
|
-
}),
|
4790
|
+
setup: (e) => S(yr, e)
|
4791
|
+
}), ou = y({
|
4666
4792
|
props: {
|
4667
4793
|
/**
|
4668
4794
|
* {@inheritDoc @sisense/sdk-ui!DashboardByIdProps.dashboardOid}
|
@@ -4676,8 +4802,8 @@ const $o = (e) => {
|
|
4676
4802
|
*/
|
4677
4803
|
config: Object
|
4678
4804
|
},
|
4679
|
-
setup: (e) => S(
|
4680
|
-
}),
|
4805
|
+
setup: (e) => S(br, e)
|
4806
|
+
}), uu = y({
|
4681
4807
|
props: {
|
4682
4808
|
/**
|
4683
4809
|
* {@inheritDoc @sisense/sdk-ui!DashboardProps.title}
|
@@ -4721,105 +4847,109 @@ const $o = (e) => {
|
|
4721
4847
|
*/
|
4722
4848
|
tabbersOptions: Object
|
4723
4849
|
},
|
4724
|
-
setup: (e) => S(
|
4850
|
+
setup: (e) => S(Sr, e)
|
4725
4851
|
});
|
4726
|
-
function
|
4727
|
-
return
|
4852
|
+
function eo(e) {
|
4853
|
+
return Or.toDashboardProps(e);
|
4728
4854
|
}
|
4729
|
-
const
|
4855
|
+
const lu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4730
4856
|
__proto__: null,
|
4731
|
-
toDashboardProps:
|
4732
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
4857
|
+
toDashboardProps: eo
|
4858
|
+
}, Symbol.toStringTag, { value: "Module" })), to = (e, t) => ee.replaceFilters(e, t), no = (e, t) => ee.addFilter(e, t), ro = (e, t) => ee.addFilters(e, t), so = (e, t, n) => ee.replaceFilter(
|
4733
4859
|
e,
|
4734
4860
|
t,
|
4735
4861
|
n
|
4736
|
-
),
|
4862
|
+
), io = (e, t) => ee.removeFilter(e, t), ao = (e, t) => ee.removeFilters(e, t), cu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4737
4863
|
__proto__: null,
|
4738
|
-
addFilter:
|
4739
|
-
addFilters:
|
4740
|
-
removeFilter:
|
4741
|
-
removeFilters:
|
4742
|
-
replaceFilter:
|
4743
|
-
replaceFilters:
|
4744
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
4745
|
-
function
|
4746
|
-
return
|
4864
|
+
addFilter: no,
|
4865
|
+
addFilters: ro,
|
4866
|
+
removeFilter: io,
|
4867
|
+
removeFilters: ao,
|
4868
|
+
replaceFilter: so,
|
4869
|
+
replaceFilters: to
|
4870
|
+
}, Symbol.toStringTag, { value: "Module" })), oo = (e) => W.toExecuteQueryParams(e), uo = (e) => W.toExecutePivotQueryParams(e);
|
4871
|
+
function lo(e) {
|
4872
|
+
return W.toChartProps(e);
|
4747
4873
|
}
|
4748
|
-
function
|
4749
|
-
return
|
4874
|
+
function co(e) {
|
4875
|
+
return W.toTableProps(e);
|
4750
4876
|
}
|
4751
|
-
function
|
4752
|
-
return
|
4877
|
+
function fo(e) {
|
4878
|
+
return W.toPivotTableProps(e);
|
4753
4879
|
}
|
4754
|
-
function
|
4755
|
-
return
|
4880
|
+
function po(e) {
|
4881
|
+
return W.toChartWidgetProps(e);
|
4756
4882
|
}
|
4757
|
-
function
|
4758
|
-
return
|
4883
|
+
function go(e) {
|
4884
|
+
return W.toPivotTableWidgetProps(e);
|
4759
4885
|
}
|
4760
|
-
function
|
4761
|
-
return
|
4886
|
+
function ho(e) {
|
4887
|
+
return W.toTextWidgetProps(e);
|
4762
4888
|
}
|
4763
|
-
const
|
4889
|
+
const du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
4764
4890
|
__proto__: null,
|
4765
|
-
toChartProps:
|
4766
|
-
toChartWidgetProps:
|
4767
|
-
toExecutePivotQueryParams:
|
4768
|
-
toExecuteQueryParams:
|
4769
|
-
toPivotTableProps:
|
4770
|
-
toPivotTableWidgetProps:
|
4771
|
-
toTableProps:
|
4772
|
-
toTextWidgetProps:
|
4891
|
+
toChartProps: lo,
|
4892
|
+
toChartWidgetProps: po,
|
4893
|
+
toExecutePivotQueryParams: uo,
|
4894
|
+
toExecuteQueryParams: oo,
|
4895
|
+
toPivotTableProps: fo,
|
4896
|
+
toPivotTableWidgetProps: go,
|
4897
|
+
toTableProps: co,
|
4898
|
+
toTextWidgetProps: ho
|
4773
4899
|
}, Symbol.toStringTag, { value: "Module" }));
|
4774
4900
|
export {
|
4775
|
-
|
4776
|
-
|
4777
|
-
|
4778
|
-
|
4779
|
-
|
4780
|
-
|
4781
|
-
|
4782
|
-
|
4783
|
-
|
4784
|
-
|
4785
|
-
|
4786
|
-
|
4787
|
-
|
4788
|
-
|
4789
|
-
|
4790
|
-
|
4791
|
-
|
4792
|
-
|
4793
|
-
|
4794
|
-
Eo as
|
4795
|
-
|
4796
|
-
|
4797
|
-
|
4798
|
-
|
4799
|
-
|
4800
|
-
|
4801
|
-
|
4802
|
-
|
4803
|
-
|
4804
|
-
|
4805
|
-
|
4806
|
-
|
4807
|
-
|
4808
|
-
|
4809
|
-
|
4810
|
-
|
4811
|
-
|
4812
|
-
|
4813
|
-
|
4814
|
-
|
4815
|
-
|
4816
|
-
|
4817
|
-
|
4818
|
-
|
4819
|
-
|
4820
|
-
|
4821
|
-
|
4822
|
-
|
4823
|
-
|
4824
|
-
|
4901
|
+
So as AreaChart,
|
4902
|
+
$o as AreaRangeChart,
|
4903
|
+
Ro as AreamapChart,
|
4904
|
+
Oo as BarChart,
|
4905
|
+
To as BoxplotChart,
|
4906
|
+
No as Chart,
|
4907
|
+
ru as ChartWidget,
|
4908
|
+
vo as ColumnChart,
|
4909
|
+
Ja as ContextMenu,
|
4910
|
+
ko as CriteriaFilterTile,
|
4911
|
+
gu as CustomWidgetsProvider,
|
4912
|
+
uu as Dashboard,
|
4913
|
+
ou as DashboardById,
|
4914
|
+
Io as DateRangeFilterTile,
|
4915
|
+
vr as DrilldownBreadcrumbs,
|
4916
|
+
nu as DrilldownWidget,
|
4917
|
+
Uo as FilterTile,
|
4918
|
+
qo as FiltersPanel,
|
4919
|
+
xo as FunnelChart,
|
4920
|
+
Eo as IndicatorChart,
|
4921
|
+
Co as LineChart,
|
4922
|
+
_o as MemberFilterTile,
|
4923
|
+
wo as PieChart,
|
4924
|
+
Po as PivotTable,
|
4925
|
+
Lo as PolarChart,
|
4926
|
+
Bo as RelativeDateFilterTile,
|
4927
|
+
Do as ScatterChart,
|
4928
|
+
Mo as ScattermapChart,
|
4929
|
+
hu as SisenseContextProvider,
|
4930
|
+
Fo as SunburstChart,
|
4931
|
+
jo as Table,
|
4932
|
+
iu as TableWidget,
|
4933
|
+
mu as ThemeProvider,
|
4934
|
+
Ao as TreemapChart,
|
4935
|
+
au as Widget,
|
4936
|
+
su as WidgetById,
|
4937
|
+
yu as boxWhiskerProcessResult,
|
4938
|
+
cu as dashboardHelpers,
|
4939
|
+
lu as dashboardModelTranslator,
|
4940
|
+
bu as extractDimensionsAndMeasures,
|
4941
|
+
tu as useComposedDashboard,
|
4942
|
+
eu as useCustomWidgets,
|
4943
|
+
Ko as useExecuteCsvQuery,
|
4944
|
+
Ho as useExecuteCustomWidgetQuery,
|
4945
|
+
Vo as useExecuteQuery,
|
4946
|
+
Wo as useExecuteQueryByWidgetId,
|
4947
|
+
Xo as useFetch,
|
4948
|
+
zo as useGetDashboardModel,
|
4949
|
+
Jo as useGetDashboardModels,
|
4950
|
+
Go as useGetFilterMembers,
|
4951
|
+
Zo as useGetHierarchyModels,
|
4952
|
+
Qo as useGetSharedFormula,
|
4953
|
+
Yo as useGetWidgetModel,
|
4954
|
+
du as widgetModelTranslator
|
4825
4955
|
};
|