@feedmepos/mf-report 5.22.23 → 5.22.24
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-Zn-puM1b.js → App-vJDVOth7.js} +5 -5
- package/dist/{BaseDialog.vue_vue_type_script_setup_true_lang-CpoV8rC8.js → BaseDialog.vue_vue_type_script_setup_true_lang-CuDpyny4.js} +636 -623
- package/dist/{DateRangeSelect.vue_vue_type_script_setup_true_lang-B5vOl_Qi.js → DateRangeSelect.vue_vue_type_script_setup_true_lang-DFIMIp0w.js} +2 -2
- package/dist/{Default.vue_vue_type_script_setup_true_lang-B4qeIU-5.js → Default.vue_vue_type_script_setup_true_lang-yPwz9xco.js} +2 -2
- package/dist/{FilterSelector.vue_vue_type_script_setup_true_lang-pbAzVGA4.js → FilterSelector.vue_vue_type_script_setup_true_lang-BcODTyl7.js} +6 -6
- package/dist/InsightView-DNa3QEKr.js +670 -0
- package/dist/{Integration-DSpComdb.js → Integration-B8bI4Prk.js} +4 -4
- package/dist/{Integrations-DWsnA_ad.js → Integrations-BlVASP74.js} +4 -4
- package/dist/Layout-DW47sZuO.js +29 -0
- package/dist/{MenuTab.vue_vue_type_script_setup_true_lang-Dg6agPDE.js → MenuTab.vue_vue_type_script_setup_true_lang-rtidppHZ.js} +5 -5
- package/dist/{NavigationTab.vue_vue_type_script_setup_true_lang-CJXAXP9k.js → NavigationTab.vue_vue_type_script_setup_true_lang-Bzc3bo-E.js} +5 -5
- package/dist/{NoData.vue_vue_type_script_setup_true_lang-BeANsyve.js → NoData.vue_vue_type_script_setup_true_lang-DaoGO26M.js} +1 -1
- package/dist/NoPermission.vue_vue_type_script_setup_true_lang-G3Os8ZFD.js +25 -0
- package/dist/OverviewView-qupMQGx3.js +67 -0
- package/dist/{Report-C3KsOYeU.js → Report-BZXMhOBE.js} +4 -4
- package/dist/{ReportEditor-CtgWwf3_.js → ReportEditor-gtLvhWsX.js} +6 -6
- package/dist/{ReportView-DfU2sOC5.js → ReportView-OKevCUGl.js} +8 -8
- package/dist/{SelectComponent.vue_vue_type_script_setup_true_lang--GXm-kRc.js → SelectComponent.vue_vue_type_script_setup_true_lang-CPVvQ97s.js} +1 -1
- package/dist/Setting-CwZBJq6_.js +328 -0
- package/dist/{TileEditor-RhXE0gx2.js → TileEditor-DC0MmQ9i.js} +8 -8
- package/dist/{TransitionFade-rhvb0xo6.js → TransitionFade-Wch1EA34.js} +6 -6
- package/dist/{app-Bk5L2zfK.js → app--_wgvJ4h.js} +15 -11
- package/dist/app.js +1 -1
- package/dist/{useRestaurantPermission-CUzN375q.js → useRestaurantPermission-owy2OAuf.js} +1 -1
- package/dist/{vue-i18n-BGJaPUEy.js → vue-i18n-CsqQ6wm5.js} +1010 -1009
- package/package.json +2 -2
- package/dist/InsightView-CmNgn19R.js +0 -662
- package/dist/Layout-DnvPqfQI.js +0 -19
- package/dist/OverviewView-B_x6fZFf.js +0 -62
- package/dist/Setting-B2oXF461.js +0 -324
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { a as $0, F as m0, l as
|
|
2
|
-
import { storeToRefs as d0, defineStore as
|
|
3
|
-
import { ref as _0, computed as
|
|
4
|
-
import { useSnackbar as
|
|
5
|
-
import { useCoreStore as
|
|
6
|
-
import { d as
|
|
7
|
-
import { useRouter as
|
|
8
|
-
import { c as
|
|
9
|
-
function
|
|
1
|
+
import { a as $0, F as m0, l as E0, m as we, c as ye, k as ee, n as b0, A as te, t as J0, b as z0, d as ve, r as ne, u as Be } from "./vue-i18n-CsqQ6wm5.js";
|
|
2
|
+
import { storeToRefs as d0, defineStore as X0 } from "pinia";
|
|
3
|
+
import { ref as _0, computed as A0, watch as W0, h as Pe, defineComponent as me, mergeModels as G0, useModel as re, resolveComponent as v0, createElementBlock as j0, openBlock as q0, createVNode as I0, withCtx as H0, createElementVNode as w0, createCommentVNode as Je, Fragment as le, renderList as He, createBlock as ge, createTextVNode as he, withDirectives as Ne, toDisplayString as P0, unref as S0, vShow as ke, renderSlot as Ue } from "vue";
|
|
4
|
+
import { useSnackbar as Se, components as qe } from "@feedmepos/ui-library";
|
|
5
|
+
import { useCoreStore as ie, detectLocale as N0 } from "@feedmepos/mf-common";
|
|
6
|
+
import { d as T0 } from "./app--_wgvJ4h.js";
|
|
7
|
+
import { useRouter as Qe } from "vue-router";
|
|
8
|
+
import { c as Xe, a as Ve } from "./DateRangeSelect.vue_vue_type_script_setup_true_lang-DFIMIp0w.js";
|
|
9
|
+
function Ae(E) {
|
|
10
10
|
throw new Error('Could not dynamically require "' + E + '". 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(E) {
|
|
14
14
|
var I = typeof globalThis < "u" ? globalThis : window, O = Object.create(I);
|
|
15
15
|
O.scheduleImmediate = typeof setImmediate < "u" ? function(N) {
|
|
@@ -23,7 +23,7 @@ var Ae = {};
|
|
|
23
23
|
} catch {
|
|
24
24
|
}
|
|
25
25
|
if (P) {
|
|
26
|
-
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ :
|
|
26
|
+
var B = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Ae)("url");
|
|
27
27
|
Object.defineProperty(O, "location", {
|
|
28
28
|
value: {
|
|
29
29
|
get href() {
|
|
@@ -37,12 +37,12 @@ var Ae = {};
|
|
|
37
37
|
function N() {
|
|
38
38
|
try {
|
|
39
39
|
throw new Error();
|
|
40
|
-
} catch (
|
|
41
|
-
var
|
|
40
|
+
} catch (X) {
|
|
41
|
+
var Q = X.stack, q = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), H = null;
|
|
42
42
|
do {
|
|
43
|
-
var
|
|
44
|
-
|
|
45
|
-
} while (
|
|
43
|
+
var Y = q.exec(Q);
|
|
44
|
+
Y != null && (H = Y);
|
|
45
|
+
} while (Y != null);
|
|
46
46
|
return H[1];
|
|
47
47
|
}
|
|
48
48
|
}
|
|
@@ -54,11 +54,11 @@ var Ae = {};
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
});
|
|
57
|
-
}(), O.dartDeferredLibraryLoader = function(N, J,
|
|
57
|
+
}(), O.dartDeferredLibraryLoader = function(N, J, Q) {
|
|
58
58
|
try {
|
|
59
59
|
load(N), J();
|
|
60
60
|
} catch (q) {
|
|
61
|
-
|
|
61
|
+
Q(q);
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
64
|
}
|
|
@@ -69,7 +69,7 @@ var Ae = {};
|
|
|
69
69
|
e[a] = r[a];
|
|
70
70
|
}
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function Q(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]);
|
|
@@ -97,7 +97,7 @@ var Ae = {};
|
|
|
97
97
|
}
|
|
98
98
|
return !1;
|
|
99
99
|
}();
|
|
100
|
-
function
|
|
100
|
+
function Y(r, e) {
|
|
101
101
|
if (r.prototype.constructor = r, r.prototype["$is" + r.name] = r, e != null) {
|
|
102
102
|
if (H) {
|
|
103
103
|
r.prototype.__proto__ = e.prototype;
|
|
@@ -107,17 +107,17 @@ var Ae = {};
|
|
|
107
107
|
J(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
|
+
Y(e[n], r);
|
|
113
113
|
}
|
|
114
|
-
function
|
|
114
|
+
function t0(r, e) {
|
|
115
115
|
q(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
116
116
|
}
|
|
117
117
|
function G(r, e) {
|
|
118
|
-
|
|
118
|
+
Q(e.prototype, r.prototype), r.prototype.constructor = r;
|
|
119
119
|
}
|
|
120
|
-
function
|
|
120
|
+
function j(r, e, n, i) {
|
|
121
121
|
var a = r;
|
|
122
122
|
r[e] = a, r[n] = function() {
|
|
123
123
|
r[n] = function() {
|
|
@@ -134,7 +134,7 @@ var Ae = {};
|
|
|
134
134
|
return s;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
137
|
-
function
|
|
137
|
+
function k(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() {
|
|
@@ -142,7 +142,7 @@ var Ae = {};
|
|
|
142
142
|
}, r[e];
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
|
-
function
|
|
145
|
+
function K(r, e, n, i) {
|
|
146
146
|
var a = r;
|
|
147
147
|
r[e] = a, r[n] = function() {
|
|
148
148
|
if (r[e] === a) {
|
|
@@ -155,10 +155,10 @@ var Ae = {};
|
|
|
155
155
|
}, o;
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
|
-
function
|
|
158
|
+
function a0(r) {
|
|
159
159
|
return r.immutable$list = Array, r.fixed$length = Array, r;
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function n0(r) {
|
|
162
162
|
return r;
|
|
163
163
|
}
|
|
164
164
|
function l0(r) {
|
|
@@ -183,7 +183,7 @@ var Ae = {};
|
|
|
183
183
|
function z(r, e, n, i, a, s, o, l, D, d) {
|
|
184
184
|
return typeof l == "number" && (l += V), { co: r, iS: e, iI: n, rC: i, dV: a, cs: s, fs: o, fT: l, aI: D || 0, nDA: d };
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function u0(r, e, n, i, a, s, o, l) {
|
|
187
187
|
var D = z(r, !0, !1, n, i, a, s, o, l, !1), d = p0(D);
|
|
188
188
|
r[e] = d;
|
|
189
189
|
}
|
|
@@ -192,7 +192,7 @@ var Ae = {};
|
|
|
192
192
|
var c = z(r, !1, n, i, a, s, o, l, D, !!d), p = c0(n, c);
|
|
193
193
|
r[e] = p;
|
|
194
194
|
}
|
|
195
|
-
function
|
|
195
|
+
function s0(r) {
|
|
196
196
|
var e = b.interceptorsByTag;
|
|
197
197
|
if (!e) {
|
|
198
198
|
b.interceptorsByTag = r;
|
|
@@ -208,24 +208,24 @@ var Ae = {};
|
|
|
208
208
|
}
|
|
209
209
|
J(r, e);
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function i0(r) {
|
|
212
212
|
var e = b.types, n = e.length;
|
|
213
213
|
return e.push.apply(e, r), n;
|
|
214
214
|
}
|
|
215
215
|
function D0(r, e) {
|
|
216
216
|
return J(e, r), r;
|
|
217
217
|
}
|
|
218
|
-
var
|
|
218
|
+
var e0 = function() {
|
|
219
219
|
var r = function(n, i, a, s, o) {
|
|
220
220
|
return function(l, D, d, c) {
|
|
221
221
|
return r0(l, D, n, i, a, s, [d], c, o, !1);
|
|
222
222
|
};
|
|
223
223
|
}, e = function(n, i, a, s) {
|
|
224
224
|
return function(o, l, D, d) {
|
|
225
|
-
return
|
|
225
|
+
return u0(o, l, n, i, a, [D], d, s);
|
|
226
226
|
};
|
|
227
227
|
};
|
|
228
|
-
return { inherit:
|
|
228
|
+
return { inherit: Y, inheritMany: X, mixin: t0, mixinHard: G, installStaticTearOff: u0, installInstanceTearOff: r0, _instance_0u: r(0, 0, null, ["call$0"], 0), _instance_1u: r(0, 1, null, ["call$1"], 0), _instance_2u: r(0, 2, null, ["call$2"], 0), _instance_0i: r(1, 0, null, ["call$0"], 0), _instance_1i: r(1, 1, null, ["call$1"], 0), _instance_2i: r(1, 2, null, ["call$2"], 0), _static_0: e(0, null, ["call$0"], 0), _static_1: e(1, null, ["call$1"], 0), _static_2: e(2, null, ["call$2"], 0), makeConstList: a0, lazy: k, lazyFinal: K, lazyOld: j, updateHolder: D0, convertToFastObject: n0, updateTypes: i0, setOrUpdateInterceptorsByTag: s0, setOrUpdateLeafTags: W };
|
|
229
229
|
}(), t = {
|
|
230
230
|
JS_CONST: function() {
|
|
231
231
|
},
|
|
@@ -272,8 +272,8 @@ var Ae = {};
|
|
|
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, A = 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, A = 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), U = x.$index(r, A);
|
|
276
|
+
if (i.call$2(R, L) > 0 && (a = L, L = R, R = a), i.call$2(v, U) > 0 && (a = U, U = 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, U) > 0 && (a = U, U = L, L = a), i.call$2(L, w) > 0 && (a = w, w = L, L = a), i.call$2(v, U) > 0 && (a = U, U = v, v = a), x.$indexSet(r, h, R), x.$indexSet(r, C, w), x.$indexSet(r, A, U), 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 Ae = {};
|
|
|
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, A, C, F, M, x, R, L, w, v,
|
|
1814
|
+
var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U, Z;
|
|
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 (A = 0; A < d; ++A)
|
|
@@ -1825,14 +1825,14 @@ var Ae = {};
|
|
|
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 || (U = F[L], L += 3, v < U))
|
|
1829
1829
|
return !1;
|
|
1830
|
-
if (
|
|
1831
|
-
if (
|
|
1830
|
+
if (Z = F[L - 2], U < v) {
|
|
1831
|
+
if (Z)
|
|
1832
1832
|
return !1;
|
|
1833
1833
|
continue;
|
|
1834
1834
|
}
|
|
1835
|
-
if (C = M[w + 1],
|
|
1835
|
+
if (C = M[w + 1], Z && !C || (C = F[L - 1], !t._isSubtype(r, M[w + 2], a, C, n)))
|
|
1836
1836
|
return !1;
|
|
1837
1837
|
break;
|
|
1838
1838
|
}
|
|
@@ -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, A, 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, A, 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_ZR3, 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 = o0._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), o0 = o0._as(r.$index(0, "aiKeywords")), o0 = o0 == null ? F : u.cast$1$0$ax(o0, f.String), o0 == null && (o0 = t._setArrayType([], f.JSArray_String)), A = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(A, o0, 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, A, 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_ZR3, 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"), U = t.EnumByName_byName(_.List_ytA, v.$index(0, "type")), Z = v.$index(0, "table"), f0 = v.$index(0, "field"), g0 = v.$index(0, "dataset"), o0 = f.nullable_List_dynamic, h0 = o0._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 = o0._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), o0 = o0._as(r.$index(0, "aiKeywords")), o0 = o0 == null ? F : u.cast$1$0$ax(o0, f.String), o0 == null && (o0 = t._setArrayType([], f.JSArray_String)), A = r.$index(0, "aiCategory"), C = r.$index(0, "aiPriority"), C == null && (C = 3), t.Schema$(A, o0, C, p, i, M, m, y, d, h, D, g, o, l, L, x, s, a, R, c, n, new t.Source(U, Z, f0, 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);
|
|
@@ -9070,10 +9070,10 @@ Arguments: [` + D + "]";
|
|
|
9070
9070
|
$signature: 1
|
|
9071
9071
|
}, t.flattenItemSchema_closure.prototype = {
|
|
9072
9072
|
call$1(r) {
|
|
9073
|
-
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", A = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal",
|
|
9073
|
+
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", A = "takeawayPrice", C = "nettTotal", F = "layerNettTotal", M = "layerBillAdjustmentTotal", x = "layerItemAdjustmentTotal", R = "layerGrossTotal", L = "layerTakeawayPrice", w = "layerTaxTotal", v = "layerScTotal", U = "layerOtherChargeTotal", Z = "customAttributes", f0 = "layerZeroParentId", g0 = "collectedAt", o0 = "subCategories", h0 = "billAdjustmentInclusiveTaxTotal", F0 = "itemAdjustmentInclusiveTaxTotal", x0 = "layerBillAdjustmentInclusiveTaxTotal", L0 = "layerItemAdjustmentInclusiveTaxTotal", C0 = "billAdjustmentExclusiveTaxTotal", M0 = "itemAdjustmentExclusiveTaxTotal", O0 = "layerBillAdjustmentExclusiveTaxTotal", R0 = "layerItemAdjustmentExclusiveTaxTotal";
|
|
9074
9074
|
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)
|
|
9075
9075
|
`, !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
|
|
9076
|
-
`, 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", A, A, 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",
|
|
9076
|
+
`, 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", A, A, 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", U, U, "@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", Z, Z, e, r), t.Field_Field$string(e, e, !1, !1, !1, "Layer 0 parent ID", f0, f0, 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", o0, o0, 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", F0, F0, "@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", C0, C0, "@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", M0, M0, "@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", R0, R0, "@layer_item_adjustment_exclusive_tax_total*CASE WHEN @is_refund THEN -1 ELSE 1 END", r)], f.JSArray_Field);
|
|
9077
9077
|
},
|
|
9078
9078
|
$signature: 0
|
|
9079
9079
|
}, t.flattenItemSchema_closure0.prototype = {
|
|
@@ -10554,12 +10554,12 @@ limit 1) when @tier is null then null else @tier::numeric end)`, r), t.Field_Fie
|
|
|
10554
10554
|
var e = u.LegacyJavaScriptObject.prototype;
|
|
10555
10555
|
e.super$LegacyJavaScriptObject$toString = e.toString$0, e = t.JsLinkedHashMap.prototype, e.super$JsLinkedHashMap$internalContainsKey = e.internalContainsKey$1, e.super$JsLinkedHashMap$internalGet = e.internalGet$1, e.super$JsLinkedHashMap$internalSet = e.internalSet$2, e = t.ListMixin.prototype, e.super$ListMixin$setRange = e.setRange$4, e = t.Field.prototype, e.super$Field$getSql = e.getSql$3$option$schema$value, e = t.BaseDatasourceConfigModel.prototype, e.super$BaseDatasourceConfigModel$toRequests = e.toRequests$1, e.super$BaseDatasourceConfigModel$toJson = e.toJson$0;
|
|
10556
10556
|
}(), function() {
|
|
10557
|
-
var e =
|
|
10557
|
+
var e = e0._static_2, n = e0._static_1, i = e0._instance_1u, a = e0._instance_0u;
|
|
10558
10558
|
e(u, "_interceptors_JSArray__compareAny$closure", "JSArray__compareAny", 114), e(t, "collection___defaultEquals$closure", "_defaultEquals", 49), n(t, "collection___defaultHashCode$closure", "_defaultHashCode", 37), n(t, "convert___defaultToEncodable$closure", "_defaultToEncodable", 4), n(t, "core__identityHashCode$closure", "identityHashCode", 37), n(t, "core_RegExp_escape$closure", "RegExp_escape", 3), e(t, "core__identical$closure", "identical", 49);
|
|
10559
10559
|
var s;
|
|
10560
10560
|
i(s = t.DateBuilder.prototype, "get$setYear", "setYear$1", 7), i(s, "get$setMonth", "setMonth$1", 7), i(s, "get$setDay", "setDay$1", 7), i(s, "get$setDayOfYear", "setDayOfYear$1", 7), i(s, "get$setHour", "setHour$1", 7), i(s, "get$setMinute", "setMinute$1", 7), i(s, "get$setSecond", "setSecond$1", 7), i(s, "get$setFractionalSecond", "setFractionalSecond$1", 7), n(t, "date_format_DateFormat_localeExists$closure", "DateFormat_localeExists", 77), a(t.DateFormat.prototype, "get$_initDigitMatcher", "_initDigitMatcher$0", 75), i(t.ReCase.prototype, "get$_upperCaseFirstLetter", "_upperCaseFirstLetter$1", 3), n(t, "js_compiler__getMergeInfoSql$closure", "getMergeInfoSql", 4), n(t, "js_compiler__getClearTableSql$closure", "getClearTableSql", 4), n(t, "js_compiler__getMergeSql$closure", "getMergeSql", 4), n(t, "js_compiler__getSchemas$closure", "getSchemas", 4), n(t, "js_compiler__getVisualizationSchemas$closure", "getVisualizationSchemas", 4), n(t, "js_compiler__requestJsonToSql$closure", "requestJsonToSql", 4), n(t, "js_compiler__sqlResponsesToQueryResponses$closure", "sqlResponsesToQueryResponses", 4), n(t, "js_compiler__getQueryRequests$closure", "getQueryRequests", 4), n(t, "js_compiler__getCreateMaterializedTableSql$closure", "getCreateMaterializedTableSql", 4);
|
|
10561
10561
|
}(), function() {
|
|
10562
|
-
var e =
|
|
10562
|
+
var e = e0.mixin, n = e0.inherit, i = e0.inheritMany;
|
|
10563
10563
|
n(t.Object, null), i(t.Object, [t.JS_CONST, u.Interceptor, u.ArrayIterator, t.Iterable, t.CastIterator, t.Error, t._ListBase_Object_ListMixin, t.ListIterator, t.Iterator, t.EmptyIterator, t.FixedLengthListMixin, t.UnmodifiableListMixin, t.Symbol, t.MapView, t.ConstantMap, t.Closure, t.JSInvocationMirror, t.TypeErrorDecoder, t.NullThrownFromJavaScriptException, t._Required, t.MapMixin, t.LinkedHashMapCell, t.LinkedHashMapKeyIterator, t.JSSyntaxRegExp, t._MatchImplementation, t._AllMatchesIterator, t.StringMatch, t._StringAllMatchesIterator, t._Cell, t.Rti, t._FunctionParameters, t._Type, t._IterationMarker, t._SyncStarIterator, t.StreamTransformerBase, t.__SetBase_Object_SetMixin, t._LinkedHashSetCell, t._LinkedHashSetIterator, t.ListMixin, t._UnmodifiableMapMixin, t.SetMixin, t.Codec, t._JsonStringifier, t._Utf8Encoder, t.DateTime, t.Duration, t._Enum, t.OutOfMemoryError, t.StackOverflowError, t._Exception, t.FormatException, t.MapEntry, t.Null, t.Sink, t.StringBuffer, t.Endian, t.Digest, t.HashSink, t.DateSymbols, t.DateBuilder, t.DateFormat, t._DateFormatField, t.StringStack, t.UninitializedLocaleData, t.LocaleDataException, t.Jiffy, t.Locale, t.JiffyException, t.Connection, t.SchemaLibrary, t.QueryEngineContext, t.Permission, t.TopLevelFilters, t.Source, t.Index, t.Schema, t.Field, t.Join, t.JoinLateralSort, t.JoinLateral, t.JoinCondition, t.QueryRequestComparisonTarget, t.QueryRequestComparison, t.QueryRequestCommonField, t._GetSourceTableResponse, t._PlainSqlColumn, t.QueryRequest, t.QueryRequestTimeDimension, t.QueryResponseColumn, t.DateTimeRange, t.QueryResponse, t.QueryResponseRow, t.VisualizationSchema, t.VisualizationField, t.QueryEngine, t.BaseDatasourceConfigModel, t.DataSourceDrillConfig, t.DataSourceRowColumnConfig, t.JoinDatasourceCondition, t.GlobalFilterModel, t.ReportWidgetModel, t.ReCase, t.TZDateTime, t.TimeZoneInitException, t.LocationNotFoundException, t.Location, t.TimeZone, t.TzInstant, t.LocationDatabase]), i(u.Interceptor, [u.JSBool, u.JSNull, u.JavaScriptObject, u.JSArray, u.JSNumber, u.JSString, t.NativeTypedData]), n(u.LegacyJavaScriptObject, u.JavaScriptObject), i(u.LegacyJavaScriptObject, [u.PlainJavaScriptObject, u.UnknownJavaScriptObject, u.JavaScriptFunction, t.BufferModule, t.BufferConstants, t.Buffer, t.ConsoleModule, t.Console, t.EventEmitter, t.Promise, t.Date, t.JsError, t.Atomics, t.Modules, t.Module, t.Net, t.Socket, t.NetAddress, t.NetServer, t.NodeJsError, t.Process, t.CPUUsage, t.Release, t.StreamModule, t.Readable, t.Writable, t.Duplex, t.Transform, t.WritableOptions, t.ReadableOptions, t.Immediate, t.Timeout, t.TTY, t.Util, t.Exports, t._Exports]), n(u.JSUnmodifiableArray, u.JSArray), i(u.JSNumber, [u.JSInt, u.JSNumNotInt]), i(t.Iterable, [t._CastIterableBase, t.EfficientLengthIterable, t.MappedIterable, t.WhereIterable, t.SkipIterable, t._ConstantMapKeyIterable, t.IterableBase, t._StringAllMatchesIterable]), i(t._CastIterableBase, [t.CastIterable, t.__CastListBase__CastIterableBase_ListMixin]), n(t._EfficientLengthCastIterable, t.CastIterable), n(t._CastListBase, t.__CastListBase__CastIterableBase_ListMixin), n(t.CastList, t._CastListBase), i(t.Error, [t.LateError, t.TypeError, t.JsNoSuchMethodError, t.UnknownJsTypeError, t.RuntimeError, t._Error, t.JsonUnsupportedObjectError, t.AssertionError, t.NullThrownError, t.ArgumentError, t.NoSuchMethodError, t.UnsupportedError, t.UnimplementedError, t.StateError, t.ConcurrentModificationError, t.CyclicInitializationError]), n(t.ListBase, t._ListBase_Object_ListMixin), i(t.ListBase, [t.UnmodifiableListBase, t.TypedDataBuffer]), n(t.CodeUnits, t.UnmodifiableListBase), i(t.EfficientLengthIterable, [t.ListIterable, t.EmptyIterable, t.LinkedHashMapKeyIterable]), i(t.ListIterable, [t.SubListIterable, t.MappedListIterable, t.ReversedListIterable, t._JsonMapKeyIterable, t._GeneratorIterable]), n(t.EfficientLengthMappedIterable, t.MappedIterable), i(t.Iterator, [t.MappedIterator, t.WhereIterator, t.SkipIterator]), n(t.EfficientLengthSkipIterable, t.SkipIterable), n(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t.MapView), n(t.UnmodifiableMapView, t._UnmodifiableMapView_MapView__UnmodifiableMapMixin), n(t.ConstantMapView, t.UnmodifiableMapView), i(t.Closure, [t.Closure2Args, t.Closure0Args, t.TearOffClosure, t.initHooks_closure, t.initHooks_closure1, t._LinkedCustomHashMap_closure, t.MapMixin_entries_closure, t.DateTime_parse_parseIntOrZero, t.DateTime_parse_parseMilliAndMicroseconds, t.DateFormat_dateTimeConstructor_closure, t.DateFormat__checkDateOnly_closure, t.DateFormat__initDigitMatcher_closure, t.DateFormat__initDigitMatcher_closure0, t._DateFormatPatternField_parseStandaloneDay_closure, t.Jiffy__parseString_closure, t.SchemaLibrary_getSchema_closure, t.SchemaLibrary_visualizationSchemas_closure, t.SchemaLibrary_visualizationSchemas_closure0, t.Materialize_get_createMaterializedTableSql_closure, t.Materialize_get_createMaterializedTableSql_closure0, t.Materialize_get_createMaterializedTableSql_closure1, t.Materialize_get_createMaterializedTableSql_closure2, t.Materialize_getMergeSql_closure, t.Materialize_getMergeSql_closure0, t.Materialize_getMergeSql_closure1, t.Materialize_getMergeSql_closure2, t.Materialize_getMergeSql_closure3, t.Materialize_getMergeSql_closure4, t.Materialize_getMergeSql_closure5, t.Materialize_getMaterializeInfoSql_closure, t.Materialize_getMaterializeInfoSql_closure0, t.TopLevelFilters_fromJson_closure, t.TopLevelFilters_toJson_closure, t.Schema_visualizationSchema_closure, t.Schema_visualizationSchema_closure0, t.Schema_visualizationSchema_closure1, t.Schema_fromJson_closure, t.Schema_fromJson_closure0, t.Schema_fromJson_closure1, t.Schema_fromJson_closure2, t.Schema_toJson_closure, t.Schema_toJson_closure0, t.Schema_toJson_closure1, t.Schema_toJson_closure2, t.Field_getQueryPlainSql_closure, t.Join_fromJson_closure, t.Join_toJson_closure, t.JoinLateral_toJson_closure, t.QueryRequestComparison_QueryRequestComparison$nested_closure, t.QueryRequestComparison_getToValues_closure, t.QueryRequestComparison_getToValues__closure0, t.QueryRequestComparison_getToValues_closure0, t.QueryRequestComparison_getToValues__closure, t.QueryRequestComparison_getFromValue_closure, t.QueryRequestComparison_getSql_closure, t.QueryRequestComparison_getSql_closure0, t.uniqueAlias_closure, t.QueryRequestCommonField_getAggregatedSql_closure, t.QueryRequestDimension_getPlainSql_closure, t.QueryRequestDimension_getColumn_closure, t.QueryRequestMetric_getColumn_closure, t.QueryRequestMetric_getPlainSql_closure, t.QueryRequest__closure0, t.QueryRequest__closure, t.QueryRequest__getJoins_closure, t.QueryRequest__getJoins__closure, t.QueryRequest_fromJson_closure, t.QueryRequest_fromJson_closure0, t.QueryRequest_fromJson_closure1, t.QueryRequest_fromJson_closure2, t.QueryRequest_fromJson_closure3, t.QueryRequest_fromJson_closure4, t.QueryRequest_toJson_closure, t.QueryRequest_toJson_closure0, t.QueryRequest_toJson_closure1, t.QueryRequest_toJson_closure2, t.QueryRequest_toJson_closure3, t.QueryRequest_toJson_closure4, t.QueryRequest_getColumns_closure, t.QueryRequest_getColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure, t.QueryRequest__getPlainSqlColumns_closure0, t.QueryRequest__getPlainSqlColumns_closure1, t.QueryRequest__getPlainSqlColumns__closure, t.QueryRequest__getPlainSqlSorts_closure, t.QueryRequest__getSqlFilters_closure, t.QueryRequest__getSqlFilters_closure0, t.QueryRequest__getSqlFilters_closure1, t.QueryRequest__getSqlFilters_closure2, t.QueryRequest__getSqlFilters_closure3, t.QueryRequest__getSqlFilters_closure4, t.QueryRequest__getSqlJoins__closure, t.QueryRequest__getSqlJoins__closure0, t.QueryRequest__getRollupSelect_closure0, t.QueryRequest__getRollupSelect_closure2, t.QueryRequest__getRollupSelect_closure3, t.QueryRequest__getRollupSelect_closure4, t.QueryRequest__getRollupSelect_closure6, t.QueryRequest__getRollupSelect_closure7, t.QueryRequest__getRollupSelect_closure8, t.QueryRequest__getRollupSelect_closure9, t.QueryRequest__hasFillGap_closure, t.QueryRequest__getSqlSelectSorts_closure, t.QueryRequest__getSqlSelectSorts__closure, t.QueryRequest__getSqlSelectSorts__closure0, t.QueryRequest_getSqlSelect_closure, t.QueryRequest_getSqlSelect_closure0, t.QueryRequest_getSqlSelect_closure1, t.QueryRequest__transformSqlAlias_closure, t.QueryRequest__getSourceTable_closure, t.QueryRequest__getSourceTable_closure0, t.QueryRequest__getFillGapTable_closure0, t.QueryRequest__getFillGapTable__closure1, t.QueryRequest__getFillGapTable__closure2, t.QueryRequest__getFillGapTable_closure2, t.QueryRequest__getFillGapTable__closure, t.QueryRequest__getFillGapTable__closure0, t.QueryRequest__getFillGapTable_closure3, t.QueryRequest__getFillGapTable_closure4, t.QueryRequest__getFullTable_closure, t.QueryRequest__getFullTable_closure1, t.QueryRequest__getFullTable_closure2, t.QueryRequestSort_getPlainSql_closure, t.QueryRequestSort_getSortSql_closure, t.QueryResponse$map_closure, t.QueryResponse_toJson_closure, t.QueryResponse_toJson_closure0, t.VisualizationSchema_toJson_closure, t.VisualizationSchema_toJson_closure0, t.VisualizationField_filterDimensionOptions_closure, t.VisualizationField_fillGapDimensionOptions_closure, t.VisualizationField_isNumericAggregations_closure, t.VisualizationField_toJson_closure, t.VisualizationField_toJson_closure0, t.VisualizationField_toJson_closure1, t.VisualizationField_toJson_closure2, t.VisualizationField_toJson_closure3, t.VisualizationField_toJson_closure4, t.VisualizationField_toJson_closure5, t.VisualizationField_toJson_closure6, t.VisualizationField_toJson_closure7, t.addonFlattenItemSchema_closure, t.addonFlattenItemSchema_closure0, t.adjustmentSchema_closure, t.adjustmentSchema_closure0, t.billSchema_closure, t.billSchema_closure0, t.businessSchema_closure, t.businessSchema_closure0, t.campaignSchema_closure, t.campaignSchema_closure0, t.campaignTierSchema_closure, t.campaignTierSchema_closure0, t.changePaymentActivitySchema_closure, t.changePaymentActivitySchema_closure0, t.chargeSchema_closure, t.chargeSchema_closure0, t.closingDraftSchema_closure, t.closingDraftSchema_closure0, t.closingDraftSkuSchema_closure, t.closingDraftSkuSchema_closure0, t.closingSkuSchema_closure, t.closingSkuSchema_closure0, t.collectibleCollectionSchema_closure, t.collectibleCollectionSchema_closure0, t.collectibleConfigSchema_closure, t.collectibleConfigSchema_closure0, t.collectibleTransactionSchema_closure, t.collectibleTransactionSchema_closure0, t.completeTimeBillSchema_closure, t.completeTimeBillSchema_closure0, t.counterSchema_closure, t.counterSchema_closure0, t.creditTransactionSchema_closure, t.creditTransactionSchema_closure0, t.dailyForecastSalesSchema_closure, t.dailyForecastSalesSchema_closure0, t.discountSchema_closure, t.discountSchema_closure0, t.drawerSchema_closure, t.drawerSchema_closure0, t.flattenItemSchema_closure, t.flattenItemSchema_closure0, t.internalPurchaseOrderSchema_closure, t.internalPurchaseOrderSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSchema_closure0, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure, t.internalPurchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.internalPurchaseOrderDeliveryOrderSchema_closure, t.internalPurchaseOrderDeliveryOrderSchema_closure0, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure, t.internalPurchaseOrderDeliveryOrderSkuSchema_closure0, t.internalPurchaseOrderItemSchema_closure, t.internalPurchaseOrderItemSchema_closure0, t.inventoryAdjustmentSchema_closure, t.inventoryAdjustmentSchema_closure0, t.inventoryAdjustmentPhysicalSkuSchema_closure, t.inventoryAdjustmentPhysicalSkuSchema_closure0, t.inventoryAdjustmentSkuSchema_closure, t.inventoryAdjustmentSkuSchema_closure0, t.inventoryV1FlattenInventorySchema_closure, t.inventoryV1FlattenInventorySchema_closure0, t.itemSchema_closure, t.itemSchema_closure0, t.itemMovementSchema_closure, t.itemMovementSchema_closure0, t.kitchenStationSchema_closure, t.kitchenStationSchema_closure0, t.memberSchema_closure, t.memberSchema_closure0, t.memberStorePurchaseSchema_closure, t.memberStorePurchaseSchema_closure0, t.memberStorePurchasePaymentSchema_closure, t.memberStorePurchasePaymentSchema_closure0, t.memberTitleSchema_closure, t.memberTitleSchema_closure0, t.memberV2Schema_closure, t.memberV2Schema_closure0, t.membershipSchema_closure, t.membershipSchema_closure0, t.membershipTitleSchema_closure, t.membershipTitleSchema_closure0, t.menuV3GroupSchema_closure, t.menuV3GroupSchema_closure0, t.menuV3ItemSchema_closure, t.menuV3ItemSchema_closure0, t.menuV3SkuSchema_closure, t.menuV3SkuSchema_closure0, t.menuV4CatalogItemSchema_closure, t.menuV4CatalogItemSchema_closure0, t.menuV4GroupSchema_closure, t.menuV4GroupSchema_closure0, t.menuV4ItemSchema_closure, t.menuV4ItemSchema_closure0, t.menuV4ItemInventoryBindingSchema_closure, t.menuV4ItemInventoryBindingSchema_closure0, t.menuV4SkuSchema_closure, t.menuV4SkuSchema_closure0, t.parentFlattenItemSchema_closure, t.parentFlattenItemSchema_closure0, t.paymentSchema_closure, t.paymentSchema_closure0, t.paymentTimePaymentSchema_closure, t.paymentTimePaymentSchema_closure0, t.purchaseOrderSchema_closure, t.purchaseOrderSchema_closure0, t.purchaseOrderDeliveryFulfillmentSchema_closure, t.purchaseOrderDeliveryFulfillmentSchema_closure0, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure, t.purchaseOrderDeliveryFulfillmentSkuSchema_closure0, t.purchaseOrderDeliveryOrderSchema_closure, t.purchaseOrderDeliveryOrderSchema_closure0, t.purchaseOrderDeliveryOrderSkuSchema_closure, t.purchaseOrderDeliveryOrderSkuSchema_closure0, t.purchaseOrderItemSchema_closure, t.purchaseOrderItemSchema_closure0, t.recommendationCallSchema_closure, t.recommendationCallSchema_closure0, t.recordSchema_closure, t.recordSchema_closure0, t.refundBillSchema_closure, t.refundBillSchema_closure0, t.restaurantSchema_closure, t.restaurantSchema_closure0, t.restaurantFeatureSchema_closure, t.restaurantFeatureSchema_closure0, t.restaurantLocationSchema_closure, t.restaurantLocationSchema_closure0, t.reviewSchema_closure, t.reviewSchema_closure0, t.salePaymentSchema_closure, t.salePaymentSchema_closure0, t.saleTransactionSchema_closure, t.saleTransactionSchema_closure0, t.slotSchema_closure, t.slotSchema_closure0, t.staffSchema_closure, t.staffSchema_closure0, t.stockSchema_closure, t.stockSchema_closure0, t.storeBundleSchema_closure, t.storeBundleSchema_closure0, t.storeTransactionSchema_closure, t.storeTransactionSchema_closure0, t.subItemSchema_closure, t.subItemSchema_closure0, t.timesheetSchema_closure, t.timesheetSchema_closure0, t.timesheetRecordSchema_closure, t.timesheetRecordSchema_closure0, t.unitCostHistorySchema_closure, t.unitCostHistorySchema_closure0, t.userSchema_closure, t.userSchema_closure0, t.vnEInvoiceSubmissionSchema_closure, t.vnEInvoiceSubmissionSchema_closure0, t.voucherClaimSchema_closure, t.voucherClaimSchema_closure0, t.voucherClaimRedemptionSchema_closure, t.voucherClaimRedemptionSchema_closure0, t.warehouseLocationSchema_closure, t.warehouseLocationSchema_closure0, t.QueryEngine_getSql_closure, t.BaseDatasourceConfigModel_drilledDimensionIds_closure, t.BaseDatasourceConfigModel_metricIds_closure, t.BaseDatasourceConfigModel_toJson_closure, t.BaseDatasourceConfigModel_toJson_closure0, t.BaseDatasourceConfigModel_toJson_closure1, t.BaseDatasourceConfigModel_toJson_closure2, t.BaseDatasourceConfigModel_toJson_closure3, t.BaseDatasourceConfigModel_toJson_closure4, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure0, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure1, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure2, t.BaseDatasourceConfigModel_BaseDatasourceConfigModel$fromJson_closure3, t.DataSourceDrillConfig_drilledDimensions_closure, t.DataSourceRowColumnConfig_rowIds_closure, t.DataSourceRowColumnConfig_rowIds_closure0, t.DataSourceRowColumnConfig_rowIds_closure2, t.DataSourceRowColumnConfig_rowIds_closure1, t.DataSourceRowColumnConfig_columnIds_closure, t.DataSourceRowColumnConfig_columnIds_closure0, t.DataSourceRowColumnConfig_columnIds_closure1, t.TableDatasourceConfigModel_joinDatasources_closure, t.TableDatasourceConfigModel_toRequests___closure, t.TableDatasourceConfigModel_toRequests_closure0, t.TableDatasourceConfigModel_toJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson_closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson___closure0, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson____closure, t.JoinDatasourceConfig_JoinDatasourceConfig$fromJson_closure, t.JoinDatasourceConfig_toJson_closure, t.JoinDatasourceCondition_JoinDatasourceCondition$fromJson_closure, t.JoinDatasourceCondition_toJson_closure, t.BaseXYDatasourceConfigModel_joinDatasources_closure, t.BaseXYDatasourceConfigModel_toRequests___closure, t.BaseXYDatasourceConfigModel_toRequests_closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson_closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson___closure0, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson____closure, t.getSchemas_closure, t.getVisualizationSchemas_closure, t.sqlResponsesToQueryResponses_closure, t.sqlResponsesToQueryResponses_closure1, t.getQueryRequests_closure, t.getQueryRequests_closure0, t.getQueryRequests_closure1, t.getQueryRequests_closure2, t.getQueryRequests_closure3, t.getQueryRequests_closure4, t.getQueryRequests_closure5, t.getQueryRequests_closure6, t.getQueryRequests_closure7, t.getQueryRequests_closure8, t.getQueryRequests_closure9]), i(t.Closure2Args, [t.ConstantMap_map_closure, t.Primitives_functionNoSuchMethod_closure, t.JsLinkedHashMap_addAll_closure, t.initHooks_closure0, t.LinkedHashMap_LinkedHashMap$from_closure, t.MapBase_mapToString_closure, t._JsonStringifier_writeMap_closure, t.NoSuchMethodError_toString_closure, t.DateFormat__fieldConstructors_closure, t.DateFormat__fieldConstructors_closure0, t.DateFormat__fieldConstructors_closure1, t.Jiffy__parseMap_closure, t.Join_getConditionsSql_closure, t.QueryRequest_closure, t.QueryRequest_closure0, t.QueryRequest__getPlainSqlColumns_closure2, t.QueryRequest__getSqlJoins_closure, t.QueryRequest__getRollupSelect_closure, t.QueryRequest__getRollupSelect_closure1, t.QueryRequest__getRollupSelect_closure5, t.QueryRequest__getSqlSelectSorts_closure0, t.QueryRequest__getSortedLimitTable_closure, t.QueryRequest__getFillGapTable_closure, t.QueryRequest__getFillGapTable_closure1, t.QueryRequest__getFullTable_closure0, t.VisualizationSchema_closure, t.DataSourceDrillConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure, t.DataSourceRowColumnConfig__availableIds_closure0, t.TableDatasourceConfigModel_drilledDimensions_closure, t.TableDatasourceConfigModel_toRequests_closure, t.TableDatasourceConfigModel_toRequests__closure0, t.TableDatasourceConfigModel_toRequests__closure, t.TableDatasourceConfigModel_TableDatasourceConfigModel$fromJson__closure, t.BaseXYDatasourceConfigModel_toRequests_closure, t.BaseXYDatasourceConfigModel_toRequests__closure0, t.BaseXYDatasourceConfigModel_toRequests__closure, t.BaseXYDatasourceConfigModel_BaseXYDatasourceConfigModel$fromJson__closure, t.sqlResponsesToQueryResponses_closure0]), n(t.ConstantStringMap, t.ConstantMap), n(t.NullError, t.TypeError), i(t.TearOffClosure, [t.StaticClosure, t.BoundClosure]), n(t.MapBase, t.MapMixin), i(t.MapBase, [t.JsLinkedHashMap, t._JsonMap]), i(t.IterableBase, [t._AllMatchesIterable, t._SyncStarIterable]), n(t.NativeTypedArray, t.NativeTypedData), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.NativeTypedArray), n(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin), n(t.NativeTypedArrayOfInt, t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin), i(t.NativeTypedArrayOfInt, [t.NativeUint16List, t.NativeUint32List, t.NativeUint8List]), n(t._TypeError, t._Error), i(t.JsLinkedHashMap, [t._LinkedIdentityHashMap, t._LinkedCustomHashMap]), n(t._SetBase, t.__SetBase_Object_SetMixin), n(t._LinkedHashSet, t._SetBase), i(t.Codec, [t.Encoding, t.JsonCodec]), i(t.Encoding, [t.AsciiCodec, t.Utf8Codec]), n(t.Converter, t.StreamTransformerBase), i(t.Converter, [t._UnicodeSubsetDecoder, t.JsonEncoder, t.JsonDecoder, t.Utf8Encoder]), n(t.AsciiDecoder, t._UnicodeSubsetDecoder), n(t.JsonCyclicError, t.JsonUnsupportedObjectError), n(t._JsonStringStringifier, t._JsonStringifier), i(t.ArgumentError, [t.RangeError, t.IndexError]), n(t.DigestSink, t.Sink), n(t._Sha1Sink, t.HashSink), i(t._DateFormatField, [t._DateFormatLiteralField, t._DateFormatQuotedField, t._DateFormatPatternField]), i(t._Enum, [t.StartOfWeek, t.Units, t.SOURCE_TYPE, t.SCHEMA_NAME, t.DATA_TYPE, t.AGGREGATION_TYPE, t.COMPARISON_OPERATOR, t.DIMENSION_OPTION, t.TIME_FORMATTER, t.FORMATTER_TYPE, t.PERIOD_TYPE, t.SORT_TYPE, t.PermissionType, t.INDEX_METHOD, t.FIELD_TYPE, t.ChartType]), i(t.Locale, [t.ArLyLocale, t.ArSaMaDzKwTnLocale, t.AzLocale, t.BnLocale, t.DeLocale, t.EnLocale, t.EsLocale, t.FaLocale, t.FrLocale, t.HiLocale, t.IdLocale, t.ItLocale, t.JaLocale, t.KoLocale, t.NbLocale, t.NlLocale, t.PlLocale, t.PtLocale, t.RuLocale, t.SvLocale, t.ThLocale, t.TrLocale, t.UkLocale, t.ZhCnLocale, t.ZhLocale]), i(t.NodeJsError, [t.JsAssertionError, t.JsRangeError, t.JsReferenceError, t.JsSyntaxError, t.JsTypeError, t.JsSystemError]), i(t.Socket, [t.TTYReadStream, t.TTYWriteStream]), i(t.Field, [t._NumericField, t._TimestampField, t._BoolField, t._StringField]), i(t.QueryRequestComparisonTarget, [t._QueryRequestComparisonTargetValue, t._QueryRequestComparisonTargetVariable]), i(t.QueryRequestCommonField, [t.QueryRequestDimension, t.QueryRequestMetric, t.QueryRequestFilter, t.QueryRequestSort]), i(t.Closure0Args, [t.QueryRequestDimension_generateTimestampArraySql_closure, t.QueryRequestDimension_generateTimestampArraySql_closure0, t.QueryRequest__getSqlFilters__closure]), i(t.BaseDatasourceConfigModel, [t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.ScorecardDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig]), n(t.CircularDatasourceConfigModel, t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.TableDatasourceConfigModel, t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig), n(t.JoinDatasourceConfig, t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig), n(t.BaseXYDatasourceConfigModel, t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig), n(t._IntBuffer, t.TypedDataBuffer), n(t.Uint8Buffer, t._IntBuffer), e(t.UnmodifiableListBase, t.UnmodifiableListMixin), e(t.__CastListBase__CastIterableBase_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin, t.ListMixin), e(t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin, t.FixedLengthListMixin), e(t._ListBase_Object_ListMixin, t.ListMixin), e(t._UnmodifiableMapView_MapView__UnmodifiableMapMixin, t._UnmodifiableMapMixin), e(t.__SetBase_Object_SetMixin, t.SetMixin), e(t._CircularDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._JoinDatasourceConfig_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig, t.DataSourceRowColumnConfig), e(t._TableDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceRowColumnConfig_DataSourceDrillConfig, t.DataSourceDrillConfig), e(t._BaseXYDatasourceConfigModel_BaseDatasourceConfigModel_DataSourceDrillConfig, t.DataSourceDrillConfig);
|
|
10564
10564
|
}();
|
|
10565
10565
|
var b = {
|
|
@@ -10745,7 +10745,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10745
10745
|
};
|
|
10746
10746
|
}();
|
|
10747
10747
|
(function() {
|
|
10748
|
-
var e =
|
|
10748
|
+
var e = e0.makeConstList;
|
|
10749
10749
|
_.Interceptor_methods = u.Interceptor.prototype, _.JSArray_methods = u.JSArray.prototype, _.JSInt_methods = u.JSInt.prototype, _.JSNumber_methods = u.JSNumber.prototype, _.JSString_methods = u.JSString.prototype, _.JavaScriptFunction_methods = u.JavaScriptFunction.prototype, _.JavaScriptObject_methods = u.JavaScriptObject.prototype, _.NativeUint8List_methods = t.NativeUint8List.prototype, _.PlainJavaScriptObject_methods = u.PlainJavaScriptObject.prototype, _.UnknownJavaScriptObject_methods = u.UnknownJavaScriptObject.prototype, _.AGGREGATION_TYPE_0 = new t.AGGREGATION_TYPE(0, "SUM"), _.AGGREGATION_TYPE_1 = new t.AGGREGATION_TYPE(1, "AVERAGE"), _.AGGREGATION_TYPE_10 = new t.AGGREGATION_TYPE(10, "CUMULATIVE_SUM"), _.AGGREGATION_TYPE_11 = new t.AGGREGATION_TYPE(11, "CUMULATIVE_AVERAGE"), _.AGGREGATION_TYPE_12 = new t.AGGREGATION_TYPE(12, "CUMULATIVE_COUNT"), _.AGGREGATION_TYPE_2 = new t.AGGREGATION_TYPE(2, "COUNT"), _.AGGREGATION_TYPE_3 = new t.AGGREGATION_TYPE(3, "COUNT_DISTINCT"), _.AGGREGATION_TYPE_4 = new t.AGGREGATION_TYPE(4, "FIRST"), _.AGGREGATION_TYPE_5 = new t.AGGREGATION_TYPE(5, "LAST"), _.AGGREGATION_TYPE_6 = new t.AGGREGATION_TYPE(6, "ANY"), _.AGGREGATION_TYPE_7 = new t.AGGREGATION_TYPE(7, "MERGE"), _.AGGREGATION_TYPE_8 = new t.AGGREGATION_TYPE(8, "MIN"), _.AGGREGATION_TYPE_9 = new t.AGGREGATION_TYPE(9, "MAX"), _.AsciiDecoder_false = new t.AsciiDecoder(!1), _.COMPARISON_OPERATOR_0 = new t.COMPARISON_OPERATOR(0, "EQUAL"), _.COMPARISON_OPERATOR_1 = new t.COMPARISON_OPERATOR(1, "NOT_EQUAL"), _.COMPARISON_OPERATOR_10 = new t.COMPARISON_OPERATOR(10, "OR"), _.COMPARISON_OPERATOR_2 = new t.COMPARISON_OPERATOR(2, "GREATER_THAN"), _.COMPARISON_OPERATOR_3 = new t.COMPARISON_OPERATOR(3, "LESS_THAN"), _.COMPARISON_OPERATOR_4 = new t.COMPARISON_OPERATOR(4, "GREATER_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_5 = new t.COMPARISON_OPERATOR(5, "LESS_THAN_OR_EQUAL"), _.COMPARISON_OPERATOR_6 = new t.COMPARISON_OPERATOR(6, "BETWEEN"), _.COMPARISON_OPERATOR_7 = new t.COMPARISON_OPERATOR(7, "LIKE"), _.COMPARISON_OPERATOR_8 = new t.COMPARISON_OPERATOR(8, "NOT_LIKE"), _.C_AsciiCodec = new t.AsciiCodec(), _.C_EmptyIterator = new t.EmptyIterator(), _.C_Endian = new t.Endian(), _.C_Endian0 = new t.Endian(), _.C_JS_CONST = function(i) {
|
|
10750
10750
|
var a = Object.prototype.toString.call(i);
|
|
10751
10751
|
return a.substring(8, a.length - 1);
|
|
@@ -10847,7 +10847,7 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10847
10847
|
})(), function() {
|
|
10848
10848
|
S._JS_INTEROP_INTERCEPTOR_TAG = null, S.Primitives__identityHashCodeProperty = null, S.BoundClosure__receiverFieldNameCache = null, S.BoundClosure__interceptorFieldNameCache = null, S.getTagFunction = null, S.alternateTagFunction = null, S.prototypeForTagFunction = null, S.dispatchRecordsForInstanceTags = null, S.interceptorsForUncacheableTags = null, S.initNativeDispatchFlag = null, S._toStringVisiting = t._setArrayType([], t.findType("JSArray<Object>")), S.cachedDateSymbols = null, S.lastDateSymbolLocale = null, S._defaultLocale = null, S.DateFormat__useNativeDigitsByDefault = t.LinkedHashMap_LinkedHashMap$_empty(f.String, f.bool), S.DateFormat__digitMatchers = t.LinkedHashMap_LinkedHashMap$_empty(f.String, t.findType("RegExp")), S.Jiffy____defaultLocale = t._Cell$(), S.VisualizationField__filterDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_5, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9], f.JSArray_DIMENSION_OPTION), S.VisualizationField__fillGapDimensionOptions = t._setArrayType([_.DIMENSION_OPTION_1, _.DIMENSION_OPTION_2, _.DIMENSION_OPTION_3, _.DIMENSION_OPTION_4, _.DIMENSION_OPTION_6, _.DIMENSION_OPTION_7, _.DIMENSION_OPTION_8, _.DIMENSION_OPTION_9, _.DIMENSION_OPTION_10, _.DIMENSION_OPTION_11], f.JSArray_DIMENSION_OPTION), S.VisualizationField__isNumericAggregations = t._setArrayType([_.AGGREGATION_TYPE_2, _.AGGREGATION_TYPE_3], f.JSArray_AGGREGATION_TYPE), S.___local = t._Cell$();
|
|
10849
10849
|
}(), function() {
|
|
10850
|
-
var e =
|
|
10850
|
+
var e = e0.lazyFinal, n = e0.lazy;
|
|
10851
10851
|
e(S, "DART_CLOSURE_PROPERTY_NAME", "$get$DART_CLOSURE_PROPERTY_NAME", () => t.getIsolateAffinityTag("_$dart_dartClosure")), e(S, "TypeErrorDecoder_noSuchMethodPattern", "$get$TypeErrorDecoder_noSuchMethodPattern", () => t.TypeErrorDecoder_extractPattern(t.TypeErrorDecoder_provokeCallErrorOn({
|
|
10852
10852
|
toString: function() {
|
|
10853
10853
|
return "$receiver$";
|
|
@@ -10884,8 +10884,8 @@ then EXTRACT(EPOCH FROM COALESCE(timesheets.ended_at,!end)-(timesheets.created_a
|
|
|
10884
10884
|
return i.message;
|
|
10885
10885
|
}
|
|
10886
10886
|
}())), 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", () => {
|
|
10887
|
-
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), A = 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),
|
|
10888
|
-
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", A, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de",
|
|
10887
|
+
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), A = 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), U = t.DeLocale$(_.StartOfWeek_2), Z = t.DeLocale$(_.StartOfWeek_2), f0 = t.DeLocale$(_.StartOfWeek_2), g0 = t.ItLocale$(_.StartOfWeek_2), o0 = t.ItLocale$(_.StartOfWeek_2), h0 = t.ArLyLocale$(!0, _.StartOfWeek_0), F0 = t.ArLyLocale$(!1, _.StartOfWeek_0), x0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), L0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_1), C0 = t.ArSaMaDzKwTnLocale$(!0, _.StartOfWeek_1), M0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0), O0 = t.ArSaMaDzKwTnLocale$(!1, _.StartOfWeek_0);
|
|
10888
|
+
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", A, "fr", C, "fr_ch", F, "fr_ca", M, "zh", x, "zh_cn", R, "zh_hk", L, "zh_tw", w, "de", v, "de_de", U, "de_at", Z, "de_ch", f0, "it", g0, "it_ch", o0, "ar", h0, "ar_ly", F0, "ar_dz", x0, "ar_kw", L0, "ar_sa", C0, "ar_ma", M0, "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"));
|
|
10889
10889
|
}), e(S, "addonFlattenItemSchema", "$get$addonFlattenItemSchema", () => {
|
|
10890
10890
|
var i = "createdAt", a = null, s = t.Source_Source$couchdb("", ""), o = t.TopLevelFilters$(t._setArrayType([t.Permission_Permission$restaurant("restaurantId")], f.JSArray_Permission), i);
|
|
10891
10891
|
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);
|
|
@@ -11309,7 +11309,7 @@ from member_store_purchases
|
|
|
11309
11309
|
(function() {
|
|
11310
11310
|
var e = function(l) {
|
|
11311
11311
|
var D = {};
|
|
11312
|
-
return D[l] = 1, Object.keys(
|
|
11312
|
+
return D[l] = 1, Object.keys(e0.convertToFastObject(D))[0];
|
|
11313
11313
|
};
|
|
11314
11314
|
b.getIsolateTag = function(l) {
|
|
11315
11315
|
return e("___dart_" + l + b.isolateTag);
|
|
@@ -11322,7 +11322,7 @@ from member_store_purchases
|
|
|
11322
11322
|
}
|
|
11323
11323
|
}
|
|
11324
11324
|
b.dispatchPropertyName = b.getIsolateTag("dispatch_record");
|
|
11325
|
-
})(),
|
|
11325
|
+
})(), e0.setOrUpdateInterceptorsByTag({ ArrayBuffer: u.Interceptor, DataView: t.NativeTypedData, ArrayBufferView: t.NativeTypedData, Uint16Array: t.NativeUint16List, Uint32Array: t.NativeUint32List, Uint8Array: t.NativeUint8List }), e0.setOrUpdateLeafTags({ ArrayBuffer: !0, DataView: !0, ArrayBufferView: !1, Uint16Array: !0, Uint32Array: !0, Uint8Array: !1 }), t.NativeTypedArray.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin.$nativeSuperclassTag = "ArrayBufferView", t._NativeTypedArrayOfInt_NativeTypedArray_ListMixin_FixedLengthListMixin.$nativeSuperclassTag = "ArrayBufferView", t.NativeTypedArrayOfInt.$nativeSuperclassTag = "ArrayBufferView";
|
|
11326
11326
|
}(), Function.prototype.call$1 = function(r) {
|
|
11327
11327
|
return this(r);
|
|
11328
11328
|
}, Function.prototype.call$0 = function() {
|
|
@@ -11360,9 +11360,9 @@ from member_store_purchases
|
|
|
11360
11360
|
typeof dartMainRunner == "function" ? dartMainRunner(e, []) : e([]);
|
|
11361
11361
|
});
|
|
11362
11362
|
})();
|
|
11363
|
-
})(
|
|
11364
|
-
const
|
|
11365
|
-
var
|
|
11363
|
+
})(Ee);
|
|
11364
|
+
const Ye = Ee;
|
|
11365
|
+
var Ge = Ye, Te = {};
|
|
11366
11366
|
(function(E) {
|
|
11367
11367
|
E.load = function(I, O) {
|
|
11368
11368
|
var P = typeof process < "u" && (process.versions || {}).hasOwnProperty("node"), B = P ? Object.create(globalThis) : globalThis;
|
|
@@ -11371,7 +11371,7 @@ var Ye = Ve, Ee = {};
|
|
|
11371
11371
|
} : function(J) {
|
|
11372
11372
|
setTimeout(J, 0);
|
|
11373
11373
|
}, B.exports = O || E, typeof process < "u" && (B.process = process), typeof __dirname < "u" && (B.__dirname = __dirname), typeof __filename < "u" && (B.__filename = __filename), typeof Buffer < "u" && (B.Buffer = Buffer), P) {
|
|
11374
|
-
var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ :
|
|
11374
|
+
var N = (typeof __webpack_require__ < "u" ? __non_webpack_require__ : Ae)("url");
|
|
11375
11375
|
Object.defineProperty(B, "location", {
|
|
11376
11376
|
value: {
|
|
11377
11377
|
get href() {
|
|
@@ -11385,33 +11385,33 @@ var Ye = Ve, Ee = {};
|
|
|
11385
11385
|
function J() {
|
|
11386
11386
|
try {
|
|
11387
11387
|
throw new Error();
|
|
11388
|
-
} catch (
|
|
11389
|
-
var q =
|
|
11388
|
+
} catch (t0) {
|
|
11389
|
+
var q = t0.stack, H = new RegExp("^ *at [^(]*\\((.*):[0-9]*:[0-9]*\\)$", "mg"), Y = null;
|
|
11390
11390
|
do {
|
|
11391
|
-
var
|
|
11392
|
-
|
|
11393
|
-
} while (
|
|
11394
|
-
return
|
|
11391
|
+
var X = H.exec(q);
|
|
11392
|
+
X != null && (Y = X);
|
|
11393
|
+
} while (X != null);
|
|
11394
|
+
return Y[1];
|
|
11395
11395
|
}
|
|
11396
11396
|
}
|
|
11397
|
-
var
|
|
11397
|
+
var Q = null;
|
|
11398
11398
|
Object.defineProperty(B, "document", {
|
|
11399
11399
|
value: {
|
|
11400
11400
|
get currentScript() {
|
|
11401
|
-
return
|
|
11401
|
+
return Q == null && (Q = { src: J() }), Q;
|
|
11402
11402
|
}
|
|
11403
11403
|
}
|
|
11404
11404
|
});
|
|
11405
|
-
}(), B.dartDeferredLibraryLoader = function(J,
|
|
11405
|
+
}(), B.dartDeferredLibraryLoader = function(J, Q, q) {
|
|
11406
11406
|
try {
|
|
11407
|
-
load(J),
|
|
11407
|
+
load(J), Q();
|
|
11408
11408
|
} catch (H) {
|
|
11409
11409
|
q(H);
|
|
11410
11410
|
}
|
|
11411
11411
|
};
|
|
11412
11412
|
}
|
|
11413
11413
|
(function() {
|
|
11414
|
-
function
|
|
11414
|
+
function Q(e, n) {
|
|
11415
11415
|
for (var i = Object.keys(e), a = 0; a < i.length; a++) {
|
|
11416
11416
|
var s = i[a];
|
|
11417
11417
|
n[s] = e[s];
|
|
@@ -11426,7 +11426,7 @@ var Ye = Ve, Ee = {};
|
|
|
11426
11426
|
function H(e, n) {
|
|
11427
11427
|
Object.assign(n, e);
|
|
11428
11428
|
}
|
|
11429
|
-
var
|
|
11429
|
+
var Y = function() {
|
|
11430
11430
|
var e = function() {
|
|
11431
11431
|
};
|
|
11432
11432
|
e.prototype = { p: {} };
|
|
@@ -11445,27 +11445,27 @@ var Ye = Ve, Ee = {};
|
|
|
11445
11445
|
}
|
|
11446
11446
|
return !1;
|
|
11447
11447
|
}();
|
|
11448
|
-
function
|
|
11448
|
+
function X(e, n) {
|
|
11449
11449
|
if (e.prototype.constructor = e, e.prototype["$is" + e.name] = e, n != null) {
|
|
11450
|
-
if (
|
|
11450
|
+
if (Y) {
|
|
11451
11451
|
e.prototype.__proto__ = n.prototype;
|
|
11452
11452
|
return;
|
|
11453
11453
|
}
|
|
11454
11454
|
var i = Object.create(n.prototype);
|
|
11455
|
-
|
|
11455
|
+
Q(e.prototype, i), e.prototype = i;
|
|
11456
11456
|
}
|
|
11457
11457
|
}
|
|
11458
|
-
function
|
|
11458
|
+
function t0(e, n) {
|
|
11459
11459
|
for (var i = 0; i < n.length; i++)
|
|
11460
|
-
|
|
11460
|
+
X(n[i], e);
|
|
11461
11461
|
}
|
|
11462
11462
|
function G(e, n) {
|
|
11463
11463
|
H(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11464
11464
|
}
|
|
11465
|
-
function
|
|
11465
|
+
function j(e, n) {
|
|
11466
11466
|
q(n.prototype, e.prototype), e.prototype.constructor = e;
|
|
11467
11467
|
}
|
|
11468
|
-
function
|
|
11468
|
+
function k(e, n, i, a) {
|
|
11469
11469
|
var s = e;
|
|
11470
11470
|
e[n] = s, e[i] = function() {
|
|
11471
11471
|
e[i] = function() {
|
|
@@ -11482,7 +11482,7 @@ var Ye = Ve, Ee = {};
|
|
|
11482
11482
|
return o;
|
|
11483
11483
|
};
|
|
11484
11484
|
}
|
|
11485
|
-
function
|
|
11485
|
+
function K(e, n, i, a) {
|
|
11486
11486
|
var s = e;
|
|
11487
11487
|
e[n] = s, e[i] = function() {
|
|
11488
11488
|
return e[n] === s && (e[n] = a()), e[i] = function() {
|
|
@@ -11490,7 +11490,7 @@ var Ye = Ve, Ee = {};
|
|
|
11490
11490
|
}, e[n];
|
|
11491
11491
|
};
|
|
11492
11492
|
}
|
|
11493
|
-
function
|
|
11493
|
+
function a0(e, n, i, a) {
|
|
11494
11494
|
var s = e;
|
|
11495
11495
|
e[n] = s, e[i] = function() {
|
|
11496
11496
|
if (e[n] === s) {
|
|
@@ -11503,7 +11503,7 @@ var Ye = Ve, Ee = {};
|
|
|
11503
11503
|
}, l;
|
|
11504
11504
|
};
|
|
11505
11505
|
}
|
|
11506
|
-
function
|
|
11506
|
+
function n0(e) {
|
|
11507
11507
|
return e.immutable$list = Array, e.fixed$length = Array, e;
|
|
11508
11508
|
}
|
|
11509
11509
|
function l0(e) {
|
|
@@ -11528,16 +11528,16 @@ var Ye = Ve, Ee = {};
|
|
|
11528
11528
|
};
|
|
11529
11529
|
}
|
|
11530
11530
|
var z = 0;
|
|
11531
|
-
function
|
|
11531
|
+
function u0(e, n, i, a, s, o, l, D, d, c) {
|
|
11532
11532
|
return typeof D == "number" && (D += z), { co: e, iS: n, iI: i, rC: a, dV: s, cs: o, fs: l, fT: D, aI: d || 0, nDA: c };
|
|
11533
11533
|
}
|
|
11534
11534
|
function r0(e, n, i, a, s, o, l, D) {
|
|
11535
|
-
var d =
|
|
11535
|
+
var d = u0(e, !0, !1, i, a, s, o, l, D, !1), c = V(d);
|
|
11536
11536
|
e[n] = c;
|
|
11537
11537
|
}
|
|
11538
|
-
function
|
|
11538
|
+
function s0(e, n, i, a, s, o, l, D, d, c) {
|
|
11539
11539
|
i = !!i;
|
|
11540
|
-
var p =
|
|
11540
|
+
var p = u0(e, !1, i, a, s, o, l, D, d, !!c), y = p0(i, p);
|
|
11541
11541
|
e[n] = y;
|
|
11542
11542
|
}
|
|
11543
11543
|
function W(e) {
|
|
@@ -11546,34 +11546,34 @@ var Ye = Ve, Ee = {};
|
|
|
11546
11546
|
T.interceptorsByTag = e;
|
|
11547
11547
|
return;
|
|
11548
11548
|
}
|
|
11549
|
-
|
|
11549
|
+
Q(e, n);
|
|
11550
11550
|
}
|
|
11551
|
-
function
|
|
11551
|
+
function i0(e) {
|
|
11552
11552
|
var n = T.leafTags;
|
|
11553
11553
|
if (!n) {
|
|
11554
11554
|
T.leafTags = e;
|
|
11555
11555
|
return;
|
|
11556
11556
|
}
|
|
11557
|
-
|
|
11557
|
+
Q(e, n);
|
|
11558
11558
|
}
|
|
11559
11559
|
function D0(e) {
|
|
11560
11560
|
var n = T.types, i = n.length;
|
|
11561
11561
|
return n.push.apply(n, e), i;
|
|
11562
11562
|
}
|
|
11563
|
-
function
|
|
11564
|
-
return
|
|
11563
|
+
function e0(e, n) {
|
|
11564
|
+
return Q(n, e), e;
|
|
11565
11565
|
}
|
|
11566
11566
|
var t = function() {
|
|
11567
11567
|
var e = function(i, a, s, o, l) {
|
|
11568
11568
|
return function(D, d, c, p) {
|
|
11569
|
-
return
|
|
11569
|
+
return s0(D, d, i, a, s, o, [c], p, l, !1);
|
|
11570
11570
|
};
|
|
11571
11571
|
}, n = function(i, a, s, o) {
|
|
11572
11572
|
return function(l, D, d, c) {
|
|
11573
11573
|
return r0(l, D, i, a, s, [d], c, o);
|
|
11574
11574
|
};
|
|
11575
11575
|
};
|
|
11576
|
-
return { inherit:
|
|
11576
|
+
return { inherit: X, inheritMany: t0, mixin: G, mixinHard: j, installStaticTearOff: r0, installInstanceTearOff: s0, _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: n0, lazy: K, lazyFinal: a0, lazyOld: k, updateHolder: e0, convertToFastObject: l0, updateTypes: D0, setOrUpdateInterceptorsByTag: W, setOrUpdateLeafTags: i0 };
|
|
11577
11577
|
}(), u = {
|
|
11578
11578
|
JS_CONST: function() {
|
|
11579
11579
|
},
|
|
@@ -11623,8 +11623,8 @@ var Ye = Ve, Ee = {};
|
|
|
11623
11623
|
}
|
|
11624
11624
|
},
|
|
11625
11625
|
Sort__dualPivotQuicksort(e, n, i, a) {
|
|
11626
|
-
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = 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, A), w = R.$index(e, M), v = R.$index(e, F),
|
|
11627
|
-
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(
|
|
11626
|
+
var s, o, l, D, d, c, p, y, m, g, h = $.JSInt_methods._tdivFast$1(i - n + 1, 6), A = 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, A), w = R.$index(e, M), v = R.$index(e, F), U = R.$index(e, x), Z = R.$index(e, C);
|
|
11627
|
+
if (a.call$2(L, w) > 0 && (s = w, w = L, L = s), a.call$2(U, Z) > 0 && (s = Z, Z = U, U = 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, U) > 0 && (s = U, U = L, L = s), a.call$2(v, U) > 0 && (s = U, U = v, v = s), a.call$2(w, Z) > 0 && (s = Z, Z = w, w = s), a.call$2(w, v) > 0 && (s = v, v = w, w = s), a.call$2(U, Z) > 0 && (s = Z, Z = U, U = s), R.$indexSet(e, A, L), R.$indexSet(e, F, v), R.$indexSet(e, C, Z), 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, U), 0)) {
|
|
11628
11628
|
for (D = o; D <= l; ++D)
|
|
11629
11629
|
if (d = R.$index(e, D), c = a.call$2(d, w), c !== 0)
|
|
11630
11630
|
if (c < 0)
|
|
@@ -11646,9 +11646,9 @@ var Ye = Ve, Ee = {};
|
|
|
11646
11646
|
for (D = o; D <= l; ++D)
|
|
11647
11647
|
if (d = R.$index(e, D), a.call$2(d, w) < 0)
|
|
11648
11648
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11649
|
-
else if (a.call$2(d,
|
|
11649
|
+
else if (a.call$2(d, U) > 0)
|
|
11650
11650
|
for (; ; )
|
|
11651
|
-
if (a.call$2(R.$index(e, l),
|
|
11651
|
+
if (a.call$2(R.$index(e, l), U) > 0) {
|
|
11652
11652
|
if (--l, l < D)
|
|
11653
11653
|
break;
|
|
11654
11654
|
continue;
|
|
@@ -11658,18 +11658,18 @@ var Ye = Ve, Ee = {};
|
|
|
11658
11658
|
}
|
|
11659
11659
|
m = !1;
|
|
11660
11660
|
}
|
|
11661
|
-
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,
|
|
11661
|
+
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, U), u.Sort__doSort(e, n, o - 2, a), u.Sort__doSort(e, l + 2, i, a), !m)
|
|
11662
11662
|
if (o < A && l > C) {
|
|
11663
11663
|
for (; _.$eq$(a.call$2(R.$index(e, o), w), 0); )
|
|
11664
11664
|
++o;
|
|
11665
|
-
for (; _.$eq$(a.call$2(R.$index(e, l),
|
|
11665
|
+
for (; _.$eq$(a.call$2(R.$index(e, l), U), 0); )
|
|
11666
11666
|
--l;
|
|
11667
11667
|
for (D = o; D <= l; ++D)
|
|
11668
11668
|
if (d = R.$index(e, D), a.call$2(d, w) === 0)
|
|
11669
11669
|
D !== o && (R.$indexSet(e, D, R.$index(e, o)), R.$indexSet(e, o, d)), ++o;
|
|
11670
|
-
else if (a.call$2(d,
|
|
11670
|
+
else if (a.call$2(d, U) === 0)
|
|
11671
11671
|
for (; ; )
|
|
11672
|
-
if (a.call$2(R.$index(e, l),
|
|
11672
|
+
if (a.call$2(R.$index(e, l), U) === 0) {
|
|
11673
11673
|
if (--l, l < D)
|
|
11674
11674
|
break;
|
|
11675
11675
|
continue;
|
|
@@ -12034,8 +12034,8 @@ var Ye = Ve, Ee = {};
|
|
|
12034
12034
|
var n, i, a, s, o, l, D, d, c, p, y = e.co, m = e.iS, g = e.iI, h = e.nDA, A = e.aI, C = e.fs, F = e.cs, M = C[0], x = F[0], R = y[M], L = e.fT;
|
|
12035
12035
|
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() {
|
|
12036
12036
|
this.$initialize();
|
|
12037
|
-
} : i = function(v,
|
|
12038
|
-
this.$initialize(v,
|
|
12037
|
+
} : i = function(v, U) {
|
|
12038
|
+
this.$initialize(v, U);
|
|
12039
12039
|
}, 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)
|
|
12040
12040
|
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 === A && (o = D);
|
|
12041
12041
|
return n["call*"] = o, n.$requiredArgCount = e.rC, n.$defaultValues = e.dV, i;
|
|
@@ -12771,24 +12771,24 @@ var Ye = Ve, Ee = {};
|
|
|
12771
12771
|
return o + "})";
|
|
12772
12772
|
},
|
|
12773
12773
|
_functionRtiToString(e, n, i) {
|
|
12774
|
-
var a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v,
|
|
12774
|
+
var a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U = ", ";
|
|
12775
12775
|
if (i != null) {
|
|
12776
12776
|
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)
|
|
12777
12777
|
n.push("T" + (o + l));
|
|
12778
|
-
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p =
|
|
12778
|
+
for (D = r.nullable_Object, d = r.legacy_Object, c = "<", p = "", l = 0; l < a; ++l, p = U)
|
|
12779
12779
|
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));
|
|
12780
12780
|
c += ">";
|
|
12781
12781
|
} else
|
|
12782
12782
|
c = "", s = null;
|
|
12783
|
-
for (D = e._primary, h = e._rest, A = h._requiredPositional, C = A.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 =
|
|
12783
|
+
for (D = e._primary, h = e._rest, A = h._requiredPositional, C = A.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 = U)
|
|
12784
12784
|
w += v + u._rtiToString(A[l], n);
|
|
12785
12785
|
if (M > 0) {
|
|
12786
|
-
for (w += v + "[", v = "", l = 0; l < M; ++l, v =
|
|
12786
|
+
for (w += v + "[", v = "", l = 0; l < M; ++l, v = U)
|
|
12787
12787
|
w += v + u._rtiToString(F[l], n);
|
|
12788
12788
|
w += "]";
|
|
12789
12789
|
}
|
|
12790
12790
|
if (R > 0) {
|
|
12791
|
-
for (w += v + "{", v = "", l = 0; l < R; l += 3, v =
|
|
12791
|
+
for (w += v + "{", v = "", l = 0; l < R; l += 3, v = U)
|
|
12792
12792
|
w += v, x[l + 1] && (w += "required "), w += u._rtiToString(x[l + 2], n) + " " + x[l];
|
|
12793
12793
|
w += "}";
|
|
12794
12794
|
}
|
|
@@ -13150,7 +13150,7 @@ var Ye = Ve, Ee = {};
|
|
|
13150
13150
|
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);
|
|
13151
13151
|
},
|
|
13152
13152
|
_isFunctionSubtype(e, n, i, a, s) {
|
|
13153
|
-
var o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v,
|
|
13153
|
+
var o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U, Z, f0;
|
|
13154
13154
|
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, A = g.length, c + h < p + A))
|
|
13155
13155
|
return !1;
|
|
13156
13156
|
for (C = 0; C < c; ++C)
|
|
@@ -13163,10 +13163,10 @@ var Ye = Ve, Ee = {};
|
|
|
13163
13163
|
if (F = m[y + C], !u._isSubtype(e, g[C], s, F, i))
|
|
13164
13164
|
return !1;
|
|
13165
13165
|
for (M = o._named, x = l._named, R = M.length, L = x.length, w = 0, v = 0; v < L; v += 3)
|
|
13166
|
-
for (
|
|
13167
|
-
if (w >= R || (
|
|
13166
|
+
for (U = x[v]; ; ) {
|
|
13167
|
+
if (w >= R || (Z = M[w], w += 3, U < Z))
|
|
13168
13168
|
return !1;
|
|
13169
|
-
if (f0 = M[w - 2],
|
|
13169
|
+
if (f0 = M[w - 2], Z < U) {
|
|
13170
13170
|
if (f0)
|
|
13171
13171
|
return !1;
|
|
13172
13172
|
continue;
|
|
@@ -14614,9 +14614,9 @@ var Ye = Ve, Ee = {};
|
|
|
14614
14614
|
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;
|
|
14615
14615
|
},
|
|
14616
14616
|
formatBaseXYChartData(e, n, i, a, s) {
|
|
14617
|
-
var o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v,
|
|
14617
|
+
var o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U, Z, f0, g0, o0, h0, F0, x0, L0, C0, M0, O0, R0, k0 = null;
|
|
14618
14618
|
if (i.length === 0)
|
|
14619
|
-
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 ?
|
|
14619
|
+
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 ? k0 : D.dateRange, k0));
|
|
14620
14620
|
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, A = 0; C = p.length, A < C; p.length === D || (0, u.throwConcurrentModificationError)(p), ++A)
|
|
14621
14621
|
F = p[A], l.$indexSet(0, F.id, F.nullable);
|
|
14622
14622
|
for (D = u.LinkedHashMap_LinkedHashMap$_empty(o, o), A = 0; A < p.length; p.length === C || (0, u.throwConcurrentModificationError)(p), ++A)
|
|
@@ -14632,14 +14632,14 @@ var Ye = Ve, Ee = {};
|
|
|
14632
14632
|
C.$indexSet(0, d[R].id, R);
|
|
14633
14633
|
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));
|
|
14634
14634
|
}
|
|
14635
|
-
for (C = r.JSArray_String, v = u._setArrayType([], C),
|
|
14636
|
-
|
|
14637
|
-
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(
|
|
14638
|
-
for (o0 = f0[A], h0 = u._setArrayType([], L),
|
|
14639
|
-
O0 = v[
|
|
14640
|
-
g0.push(new u.XYDatasetModel(
|
|
14635
|
+
for (C = r.JSArray_String, v = u._setArrayType([], C), U = u._setArrayType([], C), C = y.length, A = 0; A < y.length; y.length === C || (0, u.throwConcurrentModificationError)(y), ++A)
|
|
14636
|
+
Z = y[A], L = _.getInterceptor$asx(Z), v.push(_.toString$0$(L.$index(Z, 0))), U.push(_.toString$0$(L.$index(Z, 1)));
|
|
14637
|
+
for (C = u.LinkedHashSet_LinkedHashSet$from(v, o), v = u.List_List$of(C, !0, u._instanceType(C)._precomputed1), o = u.LinkedHashSet_LinkedHashSet$from(U, o), f0 = u.List_List$of(o, !0, u._instanceType(o)._precomputed1), g0 = u._setArrayType([], r.JSArray_XYDatasetModel), o = f0.length, C = _.getInterceptor$asx(m), L = r.JSArray_nullable_num, A = 0; A < f0.length; f0.length === o || (0, u.throwConcurrentModificationError)(f0), ++A) {
|
|
14638
|
+
for (o0 = f0[A], h0 = u._setArrayType([], L), F0 = u._setArrayType([], L), x0 = x.$index(0, o0), w = l.$index(0, x0 ?? o0), L0 = w === !0, w = M.$index(0, o0), C0 = w ?? D.$index(0, o0), C0 == null && (C0 = o0), w = v.length, M0 = 0; M0 < v.length; v.length === w || (0, u.throwConcurrentModificationError)(v), ++M0)
|
|
14639
|
+
O0 = v[M0], R0 = u.IterableExtension_firstWhereOrNull(y, new u.formatBaseXYChartData_closure5(O0, o0)), h0.push(u._parseMetricValue(R0 == null ? k0 : u.ListExtension_elementAtOrNull(R0, 2), L0)), C.get$length(m) !== 0 && (R0 = u.IterableExtension_firstWhereOrNull(m, new u.formatBaseXYChartData_closure6(O0, o0)), F0.push(u._parseMetricValue(R0 == null ? k0 : u.ListExtension_elementAtOrNull(R0, 2), L0)));
|
|
14640
|
+
g0.push(new u.XYDatasetModel(C0, !1, h0)), F0.length !== 0 && g0.push(new u.XYDatasetModel(C0, !0, F0));
|
|
14641
14641
|
}
|
|
14642
|
-
return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ?
|
|
14642
|
+
return g0 = u.accumulate(n, g0), o = u.IterableExtension_get_firstOrNull(i), o = o == null ? k0 : o.dateRange, l = u.ListExtension_elementAtOrNull(i, 1), new u.BaseXYChartDataModel(e, v, g0, new u.DateComparison(o, l == null ? k0 : l.dateRange));
|
|
14643
14643
|
},
|
|
14644
14644
|
_formatRows_closure: function(n, i) {
|
|
14645
14645
|
this.response = n, this.timezone = i;
|
|
@@ -14846,16 +14846,16 @@ var Ye = Ve, Ee = {};
|
|
|
14846
14846
|
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")));
|
|
14847
14847
|
},
|
|
14848
14848
|
formatTableChartData(e, n, i, a) {
|
|
14849
|
-
var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v,
|
|
14849
|
+
var s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w, v, U = {};
|
|
14850
14850
|
if (n.length === 0)
|
|
14851
14851
|
return new u.TableDataModel(u._setArrayType([], r.JSArray_TableRowModel), u._setArrayType([], r.JSArray_TableColumnModel));
|
|
14852
|
-
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 =
|
|
14852
|
+
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 = U.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), U.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>"), A = 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)
|
|
14853
14853
|
M = s[F], C.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14854
|
-
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s =
|
|
14854
|
+
for (x = u.LinkedHashMap_LinkedHashMap$_empty(o, l), F = 0; s = U.comparison.columns, F < s.length; ++F)
|
|
14855
14855
|
M = s[F], x.$indexSet(0, M.key + "_" + M.hide, F);
|
|
14856
14856
|
for (R = u._setArrayType([], r.JSArray__ColumnMapping), s = A.length, L = 0; L < s; ++L)
|
|
14857
14857
|
M = A[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));
|
|
14858
|
-
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 =
|
|
14858
|
+
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 = U.comparison.rows.length, o = r.TableRowModel, o = u.ListExtensions_mapIndexed(m.rows, new u.formatTableChartData_closure9(U, 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")));
|
|
14859
14859
|
},
|
|
14860
14860
|
_formatTableResponse_closure: function(n) {
|
|
14861
14861
|
this.config = n;
|
|
@@ -19101,18 +19101,18 @@ Arguments: [` + d + "]";
|
|
|
19101
19101
|
$signature: 0
|
|
19102
19102
|
}, u._formatTableResponse_closure5.prototype = {
|
|
19103
19103
|
call$2(e, n) {
|
|
19104
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic,
|
|
19104
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R, L, w = null, v = r.JSArray_List_dynamic, U = u._setArrayType([[]], v), Z = u._setArrayType([[]], v);
|
|
19105
19105
|
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)
|
|
19106
19106
|
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)
|
|
19107
|
-
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c =
|
|
19108
|
-
C =
|
|
19107
|
+
for (y = c.firstWhere$1(d, new u._formatTableResponse__closure6()), m = c.fold$2(d, !0, new u._formatTableResponse__closure7(n)), c = U.length, g = y.type, h = y.columnValue, A = 0; A < U.length; U.length === c || (0, u.throwConcurrentModificationError)(U), ++A)
|
|
19108
|
+
C = U[A], 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);
|
|
19109
19109
|
else if ($.JSArray_methods.contains$1(u._setArrayType(["_metric_name", "_metric_value"], s), p))
|
|
19110
19110
|
for (c = p === "_metric_value", g = p === "_metric_name", x = 0; x < l.length; ++x)
|
|
19111
|
-
R = l[x], u.ListExtension_elementAtOrNull(
|
|
19111
|
+
R = l[x], u.ListExtension_elementAtOrNull(U, x) == null && (U.push(u.List_List$of(U[0], !0, a)), Z.push(u.List_List$of(Z[0], !0, a))), g ? (h = U[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, Z[x].push(F)) : c && (h = U[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);
|
|
19112
19112
|
else
|
|
19113
|
-
for (L = 0; L <
|
|
19114
|
-
c =
|
|
19115
|
-
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(
|
|
19113
|
+
for (L = 0; L < U.length; ++L)
|
|
19114
|
+
c = U[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, Z[L].push(i.$index(0, p));
|
|
19115
|
+
return _.addAll$1$ax(e, u.ListExtensions_mapIndexed(U, new u._formatTableResponse__closure8(Z, n), r.List_dynamic, r.Map_String_dynamic)), e;
|
|
19116
19116
|
},
|
|
19117
19117
|
$signature: 79
|
|
19118
19118
|
}, u._formatTableResponse__closure4.prototype = {
|
|
@@ -19351,9 +19351,9 @@ Arguments: [` + d + "]";
|
|
|
19351
19351
|
$signature: 99
|
|
19352
19352
|
}, u.formatTableChartData_closure9.prototype = {
|
|
19353
19353
|
call$2(e, n) {
|
|
19354
|
-
var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R = this, L = [], w = [], v = n.cells,
|
|
19354
|
+
var i, a, s, o, l, D, d, c, p, y, m, g, h, A, C, F, M, x, R = this, L = [], w = [], v = n.cells, U = _.getInterceptor$asx(v), Z = U.get$length(v);
|
|
19355
19355
|
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)
|
|
19356
|
-
p = i[c], y = p.mainIndex, m = y >= 0 && y <
|
|
19356
|
+
p = i[c], y = p.mainIndex, m = y >= 0 && y < Z ? U.$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 ? (A = d.comparison.rows[e].cells, C = _.getInterceptor$asx(A), F = C.get$length(A), M = p.comparisonIndex, x = M >= 0 && M < F ? C.$index(A, M) : u.ListExtension_elementAtOrNull(A, 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)));
|
|
19357
19357
|
return n.copyWith$2$cells$comparisonCells(L, w);
|
|
19358
19358
|
},
|
|
19359
19359
|
$signature: 7
|
|
@@ -19792,8 +19792,8 @@ Arguments: [` + d + "]";
|
|
|
19792
19792
|
return a.message;
|
|
19793
19793
|
}
|
|
19794
19794
|
}())), 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", () => {
|
|
19795
|
-
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), A = 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),
|
|
19796
|
-
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", A, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de",
|
|
19795
|
+
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), A = 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), U = u.DeLocale$($.StartOfWeek_2), Z = u.DeLocale$($.StartOfWeek_2), f0 = u.DeLocale$($.StartOfWeek_2), g0 = u.DeLocale$($.StartOfWeek_2), o0 = u.ItLocale$($.StartOfWeek_2), h0 = u.ItLocale$($.StartOfWeek_2), F0 = u.ArLyLocale$(!0, $.StartOfWeek_0), x0 = u.ArLyLocale$(!1, $.StartOfWeek_0), L0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), C0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_1), M0 = u.ArSaMaDzKwTnLocale$(!0, $.StartOfWeek_1), O0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0), R0 = u.ArSaMaDzKwTnLocale$(!1, $.StartOfWeek_0);
|
|
19796
|
+
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", A, "es_us", C, "fr", F, "fr_ch", M, "fr_ca", x, "zh", R, "zh_cn", L, "zh_hk", w, "zh_tw", v, "de", U, "de_de", Z, "de_at", f0, "de_ch", g0, "it", o0, "it_ch", h0, "ar", F0, "ar_ly", x0, "ar_dz", L0, "ar_kw", C0, "ar_sa", M0, "ar_ma", O0, "ar_tn", R0, "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"));
|
|
19797
19797
|
}), n(b, "_UTC", "$get$_UTC", () => {
|
|
19798
19798
|
var a = r.JSArray_int;
|
|
19799
19799
|
return u.Location$("UTC", u._setArrayType([-864e13], a), u._setArrayType([0], a), u._setArrayType([$.TimeZone_0_false_UTC], r.JSArray_TimeZone));
|
|
@@ -19852,78 +19852,78 @@ Arguments: [` + d + "]";
|
|
|
19852
19852
|
});
|
|
19853
19853
|
})();
|
|
19854
19854
|
};
|
|
19855
|
-
})(
|
|
19856
|
-
const
|
|
19857
|
-
|
|
19858
|
-
var
|
|
19859
|
-
const
|
|
19855
|
+
})(Te);
|
|
19856
|
+
const Ce = Te;
|
|
19857
|
+
Ce.load({});
|
|
19858
|
+
var ze = Ce;
|
|
19859
|
+
const _e = new Intl.Collator(void 0, { numeric: !0, sensitivity: "base" }), We = (() => {
|
|
19860
19860
|
const E = new Intl.DateTimeFormat("en-US", { weekday: "short" });
|
|
19861
19861
|
return Array.from(
|
|
19862
19862
|
{ length: 7 },
|
|
19863
19863
|
(I, O) => E.format(new Date(1970, 0, 4 + O)).toLowerCase().slice(0, 3)
|
|
19864
19864
|
);
|
|
19865
19865
|
})();
|
|
19866
|
-
function
|
|
19866
|
+
function De(E) {
|
|
19867
19867
|
if (E == null || E === "") return null;
|
|
19868
19868
|
const I = String(E).trim();
|
|
19869
19869
|
if (I === "") return null;
|
|
19870
|
-
const O = I.toLowerCase().slice(0, 3), P =
|
|
19870
|
+
const O = I.toLowerCase().slice(0, 3), P = We.indexOf(O);
|
|
19871
19871
|
if (P !== -1 && I.length <= 3)
|
|
19872
19872
|
return { type: "dayName", value: P };
|
|
19873
19873
|
const B = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})\s+(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19874
19874
|
if (B) {
|
|
19875
|
-
const [, H,
|
|
19875
|
+
const [, H, Y, X, t0, G, j = "0"] = B;
|
|
19876
19876
|
return {
|
|
19877
19877
|
type: "fullDateTime",
|
|
19878
19878
|
value: new Date(
|
|
19879
|
-
parseInt(
|
|
19880
|
-
parseInt(
|
|
19879
|
+
parseInt(X),
|
|
19880
|
+
parseInt(Y) - 1,
|
|
19881
19881
|
parseInt(H),
|
|
19882
|
-
parseInt(
|
|
19882
|
+
parseInt(t0),
|
|
19883
19883
|
parseInt(G),
|
|
19884
|
-
parseInt(
|
|
19884
|
+
parseInt(j)
|
|
19885
19885
|
).getTime()
|
|
19886
19886
|
};
|
|
19887
19887
|
}
|
|
19888
19888
|
const N = I.match(/^(\d{1,2})\/(\d{1,2})\/(\d{4})$/);
|
|
19889
19889
|
if (N) {
|
|
19890
|
-
const [, H,
|
|
19890
|
+
const [, H, Y, X] = N;
|
|
19891
19891
|
return {
|
|
19892
19892
|
type: "date",
|
|
19893
|
-
value: new Date(parseInt(
|
|
19893
|
+
value: new Date(parseInt(X), parseInt(Y) - 1, parseInt(H)).getTime()
|
|
19894
19894
|
};
|
|
19895
19895
|
}
|
|
19896
19896
|
const J = I.match(/^(\d{4})\/(\d{1,2})\/(\d{1,2})$/);
|
|
19897
19897
|
if (J) {
|
|
19898
|
-
const [, H,
|
|
19898
|
+
const [, H, Y, X] = J;
|
|
19899
19899
|
return {
|
|
19900
19900
|
type: "date",
|
|
19901
|
-
value: new Date(parseInt(H), parseInt(
|
|
19901
|
+
value: new Date(parseInt(H), parseInt(Y) - 1, parseInt(X)).getTime()
|
|
19902
19902
|
};
|
|
19903
19903
|
}
|
|
19904
|
-
const
|
|
19905
|
-
if (
|
|
19906
|
-
const [, H,
|
|
19904
|
+
const Q = I.match(/^(\d{1,2})\/(\d{4})$/);
|
|
19905
|
+
if (Q) {
|
|
19906
|
+
const [, H, Y] = Q;
|
|
19907
19907
|
return {
|
|
19908
19908
|
type: "monthYear",
|
|
19909
|
-
value: new Date(parseInt(
|
|
19909
|
+
value: new Date(parseInt(Y), parseInt(H) - 1, 1).getTime()
|
|
19910
19910
|
};
|
|
19911
19911
|
}
|
|
19912
19912
|
const q = I.match(/^(\d{1,2}):(\d{2})(?::(\d{2}))?$/);
|
|
19913
19913
|
if (q) {
|
|
19914
|
-
const [, H,
|
|
19914
|
+
const [, H, Y, X = "0"] = q;
|
|
19915
19915
|
return {
|
|
19916
19916
|
type: "time",
|
|
19917
|
-
value: parseInt(H) * 3600 + parseInt(
|
|
19917
|
+
value: parseInt(H) * 3600 + parseInt(Y) * 60 + parseInt(X)
|
|
19918
19918
|
};
|
|
19919
19919
|
}
|
|
19920
19920
|
return /^\d+$/.test(I) ? { type: "number", value: parseInt(I) } : null;
|
|
19921
19921
|
}
|
|
19922
|
-
function
|
|
19923
|
-
const O =
|
|
19922
|
+
function de(E, I) {
|
|
19923
|
+
const O = De(E), P = De(I);
|
|
19924
19924
|
return !O && !P ? null : O ? P ? (O.type === P.type, O.value - P.value) : -1 : 1;
|
|
19925
19925
|
}
|
|
19926
|
-
function
|
|
19926
|
+
function je(E, I) {
|
|
19927
19927
|
var P;
|
|
19928
19928
|
const O = { isRollup: E.isRollup };
|
|
19929
19929
|
for (let B = 0; B < I.length; B++) {
|
|
@@ -19935,20 +19935,20 @@ function We(E, I) {
|
|
|
19935
19935
|
}
|
|
19936
19936
|
return O;
|
|
19937
19937
|
}
|
|
19938
|
-
function
|
|
19938
|
+
function Ke(E, I) {
|
|
19939
19939
|
if (E <= 0) return [];
|
|
19940
19940
|
const O = {};
|
|
19941
19941
|
for (const P of I) O[P.key] = void 0;
|
|
19942
19942
|
return Array.from({ length: E }, () => ({ ...O }));
|
|
19943
19943
|
}
|
|
19944
|
-
function
|
|
19944
|
+
function V0(E, I, O) {
|
|
19945
19945
|
var B, N;
|
|
19946
19946
|
if (((B = E[I]) == null ? void 0 : B.main) !== void 0) return E[I].main;
|
|
19947
19947
|
const P = O.findIndex((J) => J.key === I);
|
|
19948
19948
|
return P >= 0 ? (N = E.cells) == null ? void 0 : N[P] : void 0;
|
|
19949
19949
|
}
|
|
19950
|
-
function
|
|
19951
|
-
var
|
|
19950
|
+
function Ze(E) {
|
|
19951
|
+
var K, a0, n0, l0, c0, p0;
|
|
19952
19952
|
const {
|
|
19953
19953
|
rows: I = [],
|
|
19954
19954
|
columns: O = [],
|
|
@@ -19957,83 +19957,83 @@ function Ke(E) {
|
|
|
19957
19957
|
grandTotalPosition: N = null,
|
|
19958
19958
|
pageSize: J = 0
|
|
19959
19959
|
} = E;
|
|
19960
|
-
let
|
|
19961
|
-
N === "BOTTOM" && ((
|
|
19960
|
+
let Q = Array.isArray(I) ? [...I] : [];
|
|
19961
|
+
N === "BOTTOM" && ((K = Q.at(-1)) != null && K.isRollup) && Q.pop(), N === "TOP" && ((a0 = Q[0]) != null && a0.isRollup) && Q.shift();
|
|
19962
19962
|
let q = 0;
|
|
19963
|
-
for (const V of
|
|
19963
|
+
for (const V of Q)
|
|
19964
19964
|
V.isRollup && q++, V.groupIndex = q;
|
|
19965
19965
|
const H = {};
|
|
19966
19966
|
for (const V of O) H[V.key] = V.type === "NUMERIC";
|
|
19967
|
-
const
|
|
19967
|
+
const Y = P.filter(
|
|
19968
19968
|
(V) => V.key && O.some((z) => z.key === V.key)
|
|
19969
|
-
),
|
|
19970
|
-
let
|
|
19971
|
-
B !== null && (
|
|
19969
|
+
), X = Y.length > 0;
|
|
19970
|
+
let t0 = I;
|
|
19971
|
+
B !== null && (t0 = t0.filter((V) => !(B !== "" && (V.isRollup === !0 || !V.cells.some((z) => ((z == null ? void 0 : z.toLowerCase()) || "").includes(B == null ? void 0 : B.toLowerCase()))))).map((V) => ({ ...je(V, O), groupIndex: V.groupIndex })));
|
|
19972
19972
|
const G = {};
|
|
19973
|
-
for (const V of
|
|
19973
|
+
for (const V of t0) {
|
|
19974
19974
|
const z = V.groupIndex;
|
|
19975
19975
|
z !== void 0 && (G[z] || (G[z] = [])).push(V);
|
|
19976
19976
|
}
|
|
19977
|
-
|
|
19978
|
-
const z = V.filter((r0) => r0.isRollup),
|
|
19979
|
-
|
|
19980
|
-
for (const { key: W, type:
|
|
19981
|
-
const D0 =
|
|
19977
|
+
X && Object.values(G).forEach((V) => {
|
|
19978
|
+
const z = V.filter((r0) => r0.isRollup), u0 = V.filter((r0) => !r0.isRollup);
|
|
19979
|
+
u0.sort((r0, s0) => {
|
|
19980
|
+
for (const { key: W, type: i0 } of Y) {
|
|
19981
|
+
const D0 = i0 === "ASC" ? 1 : -1, e0 = V0(r0, W, O) ?? "", t = V0(s0, W, O) ?? "";
|
|
19982
19982
|
if (H[W]) {
|
|
19983
|
-
const u = Number(
|
|
19983
|
+
const u = Number(e0) - Number(t);
|
|
19984
19984
|
if (u !== 0) return u * D0;
|
|
19985
19985
|
} else {
|
|
19986
|
-
const u =
|
|
19986
|
+
const u = de(e0, t);
|
|
19987
19987
|
if (u !== null && u !== 0)
|
|
19988
19988
|
return u * D0;
|
|
19989
|
-
const _ =
|
|
19989
|
+
const _ = _e.compare(String(e0), String(t));
|
|
19990
19990
|
if (_ !== 0) return _ * D0;
|
|
19991
19991
|
}
|
|
19992
19992
|
}
|
|
19993
19993
|
return 0;
|
|
19994
|
-
}), G[V[0].groupIndex] = z.concat(
|
|
19994
|
+
}), G[V[0].groupIndex] = z.concat(u0);
|
|
19995
19995
|
});
|
|
19996
|
-
let
|
|
19997
|
-
if (
|
|
19996
|
+
let j;
|
|
19997
|
+
if (X) {
|
|
19998
19998
|
const V = N === null ? (() => {
|
|
19999
|
-
const r0 = Object.keys(G).find((
|
|
20000
|
-
const W = G[
|
|
20001
|
-
return
|
|
19999
|
+
const r0 = Object.keys(G).find((s0) => {
|
|
20000
|
+
const W = G[s0] || [], i0 = W.some((e0) => e0.isRollup), D0 = W.some((e0) => !e0.isRollup);
|
|
20001
|
+
return i0 && !D0;
|
|
20002
20002
|
});
|
|
20003
20003
|
return r0 !== void 0 ? Number(r0) : -1;
|
|
20004
|
-
})() : -1, z = ((
|
|
20005
|
-
|
|
20006
|
-
if (!z) return r0 -
|
|
20004
|
+
})() : -1, z = ((n0 = Y[0]) == null ? void 0 : n0.key) ?? ((l0 = O.find((r0) => H[r0.key])) == null ? void 0 : l0.key), u0 = ((c0 = Y[0]) == null ? void 0 : c0.type) === "ASC" ? 1 : (((p0 = Y[0]) == null ? void 0 : p0.type) === "DESC", -1);
|
|
20005
|
+
j = Object.keys(G).map(Number).sort((r0, s0) => {
|
|
20006
|
+
if (!z) return r0 - s0;
|
|
20007
20007
|
if (V !== -1) {
|
|
20008
20008
|
if (r0 === V) return -1;
|
|
20009
|
-
if (
|
|
20009
|
+
if (s0 === V) return 1;
|
|
20010
20010
|
}
|
|
20011
|
-
const W = G[r0].find((u) => u.isRollup),
|
|
20012
|
-
if (H[z]) return (Number(D0) - Number(
|
|
20013
|
-
const t =
|
|
20014
|
-
return t !== null ? t *
|
|
20011
|
+
const W = G[r0].find((u) => u.isRollup), i0 = G[s0].find((u) => u.isRollup), D0 = W ? V0(W, z, O) ?? "" : "", e0 = i0 ? V0(i0, z, O) ?? "" : "";
|
|
20012
|
+
if (H[z]) return (Number(D0) - Number(e0)) * u0;
|
|
20013
|
+
const t = de(D0, e0);
|
|
20014
|
+
return t !== null ? t * u0 : _e.compare(String(D0), String(e0)) * u0;
|
|
20015
20015
|
});
|
|
20016
20016
|
} else
|
|
20017
|
-
|
|
20018
|
-
const
|
|
20019
|
-
for (const V of
|
|
20020
|
-
for (const { groupIndex: z, ...
|
|
20021
|
-
|
|
20017
|
+
j = Object.keys(G).map(Number).sort((V, z) => V - z);
|
|
20018
|
+
const k = [];
|
|
20019
|
+
for (const V of j)
|
|
20020
|
+
for (const { groupIndex: z, ...u0 } of G[V])
|
|
20021
|
+
k.push(u0);
|
|
20022
20022
|
if (J > 0) {
|
|
20023
|
-
const V =
|
|
20023
|
+
const V = k.length % J;
|
|
20024
20024
|
let z = 0;
|
|
20025
|
-
V > 0 ? z = J - V :
|
|
20025
|
+
V > 0 ? z = J - V : k.length === 0 && (z = J), z > 0 && k.push(...Ke(z, O));
|
|
20026
20026
|
}
|
|
20027
|
-
return { data:
|
|
20027
|
+
return { data: k };
|
|
20028
20028
|
}
|
|
20029
|
-
var
|
|
20030
|
-
const
|
|
20031
|
-
var
|
|
20029
|
+
var et = { processTableData: Ze };
|
|
20030
|
+
const tt = Ge, rt = ze, nt = et;
|
|
20031
|
+
var ae = {
|
|
20032
|
+
...nt,
|
|
20032
20033
|
...rt,
|
|
20033
|
-
...tt
|
|
20034
|
-
|
|
20035
|
-
|
|
20036
|
-
function nr(E) {
|
|
20034
|
+
...tt
|
|
20035
|
+
}, Q0 = /* @__PURE__ */ ((E) => (E.DateTime = "DATE_TIME", E.Hour = "HOUR", E.Day = "DAY", E.Week = "WEEK", E.Month = "MONTH", E.TimeOfDay = "TIME_OF_DAY", E.HourOfDay = "HOUR_OF_DAY", E.DayOfWeek = "DAY_OF_WEEK", E.DayOfMonth = "DAY_OF_MONTH", E.MonthOfYear = "MONTH_OF_YEAR", E.Year = "YEAR", E.YearMonthDay = "YEAR_MONTH_DAY", E))(Q0 || {}), it = /* @__PURE__ */ ((E) => (E.Asc = "ASC", E.Desc = "DESC", E))(it || {}), ue = /* @__PURE__ */ ((E) => (E.Equal = "EQUAL", E.NotEqual = "NOT_EQUAL", E.GreaterThan = "GREATER_THAN", E.LessThan = "LESS_THAN", E.GreaterThanOrEqual = "GREATER_THAN_OR_EQUAL", E.LessThanOrEqual = "LESS_THAN_OR_EQUAL", E.Between = "BETWEEN", E.Like = "LIKE", E.NotLike = "NOT_LIKE", E.And = "AND", E.Or = "OR", E))(ue || {}), at = /* @__PURE__ */ ((E) => (E.String = "STRING", E.Timestamp = "TIMESTAMP", E.Bool = "BOOL", E.Numeric = "NUMERIC", E))(at || {}), ut = /* @__PURE__ */ ((E) => (E.MTD = "MTD", E))(ut || {}), st = /* @__PURE__ */ ((E) => (E.Scorecard = "SCORECARD", E.Spacer = "SPACER", E.Table = "TABLE", E.BarChart = "BARCHART", E.StackBarChart = "STACKBARCHART", E.ClusteredStackBarChart = "CLUSTEREDSTACKBARCHART", E.LineChart = "LINECHART", E.StackLineChart = "STACKLINECHART", E.Circular = "CIRCULAR", E))(st || {}), ot = /* @__PURE__ */ ((E) => (E.EXCEL = "excel", E.PDF = "pdf", E.PDFFULLSIZE = "pdfFullSize", E.PDFRECEIPT = "pdfReceipt", E))(ot || {}), lt = /* @__PURE__ */ ((E) => (E.PORTRAIT = "portrait", E.LANDSCAPE = "landscape", E))(lt || {});
|
|
20036
|
+
function ir(E) {
|
|
20037
20037
|
switch (E) {
|
|
20038
20038
|
case "excel":
|
|
20039
20039
|
return "Excel";
|
|
@@ -20047,7 +20047,7 @@ function nr(E) {
|
|
|
20047
20047
|
return "Unknown";
|
|
20048
20048
|
}
|
|
20049
20049
|
}
|
|
20050
|
-
function
|
|
20050
|
+
function ar(E) {
|
|
20051
20051
|
switch (E) {
|
|
20052
20052
|
case "landscape":
|
|
20053
20053
|
return "report.common.landscape";
|
|
@@ -20057,92 +20057,92 @@ function ir(E) {
|
|
|
20057
20057
|
return "report.input.unknown";
|
|
20058
20058
|
}
|
|
20059
20059
|
}
|
|
20060
|
-
const B0 = "/report-settings",
|
|
20060
|
+
const B0 = "/report-settings", _t = async () => {
|
|
20061
20061
|
const { businessId: E } = d0($0());
|
|
20062
20062
|
if (E) {
|
|
20063
20063
|
const I = {
|
|
20064
20064
|
fetchType: m0.Get,
|
|
20065
20065
|
url: `${B0}/${E.value}/reports`
|
|
20066
20066
|
};
|
|
20067
|
-
return
|
|
20067
|
+
return E0.fetch(I);
|
|
20068
20068
|
} else
|
|
20069
20069
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20070
|
-
},
|
|
20070
|
+
}, Dt = (E) => {
|
|
20071
20071
|
const { businessId: I } = d0($0()), O = {
|
|
20072
20072
|
fetchType: m0.Put,
|
|
20073
20073
|
url: `${B0}/${I.value}/reports/${E.id}`,
|
|
20074
20074
|
data: E
|
|
20075
20075
|
};
|
|
20076
|
-
return
|
|
20077
|
-
},
|
|
20076
|
+
return E0.fetch(O);
|
|
20077
|
+
}, dt = (E) => {
|
|
20078
20078
|
const { businessId: I } = d0($0()), O = {
|
|
20079
20079
|
fetchType: m0.Post,
|
|
20080
20080
|
url: `${B0}/${I.value}/reports`,
|
|
20081
20081
|
data: E
|
|
20082
20082
|
};
|
|
20083
|
-
return
|
|
20084
|
-
},
|
|
20083
|
+
return E0.fetch(O);
|
|
20084
|
+
}, ct = (E) => {
|
|
20085
20085
|
const { businessId: I } = d0($0()), O = {
|
|
20086
20086
|
fetchType: m0.Delete,
|
|
20087
20087
|
url: `${B0}/${I.value}/reports/${E.id}`
|
|
20088
20088
|
};
|
|
20089
|
-
return
|
|
20090
|
-
},
|
|
20089
|
+
return E0.fetch(O);
|
|
20090
|
+
}, ft = (E) => {
|
|
20091
20091
|
const { businessId: I } = d0($0()), O = {
|
|
20092
20092
|
fetchType: m0.Put,
|
|
20093
20093
|
url: `${B0}/${I.value}/reports/default`,
|
|
20094
20094
|
data: { defaultReport: E }
|
|
20095
20095
|
};
|
|
20096
|
-
return
|
|
20097
|
-
},
|
|
20096
|
+
return E0.fetch(O);
|
|
20097
|
+
}, ur = (E, I) => {
|
|
20098
20098
|
const { businessId: O } = d0($0()), P = {
|
|
20099
20099
|
fetchType: m0.Put,
|
|
20100
20100
|
url: `${B0}/${O.value}/reports/${E}/pos-support`,
|
|
20101
20101
|
data: { isSupportPos: I }
|
|
20102
20102
|
};
|
|
20103
|
-
return
|
|
20104
|
-
},
|
|
20103
|
+
return E0.fetch(P);
|
|
20104
|
+
}, pt = async () => {
|
|
20105
20105
|
const { businessId: E } = d0($0());
|
|
20106
20106
|
if (E) {
|
|
20107
20107
|
const I = {
|
|
20108
20108
|
fetchType: m0.Get,
|
|
20109
20109
|
url: `${B0}/${E.value}/overview-report`
|
|
20110
20110
|
};
|
|
20111
|
-
return
|
|
20111
|
+
return E0.fetch(I);
|
|
20112
20112
|
} else
|
|
20113
20113
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20114
|
-
},
|
|
20114
|
+
}, $t = async () => {
|
|
20115
20115
|
const { businessId: E } = d0($0());
|
|
20116
20116
|
if (E) {
|
|
20117
20117
|
const I = {
|
|
20118
20118
|
fetchType: m0.Get,
|
|
20119
20119
|
url: `${B0}/${E.value}/config`
|
|
20120
20120
|
};
|
|
20121
|
-
return
|
|
20121
|
+
return E0.fetch(I);
|
|
20122
20122
|
} else
|
|
20123
20123
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20124
|
-
},
|
|
20124
|
+
}, yt = "/report-settings", mt = async () => {
|
|
20125
20125
|
const { businessId: E } = d0($0());
|
|
20126
20126
|
if (E) {
|
|
20127
20127
|
const I = {
|
|
20128
20128
|
fetchType: m0.Get,
|
|
20129
|
-
url: `${
|
|
20129
|
+
url: `${yt}/${E.value}/categories`
|
|
20130
20130
|
};
|
|
20131
|
-
return
|
|
20131
|
+
return E0.fetch(I);
|
|
20132
20132
|
} else
|
|
20133
20133
|
return Promise.reject(new Error("Business Id is not defined"));
|
|
20134
20134
|
};
|
|
20135
|
-
function
|
|
20135
|
+
function K0(E, I = {}) {
|
|
20136
20136
|
const O = localStorage.getItem(E);
|
|
20137
20137
|
return O === null && (I == null ? void 0 : I.fallback) !== void 0 ? I.fallback : O === null ? null : I.format ? I.format(O) : O;
|
|
20138
20138
|
}
|
|
20139
|
-
const
|
|
20140
|
-
get:
|
|
20141
|
-
getJson: (E) =>
|
|
20139
|
+
const U0 = {
|
|
20140
|
+
get: K0,
|
|
20141
|
+
getJson: (E) => K0(E, {
|
|
20142
20142
|
fallback: {},
|
|
20143
20143
|
format: (I) => JSON.parse(I)
|
|
20144
20144
|
}),
|
|
20145
|
-
getNumber: (E) =>
|
|
20145
|
+
getNumber: (E) => K0(E, {
|
|
20146
20146
|
fallback: null,
|
|
20147
20147
|
format: (I) => Number(I)
|
|
20148
20148
|
}),
|
|
@@ -20150,17 +20150,17 @@ const k0 = {
|
|
|
20150
20150
|
setJson: (E, I) => {
|
|
20151
20151
|
localStorage.setItem(E, JSON.stringify(I));
|
|
20152
20152
|
}
|
|
20153
|
-
},
|
|
20153
|
+
}, gt = () => {
|
|
20154
20154
|
const E = {
|
|
20155
20155
|
fetchType: m0.Get,
|
|
20156
20156
|
url: "/schemas"
|
|
20157
20157
|
};
|
|
20158
|
-
return
|
|
20159
|
-
},
|
|
20160
|
-
const E = _0([]), I =
|
|
20158
|
+
return E0.fetch(E);
|
|
20159
|
+
}, ht = "mf-reportschema-store", St = X0(ht, () => {
|
|
20160
|
+
const E = _0([]), I = Se();
|
|
20161
20161
|
async function O() {
|
|
20162
20162
|
try {
|
|
20163
|
-
E.value = await
|
|
20163
|
+
E.value = await gt();
|
|
20164
20164
|
} catch (P) {
|
|
20165
20165
|
console.log(P), I.open({
|
|
20166
20166
|
title: "Get Schema Error",
|
|
@@ -20174,7 +20174,7 @@ const k0 = {
|
|
|
20174
20174
|
getSchema: O
|
|
20175
20175
|
};
|
|
20176
20176
|
});
|
|
20177
|
-
async function
|
|
20177
|
+
async function At(E, I) {
|
|
20178
20178
|
const { businessId: O } = d0($0());
|
|
20179
20179
|
if (!O.value)
|
|
20180
20180
|
return Promise.reject(new Error("Failed to grant permission. Business Id is not defined"));
|
|
@@ -20185,108 +20185,108 @@ async function St(E, I) {
|
|
|
20185
20185
|
url: `/businesses/${O.value}/my-permissions/report-manage`,
|
|
20186
20186
|
data: { permissionKey: E, label: I }
|
|
20187
20187
|
};
|
|
20188
|
-
await
|
|
20188
|
+
await we.fetch(P);
|
|
20189
20189
|
}
|
|
20190
|
-
function
|
|
20190
|
+
function Et(E) {
|
|
20191
20191
|
const I = E.permissionKey || E.id;
|
|
20192
20192
|
return I ? `business::report::reports::${I}` : null;
|
|
20193
20193
|
}
|
|
20194
|
-
function
|
|
20195
|
-
const { sessionUser: E } =
|
|
20196
|
-
const
|
|
20197
|
-
(
|
|
20194
|
+
function be() {
|
|
20195
|
+
const { sessionUser: E } = ie(), I = ye(), { country: O } = d0($0()), P = J0.report_reports_allDefaultReports, B = J0.report_reports_allCustomReports, N = A0(() => {
|
|
20196
|
+
const k = I.flags.find(
|
|
20197
|
+
(K) => K.key === ee.report_portal_permission_th_control_temp
|
|
20198
20198
|
);
|
|
20199
|
-
return O.value.toUpperCase() === "TH" && (
|
|
20200
|
-
}), J =
|
|
20199
|
+
return O.value.toUpperCase() === "TH" && (k == null ? void 0 : k.value) === !0;
|
|
20200
|
+
}), J = A0(() => {
|
|
20201
20201
|
if (N.value)
|
|
20202
20202
|
return !0;
|
|
20203
|
-
const
|
|
20204
|
-
(
|
|
20203
|
+
const k = I.flags.find(
|
|
20204
|
+
(K) => K.key === ee.report_portal_permission
|
|
20205
20205
|
);
|
|
20206
|
-
return (
|
|
20207
|
-
}),
|
|
20206
|
+
return (k == null ? void 0 : k.value) === !0;
|
|
20207
|
+
}), Q = A0(
|
|
20208
20208
|
() => {
|
|
20209
|
-
var
|
|
20210
|
-
return Array.isArray((
|
|
20209
|
+
var k, K;
|
|
20210
|
+
return Array.isArray((k = E.value) == null ? void 0 : k.permissions) ? (K = E.value) == null ? void 0 : K.permissions : [];
|
|
20211
20211
|
}
|
|
20212
20212
|
);
|
|
20213
|
-
function q(
|
|
20213
|
+
function q(k, K) {
|
|
20214
20214
|
if (!J.value) return !0;
|
|
20215
|
-
const
|
|
20216
|
-
return !
|
|
20215
|
+
const a0 = Et(k);
|
|
20216
|
+
return !a0 || !Q.value.length ? !1 : K.some((n0) => {
|
|
20217
20217
|
const l0 = {
|
|
20218
|
-
action:
|
|
20218
|
+
action: n0,
|
|
20219
20219
|
// Report subjects are custom strings; cast to satisfy CaslPermission type
|
|
20220
|
-
subject:
|
|
20221
|
-
coverSubject:
|
|
20220
|
+
subject: a0,
|
|
20221
|
+
coverSubject: k != null && k.isDefault ? P : B
|
|
20222
20222
|
};
|
|
20223
|
-
return
|
|
20223
|
+
return te([l0], Q.value).granted;
|
|
20224
20224
|
});
|
|
20225
20225
|
}
|
|
20226
|
-
function H(
|
|
20227
|
-
return q(
|
|
20226
|
+
function H(k) {
|
|
20227
|
+
return q(k, [b0.update, b0.manage]);
|
|
20228
20228
|
}
|
|
20229
|
-
function
|
|
20230
|
-
return q(
|
|
20229
|
+
function Y(k) {
|
|
20230
|
+
return q(k, [b0.read, b0.manage]);
|
|
20231
20231
|
}
|
|
20232
|
-
function
|
|
20233
|
-
return q(
|
|
20232
|
+
function X(k) {
|
|
20233
|
+
return q(k, [b0.delete, b0.manage]);
|
|
20234
20234
|
}
|
|
20235
|
-
function
|
|
20236
|
-
return q(
|
|
20235
|
+
function t0(k) {
|
|
20236
|
+
return q(k, [b0.manage]);
|
|
20237
20237
|
}
|
|
20238
|
-
function G(
|
|
20239
|
-
return q(
|
|
20238
|
+
function G(k) {
|
|
20239
|
+
return q(k, [b0.create, b0.manage]);
|
|
20240
20240
|
}
|
|
20241
|
-
const
|
|
20241
|
+
const j = A0(() => {
|
|
20242
20242
|
if (!J.value) return !0;
|
|
20243
|
-
const
|
|
20244
|
-
return
|
|
20245
|
-
action:
|
|
20246
|
-
subject:
|
|
20247
|
-
}],
|
|
20243
|
+
const k = J0.report_createReport;
|
|
20244
|
+
return Q.value.length ? [b0.create, b0.manage].some((K) => te([{
|
|
20245
|
+
action: K,
|
|
20246
|
+
subject: k
|
|
20247
|
+
}], Q.value).granted) : !1;
|
|
20248
20248
|
});
|
|
20249
20249
|
return {
|
|
20250
20250
|
isReportPermissionEnabled: J,
|
|
20251
|
-
canRead:
|
|
20251
|
+
canRead: Y,
|
|
20252
20252
|
canUpdate: H,
|
|
20253
|
-
canDelete:
|
|
20254
|
-
canManage:
|
|
20253
|
+
canDelete: X,
|
|
20254
|
+
canManage: t0,
|
|
20255
20255
|
canDuplicate: G,
|
|
20256
|
-
canCreateReport:
|
|
20256
|
+
canCreateReport: j
|
|
20257
20257
|
};
|
|
20258
20258
|
}
|
|
20259
|
-
const
|
|
20260
|
-
const { business: E, globalFilters: I } = d0(
|
|
20259
|
+
const Tt = "mf-reportreport-store", se = X0(Tt, () => {
|
|
20260
|
+
const { business: E, globalFilters: I } = d0(z0()), { schemas: O } = d0(St()), { flags: P } = d0(ye()), B = _0([]), N = _0([]), J = _0(0), Q = Se(), q = A0(() => B.value.filter((f) => f.editable)), H = A0(() => B.value.filter((f) => !f.editable)), Y = _0(!1), X = _0(""), t0 = _0(), G = _0(), j = A0(() => {
|
|
20261
20261
|
const f = P.value.find(
|
|
20262
|
-
(r) => r.key ===
|
|
20262
|
+
(r) => r.key === ee.report_portal_integration_custom_report
|
|
20263
20263
|
);
|
|
20264
20264
|
return typeof (f == null ? void 0 : f.value) == "number" ? f.value : null;
|
|
20265
|
-
}), { isReportPermissionEnabled:
|
|
20266
|
-
async function
|
|
20267
|
-
return G.value = await
|
|
20265
|
+
}), { isReportPermissionEnabled: k } = be(), K = A0(() => j.value === null ? !0 : j.value - q.value.length > 0);
|
|
20266
|
+
async function a0() {
|
|
20267
|
+
return G.value = await pt(), G.value;
|
|
20268
20268
|
}
|
|
20269
|
-
async function
|
|
20269
|
+
async function n0() {
|
|
20270
20270
|
var f;
|
|
20271
20271
|
try {
|
|
20272
|
-
B.value = await
|
|
20272
|
+
B.value = await _t(), N.value = await mt(), 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);
|
|
20273
20273
|
} catch (r) {
|
|
20274
|
-
console.log(r),
|
|
20274
|
+
console.log(r), Q.open({
|
|
20275
20275
|
title: "Report Fetch Error",
|
|
20276
20276
|
message: "Internal Server Error",
|
|
20277
20277
|
type: "error"
|
|
20278
20278
|
});
|
|
20279
20279
|
}
|
|
20280
20280
|
}
|
|
20281
|
-
const l0 =
|
|
20282
|
-
() => B.value.find((f) => f.id ===
|
|
20281
|
+
const l0 = A0(
|
|
20282
|
+
() => B.value.find((f) => f.id === X.value)
|
|
20283
20283
|
);
|
|
20284
20284
|
function c0(f) {
|
|
20285
20285
|
var e;
|
|
20286
20286
|
const r = (e = O.value.find((n) => n.name === f.schemaName)) == null ? void 0 : e.fields.find((n) => n.name === f.name);
|
|
20287
20287
|
return r == null ? void 0 : r.type;
|
|
20288
20288
|
}
|
|
20289
|
-
|
|
20289
|
+
W0(
|
|
20290
20290
|
() => {
|
|
20291
20291
|
var f;
|
|
20292
20292
|
return (f = l0.value) == null ? void 0 : f.globalFilters;
|
|
@@ -20300,18 +20300,18 @@ const Et = "mf-reportreport-store", ue = Q0(Et, () => {
|
|
|
20300
20300
|
},
|
|
20301
20301
|
{ deep: !0 }
|
|
20302
20302
|
);
|
|
20303
|
-
const p0 = _0(), V = _0(0), z = _0(),
|
|
20303
|
+
const p0 = _0(), V = _0(0), z = _0(), u0 = _0(null), r0 = _0(null), s0 = _0(!1), W = _0(!1), i0 = _0(!1);
|
|
20304
20304
|
async function D0(f) {
|
|
20305
20305
|
const r = q.value.findIndex((n) => n.id === f.id);
|
|
20306
20306
|
let e;
|
|
20307
20307
|
if (r >= 0)
|
|
20308
|
-
e = await _t(f);
|
|
20309
|
-
else {
|
|
20310
20308
|
e = await Dt(f);
|
|
20309
|
+
else {
|
|
20310
|
+
e = await dt(f);
|
|
20311
20311
|
try {
|
|
20312
|
-
if (
|
|
20313
|
-
await
|
|
20314
|
-
const n =
|
|
20312
|
+
if (k.value) {
|
|
20313
|
+
await At(e.id, e.name);
|
|
20314
|
+
const n = ie(), { businessId: i } = d0($0());
|
|
20315
20315
|
await n.fetchUserPermissions(void 0, i.value);
|
|
20316
20316
|
}
|
|
20317
20317
|
} catch (n) {
|
|
@@ -20321,22 +20321,22 @@ const Et = "mf-reportreport-store", ue = Q0(Et, () => {
|
|
|
20321
20321
|
});
|
|
20322
20322
|
}
|
|
20323
20323
|
}
|
|
20324
|
-
return u(e.id), await
|
|
20324
|
+
return u(e.id), await n0(), e;
|
|
20325
20325
|
}
|
|
20326
|
-
async function
|
|
20327
|
-
await
|
|
20326
|
+
async function e0(f) {
|
|
20327
|
+
await ct(f), await n0();
|
|
20328
20328
|
}
|
|
20329
20329
|
async function t(f) {
|
|
20330
|
-
await
|
|
20330
|
+
await ft(f), await a0();
|
|
20331
20331
|
}
|
|
20332
20332
|
function u(f) {
|
|
20333
|
-
|
|
20333
|
+
X.value = f;
|
|
20334
20334
|
}
|
|
20335
20335
|
const _ = _0(null);
|
|
20336
20336
|
function $() {
|
|
20337
20337
|
var f;
|
|
20338
20338
|
if ((f = E.value) != null && f._id) {
|
|
20339
|
-
const r =
|
|
20339
|
+
const r = U0.getJson("pinReport")[E.value._id];
|
|
20340
20340
|
if ((r == null ? void 0 : r.length) > 0) {
|
|
20341
20341
|
_.value = r;
|
|
20342
20342
|
return;
|
|
@@ -20347,73 +20347,82 @@ const Et = "mf-reportreport-store", ue = Q0(Et, () => {
|
|
|
20347
20347
|
function S(f) {
|
|
20348
20348
|
var r;
|
|
20349
20349
|
if (E.value && f) {
|
|
20350
|
-
const e =
|
|
20351
|
-
e[(r = E.value) == null ? void 0 : r._id] ? e[E.value._id].push(f.id) : e[E.value._id] = [f.id],
|
|
20350
|
+
const e = U0.getJson("pinReport");
|
|
20351
|
+
e[(r = E.value) == null ? void 0 : r._id] ? e[E.value._id].push(f.id) : e[E.value._id] = [f.id], U0.setJson("pinReport", e), $();
|
|
20352
20352
|
}
|
|
20353
20353
|
}
|
|
20354
20354
|
function b(f) {
|
|
20355
20355
|
if (E.value) {
|
|
20356
|
-
const r =
|
|
20356
|
+
const r = U0.getJson("pinReport");
|
|
20357
20357
|
r[E.value._id].length === 1 ? r[E.value._id] = [] : r[E.value._id] = r[E.value._id].filter(
|
|
20358
20358
|
(e) => e !== f
|
|
20359
|
-
),
|
|
20359
|
+
), U0.setJson("pinReport", r), $();
|
|
20360
20360
|
}
|
|
20361
20361
|
}
|
|
20362
20362
|
async function T() {
|
|
20363
|
-
return await
|
|
20363
|
+
return await $t();
|
|
20364
20364
|
}
|
|
20365
20365
|
return {
|
|
20366
|
-
isOpenDownloadDialog:
|
|
20366
|
+
isOpenDownloadDialog: s0,
|
|
20367
20367
|
isOpenFeedbackDialog: W,
|
|
20368
|
-
isOpenEmailDialog:
|
|
20369
|
-
currentSelectWidgetType:
|
|
20368
|
+
isOpenEmailDialog: i0,
|
|
20369
|
+
currentSelectWidgetType: t0,
|
|
20370
20370
|
reports: B,
|
|
20371
20371
|
categories: N,
|
|
20372
20372
|
currentReport: l0,
|
|
20373
20373
|
editingReport: p0,
|
|
20374
20374
|
editingTileIndex: V,
|
|
20375
20375
|
editingTile: z,
|
|
20376
|
-
editingGlobalFilterIndex:
|
|
20376
|
+
editingGlobalFilterIndex: u0,
|
|
20377
20377
|
editingGlobalFilter: r0,
|
|
20378
|
-
currentReportId:
|
|
20378
|
+
currentReportId: X,
|
|
20379
20379
|
editableReports: q,
|
|
20380
20380
|
nonEditableReports: H,
|
|
20381
|
-
isOpenAddReportDialog:
|
|
20381
|
+
isOpenAddReportDialog: Y,
|
|
20382
20382
|
overviewReport: G,
|
|
20383
20383
|
pinReport: _,
|
|
20384
20384
|
scrollPositionY: J,
|
|
20385
|
-
customReportQuota:
|
|
20386
|
-
canCreateCustomReport:
|
|
20385
|
+
customReportQuota: j,
|
|
20386
|
+
canCreateCustomReport: K,
|
|
20387
20387
|
createOrUpdateReport: D0,
|
|
20388
|
-
removeReport:
|
|
20388
|
+
removeReport: e0,
|
|
20389
20389
|
updateCurrentReportId: u,
|
|
20390
|
-
getReports:
|
|
20390
|
+
getReports: n0,
|
|
20391
20391
|
updateDefaultReport: t,
|
|
20392
|
-
getOverviewReport:
|
|
20392
|
+
getOverviewReport: a0,
|
|
20393
20393
|
refreshPinReport: $,
|
|
20394
20394
|
cachePinReport: S,
|
|
20395
20395
|
clearPinReport: b,
|
|
20396
20396
|
getReportConfig: T
|
|
20397
20397
|
};
|
|
20398
|
-
}),
|
|
20399
|
-
const { disabled: E } = d0(
|
|
20400
|
-
function P(
|
|
20401
|
-
var
|
|
20398
|
+
}), Ct = "mf-reportnavigation", Ie = X0(Ct, () => {
|
|
20399
|
+
const { disabled: E } = d0(ve()), { sessionUser: I } = ie(), { isReportPermissionEnabled: O } = be();
|
|
20400
|
+
function P(j) {
|
|
20401
|
+
var n0;
|
|
20402
20402
|
if (!O.value) return !0;
|
|
20403
|
-
const
|
|
20404
|
-
if (!Array.isArray(
|
|
20405
|
-
const
|
|
20406
|
-
action:
|
|
20407
|
-
subject:
|
|
20403
|
+
const k = Array.isArray((n0 = I.value) == null ? void 0 : n0.permissions) ? I.value.permissions : [];
|
|
20404
|
+
if (!Array.isArray(k) || k.length === 0) return !1;
|
|
20405
|
+
const K = {
|
|
20406
|
+
action: b0.manage,
|
|
20407
|
+
subject: j
|
|
20408
20408
|
};
|
|
20409
|
-
return
|
|
20409
|
+
return te([K], k).granted;
|
|
20410
20410
|
}
|
|
20411
|
-
const B = _0("v5"), N = _0(!1), J =
|
|
20412
|
-
|
|
20411
|
+
const B = _0("v5"), N = _0(!1), J = A0(
|
|
20412
|
+
() => P(J0.report_accessOverview)
|
|
20413
|
+
), Q = A0(
|
|
20414
|
+
() => P(J0.report_accessInsight)
|
|
20415
|
+
), q = A0(
|
|
20416
|
+
() => P(J0.report_accessSetting)
|
|
20417
|
+
), H = A0(
|
|
20418
|
+
() => P(J0.report_accessIntegration)
|
|
20419
|
+
), Y = A0(() => {
|
|
20420
|
+
const j = !J.value, k = !Q.value, K = !q.value, a0 = !H.value, n0 = [
|
|
20413
20421
|
{
|
|
20414
20422
|
label: "overview",
|
|
20415
20423
|
value: "overview",
|
|
20416
|
-
route: "overview"
|
|
20424
|
+
route: "overview",
|
|
20425
|
+
disabled: j
|
|
20417
20426
|
},
|
|
20418
20427
|
{
|
|
20419
20428
|
label: "report",
|
|
@@ -20424,75 +20433,79 @@ const Et = "mf-reportreport-store", ue = Q0(Et, () => {
|
|
|
20424
20433
|
label: "insight",
|
|
20425
20434
|
value: "insight",
|
|
20426
20435
|
route: "insights",
|
|
20427
|
-
badge: () =>
|
|
20428
|
-
disabled:
|
|
20436
|
+
badge: () => Pe(qe.FmPill, { variant: "beta" }),
|
|
20437
|
+
disabled: k
|
|
20429
20438
|
},
|
|
20430
20439
|
{
|
|
20431
20440
|
label: "setting",
|
|
20432
20441
|
value: "setting",
|
|
20433
20442
|
route: "setting",
|
|
20434
|
-
disabled:
|
|
20443
|
+
disabled: K
|
|
20435
20444
|
}
|
|
20436
20445
|
];
|
|
20437
|
-
return E.value ||
|
|
20446
|
+
return E.value || n0.push({
|
|
20438
20447
|
label: "integration",
|
|
20439
20448
|
value: "integration",
|
|
20440
20449
|
route: "integrations",
|
|
20441
|
-
disabled:
|
|
20442
|
-
}),
|
|
20443
|
-
}),
|
|
20444
|
-
function
|
|
20445
|
-
switch (
|
|
20450
|
+
disabled: a0
|
|
20451
|
+
}), n0;
|
|
20452
|
+
}), X = _0(""), { currentRoute: t0 } = Qe();
|
|
20453
|
+
function G(j) {
|
|
20454
|
+
switch (j.name) {
|
|
20446
20455
|
case "report":
|
|
20447
20456
|
case "reports":
|
|
20448
|
-
|
|
20457
|
+
X.value = "report";
|
|
20449
20458
|
break;
|
|
20450
20459
|
case "overview":
|
|
20451
|
-
|
|
20460
|
+
X.value = "overview";
|
|
20452
20461
|
break;
|
|
20453
20462
|
case "setting":
|
|
20454
|
-
|
|
20463
|
+
X.value = "setting";
|
|
20455
20464
|
break;
|
|
20456
20465
|
case "insights":
|
|
20457
|
-
|
|
20466
|
+
X.value = "insight";
|
|
20458
20467
|
break;
|
|
20459
20468
|
case "integration":
|
|
20460
20469
|
case "integrations":
|
|
20461
|
-
|
|
20470
|
+
X.value = "integration";
|
|
20462
20471
|
break;
|
|
20463
20472
|
}
|
|
20464
20473
|
}
|
|
20465
|
-
return
|
|
20466
|
-
|
|
20467
|
-
(
|
|
20468
|
-
|
|
20474
|
+
return W0(
|
|
20475
|
+
t0,
|
|
20476
|
+
(j) => {
|
|
20477
|
+
G(j);
|
|
20469
20478
|
},
|
|
20470
20479
|
{ immediate: !0 }
|
|
20471
20480
|
), {
|
|
20472
|
-
selectedNavigationTab:
|
|
20473
|
-
navigationTabs:
|
|
20481
|
+
selectedNavigationTab: X,
|
|
20482
|
+
navigationTabs: Y,
|
|
20483
|
+
isOverviewAccessible: J,
|
|
20484
|
+
isInsightAccessible: Q,
|
|
20485
|
+
isSettingAccessible: q,
|
|
20486
|
+
isIntegrationAccessible: H,
|
|
20474
20487
|
version: B,
|
|
20475
20488
|
suppressReportRouteSync: N
|
|
20476
20489
|
};
|
|
20477
20490
|
});
|
|
20478
|
-
var
|
|
20479
|
-
const
|
|
20480
|
-
function
|
|
20491
|
+
var Fe = /* @__PURE__ */ ((E) => (E.generating = "GENERATING", E.completed = "COMPLETED", E.failed = "FAILED", E.canceled = "CANCELLED", E))(Fe || {});
|
|
20492
|
+
const bt = "/assets/formatChartData.worker-BQ5WtHKL.js", Z0 = /* @__PURE__ */ new Map();
|
|
20493
|
+
function ce(E) {
|
|
20481
20494
|
return new Worker(E, { type: "module" });
|
|
20482
20495
|
}
|
|
20483
|
-
async function
|
|
20484
|
-
if (
|
|
20485
|
-
return
|
|
20496
|
+
async function It(E) {
|
|
20497
|
+
if (Z0.has(E))
|
|
20498
|
+
return ce(Z0.get(E));
|
|
20486
20499
|
let I = E;
|
|
20487
20500
|
if (location.hostname !== new URL(import.meta.url).hostname) {
|
|
20488
|
-
const B = new URL(E.replace(/^\//, ""), import.meta.url).href, N = await fetch(B).then((
|
|
20501
|
+
const B = new URL(E.replace(/^\//, ""), import.meta.url).href, N = await fetch(B).then((Q) => Q.text()), J = new Blob([N], { type: "application/javascript" });
|
|
20489
20502
|
I = URL.createObjectURL(J);
|
|
20490
20503
|
}
|
|
20491
|
-
const P =
|
|
20492
|
-
return
|
|
20504
|
+
const P = ce(I);
|
|
20505
|
+
return Z0.set(E, I), P;
|
|
20493
20506
|
}
|
|
20494
|
-
async function
|
|
20495
|
-
const O = await
|
|
20507
|
+
async function Ft(E, I) {
|
|
20508
|
+
const O = await It(E);
|
|
20496
20509
|
return O.postMessage(I), await new Promise((P) => {
|
|
20497
20510
|
O.onmessage = async (B) => {
|
|
20498
20511
|
const N = B.data;
|
|
@@ -20500,16 +20513,16 @@ async function It(E, I) {
|
|
|
20500
20513
|
};
|
|
20501
20514
|
});
|
|
20502
20515
|
}
|
|
20503
|
-
const
|
|
20516
|
+
const Mt = "mf-reportwidget-size", Me = X0(Mt, () => {
|
|
20504
20517
|
const E = _0([]);
|
|
20505
20518
|
function I(O, P) {
|
|
20506
20519
|
var B;
|
|
20507
20520
|
try {
|
|
20508
20521
|
if (!O) return;
|
|
20509
20522
|
let N;
|
|
20510
|
-
const J = O.$el,
|
|
20511
|
-
if (
|
|
20512
|
-
const q =
|
|
20523
|
+
const J = O.$el, Q = (B = J == null ? void 0 : J.querySelector) == null ? void 0 : B.call(J, "canvas");
|
|
20524
|
+
if (Q) {
|
|
20525
|
+
const q = Q.getBoundingClientRect();
|
|
20513
20526
|
N = { width: Math.round(q.width), height: Math.round(q.height) };
|
|
20514
20527
|
}
|
|
20515
20528
|
if (N && N.width > 0 && N.height > 0)
|
|
@@ -20519,12 +20532,12 @@ const Ft = "mf-reportwidget-size", Fe = Q0(Ft, () => {
|
|
|
20519
20532
|
}
|
|
20520
20533
|
}
|
|
20521
20534
|
return { sizes: E, extractChartSize: I };
|
|
20522
|
-
}),
|
|
20535
|
+
}), Rt = "mf-reportreport-sort-store", Re = X0(Rt, () => {
|
|
20523
20536
|
const E = _0([]);
|
|
20524
20537
|
function I(B, N) {
|
|
20525
20538
|
if (B == null) return;
|
|
20526
|
-
const J = Array.isArray(N) ? N.filter((H) => H && H.key) : [],
|
|
20527
|
-
|
|
20539
|
+
const J = Array.isArray(N) ? N.filter((H) => H && H.key) : [], Q = E.value.findIndex((H) => H.tileIndex === B), q = { tileIndex: B, sorts: J };
|
|
20540
|
+
Q !== -1 ? E.value.splice(Q, 1, q) : E.value.push(q);
|
|
20528
20541
|
}
|
|
20529
20542
|
function O(B) {
|
|
20530
20543
|
var N;
|
|
@@ -20535,12 +20548,12 @@ const Ft = "mf-reportwidget-size", Fe = Q0(Ft, () => {
|
|
|
20535
20548
|
}
|
|
20536
20549
|
return { tileSort: E, setTileSorts: I, getTileSorts: O, clearTileSorts: P };
|
|
20537
20550
|
});
|
|
20538
|
-
function
|
|
20551
|
+
function xe(E = []) {
|
|
20539
20552
|
return Array.from(
|
|
20540
20553
|
new Set(E.map((I) => I === "" ? "NULL" : I))
|
|
20541
20554
|
);
|
|
20542
20555
|
}
|
|
20543
|
-
function
|
|
20556
|
+
function xt(E) {
|
|
20544
20557
|
return [
|
|
20545
20558
|
E.schemaName,
|
|
20546
20559
|
E.name,
|
|
@@ -20549,45 +20562,45 @@ function Rt(E) {
|
|
|
20549
20562
|
E.operator
|
|
20550
20563
|
].join(":");
|
|
20551
20564
|
}
|
|
20552
|
-
function
|
|
20553
|
-
const I = (O, P) =>
|
|
20565
|
+
function Lt(E) {
|
|
20566
|
+
const I = (O, P) => T0().set("hour", O).set("minute", P).set("second", 0).set("millisecond", 0).toISOString();
|
|
20554
20567
|
return !E.startTime || !E.endTime ? [] : [
|
|
20555
20568
|
I(E.startTime.hour, E.startTime.minute),
|
|
20556
20569
|
I(E.endTime.hour, E.endTime.minute)
|
|
20557
20570
|
];
|
|
20558
20571
|
}
|
|
20559
|
-
function
|
|
20572
|
+
function Ot(E, I) {
|
|
20560
20573
|
return {
|
|
20561
20574
|
schemaName: E.schemaName,
|
|
20562
20575
|
name: E.name,
|
|
20563
20576
|
operator: I.operator,
|
|
20564
20577
|
option: E.option ?? null,
|
|
20565
|
-
values:
|
|
20578
|
+
values: xe(I.values),
|
|
20566
20579
|
dataFormula: E.dataFormula,
|
|
20567
20580
|
isGlobalFilter: !0
|
|
20568
20581
|
};
|
|
20569
20582
|
}
|
|
20570
|
-
function
|
|
20571
|
-
const O =
|
|
20583
|
+
function wt(E, I) {
|
|
20584
|
+
const O = Lt(I);
|
|
20572
20585
|
return O.length !== 2 ? null : {
|
|
20573
20586
|
schemaName: E.schemaName,
|
|
20574
20587
|
name: E.name,
|
|
20575
|
-
operator:
|
|
20576
|
-
option: E.option ??
|
|
20588
|
+
operator: ue.Between,
|
|
20589
|
+
option: E.option ?? Q0.TimeOfDay,
|
|
20577
20590
|
values: O,
|
|
20578
20591
|
dataFormula: E.dataFormula,
|
|
20579
20592
|
isGlobalFilter: !0
|
|
20580
20593
|
};
|
|
20581
20594
|
}
|
|
20582
|
-
function
|
|
20595
|
+
function vt(E) {
|
|
20583
20596
|
var P, B, N, J;
|
|
20584
20597
|
const I = Array.from(
|
|
20585
|
-
new Set((E.values ?? []).map((
|
|
20598
|
+
new Set((E.values ?? []).map((Q) => Q === "" ? "NULL" : Q))
|
|
20586
20599
|
);
|
|
20587
20600
|
if (I.length === 1 && String(I[0]) === "(EMPTY)") {
|
|
20588
|
-
const
|
|
20601
|
+
const Q = Object.values(Q0).includes(
|
|
20589
20602
|
String(E.option ?? "")
|
|
20590
|
-
), q = E.option ===
|
|
20603
|
+
), q = E.option === Q0.TimeOfDay ? ["1000-01-01T23:59:59.999Z", "1000-01-01T00:00:00.000Z"] : [Q ? "-1" : "(EMPTY)"];
|
|
20591
20604
|
return [
|
|
20592
20605
|
{
|
|
20593
20606
|
schemaName: E.schemaName,
|
|
@@ -20601,18 +20614,18 @@ function wt(E) {
|
|
|
20601
20614
|
];
|
|
20602
20615
|
}
|
|
20603
20616
|
if ((((P = E.customTimeRanges) == null ? void 0 : P.length) ?? 0) > 0) {
|
|
20604
|
-
const
|
|
20617
|
+
const Q = new Set(I.map((q) => String(q)));
|
|
20605
20618
|
return ((B = E.customTimeRanges) == null ? void 0 : B.filter((q) => {
|
|
20606
20619
|
const H = String(q.name ?? "");
|
|
20607
|
-
return
|
|
20608
|
-
}).map((q) =>
|
|
20620
|
+
return Q.has(H);
|
|
20621
|
+
}).map((q) => wt(E, q)).filter((q) => !!q)) ?? [];
|
|
20609
20622
|
}
|
|
20610
20623
|
if ((((N = E.customOptions) == null ? void 0 : N.length) ?? 0) > 0) {
|
|
20611
|
-
const
|
|
20624
|
+
const Q = new Set(I.map((q) => String(q)));
|
|
20612
20625
|
return ((J = E.customOptions) == null ? void 0 : J.filter((q) => {
|
|
20613
20626
|
const H = String(q.label ?? "");
|
|
20614
|
-
return
|
|
20615
|
-
}).map((q) =>
|
|
20627
|
+
return Q.has(H);
|
|
20628
|
+
}).map((q) => Ot(E, q)).filter((q) => Array.isArray(q.values) && q.values.length > 0)) ?? [];
|
|
20616
20629
|
}
|
|
20617
20630
|
return I.length === 0 ? [] : [
|
|
20618
20631
|
{
|
|
@@ -20626,64 +20639,64 @@ function wt(E) {
|
|
|
20626
20639
|
}
|
|
20627
20640
|
];
|
|
20628
20641
|
}
|
|
20629
|
-
function
|
|
20642
|
+
function fe({
|
|
20630
20643
|
originalFilters: E,
|
|
20631
20644
|
globalFilters: I,
|
|
20632
20645
|
schemaNames: O
|
|
20633
20646
|
}) {
|
|
20634
|
-
const P = /* @__PURE__ */ new Map(), B = [], N = new Set((O ?? []).map((H) => String(H))), J = (H) => N.has(H.schemaName ?? ""),
|
|
20647
|
+
const P = /* @__PURE__ */ new Map(), B = [], N = new Set((O ?? []).map((H) => String(H))), J = (H) => N.has(H.schemaName ?? ""), Q = I.filter(J), q = (H) => {
|
|
20635
20648
|
if (!H || !J(H) || !Array.isArray(H.values) || H.values.length === 0)
|
|
20636
20649
|
return;
|
|
20637
|
-
const
|
|
20650
|
+
const Y = {
|
|
20638
20651
|
...H,
|
|
20639
|
-
values:
|
|
20652
|
+
values: xe(H.values)
|
|
20640
20653
|
};
|
|
20641
|
-
if (
|
|
20642
|
-
B.push(
|
|
20654
|
+
if (Y.option === Q0.TimeOfDay && Y.operator === ue.Between) {
|
|
20655
|
+
B.push(Y);
|
|
20643
20656
|
return;
|
|
20644
20657
|
}
|
|
20645
|
-
const
|
|
20658
|
+
const t0 = xt(Y), G = P.get(t0);
|
|
20646
20659
|
if (!G) {
|
|
20647
|
-
P.set(
|
|
20660
|
+
P.set(t0, Y);
|
|
20648
20661
|
return;
|
|
20649
20662
|
}
|
|
20650
20663
|
G.values = [
|
|
20651
20664
|
...G.values ?? [],
|
|
20652
|
-
...
|
|
20653
|
-
], P.set(
|
|
20665
|
+
...Y.values
|
|
20666
|
+
], P.set(t0, G);
|
|
20654
20667
|
};
|
|
20655
|
-
return E.forEach(q),
|
|
20668
|
+
return E.forEach(q), Q.forEach(q), [...Array.from(P.values()), ...B];
|
|
20656
20669
|
}
|
|
20657
|
-
function
|
|
20670
|
+
function oe(E, I, O) {
|
|
20658
20671
|
var N;
|
|
20659
20672
|
const P = JSON.parse(JSON.stringify(E)), B = I.filter((J) => {
|
|
20660
|
-
var
|
|
20661
|
-
return (
|
|
20662
|
-
}).flatMap((J) =>
|
|
20673
|
+
var Q;
|
|
20674
|
+
return (Q = J.tileIds) == null ? void 0 : Q.includes(O);
|
|
20675
|
+
}).flatMap((J) => vt(J));
|
|
20663
20676
|
return {
|
|
20664
20677
|
...P,
|
|
20665
20678
|
config: {
|
|
20666
20679
|
...P.config,
|
|
20667
|
-
filters:
|
|
20680
|
+
filters: fe({
|
|
20668
20681
|
originalFilters: P.config.filters ?? [],
|
|
20669
20682
|
globalFilters: B ?? [],
|
|
20670
20683
|
schemaNames: P.config.schemaNames
|
|
20671
20684
|
}),
|
|
20672
|
-
joinDatasources: ((N = P.config.joinDatasources) == null ? void 0 : N.map((J,
|
|
20685
|
+
joinDatasources: ((N = P.config.joinDatasources) == null ? void 0 : N.map((J, Q) => {
|
|
20673
20686
|
var q;
|
|
20674
20687
|
return {
|
|
20675
20688
|
...J,
|
|
20676
|
-
filters:
|
|
20689
|
+
filters: fe({
|
|
20677
20690
|
originalFilters: J.filters ?? [],
|
|
20678
20691
|
globalFilters: B ?? [],
|
|
20679
|
-
schemaNames: (q = P.config.joinDatasources) == null ? void 0 : q[
|
|
20692
|
+
schemaNames: (q = P.config.joinDatasources) == null ? void 0 : q[Q].schemaNames
|
|
20680
20693
|
})
|
|
20681
20694
|
};
|
|
20682
20695
|
})) ?? []
|
|
20683
20696
|
}
|
|
20684
20697
|
};
|
|
20685
20698
|
}
|
|
20686
|
-
async function
|
|
20699
|
+
async function Bt(E, I) {
|
|
20687
20700
|
for (let O = 0; O < E.length; O++)
|
|
20688
20701
|
try {
|
|
20689
20702
|
return await E[O]();
|
|
@@ -20693,40 +20706,40 @@ async function vt(E, I) {
|
|
|
20693
20706
|
}
|
|
20694
20707
|
throw new Error("No callback");
|
|
20695
20708
|
}
|
|
20696
|
-
const
|
|
20697
|
-
var
|
|
20698
|
-
const { businessId: P, country: B } = d0($0()), { currentReport: N } =
|
|
20709
|
+
const sr = async (E, I, O) => {
|
|
20710
|
+
var n0, l0, c0, p0;
|
|
20711
|
+
const { businessId: P, country: B } = d0($0()), { currentReport: N } = se(), {
|
|
20699
20712
|
selectedRestaurantIds: J,
|
|
20700
|
-
selectedWarehouseIds:
|
|
20713
|
+
selectedWarehouseIds: Q,
|
|
20701
20714
|
selectedLocationIds: q,
|
|
20702
20715
|
dateRange: H,
|
|
20703
|
-
compareDateRange:
|
|
20704
|
-
timeRange:
|
|
20705
|
-
globalFilters:
|
|
20716
|
+
compareDateRange: Y,
|
|
20717
|
+
timeRange: X,
|
|
20718
|
+
globalFilters: t0,
|
|
20706
20719
|
timezone: G
|
|
20707
|
-
} =
|
|
20720
|
+
} = z0();
|
|
20708
20721
|
if (q.length === 0)
|
|
20709
20722
|
return null;
|
|
20710
|
-
const
|
|
20723
|
+
const j = oe(E, t0, O ?? ""), k = {
|
|
20711
20724
|
fetchType: m0.Post,
|
|
20712
20725
|
url: `/${P.value}/postgres-query`,
|
|
20713
|
-
data:
|
|
20714
|
-
widget:
|
|
20726
|
+
data: ae.getQueryRequests({
|
|
20727
|
+
widget: j,
|
|
20715
20728
|
dateRange: [H.startDate, H.endDate],
|
|
20716
|
-
compareDateRange:
|
|
20729
|
+
compareDateRange: Y.startDate && Y.endDate ? [Y.startDate, Y.endDate] : void 0,
|
|
20717
20730
|
timeRange: [
|
|
20718
|
-
|
|
20719
|
-
|
|
20731
|
+
T0().tz(G).hour(Number((n0 = X.start) == null ? void 0 : n0.hour)).minute(Number((l0 = X.start) == null ? void 0 : l0.minute)).toISOString(),
|
|
20732
|
+
T0().tz(G).hour(Number((c0 = X.end) == null ? void 0 : c0.hour)).minute(Number((p0 = X.end) == null ? void 0 : p0.minute)).endOf("minutes").toISOString()
|
|
20720
20733
|
],
|
|
20721
20734
|
businessIds: P.value ? [P.value] : [],
|
|
20722
20735
|
restaurantIds: J,
|
|
20723
|
-
warehouseIds:
|
|
20736
|
+
warehouseIds: Q,
|
|
20724
20737
|
timezone: G
|
|
20725
20738
|
}).map((V, z) => {
|
|
20726
|
-
const
|
|
20739
|
+
const u0 = z === 0 ? 3e3 : 12e3;
|
|
20727
20740
|
return {
|
|
20728
20741
|
...V,
|
|
20729
|
-
limit: J.length > 50 ? E.config.limit ||
|
|
20742
|
+
limit: J.length > 50 ? E.config.limit || u0 : E.config.limit,
|
|
20730
20743
|
skipStringSpaceGrouping: !!(N != null && N.batch),
|
|
20731
20744
|
reportId: N == null ? void 0 : N.id
|
|
20732
20745
|
};
|
|
@@ -20735,17 +20748,17 @@ const ur = async (E, I, O) => {
|
|
|
20735
20748
|
timeout: 1e3 * 60 * 5,
|
|
20736
20749
|
signal: I
|
|
20737
20750
|
}
|
|
20738
|
-
},
|
|
20739
|
-
J.length < 50 &&
|
|
20740
|
-
const
|
|
20741
|
-
return (await
|
|
20742
|
-
responses:
|
|
20751
|
+
}, K = [() => E0.fetch(k)];
|
|
20752
|
+
J.length < 50 && K.push(() => E0.fetch(k)), K.push(() => (k.url = k.url.replace("postgres-query", "query"), E0.fetch(k)));
|
|
20753
|
+
const a0 = await Bt(K, 2e3);
|
|
20754
|
+
return (await Ft(bt, {
|
|
20755
|
+
responses: a0,
|
|
20743
20756
|
widget: JSON.parse(JSON.stringify(E)),
|
|
20744
20757
|
country: B.value,
|
|
20745
20758
|
timezone: G
|
|
20746
20759
|
})).data;
|
|
20747
20760
|
};
|
|
20748
|
-
function
|
|
20761
|
+
function Le(E) {
|
|
20749
20762
|
const I = E.config;
|
|
20750
20763
|
return {
|
|
20751
20764
|
showTitle: I.showTitle,
|
|
@@ -20785,14 +20798,14 @@ function xe(E) {
|
|
|
20785
20798
|
legendMaxWidth: I.legendMaxWidth
|
|
20786
20799
|
};
|
|
20787
20800
|
}
|
|
20788
|
-
function
|
|
20801
|
+
function Oe(E) {
|
|
20789
20802
|
const I = E.config;
|
|
20790
20803
|
return {
|
|
20791
20804
|
rowHeight: I.rowHeight,
|
|
20792
20805
|
colWidths: I.colWidths
|
|
20793
20806
|
};
|
|
20794
20807
|
}
|
|
20795
|
-
const
|
|
20808
|
+
const or = async ({
|
|
20796
20809
|
reportType: E,
|
|
20797
20810
|
index: I,
|
|
20798
20811
|
orientationTypes: O,
|
|
@@ -20801,45 +20814,45 @@ const sr = async ({
|
|
|
20801
20814
|
timeRange: N,
|
|
20802
20815
|
dateRange: J
|
|
20803
20816
|
}) => {
|
|
20804
|
-
const { businessId:
|
|
20805
|
-
let
|
|
20806
|
-
|
|
20807
|
-
const l0 =
|
|
20817
|
+
const { businessId: Q } = d0($0()), { restaurants: q, warehouses: H, globalFilters: Y, timezone: X } = z0(), { currentReport: t0, overviewReport: G } = se(), { selectedNavigationTab: j } = Ie(), { sizes: k } = Me(), { getTileSorts: K } = Re();
|
|
20818
|
+
let a0 = t0 == null ? void 0 : t0.id, n0 = (t0 == null ? void 0 : t0.tiles) ?? [];
|
|
20819
|
+
j === "overview" && G && (a0 = G == null ? void 0 : G.id, n0 = (G == null ? void 0 : G.tiles) ?? []);
|
|
20820
|
+
const l0 = n0.filter((s0, W) => typeof I == "number" ? W === I : !0).map((s0) => oe(s0.widget, Y, s0.id)), c0 = {
|
|
20808
20821
|
fetchType: m0.Post,
|
|
20809
|
-
url: `/${
|
|
20822
|
+
url: `/${Q.value}/file?lang=${N0()}`,
|
|
20810
20823
|
data: {
|
|
20811
20824
|
configs: [
|
|
20812
|
-
...l0.map((
|
|
20813
|
-
var D0,
|
|
20814
|
-
const
|
|
20825
|
+
...l0.map((s0, W) => {
|
|
20826
|
+
var D0, e0, t, u;
|
|
20827
|
+
const i0 = k[I ?? W];
|
|
20815
20828
|
return {
|
|
20816
|
-
requests:
|
|
20817
|
-
widget:
|
|
20829
|
+
requests: ae.getQueryRequests({
|
|
20830
|
+
widget: s0,
|
|
20818
20831
|
dateRange: [J.startDate, J.endDate],
|
|
20819
20832
|
timeRange: [
|
|
20820
|
-
|
|
20821
|
-
|
|
20833
|
+
T0().tz(X).set("hour", Number((D0 = N.start) == null ? void 0 : D0.hour)).set("minute", Number((e0 = N.start) == null ? void 0 : e0.minute)).toISOString(),
|
|
20834
|
+
T0().tz(X).set("hour", Number((t = N.end) == null ? void 0 : t.hour)).set("minute", Number((u = N.end) == null ? void 0 : u.minute)).toISOString()
|
|
20822
20835
|
],
|
|
20823
|
-
businessIds:
|
|
20836
|
+
businessIds: Q ? [Q.value] : [],
|
|
20824
20837
|
restaurantIds: B.filter(
|
|
20825
20838
|
(_) => q.find(($) => $.id === _)
|
|
20826
20839
|
),
|
|
20827
20840
|
warehouseIds: B.filter(
|
|
20828
20841
|
(_) => H.find(($) => $.id === _)
|
|
20829
20842
|
),
|
|
20830
|
-
timezone:
|
|
20843
|
+
timezone: X
|
|
20831
20844
|
}),
|
|
20832
20845
|
index: I || W,
|
|
20833
20846
|
drillDimension: null,
|
|
20834
|
-
chartWidth: (
|
|
20835
|
-
chartHeight: (
|
|
20836
|
-
...
|
|
20837
|
-
...
|
|
20838
|
-
globalSorts:
|
|
20847
|
+
chartWidth: (i0 == null ? void 0 : i0.width) ?? s0.config.chartWidth,
|
|
20848
|
+
chartHeight: (i0 == null ? void 0 : i0.height) ?? s0.config.chartHeight,
|
|
20849
|
+
...Le(s0),
|
|
20850
|
+
...Oe(s0),
|
|
20851
|
+
globalSorts: K(I ?? W)
|
|
20839
20852
|
};
|
|
20840
20853
|
})
|
|
20841
20854
|
],
|
|
20842
|
-
reportId:
|
|
20855
|
+
reportId: a0,
|
|
20843
20856
|
type: E,
|
|
20844
20857
|
orientationTypes: O,
|
|
20845
20858
|
isCombinedLocationLayout: P
|
|
@@ -20848,9 +20861,9 @@ const sr = async ({
|
|
|
20848
20861
|
responseType: "arraybuffer",
|
|
20849
20862
|
timeout: 1e3 * 60 * 60 * 24
|
|
20850
20863
|
}
|
|
20851
|
-
}, { headers: p0, data: V } = await
|
|
20852
|
-
r0.href =
|
|
20853
|
-
},
|
|
20864
|
+
}, { headers: p0, data: V } = await ne.rawFetch(c0), z = p0["content-disposition"].split("filename=")[1].replaceAll('"', ""), u0 = window.URL.createObjectURL(new Blob([new Uint8Array(V).buffer])), r0 = document.createElement("a");
|
|
20865
|
+
r0.href = u0, r0.setAttribute("download", decodeURIComponent(z)), document.body.appendChild(r0), r0.click(), r0.remove();
|
|
20866
|
+
}, lr = async ({
|
|
20854
20867
|
emails: E,
|
|
20855
20868
|
types: I,
|
|
20856
20869
|
dateRange: O,
|
|
@@ -20859,119 +20872,119 @@ const sr = async ({
|
|
|
20859
20872
|
orientationTypes: N,
|
|
20860
20873
|
isCombinedLocationLayout: J
|
|
20861
20874
|
}) => {
|
|
20862
|
-
const { businessId:
|
|
20875
|
+
const { businessId: Q } = d0($0()), { currentReport: q, overviewReport: H } = se(), { selectedNavigationTab: Y } = Ie(), { restaurants: X, warehouses: t0, globalFilters: G, timezone: j } = z0(), { sizes: k } = Me(), { getTileSorts: K } = Re();
|
|
20863
20876
|
if (E.length === 0) {
|
|
20864
20877
|
console.error("No email addresses provided.");
|
|
20865
20878
|
return;
|
|
20866
20879
|
}
|
|
20867
|
-
let
|
|
20868
|
-
|
|
20869
|
-
const c0 = l0.map((V) =>
|
|
20870
|
-
businessId:
|
|
20871
|
-
status:
|
|
20880
|
+
let a0 = (q == null ? void 0 : q.id) || "", n0 = (q == null ? void 0 : q.name) || "", l0 = (q == null ? void 0 : q.tiles) ?? [];
|
|
20881
|
+
Y === "overview" && H && (a0 = H == null ? void 0 : H.id, n0 = H.name, l0 = (H == null ? void 0 : H.tiles) ?? []);
|
|
20882
|
+
const c0 = l0.map((V) => oe(V.widget, G, V.id)), p0 = {
|
|
20883
|
+
businessId: Q.value,
|
|
20884
|
+
status: Fe.generating,
|
|
20872
20885
|
dateRange: {
|
|
20873
20886
|
start: O.startDate,
|
|
20874
20887
|
end: O.endDate
|
|
20875
20888
|
},
|
|
20876
|
-
reportName:
|
|
20889
|
+
reportName: n0,
|
|
20877
20890
|
emails: E,
|
|
20878
20891
|
configs: c0.map((V, z) => {
|
|
20879
|
-
var r0,
|
|
20880
|
-
const
|
|
20892
|
+
var r0, s0, W, i0;
|
|
20893
|
+
const u0 = k[z];
|
|
20881
20894
|
return {
|
|
20882
|
-
requests:
|
|
20895
|
+
requests: ae.getQueryRequests({
|
|
20883
20896
|
widget: V,
|
|
20884
20897
|
dateRange: [O.startDate, O.endDate],
|
|
20885
20898
|
timeRange: [
|
|
20886
|
-
|
|
20887
|
-
|
|
20899
|
+
T0().tz(j).hour(Number((r0 = P.start) == null ? void 0 : r0.hour)).minute(Number((s0 = P.start) == null ? void 0 : s0.minute)).toISOString(),
|
|
20900
|
+
T0().tz(j).hour(Number((W = P.end) == null ? void 0 : W.hour)).minute(Number((i0 = P.end) == null ? void 0 : i0.minute)).endOf("minutes").toISOString()
|
|
20888
20901
|
],
|
|
20889
|
-
businessIds:
|
|
20902
|
+
businessIds: Q ? [Q.value] : [],
|
|
20890
20903
|
restaurantIds: B.filter(
|
|
20891
|
-
(D0) =>
|
|
20904
|
+
(D0) => X.find((e0) => e0.id === D0)
|
|
20892
20905
|
),
|
|
20893
20906
|
warehouseIds: B.filter(
|
|
20894
|
-
(D0) =>
|
|
20907
|
+
(D0) => t0.find((e0) => e0.id === D0)
|
|
20895
20908
|
),
|
|
20896
|
-
timezone:
|
|
20909
|
+
timezone: j
|
|
20897
20910
|
}),
|
|
20898
20911
|
index: z,
|
|
20899
20912
|
drillDimension: null,
|
|
20900
|
-
chartWidth: (
|
|
20901
|
-
chartHeight: (
|
|
20902
|
-
...xe(V),
|
|
20913
|
+
chartWidth: (u0 == null ? void 0 : u0.width) ?? V.config.chartWidth,
|
|
20914
|
+
chartHeight: (u0 == null ? void 0 : u0.height) ?? V.config.chartHeight,
|
|
20903
20915
|
...Le(V),
|
|
20904
|
-
|
|
20916
|
+
...Oe(V),
|
|
20917
|
+
globalSorts: K(z)
|
|
20905
20918
|
};
|
|
20906
20919
|
}),
|
|
20907
|
-
reportId:
|
|
20920
|
+
reportId: a0,
|
|
20908
20921
|
type: I,
|
|
20909
20922
|
orientationTypes: N,
|
|
20910
20923
|
isCombinedLocationLayout: J
|
|
20911
20924
|
};
|
|
20912
|
-
await
|
|
20925
|
+
await ne.fetch({
|
|
20913
20926
|
fetchType: m0.Post,
|
|
20914
|
-
url: `/${
|
|
20927
|
+
url: `/${Q.value}/reports/email?lang=${N0()}`,
|
|
20915
20928
|
data: p0,
|
|
20916
20929
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20917
20930
|
});
|
|
20918
|
-
},
|
|
20931
|
+
}, _r = async (E) => {
|
|
20919
20932
|
const { businessId: I } = d0($0());
|
|
20920
|
-
await
|
|
20933
|
+
await ne.fetch({
|
|
20921
20934
|
fetchType: m0.Post,
|
|
20922
|
-
url: `/${I.value}/reports/resend-email?lang=${
|
|
20935
|
+
url: `/${I.value}/reports/resend-email?lang=${N0()}`,
|
|
20923
20936
|
data: { jobId: E },
|
|
20924
20937
|
requestConfig: { timeout: 1e3 * 60 * 3 }
|
|
20925
20938
|
});
|
|
20926
|
-
},
|
|
20939
|
+
}, Dr = async () => {
|
|
20927
20940
|
const { businessId: E } = d0($0());
|
|
20928
|
-
return await
|
|
20941
|
+
return await E0.fetch({
|
|
20929
20942
|
fetchType: m0.Get,
|
|
20930
20943
|
url: `/${E.value}/reports/email-recipients`
|
|
20931
20944
|
});
|
|
20932
|
-
},
|
|
20945
|
+
}, dr = async (E) => {
|
|
20933
20946
|
const { businessId: I } = d0($0());
|
|
20934
|
-
await
|
|
20947
|
+
await E0.fetch({
|
|
20935
20948
|
fetchType: m0.Post,
|
|
20936
20949
|
url: `/${I.value}/reports/email-recipient/delete`,
|
|
20937
20950
|
data: { email: E }
|
|
20938
20951
|
});
|
|
20939
20952
|
};
|
|
20940
|
-
let
|
|
20941
|
-
const
|
|
20942
|
-
function
|
|
20943
|
-
if (!
|
|
20953
|
+
let Y0;
|
|
20954
|
+
const Pt = new Uint8Array(16);
|
|
20955
|
+
function Jt() {
|
|
20956
|
+
if (!Y0 && (Y0 = typeof crypto < "u" && crypto.getRandomValues && crypto.getRandomValues.bind(crypto), !Y0))
|
|
20944
20957
|
throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
|
|
20945
|
-
return
|
|
20958
|
+
return Y0(Pt);
|
|
20946
20959
|
}
|
|
20947
20960
|
const y0 = [];
|
|
20948
20961
|
for (let E = 0; E < 256; ++E)
|
|
20949
20962
|
y0.push((E + 256).toString(16).slice(1));
|
|
20950
|
-
function
|
|
20963
|
+
function Ht(E, I = 0) {
|
|
20951
20964
|
return y0[E[I + 0]] + y0[E[I + 1]] + y0[E[I + 2]] + y0[E[I + 3]] + "-" + y0[E[I + 4]] + y0[E[I + 5]] + "-" + y0[E[I + 6]] + y0[E[I + 7]] + "-" + y0[E[I + 8]] + y0[E[I + 9]] + "-" + y0[E[I + 10]] + y0[E[I + 11]] + y0[E[I + 12]] + y0[E[I + 13]] + y0[E[I + 14]] + y0[E[I + 15]];
|
|
20952
20965
|
}
|
|
20953
|
-
const
|
|
20954
|
-
randomUUID:
|
|
20966
|
+
const Nt = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pe = {
|
|
20967
|
+
randomUUID: Nt
|
|
20955
20968
|
};
|
|
20956
|
-
function
|
|
20957
|
-
if (
|
|
20958
|
-
return
|
|
20969
|
+
function cr(E, I, O) {
|
|
20970
|
+
if (pe.randomUUID && !I && !E)
|
|
20971
|
+
return pe.randomUUID();
|
|
20959
20972
|
E = E || {};
|
|
20960
|
-
const P = E.random || (E.rng ||
|
|
20973
|
+
const P = E.random || (E.rng || Jt)();
|
|
20961
20974
|
if (P[6] = P[6] & 15 | 64, P[8] = P[8] & 63 | 128, I) {
|
|
20962
20975
|
O = O || 0;
|
|
20963
20976
|
for (let B = 0; B < 16; ++B)
|
|
20964
20977
|
I[O + B] = P[B];
|
|
20965
20978
|
return I;
|
|
20966
20979
|
}
|
|
20967
|
-
return
|
|
20980
|
+
return Ht(P);
|
|
20968
20981
|
}
|
|
20969
|
-
const
|
|
20970
|
-
const O =
|
|
20971
|
-
return
|
|
20972
|
-
},
|
|
20982
|
+
const $e = (E, I = "en") => T0().set("hour", E.hour).set("minute", E.minute).locale(I).format("h:mm A"), kt = (E, I) => {
|
|
20983
|
+
const O = T0().set("hour", E.hour).set("minute", E.minute);
|
|
20984
|
+
return T0().set("hour", I.hour).set("minute", I.minute) < O ? "+1" : "";
|
|
20985
|
+
}, Ut = { class: "px-24 py-16 rounded-lg shadow-light-300" }, qt = { class: "text-fm-color-typo-primary" }, Qt = { class: "text-fm-color-typo-secondary" }, Xt = { class: "fm-typo-en-body-lg-600 mb-8" }, Vt = { class: "flex items-center justify-center w-full" }, Yt = { class: "fm-typo-en-body-lg-600 mb-8" }, Gt = { class: "flex items-center justify-center" }, zt = { class: "flex flex-row mb-4 px-4 gap-2" }, fr = /* @__PURE__ */ me({
|
|
20973
20986
|
__name: "TimeRangeSelect",
|
|
20974
|
-
props: /* @__PURE__ */
|
|
20987
|
+
props: /* @__PURE__ */ G0({
|
|
20975
20988
|
defaultDateRange: {
|
|
20976
20989
|
type: Array,
|
|
20977
20990
|
default: () => [
|
|
@@ -21008,96 +21021,96 @@ const pe = (E, I = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21008
21021
|
},
|
|
21009
21022
|
selectTimeDefaultModifiers: {}
|
|
21010
21023
|
}),
|
|
21011
|
-
emits: /* @__PURE__ */
|
|
21024
|
+
emits: /* @__PURE__ */ G0(["update", "chip-closed"], ["update:timeRange", "update:selectTimeDefault"]),
|
|
21012
21025
|
setup(E, { emit: I }) {
|
|
21013
|
-
const { t: O, locale: P } =
|
|
21014
|
-
function
|
|
21015
|
-
|
|
21026
|
+
const { t: O, locale: P } = Be(), B = re(E, "timeRange"), N = I, J = re(E, "selectTimeDefault");
|
|
21027
|
+
function Q(j) {
|
|
21028
|
+
j && (B.value = j, N("update", B.value)), X.value = !1;
|
|
21016
21029
|
}
|
|
21017
|
-
function q(
|
|
21018
|
-
const
|
|
21030
|
+
function q(j) {
|
|
21031
|
+
const k = j.split(":"), K = T0().set("hour", Number(k[0])).set("minute", Number(k[1]));
|
|
21019
21032
|
return {
|
|
21020
|
-
hours: Number(
|
|
21021
|
-
minutes: Number(
|
|
21022
|
-
period:
|
|
21033
|
+
hours: Number(K.format("h")),
|
|
21034
|
+
minutes: Number(K.format("m")),
|
|
21035
|
+
period: K.format("A")
|
|
21023
21036
|
};
|
|
21024
21037
|
}
|
|
21025
21038
|
const H = _0(JSON.parse(JSON.stringify(B.value)));
|
|
21026
|
-
function
|
|
21027
|
-
H.value.start = JSON.parse(JSON.stringify(
|
|
21039
|
+
function Y(j, k) {
|
|
21040
|
+
H.value.start = JSON.parse(JSON.stringify(j)), H.value.end = JSON.parse(JSON.stringify(k));
|
|
21028
21041
|
}
|
|
21029
|
-
|
|
21042
|
+
W0(
|
|
21030
21043
|
() => [B.value, E.defaultDateRange],
|
|
21031
21044
|
() => {
|
|
21032
21045
|
if (B.value) {
|
|
21033
|
-
const
|
|
21034
|
-
(
|
|
21035
|
-
var
|
|
21036
|
-
return
|
|
21046
|
+
const j = E.defaultDateRange.findIndex(
|
|
21047
|
+
(k) => {
|
|
21048
|
+
var K, a0, n0, l0;
|
|
21049
|
+
return k.startTime.hour === ((K = B.value.start) == null ? void 0 : K.hour) && k.startTime.minute === ((a0 = B.value.start) == null ? void 0 : a0.minute) && k.endTime.hour === ((n0 = B.value.end) == null ? void 0 : n0.hour) && k.endTime.minute === ((l0 = B.value.end) == null ? void 0 : l0.minute);
|
|
21037
21050
|
}
|
|
21038
21051
|
) + 1;
|
|
21039
|
-
|
|
21052
|
+
j !== 0 ? J.value = j : J.value = E.defaultDateRange.length + 1;
|
|
21040
21053
|
}
|
|
21041
21054
|
},
|
|
21042
21055
|
{ deep: !0, immediate: !0 }
|
|
21043
21056
|
);
|
|
21044
|
-
const
|
|
21045
|
-
function
|
|
21046
|
-
N("chip-closed",
|
|
21057
|
+
const X = _0(!1);
|
|
21058
|
+
function t0(j) {
|
|
21059
|
+
N("chip-closed", j);
|
|
21047
21060
|
}
|
|
21048
|
-
const G =
|
|
21061
|
+
const G = A0(() => E.label ? E.label : Xe({
|
|
21049
21062
|
startTime: B.value.start,
|
|
21050
21063
|
endTime: B.value.end,
|
|
21051
21064
|
locale: P.value
|
|
21052
21065
|
}));
|
|
21053
|
-
return (
|
|
21054
|
-
const
|
|
21055
|
-
return
|
|
21056
|
-
|
|
21057
|
-
"show-popover":
|
|
21066
|
+
return (j, k) => {
|
|
21067
|
+
const K = v0("FmChip"), a0 = v0("FmRadio"), n0 = v0("FmMenuDivider"), l0 = v0("FmRadioGroup"), c0 = v0("FmTimeInput"), p0 = v0("FmButton"), V = v0("FmPopover");
|
|
21068
|
+
return q0(), j0("div", null, [
|
|
21069
|
+
I0(V, {
|
|
21070
|
+
"show-popover": X.value,
|
|
21058
21071
|
placement: "bottom",
|
|
21059
|
-
onPopoverChanged:
|
|
21072
|
+
onPopoverChanged: k[6] || (k[6] = (z) => X.value = z)
|
|
21060
21073
|
}, {
|
|
21061
|
-
"popover-button":
|
|
21062
|
-
|
|
21074
|
+
"popover-button": H0(() => [
|
|
21075
|
+
I0(Ve, {
|
|
21063
21076
|
"left-icon": E.label ? "filter_alt" : "schedule",
|
|
21064
21077
|
label: G.value,
|
|
21065
21078
|
removable: E.removable,
|
|
21066
|
-
onChipClosed:
|
|
21079
|
+
onChipClosed: k[0] || (k[0] = (z) => t0(!0))
|
|
21067
21080
|
}, null, 8, ["left-icon", "label", "removable"])
|
|
21068
21081
|
]),
|
|
21069
|
-
default:
|
|
21070
|
-
var z,
|
|
21082
|
+
default: H0(() => {
|
|
21083
|
+
var z, u0, r0, s0;
|
|
21071
21084
|
return [
|
|
21072
|
-
w0("div",
|
|
21073
|
-
|
|
21085
|
+
w0("div", Ut, [
|
|
21086
|
+
I0(l0, {
|
|
21074
21087
|
modelValue: J.value,
|
|
21075
|
-
"onUpdate:modelValue":
|
|
21088
|
+
"onUpdate:modelValue": k[1] || (k[1] = (W) => J.value = W)
|
|
21076
21089
|
}, {
|
|
21077
|
-
default:
|
|
21078
|
-
(
|
|
21079
|
-
key: `range_${
|
|
21080
|
-
value:
|
|
21090
|
+
default: H0(() => [
|
|
21091
|
+
(q0(!0), j0(le, null, He(E.defaultDateRange, (W, i0) => (q0(), ge(a0, {
|
|
21092
|
+
key: `range_${i0}`,
|
|
21093
|
+
value: i0 + 1,
|
|
21081
21094
|
label: W.name,
|
|
21082
|
-
onClick: (D0) =>
|
|
21095
|
+
onClick: (D0) => Y(W.startTime, W.endTime)
|
|
21083
21096
|
}, {
|
|
21084
|
-
label:
|
|
21085
|
-
w0("p",
|
|
21086
|
-
|
|
21087
|
-
|
|
21097
|
+
label: H0(() => [
|
|
21098
|
+
w0("p", qt, [
|
|
21099
|
+
he(P0(W.name) + " ", 1),
|
|
21100
|
+
Ne(I0(K, {
|
|
21088
21101
|
label: S0(O)("report.common.default"),
|
|
21089
21102
|
class: "bg-fm-color-system-info-100 border-fm-color-typo-info text-fm-color-typo-info",
|
|
21090
21103
|
compact: ""
|
|
21091
21104
|
}, null, 8, ["label"]), [
|
|
21092
|
-
[
|
|
21105
|
+
[ke, W.isDefault]
|
|
21093
21106
|
])
|
|
21094
21107
|
]),
|
|
21095
|
-
w0("p",
|
|
21108
|
+
w0("p", Qt, P0(S0($e)(W.startTime, S0(N0)())) + " - " + P0(S0($e)(W.endTime, S0(N0)())) + " " + P0(S0(kt)(W.startTime, W.endTime)), 1)
|
|
21096
21109
|
]),
|
|
21097
21110
|
_: 2
|
|
21098
21111
|
}, 1032, ["value", "label", "onClick"]))), 128)),
|
|
21099
|
-
|
|
21100
|
-
|
|
21112
|
+
I0(n0),
|
|
21113
|
+
I0(a0, {
|
|
21101
21114
|
key: "range_custom",
|
|
21102
21115
|
label: S0(O)("report.common.custom"),
|
|
21103
21116
|
value: E.defaultDateRange.length + 1
|
|
@@ -21105,46 +21118,46 @@ const pe = (E, I = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21105
21118
|
]),
|
|
21106
21119
|
_: 1
|
|
21107
21120
|
}, 8, ["modelValue"]),
|
|
21108
|
-
J.value === E.defaultDateRange.length + 1 ? (
|
|
21109
|
-
w0("p",
|
|
21110
|
-
w0("div",
|
|
21111
|
-
|
|
21112
|
-
"model-value": q(`${(z = H.value.start) == null ? void 0 : z.hour}:${(
|
|
21113
|
-
"onUpdate:modelValue":
|
|
21121
|
+
J.value === E.defaultDateRange.length + 1 ? (q0(), j0(le, { key: 0 }, [
|
|
21122
|
+
w0("p", Xt, P0(S0(O)("report.date.startingTime")), 1),
|
|
21123
|
+
w0("div", Vt, [
|
|
21124
|
+
I0(c0, {
|
|
21125
|
+
"model-value": q(`${(z = H.value.start) == null ? void 0 : z.hour}:${(u0 = H.value.start) == null ? void 0 : u0.minute}`),
|
|
21126
|
+
"onUpdate:modelValue": k[2] || (k[2] = (W) => {
|
|
21114
21127
|
if (H.value.start) {
|
|
21115
|
-
const
|
|
21116
|
-
S0(
|
|
21128
|
+
const i0 = S0(T0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
|
|
21129
|
+
S0(N0)()
|
|
21117
21130
|
);
|
|
21118
|
-
H.value.start.hour =
|
|
21131
|
+
H.value.start.hour = i0.get("hour"), H.value.start.minute = i0.get("minute");
|
|
21119
21132
|
}
|
|
21120
21133
|
})
|
|
21121
21134
|
}, null, 8, ["model-value"])
|
|
21122
21135
|
]),
|
|
21123
|
-
w0("p",
|
|
21124
|
-
w0("div",
|
|
21125
|
-
|
|
21126
|
-
"model-value": q(`${(r0 = H.value.end) == null ? void 0 : r0.hour}:${(
|
|
21127
|
-
"onUpdate:modelValue":
|
|
21136
|
+
w0("p", Yt, P0(S0(O)("report.date.endingTime")), 1),
|
|
21137
|
+
w0("div", Gt, [
|
|
21138
|
+
I0(c0, {
|
|
21139
|
+
"model-value": q(`${(r0 = H.value.end) == null ? void 0 : r0.hour}:${(s0 = H.value.end) == null ? void 0 : s0.minute}`),
|
|
21140
|
+
"onUpdate:modelValue": k[3] || (k[3] = (W) => {
|
|
21128
21141
|
if (H.value.end) {
|
|
21129
|
-
const
|
|
21130
|
-
S0(
|
|
21142
|
+
const i0 = S0(T0)(`${W.hours}:${W.minutes} ${W.period}`, "h:m A").locale(
|
|
21143
|
+
S0(N0)()
|
|
21131
21144
|
);
|
|
21132
|
-
H.value.end.hour =
|
|
21145
|
+
H.value.end.hour = i0.get("hour"), H.value.end.minute = i0.get("minute");
|
|
21133
21146
|
}
|
|
21134
21147
|
})
|
|
21135
21148
|
}, null, 8, ["model-value"])
|
|
21136
21149
|
])
|
|
21137
|
-
], 64)) :
|
|
21138
|
-
w0("div",
|
|
21139
|
-
|
|
21140
|
-
|
|
21150
|
+
], 64)) : Je("", !0),
|
|
21151
|
+
w0("div", zt, [
|
|
21152
|
+
k[7] || (k[7] = w0("div", { class: "grow" }, null, -1)),
|
|
21153
|
+
I0(p0, {
|
|
21141
21154
|
label: S0(O)("report.common.cancel"),
|
|
21142
21155
|
variant: "tertiary",
|
|
21143
|
-
onClick:
|
|
21156
|
+
onClick: k[4] || (k[4] = (W) => X.value = !1)
|
|
21144
21157
|
}, null, 8, ["label"]),
|
|
21145
|
-
|
|
21158
|
+
I0(p0, {
|
|
21146
21159
|
label: S0(O)("report.common.apply"),
|
|
21147
|
-
onClick:
|
|
21160
|
+
onClick: k[5] || (k[5] = () => Q(JSON.parse(JSON.stringify(H.value))))
|
|
21148
21161
|
}, null, 8, ["label"])
|
|
21149
21162
|
])
|
|
21150
21163
|
])
|
|
@@ -21155,9 +21168,9 @@ const pe = (E, I = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21155
21168
|
]);
|
|
21156
21169
|
};
|
|
21157
21170
|
}
|
|
21158
|
-
}),
|
|
21171
|
+
}), pr = /* @__PURE__ */ me({
|
|
21159
21172
|
__name: "BaseDialog",
|
|
21160
|
-
props: /* @__PURE__ */
|
|
21173
|
+
props: /* @__PURE__ */ G0({
|
|
21161
21174
|
title: {
|
|
21162
21175
|
type: String,
|
|
21163
21176
|
default: "Title"
|
|
@@ -21174,32 +21187,32 @@ const pe = (E, I = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21174
21187
|
modelValue: { type: Boolean, required: !0 },
|
|
21175
21188
|
modelModifiers: {}
|
|
21176
21189
|
}),
|
|
21177
|
-
emits: /* @__PURE__ */
|
|
21190
|
+
emits: /* @__PURE__ */ G0(["confirm"], ["update:modelValue"]),
|
|
21178
21191
|
setup(E, { emit: I }) {
|
|
21179
|
-
const O =
|
|
21180
|
-
return
|
|
21192
|
+
const O = re(E, "modelValue"), P = E, B = I;
|
|
21193
|
+
return W0(O, () => {
|
|
21181
21194
|
O.value ? document.body.style.overflow = "hidden" : document.body.style.overflow = "scroll";
|
|
21182
21195
|
}), (N, J) => {
|
|
21183
|
-
const
|
|
21184
|
-
return
|
|
21196
|
+
const Q = v0("FmButton"), q = v0("FmDialog");
|
|
21197
|
+
return q0(), ge(q, {
|
|
21185
21198
|
modelValue: O.value,
|
|
21186
21199
|
"onUpdate:modelValue": J[2] || (J[2] = (H) => O.value = H),
|
|
21187
21200
|
overlay: ""
|
|
21188
21201
|
}, {
|
|
21189
|
-
"dialog-header":
|
|
21190
|
-
|
|
21202
|
+
"dialog-header": H0(() => [
|
|
21203
|
+
he(P0(P.title), 1)
|
|
21191
21204
|
]),
|
|
21192
|
-
default:
|
|
21193
|
-
|
|
21205
|
+
default: H0(() => [
|
|
21206
|
+
Ue(N.$slots, "content")
|
|
21194
21207
|
]),
|
|
21195
|
-
"dialog-footer":
|
|
21208
|
+
"dialog-footer": H0(() => [
|
|
21196
21209
|
J[3] || (J[3] = w0("div", { class: "grow" }, null, -1)),
|
|
21197
|
-
|
|
21210
|
+
I0(Q, {
|
|
21198
21211
|
label: P.secondaryButtonLabel,
|
|
21199
21212
|
variant: "tertiary",
|
|
21200
21213
|
onClick: J[0] || (J[0] = (H) => O.value = !1)
|
|
21201
21214
|
}, null, 8, ["label"]),
|
|
21202
|
-
|
|
21215
|
+
I0(Q, {
|
|
21203
21216
|
label: P.primaryButtonLabel,
|
|
21204
21217
|
variant: "primary",
|
|
21205
21218
|
onClick: J[1] || (J[1] = (H) => B("confirm"))
|
|
@@ -21211,34 +21224,34 @@ const pe = (E, I = "en") => E0().set("hour", E.hour).set("minute", E.minute).loc
|
|
|
21211
21224
|
}
|
|
21212
21225
|
});
|
|
21213
21226
|
export {
|
|
21214
|
-
|
|
21215
|
-
|
|
21216
|
-
|
|
21217
|
-
|
|
21218
|
-
|
|
21219
|
-
|
|
21220
|
-
|
|
21221
|
-
|
|
21222
|
-
|
|
21223
|
-
|
|
21224
|
-
|
|
21225
|
-
|
|
21226
|
-
|
|
21227
|
-
|
|
21228
|
-
|
|
21229
|
-
|
|
21230
|
-
|
|
21231
|
-
|
|
21232
|
-
|
|
21233
|
-
|
|
21234
|
-
|
|
21235
|
-
|
|
21236
|
-
|
|
21237
|
-
|
|
21238
|
-
|
|
21239
|
-
|
|
21240
|
-
|
|
21241
|
-
|
|
21242
|
-
|
|
21243
|
-
|
|
21227
|
+
ue as C,
|
|
21228
|
+
at as D,
|
|
21229
|
+
ut as P,
|
|
21230
|
+
ot as R,
|
|
21231
|
+
it as S,
|
|
21232
|
+
st as W,
|
|
21233
|
+
fr as _,
|
|
21234
|
+
se as a,
|
|
21235
|
+
St as b,
|
|
21236
|
+
be as c,
|
|
21237
|
+
Q0 as d,
|
|
21238
|
+
pr as e,
|
|
21239
|
+
Me as f,
|
|
21240
|
+
Re as g,
|
|
21241
|
+
Ft as h,
|
|
21242
|
+
lt as i,
|
|
21243
|
+
or as j,
|
|
21244
|
+
ir as k,
|
|
21245
|
+
kt as l,
|
|
21246
|
+
dr as m,
|
|
21247
|
+
Dr as n,
|
|
21248
|
+
ar as o,
|
|
21249
|
+
Fe as p,
|
|
21250
|
+
sr as q,
|
|
21251
|
+
_r as r,
|
|
21252
|
+
ur as s,
|
|
21253
|
+
$e as t,
|
|
21254
|
+
Ie as u,
|
|
21255
|
+
cr as v,
|
|
21256
|
+
lr as w
|
|
21244
21257
|
};
|