@feedmepos/mf-report 5.22.16 → 5.22.17-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-BVF7QlD0.js → App-80P6YHUW.js} +34 -34
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-C0TNaWyV.js → BaseDialog.vue_vue_type_script_setup_true_lang-DI9QmZYR.js} +387 -382
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-BZ-wqf61.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-CwXeZCv8.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-CfIy5eDd.js → Default.vue_vue_type_script_setup_true_lang-CMy2qLSh.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-DTyjD4Ns.js → FilterSelector.vue_vue_type_script_setup_true_lang-Dz-rkSWa.js} +6 -6
- package/dist/{InsightView-CcULarZa.js → InsightView-Cn9IE5b5.js} +6 -6
- package/dist/{Integration-B4e12DEq.js → Integration-CFAGJ0TV.js} +4 -4
- package/dist/{Integrations-DKefC_8Q.js → Integrations-DdNXHVGg.js} +4 -4
- package/dist/{Layout-fFxDWyHb.js → Layout-Dh2UUaIU.js} +1 -1
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-BMmuP39v.js → MenuTab.vue_vue_type_script_setup_true_lang-DpSyMDTV.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-DcX8TQAm.js → NavigationTab.vue_vue_type_script_setup_true_lang-B6vNQ-eq.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-DRlDgLPG.js → NoData.vue_vue_type_script_setup_true_lang-CPHB-gWQ.js} +1 -1
- package/dist/{OverviewView-C0vzEN7-.js → OverviewView-B74KoNnL.js} +5 -5
- package/dist/{Report-CsjhpzLP.js → Report-BSkvp2Gr.js} +4 -4
- package/dist/{ReportEditor-UEUbwEwl.js → ReportEditor-Dmy5-qm5.js} +6 -6
- package/dist/{ReportView-5nihWNrb.js → ReportView-2-JTjU0J.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang-BDvVGWuB.js → SelectComponent.vue_vue_type_script_setup_true_lang-DPZmN6Ub.js} +1 -1
- package/dist/{Setting-REox7q25.js → Setting-DSIB1W_g.js} +5 -5
- package/dist/{TileEditor-D23dVPsy.js → TileEditor-CVjwfJ7p.js} +8 -8
- package/dist/{TransitionFade-CFT50m56.js → TransitionFade-DuvLaIkP.js} +6 -6
- package/dist/{app-Bp5urT4H.js → app-BDw9ZyGO.js} +11 -11
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-4IKyXsvY.js → useRestaurantPermission-DeAngmVI.js} +1 -1
- package/dist/{vue-i18n-pKrrGi-M.js → vue-i18n-BLr5p_tq.js} +2 -2
- package/package.json +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as $0, F as m0, l as E0, m as Oe, c as
|
|
2
|
-
import { storeToRefs as d0, defineStore as
|
|
3
|
-
import { ref as l0, computed as R0, watch as z0, h as Be, defineComponent as
|
|
4
|
-
import { useSnackbar as
|
|
1
|
+
import { a as $0, F as m0, l as E0, m as Oe, c as $e, k as Z0, y as C0, n as ee, b as G0, d as we, r as re, u as ve } from "./vue-i18n-BLr5p_tq.js";
|
|
2
|
+
import { storeToRefs as d0, defineStore as Q0 } from "pinia";
|
|
3
|
+
import { ref as l0, computed as R0, watch as z0, h as Be, defineComponent as ye, mergeModels as Y0, useModel as te, resolveComponent as v0, createElementBlock as W0, openBlock as U0, createVNode as b0, withCtx as J0, createElementVNode as w0, createCommentVNode as Pe, Fragment as oe, renderList as Je, createBlock as me, createTextVNode as ge, withDirectives as He, toDisplayString as P0, unref as S0, vShow as Ne, renderSlot as ke } from "vue";
|
|
4
|
+
import { useSnackbar as he, components as Ue } from "@feedmepos/ui-library";
|
|
5
5
|
import { useCoreStore as ne, detectLocale as H0 } from "@feedmepos/mf-common";
|
|
6
|
-
import { d as A0 } from "./app-
|
|
6
|
+
import { d as A0 } from "./app-BDw9ZyGO.js";
|
|
7
7
|
import { useRouter as qe } from "vue-router";
|
|
8
|
-
import { c as Qe, a as Xe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
function
|
|
8
|
+
import { c as Qe, a as Xe } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-CwXeZCv8.js";
|
|
9
|
+
function Se(A) {
|
|
10
10
|
throw new Error('Could not dynamically require "' + A + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
11
11
|
}
|
|
12
|
-
var
|
|
12
|
+
var Ee = {};
|
|
13
13
|
(function(A) {
|
|
14
14
|
var I = typeof globalThis < "u" ? globalThis : window, O = Object.create(I);
|
|
15
15
|
O.scheduleImmediate = typeof setImmediate < "u" ? function(H) {
|
|
@@ -23,7 +23,7 @@ var Se = {};
|
|
|
23
23
|
} catch {
|
|
24
24
|
}
|
|
25
25
|
if (J) {
|
|
26
|
-
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ :
|
|
26
|
+
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Se)("url");
|
|
27
27
|
Object.defineProperty(O, "location", {
|
|
28
28
|
value: {
|
|
29
29
|
get href() {
|
|
@@ -37,13 +37,13 @@ var Se = {};
|
|
|
37
37
|
function H() {
|
|
38
38
|
try {
|
|
39
39
|
throw new Error();
|
|
40
|
-
} catch (
|
|
41
|
-
var
|
|
40
|
+
} catch (X) {
|
|
41
|
+
var N = X.stack, U = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), q = null;
|
|
42
42
|
do {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
} while (
|
|
46
|
-
return
|
|
43
|
+
var V = U.exec(N);
|
|
44
|
+
V != null && (q = V);
|
|
45
|
+
} while (V != null);
|
|
46
|
+
return q[1];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
var P = null;
|
|
@@ -54,11 +54,11 @@ var Se = {};
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
}(), O.dartDeferredLibraryLoader = function(H, P,
|
|
57
|
+
}(), O.dartDeferredLibraryLoader = function(H, P, N) {
|
|
58
58
|
try {
|
|
59
59
|
load(H), P();
|
|
60
|
-
} catch (
|
|
61
|
-
|
|
60
|
+
} catch (U) {
|
|
61
|
+
N(U);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -69,16 +69,16 @@ var Se = {};
|
|
|
69
69
|
e[a] = r[a];
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function N(r, e) {
|
|
73
73
|
for (var n = Object.keys(r), i = 0; i < n.length; i++) {
|
|
74
74
|
var a = n[i];
|
|
75
75
|
e.hasOwnProperty(a) || (e[a] = r[a]);
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
|
-
function
|
|
78
|
+
function U(r, e) {
|
|
79
79
|
Object.assign(e, r);
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var q = function() {
|
|
82
82
|
var r = function() {
|
|
83
83
|
};
|
|
84
84
|
r.prototype = { p: {} };
|
|
@@ -97,9 +97,9 @@ var Se = {};
|
|
|
97
97
|
}
|
|
98
98
|
return !1;
|
|
99
99
|
}();
|
|
100
|
-
function
|
|
100
|
+
function V(r, e) {
|
|
101
101
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
102
|
-
if (
|
|
102
|
+
if (q) {
|
|
103
103
|
r.prototype.__proto__ = e.prototype;
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -107,15 +107,15 @@ var Se = {};
|
|
|
107
107
|
P(r.prototype, n), r.prototype = n;
|
|
108
108
|
}
|
|
109
109
|
}
|
|
110
|
-
function
|
|
110
|
+
function X(r, e) {
|
|
111
111
|
for (var n = 0; n < e.length; n++)
|
|
112
|
-
|
|
112
|
+
V(e[n], r);
|
|
113
113
|
}
|
|
114
114
|
function t0(r, e) {
|
|
115
|
-
|
|
115
|
+
U(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
117
|
function Q(r, e) {
|
|
118
|
-
|
|
118
|
+
N(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
119
119
|
}
|
|
120
120
|
function z(r, e, n, i) {
|
|
121
121
|
var a = r;
|
|
@@ -134,7 +134,7 @@ var Se = {};
|
|
|
134
134
|
return s;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function G(r, e, n, i) {
|
|
138
138
|
var a = r;
|
|
139
139
|
r[e] = a, r[n] = function() {
|
|
140
140
|
return r[e] === a && (r[e] = i()), r[n] = function() {
|
|
@@ -179,9 +179,9 @@ var Se = {};
|
|
|
179
179
|
return e === null && (e = t.closureFromTearOff(r).prototype), e;
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
var
|
|
182
|
+
var Y = 0;
|
|
183
183
|
function W(r, e, n, i, a, s, o, l, D, d) {
|
|
184
|
-
return typeof l == "number" && (l +=
|
|
184
|
+
return typeof l == "number" && (l += Y), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
|
|
185
185
|
}
|
|
186
186
|
function n0(r, e, n, i, a, s, o, l) {
|
|
187
187
|
var D = W(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
|
|
@@ -225,7 +225,7 @@ var Se = {};
|
|
|
225
225
|
return n0(o, l, n, i, a, [D], d, s);
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
return { inherit:
|
|
228
|
+
return { inherit: V, inheritMany: X, mixin: t0, mixinHard: Q, installStaticTearOff: n0, installInstanceTearOff: e0, _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: o0, lazy: G, lazyFinal: a0, lazyOld: z, updateHolder: _0, convertToFastObject: s0, updateTypes: r0, setOrUpdateInterceptorsByTag: i0, setOrUpdateLeafTags: j };
|
|
229
229
|
}(), t = {
|
|
230
230
|
JS_CONST: function() {
|
|
231
231
|
},
|
|
@@ -272,8 +272,8 @@ var Se = {};
|
|
|
272
272
|
}
|
|
273
273
|
},
|
|
274
274
|
Sort__dualPivotQuicksort(r, e, n, i) {
|
|
275
|
-
var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M),
|
|
276
|
-
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v,
|
|
275
|
+
var a, s, o, l, D, d, c, p, y, m, g = _.JSInt_methods._tdivFast$1(n - e + 1, 6), h = e + g, E = n - g, C = _.JSInt_methods._tdivFast$1(e + n, 2), F = C - g, M = C + g, x = u.getInterceptor$asx(r), R = x.$index(r, h), L = x.$index(r, F), w = x.$index(r, C), v = x.$index(r, M), k = x.$index(r, E);
|
|
276
|
+
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, k) > 0 && (a = k, k = v, v = a), i.call$2(R, w) > 0 && (a = w, w = R, R = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(R, v) > 0 && (a = v, v = R, R = a), i.call$2(w, v) > 0 && (a = v, v = w, w = a), i.call$2(L, k) > 0 && (a = k, k = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, k) > 0 && (a = k, k = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, E, k), x.$indexSet(r, F, x.$index(r, e)), x.$indexSet(r, M, x.$index(r, n)), s = e + 1, o = n - 1, u.$eq$(i.call$2(L, v), 0)) {
|
|
277
277
|
for (l = s; l <= o; ++l)
|
|
278
278
|
if (D = x.$index(r, l), d = i.call$2(D, L), d !== 0)
|
|
279
279
|
if (d < 0)
|
|
@@ -1811,7 +1811,7 @@ var Se = {};
|
|
|
1811
1811
|
return D === 12 ? e === f.JavaScriptFunction ? !0 : s ? !1 : t._isFunctionSubtype(r, e, n, i, a) : o === 9 ? D !== 9 ? !1 : t._isInterfaceSubtype(r, e, n, i, a) : (s = o === 11, s && i === f.Record ? !0 : s && D === 11 ? t._isRecordSubtype(r, e, n, i, a) : !1);
|
|
1812
1812
|
},
|
|
1813
1813
|
_isFunctionSubtype(r, e, n, i, a) {
|
|
1814
|
-
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
1814
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k, K;
|
|
1815
1815
|
if (!t._isSubtype(r, e._primary, n, i._primary, a) || (s = e._rest, o = i._rest, l = s._requiredPositional, D = o._requiredPositional, d = l.length, c = D.length, d > c) || (p = c - d, y = s._optionalPositional, m = o._optionalPositional, g = y.length, h = m.length, d + g < c + h))
|
|
1816
1816
|
return !1;
|
|
1817
1817
|
for (E = 0; E < d; ++E)
|
|
@@ -1825,9 +1825,9 @@ var Se = {};
|
|
|
1825
1825
|
return !1;
|
|
1826
1826
|
for (F = s._named, M = o._named, x = F.length, R = M.length, L = 0, w = 0; w < R; w += 3)
|
|
1827
1827
|
for (v = M[w]; ; ) {
|
|
1828
|
-
if (L >= x || (
|
|
1828
|
+
if (L >= x || (k = F[L], L += 3, v < k))
|
|
1829
1829
|
return !1;
|
|
1830
|
-
if (K = F[L - 2],
|
|
1830
|
+
if (K = F[L - 2], k < v) {
|
|
1831
1831
|
if (K)
|
|
1832
1832
|
return !1;
|
|
1833
1833
|
continue;
|
|
@@ -2987,8 +2987,8 @@ select
|
|
|
2987
2987
|
return t.Schema$(r, e, n, i, a, w, o, l, D ?? 300, d, c, p, y, m, v, h, E, C, F, M, x, R, L);
|
|
2988
2988
|
},
|
|
2989
2989
|
Schema_fromJson(r) {
|
|
2990
|
-
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_8aB, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"),
|
|
2991
|
-
return h0 = h0 == null ? F : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = u0._as(v.$index(0, "dateColumns")), v = v == null ? F : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? F : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? F : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), u0 = u0._as(r.$index(0, "aiKeywords")), u0 = u0 == null ? F : u.cast$1$0$ax(u0, f.String), u0 == null && (u0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, u0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(
|
|
2990
|
+
var e, n, i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F = null, M = u.map$1$ax(r.$index(0, "fields"), new t.Schema_fromJson_closure()).toList$0(0), x = r.$index(0, "label"), R = t.EnumByName_byName(_.List_8aB, r.$index(0, "name")), L = u.map$1$ax(r.$index(0, "joins"), new t.Schema_fromJson_closure0()).toList$0(0), w = t.TopLevelFilters_fromJson(r.$index(0, "topLevelFilters")), v = r.$index(0, "source"), k = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), K = v.$index(0, "table"), c0 = v.$index(0, "field"), g0 = v.$index(0, "dataset"), u0 = f.nullable_List_dynamic, h0 = u0._as(v.$index(0, "uniqueKey"));
|
|
2991
|
+
return h0 = h0 == null ? F : u.cast$1$0$ax(h0, f.String), e = v.$index(0, "timeColumn"), v = u0._as(v.$index(0, "dateColumns")), v = v == null ? F : u.cast$1$0$ax(v, f.String), n = r.$index(0, "rawTableName"), i = r.$index(0, "dynamicRawTable"), a = r.$index(0, "materializedTableName"), s = r.$index(0, "materializedPostgresqlTableName"), o = r.$index(0, "isJoinOnly"), l = r.$index(0, "isMaterializeOnly"), D = r.$index(0, "isContinuousUpdate"), d = r.$index(0, "interval"), c = r.$index(0, "partition"), p = r.$index(0, "clusters"), p == null && (p = t._setArrayType([], f.JSArray_String)), y = r.$index(0, "indexes"), y = y == null ? F : u.map$1$ax(y, new t.Schema_fromJson_closure1()), y == null && (y = t._setArrayType([], f.JSArray_Index)), m = r.$index(0, "filters"), m = m == null ? F : u.map$1$ax(m, new t.Schema_fromJson_closure2()).toList$0(0), m == null && (m = t._setArrayType([], f.JSArray_QueryRequestFilter)), g = r.$index(0, "isGlobal"), g == null && (g = !1), h = r.$index(0, "isAiHidden"), h == null && (h = !1), u0 = u0._as(r.$index(0, "aiKeywords")), u0 = u0 == null ? F : u.cast$1$0$ax(u0, f.String), u0 == null && (u0 = t._setArrayType([], f.JSArray_String)), E = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(E, u0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(k, K, c0, g0, h0, e, v), w);
|
|
2992
2992
|
},
|
|
2993
2993
|
Field_Field$numeric(r, e, n, i, a, s, o, l, D) {
|
|
2994
2994
|
return new t._NumericField(s, o, _.DATA_TYPE_3, e, a, l, n, D, i, !1, r);
|
|
@@ -9041,10 +9041,10 @@ Arguments: [` + D + "]";
|
|
|
9041
9041
|
$signature: 1
|
|
9042
9042
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9043
9043
|
call$1(r) {
|
|
9044
|
-
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal",
|
|
9044
|
+
var e = null, n = "itemCreatedAt", i = "billCompletedAt", a = "perXUnit", s = "takeawayId", o = "takeawayName", l = "productId", D = "isRefund", d = "servedAt", c = "isTakeaway", p = "quantity", y = "unitQuantity", m = "billAdjustmentTotal", g = "itemAdjustmentTotal", h = "grossTotal", E = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", k = "layerOtherChargeTotal", K = "customAttributes", c0 = "layerZeroParentId", g0 = "collectedAt", u0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", I0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", T0 = "billAdjustmentExclusiveTaxTotal", F0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", M0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9045
9045
|
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", i, i, 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", a, a, 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)
|
|
9046
9046
|
`, !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
|
|
9047
|
-
`, 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", o, o, 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", D, D, 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", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.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", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.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", T.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, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, 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", F, F, "@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", M, M, "@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", x, x, "@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", R, R, "@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", L, L, "@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", w, w, "@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", v, v, "@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",
|
|
9047
|
+
`, 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", o, o, 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", D, D, 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", c, c, e, r), t.Field_Field$numeric(e, "@quantity*IF(@isRefund, -1, 1)", !1, !1, "Qty", p, p, T.x40quant, r), t.Field_Field$numeric(e, "@unitQuantity*IF(@isRefund, -1, 1)", !1, !1, "Unit qty", y, y, T.x40unit_, r), t.Field_Field$numeric(e, "@sstTotal*IF(@isRefund, -1, 1)", !1, !1, "SST", "sstTotal", "sst.total", T.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", T.x40servi, r), t.Field_Field$numeric(e, "@otherChargeTotal*IF(@isRefund, -1, 1)", !1, !1, "Other charge", "otherChargeTotal", "otherCharge.total", T.x40other, r), t.Field_Field$numeric(e, T.x40billA, !1, !1, "Bill discount", m, m, T.x40bill_, r), t.Field_Field$numeric(e, T.x40itemA, !1, !1, "Item discount", g, g, T.x40item_, r), t.Field_Field$numeric(e, "@grossTotal*IF(@isRefund, -1, 1)", !1, !1, "Gross", h, h, T.x40gross, r), t.Field_Field$numeric(e, T.x28_grosT, !1, !1, "Gross w/ takeaway", "grossTotalWithoutTakeaway", e, T.x28_gros_, r), t.Field_Field$numeric(e, "@takeawayPrice*IF(@isRefund, -1, 1)", !1, !1, "Takeaway price", E, E, T.x40takea, r), t.Field_Field$numeric(e, "@nettTotal*IF(@isRefund, -1, 1)", !1, !1, "Nett", C, C, T.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", T.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, T.x28IFNULb, !1, !1, "Discount", "discountTotal", e, T.x28COALEb, r), t.Field_Field$numeric(e, T.x28IFNULgx2bb, !1, !1, "Gross before charges", "grossBeforeCharges", e, T.x28COALEgx2bb, 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", F, F, "@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", M, M, "@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", x, x, "@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", R, R, "@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", L, L, "@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", w, w, "@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", v, v, "@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", K, K, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", c0, c0, 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", g0, g0, 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))", !1, !1, "Profit", "profit", e, "(@nett_total-coalesce(@costing, 0))", 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", u0, u0, e, r), t.Field_Field$numeric(e, "@billAdjustmentInclusiveTaxTotal*IF(@isRefund, -1, 1)", !1, !1, "Bill discount inc tax", h0, h0, "@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", I0, I0, "@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", x0, x0, "@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", L0, L0, "@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", F0, F0, "@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", O0, O0, "@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", M0, M0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
|
|
9048
9048
|
},
|
|
9049
9049
|
$signature: 0
|
|
9050
9050
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -10829,8 +10829,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10829
10829
|
return i.message;
|
|
10830
10830
|
}
|
|
10831
10831
|
}())), 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(_.Type_Object_xQ6)), e(S, "Endian_host", "$get$Endian_host", () => t.NativeByteData_NativeByteData$view(t.NativeUint16List_NativeUint16List$fromList(t._setArrayType([1], f.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? _.C_Endian0 : _.C_Endian), e(S, "_clockKey", "$get$_clockKey", () => new t.Object()), e(S, "en_USSymbols", "$get$en_USSymbols", () => new t.DateSymbols("en_US", _.List_BC_AD, _.List_6xs, _.List_qpm, _.List_qpm, _.List_cIc, _.List_cIc, _.List_h8w, _.List_h8w, _.List_wMy, _.List_wMy, _.List_gc6, _.List_gc6, _.List_3US, _.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>)", _.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", () => {
|
|
10832
|
-
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2),
|
|
10833
|
-
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.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", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de",
|
|
10832
|
+
var i, a, s = t.EnLocale$(_.StartOfWeek_1), o = t.EnLocale$(_.StartOfWeek_1), l = t.EnLocale$(_.StartOfWeek_1), D = t.EnLocale$(_.StartOfWeek_1), d = t.EnLocale$(_.StartOfWeek_1), c = t.EnLocale$(_.StartOfWeek_2), p = t.EnLocale$(_.StartOfWeek_2), y = t.EnLocale$(_.StartOfWeek_1), m = t.EnLocale$(_.StartOfWeek_1), g = t.EsLocale$(_.StartOfWeek_2), h = t.EsLocale$(_.StartOfWeek_2), E = t.EsLocale$(_.StartOfWeek_1), C = t.FrLocale$(_.StartOfWeek_2), F = t.FrLocale$(_.StartOfWeek_2), M = t.FrLocale$(_.StartOfWeek_1), x = t.ZhCnLocale$(_.StartOfWeek_1), R = t.ZhCnLocale$(_.StartOfWeek_1), L = t.ZhLocale$(_.StartOfWeek_1), w = t.ZhLocale$(_.StartOfWeek_1), v = t.DeLocale$(_.StartOfWeek_2), k = t.DeLocale$(_.StartOfWeek_2), K = t.DeLocale$(_.StartOfWeek_2), c0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), u0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), I0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), T0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), F0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
|
|
10833
|
+
return t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), t.createSentinel(), i = t.PtLocale$(_.StartOfWeek_2), a = t.PtLocale$(_.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", o, "en_sg", l, "en_au", D, "en_ca", d, "en_gb", c, "en_ie", p, "en_il", y, "en_nz", m, "es", g, "es_do", h, "es_us", E, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", k, "de_at", K, "de_ch", c0, "it", g0, "it_ch", u0, "ar", h0, "ar_ly", I0, "ar_dz", x0, "ar_kw", L0, "ar_sa", T0, "ar_ma", F0, "ar_tn", O0, "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", i, "pt_br", a, "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()], f.String, t.findType("Locale"));
|
|
10834
10834
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10835
10835
|
var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
|
|
10836
10836
|
return t.Schema_Schema$build(a, _.List_empty, 3, t._setArrayType(["restaurantId"], f.JSArray_String), a, new t.addonFlattenItemSchema_closure(), _.List_empty0, a, a, !0, !1, !1, !0, !1, new t.addonFlattenItemSchema_closure0(), "Addon", "flatten_items", "flatten_item", _.SCHEMA_NAME_7, i, "", s, o);
|
|
@@ -11187,9 +11187,9 @@ WHERE (
|
|
|
11187
11187
|
typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
|
|
11188
11188
|
});
|
|
11189
11189
|
})();
|
|
11190
|
-
})(
|
|
11191
|
-
const Ve =
|
|
11192
|
-
var Ye = Ve,
|
|
11190
|
+
})(Ee);
|
|
11191
|
+
const Ve = Ee;
|
|
11192
|
+
var Ye = Ve, Ae = {};
|
|
11193
11193
|
(function(A) {
|
|
11194
11194
|
A.load = function(I, O) {
|
|
11195
11195
|
var J = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = J ? Object.create(globalThis) : globalThis;
|
|
@@ -11198,7 +11198,7 @@ var Ye = Ve, Ee = {};
|
|
|
11198
11198
|
} : function(P) {
|
|
11199
11199
|
setTimeout(P, 0);
|
|
11200
11200
|
}, B.exports = O || A, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), J) {
|
|
11201
|
-
var H = (typeof __webpack_require__ < "u" ? __non_webpack_require__ :
|
|
11201
|
+
var H = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Se)("url");
|
|
11202
11202
|
Object.defineProperty(B, "location", {
|
|
11203
11203
|
value: {
|
|
11204
11204
|
get href() {
|
|
@@ -11213,47 +11213,47 @@ var Ye = Ve, Ee = {};
|
|
|
11213
11213
|
try {
|
|
11214
11214
|
throw new Error();
|
|
11215
11215
|
} catch (t0) {
|
|
11216
|
-
var
|
|
11216
|
+
var U = t0.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), V = null;
|
|
11217
11217
|
do {
|
|
11218
|
-
var
|
|
11219
|
-
|
|
11220
|
-
} while (
|
|
11221
|
-
return
|
|
11218
|
+
var X = q.exec(U);
|
|
11219
|
+
X != null && (V = X);
|
|
11220
|
+
} while (X != null);
|
|
11221
|
+
return V[1];
|
|
11222
11222
|
}
|
|
11223
11223
|
}
|
|
11224
|
-
var
|
|
11224
|
+
var N = null;
|
|
11225
11225
|
Object.defineProperty(B, "document", {
|
|
11226
11226
|
value: {
|
|
11227
11227
|
get currentScript() {
|
|
11228
|
-
return
|
|
11228
|
+
return N == null && (N = { src: P() }), N;
|
|
11229
11229
|
}
|
|
11230
11230
|
}
|
|
11231
11231
|
});
|
|
11232
|
-
}(), B.dartDeferredLibraryLoader = function(P,
|
|
11232
|
+
}(), B.dartDeferredLibraryLoader = function(P, N, U) {
|
|
11233
11233
|
try {
|
|
11234
|
-
load(P),
|
|
11235
|
-
} catch (
|
|
11236
|
-
q
|
|
11234
|
+
load(P), N();
|
|
11235
|
+
} catch (q) {
|
|
11236
|
+
U(q);
|
|
11237
11237
|
}
|
|
11238
11238
|
};
|
|
11239
11239
|
}
|
|
11240
11240
|
(function() {
|
|
11241
|
-
function
|
|
11241
|
+
function N(e, n) {
|
|
11242
11242
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11243
11243
|
var s = i[a];
|
|
11244
11244
|
n[s] = e[s];
|
|
11245
11245
|
}
|
|
11246
11246
|
}
|
|
11247
|
-
function
|
|
11247
|
+
function U(e, n) {
|
|
11248
11248
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11249
11249
|
var s = i[a];
|
|
11250
11250
|
n.hasOwnProperty(s) || (n[s] = e[s]);
|
|
11251
11251
|
}
|
|
11252
11252
|
}
|
|
11253
|
-
function
|
|
11253
|
+
function q(e, n) {
|
|
11254
11254
|
Object.assign(n, e);
|
|
11255
11255
|
}
|
|
11256
|
-
var
|
|
11256
|
+
var V = function() {
|
|
11257
11257
|
var e = function() {
|
|
11258
11258
|
};
|
|
11259
11259
|
e.prototype = { p: {} };
|
|
@@ -11272,27 +11272,27 @@ var Ye = Ve, Ee = {};
|
|
|
11272
11272
|
}
|
|
11273
11273
|
return !1;
|
|
11274
11274
|
}();
|
|
11275
|
-
function
|
|
11275
|
+
function X(e, n) {
|
|
11276
11276
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
|
|
11277
|
-
if (
|
|
11277
|
+
if (V) {
|
|
11278
11278
|
e.prototype.__proto__ = n.prototype;
|
|
11279
11279
|
return;
|
|
11280
11280
|
}
|
|
11281
11281
|
var i = Object.create(n.prototype);
|
|
11282
|
-
|
|
11282
|
+
N(e.prototype, i), e.prototype = i;
|
|
11283
11283
|
}
|
|
11284
11284
|
}
|
|
11285
11285
|
function t0(e, n) {
|
|
11286
11286
|
for (var i = 0; i < n.length; i++)
|
|
11287
|
-
|
|
11287
|
+
X(n[i], e);
|
|
11288
11288
|
}
|
|
11289
11289
|
function Q(e, n) {
|
|
11290
|
-
|
|
11290
|
+
q(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11291
11291
|
}
|
|
11292
11292
|
function z(e, n) {
|
|
11293
|
-
|
|
11293
|
+
U(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11294
11294
|
}
|
|
11295
|
-
function
|
|
11295
|
+
function G(e, n, i, a) {
|
|
11296
11296
|
var s = e;
|
|
11297
11297
|
e[n] = s, e[i] = function() {
|
|
11298
11298
|
e[i] = function() {
|
|
@@ -11348,7 +11348,7 @@ var Ye = Ve, Ee = {};
|
|
|
11348
11348
|
return i === null && (i = u.closureFromTearOff(n)), new i(this, null);
|
|
11349
11349
|
};
|
|
11350
11350
|
}
|
|
11351
|
-
function
|
|
11351
|
+
function Y(e) {
|
|
11352
11352
|
var n = null;
|
|
11353
11353
|
return function() {
|
|
11354
11354
|
return n === null && (n = u.closureFromTearOff(e).prototype), n;
|
|
@@ -11359,7 +11359,7 @@ var Ye = Ve, Ee = {};
|
|
|
11359
11359
|
return typeof D == "number" && (D += W), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
|
|
11360
11360
|
}
|
|
11361
11361
|
function e0(e, n, i, a, s, o, l, D) {
|
|
11362
|
-
var d = n0(e, !0, !1, i, a, s, o, l, D, !1), c =
|
|
11362
|
+
var d = n0(e, !0, !1, i, a, s, o, l, D, !1), c = Y(d);
|
|
11363
11363
|
e[n] = c;
|
|
11364
11364
|
}
|
|
11365
11365
|
function i0(e, n, i, a, s, o, l, D, d, c) {
|
|
@@ -11373,7 +11373,7 @@ var Ye = Ve, Ee = {};
|
|
|
11373
11373
|
T.interceptorsByTag = e;
|
|
11374
11374
|
return;
|
|
11375
11375
|
}
|
|
11376
|
-
|
|
11376
|
+
N(e, n);
|
|
11377
11377
|
}
|
|
11378
11378
|
function r0(e) {
|
|
11379
11379
|
var n = T.leafTags;
|
|
@@ -11381,14 +11381,14 @@ var Ye = Ve, Ee = {};
|
|
|
11381
11381
|
T.leafTags = e;
|
|
11382
11382
|
return;
|
|
11383
11383
|
}
|
|
11384
|
-
|
|
11384
|
+
N(e, n);
|
|
11385
11385
|
}
|
|
11386
11386
|
function _0(e) {
|
|
11387
11387
|
var n = T.types, i = n.length;
|
|
11388
11388
|
return n.push.apply(n, e), i;
|
|
11389
11389
|
}
|
|
11390
11390
|
function Z(e, n) {
|
|
11391
|
-
return
|
|
11391
|
+
return N(n, e), e;
|
|
11392
11392
|
}
|
|
11393
11393
|
var t = function() {
|
|
11394
11394
|
var e = function(i, a, s, o, l) {
|
|
@@ -11400,7 +11400,7 @@ var Ye = Ve, Ee = {};
|
|
|
11400
11400
|
return e0(l, D, i, a, s, [d], c, o);
|
|
11401
11401
|
};
|
|
11402
11402
|
};
|
|
11403
|
-
return { inherit:
|
|
11403
|
+
return { inherit: X, inheritMany: t0, mixin: Q, mixinHard: z, installStaticTearOff: e0, installInstanceTearOff: i0, _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: s0, lazy: a0, lazyFinal: o0, lazyOld: G, updateHolder: Z, convertToFastObject: D0, updateTypes: _0, setOrUpdateInterceptorsByTag: j, setOrUpdateLeafTags: r0 };
|
|
11404
11404
|
}(), u = {
|
|
11405
11405
|
JS_CONST: function() {
|
|
11406
11406
|
},
|
|
@@ -11450,8 +11450,8 @@ var Ye = Ve, Ee = {};
|
|
|
11450
11450
|
}
|
|
11451
11451
|
},
|
|
11452
11452
|
Sort__dualPivotQuicksort(e, n, i, a) {
|
|
11453
|
-
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, F),
|
|
11454
|
-
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(
|
|
11453
|
+
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), E = n + h, C = i - h, F = $.JSInt_methods._tdivFast$1(n + i, 2), M = F - h, x = F + h, R = _.getInterceptor$asx(e), L = R.$index(e, E), w = R.$index(e, M), v = R.$index(e, F), k = R.$index(e, x), K = R.$index(e, C);
|
|
11454
|
+
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(k, K) > 0 && (s = K, K = k, k = s), a.call$2(L, v) > 0 && (s = v, v = L, L = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(L, k) > 0 && (s = k, k = L, L = s), a.call$2(v, k) > 0 && (s = k, k = v, v = s), a.call$2(w, K) > 0 && (s = K, K = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(k, K) > 0 && (s = K, K = k, k = s), R.$indexSet(e, E, L), R.$indexSet(e, F, v), R.$indexSet(e, C, K), R.$indexSet(e, M, R.$index(e, n)), R.$indexSet(e, x, R.$index(e, i)), o = n + 1, l = i - 1, _.$eq$(a.call$2(w, k), 0)) {
|
|
11455
11455
|
for (D = o; D <= l; ++D)
|
|
11456
11456
|
if (d = R.$index(e, D), c = a.call$2(d, w), c !== 0)
|
|
11457
11457
|
if (c < 0)
|
|
@@ -11473,9 +11473,9 @@ var Ye = Ve, Ee = {};
|
|
|
11473
11473
|
for (D = o; D <= l; ++D)
|
|
11474
11474
|
if (d = R.$index(e, D), a.call$2(d, w) < 0)
|
|
11475
11475
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11476
|
-
else if (a.call$2(d,
|
|
11476
|
+
else if (a.call$2(d, k) > 0)
|
|
11477
11477
|
for (; ; )
|
|
11478
|
-
if (a.call$2(R.$index(e, l),
|
|
11478
|
+
if (a.call$2(R.$index(e, l), k) > 0) {
|
|
11479
11479
|
if (--l, l < D)
|
|
11480
11480
|
break;
|
|
11481
11481
|
continue;
|
|
@@ -11485,18 +11485,18 @@ var Ye = Ve, Ee = {};
|
|
|
11485
11485
|
}
|
|
11486
11486
|
m = !1;
|
|
11487
11487
|
}
|
|
11488
|
-
if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, w), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g,
|
|
11488
|
+
if (g = o - 1, R.$indexSet(e, n, R.$index(e, g)), R.$indexSet(e, g, w), g = l + 1, R.$indexSet(e, i, R.$index(e, g)), R.$indexSet(e, g, k), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
|
|
11489
11489
|
if (o < E && l > C) {
|
|
11490
11490
|
for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
|
|
11491
11491
|
++o;
|
|
11492
|
-
for (; _.$eq$(a.call$2(R.$index(e, l),
|
|
11492
|
+
for (; _.$eq$(a.call$2(R.$index(e, l), k), 0); )
|
|
11493
11493
|
--l;
|
|
11494
11494
|
for (D = o; D <= l; ++D)
|
|
11495
11495
|
if (d = R.$index(e, D), a.call$2(d, w) === 0)
|
|
11496
11496
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11497
|
-
else if (a.call$2(d,
|
|
11497
|
+
else if (a.call$2(d, k) === 0)
|
|
11498
11498
|
for (; ; )
|
|
11499
|
-
if (a.call$2(R.$index(e, l),
|
|
11499
|
+
if (a.call$2(R.$index(e, l), k) === 0) {
|
|
11500
11500
|
if (--l, l < D)
|
|
11501
11501
|
break;
|
|
11502
11502
|
continue;
|
|
@@ -11861,8 +11861,8 @@ var Ye = Ve, Ee = {};
|
|
|
11861
11861
|
var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, E = e.aI, C = e.fs, F = e.cs, M = C[0], x = F[0], R = y[M], L = e.fT;
|
|
11862
11862
|
for (L.toString, n = Object.create(m ? new u.StaticClosure().constructor.prototype : new u.BoundClosure(null, null).constructor.prototype), n.$initialize = n.constructor, m ? i = function() {
|
|
11863
11863
|
this.$initialize();
|
|
11864
|
-
} : i = function(v,
|
|
11865
|
-
this.$initialize(v,
|
|
11864
|
+
} : i = function(v, k) {
|
|
11865
|
+
this.$initialize(v, k);
|
|
11866
11866
|
}, n.constructor = i, i.prototype = n, n.$_name = M, n.$_target = R, a = !m, a ? s = u.Closure_forwardCallTo(M, R, g, h) : (n.$static_name = M, s = R), n.$signature = u.Closure__computeSignatureFunctionNewRti(L, m, g), n[x] = s, o = s, l = 1; l < C.length; ++l)
|
|
11867
11867
|
D = C[l], typeof D == "string" ? (d = y[D], c = D, D = d) : c = "", p = F[l], p != null && (a && (D = u.Closure_forwardCallTo(c, D, g, h)), n[p] = D), l === E && (o = D);
|
|
11868
11868
|
return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
|
|
@@ -12598,24 +12598,24 @@ var Ye = Ve, Ee = {};
|
|
|
12598
12598
|
return o + "})";
|
|
12599
12599
|
},
|
|
12600
12600
|
_functionRtiToString(e, n, i) {
|
|
12601
|
-
var a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
12601
|
+
var a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k = ", ";
|
|
12602
12602
|
if (i != null) {
|
|
12603
12603
|
for (a = i.length, n == null ? (n = u._setArrayType([], r.JSArray_String), s = null) : s = n.length, o = n.length, l = a; l > 0; --l)
|
|
12604
12604
|
n.push("T" + (o + l));
|
|
12605
|
-
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p =
|
|
12605
|
+
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = k)
|
|
12606
12606
|
c = $.JSString_methods.$add(c + p, n[n.length - 1 - l]), y = i[l], m = y._kind, m === 2 || m === 3 || m === 4 || m === 5 || y === D ? g = !0 : y !== d ? g = !1 : g = !0, g || (c += " extends " + u._rtiToString(y, n));
|
|
12607
12607
|
c += ">";
|
|
12608
12608
|
} else
|
|
12609
12609
|
c = "", s = null;
|
|
12610
|
-
for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v =
|
|
12610
|
+
for (D = e._primary, h = e._rest, E = h._requiredPositional, C = E.length, F = h._optionalPositional, M = F.length, x = h._named, R = x.length, L = u._rtiToString(D, n), w = "", v = "", l = 0; l < C; ++l, v = k)
|
|
12611
12611
|
w += v + u._rtiToString(E[l], n);
|
|
12612
12612
|
if (M > 0) {
|
|
12613
|
-
for (w += v + "[", v = "", l = 0; l < M; ++l, v =
|
|
12613
|
+
for (w += v + "[", v = "", l = 0; l < M; ++l, v = k)
|
|
12614
12614
|
w += v + u._rtiToString(F[l], n);
|
|
12615
12615
|
w += "]";
|
|
12616
12616
|
}
|
|
12617
12617
|
if (R > 0) {
|
|
12618
|
-
for (w += v + "{", v = "", l = 0; l < R; l += 3, v =
|
|
12618
|
+
for (w += v + "{", v = "", l = 0; l < R; l += 3, v = k)
|
|
12619
12619
|
w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
|
|
12620
12620
|
w += "}";
|
|
12621
12621
|
}
|
|
@@ -12977,7 +12977,7 @@ var Ye = Ve, Ee = {};
|
|
|
12977
12977
|
return d === 12 ? n === r.JavaScriptFunction ? !0 : o ? !1 : u._isFunctionSubtype(e, n, i, a, s) : l === 9 ? d !== 9 ? !1 : u._isInterfaceSubtype(e, n, i, a, s) : (o = l === 11, o && a === r.Record ? !0 : o && d === 11 ? u._isRecordSubtype(e, n, i, a, s) : !1);
|
|
12978
12978
|
},
|
|
12979
12979
|
_isFunctionSubtype(e, n, i, a, s) {
|
|
12980
|
-
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
12980
|
+
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k, K, c0;
|
|
12981
12981
|
if (!u._isSubtype(e, n._primary, i, a._primary, s) || (o = n._rest, l = a._rest, D = o._requiredPositional, d = l._requiredPositional, c = D.length, p = d.length, c > p) || (y = p - c, m = o._optionalPositional, g = l._optionalPositional, h = m.length, E = g.length, c + h < p + E))
|
|
12982
12982
|
return !1;
|
|
12983
12983
|
for (C = 0; C < c; ++C)
|
|
@@ -12990,10 +12990,10 @@ var Ye = Ve, Ee = {};
|
|
|
12990
12990
|
if (F = m[y + C], !u._isSubtype(e, g[C], s, F, i))
|
|
12991
12991
|
return !1;
|
|
12992
12992
|
for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
|
|
12993
|
-
for (
|
|
12994
|
-
if (w >= R || (K = M[w], w += 3,
|
|
12993
|
+
for (k = x[v]; ; ) {
|
|
12994
|
+
if (w >= R || (K = M[w], w += 3, k < K))
|
|
12995
12995
|
return !1;
|
|
12996
|
-
if (c0 = M[w - 2], K <
|
|
12996
|
+
if (c0 = M[w - 2], K < k) {
|
|
12997
12997
|
if (c0)
|
|
12998
12998
|
return !1;
|
|
12999
12999
|
continue;
|
|
@@ -14446,7 +14446,7 @@ var Ye = Ve, Ee = {};
|
|
|
14446
14446
|
return e instanceof u.BaseXYDatasourceConfigModel && e.isCumulative === !0 ? i = !0 : i = e instanceof u.ScorecardDatasourceConfigModel && e.isCumulative, i ? (i = r.XYDatasetModel, u.List_List$of(u.ListExtensions_mapIndexed(n, new u.accumulate_closure(e), i, i), !0, i)) : n;
|
|
14447
14447
|
},
|
|
14448
14448
|
formatBaseXYChartData(e, n, i, a, s) {
|
|
14449
|
-
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
14449
|
+
var o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k, K, c0, g0, u0, h0, I0, x0, L0, T0, F0, O0, M0, N0 = null;
|
|
14450
14450
|
if (i.length === 0)
|
|
14451
14451
|
return o = u._setArrayType([], r.JSArray_String), l = u._setArrayType([], r.JSArray_XYDatasetModel), D = u.IterableExtension_get_firstOrNull(i), new u.BaseXYChartDataModel(e, o, l, new u.DateComparison(D == null ? N0 : D.dateRange, N0));
|
|
14452
14452
|
for (d = $.JSArray_methods.get$first(i).columns, o = u._arrayInstanceType(d), l = o._eval$1("WhereIterable<1>"), c = u.List_List$of(new u.WhereIterable(d, new u.formatBaseXYChartData_closure(), l), !0, l._eval$1("Iterable.E")), l = u._arrayInstanceType(c)._eval$1("WhereIterable<1>"), p = u.List_List$of(new u.WhereIterable(c, new u.formatBaseXYChartData_closure0(), l), !0, l._eval$1("Iterable.E")), l = r.QueryResponse, y = u._formatRows(u.ListExtension_sublistOrEmpty(i, 0, 1, l), s), m = u._formatRows(u.ListExtension_sublistOrEmpty(i, 1, 2, l), s), m.length !== 0 && (o = o._eval$1("MappedListIterable<1,ComparisonDataColumn>"), g = u.List_List$of(new u.MappedListIterable(d, new u.formatBaseXYChartData_closure1(), o), !0, o._eval$1("ListIterable.E")), h = u.compare(new u.ComparisonData(g, m), new u.ComparisonData(g, y)), m = h.comparison, y = h.main), o = r.String, l = u.LinkedHashMap_LinkedHashMap$_empty(o, r.bool), D = p.length, E = 0; C = p.length, E < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++E)
|
|
@@ -14464,9 +14464,9 @@ var Ye = Ve, Ee = {};
|
|
|
14464
14464
|
C.$indexSet(0, d[R].id, R);
|
|
14465
14465
|
C = new u.formatBaseXYChartData_expandRowsByMetric($.JSArray_methods.indexWhere$1(d, new u.formatBaseXYChartData_closure4(n)), p, C, D, M, x), y = C.call$1(y), m.length !== 0 && (m = C.call$1(m));
|
|
14466
14466
|
}
|
|
14467
|
-
for (C = r.JSArray_String, v = u._setArrayType([], C),
|
|
14468
|
-
K = y[E], L = _.getInterceptor$asx(K), v.push(_.toString$0$(L.$index(K, 0))),
|
|
14469
|
-
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(
|
|
14467
|
+
for (C = r.JSArray_String, v = u._setArrayType([], C), k = u._setArrayType([], C), C = y.length, E = 0; E < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++E)
|
|
14468
|
+
K = y[E], L = _.getInterceptor$asx(K), v.push(_.toString$0$(L.$index(K, 0))), k.push(_.toString$0$(L.$index(K, 1)));
|
|
14469
|
+
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(k, o), c0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = c0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, E = 0; E < c0.length; c0.length === o || (0, u.throwConcurrentModificationError)(c0), ++E) {
|
|
14470
14470
|
for (u0 = c0[E], h0 = u._setArrayType([], L), I0 = u._setArrayType([], L), x0 = x.$index(0, u0), w = l.$index(0, x0 ?? u0), L0 = w === !0, w = M.$index(0, u0), T0 = w ?? D.$index(0, u0), T0 == null && (T0 = u0), w = v.length, F0 = 0; F0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++F0)
|
|
14471
14471
|
O0 = v[F0], M0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0, u0)), h0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)), C.get$length(m) !== 0 && (M0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(O0, u0)), I0.push(u._parseMetricValue(M0 == null ? N0 : u.ListExtension_elementAtOrNull(M0, 2), L0)));
|
|
14472
14472
|
g0.push(new u.XYDatasetModel(T0, !1, h0)), I0.length !== 0 && g0.push(new u.XYDatasetModel(T0, !0, I0));
|
|
@@ -14678,16 +14678,16 @@ var Ye = Ve, Ee = {};
|
|
|
14678
14678
|
return s = h.mainResponse, c = s.rows, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,TableRowModel>"), s.copyWith$1$rows(u.List_List$of(new u.MappedListIterable(c, new u._formatTableData_closure3(), p), !0, p._eval$1("ListIterable.E")));
|
|
14679
14679
|
},
|
|
14680
14680
|
formatTableChartData(e, n, i, a) {
|
|
14681
|
-
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v,
|
|
14681
|
+
var s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w, v, k = {};
|
|
14682
14682
|
if (n.length === 0)
|
|
14683
14683
|
return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
|
|
14684
|
-
for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g =
|
|
14684
|
+
for (e.isBlend && (s = u.List_List$of(e.get$dimensions(), !0, r.QueryRequestDimension), $.JSArray_methods.addAll$1(s, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestDimension), new u.formatTableChartData_closure())), o = u.List_List$of(e.get$metrics(), !0, r.QueryRequestMetric), $.JSArray_methods.addAll$1(o, $.JSArray_methods.fold$2(e.get$joinDatasources(), u._setArrayType([], r.JSArray_QueryRequestMetric), new u.formatTableChartData_closure0())), l = u._setArrayType([], r.JSArray_JoinDatasourceConfig), D = e.rowsPerPage, d = e.get$columnIds(), c = e.get$rowIds(), p = e.get$drillDimension(), e = u.TableDatasourceConfigModel$(d, e.columnsWidth, s, p, e.filters, !0, e.isComparable, e.isDrillable, l, e.limit, o, e.periodType, e.rollup, e.rollupPosition, c, D, e.schemaNames, e.showGrandTotal, e.sorts, e.timezone)), y = e.get$joinDatasources().length + 1, s = r.QueryResponse, m = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, 0, y, s), i, a), g = k.comparison = u._formatTableData(e, u.ListExtension_sublistOrEmpty(n, y, y * 2, s), i, a), s = g.rows, s.length !== 0 && (o = m.rows, l = u._arrayInstanceType(o)._eval$1("MappedListIterable<1,List<@>>"), l = u.List_List$of(new u.MappedListIterable(o, new u.formatTableChartData_closure1(), l), !0, l._eval$1("ListIterable.E")), D = m.columns, d = u._arrayInstanceType(D)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), d = u.List_List$of(new u.MappedListIterable(D, new u.formatTableChartData_closure2(), d), !0, d._eval$1("ListIterable.E")), D = u._arrayInstanceType(s)._eval$1("MappedListIterable<1,List<@>>"), D = u.List_List$of(new u.MappedListIterable(s, new u.formatTableChartData_closure3(), D), !0, D._eval$1("ListIterable.E")), c = g.columns, p = u._arrayInstanceType(c)._eval$1("MappedListIterable<1,ComparisonDataColumn>"), h = u.compare(new u.ComparisonData(u.List_List$of(new u.MappedListIterable(c, new u.formatTableChartData_closure4(), p), !0, p._eval$1("ListIterable.E")), D), new u.ComparisonData(d, l)), l = r.TableRowModel, o = u.ListExtensions_mapIndexed(o, new u.formatTableChartData_closure5(h), l, l), m = m.copyWith$1$rows(u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E"))), l = u.ListExtensions_mapIndexed(s, new u.formatTableChartData_closure6(h), l, l), k.comparison = g.copyWith$1$rows(u.List_List$of(l, !0, l.$ti._eval$1("Iterable.E")))), s = m.columns, o = u._arrayInstanceType(s)._eval$1("WhereIterable<1>"), E = u.List_List$of(new u.WhereIterable(s, new u.formatTableChartData_closure7(), o), !0, o._eval$1("Iterable.E")), o = r.String, l = r.int, C = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; F < s.length; ++F)
|
|
14685
14685
|
M = s[F], C.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14686
|
-
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s =
|
|
14686
|
+
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = k.comparison.columns, F < s.length; ++F)
|
|
14687
14687
|
M = s[F], x.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14688
14688
|
for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = E.length, L = 0; L < s; ++L)
|
|
14689
14689
|
M = E[L], o = M.key, w = o + "_" + M.hide, o = u.stringReplaceAllUnchecked(o, ".", "_"), l = C.$index(0, w), l == null && (l = -1), D = x.$index(0, w), R.push(new u._ColumnMapping(M, o, l, D ?? -1));
|
|
14690
|
-
return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s =
|
|
14690
|
+
return s = r.MappedListIterable__ColumnMapping_TableColumnModel, v = u.List_List$of(new u.MappedListIterable(R, new u.formatTableChartData_closure8(), s), !0, s._eval$1("ListIterable.E")), s = k.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(k, R, i, a, s !== 0, s), o, o), m.copyWith$2$columns$rows(v, u.List_List$of(o, !0, o.$ti._eval$1("Iterable.E")));
|
|
14691
14691
|
},
|
|
14692
14692
|
_formatTableResponse_closure: function(n) {
|
|
14693
14693
|
this.config = n;
|
|
@@ -18939,18 +18939,18 @@ Arguments: [` + d + "]";
|
|
|
18939
18939
|
$signature: 0
|
|
18940
18940
|
}, u._formatTableResponse_closure5.prototype = {
|
|
18941
18941
|
call$2(e, n) {
|
|
18942
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic,
|
|
18942
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, k = u._setArrayType([[]], v), K = u._setArrayType([[]], v);
|
|
18943
18943
|
for (v = this.headers, i = n.value, a = r.dynamic, s = r.JSArray_String, o = r.String, l = this.metricColumns, D = 0; D < v.length; ++D)
|
|
18944
18944
|
if (d = v[D], c = _.getInterceptor$ax(d), p = c.map$1$1(d, new u._formatTableResponse__closure4(), o).join$1(0, "|"), u.IterableExtension_firstWhereOrNull(d, new u._formatTableResponse__closure5()) != null)
|
|
18945
|
-
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c =
|
|
18946
|
-
C =
|
|
18945
|
+
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = k.length, g = y.type, h = y.columnValue, E = 0; E < k.length; k.length === c || (0, u.throwConcurrentModificationError)(k), ++E)
|
|
18946
|
+
C = k[E], m ? (F = i.$index(0, h), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F) : (F = g == null ? w : u.DataTypeExtension_toData(g, w), M = C.length, D >= M && $.JSArray_methods.addAll$1(C, u.List_List$filled(D - M + 1, w, !1, a)), C[D] = F);
|
|
18947
18947
|
else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
|
|
18948
18948
|
for (c = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
|
|
18949
|
-
R = l[x], u.ListExtension_elementAtOrNull(
|
|
18949
|
+
R = l[x], u.ListExtension_elementAtOrNull(k, x) == null && (k.push(u.List_List$of(k[0], !0, a)), K.push(u.List_List$of(K[0], !0, a))), g ? (h = k[x], F = R.label, M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F, K[x].push(F)) : c && (h = k[x], F = i.$index(0, R.id), M = h.length, D >= M && $.JSArray_methods.addAll$1(h, u.List_List$filled(D - M + 1, w, !1, a)), h[D] = F);
|
|
18950
18950
|
else
|
|
18951
|
-
for (L = 0; L <
|
|
18952
|
-
c =
|
|
18953
|
-
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(
|
|
18951
|
+
for (L = 0; L < k.length; ++L)
|
|
18952
|
+
c = k[L], g = i.$index(0, p), h = c.length, D >= h && $.JSArray_methods.addAll$1(c, u.List_List$filled(D - h + 1, w, !1, a)), c[D] = g, K[L].push(i.$index(0, p));
|
|
18953
|
+
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(k, new u._formatTableResponse__closure8(K, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
18954
18954
|
},
|
|
18955
18955
|
$signature: 79
|
|
18956
18956
|
}, u._formatTableResponse__closure4.prototype = {
|
|
@@ -19189,9 +19189,9 @@ Arguments: [` + d + "]";
|
|
|
19189
19189
|
$signature: 99
|
|
19190
19190
|
}, u.formatTableChartData_closure9.prototype = {
|
|
19191
19191
|
call$2(e, n) {
|
|
19192
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R = this, L = [], w = [], v = n.cells,
|
|
19192
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, E, C, F, M, x, R = this, L = [], w = [], v = n.cells, k = _.getInterceptor$asx(v), K = k.get$length(v);
|
|
19193
19193
|
for (i = R.columnMappings, a = i.length, s = R.hasComparison, o = R.country, l = R.timezone, D = e < R.comparisonRowsLength, d = R._box_0, c = 0; c < i.length; i.length === a || (0, u.throwConcurrentModificationError)(i), ++c)
|
|
19194
|
-
p = i[c], y = p.mainIndex, m = y >= 0 && y < K ?
|
|
19194
|
+
p = i[c], y = p.mainIndex, m = y >= 0 && y < K ? k.$index(v, y) : u.ListExtension_elementAtOrNull(v, y), y = p.column, g = y.type, h = g == null, L.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, m)), s && (D ? (E = d.comparison.rows[e].cells, C = _.getInterceptor$asx(E), F = C.get$length(E), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(E, M) : u.ListExtension_elementAtOrNull(E, M)) : x = u.ListExtension_elementAtOrNull([], p.comparisonIndex), w.push(h ? null : u.DataTypeExtension_toDisplay(g, y.aggregationType, o, y.decimal, y.dimensionOption, y.formatter, !1, y.timeFormatter, l, x)));
|
|
19195
19195
|
return n.copyWith$2$cells$comparisonCells(L, w);
|
|
19196
19196
|
},
|
|
19197
19197
|
$signature: 7
|
|
@@ -19630,8 +19630,8 @@ Arguments: [` + d + "]";
|
|
|
19630
19630
|
return a.message;
|
|
19631
19631
|
}
|
|
19632
19632
|
}())), n(b, "DateTime__parseFormat", "$get$DateTime__parseFormat", () => u.RegExp_RegExp("^([+-]?\\d{4,6})-?(\\d\\d)-?(\\d\\d)(?:[ T](\\d\\d)(?::?(\\d\\d)(?::?(\\d\\d)(?:[.,](\\d+))?)?)?( ?[zZ]| ?([-+])(\\d\\d)(?::?(\\d\\d))?)?)?$", !1)), n(b, "_hashSeed", "$get$_hashSeed", () => u.objectHashCode($.Type_Object_xQ6)), n(b, "Endian_host", "$get$Endian_host", () => u.NativeByteData_NativeByteData$view(u.NativeUint16List_NativeUint16List$fromList(u._setArrayType([1], r.JSArray_int)).buffer, 0, null).getInt8(0) === 1 ? $.C_Endian0 : $.C_Endian), n(b, "_clockKey", "$get$_clockKey", () => new u.Object()), n(b, "en_USSymbols", "$get$en_USSymbols", () => new u.DateSymbols("en_US", $.List_BC_AD, $.List_6xs, $.List_qpm, $.List_qpm, $.List_cIc, $.List_cIc, $.List_h8w, $.List_h8w, $.List_wMy, $.List_wMy, $.List_gc6, $.List_gc6, $.List_3US, $.List_Q1_Q2_Q3_Q4, $.List_bJM, $.List_AM_PM)), i(b, "_dateTimeSymbols", "$get$_dateTimeSymbols", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", b.$get$en_USSymbols())), i(b, "dateTimePatterns", "$get$dateTimePatterns", () => u.UninitializedLocaleData$("initializeDateFormatting(<locale>)", $.Map_EQ6TW)), n(b, "asciiZeroCodeUnit", "$get$asciiZeroCodeUnit", () => 48), n(b, "DateFormat__matchers", "$get$DateFormat__matchers", () => u._setArrayType([u.RegExp_RegExp("^'(?:[^']|'')*'", !1), u.RegExp_RegExp("^(?:G+|y+|M+|k+|S+|E+|a+|h+|K+|H+|c+|L+|Q+|d+|D+|m+|s+|v+|z+|Z+)", !1), u.RegExp_RegExp("^[^'GyMkSEahKHcLQdDmsvzZ]+", !1)], u.findType("JSArray<RegExp>"))), n(b, "_DateFormatQuotedField__twoEscapedQuotes", "$get$_DateFormatQuotedField__twoEscapedQuotes", () => u.RegExp_RegExp("''", !1)), n(b, "asciiDigitMatcher", "$get$asciiDigitMatcher", () => u.RegExp_RegExp("^\\d+", !1)), i(b, "_availableLocales", "$get$_availableLocales", () => {
|
|
19633
|
-
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1),
|
|
19634
|
-
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de",
|
|
19633
|
+
var a, s, o = u.EnLocale$($.StartOfWeek_1), l = u.EnLocale$($.StartOfWeek_1), D = u.EnLocale$($.StartOfWeek_1), d = u.EnLocale$($.StartOfWeek_1), c = u.EnLocale$($.StartOfWeek_1), p = u.EnLocale$($.StartOfWeek_2), y = u.EnLocale$($.StartOfWeek_2), m = u.EnLocale$($.StartOfWeek_1), g = u.EnLocale$($.StartOfWeek_1), h = u.EsLocale$($.StartOfWeek_2), E = u.EsLocale$($.StartOfWeek_2), C = u.EsLocale$($.StartOfWeek_1), F = u.FrLocale$($.StartOfWeek_2), M = u.FrLocale$($.StartOfWeek_2), x = u.FrLocale$($.StartOfWeek_1), R = u.ZhCnLocale$($.StartOfWeek_1), L = u.ZhCnLocale$($.StartOfWeek_1), w = u.ZhLocale$($.StartOfWeek_1), v = u.ZhLocale$($.StartOfWeek_1), k = u.DeLocale$($.StartOfWeek_2), K = u.DeLocale$($.StartOfWeek_2), c0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), u0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), I0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), T0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), F0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), M0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
|
|
19634
|
+
return u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), a = u.PtLocale$($.StartOfWeek_2), s = u.PtLocale$($.StartOfWeek_1), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.createSentinel(), u.LinkedHashMap_LinkedHashMap$_literal(["en", o, "en_us", l, "en_sg", D, "en_au", d, "en_ca", c, "en_gb", p, "en_ie", y, "en_il", m, "en_nz", g, "es", h, "es_do", E, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", k, "de_de", K, "de_at", c0, "de_ch", g0, "it", u0, "it_ch", h0, "ar", I0, "ar_ly", x0, "ar_dz", L0, "ar_kw", T0, "ar_sa", F0, "ar_ma", O0, "ar_tn", M0, "az", new u.AzLocale($.StartOfWeek_2), "id", new u.IdLocale($.StartOfWeek_1), "ja", new u.JaLocale($.StartOfWeek_1), "ko", new u.KoLocale($.StartOfWeek_1), "ru", new u.RuLocale($.StartOfWeek_2), "uk", new u.UkLocale($.StartOfWeek_2), "hi", new u.HiLocale($.StartOfWeek_1), "pt", a, "pt_br", s, "pl", new u.PlLocale($.StartOfWeek_2), "tr", new u.TrLocale($.StartOfWeek_2), "sv", new u.SvLocale($.StartOfWeek_2), "nb", new u.NbLocale($.StartOfWeek_2), "fa", new u.FaLocale($.StartOfWeek_0), "bn", new u.BnLocale($.StartOfWeek_1), "nl", new u.NlLocale($.StartOfWeek_2), "th", new u.ThLocale($.StartOfWeek_1)], r.String, u.findType("Locale"));
|
|
19635
19635
|
}), n(b, "_UTC", "$get$_UTC", () => {
|
|
19636
19636
|
var a = r.JSArray_int;
|
|
19637
19637
|
return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -19690,18 +19690,18 @@ Arguments: [` + d + "]";
|
|
|
19690
19690
|
});
|
|
19691
19691
|
})();
|
|
19692
19692
|
};
|
|
19693
|
-
})(
|
|
19694
|
-
const
|
|
19695
|
-
|
|
19696
|
-
var Ge =
|
|
19697
|
-
const
|
|
19693
|
+
})(Ae);
|
|
19694
|
+
const Te = Ae;
|
|
19695
|
+
Te.load({});
|
|
19696
|
+
var Ge = Te;
|
|
19697
|
+
const le = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), ze = (() => {
|
|
19698
19698
|
const A = new Intl.DateTimeFormat("en-US", { weekday: "short" });
|
|
19699
19699
|
return Array.from(
|
|
19700
19700
|
{ length: 7 },
|
|
19701
19701
|
(I, O) => A.format(new Date(1970, 0, 4 + O)).toLowerCase().slice(0, 3)
|
|
19702
19702
|
);
|
|
19703
19703
|
})();
|
|
19704
|
-
function
|
|
19704
|
+
function _e(A) {
|
|
19705
19705
|
if (A == null || A === "") return null;
|
|
19706
19706
|
const I = String(A).trim();
|
|
19707
19707
|
if (I === "") return null;
|
|
@@ -19710,13 +19710,13 @@ function le(A) {
|
|
|
19710
19710
|
return { type: "dayName", value: J };
|
|
19711
19711
|
const B = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19712
19712
|
if (B) {
|
|
19713
|
-
const [,
|
|
19713
|
+
const [, q, V, X, t0, Q, z = "0"] = B;
|
|
19714
19714
|
return {
|
|
19715
19715
|
type: "fullDateTime",
|
|
19716
19716
|
value: new Date(
|
|
19717
|
-
parseInt(
|
|
19718
|
-
parseInt(
|
|
19719
|
-
parseInt(
|
|
19717
|
+
parseInt(X),
|
|
19718
|
+
parseInt(V) - 1,
|
|
19719
|
+
parseInt(q),
|
|
19720
19720
|
parseInt(t0),
|
|
19721
19721
|
parseInt(Q),
|
|
19722
19722
|
parseInt(z)
|
|
@@ -19725,40 +19725,40 @@ function le(A) {
|
|
|
19725
19725
|
}
|
|
19726
19726
|
const H = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
19727
19727
|
if (H) {
|
|
19728
|
-
const [,
|
|
19728
|
+
const [, q, V, X] = H;
|
|
19729
19729
|
return {
|
|
19730
19730
|
type: "date",
|
|
19731
|
-
value: new Date(parseInt(
|
|
19731
|
+
value: new Date(parseInt(X), parseInt(V) - 1, parseInt(q)).getTime()
|
|
19732
19732
|
};
|
|
19733
19733
|
}
|
|
19734
19734
|
const P = I.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
19735
19735
|
if (P) {
|
|
19736
|
-
const [,
|
|
19736
|
+
const [, q, V, X] = P;
|
|
19737
19737
|
return {
|
|
19738
19738
|
type: "date",
|
|
19739
|
-
value: new Date(parseInt(
|
|
19739
|
+
value: new Date(parseInt(q), parseInt(V) - 1, parseInt(X)).getTime()
|
|
19740
19740
|
};
|
|
19741
19741
|
}
|
|
19742
|
-
const
|
|
19743
|
-
if (
|
|
19744
|
-
const [,
|
|
19742
|
+
const N = I.match(/^(\d{1,2})\/(\d{4})$/);
|
|
19743
|
+
if (N) {
|
|
19744
|
+
const [, q, V] = N;
|
|
19745
19745
|
return {
|
|
19746
19746
|
type: "monthYear",
|
|
19747
|
-
value: new Date(parseInt(
|
|
19747
|
+
value: new Date(parseInt(V), parseInt(q) - 1, 1).getTime()
|
|
19748
19748
|
};
|
|
19749
19749
|
}
|
|
19750
|
-
const
|
|
19751
|
-
if (
|
|
19752
|
-
const [,
|
|
19750
|
+
const U = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19751
|
+
if (U) {
|
|
19752
|
+
const [, q, V, X = "0"] = U;
|
|
19753
19753
|
return {
|
|
19754
19754
|
type: "time",
|
|
19755
|
-
value: parseInt(
|
|
19755
|
+
value: parseInt(q) * 3600 + parseInt(V) * 60 + parseInt(X)
|
|
19756
19756
|
};
|
|
19757
19757
|
}
|
|
19758
19758
|
return /^\d+$/.test(I) ? { type: "number", value: parseInt(I) } : null;
|
|
19759
19759
|
}
|
|
19760
|
-
function
|
|
19761
|
-
const O =
|
|
19760
|
+
function De(A, I) {
|
|
19761
|
+
const O = _e(A), J = _e(I);
|
|
19762
19762
|
return !O && !J ? null : O ? J ? (O.type === J.type, O.value - J.value) : -1 : 1;
|
|
19763
19763
|
}
|
|
19764
19764
|
function We(A, I) {
|
|
@@ -19779,7 +19779,7 @@ function je(A, I) {
|
|
|
19779
19779
|
for (const J of I) O[J.key] = void 0;
|
|
19780
19780
|
return Array.from({ length: A }, () => ({ ...O }));
|
|
19781
19781
|
}
|
|
19782
|
-
function
|
|
19782
|
+
function X0(A, I, O) {
|
|
19783
19783
|
var B, H;
|
|
19784
19784
|
if (((B = A[I]) == null ? void 0 : B.main) !== void 0) return A[I].main;
|
|
19785
19785
|
const J = O.findIndex((P) => P.key === I);
|
|
@@ -19795,74 +19795,74 @@ function Ke(A) {
|
|
|
19795
19795
|
grandTotalPosition: H = null,
|
|
19796
19796
|
pageSize: P = 0
|
|
19797
19797
|
} = A;
|
|
19798
|
-
let
|
|
19799
|
-
H === "BOTTOM" && ((a0 =
|
|
19800
|
-
let
|
|
19801
|
-
for (const
|
|
19802
|
-
|
|
19803
|
-
const
|
|
19804
|
-
for (const
|
|
19805
|
-
const
|
|
19806
|
-
(
|
|
19807
|
-
),
|
|
19798
|
+
let N = Array.isArray(I) ? [...I] : [];
|
|
19799
|
+
H === "BOTTOM" && ((a0 = N.at(-1)) != null && a0.isRollup) && N.pop(), H === "TOP" && ((o0 = N[0]) != null && o0.isRollup) && N.shift();
|
|
19800
|
+
let U = 0;
|
|
19801
|
+
for (const Y of N)
|
|
19802
|
+
Y.isRollup && U++, Y.groupIndex = U;
|
|
19803
|
+
const q = {};
|
|
19804
|
+
for (const Y of O) q[Y.key] = Y.type === "NUMERIC";
|
|
19805
|
+
const V = J.filter(
|
|
19806
|
+
(Y) => Y.key && O.some((W) => W.key === Y.key)
|
|
19807
|
+
), X = V.length > 0;
|
|
19808
19808
|
let t0 = I;
|
|
19809
|
-
B !== null && (t0 = t0.filter((
|
|
19809
|
+
B !== null && (t0 = t0.filter((Y) => !(B !== "" && (Y.isRollup === !0 || !Y.cells.some((W) => ((W == null ? void 0 : W.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((Y) => ({ ...We(Y, O), groupIndex: Y.groupIndex })));
|
|
19810
19810
|
const Q = {};
|
|
19811
|
-
for (const
|
|
19812
|
-
const W =
|
|
19813
|
-
W !== void 0 && (Q[W] || (Q[W] = [])).push(
|
|
19811
|
+
for (const Y of t0) {
|
|
19812
|
+
const W = Y.groupIndex;
|
|
19813
|
+
W !== void 0 && (Q[W] || (Q[W] = [])).push(Y);
|
|
19814
19814
|
}
|
|
19815
|
-
|
|
19816
|
-
const W =
|
|
19815
|
+
X && Object.values(Q).forEach((Y) => {
|
|
19816
|
+
const W = Y.filter((e0) => e0.isRollup), n0 = Y.filter((e0) => !e0.isRollup);
|
|
19817
19817
|
n0.sort((e0, i0) => {
|
|
19818
|
-
for (const { key: j, type: r0 } of
|
|
19819
|
-
const _0 = r0 === "ASC" ? 1 : -1, Z =
|
|
19820
|
-
if (
|
|
19818
|
+
for (const { key: j, type: r0 } of V) {
|
|
19819
|
+
const _0 = r0 === "ASC" ? 1 : -1, Z = X0(e0, j, O) ?? "", t = X0(i0, j, O) ?? "";
|
|
19820
|
+
if (q[j]) {
|
|
19821
19821
|
const u = Number(Z) - Number(t);
|
|
19822
19822
|
if (u !== 0) return u * _0;
|
|
19823
19823
|
} else {
|
|
19824
|
-
const u =
|
|
19824
|
+
const u = De(Z, t);
|
|
19825
19825
|
if (u !== null && u !== 0)
|
|
19826
19826
|
return u * _0;
|
|
19827
|
-
const _ =
|
|
19827
|
+
const _ = le.compare(String(Z), String(t));
|
|
19828
19828
|
if (_ !== 0) return _ * _0;
|
|
19829
19829
|
}
|
|
19830
19830
|
}
|
|
19831
19831
|
return 0;
|
|
19832
|
-
}), Q[
|
|
19832
|
+
}), Q[Y[0].groupIndex] = W.concat(n0);
|
|
19833
19833
|
});
|
|
19834
19834
|
let z;
|
|
19835
|
-
if (
|
|
19836
|
-
const
|
|
19835
|
+
if (X) {
|
|
19836
|
+
const Y = H === null ? (() => {
|
|
19837
19837
|
const e0 = Object.keys(Q).find((i0) => {
|
|
19838
19838
|
const j = Q[i0] || [], r0 = j.some((Z) => Z.isRollup), _0 = j.some((Z) => !Z.isRollup);
|
|
19839
19839
|
return r0 && !_0;
|
|
19840
19840
|
});
|
|
19841
19841
|
return e0 !== void 0 ? Number(e0) : -1;
|
|
19842
|
-
})() : -1, W = ((s0 =
|
|
19842
|
+
})() : -1, W = ((s0 = V[0]) == null ? void 0 : s0.key) ?? ((D0 = O.find((e0) => q[e0.key])) == null ? void 0 : D0.key), n0 = ((f0 = V[0]) == null ? void 0 : f0.type) === "ASC" ? 1 : (((p0 = V[0]) == null ? void 0 : p0.type) === "DESC", -1);
|
|
19843
19843
|
z = Object.keys(Q).map(Number).sort((e0, i0) => {
|
|
19844
19844
|
if (!W) return e0 - i0;
|
|
19845
|
-
if (
|
|
19846
|
-
if (e0 ===
|
|
19847
|
-
if (i0 ===
|
|
19845
|
+
if (Y !== -1) {
|
|
19846
|
+
if (e0 === Y) return -1;
|
|
19847
|
+
if (i0 === Y) return 1;
|
|
19848
19848
|
}
|
|
19849
|
-
const j = Q[e0].find((u) => u.isRollup), r0 = Q[i0].find((u) => u.isRollup), _0 = j ?
|
|
19850
|
-
if (
|
|
19851
|
-
const t =
|
|
19852
|
-
return t !== null ? t * n0 :
|
|
19849
|
+
const j = Q[e0].find((u) => u.isRollup), r0 = Q[i0].find((u) => u.isRollup), _0 = j ? X0(j, W, O) ?? "" : "", Z = r0 ? X0(r0, W, O) ?? "" : "";
|
|
19850
|
+
if (q[W]) return (Number(_0) - Number(Z)) * n0;
|
|
19851
|
+
const t = De(_0, Z);
|
|
19852
|
+
return t !== null ? t * n0 : le.compare(String(_0), String(Z)) * n0;
|
|
19853
19853
|
});
|
|
19854
19854
|
} else
|
|
19855
|
-
z = Object.keys(Q).map(Number).sort((
|
|
19856
|
-
const
|
|
19857
|
-
for (const
|
|
19858
|
-
for (const { groupIndex: W, ...n0 } of Q[
|
|
19859
|
-
|
|
19855
|
+
z = Object.keys(Q).map(Number).sort((Y, W) => Y - W);
|
|
19856
|
+
const G = [];
|
|
19857
|
+
for (const Y of z)
|
|
19858
|
+
for (const { groupIndex: W, ...n0 } of Q[Y])
|
|
19859
|
+
G.push(n0);
|
|
19860
19860
|
if (P > 0) {
|
|
19861
|
-
const
|
|
19861
|
+
const Y = G.length % P;
|
|
19862
19862
|
let W = 0;
|
|
19863
|
-
|
|
19863
|
+
Y > 0 ? W = P - Y : G.length === 0 && (W = P), W > 0 && G.push(...je(W, O));
|
|
19864
19864
|
}
|
|
19865
|
-
return { data:
|
|
19865
|
+
return { data: G };
|
|
19866
19866
|
}
|
|
19867
19867
|
var Ze = { processTableData: Ke };
|
|
19868
19868
|
const et = Ye, tt = Ge, rt = Ze;
|
|
@@ -19870,7 +19870,7 @@ var ie = {
|
|
|
19870
19870
|
...rt,
|
|
19871
19871
|
...tt,
|
|
19872
19872
|
...et
|
|
19873
|
-
},
|
|
19873
|
+
}, q0 = /* @__PURE__ */ ((A) => (A.DateTime = "DATE_TIME", A.Hour = "HOUR", A.Day = "DAY", A.Week = "WEEK", A.Month = "MONTH", A.TimeOfDay = "TIME_OF_DAY", A.HourOfDay = "HOUR_OF_DAY", A.DayOfWeek = "DAY_OF_WEEK", A.DayOfMonth = "DAY_OF_MONTH", A.MonthOfYear = "MONTH_OF_YEAR", A.Year = "YEAR", A.YearMonthDay = "YEAR_MONTH_DAY", A))(q0 || {}), nt = /* @__PURE__ */ ((A) => (A.Asc = "ASC", A.Desc = "DESC", A))(nt || {}), ae = /* @__PURE__ */ ((A) => (A.Equal = "EQUAL", A.NotEqual = "NOT_EQUAL", A.GreaterThan = "GREATER_THAN", A.LessThan = "LESS_THAN", A.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", A.LessThanOrEqual = "LESS_THAN_OR_EQUAL", A.Between = "BETWEEN", A.Like = "LIKE", A.NotLike = "NOT_LIKE", A.And = "AND", A.Or = "OR", A))(ae || {}), it = /* @__PURE__ */ ((A) => (A.String = "STRING", A.Timestamp = "TIMESTAMP", A.Bool = "BOOL", A.Numeric = "NUMERIC", A))(it || {}), at = /* @__PURE__ */ ((A) => (A.MTD = "MTD", A))(at || {}), ut = /* @__PURE__ */ ((A) => (A.Scorecard = "SCORECARD", A.Spacer = "SPACER", A.Table = "TABLE", A.BarChart = "BARCHART", A.StackBarChart = "STACKBARCHART", A.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", A.LineChart = "LINECHART", A.StackLineChart = "STACKLINECHART", A.Circular = "CIRCULAR", A))(ut || {}), st = /* @__PURE__ */ ((A) => (A.EXCEL = "excel", A.PDF = "pdf", A.PDFFULLSIZE = "pdfFullSize", A.PDFRECEIPT = "pdfReceipt", A))(st || {}), ot = /* @__PURE__ */ ((A) => (A.PORTRAIT = "portrait", A.LANDSCAPE = "landscape", A))(ot || {});
|
|
19874
19874
|
function nr(A) {
|
|
19875
19875
|
switch (A) {
|
|
19876
19876
|
case "excel":
|
|
@@ -19994,8 +19994,8 @@ const k0 = {
|
|
|
19994
19994
|
url: "/schemas"
|
|
19995
19995
|
};
|
|
19996
19996
|
return E0.fetch(A);
|
|
19997
|
-
}, gt = "mf-reportschema-store", ht =
|
|
19998
|
-
const A = l0([]), I =
|
|
19997
|
+
}, gt = "mf-reportschema-store", ht = Q0(gt, () => {
|
|
19998
|
+
const A = l0([]), I = he();
|
|
19999
19999
|
async function O() {
|
|
20000
20000
|
try {
|
|
20001
20001
|
A.value = await mt();
|
|
@@ -20030,7 +20030,7 @@ function Et(A) {
|
|
|
20030
20030
|
return I ? `business::report::reports::${I}` : null;
|
|
20031
20031
|
}
|
|
20032
20032
|
function Ce() {
|
|
20033
|
-
const { sessionUser: A } = ne(), I =
|
|
20033
|
+
const { sessionUser: A } = ne(), I = $e(), { country: O } = d0($0()), J = R0(() => {
|
|
20034
20034
|
const Q = I.flags.find(
|
|
20035
20035
|
(z) => z.key === Z0.report_portal_permission_th_control_temp
|
|
20036
20036
|
);
|
|
@@ -20050,26 +20050,26 @@ function Ce() {
|
|
|
20050
20050
|
);
|
|
20051
20051
|
function P(Q, z) {
|
|
20052
20052
|
if (!B.value) return !0;
|
|
20053
|
-
const
|
|
20054
|
-
return !
|
|
20053
|
+
const G = Et(Q);
|
|
20054
|
+
return !G || !H.value.length ? !1 : z.some((a0) => ee([{
|
|
20055
20055
|
action: a0,
|
|
20056
20056
|
// Report subjects are custom strings; cast to satisfy CaslPermission type
|
|
20057
|
-
subject:
|
|
20057
|
+
subject: G
|
|
20058
20058
|
}], H.value).granted);
|
|
20059
20059
|
}
|
|
20060
|
-
function
|
|
20060
|
+
function N(Q) {
|
|
20061
20061
|
return P(Q, [C0.update, C0.manage]);
|
|
20062
20062
|
}
|
|
20063
|
-
function
|
|
20063
|
+
function U(Q) {
|
|
20064
20064
|
return P(Q, [C0.read, C0.manage]);
|
|
20065
20065
|
}
|
|
20066
|
-
function
|
|
20066
|
+
function q(Q) {
|
|
20067
20067
|
return P(Q, [C0.delete, C0.manage]);
|
|
20068
20068
|
}
|
|
20069
|
-
function
|
|
20069
|
+
function V(Q) {
|
|
20070
20070
|
return P(Q, [C0.manage]);
|
|
20071
20071
|
}
|
|
20072
|
-
function
|
|
20072
|
+
function X(Q) {
|
|
20073
20073
|
return P(Q, [C0.create, C0.manage]);
|
|
20074
20074
|
}
|
|
20075
20075
|
const t0 = R0(() => {
|
|
@@ -20082,30 +20082,30 @@ function Ce() {
|
|
|
20082
20082
|
});
|
|
20083
20083
|
return {
|
|
20084
20084
|
isReportPermissionEnabled: B,
|
|
20085
|
-
canRead:
|
|
20086
|
-
canUpdate:
|
|
20087
|
-
canDelete:
|
|
20088
|
-
canManage:
|
|
20089
|
-
canDuplicate:
|
|
20085
|
+
canRead: U,
|
|
20086
|
+
canUpdate: N,
|
|
20087
|
+
canDelete: q,
|
|
20088
|
+
canManage: V,
|
|
20089
|
+
canDuplicate: X,
|
|
20090
20090
|
canCreateReport: t0
|
|
20091
20091
|
};
|
|
20092
20092
|
}
|
|
20093
|
-
const At = "mf-reportreport-store",
|
|
20094
|
-
const { business: A, globalFilters: I } = d0(G0()), { schemas: O } = d0(ht()), { flags: J } = d0(
|
|
20093
|
+
const At = "mf-reportreport-store", ue = Q0(At, () => {
|
|
20094
|
+
const { business: A, globalFilters: I } = d0(G0()), { schemas: O } = d0(ht()), { flags: J } = d0($e()), B = l0([]), H = l0([]), P = l0(0), N = he(), U = R0(() => B.value.filter((f) => f.editable)), q = R0(() => B.value.filter((f) => !f.editable)), V = l0(!1), X = l0(""), t0 = l0(), Q = l0(), z = R0(() => {
|
|
20095
20095
|
const f = J.value.find(
|
|
20096
20096
|
(r) => r.key === Z0.report_portal_integration_custom_report
|
|
20097
20097
|
);
|
|
20098
20098
|
return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
|
|
20099
|
-
}), { isReportPermissionEnabled:
|
|
20099
|
+
}), { isReportPermissionEnabled: G } = Ce(), a0 = R0(() => z.value === null ? !0 : z.value - U.value.length > 0);
|
|
20100
20100
|
async function o0() {
|
|
20101
20101
|
return Q.value = await ft(), Q.value;
|
|
20102
20102
|
}
|
|
20103
20103
|
async function s0() {
|
|
20104
20104
|
var f;
|
|
20105
20105
|
try {
|
|
20106
|
-
B.value = await lt(), H.value = await yt(), B.value.find((e) => e.id ===
|
|
20106
|
+
B.value = await lt(), H.value = await yt(), B.value.find((e) => e.id === X.value) || (X.value = ((f = B.value.find((e) => e.isDefault)) == null ? void 0 : f.id) || B.value[0].id);
|
|
20107
20107
|
} catch (r) {
|
|
20108
|
-
console.log(r),
|
|
20108
|
+
console.log(r), N.open({
|
|
20109
20109
|
title: "Report Fetch Error",
|
|
20110
20110
|
message: "Internal Server Error",
|
|
20111
20111
|
type: "error"
|
|
@@ -20113,7 +20113,7 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20113
20113
|
}
|
|
20114
20114
|
}
|
|
20115
20115
|
const D0 = R0(
|
|
20116
|
-
() => B.value.find((f) => f.id ===
|
|
20116
|
+
() => B.value.find((f) => f.id === X.value)
|
|
20117
20117
|
);
|
|
20118
20118
|
function f0(f) {
|
|
20119
20119
|
var e;
|
|
@@ -20134,16 +20134,16 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20134
20134
|
},
|
|
20135
20135
|
{ deep: !0 }
|
|
20136
20136
|
);
|
|
20137
|
-
const p0 = l0(),
|
|
20137
|
+
const p0 = l0(), Y = l0(0), W = l0(), n0 = l0(null), e0 = l0(null), i0 = l0(!1), j = l0(!1), r0 = l0(!1);
|
|
20138
20138
|
async function _0(f) {
|
|
20139
|
-
const r =
|
|
20139
|
+
const r = U.value.findIndex((n) => n.id === f.id);
|
|
20140
20140
|
let e;
|
|
20141
20141
|
if (r >= 0)
|
|
20142
20142
|
e = await _t(f);
|
|
20143
20143
|
else {
|
|
20144
20144
|
e = await Dt(f);
|
|
20145
20145
|
try {
|
|
20146
|
-
if (
|
|
20146
|
+
if (G.value) {
|
|
20147
20147
|
await St(e.id, e.name);
|
|
20148
20148
|
const n = ne(), { businessId: i } = d0($0());
|
|
20149
20149
|
await n.fetchUserPermissions(void 0, i.value);
|
|
@@ -20164,7 +20164,7 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20164
20164
|
await ct(f), await o0();
|
|
20165
20165
|
}
|
|
20166
20166
|
function u(f) {
|
|
20167
|
-
|
|
20167
|
+
X.value = f;
|
|
20168
20168
|
}
|
|
20169
20169
|
const _ = l0(null);
|
|
20170
20170
|
function $() {
|
|
@@ -20205,14 +20205,14 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20205
20205
|
categories: H,
|
|
20206
20206
|
currentReport: D0,
|
|
20207
20207
|
editingReport: p0,
|
|
20208
|
-
editingTileIndex:
|
|
20208
|
+
editingTileIndex: Y,
|
|
20209
20209
|
editingTile: W,
|
|
20210
20210
|
editingGlobalFilterIndex: n0,
|
|
20211
20211
|
editingGlobalFilter: e0,
|
|
20212
|
-
currentReportId:
|
|
20213
|
-
editableReports:
|
|
20214
|
-
nonEditableReports:
|
|
20215
|
-
isOpenAddReportDialog:
|
|
20212
|
+
currentReportId: X,
|
|
20213
|
+
editableReports: U,
|
|
20214
|
+
nonEditableReports: q,
|
|
20215
|
+
isOpenAddReportDialog: V,
|
|
20216
20216
|
overviewReport: Q,
|
|
20217
20217
|
pinReport: _,
|
|
20218
20218
|
scrollPositionY: P,
|
|
@@ -20229,21 +20229,21 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20229
20229
|
clearPinReport: b,
|
|
20230
20230
|
getReportConfig: T
|
|
20231
20231
|
};
|
|
20232
|
-
}), Tt = "mf-reportnavigation", be =
|
|
20232
|
+
}), Tt = "mf-reportnavigation", be = Q0(Tt, () => {
|
|
20233
20233
|
const { disabled: A } = d0(we()), { sessionUser: I } = ne(), { isReportPermissionEnabled: O } = Ce();
|
|
20234
|
-
function J(
|
|
20234
|
+
function J(V) {
|
|
20235
20235
|
var z;
|
|
20236
20236
|
if (!O.value) return !0;
|
|
20237
|
-
const
|
|
20238
|
-
if (!Array.isArray(
|
|
20237
|
+
const X = ((z = I.value) == null ? void 0 : z.permissions) ?? [];
|
|
20238
|
+
if (!Array.isArray(X) || X.length === 0) return !1;
|
|
20239
20239
|
const t0 = {
|
|
20240
20240
|
action: C0.manage,
|
|
20241
|
-
subject:
|
|
20241
|
+
subject: V
|
|
20242
20242
|
};
|
|
20243
|
-
return ee([t0],
|
|
20243
|
+
return ee([t0], X).granted;
|
|
20244
20244
|
}
|
|
20245
20245
|
const B = l0("v5"), H = l0(!1), P = R0(() => {
|
|
20246
|
-
const
|
|
20246
|
+
const V = !J("business::report::accessInsight"), X = !J("business::report::accessSetting"), t0 = !J("business::report::accessIntegration"), Q = [
|
|
20247
20247
|
{
|
|
20248
20248
|
label: "overview",
|
|
20249
20249
|
value: "overview",
|
|
@@ -20259,13 +20259,13 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20259
20259
|
value: "insight",
|
|
20260
20260
|
route: "insights",
|
|
20261
20261
|
badge: () => Be(Ue.FmPill, { variant: "beta" }),
|
|
20262
|
-
disabled:
|
|
20262
|
+
disabled: V
|
|
20263
20263
|
},
|
|
20264
20264
|
{
|
|
20265
20265
|
label: "setting",
|
|
20266
20266
|
value: "setting",
|
|
20267
20267
|
route: "setting",
|
|
20268
|
-
disabled:
|
|
20268
|
+
disabled: X
|
|
20269
20269
|
}
|
|
20270
20270
|
];
|
|
20271
20271
|
return A.value || Q.push({
|
|
@@ -20274,36 +20274,36 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20274
20274
|
route: "integrations",
|
|
20275
20275
|
disabled: t0
|
|
20276
20276
|
}), Q;
|
|
20277
|
-
}),
|
|
20278
|
-
function
|
|
20279
|
-
switch (
|
|
20277
|
+
}), N = l0(""), { currentRoute: U } = qe();
|
|
20278
|
+
function q(V) {
|
|
20279
|
+
switch (V.name) {
|
|
20280
20280
|
case "report":
|
|
20281
20281
|
case "reports":
|
|
20282
|
-
|
|
20282
|
+
N.value = "report";
|
|
20283
20283
|
break;
|
|
20284
20284
|
case "overview":
|
|
20285
|
-
|
|
20285
|
+
N.value = "overview";
|
|
20286
20286
|
break;
|
|
20287
20287
|
case "setting":
|
|
20288
|
-
|
|
20288
|
+
N.value = "setting";
|
|
20289
20289
|
break;
|
|
20290
20290
|
case "insights":
|
|
20291
|
-
|
|
20291
|
+
N.value = "insight";
|
|
20292
20292
|
break;
|
|
20293
20293
|
case "integration":
|
|
20294
20294
|
case "integrations":
|
|
20295
|
-
|
|
20295
|
+
N.value = "integration";
|
|
20296
20296
|
break;
|
|
20297
20297
|
}
|
|
20298
20298
|
}
|
|
20299
20299
|
return z0(
|
|
20300
|
-
|
|
20301
|
-
(
|
|
20302
|
-
|
|
20300
|
+
U,
|
|
20301
|
+
(V) => {
|
|
20302
|
+
q(V);
|
|
20303
20303
|
},
|
|
20304
20304
|
{ immediate: !0 }
|
|
20305
20305
|
), {
|
|
20306
|
-
selectedNavigationTab:
|
|
20306
|
+
selectedNavigationTab: N,
|
|
20307
20307
|
navigationTabs: P,
|
|
20308
20308
|
version: B,
|
|
20309
20309
|
suppressReportRouteSync: H
|
|
@@ -20311,18 +20311,18 @@ const At = "mf-reportreport-store", ae = q0(At, () => {
|
|
|
20311
20311
|
});
|
|
20312
20312
|
var Ie = /* @__PURE__ */ ((A) => (A.generating = "GENERATING", A.completed = "COMPLETED", A.failed = "FAILED", A.canceled = "CANCELLED", A))(Ie || {});
|
|
20313
20313
|
const Ct = "/assets/formatChartData.worker-BMafyqs1.js", K0 = /* @__PURE__ */ new Map();
|
|
20314
|
-
function
|
|
20314
|
+
function de(A) {
|
|
20315
20315
|
return new Worker(A, { type: "module" });
|
|
20316
20316
|
}
|
|
20317
20317
|
async function bt(A) {
|
|
20318
20318
|
if (K0.has(A))
|
|
20319
|
-
return
|
|
20319
|
+
return de(K0.get(A));
|
|
20320
20320
|
let I = A;
|
|
20321
20321
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
20322
|
-
const B = new URL(A.replace(/^\//, ""), import.meta.url).href, H = await fetch(B).then((
|
|
20322
|
+
const B = new URL(A.replace(/^\//, ""), import.meta.url).href, H = await fetch(B).then((N) => N.text()), P = new Blob([H], { type: "application/javascript" });
|
|
20323
20323
|
I = URL.createObjectURL(P);
|
|
20324
20324
|
}
|
|
20325
|
-
const J =
|
|
20325
|
+
const J = de(I);
|
|
20326
20326
|
return K0.set(A, I), J;
|
|
20327
20327
|
}
|
|
20328
20328
|
async function It(A, I) {
|
|
@@ -20334,17 +20334,17 @@ async function It(A, I) {
|
|
|
20334
20334
|
};
|
|
20335
20335
|
});
|
|
20336
20336
|
}
|
|
20337
|
-
const Ft = "mf-reportwidget-size", Fe =
|
|
20337
|
+
const Ft = "mf-reportwidget-size", Fe = Q0(Ft, () => {
|
|
20338
20338
|
const A = l0([]);
|
|
20339
20339
|
function I(O, J) {
|
|
20340
20340
|
var B;
|
|
20341
20341
|
try {
|
|
20342
20342
|
if (!O) return;
|
|
20343
20343
|
let H;
|
|
20344
|
-
const P = O.$el,
|
|
20345
|
-
if (
|
|
20346
|
-
const
|
|
20347
|
-
H = { width: Math.round(
|
|
20344
|
+
const P = O.$el, N = (B = P == null ? void 0 : P.querySelector) == null ? void 0 : B.call(P, "canvas");
|
|
20345
|
+
if (N) {
|
|
20346
|
+
const U = N.getBoundingClientRect();
|
|
20347
|
+
H = { width: Math.round(U.width), height: Math.round(U.height) };
|
|
20348
20348
|
}
|
|
20349
20349
|
if (H && H.width > 0 && H.height > 0)
|
|
20350
20350
|
return typeof J == "number" && (A.value[J] = H), H;
|
|
@@ -20353,12 +20353,12 @@ const Ft = "mf-reportwidget-size", Fe = q0(Ft, () => {
|
|
|
20353
20353
|
}
|
|
20354
20354
|
}
|
|
20355
20355
|
return { sizes: A, extractChartSize: I };
|
|
20356
|
-
}), Mt = "mf-reportreport-sort-store", Me =
|
|
20356
|
+
}), Mt = "mf-reportreport-sort-store", Me = Q0(Mt, () => {
|
|
20357
20357
|
const A = l0([]);
|
|
20358
20358
|
function I(B, H) {
|
|
20359
20359
|
if (B == null) return;
|
|
20360
|
-
const P = Array.isArray(H) ? H.filter((
|
|
20361
|
-
|
|
20360
|
+
const P = Array.isArray(H) ? H.filter((q) => q && q.key) : [], N = A.value.findIndex((q) => q.tileIndex === B), U = { tileIndex: B, sorts: P };
|
|
20361
|
+
N !== -1 ? A.value.splice(N, 1, U) : A.value.push(U);
|
|
20362
20362
|
}
|
|
20363
20363
|
function O(B) {
|
|
20364
20364
|
var H;
|
|
@@ -20406,8 +20406,8 @@ function Ot(A, I) {
|
|
|
20406
20406
|
return O.length !== 2 ? null : {
|
|
20407
20407
|
schemaName: A.schemaName,
|
|
20408
20408
|
name: A.name,
|
|
20409
|
-
operator:
|
|
20410
|
-
option: A.option ??
|
|
20409
|
+
operator: ae.Between,
|
|
20410
|
+
option: A.option ?? q0.TimeOfDay,
|
|
20411
20411
|
values: O,
|
|
20412
20412
|
dataFormula: A.dataFormula,
|
|
20413
20413
|
isGlobalFilter: !0
|
|
@@ -20416,37 +20416,37 @@ function Ot(A, I) {
|
|
|
20416
20416
|
function wt(A) {
|
|
20417
20417
|
var J, B, H, P;
|
|
20418
20418
|
const I = Array.from(
|
|
20419
|
-
new Set((A.values ?? []).map((
|
|
20419
|
+
new Set((A.values ?? []).map((N) => N === "" ? "NULL" : N))
|
|
20420
20420
|
);
|
|
20421
20421
|
if (I.length === 1 && String(I[0]) === "(EMPTY)") {
|
|
20422
|
-
const
|
|
20422
|
+
const N = Object.values(q0).includes(
|
|
20423
20423
|
String(A.option ?? "")
|
|
20424
|
-
),
|
|
20424
|
+
), U = A.option === q0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [N ? "-1" : "(EMPTY)"];
|
|
20425
20425
|
return [
|
|
20426
20426
|
{
|
|
20427
20427
|
schemaName: A.schemaName,
|
|
20428
20428
|
name: A.name,
|
|
20429
20429
|
operator: A.operator,
|
|
20430
20430
|
option: A.option ?? null,
|
|
20431
|
-
values:
|
|
20431
|
+
values: U,
|
|
20432
20432
|
dataFormula: A.dataFormula,
|
|
20433
20433
|
isGlobalFilter: !0
|
|
20434
20434
|
}
|
|
20435
20435
|
];
|
|
20436
20436
|
}
|
|
20437
20437
|
if ((((J = A.customTimeRanges) == null ? void 0 : J.length) ?? 0) > 0) {
|
|
20438
|
-
const
|
|
20439
|
-
return ((B = A.customTimeRanges) == null ? void 0 : B.filter((
|
|
20440
|
-
const
|
|
20441
|
-
return
|
|
20442
|
-
}).map((
|
|
20438
|
+
const N = new Set(I.map((U) => String(U)));
|
|
20439
|
+
return ((B = A.customTimeRanges) == null ? void 0 : B.filter((U) => {
|
|
20440
|
+
const q = String(U.name ?? "");
|
|
20441
|
+
return N.has(q);
|
|
20442
|
+
}).map((U) => Ot(A, U)).filter((U) => !!U)) ?? [];
|
|
20443
20443
|
}
|
|
20444
20444
|
if ((((H = A.customOptions) == null ? void 0 : H.length) ?? 0) > 0) {
|
|
20445
|
-
const
|
|
20446
|
-
return ((P = A.customOptions) == null ? void 0 : P.filter((
|
|
20447
|
-
const
|
|
20448
|
-
return
|
|
20449
|
-
}).map((
|
|
20445
|
+
const N = new Set(I.map((U) => String(U)));
|
|
20446
|
+
return ((P = A.customOptions) == null ? void 0 : P.filter((U) => {
|
|
20447
|
+
const q = String(U.label ?? "");
|
|
20448
|
+
return N.has(q);
|
|
20449
|
+
}).map((U) => Lt(A, U)).filter((U) => Array.isArray(U.values) && U.values.length > 0)) ?? [];
|
|
20450
20450
|
}
|
|
20451
20451
|
return I.length === 0 ? [] : [
|
|
20452
20452
|
{
|
|
@@ -20460,55 +20460,60 @@ function wt(A) {
|
|
|
20460
20460
|
}
|
|
20461
20461
|
];
|
|
20462
20462
|
}
|
|
20463
|
-
function
|
|
20463
|
+
function ce({
|
|
20464
20464
|
originalFilters: A,
|
|
20465
20465
|
globalFilters: I,
|
|
20466
20466
|
schemaNames: O
|
|
20467
20467
|
}) {
|
|
20468
20468
|
if (!I.some(
|
|
20469
|
-
(
|
|
20469
|
+
(N) => O == null ? void 0 : O.includes(N.schemaName)
|
|
20470
20470
|
))
|
|
20471
20471
|
return [...A];
|
|
20472
|
-
const B = /* @__PURE__ */ new Map(), H = (
|
|
20473
|
-
if (!
|
|
20474
|
-
const
|
|
20475
|
-
...
|
|
20476
|
-
values: Re(
|
|
20477
|
-
}
|
|
20478
|
-
if (
|
|
20479
|
-
|
|
20472
|
+
const B = /* @__PURE__ */ new Map(), H = [], P = (N) => {
|
|
20473
|
+
if (!N || !Array.isArray(N.values) || N.values.length === 0) return;
|
|
20474
|
+
const U = {
|
|
20475
|
+
...N,
|
|
20476
|
+
values: Re(N.values)
|
|
20477
|
+
};
|
|
20478
|
+
if (U.option === q0.TimeOfDay && U.operator === ae.Between) {
|
|
20479
|
+
H.push(U);
|
|
20480
20480
|
return;
|
|
20481
20481
|
}
|
|
20482
|
-
U
|
|
20483
|
-
|
|
20484
|
-
|
|
20485
|
-
|
|
20482
|
+
const V = Rt(U), X = B.get(V);
|
|
20483
|
+
if (!X) {
|
|
20484
|
+
B.set(V, U);
|
|
20485
|
+
return;
|
|
20486
|
+
}
|
|
20487
|
+
X.values = [
|
|
20488
|
+
...X.values ?? [],
|
|
20489
|
+
...U.values
|
|
20490
|
+
], B.set(V, X);
|
|
20486
20491
|
};
|
|
20487
|
-
return A.forEach(
|
|
20492
|
+
return A.forEach(P), I.forEach(P), [...Array.from(B.values()), ...H];
|
|
20488
20493
|
}
|
|
20489
|
-
function
|
|
20494
|
+
function se(A, I, O) {
|
|
20490
20495
|
var H;
|
|
20491
20496
|
const J = JSON.parse(JSON.stringify(A)), B = I.filter((P) => {
|
|
20492
|
-
var
|
|
20493
|
-
return (
|
|
20497
|
+
var N;
|
|
20498
|
+
return (N = P.tileIds) == null ? void 0 : N.includes(O);
|
|
20494
20499
|
}).flatMap((P) => wt(P));
|
|
20495
20500
|
return {
|
|
20496
20501
|
...J,
|
|
20497
20502
|
config: {
|
|
20498
20503
|
...J.config,
|
|
20499
|
-
filters:
|
|
20504
|
+
filters: ce({
|
|
20500
20505
|
originalFilters: J.config.filters ?? [],
|
|
20501
20506
|
globalFilters: B ?? [],
|
|
20502
20507
|
schemaNames: J.config.schemaNames
|
|
20503
20508
|
}),
|
|
20504
|
-
joinDatasources: ((H = J.config.joinDatasources) == null ? void 0 : H.map((P,
|
|
20505
|
-
var
|
|
20509
|
+
joinDatasources: ((H = J.config.joinDatasources) == null ? void 0 : H.map((P, N) => {
|
|
20510
|
+
var U;
|
|
20506
20511
|
return {
|
|
20507
20512
|
...P,
|
|
20508
|
-
filters:
|
|
20513
|
+
filters: ce({
|
|
20509
20514
|
originalFilters: P.filters ?? [],
|
|
20510
20515
|
globalFilters: B ?? [],
|
|
20511
|
-
schemaNames: (
|
|
20516
|
+
schemaNames: (U = J.config.joinDatasources) == null ? void 0 : U[N].schemaNames
|
|
20512
20517
|
})
|
|
20513
20518
|
};
|
|
20514
20519
|
})) ?? []
|
|
@@ -20527,37 +20532,37 @@ async function vt(A, I) {
|
|
|
20527
20532
|
}
|
|
20528
20533
|
const ur = async (A, I, O) => {
|
|
20529
20534
|
var s0, D0, f0, p0;
|
|
20530
|
-
const { businessId: J, country: B } = d0($0()), { currentReport: H } =
|
|
20535
|
+
const { businessId: J, country: B } = d0($0()), { currentReport: H } = ue(), {
|
|
20531
20536
|
selectedRestaurantIds: P,
|
|
20532
|
-
selectedWarehouseIds:
|
|
20533
|
-
selectedLocationIds:
|
|
20534
|
-
dateRange:
|
|
20535
|
-
compareDateRange:
|
|
20536
|
-
timeRange:
|
|
20537
|
+
selectedWarehouseIds: N,
|
|
20538
|
+
selectedLocationIds: U,
|
|
20539
|
+
dateRange: q,
|
|
20540
|
+
compareDateRange: V,
|
|
20541
|
+
timeRange: X,
|
|
20537
20542
|
globalFilters: t0,
|
|
20538
20543
|
timezone: Q
|
|
20539
20544
|
} = G0();
|
|
20540
|
-
if (
|
|
20545
|
+
if (U.length === 0)
|
|
20541
20546
|
return null;
|
|
20542
|
-
const z =
|
|
20547
|
+
const z = se(A, t0, O ?? ""), G = {
|
|
20543
20548
|
fetchType: m0.Post,
|
|
20544
20549
|
url: `/${J.value}/postgres-query`,
|
|
20545
20550
|
data: ie.getQueryRequests({
|
|
20546
20551
|
widget: z,
|
|
20547
|
-
dateRange: [
|
|
20548
|
-
compareDateRange:
|
|
20552
|
+
dateRange: [q.startDate, q.endDate],
|
|
20553
|
+
compareDateRange: V.startDate && V.endDate ? [V.startDate, V.endDate] : void 0,
|
|
20549
20554
|
timeRange: [
|
|
20550
|
-
A0().tz(Q).hour(Number((s0 =
|
|
20551
|
-
A0().tz(Q).hour(Number((f0 =
|
|
20555
|
+
A0().tz(Q).hour(Number((s0 = X.start) == null ? void 0 : s0.hour)).minute(Number((D0 = X.start) == null ? void 0 : D0.minute)).toISOString(),
|
|
20556
|
+
A0().tz(Q).hour(Number((f0 = X.end) == null ? void 0 : f0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
|
|
20552
20557
|
],
|
|
20553
20558
|
businessIds: J.value ? [J.value] : [],
|
|
20554
20559
|
restaurantIds: P,
|
|
20555
|
-
warehouseIds:
|
|
20560
|
+
warehouseIds: N,
|
|
20556
20561
|
timezone: Q
|
|
20557
|
-
}).map((
|
|
20562
|
+
}).map((Y, W) => {
|
|
20558
20563
|
const n0 = W === 0 ? 3e3 : 12e3;
|
|
20559
20564
|
return {
|
|
20560
|
-
...
|
|
20565
|
+
...Y,
|
|
20561
20566
|
limit: P.length > 50 ? A.config.limit || n0 : A.config.limit,
|
|
20562
20567
|
skipStringSpaceGrouping: !!(H != null && H.batch),
|
|
20563
20568
|
reportId: H == null ? void 0 : H.id
|
|
@@ -20567,8 +20572,8 @@ const ur = async (A, I, O) => {
|
|
|
20567
20572
|
timeout: 1e3 * 60 * 5,
|
|
20568
20573
|
signal: I
|
|
20569
20574
|
}
|
|
20570
|
-
}, a0 = [() => E0.fetch(
|
|
20571
|
-
P.length < 50 && a0.push(() => E0.fetch(
|
|
20575
|
+
}, a0 = [() => E0.fetch(G)];
|
|
20576
|
+
P.length < 50 && a0.push(() => E0.fetch(G)), a0.push(() => (G.url = G.url.replace("postgres-query", "query"), E0.fetch(G)));
|
|
20572
20577
|
const o0 = await vt(a0, 2e3);
|
|
20573
20578
|
return (await It(Ct, {
|
|
20574
20579
|
responses: o0,
|
|
@@ -20633,33 +20638,33 @@ const sr = async ({
|
|
|
20633
20638
|
timeRange: H,
|
|
20634
20639
|
dateRange: P
|
|
20635
20640
|
}) => {
|
|
20636
|
-
const { businessId:
|
|
20641
|
+
const { businessId: N } = d0($0()), { restaurants: U, warehouses: q, globalFilters: V, timezone: X } = G0(), { currentReport: t0, overviewReport: Q } = ue(), { selectedNavigationTab: z } = be(), { sizes: G } = Fe(), { getTileSorts: a0 } = Me();
|
|
20637
20642
|
let o0 = t0 == null ? void 0 : t0.id, s0 = (t0 == null ? void 0 : t0.tiles) ?? [];
|
|
20638
20643
|
z === "overview" && Q && (o0 = Q == null ? void 0 : Q.id, s0 = (Q == null ? void 0 : Q.tiles) ?? []);
|
|
20639
|
-
const D0 = s0.filter((i0, j) => typeof I == "number" ? j === I : !0).map((i0) =>
|
|
20644
|
+
const D0 = s0.filter((i0, j) => typeof I == "number" ? j === I : !0).map((i0) => se(i0.widget, V, i0.id)), f0 = {
|
|
20640
20645
|
fetchType: m0.Post,
|
|
20641
|
-
url: `/${
|
|
20646
|
+
url: `/${N.value}/file?lang=${H0()}`,
|
|
20642
20647
|
data: {
|
|
20643
20648
|
configs: [
|
|
20644
20649
|
...D0.map((i0, j) => {
|
|
20645
20650
|
var _0, Z, t, u;
|
|
20646
|
-
const r0 =
|
|
20651
|
+
const r0 = G[I ?? j];
|
|
20647
20652
|
return {
|
|
20648
20653
|
requests: ie.getQueryRequests({
|
|
20649
20654
|
widget: i0,
|
|
20650
20655
|
dateRange: [P.startDate, P.endDate],
|
|
20651
20656
|
timeRange: [
|
|
20652
|
-
A0().tz(
|
|
20653
|
-
A0().tz(
|
|
20657
|
+
A0().tz(X).set("hour", Number((_0 = H.start) == null ? void 0 : _0.hour)).set("minute", Number((Z = H.start) == null ? void 0 : Z.minute)).toISOString(),
|
|
20658
|
+
A0().tz(X).set("hour", Number((t = H.end) == null ? void 0 : t.hour)).set("minute", Number((u = H.end) == null ? void 0 : u.minute)).toISOString()
|
|
20654
20659
|
],
|
|
20655
|
-
businessIds:
|
|
20660
|
+
businessIds: N ? [N.value] : [],
|
|
20656
20661
|
restaurantIds: B.filter(
|
|
20657
|
-
(_) =>
|
|
20662
|
+
(_) => U.find(($) => $.id === _)
|
|
20658
20663
|
),
|
|
20659
20664
|
warehouseIds: B.filter(
|
|
20660
|
-
(_) =>
|
|
20665
|
+
(_) => q.find(($) => $.id === _)
|
|
20661
20666
|
),
|
|
20662
|
-
timezone:
|
|
20667
|
+
timezone: X
|
|
20663
20668
|
}),
|
|
20664
20669
|
index: I || j,
|
|
20665
20670
|
drillDimension: null,
|
|
@@ -20680,7 +20685,7 @@ const sr = async ({
|
|
|
20680
20685
|
responseType: "arraybuffer",
|
|
20681
20686
|
timeout: 1e3 * 60 * 60 * 24
|
|
20682
20687
|
}
|
|
20683
|
-
}, { headers: p0, data:
|
|
20688
|
+
}, { headers: p0, data: Y } = await re.rawFetch(f0), W = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), n0 = window.URL.createObjectURL(new Blob([new Uint8Array(Y).buffer])), e0 = document.createElement("a");
|
|
20684
20689
|
e0.href = n0, e0.setAttribute("download", decodeURIComponent(W)), document.body.appendChild(e0), e0.click(), e0.remove();
|
|
20685
20690
|
}, or = async ({
|
|
20686
20691
|
emails: A,
|
|
@@ -20691,15 +20696,15 @@ const sr = async ({
|
|
|
20691
20696
|
orientationTypes: H,
|
|
20692
20697
|
isCombinedLocationLayout: P
|
|
20693
20698
|
}) => {
|
|
20694
|
-
const { businessId:
|
|
20699
|
+
const { businessId: N } = d0($0()), { currentReport: U, overviewReport: q } = ue(), { selectedNavigationTab: V } = be(), { restaurants: X, warehouses: t0, globalFilters: Q, timezone: z } = G0(), { sizes: G } = Fe(), { getTileSorts: a0 } = Me();
|
|
20695
20700
|
if (A.length === 0) {
|
|
20696
20701
|
console.error("No email addresses provided.");
|
|
20697
20702
|
return;
|
|
20698
20703
|
}
|
|
20699
|
-
let o0 = (
|
|
20700
|
-
|
|
20701
|
-
const f0 = D0.map((
|
|
20702
|
-
businessId:
|
|
20704
|
+
let o0 = (U == null ? void 0 : U.id) || "", s0 = (U == null ? void 0 : U.name) || "", D0 = (U == null ? void 0 : U.tiles) ?? [];
|
|
20705
|
+
V === "overview" && q && (o0 = q == null ? void 0 : q.id, s0 = q.name, D0 = (q == null ? void 0 : q.tiles) ?? []);
|
|
20706
|
+
const f0 = D0.map((Y) => se(Y.widget, Q, Y.id)), p0 = {
|
|
20707
|
+
businessId: N.value,
|
|
20703
20708
|
status: Ie.generating,
|
|
20704
20709
|
dateRange: {
|
|
20705
20710
|
start: O.startDate,
|
|
@@ -20707,20 +20712,20 @@ const sr = async ({
|
|
|
20707
20712
|
},
|
|
20708
20713
|
reportName: s0,
|
|
20709
20714
|
emails: A,
|
|
20710
|
-
configs: f0.map((
|
|
20715
|
+
configs: f0.map((Y, W) => {
|
|
20711
20716
|
var e0, i0, j, r0;
|
|
20712
|
-
const n0 =
|
|
20717
|
+
const n0 = G[W];
|
|
20713
20718
|
return {
|
|
20714
20719
|
requests: ie.getQueryRequests({
|
|
20715
|
-
widget:
|
|
20720
|
+
widget: Y,
|
|
20716
20721
|
dateRange: [O.startDate, O.endDate],
|
|
20717
20722
|
timeRange: [
|
|
20718
20723
|
A0().tz(z).hour(Number((e0 = J.start) == null ? void 0 : e0.hour)).minute(Number((i0 = J.start) == null ? void 0 : i0.minute)).toISOString(),
|
|
20719
20724
|
A0().tz(z).hour(Number((j = J.end) == null ? void 0 : j.hour)).minute(Number((r0 = J.end) == null ? void 0 : r0.minute)).endOf("minutes").toISOString()
|
|
20720
20725
|
],
|
|
20721
|
-
businessIds:
|
|
20726
|
+
businessIds: N ? [N.value] : [],
|
|
20722
20727
|
restaurantIds: B.filter(
|
|
20723
|
-
(_0) =>
|
|
20728
|
+
(_0) => X.find((Z) => Z.id === _0)
|
|
20724
20729
|
),
|
|
20725
20730
|
warehouseIds: B.filter(
|
|
20726
20731
|
(_0) => t0.find((Z) => Z.id === _0)
|
|
@@ -20729,10 +20734,10 @@ const sr = async ({
|
|
|
20729
20734
|
}),
|
|
20730
20735
|
index: W,
|
|
20731
20736
|
drillDimension: null,
|
|
20732
|
-
chartWidth: (n0 == null ? void 0 : n0.width) ??
|
|
20733
|
-
chartHeight: (n0 == null ? void 0 : n0.height) ??
|
|
20734
|
-
...xe(
|
|
20735
|
-
...Le(
|
|
20737
|
+
chartWidth: (n0 == null ? void 0 : n0.width) ?? Y.config.chartWidth,
|
|
20738
|
+
chartHeight: (n0 == null ? void 0 : n0.height) ?? Y.config.chartHeight,
|
|
20739
|
+
...xe(Y),
|
|
20740
|
+
...Le(Y),
|
|
20736
20741
|
globalSorts: a0(W)
|
|
20737
20742
|
};
|
|
20738
20743
|
}),
|
|
@@ -20743,7 +20748,7 @@ const sr = async ({
|
|
|
20743
20748
|
};
|
|
20744
20749
|
await re.fetch({
|
|
20745
20750
|
fetchType: m0.Post,
|
|
20746
|
-
url: `/${
|
|
20751
|
+
url: `/${N.value}/reports/email?lang=${H0()}`,
|
|
20747
20752
|
data: p0,
|
|
20748
20753
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20749
20754
|
});
|
|
@@ -20769,12 +20774,12 @@ const sr = async ({
|
|
|
20769
20774
|
data: { email: A }
|
|
20770
20775
|
});
|
|
20771
20776
|
};
|
|
20772
|
-
let
|
|
20777
|
+
let V0;
|
|
20773
20778
|
const Bt = new Uint8Array(16);
|
|
20774
20779
|
function Pt() {
|
|
20775
|
-
if (!
|
|
20780
|
+
if (!V0 && (V0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !V0))
|
|
20776
20781
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
20777
|
-
return
|
|
20782
|
+
return V0(Bt);
|
|
20778
20783
|
}
|
|
20779
20784
|
const y0 = [];
|
|
20780
20785
|
for (let A = 0; A < 256; ++A)
|
|
@@ -20782,12 +20787,12 @@ for (let A = 0; A < 256; ++A)
|
|
|
20782
20787
|
function Jt(A, I = 0) {
|
|
20783
20788
|
return y0[A[I + 0]] + y0[A[I + 1]] + y0[A[I + 2]] + y0[A[I + 3]] + "-" + y0[A[I + 4]] + y0[A[I + 5]] + "-" + y0[A[I + 6]] + y0[A[I + 7]] + "-" + y0[A[I + 8]] + y0[A[I + 9]] + "-" + y0[A[I + 10]] + y0[A[I + 11]] + y0[A[I + 12]] + y0[A[I + 13]] + y0[A[I + 14]] + y0[A[I + 15]];
|
|
20784
20789
|
}
|
|
20785
|
-
const Ht = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto),
|
|
20790
|
+
const Ht = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), fe = {
|
|
20786
20791
|
randomUUID: Ht
|
|
20787
20792
|
};
|
|
20788
20793
|
function dr(A, I, O) {
|
|
20789
|
-
if (
|
|
20790
|
-
return
|
|
20794
|
+
if (fe.randomUUID && !I && !A)
|
|
20795
|
+
return fe.randomUUID();
|
|
20791
20796
|
A = A || {};
|
|
20792
20797
|
const J = A.random || (A.rng || Pt)();
|
|
20793
20798
|
if (J[6] = J[6] & 15 | 64, J[8] = J[8] & 63 | 128, I) {
|
|
@@ -20798,12 +20803,12 @@ function dr(A, I, O) {
|
|
|
20798
20803
|
}
|
|
20799
20804
|
return Jt(J);
|
|
20800
20805
|
}
|
|
20801
|
-
const
|
|
20806
|
+
const pe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).locale(I).format("h:mm A"), Nt = (A, I) => {
|
|
20802
20807
|
const O = A0().set("hour", A.hour).set("minute", A.minute);
|
|
20803
20808
|
return A0().set("hour", I.hour).set("minute", I.minute) < O ? "+1" : "";
|
|
20804
|
-
}, kt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Ut = { class: "text-fm-color-typo-primary" }, qt = { class: "text-fm-color-typo-secondary" }, Qt = { class: "fm-typo-en-body-lg-600 mb-8" }, Xt = { class: "flex items-center justify-center w-full" }, Vt = { class: "fm-typo-en-body-lg-600 mb-8" }, Yt = { class: "flex items-center justify-center" }, Gt = { class: "flex flex-row mb-4 px-4 gap-2" }, cr = /* @__PURE__ */
|
|
20809
|
+
}, kt = { class: "px-24 py-16 rounded-lg shadow-light-300" }, Ut = { class: "text-fm-color-typo-primary" }, qt = { class: "text-fm-color-typo-secondary" }, Qt = { class: "fm-typo-en-body-lg-600 mb-8" }, Xt = { class: "flex items-center justify-center w-full" }, Vt = { class: "fm-typo-en-body-lg-600 mb-8" }, Yt = { class: "flex items-center justify-center" }, Gt = { class: "flex flex-row mb-4 px-4 gap-2" }, cr = /* @__PURE__ */ ye({
|
|
20805
20810
|
__name: "TimeRangeSelect",
|
|
20806
|
-
props: /* @__PURE__ */
|
|
20811
|
+
props: /* @__PURE__ */ Y0({
|
|
20807
20812
|
defaultDateRange: {
|
|
20808
20813
|
type: Array,
|
|
20809
20814
|
default: () => [
|
|
@@ -20840,32 +20845,32 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20840
20845
|
},
|
|
20841
20846
|
selectTimeDefaultModifiers: {}
|
|
20842
20847
|
}),
|
|
20843
|
-
emits: /* @__PURE__ */
|
|
20848
|
+
emits: /* @__PURE__ */ Y0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
20844
20849
|
setup(A, { emit: I }) {
|
|
20845
20850
|
const { t: O, locale: J } = ve(), B = te(A, "timeRange"), H = I, P = te(A, "selectTimeDefault");
|
|
20846
|
-
function
|
|
20847
|
-
z && (B.value = z, H("update", B.value)),
|
|
20851
|
+
function N(z) {
|
|
20852
|
+
z && (B.value = z, H("update", B.value)), X.value = !1;
|
|
20848
20853
|
}
|
|
20849
|
-
function
|
|
20850
|
-
const
|
|
20854
|
+
function U(z) {
|
|
20855
|
+
const G = z.split(":"), a0 = A0().set("hour", Number(G[0])).set("minute", Number(G[1]));
|
|
20851
20856
|
return {
|
|
20852
20857
|
hours: Number(a0.format("h")),
|
|
20853
20858
|
minutes: Number(a0.format("m")),
|
|
20854
20859
|
period: a0.format("A")
|
|
20855
20860
|
};
|
|
20856
20861
|
}
|
|
20857
|
-
const
|
|
20858
|
-
function
|
|
20859
|
-
|
|
20862
|
+
const q = l0(JSON.parse(JSON.stringify(B.value)));
|
|
20863
|
+
function V(z, G) {
|
|
20864
|
+
q.value.start = JSON.parse(JSON.stringify(z)), q.value.end = JSON.parse(JSON.stringify(G));
|
|
20860
20865
|
}
|
|
20861
20866
|
z0(
|
|
20862
20867
|
() => [B.value, A.defaultDateRange],
|
|
20863
20868
|
() => {
|
|
20864
20869
|
if (B.value) {
|
|
20865
20870
|
const z = A.defaultDateRange.findIndex(
|
|
20866
|
-
(
|
|
20871
|
+
(G) => {
|
|
20867
20872
|
var a0, o0, s0, D0;
|
|
20868
|
-
return
|
|
20873
|
+
return G.startTime.hour === ((a0 = B.value.start) == null ? void 0 : a0.hour) && G.startTime.minute === ((o0 = B.value.start) == null ? void 0 : o0.minute) && G.endTime.hour === ((s0 = B.value.end) == null ? void 0 : s0.hour) && G.endTime.minute === ((D0 = B.value.end) == null ? void 0 : D0.minute);
|
|
20869
20874
|
}
|
|
20870
20875
|
) + 1;
|
|
20871
20876
|
z !== 0 ? P.value = z : P.value = A.defaultDateRange.length + 1;
|
|
@@ -20873,7 +20878,7 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20873
20878
|
},
|
|
20874
20879
|
{ deep: !0, immediate: !0 }
|
|
20875
20880
|
);
|
|
20876
|
-
const
|
|
20881
|
+
const X = l0(!1);
|
|
20877
20882
|
function t0(z) {
|
|
20878
20883
|
H("chip-closed", z);
|
|
20879
20884
|
}
|
|
@@ -20882,20 +20887,20 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20882
20887
|
endTime: B.value.end,
|
|
20883
20888
|
locale: J.value
|
|
20884
20889
|
}));
|
|
20885
|
-
return (z,
|
|
20886
|
-
const a0 = v0("FmChip"), o0 = v0("FmRadio"), s0 = v0("FmMenuDivider"), D0 = v0("FmRadioGroup"), f0 = v0("FmTimeInput"), p0 = v0("FmButton"),
|
|
20890
|
+
return (z, G) => {
|
|
20891
|
+
const a0 = v0("FmChip"), o0 = v0("FmRadio"), s0 = v0("FmMenuDivider"), D0 = v0("FmRadioGroup"), f0 = v0("FmTimeInput"), p0 = v0("FmButton"), Y = v0("FmPopover");
|
|
20887
20892
|
return U0(), W0("div", null, [
|
|
20888
|
-
b0(
|
|
20889
|
-
"show-popover":
|
|
20893
|
+
b0(Y, {
|
|
20894
|
+
"show-popover": X.value,
|
|
20890
20895
|
placement: "bottom",
|
|
20891
|
-
onPopoverChanged:
|
|
20896
|
+
onPopoverChanged: G[6] || (G[6] = (W) => X.value = W)
|
|
20892
20897
|
}, {
|
|
20893
20898
|
"popover-button": J0(() => [
|
|
20894
20899
|
b0(Xe, {
|
|
20895
20900
|
"left-icon": A.label ? "filter_alt" : "schedule",
|
|
20896
20901
|
label: Q.value,
|
|
20897
20902
|
removable: A.removable,
|
|
20898
|
-
onChipClosed:
|
|
20903
|
+
onChipClosed: G[0] || (G[0] = (W) => t0(!0))
|
|
20899
20904
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
20900
20905
|
]),
|
|
20901
20906
|
default: J0(() => {
|
|
@@ -20904,18 +20909,18 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20904
20909
|
w0("div", kt, [
|
|
20905
20910
|
b0(D0, {
|
|
20906
20911
|
modelValue: P.value,
|
|
20907
|
-
"onUpdate:modelValue":
|
|
20912
|
+
"onUpdate:modelValue": G[1] || (G[1] = (j) => P.value = j)
|
|
20908
20913
|
}, {
|
|
20909
20914
|
default: J0(() => [
|
|
20910
|
-
(U0(!0), W0(
|
|
20915
|
+
(U0(!0), W0(oe, null, Je(A.defaultDateRange, (j, r0) => (U0(), me(o0, {
|
|
20911
20916
|
key: `range_${r0}`,
|
|
20912
20917
|
value: r0 + 1,
|
|
20913
20918
|
label: j.name,
|
|
20914
|
-
onClick: (_0) =>
|
|
20919
|
+
onClick: (_0) => V(j.startTime, j.endTime)
|
|
20915
20920
|
}, {
|
|
20916
20921
|
label: J0(() => [
|
|
20917
20922
|
w0("p", Ut, [
|
|
20918
|
-
|
|
20923
|
+
ge(P0(j.name) + " ", 1),
|
|
20919
20924
|
He(b0(a0, {
|
|
20920
20925
|
label: S0(O)("report.common.default"),
|
|
20921
20926
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
@@ -20924,7 +20929,7 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20924
20929
|
[Ne, j.isDefault]
|
|
20925
20930
|
])
|
|
20926
20931
|
]),
|
|
20927
|
-
w0("p", qt, P0(S0(
|
|
20932
|
+
w0("p", qt, P0(S0(pe)(j.startTime, S0(H0)())) + " - " + P0(S0(pe)(j.endTime, S0(H0)())) + " " + P0(S0(Nt)(j.startTime, j.endTime)), 1)
|
|
20928
20933
|
]),
|
|
20929
20934
|
_: 2
|
|
20930
20935
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
@@ -20937,17 +20942,17 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20937
20942
|
]),
|
|
20938
20943
|
_: 1
|
|
20939
20944
|
}, 8, ["modelValue"]),
|
|
20940
|
-
P.value === A.defaultDateRange.length + 1 ? (U0(), W0(
|
|
20945
|
+
P.value === A.defaultDateRange.length + 1 ? (U0(), W0(oe, { key: 0 }, [
|
|
20941
20946
|
w0("p", Qt, P0(S0(O)("report.date.startingTime")), 1),
|
|
20942
20947
|
w0("div", Xt, [
|
|
20943
20948
|
b0(f0, {
|
|
20944
|
-
"model-value":
|
|
20945
|
-
"onUpdate:modelValue":
|
|
20946
|
-
if (
|
|
20949
|
+
"model-value": U(`${(W = q.value.start) == null ? void 0 : W.hour}:${(n0 = q.value.start) == null ? void 0 : n0.minute}`),
|
|
20950
|
+
"onUpdate:modelValue": G[2] || (G[2] = (j) => {
|
|
20951
|
+
if (q.value.start) {
|
|
20947
20952
|
const r0 = S0(A0)(`${j.hours}:${j.minutes} ${j.period}`, "h:m A").locale(
|
|
20948
20953
|
S0(H0)()
|
|
20949
20954
|
);
|
|
20950
|
-
|
|
20955
|
+
q.value.start.hour = r0.get("hour"), q.value.start.minute = r0.get("minute");
|
|
20951
20956
|
}
|
|
20952
20957
|
})
|
|
20953
20958
|
}, null, 8, ["model-value"])
|
|
@@ -20955,28 +20960,28 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20955
20960
|
w0("p", Vt, P0(S0(O)("report.date.endingTime")), 1),
|
|
20956
20961
|
w0("div", Yt, [
|
|
20957
20962
|
b0(f0, {
|
|
20958
|
-
"model-value":
|
|
20959
|
-
"onUpdate:modelValue":
|
|
20960
|
-
if (
|
|
20963
|
+
"model-value": U(`${(e0 = q.value.end) == null ? void 0 : e0.hour}:${(i0 = q.value.end) == null ? void 0 : i0.minute}`),
|
|
20964
|
+
"onUpdate:modelValue": G[3] || (G[3] = (j) => {
|
|
20965
|
+
if (q.value.end) {
|
|
20961
20966
|
const r0 = S0(A0)(`${j.hours}:${j.minutes} ${j.period}`, "h:m A").locale(
|
|
20962
20967
|
S0(H0)()
|
|
20963
20968
|
);
|
|
20964
|
-
|
|
20969
|
+
q.value.end.hour = r0.get("hour"), q.value.end.minute = r0.get("minute");
|
|
20965
20970
|
}
|
|
20966
20971
|
})
|
|
20967
20972
|
}, null, 8, ["model-value"])
|
|
20968
20973
|
])
|
|
20969
20974
|
], 64)) : Pe("", !0),
|
|
20970
20975
|
w0("div", Gt, [
|
|
20971
|
-
|
|
20976
|
+
G[7] || (G[7] = w0("div", { class: "grow" }, null, -1)),
|
|
20972
20977
|
b0(p0, {
|
|
20973
20978
|
label: S0(O)("report.common.cancel"),
|
|
20974
20979
|
variant: "tertiary",
|
|
20975
|
-
onClick:
|
|
20980
|
+
onClick: G[4] || (G[4] = (j) => X.value = !1)
|
|
20976
20981
|
}, null, 8, ["label"]),
|
|
20977
20982
|
b0(p0, {
|
|
20978
20983
|
label: S0(O)("report.common.apply"),
|
|
20979
|
-
onClick:
|
|
20984
|
+
onClick: G[5] || (G[5] = () => N(JSON.parse(JSON.stringify(q.value))))
|
|
20980
20985
|
}, null, 8, ["label"])
|
|
20981
20986
|
])
|
|
20982
20987
|
])
|
|
@@ -20987,9 +20992,9 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
20987
20992
|
]);
|
|
20988
20993
|
};
|
|
20989
20994
|
}
|
|
20990
|
-
}), fr = /* @__PURE__ */
|
|
20995
|
+
}), fr = /* @__PURE__ */ ye({
|
|
20991
20996
|
__name: "BaseDialog",
|
|
20992
|
-
props: /* @__PURE__ */
|
|
20997
|
+
props: /* @__PURE__ */ Y0({
|
|
20993
20998
|
title: {
|
|
20994
20999
|
type: String,
|
|
20995
21000
|
default: "Title"
|
|
@@ -21006,35 +21011,35 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
21006
21011
|
modelValue: { type: Boolean, required: !0 },
|
|
21007
21012
|
modelModifiers: {}
|
|
21008
21013
|
}),
|
|
21009
|
-
emits: /* @__PURE__ */
|
|
21014
|
+
emits: /* @__PURE__ */ Y0(["confirm"], ["update:modelValue"]),
|
|
21010
21015
|
setup(A, { emit: I }) {
|
|
21011
21016
|
const O = te(A, "modelValue"), J = A, B = I;
|
|
21012
21017
|
return z0(O, () => {
|
|
21013
21018
|
O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
21014
21019
|
}), (H, P) => {
|
|
21015
|
-
const
|
|
21016
|
-
return U0(),
|
|
21020
|
+
const N = v0("FmButton"), U = v0("FmDialog");
|
|
21021
|
+
return U0(), me(U, {
|
|
21017
21022
|
modelValue: O.value,
|
|
21018
|
-
"onUpdate:modelValue": P[2] || (P[2] = (
|
|
21023
|
+
"onUpdate:modelValue": P[2] || (P[2] = (q) => O.value = q),
|
|
21019
21024
|
overlay: ""
|
|
21020
21025
|
}, {
|
|
21021
21026
|
"dialog-header": J0(() => [
|
|
21022
|
-
|
|
21027
|
+
ge(P0(J.title), 1)
|
|
21023
21028
|
]),
|
|
21024
21029
|
default: J0(() => [
|
|
21025
21030
|
ke(H.$slots, "content")
|
|
21026
21031
|
]),
|
|
21027
21032
|
"dialog-footer": J0(() => [
|
|
21028
21033
|
P[3] || (P[3] = w0("div", { class: "grow" }, null, -1)),
|
|
21029
|
-
b0(
|
|
21034
|
+
b0(N, {
|
|
21030
21035
|
label: J.secondaryButtonLabel,
|
|
21031
21036
|
variant: "tertiary",
|
|
21032
|
-
onClick: P[0] || (P[0] = (
|
|
21037
|
+
onClick: P[0] || (P[0] = (q) => O.value = !1)
|
|
21033
21038
|
}, null, 8, ["label"]),
|
|
21034
|
-
b0(
|
|
21039
|
+
b0(N, {
|
|
21035
21040
|
label: J.primaryButtonLabel,
|
|
21036
21041
|
variant: "primary",
|
|
21037
|
-
onClick: P[1] || (P[1] = (
|
|
21042
|
+
onClick: P[1] || (P[1] = (q) => B("confirm"))
|
|
21038
21043
|
}, null, 8, ["label"])
|
|
21039
21044
|
]),
|
|
21040
21045
|
_: 3
|
|
@@ -21043,17 +21048,17 @@ const fe = (A, I = "en") => A0().set("hour", A.hour).set("minute", A.minute).loc
|
|
|
21043
21048
|
}
|
|
21044
21049
|
});
|
|
21045
21050
|
export {
|
|
21046
|
-
|
|
21051
|
+
ae as C,
|
|
21047
21052
|
it as D,
|
|
21048
21053
|
at as P,
|
|
21049
21054
|
st as R,
|
|
21050
21055
|
nt as S,
|
|
21051
21056
|
ut as W,
|
|
21052
21057
|
cr as _,
|
|
21053
|
-
|
|
21058
|
+
ue as a,
|
|
21054
21059
|
ht as b,
|
|
21055
21060
|
Ce as c,
|
|
21056
|
-
|
|
21061
|
+
q0 as d,
|
|
21057
21062
|
fr as e,
|
|
21058
21063
|
Fe as f,
|
|
21059
21064
|
Me as g,
|
|
@@ -21069,7 +21074,7 @@ export {
|
|
|
21069
21074
|
ur as q,
|
|
21070
21075
|
lr as r,
|
|
21071
21076
|
ar as s,
|
|
21072
|
-
|
|
21077
|
+
pe as t,
|
|
21073
21078
|
be as u,
|
|
21074
21079
|
dr as v,
|
|
21075
21080
|
or as w
|