@feedmepos/mf-report 5.25.8-beta.0 → 5.25.9-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-Bf0aor2N.js → App-CvfAIGi0.js} +4 -4
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-Pi8dxsZB.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CikMjcf8.js} +1 -1
- package/dist/{Default.vue_vue_type_script_setup_true_lang-D3_780WC.js → Default.vue_vue_type_script_setup_true_lang-CMFuwutX.js} +1 -1
- package/dist/{DynamicWidget.vue_vue_type_script_setup_true_lang-DVUsMsQ_.js → DynamicWidget.vue_vue_type_script_setup_true_lang-BKIOPoT9.js} +3 -3
- package/dist/{GlobalFilterSelect.vue_vue_type_script_setup_true_lang-DtqKlOMY.js → GlobalFilterSelect.vue_vue_type_script_setup_true_lang-RfsNkCBn.js} +865 -865
- package/dist/{InsightView-b87hirKo.js → InsightView-BmxZDQjU.js} +4 -4
- package/dist/{Integration-1xVvqpR9.js → Integration-Bq0MQnW4.js} +1629 -1606
- package/dist/{Integrations-DRyBjbzQ.js → Integrations-9Lk2WKsY.js} +2 -2
- package/dist/{Layout-BMzYemst.js → Layout-C5_ewFcc.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Da1Gn2bZ.js → MenuTab.vue_vue_type_script_setup_true_lang-DWnIs2Sd.js} +4 -4
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-B6eTZCAI.js → NavigationTab.vue_vue_type_script_setup_true_lang-DbJ5LLvg.js} +3 -3
- package/dist/{OverviewView-CkR-L3L_.js → OverviewView-CqGkqNVc.js} +4 -4
- package/dist/{Report-aWItqZEn.js → Report-B1EsTIrH.js} +3 -3
- package/dist/{ReportEditor-DENfrm0X.js → ReportEditor-8t8sc6bo.js} +3 -3
- package/dist/{ReportView-2lVjNU0x.js → ReportView-DzHwofIp.js} +6 -6
- package/dist/{Setting-yKwX201x.js → Setting-CNFz3NdB.js} +3 -3
- package/dist/{Template-CQqtVjZo.js → Template-DCDTM3sC.js} +3 -3
- package/dist/{TileEditor-Bq7g2E1s.js → TileEditor-POTmkH5n.js} +5 -5
- package/dist/{TransitionFade-DaOt5oN7.js → TransitionFade-DPgqo8Ow.js} +4 -4
- package/dist/{app-CMuJ9xn3.js → app-BnTCFG7r.js} +201 -185
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-dPvQepPN.js → useRestaurantPermission-D57NsBQF.js} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ref as R0, computed as d1, watch as N1, defineComponent as Mt, mergeModels as Te, useModel as tt, resolveComponent as G0, createElementBlock as u1, openBlock as Q0, createVNode as x0, withCtx as r1, createElementVNode as P0, createCommentVNode as me, Fragment as Q1, renderList as rt, createBlock as $1, createTextVNode as Ee, withDirectives as bn, toDisplayString as l1, unref as L0, vShow as _n, renderSlot as er, normalizeStyle as dn, normalizeClass as Nt, withModifiers as Qe } from "vue";
|
|
2
|
-
import { c as xt, h as tr, f as rr, _ as zn, i as On } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
3
|
-
import { o as An, h as Dn, u as J0, F as H0, m as Y0, p as fn, a as Z1, b as $n, l as yn, g as mn, d as U0, c as nr, r as bt } from "./app-
|
|
2
|
+
import { c as xt, h as tr, f as rr, _ as zn, i as On } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CikMjcf8.js";
|
|
3
|
+
import { o as An, h as Dn, u as J0, F as H0, m as Y0, p as fn, a as Z1, b as $n, l as yn, g as mn, d as U0, c as nr, r as bt } from "./app-BnTCFG7r.js";
|
|
4
4
|
import { storeToRefs as g0, defineStore as ce } from "pinia";
|
|
5
5
|
import { useSnackbar as ar } from "@feedmepos/ui-library";
|
|
6
6
|
import { u as or } from "./vue-i18n-DVWuTfed.js";
|
|
@@ -37,13 +37,13 @@ var sr = {};
|
|
|
37
37
|
function T() {
|
|
38
38
|
try {
|
|
39
39
|
throw new Error();
|
|
40
|
-
} catch (
|
|
41
|
-
var
|
|
40
|
+
} catch (G) {
|
|
41
|
+
var x = G.stack, J = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), w = null;
|
|
42
42
|
do {
|
|
43
|
-
var H = J.exec(
|
|
44
|
-
H != null && (
|
|
43
|
+
var H = J.exec(x);
|
|
44
|
+
H != null && (w = H);
|
|
45
45
|
} while (H != null);
|
|
46
|
-
return
|
|
46
|
+
return w[1];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
var C = null;
|
|
@@ -54,11 +54,11 @@ var sr = {};
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
}(), f.dartDeferredLibraryLoader = function(T, C,
|
|
57
|
+
}(), f.dartDeferredLibraryLoader = function(T, C, x) {
|
|
58
58
|
try {
|
|
59
59
|
load(T), C();
|
|
60
60
|
} catch (J) {
|
|
61
|
-
|
|
61
|
+
x(J);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -69,7 +69,7 @@ var sr = {};
|
|
|
69
69
|
e[o] = r[o];
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function x(r, e) {
|
|
73
73
|
for (var n = Object.keys(r), a = 0; a < n.length; a++) {
|
|
74
74
|
var o = n[a];
|
|
75
75
|
e.hasOwnProperty(o) || (e[o] = r[o]);
|
|
@@ -78,7 +78,7 @@ var sr = {};
|
|
|
78
78
|
function J(r, e) {
|
|
79
79
|
Object.assign(e, r);
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var w = function() {
|
|
82
82
|
var r = function() {
|
|
83
83
|
};
|
|
84
84
|
r.prototype = { p: {} };
|
|
@@ -99,7 +99,7 @@ var sr = {};
|
|
|
99
99
|
}();
|
|
100
100
|
function H(r, e) {
|
|
101
101
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
102
|
-
if (
|
|
102
|
+
if (w) {
|
|
103
103
|
r.prototype.__proto__ = e.prototype;
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -107,17 +107,17 @@ var sr = {};
|
|
|
107
107
|
C(r.prototype, n), r.prototype = n;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function G(r, e) {
|
|
111
111
|
for (var n = 0; n < e.length; n++)
|
|
112
112
|
H(e[n], r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function j(r, e) {
|
|
115
115
|
J(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
|
-
function
|
|
118
|
-
|
|
117
|
+
function K(r, e) {
|
|
118
|
+
x(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function V(r, e, n, a) {
|
|
121
121
|
var o = r;
|
|
122
122
|
r[e] = o, r[n] = function() {
|
|
123
123
|
r[n] = function() {
|
|
@@ -134,7 +134,7 @@ var sr = {};
|
|
|
134
134
|
return s;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function Q(r, e, n, a) {
|
|
138
138
|
var o = r;
|
|
139
139
|
r[e] = o, r[n] = function() {
|
|
140
140
|
return r[e] === o && (r[e] = a()), r[n] = function() {
|
|
@@ -142,7 +142,7 @@ var sr = {};
|
|
|
142
142
|
}, r[e];
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function n0(r, e, n, a) {
|
|
146
146
|
var o = r;
|
|
147
147
|
r[e] = o, r[n] = function() {
|
|
148
148
|
if (r[e] === o) {
|
|
@@ -158,7 +158,7 @@ var sr = {};
|
|
|
158
158
|
function a0(r) {
|
|
159
159
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function Y(r) {
|
|
162
162
|
return r;
|
|
163
163
|
}
|
|
164
164
|
function _0(r) {
|
|
@@ -173,26 +173,26 @@ var sr = {};
|
|
|
173
173
|
return n === null && (n = t.closureFromTearOff(e)), new n(this, null);
|
|
174
174
|
};
|
|
175
175
|
}
|
|
176
|
-
function
|
|
176
|
+
function c0(r) {
|
|
177
177
|
var e = null;
|
|
178
178
|
return function() {
|
|
179
179
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
var
|
|
183
|
-
function
|
|
184
|
-
return typeof l == "number" && (l +=
|
|
182
|
+
var e0 = 0;
|
|
183
|
+
function t0(r, e, n, a, o, s, u, l, M, d) {
|
|
184
|
+
return typeof l == "number" && (l += e0), { co: r, iS: e, iI: n, rC: a, dV: o, cs: s, fs: u, fT: l, aI: M || 0, nDA: d };
|
|
185
185
|
}
|
|
186
186
|
function s0(r, e, n, a, o, s, u, l) {
|
|
187
|
-
var M =
|
|
187
|
+
var M = t0(r, !0, !1, n, a, o, s, u, l, !1), d = c0(M);
|
|
188
188
|
r[e] = d;
|
|
189
189
|
}
|
|
190
190
|
function b0(r, e, n, a, o, s, u, l, M, d) {
|
|
191
191
|
n = !!n;
|
|
192
|
-
var _ =
|
|
192
|
+
var _ = t0(r, !1, n, a, o, s, u, l, M, !!d), z = M0(n, _);
|
|
193
193
|
r[e] = z;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function O0(r) {
|
|
196
196
|
var e = F.interceptorsByTag;
|
|
197
197
|
if (!e) {
|
|
198
198
|
F.interceptorsByTag = r;
|
|
@@ -200,7 +200,7 @@ var sr = {};
|
|
|
200
200
|
}
|
|
201
201
|
C(r, e);
|
|
202
202
|
}
|
|
203
|
-
function
|
|
203
|
+
function l0(r) {
|
|
204
204
|
var e = F.leafTags;
|
|
205
205
|
if (!e) {
|
|
206
206
|
F.leafTags = r;
|
|
@@ -212,7 +212,7 @@ var sr = {};
|
|
|
212
212
|
var e = F.types, n = e.length;
|
|
213
213
|
return e.push.apply(e, r), n;
|
|
214
214
|
}
|
|
215
|
-
function
|
|
215
|
+
function D0(r, e) {
|
|
216
216
|
return C(e, r), r;
|
|
217
217
|
}
|
|
218
218
|
var o0 = function() {
|
|
@@ -225,7 +225,7 @@ var sr = {};
|
|
|
225
225
|
return s0(u, l, n, a, o, [M], d, s);
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
return { inherit: H, inheritMany:
|
|
228
|
+
return { inherit: H, inheritMany: G, mixin: j, mixinHard: K, installStaticTearOff: s0, installInstanceTearOff: b0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: a0, lazy: Q, lazyFinal: n0, lazyOld: V, updateHolder: D0, convertToFastObject: Y, updateTypes: d0, setOrUpdateInterceptorsByTag: O0, setOrUpdateLeafTags: l0 };
|
|
229
229
|
}(), t = {
|
|
230
230
|
JS_CONST: function() {
|
|
231
231
|
},
|
|
@@ -2987,8 +2987,8 @@ select
|
|
|
2987
2987
|
return t.Schema$(r, e, n, a, o, v, u, l, M ?? 300, d, _, z, D, y, P, h, E, R, g, L, B, I, N);
|
|
2988
2988
|
},
|
|
2989
2989
|
Schema_fromJson(r) {
|
|
2990
|
-
var e, n, a, o, s, u, l, M, d, _, z, D, y, q, h, E, R, g = null, L = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), B = r.$index(0, "label"), I = t.EnumByName_byName(p.List_fLz, r.$index(0, "name")), N = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), v = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), P = r.$index(0, "source"), k = t.EnumByName_byName(p.List_ytA, P.$index(0, "type")), u0 = P.$index(0, "table"),
|
|
2991
|
-
return f0 = f0 == null ? g : i.cast$1$0$ax(f0, O.String), e = P.$index(0, "timeColumn"), P = X._as(P.$index(0, "dateColumns")), P = P == null ? g : i.cast$1$0$ax(P, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "dynamicRawTable"), o = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), u = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), M = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), _ = r.$index(0, "partition"), z = r.$index(0, "clusters"), z == null && (z = t._setArrayType([], O.JSArray_String)), D = r.$index(0, "indexes"), D = D == null ? g : i.map$1$ax(D, new t.Schema_fromJson_closure1()), D == null && (D = t._setArrayType([], O.JSArray_Index)), y = r.$index(0, "filters"), y = y == null ? g : i.map$1$ax(y, new t.Schema_fromJson_closure2()).toList$0(0), y == null && (y = t._setArrayType([], O.JSArray_QueryRequestFilter)), q = r.$index(0, "isGlobal"), q == null && (q = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), X = X._as(r.$index(0, "aiKeywords")), X = X == null ? g : i.cast$1$0$ax(X, O.String), X == null && (X = t._setArrayType([], O.JSArray_String)), E = r.$index(0, "aiCategory"), R = r.$index(0, "aiPriority"), R == null && (R = 3), t.Schema$(E, X, R, z, a, L, y, D, d, h, M, q, u, l, N, B, s, o, I, _, n, new t.Source(k, u0,
|
|
2990
|
+
var e, n, a, o, s, u, l, M, d, _, z, D, y, q, h, E, R, g = null, L = i.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), B = r.$index(0, "label"), I = t.EnumByName_byName(p.List_fLz, r.$index(0, "name")), N = i.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), v = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), P = r.$index(0, "source"), k = t.EnumByName_byName(p.List_ytA, P.$index(0, "type")), u0 = P.$index(0, "table"), A0 = P.$index(0, "field"), p0 = P.$index(0, "dataset"), X = O.nullable_List_dynamic, f0 = X._as(P.$index(0, "uniqueKey"));
|
|
2991
|
+
return f0 = f0 == null ? g : i.cast$1$0$ax(f0, O.String), e = P.$index(0, "timeColumn"), P = X._as(P.$index(0, "dateColumns")), P = P == null ? g : i.cast$1$0$ax(P, O.String), n = r.$index(0, "rawTableName"), a = r.$index(0, "dynamicRawTable"), o = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), u = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), M = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), _ = r.$index(0, "partition"), z = r.$index(0, "clusters"), z == null && (z = t._setArrayType([], O.JSArray_String)), D = r.$index(0, "indexes"), D = D == null ? g : i.map$1$ax(D, new t.Schema_fromJson_closure1()), D == null && (D = t._setArrayType([], O.JSArray_Index)), y = r.$index(0, "filters"), y = y == null ? g : i.map$1$ax(y, new t.Schema_fromJson_closure2()).toList$0(0), y == null && (y = t._setArrayType([], O.JSArray_QueryRequestFilter)), q = r.$index(0, "isGlobal"), q == null && (q = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), X = X._as(r.$index(0, "aiKeywords")), X = X == null ? g : i.cast$1$0$ax(X, O.String), X == null && (X = t._setArrayType([], O.JSArray_String)), E = r.$index(0, "aiCategory"), R = r.$index(0, "aiPriority"), R == null && (R = 3), t.Schema$(E, X, R, z, a, L, y, D, d, h, M, q, u, l, N, B, s, o, I, _, n, new t.Source(k, u0, A0, p0, f0, e, P), v);
|
|
2992
2992
|
},
|
|
2993
2993
|
Field_Field$numeric(r, e, n, a, o, s, u, l, M) {
|
|
2994
2994
|
return new t._NumericField(s, u, p.DATA_TYPE_3, e, o, l, n, M, a, !1, r);
|
|
@@ -9095,10 +9095,10 @@ Arguments: [` + M + "]";
|
|
|
9095
9095
|
$signature: 1
|
|
9096
9096
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9097
9097
|
call$1(r) {
|
|
9098
|
-
var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", l = "productId", M = "isRefund", d = "servedAt", _ = "isTakeaway", z = "quantity", D = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", R = "nettTotal", g = "layerNettTotal", L = "layerBillAdjustmentTotal", B = "layerItemAdjustmentTotal", I = "layerGrossTotal", N = "layerTakeawayPrice", v = "layerTaxTotal", P = "layerScTotal", k = "layerOtherChargeTotal", u0 = "customAttributes",
|
|
9098
|
+
var e = null, n = "itemCreatedAt", a = "billCompletedAt", o = "perXUnit", s = "takeawayId", u = "takeawayName", l = "productId", M = "isRefund", d = "servedAt", _ = "isTakeaway", z = "quantity", D = "unitQuantity", y = "billAdjustmentTotal", q = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", R = "nettTotal", g = "layerNettTotal", L = "layerBillAdjustmentTotal", B = "layerItemAdjustmentTotal", I = "layerGrossTotal", N = "layerTakeawayPrice", v = "layerTaxTotal", P = "layerScTotal", k = "layerOtherChargeTotal", u0 = "customAttributes", A0 = "layerZeroParentId", p0 = "collectedAt", X = "subCategories", f0 = "billAdjustmentInclusiveTaxTotal", y0 = "itemAdjustmentInclusiveTaxTotal", q0 = "layerBillAdjustmentInclusiveTaxTotal", W0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", E0 = "itemAdjustmentExclusiveTaxTotal", v0 = "layerBillAdjustmentExclusiveTaxTotal", I0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9099
9099
|
return t._setArrayType([t.Field_Field$string(e, e, !1, !1, !1, "ID", "id", "_id", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "docId", "_docId", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Restaurant ID", "restaurantId", "_restaurantId", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Time", "createdAt", "_createdAt", e, r), t.Field_Field$timestamp(e, e, !0, !1, e, "publishedAt", "_publishedAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Item time", n, n, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Bill close time", a, a, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Bill ID", "billId", "billId", e, r), t.Field_Field$string("Values: DRAFT, VOIDED, SENT. DRAFT and SENT both considered valid sales.", e, !1, !1, !1, "Status", "status", "status", e, r), t.Field_Field$string(e, e, !1, !1, !0, "Name", "name", "name", e, r), t.Field_Field$numeric(e, e, !1, !1, "Per unit", o, o, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Unit", "unit", "unit", e, r), t.Field_Field$string(e, `IF(@categoryName IS NULL OR @productId IS NULL OR REGEXP_CONTAINS(@productId, r'^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$'), 'Other', @categoryName)
|
|
9100
9100
|
`, !1, !1, !0, "Category", "categoryName", "category", `CASE WHEN @category_name IS NULL OR @product_id IS NULL OR @product_id ~ '^\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d:[0-5]\\d\\.\\d+([+-][0-2]\\d:[0-5]\\d|Z)$' THEN 'Other' ELSE @category_name END
|
|
9101
|
-
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", u, u, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", M, M, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", _, _, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, W.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", D, D, W.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", W.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", W.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", W.x40other, r), t.Field_Field$numeric(e, W.x40billA, !1, !1, "Bill discount", y, y, W.x40bill_, r), t.Field_Field$numeric(e, W.x40itemA, !1, !1, "Item discount", q, q, W.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, W.x40gross, r), t.Field_Field$numeric(e, W.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, W.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, W.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", R, R, W.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", W.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULb, !1, !1, "Discount", "discountTotal", e, W.x28COALEb, r), t.Field_Field$numeric(e, W.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, W.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", g, g, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", L, L, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", B, B, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", I, I, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", P, P, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", k, k, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", u0, u0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", D0, D0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", c0, c0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", X, X, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", f0, f0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", y0, y0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", q0, q0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", W0, W0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", E0, E0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", v0, v0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", I0, I0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], O.JSArray_Field);
|
|
9101
|
+
`, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway ID", s, s, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Takeaway name", u, u, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Code", "code", "code", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Remark", "remark", "remark", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Product ID", l, l, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant ID", "variantId", "variant.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Variant", "variantName", "variant.name", e, r), t.Field_Field$bool(e, e, !1, !1, "Refund", M, M, e, r), t.Field_Field$string(e, e, !1, !1, !1, "User id", "createdById", "createdBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "User", "createdByName", "createdBy.name", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Sent time", "sentAt", "sentAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Served time", d, d, e, r), t.Field_Field$timestamp(e, e, !1, !1, "Printed time", "printedAt", "printBy.printAt", e, r), t.Field_Field$timestamp(e, e, !1, !1, "Void time", "voidAt", "void.voidAt", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void reason", "voidReason", "void.reason", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidedById", "void.by.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void user", "voidedByName", "void.by.name", e, r), t.Field_Field$string(e, e, !0, !1, !1, e, "voidApprovedById", "void.approvedBy.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Void approver", "voidApprovedByName", "void.approvedBy.name", e, r), t.Field_Field$bool(e, e, !0, !1, "SST before discount", "sstBeforeDiscount", "sst.beforeDiscount", e, r), t.Field_Field$bool(e, e, !0, !1, "SC before discount", "serviceChargeBeforeDiscount", "sc.beforeDiscount", e, r), t.Field_Field$bool(e, e, !1, !1, "Takeaway", _, _, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", z, z, W.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", D, D, W.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", W.x40sst_t, r), t.Field_Field$numeric(e, e, !0, !1, "SST %", "sstPercentage", "sst.percentage", e, r), t.Field_Field$numeric(e, e, !0, !1, "SC %", "serviceChargePercentage", "sc.percentage", e, r), t.Field_Field$numeric(e, "@serviceChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "SC", "serviceChargeTotal", "sc.total", W.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", W.x40other, r), t.Field_Field$numeric(e, W.x40billA, !1, !1, "Bill discount", y, y, W.x40bill_, r), t.Field_Field$numeric(e, W.x40itemA, !1, !1, "Item discount", q, q, W.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, W.x40gross, r), t.Field_Field$numeric(e, W.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, W.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, W.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", R, R, W.x40nett_, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent ID", "parentId", "parent.id", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Parent name", "parentName", "parent.name", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon type", "addonType", "addon.type", e, r), t.Field_Field$string(e, e, !1, !1, !1, "Addon ID", "addonId", "addon.selectionId", e, r), t.Field_Field$string(e, "SPLIT(@addonId, '/')[OFFSET(0)]", !1, !1, !1, "Group ID", "groupId", e, "SPLIT_PART(@addon_id, '/',1)", r), t.Field_Field$numeric("Item depth: 0 = main item. 1+ = addon/modifier level. -1 = bill level modifier, usually not consider item sales.", e, !1, !1, "Layer", "layer", "layer", e, r), t.Field_Field$numeric(e, "@addonPrice*IF(@isRefund, -1, 1)", !1, !1, "Addon price", "addonPrice", "addon.price", W.x40addon, r), t.Field_Field$numeric(e, "@taxTotal*IF(@isRefund, -1, 1)", !1, !1, "Tax", "taxTotal", "tax.total", "@tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, W.x28IFNULb, !1, !1, "Discount", "discountTotal", e, W.x28COALEb, r), t.Field_Field$numeric(e, W.x28IFNULgx2b, !1, !1, "Gross before charges", "grossBeforeCharges", e, W.x28COALEgx2b, r), t.Field_Field$string(e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING([IF(@code='', NULL, @code), @name], ' '))", !1, !1, !1, "Summary", "summary", e, "CONCAT(@quantity,'x ',ARRAY_TO_STRING(ARRAY[CASE WHEN @code='' THEN NULL ELSE @code END, @name], ' '))", r), t.Field_Field$numeric(e, "@layerNettTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer nett", g, g, "@layer_nett_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount", L, L, "@layer_bill_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount", B, B, "@layer_item_adjustment_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerGrossTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer gross total", I, I, "@layer_gross_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTakeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Layer takeaway price", N, N, "@layer_takeaway_price*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer tax total", v, v, "@layer_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerScTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer sc", P, P, "@layer_sc_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerOtherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer other charge", k, k, "@layer_other_charge_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "(IFNULL(@layerGrossTotal,0)+IFNULL(@layerBillAdjustmentTotal,0)+IFNULL(@layerItemAdjustmentTotal,0))*IF(@isRefund, -1, 1)", !1, !1, "Layer gross before charges", "layerGrossBeforeCharges", e, "(COALESCE(@layer_gross_total,0)+COALESCE(@layer_bill_adjustment_total,0)+COALESCE(@layer_item_adjustment_total,0))*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$string(e, e, !1, !1, !1, "Custom attributes", u0, u0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", A0, A0, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Charge variant", "chargeVariant", e, "(select variant from charges where charges.parent_id=@layer_zero_parent_id and charges.restaurant_id=@restaurant_id and charges.bill_id=@bill_id and charges.code != 'SERVICE_CHARGE')", r), t.Field_Field$timestamp(e, e, !1, !1, "Collected time", p0, p0, e, r), t.Field_Field$numeric(e, e, !1, !1, "Costing", "costing", "costing", e, r), t.Field_Field$numeric(e, "ROUND(TIMESTAMP_DIFF(IFNULL(@servedAt, CURRENT_TIMESTAMP), @sentAt, SECOND),0)", !1, !1, "Preparation seconds", "preparationSeconds", e, "ROUND(EXTRACT(EPOCH FROM AGE(COALESCE(@served_at, CURRENT_TIMESTAMP),@sent_at)),0)", r), t.Field_Field$numeric("Computed: nett total minus costing", "((@nettTotal-coalesce(@costing, 0))*IF(@isRefund, -1, 1))", !1, !1, "Profit", "profit", e, "((@nett_total-coalesce(@costing, 0))*CASE WHEN @is_refund THEN -1 ELSE 1 END)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent name", "layerZeroParentName", e, "(select name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent code", "layerZeroParentCode", e, "(select code from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent category", "layerZeroParentCategory", e, "(select category_name from flatten_items where flatten_items.id=@layer_zero_parent_id and flatten_items.restaurant_id=@restaurant_id and flatten_items.bill_id=@bill_id)", r), t.Field_Field$string(e, e, !1, !1, !1, "Sub categories", X, X, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", f0, f0, "@bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount inc tax", y0, y0, "@item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount inc tax", q0, q0, "@layer_bill_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount inc tax", W0, W0, "@layer_item_adjustment_inclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@billAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount exc tax", T0, T0, "@bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@itemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Item discount exc tax", E0, E0, "@item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerBillAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer bill discount exc tax", v0, v0, "@layer_bill_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r), t.Field_Field$numeric(e, "@layerItemAdjustmentExclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Layer item discount exc tax", I0, I0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], O.JSArray_Field);
|
|
9102
9102
|
},
|
|
9103
9103
|
$signature: 0
|
|
9104
9104
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -10976,8 +10976,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10976
10976
|
return a.message;
|
|
10977
10977
|
}
|
|
10978
10978
|
}())), e(S, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => t.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), e(S, "_hashSeed", "$get$_hashSeed", () => t.objectHashCode(p.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], O.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? p.C_Endian0 : p.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", p.List_BC_AD, p.List_6xs, p.List_qpm, p.List_qpm, p.List_cIc, p.List_cIc, p.List_h8w, p.List_h8w, p.List_wMy, p.List_wMy, p.List_gc6, p.List_gc6, p.List_3US, p.List_AM_PM)), n(S, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", S.$get$en_USSymbols())), n(S, "dateTimePatterns", "$get$dateTimePatterns", () => t.UninitializedLocaleData$("initializeDateFormatting(<locale>)", p.Map_EQ6TW)), e(S, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), e(S, "DateFormat__matchers", "$get$DateFormat__matchers", () => t._setArrayType([t.RegExp_RegExp("^'(?:[^']|'')*'", !1), t.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), t.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], t.findType("JSArray<RegExp>"))), e(S, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => t.RegExp_RegExp("''", !1)), e(S, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => t.RegExp_RegExp("^\\d+", !1)), n(S, "_availableLocales", "$get$_availableLocales", () => {
|
|
10979
|
-
var a, o, s = t.EnLocale$(p.StartOfWeek_1), u = t.EnLocale$(p.StartOfWeek_1), l = t.EnLocale$(p.StartOfWeek_1), M = t.EnLocale$(p.StartOfWeek_1), d = t.EnLocale$(p.StartOfWeek_1), _ = t.EnLocale$(p.StartOfWeek_2), z = t.EnLocale$(p.StartOfWeek_2), D = t.EnLocale$(p.StartOfWeek_1), y = t.EnLocale$(p.StartOfWeek_1), q = t.EsLocale$(p.StartOfWeek_2), h = t.EsLocale$(p.StartOfWeek_2), E = t.EsLocale$(p.StartOfWeek_1), R = t.FrLocale$(p.StartOfWeek_2), g = t.FrLocale$(p.StartOfWeek_2), L = t.FrLocale$(p.StartOfWeek_1), B = t.ZhCnLocale$(p.StartOfWeek_1), I = t.ZhCnLocale$(p.StartOfWeek_1), N = t.ZhLocale$(p.StartOfWeek_1), v = t.ZhLocale$(p.StartOfWeek_1), P = t.DeLocale$(p.StartOfWeek_2), k = t.DeLocale$(p.StartOfWeek_2), u0 = t.DeLocale$(p.StartOfWeek_2),
|
|
10980
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(p.StartOfWeek_2), o = t.PtLocale$(p.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", u, "en_sg", l, "en_au", M, "en_ca", d, "en_gb", _, "en_ie", z, "en_il", D, "en_nz", y, "es", q, "es_do", h, "es_us", E, "fr", R, "fr_ch", g, "fr_ca", L, "zh", B, "zh_cn", I, "zh_hk", N, "zh_tw", v, "de", P, "de_de", k, "de_at", u0, "de_ch",
|
|
10979
|
+
var a, o, s = t.EnLocale$(p.StartOfWeek_1), u = t.EnLocale$(p.StartOfWeek_1), l = t.EnLocale$(p.StartOfWeek_1), M = t.EnLocale$(p.StartOfWeek_1), d = t.EnLocale$(p.StartOfWeek_1), _ = t.EnLocale$(p.StartOfWeek_2), z = t.EnLocale$(p.StartOfWeek_2), D = t.EnLocale$(p.StartOfWeek_1), y = t.EnLocale$(p.StartOfWeek_1), q = t.EsLocale$(p.StartOfWeek_2), h = t.EsLocale$(p.StartOfWeek_2), E = t.EsLocale$(p.StartOfWeek_1), R = t.FrLocale$(p.StartOfWeek_2), g = t.FrLocale$(p.StartOfWeek_2), L = t.FrLocale$(p.StartOfWeek_1), B = t.ZhCnLocale$(p.StartOfWeek_1), I = t.ZhCnLocale$(p.StartOfWeek_1), N = t.ZhLocale$(p.StartOfWeek_1), v = t.ZhLocale$(p.StartOfWeek_1), P = t.DeLocale$(p.StartOfWeek_2), k = t.DeLocale$(p.StartOfWeek_2), u0 = t.DeLocale$(p.StartOfWeek_2), A0 = t.DeLocale$(p.StartOfWeek_2), p0 = t.ItLocale$(p.StartOfWeek_2), X = t.ItLocale$(p.StartOfWeek_2), f0 = t.ArLyLocale$(!0, p.StartOfWeek_0), y0 = t.ArLyLocale$(!1, p.StartOfWeek_0), q0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), W0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, p.StartOfWeek_1), E0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0), v0 = t.ArSaMaDzKwTnLocale$(!1, p.StartOfWeek_0);
|
|
10980
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), a = t.PtLocale$(p.StartOfWeek_2), o = t.PtLocale$(p.StartOfWeek_1), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.LinkedHashMap_LinkedHashMap$_literal(["en", s, "en_us", u, "en_sg", l, "en_au", M, "en_ca", d, "en_gb", _, "en_ie", z, "en_il", D, "en_nz", y, "es", q, "es_do", h, "es_us", E, "fr", R, "fr_ch", g, "fr_ca", L, "zh", B, "zh_cn", I, "zh_hk", N, "zh_tw", v, "de", P, "de_de", k, "de_at", u0, "de_ch", A0, "it", p0, "it_ch", X, "ar", f0, "ar_ly", y0, "ar_dz", q0, "ar_kw", W0, "ar_sa", T0, "ar_ma", E0, "ar_tn", v0, "az", new t.AzLocale(), "id", new t.IdLocale(), "ja", new t.JaLocale(), "ko", new t.KoLocale(), "ru", new t.RuLocale(), "uk", new t.UkLocale(), "hi", new t.HiLocale(), "pt", a, "pt_br", o, "pl", new t.PlLocale(), "tr", new t.TrLocale(), "sv", new t.SvLocale(), "nb", new t.NbLocale(), "fa", new t.FaLocale(), "bn", new t.BnLocale(), "nl", new t.NlLocale(), "th", new t.ThLocale()], O.String, t.findType("Locale"));
|
|
10981
10981
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10982
10982
|
var a = "createdAt", o = null, s = t.Source_Source$couchdb("", ""), u = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], O.JSArray_Permission), a);
|
|
10983
10983
|
return t.Schema_Schema$build(o, p.List_empty0, 3, t._setArrayType(["restaurantId"], O.JSArray_String), o, new t.addonFlattenItemSchema_closure(), p.List_empty, o, o, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", p.SCHEMA_NAME_7, a, "", s, u);
|
|
@@ -11558,33 +11558,33 @@ var Sn = hn, ur = {};
|
|
|
11558
11558
|
function C() {
|
|
11559
11559
|
try {
|
|
11560
11560
|
throw new Error();
|
|
11561
|
-
} catch (
|
|
11562
|
-
var J =
|
|
11561
|
+
} catch (j) {
|
|
11562
|
+
var J = j.stack, w = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
|
|
11563
11563
|
do {
|
|
11564
|
-
var
|
|
11565
|
-
|
|
11566
|
-
} while (
|
|
11564
|
+
var G = w.exec(J);
|
|
11565
|
+
G != null && (H = G);
|
|
11566
|
+
} while (G != null);
|
|
11567
11567
|
return H[1];
|
|
11568
11568
|
}
|
|
11569
11569
|
}
|
|
11570
|
-
var
|
|
11570
|
+
var x = null;
|
|
11571
11571
|
Object.defineProperty(m, "document", {
|
|
11572
11572
|
value: {
|
|
11573
11573
|
get currentScript() {
|
|
11574
|
-
return
|
|
11574
|
+
return x == null && (x = { src: C() }), x;
|
|
11575
11575
|
}
|
|
11576
11576
|
}
|
|
11577
11577
|
});
|
|
11578
|
-
}(), m.dartDeferredLibraryLoader = function(C,
|
|
11578
|
+
}(), m.dartDeferredLibraryLoader = function(C, x, J) {
|
|
11579
11579
|
try {
|
|
11580
|
-
load(C),
|
|
11581
|
-
} catch (
|
|
11582
|
-
J(
|
|
11580
|
+
load(C), x();
|
|
11581
|
+
} catch (w) {
|
|
11582
|
+
J(w);
|
|
11583
11583
|
}
|
|
11584
11584
|
};
|
|
11585
11585
|
}
|
|
11586
11586
|
(function() {
|
|
11587
|
-
function
|
|
11587
|
+
function x(e, n) {
|
|
11588
11588
|
for (var a = Object.keys(e), o = 0; o < a.length; o++) {
|
|
11589
11589
|
var s = a[o];
|
|
11590
11590
|
n[s] = e[s];
|
|
@@ -11596,7 +11596,7 @@ var Sn = hn, ur = {};
|
|
|
11596
11596
|
n.hasOwnProperty(s) || (n[s] = e[s]);
|
|
11597
11597
|
}
|
|
11598
11598
|
}
|
|
11599
|
-
function
|
|
11599
|
+
function w(e, n) {
|
|
11600
11600
|
Object.assign(n, e);
|
|
11601
11601
|
}
|
|
11602
11602
|
var H = function() {
|
|
@@ -11618,27 +11618,27 @@ var Sn = hn, ur = {};
|
|
|
11618
11618
|
}
|
|
11619
11619
|
return !1;
|
|
11620
11620
|
}();
|
|
11621
|
-
function
|
|
11621
|
+
function G(e, n) {
|
|
11622
11622
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
|
|
11623
11623
|
if (H) {
|
|
11624
11624
|
e.prototype.__proto__ = n.prototype;
|
|
11625
11625
|
return;
|
|
11626
11626
|
}
|
|
11627
11627
|
var a = Object.create(n.prototype);
|
|
11628
|
-
|
|
11628
|
+
x(e.prototype, a), e.prototype = a;
|
|
11629
11629
|
}
|
|
11630
11630
|
}
|
|
11631
|
-
function
|
|
11631
|
+
function j(e, n) {
|
|
11632
11632
|
for (var a = 0; a < n.length; a++)
|
|
11633
|
-
|
|
11633
|
+
G(n[a], e);
|
|
11634
11634
|
}
|
|
11635
|
-
function
|
|
11636
|
-
|
|
11635
|
+
function K(e, n) {
|
|
11636
|
+
w(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11637
11637
|
}
|
|
11638
|
-
function
|
|
11638
|
+
function V(e, n) {
|
|
11639
11639
|
J(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11640
11640
|
}
|
|
11641
|
-
function
|
|
11641
|
+
function Q(e, n, a, o) {
|
|
11642
11642
|
var s = e;
|
|
11643
11643
|
e[n] = s, e[a] = function() {
|
|
11644
11644
|
e[a] = function() {
|
|
@@ -11655,7 +11655,7 @@ var Sn = hn, ur = {};
|
|
|
11655
11655
|
return u;
|
|
11656
11656
|
};
|
|
11657
11657
|
}
|
|
11658
|
-
function
|
|
11658
|
+
function n0(e, n, a, o) {
|
|
11659
11659
|
var s = e;
|
|
11660
11660
|
e[n] = s, e[a] = function() {
|
|
11661
11661
|
return e[n] === s && (e[n] = o()), e[a] = function() {
|
|
@@ -11676,7 +11676,7 @@ var Sn = hn, ur = {};
|
|
|
11676
11676
|
}, l;
|
|
11677
11677
|
};
|
|
11678
11678
|
}
|
|
11679
|
-
function
|
|
11679
|
+
function Y(e) {
|
|
11680
11680
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
11681
11681
|
}
|
|
11682
11682
|
function _0(e) {
|
|
@@ -11686,7 +11686,7 @@ var Sn = hn, ur = {};
|
|
|
11686
11686
|
for (var n = 0; n < e.length; ++n)
|
|
11687
11687
|
e[n];
|
|
11688
11688
|
}
|
|
11689
|
-
function
|
|
11689
|
+
function c0(e, n) {
|
|
11690
11690
|
var a = null;
|
|
11691
11691
|
return e ? function(o) {
|
|
11692
11692
|
return a === null && (a = i.closureFromTearOff(n)), new a(o, this);
|
|
@@ -11694,32 +11694,32 @@ var Sn = hn, ur = {};
|
|
|
11694
11694
|
return a === null && (a = i.closureFromTearOff(n)), new a(this, null);
|
|
11695
11695
|
};
|
|
11696
11696
|
}
|
|
11697
|
-
function
|
|
11697
|
+
function e0(e) {
|
|
11698
11698
|
var n = null;
|
|
11699
11699
|
return function() {
|
|
11700
11700
|
return n === null && (n = i.closureFromTearOff(e).prototype), n;
|
|
11701
11701
|
};
|
|
11702
11702
|
}
|
|
11703
|
-
var
|
|
11703
|
+
var t0 = 0;
|
|
11704
11704
|
function s0(e, n, a, o, s, u, l, M, d, _) {
|
|
11705
|
-
return typeof M == "number" && (M +=
|
|
11705
|
+
return typeof M == "number" && (M += t0), { co: e, iS: n, iI: a, rC: o, dV: s, cs: u, fs: l, fT: M, aI: d || 0, nDA: _ };
|
|
11706
11706
|
}
|
|
11707
11707
|
function b0(e, n, a, o, s, u, l, M) {
|
|
11708
|
-
var d = s0(e, !0, !1, a, o, s, u, l, M, !1), _ =
|
|
11708
|
+
var d = s0(e, !0, !1, a, o, s, u, l, M, !1), _ = e0(d);
|
|
11709
11709
|
e[n] = _;
|
|
11710
11710
|
}
|
|
11711
|
-
function
|
|
11711
|
+
function O0(e, n, a, o, s, u, l, M, d, _) {
|
|
11712
11712
|
a = !!a;
|
|
11713
|
-
var z = s0(e, !1, a, o, s, u, l, M, d, !!_), D =
|
|
11713
|
+
var z = s0(e, !1, a, o, s, u, l, M, d, !!_), D = c0(a, z);
|
|
11714
11714
|
e[n] = D;
|
|
11715
11715
|
}
|
|
11716
|
-
function
|
|
11716
|
+
function l0(e) {
|
|
11717
11717
|
var n = W.interceptorsByTag;
|
|
11718
11718
|
if (!n) {
|
|
11719
11719
|
W.interceptorsByTag = e;
|
|
11720
11720
|
return;
|
|
11721
11721
|
}
|
|
11722
|
-
|
|
11722
|
+
x(e, n);
|
|
11723
11723
|
}
|
|
11724
11724
|
function d0(e) {
|
|
11725
11725
|
var n = W.leafTags;
|
|
@@ -11727,26 +11727,26 @@ var Sn = hn, ur = {};
|
|
|
11727
11727
|
W.leafTags = e;
|
|
11728
11728
|
return;
|
|
11729
11729
|
}
|
|
11730
|
-
|
|
11730
|
+
x(e, n);
|
|
11731
11731
|
}
|
|
11732
|
-
function
|
|
11732
|
+
function D0(e) {
|
|
11733
11733
|
var n = W.types, a = n.length;
|
|
11734
11734
|
return n.push.apply(n, e), a;
|
|
11735
11735
|
}
|
|
11736
11736
|
function o0(e, n) {
|
|
11737
|
-
return
|
|
11737
|
+
return x(n, e), e;
|
|
11738
11738
|
}
|
|
11739
11739
|
var t = function() {
|
|
11740
11740
|
var e = function(a, o, s, u, l) {
|
|
11741
11741
|
return function(M, d, _, z) {
|
|
11742
|
-
return
|
|
11742
|
+
return O0(M, d, a, o, s, u, [_], z, l, !1);
|
|
11743
11743
|
};
|
|
11744
11744
|
}, n = function(a, o, s, u) {
|
|
11745
11745
|
return function(l, M, d, _) {
|
|
11746
11746
|
return b0(l, M, a, o, s, [d], _, u);
|
|
11747
11747
|
};
|
|
11748
11748
|
};
|
|
11749
|
-
return { inherit:
|
|
11749
|
+
return { inherit: G, inheritMany: j, mixin: K, mixinHard: V, installStaticTearOff: b0, installInstanceTearOff: O0, _instance_0u: e(0, 0, null, ["call$0"], 0), _instance_1u: e(0, 1, null, ["call$1"], 0), _instance_2u: e(0, 2, null, ["call$2"], 0), _instance_0i: e(1, 0, null, ["call$0"], 0), _instance_1i: e(1, 1, null, ["call$1"], 0), _instance_2i: e(1, 2, null, ["call$2"], 0), _static_0: n(0, null, ["call$0"], 0), _static_1: n(1, null, ["call$1"], 0), _static_2: n(2, null, ["call$2"], 0), makeConstList: Y, lazy: n0, lazyFinal: a0, lazyOld: Q, updateHolder: o0, convertToFastObject: _0, updateTypes: D0, setOrUpdateInterceptorsByTag: l0, setOrUpdateLeafTags: d0 };
|
|
11750
11750
|
}(), i = {
|
|
11751
11751
|
JS_CONST: function() {
|
|
11752
11752
|
},
|
|
@@ -13323,7 +13323,7 @@ var Sn = hn, ur = {};
|
|
|
13323
13323
|
return d === 12 ? n === r.JavaScriptFunction ? !0 : u ? !1 : i._isFunctionSubtype(e, n, a, o, s) : l === 9 ? d !== 9 ? !1 : i._isInterfaceSubtype(e, n, a, o, s) : (u = l === 11, u && o === r.Record ? !0 : u && d === 11 ? i._isRecordSubtype(e, n, a, o, s) : !1);
|
|
13324
13324
|
},
|
|
13325
13325
|
_isFunctionSubtype(e, n, a, o, s) {
|
|
13326
|
-
var u, l, M, d, _, z, D, y, q, h, E, R, g, L, B, I, N, v, P, k, u0,
|
|
13326
|
+
var u, l, M, d, _, z, D, y, q, h, E, R, g, L, B, I, N, v, P, k, u0, A0;
|
|
13327
13327
|
if (!i._isSubtype(e, n._primary, a, o._primary, s) || (u = n._rest, l = o._rest, M = u._requiredPositional, d = l._requiredPositional, _ = M.length, z = d.length, _ > z) || (D = z - _, y = u._optionalPositional, q = l._optionalPositional, h = y.length, E = q.length, _ + h < z + E))
|
|
13328
13328
|
return !1;
|
|
13329
13329
|
for (R = 0; R < _; ++R)
|
|
@@ -13339,12 +13339,12 @@ var Sn = hn, ur = {};
|
|
|
13339
13339
|
for (k = B[P]; ; ) {
|
|
13340
13340
|
if (v >= I || (u0 = L[v], v += 3, k < u0))
|
|
13341
13341
|
return !1;
|
|
13342
|
-
if (
|
|
13343
|
-
if (
|
|
13342
|
+
if (A0 = L[v - 2], u0 < k) {
|
|
13343
|
+
if (A0)
|
|
13344
13344
|
return !1;
|
|
13345
13345
|
continue;
|
|
13346
13346
|
}
|
|
13347
|
-
if (g = B[P + 1],
|
|
13347
|
+
if (g = B[P + 1], A0 && !g || (g = L[v - 1], !i._isSubtype(e, B[P + 2], s, g, a)))
|
|
13348
13348
|
return !1;
|
|
13349
13349
|
break;
|
|
13350
13350
|
}
|
|
@@ -14791,7 +14791,7 @@ var Sn = hn, ur = {};
|
|
|
14791
14791
|
return e instanceof i.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? a = !0 : a = e instanceof i.ScorecardDatasourceConfigModel && e.isCumulative, a ? (a = r.XYDatasetModel, i.List_List$of(i.ListExtensions_mapIndexed(n, new i.accumulate_closure(e), a, a), !0, a)) : n;
|
|
14792
14792
|
},
|
|
14793
14793
|
formatBaseXYChartData(e, n, a, o, s) {
|
|
14794
|
-
var u, l, M, d, _, z, D, y, q, h, E, R, g, L, B, I, N, v, P, k, u0,
|
|
14794
|
+
var u, l, M, d, _, z, D, y, q, h, E, R, g, L, B, I, N, v, P, k, u0, A0, p0, X, f0, y0, q0, W0, T0, E0, v0, I0, R1 = null;
|
|
14795
14795
|
if (a.length === 0)
|
|
14796
14796
|
return u = i._setArrayType([], r.JSArray_String), l = i._setArrayType([], r.JSArray_XYDatasetModel), M = i.IterableExtension_get_firstOrNull(a), new i.BaseXYChartDataModel(e, u, l, new i.DateComparison(M == null ? R1 : M.dateRange, R1));
|
|
14797
14797
|
for (d = A.JSArray_methods.get$first(a).columns, u = i._arrayInstanceType(d), l = u._eval$1("WhereIterable<1>"), _ = i.List_List$of(new i.WhereIterable(d, new i.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = i._arrayInstanceType(_)._eval$1("WhereIterable<1>"), z = i.List_List$of(new i.WhereIterable(_, new i.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, D = i._formatRows(i.ListExtension_sublistOrEmpty(a, 0, 1, l), s), y = i._formatRows(i.ListExtension_sublistOrEmpty(a, 1, 2, l), s), y.length !== 0 && (u = u._eval$1("MappedListIterable<1,ComparisonDataColumn>"), q = i.List_List$of(new i.MappedListIterable(d, new i.formatBaseXYChartData_closure1(), u), !0, u._eval$1("ListIterable.E")), h = i.compare(new i.ComparisonData(q, y), new i.ComparisonData(q, D)), y = h.comparison, D = h.main), u = r.String, l = i.LinkedHashMap_LinkedHashMap$_empty(u, r.bool), M = z.length, E = 0; R = z.length, E < R; z.length === M || (0, i.throwConcurrentModificationError)(z), ++E)
|
|
@@ -14811,12 +14811,12 @@ var Sn = hn, ur = {};
|
|
|
14811
14811
|
}
|
|
14812
14812
|
for (R = r.JSArray_String, P = i._setArrayType([], R), k = i._setArrayType([], R), R = D.length, E = 0; E < D.length; D.length === R || (0, i.throwConcurrentModificationError)(D), ++E)
|
|
14813
14813
|
u0 = D[E], N = p.getInterceptor$asx(u0), P.push(p.toString$0$(N.$index(u0, 0))), k.push(p.toString$0$(N.$index(u0, 1)));
|
|
14814
|
-
for (R = i.LinkedHashSet_LinkedHashSet$from(P, u), P = i.List_List$of(R, !0, i._instanceType(R)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(k, u),
|
|
14815
|
-
for (X =
|
|
14814
|
+
for (R = i.LinkedHashSet_LinkedHashSet$from(P, u), P = i.List_List$of(R, !0, i._instanceType(R)._precomputed1), u = i.LinkedHashSet_LinkedHashSet$from(k, u), A0 = i.List_List$of(u, !0, i._instanceType(u)._precomputed1), p0 = i._setArrayType([], r.JSArray_XYDatasetModel), u = A0.length, R = p.getInterceptor$asx(y), N = r.JSArray_nullable_num, E = 0; E < A0.length; A0.length === u || (0, i.throwConcurrentModificationError)(A0), ++E) {
|
|
14815
|
+
for (X = A0[E], f0 = i._setArrayType([], N), y0 = i._setArrayType([], N), q0 = B.$index(0, X), v = l.$index(0, q0 ?? X), W0 = v === !0, v = L.$index(0, X), T0 = v ?? M.$index(0, X), T0 == null && (T0 = X), v = P.length, E0 = 0; E0 < P.length; P.length === v || (0, i.throwConcurrentModificationError)(P), ++E0)
|
|
14816
14816
|
v0 = P[E0], I0 = i.IterableExtension_firstWhereOrNull(D, new i.formatBaseXYChartData_closure5(v0, X)), f0.push(i._parseMetricValue(I0 == null ? R1 : i.ListExtension_elementAtOrNull(I0, 2), W0)), R.get$length(y) !== 0 && (I0 = i.IterableExtension_firstWhereOrNull(y, new i.formatBaseXYChartData_closure6(v0, X)), y0.push(i._parseMetricValue(I0 == null ? R1 : i.ListExtension_elementAtOrNull(I0, 2), W0)));
|
|
14817
|
-
|
|
14817
|
+
p0.push(new i.XYDatasetModel(T0, !1, f0)), y0.length !== 0 && p0.push(new i.XYDatasetModel(T0, !0, y0));
|
|
14818
14818
|
}
|
|
14819
|
-
return
|
|
14819
|
+
return p0 = i.accumulate(n, p0), u = i.IterableExtension_get_firstOrNull(a), u = u == null ? R1 : u.dateRange, l = i.ListExtension_elementAtOrNull(a, 1), new i.BaseXYChartDataModel(e, P, p0, new i.DateComparison(u, l == null ? R1 : l.dateRange));
|
|
14820
14820
|
},
|
|
14821
14821
|
_formatRows_closure: function(n, a) {
|
|
14822
14822
|
this.response = n, this.timezone = a;
|
|
@@ -19969,8 +19969,8 @@ Arguments: [` + d + "]";
|
|
|
19969
19969
|
return o.message;
|
|
19970
19970
|
}
|
|
19971
19971
|
}())), n(F, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => i.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(F, "_hashSeed", "$get$_hashSeed", () => i.objectHashCode(A.Type_Object_xQ6)), n(F, "Endian_host", "$get$Endian_host", () => i.NativeByteData_NativeByteData$view(i.NativeUint16List_NativeUint16List$fromList(i._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? A.C_Endian0 : A.C_Endian), n(F, "_clockKey", "$get$_clockKey", () => new i.Object()), n(F, "en_USSymbols", "$get$en_USSymbols", () => new i.DateSymbols("en_US", A.List_BC_AD, A.List_6xs, A.List_qpm, A.List_qpm, A.List_cIc, A.List_cIc, A.List_h8w, A.List_h8w, A.List_wMy, A.List_wMy, A.List_gc6, A.List_gc6, A.List_3US, A.List_Q1_Q2_Q3_Q4, A.List_bJM, A.List_AM_PM)), a(F, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", F.$get$en_USSymbols())), a(F, "dateTimePatterns", "$get$dateTimePatterns", () => i.UninitializedLocaleData$("initializeDateFormatting(<locale>)", A.Map_EQ6TW)), n(F, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(F, "DateFormat__matchers", "$get$DateFormat__matchers", () => i._setArrayType([i.RegExp_RegExp("^'(?:[^']|'')*'", !1), i.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), i.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], i.findType("JSArray<RegExp>"))), n(F, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => i.RegExp_RegExp("''", !1)), n(F, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => i.RegExp_RegExp("^\\d+", !1)), a(F, "_availableLocales", "$get$_availableLocales", () => {
|
|
19972
|
-
var o, s, u = i.EnLocale$(A.StartOfWeek_1), l = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), d = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), z = i.EnLocale$(A.StartOfWeek_2), D = i.EnLocale$(A.StartOfWeek_2), y = i.EnLocale$(A.StartOfWeek_1), q = i.EnLocale$(A.StartOfWeek_1), h = i.EsLocale$(A.StartOfWeek_2), E = i.EsLocale$(A.StartOfWeek_2), R = i.EsLocale$(A.StartOfWeek_1), g = i.FrLocale$(A.StartOfWeek_2), L = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_1), I = i.ZhCnLocale$(A.StartOfWeek_1), N = i.ZhCnLocale$(A.StartOfWeek_1), v = i.ZhLocale$(A.StartOfWeek_1), P = i.ZhLocale$(A.StartOfWeek_1), k = i.DeLocale$(A.StartOfWeek_2), u0 = i.DeLocale$(A.StartOfWeek_2),
|
|
19973
|
-
return i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), o = i.PtLocale$(A.StartOfWeek_2), s = i.PtLocale$(A.StartOfWeek_1), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.LinkedHashMap_LinkedHashMap$_literal(["en", u, "en_us", l, "en_sg", M, "en_au", d, "en_ca", _, "en_gb", z, "en_ie", D, "en_il", y, "en_nz", q, "es", h, "es_do", E, "es_us", R, "fr", g, "fr_ch", L, "fr_ca", B, "zh", I, "zh_cn", N, "zh_hk", v, "zh_tw", P, "de", k, "de_de", u0, "de_at",
|
|
19972
|
+
var o, s, u = i.EnLocale$(A.StartOfWeek_1), l = i.EnLocale$(A.StartOfWeek_1), M = i.EnLocale$(A.StartOfWeek_1), d = i.EnLocale$(A.StartOfWeek_1), _ = i.EnLocale$(A.StartOfWeek_1), z = i.EnLocale$(A.StartOfWeek_2), D = i.EnLocale$(A.StartOfWeek_2), y = i.EnLocale$(A.StartOfWeek_1), q = i.EnLocale$(A.StartOfWeek_1), h = i.EsLocale$(A.StartOfWeek_2), E = i.EsLocale$(A.StartOfWeek_2), R = i.EsLocale$(A.StartOfWeek_1), g = i.FrLocale$(A.StartOfWeek_2), L = i.FrLocale$(A.StartOfWeek_2), B = i.FrLocale$(A.StartOfWeek_1), I = i.ZhCnLocale$(A.StartOfWeek_1), N = i.ZhCnLocale$(A.StartOfWeek_1), v = i.ZhLocale$(A.StartOfWeek_1), P = i.ZhLocale$(A.StartOfWeek_1), k = i.DeLocale$(A.StartOfWeek_2), u0 = i.DeLocale$(A.StartOfWeek_2), A0 = i.DeLocale$(A.StartOfWeek_2), p0 = i.DeLocale$(A.StartOfWeek_2), X = i.ItLocale$(A.StartOfWeek_2), f0 = i.ItLocale$(A.StartOfWeek_2), y0 = i.ArLyLocale$(!0, A.StartOfWeek_0), q0 = i.ArLyLocale$(!1, A.StartOfWeek_0), W0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), T0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_1), E0 = i.ArSaMaDzKwTnLocale$(!0, A.StartOfWeek_1), v0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0), I0 = i.ArSaMaDzKwTnLocale$(!1, A.StartOfWeek_0);
|
|
19973
|
+
return i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), o = i.PtLocale$(A.StartOfWeek_2), s = i.PtLocale$(A.StartOfWeek_1), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.createSentinel(), i.LinkedHashMap_LinkedHashMap$_literal(["en", u, "en_us", l, "en_sg", M, "en_au", d, "en_ca", _, "en_gb", z, "en_ie", D, "en_il", y, "en_nz", q, "es", h, "es_do", E, "es_us", R, "fr", g, "fr_ch", L, "fr_ca", B, "zh", I, "zh_cn", N, "zh_hk", v, "zh_tw", P, "de", k, "de_de", u0, "de_at", A0, "de_ch", p0, "it", X, "it_ch", f0, "ar", y0, "ar_ly", q0, "ar_dz", W0, "ar_kw", T0, "ar_sa", E0, "ar_ma", v0, "ar_tn", I0, "az", new i.AzLocale(A.StartOfWeek_2), "id", new i.IdLocale(A.StartOfWeek_1), "ja", new i.JaLocale(A.StartOfWeek_1), "ko", new i.KoLocale(A.StartOfWeek_1), "ru", new i.RuLocale(A.StartOfWeek_2), "uk", new i.UkLocale(A.StartOfWeek_2), "hi", new i.HiLocale(A.StartOfWeek_1), "pt", o, "pt_br", s, "pl", new i.PlLocale(A.StartOfWeek_2), "tr", new i.TrLocale(A.StartOfWeek_2), "sv", new i.SvLocale(A.StartOfWeek_2), "nb", new i.NbLocale(A.StartOfWeek_2), "fa", new i.FaLocale(A.StartOfWeek_0), "bn", new i.BnLocale(A.StartOfWeek_1), "nl", new i.NlLocale(A.StartOfWeek_2), "th", new i.ThLocale(A.StartOfWeek_1)], r.String, i.findType("Locale"));
|
|
19974
19974
|
}), n(F, "_UTC", "$get$_UTC", () => {
|
|
19975
19975
|
var o = r.JSArray_int;
|
|
19976
19976
|
return i.Location$("UTC", i._setArrayType([-864e13], o), i._setArrayType([0], o), i._setArrayType([A.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -20054,57 +20054,57 @@ function wt(c) {
|
|
|
20054
20054
|
/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/
|
|
20055
20055
|
);
|
|
20056
20056
|
if (m) {
|
|
20057
|
-
const [,
|
|
20057
|
+
const [, w, H, G, j, K, V = "0"] = m;
|
|
20058
20058
|
return {
|
|
20059
20059
|
type: "fullDateTime",
|
|
20060
20060
|
value: new Date(
|
|
20061
|
-
parseInt(Z),
|
|
20062
|
-
parseInt(H) - 1,
|
|
20063
|
-
parseInt(x),
|
|
20064
20061
|
parseInt(G),
|
|
20062
|
+
parseInt(H) - 1,
|
|
20063
|
+
parseInt(w),
|
|
20065
20064
|
parseInt(j),
|
|
20066
|
-
parseInt(
|
|
20065
|
+
parseInt(K),
|
|
20066
|
+
parseInt(V)
|
|
20067
20067
|
).getTime()
|
|
20068
20068
|
};
|
|
20069
20069
|
}
|
|
20070
20070
|
const T = b.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
20071
20071
|
if (T) {
|
|
20072
|
-
const [,
|
|
20072
|
+
const [, w, H, G] = T;
|
|
20073
20073
|
return {
|
|
20074
20074
|
type: "date",
|
|
20075
20075
|
value: new Date(
|
|
20076
|
-
parseInt(
|
|
20076
|
+
parseInt(G),
|
|
20077
20077
|
parseInt(H) - 1,
|
|
20078
|
-
parseInt(
|
|
20078
|
+
parseInt(w)
|
|
20079
20079
|
).getTime()
|
|
20080
20080
|
};
|
|
20081
20081
|
}
|
|
20082
20082
|
const C = b.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
20083
20083
|
if (C) {
|
|
20084
|
-
const [,
|
|
20084
|
+
const [, w, H, G] = C;
|
|
20085
20085
|
return {
|
|
20086
20086
|
type: "date",
|
|
20087
20087
|
value: new Date(
|
|
20088
|
-
parseInt(
|
|
20088
|
+
parseInt(w),
|
|
20089
20089
|
parseInt(H) - 1,
|
|
20090
|
-
parseInt(
|
|
20090
|
+
parseInt(G)
|
|
20091
20091
|
).getTime()
|
|
20092
20092
|
};
|
|
20093
20093
|
}
|
|
20094
|
-
const
|
|
20095
|
-
if (
|
|
20096
|
-
const [,
|
|
20094
|
+
const x = b.match(/^(\d{1,2})\/(\d{4})$/);
|
|
20095
|
+
if (x) {
|
|
20096
|
+
const [, w, H] = x;
|
|
20097
20097
|
return {
|
|
20098
20098
|
type: "monthYear",
|
|
20099
|
-
value: new Date(parseInt(H), parseInt(
|
|
20099
|
+
value: new Date(parseInt(H), parseInt(w) - 1, 1).getTime()
|
|
20100
20100
|
};
|
|
20101
20101
|
}
|
|
20102
20102
|
const J = b.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
20103
20103
|
if (J) {
|
|
20104
|
-
const [,
|
|
20104
|
+
const [, w, H, G = "0"] = J;
|
|
20105
20105
|
return {
|
|
20106
20106
|
type: "time",
|
|
20107
|
-
value: parseInt(
|
|
20107
|
+
value: parseInt(w) * 3600 + parseInt(H) * 60 + parseInt(G)
|
|
20108
20108
|
};
|
|
20109
20109
|
}
|
|
20110
20110
|
return /^\d+$/.test(b) ? { type: "number", value: parseInt(b) } : null;
|
|
@@ -20150,14 +20150,14 @@ function De(c) {
|
|
|
20150
20150
|
/^(?:(\d+)\s+day(?:s)?\s+)?(\d+):(\d{2}):(\d{2})$/i
|
|
20151
20151
|
);
|
|
20152
20152
|
if ($) {
|
|
20153
|
-
const [, T = "0", C,
|
|
20154
|
-
return Number(T) * 24 * 60 * 60 + Number(C) * 60 * 60 + Number(
|
|
20153
|
+
const [, T = "0", C, x, J] = $;
|
|
20154
|
+
return Number(T) * 24 * 60 * 60 + Number(C) * 60 * 60 + Number(x) * 60 + Number(J);
|
|
20155
20155
|
}
|
|
20156
20156
|
const m = Number(b);
|
|
20157
20157
|
return Number.isFinite(m) ? m : null;
|
|
20158
20158
|
}
|
|
20159
20159
|
function Wn(c) {
|
|
20160
|
-
var
|
|
20160
|
+
var n0, a0, Y, _0, M0, c0;
|
|
20161
20161
|
const {
|
|
20162
20162
|
rows: b = [],
|
|
20163
20163
|
columns: f = [],
|
|
@@ -20166,87 +20166,87 @@ function Wn(c) {
|
|
|
20166
20166
|
grandTotalPosition: T = null,
|
|
20167
20167
|
pageSize: C = 0
|
|
20168
20168
|
} = c;
|
|
20169
|
-
let
|
|
20170
|
-
T === "BOTTOM" && ((
|
|
20169
|
+
let x = Array.isArray(b) ? [...b] : [];
|
|
20170
|
+
T === "BOTTOM" && ((n0 = x.at(-1)) != null && n0.isRollup) && x.pop(), T === "TOP" && ((a0 = x[0]) != null && a0.isRollup) && x.shift();
|
|
20171
20171
|
let J = 0;
|
|
20172
|
-
for (const
|
|
20173
|
-
|
|
20174
|
-
const
|
|
20175
|
-
for (const
|
|
20172
|
+
for (const e0 of x)
|
|
20173
|
+
e0.isRollup && J++, e0.groupIndex = J;
|
|
20174
|
+
const w = {};
|
|
20175
|
+
for (const e0 of f) w[e0.key] = e0.type === "NUMERIC";
|
|
20176
20176
|
const H = $.filter(
|
|
20177
|
-
(
|
|
20178
|
-
),
|
|
20179
|
-
let
|
|
20180
|
-
m !== null && (
|
|
20181
|
-
(
|
|
20182
|
-
)))).map((
|
|
20183
|
-
...Rn(
|
|
20184
|
-
groupIndex:
|
|
20177
|
+
(e0) => e0.key && f.some((t0) => t0.key === e0.key)
|
|
20178
|
+
), G = H.length > 0;
|
|
20179
|
+
let j = b;
|
|
20180
|
+
m !== null && (j = j.filter((e0) => !(m !== "" && (e0.isRollup === !0 || !e0.cells.some(
|
|
20181
|
+
(t0) => ((t0 == null ? void 0 : t0.toLowerCase()) || "").includes(m == null ? void 0 : m.toLowerCase())
|
|
20182
|
+
)))).map((e0) => ({
|
|
20183
|
+
...Rn(e0, f),
|
|
20184
|
+
groupIndex: e0.groupIndex
|
|
20185
20185
|
})));
|
|
20186
|
-
const
|
|
20187
|
-
for (const
|
|
20188
|
-
const
|
|
20189
|
-
|
|
20186
|
+
const K = {};
|
|
20187
|
+
for (const e0 of j) {
|
|
20188
|
+
const t0 = e0.groupIndex;
|
|
20189
|
+
t0 !== void 0 && (K[t0] || (K[t0] = [])).push(e0);
|
|
20190
20190
|
}
|
|
20191
|
-
|
|
20192
|
-
const
|
|
20193
|
-
s0.sort((b0,
|
|
20194
|
-
for (const { key:
|
|
20195
|
-
const
|
|
20196
|
-
if (
|
|
20191
|
+
G && Object.values(K).forEach((e0) => {
|
|
20192
|
+
const t0 = e0.filter((b0) => b0.isRollup), s0 = e0.filter((b0) => !b0.isRollup);
|
|
20193
|
+
s0.sort((b0, O0) => {
|
|
20194
|
+
for (const { key: l0, type: d0 } of H) {
|
|
20195
|
+
const D0 = d0 === "ASC" ? 1 : -1, o0 = Ae(b0, l0, f) ?? "", t = Ae(O0, l0, f) ?? "";
|
|
20196
|
+
if (w[l0]) {
|
|
20197
20197
|
const i = De(o0), p = De(t);
|
|
20198
20198
|
if (i !== null && p !== null) {
|
|
20199
20199
|
const S = i - p;
|
|
20200
|
-
if (S !== 0) return S *
|
|
20200
|
+
if (S !== 0) return S * D0;
|
|
20201
20201
|
}
|
|
20202
20202
|
const A = Oe.compare(String(o0), String(t));
|
|
20203
|
-
if (A !== 0) return A *
|
|
20203
|
+
if (A !== 0) return A * D0;
|
|
20204
20204
|
} else {
|
|
20205
20205
|
const i = vt(o0, t);
|
|
20206
20206
|
if (i !== null && i !== 0)
|
|
20207
|
-
return i *
|
|
20207
|
+
return i * D0;
|
|
20208
20208
|
const p = Oe.compare(String(o0), String(t));
|
|
20209
|
-
if (p !== 0) return p *
|
|
20209
|
+
if (p !== 0) return p * D0;
|
|
20210
20210
|
}
|
|
20211
20211
|
}
|
|
20212
20212
|
return 0;
|
|
20213
|
-
}),
|
|
20213
|
+
}), K[e0[0].groupIndex] = t0.concat(s0);
|
|
20214
20214
|
});
|
|
20215
|
-
let
|
|
20216
|
-
if (
|
|
20217
|
-
const
|
|
20218
|
-
const b0 = Object.keys(
|
|
20219
|
-
const
|
|
20220
|
-
return d0 && !
|
|
20215
|
+
let V;
|
|
20216
|
+
if (G) {
|
|
20217
|
+
const e0 = T === null ? (() => {
|
|
20218
|
+
const b0 = Object.keys(K).find((O0) => {
|
|
20219
|
+
const l0 = K[O0] || [], d0 = l0.some((o0) => o0.isRollup), D0 = l0.some((o0) => !o0.isRollup);
|
|
20220
|
+
return d0 && !D0;
|
|
20221
20221
|
});
|
|
20222
20222
|
return b0 !== void 0 ? Number(b0) : -1;
|
|
20223
|
-
})() : -1,
|
|
20224
|
-
|
|
20225
|
-
if (!
|
|
20226
|
-
if (
|
|
20227
|
-
if (b0 ===
|
|
20228
|
-
if (
|
|
20223
|
+
})() : -1, t0 = ((Y = H[0]) == null ? void 0 : Y.key) ?? ((_0 = f.find((b0) => w[b0.key])) == null ? void 0 : _0.key), s0 = ((M0 = H[0]) == null ? void 0 : M0.type) === "ASC" ? 1 : (((c0 = H[0]) == null ? void 0 : c0.type) === "DESC", -1);
|
|
20224
|
+
V = Object.keys(K).map(Number).sort((b0, O0) => {
|
|
20225
|
+
if (!t0) return b0 - O0;
|
|
20226
|
+
if (e0 !== -1) {
|
|
20227
|
+
if (b0 === e0) return -1;
|
|
20228
|
+
if (O0 === e0) return 1;
|
|
20229
20229
|
}
|
|
20230
|
-
const
|
|
20231
|
-
if (
|
|
20232
|
-
const i = De(
|
|
20233
|
-
return i !== null && p !== null ? (i - p) * s0 : Oe.compare(String(
|
|
20230
|
+
const l0 = K[b0].find((i) => i.isRollup), d0 = K[O0].find((i) => i.isRollup), D0 = l0 ? Ae(l0, t0, f) ?? "" : "", o0 = d0 ? Ae(d0, t0, f) ?? "" : "";
|
|
20231
|
+
if (w[t0]) {
|
|
20232
|
+
const i = De(D0), p = De(o0);
|
|
20233
|
+
return i !== null && p !== null ? (i - p) * s0 : Oe.compare(String(D0), String(o0)) * s0;
|
|
20234
20234
|
}
|
|
20235
|
-
const t = vt(
|
|
20236
|
-
return t !== null ? t * s0 : Oe.compare(String(
|
|
20235
|
+
const t = vt(D0, o0);
|
|
20236
|
+
return t !== null ? t * s0 : Oe.compare(String(D0), String(o0)) * s0;
|
|
20237
20237
|
});
|
|
20238
20238
|
} else
|
|
20239
|
-
|
|
20240
|
-
const
|
|
20241
|
-
for (const
|
|
20242
|
-
for (const { groupIndex:
|
|
20243
|
-
|
|
20239
|
+
V = Object.keys(K).map(Number).sort((e0, t0) => e0 - t0);
|
|
20240
|
+
const Q = [];
|
|
20241
|
+
for (const e0 of V)
|
|
20242
|
+
for (const { groupIndex: t0, ...s0 } of K[e0])
|
|
20243
|
+
Q.push(s0);
|
|
20244
20244
|
if (C > 0) {
|
|
20245
|
-
const
|
|
20246
|
-
let
|
|
20247
|
-
|
|
20245
|
+
const e0 = Q.length % C;
|
|
20246
|
+
let t0 = 0;
|
|
20247
|
+
e0 > 0 ? t0 = C - e0 : Q.length === 0 && (t0 = C), t0 > 0 && Q.push(...Cn(t0, f));
|
|
20248
20248
|
}
|
|
20249
|
-
return { data:
|
|
20249
|
+
return { data: Q };
|
|
20250
20250
|
}
|
|
20251
20251
|
var Ln = { processTableData: Wn }, pr = { exports: {} }, cr = { exports: {} };
|
|
20252
20252
|
//! moment.js
|
|
@@ -20255,7 +20255,7 @@ var Ln = { processTableData: Wn }, pr = { exports: {} }, cr = { exports: {} };
|
|
|
20255
20255
|
//! license : MIT
|
|
20256
20256
|
//! momentjs.com
|
|
20257
20257
|
var Mr;
|
|
20258
|
-
function
|
|
20258
|
+
function Z() {
|
|
20259
20259
|
return Mr.apply(null, arguments);
|
|
20260
20260
|
}
|
|
20261
20261
|
function In(c) {
|
|
@@ -20322,7 +20322,7 @@ function Fn() {
|
|
|
20322
20322
|
weekdayMismatch: !1
|
|
20323
20323
|
};
|
|
20324
20324
|
}
|
|
20325
|
-
function
|
|
20325
|
+
function z0(c) {
|
|
20326
20326
|
return c._pf == null && (c._pf = Fn()), c._pf;
|
|
20327
20327
|
}
|
|
20328
20328
|
var nt;
|
|
@@ -20335,7 +20335,7 @@ Array.prototype.some ? nt = Array.prototype.some : nt = function(c) {
|
|
|
20335
20335
|
};
|
|
20336
20336
|
function dt(c) {
|
|
20337
20337
|
var b = null, f = !1, $ = c._d && !isNaN(c._d.getTime());
|
|
20338
|
-
if ($ && (b =
|
|
20338
|
+
if ($ && (b = z0(c), f = nt.call(b.parsedDateParts, function(m) {
|
|
20339
20339
|
return m != null;
|
|
20340
20340
|
}), $ = b.overflow < 0 && !b.empty && !b.invalidEra && !b.invalidMonth && !b.invalidWeekday && !b.weekdayMismatch && !b.nullInput && !b.invalidFormat && !b.userInvalidated && (!b.meridiem || b.meridiem && f), c._strict && ($ = $ && b.charsLeftOver === 0 && b.unusedTokens.length === 0 && b.bigHour === void 0)), Object.isFrozen == null || !Object.isFrozen(c))
|
|
20341
20341
|
c._isValid = $;
|
|
@@ -20345,31 +20345,31 @@ function dt(c) {
|
|
|
20345
20345
|
}
|
|
20346
20346
|
function Fe(c) {
|
|
20347
20347
|
var b = A1(NaN);
|
|
20348
|
-
return c != null ? W1(
|
|
20348
|
+
return c != null ? W1(z0(b), c) : z0(b).userInvalidated = !0, b;
|
|
20349
20349
|
}
|
|
20350
|
-
var Pt =
|
|
20350
|
+
var Pt = Z.momentProperties = [], Ye = !1;
|
|
20351
20351
|
function zt(c, b) {
|
|
20352
20352
|
var f, $, m, T = Pt.length;
|
|
20353
|
-
if (t1(b._isAMomentObject) || (c._isAMomentObject = b._isAMomentObject), t1(b._i) || (c._i = b._i), t1(b._f) || (c._f = b._f), t1(b._l) || (c._l = b._l), t1(b._strict) || (c._strict = b._strict), t1(b._tzm) || (c._tzm = b._tzm), t1(b._isUTC) || (c._isUTC = b._isUTC), t1(b._offset) || (c._offset = b._offset), t1(b._pf) || (c._pf =
|
|
20353
|
+
if (t1(b._isAMomentObject) || (c._isAMomentObject = b._isAMomentObject), t1(b._i) || (c._i = b._i), t1(b._f) || (c._f = b._f), t1(b._l) || (c._l = b._l), t1(b._strict) || (c._strict = b._strict), t1(b._tzm) || (c._tzm = b._tzm), t1(b._isUTC) || (c._isUTC = b._isUTC), t1(b._offset) || (c._offset = b._offset), t1(b._pf) || (c._pf = z0(b)), t1(b._locale) || (c._locale = b._locale), T > 0)
|
|
20354
20354
|
for (f = 0; f < T; f++)
|
|
20355
20355
|
$ = Pt[f], m = b[$], t1(m) || (c[$] = m);
|
|
20356
20356
|
return c;
|
|
20357
20357
|
}
|
|
20358
20358
|
function be(c) {
|
|
20359
|
-
zt(this, c), this._d = new Date(c._d != null ? c._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Ye === !1 && (Ye = !0,
|
|
20359
|
+
zt(this, c), this._d = new Date(c._d != null ? c._d.getTime() : NaN), this.isValid() || (this._d = /* @__PURE__ */ new Date(NaN)), Ye === !1 && (Ye = !0, Z.updateOffset(this), Ye = !1);
|
|
20360
20360
|
}
|
|
20361
20361
|
function b1(c) {
|
|
20362
20362
|
return c instanceof be || c != null && c._isAMomentObject != null;
|
|
20363
20363
|
}
|
|
20364
20364
|
function _r(c) {
|
|
20365
|
-
|
|
20365
|
+
Z.suppressDeprecationWarnings === !1 && typeof console < "u" && console.warn && console.warn("Deprecation warning: " + c);
|
|
20366
20366
|
}
|
|
20367
20367
|
function o1(c, b) {
|
|
20368
20368
|
var f = !0;
|
|
20369
20369
|
return W1(function() {
|
|
20370
|
-
if (
|
|
20371
|
-
var $ = [], m, T, C,
|
|
20372
|
-
for (T = 0; T <
|
|
20370
|
+
if (Z.deprecationHandler != null && Z.deprecationHandler(null, c), f) {
|
|
20371
|
+
var $ = [], m, T, C, x = arguments.length;
|
|
20372
|
+
for (T = 0; T < x; T++) {
|
|
20373
20373
|
if (m = "", typeof arguments[T] == "object") {
|
|
20374
20374
|
m += `
|
|
20375
20375
|
[` + T + "] ";
|
|
@@ -20391,10 +20391,10 @@ Arguments: ` + Array.prototype.slice.call($).join("") + `
|
|
|
20391
20391
|
}
|
|
20392
20392
|
var Jt = {};
|
|
20393
20393
|
function dr(c, b) {
|
|
20394
|
-
|
|
20394
|
+
Z.deprecationHandler != null && Z.deprecationHandler(c, b), Jt[c] || (_r(b), Jt[c] = !0);
|
|
20395
20395
|
}
|
|
20396
|
-
|
|
20397
|
-
|
|
20396
|
+
Z.suppressDeprecationWarnings = !1;
|
|
20397
|
+
Z.deprecationHandler = null;
|
|
20398
20398
|
function D1(c) {
|
|
20399
20399
|
return typeof Function < "u" && c instanceof Function || Object.prototype.toString.call(c) === "[object Function]";
|
|
20400
20400
|
}
|
|
@@ -20618,7 +20618,7 @@ function Kn(c) {
|
|
|
20618
20618
|
}
|
|
20619
20619
|
var Or = /\d/, n1 = /\d\d/, Ar = /\d{3}/, ft = /\d{4}/, Be = /[+-]?\d{6}/, B0 = /\d\d?/, Dr = /\d\d\d\d?/, fr = /\d\d\d\d\d\d?/, Ne = /\d{1,3}/, $t = /\d{1,4}/, xe = /[+-]?\d{1,6}/, ee = /\d+/, we = /[+-]?\d+/, Zn = /Z|[+-]\d\d:?\d\d/gi, ve = /Z|[+-]\d\d(?::?\d\d)?/gi, ea = /[+-]?\d+(\.\d{1,3})?/, _e = /[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i, te = /^[1-9]\d?/, yt = /^([1-9]\d|\d)/, Re;
|
|
20620
20620
|
Re = {};
|
|
20621
|
-
function
|
|
20621
|
+
function r0(c, b, f) {
|
|
20622
20622
|
Re[c] = D1(b) ? b : function($, m) {
|
|
20623
20623
|
return $ && f ? f : b;
|
|
20624
20624
|
};
|
|
@@ -20676,17 +20676,17 @@ i0(0, ["YY", 2], 0, function() {
|
|
|
20676
20676
|
i0(0, ["YYYY", 4], 0, "year");
|
|
20677
20677
|
i0(0, ["YYYYY", 5], 0, "year");
|
|
20678
20678
|
i0(0, ["YYYYYY", 6, !0], 0, "year");
|
|
20679
|
-
|
|
20680
|
-
|
|
20681
|
-
|
|
20682
|
-
|
|
20683
|
-
|
|
20679
|
+
r0("Y", we);
|
|
20680
|
+
r0("YY", B0, n1);
|
|
20681
|
+
r0("YYYY", $t, ft);
|
|
20682
|
+
r0("YYYYY", xe, Be);
|
|
20683
|
+
r0("YYYYYY", xe, Be);
|
|
20684
20684
|
C0(["YYYYY", "YYYYYY"], K0);
|
|
20685
20685
|
C0("YYYY", function(c, b) {
|
|
20686
|
-
b[K0] = c.length === 2 ?
|
|
20686
|
+
b[K0] = c.length === 2 ? Z.parseTwoDigitYear(c) : $0(c);
|
|
20687
20687
|
});
|
|
20688
20688
|
C0("YY", function(c, b) {
|
|
20689
|
-
b[K0] =
|
|
20689
|
+
b[K0] = Z.parseTwoDigitYear(c);
|
|
20690
20690
|
});
|
|
20691
20691
|
C0("Y", function(c, b) {
|
|
20692
20692
|
b[K0] = parseInt(c, 10);
|
|
@@ -20694,7 +20694,7 @@ C0("Y", function(c, b) {
|
|
|
20694
20694
|
function ie(c) {
|
|
20695
20695
|
return Pe(c) ? 366 : 365;
|
|
20696
20696
|
}
|
|
20697
|
-
|
|
20697
|
+
Z.parseTwoDigitYear = function(c) {
|
|
20698
20698
|
return $0(c) + ($0(c) > 68 ? 1900 : 2e3);
|
|
20699
20699
|
};
|
|
20700
20700
|
var $r = re("FullYear", !0);
|
|
@@ -20703,7 +20703,7 @@ function ia() {
|
|
|
20703
20703
|
}
|
|
20704
20704
|
function re(c, b) {
|
|
20705
20705
|
return function(f) {
|
|
20706
|
-
return f != null ? (yr(this, c, f),
|
|
20706
|
+
return f != null ? (yr(this, c, f), Z.updateOffset(this, b), this) : se(this, c);
|
|
20707
20707
|
};
|
|
20708
20708
|
}
|
|
20709
20709
|
function se(c, b) {
|
|
@@ -20732,7 +20732,7 @@ function se(c, b) {
|
|
|
20732
20732
|
}
|
|
20733
20733
|
}
|
|
20734
20734
|
function yr(c, b, f) {
|
|
20735
|
-
var $, m, T, C,
|
|
20735
|
+
var $, m, T, C, x;
|
|
20736
20736
|
if (!(!c.isValid() || isNaN(f))) {
|
|
20737
20737
|
switch ($ = c._d, m = c._isUTC, b) {
|
|
20738
20738
|
case "Milliseconds":
|
|
@@ -20750,7 +20750,7 @@ function yr(c, b, f) {
|
|
|
20750
20750
|
default:
|
|
20751
20751
|
return;
|
|
20752
20752
|
}
|
|
20753
|
-
T = f, C = c.month(),
|
|
20753
|
+
T = f, C = c.month(), x = c.date(), x = x === 29 && C === 1 && !Pe(T) ? 28 : x, m ? $.setUTCFullYear(T, C, x) : $.setFullYear(T, C, x);
|
|
20754
20754
|
}
|
|
20755
20755
|
}
|
|
20756
20756
|
function sa(c) {
|
|
@@ -20792,12 +20792,12 @@ i0("MMM", 0, 0, function(c) {
|
|
|
20792
20792
|
i0("MMMM", 0, 0, function(c) {
|
|
20793
20793
|
return this.localeData().months(this, c);
|
|
20794
20794
|
});
|
|
20795
|
-
|
|
20796
|
-
|
|
20797
|
-
|
|
20795
|
+
r0("M", B0, te);
|
|
20796
|
+
r0("MM", B0, n1);
|
|
20797
|
+
r0("MMM", function(c, b) {
|
|
20798
20798
|
return b.monthsShortRegex(c);
|
|
20799
20799
|
});
|
|
20800
|
-
|
|
20800
|
+
r0("MMMM", function(c, b) {
|
|
20801
20801
|
return b.monthsRegex(c);
|
|
20802
20802
|
});
|
|
20803
20803
|
C0(["M", "MM"], function(c, b) {
|
|
@@ -20805,7 +20805,7 @@ C0(["M", "MM"], function(c, b) {
|
|
|
20805
20805
|
});
|
|
20806
20806
|
C0(["MMM", "MMMM"], function(c, b, f, $) {
|
|
20807
20807
|
var m = f._locale.monthsParse(c, $, f._strict);
|
|
20808
|
-
m != null ? b[m1] = m :
|
|
20808
|
+
m != null ? b[m1] = m : z0(f).invalidMonth = c;
|
|
20809
20809
|
});
|
|
20810
20810
|
var pa = "January_February_March_April_May_June_July_August_September_October_November_December".split(
|
|
20811
20811
|
"_"
|
|
@@ -20858,7 +20858,7 @@ function gr(c, b) {
|
|
|
20858
20858
|
return $ = $ < 29 ? $ : Math.min($, mt(c.year(), f)), c._isUTC ? c._d.setUTCMonth(f, $) : c._d.setMonth(f, $), c;
|
|
20859
20859
|
}
|
|
20860
20860
|
function hr(c) {
|
|
20861
|
-
return c != null ? (gr(this, c),
|
|
20861
|
+
return c != null ? (gr(this, c), Z.updateOffset(this, !0), this) : se(this, "Month");
|
|
20862
20862
|
}
|
|
20863
20863
|
function Oa() {
|
|
20864
20864
|
return mt(this.year(), this.month());
|
|
@@ -20870,12 +20870,12 @@ function Da(c) {
|
|
|
20870
20870
|
return this._monthsParseExact ? (h0(this, "_monthsRegex") || Sr.call(this), c ? this._monthsStrictRegex : this._monthsRegex) : (h0(this, "_monthsRegex") || (this._monthsRegex = Ma), this._monthsStrictRegex && c ? this._monthsStrictRegex : this._monthsRegex);
|
|
20871
20871
|
}
|
|
20872
20872
|
function Sr() {
|
|
20873
|
-
function c(J,
|
|
20874
|
-
return
|
|
20873
|
+
function c(J, w) {
|
|
20874
|
+
return w.length - J.length;
|
|
20875
20875
|
}
|
|
20876
|
-
var b = [], f = [], $ = [], m, T, C,
|
|
20876
|
+
var b = [], f = [], $ = [], m, T, C, x;
|
|
20877
20877
|
for (m = 0; m < 12; m++)
|
|
20878
|
-
T = A1([2e3, m]), C = g1(this.monthsShort(T, "")),
|
|
20878
|
+
T = A1([2e3, m]), C = g1(this.monthsShort(T, "")), x = g1(this.months(T, "")), b.push(C), f.push(x), $.push(x), $.push(C);
|
|
20879
20879
|
b.sort(c), f.sort(c), $.sort(c), this._monthsRegex = new RegExp("^(" + $.join("|") + ")", "i"), this._monthsShortRegex = this._monthsRegex, this._monthsStrictRegex = new RegExp(
|
|
20880
20880
|
"^(" + f.join("|") + ")",
|
|
20881
20881
|
"i"
|
|
@@ -20885,8 +20885,8 @@ function Sr() {
|
|
|
20885
20885
|
);
|
|
20886
20886
|
}
|
|
20887
20887
|
function fa(c, b, f, $, m, T, C) {
|
|
20888
|
-
var
|
|
20889
|
-
return c < 100 && c >= 0 ? (
|
|
20888
|
+
var x;
|
|
20889
|
+
return c < 100 && c >= 0 ? (x = new Date(c + 400, b, f, $, m, T, C), isFinite(x.getFullYear()) && x.setFullYear(c)) : x = new Date(c, b, f, $, m, T, C), x;
|
|
20890
20890
|
}
|
|
20891
20891
|
function ue(c) {
|
|
20892
20892
|
var b, f;
|
|
@@ -20897,10 +20897,10 @@ function Ce(c, b, f) {
|
|
|
20897
20897
|
return -m + $ - 1;
|
|
20898
20898
|
}
|
|
20899
20899
|
function Tr(c, b, f, $, m) {
|
|
20900
|
-
var T = (7 + f - $) % 7, C = Ce(c, $, m),
|
|
20901
|
-
return
|
|
20900
|
+
var T = (7 + f - $) % 7, C = Ce(c, $, m), x = 1 + 7 * (b - 1) + T + C, J, w;
|
|
20901
|
+
return x <= 0 ? (J = c - 1, w = ie(J) + x) : x > ie(c) ? (J = c + 1, w = x - ie(c)) : (J = c, w = x), {
|
|
20902
20902
|
year: J,
|
|
20903
|
-
dayOfYear:
|
|
20903
|
+
dayOfYear: w
|
|
20904
20904
|
};
|
|
20905
20905
|
}
|
|
20906
20906
|
function le(c, b, f) {
|
|
@@ -20916,10 +20916,10 @@ function h1(c, b, f) {
|
|
|
20916
20916
|
}
|
|
20917
20917
|
i0("w", ["ww", 2], "wo", "week");
|
|
20918
20918
|
i0("W", ["WW", 2], "Wo", "isoWeek");
|
|
20919
|
-
|
|
20920
|
-
|
|
20921
|
-
|
|
20922
|
-
|
|
20919
|
+
r0("w", B0, te);
|
|
20920
|
+
r0("ww", B0, n1);
|
|
20921
|
+
r0("W", B0, te);
|
|
20922
|
+
r0("WW", B0, n1);
|
|
20923
20923
|
de(
|
|
20924
20924
|
["w", "ww", "W", "WW"],
|
|
20925
20925
|
function(c, b, f, $) {
|
|
@@ -20961,21 +20961,21 @@ i0("dddd", 0, 0, function(c) {
|
|
|
20961
20961
|
});
|
|
20962
20962
|
i0("e", 0, 0, "weekday");
|
|
20963
20963
|
i0("E", 0, 0, "isoWeekday");
|
|
20964
|
-
|
|
20965
|
-
|
|
20966
|
-
|
|
20967
|
-
|
|
20964
|
+
r0("d", B0);
|
|
20965
|
+
r0("e", B0);
|
|
20966
|
+
r0("E", B0);
|
|
20967
|
+
r0("dd", function(c, b) {
|
|
20968
20968
|
return b.weekdaysMinRegex(c);
|
|
20969
20969
|
});
|
|
20970
|
-
|
|
20970
|
+
r0("ddd", function(c, b) {
|
|
20971
20971
|
return b.weekdaysShortRegex(c);
|
|
20972
20972
|
});
|
|
20973
|
-
|
|
20973
|
+
r0("dddd", function(c, b) {
|
|
20974
20974
|
return b.weekdaysRegex(c);
|
|
20975
20975
|
});
|
|
20976
20976
|
de(["dd", "ddd", "dddd"], function(c, b, f, $) {
|
|
20977
20977
|
var m = f._locale.weekdaysParse(c, $, f._strict);
|
|
20978
|
-
m != null ? b.d = m :
|
|
20978
|
+
m != null ? b.d = m : z0(f).invalidWeekday = c;
|
|
20979
20979
|
});
|
|
20980
20980
|
de(["d", "e", "E"], function(c, b, f, $) {
|
|
20981
20981
|
b[$] = $0(c);
|
|
@@ -21068,12 +21068,12 @@ function Xa(c) {
|
|
|
21068
21068
|
return this._weekdaysParseExact ? (h0(this, "_weekdaysRegex") || gt.call(this), c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex) : (h0(this, "_weekdaysMinRegex") || (this._weekdaysMinRegex = La), this._weekdaysMinStrictRegex && c ? this._weekdaysMinStrictRegex : this._weekdaysMinRegex);
|
|
21069
21069
|
}
|
|
21070
21070
|
function gt() {
|
|
21071
|
-
function c(H,
|
|
21072
|
-
return
|
|
21071
|
+
function c(H, G) {
|
|
21072
|
+
return G.length - H.length;
|
|
21073
21073
|
}
|
|
21074
|
-
var b = [], f = [], $ = [], m = [], T, C,
|
|
21074
|
+
var b = [], f = [], $ = [], m = [], T, C, x, J, w;
|
|
21075
21075
|
for (T = 0; T < 7; T++)
|
|
21076
|
-
C = A1([2e3, 1]).day(T),
|
|
21076
|
+
C = A1([2e3, 1]).day(T), x = g1(this.weekdaysMin(C, "")), J = g1(this.weekdaysShort(C, "")), w = g1(this.weekdays(C, "")), b.push(x), f.push(J), $.push(w), m.push(x), m.push(J), m.push(w);
|
|
21077
21077
|
b.sort(c), f.sort(c), $.sort(c), m.sort(c), this._weekdaysRegex = new RegExp("^(" + m.join("|") + ")", "i"), this._weekdaysShortRegex = this._weekdaysRegex, this._weekdaysMinRegex = this._weekdaysRegex, this._weekdaysStrictRegex = new RegExp(
|
|
21078
21078
|
"^(" + $.join("|") + ")",
|
|
21079
21079
|
"i"
|
|
@@ -21120,18 +21120,18 @@ Rr("A", !1);
|
|
|
21120
21120
|
function Cr(c, b) {
|
|
21121
21121
|
return b._meridiemParse;
|
|
21122
21122
|
}
|
|
21123
|
-
|
|
21124
|
-
|
|
21125
|
-
|
|
21126
|
-
|
|
21127
|
-
|
|
21128
|
-
|
|
21129
|
-
|
|
21130
|
-
|
|
21131
|
-
|
|
21132
|
-
|
|
21133
|
-
|
|
21134
|
-
|
|
21123
|
+
r0("a", Cr);
|
|
21124
|
+
r0("A", Cr);
|
|
21125
|
+
r0("H", B0, yt);
|
|
21126
|
+
r0("h", B0, te);
|
|
21127
|
+
r0("k", B0, te);
|
|
21128
|
+
r0("HH", B0, n1);
|
|
21129
|
+
r0("hh", B0, n1);
|
|
21130
|
+
r0("kk", B0, n1);
|
|
21131
|
+
r0("hmm", Dr);
|
|
21132
|
+
r0("hmmss", fr);
|
|
21133
|
+
r0("Hmm", Dr);
|
|
21134
|
+
r0("Hmmss", fr);
|
|
21135
21135
|
C0(["H", "HH"], V0);
|
|
21136
21136
|
C0(["k", "kk"], function(c, b, f) {
|
|
21137
21137
|
var $ = $0(c);
|
|
@@ -21141,15 +21141,15 @@ C0(["a", "A"], function(c, b, f) {
|
|
|
21141
21141
|
f._isPm = f._locale.isPM(c), f._meridiem = c;
|
|
21142
21142
|
});
|
|
21143
21143
|
C0(["h", "hh"], function(c, b, f) {
|
|
21144
|
-
b[V0] = $0(c),
|
|
21144
|
+
b[V0] = $0(c), z0(f).bigHour = !0;
|
|
21145
21145
|
});
|
|
21146
21146
|
C0("hmm", function(c, b, f) {
|
|
21147
21147
|
var $ = c.length - 2;
|
|
21148
|
-
b[V0] = $0(c.substr(0, $)), b[c1] = $0(c.substr($)),
|
|
21148
|
+
b[V0] = $0(c.substr(0, $)), b[c1] = $0(c.substr($)), z0(f).bigHour = !0;
|
|
21149
21149
|
});
|
|
21150
21150
|
C0("hmmss", function(c, b, f) {
|
|
21151
21151
|
var $ = c.length - 4, m = c.length - 2;
|
|
21152
|
-
b[V0] = $0(c.substr(0, $)), b[c1] = $0(c.substr($, 2)), b[q1] = $0(c.substr(m)),
|
|
21152
|
+
b[V0] = $0(c.substr(0, $)), b[c1] = $0(c.substr($, 2)), b[q1] = $0(c.substr(m)), z0(f).bigHour = !0;
|
|
21153
21153
|
});
|
|
21154
21154
|
C0("Hmm", function(c, b, f) {
|
|
21155
21155
|
var $ = c.length - 2;
|
|
@@ -21271,7 +21271,7 @@ function eo() {
|
|
|
21271
21271
|
}
|
|
21272
21272
|
function Tt(c) {
|
|
21273
21273
|
var b, f = c._a;
|
|
21274
|
-
return f &&
|
|
21274
|
+
return f && z0(c).overflow === -2 && (b = f[m1] < 0 || f[m1] > 11 ? m1 : f[z1] < 1 || f[z1] > mt(f[K0], f[m1]) ? z1 : f[V0] < 0 || f[V0] > 24 || f[V0] === 24 && (f[c1] !== 0 || f[q1] !== 0 || f[w1] !== 0) ? V0 : f[c1] < 0 || f[c1] > 59 ? c1 : f[q1] < 0 || f[q1] > 59 ? q1 : f[w1] < 0 || f[w1] > 999 ? w1 : -1, z0(c)._overflowDayOfYear && (b < K0 || b > z1) && (b = z1), z0(c)._overflowWeeks && b === -1 && (b = aa), z0(c)._overflowWeekday && b === -1 && (b = oa), z0(c).overflow = b), c;
|
|
21275
21275
|
}
|
|
21276
21276
|
var to = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, ro = /^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/, no = /Z|[+-]\d\d(?::?\d\d)?/, $e = [
|
|
21277
21277
|
["YYYYYY-MM-DD", /[+-]\d{6}-\d\d-\d\d/],
|
|
@@ -21310,9 +21310,9 @@ var to = /^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(
|
|
|
21310
21310
|
PST: -8 * 60
|
|
21311
21311
|
};
|
|
21312
21312
|
function Lr(c) {
|
|
21313
|
-
var b, f, $ = c._i, m = to.exec($) || ro.exec($), T, C,
|
|
21313
|
+
var b, f, $ = c._i, m = to.exec($) || ro.exec($), T, C, x, J, w = $e.length, H = Ge.length;
|
|
21314
21314
|
if (m) {
|
|
21315
|
-
for (
|
|
21315
|
+
for (z0(c).iso = !0, b = 0, f = w; b < f; b++)
|
|
21316
21316
|
if ($e[b][1].exec(m[1])) {
|
|
21317
21317
|
C = $e[b][0], T = $e[b][2] !== !1;
|
|
21318
21318
|
break;
|
|
@@ -21324,15 +21324,15 @@ function Lr(c) {
|
|
|
21324
21324
|
if (m[3]) {
|
|
21325
21325
|
for (b = 0, f = H; b < f; b++)
|
|
21326
21326
|
if (Ge[b][1].exec(m[3])) {
|
|
21327
|
-
|
|
21327
|
+
x = (m[2] || " ") + Ge[b][0];
|
|
21328
21328
|
break;
|
|
21329
21329
|
}
|
|
21330
|
-
if (
|
|
21330
|
+
if (x == null) {
|
|
21331
21331
|
c._isValid = !1;
|
|
21332
21332
|
return;
|
|
21333
21333
|
}
|
|
21334
21334
|
}
|
|
21335
|
-
if (!T &&
|
|
21335
|
+
if (!T && x != null) {
|
|
21336
21336
|
c._isValid = !1;
|
|
21337
21337
|
return;
|
|
21338
21338
|
}
|
|
@@ -21343,7 +21343,7 @@ function Lr(c) {
|
|
|
21343
21343
|
c._isValid = !1;
|
|
21344
21344
|
return;
|
|
21345
21345
|
}
|
|
21346
|
-
c._f = C + (
|
|
21346
|
+
c._f = C + (x || "") + (J || ""), Rt(c);
|
|
21347
21347
|
} else
|
|
21348
21348
|
c._isValid = !1;
|
|
21349
21349
|
}
|
|
@@ -21372,7 +21372,7 @@ function po(c, b, f) {
|
|
|
21372
21372
|
b[2]
|
|
21373
21373
|
).getDay();
|
|
21374
21374
|
if ($ !== m)
|
|
21375
|
-
return
|
|
21375
|
+
return z0(f).weekdayMismatch = !0, f._isValid = !1, !1;
|
|
21376
21376
|
}
|
|
21377
21377
|
return !0;
|
|
21378
21378
|
}
|
|
@@ -21396,7 +21396,7 @@ function Ir(c) {
|
|
|
21396
21396
|
b[7]
|
|
21397
21397
|
), !po(b[1], f, c))
|
|
21398
21398
|
return;
|
|
21399
|
-
c._a = f, c._tzm = co(b[8], b[9], b[10]), c._d = ue.apply(null, c._a), c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm),
|
|
21399
|
+
c._a = f, c._tzm = co(b[8], b[9], b[10]), c._d = ue.apply(null, c._a), c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), z0(c).rfc2822 = !0;
|
|
21400
21400
|
} else
|
|
21401
21401
|
c._isValid = !1;
|
|
21402
21402
|
}
|
|
@@ -21414,9 +21414,9 @@ function Mo(c) {
|
|
|
21414
21414
|
delete c._isValid;
|
|
21415
21415
|
else
|
|
21416
21416
|
return;
|
|
21417
|
-
c._strict ? c._isValid = !1 :
|
|
21417
|
+
c._strict ? c._isValid = !1 : Z.createFromInputFallback(c);
|
|
21418
21418
|
}
|
|
21419
|
-
|
|
21419
|
+
Z.createFromInputFallback = o1(
|
|
21420
21420
|
"value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",
|
|
21421
21421
|
function(c) {
|
|
21422
21422
|
c._d = /* @__PURE__ */ new Date(c._i + (c._useUTC ? " UTC" : ""));
|
|
@@ -21426,7 +21426,7 @@ function U1(c, b, f) {
|
|
|
21426
21426
|
return c ?? b ?? f;
|
|
21427
21427
|
}
|
|
21428
21428
|
function bo(c) {
|
|
21429
|
-
var b = new Date(
|
|
21429
|
+
var b = new Date(Z.now());
|
|
21430
21430
|
return c._useUTC ? [
|
|
21431
21431
|
b.getUTCFullYear(),
|
|
21432
21432
|
b.getUTCMonth(),
|
|
@@ -21436,61 +21436,61 @@ function bo(c) {
|
|
|
21436
21436
|
function Et(c) {
|
|
21437
21437
|
var b, f, $ = [], m, T, C;
|
|
21438
21438
|
if (!c._d) {
|
|
21439
|
-
for (m = bo(c), c._w && c._a[z1] == null && c._a[m1] == null && _o(c), c._dayOfYear != null && (C = U1(c._a[K0], m[K0]), (c._dayOfYear > ie(C) || c._dayOfYear === 0) && (
|
|
21439
|
+
for (m = bo(c), c._w && c._a[z1] == null && c._a[m1] == null && _o(c), c._dayOfYear != null && (C = U1(c._a[K0], m[K0]), (c._dayOfYear > ie(C) || c._dayOfYear === 0) && (z0(c)._overflowDayOfYear = !0), f = ue(C, 0, c._dayOfYear), c._a[m1] = f.getUTCMonth(), c._a[z1] = f.getUTCDate()), b = 0; b < 3 && c._a[b] == null; ++b)
|
|
21440
21440
|
c._a[b] = $[b] = m[b];
|
|
21441
21441
|
for (; b < 7; b++)
|
|
21442
21442
|
c._a[b] = $[b] = c._a[b] == null ? b === 2 ? 1 : 0 : c._a[b];
|
|
21443
21443
|
c._a[V0] === 24 && c._a[c1] === 0 && c._a[q1] === 0 && c._a[w1] === 0 && (c._nextDay = !0, c._a[V0] = 0), c._d = (c._useUTC ? ue : fa).apply(
|
|
21444
21444
|
null,
|
|
21445
21445
|
$
|
|
21446
|
-
), T = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[V0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== T && (
|
|
21446
|
+
), T = c._useUTC ? c._d.getUTCDay() : c._d.getDay(), c._tzm != null && c._d.setUTCMinutes(c._d.getUTCMinutes() - c._tzm), c._nextDay && (c._a[V0] = 24), c._w && typeof c._w.d < "u" && c._w.d !== T && (z0(c).weekdayMismatch = !0);
|
|
21447
21447
|
}
|
|
21448
21448
|
}
|
|
21449
21449
|
function _o(c) {
|
|
21450
|
-
var b, f, $, m, T, C,
|
|
21450
|
+
var b, f, $, m, T, C, x, J, w;
|
|
21451
21451
|
b = c._w, b.GG != null || b.W != null || b.E != null ? (T = 1, C = 4, f = U1(
|
|
21452
21452
|
b.GG,
|
|
21453
21453
|
c._a[K0],
|
|
21454
21454
|
le(F0(), 1, 4).year
|
|
21455
|
-
), $ = U1(b.W, 1), m = U1(b.E, 1), (m < 1 || m > 7) && (J = !0)) : (T = c._locale._week.dow, C = c._locale._week.doy,
|
|
21455
|
+
), $ = U1(b.W, 1), m = U1(b.E, 1), (m < 1 || m > 7) && (J = !0)) : (T = c._locale._week.dow, C = c._locale._week.doy, w = le(F0(), T, C), f = U1(b.gg, c._a[K0], w.year), $ = U1(b.w, w.week), b.d != null ? (m = b.d, (m < 0 || m > 6) && (J = !0)) : b.e != null ? (m = b.e + T, (b.e < 0 || b.e > 6) && (J = !0)) : m = T), $ < 1 || $ > h1(f, T, C) ? z0(c)._overflowWeeks = !0 : J != null ? z0(c)._overflowWeekday = !0 : (x = Tr(f, $, m, T, C), c._a[K0] = x.year, c._dayOfYear = x.dayOfYear);
|
|
21456
21456
|
}
|
|
21457
|
-
|
|
21457
|
+
Z.ISO_8601 = function() {
|
|
21458
21458
|
};
|
|
21459
|
-
|
|
21459
|
+
Z.RFC_2822 = function() {
|
|
21460
21460
|
};
|
|
21461
21461
|
function Rt(c) {
|
|
21462
|
-
if (c._f ===
|
|
21462
|
+
if (c._f === Z.ISO_8601) {
|
|
21463
21463
|
Lr(c);
|
|
21464
21464
|
return;
|
|
21465
21465
|
}
|
|
21466
|
-
if (c._f ===
|
|
21466
|
+
if (c._f === Z.RFC_2822) {
|
|
21467
21467
|
Ir(c);
|
|
21468
21468
|
return;
|
|
21469
21469
|
}
|
|
21470
|
-
c._a = [],
|
|
21471
|
-
var b = "" + c._i, f, $, m, T, C,
|
|
21470
|
+
c._a = [], z0(c).empty = !0;
|
|
21471
|
+
var b = "" + c._i, f, $, m, T, C, x = b.length, J = 0, w, H;
|
|
21472
21472
|
for (m = zr(c._f, c._locale).match(At) || [], H = m.length, f = 0; f < H; f++)
|
|
21473
|
-
T = m[f], $ = (b.match(ta(T, c)) || [])[0], $ && (C = b.substr(0, b.indexOf($)), C.length > 0 &&
|
|
21473
|
+
T = m[f], $ = (b.match(ta(T, c)) || [])[0], $ && (C = b.substr(0, b.indexOf($)), C.length > 0 && z0(c).unusedInput.push(C), b = b.slice(
|
|
21474
21474
|
b.indexOf($) + $.length
|
|
21475
|
-
), J += $.length), V1[T] ? ($ ?
|
|
21476
|
-
|
|
21475
|
+
), J += $.length), V1[T] ? ($ ? z0(c).empty = !1 : z0(c).unusedTokens.push(T), na(T, $, c)) : c._strict && !$ && z0(c).unusedTokens.push(T);
|
|
21476
|
+
z0(c).charsLeftOver = x - J, b.length > 0 && z0(c).unusedInput.push(b), c._a[V0] <= 12 && z0(c).bigHour === !0 && c._a[V0] > 0 && (z0(c).bigHour = void 0), z0(c).parsedDateParts = c._a.slice(0), z0(c).meridiem = c._meridiem, c._a[V0] = zo(
|
|
21477
21477
|
c._locale,
|
|
21478
21478
|
c._a[V0],
|
|
21479
21479
|
c._meridiem
|
|
21480
|
-
),
|
|
21480
|
+
), w = z0(c).era, w !== null && (c._a[K0] = c._locale.erasConvertYear(w, c._a[K0])), Et(c), Tt(c);
|
|
21481
21481
|
}
|
|
21482
21482
|
function zo(c, b, f) {
|
|
21483
21483
|
var $;
|
|
21484
21484
|
return f == null ? b : c.meridiemHour != null ? c.meridiemHour(b, f) : (c.isPM != null && ($ = c.isPM(f), $ && b < 12 && (b += 12), !$ && b === 12 && (b = 0)), b);
|
|
21485
21485
|
}
|
|
21486
21486
|
function Oo(c) {
|
|
21487
|
-
var b, f, $, m, T, C,
|
|
21487
|
+
var b, f, $, m, T, C, x = !1, J = c._f.length;
|
|
21488
21488
|
if (J === 0) {
|
|
21489
|
-
|
|
21489
|
+
z0(c).invalidFormat = !0, c._d = /* @__PURE__ */ new Date(NaN);
|
|
21490
21490
|
return;
|
|
21491
21491
|
}
|
|
21492
21492
|
for (m = 0; m < J; m++)
|
|
21493
|
-
T = 0, C = !1, b = zt({}, c), c._useUTC != null && (b._useUTC = c._useUTC), b._f = c._f[m], Rt(b), dt(b) && (C = !0), T +=
|
|
21493
|
+
T = 0, C = !1, b = zt({}, c), c._useUTC != null && (b._useUTC = c._useUTC), b._f = c._f[m], Rt(b), dt(b) && (C = !0), T += z0(b).charsLeftOver, T += z0(b).unusedTokens.length * 10, z0(b).score = T, x ? T < $ && ($ = T, f = b) : ($ == null || T < $ || C) && ($ = T, f = b, C && (x = !0));
|
|
21494
21494
|
W1(c, f || b);
|
|
21495
21495
|
}
|
|
21496
21496
|
function Ao(c) {
|
|
@@ -21514,9 +21514,9 @@ function Fr(c) {
|
|
|
21514
21514
|
}
|
|
21515
21515
|
function fo(c) {
|
|
21516
21516
|
var b = c._i;
|
|
21517
|
-
t1(b) ? c._d = new Date(
|
|
21517
|
+
t1(b) ? c._d = new Date(Z.now()) : Me(b) ? c._d = new Date(b.valueOf()) : typeof b == "string" ? Mo(c) : M1(b) ? (c._a = br(b.slice(0), function(f) {
|
|
21518
21518
|
return parseInt(f, 10);
|
|
21519
|
-
}), Et(c)) : v1(b) ? Ao(c) : S1(b) ? c._d = new Date(b) :
|
|
21519
|
+
}), Et(c)) : v1(b) ? Ao(c) : S1(b) ? c._d = new Date(b) : Z.createFromInputFallback(c);
|
|
21520
21520
|
}
|
|
21521
21521
|
function Br(c, b, f, $, m) {
|
|
21522
21522
|
var T = {};
|
|
@@ -21587,10 +21587,10 @@ function To() {
|
|
|
21587
21587
|
return _1(NaN);
|
|
21588
21588
|
}
|
|
21589
21589
|
function He(c) {
|
|
21590
|
-
var b = Dt(c), f = b.year || 0, $ = b.quarter || 0, m = b.month || 0, T = b.week || b.isoWeek || 0, C = b.day || 0,
|
|
21591
|
-
this._isValid = ho(b), this._milliseconds = +H +
|
|
21590
|
+
var b = Dt(c), f = b.year || 0, $ = b.quarter || 0, m = b.month || 0, T = b.week || b.isoWeek || 0, C = b.day || 0, x = b.hour || 0, J = b.minute || 0, w = b.second || 0, H = b.millisecond || 0;
|
|
21591
|
+
this._isValid = ho(b), this._milliseconds = +H + w * 1e3 + // 1000
|
|
21592
21592
|
J * 6e4 + // 1000 * 60
|
|
21593
|
-
|
|
21593
|
+
x * 1e3 * 60 * 60, this._days = +C + T * 7, this._months = +m + $ * 3 + f * 12, this._data = {}, this._locale = T1(), this._bubble();
|
|
21594
21594
|
}
|
|
21595
21595
|
function ge(c) {
|
|
21596
21596
|
return c instanceof He;
|
|
@@ -21612,8 +21612,8 @@ function xr(c, b) {
|
|
|
21612
21612
|
}
|
|
21613
21613
|
xr("Z", ":");
|
|
21614
21614
|
xr("ZZ", "");
|
|
21615
|
-
|
|
21616
|
-
|
|
21615
|
+
r0("Z", ve);
|
|
21616
|
+
r0("ZZ", ve);
|
|
21617
21617
|
C0(["Z", "ZZ"], function(c, b, f) {
|
|
21618
21618
|
f._useUTC = !0, f._tzm = Ct(ve, c);
|
|
21619
21619
|
});
|
|
@@ -21624,12 +21624,12 @@ function Ct(c, b) {
|
|
|
21624
21624
|
}
|
|
21625
21625
|
function Wt(c, b) {
|
|
21626
21626
|
var f, $;
|
|
21627
|
-
return b._isUTC ? (f = b.clone(), $ = (b1(c) || Me(c) ? c.valueOf() : F0(c).valueOf()) - f.valueOf(), f._d.setTime(f._d.valueOf() + $),
|
|
21627
|
+
return b._isUTC ? (f = b.clone(), $ = (b1(c) || Me(c) ? c.valueOf() : F0(c).valueOf()) - f.valueOf(), f._d.setTime(f._d.valueOf() + $), Z.updateOffset(f, !1), f) : F0(c).local();
|
|
21628
21628
|
}
|
|
21629
21629
|
function ut(c) {
|
|
21630
21630
|
return -Math.round(c._d.getTimezoneOffset());
|
|
21631
21631
|
}
|
|
21632
|
-
|
|
21632
|
+
Z.updateOffset = function() {
|
|
21633
21633
|
};
|
|
21634
21634
|
function Co(c, b, f) {
|
|
21635
21635
|
var $ = this._offset || 0, m;
|
|
@@ -21645,7 +21645,7 @@ function Co(c, b, f) {
|
|
|
21645
21645
|
_1(c - $, "m"),
|
|
21646
21646
|
1,
|
|
21647
21647
|
!1
|
|
21648
|
-
) : this._changeInProgress || (this._changeInProgress = !0,
|
|
21648
|
+
) : this._changeInProgress || (this._changeInProgress = !0, Z.updateOffset(this, !0), this._changeInProgress = null)), this;
|
|
21649
21649
|
} else
|
|
21650
21650
|
return this._isUTC ? $ : ut(this);
|
|
21651
21651
|
}
|
|
@@ -21741,7 +21741,7 @@ function vr(c, b) {
|
|
|
21741
21741
|
}
|
|
21742
21742
|
function Pr(c, b, f, $) {
|
|
21743
21743
|
var m = b._milliseconds, T = st(b._days), C = st(b._months);
|
|
21744
|
-
c.isValid() && ($ = $ ?? !0, C && gr(c, se(c, "Month") + C * f), T && yr(c, "Date", se(c, "Date") + T * f), m && c._d.setTime(c._d.valueOf() + m * f), $ &&
|
|
21744
|
+
c.isValid() && ($ = $ ?? !0, C && gr(c, se(c, "Month") + C * f), T && yr(c, "Date", se(c, "Date") + T * f), m && c._d.setTime(c._d.valueOf() + m * f), $ && Z.updateOffset(c, T || C));
|
|
21745
21745
|
}
|
|
21746
21746
|
var Xo = vr(1, "add"), ko = vr(-1, "subtract");
|
|
21747
21747
|
function Jr(c) {
|
|
@@ -21806,7 +21806,7 @@ function Go(c, b) {
|
|
|
21806
21806
|
}
|
|
21807
21807
|
function jo(c, b) {
|
|
21808
21808
|
arguments.length === 1 && (arguments[0] ? Uo(arguments[0]) ? (c = arguments[0], b = void 0) : Vo(arguments[0]) && (b = arguments[0], c = void 0) : (c = void 0, b = void 0));
|
|
21809
|
-
var f = c || F0(), $ = Wt(f, this).startOf("day"), m =
|
|
21809
|
+
var f = c || F0(), $ = Wt(f, this).startOf("day"), m = Z.calendarFormat(this, $) || "sameElse", T = b && (D1(b[m]) ? b[m].call(this, f) : b[m]);
|
|
21810
21810
|
return this.format(
|
|
21811
21811
|
T || this.localeData().calendar(m, this, F0(f))
|
|
21812
21812
|
);
|
|
@@ -21878,8 +21878,8 @@ function he(c, b) {
|
|
|
21878
21878
|
var f = (b.year() - c.year()) * 12 + (b.month() - c.month()), $ = c.clone().add(f, "months"), m, T;
|
|
21879
21879
|
return b - $ < 0 ? (m = c.clone().add(f - 1, "months"), T = (b - $) / ($ - m)) : (m = c.clone().add(f + 1, "months"), T = (b - $) / (m - $)), -(f + T) || 0;
|
|
21880
21880
|
}
|
|
21881
|
-
|
|
21882
|
-
|
|
21881
|
+
Z.defaultFormat = "YYYY-MM-DDTHH:mm:ssZ";
|
|
21882
|
+
Z.defaultFormatUtc = "YYYY-MM-DDTHH:mm:ss[Z]";
|
|
21883
21883
|
function ii() {
|
|
21884
21884
|
return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ");
|
|
21885
21885
|
}
|
|
@@ -21902,7 +21902,7 @@ function ui() {
|
|
|
21902
21902
|
return this.isLocal() || (c = this.utcOffset() === 0 ? "moment.utc" : "moment.parseZone", b = "Z"), f = "[" + c + '("]', $ = 0 <= this.year() && this.year() <= 9999 ? "YYYY" : "YYYYYY", m = "-MM-DD[T]HH:mm:ss.SSS", T = b + '[")]', this.format(f + $ + m + T);
|
|
21903
21903
|
}
|
|
21904
21904
|
function li(c) {
|
|
21905
|
-
c || (c = this.isUtc() ?
|
|
21905
|
+
c || (c = this.isUtc() ? Z.defaultFormatUtc : Z.defaultFormat);
|
|
21906
21906
|
var b = qe(this, c);
|
|
21907
21907
|
return this.localeData().postformat(b);
|
|
21908
21908
|
}
|
|
@@ -21990,7 +21990,7 @@ function _i(c) {
|
|
|
21990
21990
|
b = this._d.valueOf(), b -= j1(b, We);
|
|
21991
21991
|
break;
|
|
21992
21992
|
}
|
|
21993
|
-
return this._d.setTime(b),
|
|
21993
|
+
return this._d.setTime(b), Z.updateOffset(this, !0), this;
|
|
21994
21994
|
}
|
|
21995
21995
|
function di(c) {
|
|
21996
21996
|
var b, f;
|
|
@@ -22041,7 +22041,7 @@ function di(c) {
|
|
|
22041
22041
|
b = this._d.valueOf(), b += We - j1(b, We) - 1;
|
|
22042
22042
|
break;
|
|
22043
22043
|
}
|
|
22044
|
-
return this._d.setTime(b),
|
|
22044
|
+
return this._d.setTime(b), Z.updateOffset(this, !0), this;
|
|
22045
22045
|
}
|
|
22046
22046
|
function zi() {
|
|
22047
22047
|
return this._d.valueOf() - (this._offset || 0) * 6e4;
|
|
@@ -22083,10 +22083,10 @@ function yi() {
|
|
|
22083
22083
|
return dt(this);
|
|
22084
22084
|
}
|
|
22085
22085
|
function mi() {
|
|
22086
|
-
return W1({},
|
|
22086
|
+
return W1({}, z0(this));
|
|
22087
22087
|
}
|
|
22088
22088
|
function qi() {
|
|
22089
|
-
return
|
|
22089
|
+
return z0(this).overflow;
|
|
22090
22090
|
}
|
|
22091
22091
|
function gi() {
|
|
22092
22092
|
return {
|
|
@@ -22106,23 +22106,23 @@ i0("y", ["y", 1], "yo", "eraYear");
|
|
|
22106
22106
|
i0("y", ["yy", 2], 0, "eraYear");
|
|
22107
22107
|
i0("y", ["yyy", 3], 0, "eraYear");
|
|
22108
22108
|
i0("y", ["yyyy", 4], 0, "eraYear");
|
|
22109
|
-
|
|
22110
|
-
|
|
22111
|
-
|
|
22112
|
-
|
|
22113
|
-
|
|
22109
|
+
r0("N", Lt);
|
|
22110
|
+
r0("NN", Lt);
|
|
22111
|
+
r0("NNN", Lt);
|
|
22112
|
+
r0("NNNN", Bi);
|
|
22113
|
+
r0("NNNNN", Ni);
|
|
22114
22114
|
C0(
|
|
22115
22115
|
["N", "NN", "NNN", "NNNN", "NNNNN"],
|
|
22116
22116
|
function(c, b, f, $) {
|
|
22117
22117
|
var m = f._locale.erasParse(c, $, f._strict);
|
|
22118
|
-
m ?
|
|
22118
|
+
m ? z0(f).era = m : z0(f).invalidEra = c;
|
|
22119
22119
|
}
|
|
22120
22120
|
);
|
|
22121
|
-
|
|
22122
|
-
|
|
22123
|
-
|
|
22124
|
-
|
|
22125
|
-
|
|
22121
|
+
r0("y", ee);
|
|
22122
|
+
r0("yy", ee);
|
|
22123
|
+
r0("yyy", ee);
|
|
22124
|
+
r0("yyyy", ee);
|
|
22125
|
+
r0("yo", xi);
|
|
22126
22126
|
C0(["y", "yy", "yyy", "yyyy"], K0);
|
|
22127
22127
|
C0(["yo"], function(c, b, f, $) {
|
|
22128
22128
|
var m;
|
|
@@ -22133,7 +22133,7 @@ function hi(c, b) {
|
|
|
22133
22133
|
for (f = 0, $ = T.length; f < $; ++f) {
|
|
22134
22134
|
switch (typeof T[f].since) {
|
|
22135
22135
|
case "string":
|
|
22136
|
-
m =
|
|
22136
|
+
m = Z(T[f].since).startOf("day"), T[f].since = m.valueOf();
|
|
22137
22137
|
break;
|
|
22138
22138
|
}
|
|
22139
22139
|
switch (typeof T[f].until) {
|
|
@@ -22141,21 +22141,21 @@ function hi(c, b) {
|
|
|
22141
22141
|
T[f].until = 1 / 0;
|
|
22142
22142
|
break;
|
|
22143
22143
|
case "string":
|
|
22144
|
-
m =
|
|
22144
|
+
m = Z(T[f].until).startOf("day").valueOf(), T[f].until = m.valueOf();
|
|
22145
22145
|
break;
|
|
22146
22146
|
}
|
|
22147
22147
|
}
|
|
22148
22148
|
return T;
|
|
22149
22149
|
}
|
|
22150
22150
|
function Si(c, b, f) {
|
|
22151
|
-
var $, m, T = this.eras(), C,
|
|
22151
|
+
var $, m, T = this.eras(), C, x, J;
|
|
22152
22152
|
for (c = c.toUpperCase(), $ = 0, m = T.length; $ < m; ++$)
|
|
22153
|
-
if (C = T[$].name.toUpperCase(),
|
|
22153
|
+
if (C = T[$].name.toUpperCase(), x = T[$].abbr.toUpperCase(), J = T[$].narrow.toUpperCase(), f)
|
|
22154
22154
|
switch (b) {
|
|
22155
22155
|
case "N":
|
|
22156
22156
|
case "NN":
|
|
22157
22157
|
case "NNN":
|
|
22158
|
-
if (
|
|
22158
|
+
if (x === c)
|
|
22159
22159
|
return T[$];
|
|
22160
22160
|
break;
|
|
22161
22161
|
case "NNNN":
|
|
@@ -22167,12 +22167,12 @@ function Si(c, b, f) {
|
|
|
22167
22167
|
return T[$];
|
|
22168
22168
|
break;
|
|
22169
22169
|
}
|
|
22170
|
-
else if ([C,
|
|
22170
|
+
else if ([C, x, J].indexOf(c) >= 0)
|
|
22171
22171
|
return T[$];
|
|
22172
22172
|
}
|
|
22173
22173
|
function Ti(c, b) {
|
|
22174
22174
|
var f = c.since <= c.until ? 1 : -1;
|
|
22175
|
-
return b === void 0 ?
|
|
22175
|
+
return b === void 0 ? Z(c.since).year() : Z(c.since).year() + (b - c.offset) * f;
|
|
22176
22176
|
}
|
|
22177
22177
|
function Ei() {
|
|
22178
22178
|
var c, b, f, $ = this.localeData().eras();
|
|
@@ -22199,7 +22199,7 @@ function Wi() {
|
|
|
22199
22199
|
var c, b, f, $, m = this.localeData().eras();
|
|
22200
22200
|
for (c = 0, b = m.length; c < b; ++c)
|
|
22201
22201
|
if (f = m[c].since <= m[c].until ? 1 : -1, $ = this.clone().startOf("day").valueOf(), m[c].since <= $ && $ <= m[c].until || m[c].until <= $ && $ <= m[c].since)
|
|
22202
|
-
return (this.year() -
|
|
22202
|
+
return (this.year() - Z(m[c].since).year()) * f + m[c].offset;
|
|
22203
22203
|
return this.year();
|
|
22204
22204
|
}
|
|
22205
22205
|
function Li(c) {
|
|
@@ -22224,9 +22224,9 @@ function xi(c, b) {
|
|
|
22224
22224
|
return b._eraYearOrdinalRegex || ee;
|
|
22225
22225
|
}
|
|
22226
22226
|
function It() {
|
|
22227
|
-
var c = [], b = [], f = [], $ = [], m, T, C,
|
|
22228
|
-
for (m = 0, T =
|
|
22229
|
-
C = g1(
|
|
22227
|
+
var c = [], b = [], f = [], $ = [], m, T, C, x, J, w = this.eras();
|
|
22228
|
+
for (m = 0, T = w.length; m < T; ++m)
|
|
22229
|
+
C = g1(w[m].name), x = g1(w[m].abbr), J = g1(w[m].narrow), b.push(C), c.push(x), f.push(J), $.push(C), $.push(x), $.push(J);
|
|
22230
22230
|
this._erasRegex = new RegExp("^(" + $.join("|") + ")", "i"), this._erasNameRegex = new RegExp("^(" + b.join("|") + ")", "i"), this._erasAbbrRegex = new RegExp("^(" + c.join("|") + ")", "i"), this._erasNarrowRegex = new RegExp(
|
|
22231
22231
|
"^(" + f.join("|") + ")",
|
|
22232
22232
|
"i"
|
|
@@ -22245,14 +22245,14 @@ Xe("gggg", "weekYear");
|
|
|
22245
22245
|
Xe("ggggg", "weekYear");
|
|
22246
22246
|
Xe("GGGG", "isoWeekYear");
|
|
22247
22247
|
Xe("GGGGG", "isoWeekYear");
|
|
22248
|
-
|
|
22249
|
-
|
|
22250
|
-
|
|
22251
|
-
|
|
22252
|
-
|
|
22253
|
-
|
|
22254
|
-
|
|
22255
|
-
|
|
22248
|
+
r0("G", we);
|
|
22249
|
+
r0("g", we);
|
|
22250
|
+
r0("GG", B0, n1);
|
|
22251
|
+
r0("gg", B0, n1);
|
|
22252
|
+
r0("GGGG", $t, ft);
|
|
22253
|
+
r0("gggg", $t, ft);
|
|
22254
|
+
r0("GGGGG", xe, Be);
|
|
22255
|
+
r0("ggggg", xe, Be);
|
|
22256
22256
|
de(
|
|
22257
22257
|
["gggg", "ggggg", "GGGG", "GGGGG"],
|
|
22258
22258
|
function(c, b, f, $) {
|
|
@@ -22260,7 +22260,7 @@ de(
|
|
|
22260
22260
|
}
|
|
22261
22261
|
);
|
|
22262
22262
|
de(["gg", "GG"], function(c, b, f, $) {
|
|
22263
|
-
b[$] =
|
|
22263
|
+
b[$] = Z.parseTwoDigitYear(c);
|
|
22264
22264
|
});
|
|
22265
22265
|
function wi(c) {
|
|
22266
22266
|
return Vr.call(
|
|
@@ -22305,7 +22305,7 @@ function ki(c, b, f, $, m) {
|
|
|
22305
22305
|
return this.year(C.getUTCFullYear()), this.month(C.getUTCMonth()), this.date(C.getUTCDate()), this;
|
|
22306
22306
|
}
|
|
22307
22307
|
i0("Q", 0, "Qo", "quarter");
|
|
22308
|
-
|
|
22308
|
+
r0("Q", Or);
|
|
22309
22309
|
C0("Q", function(c, b) {
|
|
22310
22310
|
b[m1] = ($0(c) - 1) * 3;
|
|
22311
22311
|
});
|
|
@@ -22313,9 +22313,9 @@ function Ui(c) {
|
|
|
22313
22313
|
return c == null ? Math.ceil((this.month() + 1) / 3) : this.month((c - 1) * 3 + this.month() % 3);
|
|
22314
22314
|
}
|
|
22315
22315
|
i0("D", ["DD", 2], "Do", "date");
|
|
22316
|
-
|
|
22317
|
-
|
|
22318
|
-
|
|
22316
|
+
r0("D", B0, te);
|
|
22317
|
+
r0("DD", B0, n1);
|
|
22318
|
+
r0("Do", function(c, b) {
|
|
22319
22319
|
return c ? b._dayOfMonthOrdinalParse || b._ordinalParse : b._dayOfMonthOrdinalParseLenient;
|
|
22320
22320
|
});
|
|
22321
22321
|
C0(["D", "DD"], z1);
|
|
@@ -22324,8 +22324,8 @@ C0("Do", function(c, b) {
|
|
|
22324
22324
|
});
|
|
22325
22325
|
var Gr = re("Date", !0);
|
|
22326
22326
|
i0("DDD", ["DDDD", 3], "DDDo", "dayOfYear");
|
|
22327
|
-
|
|
22328
|
-
|
|
22327
|
+
r0("DDD", Ne);
|
|
22328
|
+
r0("DDDD", Ar);
|
|
22329
22329
|
C0(["DDD", "DDDD"], function(c, b, f) {
|
|
22330
22330
|
f._dayOfYear = $0(c);
|
|
22331
22331
|
});
|
|
@@ -22336,13 +22336,13 @@ function Qi(c) {
|
|
|
22336
22336
|
return c == null ? b : this.add(c - b, "d");
|
|
22337
22337
|
}
|
|
22338
22338
|
i0("m", ["mm", 2], 0, "minute");
|
|
22339
|
-
|
|
22340
|
-
|
|
22339
|
+
r0("m", B0, yt);
|
|
22340
|
+
r0("mm", B0, n1);
|
|
22341
22341
|
C0(["m", "mm"], c1);
|
|
22342
22342
|
var Yi = re("Minutes", !1);
|
|
22343
22343
|
i0("s", ["ss", 2], 0, "second");
|
|
22344
|
-
|
|
22345
|
-
|
|
22344
|
+
r0("s", B0, yt);
|
|
22345
|
+
r0("ss", B0, n1);
|
|
22346
22346
|
C0(["s", "ss"], q1);
|
|
22347
22347
|
var Vi = re("Seconds", !1);
|
|
22348
22348
|
i0("S", 0, 0, function() {
|
|
@@ -22370,12 +22370,12 @@ i0(0, ["SSSSSSSS", 8], 0, function() {
|
|
|
22370
22370
|
i0(0, ["SSSSSSSSS", 9], 0, function() {
|
|
22371
22371
|
return this.millisecond() * 1e6;
|
|
22372
22372
|
});
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22373
|
+
r0("S", Ne, Or);
|
|
22374
|
+
r0("SS", Ne, n1);
|
|
22375
|
+
r0("SSS", Ne, Ar);
|
|
22376
22376
|
var L1, jr;
|
|
22377
22377
|
for (L1 = "SSSS"; L1.length <= 9; L1 += "S")
|
|
22378
|
-
|
|
22378
|
+
r0(L1, ee);
|
|
22379
22379
|
function Gi(c, b) {
|
|
22380
22380
|
b[w1] = $0(("0." + c) * 1e3);
|
|
22381
22381
|
}
|
|
@@ -22546,12 +22546,12 @@ function Zr(c, b, f) {
|
|
|
22546
22546
|
}
|
|
22547
22547
|
function Ft(c, b, f, $) {
|
|
22548
22548
|
typeof c == "boolean" ? (S1(b) && (f = b, b = void 0), b = b || "") : (b = c, f = b, c = !1, S1(b) && (f = b, b = void 0), b = b || "");
|
|
22549
|
-
var m = T1(), T = c ? m._week.dow : 0, C,
|
|
22549
|
+
var m = T1(), T = c ? m._week.dow : 0, C, x = [];
|
|
22550
22550
|
if (f != null)
|
|
22551
22551
|
return Ie(b, (f + T) % 7, $, "day");
|
|
22552
22552
|
for (C = 0; C < 7; C++)
|
|
22553
|
-
|
|
22554
|
-
return
|
|
22553
|
+
x[C] = Ie(b, (C + T) % 7, $, "day");
|
|
22554
|
+
return x;
|
|
22555
22555
|
}
|
|
22556
22556
|
function ts(c, b) {
|
|
22557
22557
|
return Zr(c, b, "months");
|
|
@@ -22593,11 +22593,11 @@ I1("en", {
|
|
|
22593
22593
|
return c + f;
|
|
22594
22594
|
}
|
|
22595
22595
|
});
|
|
22596
|
-
|
|
22596
|
+
Z.lang = o1(
|
|
22597
22597
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
22598
22598
|
I1
|
|
22599
22599
|
);
|
|
22600
|
-
|
|
22600
|
+
Z.langData = o1(
|
|
22601
22601
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
22602
22602
|
T1
|
|
22603
22603
|
);
|
|
@@ -22620,8 +22620,8 @@ function Ut(c) {
|
|
|
22620
22620
|
return c < 0 ? Math.floor(c) : Math.ceil(c);
|
|
22621
22621
|
}
|
|
22622
22622
|
function ls() {
|
|
22623
|
-
var c = this._milliseconds, b = this._days, f = this._months, $ = this._data, m, T, C,
|
|
22624
|
-
return c >= 0 && b >= 0 && f >= 0 || c <= 0 && b <= 0 && f <= 0 || (c += Ut(lt(f) + b) * 864e5, b = 0, f = 0), $.milliseconds = c % 1e3, m = a1(c / 1e3), $.seconds = m % 60, T = a1(m / 60), $.minutes = T % 60, C = a1(T / 60), $.hours = C % 24, b += a1(C / 24), J = a1(tn(b)), f += J, b -= Ut(lt(J)),
|
|
22623
|
+
var c = this._milliseconds, b = this._days, f = this._months, $ = this._data, m, T, C, x, J;
|
|
22624
|
+
return c >= 0 && b >= 0 && f >= 0 || c <= 0 && b <= 0 && f <= 0 || (c += Ut(lt(f) + b) * 864e5, b = 0, f = 0), $.milliseconds = c % 1e3, m = a1(c / 1e3), $.seconds = m % 60, T = a1(m / 60), $.minutes = T % 60, C = a1(T / 60), $.hours = C % 24, b += a1(C / 24), J = a1(tn(b)), f += J, b -= Ut(lt(J)), x = a1(f / 12), f %= 12, $.days = b, $.months = f, $.years = x, this;
|
|
22625
22625
|
}
|
|
22626
22626
|
function tn(c) {
|
|
22627
22627
|
return c * 4800 / 146097;
|
|
@@ -22701,8 +22701,8 @@ function Rs(c, b, f, $, m) {
|
|
|
22701
22701
|
return m.relativeTime(b || 1, !!f, c, $);
|
|
22702
22702
|
}
|
|
22703
22703
|
function Cs(c, b, f, $) {
|
|
22704
|
-
var m = _1(c).abs(), T = y1(m.as("s")), C = y1(m.as("m")),
|
|
22705
|
-
return f.w != null && (
|
|
22704
|
+
var m = _1(c).abs(), T = y1(m.as("s")), C = y1(m.as("m")), x = y1(m.as("h")), J = y1(m.as("d")), w = y1(m.as("M")), H = y1(m.as("w")), G = y1(m.as("y")), j = T <= f.ss && ["s", T] || T < f.s && ["ss", T] || C <= 1 && ["m"] || C < f.m && ["mm", C] || x <= 1 && ["h"] || x < f.h && ["hh", x] || J <= 1 && ["d"] || J < f.d && ["dd", J];
|
|
22705
|
+
return f.w != null && (j = j || H <= 1 && ["w"] || H < f.w && ["ww", H]), j = j || w <= 1 && ["M"] || w < f.M && ["MM", w] || G <= 1 && ["y"] || ["yy", G], j[2] = b, j[3] = +c > 0, j[4] = $, Rs.apply(null, j);
|
|
22706
22706
|
}
|
|
22707
22707
|
function Ws(c) {
|
|
22708
22708
|
return c === void 0 ? y1 : typeof c == "function" ? (y1 = c, !0) : !1;
|
|
@@ -22723,8 +22723,8 @@ function H1(c) {
|
|
|
22723
22723
|
function ke() {
|
|
22724
22724
|
if (!this.isValid())
|
|
22725
22725
|
return this.localeData().invalidDate();
|
|
22726
|
-
var c = je(this._milliseconds) / 1e3, b = je(this._days), f = je(this._months), $, m, T, C,
|
|
22727
|
-
return
|
|
22726
|
+
var c = je(this._milliseconds) / 1e3, b = je(this._days), f = je(this._months), $, m, T, C, x = this.asSeconds(), J, w, H, G;
|
|
22727
|
+
return x ? ($ = a1(c / 60), m = a1($ / 60), c %= 60, $ %= 60, T = a1(f / 12), f %= 12, C = c ? c.toFixed(3).replace(/\.?0+$/, "") : "", J = x < 0 ? "-" : "", w = H1(this._months) !== H1(x) ? "-" : "", H = H1(this._days) !== H1(x) ? "-" : "", G = H1(this._milliseconds) !== H1(x) ? "-" : "", J + "P" + (T ? w + T + "Y" : "") + (f ? w + f + "M" : "") + (b ? H + b + "D" : "") + (m || $ || c ? "T" : "") + (m ? G + m + "H" : "") + ($ ? G + $ + "M" : "") + (c ? G + C + "S" : "")) : "P0D";
|
|
22728
22728
|
}
|
|
22729
22729
|
var m0 = He.prototype;
|
|
22730
22730
|
m0.isValid = So;
|
|
@@ -22766,8 +22766,8 @@ m0.toIsoString = o1(
|
|
|
22766
22766
|
m0.lang = Xr;
|
|
22767
22767
|
i0("X", 0, 0, "unix");
|
|
22768
22768
|
i0("x", 0, 0, "valueOf");
|
|
22769
|
-
|
|
22770
|
-
|
|
22769
|
+
r0("x", we);
|
|
22770
|
+
r0("X", ea);
|
|
22771
22771
|
C0("X", function(c, b, f) {
|
|
22772
22772
|
f._d = new Date(parseFloat(c) * 1e3);
|
|
22773
22773
|
});
|
|
@@ -22775,36 +22775,36 @@ C0("x", function(c, b, f) {
|
|
|
22775
22775
|
f._d = new Date($0(c));
|
|
22776
22776
|
});
|
|
22777
22777
|
//! moment.js
|
|
22778
|
-
|
|
22778
|
+
Z.version = "2.30.1";
|
|
22779
22779
|
In(F0);
|
|
22780
|
-
|
|
22781
|
-
|
|
22782
|
-
|
|
22783
|
-
|
|
22784
|
-
|
|
22785
|
-
|
|
22786
|
-
|
|
22787
|
-
|
|
22788
|
-
|
|
22789
|
-
|
|
22790
|
-
|
|
22791
|
-
|
|
22792
|
-
|
|
22793
|
-
|
|
22794
|
-
|
|
22795
|
-
|
|
22796
|
-
|
|
22797
|
-
|
|
22798
|
-
|
|
22799
|
-
|
|
22800
|
-
|
|
22801
|
-
|
|
22802
|
-
|
|
22803
|
-
|
|
22804
|
-
|
|
22805
|
-
|
|
22806
|
-
|
|
22807
|
-
|
|
22780
|
+
Z.fn = U;
|
|
22781
|
+
Z.min = mo;
|
|
22782
|
+
Z.max = qo;
|
|
22783
|
+
Z.now = go;
|
|
22784
|
+
Z.utc = A1;
|
|
22785
|
+
Z.unix = Zi;
|
|
22786
|
+
Z.months = ts;
|
|
22787
|
+
Z.isDate = Me;
|
|
22788
|
+
Z.locale = I1;
|
|
22789
|
+
Z.invalid = Fe;
|
|
22790
|
+
Z.duration = _1;
|
|
22791
|
+
Z.isMoment = b1;
|
|
22792
|
+
Z.weekdays = ns;
|
|
22793
|
+
Z.parseZone = es;
|
|
22794
|
+
Z.localeData = T1;
|
|
22795
|
+
Z.isDuration = ge;
|
|
22796
|
+
Z.monthsShort = rs;
|
|
22797
|
+
Z.weekdaysMin = os;
|
|
22798
|
+
Z.defineLocale = St;
|
|
22799
|
+
Z.updateLocale = Za;
|
|
22800
|
+
Z.locales = eo;
|
|
22801
|
+
Z.weekdaysShort = as;
|
|
22802
|
+
Z.normalizeUnits = i1;
|
|
22803
|
+
Z.relativeTimeRounding = Ws;
|
|
22804
|
+
Z.relativeTimeThreshold = Ls;
|
|
22805
|
+
Z.calendarFormat = Go;
|
|
22806
|
+
Z.prototype = U;
|
|
22807
|
+
Z.HTML5_FMT = {
|
|
22808
22808
|
DATETIME_LOCAL: "YYYY-MM-DDTHH:mm",
|
|
22809
22809
|
// <input type="datetime-local" />
|
|
22810
22810
|
DATETIME_LOCAL_SECONDS: "YYYY-MM-DDTHH:mm:ss",
|
|
@@ -22826,7 +22826,7 @@ K.HTML5_FMT = {
|
|
|
22826
22826
|
};
|
|
22827
22827
|
const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
22828
22828
|
__proto__: null,
|
|
22829
|
-
default:
|
|
22829
|
+
default: Z
|
|
22830
22830
|
}, Symbol.toStringTag, { value: "Module" })), Bs = /* @__PURE__ */ An(Fs);
|
|
22831
22831
|
(function(c) {
|
|
22832
22832
|
//! moment-timezone.js
|
|
@@ -22838,31 +22838,31 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22838
22838
|
c.exports ? c.exports = f(Bs) : f(b.moment);
|
|
22839
22839
|
})(Dn, function(b) {
|
|
22840
22840
|
b.version === void 0 && b.default && (b = b.default);
|
|
22841
|
-
var f = "0.5.48", $ = {}, m = {}, T = {}, C = {},
|
|
22841
|
+
var f = "0.5.48", $ = {}, m = {}, T = {}, C = {}, x = {}, J;
|
|
22842
22842
|
(!b || typeof b.version != "string") && a("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
|
|
22843
|
-
var
|
|
22844
|
-
(H < 2 || H === 2 &&
|
|
22845
|
-
function
|
|
22843
|
+
var w = b.version.split("."), H = +w[0], G = +w[1];
|
|
22844
|
+
(H < 2 || H === 2 && G < 6) && a("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + b.version + ". See momentjs.com");
|
|
22845
|
+
function j(_) {
|
|
22846
22846
|
return _ > 96 ? _ - 87 : _ > 64 ? _ - 29 : _ - 48;
|
|
22847
22847
|
}
|
|
22848
|
-
function
|
|
22848
|
+
function K(_) {
|
|
22849
22849
|
var z = 0, D = _.split("."), y = D[0], q = D[1] || "", h = 1, E, R = 0, g = 1;
|
|
22850
22850
|
for (_.charCodeAt(0) === 45 && (z = 1, g = -1), z; z < y.length; z++)
|
|
22851
|
-
E =
|
|
22851
|
+
E = j(y.charCodeAt(z)), R = 60 * R + E;
|
|
22852
22852
|
for (z = 0; z < q.length; z++)
|
|
22853
|
-
h = h / 60, E =
|
|
22853
|
+
h = h / 60, E = j(q.charCodeAt(z)), R += E * h;
|
|
22854
22854
|
return R * g;
|
|
22855
22855
|
}
|
|
22856
|
-
function
|
|
22856
|
+
function V(_) {
|
|
22857
22857
|
for (var z = 0; z < _.length; z++)
|
|
22858
|
-
_[z] =
|
|
22858
|
+
_[z] = K(_[z]);
|
|
22859
22859
|
}
|
|
22860
|
-
function
|
|
22860
|
+
function Q(_, z) {
|
|
22861
22861
|
for (var D = 0; D < z; D++)
|
|
22862
22862
|
_[D] = Math.round((_[D - 1] || 0) + _[D] * 6e4);
|
|
22863
22863
|
_[z - 1] = 1 / 0;
|
|
22864
22864
|
}
|
|
22865
|
-
function
|
|
22865
|
+
function n0(_, z) {
|
|
22866
22866
|
var D = [], y;
|
|
22867
22867
|
for (y = 0; y < z.length; y++)
|
|
22868
22868
|
D[y] = _[z[y]];
|
|
@@ -22870,15 +22870,15 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22870
22870
|
}
|
|
22871
22871
|
function a0(_) {
|
|
22872
22872
|
var z = _.split("|"), D = z[2].split(" "), y = z[3].split(""), q = z[4].split(" ");
|
|
22873
|
-
return
|
|
22873
|
+
return V(D), V(y), V(q), Q(q, y.length), {
|
|
22874
22874
|
name: z[0],
|
|
22875
|
-
abbrs:
|
|
22876
|
-
offsets:
|
|
22875
|
+
abbrs: n0(z[1].split(" "), y),
|
|
22876
|
+
offsets: n0(D, y),
|
|
22877
22877
|
untils: q,
|
|
22878
22878
|
population: z[5] | 0
|
|
22879
22879
|
};
|
|
22880
22880
|
}
|
|
22881
|
-
function
|
|
22881
|
+
function Y(_) {
|
|
22882
22882
|
_ && this._set(a0(_));
|
|
22883
22883
|
}
|
|
22884
22884
|
function _0(_, z) {
|
|
@@ -22893,7 +22893,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22893
22893
|
y = Math.floor((q + h) / 2), z[y] <= _ ? q = y : h = y;
|
|
22894
22894
|
return h;
|
|
22895
22895
|
}
|
|
22896
|
-
|
|
22896
|
+
Y.prototype = {
|
|
22897
22897
|
_set: function(_) {
|
|
22898
22898
|
this.name = _.name, this.abbrs = _.abbrs, this.untils = _.untils, this.offsets = _.offsets, this.population = _.population;
|
|
22899
22899
|
},
|
|
@@ -22928,42 +22928,42 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22928
22928
|
function M0(_, z) {
|
|
22929
22929
|
this.name = _, this.zones = z;
|
|
22930
22930
|
}
|
|
22931
|
-
function
|
|
22931
|
+
function c0(_) {
|
|
22932
22932
|
var z = _.toTimeString(), D = z.match(/\([a-z ]+\)/i);
|
|
22933
22933
|
D && D[0] ? (D = D[0].match(/[A-Z]/g), D = D ? D.join("") : void 0) : (D = z.match(/[A-Z]{3,5}/g), D = D ? D[0] : void 0), D === "GMT" && (D = void 0), this.at = +_, this.abbr = D, this.offset = _.getTimezoneOffset();
|
|
22934
22934
|
}
|
|
22935
|
-
function
|
|
22935
|
+
function e0(_) {
|
|
22936
22936
|
this.zone = _, this.offsetScore = 0, this.abbrScore = 0;
|
|
22937
22937
|
}
|
|
22938
|
-
|
|
22938
|
+
e0.prototype.scoreOffsetAt = function(_) {
|
|
22939
22939
|
this.offsetScore += Math.abs(this.zone.utcOffset(_.at) - _.offset), this.zone.abbr(_.at).replace(/[^A-Z]/g, "") !== _.abbr && this.abbrScore++;
|
|
22940
22940
|
};
|
|
22941
|
-
function
|
|
22941
|
+
function t0(_, z) {
|
|
22942
22942
|
for (var D, y; y = ((z.at - _.at) / 12e4 | 0) * 6e4; )
|
|
22943
|
-
D = new
|
|
22943
|
+
D = new c0(new Date(_.at + y)), D.offset === _.offset ? _ = D : z = D;
|
|
22944
22944
|
return _;
|
|
22945
22945
|
}
|
|
22946
22946
|
function s0() {
|
|
22947
|
-
var _ = (/* @__PURE__ */ new Date()).getFullYear() - 2, z = new
|
|
22947
|
+
var _ = (/* @__PURE__ */ new Date()).getFullYear() - 2, z = new c0(new Date(_, 0, 1)), D = z.offset, y = [z], q, h, E, R;
|
|
22948
22948
|
for (R = 1; R < 48; R++)
|
|
22949
|
-
E = new Date(_, R, 1).getTimezoneOffset(), E !== D && (h = new
|
|
22949
|
+
E = new Date(_, R, 1).getTimezoneOffset(), E !== D && (h = new c0(new Date(_, R, 1)), q = t0(z, h), y.push(q), y.push(new c0(new Date(q.at + 6e4))), z = h, D = E);
|
|
22950
22950
|
for (R = 0; R < 4; R++)
|
|
22951
|
-
y.push(new
|
|
22951
|
+
y.push(new c0(new Date(_ + R, 0, 1))), y.push(new c0(new Date(_ + R, 6, 1)));
|
|
22952
22952
|
return y;
|
|
22953
22953
|
}
|
|
22954
22954
|
function b0(_, z) {
|
|
22955
22955
|
return _.offsetScore !== z.offsetScore ? _.offsetScore - z.offsetScore : _.abbrScore !== z.abbrScore ? _.abbrScore - z.abbrScore : _.zone.population !== z.zone.population ? z.zone.population - _.zone.population : z.zone.name.localeCompare(_.zone.name);
|
|
22956
22956
|
}
|
|
22957
|
-
function
|
|
22957
|
+
function O0(_, z) {
|
|
22958
22958
|
var D, y;
|
|
22959
|
-
for (
|
|
22960
|
-
y = z[D],
|
|
22959
|
+
for (V(z), D = 0; D < z.length; D++)
|
|
22960
|
+
y = z[D], x[y] = x[y] || {}, x[y][_] = !0;
|
|
22961
22961
|
}
|
|
22962
|
-
function
|
|
22962
|
+
function l0(_) {
|
|
22963
22963
|
var z = _.length, D = {}, y = [], q = {}, h, E, R, g;
|
|
22964
22964
|
for (h = 0; h < z; h++)
|
|
22965
22965
|
if (R = _[h].offset, !q.hasOwnProperty(R)) {
|
|
22966
|
-
g =
|
|
22966
|
+
g = x[R] || {};
|
|
22967
22967
|
for (E in g)
|
|
22968
22968
|
g.hasOwnProperty(E) && (D[E] = !0);
|
|
22969
22969
|
q[R] = !0;
|
|
@@ -22983,15 +22983,15 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
22983
22983
|
}
|
|
22984
22984
|
} catch {
|
|
22985
22985
|
}
|
|
22986
|
-
var D = s0(), y = D.length, q =
|
|
22986
|
+
var D = s0(), y = D.length, q = l0(D), h = [], E, R, g;
|
|
22987
22987
|
for (R = 0; R < q.length; R++) {
|
|
22988
|
-
for (E = new
|
|
22988
|
+
for (E = new e0(i(q[R])), g = 0; g < y; g++)
|
|
22989
22989
|
E.scoreOffsetAt(D[g]);
|
|
22990
22990
|
h.push(E);
|
|
22991
22991
|
}
|
|
22992
22992
|
return h.sort(b0), h.length > 0 ? h[0].zone.name : void 0;
|
|
22993
22993
|
}
|
|
22994
|
-
function
|
|
22994
|
+
function D0(_) {
|
|
22995
22995
|
return (!J || _) && (J = d0()), J;
|
|
22996
22996
|
}
|
|
22997
22997
|
function o0(_) {
|
|
@@ -23000,12 +23000,12 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23000
23000
|
function t(_) {
|
|
23001
23001
|
var z, D, y, q;
|
|
23002
23002
|
for (typeof _ == "string" && (_ = [_]), z = 0; z < _.length; z++)
|
|
23003
|
-
y = _[z].split("|"), D = y[0], q = o0(D), $[q] = _[z], C[q] = D,
|
|
23003
|
+
y = _[z].split("|"), D = y[0], q = o0(D), $[q] = _[z], C[q] = D, O0(q, y[2].split(" "));
|
|
23004
23004
|
}
|
|
23005
23005
|
function i(_, z) {
|
|
23006
23006
|
_ = o0(_);
|
|
23007
23007
|
var D = $[_], y;
|
|
23008
|
-
return D instanceof
|
|
23008
|
+
return D instanceof Y ? D : typeof D == "string" ? (D = new Y(D), $[_] = D, D) : m[_] && z !== i && (y = i(m[_], i)) ? (D = $[_] = new Y(), D._set(y), D.name = C[_], D) : null;
|
|
23009
23009
|
}
|
|
23010
23010
|
function p() {
|
|
23011
23011
|
var _, z = [];
|
|
@@ -23061,7 +23061,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23061
23061
|
var z = Array.prototype.slice.call(arguments, 0, -1), D = arguments[arguments.length - 1], y = b.utc.apply(null, z), q;
|
|
23062
23062
|
return !b.isMoment(_) && n(y) && (q = i(D)) && y.add(q.parse(y), "minutes"), y.tz(D), y;
|
|
23063
23063
|
}
|
|
23064
|
-
o.version = f, o.dataVersion = "", o._zones = $, o._links = m, o._names = C, o._countries = T, o.add = t, o.link = S, o.load = r, o.zone = i, o.zoneExists = e, o.guess =
|
|
23064
|
+
o.version = f, o.dataVersion = "", o._zones = $, o._links = m, o._names = C, o._countries = T, o.add = t, o.link = S, o.load = r, o.zone = i, o.zoneExists = e, o.guess = D0, o.names = p, o.Zone = Y, o.unpack = a0, o.unpackBase60 = K, o.needsOffset = n, o.moveInvalidForward = !0, o.moveAmbiguousForward = !1, o.countries = A, o.zonesForCountry = O;
|
|
23065
23065
|
var s = b.fn;
|
|
23066
23066
|
b.tz = o, b.defaultZone = null, b.updateOffset = function(_, z) {
|
|
23067
23067
|
var D = b.defaultZone, y;
|
|
@@ -23096,7 +23096,7 @@ const Fs = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
23096
23096
|
};
|
|
23097
23097
|
}
|
|
23098
23098
|
s.zoneName = u(s.zoneName), s.zoneAbbr = u(s.zoneAbbr), s.utc = l(s.utc), s.local = l(s.local), s.utcOffset = M(s.utcOffset), b.tz.setDefault = function(_) {
|
|
23099
|
-
return (H < 2 || H === 2 &&
|
|
23099
|
+
return (H < 2 || H === 2 && G < 9) && a("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + b.version + "."), b.defaultZone = _ ? i(_) : null, b;
|
|
23100
23100
|
};
|
|
23101
23101
|
var d = b.momentProperties;
|
|
23102
23102
|
return Object.prototype.toString.call(d) === "[object Array]" ? (d.push("_z"), d.push("_a")) : d && (d._z = null), b;
|
|
@@ -23999,155 +23999,155 @@ function Us(c) {
|
|
|
23999
23999
|
}
|
|
24000
24000
|
}
|
|
24001
24001
|
function Qs(c) {
|
|
24002
|
-
const { responses: b, isCompare: f, mainRequestCount: $, timezone: m } = c, T = b[0], C = T.columns.map((
|
|
24003
|
-
key:
|
|
24004
|
-
label:
|
|
24005
|
-
type: js(
|
|
24006
|
-
aggregationType:
|
|
24007
|
-
dimensionOption:
|
|
24008
|
-
hide:
|
|
24009
|
-
timeformatter:
|
|
24010
|
-
decimal:
|
|
24011
|
-
})),
|
|
24012
|
-
cells:
|
|
24013
|
-
const
|
|
24014
|
-
return
|
|
24002
|
+
const { responses: b, isCompare: f, mainRequestCount: $, timezone: m } = c, T = b[0], C = T.columns.map((j) => ({
|
|
24003
|
+
key: j.id,
|
|
24004
|
+
label: j.label,
|
|
24005
|
+
type: js(j.dataType),
|
|
24006
|
+
aggregationType: j.aggregationType || void 0,
|
|
24007
|
+
dimensionOption: j.optionType || void 0,
|
|
24008
|
+
hide: j.hide,
|
|
24009
|
+
timeformatter: j.timeFormatter || "",
|
|
24010
|
+
decimal: j.decimal || 0
|
|
24011
|
+
})), x = T.columns, J = T.rows.map((j) => ({
|
|
24012
|
+
cells: x.map((K) => {
|
|
24013
|
+
const V = j.value[K.id] ?? null;
|
|
24014
|
+
return j.isRollup && K.fieldType === "DIMENSION" && K.dataType === "NUMERIC" && V == null ? null : e1(V, K, m);
|
|
24015
24015
|
}),
|
|
24016
24016
|
comparisonCells: [],
|
|
24017
|
-
isRollup:
|
|
24017
|
+
isRollup: j.isRollup
|
|
24018
24018
|
}));
|
|
24019
24019
|
if (f) {
|
|
24020
|
-
const
|
|
24021
|
-
if (
|
|
24022
|
-
for (let
|
|
24023
|
-
const
|
|
24024
|
-
|
|
24025
|
-
|
|
24020
|
+
const K = b[$];
|
|
24021
|
+
if (K)
|
|
24022
|
+
for (let V = 0; V < J.length; V++) {
|
|
24023
|
+
const Q = J[V], n0 = T.rows[V], a0 = au(
|
|
24024
|
+
n0,
|
|
24025
|
+
K.rows,
|
|
24026
24026
|
T.columns
|
|
24027
24027
|
);
|
|
24028
|
-
a0 && (
|
|
24029
|
-
(
|
|
24028
|
+
a0 && (Q.comparisonCells = x.map(
|
|
24029
|
+
(Y) => e1(a0.value[Y.id] ?? null, Y, m)
|
|
24030
24030
|
));
|
|
24031
24031
|
}
|
|
24032
24032
|
}
|
|
24033
|
-
const
|
|
24034
|
-
C.reduce((
|
|
24035
|
-
), H =
|
|
24036
|
-
...
|
|
24037
|
-
cells:
|
|
24038
|
-
comparisonCells:
|
|
24039
|
-
(
|
|
24033
|
+
const w = new Set(
|
|
24034
|
+
C.reduce((j, K, V) => (K.hide && j.push(V), j), [])
|
|
24035
|
+
), H = w.size > 0 ? C.filter((j, K) => !w.has(K)) : C, G = w.size > 0 ? J.map((j) => ({
|
|
24036
|
+
...j,
|
|
24037
|
+
cells: j.cells.filter((K, V) => !w.has(V)),
|
|
24038
|
+
comparisonCells: j.comparisonCells.filter(
|
|
24039
|
+
(K, V) => !w.has(V)
|
|
24040
24040
|
)
|
|
24041
24041
|
})) : J;
|
|
24042
24042
|
return {
|
|
24043
24043
|
type: "TABLE",
|
|
24044
24044
|
columns: H,
|
|
24045
|
-
rows:
|
|
24045
|
+
rows: G,
|
|
24046
24046
|
source: "postgresql"
|
|
24047
24047
|
};
|
|
24048
24048
|
}
|
|
24049
24049
|
function Ys(c) {
|
|
24050
|
-
const { widgetType: b, responses: f, isCompare: $, mainRequestCount: m, timezone: T } = c, C = f[0],
|
|
24050
|
+
const { widgetType: b, responses: f, isCompare: $, mainRequestCount: m, timezone: T } = c, C = f[0], x = C.columns.filter(
|
|
24051
24051
|
(a0) => a0.fieldType === "DIMENSION" && !a0.hide
|
|
24052
24052
|
), J = C.columns.filter(
|
|
24053
24053
|
(a0) => a0.fieldType === "METRIC" && !a0.hide
|
|
24054
|
-
),
|
|
24054
|
+
), w = x[0], H = x.length > 1 ? x[1] : null, G = [], j = /* @__PURE__ */ new Set();
|
|
24055
24055
|
for (const a0 of C.rows) {
|
|
24056
24056
|
if (a0.isRollup) continue;
|
|
24057
|
-
const
|
|
24058
|
-
|
|
24057
|
+
const Y = w ? e1(a0.value[w.id] ?? null, w, T) : "";
|
|
24058
|
+
j.has(Y) || (j.add(Y), G.push(Y));
|
|
24059
24059
|
}
|
|
24060
|
-
const
|
|
24061
|
-
|
|
24062
|
-
const
|
|
24060
|
+
const K = /* @__PURE__ */ new Map();
|
|
24061
|
+
G.forEach((a0, Y) => K.set(a0, Y));
|
|
24062
|
+
const V = {
|
|
24063
24063
|
start: C.dateRange.start,
|
|
24064
24064
|
end: C.dateRange.end
|
|
24065
|
-
},
|
|
24065
|
+
}, Q = [];
|
|
24066
24066
|
if (H) {
|
|
24067
24067
|
const a0 = /* @__PURE__ */ new Set();
|
|
24068
|
-
for (const
|
|
24069
|
-
|
|
24068
|
+
for (const Y of C.rows)
|
|
24069
|
+
Y.isRollup || a0.add(
|
|
24070
24070
|
e1(
|
|
24071
|
-
|
|
24071
|
+
Y.value[H.id] ?? null,
|
|
24072
24072
|
H,
|
|
24073
24073
|
T
|
|
24074
24074
|
)
|
|
24075
24075
|
);
|
|
24076
|
-
for (const
|
|
24076
|
+
for (const Y of a0)
|
|
24077
24077
|
for (const _0 of J) {
|
|
24078
|
-
const M0 = new Array(
|
|
24079
|
-
for (const
|
|
24080
|
-
if (
|
|
24081
|
-
|
|
24078
|
+
const M0 = new Array(G.length).fill(0);
|
|
24079
|
+
for (const e0 of C.rows) {
|
|
24080
|
+
if (e0.isRollup || e1(
|
|
24081
|
+
e0.value[H.id] ?? null,
|
|
24082
24082
|
H,
|
|
24083
24083
|
T
|
|
24084
|
-
) !==
|
|
24084
|
+
) !== Y)
|
|
24085
24085
|
continue;
|
|
24086
|
-
const
|
|
24087
|
-
|
|
24088
|
-
|
|
24086
|
+
const t0 = w ? e1(
|
|
24087
|
+
e0.value[w.id] ?? null,
|
|
24088
|
+
w,
|
|
24089
24089
|
T
|
|
24090
|
-
) : "", s0 =
|
|
24091
|
-
s0 != null && (M0[s0] = K1(
|
|
24090
|
+
) : "", s0 = K.get(t0);
|
|
24091
|
+
s0 != null && (M0[s0] = K1(e0.value[_0.id]));
|
|
24092
24092
|
}
|
|
24093
|
-
const
|
|
24094
|
-
|
|
24095
|
-
name:
|
|
24093
|
+
const c0 = J.length > 1 ? `${Y} - ${_0.label}` : Y;
|
|
24094
|
+
Q.push({
|
|
24095
|
+
name: c0,
|
|
24096
24096
|
values: M0,
|
|
24097
|
-
dateRange:
|
|
24097
|
+
dateRange: V
|
|
24098
24098
|
});
|
|
24099
24099
|
}
|
|
24100
24100
|
} else
|
|
24101
24101
|
for (const a0 of J) {
|
|
24102
|
-
const
|
|
24102
|
+
const Y = new Array(G.length).fill(0);
|
|
24103
24103
|
for (const _0 of C.rows) {
|
|
24104
24104
|
if (_0.isRollup) continue;
|
|
24105
|
-
const M0 =
|
|
24106
|
-
_0.value[
|
|
24107
|
-
|
|
24105
|
+
const M0 = w ? e1(
|
|
24106
|
+
_0.value[w.id] ?? null,
|
|
24107
|
+
w,
|
|
24108
24108
|
T
|
|
24109
|
-
) : "",
|
|
24110
|
-
|
|
24109
|
+
) : "", c0 = K.get(M0);
|
|
24110
|
+
c0 != null && (Y[c0] = K1(_0.value[a0.id]));
|
|
24111
24111
|
}
|
|
24112
|
-
|
|
24112
|
+
Q.push({
|
|
24113
24113
|
name: a0.label,
|
|
24114
|
-
values:
|
|
24115
|
-
dateRange:
|
|
24114
|
+
values: Y,
|
|
24115
|
+
dateRange: V
|
|
24116
24116
|
});
|
|
24117
24117
|
}
|
|
24118
24118
|
if ($ && f.length > m) {
|
|
24119
|
-
const a0 = f[m],
|
|
24119
|
+
const a0 = f[m], Y = {
|
|
24120
24120
|
start: a0.dateRange.start,
|
|
24121
24121
|
end: a0.dateRange.end
|
|
24122
24122
|
};
|
|
24123
24123
|
for (const _0 of J) {
|
|
24124
|
-
const M0 = new Array(
|
|
24125
|
-
for (const
|
|
24126
|
-
if (
|
|
24127
|
-
const
|
|
24128
|
-
|
|
24129
|
-
|
|
24124
|
+
const M0 = new Array(G.length).fill(0);
|
|
24125
|
+
for (const c0 of a0.rows) {
|
|
24126
|
+
if (c0.isRollup) continue;
|
|
24127
|
+
const e0 = w ? e1(
|
|
24128
|
+
c0.value[w.id] ?? null,
|
|
24129
|
+
w,
|
|
24130
24130
|
T
|
|
24131
|
-
) : "",
|
|
24132
|
-
|
|
24131
|
+
) : "", t0 = K.get(e0);
|
|
24132
|
+
t0 != null && (M0[t0] = K1(c0.value[_0.id]));
|
|
24133
24133
|
}
|
|
24134
|
-
|
|
24134
|
+
Q.push({
|
|
24135
24135
|
name: _0.label,
|
|
24136
24136
|
values: M0,
|
|
24137
24137
|
isCompare: !0,
|
|
24138
|
-
dateRange:
|
|
24138
|
+
dateRange: Y
|
|
24139
24139
|
});
|
|
24140
24140
|
}
|
|
24141
24141
|
}
|
|
24142
|
-
const
|
|
24143
|
-
return $ && f.length > m && (
|
|
24142
|
+
const n0 = { main: V };
|
|
24143
|
+
return $ && f.length > m && (n0.comparison = {
|
|
24144
24144
|
start: f[m].dateRange.start,
|
|
24145
24145
|
end: f[m].dateRange.end
|
|
24146
24146
|
}), {
|
|
24147
24147
|
type: b,
|
|
24148
|
-
xAxis:
|
|
24149
|
-
datasets:
|
|
24150
|
-
date:
|
|
24148
|
+
xAxis: G,
|
|
24149
|
+
datasets: Q,
|
|
24150
|
+
date: n0
|
|
24151
24151
|
};
|
|
24152
24152
|
}
|
|
24153
24153
|
function Vs(c) {
|
|
@@ -24155,94 +24155,94 @@ function Vs(c) {
|
|
|
24155
24155
|
if (!T)
|
|
24156
24156
|
return null;
|
|
24157
24157
|
const C = T.columns.find(
|
|
24158
|
-
(
|
|
24159
|
-
),
|
|
24160
|
-
let
|
|
24158
|
+
(Q) => Q.fieldType === "METRIC" && !Q.hide
|
|
24159
|
+
), x = T.rows.find((Q) => !Q.isRollup) ?? T.rows[0], J = x && C ? x.value[C.id] : null, w = (C == null ? void 0 : C.label) ?? "", H = e1(J, C ?? null, m);
|
|
24160
|
+
let G;
|
|
24161
24161
|
if (f && b.length > $) {
|
|
24162
|
-
const
|
|
24163
|
-
|
|
24164
|
-
|
|
24162
|
+
const Q = b[$], n0 = Q ? Q.rows.find((a0) => !a0.isRollup) ?? Q.rows[0] : null;
|
|
24163
|
+
n0 && C && (G = e1(
|
|
24164
|
+
n0.value[C.id],
|
|
24165
24165
|
C,
|
|
24166
24166
|
m
|
|
24167
24167
|
));
|
|
24168
24168
|
}
|
|
24169
|
-
let
|
|
24170
|
-
const
|
|
24171
|
-
if (b.length >
|
|
24172
|
-
const
|
|
24173
|
-
(
|
|
24174
|
-
), a0 =
|
|
24175
|
-
(
|
|
24169
|
+
let j = [], K = [];
|
|
24170
|
+
const V = 1;
|
|
24171
|
+
if (b.length > V && b[V]) {
|
|
24172
|
+
const Q = b[V], n0 = Q.columns.find(
|
|
24173
|
+
(Y) => Y.fieldType === "DIMENSION" && !Y.hide
|
|
24174
|
+
), a0 = Q.columns.find(
|
|
24175
|
+
(Y) => Y.fieldType === "METRIC" && !Y.hide
|
|
24176
24176
|
);
|
|
24177
|
-
|
|
24178
|
-
(
|
|
24179
|
-
|
|
24180
|
-
|
|
24177
|
+
n0 && a0 && (j = Q.rows.filter((Y) => !Y.isRollup).map(
|
|
24178
|
+
(Y) => e1(
|
|
24179
|
+
Y.value[n0.id] ?? null,
|
|
24180
|
+
n0,
|
|
24181
24181
|
m
|
|
24182
24182
|
)
|
|
24183
|
-
),
|
|
24183
|
+
), K = [
|
|
24184
24184
|
{
|
|
24185
24185
|
name: a0.label,
|
|
24186
|
-
values:
|
|
24186
|
+
values: Q.rows.filter((Y) => !Y.isRollup).map((Y) => K1(Y.value[a0.id])),
|
|
24187
24187
|
dateRange: {
|
|
24188
|
-
start:
|
|
24189
|
-
end:
|
|
24188
|
+
start: Q.dateRange.start,
|
|
24189
|
+
end: Q.dateRange.end
|
|
24190
24190
|
}
|
|
24191
24191
|
}
|
|
24192
24192
|
]);
|
|
24193
24193
|
}
|
|
24194
24194
|
return {
|
|
24195
24195
|
type: "SCORECARD",
|
|
24196
|
-
name:
|
|
24196
|
+
name: w,
|
|
24197
24197
|
value: H,
|
|
24198
|
-
comparison:
|
|
24198
|
+
comparison: G,
|
|
24199
24199
|
sparkline: {
|
|
24200
24200
|
type: "LINE",
|
|
24201
|
-
dimensions:
|
|
24202
|
-
datasets:
|
|
24201
|
+
dimensions: j,
|
|
24202
|
+
datasets: K
|
|
24203
24203
|
}
|
|
24204
24204
|
};
|
|
24205
24205
|
}
|
|
24206
24206
|
function Gs(c) {
|
|
24207
24207
|
const { responses: b, isCompare: f, mainRequestCount: $, timezone: m } = c, T = b[0], C = T.columns.find(
|
|
24208
|
-
(
|
|
24209
|
-
),
|
|
24210
|
-
(
|
|
24208
|
+
(V) => V.fieldType === "DIMENSION" && !V.hide
|
|
24209
|
+
), x = T.columns.find(
|
|
24210
|
+
(V) => V.fieldType === "METRIC" && !V.hide
|
|
24211
24211
|
), J = {
|
|
24212
24212
|
start: T.dateRange.start,
|
|
24213
24213
|
end: T.dateRange.end
|
|
24214
24214
|
};
|
|
24215
|
-
let
|
|
24215
|
+
let w = null, H;
|
|
24216
24216
|
if (f && b.length > $) {
|
|
24217
|
-
const
|
|
24217
|
+
const V = b[$];
|
|
24218
24218
|
H = {
|
|
24219
|
-
start:
|
|
24220
|
-
end:
|
|
24221
|
-
},
|
|
24222
|
-
for (const
|
|
24223
|
-
if (
|
|
24224
|
-
const
|
|
24225
|
-
|
|
24219
|
+
start: V.dateRange.start,
|
|
24220
|
+
end: V.dateRange.end
|
|
24221
|
+
}, w = /* @__PURE__ */ new Map();
|
|
24222
|
+
for (const Q of V.rows) {
|
|
24223
|
+
if (Q.isRollup) continue;
|
|
24224
|
+
const n0 = C ? e1(Q.value[C.id] ?? null, C, m) : "";
|
|
24225
|
+
x && w.set(n0, K1(Q.value[x.id]));
|
|
24226
24226
|
}
|
|
24227
24227
|
}
|
|
24228
|
-
const
|
|
24229
|
-
H && (
|
|
24230
|
-
for (const
|
|
24231
|
-
if (
|
|
24232
|
-
const
|
|
24233
|
-
|
|
24234
|
-
name:
|
|
24235
|
-
value:
|
|
24228
|
+
const G = [], j = { main: J };
|
|
24229
|
+
H && (j.comparison = H);
|
|
24230
|
+
for (const V of T.rows) {
|
|
24231
|
+
if (V.isRollup) continue;
|
|
24232
|
+
const Q = C ? e1(V.value[C.id] ?? null, C, m) : "", n0 = x ? K1(V.value[x.id]) : 0, a0 = (w == null ? void 0 : w.get(Q)) ?? null;
|
|
24233
|
+
G.push({
|
|
24234
|
+
name: Q,
|
|
24235
|
+
value: n0,
|
|
24236
24236
|
comparison: a0,
|
|
24237
|
-
date:
|
|
24237
|
+
date: j
|
|
24238
24238
|
});
|
|
24239
24239
|
}
|
|
24240
|
-
const
|
|
24240
|
+
const K = x ? [x.label] : [];
|
|
24241
24241
|
return {
|
|
24242
24242
|
type: "CIRCULAR",
|
|
24243
|
-
datasets:
|
|
24244
|
-
metrics:
|
|
24245
|
-
date:
|
|
24243
|
+
datasets: G,
|
|
24244
|
+
metrics: K,
|
|
24245
|
+
date: j
|
|
24246
24246
|
};
|
|
24247
24247
|
}
|
|
24248
24248
|
function js(c) {
|
|
@@ -24279,18 +24279,18 @@ function eu(c, b) {
|
|
|
24279
24279
|
const f = b[b.length - 1];
|
|
24280
24280
|
let m = Math.floor(c / Se[f]) * Se[f];
|
|
24281
24281
|
return b.map((T, C) => {
|
|
24282
|
-
const
|
|
24283
|
-
return m -= J *
|
|
24282
|
+
const x = Se[T], J = Math.floor(m / x);
|
|
24283
|
+
return m -= J * x, `${C === 0 ? String(J) : String(J).padStart(2, "0")}${Ks[T]}`;
|
|
24284
24284
|
}).join("");
|
|
24285
24285
|
}
|
|
24286
24286
|
function tu(c, b) {
|
|
24287
|
-
const f = c < 0, $ = Math.abs(c), m = (
|
|
24287
|
+
const f = c < 0, $ = Math.abs(c), m = (w) => String(Math.floor(w)).padStart(2, "0"), T = m($ % 3600 / 60), C = m($ % 60), x = f ? "-" : "";
|
|
24288
24288
|
if (b) {
|
|
24289
|
-
const
|
|
24290
|
-
return `${
|
|
24289
|
+
const w = Math.floor($ / 86400), H = m($ % 86400 / 3600), G = w > 0 ? `${w} day${w > 1 ? "s" : ""} ` : "";
|
|
24290
|
+
return `${x}${G}${H}:${T}:${C}`;
|
|
24291
24291
|
}
|
|
24292
24292
|
const J = m($ / 3600);
|
|
24293
|
-
return `${
|
|
24293
|
+
return `${x}${J}:${T}:${C}`;
|
|
24294
24294
|
}
|
|
24295
24295
|
function ru(c, b) {
|
|
24296
24296
|
const f = Zs(c, b.inputUnit);
|
|
@@ -24389,9 +24389,9 @@ function e1(c, b, f) {
|
|
|
24389
24389
|
if (C) {
|
|
24390
24390
|
if (C === "PERCENT")
|
|
24391
24391
|
return `${Qt(m * 100, T)}%`;
|
|
24392
|
-
const
|
|
24393
|
-
if (
|
|
24394
|
-
return ru(m,
|
|
24392
|
+
const x = nu(C);
|
|
24393
|
+
if (x)
|
|
24394
|
+
return ru(m, x);
|
|
24395
24395
|
}
|
|
24396
24396
|
return Qt(m, T);
|
|
24397
24397
|
}
|
|
@@ -24599,58 +24599,58 @@ const P1 = ce(gu, () => {
|
|
|
24599
24599
|
showAdvanced: !1,
|
|
24600
24600
|
visibleCount: 50
|
|
24601
24601
|
});
|
|
24602
|
-
function
|
|
24603
|
-
const M0 = Vt(
|
|
24602
|
+
function x(Y, _0) {
|
|
24603
|
+
const M0 = Vt(Y, _0);
|
|
24604
24604
|
return f.value[M0] || (f.value[M0] = C()), f.value[M0];
|
|
24605
24605
|
}
|
|
24606
|
-
const J = (
|
|
24607
|
-
function
|
|
24608
|
-
Object.assign(
|
|
24606
|
+
const J = (Y) => m.value === Y;
|
|
24607
|
+
function w(Y, _0, M0) {
|
|
24608
|
+
Object.assign(x(Y, _0), M0);
|
|
24609
24609
|
}
|
|
24610
|
-
function H(
|
|
24611
|
-
|
|
24610
|
+
function H(Y, _0, M0 = 50) {
|
|
24611
|
+
x(Y, _0).visibleCount += M0;
|
|
24612
24612
|
}
|
|
24613
|
-
function
|
|
24613
|
+
function G(Y) {
|
|
24614
24614
|
var M0;
|
|
24615
|
-
if (!
|
|
24616
|
-
const _0 = `${
|
|
24617
|
-
Object.keys(f.value).forEach((
|
|
24618
|
-
|
|
24619
|
-
}), (M0 = m.value) != null && M0.startsWith(_0) &&
|
|
24615
|
+
if (!Y) return;
|
|
24616
|
+
const _0 = `${Y}|`;
|
|
24617
|
+
Object.keys(f.value).forEach((c0) => {
|
|
24618
|
+
c0.startsWith(_0) && delete f.value[c0];
|
|
24619
|
+
}), (M0 = m.value) != null && M0.startsWith(_0) && n0();
|
|
24620
24620
|
}
|
|
24621
|
-
function
|
|
24622
|
-
$.value =
|
|
24621
|
+
function j(Y) {
|
|
24622
|
+
$.value = Y;
|
|
24623
24623
|
}
|
|
24624
|
-
function
|
|
24624
|
+
function K() {
|
|
24625
24625
|
b.value += 1;
|
|
24626
24626
|
}
|
|
24627
|
-
function
|
|
24627
|
+
function V() {
|
|
24628
24628
|
b.value = Math.max(0, b.value - 1);
|
|
24629
24629
|
}
|
|
24630
|
-
function Y
|
|
24631
|
-
m.value =
|
|
24630
|
+
function Q(Y) {
|
|
24631
|
+
m.value = Y;
|
|
24632
24632
|
}
|
|
24633
|
-
function
|
|
24633
|
+
function n0() {
|
|
24634
24634
|
m.value = null;
|
|
24635
24635
|
}
|
|
24636
|
-
function a0(
|
|
24637
|
-
return
|
|
24636
|
+
function a0(Y) {
|
|
24637
|
+
return Y.label || `${xt(Y.schemaName)} ${xt(Y.name)}`;
|
|
24638
24638
|
}
|
|
24639
24639
|
return {
|
|
24640
24640
|
globalFilters: c,
|
|
24641
24641
|
isAllGlobalFiltersLoaded: T,
|
|
24642
24642
|
includeUnavailable: $,
|
|
24643
24643
|
openMenuKey: m,
|
|
24644
|
-
getGlobalFilter:
|
|
24644
|
+
getGlobalFilter: x,
|
|
24645
24645
|
isMenuOpen: J,
|
|
24646
|
-
setGlobalFilter:
|
|
24646
|
+
setGlobalFilter: w,
|
|
24647
24647
|
showMore: H,
|
|
24648
|
-
clearGlobalFilterScope:
|
|
24649
|
-
setIncludeUnavailable:
|
|
24650
|
-
startGlobalFilterSelectLoading:
|
|
24651
|
-
finishGlobalFilterSelectLoading:
|
|
24652
|
-
openMenu:
|
|
24653
|
-
closeMenu:
|
|
24648
|
+
clearGlobalFilterScope: G,
|
|
24649
|
+
setIncludeUnavailable: j,
|
|
24650
|
+
startGlobalFilterSelectLoading: K,
|
|
24651
|
+
finishGlobalFilterSelectLoading: V,
|
|
24652
|
+
openMenu: Q,
|
|
24653
|
+
closeMenu: n0,
|
|
24654
24654
|
getGlobalFilterKey: Vt,
|
|
24655
24655
|
getGlobalFilterLabel: a0
|
|
24656
24656
|
};
|
|
@@ -24711,19 +24711,19 @@ async function Eu(c, b) {
|
|
|
24711
24711
|
await fn.fetch($);
|
|
24712
24712
|
}
|
|
24713
24713
|
const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
24714
|
-
const { business: c } = g0(Z1()), { globalFilters: b } = g0(P1()), { schemas: f } = g0(nn()), { flags: $ } = g0($n()), m = R0([]), T = R0([]), C = R0([]),
|
|
24714
|
+
const { business: c } = g0(Z1()), { globalFilters: b } = g0(P1()), { schemas: f } = g0(nn()), { flags: $ } = g0($n()), m = R0([]), T = R0([]), C = R0([]), x = R0(0), J = ar(), w = qn(), H = d1(() => m.value.filter((s) => s.editable)), G = d1(() => m.value.filter((s) => !s.editable)), j = R0(!1), K = R0(""), V = R0(), Q = R0(), n0 = d1(() => {
|
|
24715
24715
|
const s = $.value.find(
|
|
24716
24716
|
(u) => u.key === yn.report_portal_integration_custom_report
|
|
24717
24717
|
);
|
|
24718
24718
|
return typeof (s == null ? void 0 : s.value) == "number" ? s.value : null;
|
|
24719
|
-
}), { isReportPermissionEnabled: a0 } = mn(),
|
|
24719
|
+
}), { isReportPermissionEnabled: a0 } = mn(), Y = d1(() => n0.value === null ? !0 : n0.value - H.value.length > 0);
|
|
24720
24720
|
async function _0() {
|
|
24721
|
-
return
|
|
24721
|
+
return Q.value = await yu(), Q.value;
|
|
24722
24722
|
}
|
|
24723
24723
|
async function M0() {
|
|
24724
24724
|
var s;
|
|
24725
24725
|
try {
|
|
24726
|
-
m.value = await bu(), C.value = await Yt(), m.value.find((l) => l.id ===
|
|
24726
|
+
m.value = await bu(), C.value = await Yt(), m.value.find((l) => l.id === K.value) || (K.value = ((s = m.value.find((l) => l.isDefault)) == null ? void 0 : s.id) || m.value[0].id);
|
|
24727
24727
|
} catch (u) {
|
|
24728
24728
|
console.log(u), J.open({
|
|
24729
24729
|
title: "Report Fetch Error",
|
|
@@ -24732,7 +24732,7 @@ const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
|
24732
24732
|
});
|
|
24733
24733
|
}
|
|
24734
24734
|
}
|
|
24735
|
-
async function
|
|
24735
|
+
async function c0() {
|
|
24736
24736
|
try {
|
|
24737
24737
|
T.value = await _u(), C.value.length === 0 && (C.value = await Yt());
|
|
24738
24738
|
} catch (s) {
|
|
@@ -24743,10 +24743,10 @@ const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
|
24743
24743
|
});
|
|
24744
24744
|
}
|
|
24745
24745
|
}
|
|
24746
|
-
const
|
|
24747
|
-
() => m.value.find((s) => s.id ===
|
|
24746
|
+
const e0 = d1(
|
|
24747
|
+
() => m.value.find((s) => s.id === K.value)
|
|
24748
24748
|
);
|
|
24749
|
-
function
|
|
24749
|
+
function t0(s) {
|
|
24750
24750
|
var l;
|
|
24751
24751
|
const u = (l = f.value.find((M) => M.name === s.schemaName)) == null ? void 0 : l.fields.find((M) => M.name === s.name);
|
|
24752
24752
|
return u == null ? void 0 : u.type;
|
|
@@ -24754,18 +24754,18 @@ const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
|
24754
24754
|
N1(
|
|
24755
24755
|
() => {
|
|
24756
24756
|
var s;
|
|
24757
|
-
return (s =
|
|
24757
|
+
return (s = e0.value) == null ? void 0 : s.globalFilters;
|
|
24758
24758
|
},
|
|
24759
24759
|
(s) => {
|
|
24760
24760
|
b.value = (s ?? []).map((u) => ({
|
|
24761
24761
|
...u,
|
|
24762
24762
|
values: Array.isArray(u.values) ? [...u.values] : [],
|
|
24763
|
-
type:
|
|
24763
|
+
type: t0(u)
|
|
24764
24764
|
}));
|
|
24765
24765
|
},
|
|
24766
24766
|
{ deep: !0 }
|
|
24767
24767
|
);
|
|
24768
|
-
const s0 = R0(), b0 = R0(0),
|
|
24768
|
+
const s0 = R0(), b0 = R0(0), O0 = R0(), l0 = R0(null), d0 = R0(null), D0 = R0(!1), o0 = R0(!1), t = R0(!1);
|
|
24769
24769
|
async function i(s) {
|
|
24770
24770
|
const u = H.value.findIndex((M) => M.id === s.id);
|
|
24771
24771
|
let l;
|
|
@@ -24777,7 +24777,7 @@ const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
|
24777
24777
|
if (a0.value) {
|
|
24778
24778
|
await Eu(l.id, l.name);
|
|
24779
24779
|
const { businessId: M } = g0(J0());
|
|
24780
|
-
await
|
|
24780
|
+
await w.fetchUserPermissions(void 0, M.value);
|
|
24781
24781
|
}
|
|
24782
24782
|
} catch (M) {
|
|
24783
24783
|
console.warn("Failed to grant report manage permission", {
|
|
@@ -24795,16 +24795,16 @@ const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
|
24795
24795
|
await $u(s), await _0();
|
|
24796
24796
|
}
|
|
24797
24797
|
async function S(s) {
|
|
24798
|
-
await du(s), await
|
|
24798
|
+
await du(s), await c0();
|
|
24799
24799
|
}
|
|
24800
24800
|
async function F(s) {
|
|
24801
|
-
await zu(s), await
|
|
24801
|
+
await zu(s), await c0();
|
|
24802
24802
|
}
|
|
24803
24803
|
async function W(s) {
|
|
24804
|
-
await Ou(s), await
|
|
24804
|
+
await Ou(s), await c0();
|
|
24805
24805
|
}
|
|
24806
24806
|
function O(s) {
|
|
24807
|
-
|
|
24807
|
+
K.value = s;
|
|
24808
24808
|
}
|
|
24809
24809
|
const r = R0(null);
|
|
24810
24810
|
function e() {
|
|
@@ -24837,33 +24837,33 @@ const Ru = "mf-reportreport-store", ze = ce(Ru, () => {
|
|
|
24837
24837
|
return await mu();
|
|
24838
24838
|
}
|
|
24839
24839
|
return {
|
|
24840
|
-
isOpenDownloadDialog:
|
|
24840
|
+
isOpenDownloadDialog: D0,
|
|
24841
24841
|
isOpenFeedbackDialog: o0,
|
|
24842
24842
|
isOpenEmailDialog: t,
|
|
24843
|
-
currentSelectWidgetType:
|
|
24843
|
+
currentSelectWidgetType: V,
|
|
24844
24844
|
reports: m,
|
|
24845
24845
|
reportTemplates: T,
|
|
24846
24846
|
categories: C,
|
|
24847
|
-
currentReport:
|
|
24847
|
+
currentReport: e0,
|
|
24848
24848
|
editingReport: s0,
|
|
24849
24849
|
editingTileIndex: b0,
|
|
24850
|
-
editingTile:
|
|
24851
|
-
editingGlobalFilterIndex:
|
|
24850
|
+
editingTile: O0,
|
|
24851
|
+
editingGlobalFilterIndex: l0,
|
|
24852
24852
|
editingGlobalFilter: d0,
|
|
24853
|
-
currentReportId:
|
|
24853
|
+
currentReportId: K,
|
|
24854
24854
|
editableReports: H,
|
|
24855
|
-
nonEditableReports:
|
|
24856
|
-
isOpenAddReportDialog:
|
|
24857
|
-
overviewReport:
|
|
24855
|
+
nonEditableReports: G,
|
|
24856
|
+
isOpenAddReportDialog: j,
|
|
24857
|
+
overviewReport: Q,
|
|
24858
24858
|
pinReport: r,
|
|
24859
|
-
scrollPositionY:
|
|
24860
|
-
customReportQuota:
|
|
24861
|
-
canCreateCustomReport:
|
|
24859
|
+
scrollPositionY: x,
|
|
24860
|
+
customReportQuota: n0,
|
|
24861
|
+
canCreateCustomReport: Y,
|
|
24862
24862
|
createOrUpdateReport: i,
|
|
24863
24863
|
removeReport: p,
|
|
24864
24864
|
updateCurrentReportId: O,
|
|
24865
24865
|
getReports: M0,
|
|
24866
|
-
getReportTemplates:
|
|
24866
|
+
getReportTemplates: c0,
|
|
24867
24867
|
updateDefaultReport: A,
|
|
24868
24868
|
createReportTemplate: S,
|
|
24869
24869
|
updateReportTemplate: F,
|
|
@@ -24885,7 +24885,7 @@ async function Wu(c) {
|
|
|
24885
24885
|
return Gt(Ze.get(c));
|
|
24886
24886
|
let b = c;
|
|
24887
24887
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
24888
|
-
const m = new URL(c.replace(/^\//, ""), import.meta.url).href, T = await fetch(m).then((
|
|
24888
|
+
const m = new URL(c.replace(/^\//, ""), import.meta.url).href, T = await fetch(m).then((x) => x.text()), C = new Blob([T], { type: "application/javascript" });
|
|
24889
24889
|
b = URL.createObjectURL(C);
|
|
24890
24890
|
}
|
|
24891
24891
|
const $ = Gt(b);
|
|
@@ -24907,9 +24907,9 @@ const Iu = "mf-reportwidget-size", on = ce(Iu, () => {
|
|
|
24907
24907
|
try {
|
|
24908
24908
|
if (!f) return;
|
|
24909
24909
|
let T;
|
|
24910
|
-
const C = f.$el,
|
|
24911
|
-
if (
|
|
24912
|
-
const J =
|
|
24910
|
+
const C = f.$el, x = (m = C == null ? void 0 : C.querySelector) == null ? void 0 : m.call(C, "canvas");
|
|
24911
|
+
if (x) {
|
|
24912
|
+
const J = x.getBoundingClientRect();
|
|
24913
24913
|
T = { width: Math.round(J.width), height: Math.round(J.height) };
|
|
24914
24914
|
}
|
|
24915
24915
|
if (T && T.width > 0 && T.height > 0)
|
|
@@ -24923,8 +24923,8 @@ const Iu = "mf-reportwidget-size", on = ce(Iu, () => {
|
|
|
24923
24923
|
const c = R0([]);
|
|
24924
24924
|
function b(m, T) {
|
|
24925
24925
|
if (m == null) return;
|
|
24926
|
-
const C = Array.isArray(T) ? T.filter((
|
|
24927
|
-
|
|
24926
|
+
const C = Array.isArray(T) ? T.filter((w) => w && w.key) : [], x = c.value.findIndex((w) => w.tileIndex === m), J = { tileIndex: m, sorts: C };
|
|
24927
|
+
x !== -1 ? c.value.splice(x, 1, J) : c.value.push(J);
|
|
24928
24928
|
}
|
|
24929
24929
|
function f(m) {
|
|
24930
24930
|
var T;
|
|
@@ -24982,12 +24982,12 @@ function wu(c, b) {
|
|
|
24982
24982
|
function vu(c) {
|
|
24983
24983
|
var $, m, T, C;
|
|
24984
24984
|
const b = Array.from(
|
|
24985
|
-
new Set((c.values ?? []).map((
|
|
24985
|
+
new Set((c.values ?? []).map((x) => x === "" ? "NULL" : x))
|
|
24986
24986
|
);
|
|
24987
24987
|
if (b.length === 1 && String(b[0]) === "(EMPTY)") {
|
|
24988
|
-
const
|
|
24988
|
+
const x = Object.values(w0).includes(
|
|
24989
24989
|
String(c.option ?? "")
|
|
24990
|
-
), J = c.option === w0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [
|
|
24990
|
+
), J = c.option === w0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [x ? "-1" : "(EMPTY)"];
|
|
24991
24991
|
return [
|
|
24992
24992
|
{
|
|
24993
24993
|
schemaName: c.schemaName,
|
|
@@ -25001,17 +25001,17 @@ function vu(c) {
|
|
|
25001
25001
|
];
|
|
25002
25002
|
}
|
|
25003
25003
|
if (((($ = c.customTimeRanges) == null ? void 0 : $.length) ?? 0) > 0) {
|
|
25004
|
-
const
|
|
25004
|
+
const x = new Set(b.map((J) => String(J)));
|
|
25005
25005
|
return ((m = c.customTimeRanges) == null ? void 0 : m.filter((J) => {
|
|
25006
|
-
const
|
|
25007
|
-
return
|
|
25006
|
+
const w = String(J.name ?? "");
|
|
25007
|
+
return x.has(w);
|
|
25008
25008
|
}).map((J) => wu(c, J)).filter((J) => !!J)) ?? [];
|
|
25009
25009
|
}
|
|
25010
25010
|
if ((((T = c.customOptions) == null ? void 0 : T.length) ?? 0) > 0) {
|
|
25011
|
-
const
|
|
25011
|
+
const x = new Set(b.map((J) => String(J)));
|
|
25012
25012
|
return ((C = c.customOptions) == null ? void 0 : C.filter((J) => {
|
|
25013
|
-
const
|
|
25014
|
-
return
|
|
25013
|
+
const w = String(J.label ?? "");
|
|
25014
|
+
return x.has(w);
|
|
25015
25015
|
}).map((J) => xu(c, J)).filter((J) => Array.isArray(J.values) && J.values.length > 0)) ?? [];
|
|
25016
25016
|
}
|
|
25017
25017
|
return b.length === 0 ? [] : [
|
|
@@ -25031,34 +25031,34 @@ function jt({
|
|
|
25031
25031
|
globalFilters: b,
|
|
25032
25032
|
schemaNames: f
|
|
25033
25033
|
}) {
|
|
25034
|
-
const $ = /* @__PURE__ */ new Map(), m = [], T = new Set((f ?? []).map((
|
|
25035
|
-
if (!
|
|
25034
|
+
const $ = /* @__PURE__ */ new Map(), m = [], T = new Set((f ?? []).map((w) => String(w))), C = (w) => T.has(w.schemaName ?? ""), x = b.filter(C), J = (w) => {
|
|
25035
|
+
if (!w || !C(w) || !Array.isArray(w.values) || w.values.length === 0)
|
|
25036
25036
|
return;
|
|
25037
25037
|
const H = {
|
|
25038
|
-
...
|
|
25039
|
-
values: un(
|
|
25038
|
+
...w,
|
|
25039
|
+
values: un(w.values)
|
|
25040
25040
|
};
|
|
25041
25041
|
if (H.option === w0.TimeOfDay && H.operator === Z0.Between) {
|
|
25042
25042
|
m.push(H);
|
|
25043
25043
|
return;
|
|
25044
25044
|
}
|
|
25045
|
-
const
|
|
25046
|
-
if (!
|
|
25047
|
-
$.set(
|
|
25045
|
+
const j = Bu(H), K = $.get(j);
|
|
25046
|
+
if (!K) {
|
|
25047
|
+
$.set(j, H);
|
|
25048
25048
|
return;
|
|
25049
25049
|
}
|
|
25050
|
-
|
|
25051
|
-
...
|
|
25050
|
+
K.values = [
|
|
25051
|
+
...K.values ?? [],
|
|
25052
25052
|
...H.values
|
|
25053
|
-
], $.set(
|
|
25053
|
+
], $.set(j, K);
|
|
25054
25054
|
};
|
|
25055
|
-
return c.forEach(J),
|
|
25055
|
+
return c.forEach(J), x.forEach(J), [...Array.from($.values()), ...m];
|
|
25056
25056
|
}
|
|
25057
25057
|
function Ue(c, b, f) {
|
|
25058
25058
|
var T;
|
|
25059
25059
|
const $ = JSON.parse(JSON.stringify(c)), m = b.filter((C) => {
|
|
25060
|
-
var
|
|
25061
|
-
return (
|
|
25060
|
+
var x;
|
|
25061
|
+
return (x = C.tileIds) == null ? void 0 : x.includes(f);
|
|
25062
25062
|
}).flatMap((C) => vu(C));
|
|
25063
25063
|
return {
|
|
25064
25064
|
...$,
|
|
@@ -25069,14 +25069,14 @@ function Ue(c, b, f) {
|
|
|
25069
25069
|
globalFilters: m ?? [],
|
|
25070
25070
|
schemaNames: $.config.schemaNames
|
|
25071
25071
|
}),
|
|
25072
|
-
joinDatasources: ((T = $.config.joinDatasources) == null ? void 0 : T.map((C,
|
|
25072
|
+
joinDatasources: ((T = $.config.joinDatasources) == null ? void 0 : T.map((C, x) => {
|
|
25073
25073
|
var J;
|
|
25074
25074
|
return {
|
|
25075
25075
|
...C,
|
|
25076
25076
|
filters: jt({
|
|
25077
25077
|
originalFilters: C.filters ?? [],
|
|
25078
25078
|
globalFilters: m ?? [],
|
|
25079
|
-
schemaNames: (J = $.config.joinDatasources) == null ? void 0 : J[
|
|
25079
|
+
schemaNames: (J = $.config.joinDatasources) == null ? void 0 : J[x].schemaNames
|
|
25080
25080
|
})
|
|
25081
25081
|
};
|
|
25082
25082
|
})) ?? []
|
|
@@ -25105,44 +25105,44 @@ const Ju = async ({
|
|
|
25105
25105
|
scopedDateRange: T,
|
|
25106
25106
|
scopedGlobalFilters: C
|
|
25107
25107
|
}) => {
|
|
25108
|
-
var
|
|
25109
|
-
const { businessId:
|
|
25110
|
-
selectedRestaurantIds:
|
|
25111
|
-
selectedWarehouseIds:
|
|
25112
|
-
selectedLocationIds:
|
|
25113
|
-
dateRange:
|
|
25114
|
-
compareDateRange:
|
|
25115
|
-
timeRange:
|
|
25116
|
-
timezone:
|
|
25117
|
-
restaurants:
|
|
25118
|
-
warehouses:
|
|
25119
|
-
} = Z1(), { globalFilters:
|
|
25120
|
-
if (
|
|
25108
|
+
var o0, t, i, p;
|
|
25109
|
+
const { businessId: x, country: J } = g0(J0()), { currentReport: w, editingReport: H } = ze(), G = H ?? w, {
|
|
25110
|
+
selectedRestaurantIds: j,
|
|
25111
|
+
selectedWarehouseIds: K,
|
|
25112
|
+
selectedLocationIds: V,
|
|
25113
|
+
dateRange: Q,
|
|
25114
|
+
compareDateRange: n0,
|
|
25115
|
+
timeRange: a0,
|
|
25116
|
+
timezone: Y,
|
|
25117
|
+
restaurants: _0,
|
|
25118
|
+
warehouses: M0
|
|
25119
|
+
} = Z1(), { globalFilters: c0 } = P1();
|
|
25120
|
+
if (V.length === 0)
|
|
25121
25121
|
return null;
|
|
25122
|
-
const
|
|
25122
|
+
const e0 = T ?? Q, t0 = m ?? a0, s0 = C ?? c0, b0 = ($ == null ? void 0 : $.filter((A) => _0.some((S) => S.id === A))) ?? j, O0 = ($ == null ? void 0 : $.filter((A) => M0.some((S) => S.id === A))) ?? K, l0 = Ue(c, s0, f ?? ""), d0 = {
|
|
25123
25123
|
fetchType: H0.Post,
|
|
25124
|
-
url: `/${
|
|
25124
|
+
url: `/${x.value}/v2/query`,
|
|
25125
25125
|
data: {
|
|
25126
|
-
widget:
|
|
25127
|
-
dateRange: [
|
|
25128
|
-
compareDateRange:
|
|
25126
|
+
widget: l0,
|
|
25127
|
+
dateRange: [e0.startDate, e0.endDate],
|
|
25128
|
+
compareDateRange: n0.startDate && n0.endDate ? [n0.startDate, n0.endDate] : void 0,
|
|
25129
25129
|
timeRange: [
|
|
25130
|
-
U0().tz(
|
|
25131
|
-
U0().tz(
|
|
25130
|
+
U0().tz(Y).hour(Number((o0 = t0.start) == null ? void 0 : o0.hour)).minute(Number((t = t0.start) == null ? void 0 : t.minute)).toISOString(),
|
|
25131
|
+
U0().tz(Y).hour(Number((i = t0.end) == null ? void 0 : i.hour)).minute(Number((p = t0.end) == null ? void 0 : p.minute)).endOf("minutes").toISOString()
|
|
25132
25132
|
],
|
|
25133
|
-
businessIds:
|
|
25134
|
-
restaurantIds:
|
|
25135
|
-
warehouseIds:
|
|
25136
|
-
timezone:
|
|
25137
|
-
skipStringSpaceGrouping: !!(
|
|
25138
|
-
reportId:
|
|
25133
|
+
businessIds: x.value ? [x.value] : [],
|
|
25134
|
+
restaurantIds: b0,
|
|
25135
|
+
warehouseIds: O0,
|
|
25136
|
+
timezone: Y,
|
|
25137
|
+
skipStringSpaceGrouping: !!(G != null && G.batch),
|
|
25138
|
+
reportId: G == null ? void 0 : G.id
|
|
25139
25139
|
},
|
|
25140
25140
|
requestConfig: {
|
|
25141
25141
|
timeout: 1e3 * 60 * 5,
|
|
25142
25142
|
signal: b
|
|
25143
25143
|
}
|
|
25144
25144
|
};
|
|
25145
|
-
return await ln([() => Y0.fetch(
|
|
25145
|
+
return await ln([() => Y0.fetch(d0)], 2e3);
|
|
25146
25146
|
}, Hu = async ({
|
|
25147
25147
|
widget: c,
|
|
25148
25148
|
signal: b,
|
|
@@ -25153,8 +25153,8 @@ const Ju = async ({
|
|
|
25153
25153
|
scopedGlobalFilters: C
|
|
25154
25154
|
}) => {
|
|
25155
25155
|
var t, i, p, A;
|
|
25156
|
-
const { businessId:
|
|
25157
|
-
if (Pu(
|
|
25156
|
+
const { businessId: x, country: J } = g0(J0()), { currentReport: w, editingReport: H } = ze(), G = H ?? w;
|
|
25157
|
+
if (Pu(G))
|
|
25158
25158
|
return Ju({
|
|
25159
25159
|
widget: c,
|
|
25160
25160
|
signal: b,
|
|
@@ -25165,54 +25165,54 @@ const Ju = async ({
|
|
|
25165
25165
|
scopedGlobalFilters: C
|
|
25166
25166
|
});
|
|
25167
25167
|
const {
|
|
25168
|
-
selectedRestaurantIds:
|
|
25169
|
-
selectedWarehouseIds:
|
|
25170
|
-
selectedLocationIds:
|
|
25171
|
-
dateRange:
|
|
25172
|
-
compareDateRange:
|
|
25168
|
+
selectedRestaurantIds: j,
|
|
25169
|
+
selectedWarehouseIds: K,
|
|
25170
|
+
selectedLocationIds: V,
|
|
25171
|
+
dateRange: Q,
|
|
25172
|
+
compareDateRange: n0,
|
|
25173
25173
|
timeRange: a0,
|
|
25174
|
-
timezone:
|
|
25174
|
+
timezone: Y,
|
|
25175
25175
|
restaurants: _0,
|
|
25176
25176
|
warehouses: M0
|
|
25177
|
-
} = Z1(), { globalFilters:
|
|
25178
|
-
if (
|
|
25177
|
+
} = Z1(), { globalFilters: c0 } = P1();
|
|
25178
|
+
if (V.length === 0)
|
|
25179
25179
|
return null;
|
|
25180
|
-
const
|
|
25180
|
+
const e0 = T ?? Q, t0 = m ?? a0, s0 = C ?? c0, b0 = ($ == null ? void 0 : $.filter((S) => _0.some((F) => F.id === S))) ?? j, O0 = ($ == null ? void 0 : $.filter((S) => M0.some((F) => F.id === S))) ?? K, l0 = Ue(c, s0, f ?? ""), d0 = {
|
|
25181
25181
|
fetchType: H0.Post,
|
|
25182
|
-
url: `/${
|
|
25182
|
+
url: `/${x.value}/postgres-query`,
|
|
25183
25183
|
data: Bt.getQueryRequests({
|
|
25184
|
-
widget:
|
|
25185
|
-
dateRange: [
|
|
25186
|
-
compareDateRange:
|
|
25184
|
+
widget: l0,
|
|
25185
|
+
dateRange: [e0.startDate, e0.endDate],
|
|
25186
|
+
compareDateRange: n0.startDate && n0.endDate ? [n0.startDate, n0.endDate] : void 0,
|
|
25187
25187
|
timeRange: [
|
|
25188
|
-
U0().tz(
|
|
25189
|
-
U0().tz(
|
|
25188
|
+
U0().tz(Y).hour(Number((t = t0.start) == null ? void 0 : t.hour)).minute(Number((i = t0.start) == null ? void 0 : i.minute)).toISOString(),
|
|
25189
|
+
U0().tz(Y).hour(Number((p = t0.end) == null ? void 0 : p.hour)).minute(Number((A = t0.end) == null ? void 0 : A.minute)).endOf("minutes").toISOString()
|
|
25190
25190
|
],
|
|
25191
|
-
businessIds:
|
|
25191
|
+
businessIds: x.value ? [x.value] : [],
|
|
25192
25192
|
restaurantIds: b0,
|
|
25193
|
-
warehouseIds:
|
|
25194
|
-
timezone:
|
|
25193
|
+
warehouseIds: O0,
|
|
25194
|
+
timezone: Y
|
|
25195
25195
|
}).map((S, F) => {
|
|
25196
25196
|
const W = F === 0 ? 3e3 : 12e3;
|
|
25197
25197
|
return {
|
|
25198
25198
|
...S,
|
|
25199
25199
|
limit: b0.length > 50 ? c.config.limit || W : c.config.limit,
|
|
25200
|
-
skipStringSpaceGrouping: !!(
|
|
25201
|
-
reportId:
|
|
25200
|
+
skipStringSpaceGrouping: !!(G != null && G.batch),
|
|
25201
|
+
reportId: G == null ? void 0 : G.id
|
|
25202
25202
|
};
|
|
25203
25203
|
}),
|
|
25204
25204
|
requestConfig: {
|
|
25205
25205
|
timeout: 1e3 * 60 * 5,
|
|
25206
25206
|
signal: b
|
|
25207
25207
|
}
|
|
25208
|
-
},
|
|
25209
|
-
|
|
25210
|
-
const o0 = await ln(
|
|
25208
|
+
}, D0 = [() => Y0.fetch(d0)];
|
|
25209
|
+
j.length < 50 && D0.push(() => Y0.fetch(d0)), D0.push(() => (d0.url = d0.url.replace("postgres-query", "query"), Y0.fetch(d0)));
|
|
25210
|
+
const o0 = await ln(D0, 2e3);
|
|
25211
25211
|
return (await Lu(Cu, {
|
|
25212
25212
|
responses: o0,
|
|
25213
25213
|
widget: JSON.parse(JSON.stringify(c)),
|
|
25214
25214
|
country: J.value,
|
|
25215
|
-
timezone:
|
|
25215
|
+
timezone: Y
|
|
25216
25216
|
})).data;
|
|
25217
25217
|
};
|
|
25218
25218
|
function pn(c) {
|
|
@@ -25269,36 +25269,36 @@ const Rl = async ({
|
|
|
25269
25269
|
locationIds: m,
|
|
25270
25270
|
timeRange: T,
|
|
25271
25271
|
dateRange: C,
|
|
25272
|
-
globalFilters:
|
|
25272
|
+
globalFilters: x
|
|
25273
25273
|
}) => {
|
|
25274
|
-
const { businessId: J } = g0(J0()),
|
|
25275
|
-
let M0 =
|
|
25276
|
-
a0 === "overview" &&
|
|
25277
|
-
const
|
|
25274
|
+
const { businessId: J } = g0(J0()), w = Z1(), { compareDateRange: H } = g0(w), { restaurants: G, warehouses: j, timezone: K } = w, { globalFilters: V } = P1(), { currentReport: Q, overviewReport: n0 } = ze(), { selectedNavigationTab: a0 } = nr(), { sizes: Y } = on(), { getTileSorts: _0 } = sn();
|
|
25275
|
+
let M0 = Q == null ? void 0 : Q.id, c0 = (Q == null ? void 0 : Q.tiles) ?? [];
|
|
25276
|
+
a0 === "overview" && n0 && (M0 = n0 == null ? void 0 : n0.id, c0 = (n0 == null ? void 0 : n0.tiles) ?? []);
|
|
25277
|
+
const e0 = x ?? V, t0 = c0.filter((o0, t) => typeof b == "number" ? t === b : !0).map((o0) => Ue(o0.widget, e0, o0.id)), s0 = {
|
|
25278
25278
|
fetchType: H0.Post,
|
|
25279
25279
|
url: `/${J.value}/file?lang=${x1()}`,
|
|
25280
25280
|
data: {
|
|
25281
25281
|
configs: [
|
|
25282
|
-
...
|
|
25282
|
+
...t0.map((o0, t) => {
|
|
25283
25283
|
var p, A, S, F;
|
|
25284
|
-
const i =
|
|
25284
|
+
const i = Y[b ?? t];
|
|
25285
25285
|
return {
|
|
25286
25286
|
requests: Bt.getQueryRequests({
|
|
25287
25287
|
widget: o0,
|
|
25288
25288
|
dateRange: [C.startDate, C.endDate],
|
|
25289
25289
|
compareDateRange: H.value.startDate && H.value.endDate ? [H.value.startDate, H.value.endDate] : void 0,
|
|
25290
25290
|
timeRange: [
|
|
25291
|
-
U0().tz(
|
|
25292
|
-
U0().tz(
|
|
25291
|
+
U0().tz(K).set("hour", Number((p = T.start) == null ? void 0 : p.hour)).set("minute", Number((A = T.start) == null ? void 0 : A.minute)).toISOString(),
|
|
25292
|
+
U0().tz(K).set("hour", Number((S = T.end) == null ? void 0 : S.hour)).set("minute", Number((F = T.end) == null ? void 0 : F.minute)).toISOString()
|
|
25293
25293
|
],
|
|
25294
25294
|
businessIds: J ? [J.value] : [],
|
|
25295
25295
|
restaurantIds: m.filter(
|
|
25296
|
-
(W) =>
|
|
25296
|
+
(W) => G.find((O) => O.id === W)
|
|
25297
25297
|
),
|
|
25298
25298
|
warehouseIds: m.filter(
|
|
25299
|
-
(W) =>
|
|
25299
|
+
(W) => j.find((O) => O.id === W)
|
|
25300
25300
|
),
|
|
25301
|
-
timezone:
|
|
25301
|
+
timezone: K
|
|
25302
25302
|
}),
|
|
25303
25303
|
index: b || t,
|
|
25304
25304
|
drillDimension: null,
|
|
@@ -25319,8 +25319,8 @@ const Rl = async ({
|
|
|
25319
25319
|
responseType: "arraybuffer",
|
|
25320
25320
|
timeout: 1e3 * 60 * 60 * 24
|
|
25321
25321
|
}
|
|
25322
|
-
}, { headers: b0, data:
|
|
25323
|
-
|
|
25322
|
+
}, { headers: b0, data: O0 } = await bt.rawFetch(s0), l0 = b0["content-disposition"].split("filename=")[1].replaceAll('"', ""), d0 = window.URL.createObjectURL(new Blob([new Uint8Array(O0).buffer])), D0 = document.createElement("a");
|
|
25323
|
+
D0.href = d0, D0.setAttribute("download", decodeURIComponent(l0)), document.body.appendChild(D0), D0.click(), D0.remove();
|
|
25324
25324
|
}, Cl = async ({
|
|
25325
25325
|
emails: c,
|
|
25326
25326
|
types: b,
|
|
@@ -25329,52 +25329,52 @@ const Rl = async ({
|
|
|
25329
25329
|
locationIds: m,
|
|
25330
25330
|
orientationTypes: T,
|
|
25331
25331
|
isCombinedLocationLayout: C,
|
|
25332
|
-
globalFilters:
|
|
25332
|
+
globalFilters: x
|
|
25333
25333
|
}) => {
|
|
25334
|
-
const { businessId: J } = g0(J0()), { currentReport:
|
|
25334
|
+
const { businessId: J } = g0(J0()), { currentReport: w, overviewReport: H } = ze(), { selectedNavigationTab: G } = nr(), j = Z1(), { compareDateRange: K } = g0(j), { restaurants: V, warehouses: Q, timezone: n0 } = j, { globalFilters: a0 } = P1(), { sizes: Y } = on(), { getTileSorts: _0 } = sn();
|
|
25335
25335
|
if (c.length === 0) {
|
|
25336
25336
|
console.error("No email addresses provided.");
|
|
25337
25337
|
return;
|
|
25338
25338
|
}
|
|
25339
|
-
let M0 = (
|
|
25340
|
-
|
|
25341
|
-
const
|
|
25339
|
+
let M0 = (w == null ? void 0 : w.id) || "", c0 = (w == null ? void 0 : w.name) || "", e0 = (w == null ? void 0 : w.tiles) ?? [];
|
|
25340
|
+
G === "overview" && H && (M0 = H == null ? void 0 : H.id, c0 = H.name, e0 = (H == null ? void 0 : H.tiles) ?? []);
|
|
25341
|
+
const t0 = x ?? a0, s0 = e0.map((O0) => Ue(O0.widget, t0, O0.id)), b0 = {
|
|
25342
25342
|
businessId: J.value,
|
|
25343
25343
|
status: an.generating,
|
|
25344
25344
|
dateRange: {
|
|
25345
25345
|
start: f.startDate,
|
|
25346
25346
|
end: f.endDate
|
|
25347
25347
|
},
|
|
25348
|
-
reportName:
|
|
25348
|
+
reportName: c0,
|
|
25349
25349
|
emails: c,
|
|
25350
|
-
configs: s0.map((
|
|
25351
|
-
var
|
|
25352
|
-
const d0 =
|
|
25350
|
+
configs: s0.map((O0, l0) => {
|
|
25351
|
+
var D0, o0, t, i;
|
|
25352
|
+
const d0 = Y[l0];
|
|
25353
25353
|
return {
|
|
25354
25354
|
requests: Bt.getQueryRequests({
|
|
25355
|
-
widget:
|
|
25355
|
+
widget: O0,
|
|
25356
25356
|
dateRange: [f.startDate, f.endDate],
|
|
25357
|
-
compareDateRange:
|
|
25357
|
+
compareDateRange: K.value.startDate && K.value.endDate ? [K.value.startDate, K.value.endDate] : void 0,
|
|
25358
25358
|
timeRange: [
|
|
25359
|
-
U0().tz(
|
|
25360
|
-
U0().tz(
|
|
25359
|
+
U0().tz(n0).hour(Number((D0 = $.start) == null ? void 0 : D0.hour)).minute(Number((o0 = $.start) == null ? void 0 : o0.minute)).toISOString(),
|
|
25360
|
+
U0().tz(n0).hour(Number((t = $.end) == null ? void 0 : t.hour)).minute(Number((i = $.end) == null ? void 0 : i.minute)).endOf("minutes").toISOString()
|
|
25361
25361
|
],
|
|
25362
25362
|
businessIds: J ? [J.value] : [],
|
|
25363
25363
|
restaurantIds: m.filter(
|
|
25364
|
-
(p) =>
|
|
25364
|
+
(p) => V.find((A) => A.id === p)
|
|
25365
25365
|
),
|
|
25366
25366
|
warehouseIds: m.filter(
|
|
25367
|
-
(p) =>
|
|
25367
|
+
(p) => Q.find((A) => A.id === p)
|
|
25368
25368
|
),
|
|
25369
|
-
timezone:
|
|
25369
|
+
timezone: n0
|
|
25370
25370
|
}),
|
|
25371
|
-
index:
|
|
25371
|
+
index: l0,
|
|
25372
25372
|
drillDimension: null,
|
|
25373
|
-
chartWidth: (d0 == null ? void 0 : d0.width) ??
|
|
25374
|
-
chartHeight: (d0 == null ? void 0 : d0.height) ??
|
|
25375
|
-
...pn(
|
|
25376
|
-
...cn(
|
|
25377
|
-
globalSorts: _0(
|
|
25373
|
+
chartWidth: (d0 == null ? void 0 : d0.width) ?? O0.config.chartWidth,
|
|
25374
|
+
chartHeight: (d0 == null ? void 0 : d0.height) ?? O0.config.chartHeight,
|
|
25375
|
+
...pn(O0),
|
|
25376
|
+
...cn(O0),
|
|
25377
|
+
globalSorts: _0(l0)
|
|
25378
25378
|
};
|
|
25379
25379
|
}),
|
|
25380
25380
|
reportId: M0,
|
|
@@ -25484,92 +25484,92 @@ const Zt = (c, b = "en") => U0().set("hour", c.hour).set("minute", c.minute).loc
|
|
|
25484
25484
|
emits: /* @__PURE__ */ Te(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
25485
25485
|
setup(c, { emit: b }) {
|
|
25486
25486
|
const { t: f, locale: $ } = or(), m = tt(c, "timeRange"), T = b, C = tt(c, "selectTimeDefault");
|
|
25487
|
-
function
|
|
25488
|
-
|
|
25487
|
+
function x(V) {
|
|
25488
|
+
V && (m.value = V, T("update", m.value)), G.value = !1;
|
|
25489
25489
|
}
|
|
25490
|
-
function J(
|
|
25491
|
-
const
|
|
25490
|
+
function J(V) {
|
|
25491
|
+
const Q = V.split(":"), n0 = U0().set("hour", Number(Q[0])).set("minute", Number(Q[1]));
|
|
25492
25492
|
return {
|
|
25493
|
-
hours: Number(
|
|
25494
|
-
minutes: Number(
|
|
25495
|
-
period:
|
|
25493
|
+
hours: Number(n0.format("h")),
|
|
25494
|
+
minutes: Number(n0.format("m")),
|
|
25495
|
+
period: n0.format("A")
|
|
25496
25496
|
};
|
|
25497
25497
|
}
|
|
25498
|
-
const
|
|
25499
|
-
function H(
|
|
25500
|
-
|
|
25498
|
+
const w = R0(JSON.parse(JSON.stringify(m.value)));
|
|
25499
|
+
function H(V, Q) {
|
|
25500
|
+
w.value.start = JSON.parse(JSON.stringify(V)), w.value.end = JSON.parse(JSON.stringify(Q));
|
|
25501
25501
|
}
|
|
25502
25502
|
N1(
|
|
25503
25503
|
() => [m.value, c.defaultDateRange],
|
|
25504
25504
|
() => {
|
|
25505
25505
|
if (m.value) {
|
|
25506
|
-
const
|
|
25507
|
-
(
|
|
25508
|
-
var
|
|
25509
|
-
return
|
|
25506
|
+
const V = c.defaultDateRange.findIndex(
|
|
25507
|
+
(Q) => {
|
|
25508
|
+
var n0, a0, Y, _0;
|
|
25509
|
+
return Q.startTime.hour === ((n0 = m.value.start) == null ? void 0 : n0.hour) && Q.startTime.minute === ((a0 = m.value.start) == null ? void 0 : a0.minute) && Q.endTime.hour === ((Y = m.value.end) == null ? void 0 : Y.hour) && Q.endTime.minute === ((_0 = m.value.end) == null ? void 0 : _0.minute);
|
|
25510
25510
|
}
|
|
25511
25511
|
) + 1;
|
|
25512
|
-
|
|
25512
|
+
V !== 0 ? C.value = V : C.value = c.defaultDateRange.length + 1;
|
|
25513
25513
|
}
|
|
25514
25514
|
},
|
|
25515
25515
|
{ deep: !0, immediate: !0 }
|
|
25516
25516
|
);
|
|
25517
|
-
const
|
|
25518
|
-
function
|
|
25519
|
-
T("chip-closed",
|
|
25517
|
+
const G = R0(!1);
|
|
25518
|
+
function j(V) {
|
|
25519
|
+
T("chip-closed", V);
|
|
25520
25520
|
}
|
|
25521
|
-
const
|
|
25521
|
+
const K = d1(() => c.label ? c.label : tr({
|
|
25522
25522
|
startTime: m.value.start,
|
|
25523
25523
|
endTime: m.value.end,
|
|
25524
25524
|
locale: $.value
|
|
25525
25525
|
}));
|
|
25526
|
-
return (
|
|
25527
|
-
const
|
|
25526
|
+
return (V, Q) => {
|
|
25527
|
+
const n0 = G0("FmChip"), a0 = G0("FmRadio"), Y = G0("FmMenuDivider"), _0 = G0("FmRadioGroup"), M0 = G0("FmTimeInput"), c0 = G0("FmButton"), e0 = G0("FmPopover");
|
|
25528
25528
|
return Q0(), u1("div", null, [
|
|
25529
|
-
x0(
|
|
25530
|
-
"show-popover":
|
|
25529
|
+
x0(e0, {
|
|
25530
|
+
"show-popover": G.value,
|
|
25531
25531
|
placement: "bottom",
|
|
25532
|
-
onPopoverChanged:
|
|
25532
|
+
onPopoverChanged: Q[6] || (Q[6] = (t0) => G.value = t0)
|
|
25533
25533
|
}, {
|
|
25534
25534
|
"popover-button": r1(() => [
|
|
25535
25535
|
x0(rr, {
|
|
25536
25536
|
"left-icon": c.label ? "filter_alt" : "schedule",
|
|
25537
|
-
label:
|
|
25537
|
+
label: K.value,
|
|
25538
25538
|
removable: c.removable,
|
|
25539
|
-
onChipClosed:
|
|
25539
|
+
onChipClosed: Q[0] || (Q[0] = (t0) => j(!0))
|
|
25540
25540
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
25541
25541
|
]),
|
|
25542
25542
|
default: r1(() => {
|
|
25543
|
-
var
|
|
25543
|
+
var t0, s0, b0, O0;
|
|
25544
25544
|
return [
|
|
25545
25545
|
P0("div", Vu, [
|
|
25546
25546
|
x0(_0, {
|
|
25547
25547
|
modelValue: C.value,
|
|
25548
|
-
"onUpdate:modelValue":
|
|
25548
|
+
"onUpdate:modelValue": Q[1] || (Q[1] = (l0) => C.value = l0)
|
|
25549
25549
|
}, {
|
|
25550
25550
|
default: r1(() => [
|
|
25551
|
-
(Q0(!0), u1(Q1, null, rt(c.defaultDateRange, (
|
|
25551
|
+
(Q0(!0), u1(Q1, null, rt(c.defaultDateRange, (l0, d0) => (Q0(), $1(a0, {
|
|
25552
25552
|
key: `range_${d0}`,
|
|
25553
25553
|
value: d0 + 1,
|
|
25554
|
-
label:
|
|
25555
|
-
onClick: (
|
|
25554
|
+
label: l0.name,
|
|
25555
|
+
onClick: (D0) => H(l0.startTime, l0.endTime)
|
|
25556
25556
|
}, {
|
|
25557
25557
|
label: r1(() => [
|
|
25558
25558
|
P0("p", Gu, [
|
|
25559
|
-
Ee(l1(
|
|
25560
|
-
bn(x0(
|
|
25559
|
+
Ee(l1(l0.name) + " ", 1),
|
|
25560
|
+
bn(x0(n0, {
|
|
25561
25561
|
label: L0(f)("report.common.default"),
|
|
25562
25562
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
25563
25563
|
compact: ""
|
|
25564
25564
|
}, null, 8, ["label"]), [
|
|
25565
|
-
[_n,
|
|
25565
|
+
[_n, l0.isDefault]
|
|
25566
25566
|
])
|
|
25567
25567
|
]),
|
|
25568
|
-
P0("p", ju, l1(L0(Zt)(
|
|
25568
|
+
P0("p", ju, l1(L0(Zt)(l0.startTime, L0(x1)())) + " - " + l1(L0(Zt)(l0.endTime, L0(x1)())) + " " + l1(L0(Yu)(l0.startTime, l0.endTime)), 1)
|
|
25569
25569
|
]),
|
|
25570
25570
|
_: 2
|
|
25571
25571
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
25572
|
-
x0(
|
|
25572
|
+
x0(Y),
|
|
25573
25573
|
x0(a0, {
|
|
25574
25574
|
key: "range_custom",
|
|
25575
25575
|
label: L0(f)("report.common.custom"),
|
|
@@ -25582,13 +25582,13 @@ const Zt = (c, b = "en") => U0().set("hour", c.hour).set("minute", c.minute).loc
|
|
|
25582
25582
|
P0("p", Ku, l1(L0(f)("report.date.startingTime")), 1),
|
|
25583
25583
|
P0("div", Zu, [
|
|
25584
25584
|
x0(M0, {
|
|
25585
|
-
"model-value": J(`${(
|
|
25586
|
-
"onUpdate:modelValue":
|
|
25587
|
-
if (
|
|
25588
|
-
const d0 = L0(U0)(`${
|
|
25585
|
+
"model-value": J(`${(t0 = w.value.start) == null ? void 0 : t0.hour}:${(s0 = w.value.start) == null ? void 0 : s0.minute}`),
|
|
25586
|
+
"onUpdate:modelValue": Q[2] || (Q[2] = (l0) => {
|
|
25587
|
+
if (w.value.start) {
|
|
25588
|
+
const d0 = L0(U0)(`${l0.hours}:${l0.minutes} ${l0.period}`, "h:m A").locale(
|
|
25589
25589
|
L0(x1)()
|
|
25590
25590
|
);
|
|
25591
|
-
|
|
25591
|
+
w.value.start.hour = d0.get("hour"), w.value.start.minute = d0.get("minute");
|
|
25592
25592
|
}
|
|
25593
25593
|
})
|
|
25594
25594
|
}, null, 8, ["model-value"])
|
|
@@ -25596,28 +25596,28 @@ const Zt = (c, b = "en") => U0().set("hour", c.hour).set("minute", c.minute).loc
|
|
|
25596
25596
|
P0("p", el, l1(L0(f)("report.date.endingTime")), 1),
|
|
25597
25597
|
P0("div", tl, [
|
|
25598
25598
|
x0(M0, {
|
|
25599
|
-
"model-value": J(`${(b0 =
|
|
25600
|
-
"onUpdate:modelValue":
|
|
25601
|
-
if (
|
|
25602
|
-
const d0 = L0(U0)(`${
|
|
25599
|
+
"model-value": J(`${(b0 = w.value.end) == null ? void 0 : b0.hour}:${(O0 = w.value.end) == null ? void 0 : O0.minute}`),
|
|
25600
|
+
"onUpdate:modelValue": Q[3] || (Q[3] = (l0) => {
|
|
25601
|
+
if (w.value.end) {
|
|
25602
|
+
const d0 = L0(U0)(`${l0.hours}:${l0.minutes} ${l0.period}`, "h:m A").locale(
|
|
25603
25603
|
L0(x1)()
|
|
25604
25604
|
);
|
|
25605
|
-
|
|
25605
|
+
w.value.end.hour = d0.get("hour"), w.value.end.minute = d0.get("minute");
|
|
25606
25606
|
}
|
|
25607
25607
|
})
|
|
25608
25608
|
}, null, 8, ["model-value"])
|
|
25609
25609
|
])
|
|
25610
25610
|
], 64)) : me("", !0),
|
|
25611
25611
|
P0("div", rl, [
|
|
25612
|
-
|
|
25613
|
-
x0(
|
|
25612
|
+
Q[7] || (Q[7] = P0("div", { class: "grow" }, null, -1)),
|
|
25613
|
+
x0(c0, {
|
|
25614
25614
|
label: L0(f)("report.common.cancel"),
|
|
25615
25615
|
variant: "tertiary",
|
|
25616
|
-
onClick:
|
|
25616
|
+
onClick: Q[4] || (Q[4] = (l0) => G.value = !1)
|
|
25617
25617
|
}, null, 8, ["label"]),
|
|
25618
|
-
x0(
|
|
25618
|
+
x0(c0, {
|
|
25619
25619
|
label: L0(f)("report.common.apply"),
|
|
25620
|
-
onClick:
|
|
25620
|
+
onClick: Q[5] || (Q[5] = () => x(JSON.parse(JSON.stringify(w.value))))
|
|
25621
25621
|
}, null, 8, ["label"])
|
|
25622
25622
|
])
|
|
25623
25623
|
])
|
|
@@ -25653,10 +25653,10 @@ const Zt = (c, b = "en") => U0().set("hour", c.hour).set("minute", c.minute).loc
|
|
|
25653
25653
|
return N1(f, () => {
|
|
25654
25654
|
f.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
25655
25655
|
}), (T, C) => {
|
|
25656
|
-
const
|
|
25656
|
+
const x = G0("FmButton"), J = G0("FmDialog");
|
|
25657
25657
|
return Q0(), $1(J, {
|
|
25658
25658
|
modelValue: f.value,
|
|
25659
|
-
"onUpdate:modelValue": C[2] || (C[2] = (
|
|
25659
|
+
"onUpdate:modelValue": C[2] || (C[2] = (w) => f.value = w),
|
|
25660
25660
|
overlay: ""
|
|
25661
25661
|
}, {
|
|
25662
25662
|
"dialog-header": r1(() => [
|
|
@@ -25667,15 +25667,15 @@ const Zt = (c, b = "en") => U0().set("hour", c.hour).set("minute", c.minute).loc
|
|
|
25667
25667
|
]),
|
|
25668
25668
|
"dialog-footer": r1(() => [
|
|
25669
25669
|
C[3] || (C[3] = P0("div", { class: "grow" }, null, -1)),
|
|
25670
|
-
x0(
|
|
25670
|
+
x0(x, {
|
|
25671
25671
|
label: $.secondaryButtonLabel,
|
|
25672
25672
|
variant: "tertiary",
|
|
25673
|
-
onClick: C[0] || (C[0] = (
|
|
25673
|
+
onClick: C[0] || (C[0] = (w) => f.value = !1)
|
|
25674
25674
|
}, null, 8, ["label"]),
|
|
25675
|
-
x0(
|
|
25675
|
+
x0(x, {
|
|
25676
25676
|
label: $.primaryButtonLabel,
|
|
25677
25677
|
variant: "primary",
|
|
25678
|
-
onClick: C[1] || (C[1] = (
|
|
25678
|
+
onClick: C[1] || (C[1] = (w) => m("confirm"))
|
|
25679
25679
|
}, null, 8, ["label"])
|
|
25680
25680
|
]),
|
|
25681
25681
|
_: 3
|
|
@@ -25881,36 +25881,36 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
25881
25881
|
},
|
|
25882
25882
|
setup(c) {
|
|
25883
25883
|
const b = c, { t: f, locale: $ } = or(), { currentReport: m, editingTile: T } = g0(ze());
|
|
25884
|
-
let { timeRange: C, dateRange:
|
|
25885
|
-
showMore:
|
|
25886
|
-
getGlobalFilter:
|
|
25887
|
-
setGlobalFilter:
|
|
25888
|
-
setIncludeUnavailable:
|
|
25889
|
-
startGlobalFilterSelectLoading:
|
|
25884
|
+
let { timeRange: C, dateRange: x, selectedLocationIds: J, timezone: w } = g0(Z1()), { globalFilters: H } = g0(P1()), { schemas: G } = g0(nn()), {
|
|
25885
|
+
showMore: j,
|
|
25886
|
+
getGlobalFilter: K,
|
|
25887
|
+
setGlobalFilter: V,
|
|
25888
|
+
setIncludeUnavailable: Q,
|
|
25889
|
+
startGlobalFilterSelectLoading: n0,
|
|
25890
25890
|
finishGlobalFilterSelectLoading: a0,
|
|
25891
|
-
getGlobalFilterKey:
|
|
25891
|
+
getGlobalFilterKey: Y,
|
|
25892
25892
|
isMenuOpen: _0,
|
|
25893
25893
|
getGlobalFilterLabel: M0
|
|
25894
25894
|
} = P1();
|
|
25895
|
-
const
|
|
25896
|
-
let
|
|
25897
|
-
const
|
|
25895
|
+
const c0 = d1(() => f("report.input.unknown"));
|
|
25896
|
+
let e0;
|
|
25897
|
+
const t0 = R0(!1), s0 = d1(() => {
|
|
25898
25898
|
var g;
|
|
25899
25899
|
return b.globalFilterId ?? ((g = m.value) == null ? void 0 : g.id) ?? "";
|
|
25900
25900
|
}), b0 = R0([]);
|
|
25901
|
-
function
|
|
25901
|
+
function O0(g) {
|
|
25902
25902
|
return g.filter((L) => L !== k1);
|
|
25903
25903
|
}
|
|
25904
|
-
function
|
|
25905
|
-
const L =
|
|
25904
|
+
function l0(g) {
|
|
25905
|
+
const L = K(g.globalFilter, s0.value).selectedValues;
|
|
25906
25906
|
return L != null && L.length ? L : g.selectedValues || [];
|
|
25907
25907
|
}
|
|
25908
25908
|
function d0(g) {
|
|
25909
|
-
g.options = [], g.selectedValues = [], g.globalFilter.values = [],
|
|
25909
|
+
g.options = [], g.selectedValues = [], g.globalFilter.values = [], V(g.globalFilter, s0.value, { selectedValues: [] });
|
|
25910
25910
|
}
|
|
25911
|
-
function
|
|
25912
|
-
const B =
|
|
25913
|
-
g.selectedValues = g.keepSelection || b.isContextFilterSynced ? B : g.options.map((I) => I.value), g.globalFilter.values = [...g.selectedValues],
|
|
25911
|
+
function D0(g) {
|
|
25912
|
+
const B = K(g.globalFilter, s0.value).selectedValues;
|
|
25913
|
+
g.selectedValues = g.keepSelection || b.isContextFilterSynced ? B : g.options.map((I) => I.value), g.globalFilter.values = [...g.selectedValues], V(g.globalFilter, s0.value, {
|
|
25914
25914
|
selectedValues: g.selectedValues
|
|
25915
25915
|
});
|
|
25916
25916
|
}
|
|
@@ -25922,9 +25922,9 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
25922
25922
|
() => {
|
|
25923
25923
|
b0.value = (b.globalFilters ?? H.value).map(
|
|
25924
25924
|
(g, L) => {
|
|
25925
|
-
const B =
|
|
25925
|
+
const B = K(g, s0.value), I = B.selectedValues.length ? [...B.selectedValues] : [...g.values ?? []];
|
|
25926
25926
|
return {
|
|
25927
|
-
id: `${
|
|
25927
|
+
id: `${Y(g, s0.value)}|${L}`,
|
|
25928
25928
|
globalFilter: g,
|
|
25929
25929
|
search: B.search,
|
|
25930
25930
|
options: B.options,
|
|
@@ -25941,7 +25941,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
25941
25941
|
), N1(
|
|
25942
25942
|
[
|
|
25943
25943
|
C,
|
|
25944
|
-
|
|
25944
|
+
x,
|
|
25945
25945
|
J,
|
|
25946
25946
|
() => b.timeRange,
|
|
25947
25947
|
() => b.dateRange,
|
|
@@ -25967,7 +25967,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
25967
25967
|
);
|
|
25968
25968
|
function o0(g, L) {
|
|
25969
25969
|
var B;
|
|
25970
|
-
return L === !0 ? f("report.common.yes") || "Yes" : L === !1 ? f("report.common.no") || "No" : String(L).trim() === "" || L === k1 ?
|
|
25970
|
+
return L === !0 ? f("report.common.yes") || "Yes" : L === !1 ? f("report.common.no") || "No" : String(L).trim() === "" || L === k1 ? c0.value : g.type === p1.Timestamp && g.globalFilter.option !== w0.DateTime && g.globalFilter.option !== w0.TimeOfDay ? ((B = et({
|
|
25971
25971
|
dimensionOption: g.globalFilter.option,
|
|
25972
25972
|
t: f
|
|
25973
25973
|
}).find((N) => String(N.value) === String(L))) == null ? void 0 : B.label) ?? String(L) : String(L);
|
|
@@ -25982,56 +25982,56 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
25982
25982
|
}
|
|
25983
25983
|
function i(g) {
|
|
25984
25984
|
var B;
|
|
25985
|
-
const L = (B =
|
|
25985
|
+
const L = (B = G.value.find((I) => I.name === g.schemaName)) == null ? void 0 : B.fields.find((I) => I.name === g.name);
|
|
25986
25986
|
return L == null ? void 0 : L.type;
|
|
25987
25987
|
}
|
|
25988
25988
|
function p(g) {
|
|
25989
25989
|
var k, u0;
|
|
25990
25990
|
if (!m.value && !T.value) return [];
|
|
25991
25991
|
if (!((k = g.tileIds) != null && k.length)) return [];
|
|
25992
|
-
const L = T.value ? [T.value] : [...((u0 = m.value) == null ? void 0 : u0.tiles) ?? []], { name: B = "", schemaName: I = "" } = g, N = L.filter((
|
|
25992
|
+
const L = T.value ? [T.value] : [...((u0 = m.value) == null ? void 0 : u0.tiles) ?? []], { name: B = "", schemaName: I = "" } = g, N = L.filter((A0) => {
|
|
25993
25993
|
var q0, W0;
|
|
25994
|
-
const
|
|
25995
|
-
if (!
|
|
25996
|
-
const X = (
|
|
25994
|
+
const p0 = (q0 = A0 == null ? void 0 : A0.widget) == null ? void 0 : q0.config;
|
|
25995
|
+
if (!p0 || (W0 = g.tileIds) != null && W0.length && !g.tileIds.includes(A0.id)) return !1;
|
|
25996
|
+
const X = (p0.dimensions ?? []).some(
|
|
25997
25997
|
(T0) => T0.schemaName === I && T0.name === B
|
|
25998
|
-
), f0 = (
|
|
25998
|
+
), f0 = (p0.joinDatasources ?? []).some(
|
|
25999
25999
|
(T0) => (T0.dimensions ?? []).some((E0) => E0.schemaName === I && E0.name === B)
|
|
26000
|
-
), y0 = (
|
|
26000
|
+
), y0 = (p0.schemaNames ?? []).includes(I);
|
|
26001
26001
|
return X || f0 || y0;
|
|
26002
26002
|
});
|
|
26003
26003
|
if (!N.length) return [];
|
|
26004
|
-
const v = (
|
|
26004
|
+
const v = (A0, p0) => {
|
|
26005
26005
|
const X = /* @__PURE__ */ new Map(), f0 = (y0) => {
|
|
26006
26006
|
const q0 = `${y0.schemaName}:${y0.name}:${y0.operator}:${y0.option ?? ""}:${y0.dataFormula ?? ""}`, W0 = X.get(q0);
|
|
26007
26007
|
W0 ? [Z0.Like, Z0.NotLike].includes(y0.operator) ? W0.values = Array.from(/* @__PURE__ */ new Set([...W0.values ?? [], ...y0.values ?? []])) : X.set(q0, { ...y0 }) : X.set(q0, { ...y0 });
|
|
26008
26008
|
};
|
|
26009
|
-
return
|
|
26010
|
-
}, P = (
|
|
26009
|
+
return A0.forEach(f0), p0.forEach(f0), Array.from(X.values());
|
|
26010
|
+
}, P = (A0) => {
|
|
26011
26011
|
var X;
|
|
26012
|
-
const
|
|
26012
|
+
const p0 = (X = A0.dimensions) == null ? void 0 : X.find(
|
|
26013
26013
|
(f0) => f0.schemaName === I && f0.name === B
|
|
26014
26014
|
);
|
|
26015
26015
|
return {
|
|
26016
26016
|
name: B,
|
|
26017
26017
|
schemaName: I,
|
|
26018
|
-
label: (
|
|
26018
|
+
label: (p0 == null ? void 0 : p0.label) ?? B,
|
|
26019
26019
|
hide: !1,
|
|
26020
26020
|
option: g.option ?? null,
|
|
26021
|
-
dataFormula:
|
|
26021
|
+
dataFormula: p0 == null ? void 0 : p0.dataFormula
|
|
26022
26022
|
};
|
|
26023
26023
|
};
|
|
26024
|
-
return N.map((
|
|
26024
|
+
return N.map((A0) => {
|
|
26025
26025
|
var T0, E0;
|
|
26026
|
-
const
|
|
26027
|
-
if (!
|
|
26028
|
-
const X = P(
|
|
26029
|
-
|
|
26026
|
+
const p0 = (T0 = A0 == null ? void 0 : A0.widget) == null ? void 0 : T0.config;
|
|
26027
|
+
if (!p0) return null;
|
|
26028
|
+
const X = P(p0), f0 = (p0.dimensions ?? []).some((v0) => v0.schemaName === I) || (p0.schemaNames ?? []).includes(I), y0 = v(
|
|
26029
|
+
p0.filters ?? [],
|
|
26030
26030
|
(g.filters ?? []).filter((v0) => {
|
|
26031
26031
|
var I0;
|
|
26032
|
-
return (I0 =
|
|
26032
|
+
return (I0 = p0.schemaNames) == null ? void 0 : I0.includes(v0.schemaName);
|
|
26033
26033
|
})
|
|
26034
|
-
), q0 = (E0 =
|
|
26034
|
+
), q0 = (E0 = p0.joinDatasources) == null ? void 0 : E0.find(
|
|
26035
26035
|
(v0) => (v0.schemaNames ?? []).includes(I) || (v0.dimensions ?? []).some((I0) => I0.schemaName === I)
|
|
26036
26036
|
), W0 = v(
|
|
26037
26037
|
(q0 == null ? void 0 : q0.filters) ?? [],
|
|
@@ -26044,8 +26044,8 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26044
26044
|
type: ct.Table,
|
|
26045
26045
|
title: "Global Filter",
|
|
26046
26046
|
config: {
|
|
26047
|
-
schemaNames:
|
|
26048
|
-
schemas:
|
|
26047
|
+
schemaNames: p0.schemaNames,
|
|
26048
|
+
schemas: p0.schemas,
|
|
26049
26049
|
dimensions: f0 ? [X] : [],
|
|
26050
26050
|
filters: y0,
|
|
26051
26051
|
sorts: f0 ? [{ name: B, schemaName: I, type: pt.Asc, aggregation: null, dimensionOption: null }] : [],
|
|
@@ -26098,7 +26098,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26098
26098
|
})
|
|
26099
26099
|
);
|
|
26100
26100
|
function W(g) {
|
|
26101
|
-
g.visibleCount += 50,
|
|
26101
|
+
g.visibleCount += 50, j(g.globalFilter, s0.value, 50);
|
|
26102
26102
|
}
|
|
26103
26103
|
function O(g) {
|
|
26104
26104
|
var L, B;
|
|
@@ -26124,7 +26124,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26124
26124
|
})) : [];
|
|
26125
26125
|
}
|
|
26126
26126
|
function a(g) {
|
|
26127
|
-
const L =
|
|
26127
|
+
const L = O0(g.selectedValues || []);
|
|
26128
26128
|
if (!L.length) return;
|
|
26129
26129
|
const B = new Set(g.options.map((N) => N.value)), I = L.filter((N) => !B.has(N)).map((N) => ({
|
|
26130
26130
|
value: N,
|
|
@@ -26136,24 +26136,24 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26136
26136
|
function o(g) {
|
|
26137
26137
|
if (g.keepSelection) {
|
|
26138
26138
|
a(g);
|
|
26139
|
-
const L =
|
|
26139
|
+
const L = l0(g);
|
|
26140
26140
|
g.selectedValues = L.length ? [...L] : [...g.selectedValues || []];
|
|
26141
26141
|
} else
|
|
26142
26142
|
g.options = g.options.filter((L) => L.available !== !1), g.selectedValues = g.options.map((L) => L.value);
|
|
26143
|
-
|
|
26143
|
+
V(g.globalFilter, s0.value, {
|
|
26144
26144
|
selectedValues: g.selectedValues
|
|
26145
26145
|
});
|
|
26146
26146
|
}
|
|
26147
26147
|
async function s(g, L) {
|
|
26148
26148
|
var B;
|
|
26149
|
-
if (
|
|
26149
|
+
if (t0.value) {
|
|
26150
26150
|
if (g.options = [], !((B = g.globalFilter.tileIds) != null && B.length)) {
|
|
26151
26151
|
d0(g);
|
|
26152
26152
|
return;
|
|
26153
26153
|
}
|
|
26154
26154
|
if (!(!g.type && (g.type = i(g.globalFilter), !g.type))) {
|
|
26155
26155
|
if (O(g.globalFilter)) {
|
|
26156
|
-
g.options = n(g.globalFilter),
|
|
26156
|
+
g.options = n(g.globalFilter), D0(g);
|
|
26157
26157
|
return;
|
|
26158
26158
|
}
|
|
26159
26159
|
switch (g.type) {
|
|
@@ -26165,9 +26165,9 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26165
26165
|
return;
|
|
26166
26166
|
}
|
|
26167
26167
|
const N = [];
|
|
26168
|
-
for (const
|
|
26168
|
+
for (const p0 of I) {
|
|
26169
26169
|
const X = await Hu({
|
|
26170
|
-
widget:
|
|
26170
|
+
widget: p0,
|
|
26171
26171
|
signal: L,
|
|
26172
26172
|
scopedLocationIds: b.locationIds,
|
|
26173
26173
|
scopedTimeRange: b.timeRange,
|
|
@@ -26179,11 +26179,11 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26179
26179
|
return ((y0 = f0.cells) == null ? void 0 : y0[0]) ?? " ";
|
|
26180
26180
|
}));
|
|
26181
26181
|
}
|
|
26182
|
-
const v = Array.from(new Set(N)), P =
|
|
26182
|
+
const v = Array.from(new Set(N)), P = l0(g), k = g.keepSelection ? Array.from(/* @__PURE__ */ new Set([...v, ...P])) : v, u0 = new Set(N), A0 = new Set(v);
|
|
26183
26183
|
g.options = hu(k, {
|
|
26184
|
-
unknownLabel:
|
|
26185
|
-
getAvailable: (
|
|
26186
|
-
}),
|
|
26184
|
+
unknownLabel: c0.value,
|
|
26185
|
+
getAvailable: (p0) => g.keepSelection ? u0.has(p0) : A0.has(p0)
|
|
26186
|
+
}), D0(g);
|
|
26187
26187
|
} catch (I) {
|
|
26188
26188
|
if ((I == null ? void 0 : I.code) === "ERR_CANCELED" || (I == null ? void 0 : I.name) === "CanceledError")
|
|
26189
26189
|
return;
|
|
@@ -26194,7 +26194,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26194
26194
|
g.options = [
|
|
26195
26195
|
{ label: f("report.common.yes"), value: !0 },
|
|
26196
26196
|
{ label: f("report.common.no"), value: !1 }
|
|
26197
|
-
],
|
|
26197
|
+
], D0(g);
|
|
26198
26198
|
break;
|
|
26199
26199
|
}
|
|
26200
26200
|
case p1.Timestamp:
|
|
@@ -26202,7 +26202,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26202
26202
|
const I = g.globalFilter.option;
|
|
26203
26203
|
g.options = et({ dimensionOption: I, t: f }), g.globalFilter.values = g.options.length ? g.options.map((N) => N.value) : ["NULL"];
|
|
26204
26204
|
}
|
|
26205
|
-
|
|
26205
|
+
D0(g);
|
|
26206
26206
|
break;
|
|
26207
26207
|
case p1.Numeric:
|
|
26208
26208
|
break;
|
|
@@ -26212,17 +26212,17 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26212
26212
|
}
|
|
26213
26213
|
async function u() {
|
|
26214
26214
|
if (!s0.value || !b0.value.length) return;
|
|
26215
|
-
|
|
26215
|
+
e0 && e0.abort();
|
|
26216
26216
|
const g = new AbortController();
|
|
26217
|
-
|
|
26217
|
+
e0 = g, n0();
|
|
26218
26218
|
try {
|
|
26219
|
-
|
|
26219
|
+
t0.value = !0, await Promise.all(
|
|
26220
26220
|
b0.value.map(
|
|
26221
26221
|
(L) => s(L, g.signal)
|
|
26222
26222
|
)
|
|
26223
26223
|
);
|
|
26224
26224
|
} finally {
|
|
26225
|
-
a0(),
|
|
26225
|
+
a0(), e0 === g && (t0.value = !1);
|
|
26226
26226
|
}
|
|
26227
26227
|
}
|
|
26228
26228
|
function l(g, L) {
|
|
@@ -26233,8 +26233,8 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26233
26233
|
);
|
|
26234
26234
|
g.selectedValues = N.length > 0 ? N : [k1];
|
|
26235
26235
|
} else
|
|
26236
|
-
g.selectedValues = [...
|
|
26237
|
-
|
|
26236
|
+
g.selectedValues = [...O0(g.selectedValues || []), L];
|
|
26237
|
+
V(g.globalFilter, s0.value, {
|
|
26238
26238
|
selectedValues: g.selectedValues
|
|
26239
26239
|
});
|
|
26240
26240
|
}
|
|
@@ -26242,23 +26242,23 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26242
26242
|
if (L === null)
|
|
26243
26243
|
g.values = [];
|
|
26244
26244
|
else {
|
|
26245
|
-
const I = U0(L.startDate).tz(
|
|
26245
|
+
const I = U0(L.startDate).tz(w.value).startOf("day").utc().toISOString(), N = U0(L.endDate).tz(w.value).endOf("day").utc().toISOString();
|
|
26246
26246
|
g.values = [I, N];
|
|
26247
26247
|
}
|
|
26248
26248
|
const B = b0.value.find((I) => I.globalFilter === g);
|
|
26249
|
-
B && (B.keepSelection = L !== null,
|
|
26249
|
+
B && (B.keepSelection = L !== null, V(B.globalFilter, s0.value, {
|
|
26250
26250
|
keepSelection: B.keepSelection
|
|
26251
26251
|
}));
|
|
26252
26252
|
}
|
|
26253
26253
|
function d(g) {
|
|
26254
|
-
const L =
|
|
26254
|
+
const L = O0(g.selectedValues || []);
|
|
26255
26255
|
return `${f("report.section.filter.selectAll")} (${L.length}/${g.options.length})`;
|
|
26256
26256
|
}
|
|
26257
26257
|
function _() {
|
|
26258
26258
|
return `${f("report.section.filter.search")}`;
|
|
26259
26259
|
}
|
|
26260
26260
|
function z(g) {
|
|
26261
|
-
var P, k, u0,
|
|
26261
|
+
var P, k, u0, A0, p0;
|
|
26262
26262
|
const L = M0(g.globalFilter), B = g.options.length > 0 ? "(0 selected)" : "";
|
|
26263
26263
|
if (g.type === p1.Timestamp && !O(g.globalFilter)) {
|
|
26264
26264
|
const X = ((P = g.globalFilter.values) == null ? void 0 : P.length) === 2;
|
|
@@ -26267,10 +26267,10 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26267
26267
|
startDate: ((k = g.globalFilter.values) == null ? void 0 : k[0]) || null,
|
|
26268
26268
|
endDate: ((u0 = g.globalFilter.values) == null ? void 0 : u0[1]) || null,
|
|
26269
26269
|
locale: $.value,
|
|
26270
|
-
timezone:
|
|
26270
|
+
timezone: w.value
|
|
26271
26271
|
})}` : L, suffix: "" };
|
|
26272
26272
|
if (g.globalFilter.option === w0.TimeOfDay) {
|
|
26273
|
-
const f0 = (
|
|
26273
|
+
const f0 = (A0 = g.globalFilter.values) != null && A0[0] ? U0(g.globalFilter.values[0]).tz(w.value) : null, y0 = (p0 = g.globalFilter.values) != null && p0[1] ? U0(g.globalFilter.values[1]).tz(w.value) : null, q0 = (T0) => T0 && T0.isValid() ? { hour: T0.hour(), minute: T0.minute() } : null;
|
|
26274
26274
|
return { preview: X ? `${L} is between ${tr({
|
|
26275
26275
|
startTime: q0(f0),
|
|
26276
26276
|
endTime: q0(y0),
|
|
@@ -26281,57 +26281,57 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26281
26281
|
const f0 = et({
|
|
26282
26282
|
dimensionOption: g.globalFilter.option,
|
|
26283
26283
|
t: f
|
|
26284
|
-
}), y0 = new Map(f0.map((E0) => [String(E0.value), E0.label])), W0 =
|
|
26284
|
+
}), y0 = new Map(f0.map((E0) => [String(E0.value), E0.label])), W0 = O0(g.selectedValues || []).map((E0) => y0.get(String(E0)) ?? String(E0)), T0 = W0.map((E0) => E0.length > 20 ? `${E0.slice(0, 20)}…` : E0).join(", ");
|
|
26285
26285
|
return W0.length ? {
|
|
26286
26286
|
preview: `${L}: ${T0}`,
|
|
26287
26287
|
suffix: `(${W0.length} selected)`
|
|
26288
26288
|
} : { preview: L, suffix: B };
|
|
26289
26289
|
}
|
|
26290
26290
|
}
|
|
26291
|
-
const N =
|
|
26291
|
+
const N = O0(g.selectedValues || []).map((X) => X === !0 ? f("report.common.yes") || "Yes" : X === !1 ? f("report.common.no") || "No" : String(X).trim() === "" ? c0.value : String(X)), v = N.map((X) => X.length > 20 ? `${X.slice(0, 20)}…` : X).join(", ");
|
|
26292
26292
|
return N.length ? {
|
|
26293
26293
|
preview: `${L}: ${v}`,
|
|
26294
26294
|
suffix: `(${N.length} selected)`
|
|
26295
26295
|
} : { preview: L, suffix: B };
|
|
26296
26296
|
}
|
|
26297
26297
|
function D(g) {
|
|
26298
|
-
g.globalFilter.values = [...g.selectedValues || []],
|
|
26298
|
+
g.globalFilter.values = [...g.selectedValues || []], V(g.globalFilter, s0.value, {
|
|
26299
26299
|
selectedValues: g.selectedValues
|
|
26300
26300
|
}), document.body.click();
|
|
26301
26301
|
}
|
|
26302
26302
|
function y(g) {
|
|
26303
|
-
g.selectedValues = [...g.globalFilter.values || []],
|
|
26303
|
+
g.selectedValues = [...g.globalFilter.values || []], V(g.globalFilter, s0.value, {
|
|
26304
26304
|
selectedValues: g.selectedValues
|
|
26305
26305
|
}), document.body.click();
|
|
26306
26306
|
}
|
|
26307
26307
|
function q(g) {
|
|
26308
|
-
g.showAdvanced = !g.showAdvanced,
|
|
26308
|
+
g.showAdvanced = !g.showAdvanced, V(g.globalFilter, s0.value, {
|
|
26309
26309
|
showAdvanced: g.showAdvanced
|
|
26310
26310
|
});
|
|
26311
26311
|
}
|
|
26312
26312
|
function h(g) {
|
|
26313
|
-
g.keepSelection = !g.keepSelection,
|
|
26313
|
+
g.keepSelection = !g.keepSelection, Q(g.keepSelection), V(g.globalFilter, s0.value, {
|
|
26314
26314
|
keepSelection: g.keepSelection
|
|
26315
26315
|
}), o(g);
|
|
26316
26316
|
}
|
|
26317
26317
|
function E(g, L) {
|
|
26318
|
-
return g ? g.length > L ? `${g.slice(0, L)}…` : g :
|
|
26318
|
+
return g ? g.length > L ? `${g.slice(0, L)}…` : g : c0.value;
|
|
26319
26319
|
}
|
|
26320
26320
|
function R(g, L) {
|
|
26321
26321
|
var I, N, v, P;
|
|
26322
26322
|
if (L === null)
|
|
26323
26323
|
g.values = [];
|
|
26324
26324
|
else {
|
|
26325
|
-
const k = U0().tz(
|
|
26325
|
+
const k = U0().tz(w.value).set("hour", Number((I = L.start) == null ? void 0 : I.hour)).set("minute", Number((N = L.start) == null ? void 0 : N.minute)).toISOString(), u0 = U0().tz(w.value).set("hour", Number((v = L.end) == null ? void 0 : v.hour)).set("minute", Number((P = L.end) == null ? void 0 : P.minute)).toISOString();
|
|
26326
26326
|
g.values = [k, u0];
|
|
26327
26327
|
}
|
|
26328
26328
|
const B = b0.value.find((k) => k.globalFilter === g);
|
|
26329
|
-
B && (B.keepSelection = L !== null,
|
|
26329
|
+
B && (B.keepSelection = L !== null, V(B.globalFilter, s0.value, {
|
|
26330
26330
|
keepSelection: B.keepSelection
|
|
26331
26331
|
}));
|
|
26332
26332
|
}
|
|
26333
26333
|
return (g, L) => {
|
|
26334
|
-
const B = G0("FmCircularProgress"), I = G0("FmTextField"), N = G0("FmMenuItem"), v = G0("FmTooltip"), P = G0("FmIcon"), k = G0("FmMenuDivider"), u0 = G0("FmSwitch"),
|
|
26334
|
+
const B = G0("FmCircularProgress"), I = G0("FmTextField"), N = G0("FmMenuItem"), v = G0("FmTooltip"), P = G0("FmIcon"), k = G0("FmMenuDivider"), u0 = G0("FmSwitch"), A0 = G0("FmButton"), p0 = G0("FmMenu");
|
|
26335
26335
|
return Q0(), u1("div", ol, [
|
|
26336
26336
|
(Q0(!0), u1(Q1, null, rt(b0.value, (X, f0) => {
|
|
26337
26337
|
var y0, q0, W0, T0, E0, v0;
|
|
@@ -26360,7 +26360,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26360
26360
|
removable: ((v0 = X.globalFilter.values) == null ? void 0 : v0.length) === 2,
|
|
26361
26361
|
onUpdate: (I0) => R(X.globalFilter, I0),
|
|
26362
26362
|
onChipClosed: () => R(X.globalFilter, null)
|
|
26363
|
-
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (Q0(), $1(
|
|
26363
|
+
}, null, 8, ["model-value", "label", "removable", "onUpdate", "onChipClosed"])) : (Q0(), $1(p0, {
|
|
26364
26364
|
key: 2,
|
|
26365
26365
|
"close-on-click": !1,
|
|
26366
26366
|
shift: !0,
|
|
@@ -26371,7 +26371,7 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26371
26371
|
x0(rr, {
|
|
26372
26372
|
"left-icon": "filter_alt",
|
|
26373
26373
|
"trailing-icon": "expand_more",
|
|
26374
|
-
loading:
|
|
26374
|
+
loading: t0.value,
|
|
26375
26375
|
label: z(X).preview,
|
|
26376
26376
|
class: "w-full"
|
|
26377
26377
|
}, {
|
|
@@ -26387,15 +26387,15 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26387
26387
|
class: "flex flex-col bg-fm-color-neutral-white p-2 rounded-lg shadow-light-300",
|
|
26388
26388
|
style: dn({ maxHeight: `${I0}px`, width: R1 })
|
|
26389
26389
|
}, [
|
|
26390
|
-
|
|
26390
|
+
t0.value ? (Q0(), u1("div", sl, [
|
|
26391
26391
|
x0(B)
|
|
26392
|
-
])) : X.options.length > 0 && !
|
|
26392
|
+
])) : X.options.length > 0 && !t0.value ? (Q0(), u1(Q1, { key: 1 }, [
|
|
26393
26393
|
P0("div", ul, [
|
|
26394
26394
|
x0(I, {
|
|
26395
26395
|
modelValue: X.search,
|
|
26396
26396
|
"onUpdate:modelValue": [
|
|
26397
26397
|
(X0) => X.search = X0,
|
|
26398
|
-
(X0) => L0(
|
|
26398
|
+
(X0) => L0(V)(X.globalFilter, s0.value, { search: X0 })
|
|
26399
26399
|
],
|
|
26400
26400
|
type: "text",
|
|
26401
26401
|
"prepend-icon": "search",
|
|
@@ -26498,18 +26498,18 @@ const ol = { class: "flex flex-row flex-wrap gap-2" }, il = { class: "inline-fle
|
|
|
26498
26498
|
])
|
|
26499
26499
|
])) : me("", !0),
|
|
26500
26500
|
P0("div", Al, [
|
|
26501
|
-
x0(
|
|
26501
|
+
x0(A0, {
|
|
26502
26502
|
variant: "tertiary",
|
|
26503
26503
|
label: L0(f)("report.common.cancel"),
|
|
26504
26504
|
onClick: Qe((X0) => y(X), ["stop"])
|
|
26505
26505
|
}, null, 8, ["label", "onClick"]),
|
|
26506
|
-
x0(
|
|
26506
|
+
x0(A0, {
|
|
26507
26507
|
color: "primary",
|
|
26508
26508
|
onClick: Qe((X0) => D(X), ["stop"]),
|
|
26509
26509
|
label: L0(f)("report.common.apply")
|
|
26510
26510
|
}, null, 8, ["onClick", "label"])
|
|
26511
26511
|
])
|
|
26512
|
-
], 64)) :
|
|
26512
|
+
], 64)) : t0.value ? me("", !0) : (Q0(), $1(gn, {
|
|
26513
26513
|
key: 2,
|
|
26514
26514
|
title: r(X) ? L0(f)("report.messages.noWidgetsApplied") : void 0,
|
|
26515
26515
|
"sub-title": r(X) ? L0(f)("report.messages.assignWidgetsToUseThisFilter") : void 0
|